diff --git a/api/product/admin.py b/api/product/admin.py index d2597d8e7..2babbe9b5 100644 --- a/api/product/admin.py +++ b/api/product/admin.py @@ -116,7 +116,7 @@ class PermissionAdmin(admin.ModelAdmin): class ProductRelatedAdmin(admin.ModelAdmin): - list_display = ('id', 'prl_product', 'prl_related', 'prl_cross_identification',) + list_display = ('id', 'prl_product', 'prl_related', 'prl_relation_type', 'prl_cross_identification',) class FiltersetdAdmin(admin.ModelAdmin): diff --git a/api/product/migrations/0008_productrelated_prl_relation_type.py b/api/product/migrations/0008_productrelated_prl_relation_type.py new file mode 100644 index 000000000..55270b9da --- /dev/null +++ b/api/product/migrations/0008_productrelated_prl_relation_type.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.4 on 2018-03-15 16:15 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('product', '0007_product_prd_is_permanent'), + ] + + operations = [ + migrations.AddField( + model_name='productrelated', + name='prl_relation_type', + field=models.CharField(choices=[('join', 'Join'), ('input', 'Input')], default='join', max_length=10, verbose_name='Relation Type'), + ), + ] diff --git a/api/product/models.py b/api/product/models.py index 42b6a2185..a4c59371b 100644 --- a/api/product/models.py +++ b/api/product/models.py @@ -199,12 +199,27 @@ class ProductContentSetting(models.Model): class ProductRelated(models.Model): + + relation_types = ( + # join quando um produto esta ligado ao outro atraves de uma property com ucd meta.id.cross + ('join', 'Join'), + # input quando um produto foi usado como input na geracao do outro, o related representa o input. + ('input', 'Input'), + ) + prl_product = models.ForeignKey( Product, on_delete=models.CASCADE, verbose_name='Product' ) prl_related = models.ForeignKey( Product, related_name="relateds", on_delete=models.CASCADE, verbose_name='Related Product' ) + prl_relation_type = models.CharField( + max_length=10, + choices=relation_types, + default='join', + verbose_name='Relation Type' + ) + prl_cross_identification = models.ForeignKey( ProductContent, on_delete=models.CASCADE, verbose_name='Cross Identification', default=None, null=True, blank=True, help_text="Foreign key between the product and the related product", diff --git a/api/product/serializers.py b/api/product/serializers.py index 07a7f3338..d1bee179c 100644 --- a/api/product/serializers.py +++ b/api/product/serializers.py @@ -2,6 +2,7 @@ import logging import os import time +from urllib.parse import urljoin import humanize from django.contrib.auth.models import User @@ -42,6 +43,8 @@ class ProductSerializer(serializers.HyperlinkedModelSerializer): tablename = serializers.SerializerMethodField() + productlog = serializers.SerializerMethodField() + class Meta: model = Product @@ -63,7 +66,8 @@ class Meta: 'prl_related', 'prl_cross_identification', 'prl_cross_property', - 'tablename' + 'tablename', + 'productlog' ) def get_pcl_name(self, obj): @@ -98,21 +102,21 @@ def get_prd_filter(self, obj): def get_prl_related(self, obj): try: - related = ProductRelated.objects.get(prl_product=obj.pk) + related = ProductRelated.objects.get(prl_product=obj.pk, prl_relation_type="join") return related.prl_related.pk except: return None def get_prl_cross_identification(self, obj): try: - related = ProductRelated.objects.get(prl_product=obj.pk) + related = ProductRelated.objects.get(prl_product=obj.pk, prl_relation_type="join") return related.prl_cross_identification.pk except: return None def get_prl_cross_property(self, obj): try: - related = ProductRelated.objects.get(prl_product=obj.pk) + related = ProductRelated.objects.get(prl_product=obj.pk, prl_relation_type="join") return related.prl_cross_identification.pcn_column_name.lower() except: return None @@ -126,6 +130,14 @@ def get_tablename(self, obj): except: return None + def get_productlog(self, obj): + try: + site = obj.prd_process_id.epr_site.sti_url + return urljoin(site, "VP/getViewProcessCon?process_id=%s" % obj.prd_process_id.epr_original_id) + + except: + return None + class FileSerializer(serializers.HyperlinkedModelSerializer): class Meta: @@ -593,6 +605,7 @@ class Meta: 'id', 'prl_product', 'prl_related', + 'prl_relation_type', 'prl_cross_identification', 'prl_cross_name' ) diff --git a/api/product/views.py b/api/product/views.py index 903d31757..bf5955e75 100644 --- a/api/product/views.py +++ b/api/product/views.py @@ -451,6 +451,17 @@ def get_display_content(self, request): return Response(ordered) +class ProductRelatedFilter(django_filters.FilterSet): + prd_class = django_filters.MethodFilter() + + class Meta: + model = ProductRelated + fields = ['prl_product', 'prl_related', 'prl_relation_type', 'prl_cross_identification', 'prd_class'] + + def filter_prd_class(self, queryset, value): + return queryset.filter(prl_related__prd_class__pcl_name=str(value)) + + class ProductRelatedViewSet(viewsets.ModelViewSet): """ @@ -459,7 +470,10 @@ class ProductRelatedViewSet(viewsets.ModelViewSet): serializer_class = ProductRelatedSerializer - filter_fields = ('prl_product', 'prl_related', 'prl_cross_identification') + filter_backends = (filters.DjangoFilterBackend, ) + + filter_class = ProductRelatedFilter + class ProductContentAssociationViewSet(viewsets.ModelViewSet): diff --git a/api/product_register/ImportProcess.py b/api/product_register/ImportProcess.py index 5f206ff3e..57b52bc67 100644 --- a/api/product_register/ImportProcess.py +++ b/api/product_register/ImportProcess.py @@ -29,12 +29,14 @@ def start_import(self, request): 'request': request } - # Esta propriedade e usada apenas se no mesmo processo tiver 2 produtos um de Galaxy Cluster e um de Cluster Member + # Guarda um dict com a classe de cada produto e a intancia do ProductModel + # ex: # dict({ # 'galaxy_clusters': ProductModel # 'cluster_memebers': ProductModel + # 'vac': ProductModel # }) - self._gc_cm = dict({}) + self._products_classes = dict({}) # Ticket server para identificar o owner do processo quando # o processo esta sendo importado por outro sistema, nesse caso o user logado @@ -167,6 +169,7 @@ def process_tags(self, process, tags, add_release=True): except Tag.DoesNotExist: raise Exception("this Tag '%s' is not valid." % tag_name) + def process_export(self, process, data): # Associar Process a Export @@ -194,10 +197,16 @@ def import_products(self, data): else: raise Exception("Product Type '%s' not implemented yet." % product.get('type')) + print(self._products_classes) + # Verificar a classe dos produtos se for galaxy cluster ou cluster members deve ser feita a ligacao entre as 2 - if ('galaxy_clusters' in self._gc_cm) and ('cluster_members' in self._gc_cm): + if ('galaxy_clusters' in self._products_classes) and ('cluster_members' in self._products_classes): self.link_galaxy_cluster_with_cluster_members() + # Verificar a classe dos produtos se for galaxy cluster e vac da classe vac_cluster + if ('galaxy_clusters' in self._products_classes) and ('vac_cluster' in self._products_classes): + self.link_galaxy_cluster_with_vac_cluster() + # =============================< CATALOG >============================= def register_catalog(self, data): """ @@ -244,6 +253,35 @@ def register_catalog(self, data): else: date = datetime.now() + + # Verificar se o process id do produto e igual ao proccess id do external_proccess + # TODO esta etapa deve ser substituida com a implementacao de import inputs ou provenance + if (self.process.epr_original_id != str(data.get("process_id"))): + # Se for diferente cria um novo external proccess para ser associado ao producto. + product_process, created = ExternalProcess.objects.update_or_create( + epr_site=self.site, + epr_owner=self.owner, + epr_name=data.get('pipeline', None), + epr_original_id=data.get('process_id', None), + defaults={ + "epr_username": self.owner.username, + } + ) + + if product_process: + + add_release = True + # Associar um Release ao Processo + if 'releases' in data and len(data.get('releases')) > 0: + self.process_release(product_process, data.get('releases')) + add_release = False + + if 'fields' in data and len(data.get('fields')) > 0: + self.process_tags(product_process, data.get('fields'), add_release) + + else: + product_process = self.process + product, created = Catalog.objects.update_or_create( prd_owner=self.owner, prd_name=data.get('name').replace(' ', '_').lower(), @@ -251,7 +289,7 @@ def register_catalog(self, data): tbl_schema=data.get('schema', None), tbl_name=data.get('table'), defaults={ - "prd_process_id": self.process, + "prd_process_id": product_process, "prd_class": cls, "prd_display_name": data.get('display_name'), "prd_product_id": data.get('product_id', None), @@ -280,9 +318,9 @@ def register_catalog(self, data): # Registar as colunas do catalogo self.register_catalog_content(product, data, created) - # se um processo tiver mais de um produto e eles forem galaxy_clusters e cluster_members - if (product.prd_class.pcl_name == 'galaxy_clusters') or (product.prd_class.pcl_name == 'cluster_members'): - self._gc_cm[product.prd_class.pcl_name] = product + # guarda a classe do produto e a instancia de ProductModel + self._products_classes[product.prd_class.pcl_name] = product + return True else: @@ -440,9 +478,8 @@ def link_galaxy_cluster_with_cluster_members(self): e necessario que o produto de members tenha uma propriedade com ucd meta.id.cross. :return: """ - - gc = self._gc_cm.get('galaxy_clusters') - cm = self._gc_cm.get('cluster_members') + gc = self._products_classes.get('galaxy_clusters') + cm = self._products_classes.get('cluster_members') # descobrir a propriedade que tem a associacao de cross_identification no produto de cluster members try: @@ -450,19 +487,42 @@ def link_galaxy_cluster_with_cluster_members(self): prd_related = ProductRelated.objects.update_or_create( prl_product=gc, + prl_related=cm, defaults={ - "prl_related": cm, + "prl_relation_type": "join", "prl_cross_identification": cross_identification } ) - except ProductContent.DoesNotExist: raise Exception( "this cluster members product %s does not have a property with ucd meta.id.cross to be associated with " "the galaxy cluster product." % cm.prd_display_name) + def link_galaxy_cluster_with_vac_cluster(self): + """ + Este metodo e especifico para o processo de WAZP. + caso o processo tenha galaxy_cluster, cluster_members e vac_cluster + o vac na verdade e um imput mais ate este momento nao foi definido um metodo para registrar inputs de processos. + quando houver uma forma de importar os imputs este metodo devera ser removido. + :return: + """ + + gc = self._products_classes.get('galaxy_clusters') + vc = self._products_classes.get('vac_cluster') + + # Criar uma relacao entre o produto de galaxy cluster e o vac que foi usado como input + prd_related = ProductRelated.objects.update_or_create( + prl_product=gc, + prl_related=vc, + defaults={ + "prl_relation_type": "input", + "prl_cross_identification": None + } + ) + + # =============================< MAP >============================= def register_map(self, data): if not self.db: diff --git a/apps/catalog_builder b/apps/catalog_builder new file mode 120000 index 000000000..d22319c51 --- /dev/null +++ b/apps/catalog_builder @@ -0,0 +1 @@ +../frontend/build/production/CatalogBuilder \ No newline at end of file diff --git a/apps/dynamicform b/apps/dynamicform new file mode 120000 index 000000000..10327adfd --- /dev/null +++ b/apps/dynamicform @@ -0,0 +1 @@ +../frontend/build/production/DynamicForm/ \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/Boot.js b/frontend/DynamicForm/.sencha/app/Boot.js new file mode 100644 index 000000000..285dd26d7 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/Boot.js @@ -0,0 +1,1837 @@ +// @tag core +// @define Ext.Boot + +var Ext = Ext || {}; + +// +/** + * @class Ext.Boot + * @singleton + * @private + */ +Ext.Boot = Ext.Boot || (function (emptyFn) { + + var doc = document, + _emptyArray = [], + _config = { + /** + * @cfg {Boolean} [disableCaching=true] + * If `true` current timestamp is added to script URL's to prevent caching. + * In debug builds, adding a "cache" or "disableCacheBuster" query parameter + * to the page's URL will set this to `false`. + */ + disableCaching: (/[?&](?:cache|disableCacheBuster)\b/i.test(location.search) || + !(/http[s]?\:/i.test(location.href)) || + /(^|[ ;])ext-cache=1/.test(doc.cookie)) ? false : + true, + + /** + * @cfg {String} [disableCachingParam="_dc"] + * The query parameter name for the cache buster's timestamp. + */ + disableCachingParam: '_dc', + + /** + * @cfg {Boolean} loadDelay + * Millisecond delay between asynchronous script injection (prevents stack + * overflow on some user agents) 'false' disables delay but potentially + * increases stack load. + */ + loadDelay: false, + + /** + * @cfg {Boolean} preserveScripts + * `false` to remove asynchronously loaded scripts, `true` to retain script + * element for browser debugger compatibility and improved load performance. + */ + preserveScripts: true, + + /** + * @cfg {String} [charset=UTF-8] + * Optional charset to specify encoding of dynamic content. + */ + charset: 'UTF-8' + }, + + _assetConfig= {}, + + cssRe = /\.css(?:\?|$)/i, + resolverEl = doc.createElement('a'), + isBrowser = typeof window !== 'undefined', + _environment = { + browser: isBrowser, + node: !isBrowser && (typeof require === 'function'), + phantom: (window && (window._phantom || window.callPhantom)) || /PhantomJS/.test(window.navigator.userAgent) + }, + _tags = (Ext.platformTags = {}), + + // + // All calls to _debug are commented out to speed up old browsers a bit; + // yes that makes a difference because the cost of concatenating strings + // and passing them into _debug() adds up pretty quickly. + _debug = function (message) { + //console.log(message); + }, + // + _apply = function (object, config, defaults) { + if (defaults) { + _apply(object, defaults); + } + if (object && config && typeof config === 'object') { + for (var i in config) { + object[i] = config[i]; + } + } + return object; + }, + _merge = function() { + var lowerCase = false, + obj = Array.prototype.shift.call(arguments), + index, i, len, value; + + if (typeof arguments[arguments.length - 1] === 'boolean') { + lowerCase = Array.prototype.pop.call(arguments); + } + + len = arguments.length; + for (index = 0; index < len; index++) { + value = arguments[index]; + if (typeof value === 'object') { + for (i in value) { + obj[lowerCase ? i.toLowerCase() : i] = value[i]; + } + } + } + + return obj; + }, + _getKeys = (typeof Object.keys == 'function') ? + function(object){ + if (!object) { + return []; + } + return Object.keys(object); + } : + function(object) { + var keys = [], + property; + + for (property in object) { + if (object.hasOwnProperty(property)) { + keys.push(property); + } + } + + return keys; + }, + /* + * The Boot loader class manages Request objects that contain one or + * more individual urls that need to be loaded. Requests can be performed + * synchronously or asynchronously, but will always evaluate urls in the + * order specified on the request object. + */ + Boot = { + loading: 0, + loaded: 0, + apply: _apply, + env: _environment, + config: _config, + + /** + * @cfg {Object} assetConfig + * A map (url->assetConfig) that contains information about assets loaded by the Microlaoder. + */ + assetConfig: _assetConfig, + + // Keyed by absolute URL this object holds "true" if that URL is already loaded + // or an array of callbacks to call once it loads. + scripts: { + /* + Entry objects + + 'http://foo.com/bar/baz/Thing.js': { + done: true, + el: scriptEl || linkEl, + preserve: true, + requests: [ request1, ... ] + } + */ + }, + + /** + * contains the current script name being loaded + * (loadSync or sequential load only) + */ + currentFile: null, + suspendedQueue: [], + currentRequest: null, + + // when loadSync is called, need to cause subsequent load requests to also be loadSync, + // eg, when Ext.require(...) is called + syncMode: false, + + /* + * simple helper method for debugging + */ + // + debug: _debug, + // + + /** + * enables / disables loading scripts via script / link elements rather + * than using ajax / eval + */ + useElements: true, + + listeners: [], + + Request: Request, + + Entry: Entry, + + allowMultipleBrowsers: false, + + browserNames: { + ie: 'IE', + firefox: 'Firefox', + safari: 'Safari', + chrome: 'Chrome', + opera: 'Opera', + dolfin: 'Dolfin', + edge: 'Edge', + webosbrowser: 'webOSBrowser', + chromeMobile: 'ChromeMobile', + chromeiOS: 'ChromeiOS', + silk: 'Silk', + other: 'Other' + }, + + osNames: { + ios: 'iOS', + android: 'Android', + windowsPhone: 'WindowsPhone', + webos: 'webOS', + blackberry: 'BlackBerry', + rimTablet: 'RIMTablet', + mac: 'MacOS', + win: 'Windows', + tizen: 'Tizen', + linux: 'Linux', + bada: 'Bada', + chromeOS: 'ChromeOS', + other: 'Other' + }, + + browserPrefixes: { + ie: 'MSIE ', + edge: 'Edge/', + firefox: 'Firefox/', + chrome: 'Chrome/', + safari: 'Version/', + opera: 'OPR/', + dolfin: 'Dolfin/', + webosbrowser: 'wOSBrowser/', + chromeMobile: 'CrMo/', + chromeiOS: 'CriOS/', + silk: 'Silk/' + }, + + // When a UA reports multiple browsers this list is used to prioritize the 'real' browser + // lower index number will win + browserPriority: [ + 'edge', + 'opera', + 'dolfin', + 'webosbrowser', + 'silk', + 'chromeiOS', + 'chromeMobile', + 'ie', + 'firefox', + 'safari', + 'chrome' + ], + + osPrefixes: { + tizen: '(Tizen )', + ios: 'i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ', + android: '(Android |HTC_|Silk/)', // Some HTC devices ship with an OSX userAgent by default, + // so we need to add a direct check for HTC_ + windowsPhone: 'Windows Phone ', + blackberry: '(?:BlackBerry|BB)(?:.*)Version\/', + rimTablet: 'RIM Tablet OS ', + webos: '(?:webOS|hpwOS)\/', + bada: 'Bada\/', + chromeOS: 'CrOS ' + }, + + fallbackOSPrefixes: { + windows: 'win', + mac: 'mac', + linux: 'linux' + }, + + devicePrefixes: { + iPhone: 'iPhone', + iPod: 'iPod', + iPad: 'iPad' + }, + + maxIEVersion: 12, + + + /** + * The default function that detects various platforms and sets tags + * in the platform map accordingly. Examples are iOS, android, tablet, etc. + * @param tags the set of tags to populate + */ + detectPlatformTags: function () { + var me = this, + ua = navigator.userAgent, + isMobile = /Mobile(\/|\s)/.test(ua), + element = document.createElement('div'), + isEventSupported = function (name, tag) { + if (tag === undefined) { + tag = window; + } + + var eventName = 'on' + name.toLowerCase(), + isSupported = (eventName in element); + + if (!isSupported) { + if (element.setAttribute && element.removeAttribute) { + element.setAttribute(eventName, ''); + isSupported = typeof element[eventName] === 'function'; + + if (typeof element[eventName] !== 'undefined') { + element[eventName] = undefined; + } + + element.removeAttribute(eventName); + } + } + + return isSupported; + }, + + // Browser Detection + getBrowsers = function () { + var browsers = {}, + maxIEVersion, prefix, + value, key, index, len, match, version, matched; + + // MS Edge browser (and possibly others) can report multiple browsers in the UserAgent + // "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240" + // we use this to prioritize the actual browser in this situation + len = me.browserPriority.length; + for (index = 0; index < len; index++) { + key = me.browserPriority[index]; + if (!matched) { + value = me.browserPrefixes[key]; + match = ua.match(new RegExp('(' + value + ')([\\w\\._]+)')); + version = match && match.length > 1 ? parseInt(match[2]) : 0; + if (version) { + matched = true; + } + } else { + version = 0; + } + browsers[key] = version; + } + + //Deal with IE document mode + if (browsers.ie) { + var mode = document.documentMode; + + if (mode >= 8) { + browsers.ie = mode; + } + } + + // Fancy IE greater than and less then quick tags + version = browsers.ie || false; + maxIEVersion = Math.max(version, me.maxIEVersion); + + for (index = 8; index <= maxIEVersion; ++index) { + prefix = 'ie' + index; + browsers[prefix + 'm'] = version ? version <= index : 0; + browsers[prefix] = version ? version === index : 0; + browsers[prefix + 'p'] = version ? version >= index : 0; + } + + return browsers; + }, + + //OS Detection + getOperatingSystems = function () { + var systems = {}, + value, key, keys, index, len, match, matched, version, activeCount; + + keys = _getKeys(me.osPrefixes); + len = keys.length; + for (index = 0, activeCount = 0; index < len; index++) { + key = keys[index]; + value = me.osPrefixes[key]; + match = ua.match(new RegExp('(' + value + ')([^\\s;]+)')); + matched = match ? match[1] : null; + + // This is here because some HTC android devices show an OSX Snow Leopard userAgent by default. + // And the Kindle Fire doesn't have any indicator of Android as the OS in its User Agent + if (matched && (matched === 'HTC_' || matched === 'Silk/')) { + version = 2.3; + } else { + version = match && match.length > 1 ? parseFloat(match[match.length - 1]) : 0; + } + + if (version) { + activeCount++; + } + systems[key] = version; + } + + keys = _getKeys(me.fallbackOSPrefixes); + + // If no OS could be found we resort to the fallbacks, otherwise we just + // falsify the fallbacks + len = keys.length; + for (index = 0; index < len; index++) { + key = keys[index]; + + // No OS was detected from osPrefixes + if (activeCount === 0) { + value = me.fallbackOSPrefixes[key]; + match = ua.toLowerCase().match(new RegExp(value)); + systems[key] = match ? true : 0; + } else { + systems[key] = 0; + } + } + + return systems; + }, + + // Device Detection + getDevices = function () { + var devices = {}, + value, key, keys, index, len, match; + + keys = _getKeys(me.devicePrefixes); + len = keys.length; + for (index = 0; index < len; index++) { + key = keys[index]; + value = me.devicePrefixes[key]; + match = ua.match(new RegExp(value)); + devices[key] = match ? true : 0; + } + + return devices; + }, + browsers = getBrowsers(), + systems = getOperatingSystems(), + devices = getDevices(), + platformParams = Boot.loadPlatformsParam(); + + // We apply platformParams from the query here first to allow for forced user valued + // to be used in calculation of generated tags + _merge(_tags, browsers, systems, devices, platformParams, true); + + _tags.phone = !!((_tags.iphone || _tags.ipod) || + (!_tags.silk && (_tags.android && (_tags.android < 3 || isMobile))) || + (_tags.blackberry && isMobile) || + (_tags.windowsphone)); + + _tags.tablet = !!(!_tags.phone && ( + _tags.ipad || + _tags.android || + _tags.silk || + _tags.rimtablet || + (_tags.ie10 && /; Touch/.test(ua)) + )); + + _tags.touch = + // if the browser has touch events we can be reasonably sure the device has + // a touch screen + isEventSupported('touchend') || + // browsers that use pointer event have maxTouchPoints > 0 if the + // device supports touch input + // http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints + navigator.maxTouchPoints || + // IE10 uses a vendor-prefixed maxTouchPoints property + navigator.msMaxTouchPoints; + + _tags.desktop = !_tags.phone && !_tags.tablet; + _tags.cordova = _tags.phonegap = !!(window.PhoneGap || window.Cordova || window.cordova); + _tags.webview = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(ua); + _tags.androidstock = (_tags.android <= 4.3) && (_tags.safari || _tags.silk); + + // Re-apply any query params here to allow for user override of generated tags (desktop, touch, tablet, etc) + _merge(_tags, platformParams, true); + }, + + /** + * Extracts user supplied platform tags from the "platformTags" query parameter + * of the form: + * + * ?platformTags=name:state,name:state,... + * + * (each tag defaults to true when state is unspecified) + * + * Example: + * + * ?platformTags=isTablet,isPhone:false,isDesktop:0,iOS:1,Safari:true, ... + * + * @returns {Object} the platform tags supplied by the query string + */ + loadPlatformsParam: function () { + // Check if the ?platform parameter is set in the URL + var paramsString = window.location.search.substr(1), + paramsArray = paramsString.split("&"), + params = {}, i, + platforms = {}, + tmpArray, tmplen, platform, name, enabled; + + for (i = 0; i < paramsArray.length; i++) { + tmpArray = paramsArray[i].split("="); + params[tmpArray[0]] = tmpArray[1]; + } + + if (params.platformTags) { + tmpArray = params.platformTags.split(","); + for (tmplen = tmpArray.length, i = 0; i < tmplen; i++) { + platform = tmpArray[i].split(":"); + name = platform[0]; + enabled=true; + if (platform.length > 1) { + enabled = platform[1]; + if (enabled === 'false' || enabled === '0') { + enabled = false; + } + } + platforms[name] = enabled; + } + } + return platforms; + }, + + filterPlatform: function (platform, excludes) { + platform = _emptyArray.concat(platform || _emptyArray); + excludes = _emptyArray.concat(excludes || _emptyArray); + + var plen = platform.length, + elen = excludes.length, + include = (!plen && elen), // default true if only excludes specified + i, tag; + + for (i = 0; i < plen && !include; i++) { + tag = platform[i]; + include = !!_tags[tag]; + } + + for (i = 0; i < elen && include; i++) { + tag = excludes[i]; + include = !_tags[tag]; + } + + return include; + }, + + init: function () { + var scriptEls = doc.getElementsByTagName('script'), + script = scriptEls[0], + len = scriptEls.length, + re = /\/ext(\-[a-z\-]+)?\.js$/, + entry, src, state, baseUrl, key, n, origin; + + // No check for script definedness because there always should be at least one + Boot.hasReadyState = ("readyState" in script); + Boot.hasAsync = ("async" in script); + Boot.hasDefer = ("defer" in script); + Boot.hasOnLoad = ("onload" in script); + + // Feature detecting IE + Boot.isIE8 = Boot.hasReadyState && !Boot.hasAsync && Boot.hasDefer && !Boot.hasOnLoad; + Boot.isIE9 = Boot.hasReadyState && !Boot.hasAsync && Boot.hasDefer && Boot.hasOnLoad; + Boot.isIE10p = Boot.hasReadyState && Boot.hasAsync && Boot.hasDefer && Boot.hasOnLoad; + + if (Boot.isIE8) { + Boot.isIE10 = false; + Boot.isIE10m = true; + } + else { + Boot.isIE10 = (new Function('/*@cc_on return @_jscript_version @*/')()) === 10; + Boot.isIE10m = Boot.isIE10 || Boot.isIE9 || Boot.isIE8; + } + + // IE11 does not support conditional compilation so we detect it by exclusion + Boot.isIE11 = Boot.isIE10p && !Boot.isIE10; + + // Since we are loading after other scripts, and we needed to gather them + // anyway, we track them in _scripts so we don't have to ask for them all + // repeatedly. + for (n = 0; n < len; n++) { + src = (script = scriptEls[n]).src; + if (!src) { + continue; + } + state = script.readyState || null; + + // If we find a script file called "ext-*.js", then the base path is that file's base path. + if (!baseUrl && re.test(src)) { + baseUrl = src; + } + + if (!Boot.scripts[key = Boot.canonicalUrl(src)]) { + // +// _debug("creating entry " + key + " in Boot.init"); + // + entry = new Entry({ + key: key, + url: src, + done: state === null || // non-IE + state === 'loaded' || state === 'complete', // IE only + el: script, + prop: 'src' + }); + } + } + + if (!baseUrl) { + script = scriptEls[scriptEls.length - 1]; + baseUrl = script.src; + } + + Boot.baseUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/') + 1); + origin = window.location.origin || + window.location.protocol + + "//" + + window.location.hostname + + (window.location.port ? ':' + window.location.port: ''); + Boot.origin = origin; + + Boot.detectPlatformTags(); + Ext.filterPlatform = Boot.filterPlatform; + }, + + /** + * This method returns a canonical URL for the given URL. + * + * For example, the following all produce the same canonical URL (which is the + * last one): + * + * http://foo.com/bar/baz/zoo/derp/../../goo/Thing.js?_dc=12345 + * http://foo.com/bar/baz/zoo/derp/../../goo/Thing.js + * http://foo.com/bar/baz/zoo/derp/../jazz/../../goo/Thing.js + * http://foo.com/bar/baz/zoo/../goo/Thing.js + * http://foo.com/bar/baz/goo/Thing.js + * + * @private + */ + canonicalUrl: function (url) { + // *WARNING WARNING WARNING* + // This method yields the most correct result we can get but it is EXPENSIVE! + // In ALL browsers! When called multiple times in a sequence, as if when + // we resolve dependencies for entries, it will cause garbage collection events + // and overall painful slowness. This is why we try to avoid it as much as we can. + // + // @TODO - see if we need this fallback logic + // http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue + resolverEl.href = url; + + var ret = resolverEl.href, + dc = _config.disableCachingParam, + pos = dc ? ret.indexOf(dc + '=') : -1, + c, end; + + // If we have a _dc query parameter we need to remove it from the canonical + // URL. + if (pos > 0 && ((c = ret.charAt(pos - 1)) === '?' || c === '&')) { + end = ret.indexOf('&', pos); + end = (end < 0) ? '' : ret.substring(end); + if (end && c === '?') { + ++pos; // keep the '?' + end = end.substring(1); // remove the '&' + } + ret = ret.substring(0, pos - 1) + end; + } + + return ret; + }, + + /** + * Get the config value corresponding to the specified name. If no name is given, will return the config object + * @param {String} name The config property name + * @return {Object} + */ + getConfig: function (name) { + return name ? Boot.config[name] : Boot.config; + }, + + /** + * Set the configuration. + * @param {Object} config The config object to override the default values. + * @return {Ext.Boot} this + */ + setConfig: function (name, value) { + if (typeof name === 'string') { + Boot.config[name] = value; + } else { + for (var s in name) { + Boot.setConfig(s, name[s]); + } + } + return Boot; + }, + + getHead: function () { + return Boot.docHead || + (Boot.docHead = doc.head || + doc.getElementsByTagName('head')[0]); + }, + + create: function (url, key, cfg) { + var config = cfg || {}; + config.url = url; + config.key = key; + return Boot.scripts[key] = new Entry(config); + }, + + getEntry: function (url, cfg, canonicalPath) { + var key, entry; + + // Canonicalizing URLs via anchor element href yields the most correct result + // but is *extremely* resource heavy so we need to avoid it whenever possible + key = canonicalPath ? url : Boot.canonicalUrl(url); + entry = Boot.scripts[key]; + + if (!entry) { + entry = Boot.create(url, key, cfg); + + if (canonicalPath) { + entry.canonicalPath = true; + } + } + + return entry; + }, + + registerContent: function (url, type, content) { + var cfg = { + content: content, + loaded: true, + css: type === 'css' + }; + + return Boot.getEntry(url, cfg); + }, + + processRequest: function(request, sync) { + request.loadEntries(sync); + }, + + load: function (request) { + // +// _debug("Boot.load called"); + // + var request = new Request(request); + + if (request.sync || Boot.syncMode) { + return Boot.loadSync(request); + } + + // If there is a request in progress, we must + // queue this new request to be fired when the current request completes. + if (Boot.currentRequest) { + // +// _debug("current active request, suspending this request"); + // + // trigger assignment of entries now to ensure that overlapping + // entries with currently running requests will synchronize state + // with this pending one as they complete + request.getEntries(); + Boot.suspendedQueue.push(request); + } else { + Boot.currentRequest = request; + Boot.processRequest(request, false); + } + return Boot; + }, + + loadSync: function (request) { + // +// _debug("Boot.loadSync called"); + // + var request = new Request(request); + + Boot.syncMode++; + Boot.processRequest(request, true); + Boot.syncMode--; + return Boot; + }, + + loadBasePrefix: function(request) { + request = new Request(request); + request.prependBaseUrl = true; + return Boot.load(request); + }, + + loadSyncBasePrefix: function(request) { + request = new Request(request); + request.prependBaseUrl = true; + return Boot.loadSync(request); + }, + + requestComplete: function(request) { + var next; + + if (Boot.currentRequest === request) { + Boot.currentRequest = null; + while(Boot.suspendedQueue.length > 0) { + next = Boot.suspendedQueue.shift(); + if(!next.done) { + // +// _debug("resuming suspended request"); + // + Boot.load(next); + break; + } + } + } + if (!Boot.currentRequest && Boot.suspendedQueue.length == 0) { + Boot.fireListeners(); + } + }, + + isLoading: function () { + return !Boot.currentRequest && Boot.suspendedQueue.length == 0; + }, + + fireListeners: function () { + var listener; + while (Boot.isLoading() && (listener = Boot.listeners.shift())) { + listener(); + } + }, + + onBootReady: function (listener) { + if (!Boot.isLoading()) { + listener(); + } else { + Boot.listeners.push(listener); + } + }, + + /** + * this is a helper function used by Ext.Loader to flush out + * 'uses' arrays for classes in some Ext versions + */ + getPathsFromIndexes: function (indexMap, loadOrder) { + // In older versions indexMap was an object instead of a sparse array + if (!('length' in indexMap)) { + var indexArray = [], + index; + + for (index in indexMap) { + if (!isNaN(+index)) { + indexArray[+index] = indexMap[index]; + } + } + + indexMap = indexArray; + } + + return Request.prototype.getPathsFromIndexes(indexMap, loadOrder); + }, + + createLoadOrderMap: function(loadOrder) { + return Request.prototype.createLoadOrderMap(loadOrder); + }, + + fetch: function(url, complete, scope, async) { + async = (async === undefined) ? !!complete : async; + + var xhr = new XMLHttpRequest(), + result, status, content, exception = false, + readyStateChange = function () { + if (xhr && xhr.readyState == 4) { + status = (xhr.status === 1223) ? 204 : + (xhr.status === 0 && ((self.location || {}).protocol === 'file:' || + (self.location || {}).protocol === 'ionp:')) ? 200 : xhr.status; + content = xhr.responseText; + result = { + content: content, + status: status, + exception: exception + }; + if (complete) { + complete.call(scope, result); + } + xhr.onreadystatechange = emptyFn; + xhr = null; + } + }; + + if (async) { + xhr.onreadystatechange = readyStateChange; + } + + try { + // +// _debug("fetching " + url + " " + (async ? "async" : "sync")); + // + xhr.open('GET', url, async); + xhr.send(null); + } catch (err) { + exception = err; + readyStateChange(); + return result; + } + + if (!async) { + readyStateChange(); + } + + return result; + }, + + notifyAll: function(entry) { + entry.notifyRequests(); + } + }; + + function Request(cfg) { + //The request class encapsulates a series of Entry objects + //and provides notification around the completion of all Entries + //in this request. + + if(cfg.$isRequest) { + return cfg; + } + + var cfg = cfg.url ? cfg : {url: cfg}, + url = cfg.url, + urls = url.charAt ? [ url ] : url, + charset = cfg.charset || Boot.config.charset; + + _apply(this, cfg); + + delete this.url; + this.urls = urls; + this.charset = charset; + }; + + Request.prototype = { + $isRequest: true, + + createLoadOrderMap: function (loadOrder) { + var len = loadOrder.length, + loadOrderMap = {}, + i, element; + + for (i = 0; i < len; i++) { + element = loadOrder[i]; + loadOrderMap[element.path] = element; + } + + return loadOrderMap; + }, + + getLoadIndexes: function (item, indexMap, loadOrder, includeUses, skipLoaded) { + var resolved = [], + queue = [item], + itemIndex = item.idx, + queue, entry, dependencies, depIndex, i, len; + + if (indexMap[itemIndex]) { + // prevent cycles + return resolved; + } + + // Both indexMap and resolved are sparse arrays keyed by indexes. + // This gives us a naturally sorted sequence of indexes later on + // when we need to convert them to paths. + // indexMap is the map of all indexes we have visited at least once + // per the current expandUrls() invocation, and resolved is the map + // of all dependencies for the current item that are not included + // in indexMap. + indexMap[itemIndex] = resolved[itemIndex] = true; + + while (item = queue.shift()) { + // Canonicalizing URLs is expensive, we try to avoid it + if (item.canonicalPath) { + entry = Boot.getEntry(item.path, null, true); + } + else { + entry = Boot.getEntry(this.prepareUrl(item.path)); + } + + if (!(skipLoaded && entry.done)) { + if (includeUses && item.uses && item.uses.length) { + dependencies = item.requires.concat(item.uses); + } + else { + dependencies = item.requires; + } + + for (i = 0, len = dependencies.length; i < len; i++) { + depIndex = dependencies[i]; + + if (!indexMap[depIndex]) { + indexMap[depIndex] = resolved[depIndex] = true; + queue.push(loadOrder[depIndex]); + } + } + } + } + + return resolved; + }, + + getPathsFromIndexes: function (indexes, loadOrder) { + var paths = [], + index, len; + + // indexes is a sparse array with values being true for defined indexes + for (index = 0, len = indexes.length; index < len; index++) { + if (indexes[index]) { + paths.push(loadOrder[index].path); + } + } + + return paths; + }, + + expandUrl: function (url, loadOrder, loadOrderMap, indexMap, includeUses, skipLoaded) { + var item, resolved; + + if (loadOrder) { + item = loadOrderMap[url]; + + if (item) { + resolved = this.getLoadIndexes(item, indexMap, loadOrder, includeUses, skipLoaded); + + if (resolved.length) { + return this.getPathsFromIndexes(resolved, loadOrder); + } + } + } + + return [url]; + }, + + expandUrls: function (urls, includeUses) { + var me = this, + loadOrder = me.loadOrder, + expanded = [], + expandMap = {}, + indexMap = [], + loadOrderMap, tmpExpanded, i, len, t, tlen, tUrl; + + if (typeof urls === "string") { + urls = [urls]; + } + + if (loadOrder) { + loadOrderMap = me.loadOrderMap; + + if (!loadOrderMap) { + loadOrderMap = me.loadOrderMap = me.createLoadOrderMap(loadOrder); + } + } + + for (i = 0, len = urls.length; i < len; i++) { + // We don't want to skip loaded entries (last argument === false). + // There are some overrides that get loaded before their respective classes, + // and when the class dependencies are processed we don't want to skip over + // the overrides' dependencies just because they were loaded first. + tmpExpanded = this.expandUrl(urls[i], loadOrder, loadOrderMap, indexMap, includeUses, false); + + for (t = 0, tlen = tmpExpanded.length; t < tlen; t++) { + tUrl = tmpExpanded[t]; + + if (!expandMap[tUrl]) { + expandMap[tUrl] = true; + expanded.push(tUrl); + } + } + } + + if (expanded.length === 0) { + expanded = urls; + } + + return expanded; + }, + + expandLoadOrder: function () { + var me = this, + urls = me.urls, + expanded; + + if (!me.expanded) { + expanded = this.expandUrls(urls, true); + me.expanded = true; + } else { + expanded = urls; + } + + me.urls = expanded; + + // if we added some urls to the request to honor the indicated + // load order, the request needs to be sequential + if (urls.length != expanded.length) { + me.sequential = true; + } + + return me; + }, + + getUrls: function () { + this.expandLoadOrder(); + return this.urls; + }, + + prepareUrl: function(url) { + if(this.prependBaseUrl) { + return Boot.baseUrl + url; + } + return url; + }, + + getEntries: function () { + var me = this, + entries = me.entries, + loadOrderMap, item, i, entry, urls, url; + + if (!entries) { + entries = []; + urls = me.getUrls(); + + // If we have loadOrder array then the map will be expanded by now + if (me.loadOrder) { + loadOrderMap = me.loadOrderMap; + } + + for (i = 0; i < urls.length; i++) { + url = me.prepareUrl(urls[i]); + + if (loadOrderMap) { + item = loadOrderMap[url]; + } + + entry = Boot.getEntry(url, { + buster: me.buster, + charset: me.charset + }, item && item.canonicalPath); + + entry.requests.push(me); + entries.push(entry); + } + + me.entries = entries; + } + + return entries; + }, + + loadEntries: function(sync) { + var me = this, + entries = me.getEntries(), + len = entries.length, + start = me.loadStart || 0, + continueLoad, entries, entry, i; + + if(sync !== undefined) { + me.sync = sync; + } + + me.loaded = me.loaded || 0; + me.loading = me.loading || len; + + for(i = start; i < len; i++) { + entry = entries[i]; + if(!entry.loaded) { + continueLoad = entries[i].load(me.sync); + } else { + continueLoad = true; + } + if(!continueLoad) { + me.loadStart = i; + entry.onDone(function(){ + me.loadEntries(sync); + }); + break; + } + } + me.processLoadedEntries(); + }, + + processLoadedEntries: function () { + var me = this, + entries = me.getEntries(), + len = entries.length, + start = me.startIndex || 0, + i, entry; + + if (!me.done) { + for (i = start; i < len; i++) { + entry = entries[i]; + + if (!entry.loaded) { + me.startIndex = i; + return; + } + + if (!entry.evaluated) { + entry.evaluate(); + } + + if (entry.error) { + me.error = true; + } + } + me.notify(); + } + }, + + notify: function () { + var me = this; + if (!me.done) { + var error = me.error, + fn = me[error ? 'failure' : 'success'], + delay = ('delay' in me) + ? me.delay + : (error ? 1 : Boot.config.chainDelay), + scope = me.scope || me; + me.done = true; + if (fn) { + if (delay === 0 || delay > 0) { + // Free the stack (and defer the next script) + setTimeout(function () { + fn.call(scope, me); + }, delay); + } else { + fn.call(scope, me); + } + } + me.fireListeners(); + Boot.requestComplete(me); + } + }, + + onDone: function(listener) { + var me = this, + listeners = me.listeners || (me.listeners = []); + if(me.done) { + listener(me); + } else { + listeners.push(listener); + } + }, + + fireListeners: function() { + var listeners = this.listeners, + listener; + if(listeners) { + // +// _debug("firing request listeners"); + // + while((listener = listeners.shift())) { + listener(this); + } + } + } + }; + + function Entry(cfg) { + //The Entry class is a token to manage the load and evaluation + //state of a particular url. It is used to notify all Requests + //interested in this url that the content is available. + + if(cfg.$isEntry) { + return cfg; + } + + // +// _debug("creating entry for " + cfg.url); + // + + var charset = cfg.charset || Boot.config.charset, + manifest = Ext.manifest, + loader = manifest && manifest.loader, + cache = (cfg.cache !== undefined) ? cfg.cache : (loader && loader.cache), + buster, busterParam; + + if (Boot.config.disableCaching) { + if (cache === undefined) { + cache = !Boot.config.disableCaching; + } + + if (cache === false) { + buster = +new Date(); + } else if (cache !== true) { + buster = cache; + } + + if (buster) { + busterParam = (loader && loader.cacheParam) || Boot.config.disableCachingParam; + buster = busterParam + "=" + buster; + } + } + + _apply(this, cfg); + + this.charset = charset; + this.buster = buster; + this.requests = []; + }; + + Entry.prototype = { + $isEntry: true, + done: false, + evaluated: false, + loaded: false, + + isCrossDomain: function() { + var me = this; + if(me.crossDomain === undefined) { + // +// _debug("checking " + me.getLoadUrl() + " for prefix " + Boot.origin); + // + me.crossDomain = (me.getLoadUrl().indexOf(Boot.origin) !== 0); + } + return me.crossDomain; + }, + + isCss: function () { + var me = this; + if (me.css === undefined) { + if (me.url) { + var assetConfig = Boot.assetConfig[me.url]; + me.css = assetConfig ? assetConfig.type === "css" : cssRe.test(me.url); + } else { + me.css = false; + } + } + return this.css; + }, + + getElement: function (tag) { + var me = this, + el = me.el; + if (!el) { + // +// _debug("creating element for " + me.url); + // + if (me.isCss()) { + tag = tag || "link"; + el = doc.createElement(tag); + if(tag == "link") { + el.rel = 'stylesheet'; + me.prop = 'href'; + } else { + me.prop="textContent"; + } + el.type = "text/css"; + } else { + tag = tag || "script"; + el = doc.createElement(tag); + el.type = 'text/javascript'; + me.prop = 'src'; + + if (me.charset) { + el.charset = me.charset; + } + + if (Boot.hasAsync) { + el.async = false; + } + } + me.el = el; + } + return el; + }, + + getLoadUrl: function () { + var me = this, + url; + + url = me.canonicalPath ? me.url : Boot.canonicalUrl(me.url); + + if (!me.loadUrl) { + me.loadUrl = !!me.buster + ? (url + (url.indexOf('?') === -1 ? '?' : '&') + me.buster) + : url; + } + return me.loadUrl; + }, + + fetch: function (req) { + var url = this.getLoadUrl(), + async = !!req.async, + complete = req.complete; + + Boot.fetch(url, complete, this, async); + }, + + onContentLoaded: function (response) { + var me = this, + status = response.status, + content = response.content, + exception = response.exception, + url = this.getLoadUrl(); + me.loaded = true; + if ((exception || status === 0) && !_environment.phantom) { + me.error = + // + ("Failed loading synchronously via XHR: '" + url + + "'. It's likely that the file is either being loaded from a " + + "different domain or from the local file system where cross " + + "origin requests are not allowed for security reasons. Try " + + "asynchronous loading instead.") || + // + true; + me.evaluated = true; + } + else if ((status >= 200 && status < 300) || status === 304 + || _environment.phantom + || (status === 0 && content.length > 0) + ) { + me.content = content; + } + else { + me.error = + // + ("Failed loading synchronously via XHR: '" + url + + "'. Please verify that the file exists. XHR status code: " + + status) || + // + true; + me.evaluated = true; + } + }, + + createLoadElement: function(callback) { + var me = this, + el = me.getElement(); + + me.preserve = true; + + el.onerror = function() { + me.error = true; + + if (callback) { + callback(); + callback = null; + } + }; + + if (Boot.isIE10m) { + el.onreadystatechange = function() { + if (this.readyState === 'loaded' || this.readyState === 'complete') { + if (callback) { + callback(); + callback = this.onreadystatechange = this.onerror = null; + } + } + }; + } + else { + el.onload = function() { + callback(); + callback = this.onload = this.onerror = null; + }; + } + + // IE starts loading here + el[me.prop] = me.getLoadUrl(); + }, + + onLoadElementReady: function() { + Boot.getHead().appendChild(this.getElement()); + this.evaluated = true; + }, + + inject: function (content, asset) { + // +// _debug("injecting content for " + this.url); + // + var me = this, + head = Boot.getHead(), + url = me.url, + key = me.key, + base, el, ieMode, basePath; + + if (me.isCss()) { + me.preserve = true; + basePath = key.substring(0, key.lastIndexOf("/") + 1); + base = doc.createElement('base'); + base.href = basePath; + if(head.firstChild) { + head.insertBefore(base, head.firstChild); + } else { + head.appendChild(base); + } + // reset the href attribute to cuase IE to pick up the change + base.href = base.href; + + if (url) { + content += "\n/*# sourceURL=" + key + " */"; + } + + // create element after setting base + el = me.getElement("style"); + + ieMode = ('styleSheet' in el); + + head.appendChild(base); + if(ieMode) { + head.appendChild(el); + el.styleSheet.cssText = content; + } else { + el.textContent = content; + head.appendChild(el); + } + head.removeChild(base); + + } else { + // Debugger friendly, file names are still shown even though they're + // eval'ed code. Breakpoints work on both Firebug and Chrome's Web + // Inspector. + if (url) { + content += "\n//# sourceURL=" + key; + } + Ext.globalEval(content); + } + return me; + }, + + loadCrossDomain: function() { + var me = this, + complete = function(){ + me.el.onerror = me.el.onload = emptyFn; + me.el = null; + me.loaded = me.evaluated = me.done = true; + me.notifyRequests(); + }; + me.createLoadElement(function(){ + complete(); + }); + me.evaluateLoadElement(); + // at this point, we need sequential evaluation, + // which means we can't advance the load until + // this entry has fully completed + return false; + }, + + loadElement: function() { + var me = this, + complete = function(){ + me.el.onerror = me.el.onload = emptyFn; + me.el = null; + me.loaded = me.evaluated = me.done = true; + me.notifyRequests(); + }; + me.createLoadElement(function(){ + complete(); + }); + me.evaluateLoadElement(); + return true; + }, + + loadSync: function() { + var me = this; + me.fetch({ + async: false, + complete: function (response) { + me.onContentLoaded(response); + } + }); + me.evaluate(); + me.notifyRequests(); + }, + + load: function (sync) { + var me = this; + if (!me.loaded) { + if(me.loading) { + // if we're calling back through load and we're loading but haven't + // yet loaded, then we should be in a sequential, cross domain + // load scenario which means we can't continue the load on the + // request until this entry has fully evaluated, which will mean + // loaded = evaluated = done = true in one step. For css files, this + // will happen immediately upon element creation / insertion, + // but + + + cordova ${cordova.cli.options} platform list + + + + + + + + + + cordova ${cordova.cli.options} platform add ${cordova.platforms.missing} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/cordova.defaults.properties b/frontend/DynamicForm/.sencha/app/cordova.defaults.properties new file mode 100644 index 000000000..7c4815e5d --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/cordova.defaults.properties @@ -0,0 +1,6 @@ +# +# Copyright (c) 2012-2014. Sencha Inc. +# + +# Legacy support here for old build workflow. +cordova.platforms=${app.cordova.config.platforms} \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/defaults.properties b/frontend/DynamicForm/.sencha/app/defaults.properties new file mode 100644 index 000000000..134c09966 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/defaults.properties @@ -0,0 +1,709 @@ +# ============================================================================= +# This file defines properties used by build-impl.xml and the associated +# *-impl.xml files (sass-impl.xml, js-impl.xml, etc.), which are the core of +# the applications build process. +# +# This file represents the lowest priority file for defining these properties +# as well as the place to look for documentation and learning what properties +# exist. +# +# The full set of these files is as follows (in priority order): +# +# - One of these (based on build.environment): +# - production.properties +# - testing.properties +# - native.properties +# - package.properties +# +# - build.properties +# +# - One of these (based on app.framework): +# - ext.properties +# - touch.properties +# +# - One of these (based on build.environment): +# - production.defaults.properties +# - testing.defaults.properties +# - native.defaults.properties +# - package.defaults.properties +# +# - defaults.properties +# +# Properties are controlled by the first file in the above list to define the +# value. Values from all levels, however, can reference each other via the +# property expansion. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +# ***************************************************************************** +# Global Build Properties +# these are cross-concern properties used by many build phases +# ***************************************************************************** + +# the default build environment type (production, testing, native, package) +# NOTE: this is only a default and will typically be set before this file is +# loaded, typically by the 'sencha app build" command. +# See "sencha help app build" for details. +# +# The corresponding properties files: +# (production.properties, testing.properties, etc.) provide examples of +# overriding sets of properties depending on the selected environment +# NOTE: this replaces the deprecated args.environment +app.environment=production +build.environment=${app.environment} + +# the directory to place built application files +build.dir=${workspace.build.dir}/${build.environment}/${app.name} + +app.compressor.type=${app.compressor} + +app.output=${build.dir} +app.output.base=${app.output} + +app.output.page=index.html +app.output.page.path=${app.output.page} +app.output.page.enable=true + +app.output.resources=resources +app.output.resources.path=${app.output.resources} +app.output.resources.enable=true +app.output.resources.compress=${app.output.js.compress} + +app.output.css.dir=${app.output.resources.path} +app.output.css=${app.output.css.dir}/${app.name}-all.css +app.output.css.path=${app.output.css} +app.output.css.enable=true +app.output.css.compress=true +app.output.css.preprocess=true +app.output.css.split=4095 + +app.output.js=app.js +app.output.js.path=${app.output.js} +app.output.js.enable=true +app.output.js.compress=false +app.output.js.optimize=false +app.output.js.optimize.cssPrefix=${app.output.js.optimize} +app.output.js.optimize.xtemplate=false +app.output.js.optimize.propNames=${app.output.js.optimize} +app.output.js.optimize.defines=${app.output.js.optimize} +app.output.js.optimize.callParent=${app.output.js.optimize} +app.output.js.optimize.requires=${app.output.js.optimize} + +app.output.framework=framework.js +app.output.framework.path=${app.output.framework} +app.output.framework.enable=false + +app.output.microloader=microloader.js +app.output.microloader.path=${app.output.microloader} +app.output.microloader.enable=true +app.output.microloader.embed=true + +app.output.manifest=app.json +app.output.manifest.path=${app.output.manifest} +app.output.manifest.enable=true +app.output.manifest.embed=false + +app.output.slicer=${app.output.resources.path} +app.output.slicer.path=${app.output.slicer} +app.output.slicer.enable=true + +app.archivePath=archive +app.output.archive=${app.archivePath} +app.output.archive.path=${app.output.archive} + +app.cache.enable=${app.output.deltas.enable} + +app.output.cache=cache.appcache +app.output.cache.path=${app.output.cache} +app.output.cache.enable=true +app.output.appCache.enable=${app.output.cache.enable} +app.output.appCache.path=${app.output.cache.path} +app.output.progressive=false +app.output.progressive.enable=${app.output.progressive} + +build.out.base.path=${app.output.base} +build.out.page.path=${build.out.base.path}/${app.output.page.path} +build.out.resources.path=${build.out.base.path}/${app.output.resources.path} +build.out.css.path=${build.out.base.path}/${app.output.css.path} +build.out.js.path=${build.out.base.path}/${app.output.js.path} +build.out.framework.path=${build.out.base.path}/${app.output.framework.path} +build.out.archive.path=${build.out.base.path}/${app.output.archive.path} +build.out.manifest.path=${build.out.base.path}/${app.output.manifest.path} +build.out.microloader.path=${build.out.base.path}/${app.output.microloader.path} +build.out.appCache.path=${build.out.base.path}/${app.output.appCache.path} + +# Moved to init-impl.xml to handle truthy special values +#build.out.deltas.path=${build.out.base.path}/${app.output.deltas.path} +build.out.slicer.path=${build.out.base.path}/${app.output.slicer.path} + +# place holder properties to allow the newer .path property to control the existing .dir property +build.out.resources.dir=${build.out.resources.path} +build.out.css.dir=${build.out.base.path}/${app.output.css.dir} + +build.out.metadata.path=${build.out.page.path} + +# a temporary output directory used for staging intermediate build artifacts +build.temp.dir=${workspace.build.dir}/temp/${build.environment}/${app.name} + +# the directory under the output folder for placing resources +build.resources.dir=${build.out.resources.path} + +app.manifest.bootstrap=bootstrap.json + +app.bootstrap=${app.dir} +app.bootstrap.base=${app.bootstrap} +app.bootstrap.page=${app.indexHtmlPath} +app.bootstrap.page.path=${app.bootstrap.page} +app.bootstrap.css=${app.bootstrap.css.name} +app.bootstrap.css.path=${app.bootstrap.css} +app.bootstrap.microloader=${app.bootstrap.js.name} +app.bootstrap.microloader.path=${app.bootstrap.microloader} +app.bootstrap.manifest=${app.manifest.bootstrap} +app.bootstrap.manifest.path=${app.bootstrap.manifest} + +build.bootstrap.base.path=${app.bootstrap.base} +build.bootstrap.page.path=${build.bootstrap.base.path}/${app.bootstrap.page.path} +build.bootstrap.css.path=${build.bootstrap.base.path}/${app.bootstrap.css.path} +build.bootstrap.microloader.path=${build.bootstrap.base.path}/${app.bootstrap.microloader.path} +build.bootstrap.manifest.path=${build.bootstrap.base.path}/${app.bootstrap.manifest.path} + +build.bootstrap.metadata.path=${build.bootstrap.page.path} + +# ***************************************************************************** +# JS +# these properties control various aspects of output js code construction +# ***************************************************************************** + +# the output js file that contains all needed js code + +# deprecated, now controlled by app.output.js / app.output.js.path in app.json +build.classes.file=${build.out.js.path} + +# the output js file for framework code, if the framework +# classes are not included in the default all-classes.js file +# deprecated, now controlled by app.output.framework / app.output.framework.path in app.json +build.framework.file=${build.out.framework.path} + +# Don't use these - they are deprecated +build.options.debug.enable=debug:true +build.options.debug.disable=debug:false +build.options.logger.enable=logger:yes +build.options.logger.disable=logger:no + +# This property enables/disables blocks in js output, see build.options +build.options.logger=no + +# This property enables/disables blocks in js output, see build.options +build.options.debug=false + +# This property can be used to pass custom build options in addition to any of the other +# build.options flags. When overlapping, these options take priority, see build.options +build.options.custom= + +# This value is specified by the framework +build.options.default= + +# This property contains the framework ("product") used for filtering of JavaScript using +# the preprocessor. This is set by either ext.properties or touch.properties. +# +#build.options.product=touch + +# This property contains the desired API level used for preprocessor filtering of JavaScript. +# This is set by either ext.properties or touch.properties. +# +#build.options.minVersion=2.1 + +# This property holds the set of js preprocessor options in the form: +# +# name1:value1,name2:value2,... +# +# (used by -init-compiler in init-impl.xml) +# +# This property is not likely to be set directly. Rather, you should set one of the +# contributing properties that are combined to form this one: +# +# build.options.debug +# build.options.logger +# build.options.custom +# +# The other properties that contribute to this are typically not needing to be set: +# +# build.options.product +# build.options.minVersion +# +build.options=logger:${build.options.logger},debug:${build.options.debug},product:${build.options.product},minVersion:${build.options.minVersion},${build.options.default},${build.options.custom} + +# This property can be modified to change general build options +# such as excluding files from the set. The format expects newlines +# for each argument, for example: +# +# build.operations=\ +# exclude\n \ +# -namespace=Ext\n +# +# NOTE: modifications to build.operations are intended to be +# placed in an override of the "-after-init" target, where it +# can be calculated based on other +# ant properties +# +# build.operations= + +# enables / disables the full class optimizer during js builds +# (used by the -compile-* targets in js-impl.xml) +build.optimize.defines=${app.output.js.optimize.defines} +build.optimize.callparent=${app.output.js.optimize.callParent} +build.optimize.cssPrefix=${app.output.js.optimize.cssPrefix} +build.optimize.xtemplate=${app.output.js.optimize.xtemplate} +build.optimize.propNames=${app.output.js.optimize.propNames} +build.optimize.include.metadata=${app.output.js.optimize.requires} +build.optimize.enable=\ + optimize\n \ + -property-name=${build.optimize.propNames}\n \ + -css-prefix=${build.optimize.cssPrefix}\n \ + -xtemplate=${build.optimize.xtemplate}\n \ + -define-rewrite=${build.optimize.defines}\n \ + -call-parent=${build.optimize.callparent}\n \ + -include-metadata=${build.optimize.include.metadata} + +build.optimize.disable= +build.optimize=${build.optimize.disable} + +# enables / disables removing text references from +# package js build files +build.remove.references=true + +# enables / disables removing "requires" and "uses" elements +# from class definitions +build.remove.requirement.nodes=true + +# enables / disables de-quoting certain string references to classes +# like mixin references +build.optimize.string.references=true + +# enables / disables cmd compression +build.compression.cmd=${app.output.js.compress} + +# enables / disables closure compression +build.compression.closure=0 + +# enables / disables uglify compression +build.compression.ugilfy=0 + +build.compile.temp.dir=${build.temp.dir}/sencha-compiler + +# controles whether to keep the temp compile dir after the build +build.compile.temp.dir.keep=true + +# ------------------------------------------ +# DOC ONLY - Do Not Set +# this variable will be set to the appropriate compressor +# option, and is calculated in init-impl.xml, but may be overridded in +# app.properties, .properties, or via command line +# +# build.compression= +# ------------------------------------------ + +# ***************************************************************************** +# Page +# these variables control aspects of building the output markup page +# ***************************************************************************** + +# controls whether the microloader content will be embedded in the output +# markup, or left as a separate resource +build.enable.embedded.microloader=${app.output.microloader.embed} + +# whether to include the page's manifest.json code with the +# microloader content. Production.properties files should set this to +# false to have manifest.json exist as a server resource. +build.enable.embedded.manifest=${app.output.manifest.embed} + +# enables / disables compression of resources referenced in app.json / package.json +# js and css entries +enable.resource.compression=${app.output.resources.compress} + +# defaults to index.html, but may be overridden in app.json +app.indexHtmlPath=index.html + +# the input page file for the application +app.page.name=${app.indexHtmlPath} +app.page.file=${app.dir}/${app.page.name} + +# the output page file +# deprecated, now controlled by app.output.page / app.output.page.path in app.json +build.page.name=${app.page.name} +build.page.dir=${build.out.base.path} +build.page.file=${build.out.page.path} + +# the directory where the microloader files may be found +app.microloader.dir=${app.config.dir}/microloader + +# the file names of the individual microloaders +app.microloader.development=development.js +app.microloader.testing=testing.js +app.microloader.production=production.js + +# the target microloader to use for builds +app.microloader.name=${app.microloader.development} +app.microloader=${app.microloader.dir}/${app.microloader.name} +app.microloader.path=${app.microloader} + +# specifies how to embed the microloader code into the output markup +# {0} is replaced with the content of the microloader file specified +# by app.microloader.path +build.microloader.code.tpl={0} + +# the template to use when generating a stand-alone json manifest file +build.microloader.json.tpl.standalone={0} + +# the template to use when embedding the manifest json directly next to the +# microloader in the output microloader content +build.microloader.json.tpl.embedded=Ext.blink({0}); + +# the template to use in the output microloader content when supplying +# the manifest json as a separate server-side resource ('production' builds) +build.microloader.json.tpl.external=Ext.blink('{'id:''${app.id}'''}'); + +# the template string to use when embedding the microloader content +# into the output markup +build.embedded.microloader.tpl= + +# the compressor to use when embedding the microloader into a page +# can be -closure or -cmd, or leave empty to disable compression +build.embedded.microloader.compressor= + +# the path to the microloader content file, if external to the outpout markup +build.microloader.path=${build.out.microloader.path} + +# the inner markup to embed into the output markup when not including +# the microloader content directly into the output markup +build.embedded.microloader.src=${build.microloader.name} +build.external.microloader.markup= + +# a flag indicating which mode the microloader should run in (production, testing, etc.) +# currently unused : is a placeholder for future microloader interactions +build.microloader.mode=${build.environment} + +# the tag name to use when generating the compiler save set for +# the page's js code +build.tag.name=full-page + +# the name of the archive folder containing source versions for +# delta patch generation +# deprecated, now controlled by app.output.archive / app.output.archive.path in app.json +build.archive.name=archive + +# the output cache manifest file +build.manifest.name=${app.output.appCache.path} +build.manifest.path=${build.out.appCache.path} + +# the name of the manifest json file +build.json.name=${app.manifest.name} + +# the full path to the manifest json file +build.out.json.path=${build.out.manifest.path} + +# Defines the file that will contain Ext.setVersion calls for each used package. +build.out.package.versions=${build.compile.temp.dir}/cmd-packages.js + +# a temp directory for managing extracted resources during the page build +build.app.temp.dir=${build.compile.temp.dir}/app + +# controls the format of checksum headers injected into microloaded content +# either comment style, or code style for js and css files +delta.comment.checksums=false + +# ***************************************************************************** +# Refresh +# these properties are used for generating bootstrap js and css +# files to support dev-time interaction with the app +# ***************************************************************************** + +# the base path to use for generating / calculating bootstrap info +# this property is not longer defaulted here, but calculated in refresh-impl.xml +# based on new app.bootstrap properties +# app.bootstrap.base.path=${app.dir} + +# these control the name of the bootstrap js file +# note: there will be corresponding entries in either the index page +# or app.json that reference these names +# deprecated, use app.bootstrap.microloader +app.bootstrap.js.name=bootstrap.js +app.bootstrap.js=${build.bootstrap.microloader.path} + +# these control the name of the bootstrap css file (for ext 4.2+ apps) +# note: there will be corresponding entries in either the index page +# or app.json that reference these names +app.bootstrap.css.name=bootstrap.css + +# the microloader to use for bootstrapping operations +app.microloader.bootstrap=${app.microloader.dir}/${app.microloader.development} + +# the name of the bootstrap microloader manifest +build.json.bootstrap.name=${app.manifest.bootstrap} + +# the full path to the bootstrap microloader manifest +build.json.bootstrap.path=${build.bootstrap.manifest.path} + +# enables inclusion of override files in the generated bootstrap +bootstrap.include.overrides=true + +# enables inclusion of the Boot.js code in the generated bootstrap +bootstrap.include.boot=false + +# controls the template used to generate load calls for override files +bootstrap.override.tpl=Ext.Loader.loadScriptFile(''{0}'', Ext.emptyFn); + +build.boot.name=Boot.js +build.boot.file=${app.config.dir}/${build.boot.name} +build.slicer.microloader.name=Microloader.js +build.slicer.microloader.file=${app.config.dir}/${build.slicer.microloader.name} + +# the type of the override template ('tpl' or 'jsonp') +bootstrap.override.tpltype=tpl + +# ***************************************************************************** +# Sass / Css +# properties for controling features of sass generation and compilation +# ***************************************************************************** + +# controls the ruby command that is used to execute compasss +# a full path to ruby may be specified rather than allowing the system +# shell to resolve the command +build.ruby.path=ruby + +# -------------------- +# these control properties select the mode used to build the app's styling +# see sass-impl.xml for how then are used + +# enables theme builds for apps using ext 41 style themes +enable.ext41.themes=false + +# enables theme builds for apps using ext 42 style themes +enable.ext42.themes=false + +# enables theme builds for apps using touch style themes +enable.touch.themes=false +# -------------------- + +# selector count threshold to use when +# splitting a single css file into multiple +# css files (IE selector limit workaround) +# +# NOTE: applies only to ext js 4.2+ style theme management, currently +# see the above theme control variables for details +build.css.selector.limit=${app.output.css.split} + +# enables / disable css preprocessor (enable.ext42.themes only) +build.css.preprocess=${app.output.css.preprocess} + +# sets the css preprocessor options, in the form: +# name1:value1,name2:value2,... +build.css.preprocessor.opts= + +# enables / disable css compressor (enable.ext42.themes only) +build.css.compress=${app.output.css.compress} + +# controls the directory used to generate the output app scss file +# for apps that use theme packages +build.sass.dir=${build.temp.dir}/sass + +# Specify the name for the individual resource dirs in the app +# (enable.touch.themes only) +app.sass.name=sass + +# Specify the sass path in the app +# (enable.touch.themes only) +app.sass.dir=${app.dir}/resources/${app.sass.name} + +# name prefix to use for output css / sass files +app.out.base=${app.name}-all +app.out.base.debug=${app.out.base} + +# the output sass file to generate (used with enable.ext42.themes) +app.out.scss=${build.sass.dir}/${app.out.base.debug}.scss +# the output ruby compass config file to generate (used with enable.ext42.themes) +app.out.ruby=${build.sass.dir}/config.rb + +# output css file prefix +app.out.css.prefix=${app.out.base.debug} + +# output css file name +app.out.css.name=${app.out.css.prefix}.css + +# output css file path (relative to build directory root +app.out.css.rel=${app.output.resources.path}/${app.out.css.name} + +# output css file path (full path) +app.out.css=${build.out.css.path} + +# separate file name to use for generating a compressed copy +# of the output css file (this default will compress the file in-place) +app.out.css.compressed=${build.out.css.path} + +# the directory containing sass files for compass to compile +compass.sass.dir=${build.sass.dir} + +# the output directory where compass should place built css files +compass.css.dir=${build.out.css.dir} + +# the directory containing the ruby config file for compass +compass.config.file=${app.out.ruby} + +# enables / disables console highlighting for compass +compass.compile.boring=false + +# enables / disables forced rebuilds for compass +compass.compile.force=true + +# enables / disables stack traces in compass failure output +compass.compile.trace=true + +compass.cache.dir=${workspace.build.dir}/.sass-cache + +compass.working.dir=${build.sass.dir} + +# --------------------------------------------------- +# Legacy properties for ext41 theme directories +# Specify the resources path in the app +app.packages.dir=${app.dir}/packages + +# Specify the theme path in the app (this directory contains the themes) +app.theme.dir=${app.packages.dir} + +# the currently selected ext 41 theme name +theme.name=default +# --------------------------------------------------- + +# ***************************************************************************** +# Slice +# these properties control features of the theme slice build phase +# ***************************************************************************** + +# the resources directory of the application +# note: this property is currently only used for building ext 4.1 style themes +# (used by x-build-theme and x-copy-resources in slice-impl.xml) +app.resources.dir=${app.dir}/resources + +# the directory containing the slicer widget example page +app.example.dir=${app.dir}/sass/example + +# this is the directory used for intermediate build artifacts used +# by the slicer for generating theme images +app.example.build.dir=${build.temp.dir}/slicer-temp + +# properties to control the recirect css file that is +# generated for the slicer example page +app.example.css.name=example.css +app.example.css.file=${app.example.build.dir}/${app.example.css.name} + +# the base path for generating the bootstrap code for the +# slicer page +bootstrap.base.path=${app.example.build.dir} + +# the full file name of the slicer page's bootstrap js file +bootstrap.example.js=${app.example.build.dir}/bootstrap.js + +# the full file name of the slicer page's bootstrap js file +bootstrap.example.json.name=bootstrap.json +bootstrap.example.json=${app.example.build.dir}/${bootstrap.example.json.name} + +# the name of the intermediate screenshot file used for image slicing +build.capture.png=${app.example.build.dir}/theme-capture.png + +# the name of the intermediate widget manifest file used for image slicing +build.capture.json=${app.example.build.dir}/theme-capture.json + +# the location of the slicer widget page +app.example.theme.html.name=theme.html +app.example.theme.html=${cmd.dir}/ant/build/slicer/${app.example.theme.html.name} +app.example.fashion.html.name=fashion.html +app.example.fashion.html=${app.example.dir}/${app.example.fashion.html.name} + +# a name prefix used for slicer page temporary artifacts +app.example.base=${app.name}-example + +# the special slicer page scss file name to generate +app.example.scss=${app.example.build.dir}/${app.example.base}.scss + +# the relative path from the slicer css file to the slicer html file +app.example.css.rel=${app.example.base}.css + +# the path to the css file that will be built for the slicer page +app.example.css=${app.example.build.dir}/${app.example.css.rel} + +# the ruby compass config file to generate for slicer page scss +app.example.out.ruby=${app.example.build.dir}/config.rb +app.example.compass.config=${app.example.out.ruby} + +# legacy ext 41 theme property indicating the name of the +# slicer example page contained in the theme directory +theme.page.name=theme.html + +# Options to pass to the "sencha fs slice" command. +build.slice.options= + +# ***************************************************************************** +# Packager +# these properties control features of the native packaging phase of the +# build process +# ***************************************************************************** + +# enables packaging the built application with the Sencha Desktop Packager +# NOTE: currently unsupported +enable.desktop.packager=false + +# skips packaging the built application with cordova/phonegap +skip.native-package=false + +# a property that controls whether a standalone manifest.json file will be +# generated for the native packaged application +enable.standalone.manifest=false + +# ***************************************************************************** +# Resolve +# these properties control aspects of the dynamic dependency resolver, which +# uses phantomjs to load the application and extract Ext.Loader class load +# history. +# ***************************************************************************** + +# enables / disables dynamic dependency resolution +skip.resolve=true + +# enables the local web server. this may be disabled to load the application's +# page from an existing web server. +skip.web-start=false + +# the port number to start the local web server on +build.web.port=1841 + +# the directory representing the root web folder +build.web.root=${workspace.dir} + +# the base url to access the local web server +build.resolve.url=http://localhost:${build.web.port} + +# a template string used to format the detected dynamic dependencies +build.resolve.tpl={0} + +# the mode to use when formatting the detected dynamic dependencies +build.resolve.mode=references + +# the output file for the detected dynamic dependencies +build.resolve.file=${build.temp.dir}/resolve.json + +# controls whether unmatched external references in the specified file will +# generate build warnings or build failures +build.resolve.allow.unmatched=true + +# ***************************************************************************** +# Watch +# these properties adjust the behavior of the app watch process. +# ***************************************************************************** + +# the default set of actions to run when triggering a rebuild +build.trigger.targets=refresh,resources,sass + +# the watcher targets to run that monitor for code changes +build.watcher.targets=-watch-fashion,-watch-compiler diff --git a/frontend/DynamicForm/.sencha/app/development.defaults.properties b/frontend/DynamicForm/.sencha/app/development.defaults.properties new file mode 100644 index 000000000..e07a438df --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/development.defaults.properties @@ -0,0 +1,30 @@ +# ============================================================================= +# This file defines default property values that apply to the "development" build +# environment. +# +# Please use testing.properties to customize these properties unless you want +# your customizations to be for all environments. In that case, you can instead +# override these properties in build.properties. +# +# The properties defined in this file take priority over defaults.properties +# but are lower priority than build.properties which in turn is lower priority +# than development.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +build.options.logger=yes + +build.options.debug=true + +build.css.compress=false + +build.include.all.scss=true + +# By default we don't need to build an "all.js" file, or a new markup page or +# slice images for IE8/9. These can be added to "development.properties" and +# set to 0 to enable them if needed. +skip.page=1 +skip.js=1 +skip.slice=1 diff --git a/frontend/DynamicForm/.sencha/app/development.properties b/frontend/DynamicForm/.sencha/app/development.properties new file mode 100644 index 000000000..d7a5e576b --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/development.properties @@ -0,0 +1,8 @@ +# ============================================================================= +# This file provides an override point for default variables defined in +# testing.defaults.properties. These properties are only imported when building +# for the "development" environment. +# +# Properties defined in this file take priority over build.properties but are +# only loaded for "development" builds. +# ============================================================================= diff --git a/frontend/DynamicForm/.sencha/app/ext.properties b/frontend/DynamicForm/.sencha/app/ext.properties new file mode 100644 index 000000000..c6ab83ab2 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/ext.properties @@ -0,0 +1,45 @@ +# ============================================================================= +# This file defines default property values that apply to all builds based on +# Ext JS 5.x framework. +# +# Please use build.properties to customize these properties. +# +# To override a property based on build.environment instead add properties to +# one of these higher priority files: +# +# - production.properties +# - testing.properties +# - native.properties +# - package.properties +# +# The properties defined in this file take priority over defaults.properties +# and *.defaults.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +enable.ext42.themes=true + +enable.sencha-core.filter=true + +build.options.product=ext + +build.options.minVersion=5 + +bootstrap.include.boot=true +bootstrap.override.tpl=Ext.Loader.loadScriptsSync +bootstrap.override.tpltype=jsonp + +app.microloader.name=Microloader.js +app.microloader.dir=${app.config.dir} +app.microloader.bootstrap=${app.microloader.dir}/${app.microloader.name} +app.microloader.path=${app.microloader.dir}/${app.microloader.name} + +build.microloader.json.tpl.embedded=var Ext = Ext || '{' '}'; Ext.manifest = Ext.manifest || {0}; +build.microloader.manifest.name=${app.manifest.name} +build.microloader.json.tpl.external=var Ext = Ext || '{' '}'; Ext.manifest = Ext.manifest || "${build.microloader.manifest.name}"; + +build.skip.versions.file=true +build.enable.appmanifest=true +compass.compile.force=false diff --git a/frontend/DynamicForm/.sencha/app/find-cmd-impl.xml b/frontend/DynamicForm/.sencha/app/find-cmd-impl.xml new file mode 100644 index 000000000..55d6826ce --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/find-cmd-impl.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + source ~/.bash_profile; sencha which -p cmd.dir -o '$cmddir$' + + + + + + \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/init-impl.xml b/frontend/DynamicForm/.sencha/app/init-impl.xml new file mode 100644 index 000000000..2963582bb --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/init-impl.xml @@ -0,0 +1,471 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + include + -usedPackagesDeps + and + + + + + # no-op + + + + + + + + + + + + + + + + + + + Application available at http://localhost:${build.web.port} + + + diff --git a/frontend/DynamicForm/.sencha/app/js-impl.xml b/frontend/DynamicForm/.sencha/app/js-impl.xml new file mode 100644 index 000000000..dd487aaa8 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/js-impl.xml @@ -0,0 +1,214 @@ + + + + + + + + + + + + + + + + + + # determine the base set of framework files + exclude + -all + and + include + -tag=${app.output.framework.include} + and + save + allframework + + + + + + + # now load the transitive set based on the json data + exclude + -all + and + include + -json-data=@{file} + -r + and + save + deps + and + + # add any needed deps to the page save set + include + -set=page + and + save + page + + + + + + + + + + # if filtering requirements is configured for 'all' + # then just include all js content on the classpath to + # ensure all dependencies are provided for the used packages + include + -all + and + save + page + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/native.defaults.properties b/frontend/DynamicForm/.sencha/app/native.defaults.properties new file mode 100644 index 000000000..d707366d6 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/native.defaults.properties @@ -0,0 +1,28 @@ +# ============================================================================= +# This file defines default property values that apply to the "native" build +# environment. +# +# Please use native.properties to customize these properties unless you want +# your customizations to be for all environments. In that case, you can instead +# override these properties in build.properties. +# +# The properties defined in this file take priority over defaults.properties +# but are lower priority than build.properties which in turn is lower priority +# than native.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +build.options.logger=no + +build.options.debug=false + +# enable cmd compression +build.compression.cmd=1 + +enable.standalone.manifest=true + +app.microloader.name=testing.js + +skip.native-package=false diff --git a/frontend/DynamicForm/.sencha/app/native.properties b/frontend/DynamicForm/.sencha/app/native.properties new file mode 100644 index 000000000..277ff19c5 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/native.properties @@ -0,0 +1,8 @@ +# ============================================================================= +# This file provides an override point for default variables defined in +# native.defaults.properties. These properties are only imported when building +# for the "native" environment. +# +# Properties defined in this file take priority over build.properties but are +# only loaded for "native" builds. +# ============================================================================= diff --git a/frontend/DynamicForm/.sencha/app/package.defaults.properties b/frontend/DynamicForm/.sencha/app/package.defaults.properties new file mode 100644 index 000000000..c538a8b25 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/package.defaults.properties @@ -0,0 +1,27 @@ +# ============================================================================= +# This file defines default property values that apply to the "package" build +# environment. +# +# Please use package.properties to customize these properties unless you want +# your customizations to be for all environments. In that case, you can instead +# override these properties in build.properties. +# +# The properties defined in this file take priority over defaults.properties +# but are lower priority than build.properties which in turn is lower priority +# than package.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# +# NOTE: This use of "package" applies to native packaged application, not a +# Package in the general since of code libraries. +# ============================================================================= + +build.options.logger=no + +build.options.debug=false + +# enable cmd compression +build.compression.cmd=1 + +app.microloader.name=testing.js diff --git a/frontend/DynamicForm/.sencha/app/package.properties b/frontend/DynamicForm/.sencha/app/package.properties new file mode 100644 index 000000000..3c59c3159 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/package.properties @@ -0,0 +1,11 @@ +# ============================================================================= +# This file provides an override point for default variables defined in +# package.defaults.properties. These properties are only imported when building +# for the "package" environment. +# +# Properties defined in this file take priority over build.properties but are +# only loaded for "package" builds. +# +# NOTE: This use of "package" applies to native packaged application, not a +# Package in the general since of code libraries. +# ============================================================================= diff --git a/frontend/DynamicForm/.sencha/app/packager-impl.xml b/frontend/DynamicForm/.sencha/app/packager-impl.xml new file mode 100644 index 000000000..ba5813ab8 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/packager-impl.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/page-impl.xml b/frontend/DynamicForm/.sencha/app/page-impl.xml new file mode 100644 index 000000000..ec36388e6 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/page-impl.xml @@ -0,0 +1,359 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/phonegap-impl.xml b/frontend/DynamicForm/.sencha/app/phonegap-impl.xml new file mode 100644 index 000000000..1ec137cc4 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/phonegap-impl.xml @@ -0,0 +1,231 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + phonegap ${phonegap.cli.options} create "${app.phonegap.config.path}" ${app.phonegap.config.id} ${app.phonegap.config.name} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Phonegap Build login credentials were was not found. If you have not logged in prior to running this command. + Please either login via "phonegap remote login" or edit your [APP_ROOT]/local.properties and set "phonegap.username" and "phonegap.password" appropriately + + + + + + phonegap ${phonegap.cli.options} remote login --username="${phonegap.build.remote.username}" --password="${phonegap.build.remote.password}" + + + + + + + phonegap ${phonegap.cli.options} remote build ${phonegap.platform} + + + + + + + phonegap ${phonegap.cli.options} remote run ${phonegap.platform} + + + + + + + phonegap ${phonegap.cli.options} remote run ${phonegap.platform} --emulator + + + + + + + + phonegap ${phonegap.cli.options} local build ${phonegap.platform} + + + + + + + phonegap ${phonegap.cli.options} local run ${phonegap.platform} + + + + + + + phonegap ${phonegap.cli.options} local run ${phonegap.platform} --emulator + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/phonegap.defaults.properties b/frontend/DynamicForm/.sencha/app/phonegap.defaults.properties new file mode 100644 index 000000000..4fee1c8ce --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/phonegap.defaults.properties @@ -0,0 +1,15 @@ +# +# Copyright (c) 2012-2014. Sencha Inc. +# + +# Original PhoneGap Packager used the following properties +# here we map in the app space properties to allow for app.json +# setting of these instead of properties files +phonegap.platform=${app.phonegap.config.platform} +phonegap.build.remote=${app.phonegap.config.remote} + +# These are simply shorthanded as the user must specify them in +# a local.properties file anyway. +# No need for the user to type all this out. +phonegap.build.remote.username=${phonegap.username} +phonegap.build.remote.password=${phonegap.password} \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/plugin.xml b/frontend/DynamicForm/.sencha/app/plugin.xml new file mode 100644 index 000000000..d57eba874 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/plugin.xml @@ -0,0 +1,32 @@ + + + + + + diff --git a/frontend/DynamicForm/.sencha/app/production.defaults.properties b/frontend/DynamicForm/.sencha/app/production.defaults.properties new file mode 100644 index 000000000..1b03df717 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/production.defaults.properties @@ -0,0 +1,27 @@ +# ============================================================================= +# This file defines default property values that apply to the "production" build +# environment. +# +# Please use production.properties to customize these properties unless you want +# your customizations to be for all environments. In that case, you can instead +# override these properties in build.properties. +# +# The properties defined in this file take priority over defaults.properties +# but are lower priority than build.properties which in turn is lower priority +# than production.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +build.options.logger=no + +build.options.debug=false + +# enable the full class system optimizer +app.output.js.optimize=true +build.optimize=${build.optimize.enable} + +enable.resource.compression=true + +build.embedded.microloader.compressor=-closure diff --git a/frontend/DynamicForm/.sencha/app/production.properties b/frontend/DynamicForm/.sencha/app/production.properties new file mode 100644 index 000000000..8f03e3853 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/production.properties @@ -0,0 +1,8 @@ +# ============================================================================= +# This file provides an override point for default variables defined in +# production.defaults.properties. These properties are only imported when building +# for the "production" environment. +# +# Properties defined in this file take priority over build.properties but are +# only loaded for "production" builds. +# ============================================================================= diff --git a/frontend/DynamicForm/.sencha/app/refresh-impl.xml b/frontend/DynamicForm/.sencha/app/refresh-impl.xml new file mode 100644 index 000000000..3c2f96e63 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/refresh-impl.xml @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +var Ext = Ext || {}; +Ext.manifest = Ext.manifest || "${build.json.bootstrap.rel.path}"; + + + + + + + + + + + + + + + +/** + * This file is generated by Sencha Cmd and should NOT be edited. It is a + * combination of content from app.json, and all required package's package.json + * files. Customizations should be placed in app.json. + */ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/resolve-impl.xml b/frontend/DynamicForm/.sencha/app/resolve-impl.xml new file mode 100644 index 000000000..51981f37f --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/resolve-impl.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/DynamicForm/.sencha/app/resources-impl.xml b/frontend/DynamicForm/.sencha/app/resources-impl.xml new file mode 100644 index 000000000..78899409f --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/resources-impl.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + diff --git a/frontend/DynamicForm/.sencha/app/sass-impl.xml b/frontend/DynamicForm/.sencha/app/sass-impl.xml new file mode 100644 index 000000000..4f9bceba8 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/sass-impl.xml @@ -0,0 +1,398 @@ + + + + + + + + + + + + + + + + + include + -all + + + + + restore + page + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Preprocessing @{cssfile} to ${css.output.name} + + + + + + + Compressing @{cssfile} to ${css.output.name} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + fashion + -config=${build.out.json.path} + -compress=${build.css.compress} + -split=${build.css.selector.limit} + -saveFile=${app.dir}/${app.sass.generated.var} + -slicer=false + ${app.out.scss} + ${app.out.css} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Compiling sass directory : @{theme}/sass + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/DynamicForm/.sencha/app/sencha.cfg b/frontend/DynamicForm/.sencha/app/sencha.cfg new file mode 100644 index 000000000..a31f5cbb1 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/sencha.cfg @@ -0,0 +1,10 @@ +# this property specifies a comma separated list of paths containing +# resources to copy to the build directory +app.resource.paths= + +#============================================================================== +# Custom Properties - Place customizations below this line to avoid merge +# conflicts with newer versions + +app.framework.version=6.0.1.250 +app.cmd.version=6.5.1.240 diff --git a/frontend/DynamicForm/.sencha/app/slice-impl.xml b/frontend/DynamicForm/.sencha/app/slice-impl.xml new file mode 100644 index 000000000..464b1c21e --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/slice-impl.xml @@ -0,0 +1,406 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + fashion + -config=${app.dir}/app.json + -slicer=true + -compress=${build.css.compress} + -split=${build.css.selector.limit} + ${app.example.build.dir} + ${app.example.build.dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + exclude + -tag=framework,package-sencha-core,package-core,package-${toolkit.name} + + + + + + + + + + + + + + + + Capture theme image to ${build.capture.png} + + + + + + + + + + + + + Capture theme image to ${build.capture.png} + + + + + + + Slicing theme images to ${build.resources.dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Copying base framework images from ${framework.theme.dir} to ${tmp.img.dir} + + + + + + + + Building sass for theme ${theme.name} + + + + + + Slicing images for theme ${theme.name} to ${tmp.img.dir} + + + + + + + + Copying user defined images from @{theme}/images to ${tmp.img.dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + Processing theme directories from ${app.theme.dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/DynamicForm/.sencha/app/testing.defaults.properties b/frontend/DynamicForm/.sencha/app/testing.defaults.properties new file mode 100644 index 000000000..d66544787 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/testing.defaults.properties @@ -0,0 +1,21 @@ +# ============================================================================= +# This file defines default property values that apply to the "testing" build +# environment. +# +# Please use testing.properties to customize these properties unless you want +# your customizations to be for all environments. In that case, you can instead +# override these properties in build.properties. +# +# The properties defined in this file take priority over defaults.properties +# but are lower priority than build.properties which in turn is lower priority +# than testing.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +build.options.logger=yes + +build.options.debug=true + +build.css.compress=false diff --git a/frontend/DynamicForm/.sencha/app/testing.properties b/frontend/DynamicForm/.sencha/app/testing.properties new file mode 100644 index 000000000..39b1727de --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/testing.properties @@ -0,0 +1,8 @@ +# ============================================================================= +# This file provides an override point for default variables defined in +# testing.defaults.properties. These properties are only imported when building +# for the "testing" environment. +# +# Properties defined in this file take priority over build.properties but are +# only loaded for "testing" builds. +# ============================================================================= diff --git a/frontend/DynamicForm/.sencha/app/watch-impl.xml b/frontend/DynamicForm/.sencha/app/watch-impl.xml new file mode 100644 index 000000000..d89b6b0b1 --- /dev/null +++ b/frontend/DynamicForm/.sencha/app/watch-impl.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/DynamicForm/Readme.md b/frontend/DynamicForm/Readme.md new file mode 100644 index 000000000..fdf4cf41a --- /dev/null +++ b/frontend/DynamicForm/Readme.md @@ -0,0 +1,108 @@ +# DynamicForm + +This folder is primarily a container for the top-level pieces of the application. +While you can remove some files and folders that this application does not use, +be sure to read below before deciding what can be deleted and what needs to be +kept in source control. + +The following files are all needed to build and load the application. + + - `"app.json"` - The application descriptor which controls how the application is + built and loaded. + - `"app.js"` - The file that launches the application. This is primarily used to + launch an instance of the `MyApp.Application` class. + - `"index.html"` - The default web page for this application. This can be customized + in `"app.json"`. + - `"build.xml"` - The entry point for Sencha Cmd to access the generated build + script. This file is a place where you can hook into these processes and tune + them. See the comments in that file for more information. + - `".sencha"` - This (typically hidden) folder contains the generated build scripts + and configuration files for the application. This folder is required in order to + build the application but its content should not need to be edited in most cases. + The content of this folder is updated by "sencha app upgrade". + +These files can be ignored from source control as they are regenerated by the build +process. + + - `"build"` - This folder contain the output of the build. The generated CSS file, + consolidated resources and concatenated JavaScript file are all stored in this + folder. + - `"bootstrap.*"` - These files are generated by the build and watch commands to + enable the application to load in "development mode". + +# Other Folders + +## Basic Application Structure + +Applications that target a single toolkit will have the following structure. + + app/ # Contains JavaScript code + model/ # Data model classes + view/ # Views as well as ViewModels and ViewControllers + store/ # Data stores + controller/ # Global / application-level controllers + + overrides/ # JavaScript code that is automatically required + + sass/ + etc/ # Misc Sass code (all.scss is imported by default) + var/ # Sass variable and mixin declarations + src/ # Sass rules + + resources/ # Assets such as images, fonts, etc. + +See the [Sass readme](sass/Readme.md) for details on the "sass" folder. + +## Universal Applications + +In a Universal Application, the basic application structure above is retained but +only holds code, resources, etc. pieces that are used in both classic and modern +build profiles. The following additional directories are used to isolate code and +other files that are toolkit-specific: + + classic/ # Content specific to the classic toolkit + src/ + model/ # Data model classes + view/ # Views as well as ViewModels and ViewControllers + store/ # Data stores + controller/ # Global / application-level controllers + + overrides/ # JavaScript code that is automatically required + + sass/ + etc/ # Misc Sass code (all.scss is imported by default) + var/ # Sass variable and mixin declarations + src/ # Sass rules + + resources/ # Assets such as images, fonts, etc. + + modern/ # Content specific to the modern toolkit + src/ + model/ # Data model classes + view/ # Views as well as ViewModels and ViewControllers + store/ # Data stores + controller/ # Global / application-level controllers + + overrides/ # JavaScript code that is automatically required + + sass/ + etc/ # Misc Sass code (all.scss is imported by default) + var/ # Sass variable and mixin declarations + src/ # Sass rules + + resources/ # Assets such as images, fonts, etc. + +## Overrides + +The contents of "overrides" folders are automatically required and included in +builds. These should not be explicitly mentioned in "requires" or "uses" in code. +This area is intended for overrides like these: + + Ext.define('DynamicForm.overrides.foo.Bar', { + override: 'Ext.foo.Bar', + ... + }); + +Such overrides, while automatically required, will only be included if their target +class ("Ext.foo.Bar" in this case) is also required. This simplifies applying +patches or extensions to other classes. diff --git a/frontend/DynamicForm/app.js b/frontend/DynamicForm/app.js new file mode 100644 index 000000000..a211c6495 --- /dev/null +++ b/frontend/DynamicForm/app.js @@ -0,0 +1,26 @@ +/* + * This file is generated and updated by Sencha Cmd. You can edit this file as + * needed for your application, but these edits will have to be merged by + * Sencha Cmd when upgrading. + */ +Ext.application({ + name: 'DynamicForm', + + extend: 'DynamicForm.Application', + + requires: [ + 'DynamicForm.view.main.Main' + ], + + // The name of the initial view to create. With the classic toolkit this class + // will gain a "viewport" plugin if it does not extend Ext.Viewport. With the + // modern toolkit, the main view will be added to the Viewport. + // + mainView: 'DynamicForm.view.main.Main' + + //------------------------------------------------------------------------- + // Most customizations should be made to DynamicForm.Application. If you need to + // customize this file, doing so below this section reduces the likelihood + // of merge conflicts when upgrading to new versions of Sencha Cmd. + //------------------------------------------------------------------------- +}); diff --git a/frontend/DynamicForm/app.json b/frontend/DynamicForm/app.json new file mode 100644 index 000000000..c6bf65dd4 --- /dev/null +++ b/frontend/DynamicForm/app.json @@ -0,0 +1,500 @@ +{ + "name": "DynamicForm", + "namespace": "DynamicForm", + "version": "1.0.0.0", + "framework": "ext", + "toolkit": "classic", + "theme": "theme-triton", + + /** + * The list of required packages (with optional versions; default is "latest"). + * + * For example, + * + * "requires": [ + * "charts" + * ] + */ + "requires": [ + "font-awesome" + ], + + /** + * The relative path to the application's markup file (html, jsp, asp, etc.). + */ + "indexHtmlPath": "index.html", + + /** + * Comma-separated string with the paths of directories or files to search. Any classes + * declared in these locations will be available in your class "requires" or in calls + * to "Ext.require". The "app.dir" variable below is expanded to the path where the + * application resides (the same folder in which this file is located). + */ + "classpath": [ + "app" + ], + + /** + * Comma-separated string with the paths of directories or files to search. Any classes + * declared in these locations will be automatically required and included in the build. + * If any file defines an Ext JS override (using Ext.define with an "override" property), + * that override will in fact only be included in the build if the target class specified + * in the "override" property is also included. + */ + "overrides": [ + "overrides" + ], + + /** + * Fashion build configuration properties. + */ + "fashion": { + + "inliner": { + /** + * Disable resource inliner. Production builds enable this by default. + */ + "enable": false + } + }, + + /** + * Sass configuration properties. + */ + "sass": { + /** + * The root namespace to use when mapping *.scss files to classes in the + * sass/src and sass/var directories. For example, "DynamicForm.view.Foo" would + * map to "sass/src/view/Foo.scss". If we changed this to "DynamicForm.view" then + * it would map to "sass/src/Foo.scss". To style classes outside the app's + * root namespace, change this to "". Doing so would change the mapping of + * "DynamicForm.view.Foo" to "sass/src/DynamicForm/view/Foo.scss". + */ + "namespace": "DynamicForm", + + /** + * Generated sass source settings + * + * "generated": { + * // The file used to save sass variables edited via Sencha Inspector and Sencha Themer. + * // This file will automatically be applied to the end of the scss build. + * "var": "sass/save.scss", + * + * // The directory used to save generated sass sources. + * // This directory will automatically be applied to the end of the scss build. + * "src": "sass/save" + * } + * + */ + + "generated": { + "var": "sass/save.scss", + "src": "sass/save" + }, + + /** + * Comma-separated list of files or folders containing extra Sass. These + * files are automatically included in the Sass compilation. By default this + * is just "etc/all.scss" to allow import directives to control the order + * other files are included. + * + * All "etc" files are included at the top of the Sass compilation in their + * dependency order: + * + * +-------+---------+ + * | | base | + * | theme +---------+ + * | | derived | + * +-------+---------+ + * | packages | (in package dependency order) + * +-----------------+ + * | application | + * +-----------------+ + */ + "etc": [ + "sass/etc/all.scss" + ], + + /** + * Comma-separated list of folders containing Sass variable definitions + * files. These file can also define Sass mixins for use by components. + * + * All "var" files are included after "etc" files in the Sass compilation in + * dependency order: + * + * +-------+---------+ + * | | base | + * | theme +---------+ + * | | derived | + * +-------+---------+ + * | packages | (in package dependency order) + * +-----------------+ + * | application | + * +-----------------+ + * + * The "sass/var/all.scss" file is always included at the start of the var + * block before any files associated with JavaScript classes. + */ + "var": [ + "sass/var/all.scss", + "sass/var" + ], + + /** + * Comma-separated list of folders containing Sass rule files. + * + * All "src" files are included after "var" files in the Sass compilation in + * dependency order (the same order as "etc"): + * + * +-------+---------+ + * | | base | + * | theme +---------+ + * | | derived | + * +-------+---------+ + * | packages | (in package dependency order) + * +-----------------+ + * | application | + * +-----------------+ + */ + "src": [ + "sass/src" + ] + }, + + /** + * List of all JavaScript assets in the right execution order. + * + * Each item is an object with the following format: + * + * { + * // Path to file. If the file is local this must be a relative path from + * // this app.json file. + * // + * "path": "path/to/script.js", // REQUIRED + * + * // Set to true on one file to indicate that it should become the container + * // for the concatenated classes. + * // + * "bundle": false, // OPTIONAL + * + * // Set to true to include this file in the concatenated classes. + * // + * "includeInBundle": false, // OPTIONAL + * + * // Specify as true if this file is remote and should not be copied into the + * // build folder. Defaults to false for a local file which will be copied. + * // + * "remote": false, // OPTIONAL + * + * // If not specified, this file will only be loaded once, and cached inside + * // localStorage until this value is changed. You can specify: + * // + * // - "delta" to enable over-the-air delta update for this file + * // - "full" means full update will be made when this file changes + * // + * "update": "", // OPTIONAL + * + * // A value of true indicates that is a development mode only dependency. + * // These files will not be copied into the build directory or referenced + * // in the generate app.json manifest for the micro loader. + * // + * "bootstrap": false // OPTIONAL + * } + * + */ + "js": [ + { + "path": "${framework.dir}/build/ext-all-rtl-debug.js" + }, + { + "path": "app.js", + "bundle": true + } + ], + + /** + * List of all CSS assets in the right inclusion order. + * + * Each item is an object with the following format: + * + * { + * // Path to file. If the file is local this must be a relative path from + * // this app.json file. + * // + * "path": "path/to/stylesheet.css", // REQUIRED + * + * // Specify as true if this file is remote and should not be copied into the + * // build folder. Defaults to false for a local file which will be copied. + * // + * "remote": false, // OPTIONAL + * + * // If not specified, this file will only be loaded once, and cached inside + * // localStorage until this value is changed. You can specify: + * // + * // - "delta" to enable over-the-air delta update for this file + * // - "full" means full update will be made when this file changes + * // + * "update": "" // OPTIONAL + * } + */ + "css": [ + { + // this entry uses an ant variable that is the calculated + // value of the generated output css file for the app, + // defined in .sencha/app/defaults.properties + "path": "${build.out.css.path}", + "bundle": true, + "exclude": ["fashion"] + } + ], + + /** + * This option is used to configure the dynamic loader. At present these options + * are supported. + * + */ + "loader": { + // This property controls how the loader manages caching for requests: + // + // - true: allows requests to receive cached responses + // - false: disable cached responses by adding a random "cache buster" + // - other: a string (such as the build.timestamp shown here) to allow + // requests to be cached for this build. + // + "cache": false, + + // When "cache" is not true, this value is the request parameter used + // to control caching. + // + "cacheParam": "_dc" + }, + + /** + * Settings specific to production builds. + */ + "production": { + "output": { + "appCache": { + "enable": true, + "path": "cache.appcache" + } + }, + "loader": { + "cache": "${build.timestamp}" + }, + "cache": { + "enable": true + }, + "compressor": { + "type": "yui" + } + }, + + /** + * Settings specific to testing builds. + */ + "testing": { + }, + + /** + * Settings specific to development builds. + */ + "development": { + "watch": { + "delay": 250 + } + }, + + /** + * Controls the output structure of development-mode (bootstrap) artifacts. May + * be specified by a string: + * + * "bootstrap": "${app.dir}" + * + * This will adjust the base path for all bootstrap objects, or expanded into object + * form: + * + * "bootstrap": { + * "base": "${app.dir}", + * "manifest": "bootstrap.json", + * "microloader": "bootstrap.js", + * "css": "bootstrap.css" + * } + * + * You can optionally exclude entries from the manifest. For example, to exclude + * the "loadOrder" (to help development load approximate a build) you can add: + * + * "bootstrap": { + * "manifest": { + * "path": "bootstrap.json", + * "exclude": "loadOrder" + * } + * } + * + */ + "bootstrap": { + "base": "${app.dir}", + + "microloader": "bootstrap.js", + "css": "bootstrap.css" + }, + + /** + * Controls the output directory for build resources. May be set with + * either a string: + * + * "${workspace.build.dir}/${build.environment}/${app.name}" + * + * or an object containing values for various types of build artifacts: + * + * { + * "base": "${workspace.build.dir}/${build.environment}/${app.name}", + * "page": { + * "path": "../index.html", + * "enable": false + * }, + * "css": "${app.output.resources}/${app.name}-all.css", + * "js": { + * "path": "app.js", + * // This setting constrols the output language level. Set to 'ES6' to + * // disable the transpiler + * "version": "ES5" + * }, + * "microloader": { + * "path": "microloader.js", + * "embed": true, + * "enable": true + * }, + * "manifest": { + * "path": "app.json", + * "embed": false, + * "enable": "${app.output.microloader.enable}" + * }, + * "resources": "resources", + * "slicer": { + * "path": "${app.output.resources}/images", + * "enable": false + * }, + * // Setting the "enable" property of this object to a Truthy value will cause a Application Cache + * // manifest file to be generated based on this files appCache object. This file will then be injected + * // into the index.html file of the built application + * "appCache":{ + * "enable": false" + * } + * } + * + */ + + "output": { + "base": "${workspace.build.dir}/${build.environment}/${app.name}", + "appCache": { + "enable": false + } + }, + + /** + * Controls for localStorage caching + * "cache": { + * // This property controls whether localStorage caching of this manifest file is on or off. + * // if disabled no deltas will be generated during a build and full updates will be disabled + * "enable": false, + * + * // This property allows for global toggle of deltas. + * // If set to a string the value will be used as the path to where deltas will be generated relative to you build. + * // If set to a Truthy Value the default path ok "deltas" will be used + * // If set to a Falsey value or if this property is not present deltas will be disabled and not generated. + * + * "deltas": "deltas" + * } + */ + + "cache": { + "enable": false, + "deltas": true + }, + + /** + * Used to automatically generate cache.manifest (HTML 5 application cache manifest) + * file when you build. + */ + "appCache": { + /** + * List of items in the CACHE MANIFEST section + */ + "cache": [ + "index.html" + ], + /** + * List of items in the NETWORK section + */ + "network": [ + "*" + ], + /** + * List of items in the FALLBACK section + */ + "fallback": [] + }, + + /** + * Extra resources to be copied into the resource folder as specified in the "resources" + * property of the "output" object. Folders specified in this list will be deeply copied. + */ + "resources": [ + { + "path": "resources", + "output": "shared" + } + ], + + /** + * Directory path to store all previous production builds. Note that the content + * generated inside this directory must be kept intact for proper generation of + * deltas between updates. + */ + + "archivePath": "archive", + + /** + * Additional resources used during theme slicing operations + */ + "slicer": { + "js": [ + { + "path": "sass/example/custom.js", + "isWidgetManifest": true + } + ], + "output": { + "appCache": { + "enable": false + } + }, + "cache": { + "enable": false + } + }, + + /** + * Build Profiles. This object's properties are each a "build profile". You can + * add as many as you need to produce optimized builds for devices, themes, locales + * or other criteria. Your "Ext.beforeLoad" hook (see index.html) is responsible for + * selecting the desired build profile by setting "Ext.manifest" to one of these + * names. + * + */ + + /** + * File / directory name patttern to ignore when copying to the builds. Must be a + * valid regular expression. + */ + "ignore": [ + "(^|/)CVS(/?$|/.*?$)" + ], + + /** + * Uniquely generated id for this application, used as prefix for localStorage keys. + * Normally you should never change this value. + */ + "id": "74c5a200-fbe2-46e5-a450-39e55547e827" +} diff --git a/frontend/DynamicForm/app/Application.js b/frontend/DynamicForm/app/Application.js new file mode 100644 index 000000000..e9d34649e --- /dev/null +++ b/frontend/DynamicForm/app/Application.js @@ -0,0 +1,35 @@ +/** + * The main application class. An instance of this class is created by app.js when it + * calls Ext.application(). This is the ideal place to handle application launch and + * initialization details. + */ +Ext.define('DynamicForm.Application', { + extend: 'Ext.app.Application', + + name: 'DynamicForm', + + quickTips: false, + platformConfig: { + desktop: { + quickTips: true + } + }, + + stores: [ + // TODO: add global / shared stores here + ], + + launch: function () { + // TODO - Launch the application + }, + + onAppUpdate: function () { + Ext.Msg.confirm('Application Update', 'This application has an update, reload?', + function (choice) { + if (choice === 'yes') { + window.location.reload(); + } + } + ); + } +}); diff --git a/frontend/DynamicForm/app/Readme.md b/frontend/DynamicForm/app/Readme.md new file mode 100644 index 000000000..4942954b9 --- /dev/null +++ b/frontend/DynamicForm/app/Readme.md @@ -0,0 +1,30 @@ +# ./controller + +This folder contains the application's global controllers. ViewControllers are located +alongside their respective view class in `"./view"`. These controllers are used for routing +and other activities that span all views. + +# ./model + +This folder contains the application's (data) Model classes. + +# ./view + +This folder contains the views as well as ViewModels and ViewControllers depending on the +application's architecture. Pure MVC applications may not have ViewModels, for example. For +MVCVM applications or MVC applications that use ViewControllers, the following directory +structure is recommended: + + ./view/ + foo/ # Some meaningful grouping of one or more views + Foo.js # The view class + FooController.js # The controller for Foo (a ViewController) + FooModel.js # The ViewModel for Foo + +This structure helps keep these closely related classes together and easily identifiable in +most tabbed IDE's or text editors. + +# ./store + +This folder contains any number of store instances or types that can then be reused in the +application. diff --git a/frontend/DynamicForm/app/model/Readme.md b/frontend/DynamicForm/app/model/Readme.md new file mode 100644 index 000000000..c0fe7623f --- /dev/null +++ b/frontend/DynamicForm/app/model/Readme.md @@ -0,0 +1 @@ +This folder contains the Models for this application. diff --git a/frontend/DynamicForm/app/store/Personnel.js b/frontend/DynamicForm/app/store/Personnel.js new file mode 100644 index 000000000..ba3de8de7 --- /dev/null +++ b/frontend/DynamicForm/app/store/Personnel.js @@ -0,0 +1,24 @@ +Ext.define('DynamicForm.store.Personnel', { + extend: 'Ext.data.Store', + + alias: 'store.personnel', + + fields: [ + 'name', 'email', 'phone' + ], + + data: { items: [ + { name: 'Jean Luc', email: "jeanluc.picard@enterprise.com", phone: "555-111-1111" }, + { name: 'Worf', email: "worf.moghsson@enterprise.com", phone: "555-222-2222" }, + { name: 'Deanna', email: "deanna.troi@enterprise.com", phone: "555-333-3333" }, + { name: 'Data', email: "mr.data@enterprise.com", phone: "555-444-4444" } + ]}, + + proxy: { + type: 'memory', + reader: { + type: 'json', + rootProperty: 'items' + } + } +}); diff --git a/frontend/DynamicForm/app/store/Readme.md b/frontend/DynamicForm/app/store/Readme.md new file mode 100644 index 000000000..d18a54aaa --- /dev/null +++ b/frontend/DynamicForm/app/store/Readme.md @@ -0,0 +1,2 @@ +This folder contains store instances (identified by storeId) and store types +(with "store.foo" aliases). diff --git a/frontend/DynamicForm/app/view/main/List.js b/frontend/DynamicForm/app/view/main/List.js new file mode 100644 index 000000000..cdd759cf5 --- /dev/null +++ b/frontend/DynamicForm/app/view/main/List.js @@ -0,0 +1,75 @@ +/** + * This view is an example list of people. + */ +Ext.define('DynamicForm.view.main.List', { + extend: 'Ext.panel.Panel', + xtype: 'mainlist', + + requires: [ + 'Ext.form.field.Text', + 'Ext.form.field.Number', + 'Ext.form.field.Checkbox', + 'Ext.form.field.Radio', + 'Ext.form.field.Date', + 'Ext.form.field.Time', + 'Ext.form.FieldSet' + ], + + initComponent: function () { + var me = this; + + Ext.apply(this, { + layout: { + type: 'hbox', + pack: 'start', + align: 'stretch' + }, + items: [{ + xtype: 'panel', + title: 'Input', + flex: 1, + bodyPadding: 10, + layout: 'form', + items: [ + { + xtype: 'textareafield', + name: 'textarea1', + emptyText: 'Copie e Cole um exemplo aqui', + reference: 'txtInput', + allowBlank:false, + height: 300 + }, + ], + tbar: [ + { + xtype: 'button', + text: 'Run', + handler: 'onBtnClickRun' + } + ] + }, + { + xtype: 'form', + title: 'Preview', + reference: 'preview-form', + flex: 1, + bodyPadding: 10, + layout: 'form', + }, { + xtype: 'panel', + title: "Exemplos", + flex: 1, + html: 'Textfield:
{"xtype": "textfield", "name": "campo1", "fieldLabel": "Campo 1", "value": "Text field value"}' + + '

Number Field (Com Validação):
{"xtype": "numberfield", "name": "numberfield1", "fieldLabel": "Number field", "value": 5, "minValue": 0,"maxValue": 50}' + + '

Checkbox:
{"xtype": "checkboxfield","name": "checkbox1","fieldLabel": "Checkbox","boxLabel": "box label"}' + + '

Radio:
{"xtype": "radiofield","name": "radio1","value": "radiovalue1","fieldLabel": "Radio buttons","boxLabel": "radio 1"}' + + '

Datefield:
{"xtype": "datefield","name": "date1","fieldLabel": "Date Field"}' + + '

Timefield:
{"xtype": "timefield","name": "time1","fieldLabel": "Time Field","minValue": "1:30 AM","maxValue": "9:15 PM"}' + + '

Agrupados:
{"xtype": "fieldset","title": "Details","collapsible": true,"defaults": {"labelAlign": "top"},"items": [{"xtype": "textfield", "name": "campo1", "fieldLabel": "Campo 1", "value": "Text field value"},{"xtype": "datefield","name": "date1","fieldLabel": "Date Field"}]}' + }] + }) + + me.callParent(arguments); + }, + +}); diff --git a/frontend/DynamicForm/app/view/main/Main.js b/frontend/DynamicForm/app/view/main/Main.js new file mode 100644 index 000000000..927916837 --- /dev/null +++ b/frontend/DynamicForm/app/view/main/Main.js @@ -0,0 +1,86 @@ +/** + * This class is the main view for the application. It is specified in app.js as the + * "mainView" property. That setting automatically applies the "viewport" + * plugin causing this view to become the body element (i.e., the viewport). + * + * TODO - Replace this content of this view to suite the needs of your application. + */ +Ext.define('DynamicForm.view.main.Main', { + extend: 'Ext.tab.Panel', + xtype: 'app-main', + + requires: [ + 'Ext.plugin.Viewport', + 'Ext.window.MessageBox', + + 'DynamicForm.view.main.MainController', + 'DynamicForm.view.main.MainModel', + 'DynamicForm.view.main.List' + ], + + controller: 'main', + viewModel: 'main', + + ui: 'navigation', + + tabBarHeaderPosition: 1, + titleRotation: 0, + tabRotation: 0, + + header: { + layout: { + align: 'stretchmax' + }, + title: { + bind: { + text: '{name}' + }, + flex: 0 + }, + iconCls: 'fa-th-list' + }, + + tabBar: { + flex: 1, + layout: { + align: 'stretch', + overflowHandler: 'none' + } + }, + + responsiveConfig: { + tall: { + headerPosition: 'top' + }, + wide: { + headerPosition: 'left' + } + }, + + defaults: { + bodyPadding: 20, + tabConfig: { + plugins: 'responsive', + responsiveConfig: { + wide: { + iconAlign: 'left', + textAlign: 'left' + }, + tall: { + iconAlign: 'top', + textAlign: 'center', + width: 120 + } + } + } + }, + + items: [{ + title: 'Dynamic Forms', + iconCls: 'fa-home', + // The following grid shares a store with the classic version's grid as well! + items: [{ + xtype: 'mainlist' + }] + }] +}); diff --git a/frontend/DynamicForm/app/view/main/MainController.js b/frontend/DynamicForm/app/view/main/MainController.js new file mode 100644 index 000000000..1a367758b --- /dev/null +++ b/frontend/DynamicForm/app/view/main/MainController.js @@ -0,0 +1,51 @@ +/** + * This class is the controller for the main view for the application. It is specified as + * the "controller" of the Main view class. + * + * TODO - Replace this content of this view to suite the needs of your application. + */ +Ext.define('DynamicForm.view.main.MainController', { + extend: 'Ext.app.ViewController', + + alias: 'controller.main', + + onItemSelected: function (sender, record) { + Ext.Msg.confirm('Confirm', 'Are you sure?', 'onConfirm', this); + }, + + onConfirm: function (choice) { + if (choice === 'yes') { + // + } + }, + + onBtnClickRun: function () { + console.log('onBtnClickRun') + var me = this, + inputfield = me.lookup('txtInput'), + previewform = me.lookup('preview-form'), + obj; + + console.log(previewform) + + if (inputfield.isValid()) { + + //test = '{"xtype": "textfield", "name": "campo1", "fieldLabel": "Campo 1", "value": "Text field value"}' + + // console.log(JSON.parse(inputfield.getValue())) + // console.log(test) + // console.log(JSON.parse(test)) + + + try { + obj = JSON.parse(inputfield.getValue()); + } catch(err) { + Ext.MessageBox.alert('Status', 'Json com formato invalido.'); + } + previewform.removeAll() + previewform.add(JSON.parse(inputfield.getValue())) + } else { + Ext.MessageBox.alert('Status', 'Não pode ser em branco.'); + } + } +}); diff --git a/frontend/DynamicForm/app/view/main/MainModel.js b/frontend/DynamicForm/app/view/main/MainModel.js new file mode 100644 index 000000000..7ea8f5b94 --- /dev/null +++ b/frontend/DynamicForm/app/view/main/MainModel.js @@ -0,0 +1,16 @@ +/** + * This class is the view model for the Main view of the application. + */ +Ext.define('DynamicForm.view.main.MainModel', { + extend: 'Ext.app.ViewModel', + + alias: 'viewmodel.main', + + data: { + name: 'DynamicForm', + + loremIpsum: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.' + } + + //TODO - add data, formulas and/or methods to support your view +}); diff --git a/frontend/DynamicForm/bootstrap.css b/frontend/DynamicForm/bootstrap.css new file mode 100644 index 000000000..cd0d13b8a --- /dev/null +++ b/frontend/DynamicForm/bootstrap.css @@ -0,0 +1,9 @@ + + +/* + * This file is generated by Sencha Cmd and should NOT be edited. It redirects + * to the most recently built CSS file for the application to allow index.html + * in the development directory to load properly (i.e., "dev mode"). + */ +@import '../build/development/DynamicForm/resources/DynamicForm-all.css'; + diff --git a/frontend/DynamicForm/bootstrap.js b/frontend/DynamicForm/bootstrap.js new file mode 100644 index 000000000..f01b7e951 --- /dev/null +++ b/frontend/DynamicForm/bootstrap.js @@ -0,0 +1,2698 @@ +var Ext = Ext || {}; +Ext.manifest = Ext.manifest || "bootstrap.json"; +// @tag core +// @define Ext.Boot + +var Ext = Ext || {}; + +// +/** + * @class Ext.Boot + * @singleton + * @private + */ +Ext.Boot = Ext.Boot || (function (emptyFn) { + + var doc = document, + _emptyArray = [], + _config = { + /** + * @cfg {Boolean} [disableCaching=true] + * If `true` current timestamp is added to script URL's to prevent caching. + * In debug builds, adding a "cache" or "disableCacheBuster" query parameter + * to the page's URL will set this to `false`. + */ + disableCaching: (/[?&](?:cache|disableCacheBuster)\b/i.test(location.search) || + !(/http[s]?\:/i.test(location.href)) || + /(^|[ ;])ext-cache=1/.test(doc.cookie)) ? false : + true, + + /** + * @cfg {String} [disableCachingParam="_dc"] + * The query parameter name for the cache buster's timestamp. + */ + disableCachingParam: '_dc', + + /** + * @cfg {Boolean} loadDelay + * Millisecond delay between asynchronous script injection (prevents stack + * overflow on some user agents) 'false' disables delay but potentially + * increases stack load. + */ + loadDelay: false, + + /** + * @cfg {Boolean} preserveScripts + * `false` to remove asynchronously loaded scripts, `true` to retain script + * element for browser debugger compatibility and improved load performance. + */ + preserveScripts: true, + + /** + * @cfg {String} [charset=UTF-8] + * Optional charset to specify encoding of dynamic content. + */ + charset: 'UTF-8' + }, + + _assetConfig= {}, + + cssRe = /\.css(?:\?|$)/i, + resolverEl = doc.createElement('a'), + isBrowser = typeof window !== 'undefined', + _environment = { + browser: isBrowser, + node: !isBrowser && (typeof require === 'function'), + phantom: (window && (window._phantom || window.callPhantom)) || /PhantomJS/.test(window.navigator.userAgent) + }, + _tags = (Ext.platformTags = {}), + + // All calls to _debug are commented out to speed up old browsers a bit; + // yes that makes a difference because the cost of concatenating strings + // and passing them into _debug() adds up pretty quickly. + _debug = function (message) { + //console.log(message); + }, + _apply = function (object, config, defaults) { + if (defaults) { + _apply(object, defaults); + } + if (object && config && typeof config === 'object') { + for (var i in config) { + object[i] = config[i]; + } + } + return object; + }, + _merge = function() { + var lowerCase = false, + obj = Array.prototype.shift.call(arguments), + index, i, len, value; + + if (typeof arguments[arguments.length - 1] === 'boolean') { + lowerCase = Array.prototype.pop.call(arguments); + } + + len = arguments.length; + for (index = 0; index < len; index++) { + value = arguments[index]; + if (typeof value === 'object') { + for (i in value) { + obj[lowerCase ? i.toLowerCase() : i] = value[i]; + } + } + } + + return obj; + }, + _getKeys = (typeof Object.keys == 'function') ? + function(object){ + if (!object) { + return []; + } + return Object.keys(object); + } : + function(object) { + var keys = [], + property; + + for (property in object) { + if (object.hasOwnProperty(property)) { + keys.push(property); + } + } + + return keys; + }, + /* + * The Boot loader class manages Request objects that contain one or + * more individual urls that need to be loaded. Requests can be performed + * synchronously or asynchronously, but will always evaluate urls in the + * order specified on the request object. + */ + Boot = { + loading: 0, + loaded: 0, + apply: _apply, + env: _environment, + config: _config, + + /** + * @cfg {Object} assetConfig + * A map (url->assetConfig) that contains information about assets loaded by the Microlaoder. + */ + assetConfig: _assetConfig, + + // Keyed by absolute URL this object holds "true" if that URL is already loaded + // or an array of callbacks to call once it loads. + scripts: { + /* + Entry objects + + 'http://foo.com/bar/baz/Thing.js': { + done: true, + el: scriptEl || linkEl, + preserve: true, + requests: [ request1, ... ] + } + */ + }, + + /** + * contains the current script name being loaded + * (loadSync or sequential load only) + */ + currentFile: null, + suspendedQueue: [], + currentRequest: null, + + // when loadSync is called, need to cause subsequent load requests to also be loadSync, + // eg, when Ext.require(...) is called + syncMode: false, + + /* + * simple helper method for debugging + */ + debug: _debug, + + /** + * enables / disables loading scripts via script / link elements rather + * than using ajax / eval + */ + useElements: true, + + listeners: [], + + Request: Request, + + Entry: Entry, + + allowMultipleBrowsers: false, + + browserNames: { + ie: 'IE', + firefox: 'Firefox', + safari: 'Safari', + chrome: 'Chrome', + opera: 'Opera', + dolfin: 'Dolfin', + edge: 'Edge', + webosbrowser: 'webOSBrowser', + chromeMobile: 'ChromeMobile', + chromeiOS: 'ChromeiOS', + silk: 'Silk', + other: 'Other' + }, + + osNames: { + ios: 'iOS', + android: 'Android', + windowsPhone: 'WindowsPhone', + webos: 'webOS', + blackberry: 'BlackBerry', + rimTablet: 'RIMTablet', + mac: 'MacOS', + win: 'Windows', + tizen: 'Tizen', + linux: 'Linux', + bada: 'Bada', + chromeOS: 'ChromeOS', + other: 'Other' + }, + + browserPrefixes: { + ie: 'MSIE ', + edge: 'Edge/', + firefox: 'Firefox/', + chrome: 'Chrome/', + safari: 'Version/', + opera: 'OPR/', + dolfin: 'Dolfin/', + webosbrowser: 'wOSBrowser/', + chromeMobile: 'CrMo/', + chromeiOS: 'CriOS/', + silk: 'Silk/' + }, + + // When a UA reports multiple browsers this list is used to prioritize the 'real' browser + // lower index number will win + browserPriority: [ + 'edge', + 'opera', + 'dolfin', + 'webosbrowser', + 'silk', + 'chromeiOS', + 'chromeMobile', + 'ie', + 'firefox', + 'safari', + 'chrome' + ], + + osPrefixes: { + tizen: '(Tizen )', + ios: 'i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ', + android: '(Android |HTC_|Silk/)', // Some HTC devices ship with an OSX userAgent by default, + // so we need to add a direct check for HTC_ + windowsPhone: 'Windows Phone ', + blackberry: '(?:BlackBerry|BB)(?:.*)Version\/', + rimTablet: 'RIM Tablet OS ', + webos: '(?:webOS|hpwOS)\/', + bada: 'Bada\/', + chromeOS: 'CrOS ' + }, + + fallbackOSPrefixes: { + windows: 'win', + mac: 'mac', + linux: 'linux' + }, + + devicePrefixes: { + iPhone: 'iPhone', + iPod: 'iPod', + iPad: 'iPad' + }, + + maxIEVersion: 12, + + + /** + * The default function that detects various platforms and sets tags + * in the platform map accordingly. Examples are iOS, android, tablet, etc. + * @param tags the set of tags to populate + */ + detectPlatformTags: function () { + var me = this, + ua = navigator.userAgent, + isMobile = /Mobile(\/|\s)/.test(ua), + element = document.createElement('div'), + isEventSupported = function (name, tag) { + if (tag === undefined) { + tag = window; + } + + var eventName = 'on' + name.toLowerCase(), + isSupported = (eventName in element); + + if (!isSupported) { + if (element.setAttribute && element.removeAttribute) { + element.setAttribute(eventName, ''); + isSupported = typeof element[eventName] === 'function'; + + if (typeof element[eventName] !== 'undefined') { + element[eventName] = undefined; + } + + element.removeAttribute(eventName); + } + } + + return isSupported; + }, + + // Browser Detection + getBrowsers = function () { + var browsers = {}, + maxIEVersion, prefix, + value, key, index, len, match, version, matched; + + // MS Edge browser (and possibly others) can report multiple browsers in the UserAgent + // "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240" + // we use this to prioritize the actual browser in this situation + len = me.browserPriority.length; + for (index = 0; index < len; index++) { + key = me.browserPriority[index]; + if (!matched) { + value = me.browserPrefixes[key]; + match = ua.match(new RegExp('(' + value + ')([\\w\\._]+)')); + version = match && match.length > 1 ? parseInt(match[2]) : 0; + if (version) { + matched = true; + } + } else { + version = 0; + } + browsers[key] = version; + } + + //Deal with IE document mode + if (browsers.ie) { + var mode = document.documentMode; + + if (mode >= 8) { + browsers.ie = mode; + } + } + + // Fancy IE greater than and less then quick tags + version = browsers.ie || false; + maxIEVersion = Math.max(version, me.maxIEVersion); + + for (index = 8; index <= maxIEVersion; ++index) { + prefix = 'ie' + index; + browsers[prefix + 'm'] = version ? version <= index : 0; + browsers[prefix] = version ? version === index : 0; + browsers[prefix + 'p'] = version ? version >= index : 0; + } + + return browsers; + }, + + //OS Detection + getOperatingSystems = function () { + var systems = {}, + value, key, keys, index, len, match, matched, version, activeCount; + + keys = _getKeys(me.osPrefixes); + len = keys.length; + for (index = 0, activeCount = 0; index < len; index++) { + key = keys[index]; + value = me.osPrefixes[key]; + match = ua.match(new RegExp('(' + value + ')([^\\s;]+)')); + matched = match ? match[1] : null; + + // This is here because some HTC android devices show an OSX Snow Leopard userAgent by default. + // And the Kindle Fire doesn't have any indicator of Android as the OS in its User Agent + if (matched && (matched === 'HTC_' || matched === 'Silk/')) { + version = 2.3; + } else { + version = match && match.length > 1 ? parseFloat(match[match.length - 1]) : 0; + } + + if (version) { + activeCount++; + } + systems[key] = version; + } + + keys = _getKeys(me.fallbackOSPrefixes); + + // If no OS could be found we resort to the fallbacks, otherwise we just + // falsify the fallbacks + len = keys.length; + for (index = 0; index < len; index++) { + key = keys[index]; + + // No OS was detected from osPrefixes + if (activeCount === 0) { + value = me.fallbackOSPrefixes[key]; + match = ua.toLowerCase().match(new RegExp(value)); + systems[key] = match ? true : 0; + } else { + systems[key] = 0; + } + } + + return systems; + }, + + // Device Detection + getDevices = function () { + var devices = {}, + value, key, keys, index, len, match; + + keys = _getKeys(me.devicePrefixes); + len = keys.length; + for (index = 0; index < len; index++) { + key = keys[index]; + value = me.devicePrefixes[key]; + match = ua.match(new RegExp(value)); + devices[key] = match ? true : 0; + } + + return devices; + }, + browsers = getBrowsers(), + systems = getOperatingSystems(), + devices = getDevices(), + platformParams = Boot.loadPlatformsParam(); + + // We apply platformParams from the query here first to allow for forced user valued + // to be used in calculation of generated tags + _merge(_tags, browsers, systems, devices, platformParams, true); + + _tags.phone = !!((_tags.iphone || _tags.ipod) || + (!_tags.silk && (_tags.android && (_tags.android < 3 || isMobile))) || + (_tags.blackberry && isMobile) || + (_tags.windowsphone)); + + _tags.tablet = !!(!_tags.phone && ( + _tags.ipad || + _tags.android || + _tags.silk || + _tags.rimtablet || + (_tags.ie10 && /; Touch/.test(ua)) + )); + + _tags.touch = + // if the browser has touch events we can be reasonably sure the device has + // a touch screen + isEventSupported('touchend') || + // browsers that use pointer event have maxTouchPoints > 0 if the + // device supports touch input + // http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints + navigator.maxTouchPoints || + // IE10 uses a vendor-prefixed maxTouchPoints property + navigator.msMaxTouchPoints; + + _tags.desktop = !_tags.phone && !_tags.tablet; + _tags.cordova = _tags.phonegap = !!(window.PhoneGap || window.Cordova || window.cordova); + _tags.webview = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(ua); + _tags.androidstock = (_tags.android <= 4.3) && (_tags.safari || _tags.silk); + + // Re-apply any query params here to allow for user override of generated tags (desktop, touch, tablet, etc) + _merge(_tags, platformParams, true); + }, + + /** + * Extracts user supplied platform tags from the "platformTags" query parameter + * of the form: + * + * ?platformTags=name:state,name:state,... + * + * (each tag defaults to true when state is unspecified) + * + * Example: + * + * ?platformTags=isTablet,isPhone:false,isDesktop:0,iOS:1,Safari:true, ... + * + * @returns {Object} the platform tags supplied by the query string + */ + loadPlatformsParam: function () { + // Check if the ?platform parameter is set in the URL + var paramsString = window.location.search.substr(1), + paramsArray = paramsString.split("&"), + params = {}, i, + platforms = {}, + tmpArray, tmplen, platform, name, enabled; + + for (i = 0; i < paramsArray.length; i++) { + tmpArray = paramsArray[i].split("="); + params[tmpArray[0]] = tmpArray[1]; + } + + if (params.platformTags) { + tmpArray = params.platformTags.split(","); + for (tmplen = tmpArray.length, i = 0; i < tmplen; i++) { + platform = tmpArray[i].split(":"); + name = platform[0]; + enabled=true; + if (platform.length > 1) { + enabled = platform[1]; + if (enabled === 'false' || enabled === '0') { + enabled = false; + } + } + platforms[name] = enabled; + } + } + return platforms; + }, + + filterPlatform: function (platform, excludes) { + platform = _emptyArray.concat(platform || _emptyArray); + excludes = _emptyArray.concat(excludes || _emptyArray); + + var plen = platform.length, + elen = excludes.length, + include = (!plen && elen), // default true if only excludes specified + i, tag; + + for (i = 0; i < plen && !include; i++) { + tag = platform[i]; + include = !!_tags[tag]; + } + + for (i = 0; i < elen && include; i++) { + tag = excludes[i]; + include = !_tags[tag]; + } + + return include; + }, + + init: function () { + var scriptEls = doc.getElementsByTagName('script'), + script = scriptEls[0], + len = scriptEls.length, + re = /\/ext(\-[a-z\-]+)?\.js$/, + entry, src, state, baseUrl, key, n, origin; + + // No check for script definedness because there always should be at least one + Boot.hasReadyState = ("readyState" in script); + Boot.hasAsync = ("async" in script); + Boot.hasDefer = ("defer" in script); + Boot.hasOnLoad = ("onload" in script); + + // Feature detecting IE + Boot.isIE8 = Boot.hasReadyState && !Boot.hasAsync && Boot.hasDefer && !Boot.hasOnLoad; + Boot.isIE9 = Boot.hasReadyState && !Boot.hasAsync && Boot.hasDefer && Boot.hasOnLoad; + Boot.isIE10p = Boot.hasReadyState && Boot.hasAsync && Boot.hasDefer && Boot.hasOnLoad; + + if (Boot.isIE8) { + Boot.isIE10 = false; + Boot.isIE10m = true; + } + else { + Boot.isIE10 = (new Function('/*@cc_on return @_jscript_version @*/')()) === 10; + Boot.isIE10m = Boot.isIE10 || Boot.isIE9 || Boot.isIE8; + } + + // IE11 does not support conditional compilation so we detect it by exclusion + Boot.isIE11 = Boot.isIE10p && !Boot.isIE10; + + // Since we are loading after other scripts, and we needed to gather them + // anyway, we track them in _scripts so we don't have to ask for them all + // repeatedly. + for (n = 0; n < len; n++) { + src = (script = scriptEls[n]).src; + if (!src) { + continue; + } + state = script.readyState || null; + + // If we find a script file called "ext-*.js", then the base path is that file's base path. + if (!baseUrl && re.test(src)) { + baseUrl = src; + } + + if (!Boot.scripts[key = Boot.canonicalUrl(src)]) { +// _debug("creating entry " + key + " in Boot.init"); + entry = new Entry({ + key: key, + url: src, + done: state === null || // non-IE + state === 'loaded' || state === 'complete', // IE only + el: script, + prop: 'src' + }); + } + } + + if (!baseUrl) { + script = scriptEls[scriptEls.length - 1]; + baseUrl = script.src; + } + + Boot.baseUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/') + 1); + origin = window.location.origin || + window.location.protocol + + "//" + + window.location.hostname + + (window.location.port ? ':' + window.location.port: ''); + Boot.origin = origin; + + Boot.detectPlatformTags(); + Ext.filterPlatform = Boot.filterPlatform; + }, + + /** + * This method returns a canonical URL for the given URL. + * + * For example, the following all produce the same canonical URL (which is the + * last one): + * + * http://foo.com/bar/baz/zoo/derp/../../goo/Thing.js?_dc=12345 + * http://foo.com/bar/baz/zoo/derp/../../goo/Thing.js + * http://foo.com/bar/baz/zoo/derp/../jazz/../../goo/Thing.js + * http://foo.com/bar/baz/zoo/../goo/Thing.js + * http://foo.com/bar/baz/goo/Thing.js + * + * @private + */ + canonicalUrl: function (url) { + // *WARNING WARNING WARNING* + // This method yields the most correct result we can get but it is EXPENSIVE! + // In ALL browsers! When called multiple times in a sequence, as if when + // we resolve dependencies for entries, it will cause garbage collection events + // and overall painful slowness. This is why we try to avoid it as much as we can. + // + // @TODO - see if we need this fallback logic + // http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue + resolverEl.href = url; + + var ret = resolverEl.href, + dc = _config.disableCachingParam, + pos = dc ? ret.indexOf(dc + '=') : -1, + c, end; + + // If we have a _dc query parameter we need to remove it from the canonical + // URL. + if (pos > 0 && ((c = ret.charAt(pos - 1)) === '?' || c === '&')) { + end = ret.indexOf('&', pos); + end = (end < 0) ? '' : ret.substring(end); + if (end && c === '?') { + ++pos; // keep the '?' + end = end.substring(1); // remove the '&' + } + ret = ret.substring(0, pos - 1) + end; + } + + return ret; + }, + + /** + * Get the config value corresponding to the specified name. If no name is given, will return the config object + * @param {String} name The config property name + * @return {Object} + */ + getConfig: function (name) { + return name ? Boot.config[name] : Boot.config; + }, + + /** + * Set the configuration. + * @param {Object} config The config object to override the default values. + * @return {Ext.Boot} this + */ + setConfig: function (name, value) { + if (typeof name === 'string') { + Boot.config[name] = value; + } else { + for (var s in name) { + Boot.setConfig(s, name[s]); + } + } + return Boot; + }, + + getHead: function () { + return Boot.docHead || + (Boot.docHead = doc.head || + doc.getElementsByTagName('head')[0]); + }, + + create: function (url, key, cfg) { + var config = cfg || {}; + config.url = url; + config.key = key; + return Boot.scripts[key] = new Entry(config); + }, + + getEntry: function (url, cfg, canonicalPath) { + var key, entry; + + // Canonicalizing URLs via anchor element href yields the most correct result + // but is *extremely* resource heavy so we need to avoid it whenever possible + key = canonicalPath ? url : Boot.canonicalUrl(url); + entry = Boot.scripts[key]; + + if (!entry) { + entry = Boot.create(url, key, cfg); + + if (canonicalPath) { + entry.canonicalPath = true; + } + } + + return entry; + }, + + registerContent: function (url, type, content) { + var cfg = { + content: content, + loaded: true, + css: type === 'css' + }; + + return Boot.getEntry(url, cfg); + }, + + processRequest: function(request, sync) { + request.loadEntries(sync); + }, + + load: function (request) { +// _debug("Boot.load called"); + var request = new Request(request); + + if (request.sync || Boot.syncMode) { + return Boot.loadSync(request); + } + + // If there is a request in progress, we must + // queue this new request to be fired when the current request completes. + if (Boot.currentRequest) { +// _debug("current active request, suspending this request"); + // trigger assignment of entries now to ensure that overlapping + // entries with currently running requests will synchronize state + // with this pending one as they complete + request.getEntries(); + Boot.suspendedQueue.push(request); + } else { + Boot.currentRequest = request; + Boot.processRequest(request, false); + } + return Boot; + }, + + loadSync: function (request) { +// _debug("Boot.loadSync called"); + var request = new Request(request); + + Boot.syncMode++; + Boot.processRequest(request, true); + Boot.syncMode--; + return Boot; + }, + + loadBasePrefix: function(request) { + request = new Request(request); + request.prependBaseUrl = true; + return Boot.load(request); + }, + + loadSyncBasePrefix: function(request) { + request = new Request(request); + request.prependBaseUrl = true; + return Boot.loadSync(request); + }, + + requestComplete: function(request) { + var next; + + if (Boot.currentRequest === request) { + Boot.currentRequest = null; + while(Boot.suspendedQueue.length > 0) { + next = Boot.suspendedQueue.shift(); + if(!next.done) { +// _debug("resuming suspended request"); + Boot.load(next); + break; + } + } + } + if (!Boot.currentRequest && Boot.suspendedQueue.length == 0) { + Boot.fireListeners(); + } + }, + + isLoading: function () { + return !Boot.currentRequest && Boot.suspendedQueue.length == 0; + }, + + fireListeners: function () { + var listener; + while (Boot.isLoading() && (listener = Boot.listeners.shift())) { + listener(); + } + }, + + onBootReady: function (listener) { + if (!Boot.isLoading()) { + listener(); + } else { + Boot.listeners.push(listener); + } + }, + + /** + * this is a helper function used by Ext.Loader to flush out + * 'uses' arrays for classes in some Ext versions + */ + getPathsFromIndexes: function (indexMap, loadOrder) { + // In older versions indexMap was an object instead of a sparse array + if (!('length' in indexMap)) { + var indexArray = [], + index; + + for (index in indexMap) { + if (!isNaN(+index)) { + indexArray[+index] = indexMap[index]; + } + } + + indexMap = indexArray; + } + + return Request.prototype.getPathsFromIndexes(indexMap, loadOrder); + }, + + createLoadOrderMap: function(loadOrder) { + return Request.prototype.createLoadOrderMap(loadOrder); + }, + + fetch: function(url, complete, scope, async) { + async = (async === undefined) ? !!complete : async; + + var xhr = new XMLHttpRequest(), + result, status, content, exception = false, + readyStateChange = function () { + if (xhr && xhr.readyState == 4) { + status = (xhr.status === 1223) ? 204 : + (xhr.status === 0 && ((self.location || {}).protocol === 'file:' || + (self.location || {}).protocol === 'ionp:')) ? 200 : xhr.status; + content = xhr.responseText; + result = { + content: content, + status: status, + exception: exception + }; + if (complete) { + complete.call(scope, result); + } + xhr.onreadystatechange = emptyFn; + xhr = null; + } + }; + + if (async) { + xhr.onreadystatechange = readyStateChange; + } + + try { +// _debug("fetching " + url + " " + (async ? "async" : "sync")); + xhr.open('GET', url, async); + xhr.send(null); + } catch (err) { + exception = err; + readyStateChange(); + return result; + } + + if (!async) { + readyStateChange(); + } + + return result; + }, + + notifyAll: function(entry) { + entry.notifyRequests(); + } + }; + + function Request(cfg) { + //The request class encapsulates a series of Entry objects + //and provides notification around the completion of all Entries + //in this request. + + if(cfg.$isRequest) { + return cfg; + } + + var cfg = cfg.url ? cfg : {url: cfg}, + url = cfg.url, + urls = url.charAt ? [ url ] : url, + charset = cfg.charset || Boot.config.charset; + + _apply(this, cfg); + + delete this.url; + this.urls = urls; + this.charset = charset; + }; + + Request.prototype = { + $isRequest: true, + + createLoadOrderMap: function (loadOrder) { + var len = loadOrder.length, + loadOrderMap = {}, + i, element; + + for (i = 0; i < len; i++) { + element = loadOrder[i]; + loadOrderMap[element.path] = element; + } + + return loadOrderMap; + }, + + getLoadIndexes: function (item, indexMap, loadOrder, includeUses, skipLoaded) { + var resolved = [], + queue = [item], + itemIndex = item.idx, + queue, entry, dependencies, depIndex, i, len; + + if (indexMap[itemIndex]) { + // prevent cycles + return resolved; + } + + // Both indexMap and resolved are sparse arrays keyed by indexes. + // This gives us a naturally sorted sequence of indexes later on + // when we need to convert them to paths. + // indexMap is the map of all indexes we have visited at least once + // per the current expandUrls() invocation, and resolved is the map + // of all dependencies for the current item that are not included + // in indexMap. + indexMap[itemIndex] = resolved[itemIndex] = true; + + while (item = queue.shift()) { + // Canonicalizing URLs is expensive, we try to avoid it + if (item.canonicalPath) { + entry = Boot.getEntry(item.path, null, true); + } + else { + entry = Boot.getEntry(this.prepareUrl(item.path)); + } + + if (!(skipLoaded && entry.done)) { + if (includeUses && item.uses && item.uses.length) { + dependencies = item.requires.concat(item.uses); + } + else { + dependencies = item.requires; + } + + for (i = 0, len = dependencies.length; i < len; i++) { + depIndex = dependencies[i]; + + if (!indexMap[depIndex]) { + indexMap[depIndex] = resolved[depIndex] = true; + queue.push(loadOrder[depIndex]); + } + } + } + } + + return resolved; + }, + + getPathsFromIndexes: function (indexes, loadOrder) { + var paths = [], + index, len; + + // indexes is a sparse array with values being true for defined indexes + for (index = 0, len = indexes.length; index < len; index++) { + if (indexes[index]) { + paths.push(loadOrder[index].path); + } + } + + return paths; + }, + + expandUrl: function (url, loadOrder, loadOrderMap, indexMap, includeUses, skipLoaded) { + var item, resolved; + + if (loadOrder) { + item = loadOrderMap[url]; + + if (item) { + resolved = this.getLoadIndexes(item, indexMap, loadOrder, includeUses, skipLoaded); + + if (resolved.length) { + return this.getPathsFromIndexes(resolved, loadOrder); + } + } + } + + return [url]; + }, + + expandUrls: function (urls, includeUses) { + var me = this, + loadOrder = me.loadOrder, + expanded = [], + expandMap = {}, + indexMap = [], + loadOrderMap, tmpExpanded, i, len, t, tlen, tUrl; + + if (typeof urls === "string") { + urls = [urls]; + } + + if (loadOrder) { + loadOrderMap = me.loadOrderMap; + + if (!loadOrderMap) { + loadOrderMap = me.loadOrderMap = me.createLoadOrderMap(loadOrder); + } + } + + for (i = 0, len = urls.length; i < len; i++) { + // We don't want to skip loaded entries (last argument === false). + // There are some overrides that get loaded before their respective classes, + // and when the class dependencies are processed we don't want to skip over + // the overrides' dependencies just because they were loaded first. + tmpExpanded = this.expandUrl(urls[i], loadOrder, loadOrderMap, indexMap, includeUses, false); + + for (t = 0, tlen = tmpExpanded.length; t < tlen; t++) { + tUrl = tmpExpanded[t]; + + if (!expandMap[tUrl]) { + expandMap[tUrl] = true; + expanded.push(tUrl); + } + } + } + + if (expanded.length === 0) { + expanded = urls; + } + + return expanded; + }, + + expandLoadOrder: function () { + var me = this, + urls = me.urls, + expanded; + + if (!me.expanded) { + expanded = this.expandUrls(urls, true); + me.expanded = true; + } else { + expanded = urls; + } + + me.urls = expanded; + + // if we added some urls to the request to honor the indicated + // load order, the request needs to be sequential + if (urls.length != expanded.length) { + me.sequential = true; + } + + return me; + }, + + getUrls: function () { + this.expandLoadOrder(); + return this.urls; + }, + + prepareUrl: function(url) { + if(this.prependBaseUrl) { + return Boot.baseUrl + url; + } + return url; + }, + + getEntries: function () { + var me = this, + entries = me.entries, + loadOrderMap, item, i, entry, urls, url; + + if (!entries) { + entries = []; + urls = me.getUrls(); + + // If we have loadOrder array then the map will be expanded by now + if (me.loadOrder) { + loadOrderMap = me.loadOrderMap; + } + + for (i = 0; i < urls.length; i++) { + url = me.prepareUrl(urls[i]); + + if (loadOrderMap) { + item = loadOrderMap[url]; + } + + entry = Boot.getEntry(url, { + buster: me.buster, + charset: me.charset + }, item && item.canonicalPath); + + entry.requests.push(me); + entries.push(entry); + } + + me.entries = entries; + } + + return entries; + }, + + loadEntries: function(sync) { + var me = this, + entries = me.getEntries(), + len = entries.length, + start = me.loadStart || 0, + continueLoad, entries, entry, i; + + if(sync !== undefined) { + me.sync = sync; + } + + me.loaded = me.loaded || 0; + me.loading = me.loading || len; + + for(i = start; i < len; i++) { + entry = entries[i]; + if(!entry.loaded) { + continueLoad = entries[i].load(me.sync); + } else { + continueLoad = true; + } + if(!continueLoad) { + me.loadStart = i; + entry.onDone(function(){ + me.loadEntries(sync); + }); + break; + } + } + me.processLoadedEntries(); + }, + + processLoadedEntries: function () { + var me = this, + entries = me.getEntries(), + len = entries.length, + start = me.startIndex || 0, + i, entry; + + if (!me.done) { + for (i = start; i < len; i++) { + entry = entries[i]; + + if (!entry.loaded) { + me.startIndex = i; + return; + } + + if (!entry.evaluated) { + entry.evaluate(); + } + + if (entry.error) { + me.error = true; + } + } + me.notify(); + } + }, + + notify: function () { + var me = this; + if (!me.done) { + var error = me.error, + fn = me[error ? 'failure' : 'success'], + delay = ('delay' in me) + ? me.delay + : (error ? 1 : Boot.config.chainDelay), + scope = me.scope || me; + me.done = true; + if (fn) { + if (delay === 0 || delay > 0) { + // Free the stack (and defer the next script) + setTimeout(function () { + fn.call(scope, me); + }, delay); + } else { + fn.call(scope, me); + } + } + me.fireListeners(); + Boot.requestComplete(me); + } + }, + + onDone: function(listener) { + var me = this, + listeners = me.listeners || (me.listeners = []); + if(me.done) { + listener(me); + } else { + listeners.push(listener); + } + }, + + fireListeners: function() { + var listeners = this.listeners, + listener; + if(listeners) { +// _debug("firing request listeners"); + while((listener = listeners.shift())) { + listener(this); + } + } + } + }; + + function Entry(cfg) { + //The Entry class is a token to manage the load and evaluation + //state of a particular url. It is used to notify all Requests + //interested in this url that the content is available. + + if(cfg.$isEntry) { + return cfg; + } + +// _debug("creating entry for " + cfg.url); + + var charset = cfg.charset || Boot.config.charset, + manifest = Ext.manifest, + loader = manifest && manifest.loader, + cache = (cfg.cache !== undefined) ? cfg.cache : (loader && loader.cache), + buster, busterParam; + + if (Boot.config.disableCaching) { + if (cache === undefined) { + cache = !Boot.config.disableCaching; + } + + if (cache === false) { + buster = +new Date(); + } else if (cache !== true) { + buster = cache; + } + + if (buster) { + busterParam = (loader && loader.cacheParam) || Boot.config.disableCachingParam; + buster = busterParam + "=" + buster; + } + } + + _apply(this, cfg); + + this.charset = charset; + this.buster = buster; + this.requests = []; + }; + + Entry.prototype = { + $isEntry: true, + done: false, + evaluated: false, + loaded: false, + + isCrossDomain: function() { + var me = this; + if(me.crossDomain === undefined) { +// _debug("checking " + me.getLoadUrl() + " for prefix " + Boot.origin); + me.crossDomain = (me.getLoadUrl().indexOf(Boot.origin) !== 0); + } + return me.crossDomain; + }, + + isCss: function () { + var me = this; + if (me.css === undefined) { + if (me.url) { + var assetConfig = Boot.assetConfig[me.url]; + me.css = assetConfig ? assetConfig.type === "css" : cssRe.test(me.url); + } else { + me.css = false; + } + } + return this.css; + }, + + getElement: function (tag) { + var me = this, + el = me.el; + if (!el) { +// _debug("creating element for " + me.url); + if (me.isCss()) { + tag = tag || "link"; + el = doc.createElement(tag); + if(tag == "link") { + el.rel = 'stylesheet'; + me.prop = 'href'; + } else { + me.prop="textContent"; + } + el.type = "text/css"; + } else { + tag = tag || "script"; + el = doc.createElement(tag); + el.type = 'text/javascript'; + me.prop = 'src'; + + if (me.charset) { + el.charset = me.charset; + } + + if (Boot.hasAsync) { + el.async = false; + } + } + me.el = el; + } + return el; + }, + + getLoadUrl: function () { + var me = this, + url; + + url = me.canonicalPath ? me.url : Boot.canonicalUrl(me.url); + + if (!me.loadUrl) { + me.loadUrl = !!me.buster + ? (url + (url.indexOf('?') === -1 ? '?' : '&') + me.buster) + : url; + } + return me.loadUrl; + }, + + fetch: function (req) { + var url = this.getLoadUrl(), + async = !!req.async, + complete = req.complete; + + Boot.fetch(url, complete, this, async); + }, + + onContentLoaded: function (response) { + var me = this, + status = response.status, + content = response.content, + exception = response.exception, + url = this.getLoadUrl(); + me.loaded = true; + if ((exception || status === 0) && !_environment.phantom) { + me.error = + ("Failed loading synchronously via XHR: '" + url + + "'. It's likely that the file is either being loaded from a " + + "different domain or from the local file system where cross " + + "origin requests are not allowed for security reasons. Try " + + "asynchronous loading instead.") || + true; + me.evaluated = true; + } + else if ((status >= 200 && status < 300) || status === 304 + || _environment.phantom + || (status === 0 && content.length > 0) + ) { + me.content = content; + } + else { + me.error = + ("Failed loading synchronously via XHR: '" + url + + "'. Please verify that the file exists. XHR status code: " + + status) || + true; + me.evaluated = true; + } + }, + + createLoadElement: function(callback) { + var me = this, + el = me.getElement(); + + me.preserve = true; + + el.onerror = function() { + me.error = true; + + if (callback) { + callback(); + callback = null; + } + }; + + if (Boot.isIE10m) { + el.onreadystatechange = function() { + if (this.readyState === 'loaded' || this.readyState === 'complete') { + if (callback) { + callback(); + callback = this.onreadystatechange = this.onerror = null; + } + } + }; + } + else { + el.onload = function() { + callback(); + callback = this.onload = this.onerror = null; + }; + } + + // IE starts loading here + el[me.prop] = me.getLoadUrl(); + }, + + onLoadElementReady: function() { + Boot.getHead().appendChild(this.getElement()); + this.evaluated = true; + }, + + inject: function (content, asset) { +// _debug("injecting content for " + this.url); + var me = this, + head = Boot.getHead(), + url = me.url, + key = me.key, + base, el, ieMode, basePath; + + if (me.isCss()) { + me.preserve = true; + basePath = key.substring(0, key.lastIndexOf("/") + 1); + base = doc.createElement('base'); + base.href = basePath; + if(head.firstChild) { + head.insertBefore(base, head.firstChild); + } else { + head.appendChild(base); + } + // reset the href attribute to cuase IE to pick up the change + base.href = base.href; + + if (url) { + content += "\n/*# sourceURL=" + key + " */"; + } + + // create element after setting base + el = me.getElement("style"); + + ieMode = ('styleSheet' in el); + + head.appendChild(base); + if(ieMode) { + head.appendChild(el); + el.styleSheet.cssText = content; + } else { + el.textContent = content; + head.appendChild(el); + } + head.removeChild(base); + + } else { + // Debugger friendly, file names are still shown even though they're + // eval'ed code. Breakpoints work on both Firebug and Chrome's Web + // Inspector. + if (url) { + content += "\n//# sourceURL=" + key; + } + Ext.globalEval(content); + } + return me; + }, + + loadCrossDomain: function() { + var me = this, + complete = function(){ + me.el.onerror = me.el.onload = emptyFn; + me.el = null; + me.loaded = me.evaluated = me.done = true; + me.notifyRequests(); + }; + me.createLoadElement(function(){ + complete(); + }); + me.evaluateLoadElement(); + // at this point, we need sequential evaluation, + // which means we can't advance the load until + // this entry has fully completed + return false; + }, + + loadElement: function() { + var me = this, + complete = function(){ + me.el.onerror = me.el.onload = emptyFn; + me.el = null; + me.loaded = me.evaluated = me.done = true; + me.notifyRequests(); + }; + me.createLoadElement(function(){ + complete(); + }); + me.evaluateLoadElement(); + return true; + }, + + loadSync: function() { + var me = this; + me.fetch({ + async: false, + complete: function (response) { + me.onContentLoaded(response); + } + }); + me.evaluate(); + me.notifyRequests(); + }, + + load: function (sync) { + var me = this; + if (!me.loaded) { + if(me.loading) { + // if we're calling back through load and we're loading but haven't + // yet loaded, then we should be in a sequential, cross domain + // load scenario which means we can't continue the load on the + // request until this entry has fully evaluated, which will mean + // loaded = evaluated = done = true in one step. For css files, this + // will happen immediately upon element creation / insertion, + // but + + + + diff --git a/frontend/DynamicForm/resources/Readme.md b/frontend/DynamicForm/resources/Readme.md new file mode 100644 index 000000000..07d73d6d1 --- /dev/null +++ b/frontend/DynamicForm/resources/Readme.md @@ -0,0 +1,4 @@ +# DynamicForm/resources + +This folder contains resources (such as images) needed by the application. This file can +be removed if not needed. diff --git a/frontend/DynamicForm/sass/Readme.md b/frontend/DynamicForm/sass/Readme.md new file mode 100644 index 000000000..7a4474ac3 --- /dev/null +++ b/frontend/DynamicForm/sass/Readme.md @@ -0,0 +1,46 @@ +# ./sass + +This folder contains the styling for the application's views. + +## Styling + +Sencha Cmd supports styling using Sass and integrates the styling from the theme +and required packages (specified in `"app.json"`) with application-defined views. + +### ./sass/etc + +This folder contains misc. support code for Sass builds (global functions, etc.). + +### ./sass/src + +This folder contains Sass files defining CSS rules corresponding to classes +included in the application's JavaScript code build. By default, files in this +folder are mapped to the application's root namespace, 'DynamicForm'. This is set in +`"app.json"`: + + "sass": { + "namespace": "DynamicForm" + } + +### ./sass/var + +This folder contains Sass files defining Sass variables corresponding to classes +included in the application's JavaScript code build. By default, files in this +folder are mapped to the application's root namespace, 'DynamicForm' in the same way +as `"DynamicForm/sass/src"`. + +## Slicing + +Internet Explorer 8 and 9 do not support linear gradients and IE8 does not support +border-radius. To compensate for this, Sencha Cmd provides "image slicing" using an +internal WebKit based renderer. To enable this, there is a special web page that +renders all components and states so they can be captured and turned into image +sprites. + +### ./sass/example + +This folder contains the web page used to present all components and states so they +can be captured as an image and used to produce images for IE8 and 9. + +This web page is also helpful when loaded in Chrome to view all components in their +styled form. diff --git a/frontend/DynamicForm/sass/etc/all.scss b/frontend/DynamicForm/sass/etc/all.scss new file mode 100644 index 000000000..c3e422220 --- /dev/null +++ b/frontend/DynamicForm/sass/etc/all.scss @@ -0,0 +1,3 @@ +/* + * This is is imported by virtue of "sass.etc" in "app.json". + */ diff --git a/frontend/DynamicForm/sass/src/view/main/Main.scss b/frontend/DynamicForm/sass/src/view/main/Main.scss new file mode 100644 index 000000000..a7f632eaf --- /dev/null +++ b/frontend/DynamicForm/sass/src/view/main/Main.scss @@ -0,0 +1,83 @@ +/** + * Generates a set of style rules for the "navigation" tab UI. + */ +@include extjs-tab-panel-ui( + $ui: 'navigation', + $ui-tab-background-color: transparent, + $ui-tab-background-color-over: #505050, + $ui-tab-background-color-active: #303030, + $ui-tab-background-gradient: 'none', + $ui-tab-background-gradient-over: 'none', + $ui-tab-background-gradient-active: 'none', + $ui-tab-color: #acacac, + $ui-tab-color-over: #c4c4c4, + $ui-tab-color-active: #fff, + $ui-tab-glyph-color: #acacac, + $ui-tab-glyph-color-over: #c4c4c4, + $ui-tab-glyph-color-active: #fff, + $ui-tab-glyph-opacity: 1, + $ui-tab-border-radius: 0, + $ui-tab-border-width: 0, + $ui-tab-inner-border-width: 0, + $ui-tab-padding: 24px, + $ui-tab-margin: 0, + $ui-tab-font-size: 15px, + $ui-tab-font-size-over: 15px, + $ui-tab-font-size-active: 15px, + $ui-tab-line-height: 19px, + $ui-tab-font-weight: bold, + $ui-tab-font-weight-over: bold, + $ui-tab-font-weight-active: bold, + $ui-tab-icon-width: 24px, + $ui-tab-icon-height: 24px, + $ui-tab-icon-spacing: 5px, + $ui-bar-background-color: #404040, + $ui-bar-background-gradient: 'none', + $ui-bar-padding: 0, + $ui-strip-height: 0 +); + +/** + * Generates a set of style rules for the "navigation" panel UI. + */ +@include extjs-panel-ui( + $ui: 'navigation', + $ui-header-color: #fff, + $ui-header-glyph-color: #fff, + $ui-header-glyph-opacity: 1, + $ui-header-font-size: 20px, + $ui-header-line-height: 24px, + $ui-header-font-weight: bold, + $ui-header-icon-height: 24px, + $ui-header-icon-width: 24px, + $ui-header-icon-spacing: 15px, + $ui-header-background-color: $base-color, + $ui-header-padding: 0, + $ui-header-text-margin: 36px, + $ui-header-noborder-adjust: false +); + +.x-title-icon-navigation { + font-family: FontAwesome; + color: #fff; + font-size: 24px; + line-height: 24px; +} + +.x-tab-icon-el-navigation { + font-family: FontAwesome; + color: #acacac; + + .x-tab-over & { + color: #c4c4c4; + } + + .x-tab-active & { + color: #fff; + } +} + +.x-panel-header-title-navigation > .x-title-text-navigation:after { + top: 30px; + right: -24px; +} \ No newline at end of file diff --git a/frontend/DynamicForm/sass/var/all.scss b/frontend/DynamicForm/sass/var/all.scss new file mode 100644 index 000000000..9e095bc63 --- /dev/null +++ b/frontend/DynamicForm/sass/var/all.scss @@ -0,0 +1,5 @@ +/* + * This is is imported by virtue of "sass.var" in "app.json". + */ + +$enable-font-awesome: dynamic(true); diff --git a/frontend/build/production/CatalogBuilder/app.js b/frontend/build/production/CatalogBuilder/app.js new file mode 100644 index 000000000..143b1a112 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/app.js @@ -0,0 +1 @@ +var $jscomp={};$jscomp.scope={};$jscomp.defineProperty=typeof Object.defineProperties=='function'?Object.defineProperty:function(b,c,a){a=a;if(a.get||a.set){throw new TypeError('ES3 does not support getters and setters.')}if(b==Array.prototype||b==Object.prototype){return}b[c]=a.value};$jscomp.getGlobal=function(a){return typeof window!='undefined'&&window===a?a:typeof global!='undefined'&&global!=null?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(i,f,j,k){if(!f){return}var a=$jscomp.global;var b=i.split('.');for(var e=0;eb){if(--a in this){this[--c]=this[a]}else {delete this[c]}}}return this};return b},'es6-impl','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global.Symbol){$jscomp.global.Symbol=$jscomp.Symbol}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||'')+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;if(!a){a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol('iterator')}if(typeof Array.prototype[a]!='function'){$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}})}$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){if(bc){a=c}a=Number(a);if(a<0){a=Math.max(0,c+a)}for(var d=Number(b||0);d-0.25){var e=a;var f=1;var b=a;var c=0;var d=1;while(c!=b){e*=a;d*=-1;b=(c=b)+d*e/++f}return b}return Math.log(1+a)};return b},'es6-impl','es3');$jscomp.polyfill('Math.atanh',function(b){if(b){return b}var a=Math.log1p;var c=function(b){b=Number(b);return (a(b)-a(-b))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.cbrt',function(a){if(a){return a}var b=function(a){if(a===0){return a}a=Number(a);var b=Math.pow(Math.abs(a),1/3);return a<0?-b:b};return b},'es6-impl','es3');$jscomp.polyfill('Math.clz32',function(a){if(a){return a}var b=function(a){a=Number(a)>>>0;if(a===0){return 32}var b=0;if((a&4.29490176E9)===0){a<<=16;b+=16}if((a&4.27819008E9)===0){a<<=8;b+=8}if((a&4.02653184E9)===0){a<<=4;b+=4}if((a&3.221225472E9)===0){a<<=2;b+=2}if((a&2.147483648E9)===0){b++}return b};return b},'es6-impl','es3');$jscomp.polyfill('Math.cosh',function(a){if(a){return a}var b=Math.exp;var c=function(a){a=Number(a);return (b(a)+b(-a))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.expm1',function(a){if(a){return a}var b=function(a){a=Number(a);if(a<0.25&&a>-0.25){var d=a;var e=1;var b=a;var c=0;while(c!=b){d*=a/++e;b=(c=b)+d}return b}return Math.exp(a)-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.hypot',function(a){if(a){return a}var b=function(b,c,g){b=Number(b);c=Number(c);var a,f,e;var d=Math.max(Math.abs(b),Math.abs(c));for(a=2;a1.0E100||d<1.0E-100){b=b/d;c=c/d;e=b*b+c*c;for(a=2;a>>16&65535;var c=a&65535;var f=b>>>16&65535;var d=b&65535;var g=e*d+c*f<<16>>>0;return c*d+g|0};return b},'es6-impl','es3');$jscomp.polyfill('Math.log10',function(a){if(a){return a}var b=function(a){return Math.log(a)/Math.LN10};return b},'es6-impl','es3');$jscomp.polyfill('Math.log2',function(a){if(a){return a}var b=function(a){return Math.log(a)/Math.LN2};return b},'es6-impl','es3');$jscomp.polyfill('Math.sign',function(a){if(a){return a}var b=function(a){a=Number(a);return a===0||isNaN(a)?a:a>0?1:-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.sinh',function(a){if(a){return a}var b=Math.exp;var c=function(a){a=Number(a);if(a===0){return a}return (b(a)-b(-a))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.tanh',function(a){if(a){return a}var b=function(a){a=Number(a);if(a===0){return a}var b=Math.exp(-2*Math.abs(a));var c=(1-b)/(1+b);return a<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Math.trunc',function(a){if(a){return a}var b=function(a){a=Number(a);if(isNaN(a)||a===Infinity||a===-Infinity||a===0){return a}var b=Math.floor(Math.abs(a));return a<0?-b:b};return b},'es6-impl','es3');$jscomp.polyfill('Number.EPSILON',function(a){return Math.pow(2,-52)},'es6-impl','es3');$jscomp.polyfill('Number.MAX_SAFE_INTEGER',function(){return 9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.MIN_SAFE_INTEGER',function(){return -9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.isFinite',function(a){if(a){return a}var b=function(a){if(typeof a!=='number'){return !1}return !isNaN(a)&&a!==Infinity&&a!==-Infinity};return b},'es6-impl','es3');$jscomp.polyfill('Number.isInteger',function(a){if(a){return a}var b=function(a){if(!Number.isFinite(a)){return !1}return a===Math.floor(a)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isNaN',function(a){if(a){return a}var b=function(a){return typeof a==='number'&&isNaN(a)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isSafeInteger',function(a){if(a){return a}var b=function(a){return Number.isInteger(a)&&Math.abs(a)<=Number.MAX_SAFE_INTEGER};return b},'es6-impl','es3');$jscomp.polyfill('Object.assign',function(a){if(a){return a}var b=function(d,e){for(var c=1;c3?e:a,d);return !0}else {if(b.writable&&!Object.isFrozen(a)){a[c]=d;return !0}}return !1};return b},'es6','es5');$jscomp.polyfill('Reflect.setPrototypeOf',function(a){if(a){return a}if(typeof ''.__proto__!='object'){return null}var b=function(a,b){try{a.__proto__=b;return a.__proto__===b}catch(c){return !1}};return b},'es6','es5');$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.polyfill('Set',function(b){var c=!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!b||!b.prototype.entries||typeof Object.seal!='function'){return !1}try{b=b;var d=Object.seal({x:4});var c=new b($jscomp.makeIterator([d]));if(!c.has(d)||c.size!=1||c.add(d)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2){return !1}var e=c.entries();var a=e.next();if(a.done||a.value[0]!=d||a.value[1]!=d){return !1}a=e.next();if(a.done||a.value[0]==d||a.value[0].x!=4||a.value[1]!=a.value[0]){return !1}return e.next().done}catch(f){return !1}}();if(c){return b}$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=function(a){this.map_=new Map();if(a){var d=$jscomp.makeIterator(a);var b;while(!(b=d.next()).done){var c=b.value;this.add(c)}}this.size=this.map_.size};a.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};a.prototype['delete']=function(b){var a=this.map_['delete'](b);this.size=this.map_.size;return a};a.prototype.clear=function(){this.map_.clear();this.size=0};a.prototype.has=function(a){return this.map_.has(a)};a.prototype.entries=function(){return this.map_.entries()};a.prototype.values=function(){return this.map_.values()};$jscomp.initSymbol();$jscomp.initSymbolIterator();a.prototype[Symbol.iterator]=a.prototype.values;a.prototype.forEach=function(b,a){var c=this;this.map_.forEach(function(d){return b.call(a,d,d,c)})};return a},'es6-impl','es3');$jscomp.checkStringArgs=function(a,c,b){if(a==null){throw new TypeError("The 'this' value for String.prototype."+b+' must not be null or undefined')}if(c instanceof RegExp){throw new TypeError('First argument to String.prototype.'+b+' must not be a regular expression')}return a+''};$jscomp.polyfill('String.prototype.codePointAt',function(a){if(a){return a}var b=function(a){var d=$jscomp.checkStringArgs(this,null,'codePointAt');var e=d.length;a=Number(a)||0;if(!(a>=0&&a56319||a+1===e){return b}var c=d.charCodeAt(a+1);if(c<56320||c>57343){return b}return (b-55296)*1024+c+9216};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.endsWith',function(a){if(a){return a}var b=function(a,b){var c=$jscomp.checkStringArgs(this,a,'endsWith');a=a+'';if(b===void 0){b=c.length}var e=Math.max(0,Math.min(b|0,c.length));var d=a.length;while(d>0&&e>0){if(c[--e]!=a[--d]){return !1}}return d<=0};return b},'es6-impl','es3');$jscomp.polyfill('String.fromCodePoint',function(a){if(a){return a}var b=function(d){var b='';for(var c=0;c1114111||a!==Math.floor(a)){throw new RangeError('invalid_code_point '+a)}if(a<=65535){b+=String.fromCharCode(a)}else {a-=65536;b+=String.fromCharCode(a>>>10&1023|55296);b+=String.fromCharCode(a&1023|56320)}}return b};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.includes',function(a){if(a){return a}var b=function(a,b){var c=$jscomp.checkStringArgs(this,a,'includes');return c.indexOf(a,b||0)!==-1};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.repeat',function(a){if(a){return a}var b=function(a){var b=$jscomp.checkStringArgs(this,null,'repeat');if(a<0||a>1342177279){throw new RangeError('Invalid count value')}a=a|0;var c='';while(a){if(a&1){c+=b}if(a>>>=1){b+=b}}return c};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.startsWith',function(a){if(a){return a}var b=function(a,f){var b=$jscomp.checkStringArgs(this,a,'startsWith');a=a+'';var g=b.length;var d=a.length;var e=Math.max(0,Math.min(f|0,b.length));var c=0;while(c=d};return b},'es6-impl','es3');$jscomp.arrayFromIterator=function(c){var b;var a=[];while(!(b=c.next()).done){a.push(b.value)}return a};$jscomp.arrayFromIterable=function(a){if(a instanceof Array){return a}else {return $jscomp.arrayFromIterator($jscomp.makeIterator(a))}};$jscomp.inherits=function(a,b){function tempCtor(){}tempCtor.prototype=b.prototype;a.prototype=new tempCtor();a.prototype.constructor=a;for(var c in b){if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);if(d){Object.defineProperty(a,c,d)}}else {a[c]=b[c]}}};$jscomp.polyfill('WeakSet',function(b){function isConformant(){if(!b||!Object.seal){return !1}try{var c=Object.seal({});var d=Object.seal({});var a=new b([c]);if(!a.has(c)||a.has(d)){return !1}a['delete'](c);a.add(d);return !a.has(c)&&a.has(d)}catch(e){return !1}}if(isConformant()){return b}var a=function(a){this.map_=new WeakMap();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var d=$jscomp.makeIterator(a);var b;while(!(b=d.next()).done){var c=b.value;this.add(c)}}};a.prototype.add=function(a){this.map_.set(a,!0);return this};a.prototype.has=function(a){return this.map_.has(a)};a.prototype['delete']=function(a){return this.map_['delete'](a)};return a},'es6-impl','es3');try{if(Array.prototype.values.toString().indexOf('[native code]')==-1){delete Array.prototype.values}}catch(a){}var CatalogBuilder=CatalogBuilder||{};if(!CatalogBuilder.view){CatalogBuilder.view={}}if(!CatalogBuilder.view.main){CatalogBuilder.view.main={}}var Ext=Ext||{};if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.app.bind){Ext.app.bind={}}if(!Ext.app.domain){Ext.app.domain={}}if(!Ext.app.route){Ext.app.route={}}if(!Ext.button){Ext.button={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}if(!Ext.data){Ext.data={}}if(!Ext.data.field){Ext.data.field={}}if(!Ext.data.flash){Ext.data.flash={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.matrix){Ext.data.matrix={}}if(!Ext.data.operation){Ext.data.operation={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.request){Ext.data.request={}}if(!Ext.data.schema){Ext.data.schema={}}if(!Ext.data.session){Ext.data.session={}}if(!Ext.data.validator){Ext.data.validator={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dd){Ext.dd={}}if(!Ext.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.form){Ext.form={}}if(!Ext.form.Action){Ext.form.Action={}}if(!Ext.form.action){Ext.form.action={}}if(!Ext.form.field){Ext.form.field={}}if(!Ext.form.trigger){Ext.form.trigger={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.fx.target){Ext.fx.target={}}if(!Ext.grid){Ext.grid={}}if(!Ext.grid.column){Ext.grid.column={}}if(!Ext.grid.header){Ext.grid.header={}}if(!Ext.grid.locking){Ext.grid.locking={}}if(!Ext.grid.plugin){Ext.grid.plugin={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.boxOverflow){Ext.layout.boxOverflow={}}if(!Ext.layout.component){Ext.layout.component={}}if(!Ext.layout.container){Ext.layout.container={}}if(!Ext.layout.container.border){Ext.layout.container.border={}}if(!Ext.layout.container.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.list){Ext.list={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.overrides){Ext.overrides={}}if(!Ext.overrides.app){Ext.overrides.app={}}if(!Ext.overrides.app.domain){Ext.overrides.app.domain={}}if(!Ext.overrides.dom){Ext.overrides.dom={}}if(!Ext.overrides.event){Ext.overrides.event={}}if(!Ext.overrides.event.publisher){Ext.overrides.event.publisher={}}if(!Ext.overrides.plugin){Ext.overrides.plugin={}}if(!Ext.overrides.util){Ext.overrides.util={}}if(!Ext.panel){Ext.panel={}}if(!Ext.perf){Ext.perf={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.promise){Ext.promise={}}if(!Ext.resizer){Ext.resizer={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.selection){Ext.selection={}}if(!Ext.state){Ext.state={}}if(!Ext.tab){Ext.tab={}}if(!Ext.theme){Ext.theme={}}if(!Ext.theme.crisp){Ext.theme.crisp={}}if(!Ext.theme.crisp.view){Ext.theme.crisp.view={}}if(!Ext.theme.neptune){Ext.theme.neptune={}}if(!Ext.theme.neptune.layout){Ext.theme.neptune.layout={}}if(!Ext.theme.neptune.layout.component){Ext.theme.neptune.layout.component={}}if(!Ext.theme.neptune.menu){Ext.theme.neptune.menu={}}if(!Ext.theme.neptune.panel){Ext.theme.neptune.panel={}}if(!Ext.theme.neptune.resizer){Ext.theme.neptune.resizer={}}if(!Ext.theme.neptune.toolbar){Ext.theme.neptune.toolbar={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}if(!Ext.tree){Ext.tree={}}if(!Ext.tree.plugin){Ext.tree.plugin={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.ux){Ext.ux={}}if(!Ext.view){Ext.view={}}if(!Ext.window){Ext.window={}}var common=common||{};if(!common.contact){common.contact={}}if(!common.data){common.data={}}if(!common.data.proxy){common.data.proxy={}}if(!common.footer){common.footer={}}if(!common.header){common.header={}}if(!common.help){common.help={}}(function(q){var e,p=['constructor','toString','valueOf','toLocaleString'],n={},m={},k=0,l,j,a,b,o,f,c,d,g,h,i,t=function(){var s,t;j=Ext.Base;a=Ext.ClassManager;b=Ext.Class;for(s=p.length;s-->0;){t=1<0;){G=e[l];g[G]=j[G]}if(c.$isFunction){c=c(g)}u.data=c;w=c.statics;delete c.statics;c.$className=t;if('$className' in c){g.$className=c.$className}g.extend(P);q=g.prototype;if(D){g.xtype=c.xtype=D[0];q.xtypes=D}q.xtypesChain=L;q.xtypesMap=N;c.alias=z;m.triggerExtended(g,c,u);if(c.onClassExtended){g.onExtended(c.onClassExtended,g);delete c.onClassExtended}if(c.privates&&h){h.call(b,g,c)}if(w){if(i){g.addStatics(w)}else {for(v in w){if(w.hasOwnProperty(v)){r=w[v];if(r&&r.$isFunction&&!r.$isClass&&r!==Ext.emptyFn&&r!==Ext.identityFn){g[v]=H=r;H.$owner=g;H.$name=v}g[v]=r}}}}if(c.inheritableStatics){g.addInheritableStatics(c.inheritableStatics);delete c.inheritableStatics}if(q.onClassExtended){m.onExtended(q.onClassExtended,m);delete q.onClassExtended}if(c.platformConfig&&d){d.call(b,g,c);delete c.platformConfig}if(c.config){o.call(b,g,c)}if(c.cachedConfig&&f){f.call(b,g,c);delete c.cachedConfig}u.onBeforeCreated(g,u.data,u);for(l=0,x=C&&C.length;l0){c--;a[c]='var Ext=window.'+Ext.name+';'+a[c]}}d=a.join('');b=e[d];if(!b){b=Function.prototype.constructor.apply(Function.prototype,a);e[d]=b}return b},functionFactory:function(){var b=Array.prototype.slice.call(arguments),a;if(Ext.isSandboxed){a=b.length;if(a>0){a--;b[a]='var Ext=window.'+Ext.name+';'+b[a]}}return Function.prototype.constructor.apply(Function.prototype,b)},Logger:{verbose:a,log:a,info:a,warn:a,error:function(a){throw new Error(a)},deprecate:a},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:function(){var a={};return function(e,c){if(!e){return []}else {if(!c){return [e]}}var g=a[c]||(a[c]=new RegExp('\\\\'+c,'g')),f=[],d,b;d=e.split(c);while((b=d.shift())!==undefined){while(b.charAt(b.length-1)==='\\'&&d.length>0){b=b+c+d.shift()}b=b.replace(g,c);f.push(b)}return f}}()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=!0})();Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=!0);(function(){function toString(){var d=this,b=d.sourceClass,a=d.sourceMethod,c=d.msg;if(a){if(c){a+='(): ';a+=c}else {a+='()'}}if(b){a=a?b+'.'+a:b}return a||c||''}Ext.Error=function(b){if(Ext.isString(b)){b={msg:b}}var a=new Error();Ext.apply(a,b);a.message=a.message||a.msg;a.toString=toString;return a};Ext.apply(Ext.Error,{ignore:!1,raise:function(a){a=a||{};if(Ext.isString(a)){a={msg:a}}var d=this,b=d.raise.caller,e,c;if(b===Ext.raise){b=b.caller}if(b){if(!a.sourceMethod&&(c=b.$name)){a.sourceMethod=c}if(!a.sourceClass&&(c=b.$owner)&&(c=c.$className)){a.sourceClass=c}}if(d.handle(a)!==!0){e=toString.call(a);throw new Ext.Error(a)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=function(){var c=Array.prototype,b=c.slice,f=function(){var a=[],b,c=20;if(!a.splice){return !1}while(c--){a.push('A')}a.splice(15,0,'F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F');b=a.length;a.splice(13,0,'XXX');if(b+1!==a.length){return !1}return !0}(),i='indexOf' in c,h=!0;function stableSort(b,e){var d=b.length,c=new Array(d),a;for(a=0;ac){for(b=l;b--;){a[h+b]=a[c+b]}}}if(e&&f===j){a.length=j;a.push.apply(a,d)}else {a.length=j+e;for(b=0;b>1;f=d(i,h[e]);if(f>=0){c=e+1}else {if(f<0){b=e-1}}}return c},defaultCompare:function(a,b){return ab?1:0},lexicalCompare:function(a,b){a=String(a);b=String(b);return ab?1:0},each:function(c,e,d,g){c=a.from(c);var b,f=c.length;if(g!==!0){for(b=0;b-1;b--){if(e.call(d||c[b],c[b],b,c)===!1){return b}}}return !0},forEach:'forEach' in c?function(a,c,b){return a.forEach(c,b)}:function(b,d,c){for(var a=0,e=b.length;a=0&&b>>0,c=e;if(arguments.length<3){while(!0){if(b in a){c=a[b++];break}if(++b>=d){throw new TypeError('Reduce of empty array with no initial value')}}}for(;bb){b=a}}}return b},mean:function(b){return b.length>0?a.sum(b)/b.length:undefined},sum:function(b){var d=0,a,e,c;for(a=0,e=b.length;ab?1:-1,a;for(a=b;a!=d;a+=e){c[a]=c[a+e]}c[d]=f},replace:j,splice:p,push:function(a){var d=arguments.length,c=1,b;if(a===undefined){a=[]}else {if(!Ext.isArray(a)){a=[a]}}for(;c=d){a=0}else {a=d-a}}if(a===0){b=c+b}else {if(a>=b.length){b+=c}else {b=b.substr(0,a)+c+b.substr(a)}}return b},startsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.lastIndexOf(a,0)===0}return c},endsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.indexOf(a,b.length-a.length)!==-1}return c},createVarName:function(a){return a.replace(l,'')},htmlEncode:function(a){return !a?a:String(a).replace(b,h)},htmlDecode:function(a){return !a?a:String(a).replace(d,g)},hasHtmlCharacters:function(a){return b.test(a)},addCharacterEntities:function(g){var i=[],h=[],e,f;for(e in g){f=g[e];a[e]=f;c[f]=e;i.push(f);h.push(e)}b=new RegExp('('+i.join('|')+')','g');d=new RegExp('('+h.join('|')+'|&#[0-9]{1,5};)','g')},resetCharacterEntities:function(){c={};a={};this.addCharacterEntities({'&':'&','>':'>','<':'<','"':'"',''':"'"})},urlAppend:function(a,b){if(!Ext.isEmpty(b)){return a+(a.indexOf('?')===-1?'?':'&')+b}return a},trim:function(a){if(a){a=a.replace(m,'')}return a||''},capitalize:function(a){if(a){a=a.charAt(0).toUpperCase()+a.substr(1)}return a||''},uncapitalize:function(a){if(a){a=a.charAt(0).toLowerCase()+a.substr(1)}return a||''},ellipsis:function(a,c,e){if(a&&a.length>c){if(e){var b=a.substr(0,c-2),d=Math.max(b.lastIndexOf(' '),b.lastIndexOf('.'),b.lastIndexOf('!'),b.lastIndexOf('?'));if(d!==-1&&d>=c-15){return b.substr(0,d)+'...'}}return a.substr(0,c-3)+'...'}return a},escapeRegex:function(a){return a.replace(i,'\\$1')},createRegex:function(b,d,e,c){var a=b;if(b!=null&&!b.exec){a=f.escapeRegex(String(b));if(d!==!1){a='^'+a}if(e!==!1){a+='$'}a=new RegExp(a,c!==!1?'i':'')}return a},escape:function(a){return a.replace(n,'\\$1')},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,d,b){var a=String(c);b=b||' ';while(a.length daysInMonth) {','d = daysInMonth;','}','}','h = from(h, from(def.h, dt.getHours()));','i = from(i, from(def.i, dt.getMinutes()));','s = from(s, from(def.s, dt.getSeconds()));','ms = from(ms, from(def.ms, dt.getMilliseconds()));','if(z >= 0 && y >= 0){','v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);','}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){','v = null;','}else{','if (W) {','year = y || (new Date()).getFullYear();','jan4 = new Date(year, 0, 4, 0, 0, 0);','d = jan4.getDay();','week1monday = new Date(jan4.getTime() - ((d === 0 ? 6 : d - 1) * 86400000));','v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));','} else {','v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','}','}','}','}','if(v){','if(zz != null){','v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);','}else if(o){',"v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));",'}','}','return (v != null) ? v : null;'].join('\n');if(!Date.prototype.toISOString){Date.prototype.toISOString=function(){var a=this;return c(a.getUTCFullYear(),4,'0')+'-'+c(a.getUTCMonth()+1,2,'0')+'-'+c(a.getUTCDate(),2,'0')+'T'+c(a.getUTCHours(),2,'0')+':'+c(a.getUTCMinutes(),2,'0')+':'+c(a.getUTCSeconds(),2,'0')+'.'+c(a.getUTCMilliseconds(),3,'0')+'Z'}}function xf(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(e,function(c,a){return b[a]})}return a={now:b.now,toString:function(a){if(!a){a=new b()}return a.getFullYear()+'-'+c(a.getMonth()+1,2,'0')+'-'+c(a.getDate(),2,'0')+'T'+c(a.getHours(),2,'0')+':'+c(a.getMinutes(),2,'0')+':'+c(a.getSeconds(),2,'0')},getElapsed:function(b,c){return Math.abs(b-(c||a.now()))},useStrict:!1,formatCodeToRegex:function(c,d){var b=a.parseCodes[c];if(b){b=typeof b==='function'?b():b;a.parseCodes[c]=b}return b?Ext.applyIf({c:b.c?xf(b.c,d||'{0}'):b.c},b):{g:0,c:null,s:Ext.String.escapeRegex(c)}},parseFunctions:{'MS':function(c,d){var a=(c||'').match(f);return a?new b(((a[1]||'')+a[2])*1):null},'time':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a)}return null},'timestamp':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a*1000)}return null}},parseRegexes:[],formatFunctions:{'MS':function(){return '\\/Date('+this.getTime()+')\\/'},'time':function(){return this.getTime().toString()},'timestamp':function(){return a.format(this,'U')}},y2kYear:50,MILLI:'ms',SECOND:'s',MINUTE:'mi',HOUR:'h',DAY:'d',MONTH:'mo',YEAR:'y',defaults:{},dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:'m/d/Y',getShortMonthName:function(b){return a.monthNames[b].substring(0,3)},getShortDayName:function(b){return a.dayNames[b].substring(0,3)},getMonthNumber:function(b){return a.monthNumbers[b.substring(0,1).toUpperCase()+b.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return h.test(a.replace(d,''))},formatContainsDateInfo:function(a){return g.test(a.replace(d,''))},unescapeFormat:function(a){return a.replace(i,'')},formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')",D:'Ext.Date.getShortDayName(m.getDay())',j:'m.getDate()',l:'Ext.Date.dayNames[m.getDay()]',N:'(m.getDay() ? m.getDay() : 7)',S:'Ext.Date.getSuffix(m)',w:'m.getDay()',z:'Ext.Date.getDayOfYear(m)',W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')",F:'Ext.Date.monthNames[m.getMonth()]',m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')",M:'Ext.Date.getShortMonthName(m.getMonth())',n:'(m.getMonth() + 1)',t:'Ext.Date.getDaysInMonth(m)',L:'(Ext.Date.isLeapYear(m) ? 1 : 0)',o:'(m.getFullYear() + (Ext.Date.getWeekOfYear(m) == 1 && m.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(m) >= 52 && m.getMonth() < 11 ? -1 : 0)))',Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')",y:"('' + m.getFullYear()).substring(2, 4)",a:"(m.getHours() < 12 ? 'am' : 'pm')",A:"(m.getHours() < 12 ? 'AM' : 'PM')",g:'((m.getHours() % 12) ? m.getHours() % 12 : 12)',G:'m.getHours()',h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(m.getHours(), 2, '0')",i:"Ext.String.leftPad(m.getMinutes(), 2, '0')",s:"Ext.String.leftPad(m.getSeconds(), 2, '0')",u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')",O:'Ext.Date.getGMTOffset(m)',P:'Ext.Date.getGMTOffset(m, true)',T:'Ext.Date.getTimezone(m)',Z:'(m.getTimezoneOffset() * -60)',c:function(){var e='Y-m-dTH:i:sP',d=[],b,f=e.length,c;for(b=0;b me.y2kYear ? 1900 + ty : 2000 + ty;\n',s:'(\\d{2})'},a:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(am|pm|AM|PM)',calcAtEnd:!0},A:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(AM|PM|am|pm)',calcAtEnd:!0},g:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|[0-9])'},G:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|1[0-9]|[0-9])'},h:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|0[1-9])'},H:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|[0-1][0-9])'},i:{g:1,c:'i = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},s:{g:1,c:'s = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},u:{g:1,c:'ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n',s:'(\\d+)'},O:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),','mn = o.substring(3,5) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{4})'},P:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),','mn = o.substring(4,6) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{2}:\\d{2})'},T:{g:0,c:null,s:'[A-Z]{1,5}'},Z:{g:1,c:'zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n',s:'([+-]?\\d{1,5})'},c:function(){var d=[],b=[a.formatCodeToRegex('Y',1),a.formatCodeToRegex('m',2),a.formatCodeToRegex('d',3),a.formatCodeToRegex('H',4),a.formatCodeToRegex('i',5),a.formatCodeToRegex('s',6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:['if(results[8]) {',"if(results[8] == 'Z'){",'zz = 0;',"}else if (results[8].indexOf(':') > -1){",a.formatCodeToRegex('P',8).c,'}else{',a.formatCodeToRegex('O',8).c,'}','}'].join('\n')}],c,e;for(c=0,e=b.length;c0?'-':'+')+Ext.String.leftPad(Math.floor(Math.abs(a)/60),2,'0')+(b?':':'')+Ext.String.leftPad(Math.abs(a%60),2,'0')},getDayOfYear:function(c){var e=0,b=a.clone(c),f=c.getMonth(),d;for(d=0,b.setDate(1),b.setMonth(0);d28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.MONTH,c)).getDate())};b.setDate(d);b.setMonth(f.getMonth()+c);break;case a.YEAR:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.YEAR,c)).getDate())};b.setDate(d);b.setFullYear(f.getFullYear()+c);break;}}if(g){switch(h.toLowerCase()){case a.MILLI:e=1;break;case a.SECOND:e=1000;break;case a.MINUTE:e=1000*60;break;case a.HOUR:e=1000*60*60;break;case a.DAY:e=1000*60*60*24;break;case a.MONTH:d=a.getDaysInMonth(b);e=1000*60*60*24*d;break;case a.YEAR:d=a.isLeapYear(b)?366:365;e=1000*60*60*24*d;break;}if(e){b.setTime(b.getTime()+e*g)}}return b},subtract:function(d,b,c){return a.add(d,b,-c)},between:function(c,b,d){var a=c.getTime();return b.getTime()<=a&&a<=d.getTime()},compat:function(){var c,g=['useStrict','formatCodeToRegex','parseFunctions','parseRegexes','formatFunctions','y2kYear','MILLI','SECOND','MINUTE','HOUR','DAY','MONTH','YEAR','defaults','dayNames','monthNames','monthNumbers','getShortMonthName','getShortDayName','getMonthNumber','formatCodes','isValid','parseDate','getFormatCode','createFormat','createParser','parseCodes'],h=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],j=g.length,i=h.length,f,e,d;for(d=0;dd){return b-1};return b;case a.YEAR:b=d.getFullYear()-e.getFullYear();if(a.add(e,f,b)>d){return b-1}else {return b};}},align:function(e,f,d){var c=new b(+e);switch(f.toLowerCase()){case a.MILLI:return c;case a.SECOND:c.setUTCSeconds(c.getUTCSeconds()-c.getUTCSeconds()%d);c.setUTCMilliseconds(0);return c;case a.MINUTE:c.setUTCMinutes(c.getUTCMinutes()-c.getUTCMinutes()%d);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.HOUR:c.setUTCHours(c.getUTCHours()-c.getUTCHours()%d);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.DAY:if(d===7||d===14){c.setUTCDate(c.getUTCDate()-c.getUTCDay()+1)};c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.MONTH:c.setUTCMonth(c.getUTCMonth()-(c.getUTCMonth()-1)%d,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.YEAR:c.setUTCFullYear(c.getUTCFullYear()-c.getUTCFullYear()%d,1,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return e;}}}}();Ext.Function=function(){var i=0,f,c=[],l=[],m=0,e={},d=window,b=Ext.global,h=!!(b.setImmediate&&b.clearImmediate),k=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(c){var b=Ext.now(),a=Math.max(0,16-(b-i)),e=d.setTimeout(function(){c(b+a)},a);i=b+a;return e},g=function(){var h=c.length,g,d,a;f=null;for(d=0;d0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},b)}a();return 0},interval:function(a,c,d,e,b){a=Ext.Function.bind(a,d,e,b);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},c)},createSequence:function(a,b,c){if(!b){return a}else {return function(){var d=a.apply(this,arguments);b.apply(c||this,arguments);return d}}},createBuffered:function(b,c,d,e){var a;return function(){var f=e||Array.prototype.slice.call(arguments,0),g=d||this;if(a){clearTimeout(a)}a=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b,g,f)}else {b.apply(g,f)}},c)}},createAnimationFrame:function(f,d,e,c){var b;c=c||3;return function(){var g=e||Array.prototype.slice.call(arguments,0);d=d||this;if(c===3&&b){a.cancelAnimationFrame(b)}if(c&1||!b){b=a.requestAnimationFrame(function(){b=null;f.apply(d,g)})}}},requestAnimationFrame:function(i,d,h){var a=++m,b=Array.prototype.slice.call(arguments,0);b[3]=a;e[a]=1;c.push(b);if(!f){f=k(Ext.elevateFunction?j:g)}return a},cancelAnimationFrame:function(a){delete e[a]},createThrottled:function(h,f,a){var e=0,d,c,b,g=function(){if(Ext.elevateFunction){Ext.elevateFunction(h,a,c)}else {h.apply(a,c)}e=Ext.now();b=null};return function(){if(!a){a=this}d=Ext.now()-e;c=arguments;if(d>=f){clearTimeout(b);g()}else {if(!b){b=Ext.defer(g,f-d)}}}},createBarrier:function(a,c,b){return function(){if(!--a){c.apply(b,arguments)}}},interceptBefore:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){var a=e.apply(d||this,arguments);c.apply(this,arguments);return a}},interceptAfter:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){c.apply(this,arguments);return e.apply(d||this,arguments)}},makeCallback:function(b,a){return function(){return a[b].apply(a,arguments)}},memoize:function(e,c,a){var b={},d=a&&Ext.isFunction(a);return function(g){var f=d?a.apply(c,arguments):g;if(!(f in b)){b[f]=e.apply(c,arguments)}return b[f]}}};Ext.asap=h?function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setImmediate(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}})}:function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}},0,!0)},Ext.asapCancel=h?function(a){clearImmediate(a)}:function(a){clearTimeout(a)};Ext.defer=a.defer;Ext.interval=a.interval;Ext.pass=a.pass;Ext.bind=a.bind;Ext.deferCallback=a.requestAnimationFrame;return a}();Ext.Number=new function(){var b=this,d=(0.9).toFixed()!=='1',c=Math,a={count:!1,inclusive:!1,wrap:!0};Ext.apply(b,{Clip:{DEFAULT:a,COUNT:Ext.applyIf({count:!0},a),INCLUSIVE:Ext.applyIf({inclusive:!0},a),NOWRAP:Ext.applyIf({wrap:!1},a)},clipIndices:function(d,c,f){f=f||a;var h=0,i=f.wrap,g,b,e;c=c||[];for(e=0;e<2;++e){g=b;b=c[e];if(b==null){b=h}else {if(e&&f.count){b+=g;b=b>d?d:b}else {if(i){b=b<0?d+b:b}if(e&&f.inclusive){++b}b=b<0?0:b>d?d:b}}h=d}c[0]=g;c[1]=ba?a:d},snap:function(a,c,e,f){var d;if(a===undefined||a=c){a+=c}else {if(d*2<-c){a-=c}}}}return b.constrain(a,e,f)},snapInRange:function(a,d,c,e){var f;c=c||0;if(a===undefined||a=d){a+=d}}if(e!==undefined){if(a>(e=b.snapInRange(e,d,c))){a=e}}return a},sign:function(a){a=+a;if(a===0||isNaN(a)){return a}return a>0?1:-1},toFixed:d?function(d,a){a=a||0;var b=c.pow(10,a);return (c.round(d*b)/b).toFixed(a)}:function(b,a){return b.toFixed(a)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(a,b){return c.floor(c.random()*(b-a+1)+a)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return b.from.apply(this,arguments)}}();(function(){var b=function(){},d=/^\?/,f=/(\[):?([^\]]*)\]/g,e=/^([^\[]+)/,c=/\+/g,a=Ext.Object={chain:Object.create||function(a){b.prototype=a;var c=new b();b.prototype=null;return c},clear:function(a){for(var b in a){delete a[b]}return a},freeze:Object.freeze?function(b,c){if(b&&typeof b==='object'&&!Object.isFrozen(b)){Object.freeze(b);if(c){for(var d in b){a.freeze(b[d],c)}}}return b}:Ext.identityFn,toQueryObjects:function(e,c,f){var g=a.toQueryObjects,d=[],b,h;if(Ext.isArray(c)){for(b=0,h=c.length;b0){o=q.split('=');a=o[0];a=a.replace(c,'%20');a=decodeURIComponent(a);g=o[1];if(g!==undefined){g=g.replace(c,'%20');g=decodeURIComponent(g)}else {g=''}if(!v){if(i.hasOwnProperty(a)){if(!Ext.isArray(i[a])){i[a]=[i[a]]}i[a].push(g)}else {i[a]=g}}else {m=a.match(f);r=a.match(e);a=r[0];k=[];if(m===null){i[a]=g;continue}for(h=0,l=m.length;h@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(b){var c=b,a;if(b&&b.charAt(0)==='<'){a=Ext._resourcePoolRe.exec(b);if(a){c=Ext.getResourcePath(a[3],a[1],a[2])}}return c},urlEncode:function(){var a=Ext.Array.from(arguments),b='';if(Ext.isString(a[1])){b=a[1]+'&';a[1]=!1}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(d){var b=Ext._scrollbarSize;if(d||!b){var c=document.body,a=document.createElement('div');a.style.width=a.style.height='100px';a.style.overflow='scroll';a.style.position='absolute';c.appendChild(a);Ext._scrollbarSize=b={width:a.offsetWidth-a.clientWidth,height:a.offsetHeight-a.clientHeight};c.removeChild(a)}return b},typeOf:function(){var a=/\S/,d=Object.prototype.toString,c={number:1,string:1,'boolean':1,'undefined':1},b={'[object Array]':'array','[object Date]':'date','[object Boolean]':'boolean','[object Number]':'number','[object RegExp]':'regexp'};return function(e){if(e===null){return 'null'}var f=typeof e,g,h;if(c[f]){return f}g=b[h=d.call(e)];if(g){return g}if(f==='function'){return 'function'}if(f==='object'){if(e.nodeType!==undefined){if(e.nodeType===3){return a.test(e.nodeValue)?'textnode':'whitespace'}else {return 'element'}}return 'object'}return h}}(),factory:function(a,f,b,d){var e=Ext.ClassManager,c;if(!a||a.isInstance){if(b&&b!==a){b.destroy()}return a}if(d){if(typeof a==='string'){return e.instantiateByAlias(d+'.'+a)}else {if(Ext.isObject(a)&&'type' in a){return e.instantiateByAlias(d+'.'+a.type,a)}}}if(a===!0){return b||Ext.create(f)}if('xtype' in a){c=e.instantiateByAlias('widget.'+a.xtype,a)}else {if('xclass' in a){c=Ext.create(a.xclass,a)}}if(c){if(b){b.destroy()}return c}if(b){return b.setConfig(a)}return Ext.create(f,a)},log:function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}()});(function(){var b=[''],c=/([^\d\.])/,f=/[^\d]/g,g=/[\-+]/g,h=/\s/g,e=/_/g,d={classic:1,modern:1},a;Ext.Version=a=function(k,p){var b=this,n=b.padModes,o,m,d,h,j,l,i;if(k.isVersion){k=k.version}b.version=i=String(k).toLowerCase().replace(e,'.').replace(g,'');o=i.charAt(0);if(o in n){i=i.substring(1);d=n[o]}else {d=p?n[p]:0}b.pad=d;l=i.search(c);b.shortVersion=i;if(l!==-1){b.release=j=i.substr(l,k.length);b.shortVersion=i.substr(0,l);j=a.releaseValueMap[j]||j}b.releaseValue=j||d;b.shortVersion=b.shortVersion.replace(f,'');b.parts=h=i.split('.');for(m=h.length;m--;){h[m]=parseInt(h[m],10)}if(d===Infinity){h.push(d)}b.major=h[0]||d;b.minor=h[1]||d;b.patch=h[2]||d;b.build=h[3]||d;return b};a.prototype={isVersion:!0,padModes:{'~':NaN,'^':Infinity},release:'',compareTo:function(f){var g=this,m=g.pad,j=g.parts,h=j.length,e=f.isVersion?f:new a(f),n=e.pad,k=e.parts,i=k.length,l=Math.max(h,i),b,c,d;for(b=0;bd){return 1}}c=g.releaseValue;d=e.releaseValue;if(cd){return 1}return 0},toString:function(){return this.version},valueOf:function(){return this.version},getMajor:function(){return this.major},getMinor:function(){return this.minor},getPatch:function(){return this.patch},getBuild:function(){return this.build},getRelease:function(){return this.release},getReleaseValue:function(){return this.releaseValue},isGreaterThan:function(a){return this.compareTo(a)>0},isGreaterThanOrEqual:function(a){return this.compareTo(a)>=0},isLessThan:function(a){return this.compareTo(a)<0},isLessThanOrEqual:function(a){return this.compareTo(a)<=0},equals:function(a){return this.compareTo(a)===0},match:function(a){a=String(a);return this.version.substr(0,a.length)===a},toArray:function(){var a=this;return [a.getMajor(),a.getMinor(),a.getPatch(),a.getBuild(),a.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(a){return this.compareTo(a)>0},lt:function(a){return this.compareTo(a)<0},gtEq:function(a){return this.compareTo(a)>=0},ltEq:function(a){return this.compareTo(a)<=0}};Ext.apply(a,{aliases:{from:{extjs:'ext',core:'core',touch:'modern'},to:{ext:['extjs'],'core':['core'],modern:['touch']}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,'#':-2,p:-1,pl:-1},getComponentValue:function(a){return !a?0:isNaN(a)?this.releaseValueMap[a]||a:parseInt(a,10)},compare:function(b,c){var d=b.isVersion?b:new a(b);return d.compareTo(c)},set:function(g,f,c){var b=a.aliases.to[f],d=c.isVersion?c:new a(c),e;g[f]=d;if(b){for(e=b.length;e-->0;){g[b[e]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,d;if(!b){d=c.ext||c.touch||c.core}else {d=c[a.aliases.from[b]||b]}return d||Ext.getVersion(b)},setCompatVersion:function(b,c){a.set(Ext.compatVersions,b,c)},setVersion:function(b,c){if(b in d){Ext.toolkit=b}Ext.lastRegisteredVersion=a.set(Ext.versions,b,c);return this},getVersion:function(c){var b=Ext.versions;if(!c){return b.ext||b.touch||b.core}return b[a.aliases.from[c]||c]},checkVersion:function(o,j){var p=Ext.isArray(o),s=a.aliases.from,q=p?o:b,t=q.length,n=Ext.versions,r=n.ext||n.touch,l,c,f,i,g,m,d,e,k;if(!p){b[0]=o}for(l=0;l=0){d=d.replace(h,'')}c=d.indexOf('@');if(c<0){e=d;k=r}else {m=d.substring(0,c);if(!(k=n[s[m]||m])){if(j){return !1}continue}e=d.substring(c+1)}c=e.indexOf('-');if(c<0){if(e.charAt(c=e.length-1)==='+'){i=e.substring(0,c);g=null}else {i=g=e}}else {if(c>0){i=e.substring(0,c);g=e.substring(c+1)}else {i=null;g=e.substring(c+1)}}f=!0;if(i){i=new a(i,'~');f=i.ltEq(k)}if(f&&g){g=new a(g,'~');f=g.gtEq(k)}}if(f){if(!j){return !0}}else {if(j){return !1}}}return !!j},deprecate:function(b,e,c,d){if(a.compare(Ext.getVersion(b),e)<1){c.call(d)}}})})();(function(c){var d=c&&c.packages||{},b=c&&c.compatibility,a,e;for(a in d){e=d[a];Ext.setVersion(a,e.version)}if(b){if(Ext.isString(b)){Ext.setCompatVersion('core',b)}else {for(a in b){Ext.setCompatVersion(a,b[a])}}}if(!d.ext&&!d.touch){Ext.setVersion('ext','6.0.1.250');Ext.setVersion('core','6.0.1.250')}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:'_'+b,initializing:'is'+a+'Initializing',apply:'apply'+a,update:'update'+a,get:'get'+a,set:'set'+a,initGet:'initGet'+a,changeEvent:b.toLowerCase()+'change'};c.root=c};Ext.Config.map={};Ext.Config.get=function(a){var b=Ext.Config.map,c=b[a]||(b[a]=new Ext.Config(a));return c};Ext.Config.prototype={self:Ext.Config,isConfig:!0,getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(b,d,f,e){var a,c;if(!d){a=b}else {if(!b){a=d}else {a=Ext.Object.chain(d);for(c in b){if(!e||!(c in a)){a[c]=b[c]}}}}return a},mergeSets:function(a,f,e){var b=f?Ext.Object.chain(f):{},c,d;if(a instanceof Array){for(c=a.length;c--;){d=a[c];if(!e||!(d in b)){b[d]=!0}}}else {if(a){if(a.constructor===Object){for(c in a){d=a[c];if(!e||!(c in b)){b[c]=d}}}else {if(!e||!(a in b)){b[a]=!0}}}}return b},makeGetter:function(){var b=this.name,a=this.names.internal;return function(){var c=this.$configPrefixed?a:b;return this[c]}},makeInitGetter:function(){var e=this.name,a=this.names,d=a.set,c=a.get,b=a.initializing;return function(){var a=this;a[b]=!0;delete a[c];a[d](a.config[e]);delete a[b];return a[c].apply(a,arguments)}},makeSetter:function(){var g=this.name,a=this.names,e=a.internal,f=a.get,d=a.apply,c=a.update,b;b=function(b){var a=this,h=a.$configPrefixed?e:g,i=a[h];delete a[f];if(!a[d]||(b=a[d](b,i))!==undefined){if(b!==(i=a[h])){a[h]=b;if(a[c]){a[c](b,i)}}}return a};b.$isDefault=!0;return b},makeEventedSetter:function(){var i=this.name,a=this.names,f=a.internal,h=a.get,d=a.apply,b=a.update,e=a.changeEvent,g=function(a,c,e,d){a[d]=c;if(a[b]){a[b](c,e)}},c;c=function(c){var a=this,k=a.$configPrefixed?f:i,j=a[k];delete a[h];if(!a[d]||(c=a[d](c,j))!==undefined){if(c!==(j=a[k])){if(a.isConfiguring){a[k]=c;if(a[b]){a[b](c,j)}}else {a.fireEventedAction(e,[a,c,j],g,a,[a,c,j,k])}}}return a};c.$isDefault=!0;return c}};(function(){var c=Ext.Config,b=c.map,a=Ext.Object;Ext.Configurator=function(d){var b=this,e=d.prototype,c=d.superclass?d.superclass.self.$config:null;b.cls=d;b.superCfg=c;if(c){b.configs=a.chain(c.configs);b.cachedConfigs=a.chain(c.cachedConfigs);b.initMap=a.chain(c.initMap);b.values=a.chain(c.values);b.needsFork=c.needsFork}else {b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}e.config=e.defaultConfig=b.values;d.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:!1,initList:null,add:function(t,l){var i=this,n=i.cls,k=i.configs,v=i.cachedConfigs,p=i.initMap,g=n.prototype,r=l&&l.$config.configs,u=i.values,m,f,s,h,b,j,e,q,o,d;for(e in t){d=t[e];m=d&&d.constructor===Object;f=m&&'$value' in d?d:null;if(f){s=!!f.cached;d=f.$value;m=d&&d.constructor===Object}h=f&&f.merge;b=k[e];if(b){if(l){h=b.merge;if(!h){continue}f=null}else {h=h||b.merge}j=u[e];if(h){d=h.call(b,d,j,n,l)}else {if(m){if(j&&j.constructor===Object){d=a.merge({},j,d)}}}}else {if(r){b=r[e];f=null}else {b=c.get(e)}k[e]=b;if(b.cached||s){v[e]=!0}q=b.names;if(!g[o=q.get]){g[o]=b.getter||b.getGetter()}if(!g[o=q.set]){g[o]=f&&f.evented?b.eventedSetter||b.getEventedSetter():b.setter||b.getSetter()}}if(f){if(b.owner!==n){k[e]=b=Ext.Object.chain(b);b.owner=n}Ext.apply(b,f);delete b.$value}if(!i.needsFork&&d&&(d.constructor===Object||d instanceof Array)){i.needsFork=!0}if(d!==null){p[e]=!0}else {if(g.$configPrefixed){g[k[e].names.internal]=null}else {g[k[e].name]=null}if(e in p){p[e]=!1}}u[e]=d}},configure:function(c,h){var k=this,u=k.configs,x=k.initMap,q=k.initListMap,o=k.initList,j=k.cls.prototype,i=k.values,r=0,v=!o,n,b,m,w,d,p,l,f,e,g,t,s,y;i=k.needsFork?a.fork(i):a.chain(i);c.isConfiguring=!0;if(v){k.initList=o=[];k.initListMap=q={};c.isFirstInstance=!0;for(e in x){w=x[e];b=u[e];t=b.cached;if(w){f=b.names;g=i[e];if(!j[f.set].$isDefault||j[f.apply]||j[f.update]||typeof g==='object'){if(t){(n||(n=[])).push(b)}else {o.push(b);q[e]=!0}c[f.get]=b.initGetter||b.getInitGetter()}else {j[b.getInternalName(j)]=g}}else {if(t){j[b.getInternalName(j)]=undefined}}}}l=n&&n.length;if(l){for(d=0;d0){for(a=0;aa.maxSize){a.unlinkEntry(d.prev,!0);--a.count}}return b.value},evict:Ext.emptyFn,linkEntry:function(a){var b=this.head,c=b.next;a.next=c;a.prev=b;b.next=a;c.prev=a},unlinkEntry:function(a,d){var b=a.next,c=a.prev;c.next=b;b.prev=c;if(d){this.evict(a.key,a.value)}}};a.destroy=a.clear})();(function(){var a,d=Ext.Base,b=d.$staticMembers,c=function(a,b){return a.length-b.length||(ab?1:0)};function makeCtor(a){function constructor(){return this.constructor.apply(this,arguments)||null}return constructor}Ext.Class=a=function(b,c,d){if(typeof b!='function'){d=c;c=b;b=null}if(!c){c={}}b=a.create(b,c);a.process(b,c,d);return b};Ext.apply(a,{makeCtor:makeCtor,onBeforeCreated:function(a,c,b){a.addMembers(c);b.onCreated.call(a,a)},create:function(a,f){var e=b.length,c;if(!a){a=makeCtor()}while(e--){c=b[e];a[c]=d[c]}return a},process:function(l,f,k){var j=f.preprocessors||a.defaultPreprocessors,o=this.preprocessors,e={onBeforeCreated:this.onBeforeCreated},d=[],b,c,g,n,h,m,i;delete f.preprocessors;l._classHooks=e;for(g=0,n=j.length;g0){b=h.test(c[d])}c=o[a];if(c&&!b){d=c.length;while(!b&&d-->0){b=h.test(c[d])}}}if(b){i[a]=1;l.push(a)}}}}}return l},getPath:function(a){var e=this,d=e.paths,b='',c;if(a in d){b=d[a]}else {c=e.getPrefix(a);if(c){a=a.substring(c.length+1);b=d[c];if(b){b+='/'}}b+=a.replace(e.dotRe,'/')+'.js'}return b},getPrefix:function(a){if(a in this.paths){return a}var d=this.getPrefixes(),e=d.length,b,c;while(e-->0){b=(c=d[e]).length;if(b0){b=i[d];e=c;c=b.value||c[b.name];if(!c&&f){e[b.name]=c={}}}return c},setNamespace:function(e,d){var b=a.getNamespaceEntry(e),c=Ext.global;if(b.parent){c=a.lookupName(b.parent,!0)}c[b.name]=d;return d},setXType:function(g,d){var e=g.$className,i=e?g:a.get(e=g),b=i.prototype,h=b.xtypes,c=b.xtypesChain,f=b.xtypesMap;if(!b.hasOwnProperty('xtypes')){b.xtypes=h=[];b.xtypesChain=c=c?c.slice(0):[];b.xtypesMap=f=Ext.apply({},f)}a.addAlias(e,'widget.'+d,!0);h.push(d);c.push(d);f[d]=!0},set:function(b,d){var c=a.getName(d);a.classes[b]=a.setNamespace(b,d);if(c&&c!==b){a.addAlternate(c,b)}return a},get:function(b){return a.classes[b]||a.lookupName(b,!1)},addNameAliasMappings:function(b){a.addAlias(b)},addNameAlternateMappings:function(b){a.addAlternate(b)},getByAlias:function(b){return a.get(a.getNameByAlias(b))},getByConfig:function(c,d){var e=c.xclass,b;if(e){b=e}else {b=c.xtype;if(b){d='widget.'}else {b=c.type}b=a.getNameByAlias(d+b)}return a.get(b)},getName:function(a){return a&&a.$className||''},getClass:function(a){return a&&a.self||null},create:function(c,b,e){var d=q(c);if(typeof b==='function'){b=b(d)}b.$className=c;return new n(d,b,function(){var k=b.postprocessors||a.defaultPostprocessors,n=a.postprocessors,g=[],d,h,m,i,l,f,j;delete b.postprocessors;for(h=0,m=k.length;h0;){c=a.lookupName(arguments[b],!0)}return c}});Ext.addRootNamespaces=a.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;n.registerPreprocessor('className',function(b,a){if('$className' in a){b.$className=a.$className}},!0,'first');n.registerPreprocessor('alias',function(n,d){var k=n.prototype,c=g(d.xtype),h=g(d.alias),i='widget.',m=i.length,j=Array.prototype.slice.call(k.xtypesChain||[]),f=Ext.merge({},k.xtypesMap||{}),a,e,l,b;for(a=0,e=h.length;a=d){Ext[o+'p']=!0}}}if(n.is.Opera&&parseInt(a,10)<=12){Ext.isOpera12m=!0}Ext.chromeVersion=Ext.isChrome?a:0;Ext.firefoxVersion=Ext.isFirefox?a:0;Ext.ieVersion=Ext.isIE?a:0;Ext.operaVersion=Ext.isOpera?a:0;Ext.safariVersion=Ext.isSafari?a:0;Ext.webKitVersion=Ext.isWebKit?a:0;this.setFlag(c+a,!0,r);this.setFlag(c+f.getShortVersion())}for(d in j){if(j.hasOwnProperty(d)){h=j[d];this.setFlag(h,c===h)}}this.setFlag(h);if(l){this.setFlag(g+(l.getMajor()||''));this.setFlag(g+l.getShortVersion())}for(d in k){if(k.hasOwnProperty(d)){h=k[d];this.setFlag(h,g===h,r)}}this.setFlag('Standalone',!!navigator.standalone);this.setFlag('Ripple',!!document.getElementById('tinyhippos-injected')&&!Ext.isEmpty(window.top.ripple));this.setFlag('WebWorks',!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){q=!0;this.setFlag('PhoneGap');this.setFlag('Cordova')}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(e)){q=!0}this.setFlag('WebView',q);this.isStrict=Ext.isStrict=document.compatMode==='CSS1Compat';this.isSecure=Ext.isSecure;this.identity=c+a+(this.isStrict?'Strict':'Quirks')};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{webkit:'WebKit',gecko:'Gecko',presto:'Presto',trident:'Trident',other:'Other'},enginePrefixes:{webkit:'AppleWebKit/',gecko:'Gecko/',presto:'Presto/',trident:'Trident/'},styleDashPrefixes:{WebKit:'-webkit-',Gecko:'-moz-',Trident:'-ms-',Presto:'-o-',Other:''},stylePrefixes:{WebKit:'Webkit',Gecko:'Moz',Trident:'ms',Presto:'O',Other:''},propertyPrefixes:{WebKit:'webkit',Gecko:'moz',Trident:'ms',Presto:'o',Other:''},is:function(a){return !!this.is[a]},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(b,a,c){if(a===undefined){a=!0}this.is[b]=a;this.is[b.toLowerCase()]=a;if(c){Ext['is'+b]=a}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(b){var a=this.propertyPrefixes[this.engineName];if(a.length>0){return a+Ext.String.capitalize(b)}return b},getPreferredTranslationMethod:function(a){if(typeof a==='object'&&'translationMethod' in a&&a.translationMethod!=='auto'){return a.translationMethod}else {return 'csstransform'}}};(function(a){Ext.browser=new Ext.env.Browser(a,!0);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":'about:blank'})(Ext.global.navigator.userAgent);Ext.env.OS=function(j,k,b){var n=this,g=Ext.Boot.osNames,h=Ext.Boot.osPrefixes,a,c='',m=n.is,d,l,f,i,e;b=b||Ext.browser;for(d in h){if(h.hasOwnProperty(d)){l=h[d];f=j.match(new RegExp('(?:'+l+')([^\\s;]+)'));if(f){a=g[d];e=f[1];if(e&&e==='HTC_'){c=new Ext.Version('2.3')}else {if(e&&e==='Silk/'){c=new Ext.Version('2.3')}else {c=new Ext.Version(f[f.length-1])}}break}}}if(!a){a=g[(j.toLowerCase().match(/mac|win|linux/)||['other'])[0]];c=new Ext.Version('')}this.name=a;this.version=c;if(k){this.setFlag(k.replace(/ simulator$/i,''))}this.setFlag(a);if(c){this.setFlag(a+(c.getMajor()||''));this.setFlag(a+c.getShortVersion())}for(d in g){if(g.hasOwnProperty(d)){i=g[d];if(!m.hasOwnProperty(a)){this.setFlag(i,a===i)}}}if(this.name==='iOS'&&window.screen.height===568){this.setFlag('iPhone5')}if(b.is.Safari||b.is.Silk){if(this.is.Android2||this.is.Android3||b.version.shortVersion===501){b.setFlag('AndroidStock')}if(this.is.Android4){b.setFlag('AndroidStock');b.setFlag('AndroidStock4')}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(b,a){if(a===undefined){a=!0}if(this.flags){this.flags[b]=a}this.is[b]=a;this.is[b.toLowerCase()]=a;return this}};(function(){var h=Ext.global.navigator,i=h.userAgent,e=Ext.env.OS,f=Ext.is||(Ext.is={}),a,c,b;e.prototype.flags=f;Ext.os=a=new e(i,h.platform);c=a.name;Ext['is'+c]=!0;Ext.isMac=f.Mac=f.MacOS;var d=window.location.search.match(/deviceType=(Tablet|Phone)/),g=window.deviceType;if(d&&d[1]){b=d[1]}else {if(g==='iPhone'){b='Phone'}else {if(g==='iPad'){b='Tablet'}else {if(!a.is.Android&&!a.is.iOS&&!a.is.WindowsPhone&&/Windows|Linux|MacOS/.test(c)){b='Desktop';Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else {if(a.is.iPad||a.is.RIMTablet||a.is.Android3||Ext.browser.is.Silk||a.is.Android&&i.search(/mobile/i)===-1){b='Tablet'}else {b='Phone'}}}}}a.setFlag(b,!0);a.deviceType=b;delete e.prototype.flags})();Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a='div'}else {if(typeof a!=='string'){return a}}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(a,d){var b=this.getTestElement(d).style,c=Ext.String.capitalize(a);if(typeof b[a]!=='undefined'||typeof b[Ext.browser.getStylePrefix(a)+c]!=='undefined'){return !0}return !1},isStyleSupportedWithoutPrefix:function(b,c){var a=this.getTestElement(c).style;if(typeof a[b]!=='undefined'){return !0}return !1},isEventSupported:function(e,d){if(d===undefined){d=window}var a=this.getTestElement(d),b='on'+e.toLowerCase(),c=b in a;if(!c){if(a.setAttribute&&a.removeAttribute){a.setAttribute(b,'');c=typeof a[b]==='function';if(typeof a[b]!=='undefined'){a[b]=undefined}a.removeAttribute(b)}}return c},getStyle:function(a,c){var b=a.ownerDocument.defaultView,d=b?b.getComputedStyle(a,null):a.currentStyle;return (d||a.style)[c]},getSupportedPropertyName:function(c,a){var b=Ext.browser.getVendorProperyName(a);if(b in c){return b}else {if(a in c){return a}}return null},detect:function(h){var c=this,g=document,m=c.toRun||c.tests,i=m.length,f=g.createElement('div'),k=[],j=Ext.supports,n=c.has,a,e,b,l,d;f.innerHTML='
';if(h){g.body.appendChild(f)}l=c.preDetected[Ext.browser.identity]||[];while(i--){b=m[i];d=l[i];a=b.name;e=b.names;if(d===undefined){if(!h&&b.ready){k.push(b);continue}d=b.fn.call(c,g,f)}if(a){j[a]=n[a]=d}else {if(e){while(e.length){a=e.pop();j[a]=n[a]=d}}}}if(h){g.body.removeChild(f)}c.toRun=k},report:function(){var b=[],c=this.tests.length,a;for(a=0;a
';b=a.childNodes.length===1;a.innerHTML='';return b}},{name:'touchScroll',fn:function(){var a=0;if(Ext.os.is.Desktop&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)){a=1}else {if(Ext.supports.Touch){a=2}}return a}},{name:'Touch',fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return Ext.supports.TouchEvents&&a!==1||a>1}else {return Ext.supports.TouchEvents||a>0}}},{name:'TouchEvents',fn:function(){return this.isEventSupported('touchend')}},{name:'PointerEvents',fn:function(){return navigator.pointerEnabled}},{name:'MSPointerEvents',fn:function(){return navigator.msPointerEnabled}},{name:'Orientation',fn:function(){return 'orientation' in window&&this.isEventSupported('orientationchange')}},{name:'OrientationChange',fn:function(){return this.isEventSupported('orientationchange')}},{name:'DeviceMotion',fn:function(){return this.isEventSupported('devicemotion')}},{names:['Geolocation','GeoLocation'],fn:function(){return 'geolocation' in window.navigator}},{name:'SqlDatabase',fn:function(){return 'openDatabase' in window}},{name:'WebSockets',fn:function(){return 'WebSocket' in window}},{name:'Range',fn:function(){return !!document.createRange}},{name:'CreateContextualFragment',fn:function(){var a=!!document.createRange?document.createRange():!1;return a&&!!a.createContextualFragment}},{name:'History',fn:function(){return 'history' in window&&'pushState' in window.history}},{name:'Css3dTransforms',fn:function(){return this.has('CssTransforms')&&this.isStyleSupported('perspective')}},{name:'CssTransforms',fn:function(){return this.isStyleSupported('transform')}},{name:'CssTransformNoPrefix',fn:function(){return this.isStyleSupportedWithoutPrefix('transform')}},{name:'CssAnimations',fn:function(){return this.isStyleSupported('animationName')}},{names:['CssTransitions','Transitions'],fn:function(){return this.isStyleSupported('transitionProperty')}},{names:['Audio','AudioTag'],fn:function(){return !!this.getTestElement('audio').canPlayType}},{name:'Video',fn:function(){return !!this.getTestElement('video').canPlayType}},{name:'LocalStorage',fn:function(){try{if('localStorage' in window&&window['localStorage']!==null){localStorage.setItem('sencha-localstorage-test','test success');localStorage.removeItem('sencha-localstorage-test');return !0}}catch(b){}return !1}},{name:'XHR2',fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&'withCredentials' in new XMLHttpRequest()}},{name:'XHRUploadProgress',fn:function(){if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){var a=new XMLHttpRequest();return a&&'upload' in a&&'onprogress' in a.upload}return !1}},{name:'NumericInputPlaceHolder',fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:'matchesSelector',fn:function(){var a=document.documentElement,d='matches',e='webkitMatchesSelector',b='msMatchesSelector',c='mozMatchesSelector';return a[d]?d:a[e]?e:a[b]?b:a[c]?c:null}},{name:'RightMargin',ready:!0,fn:function(c,b){var a=c.defaultView;return !(a&&a.getComputedStyle(b.firstChild.firstChild,null).marginRight!=='0px')}},{name:'DisplayChangeInputSelectionBug',fn:function(){var a=Ext.webKitVersion;return 0a';b=a.firstChild;a.innerHTML='
b
';return b.innerHTML!=='a'}},{name:'IncludePaddingInWidthCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetWidth===210}},{name:'IncludePaddingInHeightCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetHeight===210}},{name:'TextAreaMaxLength',fn:function(a){return 'maxlength' in a.createElement('textarea')}},{name:'GetPositionPercentage',ready:!0,fn:function(b,a){return Ext.feature.getStyle(a.childNodes[2],'left')==='10%'}},{name:'PercentageHeightOverflowBug',ready:!0,fn:function(d){var c=!1,b,a;if(Ext.getScrollbarSize().height){a=this.getTestElement();b=a.style;b.height='50px';b.width='50px';b.overflow='auto';b.position='absolute';a.innerHTML=['
','
','
'].join('');d.body.appendChild(a);if(a.firstChild.offsetHeight===50){c=!0}d.body.removeChild(a)}return c}},{name:'xOriginBug',ready:!0,fn:function(e,b){b.innerHTML='
';var a=document.getElementById('b1').getBoundingClientRect(),c=document.getElementById('b2').getBoundingClientRect(),d=document.getElementById('b3').getBoundingClientRect();return c.left!==a.left&&d.right!==a.right}},{name:'ScrollWidthInlinePaddingBug',ready:!0,fn:function(c){var d=!1,a,b;b=c.createElement('div');a=b.style;a.height='50px';a.width='50px';a.padding='10px';a.overflow='hidden';a.position='absolute';b.innerHTML='';c.body.appendChild(b);if(b.scrollWidth===70){d=!0}c.body.removeChild(b);return d}},{name:'rtlVertScrollbarOnRight',ready:!0,fn:function(d,c){c.innerHTML='
';var a=c.firstChild,b=a.firstChild;return b.offsetLeft+b.offsetWidth!==a.offsetLeft+a.offsetWidth}},{name:'rtlVertScrollbarOverflowBug',ready:!0,fn:function(c,b){b.innerHTML='
';var a=b.firstChild;return a.clientHeight===a.offsetHeight}},{identity:'defineProperty',fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return !1}return !0}},{identify:'nativeXhr',fn:function(){if(typeof XMLHttpRequest!=='undefined'){return !0}XMLHttpRequest=function(){try{return new ActiveXObject('MSXML2.XMLHTTP.3.0')}catch(b){return null}};return !1}},{name:'SpecialKeyDownRepeat',fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(Ext.isGecko&&!Ext.isWindows||Ext.isOpera&&Ext.operaVersion<12)}},{name:'EmulatedMouseOver',fn:function(){return Ext.os.is.iOS}},{name:'Hashchange',fn:function(){var a=document.documentMode;return 'onhashchange' in window&&(a===undefined||a>7)}},{name:'FixedTableWidthBug',ready:!0,fn:function(){if(Ext.isIE8){return !1}var a=document.createElement('div'),b=document.createElement('div'),c;a.setAttribute('style','display:table;table-layout:fixed;');b.setAttribute('style','display:table-cell;min-width:50px;');a.appendChild(b);document.body.appendChild(a);a.offsetWidth;a.style.width='25px';c=a.offsetWidth;document.body.removeChild(a);return c===50}},{name:'FocusinFocusoutEvents',fn:function(){return !Ext.isGecko}},{name:'AsyncFocusEvents',fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:'accessibility',ready:!0,fn:function(f){var g=f.body,b,c,a,e,d;function getColor(a){var c=[],e=0,f,b;if(a.indexOf('rgb(')!==-1){c=a.replace('rgb(','').replace(')','').split(', ')}else {if(a.indexOf('#')!==-1){f=a.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;b=a.match(f);if(b){c=['0x'+b[1],'0x'+b[2],'0x'+b[3]]}}}for(var d=0;d0};Ext.supports.HighContrastMode=!e.BackgroundImages;g.removeChild(b);b=c=null;return e}},0]};Ext.feature.tests.pop();Ext.supports={};Ext.feature.detect();Ext.env.Ready={blocks:(location.search||'').indexOf('ext-pauseReadyFire')>0?1:0,bound:0,delay:1,firing:!1,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==='complete'){a.onReadyEvent({type:b.readyState||'body'})}else {a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener('deviceready',a.onReadyEvent,!1)}b.addEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.addEventListener('load',a.onReadyEvent,!1)}}},block:function(){++this.blocks;Ext.isReady=!1},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=!0;a.state=1;Ext.feature.detect(!0);if(!a.delay){a.handleReady()}else {if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else {a.handleReadySoon()}}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(b){var a=this;if(!a.timer){a.timer=Ext.defer(function(){a.timer=null;a.handleReady()},b||a.delay)}},invoke:function(a){var b=a.delay;if(b){Ext.defer(a.fn,b,a.scope)}else {if(Ext.elevateFunction){Ext.elevateFunction(a.fn,a.scope)}else {a.fn.call(a.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else {this.doInvokeAll()}},doInvokeAll:function(){var a=this,b=a.listeners,c;if(!a.blocks){Ext.isReady=!0}a.firing=!0;while(b.length){if(a.sortGeneration!==a.generation){a.sortGeneration=a.generation;b.sort(a.sortFn)}c=b.pop();if(a.blocks&&!c.dom){b.push(c);break}a.invoke(c)}a.firing=!1},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:!1,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(e,d,c){var a=Ext.env.Ready,b=a.makeListener(e,d,c);if(a.state===2&&!a.firing&&(b.dom||!a.blocks)){a.invoke(b)}else {a.listeners.push(b);++a.generation;if(!a.bound){a.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else {a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(a,b){return -(a.phase-b.phase||b.priority-a.priority||a.id-b.id)},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener('deviceready',a.onReadyEvent,!1)}b.removeEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.removeEventListener('load',a.onReadyEvent,!1)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=!0;try{document.documentElement.doScroll('left')}catch(c){b=!1}if(b&&document.body){a.onReadyEvent({type:'doScroll'})}else {a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){if(a.bound){return}var b=document,c;try{c=window.frameElement===undefined}catch(d){}if(!c||!b.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else {if(a.pollScroll()){return}}if(b.readyState==='complete'){a.onReadyEvent({type:'already '+(b.readyState||'body')})}else {b.attachEvent('onreadystatechange',a.onReadyStateChange);window.attachEvent('onload',a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent('onreadystatechange',a.onReadyStateChange);window.detachEvent('onload',a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){clearTimeout(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:!0};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()})();Ext.Loader=new function(){var a=this,b=Ext.ClassManager,i=Ext.Boot,o=Ext.Class,c=Ext.env.Ready,k=Ext.Function.alias,h=['extend','mixins','requires'],j={},m=[],f=[],g=[],l={},d={},e={enabled:!0,scriptChainDelay:!1,disableCaching:!0,disableCachingParam:'_dc',paths:b.paths,preserveScripts:!0,scriptCharset:undefined},n={disableCaching:!0,disableCachingParam:!0,preserveScripts:!0,scriptChainDelay:'loadDelay'};Ext.apply(a,{isInHistory:j,isLoading:!1,history:m,config:e,readyListeners:f,optionalRequires:g,requiresMap:l,hasFileLoadError:!1,scriptsLoading:0,syncModeEnabled:!1,missingQueue:d,init:function(){var k=document.getElementsByTagName('script'),m=k[k.length-1].src,n=m.substring(0,m.lastIndexOf('/')+1),l=Ext._classPathMetadata,h=Ext.Microloader,g=Ext.manifest,d,i,j,e,f;if(!b.getPath('Ext')){b.setPath('Ext',n+'src')}if(l){Ext._classPathMetadata=null;a.addClassPathMappings(l)}if(g){d=g.loadOrder;i=Ext.Boot.baseUrl;if(d&&g.bootRelative){for(j=d.length,e=0;e1?'es':'')+': '+g.join(', '))}if(l.length){a.loadScripts({url:l,_classNames:g})}else {a.checkReady()}}else {if(c){c.call(k)}a.checkReady()}if(a.syncModeEnabled){if(m===1){return b.get(h[0])}}return a},makeLoadCallback:function(a,c){return function(){var e=[],d=a.length;while(d-->0){e[d]=b.get(a[d])}return c.apply(this,e)}},onLoadFailure:function(){var b=this,c=b.onError;a.hasFileLoadError=!0;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onLoadSuccess:function(){var b=this,c=b.onLoad;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onReady:function(g,e,h,d){if(h){c.on(g,e,d)}else {var b=c.makeListener(g,e,d);if(a.isLoading){f.push(b)}else {c.invoke(b)}}},addUsedClasses:function(b){var c,d,e;if(b){b=typeof b==='string'?[b]:b;for(d=0,e=b.length;d0){a.loadScripts({url:b,sequential:!0})}}}if(h.uses){b=h.uses;a.addUsedClasses(b)}});b.onCreated(a.historyPush);a.init()}();Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}Ext.cmd.derive('Ext.Mixin',Ext.Base,function(a){return {statics:{addHook:function(d,b,c,g){var f=Ext.isFunction(d),a=function(){var a=arguments,c=f?d:g[d],b=this.callParent(a);c.apply(this,a);return b},e=b.hasOwnProperty(c)&&b[c];if(f){d.$previous=Ext.emptyFn}a.$name=c;a.$owner=b.self;if(e){a.$previous=e.$previous;e.$previous=a}else {b[c]=a}}},onClassExtended:function(k,c){var b=c.mixinConfig,d=c.xhooks,j=k.superclass,i=c.onClassMixedIn,h,f,g,e;if(d){delete c.xhooks;(b||(c.mixinConfig=b={})).on=d}if(b){h=j.mixinConfig;if(h){c.mixinConfig=b=Ext.merge({},h,b)}c.mixinId=b.id;f=b.before;g=b.after;d=b.on;e=b.extended}if(f||g||d||e){c.onClassMixedIn=function(b){var c=this.prototype,j=b.prototype,h;if(f){Ext.Object.each(f,function(d,a){b.addMember(d,function(){if(c[a].apply(this,arguments)!==!1){return this.callParent(arguments)}})})}if(g){Ext.Object.each(g,function(d,a){b.addMember(d,function(){var b=this.callParent(arguments);c[a].apply(this,arguments);return b})})}if(d){for(h in d){a.addHook(d[h],j,h,c)}}if(e){b.onExtended(function(){var a=Ext.Array.slice(arguments,0);a.unshift(b);return e.apply(this,a)},this)}if(i){i.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,'Mixin'],0);Ext.util=Ext.util||{};Ext.util.DelayedTask=function(e,c,d,b,g){var a=this,f,h=function(){var b=Ext.GlobalEvents;clearInterval(a.id);a.id=null;e.apply(c,d||[]);if(g!==!1&&b.hasListeners.idle){b.fireEvent('idle')}};b=typeof b==='boolean'?b:!0;a.id=null;a.delay=function(g,k,i,j){if(b){a.cancel()}if(typeof g==='number'){f=g}e=k||e;c=i||c;d=j||d;if(!a.id){a.id=Ext.interval(h,f)}};a.cancel=function(){if(a.id){clearInterval(a.id);a.id=null}}};Ext.cmd.derive('Ext.util.Event',Ext.Base,function(){var d=Array.prototype.slice,c=Ext.Array.insert,b=Ext.Array.toArray,a={};return {isEvent:!0,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(r,q,g,t,s){var a=this,p=!1,l=a.observable,o=a.name,d,m,i,h,f,k,j,b,e,n;if(a.findListener(r,q)===-1){m=a.createListener(r,q,g,t,s);if(a.firing){a.listeners=a.listeners.slice(0)}d=a.listeners;b=j=d.length;i=g&&g.priority;f=a._highestNegativePriorityIndex;k=f!==undefined;if(i){h=i<0;if(!h||k){for(e=h?f:0;e0},fireDelegated:function(a,b){this.firingObservable=a;return this.fire.apply(this,b)},fire:function(){var e=this,r=e.listeners,t=r.length,n=e.observable,i=n.isElement,w=n.isComponent,v=e.firingObservable,b,o,f,k,c,j,u,h,l,p,g,m,a,s,q;if(!e.suspended&&t>0){e.firing=!0;c=arguments.length?d.call(arguments,0):[];u=c.length;if(i){a=c[0]}for(k=0;k4?b:c;b=c;for(c in b){if(b.hasOwnProperty(c)){f=b[c];if(!g.$eventOptions[c]){e.addManagedListener(g,c,f.fn||f,f.scope||b.scope||h,f.fn?f:j,!0)}}}if(b&&b.destroyable){return new a(e,g,b)}}else {if(i!==d){g.doAddListener(c,i,h,b,null,e,e);if(!k&&b&&b.destroyable){return new a(e,g,c,i,h)}}}},removeManagedListener:function(g,a,j,i){var d=this,b,c,f,h,e;if(typeof a!=='string'){b=a;for(a in b){if(b.hasOwnProperty(a)){c=b[a];if(!g.$eventOptions[a]){d.removeManagedListener(g,a,c.fn||c,c.scope||b.scope||i)}}}}else {f=d.managedListeners?d.managedListeners.slice():[];a=Ext.canonicalEventName(a);for(e=0,h=f.length;e0,c=this.events;if(!b&&a&&c){a=c[a];if(a&&a.isEvent){return a.isSuspended()}}return b},suspendEvents:function(a){++this.eventsSuspended;if(a&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var d=this,e=d.events,f=arguments.length,c,b,a;for(c=0;c0){h.push(a)}c--;if(c===0){e.resolve(h)}return a};l=function(a){g--;if(g===0){e.reject(new Error('Too few Promises were resolved.'))}return a};for(f=i=0,m=d.length;i0){b.type=a.substring(0,e);b.defaultType=a.substring(e+1)}if(f){delete d.factoryConfig;Ext.apply(b,f)}g=Ext.Factory.define(b.type,b);if(c.create===Ext.Base.create){c.create=g}}},0,0,0,0,0,0,[Ext.mixin,'Factoryable'],0);Ext.cmd.derive('Ext.data.request.Base',Ext.Base,{factoryConfig:{type:'request',defaultType:'ajax'},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=!0}a.abort=Ext.emptyFn},createDeferred:function(){return this.deferred=new Ext.Deferred()},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var a=this,b=a.deferred,c=a.result;a.clearTimer();if(b){if(a.success){b.resolve(c)}else {b.reject(c)}}},onTimeout:function(){var a=this;a.timedout=!0;a.timer=null;a.abort(!0)},getTimeout:function(){return this.timeout},clearTimer:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var a=this,b;b={request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?'transaction aborted':'communication failure',getResponseHeader:a._getHeader,getAllResponseHeaders:a._getHeaders};if(a.aborted){b.aborted=!0}if(a.timedout){b.timedout=!0}return b},_getHeader:function(b){var a=this.headers;return a&&a[b.toLowerCase()]},_getHeaders:function(){return this.headers}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.request,'Base'],0);Ext.cmd.derive('Ext.data.flash.BinaryXhr',Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=!0;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById('ext-flash-polyfill');Ext.GlobalEvents.fireEvent('flashready')},flashPluginActive:!1,flashPluginInjected:!1,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(b,c,d){var a;a=this.liveConnections[Number(b)];if(a){a.onFlashStateChange(c,d)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var c=this,b,a;c.flashPolyfillEl=Ext.getBody().appendChild({id:'ext-flash-polyfill',cn:[{tag:'p',html:'To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed.'},{tag:'a',href:'http://www.adobe.com/go/getflashplayer',cn:[{tag:'img',src:window.location.protocol+'//www.adobe.com/images/shared/download_buttons/get_flash_player.gif',alt:'Get Adobe Flash player'}]}]});b=[Ext.Loader.getPath('Ext.data.Connection'),'../../../plugins/flash/swfobject.js'].join('/');a='/plugins/flash/FlashPlugin.swf';if(Ext.flashPluginPath){a=Ext.flashPluginPath}Ext.Loader.loadScript({url:b,onLoad:function(){var d='11.4.0';var e='playerProductInstall.swf';var f={};var b={};b.quality='high';b.bgcolor='#ffffff';b.allowscriptaccess='sameDomain';b.allowfullscreen='true';var c={};c.id='ext-flash-polyfill';c.name='polyfill';c.align='middle';swfobject.embedSWF(a,'ext-flash-polyfill','0','0',d,e,f,b,c)},onError:function(){},scope:c});Ext.data.flash.BinaryXhr.flashPluginInjected=!0}},readyState:0,status:0,statusText:'',responseBytes:null,javascriptId:null,constructor:function(b){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var a=this;Ext.apply(a,b);a.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=!0;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener('flashready',a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(c,b){a.push(c+': '+b)});return a.join('\r\n')},getResponseHeader:function(b){var a=this.responseHeaders;return a&&a[b]||null},open:function(c,f,d,e,b){var a=this;a.method=c;a.url=f;a.async=d!==!1;a.user=e;a.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(b){var a=this;a.body=b;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener('flashready',a.onFlashReady,a)}else {this.onFlashReady()}},onFlashReady:function(){var a=this,b,c;a.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(a);b={method:a.method,url:a.url,user:a.user,password:a.password,mimeType:a.mimeType,requestHeaders:a.requestHeaders,body:a.body,javascriptId:a.javascriptId};c=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(a,b){this.requestHeaders[a]=b},onreadystatechange:Ext.emptyFn,parseData:function(a){var b=this;this.status=a.status||0;b.responseHeaders={};if(b.mimeType){b.responseHeaders['content-type']=b.mimeType}if(a.reason=='complete'){this.responseBytes=a.data;b.responseHeaders['content-length']=a.data.length}else {if(a.reason=='error'||a.reason=='securityError'){this.statusText=a.text;b.responseHeaders['content-length']=0}}},onFlashStateChange:function(b,c){var a=this;if(b==4){a.parseData(c);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(b)}},1,0,0,0,0,0,[Ext.data.flash,'BinaryXhr'],0);Ext.cmd.derive('Ext.data.request.Ajax',Ext.data.request.Base,{statics:{parseStatus:function(a){a=a==1223?204:a;var c=a>=200&&a<300||a==304,b=!1;if(!c){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:b=!0;break;}}return {success:c,isException:b}}},start:function(f){var a=this,e=a.options,c=a.requestOptions,d=a.isXdr,b,g;b=a.xhr=a.openRequest(e,c,a.async,a.username,a.password);if(!d){g=a.setupHeaders(b,e,c.data,c.params)}if(a.async){if(!d){b.onreadystatechange=Ext.Function.bind(a.onStateChange,a)}}if(d){a.processXdrRequest(a,b)}Ext.data.request.Base.prototype.start.call(this,f);b.send(f);if(!a.async){return a.onComplete()}return a},abort:function(c){var a=this,b=a.xhr;if(c||a.isLoading()){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=Ext.emptyFn}b.abort();Ext.data.request.Base.prototype.abort.call(this,c);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var c=this,a=c.xhr,b=a&&a.readyState,d=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!a||c.aborted||c.timedout){return !1}if(d&&a instanceof d){return b!==4}return b!==0&&b!==4},openRequest:function(d,b,f,e,g){var c=this,a=c.newRequest(d);if(e){a.open(b.method,b.url,f,e,g)}else {if(c.isXdr){a.open(b.method,b.url)}else {a.open(b.method,b.url,f)}}if(d.binary||c.binary){if(window.Uint8Array){a.responseType='arraybuffer'}else {if(a.overrideMimeType){a.overrideMimeType('text/plain; charset=x-user-defined')}}}if(d.withCredentials||c.withCredentials){a.withCredentials=!0}return a},newRequest:function(c){var a=this,b;if(c.binaryData){if(window.Uint8Array){b=a.getXhrInstance()}else {b=new Ext.data.flash.BinaryXhr()}}else {if(a.cors&&Ext.isIE9m){b=a.getXdrInstance();a.isXdr=!0}else {b=a.getXhrInstance();a.isXdr=!1}}return b},setupHeaders:function(m,f,j,l){var d=this,a=Ext.apply({},f.headers||{},d.defaultHeaders),e=d.defaultPostHeader,h=f.jsonData,i=f.xmlData,b='Content-Type',k=d.useDefaultXhrHeader,c,g;if(!a.hasOwnProperty(b)&&(j||l)){if(j){if(f.rawData){e='text/plain'}else {if(i&&Ext.isDefined(i)){e='text/xml'}else {if(h&&Ext.isDefined(h)){e='application/json'}}}}a[b]=e}if(k&&!a['X-Requested-With']){a['X-Requested-With']=d.defaultXhrHeader}if(a[b]===undefined||a[b]===null){delete a[b]}try{for(c in a){if(a.hasOwnProperty(c)){g=a[c];m.setRequestHeader(c,g)}}}catch(n){d.owner.fireEvent('exception',c,g)}return a},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else {Ext.raise({msg:'Your browser does not support CORS'})}return a},getXhrInstance:function(){var c=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject('MSXML2.XMLHTTP.3.0')},function(){return new ActiveXObject('MSXML2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')}],b=0,d=c.length,a;for(;b=0){j=e.substr(0,c).toLowerCase();if(e.charAt(c+1)==' '){++c}f[j]=e.substr(c+1)}}b={request:d,requestId:d.id,status:a.status,statusText:a.statusText,getResponseHeader:function(a){return f[a.toLowerCase()]},getAllResponseHeaders:function(){return f}};if(h){d.processXdrResponse(b,a)}if(d.binary){b.responseBytes=d.getByteArray(a)}else {b.responseText=a.responseText;b.responseXML=a.responseXML}return b},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(b){var e=b.response,g=b.responseBody,h=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,d,f,c;if(b instanceof h){a=b.responseBytes}else {if(window.Uint8Array){a=e?new Uint8Array(e):[]}else {if(Ext.isIE9p){try{a=(new VBArray(g)).toArray()}catch(i){a=[]}}else {if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(b.responseBody,a=[])}else {a=[];d=b.responseText;f=d.length;for(c=0;c=500){this.run()}},run:function(){var a=this;if(!a.isRunning){return}var b=a.runningQueue,d=Ext.now(),c,e;a.lastRunTime=d;a.frameStartTime=d;b.push.apply(b,a.queue);for(c=0,e=b.length;c0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty('taskQueueTimer')){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var a=this.taskQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}}},1,0,0,0,0,0,[Ext,'AnimationQueue'],0);Ext.cmd.derive('Ext.ComponentManager',Ext.Base,{alternateClassName:'Ext.ComponentMgr',singleton:!0,count:0,typeName:'xtype',constructor:function(b){var a=this;Ext.apply(a,b||{});a.all={};a.references={};a.onAvailableCallbacks={}},create:function(a,b){if(typeof a==='string'){return Ext.widget(a)}if(a.isComponent){return a}if('xclass' in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(b){var a=this,e=a.all,d=b.getId(),c=a.onAvailableCallbacks;e[d]=b;if(b.getReference&&b.getReference()){a.references[d]=b}++a.count;if(!a.hasFocusListener){Ext.on('focus',a.onGlobalFocus,a);a.hasFocusListener=!0}c=c&&c[d];if(c&&c.length){a.notifyAvailable(b)}},unregister:function(b){var a=b.getId();if(b.getReference&&b.getReference()){this.references[a]=null;delete this.references[a]}this.all[a]=null;delete this.all[a];this.count--},markReferencesDirty:function(){this.referencesDirty=!0},fixReferences:function(){var c=this,a=c.references,b;if(c.referencesDirty){for(b in a){if(a.hasOwnProperty(b)){a[b].fixReference()}}c.referencesDirty=!1}},onAvailable:function(a,f,d){var g=this,b=g.onAvailableCallbacks,e=g.all,c;if(a in e){c=e[a];f.call(d||c,c)}else {if(a){if(!Ext.isArray(b[a])){b[a]=[]}b[a].push(function(a){f.call(d||a,a)})}}},notifyAvailable:function(a){var b=this.onAvailableCallbacks[a&&a.getId()]||[];while(b.length){b.shift()(a)}},each:function(b,a){return Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.fromElement(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(d){var h=this,g=d.toElement,f=d.fromElement,c=Ext.Component.fromElement(g),b=Ext.Component.fromElement(f),e,a;if(c===b){return}e=h.getCommonAncestor(b,c);if(b&&!(b.destroyed||b.destroying)){if(b.handleBlurEvent){b.handleBlurEvent(d)}for(a=b;a&&a!==e;a=a.getRefOwner()){if(!(a.destroyed||a.destroying)){a.onFocusLeave({event:d.event,type:'focusleave',target:f,relatedTarget:g,fromComponent:b,toComponent:c})}}}if(c&&!c.destroyed){if(c.handleFocusEvent){c.handleFocusEvent(d)}for(a=c;a&&a!==e;a=a.getRefOwner()){a.onFocusEnter({event:d.event,type:'focusenter',relatedTarget:f,target:g,fromComponent:b,toComponent:c})}}},getCommonAncestor:function(a,b){if(a===b){return a}while(a&&!(a.isAncestor(b)||a===b)){a=a.getRefOwner()}return a},privates:{clearAll:function(){this.all={};this.references={};this.onAvailableCallbacks={}},fromElement:function(i,b,e){var a=Ext.getDom(i),h=this.all,g=0,f,d,c;if(typeof b!=='number'){f=Ext.getDom(b);b=Number.MAX_VALUE}while(a&&a.nodeType===1&&g0){for(;a.first&&b;b--){a.removeAtKey(a.first.key)}}},destroy:function(){this.first=this.last=null;Ext.util.HashMap.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util,'LruCache'],0);Ext.cmd.derive('Ext.ComponentQuery',Ext.Base,{singleton:!0},0,0,0,0,0,0,[Ext,'ComponentQuery'],function(){var a=this,f=Ext.util.Operators,r=/(\d*)n\+?(\d*)/,q=/\D/,c=/^(\s)+/,b=/\\(.)/g,j=new Ext.util.LruCache({maxSize:100}),m=['var r = [],','i = 0,','it = items,','l = it.length,','c;','for (; i < l; i++) {','c = it[i];','if (c.{0}) {','r.push(c);','}','}','return r;'].join(''),d=function(b,a){return a.method.apply(this,[b].concat(a.args))},e=function(d,g){var b=[],c=0,e=d.length,a,f=g!=='>';for(;c\^])\s?|\s|$)/,o=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,k=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:g,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:l,argTransform:function(c){var g=c[0],f=c[1],e=c[2],a=c[4],d;if(a!==undefined){a=a.replace(b,'$1')}if(e==='/='){d=j.get(a);if(d){a=d}else {a=j.add(a,new RegExp(a))}}return [f,e,a]}},{re:/^#((?:\\\.|[\w\-])+)/,method:i},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:n,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:m}];a.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(f){var c=this.operations,b=[],e,a,d;for(a=0,d=c.length;a=0;--c){g=l[c];b=g.mode;if(b){if(b==='^'){a=e(a,' ')}else {if(b==='>'){i=[];for(f=0,k=a.length;f1}});Ext.apply(a,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(d,f){var c=0,g=d.length,e=[],h=-1,b;for(;c0){b.push(a[0])}return b},last:function(a){var b=a.length,c=[];if(b>0){c.push(a[b-1])}return c},focusable:function(d){var e=d.length,c=[],b=0,a;for(;b=c.left&&(t=='t'&&v=='b'||t=='b'&&v=='t');o=f=c.top&&(s=='r'&&u=='l'||s=='l'&&u=='r');if(e+k>a.right){if(o){e=c.left-k;o=!1}else {e=a.right-k}}if(ea.bottom){if(p){f=c.top-j;p=!1}else {f=a.bottom-j}}if(fa.right){e=!0;d[0]=a.right-b.right}if(b.left+d[0]a.bottom){e=!0;d[1]=a.bottom-b.bottom}if(b.top+d[1]=b.x&&a.right<=b.right&&a.y>=b.y&&a.bottom<=b.bottom},intersect:function(a){var b=this,f=Math.max(b.y,a.y),e=Math.min(b.right,a.right),c=Math.min(b.bottom,a.bottom),d=Math.max(b.x,a.x);if(c>f&&e>d){return new this.self(f,e,c,d)}else {return !1}},union:function(a){var b=this,f=Math.min(b.y,a.y),e=Math.max(b.right,a.right),c=Math.max(b.bottom,a.bottom),d=Math.min(b.x,a.x);return new this.self(f,e,c,d)},constrainTo:function(b){var a=this,c=Ext.Number.constrain;a.top=a.y=c(a.top,b.y,b.bottom);a.bottom=c(a.bottom,b.y,b.bottom);a.left=a.x=c(a.left,b.x,b.right);a.right=c(a.right,b.x,b.right);return a},adjust:function(e,c,b,d){var a=this;a.top=a.y+=e;a.left=a.x+=d;a.right+=c;a.bottom+=b;return a},getOutOfBoundOffset:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.getOutOfBoundOffsetX(a)}else {return this.getOutOfBoundOffsetY(a)}}else {a=b;var c=new Ext.util.Offset();c.x=this.getOutOfBoundOffsetX(a.x);c.y=this.getOutOfBoundOffsetY(a.y);return c}},getOutOfBoundOffsetX:function(a){if(a<=this.x){return this.x-a}else {if(a>=this.right){return this.right-a}}return 0},getOutOfBoundOffsetY:function(a){if(a<=this.y){return this.y-a}else {if(a>=this.bottom){return this.bottom-a}}return 0},isOutOfBound:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.isOutOfBoundX(a)}else {return this.isOutOfBoundY(a)}}else {a=b;return this.isOutOfBoundX(a.x)||this.isOutOfBoundY(a.y)}},isOutOfBoundX:function(a){return athis.right},isOutOfBoundY:function(a){return athis.bottom},restrict:function(d,a,b){if(Ext.isObject(d)){var c;b=a;a=d;if(a.copy){c=a.copy()}else {c={x:a.x,y:a.y}}c.x=this.restrictX(a.x,b);c.y=this.restrictY(a.y,b);return c}else {if(d=='x'){return this.restrictX(a,b)}else {return this.restrictY(a,b)}}},restrictX:function(a,b){if(!b){b=1}if(a<=this.x){a-=(a-this.x)*b}else {if(a>=this.right){a-=(a-this.right)*b}}return a},restrictY:function(a,b){if(!b){b=1}if(a<=this.y){a-=(a-this.y)*b}else {if(a>=this.bottom){a-=(a-this.bottom)*b}}return a},getSize:function(){return {width:this.right-this.x,height:this.bottom-this.y}},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(b){var a=this;a.top=a.y=a[1]=b.y;a.right=b.right;a.bottom=b.bottom;a.left=a.x=a[0]=b.x;return this},toString:function(){return 'Region['+this.top+','+this.right+','+this.bottom+','+this.left+']'},translateBy:function(b,c){if(arguments.length==1){c=b.y;b=b.x}var a=this;a.top=a.y+=c;a.right+=b;a.bottom+=c;a.left=a.x+=b;return a},round:function(){var a=this;a.top=a.y=Math.round(a.y);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);a.left=a.x=Math.round(a.x);return a},equals:function(a){return this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left}},3,0,0,0,0,0,[Ext.util,'Region'],0);Ext.cmd.derive('Ext.util.Point',Ext.util.Region,{radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(b){var a=b.changedTouches,c=a&&a.length>0?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}Ext.util.Region.prototype.constructor.call(this,b,a,b,a)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return 'Point['+this.x+','+this.y+']'},equals:function(a){return this.x===a.x&&this.y===a.y},isCloseTo:function(b,a){if(typeof a=='number'){return this.getDistanceTo(b)<=a}var e=b.x,f=b.y,c=a.x,d=a.y;return this.x<=e+c&&this.x>=e-c&&this.y<=f+d&&this.y>=f-d},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=='object'){a=this.origin}return Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y)},getDistanceTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.sqrt(b*b+c*c)},getAngleTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.atan2(c,b)*this.radianToDegreeConstant}},3,0,0,0,0,0,[Ext.util,'Point'],function(){this.prototype.translate=this.prototype.translateBy});Ext.cmd.derive('Ext.event.Event',Ext.Base,{alternateClassName:'Ext.EventObjectImpl',isStopped:!1,defaultPrevented:!1,isEvent:!0,statics:{resolveTextNode:function(a){return a&&a.nodeType===3?a.parentNode:a},pointerEvents:{pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerDown:1,MSPointerMove:1,MSPointerUp:1,MSPointerOver:1,MSPointerOut:1,MSPointerCancel:1,MSPointerEnter:1,MSPointerLeave:1},mouseEvents:{mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1,mouseenter:1,mouseleave:1},clickEvents:{click:1,dblclick:1},touchEvents:{touchstart:1,touchmove:1,touchend:1,touchcancel:1},focusEvents:{focus:1,blur:1,focusin:1,focusout:1,focusenter:1,focusleave:1},pointerTypes:{2:'touch',3:'pen',4:'mouse',touch:'touch',pen:'pen',mouse:'mouse'}},constructor:function(b){var a=this,c=a.self,h=a.self.resolveTextNode,i=b.changedTouches,g=i?i[0]:b,d=b.type,e,f;a.pageX=g.pageX;a.pageY=g.pageY;a.target=a.delegatedTarget=h(b.target);f=b.relatedTarget;if(f){a.relatedTarget=h(f)}a.browserEvent=a.event=b;a.type=d;a.button=b.button||0;a.shiftKey=b.shiftKey;a.ctrlKey=b.ctrlKey||b.metaKey||!1;a.altKey=b.altKey;a.charCode=b.charCode;a.keyCode=b.keyCode;a.buttons=b.buttons;if(a.button===0&&a.buttons===0){a.buttons=1}if(c.forwardTab!==undefined&&c.focusEvents[d]){a.forwardTab=c.forwardTab}if(c.mouseEvents[d]||c.clickEvents[d]){e='mouse'}else {if(c.pointerEvents[d]){e=c.pointerTypes[b.pointerType]}else {if(c.touchEvents[d]){e='touch'}}}if(e){a.pointerType=e}a.timeStamp=a.time=+(b.timeStamp||new Date())},chain:function(b){var a=Ext.Object.chain(this);a.parentEvent=this;return Ext.apply(a,b)},correctWheelDelta:function(a){var c=this.WHEEL_SCALE,b=Math.round(a/c);if(!b&&a){b=a<0?-1:1}return b},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.keyCodes[this.keyCode]},getPoint:function(){var a=this.getXY();return new Ext.util.Point(a[0],a[1])},getRelatedTarget:function(d,e,c){var a=this.relatedTarget,b=null;if(a){if(d){b=Ext.fly(a).findParent(d,e,c)}else {b=c?Ext.get(a):a}}return b},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):a?Ext.get(this.target):this.target},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var d=this,a=d.browserEvent,c=0,b=0;if(Ext.isDefined(a.wheelDeltaX)){c=a.wheelDeltaX;b=a.wheelDeltaY}else {if(a.wheelDelta){b=a.wheelDelta}else {if(a.detail){b=-a.detail;if(b>100){b=3}else {if(b<-100){b=-3}}if(Ext.isDefined(a.axis)&&a.axis===a.HORIZONTAL_AXIS){c=b;b=0}}}}return {x:d.correctWheelDelta(c),y:d.correctWheelDelta(b)}},getX:function(){return this.getXY()[0]},getXY:function(){var d=this,c=d.xy;if(!c){c=d.xy=[d.pageX,d.pageY];var g=c[0],e,f,a,b;if(!g&&g!==0){e=d.browserEvent;f=document;a=f.documentElement;b=f.body;c[0]=e.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);c[1]=e.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}}return c},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(c){var a=this,b=a.keyCode,d=a.type==='keypress';return (!d||Ext.isGecko)&&b>=33&&b<=40||!c&&(b===a.RETURN||b===a.TAB||b===a.ESC)},isSpecialKey:function(){var b=this,a=b.keyCode,d=Ext.isGecko,c=b.type==='keypress';return d&&c&&b.charCode===0||this.isNavKeyPress()||a===b.BACKSPACE||a===b.ENTER||a>=16&&a<=20||(!c||d)&&a>=44&&a<=46},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var a=this,b=a.parentEvent;a.defaultPrevented=!0;if(b){b.defaultPrevented=!0}a.browserEvent.preventDefault();return a},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var a=this,b=a.browserEvent,c=a.parentEvent;a.isStopped=!0;if(c){c.isStopped=!0}if(!b.stopPropagation){b.cancelBubble=!0;return a}b.stopPropagation();return a},within:function(b,d,c){var a;if(b){a=d?this.getRelatedTarget():this.getTarget()}return a?Ext.fly(b).contains(a)||!!(c&&a===Ext.getDom(b)):!1},deprecated:{'4.0':{methods:{getPageX:'getX',getPageY:'getY'}}}},1,0,0,0,0,0,[Ext.event,'Event',Ext,'EventObjectImpl'],function(f){var b=f.prototype,a={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,WHEEL_SCALE:function(){var a;if(Ext.isGecko){a=3}else {if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){a=120}else {a=12}a*=3}else {a=120}}return a}()},d={},c,e;Ext.apply(f,a);Ext.apply(b,a);delete a.WHEEL_SCALE;delete a.RETURN;for(c in a){e=a[c];d[e]=c}b.keyCodes=d;b.getTrueXY=b.getXY});Ext.define('Ext.overrides.event.Event',{override:'Ext.event.Event',mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:function(){var a,b={},c;if(!Ext.isIE9m&&document.createEvent){a={createHtmlEvent:function(e,d,c,b){var a=e.createEvent('HTMLEvents');a.initEvent(d,c,b);return a},createMouseEvent:function(d,n,h,f,m,b,c,i,k,g,j,l,e){var a=d.createEvent('MouseEvents'),o=d.defaultView||window;if(a.initMouseEvent){a.initMouseEvent(n,h,f,o,m,b,c,b,c,i,k,g,j,l,e)}else {a=d.createEvent('UIEvents');a.initEvent(n,h,f);a.view=o;a.detail=m;a.screenX=b;a.screenY=c;a.clientX=b;a.clientY=c;a.ctrlKey=i;a.altKey=k;a.metaKey=j;a.shiftKey=g;a.button=l;a.relatedTarget=e}return a},createUIEvent:function(b,f,d,c,e){var a=b.createEvent('UIEvents'),g=b.defaultView||window;a.initUIEvent(f,d,c,g,e);return a},fireEvent:function(a,c,b){a.dispatchEvent(b)}}}else {if(document.createEventObject){c={0:1,1:4,2:2};a={createHtmlEvent:function(d,e,c,b){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},createMouseEvent:function(n,o,i,g,m,b,d,j,l,h,k,e,f){var a=n.createEventObject();a.bubbles=i;a.cancelable=g;a.detail=m;a.screenX=b;a.screenY=d;a.clientX=b;a.clientY=d;a.ctrlKey=j;a.altKey=l;a.shiftKey=h;a.metaKey=k;a.button=c[e]||e;a.relatedTarget=f;return a},createUIEvent:function(d,f,c,b,e){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},fireEvent:function(a,c,b){a.fireEvent('on'+c,b)}}}}Ext.Object.each({load:[!1,!1],unload:[!1,!1],select:[!0,!1],change:[!0,!1],submit:[!0,!0],reset:[!0,!1],resize:[!0,!1],scroll:[!0,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,g){var d=a.createHtmlEvent(c,f,e);a.fireEvent(b,c,d)}});function createMouseEventDispatcher(b,d){var c=b!=='mousemove';return function(f,e){var g=e.getXY(),h=a.createMouseEvent(f.ownerDocument,b,!0,c,d,g[0],g[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget);a.fireEvent(f,b,h)}}Ext.each(['click','dblclick','mousedown','mouseup','mouseover','mousemove','mouseout'],function(a){b[a]=createMouseEventDispatcher(a,1)});Ext.Object.each({focusin:[!0,!1],focusout:[!0,!1],activate:[!0,!0],focus:[!1,!1],blur:[!1,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,g){var d=a.createUIEvent(b.ownerDocument,c,f,e,1);a.fireEvent(b,c,d)}});if(!a){b={};a={}}function cannotInject(b,a){}return function(a){var c=this,d=b[c.type]||cannotInject,e=a?a.dom||a:c.getTarget();d(e,c)}}(),preventDefault:function(){var c=this,a=c.browserEvent,e=c.parentEvent,d,b;if(typeof a.type!=='unknown'){c.defaultPrevented=!0;if(e){e.defaultPrevented=!0}if(a.preventDefault){a.preventDefault()}else {if(a.type==='mousedown'){b=a.target;d=b.getAttribute('unselectable');if(d!=='on'){b.setAttribute('unselectable','on');Ext.defer(function(){b.setAttribute('unselectable',d)},1)}}a.returnValue=!1;if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}}return c},stopPropagation:function(){var a=this,b=a.browserEvent;if(typeof b.type!=='unknown'){if(a.mousedownEvents[a.type]){Ext.GlobalEvents.fireMouseDown(a)}arguments.callee.$previous.call(this)}return a},deprecated:{'5.0':{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var c=this,d,a=function(a){if(a.keyCode===9){c.forwardTab=!a.shiftKey}},b=function(a){if(a.keyCode===9){delete c.forwardTab}};if(Ext.isIE9m){d={0:0,1:0,4:1,2:2};c.override({statics:{enableIEAsync:function(b){var a,c={};for(a in b){c[a]=b[a]}return c}},constructor:function(a,f,e,c){var b=this;b.callParent([a,f,e,c]);b.button=d[a.button];if(a.type==='contextmenu'){b.button=2}b.toElement=a.toElement;b.fromElement=a.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(a){this.browserEvent=this.self.enableIEAsync(a)},getRelatedTarget:function(f,d,e){var a=this,c,b;if(!a.relatedTarget){c=a.type;if(a.mouseLeaveRe.test(c)){b=a.toElement}else {if(a.mouseEnterRe.test(c)){b=a.fromElement}}if(b){a.relatedTarget=a.self.resolveTextNode(b)}}return a.callParent([f,d,e])}});document.attachEvent('onkeydown',a);document.attachEvent('onkeyup',b);window.attachEvent('onunload',function(){document.detachEvent('onkeydown',a);document.detachEvent('onkeyup',b)})}else {if(document.addEventListener){document.addEventListener('keydown',a,!0);document.addEventListener('keyup',b,!0)}}});Ext.cmd.derive('Ext.event.publisher.Dom',Ext.event.publisher.Publisher,{type:'dom',handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1,scroll:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var b=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=b.handledDomEvents,f=d.length,c=0,a;for(;cb?1:a1){e=[];for(d=0;d0){b.invokeRecognizers('onTouchMove',a)}}},onTouchEnd:function(b){var a=this;if(!a.isStarted){return}a.updateTouches(b,!0);a.invokeRecognizers(a.isCancelEvent[b.type]?'onTouchCancel':'onTouchEnd',b);if(!a.activeTouches.length){a.isStarted=!1;a.invokeRecognizers('onEnd',b);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else {this.doTargetTouchMove(a)}},doTargetTouchMove:function(a){if(!Ext.getBody().contains(a.target)){this.onTouchMove(new Ext.event.Event(a))}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else {this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var b=this,a=c.target;a.removeEventListener('touchmove',b.onTargetTouchMove);a.removeEventListener('touchend',b.onTargetTouchEnd);a.removeEventListener('touchcancel',b.onTargetTouchEnd);if(!Ext.getBody().contains(a)){b.onTouchEnd(new Ext.event.Event(c))}},updateAsync:function(a){this.handlers=a?this._asyncHandlers:this._handlers},reset:function(){var a=this,d=a.recognizers,e=d.length,b,c;a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.isStarted=!1;for(b=0;b=500){this.run()}},run:function(){this.pending=!1;var i=this.readQueue,h=this.writeQueue,c=null,d;if(this.mode){d=i;if(h.length>0){c=!1}}else {d=h;if(i.length>0){c=!0}}var g=d.slice(),f,j,b,a,e;d.length=0;for(f=0,j=g.length;f2){a.apply(e,b[2])}else {a.call(e)}}g.length=0;if(c!==null){this.request(c)}}},1,0,0,0,0,0,[Ext,'TaskQueue'],0);Ext.cmd.derive('Ext.util.sizemonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:0,height:0,contentWidth:0,contentHeight:0,constructor:function(a){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(a);this.bindListeners(!0)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer);a.addCls('x-size-monitored')},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.offsetWidth},getContentHeight:function(){return this.detectorsContainer.offsetHeight},refreshSize:function(){var b=this.getElement();if(!b||b.destroyed){return !1}var h=b.getWidth(),g=b.getHeight(),d=this.getContentWidth(),c=this.getContentHeight(),j=this.contentWidth,i=this.contentHeight,a=this.info,f=!1,e;this.width=h;this.height=g;this.contentWidth=d;this.contentHeight=c;e=(j!==d?1:0)+(i!==c?2:0);if(e>0){a.width=h;a.height=g;a.contentWidth=d;a.contentHeight=c;a.flag=e;f=!0;this.getCallback().apply(this.getScope(),this.getArgs())}return f},refresh:function(a){if(this.refreshSize()||a){Ext.TaskQueue.requestWrite('refreshMonitors',this)}},destroy:function(){var a=this,b=a.getElement();a.bindListeners(!1);if(b&&!b.destroyed){b.removeCls('x-size-monitored')}delete a._element;a.callParent()}},1,0,0,0,0,[[Ext.mixin.Templatable.prototype.mixinId||Ext.mixin.Templatable.$className,Ext.mixin.Templatable]],[Ext.util.sizemonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.sizemonitor.Scroll',Ext.util.sizemonitor.Abstract,{getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','scroll'],children:[{reference:'expandMonitor',className:'expand'},{reference:'shrinkMonitor',className:'shrink'}]}},constructor:function(a){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a]('scroll',this.onScroll,!0);this.shrinkMonitor[a]('scroll',this.onScroll,!0)},forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this,[!0])},onScroll:function(){Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){var a=this.expandMonitor,b=this.shrinkMonitor,c=1000000;if(a&&!a.destroyed){a.scrollLeft=c;a.scrollTop=c}if(b&&!b.destroyed){b.scrollLeft=c;b.scrollTop=c}}},1,0,0,0,0,0,[Ext.util.sizemonitor,'Scroll'],0);Ext.cmd.derive('Ext.util.sizemonitor.OverflowChange',Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=Ext.Function.bind(this.onExpand,this);this.onShrink=Ext.Function.bind(this.onShrink,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','overflowchanged'],children:[{reference:'expandMonitor',className:'expand',children:[{reference:'expandHelper'}]},{reference:'shrinkMonitor',className:'shrink',children:[{reference:'shrinkHelper'}]}]}},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a](Ext.browser.is.Firefox?'underflow':'overflowchanged',this.onExpand,!0);this.shrinkMonitor[a](Ext.browser.is.Firefox?'overflow':'overflowchanged',this.onShrink,!0)},onExpand:function(a){if(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},onShrink:function(a){if(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){if(this.destroyed){return}var b=this.expandHelper,c=this.shrinkHelper,d=this.getContentBounds(),f=d.width,e=d.height,a;if(b&&!b.destroyed){a=b.style;a.width=f+1+'px';a.height=e+1+'px'}if(c&&!c.destroyed){a=c.style;a.width=f+'px';a.height=e+'px'}Ext.TaskQueue.requestRead('refresh',this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,'OverflowChange'],0);Ext.cmd.derive('Ext.util.SizeMonitor',Ext.Base,{constructor:function(b){var a=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new a.OverflowChange(b)}else {return new a.Scroll(b)}}},1,0,0,0,0,0,[Ext.util,'SizeMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementSize',Ext.event.publisher.Publisher,{type:'size',handledEvents:['resize'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(b){var a=b.id,c=this.subscribers,d=this.monitors;if(c[a]){++c[a]}else {c[a]=1;d[a]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on('painted','forceRefresh',d[a]);return !0},unsubscribe:function(e){var a=e.id,c=this.subscribers,d=this.monitors,b;if(c[a]&&!--c[a]){delete c[a];b=d[a];e.un('painted','forceRefresh',b);b.destroy();delete d[a]}},onElementResize:function(a,b){Ext.TaskQueue.requestRead('fire',this,[a,'resize',[a,b]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementSize'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.util.paintmonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:'',monitorClass:'',constructor:function(a){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?'addEventListener':'removeEventListener'](this.eventName,this.onElementPainted,!0)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:['x-paint-monitor',this.monitorClass]},!0);a.appendChild(this.monitorElement);a.addCls('x-paint-monitored');this.bindListeners(!0)},onElementPainted:function(){},destroy:function(){var a=this,c=a.monitorElement,d=c.parentNode,b=a.getElement();a.bindListeners(!1);delete a.monitorElement;if(b&&!b.destroyed){b.removeCls('x-paint-monitored');delete a._element}if(d){d.removeChild(c)}a.callParent()}},1,0,0,0,0,0,[Ext.util.paintmonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.paintmonitor.CssAnimation',Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.WebKit?'webkitAnimationEnd':'animationend',monitorClass:'cssanimation',onElementPainted:function(a){if(a.animationName==='x-paint-monitor-helper'){this.getCallback().apply(this.getScope(),this.getArgs())}}},0,0,0,0,0,0,[Ext.util.paintmonitor,'CssAnimation'],0);Ext.cmd.derive('Ext.util.PaintMonitor',Ext.Base,{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}},1,0,0,0,0,0,[Ext.util,'PaintMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementPaint',Ext.event.publisher.Publisher,{type:'paint',handledEvents:['painted'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(d){var b=this,a=d.id,c=b.subscribers;if(c[a]){++c[a]}else {c[a]=1;b.monitors[a]=new Ext.util.PaintMonitor({element:d,callback:b.onElementPainted,scope:b,args:[d]})}},unsubscribe:function(d){var a=d.id,b=this.subscribers,c=this.monitors;if(b[a]&&!--b[a]){delete b[a];c[a].destroy();delete c[a]}},onElementPainted:function(a){Ext.TaskQueue.requestRead('fire',this,[a,'painted',[a]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementPaint'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.dom.Element',Ext.Base,function(a){var h=window,b=document,F='ext-window',D='ext-document',w='width',H='height',ac='min-width',_='min-height',ab='max-width',$='max-height',S='top',P='right',ag='bottom',R='left',aa='visibility',M='hidden',G='display',x='none',O='z-index',u='position',ad='relative',N='static',i='-',T=/\w/g,k=/\s+/,V=/[\s]+/,Y=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,U=/table-row|table-.*-group/,Q=/top/i,d={t:'border-top-width',r:'border-right-width',b:'border-bottom-width',l:'border-left-width'},f={t:'padding-top',r:'padding-right',b:'padding-bottom',l:'padding-left'},v={t:'margin-top',r:'margin-right',b:'margin-bottom',l:'margin-left'},Z=[f.l,f.r,f.t,f.b],B=[d.l,d.r,d.t,d.b],ae=/\d+$/,I=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,C='px',af=/(-[a-z])/gi,J=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,t=/^\d+(?:\.\d*)?px$/i,A={},y='originalDisplay',X=function(b,a){return a.charAt(1).toUpperCase()},E=function(c,d){var b,a,e;if(c.nodeType===1){c._extData=null;if(d){b=c.childNodes;for(a=0,e=b.length;ah.innerWidth?'portrait':'landscape'},getViewportHeight:function(){var c=a._viewportHeight;if(Ext.isIE9m){return b.documentElement.clientHeight}return c!=null?c:h.innerHeight},getViewportWidth:function(){var c=a._viewportWidth;if(Ext.isIE9m){return b.documentElement.clientWidth}return c!=null?c:h.innerWidth},getViewSize:function(){return {width:a.getViewportWidth(),height:a.getViewportHeight()}},normalize:function(a){return A[a]||(A[a]=a.replace(af,X))},_onWindowFocusChange:function(b){if(Ext.fly(b.target).is(a.editableSelector)){z=new Date();L=b.type==='focusin'||b.type==='pointerup'}},_onWindowResize:function(){var c=window.innerWidth,b=window.innerHeight,g=new Date(),f=1000,d,e;d=c-a._windowWidth;e=b-a._windowHeight;a._windowWidth=c;a._windowHeight=b;if(g-z=a.minKeyboardHeight){l=!1;K=new Date()}if(l){return}a._viewportWidth=c;a._viewportHeight=b},parseBox:function(b){b=b||0;var d=typeof b,a,c;if(d==='number'){return {top:b,right:b,bottom:b,left:b}}else {if(d!=='string'){return b}}a=b.split(' ');c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else {if(c===2){a[2]=a[0];a[3]=a[1]}else {if(c===3){a[3]=a[1]}}}return {top:parseFloat(a[0])||0,right:parseFloat(a[1])||0,bottom:parseFloat(a[2])||0,left:parseFloat(a[3])||0}},parseStyles:function(b){var c={},a;if(b){J.lastIndex=0;while(a=J.exec(b)){c[a[1]]=a[2]||''}}return c},select:function(c,a,d){return Ext.fly(d||b).select(c,a)},query:function(a,c,d){return Ext.fly(d||b).query(a,c)},unitizeBox:function(a,c){var b=this;a=b.parseBox(a);return b.addUnits(a.top,c)+' '+b.addUnits(a.right,c)+' '+b.addUnits(a.bottom,c)+' '+b.addUnits(a.left,c)},serializeForm:function(k){var l=k.elements||(b.forms[k]||Ext.getDom(k)).elements,m=!1,e=encodeURIComponent,f='',p=l.length,a,g,c,j,n,h,i,o,d;for(h=0;h0||a.scrollLeft!==0){d.push(a);f.push(c.attach(a).getScroll())}}return function(){var b,a,e;for(a=0,e=d.length;a '+c,!!b)},clone:function(b,c){var a=this.dom.cloneNode(b);if(Ext.supports.CloneNodeCopiesExpando){E(a,b)}return c?a:Ext.get(a)},constrainScrollLeft:function(b){var a=this.dom;return Math.max(Math.min(b,a.scrollWidth-a.clientWidth),0)},constrainScrollTop:function(b){var a=this.dom;return Math.max(Math.min(b,a.scrollHeight-a.clientHeight),0)},createChild:function(a,b,c){a=a||{tag:'div'};if(b){return Ext.DomHelper.insertBefore(b,a,c!==!0)}else {return Ext.DomHelper.append(this.dom,a,c!==!0)}},contains:function(a){if(!a){return !1}var c=this,b=Ext.getDom(a);return b===c.dom||c.isAncestor(b)},destroy:function(){var b=this,a=b.dom;if(a&&a.parentNode){a.parentNode.removeChild(a)}b.collect();if(!b.isFly){b.callParent()}},detach:function(){var a=this.dom;if(a&&a.parentNode&&a.tagName!=='BODY'){a.parentNode.removeChild(a)}return this},disableShadow:function(){var a=this.shadow;if(a){a.hide();a.disabled=!0}},disableShim:function(){var a=this.shim;if(a){a.hide();a.disabled=!0}},disableTouchContextMenu:function(){this._contextMenuListenerRemover=this.on({MSHoldVisual:function(a){a.preventDefault()},destroyable:!0,delegated:!1})},disableTouchScroll:function(){this.addCls(W);this.on({touchmove:function(a){a.preventDefault()},translate:!1})},doReplaceWith:function(b){var a=this.dom;a.parentNode.replaceChild(Ext.getDom(b),a)},doScrollIntoView:function(a,n,b,l,k,m){c=c||new Ext.dom.Fly();var d=this,j=d.dom,h=c.attach(a)[k](),i=a.scrollTop,g=d.getScrollIntoViewXY(a,h,i),e=g.x,f=g.y;if(l){if(b){b=Ext.apply({listeners:{afteranimate:function(){c.attach(j).highlight()}}},b)}else {c.attach(j).highlight()}}if(f!==i){c.attach(a).scrollTo('top',f,b)}if(n!==!1&&e!==h){c.attach(a)[m]('left',e,b)}return d},down:function(b,a){return this.selectNode(b,!!a)},enableShadow:function(e,d){var b=this,a=b.shadow||(b.shadow=new Ext.dom.Shadow(Ext.apply({target:b},e))),c=b.shim;if(c){c.offsets=a.outerOffsets;c.shadow=a;a.shim=c}if(d===!0||d!==!1&&b.isVisible()){a.show()}else {a.hide()}a.disabled=!1},enableShim:function(e,d){var b=this,a=b.shim||(b.shim=new Ext.dom.Shim(Ext.apply({target:b},e))),c=b.shadow;if(c){a.offsets=c.outerOffsets;a.shadow=c;c.shim=a}if(d===!0||d!==!1&&b.isVisible()){a.show()}else {a.hide()}a.disabled=!1},findParent:function(f,c,g){var h=this,a=h.dom,d=b.documentElement,e=0;if(c||c===0){if(typeof c!=='number'){d=Ext.getDom(c);c=Number.MAX_VALUE}}else {c=50}while(a&&a.nodeType===1&&e0&&c<0.5){a++}}}if(d){a-=b.getBorderWidth('tb')+b.getPadding('tb')}return a<0?0:a},getHtml:function(){return this.dom?this.dom.innerHTML:''},getLeft:function(a){return a?this.getLocalX():this.getX()},getLocalX:function(){var c=this,b,a=c.getStyle('left');if(!a||a==='auto'){a=0}else {if(t.test(a)){a=parseFloat(a)}else {a=c.getX();b=c.dom.offsetParent;if(b){a-=Ext.fly(b).getX()}}}return a},getLocalXY:function(){var d=this,c,e=d.getStyle(['left','top']),a=e.left,b=e.top;if(!a||a==='auto'){a=0}else {if(t.test(a)){a=parseFloat(a)}else {a=d.getX();c=d.dom.offsetParent;if(c){a-=Ext.fly(c).getX()}}}if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getY();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getY()}}}return [a,b]},getLocalY:function(){var c=this,b,a=c.getStyle('top');if(!a||a==='auto'){a=0}else {if(t.test(a)){a=parseFloat(a)}else {a=c.getY();b=c.dom.offsetParent;if(b){a-=Ext.fly(b).getY()}}}return a},getMargin:function(){var b={t:'top',l:'left',r:'right',b:'bottom'},a=['margin-top','margin-left','margin-right','margin-bottom'];return function(f){var g=this,d,e,c;if(!f){d=g.getStyle(a);c={};if(d&&typeof d==='object'){c={};for(e in v){c[e]=c[b[e]]=parseFloat(d[v[e]])||0}}}else {c=g.addStyles(f,v)}return c}}(),getPadding:function(a){return this.addStyles(a,f)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(a){return (a?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var g=this,c=g.dom,f=b.documentElement,d,e,a=document.body;if(c===b||c===a){d=f.scrollLeft||(a?a.scrollLeft:0);e=f.scrollTop||(a?a.scrollTop:0)}else {d=c.scrollLeft;e=c.scrollTop}return {left:d,top:e}},getScrollIntoViewXY:function(q,a,b){var o=this.dom,g=Ext.getDom(q),i=this.getOffsetsTo(g),n=o.offsetWidth,l=o.offsetHeight,e=i[0]+a,f=i[1]+b,k=f+l,m=e+n,c=g.clientHeight,d=g.clientWidth,h=a,j=b,p=j+c,r=h+d;if(l>c||fp){b=k-c}}if(n>d||er){a=m-d}}return {x:a,y:b}},getScrollLeft:function(){var a=this.dom;if(a===b||a===document.body){return this.getScroll().left}else {return a.scrollLeft}},getScrollTop:function(){var a=this.dom;if(a===b||a===document.body){return this.getScroll().top}else {return a.scrollTop}},getSize:function(a){return {width:this.getWidth(a),height:this.getHeight(a)}},getStyle:function(n,i){var k=this,e=k.dom,m=typeof n!=='string',p=k.styleHooks,b=n,j=b,q=1,h,o,f,d,g,c,l;if(m){f={};b=j[0];l=0;if(!(q=j.length)){return f}}if(!e||e.documentElement){return f||''}h=e.style;if(i){c=h}else {c=e.ownerDocument.defaultView.getComputedStyle(e,null);if(!c){i=!0;c=h}}do{d=p[b];if(!d){p[b]=d={name:a.normalize(b)}}if(d.get){g=d.get(e,k,i,c)}else {o=d.name;g=c[o]}if(!m){return g}f[b]=g;b=j[++l]}while(l0&&d<0.5){a++}}}if(g){a-=b.getBorderWidth('lr')+b.getPadding('lr')}return a<0?0:a},getX:function(){return this.getXY()[0]},getXY:function(){var g=Math.round,d=this.dom,e=0,f=0,a,c;if(d!==b&&d!==b.body){try{a=d.getBoundingClientRect()}catch(ah){a={left:0,top:0}}e=g(a.left);f=g(a.top);c=Ext.getDoc().getScroll();e+=c.left;f+=c.top}return [e,f]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle('z-index'),10)},hasCls:function(b){var a=this.getData();if(!a.isSynchronized){this.synchronize()}return a.classMap.hasOwnProperty(b)},hide:function(){this.setVisible(!1);return this},insertAfter:function(a){a=Ext.getDom(a);a.parentNode.insertBefore(this.dom,a.nextSibling);return this},insertBefore:function(a){a=Ext.getDom(a);a.parentNode.insertBefore(this.dom,a);return this},insertFirst:function(a,b){a=a||{};if(a.nodeType||a.dom||typeof a==='string'){a=Ext.getDom(a);this.dom.insertBefore(a,this.dom.firstChild);return !b?Ext.get(a):a}else {return this.createChild(a,this.dom.firstChild,b)}},insertHtml:function(c,d,b){var a=Ext.DomHelper.insertHtml(c,this.dom,d);return b?Ext.get(a):a},insertSibling:function(a,j,e){var c=this,i=Ext.DomHelper,g=(j||'before').toLowerCase()==='after',b,f,h,d;if(Ext.isIterable(a)){h=a.length;f=Ext.fly(document.createDocumentFragment());if(Ext.isArray(a)){for(d=0;da.clientHeight||a.scrollWidth>a.clientWidth},isStyle:function(a,b){return this.getStyle(a)===b},isVisible:function(c){var a=this.dom,b;if(!a){return !1}if(!s){s=new Ext.dom.Fly()}for(b=a.ownerDocument.documentElement;a!==b;a=a.parentNode){if(!a||a.nodeType===11||s.attach(a).isStyle(aa,M)||s.isStyle(G,x)){return !1}if(!c){break}}return !0},last:function(b,a){return this.matchNode('previousSibling','lastChild',b,a)},maskIframes:function(){var a=document.getElementsByTagName('iframe');Ext.each(a,function(b){var a=Ext.fly(b.parentNode),c=a.mask();c.setStyle('background-color','transparent')})},matchNode:function(f,e,b,d){var c=this.dom,a;if(!c){return null}a=c[e];while(a){if(a.nodeType===1&&(!b||Ext.fly(a,'_matchNode').is(b))){return !d?Ext.get(a):a}a=a[f]}return null},next:function(b,a){return this.matchNode('nextSibling','nextSibling',b,a)},parent:function(b,a){return this.matchNode('parentNode','parentNode',b,a)},position:function(b,c,d,e){var a=this;if(a.dom.tagName!=='BODY'){if(!b&&a.isStyle(u,N)){a.setStyle(u,ad)}else {if(b){a.setStyle(u,b)}}if(c){a.setStyle(O,c)}if(d||e){a.setXY([d||!1,e||!1])}}},prev:function(b,a){return this.matchNode('previousSibling','previousSibling',b,a)},query:function(a,d,i){var h=this.dom,f,k,j,g,e,b,c;if(!h){return null}d=d!==!1;a=a.split(',');if(!i){f=[]}for(b=0,k=a.length;b0){a=h.className.split(V);for(b=0,i=a.length;b=':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>=a},'>':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>a},'!=':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!=c},'!==':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!==c},'in':function(b){var a=this._filterValue;return Ext.Array.contains(a,this.getCandidateValue(b,a))},notin:function(b){var a=this._filterValue;return !Ext.Array.contains(a,this.getCandidateValue(b,a))},like:function(b){var a=this._filterValue;return a&&this.getCandidateValue(b,a).toLowerCase().indexOf(a.toLowerCase())>-1}};a['==']=a['='];a.gt=a['>'];a.ge=a['>='];a.lt=a['<'];a.le=a['<='];a.eq=a['='];a.ne=a['!=']});Ext.cmd.derive('Ext.util.Observable',Ext.mixin.Observable,{$applyConfigs:!0},0,0,0,0,0,0,[Ext.util,'Observable'],function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe});Ext.cmd.derive('Ext.util.AbstractMixedCollection',Ext.Base,{isMixedCollection:!0,generation:0,indexGeneration:0,constructor:function(b,c){var a=this;if(arguments.length===1&&Ext.isObject(b)){a.initialConfig=b;Ext.apply(a,b)}else {a.allowFunctions=b===!0;if(c){a.getKey=c}a.initialConfig={allowFunctions:a.allowFunctions,getKey:a.getKey}}a.items=[];a.map={};a.keys=[];a.indexMap={};a.length=0;a.mixins.observable.constructor.call(a)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:!1,add:function(b,d){var c=this.length,a;if(arguments.length===1){a=this.insert(c,b)}else {a=this.insert(c,b,d)}return a},getKey:function(a){return a.id},replace:function(b,c){var a=this,d,e;if(arguments.length==1){c=arguments[0];b=a.getKey(c)}d=a.map[b];if(typeof b=='undefined'||b===null||typeof d=='undefined'){return a.add(b,c)}a.generation++;e=a.indexOfKey(b);a.items[e]=c;a.map[b]=c;if(a.hasListeners.replace){a.fireEvent('replace',b,d,c)}return c},reorder:function(e){var b=this,f=b.items,a=0,h=f.length,c=[],g=[],d;b.suspendEvents();for(d in e){c[e[d]]=f[d]}for(a=0;a-1){g=e[b];delete e[b];delete f[b];e[c]=g;f[c]=d;a.keys[d]=c;a.indexGeneration=++a.generation}},addAll:function(a){var c=this,b;if(arguments.length>1||Ext.isArray(a)){c.insert(c.length,arguments.length>1?arguments:a)}else {for(b in a){if(a.hasOwnProperty(b)){if(c.allowFunctions||typeof a[b]!='function'){c.add(b,a[b])}}}}},each:function(f,e){var c=Ext.Array.push([],this.items),a=0,d=c.length,b;for(;a2){a=this.doInsert(c,[b],[d])}else {a=this.doInsert(c,[b])}a=a[0]}return a},doInsert:function(f,e,d){var b=this,c,i,a,g=e.length,j=g,o=b.hasListeners.add,k,h={},l,n,m;if(d!=null){b.useLinearSearch=!0}else {d=e;e=new Array(g);for(a=0;a=0;--c){a.remove(b[c])}}else {while(a.length){a.removeAt(0)}}}else {a.length=a.items.length=a.keys.length=0;a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}},removeAt:function(b){var a=this,d,c;if(b=0){a.length--;d=a.items[b];Ext.Array.erase(a.items,b,1);c=a.keys[b];if(typeof c!='undefined'){delete a.map[c]}Ext.Array.erase(a.keys,b,1);if(a.hasListeners.remove){a.fireEvent('remove',d,c)}a.generation++;return d}return !1},removeRange:function(c,b){var a=this,i,f,d,e,g,h;if(c=0){if(!b){b=1}e=Math.min(c+b,a.length);b=e-c;h=e===a.length;g=h&&a.indexGeneration===a.generation;for(d=c;d=0;a--){if(c[a]==null){b.removeAt(a)}}}else {return b.removeAt(b.indexOfKey(d))}},getCount:function(){return this.length},indexOf:function(b){var a=this,c;if(b!=null){if(!a.useLinearSearch&&(c=a.getKey(b))){return this.indexOfKey(c)}return Ext.Array.indexOf(a.items,b)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var b=this,d=b.indexMap={},c=b.keys,e=c.length,a;for(a=0;aa){e=!0;g=b;b=a;a=g}if(b<0){b=0}if(a==null||a>=d){a=d-1}c=f.slice(b,a+1);if(e&&c.length){c.reverse()}return c},filter:function(a,e,d,c){var b=[];if(Ext.isString(a)){b.push(new Ext.util.Filter({property:a,value:e,anyMatch:d,caseSensitive:c}))}else {if(Ext.isArray(a)||a instanceof Ext.util.Filter){b=b.concat(a)}}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(h,g){var a=this,c=new a.self(a.initialConfig),e=a.keys,d=a.items,f=d.length,b;c.getKey=a.getKey;for(b=0;bb?1:a0){c.removeRange(b.multiSortLimit,g)};break;case 'prepend':c.insert(0,a);break;case 'append':c.addAll(a);break;case undefined:case null:case 'replace':c.clear();c.addAll(a);break;default:}}if(h!==!1){b.fireEvent('beforesort',b,a);b.onBeforeSort(a);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return a},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(b){if(!Ext.isArray(b)){if(b===undefined){b=[]}else {b=[b]}}var g=b.length,f=Ext.util.Sorter,e=this.getModel?this.getModel():this.model,d,a,c;for(c=0;c>1;c=d(h,f[a]);if(c>=0){b=a+1}else {if(c<0){e=a-1}}}return b},reorder:function(a){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,a);this.fireEvent('sort',this)},sortByKey:function(a,b){this._sort('key',a,b||function(c,d){var a=String(c).toUpperCase(),b=String(d).toUpperCase();return a>b?1:af){k=f}}}if(c){b.tasks=c}b.firing=!1;if(b.tasks.length){b.startTimer(k-g,Ext.Date.now())}if(j!==!1&&l.hasListeners.idle){l.fireEvent('idle')}},startTimer:function(b,e){var a=this,d=e+b,c=a.timerId;if(c&&a.nextExpires-d>a.interval){clearTimeout(c);c=null}if(!c){if(b=a.duration,b,c;if(h){d=a.duration;e=!0}b=this.collectTargetData(a,d,f,e);if(f){a.target.setAttr(b.anims[a.id].attributes,!0);g.collectTargetData(a,a.duration,f,e);a.paused=!0;b=a.target.target;if(a.target.isComposite){b=a.target.target.last()}c={};c[Ext.supports.CSS3TransitionEnd]=a.lastFrame;c.scope=a;c.single=!0;b.on(c)}return b},jumpToEnd:function(d){var a=this,b,c;if(!a.targetArr){a.targetArr={};c=!0}b=a.runAnim(d,!0);a.applyAnimAttrs(b,b.anims[d.id]);if(c){a.targetArr=null}},collectTargetData:function(a,d,f,e){var c=a.target.getId(),b=this.targetArr[c];if(!b){b=this.targetArr[c]={id:c,el:a.target,anims:{}}}b.anims[a.id]={id:a.id,anim:a,elapsed:d,isLastFrame:e,attributes:[{duration:a.duration,easing:f&&a.reverse?a.easingFn.reverse().toCSS3():a.easing,attrs:a.runAnim(d)}]};return b},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var c=this.targetArr,b,d,a,f,e;for(d in c){if(c.hasOwnProperty(d)){b=c[d];for(e in b.anims){if(b.anims.hasOwnProperty(e)){a=b.anims[e];f=a.anim;if(a.attributes&&f.isRunning()){b.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){f.lastFrame()}}}}}}}},1,0,0,0,0,[['queue',Ext.fx.Queue]],[Ext.fx,'Manager'],0);Ext.cmd.derive('Ext.fx.Animator',Ext.Base,{isAnimator:!0,duration:250,delay:0,delayStart:0,dynamic:!1,easing:'ease',running:!1,paused:!1,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(b){var a=this;b=Ext.apply(a,b||{});a.config=b;a.id=Ext.id(null,'ext-animator-');a.mixins.observable.constructor.call(a,b);a.timeline=[];a.createTimeline(a.keyframes);if(a.target){a.applyAnimator(a.target);Ext.fx.Manager.addAnim(a)}},sorter:function(a,b){return a.pct-b.pct},createTimeline:function(e){var d=this,b=[],k=d.to||{},g=d.duration,h,j,c,i,a,f;for(a in e){if(e.hasOwnProperty(a)&&d.animKeyFramesRE.test(a)){f={attrs:Ext.apply(e[a],k)};if(a==='from'){a=0}else {if(a==='to'){a=100}}f.pct=parseInt(a,10);b.push(f)}}Ext.Array.sort(b,d.sorter);i=b.length;for(c=0;c0},isRunning:function(){return !1}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Animator'],0);Ext.cmd.derive('Ext.fx.CubicBezier',Ext.Base,{singleton:!0,cubicBezierAtTime:function(l,d,e,i,j,h){var a=3*d,b=3*(i-d)-a,f=1-a-b,c=3*e,g=3*(j-e)-c,k=1-c-g;function sampleCurveX(c){return ((f*c+b)*c+a)*c}function solve(d,b){var a=solveCurveX(d,b);return ((k*a+g)*a+c)*a}function solveCurveX(h,k){var d,e,c,g,i,j;for(c=h,j=0;j<8;j++){g=sampleCurveX(c)-h;if(Math.abs(g)e){return e}while(dg){d=c}else {e=c}c=(e-d)/2+d}return c}return solve(l,1/(200*h))},cubicBezier:function(b,d,c,e){var a=function(a){return Ext.fx.CubicBezier.cubicBezierAtTime(a,b,d,c,e,1)};a.toCSS3=function(){return 'cubic-bezier('+[b,d,c,e].join(',')+')'};a.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-c,1-e,1-b,1-d)};return a}},0,0,0,0,0,0,[Ext.fx,'CubicBezier'],0);Ext.cmd.derive('Ext.fx.Easing',Ext.Base,function(){var b=Math,g=b.PI,a=b.pow,f=b.sin,e=b.sqrt,d=b.abs,c=1.70158;return {singleton:!0,linear:Ext.identityFn,ease:function(k){var c=0.07813-k/2,f=e(0.0066+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.25;return a(1-b,2)*3*b*0.1+(1-b)*3*b*b+b*b*b},easeIn:function(b){return a(b,1.7)},easeOut:function(b){return a(b,0.48)},easeInOut:function(k){var c=0.48-k/1.04,f=e(0.1734+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.5;return (1-b)*3*b*b+b*b*b},backIn:function(a){return a*a*((c+1)*a-c)},backOut:function(a){a=a-1;return a*a*((c+1)*a+c)+1},elasticIn:function(b){if(b===0||b===1){return b}var c=0.3,d=c/4;return a(2,-10*b)*f((b-d)*(2*g)/c)+1},elasticOut:function(a){return 1-Ext.fx.Easing.elasticIn(1-a)},bounceIn:function(a){return 1-Ext.fx.Easing.bounceOut(1-a)},bounceOut:function(a){var d=7.5625,b=2.75,c;if(a<1/b){c=d*a*a}else {if(a<2/b){a-=1.5/b;c=d*a*a+0.75}else {if(a<2.5/b){a-=2.25/b;c=d*a*a+0.9375}else {a-=2.625/b;c=d*a*a+0.984375}}}return c}}},0,0,0,0,0,0,[Ext.fx,'Easing'],function(c){var b=c.self,a=b.prototype;b.addMembers({'back-in':a.backIn,'back-out':a.backOut,'ease-in':a.easeIn,'ease-out':a.easeOut,'elastic-in':a.elasticIn,'elastic-out':a.elasticOut,'bounce-in':a.bounceIn,'bounce-out':a.bounceOut,'ease-in-out':a.easeInOut})});Ext.cmd.derive('Ext.fx.DrawPath',Ext.Base,{singleton:!0,pathToStringRE:/,?([achlmqrstvxz]),?/gi,pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,stopsRE:/^(\d+%?)$/,radian:Math.PI/180,is:function(b,a){a=String(a).toLowerCase();return a=='object'&&b===Object(b)||a=='undefined'&&typeof b==a||a=='null'&&b===null||a=='array'&&Array.isArray&&Array.isArray(b)||Object.prototype.toString.call(b).toLowerCase().slice(8,-1)==a},path2string:function(){return this.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},pathToString:function(a){return a.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},parsePathString:function(c){if(!c){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=[],b=this;if(b.is(c,'array')&&b.is(c[0],'array')){a=b.pathClone(c)}if(!a.length){String(c).replace(b.pathCommandRE,function(h,f,g){var c=[],e=f.toLowerCase();g.replace(b.pathValuesRE,function(b,a){if(a){c.push(+a)}});if(e=='m'&&c.length>2){a.push([f].concat(Ext.Array.splice(c,0,2)));e='l';f=f=='m'?'l':'L'}while(c.length>=d[e]){a.push([f].concat(Ext.Array.splice(c,0,d[e])));if(!d[e]){break}}})}a.toString=b.path2string;return a},pathClone:function(a){var d=[],c,f,b,e;if(!this.is(a,'array')||!this.is(a&&a[0],'array')){a=this.parsePathString(a)}for(b=0,e=a.length;b7){a[d].shift();var e=a[d];while(e.length){Ext.Array.splice(a,d++,0,['C'].concat(Ext.Array.splice(e,0,6)))}Ext.Array.erase(a,d,1);j=Math.max(c.length,b.length||0)}},m=function(d,f,e,g,a){if(d&&f&&d[a][0]=='M'&&f[a][0]!='M'){Ext.Array.splice(f,a,0,['M',g.x,g.y]);e.bx=0;e.by=0;e.x=d[a][1];e.y=d[a][2];j=Math.max(c.length,b.length||0)}},a,j,g,f,i,h;for(a=0,j=Math.max(c.length,b.length||0);a1){u=N(u);d=u*d;c=u*c}x=d*d;y=c*c;I=(X==v?-1:1)*N(R((x*y-x*j*j-y*i*i)/(x*j*j+y*i*i)));q=I*d*j/c+(m+e)/2;r=I*-c*i/d+(n+f)/2;b=M(((n-r)/c).toFixed(7));a=M(((f-r)/c).toFixed(7));b=ma){b=b-k*2}if(!v&&a>b){a=a-k*2}}else {b=o[0];a=o[1];q=o[2];r=o[3]}z=a-b;if(R(z)>Q){L=a;O=e;P=f;a=b+Q*(v&&a>b?1:-1);e=q+d*B(a);f=r+c*C(a);g=s.arc2curve(e,f,d,c,K,0,v,O,P,[a,L,q,r])}z=a-b;S=B(b);V=C(b);T=B(a);W=C(a);J=p.tan(z/4);D=4/3*d*J;E=4/3*c*J;F=[m,n];l=[m+D*V,n-E*S];G=[e+D*W,f-E*T];H=[e,f];l[0]=2*F[0]-l[0];l[1]=2*F[1]-l[1];if(o){return [l,G,H].concat(g)}else {g=[l,G,H].concat(g).join().split(',');A=[];U=g.length;for(h=0;h=d){b=d;f=!0}if(a.reverse){b=d-b}for(c in e){if(e.hasOwnProperty(c)){h=e[c];g=f?1:k(b/d);i[c]=j[c].set(h,g)}}a.frameCount++;return i},lastFrame:function(){var a=this,c=a.iterations,b=a.currentIteration;b++;if(b0},isRunning:function(){return this.paused===!1&&this.running===!0&&this.isAnimator!==!0}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Anim'],0);Ext.enableFx=!0;Ext.cmd.derive('Ext.util.Animate',Ext.Base,{mixinId:'animate',isAnimate:!0,animate:function(b){var a=this;if(Ext.fx.Manager.hasFxBlock(a.id)){return a}Ext.fx.Manager.queueFx(new Ext.fx.Anim(a.anim(b)));return this},anim:function(a){if(!Ext.isObject(a)){return a?{}:!1}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:!0},a)},getAnimationProps:function(){var b=this,a=b.layout;return a&&a.animate?a.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,'stopAnimation'),stopAnimation:function(){Ext.fx.Manager.stopAnimation(this.id);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!0});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!1});return this},hasActiveFx:Ext.Function.alias(Ext.util.Animate,'getActiveAnimation'),getActiveAnimation:function(){return Ext.fx.Manager.getActiveAnimation(this.id)}},0,0,0,0,0,0,[Ext.util,'Animate'],0);Ext.cmd.derive('Ext.dom.Fly',Ext.dom.Element,{alternateClassName:'Ext.dom.Element.Fly',validNodeTypes:{1:1,9:1,11:1},isFly:!0,constructor:function(a){this.dom=a;this.el=this},attach:function(b){var a=this;if(!b){return a.detach()}a.dom=b;if(!Ext.cache[b.id]){a.getData().isSynchronized=!1}return a},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,'Fly',Ext.dom.Element,'Fly'],function(b){var a={};b.cache=a;Ext.fly=function(c,e){var d=null,h=Ext.fly,f,g;e=e||h.caller&&h.caller.$name||'_global';c=Ext.getDom(c);if(c){f=c.nodeType;if(b.prototype.validNodeTypes[f]||!f&&c.window==c){d=Ext.cache[c.id];if(!d||d.dom!==c){d=a[e]||(a[e]=new b());d.dom=c;g=d.getData(!0);if(g){g.isSynchronized=!1}}}}return d}});Ext.cmd.derive('Ext.dom.CompositeElementLite',Ext.Base,{alternateClassName:['Ext.CompositeElementLite'],isComposite:!0,isLite:!0,statics:{importElementMethods:function(){var b=Ext.dom.Element,a=this.prototype;Ext.Object.each(b.prototype,function(b,c){if(typeof c==='function'&&!a[b]){a[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(a,b){if(b){this.elements=a||[]}else {this.elements=[];this.add(a)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(a,e){var d=this.elements,b,c;if(!a){return this}if(typeof a=='string'){a=Ext.fly(e||document).query(a)}else {if(a.isComposite){a=a.elements}else {if(!Ext.isIterable(a)){a=[a]}}}for(b=0,c=a.length;b-1){a=Ext.getDom(a);if(e){b=this.elements[c];b.parentNode.insertBefore(a,b);Ext.removeNode(b)}Ext.Array.splice(this.elements,c,1,a)}return this},clear:function(c){var d=this,b=d.elements,a=b.length-1;if(c){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(a,d){if(!a){return this}if(typeof a==='string'){a=Ext.dom.Element.selectorFunction(a,d)}var e=this.elements,c=a.length,b;for(b=0;b','','','',''].join(''),O=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,J=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,G=/\ssrc=([\'\"])(.*?)\1/i,v=/\S/,E=/\stype=([\'\"])(.*?)\1/i,I=/^-ms-/,B=/(-[a-z])/gi,L=function(b,a){return a.charAt(1).toUpperCase()},r='x-masked',k='x-masked-relative',m='x-mask-msg',D=/^body/i,l={},u=function(d){var c=d.getData(),b=c[q];if(b===undefined){c[q]=b=a.VISIBILITY}return b},f=b.createRange?b.createRange():null,z={INPUT:!0,TEXTAREA:!0};if(Ext.isIE8){var p=b.createElement('div'),c=[],M=Ext.Function.createBuffered(function(){var b=c.length,a;for(a=0;a"+Ext.String.format(y,a)+''));b.selectNode('.'+a+'-mc').appendChild(this.dom);return b},clean:function(g){var c=this,d=c.dom,e=c.getData(),a=d.firstChild,f=-1,b;if(e.isCleaned&&g!==!0){return c}while(a){b=a.nextSibling;if(a.nodeType===3){if(!v.test(a.nodeValue)){d.removeChild(a)}else {if(b&&b.nodeType===3){a.appendData(Ext.String.trim(b.data));d.removeChild(b);b=a.nextSibling;a.nodeIndex=++f}}}else {Ext.fly(a,'_clean').clean();a.nodeIndex=++f}a=b}e.isCleaned=!0;return c},empty:f?function(){var a=this.dom;if(a.firstChild){f.setStartBefore(a.firstChild);f.setEndAfter(a.lastChild);f.deleteContents()}}:function(){var a=this.dom;while(a.lastChild){a.removeChild(a.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(a){a=a||'';return this.setStyle({left:a,right:a,top:a,bottom:a,'z-index':'',position:'static'})},createProxy:function(b,e,f){b=typeof b==='object'?b:{tag:'div',role:'presentation',cls:b};var d=this,c=e?Ext.DomHelper.append(e,b,!0):Ext.DomHelper.insertBefore(d.dom,b,!0);c.setVisibilityMode(a.DISPLAY);c.hide();if(f&&d.setBox&&d.getBox){c.setBox(d.getBox())}return c},clearOpacity:function(){return this.setOpacity('')},clip:function(){var a=this,c=a.getData(),b;if(!c[g]){c[g]=!0;b=a.getStyle([j,h,i]);c[n]={o:b[j],x:b[h],y:b[i]};a.setStyle(j,e);a.setStyle(h,e);a.setStyle(i,e)}return a},destroy:function(){var b=this,a=b.dom,f=b.getData(),e,d;if(a&&b.isAnimate){b.stopAnimation()}arguments.callee.$previous.call(this);if(a&&Ext.isIE8&&a.window!=a&&a.nodeType!==9&&a.tagName!=='BODY'&&a.tagName!=='HTML'){c[c.length]=a;M()}if(f){e=f.maskEl;d=f.maskMsg;if(e){e.destroy()}if(d){d.destroy()}}},enableDisplayMode:function(c){var b=this;b.setVisibilityMode(a.DISPLAY);if(c!==undefined){b.getData()[K]=c}return b},fadeIn:function(c){var a=this,b=a.dom;a.animate(Ext.apply({},c,{opacity:1,internalListeners:{beforeanimate:function(c){var a=Ext.fly(b,'_anim');if(a.isStyle('display','none')){a.setDisplayed('')}else {a.show()}}}}));return this},fadeOut:function(a){var b=this,c=b.dom;a=Ext.apply({opacity:0,internalListeners:{afteranimate:function(d){if(c&&d.to.opacity===0){var b=Ext.fly(c,'_anim');if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}}}}},a);b.animate(a);return b},fixDisplay:function(){var a=this;if(a.isStyle(d,s)){a.setStyle(o,e);a.setStyle(d,a._getDisplay());if(a.isStyle(d,s)){a.setStyle(d,'block')}}},frame:function(b,c,a){var d=this,f=d.dom,e;b=b||'#C3DAF9';c=c||1;a=a||{};e=function(){var g=Ext.fly(f,'_anim'),i=this,d,e,h;g.show();d=g.getBox();e=Ext.getBody().createChild({role:'presentation',id:g.dom.id+'-anim-proxy',style:{position:'absolute','pointer-events':'none','z-index':35000,border:'0px solid '+b}});h=new Ext.fx.Anim({target:e,duration:a.duration||1000,iterations:c,from:{top:d.y,left:d.x,borderWidth:0,opacity:1,height:d.height,width:d.width},to:{top:d.y-20,left:d.x-20,borderWidth:10,opacity:0,height:d.height+40,width:d.width+40}});h.on('afteranimate',function(){e.destroy();i.end()})};d.animate({duration:Math.max(a.duration,500)*2||2000,listeners:{beforeanimate:{fn:e}},callback:a.callback,scope:a.scope});return d},getColor:function(h,f,c){var a=this.getStyle(h),b=c||c===''?c:'#',d,g,e=0;if(!a||/transparent|inherit/.test(a)){return f}if(/^r/.test(a)){a=a.slice(4,a.length-1).split(',');g=a.length;for(;e5?b.toLowerCase():f},getLoader:function(){var c=this,b=c.getData(),a=b.loader;if(!a){b.loader=a=new Ext.ElementLoader({target:c})}return a},getPositioning:function(c){var a=this.getStyle(['left','top','position','z-index']),b=this.dom;if(c){if(a.left==='auto'){a.left=b.offsetLeft+'px'}if(a.top==='auto'){a.top=b.offsetTop+'px'}}return a},ghost:function(a,e){var b=this,d=b.dom,c;a=a||'b';c=function(){var g=Ext.fly(d,'_anim'),f=g.getWidth(),e=g.getHeight(),c=g.getXY(),h=g.getPositioning(),b={opacity:0};switch(a){case 't':b.y=c[1]-e;break;case 'l':b.x=c[0]-f;break;case 'r':b.x=c[0]+f;break;case 'b':b.y=c[1]+e;break;case 'tl':b.x=c[0]-f;b.y=c[1]-e;break;case 'bl':b.x=c[0]-f;b.y=c[1]+e;break;case 'br':b.x=c[0]+f;b.y=c[1]+e;break;case 'tr':b.x=c[0]+f;b.y=c[1]-e;break;}this.to=b;this.on('afteranimate',function(){var a=Ext.fly(d,'_anim');if(a){a.hide();a.clearOpacity();a.setPositioning(h)}})};b.animate(Ext.applyIf(e||{},{duration:500,easing:'ease-out',listeners:{beforeanimate:c}}));return b},hide:function(a){if(typeof a==='string'){this.setVisible(!1,a);return this}this.setVisible(!1,this.anim(a));return this},highlight:function(k,b){var g=this,e=g.dom,j={},i,h,c,d,a,f;b=b||{};d=b.listeners||{};c=b.attr||'backgroundColor';j[c]=k||'ffff9c';if(!b.to){h={};h[c]=b.endColor||g.getColor(c,'ffffff','')}else {h=b.to}b.listeners=Ext.apply(Ext.apply({},d),{beforeanimate:function(){i=e.style[c];var b=Ext.fly(e,'_anim');b.clearOpacity();b.show();a=d.beforeanimate;if(a){f=a.fn||a;return f.apply(a.scope||d.scope||t,arguments)}},afteranimate:function(){if(e){e.style[c]=i}a=d.afteranimate;if(a){f=a.fn||a;f.apply(a.scope||d.scope||t,arguments)}}});g.animate(Ext.apply({},b,{duration:1000,easing:'ease-in',from:j,to:h}));return g},hover:function(d,e,c,b){var a=this;a.on('mouseenter',d,c||a.dom,b);a.on('mouseleave',e,c||a.dom,b);return a},initDD:function(c,b,a){var d=new Ext.dd.DD(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDProxy:function(c,b,a){var d=new Ext.dd.DDProxy(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDTarget:function(c,b,a){var d=new Ext.dd.DDTarget(Ext.id(this.dom),c,b);return Ext.apply(d,a)},isFocusable:function(){var a=this.dom,b=!1,c;if(a&&!a.disabled){c=a.nodeName;b=!!Ext.Element.naturallyFocusableTags[c]||(c==='A'||c==='LINK')&&!!a.href||a.getAttribute('tabIndex')!=null||a.contentEditable==='true';if(Ext.isIE8&&c==='INPUT'&&a.type==='hidden'){b=!1}b=b&&this.isVisible(!0)}return b},isInputField:function(){var a=this.dom,b=a.contentEditable;if(z[a.tagName]&&a.type!=='button'||(b===''||b==='true')){return !0}return !1},isTabbable:function(f){var c=this.dom,a=!1,e,d,b;if(c&&!c.disabled){e=c.nodeName;b=c.getAttribute('tabIndex');d=b!=null;b-=0;if(e==='A'||e==='LINK'){if(c.href){a=d&&b<0?!1:!0}else {if(c.contentEditable==='true'){a=!d||d&&b>=0?!0:!1}else {a=d&&b>=0?!0:!1}}}else {if(c.contentEditable==='true'||Ext.Element.naturallyTabbableTags[e]){a=d&&b<0?!1:!0}else {if(d&&b>=0){a=!0}}}if(Ext.isIE8&&e==='INPUT'&&c.type==='hidden'){a=!1}a=a&&(f||(!this.component||this.component.isVisible(!0))&&this.isVisible(!0))}return a},isMasked:function(g){var b=this,f=b.getData(),e=f.maskEl,d=f.maskMsg,c=!1,a;if(e&&e.isVisible()){if(d){d.center(b)}c=!0}else {if(g){a=b.findParentNode();if(a){return Ext.fly(a).isMasked(g)}}}return c},load:function(a){this.getLoader().load(a);return this},mask:function(h,f,i){var c=this,d=c.dom,g=c.getData(),a=g.maskEl,e;if(!(D.test(d.tagName)&&c.getStyle('position')==='static')){c.addCls(k)}if(a){a.destroy()}a=Ext.DomHelper.append(d,{role:'presentation',cls:'x-mask x-border-box',children:{role:'presentation',cls:f?m+' '+f:m,cn:{tag:'div',role:'presentation',cls:'x-mask-msg-inner',cn:{tag:'div',role:'presentation',cls:'x-mask-msg-text',html:h||''}}}},!0);e=Ext.get(a.dom.firstChild);g.maskEl=a;c.addCls(r);a.setDisplayed(!0);if(typeof h==='string'){e.setDisplayed(!0);e.center(c)}else {e.setDisplayed(!1)}if(d===b.body){a.addCls('x-mask-fixed')}c.saveTabbableState({skipSelf:d===b.body});if(Ext.isIE9m&&d!==b.body&&c.isStyle('height','auto')){a.setSize(undefined,i||c.getHeight())}return a},monitorMouseLeave:function(e,d,f){var c=this,b,a={mouseleave:function(a){if(Ext.isIE9m){a.enableIEAsync()}b=Ext.defer(d,e,f||c,[a])},mouseenter:function(){clearTimeout(b)}};c.on(a);return a},puff:function(a){var c=this,e=c.dom,d,b=c.getBox(),f=c.getStyle(['width','height','left','right','top','bottom','position','z-index','font-size','opacity'],!0);a=Ext.applyIf(a||{},{easing:'ease-out',duration:500,useDisplay:!1});d=function(){var c=Ext.fly(e,'_anim');c.clearOpacity();c.show();this.to={width:b.width*2,height:b.height*2,x:b.x-b.width/2,y:b.y-b.height/2,opacity:0,fontSize:'200%'};this.on('afteranimate',function(){var b=Ext.fly(e,'_anim');if(b){if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}b.setStyle(f);Ext.callback(a.callback,a.scope)}})};c.animate({duration:a.duration,easing:a.easing,listeners:{beforeanimate:{fn:d}}});return c},selectable:function(){var b=this;b.dom.unselectable='';b.removeCls(a.unselectableCls);b.addCls(a.selectableCls);return b},setCapture:function(){var a=this.dom;if(Ext.isIE9m&&a.setCapture){a.setCapture()}},setHeight:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{height:c}},a))}return b},setHorizontal:function(){var a=this,b=a.verticalCls;delete a.vertical;if(b){delete a.verticalCls;a.removeCls(b)}delete a.setWidth;delete a.setHeight;if(!Ext.isIE8){delete a.getWidth;delete a.getHeight}delete a.styleHooks},updateText:function(d){var e=this,c,a;if(c){a=c.firstChild;if(!a||(a.nodeType!==3||a.nextSibling)){a=b.createTextNode();e.empty();c.appendChild(a)}if(d){a.data=d}}},setHtml:function(c,i,g,d){var a=this,f,e,h;if(!a.dom){return a}c=c||'';e=a.dom;if(i!==!0){e.innerHTML=c;Ext.callback(g,a);return a}f=Ext.id();c+='';h=Ext.interval(function(){var n,e,k,j,i,m,l;if(!(m=b.getElementById(f))){return !1}clearInterval(h);Ext.removeNode(m);n=Ext.getHead().dom;while(e=O.exec(c)){k=e[1];j=k?k.match(G):!1;if(j&&j[2]){l=b.createElement('script');l.src=j[2];i=k.match(E);if(i&&i[2]){l.type=i[2]}n.appendChild(l)}else {if(e[2]&&e[2].length>0){if(d){Ext.functionFactory(e[2]).call(d)}else {Ext.globalEval(e[2])}}}}Ext.callback(g,d||a)},20);e.innerHTML=c.replace(J,'');return a},setOpacity:function(c,b){var a=this;if(!a.dom){return a}if(!b||!a.anim){a.setStyle('opacity',c)}else {if(typeof b!='object'){b={duration:350,easing:'ease-in'}}a.animate(Ext.applyIf({to:{opacity:c}},b))}return a},setPositioning:function(a){return this.setStyle(a)},setVertical:function(e,d){var b=this,c=a.prototype;b.vertical=!0;if(d){b.addCls(b.verticalCls=d)}b.setWidth=c.setHeight;b.setHeight=c.setWidth;if(!Ext.isIE8){b.getWidth=c.getHeight;b.getHeight=c.getWidth}b.styleHooks=e===270?c.verticalStyleHooks270:c.verticalStyleHooks90},setSize:function(c,e,d){var b=this;if(Ext.isObject(c)){d=e;e=c.height;c=c.width}if(!d||!b.anim){b.dom.style.width=a.addUnits(c);b.dom.style.height=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}}else {if(d===!0){d={}}b.animate(Ext.applyIf({to:{width:c,height:e}},d))}return b},setVisible:function(f,g){var b=this,h=b.dom,c=u(b);if(typeof g==='string'){switch(g){case d:c=a.DISPLAY;break;case o:c=a.VISIBILITY;break;case A:c=a.OFFSETS;break;case H:c=a.CLIP;break;}b.setVisibilityMode(c);g=!1}if(!g||!b.anim){if(c===a.DISPLAY){return b.setDisplayed(f)}else {if(c===a.OFFSETS){b[f?'removeCls':'addCls'](N)}else {if(c===a.CLIP){b[f?'removeCls':'addCls'](w)}else {if(c===a.VISIBILITY){b.fixDisplay();h.style.visibility=f?'':e}}}}}else {if(f){b.setOpacity(0.01);b.setVisible(!0)}if(!Ext.isObject(g)){g={duration:350,easing:'ease-in'}}b.animate(Ext.applyIf({callback:function(){if(!f){Ext.fly(h).setVisible(!1).setOpacity(1)}},to:{opacity:f?1:0}},g))}b.getData()[x]=f;if(b.shadow||b.shim){b.setUnderlaysVisible(f)}return b},setWidth:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{width:c}},a))}return b},setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(b,a){var c=this;if(!a||!c.anim){arguments.callee.$previous.call(this,b)}else {if(!Ext.isObject(a)){a={}}c.animate(Ext.applyIf({to:{x:b[0],y:b[1]}},a))}return this},setY:function(b,a){return this.setXY([this.getX(),b],a)},show:function(a){if(typeof a==='string'){this.setVisible(!0,a);return this}this.setVisible(!0,this.anim(a));return this},slideIn:function(a,c,d){var b=this,g=b.dom,h=g.style,j,e,f,i;a=a||'t';c=c||{};j=function(){var p=this,o=c.listeners,m=Ext.fly(g,'_anim'),j,n,l,k;if(!d){m.fixDisplay()}j=m.getBox();if((a=='t'||a=='b')&&j.height===0){j.height=g.scrollHeight}else {if((a=='l'||a=='r')&&j.width===0){j.width=g.scrollWidth}}n=m.getStyle(['width','height','left','right','top','bottom','position','z-index'],!0);m.setSize(j.width,j.height);if(c.preserveScroll){f=m.cacheScrollValues()}k=m.wrap({role:'presentation',id:Ext.id()+'-anim-wrap-for-'+m.dom.id,style:{visibility:d?'visible':'hidden'}});i=k.dom.parentNode;k.setPositioning(m.getPositioning());if(k.isStyle('position','static')){k.position('relative')}m.clearPositioning('auto');k.clip();if(f){f()}m.setStyle({visibility:'',position:'absolute'});if(d){k.setSize(j.width,j.height)}switch(a){case 't':l={from:{width:j.width+'px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';break;case 'l':l={from:{width:'0px',height:j.height+'px'},to:{width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'r':l={from:{x:j.x+j.width,width:'0px',height:j.height+'px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'b':l={from:{y:j.y+j.height,width:j.width+'px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};break;case 'tl':l={from:{x:j.x,y:j.y,width:'0px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('l');break;case 'bl':l={from:{y:j.y+j.height,width:'0px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('l');break;case 'br':l={from:{x:j.x+j.width,y:j.y+j.height,width:'0px',height:'0px'},to:{x:j.x,y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('r');break;case 'tr':l={from:{x:j.x+j.width,width:'0px',height:'0px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('r');break;}k.show();e=Ext.apply({},c);delete e.listeners;e=new Ext.fx.Anim(Ext.applyIf(e,{target:k,duration:500,easing:'ease-out',from:d?l.to:l.from,to:d?l.from:l.to}));e.on('afteranimate',function(){var a=Ext.fly(g,'_anim');a.setStyle(n);if(d){if(c.useDisplay){a.setDisplayed(!1)}else {a.hide()}}if(k.dom){if(k.dom.parentNode){k.dom.parentNode.insertBefore(a.dom,k.dom)}else {i.appendChild(a.dom)}k.destroy()}if(f){f()}p.end()});if(o){e.on(o)}};b.animate({duration:c.duration?Math.max(c.duration,500)*2:1000,listeners:{beforeanimate:j}});return b},slideOut:function(a,b){return this.slideIn(a,b,!0)},swallowEvent:function(a,f){var b=this,c,d,e=function(a){a.stopPropagation();if(f){a.preventDefault()}};if(Ext.isArray(a)){d=a.length;for(c=0;c0){a.setAttribute(e,++f)}else {if(a.hasAttribute('tabIndex')){a.setAttribute(g,a.getAttribute('tabIndex'))}else {a.setAttribute(g,'none')}a.setAttribute('tabIndex','-1');a.setAttribute(e,'1')}}return c},restoreTabbableState:function(k,j){var g=this.dom,c=Ext.Element.tabbableSavedCounterAttribute,e=Ext.Element.tabbableSavedValueAttribute,b=[],h,f,b,a,d,i;if(!g){return this}if(!j){b=Ext.Array.from(g.querySelectorAll('['+c+']'))}if(!k){b.unshift(g)}for(d=0,i=b.length;d1){a.setAttribute(c,--f);continue}h=a.getAttribute(e);if(h==='none'){a.removeAttribute('tabIndex')}else {a.setAttribute('tabIndex',h)}a.removeAttribute(e);a.removeAttribute(c)}return b}},deprecated:{'4.0':{methods:{pause:function(b){var a=this;Ext.fx.Manager.setFxDefaults(a.id,{delay:b});return a},scale:function(c,a,b){this.animate(Ext.apply({},b,{width:c,height:a}));return this},shift:function(a){this.animate(a);return this}}},'4.2':{methods:{moveTo:function(b,c,a){return this.setXY([b,c],a)},setBounds:function(d,e,c,b,a){return this.setBox({x:d,y:e,width:c,height:b},a)},setLeftTop:function(d,e){var b=this,c=b.dom.style;c.left=a.addUnits(d);c.top=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocation:function(b,c,a){return this.setXY([b,c],a)}}},'5.0':{methods:{getAttributeNS:function(a,b){return this.getAttribute(b,a)},getCenterXY:function(){return this.getAlignToXY(b,'c-c')},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(C))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(F))||0},getStyleSize:function(){var d=this,e=this.dom,h=e===b||e===b.body,c,g,f;if(h){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}c=d.getStyle(['height','width'],!0);if(c.width&&c.width!=='auto'){g=parseFloat(c.width)}if(c.height&&c.height!=='auto'){f=parseFloat(c.height)}return {width:g||d.getWidth(!0),height:f||d.getHeight(!0)}},isBorderBox:function(){return !0},isDisplayed:function(){return !this.isStyle('display','none')},focusable:'isFocusable'}}}}}(),function(){var g=Ext.dom.Element,a=g.prototype,t=!Ext.isIE8,f=document,q=f.defaultView,p=/alpha\(opacity=(.*)\)/i,w=/^\s+|\s+$/g,d=a.styleHooks,e=Ext.supports,c,b,l,m,i,j,n;a._init(g);delete a._init;Ext.plainTableCls='x-table-plain';Ext.plainListCls='x-list-plain';if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!e.Opacity&&Ext.isIE){Ext.apply(d.opacity,{get:function(d){var c=d.style.filter,b,a;if(c.match){b=c.match(p);if(b){a=parseFloat(b[1]);if(!isNaN(a)){return a?a/100:0}}}return 1},set:function(d,a){var b=d.style,c=b.filter.replace(p,'').replace(w,'');b.zoom=1;if(typeof a==='number'&&a>=0&&a<1){a*=100;b.filter=c+(c.length?' ':'')+'alpha(opacity='+a+')'}else {b.filter=c}}})}if(!e.matchesSelector){var r=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,v=/\-/g,h,s=function(a,c){var b=new RegExp('(?:^|\\s+)'+c.replace(v,'\\-')+'(?:\\s+|$)');if(a&&a!=='*'){a=a.toUpperCase();return function(c){return c.tagName===a&&b.test(c.className)}}return function(a){return b.test(a.className)}},u=function(a){a=a.toUpperCase();return function(b){return b.tagName===a}},k={};a.matcherCache=k;a.is=function(a){if(!a){return !0}var b=this.dom,g,e,d,c,j,l,i;if(b.nodeType!==1){return !1}if(!(d=Ext.isFunction(a)?a:k[a])){if(!(e=a.match(r))){c=b.parentNode;if(!c){j=!0;c=h||(h=f.createDocumentFragment());h.appendChild(b)}l=Ext.Array.indexOf(Ext.fly(c,'_is').query(a),b)!==-1;if(j){h.removeChild(b)}return l}i=e[1];g=e[2];k[a]=d=g?s(i,g):u(i)}return d(b)}}if(!q||!q.getComputedStyle){a.getStyle=function(o,p){var j=this,e=j.dom,n=typeof o!=='string',a=o,i=a,r=1,m=p,l=j.styleHooks,q,h,d,c,f,b,k;if(n){d={};a=i[0];k=0;if(!(r=i.length)){return d}}if(!e||e.documentElement){return d||''}h=e.style;if(p){b=h}else {b=e.currentStyle;if(!b){m=!0;b=h}}do{c=l[a];if(!c){l[a]=c={name:g.normalize(a)}}if(c.get){f=c.get(e,j,m,b)}else {q=c.name;f=b[q]}if(!n){return f}d[a]=f;a=i[++k]}while(k=9)){a.getAttribute=function(a,c){var d=this.dom,b;if(c){b=typeof d[c+':'+a];if(b!=='undefined'&&b!=='unknown'){return d[c+':'+a]||null}return null}if(a==='for'){a='htmlFor'}return d[a]||null}}Ext.onInternalReady(function(){var o=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,h=[],p=a.setWidth,n=a.setHeight,m=a.setSize,q=/^\d+(?:\.\d*)?px$/i,i,l,k,j;if(e.FixedTableWidthBug){d.width={name:'width',set:function(c,e,f){var a=c.style,b=f._needsTableWidthFix,d=a.display;if(b){a.display='none'}a.width=e;if(b){c.scrollWidth;a.display=d}}};a.setWidth=function(g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}p.call(a,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a};a.setSize=function(h,g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}m.call(a,h,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a}}if(Ext.isIE8){d.height={name:'height',set:function(f,b,e){var a=e.component,d,c;if(a&&a._syncFrameHeight&&e===a.el){c=a.frameBody.dom.style;if(q.test(b)){d=a.getFrameInfo();if(d){c.height=parseInt(b,10)-d.height+'px'}}else {if(!b||b==='auto'){c.height=''}}}f.style.height=b}};a.setHeight=function(b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return n.call(this,b,e)};a.setSize=function(f,b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return m.call(this,f,b,e)}}Ext.getDoc().on('selectstart',function(h,a){var e=g.selectableCls,d=g.unselectableCls,b=a&&a.tagName;b=b&&b.toLowerCase();if(b==='input'||b==='textarea'){return}while(a&&a.nodeType===1&&a!==f.documentElement){var c=Ext.fly(a);if(c.hasCls(e)){return}if(c.hasCls(d)){h.stopEvent();return}a=a.parentNode}});function fixTransparent(d,e,c,b){var a=b[this.name]||'';return o.test(a)?'transparent':a}function makeSelectionRestoreFn(a,b,c){return function(){a.selectionStart=b;a.selectionEnd=c}}function getRightMarginFixCleaner(i){var h=e.DisplayChangeInputSelectionBug,f=e.DisplayChangeTextAreaSelectionBug,a,d,b,c;if(h||f){a=g.getActiveElement();d=a&&a.tagName;if(f&&d==='TEXTAREA'||h&&d==='INPUT'&&a.type==='text'){if(Ext.fly(i).isAncestor(a)){b=a.selectionStart;c=a.selectionEnd;if(Ext.isNumber(b)&&Ext.isNumber(c)){return makeSelectionRestoreFn(a,b,c)}}}}return Ext.emptyFn}function fixRightMargin(c,g,f,e){var b=e.marginRight,a,d;if(b!=='0px'){a=c.style;d=a.display;a.display='inline-block';b=(f?e:c.ownerDocument.defaultView.getComputedStyle(c,null)).marginRight;a.display=d}return b}function fixRightMarginAndInputFocus(b,h,g,f){var c=f.marginRight,a,d,e;if(c!=='0px'){a=b.style;d=getRightMarginFixCleaner(b);e=a.display;a.display='inline-block';c=(g?f:b.ownerDocument.defaultView.getComputedStyle(b,'')).marginRight;a.display=e;d()}return c}if(!e.RightMargin){d.marginRight=d['margin-right']={name:'marginRight',get:e.DisplayChangeInputSelectionBug||e.DisplayChangeTextAreaSelectionBug?fixRightMarginAndInputFocus:fixRightMargin}}if(!e.TransparentColor){i=['background-color','border-color','color','outline-color'];for(l=i.length;l--;){k=i[l];j=g.normalize(k);d[k]=d[j]={name:j,get:fixTransparent}}}a.verticalStyleHooks90=c=Ext.Object.chain(d);a.verticalStyleHooks270=b=Ext.Object.chain(d);c.width=d.height||{name:'height'};c.height=d.width||{name:'width'};c['margin-top']={name:'marginLeft'};c['margin-right']={name:'marginTop'};c['margin-bottom']={name:'marginRight'};c['margin-left']={name:'marginBottom'};c['padding-top']={name:'paddingLeft'};c['padding-right']={name:'paddingTop'};c['padding-bottom']={name:'paddingRight'};c['padding-left']={name:'paddingBottom'};c['border-top']={name:'borderLeft'};c['border-right']={name:'borderTop'};c['border-bottom']={name:'borderRight'};c['border-left']={name:'borderBottom'};b.width=d.height||{name:'height'};b.height=d.width||{name:'width'};b['margin-top']={name:'marginRight'};b['margin-right']={name:'marginBottom'};b['margin-bottom']={name:'marginLeft'};b['margin-left']={name:'marginTop'};b['padding-top']={name:'paddingRight'};b['padding-right']={name:'paddingBottom'};b['padding-bottom']={name:'paddingLeft'};b['padding-left']={name:'paddingTop'};b['border-top']={name:'borderRight'};b['border-right']={name:'borderBottom'};b['border-bottom']={name:'borderLeft'};b['border-left']={name:'borderTop'};if(!Ext.scopeCss){h.push('x-body')}if(e.Touch){h.push('x-touch')}if(Ext.isIE&&Ext.isIE9m){h.push('x-ie','x-ie9m');h.push('x-ie8p');if(Ext.isIE8){h.push('x-ie8')}else {h.push('x-ie9','x-ie9p')}if(Ext.isIE8m){h.push('x-ie8m')}}if(Ext.isIE10){h.push('x-ie10')}if(Ext.isIE10p){h.push('x-ie10p')}if(Ext.isIE11){h.push('x-ie11')}if(Ext.isGecko){h.push('x-gecko')}if(Ext.isOpera){h.push('x-opera')}if(Ext.isOpera12m){h.push('x-opera12m')}if(Ext.isWebKit){h.push('x-webkit')}if(Ext.isSafari){h.push('x-safari')}if(Ext.isChrome){h.push('x-chrome')}if(Ext.isMac){h.push('x-mac')}if(Ext.isLinux){h.push('x-linux')}if(!e.CSS3BorderRadius){h.push('x-nbr')}if(!e.CSS3LinearGradient){h.push('x-nlg')}if(e.Touch){h.push('x-touch')}Ext.getBody().addCls(h)},null,{priority:1500})});Ext.cmd.derive('Ext.GlobalEvents',Ext.mixin.Observable,{alternateClassName:'Ext.globalEvents',observableType:'global',singleton:!0,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},attachListeners:function(){Ext.get(window).on('resize',this.fireResize,this,{buffer:this.resizeBuffer});Ext.getDoc().on('mousedown',this.fireMouseDown,this)},fireMouseDown:function(a){this.fireEvent('mousedown',a)},fireResize:function(){var a=this,d=Ext.Element,c=d.getViewportWidth(),b=d.getViewportHeight();if(a.curHeight!==b||a.curWidth!==c){a.curHeight=b;a.curWidth=c;a.fireEvent('resize',c,b)}}},1,0,0,0,0,0,[Ext,'GlobalEvents',Ext,'globalEvents'],function(a){Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)}});Ext.define('Ext.overrides.GlobalEvents',{override:'Ext.GlobalEvents',deprecated:{5:{methods:{addListener:function(a,d,i,f,h,g,e){var c,b;if(a==='ready'){b=d}else {if(typeof a!=='string'){for(c in a){if(c==='ready'){b=a[c]}}}}if(b){Ext.onReady(b)}this.callParent([a,d,i,f,h,g,e])}}}}});Ext.USE_NATIVE_JSON=!1;Ext.JSON=new function(){var me=this,hasNative=window.JSON&&JSON.toString()==='[object JSON]',useHasOwn=!!{}.hasOwnProperty,pad=function(a){return a<10?'0'+a:a},doDecode=function(json){return eval('('+json+')')},doEncode=function(a,b){if(a===null||a===undefined){return 'null'}else {if(Ext.isDate(a)){return me.encodeDate(a)}else {if(Ext.isString(a)){if(Ext.isMSDate(a)){return me.encodeMSDate(a)}else {return me.encodeString(a)}}else {if(typeof a==='number'){return isFinite(a)?String(a):'null'}else {if(Ext.isBoolean(a)){return String(a)}else {if(a.toJSON){return a.toJSON()}else {if(Ext.isArray(a)){return encodeArray(a,b)}else {if(Ext.isObject(a)){return encodeObject(a,b)}else {if(typeof a==='function'){return 'null'}}}}}}}}}return 'undefined'},m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\','\v':'\\u000b'},charToReplace=/[\\\"\x00-\x1f\x7f-\uffff]/g,encodeString=function(a){return '"'+a.replace(charToReplace,function(a){var b=m[a];return typeof b==='string'?b:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(a){return '"'+a+'"'},encodeArrayPretty=function(e,d){var f=e.length,c=d+' ',g=','+c,a=['[',c],b;for(b=0;b0}}return c},onBindNotify:function(b,c,a){a.syncing=a.syncing+1||1;this[a._config.names.set](b);--a.syncing},removeBindings:function(){var c=this,a,d,b;if(!c.destroying){a=c.getBind();if(a&&typeof a!=='string'){for(d in a){b=a[d];b.destroy();b._config=b.getTemplateScope=null}}}c.setBind(null)},updateSession:function(a){var b=this.getInherited();if(a){b.session=a}else {delete b.session}},updateViewModel:function(a){var c=this.getInherited(),b=this.getController();if(a){c.viewModel=a;a.setView(this);if(b){b.initViewModel(a)}}else {delete c.viewModel}}}},0,0,0,0,0,0,[Ext.mixin,'Bindable'],0);Ext.cmd.derive('Ext.mixin.ComponentDelegation',Ext.Mixin,{mixinConfig:{id:'componentDelegation'},privates:{addDelegatedListener:function(c,k,j,a,d,i,h){var b=this,e,g,f;d=d||a.order;if(d){f=a&&a.priority;if(!f){a=a?Ext.Object.chain(a):{};a.priority=b.$orderToPriority[d]}}e=b.$delegatedEvents||(b.$delegatedEvents={});g=e[c]||(e[c]=new Ext.util.Event(b,c));if(g.addListener(k,j,a,i,h)){b.$hasDelegatedListeners._incr_(c)}},clearDelegatedListeners:function(){var e=this,a=e.$delegatedEvents,b,c,d;if(a){for(b in a){c=a[b];d=c.listeners.length;c.clearListeners();e.$hasDelegatedListeners._decr_(b,d);delete a[b]}}},doFireDelegatedEvent:function(f,g){var e=this,d=!0,a,b,c;if(e.$hasDelegatedListeners[f]){a=e.getRefOwner();while(a){b=a.$delegatedEvents;if(b){c=b[f];if(c){d=c.fireDelegated(e,g);if(d===!1){break}}}a=a.getRefOwner()}}return d},removeDelegatedListener:function(c,f,e){var d=this,b=d.$delegatedEvents,a;if(b){a=b[c];if(a&&a.removeListener(f,e)){d.$hasDelegatedListeners._decr_(c);if(a.listeners.length===0){delete b[c]}}}}},onClassMixedIn:function(a){function HasListeners(){}a.prototype.HasListeners=a.HasListeners=HasListeners;HasListeners.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,'ComponentDelegation'],function(a){function HasDelegatedListeners(){}a.HasDelegatedListeners=HasDelegatedListeners;HasDelegatedListeners.prototype=a.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()});Ext.cmd.derive('Ext.Widget',Ext.Evented,{isWidget:!0,element:{reference:'element'},observableType:'component',cachedConfig:{style:null},config:{userCls:null},eventedConfig:{width:null,height:null},template:[],constructor:function(c){var a=this,b;a.initId(c);a.initElement();a.mixins.observable.constructor.call(a,c);Ext.ComponentManager.register(a);b=a.getController();if(b){b.init(a)}},afterCachedConfig:function(){var c=this,j=c.self.prototype,f=c.referenceList,i=c.renderElement,d,h,a,b,g,e;j.renderTemplate=d=document.createDocumentFragment();d.appendChild(i.clone(!0,!0));e=d.querySelectorAll('[id]');for(a=0,b=e.length;a]+>/gi,stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},undef:function(a){return a!==undefined?a:''},defaultValue:function(a,b){return a!==undefined&&a!==''?a:b},substr:'ab'.substr(-1)!='b'?function(d,a,c){var b=String(d);return a<0?b.substr(Math.max(b.length+a,0),c):b.substr(a,c)}:function(c,b,a){return String(c).substr(b,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(b){return a.currency(b,'$',2)},currency:function(b,f,c,h){var d='',e=',0',g=0;b=b-0;if(b<0){b=-b;d='-'}c=Ext.isDefined(c)?c:a.currencyPrecision;e+=c>0?'.':'';for(;gb){a=a.substring(a.length-b)}}while(a.length2){}else {if(e.length===2){d=e[1].length;f=e[1].match(a.hashRe);if(f){m=f[0].length;l='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+m+'}$")'}}}b=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts'+(h?',thousandSeparator,thousands=[],j,n,i':'')+(i?',formatString="'+c+'",formatPattern=/[\\d,\\.#]+/':'')+',trailingZeroes;return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";neg=v<0;','absVal=Math.abs(v);','fnum=Ext.Number.toFixed(absVal, '+d+');',l,';'];if(h){if(d){b[b.length]='parts=fnum.split(".");';b[b.length]='fnum=parts[0];'}b[b.length]='if(absVal>=1000) {';b[b.length]='thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i')},capitalize:Ext.String.capitalize,uncapitalize:Ext.String.uncapitalize,ellipsis:Ext.String.ellipsis,escape:Ext.String.escape,escapeRegex:Ext.String.escapeRegex,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,toggle:Ext.String.toggle,trim:Ext.String.trim,parseBox:function(b){b=b||0;if(typeof b==='number'){return {top:b,right:b,bottom:b,left:b}}var a=b.split(' '),c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else {if(c===2){a[2]=a[0];a[3]=a[1]}else {if(c===3){a[3]=a[1]}}}return {top:parseInt(a[0],10)||0,right:parseInt(a[1],10)||0,bottom:parseInt(a[2],10)||0,left:parseInt(a[3],10)||0}}}},1,0,0,0,0,0,[Ext.util,'Format'],0);Ext.cmd.derive('Ext.Template',Ext.Base,{inheritableStatics:{from:function(a,b){a=Ext.getDom(a);return new this(a.value||a.innerHTML,b||'')}},useEval:Ext.isGecko,constructor:function(g){var d=this,c=arguments,f=[],e,b=c.length,a;d.initialConfig={};if(b===1&&Ext.isArray(g)){c=g;b=c.length}if(b>1){for(e=0;e]*)\>)|(?:<\/tpl>)/g,actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g,propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/,defaultRe:/^\s*default\s*$/,elseRe:/^\s*else\s*$/},1,0,0,0,0,0,[Ext.util,'XTemplateParser'],0);Ext.cmd.derive('Ext.util.XTemplateCompiler',Ext.util.XTemplateParser,{useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:!0,propNameRe:/^[\w\d\$]*$/,compile:function(c){var a=this,b=a.generate(c);return a.useEval?a.evalTpl(b):(new Function('Ext',b))(Ext)},generate:function(d){var a=this,b='var fm=Ext.util.Format,ts=Object.prototype.toString;',c;a.maxLevel=0;a.body=['var c0=values, a0='+a.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(a.definitions){if(typeof a.definitions==='string'){a.definitions=[a.definitions,b]}else {a.definitions.push(b)}}else {a.definitions=[b]}a.switches=[];a.parse(d);a.definitions.push((a.useEval?'$=':'return')+' function ('+a.fnArgs+') {',a.body.join(''),'}');c=a.definitions.join('\n');a.definitions.length=a.body.length=a.switches.length=0;delete a.definitions;delete a.body;delete a.switches;return c},doText:function(a){var b=this,c=b.body;a=a.replace(b.aposRe,"\\'").replace(b.newLineRe,'\\n');if(b.useIndex){c.push("out[out.length]='",a,"'\n")}else {c.push("out.push('",a,"')\n")}},doExpr:function(b){var a=this.body;a.push('if ((v='+b+') != null) out');if(this.useIndex){a.push("[out.length]=v+''\n")}else {a.push(".push(v+'')\n")}},doTag:function(b){var a=this.parseTag(b);if(a){this.doExpr(a)}else {this.doText('{'+b+'}')}},doElse:function(){this.body.push('} else {\n')},doEval:function(a){this.body.push(a,'\n')},doIf:function(b,c){var a=this;if(b==='.'){a.body.push('if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('if (',a.parseTag(b),') {\n')}else {a.body.push('if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==='.'){a.body.push('else if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('} else if (',a.parseTag(b),') {\n')}else {a.body.push('} else if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doSwitch:function(b){var a=this,c;if(b==='.'||b==='#'){c=b==='.'?'values':'xindex';a.body.push('switch (',c,') {\n')}else {if(a.propNameRe.test(b)){a.body.push('switch (',a.parseTag(b),') {\n')}else {a.body.push('switch (',a.addFn(b),a.callFn,') {\n')}}a.switches.push(0)},doCase:function(e){var a=this,c=Ext.isArray(e)?e:[e],d=a.switches.length-1,f,b;if(a.switches[d]){a.body.push('break;\n')}else {a.switches[d]++}for(b=0,d=c.length;b1){ out.push("',d.between,'"); } \n')}},doForEach:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else {if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}}if(b.maxLevel1){ out.push("',d.between,'"); } \n')}},createArrayTest:'isArray' in Array?function(a){return 'Array.isArray(c'+a+')'}:function(a){return 'ts.call(c'+a+')==="[object Array]"'},doExec:function(d,e){var a=this,c='f'+a.definitions.length,b=a.guards[a.strict?0:1];a.definitions.push('function '+c+'('+a.fnArgs+') {',b.doTry,' var $v = values; with($v) {',' '+d,' }',b.doCatch,'}');a.body.push(c+a.callFn+'\n')},guards:[{doTry:'',doCatch:''},{doTry:'try { ',doCatch:' } catch(e) {\n}'}],addFn:function(c){var a=this,b='f'+a.definitions.length,d=a.guards[a.strict?0:1];if(c==='.'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return values','}')}else {if(c==='..'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return parent','}')}else {a.definitions.push('function '+b+'('+a.fnArgs+') {',d.doTry,' var $v = values; with($v) {',' return('+c+')',' }',d.doCatch,'}')}}return b},parseTag:function(h){var e=this,f=e.tagRe.exec(h),a,c,d,g,b;if(!f){return null}a=f[1];c=f[2];d=f[3];g=f[4];if(a=='.'){if(!e.validTypes){e.definitions.push('var validTypes={string:1,number:1,boolean:1};');e.validTypes=!0}b='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else {if(a=='#'){b='xindex'}else {if(a=='$'){b='xkey'}else {if(a.substr(0,7)=='parent.'){b=a}else {if(isNaN(a)&&a.indexOf('-')==-1&&a.indexOf('.')!=-1){b='values.'+a}else {b="values['"+a+"']"}}}}}if(g){b='('+b+g+')'}if(c&&e.useFormat){d=d?','+d:'';if(c.substr(0,5)!='this.'){c='fm.'+c+'('}else {c+='('}}else {return b}return c+b+d+')'},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},0,0,0,0,0,0,[Ext.util,'XTemplateCompiler'],function(){var a=this.prototype;a.fnArgs='out,values,parent,xindex,xcount,xkey';a.callFn='.call(this,'+a.fnArgs+')'});Ext.cmd.derive('Ext.XTemplate',Ext.Template,{isXTemplate:!0,emptyObj:{},fn:null,strict:!1,apply:function(b,a,d,c){return this.applyOut(b,[],a,d,c).join('')},applyOut:function(g,d,f,c,b){var a=this,e;if(!a.fn){e=new Ext.util.XTemplateCompiler({useFormat:a.disableFormats!==!0,definitions:a.definitions,strict:a.strict});a.fn=e.compile(a.html)}c=c||1;b=b||1;if(a.strict){a.fn(d,g,f||a.emptyObj,c,b)}else {try{a.fn(d,g,f||a.emptyObj,c,b)}catch(h){}}return d},compile:function(){return this},statics:{getTpl:function(c,d){var b=c[d],a;if(b&&!b.isTemplate){b=Ext.ClassManager.dynInstantiate('Ext.XTemplate',b);if(c.hasOwnProperty(d)){a=c}else {for(a=c.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=b;b.owner=a}return b||null}}},0,0,0,0,0,0,[Ext,'XTemplate'],0);Ext.cmd.derive('Ext.app.EventDomain',Ext.Base,{statics:{instances:{}},isEventDomain:!0,isInstance:!1,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(l,h,m){h=Ext.canonicalEventName(h);var j=this,n=j.bus,b=n[h],c,a,i,g,e,k,d,f;if(!b){return !0}for(c in b){if(b.hasOwnProperty(c)&&j.match(l,c,j.controller)){a=b[c];for(i in a){if(a.hasOwnProperty(i)){g=a[i];if(g.controller.isActive()){e=g.list;k=e.length;for(d=0;da.clientWidth}}if(e==='scroll'){h=!0}else {if(e){h=a.scrollHeight>a.clientHeight}}if(g){i=f.height}if(h){j=f.width}}}return {width:j,height:i}},getPosition:function(){return this.position},updateDirectionLock:Ext.emptyFn,updateDisabled:Ext.emptyFn,updateIndicators:Ext.emptyFn,updateMaxPosition:Ext.emptyFn,updateMaxUserPosition:Ext.emptyFn,updateMinPosition:Ext.emptyFn,updateMinUserPosition:Ext.emptyFn,updateMomenumEasing:Ext.emptyFn,updateX:Ext.emptyFn,updateY:Ext.emptyFn,onPartnerScrollStart:Ext.emptyFn,onPartnerScrollEnd:Ext.emptyFn,refresh:function(){this.fireEvent('refresh',this);return this},removePartner:function(c){var b=this._partners,a=c._partners;if(b){delete b[c.getId()]}if(a){delete a[this.getId()]}},scrollBy:function(a,b,c){var d=this.getPosition();if(a){if(a.length){c=b;b=a[1];a=a[0]}else {if(typeof a!=='number'){c=b;b=a.y;a=a.x}}}a=typeof a==='number'?a+d.x:null;b=typeof b==='number'?b+d.y:null;return this.doScrollTo(a,b,c)},scrollIntoView:function(d,i,h,e){var a=this,c=a.getPosition(),b,f,g,j=a.getElement();if(d){b=Ext.fly(d).getScrollIntoViewXY(j,c.x,c.y);f=i===!1?c.x:b.x;g=b.y;if(e){a.on({scrollend:'doHighlight',scope:a,single:!0,args:[d,e]})}a.doScrollTo(f,g,h)}},isInView:function(d){var f=this,c={x:!1,y:!1},b,e=f.getElement(),a;if(d&&e.contains(d)){a=e.getRegion();b=Ext.fly(d).getRegion();c.x=b.right>a.left&&b.lefta.top&&b.top0){b-=1}if(c>0){c-=1}e.setSpacerXY({x:b,y:c});d.show()}}},deprecated:{5:{methods:{getScroller:function(){return this}}},'5.1.0':{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}},privates:{getSpacer:function(){var b=this,a=b._spacer,c;if(!a){c=b.getElement();a=b._spacer=c.createChild({cls:b._spacerCls,role:'presentation'});a.setVisibilityMode(2);c.position()}return a},applySpacerXY:function(a,b){if(b&&a.x===b.x&&a.y===b.y){a=undefined}return a},updateSpacerXY:function(a){this.getSpacer().setLocalXY(a.x,a.y)},convertX:function(a){return a},doHighlight:function(b,a){if(a!==!0){Ext.fly(b).highlight(a)}else {Ext.fly(b).highlight()}},fireScrollStart:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollStart',b,c);if(a.hasListeners.scrollstart){a.fireEvent('scrollstart',a,b,c)}if(d&&d.onScrollStart){d.onScrollStart(b,c)}Ext.GlobalEvents.fireEvent('scrollstart',a,b,c)},fireScroll:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScroll',b,c);if(a.hasListeners.scroll){a.fireEvent('scroll',a,b,c)}if(d&&d.onScrollMove){d.onScrollMove(b,c)}Ext.GlobalEvents.fireEvent('scroll',a,b,c)},fireScrollEnd:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollEnd',b,c);if(a.hasListeners.scrollend){a.fireEvent('scrollend',a,b,c)}if(d&&d.onScrollEnd){d.onScrollEnd(b,c)}Ext.GlobalEvents.fireEvent('scrollend',a,b,c)},initXStyle:function(){var b=this.getElement(),a=this.getX();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-x',a)}},initYStyle:function(){var b=this.getElement(),a=this.getY();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-y',a)}},invokePartners:function(d,g,h){var b=this,c=b._partners,a,e,f=d==='onPartnerScrollEnd';if(!b.suspendSync&!b.isReflecting){for(e in c){a=c[e].scroller;a.isReflecting=!0;a[d](b,g,h);if(f){a.isReflecting=!1}}}},clearReflecting:function(){this.isReflecting=!1},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(){if(this.suspendSync){this.suspendSync--}},updateDomScrollPosition:function(){var a=this,d=a.getElement(),b,c=a.position;if(d&&!d.destroyed){b=a.getElementScroll(d);c.x=b.left;c.y=b.top}a.positionDirty=!1;return c},getElementScroll:function(a){return a.getScroll()},onDomScroll:function(){var a=this,b,d,e,c;if(a.isTouchScroller&&Ext.supports.touchScroll===2){c=a.getElement().dom;c.scrollTop=c.scrollLeft=0;return}b=a.updateDomScrollPosition();d=b.x;e=b.y;if(!a.isScrolling){a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(d,e)}a.fireScroll(d,e);a.onDomScrollEnd()},onDomScrollEnd:function(){var a=this,b=a.getPosition(),c=b.x,d=b.y;a.isScrolling=Ext.isScrolling=!1;a.trackingScrollLeft=c;a.trackingScrollTop=d;a.fireScrollEnd(c,d)},onPartnerScroll:function(d,b,c){var a=d._partners[this.getId()].axis;if(a){if(a==='x'){c=null}else {if(a==='y'){b=null}}}this.doScrollTo(b,c,!1,!0)},restoreState:function(){var a=this,c=a.getElement(),b;if(c){b=c.dom;if(a.trackingScrollTop!==undefined){b.scrollTop=a.trackingScrollTop;b.scrollLeft=a.trackingScrollLeft}}}}},1,0,0,0,['scroller.scroller'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.scroll,'Scroller'],0);Ext.cmd.derive('Ext.fx.easing.Abstract',Ext.Base,{config:{startTime:0,startValue:0},isEasing:!0,isEnded:!1,constructor:function(a){this.initConfig(a);return this},applyStartTime:function(a){if(!a){a=Ext.Date.now()}return a},updateStartTime:function(a){this.reset()},reset:function(){this.isEnded=!1},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,'Abstract'],0);Ext.cmd.derive('Ext.fx.easing.Momentum',Ext.fx.easing.Abstract,{config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(b){var a=Math.log(1-b/10);this.theta=a;this.alpha=a/this.getAcceleration()},updateStartVelocity:function(a){this.velocity=a*this.getAcceleration()},updateAcceleration:function(a){this.velocity=this.getStartVelocity()*a;this.alpha=this.theta/a},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var a=Ext.Date.now()-this.getStartTime();return Math.exp(a*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}},0,0,0,0,0,0,[Ext.fx.easing,'Momentum'],0);Ext.cmd.derive('Ext.fx.easing.Bounce',Ext.fx.easing.Abstract,{config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var b=Ext.Date.now()-this.getStartTime(),a=b/this.getAcceleration(),c=a*Math.pow(Math.E,-this.getSpringTension()*a);return this.getStartValue()+this.getStartVelocity()*c}},0,0,0,0,0,0,[Ext.fx.easing,'Bounce'],0);Ext.cmd.derive('Ext.fx.easing.BoundMomentum',Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(b,a){return Ext.factory(b,Ext.fx.easing.Momentum,a)},applyBounce:function(b,a){return Ext.factory(b,Ext.fx.easing.Bounce,a)},updateStartTime:function(a){this.getMomentum().setStartTime(a);Ext.fx.easing.Abstract.prototype.updateStartTime.apply(this,arguments)},updateStartVelocity:function(a){this.getMomentum().setStartVelocity(a)},updateStartValue:function(a){this.getMomentum().setStartValue(a)},reset:function(){this.lastValue=null;this.isBouncingBack=!1;this.isOutOfBound=!1;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var d=this.getMomentum(),j=this.getBounce(),f=d.getStartVelocity(),b=f>0?1:-1,i=this.getMinMomentumValue(),h=this.getMaxMomentumValue(),g=b==1?h:i,c=this.lastValue,a,e;if(f===0){return this.getStartValue()}if(!this.isOutOfBound){a=d.getValue();e=d.getVelocity();if(Math.abs(e)=i&&a<=h){return a}this.isOutOfBound=!0;j.setStartTime(Ext.Date.now()).setStartVelocity(e).setStartValue(g)}a=j.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(c!==null){if(b==1&&ac){this.isBouncingBack=!0}}}else {if(Math.round(a)==g){this.isEnded=!0}}}this.lastValue=a;return a}},0,0,0,0,0,0,[Ext.fx.easing,'BoundMomentum'],0);Ext.cmd.derive('Ext.fx.easing.Linear',Ext.fx.easing.Abstract,{config:{duration:0,endValue:0},updateStartValue:function(a){this.distance=this.getEndValue()-a},updateEndValue:function(a){this.distance=a-this.getStartValue()},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration();if(a>b){this.isEnded=!0;return this.getEndValue()}else {return this.getStartValue()+a/b*this.distance}}},0,0,0,0,['easing.linear'],0,[Ext.fx.easing,'Linear'],0);Ext.cmd.derive('Ext.fx.easing.EaseOut',Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,i=a/b,h=1-i,g=1-Math.pow(h,this.getExponent()),c=d+g*e;if(a>=b){this.isEnded=!0;return f}return c}},0,0,0,0,['easing.ease-out'],0,[Ext.fx.easing,'EaseOut'],0);Ext.cmd.derive('Ext.util.translatable.Abstract',Ext.Evented,{config:{useWrapper:null,easing:null,easingX:null,easingY:null},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:!1,isTranslatable:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,'easing')},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},doTranslate:Ext.emptyFn,translate:function(a,b,c){if(c){return this.translateAnimated(a,b,c)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a=='number'){this.x=a}if(!isNaN(b)&&typeof b=='number'){this.y=b}this.doTranslate(a,b)},translateAxis:function(e,a,d){var b,c;if(e=='x'){b=a}else {c=a}return this.translate(b,c,d)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(a,b){this.activeEasingX=a;this.activeEasingY=b;this.isAnimating=!0;this.lastX=null;this.lastY=null;Ext.AnimationQueue.start(this.doAnimationFrame,this);this.fireEvent('animationstart',this,this.x,this.y);return this},translateAnimated:function(g,h,a){var b=this;if(!Ext.isObject(a)){a={}}if(b.isAnimating){b.stopAnimation()}b.callback=a.callback;b.callbackScope=a.scope;var f=Ext.Date.now(),e=a.easing,c=typeof g=='number'?a.easingX||e||b.getEasingX()||!0:null,d=typeof h=='number'?a.easingY||e||b.getEasingY()||!0:null;if(c){c=b.factoryEasing(c);c.setStartTime(f);c.setStartValue(b.x);c.setEndValue(g);if('duration' in a){c.setDuration(a.duration)}}if(d){d=b.factoryEasing(d);d.setStartTime(f);d.setStartValue(b.y);d.setEndValue(h);if('duration' in a){d.setDuration(a.duration)}}return b.animate(c,d)},doAnimationFrame:function(){var a=this,d=a.activeEasingX,e=a.activeEasingY,f=Date.now(),b,c;if(!a.isAnimating){return}a.lastRun=f;if(d===null&&e===null){a.stopAnimation();return}if(d!==null){a.x=b=Math.round(d.getValue());if(d.isEnded){a.activeEasingX=null;a.fireEvent('axisanimationend',a,'x',b)}}else {b=a.x}if(e!==null){a.y=c=Math.round(e.getValue());if(e.isEnded){a.activeEasingY=null;a.fireEvent('axisanimationend',a,'y',c)}}else {c=a.y}if(a.lastX!==b||a.lastY!==c){a.doTranslate(b,c);a.lastX=b;a.lastY=c}a.fireEvent('animationframe',a,b,c)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=!1;Ext.AnimationQueue.stop(a.doAnimationFrame,a);a.fireEvent('animationend',a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){if(this.isAnimating){this.stopAnimation()}Ext.Evented.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.translatable,'Abstract'],0);Ext.cmd.derive('Ext.util.translatable.Dom',Ext.util.translatable.Abstract,{config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,'Dom'],0);Ext.cmd.derive('Ext.util.translatable.CssTransform',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement();if(!this.destroyed&&!a.destroyed){a.translate(b,c)}},destroy:function(){var a=this.getElement();if(a&&!a.destroyed){a.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssTransform'],0);Ext.cmd.derive('Ext.util.translatable.ScrollPosition',Ext.util.translatable.Dom,{type:'scrollposition',config:{useWrapper:!0},getWrapper:function(){var a=this.wrapper,c=this.getElement(),b;if(!a){b=c.getParent();if(!b){return null}if(b.hasCls('x-translatable-hboxfix')){b=b.getParent()}if(this.getUseWrapper()){a=c.wrap()}else {a=b}c.addCls('x-translatable');a.addCls('x-translatable-container');this.wrapper=a;a.on('painted',function(){if(!this.isAnimating){this.refresh()}},this);this.refresh()}return a},doTranslate:function(c,d){var b=this.getWrapper(),a;if(b){a=b.dom;if(typeof c=='number'){a.scrollLeft=500000-c}if(typeof d=='number'){a.scrollTop=500000-d}}},destroy:function(){var a=this,c=a.getElement(),b=a.wrapper;if(b){if(!c.destroyed){if(a.getUseWrapper()){b.doReplaceWith(c)}c.removeCls('x-translatable')}if(!b.destroyed){b.removeCls('x-translatable-container');b.un('painted','refresh',a)}delete a.wrapper;delete a._element}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollPosition'],0);Ext.cmd.derive('Ext.util.translatable.ScrollParent',Ext.util.translatable.Dom,{isScrollParent:!0,applyElement:function(b){var a=Ext.get(b);if(a){this.parent=a.parent()}return a},doTranslate:function(b,c){var a=this.parent;a.setScrollLeft(Math.round(-b));a.setScrollTop(Math.round(-c))},getPosition:function(){var c=this,a=c.position,b=c.parent;a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollParent'],0);Ext.cmd.derive('Ext.util.translatable.CssPosition',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement().dom.style;if(typeof b=='number'){a.left=b+'px'}if(typeof c=='number'){a.top=c+'px'}},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssPosition'],0);Ext.cmd.derive('Ext.util.Translatable',Ext.Base,{constructor:function(a){var b=Ext.util.translatable;switch(Ext.browser.getPreferredTranslationMethod(a)){case 'scrollposition':return new b.ScrollPosition(a);case 'scrollparent':return new b.ScrollParent(a);case 'csstransform':return new b.CssTransform(a);case 'cssposition':return new b.CssPosition(a);}}},1,0,0,0,0,0,[Ext.util,'Translatable'],0);Ext.cmd.derive('Ext.scroll.Indicator',Ext.Widget,{config:{axis:null,hideAnimation:!0,hideDelay:0,scroller:null,minLength:24},defaultHideAnimation:{to:{opacity:0},duration:300},names:{x:{side:'l',getSize:'getHeight',setLength:'setWidth',translate:'translateX'},y:{side:'t',getSize:'getWidth',setLength:'setHeight',translate:'translateY'}},oppositeAxis:{x:'y',y:'x'},cls:'x-scroll-indicator',applyHideAnimation:function(a){if(a){a=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,a)}return a},constructor:function(c){var a=this,b;Ext.Widget.prototype.constructor.call(this,c);b=a.getAxis();a.names=a.names[b];a.element.addCls(a.cls+' '+a.cls+'-'+b)},hide:function(){var a=this,b=a.getHideDelay();if(b){a._hideTimer=Ext.defer(a.doHide,b,a)}else {a.doHide()}},setValue:function(c){var a=this,o=a.element,l=a.names,m=a.getAxis(),k=a.getScroller(),f=k.getMaxUserPosition()[m],g=k.getElementSize()[m],b=a.length,j=a.getMinLength(),e=b,i=g-b-a.sizeAdjust,h=Math.round,n=Math.max,d;if(c<0){e=h(n(b+b*c/g,j));d=0}else {if(c>f){e=h(n(b-b*(c-f)/g,j));d=i+b-e}else {d=h(c/f*i)}}a[l.translate](d);o[l.setLength](e)},show:function(){var a=this,b=a.element,c=b.getActiveAnimation();if(c){c.end()}if(!a._inDom){a.getScroller().getElement().appendChild(b);a._inDom=!0;if(!a.size){a.cacheStyles()}}a.refreshLength();clearTimeout(a._hideTimer);b.setStyle('opacity','')},privates:{cacheStyles:function(){var a=this,c=a.element,b=a.names;a.size=c[b.getSize]();a.margin=c.getMargin(b.side)},doHide:function(){var a=this.getHideAnimation(),b=this.element;if(a){b.animate(a)}else {b.setStyle('opacity',0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle('opacity','0')},refreshLength:function(){var a=this,i=a.names,g=a.getAxis(),e=a.getScroller(),h=e.getSize()[g],c=e.getElementSize()[g],j=c/h,b=a.margin*2,d=a.hasOpposite()?b+a.size:b,f=Math.max(Math.round((c-d)*j),a.getMinLength());a.sizeAdjust=d;a.length=f;a.element[i.setLength](f)},translateX:function(a){this.element.translate(a)},translateY:function(a){this.element.translate(0,a)}}},1,['scrollindicator'],['widget','scrollindicator'],{'widget':!0,'scrollindicator':!0},['widget.scrollindicator'],0,[Ext.scroll,'Indicator'],0);Ext.cmd.derive('Ext.scroll.TouchScroller',Ext.scroll.Scroller,{isTouchScroller:!0,config:{autoRefresh:!0,bounceEasing:{duration:400},elementSize:undefined,indicators:!0,fps:'auto',maxAbsoluteVelocity:6,momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,innerElement:null,size:undefined,slotSnapEasing:{duration:150},slotSnapOffset:{x:0,y:0},startMomentumResetTime:300,translatable:{translationMethod:'auto',useWrapper:!1}},cls:'x-scroll-container',scrollerCls:'x-scroll-scroller',dragStartTime:0,dragEndTime:0,isDragging:!1,isAnimating:!1,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:'onTouchStart',touchmove:'onTouchMove',dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd'},refreshCounter:0,constructor:function(c){var a=this,b='onEvent';a.elementListeners={touchstart:b,touchmove:b,dragstart:b,drag:b,dragend:b,scope:a};a.minPosition={x:0,y:0};a.startPosition={x:0,y:0};a.velocity={x:0,y:0};a.isAxisEnabledFlags={x:!1,y:!1};a.flickStartPosition={x:0,y:0};a.flickStartTime={x:0,y:0};a.lastDragPosition={x:0,y:0};a.dragDirection={x:0,y:0};Ext.scroll.Scroller.prototype.constructor.call(this,c);a.refreshAxes();a.scheduleRefresh={idle:a.doRefresh,scope:a,single:!0,destroyable:!0}},applyBounceEasing:function(b){var a=Ext.fx.easing.EaseOut;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyElementSize:function(b){var e=this.getElement(),a,c,d;if(!e){return null}a=e.dom;if(!a){return}if(b==null){c=a.clientWidth;d=a.clientHeight}else {c=b.x;d=b.y}return {x:c,y:d}},applyIndicators:function(b,a){var g=this,c,d,e,f;if(b){if(b===!0){c=d={}}else {e=b.x;f=b.y;if(e||f){c=e==null||e===!0?{}:e;d=e==null||f===!0?{}:f}else {c=d=b}}if(a){if(c){a.x.setConfig(c)}else {a.x.destroy();a.x=null}if(d){a.y.setConfig(d)}else {a.y.destroy();a.y=null}b=a}else {b={x:null,y:null};if(c){b.x=new Ext.scroll.Indicator(Ext.applyIf({axis:'x',scroller:g},c))}if(d){b.y=new Ext.scroll.Indicator(Ext.applyIf({axis:'y',scroller:g},d))}}}else {if(a){if(a.x){a.x.destroy()}if(a.y){a.y.destroy()}a.x=a.y=null}}return b},applyMomentumEasing:function(b){var a=Ext.fx.easing.BoundMomentum;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyInnerElement:function(a){if(a&&!a.isElement){a=Ext.get(a)}return a},applyMaxPosition:function(a,c){if(c&&a.x===c.x&&a.y===c.y){return}var d=this.getTranslatable(),b;if(d.isAnimating){b=d.activeEasingY;if(b&&b.getStartVelocity&&b.getStartVelocity()<0&&a.yi){d=i}}if(l){c=a.convertX(c);d=a.convertX(d)}if(d!==null){f=a.getBounceEasing()[b];f.setConfig({startTime:j,startValue:-c,endValue:-d});return f}if(e===0){return null}if(e<-g){e=-g}else {if(e>g){e=g}}f=a.getMomentumEasing()[b];h={startTime:j,startValue:-c,startVelocity:e*1.5,minMomentumValue:-i,maxMomentumValue:0};if(l){a.convertEasingConfig(h)}f.setConfig(h);return f},getSnapPosition:function(d){var e=this,c=e.getSlotSnapSize()[d],f=null,b,h,g,a;if(c!==0&&e.isAxisEnabled(d)){b=e.position[d];h=e.getSlotSnapOffset()[d];g=e.getMaxUserPosition()[d];a=Math.floor((b-h)%c);if(a!==0){if(b!==g){if(Math.abs(a)>c/2){f=Math.min(g,b+(a>0?c-a:a-c))}else {f=b-a}}else {f=b-a}}}return f},hideIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.hide()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.hide()}}}},isAxisEnabled:function(a){this.getX();this.getY();return this.isAxisEnabledFlags[a]},onAnimationEnd:function(){this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(d,b,c){var a=this.position;a.x=this.convertX(-b);a.y=-c;this.onScroll()},onAxisDrag:function(a,k){if(k&&this.isAxisEnabled(a)){var b=this,o=b.flickStartPosition,g=b.flickStartTime,f=b.lastDragPosition,d=b.dragDirection,r=b.position[a],q=b.getMinUserPosition()[a],e=b.getMaxUserPosition()[a],p=b.startPosition[a],l=f[a],c=p-k,i=d[a],h=b.getOutOfBoundRestrictFactor(),n=b.getStartMomentumResetTime(),m=Ext.Date.now(),j;if(ce){j=c-e;c=e+j*h}}if(c>l){d[a]=1}else {if(cn){o[a]=r;g[a]=m}f[a]=c;return !0}},onDomScroll:function(){var c=this,b,a;if(c.getTranslatable().isScrollParent){b=c.getElement().dom;a=c.position;a.x=b.scrollLeft;a.y=b.scrollTop}Ext.scroll.Scroller.prototype.onDomScroll.call(this)},onDrag:function(c){var a=this,b=a.lastDragPosition;if(!a.isDragging){return}if(a.onAxisDrag('x',a.convertX(c.deltaX))|a.onAxisDrag('y',c.deltaY)){a.doScrollTo(b.x,b.y)}},onDragEnd:function(d){var a=this,b,c;if(!a.isDragging){return}a.dragEndTime=Ext.Date.now();a.onDrag(d);a.isDragging=!1;b=a.getAnimationEasing('x',d);c=a.getAnimationEasing('y',d);if(b||c){a.getTranslatable().animate(b,c)}else {a.onScrollEnd()}},onDragStart:function(d){var a=this,b=a.getDirection(),m=d.absDeltaX,n=d.absDeltaY,o=a.getDirectionLock(),l=a.startPosition,g=a.flickStartPosition,j=a.flickStartTime,h=a.lastDragPosition,i=a.position,k=a.dragDirection,e=i.x,f=i.y,c=Ext.Date.now();if(o&&b!=='both'){if(b==='horizontal'&&m>n||b==='vertical'&&n>m){d.stopPropagation()}else {return}}h.x=e;h.y=f;g.x=e;g.y=f;l.x=e;l.y=f;j.x=c;j.y=c;k.x=0;k.y=0;a.dragStartTime=c;a.isDragging=!0;if(!a.isScrolling){a.onScrollStart()}},onElementResize:function(b,a){this.refresh(!0,{elementSize:{x:a.contentWidth,y:a.contentHeight},size:this.getAutoRefresh()?null:this.getSize()})},onElementScroll:function(b,a){a.scrollTop=a.scrollLeft=0},onEvent:function(b){var a=this,c=b.browserEvent;if((!a.self.isTouching||a.isTouching)&&(!a.getTranslatable().isScrollParent||!a.isMouseEvent[c.type]&&c.pointerType!=='mouse')&&(a.getY()||a.getX())){a[a.listenerMap[b.type]](b)}},onInnerElementResize:function(b,a){this.refresh(!0,{size:{x:a.width,y:a.height}})},onMouseWheel:function(j){var a=this,g=j.getWheelDeltas(),c=-g.x,d=-g.y,b=a.position,e=a.getMaxUserPosition(),f=a.getMinUserPosition(),h=Math.max,i=Math.min,k=h(i(b.x+c,e.x),f.x),l=h(i(b.y+d,e.y),f.y);c=k-b.x;d=l-b.y;if(!c&&!d){return}j.stopEvent();a.onScrollStart();a.scrollBy(c,d);a.onScroll();a.onScrollEnd()},onPartnerScrollEnd:function(b,c){var a=this;if(!a.getTranslatable().isScrollParent){a.fireScrollEnd(b,c)}Ext.scroll.Scroller.prototype.onPartnerScrollEnd.call(this,b,c);a.isScrolling=!1;a.hideIndicators()},onPartnerScrollStart:function(b,c){var a=this;a.isScrolling=!0;if(!a.getTranslatable().isScrollParent){a.fireScrollStart(b,c)}a.showIndicators()},onScroll:function(){var a=this,e=a.position,f=e.x,g=e.y,b=a.getIndicators(),c,d;if(b){if(a.isAxisEnabled('x')){c=b.x;if(c){c.setValue(f)}}if(a.isAxisEnabled('y')){d=b.y;if(d){d.setValue(g)}}}a.fireScroll(f,g)},onScrollEnd:function(){var a=this,b=a.position;if(a.isScrolling&&!a.isTouching&&!a.snapToSlot()){a.hideIndicators();a.isScrolling=Ext.isScrolling=!1;a.fireScrollEnd(b.x,b.y)}},onScrollStart:function(){var a=this,b=a.position;if(!a.isScrolling){a.showIndicators();a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(b.x,b.y)}},onTouchEnd:function(){var a=this;a.isTouching=a.self.isTouching=!1;if(!a.isDragging&&a.snapToSlot()){a.onScrollStart()}},onTouchMove:function(a){a.preventDefault()},onTouchStart:function(){var a=this;a.isTouching=a.self.isTouching=!0;Ext.getDoc().on({touchend:'onTouchEnd',scope:a,single:!0});a.stopAnimation()},refreshAxes:function(){var a=this,b=a.isAxisEnabledFlags,k=a.getSize(),h=a.getElementSize(),e=a.getIndicators(),f,g,c,d,i,j;if(!k||!h){return}f=Math.max(0,k.x-h.x);g=Math.max(0,k.y-h.y);c=a.getX();d=a.getY();a.setMaxPosition({x:f,y:g});if(c===!0||c==='auto'){b.x=!!f}else {if(c===!1){b.x=!1;i=e&&e.x;if(i){i.hide()}}else {if(c==='scroll'){b.x=!0}}}if(d===!0||d==='auto'){b.y=!!g}else {if(d===!1){b.y=!1;j=e&&e.y;if(j){j.hide()}}else {if(d==='scroll'){b.y=!0}}}a.setMaxUserPosition({x:b.x?f:0,y:b.y?g:0});if(Ext.supports.touchScroll===1){a.initXStyle();a.initYStyle()}},showIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.show()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.show()}}}},snapToBoundary:function(){var a=this,d=a.getPosition();if(a.isConfiguring||!(d.x||d.y)){return}var f=a.getMinUserPosition(),e=a.getMaxUserPosition(),i=f.x,j=f.y,g=e.x,h=e.y,b=Math.round(d.x),c=Math.round(d.y);if(bg){b=g}}if(ch){c=h}}a.doScrollTo(b,c)},snapToSlot:function(){var a=this,c=a.getSnapPosition('x'),d=a.getSnapPosition('y'),b=a.getSlotSnapEasing();if(c!==null||d!==null){a.doScrollTo(c,d,{easingX:b.x,easingY:b.y});return !0}return !1},stopAnimation:function(){this.getTranslatable().stopAnimation()},toggleResizeListeners:function(e){var c=this,f=c.getElement(),b,a,d;if(f){d=c.getInnerElement();if(e){b=a='on'}else {if(e===null){b='on';a='un'}else {b=a='un'}}f[b]('resize','onElementResize',c);d[a]('resize','onInnerElementResize',c)}},unwrapContent:function(){var a=this.getInnerElement().dom,c=this.getElement().dom,b;while(b=a.firstChild){c.insertBefore(b,a)}},wrapContent:function(d){var a=document.createElement('div'),c=d.dom,b;while(b=c.lastChild){a.insertBefore(b,a.firstChild)}c.appendChild(a);this.setInnerElement(a);this._isWrapped=!0;return this.getInnerElement()}}},1,0,0,0,['scroller.touch'],0,[Ext.scroll,'TouchScroller'],0);Ext.cmd.derive('Ext.scroll.DomScroller',Ext.scroll.Scroller,{isDomScroller:!0,getMaxPosition:function(){var b=this.getElement(),c=0,d=0,a;if(b&&!b.destroyed){a=b.dom;c=a.scrollWidth-a.clientWidth;d=a.scrollHeight-a.clientHeight}return {x:c,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),d=0,e=0,a;if(b&&!b.destroyed){a=b.dom;if(c.getX()){d=a.scrollWidth-a.clientWidth}if(c.getY()){e=a.scrollHeight-a.clientHeight}}return {x:d,y:e}},getPosition:function(){var a=this;if(a.positionDirty){a.updateDomScrollPosition()}return a.position},getSize:function(){var a=this.getElement(),b,c;if(a&&!a.destroyed){c=a.dom;b={x:c.scrollWidth,y:c.scrollHeight}}else {b={x:0,y:0}}return b},updateElement:function(b,a){this.initXStyle();this.initYStyle()},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},privates:{doScrollTo:function(a,b,j){var e=this,d=e.getElement(),f,c,i,g,h,k;if(d&&!d.destroyed){c=d.dom;g=a===Infinity;h=b===Infinity;if(g||h){f=e.getMaxPosition();if(g){a=f.x}if(h){b=f.y}}a=e.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}d.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(b!=null){c.scrollTop=b}if(a!=null){c.scrollLeft=a;if(Ext.isIE8){k=c.scrollLeft;c.scrollLeft=a}}}e.positionDirty=!0}},getElementScroll:function(a){return a.getScroll()},stopAnimation:function(){var a=this.getElement().getActiveAnimation();if(a){a.end()}}}},0,0,0,0,['scroller.dom'],0,[Ext.scroll,'DomScroller'],function(a){Ext.onDocumentReady(function(){a.document=new a({x:!0,y:!0,element:document.body})})});Ext.cmd.derive('Ext.util.Floating',Ext.Base,{mixinId:'floating',focusOnToFront:!0,shadow:'sides',animateShadow:!1,constrain:!1,config:{activeCounter:0,alwaysOnTop:!1},preventDefaultAlign:!1,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var a=this,e=a.el,d=a.shadow,c,b;if(d){b={mode:d===!0?'sides':d};c=a.shadowOffset;if(c){b.offset=c}b.animate=a.animateShadow;b.fixed=a.fixed;e.enableShadow(b,!1)}if(a.shim||Ext.useShims){e.enableShim({fixed:a.fixed},!1)}e.setVisibilityMode(a._visModeMap[a.hideMode]);a.el.on({mousedown:a.onMouseDown,scope:a,capture:!0});a.registerWithOwnerCt();a.initHierarchyEvents()},alignTo:function(b,d,f,e){var a=this,c;Ext.un('scroll',a.onAlignToScroll,a);if(b.isComponent){c=b.el}else {if(b.nodeType){c=Ext.fly(b)}else {c=b}}if(!c.contains(a.el)){Ext.on('scroll',a.onAlignToScroll,a)}a._lastAlignTarget=b;a._lastAlignToPos=d;a.mixins.positionable.alignTo.call(a,c,d,f,e)},initFloatConstrain:function(){var a=this,b=a.floatParent;if((a.constrain||a.constrainHeader)&&!a.constrainTo){a.constrainTo=b?b.getTargetEl():a.container}},initHierarchyEvents:function(){var b=this,a=this.syncHidden;if(!b.hasHierarchyEventListeners){b.mon(Ext.GlobalEvents,{hide:a,collapse:a,show:a,expand:a,added:a,scope:b});b.hasHierarchyEventListeners=!0}},registerWithOwnerCt:function(){var a=this,c=a.ownerCt,b=a.zIndexParent;if(b){b.unregisterFloatingItem(a)}b=a.zIndexParent=a.up('[floating]');a.floatParent=c||b;a.initFloatConstrain();delete a.ownerCt;if(b){b.registerFloatingItem(a)}else {Ext.WindowManager.register(a)}},onMouseDown:function(g){var b=this,f=b.focusTask,c=g.pointerType==='touch',a,d,e;if(b.floating&&(!f||!f.id)){a=g.target;d=b.el.dom;while(!c&&a&&a!==d){if(Ext.fly(a).isFocusable()){c=!0}a=a.parentNode}e=Ext.WindowManager.getActive()===b&&(a===d||c);if(!e){b.toFront(c)}}},onBeforeFloatLayout:function(){this.el.preventSync=!0},onAfterFloatLayout:function(){var a=this.el;if(a.shadow||a.shim){a.setUnderlaysVisible(!0);a.syncUnderlays()}},syncHidden:function(){var a=this,d=a.hidden||!a.rendered,c=a.hierarchicallyHidden=a.isHierarchicallyHidden(),b=a.pendingShow;if(d!==c){if(c){a.hide();a.pendingShow=!0}else {if(b){delete a.pendingShow;if(b.length){a.show.apply(a,b)}else {a.show()}}}}},setZIndex:function(a){var b=this;b.el.setZIndex(a);a+=10;if(b.floatingDescendants){a=Math.floor(b.floatingDescendants.setBase(a)/100)*100+10000}return a},doConstrain:function(c){var a=this,b=a.calculateConstrainedPosition(c,null,!0);if(b){a.setPosition(b)}},updateActiveCounter:function(b){var a=this.zIndexParent;if(a&&this.bringParentToFront!==!1){a.setActiveCounter(++Ext.ZIndexManager.activeCounter)}a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},updateAlwaysOnTop:function(b){var a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},toFront:function(b){var a=this;if(a.zIndexManager.bringToFront(a,b||!a.focusOnToFront)){if(a.hasListeners.tofront){a.fireEvent('tofront',a,a.el.getZIndex())}}return a},setActive:function(d,c){var a=this,b;if(d){if(a.el.shadow&&!a.maximized){a.el.enableShadow(null,!0)}if(c){b=Ext.ComponentManager.getActiveComponent();if(!b||!b.up(a)){a.focus()}}a.fireEvent('activate',a)}else {a.fireEvent('deactivate',a)}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var a=this,b;if(a.isVisible()){b=a.getAlignToXY(a.container,'c-c');a.setPagePosition(b)}else {a.needsCenter=!0}return a},onFloatShow:function(){if(this.needsCenter){this.center()}delete this.needsCenter;if(this.toFrontOnShow){this.toFront()}},fitContainer:function(f){var d=this,c=d.floatParent,a=c?c.getTargetEl():d.container,b=a.getViewSize(),e=c||a.dom!==document.body?[0,0]:a.getXY();b.x=e[0];b.y=e[1];d.setBox(b,f)},privates:{onFloatDestroy:function(){this.clearAlignEl()},clearAlignEl:function(){var a=this;if(a._lastAlignTarget){Ext.un('scroll',a.onAlignToScroll,a);a._lastAlignPos=a._lastAlignTarget=null}},onAlignToScroll:function(e){var b=this,a=b._lastAlignTarget,f=a.isFloating,c,d;if(a){if(a.isComponent){c=a.destroyed;a=a.el}else {if(a.nodeType){a=Ext.fly(a)}d=a.dom;c=!d||Ext.isGarbage(d)}if(c){b.clearAlignEl()}else {if((e.getElement().contains(a)||f)&&!e.getElement().contains(b.el)){b.alignTo(a,b._lastAlignToPos)}}}}}},1,0,0,0,0,0,[Ext.util,'Floating'],0);Ext.cmd.derive('Ext.util.ElementContainer',Ext.Base,{mixinId:'elementCt',config:{childEls:{$value:{},cached:!0,lazy:!0,merge:function(d,f,g,e){var c=f?Ext.Object.chain(f):{},b,a;if(d instanceof Array){for(b=d.length;b--;){a=d[b];if(!e||!(a in c)){if(typeof a==='string'){c[a]={name:a,itemId:a}}else {c[a.name]=a}}}}else {if(d){if(d.constructor===Object){for(b in d){if(!e||!(b in c)){a=d[b];if(a===!0){c[b]={itemId:b}}else {if(typeof a==='string'){c[b]={itemId:a}}else {c[b]=a;if(!('itemId' in a)){a.itemId=b}}}c[b].name=b}}}else {if(!e||!(d in c)){c[d]={name:d,itemId:d}}}}}return c}}},destroy:function(){var c=this,d=c.getChildEls(),a,b;for(b in d){a=c[b];if(a){if(a.destroy){a.component=null;a.destroy()}c[b]=null}}},privates:{addChildEl:function(a){var c=this,b=c.getChildEls();if(!c.hasOwnProperty('childEls')){c.childEls=b=Ext.Object.chain(b)}if(typeof a==='string'){a={name:a,itemId:a}}b[a.name]=a},afterClassMixedIn:function(a){var c=a.prototype,b=c.childEls;if(b){delete c.childEls;a.getConfigurator().add({childEls:b})}},attachChildEls:function(h,n){var i=this,k=i.getChildEls(),e=n||i,m=e.id+'-',l=!e.frame,f,g,b,j,c,a,d;for(f in k){b=k[f];if(l&&b.frame){continue}c=b.select;if(c){a=h.select(c,!0)}else {if(!(c=b.selectNode)){if(!(d=b.id)){d=m+b.itemId;a=Ext.cache[d]}else {a=Ext.cache[d]||h.getById(d)}}else {a=h.selectNode(c,!1)}}if(a){if(a.isElement){a.component=e}else {if(a.isComposite&&!a.isLite){g=a.elements;for(j=g.length;j--;){g[j].component=e}}}}i[f]=a||null}}}},0,0,0,0,0,0,[Ext.util,'ElementContainer'],0);Ext.cmd.derive('Ext.util.Renderable',Ext.Base,{mixinId:'renderable',frameCls:'x-frame',frameIdRegex:/[\-]frame\d+[TMB][LCR]$/,frameElNames:['TL','TC','TR','ML','MC','MR','BL','BC','BR','Table'],frameTpl:['{%this.renderDockedItems(out,values,0);%}','','
{parent.baseCls}-{parent.ui}-{.}-tl{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-tr{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-tc{frameElCls}" role="presentation">
','
','
','
','
{parent.baseCls}-{parent.ui}-{.}-ml{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-mr{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-mc{frameElCls}" role="presentation">','{%this.applyRenderTpl(out, values)%}','
','
','
','','
{parent.baseCls}-{parent.ui}-{.}-bl{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-br{frameElCls}" role="presentation">','
{parent.baseCls}-{parent.ui}-{.}-bc{frameElCls}" role="presentation">
','
','
','
','{%this.renderDockedItems(out,values,1);%}'],frameTableTpl:['{%this.renderDockedItems(out,values,0);%}','','','','','','','','','','','','','','','','','','','','','','{%this.renderDockedItems(out,values,1);%}'],_renderState:0,ariaEl:'el',_layerCls:'x-layer',_fixedLayerCls:'x-fixed-layer',ariaStaticRoles:{presentation:!0,article:!0,definition:!0,directory:!0,document:!0,img:!0,heading:!0,math:!0,note:!0,banner:!0,complementary:!0,contentinfo:!0,navigation:!0,search:!0,'undefined':!0,'null':!0},statics:{makeRenderSetter:function(c,b){var a=c.name;return function(g){var d=this,f=d.renderConfigs||(d.renderConfigs={}),e=f[b];if(d._renderState>=b){(c.setter||c.getSetter()).call(d,g)}else {if(!e){f[b]=e={}}if(!(a in e)){e[a]=d[a]}d[a]=g}return d}},processRenderConfig:function(g,e,c){var h=this.prototype,j=this.getConfigurator(),k=Ext.util.Renderable,l=k.makeRenderSetter,d=g[e],b,a,i,f;for(i in d){a=Ext.Config.get(i);if(!h[f=a.names.set]){b=a.renderSetter||(a.renderSetter={});h[f]=b[c]||(b[c]=l(a,c))}}delete g[e];j.add(d)}},onClassMixedIn:function(a){var e=a.override,c=this.processRenderConfig,d=function(a){if(a.beforeRenderConfig){this.processRenderConfig(a,'beforeRenderConfig',1)}if(a.renderConfig){this.processRenderConfig(a,'renderConfig',3)}e.call(this,a)},b=function(b,a){b.override=d;b.processRenderConfig=c;if(a.beforeRenderConfig){b.processRenderConfig(a,'beforeRenderConfig',1)}if(a.renderConfig){b.processRenderConfig(a,'renderConfig',3)}};b(a,a.prototype);a.onExtended(b)},afterRender:function(){var a=this,c={},i=a.protoEl,g=a.el,d,b,h,f,e;a.finishRenderChildren();a._renderState=4;if(a.contentEl){h='x-';f=h+'hidden-';e=a.contentEl=Ext.get(a.contentEl);e.component=a;e.removeCls([h+'hidden',f+'display',f+'offsets']);a.getContentTarget().appendChild(e.dom)}i.writeTo(c);b=c.removed;if(b){g.removeCls(b)}b=c.cls;if(b.length){g.addCls(b)}b=c.style;if(c.style){g.setStyle(b)}a.protoEl=null;if(!a.ownerCt&&!a.skipLayout){a.updateLayout()}if(!(a.x&&a.y)&&(a.pageX||a.pageY)){a.setPagePosition(a.pageX,a.pageY)}if(a.disableOnRender){a.onDisable()}d=a.controller;if(d&&d.afterRender){d.afterRender(a)}},afterFirstLayout:function(l,k){var a=this,g=a.x,h=a.y,j=a.defaultAlign,i=a.alignOffset,f,d,e,b,c;if(!a.ownerLayout){d=g!==undefined;e=h!==undefined}if(a.floating&&!a.preventDefaultAlign&&(!d||!e)){if(a.floatParent){b=a.floatParent.getTargetEl().getViewRegion();c=a.el.getAlignToXY(a.alignTarget||a.floatParent.getTargetEl(),j,i);b.x=c[0]-b.x;b.y=c[1]-b.y}else {c=a.el.getAlignToXY(a.alignTarget||a.container,j,i);b=a.el.translateXY(c[0],c[1])}g=d?g:b.x;h=e?h:b.y;d=e=!0}if(d||e){a.setPosition(g,h)}a.onBoxReady(l,k);f=a.controller;if(f&&f.boxReady){f.boxReady(a)}},beforeRender:function(){var a=this,d=a.floating,e=a.getComponentLayout(),b=a.userCls,c;a._renderState=1;a.ariaUsesMainElement=a.ariaEl==='el';c=a.controller;if(c&&c.beforeRender){c.beforeRender(a)}a.initBindable();if(a.renderConfigs){a.flushRenderConfigs()}if(a.reference){a.publishState()}if(b){a.addCls(b)}if(d){a.addCls(a.fixed?a._fixedLayerCls:a._layerCls);b=d.cls;if(b){a.addCls(b)}}a.frame=a.frame||a.alwaysFramed;if(!e.initialized){e.initLayout()}a.initOverflow();a.setUI(a.ui)},doApplyRenderTpl:function(d,a){var c=a.$comp,b;if(!c.rendered){b=c.initRenderTpl();b.applyOut(a.renderData,d)}},getElConfig:function(){var a=this,e=a.autoEl,c=a.getFrameInfo(),b={tag:'div',tpl:c?a.initFramingTpl(c.table):a.initRenderTpl()},g=a.layoutTargetCls,d=a.protoEl,f=a.ariaRole,h;a.initStyles(d);if(g&&!c){d.addCls(g)}d.writeTo(b);d.flush();if(e){if(Ext.isString(e)){b.tag=e}else {Ext.apply(b,e)}}if(f&&a.ariaUsesMainElement){b.role=f;if(!a.ariaStaticRoles[f]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}}b.id=a.id;if(b.tpl){if(c){b.tplData=h=a.getFrameRenderData();h.renderData=a.initRenderData()}else {b.tplData=a.initRenderData()}}a.ariaRenderAttributes=null;return b},getInsertPosition:function(a){if(a!==undefined){if(Ext.isNumber(a)){a=this.container.dom.childNodes[a]}else {a=Ext.getDom(a)}}return a},getRenderTree:function(){var a=this,b=null;if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a._renderState=1;a.beforeRender();a.rendering=!0;a._renderState=2;b=a.getElConfig();if(a.el){b.id=a.$pid=Ext.id(null,a.el.identifiablePrefix)}}return b},initRenderData:function(){var a=this,c=a.ariaRole,d,b;d=Ext.apply({$comp:a,id:a.id,ui:a.ui,uiCls:a.uiCls,baseCls:a.baseCls,componentCls:a.componentCls,frame:a.frame,renderScroller:a.touchScroll,scrollerCls:a.scrollerCls,childElCls:''},a.renderData);if(c&&!a.ariaUsesMainElement){b={role:c};if(!a.ariaStaticRoles[c]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}d.ariaAttributes=b}return d},onRender:function(i,h){var a=this,e=a.x,f=a.y,b=null,g=a.el,d,c;a.applyRenderSelectors();a.rendering=null;a.rendered=!0;a._renderState=3;if(a.renderConfigs){a.flushRenderConfigs()}if(e!=null){b={x:e}}if(f!=null){(b=b||{}).y=f}if(!a.getFrameInfo()){d=a.width;c=a.height;if(typeof d==='number'){b=b||{};b.width=d}if(typeof c==='number'){b=b||{};b.height=c}}if(a.touchScroll===1){a.getOverflowEl().disableTouchScroll()}a.lastBox=g.lastBox=b},render:function(c,g){var a=this,b=a.el,f=a.ownerLayout,h,d,e;if(b&&!b.isElement){a.wrapPrimaryEl(b);b=a.el}if(!a.skipLayout){Ext.suspendLayouts()}c=a.initContainer(c);e=a.getInsertPosition(g);if(!b){d=a.getRenderTree();if(f&&f.transformItemRenderTree){d=f.transformItemRenderTree(d)}if(d){if(e){b=Ext.DomHelper.insertBefore(e,d)}else {b=Ext.DomHelper.append(c,d)}a.wrapPrimaryEl(b);a.cacheRefEls(b)}}else {if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a.beforeRender();a.needsRenderTpl=a.rendering=!0;a._renderState=2;a.initStyles(b);if(a.allowDomMove!==!1){if(e){c.dom.insertBefore(b.dom,e)}else {c.dom.appendChild(b.dom)}}}else {h=!0}}if(b&&!h){a.finishRender(g)}if(!a.skipLayout){Ext.resumeLayouts(!a.hidden&&!c.isDetachedBody)}},ensureAttachedToBody:function(c){var a=this,b;while(a.ownerCt){a=a.ownerCt}if(a.container.isDetachedBody){a.container=b=Ext.getBody();b.appendChild(a.el.dom);if(c){a.updateLayout()}if(typeof a.x==='number'||typeof a.y==='number'){a.setPosition(a.x,a.y)}}},privates:{applyRenderSelectors:function(){var a=this,b=a.renderSelectors,e=a.el,d,c;a.attachChildEls(e);a.ariaEl=a[a.ariaEl]||a.el;if(b){for(c in b){d=b[c];if(d){a[c]=e.selectNode(d,!1)}}}},cacheRefEls:function(a){a=a||this.el;var e=Ext.cache,h=Ext.dom.Element,f=a.isElement?a.dom:a,d=f.querySelectorAll('[data-ref]'),g=d.length,c,b;for(b=0;b','
','','{%this.renderContent(out,values)%}','
'],resizeHandles:'all',shrinkWrap:2,toFrontOnShow:!0,synthetic:!1,tplWriteMode:'overwrite',ui:'default',uiCls:[],userCls:null,weight:null,allowDomMove:!0,autoGenId:!1,borderBoxCls:'x-border-box',componentLayoutCounter:0,contentPaddingProperty:'padding',deferLayouts:!1,frameSize:null,horizontalPosProp:'left',isComponent:!0,_isLayoutRoot:!1,layoutSuspendCount:0,liquidLayout:!1,maskOnDisable:!0,offsetsCls:'x-hidden-offsets',rendered:!1,rootCls:'x-body',scrollerCls:'x-scroll-scroller',scrollerSelector:'.x-scroll-scroller',_scrollFlags:{auto:{auto:{overflowX:'auto',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'auto',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'auto',overflowY:'scroll',x:!0,y:!0,both:!0}},'false':{auto:{overflowX:'hidden',overflowY:'auto',x:!1,y:!0,both:!1},'false':{overflowX:'hidden',overflowY:'hidden',x:!1,y:!1,both:!1},scroll:{overflowX:'hidden',overflowY:'scroll',x:!1,y:!0,both:!1}},scroll:{auto:{overflowX:'scroll',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'scroll',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'scroll',overflowY:'scroll',x:!0,y:!0,both:!0}},none:{overflowX:'',overflowY:'',x:!1,y:!1,both:!1}},_scrollableCfg:{x:{x:!0,y:!1},y:{x:!1,y:!0},horizontal:{x:!0,y:!1},vertical:{x:!1,y:!0},both:{x:!0,y:!0},'true':{x:!0,y:!0}},validIdRe:Ext.validIdRe,constructor:function(b){var a=this,e,j,i,h,g,c,d,f;b=b||{};if(b.initialConfig){if(b.isAction){a.baseAction=b}b=b.initialConfig}else {if(b.tagName||b.dom||Ext.isString(b)){b={applyTo:b,id:b.id||b}}}a.initialConfig=b;a.getId();a.protoEl=new Ext.util.ProtoElement();a.initConfig(b);if(a.scrollable==null){g=a.autoScroll;if(g){f=!!g}else {c=a.overflowX;d=a.overflowY;if(c||d){f={x:c&&c!=='hidden'?c:!1,y:d&&d!=='hidden'?d:!1}}}if(f){a.setScrollable(f)}}i=a.xhooks;if(i){delete a.xhooks;Ext.override(a,i)}a.mixins.elementCt.constructor.call(a);a.setupProtoEl();if(a.cls){a.initialCls=a.cls;a.protoEl.addCls(a.cls)}if(a.style){a.initialStyle=a.style;a.protoEl.setStyle(a.style)}a.renderData=a.renderData||{};a.initComponent();if(!a.preventRegister){Ext.ComponentManager.register(a)}a.mixins.state.constructor.call(a);a.addStateEvents('resize');h=a.getController();if(h){h.init(a)}if(a.plugins){for(e=0,j=a.plugins.length;eh){o=j;f=!0}if(e&&k>i){p=k;f=!0}if(d||e){g=a.el.getStyle('overflow');if(g!=='hidden'){a.el.setStyle('overflow','hidden')}}if(f){r=!Ext.isNumber(a.width);q=!Ext.isNumber(a.height);a.setSize(p,o);a.el.setSize(i,h);if(r){delete a.width}if(q){delete a.height}}if(e){c.width=k}if(d){c.height=j}}n=a.constrain;l=a.constrainHeader;if(n||l){a.constrain=a.constrainHeader=!1;m=b.callback;b.callback=function(){a.constrain=n;a.constrainHeader=l;if(m){m.call(b.scope||a,arguments)}if(g!=='hidden'){a.el.setStyle('overflow',g)}}}return a.mixins.animate.animate.apply(a,arguments)},applyScrollable:function(a,c){var b=this,f=b.rendered,e,d;if(a){if(a===!0||typeof a==='string'){e=b._scrollableCfg[a];a=e}if(c){c.setConfig(a);a=c}else {a=Ext.Object.chain(a);if(f){a.element=b.getOverflowEl();d=b.getScrollerEl();if(d){a.innerElement=d}}a.autoRefresh=!1;if(Ext.supports.touchScroll===1){a.translatable={translationMethod:'scrollparent'};a.indicators=!1}a=Ext.scroll.Scroller.create(a);a.component=b}}else {if(c){c.setConfig({x:!1,y:!1});c.destroy();a=null}}if(b.rendered&&!b.destroying&&!b.destroyed){if(a){b.getOverflowStyle()}else {b.scrollFlags=b._scrollFlags.none}b.updateLayout()}return a},beforeComponentLayout:function(){return !0},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(a,b,f){var d=this,c=null,e,g,h,i;if(a){if(Ext.isNumber(e=a[0])){f=b;b=a[1];a=e}else {if((e=a.x)!==undefined){f=b;b=a.y;a=e}}}if(d.constrain||d.constrainHeader){c=d.calculateConstrainedPosition(null,[a,b],!0);if(c){a=c[0];b=c[1]}}g=a!==undefined;h=b!==undefined;if(g||h){d.x=a;d.y=b;i=d.adjustPosition(a,b);c={x:i.x,y:i.y,anim:f,hasX:g,hasY:h}}return c},beforeShow:Ext.emptyFn,bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.getBubbleTarget()}return this},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},cloneConfig:function(a){a=a||{};var d=a.id||Ext.id(),c=Ext.applyIf(a,this.initialConfig),b;c.id=d;b=Ext.getClass(this);return new b(c)},destroy:function(){var a=this,d=a.renderSelectors,f=a.getConfig('viewModel',!0),g=a.getConfig('session',!0),b,c,e;if(!a.hasListeners.beforedestroy||a.fireEvent('beforedestroy',a)!==!1){a.isDestroying=a.destroying=!0;c=a.floatParent||a.ownerCt;if(a.floating){delete a.floatParent;if(a.zIndexManager){a.zIndexManager.unregister(a);a.zIndexManager=null}}a.removeBindings();a.beforeDestroy();a.destroyBindable();if(c&&c.remove){c.remove(a,!1)}a.stopAnimation();a.onDestroy();Ext.destroy(a.plugins);if(a.rendered){Ext.Component.cancelLayout(a,!0)}a.componentLayout=null;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}if(!a.preventRegister){Ext.ComponentManager.unregister(a)}a.mixins.state.destroy.call(a);if(a.floating){a.onFloatDestroy()}a.clearListeners();if(a.rendered){if(!a.preserveElOnDestroy){a.el.destroy()}a.el.component=null;a.mixins.elementCt.destroy.call(a);if(d){for(b in d){if(d.hasOwnProperty(b)){e=a[b];if(e){delete a[b];e.destroy()}}}}a.data=a.el=a.frameBody=a.rendered=a.afterRenderEvents=null;a.tpl=a.renderTpl=a.renderData=null;a.focusableContainer=a.container=a.scrollable=null}a.isDestroying=a.destroying=!1;a.callParent()}},disable:function(e,d){var a=this,b=a.focusableContainer,c=a.getInherited();if(!d){c.disabled=!0;a.savedDisabled=!0}if(a.maskOnDisable){c.disableMask=!0}if(!a.disabled){if(b){b.beforeFocusableChildDisable(a)}a.addCls(a.disabledCls);if(a.rendered){a.onDisable()}else {a.disableOnRender=!0}a.disabled=!0;if(e!==!0){a.fireEvent('disable',a)}if(b){b.onFocusableChildDisable(a)}}return a},doFireEvent:function(c,d,e){var a=this,b=a.mixins.observable.doFireEvent.call(a,c,d,e);if(b!==!1){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,d)}return b},enable:function(e,c){var a=this,b=a.focusableContainer,d=a.getInherited();if(!c){delete a.getInherited().disabled;a.savedDisabled=!1}if(a.maskOnDisable){delete d.disableMask}if(a.disabled){if(!(c&&d.hasOwnProperty('disabled'))){if(b){b.beforeFocusableChildEnable(a)}a.disableOnRender=!1;a.removeCls(a.disabledCls);if(a.rendered){a.onEnable()}a.disabled=!1;if(e!==!0){a.fireEvent('enable',a)}if(b){b.onFocusableChildEnable(a)}}}return a},findParentBy:function(b){var a;for(a=this.getRefOwner();a&&!b(a,this);a=a.getRefOwner()){}return a||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.constructor===a}):this.up(a)},findPlugin:function(c){var a,b=this.plugins,d=b&&b.length;for(a=0;a-1;e--){b=g[e];if(b.query){a=b.query(c);a=a[a.length-1];if(a){return a}}if(b.is(c)){return b}}return f.previousNode(c,!0)}return null},previousSibling:function(c){var e=this.ownerCt,b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.getAt(--a)}}}}return null},registerFloatingItem:function(b){var a=this;if(!a.floatingDescendants){a.floatingDescendants=new Ext.ZIndexManager(a)}a.floatingDescendants.register(b)},removeCls:function(c){var a=this,b=a.rendered?a.el:a.protoEl;b.removeCls.apply(b,arguments);return a},removeClsWithUI:function(a,k){var b=this,d=[],e=0,g=Ext.Array,i=g.remove,j=b.uiCls=g.clone(b.uiCls),f=b.activeUI,h,c;if(typeof a==='string'){a=a.indexOf(' ')<0?[a]:Ext.String.splitWords(a)}h=a.length;for(e=0;e1){arguments[0]=null;a.pendingShow=arguments}else {a.pendingShow=!0}}else {if(b&&a.isVisible()){if(a.floating){a.onFloatShow()}}else {if(a.fireEvent('beforeshow',a)!==!1){a.hidden=!1;delete this.getInherited().hidden;Ext.suspendLayouts();if(!b&&(a.autoRender||a.floating)){a.doAutoRender();b=a.rendered}if(b){a.beforeShow();Ext.resumeLayouts();a.onShow.apply(a,arguments);a.afterShow.apply(a,arguments)}else {Ext.resumeLayouts(!0)}}else {a.onShowVeto()}}}return a},showAt:function(b,c,d){var a=this;if(!a.rendered&&(a.autoRender||a.floating)){a.x=b;a.y=c;return a.show()}if(a.floating){a.setPosition(b,c,d)}else {a.setPagePosition(b,c,d)}return a.show()},showBy:function(b,d,c){var a=this;if(a.floating&&b){a.alignTarget=b;if(d){a.defaultAlign=d}if(c){a.alignOffset=c}a.show();if(!a.hidden){a.alignTo(b,d||a.defaultAlign,c||a.alignOffset)}}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=!0}},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(!1)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){d++;if(c.isComponent){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},update:function(b,i,k,j){var a=this,h=a.tpl&&!Ext.isString(b),g=a.getScrollable(),f=a.focusableContainer,e,c,d;if(h){a.data=b&&b.isEntity?b.getData(!0):b}else {a.html=Ext.isObject(b)?Ext.DomHelper.markup(b):b}if(a.rendered){e=a.getSizeModel();c=e.width.shrinkWrap||e.height.shrinkWrap;if(a.isContainer){d=a.layout.getRenderTarget();c=c||a.items.items.length>0}else {d=a.touchScroll?a.getScrollerEl():a.getTargetEl()}if(h){a.tpl[a.tplWriteMode](d,a.data||{})}else {d.setHtml(a.html,i,k,j||a)}if(c){a.updateLayout()}if(g){g.refresh(!0)}if(f){f.onFocusableChildUpdate(a)}}},setHtml:function(c,a,b){this.update(c,a,null,b)},applyData:function(a){this.update(a)},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},_asLayoutRoot:{isRoot:!0},_notAsLayoutRoot:{isRoot:!1},updateLayout:function(b){var a=this,e,d=a.lastBox,c=b&&b.isRoot;if(d){d.invalid=!0}if(!a.rendered||a.layoutSuspendCount||a.suspendLayout){return}if(a.hidden){Ext.Component.cancelLayout(a)}else {if(typeof c!=='boolean'){c=a.isLayoutRoot()}}if(c||!a.ownerLayout||!a.ownerLayout.onContentChange(a)){if(!a.isLayoutSuspended()){e=b&&b.hasOwnProperty('defer')?b.defer:a.deferLayouts;Ext.Component.updateLayout(a,e)}}},updateMaxHeight:function(b,a){this.changeConstraint(b,a,'min','max-height','height')},updateMaxWidth:function(b,a){this.changeConstraint(b,a,'min','max-width','width')},updateMinHeight:function(b,a){this.changeConstraint(b,a,'max','min-height','height')},updateMinWidth:function(b,a){this.changeConstraint(b,a,'max','min-width','width')},getAnchorToXY:function(d,a,c,b){return d.getAnchorXY(a,c,b)},getBorderPadding:function(){return this.el.getBorderPadding()},getLocalX:function(){return this.el.getLocalX()},getLocalXY:function(){return this.el.getLocalXY()},getLocalY:function(){return this.el.getLocalY()},getX:function(){return this.el.getX()},getXY:function(){return this.el.getXY()},getY:function(){return this.el.getY()},setLocalX:function(a){this.el.setLocalX(a)},setLocalXY:function(a,b){this.el.setLocalXY(a,b)},setLocalY:function(a){this.el.setLocalY(a)},setX:function(b,a){this.el.setX(b,a)},setXY:function(b,a){this.el.setXY(b,a)},setY:function(b,a){this.el.setY(b,a)},privates:{addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},addUIToElement:function(){var a=this,d=a.baseCls+'-'+a.ui,e,c,f,b;a.addCls(d);if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){f=a[c];if(f){f.addCls(d+b)}}}}},changeConstraint:function(b,g,f,c,d){var a=this,e=a[d];if(b!=null&&typeof e==='number'){a[d]=Math[f](e,b)}if(a.liquidLayout){if(b!=null){a.setStyle(c,b+'px')}else {if(g){a.setStyle(c,'')}}}if(a.rendered){a.updateLayout()}},constructPlugin:function(a){var b=this;if(typeof a==='string'){a=Ext.PluginManager.create({},a,b)}else {a=Ext.PluginManager.create(a,null,b)}return a},constructPlugins:function(){var d=this,a=d.plugins,c,b,e;if(a){c=[];c.processed=!0;if(!Ext.isArray(a)){a=[a]}for(b=0,e=a.length;b=0){h=m[c].splitterDelta;if(e.getAt(d+h)!==b){e.remove(b);d=e.indexOf(a);if(h>0){++d}e.insert(d,b)}}}if(j){if(l){a.expand(!1)}i.remove(j);a.placeholder=null;if(l){a.collapse(null,!1)}}i.updateLayout();Ext.resumeLayouts(!0);a.fireEventArgs('changeregion',[a,g])}else {a.region=c}}return g},setWeight:function(b){var a=this,e=a.getOwningBorderContainer(),d=a.placeholder,c=a.weight;if(b!==c){if(a.fireEventArgs('beforechangeweight',[a,b])!==!1){a.weight=b;if(d){d.weight=b}if(e){e.updateLayout()}a.fireEventArgs('changeweight',[a,c])}}return c}},function(b){var a=b.prototype;a.setBorderRegion=a.setRegion;a.setRegionWeight=a.setWeight});Ext.define('Ext.theme.neptune.Component',{override:'Ext.Component',initComponent:function(){arguments.callee.$previous.call(this);if(this.dock&&this.border===undefined){this.border=!1}},privates:{initStyles:function(){var a=this,b=a.hasOwnProperty('border'),c=a.border;if(a.dock){a.border=null}arguments.callee.$previous.apply(this,arguments);if(b){a.border=c}else {delete a.border}}}},function(){Ext.namespace('Ext.theme.is').Neptune=!0;Ext.theme.name='Neptune'});Ext.define('Ext.theme.crisp.Component',{override:'Ext.Component'},function(){Ext.namespace('Ext.theme.is').Crisp=!0;Ext.theme.name='Crisp'});Ext.define('Ext.overrides.app.domain.Component',{override:'Ext.app.domain.Component'},function(a){a.monitor(Ext.Component)});Ext.cmd.derive('Ext.app.EventBus',Ext.Base,{singleton:!0,constructor:function(){var a=this,b=Ext.app.EventDomain.instances;a.callParent();a.domains=b;a.bus=b.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(b,c){var d=this.domains,a;for(a in b){if(b.hasOwnProperty(a)){d[a].listen(b[a],c)}}},unlisten:function(c){var a=Ext.app.EventDomain.instances,b;for(b in a){a[b].unlisten(c)}}},1,0,0,0,0,0,[Ext.app,'EventBus'],0);Ext.cmd.derive('Ext.app.domain.Global',Ext.app.EventDomain,{singleton:!0,type:'global',constructor:function(){var a=this;a.callParent();a.monitor(Ext.GlobalEvents)},listen:function(b,a){this.callParent([{global:b},a])},match:Ext.returnTrue},1,0,0,0,0,0,[Ext.app.domain,'Global'],0);Ext.cmd.derive('Ext.app.BaseController',Ext.Base,{isController:!0,config:{id:null,control:null,listen:null,routes:null,before:null},constructor:function(b){var a=this;Ext.apply(a,b);delete a.control;delete a.listen;a.eventbus=Ext.app.EventBus;a.mixins.observable.constructor.call(a,b);a.ensureId()},applyListen:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},applyControl:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},updateControl:function(a){this.ensureId();if(a){this.control(a)}},updateListen:function(a){this.ensureId();if(a){this.listen(a)}},updateRoutes:function(b){if(b){var e=this,f=e.getBefore()||{},g=Ext.app.route.Router,c,a,d;for(c in b){a=b[c];if(Ext.isString(a)){a={action:a}}d=a.action;if(!a.before){a.before=f[d]}g.connect(c,a,e)}}},isActive:function(){return !0},control:function(b,c,f){var e=this,d=f,a;if(Ext.isString(b)){a={};a[b]=c}else {a=b;d=c}e.eventbus.control(a,d||e)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var a=this,b=a.eventbus;Ext.app.route.Router.disconnectAll(a);if(b){b.unlisten(a);a.eventbus=null}a.callParent()},redirectTo:function(a,c){if(a.isModel){a=a.toUrl()}if(!c){var b=Ext.util.History.getToken();if(b===a){return !1}}else {Ext.app.route.Router.onStateChange(a)}Ext.util.History.add(a);return !0}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.app,'BaseController'],0);Ext.cmd.derive('Ext.app.Util',Ext.Base,{},0,0,0,0,0,0,[Ext.app,'Util'],function(){Ext.apply(Ext.app,{namespaces:{Ext:{}},addNamespaces:function(a){var d=Ext.app.namespaces,b,c;if(!Ext.isArray(a)){a=[a]}for(b=0,c=a.length;bb.length&&a+'.'===d.substring(0,a.length+1)){b=a}}return b===''?undefined:b},setupPaths:function(e,b,c){var a=Ext.manifest,d;if(e&&b!==null){a=a&&a.paths;if(!a||b!==undefined){Ext.Loader.setPath(e,b===undefined?'app':b)}}if(c){for(d in c){if(c.hasOwnProperty(d)){Ext.Loader.setPath(d,c[d])}}}}});Ext.getNamespace=Ext.app.getNamespace});Ext.cmd.derive('Ext.util.CollectionKey',Ext.Base,{isCollectionKey:!0,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:!0},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(i,b){var j=this.map||this.getMap(),c=j[i],e=this.getCollection(),h=e.length,d,a,f,g;if(!c){return -1}if(b===undefined){b=-1}if(c instanceof Array){f=c;a=h;for(g=f.length;g-->0;){d=e.indexOf(f[g]);if(db){a=d}}if(a===h){return -1}}else {a=e.indexOf(c)}return a>b?a:-1},updateKey:function(e,d){var f=this,c=f.map,a,b;if(c){a=c[d];if(a instanceof Array){b=Ext.Array.indexOf(a,e);if(b>=0){if(a.length>2){a.splice(b,1)}else {c[d]=a[1-b]}}}else {if(a){delete c[d]}}f.add([e])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(a,b){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(g,h){var a=this,f=a.map,d=h.items,c=d.length,b,i,e;if(f){if(a.getUnique()&&cb?1:a0&&a.getAutoSort(),r=a.getSource(),q=0,g=!1,o=!1,e,l,k,m,b,d;if(r&&!r.updating){r.itemChanged(c,p,f,u)}else {l=a.getKey(c);if(s){b=a.indexOfKey(j?f:l);o=b<0;g=a.isItemFiltered(c);n=o!==g}if(n){if(g){q=[c];d=-1}else {m=[c];d=a.length}}else {if(v&&!g){if(!s){b=a.indexOfKey(j?f:l)}k=a.getSortFn();if(b!==-1){if(b&&k(i[b-1],i[b])>0){h=-1;d=Ext.Array.binarySearch(i,c,0,b,k)}else {if(b0){h=1;d=Ext.Array.binarySearch(i,c,b+1,k)}}if(h){m=[c]}}}}e={item:c,key:l,index:d,filterChanged:n,keyChanged:j,indexChanged:!!h,filtered:g,oldIndex:b,newIndex:d,wasFiltered:o,meta:u};if(j){e.oldKey=f}if(p){e.modified=p}a.beginUpdate();a.notify('beforeitemchange',[e]);if(j){a.updateKey(c,f)}if(m||q){a.splice(d,q,m)}if(h>0){e.newIndex--}else {if(h<0){e.oldIndex++}}a.notify(g?'filtereditemchange':'itemchange',[e]);a.endUpdate()}},remove:function(d){var a=this,c=a.decodeRemoveItems(arguments,0),b=a.length;a.splice(0,c);return b-a.length},removeAll:function(){var a=this,b=a.length;if(a.generation&&b){a.splice(0,b)}return a},removeAt:function(j,f){var a=this,e=a.length,i=Ext.Number,g=i.clipIndices(e,[j,f===undefined?1:f],i.Clip.COUNT),c=g[0],d=g[1]-c,h=d===1&&a.getAt(c),b;a.splice(c,d);b=a.length-e;return h&&b?h:b},removeByKey:function(b){var a=this.getByKey(b);if(!a||!this.remove(a)){return !1}return a},replace:function(a){var b=this.indexOf(a);if(b===-1){this.add(a)}else {this.insert(b,a)}},splice:function(K,E,L){var b=this,D=b.sorted&&b.getAutoSort(),F=b.map,o=b.items,r=b.length,n=E instanceof Array?b.decodeRemoveItems(E):null,G=!n,J=Ext.Number,I=J.clipIndices(r,[K,G?E:0],J.Clip.COUNT),m=I[0],v=I[1],x=v-m,p=b.decodeItems(arguments,2),h=p?p.length:0,c,A,C,d=m,k=b.indices||(h||n?b.getIndices():null),e=null,i=x?[m]:null,l=null,t=b.getSource(),j,B,z,a,u,g,w,f,s,q,y,H,v;if(t&&!t.updating){if(G){n=[];for(a=0;a1){if(!c.$cloned){p=c=c.slice(0)}b.sortData(c)}}for(a=0;a0;){f=b.getKey(n[a]);if((g=k[f])!==undefined){(i||(i=[])).push(g)}}if(!e&&!i){return b}b.beginUpdate();if(i){j=null;z=[];C={};if(i.length>1){i.sort(Ext.Array.numericSortFn)}for(a=0,q=i.length;aj.at+B.length){z.push(j={at:g,items:B=[],keys:s=[],map:C,next:j,replacement:e});if(e){e.replaced=j}}B.push(C[f]=u);s.push(f);if(g1&&g===m){--x;i[a--]=++m}}if(e){e.at=d}for(w=z.length;w-->0;){j=z[w];a=j.at;q=j.items.length;if(a+q1&&r){b.spliceMerge(c,l)}else {if(D){if(h>1){d=0;b.indices=k=null}else {d=H.findInsertionIndex(e.items[0],o,b.getSortFn())}}if(d===r){v=d;for(a=c.length-1;a>=0;--a){o[v+a]=c[a]}k=b.indices;if(k){for(a=0;a-1){c=e[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(l,i){var a=this,j=i.atItem,d=i.items,h=a.requestedIndex,c,b,e,f,g,k;if(!a.sorted){if(h!==undefined){b=h}else {if(j){b=a.indexOf(j);if(b===-1){b=a.findInsertIndex(d[0])}else {++b}}else {b=0}}}if(a.getAutoFilter()&&a.filtered){for(f=0,k=d.length;fc)){c=a}}return [c,b]},count:function(a){return a.length},extremes:function(k,j,l,i,f){var e=null,d=null,c,b,g,h,a;for(c=j;ch)){h=a;d=b}}return [d,e]},max:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[1]},maxItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[1]},min:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[0]},minItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[0]},sum:function(g,f,h,e,c){for(var a,d=0,b=f;b1){Ext.Array.sort(a,b.prioritySortFn)}},prioritySortFn:function(a,b){var c=a.observerPriority||0,d=b.observerPriority||0;return c-d},applyExtraKeys:function(e,g){var d=this,f=g||{},b,c,a;for(c in e){a=e[c];if(!a.isCollectionKey){b={collection:d};if(Ext.isString(a)){b.property=a}else {b=Ext.apply(b,a)}a=new Ext.util.CollectionKey(b)}else {a.setCollection(d)}f[c]=d[c]=a;a.name=c}return f},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,'Ext.util.Grouper')}return a},decodeItems:function(e,d){var g=this,a=d===undefined?e:e[d],b,f,c;if(!a||!a.$cloned){b=e.length>d+1||!Ext.isIterable(a);if(b){a=Ext.Array.slice(e,d);if(a.length===1&&a[0]===undefined){a.length=0}}f=g.getDecoder();if(f){if(!b){a=a.slice(0);b=!0}for(c=a.length;c-->0;){if((a[c]=f.call(g,a[c]))===!1){a.splice(c,1)}}}if(b){a.$cloned=!0}}return a},getIndices:function(){var a=this,c=a.indices,d=a.items,f=d.length,b,e;if(!c){a.indices=c={};++a.indexRebuilds;for(b=0;b0;if(d||c){b.filtered=c;b.onFilterChange(a)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==!1){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(c,b,d){var a=this.getSorters();a.addSort.apply(a,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify('beforesort',[a.getSorters(!1)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify('sort')},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(c,b,a){if(!b){b=this.items}if(!a){a=this.getSortFn()}return Ext.Array.binarySearch(b,c,a)},applySorters:function(a,b){if(a==null||a&&a.isSorterCollection){return a}if(a){if(!b){b=this.getSorters()}b.splice(0,b.length,a)}return b},createSortFn:function(){var d=this,b=d.getGrouper(),c=d.getSorters(!1),a=c?c.getSortFn():null;if(!b){return a}return function(d,e){var c=b.sort(d,e);if(!c&&a){c=a(d,e)}return c}},updateGrouper:function(c){var a=this,b=a.getGroups(),e=a.getSorters(),d;a.onSorterChange();a.grouped=!!c;if(c){if(a.getTrackGroups()){if(!b){b=new Ext.util.GroupCollection({itemRoot:a.getRootProperty()});b.$groupable=a;a.setGroups(b)}b.setGrouper(c);d=!0}}else {if(b){a.removeObserver(b);b.destroy()}a.setGroups(null)}if(!e.updating){a.onEndUpdateSorters(e)}if(d){b.onCollectionRefresh(a)}},updateSorters:function(b,c){var a=this;if(c){c.un('endupdate','onEndUpdateSorters',a)}if(b){b.on({endupdate:'onEndUpdateSorters',scope:a,priority:a.$endUpdatePriority});b.$sortable=a}a.onSorterChange();a.onEndUpdateSorters(b)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(b){var a=this,d=a.sorted,c=a.grouped&&a.getAutoGroup()||b&&b.length>0;if(d||c){a.sorted=!!c;a.onSortChange(b)}},removeObserver:function(b){var a=this.observers;if(a){Ext.Array.remove(a,b)}},spliceMerge:function(i,q){var f=this,r=f.map,k=i.length,g=0,n=f.items,m=n.length,h=[],c=0,a=[],p=f.getSortFn(),l,j,d,b,o,e;f.items=a;for(e=0;e1){h[c-2].next=h[c-1]}for(;e1){h[c-2].next=h[c-1]}a.push(b);for(j=e+1;j=0){break}a.push(b);l.push(b)}}for(;g0)}e=j.createAssociationStore(i,f,b,h);e.$source=q;if(!b&&(j.autoLoad||a)){n=!0}f[m]=e}if(a){if(n||e.isLoading()){e.on('load',function(g,h,b,e){d=[g,e];c=c||a.scope||f;if(b){Ext.callback(a.success,c,d)}else {Ext.callback(a.failure,c,d)}d.push(b);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)},null,{single:!0})}else {d=[e,null];c=c||a.scope||f;Ext.callback(a.success,c,d);d.push(!0);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)}}if(n&&!e.isLoading()){e.load()}return e},getAssociatedItem:function(b){var a=this.isMany?this.getStoreName():this.getInstanceName();return b[a]||null},onDrop:Ext.emptyFn,getReaderRoot:function(){var a=this;return a.associationKey||(a.associationKey=a.association.schema.getNamer().readerRoot(a.role))},getReader:function(){var b=this,a=b.reader,d=b.cls,c=!b.associationKey,e=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:e,useSimpleAccessors:c,type:b.defaultReaderType});a=b.reader=Ext.createByAlias('reader.'+a.type,a)}return a},getInstanceName:function(){var a=this;return a.instanceName||(a.instanceName=a.association.schema.getNamer().instanceName(a.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName='$old'+this.getInstanceName())},getStoreName:function(){var a=this;return a.storeName||(a.storeName=a.association.schema.getNamer().storeName(a.role))},constructReader:function(h){var b=this,a=b.getReader(),e=b.cls,g=!b.associationKey,f=b.getReaderRoot(),c,d;if(!a){d=e.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(f)}else {a=new h.self({model:e,useSimpleAccessors:g,rootProperty:f})}b.reader=a}return a},read:function(f,e,d,c){var a=this.constructReader(d),b=a.getRoot(e);if(b){return a.readRecords(b,c,this._internalReadOptions)}},getCallbackOptions:function(a,c,b){if(typeof a==='function'){a={callback:a,scope:c||b}}else {if(a){a=Ext.apply({},a);a.scope=c||a.scope||b}}return a},doGetFK:function(d,b,f){var i=this,l=i.cls,j=i.association.getFieldName(),h=i.getInstanceName(),a=d[h],m=b&&b.reload,e=a!==undefined&&!m,k=d.session,c,g;if(!e){if(k){c=d.get(j);if(c||c===0){e=k.peekRecord(l,c,!0)&&!m;a=k.getRecord(l,c,!1)}else {e=!0;d[h]=a=null}}else {if(j){c=d.get(j);if(!c&&c!==0){e=!0;d[h]=a=null}else {if(!a){a=l.createWithId(c)}}}else {e=!0}}}else {if(a){e=!a.isLoading()}}if(e){if(b){g=[a,null];f=f||b.scope||d;Ext.callback(b.success,f,g);g.push(!0);Ext.callback(b,f,g);Ext.callback(b.callback,f,g)}}else {d[h]=a;b=i.getCallbackOptions(b,f,d);a.load(b)}return a},doSetFK:function(a,c,e,l){var f=this,i=f.association.getFieldName(),h=f.getInstanceName(),b=a[h],d=f.inverse,j=d.setterName,m=a.session,k,g;if(c&&c.isEntity){if(b!==c){g=f.getOldInstanceName();a[g]=b;a[h]=c;if(b&&b.isEntity){b[d.getInstanceName()]=undefined}if(i){a.set(i,c.getId())}delete a[g];if(j){c[j](a)}}}else {k=a.changingKey&&!d.isMany||a.set(i,c);if(k&&b&&b.isEntity&&!b.isEqual(b.getId(),c)){a[h]=undefined;if(!d.isMany){b[d.getInstanceName()]=undefined}}}if(e){if(Ext.isFunction(e)){e={callback:e,scope:l||a}}return a.save(e)}}},1,0,0,0,0,0,[Ext.data.schema,'Role'],0);Ext.cmd.derive('Ext.data.schema.Association',Ext.Base,{isOneToOne:!1,isManyToOne:!1,isManyToMany:!1,owner:null,field:null,constructor:function(d){var a=this,c,b;Ext.apply(a,d);a.left=c=new a.Left(a,a.left);a.right=b=new a.Right(a,a.right);c.inverse=b;b.inverse=c},hasField:function(){return !!this.field},getFieldName:function(){var a=this.field;return a?a.name:''}},1,0,0,0,0,0,[Ext.data.schema,'Association'],0);Ext.cmd.derive('Ext.data.schema.OneToOne',Ext.data.schema.Association,{isOneToOne:!0,isToOne:!0,kind:'one-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',onDrop:function(a,c){var b=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(b){b[this.inverse.getInstanceName()]=null}},createGetter:function(){var a=this;return function(){return a.doGet(this)}},createSetter:function(){var a=this;return function(b){return a.doSet(this,b)}},doGet:function(a){var c=this.getInstanceName(),b=a[c],d=a.session;if(!b&&d){}return b||null},doSet:function(a,b){var d=this.getInstanceName(),e=a[d],c=this.inverse.setterName;if(e!==b){a[d]=b;if(c){b[c](a)}}return e},read:function(a,g,f,e){var c=this,d=c.callParent([a,g,f,e]),b;if(d){b=d[0];if(b){b[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=b;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(d,b,c){return a.doSetFK(this,d,b,c)}},onDrop:function(c,f){var b=this,e=b.association.field,a=b.getAssociatedItem(c),d;if(b.inverse.owner){if(f){d=c.get(e.name);if(d||d===0){a=f.getEntry(b.cls,d).record;if(a){a.drop()}}}else {if(a){a.drop()}}}if(e){c.set(e.name,null)}c[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(b,f,c){var a=this,e=b[a.getOldInstanceName()]||a.getAssociatedItem(b),h=c||c===0,d=a.getInstanceName(),g=a.cls;b.changingKey=!0;a.doSetFK(b,c);if(!h){b[d]=null}else {if(f&&g){b[d]=f.peekRecord(g,c)||undefined}}if(a.inverse.owner&&e){a.association.schema.queueKeyCheck(e,a)}b.changingKey=!1},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(a,o,n,m){var f=this,l=f.callParent([a,o,n,m]),b,d,g,c,k,h,j,i,e;if(l){b=l[0];d=f.association.field;if(d){g=d.name}c=a.session;e=a.data;if(b){if(c){k=c.getRefs(b,this.inverse,!0);i=k&&k[a.id]||e[g]===undefined}else {i=!0}if(i){if(d){j=e[g];h=b.id;if(j!==h){e[g]=h;if(c){c.updateReference(a,d,h,j)}}}b[f.inverse.getInstanceName()]=a;a[f.getInstanceName()]=b}delete e[f.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,'OneToOne'],0);Ext.cmd.derive('Ext.data.schema.ManyToOne',Ext.data.schema.Association,{isManyToOne:!0,isToOne:!0,kind:'many-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,onDrop:function(d,f){var b=this,e=b.getAssociatedItem(d),a,g,c,i,h;if(e){a=e.removeAll();if(a&&b.inverse.owner){for(c=0,g=a.length;c0){a=c[h];e=!a.isEqual(l,a.get(i));b=f?null:d;if(e!==f){a.changingKey=!0;a[k](b);a.changingKey=!1}else {a[j]=b}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',onDrop:function(a,c){var b=this.association.field;if(b){a.set(b.name,null)}a[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(c,b){var d=this.association.field,a;a=this.getSessionStore(c,b.get(d.name));if(a&&!a.contains(b)){a.add(b)}},onValueChange:function(b,f,d,l){var c=this,j=c.getInstanceName(),m=c.cls,i,g,a,h,n,e,k;if(!b.changingKey){i=d||d===0;if(!i){b[j]=null}if(f){a=c.getSessionStore(f,l);if(a){a.remove(b)}if(i){a=c.getSessionStore(f,d);if(a&&!a.isLoading()){a.add(b)}if(m){k=f.peekRecord(m,d)}b[j]=k||undefined}}else {g=b.joined;if(g){for(h=0,n=g.length;h=0){a.remove([b])}}else {if(b<0){d=a.getSession().getEntry(this.type,e);c=d&&d.record;if(c){a.add(c)}}}a.matrixUpdate=0}},adoptAssociated:function(e,d){var a=this.getAssociatedItem(e),c,b,f;if(a){a.setSession(d);this.onStoreCreate(a,d,e.getId());c=a.getData().items;for(b=0,f=c.length;b1){a[b]=this.apply('capitalize',a[b])}return a.join('')},getterName:function(a){var b=a.role;if(a&&a.isMany){return b}return 'get'+this.apply('capitalize',b)},inverseFieldRole:function(e,f,c,d){var a=this,b=a.apply(f?'uniRole':'multiRole',e),g=a.apply('pluralize',c),h=a.apply('undotted,pluralize',d);if(g.toLowerCase()!==h.toLowerCase()){b=c+a.apply('capitalize',b)}return b},manyToMany:function(c,e,d){var b=this,a=b.apply('undotted,capitalize,singularize',e)+b.apply('undotted,capitalize,pluralize',d);if(c){a=b.apply('capitalize',c+a)}return a},manyToOne:function(d,b,a,c){return this.apply('capitalize,singularize',a)+this.apply('capitalize',b)},matrixRole:function(a,c){var b=this.apply(a?'multiRole,capitalize':'multiRole',c);return a?a+b:b},oneToOne:function(d,b,a,c){return this.apply('undotted,capitalize,singularize',a)+this.apply('capitalize',b)},setterName:function(a){return 'set'+this.apply('capitalize',a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(b,c){var e=this,h=e.cache,i=h[c]||(h[c]={}),a=i[b],d,g,f;if(!a){if(b.indexOf(',')<0){a=e[b](c)}else {g=(f=b.split(',')).length;a=c;for(d=0;d=Math.max(a,b)},find:function(g,h,d,e,b,c){var a=!e,f=!!(a&&c);return this.getData().findIndex(g,h,d,a,f,!b)},findRecord:function(){var a=this,b=a.find.apply(a,arguments);return b!==-1?a.getAt(b):null},findExact:function(a,c,b){return this.getData().findIndexBy(function(b){return b.isEqual(b.get(a),c)},this,b)},findBy:function(c,a,b){return this.getData().findIndexBy(c,a,b)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,a){var c=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==!1){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(c,a){var b;if(!a){a=this.createFiltersCollection();b=!0}a.add(c);if(b){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==!1){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(c,a){var b;if(!a){a=this.createSortersCollection();b=!0}a.add(c);if(b){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(a,c,b){if(Ext.isString(a)){a={property:a,value:c}}this.suppressNextFilter=!!b;this.getFilters().add(a);this.suppressNextFilter=!1},removeFilter:function(a,d){var b=this,c=b.getFilters();b.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){c.remove(a)}else {c.removeByKey(a)}b.suppressNextFilter=!1},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(!1),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(!1),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=!1},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(!1);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=!1},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(!1);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(b){if(b.getTransform()){return}var e=b.getProperty(),d=this.getModel(),c,a;if(d){c=d.getField(e);a=c?c.getSortType():null}if(a&&a!==Ext.identityFn){b.setTransform(a)}},beginUpdate:function(){if(!this.updating++){this.fireEvent('beginupdate')}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent('endupdate');this.onEndUpdate()}},getState:function(){var c=this,e=[],g=c.getFilters(),f=c.getGrouper(),a,d,b;c.getSorters().each(function(a){e[e.length]=a.getState();d=!0});if(c.statefulFilters&&c.saveStatefulFilters){d=!0;a=[];g.each(function(b){a[a.length]=b.getState()})}if(f){d=!0}if(d){b={};if(e.length){b.sorters=e}if(a){b.filters=a}if(f){b.grouper=f.getState()}}return b},applyState:function(b){var a=this,e=b.sorters,c=b.filters,d=b.grouper;if(e){a.getSorters().replaceAll(e)}if(c){a.saveStatefulFilters=!0;a.getFilters().replaceAll(c)}if(d){a.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.callParent();a.onDestroy()},sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else {a.forceLocalSort()}}else {a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(b,a){if(a){this.fireEvent('beforesort',this,a.getRange())}},onSorterEndUpdate:function(){var a=this,b;b=a.getSorters(!1);if(a.settingGroups||!b){return}b=b.getRange();if(b.length){if(a.getRemoteSort()){a.load({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('sort',a,b)}}else {a.fireEvent('sort',a,b)}},onFilterEndUpdate:function(){var a=this,b=a.suppressNextFilter;if(a.getRemoteFilter()){a.currentPage=1;if(!b){a.load()}}else {if(!b){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}if(a.trackStateChanges){a.saveStatefulFilters=!0}a.fireEvent('filterchange',a,a.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else {this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(b,d){var a=this,c=a.getSorters(!1),e=b||c&&c.length;if(b&&typeof b==='string'){b={property:b,direction:d||a.getGroupDir()}}a.settingGroups=!0;a.getData().setGrouper(b);delete a.settingGroups;if(e){if(a.getRemoteSort()){a.load({scope:a,callback:a.fireGroupChange})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireGroupChange()}}else {a.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){this.fireEvent('groupchange',this,this.getGrouper())}},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b='';if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?'on':'un']('endupdate',this.onFilterEndUpdate,this)}},onRemoteSortSet:function(c,b){var a=this;if(c){c[b?'on':'un']('endupdate',a.onSorterEndUpdate,a);a.getData()[b?'un':'on']('beforesort',a.onBeforeCollectionSort,a)}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data,'AbstractStore'],0);Ext.cmd.derive('Ext.data.Error',Ext.Base,{isError:!0,$configPrefixed:!1,config:{field:null,message:''},constructor:function(a){this.initConfig(a);this.msg=this.message}},1,0,0,0,0,0,[Ext.data,'Error'],0);Ext.cmd.derive('Ext.data.ErrorCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.data.Errors',init:function(d){var b=this,h=d.fields,k=d.data,g,a,l,c,i,f,j,e;for(c=0,i=h.length;c]+>/gi,asText:function(a){return a!=null?String(a).replace(this.stripTagsRe,''):'\x00'},asUCText:function(a){return a!=null?String(a).toUpperCase().replace(this.stripTagsRe,''):'\x00'},asUCString:function(a){return a!=null?String(a).toUpperCase():'\x00'},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(b){var a=parseFloat(String(b).replace(this.stripCommasRe,''));return isNaN(a)?0:a},asInt:function(b){var a=parseInt(String(b).replace(this.stripCommasRe,''),10);return isNaN(a)?0:a}},0,0,0,0,0,0,[Ext.data,'SortTypes'],0);Ext.cmd.derive('Ext.data.validator.Validator',Ext.Base,{isValidator:!0,type:'base',statics:{all:{},register:function(a,c){var b=this.all;b[a.toUpperCase()]=b[a.toLowerCase()]=b[a]=c.prototype}},onClassExtended:function(b,a){if(a.type){Ext.data.validator.Validator.register(a.type,b)}},constructor:function(a){if(typeof a==='function'){this.fnOnly=!0;this.validate=a}else {this.initConfig(a)}},validate:function(){return !0},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},1,0,0,0,['data.validator.base'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.validator,'Validator'],function(){this.register(this.prototype.type,this)});Ext.cmd.derive('Ext.data.field.Field',Ext.Base,{alternateClassName:'Ext.data.Field',aliasPrefix:'data.field.',type:'auto',factoryConfig:{defaultProperty:'name'},isDataField:!0,isField:!0,allowBlank:!0,allowNull:!1,critical:!1,defaultInvalidMessage:'This field is invalid',defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,unique:!1,rank:null,stripRe:/[\$,%]/g,calculated:!1,evil:!1,identifier:!1,onClassExtended:function(f,d){var b=d.sortType,c=f.prototype,e=c.validators,a=d.validators;if(b&&Ext.isString(b)){c.sortType=Ext.data.SortTypes[b]}if(a){if(!Ext.isArray(a)){a=[a]}delete d.validators;if(e){a=e.concat(a)}c.validators=a}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var a=this,n=a.calculateRe,c,l,f,h,b,j,e,m,k,i,g;if(d){if(Ext.isString(d)){a.name=d}else {g=d.validators;if(g){delete d.validators;a.instanceValidators=g}Ext.apply(a,d)}}if(!a.allowNull){a.allowNull=!!a.reference}c=a.calculate;b=a.depends;if(c){a.convert=a.doCalculate;if(!b){if(!(b=c.$depends)){j={};k=c.toString();c.$depends=b=[];e=a.argumentNamesRe.exec(k);m=e?e[1]:'data';while(e=n.exec(k)){if(m===e[1]&&!j[i=e[2]]){j[i]=1;b.push(i)}}}a.depends=b}}f=a.defaultValue;if(a.convert){a.calculated=l=a.convert.length>1;a.evil=l&&!b}if(a.persist===null){a.persist=!c}h=a.sortType;if(!a.sortType){a.sortType=Ext.data.SortTypes.none}else {if(Ext.isString(h)){a.sortType=Ext.data.SortTypes[h]}}if(b&&typeof b==='string'){a.depends=[b]}a.cloneDefaultValue=f!==undefined&&(Ext.isDate(f)||Ext.isArray(f)||Ext.isObject(f))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},compileValidators:function(){var a=this;a._validators=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var d=a.length,e=this._validators,c,b;for(c=0;c0){(u=p[v]).dirty=!0;d=d?Math.min(d,u.rank):u.rank}if(!b||b.persist){if(f&&f.hasOwnProperty(c)){if(!y||o.isEqual(f[c],h)){delete f[c];a.dirty=-1}}else {if(y){if(!f){a.modified=f={}}a.dirty=!0;f[c]=j}}}if(c===a.idField.name){D=!0;z=j;s=h}}if(!d){break}b=l[d-1];b.dirty=!1;if(n){delete g[i]}else {g=a._singleProp;n=!0}i=b.name;g[i]=t[i];C=!0;for(;d0;){d=(b=g[i]).name;if(!(d in f)){c=h[d];if(j&&b.serialize){c=b.serialize(c,a)}f[d]=c}}}if(n){a.getAssociatedData(f,e)}return f},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(a){a=Ext.apply({},a);var b=this,d=a.scope||b,g=b.getProxy(),f=a.callback,c=b.loadOperation,h=b.getId(),e;if(c){e=c.extraCalls;if(!e){e=c.extraCalls=[]}e.push(a);return c}a.id=h;a.recordCreator=function(d,e,a){var c=b.session;if(a){a.recordCreator=c?c.recordCreator:null}b.set(d,b._commitOptions);return b};a.internalCallback=function(e){var h=e.wasSuccessful()&&e.getRecords().length>0,l=b.loadOperation,i=l.extraCalls,c=[b,e],j=[b,e,h],g,k;b.loadOperation=null;if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(f,d,j);if(i){for(g=0,k=i.length;g0;){b=i[a];if(b in e){delete e[b];delete j[b]}}for(a=0,h=f.length;a=a.getTotal()){a.setConfig({success:!1,records:[],total:0})}else {a.setRecords(Ext.Array.slice(d,e,e+i))}}b.setCompleted()}},clear:Ext.emptyFn},0,0,0,0,['proxy.memory'],0,[Ext.data.proxy,'Memory',Ext.data,'MemoryProxy'],0);Ext.cmd.derive('Ext.data.ProxyStore',Ext.data.AbstractStore,{config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:!1,batchUpdateMode:'operation',sortOnLoad:!0,trackRemoved:!0,asynchronousLoad:undefined},onClassExtended:function(e,d,b){var c=d.model,a;if(typeof c==='string'){a=b.onBeforeCreated;b.onBeforeCreated=function(){var d=this,b=arguments;Ext.require(c,function(){a.apply(d,b)})}}},implicitModel:'Ext.data.Model',autoSyncSuspended:0,constructor:function(b){var a=this;a.removed=[];Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(a.getAsynchronousLoad()===!1){a.flushLoad()}},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else {this.getFields();a=this.getModel()||this.createImplicitModel()}return a},applyProxy:function(a){var b=this.getModel();if(a!==null){if(a){if(a.isProxy){a.setModel(b)}else {if(Ext.isString(a)){a={type:a,model:b}}else {if(!a.model){a=Ext.apply({model:b},a)}}a=Ext.createByAlias('proxy.'+a.type,a);a.autoCreated=!0}}else {if(b){a=b.getProxy()}}if(!a){a=Ext.createByAlias('proxy.memory');a.autoCreated=!0}}return a},applyState:function(b){var a=this;Ext.data.AbstractStore.prototype.applyState.call(this,b);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(b,a){this.fireEvent('metachange',this,a)},create:function(f,a){var b=this,e=b.getModel(),d=new e(f),c;a=Ext.apply({},a);if(!a.records){a.records=[d]}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('create',a);return c.execute()},read:function(){return this.load.apply(this,arguments)},update:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getUpdatedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('update',a);return c.execute()},onProxyWrite:function(a){var b=this,c=a.wasSuccessful(),d=a.getRecords();switch(a.getAction()){case 'create':b.onCreateRecords(d,a,c);break;case 'update':b.onUpdateRecords(d,a,c);break;case 'destroy':b.onDestroyRecords(d,a,c);break;}if(c){b.fireEvent('write',b,a);b.fireEvent('datachanged',b)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(c,b,a){if(a){this.cleanRemoved()}},erase:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getRemovedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('destroy',a);return c.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(e,f){var a=this,c=e.operations,d=c.length,b;if(a.batchUpdateMode!=='operation'){a.suspendEvents();for(b=0;b0){b.create=f;c=!0}if(g.length>0){b.update=g;c=!0}if(e.length>0){b.destroy=e;c=!0}if(c&&a.fireEvent('beforesync',b)!==!1){a.isSyncing=!0;d=d||{};a.proxy.batch(Ext.apply(d,{operations:b,listeners:a.getBatchListeners()}))}return a},getBatchListeners:function(){var a=this,b={scope:a,exception:a.onBatchException,complete:a.onBatchComplete};if(a.batchUpdateMode==='operation'){b.operationcomplete=a.onBatchOperationComplete}return b},save:function(){return this.sync.apply(this,arguments)},load:function(b){var a=this;if(typeof b==='function'){b={callback:b}}else {b=b?Ext.Object.chain(b):{}}a.pendingLoadOptions=b;if(a.getAsynchronousLoad()){if(!a.loadTimer){a.loadTimer=Ext.asap(a.flushLoad,a)}}else {a.flushLoad()}return a},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b;a.clearLoadTask();if(!c){return}a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}b=Ext.apply({internalScope:a,internalCallback:a.onProxyLoad,scope:a},c);a.lastOptions=b;b=a.createOperation('read',b);if(a.fireEvent('beforeload',a,b)!==!1){a.onBeforeLoad(b);a.loading=!0;b.execute()}},reload:function(a){var b=Ext.apply({},a,this.lastOptions);return this.load(b)},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,onDestroy:function(){var a=this,b=a.getProxy();a.clearLoadTask();a.getData().destroy();a.data=null;a.setProxy(null);if(b.autoCreated){b.destroy()}a.setModel(null)},hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){Ext.asapCancel(this.loadTimer);this.pendingLoadOptions=this.loadTimer=null},cleanRemoved:function(){var a=this.getRawRemovedRecords(),c,b;if(a){for(b=0,c=a.length;b-1},each:function(f,e){var c=this.data.items,d=c.length,b,a;for(a=0;a0){if(u){f=0;if(d.length>1&&h){f=1}b[i]=d[f].getProperty();b[t]=d[f].getDirection()}else {b[i]=a.encodeSorters(d)}}if(l&&j&&j.length>0){b[l]=a.encodeFilters(j)}return b},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format('{0}={1}',b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(a){var b;if(a){b=a.getUrl()||this.getApi()[a.getAction()]}return b?b:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a){},afterRequest:Ext.emptyFn,destroy:function(){Ext.data.proxy.Proxy.prototype.destroy.call(this);Ext.destroy(this.getReader(),this.getWriter());this.reader=this.writer=null}},0,0,0,0,['proxy.server'],0,[Ext.data.proxy,'Server',Ext.data,'ServerProxy'],0);Ext.cmd.derive('Ext.data.proxy.Ajax',Ext.data.proxy.Server,{alternateClassName:['Ext.data.HttpProxy','Ext.data.AjaxProxy'],isAjaxProxy:!0,defaultActionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'},config:{binary:!1,headers:undefined,paramsAsJson:!1,withCredentials:!1,useDefaultXhrHeader:!0,username:null,password:null,actionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'}},doRequest:function(e){var a=this,g=a.getWriter(),b=a.buildRequest(e),f=a.getMethod(b),c,d;if(g&&e.allowWrite()){b=g.write(b)}b.setConfig({binary:a.getBinary(),headers:a.getHeaders(),timeout:a.getTimeout(),scope:a,callback:a.createRequestCallback(b,e),method:f,useDefaultXhrHeader:a.getUseDefaultXhrHeader(),disableCaching:!1});if(f.toUpperCase()!=='GET'&&a.getParamsAsJson()){d=b.getParams();if(d){c=b.getJsonData();if(c){c=Ext.Object.merge({},c,d)}else {c=d}b.setJsonData(c);b.setParams(undefined)}}if(a.getWithCredentials()){b.setWithCredentials(!0);b.setUsername(a.getUsername());b.setPassword(a.getPassword())}return a.sendRequest(b)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(d){var a=this.getActionMethods(),b=d.getAction(),c;if(a){c=a[b]}return c||this.defaultActionMethods[b]},createRequestCallback:function(b,c){var a=this;return function(f,e,d){if(b===a.lastRequest){a.lastRequest=null}a.processResponse(e,c,b,d)}},destroy:function(){this.lastRequest=null;Ext.data.proxy.Server.prototype.destroy.call(this)}},0,0,0,0,['proxy.ajax'],0,[Ext.data.proxy,'Ajax',Ext.data,'HttpProxy',Ext.data,'AjaxProxy'],0);Ext.cmd.derive('Ext.data.reader.Json',Ext.data.reader.Reader,{alternateClassName:'Ext.data.JsonReader',config:{record:null,metaProperty:'metaData',useSimpleAccessors:!1,preserveRawData:!1},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},readRecords:function(a,e,d){var b=this,c;if(b.getMeta){c=b.getMeta(a);if(c){b.onMetaChange(c)}}else {if(a.metaData){b.onMetaChange(a.metaData)}}return Ext.data.reader.Reader.prototype.readRecords.call(this,a,e,d)},getResponseData:function(b){var a;try{return Ext.decode(b.responseText)}catch(c){a=this.createReadError(c.message);Ext.Logger.warn('Unable to parse the JSON returned by the server');this.fireEvent('exception',this,b,a);return a}},buildExtractors:function(){var a=this,b,c;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){b=a.getMetaProperty();c=a.getRootProperty();if(c){a.getRoot=a.getAccessor(c)}else {a.getRoot=Ext.identityFn}if(b){a.getMeta=a.getAccessor(b)}}},extractData:function(a,f){var e=this.getRecord(),d=[],c,b;if(e){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b1||e&&!g){b+=d}else {if(k){i=!1;if(l){++e}else {if(g){--e;i=!0}}if(b){if(i){b='['+b+']'}else {b='.'+b}j+=b;m.push(''+j);b=''}}}}f=m.join(' && ');f=Ext.functionFactory('raw','return '+f)}return f}}(),createFieldAccessor:function(b){var e=this,a=b.mapping,c=a||a===0,d=c?a:b.name;if(c){if(typeof d==='function'){return function(a){return b.mapping(a,e)}}else {return e.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?'simple':'';return this.$className+a+b},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot}}},0,0,0,0,['reader.json'],0,[Ext.data.reader,'Json',Ext.data,'JsonReader'],0);Ext.cmd.derive('Ext.data.writer.Json',Ext.data.writer.Writer,{alternateClassName:'Ext.data.JsonWriter',config:{rootProperty:undefined,encode:!1,allowSingle:!0,expandData:!1},getExpandedData:function(f){var h=f.length,g=0,a,c,b,d,e,i=function(c,b){var a={};a[c]=b;return a};for(;g0){e=a[c];for(;d>0;d--){e=i(b[d],e)}a[b[0]]=a[b[0]]||{};Ext.Object.merge(a[b[0]],e);delete a[c]}}}}return f},writeRecords:function(b,a){var c=this,e=c.getRootProperty(),d,g,f;if(c.getExpandData()){a=c.getExpandedData(a)}if(c.getAllowSingle()&&a.length===1){a=a[0];g=!0}f=this.getTransform();if(f){a=f(a,b)}if(c.getEncode()){if(e){b.setParam(e,Ext.encode(a))}else {}}else {if(g||a&&a.length){d=b.getJsonData()||{};if(e){d[e]=a}else {d=a}b.setJsonData(d)}}return b}},0,0,0,0,['writer.json'],0,[Ext.data.writer,'Json',Ext.data,'JsonWriter'],0);Ext.cmd.derive('Ext.util.Group',Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001},0,0,0,0,0,0,[Ext.util,'Group'],0);Ext.cmd.derive('Ext.util.SorterCollection',Ext.util.Collection,{isSorterCollection:!0,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(b){var a=this;a.sortFn=Ext.util.Sorter.createComparator(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeSorter)},addSort:function(b,c,d){var a=this,f,j,k,g,h,i,e;if(!b){a.beginUpdate();a.endUpdate()}else {g=a.getOptions();if(b instanceof Array){e=b;d=c;c=null}else {if(Ext.isString(b)){if(!(i=a.get(b))){e=[{property:b,direction:c||g.getDefaultSortDirection()}]}else {e=[i]}}else {if(Ext.isFunction(b)){e=[{sorterFn:b,direction:c||g.getDefaultSortDirection()}]}else {e=[b];d=c;c=null}}}d=a._sortModes[d||'replace'];h=a.getAt(0);f=a.length;j=d.append?f:0;a.beginUpdate();a.splice(j,d.replace?f:0,e);if(d.multi){f=a.length;k=g.getMultiSortLimit();if(f>k){a.removeAt(k,f)}}if(i&&c){i.setDirection(c)}else {if(j===0&&h&&h===a.getAt(0)){h.toggle()}}a.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(d){var c=this.items,e=c.length,a,b;for(a=0;ad+1||!Ext.isIterable(b)){b=Ext.Array.slice(e,d)}var j=k.items,l=b.length,c=[],f,g,i,a,h;for(f=0;f0;){g=j[i];if(g.getSorterFn()===a){c.push(g)}}}}}}b=c;b.$cloned=!0}return b},getOptions:function(){return this.$sortable||this}},1,0,0,0,0,0,[Ext.util,'SorterCollection'],0);Ext.cmd.derive('Ext.util.FilterCollection',Ext.util.Collection,{isFilterCollection:!0,$filterable:null,filterFn:null,constructor:function(b){var a=this;a.filterFn=Ext.util.Filter.createFilterFn(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},decodeFilter:function(b){var d=this.getOptions(),c=d.getRootProperty(),a;if(b.isFilter){if(!b.getRoot()){b.setRoot(c)}}else {a={root:c};if(Ext.isFunction(b)){a.filterFn=b}else {a=Ext.apply(a,b);if(a.fn){a.filterFn=a.fn;delete a.fn}if(Ext.util.Filter.isInvalid(a)){return !1}}b=new Ext.util.Filter(a)}return b},decodeRemoveItems:function(f,e){var p=this,b=e===undefined?f:f[e];if(!b.$cloned){if(f.length>e+1||!Ext.isIterable(b)){b=Ext.Array.slice(f,e)}var k=p.items,o=b.length,h=[],a,g,l,n,m,c,d,j,i;for(g=0;g0;){c=k[j];d=!1;if(m){d=c.getProperty()===a}else {if(l){d=c.getFilterFn()===a}else {if(n){d=c.getProperty()===a.property&&c.getValue()===a.value}}}if(d){h.push(c)}}}}b=h;b.$cloned=!0}return b},getOptions:function(){return this.$filterable||this}},1,0,0,0,0,0,[Ext.util,'FilterCollection'],0);Ext.cmd.derive('Ext.util.GroupCollection',Ext.util.Collection,{isGroupCollection:!0,config:{grouper:null,itemRoot:null},observerPriority:-100,onCollectionAdd:function(b,a){this.addItemsToGroups(b,a.items)},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){var c=a.item;if(!a.indexChanged){this.syncItemGrouping(b,c,b.getKey(c),a.oldKey,a.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(a){this.removeAll();this.addItemsToGroups(a,a.items)},onCollectionRemove:function(k,j){var d=this,g=d.changeDetails,b,h,a,e,i,c,f;if(g){f=g.item;a=d.findGroupForItem(f);b=[];if(a){b.push({group:a,items:[f]})}}else {b=d.groupItems(k,j.items,!1)}for(e=0,i=b.length;e0&&i.getSorters().getCount()===0){k=i.indexOf(a.items[0]);if(o-1){b=[c];d=1}else {d=0}}else {b=[];for(g=0,d=c.length;g=0;a--){d=c[a];d.reject();if(!g){b.insert(d.removedFrom||0,d)}}if(g){h.setAutoSort(i);b.add(c)}c.length=0}b.endUpdate();Ext.resumeLayouts(!0)},onDestroy:function(){var a=this,c=a.loadTask,d=a.getData(),b=d.getSource();a.clearData();Ext.data.ProxyStore.prototype.onDestroy.call(this);a.setSession(null);a.observers=null;if(c){c.cancel();a.loadTask=null}if(b){b.destroy()}},privates:{fetch:function(a){a=Ext.apply({},a);this.setLoadOptions(a);var b=this.createOperation('read',a);b.execute()},onBeforeLoad:function(a){this.callObservers('BeforeLoad',[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,a,b)},onRemoteSortSet:function(b,a){var c=this.getData();if(b){c.setSorters(a?null:b)}c.setAutoGroup(!a);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,a)},isMoving:function(a,f){var c=this.moveMap,b=0,e,d;if(c){if(a){if(Ext.isArray(a)){for(d=0,e=a.length;d-1}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Store'],0);Ext.cmd.derive('Ext.app.route.Queue',Ext.Base,{queue:null,token:null,constructor:function(a){Ext.apply(this,a);this.queue=new Ext.util.MixedCollection()},queueAction:function(a,b){this.queue.add({route:a,args:b})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var c=this.queue,a=c.removeAt(0),b;if(a){b=a&&a.route;b.execute(this.token,a.args,this.onActionExecute,this)}},onActionExecute:function(a){if(a){this.clearQueue()}else {this.runQueue()}}},1,0,0,0,0,0,[Ext.app.route,'Queue'],0);Ext.cmd.derive('Ext.app.route.Route',Ext.Base,{action:null,conditions:null,controller:null,allowInactive:!1,url:null,before:null,caseInsensitive:!1,matcherRegex:null,paramMatchingRegex:null,paramsInMatchString:null,constructor:function(c){var a=this,b;Ext.apply(a,c,{conditions:{}});b=a.url;a.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);a.paramsInMatchString=b.match(a.paramMatchingRegex)||[];a.matcherRegex=a.createMatcherRegex(b)},recognize:function(b){var a=this,d=a.controller,e,c;if((a.allowInactive||d.isActive())&&a.recognizes(b)){e=a.matchesFor(b);c=b.match(a.matcherRegex);c.shift();return Ext.applyIf(e,{controller:d,action:a.action,historyUrl:b,args:c})}return !1},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(h,d,f,g){var e=d.args||[],a=this.before,c=this.controller,b=this.createCallback(d,f,g);if(a){e.push(b);if(Ext.isString(a)){a=this.before=c[a]}if(a){a.apply(c,e)}}else {b.resume()}},matchesFor:function(f){var b={},d=this.paramsInMatchString,c=f.match(this.matcherRegex),a=0,e=d.length;c.shift();for(;a0){c=a.substring(0,d);b=a.substring(d+1)+'.'+c}else {if(a.indexOf('.')>0&&(Ext.ClassManager.isCreated(a)||this.hasRegisteredPrefix(a))){b=a}else {if(f){b=f+'.'+g+'.'+(e?e+'.'+a:a);c=a}else {b=a}}}return {absoluteName:b,shortName:c}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:!0,moduleClassName:null},onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(g,f){var d=Ext.app.Controller,e=[],a,c;c=g.prototype;a=d.resolveNamespace(g,f);if(a){c.$namespace=a}d.processDependencies(c,e,a,'model',f.models);d.processDependencies(c,e,a,'view',f.views);d.processDependencies(c,e,a,'store',f.stores);d.processDependencies(c,e,a,'controller',f.controllers);Ext.require(e,Ext.Function.pass(b,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.apply(this,arguments)},normalizeRefs:function(a){var c=this,b=[];if(a){if(Ext.isObject(a)){Ext.Object.each(a,function(c,a){if(Ext.isString(a)){a={selector:a}}a.ref=c;b.push(a)})}else {if(Ext.isArray(a)){b=Ext.Array.merge(b,a)}}}a=c.refs;if(a){c.refs=null;a=c.normalizeRefs(a);if(a){b=Ext.Array.merge(b,a)}}return b},getRefMap:function(){var e=this,a=e._refMap,b,d,f,c;if(!a){b=e.getRefs();a=e._refMap={};if(b){for(c=0,f=b.length;c0){d=c[b];a.map[a.getKey(d)]=b}++a.generation}}},1,0,0,0,0,0,[Ext.util,'Bag'],0);Ext.cmd.derive('Ext.util.Scheduler',Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:!1,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var a=this,b=a.items;if(b===a.firing){a.items=b=b.clone()}c.id=c.id||++a.nextId;c.scheduler=a;b.add(c);if(!a.sortMap){a.orderedItems=null}},remove:function(c){var a=this,b=a.items;if(a.destroyed){return}if(b===a.firing){a.items=b=b.clone()}if(c.scheduled){a.unscheduleItem(c);c.scheduled=!1}b.remove(c);a.orderedItems=null},sort:function(){var a=this,b=a.items,f={},e=a.getPreSort(),c,d;a.orderedItems=[];a.sortMap=f;if(e){b.sort(e)}b=b.items;for(c=0;c0;){c[d].stub=b}}return b},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return !0}}return !1},onSchedule:function(){for(var c,e,b,a,d=this.parent;d;d=d.parent){a=d.bindings;if(a){for(c=0,e=a.length;c '+a.binding.getFullName()+')')},getDataObject:function(){var a=this.binding;return a&&a.getDataObject()},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isLoading:function(){var a=this.binding;return a?a.isLoading():!1},link:function(c,b){var a=this,d=a.binding;if(d){d.destroy()}b=a.target=b||a.owner;a.linkDescriptor=c;a.binding=b.bind(c,a.onChange,a);a.binding.deep=!0},onChange:function(){this.invalidate(!0)},react:function(){var a=this,b=a.owner.linkData;b[a.name]=a.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var c=this,b=Ext.app.bind.Stub.prototype.collect.call(this),a=c.binding?1:0;return b+a},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}},0,0,0,0,0,0,[Ext.app.bind,'LinkStub'],0);Ext.cmd.derive('Ext.app.bind.RootStub',Ext.app.bind.AbstractStub,{isRootStub:!0,depth:0,createRootChild:function(a,j){var e=this,d=e.owner,i=d.getData(),g=e.children,c=g&&g[a],f=c?null:e,h,b;if(j||i.hasOwnProperty(a)||!(h=d.getParent())){b=new Ext.app.bind.Stub(d,a,f)}else {b=new Ext.app.bind.LinkStub(d,a,c?null:f);b.link('{'+a+'}',h)}if(c){c.graft(b)}return b},createStubChild:function(a){return this.createRootChild(a,!0)},descend:function(a,g){var f=this,d=f.children,b=g||0,e=a[b++],c=d&&d[e]||f.createRootChild(e);if(b0;){if(a[b].isLoading()){return !0}}return !1},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var b=this.bindings,d=b.length,a,c;for(a=0;a-1}}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Controller'],0);Ext.cmd.derive('Ext.data.PageMap',Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:''},clear:function(b){var a=this;a.pageMapGeneration=(a.pageMapGeneration||0)+1;a.indexMap={};Ext.util.LruCache.prototype.clear.call(this,b)},forEach:function(k,f){var d=this,b=Ext.Object.getKeys(d.map),h=b.length,j=d.getPageSize(),a,c,e,g,i;for(a=0;ad},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(l,f){f--;if(!this.hasRange(l,f)){Ext.raise('PageMap asked for range which it does not have')}var c=this,k=Ext.Array,e=c.getPageSize(),g=c.getPageFromRecordIndex(l),h=c.getPageFromRecordIndex(f),m=(g-1)*e,n=h*e-1,a=g,j=[],d,i,b;for(;a<=h;a++){if(a===g){d=l-m;b=d>0}else {d=0;b=!1}if(a===h){i=e-(n-f);b=b||i=d){b=d-1;c=Math.max(b-g,0)}if(a.rangeCached(c,Math.min(b,a.totalCount))){a.loading=!1;f.un('pageadd',e);l=f.getRange(c,b+1);a.fireEvent('load',a,l,!0);a.fireEvent('refresh',a)}};h=Math.ceil((a.getLeadingBufferZone()+a.getTrailingBufferZone())/2);if(a.lastRequestStart&&a.preserveScrollOnReload){c=a.lastRequestStart;b=a.lastRequestEnd;i=a.getTotalCount()}else {c=d.start||0;b=c+(d.count||a.getPageSize())-1}f.clear(!0);delete a.totalCount;c=Math.max(c-h,0);b=Math.min(b+h,i);j=a.getPageFromRecordIndex(c);k=a.getPageFromRecordIndex(b);a.loading=!0;d.waitForReload=e;f.on('pageadd',e);for(g=j;g<=k;g++){a.prefetchPage(g,d)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},clearData:function(c){var b=this,a=b.getData();if(a){a.clear()}},getCount:function(){return this.totalCount||0},getRange:function(c,b,f){var a=this,k=a.totalCount-1,m=a.lastRequestStart,l=[],h=a.getData(),g,d,e,i,j;f=Ext.apply({prefetchStart:c,prefetchEnd:b},f);b=b>=a.totalCount?k:b;d=c===0?0:c-1;e=b===k?b:b+1;a.lastRequestStart=c;a.lastRequestEnd=b;if(a.rangeCached(d,e)){a.onRangeAvailable(f);l=h.getRange(c,b+1)}else {a.fireEvent('cachemiss',a,c,b);i=a.getPageFromRecordIndex(d);j=a.getPageFromRecordIndex(e);g=function(l,k,m){if(k>=i&&k<=j&&a.rangeCached(d,e)){a.fireEvent('cachefilled',a,c,b);h.un('pageadd',g);a.onRangeAvailable(f)}};h.on('pageadd',g);a.prefetchRange(c,b)}a.primeCache(c,b,c-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var a=this,c;if(b&&typeof b==='string'){c=a.grouper;if(!c){a.grouper=new Ext.util.Grouper({property:b,direction:d||'ASC',root:'data'})}else {if(d===undefined){c.toggle()}else {c.setDirection(d)}}}else {a.grouper=b?a.getSorters().decodeSorter(b,'Ext.util.Grouper'):null}a.getData().clear();a.loadPage(1,{callback:function(){a.fireEvent('groupchange',a,a.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(c){var a=this,b=a.getPurgePageCount();return b?Math.max(a.getData().getMaxSize()||0,Math.ceil((c+a.getTrailingBufferZone()+a.getLeadingBufferZone())/a.getPageSize())*2+b):0},loadToPrefetch:function(b){var a=this,f=b,h,d,i,e=b.start,k=b.start+b.limit-1,m=a.getViewSize()||b.limit,c=Math.min(k,b.start+m-1),p=a.getPageFromRecordIndex(Math.max(e-a.getTrailingBufferZone(),0)),q=a.getPageFromRecordIndex(k+a.getLeadingBufferZone()),g=a.getData(),j=function(){d=d||[];if(b.loadCallback){b.loadCallback.call(b.scope||a,d,o,!0)}if(b.callback){b.callback.call(b.scope||a,d,e||0,k||0,b)}},n=function(){a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('load',a,d,!0)},l=function(){if(a.rangeCached(e,c)){a.loading=!1;d=g.getRange(e,c+1);g.un('pageadd',l);if(a.hasListeners.guaranteedrange){a.guaranteeRange(e,c,b.callback,b.scope)}j();n()}},o;g.setMaxSize(a.calculatePageCacheSize(m));if(a.fireEvent('beforeload',a,b)!==!1){delete a.totalCount;a.loading=!0;if(b.callback){f=Ext.apply({},b);delete f.callback}a.on('prefetch',function(k,d,b,e){o=e;if(b){if(i=a.getTotalCount()){g.on('pageadd',l);c=Math.min(c,i-1);q=a.getPageFromRecordIndex(Math.min(c+a.getLeadingBufferZone(),i-1));for(h=p+1;h<=q;++h){a.prefetchPage(h,f)}}else {j();n()}}else {a.loading=!1;j();a.fireEvent('load',a,d,!1)}},null,{single:!0});a.prefetchPage(p,f)}},prefetch:function(b){var a=this,c=a.getPageSize(),d=a.getData(),e,f;if(c){if(a.lastPageSize&&c!=a.lastPageSize){Ext.raise('pageSize cannot be dynamically altered')}if(!d.getPageSize()){d.setPageSize(c)}}else {a.pageSize=d.setPageSize(c=b.limit)}a.lastPageSize=c;if(!b.page){b.page=a.getPageFromRecordIndex(b.start);b.start=(b.page-1)*c;b.limit=Math.ceil(b.limit/c)*c}f=a.pageRequests[b.page];if(!f||f.getOperation().pageMapGeneration!==d.pageMapGeneration){b=Ext.apply({action:'read',filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper(),internalCallback:a.onProxyPrefetch,internalScope:a},b);e=a.createOperation('read',b);e.pageMapGeneration=d.pageMapGeneration;if(a.fireEvent('beforeprefetch',a,e)!==!1){a.pageRequests[b.page]=e.execute();if(a.getProxy().isSynchronous){delete a.pageRequests[b.page]}}}return a},onPageMapClear:function(){var a=this,e=a.wasLoading,d=a.pageRequests,b=a.getData(),c;b.clearListeners();b.on('clear',a.onPageMapClear,a);a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.loading=!0;a.totalCount=0;for(c in d){if(d.hasOwnProperty(c)){d[c].getOperation().abort()}}a.fireEvent('clear',a);a.loading=e},prefetchPage:function(d,e){var a=this,b=a.getPageSize(),f=(d-1)*b,c=a.totalCount;if(c!==undefined&&a.data.getCount()===c){return}a.prefetch(Ext.applyIf({page:d,start:f,limit:b},e))},onProxyPrefetch:function(b){if(this.destroyed){return}var a=this,g=b.getResultSet(),e=b.getRecords(),d=b.wasSuccessful(),i=b.getPage(),c=b.waitForReload,k=a.totalCount,h=a.pageRequests,j,f;if(b.pageMapGeneration===a.getData().pageMapGeneration){if(g){a.totalCount=g.getTotal();if(a.totalCount!==k){a.fireEvent('totalcountchange',a.totalCount)}}if(i!==undefined){delete a.pageRequests[i]}a.loading=!1;a.fireEvent('prefetch',a,e,d,b);if(d){if(a.totalCount===0){if(c){for(j in h){f=h[j].getOperation();if(f.waitForReload===c){delete f.waitForReload}}a.getData().un('pageadd',c);a.fireEvent('load',a,[],!0);a.fireEvent('refresh',a)}}else {a.cachePage(e,b.getPage())}}Ext.callback(b.getCallback(),b.getScope()||a,[e,b,d])}},cachePage:function(b,d){var a=this,e=b.length,c;if(!Ext.isDefined(a.totalCount)){a.totalCount=b.length;a.fireEvent('totalcountchange',a.totalCount)}for(c=0;cf-1?f-1:a.prefetchEnd,d;b=Math.max(0,b);d=c.getData().getRange(e,b+1);if(a.fireEvent!==!1){c.fireEvent('guaranteedrange',d,e,b,a)}if(a.callback){a.callback.call(a.scope||c,d,e,b,a)}},guaranteeRange:function(d,e,b,c,a){a=Ext.apply({callback:b,scope:c},a);this.getRange(d,e+1,a)},prefetchRange:function(c,d){var a=this,e,f,b,g=a.getData();if(!a.rangeCached(c,d)){e=a.getPageFromRecordIndex(c);f=a.getPageFromRecordIndex(d);g.setMaxSize(a.calculatePageCacheSize(d-c+1));for(b=e;b<=f;b++){if(!a.pageCached(b)){a.prefetchPage(b)}}}},primeCache:function(a,b,g){var c=this,f=c.getLeadingBufferZone(),e=c.getTrailingBufferZone(),h=c.getPageSize(),d=c.totalCount;if(g===-1){a=Math.max(a-f,0);b=Math.min(b+e,d-1)}else {if(g===1){a=Math.max(Math.min(a-e,d-h),0);b=Math.min(b+f,d-1)}else {a=Math.min(Math.max(Math.floor(a-(f+e)/2),0),d-c.pageSize);b=Math.min(Math.max(Math.ceil(b+(f+e)/2),0),d-1)}}c.prefetchRange(a,b)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else {this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent('beforesort',a,b);a.clearAndLoad({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('sort',a,b)}},clearAndLoad:function(a){this.getData().clear();this.loadPage(1,a)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return !1}}},0,0,0,0,['store.buffered'],0,[Ext.data,'BufferedStore'],0);Ext.cmd.derive('Ext.data.NodeInterface',Ext.Base,{statics:{decorate:function(f){var a=Ext.data.schema.Schema.lookupEntity(f),e=a.prototype,c,b,d;if(!a.prototype.isObservable){a.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(e.isNode){return}c=e.idProperty;b=a.getField(c);d=b.type;a.override(this.getPrototypeBody());a.addFields([{name:'parentId',type:d,defaultValue:null,allowNull:b.allowNull},{name:'index',type:'int',defaultValue:-1,persist:!1,convert:null},{name:'depth',type:'int',defaultValue:0,persist:!1,convert:null},{name:'expanded',type:'bool',defaultValue:!1,persist:!1,convert:null},{name:'expandable',type:'bool',defaultValue:!0,persist:!1,convert:null},{name:'checked',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'leaf',type:'bool',defaultValue:!1},{name:'cls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'iconCls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'icon',type:'string',defaultValue:'',persist:!1,convert:null},{name:'root',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isLast',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isFirst',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'allowDrop',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'allowDrag',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'loaded',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'loading',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'href',type:'string',defaultValue:'',persist:!1,convert:null},{name:'hrefTarget',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtip',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtitle',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qshowDelay',type:'int',defaultValue:0,persist:!1,convert:null},{name:'children',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'visible',type:'boolean',defaultValue:!0,persist:!1},{name:'text',type:'string',persist:!1}])},getPrototypeBody:function(){var a={idchanged:!0,append:!0,remove:!0,move:!0,insert:!0,beforeappend:!0,beforeremove:!0,beforemove:!0,beforeinsert:!0,expand:!0,collapse:!0,beforeexpand:!0,beforecollapse:!0,sort:!0},b={silent:!0};return {isNode:!0,firstChild:null,lastChild:null,parentNode:null,previousSibling:null,nextSibling:null,constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.callParent(arguments);a.childNodes=[];return a},createNode:function(a){var b=this,j=b.childType,h,f,g,c,d,e,i=b.self;if(!a.isModel){if(j){i=b.schema.getEntity(j)}else {h=b.getTreeStore();f=h&&h.getProxy().getReader();g=b.getProxy();c=g?g.getReader():null;d=!f||c&&c.initialConfig.typeProperty?c:f;if(d){e=d.getTypeProperty();if(e){i=d.getChildType(b.schema,a,e)}}}a=new i(a)}if(!a.childNodes){a.firstChild=a.lastChild=a.parentNode=a.previousSibling=a.nextSibling=null;a.childNodes=[]}return a},isLeaf:function(){return this.get('leaf')===!0},setFirstChild:function(a){this.firstChild=a},setLastChild:function(a){this.lastChild=a},updateInfo:function(o,k){var a=this,i=a.data,r=i.depth,m={},n=a.childNodes,q=n.length,s=a.phantom,t=a.fields,c=a.modified||(a.modified={}),b,e,j,d,p,l=k.parentId,g,h,f;for(b in k){j=t[a.fieldOrdinals[b]];e=k[b];h=j&&j.persist;d=i[b];g=h&&b==='index'&&d!==-1&&(l&&l!==c.parentId);if(!g&&a.isEqual(d,e)){continue}i[b]=e;if(h){if(!g&&c.hasOwnProperty(b)){if(a.isEqual(c[b],e)){delete c[b];a.dirty=!1;for(p in c){if(c.hasOwnProperty(p)){a.dirty=!0;break}}}}else {a.dirty=!0;c[b]=d}}}if(o){a.commit();a.phantom=s}if(a.data.depth!==r){m={depth:a.data.depth+1};for(f=0;f0},isExpandable:function(){var a=this;if(a.get('expandable')){return !(a.isLeaf()||a.isLoaded()&&!a.phantom&&!a.hasChildNodes())}return !1},triggerUIUpdate:function(){this.callJoined('afterEdit',[])},appendChild:function(b,h,l){var a=this,j,m,c,e,f,k={isLast:!0,parentId:a.getId(),depth:(a.data.depth||0)+1},i,d=a.getTreeStore(),g=d&&d.bulkUpdate;Ext.suspendLayouts();if(Ext.isArray(b)){m=b.length;i=new Array(m);a.callTreeStore('beginFill');for(j=0;j0){if(!e){e=c.getTreeStore().getSortFn()}Ext.Array.sort(a,e);c.setFirstChild(a[0]);c.setLastChild(a[g-1]);for(b=0;b0){d.children=c=[];for(a=0;a1&&!a.getRemoteSort()&&a.getFolderSort()||j.length,e,h,c,d;if(a.needsLocalFilter()){d=a.getFilters().getFilterFn();b[0].set('visible',d(b[0]))}for(c=1;c')}else {b.push('>');if(c=a.tpl){c.applyOut(a.tplData,b)}if(c=a.html){b.push(c)}if(c=a.cn||a.children){e.generateMarkup(c,b)}h=e.closeTags;b.push(h[f]||(h[f]=''))}}}return b},generateStyles:function(c,d,f){var e=d||[],a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];a=this.decamelizeName(a);if(f&&Ext.String.hasHtmlCharacters(b)){b=Ext.String.htmlEncode(b)}e.push(a,':',b,';')}}return d||e.join('')},markup:function(a){if(typeof a==='string'){return a}var b=this.generateMarkup(a,[]);return b.join('')},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(e){var d=this.detachedDiv,b=document.createDocumentFragment(),c,a;d.innerHTML=e;a=d.childNodes;c=a.length;while(c--){b.appendChild(a[0])}return b},createDom:function(e,f){var c=this,d=c.markup(e),b=c.detachedDiv,a;b.innerHTML=d;a=b.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(!0):a},insertHtml:function(g,f,j){var o=this,l,k,n,m,i;g=g.toLowerCase();if(f.insertAdjacentHTML){if(o.ieInsertHtml){i=o.ieInsertHtml(g,f,j);if(i){return i}}l=h[g];if(l){f.insertAdjacentHTML(l[0],j);return f[l[1]]}}else {if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}k=Ext.supports.CreateContextualFragment?f.ownerDocument.createRange():undefined;m='setStart'+(this.endRe.test(g)?'After':'Before');if(e[g]){if(k){k[m](f);i=k.createContextualFragment(j)}else {i=this.createContextualFragment(j)}f.parentNode.insertBefore(i,g===a?f:f.nextSibling);return f[(g===a?'previous':'next')+'Sibling']}else {n=(g===b?'first':'last')+'Child';if(f.firstChild){if(k){try{k[m](f[n]);i=k.createContextualFragment(j)}catch(p){i=this.createContextualFragment(j)}}else {i=this.createContextualFragment(j)}if(g===b){f.insertBefore(i,f.firstChild)}else {f.appendChild(i)}}else {f.innerHTML=j}return f[n]}}},insertBefore:function(c,d,b){return this.doInsert(c,d,b,a)},insertAfter:function(b,c,a){return this.doInsert(b,c,a,d)},insertFirst:function(c,d,a){return this.doInsert(c,d,a,b)},append:function(b,d,a){return this.doInsert(b,d,a,c)},overwrite:function(b,c,e){var d=this,a;b=Ext.getDom(b);c=d.markup(c);if(d.ieOverwrite){a=d.ieOverwrite(b,c)}if(!a){b.innerHTML=c;a=b.firstChild}return e?Ext.get(a):a},doInsert:function(f,j,k,g){var i=this,h;f=f.dom||Ext.getDom(f);if('innerHTML' in f){h=i.insertHtml(g,f,i.markup(j))}else {h=i.createDom(j,null);if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}if(e[g]){f.parentNode.insertBefore(h,g===a?f:f.nextSibling)}else {if(f.firstChild&&g===b){f.insertBefore(h,f.firstChild)}else {f.appendChild(h)}}}return k?Ext.get(h):h},createTemplate:function(b){var a=this.markup(b);return new Ext.Template(a)},createHtml:function(a){return this.markup(a)}}},0,0,0,0,0,0,[Ext.dom,'Helper',Ext,'DomHelper',Ext.core,'DomHelper'],0);Ext.define('Ext.overrides.dom.Helper',function(){var a=/^(?:table|thead|tbody|tr|td)$/i,f=/td|tr|tbody|thead/i,e='',d='
',c=e+'',b=''+d,h=c+'',g=''+b;return {override:'Ext.dom.Helper',ieInsertHtml:function(d,b,e){var c=null;if(Ext.isIE9m&&a.test(b.tagName)){c=this.insertIntoTable(b.tagName.toLowerCase(),d,b,e)}return c},ieOverwrite:function(b,c){if(Ext.isIE9m&&a.test(b.tagName)){while(b.firstChild){b.removeChild(b.firstChild)}if(c){return this.insertHtml('afterbegin',b,c)}}},ieTable:function(g,f,e,d){var h=-1,a=this.detachedDiv,b,c;a.innerHTML=[f,e,d].join('');while(++ha.interval){a.collect()}a.timerId=Ext.interval(a.collect,a.interval)}},1,0,0,0,0,0,[Ext.dom,'GarbageCollector'],0);Ext.cmd.derive('Ext.event.gesture.Recognizer',Ext.Base,{priority:0,handledEvents:[],config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(a){this.initConfig(a);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:Ext.emptyFn,onTouchCancel:Ext.emptyFn,fail:function(){return !1},fire:function(){this.getOnRecognized().apply(this.getCallbackScope(),arguments)},reset:Ext.emptyFn},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.event.gesture,'Recognizer'],0);Ext.cmd.derive('Ext.event.gesture.SingleTouch',Ext.event.gesture.Recognizer,{inheritableStatics:{NOT_SINGLE_TOUCH:'Not Single Touch',TOUCH_MOVED:'Touch Moved',EVENT_CANCELED:'Event Canceled'},onTouchStart:function(a){if(a.touches.length>1){return this.fail(this.self.NOT_SINGLE_TOUCH)}},onTouchCancel:function(){return !1}},0,0,0,0,0,0,[Ext.event.gesture,'SingleTouch'],0);Ext.cmd.derive('Ext.event.gesture.DoubleTap',Ext.event.gesture.SingleTouch,{priority:300,inheritableStatics:{DIFFERENT_TARGET:'Different Target'},config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:['singletap','doubletap'],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(c){var a=this,b;if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}b=a.lastStartPoint=c.changedTouches[0].point;a.startPoint=a.startPoint||b;a.startTime=c.time;clearTimeout(a.singleTapTimer)},onTouchMove:function(c){var a=this,b=c.changedTouches[0].point;if(Math.abs(b.getDistanceTo(a.lastStartPoint))>=a.getMoveDistance()){a.startPoint=null;return a.fail(a.self.TOUCH_MOVED)}},onTouchEnd:function(b){var a=this,f=a.getMaxDuration(),d=b.time,g=b.target,e=a.lastTapTime,h=a.lastTarget,i=b.changedTouches[0].point,c;a.lastTapTime=d;a.lastTarget=g;if(e){c=d-e;if(c<=f&&Math.abs(i.getDistanceTo(a.startPoint))<=a.getTapDistance()){if(g!==h){return a.fail(a.self.DIFFERENT_TARGET)}a.lastTarget=null;a.lastTapTime=0;a.fire('doubletap',b,{touch:b.changedTouches[0],duration:c});a.startPoint=null;return}}if(d-a.startTime>f){a.fireSingleTap(b)}else {a.setSingleTapTimer(b)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fireSingleTap(b)},a.getMaxDuration())},fireSingleTap:function(b,a){this.fire('singletap',b,{touch:a});this.startPoint=null},reset:function(){var a=this;a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null}},0,0,0,0,0,0,[Ext.event.gesture,'DoubleTap'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)});Ext.cmd.derive('Ext.event.gesture.Drag',Ext.event.gesture.SingleTouch,{priority:100,isStarted:!1,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:['dragstart','drag','dragend','dragcancel'],config:{minDistance:8},constructor:function(){Ext.event.gesture.SingleTouch.prototype.constructor.apply(this,arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0}}},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){if(this.isStarted&&this.lastMoveEvent!==null){this.lastMoveEvent.isStopped=!1;this.onTouchEnd(this.lastMoveEvent)}return !1}this.startTime=a.time;this.startPoint=a.changedTouches[0].point},tryDragStart:function(a){var f=this.startPoint,b=a.changedTouches[0],c=b.point,e=this.getMinDistance(),d=this.info;if(Math.abs(c.getDistanceTo(f))>=e){this.isStarted=!0;this.previousPoint=this.lastPoint=c;this.resetInfo('x',a,b);this.resetInfo('y',a,b);d.time=a.time;this.fire('dragstart',a,d)}},onTouchMove:function(a){if(!this.isStarted){this.tryDragStart(a)}if(!this.isStarted){return}var b=a.changedTouches[0],c=b.point;if(this.lastPoint){this.previousPoint=this.lastPoint}this.lastPoint=c;this.lastMoveEvent=a;this.updateInfo('x',a,b);this.updateInfo('y',a,b);this.info.time=a.time;this.fire('drag',a,this.info)},onAxisDragEnd:function(b,a){var c=a.time-a.previousTime[b];if(c>0){a.flick.velocity[b]=(a[b]-a.previous[b])/c}},resetInfo:function(b,h,g){var f=this.lastPoint[b],d=this.startPoint[b],e=f-d,c=b.toUpperCase(),a=this.info;a.touch=g;a.delta[b]=e;a.absDelta[b]=Math.abs(e);a.previousTime[b]=this.startTime;a.previous[b]=d;a[b]=f;a.direction[b]=0;a['start'+c]=this.startPoint[b];a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=0;a.startTime=this.startTime},updateInfo:function(b,l,k){var e=this,d=e.lastPoint[b],g=e.previousPoint[b],f=e.startPoint[b],i=d-f,a=e.info,h=a.direction,c=b.toUpperCase(),j=a.previous[b];a.touch=k;a.delta[b]=i;a.absDelta[b]=Math.abs(i);if(d!==j&&d!==a[b]){a.previous[b]=a[b];a.previousTime[b]=a.time}a[b]=d;if(d>g){h[b]=1}else {if(dthis.getMaxDuration()){return this.fail(this.self.MAX_DURATION_EXCEEDED)}if(this.isHorizontal&&d>this.getMaxOffset()){this.isHorizontal=!1}if(this.isVertical&&c>this.getMaxOffset()){this.isVertical=!1}if(!this.isVertical||!this.isHorizontal){if(this.isHorizontal&&cj){this.isVertical=!1}if(this.isHorizontal&&i>j){this.isHorizontal=!1}if(this.isVertical&&this.isHorizontal){if(i>h){this.isHorizontal=!1}else {this.isVertical=!1}}if(this.isHorizontal){a=f<0?'left':'right';b=f}else {if(this.isVertical){a=g<0?'up':'down';b=g}}a=this.direction||(this.direction=a);if(a==='up'){b=g*-1}else {if(a==='left'){b=f*-1}}this.distance=b;if(!b){return this.fail(this.self.DISTANCE_NOT_ENOUGH)}if(!this.started){if(a==='right'&&this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='down'&&this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='left'&&o-this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='up'&&n-this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}}}}this.started=!0;this.startTime=c.time;this.fire('edgeswipestart',c,{touch:e,direction:a,distance:b,duration:k})}else {this.fire('edgeswipe',c,{touch:e,direction:a,distance:b,duration:k})}},onTouchEnd:function(a){var b;if(this.onTouchMove(a)!==!1){b=a.time-this.startTime;this.fire('edgeswipeend',a,{touch:a.changedTouches[0],direction:this.direction,distance:this.distance,duration:b})}},onTouchCancel:function(a){this.fire('edgeswipecancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){var a=this;a.started=a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null}},0,0,0,0,0,0,[Ext.event.gesture,'EdgeSwipe'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)});Ext.cmd.derive('Ext.event.gesture.LongPress',Ext.event.gesture.SingleTouch,{priority:400,inheritableStatics:{DURATION_NOT_ENOUGH:'Duration Not Enough'},config:{moveDistance:8,minDuration:1000},handledEvents:['longpress','taphold'],fireLongPress:function(a){this.fire('longpress',a,{touch:a.changedTouches[0],duration:this.getMinDuration()});this.isLongPress=!0},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}this.startPoint=a.changedTouches[0].point;this.isLongPress=!1;this.setLongPressTimer(a)},setLongPressTimer:function(b){var a=this;a.timer=Ext.defer(function(){a.fireLongPress(b)},a.getMinDuration())},onTouchMove:function(b){var a=b.changedTouches[0].point;if(Math.abs(a.getDistanceTo(this.startPoint))>=this.getMoveDistance()){return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(){if(!this.isLongPress){return this.fail(this.self.DURATION_NOT_ENOUGH)}},fail:function(){clearTimeout(this.timer);return Ext.event.gesture.SingleTouch.prototype.fail.apply(this,arguments)},reset:function(){this.isLongPress=this.startPoint=null},fire:function(b){if(b==='longpress'){var a=Array.prototype.slice.call(arguments);a[0]='taphold';this.fire.apply(this,a)}return Ext.event.gesture.SingleTouch.prototype.fire.apply(this,arguments)}},0,0,0,0,0,0,[Ext.event.gesture,'LongPress'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)});Ext.cmd.derive('Ext.event.gesture.MultiTouch',Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:!1,isStarted:!1,onTouchStart:function(a){var b=this.requiredTouchesCount,d=a.touches,c=d.length;if(c===b){this.start(a)}else {if(c>b){this.end(a)}}},onTouchEnd:function(a){this.end(a)},onTouchCancel:function(a){this.end(a,!0);return !1},start:function(){if(!this.isTracking){this.isTracking=!0;this.isStarted=!1}},end:function(b,a){if(this.isTracking){this.isTracking=!1;if(this.isStarted){this.isStarted=!1;this[a?'fireCancel':'fireEnd'](b)}}},reset:function(){this.isTracking=this.isStarted=!1}},0,0,0,0,0,0,[Ext.event.gesture,'MultiTouch'],0);Ext.cmd.derive('Ext.event.gesture.Pinch',Ext.event.gesture.MultiTouch,{priority:600,handledEvents:['pinchstart','pinch','pinchend','pinchcancel'],startDistance:0,lastTouches:null,onTouchMove:function(c){if(!this.isTracking){return}var b=c.touches,e,d,a;e=b[0].point;d=b[1].point;a=e.getDistanceTo(d);if(a===0){return}if(!this.isStarted){this.isStarted=!0;this.startDistance=a;this.fire('pinchstart',c,{touches:b,distance:a,scale:1})}else {this.fire('pinch',c,{touches:b,distance:a,scale:a/this.startDistance})}},fireEnd:function(a){this.fire('pinchend',a)},fireCancel:function(a){this.fire('pinchcancel',a)},fail:function(){return Ext.event.gesture.MultiTouch.prototype.fail.apply(this,arguments)},reset:function(){this.lastTouches=null;this.startDistance=0;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Pinch'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.pinch)});Ext.cmd.derive('Ext.event.gesture.Rotate',Ext.event.gesture.MultiTouch,{priority:700,handledEvents:['rotatestart','rotate','rotateend','rotatecancel'],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(g){if(!this.isTracking){return}var b=g.touches,c=this.lastAngle,i,h,a,e,d,f;i=b[0].point;h=b[1].point;a=i.getAngleTo(h);if(c!==null){f=Math.abs(c-a);e=a+360;d=a-360;if(Math.abs(e-c)=this.getMoveDistance()){this.fire('tapcancel',b,{touch:a});return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(a){this.fire('tap',a,{touch:a.changedTouches[0]})},onTouchCancel:function(a){this.fire('tapcancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){this.startPoint=null}},0,0,0,0,0,0,[Ext.event.gesture,'Tap'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)});Ext.cmd.derive('Ext.event.publisher.Focus',Ext.event.publisher.Dom,{type:'focus',handledEvents:['focusenter','focusleave','focusmove'],handledDomEvents:['focusin','focusout'],doDelegatedEvent:function(a,c){var d=this,b;a=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,a,!1);if(a){if(a.type==='focusout'){if(a.relatedTarget==null){d.processFocusIn(a,a.target,document.body,c)}}else {b=a.relatedTarget;d.processFocusIn(a,b==null||!b.tagName?document.body:b,a.target,c)}}},processFocusIn:function(i,d,e,l){var c=this,h,a,b=[],f,g,j,k;j=Ext.fly(d);k=Ext.fly(e);if(j&&j.isFocusSuspended()||k&&k.isFocusSuspended()){return}for(a=d,h=Ext.dom.Element.getCommonAncestor(e,d,!0);a&&a!==h;a=a.parentNode){b.push(a)}if(b.length){f=c.createSyntheticEvent('focusleave',i,d,e);c.publish('focusleave',b,f);if(f.isStopped){return}}b.length=0;for(a=e;a!==h;a=a.parentNode){b.push(a)}g=c.createSyntheticEvent('focusenter',i,e,d);if(b.length){c.publish('focusenter',b,g);if(g.isStopped){return}}b=c.getPropagatingTargets(h);if(b.length){f=c.createSyntheticEvent('focusmove',i,e,d);c.publish('focusmove',b,f);if(f.isStopped){return}}if(l){c.afterEvent(i)}Ext.GlobalEvents.fireEvent('focus',{event:g,toElement:e,fromElement:d})},createSyntheticEvent:function(d,c,e,b){var a=new Ext.event.Event(c);a.type=d;a.relatedTarget=b;a.target=e;return a}},0,0,0,0,0,0,[Ext.event.publisher,'Focus'],function(a){var b;a.instance=new a();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:['focus','blur'],doDelegatedEvent:function(c,e){var d=this;c=d.callSuper([c,!1]);if(c){clearTimeout(b);b=0;if(c.type==='blur'){var f=c.target===window?document.body:c.target;b=setTimeout(function(){b=0;d.processFocusIn(c,f,document.body,e);a.previousActiveElement=null},0);if(c.target===window||c.target===document){a.previousActiveElement=null}else {a.previousActiveElement=c.target}}else {d.processFocusIn(c,a.previousActiveElement||document.body,c.target===window?document.body:c.target,e)}}}})}});Ext.cmd.derive('Ext.fx.State',Ext.Base,{isAnimatable:{'background-color':!0,'background-image':!0,'background-position':!0,'border-bottom-color':!0,'border-bottom-width':!0,'border-color':!0,'border-left-color':!0,'border-left-width':!0,'border-right-color':!0,'border-right-width':!0,'border-spacing':!0,'border-top-color':!0,'border-top-width':!0,'border-width':!0,'bottom':!0,'color':!0,'crop':!0,'font-size':!0,'font-weight':!0,'height':!0,'left':!0,'letter-spacing':!0,'line-height':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'opacity':!0,'outline-color':!0,'outline-offset':!0,'outline-width':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'right':!0,'text-indent':!0,'text-shadow':!0,'top':!0,'vertical-align':!0,'visibility':!0,'width':!0,'word-spacing':!0,'z-index':!0,'zoom':!0,'transform':!0},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(d,a){var g=this.data,e=Ext.isArray(a),b=g.transform,c,f;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof d=='string'){switch(d){case 'translate':if(e){c=a.length;if(c==0){break}b.translateX=a[0];if(c==1){break}b.translateY=a[1];if(c==2){break}b.translateZ=a[2]}else {b.translateX=a};break;case 'rotate':if(e){c=a.length;if(c==0){break}b.rotateX=a[0];if(c==1){break}b.rotateY=a[1];if(c==2){break}b.rotateZ=a[2]}else {b.rotate=a};break;case 'scale':if(e){c=a.length;if(c==0){break}b.scaleX=a[0];if(c==1){break}b.scaleY=a[1];if(c==2){break}b.scaleZ=a[2]}else {b.scaleX=a;b.scaleY=a};break;case 'skew':if(e){c=a.length;if(c==0){break}b.skewX=a[0];if(c==1){break}b.skewY=a[1]}else {b.skewX=a};break;default:b[d]=a;}}else {for(f in d){if(d.hasOwnProperty(f)){a=d[f];this.setTransform(f,a)}}}},set:function(b,a){var d=this.data,c;if(typeof b!='string'){for(c in b){a=b[c];if(c==='transform'){this.setTransform(a)}else {d[c]=a}}}else {if(b==='transform'){this.setTransform(a)}else {d[b]=a}}return this},unset:function(b){var a=this.data;if(a.hasOwnProperty(b)){delete a[b]}return this},getData:function(){return this.data}},1,0,0,0,0,0,[Ext.fx,'State'],0);Ext.cmd.derive('Ext.fx.animation.Abstract',Ext.Evented,{isAnimation:!0,config:{name:'',element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:'linear',iteration:1,direction:'normal',delay:0,onBeforeStart:null,callback:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:!1,replacePrevious:!0},STATE_FROM:'0%',STATE_TO:'100%',DIRECTION_UP:'up',DIRECTION_DOWN:'down',DIRECTION_LEFT:'left',DIRECTION_RIGHT:'right',stateNameRegex:/^(?:[\d\.]+)%$/,constructor:function(){this.states={};Ext.Evented.prototype.constructor.apply(this,arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(b){var c=this.stateNameRegex,a;for(a in b){if(c.test(a)){this.setState(a,b[a])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent('stop',this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(c,d){var b=this.getStates(),a;a=Ext.factory(d,Ext.fx.State,b[c]);if(a){b[c]=a}return this},getState:function(a){return this.getStates()[a]},getData:function(){var a=this,b=a.getStates(),d={},e=a.getBefore(),f=a.getAfter(),k=b[a.STATE_FROM],l=b[a.STATE_TO],i=k.getData(),j=l.getData(),h,c,g;for(c in b){if(b.hasOwnProperty(c)){g=b[c];h=g.getData();d[c]=h}}return {before:e?e.getData():{},after:f?f.getData():{},states:d,from:i,to:j,duration:a.getDuration(),iteration:a.getIteration(),direction:a.getDirection(),easing:a.getEasing(),delay:a.getDelay(),onEnd:a.getOnEnd(),onBeforeEnd:a.getOnBeforeEnd(),onBeforeStart:a.getOnBeforeStart(),scope:a.getScope(),preserveEndState:a.getPreserveEndState(),replacePrevious:a.getReplacePrevious()}}},1,0,0,0,0,0,[Ext.fx.animation,'Abstract'],0);Ext.cmd.derive('Ext.fx.animation.Slide',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.SlideIn',config:{direction:'left',out:!1,offset:0,easing:'auto',containerBox:'auto',elementBox:'auto',isElementBoxFit:!0,useCssTransform:!0},reverseDirectionMap:{up:'down',down:'up',left:'right',right:'left'},applyEasing:function(a){if(a==='auto'){return 'ease-'+(this.getOut()?'in':'out')}return a},getContainerBox:function(){var a=this._containerBox;if(a==='auto'){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==='auto'){a=this.getElement().getBox()}return a},getData:function(){var o=this.getElementBox(),b=this.getContainerBox(),a=o?o:b,j=this.getFrom(),m=this.getTo(),d=this.getOut(),c=this.getOffset(),g=this.getDirection(),n=this.getUseCssTransform(),p=this.getReverse(),e=0,f=0,h,i,k,l;if(p){g=this.reverseDirectionMap[g]}switch(g){case this.DIRECTION_UP:if(d){f=b.top-a.top-a.height-c}else {f=b.bottom-a.bottom+a.height+c};break;case this.DIRECTION_DOWN:if(d){f=b.bottom-a.bottom+a.height+c}else {f=b.top-a.height-a.top-c};break;case this.DIRECTION_RIGHT:if(d){e=b.right-a.right+a.width+c}else {e=b.left-a.left-a.width-c};break;case this.DIRECTION_LEFT:if(d){e=b.left-a.left-a.width-c}else {e=b.right-a.right+a.width+c};break;}h=d?0:e;i=d?0:f;if(n){j.setTransform({translateX:h,translateY:i})}else {j.set('left',h);j.set('top',i)}k=d?e:0;l=d?f:0;if(n){m.setTransform({translateX:k,translateY:l})}else {m.set('left',k);m.set('top',l)}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.slide','animation.slideIn'],0,[Ext.fx.animation,'Slide',Ext.fx.animation,'SlideIn'],0);Ext.cmd.derive('Ext.fx.animation.SlideOut',Ext.fx.animation.Slide,{config:{out:!0}},0,0,0,0,['animation.slideOut'],0,[Ext.fx.animation,'SlideOut'],0);Ext.cmd.derive('Ext.fx.animation.Fade',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.FadeIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(c){var b=this.getTo(),a=this.getFrom();if(c){a.set('opacity',1);b.set('opacity',0)}else {a.set('opacity',0);b.set('opacity',1)}}},0,0,0,0,['animation.fade','animation.fadeIn'],0,[Ext.fx.animation,'Fade',Ext.fx.animation,'FadeIn'],0);Ext.cmd.derive('Ext.fx.animation.FadeOut',Ext.fx.animation.Fade,{config:{out:!0,before:{}}},0,0,0,0,['animation.fadeOut'],0,[Ext.fx.animation,'FadeOut'],0);Ext.cmd.derive('Ext.fx.animation.Flip',Ext.fx.animation.Abstract,{config:{easing:'ease-in',direction:'right',half:!1,out:null},getData:function(){var c=this,k=c.getFrom(),m=c.getTo(),j=c.getDirection(),b=c.getOut(),l=c.getHalf(),a=l?90:180,h=1,i=1,d=0,e=0,f=0,g=0;if(b){i=0.8}else {h=0.8}switch(j){case this.DIRECTION_UP:if(b){f=a}else {d=-a};break;case this.DIRECTION_DOWN:if(b){f=-a}else {d=a};break;case this.DIRECTION_RIGHT:if(b){g=a}else {e=-a};break;case this.DIRECTION_LEFT:if(b){g=-a}else {e=a};break;}k.setTransform({rotateX:d,rotateY:e,scale:h});m.setTransform({rotateX:f,rotateY:g,scale:i});return Ext.fx.animation.Abstract.prototype.getData.call(this)}},0,0,0,0,['animation.flip'],0,[Ext.fx.animation,'Flip'],0);Ext.cmd.derive('Ext.fx.animation.Pop',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.PopIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var b=this.getTo(),a=this.getFrom(),c=this.getOut();if(c){a.set('opacity',1);a.setTransform({scale:1});b.set('opacity',0);b.setTransform({scale:0})}else {a.set('opacity',0);a.setTransform({scale:0});b.set('opacity',1);b.setTransform({scale:1})}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.pop','animation.popIn'],0,[Ext.fx.animation,'Pop',Ext.fx.animation,'PopIn'],0);Ext.cmd.derive('Ext.fx.animation.PopOut',Ext.fx.animation.Pop,{config:{out:!0,before:{}}},0,0,0,0,['animation.popOut'],0,[Ext.fx.animation,'PopOut'],0);Ext.cmd.derive('Ext.fx.Animation',Ext.Base,{constructor:function(a){var c=Ext.fx.animation.Abstract,b;if(typeof a=='string'){b=a;a={}}else {if(a&&a.type){b=a.type}}if(b){c=Ext.ClassManager.getByAlias('animation.'+b)}return Ext.factory(a,c)}},1,0,0,0,0,0,[Ext.fx,'Animation'],0);Ext.cmd.derive('Ext.fx.runner.Css',Ext.Evented,{prefixedProperties:{'transform':!0,'transform-origin':!0,'perspective':!0,'transform-style':!0,'transition':!0,'transition-property':!0,'transition-duration':!0,'transition-timing-function':!0,'transition-delay':!0,'animation':!0,'animation-name':!0,'animation-duration':!0,'animation-iteration-count':!0,'animation-direction':!0,'animation-timing-function':!0,'animation-delay':!0},lengthProperties:{'top':!0,'right':!0,'bottom':!0,'left':!0,'width':!0,'height':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'border-bottom-width':!0,'border-left-width':!0,'border-right-width':!0,'border-spacing':!0,'border-top-width':!0,'border-width':!0,'outline-width':!0,'letter-spacing':!0,'line-height':!0,'text-indent':!0,'word-spacing':!0,'font-size':!0,'translate':!0,'translateX':!0,'translateY':!0,'translateZ':!0,'translate3d':!0},durationProperties:{'transition-duration':!0,'transition-delay':!0,'animation-duration':!0,'animation-delay':!0},angleProperties:{rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,skew:!0,skewX:!0,skewY:!0},lengthUnitRegex:/([a-z%]*)$/,DEFAULT_UNIT_LENGTH:'px',DEFAULT_UNIT_ANGLE:'deg',DEFAULT_UNIT_DURATION:'ms',formattedNameCache:{},transformMethods3d:['translateX','translateY','translateZ','rotate','rotateX','rotateY','rotateZ','skewX','skewY','scaleX','scaleY','scaleZ'],transformMethodsNo3d:['translateX','translateY','rotate','skewX','skewY','scaleX','scaleY'],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement('style');a.type='text/css';(document.head||document.getElementsByTagName('head')[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var i=this.getStyleSheet(),h=this.ruleStylesCache,k=i.cssRules,d,g,b,c,f,a,e;for(d in j){g=j[d];b=h[d];if(b===undefined){f=k.length;i.insertRule(d+'{}',f);b=h[d]=k.item(f).style}c=b.$cache;if(!c){c=b.$cache={}}for(a in g){e=this.formatValue(g[a],a);a=this.formatName(a);if(c[a]!==e){c[a]=e;if(e===null){b.removeProperty(a)}else {b.setProperty(a,e,'important')}}}}return this},applyStyles:function(f){var c,e,d,b,a,g;for(c in f){if(f.hasOwnProperty(c)){e=document.getElementById(c);if(!e){continue}d=e.style;b=f[c];for(a in b){if(b.hasOwnProperty(a)){g=this.formatValue(b[a],a);a=this.formatName(a);if(g===null){d.removeProperty(a)}else {d.setProperty(a,g,'important')}}}}}return this},formatName:function(b){var c=this.formattedNameCache,a=c[b];if(!a){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){a=this.vendorPrefix+b}else {a=b}c[b]=a}return a},formatValue:function(a,c){var j=typeof a,i=this.DEFAULT_UNIT_LENGTH,g,d,b,f,h,e,k;if(a===null){return ''}if(j=='string'){if(this.lengthProperties[c]){k=a.match(this.lengthUnitRegex)[1];if(k.length>0){}else {return a+i}}return a}else {if(j=='number'){if(a==0){return '0'}if(this.lengthProperties[c]){return a+i}if(this.angleProperties[c]){return a+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[c]){return a+this.DEFAULT_UNIT_DURATION}}else {if(c==='transform'){g=this.transformMethods;h=[];for(b=0,f=g.length;b0?e.join(', '):'none'}}}}return a}},1,0,0,0,0,0,[Ext.fx.runner,'Css'],0);Ext.cmd.derive('Ext.fx.runner.CssTransition',Ext.fx.runner.Css,{alternateClassName:'Ext.Animator',singleton:!0,listenersAttached:!1,constructor:function(){this.runningAnimationsData={};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=!0;Ext.getWin().on('transitionend','onTransitionEnd',this)},onTransitionEnd:function(c){var a=c.target,b=a.id;if(b&&this.runningAnimationsData.hasOwnProperty(b)){this.refreshRunningAnimationsData(Ext.get(a),[c.browserEvent.propertyName])}},onAnimationEnd:function(d,a,b,c,n){var l=d.getId(),j=this.runningAnimationsData[l],k={},h={},g,f,e,m,i;b.un('stop','onAnimationStop',this);if(j){g=j.nameMap}k[l]=h;if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,d,c)}b.fireEvent('animationbeforeend',b,d,c);this.fireEvent('animationbeforeend',this,b,d,c);if(n||!c&&!a.preserveEndState){f=a.toPropertyNames;for(e=0,m=f.length;e0},refreshRunningAnimationsData:function(i,m,f,g){var s=i.getId(),r=this.runningAnimationsData,e=r[s];if(!e){return}var o=e.nameMap,n=e.nameList,c=e.sessions,h,j,p,d,b,a,k,q,l=!1;f=Boolean(f);g=Boolean(g);if(!c){return this}h=c.length;if(h===0){return this}if(g){e.nameMap={};n.length=0;for(b=0;b');b.close();this.testElement=c=b.createElement('div');c.style.setProperty('position','absolute','important');b.body.appendChild(c);this.testElementComputedStyle=window.getComputedStyle(c)}return c},getCssStyleValue:function(b,a){var c=this.getTestElement(),e=this.testElementComputedStyle,d=c.style;d.setProperty(b,a);if(Ext.browser.is.Firefox){c.offsetHeight}a=e.getPropertyValue(b);d.removeProperty(b);return a},run:function(t){var a=this,H=a.lengthProperties,E={},j={},d={},i,f,m,k,F,g,e,u,v,s,r,w,x,G,c,o,y,C,h,b,l,D,n,z,q,p,A,B;if(!a.listenersAttached){a.attachListeners()}t=Ext.Array.from(t);for(w=0,G=t.length;w0){a.refreshRunningAnimationsData(i,Ext.Array.merge(g,e),!0,d.replacePrevious)}q=s.nameMap;p=s.nameList;y={};for(x=0;x0){g=Ext.Array.difference(p,g);e=Ext.Array.merge(g,e);r['transition-property']=g}E[f]=r;j[f]=Ext.apply({},k);j[f]['transition-property']=e;j[f]['transition-duration']=d.duration;j[f]['transition-timing-function']=d.easing;j[f]['transition-delay']=d.delay;c.startTime=Date.now()}v=a.$className;a.applyStyles(E);u=function(b){if(b.data===v&&b.source===window){window.removeEventListener('message',u,!1);a.applyStyles(j)}};if(window.requestAnimationFrame){window.requestAnimationFrame(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')})}else {Ext.defer(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')},1)}},onAnimationStop:function(h){var c=this.runningAnimationsData,e,f,d,b,g,a;for(e in c){if(c.hasOwnProperty(e)){f=c[e];d=f.sessions;for(b=0,g=d.length;b'){this.isParentReference=!0;a=a.substring(0,b)}return a}}},0,0,0,0,0,0,[Ext.mixin,'Container'],0);Ext.cmd.derive('Ext.mixin.Responsive',Ext.Mixin,function(a){return {mixinConfig:{id:'responsive',after:{destroy:'destroy'}},config:{responsiveConfig:{$value:undefined,merge:function(b,c,f,e){if(!b){return c}var d=c?Ext.Object.chain(c):{},a;for(a in b){if(!e||!(a in d)){d[a]={fn:null,config:b[a]}}}return d}},responsiveFormulas:{$value:0,merge:function(b,c,d,a){return this.mergeNew(b,c,d,a)}}},destroy:function(){a.unregister(this);this.callParent()},privates:{statics:{active:!1,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=!0;a.updateContext();Ext.on('resize',a.onResize,a)},deactivate:function(){a.active=!1;Ext.un('resize',a.onResize,a)},notify:function(){var b=a.all,e=a.context,d=Ext.GlobalEvents,f=a.timer,c;if(f){a.timer=null;Ext.Function.cancelAnimationFrame(f)}a.updateContext();Ext.suspendLayouts();d.fireEvent('beforeresponsiveupdate',e);for(c in b){b[c].setupResponsiveContext()}d.fireEvent('beginresponsiveupdate',e);for(c in b){b[c].updateResponsiveState()}d.fireEvent('responsiveupdate',e);Ext.resumeLayouts(!0)},onResize:function(){if(!a.timer){a.timer=Ext.Function.requestAnimationFrame(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(b,c,a){var f=c&&c[a],e=b.config,g,d;if(f){d=b.getConfigurator();g=d.configs[a];e[a]=g.merge(f,e[a],b)}},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),c=e.getViewportHeight(),b=a.context;b.width=d;b.height=c;b.tall=d','',' ({childCount} children)','','',' ({depth} deep)','','',', {type}: {[this.time(values.sum)]} msec (','avg={[this.time(values.sum / parent.count)]}',')','',''].join(''),{time:function(a){return Math.round(a*100)/100}})}var a=this.getData(b);a.name=this.name;a.pure.type='Pure';a.total.type='Total';a.times=[a.pure,a.total];return c.apply(a)},getData:function(b){var a=this;return {count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:setToJSON(a.count,a.childCount,b,a.pure),total:setToJSON(a.count,a.childCount,b,a.total)}},enter:function(){var c=this,d={accum:c,leave:leaveFrame,childTime:0,parent:b};++c.depth;if(c.maxDepth0){d=a==='this'?this:typeof a==='string'?this[a]:typeof a==='number'?arguments[a]:null;if(d){e=d.id}if(e!=null){console.log(b+' for '+e+': '+c+'ms')}else {console.log(b+' for unknown: '+c+'ms')}if(console.trace){console.trace()}}return g}}(b,d[b])}Ext.override(f,c)}}}}},1,0,0,0,0,0,[Ext.perf,'Monitor',Ext,'Perf'],0);Ext.cmd.derive('Ext.plugin.Abstract',Ext.Base,{alternateClassName:'Ext.AbstractPlugin',isPlugin:!0,constructor:function(a){if(a){this.pluginConfig=a;this.initConfig(a)}},clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},setCmp:function(a){this.cmp=a},getCmp:function(){return this.cmp},init:Ext.emptyFn,destroy:function(){this.cmp=this.pluginConfig=null;this.callParent()},onClassExtended:function(c,b,d){var a=b.alias;if(a&&!b.ptype){if(Ext.isArray(a)){a=a[0]}c.prototype.ptype=a.split('plugin.')[1]}},resolveListenerScope:function(b){var a=this,d=a.getCmp(),c;if(d){c=d.resolveSatelliteListenerScope(a,b)}return c||a.mixins.observable.resolveListenerScope.call(a,b)}},1,0,0,0,0,0,[Ext.plugin,'Abstract',Ext,'AbstractPlugin'],0);Ext.define('Ext.overrides.plugin.Abstract',{override:'Ext.plugin.Abstract',$configStrict:!1,$configPrefixed:!1,disabled:!1,getState:null,applyState:null,enable:function(){this.disabled=!1},disable:function(){this.disabled=!0}});Ext.cmd.derive('Ext.util.ItemCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.ItemCollection',getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}},0,0,0,0,0,0,[Ext.util,'ItemCollection',Ext,'ItemCollection'],0);Ext.cmd.derive('Ext.util.TaskManager',Ext.util.TaskRunner,{alternateClassName:['Ext.TaskManager'],singleton:!0},0,0,0,0,0,0,[Ext.util,'TaskManager',Ext,'TaskManager'],0);Ext.cmd.derive('Ext.util.TextMetrics',Ext.Base,{statics:{shared:null,measure:function(d,e,c){var b=this,a=b.shared;if(!a){a=b.shared=new b(d,c)}a.bind(d);a.setFixedWidth(c||'auto');return a.getSize(e)},destroy:function(){var a=this;Ext.destroy(a.shared);a.shared=null}},constructor:function(c,b){var d=this,a=Ext.getBody().createChild({role:'presentation',cls:'x-textmetrics'});a.setVisibilityMode(1);d.measure=a;if(c){d.bind(c)}a.position('absolute');a.setLocalXY(-1000,-1000);a.hide();if(b){a.setWidth(b)}},getSize:function(c){var a=this.measure,b;a.setHtml(c);b=a.getSize();a.setHtml('');return b},bind:function(b){var a=this;a.el=Ext.get(b);a.measure.setStyle(a.el.getStyle(['font-size','font-style','font-weight','font-family','line-height','text-transform','letter-spacing','word-break']))},setFixedWidth:function(a){this.measure.setWidth(a)},getWidth:function(a){this.measure.dom.style.width='auto';return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height},destroy:function(){var a=this;a.el=a.measure=Ext.destroy(a.measure);a.callParent()}},1,0,0,0,0,0,[Ext.util,'TextMetrics'],function(){Ext.Element.override({getTextWidth:function(a,c,b){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(a,this.dom.innerHTML,!0)).width,c||0,b||1000000)}})});Ext.define(null,{override:'Ext.event.publisher.Focus',compatibility:Ext.isIE10m,doDelegatedEvent:function(a,d){var c=document.body,b=Ext.synchronouslyFocusing;if(b&&(a.type==='focusout'&&a.srcElement===b&&a.toElement===c||a.type==='focusin'&&a.srcElement===c&&a.fromElement===b&&a.toElement===null)){return}return this.callParent([a,d])}});Ext.define(null,{override:'Ext.scroll.DomScroller',compatibility:Ext.isIE8,privates:{doScrollTo:function(a,b,j){var c=this,f=c.getElement(),e,d,i,g,h;if(f&&!f.destroyed){d=this.getElement().dom;g=a===Infinity;h=b===Infinity;if(g||h){e=c.getMaxPosition();if(g){a=e.x}if(h){b=e.y}}a=c.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}f.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(a!=null&&b!=null){c.deferDomScroll=!0}if(b!=null){d.scrollTop=b}if(a!=null){d.scrollLeft=a}if(c.deferDomScroll){c.deferDomScroll=!1;+d.scrollLeft;d.scrollLeft=a}}c.positionDirty=!0}},onDomScroll:function(){var a=this;if(a.deferDomScroll){return}a.callParent()}}});Ext.cmd.derive('Ext.ElementLoader',Ext.Base,{statics:{Renderer:{Html:function(c,b,a){c.getTarget().setHtml(b.responseText,a.scripts===!0,a.rendererScope);return !0}}},url:null,params:null,baseParams:null,autoLoad:!1,target:null,loadMask:!1,ajaxOptions:null,scripts:!1,isLoader:!0,constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.setTarget(a.target);if(a.autoLoad){b=a.autoLoad;if(b===!0){b=null}a.load(b)}},setTarget:function(a){var b=this;a=Ext.get(a);if(b.target&&b.target!==a){b.abort()}b.target=a},getTarget:function(){return this.target||null},abort:function(){var a=this.active;if(a!==undefined){Ext.Ajax.abort(a.request);if(a.mask){this.removeMask()}delete this.active}},removeMask:function(){this.target.unmask()},addMask:function(a){this.target.mask(a===!0?null:a)},load:function(b){b=Ext.apply({},b);var a=this,d=Ext.isDefined(b.loadMask)?b.loadMask:a.loadMask,c=Ext.apply({},b.params),e=Ext.apply({},b.ajaxOptions),f=b.callback||a.callback,g=b.scope||a.scope||a;Ext.applyIf(e,a.ajaxOptions);Ext.applyIf(b,e);Ext.applyIf(c,a.params);Ext.apply(c,a.baseParams);Ext.applyIf(b,{url:a.url});Ext.apply(b,{scope:a,params:c,callback:a.onComplete});if(a.fireEvent('beforeload',a,b)===!1){return}if(d){a.addMask(d)}a.active={options:b,mask:d,scope:g,callback:f,success:b.success||a.success,failure:b.failure||a.failure,renderer:b.renderer||a.renderer,scripts:Ext.isDefined(b.scripts)?b.scripts:a.scripts};a.active.request=Ext.Ajax.request(b);a.setOptions(a.active,b)},setOptions:function(b,a){b.rendererScope=a.rendererScope||this.rendererScope||this},onComplete:function(d,e,c){var a=this,b=a.active,g,f;if(b){f=b.scope;g=b.rendererScope;if(e){e=a.getRenderer(b.renderer).call(g,a,c,b)!==!1}if(e){Ext.callback(b.success,f,[a,c,d]);a.fireEvent('load',a,c,d)}else {Ext.callback(b.failure,f,[a,c,d]);a.fireEvent('exception',a,c,d)}Ext.callback(b.callback,f,[a,e,c,d]);if(b.mask){a.removeMask()}}delete a.active},getRenderer:function(a){if(Ext.isFunction(a)){return a}return this.statics().Renderer.Html},startAutoRefresh:function(b,c){var a=this;a.stopAutoRefresh();a.autoRefresh=Ext.interval(function(){a.load(c)},b)},stopAutoRefresh:function(){clearInterval(this.autoRefresh);delete this.autoRefresh},isAutoRefreshing:function(){return Ext.isDefined(this.autoRefresh)},destroy:function(){var a=this;a.stopAutoRefresh();delete a.target;a.abort();a.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext,'ElementLoader'],0);Ext.cmd.derive('Ext.ComponentLoader',Ext.ElementLoader,{statics:{Renderer:{Data:function(c,b,d){var a=!0;try{c.getTarget().update(Ext.decode(b.responseText))}catch(e){a=!1}return a},Component:function(f,d,e){var b=!0,a=f.getTarget(),c=[];try{c=Ext.decode(d.responseText)}catch(g){b=!1}if(b){a.suspendLayouts();if(e.removeAll){a.removeAll()}a.add(c);a.resumeLayouts(!0)}return b}}},target:null,loadOnRender:!1,loadMask:!1,renderer:'html',setTarget:function(b){var a=this;if(Ext.isString(b)){b=Ext.getCmp(b)}if(a.target&&a.target!==b){a.abort()}a.target=b;if(b&&a.loadOnRender){if(b.rendered){a.doLoadOnRender()}else {a.mon(b,'render',a.doLoadOnRender,a)}}},doLoadOnRender:function(){var a=this.loadOnRender;this.load(Ext.isObject(a)?a:null)},removeMask:function(){this.target.setLoading(!1)},addMask:function(a){this.target.setLoading(a)},setOptions:function(b,a){b.removeAll=Ext.isDefined(a.removeAll)?a.removeAll:this.removeAll;b.rendererScope=a.rendererScope||this.rendererScope||this.target},getRenderer:function(a){if(Ext.isFunction(a)){return a}var b=this.statics().Renderer;switch(a){case 'component':return b.Component;case 'data':return b.Data;default:return Ext.ElementLoader.Renderer.Html;}}},0,0,0,0,0,0,[Ext,'ComponentLoader'],0);Ext.cmd.derive('Ext.layout.SizeModel',Ext.Base,{constructor:function(e){var a=this,b=a.self,d=b.sizeModelsArray,c;Ext.apply(a,e);a[c=a.name]=!0;a.fixed=!(a.auto=a.natural||a.shrinkWrap);d[a.ordinal=d.length]=b[c]=b.sizeModels[c]=a},statics:{sizeModelsArray:[],sizeModels:{}},calculated:!1,configured:!1,constrainedMax:!1,constrainedMin:!1,natural:!1,shrinkWrap:!1,calculatedFromConfigured:!1,calculatedFromNatural:!1,calculatedFromShrinkWrap:!1,names:null},1,0,0,0,0,0,[Ext.layout,'SizeModel'],function(){var a=this,d=a.sizeModelsArray,b,c,f,g,e;new a({name:'calculated'});new a({name:'configured',names:{width:'width',height:'height'}});new a({name:'natural'});new a({name:'shrinkWrap'});new a({name:'calculatedFromConfigured',configured:!0,calculatedFrom:!0,names:{width:'width',height:'height'}});new a({name:'calculatedFromNatural',natural:!0,calculatedFrom:!0});new a({name:'calculatedFromShrinkWrap',shrinkWrap:!0,calculatedFrom:!0});new a({name:'constrainedMax',configured:!0,constrained:!0,names:{width:'maxWidth',height:'maxHeight'}});new a({name:'constrainedMin',configured:!0,constrained:!0,names:{width:'minWidth',height:'minHeight'}});new a({name:'constrainedDock',configured:!0,constrained:!0,constrainedByMin:!0,names:{width:'dockConstrainedWidth',height:'dockConstrainedHeight'}});for(b=0,f=d.length;b-1&&e','
role="presentation"','class="{innerCtCls}">','{%this.renderBody(out,values)%}','
',''],beginLayout:function(a){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(a)},beforeLayoutCycle:function(d){var a=this.owner,c=a.inheritedState,b=a.inheritedStateInner;if(!c||c.invalid){c=a.getInherited();b=a.inheritedStateInner}if(d.widthModel.shrinkWrap){b.inShrinkWrapTable=!0}else {delete b.inShrinkWrapTable}},beginLayoutCycle:function(e){var a=this,g=a.outerCt,l=a.lastOuterCtWidth||'',k=a.lastOuterCtHeight||'',j=a.lastOuterCtTableLayout||'',i=e.state,f,d,c,b,h;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);d=c=b='';if(!e.widthModel.shrinkWrap){d='100%';h=a.owner.inheritedStateInner;f=a.getOverflowXStyle(e);b=h.inShrinkWrapTable||f==='auto'||f==='scroll'?'':'fixed'}if(!e.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){c='100%'}if(d!==l||a.hasOuterCtPxWidth){g.setStyle('width',d);a.lastOuterCtWidth=d;a.hasOuterCtPxWidth=!1}if(b!==j){g.setStyle('table-layout',b);a.lastOuterCtTableLayout=b}if(c!==k||a.hasOuterCtPxHeight){g.setStyle('height',c);a.lastOuterCtHeight=c;a.hasOuterCtPxHeight=!1}if(a.hasInnerCtPxHeight){a.innerCt.setStyle('height','');a.hasInnerCtPxHeight=!1}i.overflowAdjust=i.overflowAdjust||a.lastOverflowAdjust},calculate:function(b){var a=this,d=b.state,c=a.getContainerSize(b,!0),e=d.calculatedItems||(d.calculatedItems=a.calculateItems?a.calculateItems(b,c):!0);a.setCtSizeIfNeeded(b,c);if(e&&b.hasDomProp('containerChildrenSizeDone')){a.calculateContentSize(b);if(c.gotAll){if(a.manageOverflow&&!b.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(b,c)}return}}a.done=!1},calculateContentSize:function(a){var b=this,f=(a.widthModel.shrinkWrap?1:0)|(a.heightModel.shrinkWrap?2:0),d=f&1||undefined,c=f&2||undefined,e=0,g=a.props;if(d){if(isNaN(g.contentWidth)){++e}else {d=undefined}}if(c){if(isNaN(g.contentHeight)){++e}else {c=undefined}}if(e){if(d&&!a.setContentWidth(b.measureContentWidth(a))){b.done=!1}if(c&&!a.setContentHeight(b.measureContentHeight(a))){b.done=!1}}},calculateOverflow:function(d){var c=this,g,f,e,a,h,i,b;h=c.getOverflowXStyle(d)==='auto';i=c.getOverflowYStyle(d)==='auto';if(h||i){e=Ext.getScrollbarSize();b=d.overflowContext.el.dom;a=0;if(b.scrollWidth>b.clientWidth){a|=1}if(b.scrollHeight>b.clientHeight){a|=2}g=i&&a&2?e.width:0;f=h&&a&1?e.height:0;if(g!==c.lastOverflowAdjust.width||f!==c.lastOverflowAdjust.height){c.done=!1;d.invalidate({state:{overflowAdjust:{width:g,height:f},overflowState:a,secondPass:!0}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(b,a){var c=a.$layout,d=Ext.XTemplate,e=c.beforeBodyTpl,f=c.afterBodyTpl;if(e){d.getTpl(c,'beforeBodyTpl').applyOut(a,b)}this.renderItems(b,a);this.renderContent(b,a);if(f){d.getTpl(c,'afterBodyTpl').applyOut(a,b)}},doRenderPadding:function(d,b){var e=b.$layout,a=b.$layout.owner,c=a[a.contentPaddingProperty];if(e.managePadding&&c){d.push('padding:',a.unitizeBox(c))}},finishedLayout:function(b){var a=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){a.repaint()}if(Ext.isOpera){a.setStyle('position','relative');a.dom.scrollWidth;a.setStyle('position','')}},getContainerSize:function(c,d){var b=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),a=c.state.overflowAdjust;if(a){b.width-=a.width;b.height-=a.height}return b},getRenderData:function(){var b=this,a=Ext.layout.container.Container.prototype.getRenderData.call(this);a.innerCtCls=b.innerCtCls;a.outerCtCls=b.outerCtCls;return a},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(a){return a.overflowXStyle||(a.overflowXStyle=this.owner.scrollFlags.overflowX||a.overflowContext.getStyle('overflow-x'))},getOverflowYStyle:function(a){return a.overflowYStyle||(a.overflowYStyle=this.owner.scrollFlags.overflowY||a.overflowContext.getStyle('overflow-y'))},initContextItems:function(a){var b=this,d=a.target,c=b.owner.getOverflowEl();a.outerCtContext=a.getEl('outerCt',b);a.innerCtContext=a.getEl('innerCt',b);a.overflowContext=c===a.el?a:a.getEl(c);if(d[d.contentPaddingProperty]!==undefined){a.paddingContext=a.innerCtContext}},initLayout:function(){var a=this,b=Ext.getScrollbarSize().width,c=a.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&a.manageOverflow&&!a.hasOwnProperty('lastOverflowAdjust')){if(c.scrollable||a.reserveScrollbar){a.lastOverflowAdjust={width:b,height:0}}}},measureContentHeight:function(b){var a=this.outerCt.getHeight(),c=b.target;if(this.managePadding&&c[c.contentPaddingProperty]===undefined){a+=b.targetContext.getPaddingInfo().height}return a},measureContentWidth:function(f){var a,b,e,c,d;if(this.chromeCellMeasureBug){a=this.innerCt.dom;b=a.style;e=b.display;if(e==='table-cell'){b.display='';a.offsetWidth;b.display=e}}if(Ext.isSafari){a=this.outerCt.dom;b=a.style;b.display='table-cell';a.offsetWidth;a.style.display=''}c=this.outerCt.getWidth();d=f.target;if(this.managePadding&&d[d.contentPaddingProperty]===undefined){c+=f.targetContext.getPaddingInfo().width}return c},setCtSizeIfNeeded:function(a,h){var c=this,b=h.height,k=a.paddingContext.getPaddingInfo(),g=c.getTarget(),f=c.getOverflowXStyle(a),j=f==='auto'||f==='scroll',i=Ext.getScrollbarSize(),e,d;if(b&&!a.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){e=!0}if(Ext.isIE8){d=!0}if((e||d)&&j&&g.dom.scrollWidth>g.dom.clientWidth){b=Math.max(b-i.height,0)}if(e){a.outerCtContext.setProp('height',b+k.height);c.hasOuterCtPxHeight=!0}if(d){a.innerCtContext.setProp('height',b);c.hasInnerCtPxHeight=!0}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt},getScrollerEl:function(){return this.outerCt}},0,0,0,0,['layout.auto','layout.autocontainer'],0,[Ext.layout.container,'Auto'],function(){this.prototype.chromeCellMeasureBug=Ext.isChrome&&Ext.chromeVersion>=26});Ext.cmd.derive('Ext.ZIndexManager',Ext.Base,{alternateClassName:'Ext.WindowGroup',statics:{zBase:9000,activeCounter:0},constructor:function(b){var a=this;a.id=Ext.id(null,'zindex-mgr-');a.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(b,c){var a=(b.alwaysOnTop||0)-(c.alwaysOnTop||0);if(!a){a=b.getActiveCounter()-c.getActiveCounter()}return a}},filters:{filterFn:function(a){return a.isVisible()}}});a.zIndexStack.addObserver(a);a.front=null;a.globalListeners=Ext.GlobalEvents.on({beforehide:a.onComponentShowHide,show:a.onComponentShowHide,scope:a,destroyable:!0});if(b){if(b.isContainer){b.on('resize',a.onContainerResize,a);a.zseed=Ext.Number.from(a.rendered?b.getEl().getStyle('zIndex'):undefined,a.getNextZSeed());a.targetEl=b.getTargetEl();a.container=b}else {Ext.on('resize',a.onContainerResize,a);a.zseed=a.getNextZSeed();a.targetEl=Ext.get(b)}}else {a.zseed=a.getNextZSeed();Ext.onInternalReady(function(){Ext.on('resize',a.onContainerResize,a);a.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return Ext.ZIndexManager.zBase+=10000},setBase:function(a){this.zseed=a;return this.onCollectionSort()},onCollectionSort:function(){var d=this,b=d.front,k=b&&b.containsFocus,g=d.zseed,i=d.zIndexStack.getRange(),j=i.length,e,c,f,a,h=!1;for(e=0;e0;){a=c[b];if(a.isComponent&&e.call(d||a,a)===!1){return}}},destroy:function(){var a=this,c=a.zIndexStack.getRange(),d=c.length,b;for(b=0;b1){b.refresh()}if(a.hasListeners.afterlayout){a.fireEvent('afterlayout',a,c)}},beforeDestroy:function(){var a=this,d=a.items,c=a.floatingItems,b;if(d){while(b=d.first()){a.doRemove(b,!0)}}if(c){while(b=c.first()){a.doRemove(b,!0)}}Ext.destroy(a.layout);Ext.Component.prototype.beforeDestroy.call(this)},destroy:function(){var a=this;Ext.Component.prototype.destroy.call(this);if(a.items){a.items.destroy()}if(a.floatingItems){a.floatingItems.destroy()}a.refs=a.items=a.floatingItems=a.layout=null},beforeRender:function(){var a=this,c=a.getLayout(),b;a.preventChildDisable=!0;Ext.Component.prototype.beforeRender.call(this);a.preventChildDisable=!1;if(!c.initialized){c.initLayout()}b=c.targetCls;if(b){a.applyTargetCls(b)}},cascade:function(f,e,d){var a=this,h=a.items?a.items.items:[],j=h.length,g=0,b,c=d?d.concat(a):[a],i=c.length-1;if(f.apply(e||a,c)!==!1){for(;g','
','
{msg}
','
',''],maskOnDisable:!1,skipLayout:!0,constructor:function(c){var a=this,b;if(arguments.length===2){b=a.target=c;c=arguments[1]}else {b=c.target}Ext.Component.prototype.constructor.call(this,c);if(b.isComponent){a.ownerCt=b;a.hidden=!0;a.renderTo=a.getMaskTarget();a.external=a.renderTo===Ext.getBody();a.bindComponent(b)}else {b=Ext.get(b);a.isElement=!0;a.renderTo=a.target}a.render(a.renderTo);if(a.store){a.bindStore(a.store,!0)}},initRenderData:function(){var a=Ext.Component.prototype.initRenderData.apply(this,arguments);a.msg=this.msg||'';return a},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(b){var a=this,c={scope:this,resize:a.sizeMask};if(a.external){c.added=a.onComponentAdded;c.removed=a.onComponentRemoved;if(b.floating){c.move=a.sizeMask;a.activeOwner=b}else {if(b.ownerCt){a.onComponentAdded(b.ownerCt)}}}a.mon(b,c);if(a.external){a.mon(Ext.GlobalEvents,{show:a.onContainerShow,hide:a.onContainerHide,expand:a.onContainerExpand,collapse:a.onContainerCollapse,scope:a})}},onComponentAdded:function(b){var a=this;delete a.activeOwner;a.floatParent=b;if(!b.floating){b=b.up('[floating]')}if(b){a.activeOwner=b;a.mon(b,'move',a.sizeMask,a);a.mon(b,'tofront',a.onOwnerToFront,a)}else {a.preventBringToFront=!0}b=a.floatParent.ownerCt;if(a.rendered&&a.isVisible()&&b){a.floatOwner=b;a.mon(b,'afterlayout',a.sizeMask,a,{single:!0})}},onComponentRemoved:function(d){var a=this,b=a.activeOwner,c=a.floatOwner;if(b){a.mun(b,'move',a.sizeMask,a);a.mun(b,'tofront',a.onOwnerToFront,a)}if(c){a.mun(c,'afterlayout',a.sizeMask,a)}delete a.activeOwner;delete a.floatOwner},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){a.el.on('mousedown',a.onMouseDown,a)}this.el.skipGarbageCollection=!0},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(b,a){this.el.setStyle('zIndex',a+1)},onContainerShow:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var a=this;if(a.rendered&&a.isVisible()){a.hide();a.showNext=!0}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var a=this,b=a.activeOwner||a.target,c=a.external?a.getOwner().el:a.getMaskTarget();if(a.rendered&&a.isVisible()){if(a.external){if(!a.isElement&&b.floating){a.onOwnerToFront(b,b.el.getZIndex())}a.el.setSize(c.getSize()).alignTo(c,'tl-tl')}a.msgWrapEl.center(a.el)}},bindStore:function(a,c){var b=this;Ext.destroy(b.proxyListeners);b.mixins.storeholder.bindStore.apply(b,arguments);a=b.store;if(a){while(a.getSource){a=a.getSource()}if(!a.loadsSynchronously()){b.proxyListeners=a.getProxy().on({exception:b.onLoad,scope:b,destroyable:!0})}if(a.isLoading()){b.onBeforeLoad()}}},getStoreListeners:function(d){var c=this.onLoad,b=this.onBeforeLoad,a={cachemiss:b,cachefilled:{fn:c,buffer:100}};if(!d.loadsSynchronously()){a.beforeload=b;a.load=c}return a},onDisable:function(){Ext.Component.prototype.onDisable.apply(this,arguments);if(this.loading){this.onLoad()}},getOwner:function(){return this.ownerCt||this.ownerCmp||this.floatParent},getMaskTarget:function(){var a=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?a.getTargetEl():a.getMaskTarget()||Ext.getBody()},onBeforeLoad:function(){var b=this,a=b.getOwner(),c;if(!b.disabled){b.loading=!0;if(a.componentLayoutCounter){b.maybeShow()}else {c=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=c;c.apply(a,arguments);b.maybeShow()}}}},maybeShow:function(){var a=this,b=a.getOwner();if(!b.isVisible(!0)){a.showNext=!0}else {if(a.loading&&b.rendered){a.show()}}},hide:function(){var b=this,a=b.ownerCt;if(b.isElement){a.unmask();b.fireEvent('hide',this);return}if(a){a.enableTabbing();a.setMasked(!1)}delete b.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;if(a.isElement){a.ownerCt.mask(this.useMsg?this.msg:'',this.msgCls);a.fireEvent('show',this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var a=this,b=a.ownerCt;a.loading=!0;Ext.Component.prototype.afterShow.apply(this,arguments);b.disableTabbing();b.setMasked(!0);a.el.restoreTabbableState();a.syncMaskState()},syncMaskState:function(){var a=this,c=a.ownerCt,b=a.el;if(a.isVisible()){if(a.hasOwnProperty('msgWrapCls')){b.dom.className=a.msgWrapCls}if(a.useMsg){a.msgTextEl.setHtml(a.msg)}else {a.msgEl.hide()}if(a.shim||Ext.useShims){b.enableShim(null,!0)}else {b.disableShim()}if(c.el.contains(Ext.Element.getActiveElement())){a.focus()}a.sizeMask()}},onLoad:function(){this.loading=!1;this.hide()},beforeDestroy:function(){this.ownerCt=null;this.bindStore(null);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.onDestroy.call(this)}},1,['loadmask'],['component','box','loadmask'],{'component':!0,'box':!0,'loadmask':!0},['widget.loadmask'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext,'LoadMask'],0);Ext.cmd.derive('Ext.layout.component.Component',Ext.layout.Layout,{type:'component',isComponentLayout:!0,nullBox:{},usesContentHeight:!0,usesContentWidth:!0,usesHeight:!0,usesWidth:!0,widthCache:{},heightCache:{},beginLayoutCycle:function(a,j){var c=this,f=c.owner,p=a.ownerCtContext,g=a.heightModel,h=a.widthModel,o=f.el.dom===document.body,e=f.lastBox||c.nullBox,d=f.el.lastBox||c.nullBox,m=!o,k=a.isTopLevel,i,b,n,l;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,a,j);if(j){if(c.usesContentWidth){++a.consumersContentWidth}if(c.usesContentHeight){++a.consumersContentHeight}if(c.usesWidth){++a.consumersWidth}if(c.usesHeight){++a.consumersHeight}if(p&&!p.hasRawContent){i=f.ownerLayout;if(i){if(i.usesWidth){++a.consumersWidth}if(i.usesHeight){++a.consumersHeight}}}}if(h.configured){n=f[h.names.width];if(k&&h.calculatedFrom){n=e.width}if(!o){m=c.setWidthInDom||(j?n!==d.width:h.constrained)}a.setWidth(n,m)}else {if(k){if(h.calculated){b=e.width;a.setWidth(b,b!==d.width)}b=e.x;a.setProp('x',b,b!==d.x)}}if(g.configured){l=f[g.names.height];if(k&&g.calculatedFrom){l=e.height}if(!o){m=j?l!==d.height:g.constrained}a.setHeight(l,m)}else {if(k){if(g.calculated){b=e.height;a.setHeight(b,b!==d.height)}b=e.y;a.setProp('y',b,b!==d.y)}}},finishedLayout:function(c){var h=this,e=c.children,g=h.owner,i,d,f,a,b;if(e){i=e.length;for(d=0;d','
{text}
','',''],componentLayout:'progressbar',ariaRole:'progressbar',initRenderData:function(){var a=this,b=a.value||0;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{internalText:!a.hasOwnProperty('textEl'),text:a.text||' ',percentage:b*100})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.textEl){a.textEl=Ext.get(a.textEl);a.updateText(a.text)}else {a.textEl=a.el.select('.'+a.baseCls+'-text')}},updateValue:function(a){this.updateProgress(a,Math.round(a*100)+'%')},updateProgress:function(b,c,d){b=b||0;var a=this,f=a.value,e=a.getTextTpl();a.value=b||(b=0);if(c!=null){a.updateText(c)}else {if(e){a.updateText(e.apply({value:b,percent:b*100}))}}if(a.rendered&&!a.destroyed){if(d===!0||d!==!1&&a.animate){a.bar.stopAnimation();a.bar.animate(Ext.apply({from:{width:f*100+'%'},to:{width:b*100+'%'}},a.animate))}else {a.bar.setStyle('width',b*100+'%')}}a.fireEvent('update',a,b,c);return a},updateText:function(b){var a=this;a.text=b;if(a.rendered){a.textEl.setHtml(a.text)}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(a){var b=this,c;if(!b.waitTimer){c=b;a=a||{};b.updateText(a.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var c=a.increment||10;d-=1;b.updateProgress(((d+c)%c+1)*(100/c)*0.01,null,a.animate)},interval:a.interval||1000,duration:a.duration,onStop:function(){if(a.fn){a.fn.apply(a.scope||b)}b.reset()},scope:c})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(b){var a=this;a.updateProgress(0);a.clearTimer();if(b===!0){a.hide()}return a},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},onDestroy:function(){var a=this,b=a.bar;a.clearTimer();if(a.rendered){if(a.textEl.isComposite){a.textEl.clear()}Ext.destroyMembers(a,'textEl','progressBar');if(b&&a.animate){b.stopAnimation()}}Ext.Component.prototype.onDestroy.call(this)}},0,['progressbar'],['component','box','progressbar'],{'component':!0,'box':!0,'progressbar':!0},['widget.progressbar'],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,'ProgressBar'],0);Ext.cmd.derive('Ext.dom.ButtonElement',Ext.dom.Element,{setSize:function(b,a,e){var d=this,c=d.component;Ext.dom.Element.prototype.setSize.call(this,b,a,e);c.btnWrap.setStyle('table-layout',!b||b==='auto'?'':'fixed');c.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return d},setStyle:function(a,c){var f=this,e=f.component,d,b;Ext.dom.Element.prototype.setStyle.call(this,a,c);if(a){if(a==='width'||typeof a!=='string'&&'width' in a){d=c||a.width;e.btnWrap.setStyle('table-layout',!d||d==='auto'?'':'fixed')}if(a==='height'||typeof a!=='string'&&'height' in a){b=c||a.height;e.btnEl.setStyle('height',!b||b==='auto'?'':'auto')}}return f},setHeight:function(a,b){Ext.dom.Element.prototype.setHeight.call(this,a,b);this.component.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return this},setWidth:function(a,b){Ext.dom.Element.prototype.setWidth.call(this,a,b);this.component.btnWrap.setStyle('table-layout',!a||a==='auto'?'':'fixed');return this}},0,0,0,0,0,0,[Ext.dom,'ButtonElement'],0);Ext.cmd.derive('Ext.button.Manager',Ext.Base,{singleton:!0,alternateClassName:'Ext.ButtonToggleManager',groups:{},pressedButton:null,init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a});a.initialized=!0}},onButtonMousedown:function(b,c){var a=this.pressedButton;if(a){a.onMouseUp(c)}this.pressedButton=b},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(c,e){if(e){var b=this.groups[c.toggleGroup],d=b.length,a;for(a=0;a{[values.$comp.renderIcon(values)]}{text}{[values.$comp.renderIcon(values)]}{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]} {closeText} tabindex="{tabIndex}" {$}="{.}">{arrowElText}',iconTpl:'background-image:url({iconUrl});font-family:{glyphFontFamily};">&#{glyph};',scale:'small',allowedScales:['small','medium','large'],arrowAlign:'right',arrowCls:'arrow',maskOnDisable:!1,shrinkWrap:3,frame:!0,autoEl:{tag:'a',hidefocus:'on',unselectable:'on'},hasFrameTable:function(){return this.href&&this.frameTable},frameTableListener:function(){if(!this.disabled){this.doNavigate()}},doNavigate:function(){if(this.hrefTarget==='_blank'){window.open(this.getHref(),this.hrefTarget)}else {location.href=this.getHref()}},_triggerRegion:{},initComponent:function(){var a=this;a.addCls('x-unselectable');Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=!0;a.setMenu(a.menu,!1,!0)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty('preventDefault');if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=!1}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==''){a.enableToggle=!0}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var a=this,b=Ext.Component.prototype.getElConfig.call(this),d=a.getHref(),c=a.hrefTarget;if(b.tag==='a'){if(!a.disabled){b.tabIndex=a.tabIndex}if(d){if(!a.disabled){b.href=d;if(c){b.target=c}}}}if(!a.ariaStaticRoles[a.ariaRole]){if(a.menu&&!a.isSplitButton){b['aria-haspopup']=!0}if(a.enableToggle){b['aria-pressed']=!!a.pressed}}return b},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);if(this.pressed){this.addCls(this._pressedCls)}},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),this.getTemplateArgs())},getMenu:function(){return this.menu||null},setMenu:function(b,g,h){var a=this,e=a.menu,d=a.isSplitButton?a.arrowEl&&a.arrowEl.dom:a.ariaEl.dom,f,c;if(e&&!h){if(g!==!1&&a.destroyMenu){e.destroy()}e.ownerCmp=null}if(b){f=b.isMenu;b=Ext.menu.Manager.get(b,{ownerCmp:a});b.setOwnerCmp(a,f);b.menuClickBuffer=250;a.mon(b,{scope:a,show:a.onMenuShow,hide:a.onMenuHide});if(!e&&a.getArrowVisible()){a.split=!0;if(a.rendered){a._addSplitCls();a.updateLayout()}}a.menu=b;if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.isSplitButton?a.ariaArrowElAttributes||(a.ariaArrowElAttributes={}):a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {if(a.rendered){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns');a._removeSplitCls();a.updateLayout()}else {c=a.isSplitButton?a.ariaArrowElAttributes:a.ariaRenderAttributes;if(c){delete c['aria-haspopup'];delete c['aria-owns']}}a.split=!1;a.menu=null}},onRender:function(){var a=this,d,c,b;Ext.Component.prototype.onRender.apply(this,arguments);c=a.el;if(a.tooltip){a.setTooltip(a.tooltip,!0)}if(a.handleMouseEvents){b={scope:a,mouseover:a.onMouseOver,mouseout:a.onMouseOut,mousedown:a.onMouseDown};if(a.split){b.mousemove=a.onMouseMove}}else {b={scope:a}}if(Ext.supports.Touch){b.touchstart=a.onTouchStart}if(a.repeat){a.mon(new Ext.util.ClickRepeater(c,Ext.isObject(a.repeat)?a.repeat:{}),'click',a.onRepeatClick,a)}else {if(b[a.clickEvent]){d=!0}else {b[a.clickEvent]=a.onClick}}a.mon(c,b);if(a.hasFrameTable()){a.mon(a.frameTable,'click',a.frameTableListener,a)}if(d){a.mon(c,a.clickEvent,a.onClick,a)}Ext.button.Manager.register(a)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var a=this,i=a._btnCls,j=a._baseIconCls,d=a.getIconAlign(),b=a.glyph,f=Ext._glyphFontFamily,e=a.text,h=a._hasIcon(),g=a._hasIconCls,c;if(typeof b==='string'){c=b.split('@');b=c[0];f=c[1]}return {split:a.isSplitButton,innerCls:a._innerCls,splitCls:a.getArrowVisible()?a.getSplitCls():'',iconUrl:a.icon,iconCls:a.iconCls,glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:f,text:e||' ',closeText:a.closeText,textCls:e?a._textCls:'',noTextCls:e?'':a._noTextCls,hasIconCls:h?g:'',btnWrapCls:a._btnWrapCls,btnWrapStyle:a.width?'table-layout:fixed;':'',btnElStyle:a.height?'height:auto;':'',btnCls:i,baseIconCls:j,iconBeforeText:d==='left'||d==='top',iconAlignCls:h?g+'-'+d:'',textAlignCls:i+'-'+a.getTextAlign(),arrowElCls:a._arrowElCls,tabIndex:a.tabIndex}},renderIcon:function(a){return this.getTpl('iconTpl').apply(a)},setHref:function(c){var a=this,d=a.hrefTarget,b;a.href=c;if(!a.configuredWithPreventDefault){a.preventDefault=!c}if(a.rendered){b=a.el.dom;if(!c||a.disabled){b.removeAttribute('href');b.removeAttribute('hrefTarget')}else {b.href=a.getHref();if(d){b.target=d}}}},getHref:function(){var a=this,b=a.href;return b?Ext.urlAppend(b,Ext.Object.toQueryString(Ext.apply({},a.params,a.baseParams))):!1},setParams:function(c){var a=this,b;a.params=c;if(a.rendered){b=a.el.dom;if(a.disabled){b.removeAttribute('href')}else {b.href=a.getHref()||''}}},getSplitCls:function(){var a=this;return a.split?a.baseCls+'-'+a.arrowCls+' '+(a.baseCls+'-'+a.arrowCls+'-'+a.arrowAlign):''},setIcon:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.icon||'';a.icon=b;if(b!==c){if(d){d.setStyle('background-image',b?'url('+b+')':'');a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setIconCls:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.iconCls||'';a.iconCls=b;if(c!==b){if(d){d.removeCls(c);d.addCls(b);a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setGlyph:function(b){b=b||0;var a=this,c=a.btnIconEl,f=a.glyph,g=a._glyphCls,d,e;a.glyph=b;if(c){if(typeof b==='string'){e=b.split('@');b=e[0];d=e[1]||Ext._glyphFontFamily}if(!b){c.dom.innerHTML='';c.removeCls(g)}else {if(f!==b){c.dom.innerHTML='&#'+b+';';c.addCls(g)}}if(d){c.setStyle('font-family',d)}a._syncHasIconCls();if(a.didIconStateChange(f,b)){a.updateLayout()}}a.fireEvent('glyphchange',a,a.glyph,f);return a},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c||!b){a.clearTip()}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.el.id},b));a.tooltip=b}else {a.el.dom.setAttribute(a.getTipAttr(),b)}}}else {a.tooltip=b}return a},updateIconAlign:function(e,f){var b=this,a,d,c;if(b.rendered){a=b.btnEl;d=b.btnIconEl;c=b._hasIconCls;if(f){a.removeCls(c+'-'+f)}a.addCls(c+'-'+e);if(e==='top'||e==='left'){a.insertFirst(d)}else {a.appendChild(d)}b.updateLayout()}},updateTextAlign:function(e,d){var a=this,c=a.btnEl,b=a._btnCls;if(a.rendered){c.removeCls(b+'-'+d);c.addCls(b+'-'+e)}},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},clearTip:function(){var a=this,b=a.el;if(Ext.quickTipsActive&&Ext.isObject(a.tooltip)){Ext.tip.QuickTipManager.unregister(b)}else {b.dom.removeAttribute(a.getTipAttr())}},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this,b=a.menu;if(a.rendered){Ext.destroy(a.keyMap);delete a.keyMap}if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.onDestroy.call(this)},setHandler:function(a,b){this.handler=a;if(arguments.length>1){this.scope=b}return this},updateText:function(b,c){b=b==null?'':String(b);c=c||'';var a=this,e=a.btnInnerEl,d=a.btnEl;if(a.rendered){e.setHtml(b||' ');d[b?'addCls':'removeCls'](a._textCls);d[b?'removeCls':'addCls'](a._noTextCls);a.updateLayout()}a.fireEvent('textchange',a,c,b)},didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},click:function(a){return this.onClick(a)},setPressed:function(a){return this.toggle(a!==!1)},toggle:function(b,d){var a=this,c=a.ariaEl.dom;b=b===undefined?!a.pressed:!!b;if(a.fireEvent('beforetoggle',a,b)!==!1){if(b!==a.pressed){a[b?'addCls':'removeCls'](a._pressedCls);a.pressed=b;if(c){c.setAttribute('aria-pressed',b)}if(!d){a.fireEvent('toggle',a,b);Ext.callback(a.toggleHandler,a.scope,[a,b],0,a);if(a.reference&&a.publishState){a.publishState('pressed',b)}}}}return a},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(c){var a=this,b=a.menu,d=!c||c.pointerType;if(b&&a.rendered){if(a.tooltip&&Ext.quickTipsActive&&a.getTipAttr()!=='title'){Ext.tip.QuickTipManager.getQuickTip().cancelShow(a.el)}if(b.isVisible()){if(d){b.hide()}else {b.focus()}}else {if(!c||a.showEmptyMenu||b.items.getCount()>0){b.autoFocus=!d;b.showBy(a.el,a.menuAlign)}}}return a},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(b,a){this.onClick(a)},onTouchStart:function(a){this.doPreventDefault(a)},onEnterKey:function(a){this.onClick(a);a.stopEvent();return !1},onClick:function(b){var a=this;a.doPreventDefault(b);if(b.type!=='keydown'&&b.button){return}if(!a.disabled){a.doToggle();a.maybeShowMenu(b);a.fireHandler(b)}},doPreventDefault:function(a){if(a&&(this.preventDefault||this.disabled&&this.getHref())){a.preventDefault()}},fireHandler:function(b){var a=this;if(a.fireEvent('click',a,b)!==!1&&!a.destroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},doToggle:function(){var a=this;if(a.enableToggle&&(a.allowDepress!==!1||!a.pressed)){a.toggle()}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,!0,!0)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,!0,!0)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(b){var a=this,c=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(b)){if(!c){a.onMenuTriggerOver(b)}}else {if(c){a.onMenuTriggerOut(b)}}}},isWithinTrigger:function(d){var a=this,e=a.el,c,b;c=a.arrowAlign==='right'?d.getX()-a.getX():d.getY()-e.getY();b=a.getTriggerRegion();return c>b.begin&&c{iconMarkup}
role="{textElRole}">{text}
{iconMarkup}',iconTpl:'',_textAlignClasses:{left:'x-title-align-left',center:'x-title-align-center',right:'x-title-align-right'},_iconAlignClasses:{top:'x-title-icon-top',right:'x-title-icon-right',bottom:'x-title-icon-bottom',left:'x-title-icon-left'},_rotationClasses:{0:'x-title-rotate-none',1:'x-title-rotate-right',2:'x-title-rotate-left'},_rotationAngles:{1:90,2:270},baseCls:'x-title',_titleSuffix:'-title',_glyphCls:'x-title-glyph',_iconWrapCls:'x-title-icon-wrap',_baseIconCls:'x-title-icon',_itemCls:'x-title-item',_textCls:'x-title-text',afterComponentLayout:function(){var b=this,c=b.getRotation(),a,d,e;if(c&&!Ext.isIE8){e=b.el;a=b.lastBox;d=a.x;e.setStyle(b._getVerticalAdjustDirection(),d+(c===1?a.width:-a.height)+'px')}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var a=this,b=a.getRotation(),c=a.el;Ext.Component.prototype.onRender.call(this);if(b){c.setVertical(a._rotationAngles[b])}if(Ext.supports.FixedTableWidthBug){c._needsTableWidthFix=!0}},applyText:function(a){if(!a){a=' '}return a},beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.addCls(a._rotationClasses[a.getRotation()]);a.addCls(a._textAlignClasses[a.getTextAlign()])},getIconMarkup:function(){return this.getTpl('iconTpl').apply(this.getIconRenderData())},getIconRenderData:function(){var a=this,g=a.getIcon(),f=a.getIconCls(),b=a.getGlyph(),d=Ext._glyphFontFamily,e=a.getIconAlign(),c;if(typeof b==='string'){c=b.split('@');b=c[0];d=c[1]}return {id:a.id,ui:a.ui,itemCls:a._itemCls,iconUrl:g,iconCls:f,iconWrapCls:a._iconWrapCls,baseIconCls:a._baseIconCls,iconAlignCls:a._iconAlignClasses[e],glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:d}},initRenderData:function(){var a=this,c,b;b=Ext.apply({text:a.getText(),textElRole:a.textElRole,id:a.id,ui:a.ui,itemCls:a._itemCls,textCls:a._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(a._hasIcon()){c=a.getIconAlign();b.iconMarkup=a.getIconMarkup();b.iconBeforeTitle=c==='top'||c==='left'}return b},onAdded:function(a,f,e){var d=this,c=d._titleSuffix,b=a.baseCls;d.addCls([b+c,b+c+'-'+a.ui]);Ext.Component.prototype.onAdded.call(this,a,f,e)},updateGlyph:function(a,g){a=a||0;var b=this,f=b._glyphCls,c,d,e;b.glyph=a;if(b.rendered){b._syncIconVisibility();c=b.iconEl;if(typeof a==='string'){e=a.split('@');a=e[0];d=e[1]||Ext._glyphFontFamily}if(!a){c.dom.innerHTML='';c.removeCls(f)}else {if(g!==a){c.dom.innerHTML='&#'+a+';';c.addCls(f)}}if(d){c.setStyle('font-family',d)}if(b._didIconStateChange(g,a)){b.updateLayout()}}},updateIcon:function(a,c){a=a||'';var b=this,d;if(b.rendered&&a!==c){b._syncIconVisibility();d=b.iconEl;d.setStyle('background-image',a?'url('+a+')':'');if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateIconAlign:function(d,f){var a=this,b=a.iconWrapEl,e,c;if(a.iconWrapEl){e=a.el;c=a._iconAlignClasses;if(f){b.removeCls(c[f])}b.addCls(c[d]);if(d==='top'||d==='left'){e.insertFirst(b)}else {e.appendChild(b)}a.updateLayout()}},updateIconCls:function(a,c){a=a||'';var b=this,d;if(b.rendered&&c!==a){b._syncIconVisibility();d=b.iconEl;if(c){d.removeCls(c)}d.addCls(a);if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateRotation:function(d,e){var a=this,b,c;if(a.rendered){b=a.el;c=a._rotationClasses;a.removeCls(c[e]);a.addCls(c[d]);b.setHorizontal();if(d){b.setVertical(a._rotationAngles[d])}b.setStyle({right:'',left:'',top:'',height:'',width:''});a.lastBox=null;a.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,c){var a=this,b=a._textAlignClasses;if(a.rendered){if(c){a.removeCls(b[c])}a.addCls(b[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return 'left'},_didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var a=this,f=a.el,e=a._hasIcon(),b=a.iconWrapEl,d,c;if(e&&!b){c=a.iconAlign;d=c==='left'||c==='top';f.dom.insertAdjacentHTML(d?'afterbegin':'beforeend',a.getIconMarkup());b=a.iconWrapEl=f[d?'first':'last']();a.iconEl=b.first()}if(b){b.setDisplayed(e)}}}},0,['title'],['component','box','title'],{'component':!0,'box':!0,'title':!0},['widget.title'],0,[Ext.panel,'Title'],0);Ext.cmd.derive('Ext.panel.Tool',Ext.Component,{isTool:!0,baseCls:'x-tool',disabledCls:'x-tool-disabled',toolPressedCls:'x-tool-pressed',toolOverCls:'x-tool-over',childEls:['toolEl'],renderTpl:[''],toolOwner:null,tooltipType:'qtip',stopEvent:!0,ariaRole:'button',focusable:!0,tabIndex:0,keyHandlers:{SPACE:'onClick',ENTER:'onClick'},cacheHeight:!0,cacheWidth:!0,initComponent:function(){var a=this;a.type=a.type||a.id;Ext.applyIf(a.renderData,{baseCls:a.baseCls,type:a.type});a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);a.el.on({click:a.onClick,mousedown:a.onMouseDown,mouseover:a.onMouseOver,mouseout:a.onMouseOut,scope:a});b=a.tooltip;if(b){a.setTooltip(b)}},tipAttrs:{qtip:'data-qtip'},setTooltip:function(b,d){var a=this,g=a.tooltip,f=a.tooltipType,h=a.id,e=a.el,c;if(g&&Ext.quickTipsActive&&Ext.isObject(g)){Ext.tip.QuickTipManager.unregister(h)}a.tooltip=b;if(d){a.tooltipType=d}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:h},b))}else {if(e){if(d&&f&&d!==f){c=a.tipAttrs[f]||'title';e.dom.removeAttribute(c)}c=a.tipAttrs[d||f]||'title';e.dom.setAttribute(c,b)}}if(c!=='title'&&a.ariaRole&&a.ariaRole!=='presentation'){if(e){e.dom.setAttribute('aria-label',b)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-label']=b}}}},setType:function(b){var a=this,c=a.type;a.type=b;if(a.rendered){if(c){a.toolEl.removeCls(a.baseCls+'-'+c)}a.toolEl.addCls(a.baseCls+'-'+b)}else {a.renderData.type=b}return a},onDestroy:function(){var a=this,b=a.keyMap;a.setTooltip(null);delete a.toolOwner;Ext.Component.prototype.onDestroy.call(this)},privates:{onClick:function(b,c){var a=this;if(a.disabled){return !1}if(b.type!=='keydown'){a.el.removeCls(a.toolPressedCls+' '+a.toolOverCls)}if(a.stopEvent!==!1){b.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[b,c,a.ownerCt,a],0,a)}else {if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,b],0,a)}}a.fireEvent('click',a,b,a.toolOwner||a.ownerCt);return !0},onMouseDown:function(a){a.preventDefault();if(this.disabled){return !1}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return !1}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)}}},0,['tool'],['component','box','tool'],{'component':!0,'box':!0,'tool':!0},['widget.tool'],0,[Ext.panel,'Tool'],0);Ext.cmd.derive('Ext.util.KeyMap',Ext.Base,{alternateClassName:'Ext.KeyMap',eventName:'keydown',constructor:function(b){var a=this;if(arguments.length!==1||typeof b==='string'||b.dom||b.tagName||b===document||b.isComponent){a.legacyConstructor.apply(a,arguments);return}Ext.apply(a,b);a.bindings=[];if(!a.target.isComponent){a.target=Ext.get(a.target)}if(a.binding){a.addBinding(a.binding)}else {if(b.key){a.addBinding(b)}}a.enable()},legacyConstructor:function(d,b,c){var a=this;Ext.apply(a,{target:Ext.get(d),eventName:c||a.eventName,bindings:[]});if(b){a.addBinding(b)}a.enable()},addBinding:function(b){var a=this,e=b.key,c,d;if(a.processing){a.bindings=a.bindings.slice(0)}if(Ext.isArray(b)){for(c=0,d=b.length;c=i){return a}}}if(!g){return}a=c.findNextFocusableChild({beforeRender:h,items:b,step:!0});if(a){c.activateFocusable(a)}return a},clearFocusables:function(){var d=this,c=d.getFocusables(),e=c.length,a,b;for(b=0;b0?d0?d+b:e-1;for(;;a+=b){if(d<0&&(a>=e||a<0)){return null}else {if(a>=e){a=-1;continue}else {if(a<0){a=e;continue}else {if(a===d){return null}}}}c=g[a];if(!c||!c.focusable||c.disabled){continue}if(i||c.isFocusable&&c.isFocusable()){return c}}return null},getFocusableContainerEl:function(){return this.el},onFocusableChildAdd:function(a){if(this.enableFocusableContainer){return this.doFocusableChildAdd(a)}},activateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:this.activeChildTabIndex})}},deactivateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:undefined})}},isFocusableContainerActive:function(){var e=this,d=!1,c,b,a;c=e.getFocusableContainerEl();if(c&&c.isTabbable&&c.isTabbable()){d=!0}else {b=e.lastFocusedChild;a=b&&b.getFocusEl&&b.getFocusEl();if(a&&a.isTabbable&&a.isTabbable()){d=!0}}return d},doFocusableChildAdd:function(a){if(a.focusable){a.focusableContainer=this}},onFocusableChildRemove:function(a){if(this.enableFocusableContainer){return this.doFocusableChildRemove(a)}a.focusableContainer=null},doFocusableChildRemove:function(a){if(a===this.lastFocusedChild){this.lastFocusedChild=null;this.activateFocusableContainerEl()}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);this.mousedownTimestamp=a===this?Ext.Date.now():0;if(a===this){c.preventDefault()}},onFocusEnter:function(f){var a=this,d=f.toComponent,c=a.mousedownTimestamp,e=50,b;if(!a.enableFocusableContainer){return null}a.mousedownTimestamp=0;if(d===a){if(!c||Ext.Date.now()-c>e){b=a.initDefaultFocusable();if(b){a.deactivateFocusableContainerEl();b.focus()}}}else {a.deactivateFocusableContainerEl()}return d},onFocusLeave:function(c){var a=this,b=a.lastFocusedChild;if(!a.enableFocusableContainer){return}if(!a.destroyed&&!a.destroying){a.clearFocusables();if(b&&!b.disabled){a.activateFocusable(b)}else {a.activateFocusableContainerEl()}}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.enableFocusableContainer){return}a.clearFocusables();a.activateFocusable(b);if(b.needArrowKeys){a.guardFocusableChild(b)}},guardFocusableChild:function(c){var b=this,d=b.activeChildTabIndex,a;a=b.findNextFocusableChild({child:c,step:-1});if(a){a.setTabIndex(d)}a=b.findNextFocusableChild({child:c,step:1});if(a){a.setTabIndex(d)}},afterFocusableChildFocus:function(a){if(!this.enableFocusableContainer){return}this.lastFocusedChild=a},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this;if(!a.enableFocusableContainer){return}if(b!==a.lastFocusedChild){a.deactivateFocusable(b);if(!a.isFocusableContainerActive()){a.activateFocusableContainerEl()}}},beforeFocusableChildDisable:function(c){var a=this,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(c.hasFocus){b=a.findNextFocusableChild({child:c})||c.findFocusTarget();if(b){b.focus()}}},onFocusableChildDisable:function(d){var a=this,c=a.lastFocusedChild,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(d===c){a.activateFocusableContainerEl()}b=a.findNextFocusableChild({step:1});if(!b){a.deactivateFocusableContainerEl()}},onFocusableChildShow:Ext.privateFn,onFocusableChildHide:Ext.privateFn,onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn}},0,0,0,0,0,0,[Ext.util,'FocusableContainer'],0);Ext.cmd.derive('Ext.panel.Header',Ext.panel.Bar,{isHeader:!0,defaultType:'tool',indicateDrag:!1,weight:-1,shrinkWrap:3,iconAlign:'left',titleAlign:'left',titlePosition:0,titleRotation:'default',autoEl:{role:'presentation'},beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{xtype:'title',flex:1},merge:function(a,b){if(typeof a!=='object'){a={text:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:'x-header',initComponent:function(){var a=this,b=a.items,d=a.itemPosition,c=[a.headerCls];a.tools=a.tools||[];a.items=b=b?b.slice():[];if(d!==undefined){a._userItems=b.slice();a.items=b=[]}a.indicateDragCls=a.headerCls+'-draggable';if(a.indicateDrag){c.push(a.indicateDragCls)}a.addCls(c);a.syncNoBorderCls();a.enableFocusableContainer=!a.isAccordionHeader&&a.tools.length>0;if(a.enableFocusableContainer){a.ariaRole='toolbar'}Ext.Array.push(b,a.tools);a.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);a.on({dblclick:a.onDblClick,click:a.onClick,element:'el',scope:a})},addTool:function(b){var a=this;a.add(Ext.ComponentManager.create(b,'tool'));if(!a.isAccordionHeader&&a.tools.length>0&&!a.enableFocusableContainer){a.enableFocusableContainer=!0;a.ariaRole='toolbar';if(a.rendered){a.ariaEl.dom.setAttribute('role','toolbar');a.initFocusableContainer(!0)}}},afterLayout:function(){var a=this,e,b,c,d;if(a.vertical){b=a.frameTR;if(b){e=a.frameBR;c=a.frameTL;d=a.getWidth()-b.getPadding('r')-(c?c.getPadding('l'):a.el.getBorderWidth('l'))+'px';e.setStyle('background-position-x',d);b.setStyle('background-position-x',d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(a,d){var b=this,c,e;a=a||'';c=typeof a==='string';if(c){a={text:a}}if(d){Ext.suspendLayouts();d.setConfig(a);Ext.resumeLayouts(!0);a=d}else {if(c){a.xtype='title'}a.ui=b.ui;e='rotation' in a;a.id=b.id+'-title';if(b.isAccordionHeader){a.ariaRole='tab';a.textElRole=null;a.focusable=!0}a=Ext.create(a);if(!e&&b.vertical&&b.titleRotation==='default'){a.rotation=1}}return a},applyTitlePosition:function(b){var a=this.items.getCount();if(this._titleInItems){--a}return Math.max(Math.min(b,a),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var a=this,b=a.itemPosition;a.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(b!==undefined){a.insert(b,a._userItems)}},getTools:function(){return this.tools.slice()},onAdd:function(a,c){var b=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,a,c);if(a.isTool){b.push(a);b[a.type]=a}},onAdded:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,a,c,b)},onRemoved:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,a,c,b)},setDock:function(e){var a=this,c=a.getTitle(),b=a.getTitleRotation(),d=c.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,e);if(b==='default'){b=a.vertical?1:0;if(b!==d){c.setRotation(b)}if(a.rendered){a.resetItemMargins()}}Ext.resumeLayouts(!0)},updateGlyph:function(a){this.getTitle().setGlyph(a)},updateIcon:function(a){this.getTitle().setIcon(a)},updateIconAlign:function(a,b){this.getTitle().setIconAlign(a)},updateIconCls:function(a){this.getTitle().setIconCls(a)},updateTitle:function(a,b){if(!b){this.insert(this.getTitlePosition(),a);this._titleInItems=!0}this.titleCmp=a},updateTitleAlign:function(a,b){this.getTitle().setTextAlign(a)},updateTitlePosition:function(a){this.insert(a,this.getTitle())},updateTitleRotation:function(a){if(a==='default'){a=this.vertical?1:0}this.getTitle().setRotation(a)},privates:{fireClickEvent:function(c,a){var b='.'+Ext.panel.Tool.prototype.baseCls;if(!a.getTarget(b)){this.fireEvent(c,this,a)}},getFramingInfoCls:function(){var a=this,c=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),b=a.ownerCt;if(!a.expanding&&b&&(b.collapsed||a.isCollapsedExpander)){c+='-'+b.collapsedCls}return c+'-'+a.dock},onClick:function(a){this.fireClickEvent('click',a)},onDblClick:function(a){this.fireClickEvent('dblclick',a)},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {this.mixins.focusablecontainer.onFocusableContainerMousedown.apply(this,arguments)}},syncBeforeAfterTitleClasses:function(l){var c=this,j=c.items,i=j.items,h=c.getTitlePosition(),k=i.length,g=j.generation,f=c.syncBeforeAfterGen,e,d,b,a;if(!l&&f===g){return}c.syncBeforeAfterGen=g;for(b=0;bh){if(f){a.removeCls(d)}a.addCls(e)}}}},syncNoBorderCls:function(){var a=this,b=this.ownerCt,c=a.headerCls+'-noborder';if(b?b.border===!1&&!b.frame:a.border===!1){a.addCls(c)}else {a.removeCls(c)}}}},0,['header'],['component','box','container','header'],{'component':!0,'box':!0,'container':!0,'header':!0},['widget.header'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.panel,'Header'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.None',Ext.Base,{alternateClassName:'Ext.layout.boxOverflow.None',factoryConfig:{defaultType:'none'},isBoxOverflowHandler:!0,$configPrefixed:!1,$configStrict:!1,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var c=this,d=b.state.boxPlan,a;if(d&&d.tooNarrow){a=c.handleOverflow(b);if(a){if(a.reservedSpace){c.layout.publishInnerCtSize(b,a.reservedSpace)}}}else {c.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(e){var b=this,d=b.layout.owner,c,a;if(d.hasListeners.overflowchange){c=d.query('>[hidden]');a=c.length;if(a!==b.lastHiddenCount){d.fireEvent('overflowchange',b.lastHiddenCount,a,c);b.lastHiddenCount=a}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(b){var a;if(b.isToolbar){a='toolbar'}else {if(b.isTabBar){a='tab-bar'}else {if(b.isMenu){a='menu'}else {if(b.isBreadcrumb){a='breadcrumb'}else {a=b.getXType()}}}}return a},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return ''},setVertical:function(){var b=this,a=b.layout,c=a.innerCt;c.removeCls(b.getOverflowCls(a.oppositeDirection));c.addCls(b.getOverflowCls(a.direction))}},1,0,0,0,['box.overflow.None','box.overflow.none'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout.container.boxOverflow,'None',Ext.layout.boxOverflow,'None'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Scroller',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Scroller',animateScroll:!1,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:'x-box-scroller',beforeSuffix:'-before-scroller',afterSuffix:'-after-scroller',constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.scrollPosition=0;a.scrollSize=0},getPrefixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.beforeSuffix,cls:this.createScrollerCls('beforeX'),style:'display:none'}},getSuffixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.afterSuffix,cls:this.createScrollerCls('afterX'),style:'display:none'}},createScrollerCls:function(g){var c=this,d=c.layout,b=d.owner,e=c.getOwnerType(b),a=c.scrollerCls,f=a+' '+a+'-'+d.names[g]+' '+a+'-'+e+' '+a+'-'+e+'-'+b.ui;if(b.plain){f+=' '+a+'-plain'}return f},getOverflowCls:function(a){return this.scrollerCls+'-body-'+a},beginLayout:function(a){a.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(a){var b=this,f=a.state.boxPlan,e=b.layout,d=e.names,g=Math.min(b.getMaxScrollPosition(),a.innerCtScrollPos),c;if(f&&f.tooNarrow){c=a.childItems[a.childItems.length-1].props;b.scrollSize=c[d.x]+c[d.width];b.updateScrollButtons();e.innerCt[d.setScrollLeft](g)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,a)},handleOverflow:function(i){var a=this,d=a.layout.names,h=d.getWidth,f=d.parallelMargins,g,e,b,c;a.showScrollers();b=a.getBeforeScroller();c=a.getAfterScroller();g=b[h]()+c[h]()+b.getMargin(f)+c.getMargin(f);e=i.targetContext.getPaddingInfo()[d.width];return {reservedSpace:Math.max(g-e,0)}},getBeforeScroller:function(){var a=this;return a._beforeScroller||(a._beforeScroller=a.createScroller(a.beforeSuffix,'beforeRepeater','scrollLeft'))},getAfterScroller:function(){var a=this;return a._afterScroller||(a._afterScroller=a.createScroller(a.afterSuffix,'afterRepeater','scrollRight'))},createScroller:function(g,f,e){var b=this,d=b.layout.owner,c=b.scrollerCls,a;a=d.el.getById(d.id+g);a.addClsOnOver(c+'-hover');a.addClsOnClick(c+'-pressed');a.setVisibilityMode(Ext.Element.DISPLAY);b[f]=new Ext.util.ClickRepeater(a,{interval:b.scrollRepeatInterval,handler:e,scope:b});return a},createWheelListener:function(){var a=this;a.wheelListener=a.layout.innerCt.on('mousewheel',a.onMouseWheel,a,{destroyable:!0})},onMouseWheel:function(a){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,!1)},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;if(!a.wheelListener){a.createWheelListener()}a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')},hideScrollers:function(){var a=this,b=a.getBeforeScroller(),c=a.getAfterScroller();if(b){b.hide();c.hide();a.layout.owner.removeClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')}},destroy:function(){Ext.destroyMembers(this,'beforeRepeater','afterRepeater','_beforeScroller','_afterScroller','wheelListener');this.callParent()},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getScrollAnim:function(){return {duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var a=this,c=a.getBeforeScroller(),d=a.getAfterScroller(),b;if(!c||!d){return}b=a.scrollerCls+'-disabled';c[a.atExtremeBefore()?'addCls':'removeCls'](b);d[a.atExtremeAfter()?'addCls':'removeCls'](b);a.scrolling=!1},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,!1)},scrollRight:function(){this.scrollBy(this.scrollIncrement,!1)},getScrollPosition:function(){var b=this,c=b.layout,a;if(isNaN(b.scrollPosition)){a=c.innerCt[c.names.getScrollLeft]()}else {a=b.scrollPosition}return a},getMaxScrollPosition:function(){var c=this,b=c.layout,a=c.scrollSize-b.innerCt.lastBox[b.names.width];return a<0?0:a},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var c=this,d=c.getBeforeScroller(),e=c.getAfterScroller(),b=c.layout.names,a=c.scrollerCls;d.removeCls(a+'-'+b.beforeY);e.removeCls(a+'-'+b.afterY);d.addCls(a+'-'+b.beforeX);e.addCls(a+'-'+b.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(g,b){var a=this,d=a.layout,e=d.names,f=a.getScrollPosition(),c=Ext.Number.constrain(g,0,a.getMaxScrollPosition());if(c!==f&&!a.scrolling){a.scrollPosition=NaN;if(b===undefined){b=a.animateScroll}d.innerCt[e.scrollTo](e.beforeScrollX,c,b?a.getScrollAnim():!1);if(b){a.scrolling=!0}else {a.updateScrollButtons()}a.fireEvent('scroll',a,c,b?a.getScrollAnim():!1)}},scrollToItem:function(a,i){var c=this,e=c.layout,h=e.owner,f=e.names,j=e.innerCt,d,g,b;a=c.getItem(a);if(a!==undefined){if(a===h.items.first()){b=0}else {if(a===h.items.last()){b=c.getMaxScrollPosition()}else {d=c.getItemVisibility(a);if(!d.fullyVisible){g=a.getBox(!1,!0);b=g[f.x];if(d.hiddenEnd){b-=j[f.getWidth]()-g[f.width]}}}}if(b!==undefined){c.scrollTo(b,i)}}},getItemVisibility:function(i){var d=this,h=d.getItem(i).getBox(!0,!0),g=d.layout,c=g.names,b=h[c.x],f=b+h[c.width],a=d.getScrollPosition(),e=a+g.innerCt[c.getWidth]();return {hiddenStart:be,fullyVisible:b>=a&&f<=e}}},1,0,0,0,['box.overflow.Scroller','box.overflow.scroller'],[['observable',Ext.mixin.Observable]],[Ext.layout.container.boxOverflow,'Scroller',Ext.layout.boxOverflow,'Scroller'],0);Ext.cmd.derive('Ext.dd.DragDropManager',Ext.Base,{singleton:!0,alternateClassName:['Ext.dd.DragDropMgr','Ext.dd.DDM'],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:!0,stopPropagation:!0,initialized:!1,locked:!1,init:function(){this.initialized=!0},POINT:0,INTERSECT:1,mode:0,notifyOccluded:!1,dragCls:'x-dd-drag-current',_execOnAll:function(f,g){var c=this.ids,d,e,b,a;for(d in c){if(c.hasOwnProperty(d)){a=c[d];for(e in a){if(a.hasOwnProperty(e)){b=a[e];if(!this.isTypeOfDD(b)){continue}b[f].apply(b,g)}}}}},addListeners:function(){var a=this;a.init();Ext.getDoc().on({mouseup:a.handleMouseUp,mousemove:{fn:a.handleMouseMove,capture:!1},dragstart:a.preventDrag,drag:a.preventDrag,dragend:a.preventDrag,capture:!0,scope:a});Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},preventDrag:function(a){if(this.isMouseDown){a.stopPropagation()}},_onResize:function(a){this._execOnAll('resetConstraints',[])},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isLocked:function(){return this.locked},locationCache:{},useCache:!0,clickPixelThresh:8,dragThreshMet:!1,clickTimeout:null,startX:0,startY:0,regDragDrop:function(b,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][b.id]=b},removeDDFromGroup:function(c,a){if(!this.ids[a]){this.ids[a]={}}var b=this.ids[a];if(b&&b[c.id]){delete b[c.id]}},_remove:function(b,f){var a=this,d=a.ids,e=b.groups,c;if(a.clearingAll){return}if(a.dragCurrent===b){a.dragCurrent=null}for(c in e){if(e.hasOwnProperty(c)){if(f){delete d[c]}else {if(d[c]){delete d[c][b.id]}}}}delete a.handleIds[b.id];delete a.locationCache[b.id]},regHandle:function(a,b){if(!this.handleIds[a]){this.handleIds[a]={}}this.handleIds[a][b]=b},isDragDrop:function(a){return this.getDDById(a)?!0:!1},getRelated:function(f,e){var b=[],c,d,a;for(c in f.groups){for(d in this.ids[c]){a=this.ids[c][d];if(!this.isTypeOfDD(a)){continue}if(!e||a.isTarget){b[b.length]=a}}}return b},isLegalTarget:function(e,d){var b=this.getRelated(e,!0),a,c;for(a=0,c=b.length;aa.clickPixelThresh||e>a.clickPixelThresh){a.startDrag(a.startX,a.startY)}}if(a.dragThreshMet){c.b4Drag(b);c.onDrag(b);if(!c.moveOnly){a.fireEvents(b,!1)}}a.stopEvent(b);return !0},fireEvents:function(e,t){var d=this,s=Ext.supports.Touch,c=d.dragCurrent,l=d.currentPoint,v=l.x,w=l.y,j=[],r=[],h=[],i=[],g=[],k=[],u=s?document.documentElement.clientWidth/window.innerWidth:1,p,b,o,q,a,f,n,m;if(!c||c.isLocked()){return}m=!(c.deltaX<0||c.deltaY<0);if(s||!d.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&m){p=c.getDragEl();if(m){p.style.visibility='hidden'}e.target=document.elementFromPoint(v/u,w/u);if(m){p.style.visibility='visible'}}for(a in d.dragOvers){b=d.dragOvers[a];delete d.dragOvers[a];if(!d.isTypeOfDD(b)||b.destroyed){continue}if(d.notifyOccluded){if(!this.isOverTarget(l,b,d.mode)){h.push(b)}}else {if(!e.within(b.getEl())){h.push(b)}}r[a]=!0}for(n in c.groups){if('string'!==typeof n){continue}for(a in d.ids[n]){b=d.ids[n][a];if(d.isTypeOfDD(b)&&(o=b.getEl())&&b.isTarget&&!b.isLocked()&&Ext.fly(o).isVisible(!0)&&(b!==c||c.ignoreSelf===!1)){if(d.notifyOccluded){if((b.zIndex=d.getZIndex(o))!==-1){q=!0}j.push(b)}else {if(e.within(b.getEl())){j.push(b);break}}}}}if(q){Ext.Array.sort(j,d.byZIndex)}for(a=0,f=j.length;a','',''],isSplitter:!0,baseCls:'x-splitter',collapsedClsInternal:'x-splitter-collapsed',canResize:!0,collapsible:null,collapseOnDblClick:!0,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:'next',horizontal:!1,vertical:!1,size:5,tracker:null,ariaRole:'separator',focusable:!0,tabIndex:0,getTrackerConfig:function(){return Ext.apply({xclass:'Ext.resizer.SplitterTracker',el:this.el,splitter:this},this.tracker)},beforeRender:function(){var a=this,c=a.getCollapseTarget(),b=a.collapsible,d;Ext.Component.prototype.beforeRender.call(this);if(c.collapsed){a.addCls(a.collapsedClsInternal)}if(!a.canResize){a.addCls(a.baseCls+'-noresize')}Ext.applyIf(a.renderData,{collapseDir:a.getCollapseDirection(),collapsible:b!==null?b:c.collapsible});a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-orientation']=a.orientation;a.protoEl.unselectable()},onRender:function(){var a=this,b;Ext.Component.prototype.onRender.apply(this,arguments);if(a.performCollapse!==!1){if(a.renderData.collapsible){a.mon(a.collapseEl,'click',a.toggleTargetCmp,a)}if(a.collapseOnDblClick){a.mon(a.el,'dblclick',a.toggleTargetCmp,a)}}a.getCollapseTarget().on({collapse:a.onTargetCollapse,expand:a.onTargetExpand,beforeexpand:a.onBeforeTargetExpand,beforecollapse:a.onBeforeTargetCollapse,scope:a});if(a.canResize){a.tracker=Ext.create(a.getTrackerConfig());a.relayEvents(a.tracker,['beforedragstart','dragstart','dragend'])}b=a.collapseEl;if(b){b.lastCollapseDirCls=a.collapseDirProps[a.collapseDirection].cls}},getCollapseDirection:function(){var b=this,a=b.collapseDirection,c,f,d,e;if(!a){c=b.collapseTarget;if(c.isComponent){a=c.collapseDirection}if(!a){e=b.ownerCt.layout.type;if(c.isComponent){d=b.ownerCt.items;f=Number(d.indexOf(c)===d.indexOf(b)-1)<<1|Number(e==='hbox')}else {f=Number(b.collapseTarget==='prev')<<1|Number(e==='hbox')}a=['bottom','right','top','left'][f]}b.collapseDirection=a}b.setOrientation(a==='top'||a==='bottom'?'horizontal':'vertical');return a},getCollapseTarget:function(){var a=this;return a.collapseTarget.isComponent?a.collapseTarget:a.collapseTarget==='prev'?a.previousSibling():a.nextSibling()},setCollapseEl:function(b){var a=this.collapseEl;if(a){a.setDisplayed(b)}},onBeforeTargetExpand:function(a){this.setCollapseEl('none')},onBeforeTargetCollapse:function(){this.setCollapseEl('none')},onTargetCollapse:function(b){var a=this;if(b===a.getCollapseTarget()&&b[a.orientation==='vertical'?'collapsedHorizontal':'collapsedVertical']()){a.el.addCls(a.collapsedClsInternal+' '+(a.collapsedCls||''))}a.setCollapseEl('')},onTargetExpand:function(b){var a=this;a.el.removeCls(a.collapsedClsInternal+' '+(a.collapsedCls||''));a.setCollapseEl('')},collapseDirProps:{top:{cls:'x-layout-split-top'},right:{cls:'x-layout-split-right'},bottom:{cls:'x-layout-split-bottom'},left:{cls:'x-layout-split-left'}},orientationProps:{horizontal:{opposite:'vertical',fixedAxis:'height',stretchedAxis:'width'},vertical:{opposite:'horizontal',fixedAxis:'width',stretchedAxis:'height'}},applyCollapseDirection:function(){var c=this,a=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],b;if(a){b=a.lastCollapseDirCls;if(b){a.removeCls(b)}a.addCls(a.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var a=this,e=a.orientation,b=a.orientationProps[e],f=a.size,d=b.fixedAxis,c=b.stretchedAxis,g=a.baseCls+'-';a[e]=!0;a[b.opposite]=!1;if(!a.hasOwnProperty(d)||a[d]==='100%'){a[d]=f}if(!a.hasOwnProperty(c)||a[c]===f){a[c]='100%'}a.removeCls(g+b.opposite);a.addCls(g+e)},setOrientation:function(b){var a=this;if(a.orientation!==b){a.orientation=b;a.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,e){var a=this.getCollapseTarget(),c=a.placeholder,b;if(Ext.isFunction(a.expand)&&Ext.isFunction(a.collapse)){if(c&&!c.hidden){b=!0}else {b=!a.hidden}if(b){if(a.collapsed){a.expand()}else {if(a.collapseDirection){a.collapse()}else {a.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},beforeDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.beforeDestroy.call(this)}},0,['splitter'],['component','box','splitter'],{'component':!0,'box':!0,'splitter':!0},['widget.splitter'],0,[Ext.resizer,'Splitter'],0);Ext.define('Ext.theme.neptune.resizer.Splitter',{override:'Ext.resizer.Splitter',size:8});Ext.cmd.derive('Ext.layout.container.Box',Ext.layout.container.Container,{alternateClassName:'Ext.layout.BoxLayout',type:'box',config:{align:'begin',constrainAlign:!1,enableSplitters:!0,overflowHandler:{$value:null,merge:function(a,b){if(typeof a==='string'){a={type:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},padding:0,pack:'start',stretchMaxPartner:undefined,vertical:!1,alignRoundingMethod:'round'},itemCls:'x-box-item',targetCls:'x-box-layout-ct',targetElCls:'x-box-target',innerCls:'x-box-inner',manageMargins:!0,createsInnerCt:!0,childEls:['innerCt','targetEl'],renderTpl:['{%var oc,l=values.$comp.layout,oh=l.overflowHandler;if (oh && oh.getPrefixConfig!==Ext.emptyFn) {if(oc=oh.getPrefixConfig())dh.generateMarkup(oc, out)}%}{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:!0,definitions:'var dh=Ext.DomHelper;'}],constructor:function(c){var a=this,b;Ext.layout.container.Container.prototype.constructor.apply(this,arguments);a.setVertical(a.vertical);a.flexSortFn=a.flexSort.bind(a);b=typeof a.padding;if(b==='string'||b==='number'){a.padding=Ext.util.Format.parseBox(a.padding);a.padding.height=a.padding.top+a.padding.bottom;a.padding.width=a.padding.left+a.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(h,b){var a=this,f=a.sizePolicy,g=a.align,p=h.flex,c=g,o=a.names,e=o.height,m=o.width,q=h[m],n=h[e],d=a._percentageRe,i=d.test(q),l=g==='stretch',j=g==='stretchmax',k=a.constrainAlign;if(!b&&(l||p||i||k&&!j)){b=a.owner.getSizeModel()}if(l){if(!d.test(n)&&b[e].shrinkWrap){c='stretchmax'}}else {if(!j){if(d.test(n)){c='stretch'}else {if(k&&!b[e].shrinkWrap){c='stretchmax'}else {c=''}}}}if(p||i){if(!b[m].shrinkWrap){f=f.flex}}return f[c]},flexSort:function(o,p){var k=this.names.maxWidth,l=this.names.minWidth,j=Infinity,c=o.target,d=p.target,m=c.flex,n=d.flex,a=0,g,i,f,h,e,b;f=c[k]||j;h=d[k]||j;g=c[l]||0;i=d[l]||0;e=isFinite(g)||isFinite(i);b=isFinite(f)||isFinite(h);if(e||b){if(b){a=f-h}if(a===0&&e){a=i-g}if(a===0){if(b){a=n-m}else {a=m-n}}}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(a){var b=this;if(b.direction==='vertical'&&a.collapsedVertical()){a.collapseMemento.capture(['flex']);delete a.flex}else {if(b.direction==='horizontal'&&a.collapsedHorizontal()){a.collapseMemento.capture(['flex']);delete a.flex}}},beginExpand:function(a){a.collapseMemento.restore(['flex'])},beginLayout:function(a){var c=this,f=c.owner,b=f.stretchMaxPartner,h=c.innerCt.dom.style,i=c.names,g=c.overflowHandler,e=f.getScrollable(),d;a.boxNames=i;if(g){g.beginLayout(a)}if(typeof b==='string'){b=Ext.getCmp(b)||f.query(b)[0]}a.stretchMaxPartner=b&&a.context.getCmp(b);Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);a.innerCtContext=a.getEl('innerCt',c);a.targetElContext=a.getEl('targetEl',c);if(e){a.ownerScrollable=e;d=e.getPosition();if(d.x||d.y){a.scrollRestore=d}}h.width=h.height=''},beginLayoutCycle:function(a,l){var c=this,i=a.state,g=a.ownerScrollable,b=c.align,e=a.boxNames,d=c.pack,k=c._centerRe,j=c.overflowHandler,m=a.state.canScroll,h,f;if(j){j.beginLayoutCycle(a,l)}Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);a.parallelSizeModel=h=a[e.widthModel];a.perpendicularSizeModel=f=a[e.heightModel];a.boxOptions={align:b={stretch:b==='stretch',stretchmax:b==='stretchmax',center:k.test(b),bottom:c._endRe.test(b)},pack:d={center:k.test(d),end:d==='end'}};if(g){if(!m){i.canScroll={parallel:!h.shrinkWrap&&g[e.getX](),perpendicular:!f.shrinkWrap&&g[e.getY]()}}if(!i.actualScroll){i.actualScroll={parallel:!1,perpendicular:!1}}}if(b.stretch&&f.shrinkWrap){b.stretchmax=!0;b.stretch=!1}b.nostretch=!(b.stretch||b.stretchmax);if(h.shrinkWrap){d.center=d.end=!1}c.cacheFlexes(a);c.targetEl.setWidth(20000)},cacheFlexes:function(a){var u=this,d=a.boxNames,x=d.widthModel,w=d.heightModel,z=a.boxOptions.align.nostretch,s=0,r=a.childItems,v=r.length,h=[],t=0,g=0,o=0,p=d.minWidth,y=d.minHeight,q=u._percentageRe,n=0,m=0,b,c,l,f,i,j,k,e;while(v--){c=r[v];b=c.target;j=c[x];if(j.calculated){c.flex=l=b.flex;if(l){s+=l;h.push(c);t+=b[p]||0}else {f=q.exec(b[d.width]);c.percentageParallel=parseFloat(f[1])/100;++n}}if(j.configured){k=b[d.width]}else {k=b[p]||0}o+=k;i=c[w];if(z&&i.calculated){f=q.exec(b[d.height]);c.percentagePerpendicular=parseFloat(f[1])/100;++m}if(i.configured){e=b[d.height]}else {e=b[y]||0}if(e>g){g=e}}a.flexedItems=h;a.flexedMinWidth=t;a.smallestWidth=o;a.smallestHeight=g;a.totalFlex=s;a.percentageWidths=n;a.percentageHeights=m;Ext.Array.sort(h,u.flexSortFn)},calculate:function(b){var c=this,f=b.boxNames,a=b.state,h=a.actualScroll,g=a.needsScroll,e=a.canScroll,d=a.boxPlan||(a.boxPlan={}),i=c.overflowHandler;d.targetSize=c.getContainerSize(b);if(e&&!g){a.needsScroll=g={parallel:e.parallel&&d.targetSize[f.width]j){a.invalidate({before:K,after:L,layout:l,childHeight:j,names:d});c.state.parallelDone=!1}if(isNaN(b=o(b,g+i,a.target[d.minHeight]||0))){return !1}}}if(v){b+=q;c[d.hasOverflowX]=!0;c.target.componentLayout[d.setHeightInDom]=!0;c[d.invalidateScrollX]=Ext.isIE8}p=c.stretchMaxPartner;if(p){c.setProp('maxChildHeight',b);w=p.childItems;if(w&&w.length){b=o(b,p.getProp('maxChildHeight'));if(isNaN(b)){return !1}}}c[d.setContentHeight](b+l.padding[e]+c.targetContext.getPaddingInfo()[e]);if(v){b-=q}if(b>y[e]&&H&&H.perpendicular){C.actualScroll.perpendicular=!0}t.maxSize=b;if(O){f=b}else {if(B||A||D){if(I){f=h?b:j}else {f=h?b:o(j,b)}f-=c.innerCtContext.getBorderInfo()[e]}}for(k=0;k0){n=u+Math[l.alignRoundingMethod](s/2)}}else {if(A){n=o(0,f-n-a.props[e])}}}a.setProp(M,n)}return !0},onBeforeConstrainInvalidateChild:function(b,c){var a=c.names.heightModel;if(!b[a].constrainedMin){b[a]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(a,c){var b=c.names;a.setProp(b.beforeY,0);if(a[b.heightModel].calculated){a[b.setHeight](c.childHeight)}},calculateStretchMax:function(k,c,o){var f=this,h=c.height,l=c.width,g=k.childItems,n=g.length,m=o.maxSize,i=f.onBeforeStretchMaxInvalidateChild,j=f.onAfterStretchMaxInvalidateChild,a,b,d,e;for(d=0;d':{xtype:'tbfill',height:0}},1:{'->':{xtype:'tbfill',width:0}}}},initComponent:function(){var a=this,b=a.layout,c=a.vertical;if(c===undefined){a.vertical=c=a.dock==='right'||a.dock==='left'}a.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:c?'vbox':'hbox',align:c?'stretchmax':'middle'});if(a.overflowHandler){b.overflowHandler=a.overflowHandler}else {if(a.enableOverflow){b.overflowHandler='menu'}}if(c){a.addClsWithUI('vertical')}if(a.ui==='footer'){a.ignoreBorderManagement=!0}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(d){var c=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),e=c.layout,a;if(d&&(c.enableOverflow||c.overflowHandler==='menu')){a=e.overflowHandler;if(a&&a.menu){b=b.concat(a.menu.getRefItems(d))}}return b},lookupComponent:function(a){var d=arguments,b,c;if(typeof a==='string'){c=Ext.toolbar.Toolbar;b=c.shortcutsHV[this.vertical?1:0][a]||c.shortcuts[a];if(typeof b==='string'){a={xtype:b}}else {if(b){a=Ext.apply({},b)}else {a={xtype:'tbtext',text:a}}}this.applyDefaults(a);d=[a]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(a){var b=this,d=b.ui==='footer',c=d?b.defaultFooterButtonUI:b.defaultButtonUI;if(a.isSegmentedButton){if(a.getDefaultUI()==='default'&&!a.config.hasOwnProperty('defaultUI')){a.setDefaultUI(c)}}else {if(a.ui==='default'&&!a.hasOwnProperty('ui')){if(a.isButton){a.ui=c}else {if(a.isFormField){a.ui=d?b.defaultFooterFieldUI:b.defaultFieldUI}}}}if(a instanceof Ext.toolbar.Separator){a.setUI(b.vertical?'vertical':'horizontal')}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(a){if(a.needArrowKeys&&this.enableFocusableContainer){this.enableFocusableContainer=!1}Ext.container.Container.prototype.onAdd.apply(this,arguments);this.trackMenu(a)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,!0)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(b,c){var a=this;if(a.trackMenus&&b.menu){b[c?'un':'on']({mouseover:a.onButtonOver,menushow:a.onButtonMenuShow,menuhide:a.onButtonMenuHide,scope:a})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(a,c){var b=this.activeMenuBtn;if(b&&b!==a){b.hideMenu();a.focus();a.showMenu(c);this.activeMenuBtn=a}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,['toolbar'],['component','box','container','toolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0},['widget.toolbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,'Toolbar',Ext,'Toolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Toolbar',{override:'Ext.toolbar.Toolbar',usePlainButtons:!1,border:!1});Ext.cmd.derive('Ext.dd.DragDrop',Ext.Base,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:!1,lock:function(){this.locked=!0},moveOnly:!1,unlock:function(){this.locked=!1},isTarget:!0,padding:null,_domRef:null,__ygDragDrop:!0,constrainX:!1,constrainY:!1,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:!1,xTicks:null,yTicks:null,primaryButtonOnly:!0,available:!1,hasOuterHandles:!1,triggerEvent:'mousedown',b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(b,a){},b4DragOver:function(a){},onDragOver:function(b,a){},b4DragOut:function(a){},onDragOut:function(b,a){},b4DragDrop:function(a){},onDragDrop:function(b,a){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(j,a,k){if(Ext.isNumber(a)){a={left:a,right:a,top:a,bottom:a}}a=a||this.defaultPadding;var c=Ext.get(this.getEl()).getBox(),e=Ext.get(j),i=e.getScroll(),b,d=e.dom,h,g,f;if(d===document.body){b={x:i.left,y:i.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else {h=e.getXY();b={x:h[0],y:h[1],width:d.clientWidth,height:d.clientHeight}}g=c.y-b.y;f=c.x-b.x;this.resetConstraints();this.setXConstraint(f-(a.left||0),b.width-f-c.width-(a.right||0),this.xTickSize);this.setYConstraint(g-(a.top||0),b.height-g-c.height-(a.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(b,d,c){var a=this;a.el=a.el||Ext.get(b);a.initTarget(b,d,c);Ext.get(a.id).on(a.triggerEvent,a.handleMouseDown,a)},initTarget:function(a,b,c){this.config=c||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof a!=='string'){a=Ext.id(a)}this.id=a;this.addToGroup(b?b:'default');this.handleElId=a;this.setDragElId(a);this.invalidHandleTypes={A:'A'};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=this.config.isTarget!==!1;this.maintainOffset=this.config.maintainOffset;this.primaryButtonOnly=this.config.primaryButtonOnly!==!1},handleOnAvailable:function(){this.available=!0;this.resetConstraints();this.onAvailable()},setPadding:function(a,b,c,d){if(!b&&0!==b){this.padding=[a,a,a,a]}else {if(!c&&0!==c){this.padding=[a,b,a,b]}else {this.padding=[a,b,c,d]}}},setInitPosition:function(e,f){var d=this.getEl(),b,c,a;if(!this.DDMInstance.verifyEl(d)){return}b=e||0;c=f||0;a=Ext.fly(d).getXY();this.initPageX=a[0]-b;this.initPageY=a[1]-c;this.lastPageX=a[0];this.lastPageY=a[1];this.setStartPosition(a)},setStartPosition:function(b){var a=b||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=a[0];this.startPageY=a[1]},addToGroup:function(a){this.groups[a]=!0;this.DDMInstance.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDMInstance.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.handleElId=a;this.DDMInstance.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}Ext.get(a).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=!0},unreg:function(){var a=this,b;if(a._domRef){b=Ext.fly(a.id);if(b){b.un(a.triggerEvent,a.handleMouseDown,a)}}a._domRef=null;a.DDMInstance._remove(a,a.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return this.DDMInstance.isLocked()||this.locked},handleMouseDown:function(b,c){var a=this;if(a.primaryButtonOnly&&b.button||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(b.getPoint(),a)){if(a.clickValidator(b)){a.setStartPosition();a.b4MouseDown(b);a.onMouseDown(b);a.DDMInstance.handleMouseDown(b,a);a.DDMInstance.stopEvent(b)}}},clickValidator:function(b){var a=b.getTarget();return this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id))},addInvalidHandleType:function(b){var a=b.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){var b=a.toUpperCase();delete this.invalidHandleTypes[b]},removeInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(c){var b=this.invalidHandleClasses,d=b.length,a;for(a=0;a=this.minX;a=a-c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}for(a=this.initPageX;a<=this.maxX;a=a+c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,c){this.yTicks=[];this.yTickSize=c;var b={},a;for(a=this.initPageY;a>=this.minY;a=a-c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}for(a=this.initPageY;a<=this.maxY;a=a+c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(c,b,a){this.leftConstraint=c;this.rightConstraint=b;this.minX=this.initPageX-c;this.maxX=this.initPageX+b;if(a){this.setXTicks(this.initPageX,a)}this.constrainX=!0},clearConstraints:function(){this.constrainX=!1;this.constrainY=!1;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(c,b,a){this.topConstraint=c;this.bottomConstraint=b;this.minY=this.initPageY-c;this.maxY=this.initPageY+b;if(a){this.setYTicks(this.initPageY,a)}this.constrainY=!0},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var a=this.maintainOffset?this.lastPageX-this.initPageX:0,b=this.maintainOffset?this.lastPageY-this.initPageY:0;this.setInitPosition(a,b)}else {this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(d,a){if(!a){return d}else {if(a[0]>=d){return a[0]}else {var b,g,c,e,f;for(b=0,g=a.length;b=d){e=d-a[b];f=a[c]-d;return f>e?a[b]:a[c]}}return a[a.length-1]}}},toString:function(){return 'DragDrop '+this.id}},3,0,0,0,0,0,[Ext.dd,'DragDrop'],0);Ext.cmd.derive('Ext.dd.DD',Ext.dd.DragDrop,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},scroll:!0,autoOffset:function(a,b){var c=a-this.startPageX,d=b-this.startPageY;this.setDelta(c,d)},setDelta:function(a,b){this.deltaX=a;this.deltaY=b},setDragElPos:function(a,b){var c=this.getDragEl();this.alignElWithMouse(c,a,b)},alignElWithMouse:function(d,j,k){var a=this.getTargetCoord(j,k),c=d.dom?d:Ext.fly(d,'_dd'),e=c.getSize(),i=Ext.Element,b,g,f,h;if(!this.deltaSetXY){b=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};g=[Math.max(0,Math.min(a.x,b.width-e.width)),Math.max(0,Math.min(a.y,b.height-e.height))];c.setXY(g);f=this.getLocalX(c);h=c.getLocalY();this.deltaSetXY=[f-a.x,h-a.y]}else {b=this.cachedViewportSize;this.setLocalXY(c,Math.max(0,Math.min(a.x+this.deltaSetXY[0],b.width-e.width)),Math.max(0,Math.min(a.y+this.deltaSetXY[1],b.height-e.height)))}this.cachePosition(a.x,a.y);this.autoScroll(a.x,a.y,d.offsetHeight,d.offsetWidth);return a},cachePosition:function(b,c){if(b){this.lastPageX=b;this.lastPageY=c}else {var a=Ext.fly(this.getEl()).getXY();this.lastPageX=a[0];this.lastPageY=a[1]}},autoScroll:function(e,f,m,n){if(this.scroll){var g=Ext.Element.getViewportHeight(),h=Ext.Element.getViewportWidth(),b=this.DDMInstance.getScrollTop(),a=this.DDMInstance.getScrollLeft(),l=m+f,j=n+e,k=g+b-f-this.deltaY,i=h+a-e-this.deltaX,d=40,c=document.all?80:30;if(l>g&&k0&&f-bh&&i0&&e-athis.maxX){a=this.maxX}}if(this.constrainY){if(bthis.maxY){b=this.maxY}}a=this.getTick(a,this.xTicks);b=this.getTick(b,this.yTicks);return {x:a,y:b}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=this.config.scroll!==!1},b4MouseDown:function(b){var a=b.getXY();this.autoOffset(a[0],a[1])},b4Drag:function(b){var a=b.getXY();this.setDragElPos(a[0],a[1])},toString:function(){return 'DD '+this.id},getLocalX:function(a){return a.getLocalX()},setLocalXY:function(a,b,c){a.setLocalXY(b,c)}},3,0,0,0,0,0,[Ext.dd,'DD'],0);Ext.cmd.derive('Ext.dd.DDProxy',Ext.dd.DD,{statics:{dragElId:'ygddfdiv'},constructor:function(a,c,b){if(a){this.init(a,c,b);this.initFrame()}},resizeFrame:!0,centerFrame:!1,createFrame:function(){var d=this,c=document.body,a,b;if(!c||!c.firstChild){Ext.defer(function(){d.createFrame()},50);return}a=this.getDragEl();if(!a){a=document.createElement('div');a.id=this.dragElId;a.setAttribute('role','presentation');b=a.style;b.position='absolute';b.visibility='hidden';b.cursor='move';b.border='2px solid #aaa';b.zIndex=999;c.insertBefore(a,c.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=this.config.resizeFrame!==!1;this.centerFrame=this.config.centerFrame;this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(d,e){var a=this,b=a.getDragEl(),c=b.style;a._resizeProxy();if(a.centerFrame){a.setDelta(Math.round(parseInt(c.width,10)/2),Math.round(parseInt(c.height,10)/2))}a.setDragElPos(d,e);Ext.fly(b).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(d){var a=d.getXY(),b=a[0],c=a[1];this.autoOffset(b,c);this.setDragElPos(b,c)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl(),a=this.getDragEl();a.style.visibility='';this.beforeMove();b.style.visibility='hidden';Ext.dd.DDM.moveToEl(b,a);a.style.visibility='hidden';b.style.visibility='';this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return 'DDProxy '+this.id}},3,0,0,0,0,0,[Ext.dd,'DDProxy'],0);Ext.cmd.derive('Ext.dd.StatusProxy',Ext.Component,{animRepair:!1,childEls:['ghost'],renderTpl:[''],repairCls:'x-dd-drag-repair',ariaRole:'presentation',skipLayout:!0,constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:'visibility',hidden:!0,floating:!0,id:b.id||Ext.id(),cls:'x-dd-drag-proxy '+this.dropNotAllowed,shadow:a.shadow||!1,renderTo:Ext.getDetachedBody()});Ext.Component.prototype.constructor.apply(this,arguments);this.dropStatus=this.dropNotAllowed},dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',setStatus:function(a){a=a||this.dropNotAllowed;if(this.dropStatus!==a){this.el.replaceCls(this.dropStatus,a);this.dropStatus=a}},reset:function(c){var a=this,b='x-dd-drag-proxy ';a.el.replaceCls(b+a.dropAllowed,b+a.dropNotAllowed);a.dropStatus=a.dropNotAllowed;if(c){a.ghost.setHtml('')}},update:function(a){if(typeof a==='string'){this.ghost.setHtml(a)}else {this.ghost.setHtml('');a.style.margin='0';this.ghost.dom.appendChild(a)}var b=this.ghost.dom.firstChild;if(b){Ext.fly(b).setStyle('float','none')}},getGhost:function(){return this.ghost},hide:function(a){Ext.Component.prototype.hide.call(this);if(a){this.reset(!0)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(b,c,d){var a=this;a.callback=c;a.scope=d;if(b&&a.animRepair!==!1){a.el.addCls(a.repairCls);a.el.setUnderlaysVisible(!1);a.anim=a.el.animate({duration:a.repairDuration||500,easing:'ease-out',to:{x:b[0],y:b[1]},stopAnimation:!0,callback:a.afterRepair,scope:a})}else {a.afterRepair()}},afterRepair:function(){var a=this;a.hide(!0);a.el.removeCls(a.repairCls);if(typeof a.callback==='function'){a.callback.call(a.scope||a)}delete a.callback;delete a.scope}},1,0,['component','box'],{'component':!0,'box':!0},0,0,[Ext.dd,'StatusProxy'],0);Ext.cmd.derive('Ext.dd.DragSource',Ext.dd.DDProxy,{dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',animRepair:!0,repairHighlightColor:'c3daf9',constructor:function(b,a){this.el=Ext.get(b);if(!this.dragData){this.dragData={}}Ext.apply(this,a);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy({id:this.el.id+'-drag-status-proxy',animRepair:this.animRepair})}Ext.dd.DDProxy.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:!1,isTarget:!1,scroll:this.scroll===!0});this.dragging=!1},getDragData:function(a){return this.dragData},onDragEnter:function(c,b){var a=Ext.dd.DragDropManager.getDDById(b),d;this.cachedTarget=a;if(this.beforeDragEnter(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyEnter(this,c,this.dragData);this.proxy.setStatus(d)}else {this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(a,c,b)}}},beforeDragEnter:function(a,c,b){return !0},onDragOver:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b),d;if(this.beforeDragOver(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyOver(this,c,this.dragData);this.proxy.setStatus(d)}if(this.afterDragOver){this.afterDragOver(a,c,b)}}},beforeDragOver:function(a,c,b){return !0},onDragOut:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragOut(a,c,b)!==!1){if(a.isNotifyTarget){a.notifyOut(this,c,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,c,b)}}this.cachedTarget=null},beforeDragOut:function(a,c,b){return !0},onDragDrop:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragDrop(a,c,b)!==!1){if(a.isNotifyTarget){if(a.notifyDrop(this,c,this.dragData)!==!1){this.onValidDrop(a,c,b)}else {this.onInvalidDrop(a,c,b)}}else {this.onValidDrop(a,c,b)}if(this.afterDragDrop){this.afterDragDrop(a,c,b)}}delete this.cachedTarget},beforeDragDrop:function(a,c,b){return !0},onValidDrop:function(a,c,b){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(a,c,b)}},getRepairXY:function(b,a){return this.el.getXY()},onInvalidDrop:function(c,b,d){var a=this;if(!b){b=c;c=null;d=b.getTarget().id}if(a.beforeInvalidDrop(c,b,d)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}a.proxy.repair(a.getRepairXY(b,a.dragData),a.afterRepair,a);if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}},afterRepair:function(){var a=this;if(Ext.enableFx){a.el.highlight(a.repairHighlightColor)}a.dragging=!1},beforeInvalidDrop:function(a,c,b){return !0},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==!1){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return !0},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(!0);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=!1;this.dragging=!0;this.proxy.update('');this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(b,c){var a=this.el.dom.cloneNode(!0);a.id=Ext.id();this.proxy.update(a);this.onStartDrag(b,c);return !0},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(!0);this.dragging=!1},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(a){},endDrag:function(a){this.onEndDrag(this.dragData,a)},onEndDrag:function(a,b){},autoOffset:function(a,b){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DDProxy.prototype.destroy.call(this);Ext.destroy(this.proxy)}},1,0,0,0,0,0,[Ext.dd,'DragSource'],0);Ext.cmd.derive('Ext.panel.Proxy',Ext.Base,{alternateClassName:'Ext.dd.PanelProxy',moveOnDrag:!0,constructor:function(c,b){var a=this;a.panel=c;a.id=a.panel.id+'-ddproxy';Ext.apply(a,b)},insertProxy:!0,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost.el},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){var a=this;if(a.ghost){if(a.proxy){a.proxy.destroy();delete a.proxy}a.panel.unghost(null,a.moveOnDrag);delete a.ghost}},show:function(){var a=this,b;if(!a.ghost){b=a.panel.getSize();a.panel.el.setVisibilityMode(Ext.Element.DISPLAY);a.ghost=a.panel.ghost();if(a.insertProxy){a.proxy=a.panel.el.insertSibling({role:'presentation',cls:'x-panel-dd-spacer'});a.proxy.setSize(b)}}},repair:function(c,a,b){this.hide();Ext.callback(a,b||this)},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}},1,0,0,0,0,0,[Ext.panel,'Proxy',Ext.dd,'PanelProxy'],0);Ext.cmd.derive('Ext.panel.DD',Ext.dd.DragSource,{constructor:function(b,c){var a=this;a.panel=b;a.dragData={panel:b};a.panelProxy=new Ext.panel.Proxy(b,c);a.proxy=a.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,c);a.setupEl(b)},setupEl:function(c){var a=this,b=c.header,d=c.body;if(b){a.setHandleElId(b.id);d=b.el}if(d){d.setStyle('cursor','move');a.scroll=!1}else {c.on('boxready',a.setupEl,a,{single:!0})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(b){var a=b.getXY(),c=a[0],d=a[1];this.autoOffset(c,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return !0},createFrame:Ext.emptyFn,getDragEl:function(b){var a=this.panelProxy.ghost;if(a){return a.el.dom}},endDrag:function(a){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)},onInvalidDrop:function(d,b,c){var a=this;if(a.beforeInvalidDrop(d,b,c)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,c)}}}},1,0,0,0,0,0,[Ext.panel,'DD'],0);Ext.cmd.derive('Ext.layout.component.Dock',Ext.layout.component.Component,{alternateClassName:'Ext.layout.component.AbstractDock',type:'dock',horzAxisProps:{name:'horz',oppositeName:'vert',dockBegin:'left',dockEnd:'right',horizontal:!0,marginBegin:'margin-left',maxSize:'maxWidth',minSize:'minWidth',pos:'x',setSize:'setWidth',shrinkWrapDock:'shrinkWrapDockWidth',size:'width',sizeModel:'widthModel'},vertAxisProps:{name:'vert',oppositeName:'horz',dockBegin:'top',dockEnd:'bottom',horizontal:!1,marginBegin:'margin-top',maxSize:'maxHeight',minSize:'minHeight',pos:'y',setSize:'setHeight',shrinkWrapDock:'shrinkWrapDockHeight',size:'height',sizeModel:'heightModel'},initializedBorders:-1,horizontalCollapsePolicy:{width:!0,x:!0},verticalCollapsePolicy:{height:!0,y:!0},finishRender:function(){var a=this,b,c;Ext.layout.component.Component.prototype.finishRender.call(this);b=a.getRenderTarget();c=a.getDockedItems();a.finishRenderItems(b,c)},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},noBorderClasses:['x-docked-noborder-top','x-docked-noborder-right','x-docked-noborder-bottom','x-docked-noborder-left'],noBorderClassesSides:{top:'x-docked-noborder-top',right:'x-docked-noborder-right',bottom:'x-docked-noborder-bottom',left:'x-docked-noborder-left'},borderWidthProps:{top:'border-top-width',right:'border-right-width',bottom:'border-bottom-width',left:'border-left-width'},_itemCls:'x-docked',handleItemBorders:function(){var c=this,b=c.owner,a,l,k=c.lastDockedItems,j=c.borders,m=b.dockedItems.generation,i=c.noBorderClassesSides,n=c.borderWidthProps,f,h,d,g,e,o=c.collapsed;if(c.initializedBorders===m||b.border&&!b.manageBodyBorders||b.collapsed&&b.collapseMode==='mini'){return}c.initializedBorders=m;c.collapsed=!1;c.lastDockedItems=l=c.getLayoutItems();c.collapsed=o;a={top:[],right:[],bottom:[],left:[]};for(f=0,h=l.length;fj){b=i.constrainedMax;m=j}else {if(hj){c=i.constrainedMax;l=j}else {if(h',addDocked:function(c,d){var b=this,k=b.rendered,f=0,g=b.dockedItems,i=g.getCount(),e,h,a,j;c=b.prepareItems(c);j=c.length;if(k){Ext.suspendLayouts()}if(d===undefined){d=i}else {d=Math.min(d,i)}for(;f','
','{headingText}','
','','{% this.renderDockedItems(out,values,0); %}','
{bodyCls}',' {baseCls}-body-{ui}',' {parent.baseCls}-body-{parent.ui}-{.}','{childElCls}"','',' {$}="{.}"','',' role="presentation"','',' style="{bodyStyle}">','{%this.renderContainer(out,values);%}','
','{% this.renderDockedItems(out,values,1); %}'],headerPosition:'top',iconAlign:'left',titleAlign:'left',titleRotation:'default',beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titleRotation:null},animCollapse:Ext.enableFx,border:!0,closable:!1,closeAction:'destroy',closeToolText:'Close panel',collapsed:!1,collapsedCls:'collapsed',collapseFirst:!0,collapsible:undefined,collapseToolText:'Collapse panel',expandToolText:'Expand panel',constrain:!1,constrainHeader:!1,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:!0,frame:!1,frameHeader:!0,hideCollapseTool:!1,manageHeight:!0,maskElement:'el',minButtonWidth:75,preventHeader:!1,shrinkWrapDock:!1,titleCollapse:undefined,baseCls:'x-panel',bodyPosProps:{x:'x',y:'y'},componentLayout:'dock',contentPaddingProperty:'bodyPadding',emptyArray:[],isPanel:!0,defaultBindProperty:'title',addBodyCls:function(c){var a=this,b=a.rendered?a.body:a.getProtoBody();b.addCls(c);return a},addTool:function(b){if(!Ext.isArray(b)){b=[b]}var c=this,a=c.header,g=b.length,f=c.tools,e,d;if(!a||!a.isHeader){a=null;if(!f){c.tools=f=[]}}for(e=0;e0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(a.is(this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(e,b){var a=this,d=a.items,c=a.addHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.add(b)}}},onItemRemove:function(e,b){var a=this,d=a.items,c=a.removeHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.remove(b)}}},onContainerAdd:function(c,i){var a=this,d,e,h=a.handleAdd,g=a.handleRemove,b,f;if(c.isContainer){c.on('add',h,a);c.on('dockedadd',h,a);c.on('remove',g,a);c.on('dockedremove',g,a)}if(i!==!0){d=c.query(a.selector);for(b=0,e=d.length;bcontainer');for(b=0,e=d.length;ba.tolerance){a.triggerStart(b)}else {return}}if(a.fireEvent('mousemove',a,b)===!1){a.onMouseUp(b)}else {a.onDrag(b);a.fireEvent('drag',a,b)}},onMouseUp:function(b){var a=this;a.mouseIsDown=!1;if(a.mouseIsOut){a.mouseIsOut=!1;a.onMouseOut(b)}if(a.preventDefault!==!1){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent('mouseup',a,b);a.endDrag(b)},endDrag:function(b){var a=this,c=a.active;Ext.getDoc().un({mousemove:a.onMouseMove,mouseup:a.onMouseUp,selectstart:a.stopSelect,capture:!0,scope:a});a.clearStart();a.active=!1;if(c){a.dragEnded=!0;a.onEnd(b);a.fireEvent('dragend',a,b)}a._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=!0;a.onStart(b);a.fireEvent('dragstart',a,b)},clearStart:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return !1},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var a=this;if(a.constrainTo){if(a.constrainTo instanceof Ext.util.Region){return a.constrainTo}if(!a._constrainRegion){a._constrainRegion=Ext.fly(a.constrainTo).getViewRegion()}}else {if(!a._constrainRegion){a._constrainRegion=a.getDragCt().getViewRegion()}}return a._constrainRegion},getXY:function(a){return a?this.constrainModes[a](this,this.lastXY):this.lastXY},getOffset:function(c){var a=this.getXY(c),b=this.startXY;return [a[0]-b[0],a[1]-b[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(d,b){var a=d.dragRegion,c=d.getConstrainRegion();if(!c){return b}a.x=a.left=a[0]=a.right=b[0];a.y=a.top=a[1]=a.bottom=b[1];a.constrainTo(c);return [a.left,a.top]},dragTarget:function(e,c){var f=e.startXY,a=e.startRegion.copy(),b=e.getConstrainRegion(),d;if(!b){return c}a.translateBy(c[0]-f[0],c[1]-f[1]);if(a.right>b.right){c[0]+=d=b.right-a.right;a.left+=d}if(a.leftb.bottom){c[1]+=d=b.bottom-a.bottom;a.top+=d}if(a.top[flex]'),o=j.length,h=n==='vertical',i=0,d=h?'width':'height',m=0,g,a;for(;i',tabGuardIndex:0},tabGuardPositionAttribute:'data-tabguardposition',privates:{initTabGuards:function(){var a=this,f=a.tabGuardPositionAttribute,c=a.tabGuardBeforeEl,d=a.tabGuardAfterEl,e=a.tabGuardIndex,b;if(!a.rendered||!a.tabGuard){return}b=a.el.findTabbableElements({skipSelf:!0});if(b[0]&&b[0].hasAttribute(f)){b.shift()}if(b.length&&b[b.length-1].hasAttribute(f)){b.pop()}if(b.length){c.dom.setAttribute('tabIndex',e);c.on('focusenter',a.onTabGuardFocusEnter,a);d.dom.setAttribute('tabIndex',e);d.on('focusenter',a.onTabGuardFocusEnter,a)}else {c.dom.removeAttribute('tabIndex');c.un('focusenter',a.onTabGuardFocusEnter,a);d.dom.removeAttribute('tabIndex');d.un('focusenter',a.onTabGuardFocusEnter,a)}},onTabGuardFocusEnter:function(j,i){var h=this,e=h.el,g=h.tabGuardPositionAttribute,f=i.getAttribute(g),d=j.relatedTarget,a,c,b;if(!d.hasAttribute(g)&&d!==e.dom&&e.contains(d)){c=f==='before'?!1:!0}else {c=f==='before'?!0:!1}a=e.findTabbableElements({skipSelf:!0});a.shift();a.pop();b=c?a[0]:a[a.length-1];if(b){b.focus()}}}},0,0,0,0,0,0,[Ext.util,'FocusTrap'],0);Ext.cmd.derive('Ext.window.Window',Ext.panel.Panel,{alternateClassName:'Ext.Window',baseCls:'x-window',resizable:!0,draggable:!0,constrain:!1,constrainHeader:!1,plain:!1,minimizable:!1,maximizable:!1,minHeight:50,minWidth:50,expandOnShow:!0,collapsible:!1,closable:!0,hidden:!0,autoRender:!0,hideMode:'offsets',floating:!0,itemCls:'x-window-item',overlapHeader:!0,ignoreHeaderBorderManagement:!0,alwaysFramed:!0,isRootCfg:{isRoot:!0},isWindow:!0,ariaRole:'dialog',initComponent:function(){var a=this;a.frame=!1;Ext.panel.Panel.prototype.initComponent.call(this);if(a.plain){a.addClsWithUI('plain')}a.addStateEvents(['maximize','restore','resize','dragend'])},getElConfig:function(){var b=this,a;a=Ext.panel.Panel.prototype.getElConfig.call(this);a.tabIndex=-1;return a},getFocusEl:function(){return this.getDefaultFocus()||this.el},getState:function(){var a=this,e=Ext.panel.Panel.prototype.getState.call(this)||{},c=!!a.maximized,d=a.ghostBox,b;e.maximized=c;if(c){b=a.restorePos}else {if(d){b=[d.x,d.y]}else {b=a.getPosition()}}Ext.apply(e,{size:c?a.restoreSize:a.getSize(),pos:b});return e},applyState:function(a){var b=this;if(a){b.maximized=a.maximized;if(b.maximized){b.hasSavedRestore=!0;b.restoreSize=a.size;b.restorePos=a.pos}else {Ext.apply(b,{width:a.size.width,height:a.size.height,x:a.pos[0],y:a.pos[1]})}}},onRender:function(c,b){var a=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(a.header){a.header.on({scope:a,click:a.onHeaderClick})}if(a.maximizable){a.header.on({scope:a,dblclick:a.toggleMaximize})}},afterRender:function(){var a=this,c=a.header,b;if(a.maximized){a.maximized=!1;a.maximize();if(c){c.removeCls(c.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);if(a.closable){b=a.getKeyMap();b.on(27,a.onEsc,a)}else {b=a.keyMap}if(b&&a.hidden){b.disable()}},onEsc:function(b,a){a.stopEvent();this.close()},beforeDestroy:function(){var a=this;if(a.rendered){Ext.un('resize',a.onWindowResize,a);delete a.animateTarget;a.hide();Ext.destroy(a.keyMap)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},addTools:function(){var a=this,b=[];Ext.panel.Panel.prototype.addTools.call(this);if(a.minimizable){b.push({type:'minimize',handler:'minimize',scope:a})}if(a.maximizable){b.push({type:a.maximized?'restore':'maximize',handler:'toggleMaximize',scope:a})}if(b.length){a.addTool(b)}},onShow:function(){var a=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(a.expandOnShow){a.expand(!1)}a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.enable()}},doClose:function(){var a=this;if(a.hidden){a.fireEvent('close',a);if(a.closeAction==='destroy'){a.destroy()}}else {a.hide(a.animateTarget,a.doClose,a)}},afterHide:function(){var a=this;a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.disable()}Ext.panel.Panel.prototype.afterHide.apply(this,arguments)},onWindowResize:function(){var a=this,b;if(!a.destroyed){if(a.maximized){a.fitContainer()}else {b=a.getSizeModel();if(b.width.natural||b.height.natural){a.updateLayout()}a.doConstrain()}}},minimize:function(){this.fireEvent('minimize',this);return this},resumeHeaderLayout:function(a){this.header.resumeLayouts(a?this.isRootCfg:null)},afterCollapse:function(){var a=this,b=a.header,c=a.tools;if(b&&a.maximizable){b.suspendLayouts();c.maximize.hide();this.resumeHeaderLayout(!0)}if(a.resizer){a.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var a=this,c=a.header,d=a.tools,b;if(c){c.suspendLayouts();if(a.maximizable){d.maximize.show();b=!0}this.resumeHeaderLayout(b)}if(a.resizer){a.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(c){var a=this,b=a.header,f=a.tools,g=a.width,e=a.height,h,d;if(!a.maximized){a.expand(!1);if(!a.hasSavedRestore){h=a.restoreSize={width:g?g:null,height:e?e:null};a.restorePos=a.getPosition()}if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('restore')}if(a.collapseTool){a.collapseTool.hide();d=!0}a.resumeHeaderLayout(d)}a.el.disableShadow();if(a.dd){a.dd.disable();if(b){b.removeCls(b.indicateDragCls)}}if(a.resizer){a.resizer.disable()}a.el.addCls('x-window-maximized');a.container.addCls('x-window-maximized-ct');a.syncMonitorWindowResize();a.fitContainer(c=c||!!a.animateTarget?{callback:function(){a.maximized=!0;a.fireEvent('maximize',a)}}:null);if(!c){a.maximized=!0;a.fireEvent('maximize',a)}}return a},restore:function(c){var a=this,f=a.tools,b=a.header,d=a.restoreSize,e;if(a.maximized){a.hasSavedRestore=null;a.removeCls('x-window-maximized');if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('maximize')}if(a.collapseTool){a.collapseTool.show();e=!0}a.resumeHeaderLayout(e)}d.x=a.restorePos[0];d.y=a.restorePos[1];a.setBox(d,c=c||!!a.animateTarget?{callback:function(){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}:null);a.restorePos=a.restoreSize=null;if(a.dd){a.dd.enable();if(b){b.addCls(b.indicateDragCls)}}if(a.resizer){a.resizer.enable()}a.container.removeCls('x-window-maximized-ct');a.syncMonitorWindowResize();if(!c){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}return a},syncMonitorWindowResize:function(){var a=this,b=a._monitoringResize,d=a.monitorResize||a.constrain||a.constrainHeader||a.maximized,c=a.hidden||a.destroying||a.destroyed;if(d&&!c){if(!b){Ext.on('resize',a.onWindowResize,a,{buffer:1});a._monitoringResize=!0}}else {if(b){Ext.un('resize',a.onWindowResize,a);a._monitoringResize=!1}}},toggleMaximize:function(){return this[this.maximized?'restore':'maximize']()},createGhost:function(){var a=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);a.xtype='window';a.focusOnToFront=!1;return a},getDefaultFocus:function(){var d=this,b,a=d.defaultFocus,c;if(a!==undefined){if(Ext.isNumber(a)){b=d.query('button')[a]}else {if(Ext.isString(a)){c=a;if(Ext.validIdRe.test(c)){b=d.down(Ext.makeIdSelector(c))}if(!b){b=d.down(c)}}else {if(a.focus){b=a}}}}return b},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(b,c){var a;if(b.el.contains(c.getTarget())){a=this.getDefaultFocus();if(a){a.focus()}}},initResizable:function(){Ext.panel.Panel.prototype.initResizable.apply(this,arguments);if(this.maximized){this.resizer.disable()}}}},0,['window'],['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},['widget.window'],[[Ext.util.FocusTrap.prototype.mixinId||Ext.util.FocusTrap.$className,Ext.util.FocusTrap]],[Ext.window,'Window',Ext,'Window'],0);Ext.cmd.derive('Ext.form.Labelable',Ext.Mixin,{isLabelable:!0,mixinConfig:{id:'labelable',on:{beforeRender:'beforeLabelRender',onRender:'onLabelRender'}},config:{childEls:['labelEl','bodyEl','errorEl','errorWrapEl','ariaErrorEl']},labelableRenderTpl:['{beforeLabelTpl}','','{afterLabelTpl}','','','
','','
','
',{disableFormats:!0}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['','
    ','
  • {.}
  • ','
','
'],plaintextActiveErrorsTpl:['','\n{.}',''],isFieldLabelable:!0,formItemCls:'x-form-item',labelCls:'x-form-item-label',topLabelCls:'x-form-item-label-top',rightLabelCls:'x-form-item-label-right',labelInnerCls:'x-form-item-label-inner',topLabelSideErrorCls:'x-form-item-label-top-side-error',errorMsgCls:'x-form-error-msg',errorWrapCls:'x-form-error-wrap',errorWrapSideCls:'x-form-error-wrap-side',errorWrapUnderCls:'x-form-error-wrap-under',errorWrapUnderSideLabelCls:'x-form-error-wrap-under-side-label',baseBodyCls:'x-form-item-body',invalidIconCls:'x-form-invalid-icon',invalidUnderCls:'x-form-invalid-under',noLabelCls:'x-form-item-no-label',fieldBodyCls:'',invalidCls:'x-form-invalid',fieldLabel:undefined,labelAlign:'left',labelWidth:100,labelPad:5,labelSeparator:':',hideLabel:!1,hideEmptyLabel:!0,preventMark:!1,autoFitErrors:!0,msgTarget:'qtip',msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:!0,labelableInsertions:['beforeBodyEl','afterBodyEl','beforeLabelTpl','afterLabelTpl','beforeSubTpl','afterSubTpl','beforeLabelTextTpl','afterLabelTextTpl','labelAttrTpl'],statics:{initTip:function(){var b=this.tip,a,c;if(b){return}a={id:'ext-form-error-tip',ui:'form-invalid'};if(Ext.supports.Touch){a.dismissDelay=0;a.anchor='top';a.showDelay=0;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.anchorTarget).getWidth()}}}b=this.tip=Ext.create('Ext.tip.QuickTip',a);c=Ext.apply({},b.tagConfig);c.attribute='errorqtip';b.setTagConfig(c)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var a=this,b=a.padding;if(b){a.padding=undefined;a.extraMargins=Ext.Element.parseBox(b)}if(Ext.isIE8){a.restoreDisplay=Ext.Function.createDelayed(a.doRestoreDisplay,0,a)}if(!a.activeErrorsTpl){if(a.msgTarget==='title'){a.activeErrorsTpl=a.plaintextActiveErrorsTpl}else {a.activeErrorsTpl=a.htmlActiveErrorsTpl}}a.addCls([a.formItemCls,a.formItemCls+'-'+a.ui]);a.lastActiveError='';a.enableBubble('errorchange')},trimLabelSeparator:function(){var b=this,c=b.labelSeparator,a=b.fieldLabel||'',d=a.substr(a.length-1);return d===c?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(b){b=b||'';var a=this,f=a.labelSeparator,h=a.labelEl,c=a.errorWrapEl,g=a.labelAlign!=='top',e=a.noLabelCls,d=a.errorWrapUnderSideLabelCls;a.fieldLabel=b;if(a.rendered){if(Ext.isEmpty(b)&&a.hideEmptyLabel){a.addCls(e);if(g&&c){c.removeCls(d)}}else {if(f){b=a.trimLabelSeparator()+f}h.dom.firstChild.innerHTML=b;a.removeCls(e);if(g&&c){c.addCls(d)}}a.updateLayout()}},setHideLabel:function(b){var a=this;if(b!==a.hideLabel){a.hideLabel=b;if(a.rendered){a[b?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},setHideEmptyLabel:function(b){var a=this,c;if(b!==a.hideEmptyLabel){a.hideEmptyLabel=b;if(a.rendered&&!a.hideLabel){c=b&&!a.getFieldLabel();a[c?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},getInsertionRenderData:function(c,d){var e=d.length,b,a;while(e--){b=d[e];a=this[b];if(a){if(typeof a!=='string'){if(!a.isTemplate){a=Ext.XTemplate.getTpl(this,b)}a=a.apply(c)}}c[b]=a||''}return c},getLabelableRenderData:function(){var a=this,l=a.labelAlign,o=l==='top',r=l==='right',c=a.msgTarget==='side',h=a.msgTarget==='under',q=a.errorMsgCls,b=a.labelPad,m=a.labelWidth,d=a.labelClsExtra||'',j=c?a.errorWrapSideCls:a.errorWrapUnderCls,g='',f='',p=a.hasVisibleLabel(),k=a.autoFitErrors,e=a.defaultBodyWidth,n,i;if(o){d+=' '+a.topLabelCls;if(b){f='padding-bottom:'+b+'px;'}if(c&&!k){d+=' '+a.topLabelSideErrorCls}}else {if(r){d+=' '+a.rightLabelCls}if(b){g+=a.getHorizontalPaddingStyle()+b+'px;'}g+='width:'+(m+(b?b:0))+'px;';f='width:'+m+'px'}if(p){if(!o&&h){j+=' '+a.errorWrapUnderSideLabelCls}}if(e){n='min-width:'+e+'px;max-width:'+e+'px;'}i={id:a.id,inputId:a.getInputId(),labelCls:a.labelCls,labelClsExtra:d,labelStyle:g+(a.labelStyle||''),labelInnerStyle:f,labelInnerCls:a.labelInnerCls,unselectableCls:Ext.Element.unselectableCls,bodyStyle:n,baseBodyCls:a.baseBodyCls,fieldBodyCls:a.fieldBodyCls,extraFieldBodyCls:a.extraFieldBodyCls,errorWrapCls:a.errorWrapCls,errorWrapExtraCls:j,renderError:c||h,invalidMsgCls:c?a.invalidIconCls:h?a.invalidUnderCls:'',errorMsgCls:q,growCls:a.grow?a.growCls:'',tipAnchorTarget:a.id+'-inputEl',errorWrapStyle:c&&!k?'visibility:hidden':'display:none',fieldLabel:a.getFieldLabel(),labelSeparator:a.labelSeparator};a.getInsertionRenderData(i,a.labelableInsertions);return i},getHorizontalPaddingStyle:function(){return 'padding-right:'},beforeLabelRender:function(){var a=this;a.setFieldDefaults(a.getInherited().fieldDefaults);if(a.ownerLayout){a.addCls('x-'+a.ownerLayout.type+'-form-item')}if(!a.hasVisibleLabel()){a.addCls(a.noLabelCls)}},onLabelRender:function(){var a=this,f={},e=Ext.Element,d=a.errorWrapEl,c,b;if(d){d.setVisibilityMode(a.msgTarget==='side'&&!a.autoFitErrors?e.VISIBILITY:e.DISPLAY)}if(a.extraMargins){c=a.el.getMargin();for(b in c){if(c.hasOwnProperty(b)){f['margin-'+b]=c[b]+a.extraMargins[b]+'px'}}a.el.setStyle(f)}},hasVisibleLabel:function(){if(this.hideLabel){return !1}return !(this.hideEmptyLabel&&!this.getFieldLabel())},getSubTplMarkup:function(){return ''},getInputId:function(){return ''},getActiveError:function(){return this.activeError||''},hasActiveError:function(){return !!this.getActiveError()},setActiveError:function(a){this.setActiveErrors(a)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(c){var a=this,h=a.errorWrapEl,b=a.msgTarget,g=b==='side',i=b==='qtip',e,d,j,f;c=Ext.Array.from(c);j=a.getTpl('activeErrorsTpl');a.activeErrors=c;d=a.activeError=j.apply({fieldLabel:a.fieldLabel,errors:c,listCls:'x-list-plain'});a.renderActiveError();if(a.rendered){e=a.getActionEl();if(g){a.errorEl.dom.setAttribute('data-errorqtip',d)}else {if(i){e.dom.setAttribute('data-errorqtip',d)}else {if(b==='title'){e.dom.setAttribute('title',d)}}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML=c.join('. ');e.dom.setAttribute('aria-describedby',a.ariaErrorEl.id)}if(g||i){Ext.form.Labelable.initTip()}if(!a.msgTargets[b]){f=Ext.get(b);if(f){f.dom.innerHTML=d}}}if(h){h.setVisible(c.length>0);if(g&&a.autoFitErrors){a.labelEl.addCls(a.topLabelSideErrorCls)}a.updateLayout()}},unsetActiveError:function(){var a=this,e=a.errorWrapEl,b=a.msgTarget,f=a.restoreDisplay,c,d;if(a.hasActiveError()){delete a.activeError;delete a.activeErrors;a.renderActiveError();if(a.rendered){c=a.getActionEl();if(b==='qtip'){c.dom.removeAttribute('data-errorqtip')}else {if(b==='title'){c.dom.removeAttribute('title')}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML='';c.dom.removeAttribute('aria-describedby')}if(!a.msgTargets[b]){d=Ext.get(b);if(d){d.dom.innerHTML=''}}if(e){e.hide();if(b==='side'&&a.autoFitErrors){a.labelEl.removeCls(a.topLabelSideErrorCls)}a.updateLayout();if(f){a.el.dom.style.display='block';a.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=''}},renderActiveError:function(){var a=this,b=a.getActiveError(),c=!!b;if(b!==a.lastActiveError){a.lastActiveError=b;a.fireEvent('errorchange',a,b)}if(a.rendered&&!a.destroyed&&!a.preventMark){a.toggleInvalidCls(c);if(a.errorEl){a.errorEl.dom.innerHTML=b}}},toggleInvalidCls:function(a){this.el[a?'addCls':'removeCls'](this.invalidCls)},setFieldDefaults:function(b){var a;for(a in b){if(!this.hasOwnProperty(a)){this[a]=b[a]}}}},0,0,0,0,0,0,[Ext.form,'Labelable'],function(){if(Ext.supports.Touch){this.prototype.msgTarget='side'}});Ext.cmd.derive('Ext.form.field.Field',Ext.Base,{mixinId:'field',isFormField:!0,config:{validation:null,validationField:null},disabled:!1,submitValue:!0,validateOnChange:!0,valuePublishEvent:'change',suspendCheckChange:0,dirty:!1,initField:function(){var a=this,b=a.valuePublishEvent,d,c;a.initValue();if(Ext.isString(b)){a.on(b,a.publishValue,a)}else {for(c=0,d=b.length;c name="{name}"',' value="{[Ext.util.Format.htmlEncode(values.value)]}"',' placeholder="{placeholder}"','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}',' readonly="readonly"',' disabled="disabled"',' tabindex="{tabIdx}"',' style="{fieldStyle}"',' {$}="{.}"',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete="off"/>',{disableFormats:!0}],defaultBindProperty:'value',autoEl:{role:'presentation'},subTplInsertions:['inputAttrTpl'],childEls:['inputEl'],inputType:'text',isTextInput:!0,invalidText:'The value in this field is invalid',fieldCls:'x-form-field',focusCls:'form-focus',dirtyCls:'x-form-dirty',checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<=9)?['change','propertychange','keyup']:['change','input','textInput','keyup','dragdrop'],ignoreChangeRe:/data\-errorqtip|style\.|className/,checkChangeBuffer:50,liquidLayout:!0,readOnly:!1,readOnlyCls:'x-form-readonly',validateOnBlur:!0,hasFocus:!1,baseCls:'x-field',fieldBodyCls:'x-field-body',maskOnDisable:!1,stretchInputElFixed:!0,ariaEl:'inputEl',initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();a.initDefaultName();if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls('x-form-type-'+a.inputType)},initDefaultName:function(){var a=this;if(!a.name){a.name=a.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+'-inputEl')},getSubTplData:function(f){var a=this,e=a.inputType,d=a.getInputId(),b,c;b=Ext.apply({ui:a.ui,id:d,cmpId:a.id,name:a.name||d,disabled:a.disabled,readOnly:a.readOnly,value:a.getRawValue(),type:e,fieldCls:a.fieldCls,fieldStyle:a.getFieldStyle(),childElCls:f.childElCls,tabIdx:a.tabIndex,inputCls:a.inputCls,typeCls:'x-form-'+(a.isTextInput?'text':e)},a.subTplData);if(a.ariaRole){c={role:a.ariaRole,'aria-hidden':!!a.hidden,'aria-disabled':!!a.disabled,'aria-readonly':!!a.readOnly,'aria-invalid':!1};if(a.ariaLabel){c['aria-label']=a.ariaLabel}if(a.format&&a.formatText&&!b.title){c.title=Ext.String.formatEncode(a.formatText,a.format)}b.inputElAriaAttributes=Ext.apply(c,a.getAriaAttributes())}a.getInsertionRenderData(b,a.subTplInsertions);return b},getSubTplMarkup:function(f){var b=this,c=b.getSubTplData(f),e=b.getTpl('preSubTpl'),d=b.getTpl('postSubTpl'),a='';if(e){a+=e.apply(c)}a+=b.getTpl('fieldSubTpl').apply(c);if(d){a+=d.apply(c)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(b){var c=this,a=c.inputEl;if(a){a.applyStyles(b)}c.fieldStyle=b},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,!0):a||''},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==='file'},getSubmitData:function(){var a=this,b=null,c;if(!a.disabled&&a.submitValue){c=a.getSubmitValue();if(c!==null){b={};b[a.getName()]=c}}return b},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var a=this,b=a.inputEl?a.inputEl.getValue():Ext.valueFrom(a.rawValue,'');a.rawValue=b;return b},setRawValue:function(b){var a=this,c=a.rawValue;if(!a.transformRawValue.$nullFn){b=a.transformRawValue(b)}b=Ext.valueFrom(b,'');if(c===undefined||c!==b||a.valueContainsPlaceholder){a.rawValue=b;if(a.inputEl){a.bindChangeEvents(!1);a.inputEl.dom.value=b;a.bindChangeEvents(!0)}if(a.rendered&&a.reference){a.publishState('rawValue',b)}}return b},transformRawValue:Ext.identityFn,valueToRaw:function(a){return ''+Ext.valueFrom(a,'')},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var a=this,b=a.rawToValue(a.processRawValue(a.getRawValue()));a.value=b;return b},setValue:function(b){var a=this;a.setRawValue(a.valueToRaw(b));return a.mixins.field.setValue.call(a,b)},onBoxReady:function(){var a=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(a.setReadOnlyOnBoxReady){a.setReadOnly(a.readOnly)}},onDisable:function(){var a=this,b=a.inputEl;Ext.Component.prototype.onDisable.call(this);if(b){b.dom.disabled=!0;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=!0}}if(a.wasValid===!1){a.checkValidityChange(!0)}},onEnable:function(){var a=this,b=a.inputEl,d=a.preventMark,c;Ext.Component.prototype.onEnable.call(this);if(b){b.dom.disabled=!1}if(a.wasValid!==undefined){a.forceValidation=!0;a.preventMark=!a.hadErrorOnDisable;c=a.isValid();a.forceValidation=!1;a.preventMark=d;a.checkValidityChange(c)}delete a.hadErrorOnDisable},setReadOnly:function(b){var a=this,c=a.inputEl,d=a.readOnly;b=!!b;a[b?'addCls':'removeCls'](a.readOnlyCls);a.readOnly=b;if(c){c.dom.readOnly=b;a.ariaEl.dom.setAttribute('aria-readonly',b)}else {if(a.rendering){a.setReadOnlyOnBoxReady=!0}}if(b!==d){a.fireEvent('writeablechange',a,b)}},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent('specialkey',this,a)}},initEvents:function(){var a=this,d=a.inputEl,f=a.onFieldMutation,e=a.checkChangeEvents,g=e.length,c,b;if(d){a.mon(d,Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress',a.fireKey,a);for(c=0;c style="{triggerStyle}">','{[values.$trigger.renderBody(values)]}',''],statics:{weightComparator:function(a,b){return a.weight-b.weight}},constructor:function(c){var a=this,b;Ext.apply(a,c);if(a.compat4Mode){b=a.cls;a.focusCls=[a.focusCls,b+'-focus'];a.overCls=[a.overCls,b+'-over'];a.clickCls=[a.clickCls,b+'-click']}},afterFieldRender:function(){this.initEvents()},destroy:function(){var a=this;a.clickRepeater=a.el=Ext.destroy(a.clickRepeater,a.el);a.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=!0;if(a){a.hide()}},initEvents:function(){var a=this,b=a.isFieldEnabled,c=a.getStateEl(),d=a.el;c.addClsOnOver(a.overCls,b,a);c.addClsOnClick(a.clickCls,b,a);if(a.repeatClick){a.clickRepeater=new Ext.util.ClickRepeater(d,{preventDefault:!0,handler:a.onClick,listeners:{mousedown:a.onClickRepeaterMouseDown,scope:a},scope:a})}else {a.field.mon(d,{click:a.onClick,mousedown:a.onMouseDown,scope:a})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=!1;if(a.hidden||!c||!a.rendered||a.destroyed){b=!0}return !b},onClick:function(){var a=this,c=arguments,e=a.clickRepeater?c[1]:c[0],d=a.handler,b=a.field;if(d&&!b.readOnly&&a.isFieldEnabled()){Ext.callback(a.handler,a.scope,[b,a,e],0,b)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=='touch'&&!this.field.owns(Ext.Element.getActiveElement())){this.field.inputEl.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==='mousedown'){this.field.inputEl.focus()}a.preventDefault()},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var a=this,b=a.el=a.field.triggerWrap.selectNode('#'+a.domId,!1);b.setVisibilityMode(Ext.Element.DISPLAY);a.rendered=!0},renderBody:function(b){var a=this,c=a.bodyTpl;Ext.apply(b,a.getBodyRenderData());return c?Ext.XTemplate.getTpl(a,'bodyTpl').apply(b):''},renderTrigger:function(b){var a=this,d=a.width,c=a.hidden?'display:none;':'';if(d){c+='width:'+d}return Ext.XTemplate.getTpl(a,'renderTpl').apply({$trigger:a,fieldData:b,ui:b.ui,childElCls:b.childElCls,triggerId:a.domId=a.field.id+'-trigger-'+a.id,cls:a.cls,triggerStyle:c,extraCls:a.extraCls,baseCls:a.baseCls})},setHidden:function(a){if(a!==this.hidden){this[a?'hide':'show']()}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=!1;if(a){a.show()}}},1,0,0,0,['trigger.trigger'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.form.trigger,'Trigger'],0);Ext.cmd.derive('Ext.form.field.Text',Ext.form.field.Base,{alternateClassName:['Ext.form.TextField','Ext.form.Text'],config:{hideTrigger:!1,triggers:undefined},renderConfig:{editable:!0},growMin:30,growMax:800,growAppend:'W',allowBlank:!0,validateBlank:!1,allowOnlyWhitespace:!0,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:'The minimum length for this field is {0}',maxLengthText:'The maximum length for this field is {0}',blankText:'This field is required',regexText:'',emptyText:'',emptyCls:'x-form-empty-field',requiredCls:'x-form-required-field',valueContainsPlaceholder:!1,ariaRole:'textbox',repeatTriggerClick:!1,triggerWrapCls:'x-form-trigger-wrap',triggerWrapFocusCls:'x-form-trigger-wrap-focus',triggerWrapInvalidCls:'x-form-trigger-wrap-invalid',fieldBodyCls:'x-form-text-field-body',inputWrapCls:'x-form-text-wrap',inputWrapFocusCls:'x-form-text-wrap-focus',inputWrapInvalidCls:'x-form-text-wrap-invalid',growCls:'x-form-text-grow',needArrowKeys:!0,squashMouseUp:{mouseup:function(){},translate:!1,single:!0,preventDefault:!0},childEls:['triggerWrap','inputWrap'],preSubTpl:[''],initComponent:function(){var a=this,b=a.emptyCls;if(a.allowOnlyWhitespace===!1){a.allowBlank=!1}if(a.size){a.defaultBodyWidth=a.size*6.5+20}if(!a.onTrigger1Click){a.onTrigger1Click=a.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(a.readOnly){a.setReadOnly(a.readOnly)}a.fieldFocusCls=a.baseCls+'-focus';a.emptyUICls=b+' '+b+'-'+a.ui;a.addStateEvents('change')},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(a.selectOnFocus||a.emptyText){a.mon(b,'mousedown',a.onMouseDown,a)}if(a.maskRe||a.vtype&&a.disableKeyFilter!==!0&&(a.maskRe=Ext.form.field.VTypes[a.vtype+'Mask'])){a.mon(b,'keypress',a.filterKeys,a)}if(a.enableKeyEvents){a.mon(b,{scope:a,keyup:a.onKeyUp,keydown:a.onKeyDown,keypress:a.onKeyPress})}},isEqual:function(a,b){return this.isEqualAsString(a,b)},onChange:function(a,b){Ext.form.field.Base.prototype.onChange.apply(this,arguments);this.autoSize()},getSubTplData:function(h){var a=this,c=a.getRawValue(),g=a.emptyText&&c.length<1,b=a.maxLength,e,f,d;if(a.enforceMaxLength){if(b===Number.MAX_VALUE){b=undefined}}else {b=undefined}if(g){if(Ext.supports.Placeholder){e=a.emptyText}else {c=a.emptyText;a.valueContainsPlaceholder=!0}}f=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,h),{triggerWrapCls:a.triggerWrapCls,inputWrapCls:a.inputWrapCls,triggers:a.orderedTriggers,maxLength:b,readOnly:!a.editable||a.readOnly,placeholder:e,value:c,fieldCls:a.fieldCls+(g&&(e||c)?' '+a.emptyUICls:'')+(a.allowBlank?'':' '+a.requiredCls)});d=f.inputElAriaAttributes;if(d){d['aria-required']=!a.allowBlank}return f},onRender:function(){var a=this,b=a.getTriggers(),c=[],d,e;if(Ext.supports.FixedTableWidthBug){a.el._needsTableWidthFix=!0}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(b){this.invokeTriggers('onFieldRender');for(d in b){c.push(b[d].el)}e=a.triggerEl=a.triggerCell=new Ext.CompositeElement(c,!0)}a.inputCell=a.inputWrap},afterRender:function(){var a=this;a.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);a.invokeTriggers('afterFieldRender')},onMouseDown:function(){if(!this.hasFocus){Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(c){var a=this,j=a.getHideTrigger(),k=a.readOnly,f=a.orderedTriggers=[],i=a.repeatTriggerClick,e,b,h,g,d;if(!c){c={};if(a.triggerCls&&!a.trigger1Cls){a.trigger1Cls=a.triggerCls}for(d=1;g=a['trigger'+d+'Cls'];d++){c['trigger'+d]={cls:g,extraCls:'x-trigger-index-'+d,handler:'onTrigger'+d+'Click',compat4Mode:!0,scope:a}}}for(e in c){if(c.hasOwnProperty(e)){b=c[e];b.field=a;b.id=e;if(k&&b.hideOnReadOnly!==!1||j&&b.hidden!==!1){b.hidden=!0}if(i&&b.repeatClick!==!1){b.repeatClick=!0}h=c[e]=Ext.form.trigger.Trigger.create(b);f.push(h)}}Ext.Array.sort(f,Ext.form.trigger.Trigger.weightComparator);return c},invokeTriggers:function(d,e){var f=this,a=f.getTriggers(),c,b;if(a){for(c in a){if(a.hasOwnProperty(c)){b=a[c];b[d].apply(b,e||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateHideTrigger:function(a){this.invokeTriggers(a?'hide':'show')},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(a){var b=this,d=b.getTriggers(),f=b.getHideTrigger(),c,e;a=!!a;Ext.form.field.Base.prototype.setReadOnly.call(this,a);if(b.rendered){b.setReadOnlyAttr(a||!b.editable)}if(d){for(e in d){c=d[e];if(c.hideOnReadOnly===!0||c.hideOnReadOnly!==!1&&!f){c.setVisible(!a)}}}},setReadOnlyAttr:function(c){var b=this,a='readonly',d=b.inputEl.dom;if(c){d.setAttribute(a,a)}else {d.removeAttribute(a)}if(b.ariaRole){b.ariaEl.dom.setAttribute('aria-readonly',!!c)}},processRawValue:function(c){var e=this,a=e.stripCharsRe,d,b;if(a){if(!a.global){d='g';d+=a.ignoreCase?'i':'';d+=a.multiline?'m':'';a=new RegExp(a.source,d)}b=c.replace(a,'');if(b!==c){e.setRawValue(b);c=b}}return c},onDisable:function(){Ext.form.field.Base.prototype.onDisable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable='on'}},onEnable:function(){Ext.form.field.Base.prototype.onEnable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable=''}},onKeyDown:function(a){this.fireEvent('keydown',this,a)},onKeyUp:function(a){this.fireEvent('keyup',this,a)},onKeyPress:function(a){this.fireEvent('keypress',this,a)},reset:function(){Ext.form.field.Base.prototype.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){var a=this,b=a.emptyText,c;if(a.rendered&&b){c=a.getRawValue().length<1&&!a.hasFocus;if(Ext.supports.Placeholder){a.inputEl.dom.placeholder=b}else {if(c){a.setRawValue(b);a.valueContainsPlaceholder=!0}}if(c){a.inputEl.addCls(a.emptyUICls)}else {a.inputEl.removeCls(a.emptyUICls)}a.autoSize()}},getEmptyText:function(){return this.emptyText},setEmptyText:function(e){var a=this,c=a.inputEl,b=c&&c.dom,d=e||'';if(e){a.emptyText=d;a.applyEmptyText()}else {if(b){if(Ext.supports.Placeholder){b.removeAttribute('placeholder')}else {if(b.value!==a.getRawValue()){b.value='';c.removeCls(a.emptyUICls)}}a.valueContainsPlaceholder=!1}}a.emptyText=d;return a},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var a=this.inputEl;if(a){a.dom.unselectable='on'}}},toggleInvalidCls:function(b){var a=b?'addCls':'removeCls';Ext.form.field.Base.prototype.toggleInvalidCls.call(this);this.triggerWrap[a](this.triggerWrapInvalidCls);this.inputWrap[a](this.inputWrapInvalidCls)},beforeFocus:function(){var a=this,b=a.inputEl,c=a.emptyText,d;Ext.form.field.Base.prototype.beforeFocus.apply(this,arguments);if(c&&!Ext.supports.Placeholder&&(b.dom.value===a.emptyText&&a.valueContainsPlaceholder)){a.setRawValue('');d=!0;b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}else {if(Ext.supports.Placeholder){b.removeCls(a.emptyUICls)}}},onFocus:function(b){var a=this;Ext.form.field.Base.prototype.onFocus.apply(this,arguments);if(a.selectOnFocus){a.inputEl.dom.select()}if(a.emptyText){a.autoSize()}a.addCls(a.fieldFocusCls);a.triggerWrap.addCls(a.triggerWrapFocusCls);a.inputWrap.addCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldFocus',[b])},onBlur:function(b){var a=this;Ext.form.field.Base.prototype.onBlur.apply(this,arguments);a.removeCls(a.fieldFocusCls);a.triggerWrap.removeCls(a.triggerWrapFocusCls);a.inputWrap.removeCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldBlur',[b])},completeEdit:function(a){Ext.form.field.Base.prototype.completeEdit.call(this,a);this.applyEmptyText()},filterKeys:function(a){if(a.ctrlKey&&!a.altKey||a.isSpecialKey()){return}var b=String.fromCharCode(a.getCharCode());if(!this.maskRe.test(b)){a.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),'value')},applyState:function(a){Ext.form.field.Base.prototype.applyState.apply(this,arguments);if(a.hasOwnProperty('value')){this.setValue(a.value)}},getRawValue:function(){var b=this,a=Ext.form.field.Base.prototype.getRawValue.call(this);if(a===b.emptyText&&b.valueContainsPlaceholder){a=''}return a},setValue:function(c){var a=this,b=a.inputEl;if(b&&a.emptyText&&!Ext.isEmpty(c)){b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}Ext.form.field.Base.prototype.setValue.apply(this,arguments);a.applyEmptyText();return a},getErrors:function(b){b=arguments.length?b==null?'':b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Base.prototype.getErrors.call(this,b),f=a.validator,d=a.vtype,j=Ext.form.field.VTypes,k=a.regex,i=Ext.String.format,e,h,g;if(Ext.isFunction(f)){e=f.call(a,b);if(e!==!0){c.push(e)}}h=a.allowOnlyWhitespace?b:Ext.String.trim(b);if(h.length<1||b===a.emptyText&&a.valueContainsPlaceholder){if(!a.allowBlank){c.push(a.blankText)}if(!a.validateBlank){return c}g=!0}if(!g&&b.lengtha.maxLength){c.push(i(a.maxLengthText,a.maxLength))}if(d){if(!j[d](b,a)){c.push(a.vtypeText||j[d+'Text'])}}if(k&&!k.test(b)){c.push(a.regexText||a.invalidText)}return c},selectText:function(a,b){var f=this,g=f.getRawValue(),c=g.length,e=f.inputEl.dom,d;if(c>0){a=a===undefined?0:Math.min(a,c);b=b===undefined?c:Math.min(b,c);if(e.setSelectionRange){e.setSelectionRange(a,b)}else {if(e.createTextRange){d=e.createTextRange();d.moveStart('character',a);d.moveEnd('character',b-c);d.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var a=this,d,f,c,g,b,e;if(a.grow&&a.rendered&&a.getSizeModel().width.auto){g=a.inputEl;d=a.getTriggers();c=0;e=Ext.util.Format.htmlEncode(a.getGrowWidth()||(a.hasFocus?'':a.emptyText)||'');e+=a.growAppend;for(f in d){c+=d[f].el.getWidth()}b=g.getTextWidth(e)+c+a.inputWrap.getBorderWidth('lr')+a.triggerWrap.getBorderWidth('lr');b=Math.min(Math.max(b,a.growMin),a.growMax);a.bodyEl.setWidth(b);a.updateLayout();a.fireEvent('autosize',a,b)}},onDestroy:function(){var a=this;a.invokeTriggers('destroy');Ext.destroy(a.triggerRepeater);Ext.form.field.Base.prototype.onDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return 'textfield'}},deprecated:{5:{methods:{getTriggerWidth:function(){var a=this.getTriggers(),c=0,b;if(a&&this.rendered){for(b in a){if(a.hasOwnProperty(b)){c+=a[b].el.getWidth()}}}return c}}}}},0,['textfield'],['component','box','field','textfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0},['widget.textfield'],0,[Ext.form.field,'Text',Ext.form,'TextField',Ext.form,'Text'],0);Ext.cmd.derive('Ext.form.field.TextArea',Ext.form.field.Text,{alternateClassName:'Ext.form.TextArea',fieldSubTpl:['',{disableFormats:!0}],growMin:60,growMax:1000,growAppend:'\n-',enterIsSpecial:!1,preventScrollbars:!1,returnRe:/\r/g,inputCls:'x-form-textarea',extraFieldBodyCls:'x-form-textarea-body',ariaAttributes:{'aria-multiline':!0},getSubTplData:function(d){var a=this,c=a.getFieldStyle(),b=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(a.grow){if(a.preventScrollbars){b.fieldStyle=(c||'')+';overflow:hidden;height:'+a.growMin+'px'}}return b},afterRender:function(){var a=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);a.needsMaxCheck=a.enforceMaxLength&&a.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(a.needsMaxCheck){a.inputEl.on('paste',a.onPaste,a)}},transformRawValue:function(a){return this.stripReturns(a)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(a){a=this.stripReturns(a);return Ext.form.field.Text.prototype.valueToRaw.call(this,a)},stripReturns:function(a){if(a&&typeof a==='string'){a=a.replace(this.returnRe,'')}return a},onPaste:function(){var a=this;if(!a.pasteTask){a.pasteTask=new Ext.util.DelayedTask(a.pasteCheck,a)}a.pasteTask.delay(1)},pasteCheck:function(){var b=this,a=b.getValue(),c=b.maxLength;if(a.length>c){a=a.substr(0,c);b.setValue(a)}},fireKey:function(a){var b=this,c=a.getKey(),d;if(a.isSpecialKey()&&(b.enterIsSpecial||(c!==a.ENTER||a.hasModifier()))){b.fireEvent('specialkey',b,a)}if(b.needsMaxCheck&&c!==a.BACKSPACE&&c!==a.DELETE&&!a.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(a,c)){d=b.getValue();if(d.length>=b.maxLength){a.stopEvent()}}},isCutCopyPasteSelectAll:function(a,b){if(a.ctrlKey){return b===a.A||b===a.C||b===a.V||b===a.X}return !1},autoSize:function(){var a=this,b,c,e,d;if(a.grow&&a.rendered&&a.getSizeModel().height.auto){b=a.inputEl;e=b.getWidth(!0);d=Ext.util.Format.htmlEncode(b.dom.value)||' ';d+=a.growAppend;d=d.replace(/\n/g,'
');c=Ext.util.TextMetrics.measure(b,d,e).height+b.getPadding('tb')+a.inputWrap.getBorderWidth('tb')+a.triggerWrap.getBorderWidth('tb');c=Math.min(Math.max(c,a.growMin),a.growMax);a.bodyEl.setHeight(c);a.updateLayout();a.fireEvent('autosize',a,c)}},beforeDestroy:function(){var a=this.pasteTask;if(a){a.cancel();this.pasteTask=null}Ext.form.field.Text.prototype.beforeDestroy.call(this)}},0,['textarea','textareafield'],['component','box','field','textfield','textareafield','textarea'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'textareafield':!0,'textarea':!0},['widget.textarea','widget.textareafield'],0,[Ext.form.field,'TextArea',Ext.form,'TextArea'],0);Ext.cmd.derive('Ext.window.MessageBox',Ext.window.Window,{OK:1,YES:2,NO:4,CANCEL:8,OKCANCEL:9,YESNO:6,YESNOCANCEL:14,INFO:'x-message-box-info',WARNING:'x-message-box-warning',QUESTION:'x-message-box-question',ERROR:'x-message-box-error',hideMode:'offsets',closeAction:'hide',resizable:!1,scrollable:!0,title:' ',defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:!0,cls:['x-message-box','x-hidden-offsets'],layout:{type:'vbox',align:'stretch'},shrinkWrapDock:!0,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:'OK',yes:'Yes',no:'No',cancel:'Cancel'},buttonIds:['ok','yes','no','cancel'],titleText:{confirm:'Confirm',prompt:'Prompt',wait:'Loading...',alert:'Attention'},baseIconCls:'x-message-box-icon',ariaRole:'alertdialog',makeButton:function(b){var a=this.buttonIds[b];return new Ext.button.Button({handler:this.btnCallback,itemId:a,scope:this,text:this.buttonText[a],minWidth:75})},btnCallback:function(e,b){var a=this,d,c;if(b&&b.type==='keydown'&&!b.isSpecialKey()){b.getTarget(null,null,!0).on({keyup:function(b){a.btnCallback(e,b)},single:!0});return}if(a.cfg.prompt||a.cfg.multiline){if(a.cfg.multiline){c=a.textArea}else {c=a.textField}d=c.getValue();c.reset()}a.hide();a.userCallback(e.itemId,d,a.cfg)},hide:function(){var a=this,b=a.cfg?a.cfg.cls:'';a.progressBar.reset();if(b){a.removeCls(b)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(b){var a=this;Ext.window.Window.prototype.constructor.apply(this,arguments);a.minWidth=a.defaultMinWidth=a.minWidth||a.defaultMinWidth;a.maxWidth=a.defaultMaxWidth=a.maxWidth||a.defaultMaxWidth;a.minHeight=a.defaultMinHeight=a.minHeight||a.defaultMinHeight;a.maxHeight=a.defaultMaxHeight=a.maxHeight||a.defaultMaxHeight},initComponent:function(e){var a=this,b=a.id,d,c;a.title=a.title||' ';a.iconCls=a.iconCls||'';a.topContainer=new Ext.container.Container({layout:'hbox',padding:10,style:{overflow:'hidden'},items:[a.iconComponent=new Ext.Component({cls:a.baseIconCls}),a.promptContainer=new Ext.container.Container({flex:1,layout:{type:'vbox',align:'stretch'},items:[a.msg=new Ext.Component({id:b+'-msg',cls:a.baseCls+'-text'}),a.textField=new Ext.form.field.Text({id:b+'-textfield',enableKeyEvents:!0,listeners:{keydown:a.onPromptKey,scope:a}}),a.textArea=new Ext.form.field.TextArea({id:b+'-textarea',height:75})]})]});a.progressBar=new Ext.ProgressBar({id:b+'-progressbar',margin:'0 10 10 10'});a.items=[a.topContainer,a.progressBar];a.msgButtons=[];for(d=0;d<4;d++){c=a.makeButton(d);a.msgButtons[c.itemId]=c;a.msgButtons.push(c)}a.bottomTb=new Ext.toolbar.Toolbar({id:b+'-toolbar',ui:'footer',dock:'bottom',layout:{pack:'center'},items:[a.msgButtons[0],a.msgButtons[1],a.msgButtons[2],a.msgButtons[3]]});a.dockedItems=[a.bottomTb];a.on('close',a.onClose,a);Ext.window.Window.prototype.initComponent.call(this)},onClose:function(){var a=this.header.child('[type=close]');if(a){a.itemId='cancel';this.btnCallback(a);delete a.itemId}},onPromptKey:function(c,b){var a=this;if(b.keyCode===b.RETURN||b.keyCode===10){if(a.msgButtons.ok.isVisible()){a.msgButtons.ok.handler.call(a,a.msgButtons.ok)}else {if(a.msgButtons.yes.isVisible()){a.msgButtons.yes.handler.call(a,a.msgButtons.yes)}}}},reconfigure:function(b){var a=this,j=0,q=!0,t=a.buttonText,g=a.resizer,c=a.header,r=c&&!c.isHeader,s=b&&(b.message||b.msg),i,n,m,e,d,f,o,k,l,h,p;a.updateButtonText();a.cfg=b=b||{};h=b.wait;if(b.width){n=b.width}if(b.height){m=b.height}a.minWidth=b.minWidth||a.defaultMinWidth;a.maxWidth=b.maxWidth||a.defaultMaxWidth;a.minHeight=b.minHeight||a.defaultMinHeight;a.maxHeight=b.maxHeight||a.defaultMaxHeight;if(g){i=g.resizeTracker;g.minWidth=i.minWidth=a.minWidth;g.maxWidth=i.maxWidth=a.maxWidth;g.minHeight=i.minHeight=a.minHeight;g.maxHeight=i.maxHeight=a.maxHeight}delete a.defaultFocus;if(b.defaultFocus){a.defaultFocus=b.defaultFocus}a.animateTarget=b.animateTarget||undefined;a.modal=b.modal!==!1;a.setTitle(b.title||r&&c.title||a.title);a.setIconCls(b.iconCls||r&&c.iconCls||a.iconCls);if(Ext.isObject(b.buttons)){a.buttonText=b.buttons;j=0}else {a.buttonText=b.buttonText||a.buttonText;j=Ext.isNumber(b.buttons)?b.buttons:0}j=j|a.updateButtonText();a.buttonText=t;Ext.suspendLayouts();a.width=a.height=null;if(n||m){if(n){a.setWidth(n)}if(m){a.setHeight(m)}}a.hidden=!1;if(!a.rendered){a.render(Ext.getBody())}a.closable=b.closable!==!1&&!h;c=a.header;if(c){p=c.child('[type=close]');if(p){p.setVisible(a.closable)}if(!b.title&&!a.closable&&!b.iconCls){c.hide()}else {c.show()}}a.liveDrag=!b.proxyDrag;a.userCallback=Ext.Function.bindCallback(b.callback||b.fn||Ext.emptyFn,b.scope||Ext.global);a.setIcon(b.icon);o=a.msg;if(s){o.setHtml(s);o.show()}else {o.hide()}d=a.textArea;f=a.textField;if(b.prompt||b.multiline){a.multiline=b.multiline;if(b.multiline){d.setValue(b.value);d.setHeight(b.defaultTextHeight||a.defaultTextHeight);d.show();f.hide();a.defaultFocus=d}else {f.setValue(b.value);d.hide();f.show();a.defaultFocus=f}}else {d.hide();f.hide()}k=a.progressBar;if(b.progress||h){k.show();a.updateProgress(0,b.progressText);if(h){k.wait(h===!0?b.waitConfig:h)}}else {k.hide()}l=a.msgButtons;for(e=0;e<4;e++){if(j&Math.pow(2,e)){if(!a.defaultFocus){a.defaultFocus=l[e]}l[e].show();q=!1}else {l[e].hide()}}if(q){a.bottomTb.hide()}else {a.bottomTb.show()}Ext.resumeLayouts(!0)},updateButtonText:function(){var b=this,c=b.buttonText,e=0,a,d;for(a in c){if(c.hasOwnProperty(a)){d=b.msgButtons[a];if(d){if(b.cfg&&b.cfg.buttonText){e=e|Math.pow(2,Ext.Array.indexOf(b.buttonIds,a))}if(d.text!==c[a]){d.setText(c[a])}}}}return e},show:function(b){var a=this,c;b=b||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){a.show(b)},single:!0});return a}a.reconfigure(b);if(b.cls){a.addCls(b.cls)}c=a.query('textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])');a.preventFocusOnActivate=!c.length;a.hidden=!0;Ext.window.Window.prototype.show.call(this);return a},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(e,d,c){var b=this,a=b.iconComponent,f=b.messageIconCls;if(f){a.removeCls(f)}if(e){a.show();if(d||c){a.setSize(d||a.getWidth(),c||a.getHeight())}a.addCls('x-dlg-icon');a.addCls(b.messageIconCls=e)}else {a.removeCls('x-dlg-icon');a.hide()}return b},updateProgress:function(c,b,a){this.progressBar.updateProgress(c,b);if(a){this.updateText(a)}return this},onEsc:function(){if(this.closable!==!1){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,b,d,c){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:b,buttons:this.YESNO,callback:d,scope:c}}return this.show(a)},prompt:function(a,c,f,d,b,e){if(Ext.isString(a)){a={prompt:!0,title:a,minWidth:this.minPromptWidth,message:c,buttons:this.OKCANCEL,callback:f,scope:d,multiline:b,value:e}}return this.show(a)},wait:function(a,c,b){if(Ext.isString(a)){a={title:c,message:a,closable:!1,wait:!0,modal:!0,minWidth:this.minProgressWidth,waitConfig:b}}return this.show(a)},alert:function(a,b,d,c){if(Ext.isString(a)){a={title:a,message:b,buttons:this.OK,fn:d,scope:c,minWidth:this.minWidth}}return this.show(a)},progress:function(a,c,b){if(Ext.isString(a)){a={title:a,message:c,progress:!0,progressText:b}}return this.show(a)}},1,['messagebox'],['component','box','container','panel','window','messagebox'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'messagebox':!0},['widget.messagebox'],0,[Ext.window,'MessageBox'],function(a){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new a()})});Ext.cmd.derive('Ext.form.Basic',Ext.util.Observable,{alternateClassName:'Ext.form.BasicForm',taskDelay:10,constructor:function(c,d){var a=this,b;a.owner=c;a.fieldMonitors={validitychange:a.checkValidityDelay,enable:a.checkValidityDelay,disable:a.checkValidityDelay,dirtychange:a.checkDirtyDelay,errorchange:a.checkErrorDelay,scope:a};a.checkValidityTask=new Ext.util.DelayedTask(a.checkValidity,a);a.checkDirtyTask=new Ext.util.DelayedTask(a.checkDirty,a);a.checkErrorTask=new Ext.util.DelayedTask(a.checkError,a);a.monitor=new Ext.container.Monitor({selector:'[isFormField]:not([excludeForm])',scope:a,addHandler:a.onFieldAdd,removeHandler:a.onFieldRemove,invalidateHandler:a.onMonitorInvalidate});a.monitor.bind(c);Ext.apply(a,d);if(Ext.isString(a.paramOrder)){a.paramOrder=a.paramOrder.split(/[\s,|]/)}b=a.reader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.reader=Ext.createByAlias('reader.'+b.type,b)}b=a.errorReader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.errorReader=Ext.createByAlias('reader.'+b.type,b)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=!0;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:!1,waitTitle:'Please Wait...',trackResetOnLoad:!1,wasDirty:!1,destroy:function(){var a=this,b=a.monitor;if(b){b.unbind();a.monitor=null}a.clearListeners();a.checkValidityTask.cancel();a.checkDirtyTask.cancel();a.checkErrorTask.cancel();a.checkValidityTask=a.checkDirtyTask=a.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},onFieldAdd:function(a){a.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(a){a.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var a=this._boundItems;if(!a||a.getCount()===0){a=this._boundItems=new Ext.util.MixedCollection();a.addAll(this.owner.query('[formBind]'))}return a},hasInvalidField:function(){return !!this.getFields().findBy(function(a){var c=a.preventMark,b;a.preventMark=!0;b=a.isValid();a.preventMark=c;return !b})},isValid:function(){var b=this,a;Ext.suspendLayouts();a=b.getFields().filterBy(function(a){return !a.validate()});Ext.resumeLayouts(!0);return a.length<1},checkValidity:function(){var a=this,b;if(a.destroyed){return}b=!a.hasInvalidField();if(b!==a.wasValid){a.onValidityChange(b);a.fireEvent('validitychange',a,b);a.wasValid=b}},checkValidityDelay:function(){var a=this.taskDelay;if(a){this.checkValidityTask.delay(a)}else {this.checkValidity()}},checkError:function(){this.fireEvent('errorchange',this)},checkErrorDelay:function(){var a=this.taskDelay;if(a){this.checkErrorTask.delay(a)}else {this.checkError()}},onValidityChange:function(e){var d=this.getBoundItems(),b,a,f,c;if(d){b=d.items;f=b.length;for(a=0;a','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','',' tabindex="{tabIdx}"',' disabled="disabled"',' style="{fieldStyle}"',' class="{checkboxCls} {clipCls}" autocomplete="off" hidefocus="true" ',' {$}="{.}"','/>','','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','','',{disableFormats:!0,compiled:!0}],publishes:{checked:1},subTplInsertions:['beforeBoxLabelTpl','afterBoxLabelTpl','beforeBoxLabelTextTpl','afterBoxLabelTextTpl','boxLabelAttrTpl','inputAttrTpl'],isCheckbox:!0,focusCls:'form-checkbox-focus',fieldBodyCls:'x-form-cb-wrap',checked:!1,checkedCls:'x-form-cb-checked',boxLabelCls:'x-form-cb-label',boxLabelAlign:'after',afterLabelCls:'x-form-cb-after',wrapInnerCls:'x-form-cb-wrap-inner',noBoxLabelCls:'x-form-cb-no-box-label',inputValue:'on',checkChangeEvents:[],inputType:'checkbox',isTextInput:!1,ariaRole:'checkbox',onRe:/^on$/i,inputCls:'x-form-cb',_checkboxCls:'x-form-cb-input',_clipCls:'x-hidden-clip',initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);a.getManager().add(a)},initDefaultName:Ext.emptyFn,initValue:function(){var a=this,b=!!a.checked;a.originalValue=a.lastValue=b;a.setValue(b)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}return Ext.form.field.Base.prototype.getElConfig.call(this)},getSubTplData:function(g){var a=this,f=a.boxLabel,e=a.boxLabelAlign,d=e==='before',c,b;c=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,g),{clipCls:a._clipCls,checkboxCls:a._checkboxCls,disabled:a.readOnly||a.disabled,wrapInnerCls:a.wrapInnerCls,boxLabel:f,boxLabelCls:a.boxLabelCls,boxLabelAlign:e,labelAlignedBefore:d,afterLabelCls:d?a.afterLabelCls:'',noBoxLabelCls:!f?a.noBoxLabelCls:'',inputName:a.name||a.id});b=c.inputElAriaAttributes;if(b){b['aria-checked']=!!a.checked;b['aria-labelledby']=a.id+'-boxLabelEl'}return c},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.inputEl.on({click:'onBoxClick',scope:a,translate:!1});a.displayEl.on({click:'onBoxClick',mousedown:'_onDisplayElMouseDown',scope:a})},setBoxLabel:function(b){var a=this;a.boxLabel=b;if(a.rendered){a.boxLabelEl.setHtml(b);a.boxLabelEl[b?'removeCls':'addCls'](a.noBoxLabelCls);a.updateLayout()}},onBoxClick:function(){var a=this;if(!a.disabled&&!a.readOnly){a.setValue(!a.checked)}},getRawValue:function(){return this.checked},getValue:function(){return this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.checked?this.inputValue:b},isChecked:function(a,b){return a===!0||a==='true'||a==='1'||a===1||((Ext.isString(a)||Ext.isNumber(a))&&b?a==b:this.onRe.test(a))},setRawValue:function(e){var a=this,d=a.inputEl,c=a.displayEl,b=a.isChecked(e,a.inputValue);if(d){a[b?'addCls':'removeCls'](a.checkedCls);if(a.ariaRole){a.ariaEl.dom.setAttribute('aria-checked',b)}}if(Ext.isIE8&&c&&b!==a.lastValue){c.repaint()}a.checked=a.rawValue=b;if(!a.duringSetValue){a.lastValue=b}return b},setValue:function(e){var a=this,c,b,f,d;if(Ext.isArray(e)){c=a.getManager().getByName(a.name,a.getFormId()).items;f=c.length;for(b=0;b150){delete a.lastDownArrow}if(!a.isExpanded){b.stopEvent();a.onTriggerClick();a.lastDownArrow=b.time}else {if(!b.isStopped&&b.time-a.lastDownArrow<150){delete a.lastDownArrow}}},expand:function(){var a=this,d,c,b,e;if(a.rendered&&!a.isExpanded&&!a.destroyed){d=a.bodyEl;b=a.getPicker();e=Ext.getDoc();b.setMaxHeight(b.initialConfig.maxHeight);if(a.matchFieldWidth){b.setWidth(a.bodyEl.getWidth())}b.show();a.isExpanded=!0;a.alignPicker();d.addCls(a.openCls);if(a.ariaRole){c=a.ariaEl.dom;c.setAttribute('aria-owns',b.listEl?b.listEl.id:b.el.id);c.setAttribute('aria-expanded',!0)}a.touchListeners=e.on({translate:!1,touchstart:a.collapseIf,scope:a,delegated:!1,destroyable:!0});a.scrollListeners=Ext.on({scroll:a.onGlobalScroll,scope:a,destroyable:!0});Ext.on('resize',a.alignPicker,a,{buffer:1});a.fireEvent('expand',a);a.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){if(!this.destroyed){var a=this.getPicker();if(a.isVisible()&&a.isFloating()){this.doAlign()}}},doAlign:function(){var a=this,c=a.picker,d='-above',b;a.picker.alignTo(a.triggerWrap,a.pickerAlign,a.pickerOffset);b=c.el.getY()=g){a.deselectRange(j,g-1)}else {if(h!==c){a.selectRange(h,c,f)}}}a.lastSelected=c}else {if(e){if(!f){a.doSelect(c,!1)}}else {a.selectWithEvent(c,b)}}}};break;case 'SIMPLE':if(e===b.A&&f){a.selected.beginUpdate();a.selectRange(0,a.store.getCount()-1);a.selected.endUpdate()}else {if(k){a.doDeselect(c)}else {a.doSelect(c,!0)}};break;case 'SINGLE':if(!f){if(i){a.doSelect(c,!1)}else {if(m||!e){a.selectWithEvent(c,b)}}};}if(!b.shiftKey&&!a.destroyed&&a.isSelected(c)){a.selectionStart=c;a.selectionStartIdx=g}},selectRange:function(d,f,m){var b=this,i=b.store,l=b.selected.items,h,a,g,e,c,j,k;if(b.isLocked()){return}h=b.normalizeRowRange(d,f);d=h[0];f=h[1];e=[];for(a=d;a<=f;a++){if(!b.isSelected(i.getAt(a))){e.push(i.getAt(a))}}if(!m){c=[];b.suspendChanges();for(a=0,g=l.length;af){c.push(k)}}for(a=0,g=c.length;a0)}}}},deselectRange:function(d,e){var a=this,h=a.store,g,c,b,f;if(a.isLocked()){return}g=a.normalizeRowRange(d,e);d=g[0];e=g[1];b=[];for(c=d;c<=e;c++){f=h.getAt(c);if(a.isSelected(f)){b.push(f)}}if(b.length){a.doDeselect(b)}},normalizeRowRange:function(a,b){var c=this.store,d;if(!Ext.isNumber(a)){a=c.indexOf(a)}a=Math.max(0,a);if(!Ext.isNumber(b)){b=c.indexOf(b)}b=Math.min(b,c.getCount()-1);if(a>b){d=b;b=a;a=d}return [a,b]},select:function(a,c,b){if(Ext.isDefined(a)&&!(Ext.isArray(a)&&!a.length)){this.doSelect(a,c,b)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(a,e,d){var b=this,c;if(b.locked||a==null){return}if(typeof a==='number'){c=b.store.getAt(a);if(!c){return}a=[c]}if(b.selectionMode==='SINGLE'){if(a.isModel){a=[a]}if(a.length){b.doSingleSelect(a[0],d)}}else {b.doMultiSelect(a,e,d)}},doMultiSelect:function(b,k,d){var a=this,g=a.selected,h=!1,e,f,j,c,i;if(a.locked){return}b=!Ext.isArray(b)?[b]:b;j=b.length;if(!k&&g.getCount()>0){e=a.deselectDuringSelect(b,d);if(a.destroyed){return}if(e[0]){a.maybeFireSelectionChange(e[1]>0&&!d);return}else {h=e[1]>0}}i=function(){if(!g.getCount()){a.selectionStart=c}g.add(c);h=!0};for(f=0;f0&&!f);return d===g},doSingleSelect:function(b,c){var a=this,e=!1,d=a.selected,f;if(a.locked){return}if(a.isSelected(b)){return}f=function(){if(d.getCount()){a.suspendChanges();var f=a.deselectDuringSelect([b],c);if(a.destroyed){return}a.resumeChanges();if(f[0]){return !1}}a.lastSelected=b;if(!d.getCount()){a.selectionStart=b}d.add(b);e=!0};a.onSelectChange(b,!0,c,f);if(e&&!a.destroyed){a.maybeFireSelectionChange(!c)}},maybeFireSelectionChange:function(b){var a=this;if(b&&!a.suspendChange){a.fireEvent('selectionchange',a,a.getSelection())}},getLastSelected:function(){return this.lastSelected},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(a){a=a?a.toUpperCase():'SINGLE';this.selectionMode=this.modes[a]?a:'SINGLE'},isLocked:function(){return this.locked},setLocked:function(a){this.locked=!!a},isRangeSelected:function(b,c){var e=this,f=e.store,a,d;d=e.normalizeRowRange(b,c);b=d[0];c=d[1];for(a=b;a<=c;a++){if(!e.isSelected(f.getAt(a))){return !1}}return !0},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected.contains(a)},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var a=this,l=a.store,e=[],c=[],k=a.getSelection(),m=k.length,b=a.getSelected(),h,j,d,g,i,f;if(!l||!(b.isCollection||b.isRows)||!b.getCount()){return}d=l.getData();if(d.getSource){j=d.getSource();if(j){d=j}}a.refreshing=!0;b.beginUpdate();a.suspendChanges();for(f=0;f0);if(i){a.fireEvent('lastselectedchanged',a,a.getSelection(),a.lastSelected)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(d,e,b,f){var a=this,c=e?'select':'deselect';if((b||a.fireEvent('before'+c,a,d))!==!1&&f()!==!1){if(!b){a.fireEvent(c,a,d)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(a){var c=this.view,b;if(c){b=c.resolveSatelliteListenerScope(this,a)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,a)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,selectWithEventMulti:function(b,l,e){var a=this,g=l.shiftKey,c=l.ctrlKey,j=g?a.getSelectionStart():null,i=a.getSelection(),k=i.length,f,d,h;if(g&&j){a.selectRange(j,b,c)}else {if(c&&e){if(a.allowDeselect){a.doDeselect(b,!1)}}else {if(c){a.doSelect(b,!0,!1)}else {if(e&&!g&&!c&&k>1){if(a.allowDeselect){f=[];for(d=0;dthis.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyRight:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyLeft:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(a){this.setPosition(0,a)},onKeyEnd:function(a){this.setPosition(this.view.all.getCount()-1,a)},onKeySpace:function(a){this.fireNavigateEvent(a)},onKeyEnter:function(a){a.stopEvent();a.view.fireEvent('itemclick',a.view,a.record,a.item,a.recordIndex,a)},onSelectAllKeyPress:function(a){this.fireNavigateEvent(a)},fireNavigateEvent:function(b){var a=this;a.fireEvent('navigate',{navigationModel:a,keyEvent:b,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,recordIndex:a.recordIndex,record:a.record,item:a.item})},destroy:function(){var a=this;a.setStore(null);Ext.destroy(a.viewListeners,a.keyNav);a.keyNav=a.viewListeners=a.dataSource=a.lastFocused=null;a.callParent()}},1,0,0,0,['view.navigation.default'],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,'NavigationModel'],0);Ext.cmd.derive('Ext.view.AbstractView',Ext.Component,{inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},defaultBindProperty:'store',renderBuffer:document.createElement('div'),statics:{updateDelay:200,queueRecordChange:function(n,o,d,m,f){var a=this,g=a.changeQueue||(a.changeQueue={}),i=d.internalId,h,b,l,e,c,j,k;h=g[i]||(g[i]={operation:m,record:d,data:{},views:[]});b=h.data;Ext.Array.include(h.views,n);if(f&&(l=f.length)){for(e=0;e
{1}
',a.itemCls,b,a.itemAriaRole);a.tpl=new Ext.XTemplate(b,c)}Ext.Component.prototype.initComponent.call(this);a.tpl=a.getTpl('tpl');if(a.overItemCls){a.trackOver=!0}a.addCmpEvents();d=a.store=Ext.data.StoreManager.lookup(a.store||'ext-empty-store');if(!a.dataSource){a.dataSource=d}a.bindStore(d,!0);a.getNavigationModel().bindComponent(this);if(!a.all){a.all=new Ext.CompositeElementLite()}a.scrollState={top:0,left:0};a.savedTabIndexAttribute='data-savedtabindex-'+a.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(){var a=this.loadMask;Ext.Component.prototype.onRender.apply(this,arguments);if(a){this.createMask(a)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.apply(this,arguments);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refresh()}else {a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var a=this,b=a.loadingHeight;if(b&&b>a.getHeight()){a.hasLoadingHeight=!0;a.oldMinHeight=a.minHeight;a.minHeight=b;a.updateLayout()}},onMaskHide:function(){var a=this;if(!a.destroying&&a.hasLoadingHeight){a.minHeight=a.oldMinHeight;a.updateLayout();delete a.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.apply(this,arguments);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.apply(this,arguments);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var a=this.loadMask,b=[];if(a&&a.isComponent){b.push(a)}return b},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},applySelectionModel:function(b,e){var a=this,g=a.grid,c,f,d;if(e){e.un({scope:a,selectionchange:a.updateBindSelection,lastselectedchanged:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});Ext.destroy(a.selModelRelayer);b=Ext.Factory.selection(b)}else {if(b&&b.isSelectionModel){b.locked=a.disableSelection}else {if(a.simpleSelect){c='SIMPLE'}else {if(a.multiSelect){c='MULTI'}else {c='SINGLE'}}if(typeof b==='string'){b={type:b}}b=Ext.Factory.selection(Ext.apply({allowDeselect:a.allowDeselect||a.multiSelect,mode:c,locked:a.disableSelection},b))}}if(b.mode!=='SINGLE'){d=(g||a).ariaEl.dom;if(d){d.setAttribute('aria-multiselectable',!0)}else {if(!g){f=a.ariaRenderAttributes||(a.ariaRenderAttributes={});f['aria-multiselectable']=!0}}}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});return b},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(d){var a=this,b=a.getNavigationModel(),c;a.toggleChildrenTabbability(!1);if(!a.itemFocused&&a.all.getCount()){c=b.getLastFocused();b.setPosition(c||0,d.event,null,!c);a.itemFocused=b.getPosition()!=null}if(a.itemFocused){this.el.dom.setAttribute('tabIndex','-1')}Ext.Component.prototype.onFocusEnter.call(this,d)},onFocusLeave:function(b){var a=this;if(a.itemFocused&&!a.refreshing){a.getNavigationModel().setPosition(null,b.event,null,!0);a.itemFocused=!1;a.el.dom.setAttribute('tabIndex',0)}Ext.Component.prototype.onFocusLeave.call(this,b)},ariaSelect:function(c,b){var a=this.getNode(b);if(a){a.setAttribute('aria-selected',!0)}},ariaDeselect:function(c,b){var a=this.getNode(b);if(a){a.removeAttribute('aria-selected')}},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);if(!a){this.onFocusLeave({})}},refresh:function(){var a=this,c=a.all,i=c.getCount(),g=a.refreshCounter,e,k,f,j=a.getSelectionModel(),h,d=g&&c.getCount()&&a.preserveScrollOnRefresh&&a.getScrollable(),b;if(!a.rendered||a.destroyed){return}if(!a.hasListeners.beforerefresh||a.fireEvent('beforerefresh',a)!==!1){a.refreshing=!0;h=a.saveFocusState();e=a.getTargetEl();f=a.getViewRange();k=e.dom;if(d){b=d.getPosition();if(!(b.x||b.y)){b=null}}if(g){a.clearViewEl();a.refreshCounter++}else {a.refreshCounter=1}a.tpl.append(e,a.collectData(f,c.startIndex||0));if(f.length<1){a.addEmptyText();c.clear()}else {a.collectNodes(e.dom);a.updateIndexes(0)}h();if(a.refreshSelmodelOnRefresh!==!1){j.refresh()}a.refreshNeeded=!1;a.refreshSize(c.getCount()!==i);a.fireEvent('refresh',a,f);if(d){d.scrollTo(b)}if(!a.viewReady){a.viewReady=!0;a.fireEvent('viewready',a)}a.refreshing=!1;a.refreshScroll();a.cleanupData()}},addEmptyText:function(){var a=this,b=a.getStore();if(a.emptyText&&!b.isLoading()&&(!a.deferEmptyText||a.refreshCounter>1||b.isLoaded())){a.emptyEl=Ext.core.DomHelper.insertHtml('beforeEnd',a.getTargetEl().dom,a.emptyText)}},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(d){var a=this,b=a.getSizeModel(),c=a.getScrollable();if(b.height.shrinkWrap||b.width.shrinkWrap||d){a.updateLayout()}else {if(a.touchScroll&&!a.bufferedRenderer){if(c){c.refresh()}else {a.on({boxready:a.refreshScroll,scope:a,single:!0})}}}},afterFirstLayout:function(d,c){var a=this,b=a.getScrollable();if(b){b.on({scroll:a.onViewScroll,scrollend:a.onViewScrollEnd,scope:a,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,d,c)},clearViewEl:function(){var a=this,c=a.getTargetEl(),b=a.getNodeContainer()===c;a.clearEmptyEl();a.all.clear(!b);if(b){c.dom.innerHTML=''}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(c,a,b){this.fireEvent('scroll',this,a,b)},onViewScrollEnd:function(c,a,b){this.fireEvent('scrollend',this,a,b)},saveScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){b.left=a.getScrollX();b.top=a.getScrollY()}},restoreScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){a.setScrollX(b.left);a.setScrollY(b.top)}},prepareData:function(c,f,e){var a,b,d;if(e){a=e.getAssociatedData();for(b in a){if(a.hasOwnProperty(b)){if(!d){c=Ext.Object.chain(c);d=!0}c[b]=a[b]}}}return c},collectData:function(c,e){var d=[],a=0,f=c.length,b;for(;a-1){if(a.getNode(b)){d=a.bufferRender([b],c).children[0];a.all.replaceElement(c,d,!0);a.updateIndexes(c,c);e.onUpdate(b);a.refreshSizePending=!0;if(e.isSelected(b)){a.onItemSelect(b)}if(a.hasListeners.itemupdate){a.fireEvent('itemupdate',b,c,d)}return d}}}},onReplace:function(o,b,e,d){var a=this,c=a.all,n=a.getSelectionModel(),j=b,h,m,g,f,l,k,i;if(a.rendered){h=a.bufferRender(d,b,!0);g=h.fragment;f=h.children;m=c.item(b);if(m){c.item(b).insertSibling(g,'before',!0)}else {a.appendNodes(g)}c.insert(b,f);if(e.length){i=a.saveFocusState()}b+=d.length;k=b+e.length-1;l=c.removeRange(b,k,!0);if(a.refreshSelmodelOnRefresh!==!1){n.refresh()}a.updateIndexes(b);if(a.hasListeners.itemremove){a.fireEvent('itemremove',e,j,l,a)}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,j,f)}i();a.refreshSize()}},onAdd:function(f,d,b){var a=this,c,e=a.getSelectionModel();if(a.rendered){if(a.all.getCount()===0){a.refresh();c=a.all.slice()}else {c=a.doAdd(d,b);if(a.refreshSelmodelOnRefresh!==!1){e.refresh()}a.updateIndexes(b);a.refreshSizePending=!0}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,b,c)}}},appendNodes:function(a){var b=this.all,c=b.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(a)}else {b.item(c-1).insertSibling(a,'after')}},doAdd:function(j,b){var d=this,g=d.bufferRender(j,b,!0),f=g.fragment,c=g.children,a=d.all,h=a.getCount(),e=a.startIndex||0,i=a.endIndex||h-1;if(h===0||b>i){d.appendNodes(f)}else {if(b<=e){a.item(e).insertSibling(f,'before',!0)}else {a.item(b).insertSibling(c,'before',!0)}}a.insert(b,c);return c},onRemove:function(l,d,b){var a=this,i=a.all,g=a.hasListeners.itemremove,e,c,k,f,h,j;if(i.getCount()){if(a.dataSource.getCount()===0){if(g){a.fireEvent('itemremove',d,b,a.getNodes(b,b+d.length-1))}a.refresh()}else {j=a.saveFocusState();if(g){f=[]}for(c=d.length-1;c>=0;--c){k=d[c];e=b+c;if(f){h=i.item(e);f[c]=h?h.dom:undefined}if(i.item(e)){a.doRemove(k,e)}}if(g){a.fireEvent('itemremove',d,b,f,a)}j();a.updateIndexes(b)}a.refreshSizePending=!0}},doRemove:function(b,a){this.all.removeElement(a,!0)},saveFocusState:function(){var a=this,e=a.dataSource||a.store,c=a.getNavigationModel(),b=c.recordIndex,d=c.record;if(a.el.contains(Ext.Element.getActiveElement())){a.el.dom.focus();return function(){if(e.getCount()){b=Math.min(b,a.all.getCount()-1);c.setPosition(e.contains(d)?d:b,null,null,!0)}}}return Ext.emptyFn},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(d,b){var e=this.all.elements,c,f=this.getViewRange(),a,g=this.id;d=d||0;b=b||(b===0?0:e.length-1);for(a=d;a<=b;a++){c=e[a];c.setAttribute('data-recordIndex',a);c.setAttribute('data-recordId',f[a].internalId);c.setAttribute('data-boundView',g)}},bindStore:function(b,e){var a=this,c=a.getSelectionModel(),d=a.getNavigationModel();c.bindStore(b);c.bindComponent(b?a:null);a.mixins.storeholder.bindStore.apply(a,arguments);d.setStore(b);if(b&&a.componentLayoutCounter){a.doFirstRefresh(b,!e)}},doFirstRefresh:function(b,c){var a=this;if(a.deferInitialRefresh&&!c){Ext.defer(a.doFirstRefresh,1,a,[b,!0])}else {if(b&&!b.isLoading()){a.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(c,b){var a=this;if(a.store.isBufferedStore){a.store.preserveScrollOnReload=a.preserveScrollOnReload}if(b&&b.isBufferedStore){delete b.preserveScrollOnReload}a.setMaskBind(c);if(!a.dataSource){a.dataSource=c}},setMaskBind:function(b){var a=this.loadMask;if(this.rendered&&a&&b&&!a.bindStore){a=this.createMask()}if(a&&a.bindStore){a.bindStore(b)}},getStoreListeners:function(){var a=this;return {refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var a=this;if(a.updateSuspendCounter){--a.updateSuspendCounter}Ext.resumeLayouts(!0);if(a.refreshSizePending){a.refreshSize(!0);a.refreshSizePending=!1}},onDataRefresh:function(b){var a=this,c=a.preserveScrollOnRefresh;if(b.loadCount>a.lastRefreshLoadCount){a.preserveScrollOnRefresh=a.preserveScrollOnReLoad}a.refreshView();a.preserveScrollOnRefresh=c;a.lastRefreshLoadCount=b.loadCount},refreshView:function(){var a=this,b=a.blockRefresh||!a.rendered||a.up('[collapsed],[isCollapsingOrExpanding],[hidden]');if(b){a.refreshNeeded=!0}else {if(a.bufferedRenderer){a.bufferedRenderer.refreshView()}else {a.refresh()}}},findItemByChild:function(a){return Ext.fly(a).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(a){return a.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var c=[],b=this.getSelectionModel().getSelection(),d=b.length,a=0;for(;aa.bottom){d=b.bottom-a.bottom}}if(b.lefta.right){c=b.right-a.right}}if(c||d){g.scrollBy(c,d,!1)}e.set({tabIndex:-1});e.focus()}},privates:{repaintBorder:function(b){var a=this.getNode(b);if(a){a.className=a.className}}}},0,['dataview'],['component','box','dataview'],{'component':!0,'box':!0,'dataview':!0},['widget.dataview'],0,[Ext.view,'View',Ext,'DataView'],0);Ext.cmd.derive('Ext.view.BoundListKeyNav',Ext.view.NavigationModel,{navigateOnSpace:!0,initKeyNav:function(c){var a=this,b=c.pickerField;if(!a.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,c);a.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:a.onKeyEsc,scope:a})}if(!b){return}if(!b.rendered){b.on('render',Ext.Function.bind(a.initKeyNav,a,[c],0),a,{single:!0});return}a.fieldKeyNav=new Ext.util.KeyNav({disabled:!0,target:b.inputEl,forceKeyDown:!0,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,tab:a.onKeyTab,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1001,scope:a})},processViewEvent:function(b,c,e,d,a){if(a.within(b.listWrap)){return a}if(a.getKey()===a.ESC){if(Ext.fly(a.target).isInputField()){a.target=a.target.parentNode}return a}},enable:function(){this.fieldKeyNav.enable();Ext.view.NavigationModel.prototype.enable.call(this)},disable:function(){this.fieldKeyNav.disable();Ext.view.NavigationModel.prototype.disable.call(this)},onItemMouseDown:function(e,b,d,c,a){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,e,b,d,c,a);a.preventDefault()},onKeyUp:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b>0?b-1:f.getCount()-1;d.setPosition(e);g.preventDefault()},onKeyDown:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b
',destroy:function(){var a=this;if(a.spinnerEl){a.spinnerEl.destroy();a.spinnerEl=a.upEl=a.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var a=this;return {vertical:a.vertical,upDisabledCls:a.upEnabled?'':a.spinnerUpCls+'-disabled',downDisabledCls:a.downEnabled?'':a.spinnerDownCls+'-disabled',spinnerCls:a.spinnerCls,spinnerUpCls:a.spinnerUpCls,spinnerDownCls:a.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var a=this,d=arguments,c=a.clickRepeater?d[1]:d[0],b=a.field;if(!b.readOnly&&!b.disabled){if(a.upEl.contains(c.target)){Ext.callback(a.upHandler,a.scope,[b,a,c],0,b)}else {if(a.downEl.contains(c.target)){Ext.callback(a.downHandler,a.scope,[b,a,c],0,b)}}}b.inputEl.focus()},onFieldRender:function(){var a=this,d=a.vertical,c,b;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);c=a.spinnerEl=a.el.select('.'+a.spinnerCls,!0);b=c.elements;a.upEl=d?b[0]:b[1];a.downEl=d?b[1]:b[0]},setUpEnabled:function(a){this.upEl[a?'removeCls':'addCls'](this.spinnerUpCls+'-disabled')},setDownEnabled:function(a){this.downEl[a?'removeCls':'addCls'](this.spinnerDownCls+'-disabled')}},0,0,0,0,['trigger.spinner'],0,[Ext.form.trigger,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Spinner',Ext.form.field.Text,{alternateClassName:'Ext.form.Spinner',config:{triggers:{spinner:{type:'spinner',upHandler:'onSpinnerUpClick',downHandler:'onSpinnerDownClick',scope:'this'}}},spinUpEnabled:!0,spinDownEnabled:!0,keyNavEnabled:!0,mouseWheelEnabled:!0,repeatTriggerClick:!0,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:'spinbutton',applyTriggers:function(b){var c=this,a=b.spinner;a.upEnabled=c.spinUpEnabled;a.downEnabled=c.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},onRender:function(){var a=this,b=a.getTrigger('spinner');(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(a.keyNavEnabled){a.spinnerKeyNav=new Ext.util.KeyNav(a.inputEl,{scope:a,up:a.spinUp,down:a.spinDown})}if(a.mouseWheelEnabled){a.mon(a.bodyEl,'mousewheel',a.onMouseWheel,a)}a.spinUpEl=b.upEl;a.spinDownEl=b.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var a=this;if(a.spinUpEnabled&&!a.disabled){a.fireEvent('spin',a,'up');a.fireEvent('spinup',a);a.onSpinUp()}},spinDown:function(){var a=this;if(a.spinDownEnabled&&!a.disabled){a.fireEvent('spin',a,'down');a.fireEvent('spindown',a);a.onSpinDown()}},setSpinUpEnabled:function(b){var a=this,c=a.spinUpEnabled;a.spinUpEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setUpEnabled(b)}},setSpinDownEnabled:function(b){var a=this,c=a.spinDownEnabled;a.spinDownEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setDownEnabled(b)}},onMouseWheel:function(c){var b=this,a;if(b.hasFocus){a=c.getWheelDelta();if(a>0){b.spinUp()}else {if(a<0){b.spinDown()}}c.stopEvent()}},onDestroy:function(){Ext.destroyMembers(this,'spinnerKeyNav');Ext.form.field.Text.prototype.onDestroy.call(this)}},0,['spinnerfield'],['component','box','field','textfield','spinnerfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0},['widget.spinnerfield'],0,[Ext.form.field,'Spinner',Ext.form,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Number',Ext.form.field.Spinner,{alternateClassName:['Ext.form.NumberField','Ext.form.Number'],allowExponential:!0,allowDecimals:!0,decimalSeparator:null,submitLocaleSeparator:!0,decimalPrecision:2,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,step:1,minText:'The minimum value for this field is {0}',maxText:'The maximum value for this field is {0}',nanText:'{0} is not a valid number',negativeText:'The value cannot be negative',baseChars:'0123456789',autoStripChars:!1,initComponent:function(){var a=this;if(a.decimalSeparator===null){a.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);a.setMinValue(a.minValue);a.setMaxValue(a.maxValue)},getSubTplData:function(g){var f=this,e=f.minValue,d=f.maxValue,c,a,b;c=Ext.form.field.Spinner.prototype.getSubTplData.call(this,g);a=c.inputElAriaAttributes;if(a){if(e>Number.NEGATIVE_INFINITY){a['aria-valuemin']=e}if(d=e&&b<=d){a['aria-valuenow']=b}}return c},setValue:function(d){var a=this,c,b;if(a.hasFocus){c=a.getBind();b=c&&c.value;if(b&&b.syncing&&d===a.value){return a}}return Ext.form.field.Spinner.prototype.setValue.call(this,d)},getErrors:function(b){b=arguments.length>0?b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Spinner.prototype.getErrors.call(this,b),e=Ext.String.format,d;if(b.length<1){return c}b=String(b).replace(a.decimalSeparator,'.');if(isNaN(b)){c.push(e(a.nanText,b))}d=a.parseValue(b);if(a.minValue===0&&d<0){c.push(this.negativeText)}else {if(da.maxValue){c.push(e(a.maxText,a.maxValue))}return c},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(a){var b=this,c=b.decimalSeparator;a=b.parseValue(a);a=b.fixPrecision(a);a=Ext.isNumber(a)?a:parseFloat(String(a).replace(c,'.'));a=isNaN(a)?'':String(a).replace('.',c);return a},getSubmitValue:function(){var b=this,a=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!b.submitLocaleSeparator){a=a.replace(b.decimalSeparator,'.')}return a},onChange:function(a){var b=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(b){if(Ext.isNumber(a)&&isFinite(a)){b.setAttribute('aria-valuenow',a)}else {b.removeAttribute('aria-valuenow')}}},toggleSpinners:function(){var a=this,c=a.getValue(),d=c===null,b;if(a.spinUpEnabled||a.spinUpDisabledByToggle){b=d||ca.minValue;a.setSpinDownEnabled(b,!0)}},setMinValue:function(e){var a=this,c=a.ariaEl.dom,d,b,c;a.minValue=d=Ext.Number.from(e,Number.NEGATIVE_INFINITY);a.toggleSpinners();if(c){if(d>Number.NEGATIVE_INFINITY){c.setAttribute('aria-valuemin',d)}else {c.removeAttribute('aria-valuemin')}}if(a.disableKeyFilter!==!0){b=a.baseChars+'';if(a.allowExponential){b+=a.decimalSeparator+'e+-'}else {if(a.allowDecimals){b+=a.decimalSeparator}if(a.minValue<0){b+='-'}}b=Ext.String.escapeRegex(b);a.maskRe=new RegExp('['+b+']');if(a.autoStripChars){a.stripCharsRe=new RegExp('[^'+b+']','gi')}}},setMaxValue:function(c){var b=this.ariaEl.dom,a;this.maxValue=a=Ext.Number.from(c,Number.MAX_VALUE);if(b){if(aa.maxLength){return}}a.setValue(b)}},0,['numberfield'],['component','box','field','textfield','spinnerfield','numberfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0,'numberfield':!0},['widget.numberfield'],0,[Ext.form.field,'Number',Ext.form,'NumberField',Ext.form,'Number'],0);Ext.cmd.derive('Ext.toolbar.Paging',Ext.toolbar.Toolbar,{alternateClassName:'Ext.PagingToolbar',displayInfo:!1,prependButtons:!1,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display',beforePageText:'Page',afterPageText:'of {0}',firstText:'First Page',prevText:'Previous Page',nextText:'Next Page',lastText:'Last Page',refreshText:'Refresh',inputItemWidth:30,emptyPageData:{total:0,currentPage:0,pageCount:0,toRecord:0,fromRecord:0},defaultBindProperty:'store',getPagingItems:function(){var a=this,b={scope:a,blur:a.onPagingBlur};b[Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress']=a.onPagingKeyDown;return [{itemId:'first',tooltip:a.firstText,overflowText:a.firstText,iconCls:'x-tbar-page-first',disabled:!0,handler:a.moveFirst,scope:a},{itemId:'prev',tooltip:a.prevText,overflowText:a.prevText,iconCls:'x-tbar-page-prev',disabled:!0,handler:a.movePrevious,scope:a},'-',a.beforePageText,{xtype:'numberfield',itemId:'inputItem',name:'inputItem',cls:'x-tbar-page-number',allowDecimals:!1,minValue:1,hideTrigger:!0,enableKeyEvents:!0,keyNavEnabled:!1,selectOnFocus:!0,submitValue:!1,isFormField:!1,width:a.inputItemWidth,margin:'-1 2 3 2',listeners:b},{xtype:'tbtext',itemId:'afterTextItem',html:Ext.String.format(a.afterPageText,1)},'-',{itemId:'next',tooltip:a.nextText,overflowText:a.nextText,iconCls:'x-tbar-page-next',disabled:!0,handler:a.moveNext,scope:a},{itemId:'last',tooltip:a.lastText,overflowText:a.lastText,iconCls:'x-tbar-page-last',disabled:!0,handler:a.moveLast,scope:a},'-',{itemId:'refresh',tooltip:a.refreshText,overflowText:a.refreshText,iconCls:'x-tbar-loading',disabled:a.store.isLoading(),handler:a.doRefresh,scope:a}]},initComponent:function(){var a=this,c=a.items||a.buttons||[],b;a.bindStore(a.store||'ext-empty-store',!0);b=a.getPagingItems();if(a.prependButtons){a.items=c.concat(b)}else {a.items=b.concat(c)}delete a.buttons;if(a.displayInfo){a.items.push('->');a.items.push({xtype:'tbtext',itemId:'displayItem'})}Ext.toolbar.Toolbar.prototype.initComponent.call(this)},beforeRender:function(){Ext.toolbar.Toolbar.prototype.beforeRender.apply(this,arguments);this.updateBarInfo()},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=!0;a.onLoad();a.calledInternal=!1}},updateInfo:function(){var a=this,d=a.child('#displayItem'),f=a.store,b=a.getPageData(),e,c;if(d){e=f.getCount();if(e===0){c=a.emptyMsg}else {c=Ext.String.format(a.displayMsg,b.fromRecord,b.toRecord,b.total)}d.setText(c)}},onLoad:function(){var a=this,f,c,b,g,h,d,e;h=a.store.getCount();d=h===0;if(!d){f=a.getPageData();c=f.currentPage;b=f.pageCount;if(c>b){if(b>0){a.store.loadPage(b)}else {a.getInputItem().reset()}return}g=Ext.String.format(a.afterPageText,isNaN(b)?1:b)}else {c=0;b=0;g=Ext.String.format(a.afterPageText,0)}Ext.suspendLayouts();e=a.child('#afterTextItem');if(e){e.update(g)}e=a.getInputItem();if(e){e.setDisabled(d).setValue(c)}a.setChildDisabled('#first',c===1||d);a.setChildDisabled('#prev',c===1||d);a.setChildDisabled('#next',c===b||d);a.setChildDisabled('#last',c===b||d);a.setChildDisabled('#refresh',!1);a.updateInfo();Ext.resumeLayouts(!0);if(!a.calledInternal){a.fireEvent('change',a,f||a.emptyPageData)}},setChildDisabled:function(c,b){var a=this.child(c);if(a){a.setDisabled(b)}},getPageData:function(){var a=this.store,b=a.getTotalCount();return {total:b,currentPage:a.currentPage,pageCount:Math.ceil(b/a.pageSize),fromRecord:(a.currentPage-1)*a.pageSize+1,toRecord:Math.min(a.currentPage*a.pageSize,b)}},onLoadError:function(){this.setChildDisabled('#refresh',!1)},getInputItem:function(){return this.child('#inputItem')},readPageFromInput:function(d){var a=this.getInputItem(),b=!1,c;if(a){c=a.getValue();b=parseInt(c,10);if(!c||isNaN(b)){a.setValue(d.currentPage);return !1}}return b},onPagingBlur:function(c){var a=this.getInputItem(),b;if(a){b=this.getPageData().currentPage;a.setValue(b)}},onPagingKeyDown:function(a,b){this.processKeyEvent(a,b)},processKeyEvent:function(g,b){var e=this,c=b.getKey(),d=e.getPageData(),f=b.shiftKey?10:1,a;if(c===b.RETURN){b.stopEvent();a=e.readPageFromInput(d);if(a!==!1){a=Math.min(Math.max(1,a),d.pageCount);if(a!==d.currentPage&&e.fireEvent('beforechange',e,a)!==!1){e.store.loadPage(a)}}}else {if(c===b.HOME||c===b.END){b.stopEvent();a=c===b.HOME?1:d.pageCount;g.setValue(a)}else {if(c===b.UP||c===b.PAGE_UP||c===b.DOWN||c===b.PAGE_DOWN){b.stopEvent();a=e.readPageFromInput(d);if(a){if(c===b.DOWN||c===b.PAGE_DOWN){f*=-1}a+=f;if(a>=1&&a<=d.pageCount){g.setValue(a)}}}}}},beforeLoad:function(){this.setChildDisabled('#refresh',!0)},moveFirst:function(){if(this.fireEvent('beforechange',this,1)!==!1){this.store.loadPage(1);return !0}return !1},movePrevious:function(){var a=this,b=a.store,c=b.currentPage-1;if(c>0){if(a.fireEvent('beforechange',a,c)!==!1){b.previousPage();return !0}}return !1},moveNext:function(){var a=this,b=a.store,d=a.getPageData().pageCount,c=b.currentPage+1;if(c<=d){if(a.fireEvent('beforechange',a,c)!==!1){b.nextPage();return !0}}return !1},moveLast:function(){var a=this,b=a.getPageData().pageCount;if(a.fireEvent('beforechange',a,b)!==!1){a.store.loadPage(b);return !0}return !1},doRefresh:function(){var a=this,c=a.store,b=c.currentPage;if(a.fireEvent('beforechange',a,b)!==!1){c.loadPage(b);return !0}return !1},getStoreListeners:function(){return {beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},onDestroy:function(){this.bindStore(null);Ext.toolbar.Toolbar.prototype.onDestroy.call(this)}},0,['pagingtoolbar'],['component','box','container','toolbar','pagingtoolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'pagingtoolbar':!0},['widget.pagingtoolbar'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.toolbar,'Paging',Ext,'PagingToolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Paging',{override:'Ext.toolbar.Paging',defaultButtonUI:'plain-toolbar',inputItemWidth:40});Ext.cmd.derive('Ext.view.BoundList',Ext.view.View,{alternateClassName:'Ext.BoundList',pageSize:0,baseCls:'x-boundlist',itemCls:'x-boundlist-item',listItemCls:'',shadow:!1,trackOver:!0,preserveScrollOnRefresh:!0,enableInitialSelection:!1,refreshSelmodelOnRefresh:!0,componentLayout:'boundlist',navigationModel:'boundlist',scrollable:!0,ariaEl:'listEl',tabIndex:-1,childEls:['listWrap','listEl'],renderTpl:['
','
    {$}="{.}"','>','
','
','{%','var pagingToolbar=values.$comp.pagingToolbar;','if (pagingToolbar) {','Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);','}','%}',{disableFormats:!0}],focusOnToFront:!1,initComponent:function(){var a=this,b=a.baseCls,c=a.itemCls;a.selectedItemCls=b+'-selected';if(a.trackOver){a.overItemCls=b+'-item-over'}a.itemSelector='.'+c;a.scrollerSelector='ul.x-list-plain';if(a.floating){a.addCls(b+'-floating')}if(!a.tpl){a.tpl=new Ext.XTemplate('','
  • '+a.getInnerTpl(a.displayField)+'
  • ','
    ')}else {if(!a.tpl.isTemplate){a.tpl=new Ext.XTemplate(a.tpl)}}if(a.pageSize){a.pagingToolbar=a.createPagingToolbar()}Ext.view.View.prototype.initComponent.call(this)},getRefOwner:function(){return this.pickerField||Ext.view.View.prototype.getRefOwner.call(this)},getRefItems:function(){var b=Ext.view.View.prototype.getRefItems.call(this),a=this.pagingToolbar;if(a){b.push(a)}return b},createPagingToolbar:function(){return Ext.widget('pagingtoolbar',{id:this.id+'-paging-toolbar',pageSize:this.pageSize,store:this.dataSource,border:!1,ownerCt:this,ownerLayout:this.getComponentLayout()})},getNodeContainer:function(){return this.listEl},refresh:function(){var b=this,a=b.tpl;a.field=b.pickerField;a.store=b.store;Ext.view.View.prototype.refresh.call(this);a.field=a.store=null},bindStore:function(c,b){var a=this.pagingToolbar;Ext.view.View.prototype.bindStore.apply(this,arguments);if(a){a.bindStore(c,b)}},getInnerTpl:function(a){return '{'+a+'}'},onShow:function(){var a=this.pickerField;Ext.view.View.prototype.onShow.call(this);if(a&&a.rendered&&!a.hasFocus){a.focus()}},afterComponentLayout:function(e,d,c,b){var a=this.pickerField;Ext.view.View.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&a.alignPicker){a.alignPicker()}},onItemClick:function(e){var d=this,b=d.pickerField,c,a;if(!b){return}c=b.valueField;a=d.getSelectionModel().getSelection();if(!b.multiSelect&&a.length){a=a[0];if(a&&b.isEqual(e.get(c),a.get(c))&&b.collapse){b.collapse()}}},onContainerClick:function(b){var a=this.pagingToolbar;if(a&&a.rendered&&b.within(a.el)){return !1}},onDestroy:function(){Ext.view.View.prototype.onDestroy.call(this);Ext.destroyMembers(this,'pagingToolbar','listWrap','listEl')},privates:{getTargetEl:function(){return this.listEl},getOverflowEl:function(){return this.listWrap},finishRenderChildren:function(){var a=this.pagingToolbar;Ext.view.View.prototype.finishRenderChildren.apply(this,arguments);if(a){a.finishRender()}}}},0,['boundlist'],['component','box','dataview','boundlist'],{'component':!0,'box':!0,'dataview':!0,'boundlist':!0},['widget.boundlist'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,'BoundList',Ext,'BoundList'],0);Ext.cmd.derive('Ext.form.field.ComboBox',Ext.form.field.Picker,{alternateClassName:'Ext.form.ComboBox',config:{filters:null,selection:null,valueNotFoundText:null,displayTpl:!1,delimiter:', ',displayField:'text'},publishes:['selection'],twoWayBindable:['selection'],triggerCls:'x-form-arrow-trigger',hiddenName:'',collapseOnSelect:!1,hiddenDataCls:'x-hidden-display x-form-data-hidden',ariaRole:'combobox',childEls:{'hiddenDataEl':!0},filtered:!1,afterRender:function(){var a=this;Ext.form.field.Picker.prototype.afterRender.apply(this,arguments);a.setHiddenValue(a.value)},multiSelect:!1,triggerAction:'all',allQuery:'',queryParam:'query',queryMode:'remote',queryCaching:!0,autoLoadOnValue:!1,pageSize:0,anyMatch:!1,caseSensitive:!1,autoSelect:!0,typeAhead:!1,typeAheadDelay:250,selectOnTab:!0,forceSelection:!1,growToLongestValue:!0,clearFilterOnBlur:!0,defaultListConfig:{loadingHeight:70,minWidth:70,maxHeight:300,shadow:'sides'},transformInPlace:!0,clearValueOnEmpty:!0,getGrowWidth:function(){var a=this,i=a.inputEl.dom.value,h,e,g,c,b,f,d;if(a.growToLongestValue){h=a.displayField;e=a.store;g=e.data.length;c=0;for(b=0;bc){c=d;i=f}}}return i},initComponent:function(){var a=this,d=Ext.isDefined,f=a.store,e=a.transform,b,c;if('pinList' in a){a.collapseOnSelect=!a.pinList}if(e){b=Ext.getDom(e);if(b){if(!a.store){f=Ext.Array.map(Ext.Array.from(b.options),function(a){return [a.value,a.text]})}if(!a.name){a.name=b.name}if(!('value' in a)){a.value=b.value}}}a.bindStore(f||'ext-empty-store',!0,!0);c=a.queryMode==='local';if(!d(a.queryDelay)){a.queryDelay=c?10:500}if(!d(a.minChars)){a.minChars=c?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);a.doQueryTask=new Ext.util.DelayedTask(a.doRawQuery,a);if(b){if(a.transformInPlace){a.render(b.parentNode,b);delete a.renderTo}Ext.removeNode(b)}},getSubTplData:function(c){var b,a;b=Ext.form.field.Picker.prototype.getSubTplData.call(this,c);a=b.inputElAriaAttributes;if(a){a['aria-autocomplete']='list'}return b},getSubTplMarkup:function(c){var b=this,a='',d=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(b.hiddenName){a=''}return a+d},applyDisplayTpl:function(a){var b=this;if(!a){a=new Ext.XTemplate('{[typeof values === "string" ? values : values["'+b.getDisplayField()+'"]]}'+b.getDelimiter()+'');a.auto=!0}else {if(!a.isTemplate){a=new Ext.XTemplate(a)}}return a},applyFilters:function(b,a){var c=this;if(b===null||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.beginUpdate();a.splice(0,a.length,b);a.each(function(a){a.ownerId=c.id});a.endUpdate()}return a},applyValueNotFoundText:function(b){var a=this,c=a.valueNotFoundRecord||(a.valueNotFoundRecord=new Ext.data.Model());c.set(a.displayField,b);if(a.valueField&&a.displayField!==a.valueField){c.set(a.valueField,b)}return b},getFilters:function(b){var a=this.filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,c){var b=this;if(c){c.un('endupdate','onEndUpdateFilters',b)}if(a){a.on('endupdate','onEndUpdateFilters',b)}b.onEndUpdateFilters(a)},onEndUpdateFilters:function(a){var b=this,f=b.filtered,e=!!a&&a.length>0,d,c;if(f||e){b.filtered=e;d=[];c=b.store.getFilters();c.each(function(c){if(c.ownerId===b.id&&!a.contains(c)){d.push(c)}});c.splice(0,d,a.items)}},completeEdit:function(c){var a=this,b=a.queryFilter;Ext.form.field.Picker.prototype.completeEdit.call(this,c);a.doQueryTask.cancel();a.assertValue();if(b&&a.queryMode==='local'&&a.clearFilterOnBlur){a.getStore().getFilters().remove(b)}},onFocus:function(b){var a=this;Ext.form.field.Picker.prototype.onFocus.call(this,b);if(a.triggerAction!=='all'&&a.queryFilter&&a.queryMode==='local'&&a.clearFilterOnBlur){delete a.lastQuery;a.doRawQuery()}},assertValue:function(){var a=this,e=a.getRawValue(),c=a.getDisplayValue(),d=a.lastSelectedRecords,b;if(a.forceSelection){if(a.multiSelect){if(e!==c){a.setRawValue(c)}}else {b=a.findRecordByDisplay(e);if(b){if(a.getDisplayValue([a.getRecordDisplayData(b)])!==c){a.select(b,!0)}}else {if(d&&(!a.allowBlank||a.rawValue)){a.setValue(d)}else {if(d){delete a.lastSelectedRecords}a.setRawValue('')}}}}a.collapse()},onTypeAhead:function(){var a=this,e=a.displayField,d=a.store.findRecord(e,a.getRawValue()),f=a.getPicker(),b,g,c;if(d){b=d.get(e);g=b.length;c=a.getRawValue().length;f.highlightItem(f.getNode(d));if(c!==0&&c!==g){a.setRawValue(b);a.selectText(c,b.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){var a=this.queryFilter;Ext.form.field.Picker.prototype.beforeReset.call(this);if(a){this.getStore().getFilters().remove(a)}},onUnbindStore:function(){var a=this,c=a.picker,b=a.queryFilter;if(b&&!a.store.destroyed){a.changingFilters=!0;a.getStore().removeFilter(b,!0);a.changingFilters=!1}a.pickerSelectionModel.destroy();if(c){c.bindStore(null)}},onBindStore:function(b,f){var a=this,d=a.picker,c,e;if(b){if(b.autoCreated){a.queryMode='local';a.valueField=a.displayField='field1';if(!b.expanded){a.displayField='field2'}if(a.getDisplayTpl().auto){a.setDisplayTpl(null)}}if(!Ext.isDefined(a.valueField)){a.valueField=a.displayField}c={byValue:{rootProperty:'data',unique:!1}};c.byValue.property=a.valueField;b.setExtraKeys(c);if(a.displayField===a.valueField){b.byText=b.byValue}else {c.byText={rootProperty:'data',unique:!1};c.byText.property=a.displayField;b.setExtraKeys(c)}e={rootProperty:'data',extraKeys:{byInternalId:{property:'internalId'},byValue:{property:a.valueField,rootProperty:'data'}},listeners:{beginupdate:a.onValueCollectionBeginUpdate,endupdate:a.onValueCollectionEndUpdate,scope:a}};a.valueCollection=new Ext.util.Collection(e);a.pickerSelectionModel=new Ext.selection.DataViewModel({mode:a.multiSelect?'SIMPLE':'SINGLE',deselectOnContainerClick:!1,enableInitialSelection:!1,pruneRemoved:!1,selected:a.valueCollection,store:b,listeners:{scope:a,lastselectedchanged:a.updateBindSelection}});if(!f){a.resetToDefault()}if(d){d.setSelectionModel(a.pickerSelectionModel);if(d.getStore()!==b){d.bindStore(b)}}}},bindStore:function(a,e,c){var b=this,d=b.queryFilter;b.mixins.storeholder.bindStore.call(b,a,c);a=b.getStore();if(a&&d&&!e){a.getFilters().add(d)}if(!c&&a&&!a.isEmptyStore){b.setValueOnData()}},getStoreListeners:function(c){if(!c.isEmptyStore){var a=this,b={datachanged:a.onDataChanged,load:a.onLoad,exception:a.onException,update:a.onStoreUpdate,remove:a.checkValueOnChange};if(!c.getRemoteFilter()){b.filterchange=a.checkValueOnChange}return b}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var a=this;if(!a.destroying&&a.getStore().isLoaded()){if(a.multiSelect){}else {if(a.forceSelection&&!a.changingFilters&&!a.findRecordByValue(a.value)){a.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.collapse()},onLoad:function(b,e,d){var a=this,c=!a.valueCollection.byValue.get(a.value);if(d&&c&&!(b.lastOptions&&'rawQuery' in b.lastOptions)){a.setValueOnData()}a.checkValueOnChange()},setValueOnData:function(){var a=this;a.setValue(a.value);if(a.isExpanded&&a.getStore().getCount()){a.doAutoSelect()}},doRawQuery:function(){var a=this,b=a.inputEl.dom.value;if(a.multiSelect){b=b.split(a.delimiter).pop()}a.doQuery(b,!1,!0)},doQuery:function(c,f,g){var a=this,d=a.getStore(),e=d.filters&&!d.filters.length&&!!c,b=a.beforeQuery({query:c||'',rawQuery:g,forceAll:f,combo:a,cancel:!1});if(b!==!1&&!b.cancel){if(a.queryCaching&&!e&&b.query===a.lastQuery){a.getPicker().refresh();a.expand()}else {a.lastQuery=b.query;if(a.queryMode==='local'){a.doLocalQuery(b)}else {a.doRemoteQuery(b)}}}return !0},beforeQuery:function(a){var b=this;if(b.fireEvent('beforequery',a)===!1){a.cancel=!0}else {if(!a.cancel){if(a.query.length0){a=b.picker.getSelectionModel();if(a.lastSelected&&a.selected.length){c=a.lastSelected}d.getNavigationModel().setPosition(c)}},doTypeAhead:function(){var a=this,b=Ext.event.Event;if(!a.typeAheadTask){a.typeAheadTask=new Ext.util.DelayedTask(a.onTypeAhead,a)}if(a.lastKey!==b.BACKSPACE&&a.lastKey!==b.DELETE){a.typeAheadTask.delay(a.typeAheadDelay)}},onTriggerClick:function(){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else {if(a.triggerAction==='all'){a.doQuery(a.allQuery,!0)}else {if(a.triggerAction==='last'){a.doQuery(a.lastQuery,!0)}else {a.doQuery(a.getRawValue(),!1,!0)}}}}},onFieldMutation:function(b){var a=this,c=b.getKey(),d=c===b.BACKSPACE||c===b.DELETE,e=a.inputEl.dom.value,f=e.length;if(!a.readOnly&&(e!==a.lastMutatedValue||d)&&c!==b.TAB){a.lastMutatedValue=e;a.lastKey=c;if(f&&(b.type!=='keyup'||(!b.isSpecialKey()||d))){a.doQueryTask.delay(a.queryDelay)}else {if(!f&&(!c||d)){++a.suspendCheckChange;if(!a.multiSelect){a.value=null;a.displayTplData=undefined}if(a.clearValueOnEmpty){a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.removeAll();a.valueCollection.endUpdate()}a.collapse();if(a.queryFilter){a.changingFilters=!0;a.store.removeFilter(a.queryFilter,!0);a.changingFilters=!1}--a.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,b)}}},onDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);a.valueCollection=Ext.destroy(a.valueCollection);Ext.form.field.Picker.prototype.onDestroy.call(this)},onAdded:function(){var a=this;Ext.form.field.Picker.prototype.onAdded.apply(this,arguments);if(a.picker){a.picker.ownerCt=a.up('[floating]');a.picker.registerWithOwnerCt()}},createPicker:function(){var a=this,b,c=Ext.apply({xtype:'boundlist',id:a.pickerId,pickerField:a,selectionModel:a.pickerSelectionModel,floating:!0,hidden:!0,store:a.getPickerStore(),displayField:a.displayField,preserveScrollOnRefresh:!0,pageSize:a.pageSize,tpl:a.tpl},a.listConfig,a.defaultListConfig);b=a.picker=Ext.widget(c);if(a.pageSize){b.pagingToolbar.on('beforechange',a.onPageChange,a)}if(!b.initialConfig.maxHeight){b.on({beforeshow:a.onBeforePickerShow,scope:a})}b.getSelectionModel().on({beforeselect:a.onBeforeSelect,beforedeselect:a.onBeforeDeselect,focuschange:a.onFocusChange,scope:a});b.getNavigationModel().navigateOnSpace=!1;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(d){var b=this,a=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-a-b.getHeight();d.maxHeight=Math.max(a,c)-5},onBeforeSelect:function(c,b,a){return this.fireEvent('beforeselect',this,b,a)},onBeforeDeselect:function(c,b,a){return this.fireEvent('beforedeselect',this,b,a)},onFocusChange:function(e,d,b){var c=this.picker,a;if(b){a=Ext.get(c.getNodeByRecord(b));if(a){this.ariaEl.dom.setAttribute('aria-activedescendant',a.id)}}},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getPicker().getSelectionModel();if(c){b.select(c);a.hasHadSelection=!0}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var a=this,e=a.store,b=a.valueCollection.getRange(),d=b[0],c=b.length;a.updateBindSelection(a.pickerSelectionModel,b);if(a.isSelectionUpdating()){return}Ext.suspendLayouts();a.lastSelection=b;if(c){a.lastSelectedRecords=b}a.updateValue();if(c&&(!a.multiSelect&&e.contains(d)||a.collapseOnSelect||!e.getCount())){a.updatingValue=!0;a.collapse();a.updatingValue=!1}Ext.resumeLayouts(!0);if(c&&!a.suspendCheckChange){if(!a.multiSelect){b=d}a.fireEvent('select',a,b)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var a=this.getPicker().getNavigationModel();if(a){a.enable()}this.doAutoSelect()},onCollapse:function(){var a=this.getPicker().getNavigationModel();if(a){a.disable()}if(this.updatingValue){this.doQueryTask.cancel()}},select:function(b,e){var a=this,d=a.picker,c;if(b&&b.isModel&&e===!0&&d){c=!d.getSelectionModel().isSelected(b)}if(!c){a.suspendEvent('select')}a.setValue(b);a.resumeEvent('select')},findRecord:function(c,d){var b=this.store,a=b.findExact(c,d);return a!==-1?b.getAt(a):!1},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=!1;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=!1;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,!0)}},setValue:function(b){var a=this;if(b!=null){return a.doSetValue(b)}else {a.suspendEvent('select');a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.endUpdate();a.lastSelectedRecords=null;a.resumeEvent('select')}},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(c,p){var a=this,f=a.getStore(),v=f.getModel(),e=[],u=[],r=a.autoLoadOnValue,m=f.getCount()>0||f.isLoaded(),l=f.hasPendingLoad(),o=r&&!m&&!l,t=a.forceSelection,n=a.pickerSelectionModel,s=a.displayField===a.valueField,j=f.isEmptyStore,k=a.lastSelection,d,h,b,i,g,q;if(l||o||!m||j){if(!c.isModel){if(p){a.value=Ext.Array.from(a.value).concat(c)}else {a.value=c}a.setHiddenValue(a.value);a.setRawValue(s?c:'')}if(o&&!j){f.load()}if(!c.isModel||j){return a}}c=p?Ext.Array.from(a.value).concat(c):Ext.Array.from(c);for(d=0,h=c.length;d0){h.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:'input',type:'hidden',name:i}));a=1;g=d.firstChild}while(a>c){d.removeChild(b[0]);--a}while(am){if(a.anchorToTarget){a.defaultAlign='r-l';if(a.mouseOffset){a.mouseOffset[0]*=-1}}a.anchor='right';return a.getTargetXY()}if(b[1]l){if(a.anchorToTarget){a.defaultAlign='b-t';if(a.mouseOffset){a.mouseOffset[1]*=-1}}a.anchor='bottom';return a.getTargetXY()}}a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl.addCls(a.anchorCls);a.targetCounter=0;return b}else {c=a.getMouseOffset();return a.targetXY?[a.targetXY[0]+c[0],a.targetXY[1]+c[1]]:c}},calculateConstrainedPosition:function(e){var a=this,d,b,c;if(!e&&a.isContainedFloater()){d=a.isVisible();if(!d){a.el.show()}b=a.getTargetXY();if(!d){a.el.hide()}c=a.floatParent.getTargetEl().getViewRegion();b[0]-=c.left;b[1]-=c.top}else {b=a.callOverridden(arguments)}return b},getMouseOffset:function(){var a=this,b=a.anchor?[0,0]:[15,18];if(a.mouseOffset){b[0]+=a.mouseOffset[0];b[1]+=a.mouseOffset[1]}return b},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity('')}})},getAnchorPosition:function(){var a=this,b;if(a.anchor){a.tipAnchor=a.anchor.charAt(0)}else {b=a.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);a.tipAnchor=b[1].charAt(0)}switch(a.tipAnchor){case 't':return 'top';case 'b':return 'bottom';case 'r':return 'right';}return 'left'},getAnchorAlign:function(){switch(this.anchor){case 'top':return 'tl-bl';case 'left':return 'tl-tr';case 'right':return 'tr-tl';default:return 'bl-tl';}},getOffsets:function(){var b=this,c,a,d=b.getAnchorPosition().charAt(0);if(b.anchorToTarget&&!b.trackMouse){switch(d){case 't':a=[0,9];break;case 'b':a=[0,-13];break;case 'r':a=[-13,0];break;default:a=[9,0];break;}}else {switch(d){case 't':a=[-15-b.anchorOffset,30];break;case 'b':a=[-19-b.anchorOffset,-13-b.el.dom.offsetHeight];break;case 'r':a=[-15-b.el.dom.offsetWidth,-13-b.anchorOffset];break;default:a=[25,-13-b.anchorOffset];break;}}c=b.getMouseOffset();a[0]+=c[0];a[1]+=c[1];return a},onTargetOver:function(b){var a=this,d=a.delegate,c;if(a.disabled||b.within(a.target.dom,!0)){return}c=d?b.getTarget(d):!0;if(c){a.triggerElement=c;a.triggerEvent=b;a.clearTimer('hide');a.targetXY=b.getXY();a.delayShow()}},delayShow:function(c){var a=this,b=a.el&&(c===!1||!a.trackMouse)&&a.getTargetXY();if(a.hidden&&!a.showTimer){if(Ext.Date.getElapsed(a.lastActive)=b.length){a.colIdx=0}else {a.colIdx++}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;}}},statics:{compare:function(a,b){return a.rowIdx-b.rowIdx||a.colIdx-b.colIdx}}},1,0,0,0,0,0,[Ext.grid,'CellContext'],0);Ext.cmd.derive('Ext.grid.ColumnComponentLayout',Ext.layout.component.Auto,{type:'columncomponent',setWidthInDom:!0,_paddingReset:{paddingTop:'',paddingBottom:''},columnAutoCls:'x-column-header-text-container-auto',beginLayout:function(a){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);a.titleContext=a.getEl('titleEl')},beginLayoutCycle:function(d){var b=this,a=b.owner,c=d.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(c){a.el.setWidth('')}a.textContainerEl[c&&!a.isGroupHeader?'addCls':'removeCls'](b.columnAutoCls);a.titleEl.setStyle(b._paddingReset)},publishInnerHeight:function(a,e){var d=this,b=d.owner,c;if(b.getRootHeaderCt().hiddenHeaders){a.setProp('innerHeight',0);return}if(!a.hasRawContent){if(b.headerWrap&&!a.hasDomProp('width')){d.done=!1;return}c=e-a.getBorderInfo().height;a.setProp('innerHeight',c-b.titleEl.getHeight(),!1)}},measureContentHeight:function(a){return a.el.dom.offsetHeight},publishInnerWidth:function(a,b){if(!a.hasRawContent){a.setProp('innerWidth',b-a.getBorderInfo().width,!1)}},calculateOwnerHeightFromContentHeight:function(a,c){var d=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),b=this.owner;if(!a.hasRawContent){if(!b.headerWrap||a.hasDomProp('width')){return c+b.titleEl.getHeight()+a.getBorderInfo().height}return null}return d},calculateOwnerWidthFromContentWidth:function(a,d){var c=this.owner,f=a.getPaddingInfo().width,e=this.getTriggerOffset(c,a),b;if(c.isGroupHeader){b=d}else {b=Math.max(d,c.textEl.getWidth()+a.titleContext.getPaddingInfo().width)}return b+f+e},getTriggerOffset:function(a,c){var b=0;if(c.widthModel.shrinkWrap&&!a.menuDisabled){if(a.query('>:not([hidden])').length===0){b=a.getTriggerElWidth()}}return b}},0,0,0,0,['layout.columncomponent'],0,[Ext.grid,'ColumnComponentLayout'],0);Ext.cmd.derive('Ext.layout.container.Fit',Ext.layout.container.Container,{alternateClassName:'Ext.layout.FitLayout',itemCls:'x-fit-item',type:'fit',manageMargins:!0,sizePolicies:{0:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},1:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},2:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},3:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}},getItemSizePolicy:function(d,b){var a=b||this.owner.getSizeModel(),c=(a.width.shrinkWrap?0:1)|(a.height.shrinkWrap?0:2);return this.sizePolicies[c]},beginLayoutCycle:function(a,p){var f=this,j=f.lastHeightModel&&f.lastHeightModel.calculated,m=f.lastWidthModel&&f.lastWidthModel.calculated,l=m||j,h=0,i=0,b,k,g,e,q,n,c,d,o,r;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(l&&a.targetContext.el.dom.tagName.toUpperCase()!=='TD'){l=m=j=!1}k=a.childItems;q=k.length;for(g=0;g0){for(g=0;g'+a.view.emptyText+''}a.view.getComponentLayout().headerCt=a.headerCt;a.mon(a.view,{uievent:a.processEvent,scope:a});a.headerCt.view=a.view;if(a.hasListeners.viewcreated){a.fireEvent('viewcreated',a,a.view)}}return a.view},getColumnManager:function(){return this.columnManager},getVisibleColumnManager:function(){return this.visibleColumnManager},getTopLevelColumnManager:function(){return this.ownerGrid.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},setAutoScroll:Ext.emptyFn,applyScrollable:function(a){if(this.view){this.view.setScrollable(a)}return a},getScrollable:function(){return null},processEvent:function(g,h,f,c,d,b,e,i){var a=b.position.column;if(a){return a.processEvent.apply(a,arguments)}},ensureVisible:function(b,a){this.doEnsureVisible(b,a)},scrollByDeltaY:function(b,a){this.getView().scrollBy(0,b,a)},scrollByDeltaX:function(b,a){this.getView().scrollBy(b,0,a)},afterCollapse:function(){this.saveScrollPos();Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){Ext.panel.Panel.prototype.afterExpand.apply(this,arguments);this.restoreScrollPos()},saveScrollPos:Ext.emptyFn,restoreScrollPos:Ext.emptyFn,onHeaderResize:function(){var a=this.view.getScrollable(),b;if(a&&a.isTouchScroller){b=a.getSize();if(b){a.setSize({x:this.headerCt.getTableWidth(),y:b.y})}}},onHeaderMove:function(e,f,b,c,d){var a=this;if(a.optimizedColumnMove===!1){a.view.refreshView()}else {a.view.moveColumn(c,d,b)}a.delayScroll()},onHeaderHide:function(b,c){var a=this.view;if(!b.childHideCount&&a.refreshCounter){a.refreshView()}},onHeaderShow:function(b,c){var a=this.view;if(a.refreshCounter){a.refreshView()}},onHeadersChanged:function(b,c){var a=this;if(a.rendered&&!a.reconfiguring){a.view.refreshView();a.delayScroll()}},delayScroll:function(){var a=this.view;if(a){this.scrollTask.delay(10,null,null,[a])}},onViewReady:function(){this.fireEvent('viewready',this)},onRestoreHorzScroll:function(){var a=this,b=a.scrollXPos;if(b){a.syncHorizontalScroll(a,!0)}},getScrollerOwner:function(){var a=this;if(!this.scrollerOwner){a=this.up('[scrollerOwner]')}return a},getLhsMarker:function(){var a=this;return a.lhsMarker||(a.lhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getRhsMarker:function(){var a=this;return a.rhsMarker||(a.rhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},updateHeaderBorders:function(a){this[a?'removeCls':'addCls'](this.noHeaderBordersCls)},getNavigationModel:function(){return this.getView().getNavigationModel()},getSelectionModel:function(){return this.getView().getSelectionModel()},getScrollTarget:function(){var a=this.getScrollerOwner().query('tableview');return a[a.length-1]},syncHorizontalScroll:function(e,b){var a=this,c=a.view.getScrollX(),d;b=b===!0;if(a.rendered&&(b||c!==a.scrollXPos)){if(b){d=a.getScrollTarget();d.setScrollX(c)}a.headerCt.setScrollX(c);a.scrollXPos=c}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(b,d){var a=this,c=a.getView();if(b){a.store=b;if(c.store!==b){c.bindStore(b,!1)}a.mon(b,{load:a.onStoreLoad,scope:a});a.storeRelayers=a.relayEvents(b,['filterchange','groupchange'])}else {a.unbindStore()}},unbindStore:function(){var a=this,b=a.store,c;if(b){b.trackStateChanges=!1;a.store=null;a.mun(b,{load:a.onStoreLoad,scope:a});Ext.destroy(a.storeRelayers);c=a.view;if(c.store){c.bindStore(null)}}},setColumns:function(a){if(a.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,a)}},setStore:function(a){this.reconfigure(a);if(this.autoLoad&&!a.isEmptyStore&&!(a.loading||a.isLoaded())){a.load()}},reconfigure:function(b,c){var a=this,f=a.store,e=a.headerCt,i=a.lockable,h=e?e.items.getRange():a.columns,d=a.getView(),j,g;if(arguments.length===1&&Ext.isArray(b)){c=b;b=null}if(c){c=Ext.Array.slice(c)}a.reconfiguring=!0;if(b){b=Ext.StoreManager.lookup(b)}a.fireEvent('beforereconfigure',a,b,c,f,h);Ext.suspendLayouts();if(i){a.reconfigureLockable(b,c)}else {j=d.blockRefresh;d.blockRefresh=!0;if(b&&b!==f){a.unbindStore();a.bindStore(b)}if(c){delete a.scrollXPos;e.removeAll();e.add(c)}d.blockRefresh=j;g=d.refreshCounter}Ext.resumeLayouts(!0);if(i){a.afterReconfigureLockable()}else {if(d.refreshCounter===g){d.refreshView()}}a.fireEvent('reconfigure',a,b,c,f,h);delete a.reconfiguring},beforeDestroy:function(){var a=this,b=a.scrollTask;if(b){b.cancel();a.scrollTask=null}Ext.destroy(a.focusEnterLeaveListeners);Ext.panel.Panel.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.lockable){a.destroyLockable()}a.unbindStore();Ext.panel.Panel.prototype.onDestroy.call(this);a.columns=a.storeRelayers=a.columnManager=a.visibleColumnManager=null},destroy:function(){var a=this;Ext.panel.Panel.prototype.destroy.call(this);if(a.destroyed){a.view=a.selModel=a.headerCt=null}},privates:{initFocusableElement:function(){},doEnsureVisible:function(a,c){if(this.lockable){return this.ensureLockedVisible(a,c)}if(typeof a!=='number'&&!a.isEntity){a=this.store.getById(a)}var b=this,d=b.getView(),f=d.getNode(a),g,h,k,j,m,l,i,e,n;if(c){g=c.callback;h=c.scope;k=c.animate;j=c.highlight;m=c.select;l=c.focus;e=c.column}if(b.deferredEnsureVisible){b.deferredEnsureVisible.destroy()}if(!d.componentLayoutCounter){b.deferredEnsureVisible=d.on({resize:b.doEnsureVisible,args:Ext.Array.slice(arguments),scope:b,single:!0,destroyable:!0});return}if(typeof e==='number'){e=b.ownerGrid.getVisibleColumnManager().getColumns()[e]}if(f){i=d.getScrollable();if(e){n=Ext.fly(f).selectNode(e.getCellSelector())}if(i){i.scrollIntoView(n||f,!!e,k,j)}if(!a.isEntity){a=d.getRecord(f)}if(m){d.getSelectionModel().select(a)}if(l){d.getNavigationModel().setPosition(a,0)}Ext.callback(g,h||b,[!0,a,f])}else {if(d.bufferedRenderer){d.bufferedRenderer.scrollTo(a,{animate:k,highlight:j,select:m,focus:l,column:e,callback:function(d,c,a){Ext.callback(g,h||b,[!0,c,a])}})}else {Ext.callback(g,h||b,[!1,null])}}},getFocusEl:function(){return this.getView().getFocusEl()},setActionableMode:function(b,c){var a=this.ownerGrid;if(!a.destroying&&a.view.setActionableMode(b,c)!==!1){a.fireEvent('actionablemodechange',b);a[b?'addCls':'removeCls'](a.actionableModeCls);return !0}}}},1,['tablepanel'],['component','box','container','panel','tablepanel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0},['widget.tablepanel'],0,[Ext.panel,'Table'],0);Ext.define('Ext.theme.neptune.panel.Table',{override:'Ext.panel.Table',lockableBodyBorder:!0,initComponent:function(){var a=this;(arguments.callee.$previous||Ext.panel.Panel.prototype.initComponent).call(this);if(!a.hasOwnProperty('bodyBorder')&&!a.hideHeaders&&(a.lockableBodyBorder||!a.lockable)){a.bodyBorder=!0}}});Ext.cmd.derive('Ext.grid.ColumnLayout',Ext.layout.container.HBox,{type:'gridcolumn',firstHeaderCls:'x-column-header-first',lastHeaderCls:'x-column-header-last',initLayout:function(){Ext.layout.container.HBox.prototype.initLayout.call(this);if(this.scrollbarWidth===undefined){this.self.prototype.scrollbarWidth=Ext.getScrollbarSize().width}},beginLayout:function(d){var b=this,j=b.owner,e=b.firstHeaderCls,f=b.lastHeaderCls,h=[e,f],i=b.getVisibleItems(),g=i.length,c,a;Ext.layout.container.HBox.prototype.beginLayout.call(this,d);for(c=0;c0){b=this.getColumns()[a-1]}return b},getNextSibling:function(c){var a=this.getHeaderIndex(c),b;if(a!==-1){b=this.getColumns()[a+1]}return b||null},getFirst:function(){var a=this.getColumns();return a.length>0?a[0]:null},getLast:function(){var a=this.getColumns(),b=a.length;return b>0?a[b-1]:null},getHeaderByDataIndex:function(d){var c=this.getColumns(),e=c.length,a,b;for(a=0;a=d.left&&e=n.getMaxPosition().y-c.all.last(!0).offsetHeight){b.rowIdx--}e=Math.min(b.rowIdx,h.getCount()-1);f=Math.min(f,j.getColumns().length);d=h.getAt(e);i=j.getColumns()[f]}}else {if(k){d=e=null}else {if(g==null){g=a.lastFocused?a.lastFocused.column:0}if(typeof b==='number'){e=Math.max(Math.min(b,h.getCount()-1),0);d=h.getAt(b)}else {if(b.isEntity){d=b;e=h.indexOf(d)}else {if(b.tagName){d=c.getRecord(b);e=h.indexOf(d);if(e===-1){d=null}}else {if(p){return}k=!0;d=e=null}}}}if(d){if(e===-1){a.recordIndex=-1;d=h.getAt(0);e=0;g=null}if(g==null){if(!(i=a.column)){f=0;i=j.getColumns()[0]}}else {if(typeof g==='number'){i=j.getColumns()[g];f=g}else {i=g;f=j.indexOf(g)}}}else {k=!0;i=f=null}}if(e===a.recordIndex&&f===a.columnIndex&&c===a.position.view){return a.focusPosition(a.position)}if(a.cell){a.cell.removeCls(a.focusCls)}a.previousRecordIndex=a.recordIndex;a.previousRecord=a.record;a.previousItem=a.item;a.previousCell=a.cell;a.previousColumn=a.column;a.previousColumnIndex=a.columnIndex;a.previousPosition=a.position.clone();a.selectionStart=m.selectionStart;a.position.setAll(c,a.recordIndex=e,a.columnIndex=f,a.record=d,a.column=i);if(k){a.item=a.cell=null}else {a.focusPosition(a.position,o)}if(!q){m.fireEvent('focuschange',m,a.previousRecord,a.record);c.fireEvent('rowfocus',a.record,a.item,a.recordIndex);c.fireEvent('cellfocus',a.record,a.cell,a.position)}if(l&&!o&&a.cell!==a.previousCell){a.fireNavigateEvent(l)}},focusPosition:function(b){var a=this,c,d;a.item=a.cell=null;if(b&&b.record&&b.column){c=b.view;if(b.rowElement){d=a.item=b.rowElement}else {d=c.getRowByRecord(b.record)}if(d){a.cell=b.cellElement||Ext.fly(d).down(b.column.getCellSelector(),!0);if(a.cell){a.cell=new Ext.dom.Fly(a.cell);c.lastFocused=a.lastFocused=a.position.clone();a.focusItem(a.cell);c.focusEl=a.cell}else {a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null}}else {d=c.dataSource.indexOf(b.record);a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null;if(d!==-1&&c.bufferedRenderer){a.lastKeyEvent=null;c.bufferedRenderer.scrollTo(d,!1,a.afterBufferedScrollTo,a)}}}},focusItem:function(a){a.addCls(this.focusCls);a.focus()},getCell:function(){return this.cell},getPosition:function(f){var c=this,a=c.position,b,e,d;if(a.record&&a.column){if(f){return a}e=a.view;d=e.dataSource;b=d.indexOf(a.record);if(b===-1){b=a.rowIdx;if(!(a.record=d.getAt(b))){b=-1}}if(b===-1||e.getVisibleColumnManager().indexOf(a.column)===-1){a.setAll();c.record=c.column=c.recordIndex=c.columnIndex=null}else {return a}}return null},getLastFocused:function(){var c=this,b,a=c.lastFocused;if(a&&a.record&&a.column){b=a.view;if(b.dataSource.indexOf(a.record)!==-1&&b.getVisibleColumnManager().indexOf(a.column)!==-1){return a}}},onKeyTab:function(a){var e=!a.shiftKey,d=a.position.clone(),g=d.view,f=a.position.cellElement,b=Ext.fly(f).findTabbableElements(),c,i=g.ownerGrid.actionables,j=i.length,h;a.preventDefault();c=b[Ext.Array.indexOf(b,a.target)+(e?1:-1)];while(!c&&(f=f[e?'nextSibling':'previousSibling'])){d.setColumn(g.getHeaderByCell(f));for(h=0;hj.height}a.setProp('viewOverflowY',i)}},measureContentHeight:function(e){var d=this.owner,b=d.body.dom,c=d.emptyEl,a=0;if(c){a+=c.offsetHeight}if(b){a+=b.offsetHeight}if(e.headerContext.state.boxPlan.tooNarrow){a+=Ext.getScrollbarSize().height}return a},flushColumnWidths:function(){var a=this,i=a.layout,d=a.ownerContext,g=a.columnsChanged,h=d.target,j=g.length,b,c,e,f;if(d.state.columnFlusher!==a){return}for(c=0;c0){h+=b;Ext.fly(f[c].el).setHeight(a)}else {g-=b}}a=i.rowHeight+g;if(Ext.isIE9&&d.view.ownerGrid.rowLines){a--}if(d.rowHeight+h=c+d;a--){e[a]=e[a-d];e[a].setAttribute('data-recordIndex',a)}}b.endIndex=b.endIndex+d}else {b.startIndex=c;b.endIndex=c+d-1}for(a=0;ab.endIndex){delete d[a]}}while(a!==f);delete d[a]},getCount:function(){return this.count},slice:function(e,a){var d=this.elements,c=[],b;if(!a){a=this.endIndex}else {a=Math.min(this.endIndex,a-1)}for(b=e||this.startIndex;b<=a;b++){c.push(d[b])}return c},replaceElement:function(a,b,d){var e=this.elements,c=typeof a==='number'?a:this.indexOf(a);if(c>-1){b=Ext.getDom(b);if(d){a=e[c];a.parentNode.insertBefore(b,a);Ext.removeNode(a);b.setAttribute('data-recordIndex',c)}this.elements[c]=b}return this},indexOf:function(b){var c=this.elements,a;b=Ext.getDom(b);for(a=this.startIndex;a<=this.endIndex;a++){if(c[a]===b){return a}}return -1},removeRange:function(g,c,j){var a=this,e=a.elements,i=[],d,b,h,f;if(c==null){c=a.endIndex+1}else {c=Math.min(a.endIndex+1,c+1)}if(g==null){g=a.startIndex}h=c-g;for(b=g,f=c;b<=a.endIndex;b++,f++){d=e[b];if(b=b.startIndex&&f<=b.endIndex){a[a.length]=f}}Ext.Array.sort(a);e=a.length}else {if(ab.endIndex){return}e=1;a=[a]}for(d=g=a[0],c=0;d<=b.endIndex;d++,g++){if(c=b.startIndex){j=h[d]=h[g];j.setAttribute('data-recordIndex',d)}else {delete h[d]}}b.endIndex-=e;b.count-=e},scroll:function(i,t,m){var b=this,e=b.view,p=e.store,c=b.elements,r=i.length,q=e.getNodeContainer(),k=e.hasListeners.itemremove,s=e.hasListeners.itemadd,h=b.statics().range,a,d,o,j,l,n,f,g;if(!i.length){return}if(t===-1){if(m){if(k){f=[];g=[]}n=b.endIndex-m+1;if(h){h.setStartBefore(c[n]);h.setEndAfter(c[b.endIndex]);h.deleteContents();for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}else {for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];Ext.removeNode(d);if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}e.fireEvent('itemremove',f,n,g,e);b.endIndex-=m}if(i.length){l=e.bufferRender(i,b.startIndex-=r);j=l.children;for(a=0;a','{[view.renderTHead(values, out, parent)]}','{%','view.renderRows(values.rows, values.columns, values.viewStartIndex, out);','%}','{[view.renderTFoot(values, out, parent)]}','','{% ','view = columns = column = null;','%}',{definitions:'var view, tableCls, columns, i, len, column;',priority:0}],outerRowTpl:['','{%','this.nextTpl.applyOut(values, out, parent)','%}','',{priority:9999}],rowTpl:['{%','var dataRowCls = values.recordIndex === -1 ? "" : " x-grid-row";','%}','','{%','parent.view.renderCell(values, parent.record, parent.recordIndex, parent.rowIndex, xindex - 1, out, parent)','%}','','',{priority:0}],cellTpl:['{tdStyle}"',' tabindex="-1" data-columnid="{[values.column.getItemId()]}">','
    {style}" ','{cellInnerAttr:attributes}>{value}
    ','',{priority:0}],refreshSelmodelOnRefresh:!1,tableValues:{},rowValues:{itemClasses:[],rowClasses:[]},cellValues:{classes:['x-grid-cell x-grid-td']},constructor:function(a){if(a.grid.isTree){a.baseCls='x-tree-view'}Ext.view.View.prototype.constructor.call(this,a)},hasVariableRowHeight:function(b){var a=this;return a.variableRowHeight||a.store.isGrouped()||a.getVisibleColumnManager().hasVariableRowHeight()||!b&&a.lockingPartner&&a.lockingPartner.hasVariableRowHeight(!0)},initComponent:function(){var a=this;if(a.columnLines){a.addCls(a.grid.colLinesCls)}if(a.rowLines){a.addCls(a.grid.rowLinesCls)}a.body=new Ext.dom.Fly();a.body.id=a.id+'gridBody';if(!a.trackOver){a.overItemCls=null}a.headerCt.view=a;a.grid.view=a;a.initFeatures(a.grid);a.itemSelector=a.getItemSelector();a.all=new Ext.view.NodeCache(a);Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(a,f){var d=this,b=d.ownerGrid,e=a.type,c=d.disableSelection||b.disableSelection;if(!f){if(!(a&&a.isSelectionModel)){a=b.selModel||a}}if(a){if(a.isSelectionModel){a.allowDeselect=b.allowDeselect||a.selectionMode!=='SINGLE';a.locked=c}else {if(typeof a==='string'){a={type:a}}else {a.type=b.selType||a.selType||a.type||e}if(!a.mode){if(b.simpleSelect){a.mode='SIMPLE'}else {if(b.multiSelect){a.mode='MULTI'}}}a=Ext.Factory.selection(Ext.apply({allowDeselect:b.allowDeselect,locked:c},a))}}return a},updateSelectionModel:function(b,c){var a=this;if(c){c.un({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});Ext.destroy(a.selModelRelayer)}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});a.selModel=b},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(c,h,j){var b=this,m=j>1,e=m&&document.createRange?document.createRange():null,g=m&&!e?document.createDocumentFragment():null,l=h,p=b.getGridColumns().length,k=p-1,r=(b.firstCls||b.lastCls)&&(h===0||h===p||c===0||c===k),f,i,q,n,d,a,o;if(b.rendered&&h!==c){q=b.el.query(b.rowSelector);for(f=0,n=q.length;f=(a-1)*b&&d.endIndex<=a*b-1){c.get(a);return !1}},onViewScroll:function(a,b,c){if(!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,a,b,c)}},createRowElement:function(e,f,d){var a=this,c=a.renderBuffer,b=a.collectData([e],f);b.columns=d;a.tpl.overwrite(c,b);a.cleanupData();return Ext.fly(c).down(a.getNodeContainerSelector(),!0).firstChild},bufferRender:function(e,f){var c=this,a=c.renderBuffer,b,d=document.createRange?document.createRange():null;c.tpl.overwrite(a,c.collectData(e,f));c.cleanupData();Ext.fly(a).saveTabbableState({skipSelf:!0,includeHidden:!0});a=Ext.fly(a).down(c.getNodeContainerSelector(),!0);if(d){d.selectNodeContents(a);b=d.extractContents()}else {b=document.createDocumentFragment();while(a.firstChild){b.appendChild(a.firstChild)}}return {fragment:b,children:Ext.Array.toArray(b.childNodes)}},collectData:function(c,b){var a=this;a.rowValues.view=a;a.tableValues.view=a;a.tableValues.rows=c;a.tableValues.columns=null;a.tableValues.viewStartIndex=b;a.tableValues.touchScroll=a.touchScroll;a.tableValues.tableStyle='width:'+a.headerCt.getTableWidth()+'px';return a.tableValues},cleanupData:function(){var a=this.tableValues;a.view=a.columns=a.rows=this.rowValues.view=null},refreshSize:function(c){var a=this,b=a.getBodySelector();if(b){a.body.attach(a.el.down(b,!0))}if(!a.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.apply(this,arguments);if(c||a.hasVariableRowHeight()&&a.dataSource.getCount()){a.grid.updateLayout()}Ext.resumeLayouts(!0)}},clearViewEl:function(g){var a=this,b=a.all,i=a.getStore(),d,c,f,h=b.slice(),e=[];if(a.hasListeners.itemremove){for(d=b.startIndex;d<=b.endIndex;d++){e.push(i.getByInternalId(b.item(d,!0).getAttribute('data-recordId')))}}a.fireEvent('itemremove',e,b.startIndex,h,a);Ext.view.View.prototype.clearViewEl.call(this);c=Ext.fly(a.getNodeContainer());if(c&&!g){f=a.getTargetEl();if(f.dom!==c.dom){c.destroy()}}},getMaskTarget:function(){return this.ownerCt.body},statics:{getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},getRecord:function(a){if(this.store.destroyed){return}if(a.isModel){return a}a=this.getNode(a);if(a){return this.dataSource.getByInternalId(a.getAttribute('data-recordId'))}},indexOf:function(a){a=this.getNode(a);if(!a&&a!==0){return -1}return this.all.indexOf(a)},indexInStore:function(a){return a?this.dataSource.indexOf(this.getRecord(a)):-1},indexOfRow:function(a){var c=this.dataSource,b;if(a.isCollapsedPlaceholder){b=c.indexOfPlaceholder(a)}else {b=c.indexOf(a)}return b},renderRows:function(e,g,d,h){var b=this,a=b.rowValues,f=e.length,c;a.view=b;a.columns=g;a.rowRole=b.rowAriaRole;b.cellValues.cellRole=b.cellAriaRole;for(c=0;c');for(a=0;a')}d.push('')},renderRow:function(c,e,j){var a=this,k=e===-1,h=a.selectionModel,b=a.rowValues,d=b.itemClasses,g=b.rowClasses,l=a.itemCls,f,i=a.rowTpl;b.rowAttr={};b.record=c;b.recordId=c.internalId;b.recordIndex=a.store.indexOf(c);b.rowIndex=e;b.rowId=a.getRowId(c);b.itemCls=b.rowCls='';if(!b.columns){b.columns=a.ownerCt.getVisibleColumnManager().getColumns()}d.length=g.length=0;if(!k){d[0]=l;if(!a.ownerCt.disableSelection&&h.isRowSelected){if(h.isRowSelected(c)){d.push(a.selectedItemCls)}}if(a.stripeRows&&e%2!==0){d.push(a.altRowCls)}if(a.getRowClass){f=a.getRowClass(c,e,null,a.dataSource);if(f){g.push(f)}}}if(j){i.applyOut(b,j,a.tableValues)}else {return i.apply(b,a.tableValues)}},renderCell:function(b,f,j,n,m,p){var c=this,l,h=c.selectionModel,a=c.cellValues,d=a.classes,k=f.data[b.dataIndex],o=c.cellTpl,g,e,i=c.navigationModel.getPosition();a.record=f;a.column=b;a.recordIndex=j;a.rowIndex=n;a.columnIndex=a.cellIndex=m;a.align=b.align;a.innerCls=b.innerCls;a.tdCls=a.tdStyle=a.tdAttr=a.style='';a.unselectableAttr=c.enableTextSelection?'':'unselectable="on"';d[1]=b.getCellId();e=2;if(b.renderer&&b.renderer.call){l=c.ownerCt.columnManager.getHeaderIndex(b);g=b.renderer.call(b.usingDefaultRenderer?b:b.scope||c.ownerCt,k,a,f,j,l,c.dataSource,c);if(a.css){f.cssWarning=!0;a.tdCls+=' '+a.css;a.css=null}if(a.tdCls){d[e++]=a.tdCls}}else {g=k}a.value=g==null||g===''?b.emptyCellText:g;if(b.tdCls){d[e++]=b.tdCls}if(c.markDirty&&f.dirty&&f.isModified(b.dataIndex)){d[e++]=c.dirtyCls}if(b.isFirstVisible){d[e++]=c.firstCls}if(b.isLastVisible){d[e++]=c.lastCls}if(!c.enableTextSelection){d[e++]=c.unselectableCls}if(h&&(h.isCellModel||h.isSpreadsheetModel)&&h.isCellSelected(c,j,b)){d[e++]=c.selectedCellCls}if(i&&i.record.id===f.id&&i.column===b){d[e++]=c.focusedItemCls}d.length=e;a.tdCls=d.join(' ');o.applyOut(a,p);a.column=a.record=null},getRow:function(a){var b;if(!a&&a!==0||!this.rendered){return null}if(a.target){a=a.target}if(Ext.isString(a)){return Ext.fly(a).down(this.rowSelector,!0)}if(Ext.isNumber(a)){b=this.all.item(a);return b&&b.down(this.rowSelector,!0)}if(a.isModel){return this.getRowByRecord(a)}b=Ext.fly(a);if(b.is(this.itemSelector)){return this.getRowFromItem(b)}return b.findParent(this.rowSelector,this.getTargetEl())},getRowId:function(a){return this.id+'-record-'+a.internalId},constructRowId:function(a){return this.id+'-record-'+a},getNodeById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!1)},getRowById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!0)},getNodeByRecord:function(a){return this.retrieveNode(this.getRowId(a),!1)},getRowByRecord:function(a){return this.retrieveNode(this.getRowId(a),!0)},getRowFromItem:function(c){var b=Ext.getDom(c).tBodies[0].childNodes,d=b.length,a;for(a=0;a1){A=c._extData;j=a.createRowElement(d,a.indexOfRow(d),f);if(Ext.fly(c,'_internal').hasCls(u)){Ext.fly(j).addCls(u)}if(Ext.isIE9m&&c.mergeAttributes){c.mergeAttributes(j,!0)}else {o=j.attributes;H=o.length;for(l=0;l0){if(Ext.supports.ScrollWidthInlinePaddingBug){e+=c.getCellPaddingAfter(d[0])}if(c.columnLines){e+=Ext.fly(d[0].parentNode).getBorderWidth('lr')}}g.setWidth(1);b.textEl.setStyle({'text-overflow':'clip',display:'table-cell'});a=b.textEl.dom.offsetWidth+b.titleEl.getPadding('lr');b.textEl.setStyle({'text-overflow':'',display:''});for(;fh){return !1}if(d){b.view=d}b.setPosition(a,0)}else {b.navigate(+1)};break;case 'left':if(e.isFirstColumn()){a=d&&c.isNormalView?a:a-1;if(a<0){return !1}if(d){b.view=d;f=d.getVisibleColumnManager().getColumns()}b.setPosition(a,f[f.length-1])}else {b.navigate(-1)};break;case 'up':if(a===0){return !1}else {b.setRow(a-1)};break;case 'down':if(a===h){return !1}else {b.setRow(a+1)};break;}if(g&&g.call(j||c,b)!==!0){return !1}return b},walkRows:function(f,e){var i=this,j=i.dataSource,g=0,d=f,h,b=e<0?0:j.getCount()-1,c=b?1:-1,a=f;do{if(b?a>=b:a<=b){return d||b}a+=c;if((h=Ext.fly(i.getRow(a)))&&h.isVisible(!0)){g+=c;d=a}}while(g!==e);return a},walkRecs:function(h,g){var k=this,a=k.dataSource,i=0,e=h,j,c=g<0?0:(a.isBufferedStore?a.getTotalCount():a.getCount())-1,f=c?1:-1,b=a.indexOf(h),d;do{if(c?b>=c:b<=c){return e}b+=f;d=a.getAt(b);if(!d.isCollapsedPlaceholder&&(j=Ext.fly(k.getNodeByRecord(d)))&&j.isVisible(!0)){i+=f;e=d}}while(i!==g);return e},getFirstVisibleRowIndex:function(){var a=this,c=a.dataSource.isBufferedStore?a.dataSource.getTotalCount():a.dataSource.getCount(),b=a.indexOf(a.all.first())-1;do{b+=1;if(b===c){return}}while(!Ext.fly(a.getRow(b)).isVisible(!0));return b},getLastVisibleRowIndex:function(){var b=this,a=b.indexOf(b.all.last());do{a-=1;if(a===-1){return}}while(!Ext.fly(b.getRow(a)).isVisible(!0));return a},getHeaderCt:function(){return this.headerCt},getPosition:function(b,a){return (new Ext.grid.CellContext(this)).setPosition(b,a)},onDestroy:function(){var a=this,c=a.featuresMC,d,b;if(c){for(b=0,d=c.getCount();b=a.viewSize)){a.onReplace(e,d,[],c)}else {Ext.view.View.prototype.onAdd.apply(this,arguments)}b.setPendingStripe(d)},onRemove:function(f,d,e){var a=this,b=a.bufferedRenderer,c;if(a.rendered&&b&&a.dataSource.getCount()+d.length>=b.viewSize){c=a.saveFocusState();b.onReplace(f,e,d,[]);c()}else {Ext.view.View.prototype.onRemove.apply(this,arguments)}a.setPendingStripe(e)},saveFocusState:function(){var b=this,g=b.dataSource,c=b.actionableMode,d=b.getNavigationModel(),a=c?b.actionPosition:d.getPosition(!0),f,e;if(a){a=a.clone();if(c){b.ownerGrid.setActionableMode(!1)}b.el.dom.focus();d.setPosition();return function(){if(g.getCount()){f=Math.min(a.rowIdx,b.all.getCount()-1);e=Math.min(a.colIdx,b.getVisibleColumnManager().getColumns().length-1);a=(new Ext.grid.CellContext(b)).setPosition(g.contains(a.record)?a.record:f,e);if(c){b.ownerGrid.setActionableMode(!0,a)}else {b.cellFocused=!0;d.setPosition(a,null,null,null,!0)}}else {a.column.focus()}}}return Ext.emptyFn},onDataRefresh:function(c){var b=this,a=b.ownerCt;if(a&&a.isCollapsingOrExpanding===2){a.on('expand',b.onDataRefresh,b,{single:!0});return}Ext.view.View.prototype.onDataRefresh.call(this,c)},getViewRange:function(){var a=this;if(a.bufferedRenderer){return a.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(b){var a=this.stripeOnUpdate;if(a===null){a=b}else {a=Math.min(a,b)}this.stripeOnUpdate=a},onEndUpdate:function(){var b=this,a=b.stripeOnUpdate,c=b.all.startIndex;if(b.rendered&&(a||a===0)){if(a-1)&&!g;b=b+(c?1:-1)){o=n[b];e.setColumn(o);k=Ext.fly(d).down(e.column.getCellSelector());for(h=0;h',''].join(''),constructor:function(b){var a=this;Ext.apply(a,b);if(!a.ddGroup){a.ddGroup='view-dd-zone-'+a.view.id}Ext.dd.DropZone.prototype.constructor.call(this,a.view.el)},fireViewEvent:function(){var a=this,b;a.lock();b=a.view.fireEvent.apply(a.view,arguments);a.unlock();return b},getTargetFromEvent:function(h){var e=h.getTarget(this.view.getItemSelector()),d,b,c,a,g,f;if(!e){d=h.getY();for(a=0,b=this.view.getNodes(),g=b.length;a=(a.bottom-a.top)/2){b='before'}else {b='after'}return b},containsRecordAtOffset:function(f,d,g){if(!d){return !1}var a=this.view,e=a.indexOf(d),c=a.getNode(e+g),b=c?a.getRecord(c):null;return b&&Ext.Array.contains(f,b)},positionIndicator:function(f,h,i){var a=this,c=a.view,d=a.getPosition(i,f),b=c.getRecord(f),g=h.records,e;if(!Ext.Array.contains(g,b)&&(d==='before'&&!a.containsRecordAtOffset(g,b,-1)||d==='after'&&!a.containsRecordAtOffset(g,b,1))){a.valid=!0;if(a.overRecord!==b||a.currentPosition!==d){e=Ext.fly(f).getY()-c.el.getY()-1;if(d==='after'){e+=Ext.fly(f).getHeight()}if(c.touchScroll===2){e+=c.getScrollY()}a.getIndicator().setWidth(Ext.fly(c.el).getWidth()).showAt(0,e);a.overRecord=b;a.currentPosition=d}}else {a.invalidateDrop()}},invalidateDrop:function(){if(this.valid){this.valid=!1;this.getIndicator().hide()}},onNodeOver:function(c,e,d,b){var a=this;if(!Ext.Array.contains(b.records,a.view.getRecord(c))){a.positionIndicator(c,b,d)}return a.valid?a.dropAllowed:a.dropNotAllowed},notifyOut:function(d,b,e,c){var a=this;Ext.dd.DropZone.prototype.notifyOut.apply(this,arguments);a.overRecord=a.currentPosition=null;a.valid=!1;if(a.indicator){a.indicator.hide()}},onContainerOver:function(f,e,d){var a=this,b=a.view,c=b.dataSource.getCount();if(c){a.positionIndicator(b.all.last(),d,e)}else {a.overRecord=a.currentPosition=null;a.getIndicator().setWidth(Ext.fly(b.el).getWidth()).showAt(0,0);a.valid=!0}return a.dropAllowed},onContainerDrop:function(b,c,a){return this.onNodeDrop(b,null,c,a)},onNodeDrop:function(f,g,h,e){var a=this,d=!1,c={wait:!1,processDrop:function(){a.invalidateDrop();a.handleNodeDrop(e,a.overRecord,a.currentPosition);d=!0;a.fireViewEvent('drop',f,e,a.overRecord,a.currentPosition)},cancelDrop:function(){a.invalidateDrop();d=!0}},b=!1;if(a.valid){b=a.fireViewEvent('beforedrop',f,e,a.overRecord,a.currentPosition,c);if(c.wait){return}if(b!==!1){if(!d){c.processDrop()}}}return b},destroy:function(){this.indicator=Ext.destroy(this.indicator);Ext.dd.DropZone.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.view,'DropZone'],0);Ext.cmd.derive('Ext.grid.plugin.HeaderResizer',Ext.plugin.Abstract,{disabled:!1,config:{dynamic:!1},colHeaderCls:'x-column-header',minColWidth:40,maxColWidth:1000,eResizeCursor:'col-resize',init:function(b){var a=this;a.headerCt=b;b.on('render',a.afterHeaderRender,a,{single:a});if(!a.minColWidth){a.self.prototype.minColWidth=Ext.grid.column.Column.prototype.minWidth}},destroy:function(){var a=this,b=a.tracker;if(b){b.destroy();a.tracker=null}a.headerCt.un('render',a.afterHeaderRender,a);a.headerCt=null;Ext.plugin.Abstract.prototype.destroy.call(this)},afterHeaderRender:function(){var a=this,b=a.headerCt,c=b.el;b.mon(c,'mousemove',a.onHeaderCtMouseMove,a);a.markerOwner=a.ownerGrid=a.headerCt.up('tablepanel').ownerGrid;a.tracker=new Ext.dd.DragTracker({disabled:a.disabled,onBeforeStart:a.onBeforeStart.bind(a),onStart:a.onStart.bind(a),onDrag:a.onDrag.bind(a),onEnd:a.onEnd.bind(a),tolerance:3,autoStart:300,el:c})},onHeaderCtMouseMove:function(b){var a=this;if(a.headerCt.dragging||a.disabled){if(a.activeHd){a.activeHd.el.dom.style.cursor='';delete a.activeHd}}else {if(b.pointerType!=='touch'){a.findActiveHeader(b)}}},findActiveHeader:function(f){var d=this,e=d.headerCt,i=f.getTarget('.'+d.colHeaderCls,e.el,!0),h=d.ownerGrid,g=h.ownerLockable,a,b,c,j;d.activeHd=null;if(i){a=Ext.getCmp(i.id);if(a.isAtEndEdge(f)){if(e.visibleColumnManager.getColumns().length===1&&e.forceFit){return}b=a}else {if(a.isAtStartEdge(f)){c=e.visibleColumnManager.getColumns();j=a.isGroupHeader?a.getGridColumns()[0]:a;b=c[Ext.Array.indexOf(c,j)-1];if(!b&&g&&!h.isLocked){c=g.lockedGrid.headerCt.visibleColumnManager.getColumns();b=c[c.length-1]}}}if(b){if(b.isGroupHeader){c=b.getGridColumns();b=c[c.length-1]}if(b&&!(b.fixed||b.resizable===!1)){d.activeHd=b;a.el.dom.style.cursor=d.eResizeCursor;if(a.triggerEl){a.triggerEl.dom.style.cursor=d.eResizeCursor}}}else {a.el.dom.style.cursor='';if(a.triggerEl){a.triggerEl.dom.style.cursor=''}}}return d.activeHd},onBeforeStart:function(b){var a=this;a.dragHd=a.activeHd||b.pointerType==='touch'&&a.findActiveHeader(b);if(a.dragHd&&!a.headerCt.dragging){a.xDelta=a.dragHd.getX()+a.dragHd.getWidth()-a.tracker.getXY()[0];a.tracker.constrainTo=a.getConstrainRegion();return !0}else {a.headerCt.dragging=!1;return !1}},getConstrainRegion:function(){var a=this,e=a.dragHd.el,c,b=a.ownerGrid,g=b.getSizeModel().width,d=g.shrinkWrap?a.headerCt.getWidth()-a.headerCt.visibleColumnManager.getColumns().length*a.minColWidth:a.maxColWidth,f;if(a.headerCt.forceFit){c=a.dragHd.nextNode('gridcolumn:not([hidden]):not([isGroupHeader])');if(c&&a.headerInSameGrid(c)){d=e.getWidth()+(c.getWidth()-a.minColWidth)}}else {if(b.isLocked&&g.shrinkWrap){d=a.dragHd.up('[scrollerOwner]').getTargetEl().getWidth(!0)-b.getWidth()-(b.ownerLockable.normalGrid.visibleColumnManager.getColumns().length*a.minColWidth+Ext.getScrollbarSize().width)}}f=a.adjustConstrainRegion(e.getRegion(),0,0,0,a.minColWidth);f.right=e.getX()+d;return f},onStart:function(k){var a=this,i=a.dragHd,j=i.el.getWidth(),h=i.getRootHeaderCt(),f,g,b,c,d,e;a.headerCt.dragging=!0;a.origWidth=j;if(!a.dynamic){b=a.markerOwner;if(b.frame&&b.resizable){a.gridOverflowSetting=b.el.dom.style.overflow;b.el.dom.style.overflow='hidden'}f=a.getLeftMarkerX(b);c=b.getLhsMarker();d=b.getRhsMarker();e=a.ownerGrid.body.getHeight()+h.getHeight();g=h.getOffsetsTo(b)[1]-b.el.getBorderWidth('t');c.dom.style.cursor=a.eResizeCursor;d.dom.style.cursor=a.eResizeCursor;c.setLocalY(g);d.setLocalY(g);c.setHeight(e);d.setHeight(e);a.setMarkerX(c,f);a.setMarkerX(d,f+j)}},onDrag:function(b){var a=this;if(a.dynamic){a.doResize()}else {a.setMarkerX(a.getMovingMarker(a.markerOwner),a.calculateDragX(a.markerOwner))}},getMovingMarker:function(a){return a.getRhsMarker()},onEnd:function(c){var a=this,b=a.markerOwner;a.headerCt.dragging=!1;if(a.dragHd){if(!a.dynamic){if('gridOverflowSetting' in a){b.el.dom.style.overflow=a.gridOverflowSetting}a.setMarkerX(b.getLhsMarker(),-9999);a.setMarkerX(b.getRhsMarker(),-9999)}a.doResize();if(c.pointerType!=='touch'){a.dragHd=null;a.activeHd.el.dom.style.cursor=a.eResizeCursor}else {a.dragHd=a.activeHd=null}}a.headerCt.blockNextEvent()},doResize:function(){var b=this,c=b.dragHd,a,d=b.tracker.getOffset('point');if(c&&d[0]){if(c.flex){delete c.flex}Ext.suspendLayouts();b.adjustColumnWidth(d[0]-b.xDelta);if(b.headerCt.forceFit){a=c.nextNode('gridcolumn:not([hidden]):not([isGroupHeader])');if(a&&!b.headerInSameGrid(a)){a=null}if(a){delete a.flex;a.setWidth(a.getWidth()-d[0])}}Ext.resumeLayouts(!0)}},headerInSameGrid:function(a){var b=this.dragHd.up('tablepanel');return !!a.up(b)},disable:function(){var a=this.tracker;this.disabled=!0;if(a){a.disable()}},enable:function(){var a=this.tracker;this.disabled=!1;if(a){a.enable()}},calculateDragX:function(a){return this.tracker.getXY('point')[0]+this.xDelta-a.getX()-a.el.getBorderWidth('l')},getLeftMarkerX:function(a){return this.dragHd.getX()-a.getX()-a.el.getBorderWidth('l')-1},setMarkerX:function(a,b){a.setLocalX(b)},adjustConstrainRegion:function(a,e,d,b,c){return a.adjust(e,d,b,c)},adjustColumnWidth:function(a){this.dragHd.setWidth(this.origWidth+a)}},0,0,0,0,['plugin.gridheaderresizer'],0,[Ext.grid.plugin,'HeaderResizer'],0);Ext.cmd.derive('Ext.grid.header.DragZone',Ext.dd.DragZone,{colHeaderSelector:'.x-column-header',colInnerSelector:'.x-column-header-inner',maxProxyWidth:120,constructor:function(b){var a=this;a.headerCt=b;a.ddGroup=a.getDDGroup();a.autoGroup=!0;Ext.dd.DragZone.prototype.constructor.call(this,b.el);a.proxy.el.addCls('x-grid-col-dd')},getDDGroup:function(){return 'header-dd-zone-'+this.headerCt.up('[scrollerOwner]').id},getDragData:function(c){if(c.getTarget(this.colInnerSelector)){var d=c.getTarget(this.colHeaderSelector),a,b;if(d){a=Ext.getCmp(d.id);if(!this.headerCt.dragging&&a.draggable&&!(a.isAtStartEdge(c)||a.isAtEndEdge(c))){b=document.createElement('div');b.role='presentation';b.innerHTML=a.text;return {ddel:b,header:a}}}}return !1},onBeforeDrag:function(){return !(this.headerCt.dragging||this.disabled)},onInitDrag:function(){this.headerCt.dragging=!0;this.headerCt.hideMenu();Ext.dd.DragZone.prototype.onInitDrag.apply(this,arguments)},onDragDrop:function(){this.headerCt.dragging=!1;Ext.dd.DragZone.prototype.onDragDrop.apply(this,arguments)},afterRepair:function(){Ext.dd.DragZone.prototype.afterRepair.call(this);this.headerCt.dragging=!1},getRepairXY:function(){return this.dragData.header.el.getXY()},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1}},1,0,0,0,0,0,[Ext.grid.header,'DragZone'],0);Ext.cmd.derive('Ext.grid.header.DropZone',Ext.dd.DropZone,{colHeaderCls:'x-column-header',proxyOffsets:[-4,-9],constructor:function(b){var a=this;a.headerCt=b;a.ddGroup=a.getDDGroup();a.autoGroup=!0;Ext.dd.DropZone.prototype.constructor.call(this,b.el)},destroy:function(){Ext.dd.DropZone.prototype.destroy.call(this);Ext.destroy(this.topIndicator,this.bottomIndicator)},getDDGroup:function(){return 'header-dd-zone-'+this.headerCt.up('[scrollerOwner]').id},getTargetFromEvent:function(a){return a.getTarget('.'+this.colHeaderCls)},getTopIndicator:function(){if(!this.topIndicator){this.topIndicator=Ext.getBody().createChild({role:'presentation',cls:'x-col-move-top',html:' '});this.indicatorXOffset=Math.floor((this.topIndicator.dom.offsetWidth+1)/2)}return this.topIndicator},getBottomIndicator:function(){if(!this.bottomIndicator){this.bottomIndicator=Ext.getBody().createChild({role:'presentation',cls:'x-col-move-bottom',html:' '})}return this.bottomIndicator},getLocation:function(d,c){var e=d.getXY()[0],a=Ext.fly(c).getRegion(),b;if(a.right-e<=(a.right-a.left)/2){b='after'}else {b='before'}return {pos:b,header:Ext.getCmp(c.id),node:c}},positionIndicator:function(t,v,w){var a=this,f=t.header,n=a.getLocation(w,v),b=n.header,c=n.pos,r,s,e,d,o,m,j,h,g,q,p,l,u,k,i;if(b===a.lastTargetHeader&&c===a.lastDropPos){return}r=f.nextSibling('gridcolumn:not([hidden])');s=f.previousSibling('gridcolumn:not([hidden])');a.lastTargetHeader=b;a.lastDropPos=c;if(!b.draggable&&c==='before'&&b.getIndex()===0){return !1}t.dropLocation=n;if(f!==b&&(c==='before'&&r!==b||c==='after'&&s!==b)&&!b.isDescendantOf(f)){l=Ext.dd.DragDropManager.getRelated(a);u=l.length;k=0;for(;k=0&&!(b.isGroupHeader&&(!b.items||!b.items.length))&&h!==c){i=a.isGroupHeader?a.query(':not([hidden]):not([isGroupHeader])').length:1;if(h<=c&&i>1){c-=i}d.getRootHeaderCt().grid.view.moveColumn(h,c,i)}p.fireEvent('columnmove',e,a,h,c);e.isDDMoveInGrid=d.isDDMoveInGrid=!1;if(d.isGroupHeader&&!e.isGroupHeader){if(e!==d){a.savedFlex=a.flex;delete a.flex;a.width=o}}else {if(!e.isGroupHeader){if(a.savedFlex){a.flex=a.savedFlex;delete a.width}}}Ext.resumeLayouts(!0)}}},1,0,0,0,0,0,[Ext.grid.header,'DropZone'],0);Ext.cmd.derive('Ext.grid.plugin.HeaderReorderer',Ext.plugin.Abstract,{init:function(a){this.headerCt=a;a.on({boxready:this.onHeaderCtRender,single:!0,scope:this})},destroy:function(){var a=this;a.headerCt.un('boxready',a.onHeaderCtRender,a);Ext.destroy(a.dragZone,a.dropZone);a.headerCt=a.dragZone=a.dropZone=null;Ext.plugin.Abstract.prototype.destroy.call(this)},onHeaderCtRender:function(){var a=this;a.dragZone=new Ext.grid.header.DragZone(a.headerCt);a.dropZone=new Ext.grid.header.DropZone(a.headerCt);if(a.disabled){a.dragZone.disable()}},enable:function(){this.disabled=!1;if(this.dragZone){this.dragZone.enable()}},disable:function(){this.disabled=!0;if(this.dragZone){this.dragZone.disable()}}},0,0,0,0,['plugin.gridheaderreorderer'],0,[Ext.grid.plugin,'HeaderReorderer'],0);Ext.cmd.derive('Ext.grid.header.Container',Ext.container.Container,{border:!0,baseCls:'x-grid-header-ct',dock:'top',weight:100,defaultType:'gridcolumn',detachOnRemove:!1,defaultWidth:100,sortAscText:'Sort Ascending',sortDescText:'Sort Descending',sortClearText:'Clear Sort',columnsText:'Columns',headerOpenCls:'x-column-header-open',menuSortAscCls:'x-hmenu-sort-asc',menuSortDescCls:'x-hmenu-sort-desc',menuColsIcon:'x-cols-icon',blockEvents:!1,dragging:!1,sortOnClick:!0,enableFocusableContainer:!1,childHideCount:0,sortable:!0,enableColumnHide:!0,initComponent:function(){var a=this;a.plugins=a.plugins||[];a.defaults=a.defaults||{};if(!a.isColumn){if(a.enableColumnResize){a.resizer=new Ext.grid.plugin.HeaderResizer();a.plugins.push(a.resizer)}if(a.enableColumnMove){a.reorderer=new Ext.grid.plugin.HeaderReorderer();a.plugins.push(a.reorderer)}}if(a.isColumn&&!a.isGroupHeader){if(!a.items||a.items.length===0){a.isContainer=a.isFocusableContainer=!1;a.focusable=!0;a.layout={type:'container',calculate:Ext.emptyFn}}}else {a.layout=Ext.apply({type:'gridcolumn',align:'stretch'},a.initialConfig.layout);a.defaults.columnLines=a.columnLines;if(!a.isGroupHeader){a.isRootHeader=!0;if(!a.hiddenHeaders){a.enableFocusableContainer=!0;a.ariaRole='rowgroup'}a.columnManager=new Ext.grid.ColumnManager(!1,a);a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);if(a.grid){a.grid.columnManager=a.columnManager;a.grid.visibleColumnManager=a.visibleColumnManager}}else {a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);a.columnManager=new Ext.grid.ColumnManager(!1,a)}}a.menuTask=new Ext.util.DelayedTask(a.updateMenuDisabledState,a);Ext.container.Container.prototype.initComponent.call(this)},insertNestedHeader:function(d){var b=this,e=d.ownerCt,f=b.ownerCt,c=f.layout.owner,a;if(e){if(b.isGroupHeader&&!f.isNestedParent){a=c.items.indexOf(b)}e.remove(d,!1)}if(a===undefined){a=c.items.indexOf(b)}c.insert(a,d)},isNested:function(){return !!this.getRootHeaderCt().down('[isNestedParent]')},isNestedGroupHeader:function(){var a=this,b=a.getRefOwner().query('>:not([hidden])');return b.length===1&&b[0]===a},maybeShowNestedGroupHeader:function(){var a=this.items,b;if(a&&a.length===1&&(b=a.getAt(0))&&b.hidden){b.show()}},setNestedParent:function(a){a.isNestedParent=!1;a.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&a.ownerCt.items.length===1)},initEvents:function(){var a=this,b,c;Ext.container.Container.prototype.initEvents.call(this);if(!a.isColumn&&!a.isGroupHeader){b=a.onHeaderCtEvent;c={click:b,dblclick:b,contextmenu:b,mouseover:a.onHeaderCtMouseOver,mouseout:a.onHeaderCtMouseOut,scope:a};if(Ext.supports.Touch){c.longpress=a.onHeaderCtLongPress}a.mon(a.el,c)}},onHeaderCtEvent:function(a,g){var c=this,f=c.getHeaderElByEvent(a),b,e,d;if(c.longPressFired){c.longPressFired=!1;return}if(f&&!c.blockEvents){b=Ext.getCmp(f.id);if(b){e=b[b.clickTargetName];if(!b.isGroupHeader&&!b.isContainer||a.within(e)){if(a.type==='click'||a.type==='tap'){d=b.onTitleElClick(a,e,c.sortOnClick);if(d){c.onHeaderTriggerClick(d,a,a.pointerType==='touch'?d.el:d.triggerEl)}else {c.onHeaderClick(b,a,g)}}else {if(a.type==='contextmenu'){c.onHeaderContextMenu(b,a,g)}else {if(a.type==='dblclick'&&b.resizable){b.onTitleElDblClick(a,e.dom)}}}}}}},blockNextEvent:function(){this.blockEvents=!0;Ext.asap(this.unblockEvents,this)},unblockEvents:function(){this.blockEvents=!1},onHeaderCtMouseOver:function(b,e){var c,a,d;if(!b.within(this.el,!0)){c=b.getTarget('.'+Ext.grid.column.Column.prototype.baseCls);a=c&&Ext.getCmp(c.id);if(a){d=a[a.clickTargetName];if(b.within(d)){a.onTitleMouseOver(b,d.dom)}}}},onHeaderCtMouseOut:function(c,g){var f='.'+Ext.grid.column.Column.prototype.baseCls,d=c.getTarget(f),e=c.getRelatedTarget(f),a,b;if(d!==e){if(d){a=Ext.getCmp(d.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOut(c,b.dom)}}if(e){a=Ext.getCmp(e.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOver(c,b.dom)}}}},onHeaderCtLongPress:function(d){var a=this,b=a.getHeaderElByEvent(d),c=Ext.getCmp(b.id);if(!c.menuDisabled){a.longPressFired=!0;a.showMenuBy(d,b,c)}},getHeaderElByEvent:function(a){return a.getTarget('.'+Ext.grid.column.Column.prototype.baseCls)},isLayoutRoot:function(){if(this.hiddenHeaders){return !1}return Ext.container.Container.prototype.isLayoutRoot.call(this)},getRootHeaderCt:function(){var a=this;return a.isRootHeader?a:a.up('[isRootHeader]')},onDestroy:function(){var a=this;if(a.menu){a.menu.un('hide',a.onMenuHide,a)}a.menuTask.cancel();Ext.container.Container.prototype.onDestroy.call(this);Ext.destroy(a.visibleColumnManager,a.columnManager,a.menu);a.columnManager=a.visibleColumnManager=null},applyColumnsState:function(h,n){if(!h||!h.length){return}var f=this,m=f.items.items,o=m.length,b=0,i=h.length,g,e,a,d,k=!1,c=[],l={},j=[];for(g=0;g=a.visibleFromIdx){b++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(a.isGroupHeader){c=a.visibleColumnManager.getColumns().length}d.onHeaderMoved(a,c,a.visibleFromIdx,b)},maybeContinueRemove:function(){var a=this;return a.isGroupHeader&&!a.applyingState&&!a.isNestedParent&&a.ownerCt&&!a.items.getCount()},onRemove:function(b,c){var a=this,d=a.ownerCt,e=b.lastHiddenHeader;Ext.container.Container.prototype.onRemove.call(this,b,c);if(!a.destroying){if(!a.isDDMoveInGrid){a.onHeadersChanged(b,!1)}if(a.maybeContinueRemove()){if(b.rendered){a.detachComponent(b)}Ext.suspendLayouts();d.remove(a);Ext.resumeLayouts(!0)}}},onHeadersChanged:function(c,d){var b,a=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(a){a.onColumnsChanged();if(!c.isGroupHeader){b=a.ownerCt;if(b&&!d){b.onHeadersChanged(a,c)}}}},onHeaderMoved:function(d,f,c,e){var a=this,b=a.ownerCt;if(a.rendered){if(b&&b.onHeaderMove){b.onHeaderMove(a,d,f,c,e)}a.fireEvent('columnmove',a,d,c,e)}},onColumnsChanged:function(){var a=this,b=a.menu,c,d;if(a.rendered){a.fireEvent('columnschanged',a);if(b&&(c=b.child('#columnItemSeparator'))){d=b.child('#columnItem');c.destroy();d.destroy()}}},lookupComponent:function(b){var a=Ext.container.Container.prototype.lookupComponent.apply(this,arguments);if(!a.isGroupHeader&&a.width===undefined&&!a.flex){a.width=this.defaultWidth}return a},setSortState:function(){var e=this.up('[store]').store,d=this.visibleColumnManager.getColumns(),f=d.length,c,b,a;for(c=0;cgridcolumn[hideable]'),g=e.length,d;for(;cj.el.dom.clientHeight?Ext.getScrollbarSize().width:0),n=0,e=k.getVisibleGridColumns(),o=b.hidden,f,c,a,g,d;function getTotalFlex(){for(c=0,f=e.length;cg){b.width=g;l=!0}else {b.width=d;h-=d+m;getTotalFlex()}applyWidth();Ext.resumeLayouts(!0)},autoSizeColumn:function(a){var b=this.view;if(b){b.autoSizeColumn(a);if(this.forceFit){this.applyForceFit(a)}}},getRefItems:function(b){var a=Ext.container.Container.prototype.getRefItems.call(this,b);if(this.menu){a.push(this.menu)}return a},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},createFocusableContainerKeyNav:function(b){var a=this;return new Ext.util.KeyNav(b,{scope:a,down:a.showHeaderMenu,left:a.onFocusableContainerLeftKey,right:a.onFocusableContainerRightKey,home:a.onHomeKey,end:a.onEndKey,space:a.onHeaderActivate,enter:a.onHeaderActivate})},onHomeKey:function(a){return this.focusChild(null,!0,a)},onEndKey:function(a){return this.focusChild(null,!1,a)},showHeaderMenu:function(b){var a=this.getFocusableFromEvent(b);if(a&&a.isColumn&&a.triggerEl){this.onHeaderTriggerClick(a,b,a.triggerEl)}},onHeaderActivate:function(d){var a=this.getFocusableFromEvent(d),c,b;if(a&&a.isColumn){c=a.getView();if(a.sortable&&this.sortOnClick){b=c.getNavigationModel().getLastFocused();a.toggleSortState();if(b){c.ownerCt.ensureVisible(b.record)}}this.onHeaderClick(a,d,a.el)}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {a.focus()}}}},0,['headercontainer'],['component','box','container','headercontainer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0},['widget.headercontainer'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.grid.header,'Container'],0);Ext.cmd.derive('Ext.grid.column.Column',Ext.grid.header.Container,{alternateClassName:'Ext.grid.Column',config:{triggerVisible:!1,sorter:null},baseCls:'x-column-header',hoverCls:'x-column-header-over',ariaRole:'columnheader',enableFocusableContainer:!1,sortState:null,possibleSortStates:['ASC','DESC'],ariaSortStates:{ASC:'ascending',DESC:'descending'},childEls:['titleEl','triggerEl','textEl','textContainerEl'],headerWrap:!1,renderTpl:['','{%this.renderContainer(out,values)%}'],dataIndex:null,text:' ',menuText:null,emptyCellText:' ',sortable:!0,resizable:!0,hideable:!0,menuDisabled:!1,renderer:!1,align:'left',draggable:!0,tooltipType:'qtip',initDraggable:Ext.emptyFn,tdCls:'',producesHTML:!0,ignoreExport:!1,isHeader:!0,isColumn:!0,tabIndex:-1,ascSortCls:'x-column-header-sort-ASC',descSortCls:'x-column-header-sort-DESC',componentLayout:'columncomponent',groupSubHeaderCls:'x-group-sub-header',groupHeaderCls:'x-group-header',clickTargetName:'titleEl',detachOnRemove:!0,initResizable:Ext.emptyFn,rendererNames:{column:'renderer',edit:'editRenderer',summary:'summaryRenderer'},formatterNames:{column:'formatter',edit:'editFormatter',summary:'summaryFormatter'},initComponent:function(){var a=this;if(!a.rendererScope){a.rendererScope=a.scope}if(a.header!=null){a.text=a.header;a.header=null}if(a.cellWrap){a.tdCls=(a.tdCls||'')+' x-wrap-cell'}if(a.columns!=null){a.isGroupHeader=!0;a.ariaRole='presentation';a.items=a.columns;a.columns=a.flex=a.width=null;a.cls=(a.cls||'')+' '+a.groupHeaderCls;a.sortable=a.resizable=!1;a.align='center'}else {if(a.flex){a.minWidth=a.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}a.addCls('x-column-header-align-'+a.align);a.setupRenderer();a.setupRenderer('edit');a.setupRenderer('summary');Ext.grid.header.Container.prototype.initComponent.apply(this,arguments)},onAdded:function(e,g,f){var a=this,c,d,b;Ext.grid.header.Container.prototype.onAdded.call(this,e,g,f);if(!a.headerId){d=a.up('tablepanel');b=d?d.ownerGrid:a.getRootHeaderCt();b.headerCounter=(b.headerCounter||0)+1;a.headerId='h'+b.headerCounter}if(!a.stateId){a.stateId=a.initialConfig.id||a.headerId}c=a.getSorter();if(c&&!c.initialConfig.id){c.setId((a.dataIndex||a.stateId)+'-sorter')}},applySorter:function(a){return this.getRootHeaderCt().up('tablepanel').store.getData().getSorters().decodeSorter(a)},bindFormatter:function(a){var b=this;return function(c){return a.format(c,a.scope||b.rendererScope||b.resolveListenerScope())}},bindRenderer:function(b){var a=this;a.hasCustomRenderer=!0;return function(){return Ext.callback(b,a.rendererScope,arguments,0,a)}},setupRenderer:function(c){c=c||'column';var a=this,b=a[a.formatterNames[c]],d=a[a.rendererNames[c]],f=c==='column',e,g;if(!b){if(d){if(typeof d==='string'){d=a[a.rendererNames[c]]=a.bindRenderer(d);g=!0}if(f){a.hasCustomRenderer=g||d.length>1}}else {if(f&&a.defaultRenderer){a.renderer=a.defaultRenderer;a.usingDefaultRenderer=!0}}}else {e=b.indexOf('this.')===0;if(e){b=b.substring(5)}b=Ext.app.bind.Template.prototype.parseFormat(b);a[a.formatterNames[c]]=null;if(e){b.scope=null}a[a.rendererNames[c]]=a.bindFormatter(b)}},getView:function(){var a=this.getRootHeaderCt();if(a){return a.view}},onFocusLeave:function(a){Ext.grid.header.Container.prototype.onFocusLeave.call(this,a);if(this.activeMenu){this.activeMenu.hide()}},initItems:function(){var a=this;Ext.grid.header.Container.prototype.initItems.apply(this,arguments);if(a.isGroupHeader){if(a.config.hidden||!a.hasVisibleChildColumns()){a.hide()}}},hasVisibleChildColumns:function(){var c=this.items.items,d=c.length,a,b;for(a=0;agridcolumn:not([hidden]):not([menuDisabled])');c=a.length;if(Ext.Array.contains(a,b.hideCandidate)){c--}if(c){return !1}b.hideCandidate=this},isLockable:function(){var a={result:this.lockable!==!1};if(a.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[a])}return a.result},isLocked:function(){return this.locked||!!this.up('[isColumn][locked]','[isRootHeader]')},hasMultipleVisibleChildren:function(a){if(!this.isXType('headercontainer')){a.result=!1;return !1}if(this.query('>gridcolumn:not([hidden])').length>1){return !1}},hide:function(){var a=this,b=a.getRootHeaderCt(),c=a.getRefOwner();if(c.constructing){Ext.grid.header.Container.prototype.hide.call(this);return a}if(a.rendered&&!a.isVisible()){return a}if(b.forceFit){a.visibleSiblingCount=b.getVisibleGridColumns().length-1;if(a.flex){a.savedWidth=a.getWidth();a.flex=null}}b.beginChildHide();Ext.suspendLayouts();if(c.isGroupHeader){if(a.isNestedGroupHeader()){c.hide()}if(a.isSubHeader&&!a.isGroupHeader&&c.query('>gridcolumn:not([hidden])').length===1){c.lastHiddenHeader=a}}Ext.grid.header.Container.prototype.hide.call(this);b.endChildHide();b.onHeaderHide(a);Ext.resumeLayouts(!0);return a},show:function(){var a=this,c=a.getRootHeaderCt(),b=a.getRefOwner();if(a.isVisible()){return a}if(b.isGroupHeader){b.lastHiddenHeader=null}if(a.rendered){if(c.forceFit){c.applyForceFit(a)}}Ext.suspendLayouts();if(a.isSubHeader&&b.hidden){b.show(!1,!0)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(a.isGroupHeader){a.maybeShowNestedGroupHeader()}b=a.getRootHeaderCt();if(b){b.onHeaderShow(a)}Ext.resumeLayouts(!0);return a},shouldUpdateCell:function(d,b){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(b){var e=b.length,a,c;for(a=0;a{text} {linkHrefCls}{childElCls}" href="{href}" target="{hrefTarget}" hidefocus="true" unselectable="on" tabindex="{tabIndex}" {$}="{.}">{text}',maskOnDisable:!1,iconAlign:'left',initComponent:function(){var a=this,b=a.cls?[a.cls]:[],c;if(a.hasOwnProperty('canActivate')){a.focusable=a.canActivate}if(a.plain){b.push('x-menu-item-plain')}if(b.length){a.cls=b.join(' ')}if(a.menu){c=a.menu;a.menu=null;a.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==!1&&!a.destroying&&!a.destroyed&&a.isVisible(!0)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.disabled){if(!a.plain){a.addCls(a.activeCls)}a.activated=!0;if(a.hasListeners.activate){a.fireEvent('activate',a)}}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(a.activated){if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=!1;if(a.hasListeners.deactivate){a.fireEvent('deactivate',a)}}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){for(var a=this.getRefOwner();a&&(a.isMenu&&a.floating||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},expandMenu:function(c,b){var a=this;if(a.activated&&a.menu){a.hideOnClick=!1;a.cancelDeferHide();b=b==null?a.menuExpandDelay:b;if(b===0){a.doExpandMenu(c)}else {a.cancelDeferExpand();a.expandMenuTimer=Ext.defer(a.doExpandMenu,b,a,[c])}}},doExpandMenu:function(c){var b=this,a=b.menu;if(!a.isVisible()){b.parentMenu.activeChild=a;a.ownerCmp=b;a.parentMenu=b.parentMenu;a.constrainTo=document.body;a.autoFocus=!c||!c.pointerType;a.showBy(b,b.menuAlign)}},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},getValue:function(){return this.value},hideMenu:function(b){var a=this;if(a.menu){a.cancelDeferExpand();a.hideMenuTimer=Ext.defer(a.doHideMenu,Ext.isNumber(b)?b:a.menuHideDelay,a)}},onClick:function(b){var a=this,e=a.clickHideDelay,f=b.browserEvent,d,c;if(!a.href||a.disabled){b.stopEvent();if(a.disabled){return !1}}if(a.disabled||a.handlingClick){return}if(a.hideOnClick){if(!e){a.deferHideParentMenus()}else {a.deferHideParentMenusTimer=Ext.defer(a.deferHideParentMenus,e,a)}}d=a.fireEvent('click',a,b);if(a.destroyed){return}if(d!==!1&&a.handler){Ext.callback(a.handler,a.scope,[a,b],0,a)}if(Ext.isIE9m){c=f.returnValue===!1?!0:!1}else {c=!!f.defaultPrevented}if(a.href&&b.type!=='click'&&!c){a.handlingClick=!0;a.itemEl.dom.click();a.handlingClick=!1}if(!a.hideOnClick){a.focus()}return d},onRemoved:function(){var a=this;if(a.activated&&a.parentMenu.activeItem===a){a.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);a.parentMenu=a.ownerCmp=null},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;a.cancelDeferExpand();a.cancelDeferHide();clearTimeout(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.onDestroy.apply(this,arguments)},beforeRender:function(){var a=this,c=a.glyph,j=Ext._glyphFontFamily,b=!!(a.icon||a.iconCls||c),f=!!a.menu,i=a.iconAlign==='right'&&!f,e=a.isMenuCheckItem,d=[],k=a.ownerCt,g=k.plain,h;if(a.plain){a.ariaEl='el'}Ext.Component.prototype.beforeRender.call(this);if(b){if(f&&a.showCheckbox){b=!1}}if(typeof c==='string'){h=c.split('@');c=h[0];j=h[1]}if(!g||b&&!i||e){if(k.showSeparator&&!g){d.push(a.indentCls)}else {d.push(a.indentNoSeparatorCls)}}if(f){d.push(a.indentRightArrowCls)}else {if(b&&(i||e)){d.push(a.indentRightIconCls)}}Ext.applyIf(a.renderData,{hasHref:!!a.href,href:a.href||'#',hrefTarget:a.hrefTarget,icon:a.icon,iconCls:a.iconCls,glyph:c,glyphCls:c?'x-menu-item-glyph':undefined,glyphFontFamily:j,hasIcon:b,hasMenu:f,indent:!g||b||e,isCheckItem:e,rightIcon:i,plain:a.plain,text:a.text,arrowCls:a.arrowCls,baseIconCls:a.baseIconCls,textCls:a.textCls,indentCls:d.join(' '),linkCls:a.linkCls,linkHrefCls:a.linkHrefCls,groupCls:a.group?a.groupCls:'',tabIndex:a.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,!0)}},getMenu:function(){return this.menu||null},setMenu:function(b,f){var a=this,e=a.menu,h=a.arrowEl,d=a.ariaEl.dom,c,g;if(e){e.ownerCmp=e.parentMenu=null;if(f===!0||f!==!1&&a.destroyMenu){Ext.destroy(e)}if(d){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns')}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});delete c['aria-haspopup'];delete c['aria-owns']}}if(b){g=b.isMenu;b=a.menu=Ext.menu.Manager.get(b,{ownerCmp:a,focusOnToFront:!1});b.setOwnerCmp(a,g);if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {b=a.menu=null}if(b&&a.rendered&&!a.destroying&&h){h[b?'addCls':'removeCls'](a.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(a){var b=this.iconEl,c=this.icon;if(b){b.src=a||Ext.BLANK_IMAGE_URL}this.icon=a;this.fireEvent('iconchange',this,c,a)},setIconCls:function(b){var a=this,c=a.iconEl,d=a.iconCls;if(c){if(a.iconCls){c.removeCls(a.iconCls)}if(b){c.addCls(b)}}a.iconCls=b;a.fireEvent('iconchange',a,d,b)},setText:function(b){var a=this,d=a.textEl||a.el,c=a.text;a.text=b;if(a.rendered){d.setHtml(b||'');a.updateLayout()}a.fireEvent('textchange',a,c,b)},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},clearTip:function(){if(Ext.quickTipsActive&&Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.itemEl)}},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c){a.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.itemEl.id},b));a.tooltip=b}else {a.itemEl.dom.setAttribute(a.getTipAttr(),b)}}else {a.tooltip=b}return a},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)},getFocusEl:function(){return this.plain?this.el:this.itemEl}}},0,['menuitem'],['component','box','menuitem'],{'component':!0,'box':!0,'menuitem':!0},['widget.menuitem'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.menu,'Item',Ext.menu,'TextItem'],0);Ext.cmd.derive('Ext.menu.CheckItem',Ext.menu.Item,{checkedCls:'x-menu-item-checked',uncheckedCls:'x-menu-item-unchecked',groupCls:'x-menu-group-icon',hideOnClick:!1,checkChangeDisabled:!1,submenuText:'{0} submenu',ariaRole:'menuitemcheckbox',childEls:['checkEl'],showCheckbox:!0,isMenuCheckItem:!0,checkboxCls:'x-menu-item-checkbox',initComponent:function(){var a=this;a.checked=!!a.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==!1){a.hideOnClick=!0}}},beforeRender:function(){var a=this,b;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(a.renderData,{checkboxCls:a.checkboxCls,showCheckbox:a.showCheckbox});b=a.ariaRenderAttributes||(a.ariaRenderAttributes={});b['aria-checked']=a.menu?'mixed':a.checked;if(a.menu){b['aria-label']=Ext.String.formatEncode(a.submenuText,a.text)}},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.setChecked(!a.checked,!0);if(a.checkChangeDisabled){a.disableCheckChange()}if(Ext.isGecko&&a.checkEl){a.checkEl.on('mousedown',a.onMouseDownCheck)}},disableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.addCls(a.disabledCls)}if(Ext.isIE8&&a.rendered){a.el.repaint()}a.checkChangeDisabled=!0},enableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.removeCls(a.disabledCls)}a.checkChangeDisabled=!1},onMouseDownCheck:function(a){a.preventDefault()},onClick:function(b){var a=this;if(!(a.disabled||a.checkChangeDisabled||a.checked&&a.group||a.menu&&'touch'===b.pointerType&&!a.checkEl.contains(b.target))){a.setChecked(!a.checked);if(b.type==='keydown'&&a.menu){return !1}}Ext.menu.Item.prototype.onClick.call(this,b)},onDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.onDestroy.apply(this,arguments)},setText:function(c){var a=this,b=a.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,c);if(b&&a.menu){b.setAttribute('aria-label',Ext.String.formatEncode(a.submenuText,c))}},setChecked:function(b,d){var a=this,f=a.checkedCls,e=a.uncheckedCls,c=a.el,g=a.ariaEl.dom;if(a.checked!==b&&(d||a.fireEvent('beforecheckchange',a,b)!==!1)){if(c){if(b){c.addCls(f);c.removeCls(e)}else {c.addCls(e);c.removeCls(f)}}if(g){g.setAttribute('aria-checked',a.menu?'mixed':!!b)}a.checked=b;Ext.menu.Manager.onCheckChange(a,b);if(!d){Ext.callback(a.checkHandler,a.scope,[a,b],0,a);a.fireEvent('checkchange',a,b)}}}},0,['menucheckitem'],['component','box','menuitem','menucheckitem'],{'component':!0,'box':!0,'menuitem':!0,'menucheckitem':!0},['widget.menucheckitem'],0,[Ext.menu,'CheckItem'],0);Ext.cmd.derive('Ext.menu.Separator',Ext.menu.Item,{focusable:!1,canActivate:!1,hideOnClick:!1,plain:!0,separatorCls:'x-menu-item-separator',text:' ',ariaRole:'separator',beforeRender:function(){this.addCls(this.separatorCls);Ext.menu.Item.prototype.beforeRender.call(this)}},0,['menuseparator'],['component','box','menuitem','menuseparator'],{'component':!0,'box':!0,'menuitem':!0,'menuseparator':!0},['widget.menuseparator'],0,[Ext.menu,'Separator'],0);Ext.define('Ext.theme.neptune.menu.Separator',{override:'Ext.menu.Separator',border:!0});Ext.cmd.derive('Ext.menu.Menu',Ext.panel.Panel,{enableKeyNav:!0,allowOtherMenus:!1,ariaRole:'menu',floating:!0,constrain:!0,hidden:!0,hideMode:'visibility',ignoreParentClicks:!1,isMenu:!0,showSeparator:!0,minWidth:undefined,defaultMinWidth:120,defaultAlign:'tl-bl?',focusOnToFront:!1,bringParentToFront:!1,defaultFocus:':focusable',menuClickBuffer:0,baseCls:'x-menu',_iconSeparatorCls:'x-menu-icon-separator',_itemCmpCls:'x-menu-item-cmp',layout:{type:'vbox',align:'stretchmax',overflowHandler:'Scroller'},initComponent:function(){var a=this,d=['x-menu'],c=a.bodyCls?[a.bodyCls]:[],e=a.floating!==!1,b={element:'el',click:a.onClick,mouseover:a.onMouseOver,scope:a};if(Ext.supports.Touch){b.pointerdown=a.onMouseOver}a.on(b);a.on({beforeshow:a.onBeforeShow,scope:a});if(a.plain){d.push('x-menu-plain')}a.cls=d.join(' ');c.push('x-menu-body',Ext.dom.Element.unselectableCls);a.bodyCls=c.join(' ');if(e){if(a.minWidth===undefined){a.minWidth=a.defaultMinWidth}}else {a.hidden=!!a.initialConfig.hidden;a.constrain=!1}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(a.getLayout(),{configureItem:a.configureItem})},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);a.hidden=this.hidden;return a},beforeRender:function(){var a=this;Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!a.getSizeModel().width.shrinkWrap){a.layout.align='stretch'}if(a.floating){a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!!a.autoShow}},onBoxReady:function(){var a=this,c=a._iconSeparatorCls,b=a.focusableKeyNav;if(b){b.map.processEventScope=a;b.map.processEvent=function(a){if(a.keyCode===a.ESC){a.target=this.el.dom}return a};b.map.addBinding([{key:Ext.event.Event.ESC,handler:a.onEscapeKey,scope:a},{key:/[\w]/,handler:a.onShortcutKey,scope:a,shift:!1,ctrl:!1,alt:!1}])}else {a.escapeKeyNav=new Ext.util.KeyNav(a.el,{eventName:'keydown',scope:a,esc:a.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(a.showSeparator){a.iconSepEl=a.body.insertFirst({role:'presentation',cls:c+' '+c+'-'+a.ui,html:' '})}if(Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){a.el.on({scope:a,click:a.preventClick,translate:!1})}a.mouseMonitor=a.el.monitorMouseLeave(100,a.onMouseLeave,a)},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var b=this,a=b.lastFocusedChild;if(a){a.blur()}},getItemFromEvent:function(d){var c=this,b=c.layout.getRenderTarget().dom,a=d.getTarget();while(a.parentNode!==b){a=a.parentNode;if(!a){return}}return Ext.getCmp(a.id)},lookupComponent:function(a){var b=this;if(typeof a==='string'){a=b.lookupItemFromString(a)}else {if(Ext.isObject(a)){a=b.lookupItemFromObject(a)}}if(!a.dock){a.minWidth=a.minWidth||b.minWidth}return a},lookupItemFromObject:function(a){var b=this;if(!a.isComponent){if(!a.xtype){a=Ext.create('Ext.menu.'+(Ext.isBoolean(a.checked)?'Check':'')+'Item',a)}else {a=Ext.ComponentManager.create(a,a.xtype)}}if(a.isMenuItem){a.parentMenu=b}return a},lookupItemFromString:function(a){return a==='separator'||a==='-'?new Ext.menu.Separator():new Ext.menu.Item({canActivate:!1,hideOnClick:!1,plain:!0,text:a})},configureItem:function(a){var c=this.owner,f='x-',e=c.ui,b,d;if(a.isMenuItem){a.setUI(e)}else {if(c.items.getCount()>1&&!a.rendered&&!a.dock){d=c._itemCmpCls;b=[d+' '+d+'-'+e];if(!c.plain&&(a.indent!==!1||a.iconCls==='no-icon')){b.push(f+'menu-item-indent-'+e)}if(a.rendered){a.el.addCls(b)}else {a.cls=(a.cls||'')+' '+b.join(' ')}a.$extraMenuCls=b}}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.destroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(b){var c=this,f=b.type,a,d,e=f==='keydown';if(c.disabled){b.stopEvent();return}a=c.getItemFromEvent(b);if(a&&a.isMenuItem){if(!a.menu||!c.ignoreParentClicks){d=a.onClick(b)}else {b.stopEvent()}if(a.menu&&d!==!1&&e){a.expandMenu(b,0)}}if(!a||a.disabled){a=undefined}c.fireEvent('click',c,a,b)},onDestroy:function(){var a=this;if(a.escapeKeyNav){a.escapeKeyNav.destroy()}a.parentMenu=a.ownerCmp=a.escapeKeyNav=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.menu.Manager.onHide(a);Ext.panel.Panel.prototype.onDestroy.apply(this,arguments)},onMouseLeave:function(a){if(this.disabled){return}this.fireEvent('mouseleave',this,a)},onMouseOver:function(c){var a=this,g=c.getRelatedTarget(),e=!a.el.contains(g),b=a.getItemFromEvent(c),d=a.parentMenu,f=a.ownerCmp;if(e&&d){d.setActiveItem(f);f.cancelDeferHide();d.mouseMonitor.mouseenter()}if(a.disabled){return}if(b){if(!b.containsFocus){b.focus()}if(b.expandMenu){b.expandMenu(c)}}if(e){a.fireEvent('mouseenter',a,c)}a.fireEvent('mouseover',a,b,c)},setActiveItem:function(a){var b=this;if(a&&a!==b.lastFocusedChild){b.focusChild(a,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(h,g){var e=String.fromCharCode(g.getCharCode()),c=this.query('>[text]'),f=c.length,a=this.lastFocusedChild,d=Ext.Array.indexOf(c,a),b=d;for(;;){if(++b===f){b=0}a=c[b];if(b===d){return}if(a.text&&a.text[0].toUpperCase()===e){a.focus();return}}},onFocusableContainerTabKey:function(a){if(this.floating){this.hide()}},onFocusableContainerEnterKey:function(a){this.onClick(a)},onFocusableContainerSpaceKey:function(a){this.onClick(a)},onFocusableContainerLeftKey:function(a){a.preventDefault();if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(b){var c=this,a=c.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)tablepanel:not(hidden)>tableview');if(a){a.focus()}},focusRow:function(c){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;b.focusRow(c)},focusCell:function(a){a.view.focusCell(a)},onRowFocus:function(){this.relayFn('onRowFocus',arguments)},isVisible:function(a){return this.ownerGrid.isVisible(a)},getFocusEl:function(){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;return b.getFocusEl()},getCellInclusive:function(a,c){var d=a.column,b=this.lockedGrid.getColumnManager().getColumns().length;if(d>=b){a=Ext.apply({},a);a.column-=b;return this.normalView.getCellInclusive(a,c)}else {return this.lockedView.getCellInclusive(a,c)}},getHeaderByCell:function(a){if(a){return this.getVisibleColumnManager().getHeaderById(a.getAttribute('data-columnId'))}return !1},onRowSelect:function(){this.relayFn('onRowSelect',arguments)},onRowDeselect:function(){this.relayFn('onRowDeselect',arguments)},onCellSelect:function(a){a.column.getView().onCellSelect({record:a.record,column:a.column})},onCellDeselect:function(a){a.column.getView().onCellDeselect({record:a.record,column:a.column})},getCellByPosition:function(a,c){var e=this,b=a.view,d=a.column;if(b===e){a=(new Ext.grid.CellContext(d.getView())).setPosition(a.record,a.column)}return b.getCellByPosition(a,c)},getRecord:function(b){var a=this.lockedView.getRecord(b);if(!a){a=this.normalView.getRecord(b)}return a},scrollBy:function(){var a=this.normalView;a.scrollBy.apply(a,arguments)},ensureVisible:function(){var a=this.normalView;a.ensureVisible.apply(a,arguments)},disable:function(){this.relayFn('disable',arguments)},enable:function(){this.relayFn('enable',arguments)},addElListener:function(){this.relayFn('addElListener',arguments)},refreshNode:function(){this.relayFn('refreshNode',arguments)},addRowCls:function(){this.relayFn('addRowCls',arguments)},removeRowCls:function(){this.relayFn('removeRowCls',arguments)},destroy:function(){var a=this;a.rendered=!1;a.bindStore(null,!1,'dataSource');Ext.destroy(a.lockedViewEventRelayers,a.normalViewEventRelayers);a.lockedViewEventRelayers=a.normalViewEventRelayers=null;a.callParent();Ext.destroy(a.loadMask,a.navigationModel,a.selModel);a.lockedView.lockingPartner=a.normalView.lockingPartner=null;a.lockedGrid=a.lockedView=a.normalGrid=a.normalView=null;a.loadMask=a.navigationModel=a.selModel=a.headerCt=null;a.ownerGrid=a.storeListeners=null}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable]],[Ext.grid.locking,'View',Ext.grid,'LockingView'],function(){this.borrow(Ext.Component,['up']);this.borrow(Ext.view.AbstractView,['doFirstRefresh','applyFirstRefresh']);this.borrow(Ext.view.Table,['cellSelector','selectedCellCls','selectedItemCls'])});Ext.cmd.derive('Ext.grid.locking.Lockable',Ext.Base,{alternateClassName:'Ext.grid.Lockable',syncRowHeight:!0,headerCounter:0,scrollDelta:40,lockedGridCls:'x-grid-inner-locked',normalGridCls:'x-grid-inner-normal',lockingBodyCls:'x-grid-locking-body',unlockText:'Unlock',lockText:'Lock',bothCfgCopy:['hideHeaders','enableColumnHide','enableColumnMove','enableColumnResize','sortableColumns','multiColumnSort','columnLines','rowLines','variableRowHeight','numFromEdge','trailingBufferZone','leadingBufferZone','scrollToLoadBuffer','syncRowHeight'],normalCfgCopy:['scroll'],lockedCfgCopy:[],determineXTypeToCreate:function(g){var f=this,a,b,d,e,c;if(f.subGridXType){a=f.subGridXType}else {if(!g){return 'gridpanel'}b=this.getXTypes().split('/');d=b.length;e=b[d-1];c=b[d-2];if(c!=='tablepanel'){a=c}else {a=e}}return a},injectLockable:function(){this.focusable=!1;this.lockable=!0;this.hasView=!0;var a=this,q=Ext.getScrollbarSize(),l=q.width,o=a.store=Ext.StoreManager.lookup(a.store),d=a.lockedViewConfig,g=a.normalViewConfig,s=Ext.Object,m,i,b,c,e,n,f,h,j=a.viewConfig,r=j&&j.loadMask,u=r!==undefined?r:a.loadMask,p=a.bufferedRenderer,k=l>0&&Ext.supports.touchScroll!==2,t=a.getInherited().rtl;m=a.constructLockableFeatures();a.features=null;i=a.constructLockablePlugins();a.plugins=i.topPlugins;b={id:a.id+'-locked',$initParent:a,isLocked:!0,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(!0),store:o,reserveScrollbar:k,scrollable:{indicators:{x:!0,y:!1}},scrollerOwner:!1,animate:!1,border:!1,cls:a.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.normalGrid.floatedFromCollapse},features:m.lockedFeatures,plugins:i.lockedPlugins};c={id:a.id+'-normal',$initParent:a,isLocked:!1,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(),store:o,reserveScrollbar:a.reserveScrollbar,scrollerOwner:!1,border:!1,cls:a.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.lockedGrid.floatedFromCollapse},features:m.normalFeatures,plugins:i.normalPlugins};a.addCls('x-grid-locked');Ext.copy(c,a,a.bothCfgCopy,!0);Ext.copy(b,a,a.bothCfgCopy,!0);Ext.copy(c,a,a.normalCfgCopy,!0);Ext.copy(b,a,a.lockedCfgCopy,!0);Ext.apply(c,a.normalGridConfig);Ext.apply(b,a.lockedGridConfig);for(e=0;e>#normalHeaderCt',items:e},j={itemId:'normalHeaderCt',stretchMaxPartner:'^^>>#lockedHeaderCt',items:f},l={locked:i,normal:j},g;if(Ext.isObject(b)){Ext.applyIf(i,b);Ext.applyIf(j,b);g=Ext.apply({},b);delete g.items;Ext.apply(c,g);b=b.items}c.constructing=!0;for(d=0,k=b.length;d0&&f){h.stopEvent();a+=e;d.setScrollY(a);b.normalGrid.getView().setScrollY(a);b.onNormalViewScroll()}}},onLockedViewScroll:function(){var f=this,e=f.lockedGrid.getView(),a=f.normalGrid.getView(),c=e.getScrollY(),g=a.getScrollY(),b,d;if(g!==c){a.setScrollY(c);if(a.bufferedRenderer){d=e.body.dom;b=a.body.dom;b.style.position='absolute';b.style.top=d.style.top}}},onNormalViewScroll:function(){var e=this,b=e.lockedGrid.getView(),c=e.normalGrid.getView(),f=b.getScrollY(),d=c.getScrollY(),a;if(d!==f){b.setScrollY(d);if(c.bufferedRenderer){a=b.body;if(a.dom){a.dom.style.position='absolute';a.translate(null,c.bufferedRenderer.bodyTop)}}}},syncRowHeights:function(){if(!this.destroyed){var f=this,b=f.normalGrid.getView(),a=f.lockedGrid.getView(),d=b.syncRowHeightBegin(),c=a.syncRowHeightBegin(),e;b.syncRowHeightMeasure(d);a.syncRowHeightMeasure(c);b.syncRowHeightFinish(d,c);a.syncRowHeightFinish(c,d);e=b.getScrollY();a.setScrollY(e)}},modifyHeaderCt:function(){var a=this;a.lockedGrid.headerCt.getMenuItems=a.getMenuItems(a.lockedGrid.headerCt.getMenuItems,!0);a.normalGrid.headerCt.getMenuItems=a.getMenuItems(a.normalGrid.headerCt.getMenuItems,!1);a.lockedGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.lockedGrid.headerCt.showMenuBy,a.showMenuBy);a.normalGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.normalGrid.headerCt.showMenuBy,a.showMenuBy)},onUnlockMenuClick:function(){this.unlock()},onLockMenuClick:function(){this.lock()},showMenuBy:function(f,g,c){var d=this.getMenu(),a=d.down('#unlockItem'),b=d.down('#lockItem'),e=a.prev();if(c.lockable===!1){e.hide();a.hide();b.hide()}else {e.show();a.show();b.show();if(!a.initialConfig.disabled){a.setDisabled(c.lockable===!1)}if(!b.initialConfig.disabled){b.setDisabled(!c.isLockable())}}},getMenuItems:function(d,b){var a=this,f=a.unlockText,h=a.lockText,g='x-hmenu-unlock',i='x-hmenu-lock',c=a.onUnlockMenuClick.bind(a),e=a.onLockMenuClick.bind(a);return function(){var a=d.call(this);a.push('-',{itemId:'unlockItem',iconCls:g,text:f,handler:c,disabled:!b});a.push({itemId:'lockItem',iconCls:i,text:h,handler:e,disabled:b});return a}},delaySyncLockedWidth:function(){var a=this,b=a.syncLockedWidthTask;if(!a.view.all.getCount()){return}if(!b){b=a.syncLockedWidthTask=new Ext.util.DelayedTask(a.syncLockedWidth,a)}b.delay(1)},syncLockedWidth:function(){var b=this,c=b.rendered,a=b.lockedGrid,g=a.view,d=b.normalGrid,e=a.getVisibleColumnManager().getColumns().length,f=d.getVisibleColumnManager().getColumns().length,h=b.syncLockedWidthTask;if(h){h.cancel()}Ext.suspendLayouts();if(f){d.show();if(e){if(c&&a.shrinkWrapColumns&&!a.headerCt.forceFit){delete a.flex;a.setWidth(a.headerCt.getTableWidth()+a.gridPanelBorderWidth)}a.addCls(b.lockedGridCls);a.show();if(a.split){b.child('splitter').show();b.addCls('x-grid-locked-split')}}else {if(c){a.getView().clearViewEl(!0)}a.hide();if(a.split){b.child('splitter').hide();b.removeCls('x-grid-locked-split')}}if(Ext.supports.touchScroll!==2&&Ext.Component.pendingLayouts){g.getScrollable().setX(!0)}if(c){b.ignoreMousewheel=g.scrollFlags.y}}else {d.hide();a.flex=1;delete a.width;a.removeCls(b.lockedGridCls);a.show();b.ignoreMousewheel=!0}Ext.resumeLayouts(!0);return [e,f]},onLockedHeaderSortChange:Ext.emptyFn,onNormalHeaderSortChange:Ext.emptyFn,lock:function(a,l,g){var e=this,i=e.normalGrid,b=e.lockedGrid,d=i.view,c=b.view,m=i.headerCt,h,k,j,f;a=a||m.getMenu().activeHeader;j=a.hasFocus;g=g||b.headerCt;k=a.ownerCt;if(!a.isLockable()){return}if(a.flex&&b.shrinkWrapColumns){a.width=a.getWidth();a.flex=null}Ext.suspendLayouts();if(b.hidden){if(!b.componentLayoutCounter){if(c.bufferedRenderer){c.bufferedRenderer.onViewResize(c,0,d.getHeight())}f=d.getScrollY()}b.show()}d.blockRefresh=c.blockRefresh=!0;a.ownerCmp=a.ownerCt;k.remove(a,!1);a.locked=!0;if(Ext.isDefined(l)){g.insert(l,a)}else {g.add(a)}d.blockRefresh=c.blockRefresh=!1;a.ownerCmp=null;h=e.syncLockedWidth();if(h[0]){b.getView().refreshView()}if(h[1]){i.getView().refreshView()}e.fireEvent('lockcolumn',e,a);Ext.resumeLayouts(!0);if(f){c.setScrollY(f);d.setScrollY(f)}if(j){a.focus()}},unlock:function(a,f,g){var b=this,e=b.normalGrid,d=b.lockedGrid,i=e.view,h=d.view,k=d.headerCt,c,j;if(!Ext.isDefined(f)){f=0}a=a||k.getMenu().activeHeader;j=a.hasFocus;g=g||e.headerCt;Ext.suspendLayouts();i.blockRefresh=h.blockRefresh=!0;a.ownerCmp=a.ownerCt;a.ownerCt.remove(a,!1);a.locked=!1;g.insert(f,a);i.blockRefresh=h.blockRefresh=!1;a.ownerCmp=null;c=b.syncLockedWidth();if(c[0]){d.getView().refreshView()}if(c[1]){e.getView().refreshView()}b.fireEvent('unlockcolumn',b,a);Ext.resumeLayouts(!0);if(j){a.focus()}},reconfigureLockable:function(a,f){var d=this,h=d.store,c=d.lockedGrid,e=d.normalGrid,b,g;if(a&&a!==h){a=Ext.data.StoreManager.lookup(a);d.store=a;c.view.blockRefresh=e.view.blockRefresh=!0;c.bindStore(a);b=c.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}e.bindStore(a);b=e.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}d.view.store=a;g=d.view.loadMask;if(g&&g.isLoadMask){g.bindStore(a)}d.view.bindStore(e.view.dataSource,!1,'dataSource');c.view.blockRefresh=e.view.blockRefresh=!1}if(f){c.reconfiguring=e.reconfiguring=!0;c.headerCt.removeAll();e.headerCt.removeAll();f=d.processColumns(f,c);c.headerCt.add(f.locked.items);e.headerCt.add(f.normal.items);c.reconfiguring=e.reconfiguring=!1;d.syncLockedWidth()}d.refreshCounter=c.view.refreshCounter},afterReconfigureLockable:function(){var a=this.lockedGrid.getView();if(this.refreshCounter===a.refreshCounter){this.view.refresh()}},constructLockableFeatures:function(){var b=this.features,a,e,c,d,f=0,g;if(b){if(!Ext.isArray(b)){b=[b]}c=[];d=[];g=b.length;for(;f0){a.onViewResize(b,null,e);if(c&&d.getCount()!==c.length){c.length=0;c.push.apply(c,a.store.getRange(d.startIndex,d.endIndex))}}}},beforeTableLayout:function(b){var a=this.view.body.dom;if(a){b.bodyHeight=a.offsetHeight;b.bodyWidth=a.offsetWidth}},afterTableLayout:function(d){var a=this,b=a.view,c;if(d.bodyHeight&&b.body.dom){delete a.rowHeight;a.refreshSize();c=b.body.dom.offsetHeight;if(c!==d.bodyHeight){a.onViewResize(b,null,b.el.lastBox.height);if(c=a.store.getCount()){a.setBodyTop(0)}else {if(a.bodyTop>a.scrollTop||a.bodyTop+cb){a.position=a.scrollTop=Math.max(b-a.bodyHeight,0);c.setScrollY(a.scrollTop)}if(a.bodyTop>b){c.body.translate(null,a.bodyTop=a.position)}if(c.getScrollable()){a.refreshScroller(c,b)}},refreshScroller:function(b,c){var a=b.getScrollable();if(a){if(a.setElementSize){a.setElementSize()}a.setSize({x:b.headerCt.getTableWidth(),y:c})}},setViewSize:function(c,o){var a=this,h=a.store,g=a.view,d=g.all,j=d.getCount(),e,f,b=a.view.lockingPartner&&a.view.lockingPartner.bufferedRenderer,i=j-c,n,m,l,k;if(b&&!o&&b.view.componentLayoutCounter){if(b.viewSize>c){c=b.viewSize}else {b.setViewSize(c,!0)}}i=j-c;if(i){a.scrollTop=g.getScrollY();a.viewSize=c;if(h.isBufferedStore){h.setViewSize(c)}if(j){k=h.getCount();e=d.startIndex;f=Math.min(e+c-1,k-1);if(e===d.startIndex&&f===d.endIndex){if(i<0){a.handleViewScroll(-1)}}else {if(b){b.disable()}if(i<0){if(k>j){h.getRange(d.endIndex+1,f,{callback:function(b,c){l=g.doAdd(b,c);g.fireEvent('itemadd',b,c,l);a.setBodyTop(a.bodyTop)}})}else {a.refreshView(0)}}else {e=d.endIndex-(i-1);f=d.endIndex;m=d.slice(e,f+1);d.removeRange(e,f,!0);if(g.hasListeners.itemremove){n=h.getRange(e,f);g.fireEvent('itemremove',n,e,m)}a.setBodyTop(a.bodyTop)}if(b){b.enable()}}}}return c},getViewRange:function(){var d=this,c=d.view.all,a=d.store,b=0;if(c.getCount()){b=c.startIndex}else {if(a.isBufferedStore){if(!a.currentPage){a.currentPage=1}b=c.startIndex=(a.currentPage-1)*(a.pageSize||1);a.currentPage=1}}if(a.data.getCount()){return a.getRange(b,b+(d.viewSize||a.defaultViewSize)-1)}else {return []}},onReplace:function(l,d,j,k){var a=this,c=a.view,b=c.all,i,g=b.getCount(),h=d+j.length-1,e=k.length-j.length,f=e*a.rowHeight;if(d>=b.startIndex+a.viewSize){a.refreshSize();return}if(g&&h=a.viewSize){b.moveBlock(e);a.refreshSize();i=b.startIndex;if(e>0){a.doNotMirror=!0;a.handleViewScroll(-1);a.doNotMirror=!1}if(b.startIndex===i){if(b.startIndex){a.setBodyTop(a.bodyTop+=f);c.suspendEvent('scroll');c.scrollBy(0,f);c.resumeEvent('scroll');a.position=a.scrollTop=c.getScrollY()}}else {c.suspendEvent('scroll');c.scrollBy(0,(i-b.startIndex)*a.rowHeight);c.resumeEvent('scroll')}c.refreshSize(b.getCount()!==g);return}if(g&&d>b.endIndex){a.refreshSize();if(e>0){a.onRangeFetched(null,b.startIndex,Math.min(l.getCount(),b.startIndex+a.viewSize)-1,null,!0)}c.refreshSize(b.getCount()!==g);return}if(d0?1:-1;if(Math.abs(c)>=20||b!==a.lastScrollDirection){a.lastScrollDirection=b;a.handleViewScroll(a.lastScrollDirection)}}},onViewScrollEnd:function(){if(this.needsPointerEventsFix){this.view.body.dom.style.pointerEvents=''}},handleViewScroll:function(h){var a=this,d=a.view.all,g=a.store,f=a.viewSize,e=g.getCount()-1,b,c;if(h===-1){if(d.startIndex){if(a.topOfViewCloseToEdge()){b=Math.max(0,a.getLastVisibleRowIndex()+a.trailingBufferZone-f)}}}else {if(d.endIndexa.scrollTop-a.numFromEdge*a.rowHeight}else {return a.getFirstVisibleRowIndex()-a.view.all.startIndexd){a=c-d+1}}}if(a===0&&c===0&&e===0){b.doRefreshView([],0,0)}else {g.getRange(a,c,{callback:b.doRefreshView,scope:b})}},doRefreshView:function(i,h,p,q){var a=this,b=a.view,c=b.all,l=c.startIndex,m=c.endIndex,e,f,n=c.getCount(),o,k=h!==c.startIndex,g,d,j;if(b.refreshCounter){if(b.hasListeners.beforerefresh&&b.fireEvent('beforerefresh',b)===!1){return}b.refreshing=a.refreshing=!0;j=b.saveFocusState();b.clearViewEl(!0);b.refreshCounter++;if(i.length){o=b.doAdd(i,h);if(k){e=c.item(l,!0);f=c.item(m,!0);if(e){d=-e.offsetTop}else {if(f){d=c.last(!0).offsetTop-f.offsetTop}}if(d){a.bodyTop=Math.max(a.bodyTop+d,0);a.scrollTop=a.bodyTop?a.scrollTop+d:0}else {a.bodyTop=g=h*a.rowHeight;a.scrollTop=Math.max(g-a.rowHeight*(gc.endIndex){r=c.startIndex-e;b.clearViewEl(!0);g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g);for(o=0;oc.endIndex||jp){d=a.scrollTop-a.rowHeight*p}}b.clearViewEl(!0);a.teleported=!1}if(!c.getCount()){g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g)}else {if(j>c.endIndex){l=Math.max(e-c.startIndex,0);if(k){i=c.item(c.startIndex+l,!0).offsetTop}g=c.scroll(Ext.Array.slice(h,c.endIndex+1-e),1,l);if(k){d=a.bodyTop+i}else {d=m}}else {l=Math.max(c.endIndex-j,0);u=c.startIndex;g=c.scroll(Ext.Array.slice(h,0,c.startIndex-e),-1,l);if(k){d=a.bodyTop-c.item(u,!0).offsetTop;if(!c.startIndex){if(d){b.setScrollY(a.position=a.scrollTop-=d);d=0}}else {if(d<0){i=c.startIndex*a.rowHeight;b.setScrollY(a.position=a.scrollTop+=i);d=a.bodyTop+i}}}else {d=m}}}a.position=a.scrollTop}if(t&&!v.contains(q)){n=b.actionableMode?b.actionPosition:b.lastFocused;if(n&&n.column){b.onFocusLeave({});n.column.focus()}}d=Math.max(Math.floor(d),0);if(b.positionBody){a.setBodyTop(d)}if(g&&f&&!f.disabled){f.scrollTop=f.position=a.scrollTop;if(f.view.ownerCt.isVisible()){s=f.onRangeFetched(null,e,j,x,!0);if(b.ownerGrid.syncRowHeight||f.variableRowHeight!==k){a.syncRowHeights(g,s);a.bodyHeight=b.body.dom.offsetHeight}}if(f.bodyTop!==d){f.setBodyTop(d)}f.view.setScrollY(a.scrollTop)}return g},syncRowHeights:function(b,e){var d=this,c=0,f=1,i=[],h=[],j=Ext.grid.locking.RowSynchronizer,a,g;if(b&&e){c=b.length;f=e.length}if(c!==f){b=d.view.all.slice();e=d.view.lockingPartner.all.slice();c=f=b.length}for(a=0;ae||i+a.bodyHeightc||j+a.bodyHeightc){return a.getLastVisibleRowIndex(f,b-1,e,c)}k=i+l[b].offsetHeight;if(k>=c){return b}else {if(b!==d){return a.getLastVisibleRowIndex(b+1,d,e,c)}}}return a.getFirstVisibleRowIndex()+Math.ceil(h/a.rowHeight)},getScrollHeight:function(){var a=this,j=a.view,d=j.all,i=a.store,c=i.getCount(),g=d.getCount(),h,f,e,b;if(!c){return 0}if(!a.hasOwnProperty('rowHeight')){if(g){if(a.variableRowHeight){a.rowHeight=Math.floor(a.bodyHeight/g)}else {h=d.first();f=h.getHeight();if(Ext.isIE8){e=h.getBorderWidth('b');if(e>0){f-=e}}a.rowHeight=f}}else {delete a.rowHeight}}if(a.variableRowHeight){if(d.endIndex===c-1){b=a.bodyTop+a.bodyHeight-1}else {b=Math.floor((c-g)*a.rowHeight)+a.bodyHeight;b+=a.bodyTop-d.startIndex*a.rowHeight}}else {b=Math.floor(c*a.rowHeight)}return a.scrollHeight=b},attemptLoad:function(b,c){var a=this;if(a.scrollToLoadBuffer){if(!a.loadTask){a.loadTask=new Ext.util.DelayedTask(a.doAttemptLoad,a,[])}a.loadTask.delay(a.scrollToLoadBuffer,a.doAttemptLoad,a,[b,c])}else {a.doAttemptLoad(b,c)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(b,c){var a=this;if(!a.destroyed){a.store.getRange(b,c,{loadId:++a.loadId,callback:function(c,d,e,b){if(b.loadId===a.loadId){a.onRangeFetched(c,d,e,b)}},fireEvent:!1})}},destroy:function(){var a=this,b=a.view;a.cancelLoad();if(b&&b.el){b.un('scroll',a.onViewScroll,a)}if(a.store){a.unbindStore()}a.viewListeners=a.gridListeners=a.view=a.grid=Ext.destroy(a.viewListeners,a.stretcher,a.gridListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,['plugin.bufferedrenderer'],0,[Ext.grid.plugin,'BufferedRenderer'],function(a){if(Ext.supports.Touch){a.prototype.leadingBufferZone=a.prototype.trailingBufferZone=2;a.prototype.numFromEdge=1}});Ext.cmd.derive('Ext.util.Queue',Ext.Base,{constructor:function(){this.clear()},add:function(b){var a=this,c=a.getKey(b);if(!a.map[c]){++a.length;a.items.push(b);a.map[c]=b}return b},clear:function(){var a=this,b=a.items;a.items=[];a.map={};a.length=0;return b},contains:function(b){var a=this.getKey(b);return this.map.hasOwnProperty(a)},getCount:function(){return this.length},getKey:function(a){return a.id},remove:function(b){var a=this,e=a.getKey(b),d=a.items,c;if(a.map[e]){c=Ext.Array.indexOf(d,b);Ext.Array.erase(d,c,1);delete a.map[e];--a.length}return b}},1,0,0,0,0,0,[Ext.util,'Queue'],0);Ext.cmd.derive('Ext.layout.ContextItem',Ext.Base,{heightModel:null,widthModel:null,sizeModel:null,optOut:!1,ownerSizePolicy:null,boxChildren:null,boxParent:null,children:[],dirty:null,dirtyCount:0,hasRawContent:!0,isContextItem:!0,isTopLevel:!1,consumersContentHeight:0,consumersContentWidth:0,consumersContainerHeight:0,consumersContainerWidth:0,consumersHeight:0,consumersWidth:0,ownerCtContext:null,remainingChildDimensions:0,props:null,state:null,wrapsComponent:!1,constructor:function(s){var a=this,o=Ext.layout.SizeModel.sizeModels,l=o.configured,g=o.shrinkWrap,r,c,f,d,k,i,b,p,m,q,n,h,e,j;Ext.apply(a,s);b=a.target;r=a.el;a.id=b.id;a.flushedProps={};a.props=k={};a.styles={};if(!b.isComponent){c=r.lastBox}else {a.wrapsComponent=!0;a.framing=b.frameSize||null;a.isComponentChild=b.ownerLayout&&b.ownerLayout.isComponentLayout;c=b.lastBox;f=b.ownerCt;if(f&&(d=f.el&&a.context.items[f.el.id])){a.ownerCtContext=d}a.sizeModel=i=b.getSizeModel(d&&d.widthModel.pairsByHeightOrdinal[d.heightModel.ordinal]);a.widthModel=h=i.width;a.heightModel=e=i.height;if(c&&c.invalid===!1){q=b.width===(p=c.width);n=b.height===(m=c.height);if(h===g&&e===g){j=!0}else {if(h===l&&q){j=e===g||e===l&&n}}if(j){a.optOut=!0;k.width=p;k.height=m}}}a.lastBox=c},init:function(r,i){var a=this,c=a.props,e=a.dirty,b=a.ownerCtContext,h=a.target.ownerLayout,j=!a.state,s=r||j,n,l,t,q,k,d,o=a.heightModel,p=a.widthModel,f,g,m=0;a.dirty=a.invalid=!1;a.props={};a.remainingChildDimensions=0;if(a.boxChildren){a.boxChildren.length=0}if(!j){a.clearAllBlocks('blocks');a.clearAllBlocks('domBlocks')}if(!a.wrapsComponent){return s}d=a.target;a.state={};if(j){if(d.beforeLayout&&d.beforeLayout!==Ext.emptyFn){d.beforeLayout()}if(!b&&(q=d.ownerCt)){b=a.context.items[q.el.id]}if(b){a.ownerCtContext=b;a.isBoxParent=h&&h.isItemBoxParent(a)}else {a.isTopLevel=!0}a.frameBodyContext=a.getEl('frameBody')}else {b=a.ownerCtContext;a.isTopLevel=!b;n=a.children;for(l=0,t=n.length;l0);if(r){a.widthModel=a.heightModel=null;k=d.getSizeModel(b&&b.widthModel.pairsByHeightOrdinal[b.heightModel.ordinal]);if(j){a.sizeModel=k}a.widthModel=k.width;a.heightModel=k.height;if(b&&!a.isComponentChild){if(h.needsItemSize||!d.liquidLayout){b.remainingChildDimensions+=2}else {if(a.widthModel.calculated){++b.remainingChildDimensions}if(a.heightModel.calculated){++b.remainingChildDimensions}}}}else {if(c){a.recoverProp('x',c,e);a.recoverProp('y',c,e);if(a.widthModel.calculated){a.recoverProp('width',c,e)}else {if('width' in c){++m}}if(a.heightModel.calculated){a.recoverProp('height',c,e)}else {if('height' in c){++m}}if(b&&!a.isComponentChild){b.remainingChildDimensions+=m}}}if(c&&h&&h.manageMargins){a.recoverProp('margin-top',c,e);a.recoverProp('margin-right',c,e);a.recoverProp('margin-bottom',c,e);a.recoverProp('margin-left',c,e)}if(i){f=i.heightModel;g=i.widthModel;if(g&&f&&p&&o){if(p.shrinkWrap&&o.shrinkWrap){if(g.constrainedMax&&f.constrainedMin){f=null}}}if(g){a.widthModel=g}if(f){a.heightModel=f}if(i.state){Ext.apply(a.state,i.state)}}return s},initContinue:function(f){var b=this,a=b.ownerCtContext,g=b.target,c=b.widthModel,e=g.getInherited(),d;if(c.fixed){e.inShrinkWrapTable=!1}else {delete e.inShrinkWrapTable}if(f){if(a&&c.shrinkWrap){d=a.isBoxParent?a:a.boxParent;if(d){d.addBoxChild(b)}}else {if(c.natural){b.boxParent=a}}}return f},initDone:function(d){var a=this,b=a.props,c=a.state;if(a.remainingChildDimensions===0){b.containerChildrenSizeDone=!0}if(d){b.containerLayoutDone=!0}if(a.boxChildren&&a.boxChildren.length&&a.widthModel.shrinkWrap){a.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var a=this,b=a.target,c=a.ownerCtContext;if(c&&c.isTopLevel){a.animatePolicy=b.ownerLayout.getAnimatePolicy(a)}else {if(!c&&b.isCollapsingOrExpanding&&b.animCollapse){a.animatePolicy=b.componentLayout.getAnimatePolicy(a)}}if(a.animatePolicy){a.context.queueAnimation(a)}},addBlock:function(f,a,e){var b=this,d=b[f]||(b[f]={}),c=d[e]||(d[e]={});if(!c[a.id]){c[a.id]=a;++a.blockCount;++b.context.blockCount}},addBoxChild:function(a){var d=this,b,c=a.widthModel;a.boxParent=this;a.measuresBox=c.shrinkWrap?a.hasRawContent:c.natural;if(a.measuresBox){b=d.boxChildren;if(b){b.push(a)}else {d.boxChildren=[a]}}},addPositionStyles:function(b,c){var d=c.x,e=c.y,a=0;if(d!==undefined){b.left=d+'px';++a}if(e!==undefined){b.top=e+'px';++a}return a},addTrigger:function(c,e){var b=this,h=e?'domTriggers':'triggers',f=b[h]||(b[h]={}),g=b.context,a=g.currentLayout,d=f[c]||(f[c]={});if(!d[a.id]){d[a.id]=a;++a.triggerCount;d=g.triggers[e?'dom':'data'];(d[a.id]||(d[a.id]=[])).push({item:this,prop:c});if(b.props[c]!==undefined){if(!e||!(b.dirty&&c in b.dirty)){++a.firedTriggers}}}},boxChildMeasured:function(){var a=this,b=a.state,c=b.boxesMeasured=(b.boxesMeasured||0)+1;if(c===a.boxChildren.length){b.clearBoxWidth=1;++a.context.progressCount;a.markDirty()}},borderNames:['border-top-width','border-right-width','border-bottom-width','border-left-width'],marginNames:['margin-top','margin-right','margin-bottom','margin-left'],paddingNames:['padding-top','padding-right','padding-bottom','padding-left'],trblNames:['top','right','bottom','left'],cacheMissHandlers:{borderInfo:function(b){var a=b.getStyles(b.borderNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},marginInfo:function(b){var a=b.getStyles(b.marginNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},paddingInfo:function(b){var c=b.frameBodyContext||b,a=c.getStyles(b.paddingNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(c){var a=this[c],b;if(a){for(b in a){this.clearBlocks(c,b)}}},clearBlocks:function(g,f){var c=this[g],b=c&&c[f],d,a,e;if(b){delete c[f];d=this.context;for(e in b){a=b[e];--d.blockCount;if(!--a.blockCount&&!a.pending&&!a.done){d.queueLayout(a)}}}},block:function(b,a){this.addBlock('blocks',b,a)},domBlock:function(b,a){this.addBlock('domBlocks',b,a)},fireTriggers:function(g,e){var c=this[g],b=c&&c[e],f=this.context,a,d;if(b){for(d in b){a=b[d];++a.firedTriggers;if(!a.done&&!a.blockCount&&!a.pending){f.queueLayout(a)}}}},flush:function(){var a=this,d=a.dirty,b=a.state,c=a.el;a.dirtyCount=0;if('attributes' in a){c.set(a.attributes);delete a.attributes}if('innerHTML' in a){c.innerHTML=a.innerHTML;delete a.innerHTML}if(b&&b.clearBoxWidth){b.clearBoxWidth=0;a.el.setStyle('width',null);if(!--b.blocks){a.context.queueItemLayouts(a)}}if(d){delete a.dirty;a.writeProps(d,!0)}},flushAnimations:function(){var b=this,k=b.previousSize,a,h,l,f,d,g,e,m,c,j,i;if(k){a=b.target;h=a.getAnimationProps();l=h.duration;f=Ext.Object.getKeys(b.animatePolicy);d=Ext.apply({},{from:{},to:{},duration:l||Ext.fx.Anim.prototype.duration},h);for(g=0,e=0,m=f.length;e0},runLayout:function(a){var b=this,c=b.getCmp(a.owner);a.pending=!1;if(c.state.blocks){return}a.done=!0;++a.calcCount;++b.calcCount;a.calculate(c);if(a.done){b.layoutDone(a);if(a.completeLayout){b.queueCompletion(a)}if(a.finalizeLayout){b.queueFinalize(a)}}else {if(!a.pending&&!a.invalid&&!(a.blockCount+a.triggerCount-a.firedTriggers)){b.queueLayout(a)}}},setItemSize:function(a,g,f){var b=a,c=1,e,d;if(a.isComposite){b=a.elements;c=b.length;a=b[0]}else {if(!a.dom&&!a.el){c=b.length;a=b[0]}}for(d=0;d0){g.insert(0,c)}}}}},getItemsRenderTree:function(a){this.beforeRenderItems(a);return Ext.layout.container.VBox.prototype.getItemsRenderTree.apply(this,arguments)},renderItems:function(a,b){this.beforeRenderItems(a);Ext.layout.container.VBox.prototype.renderItems.apply(this,arguments)},configureItem:function(a){Ext.layout.container.VBox.prototype.configureItem.apply(this,arguments);a.ignoreHeaderBorderManagement=!0;a.animCollapse=!1;if(this.fill){a.flex=1}},beginLayout:function(a){Ext.layout.container.VBox.prototype.beginLayout.apply(this,arguments);this.innerCt.dom.setAttribute('role','tablist');this.innerCt.dom.setAttribute('aria-multiselectable',!0);this.updatePanelClasses(a)},updatePanelClasses:function(g){var e=g.visibleItems,f=e.length,d=!0,b,c,a;for(b=0;b1){a.processing=!0;b.collapse();a.processing=!1}},onRemove:function(c,d){var b=this,a;Ext.layout.container.VBox.prototype.onRemove.apply(this,arguments);if(!b.owner.destroying&&!b.multi&&!c.collapsed){a=b.owner.items.first();if(a){a.expand()}}},getExpanded:function(f){var d=this.owner.items.items,g=d.length,c=0,e=[],b,a;for(;ca){a=b.weight}}},this);return a},getSplitterTarget:function(b){var a=b.collapseTarget;if(a&&a.collapsed){return a.placeholder||a}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},insertSplitter:function(a,f,e,d){var c=a.region,b=Ext.apply({xtype:'bordersplitter',collapseTarget:a,id:a.id+'-splitter',hidden:e,canResize:a.splitterResize!==!1,splitterFor:a,synthetic:!0},d),g=f+(c==='south'||c==='east'?0:1);if(a.collapseMode==='mini'){b.collapsedCls=a.collapsedCls}a.splitter=this.owner.add(g,b)},getMoveAfterIndex:function(b){var a=Ext.layout.container.Container.prototype.getMoveAfterIndex.apply(this,arguments);if(b.splitter){a++}return a},moveItemBefore:function(c,a){var b;if(a&&a.splitter){b=a.region;if(b==='south'||b==='east'){a=a.splitter}}return Ext.layout.container.Container.prototype.moveItemBefore.call(this,c,a)},onAdd:function(a,i){var b=this,d=a.placeholderFor,f=a.region,e,c,g,h;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(f){Ext.apply(a,b.regionFlags[f]);if(b.owner.isViewport){a.isViewportBorderChild=!0}if(a.initBorderRegion){a.initBorderRegion()}e=f==='center';if(e){b.centerRegion=a}else {c=a.split;g=!!a.hidden;if(typeof c==='object'){h=c;c=!0}if((a.isHorz||a.isVert)&&(c||a.collapseMode==='mini')){b.insertSplitter(a,i,g||!c,h)}}if(!e&&!a.hasOwnProperty('collapseMode')){a.collapseMode=b.panelCollapseMode}if(!a.hasOwnProperty('animCollapse')){if(a.collapseMode!=='placeholder'){a.animCollapse=!1}else {a.animCollapse=b.panelCollapseAnimate}}}else {if(d){Ext.apply(a,b.regionFlags[d.region]);a.region=d.region;a.weight=d.weight}}},onDestroy:function(){this.centerRegion=null;Ext.layout.container.Container.prototype.onDestroy.call(this)},onRemove:function(a,f){var d=this,h=a.region,e=a.splitter,c=d.owner,g=c.destroying,b;if(h){if(a.isCenter){d.centerRegion=null}delete a.isCenter;delete a.isHorz;delete a.isVert;if(e&&!c.destroying){c.doRemove(e,!0)}delete a.splitter}Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(!g&&!f&&a.rendered){b=a.getEl();if(b){b.setStyle('top','');b.setStyle(d.horzPositionProp,'')}}},regionMeta:{center:{splitterDelta:0},north:{splitterDelta:1},south:{splitterDelta:-1},west:{splitterDelta:1},east:{splitterDelta:-1}},regionFlags:{center:{isCenter:!0,isHorz:!1,isVert:!1},north:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'top'},south:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'bottom'},west:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'left'},east:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'right'}},setupSplitterNeighbors:function(l){var i={},m=l.length,k=this.touchedRegions,h,b,j,g,d,a,f,e,c;for(h=0;hm){a=m}}if(a-d<2){return null}c=new Ext.util.Region(v,t,s,u);i.constraintAdjusters[i.getCollapseDirection()](c,d,a,e);i.dragInfo={minRange:d,maxRange:a,targetSize:q};return c},constraintAdjusters:{left:function(a,c,b,d){a[0]=a.x=a.left=a.right+c;a.right+=b+d.getWidth()},top:function(a,c,b,d){a[1]=a.y=a.top=a.bottom+c;a.bottom+=b+d.getHeight()},bottom:function(a,c,b,d){a.bottom=a.top-c;a.top-=b+d.getHeight()},right:function(a,c,b,d){a.right=a.left-c;a[0]=a.x=a.left=a.x-b+d.getWidth()}},onBeforeStart:function(h){var c=this,f=c.splitter,d=f.collapseTarget,e=f.neighbors,g=e.length,a,b;if(d.collapsed){return !1}for(a=0;ad){a.minWidth=a.el.getWidth()*c}else {a.minHeight=a.el.getHeight()*d}}if(a.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)},a.throttle);a.resize=function(d,c,b){if(b){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)}else {e.apply(null,arguments)}}}},onBeforeStart:function(a){this.startBox=this.target.getBox()},getProxy:function(){var a=this;if(!a.dynamic&&!a.proxy){a.proxy=a.createProxy(a.target||a.el);a.hideProxy=!0}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(a){var b,c=this.proxyCls;if(a.isComponent){b=a.getProxy().addCls(c)}else {b=a.createProxy({tag:'div',role:'presentation',cls:c,id:a.id+'-rzproxy'},Ext.getBody())}b.removeCls('x-proxy-el');return b},onStart:function(a){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(c,b){var a=Ext.fly(b.parentNode);Ext.dd.DragTracker.prototype.onMouseDown.apply(this,arguments);if(a&&a.shim){a.maskIframes()}},onMouseUp:function(b){var a=Ext.fly(this.dragTarget.parentNode);Ext.dd.DragTracker.prototype.onMouseUp.apply(this,arguments);if(a&&a.shim){a.unmaskIframes()}},onDrag:function(a){if(this.dynamic||this.proxy){this.updateDimensions(a)}},updateDimensions:function(s,r){var c=this,h=c.activeResizeHandle.region,d=c.getOffset(c.constrainTo?'dragTarget':null),b=c.startBox,n,f=0,e=0,k,j,l=0,m=0,q,i,g,a,o,p;h=c.convertRegionName(h);switch(h){case 'south':e=d[1];g=2;break;case 'north':e=-d[1];m=-e;g=2;break;case 'east':f=d[0];g=1;break;case 'west':f=-d[0];l=-f;g=1;break;case 'northeast':e=-d[1];m=-e;f=d[0];i=[b.x,b.y+b.height];g=3;break;case 'southeast':e=d[1];f=d[0];i=[b.x,b.y];g=3;break;case 'southwest':f=-d[0];l=-f;e=d[1];i=[b.x+b.width,b.y];g=3;break;case 'northwest':e=-d[1];m=-e;f=-d[0];l=-f;i=[b.x+b.width,b.y+b.height];g=3;break;}a={width:b.width+f,height:b.height+e,x:b.x+l,y:b.y+m};k=Ext.Number.snap(a.width,c.widthIncrement);j=Ext.Number.snap(a.height,c.heightIncrement);if(k!==a.width||j!==a.height){switch(h){case 'northeast':a.y-=j-a.height;break;case 'north':a.y-=j-a.height;break;case 'southwest':a.x-=k-a.width;break;case 'west':a.x-=k-a.width;break;case 'northwest':a.x-=k-a.width;a.y-=j-a.height;}a.width=k;a.height=j}if(a.widthc.maxWidth){a.width=Ext.Number.constrain(a.width,c.minWidth,c.maxWidth);if(l){a.x=b.x+(b.width-a.width)}}else {c.lastX=a.x}if(a.heightc.maxHeight){a.height=Ext.Number.constrain(a.height,c.minHeight,c.maxHeight);if(m){a.y=b.y+(b.height-a.height)}}else {c.lastY=a.y}if(c.preserveRatio||s.shiftKey){n=c.startBox.width/c.startBox.height;o=Math.min(Math.max(c.minHeight,a.width/n),c.maxHeight);p=Math.min(Math.max(c.minWidth,a.height*n),c.maxWidth);if(g===1){a.height=o}else {if(g===2){a.width=p}else {q=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(q>n){a.height=o}else {a.width=p}if(h==='northeast'){a.y=b.y-(a.height-b.height)}else {if(h==='northwest'){a.y=b.y-(a.height-b.height);a.x=b.x-(a.width-b.width)}else {if(h==='southwest'){a.x=b.x-(a.width-b.width)}}}}}}c.setPosition=a.x!==c.startBox.x||a.y!==c.startBox.y;c.resize(a,r)},resize:function(b,e){var a=this,c,d=a.setPosition;if(a.dynamic||!a.dynamic&&e){if(d){a.target.setBox(b)}else {a.target.setSize(b.width,b.height)}}if(!e){c=a.getProxy();if(c&&c!==a.target){if(d||a.hideProxy){c.setBox(b)}else {c.setSize(b.width,b.height)}}}},onEnd:function(a){this.updateDimensions(a,!0);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,'ResizeTracker'],0);Ext.cmd.derive('Ext.resizer.Resizer',Ext.Base,{alternateClassName:'Ext.Resizable',handleCls:'x-resizable-handle',overCls:'x-resizable-handle-over',pinnedCls:'x-resizable-pinned',wrapCls:'x-resizable-wrap',wrappedCls:'x-resizable-wrapped',delimiterRe:/(?:\s*[,;]\s*)|\s+/,dynamic:!0,handles:'s e se',height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:!1,preserveRatio:!1,transparent:!1,possiblePositions:{n:'north',s:'south',e:'east',w:'west',se:'southeast',sw:'southwest',nw:'northwest',ne:'northeast'},ariaRole:'presentation',constructor:function(e){var a=this,d=a.handles,q=Ext.dom.Element.unselectableCls,h=[],b,k,i,m,p,c,f,n,l,g,o,j;if(Ext.isString(e)||Ext.isElement(e)||e.dom){b=e;e=arguments[1]||{};e.target=b}a.mixins.observable.constructor.call(a,e);b=a.target;if(b){if(b.isComponent){b.addClsWithUI('resizable');if(b.minWidth){a.minWidth=b.minWidth}if(b.minHeight){a.minHeight=b.minHeight}if(b.maxWidth){a.maxWidth=b.maxWidth}if(b.maxHeight){a.maxHeight=b.maxHeight}if(b.floating){if(!a.hasOwnProperty('handles')){a.handles='n ne e se s sw w nw'}}a.el=b.getEl()}else {b=a.el=a.target=Ext.get(b)}}else {b=a.target=a.el=Ext.get(a.el)}a.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(a.width)){a.width=Ext.Number.constrain(a.width,a.minWidth,a.maxWidth)}if(Ext.isNumber(a.height)){a.height=Ext.Number.constrain(a.height,a.minHeight,a.maxHeight)}if(a.width!==null||a.height!==null){a.target.setSize(a.width,a.height)}m=a.el.dom.tagName.toUpperCase();if(m==='TEXTAREA'||m==='IMG'||m==='TABLE'){a.originalTarget=a.target;g=b.isComponent?b.getEl():b;a.el.addCls(a.wrappedCls);a.target=a.el=a.el.wrap({role:'presentation',cls:a.wrapCls,id:a.el.id+'-rzwrap',style:g.getStyle(['margin-top','margin-bottom'])});o=g.getPositioning();a.el.setPositioning(o);g.clearPositioning();l=g.getBox();if(o.position!=='absolute'){l.x=0;l.y=0}a.el.setBox(l);g.setStyle('position','absolute');a.isTargetWrapped=!0}a.el.position();if(a.pinned){a.el.addCls(a.pinnedCls)}a.resizeTracker=new Ext.resizer.ResizeTracker({disabled:a.disabled,target:b,el:a.el,constrainTo:a.constrainTo,handleCls:a.handleCls,overCls:a.overCls,throttle:a.throttle,proxy:a.originalTarget?a.el:null,dynamic:a.originalTarget?!0:a.dynamic,originalTarget:a.originalTarget,delegate:'.'+a.handleCls,preserveRatio:a.preserveRatio,heightIncrement:a.heightIncrement,widthIncrement:a.widthIncrement,minHeight:a.minHeight,maxHeight:a.maxHeight,minWidth:a.minWidth,maxWidth:a.maxWidth});a.resizeTracker.on({mousedown:a.onBeforeResize,drag:a.onResize,dragend:a.onResizeEnd,scope:a});if(a.handles==='all'){a.handles='n s e w ne nw se sw'}d=a.handles=a.handles.split(a.delimiterRe);i=a.possiblePositions;p=d.length;k=a.handleCls+' '+a.handleCls+'-{0}';if(a.target.isComponent){j=a.target.baseCls;k+=' '+j+'-handle '+j+'-handle-{0}';if(Ext.supports.CSS3BorderRadius){k+=' '+j+'-handle-{0}-br'}}for(c=0;c')}}Ext.DomHelper.append(a.el,h.join(''));h.length=0;for(c=0;c-1){this.doSelect(a.record,!1,b)}},onCellDeselect:function(a,b){if(a&&a.rowIdx!==undefined){this.doDeselect(a.record,b)}},onSelectChange:function(g,f,e,h){var b=this,a,c,d;if(f){a=b.nextSelection;c='select'}else {a=b.selection;c='deselect'}d=a.view||b.primaryView;if((e||b.fireEvent('before'+c,b,g,a.rowIdx,a.colIdx))!==!1&&h()!==!1){if(f){d.onCellSelect(a)}else {d.onCellDeselect(a);delete b.selection}if(!e){b.fireEvent(c,b,g,a.rowIdx,a.colIdx)}}},refresh:function(){var b=this.getPosition(),a;if(b&&(a=this.store.indexOf(this.selected.last()))!==-1){b.rowIdx=a}},onColumnMove:function(b,d,c,e){var a=b.up('tablepanel');if(a){this.onViewRefresh(a.view)}},onUpdate:function(c){var a=this,b;if(a.isSelected(c)){b=a.selecting?a.nextSelection:a.selection;a.view.onCellSelect(b)}},onViewRefresh:function(d){var f=this,b=f.getPosition(),g,c=d.headerCt,e,a;if(b&&b.view===d){e=b.record;a=b.column;if(!a.isDescendantOf(c)){a=c.queryById(a.id)||c.down('[text="'+a.text+'"]')||c.down('[dataIndex="'+a.dataIndex+'"]')}if(b.record){if(a&&d.store.indexOfId(e.getId())!==-1){g=(new Ext.grid.CellContext(d)).setPosition({row:e,column:a});f.setPosition(g)}}else {f.selection=null}}},selectByPosition:function(b,a){this.setPosition(b,a)}},0,0,0,0,['selection.cellmodel'],0,[Ext.selection,'CellModel'],0);Ext.cmd.derive('Ext.selection.RowModel',Ext.selection.DataViewModel,{enableKeyNav:!0,isRowModel:!0,deselectOnContainerClick:!1,onUpdate:function(b){var d=this,a=d.view,c;if(a&&d.isSelected(b)){c=a.indexOf(b);a.onRowSelect(c);if(b===d.lastFocused){a.onRowFocus(c,!0)}}},onSelectChange:function(c,g,e,j){var a=this,i=a.views||[a.view],k=i.length,b=a.store.indexOf(c),h=g?'select':'deselect',f,d;if((e||a.fireEvent('before'+h,a,c,b))!==!1&&j()!==!1){for(f=0;f '},selectByPosition:function(a,b){if(!a.isCellContext){a=(new Ext.grid.CellContext(this.view)).setPosition(a.row,a.column)}if(!this.checkOnly||a.column===this.column){Ext.selection.RowModel.prototype.selectByPosition.call(this,a,b)}},onSelectChange:function(){Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(!this.suspendChange){this.updateHeaderState()}},onStoreLoad:function(){Ext.selection.RowModel.prototype.onStoreLoad.apply(this,arguments);this.updateHeaderState()},onStoreAdd:function(){Ext.selection.RowModel.prototype.onStoreAdd.apply(this,arguments);this.updateHeaderState()},onStoreRemove:function(){Ext.selection.RowModel.prototype.onStoreRemove.apply(this,arguments);this.updateHeaderState()},onStoreRefresh:function(){Ext.selection.RowModel.prototype.onStoreRefresh.apply(this,arguments);this.updateHeaderState()},maybeFireSelectionChange:function(a){if(a&&!this.suspendChange){this.updateHeaderState()}Ext.selection.RowModel.prototype.maybeFireSelectionChange.apply(this,arguments)},resumeChanges:function(){Ext.selection.RowModel.prototype.resumeChanges.call(this);if(!this.suspendChange){this.updateHeaderState()}},updateHeaderState:function(){var a=this,e=a.store,g=e.getCount(),h=a.views,c=!1,f=0,d,i,b;if(!e.isBufferedStore&&g>0){d=a.selected;c=!0;for(b=0,i=d.getCount();b style="{bodyStyle}">{%this.renderContainer(out,values)%}',_reverseDockNames:{left:'right',right:'left'},_layoutAlign:{top:'end',right:'begin',bottom:'begin',left:'end'},initComponent:function(){var a=this,b=a.initialConfig.layout,d=b&&b.align,c=b&&b.overflowHandler;if(a.plain){a.addCls(a.baseCls+'-plain')}Ext.panel.Bar.prototype.initComponent.call(this);a.setLayout({align:d||(a.getTabStretchMax()?'stretchmax':a._layoutAlign[a.dock]),overflowHandler:c||'scroller'});a.on({click:a.onClick,element:'el',scope:a})},ensureTabVisible:function(a){var b=this,d=b.tabPanel,c=b.layout.overflowHandler;if(b.rendered&&c&&b.tooNarrow&&c.scrollToItem){if(a||a===0){if(!a.isTab){if(Ext.isNumber(a)){a=this.items.getAt(a)}else {if(a.isComponent&&d&&d.items.contains(a)){a=a.tab}}}}if(!a){a=b.activeTab}if(a){c.scrollToItem(a)}}},initRenderData:function(){var a=this;return Ext.apply(Ext.panel.Bar.prototype.initRenderData.call(this),{bodyCls:a.bodyCls,baseBodyCls:a._baseBodyCls,bodyTargetCls:a.bodyTargetCls,stripCls:a._stripCls,dock:a.dock})},setDock:function(f){var b=this,a=b.items,d=b.ownerCt,e,c,g;a=a&&a.items;if(a){for(c=0,g=a.length;c1){if(a&&a!==b&&!a.disabled){c=a}else {c=b.next('tab[disabled=false]')||b.prev('tab[disabled=false]')}}return c||d.activeTab},setActiveTab:function(b,c){var a=this;if(!b.disabled&&b!==a.activeTab){if(a.activeTab){if(a.activeTab.destroyed){a.previousTab=null}else {a.previousTab=a.activeTab;a.activeTab.deactivate();a.deactivateFocusable(a.activeTab)}}b.activate();a.activateFocusable(b);a.activeTab=b;a.needsScroll=!0;if(!c){a.fireEvent('change',a,b,b.card);a.updateLayout()}}},privates:{adjustTabPositions:function(){var g=this,f=g.items.items,h=f.length,a,b,e,c,d;if(!Ext.isIE8){d=g._getTabAdjustProp();while(h--){a=f[h];e=a.el;b=a.lastBox;c=a.isTab?a.getActualRotation():0;if(c===1&&a.isVisible()){e.setStyle(d,b.x+b.width+'px')}else {if(c===2&&a.isVisible()){e.setStyle(d,b.x-b.height+'px')}}}}},applyTargetCls:function(a){this.bodyTargetCls=a},_getTabAdjustProp:function(){return 'left'},getTargetEl:function(){return this.body||this.frameBody||this.el},onClick:function(c,g){var f=this,e,a,b,d;if(c.getTarget('.x-box-scroller')){return}if(Ext.isIE8&&f.vertical){d=f.getTabInfoFromPoint(c.getXY());a=d.tab;b=d.close}else {e=c.getTarget('.'+Ext.tab.Tab.prototype.baseCls);a=e&&Ext.getCmp(e.id);b=a&&a.closeEl&&g===a.closeEl.dom}if(b){c.preventDefault()}if(a&&a.isDisabled&&!a.isDisabled()){a.beforeClick(b);if(a.closable&&b){a.onCloseClick()}else {f.doActivateTab(a)}}},doActivateTab:function(a){var b=this.tabPanel;if(b){if(!a.disabled){b.setActiveTab(a.card)}}else {this.setActiveTab(a)}},onFocusableContainerFocus:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocus.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},onFocusableContainerFocusEnter:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocusEnter.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},focusChild:function(d,c){var b=this,e=b.mixins.focusablecontainer,a;a=e.focusChild.call(b,d,c);if(b.activateOnFocus&&a&&a.isTab){b.doActivateTab(a)}}}},0,['tabbar'],['component','box','container','tabbar'],{'component':!0,'box':!0,'container':!0,'tabbar':!0},['widget.tabbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.tab,'Bar'],0);Ext.cmd.derive('Ext.tab.Panel',Ext.panel.Panel,{alternateClassName:['Ext.TabPanel'],config:{tabBar:undefined,tabPosition:'top',tabRotation:'default',tabStretchMax:!0},removePanelHeader:!0,plain:!1,itemCls:'x-tabpanel-child',minTabWidth:undefined,maxTabWidth:undefined,deferredRender:!0,_defaultTabRotation:{top:0,right:1,bottom:0,left:2},initComponent:function(){var a=this,c=a.activeTab!==null?a.activeTab||0:null,d=a.dockedItems,b=a.header,f=a.tabBarHeaderPosition,e=a.getTabBar(),g;a.layout=new Ext.layout.container.Card(Ext.apply({owner:a,deferredRender:a.deferredRender,itemCls:a.itemCls,activeItem:c},a.layout));if(f!=null){b=a.header=Ext.apply({},b);g=b.items=b.items?b.items.slice():[];b.itemPosition=f;g.push(e);b.hasTabBar=!0}else {d=[].concat(a.dockedItems||[]);d.push(e);a.dockedItems=d}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);c=a.activeTab=a.getComponent(c);if(c){e.setActiveTab(c.tab,!0)}},onRender:function(){var b=this.items.items,c=b.length,a;Ext.panel.Panel.prototype.onRender.apply(this,arguments);for(a=0;a','
    lineempty" role="presentation">
    ','','
    -end-plus {expanderCls}" role="presentation">
    ','','
    {checkboxCls}-checked">
    ','
    ','',' role="presentation" class="{childCls} {baseIconCls} {customIconCls} ','{baseIconCls}-leafparent-expandedparent {iconCls}" ','style="background-image:url({icon})"/>>','','{value}','','{value}',''],uiFields:{checked:1,icon:1,iconCls:1},rowFields:{expanded:1,loaded:1,expandable:1,leaf:1,loading:1,qtip:1,qtitle:1,cls:1},initComponent:function(){var a=this;a.rendererScope=a.scope;a.setupRenderer();a.innerRenderer=a.renderer;a.renderer=a.treeRenderer;Ext.grid.column.Column.prototype.initComponent.call(this);a.scope=a;a.hasCustomRenderer=a.innerRenderer&&a.innerRenderer.length>1},treeRenderer:function(i,a,c,g,f,h,j){var e=this,d=c.get('cls'),b;if(a&&d){a.tdCls+=' '+d}b=e.initTemplateRendererData(i,a,c,g,f,h,j);return e.getTpl('cellTpl').apply(b)},initTemplateRendererData:function(j,i,d,m,l,n,k){var a=this,f=a.innerRenderer,b=d.data,c=d.parentNode,g=k.rootVisible,h=[],e;while(c&&(g||c.data.depth>0)){e=c.data;h[g?e.depth:e.depth-1]=e.isLast?0:1;c=c.parentNode}return {record:d,baseIconCls:a.iconCls,customIconCls:b.icon||b.iconCls?a.customIconCls:'',iconCls:b.iconCls,icon:b.icon,checkboxCls:a.checkboxCls,checked:b.checked,elbowCls:a.elbowCls,expanderCls:a.expanderCls,textCls:a.textCls,leaf:b.leaf,expandable:d.isExpandable(),expanded:b.expanded,isLast:d.isLastVisible(),blankUrl:Ext.BLANK_IMAGE_URL,href:b.href,hrefTarget:b.hrefTarget,lines:h,metaData:i,childCls:a.getChildCls?a.getChildCls()+' ':'',value:f?f.apply(a.rendererScope,arguments):j}},shouldUpdateCell:function(f,a){var e=this,c=0,d,b;if(a){d=a.length;for(;c1;Ext.grid.NavigationModel.prototype.initKeyNav.call(this,e);for(b=0,d=a.keyNav.length;b1},onCellClick:function(f,e,c,d,g,b,a){Ext.grid.NavigationModel.prototype.onCellClick.call(this,f,e,c,d,g,b,a);return !a.nodeToggled},onKeyLeft:function(b){var c=this,d=b.view,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyLeft.call(this,b)}if(b.position.column.isTreeColumn&&a.isExpanded()){d.collapse(a)}else {a=a.parentNode;if(a&&!(a.isRoot()&&!d.rootVisible)){c.setPosition(a,null,b)}}},onKeyRight:function(b){var c=this,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyRight.call(this,b)}if(!a.isLeaf()){if(b.position.column.isTreeColumn&&!a.isExpanded()){b.view.expand(a)}else {if(a.isExpanded()){a=a.childNodes[0];if(a){c.setPosition(a)}}}}},onKeyEnter:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeyEnter.call(this,a)}},onKeySpace:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeySpace.call(this,a)}},toggleCheck:function(a){this.view.onCheckChange(a)},onAsterisk:function(a){this.view.ownerCt.expandAll()}},0,0,0,0,['view.navigation.tree'],0,[Ext.tree,'NavigationModel'],0);Ext.cmd.derive('Ext.tree.View',Ext.view.Table,{config:{selectionModel:{type:'treemodel'}},isTreeView:!0,loadingCls:'x-grid-tree-loading',expandedCls:'x-grid-tree-node-expanded',leafCls:'x-grid-tree-node-leaf',expanderSelector:'.x-tree-expander',checkboxSelector:'.x-tree-checkbox',expanderIconOverCls:'x-tree-expander-over',nodeAnimWrapCls:'x-tree-animator-wrap',ariaRole:'tree',loadMask:!1,rootVisible:!0,expandDuration:250,collapseDuration:250,toggleOnDblClick:!0,stripeRows:!1,treeRowTpl:['{%','this.processRowValues(values);','this.nextTpl.applyOut(values, out, parent);','%}',{priority:10,processRowValues:function(a){var b=a.record,c=a.view;a.rowAttr['data-qtip']=b.get('qtip')||'';a.rowAttr['data-qtitle']=b.get('qtitle')||'';if(b.isExpanded()){a.rowClasses.push(c.expandedCls)}if(b.isLeaf()){a.rowClasses.push(c.leafCls)}if(b.isLoading()){a.rowClasses.push(c.loadingCls)}}}],initComponent:function(){var a=this;if(a.bufferedRenderer){a.animate=!1}else {if(a.initialConfig.animate===undefined){a.animate=Ext.enableFx}}a.store=a.panel.getStore();a.onRootChange(a.store.getRoot());a.animQueue={};a.animWraps={};Ext.view.Table.prototype.initComponent.call(this);a.store.setRootVisible(a.rootVisible);a.addRowTpl(Ext.XTemplate.getTpl(a,'treeRowTpl'))},onFillComplete:function(f,d,b){var a=this,e=a.store,c=e.indexOf(b[0]);d.triggerUIUpdate();if(!b.length||c===-1){return}a.onAdd(a.store,b,c);a.refreshPartner()},refreshPartner:function(){var a=this.lockingPartner;if(a){a.refresh()}},afterComponentLayout:function(e,d,c,b){var a=this.getScrollable();Ext.view.Table.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&!this.bufferedRenderer){a.refresh()}},processUIEvent:function(a){if(a.getTarget('.'+this.nodeAnimWrapCls,this.el)){return !1}return Ext.view.Table.prototype.processUIEvent.call(this,a)},setRootNode:function(a){this.node=a},getChecked:function(){var a=[];this.node.cascadeBy(function(b){if(b.get('checked')){a.push(b)}});return a},isItemChecked:function(a){return a.get('checked')},createAnimWrap:function(b,e){var d=this,c=d.getNode(b),a;a=Ext.fly(c).insertSibling({role:'presentation',tag:'div',cls:d.nodeAnimWrapCls},'after');return {record:b,node:c,el:a,expanding:!1,collapsing:!1,animateEl:a,targetEl:a}},getAnimWrap:function(a,d){if(!this.animate){return null}var c=this.animWraps,b=c[a.internalId];if(d!==!1){while(!b&&a){a=a.parentNode;if(a){b=c[a.internalId]}}}return b},doAdd:function(h,c){var d=this,l=h[0],i=l.parentNode,m=d.all,e,a=d.getAnimWrap(i),g,f,k,j,b;if(!a||!a.expanding){return Ext.view.Table.prototype.doAdd.call(this,h,c)}j=d.bufferRender(h,c,!0);b=j.children;i=a.record;g=a.targetEl;f=g.dom.childNodes;k=f.length;e=c-d.indexInStore(i)-1;if(!k||e>=k){g.appendChild(j.fragment,!0)}else {Ext.fly(f[e]).insertSibling(b,'before',!0)}m.insert(c,b);return b},onRemove:function(h,c,b){var a=this,g,d,e=a.hasListeners.remove,f;if(a.viewReady){g=a.store.getCount()===0;if(a.bufferedRenderer){return Ext.view.Table.prototype.onRemove.call(this,h,c,b)}if(e){f=this.all.slice(b,b+c.length)}if(g){a.refresh()}else {for(d=c.length-1,b+=d;d>=0;--d,--b){a.doRemove(c[d],b)}a.refreshSizePending=!0}if(e){a.fireEvent('itemremove',c,b,f,a)}}},doRemove:function(c,b){var g=this,f=g.all,a=g.getAnimWrap(c),d=f.item(b),e=d?d.dom:null;if(!e||!a||!a.collapsing){return Ext.view.Table.prototype.doRemove.call(this,c,b)}a.targetEl.dom.insertBefore(e,a.targetEl.dom.firstChild);f.removeElement(b)},onBeforeExpand:function(c,d,e){var b=this,a;if(b.rendered&&b.all.getCount()&&b.animate){if(b.getNode(c)){a=b.getAnimWrap(c,!1);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c);a.animateEl.setHeight(0)}else {if(a.collapsing){a.targetEl.select(b.itemSelector).destroy()}}a.expanding=!0;a.collapsing=!1}}},onExpand:function(b){var a=this,h=a.animQueue,i=b.getId(),f=a.getNode(b),g=f?a.indexOf(f):-1,c,d,e;if(a.singleExpand){a.ensureSingleExpand(b)}if(g===-1){return}c=a.getAnimWrap(b,!1);if(!c){b.isExpandingOrCollapsing=!1;a.fireEvent('afteritemexpand',b,g,f);return}d=c.animateEl;e=c.targetEl;d.stopAnimation();h[i]=!0;Ext.on('idle',function(){d.dom.style.height='0px'},null,{single:!0});d.animate({from:{height:0},to:{height:e.dom.scrollHeight},duration:a.expandDuration,listeners:{afteranimate:function(){var d=e.dom.childNodes,b=Ext.Element.getActiveElement();if(d.length){if(!e.contains(b)){b=null}c.el.insertSibling(d,'before',!0);if(b){Ext.fly(b).focus()}}c.el.destroy();a.animWraps[c.record.internalId]=h[i]=null}},callback:function(){b.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemexpand',b,g,f)}})},onBeforeCollapse:function(c,g,f,d,e){var b=this,a;if(b.rendered&&b.all.getCount()){if(b.animate){if(c.isVisible()){a=b.getAnimWrap(c);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c,f)}else {if(a.expanding){a.targetEl.select(this.itemSelector).destroy()}}a.expanding=!1;a.collapsing=!0;a.callback=d;a.scope=e}}else {b.onCollapseCallback=d;b.onCollapseScope=e}}},onCollapse:function(c){var a=this,g=a.animQueue,h=c.getId(),d=a.getNode(c),f=d?a.indexOf(d):-1,b=a.getAnimWrap(c),e;if(!a.all.getCount()||!c.isVisible()){return}if(!b){c.isExpandingOrCollapsing=!1;a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(a.onCollapseCallback,a.onCollapseScope);a.onCollapseCallback=a.onCollapseScope=null;return}e=b.animateEl;g[h]=!0;e.stopAnimation();e.animate({to:{height:0},duration:a.collapseDuration,listeners:{afteranimate:function(){b.el.destroy();a.animWraps[b.record.internalId]=g[h]=null}},callback:function(){c.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(b.callback,b.scope);b.callback=b.scope=null}})},isAnimating:function(a){return !!this.animQueue[a.getId()]},expand:function(a,f,d,e){var g=this,b=!!g.animate,c;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}Ext.suspendLayouts();c=a.expand(f,d,e);Ext.resumeLayouts(!0);return c}},collapse:function(a,e,c,d){var f=this,b=!!f.animate;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}return a.collapse(e,c,d)}},toggle:function(a,d,b,c){if(a.isExpanded()){this.collapse(a,d,b,c)}else {this.expand(a,d,b,c)}},onItemDblClick:function(a,e,d,f){var b=this,c=b.editingPlugin;Ext.view.Table.prototype.onItemDblClick.call(this,a,e,d,f);if(b.toggleOnDblClick&&a.isExpandable()&&!(c&&c.clicksToEdit===2)){b.toggle(a)}},onCellClick:function(d,g,c,i,h,a){var b=this,f=a.position.column,e;if(f.isTreeColumn){if(a.getTarget(b.checkboxSelector,d)&&Ext.isBoolean(e=c.get('checked'))&&b.fireEvent('beforecheckchange',c,e,a)!==!1){b.onCheckChange(a);if(f.stopSelection){a.stopSelection=!0}}else {if(a.getTarget(b.expanderSelector,d)&&c.isExpandable()){b.getNavigationModel().setPosition(a.position);b.toggle(c,a.ctrlKey);a.nodeToggled=!0}}return Ext.view.Table.prototype.onCellClick.call(this,d,g,c,i,h,a)}},onCheckChange:function(c){var a=c.record,b=!a.get('checked');a.set('checked',b);this.fireEvent('checkchange',a,b,c)},onItemMouseOver:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).addCls(this.expanderIconOverCls)}},onItemMouseOut:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).removeCls(this.expanderIconOverCls)}},getStoreListeners:function(){return Ext.apply(Ext.view.Table.prototype.getStoreListeners.call(this),{rootchange:this.onRootChange,fillcomplete:this.onFillComplete})},onBindStore:function(b,f,e,a){var d=a&&a.getRootNode(),c=b&&b.getRootNode();Ext.view.Table.prototype.onBindStore.call(this,b,f,e,a);if(c!==d){this.onRootChange(c,d)}},onRootChange:function(b,c){var a=this,d=a.grid;if(c){a.rootListeners.destroy();a.rootListeners=null}if(b){a.rootListeners=b.on({beforeexpand:a.onBeforeExpand,expand:a.onExpand,beforecollapse:a.onBeforeCollapse,collapse:a.onCollapse,destroyable:!0,scope:a});d.addRelayers(b)}},ensureSingleExpand:function(b){var a=b.parentNode;if(a){a.eachChild(function(a){if(a!==b&&a.isExpanded()){a.collapse()}})}}},0,['treeview'],['component','box','dataview','tableview','gridview','treeview'],{'component':!0,'box':!0,'dataview':!0,'tableview':!0,'gridview':!0,'treeview':!0},['widget.treeview'],0,[Ext.tree,'View'],0);Ext.cmd.derive('Ext.tree.Panel',Ext.panel.Table,{alternateClassName:['Ext.tree.TreePanel','Ext.TreePanel'],viewType:'treeview',treeCls:'x-tree-panel',rowLines:!1,lines:!0,useArrows:!1,singleExpand:!1,ddConfig:{enableDrag:!0,enableDrop:!0},rootVisible:!0,displayField:'text',root:null,normalCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible','scroll'],lockedCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible'],isTree:!0,arrowCls:'x-tree-arrows',linesCls:'x-tree-lines',noLinesCls:'x-tree-no-lines',autoWidthCls:'x-autowidth-table',constructor:function(a){a=a||{};if(a.animate===undefined){a.animate=Ext.isBoolean(this.animate)?this.animate:Ext.enableFx}this.enableAnimations=a.animate;delete a.animate;Ext.panel.Table.prototype.constructor.call(this,a)},initComponent:function(){var a=this,c=[a.treeCls],b,d;if(a.useArrows){c.push(a.arrowCls);a.lines=!1}if(a.lines){c.push(a.linesCls)}else {if(!a.useArrows){c.push(a.noLinesCls)}}b=a.applyStore(a.store);if(!b.getRoot()){b.setRoot({})}b.setRootVisible(a.rootVisible);a.viewConfig=Ext.apply({rootVisible:a.rootVisible,animate:a.enableAnimations,singleExpand:a.singleExpand,node:b.getRoot(),hideHeaders:a.hideHeaders,navigationModel:'tree'},a.viewConfig);if(!a.columns){if(a.initialConfig.hideHeaders===undefined){a.hideHeaders=!0}a.addCls(a.autoWidthCls);a.columns=[{xtype:'treecolumn',text:'Name',flex:1,dataIndex:a.displayField}]}if(a.cls){c.push(a.cls)}a.cls=c.join(' ');Ext.panel.Table.prototype.initComponent.call(this);d=a.getView();a.relayEvents(d,['beforecheckchange','checkchange','afteritemexpand','afteritemcollapse'])},applyStore:function(a){var b=this;if(Ext.isString(a)){a=b.store=Ext.StoreMgr.lookup(a)}else {if(!a||!a.isStore){a=Ext.apply({type:'tree',proxy:'memory'},a);if(b.root){a.root=b.root}if(b.fields){a.fields=b.fields}else {if(b.model){a.model=b.model}}if(b.folderSort){a.folderSort=b.folderSort}a=b.store=Ext.StoreMgr.lookup(a)}else {if(b.root){a=b.store=Ext.data.StoreManager.lookup(a);a.setRoot(b.root);if(b.folderSort!==undefined){a.folderSort=b.folderSort;a.sort()}}}}return a},setStore:function(a){var b=this;a=b.applyStore(a);if(!a.getRoot()){a.setRoot({})}a.setRootVisible(b.rootVisible);if(b.view){b.view.setRootNode(a.getRootNode())}b.bindStore(a)},bindStore:function(b,e){var a=this,c=b.getRoot(),d=a.bufferedRenderer;Ext.panel.Table.prototype.bindStore.apply(this,arguments);if(d){if(d.store){d.bindStore(b)}}b.singleExpand=a.singleExpand;a.storeListeners=a.mon(b,{destroyable:!0,rootchange:a.onRootChange,scope:a});a.storeRelayers=a.relayEvents(b,['beforeload','load']);if(!a.rootVisible&&!b.autoLoad&&!(c.isExpanded()||c.isLoading())){if(c.isLoaded()){c.data.expanded=!0;b.onNodeExpand(c,c.childNodes)}else {if(b.autoLoad!==!1){c.data.expanded=!1;c.expand()}}}b.ownerTree=a;if(!e){a.view.setRootNode(c)}},addRelayers:function(b){var a=this;if(a.rootRelayers){a.rootRelayers.destroy();a.rootRelayers=null}a.rootRelayers=a.mon(b,{destroyable:!0,append:a.createRelayer('itemappend'),remove:a.createRelayer('itemremove'),move:a.createRelayer('itemmove',[0,4]),insert:a.createRelayer('iteminsert'),beforeappend:a.createRelayer('beforeitemappend'),beforeremove:a.createRelayer('beforeitemremove'),beforemove:a.createRelayer('beforeitemmove'),beforeinsert:a.createRelayer('beforeiteminsert'),expand:a.createRelayer('itemexpand',[0,1]),collapse:a.createRelayer('itemcollapse',[0,1]),beforeexpand:a.createRelayer('beforeitemexpand',[0,1]),beforecollapse:a.createRelayer('beforeitemcollapse',[0,1]),scope:a})},unbindStore:function(){var a=this,b=a.store;if(b){Ext.panel.Table.prototype.unbindStore.call(this);Ext.destroy(a.storeListeners,a.storeRelayers,a.rootRelayers);delete b.ownerTree;b.singleExpand=null}},setRootNode:function(){return this.store.setRoot.apply(this.store,arguments)},getRootNode:function(){return this.store.getRoot()},onRootChange:function(a){this.view.setRootNode(a)},getChecked:function(){return this.getView().getChecked()},isItemChecked:function(a){return a.get('checked')},expandNode:function(b,d,a,c){return this.getView().expand(b,d,a,c||this)},collapseNode:function(b,d,a,c){return this.getView().collapse(b,d,a,c||this)},expandAll:function(c,d){var b=this,a=b.getRootNode();if(a){Ext.suspendLayouts();a.expand(!0,c,d||b);Ext.resumeLayouts(!0)}},collapseAll:function(d,a){var c=this,b=c.getRootNode(),e=c.getView();if(b){Ext.suspendLayouts();a=a||c;if(e.rootVisible){b.collapse(!0,d,a)}else {b.collapseChildren(!0,d,a)}Ext.resumeLayouts(!0)}},expandPath:function(p,a){var i=arguments,b=this,j=b.view,g=a&&a.field||b.store.model.idProperty,o,n,k=a&&a.separator||'/',c,e,d,h,f,m,l;if(a&&typeof a==='object'){g=a.field||b.store.model.idProperty;k=a.separator||'/';c=a.callback;e=a.scope;o=a.select;n=a.focus}else {g=i[1]||b.store.model.idProperty;k=i[2]||'/';c=i[3];e=i[4]}if(Ext.isEmpty(p)){return Ext.callback(c,e||b,[!1,null])}f=p.split(k);m=!f[0];if(m){d=b.getRootNode();h=1}else {d=b.store.findNode(g,f[0]);h=0}if(!d||m&&d.get(g)!==f[1]){return Ext.callback(c,e||b,[!1,d])}l=function(k){var a=this,m,i,d;if(++h===f.length){if(o){j.getSelectionModel().select(a)}if(n){j.getNavigationModel().setPosition(a,0)}return Ext.callback(c,e||b,[!0,a,j.getNode(a)])}for(i=0,m=k?k.length:0;i=a.top&&c=a.bottom-d&&c<=a.bottom)){return 'after'}else {return 'append'}}},isValidDropPoint:function(g,c,l,k,f){if(!g||!f.item){return !1}var h=this.view,a=h.getRecord(g),b=f.records,i=b.length,j=b.length,d,e;if(!(a&&c&&i)){return !1}for(d=0;d2?b[2]:null,e=a>3?b[3]:'/',d=a>4?b[4]:null,f=a>5?b[5]:!1;document.cookie=h+'='+escape(g)+(c===null?'':'; expires='+c.toUTCString())+(e===null?'':'; path='+e)+(d===null?'':'; domain='+d)+(f===!0?'; secure':'')},get:function(e){var d=document.cookie.split('; '),f=d.length,b,a,c;for(a=0;a'],childEls:['iframeEl'],initComponent:function(){Ext.Component.prototype.initComponent.call(this);this.frameName=this.frameName||this.id+'-frame'},initEvents:function(){var a=this;Ext.Component.prototype.initEvents.call(this);a.iframeEl.on('load',a.onLoad,a)},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{src:this.src,frameName:this.frameName})},getBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){try{return this.getWin().document}catch(b){return null}},getWin:function(){var a=this,b=a.frameName,c=Ext.isIE?a.iframeEl.dom.contentWindow:window.frames[b];return c},getFrame:function(){var a=this;return a.iframeEl.dom},beforeDestroy:function(){this.cleanupListeners(!0);Ext.Component.prototype.beforeDestroy.call(this)},cleanupListeners:function(c){var a,b;if(this.rendered){try{a=this.getDoc();if(a){Ext.get(a).un(this._docListeners);if(c){for(b in a){if(a.hasOwnProperty&&a.hasOwnProperty(b)){delete a[b]}}}}}catch(d){}}},onLoad:function(){var a=this,c=a.getDoc(),b=a.onRelayedEvent;if(c){try{Ext.get(c).on(a._docListeners={mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,scope:a})}catch(d){}Ext.get(this.getWin()).on('beforeunload',a.cleanupListeners,a);this.el.unmask();this.fireEvent('load',this)}else {if(a.src){this.el.unmask();this.fireEvent('error',this)}}},onRelayedEvent:function(a){var b=this.iframeEl,c=b.getTrueXY(),e=a.getXY(),d=a.getTrueXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},load:function(c){var a=this,b=a.loadMask,d=a.getFrame();if(a.fireEvent('beforeload',a,c)!==!1){if(b&&a.el){a.el.mask(b)}d.src=a.src=c||a.src}}},0,['uxiframe'],['component','box','uxiframe'],{'component':!0,'box':!0,'uxiframe':!0},['widget.uxiframe'],0,[Ext.ux,'IFrame'],0);Ext.cmd.derive('common.data.proxy.CrsfToken',Ext.Base,{singleton:!0,constructor:function(){Ext.Ajax.on('beforerequest',function(b,a){if(!(/^http:.*/.test(a.url)||/^https:.*/.test(a.url))){if(typeof a.headers=='undefined'){a.headers={'Accept':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')}}else {a.headers['Application']='application/json';a.headers['X-CSRFToken']=Ext.util.Cookies.get('csrftoken')}}},this)}},1,0,0,0,0,0,[common.data.proxy,'CrsfToken'],0);Ext.cmd.derive('common.data.proxy.Django',Ext.data.proxy.Rest,{headers:{'Accept':'application/json;'},startParam:'offset',sortParam:'ordering',reader:{type:'json',rootProperty:'results',totalProperty:'count'},writer:{},actionMethods:{create:'POST',read:'GET',update:'PATCH',destroy:'DELETE'},encodeSorters:function(b){var c=[],a,d;for(var e in b){a=b[e];d=(a.getDirection()=='DESC'?'-':'')+a.getProperty();c.push(d)}return c.join()},getParams:function(b){var a=Ext.data.proxy.Rest.prototype.getParams.apply(this,arguments);if(!b.isReadOperation){return a}var c=b.getFilters();delete a[this.getFilterParam()];Ext.each(c,function(e){var d=e.getProperty(),c=e.getValue(),b,f;switch(e.getOperator()){case '<':b=Ext.String.format('{0}__lt',d);a[b]=c;break;case '<=':b=Ext.String.format('{0}__lte',d);a[b]=c;break;case '>=':b=Ext.String.format('{0}__gte',d);a[b]=c;break;case '>':b=Ext.String.format('{0}__gt',d);a[b]=c;break;case '!=':b=Ext.String.format('{0}__ne',d);a[b]=c;break;case 'in':b=Ext.String.format('{0}__in',d);a[b]=c.join();break;case 'like':b=Ext.String.format('{0}__icontains',d);a[b]=c;break;case 'range':b=Ext.String.format('{0}__range',d);f=Ext.String.format('{0},{1}',c[0],c[1]);a[b]=f;break;default:a[d]=c;}});return a},buildUrl:function(c){var b=this,e=c.getOperation(),h=e.getRecords(),g=h?h[0]:null,i=b.getFormat(),a=b.getUrl(c),d,f;if(g&&!g.phantom){d=g.getId()}else {d=e.getId()}if(b.getAppendId()&&b.isValidId(d)||e.action==='update'){if(!a.match(b.slashRe)){a+='/'}a+=encodeURIComponent(d);f=c.getParams();if(f){delete f[b.getIdParam()]}a+='/'}if(i){if(!a.match(b.periodRe)){a+='.'}a+=i}c.setUrl(a);return Ext.data.RestProxy.superclass.buildUrl.apply(this,arguments)}},0,0,0,0,['proxy.django'],0,[common.data.proxy,'Django'],0);Ext.cmd.derive('common.contact.ContactController',Ext.app.ViewController,{onFormCancel:function(){this.getView().lookupReference('windowForm').getForm().reset();this.getView().close()},onFormSubmit:function(){var c=this.getView(),d=c.lookupReference('windowForm'),b=d.getForm(),a=b.getValues();a.current_url=window.location.href;a.current_user=window.sessionStorage.dri_username;if(b.isValid()){Ext.Ajax.request({url:'/dri/api/contact/',method:'POST',params:a,success:function(){c.close();Ext.MessageBox.alert('Thank you!','Your inquiry has been sent. We will respond as soon as possible.')},failure:function(a,b){Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Sorry, message was not sent.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this})}})}}},0,0,0,0,['controller.contact'],0,[common.contact,'ContactController'],0);Ext.cmd.derive('common.contact.Contact',Ext.window.Window,{reference:'contactWindow',title:'Contact Us',controller:'contact',width:400,height:500,minWidth:300,minHeight:380,layout:'fit',resizable:!0,modal:!0,defaultFocus:'firstName',closeAction:'destroy',items:[{xtype:'form',reference:'windowForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{margin:'0 0 20 0',xtype:'component',html:['Thank you for visiting our site! We welcome your feedback; ','please click the button below to send us a message. We will ','respond to your inquiry as quickly as possible.']},{xtype:'textfield',fieldLabel:'Name',name:'name',allowBlank:!1},{xtype:'textfield',fieldLabel:'Your Email Address',vtype:'email',name:'from',allowBlank:!1},{xtype:'textfield',fieldLabel:'Subject',name:'subject',allowBlank:!1},{xtype:'textareafield',fieldLabel:'How can we help?',labelAlign:'top',flex:1,margin:'0',name:'message',allowBlank:!1,emptyText:'Describe the problem or share your ideas.'}],buttons:[{text:'Cancel',handler:'onFormCancel'},{text:'Send',handler:'onFormSubmit'}]}]},0,['form-contact-window'],['component','box','container','panel','window','form-contact-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'form-contact-window':!0},['widget.form-contact-window'],0,[common.contact,'Contact'],0);Ext.cmd.derive('common.footer.FooterController',Ext.app.ViewController,{onClickContact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()}},0,0,0,0,['controller.footer'],0,[common.footer,'FooterController'],0);Ext.cmd.derive('common.footer.Footer',Ext.toolbar.Toolbar,{controller:'footer',cls:'des-portal-footer',height:28,layout:{pack:'center',align:'middle'},viewModel:{data:{}},items:[{xtype:'tbtext',html:'Powered by LIneA | Dark Energy Survey | NCSA',cls:'des-portal-footer-text'}]},0,['dri-footer'],['component','box','container','toolbar','dri-footer'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-footer':!0},['widget.dri-footer'],0,[common.footer,'Footer'],0);Ext.cmd.derive('common.ToolbarController',Ext.app.ViewController,{listen:{component:{'dri-header':{afterrender:'onAfterRender'}}},logout:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/dri/api/api-auth/logout/?next=/dri/apps/',b,c);window.location.assign(a)},projectHome:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/',b,c);window.location.assign(a)},contact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()},about:function(){window.open('http://www.linea.gov.br')},onAfterRender:function(){var a=this;a.loadUsername();a.loaddTutorials()},loaddTutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');a.addFilter([{property:'app_name',value:c.get('internal_name')}]);a.load({scope:this,callback:b.onLoadTutorials})},onLoadTutorials:function(){var b=this,d=b.getViewModel(),c=d.getStore('tutorials'),a=b.lookupReference('headermenututorials');if(c.count()>0){a.enable()}else {a.disable()}},tutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');if(this.wincontact){this.wincontact=null}this.wintutorials=Ext.create('common.help.Tutorials',{store:a});this.wintutorials.show()},onClickHelp:function(){var e=this,f=e.getViewModel(),c=window.location.protocol,d=window.location.host,b=f.get('help_url'),a;a=Ext.String.format('{0}//{1}/{2}',c,d,b);window.open(a)},loadUsername:function(){var a=this,b=a.getViewModel();Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(c){var a=JSON.parse(c.responseText);b.set('username',a.username);window.dri_username=a.username}})}},0,0,0,0,['controller.toolbar'],0,[common,'ToolbarController'],0);Ext.cmd.derive('common.help.TutorialsController',Ext.app.ViewController,{onSelect:function(e,c){var d=this,b=d.lookupReference('video'),a;a=Ext.create('Ext.Component',{flex:1,html:''});b.removeAll();b.add(a)}},0,0,0,0,['controller.tutorials'],0,[common.help,'TutorialsController'],0);Ext.cmd.derive('common.help.Tutorials',Ext.window.Window,{title:'Tutorials',controller:'tutorials',config:{store:null},initComponent:function(){var a=this;Ext.apply(this,{layout:'border',width:700,height:400,minWidth:300,minHeight:280,resizable:!0,maximizable:!0,modal:!0,closeAction:'destroy',items:[{xtype:'grid',reference:'tutorials_grid',region:'west',split:!0,hideHeaders:!0,width:200,store:a.getStore(),columns:[{dataIndex:'ttr_title',flex:1}],listeners:{select:'onSelect'}},{xtype:'panel',region:'center',reference:'video',split:!0,layout:{type:'vbox',pack:'start',align:'stretch'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)}},0,['tutorials-window'],['component','box','container','panel','window','tutorials-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'tutorials-window':!0},['widget.tutorials-window'],0,[common.help,'Tutorials'],0);Ext.cmd.derive('common.header.Toolbar',Ext.toolbar.Toolbar,{controller:'toolbar',cls:'des-portal-headerbar toolbar-btn-shadow',layout:{type:'hbox',align:'middle'},viewModel:{data:{home:'',desPortalLogo:'resources/des-portal-logo.png',tooltip:'Home',username:''},stores:{tutorials:{fields:['id','application','application_display_name','ttr_title','ttr_src','ttr_description'],remoteSort:!0,remoteFilter:!0,autoLoad:!1,pageSize:0,proxy:{type:'django',url:'/dri/api/tutorial/'}}}},viewItems:function(){return [{xtype:'component',cls:'des-portal-logo',bind:{html:'Home'}},{xtype:'component',cls:'des-portal-appname',bind:{html:'{name}'},flex:1},'->',{xtype:'button',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',itemId:'btnusername',bind:{text:'{username}'}},{xtype:'button',iconCls:'x-fa fa-home',ui:'white-toolbar',cls:'delete-focus-bg',scale:'medium',handler:'projectHome',tooltip:'Home of the Science Server'},{xtype:'button',reference:'headermenu',iconCls:'x-fa fa-bars',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',arrowVisible:!1,menu:[{text:'About LIneA',handler:'about'},{text:'Contact Us',handler:'contact'},{text:'Tutorials',iconCls:'x-fa fa-question-circle',reference:'headermenututorials',disabled:!0,handler:'tutorials'},{text:'Help',iconCls:'x-fa fa-question',reference:'headermenuhelp',handler:'onClickHelp'},'-',{text:'Log out',iconCls:'x-fa fa-sign-out',handler:'logout'}]}]},initComponent:function(){this.items=this.viewItems();Ext.toolbar.Toolbar.prototype.initComponent.call(this)},afterRender:function(){var c=this,b=window.location.href,a;a=b.split('#')[0];c.getViewModel().set('home',a);Ext.toolbar.Toolbar.prototype.afterRender.apply(this,arguments)}},0,['dri-header'],['component','box','container','toolbar','dri-header'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-header':!0},['widget.dri-header'],0,[common.header,'Toolbar'],0);Ext.cmd.derive('CatalogBuilder.Application',Ext.app.Application,{name:'CatalogBuilder',stores:[],launch:function(){},onAppUpdate:function(){Ext.Msg.confirm('Application Update','This application has an update, reload?',function(a){if(a==='yes'){window.location.reload()}})}},0,0,0,0,0,0,[CatalogBuilder,'Application'],0);var myQueryNumber=1;var main=Ext.cmd.derive('CatalogBuilder.view.main.MainController',Ext.app.ViewController,{activeQuery:{},activeRelease:{},init:function(){var a=this.getViewModel();a.set('properties_title','Properties Inspector');this.operations={};this.activeProperties={};this.definedProperties={}},treeView_onSelectionChange:function(g,a){var d=this;var e=this.getViewModel();var b=[];var f={};var c;if(a&&a[0]&&a[0].data){c=a[0].data.text;e.set('initialized',!0);e.set('properties_title',a[0].data.text+' - Properties');b=a[0].data.properties||[];this.activeProperties={};if(!this.operations[a[0].id]){this.operations[a[0].id]={name:c,label:c,properties:b}}b.forEach(function(b){if(!b._initialValueIsDefined){b._initialValueIsDefined=!0;b._initialValue=b.value}b.modelId=a[0].id;d.operations[b.modelId].model=a[0];d.activeProperties[b.name]=b})}this.inspectProperties(b)},form_onDataChange:function(d,h,j){var i=this.getReferences();var l=i.grdOperations;var f=d.name;var g=d.getErrors();var k=[];var c=!0;var b=this.activeProperties[f];var a=this.operations[b.modelId];var e=a.properties;b.value=g==0?h:b._initialValue;e.forEach(function(a){if(a._initialValue!=a.value){c=!1}});a.model.set('text',c?a.label:''+a.label+'')},getProperties:function(){var b=this.getReferences();var a=b.frmProperties.getForm().getValues();return a},inspectProperties:function(b){var a=this.getReferences();a.frmProperties.removeAll();b.forEach(function(b){var c;Object.assign(b,{labelWrap:!1,fieldLabel:b.fieldLabel||b.name});switch(b.xtype){case 'combobox':b.data.forEach(function(a,c){b.data[c]=typeof a=='string'?{value:a,label:a}:a});c=Ext.create('Ext.data.Store',{fields:['value','label'],data:b.data});Object.assign(b,{fieldLabel:b.fieldLabel,store:c,queryMode:'local',displayField:'label',valueField:'value'});break;default:break;}a.frmProperties.add(b)})}},0,0,0,0,['controller.main'],0,[CatalogBuilder.view.main,'MainController'],0);Ext.cmd.derive('CatalogBuilder.view.main.MainModel',Ext.app.ViewModel,{data:{name:'Catalog Builder',internal_name:'user_query',desPortalLogo:'resources/des-portal-logo.png',help_url:'dri/apps/home/help/help-user-query/'}},0,0,0,0,['viewmodel.main'],0,[CatalogBuilder.view.main,'MainModel'],0);Ext.cmd.derive('CatalogBuilder.view.main.Main',Ext.container.Container,{controller:'main',viewModel:'main',layout:{type:'vbox',align:'stretch'},bind:{hidden:'{!initialized}'},items:[{xtype:'dri-header'},{xtype:'toolbar',region:'north',items:[{xtype:'button',tooltip:'Clear Query',handler:'btnClear_onClick',iconCls:'x-fa fa-file-o'},{xtype:'button',tooltip:'Save Query',disabled:!0,reference:'btnSave',iconCls:'x-fa fa-floppy-o',handler:'btnSave_onClick'},{xtype:'button',tooltip:'Execute Query',reference:'btnStartJob',disabled:!0,handler:'btnStartJob_onClick',iconCls:'x-fa fa-play'}]},{xtype:'container',reference:'ctnArea',flex:1,bodyPadding:15,layout:'border',items:[{xtype:'panel',reference:'pnlRelease',region:'west',split:!0,width:300,minWidth:100,header:{xtype:'header',titlePosition:0,title:'Release: ',padding:'6',items:[{xtype:'container',layout:'hbox',width:'100%',items:[{xtype:'label',html:'
    Release:
    '},{xtype:'combobox',reference:'cmbReleases',flex:1,displayField:'release_display_name',editable:!1,queryMode:'local',valueField:'release_id',emptyText:'Select Release',listeners:{select:'cmbReleases_onSelect'}}]}]},bind:{},layout:'border',items:[{xtype:'panel',region:'center',layout:{type:'accordion',titleCollapse:!0,animate:!0},items:[{title:'Region Selection',layout:'fit',listeners:{},items:[{xtype:'treepanel',reference:'tvwInputTables',rootVisible:!1,root:{text:'Root',expanded:!0,children:[{text:'Map Resolution',leaf:!0,properties:[{xtype:'numberfield',name:'map_resolution',fieldLabel:'HEALPix Map Resolution',value:4096,maxValue:4096,minValue:10}]},{text:'Mangle Detfrac Map',leaf:!0,properties:[{xtype:'numberfield',name:'g'},{xtype:'numberfield',name:'r'},{xtype:'numberfield',name:'i',value:0.8},{xtype:'numberfield',name:'z'},{xtype:'numberfield',name:'Y'},{xtype:'combobox',name:'reference_band',fieldLabel:'Reference band to report area',value:'i',data:['g','r','i','z','Y']}]},{text:'Bad Regions Mask',leaf:!0},{text:'Depth Map',leaf:!0},{text:'Systematic Maps - Min,Max',leaf:!0},{text:'Additional Mask',leaf:!0}]},listeners:{selectionchange:'treeView_onSelectionChange',itemcontextmenu:'treeView_onContextMenu',custom_itemcontextmenu:'treeView_onContextMenu'},viewConfig:{plugins:{ptype:'treeviewdragdrop',enableDrag:!0,enableDrop:!1,ddGroup:'TreeDD'}},contextMenuItems:[{text:'Content',itemId:'preview',handler:'tvwInputTables_onContextMenuClick'}]}]},{title:'Object Selection',layout:'fit',reference:'accExternalCatalog',listeners:{},items:[{xtype:'treepanel',reference:'tvwExternalCatalog',rootVisible:!1,root:{text:'Root',expanded:!0,children:[{text:'Magnitude Type',leaf:!0},{text:'Signal-to-noise cuts',leaf:!0},{text:'Bright magnitude cuts',leaf:!0},{text:'Magnitude limit cuts',leaf:!0},{text:'Color cuts',leaf:!0},{text:'Mangle Bitmask',leaf:!0},{text:'Sextractor reference bands',leaf:!0},{text:'Niter Model greater than zero',leaf:!0},{text:'Photo z',leaf:!0}]},viewConfig:{plugins:{ptype:'treeviewdragdrop',enableDrag:!0,enableDrop:!1,ddGroup:'TreeDD'}},contextMenuItems:[{text:'Content',itemId:'preview',handler:'tvwExternalCatalog_onContextMenuClick'}],listeners:{itemcontextmenu:'treeView_onContextMenu'}}]},{title:'Columns Selection',layout:'fit',reference:'accMyTables',listeners:{},items:[{xtype:'treepanel',reference:'tvwMyTables',rootVisible:!1,root:{text:'Root',expanded:!0,children:[{text:'System Default',leaf:!0},{text:'Photometric correction',leaf:!0},{text:'Depth Maps',leaf:!0},{text:'Systematic Maps',leaf:!0}]},viewConfig:{plugins:{ptype:'treeviewdragdrop',enableDrag:!0,enableDrop:!1,ddGroup:'TreeDD'}},contextMenuItems:[{text:'Rename',itemId:'rename',handler:'tvwMyTables_onContextMenuClick'},{text:'Content',itemId:'preview',handler:'tvwMyTables_onContextMenuClick'},{text:'Download',itemId:'download',handler:'tvwMyTables_onContextMenuClick'},'-',{text:'Delete',itemId:'delete',handler:'tvwMyTables_onContextMenuClick'},'-',{text:'View',itemId:'target',handler:'tvwMyTables_onContextMenuClick',config_item:function(b,a){b.disabled=a.product_id?!1:!0}}],listeners:{itemcontextmenu:'treeView_onContextMenu'}}]}]},{xtype:'panel',region:'south',split:!0,height:200,layout:{type:'accordion',titleCollapse:!0,animate:!0},items:[{title:'My Catalogs',layout:'fit',reference:'accMyQueries',items:[{xtype:'treepanel',reference:'tvwMyQueries',rootVisible:!1,listeners:{beforeselect:'tvwMyQueries_onBeforeSelect',select:'tvwMyQueries_onSelect',itemcontextmenu:'treeView_onContextMenu'},contextMenuItems:[{text:'Rename',itemId:'rename',handler:'tvwMyQueries_onContextMenuClick'},{text:'Delete',itemId:'delete',handler:'tvwMyQueries_onContextMenuClick'}]}],listeners:{}}]}]},{xtype:'panel',region:'center',layout:'border',items:[{xtype:'panel',region:'center',layout:'border',items:[{xtype:'panel',region:'west',bind:{title:'{properties_title}'},width:400,split:!0,items:[{xtype:'form',reference:'frmProperties',region:'center',layout:'vbox',bodyPadding:10,defaults:{listeners:{change:'form_onDataChange'}}}]},{xtype:'panel',region:'center',title:'Definition',layout:'border',items:[{xtype:'form',region:'center',bodyPadding:10,items:[{xtype:'textfield',fieldLabel:'Name',name:'name'},{xtype:'textfield',fieldLabel:'Description',name:'description',width:'100%'},{xtype:'checkboxfield',boxLabel:'Query Builder',name:'topping',inputValue:'1'},{xtype:'checkboxfield',boxLabel:'Catalog Properties',name:'topping',inputValue:'2',checked:!0}]}]}]},{xtype:'tabpanel',region:'south',reference:'tabBottom',split:!0,height:200,fullScreen:'fit',cls:'preview-tabs',defaults:{layout:'fit'},items:[{title:'My JOBs',listeners:{},items:[{xtype:'grid',reference:'grdJobs',store:Ext.create('Ext.data.Store'),viewConfig:{getRowClass:function(a){return a.get('row_cls')||'row-cls'}}}]}]}]}]},{xtype:'dri-footer'}]},0,['app-main'],['component','box','container','app-main'],{'component':!0,'box':!0,'container':!0,'app-main':!0},['widget.app-main'],0,[CatalogBuilder.view.main,'Main'],0);Ext.application({name:'CatalogBuilder',extend:CatalogBuilder.Application,mainView:'CatalogBuilder.view.main.Main'}); \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/app.json b/frontend/build/production/CatalogBuilder/app.json new file mode 100644 index 000000000..c059c9456 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/app.json @@ -0,0 +1 @@ +{"packages":{"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.0.180","version":"6.5.0.180"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"}},"js":[{"path":"app.js"}],"css":[{"exclude":["fashion"],"path":"resources/CatalogBuilder-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"CatalogBuilder","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180301144543","cacheParam":"_dc"},"id":"266e2df3-032f-40e5-b0dd-d1d4868ce3ed","hash":"dde6e3bf78b8568e484146bae56c271d2865ebab","profile":"","resources":{"path":"resources"}} \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/app.jsonp b/frontend/build/production/CatalogBuilder/app.jsonp new file mode 100644 index 000000000..3e77f9d2c --- /dev/null +++ b/frontend/build/production/CatalogBuilder/app.jsonp @@ -0,0 +1 @@ +Ext.Microloader.setManifest({"packages":{"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.0.180","version":"6.5.0.180"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"}},"js":[{"path":"app.js"}],"css":[{"exclude":["fashion"],"path":"resources/CatalogBuilder-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"CatalogBuilder","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180301144543","cacheParam":"_dc"},"id":"266e2df3-032f-40e5-b0dd-d1d4868ce3ed","hash":"dde6e3bf78b8568e484146bae56c271d2865ebab","profile":"","resources":{"path":"resources"}}); \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/app/libs/properties.css b/frontend/build/production/CatalogBuilder/app/libs/properties.css new file mode 100644 index 000000000..87cad3b30 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/app/libs/properties.css @@ -0,0 +1 @@ +.properties-table{border:solid 1px #2986cf;border-style:none none solid solid;margin:10px}.properties-table td{padding:4px;border:solid 1px #2986cf;border-style:solid solid none none}td.properties-title{padding:8px 4px;background:#2986cf;color:#fff;font-weight:bold}.property-label{background:#f1f1f1}[invalidate] input{background:red} \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/app/libs/properties.js b/frontend/build/production/CatalogBuilder/app/libs/properties.js new file mode 100644 index 000000000..6136ca946 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/app/libs/properties.js @@ -0,0 +1 @@ +var $jscomp={};$jscomp.scope={};$jscomp.defineProperty=typeof Object.defineProperties=='function'?Object.defineProperty:function(b,c,a){a=(a);if(a.get||a.set){throw new TypeError('ES3 does not support getters and setters.')}if(b==Array.prototype||b==Object.prototype){return}b[c]=a.value};$jscomp.getGlobal=function(a){return typeof window!='undefined'&&window===a?a:typeof global!='undefined'&&global!=null?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(i,f,j,k){if(!f){return}var a=$jscomp.global;var b=i.split('.');for(var e=0;eb){if(--a in this){this[--c]=this[a]}else {delete this[c]}}}return this};return b},'es6-impl','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global.Symbol){$jscomp.global.Symbol=$jscomp.Symbol}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return ($jscomp.SYMBOL_PREFIX+(a||'')+$jscomp.symbolCounter_++)};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;if(!a){a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol('iterator')}if(typeof Array.prototype[a]!='function'){$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}})}$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){if(bc){a=c}a=Number(a);if(a<0){a=Math.max(0,c+a)}for(var d=Number(b||0);d-0.25){var e=a;var f=1;var b=a;var c=0;var d=1;while(c!=b){e*=a;d*=-1;b=(c=b)+d*e/++f}return b}return Math.log(1+a)};return b},'es6-impl','es3');$jscomp.polyfill('Math.atanh',function(b){if(b){return b}var a=Math.log1p;var c=function(b){b=Number(b);return (a(b)-a(-b))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.cbrt',function(a){if(a){return a}var b=function(a){if(a===0){return a}a=Number(a);var b=Math.pow(Math.abs(a),1/3);return a<0?-b:b};return b},'es6-impl','es3');$jscomp.polyfill('Math.clz32',function(a){if(a){return a}var b=function(a){a=Number(a)>>>0;if(a===0){return 32}var b=0;if((a&4.29490176E9)===0){a<<=16;b+=16}if((a&4.27819008E9)===0){a<<=8;b+=8}if((a&4.02653184E9)===0){a<<=4;b+=4}if((a&3.221225472E9)===0){a<<=2;b+=2}if((a&2.147483648E9)===0){b++}return b};return b},'es6-impl','es3');$jscomp.polyfill('Math.cosh',function(a){if(a){return a}var b=Math.exp;var c=function(a){a=Number(a);return (b(a)+b(-a))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.expm1',function(a){if(a){return a}var b=function(a){a=Number(a);if(a<0.25&&a>-0.25){var d=a;var e=1;var b=a;var c=0;while(c!=b){d*=a/++e;b=(c=b)+d}return b}return Math.exp(a)-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.hypot',function(a){if(a){return a}var b=function(b,c,g){b=Number(b);c=Number(c);var a,f,e;var d=Math.max(Math.abs(b),Math.abs(c));for(a=2;a1.0E100||d<1.0E-100){b=b/d;c=c/d;e=b*b+c*c;for(a=2;a>>16&65535;var c=a&65535;var f=b>>>16&65535;var d=b&65535;var g=e*d+c*f<<16>>>0;return c*d+g|0};return b},'es6-impl','es3');$jscomp.polyfill('Math.log10',function(a){if(a){return a}var b=function(a){return Math.log(a)/Math.LN10};return b},'es6-impl','es3');$jscomp.polyfill('Math.log2',function(a){if(a){return a}var b=function(a){return Math.log(a)/Math.LN2};return b},'es6-impl','es3');$jscomp.polyfill('Math.sign',function(a){if(a){return a}var b=function(a){a=Number(a);return a===0||isNaN(a)?a:a>0?1:-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.sinh',function(a){if(a){return a}var b=Math.exp;var c=function(a){a=Number(a);if(a===0){return a}return (b(a)-b(-a))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.tanh',function(a){if(a){return a}var b=function(a){a=Number(a);if(a===0){return a}var b=Math.exp(-2*Math.abs(a));var c=(1-b)/(1+b);return a<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Math.trunc',function(a){if(a){return a}var b=function(a){a=Number(a);if(isNaN(a)||a===Infinity||a===-Infinity||a===0){return a}var b=Math.floor(Math.abs(a));return a<0?-b:b};return b},'es6-impl','es3');$jscomp.polyfill('Number.EPSILON',function(a){return Math.pow(2,-52)},'es6-impl','es3');$jscomp.polyfill('Number.MAX_SAFE_INTEGER',function(){return 9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.MIN_SAFE_INTEGER',function(){return -9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.isFinite',function(a){if(a){return a}var b=function(a){if(typeof a!=='number'){return !1}return !isNaN(a)&&a!==Infinity&&a!==-Infinity};return b},'es6-impl','es3');$jscomp.polyfill('Number.isInteger',function(a){if(a){return a}var b=function(a){if(!Number.isFinite(a)){return !1}return a===Math.floor(a)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isNaN',function(a){if(a){return a}var b=function(a){return typeof a==='number'&&isNaN(a)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isSafeInteger',function(a){if(a){return a}var b=function(a){return Number.isInteger(a)&&Math.abs(a)<=Number.MAX_SAFE_INTEGER};return b},'es6-impl','es3');$jscomp.polyfill('Object.assign',function(a){if(a){return a}var b=function(d,e){for(var c=1;c3?e:a,d);return !0}else {if(b.writable&&!Object.isFrozen(a)){a[c]=d;return !0}}return !1};return b},'es6','es5');$jscomp.polyfill('Reflect.setPrototypeOf',function(a){if(a){return a}if(typeof ''.__proto__!='object'){return null}var b=function(a,b){try{a.__proto__=b;return a.__proto__===b}catch(c){return !1}};return b},'es6','es5');$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.polyfill('Set',function(b){var c=!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!b||!b.prototype.entries||typeof Object.seal!='function'){return !1}try{b=(b);var d=Object.seal({x:4});var c=new b($jscomp.makeIterator([d]));if(!c.has(d)||c.size!=1||c.add(d)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2){return !1}var e=c.entries();var a=e.next();if(a.done||a.value[0]!=d||a.value[1]!=d){return !1}a=e.next();if(a.done||a.value[0]==d||a.value[0].x!=4||a.value[1]!=a.value[0]){return !1}return e.next().done}catch(f){return !1}}();if(c){return b}$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=function(a){this.map_=new Map();if(a){var d=$jscomp.makeIterator(a);var b;while(!(b=d.next()).done){var c=(b).value;this.add(c)}}this.size=this.map_.size};a.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};a.prototype['delete']=function(b){var a=this.map_['delete'](b);this.size=this.map_.size;return a};a.prototype.clear=function(){this.map_.clear();this.size=0};a.prototype.has=function(a){return this.map_.has(a)};a.prototype.entries=function(){return this.map_.entries()};a.prototype.values=function(){return this.map_.values()};$jscomp.initSymbol();$jscomp.initSymbolIterator();(a.prototype)[Symbol.iterator]=a.prototype.values;a.prototype.forEach=function(b,a){var c=this;this.map_.forEach(function(d){return b.call((a),d,d,c)})};return a},'es6-impl','es3');$jscomp.checkStringArgs=function(a,c,b){if(a==null){throw new TypeError("The 'this' value for String.prototype."+b+' must not be null or undefined')}if(c instanceof RegExp){throw new TypeError('First argument to String.prototype.'+b+' must not be a regular expression')}return a+''};$jscomp.polyfill('String.prototype.codePointAt',function(a){if(a){return a}var b=function(a){var d=$jscomp.checkStringArgs(this,null,'codePointAt');var e=d.length;a=Number(a)||0;if(!(a>=0&&a56319||a+1===e){return b}var c=d.charCodeAt(a+1);if(c<56320||c>57343){return b}return (b-55296)*1024+c+9216};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.endsWith',function(a){if(a){return a}var b=function(a,b){var c=$jscomp.checkStringArgs(this,a,'endsWith');a=a+'';if(b===void 0){b=c.length}var e=Math.max(0,Math.min(b|0,c.length));var d=a.length;while(d>0&&e>0){if(c[--e]!=a[--d]){return !1}}return d<=0};return b},'es6-impl','es3');$jscomp.polyfill('String.fromCodePoint',function(a){if(a){return a}var b=function(d){var b='';for(var c=0;c1114111||a!==Math.floor(a)){throw new RangeError('invalid_code_point '+a)}if(a<=65535){b+=String.fromCharCode(a)}else {a-=65536;b+=String.fromCharCode(a>>>10&1023|55296);b+=String.fromCharCode(a&1023|56320)}}return b};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.includes',function(a){if(a){return a}var b=function(a,b){var c=$jscomp.checkStringArgs(this,a,'includes');return c.indexOf(a,b||0)!==-1};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.repeat',function(a){if(a){return a}var b=function(a){var b=$jscomp.checkStringArgs(this,null,'repeat');if(a<0||a>1342177279){throw new RangeError('Invalid count value')}a=a|0;var c='';while(a){if(a&1){c+=b}if(a>>>=1){b+=b}}return c};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.startsWith',function(a){if(a){return a}var b=function(a,f){var b=$jscomp.checkStringArgs(this,a,'startsWith');a=a+'';var g=b.length;var d=a.length;var e=Math.max(0,Math.min((f)|0,b.length));var c=0;while(c=d};return b},'es6-impl','es3');$jscomp.arrayFromIterator=function(c){var b;var a=[];while(!(b=c.next()).done){a.push(b.value)}return a};$jscomp.arrayFromIterable=function(a){if(a instanceof Array){return a}else {return $jscomp.arrayFromIterator($jscomp.makeIterator(a))}};$jscomp.inherits=function(a,b){function tempCtor(){}tempCtor.prototype=b.prototype;a.prototype=new tempCtor();a.prototype.constructor=a;for(var c in b){if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);if(d){Object.defineProperty(a,c,d)}}else {a[c]=b[c]}}};$jscomp.polyfill('WeakSet',function(b){function isConformant(){if(!b||!Object.seal){return !1}try{var c=Object.seal({});var d=Object.seal({});var a=new (b)([c]);if(!a.has(c)||a.has(d)){return !1}a['delete'](c);a.add(d);return !a.has(c)&&a.has(d)}catch(e){return !1}}if(isConformant()){return b}var a=function(a){this.map_=new WeakMap();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var d=$jscomp.makeIterator(a);var b;while(!(b=d.next()).done){var c=b.value;this.add(c)}}};a.prototype.add=function(a){this.map_.set(a,!0);return this};a.prototype.has=function(a){return this.map_.has(a)};a.prototype['delete']=function(a){return this.map_['delete'](a)};return a},'es6-impl','es3');try{if(Array.prototype.values.toString().indexOf('[native code]')==-1){delete Array.prototype.values}}catch(a){}var TABLE_INDEX=0;var Properties=function(a){a=a===undefined?{}:a;this._root=a.root||document.createElement('div');this._root.setAttribute('id','properties-'+TABLE_INDEX++)};Properties.prototype.renderTo=function(a){if(a.setHtml){this._extEl=a}else {a.appendChild(this._root)}return this};Properties.prototype.inspect=function(b,c){b=b===undefined?[]:b;c=c===undefined?null:c;var e=this;var a='';var f=this._root.getAttribute('id');var d=b.length==1&&b[0].label===null?!0:!1;this._root._properties=b;if(c){a+=''}b.forEach(function(b,c){a+='';a+=d?'':'';a+='';a+=''});a+='
    '+c+'
    '+(b.label||b.name||'')+''+e.createCellProperty(b,c,f)+'
    ';if(this._extEl){this._extEl.setHtml(a)}else {this._root.innerHTML=a}return this};Properties.prototype.createCellProperty=function(a,d,e){var c;var b='';a.type=a.type||'string';a.validate=a.validate||{};switch(a.type){case 'number':b='';break;case 'string':b='';break;case 'range':break;case 'select':c='';(a.values||[]).forEach(function(b){var d,e;if(typeof b=='string'){d=e=b}else {d=b.value;e=b.label}c+=''});b='';break;case 'boolean':b='';break;case 'multiselect':c='';(a.values||[]).forEach(function(a){var d,b;var e=!1;if(typeof a=='string'){d=b=a}else {d=a.value;b=a.label;e=a.selected}c+='
    '+b+'
    '});b='
    '+c+'';break;}return b};var VALIDATES={required:function(a){return !0},allowBlank:function(a){return !(a==''||a==undefined||a==null)},min:function(a,b,c){return c=='string'?a.length>=b:a>=b},max:function(a,b,c){return c=='string'?a.length<=b:a<=b}};window.__properties__={validate:function(g,h,c){var e;var a=document.getElementById(g);var b=a?a._properties[c]:null;var d=b?b.validate:null;a.rows[c].removeAttribute('invalidate');if(d){for(e in d){var f=VALIDATES[e];if(f){if(!f(h,d[e],b.type)){return a.rows[c].setAttribute('invalidate','')}}}}}};window.Properties=Properties; \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/app/libs/trello-panels.css b/frontend/build/production/CatalogBuilder/app/libs/trello-panels.css new file mode 100644 index 000000000..7c69a381a --- /dev/null +++ b/frontend/build/production/CatalogBuilder/app/libs/trello-panels.css @@ -0,0 +1 @@ +.trello-root{position:relative;width:100%;height:100%;overflow:auto}.trello-panel{color:#1c86cf;min-width:210px;background:#f5f5f5;margin:6px 0 6px 6px;border-radius:4px;padding:4px 6px 8px 6px;font-family:sans-serif;font-size:14px;border:solid 1px #c8cdd2;box-shadow:0 1px 0 #00000063}.trello-panel-header{font-weight:bold;padding:6px 4px}.trello-card{background:#fff;border-radius:3px;padding:8px;margin-top:6px;box-shadow:0 1px 1px rgba(0,0,0,0.2);color:#000}[trello-card-active]{background:#2986cf;color:#fff;box-shadow:none}.trello-card:hover:not([trello-card-active]){cursor:pointer;box-shadow:0 1px 4px #0000006e;background:#f1f1f1} \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/app/libs/trello-panels.js b/frontend/build/production/CatalogBuilder/app/libs/trello-panels.js new file mode 100644 index 000000000..077387603 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/app/libs/trello-panels.js @@ -0,0 +1 @@ +var $jscomp={};$jscomp.scope={};$jscomp.defineProperty=typeof Object.defineProperties=='function'?Object.defineProperty:function(b,c,a){a=(a);if(a.get||a.set){throw new TypeError('ES3 does not support getters and setters.')}if(b==Array.prototype||b==Object.prototype){return}b[c]=a.value};$jscomp.getGlobal=function(a){return typeof window!='undefined'&&window===a?a:typeof global!='undefined'&&global!=null?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(i,f,j,k){if(!f){return}var a=$jscomp.global;var b=i.split('.');for(var e=0;eb){if(--a in this){this[--c]=this[a]}else {delete this[c]}}}return this};return b},'es6-impl','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global.Symbol){$jscomp.global.Symbol=$jscomp.Symbol}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return ($jscomp.SYMBOL_PREFIX+(a||'')+$jscomp.symbolCounter_++)};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;if(!a){a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol('iterator')}if(typeof Array.prototype[a]!='function'){$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}})}$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){if(bc){a=c}a=Number(a);if(a<0){a=Math.max(0,c+a)}for(var d=Number(b||0);d-0.25){var e=a;var f=1;var b=a;var c=0;var d=1;while(c!=b){e*=a;d*=-1;b=(c=b)+d*e/++f}return b}return Math.log(1+a)};return b},'es6-impl','es3');$jscomp.polyfill('Math.atanh',function(b){if(b){return b}var a=Math.log1p;var c=function(b){b=Number(b);return (a(b)-a(-b))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.cbrt',function(a){if(a){return a}var b=function(a){if(a===0){return a}a=Number(a);var b=Math.pow(Math.abs(a),1/3);return a<0?-b:b};return b},'es6-impl','es3');$jscomp.polyfill('Math.clz32',function(a){if(a){return a}var b=function(a){a=Number(a)>>>0;if(a===0){return 32}var b=0;if((a&4.29490176E9)===0){a<<=16;b+=16}if((a&4.27819008E9)===0){a<<=8;b+=8}if((a&4.02653184E9)===0){a<<=4;b+=4}if((a&3.221225472E9)===0){a<<=2;b+=2}if((a&2.147483648E9)===0){b++}return b};return b},'es6-impl','es3');$jscomp.polyfill('Math.cosh',function(a){if(a){return a}var b=Math.exp;var c=function(a){a=Number(a);return (b(a)+b(-a))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.expm1',function(a){if(a){return a}var b=function(a){a=Number(a);if(a<0.25&&a>-0.25){var d=a;var e=1;var b=a;var c=0;while(c!=b){d*=a/++e;b=(c=b)+d}return b}return Math.exp(a)-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.hypot',function(a){if(a){return a}var b=function(b,c,g){b=Number(b);c=Number(c);var a,f,e;var d=Math.max(Math.abs(b),Math.abs(c));for(a=2;a1.0E100||d<1.0E-100){b=b/d;c=c/d;e=b*b+c*c;for(a=2;a>>16&65535;var c=a&65535;var f=b>>>16&65535;var d=b&65535;var g=e*d+c*f<<16>>>0;return c*d+g|0};return b},'es6-impl','es3');$jscomp.polyfill('Math.log10',function(a){if(a){return a}var b=function(a){return Math.log(a)/Math.LN10};return b},'es6-impl','es3');$jscomp.polyfill('Math.log2',function(a){if(a){return a}var b=function(a){return Math.log(a)/Math.LN2};return b},'es6-impl','es3');$jscomp.polyfill('Math.sign',function(a){if(a){return a}var b=function(a){a=Number(a);return a===0||isNaN(a)?a:a>0?1:-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.sinh',function(a){if(a){return a}var b=Math.exp;var c=function(a){a=Number(a);if(a===0){return a}return (b(a)-b(-a))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.tanh',function(a){if(a){return a}var b=function(a){a=Number(a);if(a===0){return a}var b=Math.exp(-2*Math.abs(a));var c=(1-b)/(1+b);return a<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Math.trunc',function(a){if(a){return a}var b=function(a){a=Number(a);if(isNaN(a)||a===Infinity||a===-Infinity||a===0){return a}var b=Math.floor(Math.abs(a));return a<0?-b:b};return b},'es6-impl','es3');$jscomp.polyfill('Number.EPSILON',function(a){return Math.pow(2,-52)},'es6-impl','es3');$jscomp.polyfill('Number.MAX_SAFE_INTEGER',function(){return 9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.MIN_SAFE_INTEGER',function(){return -9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.isFinite',function(a){if(a){return a}var b=function(a){if(typeof a!=='number'){return !1}return !isNaN(a)&&a!==Infinity&&a!==-Infinity};return b},'es6-impl','es3');$jscomp.polyfill('Number.isInteger',function(a){if(a){return a}var b=function(a){if(!Number.isFinite(a)){return !1}return a===Math.floor(a)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isNaN',function(a){if(a){return a}var b=function(a){return typeof a==='number'&&isNaN(a)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isSafeInteger',function(a){if(a){return a}var b=function(a){return Number.isInteger(a)&&Math.abs(a)<=Number.MAX_SAFE_INTEGER};return b},'es6-impl','es3');$jscomp.polyfill('Object.assign',function(a){if(a){return a}var b=function(d,e){for(var c=1;c3?e:a,d);return !0}else {if(b.writable&&!Object.isFrozen(a)){a[c]=d;return !0}}return !1};return b},'es6','es5');$jscomp.polyfill('Reflect.setPrototypeOf',function(a){if(a){return a}if(typeof ''.__proto__!='object'){return null}var b=function(a,b){try{a.__proto__=b;return a.__proto__===b}catch(c){return !1}};return b},'es6','es5');$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.polyfill('Set',function(b){var c=!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!b||!b.prototype.entries||typeof Object.seal!='function'){return !1}try{b=(b);var d=Object.seal({x:4});var c=new b($jscomp.makeIterator([d]));if(!c.has(d)||c.size!=1||c.add(d)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2){return !1}var e=c.entries();var a=e.next();if(a.done||a.value[0]!=d||a.value[1]!=d){return !1}a=e.next();if(a.done||a.value[0]==d||a.value[0].x!=4||a.value[1]!=a.value[0]){return !1}return e.next().done}catch(f){return !1}}();if(c){return b}$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=function(a){this.map_=new Map();if(a){var d=$jscomp.makeIterator(a);var b;while(!(b=d.next()).done){var c=(b).value;this.add(c)}}this.size=this.map_.size};a.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};a.prototype['delete']=function(b){var a=this.map_['delete'](b);this.size=this.map_.size;return a};a.prototype.clear=function(){this.map_.clear();this.size=0};a.prototype.has=function(a){return this.map_.has(a)};a.prototype.entries=function(){return this.map_.entries()};a.prototype.values=function(){return this.map_.values()};$jscomp.initSymbol();$jscomp.initSymbolIterator();(a.prototype)[Symbol.iterator]=a.prototype.values;a.prototype.forEach=function(b,a){var c=this;this.map_.forEach(function(d){return b.call((a),d,d,c)})};return a},'es6-impl','es3');$jscomp.checkStringArgs=function(a,c,b){if(a==null){throw new TypeError("The 'this' value for String.prototype."+b+' must not be null or undefined')}if(c instanceof RegExp){throw new TypeError('First argument to String.prototype.'+b+' must not be a regular expression')}return a+''};$jscomp.polyfill('String.prototype.codePointAt',function(a){if(a){return a}var b=function(a){var d=$jscomp.checkStringArgs(this,null,'codePointAt');var e=d.length;a=Number(a)||0;if(!(a>=0&&a56319||a+1===e){return b}var c=d.charCodeAt(a+1);if(c<56320||c>57343){return b}return (b-55296)*1024+c+9216};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.endsWith',function(a){if(a){return a}var b=function(a,b){var c=$jscomp.checkStringArgs(this,a,'endsWith');a=a+'';if(b===void 0){b=c.length}var e=Math.max(0,Math.min(b|0,c.length));var d=a.length;while(d>0&&e>0){if(c[--e]!=a[--d]){return !1}}return d<=0};return b},'es6-impl','es3');$jscomp.polyfill('String.fromCodePoint',function(a){if(a){return a}var b=function(d){var b='';for(var c=0;c1114111||a!==Math.floor(a)){throw new RangeError('invalid_code_point '+a)}if(a<=65535){b+=String.fromCharCode(a)}else {a-=65536;b+=String.fromCharCode(a>>>10&1023|55296);b+=String.fromCharCode(a&1023|56320)}}return b};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.includes',function(a){if(a){return a}var b=function(a,b){var c=$jscomp.checkStringArgs(this,a,'includes');return c.indexOf(a,b||0)!==-1};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.repeat',function(a){if(a){return a}var b=function(a){var b=$jscomp.checkStringArgs(this,null,'repeat');if(a<0||a>1342177279){throw new RangeError('Invalid count value')}a=a|0;var c='';while(a){if(a&1){c+=b}if(a>>>=1){b+=b}}return c};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.startsWith',function(a){if(a){return a}var b=function(a,f){var b=$jscomp.checkStringArgs(this,a,'startsWith');a=a+'';var g=b.length;var d=a.length;var e=Math.max(0,Math.min((f)|0,b.length));var c=0;while(c=d};return b},'es6-impl','es3');$jscomp.arrayFromIterator=function(c){var b;var a=[];while(!(b=c.next()).done){a.push(b.value)}return a};$jscomp.arrayFromIterable=function(a){if(a instanceof Array){return a}else {return $jscomp.arrayFromIterator($jscomp.makeIterator(a))}};$jscomp.inherits=function(a,b){function tempCtor(){}tempCtor.prototype=b.prototype;a.prototype=new tempCtor();a.prototype.constructor=a;for(var c in b){if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);if(d){Object.defineProperty(a,c,d)}}else {a[c]=b[c]}}};$jscomp.polyfill('WeakSet',function(b){function isConformant(){if(!b||!Object.seal){return !1}try{var c=Object.seal({});var d=Object.seal({});var a=new (b)([c]);if(!a.has(c)||a.has(d)){return !1}a['delete'](c);a.add(d);return !a.has(c)&&a.has(d)}catch(e){return !1}}if(isConformant()){return b}var a=function(a){this.map_=new WeakMap();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var d=$jscomp.makeIterator(a);var b;while(!(b=d.next()).done){var c=b.value;this.add(c)}}};a.prototype.add=function(a){this.map_.set(a,!0);return this};a.prototype.has=function(a){return this.map_.has(a)};a.prototype['delete']=function(a){return this.map_['delete'](a)};return a},'es6-impl','es3');try{if(Array.prototype.values.toString().indexOf('[native code]')==-1){delete Array.prototype.values}}catch(a){}var activeCard;var TrelloPanels=function(a){a=a===undefined?{}:a;var b=this;this._root=a.root||document.createElement('div');this._root.setAttribute('class','trello-root');this._root.onclick=function(e){var c,d;var a=e.target.closest('.trello-card');if(a){c=b._panels[a.getAttribute('panel-index')];d=c.cards[a.getAttribute('card-index')];if(activeCard){activeCard.removeAttribute('trello-card-active')}activeCard=a;activeCard.setAttribute('trello-card-active','');if(b.onCardActivate){b.onCardActivate(d,c)}}}};TrelloPanels.prototype.renderTo=function(a){if(a.setHtml){this._extEl=a}else {a.appendChild(this._root)}return this};TrelloPanels.prototype.setPanels=function(b){var a='';this._panels=b;b.forEach(function(b,c){a+=''});a+='
    \n
    \n
    '+b.label+'
    ';b.cards.forEach(function(d,b){a+='
    '+d.label+'
    '});a+='
    \n
    ';if(this._extEl){this._extEl.setHtml(a)}else {this._root.innerHTML=a}return this};window.__trellopanels__={click:function(a){}};window.TrelloPanels=TrelloPanels; \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/index.html b/frontend/build/production/CatalogBuilder/index.html new file mode 100644 index 000000000..7880b61fa --- /dev/null +++ b/frontend/build/production/CatalogBuilder/index.html @@ -0,0 +1,127 @@ + + + + + + + + CatalogBuilder + + + + + + + + + diff --git a/frontend/build/production/CatalogBuilder/resources/CatalogBuilder-all.css b/frontend/build/production/CatalogBuilder/resources/CatalogBuilder-all.css new file mode 100644 index 000000000..5a188414c --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/CatalogBuilder-all.css @@ -0,0 +1,2 @@ +@import 'CatalogBuilder-all_1.css'; +@import 'CatalogBuilder-all_2.css'; diff --git a/frontend/build/production/CatalogBuilder/resources/CatalogBuilder-all_1.css b/frontend/build/production/CatalogBuilder/resources/CatalogBuilder-all_1.css new file mode 100644 index 000000000..238b9ce41 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/CatalogBuilder-all_1.css @@ -0,0 +1 @@ +.x-size-monitored{position:relative}.x-size-monitors{position:absolute;left:0;top:0;width:100%;height:100%;visibility:hidden;overflow:hidden}.x-size-monitors > *{width:100%;height:100%;overflow:hidden}.x-size-monitors.scroll > *.shrink::after{content:'';display:block;width:200%;height:200%;min-width:1px;min-height:1px}.x-size-monitors.scroll > *.expand::after{content:'';display:block;width:100000px;height:100000px}.x-size-monitors.overflowchanged > *.shrink > *{width:100%;height:100%}.x-size-monitors.overflowchanged > *.expand > *{width:200%;height:200%}.x-size-change-detector{visibility:hidden;position:absolute;left:0;top:0;z-index:-1;width:100%;height:100%;overflow:hidden}.x-size-change-detector > *{visibility:hidden}.x-size-change-detector-shrink > *{width:200%;height:200%}.x-size-change-detector-expand > *{width:100000px;height:100000px}@-webkit-keyframes x-paint-monitor-helper{from{zoom:1}to{zoom:1}}@keyframes x-paint-monitor-helper{from{zoom:1}to{zoom:1}}.x-paint-monitored{position:relative}.x-paint-monitor{width:0 !important;height:0 !important;visibility:hidden}.x-paint-monitor.cssanimation{-webkit-animation-duration:0.0001ms;-webkit-animation-name:x-paint-monitor-helper;animation-duration:0.0001ms;animation-name:x-paint-monitor-helper}.x-paint-monitor.overflowchange{overflow:hidden}.x-paint-monitor.overflowchange::after{content:'';display:block;width:1px !important;height:1px !important}.x-progress{border-style:solid;overflow:hidden;position:relative}.x-progress-bar{height:100%;width:0}.x-progress-text,.x-progress-bar{overflow:hidden;position:absolute}.x-translatable{position:absolute !important;top:500000px !important;left:500000px !important;overflow:visible !important;z-index:1}.x-translatable-hboxfix{position:absolute;min-width:100%;top:0;left:0}.x-translatable-hboxfix > .x-translatable{position:relative !important}.x-translatable-container{overflow:hidden;width:auto;height:auto;position:absolute;top:0;right:0;bottom:0;left:0}.x-translatable-container::before{content:'';display:block;width:1000000px;height:1000000px;visibility:hidden}.x-scroll-container{overflow:hidden;position:relative}.x-scroll-scroller{float:left;position:relative;min-width:100%;min-height:100%}.x-domscroller-spacer{position:absolute;height:1px;width:1px;font-size:0;line-height:0}.x-body{margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.x-no-touch-scroll{touch-action:none;-ms-touch-action:none}@-ms-viewport{width:device-width}img{border:0}.x-border-box,.x-border-box *{box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-webkit-box-sizing:border-box}.x-ltr{direction:ltr}.x-clear{overflow:hidden;clear:both;font-size:0;line-height:0;display:table}.x-layer{position:absolute !important;overflow:hidden}.x-fixed-layer{position:fixed !important;overflow:hidden}.x-shim{position:absolute;left:0;top:0;overflow:hidden;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-hidden-display{display:none !important}.x-hidden-visibility{visibility:hidden !important}.x-hidden,.x-hidden-offsets{display:block !important;visibility:hidden !important;position:absolute !important;top:-10000px !important}.x-hidden-clip{position:absolute !important;clip:rect(0,0,0,0)}.x-masked-relative{position:relative}.x-ie-shadow{background-color:#777;position:absolute;overflow:hidden}.x-unselectable{user-select:none;-o-user-select:none;-ms-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-drag:none;cursor:default}.x-selectable{cursor:auto;-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text;-o-user-select:text}.x-list-plain{list-style-type:none;margin:0;padding:0}.x-table-plain{border-collapse:collapse;border-spacing:0;font-size:1em}.x-frame-tl,.x-frame-tr,.x-frame-tc,.x-frame-bl,.x-frame-br,.x-frame-bc{overflow:hidden;background-repeat:no-repeat}.x-frame-tc,.x-frame-bc{background-repeat:repeat-x}td.x-frame-tl,td.x-frame-tr,td.x-frame-bl,td.x-frame-br{width:1px}.x-frame-mc{background-repeat:repeat-x;overflow:hidden}.x-proxy-el{position:absolute;background:#b4b4b4;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-css-shadow{position:absolute;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px}.x-item-disabled,.x-item-disabled *{cursor:default;pointer-events:none}.x-component,.x-container{position:relative}:focus{outline:none}.x-body .x-sync-repaint:before,.x-body .x-sync-repaint:after{content:none !important}.x-position-relative{position:relative !important}.x-box-item{position:absolute !important;left:0;top:0}.x-autocontainer-outerCt{display:table}.x-autocontainer-innerCt{display:table-cell;height:100%;vertical-align:top}.x-mask{z-index:100;position:absolute;top:0;left:0;width:100%;height:100%;outline:none !important}.x-ie8 .x-mask{background-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.x-mask-fixed{position:fixed}.x-mask-msg{position:absolute}.x-btn{display:inline-block;outline:0;cursor:pointer;white-space:nowrap;text-decoration:none;vertical-align:top;overflow:hidden;position:relative}.x-btn > .x-frame{height:100%;width:100%}.x-btn-wrap{height:100%;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.x-btn-wrap.x-btn-arrow-bottom,.x-btn-wrap.x-btn-split-bottom{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.x-ie9m .x-btn-wrap{display:table;border-spacing:0}.x-btn-button{white-space:nowrap;line-height:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;min-width:0}.x-btn-button.x-btn-icon-top,.x-btn-button.x-btn-icon-bottom{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.x-ie9m .x-btn-button{display:table-cell;vertical-align:middle}.x-btn-inner{overflow:hidden;text-overflow:ellipsis;-ms-flex-negative:1;display:block}.x-ie9m .x-btn-inner{display:inline-block;vertical-align:middle}.x-btn-icon.x-btn-no-text > .x-btn-inner{display:none}.x-btn-icon-el{display:none;vertical-align:middle;text-align:center;background-position:center center;background-repeat:no-repeat}.x-btn-icon > .x-btn-icon-el{display:block}.x-ie9m .x-btn-icon-left > .x-btn-icon-el,.x-ie9m .x-btn-icon-right > .x-btn-icon-el{display:inline-block}.x-btn-button-center{text-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.x-btn-button-left{text-align:left;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.x-btn-button-right{text-align:right;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.x-btn-arrow:after,.x-btn-split:after{display:block;background-repeat:no-repeat;content:'';box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-webkit-box-sizing:border-box;text-align:center}.x-btn-arrow-right:after,.x-btn-split-right:after{background-position:right center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.x-ie9m .x-btn-arrow-right:after,.x-ie9m .x-btn-split-right:after{display:table-cell;vertical-align:middle}.x-btn-arrow-bottom:after,.x-btn-split-bottom:after{background-position:center bottom;content:'\00a0';line-height:0}.x-ie9m .x-btn-arrow-bottom:after,.x-ie9m .x-btn-split-bottom:after{display:table-row}.x-btn-split-right > .x-btn-button:after{position:absolute;display:block;top:-100%;right:0;height:300%;content:''}.x-btn-split-bottom > .x-btn-button:after{position:absolute;display:block;bottom:0;left:-100%;font-size:0;width:300%;content:''}.x-btn-mc{overflow:visible}.x-title-icon{background-repeat:no-repeat;background-position:0 0;vertical-align:middle;line-height:1;text-align:center}.x-title{display:table;table-layout:fixed}.x-title-text{display:table-cell;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle}.x-title-align-left{text-align:left}.x-title-align-center{text-align:center}.x-title-align-right{text-align:right}.x-title-rotate-right{-webkit-transform:rotate(90deg);-webkit-transform-origin:0 0;-moz-transform:rotate(90deg);-moz-transform-origin:0 0;-ms-transform:rotate(90deg);-ms-transform-origin:0 0;transform:rotate(90deg);transform-origin:0 0}.x-ie8 .x-title-rotate-right{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.x-title-rotate-left{-webkit-transform:rotate(270deg);-webkit-transform-origin:100% 0;-moz-transform:rotate(270deg);-moz-transform-origin:100% 0;-ms-transform:rotate(270deg);-ms-transform-origin:100% 0;transform:rotate(270deg);transform-origin:100% 0}.x-ie8 .x-title-rotate-left{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.x-horizontal.x-header .x-title-rotate-right.x-title-align-left > .x-title-item{vertical-align:bottom}.x-horizontal.x-header .x-title-rotate-right.x-title-align-center > .x-title-item{vertical-align:middle}.x-horizontal.x-header .x-title-rotate-right.x-title-align-right > .x-title-item{vertical-align:top}.x-horizontal.x-header .x-title-rotate-left.x-title-align-left > .x-title-item{vertical-align:top}.x-horizontal.x-header .x-title-rotate-left.x-title-align-center > .x-title-item{vertical-align:middle}.x-horizontal.x-header .x-title-rotate-left.x-title-align-right > .x-title-item{vertical-align:bottom}.x-vertical.x-header .x-title-rotate-none.x-title-align-left > .x-title-item{vertical-align:top}.x-vertical.x-header .x-title-rotate-none.x-title-align-center > .x-title-item{vertical-align:middle}.x-vertical.x-header .x-title-rotate-none.x-title-align-right > .x-title-item{vertical-align:bottom}.x-title-icon-wrap{display:table-cell;text-align:center;vertical-align:middle;line-height:0}.x-title-icon-wrap.x-title-icon-top,.x-title-icon-wrap.x-title-icon-bottom{display:table-row}.x-title-icon{display:inline-block;vertical-align:middle;background-position:center;background-repeat:no-repeat}.x-tool{font-size:0;line-height:0}.x-header > .x-box-inner,.x-panel-header-mc > .x-box-inner,.x-window-header-mc > .x-box-inner{overflow:visible}.x-splitter{font-size:1px}.x-splitter-horizontal{cursor:e-resize;cursor:row-resize}.x-splitter-vertical{cursor:e-resize;cursor:col-resize}.x-splitter-collapsed,.x-splitter-horizontal-noresize,.x-splitter-vertical-noresize{cursor:default}.x-splitter-active{z-index:4}.x-collapse-el{position:absolute;background-repeat:no-repeat}.x-splitter-focus{z-index:4}.x-box-layout-ct{overflow:hidden}.x-box-target{position:absolute;width:20000px;top:0;left:0;height:1px}.x-box-inner{overflow:hidden;position:relative;left:0;top:0}.x-box-scroller{position:absolute;background-repeat:no-repeat;background-position:center;line-height:0;font-size:0;text-align:center}.x-box-scroller-top{top:0}.x-box-scroller-right{right:0}.x-box-scroller-bottom{bottom:0}.x-box-scroller-left{left:0}.x-box-menu-body-horizontal{float:left}.x-box-menu-after{position:relative;float:left}.x-toolbar-text{white-space:nowrap}.x-toolbar-separator{display:block;font-size:1px;overflow:hidden;cursor:default;border:0;width:0;height:0;line-height:0px}.x-toolbar-scroller{padding-left:0}.x-toolbar-plain{border:0}.x-dd-drag-proxy,.x-dd-drag-current{z-index:1000000!important;pointer-events:none}.x-dd-drag-proxy{display:table}.x-dd-drag-repair .x-dd-drag-ghost{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-dd-drag-repair .x-dd-drop-icon{display:none}.x-dd-drag-ghost,.x-dd-drop-icon{display:table-cell;vertical-align:middle}.x-dd-drag-ghost{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";opacity:0.85;white-space:nowrap}.x-dd-drop-icon{height:26px;width:26px;background-color:transparent;background-position:center;background-repeat:no-repeat}.x-docked{position:absolute !important;z-index:2}.x-docked-vertical{position:static}.x-docked-top{border-bottom-width:0 !important}.x-docked-bottom{border-top-width:0 !important}.x-docked-left{border-right-width:0 !important}.x-docked-right{border-left-width:0 !important}.x-docked-noborder-top{border-top-width:0 !important}.x-docked-noborder-right{border-right-width:0 !important}.x-docked-noborder-bottom{border-bottom-width:0 !important}.x-docked-noborder-left{border-left-width:0 !important}.x-noborder-l{border-left-width:0 !important}.x-noborder-b{border-bottom-width:0 !important}.x-noborder-bl{border-bottom-width:0 !important;border-left-width:0 !important}.x-noborder-r{border-right-width:0 !important}.x-noborder-rl{border-right-width:0 !important;border-left-width:0 !important}.x-noborder-rb{border-right-width:0 !important;border-bottom-width:0 !important}.x-noborder-rbl{border-right-width:0 !important;border-bottom-width:0 !important;border-left-width:0 !important}.x-noborder-t{border-top-width:0 !important}.x-noborder-tl{border-top-width:0 !important;border-left-width:0 !important}.x-noborder-tb{border-top-width:0 !important;border-bottom-width:0 !important}.x-noborder-tbl{border-top-width:0 !important;border-bottom-width:0 !important;border-left-width:0 !important}.x-noborder-tr{border-top-width:0 !important;border-right-width:0 !important}.x-noborder-trl{border-top-width:0 !important;border-right-width:0 !important;border-left-width:0 !important}.x-noborder-trb{border-top-width:0 !important;border-right-width:0 !important;border-bottom-width:0 !important}.x-noborder-trbl{border-width:0 !important}.x-panel,.x-plain{overflow:hidden;position:relative}.x-panel{outline:none}td.x-frame-mc{vertical-align:top}.x-panel-body{overflow:hidden;position:relative}.x-panel-header-plain,.x-panel-body-plain{border:0;padding:0}.x-panel-collapsed-mini{visibility:hidden}.x-viewport,.x-viewport > .x-body{margin:0;padding:0;border:0 none;overflow:hidden;position:static;touch-action:none;-ms-touch-action:none}.x-viewport{height:100%}.x-viewport > .x-body{min-height:100%}.x-resizable-overlay{position:absolute;left:0;top:0;width:100%;height:100%;display:none;z-index:200000;background-color:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-window{outline:none;overflow:hidden}.x-window .x-window-wrap{position:relative}.x-window-body{position:relative;overflow:hidden}.x-form-item{display:table;table-layout:fixed;border-spacing:0;border-collapse:separate}.x-form-item-label{overflow:hidden}.x-form-item.x-form-item-no-label > .x-form-item-label{display:none}.x-form-item-label,.x-form-item-body{display:table-cell}.x-ie8 .x-form-fieldcontainer .x-form-item-label-top + .x-form-item-body{display:table-row}.x-form-item-body{vertical-align:middle;height:100%}.x-form-item-label-inner{display:inline-block}.x-form-item-label-top{display:table-row;height:1px}.x-form-item-label-top > .x-form-item-label-inner{display:table-cell}.x-form-item-label-top-side-error:after{display:table-cell;content:''}.x-form-item-label-right{text-align:right}.x-form-error-wrap-side{display:table-cell;vertical-align:middle}.x-form-error-wrap-under{display:table-row;height:1px}.x-form-error-wrap-under > .x-form-error-msg{display:table-cell}.x-form-error-wrap-under-side-label:before{display:table-cell;content:'';pointer-events:none}.x-form-invalid-icon{overflow:hidden}.x-form-invalid-icon ul{display:none}.x-form-trigger-wrap{display:table;width:100%;height:100%}.x-gecko .x-form-trigger-wrap{display:-moz-inline-box;display:inline-flex;vertical-align:top}.x-form-text-wrap{display:table-cell;overflow:hidden;height:100%}.x-gecko .x-form-text-wrap{display:block;-moz-box-flex:1;flex:1}.x-form-item-body.x-form-text-grow{min-width:inherit;max-width:inherit}.x-form-text{border:0;margin:0;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;display:block;background:repeat-x 0 0;width:100%;height:100%}.x-webkit .x-form-text{height:calc(100% + 3px)}.x-form-trigger{display:table-cell;vertical-align:top;cursor:pointer;overflow:hidden;background-repeat:no-repeat;text-align:center;line-height:0;white-space:nowrap}.x-item-disabled .x-form-trigger{cursor:default}.x-form-trigger.x-form-trigger-cmp{background:none;border:0}.x-gecko .x-form-trigger{display:block}.x-form-textarea{overflow:auto;resize:none}div.x-form-text-grow .x-form-textarea{min-height:inherit}.x-message-box .x-form-display-field{height:auto}.x-form-cb-wrap{vertical-align:top}.x-form-cb-wrap-inner{position:relative}.x-form-cb{position:absolute;left:0;right:auto;vertical-align:top;overflow:hidden;padding:0;border:0;cursor:default}.x-form-cb::-moz-focus-inner{padding:0;border:0}.x-form-cb-after{left:auto;right:0}.x-form-cb-label{display:inline-block}.x-form-cb-label.x-form-cb-no-box-label{display:none}.x-view-item-focused{outline:1px dashed #157fcc!important;outline-offset:-1px}.x-ie9 .x-boundlist-list-ct{min-height:0%}.x-tip{position:absolute;overflow:visible}.x-tip-body{overflow:hidden;position:relative}.x-tip-anchor{position:absolute;overflow:hidden;border-style:solid}.x-fit-item{position:relative}.x-grid-view{overflow:hidden;position:relative}.x-grid-row-table{width:0;table-layout:fixed;border:0 none;border-collapse:separate;border-spacing:0}.x-grid-item{table-layout:fixed;outline:none}.x-grid-row{outline:none}.x-grid-td{overflow:hidden;border-width:0;vertical-align:top}.x-grid-cell-inner{overflow:hidden;white-space:nowrap}.x-wrap-cell .x-grid-cell-inner{white-space:normal}.x-grid-resize-marker{position:absolute;z-index:5;top:0}.x-col-move-top,.x-col-move-bottom{position:absolute;top:0;line-height:0;font-size:0;overflow:hidden;z-index:20000;background:no-repeat center top transparent}.x-grid-header-ct{cursor:default}.x-column-header{position:absolute;overflow:hidden;background-repeat:repeat-x}.x-column-header-inner{white-space:nowrap;position:relative;overflow:hidden}.x-leaf-column-header{height:100%}.x-leaf-column-header .x-column-header-text-container{height:100%}.x-column-header-text-container{width:100%;display:table;table-layout:fixed}.x-column-header-text-container.x-column-header-text-container-auto{table-layout:auto}.x-column-header-text-wrapper{display:table-cell;vertical-align:middle}.x-column-header-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.x-column-header-text-inner{background-repeat:no-repeat}.x-column-header-trigger{display:none;height:100%;background-repeat:no-repeat;position:absolute;right:0;top:0;text-align:center}.x-ie9m .x-column-header-trigger{z-index:6}.x-column-header-over .x-column-header-trigger,.x-column-header-open .x-column-header-trigger{display:block}.x-column-header-align-right{text-align:right}.x-column-header-align-left{text-align:left}.x-column-header-align-center{text-align:center}.x-menu{outline:none}.x-menu-body{position:relative}.x-menu-item{white-space:nowrap;overflow:hidden;border-color:transparent;border-style:solid}.x-menu-item-cmp{margin:2px}.x-menu-item-cmp .x-field-label-cell{vertical-align:middle}.x-menu-icon-separator{position:absolute;top:0px;z-index:0;height:100%;overflow:hidden}.x-menu-plain .x-menu-icon-separator{display:none}.x-menu-item-link{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;text-decoration:none;outline:0;display:block}.x-menu-item-link-href{-webkit-touch-callout:default}.x-menu-item-text{display:inline-block}.x-menu-item-icon,.x-menu-item-icon-right,.x-menu-item-arrow{font-size:0;position:absolute;text-align:center;background-repeat:no-repeat}.x-border-layout-ct{overflow:hidden}.x-border-layout-ct{position:relative}.x-border-region-slide-in{z-index:5}.x-region-collapsed-placeholder{z-index:4}.x-resizable-wrapped{box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-webkit-box-sizing:border-box}.x-column-header-checkbox .x-column-header-text{display:block;background-repeat:no-repeat;font-size:0}.x-grid-cell-row-checker{vertical-align:middle;text-align:center;background-repeat:no-repeat;font-size:0}.x-tab{display:block;outline:0;cursor:pointer;white-space:nowrap;text-decoration:none;vertical-align:top;overflow:hidden;position:relative}.x-tab > .x-frame{height:100%;width:100%}.x-tab-wrap{height:100%;width:100%;display:table;border-spacing:0}.x-tab-button{white-space:nowrap;line-height:0;position:relative;display:table-cell;vertical-align:middle}.x-tab-inner{overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:middle}.x-tab-icon.x-tab-no-text > .x-tab-inner{display:none}.x-tab-icon-el{display:none;vertical-align:middle;text-align:center;background-position:center center;background-repeat:no-repeat}.x-tab-icon > .x-tab-icon-el{display:inline-block}.x-tab-icon-top > .x-tab-icon-el,.x-tab-icon-bottom > .x-tab-icon-el{display:block}.x-tab-button-center{text-align:center}.x-tab-button-left{text-align:left}.x-tab-button-right{text-align:right}.x-tab-mc{overflow:visible}.x-tab{z-index:1}.x-tab-active{z-index:3}.x-tab-button{position:relative}.x-tab-close-btn{display:block;position:absolute;overflow:hidden;font-size:0;line-height:0}.x-tab-rotate-left{-webkit-transform:rotate(270deg);-webkit-transform-origin:100% 0;-moz-transform:rotate(270deg);-moz-transform-origin:100% 0;-ms-transform:rotate(270deg);-ms-transform-origin:100% 0;transform:rotate(270deg);transform-origin:100% 0}.x-ie8 .x-tab-rotate-left{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.x-tab-rotate-right{-webkit-transform:rotate(90deg);-webkit-transform-origin:0 0;-moz-transform:rotate(90deg);-moz-transform-origin:0 0;-ms-transform:rotate(90deg);-ms-transform-origin:0 0;transform:rotate(90deg);transform-origin:0 0}.x-ie8 .x-tab-rotate-right{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.x-tab-tr,.x-tab-br,.x-tab-mr,.x-tab-tl,.x-tab-bl,.x-tab-ml{width:1px}.x-tab-bar{z-index:0;position:relative}.x-tab-bar-strip{position:absolute;line-height:0;font-size:0;z-index:2}.x-tab-bar-top > .x-tab-bar-strip{bottom:0}.x-tab-bar-bottom > .x-tab-bar-strip{top:0}.x-tab-bar-left > .x-tab-bar-strip{right:0}.x-tab-bar-right > .x-tab-bar-strip{left:0}.x-tab-bar-horizontal .x-tab-bar-strip{width:100%;left:0}.x-tab-bar-vertical{display:table-cell}.x-tab-bar-vertical .x-tab-bar-strip{height:100%;top:0}.x-tab-bar-plain{background:transparent !important}.x-box-scroller-plain{background-color:transparent !important}.x-autowidth-table .x-grid-item{table-layout:auto;width:auto !important}.x-tree-view{overflow:hidden}.x-tree-elbow-img,.x-tree-icon{display:inline-block;text-align:center;background-repeat:no-repeat;background-position:0 center;vertical-align:top}.x-tree-checkbox{display:inline-block;vertical-align:top;position:relative}.x-tree-animator-wrap{overflow:hidden}.x-scroll-indicator{position:absolute;background-color:#000;opacity:0.5;border-radius:3px;margin:2px}.x-scroll-indicator-x{bottom:0;left:0;height:6px}.x-scroll-indicator-y{right:0;top:0;width:6px}.x-body{color:#000;font-size:13px;line-height:17px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;background:#fff}.x-animating-size,.x-collapsed{overflow:hidden!important}.x-mask{background-image:none;background-color:rgba(255, 255, 255, 0.7);cursor:default;border-style:solid;border-width:1px;border-color:transparent}.x-ie8 .x-mask{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#b3ffffff, endColorstr=#b3ffffff);zoom:1}.x-mask.x-focus{border-style:solid;border-width:1px;border-color:#157fcc}.x-mask-msg{padding:8px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;background:#e5e5e5}.x-mask-msg-inner{padding:0;background-color:transparent;color:#666;font:300 13px helvetica, arial, verdana, sans-serif}.x-mask-msg-text{padding:21px 0 0;background-image:url(images/loadmask/loading.gif);background-repeat:no-repeat;background-position:center 0}.x-progress-default{background-color:#f5f5f5;border-width:0;height:20px;border-color:#157fcc}.x-progress-default .x-progress-bar-default{background-image:none;background-color:#c2ddf2}.x-progress-default .x-progress-text{color:#666;font-weight:300;font-size:13px;font-family:helvetica, arial, verdana, sans-serif;text-align:center;line-height:20px}.x-progress-default .x-progress-text-back{color:#666;line-height:20px}.x-progressbar-default-cell > .x-grid-cell-inner,.x-progressbarwidget-default-cell > .x-grid-cell-inner{padding-top:2px;padding-bottom:2px}.x-progressbar-default-cell > .x-grid-cell-inner .x-progress-default,.x-progressbarwidget-default-cell > .x-grid-cell-inner .x-progress-default{height:20px}.x-btn-default-small{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:#3892d4}.x-btn-default-small-mc{background-color:#3892d4}.x-nbr .x-btn-default-small{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-small-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-default-small-tl{background-position:0 -6px}.x-btn-default-small-tr{background-position:right -9px}.x-btn-default-small-bl{background-position:0 -12px}.x-btn-default-small-br{background-position:right -15px}.x-btn-default-small-ml{background-position:0 top}.x-btn-default-small-mr{background-position:right top}.x-btn-default-small-tc{background-position:0 0}.x-btn-default-small-bc{background-position:0 -3px}.x-btn-default-small-tr,.x-btn-default-small-br,.x-btn-default-small-mr{padding-right:3px}.x-btn-default-small-tl,.x-btn-default-small-bl,.x-btn-default-small-ml{padding-left:3px}.x-btn-default-small-tc{height:3px}.x-btn-default-small-bc{height:3px}.x-btn-default-small-tl,.x-btn-default-small-bl,.x-btn-default-small-tr,.x-btn-default-small-br,.x-btn-default-small-tc,.x-btn-default-small-bc,.x-btn-default-small-ml,.x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-corners.gif)}.x-btn-default-small-ml,.x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-sides.gif);background-repeat:repeat-y}.x-btn-default-small-mc{padding:1px 1px 1px 1px}.x-btn-default-small{border-color:#157fcc}.x-btn-button-default-small{min-height:16px}.x-ie9m .x-btn-button-default-small{min-height:auto;height:16px}.x-btn-inner-default-small{font:300 12px/16px helvetica, arial, verdana, sans-serif;color:#fff;padding:0 5px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-small,.x-btn-icon-left > .x-btn-inner-default-small{max-width:calc(100% - 16px)}.x-ie10p .x-btn-inner-default-small{max-width:none}.x-btn-icon-el-default-small{font-size:16px;height:16px;color:#fff;line-height:16px}.x-btn-icon-left > .x-btn-icon-el-default-small,.x-btn-icon-right > .x-btn-icon-el-default-small{width:16px}.x-btn-icon-top > .x-btn-icon-el-default-small,.x-btn-icon-bottom > .x-btn-icon-el-default-small{min-width:16px}.x-btn-icon-el-default-small.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-default-small.x-btn-glyph{color:#9cc9e9}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-small{margin-right:0px}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-small{margin-left:0px}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-small{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-small{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-small{padding-right:5px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-small{margin-right:5px}.x-btn-arrow-bottom > .x-btn-button-default-small,.x-btn-split-bottom > .x-btn-button-default-small{padding-bottom:3px}.x-btn-wrap-default-small.x-btn-arrow-right:after{width:16px;background-image:url(images/button/default-small-arrow.png);padding-right:16px}.x-btn-wrap-default-small.x-btn-arrow-bottom:after{height:13px;background-image:url(images/button/default-small-arrow.png)}.x-btn-wrap-default-small.x-btn-split-right:after{width:20px;background-image:url(images/button/default-small-s-arrow.png);padding-right:20px}.x-btn-wrap-default-small.x-btn-split-bottom:after{height:15px;background-image:url(images/button/default-small-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-small{padding-right:5px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-small{margin-right:5px}.x-btn-focus.x-btn-default-small{background-image:none;background-color:#3892d4;-webkit-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;-moz-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset}.x-btn-default-small .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:23px;pointer-events:none}.x-btn-default-small.x-arrow-focus .x-btn-arrow-el{border:1px solid #d7e9f6}.x-btn-over.x-btn-default-small{border-color:#1375bc;background-image:none;background-color:#3487c3}.x-btn-focus.x-btn-over.x-btn-default-small{-webkit-box-shadow:#d6e7f3 0 1px 0px 0 inset, #d6e7f3 0 -1px 0px 0 inset, #d6e7f3 -1px 0 0px 0 inset, #d6e7f3 1px 0 0px 0 inset;-moz-box-shadow:#d6e7f3 0 1px 0px 0 inset, #d6e7f3 0 -1px 0px 0 inset, #d6e7f3 -1px 0 0px 0 inset, #d6e7f3 1px 0 0px 0 inset;box-shadow:#d6e7f3 0 1px 0px 0 inset, #d6e7f3 0 -1px 0px 0 inset, #d6e7f3 -1px 0 0px 0 inset, #d6e7f3 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-small,.x-btn.x-btn-pressed.x-btn-default-small{border-color:#105f99;background-image:none;background-color:#2a6e9f}.x-btn-focus.x-btn-menu-active.x-btn-default-small,.x-btn-focus.x-btn-pressed.x-btn-default-small{-webkit-box-shadow:#d4e2ec 0 1px 0px 0 inset, #d4e2ec 0 -1px 0px 0 inset, #d4e2ec -1px 0 0px 0 inset, #d4e2ec 1px 0 0px 0 inset;-moz-box-shadow:#d4e2ec 0 1px 0px 0 inset, #d4e2ec 0 -1px 0px 0 inset, #d4e2ec -1px 0 0px 0 inset, #d4e2ec 1px 0 0px 0 inset;box-shadow:#d4e2ec 0 1px 0px 0 inset, #d4e2ec 0 -1px 0px 0 inset, #d4e2ec -1px 0 0px 0 inset, #d4e2ec 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-small{background-image:none;background-color:#3892d4}.x-btn-focus .x-btn-default-small-tl,.x-btn-focus .x-btn-default-small-bl,.x-btn-focus .x-btn-default-small-tr,.x-btn-focus .x-btn-default-small-br,.x-btn-focus .x-btn-default-small-tc,.x-btn-focus .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-focus-corners.gif)}.x-btn-focus .x-btn-default-small-ml,.x-btn-focus .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-focus-sides.gif)}.x-btn-focus .x-btn-default-small-mc{background-color:#3892d4}.x-btn-over .x-btn-default-small-tl,.x-btn-over .x-btn-default-small-bl,.x-btn-over .x-btn-default-small-tr,.x-btn-over .x-btn-default-small-br,.x-btn-over .x-btn-default-small-tc,.x-btn-over .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-over-corners.gif)}.x-btn-over .x-btn-default-small-ml,.x-btn-over .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-over-sides.gif)}.x-btn-over .x-btn-default-small-mc{background-color:#3487c3}.x-btn-focus.x-btn-over .x-btn-default-small-tl,.x-btn-focus.x-btn-over .x-btn-default-small-bl,.x-btn-focus.x-btn-over .x-btn-default-small-tr,.x-btn-focus.x-btn-over .x-btn-default-small-br,.x-btn-focus.x-btn-over .x-btn-default-small-tc,.x-btn-focus.x-btn-over .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-small-ml,.x-btn-focus.x-btn-over .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-small-mc{background-color:#3487c3}.x-btn.x-btn-menu-active .x-btn-default-small-tl,.x-btn.x-btn-menu-active .x-btn-default-small-bl,.x-btn.x-btn-menu-active .x-btn-default-small-tr,.x-btn.x-btn-menu-active .x-btn-default-small-br,.x-btn.x-btn-menu-active .x-btn-default-small-tc,.x-btn.x-btn-menu-active .x-btn-default-small-bc,.x-btn.x-btn-pressed .x-btn-default-small-tl,.x-btn.x-btn-pressed .x-btn-default-small-bl,.x-btn.x-btn-pressed .x-btn-default-small-tr,.x-btn.x-btn-pressed .x-btn-default-small-br,.x-btn.x-btn-pressed .x-btn-default-small-tc,.x-btn.x-btn-pressed .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-small-ml,.x-btn.x-btn-menu-active .x-btn-default-small-mr,.x-btn.x-btn-pressed .x-btn-default-small-ml,.x-btn.x-btn-pressed .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-small-mc,.x-btn.x-btn-pressed .x-btn-default-small-mc{background-color:#2a6e9f}.x-btn-focus.x-btn-menu-active .x-btn-default-small-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-small-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-small-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-small-br,.x-btn-focus.x-btn-menu-active .x-btn-default-small-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-small-bc,.x-btn-focus.x-btn-pressed .x-btn-default-small-tl,.x-btn-focus.x-btn-pressed .x-btn-default-small-bl,.x-btn-focus.x-btn-pressed .x-btn-default-small-tr,.x-btn-focus.x-btn-pressed .x-btn-default-small-br,.x-btn-focus.x-btn-pressed .x-btn-default-small-tc,.x-btn-focus.x-btn-pressed .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-small-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-small-mr,.x-btn-focus.x-btn-pressed .x-btn-default-small-ml,.x-btn-focus.x-btn-pressed .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-small-mc,.x-btn-focus.x-btn-pressed .x-btn-default-small-mc{background-color:#2a6e9f}.x-btn.x-btn-disabled .x-btn-default-small-tl,.x-btn.x-btn-disabled .x-btn-default-small-bl,.x-btn.x-btn-disabled .x-btn-default-small-tr,.x-btn.x-btn-disabled .x-btn-default-small-br,.x-btn.x-btn-disabled .x-btn-default-small-tc,.x-btn.x-btn-disabled .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-small-ml,.x-btn.x-btn-disabled .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-small-mc{background-color:#3892d4}.x-nbr .x-btn-default-small{background-image:none}.x-btn-disabled.x-btn-default-small{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-default-medium{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:#3892d4}.x-btn-default-medium-mc{background-color:#3892d4}.x-nbr .x-btn-default-medium{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-medium-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-default-medium-tl{background-position:0 -6px}.x-btn-default-medium-tr{background-position:right -9px}.x-btn-default-medium-bl{background-position:0 -12px}.x-btn-default-medium-br{background-position:right -15px}.x-btn-default-medium-ml{background-position:0 top}.x-btn-default-medium-mr{background-position:right top}.x-btn-default-medium-tc{background-position:0 0}.x-btn-default-medium-bc{background-position:0 -3px}.x-btn-default-medium-tr,.x-btn-default-medium-br,.x-btn-default-medium-mr{padding-right:3px}.x-btn-default-medium-tl,.x-btn-default-medium-bl,.x-btn-default-medium-ml{padding-left:3px}.x-btn-default-medium-tc{height:3px}.x-btn-default-medium-bc{height:3px}.x-btn-default-medium-tl,.x-btn-default-medium-bl,.x-btn-default-medium-tr,.x-btn-default-medium-br,.x-btn-default-medium-tc,.x-btn-default-medium-bc,.x-btn-default-medium-ml,.x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-corners.gif)}.x-btn-default-medium-ml,.x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-sides.gif);background-repeat:repeat-y}.x-btn-default-medium-mc{padding:1px 1px 1px 1px}.x-btn-default-medium{border-color:#157fcc}.x-btn-button-default-medium{min-height:24px}.x-ie9m .x-btn-button-default-medium{min-height:auto;height:24px}.x-btn-inner-default-medium{font:300 14px/18px helvetica, arial, verdana, sans-serif;color:#fff;padding:0 8px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-medium,.x-btn-icon-left > .x-btn-inner-default-medium{max-width:calc(100% - 24px)}.x-ie10p .x-btn-inner-default-medium{max-width:none}.x-btn-icon-el-default-medium{font-size:24px;height:24px;color:#fff;line-height:24px}.x-btn-icon-left > .x-btn-icon-el-default-medium,.x-btn-icon-right > .x-btn-icon-el-default-medium{width:24px}.x-btn-icon-top > .x-btn-icon-el-default-medium,.x-btn-icon-bottom > .x-btn-icon-el-default-medium{min-width:24px}.x-btn-icon-el-default-medium.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-default-medium.x-btn-glyph{color:#9cc9e9}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-medium{margin-right:0}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-medium{margin-left:0}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-medium{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-medium{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-medium{padding-right:8px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-medium{margin-right:8px}.x-btn-arrow-bottom > .x-btn-button-default-medium,.x-btn-split-bottom > .x-btn-button-default-medium{padding-bottom:3px}.x-btn-wrap-default-medium.x-btn-arrow-right:after{width:24px;background-image:url(images/button/default-medium-arrow.png);padding-right:24px}.x-btn-wrap-default-medium.x-btn-arrow-bottom:after{height:18px;background-image:url(images/button/default-medium-arrow.png)}.x-btn-wrap-default-medium.x-btn-split-right:after{width:28px;background-image:url(images/button/default-medium-s-arrow.png);padding-right:28px}.x-btn-wrap-default-medium.x-btn-split-bottom:after{height:24px;background-image:url(images/button/default-medium-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-medium{padding-right:8px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-medium{margin-right:8px}.x-btn-focus.x-btn-default-medium{background-image:none;background-color:#3892d4;-webkit-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;-moz-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset}.x-btn-default-medium .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:31px;pointer-events:none}.x-btn-default-medium.x-arrow-focus .x-btn-arrow-el{border:1px solid #d7e9f6}.x-btn-over.x-btn-default-medium{border-color:#1375bc;background-image:none;background-color:#3487c3}.x-btn-focus.x-btn-over.x-btn-default-medium{-webkit-box-shadow:#d6e7f3 0 1px 0px 0 inset, #d6e7f3 0 -1px 0px 0 inset, #d6e7f3 -1px 0 0px 0 inset, #d6e7f3 1px 0 0px 0 inset;-moz-box-shadow:#d6e7f3 0 1px 0px 0 inset, #d6e7f3 0 -1px 0px 0 inset, #d6e7f3 -1px 0 0px 0 inset, #d6e7f3 1px 0 0px 0 inset;box-shadow:#d6e7f3 0 1px 0px 0 inset, #d6e7f3 0 -1px 0px 0 inset, #d6e7f3 -1px 0 0px 0 inset, #d6e7f3 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-medium,.x-btn.x-btn-pressed.x-btn-default-medium{border-color:#105f99;background-image:none;background-color:#2a6e9f}.x-btn-focus.x-btn-menu-active.x-btn-default-medium,.x-btn-focus.x-btn-pressed.x-btn-default-medium{-webkit-box-shadow:#d4e2ec 0 1px 0px 0 inset, #d4e2ec 0 -1px 0px 0 inset, #d4e2ec -1px 0 0px 0 inset, #d4e2ec 1px 0 0px 0 inset;-moz-box-shadow:#d4e2ec 0 1px 0px 0 inset, #d4e2ec 0 -1px 0px 0 inset, #d4e2ec -1px 0 0px 0 inset, #d4e2ec 1px 0 0px 0 inset;box-shadow:#d4e2ec 0 1px 0px 0 inset, #d4e2ec 0 -1px 0px 0 inset, #d4e2ec -1px 0 0px 0 inset, #d4e2ec 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-medium{background-image:none;background-color:#3892d4}.x-btn-focus .x-btn-default-medium-tl,.x-btn-focus .x-btn-default-medium-bl,.x-btn-focus .x-btn-default-medium-tr,.x-btn-focus .x-btn-default-medium-br,.x-btn-focus .x-btn-default-medium-tc,.x-btn-focus .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-focus-corners.gif)}.x-btn-focus .x-btn-default-medium-ml,.x-btn-focus .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-focus-sides.gif)}.x-btn-focus .x-btn-default-medium-mc{background-color:#3892d4}.x-btn-over .x-btn-default-medium-tl,.x-btn-over .x-btn-default-medium-bl,.x-btn-over .x-btn-default-medium-tr,.x-btn-over .x-btn-default-medium-br,.x-btn-over .x-btn-default-medium-tc,.x-btn-over .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-over-corners.gif)}.x-btn-over .x-btn-default-medium-ml,.x-btn-over .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-over-sides.gif)}.x-btn-over .x-btn-default-medium-mc{background-color:#3487c3}.x-btn-focus.x-btn-over .x-btn-default-medium-tl,.x-btn-focus.x-btn-over .x-btn-default-medium-bl,.x-btn-focus.x-btn-over .x-btn-default-medium-tr,.x-btn-focus.x-btn-over .x-btn-default-medium-br,.x-btn-focus.x-btn-over .x-btn-default-medium-tc,.x-btn-focus.x-btn-over .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-medium-ml,.x-btn-focus.x-btn-over .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-medium-mc{background-color:#3487c3}.x-btn.x-btn-menu-active .x-btn-default-medium-tl,.x-btn.x-btn-menu-active .x-btn-default-medium-bl,.x-btn.x-btn-menu-active .x-btn-default-medium-tr,.x-btn.x-btn-menu-active .x-btn-default-medium-br,.x-btn.x-btn-menu-active .x-btn-default-medium-tc,.x-btn.x-btn-menu-active .x-btn-default-medium-bc,.x-btn.x-btn-pressed .x-btn-default-medium-tl,.x-btn.x-btn-pressed .x-btn-default-medium-bl,.x-btn.x-btn-pressed .x-btn-default-medium-tr,.x-btn.x-btn-pressed .x-btn-default-medium-br,.x-btn.x-btn-pressed .x-btn-default-medium-tc,.x-btn.x-btn-pressed .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-medium-ml,.x-btn.x-btn-menu-active .x-btn-default-medium-mr,.x-btn.x-btn-pressed .x-btn-default-medium-ml,.x-btn.x-btn-pressed .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-medium-mc,.x-btn.x-btn-pressed .x-btn-default-medium-mc{background-color:#2a6e9f}.x-btn-focus.x-btn-menu-active .x-btn-default-medium-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-br,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-bc,.x-btn-focus.x-btn-pressed .x-btn-default-medium-tl,.x-btn-focus.x-btn-pressed .x-btn-default-medium-bl,.x-btn-focus.x-btn-pressed .x-btn-default-medium-tr,.x-btn-focus.x-btn-pressed .x-btn-default-medium-br,.x-btn-focus.x-btn-pressed .x-btn-default-medium-tc,.x-btn-focus.x-btn-pressed .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-medium-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-mr,.x-btn-focus.x-btn-pressed .x-btn-default-medium-ml,.x-btn-focus.x-btn-pressed .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-medium-mc,.x-btn-focus.x-btn-pressed .x-btn-default-medium-mc{background-color:#2a6e9f}.x-btn.x-btn-disabled .x-btn-default-medium-tl,.x-btn.x-btn-disabled .x-btn-default-medium-bl,.x-btn.x-btn-disabled .x-btn-default-medium-tr,.x-btn.x-btn-disabled .x-btn-default-medium-br,.x-btn.x-btn-disabled .x-btn-default-medium-tc,.x-btn.x-btn-disabled .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-medium-ml,.x-btn.x-btn-disabled .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-medium-mc{background-color:#3892d4}.x-nbr .x-btn-default-medium{background-image:none}.x-btn-disabled.x-btn-default-medium{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-default-large{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:#3892d4}.x-btn-default-large-mc{background-color:#3892d4}.x-nbr .x-btn-default-large{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-large-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-default-large-tl{background-position:0 -6px}.x-btn-default-large-tr{background-position:right -9px}.x-btn-default-large-bl{background-position:0 -12px}.x-btn-default-large-br{background-position:right -15px}.x-btn-default-large-ml{background-position:0 top}.x-btn-default-large-mr{background-position:right top}.x-btn-default-large-tc{background-position:0 0}.x-btn-default-large-bc{background-position:0 -3px}.x-btn-default-large-tr,.x-btn-default-large-br,.x-btn-default-large-mr{padding-right:3px}.x-btn-default-large-tl,.x-btn-default-large-bl,.x-btn-default-large-ml{padding-left:3px}.x-btn-default-large-tc{height:3px}.x-btn-default-large-bc{height:3px}.x-btn-default-large-tl,.x-btn-default-large-bl,.x-btn-default-large-tr,.x-btn-default-large-br,.x-btn-default-large-tc,.x-btn-default-large-bc,.x-btn-default-large-ml,.x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-corners.gif)}.x-btn-default-large-ml,.x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-sides.gif);background-repeat:repeat-y}.x-btn-default-large-mc{padding:1px 1px 1px 1px}.x-btn-default-large{border-color:#157fcc}.x-btn-button-default-large{min-height:32px}.x-ie9m .x-btn-button-default-large{min-height:auto;height:32px}.x-btn-inner-default-large{font:300 16px/20px helvetica, arial, verdana, sans-serif;color:#fff;padding:0 10px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-large,.x-btn-icon-left > .x-btn-inner-default-large{max-width:calc(100% - 32px)}.x-ie10p .x-btn-inner-default-large{max-width:none}.x-btn-icon-el-default-large{font-size:32px;height:32px;color:#fff;line-height:32px}.x-btn-icon-left > .x-btn-icon-el-default-large,.x-btn-icon-right > .x-btn-icon-el-default-large{width:32px}.x-btn-icon-top > .x-btn-icon-el-default-large,.x-btn-icon-bottom > .x-btn-icon-el-default-large{min-width:32px}.x-btn-icon-el-default-large.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-default-large.x-btn-glyph{color:#9cc9e9}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-large{margin-right:0}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-large{margin-left:0}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-large{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-large{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-large{padding-right:10px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-large{margin-right:10px}.x-btn-arrow-bottom > .x-btn-button-default-large,.x-btn-split-bottom > .x-btn-button-default-large{padding-bottom:3px}.x-btn-wrap-default-large.x-btn-arrow-right:after{width:28px;background-image:url(images/button/default-large-arrow.png);padding-right:28px}.x-btn-wrap-default-large.x-btn-arrow-bottom:after{height:20px;background-image:url(images/button/default-large-arrow.png)}.x-btn-wrap-default-large.x-btn-split-right:after{width:35px;background-image:url(images/button/default-large-s-arrow.png);padding-right:35px}.x-btn-wrap-default-large.x-btn-split-bottom:after{height:29px;background-image:url(images/button/default-large-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-large{padding-right:10px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-large{margin-right:10px}.x-btn-focus.x-btn-default-large{background-image:none;background-color:#3892d4;-webkit-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;-moz-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset}.x-btn-default-large .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:38px;pointer-events:none}.x-btn-default-large.x-arrow-focus .x-btn-arrow-el{border:1px solid #d7e9f6}.x-btn-over.x-btn-default-large{border-color:#1375bc;background-image:none;background-color:#3487c3}.x-btn-focus.x-btn-over.x-btn-default-large{-webkit-box-shadow:#d6e7f3 0 1px 0px 0 inset, #d6e7f3 0 -1px 0px 0 inset, #d6e7f3 -1px 0 0px 0 inset, #d6e7f3 1px 0 0px 0 inset;-moz-box-shadow:#d6e7f3 0 1px 0px 0 inset, #d6e7f3 0 -1px 0px 0 inset, #d6e7f3 -1px 0 0px 0 inset, #d6e7f3 1px 0 0px 0 inset;box-shadow:#d6e7f3 0 1px 0px 0 inset, #d6e7f3 0 -1px 0px 0 inset, #d6e7f3 -1px 0 0px 0 inset, #d6e7f3 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-large,.x-btn.x-btn-pressed.x-btn-default-large{border-color:#105f99;background-image:none;background-color:#2a6e9f}.x-btn-focus.x-btn-menu-active.x-btn-default-large,.x-btn-focus.x-btn-pressed.x-btn-default-large{-webkit-box-shadow:#d4e2ec 0 1px 0px 0 inset, #d4e2ec 0 -1px 0px 0 inset, #d4e2ec -1px 0 0px 0 inset, #d4e2ec 1px 0 0px 0 inset;-moz-box-shadow:#d4e2ec 0 1px 0px 0 inset, #d4e2ec 0 -1px 0px 0 inset, #d4e2ec -1px 0 0px 0 inset, #d4e2ec 1px 0 0px 0 inset;box-shadow:#d4e2ec 0 1px 0px 0 inset, #d4e2ec 0 -1px 0px 0 inset, #d4e2ec -1px 0 0px 0 inset, #d4e2ec 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-large{background-image:none;background-color:#3892d4}.x-btn-focus .x-btn-default-large-tl,.x-btn-focus .x-btn-default-large-bl,.x-btn-focus .x-btn-default-large-tr,.x-btn-focus .x-btn-default-large-br,.x-btn-focus .x-btn-default-large-tc,.x-btn-focus .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-focus-corners.gif)}.x-btn-focus .x-btn-default-large-ml,.x-btn-focus .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-focus-sides.gif)}.x-btn-focus .x-btn-default-large-mc{background-color:#3892d4}.x-btn-over .x-btn-default-large-tl,.x-btn-over .x-btn-default-large-bl,.x-btn-over .x-btn-default-large-tr,.x-btn-over .x-btn-default-large-br,.x-btn-over .x-btn-default-large-tc,.x-btn-over .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-over-corners.gif)}.x-btn-over .x-btn-default-large-ml,.x-btn-over .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-over-sides.gif)}.x-btn-over .x-btn-default-large-mc{background-color:#3487c3}.x-btn-focus.x-btn-over .x-btn-default-large-tl,.x-btn-focus.x-btn-over .x-btn-default-large-bl,.x-btn-focus.x-btn-over .x-btn-default-large-tr,.x-btn-focus.x-btn-over .x-btn-default-large-br,.x-btn-focus.x-btn-over .x-btn-default-large-tc,.x-btn-focus.x-btn-over .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-large-ml,.x-btn-focus.x-btn-over .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-large-mc{background-color:#3487c3}.x-btn.x-btn-menu-active .x-btn-default-large-tl,.x-btn.x-btn-menu-active .x-btn-default-large-bl,.x-btn.x-btn-menu-active .x-btn-default-large-tr,.x-btn.x-btn-menu-active .x-btn-default-large-br,.x-btn.x-btn-menu-active .x-btn-default-large-tc,.x-btn.x-btn-menu-active .x-btn-default-large-bc,.x-btn.x-btn-pressed .x-btn-default-large-tl,.x-btn.x-btn-pressed .x-btn-default-large-bl,.x-btn.x-btn-pressed .x-btn-default-large-tr,.x-btn.x-btn-pressed .x-btn-default-large-br,.x-btn.x-btn-pressed .x-btn-default-large-tc,.x-btn.x-btn-pressed .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-large-ml,.x-btn.x-btn-menu-active .x-btn-default-large-mr,.x-btn.x-btn-pressed .x-btn-default-large-ml,.x-btn.x-btn-pressed .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-large-mc,.x-btn.x-btn-pressed .x-btn-default-large-mc{background-color:#2a6e9f}.x-btn-focus.x-btn-menu-active .x-btn-default-large-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-large-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-large-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-large-br,.x-btn-focus.x-btn-menu-active .x-btn-default-large-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-large-bc,.x-btn-focus.x-btn-pressed .x-btn-default-large-tl,.x-btn-focus.x-btn-pressed .x-btn-default-large-bl,.x-btn-focus.x-btn-pressed .x-btn-default-large-tr,.x-btn-focus.x-btn-pressed .x-btn-default-large-br,.x-btn-focus.x-btn-pressed .x-btn-default-large-tc,.x-btn-focus.x-btn-pressed .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-large-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-large-mr,.x-btn-focus.x-btn-pressed .x-btn-default-large-ml,.x-btn-focus.x-btn-pressed .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-large-mc,.x-btn-focus.x-btn-pressed .x-btn-default-large-mc{background-color:#2a6e9f}.x-btn.x-btn-disabled .x-btn-default-large-tl,.x-btn.x-btn-disabled .x-btn-default-large-bl,.x-btn.x-btn-disabled .x-btn-default-large-tr,.x-btn.x-btn-disabled .x-btn-default-large-br,.x-btn.x-btn-disabled .x-btn-default-large-tc,.x-btn.x-btn-disabled .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-large-ml,.x-btn.x-btn-disabled .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-large-mc{background-color:#3892d4}.x-nbr .x-btn-default-large{background-image:none}.x-btn-disabled.x-btn-default-large{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-default-toolbar-small{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-btn-default-toolbar-small-mc{background-color:#f5f5f5}.x-nbr .x-btn-default-toolbar-small{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-toolbar-small-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-default-toolbar-small-tl{background-position:0 -6px}.x-btn-default-toolbar-small-tr{background-position:right -9px}.x-btn-default-toolbar-small-bl{background-position:0 -12px}.x-btn-default-toolbar-small-br{background-position:right -15px}.x-btn-default-toolbar-small-ml{background-position:0 top}.x-btn-default-toolbar-small-mr{background-position:right top}.x-btn-default-toolbar-small-tc{background-position:0 0}.x-btn-default-toolbar-small-bc{background-position:0 -3px}.x-btn-default-toolbar-small-tr,.x-btn-default-toolbar-small-br,.x-btn-default-toolbar-small-mr{padding-right:3px}.x-btn-default-toolbar-small-tl,.x-btn-default-toolbar-small-bl,.x-btn-default-toolbar-small-ml{padding-left:3px}.x-btn-default-toolbar-small-tc{height:3px}.x-btn-default-toolbar-small-bc{height:3px}.x-btn-default-toolbar-small-tl,.x-btn-default-toolbar-small-bl,.x-btn-default-toolbar-small-tr,.x-btn-default-toolbar-small-br,.x-btn-default-toolbar-small-tc,.x-btn-default-toolbar-small-bc,.x-btn-default-toolbar-small-ml,.x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-corners.gif)}.x-btn-default-toolbar-small-ml,.x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-sides.gif);background-repeat:repeat-y}.x-btn-default-toolbar-small-mc{padding:1px 1px 1px 1px}.x-btn-default-toolbar-small{border-color:#d8d8d8}.x-btn-button-default-toolbar-small{min-height:16px}.x-ie9m .x-btn-button-default-toolbar-small{min-height:auto;height:16px}.x-btn-inner-default-toolbar-small{font:300 12px/16px helvetica, arial, verdana, sans-serif;color:#666;padding:0 5px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-toolbar-small,.x-btn-icon-left > .x-btn-inner-default-toolbar-small{max-width:calc(100% - 16px)}.x-ie10p .x-btn-inner-default-toolbar-small{max-width:none}.x-btn-icon-el-default-toolbar-small{font-size:16px;height:16px;color:#666;line-height:16px}.x-btn-icon-left > .x-btn-icon-el-default-toolbar-small,.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small{width:16px}.x-btn-icon-top > .x-btn-icon-el-default-toolbar-small,.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-small{min-width:16px}.x-btn-icon-el-default-toolbar-small.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-default-toolbar-small.x-btn-glyph{color:#aeaeae}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-toolbar-small{margin-right:0px}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small{margin-left:0px}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-toolbar-small{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-small{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-small{padding-right:5px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small{margin-right:5px}.x-btn-arrow-bottom > .x-btn-button-default-toolbar-small,.x-btn-split-bottom > .x-btn-button-default-toolbar-small{padding-bottom:3px}.x-btn-wrap-default-toolbar-small.x-btn-arrow-right:after{width:16px;background-image:url(images/button/default-toolbar-small-arrow.png);padding-right:16px}.x-btn-wrap-default-toolbar-small.x-btn-arrow-bottom:after{height:13px;background-image:url(images/button/default-toolbar-small-arrow.png)}.x-btn-wrap-default-toolbar-small.x-btn-split-right:after{width:20px;background-image:url(images/button/default-toolbar-small-s-arrow.png);padding-right:20px}.x-btn-wrap-default-toolbar-small.x-btn-split-bottom:after{height:15px;background-image:url(images/button/default-toolbar-small-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-small{padding-right:5px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small{margin-right:5px}.x-btn-focus.x-btn-default-toolbar-small{background-image:none;background-color:#f5f5f5;-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn-default-toolbar-small .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:23px;pointer-events:none}.x-btn-default-toolbar-small.x-arrow-focus .x-btn-arrow-el{border:1px solid #4297d4}.x-btn-over.x-btn-default-toolbar-small{border-color:#cfcfcf;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-default-toolbar-small{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-toolbar-small,.x-btn.x-btn-pressed.x-btn-default-toolbar-small{border-color:#c7c7c7;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-default-toolbar-small,.x-btn-focus.x-btn-pressed.x-btn-default-toolbar-small{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-toolbar-small{background-image:none;background-color:#f5f5f5}.x-btn-focus .x-btn-default-toolbar-small-tl,.x-btn-focus .x-btn-default-toolbar-small-bl,.x-btn-focus .x-btn-default-toolbar-small-tr,.x-btn-focus .x-btn-default-toolbar-small-br,.x-btn-focus .x-btn-default-toolbar-small-tc,.x-btn-focus .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-focus-corners.gif)}.x-btn-focus .x-btn-default-toolbar-small-ml,.x-btn-focus .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-focus-sides.gif)}.x-btn-focus .x-btn-default-toolbar-small-mc{background-color:#f5f5f5}.x-btn-over .x-btn-default-toolbar-small-tl,.x-btn-over .x-btn-default-toolbar-small-bl,.x-btn-over .x-btn-default-toolbar-small-tr,.x-btn-over .x-btn-default-toolbar-small-br,.x-btn-over .x-btn-default-toolbar-small-tc,.x-btn-over .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-over-corners.gif)}.x-btn-over .x-btn-default-toolbar-small-ml,.x-btn-over .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-over-sides.gif)}.x-btn-over .x-btn-default-toolbar-small-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-tl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-bl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-tr,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-br,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-tc,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-ml,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-tl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-bl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-tr,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-br,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-tc,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-bc,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-tl,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-bl,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-tr,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-br,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-tc,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-ml,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-mr,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-ml,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-mc,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-br,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-bc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-tl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-bl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-tr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-br,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-tc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-mr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-ml,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-mc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-default-toolbar-small-tl,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-bl,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-tr,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-br,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-tc,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-small-ml,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-small-mc{background-color:#f5f5f5}.x-nbr .x-btn-default-toolbar-small{background-image:none}.x-btn-disabled.x-btn-default-toolbar-small{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-default-toolbar-medium{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-btn-default-toolbar-medium-mc{background-color:#f5f5f5}.x-nbr .x-btn-default-toolbar-medium{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-toolbar-medium-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-default-toolbar-medium-tl{background-position:0 -6px}.x-btn-default-toolbar-medium-tr{background-position:right -9px}.x-btn-default-toolbar-medium-bl{background-position:0 -12px}.x-btn-default-toolbar-medium-br{background-position:right -15px}.x-btn-default-toolbar-medium-ml{background-position:0 top}.x-btn-default-toolbar-medium-mr{background-position:right top}.x-btn-default-toolbar-medium-tc{background-position:0 0}.x-btn-default-toolbar-medium-bc{background-position:0 -3px}.x-btn-default-toolbar-medium-tr,.x-btn-default-toolbar-medium-br,.x-btn-default-toolbar-medium-mr{padding-right:3px}.x-btn-default-toolbar-medium-tl,.x-btn-default-toolbar-medium-bl,.x-btn-default-toolbar-medium-ml{padding-left:3px}.x-btn-default-toolbar-medium-tc{height:3px}.x-btn-default-toolbar-medium-bc{height:3px}.x-btn-default-toolbar-medium-tl,.x-btn-default-toolbar-medium-bl,.x-btn-default-toolbar-medium-tr,.x-btn-default-toolbar-medium-br,.x-btn-default-toolbar-medium-tc,.x-btn-default-toolbar-medium-bc,.x-btn-default-toolbar-medium-ml,.x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-corners.gif)}.x-btn-default-toolbar-medium-ml,.x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-sides.gif);background-repeat:repeat-y}.x-btn-default-toolbar-medium-mc{padding:1px 1px 1px 1px}.x-btn-default-toolbar-medium{border-color:#d8d8d8}.x-btn-button-default-toolbar-medium{min-height:24px}.x-ie9m .x-btn-button-default-toolbar-medium{min-height:auto;height:24px}.x-btn-inner-default-toolbar-medium{font:300 14px/18px helvetica, arial, verdana, sans-serif;color:#666;padding:0 8px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-toolbar-medium,.x-btn-icon-left > .x-btn-inner-default-toolbar-medium{max-width:calc(100% - 24px)}.x-ie10p .x-btn-inner-default-toolbar-medium{max-width:none}.x-btn-icon-el-default-toolbar-medium{font-size:24px;height:24px;color:#666;line-height:24px}.x-btn-icon-left > .x-btn-icon-el-default-toolbar-medium,.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium{width:24px}.x-btn-icon-top > .x-btn-icon-el-default-toolbar-medium,.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-medium{min-width:24px}.x-btn-icon-el-default-toolbar-medium.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-default-toolbar-medium.x-btn-glyph{color:#aeaeae}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-toolbar-medium{margin-right:0}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium{margin-left:0}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-toolbar-medium{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-medium{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-medium{padding-right:8px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium{margin-right:8px}.x-btn-arrow-bottom > .x-btn-button-default-toolbar-medium,.x-btn-split-bottom > .x-btn-button-default-toolbar-medium{padding-bottom:3px}.x-btn-wrap-default-toolbar-medium.x-btn-arrow-right:after{width:24px;background-image:url(images/button/default-toolbar-medium-arrow.png);padding-right:24px}.x-btn-wrap-default-toolbar-medium.x-btn-arrow-bottom:after{height:18px;background-image:url(images/button/default-toolbar-medium-arrow.png)}.x-btn-wrap-default-toolbar-medium.x-btn-split-right:after{width:28px;background-image:url(images/button/default-toolbar-medium-s-arrow.png);padding-right:28px}.x-btn-wrap-default-toolbar-medium.x-btn-split-bottom:after{height:24px;background-image:url(images/button/default-toolbar-medium-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-medium{padding-right:8px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium{margin-right:8px}.x-btn-focus.x-btn-default-toolbar-medium{background-image:none;background-color:#f5f5f5;-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn-default-toolbar-medium .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:31px;pointer-events:none}.x-btn-default-toolbar-medium.x-arrow-focus .x-btn-arrow-el{border:1px solid #4297d4}.x-btn-over.x-btn-default-toolbar-medium{border-color:#cfcfcf;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-default-toolbar-medium{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-toolbar-medium,.x-btn.x-btn-pressed.x-btn-default-toolbar-medium{border-color:#c7c7c7;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-default-toolbar-medium,.x-btn-focus.x-btn-pressed.x-btn-default-toolbar-medium{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-toolbar-medium{background-image:none;background-color:#f5f5f5}.x-btn-focus .x-btn-default-toolbar-medium-tl,.x-btn-focus .x-btn-default-toolbar-medium-bl,.x-btn-focus .x-btn-default-toolbar-medium-tr,.x-btn-focus .x-btn-default-toolbar-medium-br,.x-btn-focus .x-btn-default-toolbar-medium-tc,.x-btn-focus .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-focus-corners.gif)}.x-btn-focus .x-btn-default-toolbar-medium-ml,.x-btn-focus .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-focus-sides.gif)}.x-btn-focus .x-btn-default-toolbar-medium-mc{background-color:#f5f5f5}.x-btn-over .x-btn-default-toolbar-medium-tl,.x-btn-over .x-btn-default-toolbar-medium-bl,.x-btn-over .x-btn-default-toolbar-medium-tr,.x-btn-over .x-btn-default-toolbar-medium-br,.x-btn-over .x-btn-default-toolbar-medium-tc,.x-btn-over .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-over-corners.gif)}.x-btn-over .x-btn-default-toolbar-medium-ml,.x-btn-over .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-over-sides.gif)}.x-btn-over .x-btn-default-toolbar-medium-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-tl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-bl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-tr,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-br,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-tc,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-ml,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-tl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-bl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-tr,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-br,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-tc,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-bc,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-tl,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-bl,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-tr,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-br,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-tc,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-ml,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-mr,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-ml,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-mc,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-br,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-bc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-tl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-bl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-tr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-br,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-tc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-mr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-ml,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-mc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-tl,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-bl,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-tr,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-br,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-tc,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-ml,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-mc{background-color:#f5f5f5}.x-nbr .x-btn-default-toolbar-medium{background-image:none}.x-btn-disabled.x-btn-default-toolbar-medium{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-default-toolbar-large{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-btn-default-toolbar-large-mc{background-color:#f5f5f5}.x-nbr .x-btn-default-toolbar-large{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-toolbar-large-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-default-toolbar-large-tl{background-position:0 -6px}.x-btn-default-toolbar-large-tr{background-position:right -9px}.x-btn-default-toolbar-large-bl{background-position:0 -12px}.x-btn-default-toolbar-large-br{background-position:right -15px}.x-btn-default-toolbar-large-ml{background-position:0 top}.x-btn-default-toolbar-large-mr{background-position:right top}.x-btn-default-toolbar-large-tc{background-position:0 0}.x-btn-default-toolbar-large-bc{background-position:0 -3px}.x-btn-default-toolbar-large-tr,.x-btn-default-toolbar-large-br,.x-btn-default-toolbar-large-mr{padding-right:3px}.x-btn-default-toolbar-large-tl,.x-btn-default-toolbar-large-bl,.x-btn-default-toolbar-large-ml{padding-left:3px}.x-btn-default-toolbar-large-tc{height:3px}.x-btn-default-toolbar-large-bc{height:3px}.x-btn-default-toolbar-large-tl,.x-btn-default-toolbar-large-bl,.x-btn-default-toolbar-large-tr,.x-btn-default-toolbar-large-br,.x-btn-default-toolbar-large-tc,.x-btn-default-toolbar-large-bc,.x-btn-default-toolbar-large-ml,.x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-corners.gif)}.x-btn-default-toolbar-large-ml,.x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-sides.gif);background-repeat:repeat-y}.x-btn-default-toolbar-large-mc{padding:1px 1px 1px 1px}.x-btn-default-toolbar-large{border-color:#d8d8d8}.x-btn-button-default-toolbar-large{min-height:32px}.x-ie9m .x-btn-button-default-toolbar-large{min-height:auto;height:32px}.x-btn-inner-default-toolbar-large{font:300 16px/20px helvetica, arial, verdana, sans-serif;color:#666;padding:0 10px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-toolbar-large,.x-btn-icon-left > .x-btn-inner-default-toolbar-large{max-width:calc(100% - 32px)}.x-ie10p .x-btn-inner-default-toolbar-large{max-width:none}.x-btn-icon-el-default-toolbar-large{font-size:32px;height:32px;color:#666;line-height:32px}.x-btn-icon-left > .x-btn-icon-el-default-toolbar-large,.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large{width:32px}.x-btn-icon-top > .x-btn-icon-el-default-toolbar-large,.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-large{min-width:32px}.x-btn-icon-el-default-toolbar-large.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-default-toolbar-large.x-btn-glyph{color:#aeaeae}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-toolbar-large{margin-right:0}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large{margin-left:0}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-toolbar-large{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-large{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-large{padding-right:10px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large{margin-right:10px}.x-btn-arrow-bottom > .x-btn-button-default-toolbar-large,.x-btn-split-bottom > .x-btn-button-default-toolbar-large{padding-bottom:3px}.x-btn-wrap-default-toolbar-large.x-btn-arrow-right:after{width:28px;background-image:url(images/button/default-toolbar-large-arrow.png);padding-right:28px}.x-btn-wrap-default-toolbar-large.x-btn-arrow-bottom:after{height:20px;background-image:url(images/button/default-toolbar-large-arrow.png)}.x-btn-wrap-default-toolbar-large.x-btn-split-right:after{width:35px;background-image:url(images/button/default-toolbar-large-s-arrow.png);padding-right:35px}.x-btn-wrap-default-toolbar-large.x-btn-split-bottom:after{height:29px;background-image:url(images/button/default-toolbar-large-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-large{padding-right:10px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large{margin-right:10px}.x-btn-focus.x-btn-default-toolbar-large{background-image:none;background-color:#f5f5f5;-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn-default-toolbar-large .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:38px;pointer-events:none}.x-btn-default-toolbar-large.x-arrow-focus .x-btn-arrow-el{border:1px solid #4297d4}.x-btn-over.x-btn-default-toolbar-large{border-color:#cfcfcf;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-default-toolbar-large{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-toolbar-large,.x-btn.x-btn-pressed.x-btn-default-toolbar-large{border-color:#c7c7c7;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-default-toolbar-large,.x-btn-focus.x-btn-pressed.x-btn-default-toolbar-large{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-toolbar-large{background-image:none;background-color:#f5f5f5}.x-btn-focus .x-btn-default-toolbar-large-tl,.x-btn-focus .x-btn-default-toolbar-large-bl,.x-btn-focus .x-btn-default-toolbar-large-tr,.x-btn-focus .x-btn-default-toolbar-large-br,.x-btn-focus .x-btn-default-toolbar-large-tc,.x-btn-focus .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-focus-corners.gif)}.x-btn-focus .x-btn-default-toolbar-large-ml,.x-btn-focus .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-focus-sides.gif)}.x-btn-focus .x-btn-default-toolbar-large-mc{background-color:#f5f5f5}.x-btn-over .x-btn-default-toolbar-large-tl,.x-btn-over .x-btn-default-toolbar-large-bl,.x-btn-over .x-btn-default-toolbar-large-tr,.x-btn-over .x-btn-default-toolbar-large-br,.x-btn-over .x-btn-default-toolbar-large-tc,.x-btn-over .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-over-corners.gif)}.x-btn-over .x-btn-default-toolbar-large-ml,.x-btn-over .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-over-sides.gif)}.x-btn-over .x-btn-default-toolbar-large-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-tl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-bl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-tr,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-br,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-tc,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-ml,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-tl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-bl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-tr,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-br,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-tc,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-bc,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-tl,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-bl,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-tr,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-br,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-tc,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-ml,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-mr,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-ml,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-mc,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-br,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-bc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-tl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-bl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-tr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-br,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-tc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-mr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-ml,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-mc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-default-toolbar-large-tl,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-bl,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-tr,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-br,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-tc,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-large-ml,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-large-mc{background-color:#f5f5f5}.x-nbr .x-btn-default-toolbar-large{background-image:none}.x-btn-disabled.x-btn-default-toolbar-large{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-tool{cursor:pointer}.x-tool-img{overflow:hidden;width:16px;height:16px;background-image:url(images/tools/tool-sprites.png);margin:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-tool-over .x-tool-img{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";opacity:0.9}.x-tool-pressed .x-tool-img{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-tool-placeholder{visibility:hidden}.x-tool-close{background-position:0 0}.x-tool-minimize{background-position:0 -16px}.x-tool-maximize{background-position:0 -32px}.x-tool-restore{background-position:0 -48px}.x-tool-toggle{background-position:0 -64px}.x-panel-collapsed .x-tool-toggle{background-position:0 -80px}.x-tool-gear{background-position:0 -96px}.x-tool-prev{background-position:0 -112px}.x-tool-next{background-position:0 -128px}.x-tool-pin{background-position:0 -144px}.x-tool-unpin{background-position:0 -160px}.x-tool-right{background-position:0 -176px}.x-tool-left{background-position:0 -192px}.x-tool-down{background-position:0 -208px}.x-tool-up{background-position:0 -224px}.x-tool-refresh{background-position:0 -240px}.x-tool-plus{background-position:0 -256px}.x-tool-minus{background-position:0 -272px}.x-tool-search{background-position:0 -288px}.x-tool-save{background-position:0 -304px}.x-tool-help{background-position:0 -320px}.x-tool-print{background-position:0 -336px}.x-tool-expand{background-position:0 -352px}.x-tool-collapse{background-position:0 -368px}.x-tool-resize{background-position:0 -384px}.x-tool-move{background-position:0 -400px}.x-tool-expand-bottom{background-position:0 -208px}.x-tool-collapse-bottom{background-position:0 -208px}.x-tool-expand-top{background-position:0 -224px}.x-tool-collapse-top{background-position:0 -224px}.x-tool-expand-left{background-position:0 -192px}.x-tool-collapse-left{background-position:0 -192px}.x-tool-expand-right{background-position:0 -176px}.x-tool-collapse-right{background-position:0 -176px}.x-header-draggable,.x-header-ghost{cursor:move}.x-header-text{white-space:nowrap}.x-collapse-el{cursor:pointer}.x-layout-split-left{background-image:url(images/util/splitter/mini-left.png)}.x-layout-split-right{background-image:url(images/util/splitter/mini-right.png)}.x-layout-split-top{background-image:url(images/util/splitter/mini-top.png)}.x-layout-split-bottom{background-image:url(images/util/splitter/mini-bottom.png)}.x-splitter-collapsed .x-layout-split-left{background-image:url(images/util/splitter/mini-right.png)}.x-splitter-collapsed .x-layout-split-right{background-image:url(images/util/splitter/mini-left.png)}.x-splitter-collapsed .x-layout-split-top{background-image:url(images/util/splitter/mini-bottom.png)}.x-splitter-collapsed .x-layout-split-bottom{background-image:url(images/util/splitter/mini-top.png)}.x-splitter-active{background-color:#b4b4b4;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-splitter-active .x-collapse-el{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3}.x-layout-split-left,.x-layout-split-right{top:50%;margin-top:-24px;width:8px;height:48px}.x-layout-split-top,.x-layout-split-bottom{left:50%;width:48px;height:8px;margin-left:-24px}.x-splitter-focus:after{position:absolute;content:' ';top:0px;right:0px;bottom:0px;left:0px;border:1px solid #157fcc;pointer-events:none}.x-toolbar-default{padding:6px 0 6px 8px;border-style:solid;border-color:#cfcfcf;border-width:1px;background-image:none;background-color:#fff}.x-toolbar-default .x-tool-img{background-image:url(images/tools/tool-sprites-dark.png);background-color:#fff}.x-toolbar-default .x-toolbar-item{margin:0 8px 0 0}.x-toolbar-default .x-toolbar-separator-horizontal{margin:0 8px 0 0;height:14px;border-style:solid;border-width:0 0 0 1px;border-left-color:#e1e1e1;border-right-color:#fff}.x-toolbar-default .x-box-menu-after{margin:0 8px}.x-toolbar-default-vertical{padding:6px 8px 0}.x-toolbar-default-vertical .x-toolbar-item{margin:0 0 6px 0}.x-toolbar-default-vertical .x-toolbar-separator-vertical{margin:0 5px 6px;border-style:solid none;border-width:1px 0 0;border-top-color:#e1e1e1;border-bottom-color:#fff}.x-toolbar-default-vertical .x-box-menu-after{margin:6px 0}.x-toolbar-text-default{padding:0 4px;color:#334049;font:300 13px/16px helvetica, arial, verdana, sans-serif}.x-toolbar-spacer-default{width:2px}.x-toolbar-default-scroller .x-box-scroller-body-horizontal{margin-left:16px}.x-toolbar-default-vertical-scroller .x-box-scroller-body-vertical{margin-top:18px}.x-box-scroller-toolbar-default{cursor:pointer;color:#cfcfcf;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-box-scroller-toolbar-default.x-box-scroller-hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-box-scroller-toolbar-default.x-box-scroller-pressed{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-box-scroller-toolbar-default.x-box-scroller-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";opacity:0.25;cursor:default}.x-box-scroller-toolbar-default.x-box-scroller-left,.x-box-scroller-toolbar-default.x-box-scroller-right{width:16px;height:16px;top:50%;margin-top:-8px}.x-box-scroller-toolbar-default.x-box-scroller-left{margin-left:4px;margin-right:4px;margin-bottom:0;background-image:url(images/toolbar/default-scroll-left.png)}.x-box-scroller-toolbar-default.x-box-scroller-right{margin-left:4px;margin-right:4px;margin-bottom:0;background-image:url(images/toolbar/default-scroll-right.png)}.x-box-scroller-toolbar-default.x-box-scroller-top,.x-box-scroller-toolbar-default.x-box-scroller-bottom{height:16px;width:16px;left:50%;margin-left:-8px}.x-box-scroller-toolbar-default.x-box-scroller-top{margin-top:4px;margin-right:0;margin-bottom:4px;background-image:url(images/toolbar/default-scroll-top.png)}.x-box-scroller-toolbar-default.x-box-scroller-bottom{margin-top:4px;margin-right:0;margin-bottom:4px;background-image:url(images/toolbar/default-scroll-bottom.png)}.x-ie8 .x-box-scroller-toolbar-default{background-color:#fff}.x-toolbar-footer{padding:6px 0 6px 6px;border-style:solid;border-color:#cfcfcf;border-width:0;background-image:none;background-color:#e7e7e7}.x-toolbar-footer .x-tool-img{background-image:url(images/tools/tool-sprites-dark.png);background-color:#e7e7e7}.x-toolbar-footer .x-toolbar-item{margin:0 6px 0 0}.x-toolbar-footer .x-toolbar-separator-horizontal{margin:0 8px 0 0;height:14px;border-style:solid;border-width:0 0 0 1px;border-left-color:#e1e1e1;border-right-color:#fff}.x-toolbar-footer .x-box-menu-after{margin:0 6px}.x-toolbar-footer-vertical{padding:6px 6px 0}.x-toolbar-footer-vertical .x-toolbar-item{margin:0 0 6px 0}.x-toolbar-footer-vertical .x-toolbar-separator-vertical{margin:0 5px 6px;border-style:solid none;border-width:1px 0 0;border-top-color:#e1e1e1;border-bottom-color:#fff}.x-toolbar-footer-vertical .x-box-menu-after{margin:6px 0}.x-toolbar-text-footer{padding:0 4px;color:#334049;font:300 13px/16px helvetica, arial, verdana, sans-serif}.x-toolbar-spacer-footer{width:2px}.x-toolbar-footer-scroller .x-box-scroller-body-horizontal{margin-left:18px}.x-toolbar-footer-vertical-scroller .x-box-scroller-body-vertical{margin-top:18px}.x-box-scroller-toolbar-footer{cursor:pointer;color:#cfcfcf;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-box-scroller-toolbar-footer.x-box-scroller-hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-box-scroller-toolbar-footer.x-box-scroller-pressed{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-box-scroller-toolbar-footer.x-box-scroller-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";opacity:0.25;cursor:default}.x-box-scroller-toolbar-footer.x-box-scroller-left,.x-box-scroller-toolbar-footer.x-box-scroller-right{width:16px;height:16px;top:50%;margin-top:-8px}.x-box-scroller-toolbar-footer.x-box-scroller-left{margin-left:4px;margin-right:4px;margin-bottom:0;background-image:url(images/toolbar/footer-scroll-left.png)}.x-box-scroller-toolbar-footer.x-box-scroller-right{margin-left:4px;margin-right:4px;margin-bottom:0;background-image:url(images/toolbar/footer-scroll-right.png)}.x-ie8 .x-box-scroller-toolbar-footer{background-color:#e7e7e7}.x-dd-drag-proxy{color:#000;font:300 13px/17px helvetica, arial, verdana, sans-serif;border:1px solid #e1e1e1;background-color:#fff}.x-dd-drag-ghost,.x-dd-drop-icon{padding:5px}.x-dd-drag-ghost{padding-left:0}.x-dd-drop-ok .x-dd-drop-icon{background-image:url(images/dd/drop-yes.png)}.x-dd-drop-ok-add .x-dd-drop-icon{background-image:url(images/dd/drop-add.png)}.x-dd-drop-nodrop div.x-dd-drop-icon{background-image:url(images/dd/drop-no.png)}.x-panel-ghost{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-panel-default{border-color:#f5f5f5;padding:0}.x-panel-header-default{font-size:15px;border:1px solid #f5f5f5}.x-panel-header-default .x-tool-img{background-color:#f5f5f5}.x-panel-header-default-horizontal{padding:9px 9px 10px}.x-panel-header-default-horizontal .x-panel-header-default-tab-bar{margin-top:-9px;margin-bottom:-10px}.x-panel-header-default-horizontal.x-header-noborder{padding:10px 10px 10px 10px}.x-panel-header-default-horizontal.x-header-noborder .x-panel-header-default-tab-bar{margin-top:-10px;margin-bottom:-10px}.x-panel-header-default-vertical{padding:9px 9px 9px 10px}.x-panel-header-default-vertical .x-panel-header-default-tab-bar{margin-right:-9px;margin-left:-10px}.x-panel-header-default-vertical.x-header-noborder{padding:10px 10px 10px 10px}.x-panel-header-default-vertical.x-header-noborder .x-panel-header-default-tab-bar{margin-right:-10px;margin-left:-10px}.x-panel-header-title-default{color:#157fcc;font-size:15px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;line-height:16px}.x-panel-header-title-default > .x-title-text-default{text-transform:none;padding:0}.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-top{height:22px;padding-bottom:6px}.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-right{width:22px;padding-left:6px}.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-bottom{height:22px;padding-top:6px}.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-left{width:22px;padding-right:6px}.x-panel-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default{width:16px;height:16px;font-size:16px;color:#157fcc;background-position:center center;opacity:0.5}.x-ie8 .x-panel-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default{color:#85bae1}.x-panel-body-default{background:#fff;border-color:#cfcfcf;color:#000;font-size:13px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;border-width:1px;border-style:solid}.x-panel-header-default{background-image:none;background-color:#f5f5f5}.x-panel-header-default-vertical{background-image:none;background-color:#f5f5f5}.x-panel .x-panel-header-default-collapsed-border-top{border-bottom-width:1px !important}.x-panel .x-panel-header-default-collapsed-border-right{border-left-width:1px !important}.x-panel .x-panel-header-default-collapsed-border-bottom{border-top-width:1px !important}.x-panel .x-panel-header-default-collapsed-border-left{border-right-width:1px !important}.x-panel-header-default-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-panel-header-default-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-panel-header-default-vertical .x-tool-after-title{margin:6px 0 0 0}.x-panel-header-default-vertical .x-tool-before-title{margin:0 0 6px 0}.x-panel-header-default .x-tool-focus{outline:1px solid #157fcc;outline-offset:1px}.x-ie8 .x-panel-header-default .x-tool-focus{outline:none}.x-ie8 .x-panel-header-default .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #157fcc;pointer-events:none}.x-panel-default-resizable .x-panel-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-panel-default-outer-border-l{border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-outer-border-b{border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-default-outer-border-bl{border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-outer-border-r{border-right-color:#f5f5f5 !important;border-right-width:1px !important}.x-panel-default-outer-border-rl{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-outer-border-rb{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-default-outer-border-rbl{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-outer-border-t{border-top-color:#f5f5f5 !important;border-top-width:1px !important}.x-panel-default-outer-border-tl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-outer-border-tb{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-default-outer-border-tbl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-outer-border-tr{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important}.x-panel-default-outer-border-trl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-outer-border-trb{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-default-outer-border-trbl{border-color:#f5f5f5 !important;border-width:1px !important}.x-panel-default-framed{border-color:#f5f5f5;padding:0}.x-panel-header-default-framed{font-size:15px;border:1px solid #f5f5f5}.x-panel-header-default-framed .x-tool-img{background-color:#f5f5f5}.x-panel-header-default-framed-horizontal{padding:9px 9px 9px 9px}.x-panel-header-default-framed-horizontal .x-panel-header-default-framed-tab-bar{margin-top:-9px;margin-bottom:-9px}.x-panel-header-default-framed-horizontal.x-header-noborder{padding:10px 10px 9px 10px}.x-panel-header-default-framed-horizontal.x-header-noborder .x-panel-header-default-framed-tab-bar{margin-top:-10px;margin-bottom:-9px}.x-panel-header-default-framed-vertical{padding:9px 9px 9px 9px}.x-panel-header-default-framed-vertical .x-panel-header-default-framed-tab-bar{margin-right:-9px;margin-left:-9px}.x-panel-header-default-framed-vertical.x-header-noborder{padding:10px 10px 10px 9px}.x-panel-header-default-framed-vertical.x-header-noborder .x-panel-header-default-framed-tab-bar{margin-right:-10px;margin-left:-9px}.x-panel-header-title-default-framed{color:#157fcc;font-size:15px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;line-height:16px}.x-panel-header-title-default-framed > .x-title-text-default-framed{text-transform:none;padding:0}.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-top{height:22px;padding-bottom:6px}.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-right{width:22px;padding-left:6px}.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-bottom{height:22px;padding-top:6px}.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-left{width:22px;padding-right:6px}.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed > .x-title-icon-default-framed{width:16px;height:16px;font-size:16px;color:#157fcc;background-position:center center;opacity:0.5}.x-ie8 .x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed > .x-title-icon-default-framed{color:#85bae1}.x-panel-body-default-framed{background:#fff;border-color:#cfcfcf;color:#000;font-size:13px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;border-width:1px;border-style:solid}.x-panel-default-framed{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;padding:0 0 0 0;border-width:1px;border-style:solid;background-color:#fff}.x-panel-default-framed-mc{background-color:#fff}.x-nbr .x-panel-default-framed{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-default-framed-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-3px-3px-3px-3px}.x-panel-default-framed-tl{background-position:0 -8px}.x-panel-default-framed-tr{background-position:right -12px}.x-panel-default-framed-bl{background-position:0 -16px}.x-panel-default-framed-br{background-position:right -20px}.x-panel-default-framed-ml{background-position:0 top}.x-panel-default-framed-mr{background-position:right top}.x-panel-default-framed-tc{background-position:0 0}.x-panel-default-framed-bc{background-position:0 -4px}.x-panel-default-framed-tr,.x-panel-default-framed-br,.x-panel-default-framed-mr{padding-right:4px}.x-panel-default-framed-tl,.x-panel-default-framed-bl,.x-panel-default-framed-ml{padding-left:4px}.x-panel-default-framed-tc{height:4px}.x-panel-default-framed-bc{height:4px}.x-panel-default-framed-tl,.x-panel-default-framed-bl,.x-panel-default-framed-tr,.x-panel-default-framed-br,.x-panel-default-framed-tc,.x-panel-default-framed-bc,.x-panel-default-framed-ml,.x-panel-default-framed-mr{background-image:url(images/panel/panel-default-framed-corners.gif)}.x-panel-default-framed-ml,.x-panel-default-framed-mr{background-image:url(images/panel/panel-default-framed-sides.gif);background-repeat:repeat-y}.x-panel-default-framed-mc{padding:0 0 0 0}.x-panel-header-default-framed-top{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:9px 9px 9px 9px;border-width:1px 1px 0 1px;border-style:solid;background-color:#f5f5f5}.x-panel-header-default-framed-top-mc{background-color:#f5f5f5}.x-nbr .x-panel-header-default-framed-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-top-frameInfo{font-family:dh-4-4-0-4-1-1-0-1-9-9-9-9}.x-panel-header-default-framed-top-tl{background-position:0 -8px}.x-panel-header-default-framed-top-tr{background-position:right -12px}.x-panel-header-default-framed-top-bl{background-position:0 -16px}.x-panel-header-default-framed-top-br{background-position:right -20px}.x-panel-header-default-framed-top-ml{background-position:0 top}.x-panel-header-default-framed-top-mr{background-position:right top}.x-panel-header-default-framed-top-tc{background-position:0 0}.x-panel-header-default-framed-top-bc{background-position:0 -4px}.x-panel-header-default-framed-top-tr,.x-panel-header-default-framed-top-br,.x-panel-header-default-framed-top-mr{padding-right:4px}.x-panel-header-default-framed-top-tl,.x-panel-header-default-framed-top-bl,.x-panel-header-default-framed-top-ml{padding-left:4px}.x-panel-header-default-framed-top-tc{height:4px}.x-panel-header-default-framed-top-bc{height:0}.x-panel-header-default-framed-top-tl,.x-panel-header-default-framed-top-bl,.x-panel-header-default-framed-top-tr,.x-panel-header-default-framed-top-br,.x-panel-header-default-framed-top-tc,.x-panel-header-default-framed-top-bc,.x-panel-header-default-framed-top-ml,.x-panel-header-default-framed-top-mr{background-image:url(images/panel-header/panel-header-default-framed-top-corners.gif)}.x-panel-header-default-framed-top-ml,.x-panel-header-default-framed-top-mr{background-image:url(images/panel-header/panel-header-default-framed-top-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-top-mc{padding:6px 6px 9px 6px}.x-panel-header-default-framed-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:9px 9px 9px 9px;border-width:1px 1px 1px 0;border-style:solid;background-color:#f5f5f5}.x-panel-header-default-framed-right-mc{background-color:#f5f5f5}.x-nbr .x-panel-header-default-framed-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-right-frameInfo{font-family:dh-4-4-4-0-1-1-1-0-9-9-9-9}.x-panel-header-default-framed-right-tl{background-position:0 -8px}.x-panel-header-default-framed-right-tr{background-position:right -12px}.x-panel-header-default-framed-right-bl{background-position:0 -16px}.x-panel-header-default-framed-right-br{background-position:right -20px}.x-panel-header-default-framed-right-ml{background-position:right 0}.x-panel-header-default-framed-right-mr{background-position:right 0}.x-panel-header-default-framed-right-tc{background-position:0 0}.x-panel-header-default-framed-right-bc{background-position:0 -4px}.x-panel-header-default-framed-right-tr,.x-panel-header-default-framed-right-br,.x-panel-header-default-framed-right-mr{padding-right:4px}.x-panel-header-default-framed-right-tl,.x-panel-header-default-framed-right-bl,.x-panel-header-default-framed-right-ml{padding-left:0}.x-panel-header-default-framed-right-tc{height:4px}.x-panel-header-default-framed-right-bc{height:4px}.x-panel-header-default-framed-right-tl,.x-panel-header-default-framed-right-bl,.x-panel-header-default-framed-right-tr,.x-panel-header-default-framed-right-br,.x-panel-header-default-framed-right-tc,.x-panel-header-default-framed-right-bc,.x-panel-header-default-framed-right-ml,.x-panel-header-default-framed-right-mr{background-image:url(images/panel-header/panel-header-default-framed-right-corners.gif)}.x-panel-header-default-framed-right-ml,.x-panel-header-default-framed-right-mr{background-image:url(images/panel-header/panel-header-default-framed-right-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-right-mc{padding:6px 6px 6px 9px}.x-panel-header-default-framed-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:0 1px 1px 1px;border-style:solid;background-color:#f5f5f5}.x-panel-header-default-framed-bottom-mc{background-color:#f5f5f5}.x-nbr .x-panel-header-default-framed-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-bottom-frameInfo{font-family:dh-0-4-4-4-0-1-1-1-9-9-9-9}.x-panel-header-default-framed-bottom-tl{background-position:0 -8px}.x-panel-header-default-framed-bottom-tr{background-position:right -12px}.x-panel-header-default-framed-bottom-bl{background-position:0 -16px}.x-panel-header-default-framed-bottom-br{background-position:right -20px}.x-panel-header-default-framed-bottom-ml{background-position:0 bottom}.x-panel-header-default-framed-bottom-mr{background-position:right bottom}.x-panel-header-default-framed-bottom-tc{background-position:0 0}.x-panel-header-default-framed-bottom-bc{background-position:0 -4px}.x-panel-header-default-framed-bottom-tr,.x-panel-header-default-framed-bottom-br,.x-panel-header-default-framed-bottom-mr{padding-right:4px}.x-panel-header-default-framed-bottom-tl,.x-panel-header-default-framed-bottom-bl,.x-panel-header-default-framed-bottom-ml{padding-left:4px}.x-panel-header-default-framed-bottom-tc{height:0}.x-panel-header-default-framed-bottom-bc{height:4px}.x-panel-header-default-framed-bottom-tl,.x-panel-header-default-framed-bottom-bl,.x-panel-header-default-framed-bottom-tr,.x-panel-header-default-framed-bottom-br,.x-panel-header-default-framed-bottom-tc,.x-panel-header-default-framed-bottom-bc,.x-panel-header-default-framed-bottom-ml,.x-panel-header-default-framed-bottom-mr{background-image:url(images/panel-header/panel-header-default-framed-bottom-corners.gif)}.x-panel-header-default-framed-bottom-ml,.x-panel-header-default-framed-bottom-mr{background-image:url(images/panel-header/panel-header-default-framed-bottom-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-bottom-mc{padding:9px 6px 6px 6px}.x-panel-header-default-framed-left{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px 0 1px 1px;border-style:solid;background-color:#f5f5f5}.x-panel-header-default-framed-left-mc{background-color:#f5f5f5}.x-nbr .x-panel-header-default-framed-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-left-frameInfo{font-family:dh-4-0-4-4-1-0-1-1-9-9-9-9}.x-panel-header-default-framed-left-tl{background-position:0 -8px}.x-panel-header-default-framed-left-tr{background-position:right -12px}.x-panel-header-default-framed-left-bl{background-position:0 -16px}.x-panel-header-default-framed-left-br{background-position:right -20px}.x-panel-header-default-framed-left-ml{background-position:left 0}.x-panel-header-default-framed-left-mr{background-position:left 0}.x-panel-header-default-framed-left-tc{background-position:0 0}.x-panel-header-default-framed-left-bc{background-position:0 -4px}.x-panel-header-default-framed-left-tr,.x-panel-header-default-framed-left-br,.x-panel-header-default-framed-left-mr{padding-right:0}.x-panel-header-default-framed-left-tl,.x-panel-header-default-framed-left-bl,.x-panel-header-default-framed-left-ml{padding-left:4px}.x-panel-header-default-framed-left-tc{height:4px}.x-panel-header-default-framed-left-bc{height:4px}.x-panel-header-default-framed-left-tl,.x-panel-header-default-framed-left-bl,.x-panel-header-default-framed-left-tr,.x-panel-header-default-framed-left-br,.x-panel-header-default-framed-left-tc,.x-panel-header-default-framed-left-bc,.x-panel-header-default-framed-left-ml,.x-panel-header-default-framed-left-mr{background-image:url(images/panel-header/panel-header-default-framed-left-corners.gif)}.x-panel-header-default-framed-left-ml,.x-panel-header-default-framed-left-mr{background-image:url(images/panel-header/panel-header-default-framed-left-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-left-mc{padding:6px 9px 6px 6px}.x-panel-header-default-framed-collapsed-top{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-panel-header-default-framed-collapsed-top-mc{background-color:#f5f5f5}.x-nbr .x-panel-header-default-framed-collapsed-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-collapsed-top-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-panel-header-default-framed-collapsed-top-tl{background-position:0 -8px}.x-panel-header-default-framed-collapsed-top-tr{background-position:right -12px}.x-panel-header-default-framed-collapsed-top-bl{background-position:0 -16px}.x-panel-header-default-framed-collapsed-top-br{background-position:right -20px}.x-panel-header-default-framed-collapsed-top-ml{background-position:0 top}.x-panel-header-default-framed-collapsed-top-mr{background-position:right top}.x-panel-header-default-framed-collapsed-top-tc{background-position:0 0}.x-panel-header-default-framed-collapsed-top-bc{background-position:0 -4px}.x-panel-header-default-framed-collapsed-top-tr,.x-panel-header-default-framed-collapsed-top-br,.x-panel-header-default-framed-collapsed-top-mr{padding-right:4px}.x-panel-header-default-framed-collapsed-top-tl,.x-panel-header-default-framed-collapsed-top-bl,.x-panel-header-default-framed-collapsed-top-ml{padding-left:4px}.x-panel-header-default-framed-collapsed-top-tc{height:4px}.x-panel-header-default-framed-collapsed-top-bc{height:4px}.x-panel-header-default-framed-collapsed-top-tl,.x-panel-header-default-framed-collapsed-top-bl,.x-panel-header-default-framed-collapsed-top-tr,.x-panel-header-default-framed-collapsed-top-br,.x-panel-header-default-framed-collapsed-top-tc,.x-panel-header-default-framed-collapsed-top-bc,.x-panel-header-default-framed-collapsed-top-ml,.x-panel-header-default-framed-collapsed-top-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-top-corners.gif)}.x-panel-header-default-framed-collapsed-top-ml,.x-panel-header-default-framed-collapsed-top-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-top-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-collapsed-top-mc{padding:6px 6px 6px 6px}.x-panel-header-default-framed-collapsed-right{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-panel-header-default-framed-collapsed-right-mc{background-color:#f5f5f5}.x-nbr .x-panel-header-default-framed-collapsed-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-collapsed-right-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-panel-header-default-framed-collapsed-right-tl{background-position:0 -8px}.x-panel-header-default-framed-collapsed-right-tr{background-position:right -12px}.x-panel-header-default-framed-collapsed-right-bl{background-position:0 -16px}.x-panel-header-default-framed-collapsed-right-br{background-position:right -20px}.x-panel-header-default-framed-collapsed-right-ml{background-position:right 0}.x-panel-header-default-framed-collapsed-right-mr{background-position:right 0}.x-panel-header-default-framed-collapsed-right-tc{background-position:0 0}.x-panel-header-default-framed-collapsed-right-bc{background-position:0 -4px}.x-panel-header-default-framed-collapsed-right-tr,.x-panel-header-default-framed-collapsed-right-br,.x-panel-header-default-framed-collapsed-right-mr{padding-right:4px}.x-panel-header-default-framed-collapsed-right-tl,.x-panel-header-default-framed-collapsed-right-bl,.x-panel-header-default-framed-collapsed-right-ml{padding-left:4px}.x-panel-header-default-framed-collapsed-right-tc{height:4px}.x-panel-header-default-framed-collapsed-right-bc{height:4px}.x-panel-header-default-framed-collapsed-right-tl,.x-panel-header-default-framed-collapsed-right-bl,.x-panel-header-default-framed-collapsed-right-tr,.x-panel-header-default-framed-collapsed-right-br,.x-panel-header-default-framed-collapsed-right-tc,.x-panel-header-default-framed-collapsed-right-bc,.x-panel-header-default-framed-collapsed-right-ml,.x-panel-header-default-framed-collapsed-right-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-right-corners.gif)}.x-panel-header-default-framed-collapsed-right-ml,.x-panel-header-default-framed-collapsed-right-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-right-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-collapsed-right-mc{padding:6px 6px 6px 6px}.x-panel-header-default-framed-collapsed-bottom{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-panel-header-default-framed-collapsed-bottom-mc{background-color:#f5f5f5}.x-nbr .x-panel-header-default-framed-collapsed-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-collapsed-bottom-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-panel-header-default-framed-collapsed-bottom-tl{background-position:0 -8px}.x-panel-header-default-framed-collapsed-bottom-tr{background-position:right -12px}.x-panel-header-default-framed-collapsed-bottom-bl{background-position:0 -16px}.x-panel-header-default-framed-collapsed-bottom-br{background-position:right -20px}.x-panel-header-default-framed-collapsed-bottom-ml{background-position:0 bottom}.x-panel-header-default-framed-collapsed-bottom-mr{background-position:right bottom}.x-panel-header-default-framed-collapsed-bottom-tc{background-position:0 0}.x-panel-header-default-framed-collapsed-bottom-bc{background-position:0 -4px}.x-panel-header-default-framed-collapsed-bottom-tr,.x-panel-header-default-framed-collapsed-bottom-br,.x-panel-header-default-framed-collapsed-bottom-mr{padding-right:4px}.x-panel-header-default-framed-collapsed-bottom-tl,.x-panel-header-default-framed-collapsed-bottom-bl,.x-panel-header-default-framed-collapsed-bottom-ml{padding-left:4px}.x-panel-header-default-framed-collapsed-bottom-tc{height:4px}.x-panel-header-default-framed-collapsed-bottom-bc{height:4px}.x-panel-header-default-framed-collapsed-bottom-tl,.x-panel-header-default-framed-collapsed-bottom-bl,.x-panel-header-default-framed-collapsed-bottom-tr,.x-panel-header-default-framed-collapsed-bottom-br,.x-panel-header-default-framed-collapsed-bottom-tc,.x-panel-header-default-framed-collapsed-bottom-bc,.x-panel-header-default-framed-collapsed-bottom-ml,.x-panel-header-default-framed-collapsed-bottom-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif)}.x-panel-header-default-framed-collapsed-bottom-ml,.x-panel-header-default-framed-collapsed-bottom-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-collapsed-bottom-mc{padding:6px 6px 6px 6px}.x-panel-header-default-framed-collapsed-left{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-panel-header-default-framed-collapsed-left-mc{background-color:#f5f5f5}.x-nbr .x-panel-header-default-framed-collapsed-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-collapsed-left-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-panel-header-default-framed-collapsed-left-tl{background-position:0 -8px}.x-panel-header-default-framed-collapsed-left-tr{background-position:right -12px}.x-panel-header-default-framed-collapsed-left-bl{background-position:0 -16px}.x-panel-header-default-framed-collapsed-left-br{background-position:right -20px}.x-panel-header-default-framed-collapsed-left-ml{background-position:left 0}.x-panel-header-default-framed-collapsed-left-mr{background-position:left 0}.x-panel-header-default-framed-collapsed-left-tc{background-position:0 0}.x-panel-header-default-framed-collapsed-left-bc{background-position:0 -4px}.x-panel-header-default-framed-collapsed-left-tr,.x-panel-header-default-framed-collapsed-left-br,.x-panel-header-default-framed-collapsed-left-mr{padding-right:4px}.x-panel-header-default-framed-collapsed-left-tl,.x-panel-header-default-framed-collapsed-left-bl,.x-panel-header-default-framed-collapsed-left-ml{padding-left:4px}.x-panel-header-default-framed-collapsed-left-tc{height:4px}.x-panel-header-default-framed-collapsed-left-bc{height:4px}.x-panel-header-default-framed-collapsed-left-tl,.x-panel-header-default-framed-collapsed-left-bl,.x-panel-header-default-framed-collapsed-left-tr,.x-panel-header-default-framed-collapsed-left-br,.x-panel-header-default-framed-collapsed-left-tc,.x-panel-header-default-framed-collapsed-left-bc,.x-panel-header-default-framed-collapsed-left-ml,.x-panel-header-default-framed-collapsed-left-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-left-corners.gif)}.x-panel-header-default-framed-collapsed-left-ml,.x-panel-header-default-framed-collapsed-left-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-left-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-collapsed-left-mc{padding:6px 6px 6px 6px}.x-panel .x-panel-header-default-framed-top{border-bottom-width:1px !important}.x-panel .x-panel-header-default-framed-right{border-left-width:1px !important}.x-panel .x-panel-header-default-framed-bottom{border-top-width:1px !important}.x-panel .x-panel-header-default-framed-left{border-right-width:1px !important}.x-nbr .x-panel-header-default-framed-collapsed-top{border-bottom-width:0 !important}.x-nbr .x-panel-header-default-framed-collapsed-right{border-left-width:0 !important}.x-nbr .x-panel-header-default-framed-collapsed-bottom{border-top-width:0 !important}.x-nbr .x-panel-header-default-framed-collapsed-left{border-right-width:0 !important}.x-panel-header-default-framed-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-panel-header-default-framed-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-panel-header-default-framed-vertical .x-tool-after-title{margin:6px 0 0 0}.x-panel-header-default-framed-vertical .x-tool-before-title{margin:0 0 6px 0}.x-panel-header-default-framed .x-tool-focus{outline:1px solid #157fcc;outline-offset:1px}.x-ie8 .x-panel-header-default-framed .x-tool-focus{outline:none}.x-ie8 .x-panel-header-default-framed .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #157fcc;pointer-events:none}.x-panel-default-framed-resizable .x-panel-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-panel-default-framed-outer-border-l{border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-b{border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-default-framed-outer-border-bl{border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-r{border-right-color:#f5f5f5 !important;border-right-width:1px !important}.x-panel-default-framed-outer-border-rl{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-rb{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-default-framed-outer-border-rbl{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-t{border-top-color:#f5f5f5 !important;border-top-width:1px !important}.x-panel-default-framed-outer-border-tl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-tb{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-default-framed-outer-border-tbl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-tr{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important}.x-panel-default-framed-outer-border-trl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-trb{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-default-framed-outer-border-trbl{border-color:#f5f5f5 !important;border-width:1px !important}.x-window-ghost{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-window-default{border-color:#f5f5f5;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px}.x-window-default{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;padding:0 0 0 0;border-width:1px;border-style:solid;background-color:#fff}.x-window-default-mc{background-color:#fff}.x-nbr .x-window-default{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-default-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-3px-3px-3px-3px}.x-window-default-tl{background-position:0 -8px}.x-window-default-tr{background-position:right -12px}.x-window-default-bl{background-position:0 -16px}.x-window-default-br{background-position:right -20px}.x-window-default-ml{background-position:0 top}.x-window-default-mr{background-position:right top}.x-window-default-tc{background-position:0 0}.x-window-default-bc{background-position:0 -4px}.x-window-default-tr,.x-window-default-br,.x-window-default-mr{padding-right:4px}.x-window-default-tl,.x-window-default-bl,.x-window-default-ml{padding-left:4px}.x-window-default-tc{height:4px}.x-window-default-bc{height:4px}.x-window-default-tl,.x-window-default-bl,.x-window-default-tr,.x-window-default-br,.x-window-default-tc,.x-window-default-bc,.x-window-default-ml,.x-window-default-mr{background-image:url(images/window/window-default-corners.gif)}.x-window-default-ml,.x-window-default-mr{background-image:url(images/window/window-default-sides.gif);background-repeat:repeat-y}.x-window-default-mc{padding:0 0 0 0}.x-window-body-default{border-color:#f5f5f5;border-width:1px;border-style:solid;background:#fff;color:#000;font-size:13px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif}.x-window-header-default{font-size:15px;border-color:#f5f5f5;background-color:#f5f5f5}.x-window-header-default .x-tool-img{background-color:#f5f5f5}.x-window-header-default-horizontal .x-window-header-default-tab-bar{margin-top:-9px;margin-bottom:-9px}.x-window-header-default-vertical .x-window-header-default-tab-bar{margin-right:-9px;margin-left:-9px}.x-window-header-title-default{color:#157fcc;font-size:15px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;line-height:16px}.x-window-header-title-default > .x-title-text-default{padding:0;text-transform:none}.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-top{height:22px;padding-bottom:6px}.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-right{width:22px;padding-left:6px}.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-bottom{height:22px;padding-top:6px}.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-left{width:22px;padding-right:6px}.x-window-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default{width:16px;height:16px;font-size:16px;color:#157fcc;background-position:center center;opacity:0.5}.x-ie8 .x-window-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default{color:#85bae1}.x-window-header-default-top{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:9px 9px 9px 9px;border-width:1px 1px 1px 1px;border-style:solid;background-color:#f5f5f5}.x-window-header-default-top-mc{background-color:#f5f5f5}.x-nbr .x-window-header-default-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-top-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-window-header-default-top-tl{background-position:0 -8px}.x-window-header-default-top-tr{background-position:right -12px}.x-window-header-default-top-bl{background-position:0 -16px}.x-window-header-default-top-br{background-position:right -20px}.x-window-header-default-top-ml{background-position:0 top}.x-window-header-default-top-mr{background-position:right top}.x-window-header-default-top-tc{background-position:0 0}.x-window-header-default-top-bc{background-position:0 -4px}.x-window-header-default-top-tr,.x-window-header-default-top-br,.x-window-header-default-top-mr{padding-right:4px}.x-window-header-default-top-tl,.x-window-header-default-top-bl,.x-window-header-default-top-ml{padding-left:4px}.x-window-header-default-top-tc{height:4px}.x-window-header-default-top-bc{height:4px}.x-window-header-default-top-tl,.x-window-header-default-top-bl,.x-window-header-default-top-tr,.x-window-header-default-top-br,.x-window-header-default-top-tc,.x-window-header-default-top-bc,.x-window-header-default-top-ml,.x-window-header-default-top-mr{background-image:url(images/window-header/window-header-default-top-corners.gif)}.x-window-header-default-top-ml,.x-window-header-default-top-mr{background-image:url(images/window-header/window-header-default-top-sides.gif);background-repeat:repeat-y}.x-window-header-default-top-mc{padding:6px 6px 6px 6px}.x-window-header-default-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:9px 9px 9px 9px;border-width:1px 1px 1px 1px;border-style:solid;background-color:#f5f5f5}.x-window-header-default-right-mc{background-color:#f5f5f5}.x-nbr .x-window-header-default-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-right-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-window-header-default-right-tl{background-position:0 -8px}.x-window-header-default-right-tr{background-position:right -12px}.x-window-header-default-right-bl{background-position:0 -16px}.x-window-header-default-right-br{background-position:right -20px}.x-window-header-default-right-ml{background-position:0 top}.x-window-header-default-right-mr{background-position:right top}.x-window-header-default-right-tc{background-position:0 0}.x-window-header-default-right-bc{background-position:0 -4px}.x-window-header-default-right-tr,.x-window-header-default-right-br,.x-window-header-default-right-mr{padding-right:4px}.x-window-header-default-right-tl,.x-window-header-default-right-bl,.x-window-header-default-right-ml{padding-left:4px}.x-window-header-default-right-tc{height:4px}.x-window-header-default-right-bc{height:4px}.x-window-header-default-right-tl,.x-window-header-default-right-bl,.x-window-header-default-right-tr,.x-window-header-default-right-br,.x-window-header-default-right-tc,.x-window-header-default-right-bc,.x-window-header-default-right-ml,.x-window-header-default-right-mr{background-image:url(images/window-header/window-header-default-right-corners.gif)}.x-window-header-default-right-ml,.x-window-header-default-right-mr{background-image:url(images/window-header/window-header-default-right-sides.gif);background-repeat:repeat-y}.x-window-header-default-right-mc{padding:6px 6px 6px 6px}.x-window-header-default-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px 1px 1px 1px;border-style:solid;background-color:#f5f5f5}.x-window-header-default-bottom-mc{background-color:#f5f5f5}.x-nbr .x-window-header-default-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-bottom-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-window-header-default-bottom-tl{background-position:0 -8px}.x-window-header-default-bottom-tr{background-position:right -12px}.x-window-header-default-bottom-bl{background-position:0 -16px}.x-window-header-default-bottom-br{background-position:right -20px}.x-window-header-default-bottom-ml{background-position:0 top}.x-window-header-default-bottom-mr{background-position:right top}.x-window-header-default-bottom-tc{background-position:0 0}.x-window-header-default-bottom-bc{background-position:0 -4px}.x-window-header-default-bottom-tr,.x-window-header-default-bottom-br,.x-window-header-default-bottom-mr{padding-right:4px}.x-window-header-default-bottom-tl,.x-window-header-default-bottom-bl,.x-window-header-default-bottom-ml{padding-left:4px}.x-window-header-default-bottom-tc{height:4px}.x-window-header-default-bottom-bc{height:4px}.x-window-header-default-bottom-tl,.x-window-header-default-bottom-bl,.x-window-header-default-bottom-tr,.x-window-header-default-bottom-br,.x-window-header-default-bottom-tc,.x-window-header-default-bottom-bc,.x-window-header-default-bottom-ml,.x-window-header-default-bottom-mr{background-image:url(images/window-header/window-header-default-bottom-corners.gif)}.x-window-header-default-bottom-ml,.x-window-header-default-bottom-mr{background-image:url(images/window-header/window-header-default-bottom-sides.gif);background-repeat:repeat-y}.x-window-header-default-bottom-mc{padding:6px 6px 6px 6px}.x-window-header-default-left{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px 1px 1px 1px;border-style:solid;background-color:#f5f5f5}.x-window-header-default-left-mc{background-color:#f5f5f5}.x-nbr .x-window-header-default-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-left-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-window-header-default-left-tl{background-position:0 -8px}.x-window-header-default-left-tr{background-position:right -12px}.x-window-header-default-left-bl{background-position:0 -16px}.x-window-header-default-left-br{background-position:right -20px}.x-window-header-default-left-ml{background-position:0 top}.x-window-header-default-left-mr{background-position:right top}.x-window-header-default-left-tc{background-position:0 0}.x-window-header-default-left-bc{background-position:0 -4px}.x-window-header-default-left-tr,.x-window-header-default-left-br,.x-window-header-default-left-mr{padding-right:4px}.x-window-header-default-left-tl,.x-window-header-default-left-bl,.x-window-header-default-left-ml{padding-left:4px}.x-window-header-default-left-tc{height:4px}.x-window-header-default-left-bc{height:4px}.x-window-header-default-left-tl,.x-window-header-default-left-bl,.x-window-header-default-left-tr,.x-window-header-default-left-br,.x-window-header-default-left-tc,.x-window-header-default-left-bc,.x-window-header-default-left-ml,.x-window-header-default-left-mr{background-image:url(images/window-header/window-header-default-left-corners.gif)}.x-window-header-default-left-ml,.x-window-header-default-left-mr{background-image:url(images/window-header/window-header-default-left-sides.gif);background-repeat:repeat-y}.x-window-header-default-left-mc{padding:6px 6px 6px 6px}.x-window-header-default-collapsed-top{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-window-header-default-collapsed-top-mc{background-color:#f5f5f5}.x-nbr .x-window-header-default-collapsed-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-collapsed-top-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-window-header-default-collapsed-top-tl{background-position:0 -8px}.x-window-header-default-collapsed-top-tr{background-position:right -12px}.x-window-header-default-collapsed-top-bl{background-position:0 -16px}.x-window-header-default-collapsed-top-br{background-position:right -20px}.x-window-header-default-collapsed-top-ml{background-position:0 top}.x-window-header-default-collapsed-top-mr{background-position:right top}.x-window-header-default-collapsed-top-tc{background-position:0 0}.x-window-header-default-collapsed-top-bc{background-position:0 -4px}.x-window-header-default-collapsed-top-tr,.x-window-header-default-collapsed-top-br,.x-window-header-default-collapsed-top-mr{padding-right:4px}.x-window-header-default-collapsed-top-tl,.x-window-header-default-collapsed-top-bl,.x-window-header-default-collapsed-top-ml{padding-left:4px}.x-window-header-default-collapsed-top-tc{height:4px}.x-window-header-default-collapsed-top-bc{height:4px}.x-window-header-default-collapsed-top-tl,.x-window-header-default-collapsed-top-bl,.x-window-header-default-collapsed-top-tr,.x-window-header-default-collapsed-top-br,.x-window-header-default-collapsed-top-tc,.x-window-header-default-collapsed-top-bc,.x-window-header-default-collapsed-top-ml,.x-window-header-default-collapsed-top-mr{background-image:url(images/window-header/window-header-default-collapsed-top-corners.gif)}.x-window-header-default-collapsed-top-ml,.x-window-header-default-collapsed-top-mr{background-image:url(images/window-header/window-header-default-collapsed-top-sides.gif);background-repeat:repeat-y}.x-window-header-default-collapsed-top-mc{padding:6px 6px 6px 6px}.x-window-header-default-collapsed-right{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-window-header-default-collapsed-right-mc{background-color:#f5f5f5}.x-nbr .x-window-header-default-collapsed-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-collapsed-right-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-window-header-default-collapsed-right-tl{background-position:0 -8px}.x-window-header-default-collapsed-right-tr{background-position:right -12px}.x-window-header-default-collapsed-right-bl{background-position:0 -16px}.x-window-header-default-collapsed-right-br{background-position:right -20px}.x-window-header-default-collapsed-right-ml{background-position:0 top}.x-window-header-default-collapsed-right-mr{background-position:right top}.x-window-header-default-collapsed-right-tc{background-position:0 0}.x-window-header-default-collapsed-right-bc{background-position:0 -4px}.x-window-header-default-collapsed-right-tr,.x-window-header-default-collapsed-right-br,.x-window-header-default-collapsed-right-mr{padding-right:4px}.x-window-header-default-collapsed-right-tl,.x-window-header-default-collapsed-right-bl,.x-window-header-default-collapsed-right-ml{padding-left:4px}.x-window-header-default-collapsed-right-tc{height:4px}.x-window-header-default-collapsed-right-bc{height:4px}.x-window-header-default-collapsed-right-tl,.x-window-header-default-collapsed-right-bl,.x-window-header-default-collapsed-right-tr,.x-window-header-default-collapsed-right-br,.x-window-header-default-collapsed-right-tc,.x-window-header-default-collapsed-right-bc,.x-window-header-default-collapsed-right-ml,.x-window-header-default-collapsed-right-mr{background-image:url(images/window-header/window-header-default-collapsed-right-corners.gif)}.x-window-header-default-collapsed-right-ml,.x-window-header-default-collapsed-right-mr{background-image:url(images/window-header/window-header-default-collapsed-right-sides.gif);background-repeat:repeat-y}.x-window-header-default-collapsed-right-mc{padding:6px 6px 6px 6px}.x-window-header-default-collapsed-bottom{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-window-header-default-collapsed-bottom-mc{background-color:#f5f5f5}.x-nbr .x-window-header-default-collapsed-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-collapsed-bottom-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-window-header-default-collapsed-bottom-tl{background-position:0 -8px}.x-window-header-default-collapsed-bottom-tr{background-position:right -12px}.x-window-header-default-collapsed-bottom-bl{background-position:0 -16px}.x-window-header-default-collapsed-bottom-br{background-position:right -20px}.x-window-header-default-collapsed-bottom-ml{background-position:0 top}.x-window-header-default-collapsed-bottom-mr{background-position:right top}.x-window-header-default-collapsed-bottom-tc{background-position:0 0}.x-window-header-default-collapsed-bottom-bc{background-position:0 -4px}.x-window-header-default-collapsed-bottom-tr,.x-window-header-default-collapsed-bottom-br,.x-window-header-default-collapsed-bottom-mr{padding-right:4px}.x-window-header-default-collapsed-bottom-tl,.x-window-header-default-collapsed-bottom-bl,.x-window-header-default-collapsed-bottom-ml{padding-left:4px}.x-window-header-default-collapsed-bottom-tc{height:4px}.x-window-header-default-collapsed-bottom-bc{height:4px}.x-window-header-default-collapsed-bottom-tl,.x-window-header-default-collapsed-bottom-bl,.x-window-header-default-collapsed-bottom-tr,.x-window-header-default-collapsed-bottom-br,.x-window-header-default-collapsed-bottom-tc,.x-window-header-default-collapsed-bottom-bc,.x-window-header-default-collapsed-bottom-ml,.x-window-header-default-collapsed-bottom-mr{background-image:url(images/window-header/window-header-default-collapsed-bottom-corners.gif)}.x-window-header-default-collapsed-bottom-ml,.x-window-header-default-collapsed-bottom-mr{background-image:url(images/window-header/window-header-default-collapsed-bottom-sides.gif);background-repeat:repeat-y}.x-window-header-default-collapsed-bottom-mc{padding:6px 6px 6px 6px}.x-window-header-default-collapsed-left{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-window-header-default-collapsed-left-mc{background-color:#f5f5f5}.x-nbr .x-window-header-default-collapsed-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-collapsed-left-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-window-header-default-collapsed-left-tl{background-position:0 -8px}.x-window-header-default-collapsed-left-tr{background-position:right -12px}.x-window-header-default-collapsed-left-bl{background-position:0 -16px}.x-window-header-default-collapsed-left-br{background-position:right -20px}.x-window-header-default-collapsed-left-ml{background-position:0 top}.x-window-header-default-collapsed-left-mr{background-position:right top}.x-window-header-default-collapsed-left-tc{background-position:0 0}.x-window-header-default-collapsed-left-bc{background-position:0 -4px}.x-window-header-default-collapsed-left-tr,.x-window-header-default-collapsed-left-br,.x-window-header-default-collapsed-left-mr{padding-right:4px}.x-window-header-default-collapsed-left-tl,.x-window-header-default-collapsed-left-bl,.x-window-header-default-collapsed-left-ml{padding-left:4px}.x-window-header-default-collapsed-left-tc{height:4px}.x-window-header-default-collapsed-left-bc{height:4px}.x-window-header-default-collapsed-left-tl,.x-window-header-default-collapsed-left-bl,.x-window-header-default-collapsed-left-tr,.x-window-header-default-collapsed-left-br,.x-window-header-default-collapsed-left-tc,.x-window-header-default-collapsed-left-bc,.x-window-header-default-collapsed-left-ml,.x-window-header-default-collapsed-left-mr{background-image:url(images/window-header/window-header-default-collapsed-left-corners.gif)}.x-window-header-default-collapsed-left-ml,.x-window-header-default-collapsed-left-mr{background-image:url(images/window-header/window-header-default-collapsed-left-sides.gif);background-repeat:repeat-y}.x-window-header-default-collapsed-left-mc{padding:6px 6px 6px 6px}.x-window-header-default .x-window-header-icon{width:16px;height:16px;color:#157fcc;font-size:16px;line-height:16px;background-position:center center}.x-window-header-default .x-window-header-glyph{color:#157fcc;font-size:16px;line-height:16px;opacity:0.5}.x-ie8 .x-window-header-default .x-window-header-glyph{color:#85bae1}.x-window-header-default-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-window-header-default-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-window-header-default-vertical .x-tool-after-title{margin:6px 0 0 0}.x-window-header-default-vertical .x-tool-before-title{margin:0 0 6px 0}.x-window-header-default .x-tool-focus{outline:1px solid #157fcc;outline-offset:1px}.x-ie8 .x-window-header-default .x-tool-focus{outline:none}.x-ie8 .x-window-header-default .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #157fcc;pointer-events:none}.x-window-header-default{border-width:1px !important}.x-nbr .x-window-default-collapsed .x-window-header{border-width:0 !important}.x-window-default-outer-border-l{border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-window-default-outer-border-b{border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-window-default-outer-border-bl{border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-window-default-outer-border-r{border-right-color:#f5f5f5 !important;border-right-width:1px !important}.x-window-default-outer-border-rl{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-window-default-outer-border-rb{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-window-default-outer-border-rbl{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-window-default-outer-border-t{border-top-color:#f5f5f5 !important;border-top-width:1px !important}.x-window-default-outer-border-tl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-window-default-outer-border-tb{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-window-default-outer-border-tbl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-window-default-outer-border-tr{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important}.x-window-default-outer-border-trl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-window-default-outer-border-trb{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-window-default-outer-border-trbl{border-color:#f5f5f5 !important;border-width:1px !important}.x-window-body-plain{background-color:transparent}.x-form-item-label-default{color:#666;font:300 13px/17px helvetica, arial, verdana, sans-serif;min-height:24px;padding-top:4px;padding-right:5px}.x-ie8 .x-form-item-label-default{min-height:20px}.x-form-item-label-default.x-form-item-label-top{height:1px}.x-form-item-label-default.x-form-item-label-top > .x-form-item-label-inner{padding-top:4px;padding-bottom:5px}.x-form-item-label-default.x-form-item-label-top-side-error:after{width:26px}.x-form-item-body-default{min-height:24px}.x-form-invalid-icon-default{width:16px;height:16px;margin:0 5px;background:url(images/form/exclamation.png) no-repeat}.x-form-invalid-under-default{padding:2px 2px 2px 20px;color:#cf4c35;font:300 13px/16px helvetica, arial, verdana, sans-serif;background:no-repeat 0 2px;background-image:url(images/form/exclamation.png)}.x-form-error-wrap-default.x-form-error-wrap-side{width:26px}.x-form-item-default.x-item-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3}.x-autocontainer-form-item,.x-anchor-form-item,.x-vbox-form-item,.x-table-form-item{margin-bottom:5px}.x-form-text-field-body-default{min-width:170px;max-width:170px}.x-form-trigger-wrap-default{border-width:1px;border-style:solid;border-color:#cfcfcf}.x-form-trigger-wrap-default.x-form-trigger-wrap-focus{border-color:#3892d4}.x-form-trigger-wrap-default.x-form-trigger-wrap-invalid{border-color:#cf4c35}.x-form-text-default{color:#000;padding:3px 6px 2px;background-color:#fff;font:300 13px/17px helvetica, arial, verdana, sans-serif;min-height:22px}.x-ie8 .x-form-text-default{min-height:17px}.x-form-text-default.x-form-textarea{line-height:15px;min-height:60px}.x-ie8 .x-form-text-default.x-form-textarea{min-height:55px}.x-form-text-default.x-form-text-file{color:grey}.x-form-empty-field-default{color:grey}.x-form-text-default:-ms-input-placeholder{color:grey}.x-form-invalid-field-default{background-color:#fff}.x-form-trigger-default{width:22px;background:0 center #fff url(images/form/trigger.png) no-repeat}.x-form-trigger-default.x-form-trigger-over{background-position:-22px center}.x-form-trigger-default.x-form-trigger-over.x-form-trigger-focus{background-position:-88px center}.x-form-trigger-default.x-form-trigger-focus{background-position:-66px center}.x-form-trigger.x-form-trigger-default.x-form-trigger-click{background-position:-44px center}.x-form-clear-trigger{background-image:url(images/form/clear-trigger.png)}.x-form-search-trigger{background-image:url(images/form/search-trigger.png)}.x-message-box .x-window-body{background-color:#fff;border-width:0}.x-message-box-info,.x-message-box-warning,.x-message-box-question,.x-message-box-error{background-position:left top;background-repeat:no-repeat}.x-message-box-icon{height:32px;width:32px;margin-right:10px}.x-message-box-info{background-image:url(images/shared/icon-info.png)}.x-message-box-warning{background-image:url(images/shared/icon-warning.png)}.x-message-box-question{background-image:url(images/shared/icon-question.png)}.x-message-box-error{background-image:url(images/shared/icon-error.png)}.x-form-cb-wrap-default{height:24px;min-width:15px}.x-form-cb-default{margin-top:5px}.x-form-checkbox-default,.x-form-radio-default{width:15px;height:15px}.x-form-radio-default{background:url(images/form/radio.png) no-repeat}.x-form-cb-checked .x-form-radio-default{background-position:0 -15px}.x-form-checkbox-default{background:url(images/form/checkbox.png) no-repeat}.x-form-cb-checked .x-form-checkbox-default{background-position:0 -15px}.x-form-checkbox-focus.x-form-radio-default{background-position:-15px 0}.x-form-cb-checked .x-form-checkbox-focus.x-form-radio-default{background-position:-15px -15px}.x-form-checkbox-focus.x-form-checkbox-default{background-position:-15px 0}.x-form-cb-checked .x-form-checkbox-focus.x-form-checkbox-default{background-position:-15px -15px}.x-form-cb-label-default{margin-top:4px;font:300 helvetica, arial, verdana, sans-serif/17px helvetica, arial, verdana, sans-serif}.x-form-cb-label-default.x-form-cb-label-before{padding-right:19px}.x-form-cb-label-default.x-form-cb-label-after{padding-left:19px}.x-form-trigger-spinner-default{width:22px}.x-form-spinner-default{background-image:url(images/form/spinner.png);background-color:#fff;width:22px;height:11px}.x-form-spinner-up-default{background-position:0 0}.x-form-spinner-up-default.x-form-spinner-over{background-position:-22px 0}.x-form-spinner-up-default.x-form-spinner-over.x-form-spinner-focus{background-position:-88px 0}.x-form-spinner-up-default.x-form-spinner-focus{background-position:-66px 0}.x-form-spinner-up-default.x-form-spinner.x-form-spinner-click{background-position:-44px 0}.x-form-spinner-down-default{background-position:0 -11px}.x-form-spinner-down-default.x-form-spinner-over{background-position:-22px -11px}.x-form-spinner-down-default.x-form-spinner-over.x-form-spinner-focus{background-position:-88px -11px}.x-form-spinner-down-default.x-form-spinner-focus{background-position:-66px -11px}.x-form-spinner-down-default.x-form-spinner.x-form-spinner-click{background-position:-44px -11px}.x-tbar-page-number{width:30px}.x-btn-icon-el.x-tbar-page-first{background-image:url(images/grid/page-first.png)}.x-btn-icon-el.x-tbar-page-prev{background-image:url(images/grid/page-prev.png)}.x-btn-icon-el.x-tbar-page-next{background-image:url(images/grid/page-next.png)}.x-btn-icon-el.x-tbar-page-last{background-image:url(images/grid/page-last.png)}.x-btn-icon-el.x-tbar-loading{background-image:url(images/grid/refresh.png)}.x-boundlist{border-width:1px;border-style:solid;border-color:#e1e1e1;background:#fff}.x-boundlist-item{padding:0 6px;font:normal 13px helvetica, arial, verdana, sans-serif;line-height:22px;cursor:pointer;cursor:hand;position:relative;border-width:1px;border-style:dotted;border-color:#fff;color:#000}.x-boundlist-selected{background:#c2ddf2;border-color:#c2ddf2}.x-boundlist-item-over{background:#d6e9f6;border-color:#d6e9f6}.x-boundlist-floating{border-top-width:0}.x-boundlist-above{border-top-width:1px;border-bottom-width:1px}.x-tip-anchor{position:absolute;overflow:hidden;height:10px;width:10px;border-style:solid;border-width:5px;border-color:#e1e1e1}.x-tip-anchor-top{border-top-color:transparent;border-left-color:transparent;border-right-color:transparent;_border-top-color:pink;_border-left-color:pink;_border-right-color:pink;_filter:chroma(color=pink)}.x-tip-anchor-bottom{border-bottom-color:transparent;border-left-color:transparent;border-right-color:transparent;_border-bottom-color:pink;_border-left-color:pink;_border-right-color:pink;_filter:chroma(color=pink)}.x-tip-anchor-left{border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;_border-top-color:pink;_border-bottom-color:pink;_border-left-color:pink;_filter:chroma(color=pink)}.x-tip-anchor-right{border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;_border-top-color:pink;_border-bottom-color:pink;_border-right-color:pink;_filter:chroma(color=pink)}.x-tip-default{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:2px 2px 2px 2px;border-width:1px;border-style:solid;background-color:#ebf4fb}.x-tip-default-mc{background-color:#ebf4fb}.x-nbr .x-tip-default{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tip-default-frameInfo{font-family:th-3-3-3-3-1-1-1-1-2-2-2-2}.x-tip-default-tl{background-position:0 -6px}.x-tip-default-tr{background-position:right -9px}.x-tip-default-bl{background-position:0 -12px}.x-tip-default-br{background-position:right -15px}.x-tip-default-ml{background-position:0 top}.x-tip-default-mr{background-position:right top}.x-tip-default-tc{background-position:0 0}.x-tip-default-bc{background-position:0 -3px}.x-tip-default-tr,.x-tip-default-br,.x-tip-default-mr{padding-right:3px}.x-tip-default-tl,.x-tip-default-bl,.x-tip-default-ml{padding-left:3px}.x-tip-default-tc{height:3px}.x-tip-default-bc{height:3px}.x-tip-default-tl,.x-tip-default-bl,.x-tip-default-tr,.x-tip-default-br,.x-tip-default-tc,.x-tip-default-bc,.x-tip-default-ml,.x-tip-default-mr{background-image:url(images/tip/tip-default-corners.gif)}.x-tip-default-ml,.x-tip-default-mr{background-image:url(images/tip/tip-default-sides.gif);background-repeat:repeat-y}.x-tip-default-mc{padding:0px 0px 0px 0px}.x-tip-default{background-color:#ebf4fb;border-color:#e1e1e1}.x-tip-default .x-tool-img{background-image:url(images/tools/tool-sprites-dark.png);background-color:#ebf4fb}.x-tip-header-default .x-tool-after-title{margin:0 0 0 6px}.x-tip-header-default .x-tool-before-title{margin:0 6px 0 0}.x-tip-header-default{padding:3px 3px 0 3px}.x-tip-header-title-default{color:#000;font-size:13px;font-weight:bold}.x-tip-body-default{padding:3px;color:#000;font-size:13px;font-weight:300}.x-tip-body-default a{color:#000}.x-tip-form-invalid{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:2px 2px 2px 2px;border-width:1px;border-style:solid;background-color:#ebf4fb}.x-tip-form-invalid-mc{background-color:#ebf4fb}.x-nbr .x-tip-form-invalid{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tip-form-invalid-frameInfo{font-family:th-3-3-3-3-1-1-1-1-2-2-2-2}.x-tip-form-invalid-tl{background-position:0 -6px}.x-tip-form-invalid-tr{background-position:right -9px}.x-tip-form-invalid-bl{background-position:0 -12px}.x-tip-form-invalid-br{background-position:right -15px}.x-tip-form-invalid-ml{background-position:0 top}.x-tip-form-invalid-mr{background-position:right top}.x-tip-form-invalid-tc{background-position:0 0}.x-tip-form-invalid-bc{background-position:0 -3px}.x-tip-form-invalid-tr,.x-tip-form-invalid-br,.x-tip-form-invalid-mr{padding-right:3px}.x-tip-form-invalid-tl,.x-tip-form-invalid-bl,.x-tip-form-invalid-ml{padding-left:3px}.x-tip-form-invalid-tc{height:3px}.x-tip-form-invalid-bc{height:3px}.x-tip-form-invalid-tl,.x-tip-form-invalid-bl,.x-tip-form-invalid-tr,.x-tip-form-invalid-br,.x-tip-form-invalid-tc,.x-tip-form-invalid-bc,.x-tip-form-invalid-ml,.x-tip-form-invalid-mr{background-image:url(images/tip/tip-form-invalid-corners.gif)}.x-tip-form-invalid-ml,.x-tip-form-invalid-mr{background-image:url(images/tip/tip-form-invalid-sides.gif);background-repeat:repeat-y}.x-tip-form-invalid-mc{padding:0px 0px 0px 0px}.x-tip-form-invalid{background-color:#ebf4fb;border-color:#e1e1e1}.x-tip-form-invalid .x-tool-img{background-image:url(images/tools/tool-sprites-dark.png);background-color:#ebf4fb}.x-tip-header-form-invalid .x-tool-after-title{margin:0 0 0 6px}.x-tip-header-form-invalid .x-tool-before-title{margin:0 6px 0 0}.x-tip-header-form-invalid{padding:3px 3px 0 3px}.x-tip-header-title-form-invalid{color:#000;font-size:13px;font-weight:bold}.x-tip-body-form-invalid{padding:5px 3px 5px 34px;color:#000;font-size:13px;font-weight:300}.x-tip-body-form-invalid a{color:#000}.x-tip-body-form-invalid{background:1px 1px no-repeat;background-image:url(images/form/exclamation.png)}.x-tip-body-form-invalid li{margin-bottom:4px}.x-tip-body-form-invalid li.last{margin-bottom:0}.x-grid-view{z-index:1}.x-grid-body{background:#fff;border-width:1px;border-style:solid;border-color:#cfcfcf}.x-grid-item-container{min-height:1px;position:relative;overflow:hidden}.x-grid-empty{padding:10px;color:grey;background-color:#fff;font:300 13px helvetica, arial, verdana, sans-serif}.x-grid-item{color:#000;font:300 13px/15px helvetica, arial, verdana, sans-serif;background-color:#fff}.x-grid-item-alt{background-color:#fafafa}.x-grid-item-over{color:#000;background-color:#e2eff9}.x-grid-item-focused{outline:0;color:#000}.x-grid-item-focused .x-grid-cell-inner{z-index:1}.x-grid-item-focused .x-grid-cell-inner:before{content:"";position:absolute;z-index:-1;top:0px;right:0px;bottom:0px;left:0px;pointer-events:none;border:1px solid #3d92cf}.x-grid-item-selected{color:#000;background-color:#c2ddf2}.x-grid-with-row-lines .x-grid-item{border-style:solid;border-width:1px 0 0;border-color:#cfcfcf}.x-grid-with-row-lines .x-grid-item:first-child{border-top-color:#fff}.x-grid-with-row-lines .x-grid-item.x-grid-item-over{border-style:solid;border-color:#e2eff9}.x-grid-with-row-lines .x-grid-item-over + .x-grid-item{border-top-style:solid;border-top-color:#e2eff9}.x-grid-with-row-lines .x-grid-item.x-grid-item-selected{border-style:solid;border-color:#c2ddf2}.x-grid-with-row-lines .x-grid-item-selected + .x-grid-item{border-top-style:solid;border-top-color:#c2ddf2}.x-grid-with-row-lines .x-grid-item:last-child{border-bottom-width:1px}.x-ie8 .x-grid-with-row-lines .x-grid-item{border-width:1px 0;margin-top:-1px}.x-ie8 .x-grid-with-row-lines .x-grid-item:first-child{margin-top:0}.x-grid-cell-inner{position:relative;text-overflow:ellipsis;padding:5px 10px 4px}.x-grid-cell-special{border-color:#cfcfcf;border-style:solid;border-right-width:1px}.x-grid-dirty-cell{background:url(images/grid/dirty.png) no-repeat 0 0}.x-grid-row .x-grid-cell-selected{color:#000;background-color:#c2ddf2}.x-grid-with-col-lines .x-grid-cell{border-style:solid;border-color:#cfcfcf;border-width:0 1px 0 0}.x-grid-with-col-lines .x-grid-item-over .x-grid-cell{border-color:#e2eff9;border-style:solid}.x-grid-with-col-lines .x-grid-item-selected .x-grid-cell{border-color:#c2ddf2;border-style:solid}.x-grid-resize-marker{width:1px;background-color:#0f0f0f}.x-grid-drop-indicator{position:absolute;height:1px;line-height:0px;background-color:#77bc71;overflow:visible;pointer-events:none}.x-grid-drop-indicator .x-grid-drop-indicator-left{position:absolute;top:-8px;left:-12px;background-image:url(images/grid/dd-insert-arrow-right.png);height:16px;width:16px}.x-grid-drop-indicator .x-grid-drop-indicator-right{position:absolute;top:-8px;right:-11px;background-image:url(images/grid/dd-insert-arrow-left.png);height:16px;width:16px}.x-col-move-top,.x-col-move-bottom{width:9px;height:9px}.x-col-move-top{background-image:url(images/grid/col-move-top.png)}.x-col-move-bottom{background-image:url(images/grid/col-move-bottom.png)}.x-grid-header-ct{border:1px solid #cfcfcf;border-bottom-color:#fff;background-color:#fff}.x-accordion-item .x-grid-header-ct{border-width:0 0 1px !important}.x-grid-header-ct-hidden{border-top:0 !important;border-bottom:0 !important}.x-grid-body{border-top-color:#cfcfcf}.x-hmenu-sort-asc{background-image:url(images/grid/hmenu-asc.png)}.x-hmenu-sort-desc{background-image:url(images/grid/hmenu-desc.png)}.x-cols-icon{background-image:url(images/grid/columns.png)}.x-column-header{border-right:1px solid #cfcfcf;color:#666;font:300 13px/15px helvetica, arial, verdana, sans-serif;outline:0;background-color:#fff}.x-group-sub-header{background:transparent;border-top:1px solid #cfcfcf}.x-group-sub-header .x-column-header-inner{padding:6px 10px 7px 10px}.x-column-header-inner{padding:7px 10px}.x-column-header-inner-empty{text-overflow:clip}.x-column-header.x-column-header-focus{color:#666}.x-column-header.x-column-header-focus .x-column-header-inner:after{content:"";position:absolute;z-index:5;top:0px;right:0px;bottom:0px;left:0px;border:1px solid #4499d6;pointer-events:none}.x-column-header.x-column-header-focus.x-group-sub-header .x-column-header-inner:before{bottom:0px}.x-column-header-over{background-image:none;background-color:#eff6fb}.x-column-header-sort-ASC,.x-column-header-sort-DESC{background-image:none;background-color:#eff6fb}.x-column-header-open{background-color:#eff6fb}.x-column-header-open .x-column-header-trigger{background-color:#e0ebf3}.x-column-header-over .x-column-header-trigger,.x-column-header-open .x-column-header-trigger{width:18px;cursor:pointer;background:transparent url(images/grid/hd-pop.png) no-repeat center center}.x-column-header-align-right .x-column-header-text{margin-right:12px}.x-column-header-sort-ASC .x-column-header-text-inner,.x-column-header-sort-DESC .x-column-header-text-inner{padding-right:17px;background-position:right center}.x-column-header-sort-ASC .x-column-header-text-inner{background-image:url(images/grid/sort_asc.png)}.x-column-header-sort-DESC .x-column-header-text-inner{background-image:url(images/grid/sort_desc.png)}.x-no-header-borders .x-column-header{border:0 none}.x-no-header-borders .x-column-header .x-column-header-inner{padding-top:7px}.x-menu-default{border-style:solid;border-width:1px;border-color:#e1e1e1}.x-menu-body-default{background:#fff;padding:0}.x-menu-icon-separator-default{left:26px;border-left:solid 1px #e1e1e1;background-color:#fff;width:1px}.x-menu-item-default{border-width:0;cursor:pointer}.x-menu-item-default.x-menu-item-active{background-image:none;background-color:#d6e9f6}.x-nlg .x-menu-item-default.x-menu-item-active{background:#d6e9f6 repeat-x left top;background-image:url(images/menu/menu-item-default-active-bg.gif)}.x-menu-item-default.x-menu-item-disabled{cursor:default}.x-menu-item-default.x-menu-item-disabled a{cursor:default}.x-menu-item-default.x-menu-item-separator{height:1px;border-top:solid 1px #e1e1e1;background-color:#fff;margin:2px 0;padding:0}.x-menu-item-default.x-menu-item-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-ie9m .x-menu-item-default.x-menu-item-disabled .x-menu-item-icon-ui{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-ie9m .x-menu-item-default.x-menu-item-disabled .x-menu-item-text-default{background-color:transparent}.x-menu-item-default .x-form-item-label{font-size:13px;color:#000}.x-menu-item-text-default,.x-menu-item-cmp-default{margin:0 5px 0 5px}.x-menu-item-text-default{font:300 13px helvetica, arial, verdana, sans-serif;line-height:23px;padding-top:1px;color:#000;cursor:pointer}.x-menu-item-text-default.x-menu-item-indent{margin-left:32px}.x-menu-item-text-default.x-menu-item-indent-no-separator{margin-left:26px}.x-menu-item-text-default.x-menu-item-indent-right-icon{margin-right:31px}.x-menu-item-text-default.x-menu-item-indent-right-arrow{margin-right:22px}.x-menu-item-disabled .x-menu-item-text-default{cursor:default}.x-menu-item-indent-default{margin-left:32px}.x-menu-item-icon-default{width:16px;height:16px;top:4px;left:5px;line-height:16px;font-size:16px;color:grey;background-position:center center}.x-menu-item-icon-default.x-menu-item-glyph{opacity:0.5}.x-ie8 .x-menu-item-icon-default.x-menu-item-glyph{color:silver}.x-menu-item-icon-default.x-menu-item-icon-right{width:16px;height:16px;top:4px;right:5px;left:auto;background-position:center center}.x-menu-item-checked .x-menu-item-icon-default.x-menu-item-checkbox{background-image:url(images/menu/default-checked.png)}.x-menu-item-unchecked .x-menu-item-icon-default.x-menu-item-checkbox{background-image:url(images/menu/default-unchecked.png)}.x-menu-item-checked .x-menu-item-icon-default.x-menu-group-icon{background-image:url(images/menu/default-group-checked.png)}.x-menu-item-unchecked .x-menu-item-icon-default.x-menu-group-icon{background-image:none}.x-menu-item-arrow-default{width:12px;height:9px;top:8px;right:0;background-image:url(images/menu/default-menu-parent.png)}.x-menu-item-active .x-menu-item-arrow-default{top:8px;right:0}.x-menu-default-scroller .x-box-scroller-body-horizontal{margin-left:16px}.x-menu-default-vertical-scroller .x-box-scroller-body-vertical{margin-top:24px}.x-box-scroller-menu-default{cursor:pointer;color:#e1e1e1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-box-scroller-menu-default.x-box-scroller-hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-box-scroller-menu-default.x-box-scroller-pressed{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";opacity:0.7}.x-box-scroller-menu-default.x-box-scroller-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";opacity:0.25;cursor:default}.x-box-scroller-menu-default.x-box-scroller-top,.x-box-scroller-menu-default.x-box-scroller-bottom{height:16px;width:16px;left:50%;margin-left:-8px}.x-box-scroller-menu-default.x-box-scroller-top{margin-top:4px;margin-right:0;margin-bottom:4px;background-image:url(images/menu/default-scroll-top.png)}.x-box-scroller-menu-default.x-box-scroller-bottom{margin-top:4px;margin-right:0;margin-bottom:4px;background-image:url(images/menu/default-scroll-bottom.png)}.x-ie8 .x-box-scroller-menu-default{background-color:#fff}.x-grid-locked .x-grid-inner-locked{border-width:0 1px 0 0;border-style:solid}.x-grid-locked-split .x-grid-inner-normal{border-width:0 0 0 1px;border-style:solid;border-left-color:#888}.x-grid-locking-body{border-width:1px}.x-grid-inner-locked{border-right-color:#888}.x-grid-inner-locked .x-column-header-last,.x-grid-inner-locked .x-grid-cell-last{border-right-width:0!important}.x-hmenu-lock{background-image:url(images/grid/hmenu-lock.png)}.x-hmenu-unlock{background-image:url(images/grid/hmenu-unlock.png)}.x-accordion-layout-ct{background-color:#fff;padding:0}.x-accordion-hd .x-panel-header-title{color:#157fcc;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;text-transform:none}.x-accordion-item{margin:0}.x-accordion-item .x-accordion-hd{background:#fff;border-width:0 0 1px;border-color:#fff #cfcfcf #cfcfcf;padding:8px 10px}.x-accordion-item .x-accordion-hd-sibling-expanded{border-top-color:#cfcfcf;border-top-width:1px}.x-accordion-item .x-accordion-hd-last-collapsed{border-bottom-color:#fff}.x-accordion-item .x-accordion-body{border-width:0}.x-accordion-hd .x-tool-img{background-color:#fff}.x-accordion-hd .x-tool-collapse-top,.x-accordion-hd .x-tool-collapse-bottom{background-position:0 -272px}.x-accordion-hd .x-tool-expand-top,.x-accordion-hd .x-tool-expand-bottom{background-position:0 -256px}body.x-border-layout-ct,div.x-border-layout-ct{background-color:#cfcfcf}.x-resizable-handle{position:absolute;z-index:100;font-size:1px;line-height:5px;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0;background-color:#cfcfcf}.x-collapsed .x-resizable-handle{display:none}.x-resizable-handle-north{cursor:n-resize}.x-resizable-handle-south{cursor:s-resize}.x-resizable-handle-east{cursor:e-resize}.x-resizable-handle-west{cursor:w-resize}.x-resizable-handle-southeast{cursor:se-resize}.x-resizable-handle-northwest{cursor:nw-resize}.x-resizable-handle-northeast{cursor:ne-resize}.x-resizable-handle-southwest{cursor:sw-resize}.x-resizable-handle-east{width:5px;height:100%;right:0;top:0}.x-resizable-handle-south{width:100%;height:5px;left:0;bottom:0}.x-resizable-handle-west{width:5px;height:100%;left:0;top:0}.x-resizable-handle-north{width:100%;height:5px;left:0;top:0}.x-resizable-handle-southeast{width:5px;height:5px;right:0;bottom:0;z-index:101}.x-resizable-handle-northwest{width:5px;height:5px;left:0;top:0;z-index:101}.x-resizable-handle-northeast{width:5px;height:5px;right:0;top:0;z-index:101}.x-resizable-handle-southwest{width:5px;height:5px;left:0;bottom:0;z-index:101}.x-window .x-window-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-window-collapsed .x-window-handle{display:none}.x-resizable-proxy{border:1px dashed #3b5a82;position:absolute;overflow:hidden;z-index:50000}.x-resizable-handle-over,.x-resizable-pinned .x-resizable-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-resizable-handle-east-over,.x-resizable-handle-west-over,.x-resizable-pinned > .x-resizable-handle-east,.x-resizable-pinned > .x-resizable-handle-west{background-image:url(images/sizer/e-handle.png)}.x-resizable-handle-south-over,.x-resizable-handle-north-over,.x-resizable-pinned > .x-resizable-handle-south,.x-resizable-pinned > .x-resizable-handle-north{background-image:url(images/sizer/s-handle.png)}.x-resizable-handle-southeast-over,.x-resizable-pinned > .x-resizable-handle-southeast{background-position:top left;background-image:url(images/sizer/se-handle.png)}.x-resizable-handle-northwest-over,.x-resizable-pinned > .x-resizable-handle-northwest{background-position:bottom right;background-image:url(images/sizer/nw-handle.png)}.x-resizable-handle-northeast-over,.x-resizable-pinned > .x-resizable-handle-northeast{background-position:bottom left;background-image:url(images/sizer/ne-handle.png)}.x-resizable-handle-southwest-over,.x-resizable-pinned > .x-resizable-handle-southwest{background-position:top right;background-image:url(images/sizer/sw-handle.png)}.x-column-header-checkbox{border-color:#fff}.x-grid-row-checker,.x-column-header-checkbox .x-column-header-text{height:15px;width:15px;background-image:url(images/form/checkbox.png)}.x-grid-row-checker:focus{outline:1px solid #3d92cf}.x-column-header-checkbox .x-column-header-inner{padding:7px 4px 7px 4px}.x-grid-cell-row-checker .x-grid-cell-inner{padding:5px 4px 4px 4px;line-height:15px}.x-grid-hd-checker-on .x-column-header-text,.x-grid-item-selected .x-grid-row-checker,.x-grid-item-selected .x-grid-row-checker{background-position:0 -15px}.x-tab-default-top{-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;padding:3px 8px 3px 8px;border-width:1px;border-style:solid;background-color:#f5f5f5}.x-tab-default-top-mc{background-color:#f5f5f5}.x-nbr .x-tab-default-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-default-top-frameInfo{font-family:th-2-2-2-2-1-1-1-1-3-8-3-8}.x-tab-default-top-tl{background-position:0 -4px}.x-tab-default-top-tr{background-position:right -6px}.x-tab-default-top-bl{background-position:0 -8px}.x-tab-default-top-br{background-position:right -10px}.x-tab-default-top-ml{background-position:0 top}.x-tab-default-top-mr{background-position:right top}.x-tab-default-top-tc{background-position:0 0}.x-tab-default-top-bc{background-position:0 -2px}.x-tab-default-top-tr,.x-tab-default-top-br,.x-tab-default-top-mr{padding-right:2px}.x-tab-default-top-tl,.x-tab-default-top-bl,.x-tab-default-top-ml{padding-left:2px}.x-tab-default-top-tc{height:2px}.x-tab-default-top-bc{height:2px}.x-tab-default-top-tl,.x-tab-default-top-bl,.x-tab-default-top-tr,.x-tab-default-top-br,.x-tab-default-top-tc,.x-tab-default-top-bc,.x-tab-default-top-ml,.x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-corners.gif)}.x-tab-default-top-ml,.x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-sides.gif);background-repeat:repeat-y}.x-tab-default-top-mc{padding:2px 7px 2px 7px}.x-tab-default-bottom{-moz-border-radius-topleft:2px;-webkit-border-top-left-radius:2px;border-top-left-radius:2px;-moz-border-radius-topright:2px;-webkit-border-top-right-radius:2px;border-top-right-radius:2px;-moz-border-radius-bottomright:2px;-webkit-border-bottom-right-radius:2px;border-bottom-right-radius:2px;-moz-border-radius-bottomleft:2px;-webkit-border-bottom-left-radius:2px;border-bottom-left-radius:2px;padding:3px 8px 3px 8px;border-width:1px 1px 1px 1px;border-style:solid;background-color:#f5f5f5}.x-tab-default-bottom-mc{background-color:#f5f5f5}.x-nbr .x-tab-default-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-default-bottom-frameInfo{font-family:th-2-2-2-2-1-1-1-1-3-8-3-8}.x-tab-default-bottom-tl{background-position:0 -4px}.x-tab-default-bottom-tr{background-position:right -6px}.x-tab-default-bottom-bl{background-position:0 -8px}.x-tab-default-bottom-br{background-position:right -10px}.x-tab-default-bottom-ml{background-position:0 bottom}.x-tab-default-bottom-mr{background-position:right bottom}.x-tab-default-bottom-tc{background-position:0 0}.x-tab-default-bottom-bc{background-position:0 -2px}.x-tab-default-bottom-tr,.x-tab-default-bottom-br,.x-tab-default-bottom-mr{padding-right:2px}.x-tab-default-bottom-tl,.x-tab-default-bottom-bl,.x-tab-default-bottom-ml{padding-left:2px}.x-tab-default-bottom-tc{height:2px}.x-tab-default-bottom-bc{height:2px}.x-tab-default-bottom-tl,.x-tab-default-bottom-bl,.x-tab-default-bottom-tr,.x-tab-default-bottom-br,.x-tab-default-bottom-tc,.x-tab-default-bottom-bc,.x-tab-default-bottom-ml,.x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-corners.gif)}.x-tab-default-bottom-ml,.x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-sides.gif);background-repeat:repeat-y}.x-tab-default-bottom-mc{padding:2px 7px 2px 7px}.x-tab-default-left{-moz-border-radius-topleft:2px;-webkit-border-top-left-radius:2px;border-top-left-radius:2px;-moz-border-radius-topright:2px;-webkit-border-top-right-radius:2px;border-top-right-radius:2px;-moz-border-radius-bottomright:2px;-webkit-border-bottom-right-radius:2px;border-bottom-right-radius:2px;-moz-border-radius-bottomleft:2px;-webkit-border-bottom-left-radius:2px;border-bottom-left-radius:2px;padding:3px 8px 3px 8px;border-width:1px 1px 1px 1px;border-style:solid;background-color:#f5f5f5}.x-tab-default-left-mc{background-color:#f5f5f5}.x-nbr .x-tab-default-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-default-left-frameInfo{font-family:th-2-2-2-2-1-1-1-1-3-8-3-8}.x-tab-default-left-tl{background-position:0 -4px}.x-tab-default-left-tr{background-position:right -6px}.x-tab-default-left-bl{background-position:0 -8px}.x-tab-default-left-br{background-position:right -10px}.x-tab-default-left-ml{background-position:0 top}.x-tab-default-left-mr{background-position:right top}.x-tab-default-left-tc{background-position:0 0}.x-tab-default-left-bc{background-position:0 -2px}.x-tab-default-left-tr,.x-tab-default-left-br,.x-tab-default-left-mr{padding-right:2px}.x-tab-default-left-tl,.x-tab-default-left-bl,.x-tab-default-left-ml{padding-left:2px}.x-tab-default-left-tc{height:2px}.x-tab-default-left-bc{height:2px}.x-tab-default-left-tl,.x-tab-default-left-bl,.x-tab-default-left-tr,.x-tab-default-left-br,.x-tab-default-left-tc,.x-tab-default-left-bc,.x-tab-default-left-ml,.x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-corners.gif)}.x-tab-default-left-ml,.x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-sides.gif);background-repeat:repeat-y}.x-tab-default-left-mc{padding:2px 7px 2px 7px}.x-tab-default-right{-moz-border-radius-topleft:2px;-webkit-border-top-left-radius:2px;border-top-left-radius:2px;-moz-border-radius-topright:2px;-webkit-border-top-right-radius:2px;border-top-right-radius:2px;-moz-border-radius-bottomright:2px;-webkit-border-bottom-right-radius:2px;border-bottom-right-radius:2px;-moz-border-radius-bottomleft:2px;-webkit-border-bottom-left-radius:2px;border-bottom-left-radius:2px;padding:3px 8px 3px 8px;border-width:1px 1px 1px 1px;border-style:solid;background-color:#f5f5f5}.x-tab-default-right-mc{background-color:#f5f5f5}.x-nbr .x-tab-default-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-default-right-frameInfo{font-family:th-2-2-2-2-1-1-1-1-3-8-3-8}.x-tab-default-right-tl{background-position:0 -4px}.x-tab-default-right-tr{background-position:right -6px}.x-tab-default-right-bl{background-position:0 -8px}.x-tab-default-right-br{background-position:right -10px}.x-tab-default-right-ml{background-position:0 top}.x-tab-default-right-mr{background-position:right top}.x-tab-default-right-tc{background-position:0 0}.x-tab-default-right-bc{background-position:0 -2px}.x-tab-default-right-tr,.x-tab-default-right-br,.x-tab-default-right-mr{padding-right:2px}.x-tab-default-right-tl,.x-tab-default-right-bl,.x-tab-default-right-ml{padding-left:2px}.x-tab-default-right-tc{height:2px}.x-tab-default-right-bc{height:2px}.x-tab-default-right-tl,.x-tab-default-right-bl,.x-tab-default-right-tr,.x-tab-default-right-br,.x-tab-default-right-tc,.x-tab-default-right-bc,.x-tab-default-right-ml,.x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-corners.gif)}.x-tab-default-right-ml,.x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-sides.gif);background-repeat:repeat-y}.x-tab-default-right-mc{padding:2px 7px 2px 7px}.x-tab-default{border-color:#f5f5f5;cursor:pointer}.x-tab-default-top{margin:0 5px}.x-tab-default-top.x-tab-rotate-left{margin:0 5px 0 5px}.x-tab-default-top.x-tab-focus{-webkit-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;-moz-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset}.x-tab-default-top.x-tab-focus.x-tab-over{-webkit-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;-moz-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset}.x-tab-default-top.x-tab-focus.x-tab-active{-webkit-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;-moz-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset}.x-tab-default-right{margin:5px 0 5px 0}.x-tab-default-right.x-tab-rotate-right{margin:5px 0 5px 0}.x-tab-default-right.x-tab-focus{-webkit-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;-moz-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset}.x-tab-default-right.x-tab-focus.x-tab-over{-webkit-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;-moz-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset}.x-tab-default-right.x-tab-focus.x-tab-active{-webkit-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;-moz-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset}.x-tab-default-bottom{margin:0 5px 0 5px}.x-tab-default-bottom.x-tab-rotate-left{margin:0 5px 0 5px}.x-tab-default-bottom.x-tab-focus{-webkit-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;-moz-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset}.x-tab-default-bottom.x-tab-focus.x-tab-over{-webkit-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;-moz-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset}.x-tab-default-bottom.x-tab-focus.x-tab-active{-webkit-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;-moz-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset}.x-tab-default-left{margin:5px 0 5px 0}.x-tab-default-left.x-tab-rotate-right{margin:5px 0 5px 0}.x-tab-default-left.x-tab-focus{-webkit-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;-moz-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset}.x-tab-default-left.x-tab-focus.x-tab-over{-webkit-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;-moz-box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset;box-shadow:#3892d4 0 1px 0px 0 inset, #3892d4 0 -1px 0px 0 inset, #3892d4 -1px 0 0px 0 inset, #3892d4 1px 0 0px 0 inset}.x-tab-default-left.x-tab-focus.x-tab-active{-webkit-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;-moz-box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset;box-shadow:#d7e9f6 0 1px 0px 0 inset, #d7e9f6 0 -1px 0px 0 inset, #d7e9f6 -1px 0 0px 0 inset, #d7e9f6 1px 0 0px 0 inset}.x-tab-button-default{height:16px}.x-tab-inner-default{font:300 13px/16px helvetica, arial, verdana, sans-serif;color:#000;max-width:100%}.x-tab-icon-right > .x-tab-inner-default,.x-tab-icon-left > .x-tab-inner-default{max-width:calc(100% - 16px)}.x-tab-icon-el-default{min-height:16px;background-position:center center;font-size:16px;line-height:16px;color:#000}.x-tab-icon-left > .x-tab-icon-el-default,.x-tab-icon-right > .x-tab-icon-el-default{width:16px}.x-tab-icon-top > .x-tab-icon-el-default,.x-tab-icon-bottom > .x-tab-icon-el-default{min-width:16px}.x-tab-icon-el-default.x-tab-glyph{opacity:0.5}.x-ie8 .x-tab-icon-el-default.x-tab-glyph{color:#7b7b7b}.x-tab-text.x-tab-icon-left > .x-tab-icon-el-default{margin-right:6px}.x-tab-text.x-tab-icon-right > .x-tab-icon-el-default{margin-left:6px}.x-tab-text.x-tab-icon-top > .x-tab-icon-el-default{margin-bottom:6px}.x-tab-text.x-tab-icon-bottom > .x-tab-icon-el-default{margin-top:6px}.x-tab-focus.x-tab-default{border-color:#f5f5f5;background-color:#f5f5f5}.x-tab-over.x-tab-default{border-color:#c9deed;background-color:#c9deed}.x-tab-focus.x-tab-over.x-tab-default{border-color:#c9deed;background-color:#c9deed}.x-tab.x-tab-active.x-tab-default{border-color:#3892d4;background-color:#3892d4}.x-tab.x-tab-active.x-tab-default .x-tab-inner-default{color:#fff}.x-tab.x-tab-active.x-tab-default .x-tab-icon-el{color:#fff}.x-ie8 .x-tab.x-tab-active.x-tab-default .x-tab-icon-el{color:#9cc9e9}.x-tab-focus.x-tab-active.x-tab-default{border-color:#3892d4;background-color:#3892d4}.x-tab.x-tab-disabled.x-tab-default{border-color:#f5f5f5;background-color:#f5f5f5;cursor:default}.x-tab.x-tab-disabled.x-tab-default .x-tab-inner-default{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3}.x-tab.x-tab-disabled.x-tab-default .x-tab-icon-el-default{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-tab.x-tab-disabled.x-tab-default .x-tab-icon-el{color:#000;opacity:0.3;filter:none}.x-ie8 .x-tab.x-tab-disabled.x-tab-default .x-tab-icon-el{color:#acacac}.x-nbr .x-tab-default{background-image:none}.x-tab-over .x-tab-default-top-tl,.x-tab-over .x-tab-default-top-bl,.x-tab-over .x-tab-default-top-tr,.x-tab-over .x-tab-default-top-br,.x-tab-over .x-tab-default-top-tc,.x-tab-over .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-over-corners.gif)}.x-tab-over .x-tab-default-top-ml,.x-tab-over .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-over-sides.gif)}.x-tab-over .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-over-fbg.gif)}.x-tab-focus .x-tab-default-top-tl,.x-tab-focus .x-tab-default-top-bl,.x-tab-focus .x-tab-default-top-tr,.x-tab-focus .x-tab-default-top-br,.x-tab-focus .x-tab-default-top-tc,.x-tab-focus .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-focus-corners.gif)}.x-tab-focus .x-tab-default-top-ml,.x-tab-focus .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-focus-sides.gif)}.x-tab-focus .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-default-top-tl,.x-tab-focus.x-tab-over .x-tab-default-top-bl,.x-tab-focus.x-tab-over .x-tab-default-top-tr,.x-tab-focus.x-tab-over .x-tab-default-top-br,.x-tab-focus.x-tab-over .x-tab-default-top-tc,.x-tab-focus.x-tab-over .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-default-top-ml,.x-tab-focus.x-tab-over .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-default-top-tl,.x-tab.x-tab-active .x-tab-default-top-bl,.x-tab.x-tab-active .x-tab-default-top-tr,.x-tab.x-tab-active .x-tab-default-top-br,.x-tab.x-tab-active .x-tab-default-top-tc,.x-tab.x-tab-active .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-active-corners.gif)}.x-tab.x-tab-active .x-tab-default-top-ml,.x-tab.x-tab-active .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-active-sides.gif)}.x-tab.x-tab-active .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-default-top-tl,.x-tab-focus.x-tab-active .x-tab-default-top-bl,.x-tab-focus.x-tab-active .x-tab-default-top-tr,.x-tab-focus.x-tab-active .x-tab-default-top-br,.x-tab-focus.x-tab-active .x-tab-default-top-tc,.x-tab-focus.x-tab-active .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-default-top-ml,.x-tab-focus.x-tab-active .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-default-top-tl,.x-tab.x-tab-disabled .x-tab-default-top-bl,.x-tab.x-tab-disabled .x-tab-default-top-tr,.x-tab.x-tab-disabled .x-tab-default-top-br,.x-tab.x-tab-disabled .x-tab-default-top-tc,.x-tab.x-tab-disabled .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-default-top-ml,.x-tab.x-tab-disabled .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-disabled-fbg.gif)}.x-tab-over .x-tab-default-right-tl,.x-tab-over .x-tab-default-right-bl,.x-tab-over .x-tab-default-right-tr,.x-tab-over .x-tab-default-right-br,.x-tab-over .x-tab-default-right-tc,.x-tab-over .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-over-corners.gif)}.x-tab-over .x-tab-default-right-ml,.x-tab-over .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-over-sides.gif)}.x-tab-over .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-over-fbg.gif)}.x-tab-focus .x-tab-default-right-tl,.x-tab-focus .x-tab-default-right-bl,.x-tab-focus .x-tab-default-right-tr,.x-tab-focus .x-tab-default-right-br,.x-tab-focus .x-tab-default-right-tc,.x-tab-focus .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-focus-corners.gif)}.x-tab-focus .x-tab-default-right-ml,.x-tab-focus .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-focus-sides.gif)}.x-tab-focus .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-default-right-tl,.x-tab-focus.x-tab-over .x-tab-default-right-bl,.x-tab-focus.x-tab-over .x-tab-default-right-tr,.x-tab-focus.x-tab-over .x-tab-default-right-br,.x-tab-focus.x-tab-over .x-tab-default-right-tc,.x-tab-focus.x-tab-over .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-default-right-ml,.x-tab-focus.x-tab-over .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-default-right-tl,.x-tab.x-tab-active .x-tab-default-right-bl,.x-tab.x-tab-active .x-tab-default-right-tr,.x-tab.x-tab-active .x-tab-default-right-br,.x-tab.x-tab-active .x-tab-default-right-tc,.x-tab.x-tab-active .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-active-corners.gif)}.x-tab.x-tab-active .x-tab-default-right-ml,.x-tab.x-tab-active .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-active-sides.gif)}.x-tab.x-tab-active .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-default-right-tl,.x-tab-focus.x-tab-active .x-tab-default-right-bl,.x-tab-focus.x-tab-active .x-tab-default-right-tr,.x-tab-focus.x-tab-active .x-tab-default-right-br,.x-tab-focus.x-tab-active .x-tab-default-right-tc,.x-tab-focus.x-tab-active .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-default-right-ml,.x-tab-focus.x-tab-active .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-default-right-tl,.x-tab.x-tab-disabled .x-tab-default-right-bl,.x-tab.x-tab-disabled .x-tab-default-right-tr,.x-tab.x-tab-disabled .x-tab-default-right-br,.x-tab.x-tab-disabled .x-tab-default-right-tc,.x-tab.x-tab-disabled .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-default-right-ml,.x-tab.x-tab-disabled .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-disabled-fbg.gif)}.x-tab-over .x-tab-default-bottom-tl,.x-tab-over .x-tab-default-bottom-bl,.x-tab-over .x-tab-default-bottom-tr,.x-tab-over .x-tab-default-bottom-br,.x-tab-over .x-tab-default-bottom-tc,.x-tab-over .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-over-corners.gif)}.x-tab-over .x-tab-default-bottom-ml,.x-tab-over .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-over-sides.gif)}.x-tab-over .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-over-fbg.gif)}.x-tab-focus .x-tab-default-bottom-tl,.x-tab-focus .x-tab-default-bottom-bl,.x-tab-focus .x-tab-default-bottom-tr,.x-tab-focus .x-tab-default-bottom-br,.x-tab-focus .x-tab-default-bottom-tc,.x-tab-focus .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-focus-corners.gif)}.x-tab-focus .x-tab-default-bottom-ml,.x-tab-focus .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-focus-sides.gif)}.x-tab-focus .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-default-bottom-tl,.x-tab-focus.x-tab-over .x-tab-default-bottom-bl,.x-tab-focus.x-tab-over .x-tab-default-bottom-tr,.x-tab-focus.x-tab-over .x-tab-default-bottom-br,.x-tab-focus.x-tab-over .x-tab-default-bottom-tc,.x-tab-focus.x-tab-over .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-default-bottom-ml,.x-tab-focus.x-tab-over .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-default-bottom-tl,.x-tab.x-tab-active .x-tab-default-bottom-bl,.x-tab.x-tab-active .x-tab-default-bottom-tr,.x-tab.x-tab-active .x-tab-default-bottom-br,.x-tab.x-tab-active .x-tab-default-bottom-tc,.x-tab.x-tab-active .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-active-corners.gif)}.x-tab.x-tab-active .x-tab-default-bottom-ml,.x-tab.x-tab-active .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-active-sides.gif)}.x-tab.x-tab-active .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-default-bottom-tl,.x-tab-focus.x-tab-active .x-tab-default-bottom-bl,.x-tab-focus.x-tab-active .x-tab-default-bottom-tr,.x-tab-focus.x-tab-active .x-tab-default-bottom-br,.x-tab-focus.x-tab-active .x-tab-default-bottom-tc,.x-tab-focus.x-tab-active .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-default-bottom-ml,.x-tab-focus.x-tab-active .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-default-bottom-tl,.x-tab.x-tab-disabled .x-tab-default-bottom-bl,.x-tab.x-tab-disabled .x-tab-default-bottom-tr,.x-tab.x-tab-disabled .x-tab-default-bottom-br,.x-tab.x-tab-disabled .x-tab-default-bottom-tc,.x-tab.x-tab-disabled .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-default-bottom-ml,.x-tab.x-tab-disabled .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-disabled-fbg.gif)}.x-tab-over .x-tab-default-left-tl,.x-tab-over .x-tab-default-left-bl,.x-tab-over .x-tab-default-left-tr,.x-tab-over .x-tab-default-left-br,.x-tab-over .x-tab-default-left-tc,.x-tab-over .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-over-corners.gif)}.x-tab-over .x-tab-default-left-ml,.x-tab-over .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-over-sides.gif)}.x-tab-over .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-over-fbg.gif)}.x-tab-focus .x-tab-default-left-tl,.x-tab-focus .x-tab-default-left-bl,.x-tab-focus .x-tab-default-left-tr,.x-tab-focus .x-tab-default-left-br,.x-tab-focus .x-tab-default-left-tc,.x-tab-focus .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-focus-corners.gif)}.x-tab-focus .x-tab-default-left-ml,.x-tab-focus .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-focus-sides.gif)}.x-tab-focus .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-default-left-tl,.x-tab-focus.x-tab-over .x-tab-default-left-bl,.x-tab-focus.x-tab-over .x-tab-default-left-tr,.x-tab-focus.x-tab-over .x-tab-default-left-br,.x-tab-focus.x-tab-over .x-tab-default-left-tc,.x-tab-focus.x-tab-over .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-default-left-ml,.x-tab-focus.x-tab-over .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-default-left-tl,.x-tab.x-tab-active .x-tab-default-left-bl,.x-tab.x-tab-active .x-tab-default-left-tr,.x-tab.x-tab-active .x-tab-default-left-br,.x-tab.x-tab-active .x-tab-default-left-tc,.x-tab.x-tab-active .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-active-corners.gif)}.x-tab.x-tab-active .x-tab-default-left-ml,.x-tab.x-tab-active .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-active-sides.gif)}.x-tab.x-tab-active .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-default-left-tl,.x-tab-focus.x-tab-active .x-tab-default-left-bl,.x-tab-focus.x-tab-active .x-tab-default-left-tr,.x-tab-focus.x-tab-active .x-tab-default-left-br,.x-tab-focus.x-tab-active .x-tab-default-left-tc,.x-tab-focus.x-tab-active .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-default-left-ml,.x-tab-focus.x-tab-active .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-default-left-tl,.x-tab.x-tab-disabled .x-tab-default-left-bl,.x-tab.x-tab-disabled .x-tab-default-left-tr,.x-tab.x-tab-disabled .x-tab-default-left-br,.x-tab.x-tab-disabled .x-tab-default-left-tc,.x-tab.x-tab-disabled .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-default-left-ml,.x-tab.x-tab-disabled .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-disabled-fbg.gif)}.x-tab-default-tl,.x-tab-default-bl,.x-tab-default-tr,.x-tab-default-br{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)}.x-tab-default .x-tab-close-btn{top:2px;right:2px;width:12px;height:12px;background:url(images/tab/tab-default-close.png) 0 0}.x-tab-default .x-tab-close-btn-over{background-position:-12px 0}.x-tab-default .x-tab-close-btn-pressed{background-position:-24px 0}.x-tab-default.x-tab-active .x-tab-close-btn{background-position:0 -12px}.x-tab-default.x-tab-active .x-tab-close-btn-over{background-position:-12px -12px}.x-tab-default.x-tab-active .x-tab-close-btn-pressed{background-position:-24px -12px}.x-tab-default.x-tab-disabled .x-tab-close-btn{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3;background-position:0 0}.x-tab-closable.x-tab-default .x-tab-button{padding-right:15px}.x-tab-bar-default{background-color:#f5f5f5}.x-tab-bar-default-top > .x-tab-bar-body-default{padding:6px}.x-tab-bar-default-bottom > .x-tab-bar-body-default{padding:6px 6px 6px 6px}.x-tab-bar-default-left > .x-tab-bar-body-default{padding:6px 6px 6px 6px}.x-tab-bar-default-right > .x-tab-bar-body-default{padding:6px 6px 6px 6px}.x-tab-bar-plain.x-tab-bar-default-horizontal{border-top-color:transparent;border-bottom-color:transparent;border-left-width:0;border-right-width:0}.x-tab-bar-plain.x-tab-bar-default-vertical{border-right-color:transparent;border-left-color:transparent;border-top-width:0;border-bottom-width:0}.x-tab-bar-horizontal > .x-tab-bar-body-default{min-height:36px}.x-ie8m .x-tab-bar-horizontal > .x-tab-bar-body-default{min-height:24px}.x-tab-bar-vertical > .x-tab-bar-body-default{min-width:36px}.x-ie8m .x-tab-bar-vertical > .x-tab-bar-body-default{min-width:24px}.x-tab-bar-default-scroller .x-box-scroller-body-horizontal{margin-left:18px}.x-tab-bar-default-vertical-scroller .x-box-scroller-body-vertical{margin-top:18px}.x-box-scroller-tab-bar-default{cursor:pointer;color:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-box-scroller-tab-bar-default.x-box-scroller-hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-box-scroller-tab-bar-default.x-box-scroller-pressed{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";opacity:0.7}.x-box-scroller-tab-bar-default.x-box-scroller-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";opacity:0.25;cursor:default}.x-box-scroller-tab-bar-default.x-box-scroller-left,.x-box-scroller-tab-bar-default.x-box-scroller-right{width:24px;height:24px;top:50%;margin-top:-12px}.x-box-scroller-tab-bar-default.x-box-scroller-left{margin-left:0;margin-right:0;margin-bottom:0;background-image:url(images/tab-bar/default-scroll-left.png)}.x-box-scroller-tab-bar-default.x-box-scroller-right{margin-left:0;margin-right:0;margin-bottom:0;background-image:url(images/tab-bar/default-scroll-right.png)}.x-box-scroller-tab-bar-default.x-box-scroller-top,.x-box-scroller-tab-bar-default.x-box-scroller-bottom{height:24px;width:24px;left:50%;margin-left:-12px}.x-box-scroller-tab-bar-default.x-box-scroller-top{margin-top:0;margin-right:0;margin-bottom:0;background-image:url(images/tab-bar/default-scroll-top.png)}.x-box-scroller-tab-bar-default.x-box-scroller-bottom{margin-top:0;margin-right:0;margin-bottom:0;background-image:url(images/tab-bar/default-scroll-bottom.png)}.x-tab-bar-plain.x-tab-bar-default-scroller .x-box-scroller-body-horizontal{margin-left:18px}.x-tab-bar-plain.x-tab-bar-default-vertical-scroller .x-box-scroller-body-vertical{margin-top:18px}.x-tab-bar-plain .x-box-scroller-tab-bar-default{color:#cfcfcf}.x-tab-bar-default-top .x-box-scroller-tab-bar-default{margin-top:-12px}.x-tab-bar-default-right .x-box-scroller-tab-bar-default{margin-left:-12px}.x-tab-bar-default-bottom .x-box-scroller-tab-bar-default{margin-top:-12px}.x-tab-bar-default-left .x-box-scroller-tab-bar-default{margin-left:-12px}.x-box-scroller-tab-bar-default{background-color:#f5f5f5}.x-box-scroller-tab-bar-default .x-ie8 .x-box-scroller-plain{background-color:#fff}.x-box-scroller-plain.x-box-scroller-tab-bar-default.x-box-scroller-left{background-image:url(images/tab-bar/default-plain-scroll-left.png)}.x-box-scroller-plain.x-box-scroller-tab-bar-default.x-box-scroller-right{background-image:url(images/tab-bar/default-plain-scroll-right.png)}.x-box-scroller-plain.x-box-scroller-tab-bar-default.x-box-scroller-top{background-image:url(images/tab-bar/default-plain-scroll-top.png)}.x-box-scroller-plain.x-box-scroller-tab-bar-default.x-box-scroller-bottom{background-image:url(images/tab-bar/default-plain-scroll-bottom.png)}.x-tree-expander{cursor:pointer}.x-tree-arrows .x-tree-expander{background-image:url(images/tree/arrows.png)}.x-tree-arrows .x-tree-expander-over .x-tree-expander{background-position:-36px center}.x-tree-arrows .x-grid-tree-node-expanded .x-tree-expander{background-position:-18px center}.x-tree-arrows .x-grid-tree-node-expanded .x-tree-expander-over .x-tree-expander{background-position:-54px center}.x-tree-lines .x-tree-elbow{background-image:url(images/tree/elbow.png)}.x-tree-lines .x-tree-elbow-end{background-image:url(images/tree/elbow-end.png)}.x-tree-lines .x-tree-elbow-plus{background-image:url(images/tree/elbow-plus.png)}.x-tree-lines .x-tree-elbow-end-plus{background-image:url(images/tree/elbow-end-plus.png)}.x-tree-lines .x-grid-tree-node-expanded .x-tree-elbow-plus{background-image:url(images/tree/elbow-minus.png)}.x-tree-lines .x-grid-tree-node-expanded .x-tree-elbow-end-plus{background-image:url(images/tree/elbow-end-minus.png)}.x-tree-lines .x-tree-elbow-line{background-image:url(images/tree/elbow-line.png)}.x-tree-no-lines .x-tree-expander{background-image:url(images/tree/elbow-plus-nl.png)}.x-tree-no-lines .x-grid-tree-node-expanded .x-tree-expander{background-image:url(images/tree/elbow-minus-nl.png)}.x-tree-icon{width:16px;height:24px;line-height:24px;color:#cfcfcf;font-size:16px}.x-tree-elbow-img{width:18px;height:24px;line-height:24px;margin-right:2px}.x-tree-icon,.x-tree-elbow-img,.x-tree-checkbox{margin-top:-5px;margin-bottom:-4px}.x-tree-icon-leaf{background-image:url(images/tree/leaf.png)}.x-tree-icon-parent{background-image:url(images/tree/folder.png)}.x-tree-icon-parent-expanded{background-image:url(images/tree/folder-open.png)}.x-tree-icon-custom{background-image:none}.x-tree-checkbox{margin-right:4px;top:5px;width:15px;height:15px;background-image:url(images/form/checkbox.png)}.x-tree-checkbox-checked{background-position:0 -15px}.x-grid-tree-loading .x-tree-icon{background-image:url(images/tree/loading.gif)}.x-tree-node-text{padding-left:4px}.x-grid-cell-inner-treecolumn{padding:5px 10px 4px 6px}.x-tree-drop-ok-append .x-dd-drop-icon{background-image:url(images/tree/drop-append.png)}.x-tree-drop-ok-above .x-dd-drop-icon{background-image:url(images/tree/drop-above.png)}.x-tree-drop-ok-below .x-dd-drop-icon{background-image:url(images/tree/drop-below.png)}.x-tree-drop-ok-between .x-dd-drop-icon{background-image:url(images/tree/drop-between.png)}.x-tree-ddindicator{height:1px;border-width:1px 0px 0px;border-style:dotted;border-color:green}.x-toast-icon-information{background-image:url(images/window/toast/icon16_info.png)}.x-toast-icon-error{background-image:url(images/window/toast/icon16_error.png)}.x-toast-window .x-window-body{padding:15px 5px 15px 5px}.x-toast-light .x-window-header{background-color:#fff}.x-toast-light .x-tool-img{background-color:#fff}.x-toast-light{background-image:url(images/window/toast/fader.png)}.x-toast-light .x-window-body{padding:15px 5px 20px 5px;background-color:transparent;border:0px solid white}.x-btn-plain-toolbar-small{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:transparent}.x-btn-plain-toolbar-small-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-small{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-plain-toolbar-small-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-plain-toolbar-small-tl{background-position:0 -6px}.x-btn-plain-toolbar-small-tr{background-position:right -9px}.x-btn-plain-toolbar-small-bl{background-position:0 -12px}.x-btn-plain-toolbar-small-br{background-position:right -15px}.x-btn-plain-toolbar-small-ml{background-position:0 top}.x-btn-plain-toolbar-small-mr{background-position:right top}.x-btn-plain-toolbar-small-tc{background-position:0 0}.x-btn-plain-toolbar-small-bc{background-position:0 -3px}.x-btn-plain-toolbar-small-tr,.x-btn-plain-toolbar-small-br,.x-btn-plain-toolbar-small-mr{padding-right:3px}.x-btn-plain-toolbar-small-tl,.x-btn-plain-toolbar-small-bl,.x-btn-plain-toolbar-small-ml{padding-left:3px}.x-btn-plain-toolbar-small-tc{height:3px}.x-btn-plain-toolbar-small-bc{height:3px}.x-btn-plain-toolbar-small-mc{padding:1px 1px 1px 1px}.x-btn-plain-toolbar-small{border-color:transparent}.x-btn-button-plain-toolbar-small{min-height:16px}.x-ie9m .x-btn-button-plain-toolbar-small{min-height:auto;height:16px}.x-btn-inner-plain-toolbar-small{font:300 12px/16px helvetica, arial, verdana, sans-serif;color:#666;padding:0 5px;max-width:100%}.x-btn-icon-right > .x-btn-inner-plain-toolbar-small,.x-btn-icon-left > .x-btn-inner-plain-toolbar-small{max-width:calc(100% - 16px)}.x-ie10p .x-btn-inner-plain-toolbar-small{max-width:none}.x-btn-icon-el-plain-toolbar-small{font-size:16px;height:16px;color:#666;line-height:16px}.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-small,.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small{width:16px}.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-small,.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-small{min-width:16px}.x-btn-icon-el-plain-toolbar-small.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-plain-toolbar-small.x-btn-glyph{color:#b3b3b3}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-small{margin-right:0px}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small{margin-left:0px}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-small{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-small{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-small{padding-right:5px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small{margin-right:5px}.x-btn-arrow-bottom > .x-btn-button-plain-toolbar-small,.x-btn-split-bottom > .x-btn-button-plain-toolbar-small{padding-bottom:3px}.x-btn-wrap-plain-toolbar-small.x-btn-arrow-right:after{width:16px;background-image:url(images/button/plain-toolbar-small-arrow.png);padding-right:16px}.x-btn-wrap-plain-toolbar-small.x-btn-arrow-bottom:after{height:13px;background-image:url(images/button/plain-toolbar-small-arrow.png)}.x-btn-wrap-plain-toolbar-small.x-btn-split-right:after{width:20px;background-image:url(images/button/plain-toolbar-small-s-arrow.png);padding-right:20px}.x-btn-wrap-plain-toolbar-small.x-btn-split-bottom:after{height:15px;background-image:url(images/button/plain-toolbar-small-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-small{padding-right:5px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small{margin-right:5px}.x-btn-focus.x-btn-plain-toolbar-small{background-image:none;background-color:transparent;-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn-plain-toolbar-small .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:23px;pointer-events:none}.x-btn-plain-toolbar-small.x-arrow-focus .x-btn-arrow-el{border:1px solid #4297d4}.x-btn-over.x-btn-plain-toolbar-small{border-color:#cfcfcf;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-plain-toolbar-small{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-plain-toolbar-small,.x-btn.x-btn-pressed.x-btn-plain-toolbar-small{border-color:#c7c7c7;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-plain-toolbar-small,.x-btn-focus.x-btn-pressed.x-btn-plain-toolbar-small{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-plain-toolbar-small{background-image:none;background-color:transparent}.x-btn-focus .x-btn-plain-toolbar-small-tl,.x-btn-focus .x-btn-plain-toolbar-small-bl,.x-btn-focus .x-btn-plain-toolbar-small-tr,.x-btn-focus .x-btn-plain-toolbar-small-br,.x-btn-focus .x-btn-plain-toolbar-small-tc,.x-btn-focus .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-focus-corners.gif)}.x-btn-focus .x-btn-plain-toolbar-small-ml,.x-btn-focus .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-focus-sides.gif)}.x-btn-focus .x-btn-plain-toolbar-small-mc{background-color:transparent}.x-btn-over .x-btn-plain-toolbar-small-tl,.x-btn-over .x-btn-plain-toolbar-small-bl,.x-btn-over .x-btn-plain-toolbar-small-tr,.x-btn-over .x-btn-plain-toolbar-small-br,.x-btn-over .x-btn-plain-toolbar-small-tc,.x-btn-over .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-over-corners.gif)}.x-btn-over .x-btn-plain-toolbar-small-ml,.x-btn-over .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-over-sides.gif)}.x-btn-over .x-btn-plain-toolbar-small-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-tl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-bl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-tr,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-br,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-tc,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-ml,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-tl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-bl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-tr,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-br,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-tc,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-bc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-tl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-bl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-tr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-br,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-tc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-ml,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-mr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-ml,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-mc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-tl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-bl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-tr,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-br,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-tc,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-bc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-tl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-bl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-tr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-br,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-tc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-ml,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-mr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-ml,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-mc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-tl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-bl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-tr,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-br,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-tc,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-ml,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-small{background-image:none}.x-btn-disabled.x-btn-plain-toolbar-small{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-plain-toolbar-medium{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:transparent}.x-btn-plain-toolbar-medium-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-medium{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-plain-toolbar-medium-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-plain-toolbar-medium-tl{background-position:0 -6px}.x-btn-plain-toolbar-medium-tr{background-position:right -9px}.x-btn-plain-toolbar-medium-bl{background-position:0 -12px}.x-btn-plain-toolbar-medium-br{background-position:right -15px}.x-btn-plain-toolbar-medium-ml{background-position:0 top}.x-btn-plain-toolbar-medium-mr{background-position:right top}.x-btn-plain-toolbar-medium-tc{background-position:0 0}.x-btn-plain-toolbar-medium-bc{background-position:0 -3px}.x-btn-plain-toolbar-medium-tr,.x-btn-plain-toolbar-medium-br,.x-btn-plain-toolbar-medium-mr{padding-right:3px}.x-btn-plain-toolbar-medium-tl,.x-btn-plain-toolbar-medium-bl,.x-btn-plain-toolbar-medium-ml{padding-left:3px}.x-btn-plain-toolbar-medium-tc{height:3px}.x-btn-plain-toolbar-medium-bc{height:3px}.x-btn-plain-toolbar-medium-mc{padding:1px 1px 1px 1px}.x-btn-plain-toolbar-medium{border-color:transparent}.x-btn-button-plain-toolbar-medium{min-height:24px}.x-ie9m .x-btn-button-plain-toolbar-medium{min-height:auto;height:24px}.x-btn-inner-plain-toolbar-medium{font:300 14px/18px helvetica, arial, verdana, sans-serif;color:#666;padding:0 8px;max-width:100%}.x-btn-icon-right > .x-btn-inner-plain-toolbar-medium,.x-btn-icon-left > .x-btn-inner-plain-toolbar-medium{max-width:calc(100% - 24px)}.x-ie10p .x-btn-inner-plain-toolbar-medium{max-width:none}.x-btn-icon-el-plain-toolbar-medium{font-size:24px;height:24px;color:#666;line-height:24px}.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-medium,.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium{width:24px}.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-medium,.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-medium{min-width:24px}.x-btn-icon-el-plain-toolbar-medium.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-plain-toolbar-medium.x-btn-glyph{color:#b3b3b3}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-medium{margin-right:0}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium{margin-left:0}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-medium{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-medium{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-medium{padding-right:8px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium{margin-right:8px}.x-btn-arrow-bottom > .x-btn-button-plain-toolbar-medium,.x-btn-split-bottom > .x-btn-button-plain-toolbar-medium{padding-bottom:3px}.x-btn-wrap-plain-toolbar-medium.x-btn-arrow-right:after{width:24px;background-image:url(images/button/plain-toolbar-medium-arrow.png);padding-right:24px}.x-btn-wrap-plain-toolbar-medium.x-btn-arrow-bottom:after{height:18px;background-image:url(images/button/plain-toolbar-medium-arrow.png)}.x-btn-wrap-plain-toolbar-medium.x-btn-split-right:after{width:28px;background-image:url(images/button/plain-toolbar-medium-s-arrow.png);padding-right:28px}.x-btn-wrap-plain-toolbar-medium.x-btn-split-bottom:after{height:24px;background-image:url(images/button/plain-toolbar-medium-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-medium{padding-right:8px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium{margin-right:8px}.x-btn-focus.x-btn-plain-toolbar-medium{background-image:none;background-color:transparent;-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn-plain-toolbar-medium .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:31px;pointer-events:none}.x-btn-plain-toolbar-medium.x-arrow-focus .x-btn-arrow-el{border:1px solid #4297d4}.x-btn-over.x-btn-plain-toolbar-medium{border-color:#cfcfcf;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-plain-toolbar-medium{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-plain-toolbar-medium,.x-btn.x-btn-pressed.x-btn-plain-toolbar-medium{border-color:#c7c7c7;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-plain-toolbar-medium,.x-btn-focus.x-btn-pressed.x-btn-plain-toolbar-medium{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-plain-toolbar-medium{background-image:none;background-color:transparent}.x-btn-focus .x-btn-plain-toolbar-medium-tl,.x-btn-focus .x-btn-plain-toolbar-medium-bl,.x-btn-focus .x-btn-plain-toolbar-medium-tr,.x-btn-focus .x-btn-plain-toolbar-medium-br,.x-btn-focus .x-btn-plain-toolbar-medium-tc,.x-btn-focus .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-focus-corners.gif)}.x-btn-focus .x-btn-plain-toolbar-medium-ml,.x-btn-focus .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-focus-sides.gif)}.x-btn-focus .x-btn-plain-toolbar-medium-mc{background-color:transparent}.x-btn-over .x-btn-plain-toolbar-medium-tl,.x-btn-over .x-btn-plain-toolbar-medium-bl,.x-btn-over .x-btn-plain-toolbar-medium-tr,.x-btn-over .x-btn-plain-toolbar-medium-br,.x-btn-over .x-btn-plain-toolbar-medium-tc,.x-btn-over .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-over-corners.gif)}.x-btn-over .x-btn-plain-toolbar-medium-ml,.x-btn-over .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-over-sides.gif)}.x-btn-over .x-btn-plain-toolbar-medium-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-tl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-bl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-tr,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-br,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-tc,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-ml,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-tl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-bl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-tr,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-br,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-tc,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-bc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-tl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-bl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-tr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-br,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-tc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-ml,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-mr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-ml,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-mc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-tl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-bl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-tr,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-br,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-tc,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-bc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-tl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-bl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-tr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-br,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-tc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-ml,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-mr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-ml,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-mc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-tl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-bl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-tr,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-br,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-tc,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-ml,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-medium{background-image:none}.x-btn-disabled.x-btn-plain-toolbar-medium{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-plain-toolbar-large{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:transparent}.x-btn-plain-toolbar-large-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-large{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-plain-toolbar-large-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-plain-toolbar-large-tl{background-position:0 -6px}.x-btn-plain-toolbar-large-tr{background-position:right -9px}.x-btn-plain-toolbar-large-bl{background-position:0 -12px}.x-btn-plain-toolbar-large-br{background-position:right -15px}.x-btn-plain-toolbar-large-ml{background-position:0 top}.x-btn-plain-toolbar-large-mr{background-position:right top}.x-btn-plain-toolbar-large-tc{background-position:0 0}.x-btn-plain-toolbar-large-bc{background-position:0 -3px}.x-btn-plain-toolbar-large-tr,.x-btn-plain-toolbar-large-br,.x-btn-plain-toolbar-large-mr{padding-right:3px}.x-btn-plain-toolbar-large-tl,.x-btn-plain-toolbar-large-bl,.x-btn-plain-toolbar-large-ml{padding-left:3px}.x-btn-plain-toolbar-large-tc{height:3px}.x-btn-plain-toolbar-large-bc{height:3px}.x-btn-plain-toolbar-large-mc{padding:1px 1px 1px 1px}.x-btn-plain-toolbar-large{border-color:transparent}.x-btn-button-plain-toolbar-large{min-height:32px}.x-ie9m .x-btn-button-plain-toolbar-large{min-height:auto;height:32px}.x-btn-inner-plain-toolbar-large{font:300 16px/20px helvetica, arial, verdana, sans-serif;color:#666;padding:0 10px;max-width:100%}.x-btn-icon-right > .x-btn-inner-plain-toolbar-large,.x-btn-icon-left > .x-btn-inner-plain-toolbar-large{max-width:calc(100% - 32px)}.x-ie10p .x-btn-inner-plain-toolbar-large{max-width:none}.x-btn-icon-el-plain-toolbar-large{font-size:32px;height:32px;color:#666;line-height:32px}.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-large,.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large{width:32px}.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-large,.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-large{min-width:32px}.x-btn-icon-el-plain-toolbar-large.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-plain-toolbar-large.x-btn-glyph{color:#b3b3b3}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-large{margin-right:0}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large{margin-left:0}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-large{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-large{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-large{padding-right:10px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large{margin-right:10px}.x-btn-arrow-bottom > .x-btn-button-plain-toolbar-large,.x-btn-split-bottom > .x-btn-button-plain-toolbar-large{padding-bottom:3px}.x-btn-wrap-plain-toolbar-large.x-btn-arrow-right:after{width:28px;background-image:url(images/button/plain-toolbar-large-arrow.png);padding-right:28px}.x-btn-wrap-plain-toolbar-large.x-btn-arrow-bottom:after{height:20px;background-image:url(images/button/plain-toolbar-large-arrow.png)}.x-btn-wrap-plain-toolbar-large.x-btn-split-right:after{width:35px;background-image:url(images/button/plain-toolbar-large-s-arrow.png);padding-right:35px}.x-btn-wrap-plain-toolbar-large.x-btn-split-bottom:after{height:29px;background-image:url(images/button/plain-toolbar-large-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-large{padding-right:10px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large{margin-right:10px}.x-btn-focus.x-btn-plain-toolbar-large{background-image:none;background-color:transparent;-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn-plain-toolbar-large .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:38px;pointer-events:none}.x-btn-plain-toolbar-large.x-arrow-focus .x-btn-arrow-el{border:1px solid #4297d4}.x-btn-over.x-btn-plain-toolbar-large{border-color:#cfcfcf;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-plain-toolbar-large{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-plain-toolbar-large,.x-btn.x-btn-pressed.x-btn-plain-toolbar-large{border-color:#c7c7c7;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-plain-toolbar-large,.x-btn-focus.x-btn-pressed.x-btn-plain-toolbar-large{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-plain-toolbar-large{background-image:none;background-color:transparent}.x-btn-focus .x-btn-plain-toolbar-large-tl,.x-btn-focus .x-btn-plain-toolbar-large-bl,.x-btn-focus .x-btn-plain-toolbar-large-tr,.x-btn-focus .x-btn-plain-toolbar-large-br,.x-btn-focus .x-btn-plain-toolbar-large-tc,.x-btn-focus .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-focus-corners.gif)}.x-btn-focus .x-btn-plain-toolbar-large-ml,.x-btn-focus .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-focus-sides.gif)}.x-btn-focus .x-btn-plain-toolbar-large-mc{background-color:transparent}.x-btn-over .x-btn-plain-toolbar-large-tl,.x-btn-over .x-btn-plain-toolbar-large-bl,.x-btn-over .x-btn-plain-toolbar-large-tr,.x-btn-over .x-btn-plain-toolbar-large-br,.x-btn-over .x-btn-plain-toolbar-large-tc,.x-btn-over .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-over-corners.gif)}.x-btn-over .x-btn-plain-toolbar-large-ml,.x-btn-over .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-over-sides.gif)}.x-btn-over .x-btn-plain-toolbar-large-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-tl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-bl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-tr,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-br,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-tc,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-ml,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-tl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-bl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-tr,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-br,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-tc,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-bc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-tl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-bl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-tr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-br,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-tc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-ml,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-mr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-ml,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-mc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-tl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-bl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-tr,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-br,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-tc,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-bc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-tl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-bl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-tr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-br,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-tc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-ml,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-mr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-ml,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-mc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-bl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tr,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-br,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tc,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-ml,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-large{background-image:none}.x-btn-disabled.x-btn-plain-toolbar-large{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-plain-toolbar-small-disabled .x-btn-icon-el,.x-btn-plain-toolbar-medium-disabled .x-btn-icon-el,.x-btn-plain-toolbar-large-disabled .x-btn-icon-el{background-color:#fff}.x-ie8 .x-btn-plain-toolbar-small-disabled .x-btn-icon-el,.x-ie8 .x-btn-plain-toolbar-medium-disabled .x-btn-icon-el,.x-ie8 .x-btn-plain-toolbar-large-disabled .x-btn-icon-el{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-panel-light{border-color:#fff;padding:0}.x-panel-header-light{font-size:13px;border:1px solid #fff}.x-panel-header-light .x-tool-img{background-image:url(images/tools/tool-sprites-dark.png);background-color:#fff}.x-panel-header-light-horizontal{padding:9px 9px 10px}.x-panel-header-light-horizontal .x-panel-header-light-tab-bar{margin-top:-9px;margin-bottom:-10px}.x-panel-header-light-horizontal.x-header-noborder{padding:10px 10px 10px 10px}.x-panel-header-light-horizontal.x-header-noborder .x-panel-header-light-tab-bar{margin-top:-10px;margin-bottom:-10px}.x-panel-header-light-vertical{padding:9px 9px 9px 10px}.x-panel-header-light-vertical .x-panel-header-light-tab-bar{margin-right:-9px;margin-left:-10px}.x-panel-header-light-vertical.x-header-noborder{padding:10px 10px 10px 10px}.x-panel-header-light-vertical.x-header-noborder .x-panel-header-light-tab-bar{margin-right:-10px;margin-left:-10px}.x-panel-header-title-light{color:#000;font-size:13px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;line-height:16px}.x-panel-header-title-light > .x-title-text-light{text-transform:none;padding:0}.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-top{height:22px;padding-bottom:6px}.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-right{width:22px;padding-left:6px}.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-bottom{height:22px;padding-top:6px}.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-left{width:22px;padding-right:6px}.x-panel-header-title-light > .x-title-icon-wrap-light > .x-title-icon-light{width:16px;height:16px;font-size:16px;color:#000;background-position:center center;opacity:0.5}.x-ie8 .x-panel-header-title-light > .x-title-icon-wrap-light > .x-title-icon-light{color:grey}.x-panel-body-light{background:#fff;border-color:#cfcfcf;color:#000;font-size:13px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;border-width:1px;border-style:solid}.x-panel-header-light{background-image:none;background-color:#fff}.x-panel-header-light-vertical{background-image:none;background-color:#fff}.x-panel .x-panel-header-light-collapsed-border-top{border-bottom-width:1px !important}.x-panel .x-panel-header-light-collapsed-border-right{border-left-width:1px !important}.x-panel .x-panel-header-light-collapsed-border-bottom{border-top-width:1px !important}.x-panel .x-panel-header-light-collapsed-border-left{border-right-width:1px !important}.x-panel-header-light-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-panel-header-light-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-panel-header-light-vertical .x-tool-after-title{margin:6px 0 0 0}.x-panel-header-light-vertical .x-tool-before-title{margin:0 0 6px 0}.x-panel-header-light .x-tool-focus{outline:1px solid #157fcc;outline-offset:1px}.x-ie8 .x-panel-header-light .x-tool-focus{outline:none}.x-ie8 .x-panel-header-light .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #157fcc;pointer-events:none}.x-panel-light-resizable .x-panel-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-panel-light-outer-border-l{border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-outer-border-b{border-bottom-color:#fff !important;border-bottom-width:1px !important}.x-panel-light-outer-border-bl{border-bottom-color:#fff !important;border-bottom-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-outer-border-r{border-right-color:#fff !important;border-right-width:1px !important}.x-panel-light-outer-border-rl{border-right-color:#fff !important;border-right-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-outer-border-rb{border-right-color:#fff !important;border-right-width:1px !important;border-bottom-color:#fff !important;border-bottom-width:1px !important}.x-panel-light-outer-border-rbl{border-right-color:#fff !important;border-right-width:1px !important;border-bottom-color:#fff !important;border-bottom-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-outer-border-t{border-top-color:#fff !important;border-top-width:1px !important}.x-panel-light-outer-border-tl{border-top-color:#fff !important;border-top-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-outer-border-tb{border-top-color:#fff !important;border-top-width:1px !important;border-bottom-color:#fff !important;border-bottom-width:1px !important}.x-panel-light-outer-border-tbl{border-top-color:#fff !important;border-top-width:1px !important;border-bottom-color:#fff !important;border-bottom-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-outer-border-tr{border-top-color:#fff !important;border-top-width:1px !important;border-right-color:#fff !important;border-right-width:1px !important}.x-panel-light-outer-border-trl{border-top-color:#fff !important;border-top-width:1px !important;border-right-color:#fff !important;border-right-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-outer-border-trb{border-top-color:#fff !important;border-top-width:1px !important;border-right-color:#fff !important;border-right-width:1px !important;border-bottom-color:#fff !important;border-bottom-width:1px !important}.x-panel-light-outer-border-trbl{border-color:#fff !important;border-width:1px !important}.x-panel-light-framed{border-color:#fff;padding:0}.x-panel-header-light-framed{font-size:13px;border:1px solid #fff}.x-panel-header-light-framed .x-tool-img{background-image:url(images/tools/tool-sprites-dark.png);background-color:#fff}.x-panel-header-light-framed-horizontal{padding:9px 9px 9px 9px}.x-panel-header-light-framed-horizontal .x-panel-header-light-framed-tab-bar{margin-top:-9px;margin-bottom:-9px}.x-panel-header-light-framed-horizontal.x-header-noborder{padding:10px 10px 9px 10px}.x-panel-header-light-framed-horizontal.x-header-noborder .x-panel-header-light-framed-tab-bar{margin-top:-10px;margin-bottom:-9px}.x-panel-header-light-framed-vertical{padding:9px 9px 9px 9px}.x-panel-header-light-framed-vertical .x-panel-header-light-framed-tab-bar{margin-right:-9px;margin-left:-9px}.x-panel-header-light-framed-vertical.x-header-noborder{padding:10px 10px 10px 9px}.x-panel-header-light-framed-vertical.x-header-noborder .x-panel-header-light-framed-tab-bar{margin-right:-10px;margin-left:-9px}.x-panel-header-title-light-framed{color:#000;font-size:13px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;line-height:16px}.x-panel-header-title-light-framed > .x-title-text-light-framed{text-transform:none;padding:0}.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-top{height:22px;padding-bottom:6px}.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-right{width:22px;padding-left:6px}.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-bottom{height:22px;padding-top:6px}.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-left{width:22px;padding-right:6px}.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed > .x-title-icon-light-framed{width:16px;height:16px;font-size:16px;color:#000;background-position:center center;opacity:0.5}.x-ie8 .x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed > .x-title-icon-light-framed{color:grey}.x-panel-body-light-framed{background:#fff;border-color:#cfcfcf;color:#000;font-size:13px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;border-width:1px;border-style:solid}.x-panel-light-framed{-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px;padding:0 0 0 0;border-width:1px;border-style:solid;background-color:#fff}.x-panel-light-framed-mc{background-color:#fff}.x-nbr .x-panel-light-framed{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-light-framed-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-3px-3px-3px-3px}.x-panel-light-framed-tl{background-position:0 -8px}.x-panel-light-framed-tr{background-position:right -12px}.x-panel-light-framed-bl{background-position:0 -16px}.x-panel-light-framed-br{background-position:right -20px}.x-panel-light-framed-ml{background-position:0 top}.x-panel-light-framed-mr{background-position:right top}.x-panel-light-framed-tc{background-position:0 0}.x-panel-light-framed-bc{background-position:0 -4px}.x-panel-light-framed-tr,.x-panel-light-framed-br,.x-panel-light-framed-mr{padding-right:4px}.x-panel-light-framed-tl,.x-panel-light-framed-bl,.x-panel-light-framed-ml{padding-left:4px}.x-panel-light-framed-tc{height:4px}.x-panel-light-framed-bc{height:4px}.x-panel-light-framed-tl,.x-panel-light-framed-bl,.x-panel-light-framed-tr,.x-panel-light-framed-br,.x-panel-light-framed-tc,.x-panel-light-framed-bc,.x-panel-light-framed-ml,.x-panel-light-framed-mr{background-image:url(images/panel/panel-light-framed-corners.gif)}.x-panel-light-framed-ml,.x-panel-light-framed-mr{background-image:url(images/panel/panel-light-framed-sides.gif);background-repeat:repeat-y}.x-panel-light-framed-mc{padding:0 0 0 0}.x-panel-header-light-framed-top{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:9px 9px 9px 9px;border-width:1px 1px 0 1px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-top-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-top-frameInfo{font-family:dh-4-4-0-4-1-1-0-1-9-9-9-9}.x-panel-header-light-framed-top-tl{background-position:0 -8px}.x-panel-header-light-framed-top-tr{background-position:right -12px}.x-panel-header-light-framed-top-bl{background-position:0 -16px}.x-panel-header-light-framed-top-br{background-position:right -20px}.x-panel-header-light-framed-top-ml{background-position:0 top}.x-panel-header-light-framed-top-mr{background-position:right top}.x-panel-header-light-framed-top-tc{background-position:0 0}.x-panel-header-light-framed-top-bc{background-position:0 -4px}.x-panel-header-light-framed-top-tr,.x-panel-header-light-framed-top-br,.x-panel-header-light-framed-top-mr{padding-right:4px}.x-panel-header-light-framed-top-tl,.x-panel-header-light-framed-top-bl,.x-panel-header-light-framed-top-ml{padding-left:4px}.x-panel-header-light-framed-top-tc{height:4px}.x-panel-header-light-framed-top-bc{height:0}.x-panel-header-light-framed-top-tl,.x-panel-header-light-framed-top-bl,.x-panel-header-light-framed-top-tr,.x-panel-header-light-framed-top-br,.x-panel-header-light-framed-top-tc,.x-panel-header-light-framed-top-bc,.x-panel-header-light-framed-top-ml,.x-panel-header-light-framed-top-mr{background-image:url(images/panel-header/panel-header-light-framed-top-corners.gif)}.x-panel-header-light-framed-top-ml,.x-panel-header-light-framed-top-mr{background-image:url(images/panel-header/panel-header-light-framed-top-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-top-mc{padding:6px 6px 9px 6px}.x-panel-header-light-framed-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:9px 9px 9px 9px;border-width:1px 1px 1px 0;border-style:solid;background-color:#fff}.x-panel-header-light-framed-right-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-right-frameInfo{font-family:dh-4-4-4-0-1-1-1-0-9-9-9-9}.x-panel-header-light-framed-right-tl{background-position:0 -8px}.x-panel-header-light-framed-right-tr{background-position:right -12px}.x-panel-header-light-framed-right-bl{background-position:0 -16px}.x-panel-header-light-framed-right-br{background-position:right -20px}.x-panel-header-light-framed-right-ml{background-position:right 0}.x-panel-header-light-framed-right-mr{background-position:right 0}.x-panel-header-light-framed-right-tc{background-position:0 0}.x-panel-header-light-framed-right-bc{background-position:0 -4px}.x-panel-header-light-framed-right-tr,.x-panel-header-light-framed-right-br,.x-panel-header-light-framed-right-mr{padding-right:4px}.x-panel-header-light-framed-right-tl,.x-panel-header-light-framed-right-bl,.x-panel-header-light-framed-right-ml{padding-left:0}.x-panel-header-light-framed-right-tc{height:4px}.x-panel-header-light-framed-right-bc{height:4px}.x-panel-header-light-framed-right-tl,.x-panel-header-light-framed-right-bl,.x-panel-header-light-framed-right-tr,.x-panel-header-light-framed-right-br,.x-panel-header-light-framed-right-tc,.x-panel-header-light-framed-right-bc,.x-panel-header-light-framed-right-ml,.x-panel-header-light-framed-right-mr{background-image:url(images/panel-header/panel-header-light-framed-right-corners.gif)}.x-panel-header-light-framed-right-ml,.x-panel-header-light-framed-right-mr{background-image:url(images/panel-header/panel-header-light-framed-right-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-right-mc{padding:6px 6px 6px 9px}.x-panel-header-light-framed-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:0 1px 1px 1px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-bottom-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-bottom-frameInfo{font-family:dh-0-4-4-4-0-1-1-1-9-9-9-9}.x-panel-header-light-framed-bottom-tl{background-position:0 -8px}.x-panel-header-light-framed-bottom-tr{background-position:right -12px}.x-panel-header-light-framed-bottom-bl{background-position:0 -16px}.x-panel-header-light-framed-bottom-br{background-position:right -20px}.x-panel-header-light-framed-bottom-ml{background-position:0 bottom}.x-panel-header-light-framed-bottom-mr{background-position:right bottom}.x-panel-header-light-framed-bottom-tc{background-position:0 0}.x-panel-header-light-framed-bottom-bc{background-position:0 -4px}.x-panel-header-light-framed-bottom-tr,.x-panel-header-light-framed-bottom-br,.x-panel-header-light-framed-bottom-mr{padding-right:4px}.x-panel-header-light-framed-bottom-tl,.x-panel-header-light-framed-bottom-bl,.x-panel-header-light-framed-bottom-ml{padding-left:4px}.x-panel-header-light-framed-bottom-tc{height:0}.x-panel-header-light-framed-bottom-bc{height:4px}.x-panel-header-light-framed-bottom-tl,.x-panel-header-light-framed-bottom-bl,.x-panel-header-light-framed-bottom-tr,.x-panel-header-light-framed-bottom-br,.x-panel-header-light-framed-bottom-tc,.x-panel-header-light-framed-bottom-bc,.x-panel-header-light-framed-bottom-ml,.x-panel-header-light-framed-bottom-mr{background-image:url(images/panel-header/panel-header-light-framed-bottom-corners.gif)}.x-panel-header-light-framed-bottom-ml,.x-panel-header-light-framed-bottom-mr{background-image:url(images/panel-header/panel-header-light-framed-bottom-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-bottom-mc{padding:9px 6px 6px 6px}.x-panel-header-light-framed-left{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px 0 1px 1px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-left-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-left-frameInfo{font-family:dh-4-0-4-4-1-0-1-1-9-9-9-9}.x-panel-header-light-framed-left-tl{background-position:0 -8px}.x-panel-header-light-framed-left-tr{background-position:right -12px}.x-panel-header-light-framed-left-bl{background-position:0 -16px}.x-panel-header-light-framed-left-br{background-position:right -20px}.x-panel-header-light-framed-left-ml{background-position:left 0}.x-panel-header-light-framed-left-mr{background-position:left 0}.x-panel-header-light-framed-left-tc{background-position:0 0}.x-panel-header-light-framed-left-bc{background-position:0 -4px}.x-panel-header-light-framed-left-tr,.x-panel-header-light-framed-left-br,.x-panel-header-light-framed-left-mr{padding-right:0}.x-panel-header-light-framed-left-tl,.x-panel-header-light-framed-left-bl,.x-panel-header-light-framed-left-ml{padding-left:4px}.x-panel-header-light-framed-left-tc{height:4px}.x-panel-header-light-framed-left-bc{height:4px}.x-panel-header-light-framed-left-tl,.x-panel-header-light-framed-left-bl,.x-panel-header-light-framed-left-tr,.x-panel-header-light-framed-left-br,.x-panel-header-light-framed-left-tc,.x-panel-header-light-framed-left-bc,.x-panel-header-light-framed-left-ml,.x-panel-header-light-framed-left-mr{background-image:url(images/panel-header/panel-header-light-framed-left-corners.gif)}.x-panel-header-light-framed-left-ml,.x-panel-header-light-framed-left-mr{background-image:url(images/panel-header/panel-header-light-framed-left-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-left-mc{padding:6px 9px 6px 6px}.x-panel-header-light-framed-collapsed-top{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-collapsed-top-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-collapsed-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-collapsed-top-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-panel-header-light-framed-collapsed-top-tl{background-position:0 -8px}.x-panel-header-light-framed-collapsed-top-tr{background-position:right -12px}.x-panel-header-light-framed-collapsed-top-bl{background-position:0 -16px}.x-panel-header-light-framed-collapsed-top-br{background-position:right -20px}.x-panel-header-light-framed-collapsed-top-ml{background-position:0 top}.x-panel-header-light-framed-collapsed-top-mr{background-position:right top}.x-panel-header-light-framed-collapsed-top-tc{background-position:0 0}.x-panel-header-light-framed-collapsed-top-bc{background-position:0 -4px}.x-panel-header-light-framed-collapsed-top-tr,.x-panel-header-light-framed-collapsed-top-br,.x-panel-header-light-framed-collapsed-top-mr{padding-right:4px}.x-panel-header-light-framed-collapsed-top-tl,.x-panel-header-light-framed-collapsed-top-bl,.x-panel-header-light-framed-collapsed-top-ml{padding-left:4px}.x-panel-header-light-framed-collapsed-top-tc{height:4px}.x-panel-header-light-framed-collapsed-top-bc{height:4px}.x-panel-header-light-framed-collapsed-top-tl,.x-panel-header-light-framed-collapsed-top-bl,.x-panel-header-light-framed-collapsed-top-tr,.x-panel-header-light-framed-collapsed-top-br,.x-panel-header-light-framed-collapsed-top-tc,.x-panel-header-light-framed-collapsed-top-bc,.x-panel-header-light-framed-collapsed-top-ml,.x-panel-header-light-framed-collapsed-top-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-top-corners.gif)}.x-panel-header-light-framed-collapsed-top-ml,.x-panel-header-light-framed-collapsed-top-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-top-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-collapsed-top-mc{padding:6px 6px 6px 6px}.x-panel-header-light-framed-collapsed-right{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-collapsed-right-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-collapsed-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-collapsed-right-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-panel-header-light-framed-collapsed-right-tl{background-position:0 -8px}.x-panel-header-light-framed-collapsed-right-tr{background-position:right -12px}.x-panel-header-light-framed-collapsed-right-bl{background-position:0 -16px}.x-panel-header-light-framed-collapsed-right-br{background-position:right -20px}.x-panel-header-light-framed-collapsed-right-ml{background-position:right 0}.x-panel-header-light-framed-collapsed-right-mr{background-position:right 0}.x-panel-header-light-framed-collapsed-right-tc{background-position:0 0}.x-panel-header-light-framed-collapsed-right-bc{background-position:0 -4px}.x-panel-header-light-framed-collapsed-right-tr,.x-panel-header-light-framed-collapsed-right-br,.x-panel-header-light-framed-collapsed-right-mr{padding-right:4px}.x-panel-header-light-framed-collapsed-right-tl,.x-panel-header-light-framed-collapsed-right-bl,.x-panel-header-light-framed-collapsed-right-ml{padding-left:4px}.x-panel-header-light-framed-collapsed-right-tc{height:4px}.x-panel-header-light-framed-collapsed-right-bc{height:4px}.x-panel-header-light-framed-collapsed-right-tl,.x-panel-header-light-framed-collapsed-right-bl,.x-panel-header-light-framed-collapsed-right-tr,.x-panel-header-light-framed-collapsed-right-br,.x-panel-header-light-framed-collapsed-right-tc,.x-panel-header-light-framed-collapsed-right-bc,.x-panel-header-light-framed-collapsed-right-ml,.x-panel-header-light-framed-collapsed-right-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-right-corners.gif)}.x-panel-header-light-framed-collapsed-right-ml,.x-panel-header-light-framed-collapsed-right-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-right-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-collapsed-right-mc{padding:6px 6px 6px 6px}.x-panel-header-light-framed-collapsed-bottom{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-collapsed-bottom-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-collapsed-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-collapsed-bottom-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-panel-header-light-framed-collapsed-bottom-tl{background-position:0 -8px}.x-panel-header-light-framed-collapsed-bottom-tr{background-position:right -12px}.x-panel-header-light-framed-collapsed-bottom-bl{background-position:0 -16px}.x-panel-header-light-framed-collapsed-bottom-br{background-position:right -20px}.x-panel-header-light-framed-collapsed-bottom-ml{background-position:0 bottom}.x-panel-header-light-framed-collapsed-bottom-mr{background-position:right bottom}.x-panel-header-light-framed-collapsed-bottom-tc{background-position:0 0}.x-panel-header-light-framed-collapsed-bottom-bc{background-position:0 -4px}.x-panel-header-light-framed-collapsed-bottom-tr,.x-panel-header-light-framed-collapsed-bottom-br,.x-panel-header-light-framed-collapsed-bottom-mr{padding-right:4px}.x-panel-header-light-framed-collapsed-bottom-tl,.x-panel-header-light-framed-collapsed-bottom-bl,.x-panel-header-light-framed-collapsed-bottom-ml{padding-left:4px}.x-panel-header-light-framed-collapsed-bottom-tc{height:4px}.x-panel-header-light-framed-collapsed-bottom-bc{height:4px}.x-panel-header-light-framed-collapsed-bottom-tl,.x-panel-header-light-framed-collapsed-bottom-bl,.x-panel-header-light-framed-collapsed-bottom-tr,.x-panel-header-light-framed-collapsed-bottom-br,.x-panel-header-light-framed-collapsed-bottom-tc,.x-panel-header-light-framed-collapsed-bottom-bc,.x-panel-header-light-framed-collapsed-bottom-ml,.x-panel-header-light-framed-collapsed-bottom-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif)}.x-panel-header-light-framed-collapsed-bottom-ml,.x-panel-header-light-framed-collapsed-bottom-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-collapsed-bottom-mc{padding:6px 6px 6px 6px}.x-panel-header-light-framed-collapsed-left{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;border-bottom-right-radius:4px;-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;border-bottom-left-radius:4px;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-collapsed-left-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-collapsed-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-collapsed-left-frameInfo{font-family:dh-4-4-4-4-1-1-1-1-9-9-9-9}.x-panel-header-light-framed-collapsed-left-tl{background-position:0 -8px}.x-panel-header-light-framed-collapsed-left-tr{background-position:right -12px}.x-panel-header-light-framed-collapsed-left-bl{background-position:0 -16px}.x-panel-header-light-framed-collapsed-left-br{background-position:right -20px}.x-panel-header-light-framed-collapsed-left-ml{background-position:left 0}.x-panel-header-light-framed-collapsed-left-mr{background-position:left 0}.x-panel-header-light-framed-collapsed-left-tc{background-position:0 0}.x-panel-header-light-framed-collapsed-left-bc{background-position:0 -4px}.x-panel-header-light-framed-collapsed-left-tr,.x-panel-header-light-framed-collapsed-left-br,.x-panel-header-light-framed-collapsed-left-mr{padding-right:4px}.x-panel-header-light-framed-collapsed-left-tl,.x-panel-header-light-framed-collapsed-left-bl,.x-panel-header-light-framed-collapsed-left-ml{padding-left:4px}.x-panel-header-light-framed-collapsed-left-tc{height:4px}.x-panel-header-light-framed-collapsed-left-bc{height:4px}.x-panel-header-light-framed-collapsed-left-tl,.x-panel-header-light-framed-collapsed-left-bl,.x-panel-header-light-framed-collapsed-left-tr,.x-panel-header-light-framed-collapsed-left-br,.x-panel-header-light-framed-collapsed-left-tc,.x-panel-header-light-framed-collapsed-left-bc,.x-panel-header-light-framed-collapsed-left-ml,.x-panel-header-light-framed-collapsed-left-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-left-corners.gif)}.x-panel-header-light-framed-collapsed-left-ml,.x-panel-header-light-framed-collapsed-left-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-left-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-collapsed-left-mc{padding:6px 6px 6px 6px}.x-panel .x-panel-header-light-framed-top{border-bottom-width:1px !important}.x-panel .x-panel-header-light-framed-right{border-left-width:1px !important}.x-panel .x-panel-header-light-framed-bottom{border-top-width:1px !important}.x-panel .x-panel-header-light-framed-left{border-right-width:1px !important}.x-nbr .x-panel-header-light-framed-collapsed-top{border-bottom-width:0 !important}.x-nbr .x-panel-header-light-framed-collapsed-right{border-left-width:0 !important}.x-nbr .x-panel-header-light-framed-collapsed-bottom{border-top-width:0 !important}.x-nbr .x-panel-header-light-framed-collapsed-left{border-right-width:0 !important}.x-panel-header-light-framed-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-panel-header-light-framed-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-panel-header-light-framed-vertical .x-tool-after-title{margin:6px 0 0 0}.x-panel-header-light-framed-vertical .x-tool-before-title{margin:0 0 6px 0}.x-panel-header-light-framed .x-tool-focus{outline:1px solid #157fcc;outline-offset:1px}.x-ie8 .x-panel-header-light-framed .x-tool-focus{outline:none}.x-ie8 .x-panel-header-light-framed .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #157fcc;pointer-events:none}.x-panel-light-framed-resizable .x-panel-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-panel-light-framed-outer-border-l{border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-framed-outer-border-b{border-bottom-color:#fff !important;border-bottom-width:1px !important}.x-panel-light-framed-outer-border-bl{border-bottom-color:#fff !important;border-bottom-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-framed-outer-border-r{border-right-color:#fff !important;border-right-width:1px !important}.x-panel-light-framed-outer-border-rl{border-right-color:#fff !important;border-right-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-framed-outer-border-rb{border-right-color:#fff !important;border-right-width:1px !important;border-bottom-color:#fff !important;border-bottom-width:1px !important}.x-panel-light-framed-outer-border-rbl{border-right-color:#fff !important;border-right-width:1px !important;border-bottom-color:#fff !important;border-bottom-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-framed-outer-border-t{border-top-color:#fff !important;border-top-width:1px !important}.x-panel-light-framed-outer-border-tl{border-top-color:#fff !important;border-top-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-framed-outer-border-tb{border-top-color:#fff !important;border-top-width:1px !important;border-bottom-color:#fff !important;border-bottom-width:1px !important}.x-panel-light-framed-outer-border-tbl{border-top-color:#fff !important;border-top-width:1px !important;border-bottom-color:#fff !important;border-bottom-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-framed-outer-border-tr{border-top-color:#fff !important;border-top-width:1px !important;border-right-color:#fff !important;border-right-width:1px !important}.x-panel-light-framed-outer-border-trl{border-top-color:#fff !important;border-top-width:1px !important;border-right-color:#fff !important;border-right-width:1px !important;border-left-color:#fff !important;border-left-width:1px !important}.x-panel-light-framed-outer-border-trb{border-top-color:#fff !important;border-top-width:1px !important;border-right-color:#fff !important;border-right-width:1px !important;border-bottom-color:#fff !important;border-bottom-width:1px !important}.x-panel-light-framed-outer-border-trbl{border-color:#fff !important;border-width:1px !important}.x-grid-header-ct{border:1px solid #cfcfcf}.x-column-header-trigger{background-color:#eff6fb;border-left:1px solid #cfcfcf}.x-column-header-last{border-right-width:0}.x-column-header-last .x-column-header-over .x-column-header-trigger{border-right:1px solid #cfcfcf}.x-resizable-handle{background-repeat:no-repeat}.x-resizable-handle-east-over,.x-resizable-handle-west-over{background-position:center}.x-resizable-handle-south-over,.x-resizable-handle-north-over{background-position:center}.x-resizable-handle-southeast-over{background-position:-2px -2px}.x-resizable-handle-northwest-over{background-position:2px 2px}.x-resizable-handle-northeast-over{background-position:-2px 2px}.x-resizable-handle-southwest-over{background-position:2px -2px}.x-resizable-pinned .x-resizable-handle-east,.x-resizable-pinned .x-resizable-handle-west{background-position:center}.x-resizable-pinned .x-resizable-handle-south,.x-resizable-pinned .x-resizable-handle-north{background-position:center}.x-resizable-pinned .x-resizable-handle-southeast{background-position:-2px -2px}.x-resizable-pinned .x-resizable-handle-northwest{background-position:2px 2px}.x-resizable-pinned .x-resizable-handle-northeast{background-position:-2px 2px}.x-resizable-pinned .x-resizable-handle-southwest{background-position:2px -2px}@font-face{font-family:'FontAwesome';src:url('font-awesome/fonts/fontawesome-webfont.eot?v=4.4.0');src:url('font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.4.0') format('embedded-opentype'), url('font-awesome/fonts/fontawesome-webfont.woff2?v=4.4.0') format('woff2'), url('font-awesome/fonts/fontawesome-webfont.woff?v=4.4.0') format('woff'), url('font-awesome/fonts/fontawesome-webfont.ttf?v=4.4.0') format('truetype'), url('font-awesome/fonts/fontawesome-webfont.svg?v=4.4.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333em;line-height:0.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul > li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:0.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:0.2em 0.25em 0.15em;border:solid 0.08em #eee;border-radius:0.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:0.3em}.fa.fa-pull-right{margin-left:0.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:0.3em}.fa.pull-right{margin-left:0.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0);-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000" !important}.fa-music:before{content:"\f001" !important}.fa-search:before{content:"\f002" !important}.fa-envelope-o:before{content:"\f003" !important}.fa-heart:before{content:"\f004" !important}.fa-star:before{content:"\f005" !important}.fa-star-o:before{content:"\f006" !important}.fa-user:before{content:"\f007" !important}.fa-film:before{content:"\f008" !important}.fa-th-large:before{content:"\f009" !important}.fa-th:before{content:"\f00a" !important}.fa-th-list:before{content:"\f00b" !important}.fa-check:before{content:"\f00c" !important}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d" !important}.fa-search-plus:before{content:"\f00e" !important}.fa-search-minus:before{content:"\f010" !important}.fa-power-off:before{content:"\f011" !important}.fa-signal:before{content:"\f012" !important}.fa-gear:before,.fa-cog:before{content:"\f013" !important}.fa-trash-o:before{content:"\f014" !important}.fa-home:before{content:"\f015" !important}.fa-file-o:before{content:"\f016" !important}.fa-clock-o:before{content:"\f017" !important}.fa-road:before{content:"\f018" !important}.fa-download:before{content:"\f019" !important}.fa-arrow-circle-o-down:before{content:"\f01a" !important}.fa-arrow-circle-o-up:before{content:"\f01b" !important}.fa-inbox:before{content:"\f01c" !important}.fa-play-circle-o:before{content:"\f01d" !important}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e" !important}.fa-refresh:before{content:"\f021" !important}.fa-list-alt:before{content:"\f022" !important}.fa-lock:before{content:"\f023" !important}.fa-flag:before{content:"\f024" !important}.fa-headphones:before{content:"\f025" !important}.fa-volume-off:before{content:"\f026" !important}.fa-volume-down:before{content:"\f027" !important}.fa-volume-up:before{content:"\f028" !important}.fa-qrcode:before{content:"\f029" !important}.fa-barcode:before{content:"\f02a" !important}.fa-tag:before{content:"\f02b" !important}.fa-tags:before{content:"\f02c" !important}.fa-book:before{content:"\f02d" !important}.fa-bookmark:before{content:"\f02e" !important}.fa-print:before{content:"\f02f" !important}.fa-camera:before{content:"\f030" !important}.fa-font:before{content:"\f031" !important}.fa-bold:before{content:"\f032" !important}.fa-italic:before{content:"\f033" !important}.fa-text-height:before{content:"\f034" !important}.fa-text-width:before{content:"\f035" !important}.fa-align-left:before{content:"\f036" !important}.fa-align-center:before{content:"\f037" !important}.fa-align-right:before{content:"\f038" !important}.fa-align-justify:before{content:"\f039" !important}.fa-list:before{content:"\f03a" !important}.fa-dedent:before,.fa-outdent:before{content:"\f03b" !important}.fa-indent:before{content:"\f03c" !important}.fa-video-camera:before{content:"\f03d" !important}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e" !important}.fa-pencil:before{content:"\f040" !important}.fa-map-marker:before{content:"\f041" !important}.fa-adjust:before{content:"\f042" !important}.fa-tint:before{content:"\f043" !important}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044" !important}.fa-share-square-o:before{content:"\f045" !important}.fa-check-square-o:before{content:"\f046" !important}.fa-arrows:before{content:"\f047" !important}.fa-step-backward:before{content:"\f048" !important}.fa-fast-backward:before{content:"\f049" !important}.fa-backward:before{content:"\f04a" !important}.fa-play:before{content:"\f04b" !important}.fa-pause:before{content:"\f04c" !important}.fa-stop:before{content:"\f04d" !important}.fa-forward:before{content:"\f04e" !important}.fa-fast-forward:before{content:"\f050" !important}.fa-step-forward:before{content:"\f051" !important}.fa-eject:before{content:"\f052" !important}.fa-chevron-left:before{content:"\f053" !important}.fa-chevron-right:before{content:"\f054" !important}.fa-plus-circle:before{content:"\f055" !important}.fa-minus-circle:before{content:"\f056" !important}.fa-times-circle:before{content:"\f057" !important}.fa-check-circle:before{content:"\f058" !important}.fa-question-circle:before{content:"\f059" !important}.fa-info-circle:before{content:"\f05a" !important}.fa-crosshairs:before{content:"\f05b" !important}.fa-times-circle-o:before{content:"\f05c" !important}.fa-check-circle-o:before{content:"\f05d" !important}.fa-ban:before{content:"\f05e" !important}.fa-arrow-left:before{content:"\f060" !important}.fa-arrow-right:before{content:"\f061" !important}.fa-arrow-up:before{content:"\f062" !important}.fa-arrow-down:before{content:"\f063" !important}.fa-mail-forward:before,.fa-share:before{content:"\f064" !important}.fa-expand:before{content:"\f065" !important}.fa-compress:before{content:"\f066" !important}.fa-plus:before{content:"\f067" !important}.fa-minus:before{content:"\f068" !important}.fa-asterisk:before{content:"\f069" !important}.fa-exclamation-circle:before{content:"\f06a" !important}.fa-gift:before{content:"\f06b" !important}.fa-leaf:before{content:"\f06c" !important}.fa-fire:before{content:"\f06d" !important}.fa-eye:before{content:"\f06e" !important}.fa-eye-slash:before{content:"\f070" !important}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071" !important}.fa-plane:before{content:"\f072" !important}.fa-calendar:before{content:"\f073" !important}.fa-random:before{content:"\f074" !important}.fa-comment:before{content:"\f075" !important}.fa-magnet:before{content:"\f076" !important}.fa-chevron-up:before{content:"\f077" !important}.fa-chevron-down:before{content:"\f078" !important}.fa-retweet:before{content:"\f079" !important}.fa-shopping-cart:before{content:"\f07a" !important}.fa-folder:before{content:"\f07b" !important}.fa-folder-open:before{content:"\f07c" !important}.fa-arrows-v:before{content:"\f07d" !important}.fa-arrows-h:before{content:"\f07e" !important}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080" !important}.fa-twitter-square:before{content:"\f081" !important}.fa-facebook-square:before{content:"\f082" !important}.fa-camera-retro:before{content:"\f083" !important}.fa-key:before{content:"\f084" !important}.fa-gears:before,.fa-cogs:before{content:"\f085" !important}.fa-comments:before{content:"\f086" !important}.fa-thumbs-o-up:before{content:"\f087" !important}.fa-thumbs-o-down:before{content:"\f088" !important}.fa-star-half:before{content:"\f089" !important}.fa-heart-o:before{content:"\f08a" !important}.fa-sign-out:before{content:"\f08b" !important}.fa-linkedin-square:before{content:"\f08c" !important}.fa-thumb-tack:before{content:"\f08d" !important}.fa-external-link:before{content:"\f08e" !important}.fa-sign-in:before{content:"\f090" !important}.fa-trophy:before{content:"\f091" !important}.fa-github-square:before{content:"\f092" !important}.fa-upload:before{content:"\f093" !important}.fa-lemon-o:before{content:"\f094" !important}.fa-phone:before{content:"\f095" !important}.fa-square-o:before{content:"\f096" !important}.fa-bookmark-o:before{content:"\f097" !important}.fa-phone-square:before{content:"\f098" !important}.fa-twitter:before{content:"\f099" !important}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a" !important}.fa-github:before{content:"\f09b" !important}.fa-unlock:before{content:"\f09c" !important}.fa-credit-card:before{content:"\f09d" !important}.fa-feed:before,.fa-rss:before{content:"\f09e" !important}.fa-hdd-o:before{content:"\f0a0" !important}.fa-bullhorn:before{content:"\f0a1" !important}.fa-bell:before{content:"\f0f3" !important}.fa-certificate:before{content:"\f0a3" !important}.fa-hand-o-right:before{content:"\f0a4" !important}.fa-hand-o-left:before{content:"\f0a5" !important}.fa-hand-o-up:before{content:"\f0a6" !important}.fa-hand-o-down:before{content:"\f0a7" !important}.fa-arrow-circle-left:before{content:"\f0a8" !important}.fa-arrow-circle-right:before{content:"\f0a9" !important}.fa-arrow-circle-up:before{content:"\f0aa" !important}.fa-arrow-circle-down:before{content:"\f0ab" !important}.fa-globe:before{content:"\f0ac" !important}.fa-wrench:before{content:"\f0ad" !important}.fa-tasks:before{content:"\f0ae" !important}.fa-filter:before{content:"\f0b0" !important}.fa-briefcase:before{content:"\f0b1" !important}.fa-arrows-alt:before{content:"\f0b2" !important}.fa-group:before,.fa-users:before{content:"\f0c0" !important}.fa-chain:before,.fa-link:before{content:"\f0c1" !important}.fa-cloud:before{content:"\f0c2" !important}.fa-flask:before{content:"\f0c3" !important}.fa-cut:before,.fa-scissors:before{content:"\f0c4" !important}.fa-copy:before,.fa-files-o:before{content:"\f0c5" !important}.fa-paperclip:before{content:"\f0c6" !important}.fa-save:before,.fa-floppy-o:before{content:"\f0c7" !important}.fa-square:before{content:"\f0c8" !important}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9" !important}.fa-list-ul:before{content:"\f0ca" !important}.fa-list-ol:before{content:"\f0cb" !important}.fa-strikethrough:before{content:"\f0cc" !important}.fa-underline:before{content:"\f0cd" !important}.fa-table:before{content:"\f0ce" !important}.fa-magic:before{content:"\f0d0" !important}.fa-truck:before{content:"\f0d1" !important}.fa-pinterest:before{content:"\f0d2" !important}.fa-pinterest-square:before{content:"\f0d3" !important}.fa-google-plus-square:before{content:"\f0d4" !important}.fa-google-plus:before{content:"\f0d5" !important}.fa-money:before{content:"\f0d6" !important}.fa-caret-down:before{content:"\f0d7" !important}.fa-caret-up:before{content:"\f0d8" !important}.fa-caret-left:before{content:"\f0d9" !important}.fa-caret-right:before{content:"\f0da" !important}.fa-columns:before{content:"\f0db" !important}.fa-unsorted:before,.fa-sort:before{content:"\f0dc" !important}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd" !important}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de" !important}.fa-envelope:before{content:"\f0e0" !important}.fa-linkedin:before{content:"\f0e1" !important}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2" !important}.fa-legal:before,.fa-gavel:before{content:"\f0e3" !important}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4" !important}.fa-comment-o:before{content:"\f0e5" !important}.fa-comments-o:before{content:"\f0e6" !important}.fa-flash:before,.fa-bolt:before{content:"\f0e7" !important}.fa-sitemap:before{content:"\f0e8" !important}.fa-umbrella:before{content:"\f0e9" !important}.fa-paste:before,.fa-clipboard:before{content:"\f0ea" !important}.fa-lightbulb-o:before{content:"\f0eb" !important}.fa-exchange:before{content:"\f0ec" !important}.fa-cloud-download:before{content:"\f0ed" !important}.fa-cloud-upload:before{content:"\f0ee" !important}.fa-user-md:before{content:"\f0f0" !important}.fa-stethoscope:before{content:"\f0f1" !important}.fa-suitcase:before{content:"\f0f2" !important}.fa-bell-o:before{content:"\f0a2" !important}.fa-coffee:before{content:"\f0f4" !important}.fa-cutlery:before{content:"\f0f5" !important}.fa-file-text-o:before{content:"\f0f6" !important}.fa-building-o:before{content:"\f0f7" !important}.fa-hospital-o:before{content:"\f0f8" !important}.fa-ambulance:before{content:"\f0f9" !important}.fa-medkit:before{content:"\f0fa" !important}.fa-fighter-jet:before{content:"\f0fb" !important}.fa-beer:before{content:"\f0fc" !important}.fa-h-square:before{content:"\f0fd" !important}.fa-plus-square:before{content:"\f0fe" !important}.fa-angle-double-left:before{content:"\f100" !important}.fa-angle-double-right:before{content:"\f101" !important}.fa-angle-double-up:before{content:"\f102" !important}.fa-angle-double-down:before{content:"\f103" !important}.fa-angle-left:before{content:"\f104" !important}.fa-angle-right:before{content:"\f105" !important}.fa-angle-up:before{content:"\f106" !important}.fa-angle-down:before{content:"\f107" !important}.fa-desktop:before{content:"\f108" !important}.fa-laptop:before{content:"\f109" !important}.fa-tablet:before{content:"\f10a" !important}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b" !important}.fa-circle-o:before{content:"\f10c" !important}.fa-quote-left:before{content:"\f10d" !important}.fa-quote-right:before{content:"\f10e" !important}.fa-spinner:before{content:"\f110" !important}.fa-circle:before{content:"\f111" !important}.fa-mail-reply:before,.fa-reply:before{content:"\f112" !important}.fa-github-alt:before{content:"\f113" !important}.fa-folder-o:before{content:"\f114" !important}.fa-folder-open-o:before{content:"\f115" !important}.fa-smile-o:before{content:"\f118" !important}.fa-frown-o:before{content:"\f119" !important}.fa-meh-o:before{content:"\f11a" !important}.fa-gamepad:before{content:"\f11b" !important}.fa-keyboard-o:before{content:"\f11c" !important}.fa-flag-o:before{content:"\f11d" !important}.fa-flag-checkered:before{content:"\f11e" !important}.fa-terminal:before{content:"\f120" !important}.fa-code:before{content:"\f121" !important}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122" !important}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123" !important}.fa-location-arrow:before{content:"\f124" !important}.fa-crop:before{content:"\f125" !important}.fa-code-fork:before{content:"\f126" !important}.fa-unlink:before,.fa-chain-broken:before{content:"\f127" !important}.fa-question:before{content:"\f128" !important}.fa-info:before{content:"\f129" !important}.fa-exclamation:before{content:"\f12a" !important}.fa-superscript:before{content:"\f12b" !important}.fa-subscript:before{content:"\f12c" !important}.fa-eraser:before{content:"\f12d" !important}.fa-puzzle-piece:before{content:"\f12e" !important}.fa-microphone:before{content:"\f130" !important}.fa-microphone-slash:before{content:"\f131" !important}.fa-shield:before{content:"\f132" !important}.fa-calendar-o:before{content:"\f133" !important}.fa-fire-extinguisher:before{content:"\f134" !important}.fa-rocket:before{content:"\f135" !important}.fa-maxcdn:before{content:"\f136" !important}.fa-chevron-circle-left:before{content:"\f137" !important}.fa-chevron-circle-right:before{content:"\f138" !important}.fa-chevron-circle-up:before{content:"\f139" !important}.fa-chevron-circle-down:before{content:"\f13a" !important}.fa-html5:before{content:"\f13b" !important}.fa-css3:before{content:"\f13c" !important}.fa-anchor:before{content:"\f13d" !important}.fa-unlock-alt:before{content:"\f13e" !important}.fa-bullseye:before{content:"\f140" !important}.fa-ellipsis-h:before{content:"\f141" !important}.fa-ellipsis-v:before{content:"\f142" !important}.fa-rss-square:before{content:"\f143" !important}.fa-play-circle:before{content:"\f144" !important}.fa-ticket:before{content:"\f145" !important}.fa-minus-square:before{content:"\f146" !important}.fa-minus-square-o:before{content:"\f147" !important}.fa-level-up:before{content:"\f148" !important}.fa-level-down:before{content:"\f149" !important}.fa-check-square:before{content:"\f14a" !important}.fa-pencil-square:before{content:"\f14b" !important}.fa-external-link-square:before{content:"\f14c" !important}.fa-share-square:before{content:"\f14d" !important}.fa-compass:before{content:"\f14e" !important}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150" !important}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151" !important}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152" !important}.fa-euro:before,.fa-eur:before{content:"\f153" !important}.fa-gbp:before{content:"\f154" !important}.fa-dollar:before,.fa-usd:before{content:"\f155" !important}.fa-rupee:before,.fa-inr:before{content:"\f156" !important}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157" !important}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158" !important} \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/resources/CatalogBuilder-all_2.css b/frontend/build/production/CatalogBuilder/resources/CatalogBuilder-all_2.css new file mode 100644 index 000000000..f17699861 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/CatalogBuilder-all_2.css @@ -0,0 +1 @@ +.fa-won:before,.fa-krw:before{content:"\f159" !important}.fa-bitcoin:before,.fa-btc:before{content:"\f15a" !important}.fa-file:before{content:"\f15b" !important}.fa-file-text:before{content:"\f15c" !important}.fa-sort-alpha-asc:before{content:"\f15d" !important}.fa-sort-alpha-desc:before{content:"\f15e" !important}.fa-sort-amount-asc:before{content:"\f160" !important}.fa-sort-amount-desc:before{content:"\f161" !important}.fa-sort-numeric-asc:before{content:"\f162" !important}.fa-sort-numeric-desc:before{content:"\f163" !important}.fa-thumbs-up:before{content:"\f164" !important}.fa-thumbs-down:before{content:"\f165" !important}.fa-youtube-square:before{content:"\f166" !important}.fa-youtube:before{content:"\f167" !important}.fa-xing:before{content:"\f168" !important}.fa-xing-square:before{content:"\f169" !important}.fa-youtube-play:before{content:"\f16a" !important}.fa-dropbox:before{content:"\f16b" !important}.fa-stack-overflow:before{content:"\f16c" !important}.fa-instagram:before{content:"\f16d" !important}.fa-flickr:before{content:"\f16e" !important}.fa-adn:before{content:"\f170" !important}.fa-bitbucket:before{content:"\f171" !important}.fa-bitbucket-square:before{content:"\f172" !important}.fa-tumblr:before{content:"\f173" !important}.fa-tumblr-square:before{content:"\f174" !important}.fa-long-arrow-down:before{content:"\f175" !important}.fa-long-arrow-up:before{content:"\f176" !important}.fa-long-arrow-left:before{content:"\f177" !important}.fa-long-arrow-right:before{content:"\f178" !important}.fa-apple:before{content:"\f179" !important}.fa-windows:before{content:"\f17a" !important}.fa-android:before{content:"\f17b" !important}.fa-linux:before{content:"\f17c" !important}.fa-dribbble:before{content:"\f17d" !important}.fa-skype:before{content:"\f17e" !important}.fa-foursquare:before{content:"\f180" !important}.fa-trello:before{content:"\f181" !important}.fa-female:before{content:"\f182" !important}.fa-male:before{content:"\f183" !important}.fa-gittip:before,.fa-gratipay:before{content:"\f184" !important}.fa-sun-o:before{content:"\f185" !important}.fa-moon-o:before{content:"\f186" !important}.fa-archive:before{content:"\f187" !important}.fa-bug:before{content:"\f188" !important}.fa-vk:before{content:"\f189" !important}.fa-weibo:before{content:"\f18a" !important}.fa-renren:before{content:"\f18b" !important}.fa-pagelines:before{content:"\f18c" !important}.fa-stack-exchange:before{content:"\f18d" !important}.fa-arrow-circle-o-right:before{content:"\f18e" !important}.fa-arrow-circle-o-left:before{content:"\f190" !important}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191" !important}.fa-dot-circle-o:before{content:"\f192" !important}.fa-wheelchair:before{content:"\f193" !important}.fa-vimeo-square:before{content:"\f194" !important}.fa-turkish-lira:before,.fa-try:before{content:"\f195" !important}.fa-plus-square-o:before{content:"\f196" !important}.fa-space-shuttle:before{content:"\f197" !important}.fa-slack:before{content:"\f198" !important}.fa-envelope-square:before{content:"\f199" !important}.fa-wordpress:before{content:"\f19a" !important}.fa-openid:before{content:"\f19b" !important}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c" !important}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d" !important}.fa-yahoo:before{content:"\f19e" !important}.fa-google:before{content:"\f1a0" !important}.fa-reddit:before{content:"\f1a1" !important}.fa-reddit-square:before{content:"\f1a2" !important}.fa-stumbleupon-circle:before{content:"\f1a3" !important}.fa-stumbleupon:before{content:"\f1a4" !important}.fa-delicious:before{content:"\f1a5" !important}.fa-digg:before{content:"\f1a6" !important}.fa-pied-piper:before{content:"\f1a7" !important}.fa-pied-piper-alt:before{content:"\f1a8" !important}.fa-drupal:before{content:"\f1a9" !important}.fa-joomla:before{content:"\f1aa" !important}.fa-language:before{content:"\f1ab" !important}.fa-fax:before{content:"\f1ac" !important}.fa-building:before{content:"\f1ad" !important}.fa-child:before{content:"\f1ae" !important}.fa-paw:before{content:"\f1b0" !important}.fa-spoon:before{content:"\f1b1" !important}.fa-cube:before{content:"\f1b2" !important}.fa-cubes:before{content:"\f1b3" !important}.fa-behance:before{content:"\f1b4" !important}.fa-behance-square:before{content:"\f1b5" !important}.fa-steam:before{content:"\f1b6" !important}.fa-steam-square:before{content:"\f1b7" !important}.fa-recycle:before{content:"\f1b8" !important}.fa-automobile:before,.fa-car:before{content:"\f1b9" !important}.fa-cab:before,.fa-taxi:before{content:"\f1ba" !important}.fa-tree:before{content:"\f1bb" !important}.fa-spotify:before{content:"\f1bc" !important}.fa-deviantart:before{content:"\f1bd" !important}.fa-soundcloud:before{content:"\f1be" !important}.fa-database:before{content:"\f1c0" !important}.fa-file-pdf-o:before{content:"\f1c1" !important}.fa-file-word-o:before{content:"\f1c2" !important}.fa-file-excel-o:before{content:"\f1c3" !important}.fa-file-powerpoint-o:before{content:"\f1c4" !important}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5" !important}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6" !important}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7" !important}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8" !important}.fa-file-code-o:before{content:"\f1c9" !important}.fa-vine:before{content:"\f1ca" !important}.fa-codepen:before{content:"\f1cb" !important}.fa-jsfiddle:before{content:"\f1cc" !important}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd" !important}.fa-circle-o-notch:before{content:"\f1ce" !important}.fa-ra:before,.fa-rebel:before{content:"\f1d0" !important}.fa-ge:before,.fa-empire:before{content:"\f1d1" !important}.fa-git-square:before{content:"\f1d2" !important}.fa-git:before{content:"\f1d3" !important}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4" !important}.fa-tencent-weibo:before{content:"\f1d5" !important}.fa-qq:before{content:"\f1d6" !important}.fa-wechat:before,.fa-weixin:before{content:"\f1d7" !important}.fa-send:before,.fa-paper-plane:before{content:"\f1d8" !important}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9" !important}.fa-history:before{content:"\f1da" !important}.fa-circle-thin:before{content:"\f1db" !important}.fa-header:before{content:"\f1dc" !important}.fa-paragraph:before{content:"\f1dd" !important}.fa-sliders:before{content:"\f1de" !important}.fa-share-alt:before{content:"\f1e0" !important}.fa-share-alt-square:before{content:"\f1e1" !important}.fa-bomb:before{content:"\f1e2" !important}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3" !important}.fa-tty:before{content:"\f1e4" !important}.fa-binoculars:before{content:"\f1e5" !important}.fa-plug:before{content:"\f1e6" !important}.fa-slideshare:before{content:"\f1e7" !important}.fa-twitch:before{content:"\f1e8" !important}.fa-yelp:before{content:"\f1e9" !important}.fa-newspaper-o:before{content:"\f1ea" !important}.fa-wifi:before{content:"\f1eb" !important}.fa-calculator:before{content:"\f1ec" !important}.fa-paypal:before{content:"\f1ed" !important}.fa-google-wallet:before{content:"\f1ee" !important}.fa-cc-visa:before{content:"\f1f0" !important}.fa-cc-mastercard:before{content:"\f1f1" !important}.fa-cc-discover:before{content:"\f1f2" !important}.fa-cc-amex:before{content:"\f1f3" !important}.fa-cc-paypal:before{content:"\f1f4" !important}.fa-cc-stripe:before{content:"\f1f5" !important}.fa-bell-slash:before{content:"\f1f6" !important}.fa-bell-slash-o:before{content:"\f1f7" !important}.fa-trash:before{content:"\f1f8" !important}.fa-copyright:before{content:"\f1f9" !important}.fa-at:before{content:"\f1fa" !important}.fa-eyedropper:before{content:"\f1fb" !important}.fa-paint-brush:before{content:"\f1fc" !important}.fa-birthday-cake:before{content:"\f1fd" !important}.fa-area-chart:before{content:"\f1fe" !important}.fa-pie-chart:before{content:"\f200" !important}.fa-line-chart:before{content:"\f201" !important}.fa-lastfm:before{content:"\f202" !important}.fa-lastfm-square:before{content:"\f203" !important}.fa-toggle-off:before{content:"\f204" !important}.fa-toggle-on:before{content:"\f205" !important}.fa-bicycle:before{content:"\f206" !important}.fa-bus:before{content:"\f207" !important}.fa-ioxhost:before{content:"\f208" !important}.fa-angellist:before{content:"\f209" !important}.fa-cc:before{content:"\f20a" !important}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b" !important}.fa-meanpath:before{content:"\f20c" !important}.fa-buysellads:before{content:"\f20d" !important}.fa-connectdevelop:before{content:"\f20e" !important}.fa-dashcube:before{content:"\f210" !important}.fa-forumbee:before{content:"\f211" !important}.fa-leanpub:before{content:"\f212" !important}.fa-sellsy:before{content:"\f213" !important}.fa-shirtsinbulk:before{content:"\f214" !important}.fa-simplybuilt:before{content:"\f215" !important}.fa-skyatlas:before{content:"\f216" !important}.fa-cart-plus:before{content:"\f217" !important}.fa-cart-arrow-down:before{content:"\f218" !important}.fa-diamond:before{content:"\f219" !important}.fa-ship:before{content:"\f21a" !important}.fa-user-secret:before{content:"\f21b" !important}.fa-motorcycle:before{content:"\f21c" !important}.fa-street-view:before{content:"\f21d" !important}.fa-heartbeat:before{content:"\f21e" !important}.fa-venus:before{content:"\f221" !important}.fa-mars:before{content:"\f222" !important}.fa-mercury:before{content:"\f223" !important}.fa-intersex:before,.fa-transgender:before{content:"\f224" !important}.fa-transgender-alt:before{content:"\f225" !important}.fa-venus-double:before{content:"\f226" !important}.fa-mars-double:before{content:"\f227" !important}.fa-venus-mars:before{content:"\f228" !important}.fa-mars-stroke:before{content:"\f229" !important}.fa-mars-stroke-v:before{content:"\f22a" !important}.fa-mars-stroke-h:before{content:"\f22b" !important}.fa-neuter:before{content:"\f22c" !important}.fa-genderless:before{content:"\f22d" !important}.fa-facebook-official:before{content:"\f230" !important}.fa-pinterest-p:before{content:"\f231" !important}.fa-whatsapp:before{content:"\f232" !important}.fa-server:before{content:"\f233" !important}.fa-user-plus:before{content:"\f234" !important}.fa-user-times:before{content:"\f235" !important}.fa-hotel:before,.fa-bed:before{content:"\f236" !important}.fa-viacoin:before{content:"\f237" !important}.fa-train:before{content:"\f238" !important}.fa-subway:before{content:"\f239" !important}.fa-medium:before{content:"\f23a" !important}.fa-yc:before,.fa-y-combinator:before{content:"\f23b" !important}.fa-optin-monster:before{content:"\f23c" !important}.fa-opencart:before{content:"\f23d" !important}.fa-expeditedssl:before{content:"\f23e" !important}.fa-battery-4:before,.fa-battery-full:before{content:"\f240" !important}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241" !important}.fa-battery-2:before,.fa-battery-half:before{content:"\f242" !important}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243" !important}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244" !important}.fa-mouse-pointer:before{content:"\f245" !important}.fa-i-cursor:before{content:"\f246" !important}.fa-object-group:before{content:"\f247" !important}.fa-object-ungroup:before{content:"\f248" !important}.fa-sticky-note:before{content:"\f249" !important}.fa-sticky-note-o:before{content:"\f24a" !important}.fa-cc-jcb:before{content:"\f24b" !important}.fa-cc-diners-club:before{content:"\f24c" !important}.fa-clone:before{content:"\f24d" !important}.fa-balance-scale:before{content:"\f24e" !important}.fa-hourglass-o:before{content:"\f250" !important}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251" !important}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252" !important}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253" !important}.fa-hourglass:before{content:"\f254" !important}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255" !important}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256" !important}.fa-hand-scissors-o:before{content:"\f257" !important}.fa-hand-lizard-o:before{content:"\f258" !important}.fa-hand-spock-o:before{content:"\f259" !important}.fa-hand-pointer-o:before{content:"\f25a" !important}.fa-hand-peace-o:before{content:"\f25b" !important}.fa-trademark:before{content:"\f25c" !important}.fa-registered:before{content:"\f25d" !important}.fa-creative-commons:before{content:"\f25e" !important}.fa-gg:before{content:"\f260" !important}.fa-gg-circle:before{content:"\f261" !important}.fa-tripadvisor:before{content:"\f262" !important}.fa-odnoklassniki:before{content:"\f263" !important}.fa-odnoklassniki-square:before{content:"\f264" !important}.fa-get-pocket:before{content:"\f265" !important}.fa-wikipedia-w:before{content:"\f266" !important}.fa-safari:before{content:"\f267" !important}.fa-chrome:before{content:"\f268" !important}.fa-firefox:before{content:"\f269" !important}.fa-opera:before{content:"\f26a" !important}.fa-internet-explorer:before{content:"\f26b" !important}.fa-tv:before,.fa-television:before{content:"\f26c" !important}.fa-contao:before{content:"\f26d" !important}.fa-500px:before{content:"\f26e" !important}.fa-amazon:before{content:"\f270" !important}.fa-calendar-plus-o:before{content:"\f271" !important}.fa-calendar-minus-o:before{content:"\f272" !important}.fa-calendar-times-o:before{content:"\f273" !important}.fa-calendar-check-o:before{content:"\f274" !important}.fa-industry:before{content:"\f275" !important}.fa-map-pin:before{content:"\f276" !important}.fa-map-signs:before{content:"\f277" !important}.fa-map-o:before{content:"\f278" !important}.fa-map:before{content:"\f279" !important}.fa-commenting:before{content:"\f27a" !important}.fa-commenting-o:before{content:"\f27b" !important}.fa-houzz:before{content:"\f27c" !important}.fa-vimeo:before{content:"\f27d" !important}.fa-black-tie:before{content:"\f27e" !important}.fa-fonticons:before{content:"\f280" !important}.x-fa:before{font-family:FontAwesome !important}.des-portal-footer{background-color:#24292e !important;border:none !important;z-index:10}.des-portal-footer-text{font-size:12px;color:#fff}.toolbar-btn-shadow{-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.2);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.2);box-shadow:0 1px 2px rgba(0, 0, 0, 0.2)}.toolbar-btn-shadow .x-btn-over{background-color:#efefef}.delete-focus-bg:focus,.delete-focus-bg:hover{background:none}.x-btn-footer-white-toolbar-small{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:transparent}.x-btn-footer-white-toolbar-small-mc{background-color:transparent}.x-nbr .x-btn-footer-white-toolbar-small{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-footer-white-toolbar-small-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-footer-white-toolbar-small-tl{background-position:0 -6px}.x-btn-footer-white-toolbar-small-tr{background-position:right -9px}.x-btn-footer-white-toolbar-small-bl{background-position:0 -12px}.x-btn-footer-white-toolbar-small-br{background-position:right -15px}.x-btn-footer-white-toolbar-small-ml{background-position:0 top}.x-btn-footer-white-toolbar-small-mr{background-position:right top}.x-btn-footer-white-toolbar-small-tc{background-position:0 0}.x-btn-footer-white-toolbar-small-bc{background-position:0 -3px}.x-btn-footer-white-toolbar-small-tr,.x-btn-footer-white-toolbar-small-br,.x-btn-footer-white-toolbar-small-mr{padding-right:3px}.x-btn-footer-white-toolbar-small-tl,.x-btn-footer-white-toolbar-small-bl,.x-btn-footer-white-toolbar-small-ml{padding-left:3px}.x-btn-footer-white-toolbar-small-tc{height:3px}.x-btn-footer-white-toolbar-small-bc{height:3px}.x-btn-footer-white-toolbar-small-mc{padding:1px 1px 1px 1px}.x-btn-footer-white-toolbar-small{border-color:transparent}.x-btn-button-footer-white-toolbar-small{min-height:16px}.x-ie9m .x-btn-button-footer-white-toolbar-small{min-height:auto;height:16px}.x-btn-inner-footer-white-toolbar-small{font:300 12px/16px helvetica, arial, verdana, sans-serif;color:white;padding:0 5px;max-width:100%}.x-btn-icon-right > .x-btn-inner-footer-white-toolbar-small,.x-btn-icon-left > .x-btn-inner-footer-white-toolbar-small{max-width:calc(100% - 16px)}.x-ie10p .x-btn-inner-footer-white-toolbar-small{max-width:none}.x-btn-icon-el-footer-white-toolbar-small{font-size:16px;height:16px;color:white;line-height:16px}.x-btn-icon-left > .x-btn-icon-el-footer-white-toolbar-small,.x-btn-icon-right > .x-btn-icon-el-footer-white-toolbar-small{width:16px}.x-btn-icon-top > .x-btn-icon-el-footer-white-toolbar-small,.x-btn-icon-bottom > .x-btn-icon-el-footer-white-toolbar-small{min-width:16px}.x-btn-icon-el-footer-white-toolbar-small.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-footer-white-toolbar-small.x-btn-glyph{color:#fff}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-footer-white-toolbar-small{margin-right:0px}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-footer-white-toolbar-small{margin-left:0px}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-footer-white-toolbar-small{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-footer-white-toolbar-small{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-footer-white-toolbar-small{padding-right:5px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-footer-white-toolbar-small{margin-right:5px}.x-btn-arrow-bottom > .x-btn-button-footer-white-toolbar-small,.x-btn-split-bottom > .x-btn-button-footer-white-toolbar-small{padding-bottom:3px}.x-btn-wrap-footer-white-toolbar-small.x-btn-arrow-right:after{width:16px;background-image:url(common/images/button/footer-white-toolbar-small-arrow.png);padding-right:16px}.x-btn-wrap-footer-white-toolbar-small.x-btn-arrow-bottom:after{height:13px;background-image:url(common/images/button/footer-white-toolbar-small-arrow.png)}.x-btn-wrap-footer-white-toolbar-small.x-btn-split-right:after{width:20px;background-image:url(common/images/button/footer-white-toolbar-small-s-arrow.png);padding-right:20px}.x-btn-wrap-footer-white-toolbar-small.x-btn-split-bottom:after{height:15px;background-image:url(common/images/button/footer-white-toolbar-small-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-footer-white-toolbar-small{padding-right:5px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-footer-white-toolbar-small{margin-right:5px}.x-btn-focus.x-btn-footer-white-toolbar-small{background-image:none;background-color:transparent;-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn-footer-white-toolbar-small .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:23px;pointer-events:none}.x-btn-footer-white-toolbar-small.x-arrow-focus .x-btn-arrow-el{border:1px solid #4297d4}.x-btn-over.x-btn-footer-white-toolbar-small{background-image:none;background-color:transparent}.x-btn-focus.x-btn-over.x-btn-footer-white-toolbar-small{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-footer-white-toolbar-small,.x-btn.x-btn-pressed.x-btn-footer-white-toolbar-small{background-image:none;background-color:transparent}.x-btn-focus.x-btn-menu-active.x-btn-footer-white-toolbar-small,.x-btn-focus.x-btn-pressed.x-btn-footer-white-toolbar-small{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-footer-white-toolbar-small{background-image:none;background-color:transparent}.x-btn-focus .x-btn-footer-white-toolbar-small-tl,.x-btn-focus .x-btn-footer-white-toolbar-small-bl,.x-btn-focus .x-btn-footer-white-toolbar-small-tr,.x-btn-focus .x-btn-footer-white-toolbar-small-br,.x-btn-focus .x-btn-footer-white-toolbar-small-tc,.x-btn-focus .x-btn-footer-white-toolbar-small-bc{background-image:url(common/images/btn/btn-footer-white-toolbar-small-focus-corners.gif)}.x-btn-focus .x-btn-footer-white-toolbar-small-ml,.x-btn-focus .x-btn-footer-white-toolbar-small-mr{background-image:url(common/images/btn/btn-footer-white-toolbar-small-focus-sides.gif)}.x-btn-focus .x-btn-footer-white-toolbar-small-mc{background-color:transparent}.x-btn-over .x-btn-footer-white-toolbar-small-tl,.x-btn-over .x-btn-footer-white-toolbar-small-bl,.x-btn-over .x-btn-footer-white-toolbar-small-tr,.x-btn-over .x-btn-footer-white-toolbar-small-br,.x-btn-over .x-btn-footer-white-toolbar-small-tc,.x-btn-over .x-btn-footer-white-toolbar-small-bc{background-image:url(common/images/btn/btn-footer-white-toolbar-small-over-corners.gif)}.x-btn-over .x-btn-footer-white-toolbar-small-ml,.x-btn-over .x-btn-footer-white-toolbar-small-mr{background-image:url(common/images/btn/btn-footer-white-toolbar-small-over-sides.gif)}.x-btn-over .x-btn-footer-white-toolbar-small-mc{background-color:transparent}.x-btn-focus.x-btn-over .x-btn-footer-white-toolbar-small-tl,.x-btn-focus.x-btn-over .x-btn-footer-white-toolbar-small-bl,.x-btn-focus.x-btn-over .x-btn-footer-white-toolbar-small-tr,.x-btn-focus.x-btn-over .x-btn-footer-white-toolbar-small-br,.x-btn-focus.x-btn-over .x-btn-footer-white-toolbar-small-tc,.x-btn-focus.x-btn-over .x-btn-footer-white-toolbar-small-bc{background-image:url(common/images/btn/btn-footer-white-toolbar-small-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-footer-white-toolbar-small-ml,.x-btn-focus.x-btn-over .x-btn-footer-white-toolbar-small-mr{background-image:url(common/images/btn/btn-footer-white-toolbar-small-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-footer-white-toolbar-small-mc{background-color:transparent}.x-btn.x-btn-menu-active .x-btn-footer-white-toolbar-small-tl,.x-btn.x-btn-menu-active .x-btn-footer-white-toolbar-small-bl,.x-btn.x-btn-menu-active .x-btn-footer-white-toolbar-small-tr,.x-btn.x-btn-menu-active .x-btn-footer-white-toolbar-small-br,.x-btn.x-btn-menu-active .x-btn-footer-white-toolbar-small-tc,.x-btn.x-btn-menu-active .x-btn-footer-white-toolbar-small-bc,.x-btn.x-btn-pressed .x-btn-footer-white-toolbar-small-tl,.x-btn.x-btn-pressed .x-btn-footer-white-toolbar-small-bl,.x-btn.x-btn-pressed .x-btn-footer-white-toolbar-small-tr,.x-btn.x-btn-pressed .x-btn-footer-white-toolbar-small-br,.x-btn.x-btn-pressed .x-btn-footer-white-toolbar-small-tc,.x-btn.x-btn-pressed .x-btn-footer-white-toolbar-small-bc{background-image:url(common/images/btn/btn-footer-white-toolbar-small-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-footer-white-toolbar-small-ml,.x-btn.x-btn-menu-active .x-btn-footer-white-toolbar-small-mr,.x-btn.x-btn-pressed .x-btn-footer-white-toolbar-small-ml,.x-btn.x-btn-pressed .x-btn-footer-white-toolbar-small-mr{background-image:url(common/images/btn/btn-footer-white-toolbar-small-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-footer-white-toolbar-small-mc,.x-btn.x-btn-pressed .x-btn-footer-white-toolbar-small-mc{background-color:transparent}.x-btn-focus.x-btn-menu-active .x-btn-footer-white-toolbar-small-tl,.x-btn-focus.x-btn-menu-active .x-btn-footer-white-toolbar-small-bl,.x-btn-focus.x-btn-menu-active .x-btn-footer-white-toolbar-small-tr,.x-btn-focus.x-btn-menu-active .x-btn-footer-white-toolbar-small-br,.x-btn-focus.x-btn-menu-active .x-btn-footer-white-toolbar-small-tc,.x-btn-focus.x-btn-menu-active .x-btn-footer-white-toolbar-small-bc,.x-btn-focus.x-btn-pressed .x-btn-footer-white-toolbar-small-tl,.x-btn-focus.x-btn-pressed .x-btn-footer-white-toolbar-small-bl,.x-btn-focus.x-btn-pressed .x-btn-footer-white-toolbar-small-tr,.x-btn-focus.x-btn-pressed .x-btn-footer-white-toolbar-small-br,.x-btn-focus.x-btn-pressed .x-btn-footer-white-toolbar-small-tc,.x-btn-focus.x-btn-pressed .x-btn-footer-white-toolbar-small-bc{background-image:url(common/images/btn/btn-footer-white-toolbar-small-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-footer-white-toolbar-small-ml,.x-btn-focus.x-btn-menu-active .x-btn-footer-white-toolbar-small-mr,.x-btn-focus.x-btn-pressed .x-btn-footer-white-toolbar-small-ml,.x-btn-focus.x-btn-pressed .x-btn-footer-white-toolbar-small-mr{background-image:url(common/images/btn/btn-footer-white-toolbar-small-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-footer-white-toolbar-small-mc,.x-btn-focus.x-btn-pressed .x-btn-footer-white-toolbar-small-mc{background-color:transparent}.x-btn.x-btn-disabled .x-btn-footer-white-toolbar-small-tl,.x-btn.x-btn-disabled .x-btn-footer-white-toolbar-small-bl,.x-btn.x-btn-disabled .x-btn-footer-white-toolbar-small-tr,.x-btn.x-btn-disabled .x-btn-footer-white-toolbar-small-br,.x-btn.x-btn-disabled .x-btn-footer-white-toolbar-small-tc,.x-btn.x-btn-disabled .x-btn-footer-white-toolbar-small-bc{background-image:url(common/images/btn/btn-footer-white-toolbar-small-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-footer-white-toolbar-small-ml,.x-btn.x-btn-disabled .x-btn-footer-white-toolbar-small-mr{background-image:url(common/images/btn/btn-footer-white-toolbar-small-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-footer-white-toolbar-small-mc{background-color:transparent}.x-nbr .x-btn-footer-white-toolbar-small{background-image:none}.x-btn-disabled.x-btn-footer-white-toolbar-small{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.des-portal-headerbar{background-color:#24292e !important;border:none !important;z-index:10}.des-portal-appname{font-size:18px;color:#fff;font-weight:bold}.des-portal-logo img{width:34px;height:34px}.toolbar-btn-shadow{-webkit-box-shadow:0 1px 2px rgba(0, 0, 0, 0.2);-moz-box-shadow:0 1px 2px rgba(0, 0, 0, 0.2);box-shadow:0 1px 2px rgba(0, 0, 0, 0.2)}.toolbar-btn-shadow .x-btn-over{background-color:#efefef}.delete-focus-bg:focus,.delete-focus-bg:hover{background:none}.x-btn-white-toolbar-medium{-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;padding:3px 3px 3px 3px;border-width:1px;border-style:solid;background-color:transparent}.x-btn-white-toolbar-medium-mc{background-color:transparent}.x-nbr .x-btn-white-toolbar-medium{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-white-toolbar-medium-frameInfo{font-family:th-3-3-3-3-1-1-1-1-3-3-3-3}.x-btn-white-toolbar-medium-tl{background-position:0 -6px}.x-btn-white-toolbar-medium-tr{background-position:right -9px}.x-btn-white-toolbar-medium-bl{background-position:0 -12px}.x-btn-white-toolbar-medium-br{background-position:right -15px}.x-btn-white-toolbar-medium-ml{background-position:0 top}.x-btn-white-toolbar-medium-mr{background-position:right top}.x-btn-white-toolbar-medium-tc{background-position:0 0}.x-btn-white-toolbar-medium-bc{background-position:0 -3px}.x-btn-white-toolbar-medium-tr,.x-btn-white-toolbar-medium-br,.x-btn-white-toolbar-medium-mr{padding-right:3px}.x-btn-white-toolbar-medium-tl,.x-btn-white-toolbar-medium-bl,.x-btn-white-toolbar-medium-ml{padding-left:3px}.x-btn-white-toolbar-medium-tc{height:3px}.x-btn-white-toolbar-medium-bc{height:3px}.x-btn-white-toolbar-medium-mc{padding:1px 1px 1px 1px}.x-btn-white-toolbar-medium{border-color:transparent}.x-btn-button-white-toolbar-medium{min-height:24px}.x-ie9m .x-btn-button-white-toolbar-medium{min-height:auto;height:24px}.x-btn-inner-white-toolbar-medium{font:300 14px/18px helvetica, arial, verdana, sans-serif;color:white;padding:0 8px;max-width:100%}.x-btn-icon-right > .x-btn-inner-white-toolbar-medium,.x-btn-icon-left > .x-btn-inner-white-toolbar-medium{max-width:calc(100% - 24px)}.x-ie10p .x-btn-inner-white-toolbar-medium{max-width:none}.x-btn-icon-el-white-toolbar-medium{font-size:24px;height:24px;color:white;line-height:24px}.x-btn-icon-left > .x-btn-icon-el-white-toolbar-medium,.x-btn-icon-right > .x-btn-icon-el-white-toolbar-medium{width:24px}.x-btn-icon-top > .x-btn-icon-el-white-toolbar-medium,.x-btn-icon-bottom > .x-btn-icon-el-white-toolbar-medium{min-width:24px}.x-btn-icon-el-white-toolbar-medium.x-btn-glyph{opacity:0.5}.x-ie8 .x-btn-icon-el-white-toolbar-medium.x-btn-glyph{color:#fff}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-white-toolbar-medium{margin-right:0}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-white-toolbar-medium{margin-left:0}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-white-toolbar-medium{margin-bottom:5px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-white-toolbar-medium{margin-top:5px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-white-toolbar-medium{padding-right:8px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-white-toolbar-medium{margin-right:8px}.x-btn-arrow-bottom > .x-btn-button-white-toolbar-medium,.x-btn-split-bottom > .x-btn-button-white-toolbar-medium{padding-bottom:3px}.x-btn-wrap-white-toolbar-medium.x-btn-arrow-right:after{width:24px;background-image:url(common/images/button/white-toolbar-medium-arrow.png);padding-right:24px}.x-btn-wrap-white-toolbar-medium.x-btn-arrow-bottom:after{height:18px;background-image:url(common/images/button/white-toolbar-medium-arrow.png)}.x-btn-wrap-white-toolbar-medium.x-btn-split-right:after{width:28px;background-image:url(common/images/button/white-toolbar-medium-s-arrow.png);padding-right:28px}.x-btn-wrap-white-toolbar-medium.x-btn-split-bottom:after{height:24px;background-image:url(common/images/button/white-toolbar-medium-s-arrow-b.png)}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-white-toolbar-medium{padding-right:8px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-white-toolbar-medium{margin-right:8px}.x-btn-focus.x-btn-white-toolbar-medium{background-image:none;background-color:transparent;-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn-white-toolbar-medium .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:31px;pointer-events:none}.x-btn-white-toolbar-medium.x-arrow-focus .x-btn-arrow-el{border:1px solid #4297d4}.x-btn-over.x-btn-white-toolbar-medium{background-image:none;background-color:transparent}.x-btn-focus.x-btn-over.x-btn-white-toolbar-medium{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-white-toolbar-medium,.x-btn.x-btn-pressed.x-btn-white-toolbar-medium{background-image:none;background-color:transparent}.x-btn-focus.x-btn-menu-active.x-btn-white-toolbar-medium,.x-btn-focus.x-btn-pressed.x-btn-white-toolbar-medium{-webkit-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;-moz-box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset;box-shadow:#4297d4 0 1px 0px 0 inset, #4297d4 0 -1px 0px 0 inset, #4297d4 -1px 0 0px 0 inset, #4297d4 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-white-toolbar-medium{background-image:none;background-color:transparent}.x-btn-focus .x-btn-white-toolbar-medium-tl,.x-btn-focus .x-btn-white-toolbar-medium-bl,.x-btn-focus .x-btn-white-toolbar-medium-tr,.x-btn-focus .x-btn-white-toolbar-medium-br,.x-btn-focus .x-btn-white-toolbar-medium-tc,.x-btn-focus .x-btn-white-toolbar-medium-bc{background-image:url(common/images/btn/btn-white-toolbar-medium-focus-corners.gif)}.x-btn-focus .x-btn-white-toolbar-medium-ml,.x-btn-focus .x-btn-white-toolbar-medium-mr{background-image:url(common/images/btn/btn-white-toolbar-medium-focus-sides.gif)}.x-btn-focus .x-btn-white-toolbar-medium-mc{background-color:transparent}.x-btn-over .x-btn-white-toolbar-medium-tl,.x-btn-over .x-btn-white-toolbar-medium-bl,.x-btn-over .x-btn-white-toolbar-medium-tr,.x-btn-over .x-btn-white-toolbar-medium-br,.x-btn-over .x-btn-white-toolbar-medium-tc,.x-btn-over .x-btn-white-toolbar-medium-bc{background-image:url(common/images/btn/btn-white-toolbar-medium-over-corners.gif)}.x-btn-over .x-btn-white-toolbar-medium-ml,.x-btn-over .x-btn-white-toolbar-medium-mr{background-image:url(common/images/btn/btn-white-toolbar-medium-over-sides.gif)}.x-btn-over .x-btn-white-toolbar-medium-mc{background-color:transparent}.x-btn-focus.x-btn-over .x-btn-white-toolbar-medium-tl,.x-btn-focus.x-btn-over .x-btn-white-toolbar-medium-bl,.x-btn-focus.x-btn-over .x-btn-white-toolbar-medium-tr,.x-btn-focus.x-btn-over .x-btn-white-toolbar-medium-br,.x-btn-focus.x-btn-over .x-btn-white-toolbar-medium-tc,.x-btn-focus.x-btn-over .x-btn-white-toolbar-medium-bc{background-image:url(common/images/btn/btn-white-toolbar-medium-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-white-toolbar-medium-ml,.x-btn-focus.x-btn-over .x-btn-white-toolbar-medium-mr{background-image:url(common/images/btn/btn-white-toolbar-medium-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-white-toolbar-medium-mc{background-color:transparent}.x-btn.x-btn-menu-active .x-btn-white-toolbar-medium-tl,.x-btn.x-btn-menu-active .x-btn-white-toolbar-medium-bl,.x-btn.x-btn-menu-active .x-btn-white-toolbar-medium-tr,.x-btn.x-btn-menu-active .x-btn-white-toolbar-medium-br,.x-btn.x-btn-menu-active .x-btn-white-toolbar-medium-tc,.x-btn.x-btn-menu-active .x-btn-white-toolbar-medium-bc,.x-btn.x-btn-pressed .x-btn-white-toolbar-medium-tl,.x-btn.x-btn-pressed .x-btn-white-toolbar-medium-bl,.x-btn.x-btn-pressed .x-btn-white-toolbar-medium-tr,.x-btn.x-btn-pressed .x-btn-white-toolbar-medium-br,.x-btn.x-btn-pressed .x-btn-white-toolbar-medium-tc,.x-btn.x-btn-pressed .x-btn-white-toolbar-medium-bc{background-image:url(common/images/btn/btn-white-toolbar-medium-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-white-toolbar-medium-ml,.x-btn.x-btn-menu-active .x-btn-white-toolbar-medium-mr,.x-btn.x-btn-pressed .x-btn-white-toolbar-medium-ml,.x-btn.x-btn-pressed .x-btn-white-toolbar-medium-mr{background-image:url(common/images/btn/btn-white-toolbar-medium-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-white-toolbar-medium-mc,.x-btn.x-btn-pressed .x-btn-white-toolbar-medium-mc{background-color:transparent}.x-btn-focus.x-btn-menu-active .x-btn-white-toolbar-medium-tl,.x-btn-focus.x-btn-menu-active .x-btn-white-toolbar-medium-bl,.x-btn-focus.x-btn-menu-active .x-btn-white-toolbar-medium-tr,.x-btn-focus.x-btn-menu-active .x-btn-white-toolbar-medium-br,.x-btn-focus.x-btn-menu-active .x-btn-white-toolbar-medium-tc,.x-btn-focus.x-btn-menu-active .x-btn-white-toolbar-medium-bc,.x-btn-focus.x-btn-pressed .x-btn-white-toolbar-medium-tl,.x-btn-focus.x-btn-pressed .x-btn-white-toolbar-medium-bl,.x-btn-focus.x-btn-pressed .x-btn-white-toolbar-medium-tr,.x-btn-focus.x-btn-pressed .x-btn-white-toolbar-medium-br,.x-btn-focus.x-btn-pressed .x-btn-white-toolbar-medium-tc,.x-btn-focus.x-btn-pressed .x-btn-white-toolbar-medium-bc{background-image:url(common/images/btn/btn-white-toolbar-medium-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-white-toolbar-medium-ml,.x-btn-focus.x-btn-menu-active .x-btn-white-toolbar-medium-mr,.x-btn-focus.x-btn-pressed .x-btn-white-toolbar-medium-ml,.x-btn-focus.x-btn-pressed .x-btn-white-toolbar-medium-mr{background-image:url(common/images/btn/btn-white-toolbar-medium-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-white-toolbar-medium-mc,.x-btn-focus.x-btn-pressed .x-btn-white-toolbar-medium-mc{background-color:transparent}.x-btn.x-btn-disabled .x-btn-white-toolbar-medium-tl,.x-btn.x-btn-disabled .x-btn-white-toolbar-medium-bl,.x-btn.x-btn-disabled .x-btn-white-toolbar-medium-tr,.x-btn.x-btn-disabled .x-btn-white-toolbar-medium-br,.x-btn.x-btn-disabled .x-btn-white-toolbar-medium-tc,.x-btn.x-btn-disabled .x-btn-white-toolbar-medium-bc{background-image:url(common/images/btn/btn-white-toolbar-medium-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-white-toolbar-medium-ml,.x-btn.x-btn-disabled .x-btn-white-toolbar-medium-mr{background-image:url(common/images/btn/btn-white-toolbar-medium-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-white-toolbar-medium-mc{background-color:transparent}.x-nbr .x-btn-white-toolbar-medium{background-image:none}.x-btn-disabled.x-btn-white-toolbar-medium{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-tab-navigation-top{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:24px 24px 24px 24px;border-width:0;border-style:solid;background-color:transparent}.x-tab-navigation-top-mc{background-color:transparent}.x-nbr .x-tab-navigation-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-navigation-top-frameInfo{font-family:th-0-0-0-0-0-0-0-0-24-24-24-24}.x-tab-navigation-top-tl{background-position:0 0}.x-tab-navigation-top-tr{background-position:right 0}.x-tab-navigation-top-bl{background-position:0 0}.x-tab-navigation-top-br{background-position:right 0}.x-tab-navigation-top-ml{background-position:0 top}.x-tab-navigation-top-mr{background-position:right top}.x-tab-navigation-top-tc{background-position:0 0}.x-tab-navigation-top-bc{background-position:0 0}.x-tab-navigation-top-tr,.x-tab-navigation-top-br,.x-tab-navigation-top-mr{padding-right:0}.x-tab-navigation-top-tl,.x-tab-navigation-top-bl,.x-tab-navigation-top-ml{padding-left:0}.x-tab-navigation-top-tc{height:0}.x-tab-navigation-top-bc{height:0}.x-tab-navigation-top-mc{padding:24px 24px 24px 24px}.x-tab-navigation-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:24px 24px 24px 24px;border-width:0 0 0 0;border-style:solid;background-color:transparent}.x-tab-navigation-bottom-mc{background-color:transparent}.x-nbr .x-tab-navigation-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-navigation-bottom-frameInfo{font-family:th-0-0-0-0-0-0-0-0-24-24-24-24}.x-tab-navigation-bottom-tl{background-position:0 0}.x-tab-navigation-bottom-tr{background-position:right 0}.x-tab-navigation-bottom-bl{background-position:0 0}.x-tab-navigation-bottom-br{background-position:right 0}.x-tab-navigation-bottom-ml{background-position:0 bottom}.x-tab-navigation-bottom-mr{background-position:right bottom}.x-tab-navigation-bottom-tc{background-position:0 0}.x-tab-navigation-bottom-bc{background-position:0 0}.x-tab-navigation-bottom-tr,.x-tab-navigation-bottom-br,.x-tab-navigation-bottom-mr{padding-right:0}.x-tab-navigation-bottom-tl,.x-tab-navigation-bottom-bl,.x-tab-navigation-bottom-ml{padding-left:0}.x-tab-navigation-bottom-tc{height:0}.x-tab-navigation-bottom-bc{height:0}.x-tab-navigation-bottom-mc{padding:24px 24px 24px 24px}.x-tab-navigation-left{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:24px 24px 24px 24px;border-width:0 0 0 0;border-style:solid;background-color:transparent}.x-tab-navigation-left-mc{background-color:transparent}.x-nbr .x-tab-navigation-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-navigation-left-frameInfo{font-family:th-0-0-0-0-0-0-0-0-24-24-24-24}.x-tab-navigation-left-tl{background-position:0 0}.x-tab-navigation-left-tr{background-position:right 0}.x-tab-navigation-left-bl{background-position:0 0}.x-tab-navigation-left-br{background-position:right 0}.x-tab-navigation-left-ml{background-position:0 top}.x-tab-navigation-left-mr{background-position:right top}.x-tab-navigation-left-tc{background-position:0 0}.x-tab-navigation-left-bc{background-position:0 0}.x-tab-navigation-left-tr,.x-tab-navigation-left-br,.x-tab-navigation-left-mr{padding-right:0}.x-tab-navigation-left-tl,.x-tab-navigation-left-bl,.x-tab-navigation-left-ml{padding-left:0}.x-tab-navigation-left-tc{height:0}.x-tab-navigation-left-bc{height:0}.x-tab-navigation-left-mc{padding:24px 24px 24px 24px}.x-tab-navigation-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:24px 24px 24px 24px;border-width:0 0 0 0;border-style:solid;background-color:transparent}.x-tab-navigation-right-mc{background-color:transparent}.x-nbr .x-tab-navigation-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-navigation-right-frameInfo{font-family:th-0-0-0-0-0-0-0-0-24-24-24-24}.x-tab-navigation-right-tl{background-position:0 0}.x-tab-navigation-right-tr{background-position:right 0}.x-tab-navigation-right-bl{background-position:0 0}.x-tab-navigation-right-br{background-position:right 0}.x-tab-navigation-right-ml{background-position:0 top}.x-tab-navigation-right-mr{background-position:right top}.x-tab-navigation-right-tc{background-position:0 0}.x-tab-navigation-right-bc{background-position:0 0}.x-tab-navigation-right-tr,.x-tab-navigation-right-br,.x-tab-navigation-right-mr{padding-right:0}.x-tab-navigation-right-tl,.x-tab-navigation-right-bl,.x-tab-navigation-right-ml{padding-left:0}.x-tab-navigation-right-tc{height:0}.x-tab-navigation-right-bc{height:0}.x-tab-navigation-right-mc{padding:24px 24px 24px 24px}.x-tab-navigation{border-color:#f5f5f5;cursor:pointer}.x-tab-navigation-top{margin:0}.x-tab-navigation-top.x-tab-rotate-left{margin:0 0 0 0}.x-tab-navigation-top.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-top.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-top.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-right{margin:0 0 0 0}.x-tab-navigation-right.x-tab-rotate-right{margin:0 0 0 0}.x-tab-navigation-right.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-right.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-right.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-bottom{margin:0 0 0 0}.x-tab-navigation-bottom.x-tab-rotate-left{margin:0 0 0 0}.x-tab-navigation-bottom.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-bottom.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-bottom.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-left{margin:0 0 0 0}.x-tab-navigation-left.x-tab-rotate-right{margin:0 0 0 0}.x-tab-navigation-left.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-left.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-left.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-button-navigation{height:24px}.x-tab-inner-navigation{font:bold 15px/19px helvetica, arial, verdana, sans-serif;color:#acacac;max-width:100%}.x-tab-icon-right > .x-tab-inner-navigation,.x-tab-icon-left > .x-tab-inner-navigation{max-width:calc(100% - 24px)}.x-tab-icon-el-navigation{min-height:24px;background-position:center center;font-size:24px;line-height:24px;color:#acacac}.x-tab-icon-left > .x-tab-icon-el-navigation,.x-tab-icon-right > .x-tab-icon-el-navigation{width:24px}.x-tab-icon-top > .x-tab-icon-el-navigation,.x-tab-icon-bottom > .x-tab-icon-el-navigation{min-width:24px}.x-tab-text.x-tab-icon-left > .x-tab-icon-el-navigation{margin-right:5px}.x-tab-text.x-tab-icon-right > .x-tab-icon-el-navigation{margin-left:5px}.x-tab-text.x-tab-icon-top > .x-tab-icon-el-navigation{margin-bottom:5px}.x-tab-text.x-tab-icon-bottom > .x-tab-icon-el-navigation{margin-top:5px}.x-tab-focus.x-tab-navigation{border-color:#f5f5f5;background-color:transparent}.x-tab-over.x-tab-navigation{border-color:#c9deed;background-color:#505050}.x-tab-over.x-tab-navigation .x-tab-inner-navigation{color:#c4c4c4}.x-tab-over.x-tab-navigation .x-tab-icon-el{color:#c4c4c4}.x-ie8m .x-tab-over.x-tab-navigation .x-tab-icon-el{color:#c4c4c4}.x-tab-focus.x-tab-over.x-tab-navigation{border-color:#c9deed;background-color:#505050}.x-tab.x-tab-active.x-tab-navigation{border-color:#3892d4;background-color:#303030}.x-tab.x-tab-active.x-tab-navigation .x-tab-inner-navigation{color:#fff}.x-tab.x-tab-active.x-tab-navigation .x-tab-icon-el{color:#fff}.x-ie8 .x-tab.x-tab-active.x-tab-navigation .x-tab-icon-el{color:#fff}.x-tab-focus.x-tab-active.x-tab-navigation{border-color:#3892d4;background-color:#303030}.x-tab.x-tab-disabled.x-tab-navigation{border-color:#f5f5f5;background-color:transparent;cursor:default}.x-tab.x-tab-disabled.x-tab-navigation .x-tab-inner-navigation{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3}.x-tab.x-tab-disabled.x-tab-navigation .x-tab-icon-el-navigation{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-tab.x-tab-disabled.x-tab-navigation .x-tab-icon-el{color:#acacac;opacity:0.3;filter:none}.x-nbr .x-tab-navigation{background-image:none}.x-tab-over .x-tab-navigation-top-tl,.x-tab-over .x-tab-navigation-top-bl,.x-tab-over .x-tab-navigation-top-tr,.x-tab-over .x-tab-navigation-top-br,.x-tab-over .x-tab-navigation-top-tc,.x-tab-over .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-over-corners.gif)}.x-tab-over .x-tab-navigation-top-ml,.x-tab-over .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-over-sides.gif)}.x-tab-over .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-over-fbg.gif)}.x-tab-focus .x-tab-navigation-top-tl,.x-tab-focus .x-tab-navigation-top-bl,.x-tab-focus .x-tab-navigation-top-tr,.x-tab-focus .x-tab-navigation-top-br,.x-tab-focus .x-tab-navigation-top-tc,.x-tab-focus .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-focus-corners.gif)}.x-tab-focus .x-tab-navigation-top-ml,.x-tab-focus .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-focus-sides.gif)}.x-tab-focus .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-top-tl,.x-tab-focus.x-tab-over .x-tab-navigation-top-bl,.x-tab-focus.x-tab-over .x-tab-navigation-top-tr,.x-tab-focus.x-tab-over .x-tab-navigation-top-br,.x-tab-focus.x-tab-over .x-tab-navigation-top-tc,.x-tab-focus.x-tab-over .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-top-ml,.x-tab-focus.x-tab-over .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-navigation-top-tl,.x-tab.x-tab-active .x-tab-navigation-top-bl,.x-tab.x-tab-active .x-tab-navigation-top-tr,.x-tab.x-tab-active .x-tab-navigation-top-br,.x-tab.x-tab-active .x-tab-navigation-top-tc,.x-tab.x-tab-active .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-active-corners.gif)}.x-tab.x-tab-active .x-tab-navigation-top-ml,.x-tab.x-tab-active .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-active-sides.gif)}.x-tab.x-tab-active .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-top-tl,.x-tab-focus.x-tab-active .x-tab-navigation-top-bl,.x-tab-focus.x-tab-active .x-tab-navigation-top-tr,.x-tab-focus.x-tab-active .x-tab-navigation-top-br,.x-tab-focus.x-tab-active .x-tab-navigation-top-tc,.x-tab-focus.x-tab-active .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-top-ml,.x-tab-focus.x-tab-active .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-navigation-top-tl,.x-tab.x-tab-disabled .x-tab-navigation-top-bl,.x-tab.x-tab-disabled .x-tab-navigation-top-tr,.x-tab.x-tab-disabled .x-tab-navigation-top-br,.x-tab.x-tab-disabled .x-tab-navigation-top-tc,.x-tab.x-tab-disabled .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-navigation-top-ml,.x-tab.x-tab-disabled .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-disabled-fbg.gif)}.x-tab-over .x-tab-navigation-right-tl,.x-tab-over .x-tab-navigation-right-bl,.x-tab-over .x-tab-navigation-right-tr,.x-tab-over .x-tab-navigation-right-br,.x-tab-over .x-tab-navigation-right-tc,.x-tab-over .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-over-corners.gif)}.x-tab-over .x-tab-navigation-right-ml,.x-tab-over .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-over-sides.gif)}.x-tab-over .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-over-fbg.gif)}.x-tab-focus .x-tab-navigation-right-tl,.x-tab-focus .x-tab-navigation-right-bl,.x-tab-focus .x-tab-navigation-right-tr,.x-tab-focus .x-tab-navigation-right-br,.x-tab-focus .x-tab-navigation-right-tc,.x-tab-focus .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-focus-corners.gif)}.x-tab-focus .x-tab-navigation-right-ml,.x-tab-focus .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-focus-sides.gif)}.x-tab-focus .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-right-tl,.x-tab-focus.x-tab-over .x-tab-navigation-right-bl,.x-tab-focus.x-tab-over .x-tab-navigation-right-tr,.x-tab-focus.x-tab-over .x-tab-navigation-right-br,.x-tab-focus.x-tab-over .x-tab-navigation-right-tc,.x-tab-focus.x-tab-over .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-right-ml,.x-tab-focus.x-tab-over .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-navigation-right-tl,.x-tab.x-tab-active .x-tab-navigation-right-bl,.x-tab.x-tab-active .x-tab-navigation-right-tr,.x-tab.x-tab-active .x-tab-navigation-right-br,.x-tab.x-tab-active .x-tab-navigation-right-tc,.x-tab.x-tab-active .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-active-corners.gif)}.x-tab.x-tab-active .x-tab-navigation-right-ml,.x-tab.x-tab-active .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-active-sides.gif)}.x-tab.x-tab-active .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-right-tl,.x-tab-focus.x-tab-active .x-tab-navigation-right-bl,.x-tab-focus.x-tab-active .x-tab-navigation-right-tr,.x-tab-focus.x-tab-active .x-tab-navigation-right-br,.x-tab-focus.x-tab-active .x-tab-navigation-right-tc,.x-tab-focus.x-tab-active .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-right-ml,.x-tab-focus.x-tab-active .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-navigation-right-tl,.x-tab.x-tab-disabled .x-tab-navigation-right-bl,.x-tab.x-tab-disabled .x-tab-navigation-right-tr,.x-tab.x-tab-disabled .x-tab-navigation-right-br,.x-tab.x-tab-disabled .x-tab-navigation-right-tc,.x-tab.x-tab-disabled .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-navigation-right-ml,.x-tab.x-tab-disabled .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-disabled-fbg.gif)}.x-tab-over .x-tab-navigation-bottom-tl,.x-tab-over .x-tab-navigation-bottom-bl,.x-tab-over .x-tab-navigation-bottom-tr,.x-tab-over .x-tab-navigation-bottom-br,.x-tab-over .x-tab-navigation-bottom-tc,.x-tab-over .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-over-corners.gif)}.x-tab-over .x-tab-navigation-bottom-ml,.x-tab-over .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-over-sides.gif)}.x-tab-over .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-over-fbg.gif)}.x-tab-focus .x-tab-navigation-bottom-tl,.x-tab-focus .x-tab-navigation-bottom-bl,.x-tab-focus .x-tab-navigation-bottom-tr,.x-tab-focus .x-tab-navigation-bottom-br,.x-tab-focus .x-tab-navigation-bottom-tc,.x-tab-focus .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-focus-corners.gif)}.x-tab-focus .x-tab-navigation-bottom-ml,.x-tab-focus .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-focus-sides.gif)}.x-tab-focus .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-bottom-tl,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-bl,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-tr,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-br,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-tc,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-bottom-ml,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-navigation-bottom-tl,.x-tab.x-tab-active .x-tab-navigation-bottom-bl,.x-tab.x-tab-active .x-tab-navigation-bottom-tr,.x-tab.x-tab-active .x-tab-navigation-bottom-br,.x-tab.x-tab-active .x-tab-navigation-bottom-tc,.x-tab.x-tab-active .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-active-corners.gif)}.x-tab.x-tab-active .x-tab-navigation-bottom-ml,.x-tab.x-tab-active .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-active-sides.gif)}.x-tab.x-tab-active .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-bottom-tl,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-bl,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-tr,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-br,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-tc,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-bottom-ml,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-navigation-bottom-tl,.x-tab.x-tab-disabled .x-tab-navigation-bottom-bl,.x-tab.x-tab-disabled .x-tab-navigation-bottom-tr,.x-tab.x-tab-disabled .x-tab-navigation-bottom-br,.x-tab.x-tab-disabled .x-tab-navigation-bottom-tc,.x-tab.x-tab-disabled .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-navigation-bottom-ml,.x-tab.x-tab-disabled .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-disabled-fbg.gif)}.x-tab-over .x-tab-navigation-left-tl,.x-tab-over .x-tab-navigation-left-bl,.x-tab-over .x-tab-navigation-left-tr,.x-tab-over .x-tab-navigation-left-br,.x-tab-over .x-tab-navigation-left-tc,.x-tab-over .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-over-corners.gif)}.x-tab-over .x-tab-navigation-left-ml,.x-tab-over .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-over-sides.gif)}.x-tab-over .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-over-fbg.gif)}.x-tab-focus .x-tab-navigation-left-tl,.x-tab-focus .x-tab-navigation-left-bl,.x-tab-focus .x-tab-navigation-left-tr,.x-tab-focus .x-tab-navigation-left-br,.x-tab-focus .x-tab-navigation-left-tc,.x-tab-focus .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-focus-corners.gif)}.x-tab-focus .x-tab-navigation-left-ml,.x-tab-focus .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-focus-sides.gif)}.x-tab-focus .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-left-tl,.x-tab-focus.x-tab-over .x-tab-navigation-left-bl,.x-tab-focus.x-tab-over .x-tab-navigation-left-tr,.x-tab-focus.x-tab-over .x-tab-navigation-left-br,.x-tab-focus.x-tab-over .x-tab-navigation-left-tc,.x-tab-focus.x-tab-over .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-left-ml,.x-tab-focus.x-tab-over .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-navigation-left-tl,.x-tab.x-tab-active .x-tab-navigation-left-bl,.x-tab.x-tab-active .x-tab-navigation-left-tr,.x-tab.x-tab-active .x-tab-navigation-left-br,.x-tab.x-tab-active .x-tab-navigation-left-tc,.x-tab.x-tab-active .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-active-corners.gif)}.x-tab.x-tab-active .x-tab-navigation-left-ml,.x-tab.x-tab-active .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-active-sides.gif)}.x-tab.x-tab-active .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-left-tl,.x-tab-focus.x-tab-active .x-tab-navigation-left-bl,.x-tab-focus.x-tab-active .x-tab-navigation-left-tr,.x-tab-focus.x-tab-active .x-tab-navigation-left-br,.x-tab-focus.x-tab-active .x-tab-navigation-left-tc,.x-tab-focus.x-tab-active .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-left-ml,.x-tab-focus.x-tab-active .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-navigation-left-tl,.x-tab.x-tab-disabled .x-tab-navigation-left-bl,.x-tab.x-tab-disabled .x-tab-navigation-left-tr,.x-tab.x-tab-disabled .x-tab-navigation-left-br,.x-tab.x-tab-disabled .x-tab-navigation-left-tc,.x-tab.x-tab-disabled .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-navigation-left-ml,.x-tab.x-tab-disabled .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-disabled-fbg.gif)}.x-tab-navigation-tl,.x-tab-navigation-bl,.x-tab-navigation-tr,.x-tab-navigation-br{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)}.x-tab-navigation .x-tab-close-btn{top:2px;right:2px;width:12px;height:12px;background:url(images/tab/tab-navigation-close.png) 0 0}.x-tab-navigation .x-tab-close-btn-over{background-position:-12px 0}.x-tab-navigation .x-tab-close-btn-pressed{background-position:-24px 0}.x-tab-navigation.x-tab-active .x-tab-close-btn{background-position:0 -12px}.x-tab-navigation.x-tab-active .x-tab-close-btn-over{background-position:-12px -12px}.x-tab-navigation.x-tab-active .x-tab-close-btn-pressed{background-position:-24px -12px}.x-tab-navigation.x-tab-disabled .x-tab-close-btn{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3;background-position:0 0}.x-tab-closable.x-tab-navigation .x-tab-button{padding-right:15px}.x-tab-bar-navigation{background-color:#404040}.x-tab-bar-navigation-top > .x-tab-bar-body-navigation{padding:0}.x-tab-bar-navigation-bottom > .x-tab-bar-body-navigation{padding:0 0 0 0}.x-tab-bar-navigation-left > .x-tab-bar-body-navigation{padding:0 0 0 0}.x-tab-bar-navigation-right > .x-tab-bar-body-navigation{padding:0 0 0 0}.x-tab-bar-plain.x-tab-bar-navigation-top > .x-tab-bar-body-navigation{padding:6px}.x-tab-bar-plain.x-tab-bar-navigation-bottom > .x-tab-bar-body-navigation{padding:6px 6px 6px 6px}.x-tab-bar-plain.x-tab-bar-navigation-left > .x-tab-bar-body-navigation{padding:6px 6px 6px 6px}.x-tab-bar-plain.x-tab-bar-navigation-right > .x-tab-bar-body-navigation{padding:6px 6px 6px 6px}.x-tab-bar-plain.x-tab-bar-navigation-horizontal{border-top-color:transparent;border-bottom-color:transparent;border-left-width:0;border-right-width:0}.x-tab-bar-plain.x-tab-bar-navigation-vertical{border-right-color:transparent;border-left-color:transparent;border-top-width:0;border-bottom-width:0}.x-tab-bar-horizontal > .x-tab-bar-body-navigation{min-height:72px}.x-ie8m .x-tab-bar-horizontal > .x-tab-bar-body-navigation{min-height:72px}.x-tab-bar-vertical > .x-tab-bar-body-navigation{min-width:72px}.x-ie8m .x-tab-bar-vertical > .x-tab-bar-body-navigation{min-width:72px}.x-tab-bar-navigation-scroller .x-box-scroller-body-horizontal{margin-left:24px}.x-tab-bar-navigation-vertical-scroller .x-box-scroller-body-vertical{margin-top:24px}.x-box-scroller-tab-bar-navigation{cursor:pointer;color:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-box-scroller-tab-bar-navigation.x-box-scroller-hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-box-scroller-tab-bar-navigation.x-box-scroller-pressed{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";opacity:0.7}.x-box-scroller-tab-bar-navigation.x-box-scroller-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";opacity:0.25;cursor:default}.x-box-scroller-tab-bar-navigation.x-box-scroller-left,.x-box-scroller-tab-bar-navigation.x-box-scroller-right{width:24px;height:24px;top:50%;margin-top:-12px}.x-box-scroller-tab-bar-navigation.x-box-scroller-left{margin-left:0;margin-right:0;margin-bottom:0;background-image:url(images/tab-bar/navigation-scroll-left.png)}.x-box-scroller-tab-bar-navigation.x-box-scroller-right{margin-left:0;margin-right:0;margin-bottom:0;background-image:url(images/tab-bar/navigation-scroll-right.png)}.x-box-scroller-tab-bar-navigation.x-box-scroller-top,.x-box-scroller-tab-bar-navigation.x-box-scroller-bottom{height:24px;width:24px;left:50%;margin-left:-12px}.x-box-scroller-tab-bar-navigation.x-box-scroller-top{margin-top:0;margin-right:0;margin-bottom:0;background-image:url(images/tab-bar/navigation-scroll-top.png)}.x-box-scroller-tab-bar-navigation.x-box-scroller-bottom{margin-top:0;margin-right:0;margin-bottom:0;background-image:url(images/tab-bar/navigation-scroll-bottom.png)}.x-tab-bar-plain.x-tab-bar-navigation-scroller .x-box-scroller-body-horizontal{margin-left:18px}.x-tab-bar-plain.x-tab-bar-navigation-vertical-scroller .x-box-scroller-body-vertical{margin-top:18px}.x-tab-bar-plain .x-box-scroller-tab-bar-navigation{color:#cfcfcf}.x-tab-bar-navigation-top .x-box-scroller-tab-bar-navigation{margin-top:-12px}.x-tab-bar-navigation-right .x-box-scroller-tab-bar-navigation{margin-left:-12px}.x-tab-bar-navigation-bottom .x-box-scroller-tab-bar-navigation{margin-top:-12px}.x-tab-bar-navigation-left .x-box-scroller-tab-bar-navigation{margin-left:-12px}.x-box-scroller-tab-bar-navigation{background-color:#404040}.x-box-scroller-tab-bar-navigation .x-ie8 .x-box-scroller-plain{background-color:#fff}.x-box-scroller-plain.x-box-scroller-tab-bar-navigation.x-box-scroller-left{background-image:url(images/tab-bar/navigation-plain-scroll-left.png)}.x-box-scroller-plain.x-box-scroller-tab-bar-navigation.x-box-scroller-right{background-image:url(images/tab-bar/navigation-plain-scroll-right.png)}.x-box-scroller-plain.x-box-scroller-tab-bar-navigation.x-box-scroller-top{background-image:url(images/tab-bar/navigation-plain-scroll-top.png)}.x-box-scroller-plain.x-box-scroller-tab-bar-navigation.x-box-scroller-bottom{background-image:url(images/tab-bar/navigation-plain-scroll-bottom.png)}.x-panel-navigation{border-color:#f5f5f5;padding:0}.x-panel-header-navigation{font-size:20px;border:1px solid #f5f5f5}.x-panel-header-navigation .x-tool-img{background-color:#157fcc}.x-panel-header-navigation-horizontal{padding:0}.x-panel-header-navigation-horizontal .x-panel-header-navigation-tab-bar{margin-top:0;margin-bottom:0}.x-panel-header-navigation-vertical{padding:0 0 0 0}.x-panel-header-navigation-vertical .x-panel-header-navigation-tab-bar{margin-right:0;margin-left:0}.x-panel-header-title-navigation{color:#fff;font-size:20px;font-weight:bold;font-family:helvetica, arial, verdana, sans-serif;line-height:24px;margin:36px}.x-panel-header-title-navigation > .x-title-text-navigation{text-transform:none;padding:0}.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-top{height:39px;padding-bottom:15px}.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-right{width:39px;padding-left:15px}.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-bottom{height:39px;padding-top:15px}.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-left{width:39px;padding-right:15px}.x-panel-header-title-navigation > .x-title-icon-wrap-navigation > .x-title-icon-navigation{width:24px;height:24px;font-size:24px;color:#fff;background-position:center center}.x-ie8 .x-panel-header-title-navigation > .x-title-icon-wrap-navigation > .x-title-icon-navigation{color:#fff}.x-panel-body-navigation{background:#fff;border-color:#cfcfcf;color:#000;font-size:13px;font-weight:300;font-family:helvetica, arial, verdana, sans-serif;border-width:1px;border-style:solid}.x-panel-header-navigation{background-image:none;background-color:#157fcc}.x-panel-header-navigation-vertical{background-image:none;background-color:#157fcc}.x-panel .x-panel-header-navigation-collapsed-border-top{border-bottom-width:1px !important}.x-panel .x-panel-header-navigation-collapsed-border-right{border-left-width:1px !important}.x-panel .x-panel-header-navigation-collapsed-border-bottom{border-top-width:1px !important}.x-panel .x-panel-header-navigation-collapsed-border-left{border-right-width:1px !important}.x-panel-header-navigation-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-panel-header-navigation-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-panel-header-navigation-vertical .x-tool-after-title{margin:6px 0 0 0}.x-panel-header-navigation-vertical .x-tool-before-title{margin:0 0 6px 0}.x-panel-header-navigation .x-tool-focus{outline:1px solid #157fcc;outline-offset:1px}.x-ie8 .x-panel-header-navigation .x-tool-focus{outline:none}.x-ie8 .x-panel-header-navigation .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #157fcc;pointer-events:none}.x-panel-navigation-resizable .x-panel-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-panel-navigation-outer-border-l{border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-navigation-outer-border-b{border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-navigation-outer-border-bl{border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-navigation-outer-border-r{border-right-color:#f5f5f5 !important;border-right-width:1px !important}.x-panel-navigation-outer-border-rl{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-navigation-outer-border-rb{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-navigation-outer-border-rbl{border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-navigation-outer-border-t{border-top-color:#f5f5f5 !important;border-top-width:1px !important}.x-panel-navigation-outer-border-tl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-navigation-outer-border-tb{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-navigation-outer-border-tbl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-navigation-outer-border-tr{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important}.x-panel-navigation-outer-border-trl{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-left-color:#f5f5f5 !important;border-left-width:1px !important}.x-panel-navigation-outer-border-trb{border-top-color:#f5f5f5 !important;border-top-width:1px !important;border-right-color:#f5f5f5 !important;border-right-width:1px !important;border-bottom-color:#f5f5f5 !important;border-bottom-width:1px !important}.x-panel-navigation-outer-border-trbl{border-color:#f5f5f5 !important;border-width:1px !important}.x-title-icon-navigation{font-family:FontAwesome;color:#fff;font-size:24px;line-height:24px}.x-tab-icon-el-navigation{font-family:FontAwesome;color:#acacac}.x-tab-over .x-tab-icon-el-navigation{color:#c4c4c4}.x-tab-active .x-tab-icon-el-navigation{color:#fff}.x-panel-header-title-navigation > .x-title-text-navigation:after{top:30px;right:-24px} \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/resources/Readme.md b/frontend/build/production/CatalogBuilder/resources/Readme.md new file mode 100644 index 000000000..4d524a7b7 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/Readme.md @@ -0,0 +1,4 @@ +# CatalogBuilder/resources + +This folder contains resources (such as images) needed by the application. This file can +be removed if not needed. diff --git a/frontend/build/production/CatalogBuilder/resources/common/Readme.md b/frontend/build/production/CatalogBuilder/resources/common/Readme.md new file mode 100644 index 000000000..26bd852f7 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/common/Readme.md @@ -0,0 +1,3 @@ +# common/resources + +This folder contains static resources (typically an `"images"` folder as well). diff --git a/frontend/build/production/CatalogBuilder/resources/common/des-portal-logo.png b/frontend/build/production/CatalogBuilder/resources/common/des-portal-logo.png new file mode 100644 index 000000000..d3729783d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/des-portal-logo.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/accept.png b/frontend/build/production/CatalogBuilder/resources/common/images/accept.png new file mode 100644 index 000000000..89c8129a4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/accept.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/add.png b/frontend/build/production/CatalogBuilder/resources/common/images/add.png new file mode 100644 index 000000000..6332fefea Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/add.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/application_form_magnify.png b/frontend/build/production/CatalogBuilder/resources/common/images/application_form_magnify.png new file mode 100644 index 000000000..7b7fbd17e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/application_form_magnify.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/application_side_list.png b/frontend/build/production/CatalogBuilder/resources/common/images/application_side_list.png new file mode 100644 index 000000000..248eaf1ac Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/application_side_list.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/application_view_detail.png b/frontend/build/production/CatalogBuilder/resources/common/images/application_view_detail.png new file mode 100644 index 000000000..aba044bbc Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/application_view_detail.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/application_view_icons.png b/frontend/build/production/CatalogBuilder/resources/common/images/application_view_icons.png new file mode 100644 index 000000000..6a93cdaa7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/application_view_icons.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/application_view_list.png b/frontend/build/production/CatalogBuilder/resources/common/images/application_view_list.png new file mode 100644 index 000000000..acc30b853 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/application_view_list.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/arrow_down_wb_16x16.png b/frontend/build/production/CatalogBuilder/resources/common/images/arrow_down_wb_16x16.png new file mode 100644 index 000000000..e35ce03a2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/arrow_down_wb_16x16.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/arrow_in.png b/frontend/build/production/CatalogBuilder/resources/common/images/arrow_in.png new file mode 100644 index 000000000..745c65134 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/arrow_in.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/arrow_out.png b/frontend/build/production/CatalogBuilder/resources/common/images/arrow_out.png new file mode 100644 index 000000000..2e9bc42be Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/arrow_out.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/arrow_right.png b/frontend/build/production/CatalogBuilder/resources/common/images/arrow_right.png new file mode 100644 index 000000000..afe837e75 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/arrow_right.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/cancel.png b/frontend/build/production/CatalogBuilder/resources/common/images/cancel.png new file mode 100644 index 000000000..c149c2bc0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/cancel.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/chart_curve.png b/frontend/build/production/CatalogBuilder/resources/common/images/chart_curve.png new file mode 100644 index 000000000..01e933a61 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/chart_curve.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/chart_line.png b/frontend/build/production/CatalogBuilder/resources/common/images/chart_line.png new file mode 100644 index 000000000..85020f320 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/chart_line.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/clear_selection.png b/frontend/build/production/CatalogBuilder/resources/common/images/clear_selection.png new file mode 100644 index 000000000..b69dec6d2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/clear_selection.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/comment_add.png b/frontend/build/production/CatalogBuilder/resources/common/images/comment_add.png new file mode 100644 index 000000000..75e78dede Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/comment_add.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/comment_delete.png b/frontend/build/production/CatalogBuilder/resources/common/images/comment_delete.png new file mode 100644 index 000000000..643fdbe8d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/comment_delete.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/comment_edit.png b/frontend/build/production/CatalogBuilder/resources/common/images/comment_edit.png new file mode 100644 index 000000000..73db110df Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/comment_edit.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/comments.png b/frontend/build/production/CatalogBuilder/resources/common/images/comments.png new file mode 100644 index 000000000..39433cf78 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/comments.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/crop.png b/frontend/build/production/CatalogBuilder/resources/common/images/crop.png new file mode 100644 index 000000000..61aa7bdb4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/crop.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/crosshair.png b/frontend/build/production/CatalogBuilder/resources/common/images/crosshair.png new file mode 100644 index 000000000..a9ce1bcda Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/crosshair.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/crosshair_delete.png b/frontend/build/production/CatalogBuilder/resources/common/images/crosshair_delete.png new file mode 100644 index 000000000..c15d1f3e8 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/crosshair_delete.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/crosshair_eye.png b/frontend/build/production/CatalogBuilder/resources/common/images/crosshair_eye.png new file mode 100644 index 000000000..85dbacb21 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/crosshair_eye.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/cutout_placeholder.png b/frontend/build/production/CatalogBuilder/resources/common/images/cutout_placeholder.png new file mode 100644 index 000000000..79087323a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/cutout_placeholder.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/database.png b/frontend/build/production/CatalogBuilder/resources/common/images/database.png new file mode 100644 index 000000000..3d09261a2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/database.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/database_lightning.png b/frontend/build/production/CatalogBuilder/resources/common/images/database_lightning.png new file mode 100644 index 000000000..d9eefc225 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/database_lightning.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/database_table.png b/frontend/build/production/CatalogBuilder/resources/common/images/database_table.png new file mode 100644 index 000000000..693709cbc Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/database_table.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/delete.png b/frontend/build/production/CatalogBuilder/resources/common/images/delete.png new file mode 100644 index 000000000..08f249365 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/delete.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/disk.png b/frontend/build/production/CatalogBuilder/resources/common/images/disk.png new file mode 100644 index 000000000..99d532e8b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/disk.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/download-icon.png b/frontend/build/production/CatalogBuilder/resources/common/images/download-icon.png new file mode 100644 index 000000000..5c11e033a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/download-icon.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/download_table.png b/frontend/build/production/CatalogBuilder/resources/common/images/download_table.png new file mode 100644 index 000000000..1c856cd61 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/download_table.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/error.png b/frontend/build/production/CatalogBuilder/resources/common/images/error.png new file mode 100644 index 000000000..628cf2dae Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/error.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/estatistica.png b/frontend/build/production/CatalogBuilder/resources/common/images/estatistica.png new file mode 100644 index 000000000..a87436ce9 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/estatistica.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/exclamation.gif b/frontend/build/production/CatalogBuilder/resources/common/images/exclamation.gif new file mode 100644 index 000000000..ea31a3060 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/exclamation.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/exclamation.png b/frontend/build/production/CatalogBuilder/resources/common/images/exclamation.png new file mode 100644 index 000000000..c37bd062e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/exclamation.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/filter.png b/frontend/build/production/CatalogBuilder/resources/common/images/filter.png new file mode 100644 index 000000000..7170f7699 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/filter.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/folder_table.png b/frontend/build/production/CatalogBuilder/resources/common/images/folder_table.png new file mode 100644 index 000000000..473cee355 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/folder_table.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/help.png b/frontend/build/production/CatalogBuilder/resources/common/images/help.png new file mode 100644 index 000000000..5c870176d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/help.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/help_desk.png b/frontend/build/production/CatalogBuilder/resources/common/images/help_desk.png new file mode 100644 index 000000000..b73f3e3ac Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/help_desk.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/help_icon.png b/frontend/build/production/CatalogBuilder/resources/common/images/help_icon.png new file mode 100644 index 000000000..a45ff36fc Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/help_icon.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/icon-share.png b/frontend/build/production/CatalogBuilder/resources/common/images/icon-share.png new file mode 100644 index 000000000..c43dd5c3f Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/icon-share.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/image_link.png b/frontend/build/production/CatalogBuilder/resources/common/images/image_link.png new file mode 100644 index 000000000..4bdb3541e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/image_link.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/images.png b/frontend/build/production/CatalogBuilder/resources/common/images/images.png new file mode 100644 index 000000000..184860d1e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/images.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/information.png b/frontend/build/production/CatalogBuilder/resources/common/images/information.png new file mode 100644 index 000000000..12cd1aef9 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/information.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/layers.png b/frontend/build/production/CatalogBuilder/resources/common/images/layers.png new file mode 100644 index 000000000..00818f636 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/layers.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/link.png b/frontend/build/production/CatalogBuilder/resources/common/images/link.png new file mode 100644 index 000000000..25eacb7c2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/link.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/loading.gif b/frontend/build/production/CatalogBuilder/resources/common/images/loading.gif new file mode 100644 index 000000000..e846e1d6c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/loading.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/lupa.png b/frontend/build/production/CatalogBuilder/resources/common/images/lupa.png new file mode 100644 index 000000000..1ef060555 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/lupa.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/magnifier.png b/frontend/build/production/CatalogBuilder/resources/common/images/magnifier.png new file mode 100644 index 000000000..cf3d97f75 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/magnifier.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/map.png b/frontend/build/production/CatalogBuilder/resources/common/images/map.png new file mode 100644 index 000000000..f90ef25ec Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/map.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/map_magnify.png b/frontend/build/production/CatalogBuilder/resources/common/images/map_magnify.png new file mode 100644 index 000000000..7184c9ddf Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/map_magnify.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_arrow_down_16x16.png b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_arrow_down_16x16.png new file mode 100644 index 000000000..468ed1dc6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_arrow_down_16x16.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_blue.png b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_blue.png new file mode 100644 index 000000000..bb0b95a1e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_blue.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_buble_green-2x.png b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_buble_green-2x.png new file mode 100644 index 000000000..a4dd79210 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_buble_green-2x.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_buble_green.png b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_buble_green.png new file mode 100644 index 000000000..3611cb8b5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_buble_green.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_comment-pos.png b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_comment-pos.png new file mode 100644 index 000000000..08e03f003 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_comment-pos.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_comment.png b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_comment.png new file mode 100644 index 000000000..3b1d3138f Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_comment.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_favorite.png b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_favorite.png new file mode 100644 index 000000000..5709e2e68 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_favorite.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_green.png b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_green.png new file mode 100644 index 000000000..86ecf24b4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_green.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_red.png b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_red.png new file mode 100644 index 000000000..938fe0e55 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mapmaker_red.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mappin_blue.png b/frontend/build/production/CatalogBuilder/resources/common/images/mappin_blue.png new file mode 100644 index 000000000..eb514023e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mappin_blue.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mappin_green.png b/frontend/build/production/CatalogBuilder/resources/common/images/mappin_green.png new file mode 100644 index 000000000..5831e65c7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mappin_green.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mappin_orange.png b/frontend/build/production/CatalogBuilder/resources/common/images/mappin_orange.png new file mode 100644 index 000000000..ed9947363 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mappin_orange.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mappin_red.png b/frontend/build/production/CatalogBuilder/resources/common/images/mappin_red.png new file mode 100644 index 000000000..07c8f465e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mappin_red.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_blue.png b/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_blue.png new file mode 100644 index 000000000..4a585c0a0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_blue.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_green.png b/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_green.png new file mode 100644 index 000000000..7f5426f1a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_green.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_orange.png b/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_orange.png new file mode 100644 index 000000000..e3f7bd70b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_orange.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_red.png b/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_red.png new file mode 100644 index 000000000..c31eaffa4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/mappoint_red.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/marker_green_16x16.png b/frontend/build/production/CatalogBuilder/resources/common/images/marker_green_16x16.png new file mode 100644 index 000000000..714e009c4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/marker_green_16x16.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/menu_black.png b/frontend/build/production/CatalogBuilder/resources/common/images/menu_black.png new file mode 100644 index 000000000..1bfa06711 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/menu_black.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/nvo_32x16.png b/frontend/build/production/CatalogBuilder/resources/common/images/nvo_32x16.png new file mode 100644 index 000000000..7ae998420 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/nvo_32x16.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/page_code.png b/frontend/build/production/CatalogBuilder/resources/common/images/page_code.png new file mode 100644 index 000000000..f7ea90419 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/page_code.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/page_save.png b/frontend/build/production/CatalogBuilder/resources/common/images/page_save.png new file mode 100644 index 000000000..caea546af Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/page_save.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/page_white_acrobat.png b/frontend/build/production/CatalogBuilder/resources/common/images/page_white_acrobat.png new file mode 100644 index 000000000..8f8095e46 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/page_white_acrobat.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/page_white_text.png b/frontend/build/production/CatalogBuilder/resources/common/images/page_white_text.png new file mode 100644 index 000000000..813f712f7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/page_white_text.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/pencil.png b/frontend/build/production/CatalogBuilder/resources/common/images/pencil.png new file mode 100644 index 000000000..0bfecd50e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/pencil.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/photo_link.png b/frontend/build/production/CatalogBuilder/resources/common/images/photo_link.png new file mode 100644 index 000000000..e6bb35fbf Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/photo_link.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/photos.png b/frontend/build/production/CatalogBuilder/resources/common/images/photos.png new file mode 100644 index 000000000..8836fe6c0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/photos.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/picture_link.png b/frontend/build/production/CatalogBuilder/resources/common/images/picture_link.png new file mode 100644 index 000000000..42dca7440 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/picture_link.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/picture_save.png b/frontend/build/production/CatalogBuilder/resources/common/images/picture_save.png new file mode 100644 index 000000000..777fb5d2e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/picture_save.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/rating.png b/frontend/build/production/CatalogBuilder/resources/common/images/rating.png new file mode 100644 index 000000000..94a24d60e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/rating.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/reset.png b/frontend/build/production/CatalogBuilder/resources/common/images/reset.png new file mode 100644 index 000000000..77e12d1c6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/reset.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/saved.png b/frontend/build/production/CatalogBuilder/resources/common/images/saved.png new file mode 100644 index 000000000..a9925a06a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/saved.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/saving.gif b/frontend/build/production/CatalogBuilder/resources/common/images/saving.gif new file mode 100644 index 000000000..122b0b48f Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/saving.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/script.png b/frontend/build/production/CatalogBuilder/resources/common/images/script.png new file mode 100644 index 000000000..0f9ed4d48 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/script.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/script_code_red.png b/frontend/build/production/CatalogBuilder/resources/common/images/script_code_red.png new file mode 100644 index 000000000..8fcf0f09a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/script_code_red.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/section.gif b/frontend/build/production/CatalogBuilder/resources/common/images/section.gif new file mode 100644 index 000000000..b0c0d0343 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/section.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/selection_delete.png b/frontend/build/production/CatalogBuilder/resources/common/images/selection_delete.png new file mode 100644 index 000000000..bf62a03d7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/selection_delete.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/star.png b/frontend/build/production/CatalogBuilder/resources/common/images/star.png new file mode 100644 index 000000000..b88c85789 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/star.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/table_gear.png b/frontend/build/production/CatalogBuilder/resources/common/images/table_gear.png new file mode 100644 index 000000000..cfc2702ac Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/table_gear.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/text_clear.png b/frontend/build/production/CatalogBuilder/resources/common/images/text_clear.png new file mode 100644 index 000000000..1908d3c19 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/text_clear.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/common/images/text_columns.png b/frontend/build/production/CatalogBuilder/resources/common/images/text_columns.png new file mode 100644 index 000000000..97b2e0353 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/common/images/text_columns.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/des-portal-logo.png b/frontend/build/production/CatalogBuilder/resources/des-portal-logo.png new file mode 100644 index 000000000..d3729783d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/des-portal-logo.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/des-portal-logo.svg b/frontend/build/production/CatalogBuilder/resources/des-portal-logo.svg new file mode 100644 index 000000000..d12578e08 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/des-portal-logo.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/Read Me.txt b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/Read Me.txt new file mode 100644 index 000000000..469bc9908 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/Read Me.txt @@ -0,0 +1,5 @@ +Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures. + +You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects. + +You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu > Manage Projects) to retrieve your icon selection. diff --git a/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/demo-files/demo.css b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/demo-files/demo.css new file mode 100644 index 000000000..20a31ee16 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/demo-files/demo.css @@ -0,0 +1,150 @@ +body { + padding: 0; + margin: 0; + font-family: sans-serif; + font-size: 1em; + line-height: 1.5; + color: #555; + background: #fff; +} +h1 { + font-size: 1.5em; + font-weight: normal; +} +small { + font-size: .66666667em; +} +a { + color: #e74c3c; + text-decoration: none; +} +a:hover, a:focus { + box-shadow: 0 1px #e74c3c; +} +.bshadow0, input { + box-shadow: inset 0 -2px #e7e7e7; +} +input:hover { + box-shadow: inset 0 -2px #ccc; +} +input, fieldset { + font-size: 1em; + margin: 0; + padding: 0; + border: 0; +} +input { + color: inherit; + line-height: 1.5; + height: 1.5em; + padding: .25em 0; +} +input:focus { + outline: none; + box-shadow: inset 0 -2px #449fdb; +} +.glyph { + font-size: 16px; + width: 15em; + padding-bottom: 1em; + margin-right: 4em; + margin-bottom: 1em; + float: left; + overflow: hidden; +} +.liga { + width: 80%; + width: calc(100% - 2.5em); +} +.talign-right { + text-align: right; +} +.talign-center { + text-align: center; +} +.bgc1 { + background: #f1f1f1; +} +.fgc1 { + color: #999; +} +.fgc0 { + color: #000; +} +p { + margin-top: 1em; + margin-bottom: 1em; +} +.mvm { + margin-top: .75em; + margin-bottom: .75em; +} +.mtn { + margin-top: 0; +} +.mtl, .mal { + margin-top: 1.5em; +} +.mbl, .mal { + margin-bottom: 1.5em; +} +.mal, .mhl { + margin-left: 1.5em; + margin-right: 1.5em; +} +.mhmm { + margin-left: 1em; + margin-right: 1em; +} +.mls { + margin-left: .25em; +} +.ptl { + padding-top: 1.5em; +} +.pbs, .pvs { + padding-bottom: .25em; +} +.pvs, .pts { + padding-top: .25em; +} +.unit { + float: left; +} +.unitRight { + float: right; +} +.size1of2 { + width: 50%; +} +.size1of1 { + width: 100%; +} +.clearfix:before, .clearfix:after { + content: " "; + display: table; +} +.clearfix:after { + clear: both; +} +.hidden-true { + display: none; +} +.textbox0 { + width: 3em; + background: #f1f1f1; + padding: .25em .5em; + line-height: 1.5; + height: 1.5em; +} +#testDrive { + display: block; + padding-top: 24px; + line-height: 1.5; +} +.fs0 { + font-size: 16px; +} +.fs1 { + font-size: 32px; +} diff --git a/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/demo-files/demo.js b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/demo-files/demo.js new file mode 100644 index 000000000..2f81d2900 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/demo-files/demo.js @@ -0,0 +1,30 @@ +if (!('boxShadow' in document.body.style)) { + document.body.setAttribute('class', 'noBoxShadow'); +} + +document.body.addEventListener("click", function(e) { + var target = e.target; + if (target.tagName === "INPUT" && + target.getAttribute('class').indexOf('liga') === -1) { + target.select(); + } +}); + +(function() { + var fontSize = document.getElementById('fontSize'), + testDrive = document.getElementById('testDrive'), + testText = document.getElementById('testText'); + function updateTest() { + testDrive.innerHTML = testText.value || String.fromCharCode(160); + if (window.icomoonLiga) { + window.icomoonLiga(testDrive); + } + } + function updateSize() { + testDrive.style.fontSize = fontSize.value + 'px'; + } + fontSize.addEventListener('change', updateSize, false); + testText.addEventListener('input', updateTest, false); + testText.addEventListener('change', updateTest, false); + updateSize(); +}()); diff --git a/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/demo.html b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/demo.html new file mode 100644 index 000000000..09faf8733 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/demo.html @@ -0,0 +1,231 @@ + + + + + IcoMoon Demo + + + + + +
    +

    Font Name: ext-watermark (Glyphs: 12)

    +
    +
    +

    Grid Size: Unknown

    +
    +
    + + + + icon-extjs-beta-left +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-extjs-beta-right +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-extjs-trial-left +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-extjs-trial-right +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-left-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-left-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-right-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-right-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-left-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-left-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-right-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-right-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    + + +
    +

    Font Test Drive

    + + + +
      +
    +
    + +
    +

    Generated by IcoMoon

    +
    + + + + \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.eot b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.eot new file mode 100644 index 000000000..7c7fb70cf Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.eot differ diff --git a/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.svg b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.svg new file mode 100644 index 000000000..ad51460e3 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.svg @@ -0,0 +1,22 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.ttf b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.ttf new file mode 100644 index 000000000..9652f68e8 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.ttf differ diff --git a/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.woff b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.woff new file mode 100644 index 000000000..002aba642 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/fonts/ext-watermark.woff differ diff --git a/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/selection.json b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/selection.json new file mode 100644 index 000000000..d7bddd418 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/selection.json @@ -0,0 +1,1049 @@ +{ + "IcoMoonType": "selection", + "icons": [ + { + "icon": { + "width": 1405, + "paths": [ + "M0 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M484.165 261.483l94.471 148.455h-89.41l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 50.61-80.975h86.036l-91.097 146.768z", + "M725.404 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M922.781 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1258.491 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M172.072 1017.252h-172.072v-404.876h160.264c84.349 0 114.715 33.74 114.715 89.41v40.488c0 28.679-13.496 50.61-45.549 64.105 33.74 8.435 59.044 37.114 59.044 74.227v38.801c1.687 59.044-35.427 97.845-116.402 97.845zM183.881 715.282c0-16.87-10.122-28.679-37.114-28.679h-55.671v92.784h55.671c23.618 0 37.114-11.809 37.114-28.679v-35.427zM199.064 883.98c0-21.931-13.496-33.74-38.801-33.74h-69.166v94.471h55.671c28.679 0 50.61-6.748 50.61-35.427v-25.305z", + "M420.059 900.85v8.435c0 33.74 13.496 43.862 53.984 43.862 26.992 0 64.105-5.061 89.41-13.496l13.496 65.792c-26.992 10.122-69.166 18.557-111.341 18.557-96.158 0-131.585-47.236-131.585-119.776v-69.166c0-64.105 28.679-118.089 126.524-118.089s119.776 59.044 119.776 123.15v62.418h-160.264zM495.974 821.562c0-20.244-6.748-37.114-37.114-37.114s-40.488 16.87-40.488 37.114v13.496h75.914v-13.496z", + "M742.273 1024c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-21.931 5.061-45.549 10.122-64.105 10.122z", + "M1018.939 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-8.435-67.479c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-72.54zM1003.756 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-beta-left" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 21, + "id": 11, + "prevSize": 32, + "code": 97, + "name": "extjs-beta-left" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 0 + }, + { + "icon": { + "width": 1405, + "paths": [ + "M0 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M484.165 261.483l94.471 148.455h-89.41l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 50.61-80.975h86.036l-91.097 146.768z", + "M725.404 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M922.781 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1258.491 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M477.417 1017.252h-172.072v-404.876h160.264c84.349 0 114.715 33.74 114.715 89.41v40.488c0 28.679-13.496 50.61-45.549 64.105 33.74 8.435 59.044 37.114 59.044 74.227v38.801c1.687 59.044-35.427 97.845-116.402 97.845zM489.226 715.282c0-16.87-10.122-28.679-37.114-28.679h-55.671v92.784h55.671c23.618 0 37.114-11.809 37.114-28.679v-35.427zM504.409 883.98c0-21.931-13.496-33.74-38.801-33.74h-69.166v94.471h55.671c28.679 0 50.61-6.748 50.61-35.427v-25.305z", + "M725.404 900.85v8.435c0 33.74 13.496 43.862 53.984 43.862 26.992 0 64.105-5.061 89.41-13.496l13.496 65.792c-26.992 10.122-69.166 18.557-111.341 18.557-96.158 0-131.585-47.236-131.585-119.776v-69.166c0-64.105 28.679-118.089 126.524-118.089s119.776 59.044 119.776 123.15v62.418h-160.264zM801.318 821.562c0-20.244-6.748-37.114-37.114-37.114s-40.488 16.87-40.488 37.114v13.496h75.914v-13.496z", + "M1047.618 1024c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-45.549 10.122-64.105 10.122z", + "M1324.283 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-11.809-65.792c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-69.166zM1309.1 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-beta-right" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 10, + "id": 10, + "prevSize": 32, + "code": 98, + "name": "extjs-beta-right" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 1 + }, + { + "icon": { + "width": 1437, + "paths": [ + "M32.053 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M516.217 261.483l94.471 148.455h-87.723l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 52.297-80.975h82.662l-91.097 146.768z", + "M757.456 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M954.834 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1290.544 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M199.064 693.351v323.901h-91.097v-323.901h-107.967v-80.975h308.718v80.975h-109.654z", + "M409.937 836.745v180.507h-87.723v-295.222h72.54l6.748 28.679c18.557-11.809 55.671-30.366 79.288-35.427l6.748 82.662c-25.305 11.809-59.044 26.992-77.601 38.801z", + "M531.4 684.916v-92.784h87.723v92.784h-87.723zM531.4 1017.252v-295.222h87.723v295.222h-87.723z", + "M856.988 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-11.809-65.792c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-69.166zM840.119 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z", + "M1000.382 1017.252v-416.685l87.723-11.809v428.494h-87.723z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-trial-left" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 11, + "id": 9, + "prevSize": 32, + "code": 99, + "name": "extjs-trial-left" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 2 + }, + { + "icon": { + "width": 1405, + "paths": [ + "M0 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M484.165 261.483l94.471 148.455h-89.41l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 50.61-80.975h86.036l-91.097 146.768z", + "M725.404 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M922.781 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1258.491 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M502.722 693.351v323.901h-91.097v-323.901h-107.967v-80.975h308.718v80.975h-109.654z", + "M711.908 836.745v180.507h-87.723v-295.222h72.54l6.748 28.679c18.557-11.809 55.671-30.366 79.288-35.427l6.748 82.662c-25.305 11.809-59.044 26.992-77.601 38.801z", + "M833.371 684.916v-92.784h87.723v92.784h-87.723zM833.371 1017.252v-295.222h87.723v295.222h-87.723z", + "M1158.959 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-11.809-65.792c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-69.166zM1142.089 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z", + "M1304.040 1017.252v-416.685l87.723-11.809v428.494h-87.723z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-trial-right" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 22, + "id": 8, + "prevSize": 32, + "code": 100, + "name": "extjs-trial-right" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 3 + }, + { + "icon": { + "width": 3329, + "paths": [ + "M127.586 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M404.298 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM478.861 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M792.026 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l9.942 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1020.686 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-16.57-3.314-41.424-4.971-57.994-4.971-34.796 0-46.395 13.256-46.395 43.081v67.935z", + "M1365.333 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l86.162-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1680.155 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-8.285-66.278c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-71.249zM1665.243 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1948.583 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2422.472 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2661.074 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-62.964 9.942z", + "M2854.939 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3183.016 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M180.608 1017.372h-169.010v-397.67h157.411c82.848 0 112.673 33.139 112.673 87.819v39.767c0 28.168-13.256 49.709-44.738 62.964 33.139 8.285 57.994 36.453 57.994 72.906v38.11c1.657 57.994-34.796 96.104-114.33 96.104zM192.207 720.777c0-16.57-9.942-28.168-36.453-28.168h-54.68v91.133h54.68c23.197 0 36.453-11.599 36.453-28.168v-34.796zM207.12 886.472c0-21.54-13.256-33.139-38.11-33.139h-67.935v92.79h54.68c28.168 0 49.709-6.628 49.709-34.796v-24.854z", + "M424.181 903.042v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s115.987 56.337 115.987 119.301v61.307h-155.754zM498.744 825.165c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M740.66 1024c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-19.883 4.971-43.081 9.942-62.964 9.942z", + "M1014.058 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM997.489 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-left-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 13, + "id": 7, + "prevSize": 32, + "code": 101, + "name": "sencha-extjs-beta-left-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 4 + }, + { + "icon": { + "width": 1107, + "paths": [ + "M80.622 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M255.476 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM302.593 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M500.483 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l6.282 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M644.973 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-10.47-2.094-26.176-3.141-36.646-3.141-21.988 0-29.317 8.376-29.317 27.223v42.928z", + "M862.757 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l54.446-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M1061.693 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M7.329 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M307.828 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h53.399l-58.634 91.092z", + "M457.554 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M580.057 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M788.417 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-61.775-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-6.282 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 1.047 50.258-15.706 75.387-91.092 75.387z", + "M114.127 1019.812h-106.798v-251.288h99.468c52.352 0 71.198 20.941 71.198 55.493v25.129c0 17.8-8.376 31.411-28.27 39.787 20.941 5.235 36.646 23.035 36.646 46.070v24.082c1.047 36.646-21.988 60.728-72.245 60.728zM121.456 832.393c0-10.47-6.282-17.8-23.035-17.8h-34.552v57.587h34.552c14.658 0 23.035-7.329 23.035-17.8v-21.988zM130.879 937.096c0-13.611-8.376-20.941-24.082-20.941h-42.928v58.634h34.552c17.8 0 31.411-4.188 31.411-21.988v-15.706z", + "M268.041 947.566v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s73.292 35.599 73.292 75.387v38.74h-98.421zM315.157 898.356c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M468.025 1024c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M640.785 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM630.315 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-left-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 14, + "id": 6, + "prevSize": 32, + "code": 102, + "name": "sencha-extjs-beta-left-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 5 + }, + { + "icon": { + "width": 3329, + "paths": [ + "M127.586 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M404.298 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM478.861 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M792.026 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l9.942 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1020.686 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-16.57-3.314-41.424-4.971-57.994-4.971-34.796 0-46.395 13.256-46.395 43.081v67.935z", + "M1365.333 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l86.162-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1680.155 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-8.285-66.278c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-71.249zM1665.243 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1948.583 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2422.472 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2661.074 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-62.964 9.942z", + "M2854.939 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3183.016 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M2417.502 1017.372h-169.010v-397.67h157.411c82.848 0 112.673 33.139 112.673 87.819v39.767c0 28.168-13.256 49.709-44.738 62.964 33.139 8.285 57.994 36.453 57.994 72.906v38.11c1.657 57.994-34.796 96.104-114.33 96.104zM2429.1 720.777c0-16.57-9.942-28.168-36.453-28.168h-54.68v91.133h54.68c23.197 0 36.453-11.599 36.453-28.168v-34.796zM2444.013 886.472c0-21.54-13.256-33.139-38.11-33.139h-67.935v92.79h54.68c28.168 0 49.709-6.628 49.709-34.796v-24.854z", + "M2661.074 903.042v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM2735.638 825.165c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M2975.896 1024c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-38.11v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-64.621 9.942z", + "M3249.294 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM3234.382 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-right-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 15, + "id": 5, + "prevSize": 32, + "code": 103, + "name": "sencha-extjs-beta-right-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 6 + }, + { + "icon": { + "width": 1112, + "paths": [ + "M80.622 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M255.476 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM302.593 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M500.483 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l6.282 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M644.973 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-10.47-2.094-26.176-3.141-36.646-3.141-21.988 0-29.317 8.376-29.317 27.223v42.928z", + "M862.757 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l54.446-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M1061.693 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M239.771 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M540.27 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h51.305l-56.54 91.092z", + "M689.996 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M812.499 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M1020.859 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528-1.047 50.258-16.753 75.387-92.139 75.387z", + "M536.082 1019.812h-106.798v-251.288h99.468c52.352 0 71.198 20.941 71.198 55.493v25.129c0 17.8-8.376 31.411-28.27 39.787 20.941 5.235 36.646 23.035 36.646 46.070v24.082c1.047 36.646-21.988 60.728-72.245 60.728zM543.411 832.393c0-10.47-6.282-17.8-23.035-17.8h-34.552v57.587h34.552c14.658 0 23.035-7.329 23.035-17.8v-21.988zM552.834 937.096c0-13.611-8.376-20.941-24.082-20.941h-42.928v58.634h34.552c17.8 0 31.411-4.188 31.411-21.988v-15.706z", + "M689.996 947.566v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM737.112 898.356c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M889.98 1024c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-28.27 6.282-39.787 6.282z", + "M1061.693 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-right-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 16, + "id": 4, + "prevSize": 32, + "code": 104, + "name": "sencha-extjs-beta-right-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 7 + }, + { + "icon": { + "width": 3349, + "paths": [ + "M147.469 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M424.181 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s115.987 56.337 115.987 119.301v61.307h-155.754zM498.744 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M811.909 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l8.285 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-84.505z", + "M1040.57 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-18.227-4.971-43.081-6.628-59.65-6.628-34.796 0-46.395 13.256-46.395 43.081v69.592z", + "M1385.217 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l84.505-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-84.505z", + "M1700.039 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM1685.126 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1968.466 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2442.356 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2679.301 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-19.883 4.971-43.081 9.942-62.964 9.942z", + "M2874.822 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3202.9 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-9.942 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 1.657 79.534-23.197 119.301-144.155 119.301z", + "M195.521 699.236v318.136h-89.476v-318.136h-106.045v-79.534h303.223v79.534h-107.702z", + "M402.641 840.078v177.294h-86.162v-289.968h71.249l6.628 28.168c18.227-11.599 54.68-29.825 77.877-34.796l6.628 81.191c-24.854 9.942-57.994 24.854-76.22 38.11z", + "M521.942 690.951v-91.133h86.162v91.133h-86.162zM521.942 1017.372v-289.968h86.162v289.968h-86.162z", + "M841.735 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM825.165 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M982.576 1017.372v-409.269l86.162-11.599v420.867h-86.162z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-left-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 17, + "id": 3, + "prevSize": 32, + "code": 105, + "name": "sencha-extjs-trial-left-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 8 + }, + { + "icon": { + "width": 1119, + "paths": [ + "M93.186 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M268.041 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s73.292 35.599 73.292 75.387v38.74h-98.421zM315.157 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M513.047 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l5.235 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-53.399z", + "M657.538 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-11.517-3.141-27.223-4.188-37.693-4.188-21.988 0-29.317 8.376-29.317 27.223v43.975z", + "M875.321 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l53.399-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-53.399z", + "M1074.258 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM1064.834 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M19.894 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M320.393 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h51.305l-56.54 91.092z", + "M470.119 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M592.622 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M800.982 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528-1.047 50.258-16.753 75.387-92.139 75.387z", + "M123.55 818.781v201.031h-56.54v-201.031h-67.010v-50.258h191.607v50.258h-68.057z", + "M254.429 907.779v112.033h-54.446v-183.231h45.022l4.188 17.8c11.517-7.329 34.552-18.847 49.211-21.988l4.188 51.305c-15.706 6.282-36.646 15.706-48.164 24.082z", + "M329.816 813.546v-57.587h54.446v57.587h-54.446zM329.816 1019.812v-183.231h54.446v183.231h-54.446z", + "M531.894 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM521.423 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M620.892 1019.812v-258.618l54.446-7.329v265.947h-54.446z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-left-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 18, + "id": 2, + "prevSize": 32, + "code": 106, + "name": "sencha-extjs-trial-left-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 9 + }, + { + "icon": { + "width": 3329, + "paths": [ + "M127.586 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M404.298 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM478.861 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M792.026 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l9.942 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1020.686 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-16.57-3.314-41.424-4.971-57.994-4.971-34.796 0-46.395 13.256-46.395 43.081v67.935z", + "M1365.333 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l86.162-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1680.155 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-8.285-66.278c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-71.249zM1665.243 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1948.583 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2422.472 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2661.074 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-62.964 9.942z", + "M2854.939 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3183.016 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M2440.699 699.236v318.136h-89.476v-318.136h-106.045v-79.534h303.223v79.534h-107.702z", + "M2647.819 840.078v177.294h-86.162v-289.968h71.249l6.628 28.168c18.227-11.599 54.68-29.825 77.877-34.796l6.628 81.191c-24.854 9.942-57.994 24.854-76.22 38.11z", + "M2767.12 690.951v-91.133h86.162v91.133h-86.162zM2767.12 1017.372v-289.968h86.162v289.968h-86.162z", + "M3086.913 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM3070.343 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M3227.754 1017.372v-409.269l86.162-11.599v420.867h-86.162z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-right-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 19, + "id": 1, + "prevSize": 32, + "code": 107, + "name": "sencha-extjs-trial-right-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 10 + }, + { + "icon": { + "width": 1112, + "paths": [ + "M80.622 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M255.476 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM302.593 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M500.483 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l6.282 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M644.973 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-10.47-2.094-26.176-3.141-36.646-3.141-21.988 0-29.317 8.376-29.317 27.223v42.928z", + "M862.757 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l54.446-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M1061.693 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M239.771 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M540.27 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h51.305l-56.54 91.092z", + "M689.996 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M812.499 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M1020.859 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528-1.047 50.258-16.753 75.387-92.139 75.387z", + "M551.787 818.781v201.031h-56.54v-201.031h-67.010v-50.258h191.607v50.258h-68.057z", + "M681.62 907.779v112.033h-54.446v-183.231h45.022l4.188 17.8c11.517-7.329 34.552-18.847 49.211-21.988l4.188 51.305c-15.706 6.282-36.646 15.706-48.164 24.082z", + "M757.006 813.546v-57.587h54.446v57.587h-54.446zM757.006 1019.812v-183.231h54.446v183.231h-54.446z", + "M959.084 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM948.613 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M1049.129 1019.812v-258.618l54.446-7.329v265.947h-54.446z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-right-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 20, + "id": 0, + "prevSize": 32, + "code": 108, + "name": "sencha-extjs-trial-right-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 11 + } + ], + "height": 1024, + "metadata": { + "name": "ext-watermark" + }, + "preferences": { + "showGlyphs": true, + "showQuickUse": true, + "showQuickUse2": true, + "showSVGs": true, + "fontPref": { + "prefix": "icon-", + "metadata": { + "fontFamily": "ext-watermark", + "majorVersion": 1, + "minorVersion": 0 + }, + "metrics": { + "emSize": 1024, + "baseline": 6.25, + "whitespace": 50 + }, + "showSelector": true, + "showMetrics": true, + "showMetadata": false, + "showVersion": false + }, + "imagePref": { + "prefix": "icon-", + "png": true, + "useClassSelector": true, + "color": 4473924, + "bgColor": 16777215 + }, + "historySize": 100, + "showCodes": true + } +} \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/style.css b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/style.css new file mode 100644 index 000000000..97b924c57 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/ext/ext-watermark/style.css @@ -0,0 +1,73 @@ +@font-face { + font-family: 'ext-watermark'; + src:url('fonts/ext-watermark.eot?n6lnws'); + src:url('fonts/ext-watermark.eot?#iefixn6lnws') format('embedded-opentype'), + url('fonts/ext-watermark.woff?n6lnws') format('woff'), + url('fonts/ext-watermark.ttf?n6lnws') format('truetype'), + url('fonts/ext-watermark.svg?n6lnws#ext-watermark') format('svg'); + font-weight: normal; + font-style: normal; +} + +[class^="icon-"], [class*=" icon-"] { + font-family: 'ext-watermark'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-extjs-beta-left:before { + content: "\61"; +} + +.icon-extjs-beta-right:before { + content: "\62"; +} + +.icon-extjs-trial-left:before { + content: "\63"; +} + +.icon-extjs-trial-right:before { + content: "\64"; +} + +.icon-sencha-extjs-beta-left-2:before { + content: "\65"; +} + +.icon-sencha-extjs-beta-left-3:before { + content: "\66"; +} + +.icon-sencha-extjs-beta-right-2:before { + content: "\67"; +} + +.icon-sencha-extjs-beta-right-3:before { + content: "\68"; +} + +.icon-sencha-extjs-trial-left-2:before { + content: "\69"; +} + +.icon-sencha-extjs-trial-left-3:before { + content: "\6a"; +} + +.icon-sencha-extjs-trial-right-2:before { + content: "\6b"; +} + +.icon-sencha-extjs-trial-right-3:before { + content: "\6c"; +} + diff --git a/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/FontAwesome.otf b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/FontAwesome.otf new file mode 100644 index 000000000..681bdd4d4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/FontAwesome.otf differ diff --git a/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.eot b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.eot new file mode 100644 index 000000000..a30335d74 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.eot differ diff --git a/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.svg b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.svg new file mode 100644 index 000000000..9f5324584 --- /dev/null +++ b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.svg @@ -0,0 +1,640 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.ttf b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.ttf new file mode 100644 index 000000000..d7994e130 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.ttf differ diff --git a/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.woff b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.woff new file mode 100644 index 000000000..6fd4ede0f Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.woff differ diff --git a/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.woff2 b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.woff2 new file mode 100644 index 000000000..5560193cc Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/font-awesome/fonts/fontawesome-webfont.woff2 differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow-open-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow-open-rtl.png new file mode 100644 index 000000000..e15277ea1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow-open-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow-open.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow-open.png new file mode 100644 index 000000000..833d0daa0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow-open.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow-rtl.png new file mode 100644 index 000000000..d96a18ed6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow.png new file mode 100644 index 000000000..212303575 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-scroll-left.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-scroll-left.png new file mode 100644 index 000000000..9d96ae2e6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-scroll-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-scroll-right.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-scroll-right.png new file mode 100644 index 000000000..b741af22d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-scroll-right.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-open-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-open-rtl.png new file mode 100644 index 000000000..b9b63b6a6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-open-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-open.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-open.png new file mode 100644 index 000000000..4c51240de Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-open.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-over-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-over-rtl.png new file mode 100644 index 000000000..d78bc89b1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-over-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-over.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-over.png new file mode 100644 index 000000000..d258b660e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-over.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-rtl.png new file mode 100644 index 000000000..0b9118206 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow.png new file mode 100644 index 000000000..90621eaf0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/breadcrumb/default-split-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-corners.gif new file mode 100644 index 000000000..2ddc10dce Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-notitle-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-notitle-corners.gif new file mode 100644 index 000000000..2ddc10dce Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-notitle-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-notitle-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-notitle-sides.gif new file mode 100644 index 000000000..f5f438f31 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-notitle-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-sides.gif new file mode 100644 index 000000000..f4e4437c7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn-group/btn-group-default-framed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-corners.gif new file mode 100644 index 000000000..ed1e84b11 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-disabled-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-disabled-corners.gif new file mode 100644 index 000000000..8b6ce58d0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-disabled-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-disabled-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-disabled-sides.gif new file mode 100644 index 000000000..da0848a3a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-disabled-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-corners.gif new file mode 100644 index 000000000..668072977 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-over-corners.gif new file mode 100644 index 000000000..87d8679af Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-over-sides.gif new file mode 100644 index 000000000..76365672e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-pressed-corners.gif new file mode 100644 index 000000000..1d5305d28 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-pressed-sides.gif new file mode 100644 index 000000000..39324c2fd Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-sides.gif new file mode 100644 index 000000000..37ab532d4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-focus-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-over-corners.gif new file mode 100644 index 000000000..e7538faaa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-over-sides.gif new file mode 100644 index 000000000..3b8c6ec6b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-pressed-corners.gif new file mode 100644 index 000000000..4c009d2d0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-pressed-sides.gif new file mode 100644 index 000000000..a86411703 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-sides.gif new file mode 100644 index 000000000..98fc2dad2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-large-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-corners.gif new file mode 100644 index 000000000..ed1e84b11 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-disabled-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-disabled-corners.gif new file mode 100644 index 000000000..8b6ce58d0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-disabled-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-disabled-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-disabled-sides.gif new file mode 100644 index 000000000..da0848a3a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-disabled-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-corners.gif new file mode 100644 index 000000000..668072977 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-over-corners.gif new file mode 100644 index 000000000..87d8679af Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-over-sides.gif new file mode 100644 index 000000000..76365672e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-pressed-corners.gif new file mode 100644 index 000000000..1d5305d28 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-pressed-sides.gif new file mode 100644 index 000000000..39324c2fd Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-sides.gif new file mode 100644 index 000000000..37ab532d4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-focus-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-over-corners.gif new file mode 100644 index 000000000..e7538faaa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-over-sides.gif new file mode 100644 index 000000000..3b8c6ec6b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-pressed-corners.gif new file mode 100644 index 000000000..4c009d2d0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-pressed-sides.gif new file mode 100644 index 000000000..a86411703 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-sides.gif new file mode 100644 index 000000000..ede9d279d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-medium-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-corners.gif new file mode 100644 index 000000000..ed1e84b11 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-disabled-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-disabled-corners.gif new file mode 100644 index 000000000..8b6ce58d0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-disabled-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-disabled-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-disabled-sides.gif new file mode 100644 index 000000000..da0848a3a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-disabled-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-corners.gif new file mode 100644 index 000000000..668072977 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-over-corners.gif new file mode 100644 index 000000000..87d8679af Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-over-sides.gif new file mode 100644 index 000000000..76365672e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-pressed-corners.gif new file mode 100644 index 000000000..1d5305d28 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-pressed-sides.gif new file mode 100644 index 000000000..39324c2fd Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-sides.gif new file mode 100644 index 000000000..37ab532d4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-focus-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-over-corners.gif new file mode 100644 index 000000000..e7538faaa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-over-sides.gif new file mode 100644 index 000000000..3b8c6ec6b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-pressed-corners.gif new file mode 100644 index 000000000..4c009d2d0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-pressed-sides.gif new file mode 100644 index 000000000..a86411703 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-sides.gif new file mode 100644 index 000000000..6189a5278 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-small-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-corners.gif new file mode 100644 index 000000000..9f526a62d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-disabled-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-disabled-corners.gif new file mode 100644 index 000000000..bfd2743a6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-disabled-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-disabled-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-disabled-sides.gif new file mode 100644 index 000000000..92cca3b36 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-disabled-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-corners.gif new file mode 100644 index 000000000..cccd47113 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-over-corners.gif new file mode 100644 index 000000000..82d5d5efa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-over-sides.gif new file mode 100644 index 000000000..c327398e5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-pressed-corners.gif new file mode 100644 index 000000000..15c57f7f0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-pressed-sides.gif new file mode 100644 index 000000000..33e512835 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-sides.gif new file mode 100644 index 000000000..c51c9ab6a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-focus-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-over-corners.gif new file mode 100644 index 000000000..12a71fd0d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-over-sides.gif new file mode 100644 index 000000000..e4007e49c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-pressed-corners.gif new file mode 100644 index 000000000..d6d61e72d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-pressed-sides.gif new file mode 100644 index 000000000..7e29c2235 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-sides.gif new file mode 100644 index 000000000..12e46ded1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-large-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-corners.gif new file mode 100644 index 000000000..9f526a62d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-disabled-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-disabled-corners.gif new file mode 100644 index 000000000..bfd2743a6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-disabled-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-disabled-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-disabled-sides.gif new file mode 100644 index 000000000..92cca3b36 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-disabled-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-corners.gif new file mode 100644 index 000000000..cccd47113 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-over-corners.gif new file mode 100644 index 000000000..82d5d5efa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-over-sides.gif new file mode 100644 index 000000000..c327398e5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif new file mode 100644 index 000000000..15c57f7f0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif new file mode 100644 index 000000000..33e512835 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-sides.gif new file mode 100644 index 000000000..c51c9ab6a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-focus-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-over-corners.gif new file mode 100644 index 000000000..12a71fd0d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-over-sides.gif new file mode 100644 index 000000000..e4007e49c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-pressed-corners.gif new file mode 100644 index 000000000..d6d61e72d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-pressed-sides.gif new file mode 100644 index 000000000..7e29c2235 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-sides.gif new file mode 100644 index 000000000..ccf2e99cf Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-medium-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-corners.gif new file mode 100644 index 000000000..9f526a62d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-disabled-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-disabled-corners.gif new file mode 100644 index 000000000..bfd2743a6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-disabled-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-disabled-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-disabled-sides.gif new file mode 100644 index 000000000..92cca3b36 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-disabled-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-corners.gif new file mode 100644 index 000000000..cccd47113 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-over-corners.gif new file mode 100644 index 000000000..82d5d5efa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-over-sides.gif new file mode 100644 index 000000000..c327398e5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-pressed-corners.gif new file mode 100644 index 000000000..15c57f7f0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-pressed-sides.gif new file mode 100644 index 000000000..33e512835 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-sides.gif new file mode 100644 index 000000000..c51c9ab6a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-focus-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-over-corners.gif new file mode 100644 index 000000000..12a71fd0d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-over-sides.gif new file mode 100644 index 000000000..e4007e49c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-pressed-corners.gif new file mode 100644 index 000000000..d6d61e72d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-pressed-sides.gif new file mode 100644 index 000000000..7e29c2235 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-sides.gif new file mode 100644 index 000000000..82f71acb5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-default-toolbar-small-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-over-corners.gif new file mode 100644 index 000000000..82d5d5efa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-over-sides.gif new file mode 100644 index 000000000..c327398e5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif new file mode 100644 index 000000000..15c57f7f0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif new file mode 100644 index 000000000..33e512835 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-over-corners.gif new file mode 100644 index 000000000..12a71fd0d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-over-sides.gif new file mode 100644 index 000000000..e4007e49c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-pressed-corners.gif new file mode 100644 index 000000000..d6d61e72d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-pressed-sides.gif new file mode 100644 index 000000000..7e29c2235 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-large-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-over-corners.gif new file mode 100644 index 000000000..82d5d5efa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-over-sides.gif new file mode 100644 index 000000000..c327398e5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif new file mode 100644 index 000000000..15c57f7f0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif new file mode 100644 index 000000000..33e512835 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-over-corners.gif new file mode 100644 index 000000000..12a71fd0d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-over-sides.gif new file mode 100644 index 000000000..e4007e49c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-pressed-corners.gif new file mode 100644 index 000000000..d6d61e72d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-pressed-sides.gif new file mode 100644 index 000000000..7e29c2235 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-medium-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-over-corners.gif new file mode 100644 index 000000000..82d5d5efa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-over-sides.gif new file mode 100644 index 000000000..c327398e5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif new file mode 100644 index 000000000..15c57f7f0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif new file mode 100644 index 000000000..33e512835 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-over-corners.gif new file mode 100644 index 000000000..12a71fd0d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-over-sides.gif new file mode 100644 index 000000000..e4007e49c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-pressed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-pressed-corners.gif new file mode 100644 index 000000000..d6d61e72d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-pressed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-pressed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-pressed-sides.gif new file mode 100644 index 000000000..7e29c2235 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/btn/btn-plain-toolbar-small-pressed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-large-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-arrow-rtl.png new file mode 100644 index 000000000..f2c120210 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-large-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-arrow.png new file mode 100644 index 000000000..1eda80bd8 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow-b-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow-b-rtl.png new file mode 100644 index 000000000..aa95f4680 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow-b.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow-b.png new file mode 100644 index 000000000..efde40e74 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow-b.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow-rtl.png new file mode 100644 index 000000000..81d247443 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow.png new file mode 100644 index 000000000..7d25019f1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-large-s-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-arrow-rtl.png new file mode 100644 index 000000000..0863de4f2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-arrow.png new file mode 100644 index 000000000..c7cf5cbd4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow-b-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow-b-rtl.png new file mode 100644 index 000000000..e05da4b94 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow-b.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow-b.png new file mode 100644 index 000000000..8573de9cb Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow-b.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow-rtl.png new file mode 100644 index 000000000..83434aae7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow.png new file mode 100644 index 000000000..1fcec224b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-medium-s-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-small-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-arrow-rtl.png new file mode 100644 index 000000000..f4871da72 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-small-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-arrow.png new file mode 100644 index 000000000..de8fcccb7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow-b-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow-b-rtl.png new file mode 100644 index 000000000..f0e3b0ae4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow-b.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow-b.png new file mode 100644 index 000000000..b33a0b0c7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow-b.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow-rtl.png new file mode 100644 index 000000000..2de176a9c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow.png new file mode 100644 index 000000000..f7dec83cf Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-small-s-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-arrow-rtl.png new file mode 100644 index 000000000..ec1d908a1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-arrow.png new file mode 100644 index 000000000..7dcd4de33 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow-b-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow-b-rtl.png new file mode 100644 index 000000000..379d2d9f0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow-b.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow-b.png new file mode 100644 index 000000000..54f3dd55a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow-b.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow-rtl.png new file mode 100644 index 000000000..9b52d5b33 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow.png new file mode 100644 index 000000000..003417a70 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-large-s-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-arrow-rtl.png new file mode 100644 index 000000000..e4e8342d7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-arrow.png new file mode 100644 index 000000000..b573c0c4c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow-b-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow-b-rtl.png new file mode 100644 index 000000000..3678da35b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow-b.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow-b.png new file mode 100644 index 000000000..7536cf20b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow-b.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow-rtl.png new file mode 100644 index 000000000..81cc241fe Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow.png new file mode 100644 index 000000000..4a34fe406 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-medium-s-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-arrow-rtl.png new file mode 100644 index 000000000..b5bca15a2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-arrow.png new file mode 100644 index 000000000..5b64e4506 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow-b-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow-b-rtl.png new file mode 100644 index 000000000..44307a621 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow-b.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow-b.png new file mode 100644 index 000000000..48c52efe5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow-b.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow-rtl.png new file mode 100644 index 000000000..e0b0102fa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow.png new file mode 100644 index 000000000..269821788 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/default-toolbar-small-s-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-arrow-rtl.png new file mode 100644 index 000000000..a59643d65 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-arrow.png new file mode 100644 index 000000000..a444189c6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-s-arrow-b.png b/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-s-arrow-b.png new file mode 100644 index 000000000..6b333844b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-s-arrow-b.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-s-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-s-arrow-rtl.png new file mode 100644 index 000000000..23d258db2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-s-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-s-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-s-arrow.png new file mode 100644 index 000000000..83b1f2779 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/grid-cell-small-s-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-arrow-rtl.png new file mode 100644 index 000000000..d9bfbb807 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-arrow.png new file mode 100644 index 000000000..7dcd4de33 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow-b-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow-b-rtl.png new file mode 100644 index 000000000..5fe042d74 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow-b.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow-b.png new file mode 100644 index 000000000..54f3dd55a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow-b.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow-rtl.png new file mode 100644 index 000000000..c19f12672 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow.png new file mode 100644 index 000000000..003417a70 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-large-s-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-arrow-rtl.png new file mode 100644 index 000000000..84b91cba0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-arrow.png new file mode 100644 index 000000000..b573c0c4c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow-b-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow-b-rtl.png new file mode 100644 index 000000000..a8eec0405 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow-b.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow-b.png new file mode 100644 index 000000000..7536cf20b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow-b.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow-rtl.png new file mode 100644 index 000000000..bd9c85b68 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow.png new file mode 100644 index 000000000..4a34fe406 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-medium-s-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-arrow-rtl.png new file mode 100644 index 000000000..57ce6aac0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-arrow.png new file mode 100644 index 000000000..5b64e4506 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow-b-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow-b-rtl.png new file mode 100644 index 000000000..ace548675 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow-b.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow-b.png new file mode 100644 index 000000000..48c52efe5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow-b.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow-rtl.png new file mode 100644 index 000000000..322eb9325 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow.png new file mode 100644 index 000000000..269821788 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/button/plain-toolbar-small-s-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/datepicker/arrow-left.png b/frontend/build/production/CatalogBuilder/resources/images/datepicker/arrow-left.png new file mode 100644 index 000000000..5b477cca7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/datepicker/arrow-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/datepicker/arrow-right.png b/frontend/build/production/CatalogBuilder/resources/images/datepicker/arrow-right.png new file mode 100644 index 000000000..2e1a235d8 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/datepicker/arrow-right.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/datepicker/month-arrow.png b/frontend/build/production/CatalogBuilder/resources/images/datepicker/month-arrow.png new file mode 100644 index 000000000..5f878122e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/datepicker/month-arrow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/dd/drop-add.png b/frontend/build/production/CatalogBuilder/resources/images/dd/drop-add.png new file mode 100644 index 000000000..a7b8f28d5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/dd/drop-add.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/dd/drop-no.png b/frontend/build/production/CatalogBuilder/resources/images/dd/drop-no.png new file mode 100644 index 000000000..02e219a14 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/dd/drop-no.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/dd/drop-yes.png b/frontend/build/production/CatalogBuilder/resources/images/dd/drop-yes.png new file mode 100644 index 000000000..a7b8f28d5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/dd/drop-yes.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/editor/tb-sprite.png b/frontend/build/production/CatalogBuilder/resources/images/editor/tb-sprite.png new file mode 100644 index 000000000..d8c872f8f Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/editor/tb-sprite.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/fieldset/collapse-tool.png b/frontend/build/production/CatalogBuilder/resources/images/fieldset/collapse-tool.png new file mode 100644 index 000000000..56d50b0b4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/fieldset/collapse-tool.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/checkbox.png b/frontend/build/production/CatalogBuilder/resources/images/form/checkbox.png new file mode 100644 index 000000000..e0411ded8 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/checkbox.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/clear-trigger-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/form/clear-trigger-rtl.png new file mode 100644 index 000000000..5092eeada Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/clear-trigger-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/clear-trigger.png b/frontend/build/production/CatalogBuilder/resources/images/form/clear-trigger.png new file mode 100644 index 000000000..5092eeada Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/clear-trigger.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/date-trigger-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/form/date-trigger-rtl.png new file mode 100644 index 000000000..b2064a6b9 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/date-trigger-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/date-trigger.png b/frontend/build/production/CatalogBuilder/resources/images/form/date-trigger.png new file mode 100644 index 000000000..b2064a6b9 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/date-trigger.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/exclamation.png b/frontend/build/production/CatalogBuilder/resources/images/form/exclamation.png new file mode 100644 index 000000000..d0bd74d11 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/exclamation.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/radio.png b/frontend/build/production/CatalogBuilder/resources/images/form/radio.png new file mode 100644 index 000000000..fef5ab547 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/radio.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/search-trigger-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/form/search-trigger-rtl.png new file mode 100644 index 000000000..88ddcbb0d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/search-trigger-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/search-trigger.png b/frontend/build/production/CatalogBuilder/resources/images/form/search-trigger.png new file mode 100644 index 000000000..88ddcbb0d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/search-trigger.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/spinner-down-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/form/spinner-down-rtl.png new file mode 100644 index 000000000..b50f7c2dd Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/spinner-down-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/spinner-down.png b/frontend/build/production/CatalogBuilder/resources/images/form/spinner-down.png new file mode 100644 index 000000000..b50f7c2dd Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/spinner-down.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/spinner-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/form/spinner-rtl.png new file mode 100644 index 000000000..ab16678bb Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/spinner-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/spinner-up-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/form/spinner-up-rtl.png new file mode 100644 index 000000000..d5800c2ab Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/spinner-up-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/spinner-up.png b/frontend/build/production/CatalogBuilder/resources/images/form/spinner-up.png new file mode 100644 index 000000000..d5800c2ab Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/spinner-up.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/spinner.png b/frontend/build/production/CatalogBuilder/resources/images/form/spinner.png new file mode 100644 index 000000000..ab16678bb Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/spinner.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/tag-field-item-close.png b/frontend/build/production/CatalogBuilder/resources/images/form/tag-field-item-close.png new file mode 100644 index 000000000..4ceb8d9f9 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/tag-field-item-close.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/trigger-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/form/trigger-rtl.png new file mode 100644 index 000000000..41897db21 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/trigger-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/form/trigger.png b/frontend/build/production/CatalogBuilder/resources/images/form/trigger.png new file mode 100644 index 000000000..41897db21 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/form/trigger.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-corners.gif new file mode 100644 index 000000000..b6966748e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-sides.gif new file mode 100644 index 000000000..d50a3c653 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-corners.gif new file mode 100644 index 000000000..c034936c5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-sides.gif new file mode 100644 index 000000000..d50a3c653 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/col-move-bottom.png b/frontend/build/production/CatalogBuilder/resources/images/grid/col-move-bottom.png new file mode 100644 index 000000000..97822194e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/col-move-bottom.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/col-move-top.png b/frontend/build/production/CatalogBuilder/resources/images/grid/col-move-top.png new file mode 100644 index 000000000..6e28535af Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/col-move-top.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/columns.png b/frontend/build/production/CatalogBuilder/resources/images/grid/columns.png new file mode 100644 index 000000000..02c0a5e50 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/columns.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/dd-insert-arrow-left.png b/frontend/build/production/CatalogBuilder/resources/images/grid/dd-insert-arrow-left.png new file mode 100644 index 000000000..e8177d057 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/dd-insert-arrow-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/dd-insert-arrow-right.png b/frontend/build/production/CatalogBuilder/resources/images/grid/dd-insert-arrow-right.png new file mode 100644 index 000000000..d610f9d55 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/dd-insert-arrow-right.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/dirty-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/grid/dirty-rtl.png new file mode 100644 index 000000000..5f8412289 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/dirty-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/dirty.png b/frontend/build/production/CatalogBuilder/resources/images/grid/dirty.png new file mode 100644 index 000000000..fc06fdde5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/dirty.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/drop-no.png b/frontend/build/production/CatalogBuilder/resources/images/grid/drop-no.png new file mode 100644 index 000000000..02e219a14 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/drop-no.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/drop-yes.png b/frontend/build/production/CatalogBuilder/resources/images/grid/drop-yes.png new file mode 100644 index 000000000..a7b8f28d5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/drop-yes.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/filters/equals.png b/frontend/build/production/CatalogBuilder/resources/images/grid/filters/equals.png new file mode 100644 index 000000000..1e7c09c82 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/filters/equals.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/filters/find.png b/frontend/build/production/CatalogBuilder/resources/images/grid/filters/find.png new file mode 100644 index 000000000..4617054c4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/filters/find.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/filters/greater_than.png b/frontend/build/production/CatalogBuilder/resources/images/grid/filters/greater_than.png new file mode 100644 index 000000000..6a5782e6a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/filters/greater_than.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/filters/less_than.png b/frontend/build/production/CatalogBuilder/resources/images/grid/filters/less_than.png new file mode 100644 index 000000000..376d8fad1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/filters/less_than.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/group-by.png b/frontend/build/production/CatalogBuilder/resources/images/grid/group-by.png new file mode 100644 index 000000000..d59045260 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/group-by.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/group-collapse.png b/frontend/build/production/CatalogBuilder/resources/images/grid/group-collapse.png new file mode 100644 index 000000000..763837dab Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/group-collapse.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/group-expand.png b/frontend/build/production/CatalogBuilder/resources/images/grid/group-expand.png new file mode 100644 index 000000000..eb1306541 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/group-expand.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/hd-pop.png b/frontend/build/production/CatalogBuilder/resources/images/grid/hd-pop.png new file mode 100644 index 000000000..b22131d05 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/hd-pop.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-asc.png b/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-asc.png new file mode 100644 index 000000000..eddf15e54 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-asc.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-desc.png b/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-desc.png new file mode 100644 index 000000000..5b1ec3bfe Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-desc.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-lock.png b/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-lock.png new file mode 100644 index 000000000..2502ff911 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-lock.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-unlock.png b/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-unlock.png new file mode 100644 index 000000000..ff433b2ed Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/hmenu-unlock.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/loading.gif b/frontend/build/production/CatalogBuilder/resources/images/grid/loading.gif new file mode 100644 index 000000000..81b0f1257 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/loading.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/page-first.png b/frontend/build/production/CatalogBuilder/resources/images/grid/page-first.png new file mode 100644 index 000000000..bb70ddc01 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/page-first.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/page-last.png b/frontend/build/production/CatalogBuilder/resources/images/grid/page-last.png new file mode 100644 index 000000000..ccdadc130 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/page-last.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/page-next.png b/frontend/build/production/CatalogBuilder/resources/images/grid/page-next.png new file mode 100644 index 000000000..9904f9503 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/page-next.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/page-prev.png b/frontend/build/production/CatalogBuilder/resources/images/grid/page-prev.png new file mode 100644 index 000000000..bdcf9a6c4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/page-prev.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/pick-button.png b/frontend/build/production/CatalogBuilder/resources/images/grid/pick-button.png new file mode 100644 index 000000000..acafacefa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/pick-button.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/refresh.png b/frontend/build/production/CatalogBuilder/resources/images/grid/refresh.png new file mode 100644 index 000000000..4079262b0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/refresh.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/sort_asc.png b/frontend/build/production/CatalogBuilder/resources/images/grid/sort_asc.png new file mode 100644 index 000000000..5feaa9946 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/sort_asc.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/grid/sort_desc.png b/frontend/build/production/CatalogBuilder/resources/images/grid/sort_desc.png new file mode 100644 index 000000000..0e61c243c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/grid/sort_desc.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/loadmask/loading.gif b/frontend/build/production/CatalogBuilder/resources/images/loadmask/loading.gif new file mode 100644 index 000000000..8471b4f0b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/loadmask/loading.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/magnify.png b/frontend/build/production/CatalogBuilder/resources/images/magnify.png new file mode 100644 index 000000000..b807c42a4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/magnify.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/menu/default-checked.png b/frontend/build/production/CatalogBuilder/resources/images/menu/default-checked.png new file mode 100644 index 000000000..8fe0a2038 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/menu/default-checked.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/menu/default-group-checked.png b/frontend/build/production/CatalogBuilder/resources/images/menu/default-group-checked.png new file mode 100644 index 000000000..02c455cf7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/menu/default-group-checked.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/menu/default-menu-parent-left.png b/frontend/build/production/CatalogBuilder/resources/images/menu/default-menu-parent-left.png new file mode 100644 index 000000000..14c0c3300 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/menu/default-menu-parent-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/menu/default-menu-parent.png b/frontend/build/production/CatalogBuilder/resources/images/menu/default-menu-parent.png new file mode 100644 index 000000000..4e4477ac1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/menu/default-menu-parent.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/menu/default-scroll-bottom.png b/frontend/build/production/CatalogBuilder/resources/images/menu/default-scroll-bottom.png new file mode 100644 index 000000000..8574124c4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/menu/default-scroll-bottom.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/menu/default-scroll-top.png b/frontend/build/production/CatalogBuilder/resources/images/menu/default-scroll-top.png new file mode 100644 index 000000000..4d0b46474 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/menu/default-scroll-top.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/menu/default-unchecked.png b/frontend/build/production/CatalogBuilder/resources/images/menu/default-unchecked.png new file mode 100644 index 000000000..db7390338 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/menu/default-unchecked.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-bottom-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-bottom-corners.gif new file mode 100644 index 000000000..5fbbc1332 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-bottom-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-bottom-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-bottom-sides.gif new file mode 100644 index 000000000..0220b8173 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-bottom-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif new file mode 100644 index 000000000..ba511a656 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif new file mode 100644 index 000000000..0220b8173 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners-rtl.gif new file mode 100644 index 000000000..26ff6e601 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners.gif new file mode 100644 index 000000000..ba511a656 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-left-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-left-sides.gif new file mode 100644 index 000000000..63131ee04 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-left-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners-rtl.gif new file mode 100644 index 000000000..26ff6e601 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners.gif new file mode 100644 index 000000000..ba511a656 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-right-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-right-sides.gif new file mode 100644 index 000000000..63131ee04 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-right-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-top-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-top-corners.gif new file mode 100644 index 000000000..ba511a656 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-top-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-top-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-top-sides.gif new file mode 100644 index 000000000..0220b8173 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-collapsed-top-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-left-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-left-corners-rtl.gif new file mode 100644 index 000000000..52687c0e3 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-left-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-left-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-left-corners.gif new file mode 100644 index 000000000..14016b2e2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-left-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-left-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-left-sides.gif new file mode 100644 index 000000000..63131ee04 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-left-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-right-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-right-corners-rtl.gif new file mode 100644 index 000000000..6eae233cc Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-right-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-right-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-right-corners.gif new file mode 100644 index 000000000..448c71d9a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-right-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-right-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-right-sides.gif new file mode 100644 index 000000000..63131ee04 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-right-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-top-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-top-corners.gif new file mode 100644 index 000000000..16674e09b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-top-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-top-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-top-sides.gif new file mode 100644 index 000000000..0220b8173 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-default-framed-top-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-bottom-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-bottom-corners.gif new file mode 100644 index 000000000..aff4ba7f5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-bottom-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-bottom-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-bottom-sides.gif new file mode 100644 index 000000000..e6ffaa53d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-bottom-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif new file mode 100644 index 000000000..47c893104 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif new file mode 100644 index 000000000..e6ffaa53d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners-rtl.gif new file mode 100644 index 000000000..47c893104 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners.gif new file mode 100644 index 000000000..47c893104 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-left-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-left-sides.gif new file mode 100644 index 000000000..8f9777646 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-left-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners-rtl.gif new file mode 100644 index 000000000..47c893104 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners.gif new file mode 100644 index 000000000..47c893104 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-right-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-right-sides.gif new file mode 100644 index 000000000..8f9777646 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-right-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-top-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-top-corners.gif new file mode 100644 index 000000000..47c893104 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-top-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-top-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-top-sides.gif new file mode 100644 index 000000000..e6ffaa53d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-collapsed-top-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-left-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-left-corners-rtl.gif new file mode 100644 index 000000000..2b532594a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-left-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-left-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-left-corners.gif new file mode 100644 index 000000000..b6158d3fd Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-left-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-left-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-left-sides.gif new file mode 100644 index 000000000..8f9777646 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-left-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-right-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-right-corners-rtl.gif new file mode 100644 index 000000000..b6158d3fd Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-right-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-right-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-right-corners.gif new file mode 100644 index 000000000..2b532594a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-right-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-right-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-right-sides.gif new file mode 100644 index 000000000..8f9777646 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-right-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-top-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-top-corners.gif new file mode 100644 index 000000000..963f4f729 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-top-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-top-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-top-sides.gif new file mode 100644 index 000000000..e6ffaa53d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel-header/panel-header-light-framed-top-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel/panel-default-framed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel/panel-default-framed-corners.gif new file mode 100644 index 000000000..811e71ff0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel/panel-default-framed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel/panel-default-framed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel/panel-default-framed-sides.gif new file mode 100644 index 000000000..9db639f5a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel/panel-default-framed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel/panel-light-framed-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/panel/panel-light-framed-corners.gif new file mode 100644 index 000000000..47c893104 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel/panel-light-framed-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/panel/panel-light-framed-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/panel/panel-light-framed-sides.gif new file mode 100644 index 000000000..8f9777646 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/panel/panel-light-framed-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/shared/icon-error.png b/frontend/build/production/CatalogBuilder/resources/images/shared/icon-error.png new file mode 100644 index 000000000..a34a5940f Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/shared/icon-error.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/shared/icon-info.png b/frontend/build/production/CatalogBuilder/resources/images/shared/icon-info.png new file mode 100644 index 000000000..8a01a4675 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/shared/icon-info.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/shared/icon-question.png b/frontend/build/production/CatalogBuilder/resources/images/shared/icon-question.png new file mode 100644 index 000000000..8411a757a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/shared/icon-question.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/shared/icon-warning.png b/frontend/build/production/CatalogBuilder/resources/images/shared/icon-warning.png new file mode 100644 index 000000000..461c60c70 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/shared/icon-warning.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/sizer/e-handle.png b/frontend/build/production/CatalogBuilder/resources/images/sizer/e-handle.png new file mode 100644 index 000000000..2fe5cb15d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/sizer/e-handle.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/sizer/ne-handle.png b/frontend/build/production/CatalogBuilder/resources/images/sizer/ne-handle.png new file mode 100644 index 000000000..8d8eb6387 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/sizer/ne-handle.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/sizer/nw-handle.png b/frontend/build/production/CatalogBuilder/resources/images/sizer/nw-handle.png new file mode 100644 index 000000000..9835bea83 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/sizer/nw-handle.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/sizer/s-handle.png b/frontend/build/production/CatalogBuilder/resources/images/sizer/s-handle.png new file mode 100644 index 000000000..06f914e7c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/sizer/s-handle.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/sizer/se-handle.png b/frontend/build/production/CatalogBuilder/resources/images/sizer/se-handle.png new file mode 100644 index 000000000..5a2c695c7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/sizer/se-handle.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/sizer/sw-handle.png b/frontend/build/production/CatalogBuilder/resources/images/sizer/sw-handle.png new file mode 100644 index 000000000..7f68f406a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/sizer/sw-handle.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/slider/slider-bg.png b/frontend/build/production/CatalogBuilder/resources/images/slider/slider-bg.png new file mode 100644 index 000000000..1ade2925b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/slider/slider-bg.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/slider/slider-thumb.png b/frontend/build/production/CatalogBuilder/resources/images/slider/slider-thumb.png new file mode 100644 index 000000000..d8a03de94 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/slider/slider-thumb.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/slider/slider-v-bg.png b/frontend/build/production/CatalogBuilder/resources/images/slider/slider-v-bg.png new file mode 100644 index 000000000..c24663e50 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/slider/slider-v-bg.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/slider/slider-v-thumb.png b/frontend/build/production/CatalogBuilder/resources/images/slider/slider-v-thumb.png new file mode 100644 index 000000000..d8a03de94 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/slider/slider-v-thumb.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-bottom.png b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-bottom.png new file mode 100644 index 000000000..25a21b9e1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-bottom.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-left.png b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-left.png new file mode 100644 index 000000000..5bebb886d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-right.png b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-right.png new file mode 100644 index 000000000..eb2d6512f Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-right.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-top.png b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-top.png new file mode 100644 index 000000000..c17d012ba Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-plain-scroll-top.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-bottom.png b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-bottom.png new file mode 100644 index 000000000..25a21b9e1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-bottom.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-left.png b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-left.png new file mode 100644 index 000000000..5bebb886d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-right.png b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-right.png new file mode 100644 index 000000000..eb2d6512f Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-right.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-top.png b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-top.png new file mode 100644 index 000000000..c17d012ba Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab-bar/default-scroll-top.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-active-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-active-corners.gif new file mode 100644 index 000000000..0590f7021 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-active-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-active-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-active-fbg.gif new file mode 100644 index 000000000..622ce8864 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-active-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-active-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-active-sides.gif new file mode 100644 index 000000000..f3b4e9a44 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-active-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-corners.gif new file mode 100644 index 000000000..e9fa07bb2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-disabled-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-disabled-corners.gif new file mode 100644 index 000000000..e9fa07bb2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-disabled-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-disabled-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-disabled-fbg.gif new file mode 100644 index 000000000..d3325bc61 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-disabled-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-disabled-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-disabled-sides.gif new file mode 100644 index 000000000..bc9193075 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-disabled-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-active-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-active-corners.gif new file mode 100644 index 000000000..159e448c1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-active-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-active-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-active-fbg.gif new file mode 100644 index 000000000..622ce8864 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-active-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-active-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-active-sides.gif new file mode 100644 index 000000000..9cf3f06b5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-active-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-corners.gif new file mode 100644 index 000000000..e590530a0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-fbg.gif new file mode 100644 index 000000000..d3325bc61 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-over-corners.gif new file mode 100644 index 000000000..03ed4fc21 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-over-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-over-fbg.gif new file mode 100644 index 000000000..3934d42c4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-over-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-over-sides.gif new file mode 100644 index 000000000..30423e4d0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-sides.gif new file mode 100644 index 000000000..0aa962e11 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-focus-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-over-corners.gif new file mode 100644 index 000000000..577e93e9d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-over-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-over-fbg.gif new file mode 100644 index 000000000..3934d42c4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-over-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-over-sides.gif new file mode 100644 index 000000000..8c1a73dce Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-sides.gif new file mode 100644 index 000000000..8eb3672b6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-bottom-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-close.png b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-close.png new file mode 100644 index 000000000..59bc73808 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-close.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-active-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-active-corners.gif new file mode 100644 index 000000000..0590f7021 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-active-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-active-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-active-fbg.gif new file mode 100644 index 000000000..2c134345b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-active-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-active-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-active-sides.gif new file mode 100644 index 000000000..8c7e81aeb Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-active-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-corners.gif new file mode 100644 index 000000000..e9fa07bb2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-disabled-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-disabled-corners.gif new file mode 100644 index 000000000..e9fa07bb2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-disabled-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-disabled-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-disabled-fbg.gif new file mode 100644 index 000000000..9ab4a921c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-disabled-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-disabled-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-disabled-sides.gif new file mode 100644 index 000000000..8eb3672b6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-disabled-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-active-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-active-corners.gif new file mode 100644 index 000000000..159e448c1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-active-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-active-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-active-fbg.gif new file mode 100644 index 000000000..2c134345b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-active-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-active-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-active-sides.gif new file mode 100644 index 000000000..e3b81efe7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-active-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-corners.gif new file mode 100644 index 000000000..e590530a0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-fbg.gif new file mode 100644 index 000000000..9ab4a921c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-over-corners.gif new file mode 100644 index 000000000..03ed4fc21 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-over-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-over-fbg.gif new file mode 100644 index 000000000..f562b581c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-over-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-over-sides.gif new file mode 100644 index 000000000..7e76a547e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-sides.gif new file mode 100644 index 000000000..39a337e23 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-focus-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-over-corners.gif new file mode 100644 index 000000000..577e93e9d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-over-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-over-fbg.gif new file mode 100644 index 000000000..f562b581c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-over-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-over-sides.gif new file mode 100644 index 000000000..f82addcb0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-sides.gif new file mode 100644 index 000000000..8eb3672b6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-left-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-active-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-active-corners.gif new file mode 100644 index 000000000..0590f7021 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-active-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-active-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-active-fbg.gif new file mode 100644 index 000000000..2c134345b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-active-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-active-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-active-sides.gif new file mode 100644 index 000000000..8c7e81aeb Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-active-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-corners.gif new file mode 100644 index 000000000..e9fa07bb2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-disabled-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-disabled-corners.gif new file mode 100644 index 000000000..e9fa07bb2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-disabled-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-disabled-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-disabled-fbg.gif new file mode 100644 index 000000000..9ab4a921c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-disabled-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-disabled-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-disabled-sides.gif new file mode 100644 index 000000000..8eb3672b6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-disabled-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-active-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-active-corners.gif new file mode 100644 index 000000000..159e448c1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-active-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-active-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-active-fbg.gif new file mode 100644 index 000000000..2c134345b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-active-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-active-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-active-sides.gif new file mode 100644 index 000000000..e3b81efe7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-active-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-corners.gif new file mode 100644 index 000000000..e590530a0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-fbg.gif new file mode 100644 index 000000000..9ab4a921c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-over-corners.gif new file mode 100644 index 000000000..03ed4fc21 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-over-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-over-fbg.gif new file mode 100644 index 000000000..f562b581c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-over-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-over-sides.gif new file mode 100644 index 000000000..7e76a547e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-sides.gif new file mode 100644 index 000000000..39a337e23 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-focus-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-over-corners.gif new file mode 100644 index 000000000..577e93e9d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-over-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-over-fbg.gif new file mode 100644 index 000000000..f562b581c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-over-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-over-sides.gif new file mode 100644 index 000000000..f82addcb0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-sides.gif new file mode 100644 index 000000000..8eb3672b6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-right-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-active-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-active-corners.gif new file mode 100644 index 000000000..0590f7021 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-active-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-active-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-active-fbg.gif new file mode 100644 index 000000000..622ce8864 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-active-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-active-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-active-sides.gif new file mode 100644 index 000000000..f3b4e9a44 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-active-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-corners.gif new file mode 100644 index 000000000..e9fa07bb2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-disabled-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-disabled-corners.gif new file mode 100644 index 000000000..e9fa07bb2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-disabled-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-disabled-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-disabled-fbg.gif new file mode 100644 index 000000000..d3325bc61 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-disabled-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-disabled-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-disabled-sides.gif new file mode 100644 index 000000000..bc9193075 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-disabled-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-active-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-active-corners.gif new file mode 100644 index 000000000..159e448c1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-active-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-active-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-active-fbg.gif new file mode 100644 index 000000000..622ce8864 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-active-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-active-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-active-sides.gif new file mode 100644 index 000000000..9cf3f06b5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-active-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-corners.gif new file mode 100644 index 000000000..e590530a0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-fbg.gif new file mode 100644 index 000000000..d3325bc61 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-over-corners.gif new file mode 100644 index 000000000..03ed4fc21 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-over-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-over-fbg.gif new file mode 100644 index 000000000..3934d42c4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-over-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-over-sides.gif new file mode 100644 index 000000000..30423e4d0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-sides.gif new file mode 100644 index 000000000..0aa962e11 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-focus-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-over-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-over-corners.gif new file mode 100644 index 000000000..577e93e9d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-over-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-over-fbg.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-over-fbg.gif new file mode 100644 index 000000000..3934d42c4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-over-fbg.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-over-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-over-sides.gif new file mode 100644 index 000000000..8c1a73dce Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-over-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-sides.gif new file mode 100644 index 000000000..8eb3672b6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tab/tab-default-top-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tip/tip-default-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tip/tip-default-corners.gif new file mode 100644 index 000000000..d32b515a2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tip/tip-default-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tip/tip-default-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tip/tip-default-sides.gif new file mode 100644 index 000000000..ef8cad00c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tip/tip-default-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tip/tip-form-invalid-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/tip/tip-form-invalid-corners.gif new file mode 100644 index 000000000..d32b515a2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tip/tip-form-invalid-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tip/tip-form-invalid-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/tip/tip-form-invalid-sides.gif new file mode 100644 index 000000000..ef8cad00c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tip/tip-form-invalid-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-more-left.png b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-more-left.png new file mode 100644 index 000000000..8af67e383 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-more-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-more.png b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-more.png new file mode 100644 index 000000000..8af67e383 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-more.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-bottom.png b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-bottom.png new file mode 100644 index 000000000..8574124c4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-bottom.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-left.png b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-left.png new file mode 100644 index 000000000..9d96ae2e6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-right.png b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-right.png new file mode 100644 index 000000000..b741af22d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-right.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-top.png b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-top.png new file mode 100644 index 000000000..4d0b46474 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/toolbar/default-scroll-top.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-more-left.png b/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-more-left.png new file mode 100644 index 000000000..8af67e383 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-more-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-more.png b/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-more.png new file mode 100644 index 000000000..8af67e383 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-more.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-scroll-left.png b/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-scroll-left.png new file mode 100644 index 000000000..fbaae2f2e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-scroll-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-scroll-right.png b/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-scroll-right.png new file mode 100644 index 000000000..dfff9dc95 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/toolbar/footer-scroll-right.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tools/tool-sprites-dark.png b/frontend/build/production/CatalogBuilder/resources/images/tools/tool-sprites-dark.png new file mode 100644 index 000000000..a731a0283 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tools/tool-sprites-dark.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tools/tool-sprites.png b/frontend/build/production/CatalogBuilder/resources/images/tools/tool-sprites.png new file mode 100644 index 000000000..25f50bde4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tools/tool-sprites.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/arrows-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/arrows-rtl.png new file mode 100644 index 000000000..8f11681fa Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/arrows-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/arrows.png b/frontend/build/production/CatalogBuilder/resources/images/tree/arrows.png new file mode 100644 index 000000000..801ef40d9 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/arrows.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-above.png b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-above.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-above.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-add.gif b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-add.gif new file mode 100644 index 000000000..b22cd1448 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-add.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-add.png b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-add.png new file mode 100644 index 000000000..c9d24fd82 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-add.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-append.png b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-append.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-append.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-below.png b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-below.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-below.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-between.gif b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-between.gif new file mode 100644 index 000000000..f5a042d72 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-between.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-between.png b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-between.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-between.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-no.gif b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-no.gif new file mode 100644 index 000000000..9d9c6a9ce Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-no.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-no.png b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-no.png new file mode 100644 index 000000000..bb89cfc14 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-no.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-over.gif b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-over.gif new file mode 100644 index 000000000..2e514e7e1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-over.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-over.png b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-over.png new file mode 100644 index 000000000..70d1807f0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-over.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-under.gif b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-under.gif new file mode 100644 index 000000000..8535ef468 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-under.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-under.png b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-under.png new file mode 100644 index 000000000..3ba23b37a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-under.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-yes.gif b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-yes.gif new file mode 100644 index 000000000..8aacb307e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-yes.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/drop-yes.png b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-yes.png new file mode 100644 index 000000000..83d0dbc27 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/drop-yes.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-minus-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-minus-rtl.png new file mode 100644 index 000000000..675e49b31 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-minus-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-minus.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-minus.png new file mode 100644 index 000000000..404ad2b24 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-minus.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-plus-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-plus-rtl.png new file mode 100644 index 000000000..469eb2da0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-plus-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-plus.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-plus.png new file mode 100644 index 000000000..6b3e8d054 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-plus.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-rtl.png new file mode 100644 index 000000000..8bf0b0005 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end.png new file mode 100644 index 000000000..bcbe95fd0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-end.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-line-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-line-rtl.png new file mode 100644 index 000000000..f36d1e4c6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-line-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-line.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-line.png new file mode 100644 index 000000000..ef3ec9bc3 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-line.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus-nl-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus-nl-rtl.png new file mode 100644 index 000000000..51ccccc1f Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus-nl-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus-nl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus-nl.png new file mode 100644 index 000000000..6ff32f22d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus-nl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus-rtl.png new file mode 100644 index 000000000..76238ee08 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus.png new file mode 100644 index 000000000..65c29ce89 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-minus.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus-nl-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus-nl-rtl.png new file mode 100644 index 000000000..fe6917e62 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus-nl-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus-nl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus-nl.png new file mode 100644 index 000000000..348fcb9a7 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus-nl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus-rtl.png new file mode 100644 index 000000000..26f263da0 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus.png new file mode 100644 index 000000000..b9568caa5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-plus.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-rtl.png new file mode 100644 index 000000000..62c01a8ae Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/elbow.png b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow.png new file mode 100644 index 000000000..877827b84 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/elbow.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/folder-open-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/folder-open-rtl.png new file mode 100644 index 000000000..05f6f71f1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/folder-open-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/folder-open.png b/frontend/build/production/CatalogBuilder/resources/images/tree/folder-open.png new file mode 100644 index 000000000..0e6ef486e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/folder-open.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/folder-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/folder-rtl.png new file mode 100644 index 000000000..0bdcb871b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/folder-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/folder.png b/frontend/build/production/CatalogBuilder/resources/images/tree/folder.png new file mode 100644 index 000000000..698eab979 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/folder.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/leaf-rtl.png b/frontend/build/production/CatalogBuilder/resources/images/tree/leaf-rtl.png new file mode 100644 index 000000000..7a38a487e Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/leaf-rtl.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/leaf.png b/frontend/build/production/CatalogBuilder/resources/images/tree/leaf.png new file mode 100644 index 000000000..c2e21c983 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/leaf.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/tree/loading.gif b/frontend/build/production/CatalogBuilder/resources/images/tree/loading.gif new file mode 100644 index 000000000..81b0f1257 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/tree/loading.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-bottom.png b/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-bottom.png new file mode 100644 index 000000000..fdb367d4d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-bottom.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-left.png b/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-left.png new file mode 100644 index 000000000..2d7597c95 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-left.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-right.png b/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-right.png new file mode 100644 index 000000000..521a5c4e1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-right.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-top.png b/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-top.png new file mode 100644 index 000000000..b39c4ca41 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/util/splitter/mini-top.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-bottom-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-bottom-corners.gif new file mode 100644 index 000000000..e86e3fe48 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-bottom-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-bottom-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-bottom-sides.gif new file mode 100644 index 000000000..0220b8173 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-bottom-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-bottom-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-bottom-corners.gif new file mode 100644 index 000000000..e99ce1467 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-bottom-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-bottom-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-bottom-sides.gif new file mode 100644 index 000000000..0220b8173 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-bottom-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-left-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-left-corners-rtl.gif new file mode 100644 index 000000000..34cf49d73 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-left-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-left-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-left-corners.gif new file mode 100644 index 000000000..e99ce1467 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-left-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-left-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-left-sides.gif new file mode 100644 index 000000000..63131ee04 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-left-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-right-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-right-corners-rtl.gif new file mode 100644 index 000000000..34cf49d73 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-right-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-right-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-right-corners.gif new file mode 100644 index 000000000..e99ce1467 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-right-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-right-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-right-sides.gif new file mode 100644 index 000000000..63131ee04 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-right-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-top-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-top-corners.gif new file mode 100644 index 000000000..e99ce1467 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-top-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-top-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-top-sides.gif new file mode 100644 index 000000000..0220b8173 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-collapsed-top-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-left-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-left-corners-rtl.gif new file mode 100644 index 000000000..95a735897 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-left-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-left-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-left-corners.gif new file mode 100644 index 000000000..c1d9d921d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-left-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-left-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-left-sides.gif new file mode 100644 index 000000000..63131ee04 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-left-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-right-corners-rtl.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-right-corners-rtl.gif new file mode 100644 index 000000000..ee1565572 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-right-corners-rtl.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-right-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-right-corners.gif new file mode 100644 index 000000000..b3e727e94 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-right-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-right-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-right-sides.gif new file mode 100644 index 000000000..63131ee04 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-right-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-top-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-top-corners.gif new file mode 100644 index 000000000..8680f8ac1 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-top-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-top-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-top-sides.gif new file mode 100644 index 000000000..0220b8173 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window-header/window-header-default-top-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window/toast/fade-blue.png b/frontend/build/production/CatalogBuilder/resources/images/window/toast/fade-blue.png new file mode 100644 index 000000000..4dbf08b0d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window/toast/fade-blue.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window/toast/fader.png b/frontend/build/production/CatalogBuilder/resources/images/window/toast/fader.png new file mode 100644 index 000000000..be8c27fa2 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window/toast/fader.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window/toast/icon16_error.png b/frontend/build/production/CatalogBuilder/resources/images/window/toast/icon16_error.png new file mode 100644 index 000000000..5f168d326 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window/toast/icon16_error.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window/toast/icon16_info.png b/frontend/build/production/CatalogBuilder/resources/images/window/toast/icon16_info.png new file mode 100644 index 000000000..6c6b32d02 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window/toast/icon16_info.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window/window-default-corners.gif b/frontend/build/production/CatalogBuilder/resources/images/window/window-default-corners.gif new file mode 100644 index 000000000..c11442b5c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window/window-default-corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/images/window/window-default-sides.gif b/frontend/build/production/CatalogBuilder/resources/images/window/window-default-sides.gif new file mode 100644 index 000000000..9db639f5a Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/images/window/window-default-sides.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/Readme.md b/frontend/build/production/CatalogBuilder/resources/ux/Readme.md new file mode 100644 index 000000000..e69de29bb diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/checkerboard.png b/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/checkerboard.png new file mode 100644 index 000000000..1ffb3f353 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/checkerboard.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/drag_circle.png b/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/drag_circle.png new file mode 100644 index 000000000..be2d8069b Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/drag_circle.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/huegradient.png b/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/huegradient.png new file mode 100644 index 000000000..3186a2199 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/huegradient.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/map_gradient.png b/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/map_gradient.png new file mode 100644 index 000000000..43950f4fe Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/map_gradient.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/pickerslider.png b/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/pickerslider.png new file mode 100644 index 000000000..71f2a43f6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/colorpick/pickerslider.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/dashboard/magnify.png b/frontend/build/production/CatalogBuilder/resources/ux/images/dashboard/magnify.png new file mode 100644 index 000000000..0efc44702 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/dashboard/magnify.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/explorer/leaf.png b/frontend/build/production/CatalogBuilder/resources/ux/images/explorer/leaf.png new file mode 100644 index 000000000..159292746 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/explorer/leaf.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/explorer/node.png b/frontend/build/production/CatalogBuilder/resources/ux/images/explorer/node.png new file mode 100644 index 000000000..b43e08223 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/explorer/node.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/grouptabpanel/corners.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/grouptabpanel/corners.gif new file mode 100644 index 000000000..482ba389d Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/grouptabpanel/corners.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/grouptabpanel/minus.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/grouptabpanel/minus.gif new file mode 100644 index 000000000..928779e92 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/grouptabpanel/minus.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/grouptabpanel/plus.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/grouptabpanel/plus.gif new file mode 100644 index 000000000..9f7f69880 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/grouptabpanel/plus.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/bottom.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/bottom.gif new file mode 100644 index 000000000..2fb7544ca Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/bottom.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/down.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/down.gif new file mode 100644 index 000000000..7522129b6 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/down.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/left.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/left.gif new file mode 100644 index 000000000..65f1aab50 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/left.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/right.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/right.gif new file mode 100644 index 000000000..83c814af9 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/right.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/top.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/top.gif new file mode 100644 index 000000000..ff0be7812 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/top.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/up.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/up.gif new file mode 100644 index 000000000..093adc2c5 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/itemselector/up.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/statusbar/accept.png b/frontend/build/production/CatalogBuilder/resources/ux/images/statusbar/accept.png new file mode 100644 index 000000000..89c8129a4 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/statusbar/accept.png differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/statusbar/exclamation.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/statusbar/exclamation.gif new file mode 100644 index 000000000..ea31a3060 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/statusbar/exclamation.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/statusbar/loading.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/statusbar/loading.gif new file mode 100644 index 000000000..e846e1d6c Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/statusbar/loading.gif differ diff --git a/frontend/build/production/CatalogBuilder/resources/ux/images/tabscrollermenu/menu.gif b/frontend/build/production/CatalogBuilder/resources/ux/images/tabscrollermenu/menu.gif new file mode 100644 index 000000000..24fa7d296 Binary files /dev/null and b/frontend/build/production/CatalogBuilder/resources/ux/images/tabscrollermenu/menu.gif differ diff --git a/frontend/build/production/DynamicForm/app.js b/frontend/build/production/DynamicForm/app.js new file mode 100644 index 000000000..c4c7ec33d --- /dev/null +++ b/frontend/build/production/DynamicForm/app.js @@ -0,0 +1 @@ +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.defineProperty=typeof Object.defineProperties=='function'?Object.defineProperty:function(b,c,a){a=a;if(b==Array.prototype||b==Object.prototype){return}b[c]=a.value};$jscomp.getGlobal=function(a){return typeof window!='undefined'&&window===a?a:typeof global!='undefined'&&global!=null?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(i,f,j,k){if(!f){return}var a=$jscomp.global;var b=i.split('.');for(var e=0;ec){if(--b in this){this[--d]=this[b]}else {delete this[d]}}}return this};return b},'es6-impl','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global['Symbol']){$jscomp.global['Symbol']=$jscomp.Symbol}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||'')+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global['Symbol'].iterator;if(!a){a=$jscomp.global['Symbol'].iterator=$jscomp.global['Symbol']('iterator')}if(typeof Array.prototype[a]!='function'){$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}})}$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){if(bd){b=d}b=Number(b);if(b<0){b=Math.max(0,d+b)}for(var e=Number(c||0);e-0.25){var f=b;var g=1;var c=b;var d=0;var e=1;while(d!=c){f*=b;e*=-1;c=(d=c)+e*f/++g}return c}return Math.log(1+b)};return b},'es6-impl','es3');$jscomp.polyfill('Math.atanh',function(b){if(b){return b}var a=Math.log1p;var c=function(c){c=Number(c);return (a(c)-a(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.cbrt',function(a){if(a){return a}var b=function(b){if(b===0){return b}b=Number(b);var c=Math.pow(Math.abs(b),1/3);return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Math.clz32',function(a){if(a){return a}var b=function(b){b=Number(b)>>>0;if(b===0){return 32}var c=0;if((b&4.29490176E9)===0){b<<=16;c+=16}if((b&4.27819008E9)===0){b<<=8;c+=8}if((b&4.02653184E9)===0){b<<=4;c+=4}if((b&3.221225472E9)===0){b<<=2;c+=2}if((b&2.147483648E9)===0){c++}return c};return b},'es6-impl','es3');$jscomp.polyfill('Math.cosh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);return (b(c)+b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.expm1',function(a){if(a){return a}var b=function(b){b=Number(b);if(b<0.25&&b>-0.25){var e=b;var f=1;var c=b;var d=0;while(d!=c){e*=b/++f;c=(d=c)+e}return c}return Math.exp(b)-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.hypot',function(a){if(a){return a}var b=function(c,d,h){c=Number(c);d=Number(d);var b,g,f;var e=Math.max(Math.abs(c),Math.abs(d));for(b=2;b1.0E100||e<1.0E-100){c=c/e;d=d/e;f=c*c+d*d;for(b=2;b>>16&65535;var d=b&65535;var g=c>>>16&65535;var e=c&65535;var h=f*e+d*g<<16>>>0;return d*e+h|0};return b},'es6-impl','es3');$jscomp.polyfill('Math.log10',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN10};return b},'es6-impl','es3');$jscomp.polyfill('Math.log2',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN2};return b},'es6-impl','es3');$jscomp.polyfill('Math.sign',function(a){if(a){return a}var b=function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.sinh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);if(c===0){return c}return (b(c)-b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.tanh',function(a){if(a){return a}var b=function(b){b=Number(b);if(b===0){return b}var c=Math.exp(-2*Math.abs(b));var d=(1-c)/(1+c);return b<0?-d:d};return b},'es6-impl','es3');$jscomp.polyfill('Math.trunc',function(a){if(a){return a}var b=function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0){return b}var c=Math.floor(Math.abs(b));return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Number.EPSILON',function(a){return Math.pow(2,-52)},'es6-impl','es3');$jscomp.polyfill('Number.MAX_SAFE_INTEGER',function(){return 9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.MIN_SAFE_INTEGER',function(){return -9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.isFinite',function(a){if(a){return a}var b=function(b){if(typeof b!=='number'){return !1}return !isNaN(b)&&b!==Infinity&&b!==-Infinity};return b},'es6-impl','es3');$jscomp.polyfill('Number.isInteger',function(a){if(a){return a}var b=function(b){if(!Number.isFinite(b)){return !1}return b===Math.floor(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isNaN',function(a){if(a){return a}var b=function(b){return typeof b==='number'&&isNaN(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isSafeInteger',function(a){if(a){return a}var b=function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER};return b},'es6-impl','es3');$jscomp.polyfill('Object.assign',function(a){if(a){return a}var b=function(e,f){for(var d=1;d3?f:b,e);return !0}else {if(c.writable&&!Object.isFrozen(b)){b[d]=e;return !0}}return !1};return b},'es6','es5');$jscomp.polyfill('Reflect.setPrototypeOf',function(a){if(a){return a}if(typeof ''.__proto__!='object'){return null}var b=function(b,c){try{b.__proto__=c;return b.__proto__===c}catch(d){return !1}};return b},'es6','es5');$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.polyfill('Set',function(b){var c=!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!b||!b.prototype.entries||typeof Object.seal!='function'){return !1}try{b=b;var d=Object.seal({x:4});var c=new b($jscomp.makeIterator([d]));if(!c.has(d)||c.size!=1||c.add(d)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2){return !1}var e=c.entries();var a=e.next();if(a.done||a.value[0]!=d||a.value[1]!=d){return !1}a=e.next();if(a.done||a.value[0]==d||a.value[0].x!=4||a.value[1]!=a.value[0]){return !1}return e.next().done}catch(f){return !1}}();if(c){return b}$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=function(a){this.map_=new Map();if(a){var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}this.size=this.map_.size};a.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};a.prototype['delete']=function(c){var a=this.map_['delete'](c);this.size=this.map_.size;return a};a.prototype.clear=function(){this.map_.clear();this.size=0};a.prototype.has=function(a){return this.map_.has(a)};a.prototype.entries=function(){return this.map_.entries()};a.prototype.values=function(){return this.map_.values()};a.prototype.keys=a.prototype.values;a.prototype[Symbol.iterator]=a.prototype.values;a.prototype.forEach=function(c,a){var d=this;this.map_.forEach(function(e){return c.call(a,e,e,d)})};return a},'es6-impl','es3');$jscomp.checkStringArgs=function(a,c,b){if(a==null){throw new TypeError("The 'this' value for String.prototype."+b+' must not be null or undefined')}if(c instanceof RegExp){throw new TypeError('First argument to String.prototype.'+b+' must not be a regular expression')}return a+''};$jscomp.polyfill('String.prototype.codePointAt',function(a){if(a){return a}var b=function(b){var e=$jscomp.checkStringArgs(this,null,'codePointAt');var f=e.length;b=Number(b)||0;if(!(b>=0&&b56319||b+1===f){return c}var d=e.charCodeAt(b+1);if(d<56320||d>57343){return c}return (c-55296)*1024+d+9216};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.endsWith',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'endsWith');b=b+'';if(c===void 0){c=d.length}var f=Math.max(0,Math.min(c|0,d.length));var e=b.length;while(e>0&&f>0){if(d[--f]!=b[--e]){return !1}}return e<=0};return b},'es6-impl','es3');$jscomp.polyfill('String.fromCodePoint',function(a){if(a){return a}var b=function(e){var c='';for(var d=0;d1114111||b!==Math.floor(b)){throw new RangeError('invalid_code_point '+b)}if(b<=65535){c+=String.fromCharCode(b)}else {b-=65536;c+=String.fromCharCode(b>>>10&1023|55296);c+=String.fromCharCode(b&1023|56320)}}return c};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.includes',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'includes');return d.indexOf(b,c||0)!==-1};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.repeat',function(a){if(a){return a}var b=function(b){var c=$jscomp.checkStringArgs(this,null,'repeat');if(b<0||b>1342177279){throw new RangeError('Invalid count value')}b=b|0;var d='';while(b){if(b&1){d+=c}if(b>>>=1){c+=c}}return d};return b},'es6-impl','es3');$jscomp.stringPadding=function(c,a){var b=c!==undefined?String(c):' ';if(!(a>0)||!b){return ''}var d=Math.ceil(a/b.length);return b.repeat(d).substring(0,a)};$jscomp.polyfill('String.prototype.padEnd',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return b+$jscomp.stringPadding(c,e)};return b},'es8','es3');$jscomp.polyfill('String.prototype.padStart',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return $jscomp.stringPadding(c,e)+b};return b},'es8','es3');$jscomp.polyfill('String.prototype.startsWith',function(a){if(a){return a}var b=function(b,g){var c=$jscomp.checkStringArgs(this,b,'startsWith');b=b+'';var h=c.length;var e=b.length;var f=Math.max(0,Math.min(g|0,c.length));var d=0;while(d=e};return b},'es6-impl','es3');$jscomp.arrayFromIterator=function(c){var b;var a=[];while(!(b=c.next()).done){a.push(b.value)}return a};$jscomp.arrayFromIterable=function(a){if(a instanceof Array){return a}else {return $jscomp.arrayFromIterator($jscomp.makeIterator(a))}};$jscomp.inherits=function(a,b){function tempCtor(){}tempCtor.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new tempCtor();a.prototype.constructor=a;for(var c in b){if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);if(d){Object.defineProperty(a,c,d)}}else {a[c]=b[c]}}};$jscomp.polyfill('WeakSet',function(b){function isConformant(){if(!b||!Object.seal){return !1}try{var c=Object.seal({});var d=Object.seal({});var a=new b([c]);if(!a.has(c)||a.has(d)){return !1}a['delete'](c);a.add(d);return !a.has(c)&&a.has(d)}catch(e){return !1}}if(isConformant()){return b}var a=function(a){this.map_=new WeakMap();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}};a.prototype.add=function(a){this.map_.set(a,!0);return this};a.prototype.has=function(a){return this.map_.has(a)};a.prototype['delete']=function(a){return this.map_['delete'](a)};return a},'es6-impl','es3');try{if(Array.prototype.values.toString().indexOf('[native code]')==-1){delete Array.prototype.values}}catch(a){}var DynamicForm=DynamicForm||{};if(!DynamicForm.view){DynamicForm.view={}}if(!DynamicForm.view.main){DynamicForm.view.main={}}var Ext=Ext||{};if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.app.bind){Ext.app.bind={}}if(!Ext.app.domain){Ext.app.domain={}}if(!Ext.app.route){Ext.app.route={}}if(!Ext.button){Ext.button={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}if(!Ext.data){Ext.data={}}if(!Ext.data.field){Ext.data.field={}}if(!Ext.data.flash){Ext.data.flash={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.matrix){Ext.data.matrix={}}if(!Ext.data.operation){Ext.data.operation={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.request){Ext.data.request={}}if(!Ext.data.schema){Ext.data.schema={}}if(!Ext.data.session){Ext.data.session={}}if(!Ext.data.validator){Ext.data.validator={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dd){Ext.dd={}}if(!Ext.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.form){Ext.form={}}if(!Ext.form.Action){Ext.form.Action={}}if(!Ext.form.action){Ext.form.action={}}if(!Ext.form.field){Ext.form.field={}}if(!Ext.form.trigger){Ext.form.trigger={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.fx.target){Ext.fx.target={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.boxOverflow){Ext.layout.boxOverflow={}}if(!Ext.layout.component){Ext.layout.component={}}if(!Ext.layout.container){Ext.layout.container={}}if(!Ext.layout.container.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.overrides){Ext.overrides={}}if(!Ext.overrides.app){Ext.overrides.app={}}if(!Ext.overrides.app.domain){Ext.overrides.app.domain={}}if(!Ext.overrides.dom){Ext.overrides.dom={}}if(!Ext.overrides.event){Ext.overrides.event={}}if(!Ext.overrides.event.publisher){Ext.overrides.event.publisher={}}if(!Ext.overrides.util){Ext.overrides.util={}}if(!Ext.panel){Ext.panel={}}if(!Ext.perf){Ext.perf={}}if(!Ext.picker){Ext.picker={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.promise){Ext.promise={}}if(!Ext.resizer){Ext.resizer={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.selection){Ext.selection={}}if(!Ext.state){Ext.state={}}if(!Ext.tab){Ext.tab={}}if(!Ext.theme){Ext.theme={}}if(!Ext.theme.neptune){Ext.theme.neptune={}}if(!Ext.theme.neptune.layout){Ext.theme.neptune.layout={}}if(!Ext.theme.neptune.layout.component){Ext.theme.neptune.layout.component={}}if(!Ext.theme.neptune.menu){Ext.theme.neptune.menu={}}if(!Ext.theme.neptune.panel){Ext.theme.neptune.panel={}}if(!Ext.theme.neptune.picker){Ext.theme.neptune.picker={}}if(!Ext.theme.neptune.resizer){Ext.theme.neptune.resizer={}}if(!Ext.theme.neptune.toolbar){Ext.theme.neptune.toolbar={}}if(!Ext.theme.triton){Ext.theme.triton={}}if(!Ext.theme.triton.form){Ext.theme.triton.form={}}if(!Ext.theme.triton.form.field){Ext.theme.triton.form.field={}}if(!Ext.theme.triton.menu){Ext.theme.triton.menu={}}if(!Ext.theme.triton.picker){Ext.theme.triton.picker={}}if(!Ext.theme.triton.resizer){Ext.theme.triton.resizer={}}if(!Ext.theme.triton.toolbar){Ext.theme.triton.toolbar={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.view){Ext.view={}}if(!Ext.window){Ext.window={}}(function(q){var e,p=['constructor','toString','valueOf','toLocaleString'],n={},m={},k=0,l,j,a,b,o,f,c,d,g,h,i,t=function(){var s,t;j=Ext.Base;a=Ext.ClassManager;b=Ext.Class;for(s=p.length;s-->0;){t=1<0;){H=e[l];g[H]=j[H]}if(c.$isFunction){c=c(g)}v.data=c;x=c.statics;delete c.statics;c.$className=u;if('$className' in c){g.$className=c.$className}g.extend(Q);r=g.prototype;if(E){g.xtype=c.xtype=E[0];r.xtypes=E}r.xtypesChain=M;r.xtypesMap=O;c.alias=B;m.triggerExtended(g,c,v);if(c.onClassExtended){g.onExtended(c.onClassExtended,g);delete c.onClassExtended}if(c.privates&&h){h.call(b,g,c)}if(x){if(i){g.addStatics(x)}else {for(w in x){if(x.hasOwnProperty(w)){t=x[w];if(t&&t.$isFunction&&!t.$isClass&&t!==Ext.emptyFn&&t!==Ext.identityFn){g[w]=I=t;I.$owner=g;I.$name=w}g[w]=t}}}}if(c.inheritableStatics){g.addInheritableStatics(c.inheritableStatics);delete c.inheritableStatics}if(r.onClassExtended){m.onExtended(r.onClassExtended,m);delete r.onClassExtended}if(c.platformConfig&&d){d.call(b,g,c);delete c.platformConfig}if(c.config){o.call(b,g,c)}if(c.cachedConfig&&f){f.call(b,g,c);delete c.cachedConfig}v.onBeforeCreated(g,v.data,v);for(l=0,y=D&&D.length;l0){c--;a[c]='var Ext=window.'+Ext.name+';'+a[c]}}d=a.join('');b=e[d];if(!b){b=Function.prototype.constructor.apply(Function.prototype,a);e[d]=b}return b},functionFactory:function(){var b=Array.prototype.slice.call(arguments),a;if(Ext.isSandboxed){a=b.length;if(a>0){a--;b[a]='var Ext=window.'+Ext.name+';'+b[a]}}return Function.prototype.constructor.apply(Function.prototype,b)},Logger:{verbose:a,log:a,info:a,warn:a,error:function(a){throw new Error(a)},deprecate:a},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:function(){var a={};return function(e,c){if(!e){return []}else {if(!c){return [e]}}var g=a[c]||(a[c]=new RegExp('\\\\'+c,'g')),f=[],d,b;d=e.split(c);while((b=d.shift())!==undefined){while(b.charAt(b.length-1)==='\\'&&d.length>0){b=b+c+d.shift()}b=b.replace(g,c);f.push(b)}return f}}()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=!0})();Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=!0);(function(){function toString(){var d=this,b=d.sourceClass,a=d.sourceMethod,c=d.msg;if(a){if(c){a+='(): ';a+=c}else {a+='()'}}if(b){a=a?b+'.'+a:b}return a||c||''}Ext.Error=function(b){if(Ext.isString(b)){b={msg:b}}var a=new Error();Ext.apply(a,b);a.message=a.message||a.msg;a.toString=toString;return a};Ext.apply(Ext.Error,{ignore:!1,raise:function(a){a=a||{};if(Ext.isString(a)){a={msg:a}}var d=this,b=d.raise.caller,e,c;if(b===Ext.raise){b=b.caller}if(b){if(!a.sourceMethod&&(c=b.$name)){a.sourceMethod=c}if(!a.sourceClass&&(c=b.$owner)&&(c=c.$className)){a.sourceClass=c}}if(d.handle(a)!==!0){e=toString.call(a);throw new Ext.Error(a)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=function(){var c=Array.prototype,b=c.slice,f=function(){var a=[],b,c=20;if(!a.splice){return !1}while(c--){a.push('A')}a.splice(15,0,'F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F');b=a.length;a.splice(13,0,'XXX');if(b+1!==a.length){return !1}return !0}(),i='indexOf' in c,h=!0;function stableSort(b,e){var d=b.length,c=new Array(d),a;for(a=0;ac){for(b=l;b--;){a[h+b]=a[c+b]}}}if(e&&f===j){a.length=j;a.push.apply(a,d)}else {a.length=j+e;for(b=0;b>1;f=d(i,h[e]);if(f>=0){c=e+1}else {if(f<0){b=e-1}}}return c},defaultCompare:function(a,b){return ab?1:0},lexicalCompare:function(a,b){a=String(a);b=String(b);return ab?1:0},each:function(c,e,d,g){c=a.from(c);var b,f=c.length;if(g!==!0){for(b=0;b-1;b--){if(e.call(d||c[b],c[b],b,c)===!1){return b}}}return !0},forEach:'forEach' in c?function(a,c,b){return a.forEach(c,b)}:function(b,d,c){for(var a=0,e=b.length;a=0&&b>>0,c=e;if(arguments.length<3){while(!0){if(b in a){c=a[b++];break}if(++b>=d){throw new TypeError('Reduce of empty array with no initial value')}}}for(;bb){b=a}}}return b},mean:function(b){return b.length>0?a.sum(b)/b.length:undefined},sum:function(b){var d=0,a,e,c;for(a=0,e=b.length;ab?1:-1,a;for(a=b;a!=d;a+=e){c[a]=c[a+e]}c[d]=f},replace:j,splice:p,push:function(a){var d=arguments.length,c=1,b;if(a===undefined){a=[]}else {if(!Ext.isArray(a)){a=[a]}}for(;c=d){a=0}else {a=d-a}}if(a===0){b=c+b}else {if(a>=b.length){b+=c}else {b=b.substr(0,a)+c+b.substr(a)}}return b},startsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.lastIndexOf(a,0)===0}return c},endsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.indexOf(a,b.length-a.length)!==-1}return c},createVarName:function(a){return a.replace(l,'')},htmlEncode:function(a){return !a?a:String(a).replace(b,h)},htmlDecode:function(a){return !a?a:String(a).replace(d,g)},hasHtmlCharacters:function(a){return b.test(a)},addCharacterEntities:function(g){var i=[],h=[],e,f;for(e in g){f=g[e];a[e]=f;c[f]=e;i.push(f);h.push(e)}b=new RegExp('('+i.join('|')+')','g');d=new RegExp('('+h.join('|')+'|&#[0-9]{1,5};)','g')},resetCharacterEntities:function(){c={};a={};this.addCharacterEntities({'&':'&','>':'>','<':'<','"':'"',''':"'"})},urlAppend:function(a,b){if(!Ext.isEmpty(b)){return a+(a.indexOf('?')===-1?'?':'&')+b}return a},trim:function(a){if(a){a=a.replace(m,'')}return a||''},capitalize:function(a){if(a){a=a.charAt(0).toUpperCase()+a.substr(1)}return a||''},uncapitalize:function(a){if(a){a=a.charAt(0).toLowerCase()+a.substr(1)}return a||''},ellipsis:function(a,c,e){if(a&&a.length>c){if(e){var b=a.substr(0,c-2),d=Math.max(b.lastIndexOf(' '),b.lastIndexOf('.'),b.lastIndexOf('!'),b.lastIndexOf('?'));if(d!==-1&&d>=c-15){return b.substr(0,d)+'...'}}return a.substr(0,c-3)+'...'}return a},escapeRegex:function(a){return a.replace(i,'\\$1')},createRegex:function(b,d,e,c){var a=b;if(b!=null&&!b.exec){a=f.escapeRegex(String(b));if(d!==!1){a='^'+a}if(e!==!1){a+='$'}a=new RegExp(a,c!==!1?'i':'')}return a},escape:function(a){return a.replace(n,'\\$1')},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,d,b){var a=String(c);b=b||' ';while(a.length daysInMonth) {','d = daysInMonth;','}','}','h = from(h, from(def.h, dt.getHours()));','i = from(i, from(def.i, dt.getMinutes()));','s = from(s, from(def.s, dt.getSeconds()));','ms = from(ms, from(def.ms, dt.getMilliseconds()));','if(z >= 0 && y >= 0){','v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);','}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){','v = null;','}else{','if (W) {','year = y || (new Date()).getFullYear();','jan4 = new Date(year, 0, 4, 0, 0, 0);','d = jan4.getDay();','week1monday = new Date(jan4.getTime() - ((d === 0 ? 6 : d - 1) * 86400000));','v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));','} else {','v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','}','}','}','}','if(v){','if(zz != null){','v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);','}else if(o){',"v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));",'}','}','return (v != null) ? v : null;'].join('\n');if(!Date.prototype.toISOString){Date.prototype.toISOString=function(){var a=this;return c(a.getUTCFullYear(),4,'0')+'-'+c(a.getUTCMonth()+1,2,'0')+'-'+c(a.getUTCDate(),2,'0')+'T'+c(a.getUTCHours(),2,'0')+':'+c(a.getUTCMinutes(),2,'0')+':'+c(a.getUTCSeconds(),2,'0')+'.'+c(a.getUTCMilliseconds(),3,'0')+'Z'}}function xf(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(e,function(d,c){return b[c]})}return a={now:b.now,toString:function(a){if(!a){a=new b()}return a.getFullYear()+'-'+c(a.getMonth()+1,2,'0')+'-'+c(a.getDate(),2,'0')+'T'+c(a.getHours(),2,'0')+':'+c(a.getMinutes(),2,'0')+':'+c(a.getSeconds(),2,'0')},getElapsed:function(b,c){return Math.abs(b-(c||a.now()))},useStrict:!1,formatCodeToRegex:function(c,d){var b=a.parseCodes[c];if(b){b=typeof b==='function'?b():b;a.parseCodes[c]=b}return b?Ext.applyIf({c:b.c?xf(b.c,d||'{0}'):b.c},b):{g:0,c:null,s:Ext.String.escapeRegex(c)}},parseFunctions:{'MS':function(c,d){var a=(c||'').match(f);return a?new b(((a[1]||'')+a[2])*1):null},'time':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a)}return null},'timestamp':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a*1000)}return null}},parseRegexes:[],formatFunctions:{'MS':function(){return '\\/Date('+this.getTime()+')\\/'},'time':function(){return this.getTime().toString()},'timestamp':function(){return a.format(this,'U')}},y2kYear:50,MILLI:'ms',SECOND:'s',MINUTE:'mi',HOUR:'h',DAY:'d',MONTH:'mo',YEAR:'y',defaults:{},dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:'m/d/Y',getShortMonthName:function(b){return a.monthNames[b].substring(0,3)},getShortDayName:function(b){return a.dayNames[b].substring(0,3)},getMonthNumber:function(b){return a.monthNumbers[b.substring(0,1).toUpperCase()+b.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return h.test(a.replace(d,''))},formatContainsDateInfo:function(a){return g.test(a.replace(d,''))},unescapeFormat:function(a){return a.replace(i,'')},formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')",D:'Ext.Date.getShortDayName(m.getDay())',j:'m.getDate()',l:'Ext.Date.dayNames[m.getDay()]',N:'(m.getDay() ? m.getDay() : 7)',S:'Ext.Date.getSuffix(m)',w:'m.getDay()',z:'Ext.Date.getDayOfYear(m)',W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')",F:'Ext.Date.monthNames[m.getMonth()]',m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')",M:'Ext.Date.getShortMonthName(m.getMonth())',n:'(m.getMonth() + 1)',t:'Ext.Date.getDaysInMonth(m)',L:'(Ext.Date.isLeapYear(m) ? 1 : 0)',o:'(m.getFullYear() + (Ext.Date.getWeekOfYear(m) == 1 && m.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(m) >= 52 && m.getMonth() < 11 ? -1 : 0)))',Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')",y:"('' + m.getFullYear()).substring(2, 4)",a:"(m.getHours() < 12 ? 'am' : 'pm')",A:"(m.getHours() < 12 ? 'AM' : 'PM')",g:'((m.getHours() % 12) ? m.getHours() % 12 : 12)',G:'m.getHours()',h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(m.getHours(), 2, '0')",i:"Ext.String.leftPad(m.getMinutes(), 2, '0')",s:"Ext.String.leftPad(m.getSeconds(), 2, '0')",u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')",O:'Ext.Date.getGMTOffset(m)',P:'Ext.Date.getGMTOffset(m, true)',T:'Ext.Date.getTimezone(m)',Z:'(m.getTimezoneOffset() * -60)',c:function(){var e='Y-m-dTH:i:sP',d=[],b,f=e.length,c;for(b=0;b me.y2kYear ? 1900 + ty : 2000 + ty;\n',s:'(\\d{2})'},a:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(am|pm|AM|PM)',calcAtEnd:!0},A:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(AM|PM|am|pm)',calcAtEnd:!0},g:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|[0-9])'},G:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|1[0-9]|[0-9])'},h:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|0[1-9])'},H:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|[0-1][0-9])'},i:{g:1,c:'i = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},s:{g:1,c:'s = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},u:{g:1,c:'ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n',s:'(\\d+)'},O:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),','mn = o.substring(3,5) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{4})'},P:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),','mn = o.substring(4,6) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{2}:\\d{2})'},T:{g:0,c:null,s:'[A-Z]{1,5}'},Z:{g:1,c:'zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n',s:'([+-]?\\d{1,5})'},c:function(){var d=[],b=[a.formatCodeToRegex('Y',1),a.formatCodeToRegex('m',2),a.formatCodeToRegex('d',3),a.formatCodeToRegex('H',4),a.formatCodeToRegex('i',5),a.formatCodeToRegex('s',6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:['if(results[8]) {',"if(results[8] == 'Z'){",'zz = 0;',"}else if (results[8].indexOf(':') > -1){",a.formatCodeToRegex('P',8).c,'}else{',a.formatCodeToRegex('O',8).c,'}','}'].join('\n')}],c,e;for(c=0,e=b.length;c0?'-':'+')+Ext.String.leftPad(Math.floor(Math.abs(a)/60),2,'0')+(b?':':'')+Ext.String.leftPad(Math.abs(a%60),2,'0')},getDayOfYear:function(c){var e=0,b=a.clone(c),f=c.getMonth(),d;for(d=0,b.setDate(1),b.setMonth(0);d28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.MONTH,c)).getDate())};b.setDate(d);b.setMonth(f.getMonth()+c);break;case a.YEAR:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.YEAR,c)).getDate())};b.setDate(d);b.setFullYear(f.getFullYear()+c);break;}}if(g){switch(h.toLowerCase()){case a.MILLI:e=1;break;case a.SECOND:e=1000;break;case a.MINUTE:e=1000*60;break;case a.HOUR:e=1000*60*60;break;case a.DAY:e=1000*60*60*24;break;case a.MONTH:d=a.getDaysInMonth(b);e=1000*60*60*24*d;break;case a.YEAR:d=a.isLeapYear(b)?366:365;e=1000*60*60*24*d;break;}if(e){b.setTime(b.getTime()+e*g)}}return b},subtract:function(d,b,c){return a.add(d,b,-c)},between:function(c,b,d){var a=c.getTime();return b.getTime()<=a&&a<=d.getTime()},compat:function(){var c,g=['useStrict','formatCodeToRegex','parseFunctions','parseRegexes','formatFunctions','y2kYear','MILLI','SECOND','MINUTE','HOUR','DAY','MONTH','YEAR','defaults','dayNames','monthNames','monthNumbers','getShortMonthName','getShortDayName','getMonthNumber','formatCodes','isValid','parseDate','getFormatCode','createFormat','createParser','parseCodes'],h=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],j=g.length,i=h.length,f,e,d;for(d=0;dd){return b-1};return b;case a.YEAR:b=d.getFullYear()-e.getFullYear();if(a.add(e,f,b)>d){return b-1}else {return b};}},align:function(e,f,d){var c=new b(+e);switch(f.toLowerCase()){case a.MILLI:return c;case a.SECOND:c.setUTCSeconds(c.getUTCSeconds()-c.getUTCSeconds()%d);c.setUTCMilliseconds(0);return c;case a.MINUTE:c.setUTCMinutes(c.getUTCMinutes()-c.getUTCMinutes()%d);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.HOUR:c.setUTCHours(c.getUTCHours()-c.getUTCHours()%d);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.DAY:if(d===7||d===14){c.setUTCDate(c.getUTCDate()-c.getUTCDay()+1)};c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.MONTH:c.setUTCMonth(c.getUTCMonth()-(c.getUTCMonth()-1)%d,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.YEAR:c.setUTCFullYear(c.getUTCFullYear()-c.getUTCFullYear()%d,1,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return e;}}}}();Ext.Function=function(){var i=0,f,c=[],l=[],m=0,e={},d=window,b=Ext.global,h=!!(b.setImmediate&&b.clearImmediate),k=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(c){var b=Ext.now(),a=Math.max(0,16-(b-i)),e=d.setTimeout(function(){c(b+a)},a);i=b+a;return e},g=function(){var h=c.length,g,d,a;f=null;for(d=0;d0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},b)}a();return 0},interval:function(a,c,d,e,b){a=Ext.Function.bind(a,d,e,b);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},c)},createSequence:function(a,b,c){if(!b){return a}else {return function(){var d=a.apply(this,arguments);b.apply(c||this,arguments);return d}}},createBuffered:function(b,c,d,e){var a;return function(){var f=e||Array.prototype.slice.call(arguments,0),g=d||this;if(a){clearTimeout(a)}a=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b,g,f)}else {b.apply(g,f)}},c)}},createAnimationFrame:function(f,d,e,c){var b;c=c||3;return function(){var g=e||Array.prototype.slice.call(arguments,0);d=d||this;if(c===3&&b){a.cancelAnimationFrame(b)}if(c&1||!b){b=a.requestAnimationFrame(function(){b=null;f.apply(d,g)})}}},requestAnimationFrame:function(i,d,h){var a=++m,b=Array.prototype.slice.call(arguments,0);b[3]=a;e[a]=1;c.push(b);if(!f){f=k(Ext.elevateFunction?j:g)}return a},cancelAnimationFrame:function(a){delete e[a]},createThrottled:function(h,f,a){var e=0,d,c,b,g=function(){if(Ext.elevateFunction){Ext.elevateFunction(h,a,c)}else {h.apply(a,c)}e=Ext.now();b=null};return function(){if(!a){a=this}d=Ext.now()-e;c=arguments;if(d>=f){clearTimeout(b);g()}else {if(!b){b=Ext.defer(g,f-d)}}}},createBarrier:function(a,c,b){return function(){if(!--a){c.apply(b,arguments)}}},interceptBefore:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){var f=e.apply(d||this,arguments);c.apply(this,arguments);return f}},interceptAfter:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){c.apply(this,arguments);return e.apply(d||this,arguments)}},makeCallback:function(b,a){return function(){return a[b].apply(a,arguments)}},memoize:function(e,c,a){var b={},d=a&&Ext.isFunction(a);return function(g){var f=d?a.apply(c,arguments):g;if(!(f in b)){b[f]=e.apply(c,arguments)}return b[f]}}};Ext.asap=h?function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setImmediate(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}})}:function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}},0,!0)},Ext.asapCancel=h?function(a){clearImmediate(a)}:function(a){clearTimeout(a)};Ext.defer=a.defer;Ext.interval=a.interval;Ext.pass=a.pass;Ext.bind=a.bind;Ext.deferCallback=a.requestAnimationFrame;return a}();Ext.Number=new function(){var b=this,d=(0.9).toFixed()!=='1',c=Math,a={count:!1,inclusive:!1,wrap:!0};Ext.apply(b,{Clip:{DEFAULT:a,COUNT:Ext.applyIf({count:!0},a),INCLUSIVE:Ext.applyIf({inclusive:!0},a),NOWRAP:Ext.applyIf({wrap:!1},a)},clipIndices:function(d,c,f){f=f||a;var h=0,i=f.wrap,g,b,e;c=c||[];for(e=0;e<2;++e){g=b;b=c[e];if(b==null){b=h}else {if(e&&f.count){b+=g;b=b>d?d:b}else {if(i){b=b<0?d+b:b}if(e&&f.inclusive){++b}b=b<0?0:b>d?d:b}}h=d}c[0]=g;c[1]=ba?a:d},snap:function(a,c,e,f){var d;if(a===undefined||a=c){a+=c}else {if(d*2<-c){a-=c}}}}return b.constrain(a,e,f)},snapInRange:function(a,d,c,e){var f;c=c||0;if(a===undefined||a=d){a+=d}}if(e!==undefined){if(a>(e=b.snapInRange(e,d,c))){a=e}}return a},sign:function(a){a=+a;if(a===0||isNaN(a)){return a}return a>0?1:-1},toFixed:d?function(d,a){a=a||0;var b=c.pow(10,a);return (c.round(d*b)/b).toFixed(a)}:function(b,a){return b.toFixed(a)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(a,b){return c.floor(c.random()*(b-a+1)+a)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return b.from.apply(this,arguments)}}();(function(){var b=function(){},d=/^\?/,f=/(\[):?([^\]]*)\]/g,e=/^([^\[]+)/,c=/\+/g,a=Ext.Object={chain:Object.create||function(a){b.prototype=a;var c=new b();b.prototype=null;return c},clear:function(a){for(var b in a){delete a[b]}return a},freeze:Object.freeze?function(b,c){if(b&&typeof b==='object'&&!Object.isFrozen(b)){Object.freeze(b);if(c){for(var d in b){a.freeze(b[d],c)}}}return b}:Ext.identityFn,toQueryObjects:function(e,c,f){var g=a.toQueryObjects,d=[],b,h;if(Ext.isArray(c)){for(b=0,h=c.length;b0){o=q.split('=');a=o[0];a=a.replace(c,'%20');a=decodeURIComponent(a);g=o[1];if(g!==undefined){g=g.replace(c,'%20');g=decodeURIComponent(g)}else {g=''}if(!v){if(i.hasOwnProperty(a)){if(!Ext.isArray(i[a])){i[a]=[i[a]]}i[a].push(g)}else {i[a]=g}}else {m=a.match(f);r=a.match(e);a=r[0];k=[];if(m===null){i[a]=g;continue}for(h=0,l=m.length;h@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(b){var c=b,a;if(b&&b.charAt(0)==='<'){a=Ext._resourcePoolRe.exec(b);if(a){c=Ext.getResourcePath(a[3],a[1],a[2])}}return c},urlEncode:function(){var a=Ext.Array.from(arguments),b='';if(Ext.isString(a[1])){b=a[1]+'&';a[1]=!1}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(d){var b=Ext._scrollbarSize;if(d||!b){var c=document.body,a=document.createElement('div');a.style.width=a.style.height='100px';a.style.overflow='scroll';a.style.position='absolute';c.appendChild(a);Ext._scrollbarSize=b={width:a.offsetWidth-a.clientWidth,height:a.offsetHeight-a.clientHeight};c.removeChild(a)}return b},typeOf:function(){var a=/\S/,d=Object.prototype.toString,c={number:1,string:1,'boolean':1,'undefined':1},b={'[object Array]':'array','[object Date]':'date','[object Boolean]':'boolean','[object Number]':'number','[object RegExp]':'regexp'};return function(e){if(e===null){return 'null'}var f=typeof e,g,h;if(c[f]){return f}g=b[h=d.call(e)];if(g){return g}if(f==='function'){return 'function'}if(f==='object'){if(e.nodeType!==undefined){if(e.nodeType===3){return a.test(e.nodeValue)?'textnode':'whitespace'}else {return 'element'}}return 'object'}return h}}(),factory:function(a,f,b,d){var e=Ext.ClassManager,c;if(!a||a.isInstance){if(b&&b!==a){b.destroy()}return a}if(d){if(typeof a==='string'){return e.instantiateByAlias(d+'.'+a)}else {if(Ext.isObject(a)&&'type' in a){return e.instantiateByAlias(d+'.'+a.type,a)}}}if(a===!0){return b||Ext.create(f)}if('xtype' in a){c=e.instantiateByAlias('widget.'+a.xtype,a)}else {if('xclass' in a){c=Ext.create(a.xclass,a)}}if(c){if(b){b.destroy()}return c}if(b){return b.setConfig(a)}return Ext.create(f,a)},log:function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}()});(function(){var b=[''],c=/([^\d\.])/,f=/[^\d]/g,g=/[\-+]/g,h=/\s/g,e=/_/g,d={classic:1,modern:1},a;Ext.Version=a=function(k,p){var b=this,n=b.padModes,o,m,d,h,j,l,i;if(k.isVersion){k=k.version}b.version=i=String(k).toLowerCase().replace(e,'.').replace(g,'');o=i.charAt(0);if(o in n){i=i.substring(1);d=n[o]}else {d=p?n[p]:0}b.pad=d;l=i.search(c);b.shortVersion=i;if(l!==-1){b.release=j=i.substr(l,k.length);b.shortVersion=i.substr(0,l);j=a.releaseValueMap[j]||j}b.releaseValue=j||d;b.shortVersion=b.shortVersion.replace(f,'');b.parts=h=i.split('.');for(m=h.length;m--;){h[m]=parseInt(h[m],10)}if(d===Infinity){h.push(d)}b.major=h[0]||d;b.minor=h[1]||d;b.patch=h[2]||d;b.build=h[3]||d;return b};a.prototype={isVersion:!0,padModes:{'~':NaN,'^':Infinity},release:'',compareTo:function(f){var g=this,m=g.pad,j=g.parts,h=j.length,e=f.isVersion?f:new a(f),n=e.pad,k=e.parts,i=k.length,l=Math.max(h,i),b,c,d;for(b=0;bd){return 1}}c=g.releaseValue;d=e.releaseValue;if(cd){return 1}return 0},toString:function(){return this.version},valueOf:function(){return this.version},getMajor:function(){return this.major},getMinor:function(){return this.minor},getPatch:function(){return this.patch},getBuild:function(){return this.build},getRelease:function(){return this.release},getReleaseValue:function(){return this.releaseValue},isGreaterThan:function(a){return this.compareTo(a)>0},isGreaterThanOrEqual:function(a){return this.compareTo(a)>=0},isLessThan:function(a){return this.compareTo(a)<0},isLessThanOrEqual:function(a){return this.compareTo(a)<=0},equals:function(a){return this.compareTo(a)===0},match:function(a){a=String(a);return this.version.substr(0,a.length)===a},toArray:function(){var a=this;return [a.getMajor(),a.getMinor(),a.getPatch(),a.getBuild(),a.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(a){return this.compareTo(a)>0},lt:function(a){return this.compareTo(a)<0},gtEq:function(a){return this.compareTo(a)>=0},ltEq:function(a){return this.compareTo(a)<=0}};Ext.apply(a,{aliases:{from:{extjs:'ext',core:'core',touch:'modern'},to:{ext:['extjs'],'core':['core'],modern:['touch']}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,'#':-2,p:-1,pl:-1},getComponentValue:function(a){return !a?0:isNaN(a)?this.releaseValueMap[a]||a:parseInt(a,10)},compare:function(b,c){var d=b.isVersion?b:new a(b);return d.compareTo(c)},set:function(g,f,c){var b=a.aliases.to[f],d=c.isVersion?c:new a(c),e;g[f]=d;if(b){for(e=b.length;e-->0;){g[b[e]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,d;if(!b){d=c.ext||c.touch||c.core}else {d=c[a.aliases.from[b]||b]}return d||Ext.getVersion(b)},setCompatVersion:function(b,c){a.set(Ext.compatVersions,b,c)},setVersion:function(b,c){if(b in d){Ext.toolkit=b}Ext.lastRegisteredVersion=a.set(Ext.versions,b,c);return this},getVersion:function(c){var b=Ext.versions;if(!c){return b.ext||b.touch||b.core}return b[a.aliases.from[c]||c]},checkVersion:function(o,j){var p=Ext.isArray(o),s=a.aliases.from,q=p?o:b,t=q.length,n=Ext.versions,r=n.ext||n.touch,l,c,f,i,g,m,d,e,k;if(!p){b[0]=o}for(l=0;l=0){d=d.replace(h,'')}c=d.indexOf('@');if(c<0){e=d;k=r}else {m=d.substring(0,c);if(!(k=n[s[m]||m])){if(j){return !1}continue}e=d.substring(c+1)}c=e.indexOf('-');if(c<0){if(e.charAt(c=e.length-1)==='+'){i=e.substring(0,c);g=null}else {i=g=e}}else {if(c>0){i=e.substring(0,c);g=e.substring(c+1)}else {i=null;g=e.substring(c+1)}}f=!0;if(i){i=new a(i,'~');f=i.ltEq(k)}if(f&&g){g=new a(g,'~');f=g.gtEq(k)}}if(f){if(!j){return !0}}else {if(j){return !1}}}return !!j},deprecate:function(b,e,c,d){if(a.compare(Ext.getVersion(b),e)<1){c.call(d)}}})})();(function(c){var d=c&&c.packages||{},b=c&&c.compatibility,a,e;for(a in d){e=d[a];Ext.setVersion(a,e.version)}if(b){if(Ext.isString(b)){Ext.setCompatVersion('core',b)}else {for(a in b){Ext.setCompatVersion(a,b[a])}}}if(!d.ext&&!d.touch){Ext.setVersion('ext','6.0.1.250');Ext.setVersion('core','6.0.1.250')}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:'_'+b,initializing:'is'+a+'Initializing',apply:'apply'+a,update:'update'+a,get:'get'+a,set:'set'+a,initGet:'initGet'+a,changeEvent:b.toLowerCase()+'change'};c.root=c};Ext.Config.map={};Ext.Config.get=function(a){var b=Ext.Config.map,c=b[a]||(b[a]=new Ext.Config(a));return c};Ext.Config.prototype={self:Ext.Config,isConfig:!0,getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(b,d,f,e){var a,c;if(!d){a=b}else {if(!b){a=d}else {a=Ext.Object.chain(d);for(c in b){if(!e||!(c in a)){a[c]=b[c]}}}}return a},mergeSets:function(a,f,e){var b=f?Ext.Object.chain(f):{},c,d;if(a instanceof Array){for(c=a.length;c--;){d=a[c];if(!e||!(d in b)){b[d]=!0}}}else {if(a){if(a.constructor===Object){for(c in a){d=a[c];if(!e||!(c in b)){b[c]=d}}}else {if(!e||!(a in b)){b[a]=!0}}}}return b},makeGetter:function(){var b=this.name,a=this.names.internal;return function(){var c=this.$configPrefixed?a:b;return this[c]}},makeInitGetter:function(){var e=this.name,a=this.names,d=a.set,c=a.get,b=a.initializing;return function(){var a=this;a[b]=!0;delete a[c];a[d](a.config[e]);delete a[b];return a[c].apply(a,arguments)}},makeSetter:function(){var g=this.name,a=this.names,e=a.internal,f=a.get,d=a.apply,c=a.update,b;b=function(b){var a=this,h=a.$configPrefixed?e:g,i=a[h];delete a[f];if(!a[d]||(b=a[d](b,i))!==undefined){if(b!==(i=a[h])){a[h]=b;if(a[c]){a[c](b,i)}}}return a};b.$isDefault=!0;return b},makeEventedSetter:function(){var i=this.name,a=this.names,f=a.internal,h=a.get,d=a.apply,b=a.update,e=a.changeEvent,g=function(a,c,e,d){a[d]=c;if(a[b]){a[b](c,e)}},c;c=function(c){var a=this,k=a.$configPrefixed?f:i,j=a[k];delete a[h];if(!a[d]||(c=a[d](c,j))!==undefined){if(c!==(j=a[k])){if(a.isConfiguring){a[k]=c;if(a[b]){a[b](c,j)}}else {a.fireEventedAction(e,[a,c,j],g,a,[a,c,j,k])}}}return a};c.$isDefault=!0;return c}};(function(){var c=Ext.Config,b=c.map,a=Ext.Object;Ext.Configurator=function(d){var b=this,e=d.prototype,c=d.superclass?d.superclass.self.$config:null;b.cls=d;b.superCfg=c;if(c){b.configs=a.chain(c.configs);b.cachedConfigs=a.chain(c.cachedConfigs);b.initMap=a.chain(c.initMap);b.values=a.chain(c.values);b.needsFork=c.needsFork}else {b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}e.config=e.defaultConfig=b.values;d.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:!1,initList:null,add:function(t,l){var i=this,n=i.cls,k=i.configs,v=i.cachedConfigs,p=i.initMap,g=n.prototype,r=l&&l.$config.configs,u=i.values,m,f,s,h,b,j,e,q,o,d;for(e in t){d=t[e];m=d&&d.constructor===Object;f=m&&'$value' in d?d:null;if(f){s=!!f.cached;d=f.$value;m=d&&d.constructor===Object}h=f&&f.merge;b=k[e];if(b){if(l){h=b.merge;if(!h){continue}f=null}else {h=h||b.merge}j=u[e];if(h){d=h.call(b,d,j,n,l)}else {if(m){if(j&&j.constructor===Object){d=a.merge({},j,d)}}}}else {if(r){b=r[e];f=null}else {b=c.get(e)}k[e]=b;if(b.cached||s){v[e]=!0}q=b.names;if(!g[o=q.get]){g[o]=b.getter||b.getGetter()}if(!g[o=q.set]){g[o]=f&&f.evented?b.eventedSetter||b.getEventedSetter():b.setter||b.getSetter()}}if(f){if(b.owner!==n){k[e]=b=Ext.Object.chain(b);b.owner=n}Ext.apply(b,f);delete b.$value}if(!i.needsFork&&d&&(d.constructor===Object||d instanceof Array)){i.needsFork=!0}if(d!==null){p[e]=!0}else {if(g.$configPrefixed){g[k[e].names.internal]=null}else {g[k[e].name]=null}if(e in p){p[e]=!1}}u[e]=d}},configure:function(c,h){var k=this,u=k.configs,x=k.initMap,q=k.initListMap,o=k.initList,j=k.cls.prototype,i=k.values,r=0,v=!o,n,b,m,w,d,p,l,f,e,g,t,s,y;i=k.needsFork?a.fork(i):a.chain(i);c.isConfiguring=!0;if(v){k.initList=o=[];k.initListMap=q={};c.isFirstInstance=!0;for(e in x){w=x[e];b=u[e];t=b.cached;if(w){f=b.names;g=i[e];if(!j[f.set].$isDefault||j[f.apply]||j[f.update]||typeof g==='object'){if(t){(n||(n=[])).push(b)}else {o.push(b);q[e]=!0}c[f.get]=b.initGetter||b.getInitGetter()}else {j[b.getInternalName(j)]=g}}else {if(t){j[b.getInternalName(j)]=undefined}}}}l=n&&n.length;if(l){for(d=0;d0){for(a=0;ac.maxSize){c.unlinkEntry(f.prev,!0);--c.count}}return d.value},evict:Ext.emptyFn,linkEntry:function(c){var d=this.head,e=d.next;c.next=e;c.prev=d;d.next=c;e.prev=c},unlinkEntry:function(c,f){var d=c.next,e=c.prev;e.next=d;d.prev=e;if(f){this.evict(c.key,c.value)}}};a.destroy=a.clear})();(function(){var a,d=Ext.Base,b=d.$staticMembers,c=function(a,b){return a.length-b.length||(ab?1:0)};function makeCtor(a){function constructor(){return this.constructor.apply(this,arguments)||null}return constructor}Ext.Class=a=function(b,c,d){if(typeof b!='function'){d=c;c=b;b=null}if(!c){c={}}b=a.create(b,c);a.process(b,c,d);return b};Ext.apply(a,{makeCtor:makeCtor,onBeforeCreated:function(a,c,b){a.addMembers(c);b.onCreated.call(a,a)},create:function(a,f){var e=b.length,c;if(!a){a=makeCtor()}while(e--){c=b[e];a[c]=d[c]}return a},process:function(l,f,k){var j=f.preprocessors||a.defaultPreprocessors,o=this.preprocessors,e={onBeforeCreated:this.onBeforeCreated},d=[],b,c,g,n,h,m,i;delete f.preprocessors;l._classHooks=e;for(g=0,n=j.length;g0){b=h.test(c[d])}c=o[a];if(c&&!b){d=c.length;while(!b&&d-->0){b=h.test(c[d])}}}if(b){i[a]=1;l.push(a)}}}}}return l},getPath:function(a){var e=this,d=e.paths,b='',c;if(a in d){b=d[a]}else {c=e.getPrefix(a);if(c){a=a.substring(c.length+1);b=d[c];if(b){b+='/'}}b+=a.replace(e.dotRe,'/')+'.js'}return b},getPrefix:function(a){if(a in this.paths){return a}var d=this.getPrefixes(),e=d.length,b,c;while(e-->0){b=(c=d[e]).length;if(b0){b=i[d];f=c;c=b.value||c[b.name];if(!c&&h){f[b.name]=c={}}}return c},setNamespace:function(f,d){var b=a.getNamespaceEntry(f),c=Ext.global;if(b.parent){c=a.lookupName(b.parent,!0)}c[b.name]=d;return d},setXType:function(i,d){var f=i.$className,k=f?i:a.get(f=i),b=k.prototype,j=b.xtypes,c=b.xtypesChain,h=b.xtypesMap;if(!b.hasOwnProperty('xtypes')){b.xtypes=j=[];b.xtypesChain=c=c?c.slice(0):[];b.xtypesMap=h=Ext.apply({},h)}a.addAlias(f,'widget.'+d,!0);j.push(d);c.push(d);h[d]=!0},set:function(b,d){var c=a.getName(d);a.classes[b]=a.setNamespace(b,d);if(c&&c!==b){a.addAlternate(c,b)}return a},get:function(b){return a.classes[b]||a.lookupName(b,!1)},addNameAliasMappings:function(b){a.addAlias(b)},addNameAlternateMappings:function(b){a.addAlternate(b)},getByAlias:function(b){return a.get(a.getNameByAlias(b))},getByConfig:function(c,d){var f=c.xclass,b;if(f){b=f}else {b=c.xtype;if(b){d='widget.'}else {b=c.type}b=a.getNameByAlias(d+b)}return a.get(b)},getName:function(a){return a&&a.$className||''},getClass:function(a){return a&&a.self||null},create:function(c,b,f){var d=q(c);if(typeof b==='function'){b=b(d)}b.$className=c;return new n(d,b,function(){var m=b.postprocessors||a.defaultPostprocessors,s=a.postprocessors,i=[],d,j,q,k,p,h,l;delete b.postprocessors;for(j=0,q=m.length;j0;){c=a.lookupName(arguments[b],!0)}return c}});Ext.addRootNamespaces=a.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;n.registerPreprocessor('className',function(b,a){if('$className' in a){b.$className=a.$className}},!0,'first');n.registerPreprocessor('alias',function(q,d){var l=q.prototype,c=g(d.xtype),i=g(d.alias),j='widget.',p=j.length,k=Array.prototype.slice.call(l.xtypesChain||[]),h=Ext.merge({},l.xtypesMap||{}),a,f,m,b;for(a=0,f=i.length;a=d){Ext[o+'p']=!0}}}if(n.is.Opera&&parseInt(a,10)<=12){Ext.isOpera12m=!0}Ext.chromeVersion=Ext.isChrome?a:0;Ext.firefoxVersion=Ext.isFirefox?a:0;Ext.ieVersion=Ext.isIE?a:0;Ext.operaVersion=Ext.isOpera?a:0;Ext.safariVersion=Ext.isSafari?a:0;Ext.webKitVersion=Ext.isWebKit?a:0;this.setFlag(c+a,!0,r);this.setFlag(c+f.getShortVersion())}for(d in j){if(j.hasOwnProperty(d)){h=j[d];this.setFlag(h,c===h)}}this.setFlag(h);if(l){this.setFlag(g+(l.getMajor()||''));this.setFlag(g+l.getShortVersion())}for(d in k){if(k.hasOwnProperty(d)){h=k[d];this.setFlag(h,g===h,r)}}this.setFlag('Standalone',!!navigator.standalone);this.setFlag('Ripple',!!document.getElementById('tinyhippos-injected')&&!Ext.isEmpty(window.top.ripple));this.setFlag('WebWorks',!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){q=!0;this.setFlag('PhoneGap');this.setFlag('Cordova')}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(e)){q=!0}this.setFlag('WebView',q);this.isStrict=Ext.isStrict=document.compatMode==='CSS1Compat';this.isSecure=Ext.isSecure;this.identity=c+a+(this.isStrict?'Strict':'Quirks')};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{webkit:'WebKit',gecko:'Gecko',presto:'Presto',trident:'Trident',other:'Other'},enginePrefixes:{webkit:'AppleWebKit/',gecko:'Gecko/',presto:'Presto/',trident:'Trident/'},styleDashPrefixes:{WebKit:'-webkit-',Gecko:'-moz-',Trident:'-ms-',Presto:'-o-',Other:''},stylePrefixes:{WebKit:'Webkit',Gecko:'Moz',Trident:'ms',Presto:'O',Other:''},propertyPrefixes:{WebKit:'webkit',Gecko:'moz',Trident:'ms',Presto:'o',Other:''},is:function(a){return !!this.is[a]},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(b,a,c){if(a===undefined){a=!0}this.is[b]=a;this.is[b.toLowerCase()]=a;if(c){Ext['is'+b]=a}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(b){var a=this.propertyPrefixes[this.engineName];if(a.length>0){return a+Ext.String.capitalize(b)}return b},getPreferredTranslationMethod:function(a){if(typeof a==='object'&&'translationMethod' in a&&a.translationMethod!=='auto'){return a.translationMethod}else {return 'csstransform'}}};(function(a){Ext.browser=new Ext.env.Browser(a,!0);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":'about:blank'})(Ext.global.navigator.userAgent);Ext.env.OS=function(j,k,b){var n=this,g=Ext.Boot.osNames,h=Ext.Boot.osPrefixes,a,c='',m=n.is,d,l,f,i,e;b=b||Ext.browser;for(d in h){if(h.hasOwnProperty(d)){l=h[d];f=j.match(new RegExp('(?:'+l+')([^\\s;]+)'));if(f){a=g[d];e=f[1];if(e&&e==='HTC_'){c=new Ext.Version('2.3')}else {if(e&&e==='Silk/'){c=new Ext.Version('2.3')}else {c=new Ext.Version(f[f.length-1])}}break}}}if(!a){a=g[(j.toLowerCase().match(/mac|win|linux/)||['other'])[0]];c=new Ext.Version('')}this.name=a;this.version=c;if(k){this.setFlag(k.replace(/ simulator$/i,''))}this.setFlag(a);if(c){this.setFlag(a+(c.getMajor()||''));this.setFlag(a+c.getShortVersion())}for(d in g){if(g.hasOwnProperty(d)){i=g[d];if(!m.hasOwnProperty(a)){this.setFlag(i,a===i)}}}if(this.name==='iOS'&&window.screen.height===568){this.setFlag('iPhone5')}if(b.is.Safari||b.is.Silk){if(this.is.Android2||this.is.Android3||b.version.shortVersion===501){b.setFlag('AndroidStock')}if(this.is.Android4){b.setFlag('AndroidStock');b.setFlag('AndroidStock4')}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(b,a){if(a===undefined){a=!0}if(this.flags){this.flags[b]=a}this.is[b]=a;this.is[b.toLowerCase()]=a;return this}};(function(){var h=Ext.global.navigator,i=h.userAgent,e=Ext.env.OS,f=Ext.is||(Ext.is={}),a,c,b;e.prototype.flags=f;Ext.os=a=new e(i,h.platform);c=a.name;Ext['is'+c]=!0;Ext.isMac=f.Mac=f.MacOS;var d=window.location.search.match(/deviceType=(Tablet|Phone)/),g=window.deviceType;if(d&&d[1]){b=d[1]}else {if(g==='iPhone'){b='Phone'}else {if(g==='iPad'){b='Tablet'}else {if(!a.is.Android&&!a.is.iOS&&!a.is.WindowsPhone&&/Windows|Linux|MacOS/.test(c)){b='Desktop';Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else {if(a.is.iPad||a.is.RIMTablet||a.is.Android3||Ext.browser.is.Silk||a.is.Android&&i.search(/mobile/i)===-1){b='Tablet'}else {b='Phone'}}}}}a.setFlag(b,!0);a.deviceType=b;delete e.prototype.flags})();Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a='div'}else {if(typeof a!=='string'){return a}}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(a,d){var b=this.getTestElement(d).style,c=Ext.String.capitalize(a);if(typeof b[a]!=='undefined'||typeof b[Ext.browser.getStylePrefix(a)+c]!=='undefined'){return !0}return !1},isStyleSupportedWithoutPrefix:function(b,c){var a=this.getTestElement(c).style;if(typeof a[b]!=='undefined'){return !0}return !1},isEventSupported:function(e,d){if(d===undefined){d=window}var a=this.getTestElement(d),b='on'+e.toLowerCase(),c=b in a;if(!c){if(a.setAttribute&&a.removeAttribute){a.setAttribute(b,'');c=typeof a[b]==='function';if(typeof a[b]!=='undefined'){a[b]=undefined}a.removeAttribute(b)}}return c},getStyle:function(a,c){var b=a.ownerDocument.defaultView,d=b?b.getComputedStyle(a,null):a.currentStyle;return (d||a.style)[c]},getSupportedPropertyName:function(c,a){var b=Ext.browser.getVendorProperyName(a);if(b in c){return b}else {if(a in c){return a}}return null},detect:function(h){var c=this,g=document,m=c.toRun||c.tests,i=m.length,f=g.createElement('div'),k=[],j=Ext.supports,n=c.has,a,e,b,l,d;f.innerHTML='
    ';if(h){g.body.appendChild(f)}l=c.preDetected[Ext.browser.identity]||[];while(i--){b=m[i];d=l[i];a=b.name;e=b.names;if(d===undefined){if(!h&&b.ready){k.push(b);continue}d=b.fn.call(c,g,f)}if(a){j[a]=n[a]=d}else {if(e){while(e.length){a=e.pop();j[a]=n[a]=d}}}}if(h){g.body.removeChild(f)}c.toRun=k},report:function(){var b=[],c=this.tests.length,a;for(a=0;a
    ';b=a.childNodes.length===1;a.innerHTML='';return b}},{name:'touchScroll',fn:function(){var a=0;if(Ext.os.is.Desktop&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)){a=1}else {if(Ext.supports.Touch){a=2}}return a}},{name:'Touch',fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return Ext.supports.TouchEvents&&a!==1||a>1}else {return Ext.supports.TouchEvents||a>0}}},{name:'TouchEvents',fn:function(){return this.isEventSupported('touchend')}},{name:'PointerEvents',fn:function(){return navigator.pointerEnabled}},{name:'MSPointerEvents',fn:function(){return navigator.msPointerEnabled}},{name:'Orientation',fn:function(){return 'orientation' in window&&this.isEventSupported('orientationchange')}},{name:'OrientationChange',fn:function(){return this.isEventSupported('orientationchange')}},{name:'DeviceMotion',fn:function(){return this.isEventSupported('devicemotion')}},{names:['Geolocation','GeoLocation'],fn:function(){return 'geolocation' in window.navigator}},{name:'SqlDatabase',fn:function(){return 'openDatabase' in window}},{name:'WebSockets',fn:function(){return 'WebSocket' in window}},{name:'Range',fn:function(){return !!document.createRange}},{name:'CreateContextualFragment',fn:function(){var a=!!document.createRange?document.createRange():!1;return a&&!!a.createContextualFragment}},{name:'History',fn:function(){return 'history' in window&&'pushState' in window.history}},{name:'Css3dTransforms',fn:function(){return this.has('CssTransforms')&&this.isStyleSupported('perspective')}},{name:'CssTransforms',fn:function(){return this.isStyleSupported('transform')}},{name:'CssTransformNoPrefix',fn:function(){return this.isStyleSupportedWithoutPrefix('transform')}},{name:'CssAnimations',fn:function(){return this.isStyleSupported('animationName')}},{names:['CssTransitions','Transitions'],fn:function(){return this.isStyleSupported('transitionProperty')}},{names:['Audio','AudioTag'],fn:function(){return !!this.getTestElement('audio').canPlayType}},{name:'Video',fn:function(){return !!this.getTestElement('video').canPlayType}},{name:'LocalStorage',fn:function(){try{if('localStorage' in window&&window['localStorage']!==null){localStorage.setItem('sencha-localstorage-test','test success');localStorage.removeItem('sencha-localstorage-test');return !0}}catch(b){}return !1}},{name:'XHR2',fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&'withCredentials' in new XMLHttpRequest()}},{name:'XHRUploadProgress',fn:function(){if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){var a=new XMLHttpRequest();return a&&'upload' in a&&'onprogress' in a.upload}return !1}},{name:'NumericInputPlaceHolder',fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:'matchesSelector',fn:function(){var a=document.documentElement,d='matches',e='webkitMatchesSelector',b='msMatchesSelector',c='mozMatchesSelector';return a[d]?d:a[e]?e:a[b]?b:a[c]?c:null}},{name:'RightMargin',ready:!0,fn:function(c,b){var a=c.defaultView;return !(a&&a.getComputedStyle(b.firstChild.firstChild,null).marginRight!=='0px')}},{name:'DisplayChangeInputSelectionBug',fn:function(){var a=Ext.webKitVersion;return 0a
    ';b=a.firstChild;a.innerHTML='
    b
    ';return b.innerHTML!=='a'}},{name:'IncludePaddingInWidthCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetWidth===210}},{name:'IncludePaddingInHeightCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetHeight===210}},{name:'TextAreaMaxLength',fn:function(a){return 'maxlength' in a.createElement('textarea')}},{name:'GetPositionPercentage',ready:!0,fn:function(b,a){return Ext.feature.getStyle(a.childNodes[2],'left')==='10%'}},{name:'PercentageHeightOverflowBug',ready:!0,fn:function(d){var c=!1,b,a;if(Ext.getScrollbarSize().height){a=this.getTestElement();b=a.style;b.height='50px';b.width='50px';b.overflow='auto';b.position='absolute';a.innerHTML=['
    ','
    ','
    '].join('');d.body.appendChild(a);if(a.firstChild.offsetHeight===50){c=!0}d.body.removeChild(a)}return c}},{name:'xOriginBug',ready:!0,fn:function(e,b){b.innerHTML='
    ';var a=document.getElementById('b1').getBoundingClientRect(),c=document.getElementById('b2').getBoundingClientRect(),d=document.getElementById('b3').getBoundingClientRect();return c.left!==a.left&&d.right!==a.right}},{name:'ScrollWidthInlinePaddingBug',ready:!0,fn:function(c){var d=!1,a,b;b=c.createElement('div');a=b.style;a.height='50px';a.width='50px';a.padding='10px';a.overflow='hidden';a.position='absolute';b.innerHTML='';c.body.appendChild(b);if(b.scrollWidth===70){d=!0}c.body.removeChild(b);return d}},{name:'rtlVertScrollbarOnRight',ready:!0,fn:function(d,c){c.innerHTML='
    ';var a=c.firstChild,b=a.firstChild;return b.offsetLeft+b.offsetWidth!==a.offsetLeft+a.offsetWidth}},{name:'rtlVertScrollbarOverflowBug',ready:!0,fn:function(c,b){b.innerHTML='
    ';var a=b.firstChild;return a.clientHeight===a.offsetHeight}},{identity:'defineProperty',fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return !1}return !0}},{identify:'nativeXhr',fn:function(){if(typeof XMLHttpRequest!=='undefined'){return !0}XMLHttpRequest=function(){try{return new ActiveXObject('MSXML2.XMLHTTP.3.0')}catch(b){return null}};return !1}},{name:'SpecialKeyDownRepeat',fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(Ext.isGecko&&!Ext.isWindows||Ext.isOpera&&Ext.operaVersion<12)}},{name:'EmulatedMouseOver',fn:function(){return Ext.os.is.iOS}},{name:'Hashchange',fn:function(){var a=document.documentMode;return 'onhashchange' in window&&(a===undefined||a>7)}},{name:'FixedTableWidthBug',ready:!0,fn:function(){if(Ext.isIE8){return !1}var a=document.createElement('div'),b=document.createElement('div'),c;a.setAttribute('style','display:table;table-layout:fixed;');b.setAttribute('style','display:table-cell;min-width:50px;');a.appendChild(b);document.body.appendChild(a);a.offsetWidth;a.style.width='25px';c=a.offsetWidth;document.body.removeChild(a);return c===50}},{name:'FocusinFocusoutEvents',fn:function(){return !Ext.isGecko}},{name:'AsyncFocusEvents',fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:'accessibility',ready:!0,fn:function(f){var g=f.body,b,c,a,e,d;function getColor(a){var c=[],e=0,g,b;if(a.indexOf('rgb(')!==-1){c=a.replace('rgb(','').replace(')','').split(', ')}else {if(a.indexOf('#')!==-1){g=a.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;b=a.match(g);if(b){c=['0x'+b[1],'0x'+b[2],'0x'+b[3]]}}}for(var d=0;d0};Ext.supports.HighContrastMode=!e.BackgroundImages;g.removeChild(b);b=c=null;return e}},0]};Ext.feature.tests.pop();Ext.supports={};Ext.feature.detect();Ext.env.Ready={blocks:(location.search||'').indexOf('ext-pauseReadyFire')>0?1:0,bound:0,delay:1,firing:!1,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==='complete'){a.onReadyEvent({type:b.readyState||'body'})}else {a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener('deviceready',a.onReadyEvent,!1)}b.addEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.addEventListener('load',a.onReadyEvent,!1)}}},block:function(){++this.blocks;Ext.isReady=!1},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=!0;a.state=1;Ext.feature.detect(!0);if(!a.delay){a.handleReady()}else {if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else {a.handleReadySoon()}}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(b){var a=this;if(!a.timer){a.timer=Ext.defer(function(){a.timer=null;a.handleReady()},b||a.delay)}},invoke:function(a){var b=a.delay;if(b){Ext.defer(a.fn,b,a.scope)}else {if(Ext.elevateFunction){Ext.elevateFunction(a.fn,a.scope)}else {a.fn.call(a.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else {this.doInvokeAll()}},doInvokeAll:function(){var a=this,b=a.listeners,c;if(!a.blocks){Ext.isReady=!0}a.firing=!0;while(b.length){if(a.sortGeneration!==a.generation){a.sortGeneration=a.generation;b.sort(a.sortFn)}c=b.pop();if(a.blocks&&!c.dom){b.push(c);break}a.invoke(c)}a.firing=!1},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:!1,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(e,d,c){var a=Ext.env.Ready,b=a.makeListener(e,d,c);if(a.state===2&&!a.firing&&(b.dom||!a.blocks)){a.invoke(b)}else {a.listeners.push(b);++a.generation;if(!a.bound){a.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else {a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(a,b){return -(a.phase-b.phase||b.priority-a.priority||a.id-b.id)},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener('deviceready',a.onReadyEvent,!1)}b.removeEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.removeEventListener('load',a.onReadyEvent,!1)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=!0;try{document.documentElement.doScroll('left')}catch(c){b=!1}if(b&&document.body){a.onReadyEvent({type:'doScroll'})}else {a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){if(a.bound){return}var b=document,c;try{c=window.frameElement===undefined}catch(d){}if(!c||!b.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else {if(a.pollScroll()){return}}if(b.readyState==='complete'){a.onReadyEvent({type:'already '+(b.readyState||'body')})}else {b.attachEvent('onreadystatechange',a.onReadyStateChange);window.attachEvent('onload',a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent('onreadystatechange',a.onReadyStateChange);window.detachEvent('onload',a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){clearTimeout(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:!0};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()})();Ext.Loader=new function(){var a=this,b=Ext.ClassManager,i=Ext.Boot,o=Ext.Class,c=Ext.env.Ready,k=Ext.Function.alias,h=['extend','mixins','requires'],j={},m=[],f=[],g=[],l={},d={},e={enabled:!0,scriptChainDelay:!1,disableCaching:!0,disableCachingParam:'_dc',paths:b.paths,preserveScripts:!0,scriptCharset:undefined},n={disableCaching:!0,disableCachingParam:!0,preserveScripts:!0,scriptChainDelay:'loadDelay'};Ext.apply(a,{isInHistory:j,isLoading:!1,history:m,config:e,readyListeners:f,optionalRequires:g,requiresMap:l,hasFileLoadError:!1,scriptsLoading:0,syncModeEnabled:!1,missingQueue:d,init:function(){var k=document.getElementsByTagName('script'),m=k[k.length-1].src,n=m.substring(0,m.lastIndexOf('/')+1),l=Ext._classPathMetadata,h=Ext.Microloader,g=Ext.manifest,d,i,j,e,f;if(!b.getPath('Ext')){b.setPath('Ext',n+'src')}if(l){Ext._classPathMetadata=null;a.addClassPathMappings(l)}if(g){d=g.loadOrder;i=Ext.Boot.baseUrl;if(d&&g.bootRelative){for(j=d.length,e=0;e1?'es':'')+': '+g.join(', '))}if(l.length){a.loadScripts({url:l,_classNames:g})}else {a.checkReady()}}else {if(c){c.call(k)}a.checkReady()}if(a.syncModeEnabled){if(m===1){return b.get(h[0])}}return a},makeLoadCallback:function(a,c){return function(){var e=[],d=a.length;while(d-->0){e[d]=b.get(a[d])}return c.apply(this,e)}},onLoadFailure:function(){var b=this,c=b.onError;a.hasFileLoadError=!0;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onLoadSuccess:function(){var b=this,c=b.onLoad;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onReady:function(g,e,h,d){if(h){c.on(g,e,d)}else {var b=c.makeListener(g,e,d);if(a.isLoading){f.push(b)}else {c.invoke(b)}}},addUsedClasses:function(b){var c,d,e;if(b){b=typeof b==='string'?[b]:b;for(d=0,e=b.length;d0){a.loadScripts({url:b,sequential:!0})}}}if(h.uses){b=h.uses;a.addUsedClasses(b)}});b.onCreated(a.historyPush);a.init()}();Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}Ext.cmd.derive('Ext.Mixin',Ext.Base,function(a){return {statics:{addHook:function(e,c,d,h){var g=Ext.isFunction(e),b=function(){var b=arguments,i=g?e:h[e],f=this.callParent(b);i.apply(this,b);return f},f=c.hasOwnProperty(d)&&c[d];if(g){e.$previous=Ext.emptyFn}b.$name=d;b.$owner=c.self;if(f){b.$previous=f.$previous;f.$previous=b}else {c[d]=b}}},onClassExtended:function(k,c){var b=c.mixinConfig,d=c.xhooks,j=k.superclass,i=c.onClassMixedIn,h,f,g,e;if(d){delete c.xhooks;(b||(c.mixinConfig=b={})).on=d}if(b){h=j.mixinConfig;if(h){c.mixinConfig=b=Ext.merge({},h,b)}c.mixinId=b.id;f=b.before;g=b.after;d=b.on;e=b.extended}if(f||g||d||e){c.onClassMixedIn=function(b){var h=this.prototype,l=b.prototype,j;if(f){Ext.Object.each(f,function(e,d){b.addMember(e,function(){if(h[d].apply(this,arguments)!==!1){return this.callParent(arguments)}})})}if(g){Ext.Object.each(g,function(e,d){b.addMember(e,function(){var f=this.callParent(arguments);h[d].apply(this,arguments);return f})})}if(d){for(j in d){a.addHook(d[j],l,j,h)}}if(e){b.onExtended(function(){var d=Ext.Array.slice(arguments,0);d.unshift(b);return e.apply(this,d)},this)}if(i){i.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,'Mixin'],0);Ext.util=Ext.util||{};Ext.util.DelayedTask=function(e,c,d,b,g){var a=this,f,h=function(){var f=Ext.GlobalEvents;clearInterval(a.id);a.id=null;e.apply(c,d||[]);if(g!==!1&&f.hasListeners.idle){f.fireEvent('idle')}};b=typeof b==='boolean'?b:!0;a.id=null;a.delay=function(i,l,j,k){if(b){a.cancel()}if(typeof i==='number'){f=i}e=l||e;c=j||c;d=k||d;if(!a.id){a.id=Ext.interval(h,f)}};a.cancel=function(){if(a.id){clearInterval(a.id);a.id=null}}};Ext.cmd.derive('Ext.util.Event',Ext.Base,function(){var d=Array.prototype.slice,c=Ext.Array.insert,b=Ext.Array.toArray,a={};return {isEvent:!0,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(r,q,g,t,s){var a=this,p=!1,l=a.observable,o=a.name,d,m,i,h,f,k,j,b,e,n;if(a.findListener(r,q)===-1){m=a.createListener(r,q,g,t,s);if(a.firing){a.listeners=a.listeners.slice(0)}d=a.listeners;b=j=d.length;i=g&&g.priority;f=a._highestNegativePriorityIndex;k=f!==undefined;if(i){h=i<0;if(!h||k){for(e=h?f:0;e0},fireDelegated:function(a,b){this.firingObservable=a;return this.fire.apply(this,b)},fire:function(){var e=this,r=e.listeners,t=r.length,n=e.observable,i=n.isElement,w=n.isComponent,v=e.firingObservable,b,o,f,k,c,j,u,h,l,p,g,m,a,s,q;if(!e.suspended&&t>0){e.firing=!0;c=arguments.length?d.call(arguments,0):[];u=c.length;if(i){a=c[0]}for(k=0;k4?b:e;b=e;for(e in b){if(b.hasOwnProperty(e)){g=b[e];if(!h.$eventOptions[e]){f.addManagedListener(h,e,g.fn||g,g.scope||b.scope||i,g.fn?g:k,!0)}}}if(b&&b.destroyable){return new a(f,h,b)}}else {if(j!==d){h.doAddListener(e,j,i,b,null,f,f);if(!l&&b&&b.destroyable){return new a(f,h,e,j,i)}}}},removeManagedListener:function(h,a,k,j){var e=this,b,d,g,i,f;if(typeof a!=='string'){b=a;for(a in b){if(b.hasOwnProperty(a)){d=b[a];if(!h.$eventOptions[a]){e.removeManagedListener(h,a,d.fn||d,d.scope||b.scope||j)}}}}else {g=e.managedListeners?e.managedListeners.slice():[];a=Ext.canonicalEventName(a);for(f=0,i=g.length;f0,d=this.events;if(!b&&a&&d){a=d[a];if(a&&a.isEvent){return a.isSuspended()}}return b},suspendEvents:function(a){++this.eventsSuspended;if(a&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var e=this,f=e.events,g=arguments.length,d,b,a;for(d=0;d0){i.push(g)}d--;if(d===0){f.resolve(i)}return g};m=function(d){h--;if(h===0){f.reject(new Error('Too few Promises were resolved.'))}return d};for(g=j=0,n=e.length;j0){b.type=a.substring(0,e);b.defaultType=a.substring(e+1)}if(f){delete d.factoryConfig;Ext.apply(b,f)}g=Ext.Factory.define(b.type,b);if(c.create===Ext.Base.create){c.create=g}}},0,0,0,0,0,0,[Ext.mixin,'Factoryable'],0);Ext.cmd.derive('Ext.data.request.Base',Ext.Base,{factoryConfig:{type:'request',defaultType:'ajax'},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=!0}a.abort=Ext.emptyFn},createDeferred:function(){return this.deferred=new Ext.Deferred()},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var a=this,b=a.deferred,c=a.result;a.clearTimer();if(b){if(a.success){b.resolve(c)}else {b.reject(c)}}},onTimeout:function(){var a=this;a.timedout=!0;a.timer=null;a.abort(!0)},getTimeout:function(){return this.timeout},clearTimer:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var a=this,b;b={request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?'transaction aborted':'communication failure',getResponseHeader:a._getHeader,getAllResponseHeaders:a._getHeaders};if(a.aborted){b.aborted=!0}if(a.timedout){b.timedout=!0}return b},_getHeader:function(b){var a=this.headers;return a&&a[b.toLowerCase()]},_getHeaders:function(){return this.headers}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.request,'Base'],0);Ext.cmd.derive('Ext.data.flash.BinaryXhr',Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=!0;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById('ext-flash-polyfill');Ext.GlobalEvents.fireEvent('flashready')},flashPluginActive:!1,flashPluginInjected:!1,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(b,c,d){var a;a=this.liveConnections[Number(b)];if(a){a.onFlashStateChange(c,d)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var c=this,b,a;c.flashPolyfillEl=Ext.getBody().appendChild({id:'ext-flash-polyfill',cn:[{tag:'p',html:'To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed.'},{tag:'a',href:'http://www.adobe.com/go/getflashplayer',cn:[{tag:'img',src:window.location.protocol+'//www.adobe.com/images/shared/download_buttons/get_flash_player.gif',alt:'Get Adobe Flash player'}]}]});b=[Ext.Loader.getPath('Ext.data.Connection'),'../../../plugins/flash/swfobject.js'].join('/');a='/plugins/flash/FlashPlugin.swf';if(Ext.flashPluginPath){a=Ext.flashPluginPath}Ext.Loader.loadScript({url:b,onLoad:function(){var d='11.4.0';var e='playerProductInstall.swf';var f={};var b={};b.quality='high';b.bgcolor='#ffffff';b.allowscriptaccess='sameDomain';b.allowfullscreen='true';var c={};c.id='ext-flash-polyfill';c.name='polyfill';c.align='middle';swfobject.embedSWF(a,'ext-flash-polyfill','0','0',d,e,f,b,c)},onError:function(){},scope:c});Ext.data.flash.BinaryXhr.flashPluginInjected=!0}},readyState:0,status:0,statusText:'',responseBytes:null,javascriptId:null,constructor:function(b){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var a=this;Ext.apply(a,b);a.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=!0;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener('flashready',a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(c,b){a.push(c+': '+b)});return a.join('\r\n')},getResponseHeader:function(b){var a=this.responseHeaders;return a&&a[b]||null},open:function(c,f,d,e,b){var a=this;a.method=c;a.url=f;a.async=d!==!1;a.user=e;a.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(b){var a=this;a.body=b;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener('flashready',a.onFlashReady,a)}else {this.onFlashReady()}},onFlashReady:function(){var a=this,b,c;a.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(a);b={method:a.method,url:a.url,user:a.user,password:a.password,mimeType:a.mimeType,requestHeaders:a.requestHeaders,body:a.body,javascriptId:a.javascriptId};c=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(a,b){this.requestHeaders[a]=b},onreadystatechange:Ext.emptyFn,parseData:function(a){var b=this;this.status=a.status||0;b.responseHeaders={};if(b.mimeType){b.responseHeaders['content-type']=b.mimeType}if(a.reason=='complete'){this.responseBytes=a.data;b.responseHeaders['content-length']=a.data.length}else {if(a.reason=='error'||a.reason=='securityError'){this.statusText=a.text;b.responseHeaders['content-length']=0}}},onFlashStateChange:function(b,c){var a=this;if(b==4){a.parseData(c);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(b)}},1,0,0,0,0,0,[Ext.data.flash,'BinaryXhr'],0);Ext.cmd.derive('Ext.data.request.Ajax',Ext.data.request.Base,{statics:{parseStatus:function(a){a=a==1223?204:a;var c=a>=200&&a<300||a==304,b=!1;if(!c){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:b=!0;break;}}return {success:c,isException:b}}},start:function(f){var a=this,e=a.options,c=a.requestOptions,d=a.isXdr,b,g;b=a.xhr=a.openRequest(e,c,a.async,a.username,a.password);if(!d){g=a.setupHeaders(b,e,c.data,c.params)}if(a.async){if(!d){b.onreadystatechange=Ext.Function.bind(a.onStateChange,a)}}if(d){a.processXdrRequest(a,b)}Ext.data.request.Base.prototype.start.call(this,f);b.send(f);if(!a.async){return a.onComplete()}return a},abort:function(c){var a=this,b=a.xhr;if(c||a.isLoading()){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=Ext.emptyFn}b.abort();Ext.data.request.Base.prototype.abort.call(this,c);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var c=this,a=c.xhr,b=a&&a.readyState,d=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!a||c.aborted||c.timedout){return !1}if(d&&a instanceof d){return b!==4}return b!==0&&b!==4},openRequest:function(d,b,f,e,g){var c=this,a=c.newRequest(d);if(e){a.open(b.method,b.url,f,e,g)}else {if(c.isXdr){a.open(b.method,b.url)}else {a.open(b.method,b.url,f)}}if(d.binary||c.binary){if(window.Uint8Array){a.responseType='arraybuffer'}else {if(a.overrideMimeType){a.overrideMimeType('text/plain; charset=x-user-defined')}}}if(d.withCredentials||c.withCredentials){a.withCredentials=!0}return a},newRequest:function(c){var a=this,b;if(c.binaryData){if(window.Uint8Array){b=a.getXhrInstance()}else {b=new Ext.data.flash.BinaryXhr()}}else {if(a.cors&&Ext.isIE9m){b=a.getXdrInstance();a.isXdr=!0}else {b=a.getXhrInstance();a.isXdr=!1}}return b},setupHeaders:function(m,f,j,l){var d=this,a=Ext.apply({},f.headers||{},d.defaultHeaders),e=d.defaultPostHeader,h=f.jsonData,i=f.xmlData,b='Content-Type',k=d.useDefaultXhrHeader,c,g;if(!a.hasOwnProperty(b)&&(j||l)){if(j){if(f.rawData){e='text/plain'}else {if(i&&Ext.isDefined(i)){e='text/xml'}else {if(h&&Ext.isDefined(h)){e='application/json'}}}}a[b]=e}if(k&&!a['X-Requested-With']){a['X-Requested-With']=d.defaultXhrHeader}if(a[b]===undefined||a[b]===null){delete a[b]}try{for(c in a){if(a.hasOwnProperty(c)){g=a[c];m.setRequestHeader(c,g)}}}catch(n){d.owner.fireEvent('exception',c,g)}return a},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else {Ext.raise({msg:'Your browser does not support CORS'})}return a},getXhrInstance:function(){var c=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject('MSXML2.XMLHTTP.3.0')},function(){return new ActiveXObject('MSXML2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')}],b=0,d=c.length,a;for(;b=0){j=e.substr(0,c).toLowerCase();if(e.charAt(c+1)==' '){++c}f[j]=e.substr(c+1)}}b={request:d,requestId:d.id,status:a.status,statusText:a.statusText,getResponseHeader:function(b){return f[b.toLowerCase()]},getAllResponseHeaders:function(){return f}};if(h){d.processXdrResponse(b,a)}if(d.binary){b.responseBytes=d.getByteArray(a)}else {b.responseText=a.responseText;b.responseXML=a.responseXML}return b},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(b){var e=b.response,g=b.responseBody,h=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,d,f,c;if(b instanceof h){a=b.responseBytes}else {if(window.Uint8Array){a=e?new Uint8Array(e):[]}else {if(Ext.isIE9p){try{a=(new VBArray(g)).toArray()}catch(i){a=[]}}else {if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(b.responseBody,a=[])}else {a=[];d=b.responseText;f=d.length;for(c=0;c=500){this.run()}},run:function(){var a=this;if(!a.isRunning){return}var b=a.runningQueue,d=Ext.now(),c,e;a.lastRunTime=d;a.frameStartTime=d;b.push.apply(b,a.queue);for(c=0,e=b.length;c0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty('taskQueueTimer')){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var a=this.taskQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}}},1,0,0,0,0,0,[Ext,'AnimationQueue'],0);Ext.cmd.derive('Ext.ComponentManager',Ext.Base,{alternateClassName:'Ext.ComponentMgr',singleton:!0,count:0,typeName:'xtype',constructor:function(b){var a=this;Ext.apply(a,b||{});a.all={};a.references={};a.onAvailableCallbacks={}},create:function(a,b){if(typeof a==='string'){return Ext.widget(a)}if(a.isComponent){return a}if('xclass' in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(b){var a=this,e=a.all,d=b.getId(),c=a.onAvailableCallbacks;e[d]=b;if(b.getReference&&b.getReference()){a.references[d]=b}++a.count;if(!a.hasFocusListener){Ext.on('focus',a.onGlobalFocus,a);a.hasFocusListener=!0}c=c&&c[d];if(c&&c.length){a.notifyAvailable(b)}},unregister:function(b){var a=b.getId();if(b.getReference&&b.getReference()){this.references[a]=null;delete this.references[a]}this.all[a]=null;delete this.all[a];this.count--},markReferencesDirty:function(){this.referencesDirty=!0},fixReferences:function(){var c=this,a=c.references,b;if(c.referencesDirty){for(b in a){if(a.hasOwnProperty(b)){a[b].fixReference()}}c.referencesDirty=!1}},onAvailable:function(a,f,d){var g=this,b=g.onAvailableCallbacks,e=g.all,c;if(a in e){c=e[a];f.call(d||c,c)}else {if(a){if(!Ext.isArray(b[a])){b[a]=[]}b[a].push(function(b){f.call(d||b,b)})}}},notifyAvailable:function(a){var b=this.onAvailableCallbacks[a&&a.getId()]||[];while(b.length){b.shift()(a)}},each:function(b,a){return Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.fromElement(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(d){var h=this,g=d.toElement,f=d.fromElement,c=Ext.Component.fromElement(g),b=Ext.Component.fromElement(f),e,a;if(c===b){return}e=h.getCommonAncestor(b,c);if(b&&!(b.destroyed||b.destroying)){if(b.handleBlurEvent){b.handleBlurEvent(d)}for(a=b;a&&a!==e;a=a.getRefOwner()){if(!(a.destroyed||a.destroying)){a.onFocusLeave({event:d.event,type:'focusleave',target:f,relatedTarget:g,fromComponent:b,toComponent:c})}}}if(c&&!c.destroyed){if(c.handleFocusEvent){c.handleFocusEvent(d)}for(a=c;a&&a!==e;a=a.getRefOwner()){a.onFocusEnter({event:d.event,type:'focusenter',relatedTarget:f,target:g,fromComponent:b,toComponent:c})}}},getCommonAncestor:function(a,b){if(a===b){return a}while(a&&!(a.isAncestor(b)||a===b)){a=a.getRefOwner()}return a},privates:{clearAll:function(){this.all={};this.references={};this.onAvailableCallbacks={}},fromElement:function(i,b,e){var a=Ext.getDom(i),h=this.all,g=0,f,d,c;if(typeof b!=='number'){f=Ext.getDom(b);b=Number.MAX_VALUE}while(a&&a.nodeType===1&&g0){for(;a.first&&b;b--){a.removeAtKey(a.first.key)}}},destroy:function(){this.first=this.last=null;Ext.util.HashMap.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util,'LruCache'],0);Ext.cmd.derive('Ext.ComponentQuery',Ext.Base,{singleton:!0},0,0,0,0,0,0,[Ext,'ComponentQuery'],function(){var a=this,f=Ext.util.Operators,r=/(\d*)n\+?(\d*)/,q=/\D/,c=/^(\s)+/,b=/\\(.)/g,j=new Ext.util.LruCache({maxSize:100}),m=['var r = [],','i = 0,','it = items,','l = it.length,','c;','for (; i < l; i++) {','c = it[i];','if (c.{0}) {','r.push(c);','}','}','return r;'].join(''),d=function(b,a){return a.method.apply(this,[b].concat(a.args))},e=function(d,g){var b=[],c=0,e=d.length,a,f=g!=='>';for(;c\^])\s?|\s|$)/,o=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,k=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:g,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:l,argTransform:function(c){var g=c[0],f=c[1],e=c[2],a=c[4],d;if(a!==undefined){a=a.replace(b,'$1')}if(e==='/='){d=j.get(a);if(d){a=d}else {a=j.add(a,new RegExp(a))}}return [f,e,a]}},{re:/^#((?:\\\.|[\w\-])+)/,method:i},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:n,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:m}];a.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(f){var c=this.operations,b=[],e,a,d;for(a=0,d=c.length;a=0;--c){g=l[c];b=g.mode;if(b){if(b==='^'){a=e(a,' ')}else {if(b==='>'){i=[];for(f=0,k=a.length;f1}});Ext.apply(a,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(d,f){var c=0,g=d.length,e=[],h=-1,b;for(;c0){b.push(a[0])}return b},last:function(a){var b=a.length,c=[];if(b>0){c.push(a[b-1])}return c},focusable:function(d){var e=d.length,c=[],b=0,a;for(;b=c.left&&(t=='t'&&v=='b'||t=='b'&&v=='t');o=f=c.top&&(s=='r'&&u=='l'||s=='l'&&u=='r');if(e+k>a.right){if(o){e=c.left-k;o=!1}else {e=a.right-k}}if(ea.bottom){if(p){f=c.top-j;p=!1}else {f=a.bottom-j}}if(fa.right){e=!0;d[0]=a.right-b.right}if(b.left+d[0]a.bottom){e=!0;d[1]=a.bottom-b.bottom}if(b.top+d[1]=b.x&&a.right<=b.right&&a.y>=b.y&&a.bottom<=b.bottom},intersect:function(a){var b=this,f=Math.max(b.y,a.y),e=Math.min(b.right,a.right),c=Math.min(b.bottom,a.bottom),d=Math.max(b.x,a.x);if(c>f&&e>d){return new this.self(f,e,c,d)}else {return !1}},union:function(a){var b=this,f=Math.min(b.y,a.y),e=Math.max(b.right,a.right),c=Math.max(b.bottom,a.bottom),d=Math.min(b.x,a.x);return new this.self(f,e,c,d)},constrainTo:function(b){var a=this,c=Ext.Number.constrain;a.top=a.y=c(a.top,b.y,b.bottom);a.bottom=c(a.bottom,b.y,b.bottom);a.left=a.x=c(a.left,b.x,b.right);a.right=c(a.right,b.x,b.right);return a},adjust:function(e,c,b,d){var a=this;a.top=a.y+=e;a.left=a.x+=d;a.right+=c;a.bottom+=b;return a},getOutOfBoundOffset:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.getOutOfBoundOffsetX(a)}else {return this.getOutOfBoundOffsetY(a)}}else {a=b;var c=new Ext.util.Offset();c.x=this.getOutOfBoundOffsetX(a.x);c.y=this.getOutOfBoundOffsetY(a.y);return c}},getOutOfBoundOffsetX:function(a){if(a<=this.x){return this.x-a}else {if(a>=this.right){return this.right-a}}return 0},getOutOfBoundOffsetY:function(a){if(a<=this.y){return this.y-a}else {if(a>=this.bottom){return this.bottom-a}}return 0},isOutOfBound:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.isOutOfBoundX(a)}else {return this.isOutOfBoundY(a)}}else {a=b;return this.isOutOfBoundX(a.x)||this.isOutOfBoundY(a.y)}},isOutOfBoundX:function(a){return athis.right},isOutOfBoundY:function(a){return athis.bottom},restrict:function(d,a,b){if(Ext.isObject(d)){var c;b=a;a=d;if(a.copy){c=a.copy()}else {c={x:a.x,y:a.y}}c.x=this.restrictX(a.x,b);c.y=this.restrictY(a.y,b);return c}else {if(d=='x'){return this.restrictX(a,b)}else {return this.restrictY(a,b)}}},restrictX:function(a,b){if(!b){b=1}if(a<=this.x){a-=(a-this.x)*b}else {if(a>=this.right){a-=(a-this.right)*b}}return a},restrictY:function(a,b){if(!b){b=1}if(a<=this.y){a-=(a-this.y)*b}else {if(a>=this.bottom){a-=(a-this.bottom)*b}}return a},getSize:function(){return {width:this.right-this.x,height:this.bottom-this.y}},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(b){var a=this;a.top=a.y=a[1]=b.y;a.right=b.right;a.bottom=b.bottom;a.left=a.x=a[0]=b.x;return this},toString:function(){return 'Region['+this.top+','+this.right+','+this.bottom+','+this.left+']'},translateBy:function(b,c){if(arguments.length==1){c=b.y;b=b.x}var a=this;a.top=a.y+=c;a.right+=b;a.bottom+=c;a.left=a.x+=b;return a},round:function(){var a=this;a.top=a.y=Math.round(a.y);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);a.left=a.x=Math.round(a.x);return a},equals:function(a){return this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left}},3,0,0,0,0,0,[Ext.util,'Region'],0);Ext.cmd.derive('Ext.util.Point',Ext.util.Region,{radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(b){var a=b.changedTouches,c=a&&a.length>0?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}Ext.util.Region.prototype.constructor.call(this,b,a,b,a)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return 'Point['+this.x+','+this.y+']'},equals:function(a){return this.x===a.x&&this.y===a.y},isCloseTo:function(b,a){if(typeof a=='number'){return this.getDistanceTo(b)<=a}var e=b.x,f=b.y,c=a.x,d=a.y;return this.x<=e+c&&this.x>=e-c&&this.y<=f+d&&this.y>=f-d},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=='object'){a=this.origin}return Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y)},getDistanceTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.sqrt(b*b+c*c)},getAngleTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.atan2(c,b)*this.radianToDegreeConstant}},3,0,0,0,0,0,[Ext.util,'Point'],function(){this.prototype.translate=this.prototype.translateBy});Ext.cmd.derive('Ext.event.Event',Ext.Base,{alternateClassName:'Ext.EventObjectImpl',isStopped:!1,defaultPrevented:!1,isEvent:!0,statics:{resolveTextNode:function(a){return a&&a.nodeType===3?a.parentNode:a},pointerEvents:{pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerDown:1,MSPointerMove:1,MSPointerUp:1,MSPointerOver:1,MSPointerOut:1,MSPointerCancel:1,MSPointerEnter:1,MSPointerLeave:1},mouseEvents:{mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1,mouseenter:1,mouseleave:1},clickEvents:{click:1,dblclick:1},touchEvents:{touchstart:1,touchmove:1,touchend:1,touchcancel:1},focusEvents:{focus:1,blur:1,focusin:1,focusout:1,focusenter:1,focusleave:1},pointerTypes:{2:'touch',3:'pen',4:'mouse',touch:'touch',pen:'pen',mouse:'mouse'}},constructor:function(b){var a=this,c=a.self,h=a.self.resolveTextNode,i=b.changedTouches,g=i?i[0]:b,d=b.type,e,f;a.pageX=g.pageX;a.pageY=g.pageY;a.target=a.delegatedTarget=h(b.target);f=b.relatedTarget;if(f){a.relatedTarget=h(f)}a.browserEvent=a.event=b;a.type=d;a.button=b.button||0;a.shiftKey=b.shiftKey;a.ctrlKey=b.ctrlKey||b.metaKey||!1;a.altKey=b.altKey;a.charCode=b.charCode;a.keyCode=b.keyCode;a.buttons=b.buttons;if(a.button===0&&a.buttons===0){a.buttons=1}if(c.forwardTab!==undefined&&c.focusEvents[d]){a.forwardTab=c.forwardTab}if(c.mouseEvents[d]||c.clickEvents[d]){e='mouse'}else {if(c.pointerEvents[d]){e=c.pointerTypes[b.pointerType]}else {if(c.touchEvents[d]){e='touch'}}}if(e){a.pointerType=e}a.timeStamp=a.time=+(b.timeStamp||new Date())},chain:function(b){var a=Ext.Object.chain(this);a.parentEvent=this;return Ext.apply(a,b)},correctWheelDelta:function(a){var c=this.WHEEL_SCALE,b=Math.round(a/c);if(!b&&a){b=a<0?-1:1}return b},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.keyCodes[this.keyCode]},getPoint:function(){var a=this.getXY();return new Ext.util.Point(a[0],a[1])},getRelatedTarget:function(d,e,c){var a=this.relatedTarget,b=null;if(a){if(d){b=Ext.fly(a).findParent(d,e,c)}else {b=c?Ext.get(a):a}}return b},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):a?Ext.get(this.target):this.target},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var d=this,a=d.browserEvent,c=0,b=0;if(Ext.isDefined(a.wheelDeltaX)){c=a.wheelDeltaX;b=a.wheelDeltaY}else {if(a.wheelDelta){b=a.wheelDelta}else {if(a.detail){b=-a.detail;if(b>100){b=3}else {if(b<-100){b=-3}}if(Ext.isDefined(a.axis)&&a.axis===a.HORIZONTAL_AXIS){c=b;b=0}}}}return {x:d.correctWheelDelta(c),y:d.correctWheelDelta(b)}},getX:function(){return this.getXY()[0]},getXY:function(){var d=this,c=d.xy;if(!c){c=d.xy=[d.pageX,d.pageY];var g=c[0],e,f,a,b;if(!g&&g!==0){e=d.browserEvent;f=document;a=f.documentElement;b=f.body;c[0]=e.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);c[1]=e.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}}return c},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(c){var a=this,b=a.keyCode,d=a.type==='keypress';return (!d||Ext.isGecko)&&b>=33&&b<=40||!c&&(b===a.RETURN||b===a.TAB||b===a.ESC)},isSpecialKey:function(){var b=this,a=b.keyCode,d=Ext.isGecko,c=b.type==='keypress';return d&&c&&b.charCode===0||this.isNavKeyPress()||a===b.BACKSPACE||a===b.ENTER||a>=16&&a<=20||(!c||d)&&a>=44&&a<=46},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var a=this,b=a.parentEvent;a.defaultPrevented=!0;if(b){b.defaultPrevented=!0}a.browserEvent.preventDefault();return a},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var a=this,b=a.browserEvent,c=a.parentEvent;a.isStopped=!0;if(c){c.isStopped=!0}if(!b.stopPropagation){b.cancelBubble=!0;return a}b.stopPropagation();return a},within:function(b,d,c){var a;if(b){a=d?this.getRelatedTarget():this.getTarget()}return a?Ext.fly(b).contains(a)||!!(c&&a===Ext.getDom(b)):!1},deprecated:{'4.0':{methods:{getPageX:'getX',getPageY:'getY'}}}},1,0,0,0,0,0,[Ext.event,'Event',Ext,'EventObjectImpl'],function(f){var b=f.prototype,a={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,WHEEL_SCALE:function(){var a;if(Ext.isGecko){a=3}else {if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){a=120}else {a=12}a*=3}else {a=120}}return a}()},d={},c,e;Ext.apply(f,a);Ext.apply(b,a);delete a.WHEEL_SCALE;delete a.RETURN;for(c in a){e=a[c];d[e]=c}b.keyCodes=d;b.getTrueXY=b.getXY});Ext.define('Ext.overrides.event.Event',{override:'Ext.event.Event',mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:function(){var a,b={},c;if(!Ext.isIE9m&&document.createEvent){a={createHtmlEvent:function(e,d,c,b){var a=e.createEvent('HTMLEvents');a.initEvent(d,c,b);return a},createMouseEvent:function(d,n,h,f,m,b,c,i,k,g,j,l,e){var a=d.createEvent('MouseEvents'),o=d.defaultView||window;if(a.initMouseEvent){a.initMouseEvent(n,h,f,o,m,b,c,b,c,i,k,g,j,l,e)}else {a=d.createEvent('UIEvents');a.initEvent(n,h,f);a.view=o;a.detail=m;a.screenX=b;a.screenY=c;a.clientX=b;a.clientY=c;a.ctrlKey=i;a.altKey=k;a.metaKey=j;a.shiftKey=g;a.button=l;a.relatedTarget=e}return a},createUIEvent:function(b,f,d,c,e){var a=b.createEvent('UIEvents'),g=b.defaultView||window;a.initUIEvent(f,d,c,g,e);return a},fireEvent:function(a,c,b){a.dispatchEvent(b)}}}else {if(document.createEventObject){c={0:1,1:4,2:2};a={createHtmlEvent:function(d,e,c,b){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},createMouseEvent:function(n,o,i,g,m,b,d,j,l,h,k,e,f){var a=n.createEventObject();a.bubbles=i;a.cancelable=g;a.detail=m;a.screenX=b;a.screenY=d;a.clientX=b;a.clientY=d;a.ctrlKey=j;a.altKey=l;a.shiftKey=h;a.metaKey=k;a.button=c[e]||e;a.relatedTarget=f;return a},createUIEvent:function(d,f,c,b,e){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},fireEvent:function(a,c,b){a.fireEvent('on'+c,b)}}}}Ext.Object.each({load:[!1,!1],unload:[!1,!1],select:[!0,!1],change:[!0,!1],submit:[!0,!0],reset:[!0,!1],resize:[!0,!1],scroll:[!0,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createHtmlEvent(c,f,e);a.fireEvent(b,c,g)}});function createMouseEventDispatcher(b,d){var c=b!=='mousemove';return function(f,e){var g=e.getXY(),h=a.createMouseEvent(f.ownerDocument,b,!0,c,d,g[0],g[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget);a.fireEvent(f,b,h)}}Ext.each(['click','dblclick','mousedown','mouseup','mouseover','mousemove','mouseout'],function(a){b[a]=createMouseEventDispatcher(a,1)});Ext.Object.each({focusin:[!0,!1],focusout:[!0,!1],activate:[!0,!0],focus:[!1,!1],blur:[!1,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createUIEvent(b.ownerDocument,c,f,e,1);a.fireEvent(b,c,g)}});if(!a){b={};a={}}function cannotInject(b,a){}return function(a){var c=this,d=b[c.type]||cannotInject,e=a?a.dom||a:c.getTarget();d(e,c)}}(),preventDefault:function(){var c=this,a=c.browserEvent,e=c.parentEvent,d,b;if(typeof a.type!=='unknown'){c.defaultPrevented=!0;if(e){e.defaultPrevented=!0}if(a.preventDefault){a.preventDefault()}else {if(a.type==='mousedown'){b=a.target;d=b.getAttribute('unselectable');if(d!=='on'){b.setAttribute('unselectable','on');Ext.defer(function(){b.setAttribute('unselectable',d)},1)}}a.returnValue=!1;if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}}return c},stopPropagation:function(){var a=this,b=a.browserEvent;if(typeof b.type!=='unknown'){if(a.mousedownEvents[a.type]){Ext.GlobalEvents.fireMouseDown(a)}arguments.callee.$previous.call(this)}return a},deprecated:{'5.0':{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var c=this,d,a=function(a){if(a.keyCode===9){c.forwardTab=!a.shiftKey}},b=function(a){if(a.keyCode===9){delete c.forwardTab}};if(Ext.isIE9m){d={0:0,1:0,4:1,2:2};c.override({statics:{enableIEAsync:function(b){var a,c={};for(a in b){c[a]=b[a]}return c}},constructor:function(a,f,e,c){var b=this;b.callParent([a,f,e,c]);b.button=d[a.button];if(a.type==='contextmenu'){b.button=2}b.toElement=a.toElement;b.fromElement=a.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(a){this.browserEvent=this.self.enableIEAsync(a)},getRelatedTarget:function(f,d,e){var a=this,c,b;if(!a.relatedTarget){c=a.type;if(a.mouseLeaveRe.test(c)){b=a.toElement}else {if(a.mouseEnterRe.test(c)){b=a.fromElement}}if(b){a.relatedTarget=a.self.resolveTextNode(b)}}return a.callParent([f,d,e])}});document.attachEvent('onkeydown',a);document.attachEvent('onkeyup',b);window.attachEvent('onunload',function(){document.detachEvent('onkeydown',a);document.detachEvent('onkeyup',b)})}else {if(document.addEventListener){document.addEventListener('keydown',a,!0);document.addEventListener('keyup',b,!0)}}});Ext.cmd.derive('Ext.event.publisher.Dom',Ext.event.publisher.Publisher,{type:'dom',handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1,scroll:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var b=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=b.handledDomEvents,f=d.length,c=0,a;for(;cb?1:a1){e=[];for(d=0;d0){b.invokeRecognizers('onTouchMove',a)}}},onTouchEnd:function(b){var a=this;if(!a.isStarted){return}a.updateTouches(b,!0);a.invokeRecognizers(a.isCancelEvent[b.type]?'onTouchCancel':'onTouchEnd',b);if(!a.activeTouches.length){a.isStarted=!1;a.invokeRecognizers('onEnd',b);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else {this.doTargetTouchMove(a)}},doTargetTouchMove:function(a){if(!Ext.getBody().contains(a.target)){this.onTouchMove(new Ext.event.Event(a))}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else {this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var b=this,a=c.target;a.removeEventListener('touchmove',b.onTargetTouchMove);a.removeEventListener('touchend',b.onTargetTouchEnd);a.removeEventListener('touchcancel',b.onTargetTouchEnd);if(!Ext.getBody().contains(a)){b.onTouchEnd(new Ext.event.Event(c))}},updateAsync:function(a){this.handlers=a?this._asyncHandlers:this._handlers},reset:function(){var a=this,d=a.recognizers,e=d.length,b,c;a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.isStarted=!1;for(b=0;b=500){this.run()}},run:function(){this.pending=!1;var i=this.readQueue,h=this.writeQueue,c=null,d;if(this.mode){d=i;if(h.length>0){c=!1}}else {d=h;if(i.length>0){c=!0}}var g=d.slice(),f,j,b,a,e;d.length=0;for(f=0,j=g.length;f2){a.apply(e,b[2])}else {a.call(e)}}g.length=0;if(c!==null){this.request(c)}}},1,0,0,0,0,0,[Ext,'TaskQueue'],0);Ext.cmd.derive('Ext.util.sizemonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:0,height:0,contentWidth:0,contentHeight:0,constructor:function(a){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(a);this.bindListeners(!0)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer);a.addCls('x-size-monitored')},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.offsetWidth},getContentHeight:function(){return this.detectorsContainer.offsetHeight},refreshSize:function(){var b=this.getElement();if(!b||b.destroyed){return !1}var h=b.getWidth(),g=b.getHeight(),d=this.getContentWidth(),c=this.getContentHeight(),j=this.contentWidth,i=this.contentHeight,a=this.info,f=!1,e;this.width=h;this.height=g;this.contentWidth=d;this.contentHeight=c;e=(j!==d?1:0)+(i!==c?2:0);if(e>0){a.width=h;a.height=g;a.contentWidth=d;a.contentHeight=c;a.flag=e;f=!0;this.getCallback().apply(this.getScope(),this.getArgs())}return f},refresh:function(a){if(this.refreshSize()||a){Ext.TaskQueue.requestWrite('refreshMonitors',this)}},destroy:function(){var a=this,b=a.getElement();a.bindListeners(!1);if(b&&!b.destroyed){b.removeCls('x-size-monitored')}delete a._element;a.callParent()}},1,0,0,0,0,[[Ext.mixin.Templatable.prototype.mixinId||Ext.mixin.Templatable.$className,Ext.mixin.Templatable]],[Ext.util.sizemonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.sizemonitor.Scroll',Ext.util.sizemonitor.Abstract,{getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','scroll'],children:[{reference:'expandMonitor',className:'expand'},{reference:'shrinkMonitor',className:'shrink'}]}},constructor:function(a){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a]('scroll',this.onScroll,!0);this.shrinkMonitor[a]('scroll',this.onScroll,!0)},forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this,[!0])},onScroll:function(){Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){var a=this.expandMonitor,b=this.shrinkMonitor,c=1000000;if(a&&!a.destroyed){a.scrollLeft=c;a.scrollTop=c}if(b&&!b.destroyed){b.scrollLeft=c;b.scrollTop=c}}},1,0,0,0,0,0,[Ext.util.sizemonitor,'Scroll'],0);Ext.cmd.derive('Ext.util.sizemonitor.OverflowChange',Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=Ext.Function.bind(this.onExpand,this);this.onShrink=Ext.Function.bind(this.onShrink,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','overflowchanged'],children:[{reference:'expandMonitor',className:'expand',children:[{reference:'expandHelper'}]},{reference:'shrinkMonitor',className:'shrink',children:[{reference:'shrinkHelper'}]}]}},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a](Ext.browser.is.Firefox?'underflow':'overflowchanged',this.onExpand,!0);this.shrinkMonitor[a](Ext.browser.is.Firefox?'overflow':'overflowchanged',this.onShrink,!0)},onExpand:function(a){if(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},onShrink:function(a){if(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){if(this.destroyed){return}var b=this.expandHelper,c=this.shrinkHelper,d=this.getContentBounds(),f=d.width,e=d.height,a;if(b&&!b.destroyed){a=b.style;a.width=f+1+'px';a.height=e+1+'px'}if(c&&!c.destroyed){a=c.style;a.width=f+'px';a.height=e+'px'}Ext.TaskQueue.requestRead('refresh',this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,'OverflowChange'],0);Ext.cmd.derive('Ext.util.SizeMonitor',Ext.Base,{constructor:function(b){var a=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new a.OverflowChange(b)}else {return new a.Scroll(b)}}},1,0,0,0,0,0,[Ext.util,'SizeMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementSize',Ext.event.publisher.Publisher,{type:'size',handledEvents:['resize'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(b){var a=b.id,c=this.subscribers,d=this.monitors;if(c[a]){++c[a]}else {c[a]=1;d[a]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on('painted','forceRefresh',d[a]);return !0},unsubscribe:function(e){var a=e.id,c=this.subscribers,d=this.monitors,b;if(c[a]&&!--c[a]){delete c[a];b=d[a];e.un('painted','forceRefresh',b);b.destroy();delete d[a]}},onElementResize:function(a,b){Ext.TaskQueue.requestRead('fire',this,[a,'resize',[a,b]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementSize'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.util.paintmonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:'',monitorClass:'',constructor:function(a){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?'addEventListener':'removeEventListener'](this.eventName,this.onElementPainted,!0)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:['x-paint-monitor',this.monitorClass]},!0);a.appendChild(this.monitorElement);a.addCls('x-paint-monitored');this.bindListeners(!0)},onElementPainted:function(){},destroy:function(){var a=this,c=a.monitorElement,d=c.parentNode,b=a.getElement();a.bindListeners(!1);delete a.monitorElement;if(b&&!b.destroyed){b.removeCls('x-paint-monitored');delete a._element}if(d){d.removeChild(c)}a.callParent()}},1,0,0,0,0,0,[Ext.util.paintmonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.paintmonitor.CssAnimation',Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.WebKit?'webkitAnimationEnd':'animationend',monitorClass:'cssanimation',onElementPainted:function(a){if(a.animationName==='x-paint-monitor-helper'){this.getCallback().apply(this.getScope(),this.getArgs())}}},0,0,0,0,0,0,[Ext.util.paintmonitor,'CssAnimation'],0);Ext.cmd.derive('Ext.util.PaintMonitor',Ext.Base,{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}},1,0,0,0,0,0,[Ext.util,'PaintMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementPaint',Ext.event.publisher.Publisher,{type:'paint',handledEvents:['painted'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(d){var b=this,a=d.id,c=b.subscribers;if(c[a]){++c[a]}else {c[a]=1;b.monitors[a]=new Ext.util.PaintMonitor({element:d,callback:b.onElementPainted,scope:b,args:[d]})}},unsubscribe:function(d){var a=d.id,b=this.subscribers,c=this.monitors;if(b[a]&&!--b[a]){delete b[a];c[a].destroy();delete c[a]}},onElementPainted:function(a){Ext.TaskQueue.requestRead('fire',this,[a,'painted',[a]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementPaint'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.dom.Element',Ext.Base,function(a){var h=window,b=document,F='ext-window',D='ext-document',w='width',H='height',ac='min-width',_='min-height',ab='max-width',$='max-height',S='top',P='right',ag='bottom',R='left',aa='visibility',M='hidden',G='display',x='none',O='z-index',u='position',ad='relative',N='static',i='-',T=/\w/g,k=/\s+/,V=/[\s]+/,Y=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,U=/table-row|table-.*-group/,Q=/top/i,d={t:'border-top-width',r:'border-right-width',b:'border-bottom-width',l:'border-left-width'},f={t:'padding-top',r:'padding-right',b:'padding-bottom',l:'padding-left'},v={t:'margin-top',r:'margin-right',b:'margin-bottom',l:'margin-left'},Z=[f.l,f.r,f.t,f.b],B=[d.l,d.r,d.t,d.b],ae=/\d+$/,I=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,C='px',af=/(-[a-z])/gi,J=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,t=/^\d+(?:\.\d*)?px$/i,A={},y='originalDisplay',X=function(c,b){return b.charAt(1).toUpperCase()},E=function(d,e){var c,b,f;if(d.nodeType===1){d._extData=null;if(e){c=d.childNodes;for(b=0,f=c.length;bh.innerWidth?'portrait':'landscape'},getViewportHeight:function(){var c=a._viewportHeight;if(Ext.isIE9m){return b.documentElement.clientHeight}return c!=null?c:h.innerHeight},getViewportWidth:function(){var c=a._viewportWidth;if(Ext.isIE9m){return b.documentElement.clientWidth}return c!=null?c:h.innerWidth},getViewSize:function(){return {width:a.getViewportWidth(),height:a.getViewportHeight()}},normalize:function(b){return A[b]||(A[b]=b.replace(af,X))},_onWindowFocusChange:function(b){if(Ext.fly(b.target).is(a.editableSelector)){z=new Date();L=b.type==='focusin'||b.type==='pointerup'}},_onWindowResize:function(){var c=window.innerWidth,b=window.innerHeight,g=new Date(),f=1000,d,e;d=c-a._windowWidth;e=b-a._windowHeight;a._windowWidth=c;a._windowHeight=b;if(g-z=a.minKeyboardHeight){l=!1;K=new Date()}if(l){return}a._viewportWidth=c;a._viewportHeight=b},parseBox:function(c){c=c||0;var e=typeof c,b,d;if(e==='number'){return {top:c,right:c,bottom:c,left:c}}else {if(e!=='string'){return c}}b=c.split(' ');d=b.length;if(d===1){b[1]=b[2]=b[3]=b[0]}else {if(d===2){b[2]=b[0];b[3]=b[1]}else {if(d===3){b[3]=b[1]}}}return {top:parseFloat(b[0])||0,right:parseFloat(b[1])||0,bottom:parseFloat(b[2])||0,left:parseFloat(b[3])||0}},parseStyles:function(c){var d={},b;if(c){J.lastIndex=0;while(b=J.exec(c)){d[b[1]]=b[2]||''}}return d},select:function(d,c,e){return Ext.fly(e||b).select(d,c)},query:function(c,d,e){return Ext.fly(e||b).query(c,d)},unitizeBox:function(b,d){var c=this;b=c.parseBox(b);return c.addUnits(b.top,d)+' '+c.addUnits(b.right,d)+' '+c.addUnits(b.bottom,d)+' '+c.addUnits(b.left,d)},serializeForm:function(l){var m=l.elements||(b.forms[l]||Ext.getDom(l)).elements,n=!1,f=encodeURIComponent,g='',q=m.length,c,h,d,k,o,i,j,p,e;for(i=0;i0||b.scrollLeft!==0){e.push(b);g.push(c.attach(b).getScroll())}}return function(){var d,b,f;for(b=0,f=e.length;b '+d,!!c)},clone:function(c,d){var b=this.dom.cloneNode(c);if(Ext.supports.CloneNodeCopiesExpando){E(b,c)}return d?b:Ext.get(b)},constrainScrollLeft:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollWidth-b.clientWidth),0)},constrainScrollTop:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollHeight-b.clientHeight),0)},createChild:function(b,c,d){b=b||{tag:'div'};if(c){return Ext.DomHelper.insertBefore(c,b,d!==!0)}else {return Ext.DomHelper.append(this.dom,b,d!==!0)}},contains:function(b){if(!b){return !1}var d=this,c=Ext.getDom(b);return c===d.dom||d.isAncestor(c)},destroy:function(){var c=this,b=c.dom;if(b&&b.parentNode){b.parentNode.removeChild(b)}c.collect();if(!c.isFly){c.callParent()}},detach:function(){var b=this.dom;if(b&&b.parentNode&&b.tagName!=='BODY'){b.parentNode.removeChild(b)}return this},disableShadow:function(){var b=this.shadow;if(b){b.hide();b.disabled=!0}},disableShim:function(){var b=this.shim;if(b){b.hide();b.disabled=!0}},disableTouchContextMenu:function(){this._contextMenuListenerRemover=this.on({MSHoldVisual:function(b){b.preventDefault()},destroyable:!0,delegated:!1})},disableTouchScroll:function(){this.addCls(W);this.on({touchmove:function(b){b.preventDefault()},translate:!1})},doReplaceWith:function(c){var b=this.dom;b.parentNode.replaceChild(Ext.getDom(c),b)},doScrollIntoView:function(b,o,d,m,l,n){c=c||new Ext.dom.Fly();var e=this,k=e.dom,i=c.attach(b)[l](),j=b.scrollTop,h=e.getScrollIntoViewXY(b,i,j),f=h.x,g=h.y;if(m){if(d){d=Ext.apply({listeners:{afteranimate:function(){c.attach(k).highlight()}}},d)}else {c.attach(k).highlight()}}if(g!==j){c.attach(b).scrollTo('top',g,d)}if(o!==!1&&f!==i){c.attach(b)[n]('left',f,d)}return e},down:function(c,b){return this.selectNode(c,!!b)},enableShadow:function(f,e){var c=this,b=c.shadow||(c.shadow=new Ext.dom.Shadow(Ext.apply({target:c},f))),d=c.shim;if(d){d.offsets=b.outerOffsets;d.shadow=b;b.shim=d}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},enableShim:function(f,e){var c=this,b=c.shim||(c.shim=new Ext.dom.Shim(Ext.apply({target:c},f))),d=c.shadow;if(d){b.offsets=d.outerOffsets;b.shadow=d;d.shim=b}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},findParent:function(g,d,h){var i=this,c=i.dom,e=b.documentElement,f=0;if(d||d===0){if(typeof d!=='number'){e=Ext.getDom(d);d=Number.MAX_VALUE}}else {d=50}while(c&&c.nodeType===1&&f0&&d<0.5){b++}}}if(e){b-=c.getBorderWidth('tb')+c.getPadding('tb')}return b<0?0:b},getHtml:function(){return this.dom?this.dom.innerHTML:''},getLeft:function(b){return b?this.getLocalX():this.getX()},getLocalX:function(){var d=this,c,b=d.getStyle('left');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getX();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getX()}}}return b},getLocalXY:function(){var e=this,d,f=e.getStyle(['left','top']),b=f.left,c=f.top;if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=e.getX();d=e.dom.offsetParent;if(d){b-=Ext.fly(d).getX()}}}if(!c||c==='auto'){c=0}else {if(t.test(c)){c=parseFloat(c)}else {c=e.getY();d=e.dom.offsetParent;if(d){c-=Ext.fly(d).getY()}}}return [b,c]},getLocalY:function(){var d=this,c,b=d.getStyle('top');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getY();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getY()}}}return b},getMargin:function(){var c={t:'top',l:'left',r:'right',b:'bottom'},b=['margin-top','margin-left','margin-right','margin-bottom'];return function(g){var h=this,e,f,d;if(!g){e=h.getStyle(b);d={};if(e&&typeof e==='object'){d={};for(f in v){d[f]=d[c[f]]=parseFloat(e[v[f]])||0}}}else {d=h.addStyles(g,v)}return d}}(),getPadding:function(b){return this.addStyles(b,f)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(b){return (b?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var h=this,d=h.dom,g=b.documentElement,e,f,c=document.body;if(d===b||d===c){e=g.scrollLeft||(c?c.scrollLeft:0);f=g.scrollTop||(c?c.scrollTop:0)}else {e=d.scrollLeft;f=d.scrollTop}return {left:e,top:f}},getScrollIntoViewXY:function(r,b,c){var p=this.dom,h=Ext.getDom(r),j=this.getOffsetsTo(h),o=p.offsetWidth,m=p.offsetHeight,f=j[0]+b,g=j[1]+c,l=g+m,n=f+o,d=h.clientHeight,e=h.clientWidth,i=b,k=c,q=k+d,s=i+e;if(m>d||gq){c=l-d}}if(o>e||fs){b=n-e}}return {x:b,y:c}},getScrollLeft:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().left}else {return c.scrollLeft}},getScrollTop:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().top}else {return c.scrollTop}},getSize:function(b){return {width:this.getWidth(b),height:this.getHeight(b)}},getStyle:function(n,i){var k=this,e=k.dom,m=typeof n!=='string',p=k.styleHooks,b=n,j=b,q=1,h,o,f,d,g,c,l;if(m){f={};b=j[0];l=0;if(!(q=j.length)){return f}}if(!e||e.documentElement){return f||''}h=e.style;if(i){c=h}else {c=e.ownerDocument.defaultView.getComputedStyle(e,null);if(!c){i=!0;c=h}}do{d=p[b];if(!d){p[b]=d={name:a.normalize(b)}}if(d.get){g=d.get(e,k,i,c)}else {o=d.name;g=c[o]}if(!m){return g}f[b]=g;b=j[++l]}while(l0&&e<0.5){b++}}}if(h){b-=c.getBorderWidth('lr')+c.getPadding('lr')}return b<0?0:b},getX:function(){return this.getXY()[0]},getXY:function(){var h=Math.round,e=this.dom,f=0,g=0,c,d;if(e!==b&&e!==b.body){try{c=e.getBoundingClientRect()}catch(ah){c={left:0,top:0}}f=h(c.left);g=h(c.top);d=Ext.getDoc().getScroll();f+=d.left;g+=d.top}return [f,g]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle('z-index'),10)},hasCls:function(c){var b=this.getData();if(!b.isSynchronized){this.synchronize()}return b.classMap.hasOwnProperty(c)},hide:function(){this.setVisible(!1);return this},insertAfter:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b.nextSibling);return this},insertBefore:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b);return this},insertFirst:function(b,c){b=b||{};if(b.nodeType||b.dom||typeof b==='string'){b=Ext.getDom(b);this.dom.insertBefore(b,this.dom.firstChild);return !c?Ext.get(b):b}else {return this.createChild(b,this.dom.firstChild,c)}},insertHtml:function(d,e,c){var b=Ext.DomHelper.insertHtml(d,this.dom,e);return c?Ext.get(b):b},insertSibling:function(b,k,f){var d=this,j=Ext.DomHelper,h=(k||'before').toLowerCase()==='after',c,g,i,e;if(Ext.isIterable(b)){i=b.length;g=Ext.fly(document.createDocumentFragment());if(Ext.isArray(b)){for(e=0;eb.clientHeight||b.scrollWidth>b.clientWidth},isStyle:function(b,c){return this.getStyle(b)===c},isVisible:function(d){var b=this.dom,c;if(!b){return !1}if(!s){s=new Ext.dom.Fly()}for(c=b.ownerDocument.documentElement;b!==c;b=b.parentNode){if(!b||b.nodeType===11||s.attach(b).isStyle(aa,M)||s.isStyle(G,x)){return !1}if(!d){break}}return !0},last:function(c,b){return this.matchNode('previousSibling','lastChild',c,b)},maskIframes:function(){var b=document.getElementsByTagName('iframe');Ext.each(b,function(c){var b=Ext.fly(c.parentNode),d=b.mask();d.setStyle('background-color','transparent')})},matchNode:function(g,f,c,e){var d=this.dom,b;if(!d){return null}b=d[f];while(b){if(b.nodeType===1&&(!c||Ext.fly(b,'_matchNode').is(c))){return !e?Ext.get(b):b}b=b[g]}return null},next:function(c,b){return this.matchNode('nextSibling','nextSibling',c,b)},parent:function(c,b){return this.matchNode('parentNode','parentNode',c,b)},position:function(c,d,e,f){var b=this;if(b.dom.tagName!=='BODY'){if(!c&&b.isStyle(u,N)){b.setStyle(u,ad)}else {if(c){b.setStyle(u,c)}}if(d){b.setStyle(O,d)}if(e||f){b.setXY([e||!1,f||!1])}}},prev:function(c,b){return this.matchNode('previousSibling','previousSibling',c,b)},query:function(b,e,j){var i=this.dom,g,l,k,h,f,c,d;if(!i){return null}e=e!==!1;b=b.split(',');if(!j){g=[]}for(c=0,l=b.length;c0){b=i.className.split(V);for(c=0,j=b.length;c=':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>=a},'>':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>a},'!=':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!=c},'!==':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!==c},'in':function(b){var a=this._filterValue;return Ext.Array.contains(a,this.getCandidateValue(b,a))},notin:function(b){var a=this._filterValue;return !Ext.Array.contains(a,this.getCandidateValue(b,a))},like:function(b){var a=this._filterValue;return a&&this.getCandidateValue(b,a).toLowerCase().indexOf(a.toLowerCase())>-1}};a['==']=a['='];a.gt=a['>'];a.ge=a['>='];a.lt=a['<'];a.le=a['<='];a.eq=a['='];a.ne=a['!=']});Ext.cmd.derive('Ext.util.Observable',Ext.mixin.Observable,{$applyConfigs:!0},0,0,0,0,0,0,[Ext.util,'Observable'],function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe});Ext.cmd.derive('Ext.util.AbstractMixedCollection',Ext.Base,{isMixedCollection:!0,generation:0,indexGeneration:0,constructor:function(b,c){var a=this;if(arguments.length===1&&Ext.isObject(b)){a.initialConfig=b;Ext.apply(a,b)}else {a.allowFunctions=b===!0;if(c){a.getKey=c}a.initialConfig={allowFunctions:a.allowFunctions,getKey:a.getKey}}a.items=[];a.map={};a.keys=[];a.indexMap={};a.length=0;a.mixins.observable.constructor.call(a)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:!1,add:function(b,d){var c=this.length,a;if(arguments.length===1){a=this.insert(c,b)}else {a=this.insert(c,b,d)}return a},getKey:function(a){return a.id},replace:function(b,c){var a=this,d,e;if(arguments.length==1){c=arguments[0];b=a.getKey(c)}d=a.map[b];if(typeof b=='undefined'||b===null||typeof d=='undefined'){return a.add(b,c)}a.generation++;e=a.indexOfKey(b);a.items[e]=c;a.map[b]=c;if(a.hasListeners.replace){a.fireEvent('replace',b,d,c)}return c},reorder:function(e){var b=this,f=b.items,a=0,h=f.length,c=[],g=[],d;b.suspendEvents();for(d in e){c[e[d]]=f[d]}for(a=0;a-1){g=e[b];delete e[b];delete f[b];e[c]=g;f[c]=d;a.keys[d]=c;a.indexGeneration=++a.generation}},addAll:function(a){var c=this,b;if(arguments.length>1||Ext.isArray(a)){c.insert(c.length,arguments.length>1?arguments:a)}else {for(b in a){if(a.hasOwnProperty(b)){if(c.allowFunctions||typeof a[b]!='function'){c.add(b,a[b])}}}}},each:function(f,e){var c=Ext.Array.push([],this.items),a=0,d=c.length,b;for(;a2){a=this.doInsert(c,[b],[d])}else {a=this.doInsert(c,[b])}a=a[0]}return a},doInsert:function(f,e,d){var b=this,c,i,a,g=e.length,j=g,o=b.hasListeners.add,k,h={},l,n,m;if(d!=null){b.useLinearSearch=!0}else {d=e;e=new Array(g);for(a=0;a=0;--c){a.remove(b[c])}}else {while(a.length){a.removeAt(0)}}}else {a.length=a.items.length=a.keys.length=0;a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}},removeAt:function(b){var a=this,d,c;if(b=0){a.length--;d=a.items[b];Ext.Array.erase(a.items,b,1);c=a.keys[b];if(typeof c!='undefined'){delete a.map[c]}Ext.Array.erase(a.keys,b,1);if(a.hasListeners.remove){a.fireEvent('remove',d,c)}a.generation++;return d}return !1},removeRange:function(c,b){var a=this,i,f,d,e,g,h;if(c=0){if(!b){b=1}e=Math.min(c+b,a.length);b=e-c;h=e===a.length;g=h&&a.indexGeneration===a.generation;for(d=c;d=0;a--){if(c[a]==null){b.removeAt(a)}}}else {return b.removeAt(b.indexOfKey(d))}},getCount:function(){return this.length},indexOf:function(b){var a=this,c;if(b!=null){if(!a.useLinearSearch&&(c=a.getKey(b))){return this.indexOfKey(c)}return Ext.Array.indexOf(a.items,b)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var b=this,d=b.indexMap={},c=b.keys,e=c.length,a;for(a=0;aa){e=!0;g=b;b=a;a=g}if(b<0){b=0}if(a==null||a>=d){a=d-1}c=f.slice(b,a+1);if(e&&c.length){c.reverse()}return c},filter:function(a,e,d,c){var b=[];if(Ext.isString(a)){b.push(new Ext.util.Filter({property:a,value:e,anyMatch:d,caseSensitive:c}))}else {if(Ext.isArray(a)||a instanceof Ext.util.Filter){b=b.concat(a)}}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(h,g){var a=this,c=new a.self(a.initialConfig),e=a.keys,d=a.items,f=d.length,b;c.getKey=a.getKey;for(b=0;bb?1:a0){c.removeRange(b.multiSortLimit,g)};break;case 'prepend':c.insert(0,a);break;case 'append':c.addAll(a);break;case undefined:case null:case 'replace':c.clear();c.addAll(a);break;default:}}if(h!==!1){b.fireEvent('beforesort',b,a);b.onBeforeSort(a);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return a},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(b){if(!Ext.isArray(b)){if(b===undefined){b=[]}else {b=[b]}}var g=b.length,f=Ext.util.Sorter,e=this.getModel?this.getModel():this.model,d,a,c;for(c=0;c>1;c=d(h,f[a]);if(c>=0){b=a+1}else {if(c<0){e=a-1}}}return b},reorder:function(a){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,a);this.fireEvent('sort',this)},sortByKey:function(a,b){this._sort('key',a,b||function(e,f){var c=String(e).toUpperCase(),d=String(f).toUpperCase();return c>d?1:cf){k=f}}}if(c){b.tasks=c}b.firing=!1;if(b.tasks.length){b.startTimer(k-g,Ext.Date.now())}if(j!==!1&&l.hasListeners.idle){l.fireEvent('idle')}},startTimer:function(b,e){var a=this,d=e+b,c=a.timerId;if(c&&a.nextExpires-d>a.interval){clearTimeout(c);c=null}if(!c){if(b=a.duration,b,c;if(h){d=a.duration;e=!0}b=this.collectTargetData(a,d,f,e);if(f){a.target.setAttr(b.anims[a.id].attributes,!0);g.collectTargetData(a,a.duration,f,e);a.paused=!0;b=a.target.target;if(a.target.isComposite){b=a.target.target.last()}c={};c[Ext.supports.CSS3TransitionEnd]=a.lastFrame;c.scope=a;c.single=!0;b.on(c)}return b},jumpToEnd:function(d){var a=this,b,c;if(!a.targetArr){a.targetArr={};c=!0}b=a.runAnim(d,!0);a.applyAnimAttrs(b,b.anims[d.id]);if(c){a.targetArr=null}},collectTargetData:function(a,d,f,e){var c=a.target.getId(),b=this.targetArr[c];if(!b){b=this.targetArr[c]={id:c,el:a.target,anims:{}}}b.anims[a.id]={id:a.id,anim:a,elapsed:d,isLastFrame:e,attributes:[{duration:a.duration,easing:f&&a.reverse?a.easingFn.reverse().toCSS3():a.easing,attrs:a.runAnim(d)}]};return b},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var c=this.targetArr,b,d,a,f,e;for(d in c){if(c.hasOwnProperty(d)){b=c[d];for(e in b.anims){if(b.anims.hasOwnProperty(e)){a=b.anims[e];f=a.anim;if(a.attributes&&f.isRunning()){b.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){f.lastFrame()}}}}}}}},1,0,0,0,0,[['queue',Ext.fx.Queue]],[Ext.fx,'Manager'],0);Ext.cmd.derive('Ext.fx.Animator',Ext.Base,{isAnimator:!0,duration:250,delay:0,delayStart:0,dynamic:!1,easing:'ease',running:!1,paused:!1,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(b){var a=this;b=Ext.apply(a,b||{});a.config=b;a.id=Ext.id(null,'ext-animator-');a.mixins.observable.constructor.call(a,b);a.timeline=[];a.createTimeline(a.keyframes);if(a.target){a.applyAnimator(a.target);Ext.fx.Manager.addAnim(a)}},sorter:function(a,b){return a.pct-b.pct},createTimeline:function(e){var d=this,b=[],k=d.to||{},g=d.duration,h,j,c,i,a,f;for(a in e){if(e.hasOwnProperty(a)&&d.animKeyFramesRE.test(a)){f={attrs:Ext.apply(e[a],k)};if(a==='from'){a=0}else {if(a==='to'){a=100}}f.pct=parseInt(a,10);b.push(f)}}Ext.Array.sort(b,d.sorter);i=b.length;for(c=0;c0},isRunning:function(){return !1}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Animator'],0);Ext.cmd.derive('Ext.fx.CubicBezier',Ext.Base,{singleton:!0,cubicBezierAtTime:function(l,d,e,i,j,h){var a=3*d,b=3*(i-d)-a,f=1-a-b,c=3*e,g=3*(j-e)-c,k=1-c-g;function sampleCurveX(c){return ((f*c+b)*c+a)*c}function solve(f,b){var a=solveCurveX(f,b);return ((k*a+g)*a+c)*a}function solveCurveX(n,q){var g,k,c,m,o,p;for(c=n,p=0;p<8;p++){m=sampleCurveX(c)-n;if(Math.abs(m)k){return k}while(gm){g=c}else {k=c}c=(k-g)/2+g}return c}return solve(l,1/(200*h))},cubicBezier:function(b,d,c,e){var a=function(a){return Ext.fx.CubicBezier.cubicBezierAtTime(a,b,d,c,e,1)};a.toCSS3=function(){return 'cubic-bezier('+[b,d,c,e].join(',')+')'};a.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-c,1-e,1-b,1-d)};return a}},0,0,0,0,0,0,[Ext.fx,'CubicBezier'],0);Ext.cmd.derive('Ext.fx.Easing',Ext.Base,function(){var b=Math,g=b.PI,a=b.pow,f=b.sin,e=b.sqrt,d=b.abs,c=1.70158;return {singleton:!0,linear:Ext.identityFn,ease:function(k){var c=0.07813-k/2,f=e(0.0066+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.25;return a(1-b,2)*3*b*0.1+(1-b)*3*b*b+b*b*b},easeIn:function(b){return a(b,1.7)},easeOut:function(b){return a(b,0.48)},easeInOut:function(k){var c=0.48-k/1.04,f=e(0.1734+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.5;return (1-b)*3*b*b+b*b*b},backIn:function(a){return a*a*((c+1)*a-c)},backOut:function(a){a=a-1;return a*a*((c+1)*a+c)+1},elasticIn:function(b){if(b===0||b===1){return b}var c=0.3,d=c/4;return a(2,-10*b)*f((b-d)*(2*g)/c)+1},elasticOut:function(a){return 1-Ext.fx.Easing.elasticIn(1-a)},bounceIn:function(a){return 1-Ext.fx.Easing.bounceOut(1-a)},bounceOut:function(a){var d=7.5625,b=2.75,c;if(a<1/b){c=d*a*a}else {if(a<2/b){a-=1.5/b;c=d*a*a+0.75}else {if(a<2.5/b){a-=2.25/b;c=d*a*a+0.9375}else {a-=2.625/b;c=d*a*a+0.984375}}}return c}}},0,0,0,0,0,0,[Ext.fx,'Easing'],function(c){var b=c.self,a=b.prototype;b.addMembers({'back-in':a.backIn,'back-out':a.backOut,'ease-in':a.easeIn,'ease-out':a.easeOut,'elastic-in':a.elasticIn,'elastic-out':a.elasticOut,'bounce-in':a.bounceIn,'bounce-out':a.bounceOut,'ease-in-out':a.easeInOut})});Ext.cmd.derive('Ext.fx.DrawPath',Ext.Base,{singleton:!0,pathToStringRE:/,?([achlmqrstvxz]),?/gi,pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,stopsRE:/^(\d+%?)$/,radian:Math.PI/180,is:function(b,a){a=String(a).toLowerCase();return a=='object'&&b===Object(b)||a=='undefined'&&typeof b==a||a=='null'&&b===null||a=='array'&&Array.isArray&&Array.isArray(b)||Object.prototype.toString.call(b).toLowerCase().slice(8,-1)==a},path2string:function(){return this.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},pathToString:function(a){return a.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},parsePathString:function(c){if(!c){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=[],b=this;if(b.is(c,'array')&&b.is(c[0],'array')){a=b.pathClone(c)}if(!a.length){String(c).replace(b.pathCommandRE,function(i,g,h){var e=[],f=g.toLowerCase();h.replace(b.pathValuesRE,function(b,a){if(a){e.push(+a)}});if(f=='m'&&e.length>2){a.push([g].concat(Ext.Array.splice(e,0,2)));f='l';g=g=='m'?'l':'L'}while(e.length>=d[f]){a.push([g].concat(Ext.Array.splice(e,0,d[f])));if(!d[f]){break}}})}a.toString=b.path2string;return a},pathClone:function(a){var d=[],c,f,b,e;if(!this.is(a,'array')||!this.is(a&&a[0],'array')){a=this.parsePathString(a)}for(b=0,e=a.length;b7){a[d].shift();var e=a[d];while(e.length){Ext.Array.splice(a,d++,0,['C'].concat(Ext.Array.splice(e,0,6)))}Ext.Array.erase(a,d,1);j=Math.max(c.length,b.length||0)}},m=function(d,f,e,g,a){if(d&&f&&d[a][0]=='M'&&f[a][0]!='M'){Ext.Array.splice(f,a,0,['M',g.x,g.y]);e.bx=0;e.by=0;e.x=d[a][1];e.y=d[a][2];j=Math.max(c.length,b.length||0)}},a,j,g,f,i,h;for(a=0,j=Math.max(c.length,b.length||0);a1){u=N(u);d=u*d;c=u*c}x=d*d;y=c*c;I=(X==v?-1:1)*N(R((x*y-x*j*j-y*i*i)/(x*j*j+y*i*i)));q=I*d*j/c+(m+e)/2;r=I*-c*i/d+(n+f)/2;b=M(((n-r)/c).toFixed(7));a=M(((f-r)/c).toFixed(7));b=ma){b=b-k*2}if(!v&&a>b){a=a-k*2}}else {b=o[0];a=o[1];q=o[2];r=o[3]}z=a-b;if(R(z)>Q){L=a;O=e;P=f;a=b+Q*(v&&a>b?1:-1);e=q+d*B(a);f=r+c*C(a);g=s.arc2curve(e,f,d,c,K,0,v,O,P,[a,L,q,r])}z=a-b;S=B(b);V=C(b);T=B(a);W=C(a);J=p.tan(z/4);D=4/3*d*J;E=4/3*c*J;F=[m,n];l=[m+D*V,n-E*S];G=[e+D*W,f-E*T];H=[e,f];l[0]=2*F[0]-l[0];l[1]=2*F[1]-l[1];if(o){return [l,G,H].concat(g)}else {g=[l,G,H].concat(g).join().split(',');A=[];U=g.length;for(h=0;h=d){b=d;f=!0}if(a.reverse){b=d-b}for(c in e){if(e.hasOwnProperty(c)){h=e[c];g=f?1:k(b/d);i[c]=j[c].set(h,g)}}a.frameCount++;return i},lastFrame:function(){var a=this,c=a.iterations,b=a.currentIteration;b++;if(b0},isRunning:function(){return this.paused===!1&&this.running===!0&&this.isAnimator!==!0}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Anim'],0);Ext.enableFx=!0;Ext.cmd.derive('Ext.util.Animate',Ext.Base,{mixinId:'animate',isAnimate:!0,animate:function(b){var a=this;if(Ext.fx.Manager.hasFxBlock(a.id)){return a}Ext.fx.Manager.queueFx(new Ext.fx.Anim(a.anim(b)));return this},anim:function(a){if(!Ext.isObject(a)){return a?{}:!1}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:!0},a)},getAnimationProps:function(){var b=this,a=b.layout;return a&&a.animate?a.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,'stopAnimation'),stopAnimation:function(){Ext.fx.Manager.stopAnimation(this.id);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!0});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!1});return this},hasActiveFx:Ext.Function.alias(Ext.util.Animate,'getActiveAnimation'),getActiveAnimation:function(){return Ext.fx.Manager.getActiveAnimation(this.id)}},0,0,0,0,0,0,[Ext.util,'Animate'],0);Ext.cmd.derive('Ext.dom.Fly',Ext.dom.Element,{alternateClassName:'Ext.dom.Element.Fly',validNodeTypes:{1:1,9:1,11:1},isFly:!0,constructor:function(a){this.dom=a;this.el=this},attach:function(b){var a=this;if(!b){return a.detach()}a.dom=b;if(!Ext.cache[b.id]){a.getData().isSynchronized=!1}return a},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,'Fly',Ext.dom.Element,'Fly'],function(b){var a={};b.cache=a;Ext.fly=function(c,e){var d=null,h=Ext.fly,f,g;e=e||h.caller&&h.caller.$name||'_global';c=Ext.getDom(c);if(c){f=c.nodeType;if(b.prototype.validNodeTypes[f]||!f&&c.window==c){d=Ext.cache[c.id];if(!d||d.dom!==c){d=a[e]||(a[e]=new b());d.dom=c;g=d.getData(!0);if(g){g.isSynchronized=!1}}}}return d}});Ext.cmd.derive('Ext.dom.CompositeElementLite',Ext.Base,{alternateClassName:['Ext.CompositeElementLite'],isComposite:!0,isLite:!0,statics:{importElementMethods:function(){var b=Ext.dom.Element,a=this.prototype;Ext.Object.each(b.prototype,function(b,c){if(typeof c==='function'&&!a[b]){a[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(a,b){if(b){this.elements=a||[]}else {this.elements=[];this.add(a)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(a,e){var d=this.elements,b,c;if(!a){return this}if(typeof a=='string'){a=Ext.fly(e||document).query(a)}else {if(a.isComposite){a=a.elements}else {if(!Ext.isIterable(a)){a=[a]}}}for(b=0,c=a.length;b-1){a=Ext.getDom(a);if(e){b=this.elements[c];b.parentNode.insertBefore(a,b);Ext.removeNode(b)}Ext.Array.splice(this.elements,c,1,a)}return this},clear:function(c){var d=this,b=d.elements,a=b.length-1;if(c){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(a,d){if(!a){return this}if(typeof a==='string'){a=Ext.dom.Element.selectorFunction(a,d)}var e=this.elements,c=a.length,b;for(b=0;b','','','',''].join(''),O=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,J=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,G=/\ssrc=([\'\"])(.*?)\1/i,v=/\S/,E=/\stype=([\'\"])(.*?)\1/i,I=/^-ms-/,B=/(-[a-z])/gi,L=function(b,a){return a.charAt(1).toUpperCase()},r='x-masked',k='x-masked-relative',m='x-mask-msg',D=/^body/i,l={},u=function(d){var c=d.getData(),b=c[q];if(b===undefined){c[q]=b=a.VISIBILITY}return b},f=b.createRange?b.createRange():null,z={INPUT:!0,TEXTAREA:!0};if(Ext.isIE8){var p=b.createElement('div'),c=[],M=Ext.Function.createBuffered(function(){var b=c.length,a;for(a=0;a"+Ext.String.format(y,a)+''));b.selectNode('.'+a+'-mc').appendChild(this.dom);return b},clean:function(g){var c=this,d=c.dom,e=c.getData(),a=d.firstChild,f=-1,b;if(e.isCleaned&&g!==!0){return c}while(a){b=a.nextSibling;if(a.nodeType===3){if(!v.test(a.nodeValue)){d.removeChild(a)}else {if(b&&b.nodeType===3){a.appendData(Ext.String.trim(b.data));d.removeChild(b);b=a.nextSibling;a.nodeIndex=++f}}}else {Ext.fly(a,'_clean').clean();a.nodeIndex=++f}a=b}e.isCleaned=!0;return c},empty:f?function(){var a=this.dom;if(a.firstChild){f.setStartBefore(a.firstChild);f.setEndAfter(a.lastChild);f.deleteContents()}}:function(){var a=this.dom;while(a.lastChild){a.removeChild(a.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(a){a=a||'';return this.setStyle({left:a,right:a,top:a,bottom:a,'z-index':'',position:'static'})},createProxy:function(b,e,f){b=typeof b==='object'?b:{tag:'div',role:'presentation',cls:b};var d=this,c=e?Ext.DomHelper.append(e,b,!0):Ext.DomHelper.insertBefore(d.dom,b,!0);c.setVisibilityMode(a.DISPLAY);c.hide();if(f&&d.setBox&&d.getBox){c.setBox(d.getBox())}return c},clearOpacity:function(){return this.setOpacity('')},clip:function(){var a=this,c=a.getData(),b;if(!c[g]){c[g]=!0;b=a.getStyle([j,h,i]);c[n]={o:b[j],x:b[h],y:b[i]};a.setStyle(j,e);a.setStyle(h,e);a.setStyle(i,e)}return a},destroy:function(){var b=this,a=b.dom,f=b.getData(),e,d;if(a&&b.isAnimate){b.stopAnimation()}arguments.callee.$previous.call(this);if(a&&Ext.isIE8&&a.window!=a&&a.nodeType!==9&&a.tagName!=='BODY'&&a.tagName!=='HTML'){c[c.length]=a;M()}if(f){e=f.maskEl;d=f.maskMsg;if(e){e.destroy()}if(d){d.destroy()}}},enableDisplayMode:function(c){var b=this;b.setVisibilityMode(a.DISPLAY);if(c!==undefined){b.getData()[K]=c}return b},fadeIn:function(c){var a=this,b=a.dom;a.animate(Ext.apply({},c,{opacity:1,internalListeners:{beforeanimate:function(d){var a=Ext.fly(b,'_anim');if(a.isStyle('display','none')){a.setDisplayed('')}else {a.show()}}}}));return this},fadeOut:function(a){var b=this,c=b.dom;a=Ext.apply({opacity:0,internalListeners:{afteranimate:function(d){if(c&&d.to.opacity===0){var b=Ext.fly(c,'_anim');if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}}}}},a);b.animate(a);return b},fixDisplay:function(){var a=this;if(a.isStyle(d,s)){a.setStyle(o,e);a.setStyle(d,a._getDisplay());if(a.isStyle(d,s)){a.setStyle(d,'block')}}},frame:function(b,c,a){var d=this,f=d.dom,e;b=b||'#C3DAF9';c=c||1;a=a||{};e=function(){var g=Ext.fly(f,'_anim'),i=this,d,e,h;g.show();d=g.getBox();e=Ext.getBody().createChild({role:'presentation',id:g.dom.id+'-anim-proxy',style:{position:'absolute','pointer-events':'none','z-index':35000,border:'0px solid '+b}});h=new Ext.fx.Anim({target:e,duration:a.duration||1000,iterations:c,from:{top:d.y,left:d.x,borderWidth:0,opacity:1,height:d.height,width:d.width},to:{top:d.y-20,left:d.x-20,borderWidth:10,opacity:0,height:d.height+40,width:d.width+40}});h.on('afteranimate',function(){e.destroy();i.end()})};d.animate({duration:Math.max(a.duration,500)*2||2000,listeners:{beforeanimate:{fn:e}},callback:a.callback,scope:a.scope});return d},getColor:function(h,f,c){var a=this.getStyle(h),b=c||c===''?c:'#',d,g,e=0;if(!a||/transparent|inherit/.test(a)){return f}if(/^r/.test(a)){a=a.slice(4,a.length-1).split(',');g=a.length;for(;e5?b.toLowerCase():f},getLoader:function(){var c=this,b=c.getData(),a=b.loader;if(!a){b.loader=a=new Ext.ElementLoader({target:c})}return a},getPositioning:function(c){var a=this.getStyle(['left','top','position','z-index']),b=this.dom;if(c){if(a.left==='auto'){a.left=b.offsetLeft+'px'}if(a.top==='auto'){a.top=b.offsetTop+'px'}}return a},ghost:function(a,e){var b=this,d=b.dom,c;a=a||'b';c=function(){var h=Ext.fly(d,'_anim'),g=h.getWidth(),f=h.getHeight(),c=h.getXY(),i=h.getPositioning(),b={opacity:0};switch(a){case 't':b.y=c[1]-f;break;case 'l':b.x=c[0]-g;break;case 'r':b.x=c[0]+g;break;case 'b':b.y=c[1]+f;break;case 'tl':b.x=c[0]-g;b.y=c[1]-f;break;case 'bl':b.x=c[0]-g;b.y=c[1]+f;break;case 'br':b.x=c[0]+g;b.y=c[1]+f;break;case 'tr':b.x=c[0]+g;b.y=c[1]-f;break;}this.to=b;this.on('afteranimate',function(){var b=Ext.fly(d,'_anim');if(b){b.hide();b.clearOpacity();b.setPositioning(i)}})};b.animate(Ext.applyIf(e||{},{duration:500,easing:'ease-out',listeners:{beforeanimate:c}}));return b},hide:function(a){if(typeof a==='string'){this.setVisible(!1,a);return this}this.setVisible(!1,this.anim(a));return this},highlight:function(k,b){var g=this,e=g.dom,j={},i,h,c,d,a,f;b=b||{};d=b.listeners||{};c=b.attr||'backgroundColor';j[c]=k||'ffff9c';if(!b.to){h={};h[c]=b.endColor||g.getColor(c,'ffffff','')}else {h=b.to}b.listeners=Ext.apply(Ext.apply({},d),{beforeanimate:function(){i=e.style[c];var g=Ext.fly(e,'_anim');g.clearOpacity();g.show();a=d.beforeanimate;if(a){f=a.fn||a;return f.apply(a.scope||d.scope||t,arguments)}},afteranimate:function(){if(e){e.style[c]=i}a=d.afteranimate;if(a){f=a.fn||a;f.apply(a.scope||d.scope||t,arguments)}}});g.animate(Ext.apply({},b,{duration:1000,easing:'ease-in',from:j,to:h}));return g},hover:function(d,e,c,b){var a=this;a.on('mouseenter',d,c||a.dom,b);a.on('mouseleave',e,c||a.dom,b);return a},initDD:function(c,b,a){var d=new Ext.dd.DD(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDProxy:function(c,b,a){var d=new Ext.dd.DDProxy(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDTarget:function(c,b,a){var d=new Ext.dd.DDTarget(Ext.id(this.dom),c,b);return Ext.apply(d,a)},isFocusable:function(){var a=this.dom,b=!1,c;if(a&&!a.disabled){c=a.nodeName;b=!!Ext.Element.naturallyFocusableTags[c]||(c==='A'||c==='LINK')&&!!a.href||a.getAttribute('tabIndex')!=null||a.contentEditable==='true';if(Ext.isIE8&&c==='INPUT'&&a.type==='hidden'){b=!1}b=b&&this.isVisible(!0)}return b},isInputField:function(){var a=this.dom,b=a.contentEditable;if(z[a.tagName]&&a.type!=='button'||(b===''||b==='true')){return !0}return !1},isTabbable:function(f){var c=this.dom,a=!1,e,d,b;if(c&&!c.disabled){e=c.nodeName;b=c.getAttribute('tabIndex');d=b!=null;b-=0;if(e==='A'||e==='LINK'){if(c.href){a=d&&b<0?!1:!0}else {if(c.contentEditable==='true'){a=!d||d&&b>=0?!0:!1}else {a=d&&b>=0?!0:!1}}}else {if(c.contentEditable==='true'||Ext.Element.naturallyTabbableTags[e]){a=d&&b<0?!1:!0}else {if(d&&b>=0){a=!0}}}if(Ext.isIE8&&e==='INPUT'&&c.type==='hidden'){a=!1}a=a&&(f||(!this.component||this.component.isVisible(!0))&&this.isVisible(!0))}return a},isMasked:function(g){var b=this,f=b.getData(),e=f.maskEl,d=f.maskMsg,c=!1,a;if(e&&e.isVisible()){if(d){d.center(b)}c=!0}else {if(g){a=b.findParentNode();if(a){return Ext.fly(a).isMasked(g)}}}return c},load:function(a){this.getLoader().load(a);return this},mask:function(h,f,i){var c=this,d=c.dom,g=c.getData(),a=g.maskEl,e;if(!(D.test(d.tagName)&&c.getStyle('position')==='static')){c.addCls(k)}if(a){a.destroy()}a=Ext.DomHelper.append(d,{role:'presentation',cls:'x-mask x-border-box',children:{role:'presentation',cls:f?m+' '+f:m,cn:{tag:'div',role:'presentation',cls:'x-mask-msg-inner',cn:{tag:'div',role:'presentation',cls:'x-mask-msg-text',html:h||''}}}},!0);e=Ext.get(a.dom.firstChild);g.maskEl=a;c.addCls(r);a.setDisplayed(!0);if(typeof h==='string'){e.setDisplayed(!0);e.center(c)}else {e.setDisplayed(!1)}if(d===b.body){a.addCls('x-mask-fixed')}c.saveTabbableState({skipSelf:d===b.body});if(Ext.isIE9m&&d!==b.body&&c.isStyle('height','auto')){a.setSize(undefined,i||c.getHeight())}return a},monitorMouseLeave:function(e,d,f){var c=this,b,a={mouseleave:function(a){if(Ext.isIE9m){a.enableIEAsync()}b=Ext.defer(d,e,f||c,[a])},mouseenter:function(){clearTimeout(b)}};c.on(a);return a},puff:function(a){var c=this,e=c.dom,d,b=c.getBox(),f=c.getStyle(['width','height','left','right','top','bottom','position','z-index','font-size','opacity'],!0);a=Ext.applyIf(a||{},{easing:'ease-out',duration:500,useDisplay:!1});d=function(){var c=Ext.fly(e,'_anim');c.clearOpacity();c.show();this.to={width:b.width*2,height:b.height*2,x:b.x-b.width/2,y:b.y-b.height/2,opacity:0,fontSize:'200%'};this.on('afteranimate',function(){var b=Ext.fly(e,'_anim');if(b){if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}b.setStyle(f);Ext.callback(a.callback,a.scope)}})};c.animate({duration:a.duration,easing:a.easing,listeners:{beforeanimate:{fn:d}}});return c},selectable:function(){var b=this;b.dom.unselectable='';b.removeCls(a.unselectableCls);b.addCls(a.selectableCls);return b},setCapture:function(){var a=this.dom;if(Ext.isIE9m&&a.setCapture){a.setCapture()}},setHeight:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{height:c}},a))}return b},setHorizontal:function(){var a=this,b=a.verticalCls;delete a.vertical;if(b){delete a.verticalCls;a.removeCls(b)}delete a.setWidth;delete a.setHeight;if(!Ext.isIE8){delete a.getWidth;delete a.getHeight}delete a.styleHooks},updateText:function(d){var e=this,c,a;if(c){a=c.firstChild;if(!a||(a.nodeType!==3||a.nextSibling)){a=b.createTextNode();e.empty();c.appendChild(a)}if(d){a.data=d}}},setHtml:function(c,i,g,d){var a=this,f,e,h;if(!a.dom){return a}c=c||'';e=a.dom;if(i!==!0){e.innerHTML=c;Ext.callback(g,a);return a}f=Ext.id();c+='';h=Ext.interval(function(){var o,e,l,k,j,n,m;if(!(n=b.getElementById(f))){return !1}clearInterval(h);Ext.removeNode(n);o=Ext.getHead().dom;while(e=O.exec(c)){l=e[1];k=l?l.match(G):!1;if(k&&k[2]){m=b.createElement('script');m.src=k[2];j=l.match(E);if(j&&j[2]){m.type=j[2]}o.appendChild(m)}else {if(e[2]&&e[2].length>0){if(d){Ext.functionFactory(e[2]).call(d)}else {Ext.globalEval(e[2])}}}}Ext.callback(g,d||a)},20);e.innerHTML=c.replace(J,'');return a},setOpacity:function(c,b){var a=this;if(!a.dom){return a}if(!b||!a.anim){a.setStyle('opacity',c)}else {if(typeof b!='object'){b={duration:350,easing:'ease-in'}}a.animate(Ext.applyIf({to:{opacity:c}},b))}return a},setPositioning:function(a){return this.setStyle(a)},setVertical:function(e,d){var b=this,c=a.prototype;b.vertical=!0;if(d){b.addCls(b.verticalCls=d)}b.setWidth=c.setHeight;b.setHeight=c.setWidth;if(!Ext.isIE8){b.getWidth=c.getHeight;b.getHeight=c.getWidth}b.styleHooks=e===270?c.verticalStyleHooks270:c.verticalStyleHooks90},setSize:function(c,e,d){var b=this;if(Ext.isObject(c)){d=e;e=c.height;c=c.width}if(!d||!b.anim){b.dom.style.width=a.addUnits(c);b.dom.style.height=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}}else {if(d===!0){d={}}b.animate(Ext.applyIf({to:{width:c,height:e}},d))}return b},setVisible:function(f,g){var b=this,h=b.dom,c=u(b);if(typeof g==='string'){switch(g){case d:c=a.DISPLAY;break;case o:c=a.VISIBILITY;break;case A:c=a.OFFSETS;break;case H:c=a.CLIP;break;}b.setVisibilityMode(c);g=!1}if(!g||!b.anim){if(c===a.DISPLAY){return b.setDisplayed(f)}else {if(c===a.OFFSETS){b[f?'removeCls':'addCls'](N)}else {if(c===a.CLIP){b[f?'removeCls':'addCls'](w)}else {if(c===a.VISIBILITY){b.fixDisplay();h.style.visibility=f?'':e}}}}}else {if(f){b.setOpacity(0.01);b.setVisible(!0)}if(!Ext.isObject(g)){g={duration:350,easing:'ease-in'}}b.animate(Ext.applyIf({callback:function(){if(!f){Ext.fly(h).setVisible(!1).setOpacity(1)}},to:{opacity:f?1:0}},g))}b.getData()[x]=f;if(b.shadow||b.shim){b.setUnderlaysVisible(f)}return b},setWidth:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{width:c}},a))}return b},setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(b,a){var c=this;if(!a||!c.anim){arguments.callee.$previous.call(this,b)}else {if(!Ext.isObject(a)){a={}}c.animate(Ext.applyIf({to:{x:b[0],y:b[1]}},a))}return this},setY:function(b,a){return this.setXY([this.getX(),b],a)},show:function(a){if(typeof a==='string'){this.setVisible(!0,a);return this}this.setVisible(!0,this.anim(a));return this},slideIn:function(a,c,d){var b=this,g=b.dom,h=g.style,j,e,f,i;a=a||'t';c=c||{};j=function(){var p=this,o=c.listeners,m=Ext.fly(g,'_anim'),j,n,l,k;if(!d){m.fixDisplay()}j=m.getBox();if((a=='t'||a=='b')&&j.height===0){j.height=g.scrollHeight}else {if((a=='l'||a=='r')&&j.width===0){j.width=g.scrollWidth}}n=m.getStyle(['width','height','left','right','top','bottom','position','z-index'],!0);m.setSize(j.width,j.height);if(c.preserveScroll){f=m.cacheScrollValues()}k=m.wrap({role:'presentation',id:Ext.id()+'-anim-wrap-for-'+m.dom.id,style:{visibility:d?'visible':'hidden'}});i=k.dom.parentNode;k.setPositioning(m.getPositioning());if(k.isStyle('position','static')){k.position('relative')}m.clearPositioning('auto');k.clip();if(f){f()}m.setStyle({visibility:'',position:'absolute'});if(d){k.setSize(j.width,j.height)}switch(a){case 't':l={from:{width:j.width+'px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';break;case 'l':l={from:{width:'0px',height:j.height+'px'},to:{width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'r':l={from:{x:j.x+j.width,width:'0px',height:j.height+'px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'b':l={from:{y:j.y+j.height,width:j.width+'px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};break;case 'tl':l={from:{x:j.x,y:j.y,width:'0px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('l');break;case 'bl':l={from:{y:j.y+j.height,width:'0px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('l');break;case 'br':l={from:{x:j.x+j.width,y:j.y+j.height,width:'0px',height:'0px'},to:{x:j.x,y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('r');break;case 'tr':l={from:{x:j.x+j.width,width:'0px',height:'0px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('r');break;}k.show();e=Ext.apply({},c);delete e.listeners;e=new Ext.fx.Anim(Ext.applyIf(e,{target:k,duration:500,easing:'ease-out',from:d?l.to:l.from,to:d?l.from:l.to}));e.on('afteranimate',function(){var b=Ext.fly(g,'_anim');b.setStyle(n);if(d){if(c.useDisplay){b.setDisplayed(!1)}else {b.hide()}}if(k.dom){if(k.dom.parentNode){k.dom.parentNode.insertBefore(b.dom,k.dom)}else {i.appendChild(b.dom)}k.destroy()}if(f){f()}p.end()});if(o){e.on(o)}};b.animate({duration:c.duration?Math.max(c.duration,500)*2:1000,listeners:{beforeanimate:j}});return b},slideOut:function(a,b){return this.slideIn(a,b,!0)},swallowEvent:function(a,f){var b=this,c,d,e=function(b){b.stopPropagation();if(f){b.preventDefault()}};if(Ext.isArray(a)){d=a.length;for(c=0;c0){a.setAttribute(e,++f)}else {if(a.hasAttribute('tabIndex')){a.setAttribute(g,a.getAttribute('tabIndex'))}else {a.setAttribute(g,'none')}a.setAttribute('tabIndex','-1');a.setAttribute(e,'1')}}return c},restoreTabbableState:function(k,j){var g=this.dom,c=Ext.Element.tabbableSavedCounterAttribute,e=Ext.Element.tabbableSavedValueAttribute,b=[],h,f,b,a,d,i;if(!g){return this}if(!j){b=Ext.Array.from(g.querySelectorAll('['+c+']'))}if(!k){b.unshift(g)}for(d=0,i=b.length;d1){a.setAttribute(c,--f);continue}h=a.getAttribute(e);if(h==='none'){a.removeAttribute('tabIndex')}else {a.setAttribute('tabIndex',h)}a.removeAttribute(e);a.removeAttribute(c)}return b}},deprecated:{'4.0':{methods:{pause:function(b){var a=this;Ext.fx.Manager.setFxDefaults(a.id,{delay:b});return a},scale:function(c,a,b){this.animate(Ext.apply({},b,{width:c,height:a}));return this},shift:function(a){this.animate(a);return this}}},'4.2':{methods:{moveTo:function(b,c,a){return this.setXY([b,c],a)},setBounds:function(d,e,c,b,a){return this.setBox({x:d,y:e,width:c,height:b},a)},setLeftTop:function(d,e){var b=this,c=b.dom.style;c.left=a.addUnits(d);c.top=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocation:function(b,c,a){return this.setXY([b,c],a)}}},'5.0':{methods:{getAttributeNS:function(a,b){return this.getAttribute(b,a)},getCenterXY:function(){return this.getAlignToXY(b,'c-c')},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(C))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(F))||0},getStyleSize:function(){var d=this,e=this.dom,h=e===b||e===b.body,c,g,f;if(h){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}c=d.getStyle(['height','width'],!0);if(c.width&&c.width!=='auto'){g=parseFloat(c.width)}if(c.height&&c.height!=='auto'){f=parseFloat(c.height)}return {width:g||d.getWidth(!0),height:f||d.getHeight(!0)}},isBorderBox:function(){return !0},isDisplayed:function(){return !this.isStyle('display','none')},focusable:'isFocusable'}}}}}(),function(){var g=Ext.dom.Element,a=g.prototype,t=!Ext.isIE8,f=document,q=f.defaultView,p=/alpha\(opacity=(.*)\)/i,w=/^\s+|\s+$/g,d=a.styleHooks,e=Ext.supports,c,b,l,m,i,j,n;a._init(g);delete a._init;Ext.plainTableCls='x-table-plain';Ext.plainListCls='x-list-plain';if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!e.Opacity&&Ext.isIE){Ext.apply(d.opacity,{get:function(d){var c=d.style.filter,b,a;if(c.match){b=c.match(p);if(b){a=parseFloat(b[1]);if(!isNaN(a)){return a?a/100:0}}}return 1},set:function(d,a){var b=d.style,c=b.filter.replace(p,'').replace(w,'');b.zoom=1;if(typeof a==='number'&&a>=0&&a<1){a*=100;b.filter=c+(c.length?' ':'')+'alpha(opacity='+a+')'}else {b.filter=c}}})}if(!e.matchesSelector){var r=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,v=/\-/g,h,s=function(a,c){var b=new RegExp('(?:^|\\s+)'+c.replace(v,'\\-')+'(?:\\s+|$)');if(a&&a!=='*'){a=a.toUpperCase();return function(d){return d.tagName===a&&b.test(d.className)}}return function(d){return b.test(d.className)}},u=function(a){a=a.toUpperCase();return function(b){return b.tagName===a}},k={};a.matcherCache=k;a.is=function(a){if(!a){return !0}var b=this.dom,g,e,d,c,j,l,i;if(b.nodeType!==1){return !1}if(!(d=Ext.isFunction(a)?a:k[a])){if(!(e=a.match(r))){c=b.parentNode;if(!c){j=!0;c=h||(h=f.createDocumentFragment());h.appendChild(b)}l=Ext.Array.indexOf(Ext.fly(c,'_is').query(a),b)!==-1;if(j){h.removeChild(b)}return l}i=e[1];g=e[2];k[a]=d=g?s(i,g):u(i)}return d(b)}}if(!q||!q.getComputedStyle){a.getStyle=function(o,p){var j=this,e=j.dom,n=typeof o!=='string',a=o,i=a,r=1,m=p,l=j.styleHooks,q,h,d,c,f,b,k;if(n){d={};a=i[0];k=0;if(!(r=i.length)){return d}}if(!e||e.documentElement){return d||''}h=e.style;if(p){b=h}else {b=e.currentStyle;if(!b){m=!0;b=h}}do{c=l[a];if(!c){l[a]=c={name:g.normalize(a)}}if(c.get){f=c.get(e,j,m,b)}else {q=c.name;f=b[q]}if(!n){return f}d[a]=f;a=i[++k]}while(k=9)){a.getAttribute=function(a,c){var d=this.dom,b;if(c){b=typeof d[c+':'+a];if(b!=='undefined'&&b!=='unknown'){return d[c+':'+a]||null}return null}if(a==='for'){a='htmlFor'}return d[a]||null}}Ext.onInternalReady(function(){var o=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,h=[],p=a.setWidth,n=a.setHeight,m=a.setSize,q=/^\d+(?:\.\d*)?px$/i,i,l,k,j;if(e.FixedTableWidthBug){d.width={name:'width',set:function(c,e,f){var a=c.style,b=f._needsTableWidthFix,d=a.display;if(b){a.display='none'}a.width=e;if(b){c.scrollWidth;a.display=d}}};a.setWidth=function(g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}p.call(a,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a};a.setSize=function(h,g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}m.call(a,h,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a}}if(Ext.isIE8){d.height={name:'height',set:function(f,b,e){var a=e.component,d,c;if(a&&a._syncFrameHeight&&e===a.el){c=a.frameBody.dom.style;if(q.test(b)){d=a.getFrameInfo();if(d){c.height=parseInt(b,10)-d.height+'px'}}else {if(!b||b==='auto'){c.height=''}}}f.style.height=b}};a.setHeight=function(b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return n.call(this,b,e)};a.setSize=function(f,b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return m.call(this,f,b,e)}}Ext.getDoc().on('selectstart',function(h,a){var e=g.selectableCls,d=g.unselectableCls,b=a&&a.tagName;b=b&&b.toLowerCase();if(b==='input'||b==='textarea'){return}while(a&&a.nodeType===1&&a!==f.documentElement){var c=Ext.fly(a);if(c.hasCls(e)){return}if(c.hasCls(d)){h.stopEvent();return}a=a.parentNode}});function fixTransparent(d,e,c,b){var a=b[this.name]||'';return o.test(a)?'transparent':a}function makeSelectionRestoreFn(a,b,c){return function(){a.selectionStart=b;a.selectionEnd=c}}function getRightMarginFixCleaner(i){var h=e.DisplayChangeInputSelectionBug,f=e.DisplayChangeTextAreaSelectionBug,a,d,b,c;if(h||f){a=g.getActiveElement();d=a&&a.tagName;if(f&&d==='TEXTAREA'||h&&d==='INPUT'&&a.type==='text'){if(Ext.fly(i).isAncestor(a)){b=a.selectionStart;c=a.selectionEnd;if(Ext.isNumber(b)&&Ext.isNumber(c)){return makeSelectionRestoreFn(a,b,c)}}}}return Ext.emptyFn}function fixRightMargin(c,g,f,e){var b=e.marginRight,a,d;if(b!=='0px'){a=c.style;d=a.display;a.display='inline-block';b=(f?e:c.ownerDocument.defaultView.getComputedStyle(c,null)).marginRight;a.display=d}return b}function fixRightMarginAndInputFocus(b,h,g,f){var c=f.marginRight,a,d,e;if(c!=='0px'){a=b.style;d=getRightMarginFixCleaner(b);e=a.display;a.display='inline-block';c=(g?f:b.ownerDocument.defaultView.getComputedStyle(b,'')).marginRight;a.display=e;d()}return c}if(!e.RightMargin){d.marginRight=d['margin-right']={name:'marginRight',get:e.DisplayChangeInputSelectionBug||e.DisplayChangeTextAreaSelectionBug?fixRightMarginAndInputFocus:fixRightMargin}}if(!e.TransparentColor){i=['background-color','border-color','color','outline-color'];for(l=i.length;l--;){k=i[l];j=g.normalize(k);d[k]=d[j]={name:j,get:fixTransparent}}}a.verticalStyleHooks90=c=Ext.Object.chain(d);a.verticalStyleHooks270=b=Ext.Object.chain(d);c.width=d.height||{name:'height'};c.height=d.width||{name:'width'};c['margin-top']={name:'marginLeft'};c['margin-right']={name:'marginTop'};c['margin-bottom']={name:'marginRight'};c['margin-left']={name:'marginBottom'};c['padding-top']={name:'paddingLeft'};c['padding-right']={name:'paddingTop'};c['padding-bottom']={name:'paddingRight'};c['padding-left']={name:'paddingBottom'};c['border-top']={name:'borderLeft'};c['border-right']={name:'borderTop'};c['border-bottom']={name:'borderRight'};c['border-left']={name:'borderBottom'};b.width=d.height||{name:'height'};b.height=d.width||{name:'width'};b['margin-top']={name:'marginRight'};b['margin-right']={name:'marginBottom'};b['margin-bottom']={name:'marginLeft'};b['margin-left']={name:'marginTop'};b['padding-top']={name:'paddingRight'};b['padding-right']={name:'paddingBottom'};b['padding-bottom']={name:'paddingLeft'};b['padding-left']={name:'paddingTop'};b['border-top']={name:'borderRight'};b['border-right']={name:'borderBottom'};b['border-bottom']={name:'borderLeft'};b['border-left']={name:'borderTop'};if(!Ext.scopeCss){h.push('x-body')}if(e.Touch){h.push('x-touch')}if(Ext.isIE&&Ext.isIE9m){h.push('x-ie','x-ie9m');h.push('x-ie8p');if(Ext.isIE8){h.push('x-ie8')}else {h.push('x-ie9','x-ie9p')}if(Ext.isIE8m){h.push('x-ie8m')}}if(Ext.isIE10){h.push('x-ie10')}if(Ext.isIE10p){h.push('x-ie10p')}if(Ext.isIE11){h.push('x-ie11')}if(Ext.isGecko){h.push('x-gecko')}if(Ext.isOpera){h.push('x-opera')}if(Ext.isOpera12m){h.push('x-opera12m')}if(Ext.isWebKit){h.push('x-webkit')}if(Ext.isSafari){h.push('x-safari')}if(Ext.isChrome){h.push('x-chrome')}if(Ext.isMac){h.push('x-mac')}if(Ext.isLinux){h.push('x-linux')}if(!e.CSS3BorderRadius){h.push('x-nbr')}if(!e.CSS3LinearGradient){h.push('x-nlg')}if(e.Touch){h.push('x-touch')}Ext.getBody().addCls(h)},null,{priority:1500})});Ext.cmd.derive('Ext.GlobalEvents',Ext.mixin.Observable,{alternateClassName:'Ext.globalEvents',observableType:'global',singleton:!0,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},attachListeners:function(){Ext.get(window).on('resize',this.fireResize,this,{buffer:this.resizeBuffer});Ext.getDoc().on('mousedown',this.fireMouseDown,this)},fireMouseDown:function(a){this.fireEvent('mousedown',a)},fireResize:function(){var a=this,d=Ext.Element,c=d.getViewportWidth(),b=d.getViewportHeight();if(a.curHeight!==b||a.curWidth!==c){a.curHeight=b;a.curWidth=c;a.fireEvent('resize',c,b)}}},1,0,0,0,0,0,[Ext,'GlobalEvents',Ext,'globalEvents'],function(a){Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)}});Ext.define('Ext.overrides.GlobalEvents',{override:'Ext.GlobalEvents',deprecated:{5:{methods:{addListener:function(a,d,i,f,h,g,e){var c,b;if(a==='ready'){b=d}else {if(typeof a!=='string'){for(c in a){if(c==='ready'){b=a[c]}}}}if(b){Ext.onReady(b)}this.callParent([a,d,i,f,h,g,e])}}}}});Ext.USE_NATIVE_JSON=!1;Ext.JSON=new function(){var me=this,hasNative=window.JSON&&JSON.toString()==='[object JSON]',useHasOwn=!!{}.hasOwnProperty,pad=function(a){return a<10?'0'+a:a},doDecode=function(json){return eval('('+json+')')},doEncode=function(a,b){if(a===null||a===undefined){return 'null'}else {if(Ext.isDate(a)){return me.encodeDate(a)}else {if(Ext.isString(a)){if(Ext.isMSDate(a)){return me.encodeMSDate(a)}else {return me.encodeString(a)}}else {if(typeof a==='number'){return isFinite(a)?String(a):'null'}else {if(Ext.isBoolean(a)){return String(a)}else {if(a.toJSON){return a.toJSON()}else {if(Ext.isArray(a)){return encodeArray(a,b)}else {if(Ext.isObject(a)){return encodeObject(a,b)}else {if(typeof a==='function'){return 'null'}}}}}}}}}return 'undefined'},m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\','\v':'\\u000b'},charToReplace=/[\\\"\x00-\x1f\x7f-\uffff]/g,encodeString=function(a){return '"'+a.replace(charToReplace,function(b){var c=m[b];return typeof c==='string'?c:'\\u'+('0000'+b.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(a){return '"'+a+'"'},encodeArrayPretty=function(e,d){var f=e.length,c=d+' ',g=','+c,a=['[',c],b;for(b=0;b0}}return c},onBindNotify:function(b,c,a){a.syncing=a.syncing+1||1;this[a._config.names.set](b);--a.syncing},removeBindings:function(){var c=this,a,d,b;if(!c.destroying){a=c.getBind();if(a&&typeof a!=='string'){for(d in a){b=a[d];b.destroy();b._config=b.getTemplateScope=null}}}c.setBind(null)},updateSession:function(a){var b=this.getInherited();if(a){b.session=a}else {delete b.session}},updateViewModel:function(a){var c=this.getInherited(),b=this.getController();if(a){c.viewModel=a;a.setView(this);if(b){b.initViewModel(a)}}else {delete c.viewModel}}}},0,0,0,0,0,0,[Ext.mixin,'Bindable'],0);Ext.cmd.derive('Ext.mixin.ComponentDelegation',Ext.Mixin,{mixinConfig:{id:'componentDelegation'},privates:{addDelegatedListener:function(c,k,j,a,d,i,h){var b=this,e,g,f;d=d||a.order;if(d){f=a&&a.priority;if(!f){a=a?Ext.Object.chain(a):{};a.priority=b.$orderToPriority[d]}}e=b.$delegatedEvents||(b.$delegatedEvents={});g=e[c]||(e[c]=new Ext.util.Event(b,c));if(g.addListener(k,j,a,i,h)){b.$hasDelegatedListeners._incr_(c)}},clearDelegatedListeners:function(){var e=this,a=e.$delegatedEvents,b,c,d;if(a){for(b in a){c=a[b];d=c.listeners.length;c.clearListeners();e.$hasDelegatedListeners._decr_(b,d);delete a[b]}}},doFireDelegatedEvent:function(f,g){var e=this,d=!0,a,b,c;if(e.$hasDelegatedListeners[f]){a=e.getRefOwner();while(a){b=a.$delegatedEvents;if(b){c=b[f];if(c){d=c.fireDelegated(e,g);if(d===!1){break}}}a=a.getRefOwner()}}return d},removeDelegatedListener:function(c,f,e){var d=this,b=d.$delegatedEvents,a;if(b){a=b[c];if(a&&a.removeListener(f,e)){d.$hasDelegatedListeners._decr_(c);if(a.listeners.length===0){delete b[c]}}}}},onClassMixedIn:function(a){function HasListeners(){}a.prototype.HasListeners=a.HasListeners=HasListeners;HasListeners.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,'ComponentDelegation'],function(a){function HasDelegatedListeners(){}a.HasDelegatedListeners=HasDelegatedListeners;HasDelegatedListeners.prototype=a.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()});Ext.cmd.derive('Ext.Widget',Ext.Evented,{isWidget:!0,element:{reference:'element'},observableType:'component',cachedConfig:{style:null},config:{userCls:null},eventedConfig:{width:null,height:null},template:[],constructor:function(c){var a=this,b;a.initId(c);a.initElement();a.mixins.observable.constructor.call(a,c);Ext.ComponentManager.register(a);b=a.getController();if(b){b.init(a)}},afterCachedConfig:function(){var c=this,j=c.self.prototype,f=c.referenceList,i=c.renderElement,d,h,a,b,g,e;j.renderTemplate=d=document.createDocumentFragment();d.appendChild(i.clone(!0,!0));e=d.querySelectorAll('[id]');for(a=0,b=e.length;a]+>/gi,stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},undef:function(a){return a!==undefined?a:''},defaultValue:function(a,b){return a!==undefined&&a!==''?a:b},substr:'ab'.substr(-1)!='b'?function(d,a,c){var b=String(d);return a<0?b.substr(Math.max(b.length+a,0),c):b.substr(a,c)}:function(c,b,a){return String(c).substr(b,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(b){return a.currency(b,'$',2)},currency:function(b,f,c,h){var d='',e=',0',g=0;b=b-0;if(b<0){b=-b;d='-'}c=Ext.isDefined(c)?c:a.currencyPrecision;e+=c>0?'.':'';for(;gb){a=a.substring(a.length-b)}}while(a.length2){}else {if(e.length===2){d=e[1].length;f=e[1].match(a.hashRe);if(f){m=f[0].length;l='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+m+'}$")'}}}b=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts'+(h?',thousandSeparator,thousands=[],j,n,i':'')+(i?',formatString="'+c+'",formatPattern=/[\\d,\\.#]+/':'')+',trailingZeroes;return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";neg=v<0;','absVal=Math.abs(v);','fnum=Ext.Number.toFixed(absVal, '+d+');',l,';'];if(h){if(d){b[b.length]='parts=fnum.split(".");';b[b.length]='fnum=parts[0];'}b[b.length]='if(absVal>=1000) {';b[b.length]='thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i')},capitalize:Ext.String.capitalize,uncapitalize:Ext.String.uncapitalize,ellipsis:Ext.String.ellipsis,escape:Ext.String.escape,escapeRegex:Ext.String.escapeRegex,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,toggle:Ext.String.toggle,trim:Ext.String.trim,parseBox:function(b){b=b||0;if(typeof b==='number'){return {top:b,right:b,bottom:b,left:b}}var a=b.split(' '),c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else {if(c===2){a[2]=a[0];a[3]=a[1]}else {if(c===3){a[3]=a[1]}}}return {top:parseInt(a[0],10)||0,right:parseInt(a[1],10)||0,bottom:parseInt(a[2],10)||0,left:parseInt(a[3],10)||0}}}},1,0,0,0,0,0,[Ext.util,'Format'],0);Ext.cmd.derive('Ext.Template',Ext.Base,{inheritableStatics:{from:function(a,b){a=Ext.getDom(a);return new this(a.value||a.innerHTML,b||'')}},useEval:Ext.isGecko,constructor:function(g){var d=this,c=arguments,f=[],e,b=c.length,a;d.initialConfig={};if(b===1&&Ext.isArray(g)){c=g;b=c.length}if(b>1){for(e=0;e]*)\>)|(?:<\/tpl>)/g,actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g,propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/,defaultRe:/^\s*default\s*$/,elseRe:/^\s*else\s*$/},1,0,0,0,0,0,[Ext.util,'XTemplateParser'],0);Ext.cmd.derive('Ext.util.XTemplateCompiler',Ext.util.XTemplateParser,{useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:!0,propNameRe:/^[\w\d\$]*$/,compile:function(c){var a=this,b=a.generate(c);return a.useEval?a.evalTpl(b):(new Function('Ext',b))(Ext)},generate:function(d){var a=this,b='var fm=Ext.util.Format,ts=Object.prototype.toString;',c;a.maxLevel=0;a.body=['var c0=values, a0='+a.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(a.definitions){if(typeof a.definitions==='string'){a.definitions=[a.definitions,b]}else {a.definitions.push(b)}}else {a.definitions=[b]}a.switches=[];a.parse(d);a.definitions.push((a.useEval?'$=':'return')+' function ('+a.fnArgs+') {',a.body.join(''),'}');c=a.definitions.join('\n');a.definitions.length=a.body.length=a.switches.length=0;delete a.definitions;delete a.body;delete a.switches;return c},doText:function(a){var b=this,c=b.body;a=a.replace(b.aposRe,"\\'").replace(b.newLineRe,'\\n');if(b.useIndex){c.push("out[out.length]='",a,"'\n")}else {c.push("out.push('",a,"')\n")}},doExpr:function(b){var a=this.body;a.push('if ((v='+b+') != null) out');if(this.useIndex){a.push("[out.length]=v+''\n")}else {a.push(".push(v+'')\n")}},doTag:function(b){var a=this.parseTag(b);if(a){this.doExpr(a)}else {this.doText('{'+b+'}')}},doElse:function(){this.body.push('} else {\n')},doEval:function(a){this.body.push(a,'\n')},doIf:function(b,c){var a=this;if(b==='.'){a.body.push('if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('if (',a.parseTag(b),') {\n')}else {a.body.push('if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==='.'){a.body.push('else if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('} else if (',a.parseTag(b),') {\n')}else {a.body.push('} else if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doSwitch:function(b){var a=this,c;if(b==='.'||b==='#'){c=b==='.'?'values':'xindex';a.body.push('switch (',c,') {\n')}else {if(a.propNameRe.test(b)){a.body.push('switch (',a.parseTag(b),') {\n')}else {a.body.push('switch (',a.addFn(b),a.callFn,') {\n')}}a.switches.push(0)},doCase:function(e){var a=this,c=Ext.isArray(e)?e:[e],d=a.switches.length-1,f,b;if(a.switches[d]){a.body.push('break;\n')}else {a.switches[d]++}for(b=0,d=c.length;b1){ out.push("',d.between,'"); } \n')}},doForEach:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else {if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}}if(b.maxLevel1){ out.push("',d.between,'"); } \n')}},createArrayTest:'isArray' in Array?function(a){return 'Array.isArray(c'+a+')'}:function(a){return 'ts.call(c'+a+')==="[object Array]"'},doExec:function(d,e){var a=this,c='f'+a.definitions.length,b=a.guards[a.strict?0:1];a.definitions.push('function '+c+'('+a.fnArgs+') {',b.doTry,' var $v = values; with($v) {',' '+d,' }',b.doCatch,'}');a.body.push(c+a.callFn+'\n')},guards:[{doTry:'',doCatch:''},{doTry:'try { ',doCatch:' } catch(e) {\n}'}],addFn:function(c){var a=this,b='f'+a.definitions.length,d=a.guards[a.strict?0:1];if(c==='.'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return values','}')}else {if(c==='..'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return parent','}')}else {a.definitions.push('function '+b+'('+a.fnArgs+') {',d.doTry,' var $v = values; with($v) {',' return('+c+')',' }',d.doCatch,'}')}}return b},parseTag:function(h){var e=this,f=e.tagRe.exec(h),a,c,d,g,b;if(!f){return null}a=f[1];c=f[2];d=f[3];g=f[4];if(a=='.'){if(!e.validTypes){e.definitions.push('var validTypes={string:1,number:1,boolean:1};');e.validTypes=!0}b='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else {if(a=='#'){b='xindex'}else {if(a=='$'){b='xkey'}else {if(a.substr(0,7)=='parent.'){b=a}else {if(isNaN(a)&&a.indexOf('-')==-1&&a.indexOf('.')!=-1){b='values.'+a}else {b="values['"+a+"']"}}}}}if(g){b='('+b+g+')'}if(c&&e.useFormat){d=d?','+d:'';if(c.substr(0,5)!='this.'){c='fm.'+c+'('}else {c+='('}}else {return b}return c+b+d+')'},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},0,0,0,0,0,0,[Ext.util,'XTemplateCompiler'],function(){var a=this.prototype;a.fnArgs='out,values,parent,xindex,xcount,xkey';a.callFn='.call(this,'+a.fnArgs+')'});Ext.cmd.derive('Ext.XTemplate',Ext.Template,{isXTemplate:!0,emptyObj:{},fn:null,strict:!1,apply:function(b,a,d,c){return this.applyOut(b,[],a,d,c).join('')},applyOut:function(g,d,f,c,b){var a=this,e;if(!a.fn){e=new Ext.util.XTemplateCompiler({useFormat:a.disableFormats!==!0,definitions:a.definitions,strict:a.strict});a.fn=e.compile(a.html)}c=c||1;b=b||1;if(a.strict){a.fn(d,g,f||a.emptyObj,c,b)}else {try{a.fn(d,g,f||a.emptyObj,c,b)}catch(h){}}return d},compile:function(){return this},statics:{getTpl:function(c,d){var b=c[d],a;if(b&&!b.isTemplate){b=Ext.ClassManager.dynInstantiate('Ext.XTemplate',b);if(c.hasOwnProperty(d)){a=c}else {for(a=c.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=b;b.owner=a}return b||null}}},0,0,0,0,0,0,[Ext,'XTemplate'],0);Ext.cmd.derive('Ext.app.EventDomain',Ext.Base,{statics:{instances:{}},isEventDomain:!0,isInstance:!1,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(l,h,m){h=Ext.canonicalEventName(h);var j=this,n=j.bus,b=n[h],c,a,i,g,e,k,d,f;if(!b){return !0}for(c in b){if(b.hasOwnProperty(c)&&j.match(l,c,j.controller)){a=b[c];for(i in a){if(a.hasOwnProperty(i)){g=a[i];if(g.controller.isActive()){e=g.list;k=e.length;for(d=0;da.clientWidth}}if(e==='scroll'){h=!0}else {if(e){h=a.scrollHeight>a.clientHeight}}if(g){i=f.height}if(h){j=f.width}}}return {width:j,height:i}},getPosition:function(){return this.position},updateDirectionLock:Ext.emptyFn,updateDisabled:Ext.emptyFn,updateIndicators:Ext.emptyFn,updateMaxPosition:Ext.emptyFn,updateMaxUserPosition:Ext.emptyFn,updateMinPosition:Ext.emptyFn,updateMinUserPosition:Ext.emptyFn,updateMomenumEasing:Ext.emptyFn,updateX:Ext.emptyFn,updateY:Ext.emptyFn,onPartnerScrollStart:Ext.emptyFn,onPartnerScrollEnd:Ext.emptyFn,refresh:function(){this.fireEvent('refresh',this);return this},removePartner:function(c){var b=this._partners,a=c._partners;if(b){delete b[c.getId()]}if(a){delete a[this.getId()]}},scrollBy:function(a,b,c){var d=this.getPosition();if(a){if(a.length){c=b;b=a[1];a=a[0]}else {if(typeof a!=='number'){c=b;b=a.y;a=a.x}}}a=typeof a==='number'?a+d.x:null;b=typeof b==='number'?b+d.y:null;return this.doScrollTo(a,b,c)},scrollIntoView:function(d,i,h,e){var a=this,c=a.getPosition(),b,f,g,j=a.getElement();if(d){b=Ext.fly(d).getScrollIntoViewXY(j,c.x,c.y);f=i===!1?c.x:b.x;g=b.y;if(e){a.on({scrollend:'doHighlight',scope:a,single:!0,args:[d,e]})}a.doScrollTo(f,g,h)}},isInView:function(d){var f=this,c={x:!1,y:!1},b,e=f.getElement(),a;if(d&&e.contains(d)){a=e.getRegion();b=Ext.fly(d).getRegion();c.x=b.right>a.left&&b.lefta.top&&b.top0){b-=1}if(c>0){c-=1}e.setSpacerXY({x:b,y:c});d.show()}}},deprecated:{5:{methods:{getScroller:function(){return this}}},'5.1.0':{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}},privates:{getSpacer:function(){var b=this,a=b._spacer,c;if(!a){c=b.getElement();a=b._spacer=c.createChild({cls:b._spacerCls,role:'presentation'});a.setVisibilityMode(2);c.position()}return a},applySpacerXY:function(a,b){if(b&&a.x===b.x&&a.y===b.y){a=undefined}return a},updateSpacerXY:function(a){this.getSpacer().setLocalXY(a.x,a.y)},convertX:function(a){return a},doHighlight:function(b,a){if(a!==!0){Ext.fly(b).highlight(a)}else {Ext.fly(b).highlight()}},fireScrollStart:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollStart',b,c);if(a.hasListeners.scrollstart){a.fireEvent('scrollstart',a,b,c)}if(d&&d.onScrollStart){d.onScrollStart(b,c)}Ext.GlobalEvents.fireEvent('scrollstart',a,b,c)},fireScroll:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScroll',b,c);if(a.hasListeners.scroll){a.fireEvent('scroll',a,b,c)}if(d&&d.onScrollMove){d.onScrollMove(b,c)}Ext.GlobalEvents.fireEvent('scroll',a,b,c)},fireScrollEnd:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollEnd',b,c);if(a.hasListeners.scrollend){a.fireEvent('scrollend',a,b,c)}if(d&&d.onScrollEnd){d.onScrollEnd(b,c)}Ext.GlobalEvents.fireEvent('scrollend',a,b,c)},initXStyle:function(){var b=this.getElement(),a=this.getX();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-x',a)}},initYStyle:function(){var b=this.getElement(),a=this.getY();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-y',a)}},invokePartners:function(d,g,h){var b=this,c=b._partners,a,e,f=d==='onPartnerScrollEnd';if(!b.suspendSync&!b.isReflecting){for(e in c){a=c[e].scroller;a.isReflecting=!0;a[d](b,g,h);if(f){a.isReflecting=!1}}}},clearReflecting:function(){this.isReflecting=!1},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(){if(this.suspendSync){this.suspendSync--}},updateDomScrollPosition:function(){var a=this,d=a.getElement(),b,c=a.position;if(d&&!d.destroyed){b=a.getElementScroll(d);c.x=b.left;c.y=b.top}a.positionDirty=!1;return c},getElementScroll:function(a){return a.getScroll()},onDomScroll:function(){var a=this,b,d,e,c;if(a.isTouchScroller&&Ext.supports.touchScroll===2){c=a.getElement().dom;c.scrollTop=c.scrollLeft=0;return}b=a.updateDomScrollPosition();d=b.x;e=b.y;if(!a.isScrolling){a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(d,e)}a.fireScroll(d,e);a.onDomScrollEnd()},onDomScrollEnd:function(){var a=this,b=a.getPosition(),c=b.x,d=b.y;a.isScrolling=Ext.isScrolling=!1;a.trackingScrollLeft=c;a.trackingScrollTop=d;a.fireScrollEnd(c,d)},onPartnerScroll:function(d,b,c){var a=d._partners[this.getId()].axis;if(a){if(a==='x'){c=null}else {if(a==='y'){b=null}}}this.doScrollTo(b,c,!1,!0)},restoreState:function(){var a=this,c=a.getElement(),b;if(c){b=c.dom;if(a.trackingScrollTop!==undefined){b.scrollTop=a.trackingScrollTop;b.scrollLeft=a.trackingScrollLeft}}}}},1,0,0,0,['scroller.scroller'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.scroll,'Scroller'],0);Ext.cmd.derive('Ext.fx.easing.Abstract',Ext.Base,{config:{startTime:0,startValue:0},isEasing:!0,isEnded:!1,constructor:function(a){this.initConfig(a);return this},applyStartTime:function(a){if(!a){a=Ext.Date.now()}return a},updateStartTime:function(a){this.reset()},reset:function(){this.isEnded=!1},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,'Abstract'],0);Ext.cmd.derive('Ext.fx.easing.Momentum',Ext.fx.easing.Abstract,{config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(b){var a=Math.log(1-b/10);this.theta=a;this.alpha=a/this.getAcceleration()},updateStartVelocity:function(a){this.velocity=a*this.getAcceleration()},updateAcceleration:function(a){this.velocity=this.getStartVelocity()*a;this.alpha=this.theta/a},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var a=Ext.Date.now()-this.getStartTime();return Math.exp(a*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}},0,0,0,0,0,0,[Ext.fx.easing,'Momentum'],0);Ext.cmd.derive('Ext.fx.easing.Bounce',Ext.fx.easing.Abstract,{config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var b=Ext.Date.now()-this.getStartTime(),a=b/this.getAcceleration(),c=a*Math.pow(Math.E,-this.getSpringTension()*a);return this.getStartValue()+this.getStartVelocity()*c}},0,0,0,0,0,0,[Ext.fx.easing,'Bounce'],0);Ext.cmd.derive('Ext.fx.easing.BoundMomentum',Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(b,a){return Ext.factory(b,Ext.fx.easing.Momentum,a)},applyBounce:function(b,a){return Ext.factory(b,Ext.fx.easing.Bounce,a)},updateStartTime:function(a){this.getMomentum().setStartTime(a);Ext.fx.easing.Abstract.prototype.updateStartTime.apply(this,arguments)},updateStartVelocity:function(a){this.getMomentum().setStartVelocity(a)},updateStartValue:function(a){this.getMomentum().setStartValue(a)},reset:function(){this.lastValue=null;this.isBouncingBack=!1;this.isOutOfBound=!1;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var d=this.getMomentum(),j=this.getBounce(),f=d.getStartVelocity(),b=f>0?1:-1,i=this.getMinMomentumValue(),h=this.getMaxMomentumValue(),g=b==1?h:i,c=this.lastValue,a,e;if(f===0){return this.getStartValue()}if(!this.isOutOfBound){a=d.getValue();e=d.getVelocity();if(Math.abs(e)=i&&a<=h){return a}this.isOutOfBound=!0;j.setStartTime(Ext.Date.now()).setStartVelocity(e).setStartValue(g)}a=j.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(c!==null){if(b==1&&ac){this.isBouncingBack=!0}}}else {if(Math.round(a)==g){this.isEnded=!0}}}this.lastValue=a;return a}},0,0,0,0,0,0,[Ext.fx.easing,'BoundMomentum'],0);Ext.cmd.derive('Ext.fx.easing.Linear',Ext.fx.easing.Abstract,{config:{duration:0,endValue:0},updateStartValue:function(a){this.distance=this.getEndValue()-a},updateEndValue:function(a){this.distance=a-this.getStartValue()},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration();if(a>b){this.isEnded=!0;return this.getEndValue()}else {return this.getStartValue()+a/b*this.distance}}},0,0,0,0,['easing.linear'],0,[Ext.fx.easing,'Linear'],0);Ext.cmd.derive('Ext.fx.easing.EaseOut',Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,i=a/b,h=1-i,g=1-Math.pow(h,this.getExponent()),c=d+g*e;if(a>=b){this.isEnded=!0;return f}return c}},0,0,0,0,['easing.ease-out'],0,[Ext.fx.easing,'EaseOut'],0);Ext.cmd.derive('Ext.util.translatable.Abstract',Ext.Evented,{config:{useWrapper:null,easing:null,easingX:null,easingY:null},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:!1,isTranslatable:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,'easing')},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},doTranslate:Ext.emptyFn,translate:function(a,b,c){if(c){return this.translateAnimated(a,b,c)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a=='number'){this.x=a}if(!isNaN(b)&&typeof b=='number'){this.y=b}this.doTranslate(a,b)},translateAxis:function(e,a,d){var b,c;if(e=='x'){b=a}else {c=a}return this.translate(b,c,d)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(a,b){this.activeEasingX=a;this.activeEasingY=b;this.isAnimating=!0;this.lastX=null;this.lastY=null;Ext.AnimationQueue.start(this.doAnimationFrame,this);this.fireEvent('animationstart',this,this.x,this.y);return this},translateAnimated:function(g,h,a){var b=this;if(!Ext.isObject(a)){a={}}if(b.isAnimating){b.stopAnimation()}b.callback=a.callback;b.callbackScope=a.scope;var f=Ext.Date.now(),e=a.easing,c=typeof g=='number'?a.easingX||e||b.getEasingX()||!0:null,d=typeof h=='number'?a.easingY||e||b.getEasingY()||!0:null;if(c){c=b.factoryEasing(c);c.setStartTime(f);c.setStartValue(b.x);c.setEndValue(g);if('duration' in a){c.setDuration(a.duration)}}if(d){d=b.factoryEasing(d);d.setStartTime(f);d.setStartValue(b.y);d.setEndValue(h);if('duration' in a){d.setDuration(a.duration)}}return b.animate(c,d)},doAnimationFrame:function(){var a=this,d=a.activeEasingX,e=a.activeEasingY,f=Date.now(),b,c;if(!a.isAnimating){return}a.lastRun=f;if(d===null&&e===null){a.stopAnimation();return}if(d!==null){a.x=b=Math.round(d.getValue());if(d.isEnded){a.activeEasingX=null;a.fireEvent('axisanimationend',a,'x',b)}}else {b=a.x}if(e!==null){a.y=c=Math.round(e.getValue());if(e.isEnded){a.activeEasingY=null;a.fireEvent('axisanimationend',a,'y',c)}}else {c=a.y}if(a.lastX!==b||a.lastY!==c){a.doTranslate(b,c);a.lastX=b;a.lastY=c}a.fireEvent('animationframe',a,b,c)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=!1;Ext.AnimationQueue.stop(a.doAnimationFrame,a);a.fireEvent('animationend',a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){if(this.isAnimating){this.stopAnimation()}Ext.Evented.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.translatable,'Abstract'],0);Ext.cmd.derive('Ext.util.translatable.Dom',Ext.util.translatable.Abstract,{config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,'Dom'],0);Ext.cmd.derive('Ext.util.translatable.CssTransform',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement();if(!this.destroyed&&!a.destroyed){a.translate(b,c)}},destroy:function(){var a=this.getElement();if(a&&!a.destroyed){a.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssTransform'],0);Ext.cmd.derive('Ext.util.translatable.ScrollPosition',Ext.util.translatable.Dom,{type:'scrollposition',config:{useWrapper:!0},getWrapper:function(){var a=this.wrapper,c=this.getElement(),b;if(!a){b=c.getParent();if(!b){return null}if(b.hasCls('x-translatable-hboxfix')){b=b.getParent()}if(this.getUseWrapper()){a=c.wrap()}else {a=b}c.addCls('x-translatable');a.addCls('x-translatable-container');this.wrapper=a;a.on('painted',function(){if(!this.isAnimating){this.refresh()}},this);this.refresh()}return a},doTranslate:function(c,d){var b=this.getWrapper(),a;if(b){a=b.dom;if(typeof c=='number'){a.scrollLeft=500000-c}if(typeof d=='number'){a.scrollTop=500000-d}}},destroy:function(){var a=this,c=a.getElement(),b=a.wrapper;if(b){if(!c.destroyed){if(a.getUseWrapper()){b.doReplaceWith(c)}c.removeCls('x-translatable')}if(!b.destroyed){b.removeCls('x-translatable-container');b.un('painted','refresh',a)}delete a.wrapper;delete a._element}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollPosition'],0);Ext.cmd.derive('Ext.util.translatable.ScrollParent',Ext.util.translatable.Dom,{isScrollParent:!0,applyElement:function(b){var a=Ext.get(b);if(a){this.parent=a.parent()}return a},doTranslate:function(b,c){var a=this.parent;a.setScrollLeft(Math.round(-b));a.setScrollTop(Math.round(-c))},getPosition:function(){var c=this,a=c.position,b=c.parent;a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollParent'],0);Ext.cmd.derive('Ext.util.translatable.CssPosition',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement().dom.style;if(typeof b=='number'){a.left=b+'px'}if(typeof c=='number'){a.top=c+'px'}},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssPosition'],0);Ext.cmd.derive('Ext.util.Translatable',Ext.Base,{constructor:function(a){var b=Ext.util.translatable;switch(Ext.browser.getPreferredTranslationMethod(a)){case 'scrollposition':return new b.ScrollPosition(a);case 'scrollparent':return new b.ScrollParent(a);case 'csstransform':return new b.CssTransform(a);case 'cssposition':return new b.CssPosition(a);}}},1,0,0,0,0,0,[Ext.util,'Translatable'],0);Ext.cmd.derive('Ext.scroll.Indicator',Ext.Widget,{config:{axis:null,hideAnimation:!0,hideDelay:0,scroller:null,minLength:24},defaultHideAnimation:{to:{opacity:0},duration:300},names:{x:{side:'l',getSize:'getHeight',setLength:'setWidth',translate:'translateX'},y:{side:'t',getSize:'getWidth',setLength:'setHeight',translate:'translateY'}},oppositeAxis:{x:'y',y:'x'},cls:'x-scroll-indicator',applyHideAnimation:function(a){if(a){a=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,a)}return a},constructor:function(c){var a=this,b;Ext.Widget.prototype.constructor.call(this,c);b=a.getAxis();a.names=a.names[b];a.element.addCls(a.cls+' '+a.cls+'-'+b)},hide:function(){var a=this,b=a.getHideDelay();if(b){a._hideTimer=Ext.defer(a.doHide,b,a)}else {a.doHide()}},setValue:function(c){var a=this,o=a.element,l=a.names,m=a.getAxis(),k=a.getScroller(),f=k.getMaxUserPosition()[m],g=k.getElementSize()[m],b=a.length,j=a.getMinLength(),e=b,i=g-b-a.sizeAdjust,h=Math.round,n=Math.max,d;if(c<0){e=h(n(b+b*c/g,j));d=0}else {if(c>f){e=h(n(b-b*(c-f)/g,j));d=i+b-e}else {d=h(c/f*i)}}a[l.translate](d);o[l.setLength](e)},show:function(){var a=this,b=a.element,c=b.getActiveAnimation();if(c){c.end()}if(!a._inDom){a.getScroller().getElement().appendChild(b);a._inDom=!0;if(!a.size){a.cacheStyles()}}a.refreshLength();clearTimeout(a._hideTimer);b.setStyle('opacity','')},privates:{cacheStyles:function(){var a=this,c=a.element,b=a.names;a.size=c[b.getSize]();a.margin=c.getMargin(b.side)},doHide:function(){var a=this.getHideAnimation(),b=this.element;if(a){b.animate(a)}else {b.setStyle('opacity',0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle('opacity','0')},refreshLength:function(){var a=this,i=a.names,g=a.getAxis(),e=a.getScroller(),h=e.getSize()[g],c=e.getElementSize()[g],j=c/h,b=a.margin*2,d=a.hasOpposite()?b+a.size:b,f=Math.max(Math.round((c-d)*j),a.getMinLength());a.sizeAdjust=d;a.length=f;a.element[i.setLength](f)},translateX:function(a){this.element.translate(a)},translateY:function(a){this.element.translate(0,a)}}},1,['scrollindicator'],['widget','scrollindicator'],{'widget':!0,'scrollindicator':!0},['widget.scrollindicator'],0,[Ext.scroll,'Indicator'],0);Ext.cmd.derive('Ext.scroll.TouchScroller',Ext.scroll.Scroller,{isTouchScroller:!0,config:{autoRefresh:!0,bounceEasing:{duration:400},elementSize:undefined,indicators:!0,fps:'auto',maxAbsoluteVelocity:6,momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,innerElement:null,size:undefined,slotSnapEasing:{duration:150},slotSnapOffset:{x:0,y:0},startMomentumResetTime:300,translatable:{translationMethod:'auto',useWrapper:!1}},cls:'x-scroll-container',scrollerCls:'x-scroll-scroller',dragStartTime:0,dragEndTime:0,isDragging:!1,isAnimating:!1,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:'onTouchStart',touchmove:'onTouchMove',dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd'},refreshCounter:0,constructor:function(c){var a=this,b='onEvent';a.elementListeners={touchstart:b,touchmove:b,dragstart:b,drag:b,dragend:b,scope:a};a.minPosition={x:0,y:0};a.startPosition={x:0,y:0};a.velocity={x:0,y:0};a.isAxisEnabledFlags={x:!1,y:!1};a.flickStartPosition={x:0,y:0};a.flickStartTime={x:0,y:0};a.lastDragPosition={x:0,y:0};a.dragDirection={x:0,y:0};Ext.scroll.Scroller.prototype.constructor.call(this,c);a.refreshAxes();a.scheduleRefresh={idle:a.doRefresh,scope:a,single:!0,destroyable:!0}},applyBounceEasing:function(b){var a=Ext.fx.easing.EaseOut;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyElementSize:function(b){var e=this.getElement(),a,c,d;if(!e){return null}a=e.dom;if(!a){return}if(b==null){c=a.clientWidth;d=a.clientHeight}else {c=b.x;d=b.y}return {x:c,y:d}},applyIndicators:function(b,a){var g=this,c,d,e,f;if(b){if(b===!0){c=d={}}else {e=b.x;f=b.y;if(e||f){c=e==null||e===!0?{}:e;d=e==null||f===!0?{}:f}else {c=d=b}}if(a){if(c){a.x.setConfig(c)}else {a.x.destroy();a.x=null}if(d){a.y.setConfig(d)}else {a.y.destroy();a.y=null}b=a}else {b={x:null,y:null};if(c){b.x=new Ext.scroll.Indicator(Ext.applyIf({axis:'x',scroller:g},c))}if(d){b.y=new Ext.scroll.Indicator(Ext.applyIf({axis:'y',scroller:g},d))}}}else {if(a){if(a.x){a.x.destroy()}if(a.y){a.y.destroy()}a.x=a.y=null}}return b},applyMomentumEasing:function(b){var a=Ext.fx.easing.BoundMomentum;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyInnerElement:function(a){if(a&&!a.isElement){a=Ext.get(a)}return a},applyMaxPosition:function(a,c){if(c&&a.x===c.x&&a.y===c.y){return}var d=this.getTranslatable(),b;if(d.isAnimating){b=d.activeEasingY;if(b&&b.getStartVelocity&&b.getStartVelocity()<0&&a.yi){d=i}}if(l){c=a.convertX(c);d=a.convertX(d)}if(d!==null){f=a.getBounceEasing()[b];f.setConfig({startTime:j,startValue:-c,endValue:-d});return f}if(e===0){return null}if(e<-g){e=-g}else {if(e>g){e=g}}f=a.getMomentumEasing()[b];h={startTime:j,startValue:-c,startVelocity:e*1.5,minMomentumValue:-i,maxMomentumValue:0};if(l){a.convertEasingConfig(h)}f.setConfig(h);return f},getSnapPosition:function(d){var e=this,c=e.getSlotSnapSize()[d],f=null,b,h,g,a;if(c!==0&&e.isAxisEnabled(d)){b=e.position[d];h=e.getSlotSnapOffset()[d];g=e.getMaxUserPosition()[d];a=Math.floor((b-h)%c);if(a!==0){if(b!==g){if(Math.abs(a)>c/2){f=Math.min(g,b+(a>0?c-a:a-c))}else {f=b-a}}else {f=b-a}}}return f},hideIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.hide()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.hide()}}}},isAxisEnabled:function(a){this.getX();this.getY();return this.isAxisEnabledFlags[a]},onAnimationEnd:function(){this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(d,b,c){var a=this.position;a.x=this.convertX(-b);a.y=-c;this.onScroll()},onAxisDrag:function(a,k){if(k&&this.isAxisEnabled(a)){var b=this,o=b.flickStartPosition,g=b.flickStartTime,f=b.lastDragPosition,d=b.dragDirection,r=b.position[a],q=b.getMinUserPosition()[a],e=b.getMaxUserPosition()[a],p=b.startPosition[a],l=f[a],c=p-k,i=d[a],h=b.getOutOfBoundRestrictFactor(),n=b.getStartMomentumResetTime(),m=Ext.Date.now(),j;if(ce){j=c-e;c=e+j*h}}if(c>l){d[a]=1}else {if(cn){o[a]=r;g[a]=m}f[a]=c;return !0}},onDomScroll:function(){var c=this,b,a;if(c.getTranslatable().isScrollParent){b=c.getElement().dom;a=c.position;a.x=b.scrollLeft;a.y=b.scrollTop}Ext.scroll.Scroller.prototype.onDomScroll.call(this)},onDrag:function(c){var a=this,b=a.lastDragPosition;if(!a.isDragging){return}if(a.onAxisDrag('x',a.convertX(c.deltaX))|a.onAxisDrag('y',c.deltaY)){a.doScrollTo(b.x,b.y)}},onDragEnd:function(d){var a=this,b,c;if(!a.isDragging){return}a.dragEndTime=Ext.Date.now();a.onDrag(d);a.isDragging=!1;b=a.getAnimationEasing('x',d);c=a.getAnimationEasing('y',d);if(b||c){a.getTranslatable().animate(b,c)}else {a.onScrollEnd()}},onDragStart:function(d){var a=this,b=a.getDirection(),m=d.absDeltaX,n=d.absDeltaY,o=a.getDirectionLock(),l=a.startPosition,g=a.flickStartPosition,j=a.flickStartTime,h=a.lastDragPosition,i=a.position,k=a.dragDirection,e=i.x,f=i.y,c=Ext.Date.now();if(o&&b!=='both'){if(b==='horizontal'&&m>n||b==='vertical'&&n>m){d.stopPropagation()}else {return}}h.x=e;h.y=f;g.x=e;g.y=f;l.x=e;l.y=f;j.x=c;j.y=c;k.x=0;k.y=0;a.dragStartTime=c;a.isDragging=!0;if(!a.isScrolling){a.onScrollStart()}},onElementResize:function(b,a){this.refresh(!0,{elementSize:{x:a.contentWidth,y:a.contentHeight},size:this.getAutoRefresh()?null:this.getSize()})},onElementScroll:function(b,a){a.scrollTop=a.scrollLeft=0},onEvent:function(b){var a=this,c=b.browserEvent;if((!a.self.isTouching||a.isTouching)&&(!a.getTranslatable().isScrollParent||!a.isMouseEvent[c.type]&&c.pointerType!=='mouse')&&(a.getY()||a.getX())){a[a.listenerMap[b.type]](b)}},onInnerElementResize:function(b,a){this.refresh(!0,{size:{x:a.width,y:a.height}})},onMouseWheel:function(j){var a=this,g=j.getWheelDeltas(),c=-g.x,d=-g.y,b=a.position,e=a.getMaxUserPosition(),f=a.getMinUserPosition(),h=Math.max,i=Math.min,k=h(i(b.x+c,e.x),f.x),l=h(i(b.y+d,e.y),f.y);c=k-b.x;d=l-b.y;if(!c&&!d){return}j.stopEvent();a.onScrollStart();a.scrollBy(c,d);a.onScroll();a.onScrollEnd()},onPartnerScrollEnd:function(b,c){var a=this;if(!a.getTranslatable().isScrollParent){a.fireScrollEnd(b,c)}Ext.scroll.Scroller.prototype.onPartnerScrollEnd.call(this,b,c);a.isScrolling=!1;a.hideIndicators()},onPartnerScrollStart:function(b,c){var a=this;a.isScrolling=!0;if(!a.getTranslatable().isScrollParent){a.fireScrollStart(b,c)}a.showIndicators()},onScroll:function(){var a=this,e=a.position,f=e.x,g=e.y,b=a.getIndicators(),c,d;if(b){if(a.isAxisEnabled('x')){c=b.x;if(c){c.setValue(f)}}if(a.isAxisEnabled('y')){d=b.y;if(d){d.setValue(g)}}}a.fireScroll(f,g)},onScrollEnd:function(){var a=this,b=a.position;if(a.isScrolling&&!a.isTouching&&!a.snapToSlot()){a.hideIndicators();a.isScrolling=Ext.isScrolling=!1;a.fireScrollEnd(b.x,b.y)}},onScrollStart:function(){var a=this,b=a.position;if(!a.isScrolling){a.showIndicators();a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(b.x,b.y)}},onTouchEnd:function(){var a=this;a.isTouching=a.self.isTouching=!1;if(!a.isDragging&&a.snapToSlot()){a.onScrollStart()}},onTouchMove:function(a){a.preventDefault()},onTouchStart:function(){var a=this;a.isTouching=a.self.isTouching=!0;Ext.getDoc().on({touchend:'onTouchEnd',scope:a,single:!0});a.stopAnimation()},refreshAxes:function(){var a=this,b=a.isAxisEnabledFlags,k=a.getSize(),h=a.getElementSize(),e=a.getIndicators(),f,g,c,d,i,j;if(!k||!h){return}f=Math.max(0,k.x-h.x);g=Math.max(0,k.y-h.y);c=a.getX();d=a.getY();a.setMaxPosition({x:f,y:g});if(c===!0||c==='auto'){b.x=!!f}else {if(c===!1){b.x=!1;i=e&&e.x;if(i){i.hide()}}else {if(c==='scroll'){b.x=!0}}}if(d===!0||d==='auto'){b.y=!!g}else {if(d===!1){b.y=!1;j=e&&e.y;if(j){j.hide()}}else {if(d==='scroll'){b.y=!0}}}a.setMaxUserPosition({x:b.x?f:0,y:b.y?g:0});if(Ext.supports.touchScroll===1){a.initXStyle();a.initYStyle()}},showIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.show()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.show()}}}},snapToBoundary:function(){var a=this,d=a.getPosition();if(a.isConfiguring||!(d.x||d.y)){return}var f=a.getMinUserPosition(),e=a.getMaxUserPosition(),i=f.x,j=f.y,g=e.x,h=e.y,b=Math.round(d.x),c=Math.round(d.y);if(bg){b=g}}if(ch){c=h}}a.doScrollTo(b,c)},snapToSlot:function(){var a=this,c=a.getSnapPosition('x'),d=a.getSnapPosition('y'),b=a.getSlotSnapEasing();if(c!==null||d!==null){a.doScrollTo(c,d,{easingX:b.x,easingY:b.y});return !0}return !1},stopAnimation:function(){this.getTranslatable().stopAnimation()},toggleResizeListeners:function(e){var c=this,f=c.getElement(),b,a,d;if(f){d=c.getInnerElement();if(e){b=a='on'}else {if(e===null){b='on';a='un'}else {b=a='un'}}f[b]('resize','onElementResize',c);d[a]('resize','onInnerElementResize',c)}},unwrapContent:function(){var a=this.getInnerElement().dom,c=this.getElement().dom,b;while(b=a.firstChild){c.insertBefore(b,a)}},wrapContent:function(d){var a=document.createElement('div'),c=d.dom,b;while(b=c.lastChild){a.insertBefore(b,a.firstChild)}c.appendChild(a);this.setInnerElement(a);this._isWrapped=!0;return this.getInnerElement()}}},1,0,0,0,['scroller.touch'],0,[Ext.scroll,'TouchScroller'],0);Ext.cmd.derive('Ext.scroll.DomScroller',Ext.scroll.Scroller,{isDomScroller:!0,getMaxPosition:function(){var b=this.getElement(),c=0,d=0,a;if(b&&!b.destroyed){a=b.dom;c=a.scrollWidth-a.clientWidth;d=a.scrollHeight-a.clientHeight}return {x:c,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),d=0,e=0,a;if(b&&!b.destroyed){a=b.dom;if(c.getX()){d=a.scrollWidth-a.clientWidth}if(c.getY()){e=a.scrollHeight-a.clientHeight}}return {x:d,y:e}},getPosition:function(){var a=this;if(a.positionDirty){a.updateDomScrollPosition()}return a.position},getSize:function(){var a=this.getElement(),b,c;if(a&&!a.destroyed){c=a.dom;b={x:c.scrollWidth,y:c.scrollHeight}}else {b={x:0,y:0}}return b},updateElement:function(b,a){this.initXStyle();this.initYStyle()},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},privates:{doScrollTo:function(a,b,j){var e=this,d=e.getElement(),f,c,i,g,h,k;if(d&&!d.destroyed){c=d.dom;g=a===Infinity;h=b===Infinity;if(g||h){f=e.getMaxPosition();if(g){a=f.x}if(h){b=f.y}}a=e.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}d.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(b!=null){c.scrollTop=b}if(a!=null){c.scrollLeft=a;if(Ext.isIE8){k=c.scrollLeft;c.scrollLeft=a}}}e.positionDirty=!0}},getElementScroll:function(a){return a.getScroll()},stopAnimation:function(){var a=this.getElement().getActiveAnimation();if(a){a.end()}}}},0,0,0,0,['scroller.dom'],0,[Ext.scroll,'DomScroller'],function(a){Ext.onDocumentReady(function(){a.document=new a({x:!0,y:!0,element:document.body})})});Ext.cmd.derive('Ext.util.Floating',Ext.Base,{mixinId:'floating',focusOnToFront:!0,shadow:'sides',animateShadow:!1,constrain:!1,config:{activeCounter:0,alwaysOnTop:!1},preventDefaultAlign:!1,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var a=this,e=a.el,d=a.shadow,c,b;if(d){b={mode:d===!0?'sides':d};c=a.shadowOffset;if(c){b.offset=c}b.animate=a.animateShadow;b.fixed=a.fixed;e.enableShadow(b,!1)}if(a.shim||Ext.useShims){e.enableShim({fixed:a.fixed},!1)}e.setVisibilityMode(a._visModeMap[a.hideMode]);a.el.on({mousedown:a.onMouseDown,scope:a,capture:!0});a.registerWithOwnerCt();a.initHierarchyEvents()},alignTo:function(b,d,f,e){var a=this,c;Ext.un('scroll',a.onAlignToScroll,a);if(b.isComponent){c=b.el}else {if(b.nodeType){c=Ext.fly(b)}else {c=b}}if(!c.contains(a.el)){Ext.on('scroll',a.onAlignToScroll,a)}a._lastAlignTarget=b;a._lastAlignToPos=d;a.mixins.positionable.alignTo.call(a,c,d,f,e)},initFloatConstrain:function(){var a=this,b=a.floatParent;if((a.constrain||a.constrainHeader)&&!a.constrainTo){a.constrainTo=b?b.getTargetEl():a.container}},initHierarchyEvents:function(){var b=this,a=this.syncHidden;if(!b.hasHierarchyEventListeners){b.mon(Ext.GlobalEvents,{hide:a,collapse:a,show:a,expand:a,added:a,scope:b});b.hasHierarchyEventListeners=!0}},registerWithOwnerCt:function(){var a=this,c=a.ownerCt,b=a.zIndexParent;if(b){b.unregisterFloatingItem(a)}b=a.zIndexParent=a.up('[floating]');a.floatParent=c||b;a.initFloatConstrain();delete a.ownerCt;if(b){b.registerFloatingItem(a)}else {Ext.WindowManager.register(a)}},onMouseDown:function(g){var b=this,f=b.focusTask,c=g.pointerType==='touch',a,d,e;if(b.floating&&(!f||!f.id)){a=g.target;d=b.el.dom;while(!c&&a&&a!==d){if(Ext.fly(a).isFocusable()){c=!0}a=a.parentNode}e=Ext.WindowManager.getActive()===b&&(a===d||c);if(!e){b.toFront(c)}}},onBeforeFloatLayout:function(){this.el.preventSync=!0},onAfterFloatLayout:function(){var a=this.el;if(a.shadow||a.shim){a.setUnderlaysVisible(!0);a.syncUnderlays()}},syncHidden:function(){var a=this,d=a.hidden||!a.rendered,c=a.hierarchicallyHidden=a.isHierarchicallyHidden(),b=a.pendingShow;if(d!==c){if(c){a.hide();a.pendingShow=!0}else {if(b){delete a.pendingShow;if(b.length){a.show.apply(a,b)}else {a.show()}}}}},setZIndex:function(a){var b=this;b.el.setZIndex(a);a+=10;if(b.floatingDescendants){a=Math.floor(b.floatingDescendants.setBase(a)/100)*100+10000}return a},doConstrain:function(c){var a=this,b=a.calculateConstrainedPosition(c,null,!0);if(b){a.setPosition(b)}},updateActiveCounter:function(b){var a=this.zIndexParent;if(a&&this.bringParentToFront!==!1){a.setActiveCounter(++Ext.ZIndexManager.activeCounter)}a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},updateAlwaysOnTop:function(b){var a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},toFront:function(b){var a=this;if(a.zIndexManager.bringToFront(a,b||!a.focusOnToFront)){if(a.hasListeners.tofront){a.fireEvent('tofront',a,a.el.getZIndex())}}return a},setActive:function(d,c){var a=this,b;if(d){if(a.el.shadow&&!a.maximized){a.el.enableShadow(null,!0)}if(c){b=Ext.ComponentManager.getActiveComponent();if(!b||!b.up(a)){a.focus()}}a.fireEvent('activate',a)}else {a.fireEvent('deactivate',a)}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var a=this,b;if(a.isVisible()){b=a.getAlignToXY(a.container,'c-c');a.setPagePosition(b)}else {a.needsCenter=!0}return a},onFloatShow:function(){if(this.needsCenter){this.center()}delete this.needsCenter;if(this.toFrontOnShow){this.toFront()}},fitContainer:function(f){var d=this,c=d.floatParent,a=c?c.getTargetEl():d.container,b=a.getViewSize(),e=c||a.dom!==document.body?[0,0]:a.getXY();b.x=e[0];b.y=e[1];d.setBox(b,f)},privates:{onFloatDestroy:function(){this.clearAlignEl()},clearAlignEl:function(){var a=this;if(a._lastAlignTarget){Ext.un('scroll',a.onAlignToScroll,a);a._lastAlignPos=a._lastAlignTarget=null}},onAlignToScroll:function(e){var b=this,a=b._lastAlignTarget,f=a.isFloating,c,d;if(a){if(a.isComponent){c=a.destroyed;a=a.el}else {if(a.nodeType){a=Ext.fly(a)}d=a.dom;c=!d||Ext.isGarbage(d)}if(c){b.clearAlignEl()}else {if((e.getElement().contains(a)||f)&&!e.getElement().contains(b.el)){b.alignTo(a,b._lastAlignToPos)}}}}}},1,0,0,0,0,0,[Ext.util,'Floating'],0);Ext.cmd.derive('Ext.util.ElementContainer',Ext.Base,{mixinId:'elementCt',config:{childEls:{$value:{},cached:!0,lazy:!0,merge:function(d,f,g,e){var c=f?Ext.Object.chain(f):{},b,a;if(d instanceof Array){for(b=d.length;b--;){a=d[b];if(!e||!(a in c)){if(typeof a==='string'){c[a]={name:a,itemId:a}}else {c[a.name]=a}}}}else {if(d){if(d.constructor===Object){for(b in d){if(!e||!(b in c)){a=d[b];if(a===!0){c[b]={itemId:b}}else {if(typeof a==='string'){c[b]={itemId:a}}else {c[b]=a;if(!('itemId' in a)){a.itemId=b}}}c[b].name=b}}}else {if(!e||!(d in c)){c[d]={name:d,itemId:d}}}}}return c}}},destroy:function(){var c=this,d=c.getChildEls(),a,b;for(b in d){a=c[b];if(a){if(a.destroy){a.component=null;a.destroy()}c[b]=null}}},privates:{addChildEl:function(a){var c=this,b=c.getChildEls();if(!c.hasOwnProperty('childEls')){c.childEls=b=Ext.Object.chain(b)}if(typeof a==='string'){a={name:a,itemId:a}}b[a.name]=a},afterClassMixedIn:function(a){var c=a.prototype,b=c.childEls;if(b){delete c.childEls;a.getConfigurator().add({childEls:b})}},attachChildEls:function(h,n){var i=this,k=i.getChildEls(),e=n||i,m=e.id+'-',l=!e.frame,f,g,b,j,c,a,d;for(f in k){b=k[f];if(l&&b.frame){continue}c=b.select;if(c){a=h.select(c,!0)}else {if(!(c=b.selectNode)){if(!(d=b.id)){d=m+b.itemId;a=Ext.cache[d]}else {a=Ext.cache[d]||h.getById(d)}}else {a=h.selectNode(c,!1)}}if(a){if(a.isElement){a.component=e}else {if(a.isComposite&&!a.isLite){g=a.elements;for(j=g.length;j--;){g[j].component=e}}}}i[f]=a||null}}}},0,0,0,0,0,0,[Ext.util,'ElementContainer'],0);Ext.cmd.derive('Ext.util.Renderable',Ext.Base,{mixinId:'renderable',frameCls:'x-frame',frameIdRegex:/[\-]frame\d+[TMB][LCR]$/,frameElNames:['TL','TC','TR','ML','MC','MR','BL','BC','BR','Table'],frameTpl:['{%this.renderDockedItems(out,values,0);%}','','
    {parent.baseCls}-{parent.ui}-{.}-tl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','
    {parent.baseCls}-{parent.ui}-{.}-ml{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mc{frameElCls}" role="presentation">','{%this.applyRenderTpl(out, values)%}','
    ','
    ','
    ','','
    {parent.baseCls}-{parent.ui}-{.}-bl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-br{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-bc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','{%this.renderDockedItems(out,values,1);%}'],frameTableTpl:['{%this.renderDockedItems(out,values,0);%}','','','','','','','','','','','','','','','','','','','','','','{%this.renderDockedItems(out,values,1);%}'],_renderState:0,ariaEl:'el',_layerCls:'x-layer',_fixedLayerCls:'x-fixed-layer',ariaStaticRoles:{presentation:!0,article:!0,definition:!0,directory:!0,document:!0,img:!0,heading:!0,math:!0,note:!0,banner:!0,complementary:!0,contentinfo:!0,navigation:!0,search:!0,'undefined':!0,'null':!0},statics:{makeRenderSetter:function(c,b){var a=c.name;return function(g){var d=this,f=d.renderConfigs||(d.renderConfigs={}),e=f[b];if(d._renderState>=b){(c.setter||c.getSetter()).call(d,g)}else {if(!e){f[b]=e={}}if(!(a in e)){e[a]=d[a]}d[a]=g}return d}},processRenderConfig:function(g,e,c){var h=this.prototype,j=this.getConfigurator(),k=Ext.util.Renderable,l=k.makeRenderSetter,d=g[e],b,a,i,f;for(i in d){a=Ext.Config.get(i);if(!h[f=a.names.set]){b=a.renderSetter||(a.renderSetter={});h[f]=b[c]||(b[c]=l(a,c))}}delete g[e];j.add(d)}},onClassMixedIn:function(a){var e=a.override,c=this.processRenderConfig,d=function(b){if(b.beforeRenderConfig){this.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){this.processRenderConfig(b,'renderConfig',3)}e.call(this,b)},b=function(e,b){e.override=d;e.processRenderConfig=c;if(b.beforeRenderConfig){e.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){e.processRenderConfig(b,'renderConfig',3)}};b(a,a.prototype);a.onExtended(b)},afterRender:function(){var a=this,c={},i=a.protoEl,g=a.el,d,b,h,f,e;a.finishRenderChildren();a._renderState=4;if(a.contentEl){h='x-';f=h+'hidden-';e=a.contentEl=Ext.get(a.contentEl);e.component=a;e.removeCls([h+'hidden',f+'display',f+'offsets']);a.getContentTarget().appendChild(e.dom)}i.writeTo(c);b=c.removed;if(b){g.removeCls(b)}b=c.cls;if(b.length){g.addCls(b)}b=c.style;if(c.style){g.setStyle(b)}a.protoEl=null;if(!a.ownerCt&&!a.skipLayout){a.updateLayout()}if(!(a.x&&a.y)&&(a.pageX||a.pageY)){a.setPagePosition(a.pageX,a.pageY)}if(a.disableOnRender){a.onDisable()}d=a.controller;if(d&&d.afterRender){d.afterRender(a)}},afterFirstLayout:function(l,k){var a=this,g=a.x,h=a.y,j=a.defaultAlign,i=a.alignOffset,f,d,e,b,c;if(!a.ownerLayout){d=g!==undefined;e=h!==undefined}if(a.floating&&!a.preventDefaultAlign&&(!d||!e)){if(a.floatParent){b=a.floatParent.getTargetEl().getViewRegion();c=a.el.getAlignToXY(a.alignTarget||a.floatParent.getTargetEl(),j,i);b.x=c[0]-b.x;b.y=c[1]-b.y}else {c=a.el.getAlignToXY(a.alignTarget||a.container,j,i);b=a.el.translateXY(c[0],c[1])}g=d?g:b.x;h=e?h:b.y;d=e=!0}if(d||e){a.setPosition(g,h)}a.onBoxReady(l,k);f=a.controller;if(f&&f.boxReady){f.boxReady(a)}},beforeRender:function(){var a=this,d=a.floating,e=a.getComponentLayout(),b=a.userCls,c;a._renderState=1;a.ariaUsesMainElement=a.ariaEl==='el';c=a.controller;if(c&&c.beforeRender){c.beforeRender(a)}a.initBindable();if(a.renderConfigs){a.flushRenderConfigs()}if(a.reference){a.publishState()}if(b){a.addCls(b)}if(d){a.addCls(a.fixed?a._fixedLayerCls:a._layerCls);b=d.cls;if(b){a.addCls(b)}}a.frame=a.frame||a.alwaysFramed;if(!e.initialized){e.initLayout()}a.initOverflow();a.setUI(a.ui)},doApplyRenderTpl:function(d,a){var c=a.$comp,b;if(!c.rendered){b=c.initRenderTpl();b.applyOut(a.renderData,d)}},getElConfig:function(){var a=this,e=a.autoEl,c=a.getFrameInfo(),b={tag:'div',tpl:c?a.initFramingTpl(c.table):a.initRenderTpl()},g=a.layoutTargetCls,d=a.protoEl,f=a.ariaRole,h;a.initStyles(d);if(g&&!c){d.addCls(g)}d.writeTo(b);d.flush();if(e){if(Ext.isString(e)){b.tag=e}else {Ext.apply(b,e)}}if(f&&a.ariaUsesMainElement){b.role=f;if(!a.ariaStaticRoles[f]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}}b.id=a.id;if(b.tpl){if(c){b.tplData=h=a.getFrameRenderData();h.renderData=a.initRenderData()}else {b.tplData=a.initRenderData()}}a.ariaRenderAttributes=null;return b},getInsertPosition:function(a){if(a!==undefined){if(Ext.isNumber(a)){a=this.container.dom.childNodes[a]}else {a=Ext.getDom(a)}}return a},getRenderTree:function(){var a=this,b=null;if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a._renderState=1;a.beforeRender();a.rendering=!0;a._renderState=2;b=a.getElConfig();if(a.el){b.id=a.$pid=Ext.id(null,a.el.identifiablePrefix)}}return b},initRenderData:function(){var a=this,c=a.ariaRole,d,b;d=Ext.apply({$comp:a,id:a.id,ui:a.ui,uiCls:a.uiCls,baseCls:a.baseCls,componentCls:a.componentCls,frame:a.frame,renderScroller:a.touchScroll,scrollerCls:a.scrollerCls,childElCls:''},a.renderData);if(c&&!a.ariaUsesMainElement){b={role:c};if(!a.ariaStaticRoles[c]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}d.ariaAttributes=b}return d},onRender:function(i,h){var a=this,e=a.x,f=a.y,b=null,g=a.el,d,c;a.applyRenderSelectors();a.rendering=null;a.rendered=!0;a._renderState=3;if(a.renderConfigs){a.flushRenderConfigs()}if(e!=null){b={x:e}}if(f!=null){(b=b||{}).y=f}if(!a.getFrameInfo()){d=a.width;c=a.height;if(typeof d==='number'){b=b||{};b.width=d}if(typeof c==='number'){b=b||{};b.height=c}}if(a.touchScroll===1){a.getOverflowEl().disableTouchScroll()}a.lastBox=g.lastBox=b},render:function(c,g){var a=this,b=a.el,f=a.ownerLayout,h,d,e;if(b&&!b.isElement){a.wrapPrimaryEl(b);b=a.el}if(!a.skipLayout){Ext.suspendLayouts()}c=a.initContainer(c);e=a.getInsertPosition(g);if(!b){d=a.getRenderTree();if(f&&f.transformItemRenderTree){d=f.transformItemRenderTree(d)}if(d){if(e){b=Ext.DomHelper.insertBefore(e,d)}else {b=Ext.DomHelper.append(c,d)}a.wrapPrimaryEl(b);a.cacheRefEls(b)}}else {if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a.beforeRender();a.needsRenderTpl=a.rendering=!0;a._renderState=2;a.initStyles(b);if(a.allowDomMove!==!1){if(e){c.dom.insertBefore(b.dom,e)}else {c.dom.appendChild(b.dom)}}}else {h=!0}}if(b&&!h){a.finishRender(g)}if(!a.skipLayout){Ext.resumeLayouts(!a.hidden&&!c.isDetachedBody)}},ensureAttachedToBody:function(c){var a=this,b;while(a.ownerCt){a=a.ownerCt}if(a.container.isDetachedBody){a.container=b=Ext.getBody();b.appendChild(a.el.dom);if(c){a.updateLayout()}if(typeof a.x==='number'||typeof a.y==='number'){a.setPosition(a.x,a.y)}}},privates:{applyRenderSelectors:function(){var a=this,b=a.renderSelectors,e=a.el,d,c;a.attachChildEls(e);a.ariaEl=a[a.ariaEl]||a.el;if(b){for(c in b){d=b[c];if(d){a[c]=e.selectNode(d,!1)}}}},cacheRefEls:function(a){a=a||this.el;var e=Ext.cache,h=Ext.dom.Element,f=a.isElement?a.dom:a,d=f.querySelectorAll('[data-ref]'),g=d.length,c,b;for(b=0;b','
    ','','{%this.renderContent(out,values)%}','
    '],resizeHandles:'all',shrinkWrap:2,toFrontOnShow:!0,synthetic:!1,tplWriteMode:'overwrite',ui:'default',uiCls:[],userCls:null,weight:null,allowDomMove:!0,autoGenId:!1,borderBoxCls:'x-border-box',componentLayoutCounter:0,contentPaddingProperty:'padding',deferLayouts:!1,frameSize:null,horizontalPosProp:'left',isComponent:!0,_isLayoutRoot:!1,layoutSuspendCount:0,liquidLayout:!1,maskOnDisable:!0,offsetsCls:'x-hidden-offsets',rendered:!1,rootCls:'x-body',scrollerCls:'x-scroll-scroller',scrollerSelector:'.x-scroll-scroller',_scrollFlags:{auto:{auto:{overflowX:'auto',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'auto',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'auto',overflowY:'scroll',x:!0,y:!0,both:!0}},'false':{auto:{overflowX:'hidden',overflowY:'auto',x:!1,y:!0,both:!1},'false':{overflowX:'hidden',overflowY:'hidden',x:!1,y:!1,both:!1},scroll:{overflowX:'hidden',overflowY:'scroll',x:!1,y:!0,both:!1}},scroll:{auto:{overflowX:'scroll',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'scroll',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'scroll',overflowY:'scroll',x:!0,y:!0,both:!0}},none:{overflowX:'',overflowY:'',x:!1,y:!1,both:!1}},_scrollableCfg:{x:{x:!0,y:!1},y:{x:!1,y:!0},horizontal:{x:!0,y:!1},vertical:{x:!1,y:!0},both:{x:!0,y:!0},'true':{x:!0,y:!0}},validIdRe:Ext.validIdRe,constructor:function(b){var a=this,e,j,i,h,g,c,d,f;b=b||{};if(b.initialConfig){if(b.isAction){a.baseAction=b}b=b.initialConfig}else {if(b.tagName||b.dom||Ext.isString(b)){b={applyTo:b,id:b.id||b}}}a.initialConfig=b;a.getId();a.protoEl=new Ext.util.ProtoElement();a.initConfig(b);if(a.scrollable==null){g=a.autoScroll;if(g){f=!!g}else {c=a.overflowX;d=a.overflowY;if(c||d){f={x:c&&c!=='hidden'?c:!1,y:d&&d!=='hidden'?d:!1}}}if(f){a.setScrollable(f)}}i=a.xhooks;if(i){delete a.xhooks;Ext.override(a,i)}a.mixins.elementCt.constructor.call(a);a.setupProtoEl();if(a.cls){a.initialCls=a.cls;a.protoEl.addCls(a.cls)}if(a.style){a.initialStyle=a.style;a.protoEl.setStyle(a.style)}a.renderData=a.renderData||{};a.initComponent();if(!a.preventRegister){Ext.ComponentManager.register(a)}a.mixins.state.constructor.call(a);a.addStateEvents('resize');h=a.getController();if(h){h.init(a)}if(a.plugins){for(e=0,j=a.plugins.length;eh){o=j;f=!0}if(e&&k>i){p=k;f=!0}if(d||e){g=a.el.getStyle('overflow');if(g!=='hidden'){a.el.setStyle('overflow','hidden')}}if(f){r=!Ext.isNumber(a.width);q=!Ext.isNumber(a.height);a.setSize(p,o);a.el.setSize(i,h);if(r){delete a.width}if(q){delete a.height}}if(e){c.width=k}if(d){c.height=j}}n=a.constrain;l=a.constrainHeader;if(n||l){a.constrain=a.constrainHeader=!1;m=b.callback;b.callback=function(){a.constrain=n;a.constrainHeader=l;if(m){m.call(b.scope||a,arguments)}if(g!=='hidden'){a.el.setStyle('overflow',g)}}}return a.mixins.animate.animate.apply(a,arguments)},applyScrollable:function(a,c){var b=this,f=b.rendered,e,d;if(a){if(a===!0||typeof a==='string'){e=b._scrollableCfg[a];a=e}if(c){c.setConfig(a);a=c}else {a=Ext.Object.chain(a);if(f){a.element=b.getOverflowEl();d=b.getScrollerEl();if(d){a.innerElement=d}}a.autoRefresh=!1;if(Ext.supports.touchScroll===1){a.translatable={translationMethod:'scrollparent'};a.indicators=!1}a=Ext.scroll.Scroller.create(a);a.component=b}}else {if(c){c.setConfig({x:!1,y:!1});c.destroy();a=null}}if(b.rendered&&!b.destroying&&!b.destroyed){if(a){b.getOverflowStyle()}else {b.scrollFlags=b._scrollFlags.none}b.updateLayout()}return a},beforeComponentLayout:function(){return !0},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(a,b,f){var d=this,c=null,e,g,h,i;if(a){if(Ext.isNumber(e=a[0])){f=b;b=a[1];a=e}else {if((e=a.x)!==undefined){f=b;b=a.y;a=e}}}if(d.constrain||d.constrainHeader){c=d.calculateConstrainedPosition(null,[a,b],!0);if(c){a=c[0];b=c[1]}}g=a!==undefined;h=b!==undefined;if(g||h){d.x=a;d.y=b;i=d.adjustPosition(a,b);c={x:i.x,y:i.y,anim:f,hasX:g,hasY:h}}return c},beforeShow:Ext.emptyFn,bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.getBubbleTarget()}return this},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},cloneConfig:function(a){a=a||{};var d=a.id||Ext.id(),c=Ext.applyIf(a,this.initialConfig),b;c.id=d;b=Ext.getClass(this);return new b(c)},destroy:function(){var a=this,d=a.renderSelectors,f=a.getConfig('viewModel',!0),g=a.getConfig('session',!0),b,c,e;if(!a.hasListeners.beforedestroy||a.fireEvent('beforedestroy',a)!==!1){a.isDestroying=a.destroying=!0;c=a.floatParent||a.ownerCt;if(a.floating){delete a.floatParent;if(a.zIndexManager){a.zIndexManager.unregister(a);a.zIndexManager=null}}a.removeBindings();a.beforeDestroy();a.destroyBindable();if(c&&c.remove){c.remove(a,!1)}a.stopAnimation();a.onDestroy();Ext.destroy(a.plugins);if(a.rendered){Ext.Component.cancelLayout(a,!0)}a.componentLayout=null;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}if(!a.preventRegister){Ext.ComponentManager.unregister(a)}a.mixins.state.destroy.call(a);if(a.floating){a.onFloatDestroy()}a.clearListeners();if(a.rendered){if(!a.preserveElOnDestroy){a.el.destroy()}a.el.component=null;a.mixins.elementCt.destroy.call(a);if(d){for(b in d){if(d.hasOwnProperty(b)){e=a[b];if(e){delete a[b];e.destroy()}}}}a.data=a.el=a.frameBody=a.rendered=a.afterRenderEvents=null;a.tpl=a.renderTpl=a.renderData=null;a.focusableContainer=a.container=a.scrollable=null}a.isDestroying=a.destroying=!1;a.callParent()}},disable:function(e,d){var a=this,b=a.focusableContainer,c=a.getInherited();if(!d){c.disabled=!0;a.savedDisabled=!0}if(a.maskOnDisable){c.disableMask=!0}if(!a.disabled){if(b){b.beforeFocusableChildDisable(a)}a.addCls(a.disabledCls);if(a.rendered){a.onDisable()}else {a.disableOnRender=!0}a.disabled=!0;if(e!==!0){a.fireEvent('disable',a)}if(b){b.onFocusableChildDisable(a)}}return a},doFireEvent:function(c,d,e){var a=this,b=a.mixins.observable.doFireEvent.call(a,c,d,e);if(b!==!1){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,d)}return b},enable:function(e,c){var a=this,b=a.focusableContainer,d=a.getInherited();if(!c){delete a.getInherited().disabled;a.savedDisabled=!1}if(a.maskOnDisable){delete d.disableMask}if(a.disabled){if(!(c&&d.hasOwnProperty('disabled'))){if(b){b.beforeFocusableChildEnable(a)}a.disableOnRender=!1;a.removeCls(a.disabledCls);if(a.rendered){a.onEnable()}a.disabled=!1;if(e!==!0){a.fireEvent('enable',a)}if(b){b.onFocusableChildEnable(a)}}}return a},findParentBy:function(b){var a;for(a=this.getRefOwner();a&&!b(a,this);a=a.getRefOwner()){}return a||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.constructor===a}):this.up(a)},findPlugin:function(c){var a,b=this.plugins,d=b&&b.length;for(a=0;a-1;e--){b=g[e];if(b.query){a=b.query(c);a=a[a.length-1];if(a){return a}}if(b.is(c)){return b}}return f.previousNode(c,!0)}return null},previousSibling:function(c){var e=this.ownerCt,b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.getAt(--a)}}}}return null},registerFloatingItem:function(b){var a=this;if(!a.floatingDescendants){a.floatingDescendants=new Ext.ZIndexManager(a)}a.floatingDescendants.register(b)},removeCls:function(c){var a=this,b=a.rendered?a.el:a.protoEl;b.removeCls.apply(b,arguments);return a},removeClsWithUI:function(a,k){var b=this,d=[],e=0,g=Ext.Array,i=g.remove,j=b.uiCls=g.clone(b.uiCls),f=b.activeUI,h,c;if(typeof a==='string'){a=a.indexOf(' ')<0?[a]:Ext.String.splitWords(a)}h=a.length;for(e=0;e1){arguments[0]=null;a.pendingShow=arguments}else {a.pendingShow=!0}}else {if(b&&a.isVisible()){if(a.floating){a.onFloatShow()}}else {if(a.fireEvent('beforeshow',a)!==!1){a.hidden=!1;delete this.getInherited().hidden;Ext.suspendLayouts();if(!b&&(a.autoRender||a.floating)){a.doAutoRender();b=a.rendered}if(b){a.beforeShow();Ext.resumeLayouts();a.onShow.apply(a,arguments);a.afterShow.apply(a,arguments)}else {Ext.resumeLayouts(!0)}}else {a.onShowVeto()}}}return a},showAt:function(b,c,d){var a=this;if(!a.rendered&&(a.autoRender||a.floating)){a.x=b;a.y=c;return a.show()}if(a.floating){a.setPosition(b,c,d)}else {a.setPagePosition(b,c,d)}return a.show()},showBy:function(b,d,c){var a=this;if(a.floating&&b){a.alignTarget=b;if(d){a.defaultAlign=d}if(c){a.alignOffset=c}a.show();if(!a.hidden){a.alignTo(b,d||a.defaultAlign,c||a.alignOffset)}}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=!0}},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(!1)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){d++;if(c.isComponent){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},update:function(b,i,k,j){var a=this,h=a.tpl&&!Ext.isString(b),g=a.getScrollable(),f=a.focusableContainer,e,c,d;if(h){a.data=b&&b.isEntity?b.getData(!0):b}else {a.html=Ext.isObject(b)?Ext.DomHelper.markup(b):b}if(a.rendered){e=a.getSizeModel();c=e.width.shrinkWrap||e.height.shrinkWrap;if(a.isContainer){d=a.layout.getRenderTarget();c=c||a.items.items.length>0}else {d=a.touchScroll?a.getScrollerEl():a.getTargetEl()}if(h){a.tpl[a.tplWriteMode](d,a.data||{})}else {d.setHtml(a.html,i,k,j||a)}if(c){a.updateLayout()}if(g){g.refresh(!0)}if(f){f.onFocusableChildUpdate(a)}}},setHtml:function(c,a,b){this.update(c,a,null,b)},applyData:function(a){this.update(a)},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},_asLayoutRoot:{isRoot:!0},_notAsLayoutRoot:{isRoot:!1},updateLayout:function(b){var a=this,e,d=a.lastBox,c=b&&b.isRoot;if(d){d.invalid=!0}if(!a.rendered||a.layoutSuspendCount||a.suspendLayout){return}if(a.hidden){Ext.Component.cancelLayout(a)}else {if(typeof c!=='boolean'){c=a.isLayoutRoot()}}if(c||!a.ownerLayout||!a.ownerLayout.onContentChange(a)){if(!a.isLayoutSuspended()){e=b&&b.hasOwnProperty('defer')?b.defer:a.deferLayouts;Ext.Component.updateLayout(a,e)}}},updateMaxHeight:function(b,a){this.changeConstraint(b,a,'min','max-height','height')},updateMaxWidth:function(b,a){this.changeConstraint(b,a,'min','max-width','width')},updateMinHeight:function(b,a){this.changeConstraint(b,a,'max','min-height','height')},updateMinWidth:function(b,a){this.changeConstraint(b,a,'max','min-width','width')},getAnchorToXY:function(d,a,c,b){return d.getAnchorXY(a,c,b)},getBorderPadding:function(){return this.el.getBorderPadding()},getLocalX:function(){return this.el.getLocalX()},getLocalXY:function(){return this.el.getLocalXY()},getLocalY:function(){return this.el.getLocalY()},getX:function(){return this.el.getX()},getXY:function(){return this.el.getXY()},getY:function(){return this.el.getY()},setLocalX:function(a){this.el.setLocalX(a)},setLocalXY:function(a,b){this.el.setLocalXY(a,b)},setLocalY:function(a){this.el.setLocalY(a)},setX:function(b,a){this.el.setX(b,a)},setXY:function(b,a){this.el.setXY(b,a)},setY:function(b,a){this.el.setY(b,a)},privates:{addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},addUIToElement:function(){var a=this,d=a.baseCls+'-'+a.ui,e,c,f,b;a.addCls(d);if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){f=a[c];if(f){f.addCls(d+b)}}}}},changeConstraint:function(b,g,f,c,d){var a=this,e=a[d];if(b!=null&&typeof e==='number'){a[d]=Math[f](e,b)}if(a.liquidLayout){if(b!=null){a.setStyle(c,b+'px')}else {if(g){a.setStyle(c,'')}}}if(a.rendered){a.updateLayout()}},constructPlugin:function(a){var b=this;if(typeof a==='string'){a=Ext.PluginManager.create({},a,b)}else {a=Ext.PluginManager.create(a,null,b)}return a},constructPlugins:function(){var d=this,a=d.plugins,c,b,e;if(a){c=[];c.processed=!0;if(!Ext.isArray(a)){a=[a]}for(b=0,e=a.length;bb.length&&a+'.'===d.substring(0,a.length+1)){b=a}}return b===''?undefined:b},setupPaths:function(e,b,c){var a=Ext.manifest,d;if(e&&b!==null){a=a&&a.paths;if(!a||b!==undefined){Ext.Loader.setPath(e,b===undefined?'app':b)}}if(c){for(d in c){if(c.hasOwnProperty(d)){Ext.Loader.setPath(d,c[d])}}}}});Ext.getNamespace=Ext.app.getNamespace});Ext.cmd.derive('Ext.util.CollectionKey',Ext.Base,{isCollectionKey:!0,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:!0},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(i,b){var j=this.map||this.getMap(),c=j[i],e=this.getCollection(),h=e.length,d,a,f,g;if(!c){return -1}if(b===undefined){b=-1}if(c instanceof Array){f=c;a=h;for(g=f.length;g-->0;){d=e.indexOf(f[g]);if(db){a=d}}if(a===h){return -1}}else {a=e.indexOf(c)}return a>b?a:-1},updateKey:function(e,d){var f=this,c=f.map,a,b;if(c){a=c[d];if(a instanceof Array){b=Ext.Array.indexOf(a,e);if(b>=0){if(a.length>2){a.splice(b,1)}else {c[d]=a[1-b]}}}else {if(a){delete c[d]}}f.add([e])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(a,b){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(g,h){var a=this,f=a.map,d=h.items,c=d.length,b,i,e;if(f){if(a.getUnique()&&cb?1:a0&&a.getAutoSort(),r=a.getSource(),q=0,g=!1,o=!1,e,l,k,m,b,d;if(r&&!r.updating){r.itemChanged(c,p,f,u)}else {l=a.getKey(c);if(s){b=a.indexOfKey(j?f:l);o=b<0;g=a.isItemFiltered(c);n=o!==g}if(n){if(g){q=[c];d=-1}else {m=[c];d=a.length}}else {if(v&&!g){if(!s){b=a.indexOfKey(j?f:l)}k=a.getSortFn();if(b!==-1){if(b&&k(i[b-1],i[b])>0){h=-1;d=Ext.Array.binarySearch(i,c,0,b,k)}else {if(b0){h=1;d=Ext.Array.binarySearch(i,c,b+1,k)}}if(h){m=[c]}}}}e={item:c,key:l,index:d,filterChanged:n,keyChanged:j,indexChanged:!!h,filtered:g,oldIndex:b,newIndex:d,wasFiltered:o,meta:u};if(j){e.oldKey=f}if(p){e.modified=p}a.beginUpdate();a.notify('beforeitemchange',[e]);if(j){a.updateKey(c,f)}if(m||q){a.splice(d,q,m)}if(h>0){e.newIndex--}else {if(h<0){e.oldIndex++}}a.notify(g?'filtereditemchange':'itemchange',[e]);a.endUpdate()}},remove:function(d){var a=this,c=a.decodeRemoveItems(arguments,0),b=a.length;a.splice(0,c);return b-a.length},removeAll:function(){var a=this,b=a.length;if(a.generation&&b){a.splice(0,b)}return a},removeAt:function(j,f){var a=this,e=a.length,i=Ext.Number,g=i.clipIndices(e,[j,f===undefined?1:f],i.Clip.COUNT),c=g[0],d=g[1]-c,h=d===1&&a.getAt(c),b;a.splice(c,d);b=a.length-e;return h&&b?h:b},removeByKey:function(b){var a=this.getByKey(b);if(!a||!this.remove(a)){return !1}return a},replace:function(a){var b=this.indexOf(a);if(b===-1){this.add(a)}else {this.insert(b,a)}},splice:function(K,E,L){var b=this,D=b.sorted&&b.getAutoSort(),F=b.map,o=b.items,r=b.length,n=E instanceof Array?b.decodeRemoveItems(E):null,G=!n,J=Ext.Number,I=J.clipIndices(r,[K,G?E:0],J.Clip.COUNT),m=I[0],v=I[1],x=v-m,p=b.decodeItems(arguments,2),h=p?p.length:0,c,A,C,d=m,k=b.indices||(h||n?b.getIndices():null),e=null,i=x?[m]:null,l=null,t=b.getSource(),j,B,z,a,u,g,w,f,s,q,y,H,v;if(t&&!t.updating){if(G){n=[];for(a=0;a1){if(!c.$cloned){p=c=c.slice(0)}b.sortData(c)}}for(a=0;a0;){f=b.getKey(n[a]);if((g=k[f])!==undefined){(i||(i=[])).push(g)}}if(!e&&!i){return b}b.beginUpdate();if(i){j=null;z=[];C={};if(i.length>1){i.sort(Ext.Array.numericSortFn)}for(a=0,q=i.length;aj.at+B.length){z.push(j={at:g,items:B=[],keys:s=[],map:C,next:j,replacement:e});if(e){e.replaced=j}}B.push(C[f]=u);s.push(f);if(g1&&g===m){--x;i[a--]=++m}}if(e){e.at=d}for(w=z.length;w-->0;){j=z[w];a=j.at;q=j.items.length;if(a+q1&&r){b.spliceMerge(c,l)}else {if(D){if(h>1){d=0;b.indices=k=null}else {d=H.findInsertionIndex(e.items[0],o,b.getSortFn())}}if(d===r){v=d;for(a=c.length-1;a>=0;--a){o[v+a]=c[a]}k=b.indices;if(k){for(a=0;a-1){c=e[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(l,i){var a=this,j=i.atItem,d=i.items,h=a.requestedIndex,c,b,e,f,g,k;if(!a.sorted){if(h!==undefined){b=h}else {if(j){b=a.indexOf(j);if(b===-1){b=a.findInsertIndex(d[0])}else {++b}}else {b=0}}}if(a.getAutoFilter()&&a.filtered){for(f=0,k=d.length;fc)){c=a}}return [c,b]},count:function(a){return a.length},extremes:function(k,j,l,i,f){var e=null,d=null,c,b,g,h,a;for(c=j;ch)){h=a;d=b}}return [d,e]},max:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[1]},maxItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[1]},min:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[0]},minItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[0]},sum:function(g,f,h,e,c){for(var a,d=0,b=f;b1){Ext.Array.sort(a,b.prioritySortFn)}},prioritySortFn:function(a,b){var c=a.observerPriority||0,d=b.observerPriority||0;return c-d},applyExtraKeys:function(e,g){var d=this,f=g||{},b,c,a;for(c in e){a=e[c];if(!a.isCollectionKey){b={collection:d};if(Ext.isString(a)){b.property=a}else {b=Ext.apply(b,a)}a=new Ext.util.CollectionKey(b)}else {a.setCollection(d)}f[c]=d[c]=a;a.name=c}return f},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,'Ext.util.Grouper')}return a},decodeItems:function(e,d){var g=this,a=d===undefined?e:e[d],b,f,c;if(!a||!a.$cloned){b=e.length>d+1||!Ext.isIterable(a);if(b){a=Ext.Array.slice(e,d);if(a.length===1&&a[0]===undefined){a.length=0}}f=g.getDecoder();if(f){if(!b){a=a.slice(0);b=!0}for(c=a.length;c-->0;){if((a[c]=f.call(g,a[c]))===!1){a.splice(c,1)}}}if(b){a.$cloned=!0}}return a},getIndices:function(){var a=this,c=a.indices,d=a.items,f=d.length,b,e;if(!c){a.indices=c={};++a.indexRebuilds;for(b=0;b0;if(d||c){b.filtered=c;b.onFilterChange(a)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==!1){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(c,b,d){var a=this.getSorters();a.addSort.apply(a,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify('beforesort',[a.getSorters(!1)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify('sort')},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(c,b,a){if(!b){b=this.items}if(!a){a=this.getSortFn()}return Ext.Array.binarySearch(b,c,a)},applySorters:function(a,b){if(a==null||a&&a.isSorterCollection){return a}if(a){if(!b){b=this.getSorters()}b.splice(0,b.length,a)}return b},createSortFn:function(){var d=this,b=d.getGrouper(),c=d.getSorters(!1),a=c?c.getSortFn():null;if(!b){return a}return function(d,e){var c=b.sort(d,e);if(!c&&a){c=a(d,e)}return c}},updateGrouper:function(c){var a=this,b=a.getGroups(),e=a.getSorters(),d;a.onSorterChange();a.grouped=!!c;if(c){if(a.getTrackGroups()){if(!b){b=new Ext.util.GroupCollection({itemRoot:a.getRootProperty()});b.$groupable=a;a.setGroups(b)}b.setGrouper(c);d=!0}}else {if(b){a.removeObserver(b);b.destroy()}a.setGroups(null)}if(!e.updating){a.onEndUpdateSorters(e)}if(d){b.onCollectionRefresh(a)}},updateSorters:function(b,c){var a=this;if(c){c.un('endupdate','onEndUpdateSorters',a)}if(b){b.on({endupdate:'onEndUpdateSorters',scope:a,priority:a.$endUpdatePriority});b.$sortable=a}a.onSorterChange();a.onEndUpdateSorters(b)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(b){var a=this,d=a.sorted,c=a.grouped&&a.getAutoGroup()||b&&b.length>0;if(d||c){a.sorted=!!c;a.onSortChange(b)}},removeObserver:function(b){var a=this.observers;if(a){Ext.Array.remove(a,b)}},spliceMerge:function(i,q){var f=this,r=f.map,k=i.length,g=0,n=f.items,m=n.length,h=[],c=0,a=[],p=f.getSortFn(),l,j,d,b,o,e;f.items=a;for(e=0;e1){h[c-2].next=h[c-1]}for(;e1){h[c-2].next=h[c-1]}a.push(b);for(j=e+1;j=0){break}a.push(b);l.push(b)}}for(;g0)}e=j.createAssociationStore(i,f,b,h);e.$source=q;if(!b&&(j.autoLoad||a)){n=!0}f[m]=e}if(a){if(n||e.isLoading()){e.on('load',function(h,i,e,g){d=[h,g];c=c||a.scope||f;if(e){Ext.callback(a.success,c,d)}else {Ext.callback(a.failure,c,d)}d.push(e);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)},null,{single:!0})}else {d=[e,null];c=c||a.scope||f;Ext.callback(a.success,c,d);d.push(!0);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)}}if(n&&!e.isLoading()){e.load()}return e},getAssociatedItem:function(b){var a=this.isMany?this.getStoreName():this.getInstanceName();return b[a]||null},onDrop:Ext.emptyFn,getReaderRoot:function(){var a=this;return a.associationKey||(a.associationKey=a.association.schema.getNamer().readerRoot(a.role))},getReader:function(){var b=this,a=b.reader,d=b.cls,c=!b.associationKey,e=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:e,useSimpleAccessors:c,type:b.defaultReaderType});a=b.reader=Ext.createByAlias('reader.'+a.type,a)}return a},getInstanceName:function(){var a=this;return a.instanceName||(a.instanceName=a.association.schema.getNamer().instanceName(a.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName='$old'+this.getInstanceName())},getStoreName:function(){var a=this;return a.storeName||(a.storeName=a.association.schema.getNamer().storeName(a.role))},constructReader:function(h){var b=this,a=b.getReader(),e=b.cls,g=!b.associationKey,f=b.getReaderRoot(),c,d;if(!a){d=e.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(f)}else {a=new h.self({model:e,useSimpleAccessors:g,rootProperty:f})}b.reader=a}return a},read:function(f,e,d,c){var a=this.constructReader(d),b=a.getRoot(e);if(b){return a.readRecords(b,c,this._internalReadOptions)}},getCallbackOptions:function(a,c,b){if(typeof a==='function'){a={callback:a,scope:c||b}}else {if(a){a=Ext.apply({},a);a.scope=c||a.scope||b}}return a},doGetFK:function(d,b,f){var i=this,l=i.cls,j=i.association.getFieldName(),h=i.getInstanceName(),a=d[h],m=b&&b.reload,e=a!==undefined&&!m,k=d.session,c,g;if(!e){if(k){c=d.get(j);if(c||c===0){e=k.peekRecord(l,c,!0)&&!m;a=k.getRecord(l,c,!1)}else {e=!0;d[h]=a=null}}else {if(j){c=d.get(j);if(!c&&c!==0){e=!0;d[h]=a=null}else {if(!a){a=l.createWithId(c)}}}else {e=!0}}}else {if(a){e=!a.isLoading()}}if(e){if(b){g=[a,null];f=f||b.scope||d;Ext.callback(b.success,f,g);g.push(!0);Ext.callback(b,f,g);Ext.callback(b.callback,f,g)}}else {d[h]=a;b=i.getCallbackOptions(b,f,d);a.load(b)}return a},doSetFK:function(a,c,e,l){var f=this,i=f.association.getFieldName(),h=f.getInstanceName(),b=a[h],d=f.inverse,j=d.setterName,m=a.session,k,g;if(c&&c.isEntity){if(b!==c){g=f.getOldInstanceName();a[g]=b;a[h]=c;if(b&&b.isEntity){b[d.getInstanceName()]=undefined}if(i){a.set(i,c.getId())}delete a[g];if(j){c[j](a)}}}else {k=a.changingKey&&!d.isMany||a.set(i,c);if(k&&b&&b.isEntity&&!b.isEqual(b.getId(),c)){a[h]=undefined;if(!d.isMany){b[d.getInstanceName()]=undefined}}}if(e){if(Ext.isFunction(e)){e={callback:e,scope:l||a}}return a.save(e)}}},1,0,0,0,0,0,[Ext.data.schema,'Role'],0);Ext.cmd.derive('Ext.data.schema.Association',Ext.Base,{isOneToOne:!1,isManyToOne:!1,isManyToMany:!1,owner:null,field:null,constructor:function(d){var a=this,c,b;Ext.apply(a,d);a.left=c=new a.Left(a,a.left);a.right=b=new a.Right(a,a.right);c.inverse=b;b.inverse=c},hasField:function(){return !!this.field},getFieldName:function(){var a=this.field;return a?a.name:''}},1,0,0,0,0,0,[Ext.data.schema,'Association'],0);Ext.cmd.derive('Ext.data.schema.OneToOne',Ext.data.schema.Association,{isOneToOne:!0,isToOne:!0,kind:'one-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',onDrop:function(a,c){var b=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(b){b[this.inverse.getInstanceName()]=null}},createGetter:function(){var a=this;return function(){return a.doGet(this)}},createSetter:function(){var a=this;return function(b){return a.doSet(this,b)}},doGet:function(a){var c=this.getInstanceName(),b=a[c],d=a.session;if(!b&&d){}return b||null},doSet:function(a,b){var d=this.getInstanceName(),e=a[d],c=this.inverse.setterName;if(e!==b){a[d]=b;if(c){b[c](a)}}return e},read:function(a,g,f,e){var c=this,d=c.callParent([a,g,f,e]),b;if(d){b=d[0];if(b){b[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=b;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(d,b,c){return a.doSetFK(this,d,b,c)}},onDrop:function(c,f){var b=this,e=b.association.field,a=b.getAssociatedItem(c),d;if(b.inverse.owner){if(f){d=c.get(e.name);if(d||d===0){a=f.getEntry(b.cls,d).record;if(a){a.drop()}}}else {if(a){a.drop()}}}if(e){c.set(e.name,null)}c[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(b,f,c){var a=this,e=b[a.getOldInstanceName()]||a.getAssociatedItem(b),h=c||c===0,d=a.getInstanceName(),g=a.cls;b.changingKey=!0;a.doSetFK(b,c);if(!h){b[d]=null}else {if(f&&g){b[d]=f.peekRecord(g,c)||undefined}}if(a.inverse.owner&&e){a.association.schema.queueKeyCheck(e,a)}b.changingKey=!1},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(a,o,n,m){var f=this,l=f.callParent([a,o,n,m]),b,d,g,c,k,h,j,i,e;if(l){b=l[0];d=f.association.field;if(d){g=d.name}c=a.session;e=a.data;if(b){if(c){k=c.getRefs(b,this.inverse,!0);i=k&&k[a.id]||e[g]===undefined}else {i=!0}if(i){if(d){j=e[g];h=b.id;if(j!==h){e[g]=h;if(c){c.updateReference(a,d,h,j)}}}b[f.inverse.getInstanceName()]=a;a[f.getInstanceName()]=b}delete e[f.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,'OneToOne'],0);Ext.cmd.derive('Ext.data.schema.ManyToOne',Ext.data.schema.Association,{isManyToOne:!0,isToOne:!0,kind:'many-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,onDrop:function(d,f){var b=this,e=b.getAssociatedItem(d),a,g,c,i,h;if(e){a=e.removeAll();if(a&&b.inverse.owner){for(c=0,g=a.length;c0){a=c[h];e=!a.isEqual(l,a.get(i));b=f?null:d;if(e!==f){a.changingKey=!0;a[k](b);a.changingKey=!1}else {a[j]=b}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',onDrop:function(a,c){var b=this.association.field;if(b){a.set(b.name,null)}a[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(c,b){var d=this.association.field,a;a=this.getSessionStore(c,b.get(d.name));if(a&&!a.contains(b)){a.add(b)}},onValueChange:function(b,f,d,l){var c=this,j=c.getInstanceName(),m=c.cls,i,g,a,h,n,e,k;if(!b.changingKey){i=d||d===0;if(!i){b[j]=null}if(f){a=c.getSessionStore(f,l);if(a){a.remove(b)}if(i){a=c.getSessionStore(f,d);if(a&&!a.isLoading()){a.add(b)}if(m){k=f.peekRecord(m,d)}b[j]=k||undefined}}else {g=b.joined;if(g){for(h=0,n=g.length;h=0){a.remove([b])}}else {if(b<0){d=a.getSession().getEntry(this.type,e);c=d&&d.record;if(c){a.add(c)}}}a.matrixUpdate=0}},adoptAssociated:function(e,d){var a=this.getAssociatedItem(e),c,b,f;if(a){a.setSession(d);this.onStoreCreate(a,d,e.getId());c=a.getData().items;for(b=0,f=c.length;b1){a[b]=this.apply('capitalize',a[b])}return a.join('')},getterName:function(a){var b=a.role;if(a&&a.isMany){return b}return 'get'+this.apply('capitalize',b)},inverseFieldRole:function(e,f,c,d){var a=this,b=a.apply(f?'uniRole':'multiRole',e),g=a.apply('pluralize',c),h=a.apply('undotted,pluralize',d);if(g.toLowerCase()!==h.toLowerCase()){b=c+a.apply('capitalize',b)}return b},manyToMany:function(c,e,d){var b=this,a=b.apply('undotted,capitalize,singularize',e)+b.apply('undotted,capitalize,pluralize',d);if(c){a=b.apply('capitalize',c+a)}return a},manyToOne:function(d,b,a,c){return this.apply('capitalize,singularize',a)+this.apply('capitalize',b)},matrixRole:function(a,c){var b=this.apply(a?'multiRole,capitalize':'multiRole',c);return a?a+b:b},oneToOne:function(d,b,a,c){return this.apply('undotted,capitalize,singularize',a)+this.apply('capitalize',b)},setterName:function(a){return 'set'+this.apply('capitalize',a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(b,c){var e=this,h=e.cache,i=h[c]||(h[c]={}),a=i[b],d,g,f;if(!a){if(b.indexOf(',')<0){a=e[b](c)}else {g=(f=b.split(',')).length;a=c;for(d=0;d=Math.max(a,b)},find:function(g,h,d,e,b,c){var a=!e,f=!!(a&&c);return this.getData().findIndex(g,h,d,a,f,!b)},findRecord:function(){var a=this,b=a.find.apply(a,arguments);return b!==-1?a.getAt(b):null},findExact:function(a,c,b){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(a),c)},this,b)},findBy:function(c,a,b){return this.getData().findIndexBy(c,a,b)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,a){var c=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==!1){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(c,a){var b;if(!a){a=this.createFiltersCollection();b=!0}a.add(c);if(b){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==!1){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(c,a){var b;if(!a){a=this.createSortersCollection();b=!0}a.add(c);if(b){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(a,c,b){if(Ext.isString(a)){a={property:a,value:c}}this.suppressNextFilter=!!b;this.getFilters().add(a);this.suppressNextFilter=!1},removeFilter:function(a,d){var b=this,c=b.getFilters();b.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){c.remove(a)}else {c.removeByKey(a)}b.suppressNextFilter=!1},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(!1),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(!1),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=!1},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(!1);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=!1},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(!1);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(b){if(b.getTransform()){return}var e=b.getProperty(),d=this.getModel(),c,a;if(d){c=d.getField(e);a=c?c.getSortType():null}if(a&&a!==Ext.identityFn){b.setTransform(a)}},beginUpdate:function(){if(!this.updating++){this.fireEvent('beginupdate')}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent('endupdate');this.onEndUpdate()}},getState:function(){var c=this,e=[],g=c.getFilters(),f=c.getGrouper(),a,d,b;c.getSorters().each(function(a){e[e.length]=a.getState();d=!0});if(c.statefulFilters&&c.saveStatefulFilters){d=!0;a=[];g.each(function(b){a[a.length]=b.getState()})}if(f){d=!0}if(d){b={};if(e.length){b.sorters=e}if(a){b.filters=a}if(f){b.grouper=f.getState()}}return b},applyState:function(b){var a=this,e=b.sorters,c=b.filters,d=b.grouper;if(e){a.getSorters().replaceAll(e)}if(c){a.saveStatefulFilters=!0;a.getFilters().replaceAll(c)}if(d){a.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.callParent();a.onDestroy()},sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else {a.forceLocalSort()}}else {a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(b,a){if(a){this.fireEvent('beforesort',this,a.getRange())}},onSorterEndUpdate:function(){var a=this,b;b=a.getSorters(!1);if(a.settingGroups||!b){return}b=b.getRange();if(b.length){if(a.getRemoteSort()){a.load({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('sort',a,b)}}else {a.fireEvent('sort',a,b)}},onFilterEndUpdate:function(){var a=this,b=a.suppressNextFilter;if(a.getRemoteFilter()){a.currentPage=1;if(!b){a.load()}}else {if(!b){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}if(a.trackStateChanges){a.saveStatefulFilters=!0}a.fireEvent('filterchange',a,a.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else {this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(b,d){var a=this,c=a.getSorters(!1),e=b||c&&c.length;if(b&&typeof b==='string'){b={property:b,direction:d||a.getGroupDir()}}a.settingGroups=!0;a.getData().setGrouper(b);delete a.settingGroups;if(e){if(a.getRemoteSort()){a.load({scope:a,callback:a.fireGroupChange})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireGroupChange()}}else {a.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){this.fireEvent('groupchange',this,this.getGrouper())}},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b='';if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?'on':'un']('endupdate',this.onFilterEndUpdate,this)}},onRemoteSortSet:function(c,b){var a=this;if(c){c[b?'on':'un']('endupdate',a.onSorterEndUpdate,a);a.getData()[b?'un':'on']('beforesort',a.onBeforeCollectionSort,a)}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data,'AbstractStore'],0);Ext.cmd.derive('Ext.data.Error',Ext.Base,{isError:!0,$configPrefixed:!1,config:{field:null,message:''},constructor:function(a){this.initConfig(a);this.msg=this.message}},1,0,0,0,0,0,[Ext.data,'Error'],0);Ext.cmd.derive('Ext.data.ErrorCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.data.Errors',init:function(d){var b=this,h=d.fields,k=d.data,g,a,l,c,i,f,j,e;for(c=0,i=h.length;c]+>/gi,asText:function(a){return a!=null?String(a).replace(this.stripTagsRe,''):'\x00'},asUCText:function(a){return a!=null?String(a).toUpperCase().replace(this.stripTagsRe,''):'\x00'},asUCString:function(a){return a!=null?String(a).toUpperCase():'\x00'},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(b){var a=parseFloat(String(b).replace(this.stripCommasRe,''));return isNaN(a)?0:a},asInt:function(b){var a=parseInt(String(b).replace(this.stripCommasRe,''),10);return isNaN(a)?0:a}},0,0,0,0,0,0,[Ext.data,'SortTypes'],0);Ext.cmd.derive('Ext.data.validator.Validator',Ext.Base,{isValidator:!0,type:'base',statics:{all:{},register:function(a,c){var b=this.all;b[a.toUpperCase()]=b[a.toLowerCase()]=b[a]=c.prototype}},onClassExtended:function(b,a){if(a.type){Ext.data.validator.Validator.register(a.type,b)}},constructor:function(a){if(typeof a==='function'){this.fnOnly=!0;this.validate=a}else {this.initConfig(a)}},validate:function(){return !0},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},1,0,0,0,['data.validator.base'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.validator,'Validator'],function(){this.register(this.prototype.type,this)});Ext.cmd.derive('Ext.data.field.Field',Ext.Base,{alternateClassName:'Ext.data.Field',aliasPrefix:'data.field.',type:'auto',factoryConfig:{defaultProperty:'name'},isDataField:!0,isField:!0,allowBlank:!0,allowNull:!1,critical:!1,defaultInvalidMessage:'This field is invalid',defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,unique:!1,rank:null,stripRe:/[\$,%]/g,calculated:!1,evil:!1,identifier:!1,onClassExtended:function(f,d){var b=d.sortType,c=f.prototype,e=c.validators,a=d.validators;if(b&&Ext.isString(b)){c.sortType=Ext.data.SortTypes[b]}if(a){if(!Ext.isArray(a)){a=[a]}delete d.validators;if(e){a=e.concat(a)}c.validators=a}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var a=this,n=a.calculateRe,c,l,f,h,b,j,e,m,k,i,g;if(d){if(Ext.isString(d)){a.name=d}else {g=d.validators;if(g){delete d.validators;a.instanceValidators=g}Ext.apply(a,d)}}if(!a.allowNull){a.allowNull=!!a.reference}c=a.calculate;b=a.depends;if(c){a.convert=a.doCalculate;if(!b){if(!(b=c.$depends)){j={};k=c.toString();c.$depends=b=[];e=a.argumentNamesRe.exec(k);m=e?e[1]:'data';while(e=n.exec(k)){if(m===e[1]&&!j[i=e[2]]){j[i]=1;b.push(i)}}}a.depends=b}}f=a.defaultValue;if(a.convert){a.calculated=l=a.convert.length>1;a.evil=l&&!b}if(a.persist===null){a.persist=!c}h=a.sortType;if(!a.sortType){a.sortType=Ext.data.SortTypes.none}else {if(Ext.isString(h)){a.sortType=Ext.data.SortTypes[h]}}if(b&&typeof b==='string'){a.depends=[b]}a.cloneDefaultValue=f!==undefined&&(Ext.isDate(f)||Ext.isArray(f)||Ext.isObject(f))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},compileValidators:function(){var a=this;a._validators=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var d=a.length,e=this._validators,c,b;for(c=0;c0){(u=p[v]).dirty=!0;d=d?Math.min(d,u.rank):u.rank}if(!b||b.persist){if(f&&f.hasOwnProperty(c)){if(!y||o.isEqual(f[c],h)){delete f[c];a.dirty=-1}}else {if(y){if(!f){a.modified=f={}}a.dirty=!0;f[c]=j}}}if(c===a.idField.name){D=!0;z=j;s=h}}if(!d){break}b=l[d-1];b.dirty=!1;if(n){delete g[i]}else {g=a._singleProp;n=!0}i=b.name;g[i]=t[i];C=!0;for(;d0;){d=(b=g[i]).name;if(!(d in f)){c=h[d];if(j&&b.serialize){c=b.serialize(c,a)}f[d]=c}}}if(n){a.getAssociatedData(f,e)}return f},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(a){a=Ext.apply({},a);var b=this,d=a.scope||b,g=b.getProxy(),f=a.callback,c=b.loadOperation,h=b.getId(),e;if(c){e=c.extraCalls;if(!e){e=c.extraCalls=[]}e.push(a);return c}a.id=h;a.recordCreator=function(e,f,c){var d=b.session;if(c){c.recordCreator=d?d.recordCreator:null}b.set(e,b._commitOptions);return b};a.internalCallback=function(e){var h=e.wasSuccessful()&&e.getRecords().length>0,l=b.loadOperation,i=l.extraCalls,c=[b,e],j=[b,e,h],g,k;b.loadOperation=null;if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(f,d,j);if(i){for(g=0,k=i.length;g0;){b=i[a];if(b in e){delete e[b];delete j[b]}}for(a=0,h=f.length;a=a.getTotal()){a.setConfig({success:!1,records:[],total:0})}else {a.setRecords(Ext.Array.slice(d,e,e+i))}}b.setCompleted()}},clear:Ext.emptyFn},0,0,0,0,['proxy.memory'],0,[Ext.data.proxy,'Memory',Ext.data,'MemoryProxy'],0);Ext.cmd.derive('Ext.data.ProxyStore',Ext.data.AbstractStore,{config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:!1,batchUpdateMode:'operation',sortOnLoad:!0,trackRemoved:!0,asynchronousLoad:undefined},onClassExtended:function(e,d,b){var c=d.model,a;if(typeof c==='string'){a=b.onBeforeCreated;b.onBeforeCreated=function(){var g=this,f=arguments;Ext.require(c,function(){a.apply(g,f)})}}},implicitModel:'Ext.data.Model',autoSyncSuspended:0,constructor:function(b){var a=this;a.removed=[];Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(a.getAsynchronousLoad()===!1){a.flushLoad()}},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else {this.getFields();a=this.getModel()||this.createImplicitModel()}return a},applyProxy:function(a){var b=this.getModel();if(a!==null){if(a){if(a.isProxy){a.setModel(b)}else {if(Ext.isString(a)){a={type:a,model:b}}else {if(!a.model){a=Ext.apply({model:b},a)}}a=Ext.createByAlias('proxy.'+a.type,a);a.autoCreated=!0}}else {if(b){a=b.getProxy()}}if(!a){a=Ext.createByAlias('proxy.memory');a.autoCreated=!0}}return a},applyState:function(b){var a=this;Ext.data.AbstractStore.prototype.applyState.call(this,b);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(b,a){this.fireEvent('metachange',this,a)},create:function(f,a){var b=this,e=b.getModel(),d=new e(f),c;a=Ext.apply({},a);if(!a.records){a.records=[d]}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('create',a);return c.execute()},read:function(){return this.load.apply(this,arguments)},update:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getUpdatedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('update',a);return c.execute()},onProxyWrite:function(a){var b=this,c=a.wasSuccessful(),d=a.getRecords();switch(a.getAction()){case 'create':b.onCreateRecords(d,a,c);break;case 'update':b.onUpdateRecords(d,a,c);break;case 'destroy':b.onDestroyRecords(d,a,c);break;}if(c){b.fireEvent('write',b,a);b.fireEvent('datachanged',b)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(c,b,a){if(a){this.cleanRemoved()}},erase:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getRemovedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('destroy',a);return c.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(e,f){var a=this,c=e.operations,d=c.length,b;if(a.batchUpdateMode!=='operation'){a.suspendEvents();for(b=0;b0){b.create=f;c=!0}if(g.length>0){b.update=g;c=!0}if(e.length>0){b.destroy=e;c=!0}if(c&&a.fireEvent('beforesync',b)!==!1){a.isSyncing=!0;d=d||{};a.proxy.batch(Ext.apply(d,{operations:b,listeners:a.getBatchListeners()}))}return a},getBatchListeners:function(){var a=this,b={scope:a,exception:a.onBatchException,complete:a.onBatchComplete};if(a.batchUpdateMode==='operation'){b.operationcomplete=a.onBatchOperationComplete}return b},save:function(){return this.sync.apply(this,arguments)},load:function(b){var a=this;if(typeof b==='function'){b={callback:b}}else {b=b?Ext.Object.chain(b):{}}a.pendingLoadOptions=b;if(a.getAsynchronousLoad()){if(!a.loadTimer){a.loadTimer=Ext.asap(a.flushLoad,a)}}else {a.flushLoad()}return a},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b;a.clearLoadTask();if(!c){return}a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}b=Ext.apply({internalScope:a,internalCallback:a.onProxyLoad,scope:a},c);a.lastOptions=b;b=a.createOperation('read',b);if(a.fireEvent('beforeload',a,b)!==!1){a.onBeforeLoad(b);a.loading=!0;b.execute()}},reload:function(a){var b=Ext.apply({},a,this.lastOptions);return this.load(b)},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,onDestroy:function(){var a=this,b=a.getProxy();a.clearLoadTask();a.getData().destroy();a.data=null;a.setProxy(null);if(b.autoCreated){b.destroy()}a.setModel(null)},hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){Ext.asapCancel(this.loadTimer);this.pendingLoadOptions=this.loadTimer=null},cleanRemoved:function(){var a=this.getRawRemovedRecords(),c,b;if(a){for(b=0,c=a.length;b-1},each:function(f,e){var c=this.data.items,d=c.length,b,a;for(a=0;a0){if(u){f=0;if(d.length>1&&h){f=1}b[i]=d[f].getProperty();b[t]=d[f].getDirection()}else {b[i]=a.encodeSorters(d)}}if(l&&j&&j.length>0){b[l]=a.encodeFilters(j)}return b},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format('{0}={1}',b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(a){var b;if(a){b=a.getUrl()||this.getApi()[a.getAction()]}return b?b:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a){},afterRequest:Ext.emptyFn,destroy:function(){Ext.data.proxy.Proxy.prototype.destroy.call(this);Ext.destroy(this.getReader(),this.getWriter());this.reader=this.writer=null}},0,0,0,0,['proxy.server'],0,[Ext.data.proxy,'Server',Ext.data,'ServerProxy'],0);Ext.cmd.derive('Ext.data.proxy.Ajax',Ext.data.proxy.Server,{alternateClassName:['Ext.data.HttpProxy','Ext.data.AjaxProxy'],isAjaxProxy:!0,defaultActionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'},config:{binary:!1,headers:undefined,paramsAsJson:!1,withCredentials:!1,useDefaultXhrHeader:!0,username:null,password:null,actionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'}},doRequest:function(e){var a=this,g=a.getWriter(),b=a.buildRequest(e),f=a.getMethod(b),c,d;if(g&&e.allowWrite()){b=g.write(b)}b.setConfig({binary:a.getBinary(),headers:a.getHeaders(),timeout:a.getTimeout(),scope:a,callback:a.createRequestCallback(b,e),method:f,useDefaultXhrHeader:a.getUseDefaultXhrHeader(),disableCaching:!1});if(f.toUpperCase()!=='GET'&&a.getParamsAsJson()){d=b.getParams();if(d){c=b.getJsonData();if(c){c=Ext.Object.merge({},c,d)}else {c=d}b.setJsonData(c);b.setParams(undefined)}}if(a.getWithCredentials()){b.setWithCredentials(!0);b.setUsername(a.getUsername());b.setPassword(a.getPassword())}return a.sendRequest(b)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(d){var a=this.getActionMethods(),b=d.getAction(),c;if(a){c=a[b]}return c||this.defaultActionMethods[b]},createRequestCallback:function(b,c){var a=this;return function(f,e,d){if(b===a.lastRequest){a.lastRequest=null}a.processResponse(e,c,b,d)}},destroy:function(){this.lastRequest=null;Ext.data.proxy.Server.prototype.destroy.call(this)}},0,0,0,0,['proxy.ajax'],0,[Ext.data.proxy,'Ajax',Ext.data,'HttpProxy',Ext.data,'AjaxProxy'],0);Ext.cmd.derive('Ext.data.reader.Json',Ext.data.reader.Reader,{alternateClassName:'Ext.data.JsonReader',config:{record:null,metaProperty:'metaData',useSimpleAccessors:!1,preserveRawData:!1},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},readRecords:function(a,e,d){var b=this,c;if(b.getMeta){c=b.getMeta(a);if(c){b.onMetaChange(c)}}else {if(a.metaData){b.onMetaChange(a.metaData)}}return Ext.data.reader.Reader.prototype.readRecords.call(this,a,e,d)},getResponseData:function(b){var a;try{return Ext.decode(b.responseText)}catch(c){a=this.createReadError(c.message);Ext.Logger.warn('Unable to parse the JSON returned by the server');this.fireEvent('exception',this,b,a);return a}},buildExtractors:function(){var a=this,b,c;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){b=a.getMetaProperty();c=a.getRootProperty();if(c){a.getRoot=a.getAccessor(c)}else {a.getRoot=Ext.identityFn}if(b){a.getMeta=a.getAccessor(b)}}},extractData:function(a,f){var e=this.getRecord(),d=[],c,b;if(e){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b1||e&&!g){b+=d}else {if(k){i=!1;if(l){++e}else {if(g){--e;i=!0}}if(b){if(i){b='['+b+']'}else {b='.'+b}j+=b;m.push(''+j);b=''}}}}f=m.join(' && ');f=Ext.functionFactory('raw','return '+f)}return f}}(),createFieldAccessor:function(b){var e=this,a=b.mapping,c=a||a===0,d=c?a:b.name;if(c){if(typeof d==='function'){return function(a){return b.mapping(a,e)}}else {return e.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?'simple':'';return this.$className+a+b},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot}}},0,0,0,0,['reader.json'],0,[Ext.data.reader,'Json',Ext.data,'JsonReader'],0);Ext.cmd.derive('Ext.data.writer.Json',Ext.data.writer.Writer,{alternateClassName:'Ext.data.JsonWriter',config:{rootProperty:undefined,encode:!1,allowSingle:!0,expandData:!1},getExpandedData:function(f){var h=f.length,g=0,a,c,b,d,e,i=function(c,b){var a={};a[c]=b;return a};for(;g0){e=a[c];for(;d>0;d--){e=i(b[d],e)}a[b[0]]=a[b[0]]||{};Ext.Object.merge(a[b[0]],e);delete a[c]}}}}return f},writeRecords:function(b,a){var c=this,e=c.getRootProperty(),d,g,f;if(c.getExpandData()){a=c.getExpandedData(a)}if(c.getAllowSingle()&&a.length===1){a=a[0];g=!0}f=this.getTransform();if(f){a=f(a,b)}if(c.getEncode()){if(e){b.setParam(e,Ext.encode(a))}else {}}else {if(g||a&&a.length){d=b.getJsonData()||{};if(e){d[e]=a}else {d=a}b.setJsonData(d)}}return b}},0,0,0,0,['writer.json'],0,[Ext.data.writer,'Json',Ext.data,'JsonWriter'],0);Ext.cmd.derive('Ext.util.Group',Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001},0,0,0,0,0,0,[Ext.util,'Group'],0);Ext.cmd.derive('Ext.util.SorterCollection',Ext.util.Collection,{isSorterCollection:!0,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(b){var a=this;a.sortFn=Ext.util.Sorter.createComparator(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeSorter)},addSort:function(b,c,d){var a=this,f,j,k,g,h,i,e;if(!b){a.beginUpdate();a.endUpdate()}else {g=a.getOptions();if(b instanceof Array){e=b;d=c;c=null}else {if(Ext.isString(b)){if(!(i=a.get(b))){e=[{property:b,direction:c||g.getDefaultSortDirection()}]}else {e=[i]}}else {if(Ext.isFunction(b)){e=[{sorterFn:b,direction:c||g.getDefaultSortDirection()}]}else {e=[b];d=c;c=null}}}d=a._sortModes[d||'replace'];h=a.getAt(0);f=a.length;j=d.append?f:0;a.beginUpdate();a.splice(j,d.replace?f:0,e);if(d.multi){f=a.length;k=g.getMultiSortLimit();if(f>k){a.removeAt(k,f)}}if(i&&c){i.setDirection(c)}else {if(j===0&&h&&h===a.getAt(0)){h.toggle()}}a.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(d){var c=this.items,e=c.length,a,b;for(a=0;ad+1||!Ext.isIterable(b)){b=Ext.Array.slice(e,d)}var j=k.items,l=b.length,c=[],f,g,i,a,h;for(f=0;f0;){g=j[i];if(g.getSorterFn()===a){c.push(g)}}}}}}b=c;b.$cloned=!0}return b},getOptions:function(){return this.$sortable||this}},1,0,0,0,0,0,[Ext.util,'SorterCollection'],0);Ext.cmd.derive('Ext.util.FilterCollection',Ext.util.Collection,{isFilterCollection:!0,$filterable:null,filterFn:null,constructor:function(b){var a=this;a.filterFn=Ext.util.Filter.createFilterFn(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},decodeFilter:function(b){var d=this.getOptions(),c=d.getRootProperty(),a;if(b.isFilter){if(!b.getRoot()){b.setRoot(c)}}else {a={root:c};if(Ext.isFunction(b)){a.filterFn=b}else {a=Ext.apply(a,b);if(a.fn){a.filterFn=a.fn;delete a.fn}if(Ext.util.Filter.isInvalid(a)){return !1}}b=new Ext.util.Filter(a)}return b},decodeRemoveItems:function(f,e){var p=this,b=e===undefined?f:f[e];if(!b.$cloned){if(f.length>e+1||!Ext.isIterable(b)){b=Ext.Array.slice(f,e)}var k=p.items,o=b.length,h=[],a,g,l,n,m,c,d,j,i;for(g=0;g0;){c=k[j];d=!1;if(m){d=c.getProperty()===a}else {if(l){d=c.getFilterFn()===a}else {if(n){d=c.getProperty()===a.property&&c.getValue()===a.value}}}if(d){h.push(c)}}}}b=h;b.$cloned=!0}return b},getOptions:function(){return this.$filterable||this}},1,0,0,0,0,0,[Ext.util,'FilterCollection'],0);Ext.cmd.derive('Ext.util.GroupCollection',Ext.util.Collection,{isGroupCollection:!0,config:{grouper:null,itemRoot:null},observerPriority:-100,onCollectionAdd:function(b,a){this.addItemsToGroups(b,a.items)},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){var c=a.item;if(!a.indexChanged){this.syncItemGrouping(b,c,b.getKey(c),a.oldKey,a.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(a){this.removeAll();this.addItemsToGroups(a,a.items)},onCollectionRemove:function(k,j){var d=this,g=d.changeDetails,b,h,a,e,i,c,f;if(g){f=g.item;a=d.findGroupForItem(f);b=[];if(a){b.push({group:a,items:[f]})}}else {b=d.groupItems(k,j.items,!1)}for(e=0,i=b.length;e0&&i.getSorters().getCount()===0){k=i.indexOf(a.items[0]);if(o-1){b=[c];d=1}else {d=0}}else {b=[];for(g=0,d=c.length;g=0;a--){d=c[a];d.reject();if(!g){b.insert(d.removedFrom||0,d)}}if(g){h.setAutoSort(i);b.add(c)}c.length=0}b.endUpdate();Ext.resumeLayouts(!0)},onDestroy:function(){var a=this,c=a.loadTask,d=a.getData(),b=d.getSource();a.clearData();Ext.data.ProxyStore.prototype.onDestroy.call(this);a.setSession(null);a.observers=null;if(c){c.cancel();a.loadTask=null}if(b){b.destroy()}},privates:{fetch:function(a){a=Ext.apply({},a);this.setLoadOptions(a);var b=this.createOperation('read',a);b.execute()},onBeforeLoad:function(a){this.callObservers('BeforeLoad',[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,a,b)},onRemoteSortSet:function(b,a){var c=this.getData();if(b){c.setSorters(a?null:b)}c.setAutoGroup(!a);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,a)},isMoving:function(a,f){var c=this.moveMap,b=0,e,d;if(c){if(a){if(Ext.isArray(a)){for(d=0,e=a.length;d-1}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Store'],0);Ext.cmd.derive('Ext.app.route.Queue',Ext.Base,{queue:null,token:null,constructor:function(a){Ext.apply(this,a);this.queue=new Ext.util.MixedCollection()},queueAction:function(a,b){this.queue.add({route:a,args:b})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var c=this.queue,a=c.removeAt(0),b;if(a){b=a&&a.route;b.execute(this.token,a.args,this.onActionExecute,this)}},onActionExecute:function(a){if(a){this.clearQueue()}else {this.runQueue()}}},1,0,0,0,0,0,[Ext.app.route,'Queue'],0);Ext.cmd.derive('Ext.app.route.Route',Ext.Base,{action:null,conditions:null,controller:null,allowInactive:!1,url:null,before:null,caseInsensitive:!1,matcherRegex:null,paramMatchingRegex:null,paramsInMatchString:null,constructor:function(c){var a=this,b;Ext.apply(a,c,{conditions:{}});b=a.url;a.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);a.paramsInMatchString=b.match(a.paramMatchingRegex)||[];a.matcherRegex=a.createMatcherRegex(b)},recognize:function(b){var a=this,d=a.controller,e,c;if((a.allowInactive||d.isActive())&&a.recognizes(b)){e=a.matchesFor(b);c=b.match(a.matcherRegex);c.shift();return Ext.applyIf(e,{controller:d,action:a.action,historyUrl:b,args:c})}return !1},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(h,d,f,g){var e=d.args||[],a=this.before,c=this.controller,b=this.createCallback(d,f,g);if(a){e.push(b);if(Ext.isString(a)){a=this.before=c[a]}if(a){a.apply(c,e)}}else {b.resume()}},matchesFor:function(f){var b={},d=this.paramsInMatchString,c=f.match(this.matcherRegex),a=0,e=d.length;c.shift();for(;a0){c=a.substring(0,d);b=a.substring(d+1)+'.'+c}else {if(a.indexOf('.')>0&&(Ext.ClassManager.isCreated(a)||this.hasRegisteredPrefix(a))){b=a}else {if(f){b=f+'.'+g+'.'+(e?e+'.'+a:a);c=a}else {b=a}}}return {absoluteName:b,shortName:c}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:!0,moduleClassName:null},onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,i){var g=Ext.app.Controller,h=[],e,f;f=j.prototype;e=g.resolveNamespace(j,i);if(e){f.$namespace=e}g.processDependencies(f,h,e,'model',i.models);g.processDependencies(f,h,e,'view',i.views);g.processDependencies(f,h,e,'store',i.stores);g.processDependencies(f,h,e,'controller',i.controllers);Ext.require(h,Ext.Function.pass(b,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.apply(this,arguments)},normalizeRefs:function(a){var c=this,b=[];if(a){if(Ext.isObject(a)){Ext.Object.each(a,function(d,c){if(Ext.isString(c)){c={selector:c}}c.ref=d;b.push(c)})}else {if(Ext.isArray(a)){b=Ext.Array.merge(b,a)}}}a=c.refs;if(a){c.refs=null;a=c.normalizeRefs(a);if(a){b=Ext.Array.merge(b,a)}}return b},getRefMap:function(){var e=this,a=e._refMap,b,d,f,c;if(!a){b=e.getRefs();a=e._refMap={};if(b){for(c=0,f=b.length;c0){d=c[b];a.map[a.getKey(d)]=b}++a.generation}}},1,0,0,0,0,0,[Ext.util,'Bag'],0);Ext.cmd.derive('Ext.util.Scheduler',Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:!1,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var a=this,b=a.items;if(b===a.firing){a.items=b=b.clone()}c.id=c.id||++a.nextId;c.scheduler=a;b.add(c);if(!a.sortMap){a.orderedItems=null}},remove:function(c){var a=this,b=a.items;if(a.destroyed){return}if(b===a.firing){a.items=b=b.clone()}if(c.scheduled){a.unscheduleItem(c);c.scheduled=!1}b.remove(c);a.orderedItems=null},sort:function(){var a=this,b=a.items,f={},e=a.getPreSort(),c,d;a.orderedItems=[];a.sortMap=f;if(e){b.sort(e)}b=b.items;for(c=0;c0;){c[d].stub=b}}return b},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return !0}}return !1},onSchedule:function(){for(var c,e,b,a,d=this.parent;d;d=d.parent){a=d.bindings;if(a){for(c=0,e=a.length;c '+a.binding.getFullName()+')')},getDataObject:function(){var a=this.binding;return a&&a.getDataObject()},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isLoading:function(){var a=this.binding;return a?a.isLoading():!1},link:function(c,b){var a=this,d=a.binding;if(d){d.destroy()}b=a.target=b||a.owner;a.linkDescriptor=c;a.binding=b.bind(c,a.onChange,a);a.binding.deep=!0},onChange:function(){this.invalidate(!0)},react:function(){var a=this,b=a.owner.linkData;b[a.name]=a.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var c=this,b=Ext.app.bind.Stub.prototype.collect.call(this),a=c.binding?1:0;return b+a},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}},0,0,0,0,0,0,[Ext.app.bind,'LinkStub'],0);Ext.cmd.derive('Ext.app.bind.RootStub',Ext.app.bind.AbstractStub,{isRootStub:!0,depth:0,createRootChild:function(a,j){var e=this,d=e.owner,i=d.getData(),g=e.children,c=g&&g[a],f=c?null:e,h,b;if(j||i.hasOwnProperty(a)||!(h=d.getParent())){b=new Ext.app.bind.Stub(d,a,f)}else {b=new Ext.app.bind.LinkStub(d,a,c?null:f);b.link('{'+a+'}',h)}if(c){c.graft(b)}return b},createStubChild:function(a){return this.createRootChild(a,!0)},descend:function(a,g){var f=this,d=f.children,b=g||0,e=a[b++],c=d&&d[e]||f.createRootChild(e);if(b0;){if(a[b].isLoading()){return !0}}return !1},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var b=this.bindings,d=b.length,a,c;for(a=0;a-1}}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Controller'],0);Ext.cmd.derive('Ext.data.PageMap',Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:''},clear:function(b){var a=this;a.pageMapGeneration=(a.pageMapGeneration||0)+1;a.indexMap={};Ext.util.LruCache.prototype.clear.call(this,b)},forEach:function(k,f){var d=this,b=Ext.Object.getKeys(d.map),h=b.length,j=d.getPageSize(),a,c,e,g,i;for(a=0;ad},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(l,f){f--;if(!this.hasRange(l,f)){Ext.raise('PageMap asked for range which it does not have')}var c=this,k=Ext.Array,e=c.getPageSize(),g=c.getPageFromRecordIndex(l),h=c.getPageFromRecordIndex(f),m=(g-1)*e,n=h*e-1,a=g,j=[],d,i,b;for(;a<=h;a++){if(a===g){d=l-m;b=d>0}else {d=0;b=!1}if(a===h){i=e-(n-f);b=b||i=g){b=g-1;c=Math.max(b-h,0)}if(a.rangeCached(c,Math.min(b,a.totalCount))){a.loading=!1;f.un('pageadd',e);l=f.getRange(c,b+1);a.fireEvent('load',a,l,!0);a.fireEvent('refresh',a)}};h=Math.ceil((a.getLeadingBufferZone()+a.getTrailingBufferZone())/2);if(a.lastRequestStart&&a.preserveScrollOnReload){c=a.lastRequestStart;b=a.lastRequestEnd;i=a.getTotalCount()}else {c=d.start||0;b=c+(d.count||a.getPageSize())-1}f.clear(!0);delete a.totalCount;c=Math.max(c-h,0);b=Math.min(b+h,i);j=a.getPageFromRecordIndex(c);k=a.getPageFromRecordIndex(b);a.loading=!0;d.waitForReload=e;f.on('pageadd',e);for(g=j;g<=k;g++){a.prefetchPage(g,d)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},clearData:function(c){var b=this,a=b.getData();if(a){a.clear()}},getCount:function(){return this.totalCount||0},getRange:function(c,b,f){var a=this,k=a.totalCount-1,m=a.lastRequestStart,l=[],h=a.getData(),g,d,e,i,j;f=Ext.apply({prefetchStart:c,prefetchEnd:b},f);b=b>=a.totalCount?k:b;d=c===0?0:c-1;e=b===k?b:b+1;a.lastRequestStart=c;a.lastRequestEnd=b;if(a.rangeCached(d,e)){a.onRangeAvailable(f);l=h.getRange(c,b+1)}else {a.fireEvent('cachemiss',a,c,b);i=a.getPageFromRecordIndex(d);j=a.getPageFromRecordIndex(e);g=function(l,k,m){if(k>=i&&k<=j&&a.rangeCached(d,e)){a.fireEvent('cachefilled',a,c,b);h.un('pageadd',g);a.onRangeAvailable(f)}};h.on('pageadd',g);a.prefetchRange(c,b)}a.primeCache(c,b,c-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var a=this,c;if(b&&typeof b==='string'){c=a.grouper;if(!c){a.grouper=new Ext.util.Grouper({property:b,direction:d||'ASC',root:'data'})}else {if(d===undefined){c.toggle()}else {c.setDirection(d)}}}else {a.grouper=b?a.getSorters().decodeSorter(b,'Ext.util.Grouper'):null}a.getData().clear();a.loadPage(1,{callback:function(){a.fireEvent('groupchange',a,a.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(c){var a=this,b=a.getPurgePageCount();return b?Math.max(a.getData().getMaxSize()||0,Math.ceil((c+a.getTrailingBufferZone()+a.getLeadingBufferZone())/a.getPageSize())*2+b):0},loadToPrefetch:function(b){var a=this,f=b,h,d,i,e=b.start,k=b.start+b.limit-1,m=a.getViewSize()||b.limit,c=Math.min(k,b.start+m-1),p=a.getPageFromRecordIndex(Math.max(e-a.getTrailingBufferZone(),0)),q=a.getPageFromRecordIndex(k+a.getLeadingBufferZone()),g=a.getData(),j=function(){d=d||[];if(b.loadCallback){b.loadCallback.call(b.scope||a,d,o,!0)}if(b.callback){b.callback.call(b.scope||a,d,e||0,k||0,b)}},n=function(){a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('load',a,d,!0)},l=function(){if(a.rangeCached(e,c)){a.loading=!1;d=g.getRange(e,c+1);g.un('pageadd',l);if(a.hasListeners.guaranteedrange){a.guaranteeRange(e,c,b.callback,b.scope)}j();n()}},o;g.setMaxSize(a.calculatePageCacheSize(m));if(a.fireEvent('beforeload',a,b)!==!1){delete a.totalCount;a.loading=!0;if(b.callback){f=Ext.apply({},b);delete f.callback}a.on('prefetch',function(m,e,d,k){o=k;if(d){if(i=a.getTotalCount()){g.on('pageadd',l);c=Math.min(c,i-1);q=a.getPageFromRecordIndex(Math.min(c+a.getLeadingBufferZone(),i-1));for(h=p+1;h<=q;++h){a.prefetchPage(h,f)}}else {j();n()}}else {a.loading=!1;j();a.fireEvent('load',a,e,!1)}},null,{single:!0});a.prefetchPage(p,f)}},prefetch:function(b){var a=this,c=a.getPageSize(),d=a.getData(),e,f;if(c){if(a.lastPageSize&&c!=a.lastPageSize){Ext.raise('pageSize cannot be dynamically altered')}if(!d.getPageSize()){d.setPageSize(c)}}else {a.pageSize=d.setPageSize(c=b.limit)}a.lastPageSize=c;if(!b.page){b.page=a.getPageFromRecordIndex(b.start);b.start=(b.page-1)*c;b.limit=Math.ceil(b.limit/c)*c}f=a.pageRequests[b.page];if(!f||f.getOperation().pageMapGeneration!==d.pageMapGeneration){b=Ext.apply({action:'read',filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper(),internalCallback:a.onProxyPrefetch,internalScope:a},b);e=a.createOperation('read',b);e.pageMapGeneration=d.pageMapGeneration;if(a.fireEvent('beforeprefetch',a,e)!==!1){a.pageRequests[b.page]=e.execute();if(a.getProxy().isSynchronous){delete a.pageRequests[b.page]}}}return a},onPageMapClear:function(){var a=this,e=a.wasLoading,d=a.pageRequests,b=a.getData(),c;b.clearListeners();b.on('clear',a.onPageMapClear,a);a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.loading=!0;a.totalCount=0;for(c in d){if(d.hasOwnProperty(c)){d[c].getOperation().abort()}}a.fireEvent('clear',a);a.loading=e},prefetchPage:function(d,e){var a=this,b=a.getPageSize(),f=(d-1)*b,c=a.totalCount;if(c!==undefined&&a.data.getCount()===c){return}a.prefetch(Ext.applyIf({page:d,start:f,limit:b},e))},onProxyPrefetch:function(b){if(this.destroyed){return}var a=this,g=b.getResultSet(),e=b.getRecords(),d=b.wasSuccessful(),i=b.getPage(),c=b.waitForReload,k=a.totalCount,h=a.pageRequests,j,f;if(b.pageMapGeneration===a.getData().pageMapGeneration){if(g){a.totalCount=g.getTotal();if(a.totalCount!==k){a.fireEvent('totalcountchange',a.totalCount)}}if(i!==undefined){delete a.pageRequests[i]}a.loading=!1;a.fireEvent('prefetch',a,e,d,b);if(d){if(a.totalCount===0){if(c){for(j in h){f=h[j].getOperation();if(f.waitForReload===c){delete f.waitForReload}}a.getData().un('pageadd',c);a.fireEvent('load',a,[],!0);a.fireEvent('refresh',a)}}else {a.cachePage(e,b.getPage())}}Ext.callback(b.getCallback(),b.getScope()||a,[e,b,d])}},cachePage:function(b,d){var a=this,e=b.length,c;if(!Ext.isDefined(a.totalCount)){a.totalCount=b.length;a.fireEvent('totalcountchange',a.totalCount)}for(c=0;cf-1?f-1:a.prefetchEnd,d;b=Math.max(0,b);d=c.getData().getRange(e,b+1);if(a.fireEvent!==!1){c.fireEvent('guaranteedrange',d,e,b,a)}if(a.callback){a.callback.call(a.scope||c,d,e,b,a)}},guaranteeRange:function(d,e,b,c,a){a=Ext.apply({callback:b,scope:c},a);this.getRange(d,e+1,a)},prefetchRange:function(c,d){var a=this,e,f,b,g=a.getData();if(!a.rangeCached(c,d)){e=a.getPageFromRecordIndex(c);f=a.getPageFromRecordIndex(d);g.setMaxSize(a.calculatePageCacheSize(d-c+1));for(b=e;b<=f;b++){if(!a.pageCached(b)){a.prefetchPage(b)}}}},primeCache:function(a,b,g){var c=this,f=c.getLeadingBufferZone(),e=c.getTrailingBufferZone(),h=c.getPageSize(),d=c.totalCount;if(g===-1){a=Math.max(a-f,0);b=Math.min(b+e,d-1)}else {if(g===1){a=Math.max(Math.min(a-e,d-h),0);b=Math.min(b+f,d-1)}else {a=Math.min(Math.max(Math.floor(a-(f+e)/2),0),d-c.pageSize);b=Math.min(Math.max(Math.ceil(b+(f+e)/2),0),d-1)}}c.prefetchRange(a,b)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else {this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent('beforesort',a,b);a.clearAndLoad({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('sort',a,b)}},clearAndLoad:function(a){this.getData().clear();this.loadPage(1,a)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return !1}}},0,0,0,0,['store.buffered'],0,[Ext.data,'BufferedStore'],0);Ext.cmd.derive('Ext.mixin.Queryable',Ext.Base,{mixinId:'queryable',isQueryable:!0,query:function(a){a=a||'*';return Ext.ComponentQuery.query(a,this.getQueryRoot())},queryBy:function(g,e){var d=[],c=this.getQueryRoot().getRefItems(!0),b=0,f=c.length,a;for(;b')}else {b.push('>');if(c=a.tpl){c.applyOut(a.tplData,b)}if(c=a.html){b.push(c)}if(c=a.cn||a.children){e.generateMarkup(c,b)}h=e.closeTags;b.push(h[f]||(h[f]=''))}}}return b},generateStyles:function(c,d,f){var e=d||[],a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];a=this.decamelizeName(a);if(f&&Ext.String.hasHtmlCharacters(b)){b=Ext.String.htmlEncode(b)}e.push(a,':',b,';')}}return d||e.join('')},markup:function(a){if(typeof a==='string'){return a}var b=this.generateMarkup(a,[]);return b.join('')},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(e){var d=this.detachedDiv,b=document.createDocumentFragment(),c,a;d.innerHTML=e;a=d.childNodes;c=a.length;while(c--){b.appendChild(a[0])}return b},createDom:function(e,f){var c=this,d=c.markup(e),b=c.detachedDiv,a;b.innerHTML=d;a=b.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(!0):a},insertHtml:function(g,f,j){var o=this,l,k,n,m,i;g=g.toLowerCase();if(f.insertAdjacentHTML){if(o.ieInsertHtml){i=o.ieInsertHtml(g,f,j);if(i){return i}}l=h[g];if(l){f.insertAdjacentHTML(l[0],j);return f[l[1]]}}else {if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}k=Ext.supports.CreateContextualFragment?f.ownerDocument.createRange():undefined;m='setStart'+(this.endRe.test(g)?'After':'Before');if(e[g]){if(k){k[m](f);i=k.createContextualFragment(j)}else {i=this.createContextualFragment(j)}f.parentNode.insertBefore(i,g===a?f:f.nextSibling);return f[(g===a?'previous':'next')+'Sibling']}else {n=(g===b?'first':'last')+'Child';if(f.firstChild){if(k){try{k[m](f[n]);i=k.createContextualFragment(j)}catch(p){i=this.createContextualFragment(j)}}else {i=this.createContextualFragment(j)}if(g===b){f.insertBefore(i,f.firstChild)}else {f.appendChild(i)}}else {f.innerHTML=j}return f[n]}}},insertBefore:function(c,d,b){return this.doInsert(c,d,b,a)},insertAfter:function(b,c,a){return this.doInsert(b,c,a,d)},insertFirst:function(c,d,a){return this.doInsert(c,d,a,b)},append:function(b,d,a){return this.doInsert(b,d,a,c)},overwrite:function(b,c,e){var d=this,a;b=Ext.getDom(b);c=d.markup(c);if(d.ieOverwrite){a=d.ieOverwrite(b,c)}if(!a){b.innerHTML=c;a=b.firstChild}return e?Ext.get(a):a},doInsert:function(f,j,k,g){var i=this,h;f=f.dom||Ext.getDom(f);if('innerHTML' in f){h=i.insertHtml(g,f,i.markup(j))}else {h=i.createDom(j,null);if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}if(e[g]){f.parentNode.insertBefore(h,g===a?f:f.nextSibling)}else {if(f.firstChild&&g===b){f.insertBefore(h,f.firstChild)}else {f.appendChild(h)}}}return k?Ext.get(h):h},createTemplate:function(b){var a=this.markup(b);return new Ext.Template(a)},createHtml:function(a){return this.markup(a)}}},0,0,0,0,0,0,[Ext.dom,'Helper',Ext,'DomHelper',Ext.core,'DomHelper'],0);Ext.define('Ext.overrides.dom.Helper',function(){var a=/^(?:table|thead|tbody|tr|td)$/i,f=/td|tr|tbody|thead/i,e='',d='
    ',c=e+'',b=''+d,h=c+'',g=''+b;return {override:'Ext.dom.Helper',ieInsertHtml:function(d,b,e){var c=null;if(Ext.isIE9m&&a.test(b.tagName)){c=this.insertIntoTable(b.tagName.toLowerCase(),d,b,e)}return c},ieOverwrite:function(b,c){if(Ext.isIE9m&&a.test(b.tagName)){while(b.firstChild){b.removeChild(b.firstChild)}if(c){return this.insertHtml('afterbegin',b,c)}}},ieTable:function(g,f,e,d){var h=-1,a=this.detachedDiv,b,c;a.innerHTML=[f,e,d].join('');while(++ha.interval){a.collect()}a.timerId=Ext.interval(a.collect,a.interval)}},1,0,0,0,0,0,[Ext.dom,'GarbageCollector'],0);Ext.cmd.derive('Ext.event.gesture.Recognizer',Ext.Base,{priority:0,handledEvents:[],config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(a){this.initConfig(a);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:Ext.emptyFn,onTouchCancel:Ext.emptyFn,fail:function(){return !1},fire:function(){this.getOnRecognized().apply(this.getCallbackScope(),arguments)},reset:Ext.emptyFn},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.event.gesture,'Recognizer'],0);Ext.cmd.derive('Ext.event.gesture.SingleTouch',Ext.event.gesture.Recognizer,{inheritableStatics:{NOT_SINGLE_TOUCH:'Not Single Touch',TOUCH_MOVED:'Touch Moved',EVENT_CANCELED:'Event Canceled'},onTouchStart:function(a){if(a.touches.length>1){return this.fail(this.self.NOT_SINGLE_TOUCH)}},onTouchCancel:function(){return !1}},0,0,0,0,0,0,[Ext.event.gesture,'SingleTouch'],0);Ext.cmd.derive('Ext.event.gesture.DoubleTap',Ext.event.gesture.SingleTouch,{priority:300,inheritableStatics:{DIFFERENT_TARGET:'Different Target'},config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:['singletap','doubletap'],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(c){var a=this,b;if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}b=a.lastStartPoint=c.changedTouches[0].point;a.startPoint=a.startPoint||b;a.startTime=c.time;clearTimeout(a.singleTapTimer)},onTouchMove:function(c){var a=this,b=c.changedTouches[0].point;if(Math.abs(b.getDistanceTo(a.lastStartPoint))>=a.getMoveDistance()){a.startPoint=null;return a.fail(a.self.TOUCH_MOVED)}},onTouchEnd:function(b){var a=this,f=a.getMaxDuration(),d=b.time,g=b.target,e=a.lastTapTime,h=a.lastTarget,i=b.changedTouches[0].point,c;a.lastTapTime=d;a.lastTarget=g;if(e){c=d-e;if(c<=f&&Math.abs(i.getDistanceTo(a.startPoint))<=a.getTapDistance()){if(g!==h){return a.fail(a.self.DIFFERENT_TARGET)}a.lastTarget=null;a.lastTapTime=0;a.fire('doubletap',b,{touch:b.changedTouches[0],duration:c});a.startPoint=null;return}}if(d-a.startTime>f){a.fireSingleTap(b)}else {a.setSingleTapTimer(b)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fireSingleTap(b)},a.getMaxDuration())},fireSingleTap:function(b,a){this.fire('singletap',b,{touch:a});this.startPoint=null},reset:function(){var a=this;a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null}},0,0,0,0,0,0,[Ext.event.gesture,'DoubleTap'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)});Ext.cmd.derive('Ext.event.gesture.Drag',Ext.event.gesture.SingleTouch,{priority:100,isStarted:!1,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:['dragstart','drag','dragend','dragcancel'],config:{minDistance:8},constructor:function(){Ext.event.gesture.SingleTouch.prototype.constructor.apply(this,arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0}}},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){if(this.isStarted&&this.lastMoveEvent!==null){this.lastMoveEvent.isStopped=!1;this.onTouchEnd(this.lastMoveEvent)}return !1}this.startTime=a.time;this.startPoint=a.changedTouches[0].point},tryDragStart:function(a){var f=this.startPoint,b=a.changedTouches[0],c=b.point,e=this.getMinDistance(),d=this.info;if(Math.abs(c.getDistanceTo(f))>=e){this.isStarted=!0;this.previousPoint=this.lastPoint=c;this.resetInfo('x',a,b);this.resetInfo('y',a,b);d.time=a.time;this.fire('dragstart',a,d)}},onTouchMove:function(a){if(!this.isStarted){this.tryDragStart(a)}if(!this.isStarted){return}var b=a.changedTouches[0],c=b.point;if(this.lastPoint){this.previousPoint=this.lastPoint}this.lastPoint=c;this.lastMoveEvent=a;this.updateInfo('x',a,b);this.updateInfo('y',a,b);this.info.time=a.time;this.fire('drag',a,this.info)},onAxisDragEnd:function(b,a){var c=a.time-a.previousTime[b];if(c>0){a.flick.velocity[b]=(a[b]-a.previous[b])/c}},resetInfo:function(b,h,g){var f=this.lastPoint[b],d=this.startPoint[b],e=f-d,c=b.toUpperCase(),a=this.info;a.touch=g;a.delta[b]=e;a.absDelta[b]=Math.abs(e);a.previousTime[b]=this.startTime;a.previous[b]=d;a[b]=f;a.direction[b]=0;a['start'+c]=this.startPoint[b];a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=0;a.startTime=this.startTime},updateInfo:function(b,l,k){var e=this,d=e.lastPoint[b],g=e.previousPoint[b],f=e.startPoint[b],i=d-f,a=e.info,h=a.direction,c=b.toUpperCase(),j=a.previous[b];a.touch=k;a.delta[b]=i;a.absDelta[b]=Math.abs(i);if(d!==j&&d!==a[b]){a.previous[b]=a[b];a.previousTime[b]=a.time}a[b]=d;if(d>g){h[b]=1}else {if(dthis.getMaxDuration()){return this.fail(this.self.MAX_DURATION_EXCEEDED)}if(this.isHorizontal&&d>this.getMaxOffset()){this.isHorizontal=!1}if(this.isVertical&&c>this.getMaxOffset()){this.isVertical=!1}if(!this.isVertical||!this.isHorizontal){if(this.isHorizontal&&cj){this.isVertical=!1}if(this.isHorizontal&&i>j){this.isHorizontal=!1}if(this.isVertical&&this.isHorizontal){if(i>h){this.isHorizontal=!1}else {this.isVertical=!1}}if(this.isHorizontal){a=f<0?'left':'right';b=f}else {if(this.isVertical){a=g<0?'up':'down';b=g}}a=this.direction||(this.direction=a);if(a==='up'){b=g*-1}else {if(a==='left'){b=f*-1}}this.distance=b;if(!b){return this.fail(this.self.DISTANCE_NOT_ENOUGH)}if(!this.started){if(a==='right'&&this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='down'&&this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='left'&&o-this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='up'&&n-this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}}}}this.started=!0;this.startTime=c.time;this.fire('edgeswipestart',c,{touch:e,direction:a,distance:b,duration:k})}else {this.fire('edgeswipe',c,{touch:e,direction:a,distance:b,duration:k})}},onTouchEnd:function(a){var b;if(this.onTouchMove(a)!==!1){b=a.time-this.startTime;this.fire('edgeswipeend',a,{touch:a.changedTouches[0],direction:this.direction,distance:this.distance,duration:b})}},onTouchCancel:function(a){this.fire('edgeswipecancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){var a=this;a.started=a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null}},0,0,0,0,0,0,[Ext.event.gesture,'EdgeSwipe'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)});Ext.cmd.derive('Ext.event.gesture.LongPress',Ext.event.gesture.SingleTouch,{priority:400,inheritableStatics:{DURATION_NOT_ENOUGH:'Duration Not Enough'},config:{moveDistance:8,minDuration:1000},handledEvents:['longpress','taphold'],fireLongPress:function(a){this.fire('longpress',a,{touch:a.changedTouches[0],duration:this.getMinDuration()});this.isLongPress=!0},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}this.startPoint=a.changedTouches[0].point;this.isLongPress=!1;this.setLongPressTimer(a)},setLongPressTimer:function(b){var a=this;a.timer=Ext.defer(function(){a.fireLongPress(b)},a.getMinDuration())},onTouchMove:function(b){var a=b.changedTouches[0].point;if(Math.abs(a.getDistanceTo(this.startPoint))>=this.getMoveDistance()){return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(){if(!this.isLongPress){return this.fail(this.self.DURATION_NOT_ENOUGH)}},fail:function(){clearTimeout(this.timer);return Ext.event.gesture.SingleTouch.prototype.fail.apply(this,arguments)},reset:function(){this.isLongPress=this.startPoint=null},fire:function(b){if(b==='longpress'){var a=Array.prototype.slice.call(arguments);a[0]='taphold';this.fire.apply(this,a)}return Ext.event.gesture.SingleTouch.prototype.fire.apply(this,arguments)}},0,0,0,0,0,0,[Ext.event.gesture,'LongPress'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)});Ext.cmd.derive('Ext.event.gesture.MultiTouch',Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:!1,isStarted:!1,onTouchStart:function(a){var b=this.requiredTouchesCount,d=a.touches,c=d.length;if(c===b){this.start(a)}else {if(c>b){this.end(a)}}},onTouchEnd:function(a){this.end(a)},onTouchCancel:function(a){this.end(a,!0);return !1},start:function(){if(!this.isTracking){this.isTracking=!0;this.isStarted=!1}},end:function(b,a){if(this.isTracking){this.isTracking=!1;if(this.isStarted){this.isStarted=!1;this[a?'fireCancel':'fireEnd'](b)}}},reset:function(){this.isTracking=this.isStarted=!1}},0,0,0,0,0,0,[Ext.event.gesture,'MultiTouch'],0);Ext.cmd.derive('Ext.event.gesture.Pinch',Ext.event.gesture.MultiTouch,{priority:600,handledEvents:['pinchstart','pinch','pinchend','pinchcancel'],startDistance:0,lastTouches:null,onTouchMove:function(c){if(!this.isTracking){return}var b=c.touches,e,d,a;e=b[0].point;d=b[1].point;a=e.getDistanceTo(d);if(a===0){return}if(!this.isStarted){this.isStarted=!0;this.startDistance=a;this.fire('pinchstart',c,{touches:b,distance:a,scale:1})}else {this.fire('pinch',c,{touches:b,distance:a,scale:a/this.startDistance})}},fireEnd:function(a){this.fire('pinchend',a)},fireCancel:function(a){this.fire('pinchcancel',a)},fail:function(){return Ext.event.gesture.MultiTouch.prototype.fail.apply(this,arguments)},reset:function(){this.lastTouches=null;this.startDistance=0;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Pinch'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.pinch)});Ext.cmd.derive('Ext.event.gesture.Rotate',Ext.event.gesture.MultiTouch,{priority:700,handledEvents:['rotatestart','rotate','rotateend','rotatecancel'],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(g){if(!this.isTracking){return}var b=g.touches,c=this.lastAngle,i,h,a,e,d,f;i=b[0].point;h=b[1].point;a=i.getAngleTo(h);if(c!==null){f=Math.abs(c-a);e=a+360;d=a-360;if(Math.abs(e-c)=this.getMoveDistance()){this.fire('tapcancel',b,{touch:a});return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(a){this.fire('tap',a,{touch:a.changedTouches[0]})},onTouchCancel:function(a){this.fire('tapcancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){this.startPoint=null}},0,0,0,0,0,0,[Ext.event.gesture,'Tap'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)});Ext.cmd.derive('Ext.event.publisher.Focus',Ext.event.publisher.Dom,{type:'focus',handledEvents:['focusenter','focusleave','focusmove'],handledDomEvents:['focusin','focusout'],doDelegatedEvent:function(a,c){var d=this,b;a=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,a,!1);if(a){if(a.type==='focusout'){if(a.relatedTarget==null){d.processFocusIn(a,a.target,document.body,c)}}else {b=a.relatedTarget;d.processFocusIn(a,b==null||!b.tagName?document.body:b,a.target,c)}}},processFocusIn:function(i,d,e,l){var c=this,h,a,b=[],f,g,j,k;j=Ext.fly(d);k=Ext.fly(e);if(j&&j.isFocusSuspended()||k&&k.isFocusSuspended()){return}for(a=d,h=Ext.dom.Element.getCommonAncestor(e,d,!0);a&&a!==h;a=a.parentNode){b.push(a)}if(b.length){f=c.createSyntheticEvent('focusleave',i,d,e);c.publish('focusleave',b,f);if(f.isStopped){return}}b.length=0;for(a=e;a!==h;a=a.parentNode){b.push(a)}g=c.createSyntheticEvent('focusenter',i,e,d);if(b.length){c.publish('focusenter',b,g);if(g.isStopped){return}}b=c.getPropagatingTargets(h);if(b.length){f=c.createSyntheticEvent('focusmove',i,e,d);c.publish('focusmove',b,f);if(f.isStopped){return}}if(l){c.afterEvent(i)}Ext.GlobalEvents.fireEvent('focus',{event:g,toElement:e,fromElement:d})},createSyntheticEvent:function(d,c,e,b){var a=new Ext.event.Event(c);a.type=d;a.relatedTarget=b;a.target=e;return a}},0,0,0,0,0,0,[Ext.event.publisher,'Focus'],function(a){var b;a.instance=new a();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:['focus','blur'],doDelegatedEvent:function(c,e){var d=this;c=d.callSuper([c,!1]);if(c){clearTimeout(b);b=0;if(c.type==='blur'){var f=c.target===window?document.body:c.target;b=setTimeout(function(){b=0;d.processFocusIn(c,f,document.body,e);a.previousActiveElement=null},0);if(c.target===window||c.target===document){a.previousActiveElement=null}else {a.previousActiveElement=c.target}}else {d.processFocusIn(c,a.previousActiveElement||document.body,c.target===window?document.body:c.target,e)}}}})}});Ext.cmd.derive('Ext.fx.State',Ext.Base,{isAnimatable:{'background-color':!0,'background-image':!0,'background-position':!0,'border-bottom-color':!0,'border-bottom-width':!0,'border-color':!0,'border-left-color':!0,'border-left-width':!0,'border-right-color':!0,'border-right-width':!0,'border-spacing':!0,'border-top-color':!0,'border-top-width':!0,'border-width':!0,'bottom':!0,'color':!0,'crop':!0,'font-size':!0,'font-weight':!0,'height':!0,'left':!0,'letter-spacing':!0,'line-height':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'opacity':!0,'outline-color':!0,'outline-offset':!0,'outline-width':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'right':!0,'text-indent':!0,'text-shadow':!0,'top':!0,'vertical-align':!0,'visibility':!0,'width':!0,'word-spacing':!0,'z-index':!0,'zoom':!0,'transform':!0},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(d,a){var g=this.data,e=Ext.isArray(a),b=g.transform,c,f;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof d=='string'){switch(d){case 'translate':if(e){c=a.length;if(c==0){break}b.translateX=a[0];if(c==1){break}b.translateY=a[1];if(c==2){break}b.translateZ=a[2]}else {b.translateX=a};break;case 'rotate':if(e){c=a.length;if(c==0){break}b.rotateX=a[0];if(c==1){break}b.rotateY=a[1];if(c==2){break}b.rotateZ=a[2]}else {b.rotate=a};break;case 'scale':if(e){c=a.length;if(c==0){break}b.scaleX=a[0];if(c==1){break}b.scaleY=a[1];if(c==2){break}b.scaleZ=a[2]}else {b.scaleX=a;b.scaleY=a};break;case 'skew':if(e){c=a.length;if(c==0){break}b.skewX=a[0];if(c==1){break}b.skewY=a[1]}else {b.skewX=a};break;default:b[d]=a;}}else {for(f in d){if(d.hasOwnProperty(f)){a=d[f];this.setTransform(f,a)}}}},set:function(b,a){var d=this.data,c;if(typeof b!='string'){for(c in b){a=b[c];if(c==='transform'){this.setTransform(a)}else {d[c]=a}}}else {if(b==='transform'){this.setTransform(a)}else {d[b]=a}}return this},unset:function(b){var a=this.data;if(a.hasOwnProperty(b)){delete a[b]}return this},getData:function(){return this.data}},1,0,0,0,0,0,[Ext.fx,'State'],0);Ext.cmd.derive('Ext.fx.animation.Abstract',Ext.Evented,{isAnimation:!0,config:{name:'',element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:'linear',iteration:1,direction:'normal',delay:0,onBeforeStart:null,callback:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:!1,replacePrevious:!0},STATE_FROM:'0%',STATE_TO:'100%',DIRECTION_UP:'up',DIRECTION_DOWN:'down',DIRECTION_LEFT:'left',DIRECTION_RIGHT:'right',stateNameRegex:/^(?:[\d\.]+)%$/,constructor:function(){this.states={};Ext.Evented.prototype.constructor.apply(this,arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(b){var c=this.stateNameRegex,a;for(a in b){if(c.test(a)){this.setState(a,b[a])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent('stop',this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(c,d){var b=this.getStates(),a;a=Ext.factory(d,Ext.fx.State,b[c]);if(a){b[c]=a}return this},getState:function(a){return this.getStates()[a]},getData:function(){var a=this,b=a.getStates(),d={},e=a.getBefore(),f=a.getAfter(),k=b[a.STATE_FROM],l=b[a.STATE_TO],i=k.getData(),j=l.getData(),h,c,g;for(c in b){if(b.hasOwnProperty(c)){g=b[c];h=g.getData();d[c]=h}}return {before:e?e.getData():{},after:f?f.getData():{},states:d,from:i,to:j,duration:a.getDuration(),iteration:a.getIteration(),direction:a.getDirection(),easing:a.getEasing(),delay:a.getDelay(),onEnd:a.getOnEnd(),onBeforeEnd:a.getOnBeforeEnd(),onBeforeStart:a.getOnBeforeStart(),scope:a.getScope(),preserveEndState:a.getPreserveEndState(),replacePrevious:a.getReplacePrevious()}}},1,0,0,0,0,0,[Ext.fx.animation,'Abstract'],0);Ext.cmd.derive('Ext.fx.animation.Slide',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.SlideIn',config:{direction:'left',out:!1,offset:0,easing:'auto',containerBox:'auto',elementBox:'auto',isElementBoxFit:!0,useCssTransform:!0},reverseDirectionMap:{up:'down',down:'up',left:'right',right:'left'},applyEasing:function(a){if(a==='auto'){return 'ease-'+(this.getOut()?'in':'out')}return a},getContainerBox:function(){var a=this._containerBox;if(a==='auto'){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==='auto'){a=this.getElement().getBox()}return a},getData:function(){var o=this.getElementBox(),b=this.getContainerBox(),a=o?o:b,j=this.getFrom(),m=this.getTo(),d=this.getOut(),c=this.getOffset(),g=this.getDirection(),n=this.getUseCssTransform(),p=this.getReverse(),e=0,f=0,h,i,k,l;if(p){g=this.reverseDirectionMap[g]}switch(g){case this.DIRECTION_UP:if(d){f=b.top-a.top-a.height-c}else {f=b.bottom-a.bottom+a.height+c};break;case this.DIRECTION_DOWN:if(d){f=b.bottom-a.bottom+a.height+c}else {f=b.top-a.height-a.top-c};break;case this.DIRECTION_RIGHT:if(d){e=b.right-a.right+a.width+c}else {e=b.left-a.left-a.width-c};break;case this.DIRECTION_LEFT:if(d){e=b.left-a.left-a.width-c}else {e=b.right-a.right+a.width+c};break;}h=d?0:e;i=d?0:f;if(n){j.setTransform({translateX:h,translateY:i})}else {j.set('left',h);j.set('top',i)}k=d?e:0;l=d?f:0;if(n){m.setTransform({translateX:k,translateY:l})}else {m.set('left',k);m.set('top',l)}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.slide','animation.slideIn'],0,[Ext.fx.animation,'Slide',Ext.fx.animation,'SlideIn'],0);Ext.cmd.derive('Ext.fx.animation.SlideOut',Ext.fx.animation.Slide,{config:{out:!0}},0,0,0,0,['animation.slideOut'],0,[Ext.fx.animation,'SlideOut'],0);Ext.cmd.derive('Ext.fx.animation.Fade',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.FadeIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(c){var b=this.getTo(),a=this.getFrom();if(c){a.set('opacity',1);b.set('opacity',0)}else {a.set('opacity',0);b.set('opacity',1)}}},0,0,0,0,['animation.fade','animation.fadeIn'],0,[Ext.fx.animation,'Fade',Ext.fx.animation,'FadeIn'],0);Ext.cmd.derive('Ext.fx.animation.FadeOut',Ext.fx.animation.Fade,{config:{out:!0,before:{}}},0,0,0,0,['animation.fadeOut'],0,[Ext.fx.animation,'FadeOut'],0);Ext.cmd.derive('Ext.fx.animation.Flip',Ext.fx.animation.Abstract,{config:{easing:'ease-in',direction:'right',half:!1,out:null},getData:function(){var c=this,k=c.getFrom(),m=c.getTo(),j=c.getDirection(),b=c.getOut(),l=c.getHalf(),a=l?90:180,h=1,i=1,d=0,e=0,f=0,g=0;if(b){i=0.8}else {h=0.8}switch(j){case this.DIRECTION_UP:if(b){f=a}else {d=-a};break;case this.DIRECTION_DOWN:if(b){f=-a}else {d=a};break;case this.DIRECTION_RIGHT:if(b){g=a}else {e=-a};break;case this.DIRECTION_LEFT:if(b){g=-a}else {e=a};break;}k.setTransform({rotateX:d,rotateY:e,scale:h});m.setTransform({rotateX:f,rotateY:g,scale:i});return Ext.fx.animation.Abstract.prototype.getData.call(this)}},0,0,0,0,['animation.flip'],0,[Ext.fx.animation,'Flip'],0);Ext.cmd.derive('Ext.fx.animation.Pop',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.PopIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var b=this.getTo(),a=this.getFrom(),c=this.getOut();if(c){a.set('opacity',1);a.setTransform({scale:1});b.set('opacity',0);b.setTransform({scale:0})}else {a.set('opacity',0);a.setTransform({scale:0});b.set('opacity',1);b.setTransform({scale:1})}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.pop','animation.popIn'],0,[Ext.fx.animation,'Pop',Ext.fx.animation,'PopIn'],0);Ext.cmd.derive('Ext.fx.animation.PopOut',Ext.fx.animation.Pop,{config:{out:!0,before:{}}},0,0,0,0,['animation.popOut'],0,[Ext.fx.animation,'PopOut'],0);Ext.cmd.derive('Ext.fx.Animation',Ext.Base,{constructor:function(a){var c=Ext.fx.animation.Abstract,b;if(typeof a=='string'){b=a;a={}}else {if(a&&a.type){b=a.type}}if(b){c=Ext.ClassManager.getByAlias('animation.'+b)}return Ext.factory(a,c)}},1,0,0,0,0,0,[Ext.fx,'Animation'],0);Ext.cmd.derive('Ext.fx.runner.Css',Ext.Evented,{prefixedProperties:{'transform':!0,'transform-origin':!0,'perspective':!0,'transform-style':!0,'transition':!0,'transition-property':!0,'transition-duration':!0,'transition-timing-function':!0,'transition-delay':!0,'animation':!0,'animation-name':!0,'animation-duration':!0,'animation-iteration-count':!0,'animation-direction':!0,'animation-timing-function':!0,'animation-delay':!0},lengthProperties:{'top':!0,'right':!0,'bottom':!0,'left':!0,'width':!0,'height':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'border-bottom-width':!0,'border-left-width':!0,'border-right-width':!0,'border-spacing':!0,'border-top-width':!0,'border-width':!0,'outline-width':!0,'letter-spacing':!0,'line-height':!0,'text-indent':!0,'word-spacing':!0,'font-size':!0,'translate':!0,'translateX':!0,'translateY':!0,'translateZ':!0,'translate3d':!0},durationProperties:{'transition-duration':!0,'transition-delay':!0,'animation-duration':!0,'animation-delay':!0},angleProperties:{rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,skew:!0,skewX:!0,skewY:!0},lengthUnitRegex:/([a-z%]*)$/,DEFAULT_UNIT_LENGTH:'px',DEFAULT_UNIT_ANGLE:'deg',DEFAULT_UNIT_DURATION:'ms',formattedNameCache:{},transformMethods3d:['translateX','translateY','translateZ','rotate','rotateX','rotateY','rotateZ','skewX','skewY','scaleX','scaleY','scaleZ'],transformMethodsNo3d:['translateX','translateY','rotate','skewX','skewY','scaleX','scaleY'],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement('style');a.type='text/css';(document.head||document.getElementsByTagName('head')[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var i=this.getStyleSheet(),h=this.ruleStylesCache,k=i.cssRules,d,g,b,c,f,a,e;for(d in j){g=j[d];b=h[d];if(b===undefined){f=k.length;i.insertRule(d+'{}',f);b=h[d]=k.item(f).style}c=b.$cache;if(!c){c=b.$cache={}}for(a in g){e=this.formatValue(g[a],a);a=this.formatName(a);if(c[a]!==e){c[a]=e;if(e===null){b.removeProperty(a)}else {b.setProperty(a,e,'important')}}}}return this},applyStyles:function(f){var c,e,d,b,a,g;for(c in f){if(f.hasOwnProperty(c)){e=document.getElementById(c);if(!e){continue}d=e.style;b=f[c];for(a in b){if(b.hasOwnProperty(a)){g=this.formatValue(b[a],a);a=this.formatName(a);if(g===null){d.removeProperty(a)}else {d.setProperty(a,g,'important')}}}}}return this},formatName:function(b){var c=this.formattedNameCache,a=c[b];if(!a){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){a=this.vendorPrefix+b}else {a=b}c[b]=a}return a},formatValue:function(a,c){var j=typeof a,i=this.DEFAULT_UNIT_LENGTH,g,d,b,f,h,e,k;if(a===null){return ''}if(j=='string'){if(this.lengthProperties[c]){k=a.match(this.lengthUnitRegex)[1];if(k.length>0){}else {return a+i}}return a}else {if(j=='number'){if(a==0){return '0'}if(this.lengthProperties[c]){return a+i}if(this.angleProperties[c]){return a+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[c]){return a+this.DEFAULT_UNIT_DURATION}}else {if(c==='transform'){g=this.transformMethods;h=[];for(b=0,f=g.length;b0?e.join(', '):'none'}}}}return a}},1,0,0,0,0,0,[Ext.fx.runner,'Css'],0);Ext.cmd.derive('Ext.fx.runner.CssTransition',Ext.fx.runner.Css,{alternateClassName:'Ext.Animator',singleton:!0,listenersAttached:!1,constructor:function(){this.runningAnimationsData={};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=!0;Ext.getWin().on('transitionend','onTransitionEnd',this)},onTransitionEnd:function(c){var a=c.target,b=a.id;if(b&&this.runningAnimationsData.hasOwnProperty(b)){this.refreshRunningAnimationsData(Ext.get(a),[c.browserEvent.propertyName])}},onAnimationEnd:function(d,a,b,c,n){var l=d.getId(),j=this.runningAnimationsData[l],k={},h={},g,f,e,m,i;b.un('stop','onAnimationStop',this);if(j){g=j.nameMap}k[l]=h;if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,d,c)}b.fireEvent('animationbeforeend',b,d,c);this.fireEvent('animationbeforeend',this,b,d,c);if(n||!c&&!a.preserveEndState){f=a.toPropertyNames;for(e=0,m=f.length;e0},refreshRunningAnimationsData:function(i,m,f,g){var s=i.getId(),r=this.runningAnimationsData,e=r[s];if(!e){return}var o=e.nameMap,n=e.nameList,c=e.sessions,h,j,p,d,b,a,k,q,l=!1;f=Boolean(f);g=Boolean(g);if(!c){return this}h=c.length;if(h===0){return this}if(g){e.nameMap={};n.length=0;for(b=0;b');b.close();this.testElement=c=b.createElement('div');c.style.setProperty('position','absolute','important');b.body.appendChild(c);this.testElementComputedStyle=window.getComputedStyle(c)}return c},getCssStyleValue:function(b,a){var c=this.getTestElement(),e=this.testElementComputedStyle,d=c.style;d.setProperty(b,a);if(Ext.browser.is.Firefox){c.offsetHeight}a=e.getPropertyValue(b);d.removeProperty(b);return a},run:function(t){var a=this,H=a.lengthProperties,E={},j={},d={},i,f,m,k,F,g,e,u,v,s,r,w,x,G,c,o,y,C,h,b,l,D,n,z,q,p,A,B;if(!a.listenersAttached){a.attachListeners()}t=Ext.Array.from(t);for(w=0,G=t.length;w0){a.refreshRunningAnimationsData(i,Ext.Array.merge(g,e),!0,d.replacePrevious)}q=s.nameMap;p=s.nameList;y={};for(x=0;x0){g=Ext.Array.difference(p,g);e=Ext.Array.merge(g,e);r['transition-property']=g}E[f]=r;j[f]=Ext.apply({},k);j[f]['transition-property']=e;j[f]['transition-duration']=d.duration;j[f]['transition-timing-function']=d.easing;j[f]['transition-delay']=d.delay;c.startTime=Date.now()}v=a.$className;a.applyStyles(E);u=function(b){if(b.data===v&&b.source===window){window.removeEventListener('message',u,!1);a.applyStyles(j)}};if(window.requestAnimationFrame){window.requestAnimationFrame(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')})}else {Ext.defer(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')},1)}},onAnimationStop:function(h){var c=this.runningAnimationsData,e,f,d,b,g,a;for(e in c){if(c.hasOwnProperty(e)){f=c[e];d=f.sessions;for(b=0,g=d.length;b'){this.isParentReference=!0;a=a.substring(0,b)}return a}}},0,0,0,0,0,0,[Ext.mixin,'Container'],0);Ext.cmd.derive('Ext.mixin.Responsive',Ext.Mixin,function(a){return {mixinConfig:{id:'responsive',after:{destroy:'destroy'}},config:{responsiveConfig:{$value:undefined,merge:function(c,d,g,f){if(!c){return d}var e=d?Ext.Object.chain(d):{},b;for(b in c){if(!f||!(b in e)){e[b]={fn:null,config:c[b]}}}return e}},responsiveFormulas:{$value:0,merge:function(c,d,e,b){return this.mergeNew(c,d,e,b)}}},destroy:function(){a.unregister(this);this.callParent()},privates:{statics:{active:!1,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=!0;a.updateContext();Ext.on('resize',a.onResize,a)},deactivate:function(){a.active=!1;Ext.un('resize',a.onResize,a)},notify:function(){var b=a.all,e=a.context,d=Ext.GlobalEvents,f=a.timer,c;if(f){a.timer=null;Ext.Function.cancelAnimationFrame(f)}a.updateContext();Ext.suspendLayouts();d.fireEvent('beforeresponsiveupdate',e);for(c in b){b[c].setupResponsiveContext()}d.fireEvent('beginresponsiveupdate',e);for(c in b){b[c].updateResponsiveState()}d.fireEvent('responsiveupdate',e);Ext.resumeLayouts(!0)},onResize:function(){if(!a.timer){a.timer=Ext.Function.requestAnimationFrame(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(c,d,b){var g=d&&d[b],f=c.config,h,e;if(g){e=c.getConfigurator();h=e.configs[b];f[b]=h.merge(g,f[b],c)}},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),c=e.getViewportHeight(),b=a.context;b.width=d;b.height=c;b.tall=d','',' ({childCount} children)','','',' ({depth} deep)','','',', {type}: {[this.time(values.sum)]} msec (','avg={[this.time(values.sum / parent.count)]}',')','','
    '].join(''),{time:function(a){return Math.round(a*100)/100}})}var a=this.getData(b);a.name=this.name;a.pure.type='Pure';a.total.type='Total';a.times=[a.pure,a.total];return c.apply(a)},getData:function(b){var a=this;return {count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:setToJSON(a.count,a.childCount,b,a.pure),total:setToJSON(a.count,a.childCount,b,a.total)}},enter:function(){var c=this,d={accum:c,leave:leaveFrame,childTime:0,parent:b};++c.depth;if(c.maxDepth0){d=a==='this'?this:typeof a==='string'?this[a]:typeof a==='number'?arguments[a]:null;if(d){f=d.id}if(f!=null){console.log(b+' for '+f+': '+c+'ms')}else {console.log(b+' for unknown: '+c+'ms')}if(console.trace){console.trace()}}return h}}(b,d[b])}Ext.override(f,c)}}}}},1,0,0,0,0,0,[Ext.perf,'Monitor',Ext,'Perf'],0);Ext.cmd.derive('Ext.util.ItemCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.ItemCollection',getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}},0,0,0,0,0,0,[Ext.util,'ItemCollection',Ext,'ItemCollection'],0);Ext.cmd.derive('Ext.util.TaskManager',Ext.util.TaskRunner,{alternateClassName:['Ext.TaskManager'],singleton:!0},0,0,0,0,0,0,[Ext.util,'TaskManager',Ext,'TaskManager'],0);Ext.cmd.derive('Ext.util.TextMetrics',Ext.Base,{statics:{shared:null,measure:function(d,e,c){var b=this,a=b.shared;if(!a){a=b.shared=new b(d,c)}a.bind(d);a.setFixedWidth(c||'auto');return a.getSize(e)},destroy:function(){var a=this;Ext.destroy(a.shared);a.shared=null}},constructor:function(c,b){var d=this,a=Ext.getBody().createChild({role:'presentation',cls:'x-textmetrics'});a.setVisibilityMode(1);d.measure=a;if(c){d.bind(c)}a.position('absolute');a.setLocalXY(-1000,-1000);a.hide();if(b){a.setWidth(b)}},getSize:function(c){var a=this.measure,b;a.setHtml(c);b=a.getSize();a.setHtml('');return b},bind:function(b){var a=this;a.el=Ext.get(b);a.measure.setStyle(a.el.getStyle(['font-size','font-style','font-weight','font-family','line-height','text-transform','letter-spacing','word-break']))},setFixedWidth:function(a){this.measure.setWidth(a)},getWidth:function(a){this.measure.dom.style.width='auto';return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height},destroy:function(){var a=this;a.el=a.measure=Ext.destroy(a.measure);a.callParent()}},1,0,0,0,0,0,[Ext.util,'TextMetrics'],function(){Ext.Element.override({getTextWidth:function(a,c,b){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(a,this.dom.innerHTML,!0)).width,c||0,b||1000000)}})});Ext.define(null,{override:'Ext.event.publisher.Focus',compatibility:Ext.isIE10m,doDelegatedEvent:function(a,d){var c=document.body,b=Ext.synchronouslyFocusing;if(b&&(a.type==='focusout'&&a.srcElement===b&&a.toElement===c||a.type==='focusin'&&a.srcElement===c&&a.fromElement===b&&a.toElement===null)){return}return this.callParent([a,d])}});Ext.define(null,{override:'Ext.scroll.DomScroller',compatibility:Ext.isIE8,privates:{doScrollTo:function(a,b,j){var c=this,f=c.getElement(),e,d,i,g,h;if(f&&!f.destroyed){d=this.getElement().dom;g=a===Infinity;h=b===Infinity;if(g||h){e=c.getMaxPosition();if(g){a=e.x}if(h){b=e.y}}a=c.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}f.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(a!=null&&b!=null){c.deferDomScroll=!0}if(b!=null){d.scrollTop=b}if(a!=null){d.scrollLeft=a}if(c.deferDomScroll){c.deferDomScroll=!1;+d.scrollLeft;d.scrollLeft=a}}c.positionDirty=!0}},onDomScroll:function(){var a=this;if(a.deferDomScroll){return}a.callParent()}}});Ext.cmd.derive('Ext.ElementLoader',Ext.Base,{statics:{Renderer:{Html:function(c,b,a){c.getTarget().setHtml(b.responseText,a.scripts===!0,a.rendererScope);return !0}}},url:null,params:null,baseParams:null,autoLoad:!1,target:null,loadMask:!1,ajaxOptions:null,scripts:!1,isLoader:!0,constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.setTarget(a.target);if(a.autoLoad){b=a.autoLoad;if(b===!0){b=null}a.load(b)}},setTarget:function(a){var b=this;a=Ext.get(a);if(b.target&&b.target!==a){b.abort()}b.target=a},getTarget:function(){return this.target||null},abort:function(){var a=this.active;if(a!==undefined){Ext.Ajax.abort(a.request);if(a.mask){this.removeMask()}delete this.active}},removeMask:function(){this.target.unmask()},addMask:function(a){this.target.mask(a===!0?null:a)},load:function(b){b=Ext.apply({},b);var a=this,d=Ext.isDefined(b.loadMask)?b.loadMask:a.loadMask,c=Ext.apply({},b.params),e=Ext.apply({},b.ajaxOptions),f=b.callback||a.callback,g=b.scope||a.scope||a;Ext.applyIf(e,a.ajaxOptions);Ext.applyIf(b,e);Ext.applyIf(c,a.params);Ext.apply(c,a.baseParams);Ext.applyIf(b,{url:a.url});Ext.apply(b,{scope:a,params:c,callback:a.onComplete});if(a.fireEvent('beforeload',a,b)===!1){return}if(d){a.addMask(d)}a.active={options:b,mask:d,scope:g,callback:f,success:b.success||a.success,failure:b.failure||a.failure,renderer:b.renderer||a.renderer,scripts:Ext.isDefined(b.scripts)?b.scripts:a.scripts};a.active.request=Ext.Ajax.request(b);a.setOptions(a.active,b)},setOptions:function(b,a){b.rendererScope=a.rendererScope||this.rendererScope||this},onComplete:function(d,e,c){var a=this,b=a.active,g,f;if(b){f=b.scope;g=b.rendererScope;if(e){e=a.getRenderer(b.renderer).call(g,a,c,b)!==!1}if(e){Ext.callback(b.success,f,[a,c,d]);a.fireEvent('load',a,c,d)}else {Ext.callback(b.failure,f,[a,c,d]);a.fireEvent('exception',a,c,d)}Ext.callback(b.callback,f,[a,e,c,d]);if(b.mask){a.removeMask()}}delete a.active},getRenderer:function(a){if(Ext.isFunction(a)){return a}return this.statics().Renderer.Html},startAutoRefresh:function(b,c){var a=this;a.stopAutoRefresh();a.autoRefresh=Ext.interval(function(){a.load(c)},b)},stopAutoRefresh:function(){clearInterval(this.autoRefresh);delete this.autoRefresh},isAutoRefreshing:function(){return Ext.isDefined(this.autoRefresh)},destroy:function(){var a=this;a.stopAutoRefresh();delete a.target;a.abort();a.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext,'ElementLoader'],0);Ext.cmd.derive('Ext.ComponentLoader',Ext.ElementLoader,{statics:{Renderer:{Data:function(c,b,d){var a=!0;try{c.getTarget().update(Ext.decode(b.responseText))}catch(e){a=!1}return a},Component:function(f,d,e){var b=!0,a=f.getTarget(),c=[];try{c=Ext.decode(d.responseText)}catch(g){b=!1}if(b){a.suspendLayouts();if(e.removeAll){a.removeAll()}a.add(c);a.resumeLayouts(!0)}return b}}},target:null,loadOnRender:!1,loadMask:!1,renderer:'html',setTarget:function(b){var a=this;if(Ext.isString(b)){b=Ext.getCmp(b)}if(a.target&&a.target!==b){a.abort()}a.target=b;if(b&&a.loadOnRender){if(b.rendered){a.doLoadOnRender()}else {a.mon(b,'render',a.doLoadOnRender,a)}}},doLoadOnRender:function(){var a=this.loadOnRender;this.load(Ext.isObject(a)?a:null)},removeMask:function(){this.target.setLoading(!1)},addMask:function(a){this.target.setLoading(a)},setOptions:function(b,a){b.removeAll=Ext.isDefined(a.removeAll)?a.removeAll:this.removeAll;b.rendererScope=a.rendererScope||this.rendererScope||this.target},getRenderer:function(a){if(Ext.isFunction(a)){return a}var b=this.statics().Renderer;switch(a){case 'component':return b.Component;case 'data':return b.Data;default:return Ext.ElementLoader.Renderer.Html;}}},0,0,0,0,0,0,[Ext,'ComponentLoader'],0);Ext.cmd.derive('Ext.layout.SizeModel',Ext.Base,{constructor:function(e){var a=this,b=a.self,d=b.sizeModelsArray,c;Ext.apply(a,e);a[c=a.name]=!0;a.fixed=!(a.auto=a.natural||a.shrinkWrap);d[a.ordinal=d.length]=b[c]=b.sizeModels[c]=a},statics:{sizeModelsArray:[],sizeModels:{}},calculated:!1,configured:!1,constrainedMax:!1,constrainedMin:!1,natural:!1,shrinkWrap:!1,calculatedFromConfigured:!1,calculatedFromNatural:!1,calculatedFromShrinkWrap:!1,names:null},1,0,0,0,0,0,[Ext.layout,'SizeModel'],function(){var a=this,d=a.sizeModelsArray,b,c,f,g,e;new a({name:'calculated'});new a({name:'configured',names:{width:'width',height:'height'}});new a({name:'natural'});new a({name:'shrinkWrap'});new a({name:'calculatedFromConfigured',configured:!0,calculatedFrom:!0,names:{width:'width',height:'height'}});new a({name:'calculatedFromNatural',natural:!0,calculatedFrom:!0});new a({name:'calculatedFromShrinkWrap',shrinkWrap:!0,calculatedFrom:!0});new a({name:'constrainedMax',configured:!0,constrained:!0,names:{width:'maxWidth',height:'maxHeight'}});new a({name:'constrainedMin',configured:!0,constrained:!0,names:{width:'minWidth',height:'minHeight'}});new a({name:'constrainedDock',configured:!0,constrained:!0,constrainedByMin:!0,names:{width:'dockConstrainedWidth',height:'dockConstrainedHeight'}});for(b=0,f=d.length;b-1&&e','
    role="presentation"','class="{innerCtCls}">','{%this.renderBody(out,values)%}','
    ',''],beginLayout:function(a){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(a)},beforeLayoutCycle:function(d){var a=this.owner,c=a.inheritedState,b=a.inheritedStateInner;if(!c||c.invalid){c=a.getInherited();b=a.inheritedStateInner}if(d.widthModel.shrinkWrap){b.inShrinkWrapTable=!0}else {delete b.inShrinkWrapTable}},beginLayoutCycle:function(e){var a=this,g=a.outerCt,l=a.lastOuterCtWidth||'',k=a.lastOuterCtHeight||'',j=a.lastOuterCtTableLayout||'',i=e.state,f,d,c,b,h;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);d=c=b='';if(!e.widthModel.shrinkWrap){d='100%';h=a.owner.inheritedStateInner;f=a.getOverflowXStyle(e);b=h.inShrinkWrapTable||f==='auto'||f==='scroll'?'':'fixed'}if(!e.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){c='100%'}if(d!==l||a.hasOuterCtPxWidth){g.setStyle('width',d);a.lastOuterCtWidth=d;a.hasOuterCtPxWidth=!1}if(b!==j){g.setStyle('table-layout',b);a.lastOuterCtTableLayout=b}if(c!==k||a.hasOuterCtPxHeight){g.setStyle('height',c);a.lastOuterCtHeight=c;a.hasOuterCtPxHeight=!1}if(a.hasInnerCtPxHeight){a.innerCt.setStyle('height','');a.hasInnerCtPxHeight=!1}i.overflowAdjust=i.overflowAdjust||a.lastOverflowAdjust},calculate:function(b){var a=this,d=b.state,c=a.getContainerSize(b,!0),e=d.calculatedItems||(d.calculatedItems=a.calculateItems?a.calculateItems(b,c):!0);a.setCtSizeIfNeeded(b,c);if(e&&b.hasDomProp('containerChildrenSizeDone')){a.calculateContentSize(b);if(c.gotAll){if(a.manageOverflow&&!b.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(b,c)}return}}a.done=!1},calculateContentSize:function(a){var b=this,f=(a.widthModel.shrinkWrap?1:0)|(a.heightModel.shrinkWrap?2:0),d=f&1||undefined,c=f&2||undefined,e=0,g=a.props;if(d){if(isNaN(g.contentWidth)){++e}else {d=undefined}}if(c){if(isNaN(g.contentHeight)){++e}else {c=undefined}}if(e){if(d&&!a.setContentWidth(b.measureContentWidth(a))){b.done=!1}if(c&&!a.setContentHeight(b.measureContentHeight(a))){b.done=!1}}},calculateOverflow:function(d){var c=this,g,f,e,a,h,i,b;h=c.getOverflowXStyle(d)==='auto';i=c.getOverflowYStyle(d)==='auto';if(h||i){e=Ext.getScrollbarSize();b=d.overflowContext.el.dom;a=0;if(b.scrollWidth>b.clientWidth){a|=1}if(b.scrollHeight>b.clientHeight){a|=2}g=i&&a&2?e.width:0;f=h&&a&1?e.height:0;if(g!==c.lastOverflowAdjust.width||f!==c.lastOverflowAdjust.height){c.done=!1;d.invalidate({state:{overflowAdjust:{width:g,height:f},overflowState:a,secondPass:!0}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(b,a){var c=a.$layout,d=Ext.XTemplate,e=c.beforeBodyTpl,f=c.afterBodyTpl;if(e){d.getTpl(c,'beforeBodyTpl').applyOut(a,b)}this.renderItems(b,a);this.renderContent(b,a);if(f){d.getTpl(c,'afterBodyTpl').applyOut(a,b)}},doRenderPadding:function(d,b){var e=b.$layout,a=b.$layout.owner,c=a[a.contentPaddingProperty];if(e.managePadding&&c){d.push('padding:',a.unitizeBox(c))}},finishedLayout:function(b){var a=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){a.repaint()}if(Ext.isOpera){a.setStyle('position','relative');a.dom.scrollWidth;a.setStyle('position','')}},getContainerSize:function(c,d){var b=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),a=c.state.overflowAdjust;if(a){b.width-=a.width;b.height-=a.height}return b},getRenderData:function(){var b=this,a=Ext.layout.container.Container.prototype.getRenderData.call(this);a.innerCtCls=b.innerCtCls;a.outerCtCls=b.outerCtCls;return a},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(a){return a.overflowXStyle||(a.overflowXStyle=this.owner.scrollFlags.overflowX||a.overflowContext.getStyle('overflow-x'))},getOverflowYStyle:function(a){return a.overflowYStyle||(a.overflowYStyle=this.owner.scrollFlags.overflowY||a.overflowContext.getStyle('overflow-y'))},initContextItems:function(a){var b=this,d=a.target,c=b.owner.getOverflowEl();a.outerCtContext=a.getEl('outerCt',b);a.innerCtContext=a.getEl('innerCt',b);a.overflowContext=c===a.el?a:a.getEl(c);if(d[d.contentPaddingProperty]!==undefined){a.paddingContext=a.innerCtContext}},initLayout:function(){var a=this,b=Ext.getScrollbarSize().width,c=a.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&a.manageOverflow&&!a.hasOwnProperty('lastOverflowAdjust')){if(c.scrollable||a.reserveScrollbar){a.lastOverflowAdjust={width:b,height:0}}}},measureContentHeight:function(b){var a=this.outerCt.getHeight(),c=b.target;if(this.managePadding&&c[c.contentPaddingProperty]===undefined){a+=b.targetContext.getPaddingInfo().height}return a},measureContentWidth:function(f){var a,b,e,c,d;if(this.chromeCellMeasureBug){a=this.innerCt.dom;b=a.style;e=b.display;if(e==='table-cell'){b.display='';a.offsetWidth;b.display=e}}if(Ext.isSafari){a=this.outerCt.dom;b=a.style;b.display='table-cell';a.offsetWidth;a.style.display=''}c=this.outerCt.getWidth();d=f.target;if(this.managePadding&&d[d.contentPaddingProperty]===undefined){c+=f.targetContext.getPaddingInfo().width}return c},setCtSizeIfNeeded:function(a,h){var c=this,b=h.height,k=a.paddingContext.getPaddingInfo(),g=c.getTarget(),f=c.getOverflowXStyle(a),j=f==='auto'||f==='scroll',i=Ext.getScrollbarSize(),e,d;if(b&&!a.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){e=!0}if(Ext.isIE8){d=!0}if((e||d)&&j&&g.dom.scrollWidth>g.dom.clientWidth){b=Math.max(b-i.height,0)}if(e){a.outerCtContext.setProp('height',b+k.height);c.hasOuterCtPxHeight=!0}if(d){a.innerCtContext.setProp('height',b);c.hasInnerCtPxHeight=!0}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt},getScrollerEl:function(){return this.outerCt}},0,0,0,0,['layout.auto','layout.autocontainer'],0,[Ext.layout.container,'Auto'],function(){this.prototype.chromeCellMeasureBug=Ext.isChrome&&Ext.chromeVersion>=26});Ext.cmd.derive('Ext.ZIndexManager',Ext.Base,{alternateClassName:'Ext.WindowGroup',statics:{zBase:9000,activeCounter:0},constructor:function(b){var a=this;a.id=Ext.id(null,'zindex-mgr-');a.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(c,d){var a=(c.alwaysOnTop||0)-(d.alwaysOnTop||0);if(!a){a=c.getActiveCounter()-d.getActiveCounter()}return a}},filters:{filterFn:function(a){return a.isVisible()}}});a.zIndexStack.addObserver(a);a.front=null;a.globalListeners=Ext.GlobalEvents.on({beforehide:a.onComponentShowHide,show:a.onComponentShowHide,scope:a,destroyable:!0});if(b){if(b.isContainer){b.on('resize',a.onContainerResize,a);a.zseed=Ext.Number.from(a.rendered?b.getEl().getStyle('zIndex'):undefined,a.getNextZSeed());a.targetEl=b.getTargetEl();a.container=b}else {Ext.on('resize',a.onContainerResize,a);a.zseed=a.getNextZSeed();a.targetEl=Ext.get(b)}}else {a.zseed=a.getNextZSeed();Ext.onInternalReady(function(){Ext.on('resize',a.onContainerResize,a);a.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return Ext.ZIndexManager.zBase+=10000},setBase:function(a){this.zseed=a;return this.onCollectionSort()},onCollectionSort:function(){var d=this,b=d.front,k=b&&b.containsFocus,g=d.zseed,i=d.zIndexStack.getRange(),j=i.length,e,c,f,a,h=!1;for(e=0;e0;){a=c[b];if(a.isComponent&&e.call(d||a,a)===!1){return}}},destroy:function(){var a=this,c=a.zIndexStack.getRange(),d=c.length,b;for(b=0;b1){b.refresh()}if(a.hasListeners.afterlayout){a.fireEvent('afterlayout',a,c)}},beforeDestroy:function(){var a=this,d=a.items,c=a.floatingItems,b;if(d){while(b=d.first()){a.doRemove(b,!0)}}if(c){while(b=c.first()){a.doRemove(b,!0)}}Ext.destroy(a.layout);Ext.Component.prototype.beforeDestroy.call(this)},destroy:function(){var a=this;Ext.Component.prototype.destroy.call(this);if(a.items){a.items.destroy()}if(a.floatingItems){a.floatingItems.destroy()}a.refs=a.items=a.floatingItems=a.layout=null},beforeRender:function(){var a=this,c=a.getLayout(),b;a.preventChildDisable=!0;Ext.Component.prototype.beforeRender.call(this);a.preventChildDisable=!1;if(!c.initialized){c.initLayout()}b=c.targetCls;if(b){a.applyTargetCls(b)}},cascade:function(f,e,d){var a=this,h=a.items?a.items.items:[],j=h.length,g=0,b,c=d?d.concat(a):[a],i=c.length-1;if(f.apply(e||a,c)!==!1){for(;g','
    ','
    {msg}
    ','
    ',''],maskOnDisable:!1,skipLayout:!0,constructor:function(c){var a=this,b;if(arguments.length===2){b=a.target=c;c=arguments[1]}else {b=c.target}Ext.Component.prototype.constructor.call(this,c);if(b.isComponent){a.ownerCt=b;a.hidden=!0;a.renderTo=a.getMaskTarget();a.external=a.renderTo===Ext.getBody();a.bindComponent(b)}else {b=Ext.get(b);a.isElement=!0;a.renderTo=a.target}a.render(a.renderTo);if(a.store){a.bindStore(a.store,!0)}},initRenderData:function(){var a=Ext.Component.prototype.initRenderData.apply(this,arguments);a.msg=this.msg||'';return a},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(b){var a=this,c={scope:this,resize:a.sizeMask};if(a.external){c.added=a.onComponentAdded;c.removed=a.onComponentRemoved;if(b.floating){c.move=a.sizeMask;a.activeOwner=b}else {if(b.ownerCt){a.onComponentAdded(b.ownerCt)}}}a.mon(b,c);if(a.external){a.mon(Ext.GlobalEvents,{show:a.onContainerShow,hide:a.onContainerHide,expand:a.onContainerExpand,collapse:a.onContainerCollapse,scope:a})}},onComponentAdded:function(b){var a=this;delete a.activeOwner;a.floatParent=b;if(!b.floating){b=b.up('[floating]')}if(b){a.activeOwner=b;a.mon(b,'move',a.sizeMask,a);a.mon(b,'tofront',a.onOwnerToFront,a)}else {a.preventBringToFront=!0}b=a.floatParent.ownerCt;if(a.rendered&&a.isVisible()&&b){a.floatOwner=b;a.mon(b,'afterlayout',a.sizeMask,a,{single:!0})}},onComponentRemoved:function(d){var a=this,b=a.activeOwner,c=a.floatOwner;if(b){a.mun(b,'move',a.sizeMask,a);a.mun(b,'tofront',a.onOwnerToFront,a)}if(c){a.mun(c,'afterlayout',a.sizeMask,a)}delete a.activeOwner;delete a.floatOwner},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){a.el.on('mousedown',a.onMouseDown,a)}this.el.skipGarbageCollection=!0},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(b,a){this.el.setStyle('zIndex',a+1)},onContainerShow:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var a=this;if(a.rendered&&a.isVisible()){a.hide();a.showNext=!0}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var a=this,b=a.activeOwner||a.target,c=a.external?a.getOwner().el:a.getMaskTarget();if(a.rendered&&a.isVisible()){if(a.external){if(!a.isElement&&b.floating){a.onOwnerToFront(b,b.el.getZIndex())}a.el.setSize(c.getSize()).alignTo(c,'tl-tl')}a.msgWrapEl.center(a.el)}},bindStore:function(a,c){var b=this;Ext.destroy(b.proxyListeners);b.mixins.storeholder.bindStore.apply(b,arguments);a=b.store;if(a){while(a.getSource){a=a.getSource()}if(!a.loadsSynchronously()){b.proxyListeners=a.getProxy().on({exception:b.onLoad,scope:b,destroyable:!0})}if(a.isLoading()){b.onBeforeLoad()}}},getStoreListeners:function(d){var c=this.onLoad,b=this.onBeforeLoad,a={cachemiss:b,cachefilled:{fn:c,buffer:100}};if(!d.loadsSynchronously()){a.beforeload=b;a.load=c}return a},onDisable:function(){Ext.Component.prototype.onDisable.apply(this,arguments);if(this.loading){this.onLoad()}},getOwner:function(){return this.ownerCt||this.ownerCmp||this.floatParent},getMaskTarget:function(){var a=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?a.getTargetEl():a.getMaskTarget()||Ext.getBody()},onBeforeLoad:function(){var b=this,a=b.getOwner(),c;if(!b.disabled){b.loading=!0;if(a.componentLayoutCounter){b.maybeShow()}else {c=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=c;c.apply(a,arguments);b.maybeShow()}}}},maybeShow:function(){var a=this,b=a.getOwner();if(!b.isVisible(!0)){a.showNext=!0}else {if(a.loading&&b.rendered){a.show()}}},hide:function(){var b=this,a=b.ownerCt;if(b.isElement){a.unmask();b.fireEvent('hide',this);return}if(a){a.enableTabbing();a.setMasked(!1)}delete b.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;if(a.isElement){a.ownerCt.mask(this.useMsg?this.msg:'',this.msgCls);a.fireEvent('show',this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var a=this,b=a.ownerCt;a.loading=!0;Ext.Component.prototype.afterShow.apply(this,arguments);b.disableTabbing();b.setMasked(!0);a.el.restoreTabbableState();a.syncMaskState()},syncMaskState:function(){var a=this,c=a.ownerCt,b=a.el;if(a.isVisible()){if(a.hasOwnProperty('msgWrapCls')){b.dom.className=a.msgWrapCls}if(a.useMsg){a.msgTextEl.setHtml(a.msg)}else {a.msgEl.hide()}if(a.shim||Ext.useShims){b.enableShim(null,!0)}else {b.disableShim()}if(c.el.contains(Ext.Element.getActiveElement())){a.focus()}a.sizeMask()}},onLoad:function(){this.loading=!1;this.hide()},beforeDestroy:function(){this.ownerCt=null;this.bindStore(null);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.onDestroy.call(this)}},1,['loadmask'],['component','box','loadmask'],{'component':!0,'box':!0,'loadmask':!0},['widget.loadmask'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext,'LoadMask'],0);Ext.cmd.derive('Ext.layout.component.Component',Ext.layout.Layout,{type:'component',isComponentLayout:!0,nullBox:{},usesContentHeight:!0,usesContentWidth:!0,usesHeight:!0,usesWidth:!0,widthCache:{},heightCache:{},beginLayoutCycle:function(a,j){var c=this,f=c.owner,p=a.ownerCtContext,g=a.heightModel,h=a.widthModel,o=f.el.dom===document.body,e=f.lastBox||c.nullBox,d=f.el.lastBox||c.nullBox,m=!o,k=a.isTopLevel,i,b,n,l;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,a,j);if(j){if(c.usesContentWidth){++a.consumersContentWidth}if(c.usesContentHeight){++a.consumersContentHeight}if(c.usesWidth){++a.consumersWidth}if(c.usesHeight){++a.consumersHeight}if(p&&!p.hasRawContent){i=f.ownerLayout;if(i){if(i.usesWidth){++a.consumersWidth}if(i.usesHeight){++a.consumersHeight}}}}if(h.configured){n=f[h.names.width];if(k&&h.calculatedFrom){n=e.width}if(!o){m=c.setWidthInDom||(j?n!==d.width:h.constrained)}a.setWidth(n,m)}else {if(k){if(h.calculated){b=e.width;a.setWidth(b,b!==d.width)}b=e.x;a.setProp('x',b,b!==d.x)}}if(g.configured){l=f[g.names.height];if(k&&g.calculatedFrom){l=e.height}if(!o){m=j?l!==d.height:g.constrained}a.setHeight(l,m)}else {if(k){if(g.calculated){b=e.height;a.setHeight(b,b!==d.height)}b=e.y;a.setProp('y',b,b!==d.y)}}},finishedLayout:function(c){var h=this,e=c.children,g=h.owner,i,d,f,a,b;if(e){i=e.length;for(d=0;d','
    {text}
    ','
    ',''],componentLayout:'progressbar',ariaRole:'progressbar',initRenderData:function(){var a=this,b=a.value||0;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{internalText:!a.hasOwnProperty('textEl'),text:a.text||' ',percentage:b*100})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.textEl){a.textEl=Ext.get(a.textEl);a.updateText(a.text)}else {a.textEl=a.el.select('.'+a.baseCls+'-text')}},updateValue:function(a){this.updateProgress(a,Math.round(a*100)+'%')},updateProgress:function(b,c,d){b=b||0;var a=this,f=a.value,e=a.getTextTpl();a.value=b||(b=0);if(c!=null){a.updateText(c)}else {if(e){a.updateText(e.apply({value:b,percent:b*100}))}}if(a.rendered&&!a.destroyed){if(d===!0||d!==!1&&a.animate){a.bar.stopAnimation();a.bar.animate(Ext.apply({from:{width:f*100+'%'},to:{width:b*100+'%'}},a.animate))}else {a.bar.setStyle('width',b*100+'%')}}a.fireEvent('update',a,b,c);return a},updateText:function(b){var a=this;a.text=b;if(a.rendered){a.textEl.setHtml(a.text)}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(a){var b=this,c;if(!b.waitTimer){c=b;a=a||{};b.updateText(a.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var c=a.increment||10;d-=1;b.updateProgress(((d+c)%c+1)*(100/c)*0.01,null,a.animate)},interval:a.interval||1000,duration:a.duration,onStop:function(){if(a.fn){a.fn.apply(a.scope||b)}b.reset()},scope:c})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(b){var a=this;a.updateProgress(0);a.clearTimer();if(b===!0){a.hide()}return a},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},onDestroy:function(){var a=this,b=a.bar;a.clearTimer();if(a.rendered){if(a.textEl.isComposite){a.textEl.clear()}Ext.destroyMembers(a,'textEl','progressBar');if(b&&a.animate){b.stopAnimation()}}Ext.Component.prototype.onDestroy.call(this)}},0,['progressbar'],['component','box','progressbar'],{'component':!0,'box':!0,'progressbar':!0},['widget.progressbar'],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,'ProgressBar'],0);Ext.cmd.derive('Ext.dom.ButtonElement',Ext.dom.Element,{setSize:function(b,a,e){var d=this,c=d.component;Ext.dom.Element.prototype.setSize.call(this,b,a,e);c.btnWrap.setStyle('table-layout',!b||b==='auto'?'':'fixed');c.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return d},setStyle:function(a,c){var f=this,e=f.component,d,b;Ext.dom.Element.prototype.setStyle.call(this,a,c);if(a){if(a==='width'||typeof a!=='string'&&'width' in a){d=c||a.width;e.btnWrap.setStyle('table-layout',!d||d==='auto'?'':'fixed')}if(a==='height'||typeof a!=='string'&&'height' in a){b=c||a.height;e.btnEl.setStyle('height',!b||b==='auto'?'':'auto')}}return f},setHeight:function(a,b){Ext.dom.Element.prototype.setHeight.call(this,a,b);this.component.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return this},setWidth:function(a,b){Ext.dom.Element.prototype.setWidth.call(this,a,b);this.component.btnWrap.setStyle('table-layout',!a||a==='auto'?'':'fixed');return this}},0,0,0,0,0,0,[Ext.dom,'ButtonElement'],0);Ext.cmd.derive('Ext.button.Manager',Ext.Base,{singleton:!0,alternateClassName:'Ext.ButtonToggleManager',groups:{},pressedButton:null,init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a});a.initialized=!0}},onButtonMousedown:function(b,c){var a=this.pressedButton;if(a){a.onMouseUp(c)}this.pressedButton=b},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(c,e){if(e){var b=this.groups[c.toggleGroup],d=b.length,a;for(a=0;a{[values.$comp.renderIcon(values)]}{text}{[values.$comp.renderIcon(values)]}{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]} {closeText} tabindex="{tabIndex}" {$}="{.}">{arrowElText}
    ',iconTpl:'background-image:url({iconUrl});
    font-family:{glyphFontFamily};">&#{glyph};',scale:'small',allowedScales:['small','medium','large'],arrowAlign:'right',arrowCls:'arrow',maskOnDisable:!1,shrinkWrap:3,frame:!0,autoEl:{tag:'a',hidefocus:'on',unselectable:'on'},hasFrameTable:function(){return this.href&&this.frameTable},frameTableListener:function(){if(!this.disabled){this.doNavigate()}},doNavigate:function(){if(this.hrefTarget==='_blank'){window.open(this.getHref(),this.hrefTarget)}else {location.href=this.getHref()}},_triggerRegion:{},initComponent:function(){var a=this;a.addCls('x-unselectable');Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=!0;a.setMenu(a.menu,!1,!0)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty('preventDefault');if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=!1}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==''){a.enableToggle=!0}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var a=this,b=Ext.Component.prototype.getElConfig.call(this),d=a.getHref(),c=a.hrefTarget;if(b.tag==='a'){if(!a.disabled){b.tabIndex=a.tabIndex}if(d){if(!a.disabled){b.href=d;if(c){b.target=c}}}}if(!a.ariaStaticRoles[a.ariaRole]){if(a.menu&&!a.isSplitButton){b['aria-haspopup']=!0}if(a.enableToggle){b['aria-pressed']=!!a.pressed}}return b},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);if(this.pressed){this.addCls(this._pressedCls)}},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),this.getTemplateArgs())},getMenu:function(){return this.menu||null},setMenu:function(b,g,h){var a=this,e=a.menu,d=a.isSplitButton?a.arrowEl&&a.arrowEl.dom:a.ariaEl.dom,f,c;if(e&&!h){if(g!==!1&&a.destroyMenu){e.destroy()}e.ownerCmp=null}if(b){f=b.isMenu;b=Ext.menu.Manager.get(b,{ownerCmp:a});b.setOwnerCmp(a,f);b.menuClickBuffer=250;a.mon(b,{scope:a,show:a.onMenuShow,hide:a.onMenuHide});if(!e&&a.getArrowVisible()){a.split=!0;if(a.rendered){a._addSplitCls();a.updateLayout()}}a.menu=b;if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.isSplitButton?a.ariaArrowElAttributes||(a.ariaArrowElAttributes={}):a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {if(a.rendered){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns');a._removeSplitCls();a.updateLayout()}else {c=a.isSplitButton?a.ariaArrowElAttributes:a.ariaRenderAttributes;if(c){delete c['aria-haspopup'];delete c['aria-owns']}}a.split=!1;a.menu=null}},onRender:function(){var a=this,d,c,b;Ext.Component.prototype.onRender.apply(this,arguments);c=a.el;if(a.tooltip){a.setTooltip(a.tooltip,!0)}if(a.handleMouseEvents){b={scope:a,mouseover:a.onMouseOver,mouseout:a.onMouseOut,mousedown:a.onMouseDown};if(a.split){b.mousemove=a.onMouseMove}}else {b={scope:a}}if(Ext.supports.Touch){b.touchstart=a.onTouchStart}if(a.repeat){a.mon(new Ext.util.ClickRepeater(c,Ext.isObject(a.repeat)?a.repeat:{}),'click',a.onRepeatClick,a)}else {if(b[a.clickEvent]){d=!0}else {b[a.clickEvent]=a.onClick}}a.mon(c,b);if(a.hasFrameTable()){a.mon(a.frameTable,'click',a.frameTableListener,a)}if(d){a.mon(c,a.clickEvent,a.onClick,a)}Ext.button.Manager.register(a)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var a=this,i=a._btnCls,j=a._baseIconCls,d=a.getIconAlign(),b=a.glyph,f=Ext._glyphFontFamily,e=a.text,h=a._hasIcon(),g=a._hasIconCls,c;if(typeof b==='string'){c=b.split('@');b=c[0];f=c[1]}return {split:a.isSplitButton,innerCls:a._innerCls,splitCls:a.getArrowVisible()?a.getSplitCls():'',iconUrl:a.icon,iconCls:a.iconCls,glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:f,text:e||' ',closeText:a.closeText,textCls:e?a._textCls:'',noTextCls:e?'':a._noTextCls,hasIconCls:h?g:'',btnWrapCls:a._btnWrapCls,btnWrapStyle:a.width?'table-layout:fixed;':'',btnElStyle:a.height?'height:auto;':'',btnCls:i,baseIconCls:j,iconBeforeText:d==='left'||d==='top',iconAlignCls:h?g+'-'+d:'',textAlignCls:i+'-'+a.getTextAlign(),arrowElCls:a._arrowElCls,tabIndex:a.tabIndex}},renderIcon:function(a){return this.getTpl('iconTpl').apply(a)},setHref:function(c){var a=this,d=a.hrefTarget,b;a.href=c;if(!a.configuredWithPreventDefault){a.preventDefault=!c}if(a.rendered){b=a.el.dom;if(!c||a.disabled){b.removeAttribute('href');b.removeAttribute('hrefTarget')}else {b.href=a.getHref();if(d){b.target=d}}}},getHref:function(){var a=this,b=a.href;return b?Ext.urlAppend(b,Ext.Object.toQueryString(Ext.apply({},a.params,a.baseParams))):!1},setParams:function(c){var a=this,b;a.params=c;if(a.rendered){b=a.el.dom;if(a.disabled){b.removeAttribute('href')}else {b.href=a.getHref()||''}}},getSplitCls:function(){var a=this;return a.split?a.baseCls+'-'+a.arrowCls+' '+(a.baseCls+'-'+a.arrowCls+'-'+a.arrowAlign):''},setIcon:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.icon||'';a.icon=b;if(b!==c){if(d){d.setStyle('background-image',b?'url('+b+')':'');a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setIconCls:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.iconCls||'';a.iconCls=b;if(c!==b){if(d){d.removeCls(c);d.addCls(b);a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setGlyph:function(b){b=b||0;var a=this,c=a.btnIconEl,f=a.glyph,g=a._glyphCls,d,e;a.glyph=b;if(c){if(typeof b==='string'){e=b.split('@');b=e[0];d=e[1]||Ext._glyphFontFamily}if(!b){c.dom.innerHTML='';c.removeCls(g)}else {if(f!==b){c.dom.innerHTML='&#'+b+';';c.addCls(g)}}if(d){c.setStyle('font-family',d)}a._syncHasIconCls();if(a.didIconStateChange(f,b)){a.updateLayout()}}a.fireEvent('glyphchange',a,a.glyph,f);return a},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c||!b){a.clearTip()}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.el.id},b));a.tooltip=b}else {a.el.dom.setAttribute(a.getTipAttr(),b)}}}else {a.tooltip=b}return a},updateIconAlign:function(e,f){var b=this,a,d,c;if(b.rendered){a=b.btnEl;d=b.btnIconEl;c=b._hasIconCls;if(f){a.removeCls(c+'-'+f)}a.addCls(c+'-'+e);if(e==='top'||e==='left'){a.insertFirst(d)}else {a.appendChild(d)}b.updateLayout()}},updateTextAlign:function(e,d){var a=this,c=a.btnEl,b=a._btnCls;if(a.rendered){c.removeCls(b+'-'+d);c.addCls(b+'-'+e)}},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},clearTip:function(){var a=this,b=a.el;if(Ext.quickTipsActive&&Ext.isObject(a.tooltip)){Ext.tip.QuickTipManager.unregister(b)}else {b.dom.removeAttribute(a.getTipAttr())}},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this,b=a.menu;if(a.rendered){Ext.destroy(a.keyMap);delete a.keyMap}if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.onDestroy.call(this)},setHandler:function(a,b){this.handler=a;if(arguments.length>1){this.scope=b}return this},updateText:function(b,c){b=b==null?'':String(b);c=c||'';var a=this,e=a.btnInnerEl,d=a.btnEl;if(a.rendered){e.setHtml(b||' ');d[b?'addCls':'removeCls'](a._textCls);d[b?'removeCls':'addCls'](a._noTextCls);a.updateLayout()}a.fireEvent('textchange',a,c,b)},didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},click:function(a){return this.onClick(a)},setPressed:function(a){return this.toggle(a!==!1)},toggle:function(b,d){var a=this,c=a.ariaEl.dom;b=b===undefined?!a.pressed:!!b;if(a.fireEvent('beforetoggle',a,b)!==!1){if(b!==a.pressed){a[b?'addCls':'removeCls'](a._pressedCls);a.pressed=b;if(c){c.setAttribute('aria-pressed',b)}if(!d){a.fireEvent('toggle',a,b);Ext.callback(a.toggleHandler,a.scope,[a,b],0,a);if(a.reference&&a.publishState){a.publishState('pressed',b)}}}}return a},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(c){var a=this,b=a.menu,d=!c||c.pointerType;if(b&&a.rendered){if(a.tooltip&&Ext.quickTipsActive&&a.getTipAttr()!=='title'){Ext.tip.QuickTipManager.getQuickTip().cancelShow(a.el)}if(b.isVisible()){if(d){b.hide()}else {b.focus()}}else {if(!c||a.showEmptyMenu||b.items.getCount()>0){b.autoFocus=!d;b.showBy(a.el,a.menuAlign)}}}return a},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(b,a){this.onClick(a)},onTouchStart:function(a){this.doPreventDefault(a)},onEnterKey:function(a){this.onClick(a);a.stopEvent();return !1},onClick:function(b){var a=this;a.doPreventDefault(b);if(b.type!=='keydown'&&b.button){return}if(!a.disabled){a.doToggle();a.maybeShowMenu(b);a.fireHandler(b)}},doPreventDefault:function(a){if(a&&(this.preventDefault||this.disabled&&this.getHref())){a.preventDefault()}},fireHandler:function(b){var a=this;if(a.fireEvent('click',a,b)!==!1&&!a.destroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},doToggle:function(){var a=this;if(a.enableToggle&&(a.allowDepress!==!1||!a.pressed)){a.toggle()}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,!0,!0)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,!0,!0)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(b){var a=this,c=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(b)){if(!c){a.onMenuTriggerOver(b)}}else {if(c){a.onMenuTriggerOut(b)}}}},isWithinTrigger:function(d){var a=this,e=a.el,c,b;c=a.arrowAlign==='right'?d.getX()-a.getX():d.getY()-e.getY();b=a.getTriggerRegion();return c>b.begin&&c{iconMarkup}
    role="{textElRole}">{text}
    {iconMarkup}',iconTpl:'',_textAlignClasses:{left:'x-title-align-left',center:'x-title-align-center',right:'x-title-align-right'},_iconAlignClasses:{top:'x-title-icon-top',right:'x-title-icon-right',bottom:'x-title-icon-bottom',left:'x-title-icon-left'},_rotationClasses:{0:'x-title-rotate-none',1:'x-title-rotate-right',2:'x-title-rotate-left'},_rotationAngles:{1:90,2:270},baseCls:'x-title',_titleSuffix:'-title',_glyphCls:'x-title-glyph',_iconWrapCls:'x-title-icon-wrap',_baseIconCls:'x-title-icon',_itemCls:'x-title-item',_textCls:'x-title-text',afterComponentLayout:function(){var b=this,c=b.getRotation(),a,d,e;if(c&&!Ext.isIE8){e=b.el;a=b.lastBox;d=a.x;e.setStyle(b._getVerticalAdjustDirection(),d+(c===1?a.width:-a.height)+'px')}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var a=this,b=a.getRotation(),c=a.el;Ext.Component.prototype.onRender.call(this);if(b){c.setVertical(a._rotationAngles[b])}if(Ext.supports.FixedTableWidthBug){c._needsTableWidthFix=!0}},applyText:function(a){if(!a){a=' '}return a},beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.addCls(a._rotationClasses[a.getRotation()]);a.addCls(a._textAlignClasses[a.getTextAlign()])},getIconMarkup:function(){return this.getTpl('iconTpl').apply(this.getIconRenderData())},getIconRenderData:function(){var a=this,g=a.getIcon(),f=a.getIconCls(),b=a.getGlyph(),d=Ext._glyphFontFamily,e=a.getIconAlign(),c;if(typeof b==='string'){c=b.split('@');b=c[0];d=c[1]}return {id:a.id,ui:a.ui,itemCls:a._itemCls,iconUrl:g,iconCls:f,iconWrapCls:a._iconWrapCls,baseIconCls:a._baseIconCls,iconAlignCls:a._iconAlignClasses[e],glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:d}},initRenderData:function(){var a=this,c,b;b=Ext.apply({text:a.getText(),textElRole:a.textElRole,id:a.id,ui:a.ui,itemCls:a._itemCls,textCls:a._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(a._hasIcon()){c=a.getIconAlign();b.iconMarkup=a.getIconMarkup();b.iconBeforeTitle=c==='top'||c==='left'}return b},onAdded:function(a,f,e){var d=this,c=d._titleSuffix,b=a.baseCls;d.addCls([b+c,b+c+'-'+a.ui]);Ext.Component.prototype.onAdded.call(this,a,f,e)},updateGlyph:function(a,g){a=a||0;var b=this,f=b._glyphCls,c,d,e;b.glyph=a;if(b.rendered){b._syncIconVisibility();c=b.iconEl;if(typeof a==='string'){e=a.split('@');a=e[0];d=e[1]||Ext._glyphFontFamily}if(!a){c.dom.innerHTML='';c.removeCls(f)}else {if(g!==a){c.dom.innerHTML='&#'+a+';';c.addCls(f)}}if(d){c.setStyle('font-family',d)}if(b._didIconStateChange(g,a)){b.updateLayout()}}},updateIcon:function(a,c){a=a||'';var b=this,d;if(b.rendered&&a!==c){b._syncIconVisibility();d=b.iconEl;d.setStyle('background-image',a?'url('+a+')':'');if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateIconAlign:function(d,f){var a=this,b=a.iconWrapEl,e,c;if(a.iconWrapEl){e=a.el;c=a._iconAlignClasses;if(f){b.removeCls(c[f])}b.addCls(c[d]);if(d==='top'||d==='left'){e.insertFirst(b)}else {e.appendChild(b)}a.updateLayout()}},updateIconCls:function(a,c){a=a||'';var b=this,d;if(b.rendered&&c!==a){b._syncIconVisibility();d=b.iconEl;if(c){d.removeCls(c)}d.addCls(a);if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateRotation:function(d,e){var a=this,b,c;if(a.rendered){b=a.el;c=a._rotationClasses;a.removeCls(c[e]);a.addCls(c[d]);b.setHorizontal();if(d){b.setVertical(a._rotationAngles[d])}b.setStyle({right:'',left:'',top:'',height:'',width:''});a.lastBox=null;a.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,c){var a=this,b=a._textAlignClasses;if(a.rendered){if(c){a.removeCls(b[c])}a.addCls(b[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return 'left'},_didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var a=this,f=a.el,e=a._hasIcon(),b=a.iconWrapEl,d,c;if(e&&!b){c=a.iconAlign;d=c==='left'||c==='top';f.dom.insertAdjacentHTML(d?'afterbegin':'beforeend',a.getIconMarkup());b=a.iconWrapEl=f[d?'first':'last']();a.iconEl=b.first()}if(b){b.setDisplayed(e)}}}},0,['title'],['component','box','title'],{'component':!0,'box':!0,'title':!0},['widget.title'],0,[Ext.panel,'Title'],0);Ext.cmd.derive('Ext.panel.Tool',Ext.Component,{isTool:!0,baseCls:'x-tool',disabledCls:'x-tool-disabled',toolPressedCls:'x-tool-pressed',toolOverCls:'x-tool-over',childEls:['toolEl'],renderTpl:[''],toolOwner:null,tooltipType:'qtip',stopEvent:!0,ariaRole:'button',focusable:!0,tabIndex:0,keyHandlers:{SPACE:'onClick',ENTER:'onClick'},cacheHeight:!0,cacheWidth:!0,initComponent:function(){var a=this;a.type=a.type||a.id;Ext.applyIf(a.renderData,{baseCls:a.baseCls,type:a.type});a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);a.el.on({click:a.onClick,mousedown:a.onMouseDown,mouseover:a.onMouseOver,mouseout:a.onMouseOut,scope:a});b=a.tooltip;if(b){a.setTooltip(b)}},tipAttrs:{qtip:'data-qtip'},setTooltip:function(b,d){var a=this,g=a.tooltip,f=a.tooltipType,h=a.id,e=a.el,c;if(g&&Ext.quickTipsActive&&Ext.isObject(g)){Ext.tip.QuickTipManager.unregister(h)}a.tooltip=b;if(d){a.tooltipType=d}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:h},b))}else {if(e){if(d&&f&&d!==f){c=a.tipAttrs[f]||'title';e.dom.removeAttribute(c)}c=a.tipAttrs[d||f]||'title';e.dom.setAttribute(c,b)}}if(c!=='title'&&a.ariaRole&&a.ariaRole!=='presentation'){if(e){e.dom.setAttribute('aria-label',b)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-label']=b}}}},setType:function(b){var a=this,c=a.type;a.type=b;if(a.rendered){if(c){a.toolEl.removeCls(a.baseCls+'-'+c)}a.toolEl.addCls(a.baseCls+'-'+b)}else {a.renderData.type=b}return a},onDestroy:function(){var a=this,b=a.keyMap;a.setTooltip(null);delete a.toolOwner;Ext.Component.prototype.onDestroy.call(this)},privates:{onClick:function(b,c){var a=this;if(a.disabled){return !1}if(b.type!=='keydown'){a.el.removeCls(a.toolPressedCls+' '+a.toolOverCls)}if(a.stopEvent!==!1){b.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[b,c,a.ownerCt,a],0,a)}else {if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,b],0,a)}}a.fireEvent('click',a,b,a.toolOwner||a.ownerCt);return !0},onMouseDown:function(a){a.preventDefault();if(this.disabled){return !1}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return !1}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)}}},0,['tool'],['component','box','tool'],{'component':!0,'box':!0,'tool':!0},['widget.tool'],0,[Ext.panel,'Tool'],0);Ext.cmd.derive('Ext.util.KeyMap',Ext.Base,{alternateClassName:'Ext.KeyMap',eventName:'keydown',constructor:function(b){var a=this;if(arguments.length!==1||typeof b==='string'||b.dom||b.tagName||b===document||b.isComponent){a.legacyConstructor.apply(a,arguments);return}Ext.apply(a,b);a.bindings=[];if(!a.target.isComponent){a.target=Ext.get(a.target)}if(a.binding){a.addBinding(a.binding)}else {if(b.key){a.addBinding(b)}}a.enable()},legacyConstructor:function(d,b,c){var a=this;Ext.apply(a,{target:Ext.get(d),eventName:c||a.eventName,bindings:[]});if(b){a.addBinding(b)}a.enable()},addBinding:function(b){var a=this,e=b.key,c,d;if(a.processing){a.bindings=a.bindings.slice(0)}if(Ext.isArray(b)){for(c=0,d=b.length;c=i){return a}}}if(!g){return}a=c.findNextFocusableChild({beforeRender:h,items:b,step:!0});if(a){c.activateFocusable(a)}return a},clearFocusables:function(){var d=this,c=d.getFocusables(),e=c.length,a,b;for(b=0;b0?d0?d+b:e-1;for(;;a+=b){if(d<0&&(a>=e||a<0)){return null}else {if(a>=e){a=-1;continue}else {if(a<0){a=e;continue}else {if(a===d){return null}}}}c=g[a];if(!c||!c.focusable||c.disabled){continue}if(i||c.isFocusable&&c.isFocusable()){return c}}return null},getFocusableContainerEl:function(){return this.el},onFocusableChildAdd:function(a){if(this.enableFocusableContainer){return this.doFocusableChildAdd(a)}},activateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:this.activeChildTabIndex})}},deactivateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:undefined})}},isFocusableContainerActive:function(){var e=this,d=!1,c,b,a;c=e.getFocusableContainerEl();if(c&&c.isTabbable&&c.isTabbable()){d=!0}else {b=e.lastFocusedChild;a=b&&b.getFocusEl&&b.getFocusEl();if(a&&a.isTabbable&&a.isTabbable()){d=!0}}return d},doFocusableChildAdd:function(a){if(a.focusable){a.focusableContainer=this}},onFocusableChildRemove:function(a){if(this.enableFocusableContainer){return this.doFocusableChildRemove(a)}a.focusableContainer=null},doFocusableChildRemove:function(a){if(a===this.lastFocusedChild){this.lastFocusedChild=null;this.activateFocusableContainerEl()}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);this.mousedownTimestamp=a===this?Ext.Date.now():0;if(a===this){c.preventDefault()}},onFocusEnter:function(f){var a=this,d=f.toComponent,c=a.mousedownTimestamp,e=50,b;if(!a.enableFocusableContainer){return null}a.mousedownTimestamp=0;if(d===a){if(!c||Ext.Date.now()-c>e){b=a.initDefaultFocusable();if(b){a.deactivateFocusableContainerEl();b.focus()}}}else {a.deactivateFocusableContainerEl()}return d},onFocusLeave:function(c){var a=this,b=a.lastFocusedChild;if(!a.enableFocusableContainer){return}if(!a.destroyed&&!a.destroying){a.clearFocusables();if(b&&!b.disabled){a.activateFocusable(b)}else {a.activateFocusableContainerEl()}}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.enableFocusableContainer){return}a.clearFocusables();a.activateFocusable(b);if(b.needArrowKeys){a.guardFocusableChild(b)}},guardFocusableChild:function(c){var b=this,d=b.activeChildTabIndex,a;a=b.findNextFocusableChild({child:c,step:-1});if(a){a.setTabIndex(d)}a=b.findNextFocusableChild({child:c,step:1});if(a){a.setTabIndex(d)}},afterFocusableChildFocus:function(a){if(!this.enableFocusableContainer){return}this.lastFocusedChild=a},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this;if(!a.enableFocusableContainer){return}if(b!==a.lastFocusedChild){a.deactivateFocusable(b);if(!a.isFocusableContainerActive()){a.activateFocusableContainerEl()}}},beforeFocusableChildDisable:function(c){var a=this,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(c.hasFocus){b=a.findNextFocusableChild({child:c})||c.findFocusTarget();if(b){b.focus()}}},onFocusableChildDisable:function(d){var a=this,c=a.lastFocusedChild,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(d===c){a.activateFocusableContainerEl()}b=a.findNextFocusableChild({step:1});if(!b){a.deactivateFocusableContainerEl()}},onFocusableChildShow:Ext.privateFn,onFocusableChildHide:Ext.privateFn,onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn}},0,0,0,0,0,0,[Ext.util,'FocusableContainer'],0);Ext.cmd.derive('Ext.panel.Header',Ext.panel.Bar,{isHeader:!0,defaultType:'tool',indicateDrag:!1,weight:-1,shrinkWrap:3,iconAlign:'left',titleAlign:'left',titlePosition:0,titleRotation:'default',autoEl:{role:'presentation'},beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{xtype:'title',flex:1},merge:function(a,b){if(typeof a!=='object'){a={text:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:'x-header',initComponent:function(){var a=this,b=a.items,d=a.itemPosition,c=[a.headerCls];a.tools=a.tools||[];a.items=b=b?b.slice():[];if(d!==undefined){a._userItems=b.slice();a.items=b=[]}a.indicateDragCls=a.headerCls+'-draggable';if(a.indicateDrag){c.push(a.indicateDragCls)}a.addCls(c);a.syncNoBorderCls();a.enableFocusableContainer=!a.isAccordionHeader&&a.tools.length>0;if(a.enableFocusableContainer){a.ariaRole='toolbar'}Ext.Array.push(b,a.tools);a.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);a.on({dblclick:a.onDblClick,click:a.onClick,element:'el',scope:a})},addTool:function(b){var a=this;a.add(Ext.ComponentManager.create(b,'tool'));if(!a.isAccordionHeader&&a.tools.length>0&&!a.enableFocusableContainer){a.enableFocusableContainer=!0;a.ariaRole='toolbar';if(a.rendered){a.ariaEl.dom.setAttribute('role','toolbar');a.initFocusableContainer(!0)}}},afterLayout:function(){var a=this,e,b,c,d;if(a.vertical){b=a.frameTR;if(b){e=a.frameBR;c=a.frameTL;d=a.getWidth()-b.getPadding('r')-(c?c.getPadding('l'):a.el.getBorderWidth('l'))+'px';e.setStyle('background-position-x',d);b.setStyle('background-position-x',d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(a,d){var b=this,c,e;a=a||'';c=typeof a==='string';if(c){a={text:a}}if(d){Ext.suspendLayouts();d.setConfig(a);Ext.resumeLayouts(!0);a=d}else {if(c){a.xtype='title'}a.ui=b.ui;e='rotation' in a;a.id=b.id+'-title';if(b.isAccordionHeader){a.ariaRole='tab';a.textElRole=null;a.focusable=!0}a=Ext.create(a);if(!e&&b.vertical&&b.titleRotation==='default'){a.rotation=1}}return a},applyTitlePosition:function(b){var a=this.items.getCount();if(this._titleInItems){--a}return Math.max(Math.min(b,a),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var a=this,b=a.itemPosition;a.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(b!==undefined){a.insert(b,a._userItems)}},getTools:function(){return this.tools.slice()},onAdd:function(a,c){var b=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,a,c);if(a.isTool){b.push(a);b[a.type]=a}},onAdded:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,a,c,b)},onRemoved:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,a,c,b)},setDock:function(e){var a=this,c=a.getTitle(),b=a.getTitleRotation(),d=c.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,e);if(b==='default'){b=a.vertical?1:0;if(b!==d){c.setRotation(b)}if(a.rendered){a.resetItemMargins()}}Ext.resumeLayouts(!0)},updateGlyph:function(a){this.getTitle().setGlyph(a)},updateIcon:function(a){this.getTitle().setIcon(a)},updateIconAlign:function(a,b){this.getTitle().setIconAlign(a)},updateIconCls:function(a){this.getTitle().setIconCls(a)},updateTitle:function(a,b){if(!b){this.insert(this.getTitlePosition(),a);this._titleInItems=!0}this.titleCmp=a},updateTitleAlign:function(a,b){this.getTitle().setTextAlign(a)},updateTitlePosition:function(a){this.insert(a,this.getTitle())},updateTitleRotation:function(a){if(a==='default'){a=this.vertical?1:0}this.getTitle().setRotation(a)},privates:{fireClickEvent:function(c,a){var b='.'+Ext.panel.Tool.prototype.baseCls;if(!a.getTarget(b)){this.fireEvent(c,this,a)}},getFramingInfoCls:function(){var a=this,c=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),b=a.ownerCt;if(!a.expanding&&b&&(b.collapsed||a.isCollapsedExpander)){c+='-'+b.collapsedCls}return c+'-'+a.dock},onClick:function(a){this.fireClickEvent('click',a)},onDblClick:function(a){this.fireClickEvent('dblclick',a)},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {this.mixins.focusablecontainer.onFocusableContainerMousedown.apply(this,arguments)}},syncBeforeAfterTitleClasses:function(l){var c=this,j=c.items,i=j.items,h=c.getTitlePosition(),k=i.length,g=j.generation,f=c.syncBeforeAfterGen,e,d,b,a;if(!l&&f===g){return}c.syncBeforeAfterGen=g;for(b=0;bh){if(f){a.removeCls(d)}a.addCls(e)}}}},syncNoBorderCls:function(){var a=this,b=this.ownerCt,c=a.headerCls+'-noborder';if(b?b.border===!1&&!b.frame:a.border===!1){a.addCls(c)}else {a.removeCls(c)}}}},0,['header'],['component','box','container','header'],{'component':!0,'box':!0,'container':!0,'header':!0},['widget.header'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.panel,'Header'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.None',Ext.Base,{alternateClassName:'Ext.layout.boxOverflow.None',factoryConfig:{defaultType:'none'},isBoxOverflowHandler:!0,$configPrefixed:!1,$configStrict:!1,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var c=this,d=b.state.boxPlan,a;if(d&&d.tooNarrow){a=c.handleOverflow(b);if(a){if(a.reservedSpace){c.layout.publishInnerCtSize(b,a.reservedSpace)}}}else {c.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(e){var b=this,d=b.layout.owner,c,a;if(d.hasListeners.overflowchange){c=d.query('>[hidden]');a=c.length;if(a!==b.lastHiddenCount){d.fireEvent('overflowchange',b.lastHiddenCount,a,c);b.lastHiddenCount=a}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(b){var a;if(b.isToolbar){a='toolbar'}else {if(b.isTabBar){a='tab-bar'}else {if(b.isMenu){a='menu'}else {if(b.isBreadcrumb){a='breadcrumb'}else {a=b.getXType()}}}}return a},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return ''},setVertical:function(){var b=this,a=b.layout,c=a.innerCt;c.removeCls(b.getOverflowCls(a.oppositeDirection));c.addCls(b.getOverflowCls(a.direction))}},1,0,0,0,['box.overflow.None','box.overflow.none'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout.container.boxOverflow,'None',Ext.layout.boxOverflow,'None'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Scroller',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Scroller',animateScroll:!1,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:'x-box-scroller',beforeSuffix:'-before-scroller',afterSuffix:'-after-scroller',constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.scrollPosition=0;a.scrollSize=0},getPrefixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.beforeSuffix,cls:this.createScrollerCls('beforeX'),style:'display:none'}},getSuffixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.afterSuffix,cls:this.createScrollerCls('afterX'),style:'display:none'}},createScrollerCls:function(g){var c=this,d=c.layout,b=d.owner,e=c.getOwnerType(b),a=c.scrollerCls,f=a+' '+a+'-'+d.names[g]+' '+a+'-'+e+' '+a+'-'+e+'-'+b.ui;if(b.plain){f+=' '+a+'-plain'}return f},getOverflowCls:function(a){return this.scrollerCls+'-body-'+a},beginLayout:function(a){a.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(a){var b=this,f=a.state.boxPlan,e=b.layout,d=e.names,g=Math.min(b.getMaxScrollPosition(),a.innerCtScrollPos),c;if(f&&f.tooNarrow){c=a.childItems[a.childItems.length-1].props;b.scrollSize=c[d.x]+c[d.width];b.updateScrollButtons();e.innerCt[d.setScrollLeft](g)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,a)},handleOverflow:function(i){var a=this,d=a.layout.names,h=d.getWidth,f=d.parallelMargins,g,e,b,c;a.showScrollers();b=a.getBeforeScroller();c=a.getAfterScroller();g=b[h]()+c[h]()+b.getMargin(f)+c.getMargin(f);e=i.targetContext.getPaddingInfo()[d.width];return {reservedSpace:Math.max(g-e,0)}},getBeforeScroller:function(){var a=this;return a._beforeScroller||(a._beforeScroller=a.createScroller(a.beforeSuffix,'beforeRepeater','scrollLeft'))},getAfterScroller:function(){var a=this;return a._afterScroller||(a._afterScroller=a.createScroller(a.afterSuffix,'afterRepeater','scrollRight'))},createScroller:function(g,f,e){var b=this,d=b.layout.owner,c=b.scrollerCls,a;a=d.el.getById(d.id+g);a.addClsOnOver(c+'-hover');a.addClsOnClick(c+'-pressed');a.setVisibilityMode(Ext.Element.DISPLAY);b[f]=new Ext.util.ClickRepeater(a,{interval:b.scrollRepeatInterval,handler:e,scope:b});return a},createWheelListener:function(){var a=this;a.wheelListener=a.layout.innerCt.on('mousewheel',a.onMouseWheel,a,{destroyable:!0})},onMouseWheel:function(a){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,!1)},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;if(!a.wheelListener){a.createWheelListener()}a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')},hideScrollers:function(){var a=this,b=a.getBeforeScroller(),c=a.getAfterScroller();if(b){b.hide();c.hide();a.layout.owner.removeClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')}},destroy:function(){Ext.destroyMembers(this,'beforeRepeater','afterRepeater','_beforeScroller','_afterScroller','wheelListener');this.callParent()},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getScrollAnim:function(){return {duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var a=this,c=a.getBeforeScroller(),d=a.getAfterScroller(),b;if(!c||!d){return}b=a.scrollerCls+'-disabled';c[a.atExtremeBefore()?'addCls':'removeCls'](b);d[a.atExtremeAfter()?'addCls':'removeCls'](b);a.scrolling=!1},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,!1)},scrollRight:function(){this.scrollBy(this.scrollIncrement,!1)},getScrollPosition:function(){var b=this,c=b.layout,a;if(isNaN(b.scrollPosition)){a=c.innerCt[c.names.getScrollLeft]()}else {a=b.scrollPosition}return a},getMaxScrollPosition:function(){var c=this,b=c.layout,a=c.scrollSize-b.innerCt.lastBox[b.names.width];return a<0?0:a},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var c=this,d=c.getBeforeScroller(),e=c.getAfterScroller(),b=c.layout.names,a=c.scrollerCls;d.removeCls(a+'-'+b.beforeY);e.removeCls(a+'-'+b.afterY);d.addCls(a+'-'+b.beforeX);e.addCls(a+'-'+b.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(g,b){var a=this,d=a.layout,e=d.names,f=a.getScrollPosition(),c=Ext.Number.constrain(g,0,a.getMaxScrollPosition());if(c!==f&&!a.scrolling){a.scrollPosition=NaN;if(b===undefined){b=a.animateScroll}d.innerCt[e.scrollTo](e.beforeScrollX,c,b?a.getScrollAnim():!1);if(b){a.scrolling=!0}else {a.updateScrollButtons()}a.fireEvent('scroll',a,c,b?a.getScrollAnim():!1)}},scrollToItem:function(a,i){var c=this,e=c.layout,h=e.owner,f=e.names,j=e.innerCt,d,g,b;a=c.getItem(a);if(a!==undefined){if(a===h.items.first()){b=0}else {if(a===h.items.last()){b=c.getMaxScrollPosition()}else {d=c.getItemVisibility(a);if(!d.fullyVisible){g=a.getBox(!1,!0);b=g[f.x];if(d.hiddenEnd){b-=j[f.getWidth]()-g[f.width]}}}}if(b!==undefined){c.scrollTo(b,i)}}},getItemVisibility:function(i){var d=this,h=d.getItem(i).getBox(!0,!0),g=d.layout,c=g.names,b=h[c.x],f=b+h[c.width],a=d.getScrollPosition(),e=a+g.innerCt[c.getWidth]();return {hiddenStart:be,fullyVisible:b>=a&&f<=e}}},1,0,0,0,['box.overflow.Scroller','box.overflow.scroller'],[['observable',Ext.mixin.Observable]],[Ext.layout.container.boxOverflow,'Scroller',Ext.layout.boxOverflow,'Scroller'],0);Ext.cmd.derive('Ext.dd.DragDropManager',Ext.Base,{singleton:!0,alternateClassName:['Ext.dd.DragDropMgr','Ext.dd.DDM'],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:!0,stopPropagation:!0,initialized:!1,locked:!1,init:function(){this.initialized=!0},POINT:0,INTERSECT:1,mode:0,notifyOccluded:!1,dragCls:'x-dd-drag-current',_execOnAll:function(f,g){var c=this.ids,d,e,b,a;for(d in c){if(c.hasOwnProperty(d)){a=c[d];for(e in a){if(a.hasOwnProperty(e)){b=a[e];if(!this.isTypeOfDD(b)){continue}b[f].apply(b,g)}}}}},addListeners:function(){var a=this;a.init();Ext.getDoc().on({mouseup:a.handleMouseUp,mousemove:{fn:a.handleMouseMove,capture:!1},dragstart:a.preventDrag,drag:a.preventDrag,dragend:a.preventDrag,capture:!0,scope:a});Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},preventDrag:function(a){if(this.isMouseDown){a.stopPropagation()}},_onResize:function(a){this._execOnAll('resetConstraints',[])},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isLocked:function(){return this.locked},locationCache:{},useCache:!0,clickPixelThresh:8,dragThreshMet:!1,clickTimeout:null,startX:0,startY:0,regDragDrop:function(b,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][b.id]=b},removeDDFromGroup:function(c,a){if(!this.ids[a]){this.ids[a]={}}var b=this.ids[a];if(b&&b[c.id]){delete b[c.id]}},_remove:function(b,f){var a=this,d=a.ids,e=b.groups,c;if(a.clearingAll){return}if(a.dragCurrent===b){a.dragCurrent=null}for(c in e){if(e.hasOwnProperty(c)){if(f){delete d[c]}else {if(d[c]){delete d[c][b.id]}}}}delete a.handleIds[b.id];delete a.locationCache[b.id]},regHandle:function(a,b){if(!this.handleIds[a]){this.handleIds[a]={}}this.handleIds[a][b]=b},isDragDrop:function(a){return this.getDDById(a)?!0:!1},getRelated:function(f,e){var b=[],c,d,a;for(c in f.groups){for(d in this.ids[c]){a=this.ids[c][d];if(!this.isTypeOfDD(a)){continue}if(!e||a.isTarget){b[b.length]=a}}}return b},isLegalTarget:function(e,d){var b=this.getRelated(e,!0),a,c;for(a=0,c=b.length;aa.clickPixelThresh||e>a.clickPixelThresh){a.startDrag(a.startX,a.startY)}}if(a.dragThreshMet){c.b4Drag(b);c.onDrag(b);if(!c.moveOnly){a.fireEvents(b,!1)}}a.stopEvent(b);return !0},fireEvents:function(e,t){var d=this,s=Ext.supports.Touch,c=d.dragCurrent,l=d.currentPoint,v=l.x,w=l.y,j=[],r=[],h=[],i=[],g=[],k=[],u=s?document.documentElement.clientWidth/window.innerWidth:1,p,b,o,q,a,f,n,m;if(!c||c.isLocked()){return}m=!(c.deltaX<0||c.deltaY<0);if(s||!d.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&m){p=c.getDragEl();if(m){p.style.visibility='hidden'}e.target=document.elementFromPoint(v/u,w/u);if(m){p.style.visibility='visible'}}for(a in d.dragOvers){b=d.dragOvers[a];delete d.dragOvers[a];if(!d.isTypeOfDD(b)||b.destroyed){continue}if(d.notifyOccluded){if(!this.isOverTarget(l,b,d.mode)){h.push(b)}}else {if(!e.within(b.getEl())){h.push(b)}}r[a]=!0}for(n in c.groups){if('string'!==typeof n){continue}for(a in d.ids[n]){b=d.ids[n][a];if(d.isTypeOfDD(b)&&(o=b.getEl())&&b.isTarget&&!b.isLocked()&&Ext.fly(o).isVisible(!0)&&(b!==c||c.ignoreSelf===!1)){if(d.notifyOccluded){if((b.zIndex=d.getZIndex(o))!==-1){q=!0}j.push(b)}else {if(e.within(b.getEl())){j.push(b);break}}}}}if(q){Ext.Array.sort(j,d.byZIndex)}for(a=0,f=j.length;a','',''],isSplitter:!0,baseCls:'x-splitter',collapsedClsInternal:'x-splitter-collapsed',canResize:!0,collapsible:null,collapseOnDblClick:!0,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:'next',horizontal:!1,vertical:!1,size:5,tracker:null,ariaRole:'separator',focusable:!0,tabIndex:0,getTrackerConfig:function(){return Ext.apply({xclass:'Ext.resizer.SplitterTracker',el:this.el,splitter:this},this.tracker)},beforeRender:function(){var a=this,c=a.getCollapseTarget(),b=a.collapsible,d;Ext.Component.prototype.beforeRender.call(this);if(c.collapsed){a.addCls(a.collapsedClsInternal)}if(!a.canResize){a.addCls(a.baseCls+'-noresize')}Ext.applyIf(a.renderData,{collapseDir:a.getCollapseDirection(),collapsible:b!==null?b:c.collapsible});a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-orientation']=a.orientation;a.protoEl.unselectable()},onRender:function(){var a=this,b;Ext.Component.prototype.onRender.apply(this,arguments);if(a.performCollapse!==!1){if(a.renderData.collapsible){a.mon(a.collapseEl,'click',a.toggleTargetCmp,a)}if(a.collapseOnDblClick){a.mon(a.el,'dblclick',a.toggleTargetCmp,a)}}a.getCollapseTarget().on({collapse:a.onTargetCollapse,expand:a.onTargetExpand,beforeexpand:a.onBeforeTargetExpand,beforecollapse:a.onBeforeTargetCollapse,scope:a});if(a.canResize){a.tracker=Ext.create(a.getTrackerConfig());a.relayEvents(a.tracker,['beforedragstart','dragstart','dragend'])}b=a.collapseEl;if(b){b.lastCollapseDirCls=a.collapseDirProps[a.collapseDirection].cls}},getCollapseDirection:function(){var b=this,a=b.collapseDirection,c,f,d,e;if(!a){c=b.collapseTarget;if(c.isComponent){a=c.collapseDirection}if(!a){e=b.ownerCt.layout.type;if(c.isComponent){d=b.ownerCt.items;f=Number(d.indexOf(c)===d.indexOf(b)-1)<<1|Number(e==='hbox')}else {f=Number(b.collapseTarget==='prev')<<1|Number(e==='hbox')}a=['bottom','right','top','left'][f]}b.collapseDirection=a}b.setOrientation(a==='top'||a==='bottom'?'horizontal':'vertical');return a},getCollapseTarget:function(){var a=this;return a.collapseTarget.isComponent?a.collapseTarget:a.collapseTarget==='prev'?a.previousSibling():a.nextSibling()},setCollapseEl:function(b){var a=this.collapseEl;if(a){a.setDisplayed(b)}},onBeforeTargetExpand:function(a){this.setCollapseEl('none')},onBeforeTargetCollapse:function(){this.setCollapseEl('none')},onTargetCollapse:function(b){var a=this;if(b===a.getCollapseTarget()&&b[a.orientation==='vertical'?'collapsedHorizontal':'collapsedVertical']()){a.el.addCls(a.collapsedClsInternal+' '+(a.collapsedCls||''))}a.setCollapseEl('')},onTargetExpand:function(b){var a=this;a.el.removeCls(a.collapsedClsInternal+' '+(a.collapsedCls||''));a.setCollapseEl('')},collapseDirProps:{top:{cls:'x-layout-split-top'},right:{cls:'x-layout-split-right'},bottom:{cls:'x-layout-split-bottom'},left:{cls:'x-layout-split-left'}},orientationProps:{horizontal:{opposite:'vertical',fixedAxis:'height',stretchedAxis:'width'},vertical:{opposite:'horizontal',fixedAxis:'width',stretchedAxis:'height'}},applyCollapseDirection:function(){var c=this,a=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],b;if(a){b=a.lastCollapseDirCls;if(b){a.removeCls(b)}a.addCls(a.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var a=this,e=a.orientation,b=a.orientationProps[e],f=a.size,d=b.fixedAxis,c=b.stretchedAxis,g=a.baseCls+'-';a[e]=!0;a[b.opposite]=!1;if(!a.hasOwnProperty(d)||a[d]==='100%'){a[d]=f}if(!a.hasOwnProperty(c)||a[c]===f){a[c]='100%'}a.removeCls(g+b.opposite);a.addCls(g+e)},setOrientation:function(b){var a=this;if(a.orientation!==b){a.orientation=b;a.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,e){var a=this.getCollapseTarget(),c=a.placeholder,b;if(Ext.isFunction(a.expand)&&Ext.isFunction(a.collapse)){if(c&&!c.hidden){b=!0}else {b=!a.hidden}if(b){if(a.collapsed){a.expand()}else {if(a.collapseDirection){a.collapse()}else {a.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},beforeDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.beforeDestroy.call(this)}},0,['splitter'],['component','box','splitter'],{'component':!0,'box':!0,'splitter':!0},['widget.splitter'],0,[Ext.resizer,'Splitter'],0);Ext.define('Ext.theme.neptune.resizer.Splitter',{override:'Ext.resizer.Splitter',size:8});Ext.define('Ext.theme.triton.resizer.Splitter',{override:'Ext.resizer.Splitter',size:10});Ext.cmd.derive('Ext.layout.container.Box',Ext.layout.container.Container,{alternateClassName:'Ext.layout.BoxLayout',type:'box',config:{align:'begin',constrainAlign:!1,enableSplitters:!0,overflowHandler:{$value:null,merge:function(a,b){if(typeof a==='string'){a={type:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},padding:0,pack:'start',stretchMaxPartner:undefined,vertical:!1,alignRoundingMethod:'round'},itemCls:'x-box-item',targetCls:'x-box-layout-ct',targetElCls:'x-box-target',innerCls:'x-box-inner',manageMargins:!0,createsInnerCt:!0,childEls:['innerCt','targetEl'],renderTpl:['{%var oc,l=values.$comp.layout,oh=l.overflowHandler;if (oh && oh.getPrefixConfig!==Ext.emptyFn) {if(oc=oh.getPrefixConfig())dh.generateMarkup(oc, out)}%}{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:!0,definitions:'var dh=Ext.DomHelper;'}],constructor:function(c){var a=this,b;Ext.layout.container.Container.prototype.constructor.apply(this,arguments);a.setVertical(a.vertical);a.flexSortFn=a.flexSort.bind(a);b=typeof a.padding;if(b==='string'||b==='number'){a.padding=Ext.util.Format.parseBox(a.padding);a.padding.height=a.padding.top+a.padding.bottom;a.padding.width=a.padding.left+a.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(h,b){var a=this,f=a.sizePolicy,g=a.align,p=h.flex,c=g,o=a.names,e=o.height,m=o.width,q=h[m],n=h[e],d=a._percentageRe,i=d.test(q),l=g==='stretch',j=g==='stretchmax',k=a.constrainAlign;if(!b&&(l||p||i||k&&!j)){b=a.owner.getSizeModel()}if(l){if(!d.test(n)&&b[e].shrinkWrap){c='stretchmax'}}else {if(!j){if(d.test(n)){c='stretch'}else {if(k&&!b[e].shrinkWrap){c='stretchmax'}else {c=''}}}}if(p||i){if(!b[m].shrinkWrap){f=f.flex}}return f[c]},flexSort:function(o,p){var k=this.names.maxWidth,l=this.names.minWidth,j=Infinity,c=o.target,d=p.target,m=c.flex,n=d.flex,a=0,g,i,f,h,e,b;f=c[k]||j;h=d[k]||j;g=c[l]||0;i=d[l]||0;e=isFinite(g)||isFinite(i);b=isFinite(f)||isFinite(h);if(e||b){if(b){a=f-h}if(a===0&&e){a=i-g}if(a===0){if(b){a=n-m}else {a=m-n}}}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(a){var b=this;if(b.direction==='vertical'&&a.collapsedVertical()){a.collapseMemento.capture(['flex']);delete a.flex}else {if(b.direction==='horizontal'&&a.collapsedHorizontal()){a.collapseMemento.capture(['flex']);delete a.flex}}},beginExpand:function(a){a.collapseMemento.restore(['flex'])},beginLayout:function(a){var c=this,f=c.owner,b=f.stretchMaxPartner,h=c.innerCt.dom.style,i=c.names,g=c.overflowHandler,e=f.getScrollable(),d;a.boxNames=i;if(g){g.beginLayout(a)}if(typeof b==='string'){b=Ext.getCmp(b)||f.query(b)[0]}a.stretchMaxPartner=b&&a.context.getCmp(b);Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);a.innerCtContext=a.getEl('innerCt',c);a.targetElContext=a.getEl('targetEl',c);if(e){a.ownerScrollable=e;d=e.getPosition();if(d.x||d.y){a.scrollRestore=d}}h.width=h.height=''},beginLayoutCycle:function(a,l){var c=this,i=a.state,g=a.ownerScrollable,b=c.align,e=a.boxNames,d=c.pack,k=c._centerRe,j=c.overflowHandler,m=a.state.canScroll,h,f;if(j){j.beginLayoutCycle(a,l)}Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);a.parallelSizeModel=h=a[e.widthModel];a.perpendicularSizeModel=f=a[e.heightModel];a.boxOptions={align:b={stretch:b==='stretch',stretchmax:b==='stretchmax',center:k.test(b),bottom:c._endRe.test(b)},pack:d={center:k.test(d),end:d==='end'}};if(g){if(!m){i.canScroll={parallel:!h.shrinkWrap&&g[e.getX](),perpendicular:!f.shrinkWrap&&g[e.getY]()}}if(!i.actualScroll){i.actualScroll={parallel:!1,perpendicular:!1}}}if(b.stretch&&f.shrinkWrap){b.stretchmax=!0;b.stretch=!1}b.nostretch=!(b.stretch||b.stretchmax);if(h.shrinkWrap){d.center=d.end=!1}c.cacheFlexes(a);c.targetEl.setWidth(20000)},cacheFlexes:function(a){var u=this,d=a.boxNames,x=d.widthModel,w=d.heightModel,z=a.boxOptions.align.nostretch,s=0,r=a.childItems,v=r.length,h=[],t=0,g=0,o=0,p=d.minWidth,y=d.minHeight,q=u._percentageRe,n=0,m=0,b,c,l,f,i,j,k,e;while(v--){c=r[v];b=c.target;j=c[x];if(j.calculated){c.flex=l=b.flex;if(l){s+=l;h.push(c);t+=b[p]||0}else {f=q.exec(b[d.width]);c.percentageParallel=parseFloat(f[1])/100;++n}}if(j.configured){k=b[d.width]}else {k=b[p]||0}o+=k;i=c[w];if(z&&i.calculated){f=q.exec(b[d.height]);c.percentagePerpendicular=parseFloat(f[1])/100;++m}if(i.configured){e=b[d.height]}else {e=b[y]||0}if(e>g){g=e}}a.flexedItems=h;a.flexedMinWidth=t;a.smallestWidth=o;a.smallestHeight=g;a.totalFlex=s;a.percentageWidths=n;a.percentageHeights=m;Ext.Array.sort(h,u.flexSortFn)},calculate:function(b){var c=this,f=b.boxNames,a=b.state,h=a.actualScroll,g=a.needsScroll,e=a.canScroll,d=a.boxPlan||(a.boxPlan={}),i=c.overflowHandler;d.targetSize=c.getContainerSize(b);if(e&&!g){a.needsScroll=g={parallel:e.parallel&&d.targetSize[f.width]j){a.invalidate({before:K,after:L,layout:l,childHeight:j,names:d});c.state.parallelDone=!1}if(isNaN(b=o(b,g+i,a.target[d.minHeight]||0))){return !1}}}if(v){b+=q;c[d.hasOverflowX]=!0;c.target.componentLayout[d.setHeightInDom]=!0;c[d.invalidateScrollX]=Ext.isIE8}p=c.stretchMaxPartner;if(p){c.setProp('maxChildHeight',b);w=p.childItems;if(w&&w.length){b=o(b,p.getProp('maxChildHeight'));if(isNaN(b)){return !1}}}c[d.setContentHeight](b+l.padding[e]+c.targetContext.getPaddingInfo()[e]);if(v){b-=q}if(b>y[e]&&H&&H.perpendicular){C.actualScroll.perpendicular=!0}t.maxSize=b;if(O){f=b}else {if(B||A||D){if(I){f=h?b:j}else {f=h?b:o(j,b)}f-=c.innerCtContext.getBorderInfo()[e]}}for(k=0;k0){n=u+Math[l.alignRoundingMethod](s/2)}}else {if(A){n=o(0,f-n-a.props[e])}}}a.setProp(M,n)}return !0},onBeforeConstrainInvalidateChild:function(b,c){var a=c.names.heightModel;if(!b[a].constrainedMin){b[a]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(a,c){var b=c.names;a.setProp(b.beforeY,0);if(a[b.heightModel].calculated){a[b.setHeight](c.childHeight)}},calculateStretchMax:function(k,c,o){var f=this,h=c.height,l=c.width,g=k.childItems,n=g.length,m=o.maxSize,i=f.onBeforeStretchMaxInvalidateChild,j=f.onAfterStretchMaxInvalidateChild,a,b,d,e;for(d=0;d':{xtype:'tbfill',height:0}},1:{'->':{xtype:'tbfill',width:0}}}},initComponent:function(){var a=this,b=a.layout,c=a.vertical;if(c===undefined){a.vertical=c=a.dock==='right'||a.dock==='left'}a.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:c?'vbox':'hbox',align:c?'stretchmax':'middle'});if(a.overflowHandler){b.overflowHandler=a.overflowHandler}else {if(a.enableOverflow){b.overflowHandler='menu'}}if(c){a.addClsWithUI('vertical')}if(a.ui==='footer'){a.ignoreBorderManagement=!0}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(d){var c=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),e=c.layout,a;if(d&&(c.enableOverflow||c.overflowHandler==='menu')){a=e.overflowHandler;if(a&&a.menu){b=b.concat(a.menu.getRefItems(d))}}return b},lookupComponent:function(a){var d=arguments,b,c;if(typeof a==='string'){c=Ext.toolbar.Toolbar;b=c.shortcutsHV[this.vertical?1:0][a]||c.shortcuts[a];if(typeof b==='string'){a={xtype:b}}else {if(b){a=Ext.apply({},b)}else {a={xtype:'tbtext',text:a}}}this.applyDefaults(a);d=[a]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(a){var b=this,d=b.ui==='footer',c=d?b.defaultFooterButtonUI:b.defaultButtonUI;if(a.isSegmentedButton){if(a.getDefaultUI()==='default'&&!a.config.hasOwnProperty('defaultUI')){a.setDefaultUI(c)}}else {if(a.ui==='default'&&!a.hasOwnProperty('ui')){if(a.isButton){a.ui=c}else {if(a.isFormField){a.ui=d?b.defaultFooterFieldUI:b.defaultFieldUI}}}}if(a instanceof Ext.toolbar.Separator){a.setUI(b.vertical?'vertical':'horizontal')}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(a){if(a.needArrowKeys&&this.enableFocusableContainer){this.enableFocusableContainer=!1}Ext.container.Container.prototype.onAdd.apply(this,arguments);this.trackMenu(a)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,!0)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(b,c){var a=this;if(a.trackMenus&&b.menu){b[c?'un':'on']({mouseover:a.onButtonOver,menushow:a.onButtonMenuShow,menuhide:a.onButtonMenuHide,scope:a})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(a,c){var b=this.activeMenuBtn;if(b&&b!==a){b.hideMenu();a.focus();a.showMenu(c);this.activeMenuBtn=a}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,['toolbar'],['component','box','container','toolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0},['widget.toolbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,'Toolbar',Ext,'Toolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Toolbar',{override:'Ext.toolbar.Toolbar',usePlainButtons:!1,border:!1});Ext.cmd.derive('Ext.dd.DragDrop',Ext.Base,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:!1,lock:function(){this.locked=!0},moveOnly:!1,unlock:function(){this.locked=!1},isTarget:!0,padding:null,_domRef:null,__ygDragDrop:!0,constrainX:!1,constrainY:!1,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:!1,xTicks:null,yTicks:null,primaryButtonOnly:!0,available:!1,hasOuterHandles:!1,triggerEvent:'mousedown',b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(b,a){},b4DragOver:function(a){},onDragOver:function(b,a){},b4DragOut:function(a){},onDragOut:function(b,a){},b4DragDrop:function(a){},onDragDrop:function(b,a){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(j,a,k){if(Ext.isNumber(a)){a={left:a,right:a,top:a,bottom:a}}a=a||this.defaultPadding;var c=Ext.get(this.getEl()).getBox(),e=Ext.get(j),i=e.getScroll(),b,d=e.dom,h,g,f;if(d===document.body){b={x:i.left,y:i.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else {h=e.getXY();b={x:h[0],y:h[1],width:d.clientWidth,height:d.clientHeight}}g=c.y-b.y;f=c.x-b.x;this.resetConstraints();this.setXConstraint(f-(a.left||0),b.width-f-c.width-(a.right||0),this.xTickSize);this.setYConstraint(g-(a.top||0),b.height-g-c.height-(a.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(b,d,c){var a=this;a.el=a.el||Ext.get(b);a.initTarget(b,d,c);Ext.get(a.id).on(a.triggerEvent,a.handleMouseDown,a)},initTarget:function(a,b,c){this.config=c||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof a!=='string'){a=Ext.id(a)}this.id=a;this.addToGroup(b?b:'default');this.handleElId=a;this.setDragElId(a);this.invalidHandleTypes={A:'A'};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=this.config.isTarget!==!1;this.maintainOffset=this.config.maintainOffset;this.primaryButtonOnly=this.config.primaryButtonOnly!==!1},handleOnAvailable:function(){this.available=!0;this.resetConstraints();this.onAvailable()},setPadding:function(a,b,c,d){if(!b&&0!==b){this.padding=[a,a,a,a]}else {if(!c&&0!==c){this.padding=[a,b,a,b]}else {this.padding=[a,b,c,d]}}},setInitPosition:function(e,f){var d=this.getEl(),b,c,a;if(!this.DDMInstance.verifyEl(d)){return}b=e||0;c=f||0;a=Ext.fly(d).getXY();this.initPageX=a[0]-b;this.initPageY=a[1]-c;this.lastPageX=a[0];this.lastPageY=a[1];this.setStartPosition(a)},setStartPosition:function(b){var a=b||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=a[0];this.startPageY=a[1]},addToGroup:function(a){this.groups[a]=!0;this.DDMInstance.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDMInstance.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.handleElId=a;this.DDMInstance.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}Ext.get(a).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=!0},unreg:function(){var a=this,b;if(a._domRef){b=Ext.fly(a.id);if(b){b.un(a.triggerEvent,a.handleMouseDown,a)}}a._domRef=null;a.DDMInstance._remove(a,a.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return this.DDMInstance.isLocked()||this.locked},handleMouseDown:function(b,c){var a=this;if(a.primaryButtonOnly&&b.button||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(b.getPoint(),a)){if(a.clickValidator(b)){a.setStartPosition();a.b4MouseDown(b);a.onMouseDown(b);a.DDMInstance.handleMouseDown(b,a);a.DDMInstance.stopEvent(b)}}},clickValidator:function(b){var a=b.getTarget();return this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id))},addInvalidHandleType:function(b){var a=b.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){var b=a.toUpperCase();delete this.invalidHandleTypes[b]},removeInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(c){var b=this.invalidHandleClasses,d=b.length,a;for(a=0;a=this.minX;a=a-c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}for(a=this.initPageX;a<=this.maxX;a=a+c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,c){this.yTicks=[];this.yTickSize=c;var b={},a;for(a=this.initPageY;a>=this.minY;a=a-c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}for(a=this.initPageY;a<=this.maxY;a=a+c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(c,b,a){this.leftConstraint=c;this.rightConstraint=b;this.minX=this.initPageX-c;this.maxX=this.initPageX+b;if(a){this.setXTicks(this.initPageX,a)}this.constrainX=!0},clearConstraints:function(){this.constrainX=!1;this.constrainY=!1;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(c,b,a){this.topConstraint=c;this.bottomConstraint=b;this.minY=this.initPageY-c;this.maxY=this.initPageY+b;if(a){this.setYTicks(this.initPageY,a)}this.constrainY=!0},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var a=this.maintainOffset?this.lastPageX-this.initPageX:0,b=this.maintainOffset?this.lastPageY-this.initPageY:0;this.setInitPosition(a,b)}else {this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(d,a){if(!a){return d}else {if(a[0]>=d){return a[0]}else {var b,g,c,e,f;for(b=0,g=a.length;b=d){e=d-a[b];f=a[c]-d;return f>e?a[b]:a[c]}}return a[a.length-1]}}},toString:function(){return 'DragDrop '+this.id}},3,0,0,0,0,0,[Ext.dd,'DragDrop'],0);Ext.cmd.derive('Ext.dd.DD',Ext.dd.DragDrop,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},scroll:!0,autoOffset:function(a,b){var c=a-this.startPageX,d=b-this.startPageY;this.setDelta(c,d)},setDelta:function(a,b){this.deltaX=a;this.deltaY=b},setDragElPos:function(a,b){var c=this.getDragEl();this.alignElWithMouse(c,a,b)},alignElWithMouse:function(d,j,k){var a=this.getTargetCoord(j,k),c=d.dom?d:Ext.fly(d,'_dd'),e=c.getSize(),i=Ext.Element,b,g,f,h;if(!this.deltaSetXY){b=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};g=[Math.max(0,Math.min(a.x,b.width-e.width)),Math.max(0,Math.min(a.y,b.height-e.height))];c.setXY(g);f=this.getLocalX(c);h=c.getLocalY();this.deltaSetXY=[f-a.x,h-a.y]}else {b=this.cachedViewportSize;this.setLocalXY(c,Math.max(0,Math.min(a.x+this.deltaSetXY[0],b.width-e.width)),Math.max(0,Math.min(a.y+this.deltaSetXY[1],b.height-e.height)))}this.cachePosition(a.x,a.y);this.autoScroll(a.x,a.y,d.offsetHeight,d.offsetWidth);return a},cachePosition:function(b,c){if(b){this.lastPageX=b;this.lastPageY=c}else {var a=Ext.fly(this.getEl()).getXY();this.lastPageX=a[0];this.lastPageY=a[1]}},autoScroll:function(e,f,m,n){if(this.scroll){var g=Ext.Element.getViewportHeight(),h=Ext.Element.getViewportWidth(),b=this.DDMInstance.getScrollTop(),a=this.DDMInstance.getScrollLeft(),l=m+f,j=n+e,k=g+b-f-this.deltaY,i=h+a-e-this.deltaX,d=40,c=document.all?80:30;if(l>g&&k0&&f-bh&&i0&&e-athis.maxX){a=this.maxX}}if(this.constrainY){if(bthis.maxY){b=this.maxY}}a=this.getTick(a,this.xTicks);b=this.getTick(b,this.yTicks);return {x:a,y:b}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=this.config.scroll!==!1},b4MouseDown:function(b){var a=b.getXY();this.autoOffset(a[0],a[1])},b4Drag:function(b){var a=b.getXY();this.setDragElPos(a[0],a[1])},toString:function(){return 'DD '+this.id},getLocalX:function(a){return a.getLocalX()},setLocalXY:function(a,b,c){a.setLocalXY(b,c)}},3,0,0,0,0,0,[Ext.dd,'DD'],0);Ext.cmd.derive('Ext.dd.DDProxy',Ext.dd.DD,{statics:{dragElId:'ygddfdiv'},constructor:function(a,c,b){if(a){this.init(a,c,b);this.initFrame()}},resizeFrame:!0,centerFrame:!1,createFrame:function(){var d=this,c=document.body,a,b;if(!c||!c.firstChild){Ext.defer(function(){d.createFrame()},50);return}a=this.getDragEl();if(!a){a=document.createElement('div');a.id=this.dragElId;a.setAttribute('role','presentation');b=a.style;b.position='absolute';b.visibility='hidden';b.cursor='move';b.border='2px solid #aaa';b.zIndex=999;c.insertBefore(a,c.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=this.config.resizeFrame!==!1;this.centerFrame=this.config.centerFrame;this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(d,e){var a=this,b=a.getDragEl(),c=b.style;a._resizeProxy();if(a.centerFrame){a.setDelta(Math.round(parseInt(c.width,10)/2),Math.round(parseInt(c.height,10)/2))}a.setDragElPos(d,e);Ext.fly(b).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(d){var a=d.getXY(),b=a[0],c=a[1];this.autoOffset(b,c);this.setDragElPos(b,c)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl(),a=this.getDragEl();a.style.visibility='';this.beforeMove();b.style.visibility='hidden';Ext.dd.DDM.moveToEl(b,a);a.style.visibility='hidden';b.style.visibility='';this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return 'DDProxy '+this.id}},3,0,0,0,0,0,[Ext.dd,'DDProxy'],0);Ext.cmd.derive('Ext.dd.StatusProxy',Ext.Component,{animRepair:!1,childEls:['ghost'],renderTpl:[''],repairCls:'x-dd-drag-repair',ariaRole:'presentation',skipLayout:!0,constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:'visibility',hidden:!0,floating:!0,id:b.id||Ext.id(),cls:'x-dd-drag-proxy '+this.dropNotAllowed,shadow:a.shadow||!1,renderTo:Ext.getDetachedBody()});Ext.Component.prototype.constructor.apply(this,arguments);this.dropStatus=this.dropNotAllowed},dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',setStatus:function(a){a=a||this.dropNotAllowed;if(this.dropStatus!==a){this.el.replaceCls(this.dropStatus,a);this.dropStatus=a}},reset:function(c){var a=this,b='x-dd-drag-proxy ';a.el.replaceCls(b+a.dropAllowed,b+a.dropNotAllowed);a.dropStatus=a.dropNotAllowed;if(c){a.ghost.setHtml('')}},update:function(a){if(typeof a==='string'){this.ghost.setHtml(a)}else {this.ghost.setHtml('');a.style.margin='0';this.ghost.dom.appendChild(a)}var b=this.ghost.dom.firstChild;if(b){Ext.fly(b).setStyle('float','none')}},getGhost:function(){return this.ghost},hide:function(a){Ext.Component.prototype.hide.call(this);if(a){this.reset(!0)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(b,c,d){var a=this;a.callback=c;a.scope=d;if(b&&a.animRepair!==!1){a.el.addCls(a.repairCls);a.el.setUnderlaysVisible(!1);a.anim=a.el.animate({duration:a.repairDuration||500,easing:'ease-out',to:{x:b[0],y:b[1]},stopAnimation:!0,callback:a.afterRepair,scope:a})}else {a.afterRepair()}},afterRepair:function(){var a=this;a.hide(!0);a.el.removeCls(a.repairCls);if(typeof a.callback==='function'){a.callback.call(a.scope||a)}delete a.callback;delete a.scope}},1,0,['component','box'],{'component':!0,'box':!0},0,0,[Ext.dd,'StatusProxy'],0);Ext.cmd.derive('Ext.dd.DragSource',Ext.dd.DDProxy,{dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',animRepair:!0,repairHighlightColor:'c3daf9',constructor:function(b,a){this.el=Ext.get(b);if(!this.dragData){this.dragData={}}Ext.apply(this,a);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy({id:this.el.id+'-drag-status-proxy',animRepair:this.animRepair})}Ext.dd.DDProxy.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:!1,isTarget:!1,scroll:this.scroll===!0});this.dragging=!1},getDragData:function(a){return this.dragData},onDragEnter:function(c,b){var a=Ext.dd.DragDropManager.getDDById(b),d;this.cachedTarget=a;if(this.beforeDragEnter(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyEnter(this,c,this.dragData);this.proxy.setStatus(d)}else {this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(a,c,b)}}},beforeDragEnter:function(a,c,b){return !0},onDragOver:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b),d;if(this.beforeDragOver(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyOver(this,c,this.dragData);this.proxy.setStatus(d)}if(this.afterDragOver){this.afterDragOver(a,c,b)}}},beforeDragOver:function(a,c,b){return !0},onDragOut:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragOut(a,c,b)!==!1){if(a.isNotifyTarget){a.notifyOut(this,c,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,c,b)}}this.cachedTarget=null},beforeDragOut:function(a,c,b){return !0},onDragDrop:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragDrop(a,c,b)!==!1){if(a.isNotifyTarget){if(a.notifyDrop(this,c,this.dragData)!==!1){this.onValidDrop(a,c,b)}else {this.onInvalidDrop(a,c,b)}}else {this.onValidDrop(a,c,b)}if(this.afterDragDrop){this.afterDragDrop(a,c,b)}}delete this.cachedTarget},beforeDragDrop:function(a,c,b){return !0},onValidDrop:function(a,c,b){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(a,c,b)}},getRepairXY:function(b,a){return this.el.getXY()},onInvalidDrop:function(c,b,d){var a=this;if(!b){b=c;c=null;d=b.getTarget().id}if(a.beforeInvalidDrop(c,b,d)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}a.proxy.repair(a.getRepairXY(b,a.dragData),a.afterRepair,a);if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}},afterRepair:function(){var a=this;if(Ext.enableFx){a.el.highlight(a.repairHighlightColor)}a.dragging=!1},beforeInvalidDrop:function(a,c,b){return !0},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==!1){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return !0},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(!0);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=!1;this.dragging=!0;this.proxy.update('');this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(b,c){var a=this.el.dom.cloneNode(!0);a.id=Ext.id();this.proxy.update(a);this.onStartDrag(b,c);return !0},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(!0);this.dragging=!1},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(a){},endDrag:function(a){this.onEndDrag(this.dragData,a)},onEndDrag:function(a,b){},autoOffset:function(a,b){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DDProxy.prototype.destroy.call(this);Ext.destroy(this.proxy)}},1,0,0,0,0,0,[Ext.dd,'DragSource'],0);Ext.cmd.derive('Ext.panel.Proxy',Ext.Base,{alternateClassName:'Ext.dd.PanelProxy',moveOnDrag:!0,constructor:function(c,b){var a=this;a.panel=c;a.id=a.panel.id+'-ddproxy';Ext.apply(a,b)},insertProxy:!0,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost.el},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){var a=this;if(a.ghost){if(a.proxy){a.proxy.destroy();delete a.proxy}a.panel.unghost(null,a.moveOnDrag);delete a.ghost}},show:function(){var a=this,b;if(!a.ghost){b=a.panel.getSize();a.panel.el.setVisibilityMode(Ext.Element.DISPLAY);a.ghost=a.panel.ghost();if(a.insertProxy){a.proxy=a.panel.el.insertSibling({role:'presentation',cls:'x-panel-dd-spacer'});a.proxy.setSize(b)}}},repair:function(c,a,b){this.hide();Ext.callback(a,b||this)},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}},1,0,0,0,0,0,[Ext.panel,'Proxy',Ext.dd,'PanelProxy'],0);Ext.cmd.derive('Ext.panel.DD',Ext.dd.DragSource,{constructor:function(b,c){var a=this;a.panel=b;a.dragData={panel:b};a.panelProxy=new Ext.panel.Proxy(b,c);a.proxy=a.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,c);a.setupEl(b)},setupEl:function(c){var a=this,b=c.header,d=c.body;if(b){a.setHandleElId(b.id);d=b.el}if(d){d.setStyle('cursor','move');a.scroll=!1}else {c.on('boxready',a.setupEl,a,{single:!0})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(b){var a=b.getXY(),c=a[0],d=a[1];this.autoOffset(c,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return !0},createFrame:Ext.emptyFn,getDragEl:function(b){var a=this.panelProxy.ghost;if(a){return a.el.dom}},endDrag:function(a){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)},onInvalidDrop:function(d,b,c){var a=this;if(a.beforeInvalidDrop(d,b,c)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,c)}}}},1,0,0,0,0,0,[Ext.panel,'DD'],0);Ext.cmd.derive('Ext.layout.component.Dock',Ext.layout.component.Component,{alternateClassName:'Ext.layout.component.AbstractDock',type:'dock',horzAxisProps:{name:'horz',oppositeName:'vert',dockBegin:'left',dockEnd:'right',horizontal:!0,marginBegin:'margin-left',maxSize:'maxWidth',minSize:'minWidth',pos:'x',setSize:'setWidth',shrinkWrapDock:'shrinkWrapDockWidth',size:'width',sizeModel:'widthModel'},vertAxisProps:{name:'vert',oppositeName:'horz',dockBegin:'top',dockEnd:'bottom',horizontal:!1,marginBegin:'margin-top',maxSize:'maxHeight',minSize:'minHeight',pos:'y',setSize:'setHeight',shrinkWrapDock:'shrinkWrapDockHeight',size:'height',sizeModel:'heightModel'},initializedBorders:-1,horizontalCollapsePolicy:{width:!0,x:!0},verticalCollapsePolicy:{height:!0,y:!0},finishRender:function(){var a=this,b,c;Ext.layout.component.Component.prototype.finishRender.call(this);b=a.getRenderTarget();c=a.getDockedItems();a.finishRenderItems(b,c)},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},noBorderClasses:['x-docked-noborder-top','x-docked-noborder-right','x-docked-noborder-bottom','x-docked-noborder-left'],noBorderClassesSides:{top:'x-docked-noborder-top',right:'x-docked-noborder-right',bottom:'x-docked-noborder-bottom',left:'x-docked-noborder-left'},borderWidthProps:{top:'border-top-width',right:'border-right-width',bottom:'border-bottom-width',left:'border-left-width'},_itemCls:'x-docked',handleItemBorders:function(){var c=this,b=c.owner,a,l,k=c.lastDockedItems,j=c.borders,m=b.dockedItems.generation,i=c.noBorderClassesSides,n=c.borderWidthProps,f,h,d,g,e,o=c.collapsed;if(c.initializedBorders===m||b.border&&!b.manageBodyBorders||b.collapsed&&b.collapseMode==='mini'){return}c.initializedBorders=m;c.collapsed=!1;c.lastDockedItems=l=c.getLayoutItems();c.collapsed=o;a={top:[],right:[],bottom:[],left:[]};for(f=0,h=l.length;fj){b=i.constrainedMax;m=j}else {if(hj){c=i.constrainedMax;l=j}else {if(h',addDocked:function(c,d){var b=this,k=b.rendered,f=0,g=b.dockedItems,i=g.getCount(),e,h,a,j;c=b.prepareItems(c);j=c.length;if(k){Ext.suspendLayouts()}if(d===undefined){d=i}else {d=Math.min(d,i)}for(;f','
    ','{headingText}','
    ','','{% this.renderDockedItems(out,values,0); %}','
    {bodyCls}',' {baseCls}-body-{ui}',' {parent.baseCls}-body-{parent.ui}-{.}','{childElCls}"','',' {$}="{.}"','',' role="presentation"','',' style="{bodyStyle}">','{%this.renderContainer(out,values);%}','
    ','{% this.renderDockedItems(out,values,1); %}'],headerPosition:'top',iconAlign:'left',titleAlign:'left',titleRotation:'default',beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titleRotation:null},animCollapse:Ext.enableFx,border:!0,closable:!1,closeAction:'destroy',closeToolText:'Close panel',collapsed:!1,collapsedCls:'collapsed',collapseFirst:!0,collapsible:undefined,collapseToolText:'Collapse panel',expandToolText:'Expand panel',constrain:!1,constrainHeader:!1,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:!0,frame:!1,frameHeader:!0,hideCollapseTool:!1,manageHeight:!0,maskElement:'el',minButtonWidth:75,preventHeader:!1,shrinkWrapDock:!1,titleCollapse:undefined,baseCls:'x-panel',bodyPosProps:{x:'x',y:'y'},componentLayout:'dock',contentPaddingProperty:'bodyPadding',emptyArray:[],isPanel:!0,defaultBindProperty:'title',addBodyCls:function(c){var a=this,b=a.rendered?a.body:a.getProtoBody();b.addCls(c);return a},addTool:function(b){if(!Ext.isArray(b)){b=[b]}var c=this,a=c.header,g=b.length,f=c.tools,e,d;if(!a||!a.isHeader){a=null;if(!f){c.tools=f=[]}}for(e=0;e0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(a.is(this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(e,b){var a=this,d=a.items,c=a.addHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.add(b)}}},onItemRemove:function(e,b){var a=this,d=a.items,c=a.removeHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.remove(b)}}},onContainerAdd:function(c,i){var a=this,d,e,h=a.handleAdd,g=a.handleRemove,b,f;if(c.isContainer){c.on('add',h,a);c.on('dockedadd',h,a);c.on('remove',g,a);c.on('dockedremove',g,a)}if(i!==!0){d=c.query(a.selector);for(b=0,e=d.length;bcontainer');for(b=0,e=d.length;ba.tolerance){a.triggerStart(b)}else {return}}if(a.fireEvent('mousemove',a,b)===!1){a.onMouseUp(b)}else {a.onDrag(b);a.fireEvent('drag',a,b)}},onMouseUp:function(b){var a=this;a.mouseIsDown=!1;if(a.mouseIsOut){a.mouseIsOut=!1;a.onMouseOut(b)}if(a.preventDefault!==!1){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent('mouseup',a,b);a.endDrag(b)},endDrag:function(b){var a=this,c=a.active;Ext.getDoc().un({mousemove:a.onMouseMove,mouseup:a.onMouseUp,selectstart:a.stopSelect,capture:!0,scope:a});a.clearStart();a.active=!1;if(c){a.dragEnded=!0;a.onEnd(b);a.fireEvent('dragend',a,b)}a._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=!0;a.onStart(b);a.fireEvent('dragstart',a,b)},clearStart:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return !1},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var a=this;if(a.constrainTo){if(a.constrainTo instanceof Ext.util.Region){return a.constrainTo}if(!a._constrainRegion){a._constrainRegion=Ext.fly(a.constrainTo).getViewRegion()}}else {if(!a._constrainRegion){a._constrainRegion=a.getDragCt().getViewRegion()}}return a._constrainRegion},getXY:function(a){return a?this.constrainModes[a](this,this.lastXY):this.lastXY},getOffset:function(c){var a=this.getXY(c),b=this.startXY;return [a[0]-b[0],a[1]-b[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(d,b){var a=d.dragRegion,c=d.getConstrainRegion();if(!c){return b}a.x=a.left=a[0]=a.right=b[0];a.y=a.top=a[1]=a.bottom=b[1];a.constrainTo(c);return [a.left,a.top]},dragTarget:function(e,c){var f=e.startXY,a=e.startRegion.copy(),b=e.getConstrainRegion(),d;if(!b){return c}a.translateBy(c[0]-f[0],c[1]-f[1]);if(a.right>b.right){c[0]+=d=b.right-a.right;a.left+=d}if(a.leftb.bottom){c[1]+=d=b.bottom-a.bottom;a.top+=d}if(a.top[flex]'),o=j.length,h=n==='vertical',i=0,d=h?'width':'height',m=0,g,a;for(;i',tabGuardIndex:0},tabGuardPositionAttribute:'data-tabguardposition',privates:{initTabGuards:function(){var a=this,f=a.tabGuardPositionAttribute,c=a.tabGuardBeforeEl,d=a.tabGuardAfterEl,e=a.tabGuardIndex,b;if(!a.rendered||!a.tabGuard){return}b=a.el.findTabbableElements({skipSelf:!0});if(b[0]&&b[0].hasAttribute(f)){b.shift()}if(b.length&&b[b.length-1].hasAttribute(f)){b.pop()}if(b.length){c.dom.setAttribute('tabIndex',e);c.on('focusenter',a.onTabGuardFocusEnter,a);d.dom.setAttribute('tabIndex',e);d.on('focusenter',a.onTabGuardFocusEnter,a)}else {c.dom.removeAttribute('tabIndex');c.un('focusenter',a.onTabGuardFocusEnter,a);d.dom.removeAttribute('tabIndex');d.un('focusenter',a.onTabGuardFocusEnter,a)}},onTabGuardFocusEnter:function(j,i){var h=this,e=h.el,g=h.tabGuardPositionAttribute,f=i.getAttribute(g),d=j.relatedTarget,a,c,b;if(!d.hasAttribute(g)&&d!==e.dom&&e.contains(d)){c=f==='before'?!1:!0}else {c=f==='before'?!0:!1}a=e.findTabbableElements({skipSelf:!0});a.shift();a.pop();b=c?a[0]:a[a.length-1];if(b){b.focus()}}}},0,0,0,0,0,0,[Ext.util,'FocusTrap'],0);Ext.cmd.derive('Ext.window.Window',Ext.panel.Panel,{alternateClassName:'Ext.Window',baseCls:'x-window',resizable:!0,draggable:!0,constrain:!1,constrainHeader:!1,plain:!1,minimizable:!1,maximizable:!1,minHeight:50,minWidth:50,expandOnShow:!0,collapsible:!1,closable:!0,hidden:!0,autoRender:!0,hideMode:'offsets',floating:!0,itemCls:'x-window-item',overlapHeader:!0,ignoreHeaderBorderManagement:!0,alwaysFramed:!0,isRootCfg:{isRoot:!0},isWindow:!0,ariaRole:'dialog',initComponent:function(){var a=this;a.frame=!1;Ext.panel.Panel.prototype.initComponent.call(this);if(a.plain){a.addClsWithUI('plain')}a.addStateEvents(['maximize','restore','resize','dragend'])},getElConfig:function(){var b=this,a;a=Ext.panel.Panel.prototype.getElConfig.call(this);a.tabIndex=-1;return a},getFocusEl:function(){return this.getDefaultFocus()||this.el},getState:function(){var a=this,e=Ext.panel.Panel.prototype.getState.call(this)||{},c=!!a.maximized,d=a.ghostBox,b;e.maximized=c;if(c){b=a.restorePos}else {if(d){b=[d.x,d.y]}else {b=a.getPosition()}}Ext.apply(e,{size:c?a.restoreSize:a.getSize(),pos:b});return e},applyState:function(a){var b=this;if(a){b.maximized=a.maximized;if(b.maximized){b.hasSavedRestore=!0;b.restoreSize=a.size;b.restorePos=a.pos}else {Ext.apply(b,{width:a.size.width,height:a.size.height,x:a.pos[0],y:a.pos[1]})}}},onRender:function(c,b){var a=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(a.header){a.header.on({scope:a,click:a.onHeaderClick})}if(a.maximizable){a.header.on({scope:a,dblclick:a.toggleMaximize})}},afterRender:function(){var a=this,c=a.header,b;if(a.maximized){a.maximized=!1;a.maximize();if(c){c.removeCls(c.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);if(a.closable){b=a.getKeyMap();b.on(27,a.onEsc,a)}else {b=a.keyMap}if(b&&a.hidden){b.disable()}},onEsc:function(b,a){a.stopEvent();this.close()},beforeDestroy:function(){var a=this;if(a.rendered){Ext.un('resize',a.onWindowResize,a);delete a.animateTarget;a.hide();Ext.destroy(a.keyMap)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},addTools:function(){var a=this,b=[];Ext.panel.Panel.prototype.addTools.call(this);if(a.minimizable){b.push({type:'minimize',handler:'minimize',scope:a})}if(a.maximizable){b.push({type:a.maximized?'restore':'maximize',handler:'toggleMaximize',scope:a})}if(b.length){a.addTool(b)}},onShow:function(){var a=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(a.expandOnShow){a.expand(!1)}a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.enable()}},doClose:function(){var a=this;if(a.hidden){a.fireEvent('close',a);if(a.closeAction==='destroy'){a.destroy()}}else {a.hide(a.animateTarget,a.doClose,a)}},afterHide:function(){var a=this;a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.disable()}Ext.panel.Panel.prototype.afterHide.apply(this,arguments)},onWindowResize:function(){var a=this,b;if(!a.destroyed){if(a.maximized){a.fitContainer()}else {b=a.getSizeModel();if(b.width.natural||b.height.natural){a.updateLayout()}a.doConstrain()}}},minimize:function(){this.fireEvent('minimize',this);return this},resumeHeaderLayout:function(a){this.header.resumeLayouts(a?this.isRootCfg:null)},afterCollapse:function(){var a=this,b=a.header,c=a.tools;if(b&&a.maximizable){b.suspendLayouts();c.maximize.hide();this.resumeHeaderLayout(!0)}if(a.resizer){a.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var a=this,c=a.header,d=a.tools,b;if(c){c.suspendLayouts();if(a.maximizable){d.maximize.show();b=!0}this.resumeHeaderLayout(b)}if(a.resizer){a.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(c){var a=this,b=a.header,f=a.tools,g=a.width,e=a.height,h,d;if(!a.maximized){a.expand(!1);if(!a.hasSavedRestore){h=a.restoreSize={width:g?g:null,height:e?e:null};a.restorePos=a.getPosition()}if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('restore')}if(a.collapseTool){a.collapseTool.hide();d=!0}a.resumeHeaderLayout(d)}a.el.disableShadow();if(a.dd){a.dd.disable();if(b){b.removeCls(b.indicateDragCls)}}if(a.resizer){a.resizer.disable()}a.el.addCls('x-window-maximized');a.container.addCls('x-window-maximized-ct');a.syncMonitorWindowResize();a.fitContainer(c=c||!!a.animateTarget?{callback:function(){a.maximized=!0;a.fireEvent('maximize',a)}}:null);if(!c){a.maximized=!0;a.fireEvent('maximize',a)}}return a},restore:function(c){var a=this,f=a.tools,b=a.header,d=a.restoreSize,e;if(a.maximized){a.hasSavedRestore=null;a.removeCls('x-window-maximized');if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('maximize')}if(a.collapseTool){a.collapseTool.show();e=!0}a.resumeHeaderLayout(e)}d.x=a.restorePos[0];d.y=a.restorePos[1];a.setBox(d,c=c||!!a.animateTarget?{callback:function(){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}:null);a.restorePos=a.restoreSize=null;if(a.dd){a.dd.enable();if(b){b.addCls(b.indicateDragCls)}}if(a.resizer){a.resizer.enable()}a.container.removeCls('x-window-maximized-ct');a.syncMonitorWindowResize();if(!c){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}return a},syncMonitorWindowResize:function(){var a=this,b=a._monitoringResize,d=a.monitorResize||a.constrain||a.constrainHeader||a.maximized,c=a.hidden||a.destroying||a.destroyed;if(d&&!c){if(!b){Ext.on('resize',a.onWindowResize,a,{buffer:1});a._monitoringResize=!0}}else {if(b){Ext.un('resize',a.onWindowResize,a);a._monitoringResize=!1}}},toggleMaximize:function(){return this[this.maximized?'restore':'maximize']()},createGhost:function(){var a=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);a.xtype='window';a.focusOnToFront=!1;return a},getDefaultFocus:function(){var d=this,b,a=d.defaultFocus,c;if(a!==undefined){if(Ext.isNumber(a)){b=d.query('button')[a]}else {if(Ext.isString(a)){c=a;if(Ext.validIdRe.test(c)){b=d.down(Ext.makeIdSelector(c))}if(!b){b=d.down(c)}}else {if(a.focus){b=a}}}}return b},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(b,c){var a;if(b.el.contains(c.getTarget())){a=this.getDefaultFocus();if(a){a.focus()}}},initResizable:function(){Ext.panel.Panel.prototype.initResizable.apply(this,arguments);if(this.maximized){this.resizer.disable()}}}},0,['window'],['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},['widget.window'],[[Ext.util.FocusTrap.prototype.mixinId||Ext.util.FocusTrap.$className,Ext.util.FocusTrap]],[Ext.window,'Window',Ext,'Window'],0);Ext.cmd.derive('Ext.form.Labelable',Ext.Mixin,{isLabelable:!0,mixinConfig:{id:'labelable',on:{beforeRender:'beforeLabelRender',onRender:'onLabelRender'}},config:{childEls:['labelEl','bodyEl','errorEl','errorWrapEl','ariaErrorEl']},labelableRenderTpl:['{beforeLabelTpl}','','{afterLabelTpl}','','','
    ','','
    ','
    ',{disableFormats:!0}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['','
      ','
    • {.}
    • ','
    ','
    '],plaintextActiveErrorsTpl:['','\n{.}',''],isFieldLabelable:!0,formItemCls:'x-form-item',labelCls:'x-form-item-label',topLabelCls:'x-form-item-label-top',rightLabelCls:'x-form-item-label-right',labelInnerCls:'x-form-item-label-inner',topLabelSideErrorCls:'x-form-item-label-top-side-error',errorMsgCls:'x-form-error-msg',errorWrapCls:'x-form-error-wrap',errorWrapSideCls:'x-form-error-wrap-side',errorWrapUnderCls:'x-form-error-wrap-under',errorWrapUnderSideLabelCls:'x-form-error-wrap-under-side-label',baseBodyCls:'x-form-item-body',invalidIconCls:'x-form-invalid-icon',invalidUnderCls:'x-form-invalid-under',noLabelCls:'x-form-item-no-label',fieldBodyCls:'',invalidCls:'x-form-invalid',fieldLabel:undefined,labelAlign:'left',labelWidth:100,labelPad:5,labelSeparator:':',hideLabel:!1,hideEmptyLabel:!0,preventMark:!1,autoFitErrors:!0,msgTarget:'qtip',msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:!0,labelableInsertions:['beforeBodyEl','afterBodyEl','beforeLabelTpl','afterLabelTpl','beforeSubTpl','afterSubTpl','beforeLabelTextTpl','afterLabelTextTpl','labelAttrTpl'],statics:{initTip:function(){var b=this.tip,a,c;if(b){return}a={id:'ext-form-error-tip',ui:'form-invalid'};if(Ext.supports.Touch){a.dismissDelay=0;a.anchor='top';a.showDelay=0;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.anchorTarget).getWidth()}}}b=this.tip=Ext.create('Ext.tip.QuickTip',a);c=Ext.apply({},b.tagConfig);c.attribute='errorqtip';b.setTagConfig(c)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var a=this,b=a.padding;if(b){a.padding=undefined;a.extraMargins=Ext.Element.parseBox(b)}if(Ext.isIE8){a.restoreDisplay=Ext.Function.createDelayed(a.doRestoreDisplay,0,a)}if(!a.activeErrorsTpl){if(a.msgTarget==='title'){a.activeErrorsTpl=a.plaintextActiveErrorsTpl}else {a.activeErrorsTpl=a.htmlActiveErrorsTpl}}a.addCls([a.formItemCls,a.formItemCls+'-'+a.ui]);a.lastActiveError='';a.enableBubble('errorchange')},trimLabelSeparator:function(){var b=this,c=b.labelSeparator,a=b.fieldLabel||'',d=a.substr(a.length-1);return d===c?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(b){b=b||'';var a=this,f=a.labelSeparator,h=a.labelEl,c=a.errorWrapEl,g=a.labelAlign!=='top',e=a.noLabelCls,d=a.errorWrapUnderSideLabelCls;a.fieldLabel=b;if(a.rendered){if(Ext.isEmpty(b)&&a.hideEmptyLabel){a.addCls(e);if(g&&c){c.removeCls(d)}}else {if(f){b=a.trimLabelSeparator()+f}h.dom.firstChild.innerHTML=b;a.removeCls(e);if(g&&c){c.addCls(d)}}a.updateLayout()}},setHideLabel:function(b){var a=this;if(b!==a.hideLabel){a.hideLabel=b;if(a.rendered){a[b?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},setHideEmptyLabel:function(b){var a=this,c;if(b!==a.hideEmptyLabel){a.hideEmptyLabel=b;if(a.rendered&&!a.hideLabel){c=b&&!a.getFieldLabel();a[c?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},getInsertionRenderData:function(c,d){var e=d.length,b,a;while(e--){b=d[e];a=this[b];if(a){if(typeof a!=='string'){if(!a.isTemplate){a=Ext.XTemplate.getTpl(this,b)}a=a.apply(c)}}c[b]=a||''}return c},getLabelableRenderData:function(){var a=this,l=a.labelAlign,o=l==='top',r=l==='right',c=a.msgTarget==='side',h=a.msgTarget==='under',q=a.errorMsgCls,b=a.labelPad,m=a.labelWidth,d=a.labelClsExtra||'',j=c?a.errorWrapSideCls:a.errorWrapUnderCls,g='',f='',p=a.hasVisibleLabel(),k=a.autoFitErrors,e=a.defaultBodyWidth,n,i;if(o){d+=' '+a.topLabelCls;if(b){f='padding-bottom:'+b+'px;'}if(c&&!k){d+=' '+a.topLabelSideErrorCls}}else {if(r){d+=' '+a.rightLabelCls}if(b){g+=a.getHorizontalPaddingStyle()+b+'px;'}g+='width:'+(m+(b?b:0))+'px;';f='width:'+m+'px'}if(p){if(!o&&h){j+=' '+a.errorWrapUnderSideLabelCls}}if(e){n='min-width:'+e+'px;max-width:'+e+'px;'}i={id:a.id,inputId:a.getInputId(),labelCls:a.labelCls,labelClsExtra:d,labelStyle:g+(a.labelStyle||''),labelInnerStyle:f,labelInnerCls:a.labelInnerCls,unselectableCls:Ext.Element.unselectableCls,bodyStyle:n,baseBodyCls:a.baseBodyCls,fieldBodyCls:a.fieldBodyCls,extraFieldBodyCls:a.extraFieldBodyCls,errorWrapCls:a.errorWrapCls,errorWrapExtraCls:j,renderError:c||h,invalidMsgCls:c?a.invalidIconCls:h?a.invalidUnderCls:'',errorMsgCls:q,growCls:a.grow?a.growCls:'',tipAnchorTarget:a.id+'-inputEl',errorWrapStyle:c&&!k?'visibility:hidden':'display:none',fieldLabel:a.getFieldLabel(),labelSeparator:a.labelSeparator};a.getInsertionRenderData(i,a.labelableInsertions);return i},getHorizontalPaddingStyle:function(){return 'padding-right:'},beforeLabelRender:function(){var a=this;a.setFieldDefaults(a.getInherited().fieldDefaults);if(a.ownerLayout){a.addCls('x-'+a.ownerLayout.type+'-form-item')}if(!a.hasVisibleLabel()){a.addCls(a.noLabelCls)}},onLabelRender:function(){var a=this,f={},e=Ext.Element,d=a.errorWrapEl,c,b;if(d){d.setVisibilityMode(a.msgTarget==='side'&&!a.autoFitErrors?e.VISIBILITY:e.DISPLAY)}if(a.extraMargins){c=a.el.getMargin();for(b in c){if(c.hasOwnProperty(b)){f['margin-'+b]=c[b]+a.extraMargins[b]+'px'}}a.el.setStyle(f)}},hasVisibleLabel:function(){if(this.hideLabel){return !1}return !(this.hideEmptyLabel&&!this.getFieldLabel())},getSubTplMarkup:function(){return ''},getInputId:function(){return ''},getActiveError:function(){return this.activeError||''},hasActiveError:function(){return !!this.getActiveError()},setActiveError:function(a){this.setActiveErrors(a)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(c){var a=this,h=a.errorWrapEl,b=a.msgTarget,g=b==='side',i=b==='qtip',e,d,j,f;c=Ext.Array.from(c);j=a.getTpl('activeErrorsTpl');a.activeErrors=c;d=a.activeError=j.apply({fieldLabel:a.fieldLabel,errors:c,listCls:'x-list-plain'});a.renderActiveError();if(a.rendered){e=a.getActionEl();if(g){a.errorEl.dom.setAttribute('data-errorqtip',d)}else {if(i){e.dom.setAttribute('data-errorqtip',d)}else {if(b==='title'){e.dom.setAttribute('title',d)}}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML=c.join('. ');e.dom.setAttribute('aria-describedby',a.ariaErrorEl.id)}if(g||i){Ext.form.Labelable.initTip()}if(!a.msgTargets[b]){f=Ext.get(b);if(f){f.dom.innerHTML=d}}}if(h){h.setVisible(c.length>0);if(g&&a.autoFitErrors){a.labelEl.addCls(a.topLabelSideErrorCls)}a.updateLayout()}},unsetActiveError:function(){var a=this,e=a.errorWrapEl,b=a.msgTarget,f=a.restoreDisplay,c,d;if(a.hasActiveError()){delete a.activeError;delete a.activeErrors;a.renderActiveError();if(a.rendered){c=a.getActionEl();if(b==='qtip'){c.dom.removeAttribute('data-errorqtip')}else {if(b==='title'){c.dom.removeAttribute('title')}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML='';c.dom.removeAttribute('aria-describedby')}if(!a.msgTargets[b]){d=Ext.get(b);if(d){d.dom.innerHTML=''}}if(e){e.hide();if(b==='side'&&a.autoFitErrors){a.labelEl.removeCls(a.topLabelSideErrorCls)}a.updateLayout();if(f){a.el.dom.style.display='block';a.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=''}},renderActiveError:function(){var a=this,b=a.getActiveError(),c=!!b;if(b!==a.lastActiveError){a.lastActiveError=b;a.fireEvent('errorchange',a,b)}if(a.rendered&&!a.destroyed&&!a.preventMark){a.toggleInvalidCls(c);if(a.errorEl){a.errorEl.dom.innerHTML=b}}},toggleInvalidCls:function(a){this.el[a?'addCls':'removeCls'](this.invalidCls)},setFieldDefaults:function(b){var a;for(a in b){if(!this.hasOwnProperty(a)){this[a]=b[a]}}}},0,0,0,0,0,0,[Ext.form,'Labelable'],function(){if(Ext.supports.Touch){this.prototype.msgTarget='side'}});Ext.cmd.derive('Ext.form.field.Field',Ext.Base,{mixinId:'field',isFormField:!0,config:{validation:null,validationField:null},disabled:!1,submitValue:!0,validateOnChange:!0,valuePublishEvent:'change',suspendCheckChange:0,dirty:!1,initField:function(){var a=this,b=a.valuePublishEvent,d,c;a.initValue();if(Ext.isString(b)){a.on(b,a.publishValue,a)}else {for(c=0,d=b.length;c name="{name}"',' value="{[Ext.util.Format.htmlEncode(values.value)]}"',' placeholder="{placeholder}"','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}',' readonly="readonly"',' disabled="disabled"',' tabindex="{tabIdx}"',' style="{fieldStyle}"',' {$}="{.}"',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete="off"/>',{disableFormats:!0}],defaultBindProperty:'value',autoEl:{role:'presentation'},subTplInsertions:['inputAttrTpl'],childEls:['inputEl'],inputType:'text',isTextInput:!0,invalidText:'The value in this field is invalid',fieldCls:'x-form-field',focusCls:'form-focus',dirtyCls:'x-form-dirty',checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<=9)?['change','propertychange','keyup']:['change','input','textInput','keyup','dragdrop'],ignoreChangeRe:/data\-errorqtip|style\.|className/,checkChangeBuffer:50,liquidLayout:!0,readOnly:!1,readOnlyCls:'x-form-readonly',validateOnBlur:!0,hasFocus:!1,baseCls:'x-field',fieldBodyCls:'x-field-body',maskOnDisable:!1,stretchInputElFixed:!0,ariaEl:'inputEl',initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();a.initDefaultName();if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls('x-form-type-'+a.inputType)},initDefaultName:function(){var a=this;if(!a.name){a.name=a.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+'-inputEl')},getSubTplData:function(f){var a=this,e=a.inputType,d=a.getInputId(),b,c;b=Ext.apply({ui:a.ui,id:d,cmpId:a.id,name:a.name||d,disabled:a.disabled,readOnly:a.readOnly,value:a.getRawValue(),type:e,fieldCls:a.fieldCls,fieldStyle:a.getFieldStyle(),childElCls:f.childElCls,tabIdx:a.tabIndex,inputCls:a.inputCls,typeCls:'x-form-'+(a.isTextInput?'text':e)},a.subTplData);if(a.ariaRole){c={role:a.ariaRole,'aria-hidden':!!a.hidden,'aria-disabled':!!a.disabled,'aria-readonly':!!a.readOnly,'aria-invalid':!1};if(a.ariaLabel){c['aria-label']=a.ariaLabel}if(a.format&&a.formatText&&!b.title){c.title=Ext.String.formatEncode(a.formatText,a.format)}b.inputElAriaAttributes=Ext.apply(c,a.getAriaAttributes())}a.getInsertionRenderData(b,a.subTplInsertions);return b},getSubTplMarkup:function(f){var b=this,c=b.getSubTplData(f),e=b.getTpl('preSubTpl'),d=b.getTpl('postSubTpl'),a='';if(e){a+=e.apply(c)}a+=b.getTpl('fieldSubTpl').apply(c);if(d){a+=d.apply(c)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(b){var c=this,a=c.inputEl;if(a){a.applyStyles(b)}c.fieldStyle=b},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,!0):a||''},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==='file'},getSubmitData:function(){var a=this,b=null,c;if(!a.disabled&&a.submitValue){c=a.getSubmitValue();if(c!==null){b={};b[a.getName()]=c}}return b},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var a=this,b=a.inputEl?a.inputEl.getValue():Ext.valueFrom(a.rawValue,'');a.rawValue=b;return b},setRawValue:function(b){var a=this,c=a.rawValue;if(!a.transformRawValue.$nullFn){b=a.transformRawValue(b)}b=Ext.valueFrom(b,'');if(c===undefined||c!==b||a.valueContainsPlaceholder){a.rawValue=b;if(a.inputEl){a.bindChangeEvents(!1);a.inputEl.dom.value=b;a.bindChangeEvents(!0)}if(a.rendered&&a.reference){a.publishState('rawValue',b)}}return b},transformRawValue:Ext.identityFn,valueToRaw:function(a){return ''+Ext.valueFrom(a,'')},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var a=this,b=a.rawToValue(a.processRawValue(a.getRawValue()));a.value=b;return b},setValue:function(b){var a=this;a.setRawValue(a.valueToRaw(b));return a.mixins.field.setValue.call(a,b)},onBoxReady:function(){var a=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(a.setReadOnlyOnBoxReady){a.setReadOnly(a.readOnly)}},onDisable:function(){var a=this,b=a.inputEl;Ext.Component.prototype.onDisable.call(this);if(b){b.dom.disabled=!0;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=!0}}if(a.wasValid===!1){a.checkValidityChange(!0)}},onEnable:function(){var a=this,b=a.inputEl,d=a.preventMark,c;Ext.Component.prototype.onEnable.call(this);if(b){b.dom.disabled=!1}if(a.wasValid!==undefined){a.forceValidation=!0;a.preventMark=!a.hadErrorOnDisable;c=a.isValid();a.forceValidation=!1;a.preventMark=d;a.checkValidityChange(c)}delete a.hadErrorOnDisable},setReadOnly:function(b){var a=this,c=a.inputEl,d=a.readOnly;b=!!b;a[b?'addCls':'removeCls'](a.readOnlyCls);a.readOnly=b;if(c){c.dom.readOnly=b;a.ariaEl.dom.setAttribute('aria-readonly',b)}else {if(a.rendering){a.setReadOnlyOnBoxReady=!0}}if(b!==d){a.fireEvent('writeablechange',a,b)}},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent('specialkey',this,a)}},initEvents:function(){var a=this,d=a.inputEl,f=a.onFieldMutation,e=a.checkChangeEvents,g=e.length,c,b;if(d){a.mon(d,Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress',a.fireKey,a);for(c=0;c style="{triggerStyle}">','{[values.$trigger.renderBody(values)]}',''],statics:{weightComparator:function(a,b){return a.weight-b.weight}},constructor:function(c){var a=this,b;Ext.apply(a,c);if(a.compat4Mode){b=a.cls;a.focusCls=[a.focusCls,b+'-focus'];a.overCls=[a.overCls,b+'-over'];a.clickCls=[a.clickCls,b+'-click']}},afterFieldRender:function(){this.initEvents()},destroy:function(){var a=this;a.clickRepeater=a.el=Ext.destroy(a.clickRepeater,a.el);a.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=!0;if(a){a.hide()}},initEvents:function(){var a=this,b=a.isFieldEnabled,c=a.getStateEl(),d=a.el;c.addClsOnOver(a.overCls,b,a);c.addClsOnClick(a.clickCls,b,a);if(a.repeatClick){a.clickRepeater=new Ext.util.ClickRepeater(d,{preventDefault:!0,handler:a.onClick,listeners:{mousedown:a.onClickRepeaterMouseDown,scope:a},scope:a})}else {a.field.mon(d,{click:a.onClick,mousedown:a.onMouseDown,scope:a})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=!1;if(a.hidden||!c||!a.rendered||a.destroyed){b=!0}return !b},onClick:function(){var a=this,c=arguments,e=a.clickRepeater?c[1]:c[0],d=a.handler,b=a.field;if(d&&!b.readOnly&&a.isFieldEnabled()){Ext.callback(a.handler,a.scope,[b,a,e],0,b)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=='touch'&&!this.field.owns(Ext.Element.getActiveElement())){this.field.inputEl.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==='mousedown'){this.field.inputEl.focus()}a.preventDefault()},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var a=this,b=a.el=a.field.triggerWrap.selectNode('#'+a.domId,!1);b.setVisibilityMode(Ext.Element.DISPLAY);a.rendered=!0},renderBody:function(b){var a=this,c=a.bodyTpl;Ext.apply(b,a.getBodyRenderData());return c?Ext.XTemplate.getTpl(a,'bodyTpl').apply(b):''},renderTrigger:function(b){var a=this,d=a.width,c=a.hidden?'display:none;':'';if(d){c+='width:'+d}return Ext.XTemplate.getTpl(a,'renderTpl').apply({$trigger:a,fieldData:b,ui:b.ui,childElCls:b.childElCls,triggerId:a.domId=a.field.id+'-trigger-'+a.id,cls:a.cls,triggerStyle:c,extraCls:a.extraCls,baseCls:a.baseCls})},setHidden:function(a){if(a!==this.hidden){this[a?'hide':'show']()}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=!1;if(a){a.show()}}},1,0,0,0,['trigger.trigger'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.form.trigger,'Trigger'],0);Ext.cmd.derive('Ext.form.field.Text',Ext.form.field.Base,{alternateClassName:['Ext.form.TextField','Ext.form.Text'],config:{hideTrigger:!1,triggers:undefined},renderConfig:{editable:!0},growMin:30,growMax:800,growAppend:'W',allowBlank:!0,validateBlank:!1,allowOnlyWhitespace:!0,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:'The minimum length for this field is {0}',maxLengthText:'The maximum length for this field is {0}',blankText:'This field is required',regexText:'',emptyText:'',emptyCls:'x-form-empty-field',requiredCls:'x-form-required-field',valueContainsPlaceholder:!1,ariaRole:'textbox',repeatTriggerClick:!1,triggerWrapCls:'x-form-trigger-wrap',triggerWrapFocusCls:'x-form-trigger-wrap-focus',triggerWrapInvalidCls:'x-form-trigger-wrap-invalid',fieldBodyCls:'x-form-text-field-body',inputWrapCls:'x-form-text-wrap',inputWrapFocusCls:'x-form-text-wrap-focus',inputWrapInvalidCls:'x-form-text-wrap-invalid',growCls:'x-form-text-grow',needArrowKeys:!0,squashMouseUp:{mouseup:function(){},translate:!1,single:!0,preventDefault:!0},childEls:['triggerWrap','inputWrap'],preSubTpl:[''],initComponent:function(){var a=this,b=a.emptyCls;if(a.allowOnlyWhitespace===!1){a.allowBlank=!1}if(a.size){a.defaultBodyWidth=a.size*6.5+20}if(!a.onTrigger1Click){a.onTrigger1Click=a.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(a.readOnly){a.setReadOnly(a.readOnly)}a.fieldFocusCls=a.baseCls+'-focus';a.emptyUICls=b+' '+b+'-'+a.ui;a.addStateEvents('change')},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(a.selectOnFocus||a.emptyText){a.mon(b,'mousedown',a.onMouseDown,a)}if(a.maskRe||a.vtype&&a.disableKeyFilter!==!0&&(a.maskRe=Ext.form.field.VTypes[a.vtype+'Mask'])){a.mon(b,'keypress',a.filterKeys,a)}if(a.enableKeyEvents){a.mon(b,{scope:a,keyup:a.onKeyUp,keydown:a.onKeyDown,keypress:a.onKeyPress})}},isEqual:function(a,b){return this.isEqualAsString(a,b)},onChange:function(a,b){Ext.form.field.Base.prototype.onChange.apply(this,arguments);this.autoSize()},getSubTplData:function(h){var a=this,c=a.getRawValue(),g=a.emptyText&&c.length<1,b=a.maxLength,e,f,d;if(a.enforceMaxLength){if(b===Number.MAX_VALUE){b=undefined}}else {b=undefined}if(g){if(Ext.supports.Placeholder){e=a.emptyText}else {c=a.emptyText;a.valueContainsPlaceholder=!0}}f=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,h),{triggerWrapCls:a.triggerWrapCls,inputWrapCls:a.inputWrapCls,triggers:a.orderedTriggers,maxLength:b,readOnly:!a.editable||a.readOnly,placeholder:e,value:c,fieldCls:a.fieldCls+(g&&(e||c)?' '+a.emptyUICls:'')+(a.allowBlank?'':' '+a.requiredCls)});d=f.inputElAriaAttributes;if(d){d['aria-required']=!a.allowBlank}return f},onRender:function(){var a=this,b=a.getTriggers(),c=[],d,e;if(Ext.supports.FixedTableWidthBug){a.el._needsTableWidthFix=!0}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(b){this.invokeTriggers('onFieldRender');for(d in b){c.push(b[d].el)}e=a.triggerEl=a.triggerCell=new Ext.CompositeElement(c,!0)}a.inputCell=a.inputWrap},afterRender:function(){var a=this;a.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);a.invokeTriggers('afterFieldRender')},onMouseDown:function(){if(!this.hasFocus){Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(c){var a=this,j=a.getHideTrigger(),k=a.readOnly,f=a.orderedTriggers=[],i=a.repeatTriggerClick,e,b,h,g,d;if(!c){c={};if(a.triggerCls&&!a.trigger1Cls){a.trigger1Cls=a.triggerCls}for(d=1;g=a['trigger'+d+'Cls'];d++){c['trigger'+d]={cls:g,extraCls:'x-trigger-index-'+d,handler:'onTrigger'+d+'Click',compat4Mode:!0,scope:a}}}for(e in c){if(c.hasOwnProperty(e)){b=c[e];b.field=a;b.id=e;if(k&&b.hideOnReadOnly!==!1||j&&b.hidden!==!1){b.hidden=!0}if(i&&b.repeatClick!==!1){b.repeatClick=!0}h=c[e]=Ext.form.trigger.Trigger.create(b);f.push(h)}}Ext.Array.sort(f,Ext.form.trigger.Trigger.weightComparator);return c},invokeTriggers:function(d,e){var f=this,a=f.getTriggers(),c,b;if(a){for(c in a){if(a.hasOwnProperty(c)){b=a[c];b[d].apply(b,e||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateHideTrigger:function(a){this.invokeTriggers(a?'hide':'show')},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(a){var b=this,d=b.getTriggers(),f=b.getHideTrigger(),c,e;a=!!a;Ext.form.field.Base.prototype.setReadOnly.call(this,a);if(b.rendered){b.setReadOnlyAttr(a||!b.editable)}if(d){for(e in d){c=d[e];if(c.hideOnReadOnly===!0||c.hideOnReadOnly!==!1&&!f){c.setVisible(!a)}}}},setReadOnlyAttr:function(c){var b=this,a='readonly',d=b.inputEl.dom;if(c){d.setAttribute(a,a)}else {d.removeAttribute(a)}if(b.ariaRole){b.ariaEl.dom.setAttribute('aria-readonly',!!c)}},processRawValue:function(c){var e=this,a=e.stripCharsRe,d,b;if(a){if(!a.global){d='g';d+=a.ignoreCase?'i':'';d+=a.multiline?'m':'';a=new RegExp(a.source,d)}b=c.replace(a,'');if(b!==c){e.setRawValue(b);c=b}}return c},onDisable:function(){Ext.form.field.Base.prototype.onDisable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable='on'}},onEnable:function(){Ext.form.field.Base.prototype.onEnable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable=''}},onKeyDown:function(a){this.fireEvent('keydown',this,a)},onKeyUp:function(a){this.fireEvent('keyup',this,a)},onKeyPress:function(a){this.fireEvent('keypress',this,a)},reset:function(){Ext.form.field.Base.prototype.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){var a=this,b=a.emptyText,c;if(a.rendered&&b){c=a.getRawValue().length<1&&!a.hasFocus;if(Ext.supports.Placeholder){a.inputEl.dom.placeholder=b}else {if(c){a.setRawValue(b);a.valueContainsPlaceholder=!0}}if(c){a.inputEl.addCls(a.emptyUICls)}else {a.inputEl.removeCls(a.emptyUICls)}a.autoSize()}},getEmptyText:function(){return this.emptyText},setEmptyText:function(e){var a=this,c=a.inputEl,b=c&&c.dom,d=e||'';if(e){a.emptyText=d;a.applyEmptyText()}else {if(b){if(Ext.supports.Placeholder){b.removeAttribute('placeholder')}else {if(b.value!==a.getRawValue()){b.value='';c.removeCls(a.emptyUICls)}}a.valueContainsPlaceholder=!1}}a.emptyText=d;return a},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var a=this.inputEl;if(a){a.dom.unselectable='on'}}},toggleInvalidCls:function(b){var a=b?'addCls':'removeCls';Ext.form.field.Base.prototype.toggleInvalidCls.call(this);this.triggerWrap[a](this.triggerWrapInvalidCls);this.inputWrap[a](this.inputWrapInvalidCls)},beforeFocus:function(){var a=this,b=a.inputEl,c=a.emptyText,d;Ext.form.field.Base.prototype.beforeFocus.apply(this,arguments);if(c&&!Ext.supports.Placeholder&&(b.dom.value===a.emptyText&&a.valueContainsPlaceholder)){a.setRawValue('');d=!0;b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}else {if(Ext.supports.Placeholder){b.removeCls(a.emptyUICls)}}},onFocus:function(b){var a=this;Ext.form.field.Base.prototype.onFocus.apply(this,arguments);if(a.selectOnFocus){a.inputEl.dom.select()}if(a.emptyText){a.autoSize()}a.addCls(a.fieldFocusCls);a.triggerWrap.addCls(a.triggerWrapFocusCls);a.inputWrap.addCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldFocus',[b])},onBlur:function(b){var a=this;Ext.form.field.Base.prototype.onBlur.apply(this,arguments);a.removeCls(a.fieldFocusCls);a.triggerWrap.removeCls(a.triggerWrapFocusCls);a.inputWrap.removeCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldBlur',[b])},completeEdit:function(a){Ext.form.field.Base.prototype.completeEdit.call(this,a);this.applyEmptyText()},filterKeys:function(a){if(a.ctrlKey&&!a.altKey||a.isSpecialKey()){return}var b=String.fromCharCode(a.getCharCode());if(!this.maskRe.test(b)){a.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),'value')},applyState:function(a){Ext.form.field.Base.prototype.applyState.apply(this,arguments);if(a.hasOwnProperty('value')){this.setValue(a.value)}},getRawValue:function(){var b=this,a=Ext.form.field.Base.prototype.getRawValue.call(this);if(a===b.emptyText&&b.valueContainsPlaceholder){a=''}return a},setValue:function(c){var a=this,b=a.inputEl;if(b&&a.emptyText&&!Ext.isEmpty(c)){b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}Ext.form.field.Base.prototype.setValue.apply(this,arguments);a.applyEmptyText();return a},getErrors:function(b){b=arguments.length?b==null?'':b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Base.prototype.getErrors.call(this,b),f=a.validator,d=a.vtype,j=Ext.form.field.VTypes,k=a.regex,i=Ext.String.format,e,h,g;if(Ext.isFunction(f)){e=f.call(a,b);if(e!==!0){c.push(e)}}h=a.allowOnlyWhitespace?b:Ext.String.trim(b);if(h.length<1||b===a.emptyText&&a.valueContainsPlaceholder){if(!a.allowBlank){c.push(a.blankText)}if(!a.validateBlank){return c}g=!0}if(!g&&b.lengtha.maxLength){c.push(i(a.maxLengthText,a.maxLength))}if(d){if(!j[d](b,a)){c.push(a.vtypeText||j[d+'Text'])}}if(k&&!k.test(b)){c.push(a.regexText||a.invalidText)}return c},selectText:function(a,b){var f=this,g=f.getRawValue(),c=g.length,e=f.inputEl.dom,d;if(c>0){a=a===undefined?0:Math.min(a,c);b=b===undefined?c:Math.min(b,c);if(e.setSelectionRange){e.setSelectionRange(a,b)}else {if(e.createTextRange){d=e.createTextRange();d.moveStart('character',a);d.moveEnd('character',b-c);d.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var a=this,d,f,c,g,b,e;if(a.grow&&a.rendered&&a.getSizeModel().width.auto){g=a.inputEl;d=a.getTriggers();c=0;e=Ext.util.Format.htmlEncode(a.getGrowWidth()||(a.hasFocus?'':a.emptyText)||'');e+=a.growAppend;for(f in d){c+=d[f].el.getWidth()}b=g.getTextWidth(e)+c+a.inputWrap.getBorderWidth('lr')+a.triggerWrap.getBorderWidth('lr');b=Math.min(Math.max(b,a.growMin),a.growMax);a.bodyEl.setWidth(b);a.updateLayout();a.fireEvent('autosize',a,b)}},onDestroy:function(){var a=this;a.invokeTriggers('destroy');Ext.destroy(a.triggerRepeater);Ext.form.field.Base.prototype.onDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return 'textfield'}},deprecated:{5:{methods:{getTriggerWidth:function(){var a=this.getTriggers(),c=0,b;if(a&&this.rendered){for(b in a){if(a.hasOwnProperty(b)){c+=a[b].el.getWidth()}}}return c}}}}},0,['textfield'],['component','box','field','textfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0},['widget.textfield'],0,[Ext.form.field,'Text',Ext.form,'TextField',Ext.form,'Text'],0);Ext.cmd.derive('Ext.form.field.TextArea',Ext.form.field.Text,{alternateClassName:'Ext.form.TextArea',fieldSubTpl:['',{disableFormats:!0}],growMin:60,growMax:1000,growAppend:'\n-',enterIsSpecial:!1,preventScrollbars:!1,returnRe:/\r/g,inputCls:'x-form-textarea',extraFieldBodyCls:'x-form-textarea-body',ariaAttributes:{'aria-multiline':!0},getSubTplData:function(d){var a=this,c=a.getFieldStyle(),b=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(a.grow){if(a.preventScrollbars){b.fieldStyle=(c||'')+';overflow:hidden;height:'+a.growMin+'px'}}return b},afterRender:function(){var a=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);a.needsMaxCheck=a.enforceMaxLength&&a.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(a.needsMaxCheck){a.inputEl.on('paste',a.onPaste,a)}},transformRawValue:function(a){return this.stripReturns(a)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(a){a=this.stripReturns(a);return Ext.form.field.Text.prototype.valueToRaw.call(this,a)},stripReturns:function(a){if(a&&typeof a==='string'){a=a.replace(this.returnRe,'')}return a},onPaste:function(){var a=this;if(!a.pasteTask){a.pasteTask=new Ext.util.DelayedTask(a.pasteCheck,a)}a.pasteTask.delay(1)},pasteCheck:function(){var b=this,a=b.getValue(),c=b.maxLength;if(a.length>c){a=a.substr(0,c);b.setValue(a)}},fireKey:function(a){var b=this,c=a.getKey(),d;if(a.isSpecialKey()&&(b.enterIsSpecial||(c!==a.ENTER||a.hasModifier()))){b.fireEvent('specialkey',b,a)}if(b.needsMaxCheck&&c!==a.BACKSPACE&&c!==a.DELETE&&!a.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(a,c)){d=b.getValue();if(d.length>=b.maxLength){a.stopEvent()}}},isCutCopyPasteSelectAll:function(a,b){if(a.ctrlKey){return b===a.A||b===a.C||b===a.V||b===a.X}return !1},autoSize:function(){var a=this,b,c,e,d;if(a.grow&&a.rendered&&a.getSizeModel().height.auto){b=a.inputEl;e=b.getWidth(!0);d=Ext.util.Format.htmlEncode(b.dom.value)||' ';d+=a.growAppend;d=d.replace(/\n/g,'
    ');c=Ext.util.TextMetrics.measure(b,d,e).height+b.getPadding('tb')+a.inputWrap.getBorderWidth('tb')+a.triggerWrap.getBorderWidth('tb');c=Math.min(Math.max(c,a.growMin),a.growMax);a.bodyEl.setHeight(c);a.updateLayout();a.fireEvent('autosize',a,c)}},beforeDestroy:function(){var a=this.pasteTask;if(a){a.cancel();this.pasteTask=null}Ext.form.field.Text.prototype.beforeDestroy.call(this)}},0,['textarea','textareafield'],['component','box','field','textfield','textareafield','textarea'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'textareafield':!0,'textarea':!0},['widget.textarea','widget.textareafield'],0,[Ext.form.field,'TextArea',Ext.form,'TextArea'],0);Ext.cmd.derive('Ext.window.MessageBox',Ext.window.Window,{OK:1,YES:2,NO:4,CANCEL:8,OKCANCEL:9,YESNO:6,YESNOCANCEL:14,INFO:'x-message-box-info',WARNING:'x-message-box-warning',QUESTION:'x-message-box-question',ERROR:'x-message-box-error',hideMode:'offsets',closeAction:'hide',resizable:!1,scrollable:!0,title:' ',defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:!0,cls:['x-message-box','x-hidden-offsets'],layout:{type:'vbox',align:'stretch'},shrinkWrapDock:!0,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:'OK',yes:'Yes',no:'No',cancel:'Cancel'},buttonIds:['ok','yes','no','cancel'],titleText:{confirm:'Confirm',prompt:'Prompt',wait:'Loading...',alert:'Attention'},baseIconCls:'x-message-box-icon',ariaRole:'alertdialog',makeButton:function(b){var a=this.buttonIds[b];return new Ext.button.Button({handler:this.btnCallback,itemId:a,scope:this,text:this.buttonText[a],minWidth:75})},btnCallback:function(e,b){var a=this,d,c;if(b&&b.type==='keydown'&&!b.isSpecialKey()){b.getTarget(null,null,!0).on({keyup:function(c){a.btnCallback(e,c)},single:!0});return}if(a.cfg.prompt||a.cfg.multiline){if(a.cfg.multiline){c=a.textArea}else {c=a.textField}d=c.getValue();c.reset()}a.hide();a.userCallback(e.itemId,d,a.cfg)},hide:function(){var a=this,b=a.cfg?a.cfg.cls:'';a.progressBar.reset();if(b){a.removeCls(b)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(b){var a=this;Ext.window.Window.prototype.constructor.apply(this,arguments);a.minWidth=a.defaultMinWidth=a.minWidth||a.defaultMinWidth;a.maxWidth=a.defaultMaxWidth=a.maxWidth||a.defaultMaxWidth;a.minHeight=a.defaultMinHeight=a.minHeight||a.defaultMinHeight;a.maxHeight=a.defaultMaxHeight=a.maxHeight||a.defaultMaxHeight},initComponent:function(e){var a=this,b=a.id,d,c;a.title=a.title||' ';a.iconCls=a.iconCls||'';a.topContainer=new Ext.container.Container({layout:'hbox',padding:10,style:{overflow:'hidden'},items:[a.iconComponent=new Ext.Component({cls:a.baseIconCls}),a.promptContainer=new Ext.container.Container({flex:1,layout:{type:'vbox',align:'stretch'},items:[a.msg=new Ext.Component({id:b+'-msg',cls:a.baseCls+'-text'}),a.textField=new Ext.form.field.Text({id:b+'-textfield',enableKeyEvents:!0,listeners:{keydown:a.onPromptKey,scope:a}}),a.textArea=new Ext.form.field.TextArea({id:b+'-textarea',height:75})]})]});a.progressBar=new Ext.ProgressBar({id:b+'-progressbar',margin:'0 10 10 10'});a.items=[a.topContainer,a.progressBar];a.msgButtons=[];for(d=0;d<4;d++){c=a.makeButton(d);a.msgButtons[c.itemId]=c;a.msgButtons.push(c)}a.bottomTb=new Ext.toolbar.Toolbar({id:b+'-toolbar',ui:'footer',dock:'bottom',layout:{pack:'center'},items:[a.msgButtons[0],a.msgButtons[1],a.msgButtons[2],a.msgButtons[3]]});a.dockedItems=[a.bottomTb];a.on('close',a.onClose,a);Ext.window.Window.prototype.initComponent.call(this)},onClose:function(){var a=this.header.child('[type=close]');if(a){a.itemId='cancel';this.btnCallback(a);delete a.itemId}},onPromptKey:function(c,b){var a=this;if(b.keyCode===b.RETURN||b.keyCode===10){if(a.msgButtons.ok.isVisible()){a.msgButtons.ok.handler.call(a,a.msgButtons.ok)}else {if(a.msgButtons.yes.isVisible()){a.msgButtons.yes.handler.call(a,a.msgButtons.yes)}}}},reconfigure:function(b){var a=this,j=0,q=!0,t=a.buttonText,g=a.resizer,c=a.header,r=c&&!c.isHeader,s=b&&(b.message||b.msg),i,n,m,e,d,f,o,k,l,h,p;a.updateButtonText();a.cfg=b=b||{};h=b.wait;if(b.width){n=b.width}if(b.height){m=b.height}a.minWidth=b.minWidth||a.defaultMinWidth;a.maxWidth=b.maxWidth||a.defaultMaxWidth;a.minHeight=b.minHeight||a.defaultMinHeight;a.maxHeight=b.maxHeight||a.defaultMaxHeight;if(g){i=g.resizeTracker;g.minWidth=i.minWidth=a.minWidth;g.maxWidth=i.maxWidth=a.maxWidth;g.minHeight=i.minHeight=a.minHeight;g.maxHeight=i.maxHeight=a.maxHeight}delete a.defaultFocus;if(b.defaultFocus){a.defaultFocus=b.defaultFocus}a.animateTarget=b.animateTarget||undefined;a.modal=b.modal!==!1;a.setTitle(b.title||r&&c.title||a.title);a.setIconCls(b.iconCls||r&&c.iconCls||a.iconCls);if(Ext.isObject(b.buttons)){a.buttonText=b.buttons;j=0}else {a.buttonText=b.buttonText||a.buttonText;j=Ext.isNumber(b.buttons)?b.buttons:0}j=j|a.updateButtonText();a.buttonText=t;Ext.suspendLayouts();a.width=a.height=null;if(n||m){if(n){a.setWidth(n)}if(m){a.setHeight(m)}}a.hidden=!1;if(!a.rendered){a.render(Ext.getBody())}a.closable=b.closable!==!1&&!h;c=a.header;if(c){p=c.child('[type=close]');if(p){p.setVisible(a.closable)}if(!b.title&&!a.closable&&!b.iconCls){c.hide()}else {c.show()}}a.liveDrag=!b.proxyDrag;a.userCallback=Ext.Function.bindCallback(b.callback||b.fn||Ext.emptyFn,b.scope||Ext.global);a.setIcon(b.icon);o=a.msg;if(s){o.setHtml(s);o.show()}else {o.hide()}d=a.textArea;f=a.textField;if(b.prompt||b.multiline){a.multiline=b.multiline;if(b.multiline){d.setValue(b.value);d.setHeight(b.defaultTextHeight||a.defaultTextHeight);d.show();f.hide();a.defaultFocus=d}else {f.setValue(b.value);d.hide();f.show();a.defaultFocus=f}}else {d.hide();f.hide()}k=a.progressBar;if(b.progress||h){k.show();a.updateProgress(0,b.progressText);if(h){k.wait(h===!0?b.waitConfig:h)}}else {k.hide()}l=a.msgButtons;for(e=0;e<4;e++){if(j&Math.pow(2,e)){if(!a.defaultFocus){a.defaultFocus=l[e]}l[e].show();q=!1}else {l[e].hide()}}if(q){a.bottomTb.hide()}else {a.bottomTb.show()}Ext.resumeLayouts(!0)},updateButtonText:function(){var b=this,c=b.buttonText,e=0,a,d;for(a in c){if(c.hasOwnProperty(a)){d=b.msgButtons[a];if(d){if(b.cfg&&b.cfg.buttonText){e=e|Math.pow(2,Ext.Array.indexOf(b.buttonIds,a))}if(d.text!==c[a]){d.setText(c[a])}}}}return e},show:function(b){var a=this,c;b=b||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){a.show(b)},single:!0});return a}a.reconfigure(b);if(b.cls){a.addCls(b.cls)}c=a.query('textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])');a.preventFocusOnActivate=!c.length;a.hidden=!0;Ext.window.Window.prototype.show.call(this);return a},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(e,d,c){var b=this,a=b.iconComponent,f=b.messageIconCls;if(f){a.removeCls(f)}if(e){a.show();if(d||c){a.setSize(d||a.getWidth(),c||a.getHeight())}a.addCls('x-dlg-icon');a.addCls(b.messageIconCls=e)}else {a.removeCls('x-dlg-icon');a.hide()}return b},updateProgress:function(c,b,a){this.progressBar.updateProgress(c,b);if(a){this.updateText(a)}return this},onEsc:function(){if(this.closable!==!1){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,b,d,c){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:b,buttons:this.YESNO,callback:d,scope:c}}return this.show(a)},prompt:function(a,c,f,d,b,e){if(Ext.isString(a)){a={prompt:!0,title:a,minWidth:this.minPromptWidth,message:c,buttons:this.OKCANCEL,callback:f,scope:d,multiline:b,value:e}}return this.show(a)},wait:function(a,c,b){if(Ext.isString(a)){a={title:c,message:a,closable:!1,wait:!0,modal:!0,minWidth:this.minProgressWidth,waitConfig:b}}return this.show(a)},alert:function(a,b,d,c){if(Ext.isString(a)){a={title:a,message:b,buttons:this.OK,fn:d,scope:c,minWidth:this.minWidth}}return this.show(a)},progress:function(a,c,b){if(Ext.isString(a)){a={title:a,message:c,progress:!0,progressText:b}}return this.show(a)}},1,['messagebox'],['component','box','container','panel','window','messagebox'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'messagebox':!0},['widget.messagebox'],0,[Ext.window,'MessageBox'],function(a){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new a()})});Ext.cmd.derive('Ext.form.Basic',Ext.util.Observable,{alternateClassName:'Ext.form.BasicForm',taskDelay:10,constructor:function(c,d){var a=this,b;a.owner=c;a.fieldMonitors={validitychange:a.checkValidityDelay,enable:a.checkValidityDelay,disable:a.checkValidityDelay,dirtychange:a.checkDirtyDelay,errorchange:a.checkErrorDelay,scope:a};a.checkValidityTask=new Ext.util.DelayedTask(a.checkValidity,a);a.checkDirtyTask=new Ext.util.DelayedTask(a.checkDirty,a);a.checkErrorTask=new Ext.util.DelayedTask(a.checkError,a);a.monitor=new Ext.container.Monitor({selector:'[isFormField]:not([excludeForm])',scope:a,addHandler:a.onFieldAdd,removeHandler:a.onFieldRemove,invalidateHandler:a.onMonitorInvalidate});a.monitor.bind(c);Ext.apply(a,d);if(Ext.isString(a.paramOrder)){a.paramOrder=a.paramOrder.split(/[\s,|]/)}b=a.reader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.reader=Ext.createByAlias('reader.'+b.type,b)}b=a.errorReader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.errorReader=Ext.createByAlias('reader.'+b.type,b)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=!0;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:!1,waitTitle:'Please Wait...',trackResetOnLoad:!1,wasDirty:!1,destroy:function(){var a=this,b=a.monitor;if(b){b.unbind();a.monitor=null}a.clearListeners();a.checkValidityTask.cancel();a.checkDirtyTask.cancel();a.checkErrorTask.cancel();a.checkValidityTask=a.checkDirtyTask=a.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},onFieldAdd:function(a){a.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(a){a.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var a=this._boundItems;if(!a||a.getCount()===0){a=this._boundItems=new Ext.util.MixedCollection();a.addAll(this.owner.query('[formBind]'))}return a},hasInvalidField:function(){return !!this.getFields().findBy(function(a){var c=a.preventMark,b;a.preventMark=!0;b=a.isValid();a.preventMark=c;return !b})},isValid:function(){var b=this,a;Ext.suspendLayouts();a=b.getFields().filterBy(function(a){return !a.validate()});Ext.resumeLayouts(!0);return a.length<1},checkValidity:function(){var a=this,b;if(a.destroyed){return}b=!a.hasInvalidField();if(b!==a.wasValid){a.onValidityChange(b);a.fireEvent('validitychange',a,b);a.wasValid=b}},checkValidityDelay:function(){var a=this.taskDelay;if(a){this.checkValidityTask.delay(a)}else {this.checkValidity()}},checkError:function(){this.fireEvent('errorchange',this)},checkErrorDelay:function(){var a=this.taskDelay;if(a){this.checkErrorTask.delay(a)}else {this.checkError()}},onValidityChange:function(e){var d=this.getBoundItems(),b,a,f,c;if(d){b=d.items;f=b.length;for(a=0;a','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','',' tabindex="{tabIdx}"',' disabled="disabled"',' style="{fieldStyle}"',' class="{checkboxCls} {clipCls}" autocomplete="off" hidefocus="true" ',' {$}="{.}"','/>','','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','','',{disableFormats:!0,compiled:!0}],publishes:{checked:1},subTplInsertions:['beforeBoxLabelTpl','afterBoxLabelTpl','beforeBoxLabelTextTpl','afterBoxLabelTextTpl','boxLabelAttrTpl','inputAttrTpl'],isCheckbox:!0,focusCls:'form-checkbox-focus',fieldBodyCls:'x-form-cb-wrap',checked:!1,checkedCls:'x-form-cb-checked',boxLabelCls:'x-form-cb-label',boxLabelAlign:'after',afterLabelCls:'x-form-cb-after',wrapInnerCls:'x-form-cb-wrap-inner',noBoxLabelCls:'x-form-cb-no-box-label',inputValue:'on',checkChangeEvents:[],inputType:'checkbox',isTextInput:!1,ariaRole:'checkbox',onRe:/^on$/i,inputCls:'x-form-cb',_checkboxCls:'x-form-cb-input',_clipCls:'x-hidden-clip',initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);a.getManager().add(a)},initDefaultName:Ext.emptyFn,initValue:function(){var a=this,b=!!a.checked;a.originalValue=a.lastValue=b;a.setValue(b)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}return Ext.form.field.Base.prototype.getElConfig.call(this)},getSubTplData:function(g){var a=this,f=a.boxLabel,e=a.boxLabelAlign,d=e==='before',c,b;c=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,g),{clipCls:a._clipCls,checkboxCls:a._checkboxCls,disabled:a.readOnly||a.disabled,wrapInnerCls:a.wrapInnerCls,boxLabel:f,boxLabelCls:a.boxLabelCls,boxLabelAlign:e,labelAlignedBefore:d,afterLabelCls:d?a.afterLabelCls:'',noBoxLabelCls:!f?a.noBoxLabelCls:'',inputName:a.name||a.id});b=c.inputElAriaAttributes;if(b){b['aria-checked']=!!a.checked;b['aria-labelledby']=a.id+'-boxLabelEl'}return c},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.inputEl.on({click:'onBoxClick',scope:a,translate:!1});a.displayEl.on({click:'onBoxClick',mousedown:'_onDisplayElMouseDown',scope:a})},setBoxLabel:function(b){var a=this;a.boxLabel=b;if(a.rendered){a.boxLabelEl.setHtml(b);a.boxLabelEl[b?'removeCls':'addCls'](a.noBoxLabelCls);a.updateLayout()}},onBoxClick:function(){var a=this;if(!a.disabled&&!a.readOnly){a.setValue(!a.checked)}},getRawValue:function(){return this.checked},getValue:function(){return this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.checked?this.inputValue:b},isChecked:function(a,b){return a===!0||a==='true'||a==='1'||a===1||((Ext.isString(a)||Ext.isNumber(a))&&b?a==b:this.onRe.test(a))},setRawValue:function(e){var a=this,d=a.inputEl,c=a.displayEl,b=a.isChecked(e,a.inputValue);if(d){a[b?'addCls':'removeCls'](a.checkedCls);if(a.ariaRole){a.ariaEl.dom.setAttribute('aria-checked',b)}}if(Ext.isIE8&&c&&b!==a.lastValue){c.repaint()}a.checked=a.rawValue=b;if(!a.duringSetValue){a.lastValue=b}return b},setValue:function(e){var a=this,c,b,f,d;if(Ext.isArray(e)){c=a.getManager().getByName(a.name,a.getFormId()).items;f=c.length;for(b=0;b style="{bodyStyle}">','{%this.renderContainer(out,values);%}',''],stateEvents:['collapse','expand'],maskOnDisable:!1,beforeDestroy:function(){var b=this,a=b.legend;if(a){delete a.ownerCt;a.destroy();b.legend=null}Ext.container.Container.prototype.beforeDestroy.call(this)},initComponent:function(){var a=this,b=a.baseCls;if(a.ariaRole&&!a.ariaLabel){a.ariaLabel=Ext.String.formatEncode(a.descriptionText,a.title||'')}a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!a.collapsed;a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.layout.managePadding=a.layout.manageOverflow=!1;if(a.collapsed){a.addCls(b+'-collapsed');a.collapse()}if(a.title||a.checkboxToggle||a.collapsible){a.addTitleClasses();a.legend=a.createLegendCt()}a.initMonitor()},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.bodyTargetCls=b.bodyTargetCls;b.protoBody.writeTo(a);delete b.protoBody;return a},getState:function(){var a=Ext.container.Container.prototype.getState.call(this);a=this.addPropertyToState(a,'collapsed');return a},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn,collapsedHorizontal:function(){return !0},collapsedVertical:function(){return !0},createLegendCt:function(){var a=this,c=[],d={baseCls:a.baseCls+'-header',layout:'container',ui:a.ui,id:a.id+'-legend',autoEl:'legend',ariaRole:null,items:c,ownerCt:a,shrinkWrap:!0,ownerLayout:a.componentLayout},b;if(a.checkboxToggle){c.push(a.createCheckboxCmp())}else {if(a.collapsible){c.push(a.createToggleCmp())}}c.push(a.createTitleCmp());b=new Ext.container.Container(d);b.collapseImmune=!0;b.getInherited().collapseImmune=!0;return b},createTitleCmp:function(){var a=this,b={html:a.title,ui:a.ui,cls:a.baseCls+'-header-text',id:a.id+'-legendTitle',ariaRole:'presentation'};if(a.collapsible&&a.toggleOnTitleClick){b.listeners={click:{element:'el',scope:a,fn:a.toggle}};b.cls+=' '+a.baseCls+'-header-text-collapsible'}a.titleCmp=new Ext.Component(b);return a.titleCmp},createCheckboxCmp:function(){var a=this,d='-checkbox',b=a.baseCls+'-header'+d,c;b+=' '+b+'-'+a.ui;a.checkboxCmp=c=new Ext.form.field.Checkbox({hideEmptyLabel:!0,name:a.checkboxName||a.id+d,cls:b,id:a.id+'-legendChk',ui:a.checkboxUI,checked:!a.collapsed,msgTarget:'none',listeners:{change:a.onCheckChange,scope:a},ariaLabel:a.expandText});return c},createToggleCmp:function(){var a=this,b;a.toggleCmp=b=new Ext.panel.Tool({cacheHeight:!1,cls:a.baseCls+'-header-tool-'+a.ui,type:'toggle',handler:a.toggle,id:a.id+'-legendToggle',scope:a,ariaRole:'checkbox',ariaLabel:a.expandText,ariaRenderAttributes:{'aria-checked':!a.collapsed}});return b},doRenderLegend:function(d,c){var e=c.$comp,a=e.legend,b;if(a){a.ownerLayout.configureItem(a);b=a.getRenderTree();Ext.DomHelper.generateMarkup(b,d)}},getCollapsed:function(){return this.collapsed?'top':!1},getCollapsedDockedItems:function(){var a=this.legend;return a?[a]:[]},setTitle:function(c){var a=this,b=a.legend;a.title=c;a.ariaLabel=Ext.String.formatEncode(a.descriptionText,c||'');if(a.rendered){if(!b){a.legend=b=a.createLegendCt();a.addTitleClasses();b.ownerLayout.configureItem(b);b.render(a.el,0)}a.titleCmp.update(c);a.ariaEl.dom.setAttribute('aria-label',a.ariaLabel)}else {if(b){a.titleCmp.update(c)}else {a.addTitleClasses();a.legend=a.createLegendCt()}}return a},addTitleClasses:function(){var a=this,c=a.title,b=a.baseCls;if(c){a.addCls(b+'-with-title')}if(c||a.checkboxToggle||a.collapsible){a.addCls(b+'-with-legend')}},expand:function(){return this.setExpanded(!0)},collapse:function(){return this.setExpanded(!1)},setExpanded:function(b){var a=this,d=a.checkboxCmp,c=a.toggleCmp,e=b?'expand':'collapse';if(!a.rendered||a.fireEvent('before'+e,a)!==!1){b=!!b;if(d){d.setValue(b)}else {if(c&&c.ariaEl.dom){c.ariaEl.dom.setAttribute('aria-checked',b)}}if(b){a.removeCls(a.baseCls+'-collapsed')}else {a.addCls(a.baseCls+'-collapsed')}if(a.ariaEl.dom){a.ariaEl.dom.setAttribute('aria-expanded',!!b)}a.collapsed=!b;if(b){delete a.getInherited().collapsed}else {a.getInherited().collapsed=!0}if(a.rendered){a.updateLayout({isRoot:!1});a.fireEvent(e,a)}}return a},getRefItems:function(c){var a=Ext.container.Container.prototype.getRefItems.apply(this,arguments),b=this.legend;if(b){a.unshift(b);if(c){a.unshift.apply(a,b.getRefItems(!0))}}return a},toggle:function(){this.setExpanded(!!this.collapsed)},privates:{applyTargetCls:function(a){this.bodyTargetCls=a},finishRender:function(){var a=this.legend;Ext.container.Container.prototype.finishRender.call(this);if(a){a.finishRender()}},getProtoBody:function(){var b=this,a=b.protoBody;if(!a){b.protoBody=a=new Ext.util.ProtoElement({styleProp:'bodyStyle',styleIsText:!0})}return a},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){return this.body||this.frameBody||this.el},initPadding:function(d){var b=this,e=b.getProtoBody(),a=b.padding,c;if(a!==undefined){if(Ext.isIE8){a=b.parseBox(a);c=Ext.Element.parseBox(0);c.top=a.top;a.top=0;e.setStyle('padding',b.unitizeBox(c))}d.setStyle('padding',b.unitizeBox(a))}},onCheckChange:function(b,a){this.setExpanded(a)},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderLegend=this.doRenderLegend}}},0,['fieldset'],['component','box','container','fieldset'],{'component':!0,'box':!0,'container':!0,'fieldset':!0},['widget.fieldset'],[['fieldAncestor',Ext.form.FieldAncestor]],[Ext.form,'FieldSet'],0);Ext.cmd.derive('Ext.form.Panel',Ext.panel.Panel,{alternateClassName:['Ext.FormPanel','Ext.form.FormPanel'],layout:'anchor',bodyAriaRole:'form',basicFormConfigs:['api','baseParams','errorReader','jsonSubmit','method','paramOrder','paramsAsHash','reader','standardSubmit','timeout','trackResetOnLoad','url','waitMsgTarget','waitTitle'],initComponent:function(){var a=this;if(a.frame){a.border=!1}a.initFieldAncestor();Ext.panel.Panel.prototype.initComponent.call(this);a.relayEvents(a.form,['beforeaction','actionfailed','actioncomplete','validitychange','dirtychange']);if(a.pollForChanges){a.startPolling(a.pollInterval||500)}},initItems:function(){Ext.panel.Panel.prototype.initItems.call(this);this.initMonitor();this.form=this.createForm()},afterFirstLayout:function(){Ext.panel.Panel.prototype.afterFirstLayout.apply(this,arguments);this.form.initialize()},createForm:function(){var d={},c=this.basicFormConfigs,e=c.length,b=0,a;for(;b150){delete a.lastDownArrow}if(!a.isExpanded){b.stopEvent();a.onTriggerClick();a.lastDownArrow=b.time}else {if(!b.isStopped&&b.time-a.lastDownArrow<150){delete a.lastDownArrow}}},expand:function(){var a=this,d,c,b,e;if(a.rendered&&!a.isExpanded&&!a.destroyed){d=a.bodyEl;b=a.getPicker();e=Ext.getDoc();b.setMaxHeight(b.initialConfig.maxHeight);if(a.matchFieldWidth){b.setWidth(a.bodyEl.getWidth())}b.show();a.isExpanded=!0;a.alignPicker();d.addCls(a.openCls);if(a.ariaRole){c=a.ariaEl.dom;c.setAttribute('aria-owns',b.listEl?b.listEl.id:b.el.id);c.setAttribute('aria-expanded',!0)}a.touchListeners=e.on({translate:!1,touchstart:a.collapseIf,scope:a,delegated:!1,destroyable:!0});a.scrollListeners=Ext.on({scroll:a.onGlobalScroll,scope:a,destroyable:!0});Ext.on('resize',a.alignPicker,a,{buffer:1});a.fireEvent('expand',a);a.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){if(!this.destroyed){var a=this.getPicker();if(a.isVisible()&&a.isFloating()){this.doAlign()}}},doAlign:function(){var a=this,c=a.picker,d='-above',b;a.picker.alignTo(a.triggerWrap,a.pickerAlign,a.pickerOffset);b=c.el.getY()=g){a.deselectRange(j,g-1)}else {if(h!==c){a.selectRange(h,c,f)}}}a.lastSelected=c}else {if(e){if(!f){a.doSelect(c,!1)}}else {a.selectWithEvent(c,b)}}}};break;case 'SIMPLE':if(e===b.A&&f){a.selected.beginUpdate();a.selectRange(0,a.store.getCount()-1);a.selected.endUpdate()}else {if(k){a.doDeselect(c)}else {a.doSelect(c,!0)}};break;case 'SINGLE':if(!f){if(i){a.doSelect(c,!1)}else {if(m||!e){a.selectWithEvent(c,b)}}};}if(!b.shiftKey&&!a.destroyed&&a.isSelected(c)){a.selectionStart=c;a.selectionStartIdx=g}},selectRange:function(d,f,m){var b=this,i=b.store,l=b.selected.items,h,a,g,e,c,j,k;if(b.isLocked()){return}h=b.normalizeRowRange(d,f);d=h[0];f=h[1];e=[];for(a=d;a<=f;a++){if(!b.isSelected(i.getAt(a))){e.push(i.getAt(a))}}if(!m){c=[];b.suspendChanges();for(a=0,g=l.length;af){c.push(k)}}for(a=0,g=c.length;a0)}}}},deselectRange:function(d,e){var a=this,h=a.store,g,c,b,f;if(a.isLocked()){return}g=a.normalizeRowRange(d,e);d=g[0];e=g[1];b=[];for(c=d;c<=e;c++){f=h.getAt(c);if(a.isSelected(f)){b.push(f)}}if(b.length){a.doDeselect(b)}},normalizeRowRange:function(a,b){var c=this.store,d;if(!Ext.isNumber(a)){a=c.indexOf(a)}a=Math.max(0,a);if(!Ext.isNumber(b)){b=c.indexOf(b)}b=Math.min(b,c.getCount()-1);if(a>b){d=b;b=a;a=d}return [a,b]},select:function(a,c,b){if(Ext.isDefined(a)&&!(Ext.isArray(a)&&!a.length)){this.doSelect(a,c,b)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(a,e,d){var b=this,c;if(b.locked||a==null){return}if(typeof a==='number'){c=b.store.getAt(a);if(!c){return}a=[c]}if(b.selectionMode==='SINGLE'){if(a.isModel){a=[a]}if(a.length){b.doSingleSelect(a[0],d)}}else {b.doMultiSelect(a,e,d)}},doMultiSelect:function(b,k,d){var a=this,g=a.selected,h=!1,e,f,j,c,i;if(a.locked){return}b=!Ext.isArray(b)?[b]:b;j=b.length;if(!k&&g.getCount()>0){e=a.deselectDuringSelect(b,d);if(a.destroyed){return}if(e[0]){a.maybeFireSelectionChange(e[1]>0&&!d);return}else {h=e[1]>0}}i=function(){if(!g.getCount()){a.selectionStart=c}g.add(c);h=!0};for(f=0;f0&&!f);return d===g},doSingleSelect:function(b,c){var a=this,e=!1,d=a.selected,f;if(a.locked){return}if(a.isSelected(b)){return}f=function(){if(d.getCount()){a.suspendChanges();var f=a.deselectDuringSelect([b],c);if(a.destroyed){return}a.resumeChanges();if(f[0]){return !1}}a.lastSelected=b;if(!d.getCount()){a.selectionStart=b}d.add(b);e=!0};a.onSelectChange(b,!0,c,f);if(e&&!a.destroyed){a.maybeFireSelectionChange(!c)}},maybeFireSelectionChange:function(b){var a=this;if(b&&!a.suspendChange){a.fireEvent('selectionchange',a,a.getSelection())}},getLastSelected:function(){return this.lastSelected},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(a){a=a?a.toUpperCase():'SINGLE';this.selectionMode=this.modes[a]?a:'SINGLE'},isLocked:function(){return this.locked},setLocked:function(a){this.locked=!!a},isRangeSelected:function(b,c){var e=this,f=e.store,a,d;d=e.normalizeRowRange(b,c);b=d[0];c=d[1];for(a=b;a<=c;a++){if(!e.isSelected(f.getAt(a))){return !1}}return !0},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected.contains(a)},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var a=this,l=a.store,e=[],c=[],k=a.getSelection(),m=k.length,b=a.getSelected(),h,j,d,g,i,f;if(!l||!(b.isCollection||b.isRows)||!b.getCount()){return}d=l.getData();if(d.getSource){j=d.getSource();if(j){d=j}}a.refreshing=!0;b.beginUpdate();a.suspendChanges();for(f=0;f0);if(i){a.fireEvent('lastselectedchanged',a,a.getSelection(),a.lastSelected)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(d,e,b,f){var a=this,c=e?'select':'deselect';if((b||a.fireEvent('before'+c,a,d))!==!1&&f()!==!1){if(!b){a.fireEvent(c,a,d)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(a){var c=this.view,b;if(c){b=c.resolveSatelliteListenerScope(this,a)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,a)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,selectWithEventMulti:function(b,l,e){var a=this,g=l.shiftKey,c=l.ctrlKey,j=g?a.getSelectionStart():null,i=a.getSelection(),k=i.length,f,d,h;if(g&&j){a.selectRange(j,b,c)}else {if(c&&e){if(a.allowDeselect){a.doDeselect(b,!1)}}else {if(c){a.doSelect(b,!0,!1)}else {if(e&&!g&&!c&&k>1){if(a.allowDeselect){f=[];for(d=0;dthis.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyRight:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyLeft:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(a){this.setPosition(0,a)},onKeyEnd:function(a){this.setPosition(this.view.all.getCount()-1,a)},onKeySpace:function(a){this.fireNavigateEvent(a)},onKeyEnter:function(a){a.stopEvent();a.view.fireEvent('itemclick',a.view,a.record,a.item,a.recordIndex,a)},onSelectAllKeyPress:function(a){this.fireNavigateEvent(a)},fireNavigateEvent:function(b){var a=this;a.fireEvent('navigate',{navigationModel:a,keyEvent:b,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,recordIndex:a.recordIndex,record:a.record,item:a.item})},destroy:function(){var a=this;a.setStore(null);Ext.destroy(a.viewListeners,a.keyNav);a.keyNav=a.viewListeners=a.dataSource=a.lastFocused=null;a.callParent()}},1,0,0,0,['view.navigation.default'],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,'NavigationModel'],0);Ext.cmd.derive('Ext.view.AbstractView',Ext.Component,{inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},defaultBindProperty:'store',renderBuffer:document.createElement('div'),statics:{updateDelay:200,queueRecordChange:function(n,o,d,m,f){var a=this,g=a.changeQueue||(a.changeQueue={}),i=d.internalId,h,b,l,e,c,j,k;h=g[i]||(g[i]={operation:m,record:d,data:{},views:[]});b=h.data;Ext.Array.include(h.views,n);if(f&&(l=f.length)){for(e=0;e
    {1}
    ',a.itemCls,b,a.itemAriaRole);a.tpl=new Ext.XTemplate(b,c)}Ext.Component.prototype.initComponent.call(this);a.tpl=a.getTpl('tpl');if(a.overItemCls){a.trackOver=!0}a.addCmpEvents();d=a.store=Ext.data.StoreManager.lookup(a.store||'ext-empty-store');if(!a.dataSource){a.dataSource=d}a.bindStore(d,!0);a.getNavigationModel().bindComponent(this);if(!a.all){a.all=new Ext.CompositeElementLite()}a.scrollState={top:0,left:0};a.savedTabIndexAttribute='data-savedtabindex-'+a.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(){var a=this.loadMask;Ext.Component.prototype.onRender.apply(this,arguments);if(a){this.createMask(a)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.apply(this,arguments);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refresh()}else {a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var a=this,b=a.loadingHeight;if(b&&b>a.getHeight()){a.hasLoadingHeight=!0;a.oldMinHeight=a.minHeight;a.minHeight=b;a.updateLayout()}},onMaskHide:function(){var a=this;if(!a.destroying&&a.hasLoadingHeight){a.minHeight=a.oldMinHeight;a.updateLayout();delete a.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.apply(this,arguments);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.apply(this,arguments);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var a=this.loadMask,b=[];if(a&&a.isComponent){b.push(a)}return b},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},applySelectionModel:function(b,e){var a=this,g=a.grid,c,f,d;if(e){e.un({scope:a,selectionchange:a.updateBindSelection,lastselectedchanged:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});Ext.destroy(a.selModelRelayer);b=Ext.Factory.selection(b)}else {if(b&&b.isSelectionModel){b.locked=a.disableSelection}else {if(a.simpleSelect){c='SIMPLE'}else {if(a.multiSelect){c='MULTI'}else {c='SINGLE'}}if(typeof b==='string'){b={type:b}}b=Ext.Factory.selection(Ext.apply({allowDeselect:a.allowDeselect||a.multiSelect,mode:c,locked:a.disableSelection},b))}}if(b.mode!=='SINGLE'){d=(g||a).ariaEl.dom;if(d){d.setAttribute('aria-multiselectable',!0)}else {if(!g){f=a.ariaRenderAttributes||(a.ariaRenderAttributes={});f['aria-multiselectable']=!0}}}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});return b},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(d){var a=this,b=a.getNavigationModel(),c;a.toggleChildrenTabbability(!1);if(!a.itemFocused&&a.all.getCount()){c=b.getLastFocused();b.setPosition(c||0,d.event,null,!c);a.itemFocused=b.getPosition()!=null}if(a.itemFocused){this.el.dom.setAttribute('tabIndex','-1')}Ext.Component.prototype.onFocusEnter.call(this,d)},onFocusLeave:function(b){var a=this;if(a.itemFocused&&!a.refreshing){a.getNavigationModel().setPosition(null,b.event,null,!0);a.itemFocused=!1;a.el.dom.setAttribute('tabIndex',0)}Ext.Component.prototype.onFocusLeave.call(this,b)},ariaSelect:function(c,b){var a=this.getNode(b);if(a){a.setAttribute('aria-selected',!0)}},ariaDeselect:function(c,b){var a=this.getNode(b);if(a){a.removeAttribute('aria-selected')}},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);if(!a){this.onFocusLeave({})}},refresh:function(){var a=this,c=a.all,i=c.getCount(),g=a.refreshCounter,e,k,f,j=a.getSelectionModel(),h,d=g&&c.getCount()&&a.preserveScrollOnRefresh&&a.getScrollable(),b;if(!a.rendered||a.destroyed){return}if(!a.hasListeners.beforerefresh||a.fireEvent('beforerefresh',a)!==!1){a.refreshing=!0;h=a.saveFocusState();e=a.getTargetEl();f=a.getViewRange();k=e.dom;if(d){b=d.getPosition();if(!(b.x||b.y)){b=null}}if(g){a.clearViewEl();a.refreshCounter++}else {a.refreshCounter=1}a.tpl.append(e,a.collectData(f,c.startIndex||0));if(f.length<1){a.addEmptyText();c.clear()}else {a.collectNodes(e.dom);a.updateIndexes(0)}h();if(a.refreshSelmodelOnRefresh!==!1){j.refresh()}a.refreshNeeded=!1;a.refreshSize(c.getCount()!==i);a.fireEvent('refresh',a,f);if(d){d.scrollTo(b)}if(!a.viewReady){a.viewReady=!0;a.fireEvent('viewready',a)}a.refreshing=!1;a.refreshScroll();a.cleanupData()}},addEmptyText:function(){var a=this,b=a.getStore();if(a.emptyText&&!b.isLoading()&&(!a.deferEmptyText||a.refreshCounter>1||b.isLoaded())){a.emptyEl=Ext.core.DomHelper.insertHtml('beforeEnd',a.getTargetEl().dom,a.emptyText)}},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(d){var a=this,b=a.getSizeModel(),c=a.getScrollable();if(b.height.shrinkWrap||b.width.shrinkWrap||d){a.updateLayout()}else {if(a.touchScroll&&!a.bufferedRenderer){if(c){c.refresh()}else {a.on({boxready:a.refreshScroll,scope:a,single:!0})}}}},afterFirstLayout:function(d,c){var a=this,b=a.getScrollable();if(b){b.on({scroll:a.onViewScroll,scrollend:a.onViewScrollEnd,scope:a,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,d,c)},clearViewEl:function(){var a=this,c=a.getTargetEl(),b=a.getNodeContainer()===c;a.clearEmptyEl();a.all.clear(!b);if(b){c.dom.innerHTML=''}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(c,a,b){this.fireEvent('scroll',this,a,b)},onViewScrollEnd:function(c,a,b){this.fireEvent('scrollend',this,a,b)},saveScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){b.left=a.getScrollX();b.top=a.getScrollY()}},restoreScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){a.setScrollX(b.left);a.setScrollY(b.top)}},prepareData:function(c,f,e){var a,b,d;if(e){a=e.getAssociatedData();for(b in a){if(a.hasOwnProperty(b)){if(!d){c=Ext.Object.chain(c);d=!0}c[b]=a[b]}}}return c},collectData:function(c,e){var d=[],a=0,f=c.length,b;for(;a-1){if(a.getNode(b)){d=a.bufferRender([b],c).children[0];a.all.replaceElement(c,d,!0);a.updateIndexes(c,c);e.onUpdate(b);a.refreshSizePending=!0;if(e.isSelected(b)){a.onItemSelect(b)}if(a.hasListeners.itemupdate){a.fireEvent('itemupdate',b,c,d)}return d}}}},onReplace:function(o,b,e,d){var a=this,c=a.all,n=a.getSelectionModel(),j=b,h,m,g,f,l,k,i;if(a.rendered){h=a.bufferRender(d,b,!0);g=h.fragment;f=h.children;m=c.item(b);if(m){c.item(b).insertSibling(g,'before',!0)}else {a.appendNodes(g)}c.insert(b,f);if(e.length){i=a.saveFocusState()}b+=d.length;k=b+e.length-1;l=c.removeRange(b,k,!0);if(a.refreshSelmodelOnRefresh!==!1){n.refresh()}a.updateIndexes(b);if(a.hasListeners.itemremove){a.fireEvent('itemremove',e,j,l,a)}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,j,f)}i();a.refreshSize()}},onAdd:function(f,d,b){var a=this,c,e=a.getSelectionModel();if(a.rendered){if(a.all.getCount()===0){a.refresh();c=a.all.slice()}else {c=a.doAdd(d,b);if(a.refreshSelmodelOnRefresh!==!1){e.refresh()}a.updateIndexes(b);a.refreshSizePending=!0}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,b,c)}}},appendNodes:function(a){var b=this.all,c=b.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(a)}else {b.item(c-1).insertSibling(a,'after')}},doAdd:function(j,b){var d=this,g=d.bufferRender(j,b,!0),f=g.fragment,c=g.children,a=d.all,h=a.getCount(),e=a.startIndex||0,i=a.endIndex||h-1;if(h===0||b>i){d.appendNodes(f)}else {if(b<=e){a.item(e).insertSibling(f,'before',!0)}else {a.item(b).insertSibling(c,'before',!0)}}a.insert(b,c);return c},onRemove:function(l,d,b){var a=this,i=a.all,g=a.hasListeners.itemremove,e,c,k,f,h,j;if(i.getCount()){if(a.dataSource.getCount()===0){if(g){a.fireEvent('itemremove',d,b,a.getNodes(b,b+d.length-1))}a.refresh()}else {j=a.saveFocusState();if(g){f=[]}for(c=d.length-1;c>=0;--c){k=d[c];e=b+c;if(f){h=i.item(e);f[c]=h?h.dom:undefined}if(i.item(e)){a.doRemove(k,e)}}if(g){a.fireEvent('itemremove',d,b,f,a)}j();a.updateIndexes(b)}a.refreshSizePending=!0}},doRemove:function(b,a){this.all.removeElement(a,!0)},saveFocusState:function(){var a=this,e=a.dataSource||a.store,c=a.getNavigationModel(),b=c.recordIndex,d=c.record;if(a.el.contains(Ext.Element.getActiveElement())){a.el.dom.focus();return function(){if(e.getCount()){b=Math.min(b,a.all.getCount()-1);c.setPosition(e.contains(d)?d:b,null,null,!0)}}}return Ext.emptyFn},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(d,b){var e=this.all.elements,c,f=this.getViewRange(),a,g=this.id;d=d||0;b=b||(b===0?0:e.length-1);for(a=d;a<=b;a++){c=e[a];c.setAttribute('data-recordIndex',a);c.setAttribute('data-recordId',f[a].internalId);c.setAttribute('data-boundView',g)}},bindStore:function(b,e){var a=this,c=a.getSelectionModel(),d=a.getNavigationModel();c.bindStore(b);c.bindComponent(b?a:null);a.mixins.storeholder.bindStore.apply(a,arguments);d.setStore(b);if(b&&a.componentLayoutCounter){a.doFirstRefresh(b,!e)}},doFirstRefresh:function(b,c){var a=this;if(a.deferInitialRefresh&&!c){Ext.defer(a.doFirstRefresh,1,a,[b,!0])}else {if(b&&!b.isLoading()){a.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(c,b){var a=this;if(a.store.isBufferedStore){a.store.preserveScrollOnReload=a.preserveScrollOnReload}if(b&&b.isBufferedStore){delete b.preserveScrollOnReload}a.setMaskBind(c);if(!a.dataSource){a.dataSource=c}},setMaskBind:function(b){var a=this.loadMask;if(this.rendered&&a&&b&&!a.bindStore){a=this.createMask()}if(a&&a.bindStore){a.bindStore(b)}},getStoreListeners:function(){var a=this;return {refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var a=this;if(a.updateSuspendCounter){--a.updateSuspendCounter}Ext.resumeLayouts(!0);if(a.refreshSizePending){a.refreshSize(!0);a.refreshSizePending=!1}},onDataRefresh:function(b){var a=this,c=a.preserveScrollOnRefresh;if(b.loadCount>a.lastRefreshLoadCount){a.preserveScrollOnRefresh=a.preserveScrollOnReLoad}a.refreshView();a.preserveScrollOnRefresh=c;a.lastRefreshLoadCount=b.loadCount},refreshView:function(){var a=this,b=a.blockRefresh||!a.rendered||a.up('[collapsed],[isCollapsingOrExpanding],[hidden]');if(b){a.refreshNeeded=!0}else {if(a.bufferedRenderer){a.bufferedRenderer.refreshView()}else {a.refresh()}}},findItemByChild:function(a){return Ext.fly(a).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(a){return a.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var c=[],b=this.getSelectionModel().getSelection(),d=b.length,a=0;for(;aa.bottom){d=b.bottom-a.bottom}}if(b.lefta.right){c=b.right-a.right}}if(c||d){g.scrollBy(c,d,!1)}e.set({tabIndex:-1});e.focus()}},privates:{repaintBorder:function(b){var a=this.getNode(b);if(a){a.className=a.className}}}},0,['dataview'],['component','box','dataview'],{'component':!0,'box':!0,'dataview':!0},['widget.dataview'],0,[Ext.view,'View',Ext,'DataView'],0);Ext.cmd.derive('Ext.view.BoundListKeyNav',Ext.view.NavigationModel,{navigateOnSpace:!0,initKeyNav:function(c){var a=this,b=c.pickerField;if(!a.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,c);a.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:a.onKeyEsc,scope:a})}if(!b){return}if(!b.rendered){b.on('render',Ext.Function.bind(a.initKeyNav,a,[c],0),a,{single:!0});return}a.fieldKeyNav=new Ext.util.KeyNav({disabled:!0,target:b.inputEl,forceKeyDown:!0,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,tab:a.onKeyTab,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1001,scope:a})},processViewEvent:function(b,c,e,d,a){if(a.within(b.listWrap)){return a}if(a.getKey()===a.ESC){if(Ext.fly(a.target).isInputField()){a.target=a.target.parentNode}return a}},enable:function(){this.fieldKeyNav.enable();Ext.view.NavigationModel.prototype.enable.call(this)},disable:function(){this.fieldKeyNav.disable();Ext.view.NavigationModel.prototype.disable.call(this)},onItemMouseDown:function(e,b,d,c,a){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,e,b,d,c,a);a.preventDefault()},onKeyUp:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b>0?b-1:f.getCount()-1;d.setPosition(e);g.preventDefault()},onKeyDown:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b
    ',destroy:function(){var a=this;if(a.spinnerEl){a.spinnerEl.destroy();a.spinnerEl=a.upEl=a.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var a=this;return {vertical:a.vertical,upDisabledCls:a.upEnabled?'':a.spinnerUpCls+'-disabled',downDisabledCls:a.downEnabled?'':a.spinnerDownCls+'-disabled',spinnerCls:a.spinnerCls,spinnerUpCls:a.spinnerUpCls,spinnerDownCls:a.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var a=this,d=arguments,c=a.clickRepeater?d[1]:d[0],b=a.field;if(!b.readOnly&&!b.disabled){if(a.upEl.contains(c.target)){Ext.callback(a.upHandler,a.scope,[b,a,c],0,b)}else {if(a.downEl.contains(c.target)){Ext.callback(a.downHandler,a.scope,[b,a,c],0,b)}}}b.inputEl.focus()},onFieldRender:function(){var a=this,d=a.vertical,c,b;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);c=a.spinnerEl=a.el.select('.'+a.spinnerCls,!0);b=c.elements;a.upEl=d?b[0]:b[1];a.downEl=d?b[1]:b[0]},setUpEnabled:function(a){this.upEl[a?'removeCls':'addCls'](this.spinnerUpCls+'-disabled')},setDownEnabled:function(a){this.downEl[a?'removeCls':'addCls'](this.spinnerDownCls+'-disabled')}},0,0,0,0,['trigger.spinner'],0,[Ext.form.trigger,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Spinner',Ext.form.field.Text,{alternateClassName:'Ext.form.Spinner',config:{triggers:{spinner:{type:'spinner',upHandler:'onSpinnerUpClick',downHandler:'onSpinnerDownClick',scope:'this'}}},spinUpEnabled:!0,spinDownEnabled:!0,keyNavEnabled:!0,mouseWheelEnabled:!0,repeatTriggerClick:!0,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:'spinbutton',applyTriggers:function(b){var c=this,a=b.spinner;a.upEnabled=c.spinUpEnabled;a.downEnabled=c.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},onRender:function(){var a=this,b=a.getTrigger('spinner');(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(a.keyNavEnabled){a.spinnerKeyNav=new Ext.util.KeyNav(a.inputEl,{scope:a,up:a.spinUp,down:a.spinDown})}if(a.mouseWheelEnabled){a.mon(a.bodyEl,'mousewheel',a.onMouseWheel,a)}a.spinUpEl=b.upEl;a.spinDownEl=b.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var a=this;if(a.spinUpEnabled&&!a.disabled){a.fireEvent('spin',a,'up');a.fireEvent('spinup',a);a.onSpinUp()}},spinDown:function(){var a=this;if(a.spinDownEnabled&&!a.disabled){a.fireEvent('spin',a,'down');a.fireEvent('spindown',a);a.onSpinDown()}},setSpinUpEnabled:function(b){var a=this,c=a.spinUpEnabled;a.spinUpEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setUpEnabled(b)}},setSpinDownEnabled:function(b){var a=this,c=a.spinDownEnabled;a.spinDownEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setDownEnabled(b)}},onMouseWheel:function(c){var b=this,a;if(b.hasFocus){a=c.getWheelDelta();if(a>0){b.spinUp()}else {if(a<0){b.spinDown()}}c.stopEvent()}},onDestroy:function(){Ext.destroyMembers(this,'spinnerKeyNav');Ext.form.field.Text.prototype.onDestroy.call(this)}},0,['spinnerfield'],['component','box','field','textfield','spinnerfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0},['widget.spinnerfield'],0,[Ext.form.field,'Spinner',Ext.form,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Number',Ext.form.field.Spinner,{alternateClassName:['Ext.form.NumberField','Ext.form.Number'],allowExponential:!0,allowDecimals:!0,decimalSeparator:null,submitLocaleSeparator:!0,decimalPrecision:2,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,step:1,minText:'The minimum value for this field is {0}',maxText:'The maximum value for this field is {0}',nanText:'{0} is not a valid number',negativeText:'The value cannot be negative',baseChars:'0123456789',autoStripChars:!1,initComponent:function(){var a=this;if(a.decimalSeparator===null){a.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);a.setMinValue(a.minValue);a.setMaxValue(a.maxValue)},getSubTplData:function(g){var f=this,e=f.minValue,d=f.maxValue,c,a,b;c=Ext.form.field.Spinner.prototype.getSubTplData.call(this,g);a=c.inputElAriaAttributes;if(a){if(e>Number.NEGATIVE_INFINITY){a['aria-valuemin']=e}if(d=e&&b<=d){a['aria-valuenow']=b}}return c},setValue:function(d){var a=this,c,b;if(a.hasFocus){c=a.getBind();b=c&&c.value;if(b&&b.syncing&&d===a.value){return a}}return Ext.form.field.Spinner.prototype.setValue.call(this,d)},getErrors:function(b){b=arguments.length>0?b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Spinner.prototype.getErrors.call(this,b),e=Ext.String.format,d;if(b.length<1){return c}b=String(b).replace(a.decimalSeparator,'.');if(isNaN(b)){c.push(e(a.nanText,b))}d=a.parseValue(b);if(a.minValue===0&&d<0){c.push(this.negativeText)}else {if(da.maxValue){c.push(e(a.maxText,a.maxValue))}return c},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(a){var b=this,c=b.decimalSeparator;a=b.parseValue(a);a=b.fixPrecision(a);a=Ext.isNumber(a)?a:parseFloat(String(a).replace(c,'.'));a=isNaN(a)?'':String(a).replace('.',c);return a},getSubmitValue:function(){var b=this,a=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!b.submitLocaleSeparator){a=a.replace(b.decimalSeparator,'.')}return a},onChange:function(a){var b=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(b){if(Ext.isNumber(a)&&isFinite(a)){b.setAttribute('aria-valuenow',a)}else {b.removeAttribute('aria-valuenow')}}},toggleSpinners:function(){var a=this,c=a.getValue(),d=c===null,b;if(a.spinUpEnabled||a.spinUpDisabledByToggle){b=d||ca.minValue;a.setSpinDownEnabled(b,!0)}},setMinValue:function(e){var a=this,c=a.ariaEl.dom,d,b,c;a.minValue=d=Ext.Number.from(e,Number.NEGATIVE_INFINITY);a.toggleSpinners();if(c){if(d>Number.NEGATIVE_INFINITY){c.setAttribute('aria-valuemin',d)}else {c.removeAttribute('aria-valuemin')}}if(a.disableKeyFilter!==!0){b=a.baseChars+'';if(a.allowExponential){b+=a.decimalSeparator+'e+-'}else {if(a.allowDecimals){b+=a.decimalSeparator}if(a.minValue<0){b+='-'}}b=Ext.String.escapeRegex(b);a.maskRe=new RegExp('['+b+']');if(a.autoStripChars){a.stripCharsRe=new RegExp('[^'+b+']','gi')}}},setMaxValue:function(c){var b=this.ariaEl.dom,a;this.maxValue=a=Ext.Number.from(c,Number.MAX_VALUE);if(b){if(aa.maxLength){return}}a.setValue(b)}},0,['numberfield'],['component','box','field','textfield','spinnerfield','numberfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0,'numberfield':!0},['widget.numberfield'],0,[Ext.form.field,'Number',Ext.form,'NumberField',Ext.form,'Number'],0);Ext.cmd.derive('Ext.toolbar.Paging',Ext.toolbar.Toolbar,{alternateClassName:'Ext.PagingToolbar',displayInfo:!1,prependButtons:!1,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display',beforePageText:'Page',afterPageText:'of {0}',firstText:'First Page',prevText:'Previous Page',nextText:'Next Page',lastText:'Last Page',refreshText:'Refresh',inputItemWidth:30,emptyPageData:{total:0,currentPage:0,pageCount:0,toRecord:0,fromRecord:0},defaultBindProperty:'store',getPagingItems:function(){var a=this,b={scope:a,blur:a.onPagingBlur};b[Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress']=a.onPagingKeyDown;return [{itemId:'first',tooltip:a.firstText,overflowText:a.firstText,iconCls:'x-tbar-page-first',disabled:!0,handler:a.moveFirst,scope:a},{itemId:'prev',tooltip:a.prevText,overflowText:a.prevText,iconCls:'x-tbar-page-prev',disabled:!0,handler:a.movePrevious,scope:a},'-',a.beforePageText,{xtype:'numberfield',itemId:'inputItem',name:'inputItem',cls:'x-tbar-page-number',allowDecimals:!1,minValue:1,hideTrigger:!0,enableKeyEvents:!0,keyNavEnabled:!1,selectOnFocus:!0,submitValue:!1,isFormField:!1,width:a.inputItemWidth,margin:'-1 2 3 2',listeners:b},{xtype:'tbtext',itemId:'afterTextItem',html:Ext.String.format(a.afterPageText,1)},'-',{itemId:'next',tooltip:a.nextText,overflowText:a.nextText,iconCls:'x-tbar-page-next',disabled:!0,handler:a.moveNext,scope:a},{itemId:'last',tooltip:a.lastText,overflowText:a.lastText,iconCls:'x-tbar-page-last',disabled:!0,handler:a.moveLast,scope:a},'-',{itemId:'refresh',tooltip:a.refreshText,overflowText:a.refreshText,iconCls:'x-tbar-loading',disabled:a.store.isLoading(),handler:a.doRefresh,scope:a}]},initComponent:function(){var a=this,c=a.items||a.buttons||[],b;a.bindStore(a.store||'ext-empty-store',!0);b=a.getPagingItems();if(a.prependButtons){a.items=c.concat(b)}else {a.items=b.concat(c)}delete a.buttons;if(a.displayInfo){a.items.push('->');a.items.push({xtype:'tbtext',itemId:'displayItem'})}Ext.toolbar.Toolbar.prototype.initComponent.call(this)},beforeRender:function(){Ext.toolbar.Toolbar.prototype.beforeRender.apply(this,arguments);this.updateBarInfo()},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=!0;a.onLoad();a.calledInternal=!1}},updateInfo:function(){var a=this,d=a.child('#displayItem'),f=a.store,b=a.getPageData(),e,c;if(d){e=f.getCount();if(e===0){c=a.emptyMsg}else {c=Ext.String.format(a.displayMsg,b.fromRecord,b.toRecord,b.total)}d.setText(c)}},onLoad:function(){var a=this,f,c,b,g,h,d,e;h=a.store.getCount();d=h===0;if(!d){f=a.getPageData();c=f.currentPage;b=f.pageCount;if(c>b){if(b>0){a.store.loadPage(b)}else {a.getInputItem().reset()}return}g=Ext.String.format(a.afterPageText,isNaN(b)?1:b)}else {c=0;b=0;g=Ext.String.format(a.afterPageText,0)}Ext.suspendLayouts();e=a.child('#afterTextItem');if(e){e.update(g)}e=a.getInputItem();if(e){e.setDisabled(d).setValue(c)}a.setChildDisabled('#first',c===1||d);a.setChildDisabled('#prev',c===1||d);a.setChildDisabled('#next',c===b||d);a.setChildDisabled('#last',c===b||d);a.setChildDisabled('#refresh',!1);a.updateInfo();Ext.resumeLayouts(!0);if(!a.calledInternal){a.fireEvent('change',a,f||a.emptyPageData)}},setChildDisabled:function(c,b){var a=this.child(c);if(a){a.setDisabled(b)}},getPageData:function(){var a=this.store,b=a.getTotalCount();return {total:b,currentPage:a.currentPage,pageCount:Math.ceil(b/a.pageSize),fromRecord:(a.currentPage-1)*a.pageSize+1,toRecord:Math.min(a.currentPage*a.pageSize,b)}},onLoadError:function(){this.setChildDisabled('#refresh',!1)},getInputItem:function(){return this.child('#inputItem')},readPageFromInput:function(d){var a=this.getInputItem(),b=!1,c;if(a){c=a.getValue();b=parseInt(c,10);if(!c||isNaN(b)){a.setValue(d.currentPage);return !1}}return b},onPagingBlur:function(c){var a=this.getInputItem(),b;if(a){b=this.getPageData().currentPage;a.setValue(b)}},onPagingKeyDown:function(a,b){this.processKeyEvent(a,b)},processKeyEvent:function(g,b){var e=this,c=b.getKey(),d=e.getPageData(),f=b.shiftKey?10:1,a;if(c===b.RETURN){b.stopEvent();a=e.readPageFromInput(d);if(a!==!1){a=Math.min(Math.max(1,a),d.pageCount);if(a!==d.currentPage&&e.fireEvent('beforechange',e,a)!==!1){e.store.loadPage(a)}}}else {if(c===b.HOME||c===b.END){b.stopEvent();a=c===b.HOME?1:d.pageCount;g.setValue(a)}else {if(c===b.UP||c===b.PAGE_UP||c===b.DOWN||c===b.PAGE_DOWN){b.stopEvent();a=e.readPageFromInput(d);if(a){if(c===b.DOWN||c===b.PAGE_DOWN){f*=-1}a+=f;if(a>=1&&a<=d.pageCount){g.setValue(a)}}}}}},beforeLoad:function(){this.setChildDisabled('#refresh',!0)},moveFirst:function(){if(this.fireEvent('beforechange',this,1)!==!1){this.store.loadPage(1);return !0}return !1},movePrevious:function(){var a=this,b=a.store,c=b.currentPage-1;if(c>0){if(a.fireEvent('beforechange',a,c)!==!1){b.previousPage();return !0}}return !1},moveNext:function(){var a=this,b=a.store,d=a.getPageData().pageCount,c=b.currentPage+1;if(c<=d){if(a.fireEvent('beforechange',a,c)!==!1){b.nextPage();return !0}}return !1},moveLast:function(){var a=this,b=a.getPageData().pageCount;if(a.fireEvent('beforechange',a,b)!==!1){a.store.loadPage(b);return !0}return !1},doRefresh:function(){var a=this,c=a.store,b=c.currentPage;if(a.fireEvent('beforechange',a,b)!==!1){c.loadPage(b);return !0}return !1},getStoreListeners:function(){return {beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},onDestroy:function(){this.bindStore(null);Ext.toolbar.Toolbar.prototype.onDestroy.call(this)}},0,['pagingtoolbar'],['component','box','container','toolbar','pagingtoolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'pagingtoolbar':!0},['widget.pagingtoolbar'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.toolbar,'Paging',Ext,'PagingToolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Paging',{override:'Ext.toolbar.Paging',defaultButtonUI:'plain-toolbar',inputItemWidth:40});Ext.define('Ext.theme.triton.toolbar.Paging',{override:'Ext.toolbar.Paging',inputItemWidth:50});Ext.cmd.derive('Ext.view.BoundList',Ext.view.View,{alternateClassName:'Ext.BoundList',pageSize:0,baseCls:'x-boundlist',itemCls:'x-boundlist-item',listItemCls:'',shadow:!1,trackOver:!0,preserveScrollOnRefresh:!0,enableInitialSelection:!1,refreshSelmodelOnRefresh:!0,componentLayout:'boundlist',navigationModel:'boundlist',scrollable:!0,ariaEl:'listEl',tabIndex:-1,childEls:['listWrap','listEl'],renderTpl:['
    ','
      {$}="{.}"','>','
    ','
    ','{%','var pagingToolbar=values.$comp.pagingToolbar;','if (pagingToolbar) {','Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);','}','%}',{disableFormats:!0}],focusOnToFront:!1,initComponent:function(){var a=this,b=a.baseCls,c=a.itemCls;a.selectedItemCls=b+'-selected';if(a.trackOver){a.overItemCls=b+'-item-over'}a.itemSelector='.'+c;a.scrollerSelector='ul.x-list-plain';if(a.floating){a.addCls(b+'-floating')}if(!a.tpl){a.tpl=new Ext.XTemplate('','
  • '+a.getInnerTpl(a.displayField)+'
  • ','
    ')}else {if(!a.tpl.isTemplate){a.tpl=new Ext.XTemplate(a.tpl)}}if(a.pageSize){a.pagingToolbar=a.createPagingToolbar()}Ext.view.View.prototype.initComponent.call(this)},getRefOwner:function(){return this.pickerField||Ext.view.View.prototype.getRefOwner.call(this)},getRefItems:function(){var b=Ext.view.View.prototype.getRefItems.call(this),a=this.pagingToolbar;if(a){b.push(a)}return b},createPagingToolbar:function(){return Ext.widget('pagingtoolbar',{id:this.id+'-paging-toolbar',pageSize:this.pageSize,store:this.dataSource,border:!1,ownerCt:this,ownerLayout:this.getComponentLayout()})},getNodeContainer:function(){return this.listEl},refresh:function(){var b=this,a=b.tpl;a.field=b.pickerField;a.store=b.store;Ext.view.View.prototype.refresh.call(this);a.field=a.store=null},bindStore:function(c,b){var a=this.pagingToolbar;Ext.view.View.prototype.bindStore.apply(this,arguments);if(a){a.bindStore(c,b)}},getInnerTpl:function(a){return '{'+a+'}'},onShow:function(){var a=this.pickerField;Ext.view.View.prototype.onShow.call(this);if(a&&a.rendered&&!a.hasFocus){a.focus()}},afterComponentLayout:function(e,d,c,b){var a=this.pickerField;Ext.view.View.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&a.alignPicker){a.alignPicker()}},onItemClick:function(e){var d=this,b=d.pickerField,c,a;if(!b){return}c=b.valueField;a=d.getSelectionModel().getSelection();if(!b.multiSelect&&a.length){a=a[0];if(a&&b.isEqual(e.get(c),a.get(c))&&b.collapse){b.collapse()}}},onContainerClick:function(b){var a=this.pagingToolbar;if(a&&a.rendered&&b.within(a.el)){return !1}},onDestroy:function(){Ext.view.View.prototype.onDestroy.call(this);Ext.destroyMembers(this,'pagingToolbar','listWrap','listEl')},privates:{getTargetEl:function(){return this.listEl},getOverflowEl:function(){return this.listWrap},finishRenderChildren:function(){var a=this.pagingToolbar;Ext.view.View.prototype.finishRenderChildren.apply(this,arguments);if(a){a.finishRender()}}}},0,['boundlist'],['component','box','dataview','boundlist'],{'component':!0,'box':!0,'dataview':!0,'boundlist':!0},['widget.boundlist'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,'BoundList',Ext,'BoundList'],0);Ext.cmd.derive('Ext.form.field.ComboBox',Ext.form.field.Picker,{alternateClassName:'Ext.form.ComboBox',config:{filters:null,selection:null,valueNotFoundText:null,displayTpl:!1,delimiter:', ',displayField:'text'},publishes:['selection'],twoWayBindable:['selection'],triggerCls:'x-form-arrow-trigger',hiddenName:'',collapseOnSelect:!1,hiddenDataCls:'x-hidden-display x-form-data-hidden',ariaRole:'combobox',childEls:{'hiddenDataEl':!0},filtered:!1,afterRender:function(){var a=this;Ext.form.field.Picker.prototype.afterRender.apply(this,arguments);a.setHiddenValue(a.value)},multiSelect:!1,triggerAction:'all',allQuery:'',queryParam:'query',queryMode:'remote',queryCaching:!0,autoLoadOnValue:!1,pageSize:0,anyMatch:!1,caseSensitive:!1,autoSelect:!0,typeAhead:!1,typeAheadDelay:250,selectOnTab:!0,forceSelection:!1,growToLongestValue:!0,clearFilterOnBlur:!0,defaultListConfig:{loadingHeight:70,minWidth:70,maxHeight:300,shadow:'sides'},transformInPlace:!0,clearValueOnEmpty:!0,getGrowWidth:function(){var a=this,i=a.inputEl.dom.value,h,e,g,c,b,f,d;if(a.growToLongestValue){h=a.displayField;e=a.store;g=e.data.length;c=0;for(b=0;bc){c=d;i=f}}}return i},initComponent:function(){var a=this,d=Ext.isDefined,f=a.store,e=a.transform,b,c;if('pinList' in a){a.collapseOnSelect=!a.pinList}if(e){b=Ext.getDom(e);if(b){if(!a.store){f=Ext.Array.map(Ext.Array.from(b.options),function(a){return [a.value,a.text]})}if(!a.name){a.name=b.name}if(!('value' in a)){a.value=b.value}}}a.bindStore(f||'ext-empty-store',!0,!0);c=a.queryMode==='local';if(!d(a.queryDelay)){a.queryDelay=c?10:500}if(!d(a.minChars)){a.minChars=c?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);a.doQueryTask=new Ext.util.DelayedTask(a.doRawQuery,a);if(b){if(a.transformInPlace){a.render(b.parentNode,b);delete a.renderTo}Ext.removeNode(b)}},getSubTplData:function(c){var b,a;b=Ext.form.field.Picker.prototype.getSubTplData.call(this,c);a=b.inputElAriaAttributes;if(a){a['aria-autocomplete']='list'}return b},getSubTplMarkup:function(c){var b=this,a='',d=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(b.hiddenName){a=''}return a+d},applyDisplayTpl:function(a){var b=this;if(!a){a=new Ext.XTemplate('{[typeof values === "string" ? values : values["'+b.getDisplayField()+'"]]}'+b.getDelimiter()+'');a.auto=!0}else {if(!a.isTemplate){a=new Ext.XTemplate(a)}}return a},applyFilters:function(b,a){var c=this;if(b===null||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.beginUpdate();a.splice(0,a.length,b);a.each(function(d){d.ownerId=c.id});a.endUpdate()}return a},applyValueNotFoundText:function(b){var a=this,c=a.valueNotFoundRecord||(a.valueNotFoundRecord=new Ext.data.Model());c.set(a.displayField,b);if(a.valueField&&a.displayField!==a.valueField){c.set(a.valueField,b)}return b},getFilters:function(b){var a=this.filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,c){var b=this;if(c){c.un('endupdate','onEndUpdateFilters',b)}if(a){a.on('endupdate','onEndUpdateFilters',b)}b.onEndUpdateFilters(a)},onEndUpdateFilters:function(a){var b=this,f=b.filtered,e=!!a&&a.length>0,d,c;if(f||e){b.filtered=e;d=[];c=b.store.getFilters();c.each(function(c){if(c.ownerId===b.id&&!a.contains(c)){d.push(c)}});c.splice(0,d,a.items)}},completeEdit:function(c){var a=this,b=a.queryFilter;Ext.form.field.Picker.prototype.completeEdit.call(this,c);a.doQueryTask.cancel();a.assertValue();if(b&&a.queryMode==='local'&&a.clearFilterOnBlur){a.getStore().getFilters().remove(b)}},onFocus:function(b){var a=this;Ext.form.field.Picker.prototype.onFocus.call(this,b);if(a.triggerAction!=='all'&&a.queryFilter&&a.queryMode==='local'&&a.clearFilterOnBlur){delete a.lastQuery;a.doRawQuery()}},assertValue:function(){var a=this,e=a.getRawValue(),c=a.getDisplayValue(),d=a.lastSelectedRecords,b;if(a.forceSelection){if(a.multiSelect){if(e!==c){a.setRawValue(c)}}else {b=a.findRecordByDisplay(e);if(b){if(a.getDisplayValue([a.getRecordDisplayData(b)])!==c){a.select(b,!0)}}else {if(d&&(!a.allowBlank||a.rawValue)){a.setValue(d)}else {if(d){delete a.lastSelectedRecords}a.setRawValue('')}}}}a.collapse()},onTypeAhead:function(){var a=this,e=a.displayField,d=a.store.findRecord(e,a.getRawValue()),f=a.getPicker(),b,g,c;if(d){b=d.get(e);g=b.length;c=a.getRawValue().length;f.highlightItem(f.getNode(d));if(c!==0&&c!==g){a.setRawValue(b);a.selectText(c,b.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){var a=this.queryFilter;Ext.form.field.Picker.prototype.beforeReset.call(this);if(a){this.getStore().getFilters().remove(a)}},onUnbindStore:function(){var a=this,c=a.picker,b=a.queryFilter;if(b&&!a.store.destroyed){a.changingFilters=!0;a.getStore().removeFilter(b,!0);a.changingFilters=!1}a.pickerSelectionModel.destroy();if(c){c.bindStore(null)}},onBindStore:function(b,f){var a=this,d=a.picker,c,e;if(b){if(b.autoCreated){a.queryMode='local';a.valueField=a.displayField='field1';if(!b.expanded){a.displayField='field2'}if(a.getDisplayTpl().auto){a.setDisplayTpl(null)}}if(!Ext.isDefined(a.valueField)){a.valueField=a.displayField}c={byValue:{rootProperty:'data',unique:!1}};c.byValue.property=a.valueField;b.setExtraKeys(c);if(a.displayField===a.valueField){b.byText=b.byValue}else {c.byText={rootProperty:'data',unique:!1};c.byText.property=a.displayField;b.setExtraKeys(c)}e={rootProperty:'data',extraKeys:{byInternalId:{property:'internalId'},byValue:{property:a.valueField,rootProperty:'data'}},listeners:{beginupdate:a.onValueCollectionBeginUpdate,endupdate:a.onValueCollectionEndUpdate,scope:a}};a.valueCollection=new Ext.util.Collection(e);a.pickerSelectionModel=new Ext.selection.DataViewModel({mode:a.multiSelect?'SIMPLE':'SINGLE',deselectOnContainerClick:!1,enableInitialSelection:!1,pruneRemoved:!1,selected:a.valueCollection,store:b,listeners:{scope:a,lastselectedchanged:a.updateBindSelection}});if(!f){a.resetToDefault()}if(d){d.setSelectionModel(a.pickerSelectionModel);if(d.getStore()!==b){d.bindStore(b)}}}},bindStore:function(a,e,c){var b=this,d=b.queryFilter;b.mixins.storeholder.bindStore.call(b,a,c);a=b.getStore();if(a&&d&&!e){a.getFilters().add(d)}if(!c&&a&&!a.isEmptyStore){b.setValueOnData()}},getStoreListeners:function(c){if(!c.isEmptyStore){var a=this,b={datachanged:a.onDataChanged,load:a.onLoad,exception:a.onException,update:a.onStoreUpdate,remove:a.checkValueOnChange};if(!c.getRemoteFilter()){b.filterchange=a.checkValueOnChange}return b}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var a=this;if(!a.destroying&&a.getStore().isLoaded()){if(a.multiSelect){}else {if(a.forceSelection&&!a.changingFilters&&!a.findRecordByValue(a.value)){a.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.collapse()},onLoad:function(b,e,d){var a=this,c=!a.valueCollection.byValue.get(a.value);if(d&&c&&!(b.lastOptions&&'rawQuery' in b.lastOptions)){a.setValueOnData()}a.checkValueOnChange()},setValueOnData:function(){var a=this;a.setValue(a.value);if(a.isExpanded&&a.getStore().getCount()){a.doAutoSelect()}},doRawQuery:function(){var a=this,b=a.inputEl.dom.value;if(a.multiSelect){b=b.split(a.delimiter).pop()}a.doQuery(b,!1,!0)},doQuery:function(c,f,g){var a=this,d=a.getStore(),e=d.filters&&!d.filters.length&&!!c,b=a.beforeQuery({query:c||'',rawQuery:g,forceAll:f,combo:a,cancel:!1});if(b!==!1&&!b.cancel){if(a.queryCaching&&!e&&b.query===a.lastQuery){a.getPicker().refresh();a.expand()}else {a.lastQuery=b.query;if(a.queryMode==='local'){a.doLocalQuery(b)}else {a.doRemoteQuery(b)}}}return !0},beforeQuery:function(a){var b=this;if(b.fireEvent('beforequery',a)===!1){a.cancel=!0}else {if(!a.cancel){if(a.query.length0){a=b.picker.getSelectionModel();if(a.lastSelected&&a.selected.length){c=a.lastSelected}d.getNavigationModel().setPosition(c)}},doTypeAhead:function(){var a=this,b=Ext.event.Event;if(!a.typeAheadTask){a.typeAheadTask=new Ext.util.DelayedTask(a.onTypeAhead,a)}if(a.lastKey!==b.BACKSPACE&&a.lastKey!==b.DELETE){a.typeAheadTask.delay(a.typeAheadDelay)}},onTriggerClick:function(){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else {if(a.triggerAction==='all'){a.doQuery(a.allQuery,!0)}else {if(a.triggerAction==='last'){a.doQuery(a.lastQuery,!0)}else {a.doQuery(a.getRawValue(),!1,!0)}}}}},onFieldMutation:function(b){var a=this,c=b.getKey(),d=c===b.BACKSPACE||c===b.DELETE,e=a.inputEl.dom.value,f=e.length;if(!a.readOnly&&(e!==a.lastMutatedValue||d)&&c!==b.TAB){a.lastMutatedValue=e;a.lastKey=c;if(f&&(b.type!=='keyup'||(!b.isSpecialKey()||d))){a.doQueryTask.delay(a.queryDelay)}else {if(!f&&(!c||d)){++a.suspendCheckChange;if(!a.multiSelect){a.value=null;a.displayTplData=undefined}if(a.clearValueOnEmpty){a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.removeAll();a.valueCollection.endUpdate()}a.collapse();if(a.queryFilter){a.changingFilters=!0;a.store.removeFilter(a.queryFilter,!0);a.changingFilters=!1}--a.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,b)}}},onDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);a.valueCollection=Ext.destroy(a.valueCollection);Ext.form.field.Picker.prototype.onDestroy.call(this)},onAdded:function(){var a=this;Ext.form.field.Picker.prototype.onAdded.apply(this,arguments);if(a.picker){a.picker.ownerCt=a.up('[floating]');a.picker.registerWithOwnerCt()}},createPicker:function(){var a=this,b,c=Ext.apply({xtype:'boundlist',id:a.pickerId,pickerField:a,selectionModel:a.pickerSelectionModel,floating:!0,hidden:!0,store:a.getPickerStore(),displayField:a.displayField,preserveScrollOnRefresh:!0,pageSize:a.pageSize,tpl:a.tpl},a.listConfig,a.defaultListConfig);b=a.picker=Ext.widget(c);if(a.pageSize){b.pagingToolbar.on('beforechange',a.onPageChange,a)}if(!b.initialConfig.maxHeight){b.on({beforeshow:a.onBeforePickerShow,scope:a})}b.getSelectionModel().on({beforeselect:a.onBeforeSelect,beforedeselect:a.onBeforeDeselect,focuschange:a.onFocusChange,scope:a});b.getNavigationModel().navigateOnSpace=!1;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(d){var b=this,a=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-a-b.getHeight();d.maxHeight=Math.max(a,c)-5},onBeforeSelect:function(c,b,a){return this.fireEvent('beforeselect',this,b,a)},onBeforeDeselect:function(c,b,a){return this.fireEvent('beforedeselect',this,b,a)},onFocusChange:function(e,d,b){var c=this.picker,a;if(b){a=Ext.get(c.getNodeByRecord(b));if(a){this.ariaEl.dom.setAttribute('aria-activedescendant',a.id)}}},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getPicker().getSelectionModel();if(c){b.select(c);a.hasHadSelection=!0}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var a=this,e=a.store,b=a.valueCollection.getRange(),d=b[0],c=b.length;a.updateBindSelection(a.pickerSelectionModel,b);if(a.isSelectionUpdating()){return}Ext.suspendLayouts();a.lastSelection=b;if(c){a.lastSelectedRecords=b}a.updateValue();if(c&&(!a.multiSelect&&e.contains(d)||a.collapseOnSelect||!e.getCount())){a.updatingValue=!0;a.collapse();a.updatingValue=!1}Ext.resumeLayouts(!0);if(c&&!a.suspendCheckChange){if(!a.multiSelect){b=d}a.fireEvent('select',a,b)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var a=this.getPicker().getNavigationModel();if(a){a.enable()}this.doAutoSelect()},onCollapse:function(){var a=this.getPicker().getNavigationModel();if(a){a.disable()}if(this.updatingValue){this.doQueryTask.cancel()}},select:function(b,e){var a=this,d=a.picker,c;if(b&&b.isModel&&e===!0&&d){c=!d.getSelectionModel().isSelected(b)}if(!c){a.suspendEvent('select')}a.setValue(b);a.resumeEvent('select')},findRecord:function(c,d){var b=this.store,a=b.findExact(c,d);return a!==-1?b.getAt(a):!1},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=!1;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=!1;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,!0)}},setValue:function(b){var a=this;if(b!=null){return a.doSetValue(b)}else {a.suspendEvent('select');a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.endUpdate();a.lastSelectedRecords=null;a.resumeEvent('select')}},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(c,p){var a=this,f=a.getStore(),v=f.getModel(),e=[],u=[],r=a.autoLoadOnValue,m=f.getCount()>0||f.isLoaded(),l=f.hasPendingLoad(),o=r&&!m&&!l,t=a.forceSelection,n=a.pickerSelectionModel,s=a.displayField===a.valueField,j=f.isEmptyStore,k=a.lastSelection,d,h,b,i,g,q;if(l||o||!m||j){if(!c.isModel){if(p){a.value=Ext.Array.from(a.value).concat(c)}else {a.value=c}a.setHiddenValue(a.value);a.setRawValue(s?c:'')}if(o&&!j){f.load()}if(!c.isModel||j){return a}}c=p?Ext.Array.from(a.value).concat(c):Ext.Array.from(c);for(d=0,h=c.length;d0){h.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:'input',type:'hidden',name:i}));a=1;g=d.firstChild}while(a>c){d.removeChild(b[0]);--a}while(a','
    ','','
    ','{.}','
    ','
    ','
    ','
    ','
    ','
    ','','
    ','
    ','','
    ','
    ','','
    ','{.}','
    ','
    ','
    ','
    ','','
    {%','var me=values.$comp, okBtn=me.okBtn, cancelBtn=me.cancelBtn;','okBtn.ownerLayout = cancelBtn.ownerLayout = me.componentLayout;','okBtn.ownerCt = cancelBtn.ownerCt = me;','Ext.DomHelper.generateMarkup(okBtn.getRenderTree(), out);','Ext.DomHelper.generateMarkup(cancelBtn.getRenderTree(), out);','%}
    ','
    ',''],okText:'OK',cancelText:'Cancel',baseCls:'x-monthpicker',showButtons:!0,footerButtonUI:'default',measureWidth:35,measureMaxHeight:20,smallCls:'x-monthpicker-small',totalYears:10,yearOffset:5,monthOffset:6,initComponent:function(){var a=this;a.selectedCls=a.baseCls+'-selected';if(a.small){a.addCls(a.smallCls)}a.setValue(a.value);a.activeYear=a.getYear((new Date()).getFullYear()-4,-4);if(a.showButtons){a.okBtn=new Ext.button.Button({ui:a.footerButtonUI,text:a.okText,handler:a.onOkClick,scope:a});a.cancelBtn=new Ext.button.Button({ui:a.footerButtonUI,text:a.cancelText,handler:a.onCancelClick,scope:a})}Ext.Component.prototype.initComponent.call(this)},beforeRender:function(){var a=this,b=0,f=[],c=Ext.Date.getShortMonthName,d=a.monthOffset,e=a.monthMargin,g='';if(a.padding&&!a.width){a.cacheWidth()}Ext.Component.prototype.beforeRender.call(this);for(;bb.measureMaxHeight){--a;c.setStyle('margin','0 '+a+'px')}return a},getLargest:function(b){var a=0;this.months.each(function(d){var c=d.getHeight();if(c>a){a=c}});return a},setValue:function(b){var a=this,d=a.activeYear,c;if(!b){a.value=[null,null]}else {if(Ext.isDate(b)){a.value=[b.getMonth(),b.getFullYear()]}else {a.value=[b[0],b[1]]}}if(a.rendered){c=a.value[1];if(c!==null){if(cd+a.yearOffset){a.activeYear=c-a.yearOffset+1}}a.updateBody()}return a},getValue:function(){return this.value},hasSelection:function(){var a=this.value;return a[0]!==null&&a[1]!==null},getYears:function(){var e=this,b=e.yearOffset,c=e.activeYear,f=c+b,a=c,d=[];for(;a','
    ','','
    {%this.renderMonthBtn(values, out)%}
    ','','
    ','','','','','','','','','','','','{#:this.isEndOfWeek}','','','','','
    ','','
    ','
    ','
    ','','','','
    {todayText}.
    ','
    {ariaMinText}.
    ','
    {ariaMaxText}.
    ','
    {ariaDisabledDaysText}.
    ','
    {ariaDisabledDatesText}.
    ','',{firstInitial:function(a){return Ext.picker.Date.prototype.getDayInitial(a)},isEndOfWeek:function(a){a--;var b=a%7===0&&a!==0;return b?'':''},renderTodayBtn:function(a,b){Ext.DomHelper.generateMarkup(a.$comp.todayBtn.getRenderTree(),b)},renderMonthBtn:function(a,b){Ext.DomHelper.generateMarkup(a.$comp.monthBtn.getRenderTree(),b)}}],initHour:12,numDays:42,initComponent:function(){var a=this,b=Ext.Date.clearTime;a.selectedCls=a.baseCls+'-selected';a.disabledCellCls=a.baseCls+'-disabled';a.prevCls=a.baseCls+'-prevday';a.activeCls=a.baseCls+'-active';a.cellCls=a.baseCls+'-cell';a.nextCls=a.baseCls+'-prevday';a.todayCls=a.baseCls+'-today';if(!a.format){a.format=Ext.Date.defaultFormat}if(!a.dayNames){a.dayNames=Ext.Date.dayNames}a.dayNames=a.dayNames.slice(a.startDay).concat(a.dayNames.slice(0,a.startDay));Ext.Component.prototype.initComponent.call(this);a.value=a.value?b(a.value,!0):b(new Date());a.initDisabledDays()},getRefOwner:function(){return this.pickerField||Ext.Component.prototype.getRefOwner.call(this)},getRefItems:function(){var a=[],b=this.monthBtn,c=this.todayBtn;if(b){a.push(b)}if(c){a.push(c)}return a},beforeRender:function(){var a=this,b=Ext.String.htmlEncode,d=new Array(a.numDays),c=Ext.Date.format(new Date(),a.format);if(a.padding&&!a.width){a.cacheWidth()}a.monthBtn=new Ext.button.Split({ownerCt:a,ownerLayout:a.getComponentLayout(),text:'',tooltip:a.monthYearText,tabIndex:-1,ariaRole:'presentation',listeners:{click:a.doShowMonthPicker,arrowclick:a.doShowMonthPicker,scope:a}});if(a.showToday){a.todayBtn=new Ext.button.Button({ui:a.footerButtonUI,ownerCt:a,ownerLayout:a.getComponentLayout(),text:Ext.String.format(a.todayText,c),tooltip:Ext.String.format(a.todayTip,c),tooltipType:'title',tabIndex:-1,ariaRole:'presentation',handler:a.selectToday,scope:a})}Ext.Component.prototype.beforeRender.call(this);Ext.applyIf(a,{renderData:{}});Ext.apply(a.renderData,{dayNames:a.dayNames,showToday:a.showToday,prevText:b(a.prevText),nextText:b(a.nextText),todayText:b(a.todayText),ariaMinText:b(a.ariaMinText),ariaMaxText:b(a.ariaMaxText),ariaDisabledDaysText:b(a.ariaDisabledDaysText),ariaDisabledDatesText:b(a.ariaDisabledDatesText),days:d});a.protoEl.unselectable()},cacheWidth:function(){var a=this,b=a.parseBox(a.padding),c=Ext.getBody().createChild({cls:a.baseCls+' '+a.borderBoxCls,style:'position:absolute;top:-1000px;left:-1000px;'});a.self.prototype.width=c.getWidth()+b.left+b.right;c.destroy()},onRender:function(b,c){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);a.cells=a.eventEl.select('tbody td');a.textNodes=a.eventEl.query('tbody td div');a.eventEl.set({'aria-labelledby':a.monthBtn.id});a.mon(a.eventEl,{scope:a,mousewheel:a.handleMouseWheel,click:{fn:a.handleDateClick,delegate:'div.'+a.baseCls+'-date'}})},initEvents:function(){var a=this,c=a.pickerField,b=Ext.Date,d=b.DAY;Ext.Component.prototype.initEvents.call(this);if(c){a.el.on('mousedown',a.onMouseDown,a)}a.monthBtn.el.on('mousedown',a.onMouseDown,a);a.prevRepeater=new Ext.util.ClickRepeater(a.prevEl,{handler:a.showPrevMonth,scope:a,mousedownStopEvent:!0});a.nextRepeater=new Ext.util.ClickRepeater(a.nextEl,{handler:a.showNextMonth,scope:a,mousedownStopEvent:!0});a.keyNav=new Ext.util.KeyNav(a.eventEl,Ext.apply({scope:a,left:function(c){if(c.ctrlKey){c.preventDefault();a.showPrevMonth()}else {a.update(b.add(a.activeDate,d,-1))}},right:function(c){if(c.ctrlKey){c.preventDefault();a.showNextMonth()}else {a.update(b.add(a.activeDate,d,1))}},up:function(c){if(c.ctrlKey){a.showNextYear()}else {a.update(b.add(a.activeDate,d,-7))}},down:function(c){if(c.ctrlKey){a.showPrevYear()}else {a.update(b.add(a.activeDate,d,7))}},pageUp:function(b){if(b.ctrlKey){a.showPrevYear()}else {a.showPrevMonth()}},pageDown:function(b){if(b.ctrlKey){a.showNextYear()}else {a.showNextMonth()}},tab:function(b){a.handleTabKey(b);return !0},enter:function(b){a.handleDateClick(b,a.activeCell.firstChild)},space:function(){a.setValue(new Date(a.activeCell.firstChild.dateValue));var d=a.startValue,e=a.value,b;if(c){b=c.getValue();if(b&&d&&b.getTime()===e.getTime()){c.setValue(d)}else {c.setValue(e)}}},home:function(c){a.update(b.getFirstDateOfMonth(a.activeDate))},end:function(c){a.update(b.getLastDateOfMonth(a.activeDate))}},a.keyNavConfig));if(a.disabled){a.syncDisabled(!0)}a.update(a.value)},onMouseDown:function(a){a.preventDefault()},handleTabKey:function(d){var a=this,b=a.getSelectedDate(a.activeDate),c=a.handler;if(!a.disabled&&b.dateValue&&!Ext.fly(b.parentNode).hasCls(a.disabledCellCls)){a.setValue(new Date(b.dateValue));a.fireEvent('select',a,a.value);if(c){c.call(a.scope||a,a,a.value)}a.onSelect()}else {a.fireEventArgs('tabout',[a])}},getSelectedDate:function(g){var e=this,i=g.getTime(),d=e.cells,h=e.selectedCls,c=d.elements,f=c.length,b,a;d.removeCls(h);for(a=0;a0){this.showPrevMonth()}else {if(a<0){this.showNextMonth()}}}},handleDateClick:function(d,b){var a=this,c=a.handler;d.stopEvent();if(!a.disabled&&b.dateValue&&!Ext.fly(b.parentNode).hasCls(a.disabledCellCls)){a.setValue(new Date(b.dateValue));a.fireEvent('select',a,a.value);if(c){c.call(a.scope||a,a,a.value)}a.onSelect()}},onSelect:function(){if(this.hideOnSelect){this.hide()}},selectToday:function(){var a=this,c=a.todayBtn,b=a.handler;if(c&&!c.disabled){a.setValue(Ext.Date.clearTime(new Date()));a.fireEvent('select',a,a.value);if(b){b.call(a.scope||a,a,a.value)}a.onSelect()}return a},selectedUpdate:function(g){var b=this,h=g.getTime(),d=b.cells,e=b.selectedCls,c,f=d.getCount(),a;b.eventEl.dom.setAttribute('aria-busy','true');a=b.activeCell;if(a){Ext.fly(a).removeCls(e);a.setAttribute('aria-selected',!1)}for(c=0;cu||j&&k&&j.test(b.dateFormat(g,k))||l&&l.indexOf(g.getDay())!==-1;if(!a.disabled){a.todayBtn.setDisabled(r)}}s=function(m,g){var d=z[m],e=[];if(!d.hasAttribute('id')){d.setAttribute('id',a.id+'-cell-'+m)}f=+b.clearTime(c,!0);d.firstChild.dateValue=f;d.setAttribute('aria-label',b.format(c,B));d.removeAttribute('aria-describedby');d.removeAttribute('data-qtip');if(f===A){g+=' '+a.todayCls;e.push(a.id+'-todayText')}if(f===x){a.activeCell=d;a.eventEl.dom.setAttribute('aria-activedescendant',d.id);d.setAttribute('aria-selected',!0);g+=' '+a.selectedCls;a.fireEvent('highlightitem',a,d)}else {d.setAttribute('aria-selected',!1)}if(fu){g+=' '+i;e.push(a.id+'-ariaMaxText');d.setAttribute('data-qtip',a.maxText)}else {if(l&&l.indexOf(c.getDay())!==-1){d.setAttribute('data-qtip',D);e.push(a.id+'-ariaDisabledDaysText');g+=' '+i}else {if(j&&k){p=b.dateFormat(c,k);if(j.test(p)){d.setAttribute('data-qtip',y.replace('%0',p));e.push(a.id+'-ariaDisabledDatesText');g+=' '+i}}}}}if(e.length){d.setAttribute('aria-describedby',e.join(' '))}d.className=g+' '+a.cellCls};a.eventEl.dom.setAttribute('aria-busy','true');for(;d=t){m=++E;n=a.nextCls}else {m=d-e+1;n=a.activeCls}}w[d].innerHTML=m;c.setDate(c.getDate()+1);s(d,n)}a.eventEl.dom.removeAttribute('aria-busy');a.monthBtn.setText(Ext.Date.format(h,a.monthYearFormat))},update:function(c,d){var a=this,b=a.activeDate;if(a.rendered){a.activeDate=c;if(!d&&b&&a.el&&b.getMonth()===c.getMonth()&&b.getFullYear()===c.getFullYear()){a.selectedUpdate(c,b)}else {a.fullUpdate(c,b)}}return a},beforeDestroy:function(){var a=this;if(a.rendered){Ext.destroy(a.keyNav,a.monthPicker,a.monthBtn,a.nextRepeater,a.prevRepeater,a.todayBtn,a.todayElSpan);delete a.textNodes;delete a.cells.elements}Ext.Component.prototype.beforeDestroy.call(this)},privates:{finishRenderChildren:function(){var a=this;Ext.Component.prototype.finishRenderChildren.call(this);a.monthBtn.finishRender();if(a.showToday){a.todayBtn.finishRender()}},getFocusEl:function(){return this.eventEl},syncDisabled:function(b){var a=this,c=a.keyNav;if(c){c.setDisabled(b);a.prevRepeater.setDisabled(b);a.nextRepeater.setDisabled(b);if(a.todayBtn){a.todayBtn.setDisabled(b)}}}}},0,['datepicker'],['component','box','datepicker'],{'component':!0,'box':!0,'datepicker':!0},['widget.datepicker'],0,[Ext.picker,'Date',Ext,'DatePicker'],0);Ext.define('Ext.theme.triton.picker.Date',{override:'Ext.picker.Date',footerButtonUI:'default-toolbar'});Ext.cmd.derive('Ext.form.field.Date',Ext.form.field.Picker,{alternateClassName:['Ext.form.DateField','Ext.form.Date'],format:'m/d/Y',ariaFormat:'M j Y',altFormats:'m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j',disabledDaysText:'Disabled',ariaDisabledDaysText:'This day of week is disabled',disabledDatesText:'Disabled',ariaDisabledDatesText:'This date cannot be selected',minText:'The date in this field must be equal to or after {0}',ariaMinText:'The date must be equal to or after {0}',maxText:'The date in this field must be equal to or before {0}',ariaMaxText:'The date must be equal to or before {0}',invalidText:'{0} is not a valid date - it must be in the format {1}',formatText:'Expected date format: {0}',triggerCls:'x-form-date-trigger',showToday:!0,useStrict:undefined,initTime:'12',initTimeFormat:'H',matchFieldWidth:!1,startDay:0,valuePublishEvent:['select','blur'],ariaRole:'combobox',initComponent:function(){var a=this,d=Ext.isString,c,b;c=a.minValue;b=a.maxValue;if(d(c)){a.minValue=a.parseDate(c)}if(d(b)){a.maxValue=a.parseDate(b)}a.disabledDatesRE=null;a.initDisabledDays();Ext.form.field.Picker.prototype.initComponent.call(this)},initValue:function(){var a=this,b=a.value;if(Ext.isString(b)){a.value=a.rawToValue(b)}Ext.form.field.Picker.prototype.initValue.call(this)},initDisabledDays:function(){if(this.disabledDates){var c=this.disabledDates,f=c.length-1,d='(?:',a,e=c.length,b;for(a=0;a0?b:this.formatDate(this.processRawValue(this.getRawValue()));var a=this,e=Ext.String.format,l=Ext.Date.clearTime,c=Ext.form.field.Picker.prototype.getErrors.call(this,b),d=a.disabledDays,k=a.disabledDatesRE,g=a.minValue,f=a.maxValue,o=d?d.length:0,j=0,m,h,n,i;if(b===null||b.length<1){return c}m=b;b=a.parseDate(b);if(!b){c.push(e(a.invalidText,m,Ext.Date.unescapeFormat(a.format)));return c}i=b.getTime();if(g&&il(f).getTime()){c.push(e(a.maxText,a.formatDate(f)))}if(d){n=b.getDay();for(;jm){if(a.anchorToTarget){a.defaultAlign='r-l';if(a.mouseOffset){a.mouseOffset[0]*=-1}}a.anchor='right';return a.getTargetXY()}if(b[1]l){if(a.anchorToTarget){a.defaultAlign='b-t';if(a.mouseOffset){a.mouseOffset[1]*=-1}}a.anchor='bottom';return a.getTargetXY()}}a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl.addCls(a.anchorCls);a.targetCounter=0;return b}else {c=a.getMouseOffset();return a.targetXY?[a.targetXY[0]+c[0],a.targetXY[1]+c[1]]:c}},calculateConstrainedPosition:function(e){var a=this,d,b,c;if(!e&&a.isContainedFloater()){d=a.isVisible();if(!d){a.el.show()}b=a.getTargetXY();if(!d){a.el.hide()}c=a.floatParent.getTargetEl().getViewRegion();b[0]-=c.left;b[1]-=c.top}else {b=a.callOverridden(arguments)}return b},getMouseOffset:function(){var a=this,b=a.anchor?[0,0]:[15,18];if(a.mouseOffset){b[0]+=a.mouseOffset[0];b[1]+=a.mouseOffset[1]}return b},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity('')}})},getAnchorPosition:function(){var a=this,b;if(a.anchor){a.tipAnchor=a.anchor.charAt(0)}else {b=a.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);a.tipAnchor=b[1].charAt(0)}switch(a.tipAnchor){case 't':return 'top';case 'b':return 'bottom';case 'r':return 'right';}return 'left'},getAnchorAlign:function(){switch(this.anchor){case 'top':return 'tl-bl';case 'left':return 'tl-tr';case 'right':return 'tr-tl';default:return 'bl-tl';}},getOffsets:function(){var b=this,c,a,d=b.getAnchorPosition().charAt(0);if(b.anchorToTarget&&!b.trackMouse){switch(d){case 't':a=[0,9];break;case 'b':a=[0,-13];break;case 'r':a=[-13,0];break;default:a=[9,0];break;}}else {switch(d){case 't':a=[-15-b.anchorOffset,30];break;case 'b':a=[-19-b.anchorOffset,-13-b.el.dom.offsetHeight];break;case 'r':a=[-15-b.el.dom.offsetWidth,-13-b.anchorOffset];break;default:a=[25,-13-b.anchorOffset];break;}}c=b.getMouseOffset();a[0]+=c[0];a[1]+=c[1];return a},onTargetOver:function(b){var a=this,d=a.delegate,c;if(a.disabled||b.within(a.target.dom,!0)){return}c=d?b.getTarget(d):!0;if(c){a.triggerElement=c;a.triggerEvent=b;a.clearTimer('hide');a.targetXY=b.getXY();a.delayShow()}},delayShow:function(c){var a=this,b=a.el&&(c===!1||!a.trackMouse)&&a.getTargetXY();if(a.hidden&&!a.showTimer){if(Ext.Date.getElapsed(a.lastActive)=e&&a<=d}});b.add(c);b.endUpdate()}},0,['timepicker'],['component','box','dataview','boundlist','timepicker'],{'component':!0,'box':!0,'dataview':!0,'boundlist':!0,'timepicker':!0},['widget.timepicker'],0,[Ext.picker,'Time'],function(){this.prototype.modelType=Ext.define(null,{extend:'Ext.data.Model',fields:['disp','date']})});Ext.cmd.derive('Ext.form.field.Time',Ext.form.field.ComboBox,{alternateClassName:['Ext.form.TimeField','Ext.form.Time'],triggerCls:'x-form-time-trigger',minText:'The time in this field must be equal to or after {0}',maxText:'The time in this field must be equal to or before {0}',invalidText:'{0} is not a valid time',format:'g:i A',altFormats:'g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H|gi a|hi a|giA|hiA|gi A|hi A',formatText:'Expected time format: HH:MM space am/pm',increment:15,pickerMaxHeight:300,selectOnTab:!0,snapToIncrement:!1,valuePublishEvent:['select','blur'],initDate:'1/1/2008',initDateParts:[2008,0,1],initDateFormat:'j/n/Y',queryMode:'local',displayField:'disp',valueField:'date',initComponent:function(){var a=this,c=a.minValue,b=a.maxValue;if(c){a.setMinValue(c)}if(b){a.setMaxValue(b)}a.displayTpl=new Ext.XTemplate('{[typeof values === "string" ? values : this.formatDate(values["'+a.displayField+'"])]}'+a.delimiter+'',{formatDate:a.formatDate.bind(a)});a.store=Ext.picker.Time.createStore(a.format,a.increment);Ext.form.field.ComboBox.prototype.initComponent.call(this);a.getPicker()},isEqual:function(b,c){var e=Ext.Array.from,f=Ext.Date.isEqual,a,d;b=e(b);c=e(c);d=b.length;if(d!==c.length){return !1}for(a=0;a0?j:this.getRawValue();var a=this,d=Ext.String.format,c=Ext.form.field.ComboBox.prototype.getErrors.call(this,j),i=a.minValue,h=a.maxValue,e=a.displayTplData,k=a.getRawValue(),g,l,f,b;if(e&&e.length>0){for(g=0,l=e.length;gh){c.push(d(a.maxText,a.formatDate(h)))}}}else {if(k.length&&!a.parseDate(k)){c.push(d(a.invalidText,k,Ext.Date.unescapeFormat(a.format)))}}return c},formatDate:function(a){var c=[],b,d;a=Ext.Array.from(a);for(b=0,d=a.length;b0){for(g=0;g{text} {linkHrefCls}{childElCls}" href="{href}" target="{hrefTarget}" hidefocus="true" unselectable="on" tabindex="{tabIndex}" {$}="{.}">{text}',maskOnDisable:!1,iconAlign:'left',initComponent:function(){var a=this,b=a.cls?[a.cls]:[],c;if(a.hasOwnProperty('canActivate')){a.focusable=a.canActivate}if(a.plain){b.push('x-menu-item-plain')}if(b.length){a.cls=b.join(' ')}if(a.menu){c=a.menu;a.menu=null;a.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==!1&&!a.destroying&&!a.destroyed&&a.isVisible(!0)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.disabled){if(!a.plain){a.addCls(a.activeCls)}a.activated=!0;if(a.hasListeners.activate){a.fireEvent('activate',a)}}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(a.activated){if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=!1;if(a.hasListeners.deactivate){a.fireEvent('deactivate',a)}}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){for(var a=this.getRefOwner();a&&(a.isMenu&&a.floating||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},expandMenu:function(c,b){var a=this;if(a.activated&&a.menu){a.hideOnClick=!1;a.cancelDeferHide();b=b==null?a.menuExpandDelay:b;if(b===0){a.doExpandMenu(c)}else {a.cancelDeferExpand();a.expandMenuTimer=Ext.defer(a.doExpandMenu,b,a,[c])}}},doExpandMenu:function(c){var b=this,a=b.menu;if(!a.isVisible()){b.parentMenu.activeChild=a;a.ownerCmp=b;a.parentMenu=b.parentMenu;a.constrainTo=document.body;a.autoFocus=!c||!c.pointerType;a.showBy(b,b.menuAlign)}},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},getValue:function(){return this.value},hideMenu:function(b){var a=this;if(a.menu){a.cancelDeferExpand();a.hideMenuTimer=Ext.defer(a.doHideMenu,Ext.isNumber(b)?b:a.menuHideDelay,a)}},onClick:function(b){var a=this,e=a.clickHideDelay,f=b.browserEvent,d,c;if(!a.href||a.disabled){b.stopEvent();if(a.disabled){return !1}}if(a.disabled||a.handlingClick){return}if(a.hideOnClick){if(!e){a.deferHideParentMenus()}else {a.deferHideParentMenusTimer=Ext.defer(a.deferHideParentMenus,e,a)}}d=a.fireEvent('click',a,b);if(a.destroyed){return}if(d!==!1&&a.handler){Ext.callback(a.handler,a.scope,[a,b],0,a)}if(Ext.isIE9m){c=f.returnValue===!1?!0:!1}else {c=!!f.defaultPrevented}if(a.href&&b.type!=='click'&&!c){a.handlingClick=!0;a.itemEl.dom.click();a.handlingClick=!1}if(!a.hideOnClick){a.focus()}return d},onRemoved:function(){var a=this;if(a.activated&&a.parentMenu.activeItem===a){a.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);a.parentMenu=a.ownerCmp=null},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;a.cancelDeferExpand();a.cancelDeferHide();clearTimeout(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.onDestroy.apply(this,arguments)},beforeRender:function(){var a=this,c=a.glyph,j=Ext._glyphFontFamily,b=!!(a.icon||a.iconCls||c),f=!!a.menu,i=a.iconAlign==='right'&&!f,e=a.isMenuCheckItem,d=[],k=a.ownerCt,g=k.plain,h;if(a.plain){a.ariaEl='el'}Ext.Component.prototype.beforeRender.call(this);if(b){if(f&&a.showCheckbox){b=!1}}if(typeof c==='string'){h=c.split('@');c=h[0];j=h[1]}if(!g||b&&!i||e){if(k.showSeparator&&!g){d.push(a.indentCls)}else {d.push(a.indentNoSeparatorCls)}}if(f){d.push(a.indentRightArrowCls)}else {if(b&&(i||e)){d.push(a.indentRightIconCls)}}Ext.applyIf(a.renderData,{hasHref:!!a.href,href:a.href||'#',hrefTarget:a.hrefTarget,icon:a.icon,iconCls:a.iconCls,glyph:c,glyphCls:c?'x-menu-item-glyph':undefined,glyphFontFamily:j,hasIcon:b,hasMenu:f,indent:!g||b||e,isCheckItem:e,rightIcon:i,plain:a.plain,text:a.text,arrowCls:a.arrowCls,baseIconCls:a.baseIconCls,textCls:a.textCls,indentCls:d.join(' '),linkCls:a.linkCls,linkHrefCls:a.linkHrefCls,groupCls:a.group?a.groupCls:'',tabIndex:a.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,!0)}},getMenu:function(){return this.menu||null},setMenu:function(b,f){var a=this,e=a.menu,h=a.arrowEl,d=a.ariaEl.dom,c,g;if(e){e.ownerCmp=e.parentMenu=null;if(f===!0||f!==!1&&a.destroyMenu){Ext.destroy(e)}if(d){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns')}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});delete c['aria-haspopup'];delete c['aria-owns']}}if(b){g=b.isMenu;b=a.menu=Ext.menu.Manager.get(b,{ownerCmp:a,focusOnToFront:!1});b.setOwnerCmp(a,g);if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {b=a.menu=null}if(b&&a.rendered&&!a.destroying&&h){h[b?'addCls':'removeCls'](a.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(a){var b=this.iconEl,c=this.icon;if(b){b.src=a||Ext.BLANK_IMAGE_URL}this.icon=a;this.fireEvent('iconchange',this,c,a)},setIconCls:function(b){var a=this,c=a.iconEl,d=a.iconCls;if(c){if(a.iconCls){c.removeCls(a.iconCls)}if(b){c.addCls(b)}}a.iconCls=b;a.fireEvent('iconchange',a,d,b)},setText:function(b){var a=this,d=a.textEl||a.el,c=a.text;a.text=b;if(a.rendered){d.setHtml(b||'');a.updateLayout()}a.fireEvent('textchange',a,c,b)},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},clearTip:function(){if(Ext.quickTipsActive&&Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.itemEl)}},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c){a.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.itemEl.id},b));a.tooltip=b}else {a.itemEl.dom.setAttribute(a.getTipAttr(),b)}}else {a.tooltip=b}return a},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)},getFocusEl:function(){return this.plain?this.el:this.itemEl}}},0,['menuitem'],['component','box','menuitem'],{'component':!0,'box':!0,'menuitem':!0},['widget.menuitem'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.menu,'Item',Ext.menu,'TextItem'],0);Ext.define('Ext.theme.triton.menu.Item',{override:'Ext.menu.Item',compatibility:Ext.isIE8,onFocus:function(a){(arguments.callee.$previous||Ext.Component.prototype.onFocus).call(this,a);this.repaintIcons()},onFocusLeave:function(a){(arguments.callee.$previous||Ext.Component.prototype.onFocusLeave).call(this,a);this.repaintIcons()},privates:{repaintIcons:function(){var c=this.iconEl,a=this.arrowEl,b=this.checkEl;if(c){c.syncRepaint()}if(a){a.syncRepaint()}if(b){b.syncRepaint()}}}});Ext.cmd.derive('Ext.menu.CheckItem',Ext.menu.Item,{checkedCls:'x-menu-item-checked',uncheckedCls:'x-menu-item-unchecked',groupCls:'x-menu-group-icon',hideOnClick:!1,checkChangeDisabled:!1,submenuText:'{0} submenu',ariaRole:'menuitemcheckbox',childEls:['checkEl'],showCheckbox:!0,isMenuCheckItem:!0,checkboxCls:'x-menu-item-checkbox',initComponent:function(){var a=this;a.checked=!!a.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==!1){a.hideOnClick=!0}}},beforeRender:function(){var a=this,b;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(a.renderData,{checkboxCls:a.checkboxCls,showCheckbox:a.showCheckbox});b=a.ariaRenderAttributes||(a.ariaRenderAttributes={});b['aria-checked']=a.menu?'mixed':a.checked;if(a.menu){b['aria-label']=Ext.String.formatEncode(a.submenuText,a.text)}},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.setChecked(!a.checked,!0);if(a.checkChangeDisabled){a.disableCheckChange()}if(Ext.isGecko&&a.checkEl){a.checkEl.on('mousedown',a.onMouseDownCheck)}},disableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.addCls(a.disabledCls)}if(Ext.isIE8&&a.rendered){a.el.repaint()}a.checkChangeDisabled=!0},enableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.removeCls(a.disabledCls)}a.checkChangeDisabled=!1},onMouseDownCheck:function(a){a.preventDefault()},onClick:function(b){var a=this;if(!(a.disabled||a.checkChangeDisabled||a.checked&&a.group||a.menu&&'touch'===b.pointerType&&!a.checkEl.contains(b.target))){a.setChecked(!a.checked);if(b.type==='keydown'&&a.menu){return !1}}Ext.menu.Item.prototype.onClick.call(this,b)},onDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.onDestroy.apply(this,arguments)},setText:function(c){var a=this,b=a.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,c);if(b&&a.menu){b.setAttribute('aria-label',Ext.String.formatEncode(a.submenuText,c))}},setChecked:function(b,d){var a=this,f=a.checkedCls,e=a.uncheckedCls,c=a.el,g=a.ariaEl.dom;if(a.checked!==b&&(d||a.fireEvent('beforecheckchange',a,b)!==!1)){if(c){if(b){c.addCls(f);c.removeCls(e)}else {c.addCls(e);c.removeCls(f)}}if(g){g.setAttribute('aria-checked',a.menu?'mixed':!!b)}a.checked=b;Ext.menu.Manager.onCheckChange(a,b);if(!d){Ext.callback(a.checkHandler,a.scope,[a,b],0,a);a.fireEvent('checkchange',a,b)}}}},0,['menucheckitem'],['component','box','menuitem','menucheckitem'],{'component':!0,'box':!0,'menuitem':!0,'menucheckitem':!0},['widget.menucheckitem'],0,[Ext.menu,'CheckItem'],0);Ext.cmd.derive('Ext.menu.Separator',Ext.menu.Item,{focusable:!1,canActivate:!1,hideOnClick:!1,plain:!0,separatorCls:'x-menu-item-separator',text:' ',ariaRole:'separator',beforeRender:function(){this.addCls(this.separatorCls);Ext.menu.Item.prototype.beforeRender.call(this)}},0,['menuseparator'],['component','box','menuitem','menuseparator'],{'component':!0,'box':!0,'menuitem':!0,'menuseparator':!0},['widget.menuseparator'],0,[Ext.menu,'Separator'],0);Ext.define('Ext.theme.neptune.menu.Separator',{override:'Ext.menu.Separator',border:!0});Ext.cmd.derive('Ext.menu.Menu',Ext.panel.Panel,{enableKeyNav:!0,allowOtherMenus:!1,ariaRole:'menu',floating:!0,constrain:!0,hidden:!0,hideMode:'visibility',ignoreParentClicks:!1,isMenu:!0,showSeparator:!0,minWidth:undefined,defaultMinWidth:120,defaultAlign:'tl-bl?',focusOnToFront:!1,bringParentToFront:!1,defaultFocus:':focusable',menuClickBuffer:0,baseCls:'x-menu',_iconSeparatorCls:'x-menu-icon-separator',_itemCmpCls:'x-menu-item-cmp',layout:{type:'vbox',align:'stretchmax',overflowHandler:'Scroller'},initComponent:function(){var a=this,d=['x-menu'],c=a.bodyCls?[a.bodyCls]:[],e=a.floating!==!1,b={element:'el',click:a.onClick,mouseover:a.onMouseOver,scope:a};if(Ext.supports.Touch){b.pointerdown=a.onMouseOver}a.on(b);a.on({beforeshow:a.onBeforeShow,scope:a});if(a.plain){d.push('x-menu-plain')}a.cls=d.join(' ');c.push('x-menu-body',Ext.dom.Element.unselectableCls);a.bodyCls=c.join(' ');if(e){if(a.minWidth===undefined){a.minWidth=a.defaultMinWidth}}else {a.hidden=!!a.initialConfig.hidden;a.constrain=!1}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(a.getLayout(),{configureItem:a.configureItem})},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);a.hidden=this.hidden;return a},beforeRender:function(){var a=this;Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!a.getSizeModel().width.shrinkWrap){a.layout.align='stretch'}if(a.floating){a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!!a.autoShow}},onBoxReady:function(){var a=this,c=a._iconSeparatorCls,b=a.focusableKeyNav;if(b){b.map.processEventScope=a;b.map.processEvent=function(a){if(a.keyCode===a.ESC){a.target=this.el.dom}return a};b.map.addBinding([{key:Ext.event.Event.ESC,handler:a.onEscapeKey,scope:a},{key:/[\w]/,handler:a.onShortcutKey,scope:a,shift:!1,ctrl:!1,alt:!1}])}else {a.escapeKeyNav=new Ext.util.KeyNav(a.el,{eventName:'keydown',scope:a,esc:a.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(a.showSeparator){a.iconSepEl=a.body.insertFirst({role:'presentation',cls:c+' '+c+'-'+a.ui,html:' '})}if(Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){a.el.on({scope:a,click:a.preventClick,translate:!1})}a.mouseMonitor=a.el.monitorMouseLeave(100,a.onMouseLeave,a)},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var b=this,a=b.lastFocusedChild;if(a){a.blur()}},getItemFromEvent:function(d){var c=this,b=c.layout.getRenderTarget().dom,a=d.getTarget();while(a.parentNode!==b){a=a.parentNode;if(!a){return}}return Ext.getCmp(a.id)},lookupComponent:function(a){var b=this;if(typeof a==='string'){a=b.lookupItemFromString(a)}else {if(Ext.isObject(a)){a=b.lookupItemFromObject(a)}}if(!a.dock){a.minWidth=a.minWidth||b.minWidth}return a},lookupItemFromObject:function(a){var b=this;if(!a.isComponent){if(!a.xtype){a=Ext.create('Ext.menu.'+(Ext.isBoolean(a.checked)?'Check':'')+'Item',a)}else {a=Ext.ComponentManager.create(a,a.xtype)}}if(a.isMenuItem){a.parentMenu=b}return a},lookupItemFromString:function(a){return a==='separator'||a==='-'?new Ext.menu.Separator():new Ext.menu.Item({canActivate:!1,hideOnClick:!1,plain:!0,text:a})},configureItem:function(a){var c=this.owner,f='x-',e=c.ui,b,d;if(a.isMenuItem){a.setUI(e)}else {if(c.items.getCount()>1&&!a.rendered&&!a.dock){d=c._itemCmpCls;b=[d+' '+d+'-'+e];if(!c.plain&&(a.indent!==!1||a.iconCls==='no-icon')){b.push(f+'menu-item-indent-'+e)}if(a.rendered){a.el.addCls(b)}else {a.cls=(a.cls||'')+' '+b.join(' ')}a.$extraMenuCls=b}}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.destroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(b){var c=this,f=b.type,a,d,e=f==='keydown';if(c.disabled){b.stopEvent();return}a=c.getItemFromEvent(b);if(a&&a.isMenuItem){if(!a.menu||!c.ignoreParentClicks){d=a.onClick(b)}else {b.stopEvent()}if(a.menu&&d!==!1&&e){a.expandMenu(b,0)}}if(!a||a.disabled){a=undefined}c.fireEvent('click',c,a,b)},onDestroy:function(){var a=this;if(a.escapeKeyNav){a.escapeKeyNav.destroy()}a.parentMenu=a.ownerCmp=a.escapeKeyNav=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.menu.Manager.onHide(a);Ext.panel.Panel.prototype.onDestroy.apply(this,arguments)},onMouseLeave:function(a){if(this.disabled){return}this.fireEvent('mouseleave',this,a)},onMouseOver:function(c){var a=this,g=c.getRelatedTarget(),e=!a.el.contains(g),b=a.getItemFromEvent(c),d=a.parentMenu,f=a.ownerCmp;if(e&&d){d.setActiveItem(f);f.cancelDeferHide();d.mouseMonitor.mouseenter()}if(a.disabled){return}if(b){if(!b.containsFocus){b.focus()}if(b.expandMenu){b.expandMenu(c)}}if(e){a.fireEvent('mouseenter',a,c)}a.fireEvent('mouseover',a,b,c)},setActiveItem:function(a){var b=this;if(a&&a!==b.lastFocusedChild){b.focusChild(a,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(h,g){var e=String.fromCharCode(g.getCharCode()),c=this.query('>[text]'),f=c.length,a=this.lastFocusedChild,d=Ext.Array.indexOf(c,a),b=d;for(;;){if(++b===f){b=0}a=c[b];if(b===d){return}if(a.text&&a.text[0].toUpperCase()===e){a.focus();return}}},onFocusableContainerTabKey:function(a){if(this.floating){this.hide()}},onFocusableContainerEnterKey:function(a){this.onClick(a)},onFocusableContainerSpaceKey:function(a){this.onClick(a)},onFocusableContainerLeftKey:function(a){a.preventDefault();if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(b){var c=this,a=c.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)0);if(r){a.widthModel=a.heightModel=null;k=d.getSizeModel(b&&b.widthModel.pairsByHeightOrdinal[b.heightModel.ordinal]);if(j){a.sizeModel=k}a.widthModel=k.width;a.heightModel=k.height;if(b&&!a.isComponentChild){if(h.needsItemSize||!d.liquidLayout){b.remainingChildDimensions+=2}else {if(a.widthModel.calculated){++b.remainingChildDimensions}if(a.heightModel.calculated){++b.remainingChildDimensions}}}}else {if(c){a.recoverProp('x',c,e);a.recoverProp('y',c,e);if(a.widthModel.calculated){a.recoverProp('width',c,e)}else {if('width' in c){++m}}if(a.heightModel.calculated){a.recoverProp('height',c,e)}else {if('height' in c){++m}}if(b&&!a.isComponentChild){b.remainingChildDimensions+=m}}}if(c&&h&&h.manageMargins){a.recoverProp('margin-top',c,e);a.recoverProp('margin-right',c,e);a.recoverProp('margin-bottom',c,e);a.recoverProp('margin-left',c,e)}if(i){f=i.heightModel;g=i.widthModel;if(g&&f&&p&&o){if(p.shrinkWrap&&o.shrinkWrap){if(g.constrainedMax&&f.constrainedMin){f=null}}}if(g){a.widthModel=g}if(f){a.heightModel=f}if(i.state){Ext.apply(a.state,i.state)}}return s},initContinue:function(f){var b=this,a=b.ownerCtContext,g=b.target,c=b.widthModel,e=g.getInherited(),d;if(c.fixed){e.inShrinkWrapTable=!1}else {delete e.inShrinkWrapTable}if(f){if(a&&c.shrinkWrap){d=a.isBoxParent?a:a.boxParent;if(d){d.addBoxChild(b)}}else {if(c.natural){b.boxParent=a}}}return f},initDone:function(d){var a=this,b=a.props,c=a.state;if(a.remainingChildDimensions===0){b.containerChildrenSizeDone=!0}if(d){b.containerLayoutDone=!0}if(a.boxChildren&&a.boxChildren.length&&a.widthModel.shrinkWrap){a.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var a=this,b=a.target,c=a.ownerCtContext;if(c&&c.isTopLevel){a.animatePolicy=b.ownerLayout.getAnimatePolicy(a)}else {if(!c&&b.isCollapsingOrExpanding&&b.animCollapse){a.animatePolicy=b.componentLayout.getAnimatePolicy(a)}}if(a.animatePolicy){a.context.queueAnimation(a)}},addBlock:function(f,a,e){var b=this,d=b[f]||(b[f]={}),c=d[e]||(d[e]={});if(!c[a.id]){c[a.id]=a;++a.blockCount;++b.context.blockCount}},addBoxChild:function(a){var d=this,b,c=a.widthModel;a.boxParent=this;a.measuresBox=c.shrinkWrap?a.hasRawContent:c.natural;if(a.measuresBox){b=d.boxChildren;if(b){b.push(a)}else {d.boxChildren=[a]}}},addPositionStyles:function(b,c){var d=c.x,e=c.y,a=0;if(d!==undefined){b.left=d+'px';++a}if(e!==undefined){b.top=e+'px';++a}return a},addTrigger:function(c,e){var b=this,h=e?'domTriggers':'triggers',f=b[h]||(b[h]={}),g=b.context,a=g.currentLayout,d=f[c]||(f[c]={});if(!d[a.id]){d[a.id]=a;++a.triggerCount;d=g.triggers[e?'dom':'data'];(d[a.id]||(d[a.id]=[])).push({item:this,prop:c});if(b.props[c]!==undefined){if(!e||!(b.dirty&&c in b.dirty)){++a.firedTriggers}}}},boxChildMeasured:function(){var a=this,b=a.state,c=b.boxesMeasured=(b.boxesMeasured||0)+1;if(c===a.boxChildren.length){b.clearBoxWidth=1;++a.context.progressCount;a.markDirty()}},borderNames:['border-top-width','border-right-width','border-bottom-width','border-left-width'],marginNames:['margin-top','margin-right','margin-bottom','margin-left'],paddingNames:['padding-top','padding-right','padding-bottom','padding-left'],trblNames:['top','right','bottom','left'],cacheMissHandlers:{borderInfo:function(b){var a=b.getStyles(b.borderNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},marginInfo:function(b){var a=b.getStyles(b.marginNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},paddingInfo:function(b){var c=b.frameBodyContext||b,a=c.getStyles(b.paddingNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(c){var a=this[c],b;if(a){for(b in a){this.clearBlocks(c,b)}}},clearBlocks:function(g,f){var c=this[g],b=c&&c[f],d,a,e;if(b){delete c[f];d=this.context;for(e in b){a=b[e];--d.blockCount;if(!--a.blockCount&&!a.pending&&!a.done){d.queueLayout(a)}}}},block:function(b,a){this.addBlock('blocks',b,a)},domBlock:function(b,a){this.addBlock('domBlocks',b,a)},fireTriggers:function(g,e){var c=this[g],b=c&&c[e],f=this.context,a,d;if(b){for(d in b){a=b[d];++a.firedTriggers;if(!a.done&&!a.blockCount&&!a.pending){f.queueLayout(a)}}}},flush:function(){var a=this,d=a.dirty,b=a.state,c=a.el;a.dirtyCount=0;if('attributes' in a){c.set(a.attributes);delete a.attributes}if('innerHTML' in a){c.innerHTML=a.innerHTML;delete a.innerHTML}if(b&&b.clearBoxWidth){b.clearBoxWidth=0;a.el.setStyle('width',null);if(!--b.blocks){a.context.queueItemLayouts(a)}}if(d){delete a.dirty;a.writeProps(d,!0)}},flushAnimations:function(){var b=this,k=b.previousSize,a,h,l,f,d,g,e,m,c,j,i;if(k){a=b.target;h=a.getAnimationProps();l=h.duration;f=Ext.Object.getKeys(b.animatePolicy);d=Ext.apply({},{from:{},to:{},duration:l||Ext.fx.Anim.prototype.duration},h);for(g=0,e=0,m=f.length;e0},runLayout:function(a){var b=this,c=b.getCmp(a.owner);a.pending=!1;if(c.state.blocks){return}a.done=!0;++a.calcCount;++b.calcCount;a.calculate(c);if(a.done){b.layoutDone(a);if(a.completeLayout){b.queueCompletion(a)}if(a.finalizeLayout){b.queueFinalize(a)}}else {if(!a.pending&&!a.invalid&&!(a.blockCount+a.triggerCount-a.firedTriggers)){b.queueLayout(a)}}},setItemSize:function(a,g,f){var b=a,c=1,e,d;if(a.isComposite){b=a.elements;c=b.length;a=b[0]}else {if(!a.dom&&!a.el){c=b.length;a=b[0]}}for(d=0;d style="border-spacing:{itemSpacing}px">
    style="width:{labelWidth}">
    ',afterBodyTpl:'',getRenderData:function(){var a=this,c=a.labelWidth,d=a.formWrapCls,b=Ext.layout.container.Auto.prototype.getRenderData.call(this);if(c){if(typeof c==='number'){c+='px'}b.labelWidth=c;d+=' '+a.formWrapSizedLabelCls}else {d+=' '+a.formWrapAutoLabelCls}b.formWrapCls=d;b.formColGroupCls=a.formColGroupCls;b.formColumnCls=a.formColumnCls;b.formLabelColumnCls=a.formLabelColumnCls;return b},getRenderTarget:function(){return this.formWrap}},0,0,0,0,['layout.form'],0,[Ext.layout.container,'Form',Ext.layout,'FormLayout'],0);Ext.cmd.derive('Ext.plugin.Manager',Ext.Base,{alternateClassName:['Ext.PluginManager','Ext.PluginMgr'],singleton:!0,typeName:'ptype',create:function(a,e,c){var b,d;if(a.init){b=a}else {if(c){a=Ext.apply({},a);a.cmp=c}else {c=a.cmp}if(a.xclass){b=Ext.create(a)}else {d='plugin.'+(a.ptype||e);b=Ext.ClassManager.instantiateByAlias(d,a)}}if(b&&c&&b.setCmp&&!b.setCmpCalled){b.setCmp(c);b.setCmpCalled=!0}return b}},0,0,0,0,0,0,[Ext.plugin,'Manager',Ext,'PluginManager',Ext,'PluginMgr'],0);Ext.cmd.derive('Ext.resizer.ResizeTracker',Ext.dd.DragTracker,{dynamic:!0,preserveRatio:!1,constrainTo:null,proxyCls:'x-resizable-proxy',constructor:function(b){var a=this,d,c,e;if(!b.el){if(b.target.isComponent){a.el=b.target.getEl()}else {a.el=b.target}}Ext.dd.DragTracker.prototype.constructor.apply(this,arguments);if(a.preserveRatio&&a.minWidth&&a.minHeight){d=a.minWidth/a.el.getWidth();c=a.minHeight/a.el.getHeight();if(c>d){a.minWidth=a.el.getWidth()*c}else {a.minHeight=a.el.getHeight()*d}}if(a.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)},a.throttle);a.resize=function(f,d,c){if(c){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)}else {e.apply(null,arguments)}}}},onBeforeStart:function(a){this.startBox=this.target.getBox()},getProxy:function(){var a=this;if(!a.dynamic&&!a.proxy){a.proxy=a.createProxy(a.target||a.el);a.hideProxy=!0}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(a){var b,c=this.proxyCls;if(a.isComponent){b=a.getProxy().addCls(c)}else {b=a.createProxy({tag:'div',role:'presentation',cls:c,id:a.id+'-rzproxy'},Ext.getBody())}b.removeCls('x-proxy-el');return b},onStart:function(a){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(c,b){var a=Ext.fly(b.parentNode);Ext.dd.DragTracker.prototype.onMouseDown.apply(this,arguments);if(a&&a.shim){a.maskIframes()}},onMouseUp:function(b){var a=Ext.fly(this.dragTarget.parentNode);Ext.dd.DragTracker.prototype.onMouseUp.apply(this,arguments);if(a&&a.shim){a.unmaskIframes()}},onDrag:function(a){if(this.dynamic||this.proxy){this.updateDimensions(a)}},updateDimensions:function(s,r){var c=this,h=c.activeResizeHandle.region,d=c.getOffset(c.constrainTo?'dragTarget':null),b=c.startBox,n,f=0,e=0,k,j,l=0,m=0,q,i,g,a,o,p;h=c.convertRegionName(h);switch(h){case 'south':e=d[1];g=2;break;case 'north':e=-d[1];m=-e;g=2;break;case 'east':f=d[0];g=1;break;case 'west':f=-d[0];l=-f;g=1;break;case 'northeast':e=-d[1];m=-e;f=d[0];i=[b.x,b.y+b.height];g=3;break;case 'southeast':e=d[1];f=d[0];i=[b.x,b.y];g=3;break;case 'southwest':f=-d[0];l=-f;e=d[1];i=[b.x+b.width,b.y];g=3;break;case 'northwest':e=-d[1];m=-e;f=-d[0];l=-f;i=[b.x+b.width,b.y+b.height];g=3;break;}a={width:b.width+f,height:b.height+e,x:b.x+l,y:b.y+m};k=Ext.Number.snap(a.width,c.widthIncrement);j=Ext.Number.snap(a.height,c.heightIncrement);if(k!==a.width||j!==a.height){switch(h){case 'northeast':a.y-=j-a.height;break;case 'north':a.y-=j-a.height;break;case 'southwest':a.x-=k-a.width;break;case 'west':a.x-=k-a.width;break;case 'northwest':a.x-=k-a.width;a.y-=j-a.height;}a.width=k;a.height=j}if(a.widthc.maxWidth){a.width=Ext.Number.constrain(a.width,c.minWidth,c.maxWidth);if(l){a.x=b.x+(b.width-a.width)}}else {c.lastX=a.x}if(a.heightc.maxHeight){a.height=Ext.Number.constrain(a.height,c.minHeight,c.maxHeight);if(m){a.y=b.y+(b.height-a.height)}}else {c.lastY=a.y}if(c.preserveRatio||s.shiftKey){n=c.startBox.width/c.startBox.height;o=Math.min(Math.max(c.minHeight,a.width/n),c.maxHeight);p=Math.min(Math.max(c.minWidth,a.height*n),c.maxWidth);if(g===1){a.height=o}else {if(g===2){a.width=p}else {q=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(q>n){a.height=o}else {a.width=p}if(h==='northeast'){a.y=b.y-(a.height-b.height)}else {if(h==='northwest'){a.y=b.y-(a.height-b.height);a.x=b.x-(a.width-b.width)}else {if(h==='southwest'){a.x=b.x-(a.width-b.width)}}}}}}c.setPosition=a.x!==c.startBox.x||a.y!==c.startBox.y;c.resize(a,r)},resize:function(b,e){var a=this,c,d=a.setPosition;if(a.dynamic||!a.dynamic&&e){if(d){a.target.setBox(b)}else {a.target.setSize(b.width,b.height)}}if(!e){c=a.getProxy();if(c&&c!==a.target){if(d||a.hideProxy){c.setBox(b)}else {c.setSize(b.width,b.height)}}}},onEnd:function(a){this.updateDimensions(a,!0);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,'ResizeTracker'],0);Ext.cmd.derive('Ext.resizer.Resizer',Ext.Base,{alternateClassName:'Ext.Resizable',handleCls:'x-resizable-handle',overCls:'x-resizable-handle-over',pinnedCls:'x-resizable-pinned',wrapCls:'x-resizable-wrap',wrappedCls:'x-resizable-wrapped',delimiterRe:/(?:\s*[,;]\s*)|\s+/,dynamic:!0,handles:'s e se',height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:!1,preserveRatio:!1,transparent:!1,possiblePositions:{n:'north',s:'south',e:'east',w:'west',se:'southeast',sw:'southwest',nw:'northwest',ne:'northeast'},ariaRole:'presentation',constructor:function(e){var a=this,d=a.handles,q=Ext.dom.Element.unselectableCls,h=[],b,k,i,m,p,c,f,n,l,g,o,j;if(Ext.isString(e)||Ext.isElement(e)||e.dom){b=e;e=arguments[1]||{};e.target=b}a.mixins.observable.constructor.call(a,e);b=a.target;if(b){if(b.isComponent){b.addClsWithUI('resizable');if(b.minWidth){a.minWidth=b.minWidth}if(b.minHeight){a.minHeight=b.minHeight}if(b.maxWidth){a.maxWidth=b.maxWidth}if(b.maxHeight){a.maxHeight=b.maxHeight}if(b.floating){if(!a.hasOwnProperty('handles')){a.handles='n ne e se s sw w nw'}}a.el=b.getEl()}else {b=a.el=a.target=Ext.get(b)}}else {b=a.target=a.el=Ext.get(a.el)}a.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(a.width)){a.width=Ext.Number.constrain(a.width,a.minWidth,a.maxWidth)}if(Ext.isNumber(a.height)){a.height=Ext.Number.constrain(a.height,a.minHeight,a.maxHeight)}if(a.width!==null||a.height!==null){a.target.setSize(a.width,a.height)}m=a.el.dom.tagName.toUpperCase();if(m==='TEXTAREA'||m==='IMG'||m==='TABLE'){a.originalTarget=a.target;g=b.isComponent?b.getEl():b;a.el.addCls(a.wrappedCls);a.target=a.el=a.el.wrap({role:'presentation',cls:a.wrapCls,id:a.el.id+'-rzwrap',style:g.getStyle(['margin-top','margin-bottom'])});o=g.getPositioning();a.el.setPositioning(o);g.clearPositioning();l=g.getBox();if(o.position!=='absolute'){l.x=0;l.y=0}a.el.setBox(l);g.setStyle('position','absolute');a.isTargetWrapped=!0}a.el.position();if(a.pinned){a.el.addCls(a.pinnedCls)}a.resizeTracker=new Ext.resizer.ResizeTracker({disabled:a.disabled,target:b,el:a.el,constrainTo:a.constrainTo,handleCls:a.handleCls,overCls:a.overCls,throttle:a.throttle,proxy:a.originalTarget?a.el:null,dynamic:a.originalTarget?!0:a.dynamic,originalTarget:a.originalTarget,delegate:'.'+a.handleCls,preserveRatio:a.preserveRatio,heightIncrement:a.heightIncrement,widthIncrement:a.widthIncrement,minHeight:a.minHeight,maxHeight:a.maxHeight,minWidth:a.minWidth,maxWidth:a.maxWidth});a.resizeTracker.on({mousedown:a.onBeforeResize,drag:a.onResize,dragend:a.onResizeEnd,scope:a});if(a.handles==='all'){a.handles='n s e w ne nw se sw'}d=a.handles=a.handles.split(a.delimiterRe);i=a.possiblePositions;p=d.length;k=a.handleCls+' '+a.handleCls+'-{0}';if(a.target.isComponent){j=a.target.baseCls;k+=' '+j+'-handle '+j+'-handle-{0}';if(Ext.supports.CSS3BorderRadius){k+=' '+j+'-handle-{0}-br'}}for(c=0;c')}}Ext.DomHelper.append(a.el,h.join(''));h.length=0;for(c=0;c style="{bodyStyle}">{%this.renderContainer(out,values)%}',_reverseDockNames:{left:'right',right:'left'},_layoutAlign:{top:'end',right:'begin',bottom:'begin',left:'end'},initComponent:function(){var a=this,b=a.initialConfig.layout,d=b&&b.align,c=b&&b.overflowHandler;if(a.plain){a.addCls(a.baseCls+'-plain')}Ext.panel.Bar.prototype.initComponent.call(this);a.setLayout({align:d||(a.getTabStretchMax()?'stretchmax':a._layoutAlign[a.dock]),overflowHandler:c||'scroller'});a.on({click:a.onClick,element:'el',scope:a})},ensureTabVisible:function(a){var b=this,d=b.tabPanel,c=b.layout.overflowHandler;if(b.rendered&&c&&b.tooNarrow&&c.scrollToItem){if(a||a===0){if(!a.isTab){if(Ext.isNumber(a)){a=this.items.getAt(a)}else {if(a.isComponent&&d&&d.items.contains(a)){a=a.tab}}}}if(!a){a=b.activeTab}if(a){c.scrollToItem(a)}}},initRenderData:function(){var a=this;return Ext.apply(Ext.panel.Bar.prototype.initRenderData.call(this),{bodyCls:a.bodyCls,baseBodyCls:a._baseBodyCls,bodyTargetCls:a.bodyTargetCls,stripCls:a._stripCls,dock:a.dock})},setDock:function(f){var b=this,a=b.items,d=b.ownerCt,e,c,g;a=a&&a.items;if(a){for(c=0,g=a.length;c1){if(a&&a!==b&&!a.disabled){c=a}else {c=b.next('tab[disabled=false]')||b.prev('tab[disabled=false]')}}return c||d.activeTab},setActiveTab:function(b,c){var a=this;if(!b.disabled&&b!==a.activeTab){if(a.activeTab){if(a.activeTab.destroyed){a.previousTab=null}else {a.previousTab=a.activeTab;a.activeTab.deactivate();a.deactivateFocusable(a.activeTab)}}b.activate();a.activateFocusable(b);a.activeTab=b;a.needsScroll=!0;if(!c){a.fireEvent('change',a,b,b.card);a.updateLayout()}}},privates:{adjustTabPositions:function(){var g=this,f=g.items.items,h=f.length,a,b,e,c,d;if(!Ext.isIE8){d=g._getTabAdjustProp();while(h--){a=f[h];e=a.el;b=a.lastBox;c=a.isTab?a.getActualRotation():0;if(c===1&&a.isVisible()){e.setStyle(d,b.x+b.width+'px')}else {if(c===2&&a.isVisible()){e.setStyle(d,b.x-b.height+'px')}}}}},applyTargetCls:function(a){this.bodyTargetCls=a},_getTabAdjustProp:function(){return 'left'},getTargetEl:function(){return this.body||this.frameBody||this.el},onClick:function(c,g){var f=this,e,a,b,d;if(c.getTarget('.x-box-scroller')){return}if(Ext.isIE8&&f.vertical){d=f.getTabInfoFromPoint(c.getXY());a=d.tab;b=d.close}else {e=c.getTarget('.'+Ext.tab.Tab.prototype.baseCls);a=e&&Ext.getCmp(e.id);b=a&&a.closeEl&&g===a.closeEl.dom}if(b){c.preventDefault()}if(a&&a.isDisabled&&!a.isDisabled()){a.beforeClick(b);if(a.closable&&b){a.onCloseClick()}else {f.doActivateTab(a)}}},doActivateTab:function(a){var b=this.tabPanel;if(b){if(!a.disabled){b.setActiveTab(a.card)}}else {this.setActiveTab(a)}},onFocusableContainerFocus:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocus.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},onFocusableContainerFocusEnter:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocusEnter.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},focusChild:function(d,c){var b=this,e=b.mixins.focusablecontainer,a;a=e.focusChild.call(b,d,c);if(b.activateOnFocus&&a&&a.isTab){b.doActivateTab(a)}}}},0,['tabbar'],['component','box','container','tabbar'],{'component':!0,'box':!0,'container':!0,'tabbar':!0},['widget.tabbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.tab,'Bar'],0);Ext.cmd.derive('Ext.tab.Panel',Ext.panel.Panel,{alternateClassName:['Ext.TabPanel'],config:{tabBar:undefined,tabPosition:'top',tabRotation:'default',tabStretchMax:!0},removePanelHeader:!0,plain:!1,itemCls:'x-tabpanel-child',minTabWidth:undefined,maxTabWidth:undefined,deferredRender:!0,_defaultTabRotation:{top:0,right:1,bottom:0,left:2},initComponent:function(){var a=this,c=a.activeTab!==null?a.activeTab||0:null,d=a.dockedItems,b=a.header,f=a.tabBarHeaderPosition,e=a.getTabBar(),g;a.layout=new Ext.layout.container.Card(Ext.apply({owner:a,deferredRender:a.deferredRender,itemCls:a.itemCls,activeItem:c},a.layout));if(f!=null){b=a.header=Ext.apply({},b);g=b.items=b.items?b.items.slice():[];b.itemPosition=f;g.push(e);b.hasTabBar=!0}else {d=[].concat(a.dockedItems||[]);d.push(e);a.dockedItems=d}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);c=a.activeTab=a.getComponent(c);if(c){e.setActiveTab(c.tab,!0)}},onRender:function(){var b=this.items.items,c=b.length,a;Ext.panel.Panel.prototype.onRender.apply(this,arguments);for(a=0;aTextfield:
    {"xtype": "textfield", "name": "campo1", "fieldLabel": "Campo 1", "value": "Text field value"}

    Number Field (Com Validação):
    {"xtype": "numberfield", "name": "numberfield1", "fieldLabel": "Number field", "value": 5, "minValue": 0,"maxValue": 50}

    Checkbox:
    {"xtype": "checkboxfield","name": "checkbox1","fieldLabel": "Checkbox","boxLabel": "box label"}

    Radio:
    {"xtype": "radiofield","name": "radio1","value": "radiovalue1","fieldLabel": "Radio buttons","boxLabel": "radio 1"}

    Datefield:
    {"xtype": "datefield","name": "date1","fieldLabel": "Date Field"}

    Timefield:
    {"xtype": "timefield","name": "time1","fieldLabel": "Time Field","minValue": "1:30 AM","maxValue": "9:15 PM"}

    Agrupados:
    {"xtype": "fieldset","title": "Details","collapsible": true,"defaults": {"labelAlign": "top"},"items": [{"xtype": "textfield", "name": "campo1", "fieldLabel": "Campo 1", "value": "Text field value"},{"xtype": "datefield","name": "date1","fieldLabel": "Date Field"}]}'}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)}},0,['mainlist'],['component','box','container','panel','mainlist'],{'component':!0,'box':!0,'container':!0,'panel':!0,'mainlist':!0},['widget.mainlist'],0,[DynamicForm.view.main,'List'],0);Ext.cmd.derive('DynamicForm.view.main.MainController',Ext.app.ViewController,{onItemSelected:function(b,a){Ext.Msg.confirm('Confirm','Are you sure?','onConfirm',this)},onConfirm:function(a){if(a==='yes'){}},onBtnClickRun:function(){console.log('onBtnClickRun');var c=this,b=c.lookup('txtInput'),a=c.lookup('preview-form'),d;console.log(a);if(b.isValid()){try{d=JSON.parse(b.getValue())}catch(e){Ext.MessageBox.alert('Status','Json com formato invalido.')}a.removeAll();a.add(JSON.parse(b.getValue()))}else {Ext.MessageBox.alert('Status','Não pode ser em branco.')}}},0,0,0,0,['controller.main'],0,[DynamicForm.view.main,'MainController'],0);Ext.cmd.derive('DynamicForm.view.main.MainModel',Ext.app.ViewModel,{data:{name:'DynamicForm',loremIpsum:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'}},0,0,0,0,['viewmodel.main'],0,[DynamicForm.view.main,'MainModel'],0);Ext.cmd.derive('DynamicForm.view.main.Main',Ext.tab.Panel,{controller:'main',viewModel:'main',ui:'navigation',tabBarHeaderPosition:1,titleRotation:0,tabRotation:0,header:{layout:{align:'stretchmax'},title:{bind:{text:'{name}'},flex:0},iconCls:'fa-th-list'},tabBar:{flex:1,layout:{align:'stretch',overflowHandler:'none'}},responsiveConfig:{tall:{headerPosition:'top'},wide:{headerPosition:'left'}},defaults:{bodyPadding:20,tabConfig:{plugins:'responsive',responsiveConfig:{wide:{iconAlign:'left',textAlign:'left'},tall:{iconAlign:'top',textAlign:'center',width:120}}}},items:[{title:'Dynamic Forms',iconCls:'fa-home',items:[{xtype:'mainlist'}]}]},0,['app-main'],['component','box','container','panel','tabpanel','app-main'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tabpanel':!0,'app-main':!0},['widget.app-main'],0,[DynamicForm.view.main,'Main'],0);Ext.application({name:'DynamicForm',extend:DynamicForm.Application,mainView:'DynamicForm.view.main.Main'}); \ No newline at end of file diff --git a/frontend/build/production/DynamicForm/app.json b/frontend/build/production/DynamicForm/app.json new file mode 100644 index 000000000..0a639642a --- /dev/null +++ b/frontend/build/production/DynamicForm/app.json @@ -0,0 +1 @@ +{"packages":{"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"font-ext":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"theme-triton":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune","font-awesome","font-ext"],"version":"6.0.1.250"}},"js":[{"path":"app.js"}],"css":[{"exclude":["fashion"],"path":"resources/DynamicForm-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"DynamicForm","namespace":"DynamicForm","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-triton","loader":{"cache":"20180228215614","cacheParam":"_dc"},"id":"74c5a200-fbe2-46e5-a450-39e55547e827","hash":"7cf8119103e698790b482ddc95090fa38866c44c","profile":"","resources":{"path":"resources"}} \ No newline at end of file diff --git a/frontend/build/production/DynamicForm/app.jsonp b/frontend/build/production/DynamicForm/app.jsonp new file mode 100644 index 000000000..d62d34d7a --- /dev/null +++ b/frontend/build/production/DynamicForm/app.jsonp @@ -0,0 +1 @@ +Ext.Microloader.setManifest({"packages":{"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"font-ext":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"theme-triton":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune","font-awesome","font-ext"],"version":"6.0.1.250"}},"js":[{"path":"app.js"}],"css":[{"exclude":["fashion"],"path":"resources/DynamicForm-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"DynamicForm","namespace":"DynamicForm","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-triton","loader":{"cache":"20180228215614","cacheParam":"_dc"},"id":"74c5a200-fbe2-46e5-a450-39e55547e827","hash":"7cf8119103e698790b482ddc95090fa38866c44c","profile":"","resources":{"path":"resources"}}); \ No newline at end of file diff --git a/frontend/build/production/DynamicForm/index.html b/frontend/build/production/DynamicForm/index.html new file mode 100644 index 000000000..2cd2bcb03 --- /dev/null +++ b/frontend/build/production/DynamicForm/index.html @@ -0,0 +1,127 @@ + + + + + + + + DynamicForm + + + + + + + + + diff --git a/frontend/build/production/DynamicForm/resources/DynamicForm-all.css b/frontend/build/production/DynamicForm/resources/DynamicForm-all.css new file mode 100644 index 000000000..3d174a17b --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/DynamicForm-all.css @@ -0,0 +1,2 @@ +@import 'DynamicForm-all_1.css'; +@import 'DynamicForm-all_2.css'; diff --git a/frontend/build/production/DynamicForm/resources/DynamicForm-all_1.css b/frontend/build/production/DynamicForm/resources/DynamicForm-all_1.css new file mode 100644 index 000000000..49bf64fce --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/DynamicForm-all_1.css @@ -0,0 +1 @@ +.x-size-monitored{position:relative}.x-size-monitors{position:absolute;left:0;top:0;width:100%;height:100%;visibility:hidden;overflow:hidden}.x-size-monitors > *{width:100%;height:100%;overflow:hidden}.x-size-monitors.scroll > *.shrink::after{content:'';display:block;width:200%;height:200%;min-width:1px;min-height:1px}.x-size-monitors.scroll > *.expand::after{content:'';display:block;width:100000px;height:100000px}.x-size-monitors.overflowchanged > *.shrink > *{width:100%;height:100%}.x-size-monitors.overflowchanged > *.expand > *{width:200%;height:200%}.x-size-change-detector{visibility:hidden;position:absolute;left:0;top:0;z-index:-1;width:100%;height:100%;overflow:hidden}.x-size-change-detector > *{visibility:hidden}.x-size-change-detector-shrink > *{width:200%;height:200%}.x-size-change-detector-expand > *{width:100000px;height:100000px}@-webkit-keyframes x-paint-monitor-helper{from{zoom:1}to{zoom:1}}@keyframes x-paint-monitor-helper{from{zoom:1}to{zoom:1}}.x-paint-monitored{position:relative}.x-paint-monitor{width:0 !important;height:0 !important;visibility:hidden}.x-paint-monitor.cssanimation{-webkit-animation-duration:0.0001ms;-webkit-animation-name:x-paint-monitor-helper;animation-duration:0.0001ms;animation-name:x-paint-monitor-helper}.x-paint-monitor.overflowchange{overflow:hidden}.x-paint-monitor.overflowchange::after{content:'';display:block;width:1px !important;height:1px !important}.x-progress{border-style:solid;overflow:hidden;position:relative}.x-progress-bar{height:100%;width:0}.x-progress-text,.x-progress-bar{overflow:hidden;position:absolute}.x-translatable{position:absolute !important;top:500000px !important;left:500000px !important;overflow:visible !important;z-index:1}.x-translatable-hboxfix{position:absolute;min-width:100%;top:0;left:0}.x-translatable-hboxfix > .x-translatable{position:relative !important}.x-translatable-container{overflow:hidden;width:auto;height:auto;position:absolute;top:0;right:0;bottom:0;left:0}.x-translatable-container::before{content:'';display:block;width:1000000px;height:1000000px;visibility:hidden}.x-scroll-container{overflow:hidden;position:relative}.x-scroll-scroller{float:left;position:relative;min-width:100%;min-height:100%}.x-domscroller-spacer{position:absolute;height:1px;width:1px;font-size:0;line-height:0}.x-body{margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.x-no-touch-scroll{touch-action:none;-ms-touch-action:none}@-ms-viewport{width:device-width}img{border:0}.x-border-box,.x-border-box *{box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-webkit-box-sizing:border-box}.x-ltr{direction:ltr}.x-clear{overflow:hidden;clear:both;font-size:0;line-height:0;display:table}.x-layer{position:absolute !important;overflow:hidden}.x-fixed-layer{position:fixed !important;overflow:hidden}.x-shim{position:absolute;left:0;top:0;overflow:hidden;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-hidden-display{display:none !important}.x-hidden-visibility{visibility:hidden !important}.x-hidden,.x-hidden-offsets{display:block !important;visibility:hidden !important;position:absolute !important;top:-10000px !important}.x-hidden-clip{position:absolute !important;clip:rect(0,0,0,0)}.x-masked-relative{position:relative}.x-ie-shadow{background-color:#777;position:absolute;overflow:hidden}.x-unselectable{user-select:none;-o-user-select:none;-ms-user-select:none;-moz-user-select:-moz-none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-drag:none;cursor:default}.x-selectable{cursor:auto;-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text;-o-user-select:text}.x-list-plain{list-style-type:none;margin:0;padding:0}.x-table-plain{border-collapse:collapse;border-spacing:0;font-size:1em}.x-frame-tl,.x-frame-tr,.x-frame-tc,.x-frame-bl,.x-frame-br,.x-frame-bc{overflow:hidden;background-repeat:no-repeat}.x-frame-tc,.x-frame-bc{background-repeat:repeat-x}td.x-frame-tl,td.x-frame-tr,td.x-frame-bl,td.x-frame-br{width:1px}.x-frame-mc{background-repeat:repeat-x;overflow:hidden}.x-proxy-el{position:absolute;background:#b4b4b4;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-css-shadow{position:absolute;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px}.x-item-disabled,.x-item-disabled *{cursor:default;pointer-events:none}.x-component,.x-container{position:relative}:focus{outline:none}.x-body .x-sync-repaint:before,.x-body .x-sync-repaint:after{content:none !important}.x-position-relative{position:relative !important}.x-box-item{position:absolute !important;left:0;top:0}.x-autocontainer-outerCt{display:table}.x-autocontainer-innerCt{display:table-cell;height:100%;vertical-align:top}.x-mask{z-index:100;position:absolute;top:0;left:0;width:100%;height:100%;outline:none !important}.x-ie8 .x-mask{background-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.x-mask-fixed{position:fixed}.x-mask-msg{position:absolute}.x-btn{display:inline-block;outline:0;cursor:pointer;white-space:nowrap;text-decoration:none;vertical-align:top;overflow:hidden;position:relative}.x-btn > .x-frame{height:100%;width:100%}.x-btn-wrap{height:100%;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.x-btn-wrap.x-btn-arrow-bottom,.x-btn-wrap.x-btn-split-bottom{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.x-ie9m .x-btn-wrap{display:table;border-spacing:0}.x-btn-button{white-space:nowrap;line-height:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;min-width:0}.x-btn-button.x-btn-icon-top,.x-btn-button.x-btn-icon-bottom{-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.x-ie9m .x-btn-button{display:table-cell;vertical-align:middle}.x-btn-inner{overflow:hidden;text-overflow:ellipsis;-ms-flex-negative:1;display:block}.x-ie9m .x-btn-inner{display:inline-block;vertical-align:middle}.x-btn-icon.x-btn-no-text > .x-btn-inner{display:none}.x-btn-icon-el{display:none;vertical-align:middle;text-align:center;background-position:center center;background-repeat:no-repeat}.x-btn-icon > .x-btn-icon-el{display:block}.x-ie9m .x-btn-icon-left > .x-btn-icon-el,.x-ie9m .x-btn-icon-right > .x-btn-icon-el{display:inline-block}.x-btn-button-center{text-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.x-btn-button-left{text-align:left;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.x-btn-button-right{text-align:right;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.x-btn-arrow:after,.x-btn-split:after{display:block;background-repeat:no-repeat;content:'';box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-webkit-box-sizing:border-box;text-align:center}.x-btn-arrow-right:after,.x-btn-split-right:after{background-position:right center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.x-ie9m .x-btn-arrow-right:after,.x-ie9m .x-btn-split-right:after{display:table-cell;vertical-align:middle}.x-btn-arrow-bottom:after,.x-btn-split-bottom:after{background-position:center bottom;content:'\00a0';line-height:0}.x-ie9m .x-btn-arrow-bottom:after,.x-ie9m .x-btn-split-bottom:after{display:table-row}.x-btn-split-right > .x-btn-button:after{position:absolute;display:block;top:-100%;right:0;height:300%;content:''}.x-btn-split-bottom > .x-btn-button:after{position:absolute;display:block;bottom:0;left:-100%;font-size:0;width:300%;content:''}.x-btn-mc{overflow:visible}.x-title-icon{background-repeat:no-repeat;background-position:0 0;vertical-align:middle;line-height:1;text-align:center}.x-title{display:table;table-layout:fixed}.x-title-text{display:table-cell;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle}.x-title-align-left{text-align:left}.x-title-align-center{text-align:center}.x-title-align-right{text-align:right}.x-title-rotate-right{-webkit-transform:rotate(90deg);-webkit-transform-origin:0 0;-moz-transform:rotate(90deg);-moz-transform-origin:0 0;-ms-transform:rotate(90deg);-ms-transform-origin:0 0;transform:rotate(90deg);transform-origin:0 0}.x-ie8 .x-title-rotate-right{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.x-title-rotate-left{-webkit-transform:rotate(270deg);-webkit-transform-origin:100% 0;-moz-transform:rotate(270deg);-moz-transform-origin:100% 0;-ms-transform:rotate(270deg);-ms-transform-origin:100% 0;transform:rotate(270deg);transform-origin:100% 0}.x-ie8 .x-title-rotate-left{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.x-horizontal.x-header .x-title-rotate-right.x-title-align-left > .x-title-item{vertical-align:bottom}.x-horizontal.x-header .x-title-rotate-right.x-title-align-center > .x-title-item{vertical-align:middle}.x-horizontal.x-header .x-title-rotate-right.x-title-align-right > .x-title-item{vertical-align:top}.x-horizontal.x-header .x-title-rotate-left.x-title-align-left > .x-title-item{vertical-align:top}.x-horizontal.x-header .x-title-rotate-left.x-title-align-center > .x-title-item{vertical-align:middle}.x-horizontal.x-header .x-title-rotate-left.x-title-align-right > .x-title-item{vertical-align:bottom}.x-vertical.x-header .x-title-rotate-none.x-title-align-left > .x-title-item{vertical-align:top}.x-vertical.x-header .x-title-rotate-none.x-title-align-center > .x-title-item{vertical-align:middle}.x-vertical.x-header .x-title-rotate-none.x-title-align-right > .x-title-item{vertical-align:bottom}.x-title-icon-wrap{display:table-cell;text-align:center;vertical-align:middle;line-height:0}.x-title-icon-wrap.x-title-icon-top,.x-title-icon-wrap.x-title-icon-bottom{display:table-row}.x-title-icon{display:inline-block;vertical-align:middle;background-position:center;background-repeat:no-repeat}.x-tool{font-size:0;line-height:0}.x-header > .x-box-inner,.x-panel-header-mc > .x-box-inner,.x-window-header-mc > .x-box-inner{overflow:visible}.x-splitter{font-size:1px}.x-splitter-horizontal{cursor:e-resize;cursor:row-resize}.x-splitter-vertical{cursor:e-resize;cursor:col-resize}.x-splitter-collapsed,.x-splitter-horizontal-noresize,.x-splitter-vertical-noresize{cursor:default}.x-splitter-active{z-index:4}.x-collapse-el{position:absolute;background-repeat:no-repeat}.x-splitter-focus{z-index:4}.x-box-layout-ct{overflow:hidden}.x-box-target{position:absolute;width:20000px;top:0;left:0;height:1px}.x-box-inner{overflow:hidden;position:relative;left:0;top:0}.x-box-scroller{position:absolute;background-repeat:no-repeat;background-position:center;line-height:0;font-size:0;text-align:center}.x-box-scroller-top{top:0}.x-box-scroller-right{right:0}.x-box-scroller-bottom{bottom:0}.x-box-scroller-left{left:0}.x-box-menu-body-horizontal{float:left}.x-box-menu-after{position:relative;float:left}.x-toolbar-text{white-space:nowrap}.x-toolbar-separator{display:block;font-size:1px;overflow:hidden;cursor:default;border:0;width:0;height:0;line-height:0px}.x-toolbar-scroller{padding-left:0}.x-toolbar-plain{border:0}.x-dd-drag-proxy,.x-dd-drag-current{z-index:1000000!important;pointer-events:none}.x-dd-drag-proxy{display:table}.x-dd-drag-repair .x-dd-drag-ghost{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-dd-drag-repair .x-dd-drop-icon{display:none}.x-dd-drag-ghost,.x-dd-drop-icon{display:table-cell;vertical-align:middle}.x-dd-drag-ghost{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";opacity:0.85;white-space:nowrap}.x-dd-drop-icon{height:26px;width:26px;background-color:transparent;background-position:center;background-repeat:no-repeat}.x-docked{position:absolute !important;z-index:2}.x-docked-vertical{position:static}.x-docked-top{border-bottom-width:0 !important}.x-docked-bottom{border-top-width:0 !important}.x-docked-left{border-right-width:0 !important}.x-docked-right{border-left-width:0 !important}.x-docked-noborder-top{border-top-width:0 !important}.x-docked-noborder-right{border-right-width:0 !important}.x-docked-noborder-bottom{border-bottom-width:0 !important}.x-docked-noborder-left{border-left-width:0 !important}.x-noborder-l{border-left-width:0 !important}.x-noborder-b{border-bottom-width:0 !important}.x-noborder-bl{border-bottom-width:0 !important;border-left-width:0 !important}.x-noborder-r{border-right-width:0 !important}.x-noborder-rl{border-right-width:0 !important;border-left-width:0 !important}.x-noborder-rb{border-right-width:0 !important;border-bottom-width:0 !important}.x-noborder-rbl{border-right-width:0 !important;border-bottom-width:0 !important;border-left-width:0 !important}.x-noborder-t{border-top-width:0 !important}.x-noborder-tl{border-top-width:0 !important;border-left-width:0 !important}.x-noborder-tb{border-top-width:0 !important;border-bottom-width:0 !important}.x-noborder-tbl{border-top-width:0 !important;border-bottom-width:0 !important;border-left-width:0 !important}.x-noborder-tr{border-top-width:0 !important;border-right-width:0 !important}.x-noborder-trl{border-top-width:0 !important;border-right-width:0 !important;border-left-width:0 !important}.x-noborder-trb{border-top-width:0 !important;border-right-width:0 !important;border-bottom-width:0 !important}.x-noborder-trbl{border-width:0 !important}.x-panel,.x-plain{overflow:hidden;position:relative}.x-panel{outline:none}td.x-frame-mc{vertical-align:top}.x-panel-body{overflow:hidden;position:relative}.x-panel-header-plain,.x-panel-body-plain{border:0;padding:0}.x-panel-collapsed-mini{visibility:hidden}.x-viewport,.x-viewport > .x-body{margin:0;padding:0;border:0 none;overflow:hidden;position:static;touch-action:none;-ms-touch-action:none}.x-viewport{height:100%}.x-viewport > .x-body{min-height:100%}.x-resizable-overlay{position:absolute;left:0;top:0;width:100%;height:100%;display:none;z-index:200000;background-color:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-window{outline:none;overflow:hidden}.x-window .x-window-wrap{position:relative}.x-window-body{position:relative;overflow:hidden}.x-form-item{display:table;table-layout:fixed;border-spacing:0;border-collapse:separate}.x-form-item-label{overflow:hidden}.x-form-item.x-form-item-no-label > .x-form-item-label{display:none}.x-form-item-label,.x-form-item-body{display:table-cell}.x-ie8 .x-form-fieldcontainer .x-form-item-label-top + .x-form-item-body{display:table-row}.x-form-item-body{vertical-align:middle;height:100%}.x-form-item-label-inner{display:inline-block}.x-form-item-label-top{display:table-row;height:1px}.x-form-item-label-top > .x-form-item-label-inner{display:table-cell}.x-form-item-label-top-side-error:after{display:table-cell;content:''}.x-form-item-label-right{text-align:right}.x-form-error-wrap-side{display:table-cell;vertical-align:middle}.x-form-error-wrap-under{display:table-row;height:1px}.x-form-error-wrap-under > .x-form-error-msg{display:table-cell}.x-form-error-wrap-under-side-label:before{display:table-cell;content:'';pointer-events:none}.x-form-invalid-icon{overflow:hidden}.x-form-invalid-icon ul{display:none}.x-form-trigger-wrap{display:table;width:100%;height:100%}.x-gecko .x-form-trigger-wrap{display:-moz-inline-box;display:inline-flex;vertical-align:top}.x-form-text-wrap{display:table-cell;overflow:hidden;height:100%}.x-gecko .x-form-text-wrap{display:block;-moz-box-flex:1;flex:1}.x-form-item-body.x-form-text-grow{min-width:inherit;max-width:inherit}.x-form-text{border:0;margin:0;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;display:block;background:repeat-x 0 0;width:100%;height:100%}.x-webkit .x-form-text{height:calc(100% + 3px)}.x-form-trigger{display:table-cell;vertical-align:top;cursor:pointer;overflow:hidden;background-repeat:no-repeat;text-align:center;line-height:0;white-space:nowrap}.x-item-disabled .x-form-trigger{cursor:default}.x-form-trigger.x-form-trigger-cmp{background:none;border:0}.x-gecko .x-form-trigger{display:block}.x-form-textarea{overflow:auto;resize:none}div.x-form-text-grow .x-form-textarea{min-height:inherit}.x-message-box .x-form-display-field{height:auto}.x-form-cb-wrap{vertical-align:top}.x-form-cb-wrap-inner{position:relative}.x-form-cb{position:absolute;left:0;right:auto;vertical-align:top;overflow:hidden;padding:0;border:0;cursor:default}.x-form-cb::-moz-focus-inner{padding:0;border:0}.x-form-cb-after{left:auto;right:0}.x-form-cb-label{display:inline-block}.x-form-cb-label.x-form-cb-no-box-label{display:none}.x-fieldset{display:block;position:relative;overflow:hidden}.x-fieldset-header{overflow:hidden}.x-fieldset-header .x-form-item,.x-fieldset-header .x-tool{float:left}.x-fieldset-header .x-fieldset-header-text{float:left}.x-fieldset-header .x-form-cb-wrap{font-size:0;line-height:0;min-height:0;height:auto}.x-fieldset-header .x-form-cb{margin:0;position:static;display:inherit}.x-fieldset-body{overflow:hidden}.x-fieldset-collapsed{padding-bottom:0 !important}.x-fieldset-collapsed > .x-fieldset-body{display:none}.x-fieldset-header-text-collapsible{cursor:pointer}.x-view-item-focused{outline:1px dashed #5fa2dd!important;outline-offset:-1px}.x-ie9 .x-boundlist-list-ct{min-height:0%}.x-datepicker{position:relative}.x-datepicker .x-monthpicker{left:0;top:0;display:block}.x-datepicker .x-monthpicker-months,.x-datepicker .x-monthpicker-years{height:100%}.x-datepicker-inner{table-layout:fixed;width:100%;border-collapse:separate}.x-datepicker-cell{padding:0}.x-datepicker-header{position:relative}.x-datepicker-arrow{position:absolute;outline:none;font-size:0;display:table}.x-datepicker-arrow:before{display:table-cell;text-align:center;vertical-align:middle}.x-datepicker-column-header{padding:0}.x-datepicker-date{display:block;text-decoration:none}.x-monthpicker{display:table}.x-monthpicker-body{height:100%;position:relative}.x-monthpicker-months,.x-monthpicker-years{float:left}.x-monthpicker-item{float:left}.x-monthpicker-item-inner{display:block;text-decoration:none}.x-monthpicker-yearnav-button-ct{float:left;text-align:center}.x-monthpicker-yearnav-button{display:inline-block;outline:none;font-size:0}.x-monthpicker-buttons{width:100%}.x-datepicker .x-monthpicker-buttons{position:absolute;bottom:0}.x-datepicker-month .x-btn-split > .x-btn-button:after{content:none}.x-tip{position:absolute;overflow:visible}.x-tip-body{overflow:hidden;position:relative}.x-tip-anchor{position:absolute;overflow:hidden;border-style:solid}.x-fit-item{position:relative}.x-menu{outline:none}.x-menu-body{position:relative}.x-menu-item{white-space:nowrap;overflow:hidden;border-color:transparent;border-style:solid}.x-menu-item-cmp{margin:2px}.x-menu-item-cmp .x-field-label-cell{vertical-align:middle}.x-menu-icon-separator{position:absolute;top:0px;z-index:0;height:100%;overflow:hidden}.x-menu-plain .x-menu-icon-separator{display:none}.x-menu-item-link{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;text-decoration:none;outline:0;display:block}.x-menu-item-link-href{-webkit-touch-callout:default}.x-menu-item-text{display:inline-block}.x-menu-item-icon,.x-menu-item-icon-right,.x-menu-item-arrow{font-size:0;position:absolute;text-align:center;background-repeat:no-repeat}.x-form-layout-wrap{display:table;width:100%;border-collapse:separate}.x-form-layout-colgroup{display:table-column-group}.x-form-layout-column{display:table-column}.x-form-layout-auto-label > * > .x-form-item-label{width:auto !important}.x-form-layout-auto-label > * > .x-form-item-label > .x-form-item-label-inner{width:auto !important;white-space:nowrap}.x-form-layout-auto-label > * > .x-form-layout-label-column{width:1px}.x-form-layout-sized-label > * > .x-form-item-label{width:auto !important}.x-form-form-item{display:table-row}.x-form-form-item > .x-form-item-label{padding-left:0 !important;padding-right:0 !important;padding-bottom:0 !important}.x-form-form-item > .x-form-item-body{max-width:none}.x-form-form-item.x-form-item-no-label:before{content:' ';display:table-cell;pointer-events:none}.x-resizable-wrapped{box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;-webkit-box-sizing:border-box}.x-tab{display:block;outline:0;cursor:pointer;white-space:nowrap;text-decoration:none;vertical-align:top;overflow:hidden;position:relative}.x-tab > .x-frame{height:100%;width:100%}.x-tab-wrap{height:100%;width:100%;display:table;border-spacing:0}.x-tab-button{white-space:nowrap;line-height:0;position:relative;display:table-cell;vertical-align:middle}.x-tab-inner{overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:middle}.x-tab-icon.x-tab-no-text > .x-tab-inner{display:none}.x-tab-icon-el{display:none;vertical-align:middle;text-align:center;background-position:center center;background-repeat:no-repeat}.x-tab-icon > .x-tab-icon-el{display:inline-block}.x-tab-icon-top > .x-tab-icon-el,.x-tab-icon-bottom > .x-tab-icon-el{display:block}.x-tab-button-center{text-align:center}.x-tab-button-left{text-align:left}.x-tab-button-right{text-align:right}.x-tab-mc{overflow:visible}.x-tab{z-index:1}.x-tab-active{z-index:3}.x-tab-button{position:relative}.x-tab-close-btn{display:block;position:absolute;overflow:hidden;font-size:0;line-height:0}.x-tab-rotate-left{-webkit-transform:rotate(270deg);-webkit-transform-origin:100% 0;-moz-transform:rotate(270deg);-moz-transform-origin:100% 0;-ms-transform:rotate(270deg);-ms-transform-origin:100% 0;transform:rotate(270deg);transform-origin:100% 0}.x-ie8 .x-tab-rotate-left{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.x-tab-rotate-right{-webkit-transform:rotate(90deg);-webkit-transform-origin:0 0;-moz-transform:rotate(90deg);-moz-transform-origin:0 0;-ms-transform:rotate(90deg);-ms-transform-origin:0 0;transform:rotate(90deg);transform-origin:0 0}.x-ie8 .x-tab-rotate-right{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.x-tab-tr,.x-tab-br,.x-tab-mr,.x-tab-tl,.x-tab-bl,.x-tab-ml{width:1px}.x-tab-bar{z-index:0;position:relative}.x-tab-bar-strip{position:absolute;line-height:0;font-size:0;z-index:2}.x-tab-bar-top > .x-tab-bar-strip{bottom:0}.x-tab-bar-bottom > .x-tab-bar-strip{top:0}.x-tab-bar-left > .x-tab-bar-strip{right:0}.x-tab-bar-right > .x-tab-bar-strip{left:0}.x-tab-bar-horizontal .x-tab-bar-strip{width:100%;left:0}.x-tab-bar-vertical{display:table-cell}.x-tab-bar-vertical .x-tab-bar-strip{height:100%;top:0}.x-tab-bar-plain{background:transparent !important}.x-box-scroller-plain{background-color:transparent !important}.x-scroll-indicator{position:absolute;background-color:#000;opacity:0.5;border-radius:3px;margin:2px}.x-scroll-indicator-x{bottom:0;left:0;height:6px}.x-scroll-indicator-y{right:0;top:0;width:6px}.x-body{color:#404040;font-size:13px;line-height:17px;font-weight:300;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;background:#f6f6f6}.x-animating-size,.x-collapsed{overflow:hidden!important}.x-mask{background-image:none;background-color:rgba(208, 208, 208, 0.5);cursor:default;border-style:solid;border-width:1px;border-color:transparent}.x-ie8 .x-mask{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#80d0d0d0, endColorstr=#80d0d0d0);zoom:1}body > .x-mask{background-image:none;background-color:rgba(0, 0, 0, 0.75)}.x-ie8 body > .x-mask{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#bf000000, endColorstr=#bf000000);zoom:1}.x-mask.x-focus{border-style:solid;border-width:1px;border-color:#5fa2dd}.x-mask-msg{padding:10px;background:#d0d0d0}.x-mask-msg-inner{padding:0;background-color:transparent;color:#404040;font:300 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif}.x-mask-msg-text{padding:25px 0 0;background-image:url(images/loadmask/loading.gif);background-repeat:no-repeat;background-position:center 0}.x-progress-default{background-color:#ececec;border-width:0;height:24px;border-color:#5fa2dd}.x-progress-default .x-progress-bar-default{background-image:none;background-color:#7fb5e4}.x-progress-default .x-progress-text{color:#fff;font-weight:400;font-size:13px;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;text-align:center;line-height:24px}.x-progress-default .x-progress-text-back{color:#404040;line-height:24px}.x-btn-default-small{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:7px 7px 7px 7px;border-width:1px;border-style:solid;background-color:#5fa2dd}.x-btn-default-small-mc{background-color:#5fa2dd}.x-nbr .x-btn-default-small{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-small-frameInfo{font-family:th-1-1-1-1-1-1-1-1-7-7-7-7}.x-btn-default-small-tl{background-position:0 -2px}.x-btn-default-small-tr{background-position:right -3px}.x-btn-default-small-bl{background-position:0 -4px}.x-btn-default-small-br{background-position:right -5px}.x-btn-default-small-ml{background-position:0 top}.x-btn-default-small-mr{background-position:right top}.x-btn-default-small-tc{background-position:0 0}.x-btn-default-small-bc{background-position:0 -1px}.x-btn-default-small-tr,.x-btn-default-small-br,.x-btn-default-small-mr{padding-right:1px}.x-btn-default-small-tl,.x-btn-default-small-bl,.x-btn-default-small-ml{padding-left:1px}.x-btn-default-small-tc{height:1px}.x-btn-default-small-bc{height:1px}.x-btn-default-small-tl,.x-btn-default-small-bl,.x-btn-default-small-tr,.x-btn-default-small-br,.x-btn-default-small-tc,.x-btn-default-small-bc,.x-btn-default-small-ml,.x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-corners.gif)}.x-btn-default-small-ml,.x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-sides.gif);background-repeat:repeat-y}.x-btn-default-small-mc{padding:7px 7px 7px 7px}.x-btn-default-small{border-color:#5897ce}.x-btn-button-default-small{min-height:16px}.x-ie9m .x-btn-button-default-small{min-height:auto;height:16px}.x-btn-inner-default-small{font:400 12px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#f0f0f0;padding:0 5px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-small,.x-btn-icon-left > .x-btn-inner-default-small{max-width:calc(100% - 16px)}.x-ie10p .x-btn-inner-default-small{max-width:none}.x-btn-icon-el-default-small{font-size:16px;height:16px;color:#f0f0f0;line-height:16px}.x-btn-icon-left > .x-btn-icon-el-default-small,.x-btn-icon-right > .x-btn-icon-el-default-small{width:16px}.x-btn-icon-top > .x-btn-icon-el-default-small,.x-btn-icon-bottom > .x-btn-icon-el-default-small{min-width:16px}.x-ie8 .x-btn-icon-el-default-small.x-btn-glyph{color:#f0f0f0}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-small{margin-right:3px}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-small{margin-left:3px}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-small{margin-bottom:8px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-small{margin-top:8px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-small{padding-right:5px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-small{margin-right:5px}.x-btn-arrow-bottom > .x-btn-button-default-small,.x-btn-split-bottom > .x-btn-button-default-small{padding-bottom:7px}.x-btn-wrap-default-small.x-btn-arrow-right:after{width:18px;content:"\f0d7";font:16px/1 FontAwesome;color:#f0f0f0}.x-btn-wrap-default-small.x-btn-arrow-bottom:after{height:12px;content:"\f0d7";font:16px/12px FontAwesome;color:#f0f0f0}.x-btn-wrap-default-small.x-btn-split-right > .x-btn-button{padding-right:7px}.x-btn-wrap-default-small.x-btn-split-right > .x-btn-button:after{border-right:1px solid #f0f0f0}.x-btn-wrap-default-small.x-btn-split-right:after{width:20px;content:"\f0d7";font:16px/1 FontAwesome;color:#f0f0f0;padding-left:7px}.x-btn-wrap-default-small.x-btn-split-bottom{margin-bottom:-7px}.x-btn-wrap-default-small.x-btn-split-bottom > .x-btn-button:after{border-bottom:1px solid #f0f0f0}.x-btn-wrap-default-small.x-btn-split-bottom:after{height:20px;content:"\f0d7";font:16px/20px FontAwesome;color:#f0f0f0}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-small{padding-right:5px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-small{margin-right:5px}.x-btn-focus.x-btn-default-small{background-image:none;background-color:#5fa2dd;-webkit-box-shadow:#d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset;-moz-box-shadow:#d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset;box-shadow:#d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset}.x-btn-default-small .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:27px;pointer-events:none}.x-btn-default-small.x-arrow-focus .x-btn-arrow-el{border:1px solid #d3e0ec}.x-btn-over.x-btn-default-small{border-color:#518bbd;background-image:none;background-color:#5795cb}.x-btn-focus.x-btn-over.x-btn-default-small{-webkit-box-shadow:#d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset;-moz-box-shadow:#d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset;box-shadow:#d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-small,.x-btn.x-btn-pressed.x-btn-default-small{border-color:#42719a;background-image:none;background-color:#477aa6}.x-btn-focus.x-btn-menu-active.x-btn-default-small,.x-btn-focus.x-btn-pressed.x-btn-default-small{-webkit-box-shadow:#ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset;-moz-box-shadow:#ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset;box-shadow:#ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-small{background-image:none;background-color:#5fa2dd}.x-btn-focus .x-btn-default-small-tl,.x-btn-focus .x-btn-default-small-bl,.x-btn-focus .x-btn-default-small-tr,.x-btn-focus .x-btn-default-small-br,.x-btn-focus .x-btn-default-small-tc,.x-btn-focus .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-focus-corners.gif)}.x-btn-focus .x-btn-default-small-ml,.x-btn-focus .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-focus-sides.gif)}.x-btn-focus .x-btn-default-small-mc{background-color:#5fa2dd}.x-btn-over .x-btn-default-small-tl,.x-btn-over .x-btn-default-small-bl,.x-btn-over .x-btn-default-small-tr,.x-btn-over .x-btn-default-small-br,.x-btn-over .x-btn-default-small-tc,.x-btn-over .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-over-corners.gif)}.x-btn-over .x-btn-default-small-ml,.x-btn-over .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-over-sides.gif)}.x-btn-over .x-btn-default-small-mc{background-color:#5795cb}.x-btn-focus.x-btn-over .x-btn-default-small-tl,.x-btn-focus.x-btn-over .x-btn-default-small-bl,.x-btn-focus.x-btn-over .x-btn-default-small-tr,.x-btn-focus.x-btn-over .x-btn-default-small-br,.x-btn-focus.x-btn-over .x-btn-default-small-tc,.x-btn-focus.x-btn-over .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-small-ml,.x-btn-focus.x-btn-over .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-small-mc{background-color:#5795cb}.x-btn.x-btn-menu-active .x-btn-default-small-tl,.x-btn.x-btn-menu-active .x-btn-default-small-bl,.x-btn.x-btn-menu-active .x-btn-default-small-tr,.x-btn.x-btn-menu-active .x-btn-default-small-br,.x-btn.x-btn-menu-active .x-btn-default-small-tc,.x-btn.x-btn-menu-active .x-btn-default-small-bc,.x-btn.x-btn-pressed .x-btn-default-small-tl,.x-btn.x-btn-pressed .x-btn-default-small-bl,.x-btn.x-btn-pressed .x-btn-default-small-tr,.x-btn.x-btn-pressed .x-btn-default-small-br,.x-btn.x-btn-pressed .x-btn-default-small-tc,.x-btn.x-btn-pressed .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-small-ml,.x-btn.x-btn-menu-active .x-btn-default-small-mr,.x-btn.x-btn-pressed .x-btn-default-small-ml,.x-btn.x-btn-pressed .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-small-mc,.x-btn.x-btn-pressed .x-btn-default-small-mc{background-color:#477aa6}.x-btn-focus.x-btn-menu-active .x-btn-default-small-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-small-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-small-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-small-br,.x-btn-focus.x-btn-menu-active .x-btn-default-small-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-small-bc,.x-btn-focus.x-btn-pressed .x-btn-default-small-tl,.x-btn-focus.x-btn-pressed .x-btn-default-small-bl,.x-btn-focus.x-btn-pressed .x-btn-default-small-tr,.x-btn-focus.x-btn-pressed .x-btn-default-small-br,.x-btn-focus.x-btn-pressed .x-btn-default-small-tc,.x-btn-focus.x-btn-pressed .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-small-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-small-mr,.x-btn-focus.x-btn-pressed .x-btn-default-small-ml,.x-btn-focus.x-btn-pressed .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-small-mc,.x-btn-focus.x-btn-pressed .x-btn-default-small-mc{background-color:#477aa6}.x-btn.x-btn-disabled .x-btn-default-small-tl,.x-btn.x-btn-disabled .x-btn-default-small-bl,.x-btn.x-btn-disabled .x-btn-default-small-tr,.x-btn.x-btn-disabled .x-btn-default-small-br,.x-btn.x-btn-disabled .x-btn-default-small-tc,.x-btn.x-btn-disabled .x-btn-default-small-bc{background-image:url(images/btn/btn-default-small-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-small-ml,.x-btn.x-btn-disabled .x-btn-default-small-mr{background-image:url(images/btn/btn-default-small-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-small-mc{background-color:#5fa2dd}.x-nbr .x-btn-default-small{background-image:none}.x-btn-disabled.x-btn-default-small{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-default-medium{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:8px 8px 8px 8px;border-width:1px;border-style:solid;background-color:#5fa2dd}.x-btn-default-medium-mc{background-color:#5fa2dd}.x-nbr .x-btn-default-medium{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-medium-frameInfo{font-family:th-1-1-1-1-1-1-1-1-8-8-8-8}.x-btn-default-medium-tl{background-position:0 -2px}.x-btn-default-medium-tr{background-position:right -3px}.x-btn-default-medium-bl{background-position:0 -4px}.x-btn-default-medium-br{background-position:right -5px}.x-btn-default-medium-ml{background-position:0 top}.x-btn-default-medium-mr{background-position:right top}.x-btn-default-medium-tc{background-position:0 0}.x-btn-default-medium-bc{background-position:0 -1px}.x-btn-default-medium-tr,.x-btn-default-medium-br,.x-btn-default-medium-mr{padding-right:1px}.x-btn-default-medium-tl,.x-btn-default-medium-bl,.x-btn-default-medium-ml{padding-left:1px}.x-btn-default-medium-tc{height:1px}.x-btn-default-medium-bc{height:1px}.x-btn-default-medium-tl,.x-btn-default-medium-bl,.x-btn-default-medium-tr,.x-btn-default-medium-br,.x-btn-default-medium-tc,.x-btn-default-medium-bc,.x-btn-default-medium-ml,.x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-corners.gif)}.x-btn-default-medium-ml,.x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-sides.gif);background-repeat:repeat-y}.x-btn-default-medium-mc{padding:8px 8px 8px 8px}.x-btn-default-medium{border-color:#5897ce}.x-btn-button-default-medium{min-height:20px}.x-ie9m .x-btn-button-default-medium{min-height:auto;height:20px}.x-btn-inner-default-medium{font:400 14px/18px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#f0f0f0;padding:0 8px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-medium,.x-btn-icon-left > .x-btn-inner-default-medium{max-width:calc(100% - 20px)}.x-ie10p .x-btn-inner-default-medium{max-width:none}.x-btn-icon-el-default-medium{font-size:20px;height:20px;color:#f0f0f0;line-height:20px}.x-btn-icon-left > .x-btn-icon-el-default-medium,.x-btn-icon-right > .x-btn-icon-el-default-medium{width:20px}.x-btn-icon-top > .x-btn-icon-el-default-medium,.x-btn-icon-bottom > .x-btn-icon-el-default-medium{min-width:20px}.x-ie8 .x-btn-icon-el-default-medium.x-btn-glyph{color:#f0f0f0}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-medium{margin-right:0px}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-medium{margin-left:0px}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-medium{margin-bottom:8px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-medium{margin-top:8px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-medium{padding-right:8px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-medium{margin-right:8px}.x-btn-arrow-bottom > .x-btn-button-default-medium,.x-btn-split-bottom > .x-btn-button-default-medium{padding-bottom:8px}.x-btn-wrap-default-medium.x-btn-arrow-right:after{width:20px;content:"\f0d7";font:20px/1 FontAwesome;color:#f0f0f0}.x-btn-wrap-default-medium.x-btn-arrow-bottom:after{height:14px;content:"\f0d7";font:20px/14px FontAwesome;color:#f0f0f0}.x-btn-wrap-default-medium.x-btn-split-right > .x-btn-button{padding-right:8px}.x-btn-wrap-default-medium.x-btn-split-right > .x-btn-button:after{border-right:1px solid #f0f0f0}.x-btn-wrap-default-medium.x-btn-split-right:after{width:26px;content:"\f0d7";font:20px/1 FontAwesome;color:#f0f0f0;padding-left:8px}.x-btn-wrap-default-medium.x-btn-split-bottom{margin-bottom:-8px}.x-btn-wrap-default-medium.x-btn-split-bottom > .x-btn-button:after{border-bottom:1px solid #f0f0f0}.x-btn-wrap-default-medium.x-btn-split-bottom:after{height:24px;content:"\f0d7";font:20px/24px FontAwesome;color:#f0f0f0}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-medium{padding-right:8px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-medium{margin-right:8px}.x-btn-focus.x-btn-default-medium{background-image:none;background-color:#5fa2dd;-webkit-box-shadow:#d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset;-moz-box-shadow:#d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset;box-shadow:#d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset}.x-btn-default-medium .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:34px;pointer-events:none}.x-btn-default-medium.x-arrow-focus .x-btn-arrow-el{border:1px solid #d3e0ec}.x-btn-over.x-btn-default-medium{border-color:#518bbd;background-image:none;background-color:#5795cb}.x-btn-focus.x-btn-over.x-btn-default-medium{-webkit-box-shadow:#d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset;-moz-box-shadow:#d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset;box-shadow:#d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-medium,.x-btn.x-btn-pressed.x-btn-default-medium{border-color:#42719a;background-image:none;background-color:#477aa6}.x-btn-focus.x-btn-menu-active.x-btn-default-medium,.x-btn-focus.x-btn-pressed.x-btn-default-medium{-webkit-box-shadow:#ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset;-moz-box-shadow:#ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset;box-shadow:#ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-medium{background-image:none;background-color:#5fa2dd}.x-btn-focus .x-btn-default-medium-tl,.x-btn-focus .x-btn-default-medium-bl,.x-btn-focus .x-btn-default-medium-tr,.x-btn-focus .x-btn-default-medium-br,.x-btn-focus .x-btn-default-medium-tc,.x-btn-focus .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-focus-corners.gif)}.x-btn-focus .x-btn-default-medium-ml,.x-btn-focus .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-focus-sides.gif)}.x-btn-focus .x-btn-default-medium-mc{background-color:#5fa2dd}.x-btn-over .x-btn-default-medium-tl,.x-btn-over .x-btn-default-medium-bl,.x-btn-over .x-btn-default-medium-tr,.x-btn-over .x-btn-default-medium-br,.x-btn-over .x-btn-default-medium-tc,.x-btn-over .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-over-corners.gif)}.x-btn-over .x-btn-default-medium-ml,.x-btn-over .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-over-sides.gif)}.x-btn-over .x-btn-default-medium-mc{background-color:#5795cb}.x-btn-focus.x-btn-over .x-btn-default-medium-tl,.x-btn-focus.x-btn-over .x-btn-default-medium-bl,.x-btn-focus.x-btn-over .x-btn-default-medium-tr,.x-btn-focus.x-btn-over .x-btn-default-medium-br,.x-btn-focus.x-btn-over .x-btn-default-medium-tc,.x-btn-focus.x-btn-over .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-medium-ml,.x-btn-focus.x-btn-over .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-medium-mc{background-color:#5795cb}.x-btn.x-btn-menu-active .x-btn-default-medium-tl,.x-btn.x-btn-menu-active .x-btn-default-medium-bl,.x-btn.x-btn-menu-active .x-btn-default-medium-tr,.x-btn.x-btn-menu-active .x-btn-default-medium-br,.x-btn.x-btn-menu-active .x-btn-default-medium-tc,.x-btn.x-btn-menu-active .x-btn-default-medium-bc,.x-btn.x-btn-pressed .x-btn-default-medium-tl,.x-btn.x-btn-pressed .x-btn-default-medium-bl,.x-btn.x-btn-pressed .x-btn-default-medium-tr,.x-btn.x-btn-pressed .x-btn-default-medium-br,.x-btn.x-btn-pressed .x-btn-default-medium-tc,.x-btn.x-btn-pressed .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-medium-ml,.x-btn.x-btn-menu-active .x-btn-default-medium-mr,.x-btn.x-btn-pressed .x-btn-default-medium-ml,.x-btn.x-btn-pressed .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-medium-mc,.x-btn.x-btn-pressed .x-btn-default-medium-mc{background-color:#477aa6}.x-btn-focus.x-btn-menu-active .x-btn-default-medium-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-br,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-bc,.x-btn-focus.x-btn-pressed .x-btn-default-medium-tl,.x-btn-focus.x-btn-pressed .x-btn-default-medium-bl,.x-btn-focus.x-btn-pressed .x-btn-default-medium-tr,.x-btn-focus.x-btn-pressed .x-btn-default-medium-br,.x-btn-focus.x-btn-pressed .x-btn-default-medium-tc,.x-btn-focus.x-btn-pressed .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-medium-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-medium-mr,.x-btn-focus.x-btn-pressed .x-btn-default-medium-ml,.x-btn-focus.x-btn-pressed .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-medium-mc,.x-btn-focus.x-btn-pressed .x-btn-default-medium-mc{background-color:#477aa6}.x-btn.x-btn-disabled .x-btn-default-medium-tl,.x-btn.x-btn-disabled .x-btn-default-medium-bl,.x-btn.x-btn-disabled .x-btn-default-medium-tr,.x-btn.x-btn-disabled .x-btn-default-medium-br,.x-btn.x-btn-disabled .x-btn-default-medium-tc,.x-btn.x-btn-disabled .x-btn-default-medium-bc{background-image:url(images/btn/btn-default-medium-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-medium-ml,.x-btn.x-btn-disabled .x-btn-default-medium-mr{background-image:url(images/btn/btn-default-medium-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-medium-mc{background-color:#5fa2dd}.x-nbr .x-btn-default-medium{background-image:none}.x-btn-disabled.x-btn-default-medium{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-default-large{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#5fa2dd}.x-btn-default-large-mc{background-color:#5fa2dd}.x-nbr .x-btn-default-large{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-large-frameInfo{font-family:th-1-1-1-1-1-1-1-1-9-9-9-9}.x-btn-default-large-tl{background-position:0 -2px}.x-btn-default-large-tr{background-position:right -3px}.x-btn-default-large-bl{background-position:0 -4px}.x-btn-default-large-br{background-position:right -5px}.x-btn-default-large-ml{background-position:0 top}.x-btn-default-large-mr{background-position:right top}.x-btn-default-large-tc{background-position:0 0}.x-btn-default-large-bc{background-position:0 -1px}.x-btn-default-large-tr,.x-btn-default-large-br,.x-btn-default-large-mr{padding-right:1px}.x-btn-default-large-tl,.x-btn-default-large-bl,.x-btn-default-large-ml{padding-left:1px}.x-btn-default-large-tc{height:1px}.x-btn-default-large-bc{height:1px}.x-btn-default-large-tl,.x-btn-default-large-bl,.x-btn-default-large-tr,.x-btn-default-large-br,.x-btn-default-large-tc,.x-btn-default-large-bc,.x-btn-default-large-ml,.x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-corners.gif)}.x-btn-default-large-ml,.x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-sides.gif);background-repeat:repeat-y}.x-btn-default-large-mc{padding:9px 9px 9px 9px}.x-btn-default-large{border-color:#5897ce}.x-btn-button-default-large{min-height:24px}.x-ie9m .x-btn-button-default-large{min-height:auto;height:24px}.x-btn-inner-default-large{font:400 16px/20px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#f0f0f0;padding:0 10px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-large,.x-btn-icon-left > .x-btn-inner-default-large{max-width:calc(100% - 24px)}.x-ie10p .x-btn-inner-default-large{max-width:none}.x-btn-icon-el-default-large{font-size:24px;height:24px;color:#f0f0f0;line-height:24px}.x-btn-icon-left > .x-btn-icon-el-default-large,.x-btn-icon-right > .x-btn-icon-el-default-large{width:24px}.x-btn-icon-top > .x-btn-icon-el-default-large,.x-btn-icon-bottom > .x-btn-icon-el-default-large{min-width:24px}.x-ie8 .x-btn-icon-el-default-large.x-btn-glyph{color:#f0f0f0}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-large{margin-right:0}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-large{margin-left:0}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-large{margin-bottom:8px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-large{margin-top:8px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-large{padding-right:10px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-large{margin-right:10px}.x-btn-arrow-bottom > .x-btn-button-default-large,.x-btn-split-bottom > .x-btn-button-default-large{padding-bottom:9px}.x-btn-wrap-default-large.x-btn-arrow-right:after{width:22px;content:"\f0d7";font:24px/1 FontAwesome;color:#f0f0f0}.x-btn-wrap-default-large.x-btn-arrow-bottom:after{height:16px;content:"\f0d7";font:24px/16px FontAwesome;color:#f0f0f0}.x-btn-wrap-default-large.x-btn-split-right > .x-btn-button{padding-right:9px}.x-btn-wrap-default-large.x-btn-split-right > .x-btn-button:after{border-right:1px solid #f0f0f0}.x-btn-wrap-default-large.x-btn-split-right:after{width:32px;content:"\f0d7";font:24px/1 FontAwesome;color:#f0f0f0;padding-left:9px}.x-btn-wrap-default-large.x-btn-split-bottom{margin-bottom:-9px}.x-btn-wrap-default-large.x-btn-split-bottom > .x-btn-button:after{border-bottom:1px solid #f0f0f0}.x-btn-wrap-default-large.x-btn-split-bottom:after{height:28px;content:"\f0d7";font:24px/28px FontAwesome;color:#f0f0f0}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-large{padding-right:10px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-large{margin-right:10px}.x-btn-focus.x-btn-default-large{background-image:none;background-color:#5fa2dd;-webkit-box-shadow:#d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset;-moz-box-shadow:#d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset;box-shadow:#d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset}.x-btn-default-large .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:41px;pointer-events:none}.x-btn-default-large.x-arrow-focus .x-btn-arrow-el{border:1px solid #d3e0ec}.x-btn-over.x-btn-default-large{border-color:#518bbd;background-image:none;background-color:#5795cb}.x-btn-focus.x-btn-over.x-btn-default-large{-webkit-box-shadow:#d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset;-moz-box-shadow:#d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset;box-shadow:#d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-large,.x-btn.x-btn-pressed.x-btn-default-large{border-color:#42719a;background-image:none;background-color:#477aa6}.x-btn-focus.x-btn-menu-active.x-btn-default-large,.x-btn-focus.x-btn-pressed.x-btn-default-large{-webkit-box-shadow:#ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset;-moz-box-shadow:#ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset;box-shadow:#ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-large{background-image:none;background-color:#5fa2dd}.x-btn-focus .x-btn-default-large-tl,.x-btn-focus .x-btn-default-large-bl,.x-btn-focus .x-btn-default-large-tr,.x-btn-focus .x-btn-default-large-br,.x-btn-focus .x-btn-default-large-tc,.x-btn-focus .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-focus-corners.gif)}.x-btn-focus .x-btn-default-large-ml,.x-btn-focus .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-focus-sides.gif)}.x-btn-focus .x-btn-default-large-mc{background-color:#5fa2dd}.x-btn-over .x-btn-default-large-tl,.x-btn-over .x-btn-default-large-bl,.x-btn-over .x-btn-default-large-tr,.x-btn-over .x-btn-default-large-br,.x-btn-over .x-btn-default-large-tc,.x-btn-over .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-over-corners.gif)}.x-btn-over .x-btn-default-large-ml,.x-btn-over .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-over-sides.gif)}.x-btn-over .x-btn-default-large-mc{background-color:#5795cb}.x-btn-focus.x-btn-over .x-btn-default-large-tl,.x-btn-focus.x-btn-over .x-btn-default-large-bl,.x-btn-focus.x-btn-over .x-btn-default-large-tr,.x-btn-focus.x-btn-over .x-btn-default-large-br,.x-btn-focus.x-btn-over .x-btn-default-large-tc,.x-btn-focus.x-btn-over .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-large-ml,.x-btn-focus.x-btn-over .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-large-mc{background-color:#5795cb}.x-btn.x-btn-menu-active .x-btn-default-large-tl,.x-btn.x-btn-menu-active .x-btn-default-large-bl,.x-btn.x-btn-menu-active .x-btn-default-large-tr,.x-btn.x-btn-menu-active .x-btn-default-large-br,.x-btn.x-btn-menu-active .x-btn-default-large-tc,.x-btn.x-btn-menu-active .x-btn-default-large-bc,.x-btn.x-btn-pressed .x-btn-default-large-tl,.x-btn.x-btn-pressed .x-btn-default-large-bl,.x-btn.x-btn-pressed .x-btn-default-large-tr,.x-btn.x-btn-pressed .x-btn-default-large-br,.x-btn.x-btn-pressed .x-btn-default-large-tc,.x-btn.x-btn-pressed .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-large-ml,.x-btn.x-btn-menu-active .x-btn-default-large-mr,.x-btn.x-btn-pressed .x-btn-default-large-ml,.x-btn.x-btn-pressed .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-large-mc,.x-btn.x-btn-pressed .x-btn-default-large-mc{background-color:#477aa6}.x-btn-focus.x-btn-menu-active .x-btn-default-large-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-large-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-large-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-large-br,.x-btn-focus.x-btn-menu-active .x-btn-default-large-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-large-bc,.x-btn-focus.x-btn-pressed .x-btn-default-large-tl,.x-btn-focus.x-btn-pressed .x-btn-default-large-bl,.x-btn-focus.x-btn-pressed .x-btn-default-large-tr,.x-btn-focus.x-btn-pressed .x-btn-default-large-br,.x-btn-focus.x-btn-pressed .x-btn-default-large-tc,.x-btn-focus.x-btn-pressed .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-large-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-large-mr,.x-btn-focus.x-btn-pressed .x-btn-default-large-ml,.x-btn-focus.x-btn-pressed .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-large-mc,.x-btn-focus.x-btn-pressed .x-btn-default-large-mc{background-color:#477aa6}.x-btn.x-btn-disabled .x-btn-default-large-tl,.x-btn.x-btn-disabled .x-btn-default-large-bl,.x-btn.x-btn-disabled .x-btn-default-large-tr,.x-btn.x-btn-disabled .x-btn-default-large-br,.x-btn.x-btn-disabled .x-btn-default-large-tc,.x-btn.x-btn-disabled .x-btn-default-large-bc{background-image:url(images/btn/btn-default-large-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-large-ml,.x-btn.x-btn-disabled .x-btn-default-large-mr{background-image:url(images/btn/btn-default-large-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-large-mc{background-color:#5fa2dd}.x-nbr .x-btn-default-large{background-image:none}.x-btn-disabled.x-btn-default-large{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-default-toolbar-small{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:7px 7px 7px 7px;border-width:1px;border-style:solid;background-color:#f6f6f6}.x-btn-default-toolbar-small-mc{background-color:#f6f6f6}.x-nbr .x-btn-default-toolbar-small{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-toolbar-small-frameInfo{font-family:th-1-1-1-1-1-1-1-1-7-7-7-7}.x-btn-default-toolbar-small-tl{background-position:0 -2px}.x-btn-default-toolbar-small-tr{background-position:right -3px}.x-btn-default-toolbar-small-bl{background-position:0 -4px}.x-btn-default-toolbar-small-br{background-position:right -5px}.x-btn-default-toolbar-small-ml{background-position:0 top}.x-btn-default-toolbar-small-mr{background-position:right top}.x-btn-default-toolbar-small-tc{background-position:0 0}.x-btn-default-toolbar-small-bc{background-position:0 -1px}.x-btn-default-toolbar-small-tr,.x-btn-default-toolbar-small-br,.x-btn-default-toolbar-small-mr{padding-right:1px}.x-btn-default-toolbar-small-tl,.x-btn-default-toolbar-small-bl,.x-btn-default-toolbar-small-ml{padding-left:1px}.x-btn-default-toolbar-small-tc{height:1px}.x-btn-default-toolbar-small-bc{height:1px}.x-btn-default-toolbar-small-tl,.x-btn-default-toolbar-small-bl,.x-btn-default-toolbar-small-tr,.x-btn-default-toolbar-small-br,.x-btn-default-toolbar-small-tc,.x-btn-default-toolbar-small-bc,.x-btn-default-toolbar-small-ml,.x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-corners.gif)}.x-btn-default-toolbar-small-ml,.x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-sides.gif);background-repeat:repeat-y}.x-btn-default-toolbar-small-mc{padding:7px 7px 7px 7px}.x-btn-default-toolbar-small{border-color:#e4e4e4}.x-btn-button-default-toolbar-small{min-height:16px}.x-ie9m .x-btn-button-default-toolbar-small{min-height:auto;height:16px}.x-btn-inner-default-toolbar-small{font:400 12px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#606060;padding:0 5px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-toolbar-small,.x-btn-icon-left > .x-btn-inner-default-toolbar-small{max-width:calc(100% - 16px)}.x-ie10p .x-btn-inner-default-toolbar-small{max-width:none}.x-btn-icon-el-default-toolbar-small{font-size:16px;height:16px;color:#919191;line-height:16px}.x-btn-icon-left > .x-btn-icon-el-default-toolbar-small,.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small{width:16px}.x-btn-icon-top > .x-btn-icon-el-default-toolbar-small,.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-small{min-width:16px}.x-ie8 .x-btn-icon-el-default-toolbar-small.x-btn-glyph{color:#919191}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-toolbar-small{margin-right:3px}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small{margin-left:3px}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-toolbar-small{margin-bottom:8px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-small{margin-top:8px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-small{padding-right:5px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small{margin-right:5px}.x-btn-arrow-bottom > .x-btn-button-default-toolbar-small,.x-btn-split-bottom > .x-btn-button-default-toolbar-small{padding-bottom:7px}.x-btn-wrap-default-toolbar-small.x-btn-arrow-right:after{width:18px;content:"\f0d7";font:16px/1 FontAwesome;color:#606060}.x-btn-wrap-default-toolbar-small.x-btn-arrow-bottom:after{height:12px;content:"\f0d7";font:16px/12px FontAwesome;color:#606060}.x-btn-wrap-default-toolbar-small.x-btn-split-right > .x-btn-button{padding-right:7px}.x-btn-wrap-default-toolbar-small.x-btn-split-right > .x-btn-button:after{border-right:1px solid #e4e4e4}.x-btn-wrap-default-toolbar-small.x-btn-split-right:after{width:20px;content:"\f0d7";font:16px/1 FontAwesome;color:#606060;padding-left:7px}.x-btn-wrap-default-toolbar-small.x-btn-split-bottom{margin-bottom:-7px}.x-btn-wrap-default-toolbar-small.x-btn-split-bottom > .x-btn-button:after{border-bottom:1px solid #e4e4e4}.x-btn-wrap-default-toolbar-small.x-btn-split-bottom:after{height:20px;content:"\f0d7";font:16px/20px FontAwesome;color:#606060}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-small{padding-right:5px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small{margin-right:5px}.x-btn-focus.x-btn-default-toolbar-small{background-image:none;background-color:#f6f6f6;-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn-default-toolbar-small .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:27px;pointer-events:none}.x-btn-default-toolbar-small.x-arrow-focus .x-btn-arrow-el{border:1px solid #5fa2dd}.x-btn-over.x-btn-default-toolbar-small{border-color:#dbdbdb;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-default-toolbar-small{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-toolbar-small,.x-btn.x-btn-pressed.x-btn-default-toolbar-small{border-color:#d2d2d2;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-default-toolbar-small,.x-btn-focus.x-btn-pressed.x-btn-default-toolbar-small{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-toolbar-small{background-image:none;background-color:#f6f6f6}.x-btn-focus .x-btn-default-toolbar-small-tl,.x-btn-focus .x-btn-default-toolbar-small-bl,.x-btn-focus .x-btn-default-toolbar-small-tr,.x-btn-focus .x-btn-default-toolbar-small-br,.x-btn-focus .x-btn-default-toolbar-small-tc,.x-btn-focus .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-focus-corners.gif)}.x-btn-focus .x-btn-default-toolbar-small-ml,.x-btn-focus .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-focus-sides.gif)}.x-btn-focus .x-btn-default-toolbar-small-mc{background-color:#f6f6f6}.x-btn-over .x-btn-default-toolbar-small-tl,.x-btn-over .x-btn-default-toolbar-small-bl,.x-btn-over .x-btn-default-toolbar-small-tr,.x-btn-over .x-btn-default-toolbar-small-br,.x-btn-over .x-btn-default-toolbar-small-tc,.x-btn-over .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-over-corners.gif)}.x-btn-over .x-btn-default-toolbar-small-ml,.x-btn-over .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-over-sides.gif)}.x-btn-over .x-btn-default-toolbar-small-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-tl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-bl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-tr,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-br,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-tc,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-ml,.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-tl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-bl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-tr,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-br,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-tc,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-bc,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-tl,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-bl,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-tr,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-br,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-tc,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-ml,.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-mr,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-ml,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-mc,.x-btn.x-btn-pressed .x-btn-default-toolbar-small-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-br,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-bc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-tl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-bl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-tr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-br,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-tc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-mr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-ml,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-mc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-default-toolbar-small-tl,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-bl,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-tr,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-br,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-tc,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-bc{background-image:url(images/btn/btn-default-toolbar-small-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-small-ml,.x-btn.x-btn-disabled .x-btn-default-toolbar-small-mr{background-image:url(images/btn/btn-default-toolbar-small-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-small-mc{background-color:#f6f6f6}.x-nbr .x-btn-default-toolbar-small{background-image:none}.x-btn-disabled.x-btn-default-toolbar-small{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-default-toolbar-medium{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:8px 8px 8px 8px;border-width:1px;border-style:solid;background-color:#f6f6f6}.x-btn-default-toolbar-medium-mc{background-color:#f6f6f6}.x-nbr .x-btn-default-toolbar-medium{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-toolbar-medium-frameInfo{font-family:th-1-1-1-1-1-1-1-1-8-8-8-8}.x-btn-default-toolbar-medium-tl{background-position:0 -2px}.x-btn-default-toolbar-medium-tr{background-position:right -3px}.x-btn-default-toolbar-medium-bl{background-position:0 -4px}.x-btn-default-toolbar-medium-br{background-position:right -5px}.x-btn-default-toolbar-medium-ml{background-position:0 top}.x-btn-default-toolbar-medium-mr{background-position:right top}.x-btn-default-toolbar-medium-tc{background-position:0 0}.x-btn-default-toolbar-medium-bc{background-position:0 -1px}.x-btn-default-toolbar-medium-tr,.x-btn-default-toolbar-medium-br,.x-btn-default-toolbar-medium-mr{padding-right:1px}.x-btn-default-toolbar-medium-tl,.x-btn-default-toolbar-medium-bl,.x-btn-default-toolbar-medium-ml{padding-left:1px}.x-btn-default-toolbar-medium-tc{height:1px}.x-btn-default-toolbar-medium-bc{height:1px}.x-btn-default-toolbar-medium-tl,.x-btn-default-toolbar-medium-bl,.x-btn-default-toolbar-medium-tr,.x-btn-default-toolbar-medium-br,.x-btn-default-toolbar-medium-tc,.x-btn-default-toolbar-medium-bc,.x-btn-default-toolbar-medium-ml,.x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-corners.gif)}.x-btn-default-toolbar-medium-ml,.x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-sides.gif);background-repeat:repeat-y}.x-btn-default-toolbar-medium-mc{padding:8px 8px 8px 8px}.x-btn-default-toolbar-medium{border-color:#e4e4e4}.x-btn-button-default-toolbar-medium{min-height:20px}.x-ie9m .x-btn-button-default-toolbar-medium{min-height:auto;height:20px}.x-btn-inner-default-toolbar-medium{font:400 14px/18px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#606060;padding:0 8px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-toolbar-medium,.x-btn-icon-left > .x-btn-inner-default-toolbar-medium{max-width:calc(100% - 20px)}.x-ie10p .x-btn-inner-default-toolbar-medium{max-width:none}.x-btn-icon-el-default-toolbar-medium{font-size:20px;height:20px;color:#919191;line-height:20px}.x-btn-icon-left > .x-btn-icon-el-default-toolbar-medium,.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium{width:20px}.x-btn-icon-top > .x-btn-icon-el-default-toolbar-medium,.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-medium{min-width:20px}.x-ie8 .x-btn-icon-el-default-toolbar-medium.x-btn-glyph{color:#919191}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-toolbar-medium{margin-right:0px}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium{margin-left:0px}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-toolbar-medium{margin-bottom:8px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-medium{margin-top:8px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-medium{padding-right:8px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium{margin-right:8px}.x-btn-arrow-bottom > .x-btn-button-default-toolbar-medium,.x-btn-split-bottom > .x-btn-button-default-toolbar-medium{padding-bottom:8px}.x-btn-wrap-default-toolbar-medium.x-btn-arrow-right:after{width:20px;content:"\f0d7";font:20px/1 FontAwesome;color:#606060}.x-btn-wrap-default-toolbar-medium.x-btn-arrow-bottom:after{height:14px;content:"\f0d7";font:20px/14px FontAwesome;color:#606060}.x-btn-wrap-default-toolbar-medium.x-btn-split-right > .x-btn-button{padding-right:8px}.x-btn-wrap-default-toolbar-medium.x-btn-split-right > .x-btn-button:after{border-right:1px solid #e4e4e4}.x-btn-wrap-default-toolbar-medium.x-btn-split-right:after{width:26px;content:"\f0d7";font:20px/1 FontAwesome;color:#606060;padding-left:8px}.x-btn-wrap-default-toolbar-medium.x-btn-split-bottom{margin-bottom:-8px}.x-btn-wrap-default-toolbar-medium.x-btn-split-bottom > .x-btn-button:after{border-bottom:1px solid #e4e4e4}.x-btn-wrap-default-toolbar-medium.x-btn-split-bottom:after{height:24px;content:"\f0d7";font:20px/24px FontAwesome;color:#606060}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-medium{padding-right:8px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium{margin-right:8px}.x-btn-focus.x-btn-default-toolbar-medium{background-image:none;background-color:#f6f6f6;-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn-default-toolbar-medium .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:34px;pointer-events:none}.x-btn-default-toolbar-medium.x-arrow-focus .x-btn-arrow-el{border:1px solid #5fa2dd}.x-btn-over.x-btn-default-toolbar-medium{border-color:#dbdbdb;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-default-toolbar-medium{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-toolbar-medium,.x-btn.x-btn-pressed.x-btn-default-toolbar-medium{border-color:#d2d2d2;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-default-toolbar-medium,.x-btn-focus.x-btn-pressed.x-btn-default-toolbar-medium{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-toolbar-medium{background-image:none;background-color:#f6f6f6}.x-btn-focus .x-btn-default-toolbar-medium-tl,.x-btn-focus .x-btn-default-toolbar-medium-bl,.x-btn-focus .x-btn-default-toolbar-medium-tr,.x-btn-focus .x-btn-default-toolbar-medium-br,.x-btn-focus .x-btn-default-toolbar-medium-tc,.x-btn-focus .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-focus-corners.gif)}.x-btn-focus .x-btn-default-toolbar-medium-ml,.x-btn-focus .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-focus-sides.gif)}.x-btn-focus .x-btn-default-toolbar-medium-mc{background-color:#f6f6f6}.x-btn-over .x-btn-default-toolbar-medium-tl,.x-btn-over .x-btn-default-toolbar-medium-bl,.x-btn-over .x-btn-default-toolbar-medium-tr,.x-btn-over .x-btn-default-toolbar-medium-br,.x-btn-over .x-btn-default-toolbar-medium-tc,.x-btn-over .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-over-corners.gif)}.x-btn-over .x-btn-default-toolbar-medium-ml,.x-btn-over .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-over-sides.gif)}.x-btn-over .x-btn-default-toolbar-medium-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-tl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-bl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-tr,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-br,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-tc,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-ml,.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-tl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-bl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-tr,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-br,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-tc,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-bc,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-tl,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-bl,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-tr,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-br,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-tc,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-ml,.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-mr,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-ml,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-mc,.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-br,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-bc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-tl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-bl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-tr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-br,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-tc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-mr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-ml,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-mc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-tl,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-bl,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-tr,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-br,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-tc,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-bc{background-image:url(images/btn/btn-default-toolbar-medium-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-ml,.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-mr{background-image:url(images/btn/btn-default-toolbar-medium-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-mc{background-color:#f6f6f6}.x-nbr .x-btn-default-toolbar-medium{background-image:none}.x-btn-disabled.x-btn-default-toolbar-medium{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-default-toolbar-large{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:#f6f6f6}.x-btn-default-toolbar-large-mc{background-color:#f6f6f6}.x-nbr .x-btn-default-toolbar-large{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-default-toolbar-large-frameInfo{font-family:th-1-1-1-1-1-1-1-1-9-9-9-9}.x-btn-default-toolbar-large-tl{background-position:0 -2px}.x-btn-default-toolbar-large-tr{background-position:right -3px}.x-btn-default-toolbar-large-bl{background-position:0 -4px}.x-btn-default-toolbar-large-br{background-position:right -5px}.x-btn-default-toolbar-large-ml{background-position:0 top}.x-btn-default-toolbar-large-mr{background-position:right top}.x-btn-default-toolbar-large-tc{background-position:0 0}.x-btn-default-toolbar-large-bc{background-position:0 -1px}.x-btn-default-toolbar-large-tr,.x-btn-default-toolbar-large-br,.x-btn-default-toolbar-large-mr{padding-right:1px}.x-btn-default-toolbar-large-tl,.x-btn-default-toolbar-large-bl,.x-btn-default-toolbar-large-ml{padding-left:1px}.x-btn-default-toolbar-large-tc{height:1px}.x-btn-default-toolbar-large-bc{height:1px}.x-btn-default-toolbar-large-tl,.x-btn-default-toolbar-large-bl,.x-btn-default-toolbar-large-tr,.x-btn-default-toolbar-large-br,.x-btn-default-toolbar-large-tc,.x-btn-default-toolbar-large-bc,.x-btn-default-toolbar-large-ml,.x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-corners.gif)}.x-btn-default-toolbar-large-ml,.x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-sides.gif);background-repeat:repeat-y}.x-btn-default-toolbar-large-mc{padding:9px 9px 9px 9px}.x-btn-default-toolbar-large{border-color:#e4e4e4}.x-btn-button-default-toolbar-large{min-height:24px}.x-ie9m .x-btn-button-default-toolbar-large{min-height:auto;height:24px}.x-btn-inner-default-toolbar-large{font:400 16px/20px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#606060;padding:0 10px;max-width:100%}.x-btn-icon-right > .x-btn-inner-default-toolbar-large,.x-btn-icon-left > .x-btn-inner-default-toolbar-large{max-width:calc(100% - 24px)}.x-ie10p .x-btn-inner-default-toolbar-large{max-width:none}.x-btn-icon-el-default-toolbar-large{font-size:24px;height:24px;color:#919191;line-height:24px}.x-btn-icon-left > .x-btn-icon-el-default-toolbar-large,.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large{width:24px}.x-btn-icon-top > .x-btn-icon-el-default-toolbar-large,.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-large{min-width:24px}.x-ie8 .x-btn-icon-el-default-toolbar-large.x-btn-glyph{color:#919191}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-toolbar-large{margin-right:0}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large{margin-left:0}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-toolbar-large{margin-bottom:8px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-large{margin-top:8px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-large{padding-right:10px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large{margin-right:10px}.x-btn-arrow-bottom > .x-btn-button-default-toolbar-large,.x-btn-split-bottom > .x-btn-button-default-toolbar-large{padding-bottom:9px}.x-btn-wrap-default-toolbar-large.x-btn-arrow-right:after{width:22px;content:"\f0d7";font:24px/1 FontAwesome;color:#606060}.x-btn-wrap-default-toolbar-large.x-btn-arrow-bottom:after{height:16px;content:"\f0d7";font:24px/16px FontAwesome;color:#606060}.x-btn-wrap-default-toolbar-large.x-btn-split-right > .x-btn-button{padding-right:9px}.x-btn-wrap-default-toolbar-large.x-btn-split-right > .x-btn-button:after{border-right:1px solid #e4e4e4}.x-btn-wrap-default-toolbar-large.x-btn-split-right:after{width:32px;content:"\f0d7";font:24px/1 FontAwesome;color:#606060;padding-left:9px}.x-btn-wrap-default-toolbar-large.x-btn-split-bottom{margin-bottom:-9px}.x-btn-wrap-default-toolbar-large.x-btn-split-bottom > .x-btn-button:after{border-bottom:1px solid #e4e4e4}.x-btn-wrap-default-toolbar-large.x-btn-split-bottom:after{height:28px;content:"\f0d7";font:24px/28px FontAwesome;color:#606060}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-large{padding-right:10px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large{margin-right:10px}.x-btn-focus.x-btn-default-toolbar-large{background-image:none;background-color:#f6f6f6;-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn-default-toolbar-large .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:41px;pointer-events:none}.x-btn-default-toolbar-large.x-arrow-focus .x-btn-arrow-el{border:1px solid #5fa2dd}.x-btn-over.x-btn-default-toolbar-large{border-color:#dbdbdb;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-default-toolbar-large{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-default-toolbar-large,.x-btn.x-btn-pressed.x-btn-default-toolbar-large{border-color:#d2d2d2;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-default-toolbar-large,.x-btn-focus.x-btn-pressed.x-btn-default-toolbar-large{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-default-toolbar-large{background-image:none;background-color:#f6f6f6}.x-btn-focus .x-btn-default-toolbar-large-tl,.x-btn-focus .x-btn-default-toolbar-large-bl,.x-btn-focus .x-btn-default-toolbar-large-tr,.x-btn-focus .x-btn-default-toolbar-large-br,.x-btn-focus .x-btn-default-toolbar-large-tc,.x-btn-focus .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-focus-corners.gif)}.x-btn-focus .x-btn-default-toolbar-large-ml,.x-btn-focus .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-focus-sides.gif)}.x-btn-focus .x-btn-default-toolbar-large-mc{background-color:#f6f6f6}.x-btn-over .x-btn-default-toolbar-large-tl,.x-btn-over .x-btn-default-toolbar-large-bl,.x-btn-over .x-btn-default-toolbar-large-tr,.x-btn-over .x-btn-default-toolbar-large-br,.x-btn-over .x-btn-default-toolbar-large-tc,.x-btn-over .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-over-corners.gif)}.x-btn-over .x-btn-default-toolbar-large-ml,.x-btn-over .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-over-sides.gif)}.x-btn-over .x-btn-default-toolbar-large-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-tl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-bl,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-tr,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-br,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-tc,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-ml,.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-tl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-bl,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-tr,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-br,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-tc,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-bc,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-tl,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-bl,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-tr,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-br,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-tc,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-ml,.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-mr,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-ml,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-mc,.x-btn.x-btn-pressed .x-btn-default-toolbar-large-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-tl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-bl,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-tr,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-br,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-tc,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-bc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-tl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-bl,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-tr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-br,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-tc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-ml,.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-mr,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-ml,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-mc,.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-default-toolbar-large-tl,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-bl,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-tr,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-br,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-tc,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-bc{background-image:url(images/btn/btn-default-toolbar-large-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-large-ml,.x-btn.x-btn-disabled .x-btn-default-toolbar-large-mr{background-image:url(images/btn/btn-default-toolbar-large-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-default-toolbar-large-mc{background-color:#f6f6f6}.x-nbr .x-btn-default-toolbar-large{background-image:none}.x-btn-disabled.x-btn-default-toolbar-large{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-tool{cursor:pointer}.x-tool-img{overflow:hidden;width:16px;height:16px;background-image:url(images/tools/tool-sprites.png);margin:0;color:#fff;text-align:center;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-tool-over .x-tool-img{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-tool-pressed .x-tool-img{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-tool-placeholder{visibility:hidden}.x-tool-close{font:16px/1 FontAwesome;background:none}.x-tool-close:before{content:"\f00d"}.x-tool-minimize{font:16px/1 ExtJS;background:none}.x-tool-minimize:before{content:"\e608"}.x-tool-maximize{font:16px/1 FontAwesome;background:none}.x-tool-maximize:before{content:"\f065"}.x-tool-restore{font:16px/1 FontAwesome;background:none}.x-tool-restore:before{content:"\f066"}.x-tool-toggle{font:16px/1 FontAwesome;background:none}.x-tool-toggle:before{content:"\f077"}.x-panel-collapsed .x-tool-toggle{font:16px/1 FontAwesome;background:none}.x-panel-collapsed .x-tool-toggle:before{content:"\f078"}.x-tool-gear{font:16px/1 FontAwesome;background:none}.x-tool-gear:before{content:"\f013"}.x-tool-prev{font:16px/1 FontAwesome;background:none}.x-tool-prev:before{content:"\f053"}.x-tool-next{font:16px/1 FontAwesome;background:none}.x-tool-next:before{content:"\f054"}.x-tool-pin{font:16px/1 FontAwesome;background:none}.x-tool-pin:before{content:"\f08d"}.x-tool-unpin{font:16px/1 ExtJS;background:none}.x-tool-unpin:before{content:"\e611"}.x-tool-right{font:16px/1 FontAwesome;background:none}.x-tool-right:before{content:"\f0da"}.x-tool-left{font:16px/1 FontAwesome;background:none}.x-tool-left:before{content:"\f0d9"}.x-tool-down{font:16px/1 FontAwesome;background:none}.x-tool-down:before{content:"\f0d7"}.x-tool-up{font:16px/1 FontAwesome;background:none}.x-tool-up:before{content:"\f0d8"}.x-tool-refresh{font:16px/1 FontAwesome;background:none}.x-tool-refresh:before{content:"\f021"}.x-tool-plus{font:16px/1 FontAwesome;background:none}.x-tool-plus:before{content:"\f067"}.x-tool-minus{font:16px/1 FontAwesome;background:none}.x-tool-minus:before{content:"\f068"}.x-tool-search{font:16px/1 FontAwesome;background:none}.x-tool-search:before{content:"\f002"}.x-tool-save{font:16px/1 FontAwesome;background:none}.x-tool-save:before{content:"\f00c"}.x-tool-help{font:16px/1 FontAwesome;background:none}.x-tool-help:before{content:"\f128"}.x-tool-print{font:16px/1 FontAwesome;background:none}.x-tool-print:before{content:"\f02f"}.x-tool-expand{font:16px/1 ExtJS;background:none}.x-tool-expand:before{content:"\e606"}.x-tool-collapse{font:16px/1 ExtJS;background:none}.x-tool-collapse:before{content:"\e600"}.x-tool-resize{font:16px/1 FontAwesome;background:none}.x-tool-resize:before{content:"\f07e"}.x-tool-move{font:16px/1 FontAwesome;background:none}.x-tool-move:before{content:"\f047"}.x-tool-expand-bottom{font:16px/1 FontAwesome;background:none}.x-tool-expand-bottom:before{content:"\f0d7"}.x-tool-collapse-bottom{font:16px/1 FontAwesome;background:none}.x-tool-collapse-bottom:before{content:"\f0d7"}.x-tool-expand-top{font:16px/1 FontAwesome;background:none}.x-tool-expand-top:before{content:"\f0d8"}.x-tool-collapse-top{font:16px/1 FontAwesome;background:none}.x-tool-collapse-top:before{content:"\f0d8"}.x-tool-expand-left{font:16px/1 FontAwesome;background:none}.x-tool-expand-left:before{content:"\f0d9"}.x-tool-collapse-left{font:16px/1 FontAwesome;background:none}.x-tool-collapse-left:before{content:"\f0d9"}.x-tool-expand-right{font:16px/1 FontAwesome;background:none}.x-tool-expand-right:before{content:"\f0da"}.x-tool-collapse-right{font:16px/1 FontAwesome;background:none}.x-tool-collapse-right:before{content:"\f0da"}.x-header-draggable,.x-header-ghost{cursor:move}.x-header-text{white-space:nowrap}.x-collapse-el{cursor:pointer;color:#919191;display:table;table-layout:fixed;background-color:#e0e0e0}.x-collapse-el:before{display:table-cell;vertical-align:middle;text-align:center}.x-layout-split-left{font:16px/1 FontAwesome}.x-layout-split-left:before{content:"\f0d9"}.x-layout-split-right{font:16px/1 FontAwesome;padding:0 0 0 2px}.x-layout-split-right:before{content:"\f0da"}.x-layout-split-top{font:16px/1 FontAwesome;padding:0 0 2px 0}.x-layout-split-top:before{content:"\f0d8"}.x-layout-split-bottom{font:16px/1 FontAwesome}.x-layout-split-bottom:before{content:"\f0d7"}.x-splitter-collapsed .x-layout-split-left{font:16px/1 FontAwesome;padding:0 0 0 2px}.x-splitter-collapsed .x-layout-split-left:before{content:"\f0da"}.x-splitter-collapsed .x-layout-split-right{font:16px/1 FontAwesome}.x-splitter-collapsed .x-layout-split-right:before{content:"\f0d9"}.x-splitter-collapsed .x-layout-split-top{font:16px/1 FontAwesome}.x-splitter-collapsed .x-layout-split-top:before{content:"\f0d7"}.x-splitter-collapsed .x-layout-split-bottom{font:16px/1 FontAwesome;padding:0 0 2px 0}.x-splitter-collapsed .x-layout-split-bottom:before{content:"\f0d8"}.x-splitter-active{background-color:#b4b4b4;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-splitter-active .x-collapse-el{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3}.x-layout-split-left,.x-layout-split-right{top:50%;margin-top:-24px;width:10px;height:48px}.x-layout-split-top,.x-layout-split-bottom{left:50%;width:48px;height:10px;margin-left:-24px}.x-layout-split-top:before,.x-layout-split-bottom:before{width:100%;line-height:10px}.x-splitter-focus:after{position:absolute;content:' ';top:1px;right:1px;bottom:1px;left:1px;border:1px solid #4c82b1;pointer-events:none}.x-toolbar-default{padding:6px 0 6px 8px;border-style:solid;border-color:#d0d0d0;border-width:1px;background-image:none;background-color:#fff}.x-toolbar-default .x-tool-img{color:#919191;background-color:#fff}.x-toolbar-default .x-toolbar-item{margin:0 8px 0 0}.x-toolbar-default .x-toolbar-separator-horizontal{margin:0 8px 0 0;height:14px;border-style:solid;border-width:0 0 0 1px;border-left-color:#d0d0d0;border-right-color:#fff}.x-toolbar-default .x-box-menu-after{margin:0 8px}.x-toolbar-default-vertical{padding:6px 8px 0}.x-toolbar-default-vertical .x-toolbar-item{margin:0 0 6px 0}.x-toolbar-default-vertical .x-toolbar-separator-vertical{margin:0 5px 6px;border-style:solid none;border-width:1px 0 0;border-top-color:#d0d0d0;border-bottom-color:#fff}.x-toolbar-default-vertical .x-box-menu-after{margin:6px 0}.x-toolbar-text-default{padding:0 4px;color:#4b4c4c;font:300 13px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif}.x-toolbar-spacer-default{width:2px}.x-toolbar-default-scroller .x-box-scroller-body-horizontal{margin-left:24px}.x-toolbar-default-vertical-scroller .x-box-scroller-body-vertical{margin-top:26px}.x-box-scroller-toolbar-default{cursor:pointer;color:#919191;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-box-scroller-toolbar-default.x-box-scroller-hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-box-scroller-toolbar-default.x-box-scroller-pressed{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-box-scroller-toolbar-default.x-box-scroller-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";opacity:0.25;cursor:default}.x-box-scroller-toolbar-default.x-box-scroller-left,.x-box-scroller-toolbar-default.x-box-scroller-right{width:24px;height:24px;top:50%;margin-top:-12px}.x-box-scroller-toolbar-default.x-box-scroller-left{margin-left:4px;margin-right:4px;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-toolbar-default.x-box-scroller-left:before{content:"\f053"}.x-box-scroller-toolbar-default.x-box-scroller-right{margin-left:4px;margin-right:4px;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-toolbar-default.x-box-scroller-right:before{content:"\f054"}.x-box-scroller-toolbar-default.x-box-scroller-top,.x-box-scroller-toolbar-default.x-box-scroller-bottom{height:24px;width:24px;left:50%;margin-left:-12px}.x-box-scroller-toolbar-default.x-box-scroller-top{margin-top:4px;margin-right:0;margin-bottom:4px;font:16px/24px FontAwesome}.x-box-scroller-toolbar-default.x-box-scroller-top:before{content:"\f077"}.x-box-scroller-toolbar-default.x-box-scroller-bottom{margin-top:4px;margin-right:0;margin-bottom:4px;font:16px/24px FontAwesome}.x-box-scroller-toolbar-default.x-box-scroller-bottom:before{content:"\f078"}.x-ie8 .x-box-scroller-toolbar-default{background-color:#fff}.x-toolbar-footer{padding:6px 0 6px 6px;border-style:solid;border-color:#d0d0d0;border-width:0;background-image:none;background-color:#ececec}.x-toolbar-footer .x-tool-img{color:#919191;background-color:#ececec}.x-toolbar-footer .x-toolbar-item{margin:0 6px 0 0}.x-toolbar-footer .x-toolbar-separator-horizontal{margin:0 8px 0 0;height:14px;border-style:solid;border-width:0 0 0 1px;border-left-color:#d0d0d0;border-right-color:#fff}.x-toolbar-footer .x-box-menu-after{margin:0 6px}.x-toolbar-footer-vertical{padding:6px 6px 0}.x-toolbar-footer-vertical .x-toolbar-item{margin:0 0 6px 0}.x-toolbar-footer-vertical .x-toolbar-separator-vertical{margin:0 5px 6px;border-style:solid none;border-width:1px 0 0;border-top-color:#d0d0d0;border-bottom-color:#fff}.x-toolbar-footer-vertical .x-box-menu-after{margin:6px 0}.x-toolbar-text-footer{padding:0 4px;color:#4b4c4c;font:300 13px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif}.x-toolbar-spacer-footer{width:2px}.x-toolbar-footer-scroller .x-box-scroller-body-horizontal{margin-left:26px}.x-toolbar-footer-vertical-scroller .x-box-scroller-body-vertical{margin-top:26px}.x-box-scroller-toolbar-footer{cursor:pointer;color:#919191;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-box-scroller-toolbar-footer.x-box-scroller-hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8}.x-box-scroller-toolbar-footer.x-box-scroller-pressed{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-box-scroller-toolbar-footer.x-box-scroller-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";opacity:0.25;cursor:default}.x-box-scroller-toolbar-footer.x-box-scroller-left,.x-box-scroller-toolbar-footer.x-box-scroller-right{width:24px;height:24px;top:50%;margin-top:-12px}.x-box-scroller-toolbar-footer.x-box-scroller-left{margin-left:4px;margin-right:4px;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-toolbar-footer.x-box-scroller-left:before{content:"\f053"}.x-box-scroller-toolbar-footer.x-box-scroller-right{margin-left:4px;margin-right:4px;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-toolbar-footer.x-box-scroller-right:before{content:"\f054"}.x-ie8 .x-box-scroller-toolbar-footer{background-color:#ececec}.x-dd-drag-proxy{color:#404040;font:300 13px/17px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;border:1px solid #d0d0d0;background-color:#fff}.x-dd-drag-ghost,.x-dd-drop-icon{padding:5px}.x-dd-drag-ghost{padding-left:0}.x-dd-drop-ok .x-dd-drop-icon{font:16px/1 FontAwesome;color:#a4cf6d}.x-dd-drop-ok .x-dd-drop-icon:before{content:"\f058"}.x-dd-drop-ok-add .x-dd-drop-icon{font:16px/1 FontAwesome;color:#a4cf6d}.x-dd-drop-ok-add .x-dd-drop-icon:before{content:"\f058"}.x-dd-drop-nodrop div.x-dd-drop-icon{font:16px/1 FontAwesome;color:#d9705d}.x-dd-drop-nodrop div.x-dd-drop-icon:before{content:"\f057"}.x-panel-ghost{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-panel-default{border-color:#5fa2dd;padding:0}.x-panel-header-default{font-size:16px;border:1px solid #5fa2dd}.x-panel-header-default .x-tool-img{background-color:#5fa2dd}.x-panel-header-default-horizontal{padding:11px 15px 12px}.x-panel-header-default-horizontal .x-panel-header-default-tab-bar{margin-top:-11px;margin-bottom:-12px}.x-panel-header-default-horizontal.x-header-noborder{padding:12px 16px 12px 16px}.x-panel-header-default-horizontal.x-header-noborder .x-panel-header-default-tab-bar{margin-top:-12px;margin-bottom:-12px}.x-panel-header-default-vertical{padding:15px 11px 15px 12px}.x-panel-header-default-vertical .x-panel-header-default-tab-bar{margin-right:-11px;margin-left:-12px}.x-panel-header-default-vertical.x-header-noborder{padding:16px 12px 16px 12px}.x-panel-header-default-vertical.x-header-noborder .x-panel-header-default-tab-bar{margin-right:-12px;margin-left:-12px}.x-panel-header-title-default{color:#f0f0f0;font-size:16px;font-weight:400;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;line-height:20px}.x-panel-header-title-default > .x-title-text-default{text-transform:none;padding:0}.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-top{height:24px;padding-bottom:8px}.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-right{width:24px;padding-left:8px}.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-bottom{height:24px;padding-top:8px}.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-left{width:24px;padding-right:8px}.x-panel-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default{width:16px;height:16px;font-size:16px;color:#f0f0f0;background-position:center center}.x-ie8 .x-panel-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default{color:#f0f0f0}.x-panel-body-default{background:#fff;border-color:#d0d0d0;color:#404040;font-size:13px;font-weight:300;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;border-width:1px;border-style:solid}.x-panel-header-default{background-image:none;background-color:#5fa2dd}.x-panel-header-default-vertical{background-image:none;background-color:#5fa2dd}.x-panel .x-panel-header-default-collapsed-border-top{border-bottom-width:1px !important}.x-panel .x-panel-header-default-collapsed-border-right{border-left-width:1px !important}.x-panel .x-panel-header-default-collapsed-border-bottom{border-top-width:1px !important}.x-panel .x-panel-header-default-collapsed-border-left{border-right-width:1px !important}.x-panel-header-default-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-panel-header-default-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-panel-header-default-vertical .x-tool-after-title{margin:6px 0 0 0}.x-panel-header-default-vertical .x-tool-before-title{margin:0 0 6px 0}.x-panel-header-default .x-tool-focus{outline:1px solid #fff;outline-offset:1px}.x-ie8 .x-panel-header-default .x-tool-focus{outline:none}.x-ie8 .x-panel-header-default .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #fff;pointer-events:none}.x-panel-default-resizable .x-panel-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-panel-default-outer-border-l{border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-outer-border-b{border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-default-outer-border-bl{border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-outer-border-r{border-right-color:#5fa2dd !important;border-right-width:1px !important}.x-panel-default-outer-border-rl{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-outer-border-rb{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-default-outer-border-rbl{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-outer-border-t{border-top-color:#5fa2dd !important;border-top-width:1px !important}.x-panel-default-outer-border-tl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-outer-border-tb{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-default-outer-border-tbl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-outer-border-tr{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important}.x-panel-default-outer-border-trl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-outer-border-trb{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-default-outer-border-trbl{border-color:#5fa2dd !important;border-width:1px !important}.x-panel-default-framed{border-color:#5fa2dd;padding:0}.x-panel-header-default-framed{font-size:16px;border:2px solid #5fa2dd}.x-panel-header-default-framed .x-tool-img{background-color:#5fa2dd}.x-panel-header-default-framed-horizontal{padding:10px 14px 10px 14px}.x-panel-header-default-framed-horizontal .x-panel-header-default-framed-tab-bar{margin-top:-10px;margin-bottom:-10px}.x-panel-header-default-framed-horizontal.x-header-noborder{padding:12px 16px 10px 16px}.x-panel-header-default-framed-horizontal.x-header-noborder .x-panel-header-default-framed-tab-bar{margin-top:-12px;margin-bottom:-10px}.x-panel-header-default-framed-vertical{padding:14px 10px 14px 10px}.x-panel-header-default-framed-vertical .x-panel-header-default-framed-tab-bar{margin-right:-10px;margin-left:-10px}.x-panel-header-default-framed-vertical.x-header-noborder{padding:16px 12px 16px 10px}.x-panel-header-default-framed-vertical.x-header-noborder .x-panel-header-default-framed-tab-bar{margin-right:-12px;margin-left:-10px}.x-panel-header-title-default-framed{color:#f0f0f0;font-size:16px;font-weight:400;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;line-height:20px}.x-panel-header-title-default-framed > .x-title-text-default-framed{text-transform:none;padding:0}.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-top{height:24px;padding-bottom:8px}.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-right{width:24px;padding-left:8px}.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-bottom{height:24px;padding-top:8px}.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-left{width:24px;padding-right:8px}.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed > .x-title-icon-default-framed{width:16px;height:16px;font-size:16px;color:#f0f0f0;background-position:center center}.x-ie8 .x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed > .x-title-icon-default-framed{color:#f0f0f0}.x-panel-body-default-framed{background:#fff;border-color:#d0d0d0;color:#404040;font-size:13px;font-weight:300;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;border-width:1px;border-style:solid}.x-panel-default-framed{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:0 0 0 0;border-width:2px;border-style:solid;background-color:#fff}.x-panel-default-framed-mc{background-color:#fff}.x-nbr .x-panel-default-framed{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-default-framed-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-0px-0px-0px-0px}.x-panel-default-framed-tl{background-position:0 -4px}.x-panel-default-framed-tr{background-position:right -6px}.x-panel-default-framed-bl{background-position:0 -8px}.x-panel-default-framed-br{background-position:right -10px}.x-panel-default-framed-ml{background-position:0 top}.x-panel-default-framed-mr{background-position:right top}.x-panel-default-framed-tc{background-position:0 0}.x-panel-default-framed-bc{background-position:0 -2px}.x-panel-default-framed-tr,.x-panel-default-framed-br,.x-panel-default-framed-mr{padding-right:2px}.x-panel-default-framed-tl,.x-panel-default-framed-bl,.x-panel-default-framed-ml{padding-left:2px}.x-panel-default-framed-tc{height:2px}.x-panel-default-framed-bc{height:2px}.x-panel-default-framed-tl,.x-panel-default-framed-bl,.x-panel-default-framed-tr,.x-panel-default-framed-br,.x-panel-default-framed-tc,.x-panel-default-framed-bc,.x-panel-default-framed-ml,.x-panel-default-framed-mr{background-image:url(images/panel/panel-default-framed-corners.gif)}.x-panel-default-framed-ml,.x-panel-default-framed-mr{background-image:url(images/panel/panel-default-framed-sides.gif);background-repeat:repeat-y}.x-panel-default-framed-mc{padding:0px 0px 0px 0px}.x-panel-header-default-framed-top{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:2px 2px 0 2px;border-style:solid;background-color:#5fa2dd}.x-panel-header-default-framed-top-mc{background-color:#5fa2dd}.x-nbr .x-panel-header-default-framed-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-top-frameInfo{font-family:dh-2-2-0-2-2-2-0-2-10-14-10-14}.x-panel-header-default-framed-top-tl{background-position:0 -4px}.x-panel-header-default-framed-top-tr{background-position:right -6px}.x-panel-header-default-framed-top-bl{background-position:0 -8px}.x-panel-header-default-framed-top-br{background-position:right -10px}.x-panel-header-default-framed-top-ml{background-position:0 top}.x-panel-header-default-framed-top-mr{background-position:right top}.x-panel-header-default-framed-top-tc{background-position:0 0}.x-panel-header-default-framed-top-bc{background-position:0 -2px}.x-panel-header-default-framed-top-tr,.x-panel-header-default-framed-top-br,.x-panel-header-default-framed-top-mr{padding-right:2px}.x-panel-header-default-framed-top-tl,.x-panel-header-default-framed-top-bl,.x-panel-header-default-framed-top-ml{padding-left:2px}.x-panel-header-default-framed-top-tc{height:2px}.x-panel-header-default-framed-top-bc{height:0}.x-panel-header-default-framed-top-tl,.x-panel-header-default-framed-top-bl,.x-panel-header-default-framed-top-tr,.x-panel-header-default-framed-top-br,.x-panel-header-default-framed-top-tc,.x-panel-header-default-framed-top-bc,.x-panel-header-default-framed-top-ml,.x-panel-header-default-framed-top-mr{background-image:url(images/panel-header/panel-header-default-framed-top-corners.gif)}.x-panel-header-default-framed-top-ml,.x-panel-header-default-framed-top-mr{background-image:url(images/panel-header/panel-header-default-framed-top-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-top-mc{padding:10px 14px 10px 14px}.x-panel-header-default-framed-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px 2px 2px 0;border-style:solid;background-color:#5fa2dd}.x-panel-header-default-framed-right-mc{background-color:#5fa2dd}.x-nbr .x-panel-header-default-framed-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-right-frameInfo{font-family:dh-2-2-2-0-2-2-2-0-14-10-14-10}.x-panel-header-default-framed-right-tl{background-position:0 -4px}.x-panel-header-default-framed-right-tr{background-position:right -6px}.x-panel-header-default-framed-right-bl{background-position:0 -8px}.x-panel-header-default-framed-right-br{background-position:right -10px}.x-panel-header-default-framed-right-ml{background-position:right 0}.x-panel-header-default-framed-right-mr{background-position:right 0}.x-panel-header-default-framed-right-tc{background-position:0 0}.x-panel-header-default-framed-right-bc{background-position:0 -2px}.x-panel-header-default-framed-right-tr,.x-panel-header-default-framed-right-br,.x-panel-header-default-framed-right-mr{padding-right:2px}.x-panel-header-default-framed-right-tl,.x-panel-header-default-framed-right-bl,.x-panel-header-default-framed-right-ml{padding-left:0}.x-panel-header-default-framed-right-tc{height:2px}.x-panel-header-default-framed-right-bc{height:2px}.x-panel-header-default-framed-right-tl,.x-panel-header-default-framed-right-bl,.x-panel-header-default-framed-right-tr,.x-panel-header-default-framed-right-br,.x-panel-header-default-framed-right-tc,.x-panel-header-default-framed-right-bc,.x-panel-header-default-framed-right-ml,.x-panel-header-default-framed-right-mr{background-image:url(images/panel-header/panel-header-default-framed-right-corners.gif)}.x-panel-header-default-framed-right-ml,.x-panel-header-default-framed-right-mr{background-image:url(images/panel-header/panel-header-default-framed-right-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-right-mc{padding:14px 10px 14px 10px}.x-panel-header-default-framed-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:0 2px 2px 2px;border-style:solid;background-color:#5fa2dd}.x-panel-header-default-framed-bottom-mc{background-color:#5fa2dd}.x-nbr .x-panel-header-default-framed-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-bottom-frameInfo{font-family:dh-0-2-2-2-0-2-2-2-10-14-10-14}.x-panel-header-default-framed-bottom-tl{background-position:0 -4px}.x-panel-header-default-framed-bottom-tr{background-position:right -6px}.x-panel-header-default-framed-bottom-bl{background-position:0 -8px}.x-panel-header-default-framed-bottom-br{background-position:right -10px}.x-panel-header-default-framed-bottom-ml{background-position:0 bottom}.x-panel-header-default-framed-bottom-mr{background-position:right bottom}.x-panel-header-default-framed-bottom-tc{background-position:0 0}.x-panel-header-default-framed-bottom-bc{background-position:0 -2px}.x-panel-header-default-framed-bottom-tr,.x-panel-header-default-framed-bottom-br,.x-panel-header-default-framed-bottom-mr{padding-right:2px}.x-panel-header-default-framed-bottom-tl,.x-panel-header-default-framed-bottom-bl,.x-panel-header-default-framed-bottom-ml{padding-left:2px}.x-panel-header-default-framed-bottom-tc{height:0}.x-panel-header-default-framed-bottom-bc{height:2px}.x-panel-header-default-framed-bottom-tl,.x-panel-header-default-framed-bottom-bl,.x-panel-header-default-framed-bottom-tr,.x-panel-header-default-framed-bottom-br,.x-panel-header-default-framed-bottom-tc,.x-panel-header-default-framed-bottom-bc,.x-panel-header-default-framed-bottom-ml,.x-panel-header-default-framed-bottom-mr{background-image:url(images/panel-header/panel-header-default-framed-bottom-corners.gif)}.x-panel-header-default-framed-bottom-ml,.x-panel-header-default-framed-bottom-mr{background-image:url(images/panel-header/panel-header-default-framed-bottom-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-bottom-mc{padding:10px 14px 10px 14px}.x-panel-header-default-framed-left{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px 0 2px 2px;border-style:solid;background-color:#5fa2dd}.x-panel-header-default-framed-left-mc{background-color:#5fa2dd}.x-nbr .x-panel-header-default-framed-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-left-frameInfo{font-family:dh-2-0-2-2-2-0-2-2-14-10-14-10}.x-panel-header-default-framed-left-tl{background-position:0 -4px}.x-panel-header-default-framed-left-tr{background-position:right -6px}.x-panel-header-default-framed-left-bl{background-position:0 -8px}.x-panel-header-default-framed-left-br{background-position:right -10px}.x-panel-header-default-framed-left-ml{background-position:left 0}.x-panel-header-default-framed-left-mr{background-position:left 0}.x-panel-header-default-framed-left-tc{background-position:0 0}.x-panel-header-default-framed-left-bc{background-position:0 -2px}.x-panel-header-default-framed-left-tr,.x-panel-header-default-framed-left-br,.x-panel-header-default-framed-left-mr{padding-right:0}.x-panel-header-default-framed-left-tl,.x-panel-header-default-framed-left-bl,.x-panel-header-default-framed-left-ml{padding-left:2px}.x-panel-header-default-framed-left-tc{height:2px}.x-panel-header-default-framed-left-bc{height:2px}.x-panel-header-default-framed-left-tl,.x-panel-header-default-framed-left-bl,.x-panel-header-default-framed-left-tr,.x-panel-header-default-framed-left-br,.x-panel-header-default-framed-left-tc,.x-panel-header-default-framed-left-bc,.x-panel-header-default-framed-left-ml,.x-panel-header-default-framed-left-mr{background-image:url(images/panel-header/panel-header-default-framed-left-corners.gif)}.x-panel-header-default-framed-left-ml,.x-panel-header-default-framed-left-mr{background-image:url(images/panel-header/panel-header-default-framed-left-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-left-mc{padding:14px 10px 14px 10px}.x-panel-header-default-framed-collapsed-top{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:2px;border-style:solid;background-color:#5fa2dd}.x-panel-header-default-framed-collapsed-top-mc{background-color:#5fa2dd}.x-nbr .x-panel-header-default-framed-collapsed-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-collapsed-top-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-10-14-10-14}.x-panel-header-default-framed-collapsed-top-tl{background-position:0 -4px}.x-panel-header-default-framed-collapsed-top-tr{background-position:right -6px}.x-panel-header-default-framed-collapsed-top-bl{background-position:0 -8px}.x-panel-header-default-framed-collapsed-top-br{background-position:right -10px}.x-panel-header-default-framed-collapsed-top-ml{background-position:0 top}.x-panel-header-default-framed-collapsed-top-mr{background-position:right top}.x-panel-header-default-framed-collapsed-top-tc{background-position:0 0}.x-panel-header-default-framed-collapsed-top-bc{background-position:0 -2px}.x-panel-header-default-framed-collapsed-top-tr,.x-panel-header-default-framed-collapsed-top-br,.x-panel-header-default-framed-collapsed-top-mr{padding-right:2px}.x-panel-header-default-framed-collapsed-top-tl,.x-panel-header-default-framed-collapsed-top-bl,.x-panel-header-default-framed-collapsed-top-ml{padding-left:2px}.x-panel-header-default-framed-collapsed-top-tc{height:2px}.x-panel-header-default-framed-collapsed-top-bc{height:2px}.x-panel-header-default-framed-collapsed-top-tl,.x-panel-header-default-framed-collapsed-top-bl,.x-panel-header-default-framed-collapsed-top-tr,.x-panel-header-default-framed-collapsed-top-br,.x-panel-header-default-framed-collapsed-top-tc,.x-panel-header-default-framed-collapsed-top-bc,.x-panel-header-default-framed-collapsed-top-ml,.x-panel-header-default-framed-collapsed-top-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-top-corners.gif)}.x-panel-header-default-framed-collapsed-top-ml,.x-panel-header-default-framed-collapsed-top-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-top-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-collapsed-top-mc{padding:10px 14px 10px 14px}.x-panel-header-default-framed-collapsed-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px;border-style:solid;background-color:#5fa2dd}.x-panel-header-default-framed-collapsed-right-mc{background-color:#5fa2dd}.x-nbr .x-panel-header-default-framed-collapsed-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-collapsed-right-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-14-10-14-10}.x-panel-header-default-framed-collapsed-right-tl{background-position:0 -4px}.x-panel-header-default-framed-collapsed-right-tr{background-position:right -6px}.x-panel-header-default-framed-collapsed-right-bl{background-position:0 -8px}.x-panel-header-default-framed-collapsed-right-br{background-position:right -10px}.x-panel-header-default-framed-collapsed-right-ml{background-position:right 0}.x-panel-header-default-framed-collapsed-right-mr{background-position:right 0}.x-panel-header-default-framed-collapsed-right-tc{background-position:0 0}.x-panel-header-default-framed-collapsed-right-bc{background-position:0 -2px}.x-panel-header-default-framed-collapsed-right-tr,.x-panel-header-default-framed-collapsed-right-br,.x-panel-header-default-framed-collapsed-right-mr{padding-right:2px}.x-panel-header-default-framed-collapsed-right-tl,.x-panel-header-default-framed-collapsed-right-bl,.x-panel-header-default-framed-collapsed-right-ml{padding-left:2px}.x-panel-header-default-framed-collapsed-right-tc{height:2px}.x-panel-header-default-framed-collapsed-right-bc{height:2px}.x-panel-header-default-framed-collapsed-right-tl,.x-panel-header-default-framed-collapsed-right-bl,.x-panel-header-default-framed-collapsed-right-tr,.x-panel-header-default-framed-collapsed-right-br,.x-panel-header-default-framed-collapsed-right-tc,.x-panel-header-default-framed-collapsed-right-bc,.x-panel-header-default-framed-collapsed-right-ml,.x-panel-header-default-framed-collapsed-right-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-right-corners.gif)}.x-panel-header-default-framed-collapsed-right-ml,.x-panel-header-default-framed-collapsed-right-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-right-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-collapsed-right-mc{padding:14px 10px 14px 10px}.x-panel-header-default-framed-collapsed-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:2px;border-style:solid;background-color:#5fa2dd}.x-panel-header-default-framed-collapsed-bottom-mc{background-color:#5fa2dd}.x-nbr .x-panel-header-default-framed-collapsed-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-collapsed-bottom-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-10-14-10-14}.x-panel-header-default-framed-collapsed-bottom-tl{background-position:0 -4px}.x-panel-header-default-framed-collapsed-bottom-tr{background-position:right -6px}.x-panel-header-default-framed-collapsed-bottom-bl{background-position:0 -8px}.x-panel-header-default-framed-collapsed-bottom-br{background-position:right -10px}.x-panel-header-default-framed-collapsed-bottom-ml{background-position:0 bottom}.x-panel-header-default-framed-collapsed-bottom-mr{background-position:right bottom}.x-panel-header-default-framed-collapsed-bottom-tc{background-position:0 0}.x-panel-header-default-framed-collapsed-bottom-bc{background-position:0 -2px}.x-panel-header-default-framed-collapsed-bottom-tr,.x-panel-header-default-framed-collapsed-bottom-br,.x-panel-header-default-framed-collapsed-bottom-mr{padding-right:2px}.x-panel-header-default-framed-collapsed-bottom-tl,.x-panel-header-default-framed-collapsed-bottom-bl,.x-panel-header-default-framed-collapsed-bottom-ml{padding-left:2px}.x-panel-header-default-framed-collapsed-bottom-tc{height:2px}.x-panel-header-default-framed-collapsed-bottom-bc{height:2px}.x-panel-header-default-framed-collapsed-bottom-tl,.x-panel-header-default-framed-collapsed-bottom-bl,.x-panel-header-default-framed-collapsed-bottom-tr,.x-panel-header-default-framed-collapsed-bottom-br,.x-panel-header-default-framed-collapsed-bottom-tc,.x-panel-header-default-framed-collapsed-bottom-bc,.x-panel-header-default-framed-collapsed-bottom-ml,.x-panel-header-default-framed-collapsed-bottom-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif)}.x-panel-header-default-framed-collapsed-bottom-ml,.x-panel-header-default-framed-collapsed-bottom-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-collapsed-bottom-mc{padding:10px 14px 10px 14px}.x-panel-header-default-framed-collapsed-left{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px;border-style:solid;background-color:#5fa2dd}.x-panel-header-default-framed-collapsed-left-mc{background-color:#5fa2dd}.x-nbr .x-panel-header-default-framed-collapsed-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-default-framed-collapsed-left-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-14-10-14-10}.x-panel-header-default-framed-collapsed-left-tl{background-position:0 -4px}.x-panel-header-default-framed-collapsed-left-tr{background-position:right -6px}.x-panel-header-default-framed-collapsed-left-bl{background-position:0 -8px}.x-panel-header-default-framed-collapsed-left-br{background-position:right -10px}.x-panel-header-default-framed-collapsed-left-ml{background-position:left 0}.x-panel-header-default-framed-collapsed-left-mr{background-position:left 0}.x-panel-header-default-framed-collapsed-left-tc{background-position:0 0}.x-panel-header-default-framed-collapsed-left-bc{background-position:0 -2px}.x-panel-header-default-framed-collapsed-left-tr,.x-panel-header-default-framed-collapsed-left-br,.x-panel-header-default-framed-collapsed-left-mr{padding-right:2px}.x-panel-header-default-framed-collapsed-left-tl,.x-panel-header-default-framed-collapsed-left-bl,.x-panel-header-default-framed-collapsed-left-ml{padding-left:2px}.x-panel-header-default-framed-collapsed-left-tc{height:2px}.x-panel-header-default-framed-collapsed-left-bc{height:2px}.x-panel-header-default-framed-collapsed-left-tl,.x-panel-header-default-framed-collapsed-left-bl,.x-panel-header-default-framed-collapsed-left-tr,.x-panel-header-default-framed-collapsed-left-br,.x-panel-header-default-framed-collapsed-left-tc,.x-panel-header-default-framed-collapsed-left-bc,.x-panel-header-default-framed-collapsed-left-ml,.x-panel-header-default-framed-collapsed-left-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-left-corners.gif)}.x-panel-header-default-framed-collapsed-left-ml,.x-panel-header-default-framed-collapsed-left-mr{background-image:url(images/panel-header/panel-header-default-framed-collapsed-left-sides.gif);background-repeat:repeat-y}.x-panel-header-default-framed-collapsed-left-mc{padding:14px 10px 14px 10px}.x-panel .x-panel-header-default-framed-top{border-bottom-width:2px !important}.x-panel .x-panel-header-default-framed-right{border-left-width:2px !important}.x-panel .x-panel-header-default-framed-bottom{border-top-width:2px !important}.x-panel .x-panel-header-default-framed-left{border-right-width:2px !important}.x-nbr .x-panel-header-default-framed-collapsed-top{border-bottom-width:0 !important}.x-nbr .x-panel-header-default-framed-collapsed-right{border-left-width:0 !important}.x-nbr .x-panel-header-default-framed-collapsed-bottom{border-top-width:0 !important}.x-nbr .x-panel-header-default-framed-collapsed-left{border-right-width:0 !important}.x-panel-header-default-framed-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-panel-header-default-framed-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-panel-header-default-framed-vertical .x-tool-after-title{margin:6px 0 0 0}.x-panel-header-default-framed-vertical .x-tool-before-title{margin:0 0 6px 0}.x-panel-header-default-framed .x-tool-focus{outline:1px solid #fff;outline-offset:1px}.x-ie8 .x-panel-header-default-framed .x-tool-focus{outline:none}.x-ie8 .x-panel-header-default-framed .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #fff;pointer-events:none}.x-panel-default-framed-resizable .x-panel-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-panel-default-framed-outer-border-l{border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-b{border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-default-framed-outer-border-bl{border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-r{border-right-color:#5fa2dd !important;border-right-width:1px !important}.x-panel-default-framed-outer-border-rl{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-rb{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-default-framed-outer-border-rbl{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-t{border-top-color:#5fa2dd !important;border-top-width:1px !important}.x-panel-default-framed-outer-border-tl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-tb{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-default-framed-outer-border-tbl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-tr{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important}.x-panel-default-framed-outer-border-trl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-default-framed-outer-border-trb{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-default-framed-outer-border-trbl{border-color:#5fa2dd !important;border-width:1px !important}.x-window-ghost{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-window-default{border-color:#5fa2dd;-webkit-border-radius:0 0 0 0;-moz-border-radius:0 0 0 0;-ms-border-radius:0 0 0 0;-o-border-radius:0 0 0 0;border-radius:0 0 0 0}.x-window-default{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:0 0 0 0;border-width:2px;border-style:solid;background-color:#fff}.x-window-default-mc{background-color:#fff}.x-nbr .x-window-default{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-default-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-0px-0px-0px-0px}.x-window-default-tl{background-position:0 -4px}.x-window-default-tr{background-position:right -6px}.x-window-default-bl{background-position:0 -8px}.x-window-default-br{background-position:right -10px}.x-window-default-ml{background-position:0 top}.x-window-default-mr{background-position:right top}.x-window-default-tc{background-position:0 0}.x-window-default-bc{background-position:0 -2px}.x-window-default-tr,.x-window-default-br,.x-window-default-mr{padding-right:2px}.x-window-default-tl,.x-window-default-bl,.x-window-default-ml{padding-left:2px}.x-window-default-tc{height:2px}.x-window-default-bc{height:2px}.x-window-default-tl,.x-window-default-bl,.x-window-default-tr,.x-window-default-br,.x-window-default-tc,.x-window-default-bc,.x-window-default-ml,.x-window-default-mr{background-image:url(images/window/window-default-corners.gif)}.x-window-default-ml,.x-window-default-mr{background-image:url(images/window/window-default-sides.gif);background-repeat:repeat-y}.x-window-default-mc{padding:0px 0px 0px 0px}.x-window-body-default{border-color:#5fa2dd;border-width:1px;border-style:solid;background:#fff;color:#000;font-size:13px;font-weight:300;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif}.x-window-header-default{font-size:16px;border-color:#5fa2dd;background-color:#5fa2dd}.x-window-header-default .x-tool-img{background-color:#5fa2dd}.x-window-header-default-horizontal .x-window-header-default-tab-bar{margin-top:-10px;margin-bottom:-10px}.x-window-header-default-vertical .x-window-header-default-tab-bar{margin-right:-10px;margin-left:-10px}.x-window-header-title-default{color:#f0f0f0;font-size:16px;font-weight:400;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;line-height:20px}.x-window-header-title-default > .x-title-text-default{padding:0;text-transform:none}.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-top{height:24px;padding-bottom:8px}.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-right{width:24px;padding-left:8px}.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-bottom{height:24px;padding-top:8px}.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-left{width:24px;padding-right:8px}.x-window-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default{width:16px;height:16px;font-size:16px;color:#f0f0f0;background-position:center center}.x-ie8 .x-window-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default{color:#f0f0f0}.x-window-header-default-top{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:2px 2px 2px 2px;border-style:solid;background-color:#5fa2dd}.x-window-header-default-top-mc{background-color:#5fa2dd}.x-nbr .x-window-header-default-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-top-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-10-14-10-14}.x-window-header-default-top-tl{background-position:0 -4px}.x-window-header-default-top-tr{background-position:right -6px}.x-window-header-default-top-bl{background-position:0 -8px}.x-window-header-default-top-br{background-position:right -10px}.x-window-header-default-top-ml{background-position:0 top}.x-window-header-default-top-mr{background-position:right top}.x-window-header-default-top-tc{background-position:0 0}.x-window-header-default-top-bc{background-position:0 -2px}.x-window-header-default-top-tr,.x-window-header-default-top-br,.x-window-header-default-top-mr{padding-right:2px}.x-window-header-default-top-tl,.x-window-header-default-top-bl,.x-window-header-default-top-ml{padding-left:2px}.x-window-header-default-top-tc{height:2px}.x-window-header-default-top-bc{height:2px}.x-window-header-default-top-tl,.x-window-header-default-top-bl,.x-window-header-default-top-tr,.x-window-header-default-top-br,.x-window-header-default-top-tc,.x-window-header-default-top-bc,.x-window-header-default-top-ml,.x-window-header-default-top-mr{background-image:url(images/window-header/window-header-default-top-corners.gif)}.x-window-header-default-top-ml,.x-window-header-default-top-mr{background-image:url(images/window-header/window-header-default-top-sides.gif);background-repeat:repeat-y}.x-window-header-default-top-mc{padding:10px 14px 10px 14px}.x-window-header-default-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px 2px 2px 2px;border-style:solid;background-color:#5fa2dd}.x-window-header-default-right-mc{background-color:#5fa2dd}.x-nbr .x-window-header-default-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-right-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-14-10-14-10}.x-window-header-default-right-tl{background-position:0 -4px}.x-window-header-default-right-tr{background-position:right -6px}.x-window-header-default-right-bl{background-position:0 -8px}.x-window-header-default-right-br{background-position:right -10px}.x-window-header-default-right-ml{background-position:0 top}.x-window-header-default-right-mr{background-position:right top}.x-window-header-default-right-tc{background-position:0 0}.x-window-header-default-right-bc{background-position:0 -2px}.x-window-header-default-right-tr,.x-window-header-default-right-br,.x-window-header-default-right-mr{padding-right:2px}.x-window-header-default-right-tl,.x-window-header-default-right-bl,.x-window-header-default-right-ml{padding-left:2px}.x-window-header-default-right-tc{height:2px}.x-window-header-default-right-bc{height:2px}.x-window-header-default-right-tl,.x-window-header-default-right-bl,.x-window-header-default-right-tr,.x-window-header-default-right-br,.x-window-header-default-right-tc,.x-window-header-default-right-bc,.x-window-header-default-right-ml,.x-window-header-default-right-mr{background-image:url(images/window-header/window-header-default-right-corners.gif)}.x-window-header-default-right-ml,.x-window-header-default-right-mr{background-image:url(images/window-header/window-header-default-right-sides.gif);background-repeat:repeat-y}.x-window-header-default-right-mc{padding:14px 10px 14px 10px}.x-window-header-default-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:2px 2px 2px 2px;border-style:solid;background-color:#5fa2dd}.x-window-header-default-bottom-mc{background-color:#5fa2dd}.x-nbr .x-window-header-default-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-bottom-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-10-14-10-14}.x-window-header-default-bottom-tl{background-position:0 -4px}.x-window-header-default-bottom-tr{background-position:right -6px}.x-window-header-default-bottom-bl{background-position:0 -8px}.x-window-header-default-bottom-br{background-position:right -10px}.x-window-header-default-bottom-ml{background-position:0 top}.x-window-header-default-bottom-mr{background-position:right top}.x-window-header-default-bottom-tc{background-position:0 0}.x-window-header-default-bottom-bc{background-position:0 -2px}.x-window-header-default-bottom-tr,.x-window-header-default-bottom-br,.x-window-header-default-bottom-mr{padding-right:2px}.x-window-header-default-bottom-tl,.x-window-header-default-bottom-bl,.x-window-header-default-bottom-ml{padding-left:2px}.x-window-header-default-bottom-tc{height:2px}.x-window-header-default-bottom-bc{height:2px}.x-window-header-default-bottom-tl,.x-window-header-default-bottom-bl,.x-window-header-default-bottom-tr,.x-window-header-default-bottom-br,.x-window-header-default-bottom-tc,.x-window-header-default-bottom-bc,.x-window-header-default-bottom-ml,.x-window-header-default-bottom-mr{background-image:url(images/window-header/window-header-default-bottom-corners.gif)}.x-window-header-default-bottom-ml,.x-window-header-default-bottom-mr{background-image:url(images/window-header/window-header-default-bottom-sides.gif);background-repeat:repeat-y}.x-window-header-default-bottom-mc{padding:10px 14px 10px 14px}.x-window-header-default-left{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px 2px 2px 2px;border-style:solid;background-color:#5fa2dd}.x-window-header-default-left-mc{background-color:#5fa2dd}.x-nbr .x-window-header-default-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-left-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-14-10-14-10}.x-window-header-default-left-tl{background-position:0 -4px}.x-window-header-default-left-tr{background-position:right -6px}.x-window-header-default-left-bl{background-position:0 -8px}.x-window-header-default-left-br{background-position:right -10px}.x-window-header-default-left-ml{background-position:0 top}.x-window-header-default-left-mr{background-position:right top}.x-window-header-default-left-tc{background-position:0 0}.x-window-header-default-left-bc{background-position:0 -2px}.x-window-header-default-left-tr,.x-window-header-default-left-br,.x-window-header-default-left-mr{padding-right:2px}.x-window-header-default-left-tl,.x-window-header-default-left-bl,.x-window-header-default-left-ml{padding-left:2px}.x-window-header-default-left-tc{height:2px}.x-window-header-default-left-bc{height:2px}.x-window-header-default-left-tl,.x-window-header-default-left-bl,.x-window-header-default-left-tr,.x-window-header-default-left-br,.x-window-header-default-left-tc,.x-window-header-default-left-bc,.x-window-header-default-left-ml,.x-window-header-default-left-mr{background-image:url(images/window-header/window-header-default-left-corners.gif)}.x-window-header-default-left-ml,.x-window-header-default-left-mr{background-image:url(images/window-header/window-header-default-left-sides.gif);background-repeat:repeat-y}.x-window-header-default-left-mc{padding:14px 10px 14px 10px}.x-window-header-default-collapsed-top{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:2px;border-style:solid;background-color:#5fa2dd}.x-window-header-default-collapsed-top-mc{background-color:#5fa2dd}.x-nbr .x-window-header-default-collapsed-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-collapsed-top-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-10-14-10-14}.x-window-header-default-collapsed-top-tl{background-position:0 -4px}.x-window-header-default-collapsed-top-tr{background-position:right -6px}.x-window-header-default-collapsed-top-bl{background-position:0 -8px}.x-window-header-default-collapsed-top-br{background-position:right -10px}.x-window-header-default-collapsed-top-ml{background-position:0 top}.x-window-header-default-collapsed-top-mr{background-position:right top}.x-window-header-default-collapsed-top-tc{background-position:0 0}.x-window-header-default-collapsed-top-bc{background-position:0 -2px}.x-window-header-default-collapsed-top-tr,.x-window-header-default-collapsed-top-br,.x-window-header-default-collapsed-top-mr{padding-right:2px}.x-window-header-default-collapsed-top-tl,.x-window-header-default-collapsed-top-bl,.x-window-header-default-collapsed-top-ml{padding-left:2px}.x-window-header-default-collapsed-top-tc{height:2px}.x-window-header-default-collapsed-top-bc{height:2px}.x-window-header-default-collapsed-top-tl,.x-window-header-default-collapsed-top-bl,.x-window-header-default-collapsed-top-tr,.x-window-header-default-collapsed-top-br,.x-window-header-default-collapsed-top-tc,.x-window-header-default-collapsed-top-bc,.x-window-header-default-collapsed-top-ml,.x-window-header-default-collapsed-top-mr{background-image:url(images/window-header/window-header-default-collapsed-top-corners.gif)}.x-window-header-default-collapsed-top-ml,.x-window-header-default-collapsed-top-mr{background-image:url(images/window-header/window-header-default-collapsed-top-sides.gif);background-repeat:repeat-y}.x-window-header-default-collapsed-top-mc{padding:10px 14px 10px 14px}.x-window-header-default-collapsed-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px;border-style:solid;background-color:#5fa2dd}.x-window-header-default-collapsed-right-mc{background-color:#5fa2dd}.x-nbr .x-window-header-default-collapsed-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-collapsed-right-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-14-10-14-10}.x-window-header-default-collapsed-right-tl{background-position:0 -4px}.x-window-header-default-collapsed-right-tr{background-position:right -6px}.x-window-header-default-collapsed-right-bl{background-position:0 -8px}.x-window-header-default-collapsed-right-br{background-position:right -10px}.x-window-header-default-collapsed-right-ml{background-position:0 top}.x-window-header-default-collapsed-right-mr{background-position:right top}.x-window-header-default-collapsed-right-tc{background-position:0 0}.x-window-header-default-collapsed-right-bc{background-position:0 -2px}.x-window-header-default-collapsed-right-tr,.x-window-header-default-collapsed-right-br,.x-window-header-default-collapsed-right-mr{padding-right:2px}.x-window-header-default-collapsed-right-tl,.x-window-header-default-collapsed-right-bl,.x-window-header-default-collapsed-right-ml{padding-left:2px}.x-window-header-default-collapsed-right-tc{height:2px}.x-window-header-default-collapsed-right-bc{height:2px}.x-window-header-default-collapsed-right-tl,.x-window-header-default-collapsed-right-bl,.x-window-header-default-collapsed-right-tr,.x-window-header-default-collapsed-right-br,.x-window-header-default-collapsed-right-tc,.x-window-header-default-collapsed-right-bc,.x-window-header-default-collapsed-right-ml,.x-window-header-default-collapsed-right-mr{background-image:url(images/window-header/window-header-default-collapsed-right-corners.gif)}.x-window-header-default-collapsed-right-ml,.x-window-header-default-collapsed-right-mr{background-image:url(images/window-header/window-header-default-collapsed-right-sides.gif);background-repeat:repeat-y}.x-window-header-default-collapsed-right-mc{padding:14px 10px 14px 10px}.x-window-header-default-collapsed-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:2px;border-style:solid;background-color:#5fa2dd}.x-window-header-default-collapsed-bottom-mc{background-color:#5fa2dd}.x-nbr .x-window-header-default-collapsed-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-collapsed-bottom-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-10-14-10-14}.x-window-header-default-collapsed-bottom-tl{background-position:0 -4px}.x-window-header-default-collapsed-bottom-tr{background-position:right -6px}.x-window-header-default-collapsed-bottom-bl{background-position:0 -8px}.x-window-header-default-collapsed-bottom-br{background-position:right -10px}.x-window-header-default-collapsed-bottom-ml{background-position:0 top}.x-window-header-default-collapsed-bottom-mr{background-position:right top}.x-window-header-default-collapsed-bottom-tc{background-position:0 0}.x-window-header-default-collapsed-bottom-bc{background-position:0 -2px}.x-window-header-default-collapsed-bottom-tr,.x-window-header-default-collapsed-bottom-br,.x-window-header-default-collapsed-bottom-mr{padding-right:2px}.x-window-header-default-collapsed-bottom-tl,.x-window-header-default-collapsed-bottom-bl,.x-window-header-default-collapsed-bottom-ml{padding-left:2px}.x-window-header-default-collapsed-bottom-tc{height:2px}.x-window-header-default-collapsed-bottom-bc{height:2px}.x-window-header-default-collapsed-bottom-tl,.x-window-header-default-collapsed-bottom-bl,.x-window-header-default-collapsed-bottom-tr,.x-window-header-default-collapsed-bottom-br,.x-window-header-default-collapsed-bottom-tc,.x-window-header-default-collapsed-bottom-bc,.x-window-header-default-collapsed-bottom-ml,.x-window-header-default-collapsed-bottom-mr{background-image:url(images/window-header/window-header-default-collapsed-bottom-corners.gif)}.x-window-header-default-collapsed-bottom-ml,.x-window-header-default-collapsed-bottom-mr{background-image:url(images/window-header/window-header-default-collapsed-bottom-sides.gif);background-repeat:repeat-y}.x-window-header-default-collapsed-bottom-mc{padding:10px 14px 10px 14px}.x-window-header-default-collapsed-left{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px;border-style:solid;background-color:#5fa2dd}.x-window-header-default-collapsed-left-mc{background-color:#5fa2dd}.x-nbr .x-window-header-default-collapsed-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-window-header-default-collapsed-left-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-14-10-14-10}.x-window-header-default-collapsed-left-tl{background-position:0 -4px}.x-window-header-default-collapsed-left-tr{background-position:right -6px}.x-window-header-default-collapsed-left-bl{background-position:0 -8px}.x-window-header-default-collapsed-left-br{background-position:right -10px}.x-window-header-default-collapsed-left-ml{background-position:0 top}.x-window-header-default-collapsed-left-mr{background-position:right top}.x-window-header-default-collapsed-left-tc{background-position:0 0}.x-window-header-default-collapsed-left-bc{background-position:0 -2px}.x-window-header-default-collapsed-left-tr,.x-window-header-default-collapsed-left-br,.x-window-header-default-collapsed-left-mr{padding-right:2px}.x-window-header-default-collapsed-left-tl,.x-window-header-default-collapsed-left-bl,.x-window-header-default-collapsed-left-ml{padding-left:2px}.x-window-header-default-collapsed-left-tc{height:2px}.x-window-header-default-collapsed-left-bc{height:2px}.x-window-header-default-collapsed-left-tl,.x-window-header-default-collapsed-left-bl,.x-window-header-default-collapsed-left-tr,.x-window-header-default-collapsed-left-br,.x-window-header-default-collapsed-left-tc,.x-window-header-default-collapsed-left-bc,.x-window-header-default-collapsed-left-ml,.x-window-header-default-collapsed-left-mr{background-image:url(images/window-header/window-header-default-collapsed-left-corners.gif)}.x-window-header-default-collapsed-left-ml,.x-window-header-default-collapsed-left-mr{background-image:url(images/window-header/window-header-default-collapsed-left-sides.gif);background-repeat:repeat-y}.x-window-header-default-collapsed-left-mc{padding:14px 10px 14px 10px}.x-window-header-default .x-window-header-icon{width:16px;height:16px;color:#f0f0f0;font-size:16px;line-height:16px;background-position:center center}.x-window-header-default .x-window-header-glyph{color:#f0f0f0;font-size:16px;line-height:16px}.x-ie8 .x-window-header-default .x-window-header-glyph{color:#f0f0f0}.x-window-header-default-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-window-header-default-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-window-header-default-vertical .x-tool-after-title{margin:6px 0 0 0}.x-window-header-default-vertical .x-tool-before-title{margin:0 0 6px 0}.x-window-header-default .x-tool-focus{outline:1px solid #fff;outline-offset:1px}.x-ie8 .x-window-header-default .x-tool-focus{outline:none}.x-ie8 .x-window-header-default .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #fff;pointer-events:none}.x-window-header-default{border-width:2px !important}.x-nbr .x-window-default-collapsed .x-window-header{border-width:0 !important}.x-window-default-outer-border-l{border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-window-default-outer-border-b{border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-window-default-outer-border-bl{border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-window-default-outer-border-r{border-right-color:#5fa2dd !important;border-right-width:1px !important}.x-window-default-outer-border-rl{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-window-default-outer-border-rb{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-window-default-outer-border-rbl{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-window-default-outer-border-t{border-top-color:#5fa2dd !important;border-top-width:1px !important}.x-window-default-outer-border-tl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-window-default-outer-border-tb{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-window-default-outer-border-tbl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-window-default-outer-border-tr{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important}.x-window-default-outer-border-trl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-window-default-outer-border-trb{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-window-default-outer-border-trbl{border-color:#5fa2dd !important;border-width:1px !important}.x-window-body-plain{background-color:transparent}.x-form-item-label-default{color:#404040;font:300 13px/17px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;min-height:32px;padding-top:8px;padding-right:5px}.x-ie8 .x-form-item-label-default{min-height:24px}.x-form-item-label-default.x-form-item-label-top{height:1px}.x-form-item-label-default.x-form-item-label-top > .x-form-item-label-inner{padding-top:8px;padding-bottom:5px}.x-form-item-label-default.x-form-item-label-top-side-error:after{width:26px}.x-form-item-body-default{min-height:32px}.x-form-invalid-icon-default{width:16px;height:16px;margin:0 5px;background:url(images/form/exclamation.png) no-repeat}.x-form-invalid-under-default{padding:2px 2px 2px 20px;color:#cf4c35;font:300 13px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;background:no-repeat 0 2px;background-image:url(images/form/exclamation.png)}.x-form-error-wrap-default.x-form-error-wrap-side{width:26px}.x-form-item-default.x-item-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3}.x-autocontainer-form-item,.x-anchor-form-item,.x-vbox-form-item,.x-table-form-item{margin-bottom:10px}.x-form-text-field-body-default{min-width:170px;max-width:170px}.x-form-trigger-wrap-default{border-width:1px;border-style:solid;border-color:#d0d0d0}.x-form-trigger-wrap-default.x-form-trigger-wrap-focus{border-color:#3892d4}.x-form-trigger-wrap-default.x-form-trigger-wrap-invalid{border-color:#cf4c35}.x-form-text-default{color:#404040;padding:5px 10px 4px;background-color:#fff;font:300 13px/21px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;min-height:30px}.x-ie8 .x-form-text-default{min-height:21px}.x-form-text-default.x-form-textarea{line-height:20px;min-height:80px}.x-ie8 .x-form-text-default.x-form-textarea{min-height:71px}.x-form-text-default.x-form-text-file{color:grey}.x-form-empty-field-default{color:grey}.x-form-text-default:-ms-input-placeholder{color:grey}.x-form-invalid-field-default{background-color:#fff}.x-form-trigger-default{width:32px;font:16px/30px FontAwesome;background:#fff;color:#919191}.x-form-trigger-default:before{content:"\f0d7"}.x-form-trigger-default.x-form-trigger-over{background-position:-32px center}.x-form-trigger-default.x-form-trigger-over.x-form-trigger-focus{background-position:-128px center}.x-form-trigger-default.x-form-trigger-focus{background-position:-96px center}.x-form-trigger.x-form-trigger-default.x-form-trigger-click{background-position:-64px center}.x-form-clear-trigger{font-size:16px;font-family:FontAwesome}.x-form-clear-trigger:before{content:"\f00d"}.x-form-search-trigger{font-size:16px;font-family:FontAwesome}.x-form-search-trigger:before{content:"\f002"}.x-message-box .x-window-body{background-color:#fff;border-width:0}.x-message-box-info,.x-message-box-warning,.x-message-box-question,.x-message-box-error{background-position:left top;background-repeat:no-repeat}.x-message-box-icon{height:44px;width:44px;margin-right:10px}.x-message-box-info{font:44px/1 FontAwesome;color:grey}.x-message-box-info:before{content:"\f05a"}.x-message-box-warning{font:44px/1 FontAwesome;color:#f8d400}.x-message-box-warning:before{content:"\f071"}.x-message-box-question{font:44px/1 FontAwesome;color:grey}.x-message-box-question:before{content:"\f059"}.x-message-box-error{font:44px/1 FontAwesome;color:#ee611f}.x-message-box-error:before{content:"\f057"}.x-form-cb-wrap-default{height:32px;min-width:18px}.x-form-cb-default{margin-top:7px}.x-form-checkbox-default,.x-form-radio-default{width:18px;height:18px}.x-form-radio-default{font:18px/1 FontAwesome;color:#919191}.x-form-radio-default:before{content:"\f10c"}.x-form-cb-checked .x-form-radio-default{font:18px/1 FontAwesome}.x-form-cb-checked .x-form-radio-default:before{content:"\f192"}.x-form-checkbox-default{font:18px/1 ExtJS;color:#919191}.x-form-checkbox-default:before{content:"\e614"}.x-form-cb-checked .x-form-checkbox-default{font:18px/1 ExtJS}.x-form-cb-checked .x-form-checkbox-default:before{content:"\e613"}.x-form-checkbox-focus.x-form-radio-default{color:#3892d4}.x-form-checkbox-focus.x-form-checkbox-default{color:#3892d4}.x-form-cb-label-default{margin-top:8px;font:300 Open Sans, Helvetica Neue, helvetica, arial, verdana, sans-serif/17px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif}.x-form-cb-label-default.x-form-cb-label-before{padding-right:22px}.x-form-cb-label-default.x-form-cb-label-after{padding-left:22px}.x-fieldset-default{border:1px solid #d0d0d0;padding:5px 15px 10px 15px;margin:0 0 10px}.x-ie8 .x-fieldset-default{padding-top:0}.x-ie8 .x-fieldset-body-default{padding-top:5px}.x-fieldset-header-default{padding:0 3px 1px;line-height:20px}.x-fieldset-header-default > .x-fieldset-header-text{font:400 16px/20px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#919191;padding:1px 0}.x-fieldset-header-checkbox-default{margin:2px 4px 0 0;line-height:20px}.x-fieldset-header-tool-default{margin:2px 4px 0 0;padding:0}.x-fieldset-header-tool-default > .x-tool-img{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";opacity:0.8;height:15px;width:15px}.x-fieldset-header-tool-default.x-tool-over > .x-tool-img{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";opacity:0.9}.x-fieldset-header-tool-default.x-tool-pressed > .x-tool-img{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-fieldset-header-tool-default > .x-tool-toggle{font:14px/1 FontAwesome;color:#919191}.x-fieldset-header-tool-default > .x-tool-toggle:before{content:"\f146"}.x-fieldset-header-tool-default.x-focus{outline:1px solid red}.x-fieldset-default.x-fieldset-collapsed{border-width:1px 1px 0 1px;border-left-color:transparent;border-right-color:transparent}.x-fieldset-default.x-fieldset-collapsed .x-tool-toggle{font:14px/1 FontAwesome}.x-fieldset-default.x-fieldset-collapsed .x-tool-toggle:before{content:"\f0fe"}.x-form-trigger-spinner-default{width:32px}.x-form-trigger-spinner-default:before{content:''}.x-form-spinner-default{background-color:#fff;width:32px;height:15px;color:#919191}.x-form-spinner-up-default{font:16px/1 ExtJS}.x-form-spinner-up-default:before{content:"\e61c"}.x-form-spinner-down-default{font:16px/1 ExtJS}.x-form-spinner-down-default:before{content:"\e61b"}.x-form-spinner-up-default{background-position:0 0}.x-form-spinner-up-default.x-form-spinner-over{background-position:-32px 0}.x-form-spinner-up-default.x-form-spinner-over.x-form-spinner-focus{background-position:-128px 0}.x-form-spinner-up-default.x-form-spinner-focus{background-position:-96px 0}.x-form-spinner-up-default.x-form-spinner.x-form-spinner-click{background-position:-64px 0}.x-form-spinner-down-default{background-position:0 -15px}.x-form-spinner-down-default.x-form-spinner-over{background-position:-32px -15px}.x-form-spinner-down-default.x-form-spinner-over.x-form-spinner-focus{background-position:-128px -15px}.x-form-spinner-down-default.x-form-spinner-focus{background-position:-96px -15px}.x-form-spinner-down-default.x-form-spinner.x-form-spinner-click{background-position:-64px -15px}.x-tbar-page-number{width:30px}.x-btn-icon-el.x-tbar-page-first{font:16px/16px ExtJS;color:#919191}.x-btn-icon-el.x-tbar-page-first:before{content:"\e617"}.x-btn-icon-el.x-tbar-page-prev{font:16px/16px ExtJS;color:#919191}.x-btn-icon-el.x-tbar-page-prev:before{content:"\e615"}.x-btn-icon-el.x-tbar-page-next{font:16px/16px ExtJS;color:#919191}.x-btn-icon-el.x-tbar-page-next:before{content:"\e616"}.x-btn-icon-el.x-tbar-page-last{font:16px/16px ExtJS;color:#919191}.x-btn-icon-el.x-tbar-page-last:before{content:"\e618"}.x-btn-icon-el.x-tbar-loading{font:16px/16px FontAwesome;color:#919191}.x-btn-icon-el.x-tbar-loading:before{content:"\f021"}.x-boundlist{border-width:1px;border-style:solid;border-color:#d0d0d0;background:#fff}.x-boundlist-item{padding:0 10px;font:normal 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;line-height:30px;cursor:pointer;cursor:hand;position:relative;border-width:1px;border-style:dotted;border-color:#fff;color:#404040}.x-boundlist-selected{color:#fff;background:#5fa2dd;border-color:#5fa2dd}.x-boundlist-item-over{color:#fff;background:#7fb5e4;border-color:#7fb5e4}.x-boundlist-floating{border-top-width:0}.x-boundlist-above{border-top-width:1px;border-bottom-width:1px}.x-datepicker{border-width:1px;border-style:solid;border-color:#d0d0d0;background-color:#fff;width:310px}.x-datepicker-header{padding:0;text-align:center;background-color:#ececec}.x-datepicker-arrow{width:32px;height:44px;top:0px;cursor:pointer;-webkit-touch-callout:none;color:#919191;background-color:#ececec;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";opacity:0.7}div.x-datepicker-arrow:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-datepicker-next{right:0;font:16px/1 FontAwesome}.x-datepicker-next:before{content:"\f101"}.x-datepicker-prev{left:0;font:16px/1 FontAwesome}.x-datepicker-prev:before{content:"\f100"}.x-datepicker-month{background:transparent}.x-datepicker-month .x-btn,.x-datepicker-month .x-btn .x-btn-tc,.x-datepicker-month .x-btn .x-btn-tl,.x-datepicker-month .x-btn .x-btn-tr,.x-datepicker-month .x-btn .x-btn-mc,.x-datepicker-month .x-btn .x-btn-ml,.x-datepicker-month .x-btn .x-btn-mr,.x-datepicker-month .x-btn .x-btn-bc,.x-datepicker-month .x-btn .x-btn-bl,.x-datepicker-month .x-btn .x-btn-br{background:transparent;border-width:0 !important}.x-datepicker-month .x-btn-inner{color:#404040}.x-datepicker-month .x-btn-split-right:after,.x-datepicker-month .x-btn-over .x-btn-split-right:after{content:"\f107";font:16px/1 FontAwesome;color:#606060;background:none;padding:0;text-align:right;width:16px}.x-datepicker-month .x-btn{padding:14px}.x-datepicker-month .x-btn-over{border-color:transparent;background:#dfdfdf}.x-datepicker-month .x-btn.x-btn-pressed{border-color:transparent;background:#d3d3d3}.x-datepicker-month .x-btn-inner{font-size:15px}.x-datepicker-column-header{width:44px;color:#404040;font:400 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;text-align:right;background-color:#ececec}.x-datepicker-column-header-inner{line-height:36px;padding:0 15px 0 0}.x-datepicker-cell{text-align:right;border:0}.x-datepicker-date{padding:0 15px 0 0;font:300 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#404040;cursor:pointer;line-height:36px}div.x-datepicker-date:hover{color:#404040;background-color:#ececec}.x-datepicker-selected{border-style:solid;border-color:#7fb5e4}.x-datepicker-selected div.x-datepicker-date{background-color:#5fa2dd;color:#fff;font-weight:300}.x-datepicker-today{border-color:darkred;border-style:solid;background-color:#bfdaf1}.x-datepicker-prevday .x-datepicker-date,.x-datepicker-nextday .x-datepicker-date{color:#d0d0d0}.x-datepicker-disabled .x-datepicker-date{background-color:#eee;cursor:default;color:silver}.x-datepicker-disabled div.x-datepicker-date:hover{background-color:#eee;color:silver}.x-datepicker-footer,.x-monthpicker-buttons{padding:6px 0;background-color:#fff;text-align:center}.x-datepicker-footer .x-btn,.x-monthpicker-buttons .x-btn{margin:0 3px 0 2px}.x-monthpicker{width:310px;border-width:1px;border-style:solid;border-color:#d0d0d0;background-color:#fff}.x-monthpicker-months{border-width:0 1px 0 0;border-color:#d0d0d0;border-style:solid;width:154px}.x-monthpicker-months .x-monthpicker-item{width:76px}.x-monthpicker-years{width:154px}.x-monthpicker-years .x-monthpicker-item{width:77px}.x-monthpicker-item{margin:5px 0 5px;font:300 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;text-align:center}.x-monthpicker-item-inner{margin:0 5px 0 5px;color:#404040;border:0;line-height:37px;cursor:pointer}a.x-monthpicker-item-inner:hover{color:#404040;background-color:#ececec}.x-monthpicker-item a.x-monthpicker-selected{background-color:#5fa2dd;color:#fff;border-style:solid;border-color:#7fb5e4}.x-monthpicker-yearnav{height:47px}.x-monthpicker-yearnav-button-ct{width:77px}.x-monthpicker-yearnav-button{height:16px;width:16px;cursor:pointer;margin-top:15px;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";opacity:0.7;-webkit-touch-callout:none;color:#919191;background-color:#fff}a.x-monthpicker-yearnav-button:hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-monthpicker-yearnav-next{font:16px/1 FontAwesome}.x-monthpicker-yearnav-next:before{content:"\f101"}.x-monthpicker-yearnav-prev{font:16px/1 FontAwesome}.x-monthpicker-yearnav-prev:before{content:"\f100"}.x-monthpicker-small .x-monthpicker-item{margin:2px 0 2px}.x-monthpicker-small .x-monthpicker-item-inner{margin:0 5px 0 5px}.x-monthpicker-small .x-monthpicker-yearnav{height:41px}.x-monthpicker-small .x-monthpicker-yearnav-button{margin-top:12px}.x-form-date-trigger{font-size:16px;font-family:FontAwesome}.x-form-date-trigger:before{content:"\f073"}.x-tip-anchor{position:absolute;overflow:hidden;height:10px;width:10px;border-style:solid;border-width:5px;border-color:#747474}.x-tip-anchor-top{border-top-color:transparent;border-left-color:transparent;border-right-color:transparent;_border-top-color:pink;_border-left-color:pink;_border-right-color:pink;_filter:chroma(color=pink)}.x-tip-anchor-bottom{border-bottom-color:transparent;border-left-color:transparent;border-right-color:transparent;_border-bottom-color:pink;_border-left-color:pink;_border-right-color:pink;_filter:chroma(color=pink)}.x-tip-anchor-left{border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;_border-top-color:pink;_border-bottom-color:pink;_border-left-color:pink;_filter:chroma(color=pink)}.x-tip-anchor-right{border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;_border-top-color:pink;_border-bottom-color:pink;_border-right-color:pink;_filter:chroma(color=pink)}.x-tip-default{-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;padding:1px 1px 1px 1px;border-width:1px;border-style:solid;background-color:#747474}.x-tip-default-mc{background-color:#747474}.x-nbr .x-tip-default{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tip-default-frameInfo{font-family:th-2-2-2-2-1-1-1-1-1-1-1-1}.x-tip-default-tl{background-position:0 -4px}.x-tip-default-tr{background-position:right -6px}.x-tip-default-bl{background-position:0 -8px}.x-tip-default-br{background-position:right -10px}.x-tip-default-ml{background-position:0 top}.x-tip-default-mr{background-position:right top}.x-tip-default-tc{background-position:0 0}.x-tip-default-bc{background-position:0 -2px}.x-tip-default-tr,.x-tip-default-br,.x-tip-default-mr{padding-right:2px}.x-tip-default-tl,.x-tip-default-bl,.x-tip-default-ml{padding-left:2px}.x-tip-default-tc{height:2px}.x-tip-default-bc{height:2px}.x-tip-default-tl,.x-tip-default-bl,.x-tip-default-tr,.x-tip-default-br,.x-tip-default-tc,.x-tip-default-bc,.x-tip-default-ml,.x-tip-default-mr{background-image:url(images/tip/tip-default-corners.gif)}.x-tip-default-ml,.x-tip-default-mr{background-image:url(images/tip/tip-default-sides.gif);background-repeat:repeat-y}.x-tip-default-mc{padding:0px 0px 0px 0px}.x-tip-default{background-color:#747474;border-color:#747474}.x-tip-default .x-tool-img{background-image:url(images/tools/tool-sprites-dark.png);background-color:#747474}.x-tip-header-default .x-tool-after-title{margin:0 0 0 6px}.x-tip-header-default .x-tool-before-title{margin:0 6px 0 0}.x-tip-header-default{padding:3px 3px 0 3px}.x-tip-header-title-default{color:#f0f0f0;font-size:13px;font-weight:bold}.x-tip-body-default{padding:6px 8px;color:#f0f0f0;font-size:13px;font-weight:300}.x-tip-body-default a{color:#f0f0f0}.x-tip-form-invalid{-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;border-radius:2px;padding:1px 1px 1px 1px;border-width:1px;border-style:solid;background-color:#747474}.x-tip-form-invalid-mc{background-color:#747474}.x-nbr .x-tip-form-invalid{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tip-form-invalid-frameInfo{font-family:th-2-2-2-2-1-1-1-1-1-1-1-1}.x-tip-form-invalid-tl{background-position:0 -4px}.x-tip-form-invalid-tr{background-position:right -6px}.x-tip-form-invalid-bl{background-position:0 -8px}.x-tip-form-invalid-br{background-position:right -10px}.x-tip-form-invalid-ml{background-position:0 top}.x-tip-form-invalid-mr{background-position:right top}.x-tip-form-invalid-tc{background-position:0 0}.x-tip-form-invalid-bc{background-position:0 -2px}.x-tip-form-invalid-tr,.x-tip-form-invalid-br,.x-tip-form-invalid-mr{padding-right:2px}.x-tip-form-invalid-tl,.x-tip-form-invalid-bl,.x-tip-form-invalid-ml{padding-left:2px}.x-tip-form-invalid-tc{height:2px}.x-tip-form-invalid-bc{height:2px}.x-tip-form-invalid-tl,.x-tip-form-invalid-bl,.x-tip-form-invalid-tr,.x-tip-form-invalid-br,.x-tip-form-invalid-tc,.x-tip-form-invalid-bc,.x-tip-form-invalid-ml,.x-tip-form-invalid-mr{background-image:url(images/tip/tip-form-invalid-corners.gif)}.x-tip-form-invalid-ml,.x-tip-form-invalid-mr{background-image:url(images/tip/tip-form-invalid-sides.gif);background-repeat:repeat-y}.x-tip-form-invalid-mc{padding:0px 0px 0px 0px}.x-tip-form-invalid{background-color:#747474;border-color:#747474}.x-tip-form-invalid .x-tool-img{background-image:url(images/tools/tool-sprites-dark.png);background-color:#747474}.x-tip-header-form-invalid .x-tool-after-title{margin:0 0 0 6px}.x-tip-header-form-invalid .x-tool-before-title{margin:0 6px 0 0}.x-tip-header-form-invalid{padding:3px 3px 0 3px}.x-tip-header-title-form-invalid{color:#f0f0f0;font-size:13px;font-weight:bold}.x-tip-body-form-invalid{padding:3px 3px 3px 22px;color:#f0f0f0;font-size:13px;font-weight:300}.x-tip-body-form-invalid a{color:#f0f0f0}.x-tip-body-form-invalid{background:1px 1px no-repeat;background-image:url(images/form/exclamation.png)}.x-tip-body-form-invalid li{margin-bottom:4px}.x-tip-body-form-invalid li.last{margin-bottom:0}.x-menu-default{border-style:solid;border-width:1px;border-color:#d0d0d0}.x-menu-body-default{background:#fff;padding:0}.x-menu-icon-separator-default{left:32px;border-left:solid 1px #d0d0d0;background-color:#fff;width:1px}.x-menu-item-default{border-width:0;cursor:pointer}.x-menu-item-default.x-menu-item-active{background-image:none;background-color:#7fb5e4}.x-nlg .x-menu-item-default.x-menu-item-active{background:#7fb5e4 repeat-x left top;background-image:url(images/menu/menu-item-default-active-bg.gif)}.x-menu-item-default.x-menu-item-disabled{cursor:default}.x-menu-item-default.x-menu-item-disabled a{cursor:default}.x-menu-item-default.x-menu-item-separator{height:1px;border-top:solid 1px #d0d0d0;background-color:#fff;margin:2px 0;padding:0}.x-menu-item-default.x-menu-item-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-ie9m .x-menu-item-default.x-menu-item-disabled .x-menu-item-icon-ui{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-ie9m .x-menu-item-default.x-menu-item-disabled .x-menu-item-text-default{background-color:transparent}.x-menu-item-default .x-form-item-label{font-size:13px;color:#000}.x-menu-item-text-default,.x-menu-item-cmp-default{margin:0 8px 0 8px}.x-menu-item-text-default{font:300 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;line-height:31px;padding-top:1px;color:#000;cursor:pointer}.x-menu-item-active .x-menu-item-text-default{color:#fff}.x-menu-item-text-default.x-menu-item-indent{margin-left:41px}.x-menu-item-text-default.x-menu-item-indent-no-separator{margin-left:36px}.x-menu-item-text-default.x-menu-item-indent-right-icon{margin-right:40px}.x-menu-item-text-default.x-menu-item-indent-right-arrow{margin-right:29px}.x-menu-item-disabled .x-menu-item-text-default{cursor:default}.x-menu-item-indent-default{margin-left:41px}.x-menu-item-icon-default{width:24px;height:24px;top:4px;left:4px;line-height:24px;font-size:16px;color:#919191;background-position:center center}.x-menu-item-active .x-menu-item-icon-default{color:#fff}.x-ie8 .x-menu-item-active .x-menu-item-icon-default{color:#fff !important}.x-ie8 .x-menu-item-icon-default.x-menu-item-glyph{color:#919191}.x-menu-item-icon-default.x-menu-item-icon-right{width:24px;height:24px;top:4px;right:4px;left:auto;background-position:center center}.x-menu-item-icon-default.x-menu-item-checkbox{color:#919191}.x-menu-item-active .x-menu-item-icon-default.x-menu-item-checkbox{color:#fff}.x-menu-item-checked .x-menu-item-icon-default.x-menu-item-checkbox{font:18px/24px FontAwesome}.x-menu-item-checked .x-menu-item-icon-default.x-menu-item-checkbox:before{content:"\f046"}.x-menu-item-unchecked .x-menu-item-icon-default.x-menu-item-checkbox{font:18px/24px FontAwesome}.x-menu-item-unchecked .x-menu-item-icon-default.x-menu-item-checkbox:before{content:"\f096"}.x-menu-item-active .x-menu-item-icon-default.x-menu-group-icon{color:#fff}.x-menu-item-checked .x-menu-item-icon-default.x-menu-group-icon{font:18px/24px FontAwesome;background-image:url(images/menu/default-group-checked.png)}.x-menu-item-checked .x-menu-item-icon-default.x-menu-group-icon:before{content:"\f00c"}.x-menu-item-unchecked .x-menu-item-icon-default.x-menu-group-icon{background-image:none}.x-menu-item-unchecked .x-menu-item-icon-default.x-menu-group-icon:before{content:''}.x-menu-item-arrow-default{width:16px;height:16px;top:8px;right:0;margin:0 4px 0;font:16px/1 FontAwesome;color:#919191}.x-menu-item-arrow-default:before{content:"\f0da"}.x-menu-item-active .x-menu-item-arrow-default{color:#fff}.x-menu-item-active .x-menu-item-arrow-default{top:8px;right:0}.x-menu-default-scroller .x-box-scroller-body-horizontal{margin-left:16px}.x-menu-default-vertical-scroller .x-box-scroller-body-vertical{margin-top:24px}.x-box-scroller-menu-default{cursor:pointer;color:#919191;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-box-scroller-menu-default.x-box-scroller-hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-box-scroller-menu-default.x-box-scroller-pressed{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";opacity:0.7}.x-box-scroller-menu-default.x-box-scroller-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";opacity:0.25;cursor:default}.x-box-scroller-menu-default.x-box-scroller-top,.x-box-scroller-menu-default.x-box-scroller-bottom{height:16px;width:16px;left:50%;margin-left:-8px}.x-box-scroller-menu-default.x-box-scroller-top{margin-top:4px;margin-right:0;margin-bottom:4px;font:16px/16px FontAwesome}.x-box-scroller-menu-default.x-box-scroller-top:before{content:"\f077"}.x-box-scroller-menu-default.x-box-scroller-bottom{margin-top:4px;margin-right:0;margin-bottom:4px;font:16px/16px FontAwesome}.x-box-scroller-menu-default.x-box-scroller-bottom:before{content:"\f078"}.x-ie8 .x-box-scroller-menu-default{background-color:#fff}.x-form-layout-wrap{border-spacing:10px}.x-resizable-handle{position:absolute;z-index:100;font-size:1px;line-height:10px;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0;background-color:#ececec;color:#919191}.x-collapsed .x-resizable-handle{display:none}.x-resizable-handle-north{cursor:n-resize}.x-resizable-handle-south{cursor:s-resize}.x-resizable-handle-east{cursor:e-resize}.x-resizable-handle-west{cursor:w-resize}.x-resizable-handle-southeast{cursor:se-resize}.x-resizable-handle-southeast:before{position:absolute;bottom:0;right:0}.x-resizable-handle-northwest{cursor:nw-resize}.x-resizable-handle-northwest:before{position:absolute;top:0;left:0}.x-resizable-handle-northeast{cursor:ne-resize}.x-resizable-handle-northeast:before{position:absolute;top:0;right:0}.x-resizable-handle-southwest{cursor:sw-resize}.x-resizable-handle-southwest:before{position:absolute;bottom:0;left:0}.x-resizable-handle-south,.x-resizable-handle-north{text-align:center}.x-resizable-handle-east,.x-resizable-handle-west{display:table}.x-resizable-handle-east:before,.x-resizable-handle-west:before{display:table-cell;vertical-align:middle;text-align:center}.x-resizable-handle-east{width:10px;height:100%;right:0;top:0}.x-resizable-handle-south{width:100%;height:10px;left:0;bottom:0}.x-resizable-handle-west{width:10px;height:100%;left:0;top:0}.x-resizable-handle-north{width:100%;height:10px;left:0;top:0}.x-resizable-handle-southeast{width:10px;height:10px;right:0;bottom:0;z-index:101}.x-resizable-handle-northwest{width:10px;height:10px;left:0;top:0;z-index:101}.x-resizable-handle-northeast{width:10px;height:10px;right:0;top:0;z-index:101}.x-resizable-handle-southwest{width:10px;height:10px;left:0;bottom:0;z-index:101}.x-window .x-window-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-window-collapsed .x-window-handle{display:none}.x-resizable-proxy{border:1px dashed #3b5a82;position:absolute;overflow:hidden;z-index:50000}.x-resizable-handle-over,.x-resizable-pinned .x-resizable-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";opacity:1}.x-resizable-handle-east-over,.x-resizable-handle-west-over,.x-resizable-pinned > .x-resizable-handle-east,.x-resizable-pinned > .x-resizable-handle-west{font:16px/1 FontAwesome}.x-resizable-handle-east-over:before,.x-resizable-handle-west-over:before,.x-resizable-pinned > .x-resizable-handle-east:before,.x-resizable-pinned > .x-resizable-handle-west:before{content:"\f142"}.x-resizable-handle-south-over,.x-resizable-handle-north-over,.x-resizable-pinned > .x-resizable-handle-south,.x-resizable-pinned > .x-resizable-handle-north{font:16px/10px FontAwesome}.x-resizable-handle-south-over:before,.x-resizable-handle-north-over:before,.x-resizable-pinned > .x-resizable-handle-south:before,.x-resizable-pinned > .x-resizable-handle-north:before{content:"\f141"}.x-resizable-handle-southeast-over,.x-resizable-pinned > .x-resizable-handle-southeast{font:16px/1 ExtJS}.x-resizable-handle-southeast-over:before,.x-resizable-pinned > .x-resizable-handle-southeast:before{content:"\e60c"}.x-resizable-handle-northwest-over,.x-resizable-pinned > .x-resizable-handle-northwest{font:16px/1 ExtJS}.x-resizable-handle-northwest-over:before,.x-resizable-pinned > .x-resizable-handle-northwest:before{content:"\e609"}.x-resizable-handle-northeast-over,.x-resizable-pinned > .x-resizable-handle-northeast{font:16px/1 ExtJS}.x-resizable-handle-northeast-over:before,.x-resizable-pinned > .x-resizable-handle-northeast:before{content:"\e60a"}.x-resizable-handle-southwest-over,.x-resizable-pinned > .x-resizable-handle-southwest{font:16px/1 ExtJS}.x-resizable-handle-southwest-over:before,.x-resizable-pinned > .x-resizable-handle-southwest:before{content:"\e60b"}.x-tab-default-top{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:8px 10px 8px 10px;border-width:0;border-style:solid;background-color:transparent}.x-tab-default-top-mc{background-color:transparent}.x-nbr .x-tab-default-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-default-top-frameInfo{font-family:th-0-0-0-0-0-0-0-0-8-10-8-10}.x-tab-default-top-tl{background-position:0 0}.x-tab-default-top-tr{background-position:right 0}.x-tab-default-top-bl{background-position:0 0}.x-tab-default-top-br{background-position:right 0}.x-tab-default-top-ml{background-position:0 top}.x-tab-default-top-mr{background-position:right top}.x-tab-default-top-tc{background-position:0 0}.x-tab-default-top-bc{background-position:0 0}.x-tab-default-top-tr,.x-tab-default-top-br,.x-tab-default-top-mr{padding-right:0}.x-tab-default-top-tl,.x-tab-default-top-bl,.x-tab-default-top-ml{padding-left:0}.x-tab-default-top-tc{height:0}.x-tab-default-top-bc{height:0}.x-tab-default-top-mc{padding:8px 10px 8px 10px}.x-tab-default-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:8px 10px 8px 10px;border-width:0 0 0 0;border-style:solid;background-color:transparent}.x-tab-default-bottom-mc{background-color:transparent}.x-nbr .x-tab-default-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-default-bottom-frameInfo{font-family:th-0-0-0-0-0-0-0-0-8-10-8-10}.x-tab-default-bottom-tl{background-position:0 0}.x-tab-default-bottom-tr{background-position:right 0}.x-tab-default-bottom-bl{background-position:0 0}.x-tab-default-bottom-br{background-position:right 0}.x-tab-default-bottom-ml{background-position:0 bottom}.x-tab-default-bottom-mr{background-position:right bottom}.x-tab-default-bottom-tc{background-position:0 0}.x-tab-default-bottom-bc{background-position:0 0}.x-tab-default-bottom-tr,.x-tab-default-bottom-br,.x-tab-default-bottom-mr{padding-right:0}.x-tab-default-bottom-tl,.x-tab-default-bottom-bl,.x-tab-default-bottom-ml{padding-left:0}.x-tab-default-bottom-tc{height:0}.x-tab-default-bottom-bc{height:0}.x-tab-default-bottom-mc{padding:8px 10px 8px 10px}.x-tab-default-left{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:8px 10px 8px 10px;border-width:0 0 0 0;border-style:solid;background-color:transparent}.x-tab-default-left-mc{background-color:transparent}.x-nbr .x-tab-default-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-default-left-frameInfo{font-family:th-0-0-0-0-0-0-0-0-8-10-8-10}.x-tab-default-left-tl{background-position:0 0}.x-tab-default-left-tr{background-position:right 0}.x-tab-default-left-bl{background-position:0 0}.x-tab-default-left-br{background-position:right 0}.x-tab-default-left-ml{background-position:0 top}.x-tab-default-left-mr{background-position:right top}.x-tab-default-left-tc{background-position:0 0}.x-tab-default-left-bc{background-position:0 0}.x-tab-default-left-tr,.x-tab-default-left-br,.x-tab-default-left-mr{padding-right:0}.x-tab-default-left-tl,.x-tab-default-left-bl,.x-tab-default-left-ml{padding-left:0}.x-tab-default-left-tc{height:0}.x-tab-default-left-bc{height:0}.x-tab-default-left-mc{padding:8px 10px 8px 10px}.x-tab-default-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:8px 10px 8px 10px;border-width:0 0 0 0;border-style:solid;background-color:transparent}.x-tab-default-right-mc{background-color:transparent}.x-nbr .x-tab-default-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-default-right-frameInfo{font-family:th-0-0-0-0-0-0-0-0-8-10-8-10}.x-tab-default-right-tl{background-position:0 0}.x-tab-default-right-tr{background-position:right 0}.x-tab-default-right-bl{background-position:0 0}.x-tab-default-right-br{background-position:right 0}.x-tab-default-right-ml{background-position:0 top}.x-tab-default-right-mr{background-position:right top}.x-tab-default-right-tc{background-position:0 0}.x-tab-default-right-bc{background-position:0 0}.x-tab-default-right-tr,.x-tab-default-right-br,.x-tab-default-right-mr{padding-right:0}.x-tab-default-right-tl,.x-tab-default-right-bl,.x-tab-default-right-ml{padding-left:0}.x-tab-default-right-tc{height:0}.x-tab-default-right-bc{height:0}.x-tab-default-right-mc{padding:8px 10px 8px 10px}.x-tab-default{border-color:transparent;cursor:pointer}.x-tab-default-top{margin:0 4px 0 0}.x-tab-default-top.x-tab-rotate-left{margin:0 0 0 4px}.x-tab-default-top.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-top.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-top.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-right{margin:0 0 4px 0}.x-tab-default-right.x-tab-rotate-right{margin:4px 0 0 0}.x-tab-default-right.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-right.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-right.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-bottom{margin:0 4px 0 0}.x-tab-default-bottom.x-tab-rotate-left{margin:0 0 0 4px}.x-tab-default-bottom.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-bottom.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-bottom.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-left{margin:0 0 4px 0}.x-tab-default-left.x-tab-rotate-right{margin:4px 0 0 0}.x-tab-default-left.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-left.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-default-left.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-button-default{height:20px}.x-tab-inner-default{font:400 13px/20px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#f0f0f0;max-width:100%}.x-tab-bar-plain .x-tab-inner-default{color:#606060}.x-tab-icon-right > .x-tab-inner-default,.x-tab-icon-left > .x-tab-inner-default{max-width:calc(100% - 20px)}.x-tab-icon-el-default{min-height:20px;background-position:center center;font-size:20px;line-height:20px;color:#f0f0f0}.x-tab-icon-left > .x-tab-icon-el-default,.x-tab-icon-right > .x-tab-icon-el-default{width:20px}.x-tab-icon-top > .x-tab-icon-el-default,.x-tab-icon-bottom > .x-tab-icon-el-default{min-width:20px}.x-tab-bar-plain .x-tab-icon-el-default{color:#606060}.x-tab-icon-el-default.x-tab-glyph{opacity:0.7}.x-tab-text.x-tab-icon-left > .x-tab-icon-el-default{margin-right:6px}.x-tab-text.x-tab-icon-right > .x-tab-icon-el-default{margin-left:6px}.x-tab-text.x-tab-icon-top > .x-tab-icon-el-default{margin-bottom:6px}.x-tab-text.x-tab-icon-bottom > .x-tab-icon-el-default{margin-top:6px}.x-tab-focus.x-tab-default{border-color:transparent;background-color:transparent;outline:1px solid #5fa2dd;outline-offset:-3px}.x-ie8 .x-tab-focus.x-tab-default{outline:none}.x-ie8 .x-tab-focus.x-tab-default:after{position:absolute;content:' ';top:2px;right:2px;bottom:2px;left:2px;border:1px solid #5fa2dd;pointer-events:none}.x-tab-bar-plain .x-tab-focus.x-tab-default .x-tab-inner-default{color:#606060}.x-tab-bar-plain .x-tab-focus.x-tab-default .x-tab-icon-el{color:#606060}.x-tab-over.x-tab-default{border-color:#000;background-image:none;background-color:rgba(0, 0, 0, 0.08)}.x-ie8 .x-tab-over.x-tab-default{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#14000000, endColorstr=#14000000);zoom:1}.x-ie8 .x-tab-over.x-tab-default.x-tab-rotate-left{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.x-ie8 .x-tab-over.x-tab-default.x-tab-rotate-right{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.x-tab-bar-plain .x-tab-over.x-tab-default .x-tab-inner-default{color:#606060}.x-tab-bar-plain .x-tab-over.x-tab-default .x-tab-icon-el{color:#606060}.x-tab-focus.x-tab-over.x-tab-default{border-color:#000;background-image:none;background-color:rgba(0, 0, 0, 0.08)}.x-ie8 .x-tab-focus.x-tab-over.x-tab-default{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#14000000, endColorstr=#14000000);zoom:1}.x-ie8 .x-tab-focus.x-tab-over.x-tab-default.x-tab-rotate-left{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.x-ie8 .x-tab-focus.x-tab-over.x-tab-default.x-tab-rotate-right{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.x-tab-bar-plain .x-tab-focus.x-tab-over.x-tab-default .x-tab-inner-default{color:#606060}.x-tab-bar-plain .x-tab-focus.x-tab-over.x-tab-default .x-tab-icon-el{color:#606060}.x-tab.x-tab-active.x-tab-default{border-color:#fff;background-color:#fff}.x-tab.x-tab-active.x-tab-default .x-tab-inner-default{color:#4c82b1}.x-tab-bar-plain .x-tab.x-tab-active.x-tab-default .x-tab-inner-default{color:#404040}.x-tab.x-tab-active.x-tab-default .x-tab-icon-el{color:#4c82b1}.x-ie8 .x-tab.x-tab-active.x-tab-default .x-tab-icon-el{color:#82a7c8}.x-tab-bar-plain .x-tab.x-tab-active.x-tab-default .x-tab-icon-el{color:#404040}.x-tab-focus.x-tab-active.x-tab-default{border-color:#fff;background-color:#fff}.x-tab-bar-plain .x-tab-focus.x-tab-active.x-tab-default .x-tab-inner-default{color:#404040}.x-tab-bar-plain .x-tab-focus.x-tab-active.x-tab-default .x-tab-icon-el{color:#404040}.x-tab.x-tab-disabled.x-tab-default{border-color:transparent;background-color:transparent;cursor:default}.x-tab.x-tab-disabled.x-tab-default .x-tab-inner-default{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3}.x-tab-bar-plain .x-tab.x-tab-disabled.x-tab-default .x-tab-inner-default{color:#606060}.x-tab.x-tab-disabled.x-tab-default .x-tab-icon-el-default{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-tab.x-tab-disabled.x-tab-default .x-tab-icon-el{color:#f0f0f0;opacity:0.3;filter:none}.x-tab-bar-plain .x-tab.x-tab-disabled.x-tab-default .x-tab-icon-el{color:#606060}.x-nbr .x-tab-default{background-image:none}.x-tab-over .x-tab-default-top-tl,.x-tab-over .x-tab-default-top-bl,.x-tab-over .x-tab-default-top-tr,.x-tab-over .x-tab-default-top-br,.x-tab-over .x-tab-default-top-tc,.x-tab-over .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-over-corners.gif)}.x-tab-over .x-tab-default-top-ml,.x-tab-over .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-over-sides.gif)}.x-tab-over .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-over-fbg.gif)}.x-tab-focus .x-tab-default-top-tl,.x-tab-focus .x-tab-default-top-bl,.x-tab-focus .x-tab-default-top-tr,.x-tab-focus .x-tab-default-top-br,.x-tab-focus .x-tab-default-top-tc,.x-tab-focus .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-focus-corners.gif)}.x-tab-focus .x-tab-default-top-ml,.x-tab-focus .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-focus-sides.gif)}.x-tab-focus .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-default-top-tl,.x-tab-focus.x-tab-over .x-tab-default-top-bl,.x-tab-focus.x-tab-over .x-tab-default-top-tr,.x-tab-focus.x-tab-over .x-tab-default-top-br,.x-tab-focus.x-tab-over .x-tab-default-top-tc,.x-tab-focus.x-tab-over .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-default-top-ml,.x-tab-focus.x-tab-over .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-default-top-tl,.x-tab.x-tab-active .x-tab-default-top-bl,.x-tab.x-tab-active .x-tab-default-top-tr,.x-tab.x-tab-active .x-tab-default-top-br,.x-tab.x-tab-active .x-tab-default-top-tc,.x-tab.x-tab-active .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-active-corners.gif)}.x-tab.x-tab-active .x-tab-default-top-ml,.x-tab.x-tab-active .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-active-sides.gif)}.x-tab.x-tab-active .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-default-top-tl,.x-tab-focus.x-tab-active .x-tab-default-top-bl,.x-tab-focus.x-tab-active .x-tab-default-top-tr,.x-tab-focus.x-tab-active .x-tab-default-top-br,.x-tab-focus.x-tab-active .x-tab-default-top-tc,.x-tab-focus.x-tab-active .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-default-top-ml,.x-tab-focus.x-tab-active .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-default-top-tl,.x-tab.x-tab-disabled .x-tab-default-top-bl,.x-tab.x-tab-disabled .x-tab-default-top-tr,.x-tab.x-tab-disabled .x-tab-default-top-br,.x-tab.x-tab-disabled .x-tab-default-top-tc,.x-tab.x-tab-disabled .x-tab-default-top-bc{background-image:url(images/tab/tab-default-top-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-default-top-ml,.x-tab.x-tab-disabled .x-tab-default-top-mr{background-image:url(images/tab/tab-default-top-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-default-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-top-disabled-fbg.gif)}.x-tab-over .x-tab-default-right-tl,.x-tab-over .x-tab-default-right-bl,.x-tab-over .x-tab-default-right-tr,.x-tab-over .x-tab-default-right-br,.x-tab-over .x-tab-default-right-tc,.x-tab-over .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-over-corners.gif)}.x-tab-over .x-tab-default-right-ml,.x-tab-over .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-over-sides.gif)}.x-tab-over .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-over-fbg.gif)}.x-tab-focus .x-tab-default-right-tl,.x-tab-focus .x-tab-default-right-bl,.x-tab-focus .x-tab-default-right-tr,.x-tab-focus .x-tab-default-right-br,.x-tab-focus .x-tab-default-right-tc,.x-tab-focus .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-focus-corners.gif)}.x-tab-focus .x-tab-default-right-ml,.x-tab-focus .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-focus-sides.gif)}.x-tab-focus .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-default-right-tl,.x-tab-focus.x-tab-over .x-tab-default-right-bl,.x-tab-focus.x-tab-over .x-tab-default-right-tr,.x-tab-focus.x-tab-over .x-tab-default-right-br,.x-tab-focus.x-tab-over .x-tab-default-right-tc,.x-tab-focus.x-tab-over .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-default-right-ml,.x-tab-focus.x-tab-over .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-default-right-tl,.x-tab.x-tab-active .x-tab-default-right-bl,.x-tab.x-tab-active .x-tab-default-right-tr,.x-tab.x-tab-active .x-tab-default-right-br,.x-tab.x-tab-active .x-tab-default-right-tc,.x-tab.x-tab-active .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-active-corners.gif)}.x-tab.x-tab-active .x-tab-default-right-ml,.x-tab.x-tab-active .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-active-sides.gif)}.x-tab.x-tab-active .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-default-right-tl,.x-tab-focus.x-tab-active .x-tab-default-right-bl,.x-tab-focus.x-tab-active .x-tab-default-right-tr,.x-tab-focus.x-tab-active .x-tab-default-right-br,.x-tab-focus.x-tab-active .x-tab-default-right-tc,.x-tab-focus.x-tab-active .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-default-right-ml,.x-tab-focus.x-tab-active .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-default-right-tl,.x-tab.x-tab-disabled .x-tab-default-right-bl,.x-tab.x-tab-disabled .x-tab-default-right-tr,.x-tab.x-tab-disabled .x-tab-default-right-br,.x-tab.x-tab-disabled .x-tab-default-right-tc,.x-tab.x-tab-disabled .x-tab-default-right-bc{background-image:url(images/tab/tab-default-right-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-default-right-ml,.x-tab.x-tab-disabled .x-tab-default-right-mr{background-image:url(images/tab/tab-default-right-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-default-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-right-disabled-fbg.gif)}.x-tab-over .x-tab-default-bottom-tl,.x-tab-over .x-tab-default-bottom-bl,.x-tab-over .x-tab-default-bottom-tr,.x-tab-over .x-tab-default-bottom-br,.x-tab-over .x-tab-default-bottom-tc,.x-tab-over .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-over-corners.gif)}.x-tab-over .x-tab-default-bottom-ml,.x-tab-over .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-over-sides.gif)}.x-tab-over .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-over-fbg.gif)}.x-tab-focus .x-tab-default-bottom-tl,.x-tab-focus .x-tab-default-bottom-bl,.x-tab-focus .x-tab-default-bottom-tr,.x-tab-focus .x-tab-default-bottom-br,.x-tab-focus .x-tab-default-bottom-tc,.x-tab-focus .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-focus-corners.gif)}.x-tab-focus .x-tab-default-bottom-ml,.x-tab-focus .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-focus-sides.gif)}.x-tab-focus .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-default-bottom-tl,.x-tab-focus.x-tab-over .x-tab-default-bottom-bl,.x-tab-focus.x-tab-over .x-tab-default-bottom-tr,.x-tab-focus.x-tab-over .x-tab-default-bottom-br,.x-tab-focus.x-tab-over .x-tab-default-bottom-tc,.x-tab-focus.x-tab-over .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-default-bottom-ml,.x-tab-focus.x-tab-over .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-default-bottom-tl,.x-tab.x-tab-active .x-tab-default-bottom-bl,.x-tab.x-tab-active .x-tab-default-bottom-tr,.x-tab.x-tab-active .x-tab-default-bottom-br,.x-tab.x-tab-active .x-tab-default-bottom-tc,.x-tab.x-tab-active .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-active-corners.gif)}.x-tab.x-tab-active .x-tab-default-bottom-ml,.x-tab.x-tab-active .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-active-sides.gif)}.x-tab.x-tab-active .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-default-bottom-tl,.x-tab-focus.x-tab-active .x-tab-default-bottom-bl,.x-tab-focus.x-tab-active .x-tab-default-bottom-tr,.x-tab-focus.x-tab-active .x-tab-default-bottom-br,.x-tab-focus.x-tab-active .x-tab-default-bottom-tc,.x-tab-focus.x-tab-active .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-default-bottom-ml,.x-tab-focus.x-tab-active .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-default-bottom-tl,.x-tab.x-tab-disabled .x-tab-default-bottom-bl,.x-tab.x-tab-disabled .x-tab-default-bottom-tr,.x-tab.x-tab-disabled .x-tab-default-bottom-br,.x-tab.x-tab-disabled .x-tab-default-bottom-tc,.x-tab.x-tab-disabled .x-tab-default-bottom-bc{background-image:url(images/tab/tab-default-bottom-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-default-bottom-ml,.x-tab.x-tab-disabled .x-tab-default-bottom-mr{background-image:url(images/tab/tab-default-bottom-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-default-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-bottom-disabled-fbg.gif)}.x-tab-over .x-tab-default-left-tl,.x-tab-over .x-tab-default-left-bl,.x-tab-over .x-tab-default-left-tr,.x-tab-over .x-tab-default-left-br,.x-tab-over .x-tab-default-left-tc,.x-tab-over .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-over-corners.gif)}.x-tab-over .x-tab-default-left-ml,.x-tab-over .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-over-sides.gif)}.x-tab-over .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-over-fbg.gif)}.x-tab-focus .x-tab-default-left-tl,.x-tab-focus .x-tab-default-left-bl,.x-tab-focus .x-tab-default-left-tr,.x-tab-focus .x-tab-default-left-br,.x-tab-focus .x-tab-default-left-tc,.x-tab-focus .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-focus-corners.gif)}.x-tab-focus .x-tab-default-left-ml,.x-tab-focus .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-focus-sides.gif)}.x-tab-focus .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-default-left-tl,.x-tab-focus.x-tab-over .x-tab-default-left-bl,.x-tab-focus.x-tab-over .x-tab-default-left-tr,.x-tab-focus.x-tab-over .x-tab-default-left-br,.x-tab-focus.x-tab-over .x-tab-default-left-tc,.x-tab-focus.x-tab-over .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-default-left-ml,.x-tab-focus.x-tab-over .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-default-left-tl,.x-tab.x-tab-active .x-tab-default-left-bl,.x-tab.x-tab-active .x-tab-default-left-tr,.x-tab.x-tab-active .x-tab-default-left-br,.x-tab.x-tab-active .x-tab-default-left-tc,.x-tab.x-tab-active .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-active-corners.gif)}.x-tab.x-tab-active .x-tab-default-left-ml,.x-tab.x-tab-active .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-active-sides.gif)}.x-tab.x-tab-active .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-default-left-tl,.x-tab-focus.x-tab-active .x-tab-default-left-bl,.x-tab-focus.x-tab-active .x-tab-default-left-tr,.x-tab-focus.x-tab-active .x-tab-default-left-br,.x-tab-focus.x-tab-active .x-tab-default-left-tc,.x-tab-focus.x-tab-active .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-default-left-ml,.x-tab-focus.x-tab-active .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-default-left-tl,.x-tab.x-tab-disabled .x-tab-default-left-bl,.x-tab.x-tab-disabled .x-tab-default-left-tr,.x-tab.x-tab-disabled .x-tab-default-left-br,.x-tab.x-tab-disabled .x-tab-default-left-tc,.x-tab.x-tab-disabled .x-tab-default-left-bc{background-image:url(images/tab/tab-default-left-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-default-left-ml,.x-tab.x-tab-disabled .x-tab-default-left-mr{background-image:url(images/tab/tab-default-left-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-default-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-default-left-disabled-fbg.gif)}.x-tab-default-tl,.x-tab-default-bl,.x-tab-default-tr,.x-tab-default-br{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)}.x-tab-default .x-tab-close-btn{top:0;right:0;width:16px;height:16px;font:12px/1 FontAwesome;color:#fff}.x-tab-default .x-tab-close-btn:before{content:"\f00d"}.x-tab-bar-plain .x-tab-default .x-tab-close-btn{color:#919191}.x-tab-default .x-tab-close-btn-over{background-position:-16px 0}.x-tab-default .x-tab-close-btn-pressed{background-position:-32px 0}.x-tab-default.x-tab-focus .x-tab-close-btn{color:#fff}.x-tab-bar-plain .x-tab-default.x-tab-focus .x-tab-close-btn{color:#919191}.x-tab-default.x-tab-over .x-tab-close-btn{color:#fff}.x-tab-bar-plain .x-tab-default.x-tab-over .x-tab-close-btn{color:#919191}.x-tab-default.x-tab-focus.x-tab-over .x-tab-close-btn{color:#fff}.x-tab-bar-plain .x-tab-default.x-tab-focus.x-tab-over .x-tab-close-btn{color:#919191}.x-tab-default.x-tab-active .x-tab-close-btn{color:#919191}.x-tab-default.x-tab-focus.x-tab-active .x-tab-close-btn{color:#919191}.x-tab-default.x-tab-disabled .x-tab-close-btn{color:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3;background-position:0 0}.x-tab-bar-plain .x-tab-default.x-tab-disabled .x-tab-close-btn{color:#919191}.x-tab-closable.x-tab-default .x-tab-button{padding-right:16px}.x-tab-bar-default{background-color:#5fa2dd}.x-tab-bar-default-top > .x-tab-bar-body-default{padding:8px 4px 0 8px}.x-tab-bar-default-bottom > .x-tab-bar-body-default{padding:0 4px 8px 8px}.x-tab-bar-default-left > .x-tab-bar-body-default{padding:4px 0 8px 8px}.x-tab-bar-default-right > .x-tab-bar-body-default{padding:8px 8px 4px 0}.x-tab-bar-plain.x-tab-bar-default-top > .x-tab-bar-body-default{padding:8px 0 0}.x-tab-bar-plain.x-tab-bar-default-bottom > .x-tab-bar-body-default{padding:0 0 8px 0}.x-tab-bar-plain.x-tab-bar-default-left > .x-tab-bar-body-default{padding:0 0 0 8px}.x-tab-bar-plain.x-tab-bar-default-right > .x-tab-bar-body-default{padding:0 8px 0 0}.x-tab-bar-plain.x-tab-bar-default-horizontal{border-top-color:transparent;border-bottom-color:transparent;border-left-width:0;border-right-width:0}.x-tab-bar-plain.x-tab-bar-default-vertical{border-right-color:transparent;border-left-color:transparent;border-top-width:0;border-bottom-width:0}.x-tab-bar-horizontal > .x-tab-bar-body-default{min-height:44px}.x-ie8m .x-tab-bar-horizontal > .x-tab-bar-body-default{min-height:36px}.x-tab-bar-vertical > .x-tab-bar-body-default{min-width:44px}.x-ie8m .x-tab-bar-vertical > .x-tab-bar-body-default{min-width:36px}.x-tab-bar-default-scroller .x-box-scroller-body-horizontal{margin-left:16px}.x-tab-bar-default-vertical-scroller .x-box-scroller-body-vertical{margin-top:16px}.x-box-scroller-tab-bar-default{cursor:pointer;color:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-box-scroller-tab-bar-default.x-box-scroller-hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-box-scroller-tab-bar-default.x-box-scroller-pressed{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";opacity:0.7}.x-box-scroller-tab-bar-default.x-box-scroller-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";opacity:0.25;cursor:default}.x-box-scroller-tab-bar-default.x-box-scroller-left,.x-box-scroller-tab-bar-default.x-box-scroller-right{width:24px;height:24px;top:50%;margin-top:-12px}.x-box-scroller-tab-bar-default.x-box-scroller-left{margin-left:0;margin-right:0;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-tab-bar-default.x-box-scroller-left:before{content:"\f053"}.x-box-scroller-tab-bar-default.x-box-scroller-right{margin-left:0;margin-right:0;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-tab-bar-default.x-box-scroller-right:before{content:"\f054"}.x-box-scroller-tab-bar-default.x-box-scroller-top,.x-box-scroller-tab-bar-default.x-box-scroller-bottom{height:24px;width:24px;left:50%;margin-left:-12px}.x-box-scroller-tab-bar-default.x-box-scroller-top{margin-top:0;margin-right:0;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-tab-bar-default.x-box-scroller-top:before{content:"\f077"}.x-box-scroller-tab-bar-default.x-box-scroller-bottom{margin-top:0;margin-right:0;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-tab-bar-default.x-box-scroller-bottom:before{content:"\f078"}.x-tab-bar-plain.x-tab-bar-default-scroller .x-box-scroller-body-horizontal{margin-left:24px}.x-tab-bar-plain.x-tab-bar-default-vertical-scroller .x-box-scroller-body-vertical{margin-top:16px}.x-tab-bar-plain .x-box-scroller-tab-bar-default{color:#919191}.x-tab-bar-default-top .x-box-scroller-tab-bar-default{margin-top:-8px}.x-tab-bar-default-right .x-box-scroller-tab-bar-default{margin-left:-16px}.x-tab-bar-default-bottom .x-box-scroller-tab-bar-default{margin-top:-16px}.x-tab-bar-default-left .x-box-scroller-tab-bar-default{margin-left:-8px}.x-box-scroller-tab-bar-default{background-color:#5fa2dd}.x-box-scroller-tab-bar-default .x-ie8 .x-box-scroller-plain{background-color:#fff}.x-btn-plain-toolbar-small{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:7px 7px 7px 7px;border-width:1px;border-style:solid;background-color:transparent}.x-btn-plain-toolbar-small-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-small{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-plain-toolbar-small-frameInfo{font-family:th-1-1-1-1-1-1-1-1-7-7-7-7}.x-btn-plain-toolbar-small-tl{background-position:0 -2px}.x-btn-plain-toolbar-small-tr{background-position:right -3px}.x-btn-plain-toolbar-small-bl{background-position:0 -4px}.x-btn-plain-toolbar-small-br{background-position:right -5px}.x-btn-plain-toolbar-small-ml{background-position:0 top}.x-btn-plain-toolbar-small-mr{background-position:right top}.x-btn-plain-toolbar-small-tc{background-position:0 0}.x-btn-plain-toolbar-small-bc{background-position:0 -1px}.x-btn-plain-toolbar-small-tr,.x-btn-plain-toolbar-small-br,.x-btn-plain-toolbar-small-mr{padding-right:1px}.x-btn-plain-toolbar-small-tl,.x-btn-plain-toolbar-small-bl,.x-btn-plain-toolbar-small-ml{padding-left:1px}.x-btn-plain-toolbar-small-tc{height:1px}.x-btn-plain-toolbar-small-bc{height:1px}.x-btn-plain-toolbar-small-mc{padding:7px 7px 7px 7px}.x-btn-plain-toolbar-small{border-color:transparent}.x-btn-button-plain-toolbar-small{min-height:16px}.x-ie9m .x-btn-button-plain-toolbar-small{min-height:auto;height:16px}.x-btn-inner-plain-toolbar-small{font:400 12px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#606060;padding:0 5px;max-width:100%}.x-btn-icon-right > .x-btn-inner-plain-toolbar-small,.x-btn-icon-left > .x-btn-inner-plain-toolbar-small{max-width:calc(100% - 16px)}.x-ie10p .x-btn-inner-plain-toolbar-small{max-width:none}.x-btn-icon-el-plain-toolbar-small{font-size:16px;height:16px;color:#919191;line-height:16px}.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-small,.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small{width:16px}.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-small,.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-small{min-width:16px}.x-ie8 .x-btn-icon-el-plain-toolbar-small.x-btn-glyph{color:#919191}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-small{margin-right:3px}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small{margin-left:3px}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-small{margin-bottom:8px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-small{margin-top:8px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-small{padding-right:5px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small{margin-right:5px}.x-btn-arrow-bottom > .x-btn-button-plain-toolbar-small,.x-btn-split-bottom > .x-btn-button-plain-toolbar-small{padding-bottom:7px}.x-btn-wrap-plain-toolbar-small.x-btn-arrow-right:after{width:18px;content:"\f0d7";font:16px/1 FontAwesome;color:#606060}.x-btn-wrap-plain-toolbar-small.x-btn-arrow-bottom:after{height:12px;content:"\f0d7";font:16px/12px FontAwesome;color:#606060}.x-btn-wrap-plain-toolbar-small.x-btn-split-right > .x-btn-button{padding-right:7px}.x-btn-wrap-plain-toolbar-small.x-btn-split-right > .x-btn-button:after{border-right:1px solid #e4e4e4}.x-btn-wrap-plain-toolbar-small.x-btn-split-right:after{width:20px;content:"\f0d7";font:16px/1 FontAwesome;color:#606060;padding-left:7px}.x-btn-wrap-plain-toolbar-small.x-btn-split-bottom{margin-bottom:-7px}.x-btn-wrap-plain-toolbar-small.x-btn-split-bottom > .x-btn-button:after{border-bottom:1px solid #e4e4e4}.x-btn-wrap-plain-toolbar-small.x-btn-split-bottom:after{height:20px;content:"\f0d7";font:16px/20px FontAwesome;color:#606060}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-small{padding-right:5px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small{margin-right:5px}.x-btn-focus.x-btn-plain-toolbar-small{background-image:none;background-color:transparent;-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn-plain-toolbar-small .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:27px;pointer-events:none}.x-btn-plain-toolbar-small.x-arrow-focus .x-btn-arrow-el{border:1px solid #5fa2dd}.x-btn-over.x-btn-plain-toolbar-small{border-color:#dbdbdb;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-plain-toolbar-small{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-plain-toolbar-small,.x-btn.x-btn-pressed.x-btn-plain-toolbar-small{border-color:#d2d2d2;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-plain-toolbar-small,.x-btn-focus.x-btn-pressed.x-btn-plain-toolbar-small{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-plain-toolbar-small{background-image:none;background-color:transparent}.x-btn-focus .x-btn-plain-toolbar-small-tl,.x-btn-focus .x-btn-plain-toolbar-small-bl,.x-btn-focus .x-btn-plain-toolbar-small-tr,.x-btn-focus .x-btn-plain-toolbar-small-br,.x-btn-focus .x-btn-plain-toolbar-small-tc,.x-btn-focus .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-focus-corners.gif)}.x-btn-focus .x-btn-plain-toolbar-small-ml,.x-btn-focus .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-focus-sides.gif)}.x-btn-focus .x-btn-plain-toolbar-small-mc{background-color:transparent}.x-btn-over .x-btn-plain-toolbar-small-tl,.x-btn-over .x-btn-plain-toolbar-small-bl,.x-btn-over .x-btn-plain-toolbar-small-tr,.x-btn-over .x-btn-plain-toolbar-small-br,.x-btn-over .x-btn-plain-toolbar-small-tc,.x-btn-over .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-over-corners.gif)}.x-btn-over .x-btn-plain-toolbar-small-ml,.x-btn-over .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-over-sides.gif)}.x-btn-over .x-btn-plain-toolbar-small-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-tl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-bl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-tr,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-br,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-tc,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-ml,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-tl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-bl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-tr,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-br,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-tc,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-bc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-tl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-bl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-tr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-br,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-tc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-ml,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-mr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-ml,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-mc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-tl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-bl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-tr,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-br,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-tc,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-bc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-tl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-bl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-tr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-br,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-tc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-ml,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-mr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-ml,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-mc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-tl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-bl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-tr,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-br,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-tc,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-bc{background-image:url(images/btn/btn-plain-toolbar-small-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-ml,.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-mr{background-image:url(images/btn/btn-plain-toolbar-small-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-small{background-image:none}.x-btn-disabled.x-btn-plain-toolbar-small{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-plain-toolbar-medium{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:8px 8px 8px 8px;border-width:1px;border-style:solid;background-color:transparent}.x-btn-plain-toolbar-medium-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-medium{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-plain-toolbar-medium-frameInfo{font-family:th-1-1-1-1-1-1-1-1-8-8-8-8}.x-btn-plain-toolbar-medium-tl{background-position:0 -2px}.x-btn-plain-toolbar-medium-tr{background-position:right -3px}.x-btn-plain-toolbar-medium-bl{background-position:0 -4px}.x-btn-plain-toolbar-medium-br{background-position:right -5px}.x-btn-plain-toolbar-medium-ml{background-position:0 top}.x-btn-plain-toolbar-medium-mr{background-position:right top}.x-btn-plain-toolbar-medium-tc{background-position:0 0}.x-btn-plain-toolbar-medium-bc{background-position:0 -1px}.x-btn-plain-toolbar-medium-tr,.x-btn-plain-toolbar-medium-br,.x-btn-plain-toolbar-medium-mr{padding-right:1px}.x-btn-plain-toolbar-medium-tl,.x-btn-plain-toolbar-medium-bl,.x-btn-plain-toolbar-medium-ml{padding-left:1px}.x-btn-plain-toolbar-medium-tc{height:1px}.x-btn-plain-toolbar-medium-bc{height:1px}.x-btn-plain-toolbar-medium-mc{padding:8px 8px 8px 8px}.x-btn-plain-toolbar-medium{border-color:transparent}.x-btn-button-plain-toolbar-medium{min-height:20px}.x-ie9m .x-btn-button-plain-toolbar-medium{min-height:auto;height:20px}.x-btn-inner-plain-toolbar-medium{font:400 14px/18px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#606060;padding:0 8px;max-width:100%}.x-btn-icon-right > .x-btn-inner-plain-toolbar-medium,.x-btn-icon-left > .x-btn-inner-plain-toolbar-medium{max-width:calc(100% - 20px)}.x-ie10p .x-btn-inner-plain-toolbar-medium{max-width:none}.x-btn-icon-el-plain-toolbar-medium{font-size:20px;height:20px;color:#919191;line-height:20px}.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-medium,.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium{width:20px}.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-medium,.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-medium{min-width:20px}.x-ie8 .x-btn-icon-el-plain-toolbar-medium.x-btn-glyph{color:#919191}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-medium{margin-right:0px}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium{margin-left:0px}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-medium{margin-bottom:8px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-medium{margin-top:8px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-medium{padding-right:8px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium{margin-right:8px}.x-btn-arrow-bottom > .x-btn-button-plain-toolbar-medium,.x-btn-split-bottom > .x-btn-button-plain-toolbar-medium{padding-bottom:8px}.x-btn-wrap-plain-toolbar-medium.x-btn-arrow-right:after{width:20px;content:"\f0d7";font:20px/1 FontAwesome;color:#606060}.x-btn-wrap-plain-toolbar-medium.x-btn-arrow-bottom:after{height:14px;content:"\f0d7";font:20px/14px FontAwesome;color:#606060}.x-btn-wrap-plain-toolbar-medium.x-btn-split-right > .x-btn-button{padding-right:8px}.x-btn-wrap-plain-toolbar-medium.x-btn-split-right > .x-btn-button:after{border-right:1px solid #e4e4e4}.x-btn-wrap-plain-toolbar-medium.x-btn-split-right:after{width:26px;content:"\f0d7";font:20px/1 FontAwesome;color:#606060;padding-left:8px}.x-btn-wrap-plain-toolbar-medium.x-btn-split-bottom{margin-bottom:-8px}.x-btn-wrap-plain-toolbar-medium.x-btn-split-bottom > .x-btn-button:after{border-bottom:1px solid #e4e4e4}.x-btn-wrap-plain-toolbar-medium.x-btn-split-bottom:after{height:24px;content:"\f0d7";font:20px/24px FontAwesome;color:#606060}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-medium{padding-right:8px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium{margin-right:8px}.x-btn-focus.x-btn-plain-toolbar-medium{background-image:none;background-color:transparent;-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn-plain-toolbar-medium .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:34px;pointer-events:none}.x-btn-plain-toolbar-medium.x-arrow-focus .x-btn-arrow-el{border:1px solid #5fa2dd}.x-btn-over.x-btn-plain-toolbar-medium{border-color:#dbdbdb;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-plain-toolbar-medium{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-plain-toolbar-medium,.x-btn.x-btn-pressed.x-btn-plain-toolbar-medium{border-color:#d2d2d2;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-plain-toolbar-medium,.x-btn-focus.x-btn-pressed.x-btn-plain-toolbar-medium{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-plain-toolbar-medium{background-image:none;background-color:transparent}.x-btn-focus .x-btn-plain-toolbar-medium-tl,.x-btn-focus .x-btn-plain-toolbar-medium-bl,.x-btn-focus .x-btn-plain-toolbar-medium-tr,.x-btn-focus .x-btn-plain-toolbar-medium-br,.x-btn-focus .x-btn-plain-toolbar-medium-tc,.x-btn-focus .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-focus-corners.gif)}.x-btn-focus .x-btn-plain-toolbar-medium-ml,.x-btn-focus .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-focus-sides.gif)}.x-btn-focus .x-btn-plain-toolbar-medium-mc{background-color:transparent}.x-btn-over .x-btn-plain-toolbar-medium-tl,.x-btn-over .x-btn-plain-toolbar-medium-bl,.x-btn-over .x-btn-plain-toolbar-medium-tr,.x-btn-over .x-btn-plain-toolbar-medium-br,.x-btn-over .x-btn-plain-toolbar-medium-tc,.x-btn-over .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-over-corners.gif)}.x-btn-over .x-btn-plain-toolbar-medium-ml,.x-btn-over .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-over-sides.gif)}.x-btn-over .x-btn-plain-toolbar-medium-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-tl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-bl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-tr,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-br,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-tc,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-ml,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-tl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-bl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-tr,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-br,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-tc,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-bc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-tl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-bl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-tr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-br,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-tc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-ml,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-mr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-ml,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-mc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-tl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-bl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-tr,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-br,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-tc,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-bc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-tl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-bl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-tr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-br,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-tc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-ml,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-mr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-ml,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-mc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-tl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-bl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-tr,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-br,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-tc,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-bc{background-image:url(images/btn/btn-plain-toolbar-medium-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-ml,.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-mr{background-image:url(images/btn/btn-plain-toolbar-medium-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-medium{background-image:none}.x-btn-disabled.x-btn-plain-toolbar-medium{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-plain-toolbar-large{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:9px 9px 9px 9px;border-width:1px;border-style:solid;background-color:transparent}.x-btn-plain-toolbar-large-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-large{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-btn-plain-toolbar-large-frameInfo{font-family:th-1-1-1-1-1-1-1-1-9-9-9-9}.x-btn-plain-toolbar-large-tl{background-position:0 -2px}.x-btn-plain-toolbar-large-tr{background-position:right -3px}.x-btn-plain-toolbar-large-bl{background-position:0 -4px}.x-btn-plain-toolbar-large-br{background-position:right -5px}.x-btn-plain-toolbar-large-ml{background-position:0 top}.x-btn-plain-toolbar-large-mr{background-position:right top}.x-btn-plain-toolbar-large-tc{background-position:0 0}.x-btn-plain-toolbar-large-bc{background-position:0 -1px}.x-btn-plain-toolbar-large-tr,.x-btn-plain-toolbar-large-br,.x-btn-plain-toolbar-large-mr{padding-right:1px}.x-btn-plain-toolbar-large-tl,.x-btn-plain-toolbar-large-bl,.x-btn-plain-toolbar-large-ml{padding-left:1px}.x-btn-plain-toolbar-large-tc{height:1px}.x-btn-plain-toolbar-large-bc{height:1px}.x-btn-plain-toolbar-large-mc{padding:9px 9px 9px 9px}.x-btn-plain-toolbar-large{border-color:transparent}.x-btn-button-plain-toolbar-large{min-height:24px}.x-ie9m .x-btn-button-plain-toolbar-large{min-height:auto;height:24px}.x-btn-inner-plain-toolbar-large{font:400 16px/20px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#606060;padding:0 10px;max-width:100%}.x-btn-icon-right > .x-btn-inner-plain-toolbar-large,.x-btn-icon-left > .x-btn-inner-plain-toolbar-large{max-width:calc(100% - 24px)}.x-ie10p .x-btn-inner-plain-toolbar-large{max-width:none}.x-btn-icon-el-plain-toolbar-large{font-size:24px;height:24px;color:#919191;line-height:24px}.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-large,.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large{width:24px}.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-large,.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-large{min-width:24px}.x-ie8 .x-btn-icon-el-plain-toolbar-large.x-btn-glyph{color:#919191}.x-btn-text.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-large{margin-right:0}.x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large{margin-left:0}.x-btn-text.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-large{margin-bottom:8px}.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-large{margin-top:8px}.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-large{padding-right:10px}.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large{margin-right:10px}.x-btn-arrow-bottom > .x-btn-button-plain-toolbar-large,.x-btn-split-bottom > .x-btn-button-plain-toolbar-large{padding-bottom:9px}.x-btn-wrap-plain-toolbar-large.x-btn-arrow-right:after{width:22px;content:"\f0d7";font:24px/1 FontAwesome;color:#606060}.x-btn-wrap-plain-toolbar-large.x-btn-arrow-bottom:after{height:16px;content:"\f0d7";font:24px/16px FontAwesome;color:#606060}.x-btn-wrap-plain-toolbar-large.x-btn-split-right > .x-btn-button{padding-right:9px}.x-btn-wrap-plain-toolbar-large.x-btn-split-right > .x-btn-button:after{border-right:1px solid #e4e4e4}.x-btn-wrap-plain-toolbar-large.x-btn-split-right:after{width:32px;content:"\f0d7";font:24px/1 FontAwesome;color:#606060;padding-left:9px}.x-btn-wrap-plain-toolbar-large.x-btn-split-bottom{margin-bottom:-9px}.x-btn-wrap-plain-toolbar-large.x-btn-split-bottom > .x-btn-button:after{border-bottom:1px solid #e4e4e4}.x-btn-wrap-plain-toolbar-large.x-btn-split-bottom:after{height:28px;content:"\f0d7";font:24px/28px FontAwesome;color:#606060}.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-large{padding-right:10px}.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large{margin-right:10px}.x-btn-focus.x-btn-plain-toolbar-large{background-image:none;background-color:transparent;-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn-plain-toolbar-large .x-btn-arrow-el{position:absolute;top:0;right:0;height:100%;width:41px;pointer-events:none}.x-btn-plain-toolbar-large.x-arrow-focus .x-btn-arrow-el{border:1px solid #5fa2dd}.x-btn-over.x-btn-plain-toolbar-large{border-color:#dbdbdb;background-image:none;background-color:#ececec}.x-btn-focus.x-btn-over.x-btn-plain-toolbar-large{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-menu-active.x-btn-plain-toolbar-large,.x-btn.x-btn-pressed.x-btn-plain-toolbar-large{border-color:#d2d2d2;background-image:none;background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active.x-btn-plain-toolbar-large,.x-btn-focus.x-btn-pressed.x-btn-plain-toolbar-large{-webkit-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;-moz-box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset;box-shadow:#5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset}.x-btn.x-btn-disabled.x-btn-plain-toolbar-large{background-image:none;background-color:transparent}.x-btn-focus .x-btn-plain-toolbar-large-tl,.x-btn-focus .x-btn-plain-toolbar-large-bl,.x-btn-focus .x-btn-plain-toolbar-large-tr,.x-btn-focus .x-btn-plain-toolbar-large-br,.x-btn-focus .x-btn-plain-toolbar-large-tc,.x-btn-focus .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-focus-corners.gif)}.x-btn-focus .x-btn-plain-toolbar-large-ml,.x-btn-focus .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-focus-sides.gif)}.x-btn-focus .x-btn-plain-toolbar-large-mc{background-color:transparent}.x-btn-over .x-btn-plain-toolbar-large-tl,.x-btn-over .x-btn-plain-toolbar-large-bl,.x-btn-over .x-btn-plain-toolbar-large-tr,.x-btn-over .x-btn-plain-toolbar-large-br,.x-btn-over .x-btn-plain-toolbar-large-tc,.x-btn-over .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-over-corners.gif)}.x-btn-over .x-btn-plain-toolbar-large-ml,.x-btn-over .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-over-sides.gif)}.x-btn-over .x-btn-plain-toolbar-large-mc{background-color:#ececec}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-tl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-bl,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-tr,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-br,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-tc,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-focus-over-corners.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-ml,.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-focus-over-sides.gif)}.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-mc{background-color:#ececec}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-tl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-bl,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-tr,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-br,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-tc,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-bc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-tl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-bl,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-tr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-br,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-tc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-pressed-corners.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-ml,.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-mr,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-ml,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-pressed-sides.gif)}.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-mc,.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-mc{background-color:#e2e2e2}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-tl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-bl,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-tr,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-br,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-tc,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-bc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-tl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-bl,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-tr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-br,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-tc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-ml,.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-mr,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-ml,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif)}.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-mc,.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-mc{background-color:#e2e2e2}.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-bl,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tr,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-br,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tc,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-bc{background-image:url(images/btn/btn-plain-toolbar-large-disabled-corners.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-ml,.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-mr{background-image:url(images/btn/btn-plain-toolbar-large-disabled-sides.gif)}.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-mc{background-color:transparent}.x-nbr .x-btn-plain-toolbar-large{background-image:none}.x-btn-disabled.x-btn-plain-toolbar-large{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-btn-plain-toolbar-small-disabled .x-btn-icon-el,.x-btn-plain-toolbar-medium-disabled .x-btn-icon-el,.x-btn-plain-toolbar-large-disabled .x-btn-icon-el{background-color:#fff}.x-ie8 .x-btn-plain-toolbar-small-disabled .x-btn-icon-el,.x-ie8 .x-btn-plain-toolbar-medium-disabled .x-btn-icon-el,.x-ie8 .x-btn-plain-toolbar-large-disabled .x-btn-icon-el{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-panel-light{border-color:#d0d0d0;padding:0}.x-panel-header-light{font-size:16px;border:1px solid #d0d0d0}.x-panel-header-light .x-tool-img{color:#919191;background-color:#fff}.x-panel-header-light-horizontal{padding:11px 15px 12px}.x-panel-header-light-horizontal .x-panel-header-light-tab-bar{margin-top:-11px;margin-bottom:-12px}.x-panel-header-light-horizontal.x-header-noborder{padding:12px 16px 12px 16px}.x-panel-header-light-horizontal.x-header-noborder .x-panel-header-light-tab-bar{margin-top:-12px;margin-bottom:-12px}.x-panel-header-light-vertical{padding:15px 11px 15px 12px}.x-panel-header-light-vertical .x-panel-header-light-tab-bar{margin-right:-11px;margin-left:-12px}.x-panel-header-light-vertical.x-header-noborder{padding:16px 12px 16px 12px}.x-panel-header-light-vertical.x-header-noborder .x-panel-header-light-tab-bar{margin-right:-12px;margin-left:-12px}.x-panel-header-title-light{color:#606060;font-size:16px;font-weight:400;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;line-height:20px}.x-panel-header-title-light > .x-title-text-light{text-transform:none;padding:0}.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-top{height:24px;padding-bottom:8px}.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-right{width:24px;padding-left:8px}.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-bottom{height:24px;padding-top:8px}.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-left{width:24px;padding-right:8px}.x-panel-header-title-light > .x-title-icon-wrap-light > .x-title-icon-light{width:16px;height:16px;font-size:16px;color:#606060;background-position:center center}.x-ie8 .x-panel-header-title-light > .x-title-icon-wrap-light > .x-title-icon-light{color:#606060}.x-panel-body-light{background:#fff;border-color:#d0d0d0;color:#404040;font-size:13px;font-weight:300;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;border-width:1px;border-style:solid}.x-panel-header-light{background-image:none;background-color:#fff}.x-panel-header-light-vertical{background-image:none;background-color:#fff}.x-panel .x-panel-header-light-collapsed-border-top{border-bottom-width:1px !important}.x-panel .x-panel-header-light-collapsed-border-right{border-left-width:1px !important}.x-panel .x-panel-header-light-collapsed-border-bottom{border-top-width:1px !important}.x-panel .x-panel-header-light-collapsed-border-left{border-right-width:1px !important}.x-panel-header-light-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-panel-header-light-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-panel-header-light-vertical .x-tool-after-title{margin:6px 0 0 0}.x-panel-header-light-vertical .x-tool-before-title{margin:0 0 6px 0}.x-panel-header-light .x-tool-focus{outline:1px solid #5fa2dd;outline-offset:1px}.x-ie8 .x-panel-header-light .x-tool-focus{outline:none}.x-ie8 .x-panel-header-light .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #5fa2dd;pointer-events:none}.x-panel-light-resizable .x-panel-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-panel-light-outer-border-l{border-left-color:#d0d0d0 !important;border-left-width:1px !important}.x-panel-light-outer-border-b{border-bottom-color:#d0d0d0 !important;border-bottom-width:1px !important}.x-panel-light-outer-border-bl{border-bottom-color:#d0d0d0 !important;border-bottom-width:1px !important;border-left-color:#d0d0d0 !important;border-left-width:1px !important}.x-panel-light-outer-border-r{border-right-color:#d0d0d0 !important;border-right-width:1px !important}.x-panel-light-outer-border-rl{border-right-color:#d0d0d0 !important;border-right-width:1px !important;border-left-color:#d0d0d0 !important;border-left-width:1px !important}.x-panel-light-outer-border-rb{border-right-color:#d0d0d0 !important;border-right-width:1px !important;border-bottom-color:#d0d0d0 !important;border-bottom-width:1px !important}.x-panel-light-outer-border-rbl{border-right-color:#d0d0d0 !important;border-right-width:1px !important;border-bottom-color:#d0d0d0 !important;border-bottom-width:1px !important;border-left-color:#d0d0d0 !important;border-left-width:1px !important}.x-panel-light-outer-border-t{border-top-color:#d0d0d0 !important;border-top-width:1px !important}.x-panel-light-outer-border-tl{border-top-color:#d0d0d0 !important;border-top-width:1px !important;border-left-color:#d0d0d0 !important;border-left-width:1px !important}.x-panel-light-outer-border-tb{border-top-color:#d0d0d0 !important;border-top-width:1px !important;border-bottom-color:#d0d0d0 !important;border-bottom-width:1px !important}.x-panel-light-outer-border-tbl{border-top-color:#d0d0d0 !important;border-top-width:1px !important;border-bottom-color:#d0d0d0 !important;border-bottom-width:1px !important;border-left-color:#d0d0d0 !important;border-left-width:1px !important}.x-panel-light-outer-border-tr{border-top-color:#d0d0d0 !important;border-top-width:1px !important;border-right-color:#d0d0d0 !important;border-right-width:1px !important}.x-panel-light-outer-border-trl{border-top-color:#d0d0d0 !important;border-top-width:1px !important;border-right-color:#d0d0d0 !important;border-right-width:1px !important;border-left-color:#d0d0d0 !important;border-left-width:1px !important}.x-panel-light-outer-border-trb{border-top-color:#d0d0d0 !important;border-top-width:1px !important;border-right-color:#d0d0d0 !important;border-right-width:1px !important;border-bottom-color:#d0d0d0 !important;border-bottom-width:1px !important}.x-panel-light-outer-border-trbl{border-color:#d0d0d0 !important;border-width:1px !important}.x-panel-light-framed{border-color:#d0d0d0;padding:0}.x-panel-header-light-framed{font-size:16px;border:2px solid #d0d0d0}.x-panel-header-light-framed .x-tool-img{color:#919191;background-color:#fff}.x-panel-header-light-framed-horizontal{padding:10px 14px 10px 14px}.x-panel-header-light-framed-horizontal .x-panel-header-light-framed-tab-bar{margin-top:-10px;margin-bottom:-10px}.x-panel-header-light-framed-horizontal.x-header-noborder{padding:12px 16px 10px 16px}.x-panel-header-light-framed-horizontal.x-header-noborder .x-panel-header-light-framed-tab-bar{margin-top:-12px;margin-bottom:-10px}.x-panel-header-light-framed-vertical{padding:14px 10px 14px 10px}.x-panel-header-light-framed-vertical .x-panel-header-light-framed-tab-bar{margin-right:-10px;margin-left:-10px}.x-panel-header-light-framed-vertical.x-header-noborder{padding:16px 12px 16px 10px}.x-panel-header-light-framed-vertical.x-header-noborder .x-panel-header-light-framed-tab-bar{margin-right:-12px;margin-left:-10px}.x-panel-header-title-light-framed{color:#606060;font-size:16px;font-weight:400;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;line-height:20px}.x-panel-header-title-light-framed > .x-title-text-light-framed{text-transform:none;padding:0}.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-top{height:24px;padding-bottom:8px}.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-right{width:24px;padding-left:8px}.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-bottom{height:24px;padding-top:8px}.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-left{width:24px;padding-right:8px}.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed > .x-title-icon-light-framed{width:16px;height:16px;font-size:16px;color:#606060;background-position:center center}.x-ie8 .x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed > .x-title-icon-light-framed{color:#606060}.x-panel-body-light-framed{background:#fff;border-color:#d0d0d0;color:#404040;font-size:13px;font-weight:300;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;border-width:1px;border-style:solid}.x-panel-light-framed{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:0 0 0 0;border-width:2px;border-style:solid;background-color:#fff}.x-panel-light-framed-mc{background-color:#fff}.x-nbr .x-panel-light-framed{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-light-framed-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-0px-0px-0px-0px}.x-panel-light-framed-tl{background-position:0 -4px}.x-panel-light-framed-tr{background-position:right -6px}.x-panel-light-framed-bl{background-position:0 -8px}.x-panel-light-framed-br{background-position:right -10px}.x-panel-light-framed-ml{background-position:0 top}.x-panel-light-framed-mr{background-position:right top}.x-panel-light-framed-tc{background-position:0 0}.x-panel-light-framed-bc{background-position:0 -2px}.x-panel-light-framed-tr,.x-panel-light-framed-br,.x-panel-light-framed-mr{padding-right:2px}.x-panel-light-framed-tl,.x-panel-light-framed-bl,.x-panel-light-framed-ml{padding-left:2px}.x-panel-light-framed-tc{height:2px}.x-panel-light-framed-bc{height:2px}.x-panel-light-framed-tl,.x-panel-light-framed-bl,.x-panel-light-framed-tr,.x-panel-light-framed-br,.x-panel-light-framed-tc,.x-panel-light-framed-bc,.x-panel-light-framed-ml,.x-panel-light-framed-mr{background-image:url(images/panel/panel-light-framed-corners.gif)}.x-panel-light-framed-ml,.x-panel-light-framed-mr{background-image:url(images/panel/panel-light-framed-sides.gif);background-repeat:repeat-y}.x-panel-light-framed-mc{padding:0px 0px 0px 0px}.x-panel-header-light-framed-top{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:2px 2px 0 2px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-top-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-top-frameInfo{font-family:dh-2-2-0-2-2-2-0-2-10-14-10-14}.x-panel-header-light-framed-top-tl{background-position:0 -4px}.x-panel-header-light-framed-top-tr{background-position:right -6px}.x-panel-header-light-framed-top-bl{background-position:0 -8px}.x-panel-header-light-framed-top-br{background-position:right -10px}.x-panel-header-light-framed-top-ml{background-position:0 top}.x-panel-header-light-framed-top-mr{background-position:right top}.x-panel-header-light-framed-top-tc{background-position:0 0}.x-panel-header-light-framed-top-bc{background-position:0 -2px}.x-panel-header-light-framed-top-tr,.x-panel-header-light-framed-top-br,.x-panel-header-light-framed-top-mr{padding-right:2px}.x-panel-header-light-framed-top-tl,.x-panel-header-light-framed-top-bl,.x-panel-header-light-framed-top-ml{padding-left:2px}.x-panel-header-light-framed-top-tc{height:2px}.x-panel-header-light-framed-top-bc{height:0}.x-panel-header-light-framed-top-tl,.x-panel-header-light-framed-top-bl,.x-panel-header-light-framed-top-tr,.x-panel-header-light-framed-top-br,.x-panel-header-light-framed-top-tc,.x-panel-header-light-framed-top-bc,.x-panel-header-light-framed-top-ml,.x-panel-header-light-framed-top-mr{background-image:url(images/panel-header/panel-header-light-framed-top-corners.gif)}.x-panel-header-light-framed-top-ml,.x-panel-header-light-framed-top-mr{background-image:url(images/panel-header/panel-header-light-framed-top-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-top-mc{padding:10px 14px 10px 14px}.x-panel-header-light-framed-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px 2px 2px 0;border-style:solid;background-color:#fff}.x-panel-header-light-framed-right-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-right-frameInfo{font-family:dh-2-2-2-0-2-2-2-0-14-10-14-10}.x-panel-header-light-framed-right-tl{background-position:0 -4px}.x-panel-header-light-framed-right-tr{background-position:right -6px}.x-panel-header-light-framed-right-bl{background-position:0 -8px}.x-panel-header-light-framed-right-br{background-position:right -10px}.x-panel-header-light-framed-right-ml{background-position:right 0}.x-panel-header-light-framed-right-mr{background-position:right 0}.x-panel-header-light-framed-right-tc{background-position:0 0}.x-panel-header-light-framed-right-bc{background-position:0 -2px}.x-panel-header-light-framed-right-tr,.x-panel-header-light-framed-right-br,.x-panel-header-light-framed-right-mr{padding-right:2px}.x-panel-header-light-framed-right-tl,.x-panel-header-light-framed-right-bl,.x-panel-header-light-framed-right-ml{padding-left:0}.x-panel-header-light-framed-right-tc{height:2px}.x-panel-header-light-framed-right-bc{height:2px}.x-panel-header-light-framed-right-tl,.x-panel-header-light-framed-right-bl,.x-panel-header-light-framed-right-tr,.x-panel-header-light-framed-right-br,.x-panel-header-light-framed-right-tc,.x-panel-header-light-framed-right-bc,.x-panel-header-light-framed-right-ml,.x-panel-header-light-framed-right-mr{background-image:url(images/panel-header/panel-header-light-framed-right-corners.gif)}.x-panel-header-light-framed-right-ml,.x-panel-header-light-framed-right-mr{background-image:url(images/panel-header/panel-header-light-framed-right-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-right-mc{padding:14px 10px 14px 10px}.x-panel-header-light-framed-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:0 2px 2px 2px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-bottom-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-bottom-frameInfo{font-family:dh-0-2-2-2-0-2-2-2-10-14-10-14}.x-panel-header-light-framed-bottom-tl{background-position:0 -4px}.x-panel-header-light-framed-bottom-tr{background-position:right -6px}.x-panel-header-light-framed-bottom-bl{background-position:0 -8px}.x-panel-header-light-framed-bottom-br{background-position:right -10px}.x-panel-header-light-framed-bottom-ml{background-position:0 bottom}.x-panel-header-light-framed-bottom-mr{background-position:right bottom}.x-panel-header-light-framed-bottom-tc{background-position:0 0}.x-panel-header-light-framed-bottom-bc{background-position:0 -2px}.x-panel-header-light-framed-bottom-tr,.x-panel-header-light-framed-bottom-br,.x-panel-header-light-framed-bottom-mr{padding-right:2px}.x-panel-header-light-framed-bottom-tl,.x-panel-header-light-framed-bottom-bl,.x-panel-header-light-framed-bottom-ml{padding-left:2px}.x-panel-header-light-framed-bottom-tc{height:0}.x-panel-header-light-framed-bottom-bc{height:2px}.x-panel-header-light-framed-bottom-tl,.x-panel-header-light-framed-bottom-bl,.x-panel-header-light-framed-bottom-tr,.x-panel-header-light-framed-bottom-br,.x-panel-header-light-framed-bottom-tc,.x-panel-header-light-framed-bottom-bc,.x-panel-header-light-framed-bottom-ml,.x-panel-header-light-framed-bottom-mr{background-image:url(images/panel-header/panel-header-light-framed-bottom-corners.gif)}.x-panel-header-light-framed-bottom-ml,.x-panel-header-light-framed-bottom-mr{background-image:url(images/panel-header/panel-header-light-framed-bottom-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-bottom-mc{padding:10px 14px 10px 14px}.x-panel-header-light-framed-left{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px 0 2px 2px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-left-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-left-frameInfo{font-family:dh-2-0-2-2-2-0-2-2-14-10-14-10}.x-panel-header-light-framed-left-tl{background-position:0 -4px}.x-panel-header-light-framed-left-tr{background-position:right -6px}.x-panel-header-light-framed-left-bl{background-position:0 -8px}.x-panel-header-light-framed-left-br{background-position:right -10px}.x-panel-header-light-framed-left-ml{background-position:left 0}.x-panel-header-light-framed-left-mr{background-position:left 0}.x-panel-header-light-framed-left-tc{background-position:0 0}.x-panel-header-light-framed-left-bc{background-position:0 -2px}.x-panel-header-light-framed-left-tr,.x-panel-header-light-framed-left-br,.x-panel-header-light-framed-left-mr{padding-right:0}.x-panel-header-light-framed-left-tl,.x-panel-header-light-framed-left-bl,.x-panel-header-light-framed-left-ml{padding-left:2px}.x-panel-header-light-framed-left-tc{height:2px}.x-panel-header-light-framed-left-bc{height:2px}.x-panel-header-light-framed-left-tl,.x-panel-header-light-framed-left-bl,.x-panel-header-light-framed-left-tr,.x-panel-header-light-framed-left-br,.x-panel-header-light-framed-left-tc,.x-panel-header-light-framed-left-bc,.x-panel-header-light-framed-left-ml,.x-panel-header-light-framed-left-mr{background-image:url(images/panel-header/panel-header-light-framed-left-corners.gif)}.x-panel-header-light-framed-left-ml,.x-panel-header-light-framed-left-mr{background-image:url(images/panel-header/panel-header-light-framed-left-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-left-mc{padding:14px 10px 14px 10px}.x-panel-header-light-framed-collapsed-top{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:2px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-collapsed-top-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-collapsed-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-collapsed-top-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-10-14-10-14}.x-panel-header-light-framed-collapsed-top-tl{background-position:0 -4px}.x-panel-header-light-framed-collapsed-top-tr{background-position:right -6px}.x-panel-header-light-framed-collapsed-top-bl{background-position:0 -8px}.x-panel-header-light-framed-collapsed-top-br{background-position:right -10px}.x-panel-header-light-framed-collapsed-top-ml{background-position:0 top}.x-panel-header-light-framed-collapsed-top-mr{background-position:right top}.x-panel-header-light-framed-collapsed-top-tc{background-position:0 0}.x-panel-header-light-framed-collapsed-top-bc{background-position:0 -2px}.x-panel-header-light-framed-collapsed-top-tr,.x-panel-header-light-framed-collapsed-top-br,.x-panel-header-light-framed-collapsed-top-mr{padding-right:2px}.x-panel-header-light-framed-collapsed-top-tl,.x-panel-header-light-framed-collapsed-top-bl,.x-panel-header-light-framed-collapsed-top-ml{padding-left:2px}.x-panel-header-light-framed-collapsed-top-tc{height:2px}.x-panel-header-light-framed-collapsed-top-bc{height:2px}.x-panel-header-light-framed-collapsed-top-tl,.x-panel-header-light-framed-collapsed-top-bl,.x-panel-header-light-framed-collapsed-top-tr,.x-panel-header-light-framed-collapsed-top-br,.x-panel-header-light-framed-collapsed-top-tc,.x-panel-header-light-framed-collapsed-top-bc,.x-panel-header-light-framed-collapsed-top-ml,.x-panel-header-light-framed-collapsed-top-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-top-corners.gif)}.x-panel-header-light-framed-collapsed-top-ml,.x-panel-header-light-framed-collapsed-top-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-top-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-collapsed-top-mc{padding:10px 14px 10px 14px}.x-panel-header-light-framed-collapsed-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-collapsed-right-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-collapsed-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-collapsed-right-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-14-10-14-10}.x-panel-header-light-framed-collapsed-right-tl{background-position:0 -4px}.x-panel-header-light-framed-collapsed-right-tr{background-position:right -6px}.x-panel-header-light-framed-collapsed-right-bl{background-position:0 -8px}.x-panel-header-light-framed-collapsed-right-br{background-position:right -10px}.x-panel-header-light-framed-collapsed-right-ml{background-position:right 0}.x-panel-header-light-framed-collapsed-right-mr{background-position:right 0}.x-panel-header-light-framed-collapsed-right-tc{background-position:0 0}.x-panel-header-light-framed-collapsed-right-bc{background-position:0 -2px}.x-panel-header-light-framed-collapsed-right-tr,.x-panel-header-light-framed-collapsed-right-br,.x-panel-header-light-framed-collapsed-right-mr{padding-right:2px}.x-panel-header-light-framed-collapsed-right-tl,.x-panel-header-light-framed-collapsed-right-bl,.x-panel-header-light-framed-collapsed-right-ml{padding-left:2px}.x-panel-header-light-framed-collapsed-right-tc{height:2px}.x-panel-header-light-framed-collapsed-right-bc{height:2px}.x-panel-header-light-framed-collapsed-right-tl,.x-panel-header-light-framed-collapsed-right-bl,.x-panel-header-light-framed-collapsed-right-tr,.x-panel-header-light-framed-collapsed-right-br,.x-panel-header-light-framed-collapsed-right-tc,.x-panel-header-light-framed-collapsed-right-bc,.x-panel-header-light-framed-collapsed-right-ml,.x-panel-header-light-framed-collapsed-right-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-right-corners.gif)}.x-panel-header-light-framed-collapsed-right-ml,.x-panel-header-light-framed-collapsed-right-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-right-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-collapsed-right-mc{padding:14px 10px 14px 10px}.x-panel-header-light-framed-collapsed-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:10px 14px 10px 14px;border-width:2px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-collapsed-bottom-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-collapsed-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-collapsed-bottom-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-10-14-10-14}.x-panel-header-light-framed-collapsed-bottom-tl{background-position:0 -4px}.x-panel-header-light-framed-collapsed-bottom-tr{background-position:right -6px}.x-panel-header-light-framed-collapsed-bottom-bl{background-position:0 -8px}.x-panel-header-light-framed-collapsed-bottom-br{background-position:right -10px}.x-panel-header-light-framed-collapsed-bottom-ml{background-position:0 bottom}.x-panel-header-light-framed-collapsed-bottom-mr{background-position:right bottom}.x-panel-header-light-framed-collapsed-bottom-tc{background-position:0 0}.x-panel-header-light-framed-collapsed-bottom-bc{background-position:0 -2px}.x-panel-header-light-framed-collapsed-bottom-tr,.x-panel-header-light-framed-collapsed-bottom-br,.x-panel-header-light-framed-collapsed-bottom-mr{padding-right:2px}.x-panel-header-light-framed-collapsed-bottom-tl,.x-panel-header-light-framed-collapsed-bottom-bl,.x-panel-header-light-framed-collapsed-bottom-ml{padding-left:2px}.x-panel-header-light-framed-collapsed-bottom-tc{height:2px}.x-panel-header-light-framed-collapsed-bottom-bc{height:2px}.x-panel-header-light-framed-collapsed-bottom-tl,.x-panel-header-light-framed-collapsed-bottom-bl,.x-panel-header-light-framed-collapsed-bottom-tr,.x-panel-header-light-framed-collapsed-bottom-br,.x-panel-header-light-framed-collapsed-bottom-tc,.x-panel-header-light-framed-collapsed-bottom-bc,.x-panel-header-light-framed-collapsed-bottom-ml,.x-panel-header-light-framed-collapsed-bottom-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif)}.x-panel-header-light-framed-collapsed-bottom-ml,.x-panel-header-light-framed-collapsed-bottom-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-collapsed-bottom-mc{padding:10px 14px 10px 14px}.x-panel-header-light-framed-collapsed-left{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:14px 10px 14px 10px;border-width:2px;border-style:solid;background-color:#fff}.x-panel-header-light-framed-collapsed-left-mc{background-color:#fff}.x-nbr .x-panel-header-light-framed-collapsed-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-panel-header-light-framed-collapsed-left-frameInfo{font-family:dh-2-2-2-2-2-2-2-2-14-10-14-10}.x-panel-header-light-framed-collapsed-left-tl{background-position:0 -4px}.x-panel-header-light-framed-collapsed-left-tr{background-position:right -6px}.x-panel-header-light-framed-collapsed-left-bl{background-position:0 -8px}.x-panel-header-light-framed-collapsed-left-br{background-position:right -10px}.x-panel-header-light-framed-collapsed-left-ml{background-position:left 0}.x-panel-header-light-framed-collapsed-left-mr{background-position:left 0}.x-panel-header-light-framed-collapsed-left-tc{background-position:0 0}.x-panel-header-light-framed-collapsed-left-bc{background-position:0 -2px}.x-panel-header-light-framed-collapsed-left-tr,.x-panel-header-light-framed-collapsed-left-br,.x-panel-header-light-framed-collapsed-left-mr{padding-right:2px}.x-panel-header-light-framed-collapsed-left-tl,.x-panel-header-light-framed-collapsed-left-bl,.x-panel-header-light-framed-collapsed-left-ml{padding-left:2px}.x-panel-header-light-framed-collapsed-left-tc{height:2px}.x-panel-header-light-framed-collapsed-left-bc{height:2px}.x-panel-header-light-framed-collapsed-left-tl,.x-panel-header-light-framed-collapsed-left-bl,.x-panel-header-light-framed-collapsed-left-tr,.x-panel-header-light-framed-collapsed-left-br,.x-panel-header-light-framed-collapsed-left-tc,.x-panel-header-light-framed-collapsed-left-bc,.x-panel-header-light-framed-collapsed-left-ml,.x-panel-header-light-framed-collapsed-left-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-left-corners.gif)}.x-panel-header-light-framed-collapsed-left-ml,.x-panel-header-light-framed-collapsed-left-mr{background-image:url(images/panel-header/panel-header-light-framed-collapsed-left-sides.gif);background-repeat:repeat-y}.x-panel-header-light-framed-collapsed-left-mc{padding:14px 10px 14px 10px}.x-panel .x-panel-header-light-framed-top{border-bottom-width:2px !important}.x-panel .x-panel-header-light-framed-right{border-left-width:2px !important}.x-panel .x-panel-header-light-framed-bottom{border-top-width:2px !important}.x-panel .x-panel-header-light-framed-left{border-right-width:2px !important}.x-nbr .x-panel-header-light-framed-collapsed-top{border-bottom-width:0 !important}.x-nbr .x-panel-header-light-framed-collapsed-right{border-left-width:0 !important}.x-nbr .x-panel-header-light-framed-collapsed-bottom{border-top-width:0 !important}.x-nbr .x-panel-header-light-framed-collapsed-left{border-right-width:0 !important}.x-panel-header-light-framed-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-panel-header-light-framed-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-panel-header-light-framed-vertical .x-tool-after-title{margin:6px 0 0 0}.x-panel-header-light-framed-vertical .x-tool-before-title{margin:0 0 6px 0}.x-panel-header-light-framed .x-tool-focus{outline:1px solid #5fa2dd;outline-offset:1px}.x-ie8 .x-panel-header-light-framed .x-tool-focus{outline:none}.x-ie8 .x-panel-header-light-framed .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #5fa2dd;pointer-events:none}.x-panel-light-framed-resizable .x-panel-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-panel-light-framed-outer-border-l{border-left-color:#d0d0d0 !important;border-left-width:2px !important}.x-panel-light-framed-outer-border-b{border-bottom-color:#d0d0d0 !important;border-bottom-width:2px !important}.x-panel-light-framed-outer-border-bl{border-bottom-color:#d0d0d0 !important;border-bottom-width:2px !important;border-left-color:#d0d0d0 !important;border-left-width:2px !important}.x-panel-light-framed-outer-border-r{border-right-color:#d0d0d0 !important;border-right-width:2px !important}.x-panel-light-framed-outer-border-rl{border-right-color:#d0d0d0 !important;border-right-width:2px !important;border-left-color:#d0d0d0 !important;border-left-width:2px !important}.x-panel-light-framed-outer-border-rb{border-right-color:#d0d0d0 !important;border-right-width:2px !important;border-bottom-color:#d0d0d0 !important;border-bottom-width:2px !important}.x-panel-light-framed-outer-border-rbl{border-right-color:#d0d0d0 !important;border-right-width:2px !important;border-bottom-color:#d0d0d0 !important;border-bottom-width:2px !important;border-left-color:#d0d0d0 !important;border-left-width:2px !important}.x-panel-light-framed-outer-border-t{border-top-color:#d0d0d0 !important;border-top-width:2px !important}.x-panel-light-framed-outer-border-tl{border-top-color:#d0d0d0 !important;border-top-width:2px !important;border-left-color:#d0d0d0 !important;border-left-width:2px !important}.x-panel-light-framed-outer-border-tb{border-top-color:#d0d0d0 !important;border-top-width:2px !important;border-bottom-color:#d0d0d0 !important;border-bottom-width:2px !important}.x-panel-light-framed-outer-border-tbl{border-top-color:#d0d0d0 !important;border-top-width:2px !important;border-bottom-color:#d0d0d0 !important;border-bottom-width:2px !important;border-left-color:#d0d0d0 !important;border-left-width:2px !important}.x-panel-light-framed-outer-border-tr{border-top-color:#d0d0d0 !important;border-top-width:2px !important;border-right-color:#d0d0d0 !important;border-right-width:2px !important}.x-panel-light-framed-outer-border-trl{border-top-color:#d0d0d0 !important;border-top-width:2px !important;border-right-color:#d0d0d0 !important;border-right-width:2px !important;border-left-color:#d0d0d0 !important;border-left-width:2px !important}.x-panel-light-framed-outer-border-trb{border-top-color:#d0d0d0 !important;border-top-width:2px !important;border-right-color:#d0d0d0 !important;border-right-width:2px !important;border-bottom-color:#d0d0d0 !important;border-bottom-width:2px !important}.x-panel-light-framed-outer-border-trbl{border-color:#d0d0d0 !important;border-width:2px !important}.x-resizable-handle{background-repeat:no-repeat}.x-resizable-handle-east-over,.x-resizable-handle-west-over{background-position:center}.x-resizable-handle-south-over,.x-resizable-handle-north-over{background-position:center}.x-resizable-handle-southeast-over{background-position:-2px -2px}.x-resizable-handle-northwest-over{background-position:2px 2px}.x-resizable-handle-northeast-over{background-position:-2px 2px}.x-resizable-handle-southwest-over{background-position:2px -2px}.x-resizable-pinned .x-resizable-handle-east,.x-resizable-pinned .x-resizable-handle-west{background-position:center}.x-resizable-pinned .x-resizable-handle-south,.x-resizable-pinned .x-resizable-handle-north{background-position:center}.x-resizable-pinned .x-resizable-handle-southeast{background-position:-2px -2px}.x-resizable-pinned .x-resizable-handle-northwest{background-position:2px 2px}.x-resizable-pinned .x-resizable-handle-northeast{background-position:-2px 2px}.x-resizable-pinned .x-resizable-handle-southwest{background-position:2px -2px}@font-face{font-family:'FontAwesome';src:url('font-awesome/fonts/fontawesome-webfont.eot?v=4.4.0');src:url('font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.4.0') format('embedded-opentype'), url('font-awesome/fonts/fontawesome-webfont.woff2?v=4.4.0') format('woff2'), url('font-awesome/fonts/fontawesome-webfont.woff?v=4.4.0') format('woff'), url('font-awesome/fonts/fontawesome-webfont.ttf?v=4.4.0') format('truetype'), url('font-awesome/fonts/fontawesome-webfont.svg?v=4.4.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333em;line-height:0.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14286em;list-style-type:none}.fa-ul > li{position:relative}.fa-li{position:absolute;left:-2.14286em;width:2.14286em;top:0.14286em;text-align:center}.fa-li.fa-lg{left:-1.85714em}.fa-border{padding:0.2em 0.25em 0.15em;border:solid 0.08em #eee;border-radius:0.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:0.3em}.fa.fa-pull-right{margin-left:0.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:0.3em}.fa.pull-right{margin-left:0.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0);-webkit-transform:scale(-1,1);-ms-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:scale(1,-1);-ms-transform:scale(1,-1);transform:scale(1,-1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000" !important}.fa-music:before{content:"\f001" !important}.fa-search:before{content:"\f002" !important}.fa-envelope-o:before{content:"\f003" !important}.fa-heart:before{content:"\f004" !important}.fa-star:before{content:"\f005" !important}.fa-star-o:before{content:"\f006" !important}.fa-user:before{content:"\f007" !important}.fa-film:before{content:"\f008" !important}.fa-th-large:before{content:"\f009" !important}.fa-th:before{content:"\f00a" !important}.fa-th-list:before{content:"\f00b" !important}.fa-check:before{content:"\f00c" !important}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d" !important}.fa-search-plus:before{content:"\f00e" !important}.fa-search-minus:before{content:"\f010" !important}.fa-power-off:before{content:"\f011" !important}.fa-signal:before{content:"\f012" !important}.fa-gear:before,.fa-cog:before{content:"\f013" !important}.fa-trash-o:before{content:"\f014" !important}.fa-home:before{content:"\f015" !important}.fa-file-o:before{content:"\f016" !important}.fa-clock-o:before{content:"\f017" !important}.fa-road:before{content:"\f018" !important}.fa-download:before{content:"\f019" !important}.fa-arrow-circle-o-down:before{content:"\f01a" !important}.fa-arrow-circle-o-up:before{content:"\f01b" !important}.fa-inbox:before{content:"\f01c" !important}.fa-play-circle-o:before{content:"\f01d" !important}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e" !important}.fa-refresh:before{content:"\f021" !important}.fa-list-alt:before{content:"\f022" !important}.fa-lock:before{content:"\f023" !important}.fa-flag:before{content:"\f024" !important}.fa-headphones:before{content:"\f025" !important}.fa-volume-off:before{content:"\f026" !important}.fa-volume-down:before{content:"\f027" !important}.fa-volume-up:before{content:"\f028" !important}.fa-qrcode:before{content:"\f029" !important}.fa-barcode:before{content:"\f02a" !important}.fa-tag:before{content:"\f02b" !important}.fa-tags:before{content:"\f02c" !important}.fa-book:before{content:"\f02d" !important}.fa-bookmark:before{content:"\f02e" !important}.fa-print:before{content:"\f02f" !important}.fa-camera:before{content:"\f030" !important}.fa-font:before{content:"\f031" !important}.fa-bold:before{content:"\f032" !important}.fa-italic:before{content:"\f033" !important}.fa-text-height:before{content:"\f034" !important}.fa-text-width:before{content:"\f035" !important}.fa-align-left:before{content:"\f036" !important}.fa-align-center:before{content:"\f037" !important}.fa-align-right:before{content:"\f038" !important}.fa-align-justify:before{content:"\f039" !important}.fa-list:before{content:"\f03a" !important}.fa-dedent:before,.fa-outdent:before{content:"\f03b" !important}.fa-indent:before{content:"\f03c" !important}.fa-video-camera:before{content:"\f03d" !important}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e" !important}.fa-pencil:before{content:"\f040" !important}.fa-map-marker:before{content:"\f041" !important}.fa-adjust:before{content:"\f042" !important}.fa-tint:before{content:"\f043" !important}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044" !important}.fa-share-square-o:before{content:"\f045" !important}.fa-check-square-o:before{content:"\f046" !important}.fa-arrows:before{content:"\f047" !important}.fa-step-backward:before{content:"\f048" !important}.fa-fast-backward:before{content:"\f049" !important}.fa-backward:before{content:"\f04a" !important}.fa-play:before{content:"\f04b" !important}.fa-pause:before{content:"\f04c" !important}.fa-stop:before{content:"\f04d" !important}.fa-forward:before{content:"\f04e" !important}.fa-fast-forward:before{content:"\f050" !important}.fa-step-forward:before{content:"\f051" !important}.fa-eject:before{content:"\f052" !important}.fa-chevron-left:before{content:"\f053" !important}.fa-chevron-right:before{content:"\f054" !important}.fa-plus-circle:before{content:"\f055" !important}.fa-minus-circle:before{content:"\f056" !important}.fa-times-circle:before{content:"\f057" !important}.fa-check-circle:before{content:"\f058" !important}.fa-question-circle:before{content:"\f059" !important}.fa-info-circle:before{content:"\f05a" !important}.fa-crosshairs:before{content:"\f05b" !important}.fa-times-circle-o:before{content:"\f05c" !important}.fa-check-circle-o:before{content:"\f05d" !important}.fa-ban:before{content:"\f05e" !important}.fa-arrow-left:before{content:"\f060" !important}.fa-arrow-right:before{content:"\f061" !important}.fa-arrow-up:before{content:"\f062" !important}.fa-arrow-down:before{content:"\f063" !important}.fa-mail-forward:before,.fa-share:before{content:"\f064" !important}.fa-expand:before{content:"\f065" !important}.fa-compress:before{content:"\f066" !important}.fa-plus:before{content:"\f067" !important}.fa-minus:before{content:"\f068" !important}.fa-asterisk:before{content:"\f069" !important}.fa-exclamation-circle:before{content:"\f06a" !important}.fa-gift:before{content:"\f06b" !important}.fa-leaf:before{content:"\f06c" !important}.fa-fire:before{content:"\f06d" !important}.fa-eye:before{content:"\f06e" !important}.fa-eye-slash:before{content:"\f070" !important}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071" !important}.fa-plane:before{content:"\f072" !important}.fa-calendar:before{content:"\f073" !important}.fa-random:before{content:"\f074" !important}.fa-comment:before{content:"\f075" !important}.fa-magnet:before{content:"\f076" !important}.fa-chevron-up:before{content:"\f077" !important}.fa-chevron-down:before{content:"\f078" !important}.fa-retweet:before{content:"\f079" !important}.fa-shopping-cart:before{content:"\f07a" !important}.fa-folder:before{content:"\f07b" !important}.fa-folder-open:before{content:"\f07c" !important}.fa-arrows-v:before{content:"\f07d" !important}.fa-arrows-h:before{content:"\f07e" !important}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080" !important}.fa-twitter-square:before{content:"\f081" !important}.fa-facebook-square:before{content:"\f082" !important}.fa-camera-retro:before{content:"\f083" !important}.fa-key:before{content:"\f084" !important}.fa-gears:before,.fa-cogs:before{content:"\f085" !important}.fa-comments:before{content:"\f086" !important}.fa-thumbs-o-up:before{content:"\f087" !important}.fa-thumbs-o-down:before{content:"\f088" !important}.fa-star-half:before{content:"\f089" !important}.fa-heart-o:before{content:"\f08a" !important}.fa-sign-out:before{content:"\f08b" !important}.fa-linkedin-square:before{content:"\f08c" !important}.fa-thumb-tack:before{content:"\f08d" !important}.fa-external-link:before{content:"\f08e" !important}.fa-sign-in:before{content:"\f090" !important}.fa-trophy:before{content:"\f091" !important}.fa-github-square:before{content:"\f092" !important}.fa-upload:before{content:"\f093" !important}.fa-lemon-o:before{content:"\f094" !important}.fa-phone:before{content:"\f095" !important}.fa-square-o:before{content:"\f096" !important}.fa-bookmark-o:before{content:"\f097" !important}.fa-phone-square:before{content:"\f098" !important}.fa-twitter:before{content:"\f099" !important}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a" !important}.fa-github:before{content:"\f09b" !important}.fa-unlock:before{content:"\f09c" !important}.fa-credit-card:before{content:"\f09d" !important}.fa-feed:before,.fa-rss:before{content:"\f09e" !important}.fa-hdd-o:before{content:"\f0a0" !important}.fa-bullhorn:before{content:"\f0a1" !important}.fa-bell:before{content:"\f0f3" !important}.fa-certificate:before{content:"\f0a3" !important}.fa-hand-o-right:before{content:"\f0a4" !important}.fa-hand-o-left:before{content:"\f0a5" !important}.fa-hand-o-up:before{content:"\f0a6" !important}.fa-hand-o-down:before{content:"\f0a7" !important}.fa-arrow-circle-left:before{content:"\f0a8" !important}.fa-arrow-circle-right:before{content:"\f0a9" !important}.fa-arrow-circle-up:before{content:"\f0aa" !important}.fa-arrow-circle-down:before{content:"\f0ab" !important}.fa-globe:before{content:"\f0ac" !important}.fa-wrench:before{content:"\f0ad" !important}.fa-tasks:before{content:"\f0ae" !important}.fa-filter:before{content:"\f0b0" !important}.fa-briefcase:before{content:"\f0b1" !important}.fa-arrows-alt:before{content:"\f0b2" !important}.fa-group:before,.fa-users:before{content:"\f0c0" !important}.fa-chain:before,.fa-link:before{content:"\f0c1" !important}.fa-cloud:before{content:"\f0c2" !important}.fa-flask:before{content:"\f0c3" !important}.fa-cut:before,.fa-scissors:before{content:"\f0c4" !important}.fa-copy:before,.fa-files-o:before{content:"\f0c5" !important}.fa-paperclip:before{content:"\f0c6" !important}.fa-save:before,.fa-floppy-o:before{content:"\f0c7" !important}.fa-square:before{content:"\f0c8" !important}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9" !important}.fa-list-ul:before{content:"\f0ca" !important}.fa-list-ol:before{content:"\f0cb" !important}.fa-strikethrough:before{content:"\f0cc" !important}.fa-underline:before{content:"\f0cd" !important}.fa-table:before{content:"\f0ce" !important}.fa-magic:before{content:"\f0d0" !important}.fa-truck:before{content:"\f0d1" !important}.fa-pinterest:before{content:"\f0d2" !important}.fa-pinterest-square:before{content:"\f0d3" !important}.fa-google-plus-square:before{content:"\f0d4" !important}.fa-google-plus:before{content:"\f0d5" !important}.fa-money:before{content:"\f0d6" !important}.fa-caret-down:before{content:"\f0d7" !important}.fa-caret-up:before{content:"\f0d8" !important}.fa-caret-left:before{content:"\f0d9" !important}.fa-caret-right:before{content:"\f0da" !important}.fa-columns:before{content:"\f0db" !important}.fa-unsorted:before,.fa-sort:before{content:"\f0dc" !important}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd" !important}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de" !important}.fa-envelope:before{content:"\f0e0" !important}.fa-linkedin:before{content:"\f0e1" !important}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2" !important}.fa-legal:before,.fa-gavel:before{content:"\f0e3" !important}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4" !important}.fa-comment-o:before{content:"\f0e5" !important}.fa-comments-o:before{content:"\f0e6" !important}.fa-flash:before,.fa-bolt:before{content:"\f0e7" !important}.fa-sitemap:before{content:"\f0e8" !important}.fa-umbrella:before{content:"\f0e9" !important}.fa-paste:before,.fa-clipboard:before{content:"\f0ea" !important}.fa-lightbulb-o:before{content:"\f0eb" !important}.fa-exchange:before{content:"\f0ec" !important}.fa-cloud-download:before{content:"\f0ed" !important}.fa-cloud-upload:before{content:"\f0ee" !important}.fa-user-md:before{content:"\f0f0" !important}.fa-stethoscope:before{content:"\f0f1" !important}.fa-suitcase:before{content:"\f0f2" !important}.fa-bell-o:before{content:"\f0a2" !important}.fa-coffee:before{content:"\f0f4" !important}.fa-cutlery:before{content:"\f0f5" !important}.fa-file-text-o:before{content:"\f0f6" !important}.fa-building-o:before{content:"\f0f7" !important}.fa-hospital-o:before{content:"\f0f8" !important}.fa-ambulance:before{content:"\f0f9" !important}.fa-medkit:before{content:"\f0fa" !important}.fa-fighter-jet:before{content:"\f0fb" !important}.fa-beer:before{content:"\f0fc" !important}.fa-h-square:before{content:"\f0fd" !important}.fa-plus-square:before{content:"\f0fe" !important}.fa-angle-double-left:before{content:"\f100" !important}.fa-angle-double-right:before{content:"\f101" !important}.fa-angle-double-up:before{content:"\f102" !important}.fa-angle-double-down:before{content:"\f103" !important}.fa-angle-left:before{content:"\f104" !important}.fa-angle-right:before{content:"\f105" !important}.fa-angle-up:before{content:"\f106" !important}.fa-angle-down:before{content:"\f107" !important}.fa-desktop:before{content:"\f108" !important}.fa-laptop:before{content:"\f109" !important}.fa-tablet:before{content:"\f10a" !important}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b" !important}.fa-circle-o:before{content:"\f10c" !important}.fa-quote-left:before{content:"\f10d" !important}.fa-quote-right:before{content:"\f10e" !important}.fa-spinner:before{content:"\f110" !important}.fa-circle:before{content:"\f111" !important}.fa-mail-reply:before,.fa-reply:before{content:"\f112" !important}.fa-github-alt:before{content:"\f113" !important}.fa-folder-o:before{content:"\f114" !important}.fa-folder-open-o:before{content:"\f115" !important} \ No newline at end of file diff --git a/frontend/build/production/DynamicForm/resources/DynamicForm-all_2.css b/frontend/build/production/DynamicForm/resources/DynamicForm-all_2.css new file mode 100644 index 000000000..6b165a70a --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/DynamicForm-all_2.css @@ -0,0 +1 @@ +.fa-smile-o:before{content:"\f118" !important}.fa-frown-o:before{content:"\f119" !important}.fa-meh-o:before{content:"\f11a" !important}.fa-gamepad:before{content:"\f11b" !important}.fa-keyboard-o:before{content:"\f11c" !important}.fa-flag-o:before{content:"\f11d" !important}.fa-flag-checkered:before{content:"\f11e" !important}.fa-terminal:before{content:"\f120" !important}.fa-code:before{content:"\f121" !important}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122" !important}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123" !important}.fa-location-arrow:before{content:"\f124" !important}.fa-crop:before{content:"\f125" !important}.fa-code-fork:before{content:"\f126" !important}.fa-unlink:before,.fa-chain-broken:before{content:"\f127" !important}.fa-question:before{content:"\f128" !important}.fa-info:before{content:"\f129" !important}.fa-exclamation:before{content:"\f12a" !important}.fa-superscript:before{content:"\f12b" !important}.fa-subscript:before{content:"\f12c" !important}.fa-eraser:before{content:"\f12d" !important}.fa-puzzle-piece:before{content:"\f12e" !important}.fa-microphone:before{content:"\f130" !important}.fa-microphone-slash:before{content:"\f131" !important}.fa-shield:before{content:"\f132" !important}.fa-calendar-o:before{content:"\f133" !important}.fa-fire-extinguisher:before{content:"\f134" !important}.fa-rocket:before{content:"\f135" !important}.fa-maxcdn:before{content:"\f136" !important}.fa-chevron-circle-left:before{content:"\f137" !important}.fa-chevron-circle-right:before{content:"\f138" !important}.fa-chevron-circle-up:before{content:"\f139" !important}.fa-chevron-circle-down:before{content:"\f13a" !important}.fa-html5:before{content:"\f13b" !important}.fa-css3:before{content:"\f13c" !important}.fa-anchor:before{content:"\f13d" !important}.fa-unlock-alt:before{content:"\f13e" !important}.fa-bullseye:before{content:"\f140" !important}.fa-ellipsis-h:before{content:"\f141" !important}.fa-ellipsis-v:before{content:"\f142" !important}.fa-rss-square:before{content:"\f143" !important}.fa-play-circle:before{content:"\f144" !important}.fa-ticket:before{content:"\f145" !important}.fa-minus-square:before{content:"\f146" !important}.fa-minus-square-o:before{content:"\f147" !important}.fa-level-up:before{content:"\f148" !important}.fa-level-down:before{content:"\f149" !important}.fa-check-square:before{content:"\f14a" !important}.fa-pencil-square:before{content:"\f14b" !important}.fa-external-link-square:before{content:"\f14c" !important}.fa-share-square:before{content:"\f14d" !important}.fa-compass:before{content:"\f14e" !important}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150" !important}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151" !important}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152" !important}.fa-euro:before,.fa-eur:before{content:"\f153" !important}.fa-gbp:before{content:"\f154" !important}.fa-dollar:before,.fa-usd:before{content:"\f155" !important}.fa-rupee:before,.fa-inr:before{content:"\f156" !important}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157" !important}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158" !important}.fa-won:before,.fa-krw:before{content:"\f159" !important}.fa-bitcoin:before,.fa-btc:before{content:"\f15a" !important}.fa-file:before{content:"\f15b" !important}.fa-file-text:before{content:"\f15c" !important}.fa-sort-alpha-asc:before{content:"\f15d" !important}.fa-sort-alpha-desc:before{content:"\f15e" !important}.fa-sort-amount-asc:before{content:"\f160" !important}.fa-sort-amount-desc:before{content:"\f161" !important}.fa-sort-numeric-asc:before{content:"\f162" !important}.fa-sort-numeric-desc:before{content:"\f163" !important}.fa-thumbs-up:before{content:"\f164" !important}.fa-thumbs-down:before{content:"\f165" !important}.fa-youtube-square:before{content:"\f166" !important}.fa-youtube:before{content:"\f167" !important}.fa-xing:before{content:"\f168" !important}.fa-xing-square:before{content:"\f169" !important}.fa-youtube-play:before{content:"\f16a" !important}.fa-dropbox:before{content:"\f16b" !important}.fa-stack-overflow:before{content:"\f16c" !important}.fa-instagram:before{content:"\f16d" !important}.fa-flickr:before{content:"\f16e" !important}.fa-adn:before{content:"\f170" !important}.fa-bitbucket:before{content:"\f171" !important}.fa-bitbucket-square:before{content:"\f172" !important}.fa-tumblr:before{content:"\f173" !important}.fa-tumblr-square:before{content:"\f174" !important}.fa-long-arrow-down:before{content:"\f175" !important}.fa-long-arrow-up:before{content:"\f176" !important}.fa-long-arrow-left:before{content:"\f177" !important}.fa-long-arrow-right:before{content:"\f178" !important}.fa-apple:before{content:"\f179" !important}.fa-windows:before{content:"\f17a" !important}.fa-android:before{content:"\f17b" !important}.fa-linux:before{content:"\f17c" !important}.fa-dribbble:before{content:"\f17d" !important}.fa-skype:before{content:"\f17e" !important}.fa-foursquare:before{content:"\f180" !important}.fa-trello:before{content:"\f181" !important}.fa-female:before{content:"\f182" !important}.fa-male:before{content:"\f183" !important}.fa-gittip:before,.fa-gratipay:before{content:"\f184" !important}.fa-sun-o:before{content:"\f185" !important}.fa-moon-o:before{content:"\f186" !important}.fa-archive:before{content:"\f187" !important}.fa-bug:before{content:"\f188" !important}.fa-vk:before{content:"\f189" !important}.fa-weibo:before{content:"\f18a" !important}.fa-renren:before{content:"\f18b" !important}.fa-pagelines:before{content:"\f18c" !important}.fa-stack-exchange:before{content:"\f18d" !important}.fa-arrow-circle-o-right:before{content:"\f18e" !important}.fa-arrow-circle-o-left:before{content:"\f190" !important}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191" !important}.fa-dot-circle-o:before{content:"\f192" !important}.fa-wheelchair:before{content:"\f193" !important}.fa-vimeo-square:before{content:"\f194" !important}.fa-turkish-lira:before,.fa-try:before{content:"\f195" !important}.fa-plus-square-o:before{content:"\f196" !important}.fa-space-shuttle:before{content:"\f197" !important}.fa-slack:before{content:"\f198" !important}.fa-envelope-square:before{content:"\f199" !important}.fa-wordpress:before{content:"\f19a" !important}.fa-openid:before{content:"\f19b" !important}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c" !important}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d" !important}.fa-yahoo:before{content:"\f19e" !important}.fa-google:before{content:"\f1a0" !important}.fa-reddit:before{content:"\f1a1" !important}.fa-reddit-square:before{content:"\f1a2" !important}.fa-stumbleupon-circle:before{content:"\f1a3" !important}.fa-stumbleupon:before{content:"\f1a4" !important}.fa-delicious:before{content:"\f1a5" !important}.fa-digg:before{content:"\f1a6" !important}.fa-pied-piper:before{content:"\f1a7" !important}.fa-pied-piper-alt:before{content:"\f1a8" !important}.fa-drupal:before{content:"\f1a9" !important}.fa-joomla:before{content:"\f1aa" !important}.fa-language:before{content:"\f1ab" !important}.fa-fax:before{content:"\f1ac" !important}.fa-building:before{content:"\f1ad" !important}.fa-child:before{content:"\f1ae" !important}.fa-paw:before{content:"\f1b0" !important}.fa-spoon:before{content:"\f1b1" !important}.fa-cube:before{content:"\f1b2" !important}.fa-cubes:before{content:"\f1b3" !important}.fa-behance:before{content:"\f1b4" !important}.fa-behance-square:before{content:"\f1b5" !important}.fa-steam:before{content:"\f1b6" !important}.fa-steam-square:before{content:"\f1b7" !important}.fa-recycle:before{content:"\f1b8" !important}.fa-automobile:before,.fa-car:before{content:"\f1b9" !important}.fa-cab:before,.fa-taxi:before{content:"\f1ba" !important}.fa-tree:before{content:"\f1bb" !important}.fa-spotify:before{content:"\f1bc" !important}.fa-deviantart:before{content:"\f1bd" !important}.fa-soundcloud:before{content:"\f1be" !important}.fa-database:before{content:"\f1c0" !important}.fa-file-pdf-o:before{content:"\f1c1" !important}.fa-file-word-o:before{content:"\f1c2" !important}.fa-file-excel-o:before{content:"\f1c3" !important}.fa-file-powerpoint-o:before{content:"\f1c4" !important}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5" !important}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6" !important}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7" !important}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8" !important}.fa-file-code-o:before{content:"\f1c9" !important}.fa-vine:before{content:"\f1ca" !important}.fa-codepen:before{content:"\f1cb" !important}.fa-jsfiddle:before{content:"\f1cc" !important}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd" !important}.fa-circle-o-notch:before{content:"\f1ce" !important}.fa-ra:before,.fa-rebel:before{content:"\f1d0" !important}.fa-ge:before,.fa-empire:before{content:"\f1d1" !important}.fa-git-square:before{content:"\f1d2" !important}.fa-git:before{content:"\f1d3" !important}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4" !important}.fa-tencent-weibo:before{content:"\f1d5" !important}.fa-qq:before{content:"\f1d6" !important}.fa-wechat:before,.fa-weixin:before{content:"\f1d7" !important}.fa-send:before,.fa-paper-plane:before{content:"\f1d8" !important}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9" !important}.fa-history:before{content:"\f1da" !important}.fa-circle-thin:before{content:"\f1db" !important}.fa-header:before{content:"\f1dc" !important}.fa-paragraph:before{content:"\f1dd" !important}.fa-sliders:before{content:"\f1de" !important}.fa-share-alt:before{content:"\f1e0" !important}.fa-share-alt-square:before{content:"\f1e1" !important}.fa-bomb:before{content:"\f1e2" !important}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3" !important}.fa-tty:before{content:"\f1e4" !important}.fa-binoculars:before{content:"\f1e5" !important}.fa-plug:before{content:"\f1e6" !important}.fa-slideshare:before{content:"\f1e7" !important}.fa-twitch:before{content:"\f1e8" !important}.fa-yelp:before{content:"\f1e9" !important}.fa-newspaper-o:before{content:"\f1ea" !important}.fa-wifi:before{content:"\f1eb" !important}.fa-calculator:before{content:"\f1ec" !important}.fa-paypal:before{content:"\f1ed" !important}.fa-google-wallet:before{content:"\f1ee" !important}.fa-cc-visa:before{content:"\f1f0" !important}.fa-cc-mastercard:before{content:"\f1f1" !important}.fa-cc-discover:before{content:"\f1f2" !important}.fa-cc-amex:before{content:"\f1f3" !important}.fa-cc-paypal:before{content:"\f1f4" !important}.fa-cc-stripe:before{content:"\f1f5" !important}.fa-bell-slash:before{content:"\f1f6" !important}.fa-bell-slash-o:before{content:"\f1f7" !important}.fa-trash:before{content:"\f1f8" !important}.fa-copyright:before{content:"\f1f9" !important}.fa-at:before{content:"\f1fa" !important}.fa-eyedropper:before{content:"\f1fb" !important}.fa-paint-brush:before{content:"\f1fc" !important}.fa-birthday-cake:before{content:"\f1fd" !important}.fa-area-chart:before{content:"\f1fe" !important}.fa-pie-chart:before{content:"\f200" !important}.fa-line-chart:before{content:"\f201" !important}.fa-lastfm:before{content:"\f202" !important}.fa-lastfm-square:before{content:"\f203" !important}.fa-toggle-off:before{content:"\f204" !important}.fa-toggle-on:before{content:"\f205" !important}.fa-bicycle:before{content:"\f206" !important}.fa-bus:before{content:"\f207" !important}.fa-ioxhost:before{content:"\f208" !important}.fa-angellist:before{content:"\f209" !important}.fa-cc:before{content:"\f20a" !important}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b" !important}.fa-meanpath:before{content:"\f20c" !important}.fa-buysellads:before{content:"\f20d" !important}.fa-connectdevelop:before{content:"\f20e" !important}.fa-dashcube:before{content:"\f210" !important}.fa-forumbee:before{content:"\f211" !important}.fa-leanpub:before{content:"\f212" !important}.fa-sellsy:before{content:"\f213" !important}.fa-shirtsinbulk:before{content:"\f214" !important}.fa-simplybuilt:before{content:"\f215" !important}.fa-skyatlas:before{content:"\f216" !important}.fa-cart-plus:before{content:"\f217" !important}.fa-cart-arrow-down:before{content:"\f218" !important}.fa-diamond:before{content:"\f219" !important}.fa-ship:before{content:"\f21a" !important}.fa-user-secret:before{content:"\f21b" !important}.fa-motorcycle:before{content:"\f21c" !important}.fa-street-view:before{content:"\f21d" !important}.fa-heartbeat:before{content:"\f21e" !important}.fa-venus:before{content:"\f221" !important}.fa-mars:before{content:"\f222" !important}.fa-mercury:before{content:"\f223" !important}.fa-intersex:before,.fa-transgender:before{content:"\f224" !important}.fa-transgender-alt:before{content:"\f225" !important}.fa-venus-double:before{content:"\f226" !important}.fa-mars-double:before{content:"\f227" !important}.fa-venus-mars:before{content:"\f228" !important}.fa-mars-stroke:before{content:"\f229" !important}.fa-mars-stroke-v:before{content:"\f22a" !important}.fa-mars-stroke-h:before{content:"\f22b" !important}.fa-neuter:before{content:"\f22c" !important}.fa-genderless:before{content:"\f22d" !important}.fa-facebook-official:before{content:"\f230" !important}.fa-pinterest-p:before{content:"\f231" !important}.fa-whatsapp:before{content:"\f232" !important}.fa-server:before{content:"\f233" !important}.fa-user-plus:before{content:"\f234" !important}.fa-user-times:before{content:"\f235" !important}.fa-hotel:before,.fa-bed:before{content:"\f236" !important}.fa-viacoin:before{content:"\f237" !important}.fa-train:before{content:"\f238" !important}.fa-subway:before{content:"\f239" !important}.fa-medium:before{content:"\f23a" !important}.fa-yc:before,.fa-y-combinator:before{content:"\f23b" !important}.fa-optin-monster:before{content:"\f23c" !important}.fa-opencart:before{content:"\f23d" !important}.fa-expeditedssl:before{content:"\f23e" !important}.fa-battery-4:before,.fa-battery-full:before{content:"\f240" !important}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241" !important}.fa-battery-2:before,.fa-battery-half:before{content:"\f242" !important}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243" !important}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244" !important}.fa-mouse-pointer:before{content:"\f245" !important}.fa-i-cursor:before{content:"\f246" !important}.fa-object-group:before{content:"\f247" !important}.fa-object-ungroup:before{content:"\f248" !important}.fa-sticky-note:before{content:"\f249" !important}.fa-sticky-note-o:before{content:"\f24a" !important}.fa-cc-jcb:before{content:"\f24b" !important}.fa-cc-diners-club:before{content:"\f24c" !important}.fa-clone:before{content:"\f24d" !important}.fa-balance-scale:before{content:"\f24e" !important}.fa-hourglass-o:before{content:"\f250" !important}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251" !important}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252" !important}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253" !important}.fa-hourglass:before{content:"\f254" !important}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255" !important}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256" !important}.fa-hand-scissors-o:before{content:"\f257" !important}.fa-hand-lizard-o:before{content:"\f258" !important}.fa-hand-spock-o:before{content:"\f259" !important}.fa-hand-pointer-o:before{content:"\f25a" !important}.fa-hand-peace-o:before{content:"\f25b" !important}.fa-trademark:before{content:"\f25c" !important}.fa-registered:before{content:"\f25d" !important}.fa-creative-commons:before{content:"\f25e" !important}.fa-gg:before{content:"\f260" !important}.fa-gg-circle:before{content:"\f261" !important}.fa-tripadvisor:before{content:"\f262" !important}.fa-odnoklassniki:before{content:"\f263" !important}.fa-odnoklassniki-square:before{content:"\f264" !important}.fa-get-pocket:before{content:"\f265" !important}.fa-wikipedia-w:before{content:"\f266" !important}.fa-safari:before{content:"\f267" !important}.fa-chrome:before{content:"\f268" !important}.fa-firefox:before{content:"\f269" !important}.fa-opera:before{content:"\f26a" !important}.fa-internet-explorer:before{content:"\f26b" !important}.fa-tv:before,.fa-television:before{content:"\f26c" !important}.fa-contao:before{content:"\f26d" !important}.fa-500px:before{content:"\f26e" !important}.fa-amazon:before{content:"\f270" !important}.fa-calendar-plus-o:before{content:"\f271" !important}.fa-calendar-minus-o:before{content:"\f272" !important}.fa-calendar-times-o:before{content:"\f273" !important}.fa-calendar-check-o:before{content:"\f274" !important}.fa-industry:before{content:"\f275" !important}.fa-map-pin:before{content:"\f276" !important}.fa-map-signs:before{content:"\f277" !important}.fa-map-o:before{content:"\f278" !important}.fa-map:before{content:"\f279" !important}.fa-commenting:before{content:"\f27a" !important}.fa-commenting-o:before{content:"\f27b" !important}.fa-houzz:before{content:"\f27c" !important}.fa-vimeo:before{content:"\f27d" !important}.fa-black-tie:before{content:"\f27e" !important}.fa-fonticons:before{content:"\f280" !important}.x-fa:before{font-family:FontAwesome !important}@font-face{font-family:'ExtJS';src:url('../resources/font-ext/fonts/ExtJS.eot?-tqegh9');src:url('../resources/font-ext/fonts/ExtJS.eot?#iefix-tqegh9') format('embedded-opentype'), url('../resources/font-ext/fonts/ExtJS.ttf?-tqegh9') format('truetype'), url('../resources/font-ext/fonts/ExtJS.woff?-tqegh9') format('woff'), url('../resources/font-ext/fonts/ExtJS.svg?-tqegh9#ExtJS') format('svg');font-weight:normal;font-style:normal}.ext{font-family:ExtJS}.ext-sencha:before{content:"\e61e"}.ext-checkbox-checked:before{content:"\e613"}.ext-checkbox-unchecked:before{content:"\e614"}.ext-chevron-left:before{content:"\e615"}.ext-chevron-right:before{content:"\e616"}.ext-double-chevron-left:before{content:"\e617"}.ext-double-chevron-right:before{content:"\e618"}.ext-sort-down:before{content:"\e619"}.ext-sort-up:before{content:"\e61a"}.ext-spinner-down:before{content:"\e61b"}.ext-spinner-up:before{content:"\e61c"}.ext-square-edit:before{content:"\e61d"}.ext-equals-vertical:before{content:"\e612"}.ext-collapse:before{content:"\e600"}.ext-columns:before{content:"\e601"}.ext-dirty:before{content:"\e602"}.ext-dirty-rtl:before{content:"\e603"}.ext-edit-html:before{content:"\e604"}.ext-equals:before{content:"\e605"}.ext-expand:before{content:"\e606"}.ext-group-by:before{content:"\e607"}.ext-minimize:before{content:"\e608"}.ext-nw-handle:before{content:"\e609"}.ext-ne-handle:before{content:"\e60a"}.ext-sw-handle:before{content:"\e60b"}.ext-se-handle:before{content:"\e60c"}.ext-text-background-color:before{content:"\e60d"}.ext-text-color:before{content:"\e60e"}.ext-text-decrease:before{content:"\e60f"}.ext-text-increase:before{content:"\e610"}.ext-unpin:before{content:"\e611"}@font-face{font-family:'Open Sans';src:url('fonts/OpenSans-Light.ttf');font-weight:300;font-style:normal}@font-face{font-family:'Open Sans';src:url('fonts/OpenSans-LightItalic.ttf');font-weight:300;font-style:italic}@font-face{font-family:'Open Sans';src:url('fonts/OpenSans-Regular.ttf');font-weight:400;font-style:normal}@font-face{font-family:'Open Sans';src:url('fonts/OpenSans-Italic.ttf');font-weight:400;font-style:italic}@font-face{font-family:'Open Sans';src:url('fonts/OpenSans-Semibold.ttf');font-weight:600;font-style:normal}@font-face{font-family:'Open Sans';src:url('fonts/OpenSans-SemiboldItalic.ttf');font-weight:600;font-style:italic}@font-face{font-family:'Open Sans';src:url('fonts/OpenSans-Bold.ttf');font-weight:700;font-style:normal}@font-face{font-family:'Open Sans';src:url('fonts/OpenSans-BoldItalic.ttf');font-weight:700;font-style:italic}@font-face{font-family:'Open Sans';src:url('fonts/OpenSans-ExtraBold.ttf');font-weight:800;font-style:normal}@font-face{font-family:'Open Sans';src:url('fonts/OpenSans-ExtraBoldItalic.ttf');font-weight:800;font-style:italic}.x-fieldset{border-top:1px solid #bbb !important;background:#f6f6f6;position:static}.x-fieldset .x-fieldset-header{padding:10px 5px 10px 5px}.x-fieldset .x-fieldset-body{position:relative}.x-fieldset.x-fieldset-collapsed{background:none}.x-menu-item-active .x-menu-item-text{font-weight:400}.x-tab-close-btn:before{display:block;width:16px;line-height:16px;text-align:center}.x-tab-navigation-top{-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0;padding:24px 24px 24px 24px;border-width:0;border-style:solid;background-color:transparent}.x-tab-navigation-top-mc{background-color:transparent}.x-nbr .x-tab-navigation-top{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-navigation-top-frameInfo{font-family:th-0-0-0-0-0-0-0-0-24-24-24-24}.x-tab-navigation-top-tl{background-position:0 0}.x-tab-navigation-top-tr{background-position:right 0}.x-tab-navigation-top-bl{background-position:0 0}.x-tab-navigation-top-br{background-position:right 0}.x-tab-navigation-top-ml{background-position:0 top}.x-tab-navigation-top-mr{background-position:right top}.x-tab-navigation-top-tc{background-position:0 0}.x-tab-navigation-top-bc{background-position:0 0}.x-tab-navigation-top-tr,.x-tab-navigation-top-br,.x-tab-navigation-top-mr{padding-right:0}.x-tab-navigation-top-tl,.x-tab-navigation-top-bl,.x-tab-navigation-top-ml{padding-left:0}.x-tab-navigation-top-tc{height:0}.x-tab-navigation-top-bc{height:0}.x-tab-navigation-top-mc{padding:24px 24px 24px 24px}.x-tab-navigation-bottom{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:24px 24px 24px 24px;border-width:0 0 0 0;border-style:solid;background-color:transparent}.x-tab-navigation-bottom-mc{background-color:transparent}.x-nbr .x-tab-navigation-bottom{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-navigation-bottom-frameInfo{font-family:th-0-0-0-0-0-0-0-0-24-24-24-24}.x-tab-navigation-bottom-tl{background-position:0 0}.x-tab-navigation-bottom-tr{background-position:right 0}.x-tab-navigation-bottom-bl{background-position:0 0}.x-tab-navigation-bottom-br{background-position:right 0}.x-tab-navigation-bottom-ml{background-position:0 bottom}.x-tab-navigation-bottom-mr{background-position:right bottom}.x-tab-navigation-bottom-tc{background-position:0 0}.x-tab-navigation-bottom-bc{background-position:0 0}.x-tab-navigation-bottom-tr,.x-tab-navigation-bottom-br,.x-tab-navigation-bottom-mr{padding-right:0}.x-tab-navigation-bottom-tl,.x-tab-navigation-bottom-bl,.x-tab-navigation-bottom-ml{padding-left:0}.x-tab-navigation-bottom-tc{height:0}.x-tab-navigation-bottom-bc{height:0}.x-tab-navigation-bottom-mc{padding:24px 24px 24px 24px}.x-tab-navigation-left{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:24px 24px 24px 24px;border-width:0 0 0 0;border-style:solid;background-color:transparent}.x-tab-navigation-left-mc{background-color:transparent}.x-nbr .x-tab-navigation-left{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-navigation-left-frameInfo{font-family:th-0-0-0-0-0-0-0-0-24-24-24-24}.x-tab-navigation-left-tl{background-position:0 0}.x-tab-navigation-left-tr{background-position:right 0}.x-tab-navigation-left-bl{background-position:0 0}.x-tab-navigation-left-br{background-position:right 0}.x-tab-navigation-left-ml{background-position:0 top}.x-tab-navigation-left-mr{background-position:right top}.x-tab-navigation-left-tc{background-position:0 0}.x-tab-navigation-left-bc{background-position:0 0}.x-tab-navigation-left-tr,.x-tab-navigation-left-br,.x-tab-navigation-left-mr{padding-right:0}.x-tab-navigation-left-tl,.x-tab-navigation-left-bl,.x-tab-navigation-left-ml{padding-left:0}.x-tab-navigation-left-tc{height:0}.x-tab-navigation-left-bc{height:0}.x-tab-navigation-left-mc{padding:24px 24px 24px 24px}.x-tab-navigation-right{-moz-border-radius-topleft:0;-webkit-border-top-left-radius:0;border-top-left-radius:0;-moz-border-radius-topright:0;-webkit-border-top-right-radius:0;border-top-right-radius:0;-moz-border-radius-bottomright:0;-webkit-border-bottom-right-radius:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-bottom-left-radius:0;border-bottom-left-radius:0;padding:24px 24px 24px 24px;border-width:0 0 0 0;border-style:solid;background-color:transparent}.x-tab-navigation-right-mc{background-color:transparent}.x-nbr .x-tab-navigation-right{padding:0 !important;border-width:0 !important;-webkit-border-radius:0px;-moz-border-radius:0px;-ms-border-radius:0px;-o-border-radius:0px;border-radius:0px;background-color:transparent !important;box-shadow:none !important}.x-tab-navigation-right-frameInfo{font-family:th-0-0-0-0-0-0-0-0-24-24-24-24}.x-tab-navigation-right-tl{background-position:0 0}.x-tab-navigation-right-tr{background-position:right 0}.x-tab-navigation-right-bl{background-position:0 0}.x-tab-navigation-right-br{background-position:right 0}.x-tab-navigation-right-ml{background-position:0 top}.x-tab-navigation-right-mr{background-position:right top}.x-tab-navigation-right-tc{background-position:0 0}.x-tab-navigation-right-bc{background-position:0 0}.x-tab-navigation-right-tr,.x-tab-navigation-right-br,.x-tab-navigation-right-mr{padding-right:0}.x-tab-navigation-right-tl,.x-tab-navigation-right-bl,.x-tab-navigation-right-ml{padding-left:0}.x-tab-navigation-right-tc{height:0}.x-tab-navigation-right-bc{height:0}.x-tab-navigation-right-mc{padding:24px 24px 24px 24px}.x-tab-navigation{border-color:transparent;cursor:pointer}.x-tab-navigation-top{margin:0}.x-tab-navigation-top.x-tab-rotate-left{margin:0 0 0 0}.x-tab-navigation-top.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-top.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-top.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-right{margin:0 0 0 0}.x-tab-navigation-right.x-tab-rotate-right{margin:0 0 0 0}.x-tab-navigation-right.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-right.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-right.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-bottom{margin:0 0 0 0}.x-tab-navigation-bottom.x-tab-rotate-left{margin:0 0 0 0}.x-tab-navigation-bottom.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-bottom.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-bottom.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-left{margin:0 0 0 0}.x-tab-navigation-left.x-tab-rotate-right{margin:0 0 0 0}.x-tab-navigation-left.x-tab-focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-left.x-tab-focus.x-tab-over{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-navigation-left.x-tab-focus.x-tab-active{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.x-tab-button-navigation{height:24px}.x-tab-inner-navigation{font:bold 15px/19px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;color:#acacac;max-width:100%}.x-tab-icon-right > .x-tab-inner-navigation,.x-tab-icon-left > .x-tab-inner-navigation{max-width:calc(100% - 24px)}.x-tab-icon-el-navigation{min-height:24px;background-position:center center;font-size:24px;line-height:24px;color:#acacac}.x-tab-icon-left > .x-tab-icon-el-navigation,.x-tab-icon-right > .x-tab-icon-el-navigation{width:24px}.x-tab-icon-top > .x-tab-icon-el-navigation,.x-tab-icon-bottom > .x-tab-icon-el-navigation{min-width:24px}.x-tab-bar-plain .x-tab-icon-el-navigation{color:#606060}.x-tab-text.x-tab-icon-left > .x-tab-icon-el-navigation{margin-right:5px}.x-tab-text.x-tab-icon-right > .x-tab-icon-el-navigation{margin-left:5px}.x-tab-text.x-tab-icon-top > .x-tab-icon-el-navigation{margin-bottom:5px}.x-tab-text.x-tab-icon-bottom > .x-tab-icon-el-navigation{margin-top:5px}.x-tab-focus.x-tab-navigation{border-color:transparent;background-color:transparent;outline:1px solid #5fa2dd;outline-offset:-3px}.x-ie8 .x-tab-focus.x-tab-navigation{outline:none}.x-ie8 .x-tab-focus.x-tab-navigation:after{position:absolute;content:' ';top:2px;right:2px;bottom:2px;left:2px;border:1px solid #5fa2dd;pointer-events:none}.x-tab-bar-plain .x-tab-focus.x-tab-navigation .x-tab-inner-navigation{color:#606060}.x-tab-bar-plain .x-tab-focus.x-tab-navigation .x-tab-icon-el{color:#606060}.x-tab-over.x-tab-navigation{border-color:#000;background-image:none;background-color:rgba(80, 80, 80, 0.08)}.x-ie8 .x-tab-over.x-tab-navigation{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#14505050, endColorstr=#14505050);zoom:1}.x-ie8 .x-tab-over.x-tab-navigation.x-tab-rotate-left{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.x-ie8 .x-tab-over.x-tab-navigation.x-tab-rotate-right{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.x-tab-over.x-tab-navigation .x-tab-inner-navigation{color:#c4c4c4}.x-tab-bar-plain .x-tab-over.x-tab-navigation .x-tab-inner-navigation{color:#606060}.x-tab-over.x-tab-navigation .x-tab-icon-el{color:#c4c4c4}.x-ie8m .x-tab-over.x-tab-navigation .x-tab-icon-el{color:#c4c4c4}.x-tab-bar-plain .x-tab-over.x-tab-navigation .x-tab-icon-el{color:#606060}.x-tab-focus.x-tab-over.x-tab-navigation{border-color:#000;background-image:none;background-color:rgba(80, 80, 80, 0.08)}.x-ie8 .x-tab-focus.x-tab-over.x-tab-navigation{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#14505050, endColorstr=#14505050);zoom:1}.x-ie8 .x-tab-focus.x-tab-over.x-tab-navigation.x-tab-rotate-left{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3)}.x-ie8 .x-tab-focus.x-tab-over.x-tab-navigation.x-tab-rotate-right{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}.x-tab-bar-plain .x-tab-focus.x-tab-over.x-tab-navigation .x-tab-inner-navigation{color:#606060}.x-tab-bar-plain .x-tab-focus.x-tab-over.x-tab-navigation .x-tab-icon-el{color:#606060}.x-tab.x-tab-active.x-tab-navigation{border-color:#fff;background-color:#303030}.x-tab.x-tab-active.x-tab-navigation .x-tab-inner-navigation{color:#fff}.x-tab-bar-plain .x-tab.x-tab-active.x-tab-navigation .x-tab-inner-navigation{color:#404040}.x-tab.x-tab-active.x-tab-navigation .x-tab-icon-el{color:#fff}.x-ie8 .x-tab.x-tab-active.x-tab-navigation .x-tab-icon-el{color:#fff}.x-tab-bar-plain .x-tab.x-tab-active.x-tab-navigation .x-tab-icon-el{color:#404040}.x-tab-focus.x-tab-active.x-tab-navigation{border-color:#fff;background-color:#303030}.x-tab-bar-plain .x-tab-focus.x-tab-active.x-tab-navigation .x-tab-inner-navigation{color:#404040}.x-tab-bar-plain .x-tab-focus.x-tab-active.x-tab-navigation .x-tab-icon-el{color:#404040}.x-tab.x-tab-disabled.x-tab-navigation{border-color:transparent;background-color:transparent;cursor:default}.x-tab.x-tab-disabled.x-tab-navigation .x-tab-inner-navigation{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3}.x-tab-bar-plain .x-tab.x-tab-disabled.x-tab-navigation .x-tab-inner-navigation{color:#606060}.x-tab.x-tab-disabled.x-tab-navigation .x-tab-icon-el-navigation{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-tab.x-tab-disabled.x-tab-navigation .x-tab-icon-el{color:#acacac;opacity:0.3;filter:none}.x-tab-bar-plain .x-tab.x-tab-disabled.x-tab-navigation .x-tab-icon-el{color:#606060}.x-nbr .x-tab-navigation{background-image:none}.x-tab-over .x-tab-navigation-top-tl,.x-tab-over .x-tab-navigation-top-bl,.x-tab-over .x-tab-navigation-top-tr,.x-tab-over .x-tab-navigation-top-br,.x-tab-over .x-tab-navigation-top-tc,.x-tab-over .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-over-corners.gif)}.x-tab-over .x-tab-navigation-top-ml,.x-tab-over .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-over-sides.gif)}.x-tab-over .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-over-fbg.gif)}.x-tab-focus .x-tab-navigation-top-tl,.x-tab-focus .x-tab-navigation-top-bl,.x-tab-focus .x-tab-navigation-top-tr,.x-tab-focus .x-tab-navigation-top-br,.x-tab-focus .x-tab-navigation-top-tc,.x-tab-focus .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-focus-corners.gif)}.x-tab-focus .x-tab-navigation-top-ml,.x-tab-focus .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-focus-sides.gif)}.x-tab-focus .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-top-tl,.x-tab-focus.x-tab-over .x-tab-navigation-top-bl,.x-tab-focus.x-tab-over .x-tab-navigation-top-tr,.x-tab-focus.x-tab-over .x-tab-navigation-top-br,.x-tab-focus.x-tab-over .x-tab-navigation-top-tc,.x-tab-focus.x-tab-over .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-top-ml,.x-tab-focus.x-tab-over .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-navigation-top-tl,.x-tab.x-tab-active .x-tab-navigation-top-bl,.x-tab.x-tab-active .x-tab-navigation-top-tr,.x-tab.x-tab-active .x-tab-navigation-top-br,.x-tab.x-tab-active .x-tab-navigation-top-tc,.x-tab.x-tab-active .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-active-corners.gif)}.x-tab.x-tab-active .x-tab-navigation-top-ml,.x-tab.x-tab-active .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-active-sides.gif)}.x-tab.x-tab-active .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-top-tl,.x-tab-focus.x-tab-active .x-tab-navigation-top-bl,.x-tab-focus.x-tab-active .x-tab-navigation-top-tr,.x-tab-focus.x-tab-active .x-tab-navigation-top-br,.x-tab-focus.x-tab-active .x-tab-navigation-top-tc,.x-tab-focus.x-tab-active .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-top-ml,.x-tab-focus.x-tab-active .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-navigation-top-tl,.x-tab.x-tab-disabled .x-tab-navigation-top-bl,.x-tab.x-tab-disabled .x-tab-navigation-top-tr,.x-tab.x-tab-disabled .x-tab-navigation-top-br,.x-tab.x-tab-disabled .x-tab-navigation-top-tc,.x-tab.x-tab-disabled .x-tab-navigation-top-bc{background-image:url(images/tab/tab-navigation-top-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-navigation-top-ml,.x-tab.x-tab-disabled .x-tab-navigation-top-mr{background-image:url(images/tab/tab-navigation-top-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-navigation-top-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-top-disabled-fbg.gif)}.x-tab-over .x-tab-navigation-right-tl,.x-tab-over .x-tab-navigation-right-bl,.x-tab-over .x-tab-navigation-right-tr,.x-tab-over .x-tab-navigation-right-br,.x-tab-over .x-tab-navigation-right-tc,.x-tab-over .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-over-corners.gif)}.x-tab-over .x-tab-navigation-right-ml,.x-tab-over .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-over-sides.gif)}.x-tab-over .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-over-fbg.gif)}.x-tab-focus .x-tab-navigation-right-tl,.x-tab-focus .x-tab-navigation-right-bl,.x-tab-focus .x-tab-navigation-right-tr,.x-tab-focus .x-tab-navigation-right-br,.x-tab-focus .x-tab-navigation-right-tc,.x-tab-focus .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-focus-corners.gif)}.x-tab-focus .x-tab-navigation-right-ml,.x-tab-focus .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-focus-sides.gif)}.x-tab-focus .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-right-tl,.x-tab-focus.x-tab-over .x-tab-navigation-right-bl,.x-tab-focus.x-tab-over .x-tab-navigation-right-tr,.x-tab-focus.x-tab-over .x-tab-navigation-right-br,.x-tab-focus.x-tab-over .x-tab-navigation-right-tc,.x-tab-focus.x-tab-over .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-right-ml,.x-tab-focus.x-tab-over .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-navigation-right-tl,.x-tab.x-tab-active .x-tab-navigation-right-bl,.x-tab.x-tab-active .x-tab-navigation-right-tr,.x-tab.x-tab-active .x-tab-navigation-right-br,.x-tab.x-tab-active .x-tab-navigation-right-tc,.x-tab.x-tab-active .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-active-corners.gif)}.x-tab.x-tab-active .x-tab-navigation-right-ml,.x-tab.x-tab-active .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-active-sides.gif)}.x-tab.x-tab-active .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-right-tl,.x-tab-focus.x-tab-active .x-tab-navigation-right-bl,.x-tab-focus.x-tab-active .x-tab-navigation-right-tr,.x-tab-focus.x-tab-active .x-tab-navigation-right-br,.x-tab-focus.x-tab-active .x-tab-navigation-right-tc,.x-tab-focus.x-tab-active .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-right-ml,.x-tab-focus.x-tab-active .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-navigation-right-tl,.x-tab.x-tab-disabled .x-tab-navigation-right-bl,.x-tab.x-tab-disabled .x-tab-navigation-right-tr,.x-tab.x-tab-disabled .x-tab-navigation-right-br,.x-tab.x-tab-disabled .x-tab-navigation-right-tc,.x-tab.x-tab-disabled .x-tab-navigation-right-bc{background-image:url(images/tab/tab-navigation-right-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-navigation-right-ml,.x-tab.x-tab-disabled .x-tab-navigation-right-mr{background-image:url(images/tab/tab-navigation-right-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-navigation-right-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-right-disabled-fbg.gif)}.x-tab-over .x-tab-navigation-bottom-tl,.x-tab-over .x-tab-navigation-bottom-bl,.x-tab-over .x-tab-navigation-bottom-tr,.x-tab-over .x-tab-navigation-bottom-br,.x-tab-over .x-tab-navigation-bottom-tc,.x-tab-over .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-over-corners.gif)}.x-tab-over .x-tab-navigation-bottom-ml,.x-tab-over .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-over-sides.gif)}.x-tab-over .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-over-fbg.gif)}.x-tab-focus .x-tab-navigation-bottom-tl,.x-tab-focus .x-tab-navigation-bottom-bl,.x-tab-focus .x-tab-navigation-bottom-tr,.x-tab-focus .x-tab-navigation-bottom-br,.x-tab-focus .x-tab-navigation-bottom-tc,.x-tab-focus .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-focus-corners.gif)}.x-tab-focus .x-tab-navigation-bottom-ml,.x-tab-focus .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-focus-sides.gif)}.x-tab-focus .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-bottom-tl,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-bl,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-tr,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-br,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-tc,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-bottom-ml,.x-tab-focus.x-tab-over .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-navigation-bottom-tl,.x-tab.x-tab-active .x-tab-navigation-bottom-bl,.x-tab.x-tab-active .x-tab-navigation-bottom-tr,.x-tab.x-tab-active .x-tab-navigation-bottom-br,.x-tab.x-tab-active .x-tab-navigation-bottom-tc,.x-tab.x-tab-active .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-active-corners.gif)}.x-tab.x-tab-active .x-tab-navigation-bottom-ml,.x-tab.x-tab-active .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-active-sides.gif)}.x-tab.x-tab-active .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-bottom-tl,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-bl,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-tr,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-br,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-tc,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-bottom-ml,.x-tab-focus.x-tab-active .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-navigation-bottom-tl,.x-tab.x-tab-disabled .x-tab-navigation-bottom-bl,.x-tab.x-tab-disabled .x-tab-navigation-bottom-tr,.x-tab.x-tab-disabled .x-tab-navigation-bottom-br,.x-tab.x-tab-disabled .x-tab-navigation-bottom-tc,.x-tab.x-tab-disabled .x-tab-navigation-bottom-bc{background-image:url(images/tab/tab-navigation-bottom-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-navigation-bottom-ml,.x-tab.x-tab-disabled .x-tab-navigation-bottom-mr{background-image:url(images/tab/tab-navigation-bottom-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-navigation-bottom-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-bottom-disabled-fbg.gif)}.x-tab-over .x-tab-navigation-left-tl,.x-tab-over .x-tab-navigation-left-bl,.x-tab-over .x-tab-navigation-left-tr,.x-tab-over .x-tab-navigation-left-br,.x-tab-over .x-tab-navigation-left-tc,.x-tab-over .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-over-corners.gif)}.x-tab-over .x-tab-navigation-left-ml,.x-tab-over .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-over-sides.gif)}.x-tab-over .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-over-fbg.gif)}.x-tab-focus .x-tab-navigation-left-tl,.x-tab-focus .x-tab-navigation-left-bl,.x-tab-focus .x-tab-navigation-left-tr,.x-tab-focus .x-tab-navigation-left-br,.x-tab-focus .x-tab-navigation-left-tc,.x-tab-focus .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-focus-corners.gif)}.x-tab-focus .x-tab-navigation-left-ml,.x-tab-focus .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-focus-sides.gif)}.x-tab-focus .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-focus-fbg.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-left-tl,.x-tab-focus.x-tab-over .x-tab-navigation-left-bl,.x-tab-focus.x-tab-over .x-tab-navigation-left-tr,.x-tab-focus.x-tab-over .x-tab-navigation-left-br,.x-tab-focus.x-tab-over .x-tab-navigation-left-tc,.x-tab-focus.x-tab-over .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-focus-over-corners.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-left-ml,.x-tab-focus.x-tab-over .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-focus-over-sides.gif)}.x-tab-focus.x-tab-over .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-focus-over-fbg.gif)}.x-tab.x-tab-active .x-tab-navigation-left-tl,.x-tab.x-tab-active .x-tab-navigation-left-bl,.x-tab.x-tab-active .x-tab-navigation-left-tr,.x-tab.x-tab-active .x-tab-navigation-left-br,.x-tab.x-tab-active .x-tab-navigation-left-tc,.x-tab.x-tab-active .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-active-corners.gif)}.x-tab.x-tab-active .x-tab-navigation-left-ml,.x-tab.x-tab-active .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-active-sides.gif)}.x-tab.x-tab-active .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-active-fbg.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-left-tl,.x-tab-focus.x-tab-active .x-tab-navigation-left-bl,.x-tab-focus.x-tab-active .x-tab-navigation-left-tr,.x-tab-focus.x-tab-active .x-tab-navigation-left-br,.x-tab-focus.x-tab-active .x-tab-navigation-left-tc,.x-tab-focus.x-tab-active .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-focus-active-corners.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-left-ml,.x-tab-focus.x-tab-active .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-focus-active-sides.gif)}.x-tab-focus.x-tab-active .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-focus-active-fbg.gif)}.x-tab.x-tab-disabled .x-tab-navigation-left-tl,.x-tab.x-tab-disabled .x-tab-navigation-left-bl,.x-tab.x-tab-disabled .x-tab-navigation-left-tr,.x-tab.x-tab-disabled .x-tab-navigation-left-br,.x-tab.x-tab-disabled .x-tab-navigation-left-tc,.x-tab.x-tab-disabled .x-tab-navigation-left-bc{background-image:url(images/tab/tab-navigation-left-disabled-corners.gif)}.x-tab.x-tab-disabled .x-tab-navigation-left-ml,.x-tab.x-tab-disabled .x-tab-navigation-left-mr{background-image:url(images/tab/tab-navigation-left-disabled-sides.gif)}.x-tab.x-tab-disabled .x-tab-navigation-left-mc{background-repeat:repeat-x;background-image:url(images/tab/tab-navigation-left-disabled-fbg.gif)}.x-tab-navigation-tl,.x-tab-navigation-bl,.x-tab-navigation-tr,.x-tab-navigation-br{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)}.x-tab-navigation .x-tab-close-btn{top:0;right:0;width:16px;height:16px;font:12px/1 FontAwesome;color:#fff}.x-tab-navigation .x-tab-close-btn:before{content:"\f00d"}.x-tab-bar-plain .x-tab-navigation .x-tab-close-btn{color:#919191}.x-tab-navigation .x-tab-close-btn-over{background-position:-16px 0}.x-tab-navigation .x-tab-close-btn-pressed{background-position:-32px 0}.x-tab-navigation.x-tab-focus .x-tab-close-btn{color:#fff}.x-tab-bar-plain .x-tab-navigation.x-tab-focus .x-tab-close-btn{color:#919191}.x-tab-navigation.x-tab-over .x-tab-close-btn{color:#fff}.x-tab-bar-plain .x-tab-navigation.x-tab-over .x-tab-close-btn{color:#919191}.x-tab-navigation.x-tab-focus.x-tab-over .x-tab-close-btn{color:#fff}.x-tab-bar-plain .x-tab-navigation.x-tab-focus.x-tab-over .x-tab-close-btn{color:#919191}.x-tab-navigation.x-tab-active .x-tab-close-btn{color:#919191}.x-tab-navigation.x-tab-focus.x-tab-active .x-tab-close-btn{color:#919191}.x-tab-navigation.x-tab-disabled .x-tab-close-btn{color:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";opacity:0.3;background-position:0 0}.x-tab-bar-plain .x-tab-navigation.x-tab-disabled .x-tab-close-btn{color:#919191}.x-tab-closable.x-tab-navigation .x-tab-button{padding-right:16px}.x-tab-bar-navigation{background-color:#404040}.x-tab-bar-navigation-top > .x-tab-bar-body-navigation{padding:0}.x-tab-bar-navigation-bottom > .x-tab-bar-body-navigation{padding:0 0 0 0}.x-tab-bar-navigation-left > .x-tab-bar-body-navigation{padding:0 0 0 0}.x-tab-bar-navigation-right > .x-tab-bar-body-navigation{padding:0 0 0 0}.x-tab-bar-plain.x-tab-bar-navigation-top > .x-tab-bar-body-navigation{padding:8px 0 0}.x-tab-bar-plain.x-tab-bar-navigation-bottom > .x-tab-bar-body-navigation{padding:0 0 8px 0}.x-tab-bar-plain.x-tab-bar-navigation-left > .x-tab-bar-body-navigation{padding:0 0 0 8px}.x-tab-bar-plain.x-tab-bar-navigation-right > .x-tab-bar-body-navigation{padding:0 8px 0 0}.x-tab-bar-plain.x-tab-bar-navigation-horizontal{border-top-color:transparent;border-bottom-color:transparent;border-left-width:0;border-right-width:0}.x-tab-bar-plain.x-tab-bar-navigation-vertical{border-right-color:transparent;border-left-color:transparent;border-top-width:0;border-bottom-width:0}.x-tab-bar-horizontal > .x-tab-bar-body-navigation{min-height:72px}.x-ie8m .x-tab-bar-horizontal > .x-tab-bar-body-navigation{min-height:72px}.x-tab-bar-vertical > .x-tab-bar-body-navigation{min-width:72px}.x-ie8m .x-tab-bar-vertical > .x-tab-bar-body-navigation{min-width:72px}.x-tab-bar-navigation-scroller .x-box-scroller-body-horizontal{margin-left:24px}.x-tab-bar-navigation-vertical-scroller .x-box-scroller-body-vertical{margin-top:24px}.x-box-scroller-tab-bar-navigation{cursor:pointer;color:#fff;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";opacity:0.5}.x-box-scroller-tab-bar-navigation.x-box-scroller-hover{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";opacity:0.6}.x-box-scroller-tab-bar-navigation.x-box-scroller-pressed{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";opacity:0.7}.x-box-scroller-tab-bar-navigation.x-box-scroller-disabled{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";opacity:0.25;cursor:default}.x-box-scroller-tab-bar-navigation.x-box-scroller-left,.x-box-scroller-tab-bar-navigation.x-box-scroller-right{width:24px;height:24px;top:50%;margin-top:-12px}.x-box-scroller-tab-bar-navigation.x-box-scroller-left{margin-left:0;margin-right:0;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-tab-bar-navigation.x-box-scroller-left:before{content:"\f053"}.x-box-scroller-tab-bar-navigation.x-box-scroller-right{margin-left:0;margin-right:0;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-tab-bar-navigation.x-box-scroller-right:before{content:"\f054"}.x-box-scroller-tab-bar-navigation.x-box-scroller-top,.x-box-scroller-tab-bar-navigation.x-box-scroller-bottom{height:24px;width:24px;left:50%;margin-left:-12px}.x-box-scroller-tab-bar-navigation.x-box-scroller-top{margin-top:0;margin-right:0;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-tab-bar-navigation.x-box-scroller-top:before{content:"\f077"}.x-box-scroller-tab-bar-navigation.x-box-scroller-bottom{margin-top:0;margin-right:0;margin-bottom:0;font:16px/24px FontAwesome}.x-box-scroller-tab-bar-navigation.x-box-scroller-bottom:before{content:"\f078"}.x-tab-bar-plain.x-tab-bar-navigation-scroller .x-box-scroller-body-horizontal{margin-left:24px}.x-tab-bar-plain.x-tab-bar-navigation-vertical-scroller .x-box-scroller-body-vertical{margin-top:16px}.x-tab-bar-plain .x-box-scroller-tab-bar-navigation{color:#919191}.x-tab-bar-navigation-top .x-box-scroller-tab-bar-navigation{margin-top:-12px}.x-tab-bar-navigation-right .x-box-scroller-tab-bar-navigation{margin-left:-12px}.x-tab-bar-navigation-bottom .x-box-scroller-tab-bar-navigation{margin-top:-12px}.x-tab-bar-navigation-left .x-box-scroller-tab-bar-navigation{margin-left:-12px}.x-box-scroller-tab-bar-navigation{background-color:#404040}.x-box-scroller-tab-bar-navigation .x-ie8 .x-box-scroller-plain{background-color:#fff}.x-panel-navigation{border-color:#5fa2dd;padding:0}.x-panel-header-navigation{font-size:20px;border:1px solid #5fa2dd}.x-panel-header-navigation .x-tool-img{background-color:#5fa2dd}.x-panel-header-navigation-horizontal{padding:0}.x-panel-header-navigation-horizontal .x-panel-header-navigation-tab-bar{margin-top:0;margin-bottom:0}.x-panel-header-navigation-vertical{padding:0 0 0 0}.x-panel-header-navigation-vertical .x-panel-header-navigation-tab-bar{margin-right:0;margin-left:0}.x-panel-header-title-navigation{color:#fff;font-size:20px;font-weight:bold;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;line-height:24px;margin:36px}.x-panel-header-title-navigation > .x-title-text-navigation{text-transform:none;padding:0}.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-top{height:39px;padding-bottom:15px}.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-right{width:39px;padding-left:15px}.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-bottom{height:39px;padding-top:15px}.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-left{width:39px;padding-right:15px}.x-panel-header-title-navigation > .x-title-icon-wrap-navigation > .x-title-icon-navigation{width:24px;height:24px;font-size:24px;color:#fff;background-position:center center}.x-ie8 .x-panel-header-title-navigation > .x-title-icon-wrap-navigation > .x-title-icon-navigation{color:#fff}.x-panel-body-navigation{background:#fff;border-color:#d0d0d0;color:#404040;font-size:13px;font-weight:300;font-family:'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;border-width:1px;border-style:solid}.x-panel-header-navigation{background-image:none;background-color:#5fa2dd}.x-panel-header-navigation-vertical{background-image:none;background-color:#5fa2dd}.x-panel .x-panel-header-navigation-collapsed-border-top{border-bottom-width:1px !important}.x-panel .x-panel-header-navigation-collapsed-border-right{border-left-width:1px !important}.x-panel .x-panel-header-navigation-collapsed-border-bottom{border-top-width:1px !important}.x-panel .x-panel-header-navigation-collapsed-border-left{border-right-width:1px !important}.x-panel-header-navigation-horizontal .x-tool-after-title{margin:0 0 0 6px}.x-panel-header-navigation-horizontal .x-tool-before-title{margin:0 6px 0 0}.x-panel-header-navigation-vertical .x-tool-after-title{margin:6px 0 0 0}.x-panel-header-navigation-vertical .x-tool-before-title{margin:0 0 6px 0}.x-panel-header-navigation .x-tool-focus{outline:1px solid #fff;outline-offset:1px}.x-ie8 .x-panel-header-navigation .x-tool-focus{outline:none}.x-ie8 .x-panel-header-navigation .x-tool-focus:after{position:absolute;content:' ';top:-2px;right:-2px;bottom:-2px;left:-2px;border:1px solid #fff;pointer-events:none}.x-panel-navigation-resizable .x-panel-handle{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";opacity:0}.x-panel-navigation-outer-border-l{border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-navigation-outer-border-b{border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-navigation-outer-border-bl{border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-navigation-outer-border-r{border-right-color:#5fa2dd !important;border-right-width:1px !important}.x-panel-navigation-outer-border-rl{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-navigation-outer-border-rb{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-navigation-outer-border-rbl{border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-navigation-outer-border-t{border-top-color:#5fa2dd !important;border-top-width:1px !important}.x-panel-navigation-outer-border-tl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-navigation-outer-border-tb{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-navigation-outer-border-tbl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-navigation-outer-border-tr{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important}.x-panel-navigation-outer-border-trl{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important;border-left-color:#5fa2dd !important;border-left-width:1px !important}.x-panel-navigation-outer-border-trb{border-top-color:#5fa2dd !important;border-top-width:1px !important;border-right-color:#5fa2dd !important;border-right-width:1px !important;border-bottom-color:#5fa2dd !important;border-bottom-width:1px !important}.x-panel-navigation-outer-border-trbl{border-color:#5fa2dd !important;border-width:1px !important}.x-title-icon-navigation{font-family:FontAwesome;color:#fff;font-size:24px;line-height:24px}.x-tab-icon-el-navigation{font-family:FontAwesome;color:#acacac}.x-tab-over .x-tab-icon-el-navigation{color:#c4c4c4}.x-tab-active .x-tab-icon-el-navigation{color:#fff}.x-panel-header-title-navigation > .x-title-text-navigation:after{top:30px;right:-24px} \ No newline at end of file diff --git a/frontend/build/production/DynamicForm/resources/Readme.md b/frontend/build/production/DynamicForm/resources/Readme.md new file mode 100644 index 000000000..07d73d6d1 --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/Readme.md @@ -0,0 +1,4 @@ +# DynamicForm/resources + +This folder contains resources (such as images) needed by the application. This file can +be removed if not needed. diff --git a/frontend/build/production/DynamicForm/resources/ext/ext-watermark/Read Me.txt b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/Read Me.txt new file mode 100644 index 000000000..469bc9908 --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/Read Me.txt @@ -0,0 +1,5 @@ +Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures. + +You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects. + +You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu > Manage Projects) to retrieve your icon selection. diff --git a/frontend/build/production/DynamicForm/resources/ext/ext-watermark/demo-files/demo.css b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/demo-files/demo.css new file mode 100644 index 000000000..20a31ee16 --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/demo-files/demo.css @@ -0,0 +1,150 @@ +body { + padding: 0; + margin: 0; + font-family: sans-serif; + font-size: 1em; + line-height: 1.5; + color: #555; + background: #fff; +} +h1 { + font-size: 1.5em; + font-weight: normal; +} +small { + font-size: .66666667em; +} +a { + color: #e74c3c; + text-decoration: none; +} +a:hover, a:focus { + box-shadow: 0 1px #e74c3c; +} +.bshadow0, input { + box-shadow: inset 0 -2px #e7e7e7; +} +input:hover { + box-shadow: inset 0 -2px #ccc; +} +input, fieldset { + font-size: 1em; + margin: 0; + padding: 0; + border: 0; +} +input { + color: inherit; + line-height: 1.5; + height: 1.5em; + padding: .25em 0; +} +input:focus { + outline: none; + box-shadow: inset 0 -2px #449fdb; +} +.glyph { + font-size: 16px; + width: 15em; + padding-bottom: 1em; + margin-right: 4em; + margin-bottom: 1em; + float: left; + overflow: hidden; +} +.liga { + width: 80%; + width: calc(100% - 2.5em); +} +.talign-right { + text-align: right; +} +.talign-center { + text-align: center; +} +.bgc1 { + background: #f1f1f1; +} +.fgc1 { + color: #999; +} +.fgc0 { + color: #000; +} +p { + margin-top: 1em; + margin-bottom: 1em; +} +.mvm { + margin-top: .75em; + margin-bottom: .75em; +} +.mtn { + margin-top: 0; +} +.mtl, .mal { + margin-top: 1.5em; +} +.mbl, .mal { + margin-bottom: 1.5em; +} +.mal, .mhl { + margin-left: 1.5em; + margin-right: 1.5em; +} +.mhmm { + margin-left: 1em; + margin-right: 1em; +} +.mls { + margin-left: .25em; +} +.ptl { + padding-top: 1.5em; +} +.pbs, .pvs { + padding-bottom: .25em; +} +.pvs, .pts { + padding-top: .25em; +} +.unit { + float: left; +} +.unitRight { + float: right; +} +.size1of2 { + width: 50%; +} +.size1of1 { + width: 100%; +} +.clearfix:before, .clearfix:after { + content: " "; + display: table; +} +.clearfix:after { + clear: both; +} +.hidden-true { + display: none; +} +.textbox0 { + width: 3em; + background: #f1f1f1; + padding: .25em .5em; + line-height: 1.5; + height: 1.5em; +} +#testDrive { + display: block; + padding-top: 24px; + line-height: 1.5; +} +.fs0 { + font-size: 16px; +} +.fs1 { + font-size: 32px; +} diff --git a/frontend/build/production/DynamicForm/resources/ext/ext-watermark/demo-files/demo.js b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/demo-files/demo.js new file mode 100644 index 000000000..2f81d2900 --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/demo-files/demo.js @@ -0,0 +1,30 @@ +if (!('boxShadow' in document.body.style)) { + document.body.setAttribute('class', 'noBoxShadow'); +} + +document.body.addEventListener("click", function(e) { + var target = e.target; + if (target.tagName === "INPUT" && + target.getAttribute('class').indexOf('liga') === -1) { + target.select(); + } +}); + +(function() { + var fontSize = document.getElementById('fontSize'), + testDrive = document.getElementById('testDrive'), + testText = document.getElementById('testText'); + function updateTest() { + testDrive.innerHTML = testText.value || String.fromCharCode(160); + if (window.icomoonLiga) { + window.icomoonLiga(testDrive); + } + } + function updateSize() { + testDrive.style.fontSize = fontSize.value + 'px'; + } + fontSize.addEventListener('change', updateSize, false); + testText.addEventListener('input', updateTest, false); + testText.addEventListener('change', updateTest, false); + updateSize(); +}()); diff --git a/frontend/build/production/DynamicForm/resources/ext/ext-watermark/demo.html b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/demo.html new file mode 100644 index 000000000..09faf8733 --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/demo.html @@ -0,0 +1,231 @@ + + + + + IcoMoon Demo + + + + + +
    +

    Font Name: ext-watermark (Glyphs: 12)

    +
    +
    +

    Grid Size: Unknown

    +
    +
    + + + + icon-extjs-beta-left +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-extjs-beta-right +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-extjs-trial-left +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-extjs-trial-right +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-left-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-left-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-right-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-right-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-left-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-left-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-right-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-right-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    + + +
    +

    Font Test Drive

    + + + +
      +
    +
    + +
    +

    Generated by IcoMoon

    +
    + + + + \ No newline at end of file diff --git a/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.eot b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.eot new file mode 100644 index 000000000..7c7fb70cf Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.eot differ diff --git a/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.svg b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.svg new file mode 100644 index 000000000..ad51460e3 --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.svg @@ -0,0 +1,22 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.ttf b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.ttf new file mode 100644 index 000000000..9652f68e8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.woff b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.woff new file mode 100644 index 000000000..002aba642 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.woff differ diff --git a/frontend/build/production/DynamicForm/resources/ext/ext-watermark/selection.json b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/selection.json new file mode 100644 index 000000000..d7bddd418 --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/selection.json @@ -0,0 +1,1049 @@ +{ + "IcoMoonType": "selection", + "icons": [ + { + "icon": { + "width": 1405, + "paths": [ + "M0 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M484.165 261.483l94.471 148.455h-89.41l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 50.61-80.975h86.036l-91.097 146.768z", + "M725.404 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M922.781 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1258.491 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M172.072 1017.252h-172.072v-404.876h160.264c84.349 0 114.715 33.74 114.715 89.41v40.488c0 28.679-13.496 50.61-45.549 64.105 33.74 8.435 59.044 37.114 59.044 74.227v38.801c1.687 59.044-35.427 97.845-116.402 97.845zM183.881 715.282c0-16.87-10.122-28.679-37.114-28.679h-55.671v92.784h55.671c23.618 0 37.114-11.809 37.114-28.679v-35.427zM199.064 883.98c0-21.931-13.496-33.74-38.801-33.74h-69.166v94.471h55.671c28.679 0 50.61-6.748 50.61-35.427v-25.305z", + "M420.059 900.85v8.435c0 33.74 13.496 43.862 53.984 43.862 26.992 0 64.105-5.061 89.41-13.496l13.496 65.792c-26.992 10.122-69.166 18.557-111.341 18.557-96.158 0-131.585-47.236-131.585-119.776v-69.166c0-64.105 28.679-118.089 126.524-118.089s119.776 59.044 119.776 123.15v62.418h-160.264zM495.974 821.562c0-20.244-6.748-37.114-37.114-37.114s-40.488 16.87-40.488 37.114v13.496h75.914v-13.496z", + "M742.273 1024c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-21.931 5.061-45.549 10.122-64.105 10.122z", + "M1018.939 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-8.435-67.479c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-72.54zM1003.756 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-beta-left" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 21, + "id": 11, + "prevSize": 32, + "code": 97, + "name": "extjs-beta-left" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 0 + }, + { + "icon": { + "width": 1405, + "paths": [ + "M0 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M484.165 261.483l94.471 148.455h-89.41l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 50.61-80.975h86.036l-91.097 146.768z", + "M725.404 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M922.781 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1258.491 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M477.417 1017.252h-172.072v-404.876h160.264c84.349 0 114.715 33.74 114.715 89.41v40.488c0 28.679-13.496 50.61-45.549 64.105 33.74 8.435 59.044 37.114 59.044 74.227v38.801c1.687 59.044-35.427 97.845-116.402 97.845zM489.226 715.282c0-16.87-10.122-28.679-37.114-28.679h-55.671v92.784h55.671c23.618 0 37.114-11.809 37.114-28.679v-35.427zM504.409 883.98c0-21.931-13.496-33.74-38.801-33.74h-69.166v94.471h55.671c28.679 0 50.61-6.748 50.61-35.427v-25.305z", + "M725.404 900.85v8.435c0 33.74 13.496 43.862 53.984 43.862 26.992 0 64.105-5.061 89.41-13.496l13.496 65.792c-26.992 10.122-69.166 18.557-111.341 18.557-96.158 0-131.585-47.236-131.585-119.776v-69.166c0-64.105 28.679-118.089 126.524-118.089s119.776 59.044 119.776 123.15v62.418h-160.264zM801.318 821.562c0-20.244-6.748-37.114-37.114-37.114s-40.488 16.87-40.488 37.114v13.496h75.914v-13.496z", + "M1047.618 1024c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-45.549 10.122-64.105 10.122z", + "M1324.283 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-11.809-65.792c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-69.166zM1309.1 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-beta-right" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 10, + "id": 10, + "prevSize": 32, + "code": 98, + "name": "extjs-beta-right" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 1 + }, + { + "icon": { + "width": 1437, + "paths": [ + "M32.053 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M516.217 261.483l94.471 148.455h-87.723l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 52.297-80.975h82.662l-91.097 146.768z", + "M757.456 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M954.834 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1290.544 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M199.064 693.351v323.901h-91.097v-323.901h-107.967v-80.975h308.718v80.975h-109.654z", + "M409.937 836.745v180.507h-87.723v-295.222h72.54l6.748 28.679c18.557-11.809 55.671-30.366 79.288-35.427l6.748 82.662c-25.305 11.809-59.044 26.992-77.601 38.801z", + "M531.4 684.916v-92.784h87.723v92.784h-87.723zM531.4 1017.252v-295.222h87.723v295.222h-87.723z", + "M856.988 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-11.809-65.792c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-69.166zM840.119 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z", + "M1000.382 1017.252v-416.685l87.723-11.809v428.494h-87.723z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-trial-left" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 11, + "id": 9, + "prevSize": 32, + "code": 99, + "name": "extjs-trial-left" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 2 + }, + { + "icon": { + "width": 1405, + "paths": [ + "M0 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M484.165 261.483l94.471 148.455h-89.41l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 50.61-80.975h86.036l-91.097 146.768z", + "M725.404 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M922.781 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1258.491 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M502.722 693.351v323.901h-91.097v-323.901h-107.967v-80.975h308.718v80.975h-109.654z", + "M711.908 836.745v180.507h-87.723v-295.222h72.54l6.748 28.679c18.557-11.809 55.671-30.366 79.288-35.427l6.748 82.662c-25.305 11.809-59.044 26.992-77.601 38.801z", + "M833.371 684.916v-92.784h87.723v92.784h-87.723zM833.371 1017.252v-295.222h87.723v295.222h-87.723z", + "M1158.959 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-11.809-65.792c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-69.166zM1142.089 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z", + "M1304.040 1017.252v-416.685l87.723-11.809v428.494h-87.723z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-trial-right" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 22, + "id": 8, + "prevSize": 32, + "code": 100, + "name": "extjs-trial-right" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 3 + }, + { + "icon": { + "width": 3329, + "paths": [ + "M127.586 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M404.298 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM478.861 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M792.026 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l9.942 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1020.686 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-16.57-3.314-41.424-4.971-57.994-4.971-34.796 0-46.395 13.256-46.395 43.081v67.935z", + "M1365.333 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l86.162-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1680.155 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-8.285-66.278c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-71.249zM1665.243 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1948.583 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2422.472 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2661.074 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-62.964 9.942z", + "M2854.939 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3183.016 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M180.608 1017.372h-169.010v-397.67h157.411c82.848 0 112.673 33.139 112.673 87.819v39.767c0 28.168-13.256 49.709-44.738 62.964 33.139 8.285 57.994 36.453 57.994 72.906v38.11c1.657 57.994-34.796 96.104-114.33 96.104zM192.207 720.777c0-16.57-9.942-28.168-36.453-28.168h-54.68v91.133h54.68c23.197 0 36.453-11.599 36.453-28.168v-34.796zM207.12 886.472c0-21.54-13.256-33.139-38.11-33.139h-67.935v92.79h54.68c28.168 0 49.709-6.628 49.709-34.796v-24.854z", + "M424.181 903.042v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s115.987 56.337 115.987 119.301v61.307h-155.754zM498.744 825.165c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M740.66 1024c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-19.883 4.971-43.081 9.942-62.964 9.942z", + "M1014.058 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM997.489 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-left-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 13, + "id": 7, + "prevSize": 32, + "code": 101, + "name": "sencha-extjs-beta-left-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 4 + }, + { + "icon": { + "width": 1107, + "paths": [ + "M80.622 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M255.476 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM302.593 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M500.483 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l6.282 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M644.973 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-10.47-2.094-26.176-3.141-36.646-3.141-21.988 0-29.317 8.376-29.317 27.223v42.928z", + "M862.757 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l54.446-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M1061.693 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M7.329 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M307.828 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h53.399l-58.634 91.092z", + "M457.554 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M580.057 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M788.417 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-61.775-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-6.282 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 1.047 50.258-15.706 75.387-91.092 75.387z", + "M114.127 1019.812h-106.798v-251.288h99.468c52.352 0 71.198 20.941 71.198 55.493v25.129c0 17.8-8.376 31.411-28.27 39.787 20.941 5.235 36.646 23.035 36.646 46.070v24.082c1.047 36.646-21.988 60.728-72.245 60.728zM121.456 832.393c0-10.47-6.282-17.8-23.035-17.8h-34.552v57.587h34.552c14.658 0 23.035-7.329 23.035-17.8v-21.988zM130.879 937.096c0-13.611-8.376-20.941-24.082-20.941h-42.928v58.634h34.552c17.8 0 31.411-4.188 31.411-21.988v-15.706z", + "M268.041 947.566v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s73.292 35.599 73.292 75.387v38.74h-98.421zM315.157 898.356c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M468.025 1024c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M640.785 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM630.315 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-left-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 14, + "id": 6, + "prevSize": 32, + "code": 102, + "name": "sencha-extjs-beta-left-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 5 + }, + { + "icon": { + "width": 3329, + "paths": [ + "M127.586 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M404.298 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM478.861 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M792.026 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l9.942 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1020.686 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-16.57-3.314-41.424-4.971-57.994-4.971-34.796 0-46.395 13.256-46.395 43.081v67.935z", + "M1365.333 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l86.162-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1680.155 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-8.285-66.278c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-71.249zM1665.243 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1948.583 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2422.472 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2661.074 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-62.964 9.942z", + "M2854.939 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3183.016 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M2417.502 1017.372h-169.010v-397.67h157.411c82.848 0 112.673 33.139 112.673 87.819v39.767c0 28.168-13.256 49.709-44.738 62.964 33.139 8.285 57.994 36.453 57.994 72.906v38.11c1.657 57.994-34.796 96.104-114.33 96.104zM2429.1 720.777c0-16.57-9.942-28.168-36.453-28.168h-54.68v91.133h54.68c23.197 0 36.453-11.599 36.453-28.168v-34.796zM2444.013 886.472c0-21.54-13.256-33.139-38.11-33.139h-67.935v92.79h54.68c28.168 0 49.709-6.628 49.709-34.796v-24.854z", + "M2661.074 903.042v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM2735.638 825.165c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M2975.896 1024c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-38.11v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-64.621 9.942z", + "M3249.294 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM3234.382 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-right-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 15, + "id": 5, + "prevSize": 32, + "code": 103, + "name": "sencha-extjs-beta-right-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 6 + }, + { + "icon": { + "width": 1112, + "paths": [ + "M80.622 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M255.476 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM302.593 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M500.483 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l6.282 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M644.973 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-10.47-2.094-26.176-3.141-36.646-3.141-21.988 0-29.317 8.376-29.317 27.223v42.928z", + "M862.757 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l54.446-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M1061.693 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M239.771 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M540.27 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h51.305l-56.54 91.092z", + "M689.996 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M812.499 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M1020.859 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528-1.047 50.258-16.753 75.387-92.139 75.387z", + "M536.082 1019.812h-106.798v-251.288h99.468c52.352 0 71.198 20.941 71.198 55.493v25.129c0 17.8-8.376 31.411-28.27 39.787 20.941 5.235 36.646 23.035 36.646 46.070v24.082c1.047 36.646-21.988 60.728-72.245 60.728zM543.411 832.393c0-10.47-6.282-17.8-23.035-17.8h-34.552v57.587h34.552c14.658 0 23.035-7.329 23.035-17.8v-21.988zM552.834 937.096c0-13.611-8.376-20.941-24.082-20.941h-42.928v58.634h34.552c17.8 0 31.411-4.188 31.411-21.988v-15.706z", + "M689.996 947.566v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM737.112 898.356c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M889.98 1024c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-28.27 6.282-39.787 6.282z", + "M1061.693 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-right-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 16, + "id": 4, + "prevSize": 32, + "code": 104, + "name": "sencha-extjs-beta-right-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 7 + }, + { + "icon": { + "width": 3349, + "paths": [ + "M147.469 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M424.181 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s115.987 56.337 115.987 119.301v61.307h-155.754zM498.744 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M811.909 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l8.285 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-84.505z", + "M1040.57 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-18.227-4.971-43.081-6.628-59.65-6.628-34.796 0-46.395 13.256-46.395 43.081v69.592z", + "M1385.217 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l84.505-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-84.505z", + "M1700.039 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM1685.126 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1968.466 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2442.356 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2679.301 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-19.883 4.971-43.081 9.942-62.964 9.942z", + "M2874.822 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3202.9 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-9.942 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 1.657 79.534-23.197 119.301-144.155 119.301z", + "M195.521 699.236v318.136h-89.476v-318.136h-106.045v-79.534h303.223v79.534h-107.702z", + "M402.641 840.078v177.294h-86.162v-289.968h71.249l6.628 28.168c18.227-11.599 54.68-29.825 77.877-34.796l6.628 81.191c-24.854 9.942-57.994 24.854-76.22 38.11z", + "M521.942 690.951v-91.133h86.162v91.133h-86.162zM521.942 1017.372v-289.968h86.162v289.968h-86.162z", + "M841.735 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM825.165 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M982.576 1017.372v-409.269l86.162-11.599v420.867h-86.162z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-left-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 17, + "id": 3, + "prevSize": 32, + "code": 105, + "name": "sencha-extjs-trial-left-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 8 + }, + { + "icon": { + "width": 1119, + "paths": [ + "M93.186 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M268.041 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s73.292 35.599 73.292 75.387v38.74h-98.421zM315.157 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M513.047 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l5.235 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-53.399z", + "M657.538 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-11.517-3.141-27.223-4.188-37.693-4.188-21.988 0-29.317 8.376-29.317 27.223v43.975z", + "M875.321 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l53.399-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-53.399z", + "M1074.258 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM1064.834 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M19.894 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M320.393 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h51.305l-56.54 91.092z", + "M470.119 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M592.622 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M800.982 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528-1.047 50.258-16.753 75.387-92.139 75.387z", + "M123.55 818.781v201.031h-56.54v-201.031h-67.010v-50.258h191.607v50.258h-68.057z", + "M254.429 907.779v112.033h-54.446v-183.231h45.022l4.188 17.8c11.517-7.329 34.552-18.847 49.211-21.988l4.188 51.305c-15.706 6.282-36.646 15.706-48.164 24.082z", + "M329.816 813.546v-57.587h54.446v57.587h-54.446zM329.816 1019.812v-183.231h54.446v183.231h-54.446z", + "M531.894 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM521.423 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M620.892 1019.812v-258.618l54.446-7.329v265.947h-54.446z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-left-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 18, + "id": 2, + "prevSize": 32, + "code": 106, + "name": "sencha-extjs-trial-left-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 9 + }, + { + "icon": { + "width": 3329, + "paths": [ + "M127.586 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M404.298 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM478.861 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M792.026 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l9.942 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1020.686 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-16.57-3.314-41.424-4.971-57.994-4.971-34.796 0-46.395 13.256-46.395 43.081v67.935z", + "M1365.333 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l86.162-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1680.155 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-8.285-66.278c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-71.249zM1665.243 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1948.583 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2422.472 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2661.074 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-62.964 9.942z", + "M2854.939 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3183.016 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M2440.699 699.236v318.136h-89.476v-318.136h-106.045v-79.534h303.223v79.534h-107.702z", + "M2647.819 840.078v177.294h-86.162v-289.968h71.249l6.628 28.168c18.227-11.599 54.68-29.825 77.877-34.796l6.628 81.191c-24.854 9.942-57.994 24.854-76.22 38.11z", + "M2767.12 690.951v-91.133h86.162v91.133h-86.162zM2767.12 1017.372v-289.968h86.162v289.968h-86.162z", + "M3086.913 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM3070.343 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M3227.754 1017.372v-409.269l86.162-11.599v420.867h-86.162z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-right-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 19, + "id": 1, + "prevSize": 32, + "code": 107, + "name": "sencha-extjs-trial-right-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 10 + }, + { + "icon": { + "width": 1112, + "paths": [ + "M80.622 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M255.476 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM302.593 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M500.483 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l6.282 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M644.973 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-10.47-2.094-26.176-3.141-36.646-3.141-21.988 0-29.317 8.376-29.317 27.223v42.928z", + "M862.757 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l54.446-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M1061.693 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M239.771 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M540.27 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h51.305l-56.54 91.092z", + "M689.996 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M812.499 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M1020.859 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528-1.047 50.258-16.753 75.387-92.139 75.387z", + "M551.787 818.781v201.031h-56.54v-201.031h-67.010v-50.258h191.607v50.258h-68.057z", + "M681.62 907.779v112.033h-54.446v-183.231h45.022l4.188 17.8c11.517-7.329 34.552-18.847 49.211-21.988l4.188 51.305c-15.706 6.282-36.646 15.706-48.164 24.082z", + "M757.006 813.546v-57.587h54.446v57.587h-54.446zM757.006 1019.812v-183.231h54.446v183.231h-54.446z", + "M959.084 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM948.613 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M1049.129 1019.812v-258.618l54.446-7.329v265.947h-54.446z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-right-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 20, + "id": 0, + "prevSize": 32, + "code": 108, + "name": "sencha-extjs-trial-right-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 11 + } + ], + "height": 1024, + "metadata": { + "name": "ext-watermark" + }, + "preferences": { + "showGlyphs": true, + "showQuickUse": true, + "showQuickUse2": true, + "showSVGs": true, + "fontPref": { + "prefix": "icon-", + "metadata": { + "fontFamily": "ext-watermark", + "majorVersion": 1, + "minorVersion": 0 + }, + "metrics": { + "emSize": 1024, + "baseline": 6.25, + "whitespace": 50 + }, + "showSelector": true, + "showMetrics": true, + "showMetadata": false, + "showVersion": false + }, + "imagePref": { + "prefix": "icon-", + "png": true, + "useClassSelector": true, + "color": 4473924, + "bgColor": 16777215 + }, + "historySize": 100, + "showCodes": true + } +} \ No newline at end of file diff --git a/frontend/build/production/DynamicForm/resources/ext/ext-watermark/style.css b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/style.css new file mode 100644 index 000000000..97b924c57 --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/ext/ext-watermark/style.css @@ -0,0 +1,73 @@ +@font-face { + font-family: 'ext-watermark'; + src:url('fonts/ext-watermark.eot?n6lnws'); + src:url('fonts/ext-watermark.eot?#iefixn6lnws') format('embedded-opentype'), + url('fonts/ext-watermark.woff?n6lnws') format('woff'), + url('fonts/ext-watermark.ttf?n6lnws') format('truetype'), + url('fonts/ext-watermark.svg?n6lnws#ext-watermark') format('svg'); + font-weight: normal; + font-style: normal; +} + +[class^="icon-"], [class*=" icon-"] { + font-family: 'ext-watermark'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-extjs-beta-left:before { + content: "\61"; +} + +.icon-extjs-beta-right:before { + content: "\62"; +} + +.icon-extjs-trial-left:before { + content: "\63"; +} + +.icon-extjs-trial-right:before { + content: "\64"; +} + +.icon-sencha-extjs-beta-left-2:before { + content: "\65"; +} + +.icon-sencha-extjs-beta-left-3:before { + content: "\66"; +} + +.icon-sencha-extjs-beta-right-2:before { + content: "\67"; +} + +.icon-sencha-extjs-beta-right-3:before { + content: "\68"; +} + +.icon-sencha-extjs-trial-left-2:before { + content: "\69"; +} + +.icon-sencha-extjs-trial-left-3:before { + content: "\6a"; +} + +.icon-sencha-extjs-trial-right-2:before { + content: "\6b"; +} + +.icon-sencha-extjs-trial-right-3:before { + content: "\6c"; +} + diff --git a/frontend/build/production/DynamicForm/resources/font-awesome/fonts/FontAwesome.otf b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/FontAwesome.otf new file mode 100644 index 000000000..681bdd4d4 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/FontAwesome.otf differ diff --git a/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.eot b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.eot new file mode 100644 index 000000000..a30335d74 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.eot differ diff --git a/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.svg b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.svg new file mode 100644 index 000000000..9f5324584 --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.svg @@ -0,0 +1,640 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.ttf b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.ttf new file mode 100644 index 000000000..d7994e130 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff new file mode 100644 index 000000000..6fd4ede0f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff differ diff --git a/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff2 b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff2 new file mode 100644 index 000000000..5560193cc Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff2 differ diff --git a/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.eot b/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.eot new file mode 100644 index 000000000..02bb42979 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.eot differ diff --git a/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.svg b/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.svg new file mode 100644 index 000000000..f0b8438f2 --- /dev/null +++ b/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.svg @@ -0,0 +1,41 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.ttf b/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.ttf new file mode 100644 index 000000000..74a8112ea Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.woff b/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.woff new file mode 100644 index 000000000..a794f9a54 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/font-ext/fonts/ExtJS.woff differ diff --git a/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Bold.ttf b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Bold.ttf new file mode 100644 index 000000000..fd79d43be Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Bold.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/fonts/OpenSans-BoldItalic.ttf b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-BoldItalic.ttf new file mode 100644 index 000000000..9bc800958 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-BoldItalic.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/fonts/OpenSans-ExtraBold.ttf b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-ExtraBold.ttf new file mode 100644 index 000000000..21f6f84a0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-ExtraBold.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/fonts/OpenSans-ExtraBoldItalic.ttf b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-ExtraBoldItalic.ttf new file mode 100644 index 000000000..31cb68834 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-ExtraBoldItalic.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Italic.ttf b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Italic.ttf new file mode 100644 index 000000000..c90da48ff Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Italic.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Light.ttf b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Light.ttf new file mode 100644 index 000000000..0d381897d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Light.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/fonts/OpenSans-LightItalic.ttf b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-LightItalic.ttf new file mode 100644 index 000000000..68299c4bc Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-LightItalic.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Regular.ttf b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Regular.ttf new file mode 100644 index 000000000..db433349b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Regular.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Semibold.ttf b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Semibold.ttf new file mode 100644 index 000000000..1a7679e39 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-Semibold.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/fonts/OpenSans-SemiboldItalic.ttf b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-SemiboldItalic.ttf new file mode 100644 index 000000000..59b6d16b0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/fonts/OpenSans-SemiboldItalic.ttf differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow-open-rtl.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow-open-rtl.png new file mode 100644 index 000000000..d9968ae6f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow-open-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow-open.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow-open.png new file mode 100644 index 000000000..04b11322b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow-open.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow-rtl.png new file mode 100644 index 000000000..90f717b41 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow.png new file mode 100644 index 000000000..51d286139 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-scroll-left.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-scroll-left.png new file mode 100644 index 000000000..5ff969ee1 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-scroll-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-scroll-right.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-scroll-right.png new file mode 100644 index 000000000..6fed21a55 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-scroll-right.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-open-rtl.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-open-rtl.png new file mode 100644 index 000000000..a8801dfb5 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-open-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-open.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-open.png new file mode 100644 index 000000000..19a667321 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-open.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-over-rtl.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-over-rtl.png new file mode 100644 index 000000000..db04b9d22 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-over-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-over.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-over.png new file mode 100644 index 000000000..5106cdf11 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-over.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-rtl.png new file mode 100644 index 000000000..658194be9 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow.png b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow.png new file mode 100644 index 000000000..d3d375c2f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/breadcrumb/default-split-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-corners.gif new file mode 100644 index 000000000..c8f665190 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-corners.gif new file mode 100644 index 000000000..4a712ba8d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-sides.gif new file mode 100644 index 000000000..88156ca12 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-sides.gif new file mode 100644 index 000000000..9228d0a13 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn-group/btn-group-default-framed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-corners.gif new file mode 100644 index 000000000..e4ae352ee Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-disabled-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-disabled-corners.gif new file mode 100644 index 000000000..192baa887 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-disabled-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-disabled-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-disabled-sides.gif new file mode 100644 index 000000000..fe9ebdba2 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-disabled-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-corners.gif new file mode 100644 index 000000000..2cf5edbe8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-over-corners.gif new file mode 100644 index 000000000..5f3e28973 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-over-sides.gif new file mode 100644 index 000000000..d6bad24d5 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-corners.gif new file mode 100644 index 000000000..d803a4b17 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-sides.gif new file mode 100644 index 000000000..7ffb20fe1 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-sides.gif new file mode 100644 index 000000000..42279d9a0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-focus-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-over-corners.gif new file mode 100644 index 000000000..4231f6e75 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-over-sides.gif new file mode 100644 index 000000000..951ed686f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-pressed-corners.gif new file mode 100644 index 000000000..046409fa0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-pressed-sides.gif new file mode 100644 index 000000000..0973bb7af Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-sides.gif new file mode 100644 index 000000000..2ae4bed0c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-large-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-corners.gif new file mode 100644 index 000000000..e4ae352ee Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-disabled-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-disabled-corners.gif new file mode 100644 index 000000000..192baa887 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-disabled-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-disabled-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-disabled-sides.gif new file mode 100644 index 000000000..fe9ebdba2 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-disabled-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-corners.gif new file mode 100644 index 000000000..2cf5edbe8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-over-corners.gif new file mode 100644 index 000000000..5f3e28973 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-over-sides.gif new file mode 100644 index 000000000..d6bad24d5 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-corners.gif new file mode 100644 index 000000000..d803a4b17 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-sides.gif new file mode 100644 index 000000000..7ffb20fe1 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-sides.gif new file mode 100644 index 000000000..42279d9a0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-focus-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-over-corners.gif new file mode 100644 index 000000000..4231f6e75 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-over-sides.gif new file mode 100644 index 000000000..951ed686f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-pressed-corners.gif new file mode 100644 index 000000000..046409fa0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-pressed-sides.gif new file mode 100644 index 000000000..0973bb7af Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-sides.gif new file mode 100644 index 000000000..f8f8b814f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-medium-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-corners.gif new file mode 100644 index 000000000..e4ae352ee Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-disabled-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-disabled-corners.gif new file mode 100644 index 000000000..192baa887 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-disabled-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-disabled-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-disabled-sides.gif new file mode 100644 index 000000000..fe9ebdba2 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-disabled-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-corners.gif new file mode 100644 index 000000000..2cf5edbe8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-over-corners.gif new file mode 100644 index 000000000..5f3e28973 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-over-sides.gif new file mode 100644 index 000000000..d6bad24d5 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-corners.gif new file mode 100644 index 000000000..d803a4b17 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-sides.gif new file mode 100644 index 000000000..7ffb20fe1 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-sides.gif new file mode 100644 index 000000000..42279d9a0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-focus-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-over-corners.gif new file mode 100644 index 000000000..4231f6e75 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-over-sides.gif new file mode 100644 index 000000000..951ed686f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-pressed-corners.gif new file mode 100644 index 000000000..046409fa0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-pressed-sides.gif new file mode 100644 index 000000000..0973bb7af Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-sides.gif new file mode 100644 index 000000000..0b2b1809e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-small-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-corners.gif new file mode 100644 index 000000000..ad37011e7 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-corners.gif new file mode 100644 index 000000000..56d6218b9 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-sides.gif new file mode 100644 index 000000000..de517ca69 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-corners.gif new file mode 100644 index 000000000..f23d56911 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-sides.gif new file mode 100644 index 000000000..03350a691 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-sides.gif new file mode 100644 index 000000000..6847cc4f7 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-large-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-corners.gif new file mode 100644 index 000000000..ad37011e7 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-corners.gif new file mode 100644 index 000000000..56d6218b9 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-sides.gif new file mode 100644 index 000000000..de517ca69 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-corners.gif new file mode 100644 index 000000000..f23d56911 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-sides.gif new file mode 100644 index 000000000..03350a691 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-sides.gif new file mode 100644 index 000000000..7092cbcbf Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-medium-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-corners.gif new file mode 100644 index 000000000..ad37011e7 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-corners.gif new file mode 100644 index 000000000..56d6218b9 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-sides.gif new file mode 100644 index 000000000..de517ca69 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-corners.gif new file mode 100644 index 000000000..f23d56911 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-sides.gif new file mode 100644 index 000000000..03350a691 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-sides.gif new file mode 100644 index 000000000..d6e6314e4 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-default-toolbar-small-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-corners.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-sides.gif b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-large-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-large-arrow-rtl.png new file mode 100644 index 000000000..76beeabd4 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-large-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-large-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-large-arrow.png new file mode 100644 index 000000000..32674e438 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-large-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow-b-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow-b-rtl.png new file mode 100644 index 000000000..79677a4ed Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow-b.png b/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow-b.png new file mode 100644 index 000000000..9f3928a2f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow-b.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow-rtl.png new file mode 100644 index 000000000..798505079 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow.png new file mode 100644 index 000000000..06ad27b13 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-large-s-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-medium-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-medium-arrow-rtl.png new file mode 100644 index 000000000..d54d3a0da Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-medium-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-medium-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-medium-arrow.png new file mode 100644 index 000000000..e565db494 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-medium-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow-b-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow-b-rtl.png new file mode 100644 index 000000000..f2fb53be8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow-b.png b/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow-b.png new file mode 100644 index 000000000..ee39ae273 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow-b.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow-rtl.png new file mode 100644 index 000000000..fb1114061 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow.png new file mode 100644 index 000000000..c1d187556 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-medium-s-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-small-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-small-arrow-rtl.png new file mode 100644 index 000000000..353844577 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-small-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-small-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-small-arrow.png new file mode 100644 index 000000000..17a9beb1d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-small-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow-b-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow-b-rtl.png new file mode 100644 index 000000000..2f8b2e57f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow-b.png b/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow-b.png new file mode 100644 index 000000000..afd13fbb1 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow-b.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow-rtl.png new file mode 100644 index 000000000..f59b79223 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow.png new file mode 100644 index 000000000..eaffbdcb6 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-small-s-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-arrow-rtl.png new file mode 100644 index 000000000..d8f0151dc Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-arrow.png new file mode 100644 index 000000000..31fc36e66 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b-rtl.png new file mode 100644 index 000000000..379d2d9f0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b.png new file mode 100644 index 000000000..dcfe8eabf Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-rtl.png new file mode 100644 index 000000000..612a6b16b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow.png new file mode 100644 index 000000000..731b207ea Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-large-s-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-arrow-rtl.png new file mode 100644 index 000000000..1648e51c8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-arrow.png new file mode 100644 index 000000000..65fdd036d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b-rtl.png new file mode 100644 index 000000000..8d2232b1a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b.png new file mode 100644 index 000000000..2489479f4 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-rtl.png new file mode 100644 index 000000000..c81c5f2e0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow.png new file mode 100644 index 000000000..0a6857aac Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-arrow-rtl.png new file mode 100644 index 000000000..891913855 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-arrow.png new file mode 100644 index 000000000..b56c2a65f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b-rtl.png new file mode 100644 index 000000000..11423517e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b.png new file mode 100644 index 000000000..bb1b08e92 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-rtl.png new file mode 100644 index 000000000..9e9e16b04 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow.png new file mode 100644 index 000000000..9a728579c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/default-toolbar-small-s-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-arrow-rtl.png new file mode 100644 index 000000000..3d68e7e25 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-arrow.png new file mode 100644 index 000000000..17a9beb1d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-s-arrow-b.png b/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-s-arrow-b.png new file mode 100644 index 000000000..afd13fbb1 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-s-arrow-b.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-s-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-s-arrow-rtl.png new file mode 100644 index 000000000..f59b79223 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-s-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-s-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-s-arrow.png new file mode 100644 index 000000000..eaffbdcb6 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/grid-cell-small-s-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-arrow-rtl.png new file mode 100644 index 000000000..d8f0151dc Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-arrow.png new file mode 100644 index 000000000..31fc36e66 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b-rtl.png new file mode 100644 index 000000000..379d2d9f0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b.png new file mode 100644 index 000000000..dcfe8eabf Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-rtl.png new file mode 100644 index 000000000..612a6b16b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow.png new file mode 100644 index 000000000..731b207ea Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-arrow-rtl.png new file mode 100644 index 000000000..1648e51c8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-arrow.png new file mode 100644 index 000000000..65fdd036d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b-rtl.png new file mode 100644 index 000000000..8d2232b1a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b.png new file mode 100644 index 000000000..2489479f4 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-rtl.png new file mode 100644 index 000000000..c81c5f2e0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow.png new file mode 100644 index 000000000..0a6857aac Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-arrow-rtl.png new file mode 100644 index 000000000..891913855 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-arrow.png new file mode 100644 index 000000000..b56c2a65f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b-rtl.png new file mode 100644 index 000000000..11423517e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b.png new file mode 100644 index 000000000..bb1b08e92 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-rtl.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-rtl.png new file mode 100644 index 000000000..9e9e16b04 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow.png b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow.png new file mode 100644 index 000000000..9a728579c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/datepicker/arrow-left.png b/frontend/build/production/DynamicForm/resources/images/datepicker/arrow-left.png new file mode 100644 index 000000000..fc09f9a6c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/datepicker/arrow-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/datepicker/arrow-right.png b/frontend/build/production/DynamicForm/resources/images/datepicker/arrow-right.png new file mode 100644 index 000000000..a22b876f9 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/datepicker/arrow-right.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/datepicker/month-arrow.png b/frontend/build/production/DynamicForm/resources/images/datepicker/month-arrow.png new file mode 100644 index 000000000..f0b572f63 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/datepicker/month-arrow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/dd/drop-add.png b/frontend/build/production/DynamicForm/resources/images/dd/drop-add.png new file mode 100644 index 000000000..a7b8f28d5 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/dd/drop-add.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/dd/drop-no.png b/frontend/build/production/DynamicForm/resources/images/dd/drop-no.png new file mode 100644 index 000000000..02e219a14 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/dd/drop-no.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/dd/drop-yes.png b/frontend/build/production/DynamicForm/resources/images/dd/drop-yes.png new file mode 100644 index 000000000..a7b8f28d5 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/dd/drop-yes.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/editor/tb-sprite.png b/frontend/build/production/DynamicForm/resources/images/editor/tb-sprite.png new file mode 100644 index 000000000..988611808 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/editor/tb-sprite.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/fieldset/collapse-tool.png b/frontend/build/production/DynamicForm/resources/images/fieldset/collapse-tool.png new file mode 100644 index 000000000..97eb83f59 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/fieldset/collapse-tool.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/checkbox.png b/frontend/build/production/DynamicForm/resources/images/form/checkbox.png new file mode 100644 index 000000000..fc2709cae Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/checkbox.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/clear-trigger-rtl.png b/frontend/build/production/DynamicForm/resources/images/form/clear-trigger-rtl.png new file mode 100644 index 000000000..73e1dbe9f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/clear-trigger-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/clear-trigger.png b/frontend/build/production/DynamicForm/resources/images/form/clear-trigger.png new file mode 100644 index 000000000..73e1dbe9f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/clear-trigger.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/date-trigger-rtl.png b/frontend/build/production/DynamicForm/resources/images/form/date-trigger-rtl.png new file mode 100644 index 000000000..948949369 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/date-trigger-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/date-trigger.png b/frontend/build/production/DynamicForm/resources/images/form/date-trigger.png new file mode 100644 index 000000000..948949369 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/date-trigger.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/exclamation.png b/frontend/build/production/DynamicForm/resources/images/form/exclamation.png new file mode 100644 index 000000000..3e6e3d089 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/exclamation.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/radio.png b/frontend/build/production/DynamicForm/resources/images/form/radio.png new file mode 100644 index 000000000..86644bb8e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/radio.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/search-trigger-rtl.png b/frontend/build/production/DynamicForm/resources/images/form/search-trigger-rtl.png new file mode 100644 index 000000000..15e15f5f7 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/search-trigger-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/search-trigger.png b/frontend/build/production/DynamicForm/resources/images/form/search-trigger.png new file mode 100644 index 000000000..15e15f5f7 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/search-trigger.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/spinner-rtl.png b/frontend/build/production/DynamicForm/resources/images/form/spinner-rtl.png new file mode 100644 index 000000000..28d140f33 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/spinner-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/spinner.png b/frontend/build/production/DynamicForm/resources/images/form/spinner.png new file mode 100644 index 000000000..28d140f33 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/spinner.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/tag-field-item-close.png b/frontend/build/production/DynamicForm/resources/images/form/tag-field-item-close.png new file mode 100644 index 000000000..bcb2834d6 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/tag-field-item-close.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/trigger-rtl.png b/frontend/build/production/DynamicForm/resources/images/form/trigger-rtl.png new file mode 100644 index 000000000..b4e2d5c31 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/trigger-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/form/trigger.png b/frontend/build/production/DynamicForm/resources/images/form/trigger.png new file mode 100644 index 000000000..b4e2d5c31 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/form/trigger.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-corners.gif b/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-corners.gif new file mode 100644 index 000000000..422727564 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-sides.gif b/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-sides.gif new file mode 100644 index 000000000..b0bbe707a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-corners.gif b/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-corners.gif new file mode 100644 index 000000000..d3c49a289 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-sides.gif b/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-sides.gif new file mode 100644 index 000000000..b0bbe707a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/col-move-bottom.png b/frontend/build/production/DynamicForm/resources/images/grid/col-move-bottom.png new file mode 100644 index 000000000..97822194e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/col-move-bottom.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/col-move-top.png b/frontend/build/production/DynamicForm/resources/images/grid/col-move-top.png new file mode 100644 index 000000000..6e28535af Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/col-move-top.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/columns.png b/frontend/build/production/DynamicForm/resources/images/grid/columns.png new file mode 100644 index 000000000..70a5c8735 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/columns.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/dd-insert-arrow-left.png b/frontend/build/production/DynamicForm/resources/images/grid/dd-insert-arrow-left.png new file mode 100644 index 000000000..e8177d057 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/dd-insert-arrow-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/dd-insert-arrow-right.png b/frontend/build/production/DynamicForm/resources/images/grid/dd-insert-arrow-right.png new file mode 100644 index 000000000..d610f9d55 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/dd-insert-arrow-right.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/dirty-rtl.png b/frontend/build/production/DynamicForm/resources/images/grid/dirty-rtl.png new file mode 100644 index 000000000..5f8412289 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/dirty-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/dirty.png b/frontend/build/production/DynamicForm/resources/images/grid/dirty.png new file mode 100644 index 000000000..fc06fdde5 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/dirty.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/drop-no.png b/frontend/build/production/DynamicForm/resources/images/grid/drop-no.png new file mode 100644 index 000000000..02e219a14 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/drop-no.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/drop-yes.png b/frontend/build/production/DynamicForm/resources/images/grid/drop-yes.png new file mode 100644 index 000000000..a7b8f28d5 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/drop-yes.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/filters/equals.png b/frontend/build/production/DynamicForm/resources/images/grid/filters/equals.png new file mode 100644 index 000000000..c1060caea Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/filters/equals.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/filters/find.png b/frontend/build/production/DynamicForm/resources/images/grid/filters/find.png new file mode 100644 index 000000000..dbfbc16d9 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/filters/find.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/filters/greater_than.png b/frontend/build/production/DynamicForm/resources/images/grid/filters/greater_than.png new file mode 100644 index 000000000..be41c9a85 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/filters/greater_than.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/filters/less_than.png b/frontend/build/production/DynamicForm/resources/images/grid/filters/less_than.png new file mode 100644 index 000000000..80aacddf2 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/filters/less_than.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/group-by.png b/frontend/build/production/DynamicForm/resources/images/grid/group-by.png new file mode 100644 index 000000000..8508adeb8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/group-by.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/group-collapse.png b/frontend/build/production/DynamicForm/resources/images/grid/group-collapse.png new file mode 100644 index 000000000..49fcc4fda Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/group-collapse.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/group-expand.png b/frontend/build/production/DynamicForm/resources/images/grid/group-expand.png new file mode 100644 index 000000000..d65a7df03 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/group-expand.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/hd-pop.png b/frontend/build/production/DynamicForm/resources/images/grid/hd-pop.png new file mode 100644 index 000000000..3ad96ef66 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/hd-pop.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/hmenu-asc.png b/frontend/build/production/DynamicForm/resources/images/grid/hmenu-asc.png new file mode 100644 index 000000000..a206d35fe Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/hmenu-asc.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/hmenu-desc.png b/frontend/build/production/DynamicForm/resources/images/grid/hmenu-desc.png new file mode 100644 index 000000000..55a714e1c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/hmenu-desc.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/hmenu-lock.png b/frontend/build/production/DynamicForm/resources/images/grid/hmenu-lock.png new file mode 100644 index 000000000..b293e10d0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/hmenu-lock.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/hmenu-unlock.png b/frontend/build/production/DynamicForm/resources/images/grid/hmenu-unlock.png new file mode 100644 index 000000000..e9e9df59c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/hmenu-unlock.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/loading.gif b/frontend/build/production/DynamicForm/resources/images/grid/loading.gif new file mode 100644 index 000000000..81b0f1257 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/loading.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/page-first.png b/frontend/build/production/DynamicForm/resources/images/grid/page-first.png new file mode 100644 index 000000000..7691f320e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/page-first.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/page-last.png b/frontend/build/production/DynamicForm/resources/images/grid/page-last.png new file mode 100644 index 000000000..49b13d7ea Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/page-last.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/page-next.png b/frontend/build/production/DynamicForm/resources/images/grid/page-next.png new file mode 100644 index 000000000..c3e72bab9 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/page-next.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/page-prev.png b/frontend/build/production/DynamicForm/resources/images/grid/page-prev.png new file mode 100644 index 000000000..cace90be7 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/page-prev.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/pick-button.png b/frontend/build/production/DynamicForm/resources/images/grid/pick-button.png new file mode 100644 index 000000000..acafacefa Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/pick-button.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/refresh.png b/frontend/build/production/DynamicForm/resources/images/grid/refresh.png new file mode 100644 index 000000000..5320dddee Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/refresh.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/sort_asc.png b/frontend/build/production/DynamicForm/resources/images/grid/sort_asc.png new file mode 100644 index 000000000..a206d35fe Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/sort_asc.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/grid/sort_desc.png b/frontend/build/production/DynamicForm/resources/images/grid/sort_desc.png new file mode 100644 index 000000000..55a714e1c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/grid/sort_desc.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/loadmask/loading.gif b/frontend/build/production/DynamicForm/resources/images/loadmask/loading.gif new file mode 100644 index 000000000..8471b4f0b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/loadmask/loading.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/magnify.png b/frontend/build/production/DynamicForm/resources/images/magnify.png new file mode 100644 index 000000000..b807c42a4 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/magnify.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/menu/default-checked.png b/frontend/build/production/DynamicForm/resources/images/menu/default-checked.png new file mode 100644 index 000000000..4f5157d87 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/menu/default-checked.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/menu/default-group-checked.png b/frontend/build/production/DynamicForm/resources/images/menu/default-group-checked.png new file mode 100644 index 000000000..a9f0b80fd Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/menu/default-group-checked.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/menu/default-menu-parent-left.png b/frontend/build/production/DynamicForm/resources/images/menu/default-menu-parent-left.png new file mode 100644 index 000000000..d45756444 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/menu/default-menu-parent-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/menu/default-menu-parent.png b/frontend/build/production/DynamicForm/resources/images/menu/default-menu-parent.png new file mode 100644 index 000000000..2d2331ed3 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/menu/default-menu-parent.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/menu/default-scroll-bottom.png b/frontend/build/production/DynamicForm/resources/images/menu/default-scroll-bottom.png new file mode 100644 index 000000000..d89a459ad Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/menu/default-scroll-bottom.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/menu/default-scroll-top.png b/frontend/build/production/DynamicForm/resources/images/menu/default-scroll-top.png new file mode 100644 index 000000000..bbbf4af7a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/menu/default-scroll-top.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/menu/default-unchecked.png b/frontend/build/production/DynamicForm/resources/images/menu/default-unchecked.png new file mode 100644 index 000000000..bce8817b0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/menu/default-unchecked.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-sides.gif new file mode 100644 index 000000000..41855183b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif new file mode 100644 index 000000000..41855183b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners-rtl.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-sides.gif new file mode 100644 index 000000000..57a02b72e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners-rtl.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-sides.gif new file mode 100644 index 000000000..57a02b72e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-sides.gif new file mode 100644 index 000000000..41855183b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners-rtl.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-sides.gif new file mode 100644 index 000000000..57a02b72e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners-rtl.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-sides.gif new file mode 100644 index 000000000..57a02b72e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-sides.gif new file mode 100644 index 000000000..41855183b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel/panel-default-framed-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel/panel-default-framed-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel/panel-default-framed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel/panel-default-framed-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel/panel-default-framed-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel/panel-default-framed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel/panel-light-framed-corners.gif b/frontend/build/production/DynamicForm/resources/images/panel/panel-light-framed-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel/panel-light-framed-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/panel/panel-light-framed-sides.gif b/frontend/build/production/DynamicForm/resources/images/panel/panel-light-framed-sides.gif new file mode 100644 index 000000000..57a02b72e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/panel/panel-light-framed-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/shared/icon-error.png b/frontend/build/production/DynamicForm/resources/images/shared/icon-error.png new file mode 100644 index 000000000..458c0989f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/shared/icon-error.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/shared/icon-info.png b/frontend/build/production/DynamicForm/resources/images/shared/icon-info.png new file mode 100644 index 000000000..cbccd11cf Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/shared/icon-info.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/shared/icon-question.png b/frontend/build/production/DynamicForm/resources/images/shared/icon-question.png new file mode 100644 index 000000000..cac922e0d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/shared/icon-question.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/shared/icon-warning.png b/frontend/build/production/DynamicForm/resources/images/shared/icon-warning.png new file mode 100644 index 000000000..042ca05cd Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/shared/icon-warning.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/sizer/e-handle.png b/frontend/build/production/DynamicForm/resources/images/sizer/e-handle.png new file mode 100644 index 000000000..2fe5cb15d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/sizer/e-handle.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/sizer/ne-handle.png b/frontend/build/production/DynamicForm/resources/images/sizer/ne-handle.png new file mode 100644 index 000000000..8d8eb6387 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/sizer/ne-handle.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/sizer/nw-handle.png b/frontend/build/production/DynamicForm/resources/images/sizer/nw-handle.png new file mode 100644 index 000000000..9835bea83 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/sizer/nw-handle.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/sizer/s-handle.png b/frontend/build/production/DynamicForm/resources/images/sizer/s-handle.png new file mode 100644 index 000000000..06f914e7c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/sizer/s-handle.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/sizer/se-handle.png b/frontend/build/production/DynamicForm/resources/images/sizer/se-handle.png new file mode 100644 index 000000000..5a2c695c7 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/sizer/se-handle.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/sizer/sw-handle.png b/frontend/build/production/DynamicForm/resources/images/sizer/sw-handle.png new file mode 100644 index 000000000..7f68f406a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/sizer/sw-handle.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/slider/slider-bg.png b/frontend/build/production/DynamicForm/resources/images/slider/slider-bg.png new file mode 100644 index 000000000..1ade2925b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/slider/slider-bg.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/slider/slider-thumb.png b/frontend/build/production/DynamicForm/resources/images/slider/slider-thumb.png new file mode 100644 index 000000000..d8a03de94 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/slider/slider-thumb.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/slider/slider-v-bg.png b/frontend/build/production/DynamicForm/resources/images/slider/slider-v-bg.png new file mode 100644 index 000000000..c24663e50 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/slider/slider-v-bg.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/slider/slider-v-thumb.png b/frontend/build/production/DynamicForm/resources/images/slider/slider-v-thumb.png new file mode 100644 index 000000000..d8a03de94 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/slider/slider-v-thumb.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-bottom.png b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-bottom.png new file mode 100644 index 000000000..813a4d54b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-bottom.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-left.png b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-left.png new file mode 100644 index 000000000..9120ea427 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-right.png b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-right.png new file mode 100644 index 000000000..67fd5a4b6 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-right.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-top.png b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-top.png new file mode 100644 index 000000000..01ad4ee9a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-plain-scroll-top.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-bottom.png b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-bottom.png new file mode 100644 index 000000000..ffff826e3 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-bottom.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-left.png b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-left.png new file mode 100644 index 000000000..2c352941f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-right.png b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-right.png new file mode 100644 index 000000000..82dfe01f6 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-right.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-top.png b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-top.png new file mode 100644 index 000000000..b2fabfc32 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab-bar/default-scroll-top.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-active-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-active-fbg.gif new file mode 100644 index 000000000..7ab3e2a2f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-active-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-focus-active-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-focus-active-fbg.gif new file mode 100644 index 000000000..7ab3e2a2f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-focus-active-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-focus-over-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-focus-over-fbg.gif new file mode 100644 index 000000000..48a5a75cb Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-focus-over-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-over-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-over-fbg.gif new file mode 100644 index 000000000..48a5a75cb Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-bottom-over-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-close.png b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-close.png new file mode 100644 index 000000000..46cc89f5f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-close.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-active-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-active-fbg.gif new file mode 100644 index 000000000..e6f77b848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-active-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-focus-active-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-focus-active-fbg.gif new file mode 100644 index 000000000..e6f77b848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-focus-active-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-focus-over-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-focus-over-fbg.gif new file mode 100644 index 000000000..e11bf8100 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-focus-over-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-over-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-over-fbg.gif new file mode 100644 index 000000000..e11bf8100 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-left-over-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-active-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-active-fbg.gif new file mode 100644 index 000000000..e6f77b848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-active-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-focus-active-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-focus-active-fbg.gif new file mode 100644 index 000000000..e6f77b848 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-focus-active-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-focus-over-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-focus-over-fbg.gif new file mode 100644 index 000000000..e11bf8100 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-focus-over-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-over-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-over-fbg.gif new file mode 100644 index 000000000..e11bf8100 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-right-over-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-active-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-active-fbg.gif new file mode 100644 index 000000000..7ab3e2a2f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-active-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-focus-active-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-focus-active-fbg.gif new file mode 100644 index 000000000..7ab3e2a2f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-focus-active-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-focus-over-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-focus-over-fbg.gif new file mode 100644 index 000000000..48a5a75cb Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-focus-over-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-over-fbg.gif b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-over-fbg.gif new file mode 100644 index 000000000..48a5a75cb Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tab/tab-default-top-over-fbg.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tip/tip-default-corners.gif b/frontend/build/production/DynamicForm/resources/images/tip/tip-default-corners.gif new file mode 100644 index 000000000..a22235946 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tip/tip-default-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tip/tip-default-sides.gif b/frontend/build/production/DynamicForm/resources/images/tip/tip-default-sides.gif new file mode 100644 index 000000000..5dff76519 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tip/tip-default-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tip/tip-form-invalid-corners.gif b/frontend/build/production/DynamicForm/resources/images/tip/tip-form-invalid-corners.gif new file mode 100644 index 000000000..a22235946 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tip/tip-form-invalid-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tip/tip-form-invalid-sides.gif b/frontend/build/production/DynamicForm/resources/images/tip/tip-form-invalid-sides.gif new file mode 100644 index 000000000..5dff76519 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tip/tip-form-invalid-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/toolbar/default-more-left.png b/frontend/build/production/DynamicForm/resources/images/toolbar/default-more-left.png new file mode 100644 index 000000000..b6756e6a0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/toolbar/default-more-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/toolbar/default-more.png b/frontend/build/production/DynamicForm/resources/images/toolbar/default-more.png new file mode 100644 index 000000000..b6756e6a0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/toolbar/default-more.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-bottom.png b/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-bottom.png new file mode 100644 index 000000000..6741161e8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-bottom.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-left.png b/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-left.png new file mode 100644 index 000000000..5ff969ee1 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-right.png b/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-right.png new file mode 100644 index 000000000..6fed21a55 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-right.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-top.png b/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-top.png new file mode 100644 index 000000000..2a26ba95a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/toolbar/default-scroll-top.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/toolbar/footer-more-left.png b/frontend/build/production/DynamicForm/resources/images/toolbar/footer-more-left.png new file mode 100644 index 000000000..b6756e6a0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/toolbar/footer-more-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/toolbar/footer-more.png b/frontend/build/production/DynamicForm/resources/images/toolbar/footer-more.png new file mode 100644 index 000000000..b6756e6a0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/toolbar/footer-more.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/toolbar/footer-scroll-left.png b/frontend/build/production/DynamicForm/resources/images/toolbar/footer-scroll-left.png new file mode 100644 index 000000000..5ff969ee1 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/toolbar/footer-scroll-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/toolbar/footer-scroll-right.png b/frontend/build/production/DynamicForm/resources/images/toolbar/footer-scroll-right.png new file mode 100644 index 000000000..6fed21a55 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/toolbar/footer-scroll-right.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tools/tool-sprites-dark.png b/frontend/build/production/DynamicForm/resources/images/tools/tool-sprites-dark.png new file mode 100644 index 000000000..474088b6d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tools/tool-sprites-dark.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tools/tool-sprites.png b/frontend/build/production/DynamicForm/resources/images/tools/tool-sprites.png new file mode 100644 index 000000000..17fbc0f1f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tools/tool-sprites.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/arrows-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/arrows-rtl.png new file mode 100644 index 000000000..4aae887d8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/arrows-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/arrows.png b/frontend/build/production/DynamicForm/resources/images/tree/arrows.png new file mode 100644 index 000000000..de10dd6fa Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/arrows.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-above.png b/frontend/build/production/DynamicForm/resources/images/tree/drop-above.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-above.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-add.gif b/frontend/build/production/DynamicForm/resources/images/tree/drop-add.gif new file mode 100644 index 000000000..b22cd1448 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-add.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-add.png b/frontend/build/production/DynamicForm/resources/images/tree/drop-add.png new file mode 100644 index 000000000..c9d24fd82 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-add.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-append.png b/frontend/build/production/DynamicForm/resources/images/tree/drop-append.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-append.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-below.png b/frontend/build/production/DynamicForm/resources/images/tree/drop-below.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-below.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-between.gif b/frontend/build/production/DynamicForm/resources/images/tree/drop-between.gif new file mode 100644 index 000000000..f5a042d72 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-between.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-between.png b/frontend/build/production/DynamicForm/resources/images/tree/drop-between.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-between.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-no.gif b/frontend/build/production/DynamicForm/resources/images/tree/drop-no.gif new file mode 100644 index 000000000..9d9c6a9ce Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-no.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-no.png b/frontend/build/production/DynamicForm/resources/images/tree/drop-no.png new file mode 100644 index 000000000..bb89cfc14 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-no.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-over.gif b/frontend/build/production/DynamicForm/resources/images/tree/drop-over.gif new file mode 100644 index 000000000..2e514e7e1 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-over.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-over.png b/frontend/build/production/DynamicForm/resources/images/tree/drop-over.png new file mode 100644 index 000000000..70d1807f0 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-over.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-under.gif b/frontend/build/production/DynamicForm/resources/images/tree/drop-under.gif new file mode 100644 index 000000000..8535ef468 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-under.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-under.png b/frontend/build/production/DynamicForm/resources/images/tree/drop-under.png new file mode 100644 index 000000000..3ba23b37a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-under.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-yes.gif b/frontend/build/production/DynamicForm/resources/images/tree/drop-yes.gif new file mode 100644 index 000000000..8aacb307e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-yes.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/drop-yes.png b/frontend/build/production/DynamicForm/resources/images/tree/drop-yes.png new file mode 100644 index 000000000..83d0dbc27 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/drop-yes.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-minus-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-minus-rtl.png new file mode 100644 index 000000000..2ffe7b2d3 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-minus-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-minus.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-minus.png new file mode 100644 index 000000000..b39a71df5 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-minus.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-plus-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-plus-rtl.png new file mode 100644 index 000000000..bea9892ce Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-plus-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-plus.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-plus.png new file mode 100644 index 000000000..630438f2f Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-plus.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-rtl.png new file mode 100644 index 000000000..1d0821b6e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-end.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end.png new file mode 100644 index 000000000..2eb0ed0cd Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-end.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-line-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-line-rtl.png new file mode 100644 index 000000000..e26b76850 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-line-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-line.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-line.png new file mode 100644 index 000000000..ac374247b Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-line.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus-nl-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus-nl-rtl.png new file mode 100644 index 000000000..1008a544a Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus-nl-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus-nl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus-nl.png new file mode 100644 index 000000000..f2a805deb Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus-nl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus-rtl.png new file mode 100644 index 000000000..cefb7045e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus.png new file mode 100644 index 000000000..a256b48b4 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-minus.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus-nl-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus-nl-rtl.png new file mode 100644 index 000000000..e1e6ece6c Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus-nl-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus-nl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus-nl.png new file mode 100644 index 000000000..3a401eaac Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus-nl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus-rtl.png new file mode 100644 index 000000000..487f27a65 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus.png new file mode 100644 index 000000000..03e202af8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-plus.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow-rtl.png new file mode 100644 index 000000000..166e163d2 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/elbow.png b/frontend/build/production/DynamicForm/resources/images/tree/elbow.png new file mode 100644 index 000000000..4bf9ae5cc Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/elbow.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/folder-open-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/folder-open-rtl.png new file mode 100644 index 000000000..bb896d841 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/folder-open-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/folder-open.png b/frontend/build/production/DynamicForm/resources/images/tree/folder-open.png new file mode 100644 index 000000000..50397daa1 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/folder-open.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/folder-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/folder-rtl.png new file mode 100644 index 000000000..3b1767212 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/folder-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/folder.png b/frontend/build/production/DynamicForm/resources/images/tree/folder.png new file mode 100644 index 000000000..4b0205404 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/folder.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/leaf-rtl.png b/frontend/build/production/DynamicForm/resources/images/tree/leaf-rtl.png new file mode 100644 index 000000000..b2e6f6e52 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/leaf-rtl.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/leaf.png b/frontend/build/production/DynamicForm/resources/images/tree/leaf.png new file mode 100644 index 000000000..6acb63584 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/leaf.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/tree/loading.gif b/frontend/build/production/DynamicForm/resources/images/tree/loading.gif new file mode 100644 index 000000000..81b0f1257 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/tree/loading.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-bottom.png b/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-bottom.png new file mode 100644 index 000000000..241209e96 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-bottom.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-left.png b/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-left.png new file mode 100644 index 000000000..1c40b787e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-left.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-right.png b/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-right.png new file mode 100644 index 000000000..505c3295e Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-right.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-top.png b/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-top.png new file mode 100644 index 000000000..4a378a397 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/util/splitter/mini-top.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-bottom-corners.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-bottom-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-bottom-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-bottom-sides.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-bottom-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-bottom-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-corners.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-sides.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-sides.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-sides.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-corners.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-sides.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-left-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-left-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-left-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-left-corners.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-left-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-left-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-left-sides.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-left-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-left-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-right-corners-rtl.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-right-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-right-corners-rtl.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-right-corners.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-right-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-right-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-right-sides.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-right-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-right-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-top-corners.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-top-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-top-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-top-sides.gif b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-top-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window-header/window-header-default-top-sides.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window/toast/fade-blue.png b/frontend/build/production/DynamicForm/resources/images/window/toast/fade-blue.png new file mode 100644 index 000000000..4dbf08b0d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window/toast/fade-blue.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/window/toast/fader.png b/frontend/build/production/DynamicForm/resources/images/window/toast/fader.png new file mode 100644 index 000000000..be8c27fa2 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window/toast/fader.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/window/toast/icon16_error.png b/frontend/build/production/DynamicForm/resources/images/window/toast/icon16_error.png new file mode 100644 index 000000000..5f168d326 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window/toast/icon16_error.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/window/toast/icon16_info.png b/frontend/build/production/DynamicForm/resources/images/window/toast/icon16_info.png new file mode 100644 index 000000000..6c6b32d02 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window/toast/icon16_info.png differ diff --git a/frontend/build/production/DynamicForm/resources/images/window/window-default-corners.gif b/frontend/build/production/DynamicForm/resources/images/window/window-default-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window/window-default-corners.gif differ diff --git a/frontend/build/production/DynamicForm/resources/images/window/window-default-sides.gif b/frontend/build/production/DynamicForm/resources/images/window/window-default-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/production/DynamicForm/resources/images/window/window-default-sides.gif differ diff --git a/frontend/build/production/Explorer/app.js b/frontend/build/production/Explorer/app.js index 9cdb28ff5..5ee82e764 100644 --- a/frontend/build/production/Explorer/app.js +++ b/frontend/build/production/Explorer/app.js @@ -1 +1 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.defineProperty=typeof Object.defineProperties=='function'?Object.defineProperty:function(b,c,a){a=a;if(b==Array.prototype||b==Object.prototype){return}b[c]=a.value};$jscomp.getGlobal=function(a){return typeof window!='undefined'&&window===a?a:typeof global!='undefined'&&global!=null?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(i,f,j,k){if(!f){return}var a=$jscomp.global;var b=i.split('.');for(var e=0;ec){if(--b in this){this[--d]=this[b]}else {delete this[d]}}}return this};return b},'es6-impl','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global['Symbol']){$jscomp.global['Symbol']=$jscomp.Symbol}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||'')+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global['Symbol'].iterator;if(!a){a=$jscomp.global['Symbol'].iterator=$jscomp.global['Symbol']('iterator')}if(typeof Array.prototype[a]!='function'){$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}})}$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){if(bd){b=d}b=Number(b);if(b<0){b=Math.max(0,d+b)}for(var e=Number(c||0);e-0.25){var f=b;var g=1;var c=b;var d=0;var e=1;while(d!=c){f*=b;e*=-1;c=(d=c)+e*f/++g}return c}return Math.log(1+b)};return b},'es6-impl','es3');$jscomp.polyfill('Math.atanh',function(b){if(b){return b}var a=Math.log1p;var c=function(c){c=Number(c);return (a(c)-a(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.cbrt',function(a){if(a){return a}var b=function(b){if(b===0){return b}b=Number(b);var c=Math.pow(Math.abs(b),1/3);return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Math.clz32',function(a){if(a){return a}var b=function(b){b=Number(b)>>>0;if(b===0){return 32}var c=0;if((b&4.29490176E9)===0){b<<=16;c+=16}if((b&4.27819008E9)===0){b<<=8;c+=8}if((b&4.02653184E9)===0){b<<=4;c+=4}if((b&3.221225472E9)===0){b<<=2;c+=2}if((b&2.147483648E9)===0){c++}return c};return b},'es6-impl','es3');$jscomp.polyfill('Math.cosh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);return (b(c)+b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.expm1',function(a){if(a){return a}var b=function(b){b=Number(b);if(b<0.25&&b>-0.25){var e=b;var f=1;var c=b;var d=0;while(d!=c){e*=b/++f;c=(d=c)+e}return c}return Math.exp(b)-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.hypot',function(a){if(a){return a}var b=function(c,d,h){c=Number(c);d=Number(d);var b,g,f;var e=Math.max(Math.abs(c),Math.abs(d));for(b=2;b1.0E100||e<1.0E-100){c=c/e;d=d/e;f=c*c+d*d;for(b=2;b>>16&65535;var d=b&65535;var g=c>>>16&65535;var e=c&65535;var h=f*e+d*g<<16>>>0;return d*e+h|0};return b},'es6-impl','es3');$jscomp.polyfill('Math.log10',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN10};return b},'es6-impl','es3');$jscomp.polyfill('Math.log2',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN2};return b},'es6-impl','es3');$jscomp.polyfill('Math.sign',function(a){if(a){return a}var b=function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.sinh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);if(c===0){return c}return (b(c)-b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.tanh',function(a){if(a){return a}var b=function(b){b=Number(b);if(b===0){return b}var c=Math.exp(-2*Math.abs(b));var d=(1-c)/(1+c);return b<0?-d:d};return b},'es6-impl','es3');$jscomp.polyfill('Math.trunc',function(a){if(a){return a}var b=function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0){return b}var c=Math.floor(Math.abs(b));return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Number.EPSILON',function(a){return Math.pow(2,-52)},'es6-impl','es3');$jscomp.polyfill('Number.MAX_SAFE_INTEGER',function(){return 9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.MIN_SAFE_INTEGER',function(){return -9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.isFinite',function(a){if(a){return a}var b=function(b){if(typeof b!=='number'){return !1}return !isNaN(b)&&b!==Infinity&&b!==-Infinity};return b},'es6-impl','es3');$jscomp.polyfill('Number.isInteger',function(a){if(a){return a}var b=function(b){if(!Number.isFinite(b)){return !1}return b===Math.floor(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isNaN',function(a){if(a){return a}var b=function(b){return typeof b==='number'&&isNaN(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isSafeInteger',function(a){if(a){return a}var b=function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER};return b},'es6-impl','es3');$jscomp.polyfill('Object.assign',function(a){if(a){return a}var b=function(e,f){for(var d=1;d3?f:b,e);return !0}else {if(c.writable&&!Object.isFrozen(b)){b[d]=e;return !0}}return !1};return b},'es6','es5');$jscomp.polyfill('Reflect.setPrototypeOf',function(a){if(a){return a}if(typeof ''.__proto__!='object'){return null}var b=function(b,c){try{b.__proto__=c;return b.__proto__===c}catch(d){return !1}};return b},'es6','es5');$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.polyfill('Set',function(b){var c=!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!b||!b.prototype.entries||typeof Object.seal!='function'){return !1}try{b=b;var d=Object.seal({x:4});var c=new b($jscomp.makeIterator([d]));if(!c.has(d)||c.size!=1||c.add(d)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2){return !1}var e=c.entries();var a=e.next();if(a.done||a.value[0]!=d||a.value[1]!=d){return !1}a=e.next();if(a.done||a.value[0]==d||a.value[0].x!=4||a.value[1]!=a.value[0]){return !1}return e.next().done}catch(f){return !1}}();if(c){return b}$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=function(a){this.map_=new Map();if(a){var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}this.size=this.map_.size};a.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};a.prototype['delete']=function(c){var a=this.map_['delete'](c);this.size=this.map_.size;return a};a.prototype.clear=function(){this.map_.clear();this.size=0};a.prototype.has=function(a){return this.map_.has(a)};a.prototype.entries=function(){return this.map_.entries()};a.prototype.values=function(){return this.map_.values()};a.prototype.keys=a.prototype.values;$jscomp.initSymbol();$jscomp.initSymbolIterator();a.prototype[Symbol.iterator]=a.prototype.values;a.prototype.forEach=function(c,a){var d=this;this.map_.forEach(function(e){return c.call(a,e,e,d)})};return a},'es6-impl','es3');$jscomp.checkStringArgs=function(a,c,b){if(a==null){throw new TypeError("The 'this' value for String.prototype."+b+' must not be null or undefined')}if(c instanceof RegExp){throw new TypeError('First argument to String.prototype.'+b+' must not be a regular expression')}return a+''};$jscomp.polyfill('String.prototype.codePointAt',function(a){if(a){return a}var b=function(b){var e=$jscomp.checkStringArgs(this,null,'codePointAt');var f=e.length;b=Number(b)||0;if(!(b>=0&&b56319||b+1===f){return c}var d=e.charCodeAt(b+1);if(d<56320||d>57343){return c}return (c-55296)*1024+d+9216};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.endsWith',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'endsWith');b=b+'';if(c===void 0){c=d.length}var f=Math.max(0,Math.min(c|0,d.length));var e=b.length;while(e>0&&f>0){if(d[--f]!=b[--e]){return !1}}return e<=0};return b},'es6-impl','es3');$jscomp.polyfill('String.fromCodePoint',function(a){if(a){return a}var b=function(e){var c='';for(var d=0;d1114111||b!==Math.floor(b)){throw new RangeError('invalid_code_point '+b)}if(b<=65535){c+=String.fromCharCode(b)}else {b-=65536;c+=String.fromCharCode(b>>>10&1023|55296);c+=String.fromCharCode(b&1023|56320)}}return c};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.includes',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'includes');return d.indexOf(b,c||0)!==-1};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.repeat',function(a){if(a){return a}var b=function(b){var c=$jscomp.checkStringArgs(this,null,'repeat');if(b<0||b>1342177279){throw new RangeError('Invalid count value')}b=b|0;var d='';while(b){if(b&1){d+=c}if(b>>>=1){c+=c}}return d};return b},'es6-impl','es3');$jscomp.stringPadding=function(c,a){var b=c!==undefined?String(c):' ';if(!(a>0)||!b){return ''}var d=Math.ceil(a/b.length);return b.repeat(d).substring(0,a)};$jscomp.polyfill('String.prototype.padEnd',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return b+$jscomp.stringPadding(c,e)};return b},'es8','es3');$jscomp.polyfill('String.prototype.padStart',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return $jscomp.stringPadding(c,e)+b};return b},'es8','es3');$jscomp.polyfill('String.prototype.startsWith',function(a){if(a){return a}var b=function(b,g){var c=$jscomp.checkStringArgs(this,b,'startsWith');b=b+'';var h=c.length;var e=b.length;var f=Math.max(0,Math.min(g|0,c.length));var d=0;while(d=e};return b},'es6-impl','es3');$jscomp.arrayFromIterator=function(c){var b;var a=[];while(!(b=c.next()).done){a.push(b.value)}return a};$jscomp.arrayFromIterable=function(a){if(a instanceof Array){return a}else {return $jscomp.arrayFromIterator($jscomp.makeIterator(a))}};$jscomp.inherits=function(a,b){function tempCtor(){}tempCtor.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new tempCtor();a.prototype.constructor=a;for(var c in b){if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);if(d){Object.defineProperty(a,c,d)}}else {a[c]=b[c]}}};$jscomp.polyfill('WeakSet',function(b){function isConformant(){if(!b||!Object.seal){return !1}try{var c=Object.seal({});var d=Object.seal({});var a=new b([c]);if(!a.has(c)||a.has(d)){return !1}a['delete'](c);a.add(d);return !a.has(c)&&a.has(d)}catch(e){return !1}}if(isConformant()){return b}var a=function(a){this.map_=new WeakMap();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}};a.prototype.add=function(a){this.map_.set(a,!0);return this};a.prototype.has=function(a){return this.map_.has(a)};a.prototype['delete']=function(a){return this.map_['delete'](a)};return a},'es6-impl','es3');try{if(Array.prototype.values.toString().indexOf('[native code]')==-1){delete Array.prototype.values}}catch(a){}var Explorer=Explorer||{};if(!Explorer.model){Explorer.model={}}if(!Explorer.store){Explorer.store={}}if(!Explorer.view){Explorer.view={}}if(!Explorer.view.coadd){Explorer.view.coadd={}}if(!Explorer.view.main){Explorer.view.main={}}if(!Explorer.view.system){Explorer.view.system={}}if(!Explorer.view.system.cmd){Explorer.view.system.cmd={}}var Ext=Ext||{};if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.app.bind){Ext.app.bind={}}if(!Ext.app.domain){Ext.app.domain={}}if(!Ext.app.route){Ext.app.route={}}if(!Ext.button){Ext.button={}}if(!Ext.chart){Ext.chart={}}if(!Ext.chart.axis){Ext.chart.axis={}}if(!Ext.chart.axis.layout){Ext.chart.axis.layout={}}if(!Ext.chart.axis.segmenter){Ext.chart.axis.segmenter={}}if(!Ext.chart.axis.sprite){Ext.chart.axis.sprite={}}if(!Ext.chart.grid){Ext.chart.grid={}}if(!Ext.chart.interactions){Ext.chart.interactions={}}if(!Ext.chart.label){Ext.chart.label={}}if(!Ext.chart.overrides){Ext.chart.overrides={}}if(!Ext.chart.plugin){Ext.chart.plugin={}}if(!Ext.chart.series){Ext.chart.series={}}if(!Ext.chart.series.sprite){Ext.chart.series.sprite={}}if(!Ext.chart.theme){Ext.chart.theme={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}if(!Ext.data){Ext.data={}}if(!Ext.data.field){Ext.data.field={}}if(!Ext.data.flash){Ext.data.flash={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.matrix){Ext.data.matrix={}}if(!Ext.data.operation){Ext.data.operation={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.request){Ext.data.request={}}if(!Ext.data.schema){Ext.data.schema={}}if(!Ext.data.session){Ext.data.session={}}if(!Ext.data.validator){Ext.data.validator={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dd){Ext.dd={}}if(!Ext.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.draw){Ext.draw={}}if(!Ext.draw.engine){Ext.draw.engine={}}if(!Ext.draw.engine.SvgContext){Ext.draw.engine.SvgContext={}}if(!Ext.draw.gradient){Ext.draw.gradient={}}if(!Ext.draw.modifier){Ext.draw.modifier={}}if(!Ext.draw.sprite){Ext.draw.sprite={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.form){Ext.form={}}if(!Ext.form.Action){Ext.form.Action={}}if(!Ext.form.action){Ext.form.action={}}if(!Ext.form.field){Ext.form.field={}}if(!Ext.form.trigger){Ext.form.trigger={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.fx.target){Ext.fx.target={}}if(!Ext.grid){Ext.grid={}}if(!Ext.grid.column){Ext.grid.column={}}if(!Ext.grid.header){Ext.grid.header={}}if(!Ext.grid.locking){Ext.grid.locking={}}if(!Ext.grid.plugin){Ext.grid.plugin={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.boxOverflow){Ext.layout.boxOverflow={}}if(!Ext.layout.component){Ext.layout.component={}}if(!Ext.layout.component.field){Ext.layout.component.field={}}if(!Ext.layout.container){Ext.layout.container={}}if(!Ext.layout.container.border){Ext.layout.container.border={}}if(!Ext.layout.container.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.list){Ext.list={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.overrides){Ext.overrides={}}if(!Ext.overrides.app){Ext.overrides.app={}}if(!Ext.overrides.app.domain){Ext.overrides.app.domain={}}if(!Ext.overrides.dom){Ext.overrides.dom={}}if(!Ext.overrides.event){Ext.overrides.event={}}if(!Ext.overrides.event.publisher){Ext.overrides.event.publisher={}}if(!Ext.overrides.plugin){Ext.overrides.plugin={}}if(!Ext.overrides.util){Ext.overrides.util={}}if(!Ext.panel){Ext.panel={}}if(!Ext.perf){Ext.perf={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.promise){Ext.promise={}}if(!Ext.resizer){Ext.resizer={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.selection){Ext.selection={}}if(!Ext.state){Ext.state={}}if(!Ext.tab){Ext.tab={}}if(!Ext.theme){Ext.theme={}}if(!Ext.theme.crisp){Ext.theme.crisp={}}if(!Ext.theme.crisp.view){Ext.theme.crisp.view={}}if(!Ext.theme.neptune){Ext.theme.neptune={}}if(!Ext.theme.neptune.container){Ext.theme.neptune.container={}}if(!Ext.theme.neptune.grid){Ext.theme.neptune.grid={}}if(!Ext.theme.neptune.grid.column){Ext.theme.neptune.grid.column={}}if(!Ext.theme.neptune.layout){Ext.theme.neptune.layout={}}if(!Ext.theme.neptune.layout.component){Ext.theme.neptune.layout.component={}}if(!Ext.theme.neptune.menu){Ext.theme.neptune.menu={}}if(!Ext.theme.neptune.panel){Ext.theme.neptune.panel={}}if(!Ext.theme.neptune.resizer){Ext.theme.neptune.resizer={}}if(!Ext.theme.neptune.toolbar){Ext.theme.neptune.toolbar={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}if(!Ext.tree){Ext.tree={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.ux){Ext.ux={}}if(!Ext.ux.colorpick){Ext.ux.colorpick={}}if(!Ext.ux.layout){Ext.ux.layout={}}if(!Ext.ux.rating){Ext.ux.rating={}}if(!Ext.view){Ext.view={}}if(!Ext.window){Ext.window={}}var Portal=Portal||{};var aladin=aladin||{};if(!aladin.maps){aladin.maps={}}if(!aladin.model){aladin.model={}}if(!aladin.store){aladin.store={}}var common=common||{};if(!common.contact){common.contact={}}if(!common.data){common.data={}}if(!common.data.proxy){common.data.proxy={}}if(!common.footer){common.footer={}}if(!common.header){common.header={}}if(!common.help){common.help={}}if(!common.model){common.model={}}if(!common.store){common.store={}}var visiomatic=visiomatic||{};if(!visiomatic.catalog){visiomatic.catalog={}}if(!visiomatic.crop){visiomatic.crop={}}if(!visiomatic.download){visiomatic.download={}}if(!visiomatic.filter){visiomatic.filter={}}if(!visiomatic.model){visiomatic.model={}}if(!visiomatic.store){visiomatic.store={}}(function(q){var e,p=['constructor','toString','valueOf','toLocaleString'],n={},m={},k=0,l,j,a,b,o,f,c,d,g,h,i,t=function(){var s,t;j=Ext.Base;a=Ext.ClassManager;b=Ext.Class;for(s=p.length;s-->0;){t=1<0;){H=e[l];g[H]=j[H]}if(c.$isFunction){c=c(g)}v.data=c;x=c.statics;delete c.statics;c.$className=u;if('$className' in c){g.$className=c.$className}g.extend(Q);r=g.prototype;if(E){g.xtype=c.xtype=E[0];r.xtypes=E}r.xtypesChain=M;r.xtypesMap=O;c.alias=B;m.triggerExtended(g,c,v);if(c.onClassExtended){g.onExtended(c.onClassExtended,g);delete c.onClassExtended}if(c.privates&&h){h.call(b,g,c)}if(x){if(i){g.addStatics(x)}else {for(w in x){if(x.hasOwnProperty(w)){t=x[w];if(t&&t.$isFunction&&!t.$isClass&&t!==Ext.emptyFn&&t!==Ext.identityFn){g[w]=I=t;I.$owner=g;I.$name=w}g[w]=t}}}}if(c.inheritableStatics){g.addInheritableStatics(c.inheritableStatics);delete c.inheritableStatics}if(r.onClassExtended){m.onExtended(r.onClassExtended,m);delete r.onClassExtended}if(c.platformConfig&&d){d.call(b,g,c);delete c.platformConfig}if(c.config){o.call(b,g,c)}if(c.cachedConfig&&f){f.call(b,g,c);delete c.cachedConfig}v.onBeforeCreated(g,v.data,v);for(l=0,y=D&&D.length;l0){c--;a[c]='var Ext=window.'+Ext.name+';'+a[c]}}d=a.join('');b=e[d];if(!b){b=Function.prototype.constructor.apply(Function.prototype,a);e[d]=b}return b},functionFactory:function(){var b=Array.prototype.slice.call(arguments),a;if(Ext.isSandboxed){a=b.length;if(a>0){a--;b[a]='var Ext=window.'+Ext.name+';'+b[a]}}return Function.prototype.constructor.apply(Function.prototype,b)},Logger:{verbose:a,log:a,info:a,warn:a,error:function(a){throw new Error(a)},deprecate:a},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:function(){var a={};return function(e,c){if(!e){return []}else {if(!c){return [e]}}var g=a[c]||(a[c]=new RegExp('\\\\'+c,'g')),f=[],d,b;d=e.split(c);while((b=d.shift())!==undefined){while(b.charAt(b.length-1)==='\\'&&d.length>0){b=b+c+d.shift()}b=b.replace(g,c);f.push(b)}return f}}()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=!0})();Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=!0);(function(){function toString(){var d=this,b=d.sourceClass,a=d.sourceMethod,c=d.msg;if(a){if(c){a+='(): ';a+=c}else {a+='()'}}if(b){a=a?b+'.'+a:b}return a||c||''}Ext.Error=function(b){if(Ext.isString(b)){b={msg:b}}var a=new Error();Ext.apply(a,b);a.message=a.message||a.msg;a.toString=toString;return a};Ext.apply(Ext.Error,{ignore:!1,raise:function(a){a=a||{};if(Ext.isString(a)){a={msg:a}}var d=this,b=d.raise.caller,e,c;if(b===Ext.raise){b=b.caller}if(b){if(!a.sourceMethod&&(c=b.$name)){a.sourceMethod=c}if(!a.sourceClass&&(c=b.$owner)&&(c=c.$className)){a.sourceClass=c}}if(d.handle(a)!==!0){e=toString.call(a);throw new Ext.Error(a)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=function(){var c=Array.prototype,b=c.slice,f=function(){var a=[],b,c=20;if(!a.splice){return !1}while(c--){a.push('A')}a.splice(15,0,'F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F');b=a.length;a.splice(13,0,'XXX');if(b+1!==a.length){return !1}return !0}(),i='indexOf' in c,h=!0;function stableSort(b,e){var d=b.length,c=new Array(d),a;for(a=0;ac){for(b=l;b--;){a[h+b]=a[c+b]}}}if(e&&f===j){a.length=j;a.push.apply(a,d)}else {a.length=j+e;for(b=0;b>1;f=d(i,h[e]);if(f>=0){c=e+1}else {if(f<0){b=e-1}}}return c},defaultCompare:function(a,b){return ab?1:0},lexicalCompare:function(a,b){a=String(a);b=String(b);return ab?1:0},each:function(c,e,d,g){c=a.from(c);var b,f=c.length;if(g!==!0){for(b=0;b-1;b--){if(e.call(d||c[b],c[b],b,c)===!1){return b}}}return !0},forEach:'forEach' in c?function(a,c,b){return a.forEach(c,b)}:function(b,d,c){for(var a=0,e=b.length;a=0&&b>>0,c=e;if(arguments.length<3){while(!0){if(b in a){c=a[b++];break}if(++b>=d){throw new TypeError('Reduce of empty array with no initial value')}}}for(;bb){b=a}}}return b},mean:function(b){return b.length>0?a.sum(b)/b.length:undefined},sum:function(b){var d=0,a,e,c;for(a=0,e=b.length;ab?1:-1,a;for(a=b;a!=d;a+=e){c[a]=c[a+e]}c[d]=f},replace:j,splice:p,push:function(a){var d=arguments.length,c=1,b;if(a===undefined){a=[]}else {if(!Ext.isArray(a)){a=[a]}}for(;c=d){a=0}else {a=d-a}}if(a===0){b=c+b}else {if(a>=b.length){b+=c}else {b=b.substr(0,a)+c+b.substr(a)}}return b},startsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.lastIndexOf(a,0)===0}return c},endsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.indexOf(a,b.length-a.length)!==-1}return c},createVarName:function(a){return a.replace(l,'')},htmlEncode:function(a){return !a?a:String(a).replace(b,h)},htmlDecode:function(a){return !a?a:String(a).replace(d,g)},hasHtmlCharacters:function(a){return b.test(a)},addCharacterEntities:function(g){var i=[],h=[],e,f;for(e in g){f=g[e];a[e]=f;c[f]=e;i.push(f);h.push(e)}b=new RegExp('('+i.join('|')+')','g');d=new RegExp('('+h.join('|')+'|&#[0-9]{1,5};)','g')},resetCharacterEntities:function(){c={};a={};this.addCharacterEntities({'&':'&','>':'>','<':'<','"':'"',''':"'"})},urlAppend:function(a,b){if(!Ext.isEmpty(b)){return a+(a.indexOf('?')===-1?'?':'&')+b}return a},trim:function(a){if(a){a=a.replace(m,'')}return a||''},capitalize:function(a){if(a){a=a.charAt(0).toUpperCase()+a.substr(1)}return a||''},uncapitalize:function(a){if(a){a=a.charAt(0).toLowerCase()+a.substr(1)}return a||''},ellipsis:function(a,c,e){if(a&&a.length>c){if(e){var b=a.substr(0,c-2),d=Math.max(b.lastIndexOf(' '),b.lastIndexOf('.'),b.lastIndexOf('!'),b.lastIndexOf('?'));if(d!==-1&&d>=c-15){return b.substr(0,d)+'...'}}return a.substr(0,c-3)+'...'}return a},escapeRegex:function(a){return a.replace(i,'\\$1')},createRegex:function(b,d,e,c){var a=b;if(b!=null&&!b.exec){a=f.escapeRegex(String(b));if(d!==!1){a='^'+a}if(e!==!1){a+='$'}a=new RegExp(a,c!==!1?'i':'')}return a},escape:function(a){return a.replace(n,'\\$1')},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,d,b){var a=String(c);b=b||' ';while(a.length daysInMonth) {','d = daysInMonth;','}','}','h = from(h, from(def.h, dt.getHours()));','i = from(i, from(def.i, dt.getMinutes()));','s = from(s, from(def.s, dt.getSeconds()));','ms = from(ms, from(def.ms, dt.getMilliseconds()));','if(z >= 0 && y >= 0){','v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);','}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){','v = null;','}else{','if (W) {','year = y || (new Date()).getFullYear();','jan4 = new Date(year, 0, 4, 0, 0, 0);','d = jan4.getDay();','week1monday = new Date(jan4.getTime() - ((d === 0 ? 6 : d - 1) * 86400000));','v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));','} else {','v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','}','}','}','}','if(v){','if(zz != null){','v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);','}else if(o){',"v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));",'}','}','return (v != null) ? v : null;'].join('\n');if(!Date.prototype.toISOString){Date.prototype.toISOString=function(){var a=this;return c(a.getUTCFullYear(),4,'0')+'-'+c(a.getUTCMonth()+1,2,'0')+'-'+c(a.getUTCDate(),2,'0')+'T'+c(a.getUTCHours(),2,'0')+':'+c(a.getUTCMinutes(),2,'0')+':'+c(a.getUTCSeconds(),2,'0')+'.'+c(a.getUTCMilliseconds(),3,'0')+'Z'}}function xf(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(e,function(d,c){return b[c]})}return a={now:b.now,toString:function(a){if(!a){a=new b()}return a.getFullYear()+'-'+c(a.getMonth()+1,2,'0')+'-'+c(a.getDate(),2,'0')+'T'+c(a.getHours(),2,'0')+':'+c(a.getMinutes(),2,'0')+':'+c(a.getSeconds(),2,'0')},getElapsed:function(b,c){return Math.abs(b-(c||a.now()))},useStrict:!1,formatCodeToRegex:function(c,d){var b=a.parseCodes[c];if(b){b=typeof b==='function'?b():b;a.parseCodes[c]=b}return b?Ext.applyIf({c:b.c?xf(b.c,d||'{0}'):b.c},b):{g:0,c:null,s:Ext.String.escapeRegex(c)}},parseFunctions:{'MS':function(c,d){var a=(c||'').match(f);return a?new b(((a[1]||'')+a[2])*1):null},'time':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a)}return null},'timestamp':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a*1000)}return null}},parseRegexes:[],formatFunctions:{'MS':function(){return '\\/Date('+this.getTime()+')\\/'},'time':function(){return this.getTime().toString()},'timestamp':function(){return a.format(this,'U')}},y2kYear:50,MILLI:'ms',SECOND:'s',MINUTE:'mi',HOUR:'h',DAY:'d',MONTH:'mo',YEAR:'y',defaults:{},dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:'m/d/Y',getShortMonthName:function(b){return a.monthNames[b].substring(0,3)},getShortDayName:function(b){return a.dayNames[b].substring(0,3)},getMonthNumber:function(b){return a.monthNumbers[b.substring(0,1).toUpperCase()+b.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return h.test(a.replace(d,''))},formatContainsDateInfo:function(a){return g.test(a.replace(d,''))},unescapeFormat:function(a){return a.replace(i,'')},formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')",D:'Ext.Date.getShortDayName(m.getDay())',j:'m.getDate()',l:'Ext.Date.dayNames[m.getDay()]',N:'(m.getDay() ? m.getDay() : 7)',S:'Ext.Date.getSuffix(m)',w:'m.getDay()',z:'Ext.Date.getDayOfYear(m)',W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')",F:'Ext.Date.monthNames[m.getMonth()]',m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')",M:'Ext.Date.getShortMonthName(m.getMonth())',n:'(m.getMonth() + 1)',t:'Ext.Date.getDaysInMonth(m)',L:'(Ext.Date.isLeapYear(m) ? 1 : 0)',o:'(m.getFullYear() + (Ext.Date.getWeekOfYear(m) == 1 && m.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(m) >= 52 && m.getMonth() < 11 ? -1 : 0)))',Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')",y:"('' + m.getFullYear()).substring(2, 4)",a:"(m.getHours() < 12 ? 'am' : 'pm')",A:"(m.getHours() < 12 ? 'AM' : 'PM')",g:'((m.getHours() % 12) ? m.getHours() % 12 : 12)',G:'m.getHours()',h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(m.getHours(), 2, '0')",i:"Ext.String.leftPad(m.getMinutes(), 2, '0')",s:"Ext.String.leftPad(m.getSeconds(), 2, '0')",u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')",O:'Ext.Date.getGMTOffset(m)',P:'Ext.Date.getGMTOffset(m, true)',T:'Ext.Date.getTimezone(m)',Z:'(m.getTimezoneOffset() * -60)',c:function(){var e='Y-m-dTH:i:sP',d=[],b,f=e.length,c;for(b=0;b me.y2kYear ? 1900 + ty : 2000 + ty;\n',s:'(\\d{2})'},a:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(am|pm|AM|PM)',calcAtEnd:!0},A:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(AM|PM|am|pm)',calcAtEnd:!0},g:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|[0-9])'},G:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|1[0-9]|[0-9])'},h:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|0[1-9])'},H:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|[0-1][0-9])'},i:{g:1,c:'i = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},s:{g:1,c:'s = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},u:{g:1,c:'ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n',s:'(\\d+)'},O:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),','mn = o.substring(3,5) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{4})'},P:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),','mn = o.substring(4,6) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{2}:\\d{2})'},T:{g:0,c:null,s:'[A-Z]{1,5}'},Z:{g:1,c:'zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n',s:'([+-]?\\d{1,5})'},c:function(){var d=[],b=[a.formatCodeToRegex('Y',1),a.formatCodeToRegex('m',2),a.formatCodeToRegex('d',3),a.formatCodeToRegex('H',4),a.formatCodeToRegex('i',5),a.formatCodeToRegex('s',6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:['if(results[8]) {',"if(results[8] == 'Z'){",'zz = 0;',"}else if (results[8].indexOf(':') > -1){",a.formatCodeToRegex('P',8).c,'}else{',a.formatCodeToRegex('O',8).c,'}','}'].join('\n')}],c,e;for(c=0,e=b.length;c0?'-':'+')+Ext.String.leftPad(Math.floor(Math.abs(a)/60),2,'0')+(b?':':'')+Ext.String.leftPad(Math.abs(a%60),2,'0')},getDayOfYear:function(c){var e=0,b=a.clone(c),f=c.getMonth(),d;for(d=0,b.setDate(1),b.setMonth(0);d28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.MONTH,c)).getDate())};b.setDate(d);b.setMonth(f.getMonth()+c);break;case a.YEAR:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.YEAR,c)).getDate())};b.setDate(d);b.setFullYear(f.getFullYear()+c);break;}}if(g){switch(h.toLowerCase()){case a.MILLI:e=1;break;case a.SECOND:e=1000;break;case a.MINUTE:e=1000*60;break;case a.HOUR:e=1000*60*60;break;case a.DAY:e=1000*60*60*24;break;case a.MONTH:d=a.getDaysInMonth(b);e=1000*60*60*24*d;break;case a.YEAR:d=a.isLeapYear(b)?366:365;e=1000*60*60*24*d;break;}if(e){b.setTime(b.getTime()+e*g)}}return b},subtract:function(d,b,c){return a.add(d,b,-c)},between:function(c,b,d){var a=c.getTime();return b.getTime()<=a&&a<=d.getTime()},compat:function(){var c,g=['useStrict','formatCodeToRegex','parseFunctions','parseRegexes','formatFunctions','y2kYear','MILLI','SECOND','MINUTE','HOUR','DAY','MONTH','YEAR','defaults','dayNames','monthNames','monthNumbers','getShortMonthName','getShortDayName','getMonthNumber','formatCodes','isValid','parseDate','getFormatCode','createFormat','createParser','parseCodes'],h=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],j=g.length,i=h.length,f,e,d;for(d=0;dd){return b-1};return b;case a.YEAR:b=d.getFullYear()-e.getFullYear();if(a.add(e,f,b)>d){return b-1}else {return b};}},align:function(e,f,d){var c=new b(+e);switch(f.toLowerCase()){case a.MILLI:return c;case a.SECOND:c.setUTCSeconds(c.getUTCSeconds()-c.getUTCSeconds()%d);c.setUTCMilliseconds(0);return c;case a.MINUTE:c.setUTCMinutes(c.getUTCMinutes()-c.getUTCMinutes()%d);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.HOUR:c.setUTCHours(c.getUTCHours()-c.getUTCHours()%d);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.DAY:if(d===7||d===14){c.setUTCDate(c.getUTCDate()-c.getUTCDay()+1)};c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.MONTH:c.setUTCMonth(c.getUTCMonth()-(c.getUTCMonth()-1)%d,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.YEAR:c.setUTCFullYear(c.getUTCFullYear()-c.getUTCFullYear()%d,1,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return e;}}}}();Ext.Function=function(){var i=0,f,c=[],l=[],m=0,e={},d=window,b=Ext.global,h=!!(b.setImmediate&&b.clearImmediate),k=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(c){var b=Ext.now(),a=Math.max(0,16-(b-i)),e=d.setTimeout(function(){c(b+a)},a);i=b+a;return e},g=function(){var h=c.length,g,d,a;f=null;for(d=0;d0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},b)}a();return 0},interval:function(a,c,d,e,b){a=Ext.Function.bind(a,d,e,b);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},c)},createSequence:function(a,b,c){if(!b){return a}else {return function(){var d=a.apply(this,arguments);b.apply(c||this,arguments);return d}}},createBuffered:function(b,c,d,e){var a;return function(){var f=e||Array.prototype.slice.call(arguments,0),g=d||this;if(a){clearTimeout(a)}a=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b,g,f)}else {b.apply(g,f)}},c)}},createAnimationFrame:function(f,d,e,c){var b;c=c||3;return function(){var g=e||Array.prototype.slice.call(arguments,0);d=d||this;if(c===3&&b){a.cancelAnimationFrame(b)}if(c&1||!b){b=a.requestAnimationFrame(function(){b=null;f.apply(d,g)})}}},requestAnimationFrame:function(i,d,h){var a=++m,b=Array.prototype.slice.call(arguments,0);b[3]=a;e[a]=1;c.push(b);if(!f){f=k(Ext.elevateFunction?j:g)}return a},cancelAnimationFrame:function(a){delete e[a]},createThrottled:function(h,f,a){var e=0,d,c,b,g=function(){if(Ext.elevateFunction){Ext.elevateFunction(h,a,c)}else {h.apply(a,c)}e=Ext.now();b=null};return function(){if(!a){a=this}d=Ext.now()-e;c=arguments;if(d>=f){clearTimeout(b);g()}else {if(!b){b=Ext.defer(g,f-d)}}}},createBarrier:function(a,c,b){return function(){if(!--a){c.apply(b,arguments)}}},interceptBefore:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){var f=e.apply(d||this,arguments);c.apply(this,arguments);return f}},interceptAfter:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){c.apply(this,arguments);return e.apply(d||this,arguments)}},makeCallback:function(b,a){return function(){return a[b].apply(a,arguments)}},memoize:function(e,c,a){var b={},d=a&&Ext.isFunction(a);return function(g){var f=d?a.apply(c,arguments):g;if(!(f in b)){b[f]=e.apply(c,arguments)}return b[f]}}};Ext.asap=h?function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setImmediate(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}})}:function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}},0,!0)},Ext.asapCancel=h?function(a){clearImmediate(a)}:function(a){clearTimeout(a)};Ext.defer=a.defer;Ext.interval=a.interval;Ext.pass=a.pass;Ext.bind=a.bind;Ext.deferCallback=a.requestAnimationFrame;return a}();Ext.Number=new function(){var b=this,d=(0.9).toFixed()!=='1',c=Math,a={count:!1,inclusive:!1,wrap:!0};Ext.apply(b,{Clip:{DEFAULT:a,COUNT:Ext.applyIf({count:!0},a),INCLUSIVE:Ext.applyIf({inclusive:!0},a),NOWRAP:Ext.applyIf({wrap:!1},a)},clipIndices:function(d,c,f){f=f||a;var h=0,i=f.wrap,g,b,e;c=c||[];for(e=0;e<2;++e){g=b;b=c[e];if(b==null){b=h}else {if(e&&f.count){b+=g;b=b>d?d:b}else {if(i){b=b<0?d+b:b}if(e&&f.inclusive){++b}b=b<0?0:b>d?d:b}}h=d}c[0]=g;c[1]=ba?a:d},snap:function(a,c,e,f){var d;if(a===undefined||a=c){a+=c}else {if(d*2<-c){a-=c}}}}return b.constrain(a,e,f)},snapInRange:function(a,d,c,e){var f;c=c||0;if(a===undefined||a=d){a+=d}}if(e!==undefined){if(a>(e=b.snapInRange(e,d,c))){a=e}}return a},sign:function(a){a=+a;if(a===0||isNaN(a)){return a}return a>0?1:-1},toFixed:d?function(d,a){a=a||0;var b=c.pow(10,a);return (c.round(d*b)/b).toFixed(a)}:function(b,a){return b.toFixed(a)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(a,b){return c.floor(c.random()*(b-a+1)+a)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return b.from.apply(this,arguments)}}();(function(){var b=function(){},d=/^\?/,f=/(\[):?([^\]]*)\]/g,e=/^([^\[]+)/,c=/\+/g,a=Ext.Object={chain:Object.create||function(a){b.prototype=a;var c=new b();b.prototype=null;return c},clear:function(a){for(var b in a){delete a[b]}return a},freeze:Object.freeze?function(b,c){if(b&&typeof b==='object'&&!Object.isFrozen(b)){Object.freeze(b);if(c){for(var d in b){a.freeze(b[d],c)}}}return b}:Ext.identityFn,toQueryObjects:function(e,c,f){var g=a.toQueryObjects,d=[],b,h;if(Ext.isArray(c)){for(b=0,h=c.length;b0){o=q.split('=');a=o[0];a=a.replace(c,'%20');a=decodeURIComponent(a);g=o[1];if(g!==undefined){g=g.replace(c,'%20');g=decodeURIComponent(g)}else {g=''}if(!v){if(i.hasOwnProperty(a)){if(!Ext.isArray(i[a])){i[a]=[i[a]]}i[a].push(g)}else {i[a]=g}}else {m=a.match(f);r=a.match(e);a=r[0];k=[];if(m===null){i[a]=g;continue}for(h=0,l=m.length;h@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(b){var c=b,a;if(b&&b.charAt(0)==='<'){a=Ext._resourcePoolRe.exec(b);if(a){c=Ext.getResourcePath(a[3],a[1],a[2])}}return c},urlEncode:function(){var a=Ext.Array.from(arguments),b='';if(Ext.isString(a[1])){b=a[1]+'&';a[1]=!1}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(d){var b=Ext._scrollbarSize;if(d||!b){var c=document.body,a=document.createElement('div');a.style.width=a.style.height='100px';a.style.overflow='scroll';a.style.position='absolute';c.appendChild(a);Ext._scrollbarSize=b={width:a.offsetWidth-a.clientWidth,height:a.offsetHeight-a.clientHeight};c.removeChild(a)}return b},typeOf:function(){var a=/\S/,d=Object.prototype.toString,c={number:1,string:1,'boolean':1,'undefined':1},b={'[object Array]':'array','[object Date]':'date','[object Boolean]':'boolean','[object Number]':'number','[object RegExp]':'regexp'};return function(e){if(e===null){return 'null'}var f=typeof e,g,h;if(c[f]){return f}g=b[h=d.call(e)];if(g){return g}if(f==='function'){return 'function'}if(f==='object'){if(e.nodeType!==undefined){if(e.nodeType===3){return a.test(e.nodeValue)?'textnode':'whitespace'}else {return 'element'}}return 'object'}return h}}(),factory:function(a,f,b,d){var e=Ext.ClassManager,c;if(!a||a.isInstance){if(b&&b!==a){b.destroy()}return a}if(d){if(typeof a==='string'){return e.instantiateByAlias(d+'.'+a)}else {if(Ext.isObject(a)&&'type' in a){return e.instantiateByAlias(d+'.'+a.type,a)}}}if(a===!0){return b||Ext.create(f)}if('xtype' in a){c=e.instantiateByAlias('widget.'+a.xtype,a)}else {if('xclass' in a){c=Ext.create(a.xclass,a)}}if(c){if(b){b.destroy()}return c}if(b){return b.setConfig(a)}return Ext.create(f,a)},log:function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}()});(function(){var b=[''],c=/([^\d\.])/,f=/[^\d]/g,g=/[\-+]/g,h=/\s/g,e=/_/g,d={classic:1,modern:1},a;Ext.Version=a=function(k,p){var b=this,n=b.padModes,o,m,d,h,j,l,i;if(k.isVersion){k=k.version}b.version=i=String(k).toLowerCase().replace(e,'.').replace(g,'');o=i.charAt(0);if(o in n){i=i.substring(1);d=n[o]}else {d=p?n[p]:0}b.pad=d;l=i.search(c);b.shortVersion=i;if(l!==-1){b.release=j=i.substr(l,k.length);b.shortVersion=i.substr(0,l);j=a.releaseValueMap[j]||j}b.releaseValue=j||d;b.shortVersion=b.shortVersion.replace(f,'');b.parts=h=i.split('.');for(m=h.length;m--;){h[m]=parseInt(h[m],10)}if(d===Infinity){h.push(d)}b.major=h[0]||d;b.minor=h[1]||d;b.patch=h[2]||d;b.build=h[3]||d;return b};a.prototype={isVersion:!0,padModes:{'~':NaN,'^':Infinity},release:'',compareTo:function(f){var g=this,m=g.pad,j=g.parts,h=j.length,e=f.isVersion?f:new a(f),n=e.pad,k=e.parts,i=k.length,l=Math.max(h,i),b,c,d;for(b=0;bd){return 1}}c=g.releaseValue;d=e.releaseValue;if(cd){return 1}return 0},toString:function(){return this.version},valueOf:function(){return this.version},getMajor:function(){return this.major},getMinor:function(){return this.minor},getPatch:function(){return this.patch},getBuild:function(){return this.build},getRelease:function(){return this.release},getReleaseValue:function(){return this.releaseValue},isGreaterThan:function(a){return this.compareTo(a)>0},isGreaterThanOrEqual:function(a){return this.compareTo(a)>=0},isLessThan:function(a){return this.compareTo(a)<0},isLessThanOrEqual:function(a){return this.compareTo(a)<=0},equals:function(a){return this.compareTo(a)===0},match:function(a){a=String(a);return this.version.substr(0,a.length)===a},toArray:function(){var a=this;return [a.getMajor(),a.getMinor(),a.getPatch(),a.getBuild(),a.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(a){return this.compareTo(a)>0},lt:function(a){return this.compareTo(a)<0},gtEq:function(a){return this.compareTo(a)>=0},ltEq:function(a){return this.compareTo(a)<=0}};Ext.apply(a,{aliases:{from:{extjs:'ext',core:'core',touch:'modern'},to:{ext:['extjs'],'core':['core'],modern:['touch']}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,'#':-2,p:-1,pl:-1},getComponentValue:function(a){return !a?0:isNaN(a)?this.releaseValueMap[a]||a:parseInt(a,10)},compare:function(b,c){var d=b.isVersion?b:new a(b);return d.compareTo(c)},set:function(g,f,c){var b=a.aliases.to[f],d=c.isVersion?c:new a(c),e;g[f]=d;if(b){for(e=b.length;e-->0;){g[b[e]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,d;if(!b){d=c.ext||c.touch||c.core}else {d=c[a.aliases.from[b]||b]}return d||Ext.getVersion(b)},setCompatVersion:function(b,c){a.set(Ext.compatVersions,b,c)},setVersion:function(b,c){if(b in d){Ext.toolkit=b}Ext.lastRegisteredVersion=a.set(Ext.versions,b,c);return this},getVersion:function(c){var b=Ext.versions;if(!c){return b.ext||b.touch||b.core}return b[a.aliases.from[c]||c]},checkVersion:function(o,j){var p=Ext.isArray(o),s=a.aliases.from,q=p?o:b,t=q.length,n=Ext.versions,r=n.ext||n.touch,l,c,f,i,g,m,d,e,k;if(!p){b[0]=o}for(l=0;l=0){d=d.replace(h,'')}c=d.indexOf('@');if(c<0){e=d;k=r}else {m=d.substring(0,c);if(!(k=n[s[m]||m])){if(j){return !1}continue}e=d.substring(c+1)}c=e.indexOf('-');if(c<0){if(e.charAt(c=e.length-1)==='+'){i=e.substring(0,c);g=null}else {i=g=e}}else {if(c>0){i=e.substring(0,c);g=e.substring(c+1)}else {i=null;g=e.substring(c+1)}}f=!0;if(i){i=new a(i,'~');f=i.ltEq(k)}if(f&&g){g=new a(g,'~');f=g.gtEq(k)}}if(f){if(!j){return !0}}else {if(j){return !1}}}return !!j},deprecate:function(b,e,c,d){if(a.compare(Ext.getVersion(b),e)<1){c.call(d)}}})})();(function(c){var d=c&&c.packages||{},b=c&&c.compatibility,a,e;for(a in d){e=d[a];Ext.setVersion(a,e.version)}if(b){if(Ext.isString(b)){Ext.setCompatVersion('core',b)}else {for(a in b){Ext.setCompatVersion(a,b[a])}}}if(!d.ext&&!d.touch){Ext.setVersion('ext','6.0.1.250');Ext.setVersion('core','6.0.1.250')}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:'_'+b,initializing:'is'+a+'Initializing',apply:'apply'+a,update:'update'+a,get:'get'+a,set:'set'+a,initGet:'initGet'+a,changeEvent:b.toLowerCase()+'change'};c.root=c};Ext.Config.map={};Ext.Config.get=function(a){var b=Ext.Config.map,c=b[a]||(b[a]=new Ext.Config(a));return c};Ext.Config.prototype={self:Ext.Config,isConfig:!0,getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(b,d,f,e){var a,c;if(!d){a=b}else {if(!b){a=d}else {a=Ext.Object.chain(d);for(c in b){if(!e||!(c in a)){a[c]=b[c]}}}}return a},mergeSets:function(a,f,e){var b=f?Ext.Object.chain(f):{},c,d;if(a instanceof Array){for(c=a.length;c--;){d=a[c];if(!e||!(d in b)){b[d]=!0}}}else {if(a){if(a.constructor===Object){for(c in a){d=a[c];if(!e||!(c in b)){b[c]=d}}}else {if(!e||!(a in b)){b[a]=!0}}}}return b},makeGetter:function(){var b=this.name,a=this.names.internal;return function(){var c=this.$configPrefixed?a:b;return this[c]}},makeInitGetter:function(){var e=this.name,a=this.names,d=a.set,c=a.get,b=a.initializing;return function(){var a=this;a[b]=!0;delete a[c];a[d](a.config[e]);delete a[b];return a[c].apply(a,arguments)}},makeSetter:function(){var g=this.name,a=this.names,e=a.internal,f=a.get,d=a.apply,c=a.update,b;b=function(b){var a=this,h=a.$configPrefixed?e:g,i=a[h];delete a[f];if(!a[d]||(b=a[d](b,i))!==undefined){if(b!==(i=a[h])){a[h]=b;if(a[c]){a[c](b,i)}}}return a};b.$isDefault=!0;return b},makeEventedSetter:function(){var i=this.name,a=this.names,f=a.internal,h=a.get,d=a.apply,b=a.update,e=a.changeEvent,g=function(a,c,e,d){a[d]=c;if(a[b]){a[b](c,e)}},c;c=function(c){var a=this,k=a.$configPrefixed?f:i,j=a[k];delete a[h];if(!a[d]||(c=a[d](c,j))!==undefined){if(c!==(j=a[k])){if(a.isConfiguring){a[k]=c;if(a[b]){a[b](c,j)}}else {a.fireEventedAction(e,[a,c,j],g,a,[a,c,j,k])}}}return a};c.$isDefault=!0;return c}};(function(){var c=Ext.Config,b=c.map,a=Ext.Object;Ext.Configurator=function(d){var b=this,e=d.prototype,c=d.superclass?d.superclass.self.$config:null;b.cls=d;b.superCfg=c;if(c){b.configs=a.chain(c.configs);b.cachedConfigs=a.chain(c.cachedConfigs);b.initMap=a.chain(c.initMap);b.values=a.chain(c.values);b.needsFork=c.needsFork}else {b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}e.config=e.defaultConfig=b.values;d.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:!1,initList:null,add:function(t,l){var i=this,n=i.cls,k=i.configs,v=i.cachedConfigs,p=i.initMap,g=n.prototype,r=l&&l.$config.configs,u=i.values,m,f,s,h,b,j,e,q,o,d;for(e in t){d=t[e];m=d&&d.constructor===Object;f=m&&'$value' in d?d:null;if(f){s=!!f.cached;d=f.$value;m=d&&d.constructor===Object}h=f&&f.merge;b=k[e];if(b){if(l){h=b.merge;if(!h){continue}f=null}else {h=h||b.merge}j=u[e];if(h){d=h.call(b,d,j,n,l)}else {if(m){if(j&&j.constructor===Object){d=a.merge({},j,d)}}}}else {if(r){b=r[e];f=null}else {b=c.get(e)}k[e]=b;if(b.cached||s){v[e]=!0}q=b.names;if(!g[o=q.get]){g[o]=b.getter||b.getGetter()}if(!g[o=q.set]){g[o]=f&&f.evented?b.eventedSetter||b.getEventedSetter():b.setter||b.getSetter()}}if(f){if(b.owner!==n){k[e]=b=Ext.Object.chain(b);b.owner=n}Ext.apply(b,f);delete b.$value}if(!i.needsFork&&d&&(d.constructor===Object||d instanceof Array)){i.needsFork=!0}if(d!==null){p[e]=!0}else {if(g.$configPrefixed){g[k[e].names.internal]=null}else {g[k[e].name]=null}if(e in p){p[e]=!1}}u[e]=d}},configure:function(c,h){var k=this,u=k.configs,x=k.initMap,q=k.initListMap,o=k.initList,j=k.cls.prototype,i=k.values,r=0,v=!o,n,b,m,w,d,p,l,f,e,g,t,s,y;i=k.needsFork?a.fork(i):a.chain(i);c.isConfiguring=!0;if(v){k.initList=o=[];k.initListMap=q={};c.isFirstInstance=!0;for(e in x){w=x[e];b=u[e];t=b.cached;if(w){f=b.names;g=i[e];if(!j[f.set].$isDefault||j[f.apply]||j[f.update]||typeof g==='object'){if(t){(n||(n=[])).push(b)}else {o.push(b);q[e]=!0}c[f.get]=b.initGetter||b.getInitGetter()}else {j[b.getInternalName(j)]=g}}else {if(t){j[b.getInternalName(j)]=undefined}}}}l=n&&n.length;if(l){for(d=0;d0){for(a=0;ac.maxSize){c.unlinkEntry(f.prev,!0);--c.count}}return d.value},evict:Ext.emptyFn,linkEntry:function(c){var d=this.head,e=d.next;c.next=e;c.prev=d;d.next=c;e.prev=c},unlinkEntry:function(c,f){var d=c.next,e=c.prev;e.next=d;d.prev=e;if(f){this.evict(c.key,c.value)}}};a.destroy=a.clear})();(function(){var a,d=Ext.Base,b=d.$staticMembers,c=function(a,b){return a.length-b.length||(ab?1:0)};function makeCtor(a){function constructor(){return this.constructor.apply(this,arguments)||null}return constructor}Ext.Class=a=function(b,c,d){if(typeof b!='function'){d=c;c=b;b=null}if(!c){c={}}b=a.create(b,c);a.process(b,c,d);return b};Ext.apply(a,{makeCtor:makeCtor,onBeforeCreated:function(a,c,b){a.addMembers(c);b.onCreated.call(a,a)},create:function(a,f){var e=b.length,c;if(!a){a=makeCtor()}while(e--){c=b[e];a[c]=d[c]}return a},process:function(l,f,k){var j=f.preprocessors||a.defaultPreprocessors,o=this.preprocessors,e={onBeforeCreated:this.onBeforeCreated},d=[],b,c,g,n,h,m,i;delete f.preprocessors;l._classHooks=e;for(g=0,n=j.length;g0){b=h.test(c[d])}c=o[a];if(c&&!b){d=c.length;while(!b&&d-->0){b=h.test(c[d])}}}if(b){i[a]=1;l.push(a)}}}}}return l},getPath:function(a){var e=this,d=e.paths,b='',c;if(a in d){b=d[a]}else {c=e.getPrefix(a);if(c){a=a.substring(c.length+1);b=d[c];if(b){b+='/'}}b+=a.replace(e.dotRe,'/')+'.js'}return b},getPrefix:function(a){if(a in this.paths){return a}var d=this.getPrefixes(),e=d.length,b,c;while(e-->0){b=(c=d[e]).length;if(b0){b=i[d];f=c;c=b.value||c[b.name];if(!c&&h){f[b.name]=c={}}}return c},setNamespace:function(f,d){var b=a.getNamespaceEntry(f),c=Ext.global;if(b.parent){c=a.lookupName(b.parent,!0)}c[b.name]=d;return d},setXType:function(i,d){var f=i.$className,k=f?i:a.get(f=i),b=k.prototype,j=b.xtypes,c=b.xtypesChain,h=b.xtypesMap;if(!b.hasOwnProperty('xtypes')){b.xtypes=j=[];b.xtypesChain=c=c?c.slice(0):[];b.xtypesMap=h=Ext.apply({},h)}a.addAlias(f,'widget.'+d,!0);j.push(d);c.push(d);h[d]=!0},set:function(b,d){var c=a.getName(d);a.classes[b]=a.setNamespace(b,d);if(c&&c!==b){a.addAlternate(c,b)}return a},get:function(b){return a.classes[b]||a.lookupName(b,!1)},addNameAliasMappings:function(b){a.addAlias(b)},addNameAlternateMappings:function(b){a.addAlternate(b)},getByAlias:function(b){return a.get(a.getNameByAlias(b))},getByConfig:function(c,d){var f=c.xclass,b;if(f){b=f}else {b=c.xtype;if(b){d='widget.'}else {b=c.type}b=a.getNameByAlias(d+b)}return a.get(b)},getName:function(a){return a&&a.$className||''},getClass:function(a){return a&&a.self||null},create:function(c,b,f){var d=q(c);if(typeof b==='function'){b=b(d)}b.$className=c;return new n(d,b,function(){var m=b.postprocessors||a.defaultPostprocessors,s=a.postprocessors,i=[],d,j,q,k,p,h,l;delete b.postprocessors;for(j=0,q=m.length;j0;){c=a.lookupName(arguments[b],!0)}return c}});Ext.addRootNamespaces=a.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;n.registerPreprocessor('className',function(b,a){if('$className' in a){b.$className=a.$className}},!0,'first');n.registerPreprocessor('alias',function(q,d){var l=q.prototype,c=g(d.xtype),i=g(d.alias),j='widget.',p=j.length,k=Array.prototype.slice.call(l.xtypesChain||[]),h=Ext.merge({},l.xtypesMap||{}),a,f,m,b;for(a=0,f=i.length;a=d){Ext[o+'p']=!0}}}if(n.is.Opera&&parseInt(a,10)<=12){Ext.isOpera12m=!0}Ext.chromeVersion=Ext.isChrome?a:0;Ext.firefoxVersion=Ext.isFirefox?a:0;Ext.ieVersion=Ext.isIE?a:0;Ext.operaVersion=Ext.isOpera?a:0;Ext.safariVersion=Ext.isSafari?a:0;Ext.webKitVersion=Ext.isWebKit?a:0;this.setFlag(c+a,!0,r);this.setFlag(c+f.getShortVersion())}for(d in j){if(j.hasOwnProperty(d)){h=j[d];this.setFlag(h,c===h)}}this.setFlag(h);if(l){this.setFlag(g+(l.getMajor()||''));this.setFlag(g+l.getShortVersion())}for(d in k){if(k.hasOwnProperty(d)){h=k[d];this.setFlag(h,g===h,r)}}this.setFlag('Standalone',!!navigator.standalone);this.setFlag('Ripple',!!document.getElementById('tinyhippos-injected')&&!Ext.isEmpty(window.top.ripple));this.setFlag('WebWorks',!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){q=!0;this.setFlag('PhoneGap');this.setFlag('Cordova')}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(e)){q=!0}this.setFlag('WebView',q);this.isStrict=Ext.isStrict=document.compatMode==='CSS1Compat';this.isSecure=Ext.isSecure;this.identity=c+a+(this.isStrict?'Strict':'Quirks')};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{webkit:'WebKit',gecko:'Gecko',presto:'Presto',trident:'Trident',other:'Other'},enginePrefixes:{webkit:'AppleWebKit/',gecko:'Gecko/',presto:'Presto/',trident:'Trident/'},styleDashPrefixes:{WebKit:'-webkit-',Gecko:'-moz-',Trident:'-ms-',Presto:'-o-',Other:''},stylePrefixes:{WebKit:'Webkit',Gecko:'Moz',Trident:'ms',Presto:'O',Other:''},propertyPrefixes:{WebKit:'webkit',Gecko:'moz',Trident:'ms',Presto:'o',Other:''},is:function(a){return !!this.is[a]},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(b,a,c){if(a===undefined){a=!0}this.is[b]=a;this.is[b.toLowerCase()]=a;if(c){Ext['is'+b]=a}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(b){var a=this.propertyPrefixes[this.engineName];if(a.length>0){return a+Ext.String.capitalize(b)}return b},getPreferredTranslationMethod:function(a){if(typeof a==='object'&&'translationMethod' in a&&a.translationMethod!=='auto'){return a.translationMethod}else {return 'csstransform'}}};(function(a){Ext.browser=new Ext.env.Browser(a,!0);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":'about:blank'})(Ext.global.navigator.userAgent);Ext.env.OS=function(j,k,b){var n=this,g=Ext.Boot.osNames,h=Ext.Boot.osPrefixes,a,c='',m=n.is,d,l,f,i,e;b=b||Ext.browser;for(d in h){if(h.hasOwnProperty(d)){l=h[d];f=j.match(new RegExp('(?:'+l+')([^\\s;]+)'));if(f){a=g[d];e=f[1];if(e&&e==='HTC_'){c=new Ext.Version('2.3')}else {if(e&&e==='Silk/'){c=new Ext.Version('2.3')}else {c=new Ext.Version(f[f.length-1])}}break}}}if(!a){a=g[(j.toLowerCase().match(/mac|win|linux/)||['other'])[0]];c=new Ext.Version('')}this.name=a;this.version=c;if(k){this.setFlag(k.replace(/ simulator$/i,''))}this.setFlag(a);if(c){this.setFlag(a+(c.getMajor()||''));this.setFlag(a+c.getShortVersion())}for(d in g){if(g.hasOwnProperty(d)){i=g[d];if(!m.hasOwnProperty(a)){this.setFlag(i,a===i)}}}if(this.name==='iOS'&&window.screen.height===568){this.setFlag('iPhone5')}if(b.is.Safari||b.is.Silk){if(this.is.Android2||this.is.Android3||b.version.shortVersion===501){b.setFlag('AndroidStock')}if(this.is.Android4){b.setFlag('AndroidStock');b.setFlag('AndroidStock4')}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(b,a){if(a===undefined){a=!0}if(this.flags){this.flags[b]=a}this.is[b]=a;this.is[b.toLowerCase()]=a;return this}};(function(){var h=Ext.global.navigator,i=h.userAgent,e=Ext.env.OS,f=Ext.is||(Ext.is={}),a,c,b;e.prototype.flags=f;Ext.os=a=new e(i,h.platform);c=a.name;Ext['is'+c]=!0;Ext.isMac=f.Mac=f.MacOS;var d=window.location.search.match(/deviceType=(Tablet|Phone)/),g=window.deviceType;if(d&&d[1]){b=d[1]}else {if(g==='iPhone'){b='Phone'}else {if(g==='iPad'){b='Tablet'}else {if(!a.is.Android&&!a.is.iOS&&!a.is.WindowsPhone&&/Windows|Linux|MacOS/.test(c)){b='Desktop';Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else {if(a.is.iPad||a.is.RIMTablet||a.is.Android3||Ext.browser.is.Silk||a.is.Android&&i.search(/mobile/i)===-1){b='Tablet'}else {b='Phone'}}}}}a.setFlag(b,!0);a.deviceType=b;delete e.prototype.flags})();Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a='div'}else {if(typeof a!=='string'){return a}}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(a,d){var b=this.getTestElement(d).style,c=Ext.String.capitalize(a);if(typeof b[a]!=='undefined'||typeof b[Ext.browser.getStylePrefix(a)+c]!=='undefined'){return !0}return !1},isStyleSupportedWithoutPrefix:function(b,c){var a=this.getTestElement(c).style;if(typeof a[b]!=='undefined'){return !0}return !1},isEventSupported:function(e,d){if(d===undefined){d=window}var a=this.getTestElement(d),b='on'+e.toLowerCase(),c=b in a;if(!c){if(a.setAttribute&&a.removeAttribute){a.setAttribute(b,'');c=typeof a[b]==='function';if(typeof a[b]!=='undefined'){a[b]=undefined}a.removeAttribute(b)}}return c},getStyle:function(a,c){var b=a.ownerDocument.defaultView,d=b?b.getComputedStyle(a,null):a.currentStyle;return (d||a.style)[c]},getSupportedPropertyName:function(c,a){var b=Ext.browser.getVendorProperyName(a);if(b in c){return b}else {if(a in c){return a}}return null},detect:function(h){var c=this,g=document,m=c.toRun||c.tests,i=m.length,f=g.createElement('div'),k=[],j=Ext.supports,n=c.has,a,e,b,l,d;f.innerHTML='
    ';if(h){g.body.appendChild(f)}l=c.preDetected[Ext.browser.identity]||[];while(i--){b=m[i];d=l[i];a=b.name;e=b.names;if(d===undefined){if(!h&&b.ready){k.push(b);continue}d=b.fn.call(c,g,f)}if(a){j[a]=n[a]=d}else {if(e){while(e.length){a=e.pop();j[a]=n[a]=d}}}}if(h){g.body.removeChild(f)}c.toRun=k},report:function(){var b=[],c=this.tests.length,a;for(a=0;a
    ';b=a.childNodes.length===1;a.innerHTML='';return b}},{name:'touchScroll',fn:function(){var a=0;if(Ext.os.is.Desktop&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)){a=1}else {if(Ext.supports.Touch){a=2}}return a}},{name:'Touch',fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return Ext.supports.TouchEvents&&a!==1||a>1}else {return Ext.supports.TouchEvents||a>0}}},{name:'TouchEvents',fn:function(){return this.isEventSupported('touchend')}},{name:'PointerEvents',fn:function(){return navigator.pointerEnabled}},{name:'MSPointerEvents',fn:function(){return navigator.msPointerEnabled}},{name:'Orientation',fn:function(){return 'orientation' in window&&this.isEventSupported('orientationchange')}},{name:'OrientationChange',fn:function(){return this.isEventSupported('orientationchange')}},{name:'DeviceMotion',fn:function(){return this.isEventSupported('devicemotion')}},{names:['Geolocation','GeoLocation'],fn:function(){return 'geolocation' in window.navigator}},{name:'SqlDatabase',fn:function(){return 'openDatabase' in window}},{name:'WebSockets',fn:function(){return 'WebSocket' in window}},{name:'Range',fn:function(){return !!document.createRange}},{name:'CreateContextualFragment',fn:function(){var a=!!document.createRange?document.createRange():!1;return a&&!!a.createContextualFragment}},{name:'History',fn:function(){return 'history' in window&&'pushState' in window.history}},{name:'Css3dTransforms',fn:function(){return this.has('CssTransforms')&&this.isStyleSupported('perspective')}},{name:'CssTransforms',fn:function(){return this.isStyleSupported('transform')}},{name:'CssTransformNoPrefix',fn:function(){return this.isStyleSupportedWithoutPrefix('transform')}},{name:'CssAnimations',fn:function(){return this.isStyleSupported('animationName')}},{names:['CssTransitions','Transitions'],fn:function(){return this.isStyleSupported('transitionProperty')}},{names:['Audio','AudioTag'],fn:function(){return !!this.getTestElement('audio').canPlayType}},{name:'Video',fn:function(){return !!this.getTestElement('video').canPlayType}},{name:'LocalStorage',fn:function(){try{if('localStorage' in window&&window['localStorage']!==null){localStorage.setItem('sencha-localstorage-test','test success');localStorage.removeItem('sencha-localstorage-test');return !0}}catch(b){}return !1}},{name:'XHR2',fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&'withCredentials' in new XMLHttpRequest()}},{name:'XHRUploadProgress',fn:function(){if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){var a=new XMLHttpRequest();return a&&'upload' in a&&'onprogress' in a.upload}return !1}},{name:'NumericInputPlaceHolder',fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:'matchesSelector',fn:function(){var a=document.documentElement,d='matches',e='webkitMatchesSelector',b='msMatchesSelector',c='mozMatchesSelector';return a[d]?d:a[e]?e:a[b]?b:a[c]?c:null}},{name:'RightMargin',ready:!0,fn:function(c,b){var a=c.defaultView;return !(a&&a.getComputedStyle(b.firstChild.firstChild,null).marginRight!=='0px')}},{name:'DisplayChangeInputSelectionBug',fn:function(){var a=Ext.webKitVersion;return 0a';b=a.firstChild;a.innerHTML='
    b
    ';return b.innerHTML!=='a'}},{name:'IncludePaddingInWidthCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetWidth===210}},{name:'IncludePaddingInHeightCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetHeight===210}},{name:'TextAreaMaxLength',fn:function(a){return 'maxlength' in a.createElement('textarea')}},{name:'GetPositionPercentage',ready:!0,fn:function(b,a){return Ext.feature.getStyle(a.childNodes[2],'left')==='10%'}},{name:'PercentageHeightOverflowBug',ready:!0,fn:function(d){var c=!1,b,a;if(Ext.getScrollbarSize().height){a=this.getTestElement();b=a.style;b.height='50px';b.width='50px';b.overflow='auto';b.position='absolute';a.innerHTML=['
    ','
    ','
    '].join('');d.body.appendChild(a);if(a.firstChild.offsetHeight===50){c=!0}d.body.removeChild(a)}return c}},{name:'xOriginBug',ready:!0,fn:function(e,b){b.innerHTML='
    ';var a=document.getElementById('b1').getBoundingClientRect(),c=document.getElementById('b2').getBoundingClientRect(),d=document.getElementById('b3').getBoundingClientRect();return c.left!==a.left&&d.right!==a.right}},{name:'ScrollWidthInlinePaddingBug',ready:!0,fn:function(c){var d=!1,a,b;b=c.createElement('div');a=b.style;a.height='50px';a.width='50px';a.padding='10px';a.overflow='hidden';a.position='absolute';b.innerHTML='';c.body.appendChild(b);if(b.scrollWidth===70){d=!0}c.body.removeChild(b);return d}},{name:'rtlVertScrollbarOnRight',ready:!0,fn:function(d,c){c.innerHTML='
    ';var a=c.firstChild,b=a.firstChild;return b.offsetLeft+b.offsetWidth!==a.offsetLeft+a.offsetWidth}},{name:'rtlVertScrollbarOverflowBug',ready:!0,fn:function(c,b){b.innerHTML='
    ';var a=b.firstChild;return a.clientHeight===a.offsetHeight}},{identity:'defineProperty',fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return !1}return !0}},{identify:'nativeXhr',fn:function(){if(typeof XMLHttpRequest!=='undefined'){return !0}XMLHttpRequest=function(){try{return new ActiveXObject('MSXML2.XMLHTTP.3.0')}catch(b){return null}};return !1}},{name:'SpecialKeyDownRepeat',fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(Ext.isGecko&&!Ext.isWindows||Ext.isOpera&&Ext.operaVersion<12)}},{name:'EmulatedMouseOver',fn:function(){return Ext.os.is.iOS}},{name:'Hashchange',fn:function(){var a=document.documentMode;return 'onhashchange' in window&&(a===undefined||a>7)}},{name:'FixedTableWidthBug',ready:!0,fn:function(){if(Ext.isIE8){return !1}var a=document.createElement('div'),b=document.createElement('div'),c;a.setAttribute('style','display:table;table-layout:fixed;');b.setAttribute('style','display:table-cell;min-width:50px;');a.appendChild(b);document.body.appendChild(a);a.offsetWidth;a.style.width='25px';c=a.offsetWidth;document.body.removeChild(a);return c===50}},{name:'FocusinFocusoutEvents',fn:function(){return !Ext.isGecko}},{name:'AsyncFocusEvents',fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:'accessibility',ready:!0,fn:function(f){var g=f.body,b,c,a,e,d;function getColor(a){var c=[],e=0,g,b;if(a.indexOf('rgb(')!==-1){c=a.replace('rgb(','').replace(')','').split(', ')}else {if(a.indexOf('#')!==-1){g=a.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;b=a.match(g);if(b){c=['0x'+b[1],'0x'+b[2],'0x'+b[3]]}}}for(var d=0;d0};Ext.supports.HighContrastMode=!e.BackgroundImages;g.removeChild(b);b=c=null;return e}},0]};Ext.feature.tests.pop();Ext.supports={};Ext.feature.detect();Ext.env.Ready={blocks:(location.search||'').indexOf('ext-pauseReadyFire')>0?1:0,bound:0,delay:1,firing:!1,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==='complete'){a.onReadyEvent({type:b.readyState||'body'})}else {a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener('deviceready',a.onReadyEvent,!1)}b.addEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.addEventListener('load',a.onReadyEvent,!1)}}},block:function(){++this.blocks;Ext.isReady=!1},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=!0;a.state=1;Ext.feature.detect(!0);if(!a.delay){a.handleReady()}else {if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else {a.handleReadySoon()}}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(b){var a=this;if(!a.timer){a.timer=Ext.defer(function(){a.timer=null;a.handleReady()},b||a.delay)}},invoke:function(a){var b=a.delay;if(b){Ext.defer(a.fn,b,a.scope)}else {if(Ext.elevateFunction){Ext.elevateFunction(a.fn,a.scope)}else {a.fn.call(a.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else {this.doInvokeAll()}},doInvokeAll:function(){var a=this,b=a.listeners,c;if(!a.blocks){Ext.isReady=!0}a.firing=!0;while(b.length){if(a.sortGeneration!==a.generation){a.sortGeneration=a.generation;b.sort(a.sortFn)}c=b.pop();if(a.blocks&&!c.dom){b.push(c);break}a.invoke(c)}a.firing=!1},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:!1,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(e,d,c){var a=Ext.env.Ready,b=a.makeListener(e,d,c);if(a.state===2&&!a.firing&&(b.dom||!a.blocks)){a.invoke(b)}else {a.listeners.push(b);++a.generation;if(!a.bound){a.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else {a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(a,b){return -(a.phase-b.phase||b.priority-a.priority||a.id-b.id)},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener('deviceready',a.onReadyEvent,!1)}b.removeEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.removeEventListener('load',a.onReadyEvent,!1)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=!0;try{document.documentElement.doScroll('left')}catch(c){b=!1}if(b&&document.body){a.onReadyEvent({type:'doScroll'})}else {a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){if(a.bound){return}var b=document,c;try{c=window.frameElement===undefined}catch(d){}if(!c||!b.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else {if(a.pollScroll()){return}}if(b.readyState==='complete'){a.onReadyEvent({type:'already '+(b.readyState||'body')})}else {b.attachEvent('onreadystatechange',a.onReadyStateChange);window.attachEvent('onload',a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent('onreadystatechange',a.onReadyStateChange);window.detachEvent('onload',a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){clearTimeout(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:!0};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()})();Ext.Loader=new function(){var a=this,b=Ext.ClassManager,i=Ext.Boot,o=Ext.Class,c=Ext.env.Ready,k=Ext.Function.alias,h=['extend','mixins','requires'],j={},m=[],f=[],g=[],l={},d={},e={enabled:!0,scriptChainDelay:!1,disableCaching:!0,disableCachingParam:'_dc',paths:b.paths,preserveScripts:!0,scriptCharset:undefined},n={disableCaching:!0,disableCachingParam:!0,preserveScripts:!0,scriptChainDelay:'loadDelay'};Ext.apply(a,{isInHistory:j,isLoading:!1,history:m,config:e,readyListeners:f,optionalRequires:g,requiresMap:l,hasFileLoadError:!1,scriptsLoading:0,syncModeEnabled:!1,missingQueue:d,init:function(){var k=document.getElementsByTagName('script'),m=k[k.length-1].src,n=m.substring(0,m.lastIndexOf('/')+1),l=Ext._classPathMetadata,h=Ext.Microloader,g=Ext.manifest,d,i,j,e,f;if(!b.getPath('Ext')){b.setPath('Ext',n+'src')}if(l){Ext._classPathMetadata=null;a.addClassPathMappings(l)}if(g){d=g.loadOrder;i=Ext.Boot.baseUrl;if(d&&g.bootRelative){for(j=d.length,e=0;e1?'es':'')+': '+g.join(', '))}if(l.length){a.loadScripts({url:l,_classNames:g})}else {a.checkReady()}}else {if(c){c.call(k)}a.checkReady()}if(a.syncModeEnabled){if(m===1){return b.get(h[0])}}return a},makeLoadCallback:function(a,c){return function(){var e=[],d=a.length;while(d-->0){e[d]=b.get(a[d])}return c.apply(this,e)}},onLoadFailure:function(){var b=this,c=b.onError;a.hasFileLoadError=!0;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onLoadSuccess:function(){var b=this,c=b.onLoad;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onReady:function(g,e,h,d){if(h){c.on(g,e,d)}else {var b=c.makeListener(g,e,d);if(a.isLoading){f.push(b)}else {c.invoke(b)}}},addUsedClasses:function(b){var c,d,e;if(b){b=typeof b==='string'?[b]:b;for(d=0,e=b.length;d0){a.loadScripts({url:b,sequential:!0})}}}if(h.uses){b=h.uses;a.addUsedClasses(b)}});b.onCreated(a.historyPush);a.init()}();Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}Ext.cmd.derive('Ext.Mixin',Ext.Base,function(a){return {statics:{addHook:function(e,c,d,h){var g=Ext.isFunction(e),b=function(){var b=arguments,i=g?e:h[e],f=this.callParent(b);i.apply(this,b);return f},f=c.hasOwnProperty(d)&&c[d];if(g){e.$previous=Ext.emptyFn}b.$name=d;b.$owner=c.self;if(f){b.$previous=f.$previous;f.$previous=b}else {c[d]=b}}},onClassExtended:function(k,c){var b=c.mixinConfig,d=c.xhooks,j=k.superclass,i=c.onClassMixedIn,h,f,g,e;if(d){delete c.xhooks;(b||(c.mixinConfig=b={})).on=d}if(b){h=j.mixinConfig;if(h){c.mixinConfig=b=Ext.merge({},h,b)}c.mixinId=b.id;f=b.before;g=b.after;d=b.on;e=b.extended}if(f||g||d||e){c.onClassMixedIn=function(b){var h=this.prototype,l=b.prototype,j;if(f){Ext.Object.each(f,function(e,d){b.addMember(e,function(){if(h[d].apply(this,arguments)!==!1){return this.callParent(arguments)}})})}if(g){Ext.Object.each(g,function(e,d){b.addMember(e,function(){var f=this.callParent(arguments);h[d].apply(this,arguments);return f})})}if(d){for(j in d){a.addHook(d[j],l,j,h)}}if(e){b.onExtended(function(){var d=Ext.Array.slice(arguments,0);d.unshift(b);return e.apply(this,d)},this)}if(i){i.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,'Mixin'],0);Ext.util=Ext.util||{};Ext.util.DelayedTask=function(e,c,d,b,g){var a=this,f,h=function(){var f=Ext.GlobalEvents;clearInterval(a.id);a.id=null;e.apply(c,d||[]);if(g!==!1&&f.hasListeners.idle){f.fireEvent('idle')}};b=typeof b==='boolean'?b:!0;a.id=null;a.delay=function(i,l,j,k){if(b){a.cancel()}if(typeof i==='number'){f=i}e=l||e;c=j||c;d=k||d;if(!a.id){a.id=Ext.interval(h,f)}};a.cancel=function(){if(a.id){clearInterval(a.id);a.id=null}}};Ext.cmd.derive('Ext.util.Event',Ext.Base,function(){var d=Array.prototype.slice,c=Ext.Array.insert,b=Ext.Array.toArray,a={};return {isEvent:!0,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(r,q,g,t,s){var a=this,p=!1,l=a.observable,o=a.name,d,m,i,h,f,k,j,b,e,n;if(a.findListener(r,q)===-1){m=a.createListener(r,q,g,t,s);if(a.firing){a.listeners=a.listeners.slice(0)}d=a.listeners;b=j=d.length;i=g&&g.priority;f=a._highestNegativePriorityIndex;k=f!==undefined;if(i){h=i<0;if(!h||k){for(e=h?f:0;e0},fireDelegated:function(a,b){this.firingObservable=a;return this.fire.apply(this,b)},fire:function(){var e=this,r=e.listeners,t=r.length,n=e.observable,i=n.isElement,w=n.isComponent,v=e.firingObservable,b,o,f,k,c,j,u,h,l,p,g,m,a,s,q;if(!e.suspended&&t>0){e.firing=!0;c=arguments.length?d.call(arguments,0):[];u=c.length;if(i){a=c[0]}for(k=0;k4?b:e;b=e;for(e in b){if(b.hasOwnProperty(e)){g=b[e];if(!h.$eventOptions[e]){f.addManagedListener(h,e,g.fn||g,g.scope||b.scope||i,g.fn?g:k,!0)}}}if(b&&b.destroyable){return new a(f,h,b)}}else {if(j!==d){h.doAddListener(e,j,i,b,null,f,f);if(!l&&b&&b.destroyable){return new a(f,h,e,j,i)}}}},removeManagedListener:function(h,a,k,j){var e=this,b,d,g,i,f;if(typeof a!=='string'){b=a;for(a in b){if(b.hasOwnProperty(a)){d=b[a];if(!h.$eventOptions[a]){e.removeManagedListener(h,a,d.fn||d,d.scope||b.scope||j)}}}}else {g=e.managedListeners?e.managedListeners.slice():[];a=Ext.canonicalEventName(a);for(f=0,i=g.length;f0,d=this.events;if(!b&&a&&d){a=d[a];if(a&&a.isEvent){return a.isSuspended()}}return b},suspendEvents:function(a){++this.eventsSuspended;if(a&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var e=this,f=e.events,g=arguments.length,d,b,a;for(d=0;d0){i.push(g)}d--;if(d===0){f.resolve(i)}return g};m=function(d){h--;if(h===0){f.reject(new Error('Too few Promises were resolved.'))}return d};for(g=j=0,n=e.length;j0){b.type=a.substring(0,e);b.defaultType=a.substring(e+1)}if(f){delete d.factoryConfig;Ext.apply(b,f)}g=Ext.Factory.define(b.type,b);if(c.create===Ext.Base.create){c.create=g}}},0,0,0,0,0,0,[Ext.mixin,'Factoryable'],0);Ext.cmd.derive('Ext.data.request.Base',Ext.Base,{factoryConfig:{type:'request',defaultType:'ajax'},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=!0}a.abort=Ext.emptyFn},createDeferred:function(){return this.deferred=new Ext.Deferred()},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var a=this,b=a.deferred,c=a.result;a.clearTimer();if(b){if(a.success){b.resolve(c)}else {b.reject(c)}}},onTimeout:function(){var a=this;a.timedout=!0;a.timer=null;a.abort(!0)},getTimeout:function(){return this.timeout},clearTimer:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var a=this,b;b={request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?'transaction aborted':'communication failure',getResponseHeader:a._getHeader,getAllResponseHeaders:a._getHeaders};if(a.aborted){b.aborted=!0}if(a.timedout){b.timedout=!0}return b},_getHeader:function(b){var a=this.headers;return a&&a[b.toLowerCase()]},_getHeaders:function(){return this.headers}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.request,'Base'],0);Ext.cmd.derive('Ext.data.flash.BinaryXhr',Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=!0;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById('ext-flash-polyfill');Ext.GlobalEvents.fireEvent('flashready')},flashPluginActive:!1,flashPluginInjected:!1,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(b,c,d){var a;a=this.liveConnections[Number(b)];if(a){a.onFlashStateChange(c,d)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var c=this,b,a;c.flashPolyfillEl=Ext.getBody().appendChild({id:'ext-flash-polyfill',cn:[{tag:'p',html:'To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed.'},{tag:'a',href:'http://www.adobe.com/go/getflashplayer',cn:[{tag:'img',src:window.location.protocol+'//www.adobe.com/images/shared/download_buttons/get_flash_player.gif',alt:'Get Adobe Flash player'}]}]});b=[Ext.Loader.getPath('Ext.data.Connection'),'../../../plugins/flash/swfobject.js'].join('/');a='/plugins/flash/FlashPlugin.swf';if(Ext.flashPluginPath){a=Ext.flashPluginPath}Ext.Loader.loadScript({url:b,onLoad:function(){var d='11.4.0';var e='playerProductInstall.swf';var f={};var b={};b.quality='high';b.bgcolor='#ffffff';b.allowscriptaccess='sameDomain';b.allowfullscreen='true';var c={};c.id='ext-flash-polyfill';c.name='polyfill';c.align='middle';swfobject.embedSWF(a,'ext-flash-polyfill','0','0',d,e,f,b,c)},onError:function(){},scope:c});Ext.data.flash.BinaryXhr.flashPluginInjected=!0}},readyState:0,status:0,statusText:'',responseBytes:null,javascriptId:null,constructor:function(b){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var a=this;Ext.apply(a,b);a.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=!0;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener('flashready',a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(c,b){a.push(c+': '+b)});return a.join('\r\n')},getResponseHeader:function(b){var a=this.responseHeaders;return a&&a[b]||null},open:function(c,f,d,e,b){var a=this;a.method=c;a.url=f;a.async=d!==!1;a.user=e;a.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(b){var a=this;a.body=b;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener('flashready',a.onFlashReady,a)}else {this.onFlashReady()}},onFlashReady:function(){var a=this,b,c;a.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(a);b={method:a.method,url:a.url,user:a.user,password:a.password,mimeType:a.mimeType,requestHeaders:a.requestHeaders,body:a.body,javascriptId:a.javascriptId};c=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(a,b){this.requestHeaders[a]=b},onreadystatechange:Ext.emptyFn,parseData:function(a){var b=this;this.status=a.status||0;b.responseHeaders={};if(b.mimeType){b.responseHeaders['content-type']=b.mimeType}if(a.reason=='complete'){this.responseBytes=a.data;b.responseHeaders['content-length']=a.data.length}else {if(a.reason=='error'||a.reason=='securityError'){this.statusText=a.text;b.responseHeaders['content-length']=0}}},onFlashStateChange:function(b,c){var a=this;if(b==4){a.parseData(c);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(b)}},1,0,0,0,0,0,[Ext.data.flash,'BinaryXhr'],0);Ext.cmd.derive('Ext.data.request.Ajax',Ext.data.request.Base,{statics:{parseStatus:function(a){a=a==1223?204:a;var c=a>=200&&a<300||a==304,b=!1;if(!c){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:b=!0;break;}}return {success:c,isException:b}}},start:function(f){var a=this,e=a.options,c=a.requestOptions,d=a.isXdr,b,g;b=a.xhr=a.openRequest(e,c,a.async,a.username,a.password);if(!d){g=a.setupHeaders(b,e,c.data,c.params)}if(a.async){if(!d){b.onreadystatechange=Ext.Function.bind(a.onStateChange,a)}}if(d){a.processXdrRequest(a,b)}Ext.data.request.Base.prototype.start.call(this,f);b.send(f);if(!a.async){return a.onComplete()}return a},abort:function(c){var a=this,b=a.xhr;if(c||a.isLoading()){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=Ext.emptyFn}b.abort();Ext.data.request.Base.prototype.abort.call(this,c);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var c=this,a=c.xhr,b=a&&a.readyState,d=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!a||c.aborted||c.timedout){return !1}if(d&&a instanceof d){return b!==4}return b!==0&&b!==4},openRequest:function(d,b,f,e,g){var c=this,a=c.newRequest(d);if(e){a.open(b.method,b.url,f,e,g)}else {if(c.isXdr){a.open(b.method,b.url)}else {a.open(b.method,b.url,f)}}if(d.binary||c.binary){if(window.Uint8Array){a.responseType='arraybuffer'}else {if(a.overrideMimeType){a.overrideMimeType('text/plain; charset=x-user-defined')}}}if(d.withCredentials||c.withCredentials){a.withCredentials=!0}return a},newRequest:function(c){var a=this,b;if(c.binaryData){if(window.Uint8Array){b=a.getXhrInstance()}else {b=new Ext.data.flash.BinaryXhr()}}else {if(a.cors&&Ext.isIE9m){b=a.getXdrInstance();a.isXdr=!0}else {b=a.getXhrInstance();a.isXdr=!1}}return b},setupHeaders:function(m,f,j,l){var d=this,a=Ext.apply({},f.headers||{},d.defaultHeaders),e=d.defaultPostHeader,h=f.jsonData,i=f.xmlData,b='Content-Type',k=d.useDefaultXhrHeader,c,g;if(!a.hasOwnProperty(b)&&(j||l)){if(j){if(f.rawData){e='text/plain'}else {if(i&&Ext.isDefined(i)){e='text/xml'}else {if(h&&Ext.isDefined(h)){e='application/json'}}}}a[b]=e}if(k&&!a['X-Requested-With']){a['X-Requested-With']=d.defaultXhrHeader}if(a[b]===undefined||a[b]===null){delete a[b]}try{for(c in a){if(a.hasOwnProperty(c)){g=a[c];m.setRequestHeader(c,g)}}}catch(n){d.owner.fireEvent('exception',c,g)}return a},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else {Ext.raise({msg:'Your browser does not support CORS'})}return a},getXhrInstance:function(){var c=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject('MSXML2.XMLHTTP.3.0')},function(){return new ActiveXObject('MSXML2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')}],b=0,d=c.length,a;for(;b=0){j=e.substr(0,c).toLowerCase();if(e.charAt(c+1)==' '){++c}f[j]=e.substr(c+1)}}b={request:d,requestId:d.id,status:a.status,statusText:a.statusText,getResponseHeader:function(b){return f[b.toLowerCase()]},getAllResponseHeaders:function(){return f}};if(h){d.processXdrResponse(b,a)}if(d.binary){b.responseBytes=d.getByteArray(a)}else {b.responseText=a.responseText;b.responseXML=a.responseXML}return b},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(b){var e=b.response,g=b.responseBody,h=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,d,f,c;if(b instanceof h){a=b.responseBytes}else {if(window.Uint8Array){a=e?new Uint8Array(e):[]}else {if(Ext.isIE9p){try{a=(new VBArray(g)).toArray()}catch(i){a=[]}}else {if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(b.responseBody,a=[])}else {a=[];d=b.responseText;f=d.length;for(c=0;c=500){this.run()}},run:function(){var a=this;if(!a.isRunning){return}var b=a.runningQueue,d=Ext.now(),c,e;a.lastRunTime=d;a.frameStartTime=d;b.push.apply(b,a.queue);for(c=0,e=b.length;c0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty('taskQueueTimer')){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var a=this.taskQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}}},1,0,0,0,0,0,[Ext,'AnimationQueue'],0);Ext.cmd.derive('Ext.ComponentManager',Ext.Base,{alternateClassName:'Ext.ComponentMgr',singleton:!0,count:0,typeName:'xtype',constructor:function(b){var a=this;Ext.apply(a,b||{});a.all={};a.references={};a.onAvailableCallbacks={}},create:function(a,b){if(typeof a==='string'){return Ext.widget(a)}if(a.isComponent){return a}if('xclass' in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(b){var a=this,e=a.all,d=b.getId(),c=a.onAvailableCallbacks;e[d]=b;if(b.getReference&&b.getReference()){a.references[d]=b}++a.count;if(!a.hasFocusListener){Ext.on('focus',a.onGlobalFocus,a);a.hasFocusListener=!0}c=c&&c[d];if(c&&c.length){a.notifyAvailable(b)}},unregister:function(b){var a=b.getId();if(b.getReference&&b.getReference()){this.references[a]=null;delete this.references[a]}this.all[a]=null;delete this.all[a];this.count--},markReferencesDirty:function(){this.referencesDirty=!0},fixReferences:function(){var c=this,a=c.references,b;if(c.referencesDirty){for(b in a){if(a.hasOwnProperty(b)){a[b].fixReference()}}c.referencesDirty=!1}},onAvailable:function(a,f,d){var g=this,b=g.onAvailableCallbacks,e=g.all,c;if(a in e){c=e[a];f.call(d||c,c)}else {if(a){if(!Ext.isArray(b[a])){b[a]=[]}b[a].push(function(b){f.call(d||b,b)})}}},notifyAvailable:function(a){var b=this.onAvailableCallbacks[a&&a.getId()]||[];while(b.length){b.shift()(a)}},each:function(b,a){return Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.fromElement(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(d){var h=this,g=d.toElement,f=d.fromElement,c=Ext.Component.fromElement(g),b=Ext.Component.fromElement(f),e,a;if(c===b){return}e=h.getCommonAncestor(b,c);if(b&&!(b.destroyed||b.destroying)){if(b.handleBlurEvent){b.handleBlurEvent(d)}for(a=b;a&&a!==e;a=a.getRefOwner()){if(!(a.destroyed||a.destroying)){a.onFocusLeave({event:d.event,type:'focusleave',target:f,relatedTarget:g,fromComponent:b,toComponent:c})}}}if(c&&!c.destroyed){if(c.handleFocusEvent){c.handleFocusEvent(d)}for(a=c;a&&a!==e;a=a.getRefOwner()){a.onFocusEnter({event:d.event,type:'focusenter',relatedTarget:f,target:g,fromComponent:b,toComponent:c})}}},getCommonAncestor:function(a,b){if(a===b){return a}while(a&&!(a.isAncestor(b)||a===b)){a=a.getRefOwner()}return a},privates:{clearAll:function(){this.all={};this.references={};this.onAvailableCallbacks={}},fromElement:function(i,b,e){var a=Ext.getDom(i),h=this.all,g=0,f,d,c;if(typeof b!=='number'){f=Ext.getDom(b);b=Number.MAX_VALUE}while(a&&a.nodeType===1&&g0){for(;a.first&&b;b--){a.removeAtKey(a.first.key)}}},destroy:function(){this.first=this.last=null;Ext.util.HashMap.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util,'LruCache'],0);Ext.cmd.derive('Ext.ComponentQuery',Ext.Base,{singleton:!0},0,0,0,0,0,0,[Ext,'ComponentQuery'],function(){var a=this,f=Ext.util.Operators,r=/(\d*)n\+?(\d*)/,q=/\D/,c=/^(\s)+/,b=/\\(.)/g,j=new Ext.util.LruCache({maxSize:100}),m=['var r = [],','i = 0,','it = items,','l = it.length,','c;','for (; i < l; i++) {','c = it[i];','if (c.{0}) {','r.push(c);','}','}','return r;'].join(''),d=function(b,a){return a.method.apply(this,[b].concat(a.args))},e=function(d,g){var b=[],c=0,e=d.length,a,f=g!=='>';for(;c\^])\s?|\s|$)/,o=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,k=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:g,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:l,argTransform:function(c){var g=c[0],f=c[1],e=c[2],a=c[4],d;if(a!==undefined){a=a.replace(b,'$1')}if(e==='/='){d=j.get(a);if(d){a=d}else {a=j.add(a,new RegExp(a))}}return [f,e,a]}},{re:/^#((?:\\\.|[\w\-])+)/,method:i},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:n,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:m}];a.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(f){var c=this.operations,b=[],e,a,d;for(a=0,d=c.length;a=0;--c){g=l[c];b=g.mode;if(b){if(b==='^'){a=e(a,' ')}else {if(b==='>'){i=[];for(f=0,k=a.length;f1}});Ext.apply(a,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(d,f){var c=0,g=d.length,e=[],h=-1,b;for(;c0){b.push(a[0])}return b},last:function(a){var b=a.length,c=[];if(b>0){c.push(a[b-1])}return c},focusable:function(d){var e=d.length,c=[],b=0,a;for(;b=c.left&&(t=='t'&&v=='b'||t=='b'&&v=='t');o=f=c.top&&(s=='r'&&u=='l'||s=='l'&&u=='r');if(e+k>a.right){if(o){e=c.left-k;o=!1}else {e=a.right-k}}if(ea.bottom){if(p){f=c.top-j;p=!1}else {f=a.bottom-j}}if(fa.right){e=!0;d[0]=a.right-b.right}if(b.left+d[0]a.bottom){e=!0;d[1]=a.bottom-b.bottom}if(b.top+d[1]=b.x&&a.right<=b.right&&a.y>=b.y&&a.bottom<=b.bottom},intersect:function(a){var b=this,f=Math.max(b.y,a.y),e=Math.min(b.right,a.right),c=Math.min(b.bottom,a.bottom),d=Math.max(b.x,a.x);if(c>f&&e>d){return new this.self(f,e,c,d)}else {return !1}},union:function(a){var b=this,f=Math.min(b.y,a.y),e=Math.max(b.right,a.right),c=Math.max(b.bottom,a.bottom),d=Math.min(b.x,a.x);return new this.self(f,e,c,d)},constrainTo:function(b){var a=this,c=Ext.Number.constrain;a.top=a.y=c(a.top,b.y,b.bottom);a.bottom=c(a.bottom,b.y,b.bottom);a.left=a.x=c(a.left,b.x,b.right);a.right=c(a.right,b.x,b.right);return a},adjust:function(e,c,b,d){var a=this;a.top=a.y+=e;a.left=a.x+=d;a.right+=c;a.bottom+=b;return a},getOutOfBoundOffset:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.getOutOfBoundOffsetX(a)}else {return this.getOutOfBoundOffsetY(a)}}else {a=b;var c=new Ext.util.Offset();c.x=this.getOutOfBoundOffsetX(a.x);c.y=this.getOutOfBoundOffsetY(a.y);return c}},getOutOfBoundOffsetX:function(a){if(a<=this.x){return this.x-a}else {if(a>=this.right){return this.right-a}}return 0},getOutOfBoundOffsetY:function(a){if(a<=this.y){return this.y-a}else {if(a>=this.bottom){return this.bottom-a}}return 0},isOutOfBound:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.isOutOfBoundX(a)}else {return this.isOutOfBoundY(a)}}else {a=b;return this.isOutOfBoundX(a.x)||this.isOutOfBoundY(a.y)}},isOutOfBoundX:function(a){return athis.right},isOutOfBoundY:function(a){return athis.bottom},restrict:function(d,a,b){if(Ext.isObject(d)){var c;b=a;a=d;if(a.copy){c=a.copy()}else {c={x:a.x,y:a.y}}c.x=this.restrictX(a.x,b);c.y=this.restrictY(a.y,b);return c}else {if(d=='x'){return this.restrictX(a,b)}else {return this.restrictY(a,b)}}},restrictX:function(a,b){if(!b){b=1}if(a<=this.x){a-=(a-this.x)*b}else {if(a>=this.right){a-=(a-this.right)*b}}return a},restrictY:function(a,b){if(!b){b=1}if(a<=this.y){a-=(a-this.y)*b}else {if(a>=this.bottom){a-=(a-this.bottom)*b}}return a},getSize:function(){return {width:this.right-this.x,height:this.bottom-this.y}},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(b){var a=this;a.top=a.y=a[1]=b.y;a.right=b.right;a.bottom=b.bottom;a.left=a.x=a[0]=b.x;return this},toString:function(){return 'Region['+this.top+','+this.right+','+this.bottom+','+this.left+']'},translateBy:function(b,c){if(arguments.length==1){c=b.y;b=b.x}var a=this;a.top=a.y+=c;a.right+=b;a.bottom+=c;a.left=a.x+=b;return a},round:function(){var a=this;a.top=a.y=Math.round(a.y);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);a.left=a.x=Math.round(a.x);return a},equals:function(a){return this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left}},3,0,0,0,0,0,[Ext.util,'Region'],0);Ext.cmd.derive('Ext.util.Point',Ext.util.Region,{radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(b){var a=b.changedTouches,c=a&&a.length>0?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}Ext.util.Region.prototype.constructor.call(this,b,a,b,a)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return 'Point['+this.x+','+this.y+']'},equals:function(a){return this.x===a.x&&this.y===a.y},isCloseTo:function(b,a){if(typeof a=='number'){return this.getDistanceTo(b)<=a}var e=b.x,f=b.y,c=a.x,d=a.y;return this.x<=e+c&&this.x>=e-c&&this.y<=f+d&&this.y>=f-d},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=='object'){a=this.origin}return Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y)},getDistanceTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.sqrt(b*b+c*c)},getAngleTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.atan2(c,b)*this.radianToDegreeConstant}},3,0,0,0,0,0,[Ext.util,'Point'],function(){this.prototype.translate=this.prototype.translateBy});Ext.cmd.derive('Ext.event.Event',Ext.Base,{alternateClassName:'Ext.EventObjectImpl',isStopped:!1,defaultPrevented:!1,isEvent:!0,statics:{resolveTextNode:function(a){return a&&a.nodeType===3?a.parentNode:a},pointerEvents:{pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerDown:1,MSPointerMove:1,MSPointerUp:1,MSPointerOver:1,MSPointerOut:1,MSPointerCancel:1,MSPointerEnter:1,MSPointerLeave:1},mouseEvents:{mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1,mouseenter:1,mouseleave:1},clickEvents:{click:1,dblclick:1},touchEvents:{touchstart:1,touchmove:1,touchend:1,touchcancel:1},focusEvents:{focus:1,blur:1,focusin:1,focusout:1,focusenter:1,focusleave:1},pointerTypes:{2:'touch',3:'pen',4:'mouse',touch:'touch',pen:'pen',mouse:'mouse'}},constructor:function(b){var a=this,c=a.self,h=a.self.resolveTextNode,i=b.changedTouches,g=i?i[0]:b,d=b.type,e,f;a.pageX=g.pageX;a.pageY=g.pageY;a.target=a.delegatedTarget=h(b.target);f=b.relatedTarget;if(f){a.relatedTarget=h(f)}a.browserEvent=a.event=b;a.type=d;a.button=b.button||0;a.shiftKey=b.shiftKey;a.ctrlKey=b.ctrlKey||b.metaKey||!1;a.altKey=b.altKey;a.charCode=b.charCode;a.keyCode=b.keyCode;a.buttons=b.buttons;if(a.button===0&&a.buttons===0){a.buttons=1}if(c.forwardTab!==undefined&&c.focusEvents[d]){a.forwardTab=c.forwardTab}if(c.mouseEvents[d]||c.clickEvents[d]){e='mouse'}else {if(c.pointerEvents[d]){e=c.pointerTypes[b.pointerType]}else {if(c.touchEvents[d]){e='touch'}}}if(e){a.pointerType=e}a.timeStamp=a.time=+(b.timeStamp||new Date())},chain:function(b){var a=Ext.Object.chain(this);a.parentEvent=this;return Ext.apply(a,b)},correctWheelDelta:function(a){var c=this.WHEEL_SCALE,b=Math.round(a/c);if(!b&&a){b=a<0?-1:1}return b},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.keyCodes[this.keyCode]},getPoint:function(){var a=this.getXY();return new Ext.util.Point(a[0],a[1])},getRelatedTarget:function(d,e,c){var a=this.relatedTarget,b=null;if(a){if(d){b=Ext.fly(a).findParent(d,e,c)}else {b=c?Ext.get(a):a}}return b},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):a?Ext.get(this.target):this.target},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var d=this,a=d.browserEvent,c=0,b=0;if(Ext.isDefined(a.wheelDeltaX)){c=a.wheelDeltaX;b=a.wheelDeltaY}else {if(a.wheelDelta){b=a.wheelDelta}else {if(a.detail){b=-a.detail;if(b>100){b=3}else {if(b<-100){b=-3}}if(Ext.isDefined(a.axis)&&a.axis===a.HORIZONTAL_AXIS){c=b;b=0}}}}return {x:d.correctWheelDelta(c),y:d.correctWheelDelta(b)}},getX:function(){return this.getXY()[0]},getXY:function(){var d=this,c=d.xy;if(!c){c=d.xy=[d.pageX,d.pageY];var g=c[0],e,f,a,b;if(!g&&g!==0){e=d.browserEvent;f=document;a=f.documentElement;b=f.body;c[0]=e.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);c[1]=e.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}}return c},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(c){var a=this,b=a.keyCode,d=a.type==='keypress';return (!d||Ext.isGecko)&&b>=33&&b<=40||!c&&(b===a.RETURN||b===a.TAB||b===a.ESC)},isSpecialKey:function(){var b=this,a=b.keyCode,d=Ext.isGecko,c=b.type==='keypress';return d&&c&&b.charCode===0||this.isNavKeyPress()||a===b.BACKSPACE||a===b.ENTER||a>=16&&a<=20||(!c||d)&&a>=44&&a<=46},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var a=this,b=a.parentEvent;a.defaultPrevented=!0;if(b){b.defaultPrevented=!0}a.browserEvent.preventDefault();return a},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var a=this,b=a.browserEvent,c=a.parentEvent;a.isStopped=!0;if(c){c.isStopped=!0}if(!b.stopPropagation){b.cancelBubble=!0;return a}b.stopPropagation();return a},within:function(b,d,c){var a;if(b){a=d?this.getRelatedTarget():this.getTarget()}return a?Ext.fly(b).contains(a)||!!(c&&a===Ext.getDom(b)):!1},deprecated:{'4.0':{methods:{getPageX:'getX',getPageY:'getY'}}}},1,0,0,0,0,0,[Ext.event,'Event',Ext,'EventObjectImpl'],function(f){var b=f.prototype,a={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,WHEEL_SCALE:function(){var a;if(Ext.isGecko){a=3}else {if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){a=120}else {a=12}a*=3}else {a=120}}return a}()},d={},c,e;Ext.apply(f,a);Ext.apply(b,a);delete a.WHEEL_SCALE;delete a.RETURN;for(c in a){e=a[c];d[e]=c}b.keyCodes=d;b.getTrueXY=b.getXY});Ext.define('Ext.overrides.event.Event',{override:'Ext.event.Event',mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:function(){var a,b={},c;if(!Ext.isIE9m&&document.createEvent){a={createHtmlEvent:function(e,d,c,b){var a=e.createEvent('HTMLEvents');a.initEvent(d,c,b);return a},createMouseEvent:function(d,n,h,f,m,b,c,i,k,g,j,l,e){var a=d.createEvent('MouseEvents'),o=d.defaultView||window;if(a.initMouseEvent){a.initMouseEvent(n,h,f,o,m,b,c,b,c,i,k,g,j,l,e)}else {a=d.createEvent('UIEvents');a.initEvent(n,h,f);a.view=o;a.detail=m;a.screenX=b;a.screenY=c;a.clientX=b;a.clientY=c;a.ctrlKey=i;a.altKey=k;a.metaKey=j;a.shiftKey=g;a.button=l;a.relatedTarget=e}return a},createUIEvent:function(b,f,d,c,e){var a=b.createEvent('UIEvents'),g=b.defaultView||window;a.initUIEvent(f,d,c,g,e);return a},fireEvent:function(a,c,b){a.dispatchEvent(b)}}}else {if(document.createEventObject){c={0:1,1:4,2:2};a={createHtmlEvent:function(d,e,c,b){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},createMouseEvent:function(n,o,i,g,m,b,d,j,l,h,k,e,f){var a=n.createEventObject();a.bubbles=i;a.cancelable=g;a.detail=m;a.screenX=b;a.screenY=d;a.clientX=b;a.clientY=d;a.ctrlKey=j;a.altKey=l;a.shiftKey=h;a.metaKey=k;a.button=c[e]||e;a.relatedTarget=f;return a},createUIEvent:function(d,f,c,b,e){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},fireEvent:function(a,c,b){a.fireEvent('on'+c,b)}}}}Ext.Object.each({load:[!1,!1],unload:[!1,!1],select:[!0,!1],change:[!0,!1],submit:[!0,!0],reset:[!0,!1],resize:[!0,!1],scroll:[!0,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createHtmlEvent(c,f,e);a.fireEvent(b,c,g)}});function createMouseEventDispatcher(b,d){var c=b!=='mousemove';return function(f,e){var g=e.getXY(),h=a.createMouseEvent(f.ownerDocument,b,!0,c,d,g[0],g[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget);a.fireEvent(f,b,h)}}Ext.each(['click','dblclick','mousedown','mouseup','mouseover','mousemove','mouseout'],function(a){b[a]=createMouseEventDispatcher(a,1)});Ext.Object.each({focusin:[!0,!1],focusout:[!0,!1],activate:[!0,!0],focus:[!1,!1],blur:[!1,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createUIEvent(b.ownerDocument,c,f,e,1);a.fireEvent(b,c,g)}});if(!a){b={};a={}}function cannotInject(b,a){}return function(a){var c=this,d=b[c.type]||cannotInject,e=a?a.dom||a:c.getTarget();d(e,c)}}(),preventDefault:function(){var c=this,a=c.browserEvent,e=c.parentEvent,d,b;if(typeof a.type!=='unknown'){c.defaultPrevented=!0;if(e){e.defaultPrevented=!0}if(a.preventDefault){a.preventDefault()}else {if(a.type==='mousedown'){b=a.target;d=b.getAttribute('unselectable');if(d!=='on'){b.setAttribute('unselectable','on');Ext.defer(function(){b.setAttribute('unselectable',d)},1)}}a.returnValue=!1;if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}}return c},stopPropagation:function(){var a=this,b=a.browserEvent;if(typeof b.type!=='unknown'){if(a.mousedownEvents[a.type]){Ext.GlobalEvents.fireMouseDown(a)}arguments.callee.$previous.call(this)}return a},deprecated:{'5.0':{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var c=this,d,a=function(a){if(a.keyCode===9){c.forwardTab=!a.shiftKey}},b=function(a){if(a.keyCode===9){delete c.forwardTab}};if(Ext.isIE9m){d={0:0,1:0,4:1,2:2};c.override({statics:{enableIEAsync:function(b){var a,c={};for(a in b){c[a]=b[a]}return c}},constructor:function(a,f,e,c){var b=this;b.callParent([a,f,e,c]);b.button=d[a.button];if(a.type==='contextmenu'){b.button=2}b.toElement=a.toElement;b.fromElement=a.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(a){this.browserEvent=this.self.enableIEAsync(a)},getRelatedTarget:function(f,d,e){var a=this,c,b;if(!a.relatedTarget){c=a.type;if(a.mouseLeaveRe.test(c)){b=a.toElement}else {if(a.mouseEnterRe.test(c)){b=a.fromElement}}if(b){a.relatedTarget=a.self.resolveTextNode(b)}}return a.callParent([f,d,e])}});document.attachEvent('onkeydown',a);document.attachEvent('onkeyup',b);window.attachEvent('onunload',function(){document.detachEvent('onkeydown',a);document.detachEvent('onkeyup',b)})}else {if(document.addEventListener){document.addEventListener('keydown',a,!0);document.addEventListener('keyup',b,!0)}}});Ext.cmd.derive('Ext.event.publisher.Dom',Ext.event.publisher.Publisher,{type:'dom',handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1,scroll:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var b=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=b.handledDomEvents,f=d.length,c=0,a;for(;cb?1:a1){e=[];for(d=0;d0){b.invokeRecognizers('onTouchMove',a)}}},onTouchEnd:function(b){var a=this;if(!a.isStarted){return}a.updateTouches(b,!0);a.invokeRecognizers(a.isCancelEvent[b.type]?'onTouchCancel':'onTouchEnd',b);if(!a.activeTouches.length){a.isStarted=!1;a.invokeRecognizers('onEnd',b);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else {this.doTargetTouchMove(a)}},doTargetTouchMove:function(a){if(!Ext.getBody().contains(a.target)){this.onTouchMove(new Ext.event.Event(a))}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else {this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var b=this,a=c.target;a.removeEventListener('touchmove',b.onTargetTouchMove);a.removeEventListener('touchend',b.onTargetTouchEnd);a.removeEventListener('touchcancel',b.onTargetTouchEnd);if(!Ext.getBody().contains(a)){b.onTouchEnd(new Ext.event.Event(c))}},updateAsync:function(a){this.handlers=a?this._asyncHandlers:this._handlers},reset:function(){var a=this,d=a.recognizers,e=d.length,b,c;a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.isStarted=!1;for(b=0;b=500){this.run()}},run:function(){this.pending=!1;var i=this.readQueue,h=this.writeQueue,c=null,d;if(this.mode){d=i;if(h.length>0){c=!1}}else {d=h;if(i.length>0){c=!0}}var g=d.slice(),f,j,b,a,e;d.length=0;for(f=0,j=g.length;f2){a.apply(e,b[2])}else {a.call(e)}}g.length=0;if(c!==null){this.request(c)}}},1,0,0,0,0,0,[Ext,'TaskQueue'],0);Ext.cmd.derive('Ext.util.sizemonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:0,height:0,contentWidth:0,contentHeight:0,constructor:function(a){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(a);this.bindListeners(!0)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer);a.addCls('x-size-monitored')},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.offsetWidth},getContentHeight:function(){return this.detectorsContainer.offsetHeight},refreshSize:function(){var b=this.getElement();if(!b||b.destroyed){return !1}var h=b.getWidth(),g=b.getHeight(),d=this.getContentWidth(),c=this.getContentHeight(),j=this.contentWidth,i=this.contentHeight,a=this.info,f=!1,e;this.width=h;this.height=g;this.contentWidth=d;this.contentHeight=c;e=(j!==d?1:0)+(i!==c?2:0);if(e>0){a.width=h;a.height=g;a.contentWidth=d;a.contentHeight=c;a.flag=e;f=!0;this.getCallback().apply(this.getScope(),this.getArgs())}return f},refresh:function(a){if(this.refreshSize()||a){Ext.TaskQueue.requestWrite('refreshMonitors',this)}},destroy:function(){var a=this,b=a.getElement();a.bindListeners(!1);if(b&&!b.destroyed){b.removeCls('x-size-monitored')}delete a._element;a.callParent()}},1,0,0,0,0,[[Ext.mixin.Templatable.prototype.mixinId||Ext.mixin.Templatable.$className,Ext.mixin.Templatable]],[Ext.util.sizemonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.sizemonitor.Scroll',Ext.util.sizemonitor.Abstract,{getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','scroll'],children:[{reference:'expandMonitor',className:'expand'},{reference:'shrinkMonitor',className:'shrink'}]}},constructor:function(a){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a]('scroll',this.onScroll,!0);this.shrinkMonitor[a]('scroll',this.onScroll,!0)},forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this,[!0])},onScroll:function(){Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){var a=this.expandMonitor,b=this.shrinkMonitor,c=1000000;if(a&&!a.destroyed){a.scrollLeft=c;a.scrollTop=c}if(b&&!b.destroyed){b.scrollLeft=c;b.scrollTop=c}}},1,0,0,0,0,0,[Ext.util.sizemonitor,'Scroll'],0);Ext.cmd.derive('Ext.util.sizemonitor.OverflowChange',Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=Ext.Function.bind(this.onExpand,this);this.onShrink=Ext.Function.bind(this.onShrink,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','overflowchanged'],children:[{reference:'expandMonitor',className:'expand',children:[{reference:'expandHelper'}]},{reference:'shrinkMonitor',className:'shrink',children:[{reference:'shrinkHelper'}]}]}},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a](Ext.browser.is.Firefox?'underflow':'overflowchanged',this.onExpand,!0);this.shrinkMonitor[a](Ext.browser.is.Firefox?'overflow':'overflowchanged',this.onShrink,!0)},onExpand:function(a){if(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},onShrink:function(a){if(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){if(this.destroyed){return}var b=this.expandHelper,c=this.shrinkHelper,d=this.getContentBounds(),f=d.width,e=d.height,a;if(b&&!b.destroyed){a=b.style;a.width=f+1+'px';a.height=e+1+'px'}if(c&&!c.destroyed){a=c.style;a.width=f+'px';a.height=e+'px'}Ext.TaskQueue.requestRead('refresh',this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,'OverflowChange'],0);Ext.cmd.derive('Ext.util.SizeMonitor',Ext.Base,{constructor:function(b){var a=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new a.OverflowChange(b)}else {return new a.Scroll(b)}}},1,0,0,0,0,0,[Ext.util,'SizeMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementSize',Ext.event.publisher.Publisher,{type:'size',handledEvents:['resize'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(b){var a=b.id,c=this.subscribers,d=this.monitors;if(c[a]){++c[a]}else {c[a]=1;d[a]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on('painted','forceRefresh',d[a]);return !0},unsubscribe:function(e){var a=e.id,c=this.subscribers,d=this.monitors,b;if(c[a]&&!--c[a]){delete c[a];b=d[a];e.un('painted','forceRefresh',b);b.destroy();delete d[a]}},onElementResize:function(a,b){Ext.TaskQueue.requestRead('fire',this,[a,'resize',[a,b]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementSize'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.util.paintmonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:'',monitorClass:'',constructor:function(a){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?'addEventListener':'removeEventListener'](this.eventName,this.onElementPainted,!0)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:['x-paint-monitor',this.monitorClass]},!0);a.appendChild(this.monitorElement);a.addCls('x-paint-monitored');this.bindListeners(!0)},onElementPainted:function(){},destroy:function(){var a=this,c=a.monitorElement,d=c.parentNode,b=a.getElement();a.bindListeners(!1);delete a.monitorElement;if(b&&!b.destroyed){b.removeCls('x-paint-monitored');delete a._element}if(d){d.removeChild(c)}a.callParent()}},1,0,0,0,0,0,[Ext.util.paintmonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.paintmonitor.CssAnimation',Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.WebKit?'webkitAnimationEnd':'animationend',monitorClass:'cssanimation',onElementPainted:function(a){if(a.animationName==='x-paint-monitor-helper'){this.getCallback().apply(this.getScope(),this.getArgs())}}},0,0,0,0,0,0,[Ext.util.paintmonitor,'CssAnimation'],0);Ext.cmd.derive('Ext.util.PaintMonitor',Ext.Base,{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}},1,0,0,0,0,0,[Ext.util,'PaintMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementPaint',Ext.event.publisher.Publisher,{type:'paint',handledEvents:['painted'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(d){var b=this,a=d.id,c=b.subscribers;if(c[a]){++c[a]}else {c[a]=1;b.monitors[a]=new Ext.util.PaintMonitor({element:d,callback:b.onElementPainted,scope:b,args:[d]})}},unsubscribe:function(d){var a=d.id,b=this.subscribers,c=this.monitors;if(b[a]&&!--b[a]){delete b[a];c[a].destroy();delete c[a]}},onElementPainted:function(a){Ext.TaskQueue.requestRead('fire',this,[a,'painted',[a]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementPaint'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.dom.Element',Ext.Base,function(a){var h=window,b=document,F='ext-window',D='ext-document',w='width',H='height',ac='min-width',_='min-height',ab='max-width',$='max-height',S='top',P='right',ag='bottom',R='left',aa='visibility',M='hidden',G='display',x='none',O='z-index',u='position',ad='relative',N='static',i='-',T=/\w/g,k=/\s+/,V=/[\s]+/,Y=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,U=/table-row|table-.*-group/,Q=/top/i,d={t:'border-top-width',r:'border-right-width',b:'border-bottom-width',l:'border-left-width'},f={t:'padding-top',r:'padding-right',b:'padding-bottom',l:'padding-left'},v={t:'margin-top',r:'margin-right',b:'margin-bottom',l:'margin-left'},Z=[f.l,f.r,f.t,f.b],B=[d.l,d.r,d.t,d.b],ae=/\d+$/,I=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,C='px',af=/(-[a-z])/gi,J=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,t=/^\d+(?:\.\d*)?px$/i,A={},y='originalDisplay',X=function(c,b){return b.charAt(1).toUpperCase()},E=function(d,e){var c,b,f;if(d.nodeType===1){d._extData=null;if(e){c=d.childNodes;for(b=0,f=c.length;bh.innerWidth?'portrait':'landscape'},getViewportHeight:function(){var c=a._viewportHeight;if(Ext.isIE9m){return b.documentElement.clientHeight}return c!=null?c:h.innerHeight},getViewportWidth:function(){var c=a._viewportWidth;if(Ext.isIE9m){return b.documentElement.clientWidth}return c!=null?c:h.innerWidth},getViewSize:function(){return {width:a.getViewportWidth(),height:a.getViewportHeight()}},normalize:function(b){return A[b]||(A[b]=b.replace(af,X))},_onWindowFocusChange:function(b){if(Ext.fly(b.target).is(a.editableSelector)){z=new Date();L=b.type==='focusin'||b.type==='pointerup'}},_onWindowResize:function(){var c=window.innerWidth,b=window.innerHeight,g=new Date(),f=1000,d,e;d=c-a._windowWidth;e=b-a._windowHeight;a._windowWidth=c;a._windowHeight=b;if(g-z=a.minKeyboardHeight){l=!1;K=new Date()}if(l){return}a._viewportWidth=c;a._viewportHeight=b},parseBox:function(c){c=c||0;var e=typeof c,b,d;if(e==='number'){return {top:c,right:c,bottom:c,left:c}}else {if(e!=='string'){return c}}b=c.split(' ');d=b.length;if(d===1){b[1]=b[2]=b[3]=b[0]}else {if(d===2){b[2]=b[0];b[3]=b[1]}else {if(d===3){b[3]=b[1]}}}return {top:parseFloat(b[0])||0,right:parseFloat(b[1])||0,bottom:parseFloat(b[2])||0,left:parseFloat(b[3])||0}},parseStyles:function(c){var d={},b;if(c){J.lastIndex=0;while(b=J.exec(c)){d[b[1]]=b[2]||''}}return d},select:function(d,c,e){return Ext.fly(e||b).select(d,c)},query:function(c,d,e){return Ext.fly(e||b).query(c,d)},unitizeBox:function(b,d){var c=this;b=c.parseBox(b);return c.addUnits(b.top,d)+' '+c.addUnits(b.right,d)+' '+c.addUnits(b.bottom,d)+' '+c.addUnits(b.left,d)},serializeForm:function(l){var m=l.elements||(b.forms[l]||Ext.getDom(l)).elements,n=!1,f=encodeURIComponent,g='',q=m.length,c,h,d,k,o,i,j,p,e;for(i=0;i0||b.scrollLeft!==0){e.push(b);g.push(c.attach(b).getScroll())}}return function(){var d,b,f;for(b=0,f=e.length;b '+d,!!c)},clone:function(c,d){var b=this.dom.cloneNode(c);if(Ext.supports.CloneNodeCopiesExpando){E(b,c)}return d?b:Ext.get(b)},constrainScrollLeft:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollWidth-b.clientWidth),0)},constrainScrollTop:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollHeight-b.clientHeight),0)},createChild:function(b,c,d){b=b||{tag:'div'};if(c){return Ext.DomHelper.insertBefore(c,b,d!==!0)}else {return Ext.DomHelper.append(this.dom,b,d!==!0)}},contains:function(b){if(!b){return !1}var d=this,c=Ext.getDom(b);return c===d.dom||d.isAncestor(c)},destroy:function(){var c=this,b=c.dom;if(b&&b.parentNode){b.parentNode.removeChild(b)}c.collect();if(!c.isFly){c.callParent()}},detach:function(){var b=this.dom;if(b&&b.parentNode&&b.tagName!=='BODY'){b.parentNode.removeChild(b)}return this},disableShadow:function(){var b=this.shadow;if(b){b.hide();b.disabled=!0}},disableShim:function(){var b=this.shim;if(b){b.hide();b.disabled=!0}},disableTouchContextMenu:function(){this._contextMenuListenerRemover=this.on({MSHoldVisual:function(b){b.preventDefault()},destroyable:!0,delegated:!1})},disableTouchScroll:function(){this.addCls(W);this.on({touchmove:function(b){b.preventDefault()},translate:!1})},doReplaceWith:function(c){var b=this.dom;b.parentNode.replaceChild(Ext.getDom(c),b)},doScrollIntoView:function(b,o,d,m,l,n){c=c||new Ext.dom.Fly();var e=this,k=e.dom,i=c.attach(b)[l](),j=b.scrollTop,h=e.getScrollIntoViewXY(b,i,j),f=h.x,g=h.y;if(m){if(d){d=Ext.apply({listeners:{afteranimate:function(){c.attach(k).highlight()}}},d)}else {c.attach(k).highlight()}}if(g!==j){c.attach(b).scrollTo('top',g,d)}if(o!==!1&&f!==i){c.attach(b)[n]('left',f,d)}return e},down:function(c,b){return this.selectNode(c,!!b)},enableShadow:function(f,e){var c=this,b=c.shadow||(c.shadow=new Ext.dom.Shadow(Ext.apply({target:c},f))),d=c.shim;if(d){d.offsets=b.outerOffsets;d.shadow=b;b.shim=d}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},enableShim:function(f,e){var c=this,b=c.shim||(c.shim=new Ext.dom.Shim(Ext.apply({target:c},f))),d=c.shadow;if(d){b.offsets=d.outerOffsets;b.shadow=d;d.shim=b}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},findParent:function(g,d,h){var i=this,c=i.dom,e=b.documentElement,f=0;if(d||d===0){if(typeof d!=='number'){e=Ext.getDom(d);d=Number.MAX_VALUE}}else {d=50}while(c&&c.nodeType===1&&f0&&d<0.5){b++}}}if(e){b-=c.getBorderWidth('tb')+c.getPadding('tb')}return b<0?0:b},getHtml:function(){return this.dom?this.dom.innerHTML:''},getLeft:function(b){return b?this.getLocalX():this.getX()},getLocalX:function(){var d=this,c,b=d.getStyle('left');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getX();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getX()}}}return b},getLocalXY:function(){var e=this,d,f=e.getStyle(['left','top']),b=f.left,c=f.top;if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=e.getX();d=e.dom.offsetParent;if(d){b-=Ext.fly(d).getX()}}}if(!c||c==='auto'){c=0}else {if(t.test(c)){c=parseFloat(c)}else {c=e.getY();d=e.dom.offsetParent;if(d){c-=Ext.fly(d).getY()}}}return [b,c]},getLocalY:function(){var d=this,c,b=d.getStyle('top');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getY();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getY()}}}return b},getMargin:function(){var c={t:'top',l:'left',r:'right',b:'bottom'},b=['margin-top','margin-left','margin-right','margin-bottom'];return function(g){var h=this,e,f,d;if(!g){e=h.getStyle(b);d={};if(e&&typeof e==='object'){d={};for(f in v){d[f]=d[c[f]]=parseFloat(e[v[f]])||0}}}else {d=h.addStyles(g,v)}return d}}(),getPadding:function(b){return this.addStyles(b,f)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(b){return (b?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var h=this,d=h.dom,g=b.documentElement,e,f,c=document.body;if(d===b||d===c){e=g.scrollLeft||(c?c.scrollLeft:0);f=g.scrollTop||(c?c.scrollTop:0)}else {e=d.scrollLeft;f=d.scrollTop}return {left:e,top:f}},getScrollIntoViewXY:function(r,b,c){var p=this.dom,h=Ext.getDom(r),j=this.getOffsetsTo(h),o=p.offsetWidth,m=p.offsetHeight,f=j[0]+b,g=j[1]+c,l=g+m,n=f+o,d=h.clientHeight,e=h.clientWidth,i=b,k=c,q=k+d,s=i+e;if(m>d||gq){c=l-d}}if(o>e||fs){b=n-e}}return {x:b,y:c}},getScrollLeft:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().left}else {return c.scrollLeft}},getScrollTop:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().top}else {return c.scrollTop}},getSize:function(b){return {width:this.getWidth(b),height:this.getHeight(b)}},getStyle:function(n,i){var k=this,e=k.dom,m=typeof n!=='string',p=k.styleHooks,b=n,j=b,q=1,h,o,f,d,g,c,l;if(m){f={};b=j[0];l=0;if(!(q=j.length)){return f}}if(!e||e.documentElement){return f||''}h=e.style;if(i){c=h}else {c=e.ownerDocument.defaultView.getComputedStyle(e,null);if(!c){i=!0;c=h}}do{d=p[b];if(!d){p[b]=d={name:a.normalize(b)}}if(d.get){g=d.get(e,k,i,c)}else {o=d.name;g=c[o]}if(!m){return g}f[b]=g;b=j[++l]}while(l0&&e<0.5){b++}}}if(h){b-=c.getBorderWidth('lr')+c.getPadding('lr')}return b<0?0:b},getX:function(){return this.getXY()[0]},getXY:function(){var h=Math.round,e=this.dom,f=0,g=0,c,d;if(e!==b&&e!==b.body){try{c=e.getBoundingClientRect()}catch(ah){c={left:0,top:0}}f=h(c.left);g=h(c.top);d=Ext.getDoc().getScroll();f+=d.left;g+=d.top}return [f,g]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle('z-index'),10)},hasCls:function(c){var b=this.getData();if(!b.isSynchronized){this.synchronize()}return b.classMap.hasOwnProperty(c)},hide:function(){this.setVisible(!1);return this},insertAfter:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b.nextSibling);return this},insertBefore:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b);return this},insertFirst:function(b,c){b=b||{};if(b.nodeType||b.dom||typeof b==='string'){b=Ext.getDom(b);this.dom.insertBefore(b,this.dom.firstChild);return !c?Ext.get(b):b}else {return this.createChild(b,this.dom.firstChild,c)}},insertHtml:function(d,e,c){var b=Ext.DomHelper.insertHtml(d,this.dom,e);return c?Ext.get(b):b},insertSibling:function(b,k,f){var d=this,j=Ext.DomHelper,h=(k||'before').toLowerCase()==='after',c,g,i,e;if(Ext.isIterable(b)){i=b.length;g=Ext.fly(document.createDocumentFragment());if(Ext.isArray(b)){for(e=0;eb.clientHeight||b.scrollWidth>b.clientWidth},isStyle:function(b,c){return this.getStyle(b)===c},isVisible:function(d){var b=this.dom,c;if(!b){return !1}if(!s){s=new Ext.dom.Fly()}for(c=b.ownerDocument.documentElement;b!==c;b=b.parentNode){if(!b||b.nodeType===11||s.attach(b).isStyle(aa,M)||s.isStyle(G,x)){return !1}if(!d){break}}return !0},last:function(c,b){return this.matchNode('previousSibling','lastChild',c,b)},maskIframes:function(){var b=document.getElementsByTagName('iframe');Ext.each(b,function(c){var b=Ext.fly(c.parentNode),d=b.mask();d.setStyle('background-color','transparent')})},matchNode:function(g,f,c,e){var d=this.dom,b;if(!d){return null}b=d[f];while(b){if(b.nodeType===1&&(!c||Ext.fly(b,'_matchNode').is(c))){return !e?Ext.get(b):b}b=b[g]}return null},next:function(c,b){return this.matchNode('nextSibling','nextSibling',c,b)},parent:function(c,b){return this.matchNode('parentNode','parentNode',c,b)},position:function(c,d,e,f){var b=this;if(b.dom.tagName!=='BODY'){if(!c&&b.isStyle(u,N)){b.setStyle(u,ad)}else {if(c){b.setStyle(u,c)}}if(d){b.setStyle(O,d)}if(e||f){b.setXY([e||!1,f||!1])}}},prev:function(c,b){return this.matchNode('previousSibling','previousSibling',c,b)},query:function(b,e,j){var i=this.dom,g,l,k,h,f,c,d;if(!i){return null}e=e!==!1;b=b.split(',');if(!j){g=[]}for(c=0,l=b.length;c0){b=i.className.split(V);for(c=0,j=b.length;c=':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>=a},'>':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>a},'!=':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!=c},'!==':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!==c},'in':function(b){var a=this._filterValue;return Ext.Array.contains(a,this.getCandidateValue(b,a))},notin:function(b){var a=this._filterValue;return !Ext.Array.contains(a,this.getCandidateValue(b,a))},like:function(b){var a=this._filterValue;return a&&this.getCandidateValue(b,a).toLowerCase().indexOf(a.toLowerCase())>-1}};a['==']=a['='];a.gt=a['>'];a.ge=a['>='];a.lt=a['<'];a.le=a['<='];a.eq=a['='];a.ne=a['!=']});Ext.cmd.derive('Ext.util.Observable',Ext.mixin.Observable,{$applyConfigs:!0},0,0,0,0,0,0,[Ext.util,'Observable'],function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe});Ext.cmd.derive('Ext.util.AbstractMixedCollection',Ext.Base,{isMixedCollection:!0,generation:0,indexGeneration:0,constructor:function(b,c){var a=this;if(arguments.length===1&&Ext.isObject(b)){a.initialConfig=b;Ext.apply(a,b)}else {a.allowFunctions=b===!0;if(c){a.getKey=c}a.initialConfig={allowFunctions:a.allowFunctions,getKey:a.getKey}}a.items=[];a.map={};a.keys=[];a.indexMap={};a.length=0;a.mixins.observable.constructor.call(a)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:!1,add:function(b,d){var c=this.length,a;if(arguments.length===1){a=this.insert(c,b)}else {a=this.insert(c,b,d)}return a},getKey:function(a){return a.id},replace:function(b,c){var a=this,d,e;if(arguments.length==1){c=arguments[0];b=a.getKey(c)}d=a.map[b];if(typeof b=='undefined'||b===null||typeof d=='undefined'){return a.add(b,c)}a.generation++;e=a.indexOfKey(b);a.items[e]=c;a.map[b]=c;if(a.hasListeners.replace){a.fireEvent('replace',b,d,c)}return c},reorder:function(e){var b=this,f=b.items,a=0,h=f.length,c=[],g=[],d;b.suspendEvents();for(d in e){c[e[d]]=f[d]}for(a=0;a-1){g=e[b];delete e[b];delete f[b];e[c]=g;f[c]=d;a.keys[d]=c;a.indexGeneration=++a.generation}},addAll:function(a){var c=this,b;if(arguments.length>1||Ext.isArray(a)){c.insert(c.length,arguments.length>1?arguments:a)}else {for(b in a){if(a.hasOwnProperty(b)){if(c.allowFunctions||typeof a[b]!='function'){c.add(b,a[b])}}}}},each:function(f,e){var c=Ext.Array.push([],this.items),a=0,d=c.length,b;for(;a2){a=this.doInsert(c,[b],[d])}else {a=this.doInsert(c,[b])}a=a[0]}return a},doInsert:function(f,e,d){var b=this,c,i,a,g=e.length,j=g,o=b.hasListeners.add,k,h={},l,n,m;if(d!=null){b.useLinearSearch=!0}else {d=e;e=new Array(g);for(a=0;a=0;--c){a.remove(b[c])}}else {while(a.length){a.removeAt(0)}}}else {a.length=a.items.length=a.keys.length=0;a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}},removeAt:function(b){var a=this,d,c;if(b=0){a.length--;d=a.items[b];Ext.Array.erase(a.items,b,1);c=a.keys[b];if(typeof c!='undefined'){delete a.map[c]}Ext.Array.erase(a.keys,b,1);if(a.hasListeners.remove){a.fireEvent('remove',d,c)}a.generation++;return d}return !1},removeRange:function(c,b){var a=this,i,f,d,e,g,h;if(c=0){if(!b){b=1}e=Math.min(c+b,a.length);b=e-c;h=e===a.length;g=h&&a.indexGeneration===a.generation;for(d=c;d=0;a--){if(c[a]==null){b.removeAt(a)}}}else {return b.removeAt(b.indexOfKey(d))}},getCount:function(){return this.length},indexOf:function(b){var a=this,c;if(b!=null){if(!a.useLinearSearch&&(c=a.getKey(b))){return this.indexOfKey(c)}return Ext.Array.indexOf(a.items,b)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var b=this,d=b.indexMap={},c=b.keys,e=c.length,a;for(a=0;aa){e=!0;g=b;b=a;a=g}if(b<0){b=0}if(a==null||a>=d){a=d-1}c=f.slice(b,a+1);if(e&&c.length){c.reverse()}return c},filter:function(a,e,d,c){var b=[];if(Ext.isString(a)){b.push(new Ext.util.Filter({property:a,value:e,anyMatch:d,caseSensitive:c}))}else {if(Ext.isArray(a)||a instanceof Ext.util.Filter){b=b.concat(a)}}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(h,g){var a=this,c=new a.self(a.initialConfig),e=a.keys,d=a.items,f=d.length,b;c.getKey=a.getKey;for(b=0;bb?1:a0){c.removeRange(b.multiSortLimit,g)};break;case 'prepend':c.insert(0,a);break;case 'append':c.addAll(a);break;case undefined:case null:case 'replace':c.clear();c.addAll(a);break;default:}}if(h!==!1){b.fireEvent('beforesort',b,a);b.onBeforeSort(a);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return a},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(b){if(!Ext.isArray(b)){if(b===undefined){b=[]}else {b=[b]}}var g=b.length,f=Ext.util.Sorter,e=this.getModel?this.getModel():this.model,d,a,c;for(c=0;c>1;c=d(h,f[a]);if(c>=0){b=a+1}else {if(c<0){e=a-1}}}return b},reorder:function(a){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,a);this.fireEvent('sort',this)},sortByKey:function(a,b){this._sort('key',a,b||function(e,f){var c=String(e).toUpperCase(),d=String(f).toUpperCase();return c>d?1:cf){k=f}}}if(c){b.tasks=c}b.firing=!1;if(b.tasks.length){b.startTimer(k-g,Ext.Date.now())}if(j!==!1&&l.hasListeners.idle){l.fireEvent('idle')}},startTimer:function(b,e){var a=this,d=e+b,c=a.timerId;if(c&&a.nextExpires-d>a.interval){clearTimeout(c);c=null}if(!c){if(b=a.duration,b,c;if(h){d=a.duration;e=!0}b=this.collectTargetData(a,d,f,e);if(f){a.target.setAttr(b.anims[a.id].attributes,!0);g.collectTargetData(a,a.duration,f,e);a.paused=!0;b=a.target.target;if(a.target.isComposite){b=a.target.target.last()}c={};c[Ext.supports.CSS3TransitionEnd]=a.lastFrame;c.scope=a;c.single=!0;b.on(c)}return b},jumpToEnd:function(d){var a=this,b,c;if(!a.targetArr){a.targetArr={};c=!0}b=a.runAnim(d,!0);a.applyAnimAttrs(b,b.anims[d.id]);if(c){a.targetArr=null}},collectTargetData:function(a,d,f,e){var c=a.target.getId(),b=this.targetArr[c];if(!b){b=this.targetArr[c]={id:c,el:a.target,anims:{}}}b.anims[a.id]={id:a.id,anim:a,elapsed:d,isLastFrame:e,attributes:[{duration:a.duration,easing:f&&a.reverse?a.easingFn.reverse().toCSS3():a.easing,attrs:a.runAnim(d)}]};return b},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var c=this.targetArr,b,d,a,f,e;for(d in c){if(c.hasOwnProperty(d)){b=c[d];for(e in b.anims){if(b.anims.hasOwnProperty(e)){a=b.anims[e];f=a.anim;if(a.attributes&&f.isRunning()){b.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){f.lastFrame()}}}}}}}},1,0,0,0,0,[['queue',Ext.fx.Queue]],[Ext.fx,'Manager'],0);Ext.cmd.derive('Ext.fx.Animator',Ext.Base,{isAnimator:!0,duration:250,delay:0,delayStart:0,dynamic:!1,easing:'ease',running:!1,paused:!1,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(b){var a=this;b=Ext.apply(a,b||{});a.config=b;a.id=Ext.id(null,'ext-animator-');a.mixins.observable.constructor.call(a,b);a.timeline=[];a.createTimeline(a.keyframes);if(a.target){a.applyAnimator(a.target);Ext.fx.Manager.addAnim(a)}},sorter:function(a,b){return a.pct-b.pct},createTimeline:function(e){var d=this,b=[],k=d.to||{},g=d.duration,h,j,c,i,a,f;for(a in e){if(e.hasOwnProperty(a)&&d.animKeyFramesRE.test(a)){f={attrs:Ext.apply(e[a],k)};if(a==='from'){a=0}else {if(a==='to'){a=100}}f.pct=parseInt(a,10);b.push(f)}}Ext.Array.sort(b,d.sorter);i=b.length;for(c=0;c0},isRunning:function(){return !1}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Animator'],0);Ext.cmd.derive('Ext.fx.CubicBezier',Ext.Base,{singleton:!0,cubicBezierAtTime:function(l,d,e,i,j,h){var a=3*d,b=3*(i-d)-a,f=1-a-b,c=3*e,g=3*(j-e)-c,k=1-c-g;function sampleCurveX(c){return ((f*c+b)*c+a)*c}function solve(f,b){var a=solveCurveX(f,b);return ((k*a+g)*a+c)*a}function solveCurveX(n,q){var g,k,c,m,o,p;for(c=n,p=0;p<8;p++){m=sampleCurveX(c)-n;if(Math.abs(m)k){return k}while(gm){g=c}else {k=c}c=(k-g)/2+g}return c}return solve(l,1/(200*h))},cubicBezier:function(b,d,c,e){var a=function(a){return Ext.fx.CubicBezier.cubicBezierAtTime(a,b,d,c,e,1)};a.toCSS3=function(){return 'cubic-bezier('+[b,d,c,e].join(',')+')'};a.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-c,1-e,1-b,1-d)};return a}},0,0,0,0,0,0,[Ext.fx,'CubicBezier'],0);Ext.cmd.derive('Ext.fx.Easing',Ext.Base,function(){var b=Math,g=b.PI,a=b.pow,f=b.sin,e=b.sqrt,d=b.abs,c=1.70158;return {singleton:!0,linear:Ext.identityFn,ease:function(k){var c=0.07813-k/2,f=e(0.0066+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.25;return a(1-b,2)*3*b*0.1+(1-b)*3*b*b+b*b*b},easeIn:function(b){return a(b,1.7)},easeOut:function(b){return a(b,0.48)},easeInOut:function(k){var c=0.48-k/1.04,f=e(0.1734+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.5;return (1-b)*3*b*b+b*b*b},backIn:function(a){return a*a*((c+1)*a-c)},backOut:function(a){a=a-1;return a*a*((c+1)*a+c)+1},elasticIn:function(b){if(b===0||b===1){return b}var c=0.3,d=c/4;return a(2,-10*b)*f((b-d)*(2*g)/c)+1},elasticOut:function(a){return 1-Ext.fx.Easing.elasticIn(1-a)},bounceIn:function(a){return 1-Ext.fx.Easing.bounceOut(1-a)},bounceOut:function(a){var d=7.5625,b=2.75,c;if(a<1/b){c=d*a*a}else {if(a<2/b){a-=1.5/b;c=d*a*a+0.75}else {if(a<2.5/b){a-=2.25/b;c=d*a*a+0.9375}else {a-=2.625/b;c=d*a*a+0.984375}}}return c}}},0,0,0,0,0,0,[Ext.fx,'Easing'],function(c){var b=c.self,a=b.prototype;b.addMembers({'back-in':a.backIn,'back-out':a.backOut,'ease-in':a.easeIn,'ease-out':a.easeOut,'elastic-in':a.elasticIn,'elastic-out':a.elasticOut,'bounce-in':a.bounceIn,'bounce-out':a.bounceOut,'ease-in-out':a.easeInOut})});Ext.cmd.derive('Ext.fx.DrawPath',Ext.Base,{singleton:!0,pathToStringRE:/,?([achlmqrstvxz]),?/gi,pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,stopsRE:/^(\d+%?)$/,radian:Math.PI/180,is:function(b,a){a=String(a).toLowerCase();return a=='object'&&b===Object(b)||a=='undefined'&&typeof b==a||a=='null'&&b===null||a=='array'&&Array.isArray&&Array.isArray(b)||Object.prototype.toString.call(b).toLowerCase().slice(8,-1)==a},path2string:function(){return this.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},pathToString:function(a){return a.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},parsePathString:function(c){if(!c){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=[],b=this;if(b.is(c,'array')&&b.is(c[0],'array')){a=b.pathClone(c)}if(!a.length){String(c).replace(b.pathCommandRE,function(i,g,h){var e=[],f=g.toLowerCase();h.replace(b.pathValuesRE,function(b,a){if(a){e.push(+a)}});if(f=='m'&&e.length>2){a.push([g].concat(Ext.Array.splice(e,0,2)));f='l';g=g=='m'?'l':'L'}while(e.length>=d[f]){a.push([g].concat(Ext.Array.splice(e,0,d[f])));if(!d[f]){break}}})}a.toString=b.path2string;return a},pathClone:function(a){var d=[],c,f,b,e;if(!this.is(a,'array')||!this.is(a&&a[0],'array')){a=this.parsePathString(a)}for(b=0,e=a.length;b7){a[d].shift();var e=a[d];while(e.length){Ext.Array.splice(a,d++,0,['C'].concat(Ext.Array.splice(e,0,6)))}Ext.Array.erase(a,d,1);j=Math.max(c.length,b.length||0)}},m=function(d,f,e,g,a){if(d&&f&&d[a][0]=='M'&&f[a][0]!='M'){Ext.Array.splice(f,a,0,['M',g.x,g.y]);e.bx=0;e.by=0;e.x=d[a][1];e.y=d[a][2];j=Math.max(c.length,b.length||0)}},a,j,g,f,i,h;for(a=0,j=Math.max(c.length,b.length||0);a1){u=N(u);d=u*d;c=u*c}x=d*d;y=c*c;I=(X==v?-1:1)*N(R((x*y-x*j*j-y*i*i)/(x*j*j+y*i*i)));q=I*d*j/c+(m+e)/2;r=I*-c*i/d+(n+f)/2;b=M(((n-r)/c).toFixed(7));a=M(((f-r)/c).toFixed(7));b=ma){b=b-k*2}if(!v&&a>b){a=a-k*2}}else {b=o[0];a=o[1];q=o[2];r=o[3]}z=a-b;if(R(z)>Q){L=a;O=e;P=f;a=b+Q*(v&&a>b?1:-1);e=q+d*B(a);f=r+c*C(a);g=s.arc2curve(e,f,d,c,K,0,v,O,P,[a,L,q,r])}z=a-b;S=B(b);V=C(b);T=B(a);W=C(a);J=p.tan(z/4);D=4/3*d*J;E=4/3*c*J;F=[m,n];l=[m+D*V,n-E*S];G=[e+D*W,f-E*T];H=[e,f];l[0]=2*F[0]-l[0];l[1]=2*F[1]-l[1];if(o){return [l,G,H].concat(g)}else {g=[l,G,H].concat(g).join().split(',');A=[];U=g.length;for(h=0;h=d){b=d;f=!0}if(a.reverse){b=d-b}for(c in e){if(e.hasOwnProperty(c)){h=e[c];g=f?1:k(b/d);i[c]=j[c].set(h,g)}}a.frameCount++;return i},lastFrame:function(){var a=this,c=a.iterations,b=a.currentIteration;b++;if(b0},isRunning:function(){return this.paused===!1&&this.running===!0&&this.isAnimator!==!0}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Anim'],0);Ext.enableFx=!0;Ext.cmd.derive('Ext.util.Animate',Ext.Base,{mixinId:'animate',isAnimate:!0,animate:function(b){var a=this;if(Ext.fx.Manager.hasFxBlock(a.id)){return a}Ext.fx.Manager.queueFx(new Ext.fx.Anim(a.anim(b)));return this},anim:function(a){if(!Ext.isObject(a)){return a?{}:!1}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:!0},a)},getAnimationProps:function(){var b=this,a=b.layout;return a&&a.animate?a.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,'stopAnimation'),stopAnimation:function(){Ext.fx.Manager.stopAnimation(this.id);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!0});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!1});return this},hasActiveFx:Ext.Function.alias(Ext.util.Animate,'getActiveAnimation'),getActiveAnimation:function(){return Ext.fx.Manager.getActiveAnimation(this.id)}},0,0,0,0,0,0,[Ext.util,'Animate'],0);Ext.cmd.derive('Ext.dom.Fly',Ext.dom.Element,{alternateClassName:'Ext.dom.Element.Fly',validNodeTypes:{1:1,9:1,11:1},isFly:!0,constructor:function(a){this.dom=a;this.el=this},attach:function(b){var a=this;if(!b){return a.detach()}a.dom=b;if(!Ext.cache[b.id]){a.getData().isSynchronized=!1}return a},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,'Fly',Ext.dom.Element,'Fly'],function(b){var a={};b.cache=a;Ext.fly=function(c,e){var d=null,h=Ext.fly,f,g;e=e||h.caller&&h.caller.$name||'_global';c=Ext.getDom(c);if(c){f=c.nodeType;if(b.prototype.validNodeTypes[f]||!f&&c.window==c){d=Ext.cache[c.id];if(!d||d.dom!==c){d=a[e]||(a[e]=new b());d.dom=c;g=d.getData(!0);if(g){g.isSynchronized=!1}}}}return d}});Ext.cmd.derive('Ext.dom.CompositeElementLite',Ext.Base,{alternateClassName:['Ext.CompositeElementLite'],isComposite:!0,isLite:!0,statics:{importElementMethods:function(){var b=Ext.dom.Element,a=this.prototype;Ext.Object.each(b.prototype,function(b,c){if(typeof c==='function'&&!a[b]){a[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(a,b){if(b){this.elements=a||[]}else {this.elements=[];this.add(a)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(a,e){var d=this.elements,b,c;if(!a){return this}if(typeof a=='string'){a=Ext.fly(e||document).query(a)}else {if(a.isComposite){a=a.elements}else {if(!Ext.isIterable(a)){a=[a]}}}for(b=0,c=a.length;b-1){a=Ext.getDom(a);if(e){b=this.elements[c];b.parentNode.insertBefore(a,b);Ext.removeNode(b)}Ext.Array.splice(this.elements,c,1,a)}return this},clear:function(c){var d=this,b=d.elements,a=b.length-1;if(c){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(a,d){if(!a){return this}if(typeof a==='string'){a=Ext.dom.Element.selectorFunction(a,d)}var e=this.elements,c=a.length,b;for(b=0;b','','','',''].join(''),O=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,J=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,G=/\ssrc=([\'\"])(.*?)\1/i,v=/\S/,E=/\stype=([\'\"])(.*?)\1/i,I=/^-ms-/,B=/(-[a-z])/gi,L=function(b,a){return a.charAt(1).toUpperCase()},r='x-masked',k='x-masked-relative',m='x-mask-msg',D=/^body/i,l={},u=function(d){var c=d.getData(),b=c[q];if(b===undefined){c[q]=b=a.VISIBILITY}return b},f=b.createRange?b.createRange():null,z={INPUT:!0,TEXTAREA:!0};if(Ext.isIE8){var p=b.createElement('div'),c=[],M=Ext.Function.createBuffered(function(){var b=c.length,a;for(a=0;a"+Ext.String.format(y,a)+''));b.selectNode('.'+a+'-mc').appendChild(this.dom);return b},clean:function(g){var c=this,d=c.dom,e=c.getData(),a=d.firstChild,f=-1,b;if(e.isCleaned&&g!==!0){return c}while(a){b=a.nextSibling;if(a.nodeType===3){if(!v.test(a.nodeValue)){d.removeChild(a)}else {if(b&&b.nodeType===3){a.appendData(Ext.String.trim(b.data));d.removeChild(b);b=a.nextSibling;a.nodeIndex=++f}}}else {Ext.fly(a,'_clean').clean();a.nodeIndex=++f}a=b}e.isCleaned=!0;return c},empty:f?function(){var a=this.dom;if(a.firstChild){f.setStartBefore(a.firstChild);f.setEndAfter(a.lastChild);f.deleteContents()}}:function(){var a=this.dom;while(a.lastChild){a.removeChild(a.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(a){a=a||'';return this.setStyle({left:a,right:a,top:a,bottom:a,'z-index':'',position:'static'})},createProxy:function(b,e,f){b=typeof b==='object'?b:{tag:'div',role:'presentation',cls:b};var d=this,c=e?Ext.DomHelper.append(e,b,!0):Ext.DomHelper.insertBefore(d.dom,b,!0);c.setVisibilityMode(a.DISPLAY);c.hide();if(f&&d.setBox&&d.getBox){c.setBox(d.getBox())}return c},clearOpacity:function(){return this.setOpacity('')},clip:function(){var a=this,c=a.getData(),b;if(!c[g]){c[g]=!0;b=a.getStyle([j,h,i]);c[n]={o:b[j],x:b[h],y:b[i]};a.setStyle(j,e);a.setStyle(h,e);a.setStyle(i,e)}return a},destroy:function(){var b=this,a=b.dom,f=b.getData(),e,d;if(a&&b.isAnimate){b.stopAnimation()}arguments.callee.$previous.call(this);if(a&&Ext.isIE8&&a.window!=a&&a.nodeType!==9&&a.tagName!=='BODY'&&a.tagName!=='HTML'){c[c.length]=a;M()}if(f){e=f.maskEl;d=f.maskMsg;if(e){e.destroy()}if(d){d.destroy()}}},enableDisplayMode:function(c){var b=this;b.setVisibilityMode(a.DISPLAY);if(c!==undefined){b.getData()[K]=c}return b},fadeIn:function(c){var a=this,b=a.dom;a.animate(Ext.apply({},c,{opacity:1,internalListeners:{beforeanimate:function(d){var a=Ext.fly(b,'_anim');if(a.isStyle('display','none')){a.setDisplayed('')}else {a.show()}}}}));return this},fadeOut:function(a){var b=this,c=b.dom;a=Ext.apply({opacity:0,internalListeners:{afteranimate:function(d){if(c&&d.to.opacity===0){var b=Ext.fly(c,'_anim');if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}}}}},a);b.animate(a);return b},fixDisplay:function(){var a=this;if(a.isStyle(d,s)){a.setStyle(o,e);a.setStyle(d,a._getDisplay());if(a.isStyle(d,s)){a.setStyle(d,'block')}}},frame:function(b,c,a){var d=this,f=d.dom,e;b=b||'#C3DAF9';c=c||1;a=a||{};e=function(){var g=Ext.fly(f,'_anim'),i=this,d,e,h;g.show();d=g.getBox();e=Ext.getBody().createChild({role:'presentation',id:g.dom.id+'-anim-proxy',style:{position:'absolute','pointer-events':'none','z-index':35000,border:'0px solid '+b}});h=new Ext.fx.Anim({target:e,duration:a.duration||1000,iterations:c,from:{top:d.y,left:d.x,borderWidth:0,opacity:1,height:d.height,width:d.width},to:{top:d.y-20,left:d.x-20,borderWidth:10,opacity:0,height:d.height+40,width:d.width+40}});h.on('afteranimate',function(){e.destroy();i.end()})};d.animate({duration:Math.max(a.duration,500)*2||2000,listeners:{beforeanimate:{fn:e}},callback:a.callback,scope:a.scope});return d},getColor:function(h,f,c){var a=this.getStyle(h),b=c||c===''?c:'#',d,g,e=0;if(!a||/transparent|inherit/.test(a)){return f}if(/^r/.test(a)){a=a.slice(4,a.length-1).split(',');g=a.length;for(;e5?b.toLowerCase():f},getLoader:function(){var c=this,b=c.getData(),a=b.loader;if(!a){b.loader=a=new Ext.ElementLoader({target:c})}return a},getPositioning:function(c){var a=this.getStyle(['left','top','position','z-index']),b=this.dom;if(c){if(a.left==='auto'){a.left=b.offsetLeft+'px'}if(a.top==='auto'){a.top=b.offsetTop+'px'}}return a},ghost:function(a,e){var b=this,d=b.dom,c;a=a||'b';c=function(){var h=Ext.fly(d,'_anim'),g=h.getWidth(),f=h.getHeight(),c=h.getXY(),i=h.getPositioning(),b={opacity:0};switch(a){case 't':b.y=c[1]-f;break;case 'l':b.x=c[0]-g;break;case 'r':b.x=c[0]+g;break;case 'b':b.y=c[1]+f;break;case 'tl':b.x=c[0]-g;b.y=c[1]-f;break;case 'bl':b.x=c[0]-g;b.y=c[1]+f;break;case 'br':b.x=c[0]+g;b.y=c[1]+f;break;case 'tr':b.x=c[0]+g;b.y=c[1]-f;break;}this.to=b;this.on('afteranimate',function(){var b=Ext.fly(d,'_anim');if(b){b.hide();b.clearOpacity();b.setPositioning(i)}})};b.animate(Ext.applyIf(e||{},{duration:500,easing:'ease-out',listeners:{beforeanimate:c}}));return b},hide:function(a){if(typeof a==='string'){this.setVisible(!1,a);return this}this.setVisible(!1,this.anim(a));return this},highlight:function(k,b){var g=this,e=g.dom,j={},i,h,c,d,a,f;b=b||{};d=b.listeners||{};c=b.attr||'backgroundColor';j[c]=k||'ffff9c';if(!b.to){h={};h[c]=b.endColor||g.getColor(c,'ffffff','')}else {h=b.to}b.listeners=Ext.apply(Ext.apply({},d),{beforeanimate:function(){i=e.style[c];var g=Ext.fly(e,'_anim');g.clearOpacity();g.show();a=d.beforeanimate;if(a){f=a.fn||a;return f.apply(a.scope||d.scope||t,arguments)}},afteranimate:function(){if(e){e.style[c]=i}a=d.afteranimate;if(a){f=a.fn||a;f.apply(a.scope||d.scope||t,arguments)}}});g.animate(Ext.apply({},b,{duration:1000,easing:'ease-in',from:j,to:h}));return g},hover:function(d,e,c,b){var a=this;a.on('mouseenter',d,c||a.dom,b);a.on('mouseleave',e,c||a.dom,b);return a},initDD:function(c,b,a){var d=new Ext.dd.DD(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDProxy:function(c,b,a){var d=new Ext.dd.DDProxy(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDTarget:function(c,b,a){var d=new Ext.dd.DDTarget(Ext.id(this.dom),c,b);return Ext.apply(d,a)},isFocusable:function(){var a=this.dom,b=!1,c;if(a&&!a.disabled){c=a.nodeName;b=!!Ext.Element.naturallyFocusableTags[c]||(c==='A'||c==='LINK')&&!!a.href||a.getAttribute('tabIndex')!=null||a.contentEditable==='true';if(Ext.isIE8&&c==='INPUT'&&a.type==='hidden'){b=!1}b=b&&this.isVisible(!0)}return b},isInputField:function(){var a=this.dom,b=a.contentEditable;if(z[a.tagName]&&a.type!=='button'||(b===''||b==='true')){return !0}return !1},isTabbable:function(f){var c=this.dom,a=!1,e,d,b;if(c&&!c.disabled){e=c.nodeName;b=c.getAttribute('tabIndex');d=b!=null;b-=0;if(e==='A'||e==='LINK'){if(c.href){a=d&&b<0?!1:!0}else {if(c.contentEditable==='true'){a=!d||d&&b>=0?!0:!1}else {a=d&&b>=0?!0:!1}}}else {if(c.contentEditable==='true'||Ext.Element.naturallyTabbableTags[e]){a=d&&b<0?!1:!0}else {if(d&&b>=0){a=!0}}}if(Ext.isIE8&&e==='INPUT'&&c.type==='hidden'){a=!1}a=a&&(f||(!this.component||this.component.isVisible(!0))&&this.isVisible(!0))}return a},isMasked:function(g){var b=this,f=b.getData(),e=f.maskEl,d=f.maskMsg,c=!1,a;if(e&&e.isVisible()){if(d){d.center(b)}c=!0}else {if(g){a=b.findParentNode();if(a){return Ext.fly(a).isMasked(g)}}}return c},load:function(a){this.getLoader().load(a);return this},mask:function(h,f,i){var c=this,d=c.dom,g=c.getData(),a=g.maskEl,e;if(!(D.test(d.tagName)&&c.getStyle('position')==='static')){c.addCls(k)}if(a){a.destroy()}a=Ext.DomHelper.append(d,{role:'presentation',cls:'x-mask x-border-box',children:{role:'presentation',cls:f?m+' '+f:m,cn:{tag:'div',role:'presentation',cls:'x-mask-msg-inner',cn:{tag:'div',role:'presentation',cls:'x-mask-msg-text',html:h||''}}}},!0);e=Ext.get(a.dom.firstChild);g.maskEl=a;c.addCls(r);a.setDisplayed(!0);if(typeof h==='string'){e.setDisplayed(!0);e.center(c)}else {e.setDisplayed(!1)}if(d===b.body){a.addCls('x-mask-fixed')}c.saveTabbableState({skipSelf:d===b.body});if(Ext.isIE9m&&d!==b.body&&c.isStyle('height','auto')){a.setSize(undefined,i||c.getHeight())}return a},monitorMouseLeave:function(e,d,f){var c=this,b,a={mouseleave:function(a){if(Ext.isIE9m){a.enableIEAsync()}b=Ext.defer(d,e,f||c,[a])},mouseenter:function(){clearTimeout(b)}};c.on(a);return a},puff:function(a){var c=this,e=c.dom,d,b=c.getBox(),f=c.getStyle(['width','height','left','right','top','bottom','position','z-index','font-size','opacity'],!0);a=Ext.applyIf(a||{},{easing:'ease-out',duration:500,useDisplay:!1});d=function(){var c=Ext.fly(e,'_anim');c.clearOpacity();c.show();this.to={width:b.width*2,height:b.height*2,x:b.x-b.width/2,y:b.y-b.height/2,opacity:0,fontSize:'200%'};this.on('afteranimate',function(){var b=Ext.fly(e,'_anim');if(b){if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}b.setStyle(f);Ext.callback(a.callback,a.scope)}})};c.animate({duration:a.duration,easing:a.easing,listeners:{beforeanimate:{fn:d}}});return c},selectable:function(){var b=this;b.dom.unselectable='';b.removeCls(a.unselectableCls);b.addCls(a.selectableCls);return b},setCapture:function(){var a=this.dom;if(Ext.isIE9m&&a.setCapture){a.setCapture()}},setHeight:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{height:c}},a))}return b},setHorizontal:function(){var a=this,b=a.verticalCls;delete a.vertical;if(b){delete a.verticalCls;a.removeCls(b)}delete a.setWidth;delete a.setHeight;if(!Ext.isIE8){delete a.getWidth;delete a.getHeight}delete a.styleHooks},updateText:function(d){var e=this,c,a;if(c){a=c.firstChild;if(!a||(a.nodeType!==3||a.nextSibling)){a=b.createTextNode();e.empty();c.appendChild(a)}if(d){a.data=d}}},setHtml:function(c,i,g,d){var a=this,f,e,h;if(!a.dom){return a}c=c||'';e=a.dom;if(i!==!0){e.innerHTML=c;Ext.callback(g,a);return a}f=Ext.id();c+='';h=Ext.interval(function(){var o,e,l,k,j,n,m;if(!(n=b.getElementById(f))){return !1}clearInterval(h);Ext.removeNode(n);o=Ext.getHead().dom;while(e=O.exec(c)){l=e[1];k=l?l.match(G):!1;if(k&&k[2]){m=b.createElement('script');m.src=k[2];j=l.match(E);if(j&&j[2]){m.type=j[2]}o.appendChild(m)}else {if(e[2]&&e[2].length>0){if(d){Ext.functionFactory(e[2]).call(d)}else {Ext.globalEval(e[2])}}}}Ext.callback(g,d||a)},20);e.innerHTML=c.replace(J,'');return a},setOpacity:function(c,b){var a=this;if(!a.dom){return a}if(!b||!a.anim){a.setStyle('opacity',c)}else {if(typeof b!='object'){b={duration:350,easing:'ease-in'}}a.animate(Ext.applyIf({to:{opacity:c}},b))}return a},setPositioning:function(a){return this.setStyle(a)},setVertical:function(e,d){var b=this,c=a.prototype;b.vertical=!0;if(d){b.addCls(b.verticalCls=d)}b.setWidth=c.setHeight;b.setHeight=c.setWidth;if(!Ext.isIE8){b.getWidth=c.getHeight;b.getHeight=c.getWidth}b.styleHooks=e===270?c.verticalStyleHooks270:c.verticalStyleHooks90},setSize:function(c,e,d){var b=this;if(Ext.isObject(c)){d=e;e=c.height;c=c.width}if(!d||!b.anim){b.dom.style.width=a.addUnits(c);b.dom.style.height=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}}else {if(d===!0){d={}}b.animate(Ext.applyIf({to:{width:c,height:e}},d))}return b},setVisible:function(f,g){var b=this,h=b.dom,c=u(b);if(typeof g==='string'){switch(g){case d:c=a.DISPLAY;break;case o:c=a.VISIBILITY;break;case A:c=a.OFFSETS;break;case H:c=a.CLIP;break;}b.setVisibilityMode(c);g=!1}if(!g||!b.anim){if(c===a.DISPLAY){return b.setDisplayed(f)}else {if(c===a.OFFSETS){b[f?'removeCls':'addCls'](N)}else {if(c===a.CLIP){b[f?'removeCls':'addCls'](w)}else {if(c===a.VISIBILITY){b.fixDisplay();h.style.visibility=f?'':e}}}}}else {if(f){b.setOpacity(0.01);b.setVisible(!0)}if(!Ext.isObject(g)){g={duration:350,easing:'ease-in'}}b.animate(Ext.applyIf({callback:function(){if(!f){Ext.fly(h).setVisible(!1).setOpacity(1)}},to:{opacity:f?1:0}},g))}b.getData()[x]=f;if(b.shadow||b.shim){b.setUnderlaysVisible(f)}return b},setWidth:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{width:c}},a))}return b},setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(b,a){var c=this;if(!a||!c.anim){arguments.callee.$previous.call(this,b)}else {if(!Ext.isObject(a)){a={}}c.animate(Ext.applyIf({to:{x:b[0],y:b[1]}},a))}return this},setY:function(b,a){return this.setXY([this.getX(),b],a)},show:function(a){if(typeof a==='string'){this.setVisible(!0,a);return this}this.setVisible(!0,this.anim(a));return this},slideIn:function(a,c,d){var b=this,g=b.dom,h=g.style,j,e,f,i;a=a||'t';c=c||{};j=function(){var p=this,o=c.listeners,m=Ext.fly(g,'_anim'),j,n,l,k;if(!d){m.fixDisplay()}j=m.getBox();if((a=='t'||a=='b')&&j.height===0){j.height=g.scrollHeight}else {if((a=='l'||a=='r')&&j.width===0){j.width=g.scrollWidth}}n=m.getStyle(['width','height','left','right','top','bottom','position','z-index'],!0);m.setSize(j.width,j.height);if(c.preserveScroll){f=m.cacheScrollValues()}k=m.wrap({role:'presentation',id:Ext.id()+'-anim-wrap-for-'+m.dom.id,style:{visibility:d?'visible':'hidden'}});i=k.dom.parentNode;k.setPositioning(m.getPositioning());if(k.isStyle('position','static')){k.position('relative')}m.clearPositioning('auto');k.clip();if(f){f()}m.setStyle({visibility:'',position:'absolute'});if(d){k.setSize(j.width,j.height)}switch(a){case 't':l={from:{width:j.width+'px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';break;case 'l':l={from:{width:'0px',height:j.height+'px'},to:{width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'r':l={from:{x:j.x+j.width,width:'0px',height:j.height+'px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'b':l={from:{y:j.y+j.height,width:j.width+'px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};break;case 'tl':l={from:{x:j.x,y:j.y,width:'0px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('l');break;case 'bl':l={from:{y:j.y+j.height,width:'0px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('l');break;case 'br':l={from:{x:j.x+j.width,y:j.y+j.height,width:'0px',height:'0px'},to:{x:j.x,y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('r');break;case 'tr':l={from:{x:j.x+j.width,width:'0px',height:'0px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('r');break;}k.show();e=Ext.apply({},c);delete e.listeners;e=new Ext.fx.Anim(Ext.applyIf(e,{target:k,duration:500,easing:'ease-out',from:d?l.to:l.from,to:d?l.from:l.to}));e.on('afteranimate',function(){var b=Ext.fly(g,'_anim');b.setStyle(n);if(d){if(c.useDisplay){b.setDisplayed(!1)}else {b.hide()}}if(k.dom){if(k.dom.parentNode){k.dom.parentNode.insertBefore(b.dom,k.dom)}else {i.appendChild(b.dom)}k.destroy()}if(f){f()}p.end()});if(o){e.on(o)}};b.animate({duration:c.duration?Math.max(c.duration,500)*2:1000,listeners:{beforeanimate:j}});return b},slideOut:function(a,b){return this.slideIn(a,b,!0)},swallowEvent:function(a,f){var b=this,c,d,e=function(b){b.stopPropagation();if(f){b.preventDefault()}};if(Ext.isArray(a)){d=a.length;for(c=0;c0){a.setAttribute(e,++f)}else {if(a.hasAttribute('tabIndex')){a.setAttribute(g,a.getAttribute('tabIndex'))}else {a.setAttribute(g,'none')}a.setAttribute('tabIndex','-1');a.setAttribute(e,'1')}}return c},restoreTabbableState:function(k,j){var g=this.dom,c=Ext.Element.tabbableSavedCounterAttribute,e=Ext.Element.tabbableSavedValueAttribute,b=[],h,f,b,a,d,i;if(!g){return this}if(!j){b=Ext.Array.from(g.querySelectorAll('['+c+']'))}if(!k){b.unshift(g)}for(d=0,i=b.length;d1){a.setAttribute(c,--f);continue}h=a.getAttribute(e);if(h==='none'){a.removeAttribute('tabIndex')}else {a.setAttribute('tabIndex',h)}a.removeAttribute(e);a.removeAttribute(c)}return b}},deprecated:{'4.0':{methods:{pause:function(b){var a=this;Ext.fx.Manager.setFxDefaults(a.id,{delay:b});return a},scale:function(c,a,b){this.animate(Ext.apply({},b,{width:c,height:a}));return this},shift:function(a){this.animate(a);return this}}},'4.2':{methods:{moveTo:function(b,c,a){return this.setXY([b,c],a)},setBounds:function(d,e,c,b,a){return this.setBox({x:d,y:e,width:c,height:b},a)},setLeftTop:function(d,e){var b=this,c=b.dom.style;c.left=a.addUnits(d);c.top=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocation:function(b,c,a){return this.setXY([b,c],a)}}},'5.0':{methods:{getAttributeNS:function(a,b){return this.getAttribute(b,a)},getCenterXY:function(){return this.getAlignToXY(b,'c-c')},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(C))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(F))||0},getStyleSize:function(){var d=this,e=this.dom,h=e===b||e===b.body,c,g,f;if(h){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}c=d.getStyle(['height','width'],!0);if(c.width&&c.width!=='auto'){g=parseFloat(c.width)}if(c.height&&c.height!=='auto'){f=parseFloat(c.height)}return {width:g||d.getWidth(!0),height:f||d.getHeight(!0)}},isBorderBox:function(){return !0},isDisplayed:function(){return !this.isStyle('display','none')},focusable:'isFocusable'}}}}}(),function(){var g=Ext.dom.Element,a=g.prototype,t=!Ext.isIE8,f=document,q=f.defaultView,p=/alpha\(opacity=(.*)\)/i,w=/^\s+|\s+$/g,d=a.styleHooks,e=Ext.supports,c,b,l,m,i,j,n;a._init(g);delete a._init;Ext.plainTableCls='x-table-plain';Ext.plainListCls='x-list-plain';if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!e.Opacity&&Ext.isIE){Ext.apply(d.opacity,{get:function(d){var c=d.style.filter,b,a;if(c.match){b=c.match(p);if(b){a=parseFloat(b[1]);if(!isNaN(a)){return a?a/100:0}}}return 1},set:function(d,a){var b=d.style,c=b.filter.replace(p,'').replace(w,'');b.zoom=1;if(typeof a==='number'&&a>=0&&a<1){a*=100;b.filter=c+(c.length?' ':'')+'alpha(opacity='+a+')'}else {b.filter=c}}})}if(!e.matchesSelector){var r=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,v=/\-/g,h,s=function(a,c){var b=new RegExp('(?:^|\\s+)'+c.replace(v,'\\-')+'(?:\\s+|$)');if(a&&a!=='*'){a=a.toUpperCase();return function(d){return d.tagName===a&&b.test(d.className)}}return function(d){return b.test(d.className)}},u=function(a){a=a.toUpperCase();return function(b){return b.tagName===a}},k={};a.matcherCache=k;a.is=function(a){if(!a){return !0}var b=this.dom,g,e,d,c,j,l,i;if(b.nodeType!==1){return !1}if(!(d=Ext.isFunction(a)?a:k[a])){if(!(e=a.match(r))){c=b.parentNode;if(!c){j=!0;c=h||(h=f.createDocumentFragment());h.appendChild(b)}l=Ext.Array.indexOf(Ext.fly(c,'_is').query(a),b)!==-1;if(j){h.removeChild(b)}return l}i=e[1];g=e[2];k[a]=d=g?s(i,g):u(i)}return d(b)}}if(!q||!q.getComputedStyle){a.getStyle=function(o,p){var j=this,e=j.dom,n=typeof o!=='string',a=o,i=a,r=1,m=p,l=j.styleHooks,q,h,d,c,f,b,k;if(n){d={};a=i[0];k=0;if(!(r=i.length)){return d}}if(!e||e.documentElement){return d||''}h=e.style;if(p){b=h}else {b=e.currentStyle;if(!b){m=!0;b=h}}do{c=l[a];if(!c){l[a]=c={name:g.normalize(a)}}if(c.get){f=c.get(e,j,m,b)}else {q=c.name;f=b[q]}if(!n){return f}d[a]=f;a=i[++k]}while(k=9)){a.getAttribute=function(a,c){var d=this.dom,b;if(c){b=typeof d[c+':'+a];if(b!=='undefined'&&b!=='unknown'){return d[c+':'+a]||null}return null}if(a==='for'){a='htmlFor'}return d[a]||null}}Ext.onInternalReady(function(){var o=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,h=[],p=a.setWidth,n=a.setHeight,m=a.setSize,q=/^\d+(?:\.\d*)?px$/i,i,l,k,j;if(e.FixedTableWidthBug){d.width={name:'width',set:function(c,e,f){var a=c.style,b=f._needsTableWidthFix,d=a.display;if(b){a.display='none'}a.width=e;if(b){c.scrollWidth;a.display=d}}};a.setWidth=function(g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}p.call(a,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a};a.setSize=function(h,g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}m.call(a,h,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a}}if(Ext.isIE8){d.height={name:'height',set:function(f,b,e){var a=e.component,d,c;if(a&&a._syncFrameHeight&&e===a.el){c=a.frameBody.dom.style;if(q.test(b)){d=a.getFrameInfo();if(d){c.height=parseInt(b,10)-d.height+'px'}}else {if(!b||b==='auto'){c.height=''}}}f.style.height=b}};a.setHeight=function(b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return n.call(this,b,e)};a.setSize=function(f,b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return m.call(this,f,b,e)}}Ext.getDoc().on('selectstart',function(h,a){var e=g.selectableCls,d=g.unselectableCls,b=a&&a.tagName;b=b&&b.toLowerCase();if(b==='input'||b==='textarea'){return}while(a&&a.nodeType===1&&a!==f.documentElement){var c=Ext.fly(a);if(c.hasCls(e)){return}if(c.hasCls(d)){h.stopEvent();return}a=a.parentNode}});function fixTransparent(d,e,c,b){var a=b[this.name]||'';return o.test(a)?'transparent':a}function makeSelectionRestoreFn(a,b,c){return function(){a.selectionStart=b;a.selectionEnd=c}}function getRightMarginFixCleaner(i){var h=e.DisplayChangeInputSelectionBug,f=e.DisplayChangeTextAreaSelectionBug,a,d,b,c;if(h||f){a=g.getActiveElement();d=a&&a.tagName;if(f&&d==='TEXTAREA'||h&&d==='INPUT'&&a.type==='text'){if(Ext.fly(i).isAncestor(a)){b=a.selectionStart;c=a.selectionEnd;if(Ext.isNumber(b)&&Ext.isNumber(c)){return makeSelectionRestoreFn(a,b,c)}}}}return Ext.emptyFn}function fixRightMargin(c,g,f,e){var b=e.marginRight,a,d;if(b!=='0px'){a=c.style;d=a.display;a.display='inline-block';b=(f?e:c.ownerDocument.defaultView.getComputedStyle(c,null)).marginRight;a.display=d}return b}function fixRightMarginAndInputFocus(b,h,g,f){var c=f.marginRight,a,d,e;if(c!=='0px'){a=b.style;d=getRightMarginFixCleaner(b);e=a.display;a.display='inline-block';c=(g?f:b.ownerDocument.defaultView.getComputedStyle(b,'')).marginRight;a.display=e;d()}return c}if(!e.RightMargin){d.marginRight=d['margin-right']={name:'marginRight',get:e.DisplayChangeInputSelectionBug||e.DisplayChangeTextAreaSelectionBug?fixRightMarginAndInputFocus:fixRightMargin}}if(!e.TransparentColor){i=['background-color','border-color','color','outline-color'];for(l=i.length;l--;){k=i[l];j=g.normalize(k);d[k]=d[j]={name:j,get:fixTransparent}}}a.verticalStyleHooks90=c=Ext.Object.chain(d);a.verticalStyleHooks270=b=Ext.Object.chain(d);c.width=d.height||{name:'height'};c.height=d.width||{name:'width'};c['margin-top']={name:'marginLeft'};c['margin-right']={name:'marginTop'};c['margin-bottom']={name:'marginRight'};c['margin-left']={name:'marginBottom'};c['padding-top']={name:'paddingLeft'};c['padding-right']={name:'paddingTop'};c['padding-bottom']={name:'paddingRight'};c['padding-left']={name:'paddingBottom'};c['border-top']={name:'borderLeft'};c['border-right']={name:'borderTop'};c['border-bottom']={name:'borderRight'};c['border-left']={name:'borderBottom'};b.width=d.height||{name:'height'};b.height=d.width||{name:'width'};b['margin-top']={name:'marginRight'};b['margin-right']={name:'marginBottom'};b['margin-bottom']={name:'marginLeft'};b['margin-left']={name:'marginTop'};b['padding-top']={name:'paddingRight'};b['padding-right']={name:'paddingBottom'};b['padding-bottom']={name:'paddingLeft'};b['padding-left']={name:'paddingTop'};b['border-top']={name:'borderRight'};b['border-right']={name:'borderBottom'};b['border-bottom']={name:'borderLeft'};b['border-left']={name:'borderTop'};if(!Ext.scopeCss){h.push('x-body')}if(e.Touch){h.push('x-touch')}if(Ext.isIE&&Ext.isIE9m){h.push('x-ie','x-ie9m');h.push('x-ie8p');if(Ext.isIE8){h.push('x-ie8')}else {h.push('x-ie9','x-ie9p')}if(Ext.isIE8m){h.push('x-ie8m')}}if(Ext.isIE10){h.push('x-ie10')}if(Ext.isIE10p){h.push('x-ie10p')}if(Ext.isIE11){h.push('x-ie11')}if(Ext.isGecko){h.push('x-gecko')}if(Ext.isOpera){h.push('x-opera')}if(Ext.isOpera12m){h.push('x-opera12m')}if(Ext.isWebKit){h.push('x-webkit')}if(Ext.isSafari){h.push('x-safari')}if(Ext.isChrome){h.push('x-chrome')}if(Ext.isMac){h.push('x-mac')}if(Ext.isLinux){h.push('x-linux')}if(!e.CSS3BorderRadius){h.push('x-nbr')}if(!e.CSS3LinearGradient){h.push('x-nlg')}if(e.Touch){h.push('x-touch')}Ext.getBody().addCls(h)},null,{priority:1500})});Ext.cmd.derive('Ext.GlobalEvents',Ext.mixin.Observable,{alternateClassName:'Ext.globalEvents',observableType:'global',singleton:!0,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},attachListeners:function(){Ext.get(window).on('resize',this.fireResize,this,{buffer:this.resizeBuffer});Ext.getDoc().on('mousedown',this.fireMouseDown,this)},fireMouseDown:function(a){this.fireEvent('mousedown',a)},fireResize:function(){var a=this,d=Ext.Element,c=d.getViewportWidth(),b=d.getViewportHeight();if(a.curHeight!==b||a.curWidth!==c){a.curHeight=b;a.curWidth=c;a.fireEvent('resize',c,b)}}},1,0,0,0,0,0,[Ext,'GlobalEvents',Ext,'globalEvents'],function(a){Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)}});Ext.define('Ext.overrides.GlobalEvents',{override:'Ext.GlobalEvents',deprecated:{5:{methods:{addListener:function(a,d,i,f,h,g,e){var c,b;if(a==='ready'){b=d}else {if(typeof a!=='string'){for(c in a){if(c==='ready'){b=a[c]}}}}if(b){Ext.onReady(b)}this.callParent([a,d,i,f,h,g,e])}}}}});Ext.USE_NATIVE_JSON=!1;Ext.JSON=new function(){var me=this,hasNative=window.JSON&&JSON.toString()==='[object JSON]',useHasOwn=!!{}.hasOwnProperty,pad=function(a){return a<10?'0'+a:a},doDecode=function(json){return eval('('+json+')')},doEncode=function(a,b){if(a===null||a===undefined){return 'null'}else {if(Ext.isDate(a)){return me.encodeDate(a)}else {if(Ext.isString(a)){if(Ext.isMSDate(a)){return me.encodeMSDate(a)}else {return me.encodeString(a)}}else {if(typeof a==='number'){return isFinite(a)?String(a):'null'}else {if(Ext.isBoolean(a)){return String(a)}else {if(a.toJSON){return a.toJSON()}else {if(Ext.isArray(a)){return encodeArray(a,b)}else {if(Ext.isObject(a)){return encodeObject(a,b)}else {if(typeof a==='function'){return 'null'}}}}}}}}}return 'undefined'},m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\','\v':'\\u000b'},charToReplace=/[\\\"\x00-\x1f\x7f-\uffff]/g,encodeString=function(a){return '"'+a.replace(charToReplace,function(b){var c=m[b];return typeof c==='string'?c:'\\u'+('0000'+b.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(a){return '"'+a+'"'},encodeArrayPretty=function(e,d){var f=e.length,c=d+' ',g=','+c,a=['[',c],b;for(b=0;b0}}return c},onBindNotify:function(b,c,a){a.syncing=a.syncing+1||1;this[a._config.names.set](b);--a.syncing},removeBindings:function(){var c=this,a,d,b;if(!c.destroying){a=c.getBind();if(a&&typeof a!=='string'){for(d in a){b=a[d];b.destroy();b._config=b.getTemplateScope=null}}}c.setBind(null)},updateSession:function(a){var b=this.getInherited();if(a){b.session=a}else {delete b.session}},updateViewModel:function(a){var c=this.getInherited(),b=this.getController();if(a){c.viewModel=a;a.setView(this);if(b){b.initViewModel(a)}}else {delete c.viewModel}}}},0,0,0,0,0,0,[Ext.mixin,'Bindable'],0);Ext.cmd.derive('Ext.mixin.ComponentDelegation',Ext.Mixin,{mixinConfig:{id:'componentDelegation'},privates:{addDelegatedListener:function(c,k,j,a,d,i,h){var b=this,e,g,f;d=d||a.order;if(d){f=a&&a.priority;if(!f){a=a?Ext.Object.chain(a):{};a.priority=b.$orderToPriority[d]}}e=b.$delegatedEvents||(b.$delegatedEvents={});g=e[c]||(e[c]=new Ext.util.Event(b,c));if(g.addListener(k,j,a,i,h)){b.$hasDelegatedListeners._incr_(c)}},clearDelegatedListeners:function(){var e=this,a=e.$delegatedEvents,b,c,d;if(a){for(b in a){c=a[b];d=c.listeners.length;c.clearListeners();e.$hasDelegatedListeners._decr_(b,d);delete a[b]}}},doFireDelegatedEvent:function(f,g){var e=this,d=!0,a,b,c;if(e.$hasDelegatedListeners[f]){a=e.getRefOwner();while(a){b=a.$delegatedEvents;if(b){c=b[f];if(c){d=c.fireDelegated(e,g);if(d===!1){break}}}a=a.getRefOwner()}}return d},removeDelegatedListener:function(c,f,e){var d=this,b=d.$delegatedEvents,a;if(b){a=b[c];if(a&&a.removeListener(f,e)){d.$hasDelegatedListeners._decr_(c);if(a.listeners.length===0){delete b[c]}}}}},onClassMixedIn:function(a){function HasListeners(){}a.prototype.HasListeners=a.HasListeners=HasListeners;HasListeners.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,'ComponentDelegation'],function(a){function HasDelegatedListeners(){}a.HasDelegatedListeners=HasDelegatedListeners;HasDelegatedListeners.prototype=a.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()});Ext.cmd.derive('Ext.Widget',Ext.Evented,{isWidget:!0,element:{reference:'element'},observableType:'component',cachedConfig:{style:null},config:{userCls:null},eventedConfig:{width:null,height:null},template:[],constructor:function(c){var a=this,b;a.initId(c);a.initElement();a.mixins.observable.constructor.call(a,c);Ext.ComponentManager.register(a);b=a.getController();if(b){b.init(a)}},afterCachedConfig:function(){var c=this,j=c.self.prototype,f=c.referenceList,i=c.renderElement,d,h,a,b,g,e;j.renderTemplate=d=document.createDocumentFragment();d.appendChild(i.clone(!0,!0));e=d.querySelectorAll('[id]');for(a=0,b=e.length;a]+>/gi,stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},undef:function(a){return a!==undefined?a:''},defaultValue:function(a,b){return a!==undefined&&a!==''?a:b},substr:'ab'.substr(-1)!='b'?function(d,a,c){var b=String(d);return a<0?b.substr(Math.max(b.length+a,0),c):b.substr(a,c)}:function(c,b,a){return String(c).substr(b,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(b){return a.currency(b,'$',2)},currency:function(b,f,c,h){var d='',e=',0',g=0;b=b-0;if(b<0){b=-b;d='-'}c=Ext.isDefined(c)?c:a.currencyPrecision;e+=c>0?'.':'';for(;gb){a=a.substring(a.length-b)}}while(a.length2){}else {if(e.length===2){d=e[1].length;f=e[1].match(a.hashRe);if(f){m=f[0].length;l='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+m+'}$")'}}}b=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts'+(h?',thousandSeparator,thousands=[],j,n,i':'')+(i?',formatString="'+c+'",formatPattern=/[\\d,\\.#]+/':'')+',trailingZeroes;return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";neg=v<0;','absVal=Math.abs(v);','fnum=Ext.Number.toFixed(absVal, '+d+');',l,';'];if(h){if(d){b[b.length]='parts=fnum.split(".");';b[b.length]='fnum=parts[0];'}b[b.length]='if(absVal>=1000) {';b[b.length]='thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i')},capitalize:Ext.String.capitalize,uncapitalize:Ext.String.uncapitalize,ellipsis:Ext.String.ellipsis,escape:Ext.String.escape,escapeRegex:Ext.String.escapeRegex,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,toggle:Ext.String.toggle,trim:Ext.String.trim,parseBox:function(b){b=b||0;if(typeof b==='number'){return {top:b,right:b,bottom:b,left:b}}var a=b.split(' '),c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else {if(c===2){a[2]=a[0];a[3]=a[1]}else {if(c===3){a[3]=a[1]}}}return {top:parseInt(a[0],10)||0,right:parseInt(a[1],10)||0,bottom:parseInt(a[2],10)||0,left:parseInt(a[3],10)||0}}}},1,0,0,0,0,0,[Ext.util,'Format'],0);Ext.cmd.derive('Ext.Template',Ext.Base,{inheritableStatics:{from:function(a,b){a=Ext.getDom(a);return new this(a.value||a.innerHTML,b||'')}},useEval:Ext.isGecko,constructor:function(g){var d=this,c=arguments,f=[],e,b=c.length,a;d.initialConfig={};if(b===1&&Ext.isArray(g)){c=g;b=c.length}if(b>1){for(e=0;e]*)\>)|(?:<\/tpl>)/g,actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g,propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/,defaultRe:/^\s*default\s*$/,elseRe:/^\s*else\s*$/},1,0,0,0,0,0,[Ext.util,'XTemplateParser'],0);Ext.cmd.derive('Ext.util.XTemplateCompiler',Ext.util.XTemplateParser,{useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:!0,propNameRe:/^[\w\d\$]*$/,compile:function(c){var a=this,b=a.generate(c);return a.useEval?a.evalTpl(b):(new Function('Ext',b))(Ext)},generate:function(d){var a=this,b='var fm=Ext.util.Format,ts=Object.prototype.toString;',c;a.maxLevel=0;a.body=['var c0=values, a0='+a.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(a.definitions){if(typeof a.definitions==='string'){a.definitions=[a.definitions,b]}else {a.definitions.push(b)}}else {a.definitions=[b]}a.switches=[];a.parse(d);a.definitions.push((a.useEval?'$=':'return')+' function ('+a.fnArgs+') {',a.body.join(''),'}');c=a.definitions.join('\n');a.definitions.length=a.body.length=a.switches.length=0;delete a.definitions;delete a.body;delete a.switches;return c},doText:function(a){var b=this,c=b.body;a=a.replace(b.aposRe,"\\'").replace(b.newLineRe,'\\n');if(b.useIndex){c.push("out[out.length]='",a,"'\n")}else {c.push("out.push('",a,"')\n")}},doExpr:function(b){var a=this.body;a.push('if ((v='+b+') != null) out');if(this.useIndex){a.push("[out.length]=v+''\n")}else {a.push(".push(v+'')\n")}},doTag:function(b){var a=this.parseTag(b);if(a){this.doExpr(a)}else {this.doText('{'+b+'}')}},doElse:function(){this.body.push('} else {\n')},doEval:function(a){this.body.push(a,'\n')},doIf:function(b,c){var a=this;if(b==='.'){a.body.push('if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('if (',a.parseTag(b),') {\n')}else {a.body.push('if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==='.'){a.body.push('else if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('} else if (',a.parseTag(b),') {\n')}else {a.body.push('} else if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doSwitch:function(b){var a=this,c;if(b==='.'||b==='#'){c=b==='.'?'values':'xindex';a.body.push('switch (',c,') {\n')}else {if(a.propNameRe.test(b)){a.body.push('switch (',a.parseTag(b),') {\n')}else {a.body.push('switch (',a.addFn(b),a.callFn,') {\n')}}a.switches.push(0)},doCase:function(e){var a=this,c=Ext.isArray(e)?e:[e],d=a.switches.length-1,f,b;if(a.switches[d]){a.body.push('break;\n')}else {a.switches[d]++}for(b=0,d=c.length;b1){ out.push("',d.between,'"); } \n')}},doForEach:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else {if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}}if(b.maxLevel1){ out.push("',d.between,'"); } \n')}},createArrayTest:'isArray' in Array?function(a){return 'Array.isArray(c'+a+')'}:function(a){return 'ts.call(c'+a+')==="[object Array]"'},doExec:function(d,e){var a=this,c='f'+a.definitions.length,b=a.guards[a.strict?0:1];a.definitions.push('function '+c+'('+a.fnArgs+') {',b.doTry,' var $v = values; with($v) {',' '+d,' }',b.doCatch,'}');a.body.push(c+a.callFn+'\n')},guards:[{doTry:'',doCatch:''},{doTry:'try { ',doCatch:' } catch(e) {\n}'}],addFn:function(c){var a=this,b='f'+a.definitions.length,d=a.guards[a.strict?0:1];if(c==='.'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return values','}')}else {if(c==='..'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return parent','}')}else {a.definitions.push('function '+b+'('+a.fnArgs+') {',d.doTry,' var $v = values; with($v) {',' return('+c+')',' }',d.doCatch,'}')}}return b},parseTag:function(h){var e=this,f=e.tagRe.exec(h),a,c,d,g,b;if(!f){return null}a=f[1];c=f[2];d=f[3];g=f[4];if(a=='.'){if(!e.validTypes){e.definitions.push('var validTypes={string:1,number:1,boolean:1};');e.validTypes=!0}b='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else {if(a=='#'){b='xindex'}else {if(a=='$'){b='xkey'}else {if(a.substr(0,7)=='parent.'){b=a}else {if(isNaN(a)&&a.indexOf('-')==-1&&a.indexOf('.')!=-1){b='values.'+a}else {b="values['"+a+"']"}}}}}if(g){b='('+b+g+')'}if(c&&e.useFormat){d=d?','+d:'';if(c.substr(0,5)!='this.'){c='fm.'+c+'('}else {c+='('}}else {return b}return c+b+d+')'},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},0,0,0,0,0,0,[Ext.util,'XTemplateCompiler'],function(){var a=this.prototype;a.fnArgs='out,values,parent,xindex,xcount,xkey';a.callFn='.call(this,'+a.fnArgs+')'});Ext.cmd.derive('Ext.XTemplate',Ext.Template,{isXTemplate:!0,emptyObj:{},fn:null,strict:!1,apply:function(b,a,d,c){return this.applyOut(b,[],a,d,c).join('')},applyOut:function(g,d,f,c,b){var a=this,e;if(!a.fn){e=new Ext.util.XTemplateCompiler({useFormat:a.disableFormats!==!0,definitions:a.definitions,strict:a.strict});a.fn=e.compile(a.html)}c=c||1;b=b||1;if(a.strict){a.fn(d,g,f||a.emptyObj,c,b)}else {try{a.fn(d,g,f||a.emptyObj,c,b)}catch(h){}}return d},compile:function(){return this},statics:{getTpl:function(c,d){var b=c[d],a;if(b&&!b.isTemplate){b=Ext.ClassManager.dynInstantiate('Ext.XTemplate',b);if(c.hasOwnProperty(d)){a=c}else {for(a=c.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=b;b.owner=a}return b||null}}},0,0,0,0,0,0,[Ext,'XTemplate'],0);Ext.cmd.derive('Ext.app.EventDomain',Ext.Base,{statics:{instances:{}},isEventDomain:!0,isInstance:!1,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(l,h,m){h=Ext.canonicalEventName(h);var j=this,n=j.bus,b=n[h],c,a,i,g,e,k,d,f;if(!b){return !0}for(c in b){if(b.hasOwnProperty(c)&&j.match(l,c,j.controller)){a=b[c];for(i in a){if(a.hasOwnProperty(i)){g=a[i];if(g.controller.isActive()){e=g.list;k=e.length;for(d=0;da.clientWidth}}if(e==='scroll'){h=!0}else {if(e){h=a.scrollHeight>a.clientHeight}}if(g){i=f.height}if(h){j=f.width}}}return {width:j,height:i}},getPosition:function(){return this.position},updateDirectionLock:Ext.emptyFn,updateDisabled:Ext.emptyFn,updateIndicators:Ext.emptyFn,updateMaxPosition:Ext.emptyFn,updateMaxUserPosition:Ext.emptyFn,updateMinPosition:Ext.emptyFn,updateMinUserPosition:Ext.emptyFn,updateMomenumEasing:Ext.emptyFn,updateX:Ext.emptyFn,updateY:Ext.emptyFn,onPartnerScrollStart:Ext.emptyFn,onPartnerScrollEnd:Ext.emptyFn,refresh:function(){this.fireEvent('refresh',this);return this},removePartner:function(c){var b=this._partners,a=c._partners;if(b){delete b[c.getId()]}if(a){delete a[this.getId()]}},scrollBy:function(a,b,c){var d=this.getPosition();if(a){if(a.length){c=b;b=a[1];a=a[0]}else {if(typeof a!=='number'){c=b;b=a.y;a=a.x}}}a=typeof a==='number'?a+d.x:null;b=typeof b==='number'?b+d.y:null;return this.doScrollTo(a,b,c)},scrollIntoView:function(d,i,h,e){var a=this,c=a.getPosition(),b,f,g,j=a.getElement();if(d){b=Ext.fly(d).getScrollIntoViewXY(j,c.x,c.y);f=i===!1?c.x:b.x;g=b.y;if(e){a.on({scrollend:'doHighlight',scope:a,single:!0,args:[d,e]})}a.doScrollTo(f,g,h)}},isInView:function(d){var f=this,c={x:!1,y:!1},b,e=f.getElement(),a;if(d&&e.contains(d)){a=e.getRegion();b=Ext.fly(d).getRegion();c.x=b.right>a.left&&b.lefta.top&&b.top0){b-=1}if(c>0){c-=1}e.setSpacerXY({x:b,y:c});d.show()}}},deprecated:{5:{methods:{getScroller:function(){return this}}},'5.1.0':{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}},privates:{getSpacer:function(){var b=this,a=b._spacer,c;if(!a){c=b.getElement();a=b._spacer=c.createChild({cls:b._spacerCls,role:'presentation'});a.setVisibilityMode(2);c.position()}return a},applySpacerXY:function(a,b){if(b&&a.x===b.x&&a.y===b.y){a=undefined}return a},updateSpacerXY:function(a){this.getSpacer().setLocalXY(a.x,a.y)},convertX:function(a){return a},doHighlight:function(b,a){if(a!==!0){Ext.fly(b).highlight(a)}else {Ext.fly(b).highlight()}},fireScrollStart:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollStart',b,c);if(a.hasListeners.scrollstart){a.fireEvent('scrollstart',a,b,c)}if(d&&d.onScrollStart){d.onScrollStart(b,c)}Ext.GlobalEvents.fireEvent('scrollstart',a,b,c)},fireScroll:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScroll',b,c);if(a.hasListeners.scroll){a.fireEvent('scroll',a,b,c)}if(d&&d.onScrollMove){d.onScrollMove(b,c)}Ext.GlobalEvents.fireEvent('scroll',a,b,c)},fireScrollEnd:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollEnd',b,c);if(a.hasListeners.scrollend){a.fireEvent('scrollend',a,b,c)}if(d&&d.onScrollEnd){d.onScrollEnd(b,c)}Ext.GlobalEvents.fireEvent('scrollend',a,b,c)},initXStyle:function(){var b=this.getElement(),a=this.getX();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-x',a)}},initYStyle:function(){var b=this.getElement(),a=this.getY();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-y',a)}},invokePartners:function(d,g,h){var b=this,c=b._partners,a,e,f=d==='onPartnerScrollEnd';if(!b.suspendSync&!b.isReflecting){for(e in c){a=c[e].scroller;a.isReflecting=!0;a[d](b,g,h);if(f){a.isReflecting=!1}}}},clearReflecting:function(){this.isReflecting=!1},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(){if(this.suspendSync){this.suspendSync--}},updateDomScrollPosition:function(){var a=this,d=a.getElement(),b,c=a.position;if(d&&!d.destroyed){b=a.getElementScroll(d);c.x=b.left;c.y=b.top}a.positionDirty=!1;return c},getElementScroll:function(a){return a.getScroll()},onDomScroll:function(){var a=this,b,d,e,c;if(a.isTouchScroller&&Ext.supports.touchScroll===2){c=a.getElement().dom;c.scrollTop=c.scrollLeft=0;return}b=a.updateDomScrollPosition();d=b.x;e=b.y;if(!a.isScrolling){a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(d,e)}a.fireScroll(d,e);a.onDomScrollEnd()},onDomScrollEnd:function(){var a=this,b=a.getPosition(),c=b.x,d=b.y;a.isScrolling=Ext.isScrolling=!1;a.trackingScrollLeft=c;a.trackingScrollTop=d;a.fireScrollEnd(c,d)},onPartnerScroll:function(d,b,c){var a=d._partners[this.getId()].axis;if(a){if(a==='x'){c=null}else {if(a==='y'){b=null}}}this.doScrollTo(b,c,!1,!0)},restoreState:function(){var a=this,c=a.getElement(),b;if(c){b=c.dom;if(a.trackingScrollTop!==undefined){b.scrollTop=a.trackingScrollTop;b.scrollLeft=a.trackingScrollLeft}}}}},1,0,0,0,['scroller.scroller'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.scroll,'Scroller'],0);Ext.cmd.derive('Ext.fx.easing.Abstract',Ext.Base,{config:{startTime:0,startValue:0},isEasing:!0,isEnded:!1,constructor:function(a){this.initConfig(a);return this},applyStartTime:function(a){if(!a){a=Ext.Date.now()}return a},updateStartTime:function(a){this.reset()},reset:function(){this.isEnded=!1},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,'Abstract'],0);Ext.cmd.derive('Ext.fx.easing.Momentum',Ext.fx.easing.Abstract,{config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(b){var a=Math.log(1-b/10);this.theta=a;this.alpha=a/this.getAcceleration()},updateStartVelocity:function(a){this.velocity=a*this.getAcceleration()},updateAcceleration:function(a){this.velocity=this.getStartVelocity()*a;this.alpha=this.theta/a},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var a=Ext.Date.now()-this.getStartTime();return Math.exp(a*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}},0,0,0,0,0,0,[Ext.fx.easing,'Momentum'],0);Ext.cmd.derive('Ext.fx.easing.Bounce',Ext.fx.easing.Abstract,{config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var b=Ext.Date.now()-this.getStartTime(),a=b/this.getAcceleration(),c=a*Math.pow(Math.E,-this.getSpringTension()*a);return this.getStartValue()+this.getStartVelocity()*c}},0,0,0,0,0,0,[Ext.fx.easing,'Bounce'],0);Ext.cmd.derive('Ext.fx.easing.BoundMomentum',Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(b,a){return Ext.factory(b,Ext.fx.easing.Momentum,a)},applyBounce:function(b,a){return Ext.factory(b,Ext.fx.easing.Bounce,a)},updateStartTime:function(a){this.getMomentum().setStartTime(a);Ext.fx.easing.Abstract.prototype.updateStartTime.apply(this,arguments)},updateStartVelocity:function(a){this.getMomentum().setStartVelocity(a)},updateStartValue:function(a){this.getMomentum().setStartValue(a)},reset:function(){this.lastValue=null;this.isBouncingBack=!1;this.isOutOfBound=!1;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var d=this.getMomentum(),j=this.getBounce(),f=d.getStartVelocity(),b=f>0?1:-1,i=this.getMinMomentumValue(),h=this.getMaxMomentumValue(),g=b==1?h:i,c=this.lastValue,a,e;if(f===0){return this.getStartValue()}if(!this.isOutOfBound){a=d.getValue();e=d.getVelocity();if(Math.abs(e)=i&&a<=h){return a}this.isOutOfBound=!0;j.setStartTime(Ext.Date.now()).setStartVelocity(e).setStartValue(g)}a=j.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(c!==null){if(b==1&&ac){this.isBouncingBack=!0}}}else {if(Math.round(a)==g){this.isEnded=!0}}}this.lastValue=a;return a}},0,0,0,0,0,0,[Ext.fx.easing,'BoundMomentum'],0);Ext.cmd.derive('Ext.fx.easing.Linear',Ext.fx.easing.Abstract,{config:{duration:0,endValue:0},updateStartValue:function(a){this.distance=this.getEndValue()-a},updateEndValue:function(a){this.distance=a-this.getStartValue()},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration();if(a>b){this.isEnded=!0;return this.getEndValue()}else {return this.getStartValue()+a/b*this.distance}}},0,0,0,0,['easing.linear'],0,[Ext.fx.easing,'Linear'],0);Ext.cmd.derive('Ext.fx.easing.EaseOut',Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,i=a/b,h=1-i,g=1-Math.pow(h,this.getExponent()),c=d+g*e;if(a>=b){this.isEnded=!0;return f}return c}},0,0,0,0,['easing.ease-out'],0,[Ext.fx.easing,'EaseOut'],0);Ext.cmd.derive('Ext.util.translatable.Abstract',Ext.Evented,{config:{useWrapper:null,easing:null,easingX:null,easingY:null},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:!1,isTranslatable:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,'easing')},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},doTranslate:Ext.emptyFn,translate:function(a,b,c){if(c){return this.translateAnimated(a,b,c)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a=='number'){this.x=a}if(!isNaN(b)&&typeof b=='number'){this.y=b}this.doTranslate(a,b)},translateAxis:function(e,a,d){var b,c;if(e=='x'){b=a}else {c=a}return this.translate(b,c,d)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(a,b){this.activeEasingX=a;this.activeEasingY=b;this.isAnimating=!0;this.lastX=null;this.lastY=null;Ext.AnimationQueue.start(this.doAnimationFrame,this);this.fireEvent('animationstart',this,this.x,this.y);return this},translateAnimated:function(g,h,a){var b=this;if(!Ext.isObject(a)){a={}}if(b.isAnimating){b.stopAnimation()}b.callback=a.callback;b.callbackScope=a.scope;var f=Ext.Date.now(),e=a.easing,c=typeof g=='number'?a.easingX||e||b.getEasingX()||!0:null,d=typeof h=='number'?a.easingY||e||b.getEasingY()||!0:null;if(c){c=b.factoryEasing(c);c.setStartTime(f);c.setStartValue(b.x);c.setEndValue(g);if('duration' in a){c.setDuration(a.duration)}}if(d){d=b.factoryEasing(d);d.setStartTime(f);d.setStartValue(b.y);d.setEndValue(h);if('duration' in a){d.setDuration(a.duration)}}return b.animate(c,d)},doAnimationFrame:function(){var a=this,d=a.activeEasingX,e=a.activeEasingY,f=Date.now(),b,c;if(!a.isAnimating){return}a.lastRun=f;if(d===null&&e===null){a.stopAnimation();return}if(d!==null){a.x=b=Math.round(d.getValue());if(d.isEnded){a.activeEasingX=null;a.fireEvent('axisanimationend',a,'x',b)}}else {b=a.x}if(e!==null){a.y=c=Math.round(e.getValue());if(e.isEnded){a.activeEasingY=null;a.fireEvent('axisanimationend',a,'y',c)}}else {c=a.y}if(a.lastX!==b||a.lastY!==c){a.doTranslate(b,c);a.lastX=b;a.lastY=c}a.fireEvent('animationframe',a,b,c)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=!1;Ext.AnimationQueue.stop(a.doAnimationFrame,a);a.fireEvent('animationend',a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){if(this.isAnimating){this.stopAnimation()}Ext.Evented.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.translatable,'Abstract'],0);Ext.cmd.derive('Ext.util.translatable.Dom',Ext.util.translatable.Abstract,{config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,'Dom'],0);Ext.cmd.derive('Ext.util.translatable.CssTransform',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement();if(!this.destroyed&&!a.destroyed){a.translate(b,c)}},destroy:function(){var a=this.getElement();if(a&&!a.destroyed){a.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssTransform'],0);Ext.cmd.derive('Ext.util.translatable.ScrollPosition',Ext.util.translatable.Dom,{type:'scrollposition',config:{useWrapper:!0},getWrapper:function(){var a=this.wrapper,c=this.getElement(),b;if(!a){b=c.getParent();if(!b){return null}if(b.hasCls('x-translatable-hboxfix')){b=b.getParent()}if(this.getUseWrapper()){a=c.wrap()}else {a=b}c.addCls('x-translatable');a.addCls('x-translatable-container');this.wrapper=a;a.on('painted',function(){if(!this.isAnimating){this.refresh()}},this);this.refresh()}return a},doTranslate:function(c,d){var b=this.getWrapper(),a;if(b){a=b.dom;if(typeof c=='number'){a.scrollLeft=500000-c}if(typeof d=='number'){a.scrollTop=500000-d}}},destroy:function(){var a=this,c=a.getElement(),b=a.wrapper;if(b){if(!c.destroyed){if(a.getUseWrapper()){b.doReplaceWith(c)}c.removeCls('x-translatable')}if(!b.destroyed){b.removeCls('x-translatable-container');b.un('painted','refresh',a)}delete a.wrapper;delete a._element}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollPosition'],0);Ext.cmd.derive('Ext.util.translatable.ScrollParent',Ext.util.translatable.Dom,{isScrollParent:!0,applyElement:function(b){var a=Ext.get(b);if(a){this.parent=a.parent()}return a},doTranslate:function(b,c){var a=this.parent;a.setScrollLeft(Math.round(-b));a.setScrollTop(Math.round(-c))},getPosition:function(){var c=this,a=c.position,b=c.parent;a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollParent'],0);Ext.cmd.derive('Ext.util.translatable.CssPosition',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement().dom.style;if(typeof b=='number'){a.left=b+'px'}if(typeof c=='number'){a.top=c+'px'}},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssPosition'],0);Ext.cmd.derive('Ext.util.Translatable',Ext.Base,{constructor:function(a){var b=Ext.util.translatable;switch(Ext.browser.getPreferredTranslationMethod(a)){case 'scrollposition':return new b.ScrollPosition(a);case 'scrollparent':return new b.ScrollParent(a);case 'csstransform':return new b.CssTransform(a);case 'cssposition':return new b.CssPosition(a);}}},1,0,0,0,0,0,[Ext.util,'Translatable'],0);Ext.cmd.derive('Ext.scroll.Indicator',Ext.Widget,{config:{axis:null,hideAnimation:!0,hideDelay:0,scroller:null,minLength:24},defaultHideAnimation:{to:{opacity:0},duration:300},names:{x:{side:'l',getSize:'getHeight',setLength:'setWidth',translate:'translateX'},y:{side:'t',getSize:'getWidth',setLength:'setHeight',translate:'translateY'}},oppositeAxis:{x:'y',y:'x'},cls:'x-scroll-indicator',applyHideAnimation:function(a){if(a){a=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,a)}return a},constructor:function(c){var a=this,b;Ext.Widget.prototype.constructor.call(this,c);b=a.getAxis();a.names=a.names[b];a.element.addCls(a.cls+' '+a.cls+'-'+b)},hide:function(){var a=this,b=a.getHideDelay();if(b){a._hideTimer=Ext.defer(a.doHide,b,a)}else {a.doHide()}},setValue:function(c){var a=this,o=a.element,l=a.names,m=a.getAxis(),k=a.getScroller(),f=k.getMaxUserPosition()[m],g=k.getElementSize()[m],b=a.length,j=a.getMinLength(),e=b,i=g-b-a.sizeAdjust,h=Math.round,n=Math.max,d;if(c<0){e=h(n(b+b*c/g,j));d=0}else {if(c>f){e=h(n(b-b*(c-f)/g,j));d=i+b-e}else {d=h(c/f*i)}}a[l.translate](d);o[l.setLength](e)},show:function(){var a=this,b=a.element,c=b.getActiveAnimation();if(c){c.end()}if(!a._inDom){a.getScroller().getElement().appendChild(b);a._inDom=!0;if(!a.size){a.cacheStyles()}}a.refreshLength();clearTimeout(a._hideTimer);b.setStyle('opacity','')},privates:{cacheStyles:function(){var a=this,c=a.element,b=a.names;a.size=c[b.getSize]();a.margin=c.getMargin(b.side)},doHide:function(){var a=this.getHideAnimation(),b=this.element;if(a){b.animate(a)}else {b.setStyle('opacity',0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle('opacity','0')},refreshLength:function(){var a=this,i=a.names,g=a.getAxis(),e=a.getScroller(),h=e.getSize()[g],c=e.getElementSize()[g],j=c/h,b=a.margin*2,d=a.hasOpposite()?b+a.size:b,f=Math.max(Math.round((c-d)*j),a.getMinLength());a.sizeAdjust=d;a.length=f;a.element[i.setLength](f)},translateX:function(a){this.element.translate(a)},translateY:function(a){this.element.translate(0,a)}}},1,['scrollindicator'],['widget','scrollindicator'],{'widget':!0,'scrollindicator':!0},['widget.scrollindicator'],0,[Ext.scroll,'Indicator'],0);Ext.cmd.derive('Ext.scroll.TouchScroller',Ext.scroll.Scroller,{isTouchScroller:!0,config:{autoRefresh:!0,bounceEasing:{duration:400},elementSize:undefined,indicators:!0,fps:'auto',maxAbsoluteVelocity:6,momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,innerElement:null,size:undefined,slotSnapEasing:{duration:150},slotSnapOffset:{x:0,y:0},startMomentumResetTime:300,translatable:{translationMethod:'auto',useWrapper:!1}},cls:'x-scroll-container',scrollerCls:'x-scroll-scroller',dragStartTime:0,dragEndTime:0,isDragging:!1,isAnimating:!1,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:'onTouchStart',touchmove:'onTouchMove',dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd'},refreshCounter:0,constructor:function(c){var a=this,b='onEvent';a.elementListeners={touchstart:b,touchmove:b,dragstart:b,drag:b,dragend:b,scope:a};a.minPosition={x:0,y:0};a.startPosition={x:0,y:0};a.velocity={x:0,y:0};a.isAxisEnabledFlags={x:!1,y:!1};a.flickStartPosition={x:0,y:0};a.flickStartTime={x:0,y:0};a.lastDragPosition={x:0,y:0};a.dragDirection={x:0,y:0};Ext.scroll.Scroller.prototype.constructor.call(this,c);a.refreshAxes();a.scheduleRefresh={idle:a.doRefresh,scope:a,single:!0,destroyable:!0}},applyBounceEasing:function(b){var a=Ext.fx.easing.EaseOut;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyElementSize:function(b){var e=this.getElement(),a,c,d;if(!e){return null}a=e.dom;if(!a){return}if(b==null){c=a.clientWidth;d=a.clientHeight}else {c=b.x;d=b.y}return {x:c,y:d}},applyIndicators:function(b,a){var g=this,c,d,e,f;if(b){if(b===!0){c=d={}}else {e=b.x;f=b.y;if(e||f){c=e==null||e===!0?{}:e;d=e==null||f===!0?{}:f}else {c=d=b}}if(a){if(c){a.x.setConfig(c)}else {a.x.destroy();a.x=null}if(d){a.y.setConfig(d)}else {a.y.destroy();a.y=null}b=a}else {b={x:null,y:null};if(c){b.x=new Ext.scroll.Indicator(Ext.applyIf({axis:'x',scroller:g},c))}if(d){b.y=new Ext.scroll.Indicator(Ext.applyIf({axis:'y',scroller:g},d))}}}else {if(a){if(a.x){a.x.destroy()}if(a.y){a.y.destroy()}a.x=a.y=null}}return b},applyMomentumEasing:function(b){var a=Ext.fx.easing.BoundMomentum;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyInnerElement:function(a){if(a&&!a.isElement){a=Ext.get(a)}return a},applyMaxPosition:function(a,c){if(c&&a.x===c.x&&a.y===c.y){return}var d=this.getTranslatable(),b;if(d.isAnimating){b=d.activeEasingY;if(b&&b.getStartVelocity&&b.getStartVelocity()<0&&a.yi){d=i}}if(l){c=a.convertX(c);d=a.convertX(d)}if(d!==null){f=a.getBounceEasing()[b];f.setConfig({startTime:j,startValue:-c,endValue:-d});return f}if(e===0){return null}if(e<-g){e=-g}else {if(e>g){e=g}}f=a.getMomentumEasing()[b];h={startTime:j,startValue:-c,startVelocity:e*1.5,minMomentumValue:-i,maxMomentumValue:0};if(l){a.convertEasingConfig(h)}f.setConfig(h);return f},getSnapPosition:function(d){var e=this,c=e.getSlotSnapSize()[d],f=null,b,h,g,a;if(c!==0&&e.isAxisEnabled(d)){b=e.position[d];h=e.getSlotSnapOffset()[d];g=e.getMaxUserPosition()[d];a=Math.floor((b-h)%c);if(a!==0){if(b!==g){if(Math.abs(a)>c/2){f=Math.min(g,b+(a>0?c-a:a-c))}else {f=b-a}}else {f=b-a}}}return f},hideIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.hide()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.hide()}}}},isAxisEnabled:function(a){this.getX();this.getY();return this.isAxisEnabledFlags[a]},onAnimationEnd:function(){this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(d,b,c){var a=this.position;a.x=this.convertX(-b);a.y=-c;this.onScroll()},onAxisDrag:function(a,k){if(k&&this.isAxisEnabled(a)){var b=this,o=b.flickStartPosition,g=b.flickStartTime,f=b.lastDragPosition,d=b.dragDirection,r=b.position[a],q=b.getMinUserPosition()[a],e=b.getMaxUserPosition()[a],p=b.startPosition[a],l=f[a],c=p-k,i=d[a],h=b.getOutOfBoundRestrictFactor(),n=b.getStartMomentumResetTime(),m=Ext.Date.now(),j;if(ce){j=c-e;c=e+j*h}}if(c>l){d[a]=1}else {if(cn){o[a]=r;g[a]=m}f[a]=c;return !0}},onDomScroll:function(){var c=this,b,a;if(c.getTranslatable().isScrollParent){b=c.getElement().dom;a=c.position;a.x=b.scrollLeft;a.y=b.scrollTop}Ext.scroll.Scroller.prototype.onDomScroll.call(this)},onDrag:function(c){var a=this,b=a.lastDragPosition;if(!a.isDragging){return}if(a.onAxisDrag('x',a.convertX(c.deltaX))|a.onAxisDrag('y',c.deltaY)){a.doScrollTo(b.x,b.y)}},onDragEnd:function(d){var a=this,b,c;if(!a.isDragging){return}a.dragEndTime=Ext.Date.now();a.onDrag(d);a.isDragging=!1;b=a.getAnimationEasing('x',d);c=a.getAnimationEasing('y',d);if(b||c){a.getTranslatable().animate(b,c)}else {a.onScrollEnd()}},onDragStart:function(d){var a=this,b=a.getDirection(),m=d.absDeltaX,n=d.absDeltaY,o=a.getDirectionLock(),l=a.startPosition,g=a.flickStartPosition,j=a.flickStartTime,h=a.lastDragPosition,i=a.position,k=a.dragDirection,e=i.x,f=i.y,c=Ext.Date.now();if(o&&b!=='both'){if(b==='horizontal'&&m>n||b==='vertical'&&n>m){d.stopPropagation()}else {return}}h.x=e;h.y=f;g.x=e;g.y=f;l.x=e;l.y=f;j.x=c;j.y=c;k.x=0;k.y=0;a.dragStartTime=c;a.isDragging=!0;if(!a.isScrolling){a.onScrollStart()}},onElementResize:function(b,a){this.refresh(!0,{elementSize:{x:a.contentWidth,y:a.contentHeight},size:this.getAutoRefresh()?null:this.getSize()})},onElementScroll:function(b,a){a.scrollTop=a.scrollLeft=0},onEvent:function(b){var a=this,c=b.browserEvent;if((!a.self.isTouching||a.isTouching)&&(!a.getTranslatable().isScrollParent||!a.isMouseEvent[c.type]&&c.pointerType!=='mouse')&&(a.getY()||a.getX())){a[a.listenerMap[b.type]](b)}},onInnerElementResize:function(b,a){this.refresh(!0,{size:{x:a.width,y:a.height}})},onMouseWheel:function(j){var a=this,g=j.getWheelDeltas(),c=-g.x,d=-g.y,b=a.position,e=a.getMaxUserPosition(),f=a.getMinUserPosition(),h=Math.max,i=Math.min,k=h(i(b.x+c,e.x),f.x),l=h(i(b.y+d,e.y),f.y);c=k-b.x;d=l-b.y;if(!c&&!d){return}j.stopEvent();a.onScrollStart();a.scrollBy(c,d);a.onScroll();a.onScrollEnd()},onPartnerScrollEnd:function(b,c){var a=this;if(!a.getTranslatable().isScrollParent){a.fireScrollEnd(b,c)}Ext.scroll.Scroller.prototype.onPartnerScrollEnd.call(this,b,c);a.isScrolling=!1;a.hideIndicators()},onPartnerScrollStart:function(b,c){var a=this;a.isScrolling=!0;if(!a.getTranslatable().isScrollParent){a.fireScrollStart(b,c)}a.showIndicators()},onScroll:function(){var a=this,e=a.position,f=e.x,g=e.y,b=a.getIndicators(),c,d;if(b){if(a.isAxisEnabled('x')){c=b.x;if(c){c.setValue(f)}}if(a.isAxisEnabled('y')){d=b.y;if(d){d.setValue(g)}}}a.fireScroll(f,g)},onScrollEnd:function(){var a=this,b=a.position;if(a.isScrolling&&!a.isTouching&&!a.snapToSlot()){a.hideIndicators();a.isScrolling=Ext.isScrolling=!1;a.fireScrollEnd(b.x,b.y)}},onScrollStart:function(){var a=this,b=a.position;if(!a.isScrolling){a.showIndicators();a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(b.x,b.y)}},onTouchEnd:function(){var a=this;a.isTouching=a.self.isTouching=!1;if(!a.isDragging&&a.snapToSlot()){a.onScrollStart()}},onTouchMove:function(a){a.preventDefault()},onTouchStart:function(){var a=this;a.isTouching=a.self.isTouching=!0;Ext.getDoc().on({touchend:'onTouchEnd',scope:a,single:!0});a.stopAnimation()},refreshAxes:function(){var a=this,b=a.isAxisEnabledFlags,k=a.getSize(),h=a.getElementSize(),e=a.getIndicators(),f,g,c,d,i,j;if(!k||!h){return}f=Math.max(0,k.x-h.x);g=Math.max(0,k.y-h.y);c=a.getX();d=a.getY();a.setMaxPosition({x:f,y:g});if(c===!0||c==='auto'){b.x=!!f}else {if(c===!1){b.x=!1;i=e&&e.x;if(i){i.hide()}}else {if(c==='scroll'){b.x=!0}}}if(d===!0||d==='auto'){b.y=!!g}else {if(d===!1){b.y=!1;j=e&&e.y;if(j){j.hide()}}else {if(d==='scroll'){b.y=!0}}}a.setMaxUserPosition({x:b.x?f:0,y:b.y?g:0});if(Ext.supports.touchScroll===1){a.initXStyle();a.initYStyle()}},showIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.show()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.show()}}}},snapToBoundary:function(){var a=this,d=a.getPosition();if(a.isConfiguring||!(d.x||d.y)){return}var f=a.getMinUserPosition(),e=a.getMaxUserPosition(),i=f.x,j=f.y,g=e.x,h=e.y,b=Math.round(d.x),c=Math.round(d.y);if(bg){b=g}}if(ch){c=h}}a.doScrollTo(b,c)},snapToSlot:function(){var a=this,c=a.getSnapPosition('x'),d=a.getSnapPosition('y'),b=a.getSlotSnapEasing();if(c!==null||d!==null){a.doScrollTo(c,d,{easingX:b.x,easingY:b.y});return !0}return !1},stopAnimation:function(){this.getTranslatable().stopAnimation()},toggleResizeListeners:function(e){var c=this,f=c.getElement(),b,a,d;if(f){d=c.getInnerElement();if(e){b=a='on'}else {if(e===null){b='on';a='un'}else {b=a='un'}}f[b]('resize','onElementResize',c);d[a]('resize','onInnerElementResize',c)}},unwrapContent:function(){var a=this.getInnerElement().dom,c=this.getElement().dom,b;while(b=a.firstChild){c.insertBefore(b,a)}},wrapContent:function(d){var a=document.createElement('div'),c=d.dom,b;while(b=c.lastChild){a.insertBefore(b,a.firstChild)}c.appendChild(a);this.setInnerElement(a);this._isWrapped=!0;return this.getInnerElement()}}},1,0,0,0,['scroller.touch'],0,[Ext.scroll,'TouchScroller'],0);Ext.cmd.derive('Ext.scroll.DomScroller',Ext.scroll.Scroller,{isDomScroller:!0,getMaxPosition:function(){var b=this.getElement(),c=0,d=0,a;if(b&&!b.destroyed){a=b.dom;c=a.scrollWidth-a.clientWidth;d=a.scrollHeight-a.clientHeight}return {x:c,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),d=0,e=0,a;if(b&&!b.destroyed){a=b.dom;if(c.getX()){d=a.scrollWidth-a.clientWidth}if(c.getY()){e=a.scrollHeight-a.clientHeight}}return {x:d,y:e}},getPosition:function(){var a=this;if(a.positionDirty){a.updateDomScrollPosition()}return a.position},getSize:function(){var a=this.getElement(),b,c;if(a&&!a.destroyed){c=a.dom;b={x:c.scrollWidth,y:c.scrollHeight}}else {b={x:0,y:0}}return b},updateElement:function(b,a){this.initXStyle();this.initYStyle()},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},privates:{doScrollTo:function(a,b,j){var e=this,d=e.getElement(),f,c,i,g,h,k;if(d&&!d.destroyed){c=d.dom;g=a===Infinity;h=b===Infinity;if(g||h){f=e.getMaxPosition();if(g){a=f.x}if(h){b=f.y}}a=e.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}d.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(b!=null){c.scrollTop=b}if(a!=null){c.scrollLeft=a;if(Ext.isIE8){k=c.scrollLeft;c.scrollLeft=a}}}e.positionDirty=!0}},getElementScroll:function(a){return a.getScroll()},stopAnimation:function(){var a=this.getElement().getActiveAnimation();if(a){a.end()}}}},0,0,0,0,['scroller.dom'],0,[Ext.scroll,'DomScroller'],function(a){Ext.onDocumentReady(function(){a.document=new a({x:!0,y:!0,element:document.body})})});Ext.cmd.derive('Ext.util.Floating',Ext.Base,{mixinId:'floating',focusOnToFront:!0,shadow:'sides',animateShadow:!1,constrain:!1,config:{activeCounter:0,alwaysOnTop:!1},preventDefaultAlign:!1,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var a=this,e=a.el,d=a.shadow,c,b;if(d){b={mode:d===!0?'sides':d};c=a.shadowOffset;if(c){b.offset=c}b.animate=a.animateShadow;b.fixed=a.fixed;e.enableShadow(b,!1)}if(a.shim||Ext.useShims){e.enableShim({fixed:a.fixed},!1)}e.setVisibilityMode(a._visModeMap[a.hideMode]);a.el.on({mousedown:a.onMouseDown,scope:a,capture:!0});a.registerWithOwnerCt();a.initHierarchyEvents()},alignTo:function(b,d,f,e){var a=this,c;Ext.un('scroll',a.onAlignToScroll,a);if(b.isComponent){c=b.el}else {if(b.nodeType){c=Ext.fly(b)}else {c=b}}if(!c.contains(a.el)){Ext.on('scroll',a.onAlignToScroll,a)}a._lastAlignTarget=b;a._lastAlignToPos=d;a.mixins.positionable.alignTo.call(a,c,d,f,e)},initFloatConstrain:function(){var a=this,b=a.floatParent;if((a.constrain||a.constrainHeader)&&!a.constrainTo){a.constrainTo=b?b.getTargetEl():a.container}},initHierarchyEvents:function(){var b=this,a=this.syncHidden;if(!b.hasHierarchyEventListeners){b.mon(Ext.GlobalEvents,{hide:a,collapse:a,show:a,expand:a,added:a,scope:b});b.hasHierarchyEventListeners=!0}},registerWithOwnerCt:function(){var a=this,c=a.ownerCt,b=a.zIndexParent;if(b){b.unregisterFloatingItem(a)}b=a.zIndexParent=a.up('[floating]');a.floatParent=c||b;a.initFloatConstrain();delete a.ownerCt;if(b){b.registerFloatingItem(a)}else {Ext.WindowManager.register(a)}},onMouseDown:function(g){var b=this,f=b.focusTask,c=g.pointerType==='touch',a,d,e;if(b.floating&&(!f||!f.id)){a=g.target;d=b.el.dom;while(!c&&a&&a!==d){if(Ext.fly(a).isFocusable()){c=!0}a=a.parentNode}e=Ext.WindowManager.getActive()===b&&(a===d||c);if(!e){b.toFront(c)}}},onBeforeFloatLayout:function(){this.el.preventSync=!0},onAfterFloatLayout:function(){var a=this.el;if(a.shadow||a.shim){a.setUnderlaysVisible(!0);a.syncUnderlays()}},syncHidden:function(){var a=this,d=a.hidden||!a.rendered,c=a.hierarchicallyHidden=a.isHierarchicallyHidden(),b=a.pendingShow;if(d!==c){if(c){a.hide();a.pendingShow=!0}else {if(b){delete a.pendingShow;if(b.length){a.show.apply(a,b)}else {a.show()}}}}},setZIndex:function(a){var b=this;b.el.setZIndex(a);a+=10;if(b.floatingDescendants){a=Math.floor(b.floatingDescendants.setBase(a)/100)*100+10000}return a},doConstrain:function(c){var a=this,b=a.calculateConstrainedPosition(c,null,!0);if(b){a.setPosition(b)}},updateActiveCounter:function(b){var a=this.zIndexParent;if(a&&this.bringParentToFront!==!1){a.setActiveCounter(++Ext.ZIndexManager.activeCounter)}a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},updateAlwaysOnTop:function(b){var a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},toFront:function(b){var a=this;if(a.zIndexManager.bringToFront(a,b||!a.focusOnToFront)){if(a.hasListeners.tofront){a.fireEvent('tofront',a,a.el.getZIndex())}}return a},setActive:function(d,c){var a=this,b;if(d){if(a.el.shadow&&!a.maximized){a.el.enableShadow(null,!0)}if(c){b=Ext.ComponentManager.getActiveComponent();if(!b||!b.up(a)){a.focus()}}a.fireEvent('activate',a)}else {a.fireEvent('deactivate',a)}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var a=this,b;if(a.isVisible()){b=a.getAlignToXY(a.container,'c-c');a.setPagePosition(b)}else {a.needsCenter=!0}return a},onFloatShow:function(){if(this.needsCenter){this.center()}delete this.needsCenter;if(this.toFrontOnShow){this.toFront()}},fitContainer:function(f){var d=this,c=d.floatParent,a=c?c.getTargetEl():d.container,b=a.getViewSize(),e=c||a.dom!==document.body?[0,0]:a.getXY();b.x=e[0];b.y=e[1];d.setBox(b,f)},privates:{onFloatDestroy:function(){this.clearAlignEl()},clearAlignEl:function(){var a=this;if(a._lastAlignTarget){Ext.un('scroll',a.onAlignToScroll,a);a._lastAlignPos=a._lastAlignTarget=null}},onAlignToScroll:function(e){var b=this,a=b._lastAlignTarget,f=a.isFloating,c,d;if(a){if(a.isComponent){c=a.destroyed;a=a.el}else {if(a.nodeType){a=Ext.fly(a)}d=a.dom;c=!d||Ext.isGarbage(d)}if(c){b.clearAlignEl()}else {if((e.getElement().contains(a)||f)&&!e.getElement().contains(b.el)){b.alignTo(a,b._lastAlignToPos)}}}}}},1,0,0,0,0,0,[Ext.util,'Floating'],0);Ext.cmd.derive('Ext.util.ElementContainer',Ext.Base,{mixinId:'elementCt',config:{childEls:{$value:{},cached:!0,lazy:!0,merge:function(d,f,g,e){var c=f?Ext.Object.chain(f):{},b,a;if(d instanceof Array){for(b=d.length;b--;){a=d[b];if(!e||!(a in c)){if(typeof a==='string'){c[a]={name:a,itemId:a}}else {c[a.name]=a}}}}else {if(d){if(d.constructor===Object){for(b in d){if(!e||!(b in c)){a=d[b];if(a===!0){c[b]={itemId:b}}else {if(typeof a==='string'){c[b]={itemId:a}}else {c[b]=a;if(!('itemId' in a)){a.itemId=b}}}c[b].name=b}}}else {if(!e||!(d in c)){c[d]={name:d,itemId:d}}}}}return c}}},destroy:function(){var c=this,d=c.getChildEls(),a,b;for(b in d){a=c[b];if(a){if(a.destroy){a.component=null;a.destroy()}c[b]=null}}},privates:{addChildEl:function(a){var c=this,b=c.getChildEls();if(!c.hasOwnProperty('childEls')){c.childEls=b=Ext.Object.chain(b)}if(typeof a==='string'){a={name:a,itemId:a}}b[a.name]=a},afterClassMixedIn:function(a){var c=a.prototype,b=c.childEls;if(b){delete c.childEls;a.getConfigurator().add({childEls:b})}},attachChildEls:function(h,n){var i=this,k=i.getChildEls(),e=n||i,m=e.id+'-',l=!e.frame,f,g,b,j,c,a,d;for(f in k){b=k[f];if(l&&b.frame){continue}c=b.select;if(c){a=h.select(c,!0)}else {if(!(c=b.selectNode)){if(!(d=b.id)){d=m+b.itemId;a=Ext.cache[d]}else {a=Ext.cache[d]||h.getById(d)}}else {a=h.selectNode(c,!1)}}if(a){if(a.isElement){a.component=e}else {if(a.isComposite&&!a.isLite){g=a.elements;for(j=g.length;j--;){g[j].component=e}}}}i[f]=a||null}}}},0,0,0,0,0,0,[Ext.util,'ElementContainer'],0);Ext.cmd.derive('Ext.util.Renderable',Ext.Base,{mixinId:'renderable',frameCls:'x-frame',frameIdRegex:/[\-]frame\d+[TMB][LCR]$/,frameElNames:['TL','TC','TR','ML','MC','MR','BL','BC','BR','Table'],frameTpl:['{%this.renderDockedItems(out,values,0);%}','','
    {parent.baseCls}-{parent.ui}-{.}-tl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','
    {parent.baseCls}-{parent.ui}-{.}-ml{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mc{frameElCls}" role="presentation">','{%this.applyRenderTpl(out, values)%}','
    ','
    ','
    ','','
    {parent.baseCls}-{parent.ui}-{.}-bl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-br{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-bc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','{%this.renderDockedItems(out,values,1);%}'],frameTableTpl:['{%this.renderDockedItems(out,values,0);%}','','','','','','','','','','','','','','','','','','','','','','{%this.renderDockedItems(out,values,1);%}'],_renderState:0,ariaEl:'el',_layerCls:'x-layer',_fixedLayerCls:'x-fixed-layer',ariaStaticRoles:{presentation:!0,article:!0,definition:!0,directory:!0,document:!0,img:!0,heading:!0,math:!0,note:!0,banner:!0,complementary:!0,contentinfo:!0,navigation:!0,search:!0,'undefined':!0,'null':!0},statics:{makeRenderSetter:function(c,b){var a=c.name;return function(g){var d=this,f=d.renderConfigs||(d.renderConfigs={}),e=f[b];if(d._renderState>=b){(c.setter||c.getSetter()).call(d,g)}else {if(!e){f[b]=e={}}if(!(a in e)){e[a]=d[a]}d[a]=g}return d}},processRenderConfig:function(g,e,c){var h=this.prototype,j=this.getConfigurator(),k=Ext.util.Renderable,l=k.makeRenderSetter,d=g[e],b,a,i,f;for(i in d){a=Ext.Config.get(i);if(!h[f=a.names.set]){b=a.renderSetter||(a.renderSetter={});h[f]=b[c]||(b[c]=l(a,c))}}delete g[e];j.add(d)}},onClassMixedIn:function(a){var e=a.override,c=this.processRenderConfig,d=function(b){if(b.beforeRenderConfig){this.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){this.processRenderConfig(b,'renderConfig',3)}e.call(this,b)},b=function(e,b){e.override=d;e.processRenderConfig=c;if(b.beforeRenderConfig){e.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){e.processRenderConfig(b,'renderConfig',3)}};b(a,a.prototype);a.onExtended(b)},afterRender:function(){var a=this,c={},i=a.protoEl,g=a.el,d,b,h,f,e;a.finishRenderChildren();a._renderState=4;if(a.contentEl){h='x-';f=h+'hidden-';e=a.contentEl=Ext.get(a.contentEl);e.component=a;e.removeCls([h+'hidden',f+'display',f+'offsets']);a.getContentTarget().appendChild(e.dom)}i.writeTo(c);b=c.removed;if(b){g.removeCls(b)}b=c.cls;if(b.length){g.addCls(b)}b=c.style;if(c.style){g.setStyle(b)}a.protoEl=null;if(!a.ownerCt&&!a.skipLayout){a.updateLayout()}if(!(a.x&&a.y)&&(a.pageX||a.pageY)){a.setPagePosition(a.pageX,a.pageY)}if(a.disableOnRender){a.onDisable()}d=a.controller;if(d&&d.afterRender){d.afterRender(a)}},afterFirstLayout:function(l,k){var a=this,g=a.x,h=a.y,j=a.defaultAlign,i=a.alignOffset,f,d,e,b,c;if(!a.ownerLayout){d=g!==undefined;e=h!==undefined}if(a.floating&&!a.preventDefaultAlign&&(!d||!e)){if(a.floatParent){b=a.floatParent.getTargetEl().getViewRegion();c=a.el.getAlignToXY(a.alignTarget||a.floatParent.getTargetEl(),j,i);b.x=c[0]-b.x;b.y=c[1]-b.y}else {c=a.el.getAlignToXY(a.alignTarget||a.container,j,i);b=a.el.translateXY(c[0],c[1])}g=d?g:b.x;h=e?h:b.y;d=e=!0}if(d||e){a.setPosition(g,h)}a.onBoxReady(l,k);f=a.controller;if(f&&f.boxReady){f.boxReady(a)}},beforeRender:function(){var a=this,d=a.floating,e=a.getComponentLayout(),b=a.userCls,c;a._renderState=1;a.ariaUsesMainElement=a.ariaEl==='el';c=a.controller;if(c&&c.beforeRender){c.beforeRender(a)}a.initBindable();if(a.renderConfigs){a.flushRenderConfigs()}if(a.reference){a.publishState()}if(b){a.addCls(b)}if(d){a.addCls(a.fixed?a._fixedLayerCls:a._layerCls);b=d.cls;if(b){a.addCls(b)}}a.frame=a.frame||a.alwaysFramed;if(!e.initialized){e.initLayout()}a.initOverflow();a.setUI(a.ui)},doApplyRenderTpl:function(d,a){var c=a.$comp,b;if(!c.rendered){b=c.initRenderTpl();b.applyOut(a.renderData,d)}},getElConfig:function(){var a=this,e=a.autoEl,c=a.getFrameInfo(),b={tag:'div',tpl:c?a.initFramingTpl(c.table):a.initRenderTpl()},g=a.layoutTargetCls,d=a.protoEl,f=a.ariaRole,h;a.initStyles(d);if(g&&!c){d.addCls(g)}d.writeTo(b);d.flush();if(e){if(Ext.isString(e)){b.tag=e}else {Ext.apply(b,e)}}if(f&&a.ariaUsesMainElement){b.role=f;if(!a.ariaStaticRoles[f]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}}b.id=a.id;if(b.tpl){if(c){b.tplData=h=a.getFrameRenderData();h.renderData=a.initRenderData()}else {b.tplData=a.initRenderData()}}a.ariaRenderAttributes=null;return b},getInsertPosition:function(a){if(a!==undefined){if(Ext.isNumber(a)){a=this.container.dom.childNodes[a]}else {a=Ext.getDom(a)}}return a},getRenderTree:function(){var a=this,b=null;if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a._renderState=1;a.beforeRender();a.rendering=!0;a._renderState=2;b=a.getElConfig();if(a.el){b.id=a.$pid=Ext.id(null,a.el.identifiablePrefix)}}return b},initRenderData:function(){var a=this,c=a.ariaRole,d,b;d=Ext.apply({$comp:a,id:a.id,ui:a.ui,uiCls:a.uiCls,baseCls:a.baseCls,componentCls:a.componentCls,frame:a.frame,renderScroller:a.touchScroll,scrollerCls:a.scrollerCls,childElCls:''},a.renderData);if(c&&!a.ariaUsesMainElement){b={role:c};if(!a.ariaStaticRoles[c]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}d.ariaAttributes=b}return d},onRender:function(i,h){var a=this,e=a.x,f=a.y,b=null,g=a.el,d,c;a.applyRenderSelectors();a.rendering=null;a.rendered=!0;a._renderState=3;if(a.renderConfigs){a.flushRenderConfigs()}if(e!=null){b={x:e}}if(f!=null){(b=b||{}).y=f}if(!a.getFrameInfo()){d=a.width;c=a.height;if(typeof d==='number'){b=b||{};b.width=d}if(typeof c==='number'){b=b||{};b.height=c}}if(a.touchScroll===1){a.getOverflowEl().disableTouchScroll()}a.lastBox=g.lastBox=b},render:function(c,g){var a=this,b=a.el,f=a.ownerLayout,h,d,e;if(b&&!b.isElement){a.wrapPrimaryEl(b);b=a.el}if(!a.skipLayout){Ext.suspendLayouts()}c=a.initContainer(c);e=a.getInsertPosition(g);if(!b){d=a.getRenderTree();if(f&&f.transformItemRenderTree){d=f.transformItemRenderTree(d)}if(d){if(e){b=Ext.DomHelper.insertBefore(e,d)}else {b=Ext.DomHelper.append(c,d)}a.wrapPrimaryEl(b);a.cacheRefEls(b)}}else {if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a.beforeRender();a.needsRenderTpl=a.rendering=!0;a._renderState=2;a.initStyles(b);if(a.allowDomMove!==!1){if(e){c.dom.insertBefore(b.dom,e)}else {c.dom.appendChild(b.dom)}}}else {h=!0}}if(b&&!h){a.finishRender(g)}if(!a.skipLayout){Ext.resumeLayouts(!a.hidden&&!c.isDetachedBody)}},ensureAttachedToBody:function(c){var a=this,b;while(a.ownerCt){a=a.ownerCt}if(a.container.isDetachedBody){a.container=b=Ext.getBody();b.appendChild(a.el.dom);if(c){a.updateLayout()}if(typeof a.x==='number'||typeof a.y==='number'){a.setPosition(a.x,a.y)}}},privates:{applyRenderSelectors:function(){var a=this,b=a.renderSelectors,e=a.el,d,c;a.attachChildEls(e);a.ariaEl=a[a.ariaEl]||a.el;if(b){for(c in b){d=b[c];if(d){a[c]=e.selectNode(d,!1)}}}},cacheRefEls:function(a){a=a||this.el;var e=Ext.cache,h=Ext.dom.Element,f=a.isElement?a.dom:a,d=f.querySelectorAll('[data-ref]'),g=d.length,c,b;for(b=0;b','
    ','','{%this.renderContent(out,values)%}','
    '],resizeHandles:'all',shrinkWrap:2,toFrontOnShow:!0,synthetic:!1,tplWriteMode:'overwrite',ui:'default',uiCls:[],userCls:null,weight:null,allowDomMove:!0,autoGenId:!1,borderBoxCls:'x-border-box',componentLayoutCounter:0,contentPaddingProperty:'padding',deferLayouts:!1,frameSize:null,horizontalPosProp:'left',isComponent:!0,_isLayoutRoot:!1,layoutSuspendCount:0,liquidLayout:!1,maskOnDisable:!0,offsetsCls:'x-hidden-offsets',rendered:!1,rootCls:'x-body',scrollerCls:'x-scroll-scroller',scrollerSelector:'.x-scroll-scroller',_scrollFlags:{auto:{auto:{overflowX:'auto',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'auto',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'auto',overflowY:'scroll',x:!0,y:!0,both:!0}},'false':{auto:{overflowX:'hidden',overflowY:'auto',x:!1,y:!0,both:!1},'false':{overflowX:'hidden',overflowY:'hidden',x:!1,y:!1,both:!1},scroll:{overflowX:'hidden',overflowY:'scroll',x:!1,y:!0,both:!1}},scroll:{auto:{overflowX:'scroll',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'scroll',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'scroll',overflowY:'scroll',x:!0,y:!0,both:!0}},none:{overflowX:'',overflowY:'',x:!1,y:!1,both:!1}},_scrollableCfg:{x:{x:!0,y:!1},y:{x:!1,y:!0},horizontal:{x:!0,y:!1},vertical:{x:!1,y:!0},both:{x:!0,y:!0},'true':{x:!0,y:!0}},validIdRe:Ext.validIdRe,constructor:function(b){var a=this,e,j,i,h,g,c,d,f;b=b||{};if(b.initialConfig){if(b.isAction){a.baseAction=b}b=b.initialConfig}else {if(b.tagName||b.dom||Ext.isString(b)){b={applyTo:b,id:b.id||b}}}a.initialConfig=b;a.getId();a.protoEl=new Ext.util.ProtoElement();a.initConfig(b);if(a.scrollable==null){g=a.autoScroll;if(g){f=!!g}else {c=a.overflowX;d=a.overflowY;if(c||d){f={x:c&&c!=='hidden'?c:!1,y:d&&d!=='hidden'?d:!1}}}if(f){a.setScrollable(f)}}i=a.xhooks;if(i){delete a.xhooks;Ext.override(a,i)}a.mixins.elementCt.constructor.call(a);a.setupProtoEl();if(a.cls){a.initialCls=a.cls;a.protoEl.addCls(a.cls)}if(a.style){a.initialStyle=a.style;a.protoEl.setStyle(a.style)}a.renderData=a.renderData||{};a.initComponent();if(!a.preventRegister){Ext.ComponentManager.register(a)}a.mixins.state.constructor.call(a);a.addStateEvents('resize');h=a.getController();if(h){h.init(a)}if(a.plugins){for(e=0,j=a.plugins.length;eh){o=j;f=!0}if(e&&k>i){p=k;f=!0}if(d||e){g=a.el.getStyle('overflow');if(g!=='hidden'){a.el.setStyle('overflow','hidden')}}if(f){r=!Ext.isNumber(a.width);q=!Ext.isNumber(a.height);a.setSize(p,o);a.el.setSize(i,h);if(r){delete a.width}if(q){delete a.height}}if(e){c.width=k}if(d){c.height=j}}n=a.constrain;l=a.constrainHeader;if(n||l){a.constrain=a.constrainHeader=!1;m=b.callback;b.callback=function(){a.constrain=n;a.constrainHeader=l;if(m){m.call(b.scope||a,arguments)}if(g!=='hidden'){a.el.setStyle('overflow',g)}}}return a.mixins.animate.animate.apply(a,arguments)},applyScrollable:function(a,c){var b=this,f=b.rendered,e,d;if(a){if(a===!0||typeof a==='string'){e=b._scrollableCfg[a];a=e}if(c){c.setConfig(a);a=c}else {a=Ext.Object.chain(a);if(f){a.element=b.getOverflowEl();d=b.getScrollerEl();if(d){a.innerElement=d}}a.autoRefresh=!1;if(Ext.supports.touchScroll===1){a.translatable={translationMethod:'scrollparent'};a.indicators=!1}a=Ext.scroll.Scroller.create(a);a.component=b}}else {if(c){c.setConfig({x:!1,y:!1});c.destroy();a=null}}if(b.rendered&&!b.destroying&&!b.destroyed){if(a){b.getOverflowStyle()}else {b.scrollFlags=b._scrollFlags.none}b.updateLayout()}return a},beforeComponentLayout:function(){return !0},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(a,b,f){var d=this,c=null,e,g,h,i;if(a){if(Ext.isNumber(e=a[0])){f=b;b=a[1];a=e}else {if((e=a.x)!==undefined){f=b;b=a.y;a=e}}}if(d.constrain||d.constrainHeader){c=d.calculateConstrainedPosition(null,[a,b],!0);if(c){a=c[0];b=c[1]}}g=a!==undefined;h=b!==undefined;if(g||h){d.x=a;d.y=b;i=d.adjustPosition(a,b);c={x:i.x,y:i.y,anim:f,hasX:g,hasY:h}}return c},beforeShow:Ext.emptyFn,bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.getBubbleTarget()}return this},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},cloneConfig:function(a){a=a||{};var d=a.id||Ext.id(),c=Ext.applyIf(a,this.initialConfig),b;c.id=d;b=Ext.getClass(this);return new b(c)},destroy:function(){var a=this,d=a.renderSelectors,f=a.getConfig('viewModel',!0),g=a.getConfig('session',!0),b,c,e;if(!a.hasListeners.beforedestroy||a.fireEvent('beforedestroy',a)!==!1){a.isDestroying=a.destroying=!0;c=a.floatParent||a.ownerCt;if(a.floating){delete a.floatParent;if(a.zIndexManager){a.zIndexManager.unregister(a);a.zIndexManager=null}}a.removeBindings();a.beforeDestroy();a.destroyBindable();if(c&&c.remove){c.remove(a,!1)}a.stopAnimation();a.onDestroy();Ext.destroy(a.plugins);if(a.rendered){Ext.Component.cancelLayout(a,!0)}a.componentLayout=null;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}if(!a.preventRegister){Ext.ComponentManager.unregister(a)}a.mixins.state.destroy.call(a);if(a.floating){a.onFloatDestroy()}a.clearListeners();if(a.rendered){if(!a.preserveElOnDestroy){a.el.destroy()}a.el.component=null;a.mixins.elementCt.destroy.call(a);if(d){for(b in d){if(d.hasOwnProperty(b)){e=a[b];if(e){delete a[b];e.destroy()}}}}a.data=a.el=a.frameBody=a.rendered=a.afterRenderEvents=null;a.tpl=a.renderTpl=a.renderData=null;a.focusableContainer=a.container=a.scrollable=null}a.isDestroying=a.destroying=!1;a.callParent()}},disable:function(e,d){var a=this,b=a.focusableContainer,c=a.getInherited();if(!d){c.disabled=!0;a.savedDisabled=!0}if(a.maskOnDisable){c.disableMask=!0}if(!a.disabled){if(b){b.beforeFocusableChildDisable(a)}a.addCls(a.disabledCls);if(a.rendered){a.onDisable()}else {a.disableOnRender=!0}a.disabled=!0;if(e!==!0){a.fireEvent('disable',a)}if(b){b.onFocusableChildDisable(a)}}return a},doFireEvent:function(c,d,e){var a=this,b=a.mixins.observable.doFireEvent.call(a,c,d,e);if(b!==!1){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,d)}return b},enable:function(e,c){var a=this,b=a.focusableContainer,d=a.getInherited();if(!c){delete a.getInherited().disabled;a.savedDisabled=!1}if(a.maskOnDisable){delete d.disableMask}if(a.disabled){if(!(c&&d.hasOwnProperty('disabled'))){if(b){b.beforeFocusableChildEnable(a)}a.disableOnRender=!1;a.removeCls(a.disabledCls);if(a.rendered){a.onEnable()}a.disabled=!1;if(e!==!0){a.fireEvent('enable',a)}if(b){b.onFocusableChildEnable(a)}}}return a},findParentBy:function(b){var a;for(a=this.getRefOwner();a&&!b(a,this);a=a.getRefOwner()){}return a||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.constructor===a}):this.up(a)},findPlugin:function(c){var a,b=this.plugins,d=b&&b.length;for(a=0;a-1;e--){b=g[e];if(b.query){a=b.query(c);a=a[a.length-1];if(a){return a}}if(b.is(c)){return b}}return f.previousNode(c,!0)}return null},previousSibling:function(c){var e=this.ownerCt,b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.getAt(--a)}}}}return null},registerFloatingItem:function(b){var a=this;if(!a.floatingDescendants){a.floatingDescendants=new Ext.ZIndexManager(a)}a.floatingDescendants.register(b)},removeCls:function(c){var a=this,b=a.rendered?a.el:a.protoEl;b.removeCls.apply(b,arguments);return a},removeClsWithUI:function(a,k){var b=this,d=[],e=0,g=Ext.Array,i=g.remove,j=b.uiCls=g.clone(b.uiCls),f=b.activeUI,h,c;if(typeof a==='string'){a=a.indexOf(' ')<0?[a]:Ext.String.splitWords(a)}h=a.length;for(e=0;e1){arguments[0]=null;a.pendingShow=arguments}else {a.pendingShow=!0}}else {if(b&&a.isVisible()){if(a.floating){a.onFloatShow()}}else {if(a.fireEvent('beforeshow',a)!==!1){a.hidden=!1;delete this.getInherited().hidden;Ext.suspendLayouts();if(!b&&(a.autoRender||a.floating)){a.doAutoRender();b=a.rendered}if(b){a.beforeShow();Ext.resumeLayouts();a.onShow.apply(a,arguments);a.afterShow.apply(a,arguments)}else {Ext.resumeLayouts(!0)}}else {a.onShowVeto()}}}return a},showAt:function(b,c,d){var a=this;if(!a.rendered&&(a.autoRender||a.floating)){a.x=b;a.y=c;return a.show()}if(a.floating){a.setPosition(b,c,d)}else {a.setPagePosition(b,c,d)}return a.show()},showBy:function(b,d,c){var a=this;if(a.floating&&b){a.alignTarget=b;if(d){a.defaultAlign=d}if(c){a.alignOffset=c}a.show();if(!a.hidden){a.alignTo(b,d||a.defaultAlign,c||a.alignOffset)}}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=!0}},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(!1)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){d++;if(c.isComponent){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},update:function(b,i,k,j){var a=this,h=a.tpl&&!Ext.isString(b),g=a.getScrollable(),f=a.focusableContainer,e,c,d;if(h){a.data=b&&b.isEntity?b.getData(!0):b}else {a.html=Ext.isObject(b)?Ext.DomHelper.markup(b):b}if(a.rendered){e=a.getSizeModel();c=e.width.shrinkWrap||e.height.shrinkWrap;if(a.isContainer){d=a.layout.getRenderTarget();c=c||a.items.items.length>0}else {d=a.touchScroll?a.getScrollerEl():a.getTargetEl()}if(h){a.tpl[a.tplWriteMode](d,a.data||{})}else {d.setHtml(a.html,i,k,j||a)}if(c){a.updateLayout()}if(g){g.refresh(!0)}if(f){f.onFocusableChildUpdate(a)}}},setHtml:function(c,a,b){this.update(c,a,null,b)},applyData:function(a){this.update(a)},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},_asLayoutRoot:{isRoot:!0},_notAsLayoutRoot:{isRoot:!1},updateLayout:function(b){var a=this,e,d=a.lastBox,c=b&&b.isRoot;if(d){d.invalid=!0}if(!a.rendered||a.layoutSuspendCount||a.suspendLayout){return}if(a.hidden){Ext.Component.cancelLayout(a)}else {if(typeof c!=='boolean'){c=a.isLayoutRoot()}}if(c||!a.ownerLayout||!a.ownerLayout.onContentChange(a)){if(!a.isLayoutSuspended()){e=b&&b.hasOwnProperty('defer')?b.defer:a.deferLayouts;Ext.Component.updateLayout(a,e)}}},updateMaxHeight:function(b,a){this.changeConstraint(b,a,'min','max-height','height')},updateMaxWidth:function(b,a){this.changeConstraint(b,a,'min','max-width','width')},updateMinHeight:function(b,a){this.changeConstraint(b,a,'max','min-height','height')},updateMinWidth:function(b,a){this.changeConstraint(b,a,'max','min-width','width')},getAnchorToXY:function(d,a,c,b){return d.getAnchorXY(a,c,b)},getBorderPadding:function(){return this.el.getBorderPadding()},getLocalX:function(){return this.el.getLocalX()},getLocalXY:function(){return this.el.getLocalXY()},getLocalY:function(){return this.el.getLocalY()},getX:function(){return this.el.getX()},getXY:function(){return this.el.getXY()},getY:function(){return this.el.getY()},setLocalX:function(a){this.el.setLocalX(a)},setLocalXY:function(a,b){this.el.setLocalXY(a,b)},setLocalY:function(a){this.el.setLocalY(a)},setX:function(b,a){this.el.setX(b,a)},setXY:function(b,a){this.el.setXY(b,a)},setY:function(b,a){this.el.setY(b,a)},privates:{addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},addUIToElement:function(){var a=this,d=a.baseCls+'-'+a.ui,e,c,f,b;a.addCls(d);if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){f=a[c];if(f){f.addCls(d+b)}}}}},changeConstraint:function(b,g,f,c,d){var a=this,e=a[d];if(b!=null&&typeof e==='number'){a[d]=Math[f](e,b)}if(a.liquidLayout){if(b!=null){a.setStyle(c,b+'px')}else {if(g){a.setStyle(c,'')}}}if(a.rendered){a.updateLayout()}},constructPlugin:function(a){var b=this;if(typeof a==='string'){a=Ext.PluginManager.create({},a,b)}else {a=Ext.PluginManager.create(a,null,b)}return a},constructPlugins:function(){var d=this,a=d.plugins,c,b,e;if(a){c=[];c.processed=!0;if(!Ext.isArray(a)){a=[a]}for(b=0,e=a.length;b=0){h=m[c].splitterDelta;if(e.getAt(d+h)!==b){e.remove(b);d=e.indexOf(a);if(h>0){++d}e.insert(d,b)}}}if(j){if(l){a.expand(!1)}i.remove(j);a.placeholder=null;if(l){a.collapse(null,!1)}}i.updateLayout();Ext.resumeLayouts(!0);a.fireEventArgs('changeregion',[a,g])}else {a.region=c}}return g},setWeight:function(b){var a=this,e=a.getOwningBorderContainer(),d=a.placeholder,c=a.weight;if(b!==c){if(a.fireEventArgs('beforechangeweight',[a,b])!==!1){a.weight=b;if(d){d.weight=b}if(e){e.updateLayout()}a.fireEventArgs('changeweight',[a,c])}}return c}},function(b){var a=b.prototype;a.setBorderRegion=a.setRegion;a.setRegionWeight=a.setWeight});Ext.define('Ext.theme.neptune.Component',{override:'Ext.Component',initComponent:function(){arguments.callee.$previous.call(this);if(this.dock&&this.border===undefined){this.border=!1}},privates:{initStyles:function(){var a=this,b=a.hasOwnProperty('border'),c=a.border;if(a.dock){a.border=null}arguments.callee.$previous.apply(this,arguments);if(b){a.border=c}else {delete a.border}}}},function(){Ext.namespace('Ext.theme.is').Neptune=!0;Ext.theme.name='Neptune'});Ext.define('Ext.theme.crisp.Component',{override:'Ext.Component'},function(){Ext.namespace('Ext.theme.is').Crisp=!0;Ext.theme.name='Crisp'});Ext.define('Ext.overrides.app.domain.Component',{override:'Ext.app.domain.Component'},function(a){a.monitor(Ext.Component)});Ext.cmd.derive('Ext.app.EventBus',Ext.Base,{singleton:!0,constructor:function(){var a=this,b=Ext.app.EventDomain.instances;a.callParent();a.domains=b;a.bus=b.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(b,c){var d=this.domains,a;for(a in b){if(b.hasOwnProperty(a)){d[a].listen(b[a],c)}}},unlisten:function(c){var a=Ext.app.EventDomain.instances,b;for(b in a){a[b].unlisten(c)}}},1,0,0,0,0,0,[Ext.app,'EventBus'],0);Ext.cmd.derive('Ext.app.domain.Global',Ext.app.EventDomain,{singleton:!0,type:'global',constructor:function(){var a=this;a.callParent();a.monitor(Ext.GlobalEvents)},listen:function(b,a){this.callParent([{global:b},a])},match:Ext.returnTrue},1,0,0,0,0,0,[Ext.app.domain,'Global'],0);Ext.cmd.derive('Ext.app.BaseController',Ext.Base,{isController:!0,config:{id:null,control:null,listen:null,routes:null,before:null},constructor:function(b){var a=this;Ext.apply(a,b);delete a.control;delete a.listen;a.eventbus=Ext.app.EventBus;a.mixins.observable.constructor.call(a,b);a.ensureId()},applyListen:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},applyControl:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},updateControl:function(a){this.ensureId();if(a){this.control(a)}},updateListen:function(a){this.ensureId();if(a){this.listen(a)}},updateRoutes:function(b){if(b){var e=this,f=e.getBefore()||{},g=Ext.app.route.Router,c,a,d;for(c in b){a=b[c];if(Ext.isString(a)){a={action:a}}d=a.action;if(!a.before){a.before=f[d]}g.connect(c,a,e)}}},isActive:function(){return !0},control:function(b,c,f){var e=this,d=f,a;if(Ext.isString(b)){a={};a[b]=c}else {a=b;d=c}e.eventbus.control(a,d||e)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var a=this,b=a.eventbus;Ext.app.route.Router.disconnectAll(a);if(b){b.unlisten(a);a.eventbus=null}a.callParent()},redirectTo:function(a,c){if(a.isModel){a=a.toUrl()}if(!c){var b=Ext.util.History.getToken();if(b===a){return !1}}else {Ext.app.route.Router.onStateChange(a)}Ext.util.History.add(a);return !0}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.app,'BaseController'],0);Ext.cmd.derive('Ext.app.Util',Ext.Base,{},0,0,0,0,0,0,[Ext.app,'Util'],function(){Ext.apply(Ext.app,{namespaces:{Ext:{}},addNamespaces:function(a){var d=Ext.app.namespaces,b,c;if(!Ext.isArray(a)){a=[a]}for(b=0,c=a.length;bb.length&&a+'.'===d.substring(0,a.length+1)){b=a}}return b===''?undefined:b},setupPaths:function(e,b,c){var a=Ext.manifest,d;if(e&&b!==null){a=a&&a.paths;if(!a||b!==undefined){Ext.Loader.setPath(e,b===undefined?'app':b)}}if(c){for(d in c){if(c.hasOwnProperty(d)){Ext.Loader.setPath(d,c[d])}}}}});Ext.getNamespace=Ext.app.getNamespace});Ext.cmd.derive('Ext.util.CollectionKey',Ext.Base,{isCollectionKey:!0,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:!0},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(i,b){var j=this.map||this.getMap(),c=j[i],e=this.getCollection(),h=e.length,d,a,f,g;if(!c){return -1}if(b===undefined){b=-1}if(c instanceof Array){f=c;a=h;for(g=f.length;g-->0;){d=e.indexOf(f[g]);if(db){a=d}}if(a===h){return -1}}else {a=e.indexOf(c)}return a>b?a:-1},updateKey:function(e,d){var f=this,c=f.map,a,b;if(c){a=c[d];if(a instanceof Array){b=Ext.Array.indexOf(a,e);if(b>=0){if(a.length>2){a.splice(b,1)}else {c[d]=a[1-b]}}}else {if(a){delete c[d]}}f.add([e])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(a,b){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(g,h){var a=this,f=a.map,d=h.items,c=d.length,b,i,e;if(f){if(a.getUnique()&&cb?1:a0&&a.getAutoSort(),r=a.getSource(),q=0,g=!1,o=!1,e,l,k,m,b,d;if(r&&!r.updating){r.itemChanged(c,p,f,u)}else {l=a.getKey(c);if(s){b=a.indexOfKey(j?f:l);o=b<0;g=a.isItemFiltered(c);n=o!==g}if(n){if(g){q=[c];d=-1}else {m=[c];d=a.length}}else {if(v&&!g){if(!s){b=a.indexOfKey(j?f:l)}k=a.getSortFn();if(b!==-1){if(b&&k(i[b-1],i[b])>0){h=-1;d=Ext.Array.binarySearch(i,c,0,b,k)}else {if(b0){h=1;d=Ext.Array.binarySearch(i,c,b+1,k)}}if(h){m=[c]}}}}e={item:c,key:l,index:d,filterChanged:n,keyChanged:j,indexChanged:!!h,filtered:g,oldIndex:b,newIndex:d,wasFiltered:o,meta:u};if(j){e.oldKey=f}if(p){e.modified=p}a.beginUpdate();a.notify('beforeitemchange',[e]);if(j){a.updateKey(c,f)}if(m||q){a.splice(d,q,m)}if(h>0){e.newIndex--}else {if(h<0){e.oldIndex++}}a.notify(g?'filtereditemchange':'itemchange',[e]);a.endUpdate()}},remove:function(d){var a=this,c=a.decodeRemoveItems(arguments,0),b=a.length;a.splice(0,c);return b-a.length},removeAll:function(){var a=this,b=a.length;if(a.generation&&b){a.splice(0,b)}return a},removeAt:function(j,f){var a=this,e=a.length,i=Ext.Number,g=i.clipIndices(e,[j,f===undefined?1:f],i.Clip.COUNT),c=g[0],d=g[1]-c,h=d===1&&a.getAt(c),b;a.splice(c,d);b=a.length-e;return h&&b?h:b},removeByKey:function(b){var a=this.getByKey(b);if(!a||!this.remove(a)){return !1}return a},replace:function(a){var b=this.indexOf(a);if(b===-1){this.add(a)}else {this.insert(b,a)}},splice:function(K,E,L){var b=this,D=b.sorted&&b.getAutoSort(),F=b.map,o=b.items,r=b.length,n=E instanceof Array?b.decodeRemoveItems(E):null,G=!n,J=Ext.Number,I=J.clipIndices(r,[K,G?E:0],J.Clip.COUNT),m=I[0],v=I[1],x=v-m,p=b.decodeItems(arguments,2),h=p?p.length:0,c,A,C,d=m,k=b.indices||(h||n?b.getIndices():null),e=null,i=x?[m]:null,l=null,t=b.getSource(),j,B,z,a,u,g,w,f,s,q,y,H,v;if(t&&!t.updating){if(G){n=[];for(a=0;a1){if(!c.$cloned){p=c=c.slice(0)}b.sortData(c)}}for(a=0;a0;){f=b.getKey(n[a]);if((g=k[f])!==undefined){(i||(i=[])).push(g)}}if(!e&&!i){return b}b.beginUpdate();if(i){j=null;z=[];C={};if(i.length>1){i.sort(Ext.Array.numericSortFn)}for(a=0,q=i.length;aj.at+B.length){z.push(j={at:g,items:B=[],keys:s=[],map:C,next:j,replacement:e});if(e){e.replaced=j}}B.push(C[f]=u);s.push(f);if(g1&&g===m){--x;i[a--]=++m}}if(e){e.at=d}for(w=z.length;w-->0;){j=z[w];a=j.at;q=j.items.length;if(a+q1&&r){b.spliceMerge(c,l)}else {if(D){if(h>1){d=0;b.indices=k=null}else {d=H.findInsertionIndex(e.items[0],o,b.getSortFn())}}if(d===r){v=d;for(a=c.length-1;a>=0;--a){o[v+a]=c[a]}k=b.indices;if(k){for(a=0;a-1){c=e[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(l,i){var a=this,j=i.atItem,d=i.items,h=a.requestedIndex,c,b,e,f,g,k;if(!a.sorted){if(h!==undefined){b=h}else {if(j){b=a.indexOf(j);if(b===-1){b=a.findInsertIndex(d[0])}else {++b}}else {b=0}}}if(a.getAutoFilter()&&a.filtered){for(f=0,k=d.length;fc)){c=a}}return [c,b]},count:function(a){return a.length},extremes:function(k,j,l,i,f){var e=null,d=null,c,b,g,h,a;for(c=j;ch)){h=a;d=b}}return [d,e]},max:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[1]},maxItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[1]},min:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[0]},minItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[0]},sum:function(g,f,h,e,c){for(var a,d=0,b=f;b1){Ext.Array.sort(a,b.prioritySortFn)}},prioritySortFn:function(a,b){var c=a.observerPriority||0,d=b.observerPriority||0;return c-d},applyExtraKeys:function(e,g){var d=this,f=g||{},b,c,a;for(c in e){a=e[c];if(!a.isCollectionKey){b={collection:d};if(Ext.isString(a)){b.property=a}else {b=Ext.apply(b,a)}a=new Ext.util.CollectionKey(b)}else {a.setCollection(d)}f[c]=d[c]=a;a.name=c}return f},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,'Ext.util.Grouper')}return a},decodeItems:function(e,d){var g=this,a=d===undefined?e:e[d],b,f,c;if(!a||!a.$cloned){b=e.length>d+1||!Ext.isIterable(a);if(b){a=Ext.Array.slice(e,d);if(a.length===1&&a[0]===undefined){a.length=0}}f=g.getDecoder();if(f){if(!b){a=a.slice(0);b=!0}for(c=a.length;c-->0;){if((a[c]=f.call(g,a[c]))===!1){a.splice(c,1)}}}if(b){a.$cloned=!0}}return a},getIndices:function(){var a=this,c=a.indices,d=a.items,f=d.length,b,e;if(!c){a.indices=c={};++a.indexRebuilds;for(b=0;b0;if(d||c){b.filtered=c;b.onFilterChange(a)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==!1){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(c,b,d){var a=this.getSorters();a.addSort.apply(a,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify('beforesort',[a.getSorters(!1)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify('sort')},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(c,b,a){if(!b){b=this.items}if(!a){a=this.getSortFn()}return Ext.Array.binarySearch(b,c,a)},applySorters:function(a,b){if(a==null||a&&a.isSorterCollection){return a}if(a){if(!b){b=this.getSorters()}b.splice(0,b.length,a)}return b},createSortFn:function(){var d=this,b=d.getGrouper(),c=d.getSorters(!1),a=c?c.getSortFn():null;if(!b){return a}return function(d,e){var c=b.sort(d,e);if(!c&&a){c=a(d,e)}return c}},updateGrouper:function(c){var a=this,b=a.getGroups(),e=a.getSorters(),d;a.onSorterChange();a.grouped=!!c;if(c){if(a.getTrackGroups()){if(!b){b=new Ext.util.GroupCollection({itemRoot:a.getRootProperty()});b.$groupable=a;a.setGroups(b)}b.setGrouper(c);d=!0}}else {if(b){a.removeObserver(b);b.destroy()}a.setGroups(null)}if(!e.updating){a.onEndUpdateSorters(e)}if(d){b.onCollectionRefresh(a)}},updateSorters:function(b,c){var a=this;if(c){c.un('endupdate','onEndUpdateSorters',a)}if(b){b.on({endupdate:'onEndUpdateSorters',scope:a,priority:a.$endUpdatePriority});b.$sortable=a}a.onSorterChange();a.onEndUpdateSorters(b)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(b){var a=this,d=a.sorted,c=a.grouped&&a.getAutoGroup()||b&&b.length>0;if(d||c){a.sorted=!!c;a.onSortChange(b)}},removeObserver:function(b){var a=this.observers;if(a){Ext.Array.remove(a,b)}},spliceMerge:function(i,q){var f=this,r=f.map,k=i.length,g=0,n=f.items,m=n.length,h=[],c=0,a=[],p=f.getSortFn(),l,j,d,b,o,e;f.items=a;for(e=0;e1){h[c-2].next=h[c-1]}for(;e1){h[c-2].next=h[c-1]}a.push(b);for(j=e+1;j=0){break}a.push(b);l.push(b)}}for(;g0)}e=j.createAssociationStore(i,f,b,h);e.$source=q;if(!b&&(j.autoLoad||a)){n=!0}f[m]=e}if(a){if(n||e.isLoading()){e.on('load',function(h,i,e,g){d=[h,g];c=c||a.scope||f;if(e){Ext.callback(a.success,c,d)}else {Ext.callback(a.failure,c,d)}d.push(e);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)},null,{single:!0})}else {d=[e,null];c=c||a.scope||f;Ext.callback(a.success,c,d);d.push(!0);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)}}if(n&&!e.isLoading()){e.load()}return e},getAssociatedItem:function(b){var a=this.isMany?this.getStoreName():this.getInstanceName();return b[a]||null},onDrop:Ext.emptyFn,getReaderRoot:function(){var a=this;return a.associationKey||(a.associationKey=a.association.schema.getNamer().readerRoot(a.role))},getReader:function(){var b=this,a=b.reader,d=b.cls,c=!b.associationKey,e=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:e,useSimpleAccessors:c,type:b.defaultReaderType});a=b.reader=Ext.createByAlias('reader.'+a.type,a)}return a},getInstanceName:function(){var a=this;return a.instanceName||(a.instanceName=a.association.schema.getNamer().instanceName(a.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName='$old'+this.getInstanceName())},getStoreName:function(){var a=this;return a.storeName||(a.storeName=a.association.schema.getNamer().storeName(a.role))},constructReader:function(h){var b=this,a=b.getReader(),e=b.cls,g=!b.associationKey,f=b.getReaderRoot(),c,d;if(!a){d=e.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(f)}else {a=new h.self({model:e,useSimpleAccessors:g,rootProperty:f})}b.reader=a}return a},read:function(f,e,d,c){var a=this.constructReader(d),b=a.getRoot(e);if(b){return a.readRecords(b,c,this._internalReadOptions)}},getCallbackOptions:function(a,c,b){if(typeof a==='function'){a={callback:a,scope:c||b}}else {if(a){a=Ext.apply({},a);a.scope=c||a.scope||b}}return a},doGetFK:function(d,b,f){var i=this,l=i.cls,j=i.association.getFieldName(),h=i.getInstanceName(),a=d[h],m=b&&b.reload,e=a!==undefined&&!m,k=d.session,c,g;if(!e){if(k){c=d.get(j);if(c||c===0){e=k.peekRecord(l,c,!0)&&!m;a=k.getRecord(l,c,!1)}else {e=!0;d[h]=a=null}}else {if(j){c=d.get(j);if(!c&&c!==0){e=!0;d[h]=a=null}else {if(!a){a=l.createWithId(c)}}}else {e=!0}}}else {if(a){e=!a.isLoading()}}if(e){if(b){g=[a,null];f=f||b.scope||d;Ext.callback(b.success,f,g);g.push(!0);Ext.callback(b,f,g);Ext.callback(b.callback,f,g)}}else {d[h]=a;b=i.getCallbackOptions(b,f,d);a.load(b)}return a},doSetFK:function(a,c,e,l){var f=this,i=f.association.getFieldName(),h=f.getInstanceName(),b=a[h],d=f.inverse,j=d.setterName,m=a.session,k,g;if(c&&c.isEntity){if(b!==c){g=f.getOldInstanceName();a[g]=b;a[h]=c;if(b&&b.isEntity){b[d.getInstanceName()]=undefined}if(i){a.set(i,c.getId())}delete a[g];if(j){c[j](a)}}}else {k=a.changingKey&&!d.isMany||a.set(i,c);if(k&&b&&b.isEntity&&!b.isEqual(b.getId(),c)){a[h]=undefined;if(!d.isMany){b[d.getInstanceName()]=undefined}}}if(e){if(Ext.isFunction(e)){e={callback:e,scope:l||a}}return a.save(e)}}},1,0,0,0,0,0,[Ext.data.schema,'Role'],0);Ext.cmd.derive('Ext.data.schema.Association',Ext.Base,{isOneToOne:!1,isManyToOne:!1,isManyToMany:!1,owner:null,field:null,constructor:function(d){var a=this,c,b;Ext.apply(a,d);a.left=c=new a.Left(a,a.left);a.right=b=new a.Right(a,a.right);c.inverse=b;b.inverse=c},hasField:function(){return !!this.field},getFieldName:function(){var a=this.field;return a?a.name:''}},1,0,0,0,0,0,[Ext.data.schema,'Association'],0);Ext.cmd.derive('Ext.data.schema.OneToOne',Ext.data.schema.Association,{isOneToOne:!0,isToOne:!0,kind:'one-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',onDrop:function(a,c){var b=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(b){b[this.inverse.getInstanceName()]=null}},createGetter:function(){var a=this;return function(){return a.doGet(this)}},createSetter:function(){var a=this;return function(b){return a.doSet(this,b)}},doGet:function(a){var c=this.getInstanceName(),b=a[c],d=a.session;if(!b&&d){}return b||null},doSet:function(a,b){var d=this.getInstanceName(),e=a[d],c=this.inverse.setterName;if(e!==b){a[d]=b;if(c){b[c](a)}}return e},read:function(a,g,f,e){var c=this,d=c.callParent([a,g,f,e]),b;if(d){b=d[0];if(b){b[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=b;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(d,b,c){return a.doSetFK(this,d,b,c)}},onDrop:function(c,f){var b=this,e=b.association.field,a=b.getAssociatedItem(c),d;if(b.inverse.owner){if(f){d=c.get(e.name);if(d||d===0){a=f.getEntry(b.cls,d).record;if(a){a.drop()}}}else {if(a){a.drop()}}}if(e){c.set(e.name,null)}c[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(b,f,c){var a=this,e=b[a.getOldInstanceName()]||a.getAssociatedItem(b),h=c||c===0,d=a.getInstanceName(),g=a.cls;b.changingKey=!0;a.doSetFK(b,c);if(!h){b[d]=null}else {if(f&&g){b[d]=f.peekRecord(g,c)||undefined}}if(a.inverse.owner&&e){a.association.schema.queueKeyCheck(e,a)}b.changingKey=!1},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(a,o,n,m){var f=this,l=f.callParent([a,o,n,m]),b,d,g,c,k,h,j,i,e;if(l){b=l[0];d=f.association.field;if(d){g=d.name}c=a.session;e=a.data;if(b){if(c){k=c.getRefs(b,this.inverse,!0);i=k&&k[a.id]||e[g]===undefined}else {i=!0}if(i){if(d){j=e[g];h=b.id;if(j!==h){e[g]=h;if(c){c.updateReference(a,d,h,j)}}}b[f.inverse.getInstanceName()]=a;a[f.getInstanceName()]=b}delete e[f.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,'OneToOne'],0);Ext.cmd.derive('Ext.data.schema.ManyToOne',Ext.data.schema.Association,{isManyToOne:!0,isToOne:!0,kind:'many-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,onDrop:function(d,f){var b=this,e=b.getAssociatedItem(d),a,g,c,i,h;if(e){a=e.removeAll();if(a&&b.inverse.owner){for(c=0,g=a.length;c0){a=c[h];e=!a.isEqual(l,a.get(i));b=f?null:d;if(e!==f){a.changingKey=!0;a[k](b);a.changingKey=!1}else {a[j]=b}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',onDrop:function(a,c){var b=this.association.field;if(b){a.set(b.name,null)}a[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(c,b){var d=this.association.field,a;a=this.getSessionStore(c,b.get(d.name));if(a&&!a.contains(b)){a.add(b)}},onValueChange:function(b,f,d,l){var c=this,j=c.getInstanceName(),m=c.cls,i,g,a,h,n,e,k;if(!b.changingKey){i=d||d===0;if(!i){b[j]=null}if(f){a=c.getSessionStore(f,l);if(a){a.remove(b)}if(i){a=c.getSessionStore(f,d);if(a&&!a.isLoading()){a.add(b)}if(m){k=f.peekRecord(m,d)}b[j]=k||undefined}}else {g=b.joined;if(g){for(h=0,n=g.length;h=0){a.remove([b])}}else {if(b<0){d=a.getSession().getEntry(this.type,e);c=d&&d.record;if(c){a.add(c)}}}a.matrixUpdate=0}},adoptAssociated:function(e,d){var a=this.getAssociatedItem(e),c,b,f;if(a){a.setSession(d);this.onStoreCreate(a,d,e.getId());c=a.getData().items;for(b=0,f=c.length;b1){a[b]=this.apply('capitalize',a[b])}return a.join('')},getterName:function(a){var b=a.role;if(a&&a.isMany){return b}return 'get'+this.apply('capitalize',b)},inverseFieldRole:function(e,f,c,d){var a=this,b=a.apply(f?'uniRole':'multiRole',e),g=a.apply('pluralize',c),h=a.apply('undotted,pluralize',d);if(g.toLowerCase()!==h.toLowerCase()){b=c+a.apply('capitalize',b)}return b},manyToMany:function(c,e,d){var b=this,a=b.apply('undotted,capitalize,singularize',e)+b.apply('undotted,capitalize,pluralize',d);if(c){a=b.apply('capitalize',c+a)}return a},manyToOne:function(d,b,a,c){return this.apply('capitalize,singularize',a)+this.apply('capitalize',b)},matrixRole:function(a,c){var b=this.apply(a?'multiRole,capitalize':'multiRole',c);return a?a+b:b},oneToOne:function(d,b,a,c){return this.apply('undotted,capitalize,singularize',a)+this.apply('capitalize',b)},setterName:function(a){return 'set'+this.apply('capitalize',a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(b,c){var e=this,h=e.cache,i=h[c]||(h[c]={}),a=i[b],d,g,f;if(!a){if(b.indexOf(',')<0){a=e[b](c)}else {g=(f=b.split(',')).length;a=c;for(d=0;d=Math.max(a,b)},find:function(g,h,d,e,b,c){var a=!e,f=!!(a&&c);return this.getData().findIndex(g,h,d,a,f,!b)},findRecord:function(){var a=this,b=a.find.apply(a,arguments);return b!==-1?a.getAt(b):null},findExact:function(a,c,b){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(a),c)},this,b)},findBy:function(c,a,b){return this.getData().findIndexBy(c,a,b)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,a){var c=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==!1){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(c,a){var b;if(!a){a=this.createFiltersCollection();b=!0}a.add(c);if(b){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==!1){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(c,a){var b;if(!a){a=this.createSortersCollection();b=!0}a.add(c);if(b){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(a,c,b){if(Ext.isString(a)){a={property:a,value:c}}this.suppressNextFilter=!!b;this.getFilters().add(a);this.suppressNextFilter=!1},removeFilter:function(a,d){var b=this,c=b.getFilters();b.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){c.remove(a)}else {c.removeByKey(a)}b.suppressNextFilter=!1},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(!1),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(!1),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=!1},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(!1);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=!1},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(!1);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(b){if(b.getTransform()){return}var e=b.getProperty(),d=this.getModel(),c,a;if(d){c=d.getField(e);a=c?c.getSortType():null}if(a&&a!==Ext.identityFn){b.setTransform(a)}},beginUpdate:function(){if(!this.updating++){this.fireEvent('beginupdate')}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent('endupdate');this.onEndUpdate()}},getState:function(){var c=this,e=[],g=c.getFilters(),f=c.getGrouper(),a,d,b;c.getSorters().each(function(a){e[e.length]=a.getState();d=!0});if(c.statefulFilters&&c.saveStatefulFilters){d=!0;a=[];g.each(function(b){a[a.length]=b.getState()})}if(f){d=!0}if(d){b={};if(e.length){b.sorters=e}if(a){b.filters=a}if(f){b.grouper=f.getState()}}return b},applyState:function(b){var a=this,e=b.sorters,c=b.filters,d=b.grouper;if(e){a.getSorters().replaceAll(e)}if(c){a.saveStatefulFilters=!0;a.getFilters().replaceAll(c)}if(d){a.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.callParent();a.onDestroy()},sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else {a.forceLocalSort()}}else {a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(b,a){if(a){this.fireEvent('beforesort',this,a.getRange())}},onSorterEndUpdate:function(){var a=this,b;b=a.getSorters(!1);if(a.settingGroups||!b){return}b=b.getRange();if(b.length){if(a.getRemoteSort()){a.load({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('sort',a,b)}}else {a.fireEvent('sort',a,b)}},onFilterEndUpdate:function(){var a=this,b=a.suppressNextFilter;if(a.getRemoteFilter()){a.currentPage=1;if(!b){a.load()}}else {if(!b){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}if(a.trackStateChanges){a.saveStatefulFilters=!0}a.fireEvent('filterchange',a,a.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else {this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(b,d){var a=this,c=a.getSorters(!1),e=b||c&&c.length;if(b&&typeof b==='string'){b={property:b,direction:d||a.getGroupDir()}}a.settingGroups=!0;a.getData().setGrouper(b);delete a.settingGroups;if(e){if(a.getRemoteSort()){a.load({scope:a,callback:a.fireGroupChange})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireGroupChange()}}else {a.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){this.fireEvent('groupchange',this,this.getGrouper())}},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b='';if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?'on':'un']('endupdate',this.onFilterEndUpdate,this)}},onRemoteSortSet:function(c,b){var a=this;if(c){c[b?'on':'un']('endupdate',a.onSorterEndUpdate,a);a.getData()[b?'un':'on']('beforesort',a.onBeforeCollectionSort,a)}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data,'AbstractStore'],0);Ext.cmd.derive('Ext.data.Error',Ext.Base,{isError:!0,$configPrefixed:!1,config:{field:null,message:''},constructor:function(a){this.initConfig(a);this.msg=this.message}},1,0,0,0,0,0,[Ext.data,'Error'],0);Ext.cmd.derive('Ext.data.ErrorCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.data.Errors',init:function(d){var b=this,h=d.fields,k=d.data,g,a,l,c,i,f,j,e;for(c=0,i=h.length;c]+>/gi,asText:function(a){return a!=null?String(a).replace(this.stripTagsRe,''):'\x00'},asUCText:function(a){return a!=null?String(a).toUpperCase().replace(this.stripTagsRe,''):'\x00'},asUCString:function(a){return a!=null?String(a).toUpperCase():'\x00'},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(b){var a=parseFloat(String(b).replace(this.stripCommasRe,''));return isNaN(a)?0:a},asInt:function(b){var a=parseInt(String(b).replace(this.stripCommasRe,''),10);return isNaN(a)?0:a}},0,0,0,0,0,0,[Ext.data,'SortTypes'],0);Ext.cmd.derive('Ext.data.validator.Validator',Ext.Base,{isValidator:!0,type:'base',statics:{all:{},register:function(a,c){var b=this.all;b[a.toUpperCase()]=b[a.toLowerCase()]=b[a]=c.prototype}},onClassExtended:function(b,a){if(a.type){Ext.data.validator.Validator.register(a.type,b)}},constructor:function(a){if(typeof a==='function'){this.fnOnly=!0;this.validate=a}else {this.initConfig(a)}},validate:function(){return !0},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},1,0,0,0,['data.validator.base'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.validator,'Validator'],function(){this.register(this.prototype.type,this)});Ext.cmd.derive('Ext.data.field.Field',Ext.Base,{alternateClassName:'Ext.data.Field',aliasPrefix:'data.field.',type:'auto',factoryConfig:{defaultProperty:'name'},isDataField:!0,isField:!0,allowBlank:!0,allowNull:!1,critical:!1,defaultInvalidMessage:'This field is invalid',defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,unique:!1,rank:null,stripRe:/[\$,%]/g,calculated:!1,evil:!1,identifier:!1,onClassExtended:function(f,d){var b=d.sortType,c=f.prototype,e=c.validators,a=d.validators;if(b&&Ext.isString(b)){c.sortType=Ext.data.SortTypes[b]}if(a){if(!Ext.isArray(a)){a=[a]}delete d.validators;if(e){a=e.concat(a)}c.validators=a}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var a=this,n=a.calculateRe,c,l,f,h,b,j,e,m,k,i,g;if(d){if(Ext.isString(d)){a.name=d}else {g=d.validators;if(g){delete d.validators;a.instanceValidators=g}Ext.apply(a,d)}}if(!a.allowNull){a.allowNull=!!a.reference}c=a.calculate;b=a.depends;if(c){a.convert=a.doCalculate;if(!b){if(!(b=c.$depends)){j={};k=c.toString();c.$depends=b=[];e=a.argumentNamesRe.exec(k);m=e?e[1]:'data';while(e=n.exec(k)){if(m===e[1]&&!j[i=e[2]]){j[i]=1;b.push(i)}}}a.depends=b}}f=a.defaultValue;if(a.convert){a.calculated=l=a.convert.length>1;a.evil=l&&!b}if(a.persist===null){a.persist=!c}h=a.sortType;if(!a.sortType){a.sortType=Ext.data.SortTypes.none}else {if(Ext.isString(h)){a.sortType=Ext.data.SortTypes[h]}}if(b&&typeof b==='string'){a.depends=[b]}a.cloneDefaultValue=f!==undefined&&(Ext.isDate(f)||Ext.isArray(f)||Ext.isObject(f))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},compileValidators:function(){var a=this;a._validators=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var d=a.length,e=this._validators,c,b;for(c=0;c0){(u=p[v]).dirty=!0;d=d?Math.min(d,u.rank):u.rank}if(!b||b.persist){if(f&&f.hasOwnProperty(c)){if(!y||o.isEqual(f[c],h)){delete f[c];a.dirty=-1}}else {if(y){if(!f){a.modified=f={}}a.dirty=!0;f[c]=j}}}if(c===a.idField.name){D=!0;z=j;s=h}}if(!d){break}b=l[d-1];b.dirty=!1;if(n){delete g[i]}else {g=a._singleProp;n=!0}i=b.name;g[i]=t[i];C=!0;for(;d0;){d=(b=g[i]).name;if(!(d in f)){c=h[d];if(j&&b.serialize){c=b.serialize(c,a)}f[d]=c}}}if(n){a.getAssociatedData(f,e)}return f},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(a){a=Ext.apply({},a);var b=this,d=a.scope||b,g=b.getProxy(),f=a.callback,c=b.loadOperation,h=b.getId(),e;if(c){e=c.extraCalls;if(!e){e=c.extraCalls=[]}e.push(a);return c}a.id=h;a.recordCreator=function(e,f,c){var d=b.session;if(c){c.recordCreator=d?d.recordCreator:null}b.set(e,b._commitOptions);return b};a.internalCallback=function(e){var h=e.wasSuccessful()&&e.getRecords().length>0,l=b.loadOperation,i=l.extraCalls,c=[b,e],j=[b,e,h],g,k;b.loadOperation=null;if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(f,d,j);if(i){for(g=0,k=i.length;g0;){b=i[a];if(b in e){delete e[b];delete j[b]}}for(a=0,h=f.length;a=a.getTotal()){a.setConfig({success:!1,records:[],total:0})}else {a.setRecords(Ext.Array.slice(d,e,e+i))}}b.setCompleted()}},clear:Ext.emptyFn},0,0,0,0,['proxy.memory'],0,[Ext.data.proxy,'Memory',Ext.data,'MemoryProxy'],0);Ext.cmd.derive('Ext.data.ProxyStore',Ext.data.AbstractStore,{config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:!1,batchUpdateMode:'operation',sortOnLoad:!0,trackRemoved:!0,asynchronousLoad:undefined},onClassExtended:function(e,d,b){var c=d.model,a;if(typeof c==='string'){a=b.onBeforeCreated;b.onBeforeCreated=function(){var g=this,f=arguments;Ext.require(c,function(){a.apply(g,f)})}}},implicitModel:'Ext.data.Model',autoSyncSuspended:0,constructor:function(b){var a=this;a.removed=[];Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(a.getAsynchronousLoad()===!1){a.flushLoad()}},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else {this.getFields();a=this.getModel()||this.createImplicitModel()}return a},applyProxy:function(a){var b=this.getModel();if(a!==null){if(a){if(a.isProxy){a.setModel(b)}else {if(Ext.isString(a)){a={type:a,model:b}}else {if(!a.model){a=Ext.apply({model:b},a)}}a=Ext.createByAlias('proxy.'+a.type,a);a.autoCreated=!0}}else {if(b){a=b.getProxy()}}if(!a){a=Ext.createByAlias('proxy.memory');a.autoCreated=!0}}return a},applyState:function(b){var a=this;Ext.data.AbstractStore.prototype.applyState.call(this,b);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(b,a){this.fireEvent('metachange',this,a)},create:function(f,a){var b=this,e=b.getModel(),d=new e(f),c;a=Ext.apply({},a);if(!a.records){a.records=[d]}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('create',a);return c.execute()},read:function(){return this.load.apply(this,arguments)},update:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getUpdatedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('update',a);return c.execute()},onProxyWrite:function(a){var b=this,c=a.wasSuccessful(),d=a.getRecords();switch(a.getAction()){case 'create':b.onCreateRecords(d,a,c);break;case 'update':b.onUpdateRecords(d,a,c);break;case 'destroy':b.onDestroyRecords(d,a,c);break;}if(c){b.fireEvent('write',b,a);b.fireEvent('datachanged',b)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(c,b,a){if(a){this.cleanRemoved()}},erase:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getRemovedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('destroy',a);return c.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(e,f){var a=this,c=e.operations,d=c.length,b;if(a.batchUpdateMode!=='operation'){a.suspendEvents();for(b=0;b0){b.create=f;c=!0}if(g.length>0){b.update=g;c=!0}if(e.length>0){b.destroy=e;c=!0}if(c&&a.fireEvent('beforesync',b)!==!1){a.isSyncing=!0;d=d||{};a.proxy.batch(Ext.apply(d,{operations:b,listeners:a.getBatchListeners()}))}return a},getBatchListeners:function(){var a=this,b={scope:a,exception:a.onBatchException,complete:a.onBatchComplete};if(a.batchUpdateMode==='operation'){b.operationcomplete=a.onBatchOperationComplete}return b},save:function(){return this.sync.apply(this,arguments)},load:function(b){var a=this;if(typeof b==='function'){b={callback:b}}else {b=b?Ext.Object.chain(b):{}}a.pendingLoadOptions=b;if(a.getAsynchronousLoad()){if(!a.loadTimer){a.loadTimer=Ext.asap(a.flushLoad,a)}}else {a.flushLoad()}return a},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b;a.clearLoadTask();if(!c){return}a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}b=Ext.apply({internalScope:a,internalCallback:a.onProxyLoad,scope:a},c);a.lastOptions=b;b=a.createOperation('read',b);if(a.fireEvent('beforeload',a,b)!==!1){a.onBeforeLoad(b);a.loading=!0;b.execute()}},reload:function(a){var b=Ext.apply({},a,this.lastOptions);return this.load(b)},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,onDestroy:function(){var a=this,b=a.getProxy();a.clearLoadTask();a.getData().destroy();a.data=null;a.setProxy(null);if(b.autoCreated){b.destroy()}a.setModel(null)},hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){Ext.asapCancel(this.loadTimer);this.pendingLoadOptions=this.loadTimer=null},cleanRemoved:function(){var a=this.getRawRemovedRecords(),c,b;if(a){for(b=0,c=a.length;b-1},each:function(f,e){var c=this.data.items,d=c.length,b,a;for(a=0;a0){if(u){f=0;if(d.length>1&&h){f=1}b[i]=d[f].getProperty();b[t]=d[f].getDirection()}else {b[i]=a.encodeSorters(d)}}if(l&&j&&j.length>0){b[l]=a.encodeFilters(j)}return b},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format('{0}={1}',b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(a){var b;if(a){b=a.getUrl()||this.getApi()[a.getAction()]}return b?b:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a){},afterRequest:Ext.emptyFn,destroy:function(){Ext.data.proxy.Proxy.prototype.destroy.call(this);Ext.destroy(this.getReader(),this.getWriter());this.reader=this.writer=null}},0,0,0,0,['proxy.server'],0,[Ext.data.proxy,'Server',Ext.data,'ServerProxy'],0);Ext.cmd.derive('Ext.data.proxy.Ajax',Ext.data.proxy.Server,{alternateClassName:['Ext.data.HttpProxy','Ext.data.AjaxProxy'],isAjaxProxy:!0,defaultActionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'},config:{binary:!1,headers:undefined,paramsAsJson:!1,withCredentials:!1,useDefaultXhrHeader:!0,username:null,password:null,actionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'}},doRequest:function(e){var a=this,g=a.getWriter(),b=a.buildRequest(e),f=a.getMethod(b),c,d;if(g&&e.allowWrite()){b=g.write(b)}b.setConfig({binary:a.getBinary(),headers:a.getHeaders(),timeout:a.getTimeout(),scope:a,callback:a.createRequestCallback(b,e),method:f,useDefaultXhrHeader:a.getUseDefaultXhrHeader(),disableCaching:!1});if(f.toUpperCase()!=='GET'&&a.getParamsAsJson()){d=b.getParams();if(d){c=b.getJsonData();if(c){c=Ext.Object.merge({},c,d)}else {c=d}b.setJsonData(c);b.setParams(undefined)}}if(a.getWithCredentials()){b.setWithCredentials(!0);b.setUsername(a.getUsername());b.setPassword(a.getPassword())}return a.sendRequest(b)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(d){var a=this.getActionMethods(),b=d.getAction(),c;if(a){c=a[b]}return c||this.defaultActionMethods[b]},createRequestCallback:function(b,c){var a=this;return function(f,e,d){if(b===a.lastRequest){a.lastRequest=null}a.processResponse(e,c,b,d)}},destroy:function(){this.lastRequest=null;Ext.data.proxy.Server.prototype.destroy.call(this)}},0,0,0,0,['proxy.ajax'],0,[Ext.data.proxy,'Ajax',Ext.data,'HttpProxy',Ext.data,'AjaxProxy'],0);Ext.cmd.derive('Ext.data.reader.Json',Ext.data.reader.Reader,{alternateClassName:'Ext.data.JsonReader',config:{record:null,metaProperty:'metaData',useSimpleAccessors:!1,preserveRawData:!1},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},readRecords:function(a,e,d){var b=this,c;if(b.getMeta){c=b.getMeta(a);if(c){b.onMetaChange(c)}}else {if(a.metaData){b.onMetaChange(a.metaData)}}return Ext.data.reader.Reader.prototype.readRecords.call(this,a,e,d)},getResponseData:function(b){var a;try{return Ext.decode(b.responseText)}catch(c){a=this.createReadError(c.message);Ext.Logger.warn('Unable to parse the JSON returned by the server');this.fireEvent('exception',this,b,a);return a}},buildExtractors:function(){var a=this,b,c;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){b=a.getMetaProperty();c=a.getRootProperty();if(c){a.getRoot=a.getAccessor(c)}else {a.getRoot=Ext.identityFn}if(b){a.getMeta=a.getAccessor(b)}}},extractData:function(a,f){var e=this.getRecord(),d=[],c,b;if(e){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b1||e&&!g){b+=d}else {if(k){i=!1;if(l){++e}else {if(g){--e;i=!0}}if(b){if(i){b='['+b+']'}else {b='.'+b}j+=b;m.push(''+j);b=''}}}}f=m.join(' && ');f=Ext.functionFactory('raw','return '+f)}return f}}(),createFieldAccessor:function(b){var e=this,a=b.mapping,c=a||a===0,d=c?a:b.name;if(c){if(typeof d==='function'){return function(a){return b.mapping(a,e)}}else {return e.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?'simple':'';return this.$className+a+b},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot}}},0,0,0,0,['reader.json'],0,[Ext.data.reader,'Json',Ext.data,'JsonReader'],0);Ext.cmd.derive('Ext.data.writer.Json',Ext.data.writer.Writer,{alternateClassName:'Ext.data.JsonWriter',config:{rootProperty:undefined,encode:!1,allowSingle:!0,expandData:!1},getExpandedData:function(f){var h=f.length,g=0,a,c,b,d,e,i=function(c,b){var a={};a[c]=b;return a};for(;g0){e=a[c];for(;d>0;d--){e=i(b[d],e)}a[b[0]]=a[b[0]]||{};Ext.Object.merge(a[b[0]],e);delete a[c]}}}}return f},writeRecords:function(b,a){var c=this,e=c.getRootProperty(),d,g,f;if(c.getExpandData()){a=c.getExpandedData(a)}if(c.getAllowSingle()&&a.length===1){a=a[0];g=!0}f=this.getTransform();if(f){a=f(a,b)}if(c.getEncode()){if(e){b.setParam(e,Ext.encode(a))}else {}}else {if(g||a&&a.length){d=b.getJsonData()||{};if(e){d[e]=a}else {d=a}b.setJsonData(d)}}return b}},0,0,0,0,['writer.json'],0,[Ext.data.writer,'Json',Ext.data,'JsonWriter'],0);Ext.cmd.derive('Ext.util.Group',Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001},0,0,0,0,0,0,[Ext.util,'Group'],0);Ext.cmd.derive('Ext.util.SorterCollection',Ext.util.Collection,{isSorterCollection:!0,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(b){var a=this;a.sortFn=Ext.util.Sorter.createComparator(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeSorter)},addSort:function(b,c,d){var a=this,f,j,k,g,h,i,e;if(!b){a.beginUpdate();a.endUpdate()}else {g=a.getOptions();if(b instanceof Array){e=b;d=c;c=null}else {if(Ext.isString(b)){if(!(i=a.get(b))){e=[{property:b,direction:c||g.getDefaultSortDirection()}]}else {e=[i]}}else {if(Ext.isFunction(b)){e=[{sorterFn:b,direction:c||g.getDefaultSortDirection()}]}else {e=[b];d=c;c=null}}}d=a._sortModes[d||'replace'];h=a.getAt(0);f=a.length;j=d.append?f:0;a.beginUpdate();a.splice(j,d.replace?f:0,e);if(d.multi){f=a.length;k=g.getMultiSortLimit();if(f>k){a.removeAt(k,f)}}if(i&&c){i.setDirection(c)}else {if(j===0&&h&&h===a.getAt(0)){h.toggle()}}a.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(d){var c=this.items,e=c.length,a,b;for(a=0;ad+1||!Ext.isIterable(b)){b=Ext.Array.slice(e,d)}var j=k.items,l=b.length,c=[],f,g,i,a,h;for(f=0;f0;){g=j[i];if(g.getSorterFn()===a){c.push(g)}}}}}}b=c;b.$cloned=!0}return b},getOptions:function(){return this.$sortable||this}},1,0,0,0,0,0,[Ext.util,'SorterCollection'],0);Ext.cmd.derive('Ext.util.FilterCollection',Ext.util.Collection,{isFilterCollection:!0,$filterable:null,filterFn:null,constructor:function(b){var a=this;a.filterFn=Ext.util.Filter.createFilterFn(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},decodeFilter:function(b){var d=this.getOptions(),c=d.getRootProperty(),a;if(b.isFilter){if(!b.getRoot()){b.setRoot(c)}}else {a={root:c};if(Ext.isFunction(b)){a.filterFn=b}else {a=Ext.apply(a,b);if(a.fn){a.filterFn=a.fn;delete a.fn}if(Ext.util.Filter.isInvalid(a)){return !1}}b=new Ext.util.Filter(a)}return b},decodeRemoveItems:function(f,e){var p=this,b=e===undefined?f:f[e];if(!b.$cloned){if(f.length>e+1||!Ext.isIterable(b)){b=Ext.Array.slice(f,e)}var k=p.items,o=b.length,h=[],a,g,l,n,m,c,d,j,i;for(g=0;g0;){c=k[j];d=!1;if(m){d=c.getProperty()===a}else {if(l){d=c.getFilterFn()===a}else {if(n){d=c.getProperty()===a.property&&c.getValue()===a.value}}}if(d){h.push(c)}}}}b=h;b.$cloned=!0}return b},getOptions:function(){return this.$filterable||this}},1,0,0,0,0,0,[Ext.util,'FilterCollection'],0);Ext.cmd.derive('Ext.util.GroupCollection',Ext.util.Collection,{isGroupCollection:!0,config:{grouper:null,itemRoot:null},observerPriority:-100,onCollectionAdd:function(b,a){this.addItemsToGroups(b,a.items)},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){var c=a.item;if(!a.indexChanged){this.syncItemGrouping(b,c,b.getKey(c),a.oldKey,a.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(a){this.removeAll();this.addItemsToGroups(a,a.items)},onCollectionRemove:function(k,j){var d=this,g=d.changeDetails,b,h,a,e,i,c,f;if(g){f=g.item;a=d.findGroupForItem(f);b=[];if(a){b.push({group:a,items:[f]})}}else {b=d.groupItems(k,j.items,!1)}for(e=0,i=b.length;e0&&i.getSorters().getCount()===0){k=i.indexOf(a.items[0]);if(o-1){b=[c];d=1}else {d=0}}else {b=[];for(g=0,d=c.length;g=0;a--){d=c[a];d.reject();if(!g){b.insert(d.removedFrom||0,d)}}if(g){h.setAutoSort(i);b.add(c)}c.length=0}b.endUpdate();Ext.resumeLayouts(!0)},onDestroy:function(){var a=this,c=a.loadTask,d=a.getData(),b=d.getSource();a.clearData();Ext.data.ProxyStore.prototype.onDestroy.call(this);a.setSession(null);a.observers=null;if(c){c.cancel();a.loadTask=null}if(b){b.destroy()}},privates:{fetch:function(a){a=Ext.apply({},a);this.setLoadOptions(a);var b=this.createOperation('read',a);b.execute()},onBeforeLoad:function(a){this.callObservers('BeforeLoad',[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,a,b)},onRemoteSortSet:function(b,a){var c=this.getData();if(b){c.setSorters(a?null:b)}c.setAutoGroup(!a);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,a)},isMoving:function(a,f){var c=this.moveMap,b=0,e,d;if(c){if(a){if(Ext.isArray(a)){for(d=0,e=a.length;d-1}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Store'],0);Ext.cmd.derive('Ext.app.route.Queue',Ext.Base,{queue:null,token:null,constructor:function(a){Ext.apply(this,a);this.queue=new Ext.util.MixedCollection()},queueAction:function(a,b){this.queue.add({route:a,args:b})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var c=this.queue,a=c.removeAt(0),b;if(a){b=a&&a.route;b.execute(this.token,a.args,this.onActionExecute,this)}},onActionExecute:function(a){if(a){this.clearQueue()}else {this.runQueue()}}},1,0,0,0,0,0,[Ext.app.route,'Queue'],0);Ext.cmd.derive('Ext.app.route.Route',Ext.Base,{action:null,conditions:null,controller:null,allowInactive:!1,url:null,before:null,caseInsensitive:!1,matcherRegex:null,paramMatchingRegex:null,paramsInMatchString:null,constructor:function(c){var a=this,b;Ext.apply(a,c,{conditions:{}});b=a.url;a.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);a.paramsInMatchString=b.match(a.paramMatchingRegex)||[];a.matcherRegex=a.createMatcherRegex(b)},recognize:function(b){var a=this,d=a.controller,e,c;if((a.allowInactive||d.isActive())&&a.recognizes(b)){e=a.matchesFor(b);c=b.match(a.matcherRegex);c.shift();return Ext.applyIf(e,{controller:d,action:a.action,historyUrl:b,args:c})}return !1},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(h,d,f,g){var e=d.args||[],a=this.before,c=this.controller,b=this.createCallback(d,f,g);if(a){e.push(b);if(Ext.isString(a)){a=this.before=c[a]}if(a){a.apply(c,e)}}else {b.resume()}},matchesFor:function(f){var b={},d=this.paramsInMatchString,c=f.match(this.matcherRegex),a=0,e=d.length;c.shift();for(;a0){c=a.substring(0,d);b=a.substring(d+1)+'.'+c}else {if(a.indexOf('.')>0&&(Ext.ClassManager.isCreated(a)||this.hasRegisteredPrefix(a))){b=a}else {if(f){b=f+'.'+g+'.'+(e?e+'.'+a:a);c=a}else {b=a}}}return {absoluteName:b,shortName:c}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:!0,moduleClassName:null},onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,i){var g=Ext.app.Controller,h=[],e,f;f=j.prototype;e=g.resolveNamespace(j,i);if(e){f.$namespace=e}g.processDependencies(f,h,e,'model',i.models);g.processDependencies(f,h,e,'view',i.views);g.processDependencies(f,h,e,'store',i.stores);g.processDependencies(f,h,e,'controller',i.controllers);Ext.require(h,Ext.Function.pass(b,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.apply(this,arguments)},normalizeRefs:function(a){var c=this,b=[];if(a){if(Ext.isObject(a)){Ext.Object.each(a,function(d,c){if(Ext.isString(c)){c={selector:c}}c.ref=d;b.push(c)})}else {if(Ext.isArray(a)){b=Ext.Array.merge(b,a)}}}a=c.refs;if(a){c.refs=null;a=c.normalizeRefs(a);if(a){b=Ext.Array.merge(b,a)}}return b},getRefMap:function(){var e=this,a=e._refMap,b,d,f,c;if(!a){b=e.getRefs();a=e._refMap={};if(b){for(c=0,f=b.length;c0){d=c[b];a.map[a.getKey(d)]=b}++a.generation}}},1,0,0,0,0,0,[Ext.util,'Bag'],0);Ext.cmd.derive('Ext.util.Scheduler',Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:!1,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var a=this,b=a.items;if(b===a.firing){a.items=b=b.clone()}c.id=c.id||++a.nextId;c.scheduler=a;b.add(c);if(!a.sortMap){a.orderedItems=null}},remove:function(c){var a=this,b=a.items;if(a.destroyed){return}if(b===a.firing){a.items=b=b.clone()}if(c.scheduled){a.unscheduleItem(c);c.scheduled=!1}b.remove(c);a.orderedItems=null},sort:function(){var a=this,b=a.items,f={},e=a.getPreSort(),c,d;a.orderedItems=[];a.sortMap=f;if(e){b.sort(e)}b=b.items;for(c=0;c0;){c[d].stub=b}}return b},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return !0}}return !1},onSchedule:function(){for(var c,e,b,a,d=this.parent;d;d=d.parent){a=d.bindings;if(a){for(c=0,e=a.length;c '+a.binding.getFullName()+')')},getDataObject:function(){var a=this.binding;return a&&a.getDataObject()},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isLoading:function(){var a=this.binding;return a?a.isLoading():!1},link:function(c,b){var a=this,d=a.binding;if(d){d.destroy()}b=a.target=b||a.owner;a.linkDescriptor=c;a.binding=b.bind(c,a.onChange,a);a.binding.deep=!0},onChange:function(){this.invalidate(!0)},react:function(){var a=this,b=a.owner.linkData;b[a.name]=a.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var c=this,b=Ext.app.bind.Stub.prototype.collect.call(this),a=c.binding?1:0;return b+a},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}},0,0,0,0,0,0,[Ext.app.bind,'LinkStub'],0);Ext.cmd.derive('Ext.app.bind.RootStub',Ext.app.bind.AbstractStub,{isRootStub:!0,depth:0,createRootChild:function(a,j){var e=this,d=e.owner,i=d.getData(),g=e.children,c=g&&g[a],f=c?null:e,h,b;if(j||i.hasOwnProperty(a)||!(h=d.getParent())){b=new Ext.app.bind.Stub(d,a,f)}else {b=new Ext.app.bind.LinkStub(d,a,c?null:f);b.link('{'+a+'}',h)}if(c){c.graft(b)}return b},createStubChild:function(a){return this.createRootChild(a,!0)},descend:function(a,g){var f=this,d=f.children,b=g||0,e=a[b++],c=d&&d[e]||f.createRootChild(e);if(b0;){if(a[b].isLoading()){return !0}}return !1},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var b=this.bindings,d=b.length,a,c;for(a=0;a-1}}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Controller'],0);Ext.cmd.derive('Ext.data.PageMap',Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:''},clear:function(b){var a=this;a.pageMapGeneration=(a.pageMapGeneration||0)+1;a.indexMap={};Ext.util.LruCache.prototype.clear.call(this,b)},forEach:function(k,f){var d=this,b=Ext.Object.getKeys(d.map),h=b.length,j=d.getPageSize(),a,c,e,g,i;for(a=0;ad},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(l,f){f--;if(!this.hasRange(l,f)){Ext.raise('PageMap asked for range which it does not have')}var c=this,k=Ext.Array,e=c.getPageSize(),g=c.getPageFromRecordIndex(l),h=c.getPageFromRecordIndex(f),m=(g-1)*e,n=h*e-1,a=g,j=[],d,i,b;for(;a<=h;a++){if(a===g){d=l-m;b=d>0}else {d=0;b=!1}if(a===h){i=e-(n-f);b=b||i=g){b=g-1;c=Math.max(b-h,0)}if(a.rangeCached(c,Math.min(b,a.totalCount))){a.loading=!1;f.un('pageadd',e);l=f.getRange(c,b+1);a.fireEvent('load',a,l,!0);a.fireEvent('refresh',a)}};h=Math.ceil((a.getLeadingBufferZone()+a.getTrailingBufferZone())/2);if(a.lastRequestStart&&a.preserveScrollOnReload){c=a.lastRequestStart;b=a.lastRequestEnd;i=a.getTotalCount()}else {c=d.start||0;b=c+(d.count||a.getPageSize())-1}f.clear(!0);delete a.totalCount;c=Math.max(c-h,0);b=Math.min(b+h,i);j=a.getPageFromRecordIndex(c);k=a.getPageFromRecordIndex(b);a.loading=!0;d.waitForReload=e;f.on('pageadd',e);for(g=j;g<=k;g++){a.prefetchPage(g,d)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},clearData:function(c){var b=this,a=b.getData();if(a){a.clear()}},getCount:function(){return this.totalCount||0},getRange:function(c,b,f){var a=this,k=a.totalCount-1,m=a.lastRequestStart,l=[],h=a.getData(),g,d,e,i,j;f=Ext.apply({prefetchStart:c,prefetchEnd:b},f);b=b>=a.totalCount?k:b;d=c===0?0:c-1;e=b===k?b:b+1;a.lastRequestStart=c;a.lastRequestEnd=b;if(a.rangeCached(d,e)){a.onRangeAvailable(f);l=h.getRange(c,b+1)}else {a.fireEvent('cachemiss',a,c,b);i=a.getPageFromRecordIndex(d);j=a.getPageFromRecordIndex(e);g=function(l,k,m){if(k>=i&&k<=j&&a.rangeCached(d,e)){a.fireEvent('cachefilled',a,c,b);h.un('pageadd',g);a.onRangeAvailable(f)}};h.on('pageadd',g);a.prefetchRange(c,b)}a.primeCache(c,b,c-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var a=this,c;if(b&&typeof b==='string'){c=a.grouper;if(!c){a.grouper=new Ext.util.Grouper({property:b,direction:d||'ASC',root:'data'})}else {if(d===undefined){c.toggle()}else {c.setDirection(d)}}}else {a.grouper=b?a.getSorters().decodeSorter(b,'Ext.util.Grouper'):null}a.getData().clear();a.loadPage(1,{callback:function(){a.fireEvent('groupchange',a,a.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(c){var a=this,b=a.getPurgePageCount();return b?Math.max(a.getData().getMaxSize()||0,Math.ceil((c+a.getTrailingBufferZone()+a.getLeadingBufferZone())/a.getPageSize())*2+b):0},loadToPrefetch:function(b){var a=this,f=b,h,d,i,e=b.start,k=b.start+b.limit-1,m=a.getViewSize()||b.limit,c=Math.min(k,b.start+m-1),p=a.getPageFromRecordIndex(Math.max(e-a.getTrailingBufferZone(),0)),q=a.getPageFromRecordIndex(k+a.getLeadingBufferZone()),g=a.getData(),j=function(){d=d||[];if(b.loadCallback){b.loadCallback.call(b.scope||a,d,o,!0)}if(b.callback){b.callback.call(b.scope||a,d,e||0,k||0,b)}},n=function(){a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('load',a,d,!0)},l=function(){if(a.rangeCached(e,c)){a.loading=!1;d=g.getRange(e,c+1);g.un('pageadd',l);if(a.hasListeners.guaranteedrange){a.guaranteeRange(e,c,b.callback,b.scope)}j();n()}},o;g.setMaxSize(a.calculatePageCacheSize(m));if(a.fireEvent('beforeload',a,b)!==!1){delete a.totalCount;a.loading=!0;if(b.callback){f=Ext.apply({},b);delete f.callback}a.on('prefetch',function(m,e,d,k){o=k;if(d){if(i=a.getTotalCount()){g.on('pageadd',l);c=Math.min(c,i-1);q=a.getPageFromRecordIndex(Math.min(c+a.getLeadingBufferZone(),i-1));for(h=p+1;h<=q;++h){a.prefetchPage(h,f)}}else {j();n()}}else {a.loading=!1;j();a.fireEvent('load',a,e,!1)}},null,{single:!0});a.prefetchPage(p,f)}},prefetch:function(b){var a=this,c=a.getPageSize(),d=a.getData(),e,f;if(c){if(a.lastPageSize&&c!=a.lastPageSize){Ext.raise('pageSize cannot be dynamically altered')}if(!d.getPageSize()){d.setPageSize(c)}}else {a.pageSize=d.setPageSize(c=b.limit)}a.lastPageSize=c;if(!b.page){b.page=a.getPageFromRecordIndex(b.start);b.start=(b.page-1)*c;b.limit=Math.ceil(b.limit/c)*c}f=a.pageRequests[b.page];if(!f||f.getOperation().pageMapGeneration!==d.pageMapGeneration){b=Ext.apply({action:'read',filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper(),internalCallback:a.onProxyPrefetch,internalScope:a},b);e=a.createOperation('read',b);e.pageMapGeneration=d.pageMapGeneration;if(a.fireEvent('beforeprefetch',a,e)!==!1){a.pageRequests[b.page]=e.execute();if(a.getProxy().isSynchronous){delete a.pageRequests[b.page]}}}return a},onPageMapClear:function(){var a=this,e=a.wasLoading,d=a.pageRequests,b=a.getData(),c;b.clearListeners();b.on('clear',a.onPageMapClear,a);a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.loading=!0;a.totalCount=0;for(c in d){if(d.hasOwnProperty(c)){d[c].getOperation().abort()}}a.fireEvent('clear',a);a.loading=e},prefetchPage:function(d,e){var a=this,b=a.getPageSize(),f=(d-1)*b,c=a.totalCount;if(c!==undefined&&a.data.getCount()===c){return}a.prefetch(Ext.applyIf({page:d,start:f,limit:b},e))},onProxyPrefetch:function(b){if(this.destroyed){return}var a=this,g=b.getResultSet(),e=b.getRecords(),d=b.wasSuccessful(),i=b.getPage(),c=b.waitForReload,k=a.totalCount,h=a.pageRequests,j,f;if(b.pageMapGeneration===a.getData().pageMapGeneration){if(g){a.totalCount=g.getTotal();if(a.totalCount!==k){a.fireEvent('totalcountchange',a.totalCount)}}if(i!==undefined){delete a.pageRequests[i]}a.loading=!1;a.fireEvent('prefetch',a,e,d,b);if(d){if(a.totalCount===0){if(c){for(j in h){f=h[j].getOperation();if(f.waitForReload===c){delete f.waitForReload}}a.getData().un('pageadd',c);a.fireEvent('load',a,[],!0);a.fireEvent('refresh',a)}}else {a.cachePage(e,b.getPage())}}Ext.callback(b.getCallback(),b.getScope()||a,[e,b,d])}},cachePage:function(b,d){var a=this,e=b.length,c;if(!Ext.isDefined(a.totalCount)){a.totalCount=b.length;a.fireEvent('totalcountchange',a.totalCount)}for(c=0;cf-1?f-1:a.prefetchEnd,d;b=Math.max(0,b);d=c.getData().getRange(e,b+1);if(a.fireEvent!==!1){c.fireEvent('guaranteedrange',d,e,b,a)}if(a.callback){a.callback.call(a.scope||c,d,e,b,a)}},guaranteeRange:function(d,e,b,c,a){a=Ext.apply({callback:b,scope:c},a);this.getRange(d,e+1,a)},prefetchRange:function(c,d){var a=this,e,f,b,g=a.getData();if(!a.rangeCached(c,d)){e=a.getPageFromRecordIndex(c);f=a.getPageFromRecordIndex(d);g.setMaxSize(a.calculatePageCacheSize(d-c+1));for(b=e;b<=f;b++){if(!a.pageCached(b)){a.prefetchPage(b)}}}},primeCache:function(a,b,g){var c=this,f=c.getLeadingBufferZone(),e=c.getTrailingBufferZone(),h=c.getPageSize(),d=c.totalCount;if(g===-1){a=Math.max(a-f,0);b=Math.min(b+e,d-1)}else {if(g===1){a=Math.max(Math.min(a-e,d-h),0);b=Math.min(b+f,d-1)}else {a=Math.min(Math.max(Math.floor(a-(f+e)/2),0),d-c.pageSize);b=Math.min(Math.max(Math.ceil(b+(f+e)/2),0),d-1)}}c.prefetchRange(a,b)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else {this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent('beforesort',a,b);a.clearAndLoad({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('sort',a,b)}},clearAndLoad:function(a){this.getData().clear();this.loadPage(1,a)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return !1}}},0,0,0,0,['store.buffered'],0,[Ext.data,'BufferedStore'],0);Ext.cmd.derive('Ext.data.NodeInterface',Ext.Base,{statics:{decorate:function(f){var a=Ext.data.schema.Schema.lookupEntity(f),e=a.prototype,c,b,d;if(!a.prototype.isObservable){a.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(e.isNode){return}c=e.idProperty;b=a.getField(c);d=b.type;a.override(this.getPrototypeBody());a.addFields([{name:'parentId',type:d,defaultValue:null,allowNull:b.allowNull},{name:'index',type:'int',defaultValue:-1,persist:!1,convert:null},{name:'depth',type:'int',defaultValue:0,persist:!1,convert:null},{name:'expanded',type:'bool',defaultValue:!1,persist:!1,convert:null},{name:'expandable',type:'bool',defaultValue:!0,persist:!1,convert:null},{name:'checked',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'leaf',type:'bool',defaultValue:!1},{name:'cls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'iconCls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'icon',type:'string',defaultValue:'',persist:!1,convert:null},{name:'root',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isLast',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isFirst',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'allowDrop',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'allowDrag',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'loaded',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'loading',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'href',type:'string',defaultValue:'',persist:!1,convert:null},{name:'hrefTarget',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtip',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtitle',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qshowDelay',type:'int',defaultValue:0,persist:!1,convert:null},{name:'children',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'visible',type:'boolean',defaultValue:!0,persist:!1},{name:'text',type:'string',persist:!1}])},getPrototypeBody:function(){var a={idchanged:!0,append:!0,remove:!0,move:!0,insert:!0,beforeappend:!0,beforeremove:!0,beforemove:!0,beforeinsert:!0,expand:!0,collapse:!0,beforeexpand:!0,beforecollapse:!0,sort:!0},b={silent:!0};return {isNode:!0,firstChild:null,lastChild:null,parentNode:null,previousSibling:null,nextSibling:null,constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.callParent(arguments);a.childNodes=[];return a},createNode:function(a){var b=this,j=b.childType,h,f,g,c,d,e,i=b.self;if(!a.isModel){if(j){i=b.schema.getEntity(j)}else {h=b.getTreeStore();f=h&&h.getProxy().getReader();g=b.getProxy();c=g?g.getReader():null;d=!f||c&&c.initialConfig.typeProperty?c:f;if(d){e=d.getTypeProperty();if(e){i=d.getChildType(b.schema,a,e)}}}a=new i(a)}if(!a.childNodes){a.firstChild=a.lastChild=a.parentNode=a.previousSibling=a.nextSibling=null;a.childNodes=[]}return a},isLeaf:function(){return this.get('leaf')===!0},setFirstChild:function(a){this.firstChild=a},setLastChild:function(a){this.lastChild=a},updateInfo:function(o,k){var a=this,i=a.data,r=i.depth,m={},n=a.childNodes,q=n.length,s=a.phantom,t=a.fields,c=a.modified||(a.modified={}),b,e,j,d,p,l=k.parentId,g,h,f;for(b in k){j=t[a.fieldOrdinals[b]];e=k[b];h=j&&j.persist;d=i[b];g=h&&b==='index'&&d!==-1&&(l&&l!==c.parentId);if(!g&&a.isEqual(d,e)){continue}i[b]=e;if(h){if(!g&&c.hasOwnProperty(b)){if(a.isEqual(c[b],e)){delete c[b];a.dirty=!1;for(p in c){if(c.hasOwnProperty(p)){a.dirty=!0;break}}}}else {a.dirty=!0;c[b]=d}}}if(o){a.commit();a.phantom=s}if(a.data.depth!==r){m={depth:a.data.depth+1};for(f=0;f0},isExpandable:function(){var a=this;if(a.get('expandable')){return !(a.isLeaf()||a.isLoaded()&&!a.phantom&&!a.hasChildNodes())}return !1},triggerUIUpdate:function(){this.callJoined('afterEdit',[])},appendChild:function(b,h,l){var a=this,j,m,c,e,f,k={isLast:!0,parentId:a.getId(),depth:(a.data.depth||0)+1},i,d=a.getTreeStore(),g=d&&d.bulkUpdate;Ext.suspendLayouts();if(Ext.isArray(b)){m=b.length;i=new Array(m);a.callTreeStore('beginFill');for(j=0;j0){if(!e){e=c.getTreeStore().getSortFn()}Ext.Array.sort(a,e);c.setFirstChild(a[0]);c.setLastChild(a[g-1]);for(b=0;b0){d.children=c=[];for(a=0;a1&&!a.getRemoteSort()&&a.getFolderSort()||j.length,e,h,c,d;if(a.needsLocalFilter()){d=a.getFilters().getFilterFn();b[0].set('visible',d(b[0]))}for(c=1;c')}else {b.push('>');if(c=a.tpl){c.applyOut(a.tplData,b)}if(c=a.html){b.push(c)}if(c=a.cn||a.children){e.generateMarkup(c,b)}h=e.closeTags;b.push(h[f]||(h[f]=''))}}}return b},generateStyles:function(c,d,f){var e=d||[],a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];a=this.decamelizeName(a);if(f&&Ext.String.hasHtmlCharacters(b)){b=Ext.String.htmlEncode(b)}e.push(a,':',b,';')}}return d||e.join('')},markup:function(a){if(typeof a==='string'){return a}var b=this.generateMarkup(a,[]);return b.join('')},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(e){var d=this.detachedDiv,b=document.createDocumentFragment(),c,a;d.innerHTML=e;a=d.childNodes;c=a.length;while(c--){b.appendChild(a[0])}return b},createDom:function(e,f){var c=this,d=c.markup(e),b=c.detachedDiv,a;b.innerHTML=d;a=b.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(!0):a},insertHtml:function(g,f,j){var o=this,l,k,n,m,i;g=g.toLowerCase();if(f.insertAdjacentHTML){if(o.ieInsertHtml){i=o.ieInsertHtml(g,f,j);if(i){return i}}l=h[g];if(l){f.insertAdjacentHTML(l[0],j);return f[l[1]]}}else {if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}k=Ext.supports.CreateContextualFragment?f.ownerDocument.createRange():undefined;m='setStart'+(this.endRe.test(g)?'After':'Before');if(e[g]){if(k){k[m](f);i=k.createContextualFragment(j)}else {i=this.createContextualFragment(j)}f.parentNode.insertBefore(i,g===a?f:f.nextSibling);return f[(g===a?'previous':'next')+'Sibling']}else {n=(g===b?'first':'last')+'Child';if(f.firstChild){if(k){try{k[m](f[n]);i=k.createContextualFragment(j)}catch(p){i=this.createContextualFragment(j)}}else {i=this.createContextualFragment(j)}if(g===b){f.insertBefore(i,f.firstChild)}else {f.appendChild(i)}}else {f.innerHTML=j}return f[n]}}},insertBefore:function(c,d,b){return this.doInsert(c,d,b,a)},insertAfter:function(b,c,a){return this.doInsert(b,c,a,d)},insertFirst:function(c,d,a){return this.doInsert(c,d,a,b)},append:function(b,d,a){return this.doInsert(b,d,a,c)},overwrite:function(b,c,e){var d=this,a;b=Ext.getDom(b);c=d.markup(c);if(d.ieOverwrite){a=d.ieOverwrite(b,c)}if(!a){b.innerHTML=c;a=b.firstChild}return e?Ext.get(a):a},doInsert:function(f,j,k,g){var i=this,h;f=f.dom||Ext.getDom(f);if('innerHTML' in f){h=i.insertHtml(g,f,i.markup(j))}else {h=i.createDom(j,null);if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}if(e[g]){f.parentNode.insertBefore(h,g===a?f:f.nextSibling)}else {if(f.firstChild&&g===b){f.insertBefore(h,f.firstChild)}else {f.appendChild(h)}}}return k?Ext.get(h):h},createTemplate:function(b){var a=this.markup(b);return new Ext.Template(a)},createHtml:function(a){return this.markup(a)}}},0,0,0,0,0,0,[Ext.dom,'Helper',Ext,'DomHelper',Ext.core,'DomHelper'],0);Ext.define('Ext.overrides.dom.Helper',function(){var a=/^(?:table|thead|tbody|tr|td)$/i,f=/td|tr|tbody|thead/i,e='',d='
    ',c=e+'',b=''+d,h=c+'',g=''+b;return {override:'Ext.dom.Helper',ieInsertHtml:function(d,b,e){var c=null;if(Ext.isIE9m&&a.test(b.tagName)){c=this.insertIntoTable(b.tagName.toLowerCase(),d,b,e)}return c},ieOverwrite:function(b,c){if(Ext.isIE9m&&a.test(b.tagName)){while(b.firstChild){b.removeChild(b.firstChild)}if(c){return this.insertHtml('afterbegin',b,c)}}},ieTable:function(g,f,e,d){var h=-1,a=this.detachedDiv,b,c;a.innerHTML=[f,e,d].join('');while(++ha.interval){a.collect()}a.timerId=Ext.interval(a.collect,a.interval)}},1,0,0,0,0,0,[Ext.dom,'GarbageCollector'],0);Ext.cmd.derive('Ext.event.gesture.Recognizer',Ext.Base,{priority:0,handledEvents:[],config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(a){this.initConfig(a);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:Ext.emptyFn,onTouchCancel:Ext.emptyFn,fail:function(){return !1},fire:function(){this.getOnRecognized().apply(this.getCallbackScope(),arguments)},reset:Ext.emptyFn},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.event.gesture,'Recognizer'],0);Ext.cmd.derive('Ext.event.gesture.SingleTouch',Ext.event.gesture.Recognizer,{inheritableStatics:{NOT_SINGLE_TOUCH:'Not Single Touch',TOUCH_MOVED:'Touch Moved',EVENT_CANCELED:'Event Canceled'},onTouchStart:function(a){if(a.touches.length>1){return this.fail(this.self.NOT_SINGLE_TOUCH)}},onTouchCancel:function(){return !1}},0,0,0,0,0,0,[Ext.event.gesture,'SingleTouch'],0);Ext.cmd.derive('Ext.event.gesture.DoubleTap',Ext.event.gesture.SingleTouch,{priority:300,inheritableStatics:{DIFFERENT_TARGET:'Different Target'},config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:['singletap','doubletap'],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(c){var a=this,b;if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}b=a.lastStartPoint=c.changedTouches[0].point;a.startPoint=a.startPoint||b;a.startTime=c.time;clearTimeout(a.singleTapTimer)},onTouchMove:function(c){var a=this,b=c.changedTouches[0].point;if(Math.abs(b.getDistanceTo(a.lastStartPoint))>=a.getMoveDistance()){a.startPoint=null;return a.fail(a.self.TOUCH_MOVED)}},onTouchEnd:function(b){var a=this,f=a.getMaxDuration(),d=b.time,g=b.target,e=a.lastTapTime,h=a.lastTarget,i=b.changedTouches[0].point,c;a.lastTapTime=d;a.lastTarget=g;if(e){c=d-e;if(c<=f&&Math.abs(i.getDistanceTo(a.startPoint))<=a.getTapDistance()){if(g!==h){return a.fail(a.self.DIFFERENT_TARGET)}a.lastTarget=null;a.lastTapTime=0;a.fire('doubletap',b,{touch:b.changedTouches[0],duration:c});a.startPoint=null;return}}if(d-a.startTime>f){a.fireSingleTap(b)}else {a.setSingleTapTimer(b)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fireSingleTap(b)},a.getMaxDuration())},fireSingleTap:function(b,a){this.fire('singletap',b,{touch:a});this.startPoint=null},reset:function(){var a=this;a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null}},0,0,0,0,0,0,[Ext.event.gesture,'DoubleTap'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)});Ext.cmd.derive('Ext.event.gesture.Drag',Ext.event.gesture.SingleTouch,{priority:100,isStarted:!1,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:['dragstart','drag','dragend','dragcancel'],config:{minDistance:8},constructor:function(){Ext.event.gesture.SingleTouch.prototype.constructor.apply(this,arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0}}},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){if(this.isStarted&&this.lastMoveEvent!==null){this.lastMoveEvent.isStopped=!1;this.onTouchEnd(this.lastMoveEvent)}return !1}this.startTime=a.time;this.startPoint=a.changedTouches[0].point},tryDragStart:function(a){var f=this.startPoint,b=a.changedTouches[0],c=b.point,e=this.getMinDistance(),d=this.info;if(Math.abs(c.getDistanceTo(f))>=e){this.isStarted=!0;this.previousPoint=this.lastPoint=c;this.resetInfo('x',a,b);this.resetInfo('y',a,b);d.time=a.time;this.fire('dragstart',a,d)}},onTouchMove:function(a){if(!this.isStarted){this.tryDragStart(a)}if(!this.isStarted){return}var b=a.changedTouches[0],c=b.point;if(this.lastPoint){this.previousPoint=this.lastPoint}this.lastPoint=c;this.lastMoveEvent=a;this.updateInfo('x',a,b);this.updateInfo('y',a,b);this.info.time=a.time;this.fire('drag',a,this.info)},onAxisDragEnd:function(b,a){var c=a.time-a.previousTime[b];if(c>0){a.flick.velocity[b]=(a[b]-a.previous[b])/c}},resetInfo:function(b,h,g){var f=this.lastPoint[b],d=this.startPoint[b],e=f-d,c=b.toUpperCase(),a=this.info;a.touch=g;a.delta[b]=e;a.absDelta[b]=Math.abs(e);a.previousTime[b]=this.startTime;a.previous[b]=d;a[b]=f;a.direction[b]=0;a['start'+c]=this.startPoint[b];a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=0;a.startTime=this.startTime},updateInfo:function(b,l,k){var e=this,d=e.lastPoint[b],g=e.previousPoint[b],f=e.startPoint[b],i=d-f,a=e.info,h=a.direction,c=b.toUpperCase(),j=a.previous[b];a.touch=k;a.delta[b]=i;a.absDelta[b]=Math.abs(i);if(d!==j&&d!==a[b]){a.previous[b]=a[b];a.previousTime[b]=a.time}a[b]=d;if(d>g){h[b]=1}else {if(dthis.getMaxDuration()){return this.fail(this.self.MAX_DURATION_EXCEEDED)}if(this.isHorizontal&&d>this.getMaxOffset()){this.isHorizontal=!1}if(this.isVertical&&c>this.getMaxOffset()){this.isVertical=!1}if(!this.isVertical||!this.isHorizontal){if(this.isHorizontal&&cj){this.isVertical=!1}if(this.isHorizontal&&i>j){this.isHorizontal=!1}if(this.isVertical&&this.isHorizontal){if(i>h){this.isHorizontal=!1}else {this.isVertical=!1}}if(this.isHorizontal){a=f<0?'left':'right';b=f}else {if(this.isVertical){a=g<0?'up':'down';b=g}}a=this.direction||(this.direction=a);if(a==='up'){b=g*-1}else {if(a==='left'){b=f*-1}}this.distance=b;if(!b){return this.fail(this.self.DISTANCE_NOT_ENOUGH)}if(!this.started){if(a==='right'&&this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='down'&&this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='left'&&o-this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='up'&&n-this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}}}}this.started=!0;this.startTime=c.time;this.fire('edgeswipestart',c,{touch:e,direction:a,distance:b,duration:k})}else {this.fire('edgeswipe',c,{touch:e,direction:a,distance:b,duration:k})}},onTouchEnd:function(a){var b;if(this.onTouchMove(a)!==!1){b=a.time-this.startTime;this.fire('edgeswipeend',a,{touch:a.changedTouches[0],direction:this.direction,distance:this.distance,duration:b})}},onTouchCancel:function(a){this.fire('edgeswipecancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){var a=this;a.started=a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null}},0,0,0,0,0,0,[Ext.event.gesture,'EdgeSwipe'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)});Ext.cmd.derive('Ext.event.gesture.LongPress',Ext.event.gesture.SingleTouch,{priority:400,inheritableStatics:{DURATION_NOT_ENOUGH:'Duration Not Enough'},config:{moveDistance:8,minDuration:1000},handledEvents:['longpress','taphold'],fireLongPress:function(a){this.fire('longpress',a,{touch:a.changedTouches[0],duration:this.getMinDuration()});this.isLongPress=!0},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}this.startPoint=a.changedTouches[0].point;this.isLongPress=!1;this.setLongPressTimer(a)},setLongPressTimer:function(b){var a=this;a.timer=Ext.defer(function(){a.fireLongPress(b)},a.getMinDuration())},onTouchMove:function(b){var a=b.changedTouches[0].point;if(Math.abs(a.getDistanceTo(this.startPoint))>=this.getMoveDistance()){return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(){if(!this.isLongPress){return this.fail(this.self.DURATION_NOT_ENOUGH)}},fail:function(){clearTimeout(this.timer);return Ext.event.gesture.SingleTouch.prototype.fail.apply(this,arguments)},reset:function(){this.isLongPress=this.startPoint=null},fire:function(b){if(b==='longpress'){var a=Array.prototype.slice.call(arguments);a[0]='taphold';this.fire.apply(this,a)}return Ext.event.gesture.SingleTouch.prototype.fire.apply(this,arguments)}},0,0,0,0,0,0,[Ext.event.gesture,'LongPress'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)});Ext.cmd.derive('Ext.event.gesture.MultiTouch',Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:!1,isStarted:!1,onTouchStart:function(a){var b=this.requiredTouchesCount,d=a.touches,c=d.length;if(c===b){this.start(a)}else {if(c>b){this.end(a)}}},onTouchEnd:function(a){this.end(a)},onTouchCancel:function(a){this.end(a,!0);return !1},start:function(){if(!this.isTracking){this.isTracking=!0;this.isStarted=!1}},end:function(b,a){if(this.isTracking){this.isTracking=!1;if(this.isStarted){this.isStarted=!1;this[a?'fireCancel':'fireEnd'](b)}}},reset:function(){this.isTracking=this.isStarted=!1}},0,0,0,0,0,0,[Ext.event.gesture,'MultiTouch'],0);Ext.cmd.derive('Ext.event.gesture.Pinch',Ext.event.gesture.MultiTouch,{priority:600,handledEvents:['pinchstart','pinch','pinchend','pinchcancel'],startDistance:0,lastTouches:null,onTouchMove:function(c){if(!this.isTracking){return}var b=c.touches,e,d,a;e=b[0].point;d=b[1].point;a=e.getDistanceTo(d);if(a===0){return}if(!this.isStarted){this.isStarted=!0;this.startDistance=a;this.fire('pinchstart',c,{touches:b,distance:a,scale:1})}else {this.fire('pinch',c,{touches:b,distance:a,scale:a/this.startDistance})}},fireEnd:function(a){this.fire('pinchend',a)},fireCancel:function(a){this.fire('pinchcancel',a)},fail:function(){return Ext.event.gesture.MultiTouch.prototype.fail.apply(this,arguments)},reset:function(){this.lastTouches=null;this.startDistance=0;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Pinch'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.pinch)});Ext.cmd.derive('Ext.event.gesture.Rotate',Ext.event.gesture.MultiTouch,{priority:700,handledEvents:['rotatestart','rotate','rotateend','rotatecancel'],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(g){if(!this.isTracking){return}var b=g.touches,c=this.lastAngle,i,h,a,e,d,f;i=b[0].point;h=b[1].point;a=i.getAngleTo(h);if(c!==null){f=Math.abs(c-a);e=a+360;d=a-360;if(Math.abs(e-c)=this.getMoveDistance()){this.fire('tapcancel',b,{touch:a});return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(a){this.fire('tap',a,{touch:a.changedTouches[0]})},onTouchCancel:function(a){this.fire('tapcancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){this.startPoint=null}},0,0,0,0,0,0,[Ext.event.gesture,'Tap'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)});Ext.cmd.derive('Ext.event.publisher.Focus',Ext.event.publisher.Dom,{type:'focus',handledEvents:['focusenter','focusleave','focusmove'],handledDomEvents:['focusin','focusout'],doDelegatedEvent:function(a,c){var d=this,b;a=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,a,!1);if(a){if(a.type==='focusout'){if(a.relatedTarget==null){d.processFocusIn(a,a.target,document.body,c)}}else {b=a.relatedTarget;d.processFocusIn(a,b==null||!b.tagName?document.body:b,a.target,c)}}},processFocusIn:function(i,d,e,l){var c=this,h,a,b=[],f,g,j,k;j=Ext.fly(d);k=Ext.fly(e);if(j&&j.isFocusSuspended()||k&&k.isFocusSuspended()){return}for(a=d,h=Ext.dom.Element.getCommonAncestor(e,d,!0);a&&a!==h;a=a.parentNode){b.push(a)}if(b.length){f=c.createSyntheticEvent('focusleave',i,d,e);c.publish('focusleave',b,f);if(f.isStopped){return}}b.length=0;for(a=e;a!==h;a=a.parentNode){b.push(a)}g=c.createSyntheticEvent('focusenter',i,e,d);if(b.length){c.publish('focusenter',b,g);if(g.isStopped){return}}b=c.getPropagatingTargets(h);if(b.length){f=c.createSyntheticEvent('focusmove',i,e,d);c.publish('focusmove',b,f);if(f.isStopped){return}}if(l){c.afterEvent(i)}Ext.GlobalEvents.fireEvent('focus',{event:g,toElement:e,fromElement:d})},createSyntheticEvent:function(d,c,e,b){var a=new Ext.event.Event(c);a.type=d;a.relatedTarget=b;a.target=e;return a}},0,0,0,0,0,0,[Ext.event.publisher,'Focus'],function(a){var b;a.instance=new a();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:['focus','blur'],doDelegatedEvent:function(c,e){var d=this;c=d.callSuper([c,!1]);if(c){clearTimeout(b);b=0;if(c.type==='blur'){var f=c.target===window?document.body:c.target;b=setTimeout(function(){b=0;d.processFocusIn(c,f,document.body,e);a.previousActiveElement=null},0);if(c.target===window||c.target===document){a.previousActiveElement=null}else {a.previousActiveElement=c.target}}else {d.processFocusIn(c,a.previousActiveElement||document.body,c.target===window?document.body:c.target,e)}}}})}});Ext.cmd.derive('Ext.fx.State',Ext.Base,{isAnimatable:{'background-color':!0,'background-image':!0,'background-position':!0,'border-bottom-color':!0,'border-bottom-width':!0,'border-color':!0,'border-left-color':!0,'border-left-width':!0,'border-right-color':!0,'border-right-width':!0,'border-spacing':!0,'border-top-color':!0,'border-top-width':!0,'border-width':!0,'bottom':!0,'color':!0,'crop':!0,'font-size':!0,'font-weight':!0,'height':!0,'left':!0,'letter-spacing':!0,'line-height':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'opacity':!0,'outline-color':!0,'outline-offset':!0,'outline-width':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'right':!0,'text-indent':!0,'text-shadow':!0,'top':!0,'vertical-align':!0,'visibility':!0,'width':!0,'word-spacing':!0,'z-index':!0,'zoom':!0,'transform':!0},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(d,a){var g=this.data,e=Ext.isArray(a),b=g.transform,c,f;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof d=='string'){switch(d){case 'translate':if(e){c=a.length;if(c==0){break}b.translateX=a[0];if(c==1){break}b.translateY=a[1];if(c==2){break}b.translateZ=a[2]}else {b.translateX=a};break;case 'rotate':if(e){c=a.length;if(c==0){break}b.rotateX=a[0];if(c==1){break}b.rotateY=a[1];if(c==2){break}b.rotateZ=a[2]}else {b.rotate=a};break;case 'scale':if(e){c=a.length;if(c==0){break}b.scaleX=a[0];if(c==1){break}b.scaleY=a[1];if(c==2){break}b.scaleZ=a[2]}else {b.scaleX=a;b.scaleY=a};break;case 'skew':if(e){c=a.length;if(c==0){break}b.skewX=a[0];if(c==1){break}b.skewY=a[1]}else {b.skewX=a};break;default:b[d]=a;}}else {for(f in d){if(d.hasOwnProperty(f)){a=d[f];this.setTransform(f,a)}}}},set:function(b,a){var d=this.data,c;if(typeof b!='string'){for(c in b){a=b[c];if(c==='transform'){this.setTransform(a)}else {d[c]=a}}}else {if(b==='transform'){this.setTransform(a)}else {d[b]=a}}return this},unset:function(b){var a=this.data;if(a.hasOwnProperty(b)){delete a[b]}return this},getData:function(){return this.data}},1,0,0,0,0,0,[Ext.fx,'State'],0);Ext.cmd.derive('Ext.fx.animation.Abstract',Ext.Evented,{isAnimation:!0,config:{name:'',element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:'linear',iteration:1,direction:'normal',delay:0,onBeforeStart:null,callback:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:!1,replacePrevious:!0},STATE_FROM:'0%',STATE_TO:'100%',DIRECTION_UP:'up',DIRECTION_DOWN:'down',DIRECTION_LEFT:'left',DIRECTION_RIGHT:'right',stateNameRegex:/^(?:[\d\.]+)%$/,constructor:function(){this.states={};Ext.Evented.prototype.constructor.apply(this,arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(b){var c=this.stateNameRegex,a;for(a in b){if(c.test(a)){this.setState(a,b[a])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent('stop',this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(c,d){var b=this.getStates(),a;a=Ext.factory(d,Ext.fx.State,b[c]);if(a){b[c]=a}return this},getState:function(a){return this.getStates()[a]},getData:function(){var a=this,b=a.getStates(),d={},e=a.getBefore(),f=a.getAfter(),k=b[a.STATE_FROM],l=b[a.STATE_TO],i=k.getData(),j=l.getData(),h,c,g;for(c in b){if(b.hasOwnProperty(c)){g=b[c];h=g.getData();d[c]=h}}return {before:e?e.getData():{},after:f?f.getData():{},states:d,from:i,to:j,duration:a.getDuration(),iteration:a.getIteration(),direction:a.getDirection(),easing:a.getEasing(),delay:a.getDelay(),onEnd:a.getOnEnd(),onBeforeEnd:a.getOnBeforeEnd(),onBeforeStart:a.getOnBeforeStart(),scope:a.getScope(),preserveEndState:a.getPreserveEndState(),replacePrevious:a.getReplacePrevious()}}},1,0,0,0,0,0,[Ext.fx.animation,'Abstract'],0);Ext.cmd.derive('Ext.fx.animation.Slide',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.SlideIn',config:{direction:'left',out:!1,offset:0,easing:'auto',containerBox:'auto',elementBox:'auto',isElementBoxFit:!0,useCssTransform:!0},reverseDirectionMap:{up:'down',down:'up',left:'right',right:'left'},applyEasing:function(a){if(a==='auto'){return 'ease-'+(this.getOut()?'in':'out')}return a},getContainerBox:function(){var a=this._containerBox;if(a==='auto'){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==='auto'){a=this.getElement().getBox()}return a},getData:function(){var o=this.getElementBox(),b=this.getContainerBox(),a=o?o:b,j=this.getFrom(),m=this.getTo(),d=this.getOut(),c=this.getOffset(),g=this.getDirection(),n=this.getUseCssTransform(),p=this.getReverse(),e=0,f=0,h,i,k,l;if(p){g=this.reverseDirectionMap[g]}switch(g){case this.DIRECTION_UP:if(d){f=b.top-a.top-a.height-c}else {f=b.bottom-a.bottom+a.height+c};break;case this.DIRECTION_DOWN:if(d){f=b.bottom-a.bottom+a.height+c}else {f=b.top-a.height-a.top-c};break;case this.DIRECTION_RIGHT:if(d){e=b.right-a.right+a.width+c}else {e=b.left-a.left-a.width-c};break;case this.DIRECTION_LEFT:if(d){e=b.left-a.left-a.width-c}else {e=b.right-a.right+a.width+c};break;}h=d?0:e;i=d?0:f;if(n){j.setTransform({translateX:h,translateY:i})}else {j.set('left',h);j.set('top',i)}k=d?e:0;l=d?f:0;if(n){m.setTransform({translateX:k,translateY:l})}else {m.set('left',k);m.set('top',l)}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.slide','animation.slideIn'],0,[Ext.fx.animation,'Slide',Ext.fx.animation,'SlideIn'],0);Ext.cmd.derive('Ext.fx.animation.SlideOut',Ext.fx.animation.Slide,{config:{out:!0}},0,0,0,0,['animation.slideOut'],0,[Ext.fx.animation,'SlideOut'],0);Ext.cmd.derive('Ext.fx.animation.Fade',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.FadeIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(c){var b=this.getTo(),a=this.getFrom();if(c){a.set('opacity',1);b.set('opacity',0)}else {a.set('opacity',0);b.set('opacity',1)}}},0,0,0,0,['animation.fade','animation.fadeIn'],0,[Ext.fx.animation,'Fade',Ext.fx.animation,'FadeIn'],0);Ext.cmd.derive('Ext.fx.animation.FadeOut',Ext.fx.animation.Fade,{config:{out:!0,before:{}}},0,0,0,0,['animation.fadeOut'],0,[Ext.fx.animation,'FadeOut'],0);Ext.cmd.derive('Ext.fx.animation.Flip',Ext.fx.animation.Abstract,{config:{easing:'ease-in',direction:'right',half:!1,out:null},getData:function(){var c=this,k=c.getFrom(),m=c.getTo(),j=c.getDirection(),b=c.getOut(),l=c.getHalf(),a=l?90:180,h=1,i=1,d=0,e=0,f=0,g=0;if(b){i=0.8}else {h=0.8}switch(j){case this.DIRECTION_UP:if(b){f=a}else {d=-a};break;case this.DIRECTION_DOWN:if(b){f=-a}else {d=a};break;case this.DIRECTION_RIGHT:if(b){g=a}else {e=-a};break;case this.DIRECTION_LEFT:if(b){g=-a}else {e=a};break;}k.setTransform({rotateX:d,rotateY:e,scale:h});m.setTransform({rotateX:f,rotateY:g,scale:i});return Ext.fx.animation.Abstract.prototype.getData.call(this)}},0,0,0,0,['animation.flip'],0,[Ext.fx.animation,'Flip'],0);Ext.cmd.derive('Ext.fx.animation.Pop',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.PopIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var b=this.getTo(),a=this.getFrom(),c=this.getOut();if(c){a.set('opacity',1);a.setTransform({scale:1});b.set('opacity',0);b.setTransform({scale:0})}else {a.set('opacity',0);a.setTransform({scale:0});b.set('opacity',1);b.setTransform({scale:1})}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.pop','animation.popIn'],0,[Ext.fx.animation,'Pop',Ext.fx.animation,'PopIn'],0);Ext.cmd.derive('Ext.fx.animation.PopOut',Ext.fx.animation.Pop,{config:{out:!0,before:{}}},0,0,0,0,['animation.popOut'],0,[Ext.fx.animation,'PopOut'],0);Ext.cmd.derive('Ext.fx.Animation',Ext.Base,{constructor:function(a){var c=Ext.fx.animation.Abstract,b;if(typeof a=='string'){b=a;a={}}else {if(a&&a.type){b=a.type}}if(b){c=Ext.ClassManager.getByAlias('animation.'+b)}return Ext.factory(a,c)}},1,0,0,0,0,0,[Ext.fx,'Animation'],0);Ext.cmd.derive('Ext.fx.runner.Css',Ext.Evented,{prefixedProperties:{'transform':!0,'transform-origin':!0,'perspective':!0,'transform-style':!0,'transition':!0,'transition-property':!0,'transition-duration':!0,'transition-timing-function':!0,'transition-delay':!0,'animation':!0,'animation-name':!0,'animation-duration':!0,'animation-iteration-count':!0,'animation-direction':!0,'animation-timing-function':!0,'animation-delay':!0},lengthProperties:{'top':!0,'right':!0,'bottom':!0,'left':!0,'width':!0,'height':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'border-bottom-width':!0,'border-left-width':!0,'border-right-width':!0,'border-spacing':!0,'border-top-width':!0,'border-width':!0,'outline-width':!0,'letter-spacing':!0,'line-height':!0,'text-indent':!0,'word-spacing':!0,'font-size':!0,'translate':!0,'translateX':!0,'translateY':!0,'translateZ':!0,'translate3d':!0},durationProperties:{'transition-duration':!0,'transition-delay':!0,'animation-duration':!0,'animation-delay':!0},angleProperties:{rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,skew:!0,skewX:!0,skewY:!0},lengthUnitRegex:/([a-z%]*)$/,DEFAULT_UNIT_LENGTH:'px',DEFAULT_UNIT_ANGLE:'deg',DEFAULT_UNIT_DURATION:'ms',formattedNameCache:{},transformMethods3d:['translateX','translateY','translateZ','rotate','rotateX','rotateY','rotateZ','skewX','skewY','scaleX','scaleY','scaleZ'],transformMethodsNo3d:['translateX','translateY','rotate','skewX','skewY','scaleX','scaleY'],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement('style');a.type='text/css';(document.head||document.getElementsByTagName('head')[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var i=this.getStyleSheet(),h=this.ruleStylesCache,k=i.cssRules,d,g,b,c,f,a,e;for(d in j){g=j[d];b=h[d];if(b===undefined){f=k.length;i.insertRule(d+'{}',f);b=h[d]=k.item(f).style}c=b.$cache;if(!c){c=b.$cache={}}for(a in g){e=this.formatValue(g[a],a);a=this.formatName(a);if(c[a]!==e){c[a]=e;if(e===null){b.removeProperty(a)}else {b.setProperty(a,e,'important')}}}}return this},applyStyles:function(f){var c,e,d,b,a,g;for(c in f){if(f.hasOwnProperty(c)){e=document.getElementById(c);if(!e){continue}d=e.style;b=f[c];for(a in b){if(b.hasOwnProperty(a)){g=this.formatValue(b[a],a);a=this.formatName(a);if(g===null){d.removeProperty(a)}else {d.setProperty(a,g,'important')}}}}}return this},formatName:function(b){var c=this.formattedNameCache,a=c[b];if(!a){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){a=this.vendorPrefix+b}else {a=b}c[b]=a}return a},formatValue:function(a,c){var j=typeof a,i=this.DEFAULT_UNIT_LENGTH,g,d,b,f,h,e,k;if(a===null){return ''}if(j=='string'){if(this.lengthProperties[c]){k=a.match(this.lengthUnitRegex)[1];if(k.length>0){}else {return a+i}}return a}else {if(j=='number'){if(a==0){return '0'}if(this.lengthProperties[c]){return a+i}if(this.angleProperties[c]){return a+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[c]){return a+this.DEFAULT_UNIT_DURATION}}else {if(c==='transform'){g=this.transformMethods;h=[];for(b=0,f=g.length;b0?e.join(', '):'none'}}}}return a}},1,0,0,0,0,0,[Ext.fx.runner,'Css'],0);Ext.cmd.derive('Ext.fx.runner.CssTransition',Ext.fx.runner.Css,{alternateClassName:'Ext.Animator',singleton:!0,listenersAttached:!1,constructor:function(){this.runningAnimationsData={};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=!0;Ext.getWin().on('transitionend','onTransitionEnd',this)},onTransitionEnd:function(c){var a=c.target,b=a.id;if(b&&this.runningAnimationsData.hasOwnProperty(b)){this.refreshRunningAnimationsData(Ext.get(a),[c.browserEvent.propertyName])}},onAnimationEnd:function(d,a,b,c,n){var l=d.getId(),j=this.runningAnimationsData[l],k={},h={},g,f,e,m,i;b.un('stop','onAnimationStop',this);if(j){g=j.nameMap}k[l]=h;if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,d,c)}b.fireEvent('animationbeforeend',b,d,c);this.fireEvent('animationbeforeend',this,b,d,c);if(n||!c&&!a.preserveEndState){f=a.toPropertyNames;for(e=0,m=f.length;e0},refreshRunningAnimationsData:function(i,m,f,g){var s=i.getId(),r=this.runningAnimationsData,e=r[s];if(!e){return}var o=e.nameMap,n=e.nameList,c=e.sessions,h,j,p,d,b,a,k,q,l=!1;f=Boolean(f);g=Boolean(g);if(!c){return this}h=c.length;if(h===0){return this}if(g){e.nameMap={};n.length=0;for(b=0;b');b.close();this.testElement=c=b.createElement('div');c.style.setProperty('position','absolute','important');b.body.appendChild(c);this.testElementComputedStyle=window.getComputedStyle(c)}return c},getCssStyleValue:function(b,a){var c=this.getTestElement(),e=this.testElementComputedStyle,d=c.style;d.setProperty(b,a);if(Ext.browser.is.Firefox){c.offsetHeight}a=e.getPropertyValue(b);d.removeProperty(b);return a},run:function(t){var a=this,H=a.lengthProperties,E={},j={},d={},i,f,m,k,F,g,e,u,v,s,r,w,x,G,c,o,y,C,h,b,l,D,n,z,q,p,A,B;if(!a.listenersAttached){a.attachListeners()}t=Ext.Array.from(t);for(w=0,G=t.length;w0){a.refreshRunningAnimationsData(i,Ext.Array.merge(g,e),!0,d.replacePrevious)}q=s.nameMap;p=s.nameList;y={};for(x=0;x0){g=Ext.Array.difference(p,g);e=Ext.Array.merge(g,e);r['transition-property']=g}E[f]=r;j[f]=Ext.apply({},k);j[f]['transition-property']=e;j[f]['transition-duration']=d.duration;j[f]['transition-timing-function']=d.easing;j[f]['transition-delay']=d.delay;c.startTime=Date.now()}v=a.$className;a.applyStyles(E);u=function(b){if(b.data===v&&b.source===window){window.removeEventListener('message',u,!1);a.applyStyles(j)}};if(window.requestAnimationFrame){window.requestAnimationFrame(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')})}else {Ext.defer(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')},1)}},onAnimationStop:function(h){var c=this.runningAnimationsData,e,f,d,b,g,a;for(e in c){if(c.hasOwnProperty(e)){f=c[e];d=f.sessions;for(b=0,g=d.length;b'){this.isParentReference=!0;a=a.substring(0,b)}return a}}},0,0,0,0,0,0,[Ext.mixin,'Container'],0);Ext.cmd.derive('Ext.mixin.Responsive',Ext.Mixin,function(a){return {mixinConfig:{id:'responsive',after:{destroy:'destroy'}},config:{responsiveConfig:{$value:undefined,merge:function(c,d,g,f){if(!c){return d}var e=d?Ext.Object.chain(d):{},b;for(b in c){if(!f||!(b in e)){e[b]={fn:null,config:c[b]}}}return e}},responsiveFormulas:{$value:0,merge:function(c,d,e,b){return this.mergeNew(c,d,e,b)}}},destroy:function(){a.unregister(this);this.callParent()},privates:{statics:{active:!1,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=!0;a.updateContext();Ext.on('resize',a.onResize,a)},deactivate:function(){a.active=!1;Ext.un('resize',a.onResize,a)},notify:function(){var b=a.all,e=a.context,d=Ext.GlobalEvents,f=a.timer,c;if(f){a.timer=null;Ext.Function.cancelAnimationFrame(f)}a.updateContext();Ext.suspendLayouts();d.fireEvent('beforeresponsiveupdate',e);for(c in b){b[c].setupResponsiveContext()}d.fireEvent('beginresponsiveupdate',e);for(c in b){b[c].updateResponsiveState()}d.fireEvent('responsiveupdate',e);Ext.resumeLayouts(!0)},onResize:function(){if(!a.timer){a.timer=Ext.Function.requestAnimationFrame(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(c,d,b){var g=d&&d[b],f=c.config,h,e;if(g){e=c.getConfigurator();h=e.configs[b];f[b]=h.merge(g,f[b],c)}},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),c=e.getViewportHeight(),b=a.context;b.width=d;b.height=c;b.tall=d','',' ({childCount} children)','','',' ({depth} deep)','','',', {type}: {[this.time(values.sum)]} msec (','avg={[this.time(values.sum / parent.count)]}',')','',''].join(''),{time:function(a){return Math.round(a*100)/100}})}var a=this.getData(b);a.name=this.name;a.pure.type='Pure';a.total.type='Total';a.times=[a.pure,a.total];return c.apply(a)},getData:function(b){var a=this;return {count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:setToJSON(a.count,a.childCount,b,a.pure),total:setToJSON(a.count,a.childCount,b,a.total)}},enter:function(){var c=this,d={accum:c,leave:leaveFrame,childTime:0,parent:b};++c.depth;if(c.maxDepth0){d=a==='this'?this:typeof a==='string'?this[a]:typeof a==='number'?arguments[a]:null;if(d){f=d.id}if(f!=null){console.log(b+' for '+f+': '+c+'ms')}else {console.log(b+' for unknown: '+c+'ms')}if(console.trace){console.trace()}}return h}}(b,d[b])}Ext.override(f,c)}}}}},1,0,0,0,0,0,[Ext.perf,'Monitor',Ext,'Perf'],0);Ext.cmd.derive('Ext.plugin.Abstract',Ext.Base,{alternateClassName:'Ext.AbstractPlugin',isPlugin:!0,constructor:function(a){if(a){this.pluginConfig=a;this.initConfig(a)}},clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},setCmp:function(a){this.cmp=a},getCmp:function(){return this.cmp},init:Ext.emptyFn,destroy:function(){this.cmp=this.pluginConfig=null;this.callParent()},onClassExtended:function(c,b,d){var a=b.alias;if(a&&!b.ptype){if(Ext.isArray(a)){a=a[0]}c.prototype.ptype=a.split('plugin.')[1]}},resolveListenerScope:function(b){var a=this,d=a.getCmp(),c;if(d){c=d.resolveSatelliteListenerScope(a,b)}return c||a.mixins.observable.resolveListenerScope.call(a,b)}},1,0,0,0,0,0,[Ext.plugin,'Abstract',Ext,'AbstractPlugin'],0);Ext.define('Ext.overrides.plugin.Abstract',{override:'Ext.plugin.Abstract',$configStrict:!1,$configPrefixed:!1,disabled:!1,getState:null,applyState:null,enable:function(){this.disabled=!1},disable:function(){this.disabled=!0}});Ext.cmd.derive('Ext.util.ItemCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.ItemCollection',getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}},0,0,0,0,0,0,[Ext.util,'ItemCollection',Ext,'ItemCollection'],0);Ext.cmd.derive('Ext.util.TaskManager',Ext.util.TaskRunner,{alternateClassName:['Ext.TaskManager'],singleton:!0},0,0,0,0,0,0,[Ext.util,'TaskManager',Ext,'TaskManager'],0);Ext.cmd.derive('Ext.util.TextMetrics',Ext.Base,{statics:{shared:null,measure:function(d,e,c){var b=this,a=b.shared;if(!a){a=b.shared=new b(d,c)}a.bind(d);a.setFixedWidth(c||'auto');return a.getSize(e)},destroy:function(){var a=this;Ext.destroy(a.shared);a.shared=null}},constructor:function(c,b){var d=this,a=Ext.getBody().createChild({role:'presentation',cls:'x-textmetrics'});a.setVisibilityMode(1);d.measure=a;if(c){d.bind(c)}a.position('absolute');a.setLocalXY(-1000,-1000);a.hide();if(b){a.setWidth(b)}},getSize:function(c){var a=this.measure,b;a.setHtml(c);b=a.getSize();a.setHtml('');return b},bind:function(b){var a=this;a.el=Ext.get(b);a.measure.setStyle(a.el.getStyle(['font-size','font-style','font-weight','font-family','line-height','text-transform','letter-spacing','word-break']))},setFixedWidth:function(a){this.measure.setWidth(a)},getWidth:function(a){this.measure.dom.style.width='auto';return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height},destroy:function(){var a=this;a.el=a.measure=Ext.destroy(a.measure);a.callParent()}},1,0,0,0,0,0,[Ext.util,'TextMetrics'],function(){Ext.Element.override({getTextWidth:function(a,c,b){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(a,this.dom.innerHTML,!0)).width,c||0,b||1000000)}})});Ext.define(null,{override:'Ext.event.publisher.Focus',compatibility:Ext.isIE10m,doDelegatedEvent:function(a,d){var c=document.body,b=Ext.synchronouslyFocusing;if(b&&(a.type==='focusout'&&a.srcElement===b&&a.toElement===c||a.type==='focusin'&&a.srcElement===c&&a.fromElement===b&&a.toElement===null)){return}return this.callParent([a,d])}});Ext.define(null,{override:'Ext.scroll.DomScroller',compatibility:Ext.isIE8,privates:{doScrollTo:function(a,b,j){var c=this,f=c.getElement(),e,d,i,g,h;if(f&&!f.destroyed){d=this.getElement().dom;g=a===Infinity;h=b===Infinity;if(g||h){e=c.getMaxPosition();if(g){a=e.x}if(h){b=e.y}}a=c.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}f.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(a!=null&&b!=null){c.deferDomScroll=!0}if(b!=null){d.scrollTop=b}if(a!=null){d.scrollLeft=a}if(c.deferDomScroll){c.deferDomScroll=!1;+d.scrollLeft;d.scrollLeft=a}}c.positionDirty=!0}},onDomScroll:function(){var a=this;if(a.deferDomScroll){return}a.callParent()}}});Ext.cmd.derive('Ext.ElementLoader',Ext.Base,{statics:{Renderer:{Html:function(c,b,a){c.getTarget().setHtml(b.responseText,a.scripts===!0,a.rendererScope);return !0}}},url:null,params:null,baseParams:null,autoLoad:!1,target:null,loadMask:!1,ajaxOptions:null,scripts:!1,isLoader:!0,constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.setTarget(a.target);if(a.autoLoad){b=a.autoLoad;if(b===!0){b=null}a.load(b)}},setTarget:function(a){var b=this;a=Ext.get(a);if(b.target&&b.target!==a){b.abort()}b.target=a},getTarget:function(){return this.target||null},abort:function(){var a=this.active;if(a!==undefined){Ext.Ajax.abort(a.request);if(a.mask){this.removeMask()}delete this.active}},removeMask:function(){this.target.unmask()},addMask:function(a){this.target.mask(a===!0?null:a)},load:function(b){b=Ext.apply({},b);var a=this,d=Ext.isDefined(b.loadMask)?b.loadMask:a.loadMask,c=Ext.apply({},b.params),e=Ext.apply({},b.ajaxOptions),f=b.callback||a.callback,g=b.scope||a.scope||a;Ext.applyIf(e,a.ajaxOptions);Ext.applyIf(b,e);Ext.applyIf(c,a.params);Ext.apply(c,a.baseParams);Ext.applyIf(b,{url:a.url});Ext.apply(b,{scope:a,params:c,callback:a.onComplete});if(a.fireEvent('beforeload',a,b)===!1){return}if(d){a.addMask(d)}a.active={options:b,mask:d,scope:g,callback:f,success:b.success||a.success,failure:b.failure||a.failure,renderer:b.renderer||a.renderer,scripts:Ext.isDefined(b.scripts)?b.scripts:a.scripts};a.active.request=Ext.Ajax.request(b);a.setOptions(a.active,b)},setOptions:function(b,a){b.rendererScope=a.rendererScope||this.rendererScope||this},onComplete:function(d,e,c){var a=this,b=a.active,g,f;if(b){f=b.scope;g=b.rendererScope;if(e){e=a.getRenderer(b.renderer).call(g,a,c,b)!==!1}if(e){Ext.callback(b.success,f,[a,c,d]);a.fireEvent('load',a,c,d)}else {Ext.callback(b.failure,f,[a,c,d]);a.fireEvent('exception',a,c,d)}Ext.callback(b.callback,f,[a,e,c,d]);if(b.mask){a.removeMask()}}delete a.active},getRenderer:function(a){if(Ext.isFunction(a)){return a}return this.statics().Renderer.Html},startAutoRefresh:function(b,c){var a=this;a.stopAutoRefresh();a.autoRefresh=Ext.interval(function(){a.load(c)},b)},stopAutoRefresh:function(){clearInterval(this.autoRefresh);delete this.autoRefresh},isAutoRefreshing:function(){return Ext.isDefined(this.autoRefresh)},destroy:function(){var a=this;a.stopAutoRefresh();delete a.target;a.abort();a.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext,'ElementLoader'],0);Ext.cmd.derive('Ext.ComponentLoader',Ext.ElementLoader,{statics:{Renderer:{Data:function(c,b,d){var a=!0;try{c.getTarget().update(Ext.decode(b.responseText))}catch(e){a=!1}return a},Component:function(f,d,e){var b=!0,a=f.getTarget(),c=[];try{c=Ext.decode(d.responseText)}catch(g){b=!1}if(b){a.suspendLayouts();if(e.removeAll){a.removeAll()}a.add(c);a.resumeLayouts(!0)}return b}}},target:null,loadOnRender:!1,loadMask:!1,renderer:'html',setTarget:function(b){var a=this;if(Ext.isString(b)){b=Ext.getCmp(b)}if(a.target&&a.target!==b){a.abort()}a.target=b;if(b&&a.loadOnRender){if(b.rendered){a.doLoadOnRender()}else {a.mon(b,'render',a.doLoadOnRender,a)}}},doLoadOnRender:function(){var a=this.loadOnRender;this.load(Ext.isObject(a)?a:null)},removeMask:function(){this.target.setLoading(!1)},addMask:function(a){this.target.setLoading(a)},setOptions:function(b,a){b.removeAll=Ext.isDefined(a.removeAll)?a.removeAll:this.removeAll;b.rendererScope=a.rendererScope||this.rendererScope||this.target},getRenderer:function(a){if(Ext.isFunction(a)){return a}var b=this.statics().Renderer;switch(a){case 'component':return b.Component;case 'data':return b.Data;default:return Ext.ElementLoader.Renderer.Html;}}},0,0,0,0,0,0,[Ext,'ComponentLoader'],0);Ext.cmd.derive('Ext.layout.SizeModel',Ext.Base,{constructor:function(e){var a=this,b=a.self,d=b.sizeModelsArray,c;Ext.apply(a,e);a[c=a.name]=!0;a.fixed=!(a.auto=a.natural||a.shrinkWrap);d[a.ordinal=d.length]=b[c]=b.sizeModels[c]=a},statics:{sizeModelsArray:[],sizeModels:{}},calculated:!1,configured:!1,constrainedMax:!1,constrainedMin:!1,natural:!1,shrinkWrap:!1,calculatedFromConfigured:!1,calculatedFromNatural:!1,calculatedFromShrinkWrap:!1,names:null},1,0,0,0,0,0,[Ext.layout,'SizeModel'],function(){var a=this,d=a.sizeModelsArray,b,c,f,g,e;new a({name:'calculated'});new a({name:'configured',names:{width:'width',height:'height'}});new a({name:'natural'});new a({name:'shrinkWrap'});new a({name:'calculatedFromConfigured',configured:!0,calculatedFrom:!0,names:{width:'width',height:'height'}});new a({name:'calculatedFromNatural',natural:!0,calculatedFrom:!0});new a({name:'calculatedFromShrinkWrap',shrinkWrap:!0,calculatedFrom:!0});new a({name:'constrainedMax',configured:!0,constrained:!0,names:{width:'maxWidth',height:'maxHeight'}});new a({name:'constrainedMin',configured:!0,constrained:!0,names:{width:'minWidth',height:'minHeight'}});new a({name:'constrainedDock',configured:!0,constrained:!0,constrainedByMin:!0,names:{width:'dockConstrainedWidth',height:'dockConstrainedHeight'}});for(b=0,f=d.length;b-1&&e','
    role="presentation"','class="{innerCtCls}">','{%this.renderBody(out,values)%}','
    ',''],beginLayout:function(a){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(a)},beforeLayoutCycle:function(d){var a=this.owner,c=a.inheritedState,b=a.inheritedStateInner;if(!c||c.invalid){c=a.getInherited();b=a.inheritedStateInner}if(d.widthModel.shrinkWrap){b.inShrinkWrapTable=!0}else {delete b.inShrinkWrapTable}},beginLayoutCycle:function(e){var a=this,g=a.outerCt,l=a.lastOuterCtWidth||'',k=a.lastOuterCtHeight||'',j=a.lastOuterCtTableLayout||'',i=e.state,f,d,c,b,h;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);d=c=b='';if(!e.widthModel.shrinkWrap){d='100%';h=a.owner.inheritedStateInner;f=a.getOverflowXStyle(e);b=h.inShrinkWrapTable||f==='auto'||f==='scroll'?'':'fixed'}if(!e.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){c='100%'}if(d!==l||a.hasOuterCtPxWidth){g.setStyle('width',d);a.lastOuterCtWidth=d;a.hasOuterCtPxWidth=!1}if(b!==j){g.setStyle('table-layout',b);a.lastOuterCtTableLayout=b}if(c!==k||a.hasOuterCtPxHeight){g.setStyle('height',c);a.lastOuterCtHeight=c;a.hasOuterCtPxHeight=!1}if(a.hasInnerCtPxHeight){a.innerCt.setStyle('height','');a.hasInnerCtPxHeight=!1}i.overflowAdjust=i.overflowAdjust||a.lastOverflowAdjust},calculate:function(b){var a=this,d=b.state,c=a.getContainerSize(b,!0),e=d.calculatedItems||(d.calculatedItems=a.calculateItems?a.calculateItems(b,c):!0);a.setCtSizeIfNeeded(b,c);if(e&&b.hasDomProp('containerChildrenSizeDone')){a.calculateContentSize(b);if(c.gotAll){if(a.manageOverflow&&!b.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(b,c)}return}}a.done=!1},calculateContentSize:function(a){var b=this,f=(a.widthModel.shrinkWrap?1:0)|(a.heightModel.shrinkWrap?2:0),d=f&1||undefined,c=f&2||undefined,e=0,g=a.props;if(d){if(isNaN(g.contentWidth)){++e}else {d=undefined}}if(c){if(isNaN(g.contentHeight)){++e}else {c=undefined}}if(e){if(d&&!a.setContentWidth(b.measureContentWidth(a))){b.done=!1}if(c&&!a.setContentHeight(b.measureContentHeight(a))){b.done=!1}}},calculateOverflow:function(d){var c=this,g,f,e,a,h,i,b;h=c.getOverflowXStyle(d)==='auto';i=c.getOverflowYStyle(d)==='auto';if(h||i){e=Ext.getScrollbarSize();b=d.overflowContext.el.dom;a=0;if(b.scrollWidth>b.clientWidth){a|=1}if(b.scrollHeight>b.clientHeight){a|=2}g=i&&a&2?e.width:0;f=h&&a&1?e.height:0;if(g!==c.lastOverflowAdjust.width||f!==c.lastOverflowAdjust.height){c.done=!1;d.invalidate({state:{overflowAdjust:{width:g,height:f},overflowState:a,secondPass:!0}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(b,a){var c=a.$layout,d=Ext.XTemplate,e=c.beforeBodyTpl,f=c.afterBodyTpl;if(e){d.getTpl(c,'beforeBodyTpl').applyOut(a,b)}this.renderItems(b,a);this.renderContent(b,a);if(f){d.getTpl(c,'afterBodyTpl').applyOut(a,b)}},doRenderPadding:function(d,b){var e=b.$layout,a=b.$layout.owner,c=a[a.contentPaddingProperty];if(e.managePadding&&c){d.push('padding:',a.unitizeBox(c))}},finishedLayout:function(b){var a=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){a.repaint()}if(Ext.isOpera){a.setStyle('position','relative');a.dom.scrollWidth;a.setStyle('position','')}},getContainerSize:function(c,d){var b=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),a=c.state.overflowAdjust;if(a){b.width-=a.width;b.height-=a.height}return b},getRenderData:function(){var b=this,a=Ext.layout.container.Container.prototype.getRenderData.call(this);a.innerCtCls=b.innerCtCls;a.outerCtCls=b.outerCtCls;return a},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(a){return a.overflowXStyle||(a.overflowXStyle=this.owner.scrollFlags.overflowX||a.overflowContext.getStyle('overflow-x'))},getOverflowYStyle:function(a){return a.overflowYStyle||(a.overflowYStyle=this.owner.scrollFlags.overflowY||a.overflowContext.getStyle('overflow-y'))},initContextItems:function(a){var b=this,d=a.target,c=b.owner.getOverflowEl();a.outerCtContext=a.getEl('outerCt',b);a.innerCtContext=a.getEl('innerCt',b);a.overflowContext=c===a.el?a:a.getEl(c);if(d[d.contentPaddingProperty]!==undefined){a.paddingContext=a.innerCtContext}},initLayout:function(){var a=this,b=Ext.getScrollbarSize().width,c=a.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&a.manageOverflow&&!a.hasOwnProperty('lastOverflowAdjust')){if(c.scrollable||a.reserveScrollbar){a.lastOverflowAdjust={width:b,height:0}}}},measureContentHeight:function(b){var a=this.outerCt.getHeight(),c=b.target;if(this.managePadding&&c[c.contentPaddingProperty]===undefined){a+=b.targetContext.getPaddingInfo().height}return a},measureContentWidth:function(f){var a,b,e,c,d;if(this.chromeCellMeasureBug){a=this.innerCt.dom;b=a.style;e=b.display;if(e==='table-cell'){b.display='';a.offsetWidth;b.display=e}}if(Ext.isSafari){a=this.outerCt.dom;b=a.style;b.display='table-cell';a.offsetWidth;a.style.display=''}c=this.outerCt.getWidth();d=f.target;if(this.managePadding&&d[d.contentPaddingProperty]===undefined){c+=f.targetContext.getPaddingInfo().width}return c},setCtSizeIfNeeded:function(a,h){var c=this,b=h.height,k=a.paddingContext.getPaddingInfo(),g=c.getTarget(),f=c.getOverflowXStyle(a),j=f==='auto'||f==='scroll',i=Ext.getScrollbarSize(),e,d;if(b&&!a.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){e=!0}if(Ext.isIE8){d=!0}if((e||d)&&j&&g.dom.scrollWidth>g.dom.clientWidth){b=Math.max(b-i.height,0)}if(e){a.outerCtContext.setProp('height',b+k.height);c.hasOuterCtPxHeight=!0}if(d){a.innerCtContext.setProp('height',b);c.hasInnerCtPxHeight=!0}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt},getScrollerEl:function(){return this.outerCt}},0,0,0,0,['layout.auto','layout.autocontainer'],0,[Ext.layout.container,'Auto'],function(){this.prototype.chromeCellMeasureBug=Ext.isChrome&&Ext.chromeVersion>=26});Ext.cmd.derive('Ext.ZIndexManager',Ext.Base,{alternateClassName:'Ext.WindowGroup',statics:{zBase:9000,activeCounter:0},constructor:function(b){var a=this;a.id=Ext.id(null,'zindex-mgr-');a.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(c,d){var a=(c.alwaysOnTop||0)-(d.alwaysOnTop||0);if(!a){a=c.getActiveCounter()-d.getActiveCounter()}return a}},filters:{filterFn:function(a){return a.isVisible()}}});a.zIndexStack.addObserver(a);a.front=null;a.globalListeners=Ext.GlobalEvents.on({beforehide:a.onComponentShowHide,show:a.onComponentShowHide,scope:a,destroyable:!0});if(b){if(b.isContainer){b.on('resize',a.onContainerResize,a);a.zseed=Ext.Number.from(a.rendered?b.getEl().getStyle('zIndex'):undefined,a.getNextZSeed());a.targetEl=b.getTargetEl();a.container=b}else {Ext.on('resize',a.onContainerResize,a);a.zseed=a.getNextZSeed();a.targetEl=Ext.get(b)}}else {a.zseed=a.getNextZSeed();Ext.onInternalReady(function(){Ext.on('resize',a.onContainerResize,a);a.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return Ext.ZIndexManager.zBase+=10000},setBase:function(a){this.zseed=a;return this.onCollectionSort()},onCollectionSort:function(){var d=this,b=d.front,k=b&&b.containsFocus,g=d.zseed,i=d.zIndexStack.getRange(),j=i.length,e,c,f,a,h=!1;for(e=0;e0;){a=c[b];if(a.isComponent&&e.call(d||a,a)===!1){return}}},destroy:function(){var a=this,c=a.zIndexStack.getRange(),d=c.length,b;for(b=0;b1){b.refresh()}if(a.hasListeners.afterlayout){a.fireEvent('afterlayout',a,c)}},beforeDestroy:function(){var a=this,d=a.items,c=a.floatingItems,b;if(d){while(b=d.first()){a.doRemove(b,!0)}}if(c){while(b=c.first()){a.doRemove(b,!0)}}Ext.destroy(a.layout);Ext.Component.prototype.beforeDestroy.call(this)},destroy:function(){var a=this;Ext.Component.prototype.destroy.call(this);if(a.items){a.items.destroy()}if(a.floatingItems){a.floatingItems.destroy()}a.refs=a.items=a.floatingItems=a.layout=null},beforeRender:function(){var a=this,c=a.getLayout(),b;a.preventChildDisable=!0;Ext.Component.prototype.beforeRender.call(this);a.preventChildDisable=!1;if(!c.initialized){c.initLayout()}b=c.targetCls;if(b){a.applyTargetCls(b)}},cascade:function(f,e,d){var a=this,h=a.items?a.items.items:[],j=h.length,g=0,b,c=d?d.concat(a):[a],i=c.length-1;if(f.apply(e||a,c)!==!1){for(;g','
    ','
    {msg}
    ','
    ',''],maskOnDisable:!1,skipLayout:!0,constructor:function(c){var a=this,b;if(arguments.length===2){b=a.target=c;c=arguments[1]}else {b=c.target}Ext.Component.prototype.constructor.call(this,c);if(b.isComponent){a.ownerCt=b;a.hidden=!0;a.renderTo=a.getMaskTarget();a.external=a.renderTo===Ext.getBody();a.bindComponent(b)}else {b=Ext.get(b);a.isElement=!0;a.renderTo=a.target}a.render(a.renderTo);if(a.store){a.bindStore(a.store,!0)}},initRenderData:function(){var a=Ext.Component.prototype.initRenderData.apply(this,arguments);a.msg=this.msg||'';return a},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(b){var a=this,c={scope:this,resize:a.sizeMask};if(a.external){c.added=a.onComponentAdded;c.removed=a.onComponentRemoved;if(b.floating){c.move=a.sizeMask;a.activeOwner=b}else {if(b.ownerCt){a.onComponentAdded(b.ownerCt)}}}a.mon(b,c);if(a.external){a.mon(Ext.GlobalEvents,{show:a.onContainerShow,hide:a.onContainerHide,expand:a.onContainerExpand,collapse:a.onContainerCollapse,scope:a})}},onComponentAdded:function(b){var a=this;delete a.activeOwner;a.floatParent=b;if(!b.floating){b=b.up('[floating]')}if(b){a.activeOwner=b;a.mon(b,'move',a.sizeMask,a);a.mon(b,'tofront',a.onOwnerToFront,a)}else {a.preventBringToFront=!0}b=a.floatParent.ownerCt;if(a.rendered&&a.isVisible()&&b){a.floatOwner=b;a.mon(b,'afterlayout',a.sizeMask,a,{single:!0})}},onComponentRemoved:function(d){var a=this,b=a.activeOwner,c=a.floatOwner;if(b){a.mun(b,'move',a.sizeMask,a);a.mun(b,'tofront',a.onOwnerToFront,a)}if(c){a.mun(c,'afterlayout',a.sizeMask,a)}delete a.activeOwner;delete a.floatOwner},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){a.el.on('mousedown',a.onMouseDown,a)}this.el.skipGarbageCollection=!0},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(b,a){this.el.setStyle('zIndex',a+1)},onContainerShow:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var a=this;if(a.rendered&&a.isVisible()){a.hide();a.showNext=!0}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var a=this,b=a.activeOwner||a.target,c=a.external?a.getOwner().el:a.getMaskTarget();if(a.rendered&&a.isVisible()){if(a.external){if(!a.isElement&&b.floating){a.onOwnerToFront(b,b.el.getZIndex())}a.el.setSize(c.getSize()).alignTo(c,'tl-tl')}a.msgWrapEl.center(a.el)}},bindStore:function(a,c){var b=this;Ext.destroy(b.proxyListeners);b.mixins.storeholder.bindStore.apply(b,arguments);a=b.store;if(a){while(a.getSource){a=a.getSource()}if(!a.loadsSynchronously()){b.proxyListeners=a.getProxy().on({exception:b.onLoad,scope:b,destroyable:!0})}if(a.isLoading()){b.onBeforeLoad()}}},getStoreListeners:function(d){var c=this.onLoad,b=this.onBeforeLoad,a={cachemiss:b,cachefilled:{fn:c,buffer:100}};if(!d.loadsSynchronously()){a.beforeload=b;a.load=c}return a},onDisable:function(){Ext.Component.prototype.onDisable.apply(this,arguments);if(this.loading){this.onLoad()}},getOwner:function(){return this.ownerCt||this.ownerCmp||this.floatParent},getMaskTarget:function(){var a=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?a.getTargetEl():a.getMaskTarget()||Ext.getBody()},onBeforeLoad:function(){var b=this,a=b.getOwner(),c;if(!b.disabled){b.loading=!0;if(a.componentLayoutCounter){b.maybeShow()}else {c=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=c;c.apply(a,arguments);b.maybeShow()}}}},maybeShow:function(){var a=this,b=a.getOwner();if(!b.isVisible(!0)){a.showNext=!0}else {if(a.loading&&b.rendered){a.show()}}},hide:function(){var b=this,a=b.ownerCt;if(b.isElement){a.unmask();b.fireEvent('hide',this);return}if(a){a.enableTabbing();a.setMasked(!1)}delete b.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;if(a.isElement){a.ownerCt.mask(this.useMsg?this.msg:'',this.msgCls);a.fireEvent('show',this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var a=this,b=a.ownerCt;a.loading=!0;Ext.Component.prototype.afterShow.apply(this,arguments);b.disableTabbing();b.setMasked(!0);a.el.restoreTabbableState();a.syncMaskState()},syncMaskState:function(){var a=this,c=a.ownerCt,b=a.el;if(a.isVisible()){if(a.hasOwnProperty('msgWrapCls')){b.dom.className=a.msgWrapCls}if(a.useMsg){a.msgTextEl.setHtml(a.msg)}else {a.msgEl.hide()}if(a.shim||Ext.useShims){b.enableShim(null,!0)}else {b.disableShim()}if(c.el.contains(Ext.Element.getActiveElement())){a.focus()}a.sizeMask()}},onLoad:function(){this.loading=!1;this.hide()},beforeDestroy:function(){this.ownerCt=null;this.bindStore(null);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.onDestroy.call(this)}},1,['loadmask'],['component','box','loadmask'],{'component':!0,'box':!0,'loadmask':!0},['widget.loadmask'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext,'LoadMask'],0);Ext.cmd.derive('Ext.layout.component.Component',Ext.layout.Layout,{type:'component',isComponentLayout:!0,nullBox:{},usesContentHeight:!0,usesContentWidth:!0,usesHeight:!0,usesWidth:!0,widthCache:{},heightCache:{},beginLayoutCycle:function(a,j){var c=this,f=c.owner,p=a.ownerCtContext,g=a.heightModel,h=a.widthModel,o=f.el.dom===document.body,e=f.lastBox||c.nullBox,d=f.el.lastBox||c.nullBox,m=!o,k=a.isTopLevel,i,b,n,l;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,a,j);if(j){if(c.usesContentWidth){++a.consumersContentWidth}if(c.usesContentHeight){++a.consumersContentHeight}if(c.usesWidth){++a.consumersWidth}if(c.usesHeight){++a.consumersHeight}if(p&&!p.hasRawContent){i=f.ownerLayout;if(i){if(i.usesWidth){++a.consumersWidth}if(i.usesHeight){++a.consumersHeight}}}}if(h.configured){n=f[h.names.width];if(k&&h.calculatedFrom){n=e.width}if(!o){m=c.setWidthInDom||(j?n!==d.width:h.constrained)}a.setWidth(n,m)}else {if(k){if(h.calculated){b=e.width;a.setWidth(b,b!==d.width)}b=e.x;a.setProp('x',b,b!==d.x)}}if(g.configured){l=f[g.names.height];if(k&&g.calculatedFrom){l=e.height}if(!o){m=j?l!==d.height:g.constrained}a.setHeight(l,m)}else {if(k){if(g.calculated){b=e.height;a.setHeight(b,b!==d.height)}b=e.y;a.setProp('y',b,b!==d.y)}}},finishedLayout:function(c){var h=this,e=c.children,g=h.owner,i,d,f,a,b;if(e){i=e.length;for(d=0;d','
    {text}
    ','',''],componentLayout:'progressbar',ariaRole:'progressbar',initRenderData:function(){var a=this,b=a.value||0;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{internalText:!a.hasOwnProperty('textEl'),text:a.text||' ',percentage:b*100})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.textEl){a.textEl=Ext.get(a.textEl);a.updateText(a.text)}else {a.textEl=a.el.select('.'+a.baseCls+'-text')}},updateValue:function(a){this.updateProgress(a,Math.round(a*100)+'%')},updateProgress:function(b,c,d){b=b||0;var a=this,f=a.value,e=a.getTextTpl();a.value=b||(b=0);if(c!=null){a.updateText(c)}else {if(e){a.updateText(e.apply({value:b,percent:b*100}))}}if(a.rendered&&!a.destroyed){if(d===!0||d!==!1&&a.animate){a.bar.stopAnimation();a.bar.animate(Ext.apply({from:{width:f*100+'%'},to:{width:b*100+'%'}},a.animate))}else {a.bar.setStyle('width',b*100+'%')}}a.fireEvent('update',a,b,c);return a},updateText:function(b){var a=this;a.text=b;if(a.rendered){a.textEl.setHtml(a.text)}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(a){var b=this,c;if(!b.waitTimer){c=b;a=a||{};b.updateText(a.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var c=a.increment||10;d-=1;b.updateProgress(((d+c)%c+1)*(100/c)*0.01,null,a.animate)},interval:a.interval||1000,duration:a.duration,onStop:function(){if(a.fn){a.fn.apply(a.scope||b)}b.reset()},scope:c})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(b){var a=this;a.updateProgress(0);a.clearTimer();if(b===!0){a.hide()}return a},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},onDestroy:function(){var a=this,b=a.bar;a.clearTimer();if(a.rendered){if(a.textEl.isComposite){a.textEl.clear()}Ext.destroyMembers(a,'textEl','progressBar');if(b&&a.animate){b.stopAnimation()}}Ext.Component.prototype.onDestroy.call(this)}},0,['progressbar'],['component','box','progressbar'],{'component':!0,'box':!0,'progressbar':!0},['widget.progressbar'],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,'ProgressBar'],0);Ext.cmd.derive('Ext.dom.ButtonElement',Ext.dom.Element,{setSize:function(b,a,e){var d=this,c=d.component;Ext.dom.Element.prototype.setSize.call(this,b,a,e);c.btnWrap.setStyle('table-layout',!b||b==='auto'?'':'fixed');c.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return d},setStyle:function(a,c){var f=this,e=f.component,d,b;Ext.dom.Element.prototype.setStyle.call(this,a,c);if(a){if(a==='width'||typeof a!=='string'&&'width' in a){d=c||a.width;e.btnWrap.setStyle('table-layout',!d||d==='auto'?'':'fixed')}if(a==='height'||typeof a!=='string'&&'height' in a){b=c||a.height;e.btnEl.setStyle('height',!b||b==='auto'?'':'auto')}}return f},setHeight:function(a,b){Ext.dom.Element.prototype.setHeight.call(this,a,b);this.component.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return this},setWidth:function(a,b){Ext.dom.Element.prototype.setWidth.call(this,a,b);this.component.btnWrap.setStyle('table-layout',!a||a==='auto'?'':'fixed');return this}},0,0,0,0,0,0,[Ext.dom,'ButtonElement'],0);Ext.cmd.derive('Ext.button.Manager',Ext.Base,{singleton:!0,alternateClassName:'Ext.ButtonToggleManager',groups:{},pressedButton:null,init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a});a.initialized=!0}},onButtonMousedown:function(b,c){var a=this.pressedButton;if(a){a.onMouseUp(c)}this.pressedButton=b},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(c,e){if(e){var b=this.groups[c.toggleGroup],d=b.length,a;for(a=0;a{[values.$comp.renderIcon(values)]}{text}{[values.$comp.renderIcon(values)]}{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]} {closeText} tabindex="{tabIndex}" {$}="{.}">{arrowElText}',iconTpl:'background-image:url({iconUrl});font-family:{glyphFontFamily};">&#{glyph};',scale:'small',allowedScales:['small','medium','large'],arrowAlign:'right',arrowCls:'arrow',maskOnDisable:!1,shrinkWrap:3,frame:!0,autoEl:{tag:'a',hidefocus:'on',unselectable:'on'},hasFrameTable:function(){return this.href&&this.frameTable},frameTableListener:function(){if(!this.disabled){this.doNavigate()}},doNavigate:function(){if(this.hrefTarget==='_blank'){window.open(this.getHref(),this.hrefTarget)}else {location.href=this.getHref()}},_triggerRegion:{},initComponent:function(){var a=this;a.addCls('x-unselectable');Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=!0;a.setMenu(a.menu,!1,!0)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty('preventDefault');if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=!1}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==''){a.enableToggle=!0}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var a=this,b=Ext.Component.prototype.getElConfig.call(this),d=a.getHref(),c=a.hrefTarget;if(b.tag==='a'){if(!a.disabled){b.tabIndex=a.tabIndex}if(d){if(!a.disabled){b.href=d;if(c){b.target=c}}}}if(!a.ariaStaticRoles[a.ariaRole]){if(a.menu&&!a.isSplitButton){b['aria-haspopup']=!0}if(a.enableToggle){b['aria-pressed']=!!a.pressed}}return b},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);if(this.pressed){this.addCls(this._pressedCls)}},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),this.getTemplateArgs())},getMenu:function(){return this.menu||null},setMenu:function(b,g,h){var a=this,e=a.menu,d=a.isSplitButton?a.arrowEl&&a.arrowEl.dom:a.ariaEl.dom,f,c;if(e&&!h){if(g!==!1&&a.destroyMenu){e.destroy()}e.ownerCmp=null}if(b){f=b.isMenu;b=Ext.menu.Manager.get(b,{ownerCmp:a});b.setOwnerCmp(a,f);b.menuClickBuffer=250;a.mon(b,{scope:a,show:a.onMenuShow,hide:a.onMenuHide});if(!e&&a.getArrowVisible()){a.split=!0;if(a.rendered){a._addSplitCls();a.updateLayout()}}a.menu=b;if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.isSplitButton?a.ariaArrowElAttributes||(a.ariaArrowElAttributes={}):a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {if(a.rendered){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns');a._removeSplitCls();a.updateLayout()}else {c=a.isSplitButton?a.ariaArrowElAttributes:a.ariaRenderAttributes;if(c){delete c['aria-haspopup'];delete c['aria-owns']}}a.split=!1;a.menu=null}},onRender:function(){var a=this,d,c,b;Ext.Component.prototype.onRender.apply(this,arguments);c=a.el;if(a.tooltip){a.setTooltip(a.tooltip,!0)}if(a.handleMouseEvents){b={scope:a,mouseover:a.onMouseOver,mouseout:a.onMouseOut,mousedown:a.onMouseDown};if(a.split){b.mousemove=a.onMouseMove}}else {b={scope:a}}if(Ext.supports.Touch){b.touchstart=a.onTouchStart}if(a.repeat){a.mon(new Ext.util.ClickRepeater(c,Ext.isObject(a.repeat)?a.repeat:{}),'click',a.onRepeatClick,a)}else {if(b[a.clickEvent]){d=!0}else {b[a.clickEvent]=a.onClick}}a.mon(c,b);if(a.hasFrameTable()){a.mon(a.frameTable,'click',a.frameTableListener,a)}if(d){a.mon(c,a.clickEvent,a.onClick,a)}Ext.button.Manager.register(a)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var a=this,i=a._btnCls,j=a._baseIconCls,d=a.getIconAlign(),b=a.glyph,f=Ext._glyphFontFamily,e=a.text,h=a._hasIcon(),g=a._hasIconCls,c;if(typeof b==='string'){c=b.split('@');b=c[0];f=c[1]}return {split:a.isSplitButton,innerCls:a._innerCls,splitCls:a.getArrowVisible()?a.getSplitCls():'',iconUrl:a.icon,iconCls:a.iconCls,glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:f,text:e||' ',closeText:a.closeText,textCls:e?a._textCls:'',noTextCls:e?'':a._noTextCls,hasIconCls:h?g:'',btnWrapCls:a._btnWrapCls,btnWrapStyle:a.width?'table-layout:fixed;':'',btnElStyle:a.height?'height:auto;':'',btnCls:i,baseIconCls:j,iconBeforeText:d==='left'||d==='top',iconAlignCls:h?g+'-'+d:'',textAlignCls:i+'-'+a.getTextAlign(),arrowElCls:a._arrowElCls,tabIndex:a.tabIndex}},renderIcon:function(a){return this.getTpl('iconTpl').apply(a)},setHref:function(c){var a=this,d=a.hrefTarget,b;a.href=c;if(!a.configuredWithPreventDefault){a.preventDefault=!c}if(a.rendered){b=a.el.dom;if(!c||a.disabled){b.removeAttribute('href');b.removeAttribute('hrefTarget')}else {b.href=a.getHref();if(d){b.target=d}}}},getHref:function(){var a=this,b=a.href;return b?Ext.urlAppend(b,Ext.Object.toQueryString(Ext.apply({},a.params,a.baseParams))):!1},setParams:function(c){var a=this,b;a.params=c;if(a.rendered){b=a.el.dom;if(a.disabled){b.removeAttribute('href')}else {b.href=a.getHref()||''}}},getSplitCls:function(){var a=this;return a.split?a.baseCls+'-'+a.arrowCls+' '+(a.baseCls+'-'+a.arrowCls+'-'+a.arrowAlign):''},setIcon:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.icon||'';a.icon=b;if(b!==c){if(d){d.setStyle('background-image',b?'url('+b+')':'');a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setIconCls:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.iconCls||'';a.iconCls=b;if(c!==b){if(d){d.removeCls(c);d.addCls(b);a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setGlyph:function(b){b=b||0;var a=this,c=a.btnIconEl,f=a.glyph,g=a._glyphCls,d,e;a.glyph=b;if(c){if(typeof b==='string'){e=b.split('@');b=e[0];d=e[1]||Ext._glyphFontFamily}if(!b){c.dom.innerHTML='';c.removeCls(g)}else {if(f!==b){c.dom.innerHTML='&#'+b+';';c.addCls(g)}}if(d){c.setStyle('font-family',d)}a._syncHasIconCls();if(a.didIconStateChange(f,b)){a.updateLayout()}}a.fireEvent('glyphchange',a,a.glyph,f);return a},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c||!b){a.clearTip()}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.el.id},b));a.tooltip=b}else {a.el.dom.setAttribute(a.getTipAttr(),b)}}}else {a.tooltip=b}return a},updateIconAlign:function(e,f){var b=this,a,d,c;if(b.rendered){a=b.btnEl;d=b.btnIconEl;c=b._hasIconCls;if(f){a.removeCls(c+'-'+f)}a.addCls(c+'-'+e);if(e==='top'||e==='left'){a.insertFirst(d)}else {a.appendChild(d)}b.updateLayout()}},updateTextAlign:function(e,d){var a=this,c=a.btnEl,b=a._btnCls;if(a.rendered){c.removeCls(b+'-'+d);c.addCls(b+'-'+e)}},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},clearTip:function(){var a=this,b=a.el;if(Ext.quickTipsActive&&Ext.isObject(a.tooltip)){Ext.tip.QuickTipManager.unregister(b)}else {b.dom.removeAttribute(a.getTipAttr())}},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this,b=a.menu;if(a.rendered){Ext.destroy(a.keyMap);delete a.keyMap}if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.onDestroy.call(this)},setHandler:function(a,b){this.handler=a;if(arguments.length>1){this.scope=b}return this},updateText:function(b,c){b=b==null?'':String(b);c=c||'';var a=this,e=a.btnInnerEl,d=a.btnEl;if(a.rendered){e.setHtml(b||' ');d[b?'addCls':'removeCls'](a._textCls);d[b?'removeCls':'addCls'](a._noTextCls);a.updateLayout()}a.fireEvent('textchange',a,c,b)},didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},click:function(a){return this.onClick(a)},setPressed:function(a){return this.toggle(a!==!1)},toggle:function(b,d){var a=this,c=a.ariaEl.dom;b=b===undefined?!a.pressed:!!b;if(a.fireEvent('beforetoggle',a,b)!==!1){if(b!==a.pressed){a[b?'addCls':'removeCls'](a._pressedCls);a.pressed=b;if(c){c.setAttribute('aria-pressed',b)}if(!d){a.fireEvent('toggle',a,b);Ext.callback(a.toggleHandler,a.scope,[a,b],0,a);if(a.reference&&a.publishState){a.publishState('pressed',b)}}}}return a},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(c){var a=this,b=a.menu,d=!c||c.pointerType;if(b&&a.rendered){if(a.tooltip&&Ext.quickTipsActive&&a.getTipAttr()!=='title'){Ext.tip.QuickTipManager.getQuickTip().cancelShow(a.el)}if(b.isVisible()){if(d){b.hide()}else {b.focus()}}else {if(!c||a.showEmptyMenu||b.items.getCount()>0){b.autoFocus=!d;b.showBy(a.el,a.menuAlign)}}}return a},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(b,a){this.onClick(a)},onTouchStart:function(a){this.doPreventDefault(a)},onEnterKey:function(a){this.onClick(a);a.stopEvent();return !1},onClick:function(b){var a=this;a.doPreventDefault(b);if(b.type!=='keydown'&&b.button){return}if(!a.disabled){a.doToggle();a.maybeShowMenu(b);a.fireHandler(b)}},doPreventDefault:function(a){if(a&&(this.preventDefault||this.disabled&&this.getHref())){a.preventDefault()}},fireHandler:function(b){var a=this;if(a.fireEvent('click',a,b)!==!1&&!a.destroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},doToggle:function(){var a=this;if(a.enableToggle&&(a.allowDepress!==!1||!a.pressed)){a.toggle()}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,!0,!0)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,!0,!0)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(b){var a=this,c=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(b)){if(!c){a.onMenuTriggerOver(b)}}else {if(c){a.onMenuTriggerOut(b)}}}},isWithinTrigger:function(d){var a=this,e=a.el,c,b;c=a.arrowAlign==='right'?d.getX()-a.getX():d.getY()-e.getY();b=a.getTriggerRegion();return c>b.begin&&c{iconMarkup}
    role="{textElRole}">{text}
    {iconMarkup}',iconTpl:'',_textAlignClasses:{left:'x-title-align-left',center:'x-title-align-center',right:'x-title-align-right'},_iconAlignClasses:{top:'x-title-icon-top',right:'x-title-icon-right',bottom:'x-title-icon-bottom',left:'x-title-icon-left'},_rotationClasses:{0:'x-title-rotate-none',1:'x-title-rotate-right',2:'x-title-rotate-left'},_rotationAngles:{1:90,2:270},baseCls:'x-title',_titleSuffix:'-title',_glyphCls:'x-title-glyph',_iconWrapCls:'x-title-icon-wrap',_baseIconCls:'x-title-icon',_itemCls:'x-title-item',_textCls:'x-title-text',afterComponentLayout:function(){var b=this,c=b.getRotation(),a,d,e;if(c&&!Ext.isIE8){e=b.el;a=b.lastBox;d=a.x;e.setStyle(b._getVerticalAdjustDirection(),d+(c===1?a.width:-a.height)+'px')}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var a=this,b=a.getRotation(),c=a.el;Ext.Component.prototype.onRender.call(this);if(b){c.setVertical(a._rotationAngles[b])}if(Ext.supports.FixedTableWidthBug){c._needsTableWidthFix=!0}},applyText:function(a){if(!a){a=' '}return a},beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.addCls(a._rotationClasses[a.getRotation()]);a.addCls(a._textAlignClasses[a.getTextAlign()])},getIconMarkup:function(){return this.getTpl('iconTpl').apply(this.getIconRenderData())},getIconRenderData:function(){var a=this,g=a.getIcon(),f=a.getIconCls(),b=a.getGlyph(),d=Ext._glyphFontFamily,e=a.getIconAlign(),c;if(typeof b==='string'){c=b.split('@');b=c[0];d=c[1]}return {id:a.id,ui:a.ui,itemCls:a._itemCls,iconUrl:g,iconCls:f,iconWrapCls:a._iconWrapCls,baseIconCls:a._baseIconCls,iconAlignCls:a._iconAlignClasses[e],glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:d}},initRenderData:function(){var a=this,c,b;b=Ext.apply({text:a.getText(),textElRole:a.textElRole,id:a.id,ui:a.ui,itemCls:a._itemCls,textCls:a._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(a._hasIcon()){c=a.getIconAlign();b.iconMarkup=a.getIconMarkup();b.iconBeforeTitle=c==='top'||c==='left'}return b},onAdded:function(a,f,e){var d=this,c=d._titleSuffix,b=a.baseCls;d.addCls([b+c,b+c+'-'+a.ui]);Ext.Component.prototype.onAdded.call(this,a,f,e)},updateGlyph:function(a,g){a=a||0;var b=this,f=b._glyphCls,c,d,e;b.glyph=a;if(b.rendered){b._syncIconVisibility();c=b.iconEl;if(typeof a==='string'){e=a.split('@');a=e[0];d=e[1]||Ext._glyphFontFamily}if(!a){c.dom.innerHTML='';c.removeCls(f)}else {if(g!==a){c.dom.innerHTML='&#'+a+';';c.addCls(f)}}if(d){c.setStyle('font-family',d)}if(b._didIconStateChange(g,a)){b.updateLayout()}}},updateIcon:function(a,c){a=a||'';var b=this,d;if(b.rendered&&a!==c){b._syncIconVisibility();d=b.iconEl;d.setStyle('background-image',a?'url('+a+')':'');if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateIconAlign:function(d,f){var a=this,b=a.iconWrapEl,e,c;if(a.iconWrapEl){e=a.el;c=a._iconAlignClasses;if(f){b.removeCls(c[f])}b.addCls(c[d]);if(d==='top'||d==='left'){e.insertFirst(b)}else {e.appendChild(b)}a.updateLayout()}},updateIconCls:function(a,c){a=a||'';var b=this,d;if(b.rendered&&c!==a){b._syncIconVisibility();d=b.iconEl;if(c){d.removeCls(c)}d.addCls(a);if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateRotation:function(d,e){var a=this,b,c;if(a.rendered){b=a.el;c=a._rotationClasses;a.removeCls(c[e]);a.addCls(c[d]);b.setHorizontal();if(d){b.setVertical(a._rotationAngles[d])}b.setStyle({right:'',left:'',top:'',height:'',width:''});a.lastBox=null;a.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,c){var a=this,b=a._textAlignClasses;if(a.rendered){if(c){a.removeCls(b[c])}a.addCls(b[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return 'left'},_didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var a=this,f=a.el,e=a._hasIcon(),b=a.iconWrapEl,d,c;if(e&&!b){c=a.iconAlign;d=c==='left'||c==='top';f.dom.insertAdjacentHTML(d?'afterbegin':'beforeend',a.getIconMarkup());b=a.iconWrapEl=f[d?'first':'last']();a.iconEl=b.first()}if(b){b.setDisplayed(e)}}}},0,['title'],['component','box','title'],{'component':!0,'box':!0,'title':!0},['widget.title'],0,[Ext.panel,'Title'],0);Ext.cmd.derive('Ext.panel.Tool',Ext.Component,{isTool:!0,baseCls:'x-tool',disabledCls:'x-tool-disabled',toolPressedCls:'x-tool-pressed',toolOverCls:'x-tool-over',childEls:['toolEl'],renderTpl:[''],toolOwner:null,tooltipType:'qtip',stopEvent:!0,ariaRole:'button',focusable:!0,tabIndex:0,keyHandlers:{SPACE:'onClick',ENTER:'onClick'},cacheHeight:!0,cacheWidth:!0,initComponent:function(){var a=this;a.type=a.type||a.id;Ext.applyIf(a.renderData,{baseCls:a.baseCls,type:a.type});a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);a.el.on({click:a.onClick,mousedown:a.onMouseDown,mouseover:a.onMouseOver,mouseout:a.onMouseOut,scope:a});b=a.tooltip;if(b){a.setTooltip(b)}},tipAttrs:{qtip:'data-qtip'},setTooltip:function(b,d){var a=this,g=a.tooltip,f=a.tooltipType,h=a.id,e=a.el,c;if(g&&Ext.quickTipsActive&&Ext.isObject(g)){Ext.tip.QuickTipManager.unregister(h)}a.tooltip=b;if(d){a.tooltipType=d}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:h},b))}else {if(e){if(d&&f&&d!==f){c=a.tipAttrs[f]||'title';e.dom.removeAttribute(c)}c=a.tipAttrs[d||f]||'title';e.dom.setAttribute(c,b)}}if(c!=='title'&&a.ariaRole&&a.ariaRole!=='presentation'){if(e){e.dom.setAttribute('aria-label',b)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-label']=b}}}},setType:function(b){var a=this,c=a.type;a.type=b;if(a.rendered){if(c){a.toolEl.removeCls(a.baseCls+'-'+c)}a.toolEl.addCls(a.baseCls+'-'+b)}else {a.renderData.type=b}return a},onDestroy:function(){var a=this,b=a.keyMap;a.setTooltip(null);delete a.toolOwner;Ext.Component.prototype.onDestroy.call(this)},privates:{onClick:function(b,c){var a=this;if(a.disabled){return !1}if(b.type!=='keydown'){a.el.removeCls(a.toolPressedCls+' '+a.toolOverCls)}if(a.stopEvent!==!1){b.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[b,c,a.ownerCt,a],0,a)}else {if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,b],0,a)}}a.fireEvent('click',a,b,a.toolOwner||a.ownerCt);return !0},onMouseDown:function(a){a.preventDefault();if(this.disabled){return !1}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return !1}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)}}},0,['tool'],['component','box','tool'],{'component':!0,'box':!0,'tool':!0},['widget.tool'],0,[Ext.panel,'Tool'],0);Ext.cmd.derive('Ext.util.KeyMap',Ext.Base,{alternateClassName:'Ext.KeyMap',eventName:'keydown',constructor:function(b){var a=this;if(arguments.length!==1||typeof b==='string'||b.dom||b.tagName||b===document||b.isComponent){a.legacyConstructor.apply(a,arguments);return}Ext.apply(a,b);a.bindings=[];if(!a.target.isComponent){a.target=Ext.get(a.target)}if(a.binding){a.addBinding(a.binding)}else {if(b.key){a.addBinding(b)}}a.enable()},legacyConstructor:function(d,b,c){var a=this;Ext.apply(a,{target:Ext.get(d),eventName:c||a.eventName,bindings:[]});if(b){a.addBinding(b)}a.enable()},addBinding:function(b){var a=this,e=b.key,c,d;if(a.processing){a.bindings=a.bindings.slice(0)}if(Ext.isArray(b)){for(c=0,d=b.length;c=i){return a}}}if(!g){return}a=c.findNextFocusableChild({beforeRender:h,items:b,step:!0});if(a){c.activateFocusable(a)}return a},clearFocusables:function(){var d=this,c=d.getFocusables(),e=c.length,a,b;for(b=0;b0?d0?d+b:e-1;for(;;a+=b){if(d<0&&(a>=e||a<0)){return null}else {if(a>=e){a=-1;continue}else {if(a<0){a=e;continue}else {if(a===d){return null}}}}c=g[a];if(!c||!c.focusable||c.disabled){continue}if(i||c.isFocusable&&c.isFocusable()){return c}}return null},getFocusableContainerEl:function(){return this.el},onFocusableChildAdd:function(a){if(this.enableFocusableContainer){return this.doFocusableChildAdd(a)}},activateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:this.activeChildTabIndex})}},deactivateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:undefined})}},isFocusableContainerActive:function(){var e=this,d=!1,c,b,a;c=e.getFocusableContainerEl();if(c&&c.isTabbable&&c.isTabbable()){d=!0}else {b=e.lastFocusedChild;a=b&&b.getFocusEl&&b.getFocusEl();if(a&&a.isTabbable&&a.isTabbable()){d=!0}}return d},doFocusableChildAdd:function(a){if(a.focusable){a.focusableContainer=this}},onFocusableChildRemove:function(a){if(this.enableFocusableContainer){return this.doFocusableChildRemove(a)}a.focusableContainer=null},doFocusableChildRemove:function(a){if(a===this.lastFocusedChild){this.lastFocusedChild=null;this.activateFocusableContainerEl()}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);this.mousedownTimestamp=a===this?Ext.Date.now():0;if(a===this){c.preventDefault()}},onFocusEnter:function(f){var a=this,d=f.toComponent,c=a.mousedownTimestamp,e=50,b;if(!a.enableFocusableContainer){return null}a.mousedownTimestamp=0;if(d===a){if(!c||Ext.Date.now()-c>e){b=a.initDefaultFocusable();if(b){a.deactivateFocusableContainerEl();b.focus()}}}else {a.deactivateFocusableContainerEl()}return d},onFocusLeave:function(c){var a=this,b=a.lastFocusedChild;if(!a.enableFocusableContainer){return}if(!a.destroyed&&!a.destroying){a.clearFocusables();if(b&&!b.disabled){a.activateFocusable(b)}else {a.activateFocusableContainerEl()}}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.enableFocusableContainer){return}a.clearFocusables();a.activateFocusable(b);if(b.needArrowKeys){a.guardFocusableChild(b)}},guardFocusableChild:function(c){var b=this,d=b.activeChildTabIndex,a;a=b.findNextFocusableChild({child:c,step:-1});if(a){a.setTabIndex(d)}a=b.findNextFocusableChild({child:c,step:1});if(a){a.setTabIndex(d)}},afterFocusableChildFocus:function(a){if(!this.enableFocusableContainer){return}this.lastFocusedChild=a},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this;if(!a.enableFocusableContainer){return}if(b!==a.lastFocusedChild){a.deactivateFocusable(b);if(!a.isFocusableContainerActive()){a.activateFocusableContainerEl()}}},beforeFocusableChildDisable:function(c){var a=this,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(c.hasFocus){b=a.findNextFocusableChild({child:c})||c.findFocusTarget();if(b){b.focus()}}},onFocusableChildDisable:function(d){var a=this,c=a.lastFocusedChild,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(d===c){a.activateFocusableContainerEl()}b=a.findNextFocusableChild({step:1});if(!b){a.deactivateFocusableContainerEl()}},onFocusableChildShow:Ext.privateFn,onFocusableChildHide:Ext.privateFn,onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn}},0,0,0,0,0,0,[Ext.util,'FocusableContainer'],0);Ext.cmd.derive('Ext.panel.Header',Ext.panel.Bar,{isHeader:!0,defaultType:'tool',indicateDrag:!1,weight:-1,shrinkWrap:3,iconAlign:'left',titleAlign:'left',titlePosition:0,titleRotation:'default',autoEl:{role:'presentation'},beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{xtype:'title',flex:1},merge:function(a,b){if(typeof a!=='object'){a={text:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:'x-header',initComponent:function(){var a=this,b=a.items,d=a.itemPosition,c=[a.headerCls];a.tools=a.tools||[];a.items=b=b?b.slice():[];if(d!==undefined){a._userItems=b.slice();a.items=b=[]}a.indicateDragCls=a.headerCls+'-draggable';if(a.indicateDrag){c.push(a.indicateDragCls)}a.addCls(c);a.syncNoBorderCls();a.enableFocusableContainer=!a.isAccordionHeader&&a.tools.length>0;if(a.enableFocusableContainer){a.ariaRole='toolbar'}Ext.Array.push(b,a.tools);a.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);a.on({dblclick:a.onDblClick,click:a.onClick,element:'el',scope:a})},addTool:function(b){var a=this;a.add(Ext.ComponentManager.create(b,'tool'));if(!a.isAccordionHeader&&a.tools.length>0&&!a.enableFocusableContainer){a.enableFocusableContainer=!0;a.ariaRole='toolbar';if(a.rendered){a.ariaEl.dom.setAttribute('role','toolbar');a.initFocusableContainer(!0)}}},afterLayout:function(){var a=this,e,b,c,d;if(a.vertical){b=a.frameTR;if(b){e=a.frameBR;c=a.frameTL;d=a.getWidth()-b.getPadding('r')-(c?c.getPadding('l'):a.el.getBorderWidth('l'))+'px';e.setStyle('background-position-x',d);b.setStyle('background-position-x',d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(a,d){var b=this,c,e;a=a||'';c=typeof a==='string';if(c){a={text:a}}if(d){Ext.suspendLayouts();d.setConfig(a);Ext.resumeLayouts(!0);a=d}else {if(c){a.xtype='title'}a.ui=b.ui;e='rotation' in a;a.id=b.id+'-title';if(b.isAccordionHeader){a.ariaRole='tab';a.textElRole=null;a.focusable=!0}a=Ext.create(a);if(!e&&b.vertical&&b.titleRotation==='default'){a.rotation=1}}return a},applyTitlePosition:function(b){var a=this.items.getCount();if(this._titleInItems){--a}return Math.max(Math.min(b,a),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var a=this,b=a.itemPosition;a.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(b!==undefined){a.insert(b,a._userItems)}},getTools:function(){return this.tools.slice()},onAdd:function(a,c){var b=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,a,c);if(a.isTool){b.push(a);b[a.type]=a}},onAdded:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,a,c,b)},onRemoved:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,a,c,b)},setDock:function(e){var a=this,c=a.getTitle(),b=a.getTitleRotation(),d=c.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,e);if(b==='default'){b=a.vertical?1:0;if(b!==d){c.setRotation(b)}if(a.rendered){a.resetItemMargins()}}Ext.resumeLayouts(!0)},updateGlyph:function(a){this.getTitle().setGlyph(a)},updateIcon:function(a){this.getTitle().setIcon(a)},updateIconAlign:function(a,b){this.getTitle().setIconAlign(a)},updateIconCls:function(a){this.getTitle().setIconCls(a)},updateTitle:function(a,b){if(!b){this.insert(this.getTitlePosition(),a);this._titleInItems=!0}this.titleCmp=a},updateTitleAlign:function(a,b){this.getTitle().setTextAlign(a)},updateTitlePosition:function(a){this.insert(a,this.getTitle())},updateTitleRotation:function(a){if(a==='default'){a=this.vertical?1:0}this.getTitle().setRotation(a)},privates:{fireClickEvent:function(c,a){var b='.'+Ext.panel.Tool.prototype.baseCls;if(!a.getTarget(b)){this.fireEvent(c,this,a)}},getFramingInfoCls:function(){var a=this,c=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),b=a.ownerCt;if(!a.expanding&&b&&(b.collapsed||a.isCollapsedExpander)){c+='-'+b.collapsedCls}return c+'-'+a.dock},onClick:function(a){this.fireClickEvent('click',a)},onDblClick:function(a){this.fireClickEvent('dblclick',a)},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {this.mixins.focusablecontainer.onFocusableContainerMousedown.apply(this,arguments)}},syncBeforeAfterTitleClasses:function(l){var c=this,j=c.items,i=j.items,h=c.getTitlePosition(),k=i.length,g=j.generation,f=c.syncBeforeAfterGen,e,d,b,a;if(!l&&f===g){return}c.syncBeforeAfterGen=g;for(b=0;bh){if(f){a.removeCls(d)}a.addCls(e)}}}},syncNoBorderCls:function(){var a=this,b=this.ownerCt,c=a.headerCls+'-noborder';if(b?b.border===!1&&!b.frame:a.border===!1){a.addCls(c)}else {a.removeCls(c)}}}},0,['header'],['component','box','container','header'],{'component':!0,'box':!0,'container':!0,'header':!0},['widget.header'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.panel,'Header'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.None',Ext.Base,{alternateClassName:'Ext.layout.boxOverflow.None',factoryConfig:{defaultType:'none'},isBoxOverflowHandler:!0,$configPrefixed:!1,$configStrict:!1,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var c=this,d=b.state.boxPlan,a;if(d&&d.tooNarrow){a=c.handleOverflow(b);if(a){if(a.reservedSpace){c.layout.publishInnerCtSize(b,a.reservedSpace)}}}else {c.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(e){var b=this,d=b.layout.owner,c,a;if(d.hasListeners.overflowchange){c=d.query('>[hidden]');a=c.length;if(a!==b.lastHiddenCount){d.fireEvent('overflowchange',b.lastHiddenCount,a,c);b.lastHiddenCount=a}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(b){var a;if(b.isToolbar){a='toolbar'}else {if(b.isTabBar){a='tab-bar'}else {if(b.isMenu){a='menu'}else {if(b.isBreadcrumb){a='breadcrumb'}else {a=b.getXType()}}}}return a},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return ''},setVertical:function(){var b=this,a=b.layout,c=a.innerCt;c.removeCls(b.getOverflowCls(a.oppositeDirection));c.addCls(b.getOverflowCls(a.direction))}},1,0,0,0,['box.overflow.None','box.overflow.none'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout.container.boxOverflow,'None',Ext.layout.boxOverflow,'None'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Scroller',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Scroller',animateScroll:!1,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:'x-box-scroller',beforeSuffix:'-before-scroller',afterSuffix:'-after-scroller',constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.scrollPosition=0;a.scrollSize=0},getPrefixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.beforeSuffix,cls:this.createScrollerCls('beforeX'),style:'display:none'}},getSuffixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.afterSuffix,cls:this.createScrollerCls('afterX'),style:'display:none'}},createScrollerCls:function(g){var c=this,d=c.layout,b=d.owner,e=c.getOwnerType(b),a=c.scrollerCls,f=a+' '+a+'-'+d.names[g]+' '+a+'-'+e+' '+a+'-'+e+'-'+b.ui;if(b.plain){f+=' '+a+'-plain'}return f},getOverflowCls:function(a){return this.scrollerCls+'-body-'+a},beginLayout:function(a){a.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(a){var b=this,f=a.state.boxPlan,e=b.layout,d=e.names,g=Math.min(b.getMaxScrollPosition(),a.innerCtScrollPos),c;if(f&&f.tooNarrow){c=a.childItems[a.childItems.length-1].props;b.scrollSize=c[d.x]+c[d.width];b.updateScrollButtons();e.innerCt[d.setScrollLeft](g)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,a)},handleOverflow:function(i){var a=this,d=a.layout.names,h=d.getWidth,f=d.parallelMargins,g,e,b,c;a.showScrollers();b=a.getBeforeScroller();c=a.getAfterScroller();g=b[h]()+c[h]()+b.getMargin(f)+c.getMargin(f);e=i.targetContext.getPaddingInfo()[d.width];return {reservedSpace:Math.max(g-e,0)}},getBeforeScroller:function(){var a=this;return a._beforeScroller||(a._beforeScroller=a.createScroller(a.beforeSuffix,'beforeRepeater','scrollLeft'))},getAfterScroller:function(){var a=this;return a._afterScroller||(a._afterScroller=a.createScroller(a.afterSuffix,'afterRepeater','scrollRight'))},createScroller:function(g,f,e){var b=this,d=b.layout.owner,c=b.scrollerCls,a;a=d.el.getById(d.id+g);a.addClsOnOver(c+'-hover');a.addClsOnClick(c+'-pressed');a.setVisibilityMode(Ext.Element.DISPLAY);b[f]=new Ext.util.ClickRepeater(a,{interval:b.scrollRepeatInterval,handler:e,scope:b});return a},createWheelListener:function(){var a=this;a.wheelListener=a.layout.innerCt.on('mousewheel',a.onMouseWheel,a,{destroyable:!0})},onMouseWheel:function(a){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,!1)},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;if(!a.wheelListener){a.createWheelListener()}a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')},hideScrollers:function(){var a=this,b=a.getBeforeScroller(),c=a.getAfterScroller();if(b){b.hide();c.hide();a.layout.owner.removeClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')}},destroy:function(){Ext.destroyMembers(this,'beforeRepeater','afterRepeater','_beforeScroller','_afterScroller','wheelListener');this.callParent()},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getScrollAnim:function(){return {duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var a=this,c=a.getBeforeScroller(),d=a.getAfterScroller(),b;if(!c||!d){return}b=a.scrollerCls+'-disabled';c[a.atExtremeBefore()?'addCls':'removeCls'](b);d[a.atExtremeAfter()?'addCls':'removeCls'](b);a.scrolling=!1},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,!1)},scrollRight:function(){this.scrollBy(this.scrollIncrement,!1)},getScrollPosition:function(){var b=this,c=b.layout,a;if(isNaN(b.scrollPosition)){a=c.innerCt[c.names.getScrollLeft]()}else {a=b.scrollPosition}return a},getMaxScrollPosition:function(){var c=this,b=c.layout,a=c.scrollSize-b.innerCt.lastBox[b.names.width];return a<0?0:a},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var c=this,d=c.getBeforeScroller(),e=c.getAfterScroller(),b=c.layout.names,a=c.scrollerCls;d.removeCls(a+'-'+b.beforeY);e.removeCls(a+'-'+b.afterY);d.addCls(a+'-'+b.beforeX);e.addCls(a+'-'+b.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(g,b){var a=this,d=a.layout,e=d.names,f=a.getScrollPosition(),c=Ext.Number.constrain(g,0,a.getMaxScrollPosition());if(c!==f&&!a.scrolling){a.scrollPosition=NaN;if(b===undefined){b=a.animateScroll}d.innerCt[e.scrollTo](e.beforeScrollX,c,b?a.getScrollAnim():!1);if(b){a.scrolling=!0}else {a.updateScrollButtons()}a.fireEvent('scroll',a,c,b?a.getScrollAnim():!1)}},scrollToItem:function(a,i){var c=this,e=c.layout,h=e.owner,f=e.names,j=e.innerCt,d,g,b;a=c.getItem(a);if(a!==undefined){if(a===h.items.first()){b=0}else {if(a===h.items.last()){b=c.getMaxScrollPosition()}else {d=c.getItemVisibility(a);if(!d.fullyVisible){g=a.getBox(!1,!0);b=g[f.x];if(d.hiddenEnd){b-=j[f.getWidth]()-g[f.width]}}}}if(b!==undefined){c.scrollTo(b,i)}}},getItemVisibility:function(i){var d=this,h=d.getItem(i).getBox(!0,!0),g=d.layout,c=g.names,b=h[c.x],f=b+h[c.width],a=d.getScrollPosition(),e=a+g.innerCt[c.getWidth]();return {hiddenStart:be,fullyVisible:b>=a&&f<=e}}},1,0,0,0,['box.overflow.Scroller','box.overflow.scroller'],[['observable',Ext.mixin.Observable]],[Ext.layout.container.boxOverflow,'Scroller',Ext.layout.boxOverflow,'Scroller'],0);Ext.cmd.derive('Ext.dd.DragDropManager',Ext.Base,{singleton:!0,alternateClassName:['Ext.dd.DragDropMgr','Ext.dd.DDM'],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:!0,stopPropagation:!0,initialized:!1,locked:!1,init:function(){this.initialized=!0},POINT:0,INTERSECT:1,mode:0,notifyOccluded:!1,dragCls:'x-dd-drag-current',_execOnAll:function(f,g){var c=this.ids,d,e,b,a;for(d in c){if(c.hasOwnProperty(d)){a=c[d];for(e in a){if(a.hasOwnProperty(e)){b=a[e];if(!this.isTypeOfDD(b)){continue}b[f].apply(b,g)}}}}},addListeners:function(){var a=this;a.init();Ext.getDoc().on({mouseup:a.handleMouseUp,mousemove:{fn:a.handleMouseMove,capture:!1},dragstart:a.preventDrag,drag:a.preventDrag,dragend:a.preventDrag,capture:!0,scope:a});Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},preventDrag:function(a){if(this.isMouseDown){a.stopPropagation()}},_onResize:function(a){this._execOnAll('resetConstraints',[])},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isLocked:function(){return this.locked},locationCache:{},useCache:!0,clickPixelThresh:8,dragThreshMet:!1,clickTimeout:null,startX:0,startY:0,regDragDrop:function(b,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][b.id]=b},removeDDFromGroup:function(c,a){if(!this.ids[a]){this.ids[a]={}}var b=this.ids[a];if(b&&b[c.id]){delete b[c.id]}},_remove:function(b,f){var a=this,d=a.ids,e=b.groups,c;if(a.clearingAll){return}if(a.dragCurrent===b){a.dragCurrent=null}for(c in e){if(e.hasOwnProperty(c)){if(f){delete d[c]}else {if(d[c]){delete d[c][b.id]}}}}delete a.handleIds[b.id];delete a.locationCache[b.id]},regHandle:function(a,b){if(!this.handleIds[a]){this.handleIds[a]={}}this.handleIds[a][b]=b},isDragDrop:function(a){return this.getDDById(a)?!0:!1},getRelated:function(f,e){var b=[],c,d,a;for(c in f.groups){for(d in this.ids[c]){a=this.ids[c][d];if(!this.isTypeOfDD(a)){continue}if(!e||a.isTarget){b[b.length]=a}}}return b},isLegalTarget:function(e,d){var b=this.getRelated(e,!0),a,c;for(a=0,c=b.length;aa.clickPixelThresh||e>a.clickPixelThresh){a.startDrag(a.startX,a.startY)}}if(a.dragThreshMet){c.b4Drag(b);c.onDrag(b);if(!c.moveOnly){a.fireEvents(b,!1)}}a.stopEvent(b);return !0},fireEvents:function(e,t){var d=this,s=Ext.supports.Touch,c=d.dragCurrent,l=d.currentPoint,v=l.x,w=l.y,j=[],r=[],h=[],i=[],g=[],k=[],u=s?document.documentElement.clientWidth/window.innerWidth:1,p,b,o,q,a,f,n,m;if(!c||c.isLocked()){return}m=!(c.deltaX<0||c.deltaY<0);if(s||!d.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&m){p=c.getDragEl();if(m){p.style.visibility='hidden'}e.target=document.elementFromPoint(v/u,w/u);if(m){p.style.visibility='visible'}}for(a in d.dragOvers){b=d.dragOvers[a];delete d.dragOvers[a];if(!d.isTypeOfDD(b)||b.destroyed){continue}if(d.notifyOccluded){if(!this.isOverTarget(l,b,d.mode)){h.push(b)}}else {if(!e.within(b.getEl())){h.push(b)}}r[a]=!0}for(n in c.groups){if('string'!==typeof n){continue}for(a in d.ids[n]){b=d.ids[n][a];if(d.isTypeOfDD(b)&&(o=b.getEl())&&b.isTarget&&!b.isLocked()&&Ext.fly(o).isVisible(!0)&&(b!==c||c.ignoreSelf===!1)){if(d.notifyOccluded){if((b.zIndex=d.getZIndex(o))!==-1){q=!0}j.push(b)}else {if(e.within(b.getEl())){j.push(b);break}}}}}if(q){Ext.Array.sort(j,d.byZIndex)}for(a=0,f=j.length;a','',''],isSplitter:!0,baseCls:'x-splitter',collapsedClsInternal:'x-splitter-collapsed',canResize:!0,collapsible:null,collapseOnDblClick:!0,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:'next',horizontal:!1,vertical:!1,size:5,tracker:null,ariaRole:'separator',focusable:!0,tabIndex:0,getTrackerConfig:function(){return Ext.apply({xclass:'Ext.resizer.SplitterTracker',el:this.el,splitter:this},this.tracker)},beforeRender:function(){var a=this,c=a.getCollapseTarget(),b=a.collapsible,d;Ext.Component.prototype.beforeRender.call(this);if(c.collapsed){a.addCls(a.collapsedClsInternal)}if(!a.canResize){a.addCls(a.baseCls+'-noresize')}Ext.applyIf(a.renderData,{collapseDir:a.getCollapseDirection(),collapsible:b!==null?b:c.collapsible});a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-orientation']=a.orientation;a.protoEl.unselectable()},onRender:function(){var a=this,b;Ext.Component.prototype.onRender.apply(this,arguments);if(a.performCollapse!==!1){if(a.renderData.collapsible){a.mon(a.collapseEl,'click',a.toggleTargetCmp,a)}if(a.collapseOnDblClick){a.mon(a.el,'dblclick',a.toggleTargetCmp,a)}}a.getCollapseTarget().on({collapse:a.onTargetCollapse,expand:a.onTargetExpand,beforeexpand:a.onBeforeTargetExpand,beforecollapse:a.onBeforeTargetCollapse,scope:a});if(a.canResize){a.tracker=Ext.create(a.getTrackerConfig());a.relayEvents(a.tracker,['beforedragstart','dragstart','dragend'])}b=a.collapseEl;if(b){b.lastCollapseDirCls=a.collapseDirProps[a.collapseDirection].cls}},getCollapseDirection:function(){var b=this,a=b.collapseDirection,c,f,d,e;if(!a){c=b.collapseTarget;if(c.isComponent){a=c.collapseDirection}if(!a){e=b.ownerCt.layout.type;if(c.isComponent){d=b.ownerCt.items;f=Number(d.indexOf(c)===d.indexOf(b)-1)<<1|Number(e==='hbox')}else {f=Number(b.collapseTarget==='prev')<<1|Number(e==='hbox')}a=['bottom','right','top','left'][f]}b.collapseDirection=a}b.setOrientation(a==='top'||a==='bottom'?'horizontal':'vertical');return a},getCollapseTarget:function(){var a=this;return a.collapseTarget.isComponent?a.collapseTarget:a.collapseTarget==='prev'?a.previousSibling():a.nextSibling()},setCollapseEl:function(b){var a=this.collapseEl;if(a){a.setDisplayed(b)}},onBeforeTargetExpand:function(a){this.setCollapseEl('none')},onBeforeTargetCollapse:function(){this.setCollapseEl('none')},onTargetCollapse:function(b){var a=this;if(b===a.getCollapseTarget()&&b[a.orientation==='vertical'?'collapsedHorizontal':'collapsedVertical']()){a.el.addCls(a.collapsedClsInternal+' '+(a.collapsedCls||''))}a.setCollapseEl('')},onTargetExpand:function(b){var a=this;a.el.removeCls(a.collapsedClsInternal+' '+(a.collapsedCls||''));a.setCollapseEl('')},collapseDirProps:{top:{cls:'x-layout-split-top'},right:{cls:'x-layout-split-right'},bottom:{cls:'x-layout-split-bottom'},left:{cls:'x-layout-split-left'}},orientationProps:{horizontal:{opposite:'vertical',fixedAxis:'height',stretchedAxis:'width'},vertical:{opposite:'horizontal',fixedAxis:'width',stretchedAxis:'height'}},applyCollapseDirection:function(){var c=this,a=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],b;if(a){b=a.lastCollapseDirCls;if(b){a.removeCls(b)}a.addCls(a.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var a=this,e=a.orientation,b=a.orientationProps[e],f=a.size,d=b.fixedAxis,c=b.stretchedAxis,g=a.baseCls+'-';a[e]=!0;a[b.opposite]=!1;if(!a.hasOwnProperty(d)||a[d]==='100%'){a[d]=f}if(!a.hasOwnProperty(c)||a[c]===f){a[c]='100%'}a.removeCls(g+b.opposite);a.addCls(g+e)},setOrientation:function(b){var a=this;if(a.orientation!==b){a.orientation=b;a.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,e){var a=this.getCollapseTarget(),c=a.placeholder,b;if(Ext.isFunction(a.expand)&&Ext.isFunction(a.collapse)){if(c&&!c.hidden){b=!0}else {b=!a.hidden}if(b){if(a.collapsed){a.expand()}else {if(a.collapseDirection){a.collapse()}else {a.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},beforeDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.beforeDestroy.call(this)}},0,['splitter'],['component','box','splitter'],{'component':!0,'box':!0,'splitter':!0},['widget.splitter'],0,[Ext.resizer,'Splitter'],0);Ext.define('Ext.theme.neptune.resizer.Splitter',{override:'Ext.resizer.Splitter',size:8});Ext.cmd.derive('Ext.layout.container.Box',Ext.layout.container.Container,{alternateClassName:'Ext.layout.BoxLayout',type:'box',config:{align:'begin',constrainAlign:!1,enableSplitters:!0,overflowHandler:{$value:null,merge:function(a,b){if(typeof a==='string'){a={type:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},padding:0,pack:'start',stretchMaxPartner:undefined,vertical:!1,alignRoundingMethod:'round'},itemCls:'x-box-item',targetCls:'x-box-layout-ct',targetElCls:'x-box-target',innerCls:'x-box-inner',manageMargins:!0,createsInnerCt:!0,childEls:['innerCt','targetEl'],renderTpl:['{%var oc,l=values.$comp.layout,oh=l.overflowHandler;if (oh && oh.getPrefixConfig!==Ext.emptyFn) {if(oc=oh.getPrefixConfig())dh.generateMarkup(oc, out)}%}{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:!0,definitions:'var dh=Ext.DomHelper;'}],constructor:function(c){var a=this,b;Ext.layout.container.Container.prototype.constructor.apply(this,arguments);a.setVertical(a.vertical);a.flexSortFn=a.flexSort.bind(a);b=typeof a.padding;if(b==='string'||b==='number'){a.padding=Ext.util.Format.parseBox(a.padding);a.padding.height=a.padding.top+a.padding.bottom;a.padding.width=a.padding.left+a.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(h,b){var a=this,f=a.sizePolicy,g=a.align,p=h.flex,c=g,o=a.names,e=o.height,m=o.width,q=h[m],n=h[e],d=a._percentageRe,i=d.test(q),l=g==='stretch',j=g==='stretchmax',k=a.constrainAlign;if(!b&&(l||p||i||k&&!j)){b=a.owner.getSizeModel()}if(l){if(!d.test(n)&&b[e].shrinkWrap){c='stretchmax'}}else {if(!j){if(d.test(n)){c='stretch'}else {if(k&&!b[e].shrinkWrap){c='stretchmax'}else {c=''}}}}if(p||i){if(!b[m].shrinkWrap){f=f.flex}}return f[c]},flexSort:function(o,p){var k=this.names.maxWidth,l=this.names.minWidth,j=Infinity,c=o.target,d=p.target,m=c.flex,n=d.flex,a=0,g,i,f,h,e,b;f=c[k]||j;h=d[k]||j;g=c[l]||0;i=d[l]||0;e=isFinite(g)||isFinite(i);b=isFinite(f)||isFinite(h);if(e||b){if(b){a=f-h}if(a===0&&e){a=i-g}if(a===0){if(b){a=n-m}else {a=m-n}}}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(a){var b=this;if(b.direction==='vertical'&&a.collapsedVertical()){a.collapseMemento.capture(['flex']);delete a.flex}else {if(b.direction==='horizontal'&&a.collapsedHorizontal()){a.collapseMemento.capture(['flex']);delete a.flex}}},beginExpand:function(a){a.collapseMemento.restore(['flex'])},beginLayout:function(a){var c=this,f=c.owner,b=f.stretchMaxPartner,h=c.innerCt.dom.style,i=c.names,g=c.overflowHandler,e=f.getScrollable(),d;a.boxNames=i;if(g){g.beginLayout(a)}if(typeof b==='string'){b=Ext.getCmp(b)||f.query(b)[0]}a.stretchMaxPartner=b&&a.context.getCmp(b);Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);a.innerCtContext=a.getEl('innerCt',c);a.targetElContext=a.getEl('targetEl',c);if(e){a.ownerScrollable=e;d=e.getPosition();if(d.x||d.y){a.scrollRestore=d}}h.width=h.height=''},beginLayoutCycle:function(a,l){var c=this,i=a.state,g=a.ownerScrollable,b=c.align,e=a.boxNames,d=c.pack,k=c._centerRe,j=c.overflowHandler,m=a.state.canScroll,h,f;if(j){j.beginLayoutCycle(a,l)}Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);a.parallelSizeModel=h=a[e.widthModel];a.perpendicularSizeModel=f=a[e.heightModel];a.boxOptions={align:b={stretch:b==='stretch',stretchmax:b==='stretchmax',center:k.test(b),bottom:c._endRe.test(b)},pack:d={center:k.test(d),end:d==='end'}};if(g){if(!m){i.canScroll={parallel:!h.shrinkWrap&&g[e.getX](),perpendicular:!f.shrinkWrap&&g[e.getY]()}}if(!i.actualScroll){i.actualScroll={parallel:!1,perpendicular:!1}}}if(b.stretch&&f.shrinkWrap){b.stretchmax=!0;b.stretch=!1}b.nostretch=!(b.stretch||b.stretchmax);if(h.shrinkWrap){d.center=d.end=!1}c.cacheFlexes(a);c.targetEl.setWidth(20000)},cacheFlexes:function(a){var u=this,d=a.boxNames,x=d.widthModel,w=d.heightModel,z=a.boxOptions.align.nostretch,s=0,r=a.childItems,v=r.length,h=[],t=0,g=0,o=0,p=d.minWidth,y=d.minHeight,q=u._percentageRe,n=0,m=0,b,c,l,f,i,j,k,e;while(v--){c=r[v];b=c.target;j=c[x];if(j.calculated){c.flex=l=b.flex;if(l){s+=l;h.push(c);t+=b[p]||0}else {f=q.exec(b[d.width]);c.percentageParallel=parseFloat(f[1])/100;++n}}if(j.configured){k=b[d.width]}else {k=b[p]||0}o+=k;i=c[w];if(z&&i.calculated){f=q.exec(b[d.height]);c.percentagePerpendicular=parseFloat(f[1])/100;++m}if(i.configured){e=b[d.height]}else {e=b[y]||0}if(e>g){g=e}}a.flexedItems=h;a.flexedMinWidth=t;a.smallestWidth=o;a.smallestHeight=g;a.totalFlex=s;a.percentageWidths=n;a.percentageHeights=m;Ext.Array.sort(h,u.flexSortFn)},calculate:function(b){var c=this,f=b.boxNames,a=b.state,h=a.actualScroll,g=a.needsScroll,e=a.canScroll,d=a.boxPlan||(a.boxPlan={}),i=c.overflowHandler;d.targetSize=c.getContainerSize(b);if(e&&!g){a.needsScroll=g={parallel:e.parallel&&d.targetSize[f.width]j){a.invalidate({before:K,after:L,layout:l,childHeight:j,names:d});c.state.parallelDone=!1}if(isNaN(b=o(b,g+i,a.target[d.minHeight]||0))){return !1}}}if(v){b+=q;c[d.hasOverflowX]=!0;c.target.componentLayout[d.setHeightInDom]=!0;c[d.invalidateScrollX]=Ext.isIE8}p=c.stretchMaxPartner;if(p){c.setProp('maxChildHeight',b);w=p.childItems;if(w&&w.length){b=o(b,p.getProp('maxChildHeight'));if(isNaN(b)){return !1}}}c[d.setContentHeight](b+l.padding[e]+c.targetContext.getPaddingInfo()[e]);if(v){b-=q}if(b>y[e]&&H&&H.perpendicular){C.actualScroll.perpendicular=!0}t.maxSize=b;if(O){f=b}else {if(B||A||D){if(I){f=h?b:j}else {f=h?b:o(j,b)}f-=c.innerCtContext.getBorderInfo()[e]}}for(k=0;k0){n=u+Math[l.alignRoundingMethod](s/2)}}else {if(A){n=o(0,f-n-a.props[e])}}}a.setProp(M,n)}return !0},onBeforeConstrainInvalidateChild:function(b,c){var a=c.names.heightModel;if(!b[a].constrainedMin){b[a]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(a,c){var b=c.names;a.setProp(b.beforeY,0);if(a[b.heightModel].calculated){a[b.setHeight](c.childHeight)}},calculateStretchMax:function(k,c,o){var f=this,h=c.height,l=c.width,g=k.childItems,n=g.length,m=o.maxSize,i=f.onBeforeStretchMaxInvalidateChild,j=f.onAfterStretchMaxInvalidateChild,a,b,d,e;for(d=0;d':{xtype:'tbfill',height:0}},1:{'->':{xtype:'tbfill',width:0}}}},initComponent:function(){var a=this,b=a.layout,c=a.vertical;if(c===undefined){a.vertical=c=a.dock==='right'||a.dock==='left'}a.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:c?'vbox':'hbox',align:c?'stretchmax':'middle'});if(a.overflowHandler){b.overflowHandler=a.overflowHandler}else {if(a.enableOverflow){b.overflowHandler='menu'}}if(c){a.addClsWithUI('vertical')}if(a.ui==='footer'){a.ignoreBorderManagement=!0}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(d){var c=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),e=c.layout,a;if(d&&(c.enableOverflow||c.overflowHandler==='menu')){a=e.overflowHandler;if(a&&a.menu){b=b.concat(a.menu.getRefItems(d))}}return b},lookupComponent:function(a){var d=arguments,b,c;if(typeof a==='string'){c=Ext.toolbar.Toolbar;b=c.shortcutsHV[this.vertical?1:0][a]||c.shortcuts[a];if(typeof b==='string'){a={xtype:b}}else {if(b){a=Ext.apply({},b)}else {a={xtype:'tbtext',text:a}}}this.applyDefaults(a);d=[a]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(a){var b=this,d=b.ui==='footer',c=d?b.defaultFooterButtonUI:b.defaultButtonUI;if(a.isSegmentedButton){if(a.getDefaultUI()==='default'&&!a.config.hasOwnProperty('defaultUI')){a.setDefaultUI(c)}}else {if(a.ui==='default'&&!a.hasOwnProperty('ui')){if(a.isButton){a.ui=c}else {if(a.isFormField){a.ui=d?b.defaultFooterFieldUI:b.defaultFieldUI}}}}if(a instanceof Ext.toolbar.Separator){a.setUI(b.vertical?'vertical':'horizontal')}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(a){if(a.needArrowKeys&&this.enableFocusableContainer){this.enableFocusableContainer=!1}Ext.container.Container.prototype.onAdd.apply(this,arguments);this.trackMenu(a)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,!0)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(b,c){var a=this;if(a.trackMenus&&b.menu){b[c?'un':'on']({mouseover:a.onButtonOver,menushow:a.onButtonMenuShow,menuhide:a.onButtonMenuHide,scope:a})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(a,c){var b=this.activeMenuBtn;if(b&&b!==a){b.hideMenu();a.focus();a.showMenu(c);this.activeMenuBtn=a}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,['toolbar'],['component','box','container','toolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0},['widget.toolbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,'Toolbar',Ext,'Toolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Toolbar',{override:'Ext.toolbar.Toolbar',usePlainButtons:!1,border:!1});Ext.cmd.derive('Ext.dd.DragDrop',Ext.Base,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:!1,lock:function(){this.locked=!0},moveOnly:!1,unlock:function(){this.locked=!1},isTarget:!0,padding:null,_domRef:null,__ygDragDrop:!0,constrainX:!1,constrainY:!1,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:!1,xTicks:null,yTicks:null,primaryButtonOnly:!0,available:!1,hasOuterHandles:!1,triggerEvent:'mousedown',b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(b,a){},b4DragOver:function(a){},onDragOver:function(b,a){},b4DragOut:function(a){},onDragOut:function(b,a){},b4DragDrop:function(a){},onDragDrop:function(b,a){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(j,a,k){if(Ext.isNumber(a)){a={left:a,right:a,top:a,bottom:a}}a=a||this.defaultPadding;var c=Ext.get(this.getEl()).getBox(),e=Ext.get(j),i=e.getScroll(),b,d=e.dom,h,g,f;if(d===document.body){b={x:i.left,y:i.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else {h=e.getXY();b={x:h[0],y:h[1],width:d.clientWidth,height:d.clientHeight}}g=c.y-b.y;f=c.x-b.x;this.resetConstraints();this.setXConstraint(f-(a.left||0),b.width-f-c.width-(a.right||0),this.xTickSize);this.setYConstraint(g-(a.top||0),b.height-g-c.height-(a.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(b,d,c){var a=this;a.el=a.el||Ext.get(b);a.initTarget(b,d,c);Ext.get(a.id).on(a.triggerEvent,a.handleMouseDown,a)},initTarget:function(a,b,c){this.config=c||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof a!=='string'){a=Ext.id(a)}this.id=a;this.addToGroup(b?b:'default');this.handleElId=a;this.setDragElId(a);this.invalidHandleTypes={A:'A'};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=this.config.isTarget!==!1;this.maintainOffset=this.config.maintainOffset;this.primaryButtonOnly=this.config.primaryButtonOnly!==!1},handleOnAvailable:function(){this.available=!0;this.resetConstraints();this.onAvailable()},setPadding:function(a,b,c,d){if(!b&&0!==b){this.padding=[a,a,a,a]}else {if(!c&&0!==c){this.padding=[a,b,a,b]}else {this.padding=[a,b,c,d]}}},setInitPosition:function(e,f){var d=this.getEl(),b,c,a;if(!this.DDMInstance.verifyEl(d)){return}b=e||0;c=f||0;a=Ext.fly(d).getXY();this.initPageX=a[0]-b;this.initPageY=a[1]-c;this.lastPageX=a[0];this.lastPageY=a[1];this.setStartPosition(a)},setStartPosition:function(b){var a=b||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=a[0];this.startPageY=a[1]},addToGroup:function(a){this.groups[a]=!0;this.DDMInstance.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDMInstance.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.handleElId=a;this.DDMInstance.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}Ext.get(a).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=!0},unreg:function(){var a=this,b;if(a._domRef){b=Ext.fly(a.id);if(b){b.un(a.triggerEvent,a.handleMouseDown,a)}}a._domRef=null;a.DDMInstance._remove(a,a.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return this.DDMInstance.isLocked()||this.locked},handleMouseDown:function(b,c){var a=this;if(a.primaryButtonOnly&&b.button||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(b.getPoint(),a)){if(a.clickValidator(b)){a.setStartPosition();a.b4MouseDown(b);a.onMouseDown(b);a.DDMInstance.handleMouseDown(b,a);a.DDMInstance.stopEvent(b)}}},clickValidator:function(b){var a=b.getTarget();return this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id))},addInvalidHandleType:function(b){var a=b.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){var b=a.toUpperCase();delete this.invalidHandleTypes[b]},removeInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(c){var b=this.invalidHandleClasses,d=b.length,a;for(a=0;a=this.minX;a=a-c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}for(a=this.initPageX;a<=this.maxX;a=a+c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,c){this.yTicks=[];this.yTickSize=c;var b={},a;for(a=this.initPageY;a>=this.minY;a=a-c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}for(a=this.initPageY;a<=this.maxY;a=a+c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(c,b,a){this.leftConstraint=c;this.rightConstraint=b;this.minX=this.initPageX-c;this.maxX=this.initPageX+b;if(a){this.setXTicks(this.initPageX,a)}this.constrainX=!0},clearConstraints:function(){this.constrainX=!1;this.constrainY=!1;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(c,b,a){this.topConstraint=c;this.bottomConstraint=b;this.minY=this.initPageY-c;this.maxY=this.initPageY+b;if(a){this.setYTicks(this.initPageY,a)}this.constrainY=!0},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var a=this.maintainOffset?this.lastPageX-this.initPageX:0,b=this.maintainOffset?this.lastPageY-this.initPageY:0;this.setInitPosition(a,b)}else {this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(d,a){if(!a){return d}else {if(a[0]>=d){return a[0]}else {var b,g,c,e,f;for(b=0,g=a.length;b=d){e=d-a[b];f=a[c]-d;return f>e?a[b]:a[c]}}return a[a.length-1]}}},toString:function(){return 'DragDrop '+this.id}},3,0,0,0,0,0,[Ext.dd,'DragDrop'],0);Ext.cmd.derive('Ext.dd.DD',Ext.dd.DragDrop,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},scroll:!0,autoOffset:function(a,b){var c=a-this.startPageX,d=b-this.startPageY;this.setDelta(c,d)},setDelta:function(a,b){this.deltaX=a;this.deltaY=b},setDragElPos:function(a,b){var c=this.getDragEl();this.alignElWithMouse(c,a,b)},alignElWithMouse:function(d,j,k){var a=this.getTargetCoord(j,k),c=d.dom?d:Ext.fly(d,'_dd'),e=c.getSize(),i=Ext.Element,b,g,f,h;if(!this.deltaSetXY){b=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};g=[Math.max(0,Math.min(a.x,b.width-e.width)),Math.max(0,Math.min(a.y,b.height-e.height))];c.setXY(g);f=this.getLocalX(c);h=c.getLocalY();this.deltaSetXY=[f-a.x,h-a.y]}else {b=this.cachedViewportSize;this.setLocalXY(c,Math.max(0,Math.min(a.x+this.deltaSetXY[0],b.width-e.width)),Math.max(0,Math.min(a.y+this.deltaSetXY[1],b.height-e.height)))}this.cachePosition(a.x,a.y);this.autoScroll(a.x,a.y,d.offsetHeight,d.offsetWidth);return a},cachePosition:function(b,c){if(b){this.lastPageX=b;this.lastPageY=c}else {var a=Ext.fly(this.getEl()).getXY();this.lastPageX=a[0];this.lastPageY=a[1]}},autoScroll:function(e,f,m,n){if(this.scroll){var g=Ext.Element.getViewportHeight(),h=Ext.Element.getViewportWidth(),b=this.DDMInstance.getScrollTop(),a=this.DDMInstance.getScrollLeft(),l=m+f,j=n+e,k=g+b-f-this.deltaY,i=h+a-e-this.deltaX,d=40,c=document.all?80:30;if(l>g&&k0&&f-bh&&i0&&e-athis.maxX){a=this.maxX}}if(this.constrainY){if(bthis.maxY){b=this.maxY}}a=this.getTick(a,this.xTicks);b=this.getTick(b,this.yTicks);return {x:a,y:b}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=this.config.scroll!==!1},b4MouseDown:function(b){var a=b.getXY();this.autoOffset(a[0],a[1])},b4Drag:function(b){var a=b.getXY();this.setDragElPos(a[0],a[1])},toString:function(){return 'DD '+this.id},getLocalX:function(a){return a.getLocalX()},setLocalXY:function(a,b,c){a.setLocalXY(b,c)}},3,0,0,0,0,0,[Ext.dd,'DD'],0);Ext.cmd.derive('Ext.dd.DDProxy',Ext.dd.DD,{statics:{dragElId:'ygddfdiv'},constructor:function(a,c,b){if(a){this.init(a,c,b);this.initFrame()}},resizeFrame:!0,centerFrame:!1,createFrame:function(){var d=this,c=document.body,a,b;if(!c||!c.firstChild){Ext.defer(function(){d.createFrame()},50);return}a=this.getDragEl();if(!a){a=document.createElement('div');a.id=this.dragElId;a.setAttribute('role','presentation');b=a.style;b.position='absolute';b.visibility='hidden';b.cursor='move';b.border='2px solid #aaa';b.zIndex=999;c.insertBefore(a,c.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=this.config.resizeFrame!==!1;this.centerFrame=this.config.centerFrame;this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(d,e){var a=this,b=a.getDragEl(),c=b.style;a._resizeProxy();if(a.centerFrame){a.setDelta(Math.round(parseInt(c.width,10)/2),Math.round(parseInt(c.height,10)/2))}a.setDragElPos(d,e);Ext.fly(b).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(d){var a=d.getXY(),b=a[0],c=a[1];this.autoOffset(b,c);this.setDragElPos(b,c)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl(),a=this.getDragEl();a.style.visibility='';this.beforeMove();b.style.visibility='hidden';Ext.dd.DDM.moveToEl(b,a);a.style.visibility='hidden';b.style.visibility='';this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return 'DDProxy '+this.id}},3,0,0,0,0,0,[Ext.dd,'DDProxy'],0);Ext.cmd.derive('Ext.dd.StatusProxy',Ext.Component,{animRepair:!1,childEls:['ghost'],renderTpl:[''],repairCls:'x-dd-drag-repair',ariaRole:'presentation',skipLayout:!0,constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:'visibility',hidden:!0,floating:!0,id:b.id||Ext.id(),cls:'x-dd-drag-proxy '+this.dropNotAllowed,shadow:a.shadow||!1,renderTo:Ext.getDetachedBody()});Ext.Component.prototype.constructor.apply(this,arguments);this.dropStatus=this.dropNotAllowed},dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',setStatus:function(a){a=a||this.dropNotAllowed;if(this.dropStatus!==a){this.el.replaceCls(this.dropStatus,a);this.dropStatus=a}},reset:function(c){var a=this,b='x-dd-drag-proxy ';a.el.replaceCls(b+a.dropAllowed,b+a.dropNotAllowed);a.dropStatus=a.dropNotAllowed;if(c){a.ghost.setHtml('')}},update:function(a){if(typeof a==='string'){this.ghost.setHtml(a)}else {this.ghost.setHtml('');a.style.margin='0';this.ghost.dom.appendChild(a)}var b=this.ghost.dom.firstChild;if(b){Ext.fly(b).setStyle('float','none')}},getGhost:function(){return this.ghost},hide:function(a){Ext.Component.prototype.hide.call(this);if(a){this.reset(!0)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(b,c,d){var a=this;a.callback=c;a.scope=d;if(b&&a.animRepair!==!1){a.el.addCls(a.repairCls);a.el.setUnderlaysVisible(!1);a.anim=a.el.animate({duration:a.repairDuration||500,easing:'ease-out',to:{x:b[0],y:b[1]},stopAnimation:!0,callback:a.afterRepair,scope:a})}else {a.afterRepair()}},afterRepair:function(){var a=this;a.hide(!0);a.el.removeCls(a.repairCls);if(typeof a.callback==='function'){a.callback.call(a.scope||a)}delete a.callback;delete a.scope}},1,0,['component','box'],{'component':!0,'box':!0},0,0,[Ext.dd,'StatusProxy'],0);Ext.cmd.derive('Ext.dd.DragSource',Ext.dd.DDProxy,{dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',animRepair:!0,repairHighlightColor:'c3daf9',constructor:function(b,a){this.el=Ext.get(b);if(!this.dragData){this.dragData={}}Ext.apply(this,a);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy({id:this.el.id+'-drag-status-proxy',animRepair:this.animRepair})}Ext.dd.DDProxy.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:!1,isTarget:!1,scroll:this.scroll===!0});this.dragging=!1},getDragData:function(a){return this.dragData},onDragEnter:function(c,b){var a=Ext.dd.DragDropManager.getDDById(b),d;this.cachedTarget=a;if(this.beforeDragEnter(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyEnter(this,c,this.dragData);this.proxy.setStatus(d)}else {this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(a,c,b)}}},beforeDragEnter:function(a,c,b){return !0},onDragOver:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b),d;if(this.beforeDragOver(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyOver(this,c,this.dragData);this.proxy.setStatus(d)}if(this.afterDragOver){this.afterDragOver(a,c,b)}}},beforeDragOver:function(a,c,b){return !0},onDragOut:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragOut(a,c,b)!==!1){if(a.isNotifyTarget){a.notifyOut(this,c,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,c,b)}}this.cachedTarget=null},beforeDragOut:function(a,c,b){return !0},onDragDrop:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragDrop(a,c,b)!==!1){if(a.isNotifyTarget){if(a.notifyDrop(this,c,this.dragData)!==!1){this.onValidDrop(a,c,b)}else {this.onInvalidDrop(a,c,b)}}else {this.onValidDrop(a,c,b)}if(this.afterDragDrop){this.afterDragDrop(a,c,b)}}delete this.cachedTarget},beforeDragDrop:function(a,c,b){return !0},onValidDrop:function(a,c,b){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(a,c,b)}},getRepairXY:function(b,a){return this.el.getXY()},onInvalidDrop:function(c,b,d){var a=this;if(!b){b=c;c=null;d=b.getTarget().id}if(a.beforeInvalidDrop(c,b,d)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}a.proxy.repair(a.getRepairXY(b,a.dragData),a.afterRepair,a);if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}},afterRepair:function(){var a=this;if(Ext.enableFx){a.el.highlight(a.repairHighlightColor)}a.dragging=!1},beforeInvalidDrop:function(a,c,b){return !0},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==!1){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return !0},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(!0);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=!1;this.dragging=!0;this.proxy.update('');this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(b,c){var a=this.el.dom.cloneNode(!0);a.id=Ext.id();this.proxy.update(a);this.onStartDrag(b,c);return !0},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(!0);this.dragging=!1},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(a){},endDrag:function(a){this.onEndDrag(this.dragData,a)},onEndDrag:function(a,b){},autoOffset:function(a,b){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DDProxy.prototype.destroy.call(this);Ext.destroy(this.proxy)}},1,0,0,0,0,0,[Ext.dd,'DragSource'],0);Ext.cmd.derive('Ext.panel.Proxy',Ext.Base,{alternateClassName:'Ext.dd.PanelProxy',moveOnDrag:!0,constructor:function(c,b){var a=this;a.panel=c;a.id=a.panel.id+'-ddproxy';Ext.apply(a,b)},insertProxy:!0,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost.el},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){var a=this;if(a.ghost){if(a.proxy){a.proxy.destroy();delete a.proxy}a.panel.unghost(null,a.moveOnDrag);delete a.ghost}},show:function(){var a=this,b;if(!a.ghost){b=a.panel.getSize();a.panel.el.setVisibilityMode(Ext.Element.DISPLAY);a.ghost=a.panel.ghost();if(a.insertProxy){a.proxy=a.panel.el.insertSibling({role:'presentation',cls:'x-panel-dd-spacer'});a.proxy.setSize(b)}}},repair:function(c,a,b){this.hide();Ext.callback(a,b||this)},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}},1,0,0,0,0,0,[Ext.panel,'Proxy',Ext.dd,'PanelProxy'],0);Ext.cmd.derive('Ext.panel.DD',Ext.dd.DragSource,{constructor:function(b,c){var a=this;a.panel=b;a.dragData={panel:b};a.panelProxy=new Ext.panel.Proxy(b,c);a.proxy=a.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,c);a.setupEl(b)},setupEl:function(c){var a=this,b=c.header,d=c.body;if(b){a.setHandleElId(b.id);d=b.el}if(d){d.setStyle('cursor','move');a.scroll=!1}else {c.on('boxready',a.setupEl,a,{single:!0})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(b){var a=b.getXY(),c=a[0],d=a[1];this.autoOffset(c,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return !0},createFrame:Ext.emptyFn,getDragEl:function(b){var a=this.panelProxy.ghost;if(a){return a.el.dom}},endDrag:function(a){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)},onInvalidDrop:function(d,b,c){var a=this;if(a.beforeInvalidDrop(d,b,c)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,c)}}}},1,0,0,0,0,0,[Ext.panel,'DD'],0);Ext.cmd.derive('Ext.layout.component.Dock',Ext.layout.component.Component,{alternateClassName:'Ext.layout.component.AbstractDock',type:'dock',horzAxisProps:{name:'horz',oppositeName:'vert',dockBegin:'left',dockEnd:'right',horizontal:!0,marginBegin:'margin-left',maxSize:'maxWidth',minSize:'minWidth',pos:'x',setSize:'setWidth',shrinkWrapDock:'shrinkWrapDockWidth',size:'width',sizeModel:'widthModel'},vertAxisProps:{name:'vert',oppositeName:'horz',dockBegin:'top',dockEnd:'bottom',horizontal:!1,marginBegin:'margin-top',maxSize:'maxHeight',minSize:'minHeight',pos:'y',setSize:'setHeight',shrinkWrapDock:'shrinkWrapDockHeight',size:'height',sizeModel:'heightModel'},initializedBorders:-1,horizontalCollapsePolicy:{width:!0,x:!0},verticalCollapsePolicy:{height:!0,y:!0},finishRender:function(){var a=this,b,c;Ext.layout.component.Component.prototype.finishRender.call(this);b=a.getRenderTarget();c=a.getDockedItems();a.finishRenderItems(b,c)},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},noBorderClasses:['x-docked-noborder-top','x-docked-noborder-right','x-docked-noborder-bottom','x-docked-noborder-left'],noBorderClassesSides:{top:'x-docked-noborder-top',right:'x-docked-noborder-right',bottom:'x-docked-noborder-bottom',left:'x-docked-noborder-left'},borderWidthProps:{top:'border-top-width',right:'border-right-width',bottom:'border-bottom-width',left:'border-left-width'},_itemCls:'x-docked',handleItemBorders:function(){var c=this,b=c.owner,a,l,k=c.lastDockedItems,j=c.borders,m=b.dockedItems.generation,i=c.noBorderClassesSides,n=c.borderWidthProps,f,h,d,g,e,o=c.collapsed;if(c.initializedBorders===m||b.border&&!b.manageBodyBorders||b.collapsed&&b.collapseMode==='mini'){return}c.initializedBorders=m;c.collapsed=!1;c.lastDockedItems=l=c.getLayoutItems();c.collapsed=o;a={top:[],right:[],bottom:[],left:[]};for(f=0,h=l.length;fj){b=i.constrainedMax;m=j}else {if(hj){c=i.constrainedMax;l=j}else {if(h',addDocked:function(c,d){var b=this,k=b.rendered,f=0,g=b.dockedItems,i=g.getCount(),e,h,a,j;c=b.prepareItems(c);j=c.length;if(k){Ext.suspendLayouts()}if(d===undefined){d=i}else {d=Math.min(d,i)}for(;f','
    ','{headingText}','
    ','','{% this.renderDockedItems(out,values,0); %}','
    {bodyCls}',' {baseCls}-body-{ui}',' {parent.baseCls}-body-{parent.ui}-{.}','{childElCls}"','',' {$}="{.}"','',' role="presentation"','',' style="{bodyStyle}">','{%this.renderContainer(out,values);%}','
    ','{% this.renderDockedItems(out,values,1); %}'],headerPosition:'top',iconAlign:'left',titleAlign:'left',titleRotation:'default',beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titleRotation:null},animCollapse:Ext.enableFx,border:!0,closable:!1,closeAction:'destroy',closeToolText:'Close panel',collapsed:!1,collapsedCls:'collapsed',collapseFirst:!0,collapsible:undefined,collapseToolText:'Collapse panel',expandToolText:'Expand panel',constrain:!1,constrainHeader:!1,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:!0,frame:!1,frameHeader:!0,hideCollapseTool:!1,manageHeight:!0,maskElement:'el',minButtonWidth:75,preventHeader:!1,shrinkWrapDock:!1,titleCollapse:undefined,baseCls:'x-panel',bodyPosProps:{x:'x',y:'y'},componentLayout:'dock',contentPaddingProperty:'bodyPadding',emptyArray:[],isPanel:!0,defaultBindProperty:'title',addBodyCls:function(c){var a=this,b=a.rendered?a.body:a.getProtoBody();b.addCls(c);return a},addTool:function(b){if(!Ext.isArray(b)){b=[b]}var c=this,a=c.header,g=b.length,f=c.tools,e,d;if(!a||!a.isHeader){a=null;if(!f){c.tools=f=[]}}for(e=0;e=e||c[b]>0){if(b>=e){b=0;f=0;h++;for(a=0;a0){c[a]--}}}else {b++}}i.push({rowIdx:h,cellIdx:f});for(a=g.colspan||1;a;--a){c[b]=g.rowspan||1;++b}++f}return i},getRenderTree:function(){var a=this,h=a.getLayoutItems(),i=[],m=Ext.apply({tag:'table',id:a.owner.id+'-table','data-ref':'table',role:'presentation',cls:a.tableCls,cellspacing:0,cellpadding:0,cn:{tag:'tbody',id:a.owner.id+'-tbody','data-ref':'tbody',role:'presentation',cn:i}},a.tableAttrs),k=a.tdAttrs,d,n=h.length,b,f,c,g,j,e,l;l=a.calculateCells(h);for(d=0;d0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(a.is(this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(e,b){var a=this,d=a.items,c=a.addHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.add(b)}}},onItemRemove:function(e,b){var a=this,d=a.items,c=a.removeHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.remove(b)}}},onContainerAdd:function(c,i){var a=this,d,e,h=a.handleAdd,g=a.handleRemove,b,f;if(c.isContainer){c.on('add',h,a);c.on('dockedadd',h,a);c.on('remove',g,a);c.on('dockedremove',g,a)}if(i!==!0){d=c.query(a.selector);for(b=0,e=d.length;bcontainer');for(b=0,e=d.length;ba.tolerance){a.triggerStart(b)}else {return}}if(a.fireEvent('mousemove',a,b)===!1){a.onMouseUp(b)}else {a.onDrag(b);a.fireEvent('drag',a,b)}},onMouseUp:function(b){var a=this;a.mouseIsDown=!1;if(a.mouseIsOut){a.mouseIsOut=!1;a.onMouseOut(b)}if(a.preventDefault!==!1){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent('mouseup',a,b);a.endDrag(b)},endDrag:function(b){var a=this,c=a.active;Ext.getDoc().un({mousemove:a.onMouseMove,mouseup:a.onMouseUp,selectstart:a.stopSelect,capture:!0,scope:a});a.clearStart();a.active=!1;if(c){a.dragEnded=!0;a.onEnd(b);a.fireEvent('dragend',a,b)}a._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=!0;a.onStart(b);a.fireEvent('dragstart',a,b)},clearStart:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return !1},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var a=this;if(a.constrainTo){if(a.constrainTo instanceof Ext.util.Region){return a.constrainTo}if(!a._constrainRegion){a._constrainRegion=Ext.fly(a.constrainTo).getViewRegion()}}else {if(!a._constrainRegion){a._constrainRegion=a.getDragCt().getViewRegion()}}return a._constrainRegion},getXY:function(a){return a?this.constrainModes[a](this,this.lastXY):this.lastXY},getOffset:function(c){var a=this.getXY(c),b=this.startXY;return [a[0]-b[0],a[1]-b[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(d,b){var a=d.dragRegion,c=d.getConstrainRegion();if(!c){return b}a.x=a.left=a[0]=a.right=b[0];a.y=a.top=a[1]=a.bottom=b[1];a.constrainTo(c);return [a.left,a.top]},dragTarget:function(e,c){var f=e.startXY,a=e.startRegion.copy(),b=e.getConstrainRegion(),d;if(!b){return c}a.translateBy(c[0]-f[0],c[1]-f[1]);if(a.right>b.right){c[0]+=d=b.right-a.right;a.left+=d}if(a.leftb.bottom){c[1]+=d=b.bottom-a.bottom;a.top+=d}if(a.top[flex]'),o=j.length,h=n==='vertical',i=0,d=h?'width':'height',m=0,g,a;for(;i',tabGuardIndex:0},tabGuardPositionAttribute:'data-tabguardposition',privates:{initTabGuards:function(){var a=this,f=a.tabGuardPositionAttribute,c=a.tabGuardBeforeEl,d=a.tabGuardAfterEl,e=a.tabGuardIndex,b;if(!a.rendered||!a.tabGuard){return}b=a.el.findTabbableElements({skipSelf:!0});if(b[0]&&b[0].hasAttribute(f)){b.shift()}if(b.length&&b[b.length-1].hasAttribute(f)){b.pop()}if(b.length){c.dom.setAttribute('tabIndex',e);c.on('focusenter',a.onTabGuardFocusEnter,a);d.dom.setAttribute('tabIndex',e);d.on('focusenter',a.onTabGuardFocusEnter,a)}else {c.dom.removeAttribute('tabIndex');c.un('focusenter',a.onTabGuardFocusEnter,a);d.dom.removeAttribute('tabIndex');d.un('focusenter',a.onTabGuardFocusEnter,a)}},onTabGuardFocusEnter:function(j,i){var h=this,e=h.el,g=h.tabGuardPositionAttribute,f=i.getAttribute(g),d=j.relatedTarget,a,c,b;if(!d.hasAttribute(g)&&d!==e.dom&&e.contains(d)){c=f==='before'?!1:!0}else {c=f==='before'?!0:!1}a=e.findTabbableElements({skipSelf:!0});a.shift();a.pop();b=c?a[0]:a[a.length-1];if(b){b.focus()}}}},0,0,0,0,0,0,[Ext.util,'FocusTrap'],0);Ext.cmd.derive('Ext.window.Window',Ext.panel.Panel,{alternateClassName:'Ext.Window',baseCls:'x-window',resizable:!0,draggable:!0,constrain:!1,constrainHeader:!1,plain:!1,minimizable:!1,maximizable:!1,minHeight:50,minWidth:50,expandOnShow:!0,collapsible:!1,closable:!0,hidden:!0,autoRender:!0,hideMode:'offsets',floating:!0,itemCls:'x-window-item',overlapHeader:!0,ignoreHeaderBorderManagement:!0,alwaysFramed:!0,isRootCfg:{isRoot:!0},isWindow:!0,ariaRole:'dialog',initComponent:function(){var a=this;a.frame=!1;Ext.panel.Panel.prototype.initComponent.call(this);if(a.plain){a.addClsWithUI('plain')}a.addStateEvents(['maximize','restore','resize','dragend'])},getElConfig:function(){var b=this,a;a=Ext.panel.Panel.prototype.getElConfig.call(this);a.tabIndex=-1;return a},getFocusEl:function(){return this.getDefaultFocus()||this.el},getState:function(){var a=this,e=Ext.panel.Panel.prototype.getState.call(this)||{},c=!!a.maximized,d=a.ghostBox,b;e.maximized=c;if(c){b=a.restorePos}else {if(d){b=[d.x,d.y]}else {b=a.getPosition()}}Ext.apply(e,{size:c?a.restoreSize:a.getSize(),pos:b});return e},applyState:function(a){var b=this;if(a){b.maximized=a.maximized;if(b.maximized){b.hasSavedRestore=!0;b.restoreSize=a.size;b.restorePos=a.pos}else {Ext.apply(b,{width:a.size.width,height:a.size.height,x:a.pos[0],y:a.pos[1]})}}},onRender:function(c,b){var a=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(a.header){a.header.on({scope:a,click:a.onHeaderClick})}if(a.maximizable){a.header.on({scope:a,dblclick:a.toggleMaximize})}},afterRender:function(){var a=this,c=a.header,b;if(a.maximized){a.maximized=!1;a.maximize();if(c){c.removeCls(c.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);if(a.closable){b=a.getKeyMap();b.on(27,a.onEsc,a)}else {b=a.keyMap}if(b&&a.hidden){b.disable()}},onEsc:function(b,a){a.stopEvent();this.close()},beforeDestroy:function(){var a=this;if(a.rendered){Ext.un('resize',a.onWindowResize,a);delete a.animateTarget;a.hide();Ext.destroy(a.keyMap)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},addTools:function(){var a=this,b=[];Ext.panel.Panel.prototype.addTools.call(this);if(a.minimizable){b.push({type:'minimize',handler:'minimize',scope:a})}if(a.maximizable){b.push({type:a.maximized?'restore':'maximize',handler:'toggleMaximize',scope:a})}if(b.length){a.addTool(b)}},onShow:function(){var a=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(a.expandOnShow){a.expand(!1)}a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.enable()}},doClose:function(){var a=this;if(a.hidden){a.fireEvent('close',a);if(a.closeAction==='destroy'){a.destroy()}}else {a.hide(a.animateTarget,a.doClose,a)}},afterHide:function(){var a=this;a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.disable()}Ext.panel.Panel.prototype.afterHide.apply(this,arguments)},onWindowResize:function(){var a=this,b;if(!a.destroyed){if(a.maximized){a.fitContainer()}else {b=a.getSizeModel();if(b.width.natural||b.height.natural){a.updateLayout()}a.doConstrain()}}},minimize:function(){this.fireEvent('minimize',this);return this},resumeHeaderLayout:function(a){this.header.resumeLayouts(a?this.isRootCfg:null)},afterCollapse:function(){var a=this,b=a.header,c=a.tools;if(b&&a.maximizable){b.suspendLayouts();c.maximize.hide();this.resumeHeaderLayout(!0)}if(a.resizer){a.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var a=this,c=a.header,d=a.tools,b;if(c){c.suspendLayouts();if(a.maximizable){d.maximize.show();b=!0}this.resumeHeaderLayout(b)}if(a.resizer){a.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(c){var a=this,b=a.header,f=a.tools,g=a.width,e=a.height,h,d;if(!a.maximized){a.expand(!1);if(!a.hasSavedRestore){h=a.restoreSize={width:g?g:null,height:e?e:null};a.restorePos=a.getPosition()}if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('restore')}if(a.collapseTool){a.collapseTool.hide();d=!0}a.resumeHeaderLayout(d)}a.el.disableShadow();if(a.dd){a.dd.disable();if(b){b.removeCls(b.indicateDragCls)}}if(a.resizer){a.resizer.disable()}a.el.addCls('x-window-maximized');a.container.addCls('x-window-maximized-ct');a.syncMonitorWindowResize();a.fitContainer(c=c||!!a.animateTarget?{callback:function(){a.maximized=!0;a.fireEvent('maximize',a)}}:null);if(!c){a.maximized=!0;a.fireEvent('maximize',a)}}return a},restore:function(c){var a=this,f=a.tools,b=a.header,d=a.restoreSize,e;if(a.maximized){a.hasSavedRestore=null;a.removeCls('x-window-maximized');if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('maximize')}if(a.collapseTool){a.collapseTool.show();e=!0}a.resumeHeaderLayout(e)}d.x=a.restorePos[0];d.y=a.restorePos[1];a.setBox(d,c=c||!!a.animateTarget?{callback:function(){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}:null);a.restorePos=a.restoreSize=null;if(a.dd){a.dd.enable();if(b){b.addCls(b.indicateDragCls)}}if(a.resizer){a.resizer.enable()}a.container.removeCls('x-window-maximized-ct');a.syncMonitorWindowResize();if(!c){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}return a},syncMonitorWindowResize:function(){var a=this,b=a._monitoringResize,d=a.monitorResize||a.constrain||a.constrainHeader||a.maximized,c=a.hidden||a.destroying||a.destroyed;if(d&&!c){if(!b){Ext.on('resize',a.onWindowResize,a,{buffer:1});a._monitoringResize=!0}}else {if(b){Ext.un('resize',a.onWindowResize,a);a._monitoringResize=!1}}},toggleMaximize:function(){return this[this.maximized?'restore':'maximize']()},createGhost:function(){var a=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);a.xtype='window';a.focusOnToFront=!1;return a},getDefaultFocus:function(){var d=this,b,a=d.defaultFocus,c;if(a!==undefined){if(Ext.isNumber(a)){b=d.query('button')[a]}else {if(Ext.isString(a)){c=a;if(Ext.validIdRe.test(c)){b=d.down(Ext.makeIdSelector(c))}if(!b){b=d.down(c)}}else {if(a.focus){b=a}}}}return b},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(b,c){var a;if(b.el.contains(c.getTarget())){a=this.getDefaultFocus();if(a){a.focus()}}},initResizable:function(){Ext.panel.Panel.prototype.initResizable.apply(this,arguments);if(this.maximized){this.resizer.disable()}}}},0,['window'],['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},['widget.window'],[[Ext.util.FocusTrap.prototype.mixinId||Ext.util.FocusTrap.$className,Ext.util.FocusTrap]],[Ext.window,'Window',Ext,'Window'],0);Ext.cmd.derive('Ext.form.Labelable',Ext.Mixin,{isLabelable:!0,mixinConfig:{id:'labelable',on:{beforeRender:'beforeLabelRender',onRender:'onLabelRender'}},config:{childEls:['labelEl','bodyEl','errorEl','errorWrapEl','ariaErrorEl']},labelableRenderTpl:['{beforeLabelTpl}','','{afterLabelTpl}','','','
    ','','
    ','
    ',{disableFormats:!0}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['','
      ','
    • {.}
    • ','
    ','
    '],plaintextActiveErrorsTpl:['','\n{.}',''],isFieldLabelable:!0,formItemCls:'x-form-item',labelCls:'x-form-item-label',topLabelCls:'x-form-item-label-top',rightLabelCls:'x-form-item-label-right',labelInnerCls:'x-form-item-label-inner',topLabelSideErrorCls:'x-form-item-label-top-side-error',errorMsgCls:'x-form-error-msg',errorWrapCls:'x-form-error-wrap',errorWrapSideCls:'x-form-error-wrap-side',errorWrapUnderCls:'x-form-error-wrap-under',errorWrapUnderSideLabelCls:'x-form-error-wrap-under-side-label',baseBodyCls:'x-form-item-body',invalidIconCls:'x-form-invalid-icon',invalidUnderCls:'x-form-invalid-under',noLabelCls:'x-form-item-no-label',fieldBodyCls:'',invalidCls:'x-form-invalid',fieldLabel:undefined,labelAlign:'left',labelWidth:100,labelPad:5,labelSeparator:':',hideLabel:!1,hideEmptyLabel:!0,preventMark:!1,autoFitErrors:!0,msgTarget:'qtip',msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:!0,labelableInsertions:['beforeBodyEl','afterBodyEl','beforeLabelTpl','afterLabelTpl','beforeSubTpl','afterSubTpl','beforeLabelTextTpl','afterLabelTextTpl','labelAttrTpl'],statics:{initTip:function(){var b=this.tip,a,c;if(b){return}a={id:'ext-form-error-tip',ui:'form-invalid'};if(Ext.supports.Touch){a.dismissDelay=0;a.anchor='top';a.showDelay=0;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.anchorTarget).getWidth()}}}b=this.tip=Ext.create('Ext.tip.QuickTip',a);c=Ext.apply({},b.tagConfig);c.attribute='errorqtip';b.setTagConfig(c)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var a=this,b=a.padding;if(b){a.padding=undefined;a.extraMargins=Ext.Element.parseBox(b)}if(Ext.isIE8){a.restoreDisplay=Ext.Function.createDelayed(a.doRestoreDisplay,0,a)}if(!a.activeErrorsTpl){if(a.msgTarget==='title'){a.activeErrorsTpl=a.plaintextActiveErrorsTpl}else {a.activeErrorsTpl=a.htmlActiveErrorsTpl}}a.addCls([a.formItemCls,a.formItemCls+'-'+a.ui]);a.lastActiveError='';a.enableBubble('errorchange')},trimLabelSeparator:function(){var b=this,c=b.labelSeparator,a=b.fieldLabel||'',d=a.substr(a.length-1);return d===c?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(b){b=b||'';var a=this,f=a.labelSeparator,h=a.labelEl,c=a.errorWrapEl,g=a.labelAlign!=='top',e=a.noLabelCls,d=a.errorWrapUnderSideLabelCls;a.fieldLabel=b;if(a.rendered){if(Ext.isEmpty(b)&&a.hideEmptyLabel){a.addCls(e);if(g&&c){c.removeCls(d)}}else {if(f){b=a.trimLabelSeparator()+f}h.dom.firstChild.innerHTML=b;a.removeCls(e);if(g&&c){c.addCls(d)}}a.updateLayout()}},setHideLabel:function(b){var a=this;if(b!==a.hideLabel){a.hideLabel=b;if(a.rendered){a[b?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},setHideEmptyLabel:function(b){var a=this,c;if(b!==a.hideEmptyLabel){a.hideEmptyLabel=b;if(a.rendered&&!a.hideLabel){c=b&&!a.getFieldLabel();a[c?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},getInsertionRenderData:function(c,d){var e=d.length,b,a;while(e--){b=d[e];a=this[b];if(a){if(typeof a!=='string'){if(!a.isTemplate){a=Ext.XTemplate.getTpl(this,b)}a=a.apply(c)}}c[b]=a||''}return c},getLabelableRenderData:function(){var a=this,l=a.labelAlign,o=l==='top',r=l==='right',c=a.msgTarget==='side',h=a.msgTarget==='under',q=a.errorMsgCls,b=a.labelPad,m=a.labelWidth,d=a.labelClsExtra||'',j=c?a.errorWrapSideCls:a.errorWrapUnderCls,g='',f='',p=a.hasVisibleLabel(),k=a.autoFitErrors,e=a.defaultBodyWidth,n,i;if(o){d+=' '+a.topLabelCls;if(b){f='padding-bottom:'+b+'px;'}if(c&&!k){d+=' '+a.topLabelSideErrorCls}}else {if(r){d+=' '+a.rightLabelCls}if(b){g+=a.getHorizontalPaddingStyle()+b+'px;'}g+='width:'+(m+(b?b:0))+'px;';f='width:'+m+'px'}if(p){if(!o&&h){j+=' '+a.errorWrapUnderSideLabelCls}}if(e){n='min-width:'+e+'px;max-width:'+e+'px;'}i={id:a.id,inputId:a.getInputId(),labelCls:a.labelCls,labelClsExtra:d,labelStyle:g+(a.labelStyle||''),labelInnerStyle:f,labelInnerCls:a.labelInnerCls,unselectableCls:Ext.Element.unselectableCls,bodyStyle:n,baseBodyCls:a.baseBodyCls,fieldBodyCls:a.fieldBodyCls,extraFieldBodyCls:a.extraFieldBodyCls,errorWrapCls:a.errorWrapCls,errorWrapExtraCls:j,renderError:c||h,invalidMsgCls:c?a.invalidIconCls:h?a.invalidUnderCls:'',errorMsgCls:q,growCls:a.grow?a.growCls:'',tipAnchorTarget:a.id+'-inputEl',errorWrapStyle:c&&!k?'visibility:hidden':'display:none',fieldLabel:a.getFieldLabel(),labelSeparator:a.labelSeparator};a.getInsertionRenderData(i,a.labelableInsertions);return i},getHorizontalPaddingStyle:function(){return 'padding-right:'},beforeLabelRender:function(){var a=this;a.setFieldDefaults(a.getInherited().fieldDefaults);if(a.ownerLayout){a.addCls('x-'+a.ownerLayout.type+'-form-item')}if(!a.hasVisibleLabel()){a.addCls(a.noLabelCls)}},onLabelRender:function(){var a=this,f={},e=Ext.Element,d=a.errorWrapEl,c,b;if(d){d.setVisibilityMode(a.msgTarget==='side'&&!a.autoFitErrors?e.VISIBILITY:e.DISPLAY)}if(a.extraMargins){c=a.el.getMargin();for(b in c){if(c.hasOwnProperty(b)){f['margin-'+b]=c[b]+a.extraMargins[b]+'px'}}a.el.setStyle(f)}},hasVisibleLabel:function(){if(this.hideLabel){return !1}return !(this.hideEmptyLabel&&!this.getFieldLabel())},getSubTplMarkup:function(){return ''},getInputId:function(){return ''},getActiveError:function(){return this.activeError||''},hasActiveError:function(){return !!this.getActiveError()},setActiveError:function(a){this.setActiveErrors(a)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(c){var a=this,h=a.errorWrapEl,b=a.msgTarget,g=b==='side',i=b==='qtip',e,d,j,f;c=Ext.Array.from(c);j=a.getTpl('activeErrorsTpl');a.activeErrors=c;d=a.activeError=j.apply({fieldLabel:a.fieldLabel,errors:c,listCls:'x-list-plain'});a.renderActiveError();if(a.rendered){e=a.getActionEl();if(g){a.errorEl.dom.setAttribute('data-errorqtip',d)}else {if(i){e.dom.setAttribute('data-errorqtip',d)}else {if(b==='title'){e.dom.setAttribute('title',d)}}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML=c.join('. ');e.dom.setAttribute('aria-describedby',a.ariaErrorEl.id)}if(g||i){Ext.form.Labelable.initTip()}if(!a.msgTargets[b]){f=Ext.get(b);if(f){f.dom.innerHTML=d}}}if(h){h.setVisible(c.length>0);if(g&&a.autoFitErrors){a.labelEl.addCls(a.topLabelSideErrorCls)}a.updateLayout()}},unsetActiveError:function(){var a=this,e=a.errorWrapEl,b=a.msgTarget,f=a.restoreDisplay,c,d;if(a.hasActiveError()){delete a.activeError;delete a.activeErrors;a.renderActiveError();if(a.rendered){c=a.getActionEl();if(b==='qtip'){c.dom.removeAttribute('data-errorqtip')}else {if(b==='title'){c.dom.removeAttribute('title')}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML='';c.dom.removeAttribute('aria-describedby')}if(!a.msgTargets[b]){d=Ext.get(b);if(d){d.dom.innerHTML=''}}if(e){e.hide();if(b==='side'&&a.autoFitErrors){a.labelEl.removeCls(a.topLabelSideErrorCls)}a.updateLayout();if(f){a.el.dom.style.display='block';a.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=''}},renderActiveError:function(){var a=this,b=a.getActiveError(),c=!!b;if(b!==a.lastActiveError){a.lastActiveError=b;a.fireEvent('errorchange',a,b)}if(a.rendered&&!a.destroyed&&!a.preventMark){a.toggleInvalidCls(c);if(a.errorEl){a.errorEl.dom.innerHTML=b}}},toggleInvalidCls:function(a){this.el[a?'addCls':'removeCls'](this.invalidCls)},setFieldDefaults:function(b){var a;for(a in b){if(!this.hasOwnProperty(a)){this[a]=b[a]}}}},0,0,0,0,0,0,[Ext.form,'Labelable'],function(){if(Ext.supports.Touch){this.prototype.msgTarget='side'}});Ext.cmd.derive('Ext.form.field.Field',Ext.Base,{mixinId:'field',isFormField:!0,config:{validation:null,validationField:null},disabled:!1,submitValue:!0,validateOnChange:!0,valuePublishEvent:'change',suspendCheckChange:0,dirty:!1,initField:function(){var a=this,b=a.valuePublishEvent,d,c;a.initValue();if(Ext.isString(b)){a.on(b,a.publishValue,a)}else {for(c=0,d=b.length;c name="{name}"',' value="{[Ext.util.Format.htmlEncode(values.value)]}"',' placeholder="{placeholder}"','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}',' readonly="readonly"',' disabled="disabled"',' tabindex="{tabIdx}"',' style="{fieldStyle}"',' {$}="{.}"',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete="off"/>',{disableFormats:!0}],defaultBindProperty:'value',autoEl:{role:'presentation'},subTplInsertions:['inputAttrTpl'],childEls:['inputEl'],inputType:'text',isTextInput:!0,invalidText:'The value in this field is invalid',fieldCls:'x-form-field',focusCls:'form-focus',dirtyCls:'x-form-dirty',checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<=9)?['change','propertychange','keyup']:['change','input','textInput','keyup','dragdrop'],ignoreChangeRe:/data\-errorqtip|style\.|className/,checkChangeBuffer:50,liquidLayout:!0,readOnly:!1,readOnlyCls:'x-form-readonly',validateOnBlur:!0,hasFocus:!1,baseCls:'x-field',fieldBodyCls:'x-field-body',maskOnDisable:!1,stretchInputElFixed:!0,ariaEl:'inputEl',initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();a.initDefaultName();if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls('x-form-type-'+a.inputType)},initDefaultName:function(){var a=this;if(!a.name){a.name=a.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+'-inputEl')},getSubTplData:function(f){var a=this,e=a.inputType,d=a.getInputId(),b,c;b=Ext.apply({ui:a.ui,id:d,cmpId:a.id,name:a.name||d,disabled:a.disabled,readOnly:a.readOnly,value:a.getRawValue(),type:e,fieldCls:a.fieldCls,fieldStyle:a.getFieldStyle(),childElCls:f.childElCls,tabIdx:a.tabIndex,inputCls:a.inputCls,typeCls:'x-form-'+(a.isTextInput?'text':e)},a.subTplData);if(a.ariaRole){c={role:a.ariaRole,'aria-hidden':!!a.hidden,'aria-disabled':!!a.disabled,'aria-readonly':!!a.readOnly,'aria-invalid':!1};if(a.ariaLabel){c['aria-label']=a.ariaLabel}if(a.format&&a.formatText&&!b.title){c.title=Ext.String.formatEncode(a.formatText,a.format)}b.inputElAriaAttributes=Ext.apply(c,a.getAriaAttributes())}a.getInsertionRenderData(b,a.subTplInsertions);return b},getSubTplMarkup:function(f){var b=this,c=b.getSubTplData(f),e=b.getTpl('preSubTpl'),d=b.getTpl('postSubTpl'),a='';if(e){a+=e.apply(c)}a+=b.getTpl('fieldSubTpl').apply(c);if(d){a+=d.apply(c)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(b){var c=this,a=c.inputEl;if(a){a.applyStyles(b)}c.fieldStyle=b},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,!0):a||''},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==='file'},getSubmitData:function(){var a=this,b=null,c;if(!a.disabled&&a.submitValue){c=a.getSubmitValue();if(c!==null){b={};b[a.getName()]=c}}return b},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var a=this,b=a.inputEl?a.inputEl.getValue():Ext.valueFrom(a.rawValue,'');a.rawValue=b;return b},setRawValue:function(b){var a=this,c=a.rawValue;if(!a.transformRawValue.$nullFn){b=a.transformRawValue(b)}b=Ext.valueFrom(b,'');if(c===undefined||c!==b||a.valueContainsPlaceholder){a.rawValue=b;if(a.inputEl){a.bindChangeEvents(!1);a.inputEl.dom.value=b;a.bindChangeEvents(!0)}if(a.rendered&&a.reference){a.publishState('rawValue',b)}}return b},transformRawValue:Ext.identityFn,valueToRaw:function(a){return ''+Ext.valueFrom(a,'')},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var a=this,b=a.rawToValue(a.processRawValue(a.getRawValue()));a.value=b;return b},setValue:function(b){var a=this;a.setRawValue(a.valueToRaw(b));return a.mixins.field.setValue.call(a,b)},onBoxReady:function(){var a=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(a.setReadOnlyOnBoxReady){a.setReadOnly(a.readOnly)}},onDisable:function(){var a=this,b=a.inputEl;Ext.Component.prototype.onDisable.call(this);if(b){b.dom.disabled=!0;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=!0}}if(a.wasValid===!1){a.checkValidityChange(!0)}},onEnable:function(){var a=this,b=a.inputEl,d=a.preventMark,c;Ext.Component.prototype.onEnable.call(this);if(b){b.dom.disabled=!1}if(a.wasValid!==undefined){a.forceValidation=!0;a.preventMark=!a.hadErrorOnDisable;c=a.isValid();a.forceValidation=!1;a.preventMark=d;a.checkValidityChange(c)}delete a.hadErrorOnDisable},setReadOnly:function(b){var a=this,c=a.inputEl,d=a.readOnly;b=!!b;a[b?'addCls':'removeCls'](a.readOnlyCls);a.readOnly=b;if(c){c.dom.readOnly=b;a.ariaEl.dom.setAttribute('aria-readonly',b)}else {if(a.rendering){a.setReadOnlyOnBoxReady=!0}}if(b!==d){a.fireEvent('writeablechange',a,b)}},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent('specialkey',this,a)}},initEvents:function(){var a=this,d=a.inputEl,f=a.onFieldMutation,e=a.checkChangeEvents,g=e.length,c,b;if(d){a.mon(d,Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress',a.fireKey,a);for(c=0;c style="{triggerStyle}">','{[values.$trigger.renderBody(values)]}',''],statics:{weightComparator:function(a,b){return a.weight-b.weight}},constructor:function(c){var a=this,b;Ext.apply(a,c);if(a.compat4Mode){b=a.cls;a.focusCls=[a.focusCls,b+'-focus'];a.overCls=[a.overCls,b+'-over'];a.clickCls=[a.clickCls,b+'-click']}},afterFieldRender:function(){this.initEvents()},destroy:function(){var a=this;a.clickRepeater=a.el=Ext.destroy(a.clickRepeater,a.el);a.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=!0;if(a){a.hide()}},initEvents:function(){var a=this,b=a.isFieldEnabled,c=a.getStateEl(),d=a.el;c.addClsOnOver(a.overCls,b,a);c.addClsOnClick(a.clickCls,b,a);if(a.repeatClick){a.clickRepeater=new Ext.util.ClickRepeater(d,{preventDefault:!0,handler:a.onClick,listeners:{mousedown:a.onClickRepeaterMouseDown,scope:a},scope:a})}else {a.field.mon(d,{click:a.onClick,mousedown:a.onMouseDown,scope:a})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=!1;if(a.hidden||!c||!a.rendered||a.destroyed){b=!0}return !b},onClick:function(){var a=this,c=arguments,e=a.clickRepeater?c[1]:c[0],d=a.handler,b=a.field;if(d&&!b.readOnly&&a.isFieldEnabled()){Ext.callback(a.handler,a.scope,[b,a,e],0,b)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=='touch'&&!this.field.owns(Ext.Element.getActiveElement())){this.field.inputEl.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==='mousedown'){this.field.inputEl.focus()}a.preventDefault()},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var a=this,b=a.el=a.field.triggerWrap.selectNode('#'+a.domId,!1);b.setVisibilityMode(Ext.Element.DISPLAY);a.rendered=!0},renderBody:function(b){var a=this,c=a.bodyTpl;Ext.apply(b,a.getBodyRenderData());return c?Ext.XTemplate.getTpl(a,'bodyTpl').apply(b):''},renderTrigger:function(b){var a=this,d=a.width,c=a.hidden?'display:none;':'';if(d){c+='width:'+d}return Ext.XTemplate.getTpl(a,'renderTpl').apply({$trigger:a,fieldData:b,ui:b.ui,childElCls:b.childElCls,triggerId:a.domId=a.field.id+'-trigger-'+a.id,cls:a.cls,triggerStyle:c,extraCls:a.extraCls,baseCls:a.baseCls})},setHidden:function(a){if(a!==this.hidden){this[a?'hide':'show']()}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=!1;if(a){a.show()}}},1,0,0,0,['trigger.trigger'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.form.trigger,'Trigger'],0);Ext.cmd.derive('Ext.form.field.Text',Ext.form.field.Base,{alternateClassName:['Ext.form.TextField','Ext.form.Text'],config:{hideTrigger:!1,triggers:undefined},renderConfig:{editable:!0},growMin:30,growMax:800,growAppend:'W',allowBlank:!0,validateBlank:!1,allowOnlyWhitespace:!0,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:'The minimum length for this field is {0}',maxLengthText:'The maximum length for this field is {0}',blankText:'This field is required',regexText:'',emptyText:'',emptyCls:'x-form-empty-field',requiredCls:'x-form-required-field',valueContainsPlaceholder:!1,ariaRole:'textbox',repeatTriggerClick:!1,triggerWrapCls:'x-form-trigger-wrap',triggerWrapFocusCls:'x-form-trigger-wrap-focus',triggerWrapInvalidCls:'x-form-trigger-wrap-invalid',fieldBodyCls:'x-form-text-field-body',inputWrapCls:'x-form-text-wrap',inputWrapFocusCls:'x-form-text-wrap-focus',inputWrapInvalidCls:'x-form-text-wrap-invalid',growCls:'x-form-text-grow',needArrowKeys:!0,squashMouseUp:{mouseup:function(){},translate:!1,single:!0,preventDefault:!0},childEls:['triggerWrap','inputWrap'],preSubTpl:[''],initComponent:function(){var a=this,b=a.emptyCls;if(a.allowOnlyWhitespace===!1){a.allowBlank=!1}if(a.size){a.defaultBodyWidth=a.size*6.5+20}if(!a.onTrigger1Click){a.onTrigger1Click=a.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(a.readOnly){a.setReadOnly(a.readOnly)}a.fieldFocusCls=a.baseCls+'-focus';a.emptyUICls=b+' '+b+'-'+a.ui;a.addStateEvents('change')},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(a.selectOnFocus||a.emptyText){a.mon(b,'mousedown',a.onMouseDown,a)}if(a.maskRe||a.vtype&&a.disableKeyFilter!==!0&&(a.maskRe=Ext.form.field.VTypes[a.vtype+'Mask'])){a.mon(b,'keypress',a.filterKeys,a)}if(a.enableKeyEvents){a.mon(b,{scope:a,keyup:a.onKeyUp,keydown:a.onKeyDown,keypress:a.onKeyPress})}},isEqual:function(a,b){return this.isEqualAsString(a,b)},onChange:function(a,b){Ext.form.field.Base.prototype.onChange.apply(this,arguments);this.autoSize()},getSubTplData:function(h){var a=this,c=a.getRawValue(),g=a.emptyText&&c.length<1,b=a.maxLength,e,f,d;if(a.enforceMaxLength){if(b===Number.MAX_VALUE){b=undefined}}else {b=undefined}if(g){if(Ext.supports.Placeholder){e=a.emptyText}else {c=a.emptyText;a.valueContainsPlaceholder=!0}}f=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,h),{triggerWrapCls:a.triggerWrapCls,inputWrapCls:a.inputWrapCls,triggers:a.orderedTriggers,maxLength:b,readOnly:!a.editable||a.readOnly,placeholder:e,value:c,fieldCls:a.fieldCls+(g&&(e||c)?' '+a.emptyUICls:'')+(a.allowBlank?'':' '+a.requiredCls)});d=f.inputElAriaAttributes;if(d){d['aria-required']=!a.allowBlank}return f},onRender:function(){var a=this,b=a.getTriggers(),c=[],d,e;if(Ext.supports.FixedTableWidthBug){a.el._needsTableWidthFix=!0}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(b){this.invokeTriggers('onFieldRender');for(d in b){c.push(b[d].el)}e=a.triggerEl=a.triggerCell=new Ext.CompositeElement(c,!0)}a.inputCell=a.inputWrap},afterRender:function(){var a=this;a.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);a.invokeTriggers('afterFieldRender')},onMouseDown:function(){if(!this.hasFocus){Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(c){var a=this,j=a.getHideTrigger(),k=a.readOnly,f=a.orderedTriggers=[],i=a.repeatTriggerClick,e,b,h,g,d;if(!c){c={};if(a.triggerCls&&!a.trigger1Cls){a.trigger1Cls=a.triggerCls}for(d=1;g=a['trigger'+d+'Cls'];d++){c['trigger'+d]={cls:g,extraCls:'x-trigger-index-'+d,handler:'onTrigger'+d+'Click',compat4Mode:!0,scope:a}}}for(e in c){if(c.hasOwnProperty(e)){b=c[e];b.field=a;b.id=e;if(k&&b.hideOnReadOnly!==!1||j&&b.hidden!==!1){b.hidden=!0}if(i&&b.repeatClick!==!1){b.repeatClick=!0}h=c[e]=Ext.form.trigger.Trigger.create(b);f.push(h)}}Ext.Array.sort(f,Ext.form.trigger.Trigger.weightComparator);return c},invokeTriggers:function(d,e){var f=this,a=f.getTriggers(),c,b;if(a){for(c in a){if(a.hasOwnProperty(c)){b=a[c];b[d].apply(b,e||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateHideTrigger:function(a){this.invokeTriggers(a?'hide':'show')},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(a){var b=this,d=b.getTriggers(),f=b.getHideTrigger(),c,e;a=!!a;Ext.form.field.Base.prototype.setReadOnly.call(this,a);if(b.rendered){b.setReadOnlyAttr(a||!b.editable)}if(d){for(e in d){c=d[e];if(c.hideOnReadOnly===!0||c.hideOnReadOnly!==!1&&!f){c.setVisible(!a)}}}},setReadOnlyAttr:function(c){var b=this,a='readonly',d=b.inputEl.dom;if(c){d.setAttribute(a,a)}else {d.removeAttribute(a)}if(b.ariaRole){b.ariaEl.dom.setAttribute('aria-readonly',!!c)}},processRawValue:function(c){var e=this,a=e.stripCharsRe,d,b;if(a){if(!a.global){d='g';d+=a.ignoreCase?'i':'';d+=a.multiline?'m':'';a=new RegExp(a.source,d)}b=c.replace(a,'');if(b!==c){e.setRawValue(b);c=b}}return c},onDisable:function(){Ext.form.field.Base.prototype.onDisable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable='on'}},onEnable:function(){Ext.form.field.Base.prototype.onEnable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable=''}},onKeyDown:function(a){this.fireEvent('keydown',this,a)},onKeyUp:function(a){this.fireEvent('keyup',this,a)},onKeyPress:function(a){this.fireEvent('keypress',this,a)},reset:function(){Ext.form.field.Base.prototype.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){var a=this,b=a.emptyText,c;if(a.rendered&&b){c=a.getRawValue().length<1&&!a.hasFocus;if(Ext.supports.Placeholder){a.inputEl.dom.placeholder=b}else {if(c){a.setRawValue(b);a.valueContainsPlaceholder=!0}}if(c){a.inputEl.addCls(a.emptyUICls)}else {a.inputEl.removeCls(a.emptyUICls)}a.autoSize()}},getEmptyText:function(){return this.emptyText},setEmptyText:function(e){var a=this,c=a.inputEl,b=c&&c.dom,d=e||'';if(e){a.emptyText=d;a.applyEmptyText()}else {if(b){if(Ext.supports.Placeholder){b.removeAttribute('placeholder')}else {if(b.value!==a.getRawValue()){b.value='';c.removeCls(a.emptyUICls)}}a.valueContainsPlaceholder=!1}}a.emptyText=d;return a},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var a=this.inputEl;if(a){a.dom.unselectable='on'}}},toggleInvalidCls:function(b){var a=b?'addCls':'removeCls';Ext.form.field.Base.prototype.toggleInvalidCls.call(this);this.triggerWrap[a](this.triggerWrapInvalidCls);this.inputWrap[a](this.inputWrapInvalidCls)},beforeFocus:function(){var a=this,b=a.inputEl,c=a.emptyText,d;Ext.form.field.Base.prototype.beforeFocus.apply(this,arguments);if(c&&!Ext.supports.Placeholder&&(b.dom.value===a.emptyText&&a.valueContainsPlaceholder)){a.setRawValue('');d=!0;b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}else {if(Ext.supports.Placeholder){b.removeCls(a.emptyUICls)}}},onFocus:function(b){var a=this;Ext.form.field.Base.prototype.onFocus.apply(this,arguments);if(a.selectOnFocus){a.inputEl.dom.select()}if(a.emptyText){a.autoSize()}a.addCls(a.fieldFocusCls);a.triggerWrap.addCls(a.triggerWrapFocusCls);a.inputWrap.addCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldFocus',[b])},onBlur:function(b){var a=this;Ext.form.field.Base.prototype.onBlur.apply(this,arguments);a.removeCls(a.fieldFocusCls);a.triggerWrap.removeCls(a.triggerWrapFocusCls);a.inputWrap.removeCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldBlur',[b])},completeEdit:function(a){Ext.form.field.Base.prototype.completeEdit.call(this,a);this.applyEmptyText()},filterKeys:function(a){if(a.ctrlKey&&!a.altKey||a.isSpecialKey()){return}var b=String.fromCharCode(a.getCharCode());if(!this.maskRe.test(b)){a.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),'value')},applyState:function(a){Ext.form.field.Base.prototype.applyState.apply(this,arguments);if(a.hasOwnProperty('value')){this.setValue(a.value)}},getRawValue:function(){var b=this,a=Ext.form.field.Base.prototype.getRawValue.call(this);if(a===b.emptyText&&b.valueContainsPlaceholder){a=''}return a},setValue:function(c){var a=this,b=a.inputEl;if(b&&a.emptyText&&!Ext.isEmpty(c)){b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}Ext.form.field.Base.prototype.setValue.apply(this,arguments);a.applyEmptyText();return a},getErrors:function(b){b=arguments.length?b==null?'':b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Base.prototype.getErrors.call(this,b),f=a.validator,d=a.vtype,j=Ext.form.field.VTypes,k=a.regex,i=Ext.String.format,e,h,g;if(Ext.isFunction(f)){e=f.call(a,b);if(e!==!0){c.push(e)}}h=a.allowOnlyWhitespace?b:Ext.String.trim(b);if(h.length<1||b===a.emptyText&&a.valueContainsPlaceholder){if(!a.allowBlank){c.push(a.blankText)}if(!a.validateBlank){return c}g=!0}if(!g&&b.lengtha.maxLength){c.push(i(a.maxLengthText,a.maxLength))}if(d){if(!j[d](b,a)){c.push(a.vtypeText||j[d+'Text'])}}if(k&&!k.test(b)){c.push(a.regexText||a.invalidText)}return c},selectText:function(a,b){var f=this,g=f.getRawValue(),c=g.length,e=f.inputEl.dom,d;if(c>0){a=a===undefined?0:Math.min(a,c);b=b===undefined?c:Math.min(b,c);if(e.setSelectionRange){e.setSelectionRange(a,b)}else {if(e.createTextRange){d=e.createTextRange();d.moveStart('character',a);d.moveEnd('character',b-c);d.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var a=this,d,f,c,g,b,e;if(a.grow&&a.rendered&&a.getSizeModel().width.auto){g=a.inputEl;d=a.getTriggers();c=0;e=Ext.util.Format.htmlEncode(a.getGrowWidth()||(a.hasFocus?'':a.emptyText)||'');e+=a.growAppend;for(f in d){c+=d[f].el.getWidth()}b=g.getTextWidth(e)+c+a.inputWrap.getBorderWidth('lr')+a.triggerWrap.getBorderWidth('lr');b=Math.min(Math.max(b,a.growMin),a.growMax);a.bodyEl.setWidth(b);a.updateLayout();a.fireEvent('autosize',a,b)}},onDestroy:function(){var a=this;a.invokeTriggers('destroy');Ext.destroy(a.triggerRepeater);Ext.form.field.Base.prototype.onDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return 'textfield'}},deprecated:{5:{methods:{getTriggerWidth:function(){var a=this.getTriggers(),c=0,b;if(a&&this.rendered){for(b in a){if(a.hasOwnProperty(b)){c+=a[b].el.getWidth()}}}return c}}}}},0,['textfield'],['component','box','field','textfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0},['widget.textfield'],0,[Ext.form.field,'Text',Ext.form,'TextField',Ext.form,'Text'],0);Ext.cmd.derive('Ext.form.field.TextArea',Ext.form.field.Text,{alternateClassName:'Ext.form.TextArea',fieldSubTpl:['',{disableFormats:!0}],growMin:60,growMax:1000,growAppend:'\n-',enterIsSpecial:!1,preventScrollbars:!1,returnRe:/\r/g,inputCls:'x-form-textarea',extraFieldBodyCls:'x-form-textarea-body',ariaAttributes:{'aria-multiline':!0},getSubTplData:function(d){var a=this,c=a.getFieldStyle(),b=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(a.grow){if(a.preventScrollbars){b.fieldStyle=(c||'')+';overflow:hidden;height:'+a.growMin+'px'}}return b},afterRender:function(){var a=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);a.needsMaxCheck=a.enforceMaxLength&&a.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(a.needsMaxCheck){a.inputEl.on('paste',a.onPaste,a)}},transformRawValue:function(a){return this.stripReturns(a)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(a){a=this.stripReturns(a);return Ext.form.field.Text.prototype.valueToRaw.call(this,a)},stripReturns:function(a){if(a&&typeof a==='string'){a=a.replace(this.returnRe,'')}return a},onPaste:function(){var a=this;if(!a.pasteTask){a.pasteTask=new Ext.util.DelayedTask(a.pasteCheck,a)}a.pasteTask.delay(1)},pasteCheck:function(){var b=this,a=b.getValue(),c=b.maxLength;if(a.length>c){a=a.substr(0,c);b.setValue(a)}},fireKey:function(a){var b=this,c=a.getKey(),d;if(a.isSpecialKey()&&(b.enterIsSpecial||(c!==a.ENTER||a.hasModifier()))){b.fireEvent('specialkey',b,a)}if(b.needsMaxCheck&&c!==a.BACKSPACE&&c!==a.DELETE&&!a.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(a,c)){d=b.getValue();if(d.length>=b.maxLength){a.stopEvent()}}},isCutCopyPasteSelectAll:function(a,b){if(a.ctrlKey){return b===a.A||b===a.C||b===a.V||b===a.X}return !1},autoSize:function(){var a=this,b,c,e,d;if(a.grow&&a.rendered&&a.getSizeModel().height.auto){b=a.inputEl;e=b.getWidth(!0);d=Ext.util.Format.htmlEncode(b.dom.value)||' ';d+=a.growAppend;d=d.replace(/\n/g,'
    ');c=Ext.util.TextMetrics.measure(b,d,e).height+b.getPadding('tb')+a.inputWrap.getBorderWidth('tb')+a.triggerWrap.getBorderWidth('tb');c=Math.min(Math.max(c,a.growMin),a.growMax);a.bodyEl.setHeight(c);a.updateLayout();a.fireEvent('autosize',a,c)}},beforeDestroy:function(){var a=this.pasteTask;if(a){a.cancel();this.pasteTask=null}Ext.form.field.Text.prototype.beforeDestroy.call(this)}},0,['textarea','textareafield'],['component','box','field','textfield','textareafield','textarea'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'textareafield':!0,'textarea':!0},['widget.textarea','widget.textareafield'],0,[Ext.form.field,'TextArea',Ext.form,'TextArea'],0);Ext.cmd.derive('Ext.window.MessageBox',Ext.window.Window,{OK:1,YES:2,NO:4,CANCEL:8,OKCANCEL:9,YESNO:6,YESNOCANCEL:14,INFO:'x-message-box-info',WARNING:'x-message-box-warning',QUESTION:'x-message-box-question',ERROR:'x-message-box-error',hideMode:'offsets',closeAction:'hide',resizable:!1,scrollable:!0,title:' ',defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:!0,cls:['x-message-box','x-hidden-offsets'],layout:{type:'vbox',align:'stretch'},shrinkWrapDock:!0,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:'OK',yes:'Yes',no:'No',cancel:'Cancel'},buttonIds:['ok','yes','no','cancel'],titleText:{confirm:'Confirm',prompt:'Prompt',wait:'Loading...',alert:'Attention'},baseIconCls:'x-message-box-icon',ariaRole:'alertdialog',makeButton:function(b){var a=this.buttonIds[b];return new Ext.button.Button({handler:this.btnCallback,itemId:a,scope:this,text:this.buttonText[a],minWidth:75})},btnCallback:function(e,b){var a=this,d,c;if(b&&b.type==='keydown'&&!b.isSpecialKey()){b.getTarget(null,null,!0).on({keyup:function(c){a.btnCallback(e,c)},single:!0});return}if(a.cfg.prompt||a.cfg.multiline){if(a.cfg.multiline){c=a.textArea}else {c=a.textField}d=c.getValue();c.reset()}a.hide();a.userCallback(e.itemId,d,a.cfg)},hide:function(){var a=this,b=a.cfg?a.cfg.cls:'';a.progressBar.reset();if(b){a.removeCls(b)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(b){var a=this;Ext.window.Window.prototype.constructor.apply(this,arguments);a.minWidth=a.defaultMinWidth=a.minWidth||a.defaultMinWidth;a.maxWidth=a.defaultMaxWidth=a.maxWidth||a.defaultMaxWidth;a.minHeight=a.defaultMinHeight=a.minHeight||a.defaultMinHeight;a.maxHeight=a.defaultMaxHeight=a.maxHeight||a.defaultMaxHeight},initComponent:function(e){var a=this,b=a.id,d,c;a.title=a.title||' ';a.iconCls=a.iconCls||'';a.topContainer=new Ext.container.Container({layout:'hbox',padding:10,style:{overflow:'hidden'},items:[a.iconComponent=new Ext.Component({cls:a.baseIconCls}),a.promptContainer=new Ext.container.Container({flex:1,layout:{type:'vbox',align:'stretch'},items:[a.msg=new Ext.Component({id:b+'-msg',cls:a.baseCls+'-text'}),a.textField=new Ext.form.field.Text({id:b+'-textfield',enableKeyEvents:!0,listeners:{keydown:a.onPromptKey,scope:a}}),a.textArea=new Ext.form.field.TextArea({id:b+'-textarea',height:75})]})]});a.progressBar=new Ext.ProgressBar({id:b+'-progressbar',margin:'0 10 10 10'});a.items=[a.topContainer,a.progressBar];a.msgButtons=[];for(d=0;d<4;d++){c=a.makeButton(d);a.msgButtons[c.itemId]=c;a.msgButtons.push(c)}a.bottomTb=new Ext.toolbar.Toolbar({id:b+'-toolbar',ui:'footer',dock:'bottom',layout:{pack:'center'},items:[a.msgButtons[0],a.msgButtons[1],a.msgButtons[2],a.msgButtons[3]]});a.dockedItems=[a.bottomTb];a.on('close',a.onClose,a);Ext.window.Window.prototype.initComponent.call(this)},onClose:function(){var a=this.header.child('[type=close]');if(a){a.itemId='cancel';this.btnCallback(a);delete a.itemId}},onPromptKey:function(c,b){var a=this;if(b.keyCode===b.RETURN||b.keyCode===10){if(a.msgButtons.ok.isVisible()){a.msgButtons.ok.handler.call(a,a.msgButtons.ok)}else {if(a.msgButtons.yes.isVisible()){a.msgButtons.yes.handler.call(a,a.msgButtons.yes)}}}},reconfigure:function(b){var a=this,j=0,q=!0,t=a.buttonText,g=a.resizer,c=a.header,r=c&&!c.isHeader,s=b&&(b.message||b.msg),i,n,m,e,d,f,o,k,l,h,p;a.updateButtonText();a.cfg=b=b||{};h=b.wait;if(b.width){n=b.width}if(b.height){m=b.height}a.minWidth=b.minWidth||a.defaultMinWidth;a.maxWidth=b.maxWidth||a.defaultMaxWidth;a.minHeight=b.minHeight||a.defaultMinHeight;a.maxHeight=b.maxHeight||a.defaultMaxHeight;if(g){i=g.resizeTracker;g.minWidth=i.minWidth=a.minWidth;g.maxWidth=i.maxWidth=a.maxWidth;g.minHeight=i.minHeight=a.minHeight;g.maxHeight=i.maxHeight=a.maxHeight}delete a.defaultFocus;if(b.defaultFocus){a.defaultFocus=b.defaultFocus}a.animateTarget=b.animateTarget||undefined;a.modal=b.modal!==!1;a.setTitle(b.title||r&&c.title||a.title);a.setIconCls(b.iconCls||r&&c.iconCls||a.iconCls);if(Ext.isObject(b.buttons)){a.buttonText=b.buttons;j=0}else {a.buttonText=b.buttonText||a.buttonText;j=Ext.isNumber(b.buttons)?b.buttons:0}j=j|a.updateButtonText();a.buttonText=t;Ext.suspendLayouts();a.width=a.height=null;if(n||m){if(n){a.setWidth(n)}if(m){a.setHeight(m)}}a.hidden=!1;if(!a.rendered){a.render(Ext.getBody())}a.closable=b.closable!==!1&&!h;c=a.header;if(c){p=c.child('[type=close]');if(p){p.setVisible(a.closable)}if(!b.title&&!a.closable&&!b.iconCls){c.hide()}else {c.show()}}a.liveDrag=!b.proxyDrag;a.userCallback=Ext.Function.bindCallback(b.callback||b.fn||Ext.emptyFn,b.scope||Ext.global);a.setIcon(b.icon);o=a.msg;if(s){o.setHtml(s);o.show()}else {o.hide()}d=a.textArea;f=a.textField;if(b.prompt||b.multiline){a.multiline=b.multiline;if(b.multiline){d.setValue(b.value);d.setHeight(b.defaultTextHeight||a.defaultTextHeight);d.show();f.hide();a.defaultFocus=d}else {f.setValue(b.value);d.hide();f.show();a.defaultFocus=f}}else {d.hide();f.hide()}k=a.progressBar;if(b.progress||h){k.show();a.updateProgress(0,b.progressText);if(h){k.wait(h===!0?b.waitConfig:h)}}else {k.hide()}l=a.msgButtons;for(e=0;e<4;e++){if(j&Math.pow(2,e)){if(!a.defaultFocus){a.defaultFocus=l[e]}l[e].show();q=!1}else {l[e].hide()}}if(q){a.bottomTb.hide()}else {a.bottomTb.show()}Ext.resumeLayouts(!0)},updateButtonText:function(){var b=this,c=b.buttonText,e=0,a,d;for(a in c){if(c.hasOwnProperty(a)){d=b.msgButtons[a];if(d){if(b.cfg&&b.cfg.buttonText){e=e|Math.pow(2,Ext.Array.indexOf(b.buttonIds,a))}if(d.text!==c[a]){d.setText(c[a])}}}}return e},show:function(b){var a=this,c;b=b||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){a.show(b)},single:!0});return a}a.reconfigure(b);if(b.cls){a.addCls(b.cls)}c=a.query('textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])');a.preventFocusOnActivate=!c.length;a.hidden=!0;Ext.window.Window.prototype.show.call(this);return a},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(e,d,c){var b=this,a=b.iconComponent,f=b.messageIconCls;if(f){a.removeCls(f)}if(e){a.show();if(d||c){a.setSize(d||a.getWidth(),c||a.getHeight())}a.addCls('x-dlg-icon');a.addCls(b.messageIconCls=e)}else {a.removeCls('x-dlg-icon');a.hide()}return b},updateProgress:function(c,b,a){this.progressBar.updateProgress(c,b);if(a){this.updateText(a)}return this},onEsc:function(){if(this.closable!==!1){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,b,d,c){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:b,buttons:this.YESNO,callback:d,scope:c}}return this.show(a)},prompt:function(a,c,f,d,b,e){if(Ext.isString(a)){a={prompt:!0,title:a,minWidth:this.minPromptWidth,message:c,buttons:this.OKCANCEL,callback:f,scope:d,multiline:b,value:e}}return this.show(a)},wait:function(a,c,b){if(Ext.isString(a)){a={title:c,message:a,closable:!1,wait:!0,modal:!0,minWidth:this.minProgressWidth,waitConfig:b}}return this.show(a)},alert:function(a,b,d,c){if(Ext.isString(a)){a={title:a,message:b,buttons:this.OK,fn:d,scope:c,minWidth:this.minWidth}}return this.show(a)},progress:function(a,c,b){if(Ext.isString(a)){a={title:a,message:c,progress:!0,progressText:b}}return this.show(a)}},1,['messagebox'],['component','box','container','panel','window','messagebox'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'messagebox':!0},['widget.messagebox'],0,[Ext.window,'MessageBox'],function(a){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new a()})});Ext.cmd.derive('Ext.form.Basic',Ext.util.Observable,{alternateClassName:'Ext.form.BasicForm',taskDelay:10,constructor:function(c,d){var a=this,b;a.owner=c;a.fieldMonitors={validitychange:a.checkValidityDelay,enable:a.checkValidityDelay,disable:a.checkValidityDelay,dirtychange:a.checkDirtyDelay,errorchange:a.checkErrorDelay,scope:a};a.checkValidityTask=new Ext.util.DelayedTask(a.checkValidity,a);a.checkDirtyTask=new Ext.util.DelayedTask(a.checkDirty,a);a.checkErrorTask=new Ext.util.DelayedTask(a.checkError,a);a.monitor=new Ext.container.Monitor({selector:'[isFormField]:not([excludeForm])',scope:a,addHandler:a.onFieldAdd,removeHandler:a.onFieldRemove,invalidateHandler:a.onMonitorInvalidate});a.monitor.bind(c);Ext.apply(a,d);if(Ext.isString(a.paramOrder)){a.paramOrder=a.paramOrder.split(/[\s,|]/)}b=a.reader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.reader=Ext.createByAlias('reader.'+b.type,b)}b=a.errorReader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.errorReader=Ext.createByAlias('reader.'+b.type,b)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=!0;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:!1,waitTitle:'Please Wait...',trackResetOnLoad:!1,wasDirty:!1,destroy:function(){var a=this,b=a.monitor;if(b){b.unbind();a.monitor=null}a.clearListeners();a.checkValidityTask.cancel();a.checkDirtyTask.cancel();a.checkErrorTask.cancel();a.checkValidityTask=a.checkDirtyTask=a.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},onFieldAdd:function(a){a.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(a){a.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var a=this._boundItems;if(!a||a.getCount()===0){a=this._boundItems=new Ext.util.MixedCollection();a.addAll(this.owner.query('[formBind]'))}return a},hasInvalidField:function(){return !!this.getFields().findBy(function(a){var c=a.preventMark,b;a.preventMark=!0;b=a.isValid();a.preventMark=c;return !b})},isValid:function(){var b=this,a;Ext.suspendLayouts();a=b.getFields().filterBy(function(a){return !a.validate()});Ext.resumeLayouts(!0);return a.length<1},checkValidity:function(){var a=this,b;if(a.destroyed){return}b=!a.hasInvalidField();if(b!==a.wasValid){a.onValidityChange(b);a.fireEvent('validitychange',a,b);a.wasValid=b}},checkValidityDelay:function(){var a=this.taskDelay;if(a){this.checkValidityTask.delay(a)}else {this.checkValidity()}},checkError:function(){this.fireEvent('errorchange',this)},checkErrorDelay:function(){var a=this.taskDelay;if(a){this.checkErrorTask.delay(a)}else {this.checkError()}},onValidityChange:function(e){var d=this.getBoundItems(),b,a,f,c;if(d){b=d.items;f=b.length;for(a=0;a',' {$}="{.}"','',' role="presentation"','','>','{%this.renderContainer(out,values)%}',''],initComponent:function(){var a=this;a.initLabelable();a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.initMonitor()},onAdd:function(b){var a=this;if(b.isLabelable&&Ext.isGecko&&Ext.firefoxVersion<37&&a.layout.type==='absolute'&&!a.hideLabel&&a.labelAlign!=='top'){b.x+=a.labelWidth+a.labelPad}Ext.container.Container.prototype.onAdd.apply(this,arguments);if(b.isLabelable&&a.combineLabels){b.oldHideLabel=b.hideLabel;b.hideLabel=!0}a.updateLabel()},onRemove:function(a,c){var b=this;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!c){if(a.isLabelable&&b.combineLabels){a.hideLabel=a.oldHideLabel}b.updateLabel()}},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.containerElCls=b.containerElCls;a=Ext.applyIf(a,b.getLabelableRenderData());a.tipAnchorTarget=b.id+'-containerEl';return a},getFieldLabel:function(){var a=this.fieldLabel||'';if(!a&&this.combineLabels){a=Ext.Array.map(this.query('[isFieldLabelable]'),function(a){return a.getFieldLabel()}).join(this.labelConnector)}return a},getSubTplData:function(){var a=this.initRenderData();Ext.apply(a,this.subTplData);return a},getSubTplMarkup:function(d){var b=this,a=b.getTpl('fieldSubTpl'),c;if(!a.renderContent){b.setupRenderTpl(a)}c=a.apply(b.getSubTplData(d));return c},updateLabel:function(){var a=this,b=a.labelEl;if(b){a.setFieldLabel(a.getFieldLabel())}},onFieldErrorChange:function(){if(this.combineErrors){var a=this,d=a.getActiveError(),c=Ext.Array.filter(a.query('[isFormField]'),function(a){return a.hasActiveError()}),b=a.getCombinedErrors(c);if(b){a.setActiveErrors(b)}else {a.unsetActiveError()}if(d!==a.getActiveError()){a.updateLayout()}}},getCombinedErrors:function(f){var g=[],b,j=f.length,d,c,a,i,h,e;for(b=0;b','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','',' tabindex="{tabIdx}"',' disabled="disabled"',' style="{fieldStyle}"',' class="{checkboxCls} {clipCls}" autocomplete="off" hidefocus="true" ',' {$}="{.}"','/>','','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','','',{disableFormats:!0,compiled:!0}],publishes:{checked:1},subTplInsertions:['beforeBoxLabelTpl','afterBoxLabelTpl','beforeBoxLabelTextTpl','afterBoxLabelTextTpl','boxLabelAttrTpl','inputAttrTpl'],isCheckbox:!0,focusCls:'form-checkbox-focus',fieldBodyCls:'x-form-cb-wrap',checked:!1,checkedCls:'x-form-cb-checked',boxLabelCls:'x-form-cb-label',boxLabelAlign:'after',afterLabelCls:'x-form-cb-after',wrapInnerCls:'x-form-cb-wrap-inner',noBoxLabelCls:'x-form-cb-no-box-label',inputValue:'on',checkChangeEvents:[],inputType:'checkbox',isTextInput:!1,ariaRole:'checkbox',onRe:/^on$/i,inputCls:'x-form-cb',_checkboxCls:'x-form-cb-input',_clipCls:'x-hidden-clip',initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);a.getManager().add(a)},initDefaultName:Ext.emptyFn,initValue:function(){var a=this,b=!!a.checked;a.originalValue=a.lastValue=b;a.setValue(b)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}return Ext.form.field.Base.prototype.getElConfig.call(this)},getSubTplData:function(g){var a=this,f=a.boxLabel,e=a.boxLabelAlign,d=e==='before',c,b;c=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,g),{clipCls:a._clipCls,checkboxCls:a._checkboxCls,disabled:a.readOnly||a.disabled,wrapInnerCls:a.wrapInnerCls,boxLabel:f,boxLabelCls:a.boxLabelCls,boxLabelAlign:e,labelAlignedBefore:d,afterLabelCls:d?a.afterLabelCls:'',noBoxLabelCls:!f?a.noBoxLabelCls:'',inputName:a.name||a.id});b=c.inputElAriaAttributes;if(b){b['aria-checked']=!!a.checked;b['aria-labelledby']=a.id+'-boxLabelEl'}return c},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.inputEl.on({click:'onBoxClick',scope:a,translate:!1});a.displayEl.on({click:'onBoxClick',mousedown:'_onDisplayElMouseDown',scope:a})},setBoxLabel:function(b){var a=this;a.boxLabel=b;if(a.rendered){a.boxLabelEl.setHtml(b);a.boxLabelEl[b?'removeCls':'addCls'](a.noBoxLabelCls);a.updateLayout()}},onBoxClick:function(){var a=this;if(!a.disabled&&!a.readOnly){a.setValue(!a.checked)}},getRawValue:function(){return this.checked},getValue:function(){return this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.checked?this.inputValue:b},isChecked:function(a,b){return a===!0||a==='true'||a==='1'||a===1||((Ext.isString(a)||Ext.isNumber(a))&&b?a==b:this.onRe.test(a))},setRawValue:function(e){var a=this,d=a.inputEl,c=a.displayEl,b=a.isChecked(e,a.inputValue);if(d){a[b?'addCls':'removeCls'](a.checkedCls);if(a.ariaRole){a.ariaEl.dom.setAttribute('aria-checked',b)}}if(Ext.isIE8&&c&&b!==a.lastValue){c.repaint()}a.checked=a.rawValue=b;if(!a.duringSetValue){a.lastValue=b}return b},setValue:function(e){var a=this,c,b,f,d;if(Ext.isArray(e)){c=a.getManager().getByName(a.name,a.getFormId()).items;f=c.length;for(b=0;b style="{bodyStyle}">','{%this.renderContainer(out,values);%}',''],stateEvents:['collapse','expand'],maskOnDisable:!1,beforeDestroy:function(){var b=this,a=b.legend;if(a){delete a.ownerCt;a.destroy();b.legend=null}Ext.container.Container.prototype.beforeDestroy.call(this)},initComponent:function(){var a=this,b=a.baseCls;if(a.ariaRole&&!a.ariaLabel){a.ariaLabel=Ext.String.formatEncode(a.descriptionText,a.title||'')}a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!a.collapsed;a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.layout.managePadding=a.layout.manageOverflow=!1;if(a.collapsed){a.addCls(b+'-collapsed');a.collapse()}if(a.title||a.checkboxToggle||a.collapsible){a.addTitleClasses();a.legend=a.createLegendCt()}a.initMonitor()},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.bodyTargetCls=b.bodyTargetCls;b.protoBody.writeTo(a);delete b.protoBody;return a},getState:function(){var a=Ext.container.Container.prototype.getState.call(this);a=this.addPropertyToState(a,'collapsed');return a},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn,collapsedHorizontal:function(){return !0},collapsedVertical:function(){return !0},createLegendCt:function(){var a=this,c=[],d={baseCls:a.baseCls+'-header',layout:'container',ui:a.ui,id:a.id+'-legend',autoEl:'legend',ariaRole:null,items:c,ownerCt:a,shrinkWrap:!0,ownerLayout:a.componentLayout},b;if(a.checkboxToggle){c.push(a.createCheckboxCmp())}else {if(a.collapsible){c.push(a.createToggleCmp())}}c.push(a.createTitleCmp());b=new Ext.container.Container(d);b.collapseImmune=!0;b.getInherited().collapseImmune=!0;return b},createTitleCmp:function(){var a=this,b={html:a.title,ui:a.ui,cls:a.baseCls+'-header-text',id:a.id+'-legendTitle',ariaRole:'presentation'};if(a.collapsible&&a.toggleOnTitleClick){b.listeners={click:{element:'el',scope:a,fn:a.toggle}};b.cls+=' '+a.baseCls+'-header-text-collapsible'}a.titleCmp=new Ext.Component(b);return a.titleCmp},createCheckboxCmp:function(){var a=this,d='-checkbox',b=a.baseCls+'-header'+d,c;b+=' '+b+'-'+a.ui;a.checkboxCmp=c=new Ext.form.field.Checkbox({hideEmptyLabel:!0,name:a.checkboxName||a.id+d,cls:b,id:a.id+'-legendChk',ui:a.checkboxUI,checked:!a.collapsed,msgTarget:'none',listeners:{change:a.onCheckChange,scope:a},ariaLabel:a.expandText});return c},createToggleCmp:function(){var a=this,b;a.toggleCmp=b=new Ext.panel.Tool({cacheHeight:!1,cls:a.baseCls+'-header-tool-'+a.ui,type:'toggle',handler:a.toggle,id:a.id+'-legendToggle',scope:a,ariaRole:'checkbox',ariaLabel:a.expandText,ariaRenderAttributes:{'aria-checked':!a.collapsed}});return b},doRenderLegend:function(d,c){var e=c.$comp,a=e.legend,b;if(a){a.ownerLayout.configureItem(a);b=a.getRenderTree();Ext.DomHelper.generateMarkup(b,d)}},getCollapsed:function(){return this.collapsed?'top':!1},getCollapsedDockedItems:function(){var a=this.legend;return a?[a]:[]},setTitle:function(c){var a=this,b=a.legend;a.title=c;a.ariaLabel=Ext.String.formatEncode(a.descriptionText,c||'');if(a.rendered){if(!b){a.legend=b=a.createLegendCt();a.addTitleClasses();b.ownerLayout.configureItem(b);b.render(a.el,0)}a.titleCmp.update(c);a.ariaEl.dom.setAttribute('aria-label',a.ariaLabel)}else {if(b){a.titleCmp.update(c)}else {a.addTitleClasses();a.legend=a.createLegendCt()}}return a},addTitleClasses:function(){var a=this,c=a.title,b=a.baseCls;if(c){a.addCls(b+'-with-title')}if(c||a.checkboxToggle||a.collapsible){a.addCls(b+'-with-legend')}},expand:function(){return this.setExpanded(!0)},collapse:function(){return this.setExpanded(!1)},setExpanded:function(b){var a=this,d=a.checkboxCmp,c=a.toggleCmp,e=b?'expand':'collapse';if(!a.rendered||a.fireEvent('before'+e,a)!==!1){b=!!b;if(d){d.setValue(b)}else {if(c&&c.ariaEl.dom){c.ariaEl.dom.setAttribute('aria-checked',b)}}if(b){a.removeCls(a.baseCls+'-collapsed')}else {a.addCls(a.baseCls+'-collapsed')}if(a.ariaEl.dom){a.ariaEl.dom.setAttribute('aria-expanded',!!b)}a.collapsed=!b;if(b){delete a.getInherited().collapsed}else {a.getInherited().collapsed=!0}if(a.rendered){a.updateLayout({isRoot:!1});a.fireEvent(e,a)}}return a},getRefItems:function(c){var a=Ext.container.Container.prototype.getRefItems.apply(this,arguments),b=this.legend;if(b){a.unshift(b);if(c){a.unshift.apply(a,b.getRefItems(!0))}}return a},toggle:function(){this.setExpanded(!!this.collapsed)},privates:{applyTargetCls:function(a){this.bodyTargetCls=a},finishRender:function(){var a=this.legend;Ext.container.Container.prototype.finishRender.call(this);if(a){a.finishRender()}},getProtoBody:function(){var b=this,a=b.protoBody;if(!a){b.protoBody=a=new Ext.util.ProtoElement({styleProp:'bodyStyle',styleIsText:!0})}return a},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){return this.body||this.frameBody||this.el},initPadding:function(d){var b=this,e=b.getProtoBody(),a=b.padding,c;if(a!==undefined){if(Ext.isIE8){a=b.parseBox(a);c=Ext.Element.parseBox(0);c.top=a.top;a.top=0;e.setStyle('padding',b.unitizeBox(c))}d.setStyle('padding',b.unitizeBox(a))}},onCheckChange:function(b,a){this.setExpanded(a)},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderLegend=this.doRenderLegend}}},0,['fieldset'],['component','box','container','fieldset'],{'component':!0,'box':!0,'container':!0,'fieldset':!0},['widget.fieldset'],[['fieldAncestor',Ext.form.FieldAncestor]],[Ext.form,'FieldSet'],0);Ext.cmd.derive('Ext.form.Label',Ext.Component,{autoEl:'label',maskOnDisable:!1,getElConfig:function(){var a=this;a.html=a.text?Ext.util.Format.htmlEncode(a.text):a.html||'';return Ext.apply(Ext.Component.prototype.getElConfig.call(this),{htmlFor:a.forId||''})},setText:function(c,b){var a=this;b=b!==!1;if(b){a.text=c;delete a.html}else {a.html=c;delete a.text}if(a.rendered){a.el.dom.innerHTML=b!==!1?Ext.util.Format.htmlEncode(c):c;a.updateLayout()}return a}},0,['label'],['component','box','label'],{'component':!0,'box':!0,'label':!0},['widget.label'],0,[Ext.form,'Label'],0);Ext.cmd.derive('Ext.form.Panel',Ext.panel.Panel,{alternateClassName:['Ext.FormPanel','Ext.form.FormPanel'],layout:'anchor',bodyAriaRole:'form',basicFormConfigs:['api','baseParams','errorReader','jsonSubmit','method','paramOrder','paramsAsHash','reader','standardSubmit','timeout','trackResetOnLoad','url','waitMsgTarget','waitTitle'],initComponent:function(){var a=this;if(a.frame){a.border=!1}a.initFieldAncestor();Ext.panel.Panel.prototype.initComponent.call(this);a.relayEvents(a.form,['beforeaction','actionfailed','actioncomplete','validitychange','dirtychange']);if(a.pollForChanges){a.startPolling(a.pollInterval||500)}},initItems:function(){Ext.panel.Panel.prototype.initItems.call(this);this.initMonitor();this.form=this.createForm()},afterFirstLayout:function(){Ext.panel.Panel.prototype.afterFirstLayout.apply(this,arguments);this.form.initialize()},createForm:function(){var d={},c=this.basicFormConfigs,e=c.length,b=0,a;for(;b150){delete a.lastDownArrow}if(!a.isExpanded){b.stopEvent();a.onTriggerClick();a.lastDownArrow=b.time}else {if(!b.isStopped&&b.time-a.lastDownArrow<150){delete a.lastDownArrow}}},expand:function(){var a=this,d,c,b,e;if(a.rendered&&!a.isExpanded&&!a.destroyed){d=a.bodyEl;b=a.getPicker();e=Ext.getDoc();b.setMaxHeight(b.initialConfig.maxHeight);if(a.matchFieldWidth){b.setWidth(a.bodyEl.getWidth())}b.show();a.isExpanded=!0;a.alignPicker();d.addCls(a.openCls);if(a.ariaRole){c=a.ariaEl.dom;c.setAttribute('aria-owns',b.listEl?b.listEl.id:b.el.id);c.setAttribute('aria-expanded',!0)}a.touchListeners=e.on({translate:!1,touchstart:a.collapseIf,scope:a,delegated:!1,destroyable:!0});a.scrollListeners=Ext.on({scroll:a.onGlobalScroll,scope:a,destroyable:!0});Ext.on('resize',a.alignPicker,a,{buffer:1});a.fireEvent('expand',a);a.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){if(!this.destroyed){var a=this.getPicker();if(a.isVisible()&&a.isFloating()){this.doAlign()}}},doAlign:function(){var a=this,c=a.picker,d='-above',b;a.picker.alignTo(a.triggerWrap,a.pickerAlign,a.pickerOffset);b=c.el.getY()=g){a.deselectRange(j,g-1)}else {if(h!==c){a.selectRange(h,c,f)}}}a.lastSelected=c}else {if(e){if(!f){a.doSelect(c,!1)}}else {a.selectWithEvent(c,b)}}}};break;case 'SIMPLE':if(e===b.A&&f){a.selected.beginUpdate();a.selectRange(0,a.store.getCount()-1);a.selected.endUpdate()}else {if(k){a.doDeselect(c)}else {a.doSelect(c,!0)}};break;case 'SINGLE':if(!f){if(i){a.doSelect(c,!1)}else {if(m||!e){a.selectWithEvent(c,b)}}};}if(!b.shiftKey&&!a.destroyed&&a.isSelected(c)){a.selectionStart=c;a.selectionStartIdx=g}},selectRange:function(d,f,m){var b=this,i=b.store,l=b.selected.items,h,a,g,e,c,j,k;if(b.isLocked()){return}h=b.normalizeRowRange(d,f);d=h[0];f=h[1];e=[];for(a=d;a<=f;a++){if(!b.isSelected(i.getAt(a))){e.push(i.getAt(a))}}if(!m){c=[];b.suspendChanges();for(a=0,g=l.length;af){c.push(k)}}for(a=0,g=c.length;a0)}}}},deselectRange:function(d,e){var a=this,h=a.store,g,c,b,f;if(a.isLocked()){return}g=a.normalizeRowRange(d,e);d=g[0];e=g[1];b=[];for(c=d;c<=e;c++){f=h.getAt(c);if(a.isSelected(f)){b.push(f)}}if(b.length){a.doDeselect(b)}},normalizeRowRange:function(a,b){var c=this.store,d;if(!Ext.isNumber(a)){a=c.indexOf(a)}a=Math.max(0,a);if(!Ext.isNumber(b)){b=c.indexOf(b)}b=Math.min(b,c.getCount()-1);if(a>b){d=b;b=a;a=d}return [a,b]},select:function(a,c,b){if(Ext.isDefined(a)&&!(Ext.isArray(a)&&!a.length)){this.doSelect(a,c,b)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(a,e,d){var b=this,c;if(b.locked||a==null){return}if(typeof a==='number'){c=b.store.getAt(a);if(!c){return}a=[c]}if(b.selectionMode==='SINGLE'){if(a.isModel){a=[a]}if(a.length){b.doSingleSelect(a[0],d)}}else {b.doMultiSelect(a,e,d)}},doMultiSelect:function(b,k,d){var a=this,g=a.selected,h=!1,e,f,j,c,i;if(a.locked){return}b=!Ext.isArray(b)?[b]:b;j=b.length;if(!k&&g.getCount()>0){e=a.deselectDuringSelect(b,d);if(a.destroyed){return}if(e[0]){a.maybeFireSelectionChange(e[1]>0&&!d);return}else {h=e[1]>0}}i=function(){if(!g.getCount()){a.selectionStart=c}g.add(c);h=!0};for(f=0;f0&&!f);return d===g},doSingleSelect:function(b,c){var a=this,e=!1,d=a.selected,f;if(a.locked){return}if(a.isSelected(b)){return}f=function(){if(d.getCount()){a.suspendChanges();var f=a.deselectDuringSelect([b],c);if(a.destroyed){return}a.resumeChanges();if(f[0]){return !1}}a.lastSelected=b;if(!d.getCount()){a.selectionStart=b}d.add(b);e=!0};a.onSelectChange(b,!0,c,f);if(e&&!a.destroyed){a.maybeFireSelectionChange(!c)}},maybeFireSelectionChange:function(b){var a=this;if(b&&!a.suspendChange){a.fireEvent('selectionchange',a,a.getSelection())}},getLastSelected:function(){return this.lastSelected},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(a){a=a?a.toUpperCase():'SINGLE';this.selectionMode=this.modes[a]?a:'SINGLE'},isLocked:function(){return this.locked},setLocked:function(a){this.locked=!!a},isRangeSelected:function(b,c){var e=this,f=e.store,a,d;d=e.normalizeRowRange(b,c);b=d[0];c=d[1];for(a=b;a<=c;a++){if(!e.isSelected(f.getAt(a))){return !1}}return !0},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected.contains(a)},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var a=this,l=a.store,e=[],c=[],k=a.getSelection(),m=k.length,b=a.getSelected(),h,j,d,g,i,f;if(!l||!(b.isCollection||b.isRows)||!b.getCount()){return}d=l.getData();if(d.getSource){j=d.getSource();if(j){d=j}}a.refreshing=!0;b.beginUpdate();a.suspendChanges();for(f=0;f0);if(i){a.fireEvent('lastselectedchanged',a,a.getSelection(),a.lastSelected)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(d,e,b,f){var a=this,c=e?'select':'deselect';if((b||a.fireEvent('before'+c,a,d))!==!1&&f()!==!1){if(!b){a.fireEvent(c,a,d)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(a){var c=this.view,b;if(c){b=c.resolveSatelliteListenerScope(this,a)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,a)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,selectWithEventMulti:function(b,l,e){var a=this,g=l.shiftKey,c=l.ctrlKey,j=g?a.getSelectionStart():null,i=a.getSelection(),k=i.length,f,d,h;if(g&&j){a.selectRange(j,b,c)}else {if(c&&e){if(a.allowDeselect){a.doDeselect(b,!1)}}else {if(c){a.doSelect(b,!0,!1)}else {if(e&&!g&&!c&&k>1){if(a.allowDeselect){f=[];for(d=0;dthis.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyRight:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyLeft:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(a){this.setPosition(0,a)},onKeyEnd:function(a){this.setPosition(this.view.all.getCount()-1,a)},onKeySpace:function(a){this.fireNavigateEvent(a)},onKeyEnter:function(a){a.stopEvent();a.view.fireEvent('itemclick',a.view,a.record,a.item,a.recordIndex,a)},onSelectAllKeyPress:function(a){this.fireNavigateEvent(a)},fireNavigateEvent:function(b){var a=this;a.fireEvent('navigate',{navigationModel:a,keyEvent:b,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,recordIndex:a.recordIndex,record:a.record,item:a.item})},destroy:function(){var a=this;a.setStore(null);Ext.destroy(a.viewListeners,a.keyNav);a.keyNav=a.viewListeners=a.dataSource=a.lastFocused=null;a.callParent()}},1,0,0,0,['view.navigation.default'],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,'NavigationModel'],0);Ext.cmd.derive('Ext.view.AbstractView',Ext.Component,{inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},defaultBindProperty:'store',renderBuffer:document.createElement('div'),statics:{updateDelay:200,queueRecordChange:function(n,o,d,m,f){var a=this,g=a.changeQueue||(a.changeQueue={}),i=d.internalId,h,b,l,e,c,j,k;h=g[i]||(g[i]={operation:m,record:d,data:{},views:[]});b=h.data;Ext.Array.include(h.views,n);if(f&&(l=f.length)){for(e=0;e
    {1}
    ',a.itemCls,b,a.itemAriaRole);a.tpl=new Ext.XTemplate(b,c)}Ext.Component.prototype.initComponent.call(this);a.tpl=a.getTpl('tpl');if(a.overItemCls){a.trackOver=!0}a.addCmpEvents();d=a.store=Ext.data.StoreManager.lookup(a.store||'ext-empty-store');if(!a.dataSource){a.dataSource=d}a.bindStore(d,!0);a.getNavigationModel().bindComponent(this);if(!a.all){a.all=new Ext.CompositeElementLite()}a.scrollState={top:0,left:0};a.savedTabIndexAttribute='data-savedtabindex-'+a.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(){var a=this.loadMask;Ext.Component.prototype.onRender.apply(this,arguments);if(a){this.createMask(a)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.apply(this,arguments);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refresh()}else {a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var a=this,b=a.loadingHeight;if(b&&b>a.getHeight()){a.hasLoadingHeight=!0;a.oldMinHeight=a.minHeight;a.minHeight=b;a.updateLayout()}},onMaskHide:function(){var a=this;if(!a.destroying&&a.hasLoadingHeight){a.minHeight=a.oldMinHeight;a.updateLayout();delete a.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.apply(this,arguments);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.apply(this,arguments);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var a=this.loadMask,b=[];if(a&&a.isComponent){b.push(a)}return b},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},applySelectionModel:function(b,e){var a=this,g=a.grid,c,f,d;if(e){e.un({scope:a,selectionchange:a.updateBindSelection,lastselectedchanged:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});Ext.destroy(a.selModelRelayer);b=Ext.Factory.selection(b)}else {if(b&&b.isSelectionModel){b.locked=a.disableSelection}else {if(a.simpleSelect){c='SIMPLE'}else {if(a.multiSelect){c='MULTI'}else {c='SINGLE'}}if(typeof b==='string'){b={type:b}}b=Ext.Factory.selection(Ext.apply({allowDeselect:a.allowDeselect||a.multiSelect,mode:c,locked:a.disableSelection},b))}}if(b.mode!=='SINGLE'){d=(g||a).ariaEl.dom;if(d){d.setAttribute('aria-multiselectable',!0)}else {if(!g){f=a.ariaRenderAttributes||(a.ariaRenderAttributes={});f['aria-multiselectable']=!0}}}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});return b},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(d){var a=this,b=a.getNavigationModel(),c;a.toggleChildrenTabbability(!1);if(!a.itemFocused&&a.all.getCount()){c=b.getLastFocused();b.setPosition(c||0,d.event,null,!c);a.itemFocused=b.getPosition()!=null}if(a.itemFocused){this.el.dom.setAttribute('tabIndex','-1')}Ext.Component.prototype.onFocusEnter.call(this,d)},onFocusLeave:function(b){var a=this;if(a.itemFocused&&!a.refreshing){a.getNavigationModel().setPosition(null,b.event,null,!0);a.itemFocused=!1;a.el.dom.setAttribute('tabIndex',0)}Ext.Component.prototype.onFocusLeave.call(this,b)},ariaSelect:function(c,b){var a=this.getNode(b);if(a){a.setAttribute('aria-selected',!0)}},ariaDeselect:function(c,b){var a=this.getNode(b);if(a){a.removeAttribute('aria-selected')}},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);if(!a){this.onFocusLeave({})}},refresh:function(){var a=this,c=a.all,i=c.getCount(),g=a.refreshCounter,e,k,f,j=a.getSelectionModel(),h,d=g&&c.getCount()&&a.preserveScrollOnRefresh&&a.getScrollable(),b;if(!a.rendered||a.destroyed){return}if(!a.hasListeners.beforerefresh||a.fireEvent('beforerefresh',a)!==!1){a.refreshing=!0;h=a.saveFocusState();e=a.getTargetEl();f=a.getViewRange();k=e.dom;if(d){b=d.getPosition();if(!(b.x||b.y)){b=null}}if(g){a.clearViewEl();a.refreshCounter++}else {a.refreshCounter=1}a.tpl.append(e,a.collectData(f,c.startIndex||0));if(f.length<1){a.addEmptyText();c.clear()}else {a.collectNodes(e.dom);a.updateIndexes(0)}h();if(a.refreshSelmodelOnRefresh!==!1){j.refresh()}a.refreshNeeded=!1;a.refreshSize(c.getCount()!==i);a.fireEvent('refresh',a,f);if(d){d.scrollTo(b)}if(!a.viewReady){a.viewReady=!0;a.fireEvent('viewready',a)}a.refreshing=!1;a.refreshScroll();a.cleanupData()}},addEmptyText:function(){var a=this,b=a.getStore();if(a.emptyText&&!b.isLoading()&&(!a.deferEmptyText||a.refreshCounter>1||b.isLoaded())){a.emptyEl=Ext.core.DomHelper.insertHtml('beforeEnd',a.getTargetEl().dom,a.emptyText)}},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(d){var a=this,b=a.getSizeModel(),c=a.getScrollable();if(b.height.shrinkWrap||b.width.shrinkWrap||d){a.updateLayout()}else {if(a.touchScroll&&!a.bufferedRenderer){if(c){c.refresh()}else {a.on({boxready:a.refreshScroll,scope:a,single:!0})}}}},afterFirstLayout:function(d,c){var a=this,b=a.getScrollable();if(b){b.on({scroll:a.onViewScroll,scrollend:a.onViewScrollEnd,scope:a,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,d,c)},clearViewEl:function(){var a=this,c=a.getTargetEl(),b=a.getNodeContainer()===c;a.clearEmptyEl();a.all.clear(!b);if(b){c.dom.innerHTML=''}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(c,a,b){this.fireEvent('scroll',this,a,b)},onViewScrollEnd:function(c,a,b){this.fireEvent('scrollend',this,a,b)},saveScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){b.left=a.getScrollX();b.top=a.getScrollY()}},restoreScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){a.setScrollX(b.left);a.setScrollY(b.top)}},prepareData:function(c,f,e){var a,b,d;if(e){a=e.getAssociatedData();for(b in a){if(a.hasOwnProperty(b)){if(!d){c=Ext.Object.chain(c);d=!0}c[b]=a[b]}}}return c},collectData:function(c,e){var d=[],a=0,f=c.length,b;for(;a-1){if(a.getNode(b)){d=a.bufferRender([b],c).children[0];a.all.replaceElement(c,d,!0);a.updateIndexes(c,c);e.onUpdate(b);a.refreshSizePending=!0;if(e.isSelected(b)){a.onItemSelect(b)}if(a.hasListeners.itemupdate){a.fireEvent('itemupdate',b,c,d)}return d}}}},onReplace:function(o,b,e,d){var a=this,c=a.all,n=a.getSelectionModel(),j=b,h,m,g,f,l,k,i;if(a.rendered){h=a.bufferRender(d,b,!0);g=h.fragment;f=h.children;m=c.item(b);if(m){c.item(b).insertSibling(g,'before',!0)}else {a.appendNodes(g)}c.insert(b,f);if(e.length){i=a.saveFocusState()}b+=d.length;k=b+e.length-1;l=c.removeRange(b,k,!0);if(a.refreshSelmodelOnRefresh!==!1){n.refresh()}a.updateIndexes(b);if(a.hasListeners.itemremove){a.fireEvent('itemremove',e,j,l,a)}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,j,f)}i();a.refreshSize()}},onAdd:function(f,d,b){var a=this,c,e=a.getSelectionModel();if(a.rendered){if(a.all.getCount()===0){a.refresh();c=a.all.slice()}else {c=a.doAdd(d,b);if(a.refreshSelmodelOnRefresh!==!1){e.refresh()}a.updateIndexes(b);a.refreshSizePending=!0}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,b,c)}}},appendNodes:function(a){var b=this.all,c=b.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(a)}else {b.item(c-1).insertSibling(a,'after')}},doAdd:function(j,b){var d=this,g=d.bufferRender(j,b,!0),f=g.fragment,c=g.children,a=d.all,h=a.getCount(),e=a.startIndex||0,i=a.endIndex||h-1;if(h===0||b>i){d.appendNodes(f)}else {if(b<=e){a.item(e).insertSibling(f,'before',!0)}else {a.item(b).insertSibling(c,'before',!0)}}a.insert(b,c);return c},onRemove:function(l,d,b){var a=this,i=a.all,g=a.hasListeners.itemremove,e,c,k,f,h,j;if(i.getCount()){if(a.dataSource.getCount()===0){if(g){a.fireEvent('itemremove',d,b,a.getNodes(b,b+d.length-1))}a.refresh()}else {j=a.saveFocusState();if(g){f=[]}for(c=d.length-1;c>=0;--c){k=d[c];e=b+c;if(f){h=i.item(e);f[c]=h?h.dom:undefined}if(i.item(e)){a.doRemove(k,e)}}if(g){a.fireEvent('itemremove',d,b,f,a)}j();a.updateIndexes(b)}a.refreshSizePending=!0}},doRemove:function(b,a){this.all.removeElement(a,!0)},saveFocusState:function(){var a=this,e=a.dataSource||a.store,c=a.getNavigationModel(),b=c.recordIndex,d=c.record;if(a.el.contains(Ext.Element.getActiveElement())){a.el.dom.focus();return function(){if(e.getCount()){b=Math.min(b,a.all.getCount()-1);c.setPosition(e.contains(d)?d:b,null,null,!0)}}}return Ext.emptyFn},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(d,b){var e=this.all.elements,c,f=this.getViewRange(),a,g=this.id;d=d||0;b=b||(b===0?0:e.length-1);for(a=d;a<=b;a++){c=e[a];c.setAttribute('data-recordIndex',a);c.setAttribute('data-recordId',f[a].internalId);c.setAttribute('data-boundView',g)}},bindStore:function(b,e){var a=this,c=a.getSelectionModel(),d=a.getNavigationModel();c.bindStore(b);c.bindComponent(b?a:null);a.mixins.storeholder.bindStore.apply(a,arguments);d.setStore(b);if(b&&a.componentLayoutCounter){a.doFirstRefresh(b,!e)}},doFirstRefresh:function(b,c){var a=this;if(a.deferInitialRefresh&&!c){Ext.defer(a.doFirstRefresh,1,a,[b,!0])}else {if(b&&!b.isLoading()){a.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(c,b){var a=this;if(a.store.isBufferedStore){a.store.preserveScrollOnReload=a.preserveScrollOnReload}if(b&&b.isBufferedStore){delete b.preserveScrollOnReload}a.setMaskBind(c);if(!a.dataSource){a.dataSource=c}},setMaskBind:function(b){var a=this.loadMask;if(this.rendered&&a&&b&&!a.bindStore){a=this.createMask()}if(a&&a.bindStore){a.bindStore(b)}},getStoreListeners:function(){var a=this;return {refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var a=this;if(a.updateSuspendCounter){--a.updateSuspendCounter}Ext.resumeLayouts(!0);if(a.refreshSizePending){a.refreshSize(!0);a.refreshSizePending=!1}},onDataRefresh:function(b){var a=this,c=a.preserveScrollOnRefresh;if(b.loadCount>a.lastRefreshLoadCount){a.preserveScrollOnRefresh=a.preserveScrollOnReLoad}a.refreshView();a.preserveScrollOnRefresh=c;a.lastRefreshLoadCount=b.loadCount},refreshView:function(){var a=this,b=a.blockRefresh||!a.rendered||a.up('[collapsed],[isCollapsingOrExpanding],[hidden]');if(b){a.refreshNeeded=!0}else {if(a.bufferedRenderer){a.bufferedRenderer.refreshView()}else {a.refresh()}}},findItemByChild:function(a){return Ext.fly(a).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(a){return a.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var c=[],b=this.getSelectionModel().getSelection(),d=b.length,a=0;for(;aa.bottom){d=b.bottom-a.bottom}}if(b.lefta.right){c=b.right-a.right}}if(c||d){g.scrollBy(c,d,!1)}e.set({tabIndex:-1});e.focus()}},privates:{repaintBorder:function(b){var a=this.getNode(b);if(a){a.className=a.className}}}},0,['dataview'],['component','box','dataview'],{'component':!0,'box':!0,'dataview':!0},['widget.dataview'],0,[Ext.view,'View',Ext,'DataView'],0);Ext.cmd.derive('Ext.view.BoundListKeyNav',Ext.view.NavigationModel,{navigateOnSpace:!0,initKeyNav:function(c){var a=this,b=c.pickerField;if(!a.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,c);a.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:a.onKeyEsc,scope:a})}if(!b){return}if(!b.rendered){b.on('render',Ext.Function.bind(a.initKeyNav,a,[c],0),a,{single:!0});return}a.fieldKeyNav=new Ext.util.KeyNav({disabled:!0,target:b.inputEl,forceKeyDown:!0,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,tab:a.onKeyTab,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1001,scope:a})},processViewEvent:function(b,c,e,d,a){if(a.within(b.listWrap)){return a}if(a.getKey()===a.ESC){if(Ext.fly(a.target).isInputField()){a.target=a.target.parentNode}return a}},enable:function(){this.fieldKeyNav.enable();Ext.view.NavigationModel.prototype.enable.call(this)},disable:function(){this.fieldKeyNav.disable();Ext.view.NavigationModel.prototype.disable.call(this)},onItemMouseDown:function(e,b,d,c,a){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,e,b,d,c,a);a.preventDefault()},onKeyUp:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b>0?b-1:f.getCount()-1;d.setPosition(e);g.preventDefault()},onKeyDown:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b
    ',destroy:function(){var a=this;if(a.spinnerEl){a.spinnerEl.destroy();a.spinnerEl=a.upEl=a.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var a=this;return {vertical:a.vertical,upDisabledCls:a.upEnabled?'':a.spinnerUpCls+'-disabled',downDisabledCls:a.downEnabled?'':a.spinnerDownCls+'-disabled',spinnerCls:a.spinnerCls,spinnerUpCls:a.spinnerUpCls,spinnerDownCls:a.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var a=this,d=arguments,c=a.clickRepeater?d[1]:d[0],b=a.field;if(!b.readOnly&&!b.disabled){if(a.upEl.contains(c.target)){Ext.callback(a.upHandler,a.scope,[b,a,c],0,b)}else {if(a.downEl.contains(c.target)){Ext.callback(a.downHandler,a.scope,[b,a,c],0,b)}}}b.inputEl.focus()},onFieldRender:function(){var a=this,d=a.vertical,c,b;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);c=a.spinnerEl=a.el.select('.'+a.spinnerCls,!0);b=c.elements;a.upEl=d?b[0]:b[1];a.downEl=d?b[1]:b[0]},setUpEnabled:function(a){this.upEl[a?'removeCls':'addCls'](this.spinnerUpCls+'-disabled')},setDownEnabled:function(a){this.downEl[a?'removeCls':'addCls'](this.spinnerDownCls+'-disabled')}},0,0,0,0,['trigger.spinner'],0,[Ext.form.trigger,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Spinner',Ext.form.field.Text,{alternateClassName:'Ext.form.Spinner',config:{triggers:{spinner:{type:'spinner',upHandler:'onSpinnerUpClick',downHandler:'onSpinnerDownClick',scope:'this'}}},spinUpEnabled:!0,spinDownEnabled:!0,keyNavEnabled:!0,mouseWheelEnabled:!0,repeatTriggerClick:!0,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:'spinbutton',applyTriggers:function(b){var c=this,a=b.spinner;a.upEnabled=c.spinUpEnabled;a.downEnabled=c.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},onRender:function(){var a=this,b=a.getTrigger('spinner');(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(a.keyNavEnabled){a.spinnerKeyNav=new Ext.util.KeyNav(a.inputEl,{scope:a,up:a.spinUp,down:a.spinDown})}if(a.mouseWheelEnabled){a.mon(a.bodyEl,'mousewheel',a.onMouseWheel,a)}a.spinUpEl=b.upEl;a.spinDownEl=b.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var a=this;if(a.spinUpEnabled&&!a.disabled){a.fireEvent('spin',a,'up');a.fireEvent('spinup',a);a.onSpinUp()}},spinDown:function(){var a=this;if(a.spinDownEnabled&&!a.disabled){a.fireEvent('spin',a,'down');a.fireEvent('spindown',a);a.onSpinDown()}},setSpinUpEnabled:function(b){var a=this,c=a.spinUpEnabled;a.spinUpEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setUpEnabled(b)}},setSpinDownEnabled:function(b){var a=this,c=a.spinDownEnabled;a.spinDownEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setDownEnabled(b)}},onMouseWheel:function(c){var b=this,a;if(b.hasFocus){a=c.getWheelDelta();if(a>0){b.spinUp()}else {if(a<0){b.spinDown()}}c.stopEvent()}},onDestroy:function(){Ext.destroyMembers(this,'spinnerKeyNav');Ext.form.field.Text.prototype.onDestroy.call(this)}},0,['spinnerfield'],['component','box','field','textfield','spinnerfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0},['widget.spinnerfield'],0,[Ext.form.field,'Spinner',Ext.form,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Number',Ext.form.field.Spinner,{alternateClassName:['Ext.form.NumberField','Ext.form.Number'],allowExponential:!0,allowDecimals:!0,decimalSeparator:null,submitLocaleSeparator:!0,decimalPrecision:2,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,step:1,minText:'The minimum value for this field is {0}',maxText:'The maximum value for this field is {0}',nanText:'{0} is not a valid number',negativeText:'The value cannot be negative',baseChars:'0123456789',autoStripChars:!1,initComponent:function(){var a=this;if(a.decimalSeparator===null){a.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);a.setMinValue(a.minValue);a.setMaxValue(a.maxValue)},getSubTplData:function(g){var f=this,e=f.minValue,d=f.maxValue,c,a,b;c=Ext.form.field.Spinner.prototype.getSubTplData.call(this,g);a=c.inputElAriaAttributes;if(a){if(e>Number.NEGATIVE_INFINITY){a['aria-valuemin']=e}if(d=e&&b<=d){a['aria-valuenow']=b}}return c},setValue:function(d){var a=this,c,b;if(a.hasFocus){c=a.getBind();b=c&&c.value;if(b&&b.syncing&&d===a.value){return a}}return Ext.form.field.Spinner.prototype.setValue.call(this,d)},getErrors:function(b){b=arguments.length>0?b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Spinner.prototype.getErrors.call(this,b),e=Ext.String.format,d;if(b.length<1){return c}b=String(b).replace(a.decimalSeparator,'.');if(isNaN(b)){c.push(e(a.nanText,b))}d=a.parseValue(b);if(a.minValue===0&&d<0){c.push(this.negativeText)}else {if(da.maxValue){c.push(e(a.maxText,a.maxValue))}return c},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(a){var b=this,c=b.decimalSeparator;a=b.parseValue(a);a=b.fixPrecision(a);a=Ext.isNumber(a)?a:parseFloat(String(a).replace(c,'.'));a=isNaN(a)?'':String(a).replace('.',c);return a},getSubmitValue:function(){var b=this,a=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!b.submitLocaleSeparator){a=a.replace(b.decimalSeparator,'.')}return a},onChange:function(a){var b=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(b){if(Ext.isNumber(a)&&isFinite(a)){b.setAttribute('aria-valuenow',a)}else {b.removeAttribute('aria-valuenow')}}},toggleSpinners:function(){var a=this,c=a.getValue(),d=c===null,b;if(a.spinUpEnabled||a.spinUpDisabledByToggle){b=d||ca.minValue;a.setSpinDownEnabled(b,!0)}},setMinValue:function(e){var a=this,c=a.ariaEl.dom,d,b,c;a.minValue=d=Ext.Number.from(e,Number.NEGATIVE_INFINITY);a.toggleSpinners();if(c){if(d>Number.NEGATIVE_INFINITY){c.setAttribute('aria-valuemin',d)}else {c.removeAttribute('aria-valuemin')}}if(a.disableKeyFilter!==!0){b=a.baseChars+'';if(a.allowExponential){b+=a.decimalSeparator+'e+-'}else {if(a.allowDecimals){b+=a.decimalSeparator}if(a.minValue<0){b+='-'}}b=Ext.String.escapeRegex(b);a.maskRe=new RegExp('['+b+']');if(a.autoStripChars){a.stripCharsRe=new RegExp('[^'+b+']','gi')}}},setMaxValue:function(c){var b=this.ariaEl.dom,a;this.maxValue=a=Ext.Number.from(c,Number.MAX_VALUE);if(b){if(aa.maxLength){return}}a.setValue(b)}},0,['numberfield'],['component','box','field','textfield','spinnerfield','numberfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0,'numberfield':!0},['widget.numberfield'],0,[Ext.form.field,'Number',Ext.form,'NumberField',Ext.form,'Number'],0);Ext.cmd.derive('Ext.toolbar.Paging',Ext.toolbar.Toolbar,{alternateClassName:'Ext.PagingToolbar',displayInfo:!1,prependButtons:!1,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display',beforePageText:'Page',afterPageText:'of {0}',firstText:'First Page',prevText:'Previous Page',nextText:'Next Page',lastText:'Last Page',refreshText:'Refresh',inputItemWidth:30,emptyPageData:{total:0,currentPage:0,pageCount:0,toRecord:0,fromRecord:0},defaultBindProperty:'store',getPagingItems:function(){var a=this,b={scope:a,blur:a.onPagingBlur};b[Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress']=a.onPagingKeyDown;return [{itemId:'first',tooltip:a.firstText,overflowText:a.firstText,iconCls:'x-tbar-page-first',disabled:!0,handler:a.moveFirst,scope:a},{itemId:'prev',tooltip:a.prevText,overflowText:a.prevText,iconCls:'x-tbar-page-prev',disabled:!0,handler:a.movePrevious,scope:a},'-',a.beforePageText,{xtype:'numberfield',itemId:'inputItem',name:'inputItem',cls:'x-tbar-page-number',allowDecimals:!1,minValue:1,hideTrigger:!0,enableKeyEvents:!0,keyNavEnabled:!1,selectOnFocus:!0,submitValue:!1,isFormField:!1,width:a.inputItemWidth,margin:'-1 2 3 2',listeners:b},{xtype:'tbtext',itemId:'afterTextItem',html:Ext.String.format(a.afterPageText,1)},'-',{itemId:'next',tooltip:a.nextText,overflowText:a.nextText,iconCls:'x-tbar-page-next',disabled:!0,handler:a.moveNext,scope:a},{itemId:'last',tooltip:a.lastText,overflowText:a.lastText,iconCls:'x-tbar-page-last',disabled:!0,handler:a.moveLast,scope:a},'-',{itemId:'refresh',tooltip:a.refreshText,overflowText:a.refreshText,iconCls:'x-tbar-loading',disabled:a.store.isLoading(),handler:a.doRefresh,scope:a}]},initComponent:function(){var a=this,c=a.items||a.buttons||[],b;a.bindStore(a.store||'ext-empty-store',!0);b=a.getPagingItems();if(a.prependButtons){a.items=c.concat(b)}else {a.items=b.concat(c)}delete a.buttons;if(a.displayInfo){a.items.push('->');a.items.push({xtype:'tbtext',itemId:'displayItem'})}Ext.toolbar.Toolbar.prototype.initComponent.call(this)},beforeRender:function(){Ext.toolbar.Toolbar.prototype.beforeRender.apply(this,arguments);this.updateBarInfo()},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=!0;a.onLoad();a.calledInternal=!1}},updateInfo:function(){var a=this,d=a.child('#displayItem'),f=a.store,b=a.getPageData(),e,c;if(d){e=f.getCount();if(e===0){c=a.emptyMsg}else {c=Ext.String.format(a.displayMsg,b.fromRecord,b.toRecord,b.total)}d.setText(c)}},onLoad:function(){var a=this,f,c,b,g,h,d,e;h=a.store.getCount();d=h===0;if(!d){f=a.getPageData();c=f.currentPage;b=f.pageCount;if(c>b){if(b>0){a.store.loadPage(b)}else {a.getInputItem().reset()}return}g=Ext.String.format(a.afterPageText,isNaN(b)?1:b)}else {c=0;b=0;g=Ext.String.format(a.afterPageText,0)}Ext.suspendLayouts();e=a.child('#afterTextItem');if(e){e.update(g)}e=a.getInputItem();if(e){e.setDisabled(d).setValue(c)}a.setChildDisabled('#first',c===1||d);a.setChildDisabled('#prev',c===1||d);a.setChildDisabled('#next',c===b||d);a.setChildDisabled('#last',c===b||d);a.setChildDisabled('#refresh',!1);a.updateInfo();Ext.resumeLayouts(!0);if(!a.calledInternal){a.fireEvent('change',a,f||a.emptyPageData)}},setChildDisabled:function(c,b){var a=this.child(c);if(a){a.setDisabled(b)}},getPageData:function(){var a=this.store,b=a.getTotalCount();return {total:b,currentPage:a.currentPage,pageCount:Math.ceil(b/a.pageSize),fromRecord:(a.currentPage-1)*a.pageSize+1,toRecord:Math.min(a.currentPage*a.pageSize,b)}},onLoadError:function(){this.setChildDisabled('#refresh',!1)},getInputItem:function(){return this.child('#inputItem')},readPageFromInput:function(d){var a=this.getInputItem(),b=!1,c;if(a){c=a.getValue();b=parseInt(c,10);if(!c||isNaN(b)){a.setValue(d.currentPage);return !1}}return b},onPagingBlur:function(c){var a=this.getInputItem(),b;if(a){b=this.getPageData().currentPage;a.setValue(b)}},onPagingKeyDown:function(a,b){this.processKeyEvent(a,b)},processKeyEvent:function(g,b){var e=this,c=b.getKey(),d=e.getPageData(),f=b.shiftKey?10:1,a;if(c===b.RETURN){b.stopEvent();a=e.readPageFromInput(d);if(a!==!1){a=Math.min(Math.max(1,a),d.pageCount);if(a!==d.currentPage&&e.fireEvent('beforechange',e,a)!==!1){e.store.loadPage(a)}}}else {if(c===b.HOME||c===b.END){b.stopEvent();a=c===b.HOME?1:d.pageCount;g.setValue(a)}else {if(c===b.UP||c===b.PAGE_UP||c===b.DOWN||c===b.PAGE_DOWN){b.stopEvent();a=e.readPageFromInput(d);if(a){if(c===b.DOWN||c===b.PAGE_DOWN){f*=-1}a+=f;if(a>=1&&a<=d.pageCount){g.setValue(a)}}}}}},beforeLoad:function(){this.setChildDisabled('#refresh',!0)},moveFirst:function(){if(this.fireEvent('beforechange',this,1)!==!1){this.store.loadPage(1);return !0}return !1},movePrevious:function(){var a=this,b=a.store,c=b.currentPage-1;if(c>0){if(a.fireEvent('beforechange',a,c)!==!1){b.previousPage();return !0}}return !1},moveNext:function(){var a=this,b=a.store,d=a.getPageData().pageCount,c=b.currentPage+1;if(c<=d){if(a.fireEvent('beforechange',a,c)!==!1){b.nextPage();return !0}}return !1},moveLast:function(){var a=this,b=a.getPageData().pageCount;if(a.fireEvent('beforechange',a,b)!==!1){a.store.loadPage(b);return !0}return !1},doRefresh:function(){var a=this,c=a.store,b=c.currentPage;if(a.fireEvent('beforechange',a,b)!==!1){c.loadPage(b);return !0}return !1},getStoreListeners:function(){return {beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},onDestroy:function(){this.bindStore(null);Ext.toolbar.Toolbar.prototype.onDestroy.call(this)}},0,['pagingtoolbar'],['component','box','container','toolbar','pagingtoolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'pagingtoolbar':!0},['widget.pagingtoolbar'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.toolbar,'Paging',Ext,'PagingToolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Paging',{override:'Ext.toolbar.Paging',defaultButtonUI:'plain-toolbar',inputItemWidth:40});Ext.cmd.derive('Ext.view.BoundList',Ext.view.View,{alternateClassName:'Ext.BoundList',pageSize:0,baseCls:'x-boundlist',itemCls:'x-boundlist-item',listItemCls:'',shadow:!1,trackOver:!0,preserveScrollOnRefresh:!0,enableInitialSelection:!1,refreshSelmodelOnRefresh:!0,componentLayout:'boundlist',navigationModel:'boundlist',scrollable:!0,ariaEl:'listEl',tabIndex:-1,childEls:['listWrap','listEl'],renderTpl:['
    ','
      {$}="{.}"','>','
    ','
    ','{%','var pagingToolbar=values.$comp.pagingToolbar;','if (pagingToolbar) {','Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);','}','%}',{disableFormats:!0}],focusOnToFront:!1,initComponent:function(){var a=this,b=a.baseCls,c=a.itemCls;a.selectedItemCls=b+'-selected';if(a.trackOver){a.overItemCls=b+'-item-over'}a.itemSelector='.'+c;a.scrollerSelector='ul.x-list-plain';if(a.floating){a.addCls(b+'-floating')}if(!a.tpl){a.tpl=new Ext.XTemplate('','
  • '+a.getInnerTpl(a.displayField)+'
  • ','
    ')}else {if(!a.tpl.isTemplate){a.tpl=new Ext.XTemplate(a.tpl)}}if(a.pageSize){a.pagingToolbar=a.createPagingToolbar()}Ext.view.View.prototype.initComponent.call(this)},getRefOwner:function(){return this.pickerField||Ext.view.View.prototype.getRefOwner.call(this)},getRefItems:function(){var b=Ext.view.View.prototype.getRefItems.call(this),a=this.pagingToolbar;if(a){b.push(a)}return b},createPagingToolbar:function(){return Ext.widget('pagingtoolbar',{id:this.id+'-paging-toolbar',pageSize:this.pageSize,store:this.dataSource,border:!1,ownerCt:this,ownerLayout:this.getComponentLayout()})},getNodeContainer:function(){return this.listEl},refresh:function(){var b=this,a=b.tpl;a.field=b.pickerField;a.store=b.store;Ext.view.View.prototype.refresh.call(this);a.field=a.store=null},bindStore:function(c,b){var a=this.pagingToolbar;Ext.view.View.prototype.bindStore.apply(this,arguments);if(a){a.bindStore(c,b)}},getInnerTpl:function(a){return '{'+a+'}'},onShow:function(){var a=this.pickerField;Ext.view.View.prototype.onShow.call(this);if(a&&a.rendered&&!a.hasFocus){a.focus()}},afterComponentLayout:function(e,d,c,b){var a=this.pickerField;Ext.view.View.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&a.alignPicker){a.alignPicker()}},onItemClick:function(e){var d=this,b=d.pickerField,c,a;if(!b){return}c=b.valueField;a=d.getSelectionModel().getSelection();if(!b.multiSelect&&a.length){a=a[0];if(a&&b.isEqual(e.get(c),a.get(c))&&b.collapse){b.collapse()}}},onContainerClick:function(b){var a=this.pagingToolbar;if(a&&a.rendered&&b.within(a.el)){return !1}},onDestroy:function(){Ext.view.View.prototype.onDestroy.call(this);Ext.destroyMembers(this,'pagingToolbar','listWrap','listEl')},privates:{getTargetEl:function(){return this.listEl},getOverflowEl:function(){return this.listWrap},finishRenderChildren:function(){var a=this.pagingToolbar;Ext.view.View.prototype.finishRenderChildren.apply(this,arguments);if(a){a.finishRender()}}}},0,['boundlist'],['component','box','dataview','boundlist'],{'component':!0,'box':!0,'dataview':!0,'boundlist':!0},['widget.boundlist'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,'BoundList',Ext,'BoundList'],0);Ext.cmd.derive('Ext.form.field.ComboBox',Ext.form.field.Picker,{alternateClassName:'Ext.form.ComboBox',config:{filters:null,selection:null,valueNotFoundText:null,displayTpl:!1,delimiter:', ',displayField:'text'},publishes:['selection'],twoWayBindable:['selection'],triggerCls:'x-form-arrow-trigger',hiddenName:'',collapseOnSelect:!1,hiddenDataCls:'x-hidden-display x-form-data-hidden',ariaRole:'combobox',childEls:{'hiddenDataEl':!0},filtered:!1,afterRender:function(){var a=this;Ext.form.field.Picker.prototype.afterRender.apply(this,arguments);a.setHiddenValue(a.value)},multiSelect:!1,triggerAction:'all',allQuery:'',queryParam:'query',queryMode:'remote',queryCaching:!0,autoLoadOnValue:!1,pageSize:0,anyMatch:!1,caseSensitive:!1,autoSelect:!0,typeAhead:!1,typeAheadDelay:250,selectOnTab:!0,forceSelection:!1,growToLongestValue:!0,clearFilterOnBlur:!0,defaultListConfig:{loadingHeight:70,minWidth:70,maxHeight:300,shadow:'sides'},transformInPlace:!0,clearValueOnEmpty:!0,getGrowWidth:function(){var a=this,i=a.inputEl.dom.value,h,e,g,c,b,f,d;if(a.growToLongestValue){h=a.displayField;e=a.store;g=e.data.length;c=0;for(b=0;bc){c=d;i=f}}}return i},initComponent:function(){var a=this,d=Ext.isDefined,f=a.store,e=a.transform,b,c;if('pinList' in a){a.collapseOnSelect=!a.pinList}if(e){b=Ext.getDom(e);if(b){if(!a.store){f=Ext.Array.map(Ext.Array.from(b.options),function(a){return [a.value,a.text]})}if(!a.name){a.name=b.name}if(!('value' in a)){a.value=b.value}}}a.bindStore(f||'ext-empty-store',!0,!0);c=a.queryMode==='local';if(!d(a.queryDelay)){a.queryDelay=c?10:500}if(!d(a.minChars)){a.minChars=c?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);a.doQueryTask=new Ext.util.DelayedTask(a.doRawQuery,a);if(b){if(a.transformInPlace){a.render(b.parentNode,b);delete a.renderTo}Ext.removeNode(b)}},getSubTplData:function(c){var b,a;b=Ext.form.field.Picker.prototype.getSubTplData.call(this,c);a=b.inputElAriaAttributes;if(a){a['aria-autocomplete']='list'}return b},getSubTplMarkup:function(c){var b=this,a='',d=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(b.hiddenName){a=''}return a+d},applyDisplayTpl:function(a){var b=this;if(!a){a=new Ext.XTemplate('{[typeof values === "string" ? values : values["'+b.getDisplayField()+'"]]}'+b.getDelimiter()+'');a.auto=!0}else {if(!a.isTemplate){a=new Ext.XTemplate(a)}}return a},applyFilters:function(b,a){var c=this;if(b===null||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.beginUpdate();a.splice(0,a.length,b);a.each(function(d){d.ownerId=c.id});a.endUpdate()}return a},applyValueNotFoundText:function(b){var a=this,c=a.valueNotFoundRecord||(a.valueNotFoundRecord=new Ext.data.Model());c.set(a.displayField,b);if(a.valueField&&a.displayField!==a.valueField){c.set(a.valueField,b)}return b},getFilters:function(b){var a=this.filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,c){var b=this;if(c){c.un('endupdate','onEndUpdateFilters',b)}if(a){a.on('endupdate','onEndUpdateFilters',b)}b.onEndUpdateFilters(a)},onEndUpdateFilters:function(a){var b=this,f=b.filtered,e=!!a&&a.length>0,d,c;if(f||e){b.filtered=e;d=[];c=b.store.getFilters();c.each(function(c){if(c.ownerId===b.id&&!a.contains(c)){d.push(c)}});c.splice(0,d,a.items)}},completeEdit:function(c){var a=this,b=a.queryFilter;Ext.form.field.Picker.prototype.completeEdit.call(this,c);a.doQueryTask.cancel();a.assertValue();if(b&&a.queryMode==='local'&&a.clearFilterOnBlur){a.getStore().getFilters().remove(b)}},onFocus:function(b){var a=this;Ext.form.field.Picker.prototype.onFocus.call(this,b);if(a.triggerAction!=='all'&&a.queryFilter&&a.queryMode==='local'&&a.clearFilterOnBlur){delete a.lastQuery;a.doRawQuery()}},assertValue:function(){var a=this,e=a.getRawValue(),c=a.getDisplayValue(),d=a.lastSelectedRecords,b;if(a.forceSelection){if(a.multiSelect){if(e!==c){a.setRawValue(c)}}else {b=a.findRecordByDisplay(e);if(b){if(a.getDisplayValue([a.getRecordDisplayData(b)])!==c){a.select(b,!0)}}else {if(d&&(!a.allowBlank||a.rawValue)){a.setValue(d)}else {if(d){delete a.lastSelectedRecords}a.setRawValue('')}}}}a.collapse()},onTypeAhead:function(){var a=this,e=a.displayField,d=a.store.findRecord(e,a.getRawValue()),f=a.getPicker(),b,g,c;if(d){b=d.get(e);g=b.length;c=a.getRawValue().length;f.highlightItem(f.getNode(d));if(c!==0&&c!==g){a.setRawValue(b);a.selectText(c,b.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){var a=this.queryFilter;Ext.form.field.Picker.prototype.beforeReset.call(this);if(a){this.getStore().getFilters().remove(a)}},onUnbindStore:function(){var a=this,c=a.picker,b=a.queryFilter;if(b&&!a.store.destroyed){a.changingFilters=!0;a.getStore().removeFilter(b,!0);a.changingFilters=!1}a.pickerSelectionModel.destroy();if(c){c.bindStore(null)}},onBindStore:function(b,f){var a=this,d=a.picker,c,e;if(b){if(b.autoCreated){a.queryMode='local';a.valueField=a.displayField='field1';if(!b.expanded){a.displayField='field2'}if(a.getDisplayTpl().auto){a.setDisplayTpl(null)}}if(!Ext.isDefined(a.valueField)){a.valueField=a.displayField}c={byValue:{rootProperty:'data',unique:!1}};c.byValue.property=a.valueField;b.setExtraKeys(c);if(a.displayField===a.valueField){b.byText=b.byValue}else {c.byText={rootProperty:'data',unique:!1};c.byText.property=a.displayField;b.setExtraKeys(c)}e={rootProperty:'data',extraKeys:{byInternalId:{property:'internalId'},byValue:{property:a.valueField,rootProperty:'data'}},listeners:{beginupdate:a.onValueCollectionBeginUpdate,endupdate:a.onValueCollectionEndUpdate,scope:a}};a.valueCollection=new Ext.util.Collection(e);a.pickerSelectionModel=new Ext.selection.DataViewModel({mode:a.multiSelect?'SIMPLE':'SINGLE',deselectOnContainerClick:!1,enableInitialSelection:!1,pruneRemoved:!1,selected:a.valueCollection,store:b,listeners:{scope:a,lastselectedchanged:a.updateBindSelection}});if(!f){a.resetToDefault()}if(d){d.setSelectionModel(a.pickerSelectionModel);if(d.getStore()!==b){d.bindStore(b)}}}},bindStore:function(a,e,c){var b=this,d=b.queryFilter;b.mixins.storeholder.bindStore.call(b,a,c);a=b.getStore();if(a&&d&&!e){a.getFilters().add(d)}if(!c&&a&&!a.isEmptyStore){b.setValueOnData()}},getStoreListeners:function(c){if(!c.isEmptyStore){var a=this,b={datachanged:a.onDataChanged,load:a.onLoad,exception:a.onException,update:a.onStoreUpdate,remove:a.checkValueOnChange};if(!c.getRemoteFilter()){b.filterchange=a.checkValueOnChange}return b}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var a=this;if(!a.destroying&&a.getStore().isLoaded()){if(a.multiSelect){}else {if(a.forceSelection&&!a.changingFilters&&!a.findRecordByValue(a.value)){a.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.collapse()},onLoad:function(b,e,d){var a=this,c=!a.valueCollection.byValue.get(a.value);if(d&&c&&!(b.lastOptions&&'rawQuery' in b.lastOptions)){a.setValueOnData()}a.checkValueOnChange()},setValueOnData:function(){var a=this;a.setValue(a.value);if(a.isExpanded&&a.getStore().getCount()){a.doAutoSelect()}},doRawQuery:function(){var a=this,b=a.inputEl.dom.value;if(a.multiSelect){b=b.split(a.delimiter).pop()}a.doQuery(b,!1,!0)},doQuery:function(c,f,g){var a=this,d=a.getStore(),e=d.filters&&!d.filters.length&&!!c,b=a.beforeQuery({query:c||'',rawQuery:g,forceAll:f,combo:a,cancel:!1});if(b!==!1&&!b.cancel){if(a.queryCaching&&!e&&b.query===a.lastQuery){a.getPicker().refresh();a.expand()}else {a.lastQuery=b.query;if(a.queryMode==='local'){a.doLocalQuery(b)}else {a.doRemoteQuery(b)}}}return !0},beforeQuery:function(a){var b=this;if(b.fireEvent('beforequery',a)===!1){a.cancel=!0}else {if(!a.cancel){if(a.query.length0){a=b.picker.getSelectionModel();if(a.lastSelected&&a.selected.length){c=a.lastSelected}d.getNavigationModel().setPosition(c)}},doTypeAhead:function(){var a=this,b=Ext.event.Event;if(!a.typeAheadTask){a.typeAheadTask=new Ext.util.DelayedTask(a.onTypeAhead,a)}if(a.lastKey!==b.BACKSPACE&&a.lastKey!==b.DELETE){a.typeAheadTask.delay(a.typeAheadDelay)}},onTriggerClick:function(){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else {if(a.triggerAction==='all'){a.doQuery(a.allQuery,!0)}else {if(a.triggerAction==='last'){a.doQuery(a.lastQuery,!0)}else {a.doQuery(a.getRawValue(),!1,!0)}}}}},onFieldMutation:function(b){var a=this,c=b.getKey(),d=c===b.BACKSPACE||c===b.DELETE,e=a.inputEl.dom.value,f=e.length;if(!a.readOnly&&(e!==a.lastMutatedValue||d)&&c!==b.TAB){a.lastMutatedValue=e;a.lastKey=c;if(f&&(b.type!=='keyup'||(!b.isSpecialKey()||d))){a.doQueryTask.delay(a.queryDelay)}else {if(!f&&(!c||d)){++a.suspendCheckChange;if(!a.multiSelect){a.value=null;a.displayTplData=undefined}if(a.clearValueOnEmpty){a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.removeAll();a.valueCollection.endUpdate()}a.collapse();if(a.queryFilter){a.changingFilters=!0;a.store.removeFilter(a.queryFilter,!0);a.changingFilters=!1}--a.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,b)}}},onDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);a.valueCollection=Ext.destroy(a.valueCollection);Ext.form.field.Picker.prototype.onDestroy.call(this)},onAdded:function(){var a=this;Ext.form.field.Picker.prototype.onAdded.apply(this,arguments);if(a.picker){a.picker.ownerCt=a.up('[floating]');a.picker.registerWithOwnerCt()}},createPicker:function(){var a=this,b,c=Ext.apply({xtype:'boundlist',id:a.pickerId,pickerField:a,selectionModel:a.pickerSelectionModel,floating:!0,hidden:!0,store:a.getPickerStore(),displayField:a.displayField,preserveScrollOnRefresh:!0,pageSize:a.pageSize,tpl:a.tpl},a.listConfig,a.defaultListConfig);b=a.picker=Ext.widget(c);if(a.pageSize){b.pagingToolbar.on('beforechange',a.onPageChange,a)}if(!b.initialConfig.maxHeight){b.on({beforeshow:a.onBeforePickerShow,scope:a})}b.getSelectionModel().on({beforeselect:a.onBeforeSelect,beforedeselect:a.onBeforeDeselect,focuschange:a.onFocusChange,scope:a});b.getNavigationModel().navigateOnSpace=!1;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(d){var b=this,a=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-a-b.getHeight();d.maxHeight=Math.max(a,c)-5},onBeforeSelect:function(c,b,a){return this.fireEvent('beforeselect',this,b,a)},onBeforeDeselect:function(c,b,a){return this.fireEvent('beforedeselect',this,b,a)},onFocusChange:function(e,d,b){var c=this.picker,a;if(b){a=Ext.get(c.getNodeByRecord(b));if(a){this.ariaEl.dom.setAttribute('aria-activedescendant',a.id)}}},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getPicker().getSelectionModel();if(c){b.select(c);a.hasHadSelection=!0}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var a=this,e=a.store,b=a.valueCollection.getRange(),d=b[0],c=b.length;a.updateBindSelection(a.pickerSelectionModel,b);if(a.isSelectionUpdating()){return}Ext.suspendLayouts();a.lastSelection=b;if(c){a.lastSelectedRecords=b}a.updateValue();if(c&&(!a.multiSelect&&e.contains(d)||a.collapseOnSelect||!e.getCount())){a.updatingValue=!0;a.collapse();a.updatingValue=!1}Ext.resumeLayouts(!0);if(c&&!a.suspendCheckChange){if(!a.multiSelect){b=d}a.fireEvent('select',a,b)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var a=this.getPicker().getNavigationModel();if(a){a.enable()}this.doAutoSelect()},onCollapse:function(){var a=this.getPicker().getNavigationModel();if(a){a.disable()}if(this.updatingValue){this.doQueryTask.cancel()}},select:function(b,e){var a=this,d=a.picker,c;if(b&&b.isModel&&e===!0&&d){c=!d.getSelectionModel().isSelected(b)}if(!c){a.suspendEvent('select')}a.setValue(b);a.resumeEvent('select')},findRecord:function(c,d){var b=this.store,a=b.findExact(c,d);return a!==-1?b.getAt(a):!1},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=!1;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=!1;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,!0)}},setValue:function(b){var a=this;if(b!=null){return a.doSetValue(b)}else {a.suspendEvent('select');a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.endUpdate();a.lastSelectedRecords=null;a.resumeEvent('select')}},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(c,p){var a=this,f=a.getStore(),v=f.getModel(),e=[],u=[],r=a.autoLoadOnValue,m=f.getCount()>0||f.isLoaded(),l=f.hasPendingLoad(),o=r&&!m&&!l,t=a.forceSelection,n=a.pickerSelectionModel,s=a.displayField===a.valueField,j=f.isEmptyStore,k=a.lastSelection,d,h,b,i,g,q;if(l||o||!m||j){if(!c.isModel){if(p){a.value=Ext.Array.from(a.value).concat(c)}else {a.value=c}a.setHiddenValue(a.value);a.setRawValue(s?c:'')}if(o&&!j){f.load()}if(!c.isModel||j){return a}}c=p?Ext.Array.from(a.value).concat(c):Ext.Array.from(c);for(d=0,h=c.length;d0){h.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:'input',type:'hidden',name:i}));a=1;g=d.firstChild}while(a>c){d.removeChild(b[0]);--a}while(am){if(a.anchorToTarget){a.defaultAlign='r-l';if(a.mouseOffset){a.mouseOffset[0]*=-1}}a.anchor='right';return a.getTargetXY()}if(b[1]l){if(a.anchorToTarget){a.defaultAlign='b-t';if(a.mouseOffset){a.mouseOffset[1]*=-1}}a.anchor='bottom';return a.getTargetXY()}}a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl.addCls(a.anchorCls);a.targetCounter=0;return b}else {c=a.getMouseOffset();return a.targetXY?[a.targetXY[0]+c[0],a.targetXY[1]+c[1]]:c}},calculateConstrainedPosition:function(e){var a=this,d,b,c;if(!e&&a.isContainedFloater()){d=a.isVisible();if(!d){a.el.show()}b=a.getTargetXY();if(!d){a.el.hide()}c=a.floatParent.getTargetEl().getViewRegion();b[0]-=c.left;b[1]-=c.top}else {b=a.callOverridden(arguments)}return b},getMouseOffset:function(){var a=this,b=a.anchor?[0,0]:[15,18];if(a.mouseOffset){b[0]+=a.mouseOffset[0];b[1]+=a.mouseOffset[1]}return b},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity('')}})},getAnchorPosition:function(){var a=this,b;if(a.anchor){a.tipAnchor=a.anchor.charAt(0)}else {b=a.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);a.tipAnchor=b[1].charAt(0)}switch(a.tipAnchor){case 't':return 'top';case 'b':return 'bottom';case 'r':return 'right';}return 'left'},getAnchorAlign:function(){switch(this.anchor){case 'top':return 'tl-bl';case 'left':return 'tl-tr';case 'right':return 'tr-tl';default:return 'bl-tl';}},getOffsets:function(){var b=this,c,a,d=b.getAnchorPosition().charAt(0);if(b.anchorToTarget&&!b.trackMouse){switch(d){case 't':a=[0,9];break;case 'b':a=[0,-13];break;case 'r':a=[-13,0];break;default:a=[9,0];break;}}else {switch(d){case 't':a=[-15-b.anchorOffset,30];break;case 'b':a=[-19-b.anchorOffset,-13-b.el.dom.offsetHeight];break;case 'r':a=[-15-b.el.dom.offsetWidth,-13-b.anchorOffset];break;default:a=[25,-13-b.anchorOffset];break;}}c=b.getMouseOffset();a[0]+=c[0];a[1]+=c[1];return a},onTargetOver:function(b){var a=this,d=a.delegate,c;if(a.disabled||b.within(a.target.dom,!0)){return}c=d?b.getTarget(d):!0;if(c){a.triggerElement=c;a.triggerEvent=b;a.clearTimer('hide');a.targetXY=b.getXY();a.delayShow()}},delayShow:function(c){var a=this,b=a.el&&(c===!1||!a.trackMouse)&&a.getTargetXY();if(a.hidden&&!a.showTimer){if(Ext.Date.getElapsed(a.lastActive)=b.length){a.colIdx=0}else {a.colIdx++}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;}}},statics:{compare:function(a,b){return a.rowIdx-b.rowIdx||a.colIdx-b.colIdx}}},1,0,0,0,0,0,[Ext.grid,'CellContext'],0);Ext.cmd.derive('Ext.grid.ColumnComponentLayout',Ext.layout.component.Auto,{type:'columncomponent',setWidthInDom:!0,_paddingReset:{paddingTop:'',paddingBottom:''},columnAutoCls:'x-column-header-text-container-auto',beginLayout:function(a){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);a.titleContext=a.getEl('titleEl')},beginLayoutCycle:function(d){var b=this,a=b.owner,c=d.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(c){a.el.setWidth('')}a.textContainerEl[c&&!a.isGroupHeader?'addCls':'removeCls'](b.columnAutoCls);a.titleEl.setStyle(b._paddingReset)},publishInnerHeight:function(a,e){var d=this,b=d.owner,c;if(b.getRootHeaderCt().hiddenHeaders){a.setProp('innerHeight',0);return}if(!a.hasRawContent){if(b.headerWrap&&!a.hasDomProp('width')){d.done=!1;return}c=e-a.getBorderInfo().height;a.setProp('innerHeight',c-b.titleEl.getHeight(),!1)}},measureContentHeight:function(a){return a.el.dom.offsetHeight},publishInnerWidth:function(a,b){if(!a.hasRawContent){a.setProp('innerWidth',b-a.getBorderInfo().width,!1)}},calculateOwnerHeightFromContentHeight:function(a,c){var d=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),b=this.owner;if(!a.hasRawContent){if(!b.headerWrap||a.hasDomProp('width')){return c+b.titleEl.getHeight()+a.getBorderInfo().height}return null}return d},calculateOwnerWidthFromContentWidth:function(a,d){var c=this.owner,f=a.getPaddingInfo().width,e=this.getTriggerOffset(c,a),b;if(c.isGroupHeader){b=d}else {b=Math.max(d,c.textEl.getWidth()+a.titleContext.getPaddingInfo().width)}return b+f+e},getTriggerOffset:function(a,c){var b=0;if(c.widthModel.shrinkWrap&&!a.menuDisabled){if(a.query('>:not([hidden])').length===0){b=a.getTriggerElWidth()}}return b}},0,0,0,0,['layout.columncomponent'],0,[Ext.grid,'ColumnComponentLayout'],0);Ext.cmd.derive('Ext.layout.container.Fit',Ext.layout.container.Container,{alternateClassName:'Ext.layout.FitLayout',itemCls:'x-fit-item',type:'fit',manageMargins:!0,sizePolicies:{0:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},1:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},2:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},3:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}},getItemSizePolicy:function(d,b){var a=b||this.owner.getSizeModel(),c=(a.width.shrinkWrap?0:1)|(a.height.shrinkWrap?0:2);return this.sizePolicies[c]},beginLayoutCycle:function(a,p){var f=this,j=f.lastHeightModel&&f.lastHeightModel.calculated,m=f.lastWidthModel&&f.lastWidthModel.calculated,l=m||j,h=0,i=0,b,k,g,e,q,n,c,d,o,r;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(l&&a.targetContext.el.dom.tagName.toUpperCase()!=='TD'){l=m=j=!1}k=a.childItems;q=k.length;for(g=0;g0){for(g=0;g'+a.view.emptyText+''}a.view.getComponentLayout().headerCt=a.headerCt;a.mon(a.view,{uievent:a.processEvent,scope:a});a.headerCt.view=a.view;if(a.hasListeners.viewcreated){a.fireEvent('viewcreated',a,a.view)}}return a.view},getColumnManager:function(){return this.columnManager},getVisibleColumnManager:function(){return this.visibleColumnManager},getTopLevelColumnManager:function(){return this.ownerGrid.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},setAutoScroll:Ext.emptyFn,applyScrollable:function(a){if(this.view){this.view.setScrollable(a)}return a},getScrollable:function(){return null},processEvent:function(g,h,f,c,d,b,e,i){var a=b.position.column;if(a){return a.processEvent.apply(a,arguments)}},ensureVisible:function(b,a){this.doEnsureVisible(b,a)},scrollByDeltaY:function(b,a){this.getView().scrollBy(0,b,a)},scrollByDeltaX:function(b,a){this.getView().scrollBy(b,0,a)},afterCollapse:function(){this.saveScrollPos();Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){Ext.panel.Panel.prototype.afterExpand.apply(this,arguments);this.restoreScrollPos()},saveScrollPos:Ext.emptyFn,restoreScrollPos:Ext.emptyFn,onHeaderResize:function(){var a=this.view.getScrollable(),b;if(a&&a.isTouchScroller){b=a.getSize();if(b){a.setSize({x:this.headerCt.getTableWidth(),y:b.y})}}},onHeaderMove:function(e,f,b,c,d){var a=this;if(a.optimizedColumnMove===!1){a.view.refreshView()}else {a.view.moveColumn(c,d,b)}a.delayScroll()},onHeaderHide:function(b,c){var a=this.view;if(!b.childHideCount&&a.refreshCounter){a.refreshView()}},onHeaderShow:function(b,c){var a=this.view;if(a.refreshCounter){a.refreshView()}},onHeadersChanged:function(b,c){var a=this;if(a.rendered&&!a.reconfiguring){a.view.refreshView();a.delayScroll()}},delayScroll:function(){var a=this.view;if(a){this.scrollTask.delay(10,null,null,[a])}},onViewReady:function(){this.fireEvent('viewready',this)},onRestoreHorzScroll:function(){var a=this,b=a.scrollXPos;if(b){a.syncHorizontalScroll(a,!0)}},getScrollerOwner:function(){var a=this;if(!this.scrollerOwner){a=this.up('[scrollerOwner]')}return a},getLhsMarker:function(){var a=this;return a.lhsMarker||(a.lhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getRhsMarker:function(){var a=this;return a.rhsMarker||(a.rhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},updateHeaderBorders:function(a){this[a?'removeCls':'addCls'](this.noHeaderBordersCls)},getNavigationModel:function(){return this.getView().getNavigationModel()},getSelectionModel:function(){return this.getView().getSelectionModel()},getScrollTarget:function(){var a=this.getScrollerOwner().query('tableview');return a[a.length-1]},syncHorizontalScroll:function(e,b){var a=this,c=a.view.getScrollX(),d;b=b===!0;if(a.rendered&&(b||c!==a.scrollXPos)){if(b){d=a.getScrollTarget();d.setScrollX(c)}a.headerCt.setScrollX(c);a.scrollXPos=c}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(b,d){var a=this,c=a.getView();if(b){a.store=b;if(c.store!==b){c.bindStore(b,!1)}a.mon(b,{load:a.onStoreLoad,scope:a});a.storeRelayers=a.relayEvents(b,['filterchange','groupchange'])}else {a.unbindStore()}},unbindStore:function(){var a=this,b=a.store,c;if(b){b.trackStateChanges=!1;a.store=null;a.mun(b,{load:a.onStoreLoad,scope:a});Ext.destroy(a.storeRelayers);c=a.view;if(c.store){c.bindStore(null)}}},setColumns:function(a){if(a.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,a)}},setStore:function(a){this.reconfigure(a);if(this.autoLoad&&!a.isEmptyStore&&!(a.loading||a.isLoaded())){a.load()}},reconfigure:function(b,c){var a=this,f=a.store,e=a.headerCt,i=a.lockable,h=e?e.items.getRange():a.columns,d=a.getView(),j,g;if(arguments.length===1&&Ext.isArray(b)){c=b;b=null}if(c){c=Ext.Array.slice(c)}a.reconfiguring=!0;if(b){b=Ext.StoreManager.lookup(b)}a.fireEvent('beforereconfigure',a,b,c,f,h);Ext.suspendLayouts();if(i){a.reconfigureLockable(b,c)}else {j=d.blockRefresh;d.blockRefresh=!0;if(b&&b!==f){a.unbindStore();a.bindStore(b)}if(c){delete a.scrollXPos;e.removeAll();e.add(c)}d.blockRefresh=j;g=d.refreshCounter}Ext.resumeLayouts(!0);if(i){a.afterReconfigureLockable()}else {if(d.refreshCounter===g){d.refreshView()}}a.fireEvent('reconfigure',a,b,c,f,h);delete a.reconfiguring},beforeDestroy:function(){var a=this,b=a.scrollTask;if(b){b.cancel();a.scrollTask=null}Ext.destroy(a.focusEnterLeaveListeners);Ext.panel.Panel.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.lockable){a.destroyLockable()}a.unbindStore();Ext.panel.Panel.prototype.onDestroy.call(this);a.columns=a.storeRelayers=a.columnManager=a.visibleColumnManager=null},destroy:function(){var a=this;Ext.panel.Panel.prototype.destroy.call(this);if(a.destroyed){a.view=a.selModel=a.headerCt=null}},privates:{initFocusableElement:function(){},doEnsureVisible:function(a,c){if(this.lockable){return this.ensureLockedVisible(a,c)}if(typeof a!=='number'&&!a.isEntity){a=this.store.getById(a)}var b=this,d=b.getView(),f=d.getNode(a),g,h,k,j,m,l,i,e,n;if(c){g=c.callback;h=c.scope;k=c.animate;j=c.highlight;m=c.select;l=c.focus;e=c.column}if(b.deferredEnsureVisible){b.deferredEnsureVisible.destroy()}if(!d.componentLayoutCounter){b.deferredEnsureVisible=d.on({resize:b.doEnsureVisible,args:Ext.Array.slice(arguments),scope:b,single:!0,destroyable:!0});return}if(typeof e==='number'){e=b.ownerGrid.getVisibleColumnManager().getColumns()[e]}if(f){i=d.getScrollable();if(e){n=Ext.fly(f).selectNode(e.getCellSelector())}if(i){i.scrollIntoView(n||f,!!e,k,j)}if(!a.isEntity){a=d.getRecord(f)}if(m){d.getSelectionModel().select(a)}if(l){d.getNavigationModel().setPosition(a,0)}Ext.callback(g,h||b,[!0,a,f])}else {if(d.bufferedRenderer){d.bufferedRenderer.scrollTo(a,{animate:k,highlight:j,select:m,focus:l,column:e,callback:function(f,e,d){Ext.callback(g,h||b,[!0,e,d])}})}else {Ext.callback(g,h||b,[!1,null])}}},getFocusEl:function(){return this.getView().getFocusEl()},setActionableMode:function(b,c){var a=this.ownerGrid;if(!a.destroying&&a.view.setActionableMode(b,c)!==!1){a.fireEvent('actionablemodechange',b);a[b?'addCls':'removeCls'](a.actionableModeCls);return !0}}}},1,['tablepanel'],['component','box','container','panel','tablepanel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0},['widget.tablepanel'],0,[Ext.panel,'Table'],0);Ext.define('Ext.theme.neptune.panel.Table',{override:'Ext.panel.Table',lockableBodyBorder:!0,initComponent:function(){var a=this;(arguments.callee.$previous||Ext.panel.Panel.prototype.initComponent).call(this);if(!a.hasOwnProperty('bodyBorder')&&!a.hideHeaders&&(a.lockableBodyBorder||!a.lockable)){a.bodyBorder=!0}}});Ext.cmd.derive('Ext.grid.ColumnLayout',Ext.layout.container.HBox,{type:'gridcolumn',firstHeaderCls:'x-column-header-first',lastHeaderCls:'x-column-header-last',initLayout:function(){Ext.layout.container.HBox.prototype.initLayout.call(this);if(this.scrollbarWidth===undefined){this.self.prototype.scrollbarWidth=Ext.getScrollbarSize().width}},beginLayout:function(d){var b=this,j=b.owner,e=b.firstHeaderCls,f=b.lastHeaderCls,h=[e,f],i=b.getVisibleItems(),g=i.length,c,a;Ext.layout.container.HBox.prototype.beginLayout.call(this,d);for(c=0;c0){b=this.getColumns()[a-1]}return b},getNextSibling:function(c){var a=this.getHeaderIndex(c),b;if(a!==-1){b=this.getColumns()[a+1]}return b||null},getFirst:function(){var a=this.getColumns();return a.length>0?a[0]:null},getLast:function(){var a=this.getColumns(),b=a.length;return b>0?a[b-1]:null},getHeaderByDataIndex:function(d){var c=this.getColumns(),e=c.length,a,b;for(a=0;a=d.left&&e=n.getMaxPosition().y-c.all.last(!0).offsetHeight){b.rowIdx--}e=Math.min(b.rowIdx,h.getCount()-1);f=Math.min(f,j.getColumns().length);d=h.getAt(e);i=j.getColumns()[f]}}else {if(k){d=e=null}else {if(g==null){g=a.lastFocused?a.lastFocused.column:0}if(typeof b==='number'){e=Math.max(Math.min(b,h.getCount()-1),0);d=h.getAt(b)}else {if(b.isEntity){d=b;e=h.indexOf(d)}else {if(b.tagName){d=c.getRecord(b);e=h.indexOf(d);if(e===-1){d=null}}else {if(p){return}k=!0;d=e=null}}}}if(d){if(e===-1){a.recordIndex=-1;d=h.getAt(0);e=0;g=null}if(g==null){if(!(i=a.column)){f=0;i=j.getColumns()[0]}}else {if(typeof g==='number'){i=j.getColumns()[g];f=g}else {i=g;f=j.indexOf(g)}}}else {k=!0;i=f=null}}if(e===a.recordIndex&&f===a.columnIndex&&c===a.position.view){return a.focusPosition(a.position)}if(a.cell){a.cell.removeCls(a.focusCls)}a.previousRecordIndex=a.recordIndex;a.previousRecord=a.record;a.previousItem=a.item;a.previousCell=a.cell;a.previousColumn=a.column;a.previousColumnIndex=a.columnIndex;a.previousPosition=a.position.clone();a.selectionStart=m.selectionStart;a.position.setAll(c,a.recordIndex=e,a.columnIndex=f,a.record=d,a.column=i);if(k){a.item=a.cell=null}else {a.focusPosition(a.position,o)}if(!q){m.fireEvent('focuschange',m,a.previousRecord,a.record);c.fireEvent('rowfocus',a.record,a.item,a.recordIndex);c.fireEvent('cellfocus',a.record,a.cell,a.position)}if(l&&!o&&a.cell!==a.previousCell){a.fireNavigateEvent(l)}},focusPosition:function(b){var a=this,c,d;a.item=a.cell=null;if(b&&b.record&&b.column){c=b.view;if(b.rowElement){d=a.item=b.rowElement}else {d=c.getRowByRecord(b.record)}if(d){a.cell=b.cellElement||Ext.fly(d).down(b.column.getCellSelector(),!0);if(a.cell){a.cell=new Ext.dom.Fly(a.cell);c.lastFocused=a.lastFocused=a.position.clone();a.focusItem(a.cell);c.focusEl=a.cell}else {a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null}}else {d=c.dataSource.indexOf(b.record);a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null;if(d!==-1&&c.bufferedRenderer){a.lastKeyEvent=null;c.bufferedRenderer.scrollTo(d,!1,a.afterBufferedScrollTo,a)}}}},focusItem:function(a){a.addCls(this.focusCls);a.focus()},getCell:function(){return this.cell},getPosition:function(f){var c=this,a=c.position,b,e,d;if(a.record&&a.column){if(f){return a}e=a.view;d=e.dataSource;b=d.indexOf(a.record);if(b===-1){b=a.rowIdx;if(!(a.record=d.getAt(b))){b=-1}}if(b===-1||e.getVisibleColumnManager().indexOf(a.column)===-1){a.setAll();c.record=c.column=c.recordIndex=c.columnIndex=null}else {return a}}return null},getLastFocused:function(){var c=this,b,a=c.lastFocused;if(a&&a.record&&a.column){b=a.view;if(b.dataSource.indexOf(a.record)!==-1&&b.getVisibleColumnManager().indexOf(a.column)!==-1){return a}}},onKeyTab:function(a){var e=!a.shiftKey,d=a.position.clone(),g=d.view,f=a.position.cellElement,b=Ext.fly(f).findTabbableElements(),c,i=g.ownerGrid.actionables,j=i.length,h;a.preventDefault();c=b[Ext.Array.indexOf(b,a.target)+(e?1:-1)];while(!c&&(f=f[e?'nextSibling':'previousSibling'])){d.setColumn(g.getHeaderByCell(f));for(h=0;hj.height}a.setProp('viewOverflowY',i)}},measureContentHeight:function(e){var d=this.owner,b=d.body.dom,c=d.emptyEl,a=0;if(c){a+=c.offsetHeight}if(b){a+=b.offsetHeight}if(e.headerContext.state.boxPlan.tooNarrow){a+=Ext.getScrollbarSize().height}return a},flushColumnWidths:function(){var a=this,i=a.layout,d=a.ownerContext,g=a.columnsChanged,h=d.target,j=g.length,b,c,e,f;if(d.state.columnFlusher!==a){return}for(c=0;c0){h+=b;Ext.fly(f[c].el).setHeight(a)}else {g-=b}}a=i.rowHeight+g;if(Ext.isIE9&&d.view.ownerGrid.rowLines){a--}if(d.rowHeight+h=c+d;a--){e[a]=e[a-d];e[a].setAttribute('data-recordIndex',a)}}b.endIndex=b.endIndex+d}else {b.startIndex=c;b.endIndex=c+d-1}for(a=0;ab.endIndex){delete d[a]}}while(a!==f);delete d[a]},getCount:function(){return this.count},slice:function(e,a){var d=this.elements,c=[],b;if(!a){a=this.endIndex}else {a=Math.min(this.endIndex,a-1)}for(b=e||this.startIndex;b<=a;b++){c.push(d[b])}return c},replaceElement:function(a,b,d){var e=this.elements,c=typeof a==='number'?a:this.indexOf(a);if(c>-1){b=Ext.getDom(b);if(d){a=e[c];a.parentNode.insertBefore(b,a);Ext.removeNode(a);b.setAttribute('data-recordIndex',c)}this.elements[c]=b}return this},indexOf:function(b){var c=this.elements,a;b=Ext.getDom(b);for(a=this.startIndex;a<=this.endIndex;a++){if(c[a]===b){return a}}return -1},removeRange:function(g,c,j){var a=this,e=a.elements,i=[],d,b,h,f;if(c==null){c=a.endIndex+1}else {c=Math.min(a.endIndex+1,c+1)}if(g==null){g=a.startIndex}h=c-g;for(b=g,f=c;b<=a.endIndex;b++,f++){d=e[b];if(b=b.startIndex&&f<=b.endIndex){a[a.length]=f}}Ext.Array.sort(a);e=a.length}else {if(ab.endIndex){return}e=1;a=[a]}for(d=g=a[0],c=0;d<=b.endIndex;d++,g++){if(c=b.startIndex){j=h[d]=h[g];j.setAttribute('data-recordIndex',d)}else {delete h[d]}}b.endIndex-=e;b.count-=e},scroll:function(i,t,m){var b=this,e=b.view,p=e.store,c=b.elements,r=i.length,q=e.getNodeContainer(),k=e.hasListeners.itemremove,s=e.hasListeners.itemadd,h=b.statics().range,a,d,o,j,l,n,f,g;if(!i.length){return}if(t===-1){if(m){if(k){f=[];g=[]}n=b.endIndex-m+1;if(h){h.setStartBefore(c[n]);h.setEndAfter(c[b.endIndex]);h.deleteContents();for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}else {for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];Ext.removeNode(d);if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}e.fireEvent('itemremove',f,n,g,e);b.endIndex-=m}if(i.length){l=e.bufferRender(i,b.startIndex-=r);j=l.children;for(a=0;a','{[view.renderTHead(values, out, parent)]}','{%','view.renderRows(values.rows, values.columns, values.viewStartIndex, out);','%}','{[view.renderTFoot(values, out, parent)]}','','{% ','view = columns = column = null;','%}',{definitions:'var view, tableCls, columns, i, len, column;',priority:0}],outerRowTpl:['','{%','this.nextTpl.applyOut(values, out, parent)','%}','',{priority:9999}],rowTpl:['{%','var dataRowCls = values.recordIndex === -1 ? "" : " x-grid-row";','%}','','{%','parent.view.renderCell(values, parent.record, parent.recordIndex, parent.rowIndex, xindex - 1, out, parent)','%}','','',{priority:0}],cellTpl:['{tdStyle}"',' tabindex="-1" data-columnid="{[values.column.getItemId()]}">','
    {style}" ','{cellInnerAttr:attributes}>{value}
    ','',{priority:0}],refreshSelmodelOnRefresh:!1,tableValues:{},rowValues:{itemClasses:[],rowClasses:[]},cellValues:{classes:['x-grid-cell x-grid-td']},constructor:function(a){if(a.grid.isTree){a.baseCls='x-tree-view'}Ext.view.View.prototype.constructor.call(this,a)},hasVariableRowHeight:function(b){var a=this;return a.variableRowHeight||a.store.isGrouped()||a.getVisibleColumnManager().hasVariableRowHeight()||!b&&a.lockingPartner&&a.lockingPartner.hasVariableRowHeight(!0)},initComponent:function(){var a=this;if(a.columnLines){a.addCls(a.grid.colLinesCls)}if(a.rowLines){a.addCls(a.grid.rowLinesCls)}a.body=new Ext.dom.Fly();a.body.id=a.id+'gridBody';if(!a.trackOver){a.overItemCls=null}a.headerCt.view=a;a.grid.view=a;a.initFeatures(a.grid);a.itemSelector=a.getItemSelector();a.all=new Ext.view.NodeCache(a);Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(a,f){var d=this,b=d.ownerGrid,e=a.type,c=d.disableSelection||b.disableSelection;if(!f){if(!(a&&a.isSelectionModel)){a=b.selModel||a}}if(a){if(a.isSelectionModel){a.allowDeselect=b.allowDeselect||a.selectionMode!=='SINGLE';a.locked=c}else {if(typeof a==='string'){a={type:a}}else {a.type=b.selType||a.selType||a.type||e}if(!a.mode){if(b.simpleSelect){a.mode='SIMPLE'}else {if(b.multiSelect){a.mode='MULTI'}}}a=Ext.Factory.selection(Ext.apply({allowDeselect:b.allowDeselect,locked:c},a))}}return a},updateSelectionModel:function(b,c){var a=this;if(c){c.un({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});Ext.destroy(a.selModelRelayer)}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});a.selModel=b},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(c,h,j){var b=this,m=j>1,e=m&&document.createRange?document.createRange():null,g=m&&!e?document.createDocumentFragment():null,l=h,p=b.getGridColumns().length,k=p-1,r=(b.firstCls||b.lastCls)&&(h===0||h===p||c===0||c===k),f,i,q,n,d,a,o;if(b.rendered&&h!==c){q=b.el.query(b.rowSelector);for(f=0,n=q.length;f=(a-1)*b&&d.endIndex<=a*b-1){c.get(a);return !1}},onViewScroll:function(a,b,c){if(!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,a,b,c)}},createRowElement:function(e,f,d){var a=this,c=a.renderBuffer,b=a.collectData([e],f);b.columns=d;a.tpl.overwrite(c,b);a.cleanupData();return Ext.fly(c).down(a.getNodeContainerSelector(),!0).firstChild},bufferRender:function(e,f){var c=this,a=c.renderBuffer,b,d=document.createRange?document.createRange():null;c.tpl.overwrite(a,c.collectData(e,f));c.cleanupData();Ext.fly(a).saveTabbableState({skipSelf:!0,includeHidden:!0});a=Ext.fly(a).down(c.getNodeContainerSelector(),!0);if(d){d.selectNodeContents(a);b=d.extractContents()}else {b=document.createDocumentFragment();while(a.firstChild){b.appendChild(a.firstChild)}}return {fragment:b,children:Ext.Array.toArray(b.childNodes)}},collectData:function(c,b){var a=this;a.rowValues.view=a;a.tableValues.view=a;a.tableValues.rows=c;a.tableValues.columns=null;a.tableValues.viewStartIndex=b;a.tableValues.touchScroll=a.touchScroll;a.tableValues.tableStyle='width:'+a.headerCt.getTableWidth()+'px';return a.tableValues},cleanupData:function(){var a=this.tableValues;a.view=a.columns=a.rows=this.rowValues.view=null},refreshSize:function(c){var a=this,b=a.getBodySelector();if(b){a.body.attach(a.el.down(b,!0))}if(!a.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.apply(this,arguments);if(c||a.hasVariableRowHeight()&&a.dataSource.getCount()){a.grid.updateLayout()}Ext.resumeLayouts(!0)}},clearViewEl:function(g){var a=this,b=a.all,i=a.getStore(),d,c,f,h=b.slice(),e=[];if(a.hasListeners.itemremove){for(d=b.startIndex;d<=b.endIndex;d++){e.push(i.getByInternalId(b.item(d,!0).getAttribute('data-recordId')))}}a.fireEvent('itemremove',e,b.startIndex,h,a);Ext.view.View.prototype.clearViewEl.call(this);c=Ext.fly(a.getNodeContainer());if(c&&!g){f=a.getTargetEl();if(f.dom!==c.dom){c.destroy()}}},getMaskTarget:function(){return this.ownerCt.body},statics:{getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},getRecord:function(a){if(this.store.destroyed){return}if(a.isModel){return a}a=this.getNode(a);if(a){return this.dataSource.getByInternalId(a.getAttribute('data-recordId'))}},indexOf:function(a){a=this.getNode(a);if(!a&&a!==0){return -1}return this.all.indexOf(a)},indexInStore:function(a){return a?this.dataSource.indexOf(this.getRecord(a)):-1},indexOfRow:function(a){var c=this.dataSource,b;if(a.isCollapsedPlaceholder){b=c.indexOfPlaceholder(a)}else {b=c.indexOf(a)}return b},renderRows:function(e,g,d,h){var b=this,a=b.rowValues,f=e.length,c;a.view=b;a.columns=g;a.rowRole=b.rowAriaRole;b.cellValues.cellRole=b.cellAriaRole;for(c=0;c');for(a=0;a')}d.push('')},renderRow:function(c,e,j){var a=this,k=e===-1,h=a.selectionModel,b=a.rowValues,d=b.itemClasses,g=b.rowClasses,l=a.itemCls,f,i=a.rowTpl;b.rowAttr={};b.record=c;b.recordId=c.internalId;b.recordIndex=a.store.indexOf(c);b.rowIndex=e;b.rowId=a.getRowId(c);b.itemCls=b.rowCls='';if(!b.columns){b.columns=a.ownerCt.getVisibleColumnManager().getColumns()}d.length=g.length=0;if(!k){d[0]=l;if(!a.ownerCt.disableSelection&&h.isRowSelected){if(h.isRowSelected(c)){d.push(a.selectedItemCls)}}if(a.stripeRows&&e%2!==0){d.push(a.altRowCls)}if(a.getRowClass){f=a.getRowClass(c,e,null,a.dataSource);if(f){g.push(f)}}}if(j){i.applyOut(b,j,a.tableValues)}else {return i.apply(b,a.tableValues)}},renderCell:function(b,f,j,n,m,p){var c=this,l,h=c.selectionModel,a=c.cellValues,d=a.classes,k=f.data[b.dataIndex],o=c.cellTpl,g,e,i=c.navigationModel.getPosition();a.record=f;a.column=b;a.recordIndex=j;a.rowIndex=n;a.columnIndex=a.cellIndex=m;a.align=b.align;a.innerCls=b.innerCls;a.tdCls=a.tdStyle=a.tdAttr=a.style='';a.unselectableAttr=c.enableTextSelection?'':'unselectable="on"';d[1]=b.getCellId();e=2;if(b.renderer&&b.renderer.call){l=c.ownerCt.columnManager.getHeaderIndex(b);g=b.renderer.call(b.usingDefaultRenderer?b:b.scope||c.ownerCt,k,a,f,j,l,c.dataSource,c);if(a.css){f.cssWarning=!0;a.tdCls+=' '+a.css;a.css=null}if(a.tdCls){d[e++]=a.tdCls}}else {g=k}a.value=g==null||g===''?b.emptyCellText:g;if(b.tdCls){d[e++]=b.tdCls}if(c.markDirty&&f.dirty&&f.isModified(b.dataIndex)){d[e++]=c.dirtyCls}if(b.isFirstVisible){d[e++]=c.firstCls}if(b.isLastVisible){d[e++]=c.lastCls}if(!c.enableTextSelection){d[e++]=c.unselectableCls}if(h&&(h.isCellModel||h.isSpreadsheetModel)&&h.isCellSelected(c,j,b)){d[e++]=c.selectedCellCls}if(i&&i.record.id===f.id&&i.column===b){d[e++]=c.focusedItemCls}d.length=e;a.tdCls=d.join(' ');o.applyOut(a,p);a.column=a.record=null},getRow:function(a){var b;if(!a&&a!==0||!this.rendered){return null}if(a.target){a=a.target}if(Ext.isString(a)){return Ext.fly(a).down(this.rowSelector,!0)}if(Ext.isNumber(a)){b=this.all.item(a);return b&&b.down(this.rowSelector,!0)}if(a.isModel){return this.getRowByRecord(a)}b=Ext.fly(a);if(b.is(this.itemSelector)){return this.getRowFromItem(b)}return b.findParent(this.rowSelector,this.getTargetEl())},getRowId:function(a){return this.id+'-record-'+a.internalId},constructRowId:function(a){return this.id+'-record-'+a},getNodeById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!1)},getRowById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!0)},getNodeByRecord:function(a){return this.retrieveNode(this.getRowId(a),!1)},getRowByRecord:function(a){return this.retrieveNode(this.getRowId(a),!0)},getRowFromItem:function(c){var b=Ext.getDom(c).tBodies[0].childNodes,d=b.length,a;for(a=0;a1){A=c._extData;j=a.createRowElement(d,a.indexOfRow(d),f);if(Ext.fly(c,'_internal').hasCls(u)){Ext.fly(j).addCls(u)}if(Ext.isIE9m&&c.mergeAttributes){c.mergeAttributes(j,!0)}else {o=j.attributes;H=o.length;for(l=0;l0){if(Ext.supports.ScrollWidthInlinePaddingBug){e+=c.getCellPaddingAfter(d[0])}if(c.columnLines){e+=Ext.fly(d[0].parentNode).getBorderWidth('lr')}}g.setWidth(1);b.textEl.setStyle({'text-overflow':'clip',display:'table-cell'});a=b.textEl.dom.offsetWidth+b.titleEl.getPadding('lr');b.textEl.setStyle({'text-overflow':'',display:''});for(;fh){return !1}if(d){b.view=d}b.setPosition(a,0)}else {b.navigate(+1)};break;case 'left':if(e.isFirstColumn()){a=d&&c.isNormalView?a:a-1;if(a<0){return !1}if(d){b.view=d;f=d.getVisibleColumnManager().getColumns()}b.setPosition(a,f[f.length-1])}else {b.navigate(-1)};break;case 'up':if(a===0){return !1}else {b.setRow(a-1)};break;case 'down':if(a===h){return !1}else {b.setRow(a+1)};break;}if(g&&g.call(j||c,b)!==!0){return !1}return b},walkRows:function(f,e){var i=this,j=i.dataSource,g=0,d=f,h,b=e<0?0:j.getCount()-1,c=b?1:-1,a=f;do{if(b?a>=b:a<=b){return d||b}a+=c;if((h=Ext.fly(i.getRow(a)))&&h.isVisible(!0)){g+=c;d=a}}while(g!==e);return a},walkRecs:function(h,g){var k=this,a=k.dataSource,i=0,e=h,j,c=g<0?0:(a.isBufferedStore?a.getTotalCount():a.getCount())-1,f=c?1:-1,b=a.indexOf(h),d;do{if(c?b>=c:b<=c){return e}b+=f;d=a.getAt(b);if(!d.isCollapsedPlaceholder&&(j=Ext.fly(k.getNodeByRecord(d)))&&j.isVisible(!0)){i+=f;e=d}}while(i!==g);return e},getFirstVisibleRowIndex:function(){var a=this,c=a.dataSource.isBufferedStore?a.dataSource.getTotalCount():a.dataSource.getCount(),b=a.indexOf(a.all.first())-1;do{b+=1;if(b===c){return}}while(!Ext.fly(a.getRow(b)).isVisible(!0));return b},getLastVisibleRowIndex:function(){var b=this,a=b.indexOf(b.all.last());do{a-=1;if(a===-1){return}}while(!Ext.fly(b.getRow(a)).isVisible(!0));return a},getHeaderCt:function(){return this.headerCt},getPosition:function(b,a){return (new Ext.grid.CellContext(this)).setPosition(b,a)},onDestroy:function(){var a=this,c=a.featuresMC,d,b;if(c){for(b=0,d=c.getCount();b=a.viewSize)){a.onReplace(e,d,[],c)}else {Ext.view.View.prototype.onAdd.apply(this,arguments)}b.setPendingStripe(d)},onRemove:function(f,d,e){var a=this,b=a.bufferedRenderer,c;if(a.rendered&&b&&a.dataSource.getCount()+d.length>=b.viewSize){c=a.saveFocusState();b.onReplace(f,e,d,[]);c()}else {Ext.view.View.prototype.onRemove.apply(this,arguments)}a.setPendingStripe(e)},saveFocusState:function(){var b=this,g=b.dataSource,c=b.actionableMode,d=b.getNavigationModel(),a=c?b.actionPosition:d.getPosition(!0),f,e;if(a){a=a.clone();if(c){b.ownerGrid.setActionableMode(!1)}b.el.dom.focus();d.setPosition();return function(){if(g.getCount()){f=Math.min(a.rowIdx,b.all.getCount()-1);e=Math.min(a.colIdx,b.getVisibleColumnManager().getColumns().length-1);a=(new Ext.grid.CellContext(b)).setPosition(g.contains(a.record)?a.record:f,e);if(c){b.ownerGrid.setActionableMode(!0,a)}else {b.cellFocused=!0;d.setPosition(a,null,null,null,!0)}}else {a.column.focus()}}}return Ext.emptyFn},onDataRefresh:function(c){var b=this,a=b.ownerCt;if(a&&a.isCollapsingOrExpanding===2){a.on('expand',b.onDataRefresh,b,{single:!0});return}Ext.view.View.prototype.onDataRefresh.call(this,c)},getViewRange:function(){var a=this;if(a.bufferedRenderer){return a.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(b){var a=this.stripeOnUpdate;if(a===null){a=b}else {a=Math.min(a,b)}this.stripeOnUpdate=a},onEndUpdate:function(){var b=this,a=b.stripeOnUpdate,c=b.all.startIndex;if(b.rendered&&(a||a===0)){if(a-1)&&!g;b=b+(c?1:-1)){o=n[b];e.setColumn(o);k=Ext.fly(d).down(e.column.getCellSelector());for(h=0;h=0&&!(b.isGroupHeader&&(!b.items||!b.items.length))&&h!==c){i=a.isGroupHeader?a.query(':not([hidden]):not([isGroupHeader])').length:1;if(h<=c&&i>1){c-=i}d.getRootHeaderCt().grid.view.moveColumn(h,c,i)}p.fireEvent('columnmove',e,a,h,c);e.isDDMoveInGrid=d.isDDMoveInGrid=!1;if(d.isGroupHeader&&!e.isGroupHeader){if(e!==d){a.savedFlex=a.flex;delete a.flex;a.width=o}}else {if(!e.isGroupHeader){if(a.savedFlex){a.flex=a.savedFlex;delete a.width}}}Ext.resumeLayouts(!0)}}},1,0,0,0,0,0,[Ext.grid.header,'DropZone'],0);Ext.cmd.derive('Ext.grid.plugin.HeaderReorderer',Ext.plugin.Abstract,{init:function(a){this.headerCt=a;a.on({boxready:this.onHeaderCtRender,single:!0,scope:this})},destroy:function(){var a=this;a.headerCt.un('boxready',a.onHeaderCtRender,a);Ext.destroy(a.dragZone,a.dropZone);a.headerCt=a.dragZone=a.dropZone=null;Ext.plugin.Abstract.prototype.destroy.call(this)},onHeaderCtRender:function(){var a=this;a.dragZone=new Ext.grid.header.DragZone(a.headerCt);a.dropZone=new Ext.grid.header.DropZone(a.headerCt);if(a.disabled){a.dragZone.disable()}},enable:function(){this.disabled=!1;if(this.dragZone){this.dragZone.enable()}},disable:function(){this.disabled=!0;if(this.dragZone){this.dragZone.disable()}}},0,0,0,0,['plugin.gridheaderreorderer'],0,[Ext.grid.plugin,'HeaderReorderer'],0);Ext.cmd.derive('Ext.grid.header.Container',Ext.container.Container,{border:!0,baseCls:'x-grid-header-ct',dock:'top',weight:100,defaultType:'gridcolumn',detachOnRemove:!1,defaultWidth:100,sortAscText:'Sort Ascending',sortDescText:'Sort Descending',sortClearText:'Clear Sort',columnsText:'Columns',headerOpenCls:'x-column-header-open',menuSortAscCls:'x-hmenu-sort-asc',menuSortDescCls:'x-hmenu-sort-desc',menuColsIcon:'x-cols-icon',blockEvents:!1,dragging:!1,sortOnClick:!0,enableFocusableContainer:!1,childHideCount:0,sortable:!0,enableColumnHide:!0,initComponent:function(){var a=this;a.plugins=a.plugins||[];a.defaults=a.defaults||{};if(!a.isColumn){if(a.enableColumnResize){a.resizer=new Ext.grid.plugin.HeaderResizer();a.plugins.push(a.resizer)}if(a.enableColumnMove){a.reorderer=new Ext.grid.plugin.HeaderReorderer();a.plugins.push(a.reorderer)}}if(a.isColumn&&!a.isGroupHeader){if(!a.items||a.items.length===0){a.isContainer=a.isFocusableContainer=!1;a.focusable=!0;a.layout={type:'container',calculate:Ext.emptyFn}}}else {a.layout=Ext.apply({type:'gridcolumn',align:'stretch'},a.initialConfig.layout);a.defaults.columnLines=a.columnLines;if(!a.isGroupHeader){a.isRootHeader=!0;if(!a.hiddenHeaders){a.enableFocusableContainer=!0;a.ariaRole='rowgroup'}a.columnManager=new Ext.grid.ColumnManager(!1,a);a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);if(a.grid){a.grid.columnManager=a.columnManager;a.grid.visibleColumnManager=a.visibleColumnManager}}else {a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);a.columnManager=new Ext.grid.ColumnManager(!1,a)}}a.menuTask=new Ext.util.DelayedTask(a.updateMenuDisabledState,a);Ext.container.Container.prototype.initComponent.call(this)},insertNestedHeader:function(d){var b=this,e=d.ownerCt,f=b.ownerCt,c=f.layout.owner,a;if(e){if(b.isGroupHeader&&!f.isNestedParent){a=c.items.indexOf(b)}e.remove(d,!1)}if(a===undefined){a=c.items.indexOf(b)}c.insert(a,d)},isNested:function(){return !!this.getRootHeaderCt().down('[isNestedParent]')},isNestedGroupHeader:function(){var a=this,b=a.getRefOwner().query('>:not([hidden])');return b.length===1&&b[0]===a},maybeShowNestedGroupHeader:function(){var a=this.items,b;if(a&&a.length===1&&(b=a.getAt(0))&&b.hidden){b.show()}},setNestedParent:function(a){a.isNestedParent=!1;a.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&a.ownerCt.items.length===1)},initEvents:function(){var a=this,b,c;Ext.container.Container.prototype.initEvents.call(this);if(!a.isColumn&&!a.isGroupHeader){b=a.onHeaderCtEvent;c={click:b,dblclick:b,contextmenu:b,mouseover:a.onHeaderCtMouseOver,mouseout:a.onHeaderCtMouseOut,scope:a};if(Ext.supports.Touch){c.longpress=a.onHeaderCtLongPress}a.mon(a.el,c)}},onHeaderCtEvent:function(a,g){var c=this,f=c.getHeaderElByEvent(a),b,e,d;if(c.longPressFired){c.longPressFired=!1;return}if(f&&!c.blockEvents){b=Ext.getCmp(f.id);if(b){e=b[b.clickTargetName];if(!b.isGroupHeader&&!b.isContainer||a.within(e)){if(a.type==='click'||a.type==='tap'){d=b.onTitleElClick(a,e,c.sortOnClick);if(d){c.onHeaderTriggerClick(d,a,a.pointerType==='touch'?d.el:d.triggerEl)}else {c.onHeaderClick(b,a,g)}}else {if(a.type==='contextmenu'){c.onHeaderContextMenu(b,a,g)}else {if(a.type==='dblclick'&&b.resizable){b.onTitleElDblClick(a,e.dom)}}}}}}},blockNextEvent:function(){this.blockEvents=!0;Ext.asap(this.unblockEvents,this)},unblockEvents:function(){this.blockEvents=!1},onHeaderCtMouseOver:function(b,e){var c,a,d;if(!b.within(this.el,!0)){c=b.getTarget('.'+Ext.grid.column.Column.prototype.baseCls);a=c&&Ext.getCmp(c.id);if(a){d=a[a.clickTargetName];if(b.within(d)){a.onTitleMouseOver(b,d.dom)}}}},onHeaderCtMouseOut:function(c,g){var f='.'+Ext.grid.column.Column.prototype.baseCls,d=c.getTarget(f),e=c.getRelatedTarget(f),a,b;if(d!==e){if(d){a=Ext.getCmp(d.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOut(c,b.dom)}}if(e){a=Ext.getCmp(e.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOver(c,b.dom)}}}},onHeaderCtLongPress:function(d){var a=this,b=a.getHeaderElByEvent(d),c=Ext.getCmp(b.id);if(!c.menuDisabled){a.longPressFired=!0;a.showMenuBy(d,b,c)}},getHeaderElByEvent:function(a){return a.getTarget('.'+Ext.grid.column.Column.prototype.baseCls)},isLayoutRoot:function(){if(this.hiddenHeaders){return !1}return Ext.container.Container.prototype.isLayoutRoot.call(this)},getRootHeaderCt:function(){var a=this;return a.isRootHeader?a:a.up('[isRootHeader]')},onDestroy:function(){var a=this;if(a.menu){a.menu.un('hide',a.onMenuHide,a)}a.menuTask.cancel();Ext.container.Container.prototype.onDestroy.call(this);Ext.destroy(a.visibleColumnManager,a.columnManager,a.menu);a.columnManager=a.visibleColumnManager=null},applyColumnsState:function(h,n){if(!h||!h.length){return}var f=this,m=f.items.items,o=m.length,b=0,i=h.length,g,e,a,d,k=!1,c=[],l={},j=[];for(g=0;g=a.visibleFromIdx){b++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(a.isGroupHeader){c=a.visibleColumnManager.getColumns().length}d.onHeaderMoved(a,c,a.visibleFromIdx,b)},maybeContinueRemove:function(){var a=this;return a.isGroupHeader&&!a.applyingState&&!a.isNestedParent&&a.ownerCt&&!a.items.getCount()},onRemove:function(b,c){var a=this,d=a.ownerCt,e=b.lastHiddenHeader;Ext.container.Container.prototype.onRemove.call(this,b,c);if(!a.destroying){if(!a.isDDMoveInGrid){a.onHeadersChanged(b,!1)}if(a.maybeContinueRemove()){if(b.rendered){a.detachComponent(b)}Ext.suspendLayouts();d.remove(a);Ext.resumeLayouts(!0)}}},onHeadersChanged:function(c,d){var b,a=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(a){a.onColumnsChanged();if(!c.isGroupHeader){b=a.ownerCt;if(b&&!d){b.onHeadersChanged(a,c)}}}},onHeaderMoved:function(d,f,c,e){var a=this,b=a.ownerCt;if(a.rendered){if(b&&b.onHeaderMove){b.onHeaderMove(a,d,f,c,e)}a.fireEvent('columnmove',a,d,c,e)}},onColumnsChanged:function(){var a=this,b=a.menu,c,d;if(a.rendered){a.fireEvent('columnschanged',a);if(b&&(c=b.child('#columnItemSeparator'))){d=b.child('#columnItem');c.destroy();d.destroy()}}},lookupComponent:function(b){var a=Ext.container.Container.prototype.lookupComponent.apply(this,arguments);if(!a.isGroupHeader&&a.width===undefined&&!a.flex){a.width=this.defaultWidth}return a},setSortState:function(){var e=this.up('[store]').store,d=this.visibleColumnManager.getColumns(),f=d.length,c,b,a;for(c=0;cgridcolumn[hideable]'),g=e.length,d;for(;cj.el.dom.clientHeight?Ext.getScrollbarSize().width:0),n=0,e=k.getVisibleGridColumns(),o=b.hidden,f,c,a,g,d;function getTotalFlex(){for(c=0,f=e.length;cg){b.width=g;l=!0}else {b.width=d;h-=d+m;getTotalFlex()}applyWidth();Ext.resumeLayouts(!0)},autoSizeColumn:function(a){var b=this.view;if(b){b.autoSizeColumn(a);if(this.forceFit){this.applyForceFit(a)}}},getRefItems:function(b){var a=Ext.container.Container.prototype.getRefItems.call(this,b);if(this.menu){a.push(this.menu)}return a},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},createFocusableContainerKeyNav:function(b){var a=this;return new Ext.util.KeyNav(b,{scope:a,down:a.showHeaderMenu,left:a.onFocusableContainerLeftKey,right:a.onFocusableContainerRightKey,home:a.onHomeKey,end:a.onEndKey,space:a.onHeaderActivate,enter:a.onHeaderActivate})},onHomeKey:function(a){return this.focusChild(null,!0,a)},onEndKey:function(a){return this.focusChild(null,!1,a)},showHeaderMenu:function(b){var a=this.getFocusableFromEvent(b);if(a&&a.isColumn&&a.triggerEl){this.onHeaderTriggerClick(a,b,a.triggerEl)}},onHeaderActivate:function(d){var a=this.getFocusableFromEvent(d),c,b;if(a&&a.isColumn){c=a.getView();if(a.sortable&&this.sortOnClick){b=c.getNavigationModel().getLastFocused();a.toggleSortState();if(b){c.ownerCt.ensureVisible(b.record)}}this.onHeaderClick(a,d,a.el)}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {a.focus()}}}},0,['headercontainer'],['component','box','container','headercontainer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0},['widget.headercontainer'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.grid.header,'Container'],0);Ext.cmd.derive('Ext.grid.column.Column',Ext.grid.header.Container,{alternateClassName:'Ext.grid.Column',config:{triggerVisible:!1,sorter:null},baseCls:'x-column-header',hoverCls:'x-column-header-over',ariaRole:'columnheader',enableFocusableContainer:!1,sortState:null,possibleSortStates:['ASC','DESC'],ariaSortStates:{ASC:'ascending',DESC:'descending'},childEls:['titleEl','triggerEl','textEl','textContainerEl'],headerWrap:!1,renderTpl:['','{%this.renderContainer(out,values)%}'],dataIndex:null,text:' ',menuText:null,emptyCellText:' ',sortable:!0,resizable:!0,hideable:!0,menuDisabled:!1,renderer:!1,align:'left',draggable:!0,tooltipType:'qtip',initDraggable:Ext.emptyFn,tdCls:'',producesHTML:!0,ignoreExport:!1,isHeader:!0,isColumn:!0,tabIndex:-1,ascSortCls:'x-column-header-sort-ASC',descSortCls:'x-column-header-sort-DESC',componentLayout:'columncomponent',groupSubHeaderCls:'x-group-sub-header',groupHeaderCls:'x-group-header',clickTargetName:'titleEl',detachOnRemove:!0,initResizable:Ext.emptyFn,rendererNames:{column:'renderer',edit:'editRenderer',summary:'summaryRenderer'},formatterNames:{column:'formatter',edit:'editFormatter',summary:'summaryFormatter'},initComponent:function(){var a=this;if(!a.rendererScope){a.rendererScope=a.scope}if(a.header!=null){a.text=a.header;a.header=null}if(a.cellWrap){a.tdCls=(a.tdCls||'')+' x-wrap-cell'}if(a.columns!=null){a.isGroupHeader=!0;a.ariaRole='presentation';a.items=a.columns;a.columns=a.flex=a.width=null;a.cls=(a.cls||'')+' '+a.groupHeaderCls;a.sortable=a.resizable=!1;a.align='center'}else {if(a.flex){a.minWidth=a.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}a.addCls('x-column-header-align-'+a.align);a.setupRenderer();a.setupRenderer('edit');a.setupRenderer('summary');Ext.grid.header.Container.prototype.initComponent.apply(this,arguments)},onAdded:function(e,g,f){var a=this,c,d,b;Ext.grid.header.Container.prototype.onAdded.call(this,e,g,f);if(!a.headerId){d=a.up('tablepanel');b=d?d.ownerGrid:a.getRootHeaderCt();b.headerCounter=(b.headerCounter||0)+1;a.headerId='h'+b.headerCounter}if(!a.stateId){a.stateId=a.initialConfig.id||a.headerId}c=a.getSorter();if(c&&!c.initialConfig.id){c.setId((a.dataIndex||a.stateId)+'-sorter')}},applySorter:function(a){return this.getRootHeaderCt().up('tablepanel').store.getData().getSorters().decodeSorter(a)},bindFormatter:function(a){var b=this;return function(c){return a.format(c,a.scope||b.rendererScope||b.resolveListenerScope())}},bindRenderer:function(b){var a=this;a.hasCustomRenderer=!0;return function(){return Ext.callback(b,a.rendererScope,arguments,0,a)}},setupRenderer:function(c){c=c||'column';var a=this,b=a[a.formatterNames[c]],d=a[a.rendererNames[c]],f=c==='column',e,g;if(!b){if(d){if(typeof d==='string'){d=a[a.rendererNames[c]]=a.bindRenderer(d);g=!0}if(f){a.hasCustomRenderer=g||d.length>1}}else {if(f&&a.defaultRenderer){a.renderer=a.defaultRenderer;a.usingDefaultRenderer=!0}}}else {e=b.indexOf('this.')===0;if(e){b=b.substring(5)}b=Ext.app.bind.Template.prototype.parseFormat(b);a[a.formatterNames[c]]=null;if(e){b.scope=null}a[a.rendererNames[c]]=a.bindFormatter(b)}},getView:function(){var a=this.getRootHeaderCt();if(a){return a.view}},onFocusLeave:function(a){Ext.grid.header.Container.prototype.onFocusLeave.call(this,a);if(this.activeMenu){this.activeMenu.hide()}},initItems:function(){var a=this;Ext.grid.header.Container.prototype.initItems.apply(this,arguments);if(a.isGroupHeader){if(a.config.hidden||!a.hasVisibleChildColumns()){a.hide()}}},hasVisibleChildColumns:function(){var c=this.items.items,d=c.length,a,b;for(a=0;agridcolumn:not([hidden]):not([menuDisabled])');c=a.length;if(Ext.Array.contains(a,b.hideCandidate)){c--}if(c){return !1}b.hideCandidate=this},isLockable:function(){var a={result:this.lockable!==!1};if(a.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[a])}return a.result},isLocked:function(){return this.locked||!!this.up('[isColumn][locked]','[isRootHeader]')},hasMultipleVisibleChildren:function(a){if(!this.isXType('headercontainer')){a.result=!1;return !1}if(this.query('>gridcolumn:not([hidden])').length>1){return !1}},hide:function(){var a=this,b=a.getRootHeaderCt(),c=a.getRefOwner();if(c.constructing){Ext.grid.header.Container.prototype.hide.call(this);return a}if(a.rendered&&!a.isVisible()){return a}if(b.forceFit){a.visibleSiblingCount=b.getVisibleGridColumns().length-1;if(a.flex){a.savedWidth=a.getWidth();a.flex=null}}b.beginChildHide();Ext.suspendLayouts();if(c.isGroupHeader){if(a.isNestedGroupHeader()){c.hide()}if(a.isSubHeader&&!a.isGroupHeader&&c.query('>gridcolumn:not([hidden])').length===1){c.lastHiddenHeader=a}}Ext.grid.header.Container.prototype.hide.call(this);b.endChildHide();b.onHeaderHide(a);Ext.resumeLayouts(!0);return a},show:function(){var a=this,c=a.getRootHeaderCt(),b=a.getRefOwner();if(a.isVisible()){return a}if(b.isGroupHeader){b.lastHiddenHeader=null}if(a.rendered){if(c.forceFit){c.applyForceFit(a)}}Ext.suspendLayouts();if(a.isSubHeader&&b.hidden){b.show(!1,!0)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(a.isGroupHeader){a.maybeShowNestedGroupHeader()}b=a.getRootHeaderCt();if(b){b.onHeaderShow(a)}Ext.resumeLayouts(!0);return a},shouldUpdateCell:function(d,b){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(b){var e=b.length,a,c;for(a=0;aActions',ignoreExport:!0,sortable:!1,innerCls:'x-grid-cell-inner-action-col',actionIconCls:'x-action-col-icon',constructor:function(g){var a=this,b=Ext.apply({},g),d=b.items||a.items||[a],e,c,f;a.origRenderer=b.renderer||a.renderer;a.origScope=b.scope||a.scope;a.renderer=a.scope=b.renderer=b.scope=null;b.items=null;Ext.grid.column.Column.prototype.constructor.call(this,b);a.items=d;for(c=0,f=d.length;c':'>')}return h},updater:function(e,d,c,f,b){var a={};Ext.fly(e).addCls(a.tdCls).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(d,a,c,null,null,b,f)},enableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!1;b.up('tablepanel').el.select('.x-action-col-'+a).removeCls(b.disabledCls);if(!c){b.fireEvent('enable',b)}},disableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!0;b.up('tablepanel').el.select('.x-action-col-'+a).addCls(b.disabledCls);if(!c){b.fireEvent('disable',b)}},beforeDestroy:function(){this.renderer=this.items=null;return Ext.grid.column.Column.prototype.beforeDestroy.apply(this,arguments)},processEvent:function(f,g,n,h,i,d,l,o){var b=this,c=d.getTarget(),e=f==='keydown'&&d.getKey(),m,a,j,k=Ext.fly(n);d.stopSelection=!e&&b.stopSelection;if(e&&(c===n||!k.contains(c))){c=k.query('.'+b.actionIconCls,!0);if(c.length===1){c=c[0]}else {return}}if(c&&(m=c.className.match(b.actionIdRe))){a=b.items[parseInt(m[1],10)];j=a.disabled||(a.isDisabled?a.isDisabled.call(a.scope||b.origScope||b,g,h,i,a,l):!1);if(a&&!j){if(f==='mousedown'&&!b.getView().actionableMode){d.preventDefault()}else {if(f==='click'||(e===d.ENTER||e===d.SPACE)){Ext.callback(a.handler||b.handler,a.scope||b.origScope,[g,h,i,a,d,l,o],undefined,b);if(!g.el.contains(Ext.Element.getActiveElement())){return !1}}}}}return Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)},cascade:function(b,a){b.call(a||this,this)},getRefItems:function(){return []},privates:{getFocusables:function(){return []},shouldUpdateCell:function(){return 2}}},1,['actioncolumn'],['component','box','container','headercontainer','gridcolumn','actioncolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'actioncolumn':!0},['widget.actioncolumn'],0,[Ext.grid.column,'Action',Ext.grid,'ActionColumn'],0);Ext.cmd.derive('Ext.grid.column.Check',Ext.grid.column.Column,{alternateClassName:['Ext.ux.CheckColumn','Ext.grid.column.CheckColumn'],align:'center',ignoreExport:!0,stopSelection:!0,tdCls:'x-grid-cell-checkcolumn',innerCls:'x-grid-cell-inner-checkcolumn',clickTargetName:'el',defaultFilterType:'boolean',constructor:function(){this.scope=this;Ext.grid.column.Column.prototype.constructor.apply(this,arguments)},processEvent:function(h,n,k,e,m,b,g,l){var a=this,d=h==='keydown'&&b.getKey(),f=h==='mousedown',j=a.disabled,i,c;b.stopSelection=!d&&a.stopSelection;if(!j&&(f||(d===b.ENTER||d===b.SPACE))){c=!a.isRecordChecked(g);if(a.fireEvent('beforecheckchange',a,e,c)!==!1){a.setRecordCheck(g,c,k,l,b);a.fireEvent('checkchange',a,e,c);if(f&&!a.getView().actionableMode){b.preventDefault()}}}else {i=Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)}return i},onEnable:function(){Ext.grid.column.Column.prototype.onEnable.apply(this,arguments);this._setDisabled(!1)},onDisable:function(){this._setDisabled(!0)},_setDisabled:function(d){var b=this,c=b.disabledCls,a;a=b.up('tablepanel').el.select(b.getCellSelector());if(d){a.addCls(c)}else {a.removeCls(c)}},defaultRenderer:function(d,c){var a='x-',b=a+'grid-checkcolumn';if(this.disabled){c.tdCls+=' '+this.disabledCls}if(d){b+=' '+a+'grid-checkcolumn-checked'}return '
    '},isRecordChecked:function(a){var b=this.property;if(b){return a[b]}return a.get(this.dataIndex)},setRecordCheck:function(c,a,e,f,g){var b=this,d=b.property;if(d){c[d]=a;b.updater(e,a)}else {c.set(b.dataIndex,a)}},updater:function(a,b){a=Ext.fly(a);a[this.disabled?'addCls':'removeCls'](this.disabledCls);Ext.fly(a.down(this.getView().innerSelector,!0).firstChild)[b?'addCls':'removeCls']('x-grid-checkcolumn-checked')}},1,['checkcolumn'],['component','box','container','headercontainer','gridcolumn','checkcolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'checkcolumn':!0},['widget.checkcolumn'],0,[Ext.grid.column,'Check',Ext.ux,'CheckColumn',Ext.grid.column,'CheckColumn'],0);Ext.cmd.derive('Ext.grid.column.Number',Ext.grid.column.Column,{alternateClassName:'Ext.grid.NumberColumn',defaultFilterType:'number',format:'0,000.00',producesHTML:!1,defaultRenderer:function(a){return Ext.util.Format.number(a,this.format)},updater:function(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Number.prototype.defaultRenderer.call(this,a)}},0,['numbercolumn'],['component','box','container','headercontainer','gridcolumn','numbercolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'numbercolumn':!0},['widget.numbercolumn'],0,[Ext.grid.column,'Number',Ext.grid,'NumberColumn'],0);Ext.cmd.derive('Ext.grid.column.RowNumberer',Ext.grid.column.Column,{alternateClassName:'Ext.grid.RowNumberer',isRowNumberer:!0,text:' ',width:23,sortable:!1,draggable:!1,autoLock:!0,lockable:!1,align:'right',producesHTML:!1,ignoreExport:!0,constructor:function(b){var a=this;a.width=a.width;Ext.grid.column.Column.prototype.constructor.apply(this,arguments);a.sortable=!1;a.scope=a},resizable:!1,hideable:!1,menuDisabled:!0,dataIndex:'',cls:'x-row-numberer',tdCls:'x-grid-cell-row-numberer x-grid-cell-special',innerCls:'x-grid-cell-inner-row-numberer',rowspan:undefined,defaultRenderer:function(j,b,f,i,h,a,g){var c=this.rowspan,e=a.currentPage,d=g.store.indexOf(f);if(b&&c){b.tdAttr='rowspan="'+c+'"'}if(e>1){d+=(e-1)*a.pageSize}return d+1},updater:function(d,c,b,e,a){Ext.fly(d).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(c,null,b,null,null,a,e)}},1,['rownumberer'],['component','box','container','headercontainer','gridcolumn','rownumberer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'rownumberer':!0},['widget.rownumberer'],0,[Ext.grid.column,'RowNumberer',Ext.grid,'RowNumberer'],0);Ext.define('Ext.theme.neptune.grid.column.RowNumberer',{override:'Ext.grid.column.RowNumberer',width:25});Ext.cmd.derive('Ext.grid.column.Widget',Ext.grid.column.Column,{config:{defaultWidgetUI:{}},ignoreExport:!0,sortable:!1,onWidgetAttach:null,preventUpdate:!0,stopSelection:!0,initComponent:function(){var b=this,a;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments);a=b.widget;b.widget=a=Ext.apply({},a);if(!a.ui){a.ui=b.getDefaultWidgetUI()[a.xtype]||'default'}b.isFixedSize=Ext.isNumber(a.width)},processEvent:function(c,d,h,e,f,b,g,i){var a;if(this.stopSelection&&c==='click'){a=b.getTarget(d.innerSelector);if(a&&a!==b.target){b.stopSelection=!0}}},beforeRender:function(){var a=this,b=a.tdCls,c;a.listenerScopeFn=function(b){if(b==='this'){return this}return a.resolveListenerScope(b)};a.liveWidgets={};a.cachedStyles={};a.freeWidgetStack=[c=a.getFreeWidget()];b=b?b+' ':'';a.tdCls=b+c.getTdCls();a.setupViewListeners(a.getView());Ext.grid.column.Column.prototype.beforeRender.call(this)},afterRender:function(){var a=this.getView();Ext.grid.column.Column.prototype.afterRender.call(this);if(a&&a.viewReady&&!a.ownerGrid.reconfiguring){this.onViewRefresh(a,a.getViewRange())}},defaultRenderer:Ext.emptyFn,updater:function(c,b,a){this.updateWidget(a)},onResize:function(e){var a=this,d=a.liveWidgets,c=a.getView(),f,b;if(!a.isFixedSize&&a.rendered&&c&&c.viewReady){b=c.getEl().down(a.getCellInnerSelector());if(b){e-=parseInt(a.getCachedStyle(b,'padding-left'),10)+parseInt(a.getCachedStyle(b,'padding-right'),10);for(f in d){d[f].setWidth(e)}}}},onAdded:function(){var b=this,a;Ext.grid.column.Column.prototype.onAdded.apply(this,arguments);a=b.getView();if(a){b.setupViewListeners(a);if(a&&a.viewReady&&b.rendered&&a.getEl().down(b.getCellSelector())){b.onViewRefresh(a,a.getViewRange())}}},onRemoved:function(e){var a=this,c=a.liveWidgets,b=a.viewListeners,d;if(a.rendered){a.viewListeners=b&&Ext.destroy(b);if(!e){for(d in c){c[d].detachFromBody()}}}Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments)},onDestroy:function(){var b=this,e=b.liveWidgets,d=b.freeWidgetStack,g,a,c,f;if(b.rendered){for(g in e){a=e[g];a.$widgetRecord=a.$widgetColumn=null;delete a.getWidgetRecord;delete a.getWidgetColumn;a.destroy()}for(c=0,f=d.length;c{text} {linkHrefCls}{childElCls}" href="{href}" target="{hrefTarget}" hidefocus="true" unselectable="on" tabindex="{tabIndex}" {$}="{.}">{text}',maskOnDisable:!1,iconAlign:'left',initComponent:function(){var a=this,b=a.cls?[a.cls]:[],c;if(a.hasOwnProperty('canActivate')){a.focusable=a.canActivate}if(a.plain){b.push('x-menu-item-plain')}if(b.length){a.cls=b.join(' ')}if(a.menu){c=a.menu;a.menu=null;a.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==!1&&!a.destroying&&!a.destroyed&&a.isVisible(!0)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.disabled){if(!a.plain){a.addCls(a.activeCls)}a.activated=!0;if(a.hasListeners.activate){a.fireEvent('activate',a)}}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(a.activated){if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=!1;if(a.hasListeners.deactivate){a.fireEvent('deactivate',a)}}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){for(var a=this.getRefOwner();a&&(a.isMenu&&a.floating||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},expandMenu:function(c,b){var a=this;if(a.activated&&a.menu){a.hideOnClick=!1;a.cancelDeferHide();b=b==null?a.menuExpandDelay:b;if(b===0){a.doExpandMenu(c)}else {a.cancelDeferExpand();a.expandMenuTimer=Ext.defer(a.doExpandMenu,b,a,[c])}}},doExpandMenu:function(c){var b=this,a=b.menu;if(!a.isVisible()){b.parentMenu.activeChild=a;a.ownerCmp=b;a.parentMenu=b.parentMenu;a.constrainTo=document.body;a.autoFocus=!c||!c.pointerType;a.showBy(b,b.menuAlign)}},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},getValue:function(){return this.value},hideMenu:function(b){var a=this;if(a.menu){a.cancelDeferExpand();a.hideMenuTimer=Ext.defer(a.doHideMenu,Ext.isNumber(b)?b:a.menuHideDelay,a)}},onClick:function(b){var a=this,e=a.clickHideDelay,f=b.browserEvent,d,c;if(!a.href||a.disabled){b.stopEvent();if(a.disabled){return !1}}if(a.disabled||a.handlingClick){return}if(a.hideOnClick){if(!e){a.deferHideParentMenus()}else {a.deferHideParentMenusTimer=Ext.defer(a.deferHideParentMenus,e,a)}}d=a.fireEvent('click',a,b);if(a.destroyed){return}if(d!==!1&&a.handler){Ext.callback(a.handler,a.scope,[a,b],0,a)}if(Ext.isIE9m){c=f.returnValue===!1?!0:!1}else {c=!!f.defaultPrevented}if(a.href&&b.type!=='click'&&!c){a.handlingClick=!0;a.itemEl.dom.click();a.handlingClick=!1}if(!a.hideOnClick){a.focus()}return d},onRemoved:function(){var a=this;if(a.activated&&a.parentMenu.activeItem===a){a.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);a.parentMenu=a.ownerCmp=null},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;a.cancelDeferExpand();a.cancelDeferHide();clearTimeout(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.onDestroy.apply(this,arguments)},beforeRender:function(){var a=this,c=a.glyph,j=Ext._glyphFontFamily,b=!!(a.icon||a.iconCls||c),f=!!a.menu,i=a.iconAlign==='right'&&!f,e=a.isMenuCheckItem,d=[],k=a.ownerCt,g=k.plain,h;if(a.plain){a.ariaEl='el'}Ext.Component.prototype.beforeRender.call(this);if(b){if(f&&a.showCheckbox){b=!1}}if(typeof c==='string'){h=c.split('@');c=h[0];j=h[1]}if(!g||b&&!i||e){if(k.showSeparator&&!g){d.push(a.indentCls)}else {d.push(a.indentNoSeparatorCls)}}if(f){d.push(a.indentRightArrowCls)}else {if(b&&(i||e)){d.push(a.indentRightIconCls)}}Ext.applyIf(a.renderData,{hasHref:!!a.href,href:a.href||'#',hrefTarget:a.hrefTarget,icon:a.icon,iconCls:a.iconCls,glyph:c,glyphCls:c?'x-menu-item-glyph':undefined,glyphFontFamily:j,hasIcon:b,hasMenu:f,indent:!g||b||e,isCheckItem:e,rightIcon:i,plain:a.plain,text:a.text,arrowCls:a.arrowCls,baseIconCls:a.baseIconCls,textCls:a.textCls,indentCls:d.join(' '),linkCls:a.linkCls,linkHrefCls:a.linkHrefCls,groupCls:a.group?a.groupCls:'',tabIndex:a.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,!0)}},getMenu:function(){return this.menu||null},setMenu:function(b,f){var a=this,e=a.menu,h=a.arrowEl,d=a.ariaEl.dom,c,g;if(e){e.ownerCmp=e.parentMenu=null;if(f===!0||f!==!1&&a.destroyMenu){Ext.destroy(e)}if(d){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns')}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});delete c['aria-haspopup'];delete c['aria-owns']}}if(b){g=b.isMenu;b=a.menu=Ext.menu.Manager.get(b,{ownerCmp:a,focusOnToFront:!1});b.setOwnerCmp(a,g);if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {b=a.menu=null}if(b&&a.rendered&&!a.destroying&&h){h[b?'addCls':'removeCls'](a.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(a){var b=this.iconEl,c=this.icon;if(b){b.src=a||Ext.BLANK_IMAGE_URL}this.icon=a;this.fireEvent('iconchange',this,c,a)},setIconCls:function(b){var a=this,c=a.iconEl,d=a.iconCls;if(c){if(a.iconCls){c.removeCls(a.iconCls)}if(b){c.addCls(b)}}a.iconCls=b;a.fireEvent('iconchange',a,d,b)},setText:function(b){var a=this,d=a.textEl||a.el,c=a.text;a.text=b;if(a.rendered){d.setHtml(b||'');a.updateLayout()}a.fireEvent('textchange',a,c,b)},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},clearTip:function(){if(Ext.quickTipsActive&&Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.itemEl)}},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c){a.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.itemEl.id},b));a.tooltip=b}else {a.itemEl.dom.setAttribute(a.getTipAttr(),b)}}else {a.tooltip=b}return a},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)},getFocusEl:function(){return this.plain?this.el:this.itemEl}}},0,['menuitem'],['component','box','menuitem'],{'component':!0,'box':!0,'menuitem':!0},['widget.menuitem'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.menu,'Item',Ext.menu,'TextItem'],0);Ext.cmd.derive('Ext.menu.CheckItem',Ext.menu.Item,{checkedCls:'x-menu-item-checked',uncheckedCls:'x-menu-item-unchecked',groupCls:'x-menu-group-icon',hideOnClick:!1,checkChangeDisabled:!1,submenuText:'{0} submenu',ariaRole:'menuitemcheckbox',childEls:['checkEl'],showCheckbox:!0,isMenuCheckItem:!0,checkboxCls:'x-menu-item-checkbox',initComponent:function(){var a=this;a.checked=!!a.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==!1){a.hideOnClick=!0}}},beforeRender:function(){var a=this,b;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(a.renderData,{checkboxCls:a.checkboxCls,showCheckbox:a.showCheckbox});b=a.ariaRenderAttributes||(a.ariaRenderAttributes={});b['aria-checked']=a.menu?'mixed':a.checked;if(a.menu){b['aria-label']=Ext.String.formatEncode(a.submenuText,a.text)}},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.setChecked(!a.checked,!0);if(a.checkChangeDisabled){a.disableCheckChange()}if(Ext.isGecko&&a.checkEl){a.checkEl.on('mousedown',a.onMouseDownCheck)}},disableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.addCls(a.disabledCls)}if(Ext.isIE8&&a.rendered){a.el.repaint()}a.checkChangeDisabled=!0},enableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.removeCls(a.disabledCls)}a.checkChangeDisabled=!1},onMouseDownCheck:function(a){a.preventDefault()},onClick:function(b){var a=this;if(!(a.disabled||a.checkChangeDisabled||a.checked&&a.group||a.menu&&'touch'===b.pointerType&&!a.checkEl.contains(b.target))){a.setChecked(!a.checked);if(b.type==='keydown'&&a.menu){return !1}}Ext.menu.Item.prototype.onClick.call(this,b)},onDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.onDestroy.apply(this,arguments)},setText:function(c){var a=this,b=a.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,c);if(b&&a.menu){b.setAttribute('aria-label',Ext.String.formatEncode(a.submenuText,c))}},setChecked:function(b,d){var a=this,f=a.checkedCls,e=a.uncheckedCls,c=a.el,g=a.ariaEl.dom;if(a.checked!==b&&(d||a.fireEvent('beforecheckchange',a,b)!==!1)){if(c){if(b){c.addCls(f);c.removeCls(e)}else {c.addCls(e);c.removeCls(f)}}if(g){g.setAttribute('aria-checked',a.menu?'mixed':!!b)}a.checked=b;Ext.menu.Manager.onCheckChange(a,b);if(!d){Ext.callback(a.checkHandler,a.scope,[a,b],0,a);a.fireEvent('checkchange',a,b)}}}},0,['menucheckitem'],['component','box','menuitem','menucheckitem'],{'component':!0,'box':!0,'menuitem':!0,'menucheckitem':!0},['widget.menucheckitem'],0,[Ext.menu,'CheckItem'],0);Ext.cmd.derive('Ext.menu.Separator',Ext.menu.Item,{focusable:!1,canActivate:!1,hideOnClick:!1,plain:!0,separatorCls:'x-menu-item-separator',text:' ',ariaRole:'separator',beforeRender:function(){this.addCls(this.separatorCls);Ext.menu.Item.prototype.beforeRender.call(this)}},0,['menuseparator'],['component','box','menuitem','menuseparator'],{'component':!0,'box':!0,'menuitem':!0,'menuseparator':!0},['widget.menuseparator'],0,[Ext.menu,'Separator'],0);Ext.define('Ext.theme.neptune.menu.Separator',{override:'Ext.menu.Separator',border:!0});Ext.cmd.derive('Ext.menu.Menu',Ext.panel.Panel,{enableKeyNav:!0,allowOtherMenus:!1,ariaRole:'menu',floating:!0,constrain:!0,hidden:!0,hideMode:'visibility',ignoreParentClicks:!1,isMenu:!0,showSeparator:!0,minWidth:undefined,defaultMinWidth:120,defaultAlign:'tl-bl?',focusOnToFront:!1,bringParentToFront:!1,defaultFocus:':focusable',menuClickBuffer:0,baseCls:'x-menu',_iconSeparatorCls:'x-menu-icon-separator',_itemCmpCls:'x-menu-item-cmp',layout:{type:'vbox',align:'stretchmax',overflowHandler:'Scroller'},initComponent:function(){var a=this,d=['x-menu'],c=a.bodyCls?[a.bodyCls]:[],e=a.floating!==!1,b={element:'el',click:a.onClick,mouseover:a.onMouseOver,scope:a};if(Ext.supports.Touch){b.pointerdown=a.onMouseOver}a.on(b);a.on({beforeshow:a.onBeforeShow,scope:a});if(a.plain){d.push('x-menu-plain')}a.cls=d.join(' ');c.push('x-menu-body',Ext.dom.Element.unselectableCls);a.bodyCls=c.join(' ');if(e){if(a.minWidth===undefined){a.minWidth=a.defaultMinWidth}}else {a.hidden=!!a.initialConfig.hidden;a.constrain=!1}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(a.getLayout(),{configureItem:a.configureItem})},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);a.hidden=this.hidden;return a},beforeRender:function(){var a=this;Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!a.getSizeModel().width.shrinkWrap){a.layout.align='stretch'}if(a.floating){a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!!a.autoShow}},onBoxReady:function(){var a=this,c=a._iconSeparatorCls,b=a.focusableKeyNav;if(b){b.map.processEventScope=a;b.map.processEvent=function(a){if(a.keyCode===a.ESC){a.target=this.el.dom}return a};b.map.addBinding([{key:Ext.event.Event.ESC,handler:a.onEscapeKey,scope:a},{key:/[\w]/,handler:a.onShortcutKey,scope:a,shift:!1,ctrl:!1,alt:!1}])}else {a.escapeKeyNav=new Ext.util.KeyNav(a.el,{eventName:'keydown',scope:a,esc:a.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(a.showSeparator){a.iconSepEl=a.body.insertFirst({role:'presentation',cls:c+' '+c+'-'+a.ui,html:' '})}if(Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){a.el.on({scope:a,click:a.preventClick,translate:!1})}a.mouseMonitor=a.el.monitorMouseLeave(100,a.onMouseLeave,a)},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var b=this,a=b.lastFocusedChild;if(a){a.blur()}},getItemFromEvent:function(d){var c=this,b=c.layout.getRenderTarget().dom,a=d.getTarget();while(a.parentNode!==b){a=a.parentNode;if(!a){return}}return Ext.getCmp(a.id)},lookupComponent:function(a){var b=this;if(typeof a==='string'){a=b.lookupItemFromString(a)}else {if(Ext.isObject(a)){a=b.lookupItemFromObject(a)}}if(!a.dock){a.minWidth=a.minWidth||b.minWidth}return a},lookupItemFromObject:function(a){var b=this;if(!a.isComponent){if(!a.xtype){a=Ext.create('Ext.menu.'+(Ext.isBoolean(a.checked)?'Check':'')+'Item',a)}else {a=Ext.ComponentManager.create(a,a.xtype)}}if(a.isMenuItem){a.parentMenu=b}return a},lookupItemFromString:function(a){return a==='separator'||a==='-'?new Ext.menu.Separator():new Ext.menu.Item({canActivate:!1,hideOnClick:!1,plain:!0,text:a})},configureItem:function(a){var c=this.owner,f='x-',e=c.ui,b,d;if(a.isMenuItem){a.setUI(e)}else {if(c.items.getCount()>1&&!a.rendered&&!a.dock){d=c._itemCmpCls;b=[d+' '+d+'-'+e];if(!c.plain&&(a.indent!==!1||a.iconCls==='no-icon')){b.push(f+'menu-item-indent-'+e)}if(a.rendered){a.el.addCls(b)}else {a.cls=(a.cls||'')+' '+b.join(' ')}a.$extraMenuCls=b}}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.destroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(b){var c=this,f=b.type,a,d,e=f==='keydown';if(c.disabled){b.stopEvent();return}a=c.getItemFromEvent(b);if(a&&a.isMenuItem){if(!a.menu||!c.ignoreParentClicks){d=a.onClick(b)}else {b.stopEvent()}if(a.menu&&d!==!1&&e){a.expandMenu(b,0)}}if(!a||a.disabled){a=undefined}c.fireEvent('click',c,a,b)},onDestroy:function(){var a=this;if(a.escapeKeyNav){a.escapeKeyNav.destroy()}a.parentMenu=a.ownerCmp=a.escapeKeyNav=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.menu.Manager.onHide(a);Ext.panel.Panel.prototype.onDestroy.apply(this,arguments)},onMouseLeave:function(a){if(this.disabled){return}this.fireEvent('mouseleave',this,a)},onMouseOver:function(c){var a=this,g=c.getRelatedTarget(),e=!a.el.contains(g),b=a.getItemFromEvent(c),d=a.parentMenu,f=a.ownerCmp;if(e&&d){d.setActiveItem(f);f.cancelDeferHide();d.mouseMonitor.mouseenter()}if(a.disabled){return}if(b){if(!b.containsFocus){b.focus()}if(b.expandMenu){b.expandMenu(c)}}if(e){a.fireEvent('mouseenter',a,c)}a.fireEvent('mouseover',a,b,c)},setActiveItem:function(a){var b=this;if(a&&a!==b.lastFocusedChild){b.focusChild(a,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(h,g){var e=String.fromCharCode(g.getCharCode()),c=this.query('>[text]'),f=c.length,a=this.lastFocusedChild,d=Ext.Array.indexOf(c,a),b=d;for(;;){if(++b===f){b=0}a=c[b];if(b===d){return}if(a.text&&a.text[0].toUpperCase()===e){a.focus();return}}},onFocusableContainerTabKey:function(a){if(this.floating){this.hide()}},onFocusableContainerEnterKey:function(a){this.onClick(a)},onFocusableContainerSpaceKey:function(a){this.onClick(a)},onFocusableContainerLeftKey:function(a){a.preventDefault();if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(b){var c=this,a=c.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)tablepanel:not(hidden)>tableview');if(a){a.focus()}},focusRow:function(c){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;b.focusRow(c)},focusCell:function(a){a.view.focusCell(a)},onRowFocus:function(){this.relayFn('onRowFocus',arguments)},isVisible:function(a){return this.ownerGrid.isVisible(a)},getFocusEl:function(){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;return b.getFocusEl()},getCellInclusive:function(a,c){var d=a.column,b=this.lockedGrid.getColumnManager().getColumns().length;if(d>=b){a=Ext.apply({},a);a.column-=b;return this.normalView.getCellInclusive(a,c)}else {return this.lockedView.getCellInclusive(a,c)}},getHeaderByCell:function(a){if(a){return this.getVisibleColumnManager().getHeaderById(a.getAttribute('data-columnId'))}return !1},onRowSelect:function(){this.relayFn('onRowSelect',arguments)},onRowDeselect:function(){this.relayFn('onRowDeselect',arguments)},onCellSelect:function(a){a.column.getView().onCellSelect({record:a.record,column:a.column})},onCellDeselect:function(a){a.column.getView().onCellDeselect({record:a.record,column:a.column})},getCellByPosition:function(a,c){var e=this,b=a.view,d=a.column;if(b===e){a=(new Ext.grid.CellContext(d.getView())).setPosition(a.record,a.column)}return b.getCellByPosition(a,c)},getRecord:function(b){var a=this.lockedView.getRecord(b);if(!a){a=this.normalView.getRecord(b)}return a},scrollBy:function(){var a=this.normalView;a.scrollBy.apply(a,arguments)},ensureVisible:function(){var a=this.normalView;a.ensureVisible.apply(a,arguments)},disable:function(){this.relayFn('disable',arguments)},enable:function(){this.relayFn('enable',arguments)},addElListener:function(){this.relayFn('addElListener',arguments)},refreshNode:function(){this.relayFn('refreshNode',arguments)},addRowCls:function(){this.relayFn('addRowCls',arguments)},removeRowCls:function(){this.relayFn('removeRowCls',arguments)},destroy:function(){var a=this;a.rendered=!1;a.bindStore(null,!1,'dataSource');Ext.destroy(a.lockedViewEventRelayers,a.normalViewEventRelayers);a.lockedViewEventRelayers=a.normalViewEventRelayers=null;a.callParent();Ext.destroy(a.loadMask,a.navigationModel,a.selModel);a.lockedView.lockingPartner=a.normalView.lockingPartner=null;a.lockedGrid=a.lockedView=a.normalGrid=a.normalView=null;a.loadMask=a.navigationModel=a.selModel=a.headerCt=null;a.ownerGrid=a.storeListeners=null}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable]],[Ext.grid.locking,'View',Ext.grid,'LockingView'],function(){this.borrow(Ext.Component,['up']);this.borrow(Ext.view.AbstractView,['doFirstRefresh','applyFirstRefresh']);this.borrow(Ext.view.Table,['cellSelector','selectedCellCls','selectedItemCls'])});Ext.cmd.derive('Ext.grid.locking.Lockable',Ext.Base,{alternateClassName:'Ext.grid.Lockable',syncRowHeight:!0,headerCounter:0,scrollDelta:40,lockedGridCls:'x-grid-inner-locked',normalGridCls:'x-grid-inner-normal',lockingBodyCls:'x-grid-locking-body',unlockText:'Unlock',lockText:'Lock',bothCfgCopy:['hideHeaders','enableColumnHide','enableColumnMove','enableColumnResize','sortableColumns','multiColumnSort','columnLines','rowLines','variableRowHeight','numFromEdge','trailingBufferZone','leadingBufferZone','scrollToLoadBuffer','syncRowHeight'],normalCfgCopy:['scroll'],lockedCfgCopy:[],determineXTypeToCreate:function(g){var f=this,a,b,d,e,c;if(f.subGridXType){a=f.subGridXType}else {if(!g){return 'gridpanel'}b=this.getXTypes().split('/');d=b.length;e=b[d-1];c=b[d-2];if(c!=='tablepanel'){a=c}else {a=e}}return a},injectLockable:function(){this.focusable=!1;this.lockable=!0;this.hasView=!0;var a=this,q=Ext.getScrollbarSize(),l=q.width,o=a.store=Ext.StoreManager.lookup(a.store),d=a.lockedViewConfig,g=a.normalViewConfig,s=Ext.Object,m,i,b,c,e,n,f,h,j=a.viewConfig,r=j&&j.loadMask,u=r!==undefined?r:a.loadMask,p=a.bufferedRenderer,k=l>0&&Ext.supports.touchScroll!==2,t=a.getInherited().rtl;m=a.constructLockableFeatures();a.features=null;i=a.constructLockablePlugins();a.plugins=i.topPlugins;b={id:a.id+'-locked',$initParent:a,isLocked:!0,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(!0),store:o,reserveScrollbar:k,scrollable:{indicators:{x:!0,y:!1}},scrollerOwner:!1,animate:!1,border:!1,cls:a.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.normalGrid.floatedFromCollapse},features:m.lockedFeatures,plugins:i.lockedPlugins};c={id:a.id+'-normal',$initParent:a,isLocked:!1,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(),store:o,reserveScrollbar:a.reserveScrollbar,scrollerOwner:!1,border:!1,cls:a.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.lockedGrid.floatedFromCollapse},features:m.normalFeatures,plugins:i.normalPlugins};a.addCls('x-grid-locked');Ext.copy(c,a,a.bothCfgCopy,!0);Ext.copy(b,a,a.bothCfgCopy,!0);Ext.copy(c,a,a.normalCfgCopy,!0);Ext.copy(b,a,a.lockedCfgCopy,!0);Ext.apply(c,a.normalGridConfig);Ext.apply(b,a.lockedGridConfig);for(e=0;e>#normalHeaderCt',items:e},j={itemId:'normalHeaderCt',stretchMaxPartner:'^^>>#lockedHeaderCt',items:f},l={locked:i,normal:j},g;if(Ext.isObject(b)){Ext.applyIf(i,b);Ext.applyIf(j,b);g=Ext.apply({},b);delete g.items;Ext.apply(c,g);b=b.items}c.constructing=!0;for(d=0,k=b.length;d0&&f){h.stopEvent();a+=e;d.setScrollY(a);b.normalGrid.getView().setScrollY(a);b.onNormalViewScroll()}}},onLockedViewScroll:function(){var f=this,e=f.lockedGrid.getView(),a=f.normalGrid.getView(),c=e.getScrollY(),g=a.getScrollY(),b,d;if(g!==c){a.setScrollY(c);if(a.bufferedRenderer){d=e.body.dom;b=a.body.dom;b.style.position='absolute';b.style.top=d.style.top}}},onNormalViewScroll:function(){var e=this,b=e.lockedGrid.getView(),c=e.normalGrid.getView(),f=b.getScrollY(),d=c.getScrollY(),a;if(d!==f){b.setScrollY(d);if(c.bufferedRenderer){a=b.body;if(a.dom){a.dom.style.position='absolute';a.translate(null,c.bufferedRenderer.bodyTop)}}}},syncRowHeights:function(){if(!this.destroyed){var f=this,b=f.normalGrid.getView(),a=f.lockedGrid.getView(),d=b.syncRowHeightBegin(),c=a.syncRowHeightBegin(),e;b.syncRowHeightMeasure(d);a.syncRowHeightMeasure(c);b.syncRowHeightFinish(d,c);a.syncRowHeightFinish(c,d);e=b.getScrollY();a.setScrollY(e)}},modifyHeaderCt:function(){var a=this;a.lockedGrid.headerCt.getMenuItems=a.getMenuItems(a.lockedGrid.headerCt.getMenuItems,!0);a.normalGrid.headerCt.getMenuItems=a.getMenuItems(a.normalGrid.headerCt.getMenuItems,!1);a.lockedGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.lockedGrid.headerCt.showMenuBy,a.showMenuBy);a.normalGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.normalGrid.headerCt.showMenuBy,a.showMenuBy)},onUnlockMenuClick:function(){this.unlock()},onLockMenuClick:function(){this.lock()},showMenuBy:function(f,g,c){var d=this.getMenu(),a=d.down('#unlockItem'),b=d.down('#lockItem'),e=a.prev();if(c.lockable===!1){e.hide();a.hide();b.hide()}else {e.show();a.show();b.show();if(!a.initialConfig.disabled){a.setDisabled(c.lockable===!1)}if(!b.initialConfig.disabled){b.setDisabled(!c.isLockable())}}},getMenuItems:function(d,b){var a=this,f=a.unlockText,h=a.lockText,g='x-hmenu-unlock',i='x-hmenu-lock',c=a.onUnlockMenuClick.bind(a),e=a.onLockMenuClick.bind(a);return function(){var a=d.call(this);a.push('-',{itemId:'unlockItem',iconCls:g,text:f,handler:c,disabled:!b});a.push({itemId:'lockItem',iconCls:i,text:h,handler:e,disabled:b});return a}},delaySyncLockedWidth:function(){var a=this,b=a.syncLockedWidthTask;if(!a.view.all.getCount()){return}if(!b){b=a.syncLockedWidthTask=new Ext.util.DelayedTask(a.syncLockedWidth,a)}b.delay(1)},syncLockedWidth:function(){var b=this,c=b.rendered,a=b.lockedGrid,g=a.view,d=b.normalGrid,e=a.getVisibleColumnManager().getColumns().length,f=d.getVisibleColumnManager().getColumns().length,h=b.syncLockedWidthTask;if(h){h.cancel()}Ext.suspendLayouts();if(f){d.show();if(e){if(c&&a.shrinkWrapColumns&&!a.headerCt.forceFit){delete a.flex;a.setWidth(a.headerCt.getTableWidth()+a.gridPanelBorderWidth)}a.addCls(b.lockedGridCls);a.show();if(a.split){b.child('splitter').show();b.addCls('x-grid-locked-split')}}else {if(c){a.getView().clearViewEl(!0)}a.hide();if(a.split){b.child('splitter').hide();b.removeCls('x-grid-locked-split')}}if(Ext.supports.touchScroll!==2&&Ext.Component.pendingLayouts){g.getScrollable().setX(!0)}if(c){b.ignoreMousewheel=g.scrollFlags.y}}else {d.hide();a.flex=1;delete a.width;a.removeCls(b.lockedGridCls);a.show();b.ignoreMousewheel=!0}Ext.resumeLayouts(!0);return [e,f]},onLockedHeaderSortChange:Ext.emptyFn,onNormalHeaderSortChange:Ext.emptyFn,lock:function(a,l,g){var e=this,i=e.normalGrid,b=e.lockedGrid,d=i.view,c=b.view,m=i.headerCt,h,k,j,f;a=a||m.getMenu().activeHeader;j=a.hasFocus;g=g||b.headerCt;k=a.ownerCt;if(!a.isLockable()){return}if(a.flex&&b.shrinkWrapColumns){a.width=a.getWidth();a.flex=null}Ext.suspendLayouts();if(b.hidden){if(!b.componentLayoutCounter){if(c.bufferedRenderer){c.bufferedRenderer.onViewResize(c,0,d.getHeight())}f=d.getScrollY()}b.show()}d.blockRefresh=c.blockRefresh=!0;a.ownerCmp=a.ownerCt;k.remove(a,!1);a.locked=!0;if(Ext.isDefined(l)){g.insert(l,a)}else {g.add(a)}d.blockRefresh=c.blockRefresh=!1;a.ownerCmp=null;h=e.syncLockedWidth();if(h[0]){b.getView().refreshView()}if(h[1]){i.getView().refreshView()}e.fireEvent('lockcolumn',e,a);Ext.resumeLayouts(!0);if(f){c.setScrollY(f);d.setScrollY(f)}if(j){a.focus()}},unlock:function(a,f,g){var b=this,e=b.normalGrid,d=b.lockedGrid,i=e.view,h=d.view,k=d.headerCt,c,j;if(!Ext.isDefined(f)){f=0}a=a||k.getMenu().activeHeader;j=a.hasFocus;g=g||e.headerCt;Ext.suspendLayouts();i.blockRefresh=h.blockRefresh=!0;a.ownerCmp=a.ownerCt;a.ownerCt.remove(a,!1);a.locked=!1;g.insert(f,a);i.blockRefresh=h.blockRefresh=!1;a.ownerCmp=null;c=b.syncLockedWidth();if(c[0]){d.getView().refreshView()}if(c[1]){e.getView().refreshView()}b.fireEvent('unlockcolumn',b,a);Ext.resumeLayouts(!0);if(j){a.focus()}},reconfigureLockable:function(a,f){var d=this,h=d.store,c=d.lockedGrid,e=d.normalGrid,b,g;if(a&&a!==h){a=Ext.data.StoreManager.lookup(a);d.store=a;c.view.blockRefresh=e.view.blockRefresh=!0;c.bindStore(a);b=c.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}e.bindStore(a);b=e.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}d.view.store=a;g=d.view.loadMask;if(g&&g.isLoadMask){g.bindStore(a)}d.view.bindStore(e.view.dataSource,!1,'dataSource');c.view.blockRefresh=e.view.blockRefresh=!1}if(f){c.reconfiguring=e.reconfiguring=!0;c.headerCt.removeAll();e.headerCt.removeAll();f=d.processColumns(f,c);c.headerCt.add(f.locked.items);e.headerCt.add(f.normal.items);c.reconfiguring=e.reconfiguring=!1;d.syncLockedWidth()}d.refreshCounter=c.view.refreshCounter},afterReconfigureLockable:function(){var a=this.lockedGrid.getView();if(this.refreshCounter===a.refreshCounter){this.view.refresh()}},constructLockableFeatures:function(){var b=this.features,a,e,c,d,f=0,g;if(b){if(!Ext.isArray(b)){b=[b]}c=[];d=[];g=b.length;for(;f0){a.onViewResize(b,null,e);if(c&&d.getCount()!==c.length){c.length=0;c.push.apply(c,a.store.getRange(d.startIndex,d.endIndex))}}}},beforeTableLayout:function(b){var a=this.view.body.dom;if(a){b.bodyHeight=a.offsetHeight;b.bodyWidth=a.offsetWidth}},afterTableLayout:function(d){var a=this,b=a.view,c;if(d.bodyHeight&&b.body.dom){delete a.rowHeight;a.refreshSize();c=b.body.dom.offsetHeight;if(c!==d.bodyHeight){a.onViewResize(b,null,b.el.lastBox.height);if(c=a.store.getCount()){a.setBodyTop(0)}else {if(a.bodyTop>a.scrollTop||a.bodyTop+cb){a.position=a.scrollTop=Math.max(b-a.bodyHeight,0);c.setScrollY(a.scrollTop)}if(a.bodyTop>b){c.body.translate(null,a.bodyTop=a.position)}if(c.getScrollable()){a.refreshScroller(c,b)}},refreshScroller:function(b,c){var a=b.getScrollable();if(a){if(a.setElementSize){a.setElementSize()}a.setSize({x:b.headerCt.getTableWidth(),y:c})}},setViewSize:function(c,o){var a=this,h=a.store,g=a.view,d=g.all,j=d.getCount(),e,f,b=a.view.lockingPartner&&a.view.lockingPartner.bufferedRenderer,i=j-c,n,m,l,k;if(b&&!o&&b.view.componentLayoutCounter){if(b.viewSize>c){c=b.viewSize}else {b.setViewSize(c,!0)}}i=j-c;if(i){a.scrollTop=g.getScrollY();a.viewSize=c;if(h.isBufferedStore){h.setViewSize(c)}if(j){k=h.getCount();e=d.startIndex;f=Math.min(e+c-1,k-1);if(e===d.startIndex&&f===d.endIndex){if(i<0){a.handleViewScroll(-1)}}else {if(b){b.disable()}if(i<0){if(k>j){h.getRange(d.endIndex+1,f,{callback:function(b,d){l=g.doAdd(b,d);g.fireEvent('itemadd',b,d,l);a.setBodyTop(a.bodyTop)}})}else {a.refreshView(0)}}else {e=d.endIndex-(i-1);f=d.endIndex;m=d.slice(e,f+1);d.removeRange(e,f,!0);if(g.hasListeners.itemremove){n=h.getRange(e,f);g.fireEvent('itemremove',n,e,m)}a.setBodyTop(a.bodyTop)}if(b){b.enable()}}}}return c},getViewRange:function(){var d=this,c=d.view.all,a=d.store,b=0;if(c.getCount()){b=c.startIndex}else {if(a.isBufferedStore){if(!a.currentPage){a.currentPage=1}b=c.startIndex=(a.currentPage-1)*(a.pageSize||1);a.currentPage=1}}if(a.data.getCount()){return a.getRange(b,b+(d.viewSize||a.defaultViewSize)-1)}else {return []}},onReplace:function(l,d,j,k){var a=this,c=a.view,b=c.all,i,g=b.getCount(),h=d+j.length-1,e=k.length-j.length,f=e*a.rowHeight;if(d>=b.startIndex+a.viewSize){a.refreshSize();return}if(g&&h=a.viewSize){b.moveBlock(e);a.refreshSize();i=b.startIndex;if(e>0){a.doNotMirror=!0;a.handleViewScroll(-1);a.doNotMirror=!1}if(b.startIndex===i){if(b.startIndex){a.setBodyTop(a.bodyTop+=f);c.suspendEvent('scroll');c.scrollBy(0,f);c.resumeEvent('scroll');a.position=a.scrollTop=c.getScrollY()}}else {c.suspendEvent('scroll');c.scrollBy(0,(i-b.startIndex)*a.rowHeight);c.resumeEvent('scroll')}c.refreshSize(b.getCount()!==g);return}if(g&&d>b.endIndex){a.refreshSize();if(e>0){a.onRangeFetched(null,b.startIndex,Math.min(l.getCount(),b.startIndex+a.viewSize)-1,null,!0)}c.refreshSize(b.getCount()!==g);return}if(d0?1:-1;if(Math.abs(c)>=20||b!==a.lastScrollDirection){a.lastScrollDirection=b;a.handleViewScroll(a.lastScrollDirection)}}},onViewScrollEnd:function(){if(this.needsPointerEventsFix){this.view.body.dom.style.pointerEvents=''}},handleViewScroll:function(h){var a=this,d=a.view.all,g=a.store,f=a.viewSize,e=g.getCount()-1,b,c;if(h===-1){if(d.startIndex){if(a.topOfViewCloseToEdge()){b=Math.max(0,a.getLastVisibleRowIndex()+a.trailingBufferZone-f)}}}else {if(d.endIndexa.scrollTop-a.numFromEdge*a.rowHeight}else {return a.getFirstVisibleRowIndex()-a.view.all.startIndexd){a=c-d+1}}}if(a===0&&c===0&&e===0){b.doRefreshView([],0,0)}else {g.getRange(a,c,{callback:b.doRefreshView,scope:b})}},doRefreshView:function(i,h,p,q){var a=this,b=a.view,c=b.all,l=c.startIndex,m=c.endIndex,e,f,n=c.getCount(),o,k=h!==c.startIndex,g,d,j;if(b.refreshCounter){if(b.hasListeners.beforerefresh&&b.fireEvent('beforerefresh',b)===!1){return}b.refreshing=a.refreshing=!0;j=b.saveFocusState();b.clearViewEl(!0);b.refreshCounter++;if(i.length){o=b.doAdd(i,h);if(k){e=c.item(l,!0);f=c.item(m,!0);if(e){d=-e.offsetTop}else {if(f){d=c.last(!0).offsetTop-f.offsetTop}}if(d){a.bodyTop=Math.max(a.bodyTop+d,0);a.scrollTop=a.bodyTop?a.scrollTop+d:0}else {a.bodyTop=g=h*a.rowHeight;a.scrollTop=Math.max(g-a.rowHeight*(gc.endIndex){r=c.startIndex-e;b.clearViewEl(!0);g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g);for(o=0;oc.endIndex||jp){d=a.scrollTop-a.rowHeight*p}}b.clearViewEl(!0);a.teleported=!1}if(!c.getCount()){g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g)}else {if(j>c.endIndex){l=Math.max(e-c.startIndex,0);if(k){i=c.item(c.startIndex+l,!0).offsetTop}g=c.scroll(Ext.Array.slice(h,c.endIndex+1-e),1,l);if(k){d=a.bodyTop+i}else {d=m}}else {l=Math.max(c.endIndex-j,0);u=c.startIndex;g=c.scroll(Ext.Array.slice(h,0,c.startIndex-e),-1,l);if(k){d=a.bodyTop-c.item(u,!0).offsetTop;if(!c.startIndex){if(d){b.setScrollY(a.position=a.scrollTop-=d);d=0}}else {if(d<0){i=c.startIndex*a.rowHeight;b.setScrollY(a.position=a.scrollTop+=i);d=a.bodyTop+i}}}else {d=m}}}a.position=a.scrollTop}if(t&&!v.contains(q)){n=b.actionableMode?b.actionPosition:b.lastFocused;if(n&&n.column){b.onFocusLeave({});n.column.focus()}}d=Math.max(Math.floor(d),0);if(b.positionBody){a.setBodyTop(d)}if(g&&f&&!f.disabled){f.scrollTop=f.position=a.scrollTop;if(f.view.ownerCt.isVisible()){s=f.onRangeFetched(null,e,j,x,!0);if(b.ownerGrid.syncRowHeight||f.variableRowHeight!==k){a.syncRowHeights(g,s);a.bodyHeight=b.body.dom.offsetHeight}}if(f.bodyTop!==d){f.setBodyTop(d)}f.view.setScrollY(a.scrollTop)}return g},syncRowHeights:function(b,e){var d=this,c=0,f=1,i=[],h=[],j=Ext.grid.locking.RowSynchronizer,a,g;if(b&&e){c=b.length;f=e.length}if(c!==f){b=d.view.all.slice();e=d.view.lockingPartner.all.slice();c=f=b.length}for(a=0;ae||i+a.bodyHeightc||j+a.bodyHeightc){return a.getLastVisibleRowIndex(f,b-1,e,c)}k=i+l[b].offsetHeight;if(k>=c){return b}else {if(b!==d){return a.getLastVisibleRowIndex(b+1,d,e,c)}}}return a.getFirstVisibleRowIndex()+Math.ceil(h/a.rowHeight)},getScrollHeight:function(){var a=this,j=a.view,d=j.all,i=a.store,c=i.getCount(),g=d.getCount(),h,f,e,b;if(!c){return 0}if(!a.hasOwnProperty('rowHeight')){if(g){if(a.variableRowHeight){a.rowHeight=Math.floor(a.bodyHeight/g)}else {h=d.first();f=h.getHeight();if(Ext.isIE8){e=h.getBorderWidth('b');if(e>0){f-=e}}a.rowHeight=f}}else {delete a.rowHeight}}if(a.variableRowHeight){if(d.endIndex===c-1){b=a.bodyTop+a.bodyHeight-1}else {b=Math.floor((c-g)*a.rowHeight)+a.bodyHeight;b+=a.bodyTop-d.startIndex*a.rowHeight}}else {b=Math.floor(c*a.rowHeight)}return a.scrollHeight=b},attemptLoad:function(b,c){var a=this;if(a.scrollToLoadBuffer){if(!a.loadTask){a.loadTask=new Ext.util.DelayedTask(a.doAttemptLoad,a,[])}a.loadTask.delay(a.scrollToLoadBuffer,a.doAttemptLoad,a,[b,c])}else {a.doAttemptLoad(b,c)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(b,c){var a=this;if(!a.destroyed){a.store.getRange(b,c,{loadId:++a.loadId,callback:function(e,f,g,d){if(d.loadId===a.loadId){a.onRangeFetched(e,f,g,d)}},fireEvent:!1})}},destroy:function(){var a=this,b=a.view;a.cancelLoad();if(b&&b.el){b.un('scroll',a.onViewScroll,a)}if(a.store){a.unbindStore()}a.viewListeners=a.gridListeners=a.view=a.grid=Ext.destroy(a.viewListeners,a.stretcher,a.gridListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,['plugin.bufferedrenderer'],0,[Ext.grid.plugin,'BufferedRenderer'],function(a){if(Ext.supports.Touch){a.prototype.leadingBufferZone=a.prototype.trailingBufferZone=2;a.prototype.numFromEdge=1}});Ext.cmd.derive('Ext.util.Queue',Ext.Base,{constructor:function(){this.clear()},add:function(b){var a=this,c=a.getKey(b);if(!a.map[c]){++a.length;a.items.push(b);a.map[c]=b}return b},clear:function(){var a=this,b=a.items;a.items=[];a.map={};a.length=0;return b},contains:function(b){var a=this.getKey(b);return this.map.hasOwnProperty(a)},getCount:function(){return this.length},getKey:function(a){return a.id},remove:function(b){var a=this,e=a.getKey(b),d=a.items,c;if(a.map[e]){c=Ext.Array.indexOf(d,b);Ext.Array.erase(d,c,1);delete a.map[e];--a.length}return b}},1,0,0,0,0,0,[Ext.util,'Queue'],0);Ext.cmd.derive('Ext.layout.ContextItem',Ext.Base,{heightModel:null,widthModel:null,sizeModel:null,optOut:!1,ownerSizePolicy:null,boxChildren:null,boxParent:null,children:[],dirty:null,dirtyCount:0,hasRawContent:!0,isContextItem:!0,isTopLevel:!1,consumersContentHeight:0,consumersContentWidth:0,consumersContainerHeight:0,consumersContainerWidth:0,consumersHeight:0,consumersWidth:0,ownerCtContext:null,remainingChildDimensions:0,props:null,state:null,wrapsComponent:!1,constructor:function(s){var a=this,o=Ext.layout.SizeModel.sizeModels,l=o.configured,g=o.shrinkWrap,r,c,f,d,k,i,b,p,m,q,n,h,e,j;Ext.apply(a,s);b=a.target;r=a.el;a.id=b.id;a.flushedProps={};a.props=k={};a.styles={};if(!b.isComponent){c=r.lastBox}else {a.wrapsComponent=!0;a.framing=b.frameSize||null;a.isComponentChild=b.ownerLayout&&b.ownerLayout.isComponentLayout;c=b.lastBox;f=b.ownerCt;if(f&&(d=f.el&&a.context.items[f.el.id])){a.ownerCtContext=d}a.sizeModel=i=b.getSizeModel(d&&d.widthModel.pairsByHeightOrdinal[d.heightModel.ordinal]);a.widthModel=h=i.width;a.heightModel=e=i.height;if(c&&c.invalid===!1){q=b.width===(p=c.width);n=b.height===(m=c.height);if(h===g&&e===g){j=!0}else {if(h===l&&q){j=e===g||e===l&&n}}if(j){a.optOut=!0;k.width=p;k.height=m}}}a.lastBox=c},init:function(r,i){var a=this,c=a.props,e=a.dirty,b=a.ownerCtContext,h=a.target.ownerLayout,j=!a.state,s=r||j,n,l,t,q,k,d,o=a.heightModel,p=a.widthModel,f,g,m=0;a.dirty=a.invalid=!1;a.props={};a.remainingChildDimensions=0;if(a.boxChildren){a.boxChildren.length=0}if(!j){a.clearAllBlocks('blocks');a.clearAllBlocks('domBlocks')}if(!a.wrapsComponent){return s}d=a.target;a.state={};if(j){if(d.beforeLayout&&d.beforeLayout!==Ext.emptyFn){d.beforeLayout()}if(!b&&(q=d.ownerCt)){b=a.context.items[q.el.id]}if(b){a.ownerCtContext=b;a.isBoxParent=h&&h.isItemBoxParent(a)}else {a.isTopLevel=!0}a.frameBodyContext=a.getEl('frameBody')}else {b=a.ownerCtContext;a.isTopLevel=!b;n=a.children;for(l=0,t=n.length;l0);if(r){a.widthModel=a.heightModel=null;k=d.getSizeModel(b&&b.widthModel.pairsByHeightOrdinal[b.heightModel.ordinal]);if(j){a.sizeModel=k}a.widthModel=k.width;a.heightModel=k.height;if(b&&!a.isComponentChild){if(h.needsItemSize||!d.liquidLayout){b.remainingChildDimensions+=2}else {if(a.widthModel.calculated){++b.remainingChildDimensions}if(a.heightModel.calculated){++b.remainingChildDimensions}}}}else {if(c){a.recoverProp('x',c,e);a.recoverProp('y',c,e);if(a.widthModel.calculated){a.recoverProp('width',c,e)}else {if('width' in c){++m}}if(a.heightModel.calculated){a.recoverProp('height',c,e)}else {if('height' in c){++m}}if(b&&!a.isComponentChild){b.remainingChildDimensions+=m}}}if(c&&h&&h.manageMargins){a.recoverProp('margin-top',c,e);a.recoverProp('margin-right',c,e);a.recoverProp('margin-bottom',c,e);a.recoverProp('margin-left',c,e)}if(i){f=i.heightModel;g=i.widthModel;if(g&&f&&p&&o){if(p.shrinkWrap&&o.shrinkWrap){if(g.constrainedMax&&f.constrainedMin){f=null}}}if(g){a.widthModel=g}if(f){a.heightModel=f}if(i.state){Ext.apply(a.state,i.state)}}return s},initContinue:function(f){var b=this,a=b.ownerCtContext,g=b.target,c=b.widthModel,e=g.getInherited(),d;if(c.fixed){e.inShrinkWrapTable=!1}else {delete e.inShrinkWrapTable}if(f){if(a&&c.shrinkWrap){d=a.isBoxParent?a:a.boxParent;if(d){d.addBoxChild(b)}}else {if(c.natural){b.boxParent=a}}}return f},initDone:function(d){var a=this,b=a.props,c=a.state;if(a.remainingChildDimensions===0){b.containerChildrenSizeDone=!0}if(d){b.containerLayoutDone=!0}if(a.boxChildren&&a.boxChildren.length&&a.widthModel.shrinkWrap){a.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var a=this,b=a.target,c=a.ownerCtContext;if(c&&c.isTopLevel){a.animatePolicy=b.ownerLayout.getAnimatePolicy(a)}else {if(!c&&b.isCollapsingOrExpanding&&b.animCollapse){a.animatePolicy=b.componentLayout.getAnimatePolicy(a)}}if(a.animatePolicy){a.context.queueAnimation(a)}},addBlock:function(f,a,e){var b=this,d=b[f]||(b[f]={}),c=d[e]||(d[e]={});if(!c[a.id]){c[a.id]=a;++a.blockCount;++b.context.blockCount}},addBoxChild:function(a){var d=this,b,c=a.widthModel;a.boxParent=this;a.measuresBox=c.shrinkWrap?a.hasRawContent:c.natural;if(a.measuresBox){b=d.boxChildren;if(b){b.push(a)}else {d.boxChildren=[a]}}},addPositionStyles:function(b,c){var d=c.x,e=c.y,a=0;if(d!==undefined){b.left=d+'px';++a}if(e!==undefined){b.top=e+'px';++a}return a},addTrigger:function(c,e){var b=this,h=e?'domTriggers':'triggers',f=b[h]||(b[h]={}),g=b.context,a=g.currentLayout,d=f[c]||(f[c]={});if(!d[a.id]){d[a.id]=a;++a.triggerCount;d=g.triggers[e?'dom':'data'];(d[a.id]||(d[a.id]=[])).push({item:this,prop:c});if(b.props[c]!==undefined){if(!e||!(b.dirty&&c in b.dirty)){++a.firedTriggers}}}},boxChildMeasured:function(){var a=this,b=a.state,c=b.boxesMeasured=(b.boxesMeasured||0)+1;if(c===a.boxChildren.length){b.clearBoxWidth=1;++a.context.progressCount;a.markDirty()}},borderNames:['border-top-width','border-right-width','border-bottom-width','border-left-width'],marginNames:['margin-top','margin-right','margin-bottom','margin-left'],paddingNames:['padding-top','padding-right','padding-bottom','padding-left'],trblNames:['top','right','bottom','left'],cacheMissHandlers:{borderInfo:function(b){var a=b.getStyles(b.borderNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},marginInfo:function(b){var a=b.getStyles(b.marginNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},paddingInfo:function(b){var c=b.frameBodyContext||b,a=c.getStyles(b.paddingNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(c){var a=this[c],b;if(a){for(b in a){this.clearBlocks(c,b)}}},clearBlocks:function(g,f){var c=this[g],b=c&&c[f],d,a,e;if(b){delete c[f];d=this.context;for(e in b){a=b[e];--d.blockCount;if(!--a.blockCount&&!a.pending&&!a.done){d.queueLayout(a)}}}},block:function(b,a){this.addBlock('blocks',b,a)},domBlock:function(b,a){this.addBlock('domBlocks',b,a)},fireTriggers:function(g,e){var c=this[g],b=c&&c[e],f=this.context,a,d;if(b){for(d in b){a=b[d];++a.firedTriggers;if(!a.done&&!a.blockCount&&!a.pending){f.queueLayout(a)}}}},flush:function(){var a=this,d=a.dirty,b=a.state,c=a.el;a.dirtyCount=0;if('attributes' in a){c.set(a.attributes);delete a.attributes}if('innerHTML' in a){c.innerHTML=a.innerHTML;delete a.innerHTML}if(b&&b.clearBoxWidth){b.clearBoxWidth=0;a.el.setStyle('width',null);if(!--b.blocks){a.context.queueItemLayouts(a)}}if(d){delete a.dirty;a.writeProps(d,!0)}},flushAnimations:function(){var b=this,k=b.previousSize,a,h,l,f,d,g,e,m,c,j,i;if(k){a=b.target;h=a.getAnimationProps();l=h.duration;f=Ext.Object.getKeys(b.animatePolicy);d=Ext.apply({},{from:{},to:{},duration:l||Ext.fx.Anim.prototype.duration},h);for(g=0,e=0,m=f.length;e0},runLayout:function(a){var b=this,c=b.getCmp(a.owner);a.pending=!1;if(c.state.blocks){return}a.done=!0;++a.calcCount;++b.calcCount;a.calculate(c);if(a.done){b.layoutDone(a);if(a.completeLayout){b.queueCompletion(a)}if(a.finalizeLayout){b.queueFinalize(a)}}else {if(!a.pending&&!a.invalid&&!(a.blockCount+a.triggerCount-a.firedTriggers)){b.queueLayout(a)}}},setItemSize:function(a,g,f){var b=a,c=1,e,d;if(a.isComposite){b=a.elements;c=b.length;a=b[0]}else {if(!a.dom&&!a.el){c=b.length;a=b[0]}}for(d=0;da){a=d.weight}}},this);return a},getSplitterTarget:function(b){var a=b.collapseTarget;if(a&&a.collapsed){return a.placeholder||a}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},insertSplitter:function(a,f,e,d){var c=a.region,b=Ext.apply({xtype:'bordersplitter',collapseTarget:a,id:a.id+'-splitter',hidden:e,canResize:a.splitterResize!==!1,splitterFor:a,synthetic:!0},d),g=f+(c==='south'||c==='east'?0:1);if(a.collapseMode==='mini'){b.collapsedCls=a.collapsedCls}a.splitter=this.owner.add(g,b)},getMoveAfterIndex:function(b){var a=Ext.layout.container.Container.prototype.getMoveAfterIndex.apply(this,arguments);if(b.splitter){a++}return a},moveItemBefore:function(c,a){var b;if(a&&a.splitter){b=a.region;if(b==='south'||b==='east'){a=a.splitter}}return Ext.layout.container.Container.prototype.moveItemBefore.call(this,c,a)},onAdd:function(a,i){var b=this,d=a.placeholderFor,f=a.region,e,c,g,h;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(f){Ext.apply(a,b.regionFlags[f]);if(b.owner.isViewport){a.isViewportBorderChild=!0}if(a.initBorderRegion){a.initBorderRegion()}e=f==='center';if(e){b.centerRegion=a}else {c=a.split;g=!!a.hidden;if(typeof c==='object'){h=c;c=!0}if((a.isHorz||a.isVert)&&(c||a.collapseMode==='mini')){b.insertSplitter(a,i,g||!c,h)}}if(!e&&!a.hasOwnProperty('collapseMode')){a.collapseMode=b.panelCollapseMode}if(!a.hasOwnProperty('animCollapse')){if(a.collapseMode!=='placeholder'){a.animCollapse=!1}else {a.animCollapse=b.panelCollapseAnimate}}}else {if(d){Ext.apply(a,b.regionFlags[d.region]);a.region=d.region;a.weight=d.weight}}},onDestroy:function(){this.centerRegion=null;Ext.layout.container.Container.prototype.onDestroy.call(this)},onRemove:function(a,f){var d=this,h=a.region,e=a.splitter,c=d.owner,g=c.destroying,b;if(h){if(a.isCenter){d.centerRegion=null}delete a.isCenter;delete a.isHorz;delete a.isVert;if(e&&!c.destroying){c.doRemove(e,!0)}delete a.splitter}Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(!g&&!f&&a.rendered){b=a.getEl();if(b){b.setStyle('top','');b.setStyle(d.horzPositionProp,'')}}},regionMeta:{center:{splitterDelta:0},north:{splitterDelta:1},south:{splitterDelta:-1},west:{splitterDelta:1},east:{splitterDelta:-1}},regionFlags:{center:{isCenter:!0,isHorz:!1,isVert:!1},north:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'top'},south:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'bottom'},west:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'left'},east:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'right'}},setupSplitterNeighbors:function(l){var i={},m=l.length,k=this.touchedRegions,h,b,j,g,d,a,f,e,c;for(h=0;h{%this.renderBody(out, values)%}'],targetElCls:'x-center-target',beginLayout:function(b){var h=this,f=h.percentRe,e,g,d,c,a,j,i;Ext.layout.container.Fit.prototype.beginLayout.call(this,b);e=b.childItems;for(d=0,g=e.length;dm){a=m}}if(a-d<2){return null}c=new Ext.util.Region(v,t,s,u);i.constraintAdjusters[i.getCollapseDirection()](c,d,a,e);i.dragInfo={minRange:d,maxRange:a,targetSize:q};return c},constraintAdjusters:{left:function(a,c,b,d){a[0]=a.x=a.left=a.right+c;a.right+=b+d.getWidth()},top:function(a,c,b,d){a[1]=a.y=a.top=a.bottom+c;a.bottom+=b+d.getHeight()},bottom:function(a,c,b,d){a.bottom=a.top-c;a.top-=b+d.getHeight()},right:function(a,c,b,d){a.right=a.left-c;a[0]=a.x=a.left=a.x-b+d.getWidth()}},onBeforeStart:function(h){var c=this,f=c.splitter,d=f.collapseTarget,e=f.neighbors,g=e.length,a,b;if(d.collapsed){return !1}for(a=0;ad){a.minWidth=a.el.getWidth()*c}else {a.minHeight=a.el.getHeight()*d}}if(a.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)},a.throttle);a.resize=function(f,d,c){if(c){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)}else {e.apply(null,arguments)}}}},onBeforeStart:function(a){this.startBox=this.target.getBox()},getProxy:function(){var a=this;if(!a.dynamic&&!a.proxy){a.proxy=a.createProxy(a.target||a.el);a.hideProxy=!0}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(a){var b,c=this.proxyCls;if(a.isComponent){b=a.getProxy().addCls(c)}else {b=a.createProxy({tag:'div',role:'presentation',cls:c,id:a.id+'-rzproxy'},Ext.getBody())}b.removeCls('x-proxy-el');return b},onStart:function(a){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(c,b){var a=Ext.fly(b.parentNode);Ext.dd.DragTracker.prototype.onMouseDown.apply(this,arguments);if(a&&a.shim){a.maskIframes()}},onMouseUp:function(b){var a=Ext.fly(this.dragTarget.parentNode);Ext.dd.DragTracker.prototype.onMouseUp.apply(this,arguments);if(a&&a.shim){a.unmaskIframes()}},onDrag:function(a){if(this.dynamic||this.proxy){this.updateDimensions(a)}},updateDimensions:function(s,r){var c=this,h=c.activeResizeHandle.region,d=c.getOffset(c.constrainTo?'dragTarget':null),b=c.startBox,n,f=0,e=0,k,j,l=0,m=0,q,i,g,a,o,p;h=c.convertRegionName(h);switch(h){case 'south':e=d[1];g=2;break;case 'north':e=-d[1];m=-e;g=2;break;case 'east':f=d[0];g=1;break;case 'west':f=-d[0];l=-f;g=1;break;case 'northeast':e=-d[1];m=-e;f=d[0];i=[b.x,b.y+b.height];g=3;break;case 'southeast':e=d[1];f=d[0];i=[b.x,b.y];g=3;break;case 'southwest':f=-d[0];l=-f;e=d[1];i=[b.x+b.width,b.y];g=3;break;case 'northwest':e=-d[1];m=-e;f=-d[0];l=-f;i=[b.x+b.width,b.y+b.height];g=3;break;}a={width:b.width+f,height:b.height+e,x:b.x+l,y:b.y+m};k=Ext.Number.snap(a.width,c.widthIncrement);j=Ext.Number.snap(a.height,c.heightIncrement);if(k!==a.width||j!==a.height){switch(h){case 'northeast':a.y-=j-a.height;break;case 'north':a.y-=j-a.height;break;case 'southwest':a.x-=k-a.width;break;case 'west':a.x-=k-a.width;break;case 'northwest':a.x-=k-a.width;a.y-=j-a.height;}a.width=k;a.height=j}if(a.widthc.maxWidth){a.width=Ext.Number.constrain(a.width,c.minWidth,c.maxWidth);if(l){a.x=b.x+(b.width-a.width)}}else {c.lastX=a.x}if(a.heightc.maxHeight){a.height=Ext.Number.constrain(a.height,c.minHeight,c.maxHeight);if(m){a.y=b.y+(b.height-a.height)}}else {c.lastY=a.y}if(c.preserveRatio||s.shiftKey){n=c.startBox.width/c.startBox.height;o=Math.min(Math.max(c.minHeight,a.width/n),c.maxHeight);p=Math.min(Math.max(c.minWidth,a.height*n),c.maxWidth);if(g===1){a.height=o}else {if(g===2){a.width=p}else {q=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(q>n){a.height=o}else {a.width=p}if(h==='northeast'){a.y=b.y-(a.height-b.height)}else {if(h==='northwest'){a.y=b.y-(a.height-b.height);a.x=b.x-(a.width-b.width)}else {if(h==='southwest'){a.x=b.x-(a.width-b.width)}}}}}}c.setPosition=a.x!==c.startBox.x||a.y!==c.startBox.y;c.resize(a,r)},resize:function(b,e){var a=this,c,d=a.setPosition;if(a.dynamic||!a.dynamic&&e){if(d){a.target.setBox(b)}else {a.target.setSize(b.width,b.height)}}if(!e){c=a.getProxy();if(c&&c!==a.target){if(d||a.hideProxy){c.setBox(b)}else {c.setSize(b.width,b.height)}}}},onEnd:function(a){this.updateDimensions(a,!0);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,'ResizeTracker'],0);Ext.cmd.derive('Ext.resizer.Resizer',Ext.Base,{alternateClassName:'Ext.Resizable',handleCls:'x-resizable-handle',overCls:'x-resizable-handle-over',pinnedCls:'x-resizable-pinned',wrapCls:'x-resizable-wrap',wrappedCls:'x-resizable-wrapped',delimiterRe:/(?:\s*[,;]\s*)|\s+/,dynamic:!0,handles:'s e se',height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:!1,preserveRatio:!1,transparent:!1,possiblePositions:{n:'north',s:'south',e:'east',w:'west',se:'southeast',sw:'southwest',nw:'northwest',ne:'northeast'},ariaRole:'presentation',constructor:function(e){var a=this,d=a.handles,q=Ext.dom.Element.unselectableCls,h=[],b,k,i,m,p,c,f,n,l,g,o,j;if(Ext.isString(e)||Ext.isElement(e)||e.dom){b=e;e=arguments[1]||{};e.target=b}a.mixins.observable.constructor.call(a,e);b=a.target;if(b){if(b.isComponent){b.addClsWithUI('resizable');if(b.minWidth){a.minWidth=b.minWidth}if(b.minHeight){a.minHeight=b.minHeight}if(b.maxWidth){a.maxWidth=b.maxWidth}if(b.maxHeight){a.maxHeight=b.maxHeight}if(b.floating){if(!a.hasOwnProperty('handles')){a.handles='n ne e se s sw w nw'}}a.el=b.getEl()}else {b=a.el=a.target=Ext.get(b)}}else {b=a.target=a.el=Ext.get(a.el)}a.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(a.width)){a.width=Ext.Number.constrain(a.width,a.minWidth,a.maxWidth)}if(Ext.isNumber(a.height)){a.height=Ext.Number.constrain(a.height,a.minHeight,a.maxHeight)}if(a.width!==null||a.height!==null){a.target.setSize(a.width,a.height)}m=a.el.dom.tagName.toUpperCase();if(m==='TEXTAREA'||m==='IMG'||m==='TABLE'){a.originalTarget=a.target;g=b.isComponent?b.getEl():b;a.el.addCls(a.wrappedCls);a.target=a.el=a.el.wrap({role:'presentation',cls:a.wrapCls,id:a.el.id+'-rzwrap',style:g.getStyle(['margin-top','margin-bottom'])});o=g.getPositioning();a.el.setPositioning(o);g.clearPositioning();l=g.getBox();if(o.position!=='absolute'){l.x=0;l.y=0}a.el.setBox(l);g.setStyle('position','absolute');a.isTargetWrapped=!0}a.el.position();if(a.pinned){a.el.addCls(a.pinnedCls)}a.resizeTracker=new Ext.resizer.ResizeTracker({disabled:a.disabled,target:b,el:a.el,constrainTo:a.constrainTo,handleCls:a.handleCls,overCls:a.overCls,throttle:a.throttle,proxy:a.originalTarget?a.el:null,dynamic:a.originalTarget?!0:a.dynamic,originalTarget:a.originalTarget,delegate:'.'+a.handleCls,preserveRatio:a.preserveRatio,heightIncrement:a.heightIncrement,widthIncrement:a.widthIncrement,minHeight:a.minHeight,maxHeight:a.maxHeight,minWidth:a.minWidth,maxWidth:a.maxWidth});a.resizeTracker.on({mousedown:a.onBeforeResize,drag:a.onResize,dragend:a.onResizeEnd,scope:a});if(a.handles==='all'){a.handles='n s e w ne nw se sw'}d=a.handles=a.handles.split(a.delimiterRe);i=a.possiblePositions;p=d.length;k=a.handleCls+' '+a.handleCls+'-{0}';if(a.target.isComponent){j=a.target.baseCls;k+=' '+j+'-handle '+j+'-handle-{0}';if(Ext.supports.CSS3BorderRadius){k+=' '+j+'-handle-{0}-br'}}for(c=0;c')}}Ext.DomHelper.append(a.el,h.join(''));h.length=0;for(c=0;c-1){this.doSelect(a.record,!1,b)}},onCellDeselect:function(a,b){if(a&&a.rowIdx!==undefined){this.doDeselect(a.record,b)}},onSelectChange:function(g,f,e,h){var b=this,a,c,d;if(f){a=b.nextSelection;c='select'}else {a=b.selection;c='deselect'}d=a.view||b.primaryView;if((e||b.fireEvent('before'+c,b,g,a.rowIdx,a.colIdx))!==!1&&h()!==!1){if(f){d.onCellSelect(a)}else {d.onCellDeselect(a);delete b.selection}if(!e){b.fireEvent(c,b,g,a.rowIdx,a.colIdx)}}},refresh:function(){var b=this.getPosition(),a;if(b&&(a=this.store.indexOf(this.selected.last()))!==-1){b.rowIdx=a}},onColumnMove:function(b,d,c,e){var a=b.up('tablepanel');if(a){this.onViewRefresh(a.view)}},onUpdate:function(c){var a=this,b;if(a.isSelected(c)){b=a.selecting?a.nextSelection:a.selection;a.view.onCellSelect(b)}},onViewRefresh:function(d){var f=this,b=f.getPosition(),g,c=d.headerCt,e,a;if(b&&b.view===d){e=b.record;a=b.column;if(!a.isDescendantOf(c)){a=c.queryById(a.id)||c.down('[text="'+a.text+'"]')||c.down('[dataIndex="'+a.dataIndex+'"]')}if(b.record){if(a&&d.store.indexOfId(e.getId())!==-1){g=(new Ext.grid.CellContext(d)).setPosition({row:e,column:a});f.setPosition(g)}}else {f.selection=null}}},selectByPosition:function(b,a){this.setPosition(b,a)}},0,0,0,0,['selection.cellmodel'],0,[Ext.selection,'CellModel'],0);Ext.cmd.derive('Ext.selection.RowModel',Ext.selection.DataViewModel,{enableKeyNav:!0,isRowModel:!0,deselectOnContainerClick:!1,onUpdate:function(b){var d=this,a=d.view,c;if(a&&d.isSelected(b)){c=a.indexOf(b);a.onRowSelect(c);if(b===d.lastFocused){a.onRowFocus(c,!0)}}},onSelectChange:function(c,g,e,j){var a=this,i=a.views||[a.view],k=i.length,b=a.store.indexOf(c),h=g?'select':'deselect',f,d;if((e||a.fireEvent('before'+h,a,c,b))!==!1&&j()!==!1){for(f=0;f '},selectByPosition:function(a,b){if(!a.isCellContext){a=(new Ext.grid.CellContext(this.view)).setPosition(a.row,a.column)}if(!this.checkOnly||a.column===this.column){Ext.selection.RowModel.prototype.selectByPosition.call(this,a,b)}},onSelectChange:function(){Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(!this.suspendChange){this.updateHeaderState()}},onStoreLoad:function(){Ext.selection.RowModel.prototype.onStoreLoad.apply(this,arguments);this.updateHeaderState()},onStoreAdd:function(){Ext.selection.RowModel.prototype.onStoreAdd.apply(this,arguments);this.updateHeaderState()},onStoreRemove:function(){Ext.selection.RowModel.prototype.onStoreRemove.apply(this,arguments);this.updateHeaderState()},onStoreRefresh:function(){Ext.selection.RowModel.prototype.onStoreRefresh.apply(this,arguments);this.updateHeaderState()},maybeFireSelectionChange:function(a){if(a&&!this.suspendChange){this.updateHeaderState()}Ext.selection.RowModel.prototype.maybeFireSelectionChange.apply(this,arguments)},resumeChanges:function(){Ext.selection.RowModel.prototype.resumeChanges.call(this);if(!this.suspendChange){this.updateHeaderState()}},updateHeaderState:function(){var a=this,e=a.store,g=e.getCount(),h=a.views,c=!1,f=0,d,i,b;if(!e.isBufferedStore&&g>0){d=a.selected;c=!0;for(b=0,i=d.getCount();b style="{bodyStyle}">{%this.renderContainer(out,values)%}',_reverseDockNames:{left:'right',right:'left'},_layoutAlign:{top:'end',right:'begin',bottom:'begin',left:'end'},initComponent:function(){var a=this,b=a.initialConfig.layout,d=b&&b.align,c=b&&b.overflowHandler;if(a.plain){a.addCls(a.baseCls+'-plain')}Ext.panel.Bar.prototype.initComponent.call(this);a.setLayout({align:d||(a.getTabStretchMax()?'stretchmax':a._layoutAlign[a.dock]),overflowHandler:c||'scroller'});a.on({click:a.onClick,element:'el',scope:a})},ensureTabVisible:function(a){var b=this,d=b.tabPanel,c=b.layout.overflowHandler;if(b.rendered&&c&&b.tooNarrow&&c.scrollToItem){if(a||a===0){if(!a.isTab){if(Ext.isNumber(a)){a=this.items.getAt(a)}else {if(a.isComponent&&d&&d.items.contains(a)){a=a.tab}}}}if(!a){a=b.activeTab}if(a){c.scrollToItem(a)}}},initRenderData:function(){var a=this;return Ext.apply(Ext.panel.Bar.prototype.initRenderData.call(this),{bodyCls:a.bodyCls,baseBodyCls:a._baseBodyCls,bodyTargetCls:a.bodyTargetCls,stripCls:a._stripCls,dock:a.dock})},setDock:function(f){var b=this,a=b.items,d=b.ownerCt,e,c,g;a=a&&a.items;if(a){for(c=0,g=a.length;c1){if(a&&a!==b&&!a.disabled){c=a}else {c=b.next('tab[disabled=false]')||b.prev('tab[disabled=false]')}}return c||d.activeTab},setActiveTab:function(b,c){var a=this;if(!b.disabled&&b!==a.activeTab){if(a.activeTab){if(a.activeTab.destroyed){a.previousTab=null}else {a.previousTab=a.activeTab;a.activeTab.deactivate();a.deactivateFocusable(a.activeTab)}}b.activate();a.activateFocusable(b);a.activeTab=b;a.needsScroll=!0;if(!c){a.fireEvent('change',a,b,b.card);a.updateLayout()}}},privates:{adjustTabPositions:function(){var g=this,f=g.items.items,h=f.length,a,b,e,c,d;if(!Ext.isIE8){d=g._getTabAdjustProp();while(h--){a=f[h];e=a.el;b=a.lastBox;c=a.isTab?a.getActualRotation():0;if(c===1&&a.isVisible()){e.setStyle(d,b.x+b.width+'px')}else {if(c===2&&a.isVisible()){e.setStyle(d,b.x-b.height+'px')}}}}},applyTargetCls:function(a){this.bodyTargetCls=a},_getTabAdjustProp:function(){return 'left'},getTargetEl:function(){return this.body||this.frameBody||this.el},onClick:function(c,g){var f=this,e,a,b,d;if(c.getTarget('.x-box-scroller')){return}if(Ext.isIE8&&f.vertical){d=f.getTabInfoFromPoint(c.getXY());a=d.tab;b=d.close}else {e=c.getTarget('.'+Ext.tab.Tab.prototype.baseCls);a=e&&Ext.getCmp(e.id);b=a&&a.closeEl&&g===a.closeEl.dom}if(b){c.preventDefault()}if(a&&a.isDisabled&&!a.isDisabled()){a.beforeClick(b);if(a.closable&&b){a.onCloseClick()}else {f.doActivateTab(a)}}},doActivateTab:function(a){var b=this.tabPanel;if(b){if(!a.disabled){b.setActiveTab(a.card)}}else {this.setActiveTab(a)}},onFocusableContainerFocus:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocus.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},onFocusableContainerFocusEnter:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocusEnter.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},focusChild:function(d,c){var b=this,e=b.mixins.focusablecontainer,a;a=e.focusChild.call(b,d,c);if(b.activateOnFocus&&a&&a.isTab){b.doActivateTab(a)}}}},0,['tabbar'],['component','box','container','tabbar'],{'component':!0,'box':!0,'container':!0,'tabbar':!0},['widget.tabbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.tab,'Bar'],0);Ext.cmd.derive('Ext.tab.Panel',Ext.panel.Panel,{alternateClassName:['Ext.TabPanel'],config:{tabBar:undefined,tabPosition:'top',tabRotation:'default',tabStretchMax:!0},removePanelHeader:!0,plain:!1,itemCls:'x-tabpanel-child',minTabWidth:undefined,maxTabWidth:undefined,deferredRender:!0,_defaultTabRotation:{top:0,right:1,bottom:0,left:2},initComponent:function(){var a=this,c=a.activeTab!==null?a.activeTab||0:null,d=a.dockedItems,b=a.header,f=a.tabBarHeaderPosition,e=a.getTabBar(),g;a.layout=new Ext.layout.container.Card(Ext.apply({owner:a,deferredRender:a.deferredRender,itemCls:a.itemCls,activeItem:c},a.layout));if(f!=null){b=a.header=Ext.apply({},b);g=b.items=b.items?b.items.slice():[];b.itemPosition=f;g.push(e);b.hasTabBar=!0}else {d=[].concat(a.dockedItems||[]);d.push(e);a.dockedItems=d}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);c=a.activeTab=a.getComponent(c);if(c){e.setActiveTab(c.tab,!0)}},onRender:function(){var b=this.items.items,c=b.length,a;Ext.panel.Panel.prototype.onRender.apply(this,arguments);for(a=0;a','
    lineempty" role="presentation">
    ','','
    -end-plus {expanderCls}" role="presentation">
    ','','
    {checkboxCls}-checked">
    ','
    ','',' role="presentation" class="{childCls} {baseIconCls} {customIconCls} ','{baseIconCls}-leafparent-expandedparent {iconCls}" ','style="background-image:url({icon})"/>>','','{value}','','{value}',''],uiFields:{checked:1,icon:1,iconCls:1},rowFields:{expanded:1,loaded:1,expandable:1,leaf:1,loading:1,qtip:1,qtitle:1,cls:1},initComponent:function(){var a=this;a.rendererScope=a.scope;a.setupRenderer();a.innerRenderer=a.renderer;a.renderer=a.treeRenderer;Ext.grid.column.Column.prototype.initComponent.call(this);a.scope=a;a.hasCustomRenderer=a.innerRenderer&&a.innerRenderer.length>1},treeRenderer:function(i,a,c,g,f,h,j){var e=this,d=c.get('cls'),b;if(a&&d){a.tdCls+=' '+d}b=e.initTemplateRendererData(i,a,c,g,f,h,j);return e.getTpl('cellTpl').apply(b)},initTemplateRendererData:function(j,i,d,m,l,n,k){var a=this,f=a.innerRenderer,b=d.data,c=d.parentNode,g=k.rootVisible,h=[],e;while(c&&(g||c.data.depth>0)){e=c.data;h[g?e.depth:e.depth-1]=e.isLast?0:1;c=c.parentNode}return {record:d,baseIconCls:a.iconCls,customIconCls:b.icon||b.iconCls?a.customIconCls:'',iconCls:b.iconCls,icon:b.icon,checkboxCls:a.checkboxCls,checked:b.checked,elbowCls:a.elbowCls,expanderCls:a.expanderCls,textCls:a.textCls,leaf:b.leaf,expandable:d.isExpandable(),expanded:b.expanded,isLast:d.isLastVisible(),blankUrl:Ext.BLANK_IMAGE_URL,href:b.href,hrefTarget:b.hrefTarget,lines:h,metaData:i,childCls:a.getChildCls?a.getChildCls()+' ':'',value:f?f.apply(a.rendererScope,arguments):j}},shouldUpdateCell:function(f,a){var e=this,c=0,d,b;if(a){d=a.length;for(;c1;Ext.grid.NavigationModel.prototype.initKeyNav.call(this,e);for(b=0,d=a.keyNav.length;b1},onCellClick:function(f,e,c,d,g,b,a){Ext.grid.NavigationModel.prototype.onCellClick.call(this,f,e,c,d,g,b,a);return !a.nodeToggled},onKeyLeft:function(b){var c=this,d=b.view,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyLeft.call(this,b)}if(b.position.column.isTreeColumn&&a.isExpanded()){d.collapse(a)}else {a=a.parentNode;if(a&&!(a.isRoot()&&!d.rootVisible)){c.setPosition(a,null,b)}}},onKeyRight:function(b){var c=this,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyRight.call(this,b)}if(!a.isLeaf()){if(b.position.column.isTreeColumn&&!a.isExpanded()){b.view.expand(a)}else {if(a.isExpanded()){a=a.childNodes[0];if(a){c.setPosition(a)}}}}},onKeyEnter:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeyEnter.call(this,a)}},onKeySpace:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeySpace.call(this,a)}},toggleCheck:function(a){this.view.onCheckChange(a)},onAsterisk:function(a){this.view.ownerCt.expandAll()}},0,0,0,0,['view.navigation.tree'],0,[Ext.tree,'NavigationModel'],0);Ext.cmd.derive('Ext.tree.View',Ext.view.Table,{config:{selectionModel:{type:'treemodel'}},isTreeView:!0,loadingCls:'x-grid-tree-loading',expandedCls:'x-grid-tree-node-expanded',leafCls:'x-grid-tree-node-leaf',expanderSelector:'.x-tree-expander',checkboxSelector:'.x-tree-checkbox',expanderIconOverCls:'x-tree-expander-over',nodeAnimWrapCls:'x-tree-animator-wrap',ariaRole:'tree',loadMask:!1,rootVisible:!0,expandDuration:250,collapseDuration:250,toggleOnDblClick:!0,stripeRows:!1,treeRowTpl:['{%','this.processRowValues(values);','this.nextTpl.applyOut(values, out, parent);','%}',{priority:10,processRowValues:function(a){var b=a.record,c=a.view;a.rowAttr['data-qtip']=b.get('qtip')||'';a.rowAttr['data-qtitle']=b.get('qtitle')||'';if(b.isExpanded()){a.rowClasses.push(c.expandedCls)}if(b.isLeaf()){a.rowClasses.push(c.leafCls)}if(b.isLoading()){a.rowClasses.push(c.loadingCls)}}}],initComponent:function(){var a=this;if(a.bufferedRenderer){a.animate=!1}else {if(a.initialConfig.animate===undefined){a.animate=Ext.enableFx}}a.store=a.panel.getStore();a.onRootChange(a.store.getRoot());a.animQueue={};a.animWraps={};Ext.view.Table.prototype.initComponent.call(this);a.store.setRootVisible(a.rootVisible);a.addRowTpl(Ext.XTemplate.getTpl(a,'treeRowTpl'))},onFillComplete:function(f,d,b){var a=this,e=a.store,c=e.indexOf(b[0]);d.triggerUIUpdate();if(!b.length||c===-1){return}a.onAdd(a.store,b,c);a.refreshPartner()},refreshPartner:function(){var a=this.lockingPartner;if(a){a.refresh()}},afterComponentLayout:function(e,d,c,b){var a=this.getScrollable();Ext.view.Table.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&!this.bufferedRenderer){a.refresh()}},processUIEvent:function(a){if(a.getTarget('.'+this.nodeAnimWrapCls,this.el)){return !1}return Ext.view.Table.prototype.processUIEvent.call(this,a)},setRootNode:function(a){this.node=a},getChecked:function(){var a=[];this.node.cascadeBy(function(b){if(b.get('checked')){a.push(b)}});return a},isItemChecked:function(a){return a.get('checked')},createAnimWrap:function(b,e){var d=this,c=d.getNode(b),a;a=Ext.fly(c).insertSibling({role:'presentation',tag:'div',cls:d.nodeAnimWrapCls},'after');return {record:b,node:c,el:a,expanding:!1,collapsing:!1,animateEl:a,targetEl:a}},getAnimWrap:function(a,d){if(!this.animate){return null}var c=this.animWraps,b=c[a.internalId];if(d!==!1){while(!b&&a){a=a.parentNode;if(a){b=c[a.internalId]}}}return b},doAdd:function(h,c){var d=this,l=h[0],i=l.parentNode,m=d.all,e,a=d.getAnimWrap(i),g,f,k,j,b;if(!a||!a.expanding){return Ext.view.Table.prototype.doAdd.call(this,h,c)}j=d.bufferRender(h,c,!0);b=j.children;i=a.record;g=a.targetEl;f=g.dom.childNodes;k=f.length;e=c-d.indexInStore(i)-1;if(!k||e>=k){g.appendChild(j.fragment,!0)}else {Ext.fly(f[e]).insertSibling(b,'before',!0)}m.insert(c,b);return b},onRemove:function(h,c,b){var a=this,g,d,e=a.hasListeners.remove,f;if(a.viewReady){g=a.store.getCount()===0;if(a.bufferedRenderer){return Ext.view.Table.prototype.onRemove.call(this,h,c,b)}if(e){f=this.all.slice(b,b+c.length)}if(g){a.refresh()}else {for(d=c.length-1,b+=d;d>=0;--d,--b){a.doRemove(c[d],b)}a.refreshSizePending=!0}if(e){a.fireEvent('itemremove',c,b,f,a)}}},doRemove:function(c,b){var g=this,f=g.all,a=g.getAnimWrap(c),d=f.item(b),e=d?d.dom:null;if(!e||!a||!a.collapsing){return Ext.view.Table.prototype.doRemove.call(this,c,b)}a.targetEl.dom.insertBefore(e,a.targetEl.dom.firstChild);f.removeElement(b)},onBeforeExpand:function(c,d,e){var b=this,a;if(b.rendered&&b.all.getCount()&&b.animate){if(b.getNode(c)){a=b.getAnimWrap(c,!1);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c);a.animateEl.setHeight(0)}else {if(a.collapsing){a.targetEl.select(b.itemSelector).destroy()}}a.expanding=!0;a.collapsing=!1}}},onExpand:function(b){var a=this,h=a.animQueue,i=b.getId(),f=a.getNode(b),g=f?a.indexOf(f):-1,c,d,e;if(a.singleExpand){a.ensureSingleExpand(b)}if(g===-1){return}c=a.getAnimWrap(b,!1);if(!c){b.isExpandingOrCollapsing=!1;a.fireEvent('afteritemexpand',b,g,f);return}d=c.animateEl;e=c.targetEl;d.stopAnimation();h[i]=!0;Ext.on('idle',function(){d.dom.style.height='0px'},null,{single:!0});d.animate({from:{height:0},to:{height:e.dom.scrollHeight},duration:a.expandDuration,listeners:{afteranimate:function(){var f=e.dom.childNodes,d=Ext.Element.getActiveElement();if(f.length){if(!e.contains(d)){d=null}c.el.insertSibling(f,'before',!0);if(d){Ext.fly(d).focus()}}c.el.destroy();a.animWraps[c.record.internalId]=h[i]=null}},callback:function(){b.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemexpand',b,g,f)}})},onBeforeCollapse:function(c,g,f,d,e){var b=this,a;if(b.rendered&&b.all.getCount()){if(b.animate){if(c.isVisible()){a=b.getAnimWrap(c);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c,f)}else {if(a.expanding){a.targetEl.select(this.itemSelector).destroy()}}a.expanding=!1;a.collapsing=!0;a.callback=d;a.scope=e}}else {b.onCollapseCallback=d;b.onCollapseScope=e}}},onCollapse:function(c){var a=this,g=a.animQueue,h=c.getId(),d=a.getNode(c),f=d?a.indexOf(d):-1,b=a.getAnimWrap(c),e;if(!a.all.getCount()||!c.isVisible()){return}if(!b){c.isExpandingOrCollapsing=!1;a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(a.onCollapseCallback,a.onCollapseScope);a.onCollapseCallback=a.onCollapseScope=null;return}e=b.animateEl;g[h]=!0;e.stopAnimation();e.animate({to:{height:0},duration:a.collapseDuration,listeners:{afteranimate:function(){b.el.destroy();a.animWraps[b.record.internalId]=g[h]=null}},callback:function(){c.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(b.callback,b.scope);b.callback=b.scope=null}})},isAnimating:function(a){return !!this.animQueue[a.getId()]},expand:function(a,f,d,e){var g=this,b=!!g.animate,c;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}Ext.suspendLayouts();c=a.expand(f,d,e);Ext.resumeLayouts(!0);return c}},collapse:function(a,e,c,d){var f=this,b=!!f.animate;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}return a.collapse(e,c,d)}},toggle:function(a,d,b,c){if(a.isExpanded()){this.collapse(a,d,b,c)}else {this.expand(a,d,b,c)}},onItemDblClick:function(a,e,d,f){var b=this,c=b.editingPlugin;Ext.view.Table.prototype.onItemDblClick.call(this,a,e,d,f);if(b.toggleOnDblClick&&a.isExpandable()&&!(c&&c.clicksToEdit===2)){b.toggle(a)}},onCellClick:function(d,g,c,i,h,a){var b=this,f=a.position.column,e;if(f.isTreeColumn){if(a.getTarget(b.checkboxSelector,d)&&Ext.isBoolean(e=c.get('checked'))&&b.fireEvent('beforecheckchange',c,e,a)!==!1){b.onCheckChange(a);if(f.stopSelection){a.stopSelection=!0}}else {if(a.getTarget(b.expanderSelector,d)&&c.isExpandable()){b.getNavigationModel().setPosition(a.position);b.toggle(c,a.ctrlKey);a.nodeToggled=!0}}return Ext.view.Table.prototype.onCellClick.call(this,d,g,c,i,h,a)}},onCheckChange:function(c){var a=c.record,b=!a.get('checked');a.set('checked',b);this.fireEvent('checkchange',a,b,c)},onItemMouseOver:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).addCls(this.expanderIconOverCls)}},onItemMouseOut:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).removeCls(this.expanderIconOverCls)}},getStoreListeners:function(){return Ext.apply(Ext.view.Table.prototype.getStoreListeners.call(this),{rootchange:this.onRootChange,fillcomplete:this.onFillComplete})},onBindStore:function(b,f,e,a){var d=a&&a.getRootNode(),c=b&&b.getRootNode();Ext.view.Table.prototype.onBindStore.call(this,b,f,e,a);if(c!==d){this.onRootChange(c,d)}},onRootChange:function(b,c){var a=this,d=a.grid;if(c){a.rootListeners.destroy();a.rootListeners=null}if(b){a.rootListeners=b.on({beforeexpand:a.onBeforeExpand,expand:a.onExpand,beforecollapse:a.onBeforeCollapse,collapse:a.onCollapse,destroyable:!0,scope:a});d.addRelayers(b)}},ensureSingleExpand:function(b){var a=b.parentNode;if(a){a.eachChild(function(a){if(a!==b&&a.isExpanded()){a.collapse()}})}}},0,['treeview'],['component','box','dataview','tableview','gridview','treeview'],{'component':!0,'box':!0,'dataview':!0,'tableview':!0,'gridview':!0,'treeview':!0},['widget.treeview'],0,[Ext.tree,'View'],0);Ext.cmd.derive('Ext.tree.Panel',Ext.panel.Table,{alternateClassName:['Ext.tree.TreePanel','Ext.TreePanel'],viewType:'treeview',treeCls:'x-tree-panel',rowLines:!1,lines:!0,useArrows:!1,singleExpand:!1,ddConfig:{enableDrag:!0,enableDrop:!0},rootVisible:!0,displayField:'text',root:null,normalCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible','scroll'],lockedCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible'],isTree:!0,arrowCls:'x-tree-arrows',linesCls:'x-tree-lines',noLinesCls:'x-tree-no-lines',autoWidthCls:'x-autowidth-table',constructor:function(a){a=a||{};if(a.animate===undefined){a.animate=Ext.isBoolean(this.animate)?this.animate:Ext.enableFx}this.enableAnimations=a.animate;delete a.animate;Ext.panel.Table.prototype.constructor.call(this,a)},initComponent:function(){var a=this,c=[a.treeCls],b,d;if(a.useArrows){c.push(a.arrowCls);a.lines=!1}if(a.lines){c.push(a.linesCls)}else {if(!a.useArrows){c.push(a.noLinesCls)}}b=a.applyStore(a.store);if(!b.getRoot()){b.setRoot({})}b.setRootVisible(a.rootVisible);a.viewConfig=Ext.apply({rootVisible:a.rootVisible,animate:a.enableAnimations,singleExpand:a.singleExpand,node:b.getRoot(),hideHeaders:a.hideHeaders,navigationModel:'tree'},a.viewConfig);if(!a.columns){if(a.initialConfig.hideHeaders===undefined){a.hideHeaders=!0}a.addCls(a.autoWidthCls);a.columns=[{xtype:'treecolumn',text:'Name',flex:1,dataIndex:a.displayField}]}if(a.cls){c.push(a.cls)}a.cls=c.join(' ');Ext.panel.Table.prototype.initComponent.call(this);d=a.getView();a.relayEvents(d,['beforecheckchange','checkchange','afteritemexpand','afteritemcollapse'])},applyStore:function(a){var b=this;if(Ext.isString(a)){a=b.store=Ext.StoreMgr.lookup(a)}else {if(!a||!a.isStore){a=Ext.apply({type:'tree',proxy:'memory'},a);if(b.root){a.root=b.root}if(b.fields){a.fields=b.fields}else {if(b.model){a.model=b.model}}if(b.folderSort){a.folderSort=b.folderSort}a=b.store=Ext.StoreMgr.lookup(a)}else {if(b.root){a=b.store=Ext.data.StoreManager.lookup(a);a.setRoot(b.root);if(b.folderSort!==undefined){a.folderSort=b.folderSort;a.sort()}}}}return a},setStore:function(a){var b=this;a=b.applyStore(a);if(!a.getRoot()){a.setRoot({})}a.setRootVisible(b.rootVisible);if(b.view){b.view.setRootNode(a.getRootNode())}b.bindStore(a)},bindStore:function(b,e){var a=this,c=b.getRoot(),d=a.bufferedRenderer;Ext.panel.Table.prototype.bindStore.apply(this,arguments);if(d){if(d.store){d.bindStore(b)}}b.singleExpand=a.singleExpand;a.storeListeners=a.mon(b,{destroyable:!0,rootchange:a.onRootChange,scope:a});a.storeRelayers=a.relayEvents(b,['beforeload','load']);if(!a.rootVisible&&!b.autoLoad&&!(c.isExpanded()||c.isLoading())){if(c.isLoaded()){c.data.expanded=!0;b.onNodeExpand(c,c.childNodes)}else {if(b.autoLoad!==!1){c.data.expanded=!1;c.expand()}}}b.ownerTree=a;if(!e){a.view.setRootNode(c)}},addRelayers:function(b){var a=this;if(a.rootRelayers){a.rootRelayers.destroy();a.rootRelayers=null}a.rootRelayers=a.mon(b,{destroyable:!0,append:a.createRelayer('itemappend'),remove:a.createRelayer('itemremove'),move:a.createRelayer('itemmove',[0,4]),insert:a.createRelayer('iteminsert'),beforeappend:a.createRelayer('beforeitemappend'),beforeremove:a.createRelayer('beforeitemremove'),beforemove:a.createRelayer('beforeitemmove'),beforeinsert:a.createRelayer('beforeiteminsert'),expand:a.createRelayer('itemexpand',[0,1]),collapse:a.createRelayer('itemcollapse',[0,1]),beforeexpand:a.createRelayer('beforeitemexpand',[0,1]),beforecollapse:a.createRelayer('beforeitemcollapse',[0,1]),scope:a})},unbindStore:function(){var a=this,b=a.store;if(b){Ext.panel.Table.prototype.unbindStore.call(this);Ext.destroy(a.storeListeners,a.storeRelayers,a.rootRelayers);delete b.ownerTree;b.singleExpand=null}},setRootNode:function(){return this.store.setRoot.apply(this.store,arguments)},getRootNode:function(){return this.store.getRoot()},onRootChange:function(a){this.view.setRootNode(a)},getChecked:function(){return this.getView().getChecked()},isItemChecked:function(a){return a.get('checked')},expandNode:function(b,d,a,c){return this.getView().expand(b,d,a,c||this)},collapseNode:function(b,d,a,c){return this.getView().collapse(b,d,a,c||this)},expandAll:function(c,d){var b=this,a=b.getRootNode();if(a){Ext.suspendLayouts();a.expand(!0,c,d||b);Ext.resumeLayouts(!0)}},collapseAll:function(d,a){var c=this,b=c.getRootNode(),e=c.getView();if(b){Ext.suspendLayouts();a=a||c;if(e.rootVisible){b.collapse(!0,d,a)}else {b.collapseChildren(!0,d,a)}Ext.resumeLayouts(!0)}},expandPath:function(p,a){var i=arguments,b=this,j=b.view,g=a&&a.field||b.store.model.idProperty,o,n,k=a&&a.separator||'/',c,e,d,h,f,m,l;if(a&&typeof a==='object'){g=a.field||b.store.model.idProperty;k=a.separator||'/';c=a.callback;e=a.scope;o=a.select;n=a.focus}else {g=i[1]||b.store.model.idProperty;k=i[2]||'/';c=i[3];e=i[4]}if(Ext.isEmpty(p)){return Ext.callback(c,e||b,[!1,null])}f=p.split(k);m=!f[0];if(m){d=b.getRootNode();h=1}else {d=b.store.findNode(g,f[0]);h=0}if(!d||m&&d.get(g)!==f[1]){return Ext.callback(c,e||b,[!1,d])}l=function(m){var d=this,q,k,i;if(++h===f.length){if(o){j.getSelectionModel().select(d)}if(n){j.getNavigationModel().setPosition(d,0)}return Ext.callback(c,e||b,[!0,d,j.getNode(d)])}for(k=0,q=m?m.length:0;k2?b[2]:null,e=a>3?b[3]:'/',d=a>4?b[4]:null,f=a>5?b[5]:!1;document.cookie=h+'='+escape(g)+(c===null?'':'; expires='+c.toUTCString())+(e===null?'':'; path='+e)+(d===null?'':'; domain='+d)+(f===!0?'; secure':'')},get:function(e){var d=document.cookie.split('; '),f=d.length,b,a,c;for(a=0;a'],childEls:['iframeEl'],initComponent:function(){Ext.Component.prototype.initComponent.call(this);this.frameName=this.frameName||this.id+'-frame'},initEvents:function(){var a=this;Ext.Component.prototype.initEvents.call(this);a.iframeEl.on('load',a.onLoad,a)},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{src:this.src,frameName:this.frameName})},getBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){try{return this.getWin().document}catch(b){return null}},getWin:function(){var a=this,b=a.frameName,c=Ext.isIE?a.iframeEl.dom.contentWindow:window.frames[b];return c},getFrame:function(){var a=this;return a.iframeEl.dom},beforeDestroy:function(){this.cleanupListeners(!0);Ext.Component.prototype.beforeDestroy.call(this)},cleanupListeners:function(c){var a,b;if(this.rendered){try{a=this.getDoc();if(a){Ext.get(a).un(this._docListeners);if(c){for(b in a){if(a.hasOwnProperty&&a.hasOwnProperty(b)){delete a[b]}}}}}catch(d){}}},onLoad:function(){var a=this,c=a.getDoc(),b=a.onRelayedEvent;if(c){try{Ext.get(c).on(a._docListeners={mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,scope:a})}catch(d){}Ext.get(this.getWin()).on('beforeunload',a.cleanupListeners,a);this.el.unmask();this.fireEvent('load',this)}else {if(a.src){this.el.unmask();this.fireEvent('error',this)}}},onRelayedEvent:function(a){var b=this.iframeEl,c=b.getTrueXY(),e=a.getXY(),d=a.getTrueXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},load:function(c){var a=this,b=a.loadMask,d=a.getFrame();if(a.fireEvent('beforeload',a,c)!==!1){if(b&&a.el){a.el.mask(b)}d.src=a.src=c||a.src}}},0,['uxiframe'],['component','box','uxiframe'],{'component':!0,'box':!0,'uxiframe':!0},['widget.uxiframe'],0,[Ext.ux,'IFrame'],0);Ext.cmd.derive('Ext.ux.colorpick.Selection',Ext.Base,{mixinId:'colorselection',config:{format:'hex6',value:'FF0000',color:null,previousColor:null},applyColor:function(b){var a=b;if(Ext.isString(a)){a=Ext.ux.colorpick.ColorUtils.parseColor(b)}return a},applyValue:function(a){var b=Ext.ux.colorpick.ColorUtils.parseColor(a);return this.formatColor(b)},formatColor:function(a){return Ext.ux.colorpick.ColorUtils.formats[this.getFormat()](a)},updateColor:function(b){var a=this;if(!a.syncing){a.syncing=!0;a.setValue(a.formatColor(b));a.syncing=!1}},updateValue:function(b,c){var a=this;if(!a.syncing){a.syncing=!0;a.setColor(b);a.syncing=!1}this.fireEvent('change',a,b,c)}},0,0,0,0,0,0,[Ext.ux.colorpick,'Selection'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorUtils',Ext.Base,function(a){var b=Ext.isIE&&Ext.ieVersion<10;return {singleton:!0,constructor:function(){a=this},backgroundTpl:b?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{alpha}{hex}', endColorstr='#{alpha}{hex}');":'background: {rgba};',setBackground:b?function(c,b){if(c){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={hex:a.rgb2hex(b.r,b.g,b.b),alpha:Math.floor(b.a*255).toString(16)},d=f.apply(e);c.applyStyles(d)}}:function(b,d){if(b){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={rgba:a.getRGBAString(d)},c=f.apply(e);b.applyStyles(c)}},formats:{HEX6:function(b){return a.rgb2hex(b.r,b.g,b.b)},HEX8:function(b){var c=a.rgb2hex(b.r,b.g,b.b),d=Math.round(b.a*255).toString(16);if(d.length<2){c+='0'}c+=d.toUpperCase();return c}},hexRe:/#?([0-9a-f]{3,8})/i,rgbaAltRe:/rgba\(\s*([\w#\d]+)\s*,\s*([\d\.]+)\s*\)/,rgbaRe:/rgba\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,rgbRe:/rgb\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,parseColor:function(d){if(!d){return null}var e=this,f=e.colorMap[d],b,c,g;if(f){c={r:f[0],g:f[1],b:f[2],a:1}}else {if(d==='transparent'){c={r:0,g:0,b:0,a:0}}else {b=e.hexRe.exec(d);if(b){b=b[1];switch(b.length){default:return null;case 3:c={r:parseInt(b[0]+b[0],16),g:parseInt(b[1]+b[1],16),b:parseInt(b[2]+b[2],16),a:1};break;case 6:case 8:c={r:parseInt(b.substr(0,2),16),g:parseInt(b.substr(2,2),16),b:parseInt(b.substr(4,2),16),a:parseInt(b.substr(6,2)||'ff',16)/255};break;}}else {b=e.rgbaRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:parseFloat(b[4])}}else {b=e.rgbaAltRe.exec(d);if(b){c=e.parseColor(b[1]);c.a=parseFloat(b[2]);return c}b=e.rgbRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:1}}else {return null}}}}}g=this.rgb2hsv(c.r,c.g,c.b);return Ext.apply(c,g)},getRGBAString:function(b){return 'rgba('+b.r+','+b.g+','+b.b+','+b.a+')'},getRGBString:function(b){return 'rgb('+b.r+','+b.g+','+b.b+')'},hsv2rgb:function(e,i,h){e=e*360;if(e===360){e=0}var c=h*i;var g=e/60;var d=c*(1-Math.abs(g%2-1));var b=[0,0,0];switch(Math.floor(g)){case 0:b=[c,d,0];break;case 1:b=[d,c,0];break;case 2:b=[0,c,d];break;case 3:b=[0,d,c];break;case 4:b=[d,0,c];break;case 5:b=[c,0,d];break;default:break;}var f=h-c;b[0]+=f;b[1]+=f;b[2]+=f;b[0]=Math.round(b[0]*255);b[1]=Math.round(b[1]*255);b[2]=Math.round(b[2]*255);return {r:b[0],g:b[1],b:b[2]}},rgb2hsv:function(e,d,c){e=e/255;d=d/255;c=c/255;var g=Math.max(e,d,c);var k=Math.min(e,d,c);var f=g-k;var h=0;if(f!==0){if(g===e){h=(d-c)/f%6}else {if(g===d){h=(c-e)/f+2}else {if(g===c){h=(e-d)/f+4}}}}var b=h*60;if(b===360){b=0}var j=g;var i=0;if(f!==0){i=f/j}b=b/360;if(b<0){b=b+1}return {h:b,s:i,v:j}},rgb2hex:function(d,c,b){d=d.toString(16);c=c.toString(16);b=b.toString(16);if(d.length<2){d='0'+d}if(c.length<2){c='0'+c}if(b.length<2){b='0'+b}return (d+c+b).toUpperCase()},colorMap:{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]}}},1,0,0,0,0,0,[Ext.ux.colorpick,'ColorUtils'],function(c){var a=c.formats,b={};a['#HEX6']=function(b){return '#'+a.HEX6(b)};a['#HEX8']=function(b){return '#'+a.HEX8(b)};Ext.Object.each(a,function(a,d){b[a.toLowerCase()]=function(b){var e=d(b);return e.toLowerCase()}});Ext.apply(a,b)});Ext.cmd.derive('Ext.ux.colorpick.ColorMapController',Ext.app.ViewController,{onFirstBoxReady:function(){var a=this,c=a.getView(),d=c.down('#dragHandle'),b=d.dd;b.constrain=!0;b.constrainTo=c.getEl();b.initialConstrainTo=b.constrainTo;b.on('drag',Ext.bind(a.onHandleDrag,a));a.mon(c.getEl(),{mousedown:a.onMouseDown,dragstart:a.onDragStart,scope:a})},onHandleDrag:function(k,l){var h=this,a=h.getView(),e=a.down('#dragHandle'),i=e.getX()-a.getX(),j=e.getY()-a.getY(),d=a.getEl(),g=d.getWidth(),f=d.getHeight(),b=i/g,c=j/f;if(b>0.99){b=1}if(c>0.99){c=1}a.fireEvent('handledrag',b,c)},onMouseDown:function(b){var c=this,d=c.getView(),a=d.down('#dragHandle');a.setY(b.getY());a.setX(b.getX());c.onHandleDrag();a.dd.onMouseDown(b,a.dd.el)},onDragStart:function(d){var c=this,b=c.getView(),a=b.down('#dragHandle');a.dd.onDragStart(d,a.dd.el)},onMapClick:function(h){var f=this,a=f.getView(),g=a.down('#dragHandle'),c=a.getXY(),d=h.getXY(),b,e;b=d[0]-c[0];e=d[1]-c[1];g.getEl().setStyle({left:b+'px',top:e+'px'});f.onHandleDrag()},onColorBindingChanged:function(n){var i=this,m=i.getViewModel(),a=m.get('selectedColor'),b,d=i.getView(),l=d.down('#dragHandle'),c=d.getEl(),k=c.getWidth(),j=c.getHeight(),e,f,g,h;b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);e=b.s;g=k*e;f=1-b.v;h=j*f;l.getEl().setStyle({left:g+'px',top:h+'px'})},onHueBindingChanged:function(d){var c=this,e=c.getViewModel(),a,b;a=Ext.ux.colorpick.ColorUtils.hsv2rgb(d,1,1);b=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);c.getView().getEl().applyStyles({'background-color':'#'+b})}},0,0,0,0,['controller.colorpickercolormapcontroller'],0,[Ext.ux.colorpick,'ColorMapController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorMap',Ext.container.Container,{controller:'colorpickercolormapcontroller',cls:'x-colorpicker-colormap',items:[{xtype:'component',cls:'x-colorpicker-colormap-draghandle-container',itemId:'dragHandle',width:1,height:1,draggable:!0,html:'
    '}],listeners:{boxready:{single:!0,fn:'onFirstBoxReady',scope:'controller'},colorbindingchanged:{fn:'onColorBindingChanged',scope:'controller'},huebindingchanged:{fn:'onHueBindingChanged',scope:'controller'}},afterRender:function(){var c=this,a=c.mapGradientUrl,b=c.el;Ext.container.Container.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.ColorMap.prototype.mapGradientUrl=a}b.setStyle('background-image','none');b=c.layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-colormap-blender',src:a})},setPosition:function(c){var b=this,a=b.down('#dragHandle');if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b.fireEvent('colorbindingchanged',c)},setHue:function(b){var a=this;if(!a.getEl()){return}a.fireEvent('huebindingchanged',b)}},0,['colorpickercolormap'],['component','box','container','colorpickercolormap'],{'component':!0,'box':!0,'container':!0,'colorpickercolormap':!0},['widget.colorpickercolormap'],0,[Ext.ux.colorpick,'ColorMap'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorModel',Ext.app.ViewModel,{data:{selectedColor:{r:255,g:255,b:255,h:0,s:1,v:1,a:1},previousColor:{r:0,g:0,b:0,h:0,s:1,v:1,a:1}},formulas:{hex:{get:function(a){var e=a('selectedColor.r').toString(16),d=a('selectedColor.g').toString(16),c=a('selectedColor.b').toString(16),b;b=Ext.ux.colorpick.ColorUtils.rgb2hex(e,d,c);return '#'+b},set:function(a){var b=Ext.ux.colorpick.ColorUtils.hex2rgb(a);this.changeRGB(b)}},red:{get:function(a){return a('selectedColor.r')},set:function(a){this.changeRGB({r:a})}},green:{get:function(a){return a('selectedColor.g')},set:function(a){this.changeRGB({g:a})}},blue:{get:function(a){return a('selectedColor.b')},set:function(a){this.changeRGB({b:a})}},hue:{get:function(a){return a('selectedColor.h')*360},set:function(a){this.changeHSV({h:a/360})}},saturation:{get:function(a){return a('selectedColor.s')*100},set:function(a){this.changeHSV({s:a/100})}},value:{get:function(a){var b=a('selectedColor.v');return b*100},set:function(a){this.changeHSV({v:a/100})}},alpha:{get:function(a){var b=a('selectedColor.a');return b*100},set:function(a){this.set('selectedColor',Ext.applyIf({a:a/100},this.data.selectedColor))}}},changeHSV:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);a.r=b.r;a.g=b.g;a.b=b.b;this.set('selectedColor',a)},changeRGB:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);a.h=b.h;a.s=b.s;a.v=b.v;this.set('selectedColor',a)}},0,0,0,0,['viewmodel.colorpick-selectormodel'],0,[Ext.ux.colorpick,'SelectorModel'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorController',Ext.app.ViewController,{initViewModel:function(){var b=this,a=b.getView();a.childViewModel.bind('{selectedColor}',function(b){a.setColor(b)})},destroy:function(){var c=this,b=c.getView(),a=b.childViewModel;if(a){a.destroy();b.childViewModel=null}Ext.app.ViewController.prototype.destroy.call(this)},changeHSV:function(a){var b=this.getView(),d=b.getColor(),c;Ext.applyIf(a,d);c=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);Ext.apply(a,c);b.setColor(a)},onColorMapHandleDrag:function(a,b){this.changeHSV({s:a,v:1-b})},onValueSliderHandleDrag:function(a){this.changeHSV({v:1-a})},onSaturationSliderHandleDrag:function(a){this.changeHSV({s:1-a})},onHueSliderHandleDrag:function(a){this.changeHSV({h:1-a})},onAlphaSliderHandleDrag:function(c){var a=this.getView(),d=a.getColor(),b=Ext.applyIf({a:1-c},d);a.setColor(b);a.el.repaint()},onPreviousColorSelected:function(c,a){var b=this.getView();b.setColor(a)},onOK:function(){var b=this,a=b.getView();a.fireEvent('ok',a,a.getValue())},onCancel:function(){this.fireViewEvent('cancel',this.getView())},onResize:function(){var c=this,h=c.getView(),b=h.childViewModel,a=c.getReferences(),d,f,g,e;if(!c.hasResizedOnce){c.hasResizedOnce=!0;return}d=b.get('hue');f=b.get('saturation');g=b.get('value');e=b.get('alpha');console.log('h='+d);a.colorMap.setPosition(b.getData());a.hueSlider.setHue(d);a.satSlider.setSaturation(f);a.valueSlider.setValue(g);a.alphaSlider.setAlpha(e)}},0,0,0,0,['controller.colorpick-selectorcontroller'],0,[Ext.ux.colorpick,'SelectorController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorPreview',Ext.Component,{style:'position: relative',html:'
    ',cls:'x-colorpreview',height:256,onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el.down('.btn'),'click',a.onClick,a)},onClick:function(){this.fireEvent('click',this,this.color)},setColor:function(b){var a=this,c=a.getEl();if(!c){return}a.color=b;a.applyBgStyle(b)},bgStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hexAlpha}{hex}', endColorstr='#{hexAlpha}{hex}');":'background: {rgba};'),applyBgStyle:function(a){var h=this,b=Ext.ux.colorpick.ColorUtils,g=h.getEl().down('.filter'),f,d,e,c;f=b.rgb2hex(a.r,a.g,a.b);d=Ext.util.Format.hex(Math.floor(a.a*255),2);e=b.getRGBAString(a);c=this.bgStyleTpl.apply({hex:f,hexAlpha:d,rgba:e});g.applyStyles(c)}},0,['colorpickercolorpreview'],['component','box','colorpickercolorpreview'],{'component':!0,'box':!0,'colorpickercolorpreview':!0},['widget.colorpickercolorpreview'],0,[Ext.ux.colorpick,'ColorPreview'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderController',Ext.app.ViewController,{boxReady:function(e){var b=this,d=b.getDragContainer(),c=b.getDragHandle(),a=c.dd;a.constrain=!0;a.constrainTo=d.getEl();a.initialConstrainTo=a.constrainTo;a.on('drag',b.onHandleDrag,b)},getDragHandle:function(){return this.view.lookupReference('dragHandle')},getDragContainer:function(){return this.view.lookupReference('dragHandleContainer')},onHandleDrag:function(i){var b=this,g=b.getView(),c=b.getDragContainer(),f=b.getDragHandle(),h=f.getY()-c.getY(),e=c.getEl(),d=e.getHeight(),a=h/d;if(a>0.99){a=1}g.fireEvent('handledrag',a)},onMouseDown:function(c){var b=this,a=b.getDragHandle(),d=c.getY();a.setY(d);b.onHandleDrag();a.el.repaint();a.dd.onMouseDown(c,a.dd.el)},onDragStart:function(c){var b=this,a=b.getDragHandle();a.dd.onDragStart(c,a.dd.el)},onMouseUp:function(){var a=this.getDragHandle();a.dd.dragEnded=!0}},0,0,0,0,['controller.colorpick-slidercontroller'],0,[Ext.ux.colorpick,'SliderController'],0);Ext.cmd.derive('Ext.ux.colorpick.Slider',Ext.container.Container,{controller:'colorpick-slidercontroller',baseCls:'x-colorpicker-slider',layout:'center',referenceHolder:!0,listeners:{element:'el',mousedown:'onMouseDown',mouseup:'onMouseUp',dragstart:'onDragStart'},items:{xtype:'container',cls:'x-colorpicker-draghandle-container',reference:'dragHandleContainer',height:'100%',items:{xtype:'component',cls:'x-colorpicker-draghandle-outer',reference:'dragHandle',width:'100%',height:1,draggable:!0,html:'
    '}},getDragHandle:function(){return this.lookupReference('dragHandle')},getDragContainer:function(){return this.lookupReference('dragHandleContainer')}},0,['colorpickerslider'],['component','box','container','colorpickerslider'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0},['widget.colorpickerslider'],0,[Ext.ux.colorpick,'Slider'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderAlpha',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-alpha',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#FF{hex}', endColorstr='#00{hex}');":'background: -mox-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -webkit-linear-gradient(top,rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -o-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -ms-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: linear-gradient(to bottom, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);'),setAlpha:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(1-h/100);c=a.getEl();c.setStyle({top:b})},setColor:function(a){var b=this,e=b.getDragContainer(),c,d;if(!b.getEl()){return}c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d=e.getEl().down('.x-autocontainer-innerCt');d.applyStyles(b.gradientStyleTpl.apply({hex:c,r:a.r,g:a.g,b:a.b}))}},0,['colorpickerslideralpha'],['component','box','container','colorpickerslider','colorpickerslideralpha'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslideralpha':!0},['widget.colorpickerslideralpha'],0,[Ext.ux.colorpick,'SliderAlpha'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderSaturation',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-saturation',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#ffffff');":'background: -mox-linear-gradient(top, #{hex} 0%, #ffffff 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -o-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -ms-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: linear-gradient(to bottom, #{hex} 0%,#ffffff 100%);'),setSaturation:function(g){var d=this,h=d.getDragContainer(),a=d.getDragHandle(),f=h.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-g/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidersaturation'],['component','box','container','colorpickerslider','colorpickerslidersaturation'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidersaturation':!0},['widget.colorpickerslidersaturation'],0,[Ext.ux.colorpick,'SliderSaturation'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderValue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-value',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#000000');":'background: -mox-linear-gradient(top, #{hex} 0%, #000000 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#000000 100%);background: -o-linear-gradient(top, #{hex} 0%,#000000 100%);background: -ms-linear-gradient(top, #{hex} 0%,#000000 100%);background: linear-gradient(to bottom, #{hex} 0%,#000000 100%);'),setValue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-h/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidervalue'],['component','box','container','colorpickerslider','colorpickerslidervalue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidervalue':!0},['widget.colorpickerslidervalue'],0,[Ext.ux.colorpick,'SliderValue'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderHue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-hue',afterRender:function(){var c=this,a=c.gradientUrl,b=c.el;Ext.ux.colorpick.Slider.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.SliderHue.prototype.gradientUrl=a}b.setStyle('background-image','none');b=c.getDragContainer().layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-hue-gradient',src:a})},setHue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(360-h)/360;c=a.getEl();c.setStyle({top:b+'px'})}},0,['colorpickersliderhue'],['component','box','container','colorpickerslider','colorpickersliderhue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickersliderhue':!0},['widget.colorpickersliderhue'],0,[Ext.ux.colorpick,'SliderHue'],0);Ext.cmd.derive('Ext.ux.colorpick.Selector',Ext.container.Container,{controller:'colorpick-selectorcontroller',width:580,height:337,cls:'x-colorpicker',padding:10,layout:{type:'hbox',align:'stretch'},defaultBindProperty:'value',twoWayBindable:['value'],fieldWidth:50,fieldPad:5,showPreviousColor:!1,showOkCancelButtons:!1,listeners:{resize:'onResize'},constructor:function(c){var a=this,b=Ext.Factory.viewModel('colorpick-selectormodel');a.childViewModel=b;a.items=[a.getMapAndHexRGBFields(b),a.getSliderAndHField(b),a.getSliderAndSField(b),a.getSliderAndVField(b),a.getSliderAndAField(b),a.getPreviewAndButtons(b,c)];Ext.container.Container.prototype.constructor.apply(this,arguments)},updateColor:function(b){var a=this;a.mixins.colorselection.updateColor.call(a,b);a.childViewModel.set('selectedColor',b)},updatePreviousColor:function(a){this.childViewModel.set('previousColor',a)},getMapAndHexRGBFields:function(d){var c=this,a={top:0,right:c.fieldPad,bottom:0,left:0},b=c.fieldWidth;return {xtype:'container',viewModel:d,cls:'x-colorpicker-escape-overflow',flex:1,layout:{type:'vbox',align:'stretch'},margin:'0 10 0 0',items:[{xtype:'colorpickercolormap',reference:'colorMap',flex:1,bind:{position:{bindTo:'{selectedColor}',deep:!0},hue:'{selectedColor.h}'},listeners:{handledrag:'onColorMapHandleDrag'}},{xtype:'container',layout:'hbox',defaults:{labelAlign:'top',labelSeparator:'',allowBlank:!1,onChange:function(){if(this.isValid()){Ext.form.field.Base.prototype.onChange.apply(this,arguments)}}},items:[{xtype:'textfield',fieldLabel:'HEX',flex:1,bind:'{hex}',margin:a,readOnly:!0},{xtype:'numberfield',fieldLabel:'R',bind:'{red}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'G',bind:'{green}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'B',bind:'{blue}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:0}]}]}},getSliderAndHField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickersliderhue',reference:'hueSlider',flex:1,bind:{hue:'{selectedColor.h}'},listeners:{handledrag:'onHueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'H',labelAlign:'top',width:a.fieldWidth,labelSeparator:'',bind:'{hue}',hideTrigger:!0,maxValue:360,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndSField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{right:a.fieldPad,left:a.fieldPad},items:[{xtype:'colorpickerslidersaturation',reference:'satSlider',flex:1,bind:{saturation:'{saturation}',hue:'{selectedColor.h}'},listeners:{handledrag:'onSaturationSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'S',labelAlign:'top',labelSeparator:'',bind:'{saturation}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndVField:function(a){var b=this;return {xtype:'container',viewModel:a,cls:'x-colorpicker-escape-overflow',width:b.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickerslidervalue',reference:'valueSlider',flex:1,bind:{value:'{value}',hue:'{selectedColor.h}'},listeners:{handledrag:'onValueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'V',labelAlign:'top',labelSeparator:'',bind:'{value}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndAField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{left:a.fieldPad},items:[{xtype:'colorpickerslideralpha',reference:'alphaSlider',flex:1,bind:{alpha:'{alpha}',color:{bindTo:'{selectedColor}',deep:!0}},listeners:{handledrag:'onAlphaSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'A',labelAlign:'top',labelSeparator:'',bind:'{alpha}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getPreviewAndButtons:function(c,b){var a=[{xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{selectedColor}',deep:!0}}}];if(b.showPreviousColor){a.push({xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{previousColor}',deep:!0}},listeners:{click:'onPreviousColorSelected'}})}if(b.showOkCancelButtons){a.push({xtype:'button',text:'OK',margin:'10 0 0 0',handler:'onOK'},{xtype:'button',text:'Cancel',margin:'10 0 0 0',handler:'onCancel'})}return {xtype:'container',viewModel:c,width:70,margin:'0 0 0 10',items:a,layout:{type:'vbox',align:'stretch'}}}},1,['colorselector'],['component','box','container','colorselector'],{'component':!0,'box':!0,'container':!0,'colorselector':!0},['widget.colorselector'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Selector'],0);Ext.cmd.derive('Ext.ux.colorpick.ButtonController',Ext.app.ViewController,{afterRender:function(a){a.updateColor(a.getColor())},destroy:function(){var a=this.getView(),b=a.colorPickerWindow;if(b){b.destroy();a.colorPickerWindow=a.colorPicker=null}Ext.app.ViewController.prototype.destroy.call(this)},getPopup:function(){var b=this.getView(),a=b.colorPickerWindow,c;if(!a){a=Ext.create(b.getPopup());b.colorPickerWindow=a;a.colorPicker=b.colorPicker=c=a.lookupReference('selector');c.setFormat(b.getFormat());c.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:this});a.on({close:'onColorPickerCancel',scope:this})}return a},onClick:function(){var e=this,d=e.getView(),b=d.getColor(),c=e.getPopup(),a=c.colorPicker;a.setColor(b);a.setPreviousColor(b);c.showBy(d,'tl-br?')},onColorPickerOK:function(b){var a=this.getView(),c=b.getColor(),d=a.colorPickerWindow;d.hide();a.setColor(c)},onColorPickerCancel:function(){var b=this.getView(),a=b.colorPickerWindow;a.hide()},syncColor:function(a){var b=this.getView();Ext.ux.colorpick.ColorUtils.setBackground(b.filterEl,a)}},0,0,0,0,['controller.colorpick-buttoncontroller'],0,[Ext.ux.colorpick,'ButtonController'],0);Ext.cmd.derive('Ext.ux.colorpick.Button',Ext.Component,{controller:'colorpick-buttoncontroller',baseCls:'x-colorpicker-button',width:20,height:20,childEls:['btnEl','filterEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},defaultBindProperty:'value',twoWayBindable:'value',renderTpl:'
    ',listeners:{click:'onClick',element:'btnEl'},updateColor:function(b){var a=this,c=a.colorPicker;a.mixins.colorselection.updateColor.call(a,b);Ext.ux.colorpick.ColorUtils.setBackground(a.filterEl,b);if(c){c.setColor(b)}},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}}},0,['colorbutton'],['component','box','colorbutton'],{'component':!0,'box':!0,'colorbutton':!0},['widget.colorbutton'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Button'],0);Ext.cmd.derive('Ext.ux.colorpick.Field',Ext.form.field.Picker,{editable:!1,matchFieldWidth:!1,beforeBodyEl:['
    '],cls:'x-colorpicker-field',childEls:['swatchEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},afterRender:function(){Ext.form.field.Picker.prototype.afterRender.call(this);this.updateValue(this.value)},createPicker:function(){var a=this,c=a.getPopup(),b;a.colorPickerWindow=c=Ext.create(c);a.colorPicker=b=c.lookupReference('selector');b.setFormat(a.getFormat());b.setColor(a.getColor());b.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:a});c.on({close:'onColorPickerCancel',scope:a});return a.colorPickerWindow},onColorPickerOK:function(a){this.setColor(a.getColor());this.collapse()},onColorPickerCancel:function(){this.collapse()},onExpand:function(){var a=this.getColor();this.colorPicker.setPreviousColor(a)},setValue:function(c){var a=this,b=a.applyValue(c);(arguments.callee.$previous||Ext.form.field.Picker.prototype.setValue).call(this,b);a.updateValue(b)},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}},updateValue:function(c){var a=this,b;if(!a.syncing){a.syncing=!0;a.setColor(c);a.syncing=!1}b=a.getColor();Ext.ux.colorpick.ColorUtils.setBackground(a.swatchEl,b);if(a.colorPicker){a.colorPicker.setColor(b)}}},0,['colorfield'],['component','box','field','textfield','pickerfield','colorfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'pickerfield':!0,'colorfield':!0},['widget.colorfield'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Field'],0);Ext.cmd.derive('Ext.ux.layout.ResponsiveColumn',Ext.layout.container.Auto,{states:{small:1000,large:0},_responsiveCls:'x-responsivecolumn',initLayout:function(){this.innerCtCls+=' '+this._responsiveCls;Ext.layout.container.Auto.prototype.initLayout.call(this)},beginLayout:function(j){var a=this,h=Ext.Element.getViewportWidth(),g=a.states,e=Infinity,i=a.innerCt,f=a._currentState,d,b,c;for(d in g){b=g[d]||Infinity;if(h<=b&&b<=e){e=b;c=d}}if(c!==f){i.replaceCls(f,c,a._responsiveCls);a._currentState=c}Ext.layout.container.Auto.prototype.beginLayout.apply(this,arguments)},onAdd:function(a){Ext.layout.container.Auto.prototype.onAdd.call(this,a);var b=a.responsiveCls;if(b){a.addCls(b)}}},0,0,0,0,['layout.responsivecolumn'],0,[Ext.ux.layout,'ResponsiveColumn'],function(a){if(Ext.isIE8){a.override({responsiveSizePolicy:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:0},setsItemSize:!0,calculateItems:function(b,f){var m=this,k=b.targetContext,j=b.childItems,l=j.length,i=f.gotWidth,g=f.width,o,n,d,c,e,h;if(i===!1){k.domBlock(m,'width');return !1}if(!i){return !0}for(d=0;dc?c:a}return a},onClick:function(a){var b=this.valueFromEvent(a);this.setValue(b)},onMouseEnter:function(){this.element.addCls(this.overCls)},onMouseLeave:function(){this.element.removeCls(this.overCls)},onMouseMove:function(a){var b=this.valueFromEvent(a);this.setTrackingValue(b)},updateFamily:function(a){this.element.setStyle('fontFamily',"'"+a+"'")},updateGlyphs:function(){this.refreshGlyphs()},updateLimit:function(){this.refreshGlyphs()},updateScale:function(a){this.element.setStyle('fontSize',a)},updateTooltip:function(){this.refreshTooltip()},updateTooltipText:function(c){var e=this.innerEl,b=Ext.tip&&Ext.tip.QuickTipManager,d=b&&b.tip,a;if(b){e.dom.setAttribute('data-qtip',c);this.trackerEl.dom.setAttribute('data-qtip',c);a=d&&d.activeTarget;a=a&&a.el;if(a&&e.contains(a)){d.update(c)}}},updateTrackingValue:function(d){var a=this,b=a.trackerEl,c=a.valueToPercent(d);b.setStyle('width',c);a.refreshTooltip()},updateTrackOver:function(a){this.element[a?'addCls':'removeCls'](this.trackOverCls)},updateValue:function(e,g){var a=this,h=a.getAnimate(),c=a.valueEl,f=a.valueToPercent(e),b,d;if(a.isConfiguring||!h){c.setStyle('width',f)}else {c.stopAnimation();c.animate(Ext.merge({from:{width:a.valueToPercent(g)},to:{width:f}},h))}a.refreshTooltip();if(!a.isConfiguring){if(a.hasListeners.change){a.fireEvent('change',a,e,g)}b=a.getWidgetColumn&&a.getWidgetColumn();d=b&&a.getWidgetRecord&&a.getWidgetRecord();if(d&&b.dataIndex){d.set(b.dataIndex,e)}}},afterCachedConfig:function(){this.refresh();return Ext.Widget.prototype.afterCachedConfig.apply(this,arguments)},initConfig:function(a){this.isConfiguring=!0;this.callParent([a]);this.refresh()},setConfig:function(){var a=this;a.isReconfiguring=!0;a.callParent(arguments);a.isReconfiguring=!1;a.refresh();return a},destroy:function(){this.tip=Ext.destroy(this.tip);Ext.Widget.prototype.destroy.call(this)},privates:{getGlyphTextNode:function(b){var a=b.lastChild;if(!a||a.nodeType!==3){a=b.ownerDocument.createTextNode('');b.appendChild(a)}return a},getTooltipData:function(){var a=this;return {component:a,tracking:a.getTrackingValue(),trackOver:a.getTrackOver(),value:a.getValue()}},refresh:function(){var a=this;if(a.invalidGlyphs){a.refreshGlyphs(!0)}if(a.invalidTooltip){a.refreshTooltip(!0)}},refreshGlyphs:function(j){var a=this,g=!j&&(a.isConfiguring||a.isReconfiguring),i,c,h,b,d,e,f;if(!g){i=a.getGlyphTextNode(a.innerEl.dom);f=a.getGlyphTextNode(a.valueEl.dom);e=a.getGlyphTextNode(a.trackerEl.dom);c=a.getGlyphs();h=a.getLimit();for(b=d='';h--;){d+=c[0];b+=c[1]}i.nodeValue=d;f.nodeValue=b;e.nodeValue=b}a.invalidGlyphs=g},refreshTooltip:function(f){var a=this,c=!f&&(a.isConfiguring||a.isReconfiguring),b=a.getTooltip(),d,e;if(!c){b=a.getTooltip();if(b){d=a.getTooltipData();e=b(d);a.setTooltipText(e)}}a.invalidTooltip=c},valueFromEvent:function(g){var a=this,e=a.innerEl,j=g.getX(),d=a.getRounding(),i=e.getX(),c=j-i,f=e.getWidth(),h=a.getLimit(),b;if(a.getInherited().rtl){c=f-c}b=c/f*h;b=Math.ceil(b/d)*d;return b},valueToPercent:function(a){a=a/this.getLimit()*100;return a+'%'}}},0,['rating'],['widget','rating'],{'widget':!0,'rating':!0},['widget.rating'],0,[Ext.ux.rating,'Picker'],0);Ext.cmd.derive('common.BandFilter',Ext.container.ButtonGroup,{alternateClassName:['Portal.BandFilter'],filters:['g','r','i','z','Y','RGB'],defaultFilter:'rgb',buttonWidth:30,vertical:!1,config:{availableFilters:[]},initComponent:function(){var a=this;if(!a.filters){Ext.Error.raise('You must specify a filters config.')}a.items=this.createFilters();var b='bands';if(a.itemId){b='bands_'+a.itemId}if(a.vertical){a.layout={type:'vbox',align:'stretch'}}else {a.layout={type:'hbox',align:'stretch'}}a.defaults={allowDepress:!1,enableToggle:!0,toggleGroup:b,toggleHandler:function(b){if(b.pressed){var c=b.value;a.fireEvent('onfilter',c,b,a)}}};Ext.container.ButtonGroup.prototype.initComponent.apply(this,arguments)},createFilters:function(){var c=this,f=[],d,a,b;for(var e=0;e1){b.width=50}if(c.defaultFilter==a){b.pressed=!0}f.push(b)}return f},getFilter:function(){var g=this,a=null,b,e,c;b=this.filters;e=Array();c=this.items;for(var d=0;d0){a.getTrigger('clear').show();a.getTrigger('search').hide();if(this.getMinSearch()>0&&a.getValue().length>=this.getMinSearch()){if(a.isValid()&&a.getValue()!==''){this.fireEvent('search',a.getValue(),this)}}}else {a.getTrigger('clear').hide();a.getTrigger('search').show();this.fireEvent('cancel')}},buffer:500},triggers:{clear:{cls:'x-form-clear-trigger',handler:function(a){a.reset();this.getTrigger('clear').hide();this.getTrigger('search').show();this.fireEvent('cancel')},hidden:!0},search:{cls:'x-form-search-trigger',handler:function(){}}},config:{minSearch:null}},0,['common-searchfield'],['component','box','field','textfield','common-searchfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'common-searchfield':!0},['widget.common-searchfield'],0,[common,'SearchField'],0);Ext.cmd.derive('common.data.proxy.CrsfToken',Ext.Base,{singleton:!0,constructor:function(){Ext.Ajax.on('beforerequest',function(b,a){if(!(/^http:.*/.test(a.url)||/^https:.*/.test(a.url))){if(typeof a.headers=='undefined'){a.headers={'Accept':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')}}else {a.headers['Application']='application/json';a.headers['X-CSRFToken']=Ext.util.Cookies.get('csrftoken')}}},this)}},1,0,0,0,0,0,[common.data.proxy,'CrsfToken'],0);Ext.cmd.derive('common.data.proxy.Django',Ext.data.proxy.Rest,{headers:{'Accept':'application/json;'},startParam:'offset',sortParam:'ordering',reader:{type:'json',rootProperty:'results',totalProperty:'count'},writer:{},actionMethods:{create:'POST',read:'GET',update:'PATCH',destroy:'DELETE'},encodeSorters:function(b){var c=[],a,d;for(var e in b){a=b[e];d=(a.getDirection()=='DESC'?'-':'')+a.getProperty();c.push(d)}return c.join()},getParams:function(b){var a=Ext.data.proxy.Rest.prototype.getParams.apply(this,arguments);if(!b.isReadOperation){return a}var c=b.getFilters();delete a[this.getFilterParam()];Ext.each(c,function(f){var e=f.getProperty(),d=f.getValue(),c,g;switch(f.getOperator()){case '<':c=Ext.String.format('{0}__lt',e);a[c]=d;break;case '<=':c=Ext.String.format('{0}__lte',e);a[c]=d;break;case '>=':c=Ext.String.format('{0}__gte',e);a[c]=d;break;case '>':c=Ext.String.format('{0}__gt',e);a[c]=d;break;case '!=':c=Ext.String.format('{0}__ne',e);a[c]=d;break;case 'in':c=Ext.String.format('{0}__in',e);a[c]=d.join();break;case 'like':c=Ext.String.format('{0}__icontains',e);a[c]=d;break;case 'range':c=Ext.String.format('{0}__range',e);g=Ext.String.format('{0},{1}',d[0],d[1]);a[c]=g;break;default:a[e]=d;}});return a},buildUrl:function(c){var b=this,e=c.getOperation(),h=e.getRecords(),g=h?h[0]:null,i=b.getFormat(),a=b.getUrl(c),d,f;if(g&&!g.phantom){d=g.getId()}else {d=e.getId()}if(b.getAppendId()&&b.isValidId(d)||e.action==='update'){if(!a.match(b.slashRe)){a+='/'}a+=encodeURIComponent(d);f=c.getParams();if(f){delete f[b.getIdParam()]}a+='/'}if(i){if(!a.match(b.periodRe)){a+='.'}a+=i}c.setUrl(a);return Ext.data.RestProxy.superclass.buildUrl.apply(this,arguments)}},0,0,0,0,['proxy.django'],0,[common.data.proxy,'Django'],0);Ext.cmd.derive('common.store.MyStore',Ext.data.Store,{proxy:{type:'django'},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c;switch(a.status){case 403:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;case 408:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Maximum execution time exceeded.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});break;}}}}}},0,0,0,0,0,0,[common.store,'MyStore'],0);Ext.cmd.derive('common.contact.ContactController',Ext.app.ViewController,{onFormCancel:function(){this.getView().lookupReference('windowForm').getForm().reset();this.getView().close()},onFormSubmit:function(){var c=this.getView(),d=c.lookupReference('windowForm'),b=d.getForm(),a=b.getValues();a.current_url=window.location.href;a.current_user=window.sessionStorage.dri_username;if(b.isValid()){Ext.Ajax.request({url:'/dri/api/contact/',method:'POST',params:a,success:function(){c.close();Ext.MessageBox.alert('Thank you!','Your inquiry has been sent. We will respond as soon as possible.')},failure:function(a,b){Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Sorry, message was not sent.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this})}})}}},0,0,0,0,['controller.contact'],0,[common.contact,'ContactController'],0);Ext.cmd.derive('common.contact.Contact',Ext.window.Window,{reference:'contactWindow',title:'Contact Us',controller:'contact',width:400,height:500,minWidth:300,minHeight:380,layout:'fit',resizable:!0,modal:!0,defaultFocus:'firstName',closeAction:'destroy',items:[{xtype:'form',reference:'windowForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{margin:'0 0 20 0',xtype:'component',html:['Thank you for visiting our site! We welcome your feedback; ','please click the button below to send us a message. We will ','respond to your inquiry as quickly as possible.']},{xtype:'textfield',fieldLabel:'Name',name:'name',allowBlank:!1},{xtype:'textfield',fieldLabel:'Your Email Address',vtype:'email',name:'from',allowBlank:!1},{xtype:'textfield',fieldLabel:'Subject',name:'subject',allowBlank:!1},{xtype:'textareafield',fieldLabel:'How can we help?',labelAlign:'top',flex:1,margin:'0',name:'message',allowBlank:!1,emptyText:'Describe the problem or share your ideas.'}],buttons:[{text:'Cancel',handler:'onFormCancel'},{text:'Send',handler:'onFormSubmit'}]}]},0,['form-contact-window'],['component','box','container','panel','window','form-contact-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'form-contact-window':!0},['widget.form-contact-window'],0,[common.contact,'Contact'],0);Ext.cmd.derive('common.footer.FooterController',Ext.app.ViewController,{onClickContact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()}},0,0,0,0,['controller.footer'],0,[common.footer,'FooterController'],0);Ext.cmd.derive('common.footer.Footer',Ext.toolbar.Toolbar,{controller:'footer',cls:'des-portal-footer',height:28,layout:{pack:'center',align:'middle'},viewModel:{data:{}},items:[{xtype:'tbtext',html:'Powered by LIneA | Dark Energy Survey | NCSA',cls:'des-portal-footer-text'}]},0,['dri-footer'],['component','box','container','toolbar','dri-footer'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-footer':!0},['widget.dri-footer'],0,[common.footer,'Footer'],0);Ext.cmd.derive('common.ToolbarController',Ext.app.ViewController,{listen:{component:{'dri-header':{afterrender:'onAfterRender'}}},logout:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/dri/api/api-auth/logout/?next=/dri/apps/',b,c);window.location.assign(a)},projectHome:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/',b,c);window.location.assign(a)},contact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()},about:function(){window.open('http://www.linea.gov.br')},onAfterRender:function(){var a=this;a.loadUsername();a.loaddTutorials()},loaddTutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');a.addFilter([{property:'app_name',value:c.get('internal_name')}]);a.load({scope:this,callback:b.onLoadTutorials})},onLoadTutorials:function(){var b=this,d=b.getViewModel(),c=d.getStore('tutorials'),a=b.lookupReference('headermenututorials');if(c.count()>0){a.enable()}else {a.disable()}},tutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');if(this.wincontact){this.wincontact=null}this.wintutorials=Ext.create('common.help.Tutorials',{store:a});this.wintutorials.show()},onClickHelp:function(){var e=this,f=e.getViewModel(),c=window.location.protocol,d=window.location.host,b=f.get('help_url'),a;a=Ext.String.format('{0}//{1}/{2}',c,d,b);window.open(a)},loadUsername:function(){var a=this,b=a.getViewModel();Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(c){var a=JSON.parse(c.responseText);b.set('username',a.username);window.dri_username=a.username}})}},0,0,0,0,['controller.toolbar'],0,[common,'ToolbarController'],0);Ext.cmd.derive('common.help.TutorialsController',Ext.app.ViewController,{onSelect:function(e,c){var d=this,b=d.lookupReference('video'),a;a=Ext.create('Ext.Component',{flex:1,html:''});b.removeAll();b.add(a)}},0,0,0,0,['controller.tutorials'],0,[common.help,'TutorialsController'],0);Ext.cmd.derive('common.help.Tutorials',Ext.window.Window,{title:'Tutorials',controller:'tutorials',config:{store:null},initComponent:function(){var a=this;Ext.apply(this,{layout:'border',width:700,height:400,minWidth:300,minHeight:280,resizable:!0,maximizable:!0,modal:!0,closeAction:'destroy',items:[{xtype:'grid',reference:'tutorials_grid',region:'west',split:!0,hideHeaders:!0,width:200,store:a.getStore(),columns:[{dataIndex:'ttr_title',flex:1}],listeners:{select:'onSelect'}},{xtype:'panel',region:'center',reference:'video',split:!0,layout:{type:'vbox',pack:'start',align:'stretch'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)}},0,['tutorials-window'],['component','box','container','panel','window','tutorials-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'tutorials-window':!0},['widget.tutorials-window'],0,[common.help,'Tutorials'],0);Ext.cmd.derive('common.header.Toolbar',Ext.toolbar.Toolbar,{controller:'toolbar',cls:'des-portal-headerbar toolbar-btn-shadow',layout:{type:'hbox',align:'middle'},viewModel:{data:{home:'',desPortalLogo:'resources/des-portal-logo.png',tooltip:'Home',username:''},stores:{tutorials:{fields:['id','application','application_display_name','ttr_title','ttr_src','ttr_description'],remoteSort:!0,remoteFilter:!0,autoLoad:!1,pageSize:0,proxy:{type:'django',url:'/dri/api/tutorial/'}}}},viewItems:function(){return [{xtype:'component',cls:'des-portal-logo',bind:{html:'Home'}},{xtype:'component',cls:'des-portal-appname',bind:{html:'{name}'},flex:1},'->',{xtype:'button',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',itemId:'btnusername',bind:{text:'{username}'}},{xtype:'button',iconCls:'x-fa fa-home',ui:'white-toolbar',cls:'delete-focus-bg',scale:'medium',handler:'projectHome',tooltip:'Home of the Science Server'},{xtype:'button',reference:'headermenu',iconCls:'x-fa fa-bars',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',arrowVisible:!1,menu:[{text:'About LIneA',handler:'about'},{text:'Contact Us',handler:'contact'},{text:'Tutorials',iconCls:'x-fa fa-question-circle',reference:'headermenututorials',disabled:!0,handler:'tutorials'},{text:'Help',iconCls:'x-fa fa-question',reference:'headermenuhelp',handler:'onClickHelp'},'-',{text:'Log out',iconCls:'x-fa fa-sign-out',handler:'logout'}]}]},initComponent:function(){this.items=this.viewItems();Ext.toolbar.Toolbar.prototype.initComponent.call(this)},afterRender:function(){var c=this,b=window.location.href,a;a=b.split('#')[0];c.getViewModel().set('home',a);Ext.toolbar.Toolbar.prototype.afterRender.apply(this,arguments)}},0,['dri-header'],['component','box','container','toolbar','dri-header'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-header':!0},['widget.dri-header'],0,[common.header,'Toolbar'],0);Ext.cmd.derive('common.model.Dataset',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'tag',type:'int'},{name:'tag_display_name',type:'string'},{name:'release',type:'int'},{name:'release_name',type:'string'},{name:'release_display_name',type:'string'},{name:'tite',type:'int'},{name:'run',type:'string'},{name:'date',type:'string'},{name:'tli_tilename',type:'string'},{name:'tli_ra',type:'float'},{name:'tli_ra',type:'float'},{name:'tli_dec',type:'float'},{name:'tli_urall',type:'float'},{name:'tli_udecll',type:'float'},{name:'tli_uraur',type:'float'},{name:'tli_udecur',type:'float'},{name:'release_tag',type:'string',convert:function(b,a){return Ext.String.format('{0} - {1}',a.get('release_display_name'),a.get('tag_display_name'))}},{name:'image_src_ptif',type:'string'},{name:'image_src_thumbnails',type:'string'},{name:'g',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'g',a.get('tli_tilename'))}},{name:'r',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'r',a.get('tli_tilename'))}},{name:'i',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'i',a.get('tli_tilename'))}},{name:'z',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'z',a.get('tli_tilename'))}},{name:'y',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'y',a.get('tli_tilename'))}},{name:'irg',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'irg',a.get('tli_tilename'))}}],isInsideTile:function(a,e){var d=this,a=parseFloat(a),e=parseFloat(e),b,c,f,g;if(a>180){a=a-360}b=d.get('tli_urall');c=d.get('tli_uraur');f=d.get('tli_udecll');g=d.get('tli_udecur');if(b>180){b=b-360}if(c>180){c=c-360}if(a>b&&af&&e180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decul',type:'float',convert:function(b,a){value=a.get('tli_decul');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'rall',type:'float',convert:function(b,a){value=a.get('tli_rall');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decll',type:'float',convert:function(b,a){value=a.get('tli_decll');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'ralr',type:'float',convert:function(b,a){value=a.get('tli_ralr');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'declr',type:'float',convert:function(b,a){value=a.get('tli_declr');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'raur',type:'float',convert:function(b,a){value=a.get('tli_raur');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decur',type:'float',convert:function(b,a){value=a.get('tli_decur');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}}]},0,0,0,0,0,0,[common.model,'Footprint'],0);Ext.cmd.derive('common.model.Map',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_user_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'prd_is_public',type:'boolean'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'prd_filter',type:'string'},{name:'prl_related',type:'string'},{name:'prl_cross_identification',type:'string'},{name:'prl_cross_property',type:'string'},{name:'tablename',type:'string'},{name:'mpa_nside',type:'int'},{name:'mpa_ordering',type:'string'}]},0,0,0,0,0,0,[common.model,'Map'],0);Ext.cmd.derive('common.model.Survey',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'srv_release',type:'int'},{name:'srv_filter',type:'int'},{name:'filter',type:'string'},{name:'srv_project',type:'string'},{name:'srv_display_name',type:'string'},{name:'srv_url',type:'string'},{name:'srv_target',type:'string'},{name:'srv_fov',type:'string'}]},0,0,0,0,0,0,[common.model,'Survey'],0);Ext.cmd.derive('common.model.Tag',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'tag_release',type:'int'},{name:'tag_name',type:'string'},{name:'tag_display_name',type:'string'},{name:'tag_status',type:'boolean'},{name:'tag_install_date',type:'date'},{name:'is_new',type:'boolean',convert:function(e,b){if(b.get('tag_install_date')){var a=b.get('tag_install_date'),c=-2,d=Ext.Date.add(new Date(),Ext.Date.DAY,c);return Ext.Date.between(a,d,a)}}}]},0,0,0,0,0,0,[common.model,'Tag'],0);Ext.cmd.derive('common.store.Tiles',common.store.MyStore,{pageSize:100,remoteFilter:!0,remoteSort:!0,proxy:{type:'django',timeout:90000,url:'/dri/api/tiles/'},filterByRaDec:function(a,d){var a=parseFloat(a),d=parseFloat(d),b,c,e;this.each(function(f){if(a>180){a=a-360}b=f.get('tli_urall');c=f.get('tli_uraur');if(b>180){b=b-360}if(c>180){c=c-360}if(ba&&f.get('tli_udecur')>d){e=f;return !1}},this);return e}},0,0,0,0,['store.tiles'],0,[common.store,'Tiles'],0);Ext.cmd.derive('common.store.Datasets',common.store.Tiles,{model:'common.model.Dataset',remoteFilter:!0,remoteSort:!0,pageSize:100,proxy:{type:'django',timeout:90000,url:'/dri/api/dataset/'}},0,0,0,0,['store.datasets'],0,[common.store,'Datasets'],0);Ext.cmd.derive('common.store.Footprints',common.store.Tiles,{model:'common.model.Footprint',remoteFilter:!0,remoteSort:!0,pageSize:0,proxy:{type:'django',timeout:90000,url:'/dri/api/footprints/',reader:{type:'array'}}},0,0,0,0,['store.footprints'],0,[common.store,'Footprints'],0);Ext.cmd.derive('common.store.Maps',common.store.MyStore,{model:'common.model.Map',autoLoad:!1,pageSize:0,remoteFilter:!0,proxy:{type:'django',url:'/dri/api/map/'}},0,0,0,0,['store.maps'],0,[common.store,'Maps'],0);Ext.cmd.derive('common.store.MyTreeStore',Ext.data.TreeStore,{proxy:{type:'django',appendId:!1,reader:{type:'json',rootProperty:'children'}},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c=JSON.parse(a.response.responseText);switch(a.status){case 403:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;default:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this});}}}}}},0,0,0,0,0,0,[common.store,'MyTreeStore'],0);Ext.cmd.derive('common.store.Surveys',common.store.MyStore,{model:'common.model.Survey',autoLoad:!1,remoteFilter:!0,remoteSort:!0,pageSize:0,proxy:{type:'django',url:'/dri/api/surveys/'}},0,0,0,0,['store.surveys'],0,[common.store,'Surveys'],0);Ext.cmd.derive('common.store.Tags',common.store.MyStore,{model:'common.model.Tag',remoteFilter:!0,remoteSort:!0,proxy:{type:'django',url:'/dri/api/tags/'},sorters:[{property:'tag_display_name',direction:'ASC'}]},0,0,0,0,['store.tags'],0,[common.store,'Tags'],0);Ext.cmd.derive('visiomatic.Interface',Ext.Base,{makeToolbar:function(){return Ext.create('Ext.toolbar.Toolbar',{items:[]})},makeToolbarButtons:function(){var a=this,c=a.getAuxTools(),b=[];if(a.getEnableShift()){b.push({xtype:'button',tooltip:'Switch between Visiomatic / Aladdin.',iconCls:'x-fa fa-exchange',scope:a,handler:a.onShift})}if(a.getEnableLink()){b.push({xtype:'button',tooltip:'Get link',iconCls:'x-fa fa-link',scope:a,handler:a.getLinkToPosition})}if(c.length>0){Ext.each(c,function(a){b.push(a)})}return b},makeMousePosition:function(){var a=this.getMap();return Ext.DomHelper.append(a._controlCorners['topright'],{tag:'div',cls:'leaflet-right leaflet-control leaflet-control-wcs-dialog visiomatic-mouse-position',html:'
    Mouse RA, Dec (0,0)
    '})}},0,0,0,0,0,0,[visiomatic,'Interface'],0);Ext.cmd.derive('visiomatic.VisiomaticModel',Ext.app.ViewModel,{data:{release:null,tag:null,dataset:null}},0,0,0,0,['viewmodel.visiomatic'],0,[visiomatic,'VisiomaticModel'],0);Ext.cmd.derive('visiomatic.VisiomaticController',Ext.app.ViewController,{},0,0,0,0,['controller.visiomatic'],0,[visiomatic,'VisiomaticController'],0);Ext.cmd.derive('visiomatic.catalog.Catalogs',Ext.tree.Panel,{initComponent:function(){var a=this;Ext.apply(this,{emptyText:'No data to display.',hideHeaders:!0,rootVisible:!1,useArrows:!0,selModel:{mode:'SINGLE'},columns:[{xtype:'treecolumn',text:'Name',flex:2,sortable:!0,dataIndex:'text',renderer:a.getTooltipName}],tbar:[{xtype:'textfield',emptyText:'Search by name',reference:'SearchField',flex:1,triggers:{clear:{cls:'x-form-clear-trigger',handler:'cancelFilter',hidden:!0},search:{cls:' x-form-search-trigger'}},listeners:{change:'filterCatalogByname',buffer:500}}]});Ext.tree.Panel.prototype.initComponent.apply(this,arguments)},getTooltipName:function(d,e,b){var f=this,c,a;if(b.get('leaf')){c=new Ext.XTemplate('
    ','{prd_display_name}','','


    {description}

    ','
    ','
    ');a=c.apply(b.data);e.tdAttr='data-qtip="'+a+'"'}return d}},0,['visiomatic-catalogs-tree'],['component','box','container','panel','tablepanel','treepanel','visiomatic-catalogs-tree'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'treepanel':!0,'visiomatic-catalogs-tree':!0},['widget.visiomatic-catalogs-tree'],0,[visiomatic.catalog,'Catalogs'],0);Ext.cmd.derive('visiomatic.model.CatalogTree',Ext.data.Model,{fields:[{name:'id'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'epr_name',type:'string'},{name:'epr_username',type:'string'},{name:'epr_start_date',type:'date'},{name:'epr_end_date',type:'date'},{name:'epr_readme',type:'string'},{name:'epr_comment',type:'string'},{name:'ctl_num_columns',type:'int'},{name:'ctl_num_tiles',type:'int'},{name:'ctl_num_objects',type:'int'},{name:'cds_source',type:'string'},{name:'cds_fieldnames',type:'string'},{name:'editable',type:'boolean',defaultValue:!1},{name:'markable',type:'boolean',defaultValue:!1},{name:'release_display_name',type:'string'},{name:'external_catalog',type:'boolean',defaultValue:!1}]},0,0,0,0,0,0,[visiomatic.model,'CatalogTree'],0);Ext.cmd.derive('visiomatic.store.CatalogsTree',common.store.MyTreeStore,{model:'visiomatic.model.CatalogTree',autoLoad:!1,remoteFilter:!0,proxy:{api:{read:'/dri/api/catalog/get_class_tree_by_group/'}}},0,0,0,0,['store.catalogs-overlay-tree'],0,[visiomatic.store,'CatalogsTree'],0);Ext.cmd.derive('visiomatic.store.Overlays',Ext.data.ArrayStore,{remoteFilter:!1,remoteSort:!1,autoLoad:!1,pageSize:0},0,0,0,0,['store.overlays'],0,[visiomatic.store,'Overlays'],0);Ext.cmd.derive('visiomatic.model.FilterCondition',Ext.data.Model,{fields:[{name:'id',type:'int','default':null,persist:!1},{name:'filterset',type:'int'},{name:'fcd_property',type:'int'},{name:'fcd_property_name',type:'string'},{name:'fcd_operation',type:'string'},{name:'fcd_value',type:'string'},{name:'operator_display_name',type:'string',persist:!1},{name:'property_display_name',type:'string',persist:!1,convert:function(a,c){var b=c.get('fcd_property_name');switch(b){case '_meta_rating':a='Rating';break;case '_meta_reject':a='Reject';break;}return a}}]},0,0,0,0,0,0,[visiomatic.model,'FilterCondition'],0);Ext.cmd.derive('visiomatic.store.FilterConditions',Ext.data.Store,{model:'visiomatic.model.FilterCondition',remoteFilter:!1,pageSize:0,sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.overlay-filter-conditions'],0,[visiomatic.store,'FilterConditions'],0);Ext.cmd.derive('visiomatic.catalog.CatalogViewModel',Ext.app.ViewModel,{stores:{catalogs:{type:'catalogs-overlay-tree'},overlays:{type:'overlays'}},data:{visiomatic:null,currentColor:'1dff00',currentFilters:null,pointType:0,pointSize:1},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0},dataset:{type:'common.model.Dataset',create:!0}}},0,0,0,0,['viewmodel.catalogoverlay'],0,[visiomatic.catalog,'CatalogViewModel'],0);Ext.cmd.derive('visiomatic.model.Object',Ext.data.Model,{idProperty:'_meta_id',fields:[{name:'_meta_id'},{name:'_meta_catalog_id',type:'int'},{name:'_meta_is_system',type:'boolean'},{name:'_meta_ra',type:'float'},{name:'_meta_dec',type:'float'},{name:'_meta_radius',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Object'],0);Ext.cmd.derive('visiomatic.store.Objects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,model:'visiomatic.model.Object',pageSize:5000,proxy:{type:'django',timeout:90000,api:{read:'/dri/api/catalogobjects/'}}},0,0,0,0,['store.overlay-objects'],0,[visiomatic.store,'Objects'],0);Ext.cmd.derive('visiomatic.store.ExternalObjects',common.store.MyStore,{remoteFilter:!0,remoteSort:!1,autoLoad:!1,model:'visiomatic.model.Object',pageSize:10000,proxy:{type:'django',timeout:60000,api:{read:'/dri/api/vizier/'}}},0,0,0,0,['store.overlay-external-objects'],0,[visiomatic.store,'ExternalObjects'],0);Ext.cmd.derive('visiomatic.model.Overlay',Ext.data.Model,{idProperty:'id',fields:[{name:'id',type:'int'},{name:'name',type:'string'},{name:'color',type:'string'},{name:'visible',type:'boolean'},{name:'status',type:'string'},{name:'status_message',type:'string'},{name:'count',type:'int'},{name:'total_count',type:'int'},{name:'excess',type:'int'},{name:'catalog'},{name:'layers'},{name:'objects'},{name:'filters'},{name:'objectUrl'},{name:'pointSize',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Overlay'],0);Ext.cmd.derive('visiomatic.filter.FiltersController',Ext.app.ViewController,{listen:{component:{'overlay-filters-window':{changecatalog:'onChangeCatalog'}}},onChangeCatalog:function(b){var a=this,d=a.getViewModel(),c=d.getStore('contents');a.clearImputs();c.addFilter({property:'pcn_product_id',value:b.get('id')})},onLoadContents:function(a){},onAddFilter:function(){var d=this,a=d.getViewModel(),b=a.get('content'),f=a.get('operator'),h=a.get('value'),g=a.getStore('filters'),e=a.get('afilters'),c;c=Ext.create('visiomatic.model.FilterCondition',{fcd_property:b.get('id'),fcd_property_name:b.get('column_name'),fcd_operation:f.get('name'),fcd_value:h,property_display_name:b.get('display_name'),operator_display_name:f.get('display_name')});e.push(c);g.add(c);a.set('afilters',e);d.clearImputs();d.checkHaveFilters()},onRemoveFilterClick:function(f,d,c,e,g,b){var a=this;Ext.MessageBox.confirm('','The Filter will be removed. Do you want continue?',function(h){if(h==='yes'){b.drop();a.createAFilters();a.checkHaveFilters()}},this)},createAFilters:function(){var c=this,e=c.getViewModel(),d=c.lookup('gridFilters'),b=d.getStore(),a=[];console.log(b);b.each(function(b){console.log(b);a.push(b)},this);e.set('afilters',a)},checkHaveFilters:function(){var b=this,a=b.getViewModel(),c=a.get('afilters'),d=b.lookup('BtnApply');if(c.length>0){a.set('haveFilters',!0)}else {a.set('haveFilters',!1)}},onSelectProperty:function(f,c){var a=this,b=a.getViewModel(),d=b.get('afilters'),e},onSelectOperator:function(b,a){},onCancelFilter:function(){this.getView().close()},onApplyFilter:function(){var a=this,e=a.getView(),c=a.getViewModel(),d=c.get('currentCatalog'),b=c.get('afilters');if(b.length>0){a.applyFilters(d,b)}},applyFilters:function(c,d){var b=this,a=b.getView();a.fireEvent('applyfilters',d,c,b);a.close()},clearImputs:function(){var e=this,a=e.getReferences(),c=a.cmbProperty,b=a.cmbOperator,d=a.txtValue;c.reset();b.reset();d.reset()}},0,0,0,0,['controller.overlay_filters'],0,[visiomatic.filter,'FiltersController'],0);Ext.cmd.derive('visiomatic.model.CatalogContent',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'product_id',type:'int'},{name:'setting_id',type:'int'},{name:'column_name',type:'string'},{name:'class_id',type:'int'},{name:'category',type:'string'},{name:'display_name',type:'string'},{name:'ucd',type:'string'},{name:'unit',type:'string'},{name:'reference',type:'string'},{name:'mandatory',type:'boolean'},{name:'content_setting',type:'int'},{name:'is_visible',type:'boolean'},{name:'order',type:'int'}]},0,0,0,0,0,0,[visiomatic.model,'CatalogContent'],0);Ext.cmd.derive('visiomatic.store.ProductDisplayContents',common.store.MyStore,{model:'visiomatic.model.CatalogContent',remoteFilter:!0,remoteSort:!1,pageSize:0,proxy:{url:'/dri/api/productcontent/get_display_content/'},sorters:[{property:'order',direction:'ASC'},{property:'display_name',direction:'ASC'}],ucds:['meta.id;meta.main','pos.eq.ra;meta.main','pos.eq.dec;meta.main'],check_ucds:function(){var a=this,b=[];a.each(function(c){if(a.ucds.indexOf(c.get('ucd'))!==-1){b.push(!0)}},a);if(b.length===a.ucds.length){return !0}else {return !1}}},0,0,0,0,['store.overlay-product-display-contents'],0,[visiomatic.store,'ProductDisplayContents'],0);Ext.cmd.derive('visiomatic.filter.FiltersModel',Ext.app.ViewModel,{stores:{contents:{type:'overlay-product-display-contents',storeId:'productContents',autoLoad:!1},filters:{type:'overlay-filter-conditions',storeId:'filterConditions',autoLoad:!1},operators:{fields:['name','display_name','type'],data:[{name:'=',display_name:'is equal to',type:'text'},{name:'!=',display_name:'is not equal to',type:'text'},{name:'>',display_name:'is greater than',type:'text'},{name:'>=',display_name:'is greater than or equal to',type:'text'},{name:'<',display_name:'is less than',type:'text'},{name:'<=',display_name:'is less than or equal to',type:'text'}]}},data:{operator:null,value:null,haveFilters:!1,afilters:[]},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0}}},0,0,0,0,['viewmodel.overlay_filters'],0,[visiomatic.filter,'FiltersModel'],0);Ext.cmd.derive('visiomatic.filter.FiltersWindow',Ext.window.Window,{title:'Filters',width:500,height:300,modal:!0,autoShow:!0,controller:'overlay_filters',viewModel:'overlay_filters',closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null},items:[{xtype:'form',reference:'filterForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'fieldset',title:'Add condition',items:[{xtype:'fieldcontainer',layout:'hbox',defaults:{flex:1},items:[{xtype:'combobox',emptyText:'Property',itemId:'cmbProperty',reference:'cmbProperty',publishes:'id',displayField:'display_name',bind:{store:'{contents}',selection:'{content}'},listeners:{select:'onSelectProperty'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,margin:'0 5 0 0'},{xtype:'combobox',itemId:'cmbOperator',reference:'cmbOperator',publishes:'name',displayField:'display_name',emptyText:'Operator',bind:{store:'{operators}',selection:'{operator}'},listeners:{select:'onSelectOperator'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,forceSelection:!0,margin:'0 5 0 0'},{xtype:'textfield',reference:'txtValue',emptyText:'Value',bind:{value:'{value}'},margin:'0 5 0 0',allowBlank:!1},{xtype:'button',iconCls:'x-fa fa-plus',width:40,flex:!1,handler:'onAddFilter'}]}]}]},{xtype:'grid',reference:'gridFilters',layout:'fit',border:!0,framed:!0,hideHeaders:!0,flex:1,bind:{store:'{filters}'},viewConfig:{markDirty:!1},columns:[{text:'Property',dataIndex:'property_display_name',flex:1},{text:'Operator',dataIndex:'operator_display_name',flex:1},{text:'Value',dataIndex:'fcd_value',flex:1},{xtype:'actioncolumn',width:60,sortable:!1,menuDisabled:!0,align:'center',items:[{iconCls:'x-fa fa-minus-circle color-soft-red',tooltip:'Remove condition',handler:'onRemoveFilterClick'}]}]}],buttons:[{text:'Cancel',handler:'onCancelFilter'},{text:'Ok',reference:'BtnApply',handler:'onApplyFilter',bind:{disabled:'{!haveFilters}'}}],setCurrentCatalog:function(a){var b=this;if(a&&a.get('id')>0){b.currentCatalog=a;b.getViewModel().set('currentCatalog',a);b.fireEvent('changecatalog',a)}},setFilterSet:function(a){var d=this,c=d.getViewModel(),b=c.getStore('filters'),e=d.lookup('btnDeleteFilterSet'),f=d.lookup('txtFilter');if(a&&a.get('id')>0){c.set('filterSet',a);c.set('filterName',a.get('fst_name'));f.setReadOnly(!0);e.enable();b.addFilter({property:'filterset',value:a.get('id')});b.load()}else {c.set('filterName',null);f.setReadOnly(!1);e.disable();b.clearFilter();b.removeAll(!0)}}},0,['overlay-filters-window'],['component','box','container','panel','window','overlay-filters-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'overlay-filters-window':!0},['widget.overlay-filters-window'],0,[visiomatic.filter,'FiltersWindow'],0);Ext.cmd.derive('visiomatic.catalog.CatalogController',Ext.app.ViewController,{listen:{component:{'visiomatic-catalog-overlay':{changedataset:'onChangeDataset'}}},baseFilters:[],winFilter:null,onChangeDataset:function(d){var a=this,c=a.getViewModel(),b=c.getStore('overlays');b.removeAll();a.loadCatalogs()},loadCatalogs:function(){var c=this,d=c.getViewModel(),b=d.getStore('catalogs'),a;a=[{property:'group',operator:'in',value:['objects_catalog','targets','value_added_catalogs','external_catalogs']}];c.baseFilters=a;b.addFilter(a);b.load()},onSelectCatalog:function(){var a=this,d=a.getViewModel(),b=d.get('currentFilters'),c=a.lookup('CatalogsTree'),f=c.selection,e=a.lookup('btnFilter');b=[]},filterCatalogByname:function(){var a=this,h=a.lookup('CatalogsTree'),b=a.lookup('SearchField'),c=h.getStore(),d=b.getValue(),e=[],f;if(d.length>0){b.getTrigger('clear').show();if(c.isLoading()){console.log('Store is Loading: %o',c.isLoading());var g=c.getProxy();g.abort();console.log('Store proxy abort')}f={property:'search',value:d};e.push(f);a.filterCatalogs(e)}else {b.getTrigger('clear').hide();a.filterCatalogs()}},filterCatalogs:function(a){var d=this,g=d.getViewModel(),b=g.getStore('catalogs'),f=d.baseFilters,e,c=Ext.clone(f);b.clearFilter(!0);b.removeAll();if(a&&Array.isArray(a)){for(index in a){e=a[index];c.push(e)}}b.filter(c)},cancelFilter:function(){var b=this,a=b.lookup('SearchField');a.reset();b.filterCatalogs();a.getTrigger('clear').hide()},onClickOverlay:function(){var b=this,c=b.getViewModel(),k=b.lookup('CatalogsTree'),d=k.selection,j=c.get('currentColor'),i=c.get('currentFilters'),h=c.getStore('overlays'),e=b.lookup('cmbPointType'),g=e.getValue(),f=c.get('pointSize')/1000,a;c.set('currentCatalog',d);a=Ext.create('visiomatic.model.Overlay',{name:d.get('prd_display_name'),catalog:d,color:Ext.String.format('#{0}',j),visible:!0,count:null,layers:null,pointType:g,pointSize:f,status:'loading',filters:null});h.add(a);if(!d.get('external_catalog')){a.set('objects',Ext.create('visiomatic.store.Objects',{}));a.set('filters',i);b.loadObjects(a)}else {a.set('objects',Ext.create('visiomatic.store.ExternalObjects',{}));a.set('objectUrl',!0);b.loadExternalCatalogObjects(a)}},loadExternalCatalogObjects:function(b){var d=this,f=d.getViewModel(),e=f.get('visiomatic'),c=b.get('objects'),a;a=e.getBounds();c.addFilter([{property:'cds_source',value:b.get('catalog').get('cds_source')},{property:'cds_fieldnames',value:b.get('catalog').get('cds_fieldnames')},{property:'lat',value:a.lat},{property:'lng',value:a.lng},{property:'dlat',value:a.dlat},{property:'dlng',value:a.dlng}]);c.load({callback:function(e,c,a){d.onLoadObjects(b,c,a)}})},loadObjects:function(a){var f=this,h=f.getViewModel(),g=h.get('visiomatic'),b=a.get('objects'),d=a.get('filters'),c=[],e;e=g.getBox();b.addFilter([{property:'product',value:a.get('catalog').get('id')},{property:'coordinates',value:JSON.stringify(e)}]);if(d!==null){Ext.each(d,function(b){c.push({property:b.get('fcd_property_name'),operator:b.get('fcd_operation'),value:b.get('fcd_value')})});b.addFilter(c)}b.load({callback:function(d,c,b){f.onLoadObjects(a,c,b)}})},onLoadObjects:function(a,c,g){var i=this,j=i.getViewModel(),h=j.get('visiomatic'),b=a.get('objects'),d,e;a.set('count',b.count());if(!g){var f=c.error.statusText;if(c.error.status==0){f='Communication Failure or Time out'}d=Ext.String.format('Sorry, there was a server error, and this operation can not be performed.
    Error: {0} - {1}',c.error.status,f);a.set('status','error');a.set('status_message',d);console.log('Server Side ERROR: %o - %o',c.error.status,c.error.statusText)}else {if(b.count()>0){if(b.totalCount>b.pageSize){e=b.totalCount-b.pageSize;d=Ext.String.format('The query returned more objects than the limit.
    {0} objects are not being displayed.
    Limit: {1}
    Query returned: {2}
    ',e,b.pageSize,b.totalCount);a.set('total_count',b.totalCount);a.set('excess',e);a.set('status','alert');a.set('status_message',d)}else {a.set('status','ok')}}else {a.set('status','warning')}layers=h.overlayCatalog(a.get('name'),b,{color:a.get('color'),objectUrl:a.get('objectUrl'),pointType:a.get('pointType'),pointSize:a.get('pointSize')});a.set('layers',layers)}},onRemoveOverlay:function(i,f,h){var g=this,c=g.getViewModel(),e=c.getStore('overlays'),d=c.get('visiomatic'),b=e.getAt(f),a=b.get('layers');if(a!==null){d.showHideLayer(a,!1)}b.erase()},onChangeVisibility:function(i,e,g){var h=this,b=h.getViewModel(),d=b.getStore('overlays'),c=b.get('visiomatic'),f=d.getAt(e),a=f.get('layers');if(a!==null){c.showHideLayer(a,g)}},onClickBtnFilter:function(){var a=this,d=a.getViewModel(),c=a.lookup('CatalogsTree'),b=c.selection;if(b&&b.get('id')>0){a.winFilter=Ext.create('visiomatic.filter.FiltersWindow',{listeners:{scope:a,applyfilters:'onApplyFilters'}});a.winFilter.setCurrentCatalog(b);a.winFilter.show()}},onApplyFilters:function(a,d){var b=this,c=b.getViewModel();if(a.length>0){c.set('currentFilters',a)}}},0,0,0,0,['controller.catalogoverlay'],0,[visiomatic.catalog,'CatalogController'],0);Ext.cmd.derive('visiomatic.catalog.Submit',Ext.form.Panel,{initComponent:function(){var a=this;Ext.apply(this,{bodyPadding:5,layout:{type:'vbox',align:'stretch'},items:[{xtype:'fieldset',flex:1,border:!1,items:[{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'tbtext',html:'Color:',width:45},{xtype:'colorbutton',bind:'{currentColor}',width:55,margin:'0 20 0 5',tooltip:'Choose a color. Click on the color and then on ok.'}]},{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'combobox',labelWidth:45,flex:1,reference:'cmbPointType',fieldLabel:'Marker',displayField:'name',valueField:'name',queryMode:'local',store:{fields:['name'],data:[{'name':'circle'},{'name':'ellipse'},{'name':'square'},{'name':'triangle'}]},value:'circle'},{xtype:'numberfield',name:'pointsize',fieldLabel:'Size',labelWidth:40,width:100,bind:'{pointSize}',minValue:1,maxValue:10,step:0.2,margin:'0 0 0 5'}]},{xtype:'button',iconCls:'x-fa fa-filter',text:'Filters',tooltip:'Filters',handler:'onClickBtnFilter',reference:'btnFilter',width:100}]}],buttons:[{text:'Apply',handler:'onClickOverlay'}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['visiomatic-catalogs-submit'],['component','box','container','panel','form','visiomatic-catalogs-submit'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'visiomatic-catalogs-submit':!0},['widget.visiomatic-catalogs-submit'],0,[visiomatic.catalog,'Submit'],0);Ext.cmd.derive('visiomatic.catalog.OverlayGrid',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{hideHeaders:!0,viewConfig:{markDirty:!1,listeners:{scope:a,render:a.addTooltipToColumnName,destroy:function(a){delete a.tip}}},columns:[{text:'Visible',xtype:'checkcolumn',dataIndex:'visible',width:30,listeners:{checkchange:'onChangeVisibility'},align:'center'},{text:'Color',dataIndex:'color',width:30,align:'center',renderer:a.renderColumnColor},{text:'Name',dataIndex:'name',tdCls:'nameTdCls',flex:2,renderer:a.renderColumnName},{menuDisabled:!0,xtype:'actioncolumn',width:30,items:[{iconCls:'x-fa fa-trash-o color-overlay-grid-icon',tooltip:'Remove',handler:'onRemoveOverlay'}]}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},addTooltipToColumnName:function(a){var b=this;a.tip=Ext.create('Ext.tip.ToolTip',{target:a.getId(),delegate:a.itemSelector+' .nameTdCls',trackMouse:!0,listeners:{beforeshow:function updateTipBody(c){var d=c.target.component;var e=d.getRecord(c.triggerElement);c.update(b.getTooltipName(e))}}})},getTooltipName:function(a){var f=this,b=a.get('filters'),d,e,c;if(a.get('status')!=='error'){d=Ext.String.format('{0}
    Entries: {1}',a.get('name'),a.get('count'));if(b!==null&&b.length>0){c='
    Filters:
    ';Ext.each(b,function(b){e=Ext.String.format('{0} {1} {2}
    ',b.get('fcd_property_name'),b.get('operator_display_name'),b.get('fcd_value'));c+=e});d+=c}return d}else {return a.get('status_message')}},renderColumnName:function(a,d,b){var c=16;if(a.length>c){a=a.substr(0,c);a=a+'...'}if(b.get('status')!=='loading'&&b.get('status')!=='error'){return Ext.String.format('{0} ({1} entries)',a,b.get('count'))}else {return a}},renderColumnColor:function(a,c,b){switch(b.get('status')){case 'loading':a='';break;case 'ok':a=Ext.String.format('',a);break;case 'alert':msg=b.get('status_message');a='';c.tdAttr='data-qtip= "'+msg+'"';break;case 'warning':a='';break;case 'error':msg=b.get('status_message');a='';break;}return a}},0,['visiomatic-catalogs-overlays-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','visiomatic-catalogs-overlays-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'visiomatic-catalogs-overlays-grid':!0},['widget.visiomatic-catalogs-overlays-grid'],0,[visiomatic.catalog,'OverlayGrid'],0);Ext.cmd.derive('visiomatic.catalog.CatalogOverlayWindow',Ext.window.Window,{controller:'catalogoverlay',viewModel:'catalogoverlay',config:{visiomatic:null,dataset:null},initComponent:function(){var a=this;Ext.apply(this,{title:'Catalog Overlay',width:600,height:450,closeAction:'hide',layout:{type:'hbox',align:'stretch'},items:[{xtype:'panel',split:!0,flex:1,framed:!0,layout:{type:'vbox',align:'stretch'},items:[{xtype:'visiomatic-catalogs-tree',reference:'CatalogsTree',flex:1,bind:{store:'{catalogs}'},listeners:{select:'onSelectCatalog'}},{xtype:'visiomatic-catalogs-submit',height:150,bind:{disabled:'{!CatalogsTree.selection.leaf}'}}]},{xtype:'visiomatic-catalogs-overlays-grid',split:!0,framed:!0,flex:1,bind:{store:'{overlays}'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setVisiomatic:function(a){this.visiomatic=a;this.getViewModel().set('visiomatic',a)},setDataset:function(c){var a=this,d=a.getDataset(),b=!1;if(d!==null&&d.get('id')>0){if(d.get('id')===c.get('id')){b=!1}else {b=!0}}else {b=!0}if(b){a.dataset=c;a.getViewModel().set('dataset',c);a.fireEvent('changedataset',c,a)}}},0,['visiomatic-catalog-overlay'],['component','box','container','panel','window','visiomatic-catalog-overlay'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'visiomatic-catalog-overlay':!0},['widget.visiomatic-catalog-overlay'],0,[visiomatic.catalog,'CatalogOverlayWindow'],0);Ext.cmd.derive('visiomatic.download.FitsController',Ext.app.ViewController,{listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},onChangeLoadFits:function(b,c){var f=this,e=f.getView(),a=e.getViewModel(),d=a.getStore('fitsFiles');a.set('tag',c);a.set('tilename',b);d.filter([{property:'tilename',value:b},{property:'tag',value:c}])}},0,0,0,0,['controller.fits-files'],0,[visiomatic.download,'FitsController'],0);Ext.cmd.derive('visiomatic.model.FitsFiles',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/get_fits_by_tilename'},fields:[{name:'filename',type:'string','default':null,persist:!1},{name:'filter',type:'string','default':null,persist:!1},{name:'order',type:'int','default':null,persist:!1},{name:'file_source',type:'string','default':null,persist:!1}]},0,0,0,0,0,0,[visiomatic.model,'FitsFiles'],0);Ext.cmd.derive('visiomatic.store.FitsFiles',common.store.MyStore,{model:'visiomatic.model.FitsFiles',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/get_fits_by_tilename'},sorters:[{property:'order',direction:'ASC'},{property:'filename',direction:'ASC'}]},0,0,0,0,['store.fits-files'],0,[visiomatic.store,'FitsFiles'],0);Ext.cmd.derive('visiomatic.download.FitsModel',Ext.app.ViewModel,{stores:{fitsFiles:{type:'fits-files'}}},0,0,0,0,['viewmodel.fits-files'],0,[visiomatic.download,'FitsModel'],0);Ext.cmd.derive('visiomatic.download.DescutDownloadWindow',Ext.window.Window,{viewModel:'fits-files',controller:'fits-files',title:'Download',width:600,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'vbox',align:'stretch'},initComponent:function(){var a=this;Ext.apply(this,{layout:'fit',items:[{xtype:'gridpanel',scrollable:!0,bind:{store:'{fitsFiles}'},columns:[{text:'Filename',dataIndex:'filename',flex:1},{text:'Filter',dataIndex:'filter'},{text:'URL',dataIndex:'file_source',renderer:function(a,b,c){return ' '}}]}],buttons:[{xtype:'label',text:'Right click "Save link as" to download files',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadFits:function(a,b){var c=this;this.loadFits=a;c.fireEvent('changeLoadFits',a,b)}},0,['target-download-descut'],['component','box','container','panel','window','target-download-descut'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-descut':!0},['widget.target-download-descut'],0,[visiomatic.download,'DescutDownloadWindow'],0);Ext.cmd.derive('visiomatic.Visiomatic',Ext.panel.Panel,{controller:'visiomatic',viewModel:'visiomatic',height:'100%',width:'100%',libL:null,config:{map:null,mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!0},prefix:null,enableSidebar:!0,enableSmallCrosshair:!1,enableCatalogs:!1,availableCatalogs:['GALEX_AIS','2MASS','AllWISE','SDSS','PPMXL','Abell','NVSS','FIRST','GAIA_DR1'],enableMiniMap:!1,miniMapOptions:{position:'topright',width:128,height:128,zoomLevelOffset:-6,nativeCelsys:!0},miniMap:null,enableWcs:!0,wcsUnits:[{label:'RA, Dec (Deg)',units:'deg'},{label:'RA, Dec (HMS)',units:'HMS'}],enableScale:!0,image:null,imageLayer:null,imageOptions:{credentials:!0,center:!1,fov:!1,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'},radiusOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',dashArray:'5, 5, 1, 5',interactive:!1},catalogOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',interactive:!0,pointType:'circle',pointSize:0.001},crosshairOptions:{color:'#FF4500',weight:2,smoothFactor:1,centerPadding:0.001,size:0.003},release:null,tag:null,dataset:null,currentDataset:null,enableTools:!0,auxTools:[],enableLink:!0,enableShift:!0,ready:!1,lradius:null,lcrosshair:null,showCrosshair:!1,enableContextMenu:!1,mlocate:'',showComments:!1},_winCatalogOverlay:null,bind:{release:'{release}',tag:'{tag}',dataset:'{dataset}'},initComponent:function(){var a=this,e=window.location.host,b,d,c;if(window.L){a.libL=window.L}else {console.log('window.L ainda nao esta carregada, incluir no app.json a biblioteca Leaflet')}this.cmpVisiomatic=c=Ext.create('Ext.Component',{id:a.getMapContainer(),width:'100%',height:'100%',listeners:{deactivate:a.onDeactivate}});if(a.getEnableTools()){b=a.makeToolbar();tools=a.makeToolbarButtons();b.add(tools);a.tbar=b}Ext.apply(this,{items:[c]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},afterRender:function(){var a=this,c=a.libL,d=a.getMapContainer(),e=a.getMapOptions(),b;Ext.panel.Panel.prototype.afterRender.apply(this,arguments);b=c.map(d,e);if(a.getPrefix()){b.attributionControl.setPrefix(a.getPrefix())}c.control.reticle().addTo(b);b.on('dblclick',a.onDblClick,a);b.on('contextmenu',a.onContextMenuClick,a);b.on('layeradd',a.onLayerAdd,a);b.on('move',a.onMove,a);b.on('mousemove',a.onMouseMove,a);b.on('overlaycatalog',a.showCatalogOverlayWindow,a);b.on('mouseup',a.savePreferences,a);b.on('keypress',a.savePreferences,a);a.setMap(b);if(a.getEnableSidebar()){a.createSidebar()}if(a.getEnableWcs()){a.addWcsController()}if(a.getEnableScale()){a.addScaleController()}a.cmpMousePosition=a.makeMousePosition()},savePreferences:function(){var c=this,a=c.getImageLayer();var b={credentials:!0,channelLabelMatch:'[ugrizY]',mixingMode:a.iipMode,contrast:a.iipContrast,gamma:a.iipGamma,invertCMap:a.iipInvertCMap,colorSat:a.iipColorSat,quality:a.iipQuality};localStorage.removeItem('imageOptions');localStorage.setItem('imageOptions',JSON.stringify(b))},onResize:function(){Ext.panel.Panel.prototype.onResize.apply(this,arguments);var a=this.getMap();if(a){a.invalidateSize()}},onDeactivate:function(){console.log('onDeactivate');var a=this;if(a._winCatalogOverlay){a._winCatalogOverlay.close()}},getMapContainer:function(){return this.getId()+'-placeholder'},createSidebar:function(){var c=this,b=c.libL,f=c.getMap(),e=c.getAvailableCatalogs(),a,d=[];a=b.control.sidebar().addTo(f);b.control.iip.channel().addTo(a);b.control.iip.image().addTo(a);if(c.getEnableCatalogs()){Ext.Array.each(e,function(a){d.push(b.Catalog[a])});b.control.iip.catalog(d).addTo(a)}b.control.iip.region([]).addTo(a);b.control.iip.profile().addTo(a);b.control.iip.snapshot().addTo(a);a.addTabList()},createSmallCrosshair:function(){var b=this,a=b.getRaDec(),c={color:'#90FA3A',weight:1,opacity:0.8,smoothFactor:1,centerPadding:5.0E-4,size:0.0015};b.drawSmallCrosshair(a.ra,a.dec,c)},addWcsController:function(){var a=this,c=a.libL,d=a.getMap(),b=a.getWcsUnits();c.control.wcs({coordinates:b,position:'topright'}).addTo(d)},addScaleController:function(){var a=this,b=a.libL,c=a.getMap();b.control.scale.wcs({pixels:!1}).addTo(c)},setCurrentDataset:function(a){var b=this;b.currentDataset=a},setImage:function(e,d){var a=this,i=a.libL,j=a.getMap(),h=a.getMiniMap(),b=a.getImageLayer(),c=a.getImageOptions(),f,k,g;a.setReady(!1);if(a._winCatalogOverlay!==null){a._winCatalogOverlay.close();a._winCatalogOverlay=null}a.removeImageLayer();d=d||{};if(b){c={credentials:c.credentials,channelLabelMatch:'[ugrizY]',mixingMode:b.iipMode,contrast:b.iipContrast,gamma:b.iipGamma,invertCMap:b.iipInvertCMap,colorSat:b.iipColorSat,quality:b.iipQuality}}f=Ext.Object.merge(c,d);a.image=e;if(!b){b=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(b)}else {a.removeImageLayer();g=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(g)}if(a.getEnableMiniMap()){if(h){h.remove()}a.createMiniMap()}},createMiniMap:function(){var a=this,e=a.libL,h=a.getMap(),g=a.getMiniMapOptions(),f=a.getImageOptions(),d=a.getImage(),c,b;if(d){b=e.tileLayer.iip(d,{credentials:f.credentials,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'});c=e.control.extraMap(b,g).addTo(h);a.setMiniMap(c)}},setView:function(c,b,h,f){var a=this,g=a.libL,e=a.getMap(),d;if(a.isReady()){c=parseFloat(parseFloat(c).toFixed(5));b=parseFloat(parseFloat(b).toFixed(5));d=g.latLng(b,c);e.setView(d,e.options.crs.fovToZoom(e,h,d));if(a.getShowCrosshair()){if(!f){a.drawCrosshair(c,b)}}}},onLayerAdd:function(b){var a=this;if(b.layer.type==='tilelayer'){a.setReady(!0);a.fireEvent('changeimage',a)}},onDblClick:function(b){var a=this;a.fireEvent('dblclick',b,a)},onContextMenuClick:function(b){var a=this,c=a.getMap();if(!a.isObjectContextMenu){a.showContextMenuImage(b)}a.isObjectContextMenu=!1},removeImageLayer:function(){var b=this,a=b.getMap();if(a!==null){a.eachLayer(function(b){a.removeLayer(b)})}},getRaDec:function(){var c=this,d=c.libL,b=c.getMap(),e=b.options.crs,a=b.getCenter();return {'ra':parseFloat(a.lng),'dec':parseFloat(a.lat)}},getBounds:function(){var m=this,j=m.libL,c=m.getMap(),b=c.options.crs,k=b.forceNativeCelsys&&!this.options.nativeCelsys,e=k?b.celsysToEq(c.getCenter()):c.getCenter(),n=Math.abs(Math.cos(e.lat*Math.PI/180)),d=c.getPixelBounds(),f=c.getZoom(),a,g,l,i,h,o;a=k?[b.celsysToEq(c.unproject(d.min,f)),b.celsysToEq(c.unproject(j.point(d.min.x,d.max.y),f)),b.celsysToEq(c.unproject(d.max,f)),b.celsysToEq(c.unproject(libLpoint(d.max.x,d.min.y),f))]:[c.unproject(d.min,f),c.unproject(j.point(d.min.x,d.max.y),f),c.unproject(d.max,f),c.unproject(j.point(d.max.x,d.min.y),f)];g=parseFloat(e.lng.toFixed(6));l=parseFloat(e.lat.toFixed(6));i=(Math.max(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e))-Math.min(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e)))*n;h=Math.max(a[0].lat,a[1].lat,a[2].lat,a[3].lat)-Math.min(a[0].lat,a[1].lat,a[2].lat,a[3].lat);if(h<1.0E-4){h=1.0E-4}if(i<1.0E-4){i=1.0E-4}if(g>360){g=g-360}return {lat:parseFloat(l.toFixed(6)),lng:parseFloat(g.toFixed(6)),dlat:parseFloat(h.toFixed(6)),dlng:parseFloat(i.toFixed(6))}},getBox:function(){var h=this,e,d,b,c,a,g,f;bounding=h.getBounds();if(bounding.lng>360){bounding.lng=bounding.lng-360}d=parseFloat(bounding.lng+bounding.dlng/2).toFixed(6);b=parseFloat(bounding.lat+bounding.dlat/2).toFixed(6);c=parseFloat(bounding.lng-bounding.dlng/2).toFixed(6);a=parseFloat(bounding.lat-bounding.dlat/2).toFixed(6);g=[d,b];f=[c,a];e=[g,f];return e},getFov:function(){var e=this,a=e.getMap(),d=a.options.crs,c=a.getCenter(),b;b=d.zoomToFov(a,a.getZoom(),c);return b},onMove:function(){var a=this,b=a.getRaDec(),c=a.getFov();a.fireEvent('changeposition',b,c,a)},onMouseMove:function(b){var d=String(b.latlng.lng.toFixed(5)+', '+b.latlng.lat.toFixed(5)),a=this,c=a.getMap();this.cmpMousePosition.children[0].innerHTML='Mouse RA, Dec: '+d;a.currentPosition={radec:[b.latlng.lng.toFixed(5),b.latlng.lat.toFixed(5)],container:[b.containerPoint.x,b.containerPoint.y]};if(a.cropInit&&a.cropInit==a.cropEnd&&a.isCropping){if(a.cropRectangle){c.removeLayer(a.cropRectangle)}a.cropRectangle=a.drawRectangle(a.cropInit['radec'],a.currentPosition['radec'])}if(a.getEnableSmallCrosshair()){a.createSmallCrosshair()}},getLinkToPosition:function(){var b=this,e=b.getMap(),a=b.getRaDec(),c=b.getFov(),d;if(a.dec>0){d=a.ra.toFixed(5).replace('.',',')+'+'+a.dec.toFixed(5).replace('.',',')}else {d=a.ra.toFixed(5).replace('.',',')+a.dec.toFixed(5).replace('.',',')}if(c){c=c.toFixed(2).replace('.',',')}b.fireEvent('link',encodeURIComponent(d),c,a,b)},onShift:function(){this.fireEvent('shift',this.getRaDec(),this)},isReady:function(){return this.getReady()},panTo:function(a){var b=this.getMap();this.coordinatesToLatLng(a,function(c){if(c){b.panTo(c)}})},coordinatesToLatLng:function(a,b){visiomatic.Visiomatic.coordinatesToLatLng(a,b)},hmsToLatLng:function(a,b){visiomatic.Visiomatic.hmsToLatLng(a,b)},drawRadius:function(g,e,d,n,l){var a=this,b=a.libL,f=a.getMap(),j=f.options.crs,h=a.getRadiusOptions(),o=g+'_'+e,i,c,m;if(a.getLradius()){f.removeLayer(a.getLradius());a.setLradius(null)}m=Ext.Object.merge(h,l);if(n==='arcmin'){d=d/60}var k={type:'FeatureCollection',features:[{type:'Feature',id:o,properties:{},geometry:{type:'Point',coordinates:[g,e]}}]};c=b.geoJson(k,{coordsToLatLng:function(a){if(j.forceNativeCelsys){var c=j.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(a,c){i=Ext.Object.merge(h,{majAxis:d,minAxis:d,posAngle:90});return b.ellipse(b.latLng(e,g),i)}});a.setLradius(c);f.addLayer(c);return c},showHideRadius:function(d){var c=this,b=c.getMap(),a=c.getLradius();if(a!==null){if(d){b.addLayer(a)}else {b.removeLayer(a)}}},overlayCatalog:function(l,j,k){var c=this,b=c.libL,g=c.getMap(),h=g.options.crs,i=c.getCatalogOptions(),a,d,f,e;a=Ext.Object.merge(i,k);d={type:'FeatureCollection',features:[]};j.each(function(a){if(c.isInsideTile(a.get('_meta_ra'),a.get('_meta_dec'))){f={type:'Feature',id:a.get('_meta_id'),title:l,properties:a.data,is_system:a.get('_meta_is_system'),geometry:{type:'Point',coordinates:[a.get('_meta_ra'),a.get('_meta_dec')]}};d.features.push(f)}},c);e=b.geoJson(d,{coordsToLatLng:function(a){if(h.forceNativeCelsys){var c=h.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(e,d){if(e.is_system){if(e.properties._meta_radius){radius=e.properties._meta_radius/60;opts=c.getRadiusOptions()}}if(a.pointType==='ellipse'){var q=0.001,r=0.001,m=90;try{var o=e.properties._meta_a_image,p=e.properties._meta_b_image,f=e.properties._meta_theta_image;if(typeof o=='number'&&typeof p=='number'&&typeof f=='number'){q=o/3600;r=p/3600;m=f}}catch(x){}a.majAxis=q,a.minAxis=r,a.posAngle=m;return b.ellipse(d,a)}else {if(a.pointType==='square'){var w=[[d.lat-a.pointSize,d.lng-a.pointSize],[d.lat+a.pointSize,d.lng+a.pointSize]];var v=b.rectangle(w,a);return v}else {if(a.pointType==='triangle'){var h,i,g,n,s,t,u;h=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat-a.pointSize,d.lng+a.pointSize)];g=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];i=[b.latLng(d.lat-a.pointSize,d.lng+a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];s=b.polyline(h,a);u=b.polyline(g,a);t=b.polyline(i,a);n=new b.LayerGroup([s,u,t]);return n}else {a.majAxis=a.pointSize;a.minAxis=a.pointSize;a.posAngle=90;circle=b.ellipse(d,a);return circle}}}}}).bindPopup(c.createOverlayPopup).on('dblclick',function(){alert('TODO: OPEN IN EXPLORER!')}).on('contextmenu',c.onLayerContextMenu,c);g.addLayer(e);c.redraw();return e},redraw:function(){var d=this,c=d.getMap(),a=$(c.getContainer()),b=a.width();if(b>0){a.css({width:b+2});c.invalidateSize();a.css({width:'initial'})}},createOverlayPopup:function(i){var a=i.feature,h=a.properties,j=['_meta_mag_auto_g','_meta_mag_auto_r','_meta_mag_auto_i','_meta_mag_auto_z','_meta_mag_auto_y'],e=[],d=[],c=a.properties._meta_id,g=['RAJ2000','DEJ2000'],b=[],f;Ext.each(j,function(a){try{mag_name=a.slice(-1);if(mag_name=='y'){mag_name='Y'}mag_value=h[a];if(mag_value){mag_value=parseFloat(mag_value);tag=''+mag_name+': '+mag_value.toFixed(2)+'';e.push(tag)}}catch(k){}});if(a.properties._meta_photo_z){photoz=parseFloat(a.properties._meta_photo_z);d.push('photo-z: '+photoz.toFixed(2)+'')}if(a.properties._meta_is_system){c=''+a.properties._meta_id+''}else {if(a.properties._meta_catalog_class=='coadd_objects'){c=''+a.properties._meta_id+''}else {if(a.properties._meta_object_url){c=''+a.properties._meta_id+'';for(property in a.properties){if(!property.startsWith('_meta_')&&g.indexOf(property)==-1){b.push(property)}}if(b.length<=15){for(key in b.sort()){property=b[key];d.push(''+property+': '+a.properties[property]+'')}}}else {}}}ra=parseFloat(a.properties._meta_ra);dec=parseFloat(a.properties._meta_dec);f=''+a.title+'
    '+e.join('')+d.join('')+'
    ID: '+c+'
    RA, Dec (deg): '+ra.toFixed(5)+', '+dec.toFixed(5)+'
    ';return f},onDblClickOverlay:function(){console.log('onDblClickOverlay(%o)',arguments)},showHideLayer:function(a,c){var d=this,b=d.getMap();if(a!==null){if(c){b.addLayer(a)}else {b.removeLayer(a)}}},showHideComments:function(a,b){},onLayerContextMenu:function(a){var b=this;b.isObjectContextMenu=!0;if(a.target.targetPosition){b.showContextMenuImage(a)}else {if(a.target.targetObjet){a.layer={feature:a.target.targetObjet.feature}}b.showContextMenuObject(a)}},createCommentIcon:function(d,c){var b=this,e,a;a=b.markPosition(d,'mapmaker-comment comment-maker').on('contextmenu',b.onLayerContextMenu,b);if(c){c.commentMaker=a;a.targetObjet=c}else {a.targetPosition=d}a.getElement().style.display=b.getShowComments()?'':'none'},updateComment:function(b,a,c){},markPosition:function(i,g,e){var h=this,c=h.libL,j=h.getMap(),b,a,f,d;if(arguments.length==2){b=i;e=g;d=[12,25]}else {b=c.latLng(g,i);d=[8,44]}if(e){f=c.divIcon({className:'visiomatic-marker-position',iconAnchor:d,html:''});a=c.marker(b,{icon:f})}else {a=c.marker(b)}a.addTo(j);return a},setShowCrosshair:function(c){var b=this,d=b.getMap(),a=b.lcrosshair;b.showCrosshair=c;if(a!==null){if(c){d.addLayer(a)}else {d.removeLayer(a)}}},onToggleCrosshair:function(c,a,d){var b=this;if(d.pressed){b.drawCrosshair(c,a)}else {b.removeCrosshair(c,a)}},drawCrosshair:function(e,d,m){var c=this,a=c.libL,l=c.getMap(),o=c.getCrosshairOptions(),n=null,b,f,g,p,k,h,j,i;b=Ext.Object.merge({},o);if(m){b=Ext.Object.merge(b,m)}if(c.lcrosshair){if(l.hasLayer(c.lcrosshair)){l.removeLayer(c.lcrosshair);c.lsmallcrosshair=null}}p=a.latLng(d,e);f=b.centerPadding?b.centerPadding:0.001;g=b.size?b.size:0.005;k=[a.latLng(d+f,e),a.latLng(d+g,e)];h=[a.latLng(d-f,e),a.latLng(d-g,e)];j=[a.latLng(d,e+f),a.latLng(d,e+g)];i=[a.latLng(d,e-f),a.latLng(d,e-g)];k=a.polyline(k,b);h=a.polyline(h,b);j=a.polyline(j,b);i=a.polyline(i,b);n=new a.LayerGroup([k,h,j,i]);c.lcrosshair=n;if(c.getShowCrosshair()){l.addLayer(c.lcrosshair)}return c.lcrosshair},removeCrosshair:function(){var a=this,b=a.getMap();if(a.lcrosshair){if(b.hasLayer(a.lcrosshair)){b.removeLayer(a.lcrosshair);a.lsmallcrosshair=null}}},drawSmallCrosshair:function(d,c,e){var b=this,a=b.libL,h=b.getMap(),n=b.getCrosshairOptions(),p=null,m,f,g,o,l,i,k,j;m=Ext.Object.merge({},n);if(e){m=Ext.Object.merge(m,e)}if(b.lsmallcrosshair){if(h.hasLayer(b.lsmallcrosshair)){h.removeLayer(b.lsmallcrosshair);b.lsmallcrosshair=null}}o=a.latLng(c,d);f=0.005/h._zoom;g=0.01/h._zoom;l=[a.latLng(c+f,d),a.latLng(c+g,d)];i=[a.latLng(c-f,d),a.latLng(c-g,d)];k=[a.latLng(c,d+f),a.latLng(c,d+g)];j=[a.latLng(c,d-f),a.latLng(c,d-g)];l=a.polyline(l,e);i=a.polyline(i,e);k=a.polyline(k,e);j=a.polyline(j,e);layerSmall=new a.LayerGroup([l,i,k,j]);b.lsmallcrosshair=layerSmall;if(b.getEnableSmallCrosshair()&&e){h.addLayer(b.lsmallcrosshair)}return b.lsmallcrosshair},showCatalogOverlayWindow:function(){var b=this,c=b.getCurrentDataset(),a=b._winCatalogOverlay;if(c!==null&&c.get('id')>0){if(a!=null){a.show()}else {a=Ext.create('visiomatic.catalog.CatalogOverlayWindow',{visiomatic:b});b.add(a);a.show();b._winCatalogOverlay=a}b._winCatalogOverlay.setDataset(c)}else {console.log('Dataset nao foi definido, a funcao overlay precisa de um dataset.');return !1}},showDownloadWindow:function(){var d=this,a=d.getCurrentDataset(),c;if(a.get('tli_tilename')){c=a.get('tli_tilename');tag=a.get('release_name');var b=Ext.create('visiomatic.download.DescutDownloadWindow');b.loadFits(c,tag);b.show()}else {alert('File not found.')}},showContextMenuImage:function(b){var a=this,c=b.target,d={x:b.originalEvent.clientX,y:b.originalEvent.clientY};if(!a.getEnableContextMenu()){return}if(b.originalEvent.target.classList.contains('comment-maker')&&!c.targetPosition){return a.showContextMenuObject(b)}if(!this.contextMenuImage){this.contextMenuImage=new Ext.menu.Menu({items:[{id:'comment-position',text:'Comment Position',handler:function(c){a.fireEvent('imageMenuItemClick',a.contextMenuImage.target,a.getCurrentDataset())}}]})}c.latlng=b.latlng;a.contextMenuImage.target=c;a.contextMenuImage.showAt(d)},initCrop:function(){var a=this,b=a.getMap();b.on('mousedown',a.startCrop,a);a.isCropping=!0;b.dragging.removeHooks()},startCrop:function(){var a=this,b=a.getMap();a.cropInit=a.currentPosition;a.cropEnd=a.cropInit;b.off('mousedown',a.startCrop,a);b.on('mouseup',a.endCrop,a)},endCrop:function(c){var a=this,b=a.getMap();a.cropEnd=a.currentPosition;b.off('mouseup',a.endCrop,a);a.downloadCrop(a.cropInit,a.cropEnd);if(a.cropRectangle){b.removeLayer(a.cropRectangle)}a.cropInit=null;a.isCropping=!1;b.dragging.addHooks()},downloadCrop:function(d,e){var i=this,p=i.libL,h=i.getMap(),g=document.createElement('a'),a=i.getImageLayer();var o=h.getCenter(),j=h.getPixelBounds(),c=h.getZoom(),b;if(c>a.iipMaxZoom){b=Math.pow(2,c-a.iipMaxZoom);c=a.iipMaxZoom}else {b=1}var l=a.iipImageSize[c].x*b,m=a.iipImageSize[c].y*b,f=Math.abs(d.container[0]-e.container[0]),n=Math.abs(d.container[1]-e.container[1]);var k={x:j.min.x+Math.min(d.container[0],e.container[0]),y:j.min.y+Math.min(d.container[1],e.container[1])};g.href=a.getTileUrl({x:1,y:1}).replace(/JTL\=\d+\,\d+/g,'RGN='+k.x/l+','+k.y/m+','+f/l+','+n/m+'&WID='+(this._snapType===0?Math.floor(f/b):Math.floor(f/b/a.wcs.scale(c)))+'&CVT=jpeg');g.download=a._title+'_'+p.IIPUtils.latLngToHMSDMS(o).replace(/[\s\:\.]/g,'')+'.jpg';var q=Ext.create('visiomatic.crop.CropWindow',{image:g,height:n+100,width:f+100})},showContextMenuObject:function(a){var c,b=this,d={x:a.originalEvent.clientX,y:a.originalEvent.clientY};if(!b.getEnableContextMenu()){return}if(!this.contextMenuObject){this.contextMenuObject=new Ext.menu.Menu({items:[{id:'comment-object',text:'Comment Object',handler:function(c){b.fireEvent('objectMenuItemClick',a,this.feature)}}]})}c=b.contextMenuObject.items.get('comment-object');c.feature=a.layer?a.layer.feature:null;b.contextMenuObject.showAt(d)},drawRectangle:function(h,j,q){var f=this,a=f.libL,r=f.getMap(),e=h[0],c=h[1],d=j[0],b=j[1],l,g,k,i,p,m,n,o;pathOptions=Ext.Object.merge(f.getCrosshairOptions(),q);l=[a.latLng(c,d),a.latLng(c,e)];g=[a.latLng(b,d),a.latLng(b,e)];k=[a.latLng(c,e),a.latLng(b,e)];i=[a.latLng(c,d),a.latLng(b,d)];p=a.polyline(l,pathOptions);m=a.polyline(g,pathOptions);n=a.polyline(k,pathOptions);o=a.polyline(i,pathOptions);layer=new a.LayerGroup([p,m,n,o]);r.addLayer(layer);return layer},isInsideTile:function(d,b){var c=this,a=c.getCurrentDataset();if(a!=null&&a.get('id')>0){return a.isInsideTile(d,b)}else {return !0}},statics:{coordinatesToLatLng:function(a,c){var d,b=visiomatic.Visiomatic.strToSystem(a);a=a.trim().replace(/( )+/g,' ');d=a.split(',');if(b&&b.system=='latlng'){return c(b.value)}else {if(b&&b.system=='HMS'){return visiomatic.Visiomatic.hmsToLatLng(a,c)}}c(null)},hmsToLatLng:function(b,a){var c='http://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame/-oI/A?'+b;$.get(c,function(c){var d=visiomatic.Visiomatic.parseCoords(c,!0);if(a){a(d)}})},latLngToHMSDMS:function(f){var c=(f.lng+360)/360;c=(c-Math.floor(c))*24;var e=Math.floor(c),d=(c-e)*60,a=Math.floor(d),b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}var j=(e<10?'0':'')+e.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(3),h=Math.abs(f.lat),i=f.lat<0?'-':'+',g=Math.floor(h);d=(h-g)*60;a=Math.floor(d);b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}return j+' '+i+(g<10?'0':'')+g.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(2)},strToSystem:function(a){var b;if(a){a=a.trim().replace(/( )+/g,' ');b=a.split(',');if(b.length==2&&a.split(':').length==1){return {value:{lng:Number(b[0]),lat:Number(b[1])},system:'latlng'}}b=a.split(' ');if(b.length==2&&a.split(':').length==5){return {value:a,system:'HMS'}}}return null},parseCoords:function(b){var a=/J\s(\d+\.?\d*)\s*,?\s*\+?(-?\d+\.?\d*)/g.exec(b);if(a&&a.length>=3){return L.latLng(Number(a[2]),Number(a[1]))}return null}}},0,['visiomatic'],['component','box','container','panel','visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0},['widget.visiomatic'],[['interface',visiomatic.Interface]],[visiomatic,'Visiomatic'],0);Ext.cmd.derive('visiomatic.crop.CropWindow',Ext.window.Window,{title:'Crop',width:400,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'hbox'},initComponent:function(){var a=this,b=a.image;Ext.apply(this,{layout:'ux.center',items:[{xtype:'image',src:b.href,alt:b.download,height:a.height-100,width:a.width-100}],buttons:[{xtype:'label',text:'Right click "Save image as" to download the image',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadImage:function(a){var b=this;this.image=a}},0,['target-download-crop'],['component','box','container','panel','window','target-download-crop'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-crop':!0},['widget.target-download-crop'],0,[visiomatic.crop,'CropWindow'],0);Ext.cmd.derive('aladin.Events',Ext.Base,{mouseIsDown:!1,mouseInitialPosition:[],mouseLastPosition:[],addCustomEvents:function(){var a=this;a.addDblClickListener();a.addMouseDown();a.addMouseMoveListener();a.addMouseUP()},addDblClickListener:function(){var a=this,d=a.getAladin(),f=d.view,e=d.view.reticleCanvas,b,c;e.addEventListener('dblclick',function(d){c=f.imageCanvas.relMouseCoords(d);b=a.mousePositionToSky(c);if(b){a.updateLocation(b);if(!a.preventDbClickFire){a.preventDbClickFire=!0;task=a.runner.newTask({run:function(){a.preventDbClickFire=!1},interval:20,repeat:1});task.start();a.fireEvent('ondblclick',b,a)}}})},addMouseDown:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,b,c;e.addEventListener('mousedown',function(e){c=d.imageCanvas.relMouseCoords(e);b=a.mousePositionToSky(c);if(b){a.mouseIsDown=!0;a.mouseInitialPosition=b;a.mouseLastPosition=b}})},addMouseMoveListener:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,b,c;e.addEventListener('mousemove',function(e){c=d.imageCanvas.relMouseCoords(e);b=a.mousePositionToSky(c);if(b){a.updateLocation(a.getRaDec(),b);if(a.mouseIsDown){a.mouseLastPosition=b;a.fireEvent('reticlemove',a.getRaDec(),a)}}})},addMouseUP:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,c,b;e.addEventListener('mouseup',function(e){b=d.imageCanvas.relMouseCoords(e);c=a.mousePositionToSky(b);if(c){if(a.mouseIsDown){if(!Ext.Array.equals(a.mouseInitialPosition,a.mouseLastPosition)){a.fireEvent('onpanend',a.getRaDec(),a)}else {a.fireEvent('onclick',a.mouseLastPosition,a)}}a.mouseIsDown=!1;a.mouseInitialPosition=[];a.mouseLastPosition=[]}})},mousePositionToSky:function(e){var g=this,f=g.getAladin(),a=f.view,d,b,c=[];d=AladinUtils.viewToXy(e.x,e.y,a.width,a.height,a.largestDim,a.zoomFactor);try{b=a.projection.unproject(d.x,d.y)}catch(h){return}if(a.cooFrame==CooFrameEnum.GAL){c=CooConversion.GalacticToJ2000([b.ra,b.dec])}else {c=[parseFloat(b.ra.toFixed(5)),parseFloat(b.dec.toFixed(5))]}return c},skyToString:function(a){if(a&&a[0]&&a[1]){return String(a[0].toFixed(5)+', '+a[1].toFixed(5))}},updateLocation:function(e,d){var a=this,c,b;c=a.skyToString(e);b=a.skyToString(d);a.setLocation(c,b)},onClickBtnMap:function(){var a=this,c=a.getViewModel(),b=c.get('release');if(a.windowMapSelection==null){a.windowMapSelection=Ext.create('aladin.maps.MapSelectionWindow',{width:182,height:237,x:45,y:55,resizable:!1,aladin:a})}a.windowMapSelection.setRelease(b);if(a.windowMapSelection.isHidden()){a.windowMapSelection.show()}else {a.windowMapSelection.hide()}}},0,0,0,0,0,0,[aladin,'Events'],0);Ext.cmd.derive('aladin.model.Image',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'img_url',type:'string'},{name:'product',type:'int'}]},0,0,0,0,0,0,[aladin.model,'Image'],0);Ext.cmd.derive('aladin.store.Images',common.store.MyStore,{model:'aladin.model.Image',autoLoad:!1,pageSize:0,remoteFilter:!0,proxy:{type:'django',url:'/dri/api/aladin/image/'}},0,0,0,0,['store.aladin_images'],0,[aladin.store,'Images'],0);Ext.cmd.derive('aladin.maps.MapSelectionController',Ext.app.ViewController,{listen:{component:{'aladin-maps-mapselectionwindow':{changerelease:'onChangeRelease'}}},onChangeRelease:function(k){var a=this,h=a.getViewModel(),g=h.getView(),c=h.getStore('maps_store'),f=a.lookup('cmbType'),e=a.lookup('cmbClass'),b=f.getStore(),i=e.getStore(),d=a.lookup('cmbFilter'),j=d.getStore();g.setLoading(!0);c.addFilter([{property:'release_id',value:k},{property:'with_image',value:!0}]);c.load({callback:function(){f.reset();b.removeAll();e.reset();i.removeAll();d.reset();j.removeAll();c.each(function(a){if(b.findRecord('pgr_group',a.get('pgr_group'))==null){b.add(a)}},this);g.setLoading(!1)}})},onSelectMapType:function(h){var b=this,i=b.getViewModel(),f=h.selection,g=i.getStore('maps_store'),d=b.lookup('cmbClass'),a=d.getStore(),c=b.lookup('cmbFilter'),e=c.getStore();d.reset();a.removeAll();c.reset();e.removeAll();g.each(function(b){if(b.get('pgr_group')==f.get('pgr_group')&&a.findRecord('prd_class',b.get('prd_class'))==null){a.add(b)}},this)},onSelectMapClass:function(f){var d=this,g=d.getViewModel(),c=f.selection,e=g.getStore('maps_store'),b=d.lookup('cmbFilter'),a=b.getStore();b.reset();a.removeAll();e.each(function(b){if(b.get('pgr_group')==c.get('pgr_group')&&b.get('prd_class')==c.get('prd_class')){a.add(b)}},this)},onSelectMapFilter:function(g){var d=this,c=d.getViewModel(),f=c.getView(),e=f.getAladin(),b=g.selection,a=c.getStore('aladin_images_store');a.addFilter([{property:'product',value:b.get('id')}]);a.load({callback:function(){if(a.getCount()!=1){Ext.MessageBox.alert('Warning',a.getCount().toString()+' images found for same map!')}else {aladin_last_nonmap_survey=c.get('aladin_last_nonmap_survey');if(aladin_last_nonmap_survey==null){c.set('aladin_last_nonmap_survey',e.getImageSurvey())}var f=a.getAt(0).get('img_url');survey={'id':'map_'+b.get('id').toString(),'url':f,'name':b.get('pcl_display_name'),'filter':b.get('prd_filter'),'maxOrder':3,'frame':'equatorial','options':{'imgFormat':'png'}};e.readProperties(f,function(a){survey['maxOrder']=a['maxOrder'];d.setMapSurvey(survey)},function(a){console.log('aladin.readProperties() error: %o',a);d.setMapSurvey(survey)})}}})},setMapSurvey:function(c){var e=this,a=e.getViewModel(),d=a.getView(),b=d.getAladin();mapSurvey=b.createImageSurvey(c);b.setImageSurvey(mapSurvey);a.set('aladin_last_map_survey',mapSurvey);a.set('map_selected',!0)},onDisplayOnOff:function(f){var e=this,a=e.getViewModel(),d=a.getView(),c=d.getAladin(),b=null;if(a.get('map_selected')){b=a.get('aladin_last_map_survey')}else {b=a.get('aladin_last_nonmap_survey')}c.setImageSurvey(b)}},0,0,0,0,['controller.mapselection'],0,[aladin.maps,'MapSelectionController'],0);Ext.cmd.derive('aladin.maps.MapSelectionWindow',Ext.window.Window,{controller:'mapselection',viewModel:'mapselection',config:{aladin:null},initComponent:function(){var a=this,b=a.getViewModel();Ext.apply(this,{title:'Map viewer',closeAction:'hide',bodyPadding:5,items:[{xtype:'combobox',reference:'cmbType',fieldLabel:'Map Type:',labelAlign:'top',emptyText:'',displayField:'pgr_display_name',valueField:'pgr_group',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapType'},editable:!1,queryMode:'local'},{xtype:'combobox',reference:'cmbClass',fieldLabel:'Map Class:',labelAlign:'top',emptyText:'',displayField:'pcl_display_name',valueField:'prd_class',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapClass'},editable:!1,queryMode:'local'},{xtype:'combobox',reference:'cmbFilter',fieldLabel:'Filter:',labelAlign:'top',emptyText:'',displayField:'prd_filter',valueField:'id',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapFilter'},editable:!1,queryMode:'local'},{xtype:'checkbox',reference:'chkOnOff',boxLabel:'Display Map',handler:'onDisplayOnOff',bind:{disabled:'{!aladin_switchable}',value:'{map_selected}'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setRelease:function(a){var b=this,c=b.getViewModel();if(a!=c.get('release')){c.set('release',a);b.fireEvent('changerelease',a)}}},0,['aladin-maps-mapselectionwindow'],['component','box','container','panel','window','aladin-maps-mapselectionwindow'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'aladin-maps-mapselectionwindow':!0},['widget.aladin-maps-mapselectionwindow'],0,[aladin.maps,'MapSelectionWindow'],0);Ext.cmd.derive('aladin.Interfaces',Ext.Base,{windowInfo:null,windowMapSelection:null,enableDisableInfo:function(d,c){var b=this,a=b.windowInfo;if(!a){a=b.createWindowInfo()}a.setVisible(c)},createWindowInfo:function(){var b=this,a;a=Ext.create('Ext.Component',{width:280,height:100,x:5,y:10,renderTo:b.body,header:!1,resizable:!1,constrain:!0,cls:'aladin-location-info',style:{position:'absolute',zIndex:29},tpl:['
    {image_survey}','
    {tilename}','
    RA, Dec (deg): {location}
    Mouse RA, Dec (deg): {mlocation}
    ']});b.windowInfo=a;return a},getInfoData:function(){var g=this,a=g.getViewModel(),e=a.get('tile'),f=a.get('tag'),k=a.get('release_name'),d,b,c='',j='',i='',h='';if(f){h=k;i=f.get('tag_display_name')}if(e){j=e.get('tli_tilename')}b=g.getImageSurvey();if(b&&b.id!='empty_survey'){c=b.name}d={image_survey:c,location:a.get('location'),mlocation:a.get('mlocation'),release:h,tag:i,tilename:j};return d},updateInfoData:function(){var a=this,c=a.windowInfo,b=a.getInfoData();if(a.windowInfo){c.setData(b)}},makeToolbar:function(){var c=this,a=c.getToolbarPosition(),b=!1;if(a==='left'||a==='right'){b=!0}return Ext.create('Ext.toolbar.Toolbar',{vertical:b,reference:'aladinToolbar'})},makeToolbarButtons:function(){var a=this,c,b=[],e=a.getToolbarPosition(),f=!1;if(e==='left'||e==='right'){f=!0}if(a.getEnableShift()){b.push({xtype:'button',tooltip:'Switch between Aladdin / Visiomatic.',iconCls:'x-fa fa-exchange',scope:a,handler:a.onShift,bind:{disabled:'{!tile}'}})}if(a.getEnableLayersControl()){b.push({xtype:'button',scope:a,iconCls:'x-fa fa-picture-o',tooltip:'Image Layer',menu:a.createImageLayersMenuItems(),menuAlign:'tr',arrowVisible:!1,itemId:'BtnImageLayers'})}if(a.getShowFilters()){var d=Ext.create('common.BandFilter',{filters:['g','r','i','z','Y','irg'],defaultFilter:'irg',vertical:f,listeners:{scope:a,'onfilter':a.onFilter}});a.setBandFilter(d);b.push(d)}if(a.getEnableViewMenu()){b.push(a.createViewMenu())}if(a.getEnableMaps()){b.push({xtype:'button',tooltip:'Map Viewer',iconCls:'x-fa fa-th',scope:a,handler:a.onClickBtnMap})}if(a.getEnableGoto()){b.push({iconCls:'x-fa fa-search',tooltip:'Go To position. 356.0085, 0.5168 or 23 44 2.040 +00 31 0.48',menuAlign:'tr',arrowVisible:!1,menu:[{xtype:'textfield',emptyText:'RA (deg), Dec (deg)',triggers:{'goto':{cls:'x-form-search-trigger',scope:this,handler:a.submitGoToPosition,tooltip:'Go To position. 356.0085, 0.5168 or 23 44 2.040 +00 31 0.48'}},listeners:{scope:this,specialkey:function(b,a){if(a.getKey()==a.ENTER){this.submitGoToPosition(b)}}}}]})}if(a.getEnableExportPng()){if(Ext.firefoxVersion>0){b.push({xtype:'button',tooltip:'Snapshot',iconCls:'x-fa fa-camera',scope:a,handler:a.exportAsPng})}}c=a.getAuxTools();if(c.length>0){Ext.each(c,function(a){b.push(a)})}return b},createViewMenu:function(){var c=this,b,a;a=c.createViewMenuItems();if(a.length>0){b=Ext.create('Ext.button.Button',{iconCls:'x-fa fa-cog',tooltip:'Change view settings',itemId:'ViewMenu',menu:a,menuAlign:'tr',arrowVisible:!1})}return b},createViewMenuItems:function(){var a=this,b=[];b.push({xtype:'menucheckitem',text:'Tiles Grid',itemId:'TileGridMenu',menu:[],menuAlign:'tr',checkHandler:a.onCheckTileGridMenu,disabled:!0,checked:a.getTilesGridVisible()});b.push('-');if(a.getEnableColorMap()){b.push(a.createColorMapMenu())}b.push('-');if(a.getEnableFootprint()){var c=a.getHideFootprint();b.push({xtype:'menucheckitem',itemId:'DesFootprint',text:'Des Footprint',checked:!c,scope:a,checkHandler:a.showDesFootprint})}if(a.getEnableReticle()){b.push({xtype:'menucheckitem',text:'Reticle',checked:!0,scope:a,checkHandler:a.showReticle})}if(a.getEnableHealpixGrid()){b.push({xtype:'menucheckitem',text:'Healpix Grid',scope:a,checkHandler:a.showHealpixGrid})}if(a.getEnableHealpixGrid()){b.push({xtype:'menucheckitem',text:'Info',scope:a,checkHandler:a.enableDisableInfo,checked:a.getInfoEnabled()})}return b},createTileGridMenu:function(){var b=this,d=b.down('#ViewMenu'),c=b.createTileGridMenuItems(),a=b.down('#TileGridMenu');if(!a){a={text:'Tiles Grid',itemId:'TileGridMenu',menu:c};d.getMenu().add(a)}else {a.getMenu().removeAll();a.getMenu().add(c);a.enable()}},createTileGridMenuItems:function(){var a=this,c=a.getStoreTags(),b=[];if(c.count()>0){c.each(function(c){b.push({xtype:'menucheckitem',text:c.get('tag_display_name'),tag:c.get('id'),scope:a,checkHandler:a.onCheckTileGrid})},this)}return b},createColorMapMenu:function(){var c=this,b,a;a=c.createColorMapMenuItems();b={text:'Color Map',tooltip:'Change Color Map',reference:'BtnColorMap',itemId:'BtnColorMap',menu:a,menuAlign:'tr',arrowVisible:!1};return b},createColorMapMenuItems:function(){var a=this,c=a.getColorMaps(),b=[];for(var d in c){b.push({xtype:'menucheckitem',text:c[d],group:'colormaps',mapName:c[d],scope:a,checkHandler:a.changeColorMap})}b.push('-');b.push({text:'Reverse',scope:a,handler:a.reverseColor});return b},updateColorMapMenu:function(){var a=this,d=a.down('#BtnColorMap'),b,c;b=Ext.clone(ColorMap.MAPS_NAMES);a.setColorMaps(b);c=a.createColorMapMenuItems();d.setMenu(c)},createImageLayersMenuItems:function(){var a=this,f=a.getExternalSurveys(),b=a.getSurveys(),c=[],d,g;if(b!=null&&b.length>0){for(var e in b){desSurvey=b[e];if(desSurvey.id!='empty_survey'){c.push({xtype:'menucheckitem',text:desSurvey['name'],group:'imageSurveys',survey:desSurvey,scope:a,checked:!0,checkHandler:a.selectExternalSurvey})}}c.push('-')}for(var e in f){d=f[e];c.push({xtype:'menucheckitem',text:d['name'],group:'imageSurveys',survey:d,scope:a,checkHandler:a.selectExternalSurvey})}return c},updateImageLayersMenuItems:function(){var c=this,b=c.down('#BtnImageLayers'),a;if(b){a=c.createImageLayersMenuItems();b.setMenu(a)}}},0,0,0,0,0,0,[aladin,'Interfaces'],0);Ext.cmd.derive('aladin.Aladin',Ext.panel.Panel,{layout:'fit',libA:null,colorsDefault:['#A0F65A','#00BFFF','#FF0000','#FFFF00','#FF7F00','#7D26CD','#FF1493'],colorsAvailable:[],config:{aladinId:null,cmpAladin:null,aladin:null,aladinReady:!1,hipsDir:'/static/stripeHiPS',aladinOptions:{fov:180,target:'02 23 11.851 -09 40 21.59',cooFrame:'J2000',survey:'empty_survey',showReticle:!0,showZoomControl:!0,showFullscreenControl:!0,showLayersControl:!1,showGotoControl:!1,showShareControl:!1,showCatalog:!0,showFrame:!1,showCooGrid:!1,fullScreen:!1,reticleColor:'rgb(178, 50, 178)',reticleSize:28,log:!0,allowFullZoomout:!0},aladinWidth:300,aladinHeight:300,autoSize:!0,storeSurveys:null,storeMaps:null,surveys:[],maps:[],colorMaps:[],emptySurvey:{'id':'empty_survey','url':'','name':'','filter':'','maxOrder':11,'frame':'equatorial','options':{imgFormat:'png'}},enableLayersControl:!0,enableToolbar:!0,showFilters:!1,bandFilter:null,availableFilters:[],enableViewMenu:!0,enableExportPng:!0,enableReticle:!0,enableHealpixGrid:!0,enableColorMap:!0,enableFootprint:!0,hideFootprint:!0,enableGoto:!1,gotoSetPosition:!0,auxTools:[],storeTags:null,storeTiles:null,tilesGridVisible:!1,enableInfo:!0,infoEnabled:!0,location:'',mlocation:'',initialFov:null,enableMaps:!0,enableShift:!1,toolbarPosition:'left',externalSurveys:[{'id':'P/2MASS/color','url':'http://alasky.u-strasbg.fr/2MASS/Color','name':'2MASS colored','maxOrder':9,'frame':'equatorial','format':'jpeg'},{'id':'P/DSS2/color','url':'http://alasky.u-strasbg.fr/DSS/DSSColor','name':'DSS colored','maxOrder':9,'frame':'equatorial','format':'jpeg'},{'id':'P/DSS2/red','url':'http://alasky.u-strasbg.fr/DSS/DSS2Merged','name':'DSS2 Red (F+R)','maxOrder':9,'frame':'equatorial','format':'jpeg fits'},{'id':'P/Fermi/color','url':'http://alasky.u-strasbg.fr/Fermi/Color','name':'Fermi color','maxOrder':3,'frame':'equatorial','format':'jpeg'},{'id':'P/Finkbeiner','url':'http://alasky.u-strasbg.fr/FinkbeinerHalpha','maxOrder':3,'frame':'galactic','format':'jpeg fits','name':'Halpha'},{'id':'P/GALEXGR6/AIS/color','url':'http://alasky.u-strasbg.fr/GALEX/GR6-02-Color','name':'GALEX Allsky Imaging Survey colored','maxOrder':8,'frame':'equatorial','format':'jpeg'},{'id':'P/IRIS/color','url':'http://alasky.u-strasbg.fr/IRISColor','name':'IRIS colored','maxOrder':3,'frame':'galactic','format':'jpeg'},{'id':'P/Mellinger/color','url':'http://alasky.u-strasbg.fr/MellingerRGB','name':'Mellinger colored','maxOrder':4,'frame':'galactic','format':'jpeg'},{'id':'P/SDSS9/color','url':'http://alasky.u-strasbg.fr/SDSS/DR9/color','name':'SDSS9 colored','maxOrder':10,'frame':'equatorial','format':'jpeg'},{'id':'P/SPITZER/color','url':'http://alasky.u-strasbg.fr/SpitzerI1I2I4color','name':'IRAC color I1,I2,I4 - (GLIMPSE, SAGE, SAGE-SMC, SINGS)','maxOrder':9,'frame':'galactic','format':'jpeg'},{'id':'P/VTSS/Ha','url':'http://alasky.u-strasbg.fr/VTSS/Ha','maxOrder':3,'frame':'galactic','format':'png jpeg fits','name':'VTSS-Ha'},{'id':'P/XMM/EPIC','url':'http://saada.u-strasbg.fr/xmmallsky','name':'XMM-Newton stacked EPIC images (no phot. normalization)','maxOrder':7,'frame':'equatorial','format':'png fits'},{'id':'P/XMM/PN/color','url':'http://saada.unistra.fr/xmmpnsky','name':'XMM PN colored','maxOrder':7,'frame':'equatorial','format':'png jpeg'},{'id':'P/allWISE/color','url':'http://alasky.u-strasbg.fr/AllWISE/RGB-W4-W2-W1/','name':'AllWISE color','maxOrder':8,'frame':'equatorial','format':'jpeg'},{'id':'P/GLIMPSE360','url':'http://www.spitzer.caltech.edu/glimpse360/aladin/data','name':'GLIMPSE360','maxOrder':9,'frame':'equatorial','format':'jpeg'}]},isFirstSurvey:!0,viewModel:{data:{location:'',mlocation:'',tile:null,tag:null,release:null,release_name:''}},session:!0,preventDbClickFire:!1,runner:null,initComponent:function(){var a=this,c,b,d;if(window.A){a.libA=window.A}else {console.log('window.A ainda nao esta carregada')}a.setAladinId(a.getId()+'-placeholder');c=Ext.create('Ext.Component',{id:a.getAladinId(),width:a.getAladinWidth(),height:a.getAladinHeight()});if(a.getEnableToolbar()){b=a.leftToolBar=a.makeToolbar();d=a.makeToolbarButtons();b.add(d);if(a.getToolbarPosition()==='left'){a.lbar=b}else {if(a.getToolbarPosition()==='top'){a.tbar=b}}}Ext.apply(this,{items:[c],listeners:{scope:a,afterrender:'onAfterrender'}});a.runner=Ext.create('Ext.util.TaskRunner',{});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},onAfterrender:function(){var a=this,d='#'+a.getAladinId(),e=a.libA,c=a.getAladinOptions(),b,f;b=e.aladin(d,c);b.view.setUnknownSurveyIfNeeded=function(){};b._setImageSurvey=b.setImageSurvey;b.setImageSurvey=function(d,c){return b._setImageSurvey(d,function(){a.onChangeImageSurvey();if(c){c()}})};a.setAladin(b);a.createImageSurveys();if(a.getEnableColorMap()){a.updateColorMapMenu()}if(a.getInfoEnabled()){a.enableDisableInfo(null,a.getInfoEnabled())}a.addCustomEvents();a.setAladinReady(!0);a.fireEvent('aladinready',a)},onChangeImageSurvey:function(){this.addCustomEvents()},aladinIsReady:function(){var a=this;return a.getAladinReady()},getRaDec:function(){var b=this,a=b.getAladin();return a.getRaDec()},getEmptySurvey:function(){return Ext.clone(this.emptySurvey)},readProperties:function(c,a,b){ProgressiveCat.readProperties(c,a,b)},onResize:function(){var a=this,b=a.getAladin();if(a.getAutoSize()){b.view.fixLayoutDimensions()}},setSurveys:function(a){this.surveys=null;this.surveys=a;if(this.getAladin()&&a.length>0){this.removeLayers();this.createImageSurveys()}},createImageSurvey:function(e){var c=this,f=c.getEmptySurvey(),d=c.getAladin(),a,b,g;a=Ext.Object.merge(f,e);b=d.createImageSurvey(String(a.id),a.name,a.url,a.cooFrame,a.maxOrder,a.options);return b},createImageSurveys:function(){var a=this,b=a.getSurveys(),d=a.getFilter(),f=a.getEmptySurvey(),e,c;if(b.length===0){b.push(f)}for(var g in b){e=b[g];a.createImageSurvey(e)}if(d){c=a.getSurveyByFilter(d)}else {c=b[0]}a.updateImageLayersMenuItems();a.setImageSurvey(c)},getSurveyByFilter:function(c){var d=this,b=d.getSurveys(),a;for(var e in b){a=b[e];if(a.filter.toLowerCase()==c.toLowerCase()){return a}}},getImageSurvey:function(){var b=this,a=b.getAladin();if(a){return a.getBaseImageLayer()}else {return null}},setImageSurvey:function(b){var a=this,c=a.getAladin(),d=a.getEmptySurvey();if(b){c.setImageSurvey(b.id);if(a.isFirstSurvey){if(b.target!==''){a.goToPosition(b.target)}if(a.getInitialFov()){a.setFov(a.getInitialFov())}else {if(b.fov){a.setFov(b.fov)}}a.isFirstSurvey=!1}a.showDesFootprint();a.addCustomEvents();a.fireEvent('changeimage',b,a)}else {c.setImageSurvey(d.id)}},setStoreSurveys:function(a){var b=this;if(a){a.on({scope:this,load:'onStoreSurveysLoad',beforeload:'onStoreSurveysBeforeLoad'});b.storeSurveys=a}},onStoreSurveysBeforeLoad:function(a){var b=this;b.setLoading({store:a})},onStoreSurveysLoad:function(d){var a=this,g=a.getAladin(),f=a.getEmptySurvey(),c=[],b=[],e;if(d.count()===0){console.log('NAO TEM SURVEY');a.setImageSurvey(f)}d.each(function(a){e={id:String(a.get('id')),url:a.get('srv_url'),name:a.get('srv_display_name'),filter:a.get('filter'),target:a.get('srv_target'),fov:a.get('srv_fov')};c.push(e);b.push(a.get('filter'))});a.setSurveys(c);a.setAvailableFilters(b)},setLocation:function(c,b){var a=this,d=a.getViewModel();a.location=c;a.mlocation=b;d.set('location',c);d.set('mlocation',b);if(a.getAladin()){a.onChangeLocation()}},onChangeLocation:function(a){var b=this;if(!a){a=b.getRaDec()}b.identifyTile(a);b.updateInfoData()},setAvailableFilters:function(a){var b=this,c=b.getBandFilter();if(a.length>0){if(b.getShowFilters()){c.setAvailableFilters(a)}}},setStoreTags:function(a){var b=this;if(a){b.storeTags=a;a.on('load','onLoadStoreTags',this)}},onLoadStoreTags:function(b){var a=this;if(a.getEnableViewMenu()){if(b.count()>0){a.createTileGridMenu()}}},setStoreTiles:function(a){var b=this;b.storeTiles=a;a.on('beforeload','onBeforeloadStoreTiles',this);a.on('load','onLoadStoreTiles',this)},onBeforeloadStoreTiles:function(){var a=this;a.setLoading(!0)},onLoadStoreTiles:function(){var a=this,b;a.setLoading(!1);if(a.getEnableViewMenu()){b=a.down('#TileGridMenu');if(b.checked){a.onCheckTileGridMenu(b,b.checked)}}a.identifyTile()},getTileByPosition:function(c){var e=this,b=e.getStoreTiles(),a=c,d;if(!c){a=e.getRaDec()}if(b&&b.count()){d=b.filterByRaDec(a[0],a[1])}return d},identifyTile:function(f){var b=this,c=b.getViewModel(),e=c.get('tileid'),a,d;a=b.getTileByPosition(f);if(a){if(a.get('id')!==e){d=b.getStoreTags().getById(a.get('tag'));c.set('release_name',a.get('release_display_name'));c.set('tile',a);c.set('tag',d);b.fireEvent('changetile',a,d,b)}}else {c.set('tile',null);c.set('tag',null);b.fireEvent('changetile',a,d,b)}},onFilter:function(b){var a=this,c;c=a.getSurveyByFilter(b);a.setImageSurvey(c);a.fireEvent('changefilter',b,a)},getFilter:function(){var a=this,b=a.getBandFilter();if(a.getShowFilters()){return b.getFilter()}},setFilter:function(b){var c=this,a=c.getBandFilter();a.setFilter(b)},changeMapSurvey:function(a){var c=this,d=c.getAladin(),b;b={id:String(a.map_id),url:a.map_url,name:a.map_name,filter:a.map_filter,maxOrder:3};mapSurvey=c.createImageSurvey(b);d.setImageSurvey(mapSurvey.id)},selectExternalSurvey:function(b){var d=this,c=d.getAladin(),a=b.survey;c.setImageSurvey(a.id)},exportAsPng:function(){var b=this,a=b.getAladin();a.exportAsPNG()},showReticle:function(d,b){var c=this,a=c.getAladin();a.showReticle(b)},showHealpixGrid:function(d,b){var c=this,a=c.getAladin();a.showHealpixGrid(b)},showDesFootprint:function(a,b){var c=this;if(!a){a=c.down('#DesFootprint');b=a.checked}c.plotDesFootprint(b)},reverseColor:function(){var b=this,a=b.getAladin();a.getBaseImageLayer().getColorMap().reverse()},changeColorMap:function(b){var c=this,a=c.getAladin();a.getBaseImageLayer().getColorMap().update(b.mapName)},plotDesFootprint:function(e){var d=this,c=d.getAladin();des=d.getDesFootprintCoordinates();if(c.view.overlays[0]!=undefined){overlays=c.view.overlays;plotDes=!1;for(var b=overlays.length-1;b>=0;b--){if(overlays[b].name=='des'){plotDes=!0;if(e){overlays[b].show()}else {overlays[b].hide()}}}if(plotDes==!1){var a=A.graphicOverlay({color:'#ee2345',lineWidth:2,name:'des'});c.addOverlay(a);a.add(A.polyline(des))}}else {var a=A.graphicOverlay({color:'#ee2345',lineWidth:2,name:'des'});c.addOverlay(a);a.add(A.polyline(des))}},onCheckTileGridMenu:function(b,a){var d=this,c=b.getMenu();c.items.each(function(c){c.setChecked(a)},d)},onCheckTileGrid:function(b,a){this.showTileGrid(b.tag,a)},showTileGrid:function(c,g){var a=this,e=a.getStoreTiles(),f=a.getStoreTags(),d=f.getById(c),b;if(g){b=e.query('tag',c);if(b.count()>0){a.plotFootprint(d,b)}}else {a.setVisibleFootprint(d.get('tag_name'),!1)}},plotFootprint:function(e,h){var c=this,f=c.getAladin(),b=c.libA,a,d,g;d=b.catalog({name:'Recent tiles',sourceSize:14,color:'#e67e22'});a=c.getFootprintByName(e.get('tag_name'));if(a){a.show()}else {a=b.graphicOverlay({color:c.getColor(),lineWidth:1,name:String(e.get('tag_name'))});f.addOverlay(a);h.each(function(c){var f=[[c.get('raul'),c.get('decul')],[c.get('rall'),c.get('decll')],[c.get('ralr'),c.get('declr')],[c.get('raur'),c.get('decur')]];a.addFootprints(b.polygon(f));if(c.get('is_new')){g=!0;d.addSources([b.marker(c.get('tli_ra'),c.get('tli_dec'),{popupTitle:'Tile Recently Added',popupDesc:'Creation date: '+c.get('date')})])}},this);if(g&&!e.get('is_new')){f.addCatalog(d)}}},parsePosition:function(a){var b,d,c;if(a){if(a.indexOf(',')!=-1){a=a.split(',');b=parseFloat(a[0].trim());d=parseFloat(a[1].trim());if(b<0){b=b+360}c=[b,d];a=c.join(', ')}else {a=c}return a}},goToPosition:function(b){var c=this,d=c.getAladin(),a;if(b){a=c.parsePosition(b);d.gotoObject(a)}},setFov:function(b){var d=this,c=d.getAladin(),a=parseFloat(b);if(a){c.setFoV(a)}},getFov:function(){var b=this,a=b.getAladin();return a.getFov()[0]},getFootprintByName:function(d){var e=this,c=e.getAladin(),a=c.view.overlays,b=null;if(a.length>0){a.forEach(function(a){if(a.name==d){b=a}})}return b},setVisibleFootprint:function(c,b){var d=this,a;if(b=='undefined'){b=!0}a=d.getFootprintByName(c);if(a){if(b){a.show()}else {a.hide()}}},removeLayers:function(){var b=this,a=b.getAladin();a.removeLayers()},getColor:function(){var a=this,c=a.colorsDefault,b;if(a.colorsAvailable.length===0){a.colorsAvailable=Ext.clone(c)}b=a.colorsAvailable.shift();return b},onShift:function(){this.fireEvent('shift',this.getRaDec(),this)},onShowLayerBox:function(){var b=this,a=b.getViewModel().getView().getAladin();a.hideBoxes();a.showLayerBox();return !1},overlayDrawCircle:function(b,a,c){a.beginPath();a.arc(b.x,b.y,b.data['size']*2,0,2*Math.PI,!1);a.closePath();a.strokeStyle='#c38';a.lineWidth=3;a.globalAlpha=0.7,a.stroke();var d=Math.max(c['fov'][0],c['fov'][1]);return},getDesFootprintCoordinates:function(){var a=[[23,-7],[22,-7],[21,-7],[20,-7],[19,-7],[18,-7],[17,-7],[16,-7],[15,-7],[14,-7],[13,-7],[12,-7],[11,-7],[10,-7],[9,-7],[8,-7],[7,-7],[6,-7],[5,-7],[4,-7],[3,-7],[2,-7],[1,-7],[0,-7],[0,-6],[0,-5],[0,-4],[0,-3],[0,-2],[-1,-2],[-2,-2],[-3,-2],[-4,-2],[-5,-2],[-6,-2],[-7,-2],[-8,-2],[-9,-2],[-10,-2],[-11,-2],[-12,-2],[-13,-2],[-14,-2],[-15,-2],[-16,-2],[-17,-2],[-18,-2],[-19,-2],[-20,-2],[-21,-2],[-22,-2],[-23,-2],[-24,-2],[-25,-2],[-26,-2],[-27,-2],[-28,-2],[-29,-2],[-30,-2],[-31,-2],[-32,-2],[-33,-2],[-34,-2],[-35,-2],[-36,-2],[-37,-2],[-38,-2],[-39,-2],[-40,-2],[-41,-2],[-42,-2],[-43,-2],[-43,-1],[-43,0],[-43,1],[-43,2],[-42,2],[-41,2],[-40,2],[-39,2],[-38,2],[-37,2],[-36,2],[-35,2],[-34,2],[-33,2],[-32,2],[-31,2],[-30,2],[-29,2],[-28,2],[-27,2],[-26,2],[-25,2],[-24,2],[-23,2],[-22,2],[-21,2],[-20,2],[-19,2],[-18,2],[-17,2],[-16,2],[-15,2],[-14,2],[-13,2],[-12,2],[-11,2],[-10,2],[-9,2],[-8,2],[-7,2],[-6,2],[-5,2],[-4,2],[-3,2],[-2,2],[-1,2],[0,2],[0,2],[0,3],[0,4],[0,5],[1,5],[2,5],[3,5],[4,5],[5,5],[6,5],[7,5],[8,5],[9,5],[10,5],[11,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[21,5],[22,5],[23,5],[24,5],[25,5],[26,5],[27,5],[28,5],[29,5],[30,5],[31,5],[32,5],[33,5],[34,5],[35,5],[36,5],[37,5],[38,5],[39,5],[40,5],[41,5],[42,5],[43,5],[44,5],[45,5],[45,5],[45,4],[45,3],[45,2],[45,1],[45,0],[45,-1],[45,-2],[45,-3],[45,-4],[45,-5],[45,-6],[45,-7],[45,-8],[45,-9],[45.83584,-9.06842],[46.36744,-9.14567],[46.89697,-9.22888],[47.42429,-9.3181],[47.94928,-9.41337],[48.47183,-9.51474],[48.99181,-9.62226],[49.50912,-9.73598],[50.02364,-9.85594],[50.53529,-9.98221],[51.04396,-10.11482],[51.54955,-10.25382],[52.05199,-10.39926],[52.55118,-10.55119],[53.04706,-10.70965],[53.53954,-10.87467],[54.02856,-11.0463],[54.51405,-11.22457],[54.99596,-11.40952],[55.47423,-11.60118],[55.94881,-11.79957],[56.41965,-12.00471],[56.88672,-12.21663],[57.34998,-12.43534],[57.80939,-12.66086],[58.26493,-12.89318],[58.71657,-13.13232],[59.16429,-13.37827],[59.60807,-13.63102],[60.0479,-13.89057],[60.48377,-14.15689],[60.91568,-14.42997],[61.3436,-14.70979],[61.76755,-14.99631],[62.18753,-15.2895],[62.60354,-15.58931],[63.01557,-15.89572],[63.42365,-16.20866],[63.82778,-16.52808],[64.22797,-16.85393],[66,-18],[67,-18],[68,-18],[69,-18],[70,-18],[71,-18],[72,-18],[73,-18],[74,-18],[75,-18],[76,-18],[77,-18],[78,-18],[79,-18],[80,-18],[81,-18],[82,-18],[83,-18],[84,-18],[85,-18],[86,-18],[86.66667,-19],[87.33333,-20],[88,-21],[88.66667,-22],[89.41596,-23.1317],[89.68146,-24.3655],[89.95879,-25.59111],[90.24749,-26.80814],[90.54705,-28.01619],[90.8569,-29.21488],[91.17643,-30.40381],[91.50499,-31.58263],[91.84185,-32.75095],[92.18623,-33.90841],[92.53729,-35.05464],[92.89409,-36.18931],[93.25565,-37.31205],[93.62088,-38.42252],[93.98862,-39.5204],[94.35759,-40.60535],[94.72643,-41.67704],[95.09367,-42.73517],[95.45771,-43.77942],[95.81685,-44.80949],[96.16922,-45.82508],[96.51286,-46.8259],[96.84562,-47.81168],[97.16521,-48.78213],[97.46918,-49.73698],[97.75487,-50.67597],[98.01948,-51.59884],[98.25999,-52.50536],[98.47317,-53.39526],[98.65561,-54.26832],[98.80364,-55.1243],[98.91339,-55.96299],[98.98075,-56.78417],[99.00136,-57.58762],[98.97062,-58.37314],[98.88371,-59.14055],[98.73552,-59.88964],[98.52073,-60.62023],[98.23379,-61.33214],[98,-61.5],[97,-61.5],[96,-61.5],[95,-61.5],[94,-61.5],[93,-61.5],[92,-61.5],[91,-61.5],[90,-61.5],[89,-61.5],[88,-61.5],[87,-61.5],[86,-61.5],[85,-61.5],[84,-61.5],[83,-62],[78.66667,-63],[74.33333,-64],[69.1922,-65.62708],[68.293,-65.99135],[67.35218,-66.34555],[66.36917,-66.68914],[65.34355,-67.02152],[64.27503,-67.3421],[63.1635,-67.65026],[62.00905,-67.9454],[60.81197,-68.22686],[59.5728,-68.49402],[58.29235,-68],[56.97169,-68],[55.6122,-67],[54.21558,-66],[52.78381,-65.5],[51.31925,-65],[49.82454,-65],[48.30265,-65],[46.75683,-65],[45.19062,-65],[43.60779,-65],[42.0123,-65],[40.4083,-65],[38.8,-65],[37.1917,-65],[35.5877,-65],[33.99221,-65],[32.40938,-65],[30.84317,-65],[29.29735,-65],[27.77546,-65],[26.28075,-65],[24.81619,-65],[23.38442,-65],[21.9878,-65],[20.62831,-65],[19.30765,-65],[18.0272,-65],[16.78803,-65],[15.59095,-65],[14.4365,-65],[13.32497,-65],[12.25645,-65],[11.23083,-65],[10.24782,-65],[9.307,-65],[8.4078,-65],[7.54955,-65],[4,-65],[3,-65],[2,-65],[1,-65],[0,-65],[-1,-65],[-2,-65],[-3,-65],[-4,-65],[-5,-65],[-6,-65],[-7,-65],[-8,-65],[-9,-65],[-10,-65],[-11,-65],[-12,-65],[-13,-65],[-14,-65],[-15,-65],[-16,-65],[-17,-65],[-18,-65],[-19,-65],[-20,-65],[-21,-65],[-22,-65],[-23,-65],[-24,-65],[-25,-65],[-26,-65],[-27,-65],[-28,-65],[-29,-65],[-30,-65],[-31,-65],[-32,-65],[-33,-65],[-34,-65],[-35,-65],[-36,-65],[-37,-65],[-38,-65],[-39,-65],[-40,-65],[-41,-65],[-42,-65],[-43,-65],[-44,-65],[-45,-65],[-46,-65],[-47,-65],[-48,-65],[-49,-65],[-50,-65],[-51,-65],[-52,-65],[-53,-65],[-54,-65],[-55,-65],[-56,-65],[-57,-65],[-56.8,-64],[-56.6,-63],[-56.4,-62],[-56.2,-61],[-56,-60],[-60.9756,-58.52],[-60.7792,-55.2685],[-60.2796,-52.4931],[-59.9266,-50.9207],[-58.355,-50.4154],[-56.6089,-49.5636],[-54.9615,-48.7766],[-54.8,-48],[-54.7,-47],[-54.6,-46],[-54.5,-45],[-54.4,-44],[-54.3,-43],[-54.2,-42],[-54.1,-41],[-54,-40],[-53,-40],[-52,-40],[-51,-40],[-50,-40],[-49,-40],[-48,-40],[-47,-40],[-46,-40],[-45,-40],[-44,-40],[-43,-40],[-42,-40],[-41,-40],[-40,-40],[-39,-40],[-38,-40],[-37,-40],[-36,-40],[-35,-40],[-34,-40],[-33,-40],[-32,-40],[-31,-40],[-30,-40],[-29,-40],[-28,-40],[-27,-40],[-26,-40],[-25,-40],[-24,-40],[-23,-40],[-22,-40],[-21,-40],[-20,-40],[-19,-40],[-18,-40],[-17,-40],[-16,-40],[-15,-40],[-14,-40],[-13,-40],[-12,-40],[-11,-40],[-10,-40],[-9,-40],[-8,-40],[-7,-40],[-6,-40],[-5,-40],[-4,-40],[-3,-40],[-1.47219,-38.64048],[-1.27518,-38.12814],[-1.07231,-37.61674],[-0.86376,-37.1064],[-0.6497,-36.59723],[-0.43028,-36.08933],[-0.20564,-35.58282],[0.02406,-35.07782],[0.25871,-34.57444],[0.49818,-34.0728],[0.74235,-33.57301],[0.99113,-33.0752],[1.24441,-32.5795],[1.50209,-32.08601],[1.7641,-31.59488],[2.03036,-31.10621],[2.30079,-30.62015],[2.57532,-30.13681],[2.85391,-29.65632],[3.13648,-29.17881],[3.423,-28.70441],[3.71342,-28.23325],[4.0077,-27.76546],[4.30581,-27.30116],[4.60772,-26.84048],[4.9134,-26.38355],[5.22284,-25.93051],[5.53601,-25.48147],[5.8529,-25.03656],[6.17351,-24.59591],[6.49782,-24.15964],[6.82584,-23.72788],[7.15756,-23.30074],[7.49299,-22.87835],[7.83212,-22.46081],[8.17498,-22.04826],[8.52155,-21.6408],[8.87186,-21.23855],[9.22592,-20.8416],[9.58374,-20.45008],[9.94533,-20.06407],[10.3107,-19.68369],[10.67989,-19.30903],[11.05289,-18.94018],[11.42973,-18.57723],[11.81042,-18.22027],[12.19498,-17.86938],[12.58343,-17.52465],[12.97577,-17.18614],[13.37203,-16.85393],[13.77222,-16.52808],[14.17635,-16.20866],[14.58443,-15.89572],[14.99646,-15.58931],[15.41247,-15.2895],[15.83245,-14.99631],[16.2564,-14.70979],[16.68432,-14.42997],[17.11623,-14.15689],[17.5521,-13.89057],[17.99193,-13.63102],[18.43571,-13.37827],[18.88343,-13.13232],[19.33507,-12.89318],[19.79061,-12.66086],[20.25002,-12.43534],[20.71328,-12.21663],[21.18035,-12.00471],[21.65119,-11.79957],[22.12577,-11.60118],[22.60404,-11.40952],[23.08595,-11.22457],[23,-10],[23,-9],[23,-8],[23,-7]];return a}},0,['aladin'],['component','box','container','panel','aladin'],{'component':!0,'box':!0,'container':!0,'panel':!0,'aladin':!0},['widget.aladin'],[['events',aladin.Events],['interface',aladin.Interfaces]],[aladin,'Aladin'],0);Ext.cmd.derive('aladin.maps.MapSelectionViewModel',Ext.app.ViewModel,{stores:{maps_store:{type:'maps',autoLoad:!1},aladin_images_store:{type:'aladin_images',autoLoad:!1}},data:{release:null,aladin_last_map_survey:null,aladin_last_nonmap_survey:null,map_selected:!1},formulas:{aladin_switchable:function(a){return a('aladin_last_nonmap_survey')!=null&&a('aladin_last_map_survey')!=null}}},0,0,0,0,['viewmodel.mapselection'],0,[aladin.maps,'MapSelectionViewModel'],0);Ext.cmd.derive('Ext.draw.ContainerBase',Ext.panel.Panel,{previewTitleText:'Chart Preview',previewAltText:'Chart preview',layout:'container',addElementListener:function(){var a=this,b=arguments;if(a.rendered){a.el.on.apply(a.el,b)}else {a.on('render',function(){a.el.on.apply(a.el,b)})}},removeElementListener:function(){var a=this,b=arguments;if(a.rendered){a.el.un.apply(a.el,b)}},afterRender:function(){Ext.panel.Panel.prototype.afterRender.apply(this,arguments);this.initAnimator()},getItems:function(){var a=this,b=a.items;if(!b||!b.isMixedCollection){a.initItems()}return a.items},onRender:function(){Ext.panel.Panel.prototype.onRender.apply(this,arguments);this.element=this.el;this.innerElement=this.body},setItems:function(a){this.items=a;return a},setSurfaceSize:function(b,a){this.resizeHandler({width:b,height:a});this.renderFrame()},onResize:function(b,a,d,c){var e=this;Ext.panel.Panel.prototype.onResize.call(this,b,a,d,c);e.setBodySize({width:b,height:a})},preview:function(){var a=this.getImage();new Ext.window.Window({title:this.previewTitleText,closeable:!0,renderTo:Ext.getBody(),autoShow:!0,maximizeable:!0,maximized:!0,border:!0,layout:{type:'hbox',pack:'center',align:'middle'},items:{xtype:'container',items:{xtype:'image',mode:'img',cls:'x-chart-image',alt:this.previewAltText,src:a.data,listeners:{afterrender:function(){var b=this,c=b.imgEl.dom,d=a.type==='svg'?1:window['devicePixelRatio']||1,e;if(!c.naturalWidth||!c.naturalHeight){c.onload=function(){var e=c.naturalWidth,a=c.naturalHeight;b.setWidth(Math.floor(e/d));b.setHeight(Math.floor(a/d))}}else {e=b.getSize();b.setWidth(Math.floor(e.width/d));b.setHeight(Math.floor(e.height/d))}}}}}})},privates:{getTargetEl:function(){return this.innerElement},reattachToBody:function(){var a=this;if(a.pendingDetachSize){a.onBodyResize()}a.pendingDetachSize=!1;Ext.panel.Panel.prototype.reattachToBody.call(this)}}},0,0,['component','box','container','panel'],{'component':!0,'box':!0,'container':!0,'panel':!0},0,0,[Ext.draw,'ContainerBase'],0);Ext.cmd.derive('Ext.draw.SurfaceBase',Ext.Widget,{getOwnerBody:function(){return this.ownerCt.body},destroy:function(){var a=this;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}Ext.Widget.prototype.destroy.call(this)}},0,0,['widget'],{'widget':!0},0,0,[Ext.draw,'SurfaceBase'],0);Ext.cmd.derive('Ext.draw.Color',Ext.Base,{statics:{colorToHexRe:/(.*?)rgb\((\d+),\s*(\d+),\s*(\d+)\)/,rgbToHexRe:/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)/,rgbaToHexRe:/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([\.\d]+)\)/,hexRe:/\s*#([0-9a-fA-F][0-9a-fA-F]?)([0-9a-fA-F][0-9a-fA-F]?)([0-9a-fA-F][0-9a-fA-F]?)\s*/,NONE:'none',RGBA_NONE:'rgba(0, 0, 0, 0)'},isColor:!0,lightnessFactor:0.2,constructor:function(d,b,c,a){this.setRGB(d,b,c,a)},setRGB:function(e,c,d,b){var a=this;a.r=Math.min(255,Math.max(0,e));a.g=Math.min(255,Math.max(0,c));a.b=Math.min(255,Math.max(0,d));if(b===undefined){a.a=1}else {a.a=Math.min(1,Math.max(0,b))}},getGrayscale:function(){return this.r*0.3+this.g*0.59+this.b*0.11},getHSL:function(){var h=this,f=h.r/255,e=h.g/255,g=h.b/255,b=Math.max(f,e,g),d=Math.min(f,e,g),c=b-d,a,j=0,i=0.5*(b+d);if(d!==b){j=i<=0.5?c/(b+d):c/(2-b-d);if(f===b){a=60*(e-g)/c}else {if(e===b){a=120+60*(g-f)/c}else {a=240+60*(f-e)/c}}if(a<0){a+=360}if(a>=360){a-=360}}return [a,j,i]},getHSV:function(){var g=this,d=g.r/255,c=g.g/255,f=g.b/255,b=Math.max(d,c,f),i=Math.min(d,c,f),e=b-i,a,j=0,h=b;if(i!=b){j=h?e/h:0;if(d===b){a=60*(c-f)/e}else {if(c===b){a=60*(f-d)/e+120}else {a=60*(d-c)/e+240}}if(a<0){a+=360}if(a>=360){a-=360}}return [a,j,h]},setHSL:function(f,g,c){var d=this,h=Math.abs,b,e,a;f=(f%360+360)%360;g=g>1?1:g<0?0:g;c=c>1?1:c<0?0:c;if(g===0||f===null){c*=255;d.setRGB(c,c,c)}else {f/=60;b=g*(1-h(2*c-1));e=b*(1-h(f%2-1));a=c-b/2;a*=255;b*=255;e*=255;switch(Math.floor(f)){case 0:d.setRGB(b+a,e+a,a);break;case 1:d.setRGB(e+a,b+a,a);break;case 2:d.setRGB(a,b+a,e+a);break;case 3:d.setRGB(a,e+a,b+a);break;case 4:d.setRGB(e+a,a,b+a);break;case 5:d.setRGB(b+a,a,e+a);break;}}return d},setHSV:function(f,g,c){var d=this,b,e,a;f=(f%360+360)%360;g=g>1?1:g<0?0:g;c=c>1?1:c<0?0:c;if(g===0||f===null){c*=255;d.setRGB(c,c,c)}else {f/=60;b=c*g;e=b*(1-Math.abs(f%2-1));a=c-b;a*=255;b*=255;e*=255;switch(Math.floor(f)){case 0:d.setRGB(b+a,e+a,a);break;case 1:d.setRGB(e+a,b+a,a);break;case 2:d.setRGB(a,b+a,e+a);break;case 3:d.setRGB(a,e+a,b+a);break;case 4:d.setRGB(e+a,a,b+a);break;case 5:d.setRGB(b+a,a,e+a);break;}}return d},createLighter:function(b){if(!b&&b!==0){b=this.lightnessFactor}var a=this.getHSL();a[2]=Ext.Number.constrain(a[2]+b,0,1);return Ext.draw.Color.fromHSL(a[0],a[1],a[2])},createDarker:function(a){if(!a&&a!==0){a=this.lightnessFactor}return this.createLighter(-a)},toString:function(){var a=this,b=Math.round;if(a.a===1){var e=b(a.r).toString(16),d=b(a.g).toString(16),c=b(a.b).toString(16);e=e.length===1?'0'+e:e;d=d.length===1?'0'+d:d;c=c.length===1?'0'+c:c;return ['#',e,d,c].join('')}else {return 'rgba('+[b(a.r),b(a.g),b(a.b),a.a===0?0:a.a.toFixed(15)].join(', ')+')'}},toHex:function(a){if(Ext.isArray(a)){a=a[0]}if(!Ext.isString(a)){return ''}if(a.substr(0,1)==='#'){return a}var b=Ext.draw.Color.colorToHexRe.exec(a);if(Ext.isArray(b)){var e=parseInt(b[2],10),c=parseInt(b[3],10),d=parseInt(b[4],10),f=d|c<<8|e<<16;return b[1]+'#'+('000000'+f.toString(16)).slice(-6)}else {return ''}},setFromString:function(b){var a,c,e,d,g=1,f=parseInt;if(b===Ext.draw.Color.NONE){this.r=this.g=this.b=this.a=0;return this}if((b.length===4||b.length===7)&&b.substr(0,1)==='#'){a=b.match(Ext.draw.Color.hexRe);if(a){c=f(a[1],16)>>0;e=f(a[2],16)>>0;d=f(a[3],16)>>0;if(b.length===4){c+=c*16;e+=e*16;d+=d*16}}}else {if(a=b.match(Ext.draw.Color.rgbToHexRe)){c=+a[1];e=+a[2];d=+a[3]}else {if(a=b.match(Ext.draw.Color.rgbaToHexRe)){c=+a[1];e=+a[2];d=+a[3];g=+a[4]}else {if(Ext.draw.Color.ColorList.hasOwnProperty(b.toLowerCase())){return this.setFromString(Ext.draw.Color.ColorList[b.toLowerCase()])}}}}if(typeof c==='undefined'){return this}this.r=c;this.g=e;this.b=d;this.a=g;return this}},3,0,0,0,0,0,[Ext.draw,'Color'],function(){var a=new this();this.addStatics({fly:function(b,e,d,c){switch(arguments.length){case 1:a.setFromString(b);break;case 3:case 4:a.setRGB(b,e,d,c);break;default:return null;}return a},ColorList:{aliceblue:'#f0f8ff',antiquewhite:'#faebd7',aqua:'#00ffff',aquamarine:'#7fffd4',azure:'#f0ffff',beige:'#f5f5dc',bisque:'#ffe4c4',black:'#000000',blanchedalmond:'#ffebcd',blue:'#0000ff',blueviolet:'#8a2be2',brown:'#a52a2a',burlywood:'#deb887',cadetblue:'#5f9ea0',chartreuse:'#7fff00',chocolate:'#d2691e',coral:'#ff7f50',cornflowerblue:'#6495ed',cornsilk:'#fff8dc',crimson:'#dc143c',cyan:'#00ffff',darkblue:'#00008b',darkcyan:'#008b8b',darkgoldenrod:'#b8860b',darkgray:'#a9a9a9',darkgreen:'#006400',darkkhaki:'#bdb76b',darkmagenta:'#8b008b',darkolivegreen:'#556b2f',darkorange:'#ff8c00',darkorchid:'#9932cc',darkred:'#8b0000',darksalmon:'#e9967a',darkseagreen:'#8fbc8f',darkslateblue:'#483d8b',darkslategray:'#2f4f4f',darkturquoise:'#00ced1',darkviolet:'#9400d3',deeppink:'#ff1493',deepskyblue:'#00bfff',dimgray:'#696969',dodgerblue:'#1e90ff',firebrick:'#b22222',floralwhite:'#fffaf0',forestgreen:'#228b22',fuchsia:'#ff00ff',gainsboro:'#dcdcdc',ghostwhite:'#f8f8ff',gold:'#ffd700',goldenrod:'#daa520',gray:'#808080',green:'#008000',greenyellow:'#adff2f',honeydew:'#f0fff0',hotpink:'#ff69b4',indianred:'#cd5c5c',indigo:'#4b0082',ivory:'#fffff0',khaki:'#f0e68c',lavender:'#e6e6fa',lavenderblush:'#fff0f5',lawngreen:'#7cfc00',lemonchiffon:'#fffacd',lightblue:'#add8e6',lightcoral:'#f08080',lightcyan:'#e0ffff',lightgoldenrodyellow:'#fafad2',lightgray:'#d3d3d3',lightgrey:'#d3d3d3',lightgreen:'#90ee90',lightpink:'#ffb6c1',lightsalmon:'#ffa07a',lightseagreen:'#20b2aa',lightskyblue:'#87cefa',lightslategray:'#778899',lightsteelblue:'#b0c4de',lightyellow:'#ffffe0',lime:'#00ff00',limegreen:'#32cd32',linen:'#faf0e6',magenta:'#ff00ff',maroon:'#800000',mediumaquamarine:'#66cdaa',mediumblue:'#0000cd',mediumorchid:'#ba55d3',mediumpurple:'#9370d8',mediumseagreen:'#3cb371',mediumslateblue:'#7b68ee',mediumspringgreen:'#00fa9a',mediumturquoise:'#48d1cc',mediumvioletred:'#c71585',midnightblue:'#191970',mintcream:'#f5fffa',mistyrose:'#ffe4e1',moccasin:'#ffe4b5',navajowhite:'#ffdead',navy:'#000080',oldlace:'#fdf5e6',olive:'#808000',olivedrab:'#6b8e23',orange:'#ffa500',orangered:'#ff4500',orchid:'#da70d6',palegoldenrod:'#eee8aa',palegreen:'#98fb98',paleturquoise:'#afeeee',palevioletred:'#d87093',papayawhip:'#ffefd5',peachpuff:'#ffdab9',peru:'#cd853f',pink:'#ffc0cb',plum:'#dda0dd',powderblue:'#b0e0e6',purple:'#800080',red:'#ff0000',rosybrown:'#bc8f8f',royalblue:'#4169e1',saddlebrown:'#8b4513',salmon:'#fa8072',sandybrown:'#f4a460',seagreen:'#2e8b57',seashell:'#fff5ee',sienna:'#a0522d',silver:'#c0c0c0',skyblue:'#87ceeb',slateblue:'#6a5acd',slategray:'#708090',snow:'#fffafa',springgreen:'#00ff7f',steelblue:'#4682b4',tan:'#d2b48c',teal:'#008080',thistle:'#d8bfd8',tomato:'#ff6347',turquoise:'#40e0d0',violet:'#ee82ee',wheat:'#f5deb3',white:'#ffffff',whitesmoke:'#f5f5f5',yellow:'#ffff00',yellowgreen:'#9acd32'},fromHSL:function(a,c,b){return (new this(0,0,0,0)).setHSL(a,c,b)},fromHSV:function(a,b,c){return (new this(0,0,0,0)).setHSL(a,b,c)},fromString:function(a){return (new this(0,0,0,0)).setFromString(a)},create:function(a){if(a instanceof this){return a}else {if(Ext.isArray(a)){return new Ext.draw.Color(a[0],a[1],a[2],a[3])}else {if(Ext.isString(a)){return Ext.draw.Color.fromString(a)}else {if(arguments.length>2){return new Ext.draw.Color(arguments[0],arguments[1],arguments[2],arguments[3])}else {return new Ext.draw.Color(0,0,0,0)}}}}}})});Ext.cmd.derive('Ext.draw.sprite.AnimationParser',Ext.Base,function(){function compute(a,c,b){return a+(c-a)*b}return {singleton:!0,attributeRe:/^url\(#([a-zA-Z\-]+)\)$/,color:{parseInitial:function(a,b){if(Ext.isString(a)){a=Ext.draw.Color.create(a)}if(Ext.isString(b)){b=Ext.draw.Color.create(b)}if(a instanceof Ext.draw.Color&&b instanceof Ext.draw.Color){return [[a.r,a.g,a.b,a.a],[b.r,b.g,b.b,b.a]]}else {return [a||b,b||a]}},compute:function(a,b,c){if(!Ext.isArray(a)||!Ext.isArray(b)){return b||a}else {return [compute(a[0],b[0],c),compute(a[1],b[1],c),compute(a[2],b[2],c),compute(a[3],b[3],c)]}},serve:function(a){var b=Ext.draw.Color.fly(a[0],a[1],a[2],a[3]);return b.toString()}},number:{parse:function(a){return a===null?null:+a},compute:function(a,b,c){if(!Ext.isNumber(a)||!Ext.isNumber(b)){return b||a}else {return compute(a,b,c)}}},angle:{parseInitial:function(b,a){if(a-b>Math.PI){a-=Math.PI*2}else {if(a-b<-Math.PI){a+=Math.PI*2}}return [b,a]},compute:function(a,b,c){if(!Ext.isNumber(a)||!Ext.isNumber(b)){return b||a}else {return compute(a,b,c)}}},path:{parseInitial:function(m,l){var e=m.toStripes(),c=l.toStripes(),a,i,f=e.length,g=c.length,j,h,k,d=c[g-1],b=[d[d.length-2],d[d.length-1]];for(a=f;a=1){return b.path}var c=0,k=e.length,a=0,g,d,h,i=b.temp.params,j=0;for(;cMath.min(a.x+a.width,b.x+b.width)||Math.max(a.y,b.y)-c>Math.min(a.y+a.height,b.y+b.height)},isPointInBBox:function(b,c,a){return !!a&&b>=a.x&&b<=a.x+a.width&&c>=a.y&&c<=a.y+a.height},spline:function(c){var a,e,i=c.length,g,j,k,d,h=0,b=new Float32Array(c.length),f=new Float32Array(c.length*3-2);b[0]=0;b[i-1]=0;for(a=1;a0;a--){h=3.732050807568877+48.248711305964385/(-13.928203230275537+Math.pow(0.07179676972449123,a));b[a]-=b[a+1]*h}d=c[0];g=d-b[0];for(a=0,e=0;a=c&&a>=b||a<=c&&a<=b){d=e=q}else {d=t((f-s)/n(a-c));if(cq){i-=j}d+=i;e+=i;k=f-o*v(d);g=a+o*u(d);l=f+p*v(e);h=a+p*u(e);if(a>c&&gc){k+=n(c-g)*(k-f)/(g-a);g=c}if(a>b&&hb){l-=n(b-h)*(l-f)/(h-a);h=b}return {x1:k,y1:g,x2:l,y2:h}},smooth:function(i,j,p){var o=i.length,m,n,c,d,k,l,e,f,g=[],h=[],a,b;for(a=0;a=Math.PI){a-=Math.PI*2}}return a}},data:function(a){if(Ext.isArray(a)){return a.slice()}else {if(a instanceof Float32Array){return new Float32Array(a)}}},bool:function(a){return !!a},color:function(a){if(a instanceof Ext.draw.Color){return a.toString()}else {if(a instanceof Ext.draw.gradient.Gradient){return a}else {if(!a){return Ext.draw.Color.NONE}else {if(Ext.isString(a)){if(a.substr(0,3)==='url'){a=Ext.draw.gradient.GradientDefinition.get(a);if(Ext.isString(a)){return a}}else {return Ext.draw.Color.fly(a).toString()}}}}}if(a.type==='linear'){return Ext.create('Ext.draw.gradient.Linear',a)}else {if(a.type==='radial'){return Ext.create('Ext.draw.gradient.Radial',a)}else {if(a.type==='pattern'){return Ext.create('Ext.draw.gradient.Pattern',a)}else {return Ext.draw.Color.NONE}}}},limited:function(a,b){return function(c){c=+c;return Ext.isNumber(c)?Math.min(Math.max(c,a),b):undefined}},limited01:function(a){a=+a;return Ext.isNumber(a)?Math.min(Math.max(a,0),1):undefined},enums:function(){var b={},c=Array.prototype.slice.call(arguments,0),a,d;for(a=0,d=c.length;a=(7-4*c)/11){return a*a-b((11-6*c-11*d)/4,2)}}},elastic:function(a,c){return b(2,10*--a)*j(20*a*h*(c||1)/3)}},a={},e,g,c;function createPoly(a){return function(c){return b(c,a)}}function addEasing(c,b){a[c+'In']=function(a){return b(a)};a[c+'Out']=function(a){return 1-b(1-a)};a[c+'InOut']=function(a){return a<=0.5?b(2*a)/2:(2-b(2*(1-a)))/2}}for(c=0,g=f.length;c-1},empty:function(){return this.animations.length===0},step:function(e){var f=this,c=f.animations,a,b=0,d=c.length;for(;b0},applyEasing:function(a){if(typeof a==='string'){a=Ext.draw.TimingFunctions.easingMap[a]}return a},applyCustomEasings:function(g,b){b=b||{};var e,f,d,a,c,h;for(f in g){e=!0;a=g[f];d=f.split(',');if(typeof a==='string'){a=Ext.draw.TimingFunctions.easingMap[a]}for(c=0,h=d.length;c=1){d[b]=h[b];delete h[b];if(e[b].remove){d.removeFromInstance=d.removeFromInstance||{};d.removeFromInstance[b]=!0}delete e[b]}else {d[b]=a.serve(a.compute(a.source,a.target,a.easing(f),c[b]));i=!0}}c.lastUpdate=g;this.setAnimating(c,i);return d},pushDown:function(b,a){a=Ext.draw.modifier.Modifier.prototype.pushDown.call(this,b.animationOriginal,a);return this.setAttrs(b,a)},popUp:function(a,b){a=a.prototype;b=this.setAttrs(a,b);if(this._next){return this._next.popUp(a,b)}else {return Ext.apply(a,b)}},step:function(g){var a=this,e=a.animatingPool.slice(),f=e.length,d=0,c,b;for(;d=a.x&&c<=a.x+a.width&&d>=a.y&&d<=a.y+a.height;if(e){return {sprite:this}}}return null},isVisible:function(){var a=this.attr,b=this.getParent(),e=b&&(b.isSurface||b.isVisible()),h=e&&!a.hidden&&a.globalAlpha,c=Ext.draw.Color.NONE,d=Ext.draw.Color.RGBA_NONE,g=a.fillOpacity&&a.fillStyle!==c&&a.fillStyle!==d,f=a.strokeOpacity&&a.strokeStyle!==c&&a.strokeStyle!==d,i=h&&(g||f);return !!i},repaint:function(){var a=this.getSurface();if(a){a.renderFrame()}},remove:function(){var a=this.getSurface();if(a&&a.isSurface){return a.remove(this)}return null},destroy:function(){var a=this,b=a.topModifier,c;while(b){c=b;b=b.getPrevious();c.destroy()}delete a.attr;a.remove();if(a.fireEvent('beforedestroy',a)!==!1){a.fireEvent('destroy',a)}a.callParent()}},1,0,0,0,['sprite.sprite'],[['observable',Ext.mixin.Observable]],[Ext.draw.sprite,'Sprite'],function(){this.def=new Ext.draw.sprite.AttributeDefinition(this.def);this.def.spriteClass=this});Ext.cmd.derive('Ext.draw.Path',Ext.Base,{statics:{pathRe:/,?([achlmqrstvxz]),?/gi,pathRe2:/-/gi,pathSplitRe:/\s|,/g},svgString:'',constructor:function(b){var a=this;a.commands=[];a.params=[];a.cursor=null;a.startX=0;a.startY=0;if(b){a.fromSvgString(b)}},clear:function(){var a=this;a.params.length=0;a.commands.length=0;a.cursor=null;a.startX=0;a.startY=0;a.dirt()},dirt:function(){this.svgString=''},moveTo:function(b,c){var a=this;if(!a.cursor){a.cursor=[b,c]}a.params.push(b,c);a.commands.push('M');a.startX=b;a.startY=c;a.cursor[0]=b;a.cursor[1]=c;a.dirt()},lineTo:function(b,c){var a=this;if(!a.cursor){a.cursor=[b,c];a.params.push(b,c);a.commands.push('M')}else {a.params.push(b,c);a.commands.push('L')}a.cursor[0]=b;a.cursor[1]=c;a.dirt()},bezierCurveTo:function(b,c,f,g,d,e){var a=this;if(!a.cursor){a.moveTo(b,c)}a.params.push(b,c,f,g,d,e);a.commands.push('C');a.cursor[0]=d;a.cursor[1]=e;a.dirt()},quadraticCurveTo:function(b,c,d,e){var a=this;if(!a.cursor){a.moveTo(b,c)}a.bezierCurveTo((2*b+a.cursor[0])/3,(2*c+a.cursor[1])/3,(2*b+d)/3,(2*c+e)/3,d,e)},closePath:function(){var a=this;if(a.cursor){a.cursor=null;a.commands.push('Z');a.dirt()}},arcTo:function(l,m,e,f,d,b,n){var i=this;if(b===undefined){b=d}if(n===undefined){n=0}if(!i.cursor){i.moveTo(l,m);return}if(d===0||b===0){i.lineTo(l,m);return}e-=l;f-=m;var g=i.cursor[0]-l,h=i.cursor[1]-m,q=e*h-f*g,j,k,y,A,z,t,w=Math.sqrt(g*g+h*h),x=Math.sqrt(e*e+f*f),u,c,a;if(q===0){i.lineTo(l,m);return}if(b!==d){j=Math.cos(n);k=Math.sin(n);y=j/d;A=k/b;z=-k/d;t=j/b;var v=y*g+A*h;h=z*g+t*h;g=v;v=y*e+A*f;f=z*e+t*f;e=v}else {g/=d;h/=b;e/=d;f/=b}c=g*x+e*w;a=h*x+f*w;u=1/(Math.sin(Math.asin(Math.abs(q)/(w*x))*0.5)*Math.sqrt(c*c+a*a));c*=u;a*=u;var B=(c*g+a*h)/(g*g+h*h),C=(c*e+a*f)/(e*e+f*f);var r=g*B-c,s=h*B-a,D=e*C-c,E=f*C-a,o=Math.atan2(s,r),p=Math.atan2(E,D);if(q>0){if(p=Math.PI*2){b.ellipse(j,k,h,i,g,d,d+Math.PI,l);b.ellipse(j,k,h,i,g,d+Math.PI,e,l);return}if(!l){if(e=y){s.push(d+b*p+f,e+c*p+g,d*p+b+f,e*p+c+g,b+f,c+g);u+=6;a-=y;o=d;d=b;b=-o;o=e;e=c;c=-o}if(a){i=(0.3294738052815987+0.012120855841304373*a)*a;h=Math.cos(a);j=Math.sin(a);v=h+i*j;w=j-i*h;s.push(d+b*i+f,e+c*i+g,d*v+b*w+f,e*v+c*w+g,d*h+b*j+f,e*h+c*j+g);u+=6}return u},arcSvg:function(b,c,i,y,m,v,x){if(b<0){b=-b}if(c<0){c=-c}var n=this,u=n.cursor[0],w=n.cursor[1],q=(u-v)/2,r=(w-x)/2,g=Math.cos(i),h=Math.sin(i),o=q*g+r*h,p=-q*h+r*g,k=o/b,l=p/c,a=k*k+l*l,s=(u+v)*0.5,t=(w+x)*0.5,e=0,f=0;if(a>=1){a=Math.sqrt(a);b*=a;c*=a}else {a=Math.sqrt(1/a-1);if(y===m){a=-a}e=a*b*l;f=-a*c*k;s+=g*e-h*f;t+=h*e+g*f}var j=Math.atan2((p-f)/c,(o-e)/b),d=Math.atan2((-p-f)/c,(-o-e)/b)-j;if(m){if(d<=0){d+=Math.PI*2}}else {if(d>=0){d-=Math.PI*2}}n.ellipse(s,t,b,c,i,j,j+d,1-m)},fromSvgString:function(k){if(!k){return}var e=this,b,g={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0,A:7,C:6,H:1,L:2,M:2,Q:4,S:4,T:2,V:1,Z:0},h='',i,j,c=0,d=0,l=!1,a,f,m;if(Ext.isString(k)){b=k.replace(Ext.draw.Path.pathRe,' $1 ').replace(Ext.draw.Path.pathRe2,' -').split(Ext.draw.Path.pathSplitRe)}else {if(Ext.isArray(k)){b=k.join(',').split(Ext.draw.Path.pathSplitRe)}}for(a=0,f=0;a=0){f=Math.sqrt(f);a=(f-i)/2/l;if(00){a-=f/l;if(0a.x){c=a.x}if(ha.y){d=a.y}if(f=e.length||!d.isVisible()){return c}a.attr=e[b];c=a.isVisible(point,options);a.attr=f;return c},render:function(h,c,g,d){var e=this,b=e.getTemplate(),k=e.attr.matrix,j=b.attr,f=e.instances,a,i=e.position;k.toContext(c);b.preRender(h,c,g,d);b.useAttributes(c,d);for(a=0;ac){a=e.substr(c,d-c)}else {continue}}f=a.indexOf('/');if(f>0){a=a.substr(0,f)}else {if(f===0){continue}}if(a!=='normal'&&a!=='inherit'){g=h[a];if(g){b[g]=a}else {if(a.match(Ext.dom.Element.unitRe)){b.fontSize=a}else {b.fontFamily=e.substr(c);break}}}c=d+1}if(!b.fontStyle){b.fontStyle=''}if(!b.fontVariant){b.fontVariant=''}if(!b.fontWeight){b.fontWeight=''}this.setAttributes(b,!0)},fontProperties:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,fontFamily:!0},setAttributes:function(a,d,e){var b,c;if(a&&a.font){c={};for(b in a){if(!(b in this.fontProperties)){c[b]=a[b]}}a=c}Ext.draw.sprite.Sprite.prototype.setAttributes.call(this,a,d,e)},getBBox:function(d){var b=this,a=b.attr.bbox.plain,c=b.getSurface();if(a.dirty){b.updatePlainBBox(a);a.dirty=!1}if(c.getInherited().rtl&&c.getFlipRtlText()){b.updatePlainBBox(a,!0)}return Ext.draw.sprite.Sprite.prototype.getBBox.call(this,d)},rtlAlignments:{start:'end',center:'center',end:'start'},updatePlainBBox:function(j,s){var e=this,b=e.attr,g=b.x,l=b.y,k=[],u=b.font,v=b.text,t=b.textBaseline,m=b.textAlign,o=s&&e.oldSize?e.oldSize:e.oldSize=Ext.draw.TextMeasurer.measureText(v,u),n=e.getSurface(),i=n.getInherited().rtl,r=i&&n.getFlipRtlText(),q=n.getRect(),f=o.sizes,h=o.height,c=o.width,p=f?f.length:0,d,a=0;switch(t){case 'hanging':case 'top':break;case 'ideographic':case 'bottom':l-=h;break;case 'alphabetic':l-=h*0.8;break;case 'middle':l-=h*0.5;break;}if(r){g=q[2]-q[0]-g;m=e.rtlAlignments[m]}switch(m){case 'start':if(i){for(;a0&&d>0){c=Math.sqrt(a*a+d*d)*Math.abs(Math.cos(g-Math.atan(a/d)))/2;f=m.createLinearGradient(i+k*c,j+l*c,i-k*c,j-l*c);for(b=0;b=0;a--){b[a].destroy()}}else {for(;a>=0;a--){c=b[a];c.setParent(null);c.setSurface(null)}}b.length=0;this.map={};this.dirtyZIndex=!0},applyItems:function(a){if(this.getItems()){this.removeAll(!0)}return Ext.Array.from(this.add(a))},createItem:function(a){return Ext.create(a.xclass||'sprite.'+a.type,a)},getBBox:function(b,j){var b=Ext.Array.from(b),c=Infinity,g=-Infinity,d=Infinity,f=-Infinity,h,a,e,i;for(e=0,i=b.length;ea.x){c=a.x}if(ga.y){d=a.y}if(f0){a.isPendingRenderFrame=!0;return}var g=a.getRect(),d=a.getBackground(),e=a.getItems(),c,b,f;if(!g){return}a.orderByZIndex();if(a.getDirty()){a.clear();a.clearTransform();if(d){a.renderSprite(d)}for(b=0,f=e.length;bthis.position){this.removeElement(c[c.length-1])}for(b=0;bthis.position){Ext.fly(a[a.length-1]).destroy()}return 'url(#'+this.element.getId()+')'},destroy:function(){var b=this.statics().map,a=this.element;if(a&&a.dom){delete b[a.dom.id];a.destroy()}this.callParent()}},3,0,0,0,0,0,[Ext.draw.engine.SvgContext,'Gradient'],0);Ext.cmd.derive('Ext.draw.engine.Svg',Ext.draw.Surface,{statics:{BBoxTextCache:{}},config:{highPrecision:!1},getElementConfig:function(){return {reference:'element',style:{position:'absolute'},children:[{reference:'innerElement',style:{width:'100%',height:'100%',position:'relative'},children:[{tag:'svg',reference:'svgElement',namespace:'http://www.w3.org/2000/svg',width:'100%',height:'100%',version:1.1}]}]}},constructor:function(b){var a=this;Ext.draw.Surface.prototype.constructor.call(this,b);a.mainGroup=a.createSvgNode('g');a.defElement=a.createSvgNode('defs');a.svgElement.appendChild(a.mainGroup);a.svgElement.appendChild(a.defElement);a.ctx=new Ext.draw.engine.SvgContext(a)},createSvgNode:function(b){var a=document.createElementNS('http://www.w3.org/2000/svg',b);return Ext.get(a)},getSvgElement:function(c,d,b){var a;if(c.dom.childNodes.length>b){a=c.dom.childNodes[b];if(a.tagName===d){return Ext.get(a)}else {Ext.destroy(a)}}a=Ext.get(this.createSvgNode(d));if(b===0){c.insertFirst(a)}else {a.insertAfter(Ext.fly(c.dom.childNodes[b-1]))}a.cache={};return a},setElementAttributes:function(d,c){var f=d.dom,e=d.cache,a,b;for(a in c){b=c[a];if(e[a]!==b){e[a]=b;f.setAttribute(a,b)}}},getNextDef:function(a){return this.getSvgElement(this.defElement,a,this.defPosition++)},clearTransform:function(){var a=this;a.mainGroup.set({transform:a.matrix.toSvg()})},clear:function(){this.ctx.clear();this.defPosition=0},renderSprite:function(a){var d=this,c=d.getRect(),b=d.ctx;if(a.attr.hidden||a.attr.globalAlpha===0){b.save();b.restore();return}a.element=b.save();a.preRender(this);a.useAttributes(b,c);if(!1===a.render(this,b,[0,0,c[2],c[3]])){return !1}a.setDirty(!1);b.restore()},flatten:function(f,e){var a='',g=Ext.getClassName(this),b,d,c;a+='';for(c=0;c';a+=this.serializeNode(b.svgElement.dom);a+=''}a+='';return {data:'data:image/svg+xml;utf8,'+encodeURIComponent(a),type:'svg'}},serializeNode:function(a){var c='',b,d,e,f;if(a.nodeType===document.TEXT_NODE){return a.nodeValue}c+='<'+a.nodeName;if(a.attributes.length){for(b=0,d=a.attributes.length;b';return c},destroy:function(){var a=this;a.ctx.destroy();a.mainGroup.destroy();delete a.mainGroup;delete a.ctx;Ext.draw.Surface.prototype.destroy.call(this)},remove:function(a,b){if(a&&a.element){if(this.ctx){this.ctx.removeElement(a.element)}else {a.element.destroy()}a.element=null}Ext.draw.Surface.prototype.remove.apply(this,arguments)}},1,0,['widget','surface'],{'widget':!0,'surface':!0},0,0,[Ext.draw.engine,'Svg'],0);Ext.draw||(Ext.draw={});Ext.draw.engine||(Ext.draw.engine={});Ext.draw.engine.excanvas=!0;if(!document.createElement('canvas').getContext){(function(){var f=Math;var b=f.round;var n=f.sin;var m=f.cos;var t=f.abs;var s=f.sqrt;var c=10;var e=c/2;var u=+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1];function getContext(){return this.context_||(this.context_=new CanvasRenderingContext2D_(this))}var p=Array.prototype.slice;function bind(c,a,d){var b=p.call(arguments,2);return function(){return c.apply(a,b.concat(p.call(arguments)))}}function encodeHtmlAttribute(a){return String(a).replace(/&/g,'&').replace(/"/g,'"')}function addNamespace(b,a,c){Ext.onReady(function(){if(!b.namespaces[a]){b.namespaces.add(a,c,'#default#VML')}})}function addNamespacesAndStylesheet(a){addNamespace(a,'g_vml_','urn:schemas-microsoft-com:vml');addNamespace(a,'g_o_','urn:schemas-microsoft-com:office:office');if(!a.styleSheets['ex_canvas_']){var b=a.createStyleSheet();b.owningElement.id='ex_canvas_';b.cssText='canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}'}}addNamespacesAndStylesheet(document);var o={init:function(b){var a=b||document;a.createElement('canvas');a.attachEvent('onreadystatechange',bind(this.init_,this,a))},init_:function(c){var b=c.getElementsByTagName('canvas');for(var a=0;a1){a--}if(6*a<1){return b+(c-b)*6*a}else {if(2*a<1){return c}else {if(3*a<2){return b+(c-b)*(2/3-a)*6}else {return b}}}}var k={};function processStyle(a){if(a in k){return k[a]}var c,e=1;a=String(a);if(a.charAt(0)=='#'){c=a}else {if(/^rgb/.test(a)){var b=getRgbHslContent(a);var c='#',f;for(var d=0;d<3;d++){if(b[d].indexOf('%')!=-1){f=Math.floor(percent(b[d])*255)}else {f=+b[d]}c+=h[clamp(f,0,255)]}e=+b[3]}else {if(/^hsl/.test(a)){var b=getRgbHslContent(a);c=hslToRgb(b);e=b[3]}else {c=r[a]||a}}}return k[a]={color:c,alpha:e}}var g={style:'normal',variant:'normal',weight:'normal',size:10,family:'sans-serif'};var l={};function processFontStyle(b){if(l[b]){return l[b]}var c=document.createElement('div');var a=c.style;try{a.font=b}catch(v){}return l[b]={style:a.fontStyle||g.style,variant:a.fontVariant||g.variant,weight:a.fontWeight||g.weight,size:a.fontSize||g.size,family:a.fontFamily||g.family}}function getComputedStyle(b,f){var a={};for(var e in b){a[e]=b[e]}var d=parseFloat(f.currentStyle.fontSize),c=parseFloat(b.size);if(typeof b.size=='number'){a.size=b.size}else {if(b.size.indexOf('px')!=-1){a.size=c}else {if(b.size.indexOf('em')!=-1){a.size=d*c}else {if(b.size.indexOf('%')!=-1){a.size=d/100*c}else {if(b.size.indexOf('pt')!=-1){a.size=c/0.75}else {a.size=d}}}}}a.size*=0.981;return a}function buildStyle(a){return a.style+' '+a.variant+' '+a.weight+' '+a.size+'px '+a.family}var q={'butt':'flat','round':'round'};function processLineCap(a){return q[a]||'square'}function CanvasRenderingContext2D_(a){this.m_=createMatrixIdentity();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle='#000';this.fillStyle='#000';this.lineWidth=1;this.lineJoin='miter';this.lineDash=[];this.lineCap='butt';this.miterLimit=c*1;this.globalAlpha=1;this.font='10px sans-serif';this.textAlign='left';this.textBaseline='alphabetic';this.canvas=a;var e='width:'+a.clientWidth+'px;height:'+a.clientHeight+'px;overflow:hidden;position:absolute';var b=a.ownerDocument.createElement('div');b.style.cssText=e;a.appendChild(b);var d=b.cloneNode(!1);d.style.backgroundColor='red';d.style.filter='alpha(opacity=0)';a.appendChild(d);this.element_=b;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var a=CanvasRenderingContext2D_.prototype;a.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(!0);this.textMeasureEl_=null}this.element_.innerHTML=''};a.beginPath=function(){this.currentPath_=[]};a.moveTo=function(b,c){var a=getCoords(this,b,c);this.currentPath_.push({type:'moveTo',x:a.x,y:a.y});this.currentX_=a.x;this.currentY_=a.y};a.lineTo=function(b,c){var a=getCoords(this,b,c);this.currentPath_.push({type:'lineTo',x:a.x,y:a.y});this.currentX_=a.x;this.currentY_=a.y};a.bezierCurveTo=function(a,b,c,d,g,h){var i=getCoords(this,g,h);var e=getCoords(this,a,b);var f=getCoords(this,c,d);bezierCurveTo(this,e,f,i)};function bezierCurveTo(b,c,d,a){b.currentPath_.push({type:'bezierCurveTo',cp1x:c.x,cp1y:c.y,cp2x:d.x,cp2y:d.y,x:a.x,y:a.y});b.currentX_=a.x;b.currentY_=a.y}a.quadraticCurveTo=function(d,e,g,h){var c=getCoords(this,d,e);var b=getCoords(this,g,h);var a={x:this.currentX_+2/3*(c.x-this.currentX_),y:this.currentY_+2/3*(c.y-this.currentY_)};var f={x:a.x+(b.x-this.currentX_)/3,y:a.y+(b.y-this.currentY_)/3};bezierCurveTo(this,a,f,b)};a.arc=function(d,f,a,g,i,h){a*=c;var p=h?'at':'wa';var b=d+m(g)*a-e;var q=f+n(g)*a-e;var l=d+m(i)*a-e;var r=f+n(i)*a-e;if(b==l&&!h){b+=0.125}var o=getCoords(this,d,f);var j=getCoords(this,b,q);var k=getCoords(this,l,r);this.currentPath_.push({type:p,x:o.x,y:o.y,radius:a,xStart:j.x,yStart:j.y,xEnd:k.x,yEnd:k.y})};a.rect=function(a,b,d,c){this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+c);this.lineTo(a,b+c);this.closePath()};a.strokeRect=function(a,b,d,c){var e=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+c);this.lineTo(a,b+c);this.closePath();this.stroke();this.currentPath_=e};a.fillRect=function(a,b,d,c){var e=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+c);this.lineTo(a,b+c);this.closePath();this.fill();this.currentPath_=e};a.createLinearGradient=function(b,d,c,e){var a=new CanvasGradient_('gradient');a.x0_=b;a.y0_=d;a.x1_=c;a.y1_=e;return a};a.createRadialGradient=function(d,f,b,e,g,c){var a=new CanvasGradient_('gradientradial');a.x0_=d;a.y0_=f;a.r0_=b;a.x1_=e;a.y1_=g;a.r1_=c;return a};a.drawImage=function(a,u){var j,k,i,h,d,e,m,l;var t=a.runtimeStyle.width;var s=a.runtimeStyle.height;a.runtimeStyle.width='auto';a.runtimeStyle.height='auto';var g=a.width;var f=a.height;a.runtimeStyle.width=t;a.runtimeStyle.height=s;if(arguments.length==3){j=arguments[1];k=arguments[2];d=e=0;m=i=g;l=h=f}else {if(arguments.length==5){j=arguments[1];k=arguments[2];i=arguments[3];h=arguments[4];d=e=0;m=g;l=f}else {if(arguments.length==9){d=arguments[1];e=arguments[2];m=arguments[3];l=arguments[4];j=arguments[5];k=arguments[6];i=arguments[7];h=arguments[8]}else {throw Error('Invalid number of arguments')}}}var r=getCoords(this,j,k);var o=[];var q=10;var p=10;var n=this.m_;o.push(' ','','');this.element_.insertAdjacentHTML('BeforeEnd',o.join(''))};a.setLineDash=function(a){if(a.length===1){a=a.slice();a[1]=a[0]}this.lineDash=a};a.getLineDash=function(){return this.lineDash};a.stroke=function(g){var d=[];var j=10;var i=10;d.push('');if(!g){appendStroke(this,d)}else {appendFill(this,d,f,e)}d.push('');this.element_.insertAdjacentHTML('beforeEnd',d.join(''))};function appendStroke(a,e){var d=processStyle(a.strokeStyle);var f=d.color;var c=d.alpha*a.globalAlpha;var b=a.lineScale_*a.lineWidth;if(b<1){c*=b}e.push('')}function appendFill(b,m,g,v){var a=b.fillStyle;var h=b.arcScaleX_;var i=b.arcScaleY_;var k=v.x-g.x;var j=v.y-g.y;if(a instanceof CanvasGradient_){var e=0;var o={x:0,y:0};var p=0;var s=1;if(a.type_=='gradient'){var G=a.x0_/h;var I=a.y0_/i;var H=a.x1_/h;var J=a.y1_/i;var l=getCoords(b,G,I);var w=getCoords(b,H,J);var E=w.x-l.x;var F=w.y-l.y;e=Math.atan2(E,F)*180/Math.PI;if(e<0){e+=360}if(e<1.0E-6){e=0}}else {var l=getCoords(b,a.x0_,a.y0_);o={x:(l.x-g.x)/k,y:(l.y-g.y)/j};k/=h*c;j/=i*c;var r=f.max(k,j);p=2*a.r0_/r;s=2*a.r1_/r-p}var d=a.colors_;d.sort(function(a,c){return a.offset-c.offset});var n=d.length;var B=d[0].color;var C=d[n-1].color;var y=d[0].alpha*b.globalAlpha;var z=d[n-1].alpha*b.globalAlpha;var t=[];for(var q=0;q')}else {if(a instanceof CanvasPattern_){if(k&&j){var K=-g.x;var L=-g.y;m.push('')}}else {var x=processStyle(b.fillStyle);var D=x.color;var A=x.alpha*b.globalAlpha;m.push('')}}}a.fill=function(){this.$stroke(!0)};a.closePath=function(){this.currentPath_.push({type:'close'})};function getCoords(f,b,d){var a=f.m_;return {x:c*(b*a[0][0]+d*a[1][0]+a[2][0])-e,y:c*(b*a[0][1]+d*a[1][1]+a[2][1])-e}}a.save=function(){var a={};copyState(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=matrixMultiply(createMatrixIdentity(),this.m_)};a.restore=function(){if(this.aStack_.length){copyState(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};function matrixIsFinite(a){return isFinite(a[0][0])&&isFinite(a[0][1])&&isFinite(a[1][0])&&isFinite(a[1][1])&&isFinite(a[2][0])&&isFinite(a[2][1])}function setM(b,a,c){if(!matrixIsFinite(a)){return}b.m_=a;if(c){var d=a[0][0]*a[1][1]-a[0][1]*a[1][0];b.lineScale_=s(t(d))}}a.translate=function(a,b){var c=[[1,0,0],[0,1,0],[a,b,1]];setM(this,matrixMultiply(c,this.m_),!1)};a.rotate=function(a){var b=m(a);var c=n(a);var d=[[b,c,0],[-c,b,0],[0,0,1]];setM(this,matrixMultiply(d,this.m_),!1)};a.scale=function(a,b){this.arcScaleX_*=a;this.arcScaleY_*=b;var c=[[a,0,0],[0,b,0],[0,0,1]];setM(this,matrixMultiply(c,this.m_),!0)};a.transform=function(a,b,c,d,e,f){var g=[[a,b,0],[c,d,0],[e,f,1]];setM(this,matrixMultiply(g,this.m_),!0)};a.setTransform=function(a,b,c,d,e,f){var g=[[a,b,0],[c,d,0],[e,f,1]];setM(this,g,!0)};a.drawText_=function(q,r,s,t,j){var i=this.m_,k=1000,e=0,h=k,g={x:0,y:0},d=[];var f=getComputedStyle(processFontStyle(this.font),this.element_);var n=buildStyle(f);var l=this.element_.currentStyle;var a=this.textAlign.toLowerCase();switch(a){case 'left':case 'center':case 'right':break;case 'end':a=l.direction=='ltr'?'right':'left';break;case 'start':a=l.direction=='rtl'?'right':'left';break;default:a='left';}switch(this.textBaseline){case 'hanging':case 'top':g.y=f.size/1.75;break;case 'middle':break;default:case null:case 'alphabetic':case 'ideographic':case 'bottom':g.y=-f.size/3;break;}switch(a){case 'right':e=k;h=0.05;break;case 'center':e=h=k/2;break;}var m=getCoords(this,r+g.x,s+g.y);d.push('');if(j){appendStroke(this,d)}else {appendFill(this,d,{x:-e,y:0},{x:h,y:f.size})}var p=i[0][0].toFixed(3)+','+i[1][0].toFixed(3)+','+i[0][1].toFixed(3)+','+i[1][1].toFixed(3)+',0,0';var o=b(m.x/c)+','+b(m.y/c);d.push('','','');this.element_.insertAdjacentHTML('beforeEnd',d.join(''))};a.fillText=function(b,c,d,a){this.drawText_(b,c,d,a,!1)};a.strokeText=function(b,c,d,a){this.drawText_(b,c,d,a,!0)};a.measureText=function(a){if(!this.textMeasureEl_){var c='';this.element_.insertAdjacentHTML('beforeEnd',c);this.textMeasureEl_=this.element_.lastChild}var b=this.element_.ownerDocument;this.textMeasureEl_.innerHTML='';this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(b.createTextNode(a));return {width:this.textMeasureEl_.offsetWidth}};a.clip=function(){};a.arcTo=function(){};a.createPattern=function(b,a){return new CanvasPattern_(b,a)};function CanvasGradient_(a){this.type_=a;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}CanvasGradient_.prototype.addColorStop=function(b,a){a=processStyle(a);this.colors_.push({offset:b,color:a.color,alpha:a.alpha})};function CanvasPattern_(a,b){assertImageIsValid(a);switch(b){case 'repeat':case null:case '':this.repetition_='repeat';break;case 'repeat-x':case 'repeat-y':case 'no-repeat':this.repetition_=b;break;default:throwException('SYNTAX_ERR');}this.src_=a.src;this.width_=a.width;this.height_=a.height}function throwException(a){throw new DOMException_(a)}function assertImageIsValid(a){if(!a||a.nodeType!=1||a.tagName!='IMG'){throwException('TYPE_MISMATCH_ERR')}if(a.readyState!='complete'){throwException('INVALID_STATE_ERR')}}function DOMException_(a){this.code=this[a];this.message=a+': DOM Exception '+this.code}var d=DOMException_.prototype=new Error();d.INDEX_SIZE_ERR=1;d.DOMSTRING_SIZE_ERR=2;d.HIERARCHY_REQUEST_ERR=3;d.WRONG_DOCUMENT_ERR=4;d.INVALID_CHARACTER_ERR=5;d.NO_DATA_ALLOWED_ERR=6;d.NO_MODIFICATION_ALLOWED_ERR=7;d.NOT_FOUND_ERR=8;d.NOT_SUPPORTED_ERR=9;d.INUSE_ATTRIBUTE_ERR=10;d.INVALID_STATE_ERR=11;d.SYNTAX_ERR=12;d.INVALID_MODIFICATION_ERR=13;d.NAMESPACE_ERR=14;d.INVALID_ACCESS_ERR=15;d.VALIDATION_ERR=16;d.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=o;CanvasRenderingContext2D=CanvasRenderingContext2D_;CanvasGradient=CanvasGradient_;CanvasPattern=CanvasPattern_;DOMException=DOMException_})()}Ext.cmd.derive('Ext.draw.engine.Canvas',Ext.draw.Surface,{config:{highPrecision:!1},statics:{contextOverrides:{setGradientBBox:function(a){this.bbox=a},fill:function(){var d=this.fillStyle,b=this.fillGradient,a=this.fillOpacity,e=this.globalAlpha,c=this.bbox;if(d!==Ext.draw.Color.RGBA_NONE&&a!==0){if(b&&c){this.fillStyle=b.generateGradient(this,c)}if(a!==1){this.globalAlpha=e*a}this.$fill();if(a!==1){this.globalAlpha=e}if(b&&c){this.fillStyle=d}}},stroke:function(){var d=this.strokeStyle,b=this.strokeGradient,a=this.strokeOpacity,e=this.globalAlpha,c=this.bbox;if(d!==Ext.draw.Color.RGBA_NONE&&a!==0){if(b&&c){this.strokeStyle=b.generateGradient(this,c)}if(a!==1){this.globalAlpha=e*a}this.$stroke();if(a!==1){this.globalAlpha=e}if(b&&c){this.strokeStyle=d}}},fillStroke:function(d,b){var a=this,j=this.fillStyle,f=this.fillOpacity,h=this.strokeStyle,e=this.strokeOpacity,g=a.shadowColor,i=a.shadowBlur,c=Ext.draw.Color.RGBA_NONE;if(b===undefined){b=d.transformFillStroke}if(!b){d.inverseMatrix.toContext(a)}if(j!==c&&f!==0){a.fill();a.shadowColor=c;a.shadowBlur=0}if(h!==c&&e!==0){a.stroke()}a.shadowColor=g;a.shadowBlur=i},setLineDash:function(a){if(this.$setLineDash){this.$setLineDash(a)}},getLineDash:function(){if(this.$getLineDash){return this.$getLineDash()}},ellipse:function(e,f,c,d,g,i,j,h){var a=Math.cos(g),b=Math.sin(g);this.transform(a*c,b*c,-b*d,a*d,e,f);this.arc(0,0,1,i,j,h);this.transform(a/c,-b/d,b/c,a/d,-(a*e+b*f)/c,(b*e-a*f)/d)},appendPath:function(f){var c=this,d=0,a=0,e=f.commands,b=f.params,g=e.length;c.beginPath();for(;d=g.length){a.createCanvas()}b=g[c].dom;b.style.left=h+'px';b.style.top=i+'px';j=Math.min(e,p-i);if(j*f!==b.height){b.height=j*f;b.style.height=j+'px'}k=Math.min(e,q-h);if(k*f!==b.width){b.width=k*f;b.style.width=k+'px'}a.applyDefaults(a.contexts[c])}}for(c+=1;cs||a.x+a.widthr||a.y+a.height=0},filename:Ext.isString,width:Ext.isNumber,height:Ext.isNumber,scale:Ext.isNumber,pdf:Ext.isObject,jpeg:Ext.isObject},initAnimator:function(){this.frameCallbackId=Ext.draw.Animator.addFrameCallback('renderFrame',this)},applyGradients:function(d){var b=[],c,f,a,e;if(!Ext.isArray(d)){return b}for(c=0,f=d.length;c=0&&g[a[c].type]>i){a[c+1]=a[c];c--}a[c+1]=f}b=a[0].flatten(j,a);if(h==='image'){e=new Image();e.src=b.data;b.data=e;return b}if(h==='stream'){b.data=b.data.replace(/^data:image\/[^;]+/,'data:application/octet-stream');return b}return b},download:function(a){var d=this,e=[],f,b,c;a=Ext.apply({version:2,data:d.getImage().data},a);for(b in a){if(a.hasOwnProperty(b)){c=a[b];if(b in d.supportedOptions){if(d.supportedOptions[b].call(d,c)){e.push({tag:'input',type:'hidden',name:b,value:Ext.String.htmlEncode(Ext.isObject(c)?Ext.JSON.encode(c):c)})}}}}f=Ext.dom.Helper.markup({tag:'html',children:[{tag:'head'},{tag:'body',children:[{tag:'form',method:'POST',action:a.url||d.defaultDownloadServerUrl,children:e},{tag:'script',type:'text/javascript',children:'document.getElementsByTagName("form")[0].submit();'}]}]});window.open('','ImageDownload_'+Date.now()).document.write(f)},destroy:function(){var a=this.frameCallbackId;if(a){Ext.draw.Animator.removeFrameCallback(a)}Ext.draw.ContainerBase.prototype.destroy.call(this)}},0,['draw'],['component','box','container','panel','draw'],{'component':!0,'box':!0,'container':!0,'panel':!0,'draw':!0},['widget.draw'],0,[Ext.draw,'Container',Ext.draw,'Component'],function(){if(location.search.match('svg')){Ext.draw.Container.prototype.engine='Ext.draw.engine.Svg'}else {if(Ext.os.is.BlackBerry&&Ext.os.version.getMajor()===10||Ext.browser.is.AndroidStock4&&(Ext.os.version.getMinor()===1||Ext.os.version.getMinor()===2||Ext.os.version.getMinor()===3)){Ext.draw.Container.prototype.engine='Ext.draw.engine.Svg'}}});Ext.cmd.derive('Ext.chart.theme.Base',Ext.Base,{factoryConfig:{type:'chart.theme'},isTheme:!0,config:{baseColor:null,colors:undefined,gradients:null,chart:{defaults:{background:'white'}},axis:{defaults:{label:{x:0,y:0,textBaseline:'middle',textAlign:'center',fontSize:'default',fontFamily:'default',fontWeight:'default',fillStyle:'black'},title:{fillStyle:'black',fontSize:'default*1.23',fontFamily:'default',fontWeight:'default'},style:{strokeStyle:'black'},grid:{strokeStyle:'rgb(221, 221, 221)'}},top:{style:{textPadding:5}},bottom:{style:{textPadding:5}}},series:{defaults:{label:{fillStyle:'black',strokeStyle:'none',fontFamily:'default',fontWeight:'default',fontSize:'default*1.077',textBaseline:'middle',textAlign:'center'},labelOverflowPadding:5}},sprites:{text:{fontSize:'default',fontWeight:'default',fontFamily:'default',fillStyle:'black'}},seriesThemes:undefined,markerThemes:{type:['circle','cross','plus','square','triangle','diamond']},useGradients:!1,background:null},colorDefaults:['#94ae0a','#115fa6','#a61120','#ff8809','#ffd13e','#a61187','#24ad9a','#7c7474','#a66111'],constructor:function(a){this.initConfig(a);this.resolveDefaults()},defaultRegEx:/^default([+\-/\*]\d+(?:\.\d+)?)?$/,defaultOperators:{'*':function(a,b){return a*b},'+':function(a,b){return a+b},'-':function(a,b){return a-b}},resolveDefaults:function(){var a=this;Ext.onReady(function(){var g=Ext.clone(a.getSprites()),f=Ext.clone(a.getAxis()),e=Ext.clone(a.getSeries()),b,d,c;if(!a.superclass.defaults){b=Ext.getBody().createChild({tag:'div',cls:'x-component'});a.superclass.defaults={fontFamily:b.getStyle('fontFamily'),fontWeight:b.getStyle('fontWeight'),fontSize:parseFloat(b.getStyle('fontSize')),fontVariant:b.getStyle('fontVariant'),fontStyle:b.getStyle('fontStyle')};b.destroy()}a.replaceDefaults(g.text);a.setSprites(g);for(d in f){c=f[d];a.replaceDefaults(c.label);a.replaceDefaults(c.title)}a.setAxis(f);for(d in e){c=e[d];a.replaceDefaults(c.label)}a.setSeries(e)})},replaceDefaults:function(d){var e=this,g=e.superclass.defaults,h=e.defaultRegEx,c,b,a,f;if(Ext.isObject(d)){for(c in g){a=h.exec(d[c]);if(a){b=g[c];a=a[1];if(a){f=e.defaultOperators[a.charAt(0)];b=Math.round(f(b,parseFloat(a.substr(1))))}d[c]=b}}}},applyBaseColor:function(b){var a,c;if(b){a=b.isColor?b:Ext.draw.Color.fromString(b);c=a.getHSL()[2];if(c<0.15){a=a.createLighter(0.3)}else {if(c<0.3){a=a.createLighter(0.15)}else {if(c>0.85){a=a.createDarker(0.3)}else {if(c>0.7){a=a.createDarker(0.15)}}}}this.setColors([a.createDarker(0.3).toString(),a.createDarker(0.15).toString(),a.toString(),a.createLighter(0.12).toString(),a.createLighter(0.24).toString(),a.createLighter(0.31).toString()])}return b},applyColors:function(a){return a||this.colorDefaults},updateUseGradients:function(a){if(a){this.updateGradients({type:'linear',degrees:90})}},updateBackground:function(a){if(a){var b=this.getChart();b.defaults.background=a;this.setChart(b)}},updateGradients:function(d){var c=this.getColors(),g=[],e,a,f,b,h;if(Ext.isObject(d)){for(b=0,h=c&&c.length||0;bMath.PI){c-=Math.PI*2}if(p){c=c*(1-b)-Math.PI/2*b;m=h;h=g;g=m}else {c=c*(1-b)}a.rotationRads=c;a.x=n*(1-b)+j*b;a.y=o*(1-b)+k*b;d=j-n;e=k-o;if(Math.abs(e*h)>Math.abs(d*g)){if(e>0){a.calloutEndX=a.x-g/2*(d/e)*b;a.calloutEndY=a.y-g/2*b}else {a.calloutEndX=a.x+g/2*(d/e)*b;a.calloutEndY=a.y+g/2*b}}else {if(d>0){a.calloutEndX=a.x-h/2;a.calloutEndY=a.y-h/2*(e/d)*b}else {a.calloutEndX=a.x+h/2;a.calloutEndY=a.y+h/2*(e/d)*b}}if(a.calloutStartX&&a.calloutStartY){a.calloutHasLine=d>0&&a.calloutStartXa.calloutEndX||e>0&&a.calloutStartYa.calloutEndY}else {a.calloutHasLine=!0}}return a},pushDown:function(b,a){a=Ext.draw.modifier.Modifier.prototype.pushDown.call(this,b.calloutOriginal,a);return this.setAttrs(b,a)},popUp:function(a,b){a=a.prototype;b=this.setAttrs(a,b);if(this._next){return this._next.popUp(a,b)}else {return Ext.apply(a,b)}}},0,0,0,0,0,0,[Ext.chart.label,'Callout'],0);Ext.cmd.derive('Ext.chart.label.Label',Ext.draw.sprite.Text,{inheritableStatics:{def:{processors:{callout:'limited01',calloutHasLine:'bool',calloutPlaceX:'number',calloutPlaceY:'number',calloutStartX:'number',calloutStartY:'number',calloutEndX:'number',calloutEndY:'number',calloutColor:'color',calloutWidth:'number',calloutVertical:'bool',labelOverflowPadding:'number',display:'enums(none,under,over,rotate,insideStart,insideEnd,inside,outside)',orientation:'enums(horizontal,vertical)',renderer:'default'},defaults:{callout:0,calloutHasLine:!0,calloutPlaceX:0,calloutPlaceY:0,calloutStartX:0,calloutStartY:0,calloutEndX:0,calloutEndY:0,calloutWidth:1,calloutVertical:!1,calloutColor:'black',labelOverflowPadding:5,display:'none',orientation:'',renderer:null},triggers:{callout:'transform',calloutPlaceX:'transform',calloutPlaceY:'transform',labelOverflowPadding:'transform',calloutRotation:'transform',display:'hidden'},updaters:{hidden:function(a){a.hidden=a.display==='none'}}}},config:{fx:{customDurations:{callout:200}},field:null,calloutLine:!0},applyCalloutLine:function(a){if(a){return Ext.apply({},a)}},prepareModifiers:function(){Ext.draw.sprite.Text.prototype.prepareModifiers.apply(this,arguments);this.calloutModifier=new Ext.chart.label.Callout({sprite:this});this.fx.setNext(this.calloutModifier);this.calloutModifier.setNext(this.topModifier)},render:function(e,a){var b=this,d=b.attr,c=d.calloutColor;a.save();a.globalAlpha*=d.callout;if(a.globalAlpha>0&&d.calloutHasLine){if(c&&c.isGradient){c=c.getStops()[0].color}a.strokeStyle=c;a.fillStyle=c;a.lineWidth=d.calloutWidth;a.beginPath();a.moveTo(b.attr.calloutStartX,b.attr.calloutStartY);a.lineTo(b.attr.calloutEndX,b.attr.calloutEndY);a.stroke();a.beginPath();a.arc(b.attr.calloutStartX,b.attr.calloutStartY,1*d.calloutWidth,0,2*Math.PI,!0);a.fill();a.beginPath();a.arc(b.attr.calloutEndX,b.attr.calloutEndY,1*d.calloutWidth,0,2*Math.PI,!0);a.fill()}a.restore();Ext.draw.sprite.Text.prototype.render.apply(b,arguments)}},0,0,0,0,0,0,[Ext.chart.label,'Label'],0);Ext.cmd.derive('Ext.chart.series.Series',Ext.Base,{isSeries:!0,defaultBindProperty:'store',type:null,seriesType:'sprite',identifiablePrefix:'ext-line-',observableType:'series',darkerStrokeRatio:0.15,config:{chart:null,title:null,renderer:null,showInLegend:!0,triggerAfterDraw:!1,style:{},subStyle:{},themeStyle:{},colors:null,useDarkerStrokeColor:!0,store:null,label:{},labelOverflowPadding:null,showMarkers:!0,marker:null,markerSubStyle:null,itemInstancing:null,background:null,highlightItem:null,surface:null,overlaySurface:null,hidden:!1,highlight:!1,highlightCfg:{merge:function(a){return a},$value:{fillStyle:'yellow',strokeStyle:'red'}},animation:null,tooltip:null},directions:[],sprites:null,themeColorCount:function(){return 1},isStoreDependantColorCount:!1,themeMarkerCount:function(){return 0},getFields:function(d){var f=this,b=[],a,c,e;for(c=0,e=d.length;c0){if(!Ext.isBoolean(k)||!k){for(b=0;bd){d=a}}b.min=e;b.max=d},updateLabelData:function(){var h=this,l=h.getStore(),i=l.getData().items,e=h.getSprites(),k=h.getLabel().getTemplate(),d=Ext.Array.from(k.getField()),a,c,j,f,g,b;if(!e.length||!d.length){return}for(a=0;a=0){return a}}}}}},onChartDetached:function(b){var a=this;a.fireEvent('chartdetached',b,a);b.un('storechange','onStoreChange',a)},onChartAttached:function(b){var a=this;a.setBackground(a.getBackground());a.fireEvent('chartattached',b,a);b.on('storechange','onStoreChange',a);a.processData()},updateOverlaySurface:function(b){var a=this;if(b){if(a.getLabel()){a.getOverlaySurface().add(a.getLabel())}}},applyLabel:function(b,a){if(!a){a=new Ext.chart.Markers({zIndex:10});a.setTemplate(new Ext.chart.label.Label(b))}else {a.getTemplate().setAttributes(b)}return a},createItemInstancingSprite:function(f,e){var d=this,a=new Ext.chart.Markers(),c,b;a.setAttributes({zIndex:Number.MAX_VALUE});c=Ext.apply({},e);if(d.getHighlight()){c.highlight=d.getHighlight();c.modifiers=['highlight']}a.setTemplate(c);b=a.getTemplate();b.setAttributes(d.getStyle());b.fx.on('animationstart','onSpriteAnimationStart',this);b.fx.on('animationend','onSpriteAnimationEnd',this);f.bindMarker('items',a);d.getSurface().add(a);return a},getDefaultSpriteConfig:function(){return {type:this.seriesType,renderer:this.getRenderer()}},updateRenderer:function(d){var c=this,a=c.getChart(),b;if(a&&a.isInitializing){return}b=c.getSprites();if(b.length){b[0].setAttributes({renderer:d||null});if(a&&!a.isInitializing){a.redraw()}}},updateShowMarkers:function(d){var b=this.getSprites(),c=b&&b[0],a=c&&c.getMarker('markers');if(a){a.getTemplate().setAttributes({hidden:!d})}},createSprite:function(){var a=this,g=a.getSurface(),e=a.getItemInstancing(),b=g.add(a.getDefaultSpriteConfig()),f=a.getMarker(),c,d;b.setAttributes(a.getStyle());b.setSeries(a);if(e){b.itemsMarker=a.createItemInstancingSprite(b,e)}if(b.bindMarker){if(f){c=new Ext.chart.Markers();d=Ext.Object.merge({},f);if(a.getHighlight()){d.highlight=a.getHighlight();d.modifiers=['highlight']}c.setTemplate(d);c.getTemplate().fx.setCustomDurations({translationX:0,translationY:0});b.dataMarker=c;b.bindMarker('markers',c);a.getOverlaySurface().add(c)}if(a.getLabel().getTemplate().getField()){b.bindMarker('labels',a.getLabel())}}if(b.setStore){b.setStore(a.getStore())}b.fx.on('animationstart','onSpriteAnimationStart',a);b.fx.on('animationend','onSpriteAnimationEnd',a);a.sprites.push(b);return b},getSprites:Ext.emptyFn,onDataChanged:function(){var a=this,b=a.getChart(),d=b&&b.getStore(),c=a.getStore();if(c!==d){a.processData()}},isXType:function(a){return a==='series'},getItemId:function(){return this.getId()},applyThemeStyle:function(a,e){var d=this,b,c;b=a&&a.subStyle&&a.subStyle.fillStyle;c=b&&a.subStyle.strokeStyle;if(b&&!c){a.subStyle.strokeStyle=d.getStrokeColorsFromFillColors(b)}b=a&&a.markerSubStyle&&a.markerSubStyle.fillStyle;c=b&&a.markerSubStyle.strokeStyle;if(b&&!c){a.markerSubStyle.strokeStyle=d.getStrokeColorsFromFillColors(b)}return Ext.apply(e||{},a)},applyStyle:function(a,c){var b=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias('sprite.'+this.seriesType));if(b&&b.def){a=b.def.normalize(a)}return Ext.apply({},a,c)},applySubStyle:function(a,c){var b=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias('sprite.'+this.seriesType));if(b&&b.def){a=b.def.batchedNormalize(a,!0)}return Ext.merge({},c,a)},applyMarker:function(a,b){var d=a&&a.type||b&&b.type||'circle',c=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias('sprite.'+d));if(c&&c.def){a=c.def.normalize(Ext.isObject(a)?a:{},!0);a.type=d}return Ext.merge(b||{},a)},applyMarkerSubStyle:function(a,b){var d=a&&a.type||b&&b.type||'circle',c=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias('sprite.'+d));if(c&&c.def){a=c.def.batchedNormalize(a,!0)}return Ext.merge(b||{},a)},updateHidden:function(b){var a=this;a.getColors();a.getSubStyle();a.setSubStyle({hidden:b});a.processData();a.doUpdateStyles();if(!Ext.isArray(b)){a.updateLegendStore(b)}},updateLegendStore:function(c,g){var e=this,f=e.getChart(),b=f.getLegendStore(),d=e.getId(),a;if(b){if(arguments.length>1){a=b.findBy(function(a){return a.get('series')===d&&a.get('index')===g});if(a!==-1){a=b.getAt(a)}}else {a=b.findRecord('series',d)}if(a&&a.get('disabled')!==c){a.set('disabled',c)}}},setHiddenByIndex:function(c,b){var a=this;if(Ext.isArray(a.getHidden())){a.getHidden()[c]=b;a.updateHidden(a.getHidden());a.updateLegendStore(b,c)}else {a.setHidden(b)}},getStrokeColorsFromFillColors:function(c){var d=this,b=d.getUseDarkerStrokeColor(),e=Ext.isNumber(b)?b:d.darkerStrokeRatio,a;if(b){a=Ext.Array.map(c,function(a){a=Ext.isString(a)?a:a.stops[0].color;a=Ext.draw.Color.fromString(a);return a.createDarker(e).toString()})}else {a=Ext.Array.clone(c)}return a},updateThemeColors:function(d){var b=this,a=b.getThemeStyle(),f=Ext.Array.clone(d),e=b.getStrokeColorsFromFillColors(d),c={fillStyle:f,strokeStyle:e};a.subStyle=Ext.apply(a.subStyle||{},c);a.markerSubStyle=Ext.apply(a.markerSubStyle||{},c);b.doUpdateStyles()},themeOnlyIfConfigured:{},updateTheme:function(o){var c=this,d=o.getSeries(),m=c.getInitialConfig(),l=c.defaultConfig,n=c.getConfigurator().configs,k=d.defaults,j=d[c.type],i=c.themeOnlyIfConfigured,b,a,g,e,f,h;d=Ext.merge({},k,j);for(b in d){a=d[b];h=n[b];if(a!==null&&a!==undefined&&h){f=m[b];g=Ext.isObject(a);e=f===l[b];if(g){if(e&&i[b]){continue}a=Ext.merge({},a,f)}if(e||g){c[h.names.set](a)}}}},updateChartColors:function(b){var a=this;if(!a.getColors()){a.updateThemeColors(b)}},updateColors:function(a){this.updateThemeColors(a)},updateStyle:function(){this.doUpdateStyles()},updateSubStyle:function(){this.doUpdateStyles()},updateThemeStyle:function(){this.doUpdateStyles()},doUpdateStyles:function(){var c=this,b=c.sprites,e=c.getItemInstancing(),a=0,g=b&&b.length,h=c.getConfig('showMarkers',!0),f=c.getMarker(),d;for(;aa.to){c.call(this,a.max,a.getLabel(a.max),a.steps+1,a)}}else {var f=function(b){return !d.length||k(d,function(d){return l(d-b)>i})};h=this.getAxis();g=h.floatingAxes;d=[];i=(a.to-a.from)/(a.steps+1);if(h.getFloating()){for(j in g){d.push(g[j])}}if(a.mina.to&&f(a.max)){c.call(this,a.max,a.max,a.steps+1,a)}}},renderTicks:function(j,b,p,i){var c=this,a=c.attr,v=a.position,k=a.matrix,g=0.5*a.lineWidth,s=k.getXX(),q=k.getDX(),t=k.getYY(),r=k.getDY(),f=p.majorTicks,d=a.majorTickSize,e=p.minorTicks,h=a.minorTickSize;if(f){switch(v){case 'right':var m=function(a){return function(c,d,e){c=j.roundPixel(c*t+r)+g;b.moveTo(0,c);b.lineTo(a,c)}};c.iterate(f,m(d));e&&c.iterate(e,m(h));break;case 'left':var n=function(a){return function(c,d,e){c=j.roundPixel(c*t+r)+g;b.moveTo(i[2]-a,c);b.lineTo(i[2],c)}};c.iterate(f,n(d));e&&c.iterate(e,n(h));break;case 'bottom':var l=function(a){return function(c,d,e){c=j.roundPixel(c*s+q)-g;b.moveTo(c,0);b.lineTo(c,a)}};c.iterate(f,l(d));e&&c.iterate(e,l(h));break;case 'top':var o=function(a){return function(c,d,e){c=j.roundPixel(c*s+q)-g;b.moveTo(c,i[3]);b.lineTo(c,i[3]-a)}};c.iterate(f,o(d));e&&c.iterate(e,o(h));break;case 'angular':c.iterate(f,function(c,e,f){c=c/(a.max+1)*Math.PI*2+a.baseRotation;b.moveTo(a.centerX+a.length*Math.cos(c),a.centerY+a.length*Math.sin(c));b.lineTo(a.centerX+(a.length+d)*Math.cos(c),a.centerY+(a.length+d)*Math.sin(c))});break;case 'gauge':var u=c.getGaugeAngles();c.iterate(f,function(c,e,f){c=(c-a.min)/(a.max-a.min+1)*a.totalAngle-a.totalAngle+u.start;b.moveTo(a.centerX+a.length*Math.cos(c),a.centerY+a.length*Math.sin(c));b.lineTo(a.centerX+(a.length+d)*Math.cos(c),a.centerY+(a.length+d)*Math.sin(c))});break;}}},renderLabels:function(e,G,i,s){var h=this,a=h.attr,q=0.5*a.lineWidth,t=a.position,A=a.matrix,F=a.textPadding,J=A.getXX(),v=A.getDX(),K=A.getYY(),I=A.getDY(),m=0,w=i.majorTicks,k=Math.max(a.majorTickSize,a.minorTickSize)+a.lineWidth,y=Ext.draw.Draw.isBBoxIntersect,b=h.getLabel(),E,C,f=null,p=0,u=0,z=i.segmenter,o=h.getRenderer(),l=h.getAxis(),D=l.getTitle(),n=D&&D.attr.text!==''&&D.getBBox(),B,g=null,c,x,d,j,r;if(w&&b&&!b.attr.hidden){E=b.attr.font;if(G.font!==E){G.font=E}b.setAttributes({translationX:0,translationY:0},!0);b.applyTransformations();B=b.attr.inverseMatrix.elements.slice(0);switch(t){case 'left':j=n?n.x+n.width:0;switch(b.attr.textAlign){case 'start':r=e.roundPixel(j+v)-q;break;case 'end':r=e.roundPixel(s[2]-k+v)-q;break;default:r=e.roundPixel(j+(s[2]-j-k)/2+v)-q;};b.setAttributes({translationX:r},!0);break;case 'right':j=n?s[2]-n.x:0;switch(b.attr.textAlign){case 'start':r=e.roundPixel(k+v)+q;break;case 'end':r=e.roundPixel(s[2]-j+v)+q;break;default:r=e.roundPixel(k+(s[2]-k-j)/2+v)+q;};b.setAttributes({translationX:r},!0);break;case 'top':j=n?n.y+n.height:0;b.setAttributes({translationY:e.roundPixel(j+(s[3]-j-k)/2)-q},!0);break;case 'bottom':j=n?s[3]-n.y:0;b.setAttributes({translationY:e.roundPixel(k+(s[3]-k-j)/2)+q},!0);break;case 'radial':b.setAttributes({translationX:a.centerX},!0);break;case 'angular':b.setAttributes({translationY:a.centerY},!0);break;case 'gauge':b.setAttributes({translationY:a.centerY},!0);break;}if(t==='left'||t==='right'){h.iterate(w,function(j,a,n){if(a===undefined){return}if(o){d=Ext.callback(o,null,[l,a,i,f],0,l)}else {d=z.renderer(a,i,f)}f=a;b.setAttributes({text:String(d),translationY:e.roundPixel(j*K+I)},!0);b.applyTransformations();m=Math.max(m,b.getBBox().width+k);if(m<=h.thickness){x=Ext.draw.Matrix.fly(b.attr.matrix.elements.slice(0));c=x.prepend.apply(x,B).transformBBox(b.getBBox(!0));if(g&&!y(c,g,F)){return}e.renderSprite(b);g=c;p+=c.height;u++}})}else {if(t==='top'||t==='bottom'){h.iterate(w,function(j,a,n){if(a===undefined){return}if(o){d=Ext.callback(o,null,[l,a,i,f],0,l)}else {d=z.renderer(a,i,f)}f=a;b.setAttributes({text:String(d),translationX:e.roundPixel(j*J+v)},!0);b.applyTransformations();m=Math.max(m,b.getBBox().height+k);if(m<=h.thickness){x=Ext.draw.Matrix.fly(b.attr.matrix.elements.slice(0));c=x.prepend.apply(x,B).transformBBox(b.getBBox(!0));if(g&&!y(c,g,F)){return}e.renderSprite(b);g=c;p+=c.width;u++}})}else {if(t==='radial'){h.iterate(w,function(j,h,k){if(h===undefined){return}if(o){d=Ext.callback(o,null,[l,h,i,f],0,l)}else {d=z.renderer(h,i,f)}f=h;if(typeof d!=='undefined'){b.setAttributes({text:String(d),translationX:a.centerX-e.roundPixel(j)/a.max*a.length*Math.cos(a.baseRotation+Math.PI/2),translationY:a.centerY-e.roundPixel(j)/a.max*a.length*Math.sin(a.baseRotation+Math.PI/2)},!0);b.applyTransformations();c=b.attr.matrix.transformBBox(b.getBBox(!0));if(g&&!y(c,g)){return}e.renderSprite(b);g=c;p+=c.width;u++}})}else {if(t==='angular'){C=a.majorTickSize+a.lineWidth*0.5+(parseInt(b.attr.fontSize,10)||10)/2;h.iterate(w,function(k,h,n){if(h===undefined){return}if(o){d=Ext.callback(o,null,[l,h,i,f],0,l)}else {d=z.renderer(h,i,f)}f=h;m=Math.max(m,Math.max(a.majorTickSize,a.minorTickSize)+(a.lineCap!=='butt'?a.lineWidth*0.5:0));if(typeof d!=='undefined'){var j=k/(a.max+1)*Math.PI*2+a.baseRotation;b.setAttributes({text:String(d),translationX:a.centerX+(a.length+C)*Math.cos(j),translationY:a.centerY+(a.length+C)*Math.sin(j)},!0);b.applyTransformations();c=b.attr.matrix.transformBBox(b.getBBox(!0));if(g&&!y(c,g)){return}e.renderSprite(b);g=c;p+=c.width;u++}})}else {if(t==='gauge'){var H=h.getGaugeAngles();h.iterate(w,function(k,h,m){if(h===undefined){return}if(o){d=Ext.callback(o,null,[l,h,i,f],0,l)}else {d=z.renderer(h,i,f)}f=h;if(typeof d!=='undefined'){var j=(k-a.min)/(a.max-a.min+1)*a.totalAngle-a.totalAngle+H.start;b.setAttributes({text:String(d),translationX:a.centerX+(a.length+10)*Math.cos(j),translationY:a.centerY+(a.length+10)*Math.sin(j)},!0);b.applyTransformations();c=b.attr.matrix.transformBBox(b.getBBox(!0));if(g&&!y(c,g)){return}e.renderSprite(b);g=c;p+=c.width;u++}})}}}}}if(a.enlargeEstStepSizeByText&&u){p/=u;p+=k;p*=2;if(a.estStepSize1){h.thickness=m;a.bbox.plain.dirty=!0;a.bbox.transform.dirty=!0;h.doThicknessChanged();return !1}}},renderAxisLine:function(g,b,j,f){var h=this,a=h.attr,c=a.lineWidth*0.5,i=a.position,d,e;if(a.axisLine&&a.length){switch(i){case 'left':d=g.roundPixel(f[2])-c;b.moveTo(d,-a.endGap);b.lineTo(d,a.length+a.startGap+1);break;case 'right':b.moveTo(c,-a.endGap);b.lineTo(c,a.length+a.startGap+1);break;case 'bottom':b.moveTo(-a.startGap,c);b.lineTo(a.length+a.endGap,c);break;case 'top':d=g.roundPixel(f[3])-c;b.moveTo(-a.startGap,d);b.lineTo(a.length+a.endGap,d);break;case 'angular':b.moveTo(a.centerX+a.length,a.centerY);b.arc(a.centerX,a.centerY,a.length,0,Math.PI*2,!0);break;case 'gauge':e=h.getGaugeAngles();b.moveTo(a.centerX+Math.cos(e.start)*a.length,a.centerY+Math.sin(e.start)*a.length);b.arc(a.centerX,a.centerY,a.length,e.start,e.end,!0);break;}}},getGaugeAngles:function(){var c=this,b=c.attr.totalAngle,a;if(b<=Math.PI){a=(Math.PI-b)*0.5}else {a=-(Math.PI*2-b)*0.5}a=Math.PI*2-a;return {start:a,end:a-b}},renderGridLines:function(s,t,p,r){var c=this,q=c.getAxis(),b=c.attr,j=b.matrix,i=b.startGap,k=b.endGap,n=j.getXX(),o=j.getYY(),l=j.getDX(),m=j.getDY(),g=b.position,f=q.getGridAlignment(),h=p.majorTicks,a,e,d;if(b.grid){if(h){if(g==='left'||g==='right'){d=b.min*o+m+k+i;c.iterate(h,function(g,h,b){a=g*o+m+k;c.putMarker(f+'-'+(b%2?'odd':'even'),{y:a,height:d-a},e=b,!0);d=a});e++;a=0;c.putMarker(f+'-'+(e%2?'odd':'even'),{y:a,height:d-a},e,!0)}else {if(g==='top'||g==='bottom'){d=b.min*n+l+i;if(i){c.putMarker(f+'-even',{x:0,width:d},-1,!0)}c.iterate(h,function(g,h,b){a=g*n+l+i;c.putMarker(f+'-'+(b%2?'odd':'even'),{x:a,width:d-a},e=b,!0);d=a});e++;a=b.length+b.startGap+b.endGap;c.putMarker(f+'-'+(e%2?'odd':'even'),{x:a,width:d-a},e,!0)}else {if(g==='radial'){c.iterate(h,function(e,h,g){if(!e){return}a=e/b.max*b.length;c.putMarker(f+'-'+(g%2?'odd':'even'),{scalingX:a,scalingY:a},g,!0);d=a})}else {if(g==='angular'){c.iterate(h,function(g,h,e){if(!b.length){return}a=g/(b.max+1)*Math.PI*2+b.baseRotation;c.putMarker(f+'-'+(e%2?'odd':'even'),{rotationRads:a,rotationCenterX:0,rotationCenterY:0,scalingX:b.length,scalingY:b.length},e,!0);d=a})}}}}}}},renderLimits:function(u){var k=this,i=k.getAxis(),t=i.getChart(),s=t.getInnerPadding(),h=Ext.Array.from(i.getLimits());if(!h.length){return}var m=i.limits.surface.getRect(),c=k.attr,o=c.matrix,g=c.position,p=Ext.Object.chain,d=i.limits.titles,f,l,n,a,b,e,j,q,r;d.instances=[];d.position=0;if(g==='left'||g==='right'){for(e=0,j=h.length;ec.max){continue}b=b/c.max*c.length;a.line.cx=c.centerX;a.line.cy=c.centerY;a.line.scalingX=b;a.line.scalingY=b;a.line.strokeStyle=a.line.strokeStyle||c.strokeStyle;k.putMarker('circular-limit-lines',a.line,e,!0);if(a.line.title){d.createInstance(a.line.title);f=d.getBBoxFor(d.position-1);d.setAttributesFor(d.position-1,{x:c.centerX,y:c.centerY-b-f.height/2,fillStyle:a.line.title.fillStyle||a.line.strokeStyle})}}}else {if(g==='angular'){for(e=0,j=h.length;e-0.5*Math.PI&&b<0.5*Math.PI||b>1.5*Math.PI&&b<2*Math.PI?1:-1;d.setAttributesFor(d.position-1,{x:c.centerX+0.5*c.length*Math.cos(b)+n*f.height/2*Math.sin(b),y:c.centerY+0.5*c.length*Math.sin(b)-n*f.height/2*Math.cos(b),rotationRads:n===1?b:b-Math.PI,fillStyle:a.line.title.fillStyle||a.line.strokeStyle})}}}else {if(g==='gauge'){}}}}}},doThicknessChanged:function(){var a=this.getAxis();if(a){a.onThicknessChanged()}},render:function(e,a,d){var b=this,c=b.getLayoutContext();if(c){if(!1===b.renderLabels(e,a,c,d)){return !1}a.beginPath();b.renderTicks(e,a,c,d);b.renderAxisLine(e,a,c,d);b.renderGridLines(e,a,c,d);b.renderLimits(d);a.stroke()}}},0,0,0,0,['sprite.axis'],[['markerHolder',Ext.chart.MarkerHolder]],[Ext.chart.axis.sprite,'Axis'],0);Ext.cmd.derive('Ext.chart.axis.segmenter.Segmenter',Ext.Base,{config:{axis:null},constructor:function(a){this.initConfig(a)},renderer:function(a,b){return String(a)},from:function(a){return a},diff:Ext.emptyFn,align:Ext.emptyFn,add:Ext.emptyFn,preferredStep:Ext.emptyFn},1,0,0,0,0,0,[Ext.chart.axis.segmenter,'Segmenter'],0);Ext.cmd.derive('Ext.chart.axis.segmenter.Names',Ext.chart.axis.segmenter.Segmenter,{renderer:function(a,b){return a},diff:function(b,a,c){return Math.floor(a-b)},align:function(a,b,c){return Math.floor(a)},add:function(a,b,c){return a+b},preferredStep:function(d,a,b,c){return {unit:1,step:1}}},0,0,0,0,['segmenter.names'],0,[Ext.chart.axis.segmenter,'Names'],0);Ext.cmd.derive('Ext.chart.axis.segmenter.Numeric',Ext.chart.axis.segmenter.Segmenter,{isNumeric:!0,renderer:function(b,a){return b.toFixed(Math.max(0,a.majorTicks.unit.fixes))},diff:function(c,b,a){return Math.floor((b-c)/a.scale)},align:function(c,a,b){return Math.floor(c/(b.scale*a))*b.scale*a},add:function(a,b,c){return a+b*c.scale},preferredStep:function(d,a){var b=Math.floor(Math.log(a)*Math.LOG10E),c=Math.pow(10,b);a/=c;if(a<2){a=2}else {if(a<5){a=5}else {if(a<10){a=10;b++}}}return {unit:{fixes:-b,scale:c},step:a}},exactStep:function(d,a){var b=Math.floor(Math.log(a)*Math.LOG10E),c=Math.pow(10,b);return {unit:{fixes:-b+(a%c===0?0:1),scale:1},step:a}},adjustByMajorUnit:function(g,f,c){var e=c[0],d=c[1],b=g*f,a=e%b;if(a!==0){c[0]=e-a+(e<0?-b:0)}a=d%b;if(a!==0){c[1]=d-a+(d>0?b:0)}}},0,0,0,0,['segmenter.numeric'],0,[Ext.chart.axis.segmenter,'Numeric'],0);Ext.cmd.derive('Ext.chart.axis.segmenter.Time',Ext.chart.axis.segmenter.Segmenter,{config:{step:null},renderer:function(b,c){var a=Ext.Date;switch(c.majorTicks.unit){case 'y':return a.format(b,'Y');case 'mo':return a.format(b,'Y-m');case 'd':return a.format(b,'Y-m-d');}return a.format(b,'Y-m-d\nH:i:s')},from:function(a){return new Date(a)},diff:function(b,a,c){if(isFinite(b)){b=new Date(b)}if(isFinite(a)){a=new Date(a)}return Ext.Date.diff(b,a,c)},align:function(a,b,c){if(c==='d'&&b>=7){a=Ext.Date.align(a,'d',b);a.setDate(a.getDate()-a.getDay()+1);return a}else {return Ext.Date.align(a,c,b)}},add:function(a,b,c){return Ext.Date.add(new Date(a),c,b)},stepUnits:[[Ext.Date.YEAR,1,2,5,10,20,50,100,200,500],[Ext.Date.MONTH,1,3,6],[Ext.Date.DAY,1,7,14],[Ext.Date.HOUR,1,6,12],[Ext.Date.MINUTE,1,5,15,30],[Ext.Date.SECOND,1,5,15,30],[Ext.Date.MILLI,1,2,5,10,20,50,100,200,500]],preferredStep:function(g,h){if(this.getStep()){return this.getStep()}var i=new Date(+g),j=new Date(+g+Math.ceil(h)),c=this.stepUnits,b,f,e,a,d;for(a=0;a0){for(d=1;dg){a.max=a.to}if(a.fromf){a.max=a.to}if(a.from0){a.from=a.from+d*a.step*b;while(a.from0?a:b},applyLabel:function(b,a){if(!a){a=new Ext.draw.sprite.Text({})}if(this.limitTitleTpl){this.limitTitleTpl.setAttributes(b)}a.setAttributes(b);return a},applyLayout:function(a,b){a=Ext.factory(a,null,b,'axisLayout');a.setAxis(this);return a},applySegmenter:function(a,b){a=Ext.factory(a,null,b,'segmenter');a.setAxis(this);return a},updateMinimum:function(){this.range=null},updateMaximum:function(){this.range=null},hideLabels:function(){this.getSprites()[0].setDirty(!0);this.setLabel({hidden:!0})},showLabels:function(){this.getSprites()[0].setDirty(!0);this.setLabel({hidden:!1})},renderFrame:function(){this.getSurface().renderFrame()},updateChart:function(c,b){var a=this,d;if(b){b.unregister(a);b.un('serieschange',a.onSeriesChange,a);b.un('redraw',a.renderLimits,a);a.linkAxis();a.fireEvent('chartdetached',b,a)}if(c){c.on('serieschange',a.onSeriesChange,a);a.surface=null;d=a.getSurface();a.getLabel().setSurface(d);d.add(a.getSprites());d.add(a.getTitle());c.register(a);a.fireEvent('chartattached',c,a)}},applyBackground:function(a){var b=Ext.ClassManager.getByAlias('sprite.rect');return b.def.normalize(a)},processData:function(){this.getLayout().processData();this.range=null},getDirection:function(){return this.getChart().getDirectionForAxis(this.getPosition())},isSide:function(){var a=this.getPosition();return a==='left'||a==='right'},applyFields:function(a){return Ext.Array.from(a)},applyVisibleRange:function(a,b){this.getChart();if(a[0]>a[1]){var c=a[0];a[0]=a[1];a[0]=c}if(a[1]===a[0]){a[1]+=1/this.getMaxZoom()}if(a[1]>a[0]+1){a[0]=0;a[1]=1}else {if(a[0]<0){a[1]-=a[0];a[0]=0}else {if(a[1]>1){a[0]-=a[1]-1;a[1]=1}}}if(b&&a[0]===b[0]&&a[1]===b[1]){return undefined}return a},updateVisibleRange:function(a){this.fireEvent('visiblerangechange',this,a)},onSeriesChange:function(g){var a=this,e=g.getSeries(),h='get'+a.getDirection()+'Axis',f=[],b,i=e.length,d,c;for(b=0;bb){b=g[1]}}}if(!isFinite(b)){b=a.prevMax}if(!isFinite(c)){c=a.prevMin}if(a.getLabelInSpan()||c===b){b+=a.getIncrement();c-=a.getIncrement()}if(Ext.isNumber(a.getMinimum())){c=a.getMinimum()}else {a.prevMin=c}if(Ext.isNumber(a.getMaximum())){b=a.getMaximum()}else {a.prevMax=b}a.range=[Ext.Number.correctFloat(c),Ext.Number.correctFloat(b)];if(a.getReconcileRange()){a.reconcileRange()}if(a.getAdjustByMajorUnit()&&h.adjustByMajorUnit&&!a.getMajorTickSteps()){d=Ext.Object.chain(a.getSprites()[0].attr);d.min=a.range[0];d.max=a.range[1];d.visibleMin=j[0];d.visibleMax=j[1];f={attr:d,segmenter:h};l.calculateLayout(f);e=f.majorTicks;if(e){h.adjustByMajorUnit(e.step,e.unit.scale,a.range);d.min=a.range[0];d.max=a.range[1];delete f.majorTicks;l.calculateLayout(f);e=f.majorTicks;h.adjustByMajorUnit(e.step,e.unit.scale,a.range)}else {if(!a.hasClearRangePending){a.hasClearRangePending=!0;a.getChart().on('layout','clearRange',a)}}}if(!Ext.Array.equals(a.range,a.oldRange||[])){a.fireEvent('rangechange',a,a.range);a.oldRange=a.range}return a.range},clearRange:function(){delete this.hasClearRangePending;this.range=null},reconcileRange:function(){var a=this,e=a.getChart().getAxes(),g=a.getDirection(),d,f,c,b;if(!e){return}for(d=0,f=e.length;da.range[1]){a.range[1]=b[1]}}},applyStyle:function(b,a){var c=Ext.ClassManager.getByAlias('sprite.'+this.seriesType);if(c&&c.def){b=c.def.normalize(b)}a=Ext.apply(a||{},b);return a},themeOnlyIfConfigured:{grid:!0},updateTheme:function(p){var c=this,d=p.getAxis(),n=c.getPosition(),m=c.getInitialConfig(),l=c.defaultConfig,o=c.getConfigurator().configs,k=d.defaults,j=d[n],i=c.themeOnlyIfConfigured,b,a,g,e,f,h;d=Ext.merge({},k,j);for(b in d){a=d[b];h=o[b];if(a!==null&&a!==undefined&&h){f=m[b];g=Ext.isObject(a);e=f===l[b];if(g){if(e&&i[b]){continue}a=Ext.merge({},a,f)}if(e||g){c[h.names.set](a)}}}},updateCenter:function(d){var e=this.getSprites(),c=e[0],a=d[0],b=d[1];if(c){c.setAttributes({centerX:a,centerY:b})}if(this.gridSpriteEven){this.gridSpriteEven.getTemplate().setAttributes({translationX:a,translationY:b,rotationCenterX:a,rotationCenterY:b})}if(this.gridSpriteOdd){this.gridSpriteOdd.getTemplate().setAttributes({translationX:a,translationY:b,rotationCenterX:a,rotationCenterY:b})}},getSprites:function(){if(!this.getChart()){return}var a=this,e=a.getRange(),g=a.getPosition(),i=a.getChart(),d=i.getAnimation(),b,f,h=a.getLength(),c=a.superclass;if(d===!1){d={duration:0}}if(e){f=Ext.applyIf({position:g,axis:a,min:e[0],max:e[1],length:h,grid:a.getGrid(),hidden:a.getHidden(),titleOffset:a.titleOffset,layout:a.getLayout(),segmenter:a.getSegmenter(),totalAngle:a.getTotalAngle(),label:a.getLabel()},a.getStyle());if(!a.sprites.length){while(!c.xtype){c=c.superclass}b=Ext.create('sprite.'+c.xtype,f);b.fx.setCustomDurations({baseRotation:0});b.fx.on('animationstart','onAnimationStart',a);b.fx.on('animationend','onAnimationEnd',a);b.setLayout(a.getLayout());b.setSegmenter(a.getSegmenter());b.setLabel(a.getLabel());a.sprites.push(b);a.updateTitleSprite()}else {b=a.sprites[0];b.setAnimation(d);b.setAttributes(f)}if(a.getRenderer()){b.setRenderer(a.getRenderer())}}return a.sprites},updateTitleSprite:function(){var b=this,g=b.getLength();if(!b.sprites[0]||!Ext.isNumber(g)){return}var f=this.sprites[0].thickness,i=b.getSurface(),a=b.getTitle(),h=b.getPosition(),e=b.getMargin(),c=b.getTitleMargin(),d=i.roundPixel(g/2);if(a){switch(h){case 'top':a.setAttributes({x:d,y:e+c/2,textBaseline:'top',textAlign:'center'},!0);a.applyTransformations();b.titleOffset=a.getBBox().height+c;break;case 'bottom':a.setAttributes({x:d,y:f+c/2,textBaseline:'top',textAlign:'center'},!0);a.applyTransformations();b.titleOffset=a.getBBox().height+c;break;case 'left':a.setAttributes({x:e+c/2,y:d,textBaseline:'top',textAlign:'center',rotationCenterX:e+c/2,rotationCenterY:d,rotationRads:-Math.PI/2},!0);a.applyTransformations();b.titleOffset=a.getBBox().width+c;break;case 'right':a.setAttributes({x:f-e+c/2,y:d,textBaseline:'bottom',textAlign:'center',rotationCenterX:f+c/2,rotationCenterY:d,rotationRads:Math.PI/2},!0);a.applyTransformations();b.titleOffset=a.getBBox().width+c;break;}}},onThicknessChanged:function(){this.getChart().onThicknessChanged()},getThickness:function(){if(this.getHidden()){return 0}return (this.sprites[0]&&this.sprites[0].thickness||1)+this.titleOffset+this.getMargin()},onAnimationStart:function(){this.spriteAnimationCount++;if(this.spriteAnimationCount===1){this.fireEvent('animationstart',this)}},onAnimationEnd:function(){this.spriteAnimationCount--;if(this.spriteAnimationCount===0){this.fireEvent('animationend',this)}},getItemId:function(){return this.getId()},getAncestorIds:function(){return [this.getChart().getId()]},isXType:function(a){return a==='axis'},resolveListenerScope:function(d){var c=this,e=Ext._namedScopes[d],a=c.getChart(),b;if(!e){b=a?a.resolveListenerScope(d,!1):d||c}else {if(e.isThis){b=c}else {if(e.isController){b=a?a.resolveListenerScope(d,!1):c}else {if(e.isSelf){b=a?a.resolveListenerScope(d,!1):c;if(b===a&&!a.getInheritedConfig('defaultListenerScope')){b=c}}}}}return b},destroy:function(){var a=this;a.setChart(null);a.surface.destroy();a.surface=null;a.callParent()}},1,['axis'],['axis'],{'axis':!0},['widget.axis'],[['observable',Ext.mixin.Observable]],[Ext.chart.axis,'Axis'],0);Ext.cmd.derive('Ext.chart.LegendBase',Ext.view.View,{config:{tpl:['
    ','','
    ','','{name}','
    ','
    ','
    '],nodeContainerSelector:'div.x-legend-container',itemSelector:'div.x-legend-item',docked:'bottom'},setDocked:function(b){var a=this,d=a.ownerCt,c;a.docked=b;switch(b){case 'top':case 'bottom':a.addCls('x-horizontal');c='hbox';break;case 'left':case 'right':a.removeCls('x-horizontal');c='vbox';break;}if(d){d.setDocked(b)}},setStore:function(a){this.bindStore(a)},clearViewEl:function(){Ext.view.View.prototype.clearViewEl.apply(this,arguments);Ext.removeNode(this.getNodeContainer())},onItemClick:function(b,c,a,d){Ext.view.View.prototype.onItemClick.apply(this,arguments);this.toggleItem(a)}},0,0,['component','box','dataview'],{'component':!0,'box':!0,'dataview':!0},0,0,[Ext.chart,'LegendBase'],0);Ext.cmd.derive('Ext.chart.Legend',Ext.chart.LegendBase,{config:{baseCls:'x-legend',padding:5,rect:null,disableSelection:!0,toggleable:!0},toggleItem:function(h){if(!this.getToggleable()){return}var b=this.getStore(),f=0,d,g=!0,c,e,a;if(b){e=b.getCount();for(c=0;c1;a=b.getAt(h);if(a){d=a.get('disabled');if(d||g){a.set('disabled',!d)}}}}},0,['legend'],['component','box','dataview','legend'],{'component':!0,'box':!0,'dataview':!0,'legend':!0},['widget.legend'],0,[Ext.chart,'Legend'],0);Ext.cmd.derive('Ext.chart.AbstractChart',Ext.draw.Container,{isChart:!0,defaultBindProperty:'store',config:{store:'ext-empty-store',theme:'default',style:null,animation:!Ext.isIE8,series:[],axes:[],legend:null,colors:null,insetPadding:{top:10,left:10,right:10,bottom:10},background:null,interactions:[],mainRect:null,resizeHandler:null,highlightItem:null},animationSuspendCount:0,chartLayoutSuspendCount:0,axisThicknessSuspendCount:0,isThicknessChanged:!1,surfaceZIndexes:{background:0,main:1,grid:2,series:3,axis:4,chart:5,overlay:6,events:7},constructor:function(b){var a=this;a.itemListeners={};a.surfaceMap={};a.chartComponents={};a.isInitializing=!0;a.suspendChartLayout();a.animationSuspendCount++;Ext.draw.Container.prototype.constructor.apply(this,arguments);delete a.isInitializing;a.getSurface('main');a.getSurface('chart').setFlipRtlText(a.getInherited().rtl);a.getSurface('overlay').waitFor(a.getSurface('series'));a.animationSuspendCount--;a.resumeChartLayout()},applyAnimation:function(a,b){if(!a){a={duration:0}}else {if(a===!0){a={easing:'easeInOut',duration:500}}}return b?Ext.apply({},a,b):a},getAnimation:function(){if(this.animationSuspendCount){return {duration:0}}else {return (arguments.callee.$previous||Ext.draw.Container.prototype.getAnimation).call(this)}},applyInsetPadding:function(a,b){if(!Ext.isObject(a)){return Ext.util.Format.parseBox(a)}else {if(!b){return a}else {return Ext.apply(b,a)}}},suspendAnimation:function(){var b=this,c=b.getSeries(),e=c.length,d=-1,a;b.animationSuspendCount++;if(b.animationSuspendCount===1){while(++d0){this.axisThicknessSuspendCount--;if(this.axisThicknessSuspendCount===0&&this.isThicknessChanged){this.onThicknessChanged()}}},onThicknessChanged:function(){if(this.axisThicknessSuspendCount===0){this.isThicknessChanged=!1;this.performLayout()}else {this.isThicknessChanged=!0}},applySprites:function(a){var b=this.getSurface('chart');a=Ext.Array.from(a);b.removeAll(!0);b.add(a);return a},initItems:function(){var a=this.items,b,d,c;if(a&&!a.isMixedCollection){this.items=[];a=Ext.Array.from(a);for(b=0,d=a.length;b=0){a.splice(c,1)}},applyAxes:function(d,h){var b=this,l={left:'right',right:'left'},f=[],a,j,g,i,c,k,e;b.animationSuspendCount++;b.getStore();if(!h){h=[];h.map={}}e=h.map;f.map={};d=Ext.Array.from(d,!0);for(c=0,k=d.length;c0){a=b.applyColors(a)}return a||c&&c.getColors()},applyColors:function(a){a=Ext.Array.map(a,function(b){if(Ext.isString(b)){return b}else {return b.toString()}});return a},updateColors:function(k){var a=this,i=a.getTheme(),h=k||i&&i.getColors(),g=0,e=a.getSeries(),j=e&&e.length,b,d,f,c;if(h.length){for(b=0;b=0&&e<=a[2]&&f>=0&&f<=a[3])){return null}for(;d>=0;d--){h=g[d];b=h.getItemForPoint(e,f);if(b){return b}}return null},getItemsForPoint:function(h,i){var f=this,c=f.getSeries(),g=c.length,b=f.hasFirstLayout?g-1:-1,e=[],d,a;for(;b>=0;b--){d=c[b];a=d.getItemForPoint(h,i);if(a){e.push(a)}}return e},onAnimationStart:function(){this.fireEvent('animationstart',this)},onAnimationEnd:function(){this.fireEvent('animationend',this)},onDataChanged:function(){var a=this;if(a.isInitializing){return}var e=a.getMainRect(),c=a.getStore(),b=a.getSeries(),d=a.getAxes();if(!c||!d||!b){return}if(!e){a.on({redraw:a.onDataChanged,scope:a,single:!0});return}a.processData();a.redraw()},recordCount:0,processData:function(){var a=this,e=a.getStore().getCount(),f=a.getSeries(),g=f.length,b=!1,d=0,c;for(;da.recordCount){a.updateColors(a.getColors());a.recordCount=e}},bindStore:function(a){this.setStore(a)},applyHighlightItem:function(a,d){if(a===d){return}if(Ext.isObject(a)&&Ext.isObject(d)){var b=a,c=d,e=b.sprite&&(b.sprite[0]||b.sprite),f=c.sprite&&(c.sprite[0]||c.sprite);if(e===f&&b.index===c.index){return}}return a},updateHighlightItem:function(a,b){if(b){b.series.setAttributesForItem(b,{highlighted:!1})}if(a){a.series.setAttributesForItem(a,{highlighted:!0});this.fireEvent('itemhighlight',this,a,b)}this.fireEvent('itemhighlightchange',this,a,b)},destroyChart:function(){var a=this,f=a.getLegend(),h=a.getAxes(),g=a.getSeries(),e=a.getInteractions(),d=[],b,c;a.surfaceMap=null;for(b=0,c=e.length;bf&&bg&&ch){b=h}}if(ci){c=i}}a.selectionRect.setAttributes({width:b-a.startX,height:c-a.startY});if(Math.abs(a.startX-b)<11||Math.abs(a.startY-c)<11){a.selectionRect.setAttributes({globalAlpha:0.5})}else {a.selectionRect.setAttributes({globalAlpha:1})}l.renderFrame();return !1}},onGestureEnd:function(o){var a=this;if(a.zoomAnimationInProgress){return}if(a.getLocks()[a.gestureEvent]===a){var d=a.getChart(),e=a.getSurface(),f=d.getInnerRect(),k=d.getInnerPadding(),i=k.left,l=i+f[2],j=k.top,m=j+f[3],h=f[2],g=f[3],n=d.getEventXY(o),b=n[0],c=n[1];if(bl){b=l}}if(cm){c=m}}if(Math.abs(a.startX-b)<11||Math.abs(a.startY-c)<11){e.remove(a.selectionRect)}else {a.zoomBy([Math.min(a.startX,b)/h,1-Math.max(a.startY,c)/g,Math.max(a.startX,b)/h,1-Math.min(a.startY,c)/g]);a.selectionRect.setAttributes({x:Math.min(a.startX,b),y:Math.min(a.startY,c),width:Math.abs(a.startX-b),height:Math.abs(a.startY-c)});a.selectionRect.setAnimation(d.getAnimation()||{duration:0});a.selectionRect.setAttributes({globalAlpha:0,x:0,y:0,width:h,height:g});a.zoomAnimationInProgress=!0;d.suspendThicknessChanged();a.selectionRect.fx.on('animationend',function(){d.resumeThicknessChanged();e.remove(a.selectionRect);a.selectionRect=null;a.zoomAnimationInProgress=!1})}e.renderFrame();a.sync();a.unlockEvents(a.gestureEvent);a.setSeriesOpacity(1);if(!a.zoomAnimationInProgress){e.remove(a.selectionRect);a.selectionRect=null}}},zoomBy:function(b){var d=this,l=d.getAxes(),j=d.getChart(),k=j.getAxes(),n=j.getInherited().rtl,e,i={},f,g;if(n){b=b.slice();f=1-b[0];g=1-b[2];b[0]=Math.min(f,g);b[2]=Math.max(f,g)}for(var h=0;h=e[b-1]){return b-1}while(a+1>1,f=e[d];if(f===c){return d}else {if(ft&&cv&&dDec: '+a._meta_dec})]);console.log(a);e.addCatalog(b)}},0,['coadd-aladin'],['component','box','container','panel','aladin','coadd-aladin'],{'component':!0,'box':!0,'container':!0,'panel':!0,'aladin':!0,'coadd-aladin':!0},['widget.coadd-aladin'],0,[Explorer.view.coadd,'Aladin'],0);Ext.cmd.derive('Explorer.view.coadd.CoaddController',Ext.app.ViewController,{listen:{component:{'coadd-objects':{loadpanel:'onLoadPanel'},'coadd-visiomatic':{changedataset:'onChangeDataset',changeimage:'onChangeImage'}},store:{'#datasets':{load:'onLoadDatasets'}}},onLoadPanel:function(a,b){this.loadProduct(a)},loadProduct:function(d){var a=this,c=a.getView(),e=a.getViewModel(),b=e.getStore('products');c.setLoading(!0);b.addFilter({property:'prd_name',value:d});b.load({callback:function(){if(this.count()===1){a.onLoadProduct(this.first());c.setLoading(!1)}}})},onLoadProduct:function(b){var a=this,d=a.getViewModel(),e=a.getView(),c=a.lookup('detailPanel');d.set('currentProduct',b);c.setTitle(b.get('prd_display_name'));a.loadAssociations(b)},loadAssociations:function(e){var a=this,c=a.getView(),d=a.getViewModel(),b=d.getStore('associations');c.setLoading(!0);b.addFilter({property:'pca_product',value:e.get('id')});b.load({callback:function(){if(this.count()>0){this.each(function(a){if(a.get('pcc_ucd')==='meta.id;meta.main'){d.set('property_id',a.get('pcn_column_name'))}},a);c.setLoading(!1);a.loadObject()}}})},loadObject:function(){var b=this,a=b.getViewModel(),d=b.getView(),g=a.get('currentProduct'),c=a.getStore('objects'),f=a.get('object_id'),e=a.get('property_id');d.setLoading(!0);c.addFilter([{property:'product',value:g.get('id')},{property:e,value:f}]);c.load({callback:function(){if(this.count()===1){b.onLoadObject(this.first());d.setLoading(!1)}}})},onLoadObject:function(h){var b=this,c=b.getViewModel(),i=b.lookupReference('properties-grid'),d=c.getStore('properties'),g=c.getStore('datasets'),l=b.lookupReference('aladin'),k=b.getView(),a,e;d.removeAll();a=h.data;for(var f in a){var j=f.toLowerCase();if(j.indexOf('_meta_')===-1){d.add([[f.toLowerCase(),a[f]]])}}c.set('object_data',a);i.setStore(d);e=String(a._meta_ra)+','+String(a._meta_dec);g.addFilter([{property:'position',value:e}]);c.set('position',e);b.loadSpectralDistribution();k.setLoading(!1)},onLoadDatasets:function(a){var c=this,d=c.lookupReference('visiomatic'),b=d.lookupReference('cmbCurrentDataset');if(a.count()==1){c.changeImage(a.first());b.select(a.first());b.setReadOnly(!0)}else {if(a.count()>1){c.changeImage(a.first());b.select(a.first());b.setReadOnly(!1)}else {console.log('Nenhuma tile encontrada para o objeto')}}},changeImage:function(b){var d=this,a=d.lookupReference('visiomatic'),c=b.get('image_src_ptif');if(b){if(c!==''){a.setImage(c)}else {a.removeImageLayer()}}else {console.log('dataset nao encontrado')}},onChangeDataset:function(a){var b=this;b.changeImage(a);b.loadSurveys(a.get('release'));b.loadTags(a.get('release'))},onChangeImage:function(){var b=this,e=b.getViewModel(),a=e.get('object_data'),c=b.lookupReference('visiomatic'),d=0.03;c.setView(a._meta_ra,a._meta_dec,d)},loadSurveys:function(c){var b=this,d=b.getViewModel(),a=d.getStore('surveys');a.addFilter([{property:'srv_project',value:'DES'},{property:'srv_release',value:c}]);a.load({callback:function(){b.onLoadSurvey(this)}})},onLoadSurvey:function(e){var b=this,a=b.lookupReference('aladin'),c=b.getViewModel().get('position'),d=b.getViewModel().get('object_data');a.goToPosition(c);a.setFov(180);a.plotObject(d)},onSearch:function(a){var b=this,d=b.getViewModel(),c=d.getStore('properties');if(a!==''){c.filter([{property:'property',value:a}])}else {b.onSearchCancel()}},onSearchCancel:function(){var b=this,c=b.getViewModel(),a=c.getStore('properties');a.clearFilter()},loadTags:function(a){var c=this,d=c.getViewModel(),b=d.getStore('tags');if(a>0){b.addFilter([{property:'tag_release',value:a}]);b.load({callback:function(){c.onLoadTags(this)}})}},onLoadTags:function(a){var b=this;if(a.count()>0){b.loadTiles()}},loadTiles:function(){var e=this,b=e.getViewModel(),d=b.getStore('tags'),c=b.getStore('tiles'),a=[];d.each(function(b){a.push(b.get('id'))},this);c.filter([{property:'tag',operator:'in',value:a}])},onClickSimbad:function(){console.log('onClickSimbad()');var e=this,g=e.getViewModel(),a=g.get('object_data'),f=parseFloat(a._meta_ra).toFixed(4),d=parseFloat(a._meta_dec).toFixed(4),c=0.1,b;b=Ext.String.format('http://simbad.u-strasbg.fr/simbad/sim-coo?Coord={0}+{1}&CooFrame=FK5&CooEpoch=2000&Radius={2}&Radius.unit=arcmin&submit=submit+query',f,d,c);window.open(b,'_blank')},onClickNed:function(){console.log('onClickNed');var e=this,g=e.getViewModel(),a=g.get('object_data'),c=0.1,f=parseFloat(a._meta_ra).toFixed(4),d=parseFloat(a._meta_dec).toFixed(4),b;b=Ext.String.format('https://ned.ipac.caltech.edu/cgi-bin/objsearch?search_type=Near+Position+Search&in_csys=Equatorial&in_equinox=J2000.0&lon={0}d&lat={1}d&radius={2}',f,d,c);window.open(b,'_blank')},onClickVizier:function(){console.log('onClickVizier');var d=this,e=d.getViewModel(),a=e.get('object_data'),c=0.01,b;b=Ext.String.format('http://vizier.u-strasbg.fr/viz-bin/VizieR-5?-source=II/246&-c={0},{1},eq=J2000&-c.rs={2}',a._meta_ra,a._meta_dec,c);window.open(b,'_blank')},loadSpectralDistribution:function(){var k=this,g=k.getViewModel(),e=g.get('object_data'),j=g.getStore('spectral'),f=['mag_auto_g','mag_auto_r','mag_auto_i','mag_auto_z','mag_auto_y'],h=[474,645.5,783.5,926,1008],d,a,b,m,l;for(var i in e){var c=i.toLowerCase();if(f.indexOf(c)!==-1){a=parseFloat(parseFloat(e[c]).toFixed(2));if(parseInt(a)!==99&&parseInt(a)!==0){b=-0.4*a;b=parseFloat(b.toFixed(1))}d=h[f.indexOf(c)];j.add({flux:b,mag_auto:a,wavelength:d,property:c})}}}},0,0,0,0,['controller.coadd'],0,[Explorer.view.coadd,'CoaddController'],0);Ext.cmd.derive('Explorer.view.coadd.CoaddModel',Ext.app.ViewModel,{data:{source:null,object_id:null,object_data:null,property_id:null,position:null},links:{currentProduct:{type:'Explorer.model.Product',create:!0},currentDataset:{type:'common.model.Dataset',create:!0}},stores:{products:{type:'products'},associations:{type:'association'},objects:{type:'objects'},properties:{type:'array',fields:['property','value'],remoteSort:!1,remoteFilter:!1,sorters:[{property:'property',direction:'ASC'}]},datasets:{type:'datasets',storeId:'datasets',remoteSort:!1,sorters:[{property:'id',direction:'DESC'}]},surveys:{type:'surveys'},tags:{type:'tags',storeId:'Tags'},tiles:{type:'footprints',pageSize:0},spectral:{type:'spectral-distribution'}}},0,0,0,0,['viewmodel.coadd'],0,[Explorer.view.coadd,'CoaddModel'],0);Ext.cmd.derive('Explorer.view.coadd.Form',Ext.form.Panel,{initComponent:function(){var a=this;Ext.apply(this,{fieldDefaults:{labelAlign:'top',readOnly:!0},items:[{xtype:'fieldset',defaultType:'textfield',defaults:{anchor:'100%'},items:[{fieldLabel:'Source',bind:{value:'{currentProduct.tablename}'}},{fieldLabel:'Object ID',bind:{value:'{object_data._meta_id}'}},{fieldLabel:'RA, Dec (deg)',bind:{value:'{object_data._meta_ra}, {object_data._meta_dec}'}}]}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['coadd-form'],['component','box','container','panel','form','coadd-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'coadd-form':!0},['widget.coadd-form'],0,[Explorer.view.coadd,'Form'],0);Ext.cmd.derive('Explorer.view.coadd.Properties',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{columns:[{text:'Property',dataIndex:'property',width:200},{text:'Value',dataIndex:'value',renderer:this.formatNumber,flex:1}],tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearch','cancel':'onSearchCancel'},flex:1}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},formatNumber:function(a){if(typeof a==='number'){if(!isNaN(a)&&a.toString().indexOf('.')!=-1){a=a.toFixed(4)}}return a}},0,['coadd-properties'],['component','box','container','panel','tablepanel','gridpanel','grid','coadd-properties'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'coadd-properties':!0},['widget.coadd-properties'],0,[Explorer.view.coadd,'Properties'],0);Ext.cmd.derive('Explorer.view.coadd.Visiomatic',visiomatic.Visiomatic,{enableTools:!0,enableLink:!1,enableShift:!1,showCrosshair:!0,mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!1},initComponent:function(){var a=this;Ext.apply(this,{auxTools:[{xtype:'combobox',reference:'cmbCurrentDataset',publishes:'id',width:250,displayField:'release_tag',bind:{store:'{datasets}',disabled:'{!coadd.COADD_OBJECT_ID}',selection:'{!currentDataset}'},queryMode:'local',listConfig:{itemTpl:['
    {release_display_name} - {tag_display_name}
    ']},listeners:{scope:this,change:'changeDataset'}},{xtype:'textfield',width:120,readOnly:!0,bind:{value:'{currentDataset.tli_tilename}'}},{xtype:'button',iconCls:'x-fa fa-crosshairs',tooltip:'Show/Hide Crosshair',enableToggle:!0,pressed:!0,scope:this,toggleHandler:'onShowHideCrosshair'}]});visiomatic.Visiomatic.prototype.initComponent.apply(this,arguments)},changeDataset:function(a){this.fireEvent('changedataset',a.getSelectedRecord(),this)},onShowHideCrosshair:function(c,a){var b=this;b.setShowCrosshair(a)}},0,['coadd-visiomatic'],['component','box','container','panel','visiomatic','coadd-visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0,'coadd-visiomatic':!0},['widget.coadd-visiomatic'],0,[Explorer.view.coadd,'Visiomatic'],0);Ext.cmd.derive('Explorer.view.coadd.SpectralDistribution',Ext.chart.CartesianChart,{innerPadding:20,insetPadding:{top:40,right:20,bottom:20,left:20},sprites:[{type:'text',text:'Spectral Distribution',fontSize:22,width:100,height:30,x:40,y:20}],axes:[{type:'numeric',fields:['flux'],title:'log(Flux) [counts]',position:'left',grid:!0},{id:'wavelength-axis',type:'category',title:'Wavelength [nm]',fields:'wavelength',position:'bottom',grid:!0}],series:[{type:'scatter',xField:'wavelength',yField:'flux',marker:{type:'circle',fill:'#3333ff',radius:8,lineWidth:0},highlight:{radius:12,lineWidth:2},tooltip:{trackMouse:!0,renderer:function(b,a,c){b.setHtml(a.get('property')+': '+a.get('mag_auto'))}}}]},0,['coadd-spectral-distribution'],['component','box','container','panel','draw','cartesian','chart','coadd-spectral-distribution'],{'component':!0,'box':!0,'container':!0,'panel':!0,'draw':!0,'cartesian':!0,'chart':!0,'coadd-spectral-distribution':!0},['widget.coadd-spectral-distribution'],0,[Explorer.view.coadd,'SpectralDistribution'],0);Ext.cmd.derive('Explorer.view.coadd.Coadd',Ext.panel.Panel,{controller:'coadd',viewModel:'coadd',layout:'fit',initComponent:function(){var a=this;Ext.apply(this,{layout:{type:'hbox',pack:'start',align:'stretch'},defaults:{frame:!0},items:[{xtype:'panel',reference:'detailPanel',width:300,margin:'0 10 0 0',layout:{type:'vbox',pack:'start',align:'stretch'},items:[{xtype:'coadd-form',reference:'properties-form',split:!0,bbar:[{xtype:'button',text:'SIMBAD',handler:'onClickSimbad'},{xtype:'button',text:'NED',handler:'onClickNed'}]},{xtype:'coadd-properties',reference:'properties-grid',split:!0,flex:1}]},{xtype:'panel',flex:1,layout:{type:'vbox',pack:'start',align:'stretch'},margin:'0 0 10 0',defaults:{frame:!0},items:[{xtype:'panel',flex:1,layout:{type:'hbox',pack:'start',align:'stretch'},defaults:{frame:!0},items:[{xtype:'coadd-visiomatic',reference:'visiomatic',margin:'0 10 0 0',split:!0,flex:1},{xtype:'coadd-aladin',reference:'aladin',split:!0,flex:1,bind:{storeSurveys:'{surveys}',storeTags:'{tags}',storeTiles:'{tiles}'}}]},{xtype:'panel',flex:1,layout:{type:'hbox',pack:'start',align:'stretch'},items:[{xtype:'coadd-spectral-distribution',reference:'SpectralChart',flex:1,bind:{store:'{spectral}'}},{xtype:'panel',flex:1}]}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},loadPanel:function(b){var a=this,e=a.getViewModel(),d=b[1],c=b[2];e.set('source',d);e.set('object_id',c);a.fireEvent('loadpanel',d,c,a)},updatePanel:function(a){}},0,['coadd-objects'],['component','box','container','panel','coadd-objects'],{'component':!0,'box':!0,'container':!0,'panel':!0,'coadd-objects':!0},['widget.coadd-objects'],0,[Explorer.view.coadd,'Coadd'],0);Ext.cmd.derive('Explorer.view.system.SystemController',Ext.app.ViewController,{listen:{component:{'system':{loadpanel:'onLoadPanel'},'system-visiomatic':{changedataset:'onChangeDataset',changeimage:'onChangeImage'}},store:{'#datasets':{load:'onLoadDatasets'}}},onLoadPanel:function(a,b){this.load(a)},load:function(a){var b=this;b.loadProduct(a)},loadProduct:function(f){var a=this,d=a.getView(),e=a.getViewModel(),c=e.getStore('products'),b=e.getStore('vacProducts');d.setLoading(!0);c.addFilter({property:'prd_name',value:f});c.load({callback:function(){if(this.count()===1){a.onLoadProduct(this.first());d.setLoading(!1)}}});b.addFilter({property:'class_name',value:'vac_cluster'});b.load({callback:a.onLoadVacProducts})},onLoadProduct:function(b){var a=this,d=a.getViewModel(),e=a.getView(),c=a.lookup('detailPanel');d.set('currentProduct',b);c.setTitle(b.get('prd_display_name'));a.loadAssociations(b);a.loadMembersContent(b)},loadAssociations:function(e){var a=this,c=a.getView(),d=a.getViewModel(),b=d.getStore('associations');c.setLoading(!0);b.addFilter({property:'pca_product',value:e.get('id')});b.load({callback:function(){if(this.count()>0){this.each(function(a){if(a.get('pcc_ucd')==='meta.id;meta.main'){d.set('property_id',a.get('pcn_column_name'))}},a);c.setLoading(!1);a.loadObject()}}})},loadObject:function(){var b=this,a=b.getViewModel(),d=b.getView(),g=a.get('currentProduct'),c=a.getStore('objects'),f=a.get('object_id'),e=a.get('property_id');d.setLoading(!0);c.addFilter([{property:'product',value:g.get('id')},{property:e,value:f}]);c.load({callback:function(){if(this.count()===1){b.onLoadObject(this.first());d.setLoading(!1)}}})},onLoadObject:function(b){var d=this,a=d.getViewModel(),i=d.getView(),k=d.lookupReference('properties-grid'),e=a.getStore('properties'),h=a.get('currentProduct'),j=a.getStore('datasets'),m=d.lookupReference('aladin'),c,f;i.setLoading(!0);a.set('object',b);e.removeAll();c=b.data;a.set('object_data',c);for(var g in c){var l=g.toLowerCase();if(l.indexOf('_meta_')===-1){e.add([[g.toLowerCase(),c[g]]])}}k.setStore(e);f=String(c._meta_ra)+','+String(c._meta_dec);j.addFilter([{property:'position',value:f}]);a.set('position',f);i.setLoading(!1);if(h.get('prl_related')>0){d.loadSystemMembers(h,b)}a.set('vacRadius',2);a.set('display_ra',parseFloat(b.get('_meta_ra')).toFixed(5));a.set('display_dec',parseFloat(b.get('_meta_dec')).toFixed(5));a.set('display_radius',parseFloat(b.get('_meta_radius')).toFixed(3))},onLoadDatasets:function(a){var c=this,d=c.lookupReference('visiomatic'),b=d.lookupReference('cmbCurrentDataset');if(a.count()==1){c.changeImage(a.first());b.select(a.first());b.setReadOnly(!0)}else {if(a.count()>1){c.changeImage(a.first());b.select(a.first());b.setReadOnly(!1)}else {console.log('Nenhuma tile encontrada para o objeto')}}},changeImage:function(b){var d=this,a=d.lookupReference('visiomatic'),c=b.get('image_src_ptif');if(b){a.setDataset(b.get('id'));a.setCurrentDataset(b);if(c!==''){a.setImage(c)}else {a.removeImageLayer()}}else {console.log('dataset nao encontrado')}},onChangeDataset:function(a){var b=this;b.changeImage(a);b.loadSurveys(a.get('release'));b.loadTags(a.get('release'))},onChangeImage:function(){var b=this,d=b.getViewModel(),f=d.get('currentProduct'),a=d.get('object'),c=b.lookupReference('visiomatic'),g=b.lookupReference('aladin'),e=d.getStore('members');fov=0.07;c.setView(a.get('_meta_ra'),a.get('_meta_dec'),fov);c.drawRadius(a.get('_meta_ra'),a.get('_meta_dec'),a.get('_meta_radius'),'arcmin');c.showHideRadius(!0);b.onLoadSystemMembers(e)},loadSurveys:function(c){var b=this,d=b.getViewModel(),a=d.getStore('surveys');a.addFilter([{property:'srv_project',value:'DES'},{property:'srv_release',value:c}]);a.load({callback:function(){b.onLoadSurvey(this)}})},onLoadSurvey:function(e){var c=this,a=c.lookupReference('aladin'),d=c.getViewModel().get('position'),b=c.getViewModel().get('object_data');a.goToPosition(d);a.setFov(180);a.drawRadius(b._meta_ra,b._meta_dec,b._meta_radius,'arcmin')},onSearch:function(a){var b=this,d=b.getViewModel(),c=d.getStore('properties');if(a!==''){c.filter([{property:'property',value:a}])}else {b.onSearchCancel()}},onSearchCancel:function(){var b=this,c=b.getViewModel(),a=c.getStore('properties');a.clearFilter()},loadMembersContent:function(d){var b=this,e=b.getViewModel(),a=e.getStore('displayContents'),c=b.lookupReference('members-grid');a.addFilter({'property':'pcn_product_id',value:d.get('prl_related')});a.load({callback:function(){if(this.check_ucds()){c.reconfigureGrid(this)}}})},loadSystemMembers:function(b,d){var c=this,e=c.getViewModel(),a=e.getStore('members');a.addFilter([{property:'product',value:b.get('prl_related')},{property:b.get('prl_cross_property'),value:d.get('id')}]);a.load({callback:function(){c.onLoadSystemMembers(this)}})},onLoadSystemMembers:function(f){var b=this,c=b.getViewModel(),d=c.get('currentProduct'),e=b.lookupReference('visiomatic'),g=b.lookupReference('aladin'),a;a=e.overlayCatalog(d.get('prd_display_name'),f);e.showHideLayer(a,!0);c.set('overlayMembers',a);g.plotSystemMembers(d.get('prd_display_name'),f);c.set('have_members',!0)},onSelectSystemMember:function(b,a){this.highlightObject(a)},highlightObject:function(a,i){var d=this,e=d.getViewModel(),j=e.get('currentProduct'),b=e.get('lMarkPosition'),c=d.lookupReference('visiomatic'),g=d.lookupReference('aladin'),h=c.getFov(),k=d.lookup('members-grid'),f;c.setView(a.get('_meta_ra'),a.get('_meta_dec'),h,!0);if(b){c.showHideLayer(b,!1)}b=c.markPosition(a.get('_meta_ra'),a.get('_meta_dec'),'x-fa fa-sort-desc fa-2x');e.set('lMarkPosition',b);f=String(a.get('_meta_ra'))+','+String(a.get('_meta_dec'));g.goToPosition(f);e.set('selected_member',a)},onLoadVacProducts:Ext.emptyFn,onSelectVacProduct:function(e,b){var a=this,d=a.getViewModel(),c=a.getStore('vacObjects');d.set('currentVacProduct',b);c.removeAll();a.loadVacProductContent(b)},loadVacProductContent:function(c){var a=this,e=a.getViewModel(),b=e.getStore('vacProductDisplayContents'),d=a.lookupReference('vac-grid');b.addFilter({'property':'pcn_product_id',value:c.get('id')});b.load({callback:function(){if(this.check_ucds()){d.reconfigureGrid(this);a.loadVacObjects()}}})},calculateVacRadius:function(a){var c=this,d=c.getViewModel(),b=d.get('vacRadius');vacRadius=a*b/60;return vacRadius.toFixed(3)},loadVacObjects:function(){var c=this,d=c.getViewModel(),b=d.get('object'),f=d.get('currentVacProduct'),a=d.getStore('vacObjects'),e;a.clearFilter();e=c.calculateVacRadius(b.get('_meta_radius'));a.addFilter([{property:'product',value:f.get('id')},{property:'lon',value:b.get('_meta_ra')},{property:'lat',value:b.get('_meta_dec')},{property:'radius',value:e}]);a.load({callback:function(){c.onLoadVacObjects(this)}})},onLoadVacObjects:function(e){var b=this,a=b.getViewModel(),d=a.get('currentVacProduct'),c=b.lookupReference('visiomatic');if(a.get('overlayVac')!=null){c.showHideLayer(a.get('overlayVac'),!1)}lvacs=c.overlayCatalog(d.get('prd_display_name'),e,{color:'#'+a.get('vacOverlayColor'),pointSize:a.get('vacOverlayPointSize')/1000,pointType:a.get('vacOverlaypointType')});a.set('overlayVac',lvacs);b.showHideOverlayVacs()},changeVisibleOverlayVacs:function(b,a){var c=this,d=c.getViewModel();d.set('visibleOverlayVacs',a);if(a){b.setIconCls('x-fa fa-eye')}else {b.setIconCls('x-fa fa-eye-slash')}c.showHideOverlayVacs()},showHideOverlayVacs:function(){var a=this,b=a.getViewModel(),e=b.get('visibleOverlayVacs'),d=b.get('overlayVac'),c=a.lookupReference('visiomatic');c.showHideLayer(d,e)},onSelectVacObject:function(b,a){this.highlightObject(a)},loadTags:function(a){var c=this,d=c.getViewModel(),b=d.getStore('tags');if(a>0){b.addFilter([{property:'tag_release',value:a}]);b.load({callback:function(){c.onLoadTags(this)}})}},onLoadTags:function(a){var b=this;if(a.count()>0){b.loadTiles()}},loadTiles:function(){var e=this,b=e.getViewModel(),d=b.getStore('tags'),c=b.getStore('tiles'),a=[];d.each(function(b){a.push(b.get('id'))},this);c.filter([{property:'tag',operator:'in',value:a}])},parseRA:function(a){if(a<0){return a+360}return a},onClickSimbad:function(){var c=this,g=c.getViewModel(),a=g.get('object_data'),f=parseFloat(c.parseRA(a._meta_ra)).toFixed(4),e=parseFloat(a._meta_dec).toFixed(4),d=2,b;b=Ext.String.format('http://simbad.u-strasbg.fr/simbad/sim-coo?Coord={0}+{1}&CooFrame=FK5&CooEpoch=2000&Radius={2}&Radius.unit=arcmin&submit=submit+query',f,e,d);window.open(b,'_blank')},onClickNed:function(){var c=this,g=c.getViewModel(),a=g.get('object_data'),f=parseFloat(c.parseRA(a._meta_ra)).toFixed(2),e=parseFloat(a._meta_dec).toFixed(2),d=2,b;b=Ext.String.format('https://ned.ipac.caltech.edu/cgi-bin/objsearch?search_type=Near+Position+Search&in_csys=Equatorial&in_equinox=J2000.0&lon={0}d&lat={1}d&radius={2}',f,e,d);window.open(b,'_blank')},onClickVizier:function(){var c=this,e=c.getViewModel(),a=e.get('object_data'),d=2,b;b=Ext.String.format('http://vizier.u-strasbg.fr/viz-bin/VizieR-5?-source=II/246&-c={0},{1},eq=J2000&-c.rs={2}',c.parseRA(a._meta_ra),a._meta_dec,d);window.open(b,'_blank')},onCmdClickPoint:function(a,c,b){this.highlightObject(a,!0)},onActiveCmdTab:function(a){var e=this,b=e.getViewModel(),c=b.getStore('members'),d=b.getStore('vacObjects');a.setMembers(c);a.setVacs(d);a.reloadPlots()}},0,0,0,0,['controller.system'],0,[Explorer.view.system,'SystemController'],0);Ext.cmd.derive('Explorer.view.system.SystemModel',Ext.app.ViewModel,{data:{source:null,object_id:null,display_ra:'',display_dec:'',display_radius:'',object:null,object_data:null,property_id:null,overlayMembers:null,position:null,have_members:!1,selected_member:null,visibleOverlayVacs:!0,overlayVac:null,vacRadius:1,vacOverlayColor:'1B81BC',vacOverlayPointSize:1.2,vacOverlaypointType:'square'},links:{currentProduct:{type:'Explorer.model.Product',create:!0},currentDataset:{type:'common.model.Dataset',create:!0},currentVacProduct:{type:'Explorer.model.Product',create:!0}},stores:{products:{type:'products'},associations:{type:'association'},objects:{type:'objects'},members:{type:'objects'},displayContents:{type:'product-display-contents'},properties:{type:'array',fields:['property','value'],remoteSort:!1,remoteFilter:!1,sorters:[{property:'property',direction:'ASC'}]},datasets:{type:'datasets',storeId:'datasets',remoteSort:!1,sorters:[{property:'id',direction:'DESC'}]},surveys:{type:'surveys'},tags:{type:'tags',storeId:'Tags'},tiles:{type:'footprints',pageSize:0},vacProducts:{type:'products'},vacProductDisplayContents:{type:'product-display-contents'},vacObjects:{type:'objects',pageSize:2000}}},0,0,0,0,['viewmodel.system'],0,[Explorer.view.system,'SystemModel'],0);Ext.cmd.derive('Explorer.view.system.Form',Ext.form.Panel,{initComponent:function(){var a=this;Ext.apply(this,{bodyPadding:'3',fieldDefaults:{readOnly:!0},items:[{xtype:'fieldcontainer',defaultType:'textfield',defaults:{anchor:'100%'},items:[{fieldLabel:'Source',bind:{value:'{currentProduct.tablename}'}},{fieldLabel:'Object ID',bind:{value:'{object_data._meta_id}'}},{fieldLabel:'RA, Dec (deg)',bind:{value:'{display_ra}, {display_dec}'}},{fieldLabel:'Radius (arcmin)',bind:{value:'{display_radius}'}}]}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['system-form'],['component','box','container','panel','form','system-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'system-form':!0},['widget.system-form'],0,[Explorer.view.system,'Form'],0);Ext.cmd.derive('Explorer.view.system.Properties',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{columns:[{text:'Property',dataIndex:'property',flex:1},{text:'Value',dataIndex:'value',renderer:this.formatNumber,flex:1}],tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearch','cancel':'onSearchCancel'},flex:1}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},formatNumber:function(a){if(typeof a==='number'){if(!isNaN(a)&&a.toString().indexOf('.')!=-1){a=a.toFixed(4)}}return a}},0,['system-properties'],['component','box','container','panel','tablepanel','gridpanel','grid','system-properties'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'system-properties':!0},['widget.system-properties'],0,[Explorer.view.system,'Properties'],0);Ext.cmd.derive('Explorer.view.system.Visiomatic',visiomatic.Visiomatic,{enableTools:!0,enableLink:!1,enableShift:!1,showCrosshair:!0,mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!0},initComponent:function(){var a=this;Ext.apply(this,{auxTools:[{xtype:'combobox',reference:'cmbCurrentDataset',publishes:'id',width:250,displayField:'release_tag',bind:{store:'{datasets}',disabled:'{!coadd.COADD_OBJECT_ID}',selection:'{!currentDataset}'},queryMode:'local',listConfig:{itemTpl:['
    {release_display_name} - {tag_display_name}
    ']},listeners:{scope:this,change:'changeDataset'}},{xtype:'textfield',width:120,readOnly:!0,bind:{value:'{currentDataset.tli_tilename}'}},{xtype:'button',iconCls:'x-fa fa-crosshairs',tooltip:'Show/Hide Crosshair',enableToggle:!0,pressed:!0,scope:this,toggleHandler:'onShowHideCrosshair'}]});visiomatic.Visiomatic.prototype.initComponent.apply(this,arguments)},changeDataset:function(a){this.fireEvent('changedataset',a.getSelectedRecord(),this)},onShowHideCrosshair:function(c,a){var b=this;b.setShowCrosshair(a)}},0,['system-visiomatic'],['component','box','container','panel','visiomatic','system-visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0,'system-visiomatic':!0},['widget.system-visiomatic'],0,[Explorer.view.system,'Visiomatic'],0);Ext.cmd.derive('Explorer.view.system.Aladin',aladin.Aladin,{initComponent:function(){var a=this;Ext.apply(this,{hideFootprint:!1,enableGoto:!1,enableShift:!1,infoEnabled:!1,enableLayersControl:!1,toolbarPosition:'top',showFilters:!1});aladin.Aladin.prototype.initComponent.apply(this,arguments)},plotObject:function(a,e){var d=this,f=d.getAladin(),c=d.libA,b;b=c.catalog({name:e,sourceSize:12,color:'#A0F65A'});b.addSources([c.marker(a._meta_ra,a._meta_dec,{popupTitle:'ID: '+a._meta_id,popupDesc:'RA: '+a._meta_ra+'
    Dec: '+a._meta_dec})]);f.addCatalog(b)},plotSystemMembers:function(e,f){var b=this,g=b.getAladin(),d=b.libA,c=[],a;a=d.catalog({name:e,sourceSize:12,color:'#A0F65A'});f.each(function(a){var b=d.marker(a.get('_meta_ra'),a.get('_meta_dec'),{popupTitle:'ID: '+a.get('_meta_id'),popupDesc:'J2000: '+a.get('_meta_ra')+', '+a.get('_meta_dec')});c.push(b)},b);a.addSources(c);g.addCatalog(a)},drawRadius:function(a,d,c,h,i){var f=this,g=f.getAladin(),e=f.libA,b;a=parseFloat(a);d=parseFloat(d);if(a<0){a=a+360}b=e.graphicOverlay({color:'#ee2345',lineWidth:3});g.addOverlay(b);if(h==='arcmin'){c=c/60}b.add(e.circle(a,d,c))}},0,['system-aladin'],['component','box','container','panel','aladin','system-aladin'],{'component':!0,'box':!0,'container':!0,'panel':!0,'aladin':!0,'system-aladin':!0},['widget.system-aladin'],0,[Explorer.view.system,'Aladin'],0);Ext.cmd.derive('Explorer.view.system.MembersGrid',Ext.grid.Panel,{config:{ready:!1,columnRating:!1,columnAccept:!1,columnComments:!1},emptyText:'No data to dysplay.',initComponent:function(){var a=this;Ext.apply(this,{enableLocking:!0,syncRowHeight:!0,columns:[Ext.create('Ext.grid.RowNumberer'),{text:'',dataIndex:'',width:50},{text:'',dataIndex:'',flex:!0}],viewConfig:{stripeRows:!0,markDirty:!1,getRowClass:function(a){return a.get('_meta_reject')===!0?'rejected-row':''}}});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},reconfigureGrid:function(d){var a=this,b=[],c;b.push(Ext.create('Ext.grid.RowNumberer',{width:50,resizable:!0,locked:!0}));if(d.count()>0){c=!1;d.each(function(f){if(f.get('is_visible')){var e={text:a.createColumnText(f),dataIndex:f.get('column_name').toLowerCase(),tooltip:a.createColumnTooltip(f),renderer:a.formatNumber,lockable:!0};if(f.get('ucd')=='meta.id;meta.main'){e.locked=!0;e.lockable=!0;e.renderer=null;c=!0}if(f.get('column_name').toLowerCase()=='tilename'){e.width=120}if(f.get('ucd')==='pos.eq.ra;meta.main'||f.get('ucd')==='pos.eq.dec;meta.main'){e.width=90;e.xtype='numbercolumn';e.format='0.000';e.renderer=null;e.locked=!0;e.lockable=!0}if(f.get('ucd')==='phys.angSize;src'){e.width=80;e.xtype='numbercolumn';e.format='0.000';e.renderer=null;e.lockable=!0}b.push(e)}},this);if(a.getColumnRating()&&c===!0){b.push({xtype:'widgetcolumn',width:90,sortable:!0,text:'Rating',dataIndex:'_meta_rating',tooltip:'Rating',widget:{xtype:'rating',minimum:0,scale:'115%',selectedStyle:'color: rgb(96, 169, 23);',style:{'color':'#777777'}}})}if(a.getColumnAccept()&&c===!0){b.push({xtype:'checkcolumn',text:'Reject',dataIndex:'_meta_reject',tooltip:'Reject',sortable:!0,width:80})}if(a.getColumnComments()&&c===!0){b.push({text:'Comments',dataIndex:'_meta_comments',tooltip:'Comments',align:'center',flex:1,sortable:!1,minWidth:80,renderer:function(b,c,e){var a='';if(b>0){if(b==1){a=' '}else {a=''}}return a}})}}else {b.push({text:'Placeholder',dataIndex:'',hidden:!0})}a.reconfigure(null,b);a.setReady(!0);this.fireEvent('ready',this)},getTypeColumn:function(a){switch(a){case 'integer':case 'real':case 'double precision':case 'bigint':case 'smallint':return 'number';break;case 'text':return 'string';break;}},createColumnText:function(a){var c=a.get('unit'),b=a.get('display_name');var d=c!=''?Ext.String.format('{0} ( {1} )',b,c):b;return d},createColumnTooltip:function(a){var b=new Ext.XTemplate('
    ','

    {display_name}

    ','','

    Name: {column_name}

    ','
    ','','

    Unit: {unit}

    ','
    ','','

    ucd: {ucd}

    ','
    ','','

    Reference: {reference}

    ','
    ','
    ');return b.apply(a.data)},formatNumber:function(a){var b=3,d,c;if(typeof a==='number'){if(a>10000){a=a.toExponential(1)}else {if(a.toString().indexOf('.')!=-1){d=a.toString().split('.');c=d[1];if(c.length>b){a=a.toFixed(b)}}}}return a}},0,['system-members-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','system-members-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'system-members-grid':!0},['widget.system-members-grid'],0,[Explorer.view.system,'MembersGrid'],0);Ext.cmd.derive('Explorer.view.system.VacGrid',Ext.grid.Panel,{config:{ready:!1},emptyText:'No data to dysplay.',initComponent:function(){var a=this;Ext.apply(this,{enableLocking:!0,syncRowHeight:!0,columns:[Ext.create('Ext.grid.RowNumberer'),{text:'',dataIndex:'',width:50},{text:'',dataIndex:'',flex:!0}],viewConfig:{stripeRows:!0,markDirty:!1},tbar:[{xtype:'combobox',emptyText:'choose the VAC catalog',width:200,valueField:'id',displayField:'prd_display_name',queryMode:'local',bind:{store:'{vacProducts}'},readOnly:!1,listeners:{select:'onSelectVacProduct'}},{xtype:'button',iconCls:'x-fa fa-eye',enableToggle:!0,toggleHandler:'changeVisibleOverlayVacs',pressed:!0,tooltip:'Show or hide objects in visiomatic'},{xtype:'numberfield',minValue:0.1,maxValue:5,step:0.1,fieldLabel:'Radius (system radius)',labelWidth:140,width:200,bind:'{vacRadius}'},'-',{xtype:'colorbutton',bind:'{vacOverlayColor}',width:30,tooltip:'Choose a color. Click on the color and then on ok.'},{xtype:'combobox',displayField:'name',valueField:'name',queryMode:'local',width:80,store:{fields:['name'],data:[{'name':'circle'},{'name':'ellipse'},{'name':'square'},{'name':'triangle'}]},bind:{value:'{vacOverlaypointType}'}},{xtype:'numberfield',fieldLabel:'Size',labelWidth:40,width:100,bind:'{vacOverlayPointSize}',minValue:0.2,maxValue:10,step:0.2},{xtype:'button',iconCls:'x-tbar-loading',handler:'loadVacObjects',tooltip:'Refresh'}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},reconfigureGrid:function(c){var a=this,b=[],d;b.push(Ext.create('Ext.grid.RowNumberer',{width:50,resizable:!0,locked:!0}));if(c.count()>0){d=!1;c.each(function(f){if(f.get('is_visible')){var e={text:a.createColumnText(f),dataIndex:f.get('column_name').toLowerCase(),tooltip:a.createColumnTooltip(f),renderer:a.formatNumber,lockable:!0};if(f.get('ucd')=='meta.id;meta.main'){e.locked=!0;e.lockable=!0;e.renderer=null;d=!0}if(f.get('column_name').toLowerCase()=='tilename'){e.width=120}if(f.get('ucd')==='pos.eq.ra;meta.main'||f.get('ucd')==='pos.eq.dec;meta.main'){e.width=90;e.xtype='numbercolumn';e.format='0.000';e.renderer=null;e.locked=!0;e.lockable=!0}if(f.get('ucd')==='phys.angSize;src'){e.width=80;e.xtype='numbercolumn';e.format='0.000';e.renderer=null;e.lockable=!0}b.push(e)}},this)}else {b.push({text:'Placeholder',dataIndex:'',hidden:!0})}a.reconfigure(null,b);a.setReady(!0);this.fireEvent('ready',this)},createColumnText:function(a){var c=a.get('unit'),b=a.get('display_name');var d=c!=''?Ext.String.format('{0} ( {1} )',b,c):b;return d},createColumnTooltip:function(a){var b=new Ext.XTemplate('
    ','

    {display_name}

    ','','

    Name: {column_name}

    ','
    ','','

    Unit: {unit}

    ','
    ','','

    ucd: {ucd}

    ','
    ','','

    Reference: {reference}

    ','
    ','
    ');return b.apply(a.data)},formatNumber:function(a){var b=3,d,c;if(typeof a==='number'){if(a>10000){a=a.toExponential(1)}else {if(a.toString().indexOf('.')!=-1){d=a.toString().split('.');c=d[1];if(c.length>b){a=a.toFixed(b)}}}}return a}},0,['system-vac-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','system-vac-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'system-vac-grid':!0},['widget.system-vac-grid'],0,[Explorer.view.system,'VacGrid'],0);Ext.cmd.derive('Explorer.view.system.D3SvgComponent',Ext.Component,{title:'D3 Js',config:{baseCls:'x-d3',svgMargin:{top:50,left:50,right:50,bottom:50},legend:{width:0,height:0,y:20,iconSize:20},store:null,xAxisTitle:null,yAxisTitle:null,plotTitle:null,ready:!1},d3:null,resizeDelay:250,resizeTimerId:0,size:null,defs:null,wrapper:null,wrapperClipRect:null,wrapperClipId:'wrapper-clip',svg:null,defaultCls:{wrapper:'x-d3-wrapper',scene:'x-d3-scene',hidden:'x-d3-hidden'},proportionalSize:!0,scene:null,sceneRect:null,initComponent:function(){var a=this;Ext.Component.prototype.initComponent.apply(this,arguments);if(window.d3){a.d3=window.d3;a.on('resize','onElementResize',a)}else {console.log('window.d3 ainda nao esta carregada, incluir no app.json a biblioteca D3JS')}},onElementResize:function(a,b){this.handleResize(this.getSize())},handleResize:function(b,d){var a=this,c=a.getEl();if(!(c&&(b=b||c.getSize())&&b.width&&b.height)){return}clearTimeout(a.resizeTimerId);if(d){a.resizeTimerId=0}else {a.resizeTimerId=Ext.defer(a.handleResize,a.resizeDelay,a,[b,!0]);return}a.resizeHandler(b);a.size=b},resizeHandler:function(f){var a=this,l=a.getSvg(),c=a.getSvgMargin(),k=a.getInherited().rtl,j=a.getWrapper(),i=a.getWrapperClipRect(),h=a.getScene(),e=f&&f.width,d=f&&f.height,g=a.getLegend(),b;if(!(e&&d)){return}a.clearScene();if(a.proportionalSize){e=d+g.width}l.attr('width',e).attr('height',d);b=a.sceneRect||(a.sceneRect={});b.x=k?c.right:c.left;b.y=c.top;b.width=e-c.left-c.right-g.width;b.height=d-c.top-c.bottom;j.attr('transform','translate('+b.x+','+b.y+')');i.attr('width',b.width).attr('height',b.height);a.sceneRect=b;a.onSceneResize(h,b);a.fireEvent('sceneresize',a,h,b)},getSvg:function(){var a=this,b=a.getEl();return a.svg||(a.svg=a.d3.select(b.dom).append('svg').attr('version','1.1'))},getWrapper:function(){var a=this,b=a.wrapper;if(!b){b=a.wrapper=a.getSvg().append('g').classed(a.defaultCls.wrapper,!0)}return b},getWrapperClipRect:function(){var a=this,b=a.wrapperClipRect;if(!b){b=a.wrapperClipRect=a.getDefs().append('clipPath').attr('id',a.wrapperClipId).append('rect').attr('fill','white')}return b},getDefs:function(){var a=this.defs;if(!a){a=this.defs=this.getSvg().append('defs')}return a},getScene:function(){var a=this,c=a.getWrapper(),b=a.scene;if(!b){a.scene=b=c.append('g').classed(a.defaultCls.scene,!0);a.setupScene(b);a.fireEvent('scenesetup',a,b)}return b},setupScene:Ext.emptyFn,destroy:function(){this.getSvg().remove();Ext.Component.prototype.destroy.call(this)},clearScene:function(){var c=this,a=c.scene,b=c.defs;if(a){a=a.node();a.removeAttribute('transform');while(a.firstChild){a.removeChild(a.firstChild)}}if(b){b=b.node();while(b.firstChild){b.removeChild(b.firstChild)}}},onSceneResize:function(b,c){var a=this;a.setReady(!0);a.performLayout(b,c)},performLayout:Ext.emptyFn,showScene:function(){this.scene&&this.scene.classed(this.defaultCls.hidden,!1)},hideScene:function(){this.scene&&this.scene.classed(this.defaultCls.hidden,!0)},applyPadding:function(a,c){var b;if(!Ext.isObject(a)){b=Ext.util.Format.parseBox(a)}else {if(!c){b=a}else {b=Ext.apply(c,a)}}return b},setStore:function(a){this.store=a},setPlotTitle:function(b){var a=this;a.plotTitle=b;if(a.getReady()){a.createPlotTitle()}},setXAxisTitle:function(b){var a=this;a.xAxisTitle=b;if(a.getReady()){a.createAxisTitles()}},setYAxisTitle:function(b){var a=this;a.yAxisTitle=b;if(a.getReady()){a.createAxisTitles()}},createAxisTitles:function(){var a=this,f=a.getScene(),e=a.getSvgMargin(),b=a.sceneRect,c=a.getXAxisTitle(),d=a.getYAxisTitle(),g='xAxisTitle-'+a.getId(),h='yAxisTitle-'+a.getId();a.d3.select('#'+g).remove();a.d3.select('#'+h).remove();if(c){f.append('text').attr('id',g).attr('transform','translate('+b.width/2+' ,'+(b.height+e.bottom/2)+')').attr('dy','1em').style('text-anchor','middle').text(c)}if(d){f.append('text').attr('id',h).attr('transform','rotate(-90)').attr('y',0-e.left).attr('x',0-b.height/2).attr('dy','1em').style('text-anchor','middle').text(d)}},createPlotTitle:function(){var a=this,e=a.getScene(),d=a.getSvgMargin(),f=a.sceneRect,b=a.getPlotTitle(),c='plotTitle-'+a.getId();title=a.d3.select('#'+c);if(title){title.remove()}if(b){e.append('text').attr('id',c).attr('x',f.width/2).attr('y',0-d.top/2).attr('text-anchor','middle').style('font-size','1.2em').text(b)}}},0,0,['component','box'],{'component':!0,'box':!0},0,0,[Explorer.view.system,'D3SvgComponent'],0);Ext.cmd.derive('Explorer.view.system.SpatialDistribution',Explorer.view.system.D3SvgComponent,{},0,['system-spatial-distribution'],['component','box','system-spatial-distribution'],{'component':!0,'box':!0,'system-spatial-distribution':!0},['widget.system-spatial-distribution'],0,[Explorer.view.system,'SpatialDistribution'],0);Ext.cmd.derive('Explorer.view.system.ZDistribution',Explorer.view.system.D3SvgComponent,{plotTitle:'z Distribution',xAxisTitle:'Redshift',yAxisTitle:'N',proportionalSize:!1,performLayout:function(c,g){var a=this,i=g.width,e=g.height,d=a.processData(a.getStore()),k=a.getSvgMargin();var b=d3.scaleLinear().domain([d3.min(d),d3.max(d)]).range([0,i]);var f=d3.histogram().domain(b.domain()).thresholds(b.ticks(15))(d);var h=d3.scaleLinear().domain([0,d3.max(f,function(a){return a.length})]).range([e,0]);var j=d3.line().x(function(a,d){return b(a.x0)}).y(function(a,b){return h(a.length)}).curve(d3.curveStepAfter);c.append('g').attr('class','axis axis--x').attr('transform','translate(0,'+e+')').call(d3.axisBottom(b));c.append('g').attr('class','axis axis--y').call(d3.axisLeft(h).ticks(5).tickFormat(d3.format('d')));c.append('path').attr('class','line').attr('d',j(f)).attr('fill','none').attr('stroke','steelblue').attr('stroke-width','2px');a.createAxisTitles();a.createPlotTitle()},processData:function(b){var c=this,a=[];b.each(function(c){a.push(c.get('zp'))});return a}},0,['system-z-distribution'],['component','box','system-z-distribution'],{'component':!0,'box':!0,'system-z-distribution':!0},['widget.system-z-distribution'],0,[Explorer.view.system,'ZDistribution'],0);Ext.cmd.derive('Explorer.view.system.MagDistribution',Explorer.view.system.ZDistribution,{plotTitle:'Mag Distribution',xAxisTitle:'Mag',yAxisTitle:'N',processData:function(b){var c=this,a=[];b.each(function(c){a.push(c.get('mag'))});return a}},0,['system-mag-distribution'],['component','box','system-z-distribution','system-mag-distribution'],{'component':!0,'box':!0,'system-z-distribution':!0,'system-mag-distribution':!0},['widget.system-mag-distribution'],0,[Explorer.view.system,'MagDistribution'],0);Ext.cmd.derive('Explorer.view.system.cmd.CmdBase',Explorer.view.system.D3SvgComponent,{config:{dataSeries:{},plotData:[],members:null,vacs:null,svgMargin:{top:50,left:50,right:100,bottom:50},legend:{width:0,height:0,y:20,iconSize:20,iconPadding:5},colorScale:null,baseId:''},idleTimeout:null,idleDelay:350,proportionalSize:!1,performLayout:function(d,f){var a=this,h=f.width,e=f.height,i=a.getDataSeries(),b=a.loadData(),c=0.2;var g=d3.scaleQuantize().domain([0,1]).range(['#9EB0BB','#1B81BC']);a.setColorScale(g);a.setBaseId(a.getItemId()+'-');a.x=d3.scaleLinear().range([0,h]).domain([d3.min(b,function(a){return d3.min(a.values,function(b){return b.x-c})}),d3.max(b,function(a){return d3.max(a.values,function(b){return b.x+c})})]);a.xAxis=d3.axisBottom(a.x);a.y=d3.scaleLinear().range([e,0]).domain([d3.min(b,function(a){return d3.min(a.values,function(b){return b.y-c})}),d3.max(b,function(a){return d3.max(a.values,function(b){return b.y+c})})]);a.yAxis=d3.axisLeft(a.y);a.brush=d3.brush().extent([[0,0],[h,e]]).on('end',function(){a.onBrushendend()});a.gx=d.append('g').attr('class','axis axis--x').attr('id',a.getBaseId()+'axis--x').attr('transform','translate(0,'+e+')').call(a.xAxis);a.gy=d.append('g').attr('class','axis axis--y').attr('id',a.getBaseId()+'axis--y').call(a.yAxis);a.scene.append('g').attr('class','brush').call(a.brush);a.scatter=d.append('g').attr('id',a.getBaseId()+'scatterplot');a.scatter.selectAll('.series').data(b).enter().append('g').attr('class','series').attr('id',function(b){return a.getBaseId()+'serie-'+b.id}).attr('active',!1).style('fill',function(b,a){return g(a)}).style('opacity',function(a){if('opacity' in a){return a.opacity}else {return 1}}).selectAll('.dot').data(function(a){return a.values}).enter().append('circle').attr('class','dot').attr('r',2.5).attr('cx',function(b){return a.x(b.x)}).attr('cy',function(b){return a.y(b.y)}).on('mouseover',function(b){a.onMouseOverPoint(b,this)}).on('mouseout',function(b){a.onMouseOutPoint(b,this)}).on('click',function(b){a.onClickPoint(b,this)});a.createAxisTitles();a.createPlotTitle();a.createLegendBox(d,f,b)},reloadData:function(){var a=this;if(a.scene&&a.sceneRect){a.clearScene();a.performLayout(a.scene,a.sceneRect)}},loadData:function(){var c=this,g=c.getDataSeries(),d=c.getMembers(),f=c.getVacs(),e=[];for(var a in g){var b=g[a];if(f!=null&&a in f){b.values=f[a]}if(d!=null&&a in d){b.values=d[a]}if(b.values.length){e.push(b)}}c.setPlotData(e);return e},createLegendBox:function(d,f,e){var b=this,a=b.getLegend(),c=b.getColorScale();var h=d.selectAll('.legend').data(e).enter().append('g').attr('class','legend').attr('id',function(a){return b.getBaseId()+'legendItem-'+a.id}).attr('transform',function(g,c){var b=a.iconSize+a.iconPadding;return 'translate('+f.width+','+c*b+')'}).on('click',function(a){b.changeSerie(a)}).each(function(b,h){g=d3.select(this);g.append('rect').attr('width',a.iconSize).attr('height',a.iconSize).style('fill',c(h));g.append('text').attr('x',a.iconSize+5).attr('y',10).attr('dy','.35em').text(b.title)})},showHideSerie:function(c,e){var d=this,a=d3.select('#'+d.getBaseId()+'legendItem-'+c.id),b=d3.select('#'+d.getBaseId()+'serie-'+c.id);if(e){b.attr('active',!0).transition().duration(1000).style('opacity',function(a){if('opacity' in a){return a.opacity}else {return 1}}).style('display','block');a.transition().duration(1000).style('opacity',1)}else {b.attr('active',!1).transition().duration(1000).style('opacity',0).style('display','none');a.transition().duration(1000).style('opacity',0.3)}},changeSerie:function(a){var b=this,d=d3.select('#'+b.getBaseId()+'serie-'+a.id),c=d.attr('active')==='true'?!0:!1;if(c){b.deactiveSerie(a)}else {b.activeSerie(a)}},activeSerie:function(a){var b=this;b.showHideSerie(a,!0)},deactiveAllSeries:function(){var a=this,b=a.getPlotData();Ext.each(b,function(b){a.deactiveSerie(b)})},deactiveSerie:function(a){var b=this;b.showHideSerie(a,!1)},onMouseOverPoint:function(d,c){var e=this,a=d3.select(c),b=d3.select('#'+e.getBaseId()+'serie-'+d.serie);b.transition().duration(300).attr('fill-opacity',0.4);a.attr('r',3.5).attr('fill-opacity',1).style('cursor','pointer').style('fill','#E34D1C')},onMouseOutPoint:function(f,e){var a=this,b=d3.select(e),c=d3.select('#'+a.getBaseId()+'serie-'+f.serie),d=a.getColorScale();c.transition().duration(300).attr('fill-opacity',null);b.attr('r',2.5).attr('fill-opacity',null).style('cursor','default').style('fill',function(b,a){return d(a)})},onClickPoint:function(b,d){var a=this,e=a.getStore(),c;a.fireEvent('clickpoint',b.id,b.serie,a)},onBrushendend:function(){var a=this,d=a.getScene(),b=a.plotData,c=0.2;a.s=d3.event.selection;if(!a.s){if(!a.idleTimeout){return a.idleTimeout=setTimeout(function(){a.idleTimeout=null},a.idleDelay)}a.y.domain(d3.extent(b,function(a){return a.y})).nice();a.x.domain([d3.min(b,function(a){return d3.min(a.values,function(b){return b.x-c})}),d3.max(b,function(a){return d3.max(a.values,function(b){return b.x+c})})]);a.y.domain([d3.min(b,function(a){return d3.min(a.values,function(b){return b.y-c})}),d3.max(b,function(a){return d3.max(a.values,function(b){return b.y+c})})])}else {a.x.domain([a.s[0][0],a.s[1][0]].map(a.x.invert,a.x));a.y.domain([a.s[1][1],a.s[0][1]].map(a.y.invert,a.y));d.select('.brush').call(a.brush.move,null)}a.zoom()},zoom:function(){var a=this,c=a.getScene(),b;b=a.scatter.transition().duration(750);d3.select('#'+a.getBaseId()+'axis--x').transition(b).call(a.xAxis);d3.select('#'+a.getBaseId()+'axis--y').transition(b).call(a.yAxis);a.scatter.selectAll('circle').transition(b).attr('cx',function(b){return a.x(b.x)}).attr('cy',function(b){return a.y(b.y)})}},0,['system-cmd'],['component','box','system-cmd'],{'component':!0,'box':!0,'system-cmd':!0},['widget.system-cmd'],0,[Explorer.view.system.cmd,'CmdBase'],0);Ext.cmd.derive('Explorer.view.system.cmd.CmdTab',Ext.panel.Panel,{config:{members:null,vacs:null},initComponent:function(){var a=this;Ext.apply(this,{layout:'responsivecolumn',defaults:{xtype:'system-cmd',height:300,layout:'fit',userCls:'big-50 small-100',listeners:{scope:a,clickpoint:'onCmdClickPoint'}},items:[{itemId:'cmd-gr',plotTitle:'(g-r) vs. r',xAxisTitle:'r',yAxisTitle:'g-r',dataSeries:{vacgr:{id:'vac_g-r',title:'VAC',opacity:0.6,values:[]},gr:{id:'g-r',title:'(g-r) vs. r',opacity:1,values:[]}}},{itemId:'cmd-ri',plotTitle:'(r-i) vs. i',xAxisTitle:'i',yAxisTitle:'r-i',dataSeries:{vacri:{id:'vac_r-i',title:'VAC',opacity:0.6,values:[]},ri:{id:'r-i',title:'(r-i) vs. i',opacity:1,values:[]}}},{itemId:'cmd-iz',plotTitle:'(i-z) vs. z',xAxisTitle:'z',yAxisTitle:'i-z',dataSeries:{vaciz:{id:'vac_i-z',title:'VAC',opacity:0.6,values:[]},iz:{id:'i-z',title:'(i-z) vs. z',opacity:1,values:[]}}},{itemId:'cmd-zy',plotTitle:'(z-y) vs. Y',xAxisTitle:'Y',yAxisTitle:'z-Y',dataSeries:{vaczy:{id:'vac_z-y',title:'VAC',opacity:0.6,values:[]},zy:{id:'z-y',title:'(z-y) vs. Y',opacity:1,values:[]}}}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},getMembersData:function(){var c=this,b=c.getMembers(),a={gr:[],ri:[],iz:[],zy:[]};b.each(function(b){var g=parseFloat(b.get('mag_g')),d=parseFloat(b.get('mag_r')),c=parseFloat(b.get('mag_i')),e=parseFloat(b.get('mag_r')),f=parseFloat(b.get('mag_y'));a.gr.push({'id':b.get('_meta_id'),'x':d,'y':g-d,'serie':'g-r'});a.ri.push({'id':b.get('_meta_id'),'x':c,'y':d-c,'serie':'r-i'});a.iz.push({'id':b.get('_meta_id'),'x':e,'y':c-e,'serie':'i-z'});a.zy.push({'id':b.get('_meta_id'),'x':f,'y':e-f,'serie':'z-y'})});return a},getVacsData:function(){var c=this,b=c.getVacs(),a={vacgr:[],vacri:[],vaciz:[],vaczy:[]};b.each(function(b){var g=parseFloat(b.get('mag_g')),d=parseFloat(b.get('mag_r')),c=parseFloat(b.get('mag_i')),e=parseFloat(b.get('mag_r')),f=parseFloat(b.get('mag_y'));a.vacgr.push({'id':b.get('_meta_id'),'x':d,'y':g-d,'serie':'vac_g-r'});a.vacri.push({'id':b.get('_meta_id'),'x':c,'y':d-c,'serie':'vac_r-i'});a.vaciz.push({'id':b.get('_meta_id'),'x':e,'y':c-e,'serie':'vac_i-z'});a.vaczy.push({'id':b.get('_meta_id'),'x':f,'y':e-f,'serie':'vac_z-y'})});return a},reloadPlots:function(){var a=this,d=a.items,b=a.getMembersData(),c=a.getVacsData();d.each(function(a){a.setMembers(b);a.setVacs(c);a.reloadData()})},onCmdClickPoint:function(d,f,h){var a=this,e=a.getMembers(),g=a.getVacs(),c='member',b;if(f.indexOf('vac_')!=-1){c='vac';b=g.findRecord('_meta_id',d)}else {b=e.findRecord('_meta_id',d)}a.fireEvent('clickpoint',b,c,a)}},0,['cmd-tab'],['component','box','container','panel','cmd-tab'],{'component':!0,'box':!0,'container':!0,'panel':!0,'cmd-tab':!0},['widget.cmd-tab'],0,[Explorer.view.system.cmd,'CmdTab'],0);Ext.cmd.derive('Explorer.view.system.System',Ext.panel.Panel,{controller:'system',viewModel:'system',layout:'fit',initComponent:function(){var a=this;Ext.apply(this,{layout:'border',defaults:{frame:!0},items:[{xtype:'panel',region:'west',width:300,margin:'0 10 0 0',collapsible:!0,reference:'detailPanel',layout:{type:'vbox',pack:'start',align:'stretch'},items:[{xtype:'system-form',reference:'properties-form',split:!0,bbar:[{xtype:'button',text:'SIMBAD',handler:'onClickSimbad'},{xtype:'button',text:'NED',handler:'onClickNed'}]},{xtype:'system-properties',reference:'properties-grid',split:!0,flex:1}]},{xtype:'panel',region:'center',flex:1,split:!0,layout:{type:'vbox',pack:'start',align:'stretch'},margin:'0 0 10 0',defaults:{frame:!0},items:[{xtype:'panel',flex:1,split:!0,layout:{type:'hbox',pack:'start',align:'stretch'},items:[{xtype:'system-visiomatic',reference:'visiomatic',margin:'0 10 0 0',split:!0,flex:1},{xtype:'system-aladin',reference:'aladin',split:!0,flex:1,bind:{storeSurveys:'{surveys}',storeTags:'{tags}',storeTiles:'{tiles}'}}]},{xtype:'tabpanel',flex:1,split:!0,items:[{xtype:'system-members-grid',title:'System Members',reference:'members-grid',bind:{store:'{members}',selection:'{selected_member}'},listeners:{select:'onSelectSystemMember'}},{xtype:'system-vac-grid',title:'VAC',reference:'vac-grid',bind:{store:'{vacObjects}'},listeners:{select:'onSelectVacObject'}},{xtype:'panel',title:'Properties Distribution',layout:{type:'hbox',pack:'start',align:'stretch'},bind:{disabled:'{!have_members}'},items:[{xtype:'system-z-distribution',flex:1,bind:{store:'{members}'}},{xtype:'system-mag-distribution',flex:1,bind:{store:'{members}'}}]},{xtype:'system-spatial-distribution',title:'Spatial Distribution',disabled:!0},{xtype:'cmd-tab',title:'CMD',reference:'CmdTab',flex:1,scrollable:!0,bind:{disabled:'{!have_members}'},listeners:{activate:'onActiveCmdTab',clickpoint:'onCmdClickPoint'}}]}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},loadPanel:function(b){var a=this,e=a.getViewModel(),d=b[1],c=b[2];e.set('source',d);e.set('object_id',c);a.fireEvent('loadpanel',d,c,a)},updatePanel:function(a){}},0,['system'],['component','box','container','panel','system'],{'component':!0,'box':!0,'container':!0,'panel':!0,'system':!0},['widget.system'],0,[Explorer.view.system,'System'],0);Ext.cmd.derive('Explorer.view.main.MainController',Ext.app.ViewController,{routes:{'coadd/:source/:object':{action:'onCoadd'},'system/:source/:object':{action:'onSystem'}},setActivePanel:function(e){var h=this,g=h.getReferences(),b=g.mainCardPanel,d=b.getLayout(),f=e.routeId,c=b.child('component[routeId='+f+']'),a=null;if(!c){a=b.add(e);a.loadPanel(arguments);d.setActiveItem(a)}else {a=c;a.updatePanel(arguments);d.setActiveItem(a)}},onCoadd:function(c,a){var b=Ext.create('Explorer.view.coadd.Coadd',{hideMode:'offsets',routeId:'coadd',layout:'fit'});this.setActivePanel(b,c,a)},onSystem:function(c,a){var b=Ext.create('Explorer.view.system.System',{hideMode:'offsets',routeId:'sytem',layout:'fit'});this.setActivePanel(b,c,a)}},0,0,0,0,['controller.main'],0,[Explorer.view.main,'MainController'],0);Ext.cmd.derive('Explorer.view.main.MainModel',Ext.app.ViewModel,{data:{name:'Explorer',internal_name:'explorer',loremIpsum:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'}},0,0,0,0,['viewmodel.main'],0,[Explorer.view.main,'MainModel'],0);Ext.cmd.derive('Explorer.view.main.Main',Ext.container.Container,{controller:'main',viewModel:'main',layout:{type:'vbox',align:'stretch'},items:[{xtype:'dri-header'},{xtype:'container',flex:1,reference:'mainCardPanel',layout:{type:'card',anchor:'100%'}},{xtype:'dri-footer'}]},0,['app-main'],['component','box','container','app-main'],{'component':!0,'box':!0,'container':!0,'app-main':!0},['widget.app-main'],0,[Explorer.view.main,'Main'],0);Ext.application({name:'Explorer',extend:Explorer.Application,mainView:'Explorer.view.main.Main'}); \ No newline at end of file +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.defineProperty=typeof Object.defineProperties=='function'?Object.defineProperty:function(b,c,a){a=a;if(b==Array.prototype||b==Object.prototype){return}b[c]=a.value};$jscomp.getGlobal=function(a){return typeof window!='undefined'&&window===a?a:typeof global!='undefined'&&global!=null?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(i,f,j,k){if(!f){return}var a=$jscomp.global;var b=i.split('.');for(var e=0;ec){if(--b in this){this[--d]=this[b]}else {delete this[d]}}}return this};return b},'es6-impl','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global['Symbol']){$jscomp.global['Symbol']=$jscomp.Symbol}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||'')+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global['Symbol'].iterator;if(!a){a=$jscomp.global['Symbol'].iterator=$jscomp.global['Symbol']('iterator')}if(typeof Array.prototype[a]!='function'){$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}})}$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){if(bd){b=d}b=Number(b);if(b<0){b=Math.max(0,d+b)}for(var e=Number(c||0);e-0.25){var f=b;var g=1;var c=b;var d=0;var e=1;while(d!=c){f*=b;e*=-1;c=(d=c)+e*f/++g}return c}return Math.log(1+b)};return b},'es6-impl','es3');$jscomp.polyfill('Math.atanh',function(b){if(b){return b}var a=Math.log1p;var c=function(c){c=Number(c);return (a(c)-a(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.cbrt',function(a){if(a){return a}var b=function(b){if(b===0){return b}b=Number(b);var c=Math.pow(Math.abs(b),1/3);return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Math.clz32',function(a){if(a){return a}var b=function(b){b=Number(b)>>>0;if(b===0){return 32}var c=0;if((b&4.29490176E9)===0){b<<=16;c+=16}if((b&4.27819008E9)===0){b<<=8;c+=8}if((b&4.02653184E9)===0){b<<=4;c+=4}if((b&3.221225472E9)===0){b<<=2;c+=2}if((b&2.147483648E9)===0){c++}return c};return b},'es6-impl','es3');$jscomp.polyfill('Math.cosh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);return (b(c)+b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.expm1',function(a){if(a){return a}var b=function(b){b=Number(b);if(b<0.25&&b>-0.25){var e=b;var f=1;var c=b;var d=0;while(d!=c){e*=b/++f;c=(d=c)+e}return c}return Math.exp(b)-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.hypot',function(a){if(a){return a}var b=function(c,d,h){c=Number(c);d=Number(d);var b,g,f;var e=Math.max(Math.abs(c),Math.abs(d));for(b=2;b1.0E100||e<1.0E-100){c=c/e;d=d/e;f=c*c+d*d;for(b=2;b>>16&65535;var d=b&65535;var g=c>>>16&65535;var e=c&65535;var h=f*e+d*g<<16>>>0;return d*e+h|0};return b},'es6-impl','es3');$jscomp.polyfill('Math.log10',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN10};return b},'es6-impl','es3');$jscomp.polyfill('Math.log2',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN2};return b},'es6-impl','es3');$jscomp.polyfill('Math.sign',function(a){if(a){return a}var b=function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.sinh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);if(c===0){return c}return (b(c)-b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.tanh',function(a){if(a){return a}var b=function(b){b=Number(b);if(b===0){return b}var c=Math.exp(-2*Math.abs(b));var d=(1-c)/(1+c);return b<0?-d:d};return b},'es6-impl','es3');$jscomp.polyfill('Math.trunc',function(a){if(a){return a}var b=function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0){return b}var c=Math.floor(Math.abs(b));return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Number.EPSILON',function(a){return Math.pow(2,-52)},'es6-impl','es3');$jscomp.polyfill('Number.MAX_SAFE_INTEGER',function(){return 9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.MIN_SAFE_INTEGER',function(){return -9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.isFinite',function(a){if(a){return a}var b=function(b){if(typeof b!=='number'){return !1}return !isNaN(b)&&b!==Infinity&&b!==-Infinity};return b},'es6-impl','es3');$jscomp.polyfill('Number.isInteger',function(a){if(a){return a}var b=function(b){if(!Number.isFinite(b)){return !1}return b===Math.floor(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isNaN',function(a){if(a){return a}var b=function(b){return typeof b==='number'&&isNaN(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isSafeInteger',function(a){if(a){return a}var b=function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER};return b},'es6-impl','es3');$jscomp.polyfill('Object.assign',function(a){if(a){return a}var b=function(e,f){for(var d=1;d3?f:b,e);return !0}else {if(c.writable&&!Object.isFrozen(b)){b[d]=e;return !0}}return !1};return b},'es6','es5');$jscomp.polyfill('Reflect.setPrototypeOf',function(a){if(a){return a}if(typeof ''.__proto__!='object'){return null}var b=function(b,c){try{b.__proto__=c;return b.__proto__===c}catch(d){return !1}};return b},'es6','es5');$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.polyfill('Set',function(b){var c=!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!b||!b.prototype.entries||typeof Object.seal!='function'){return !1}try{b=b;var d=Object.seal({x:4});var c=new b($jscomp.makeIterator([d]));if(!c.has(d)||c.size!=1||c.add(d)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2){return !1}var e=c.entries();var a=e.next();if(a.done||a.value[0]!=d||a.value[1]!=d){return !1}a=e.next();if(a.done||a.value[0]==d||a.value[0].x!=4||a.value[1]!=a.value[0]){return !1}return e.next().done}catch(f){return !1}}();if(c){return b}$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=function(a){this.map_=new Map();if(a){var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}this.size=this.map_.size};a.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};a.prototype['delete']=function(c){var a=this.map_['delete'](c);this.size=this.map_.size;return a};a.prototype.clear=function(){this.map_.clear();this.size=0};a.prototype.has=function(a){return this.map_.has(a)};a.prototype.entries=function(){return this.map_.entries()};a.prototype.values=function(){return this.map_.values()};a.prototype.keys=a.prototype.values;$jscomp.initSymbol();$jscomp.initSymbolIterator();a.prototype[Symbol.iterator]=a.prototype.values;a.prototype.forEach=function(c,a){var d=this;this.map_.forEach(function(e){return c.call(a,e,e,d)})};return a},'es6-impl','es3');$jscomp.checkStringArgs=function(a,c,b){if(a==null){throw new TypeError("The 'this' value for String.prototype."+b+' must not be null or undefined')}if(c instanceof RegExp){throw new TypeError('First argument to String.prototype.'+b+' must not be a regular expression')}return a+''};$jscomp.polyfill('String.prototype.codePointAt',function(a){if(a){return a}var b=function(b){var e=$jscomp.checkStringArgs(this,null,'codePointAt');var f=e.length;b=Number(b)||0;if(!(b>=0&&b56319||b+1===f){return c}var d=e.charCodeAt(b+1);if(d<56320||d>57343){return c}return (c-55296)*1024+d+9216};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.endsWith',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'endsWith');b=b+'';if(c===void 0){c=d.length}var f=Math.max(0,Math.min(c|0,d.length));var e=b.length;while(e>0&&f>0){if(d[--f]!=b[--e]){return !1}}return e<=0};return b},'es6-impl','es3');$jscomp.polyfill('String.fromCodePoint',function(a){if(a){return a}var b=function(e){var c='';for(var d=0;d1114111||b!==Math.floor(b)){throw new RangeError('invalid_code_point '+b)}if(b<=65535){c+=String.fromCharCode(b)}else {b-=65536;c+=String.fromCharCode(b>>>10&1023|55296);c+=String.fromCharCode(b&1023|56320)}}return c};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.includes',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'includes');return d.indexOf(b,c||0)!==-1};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.repeat',function(a){if(a){return a}var b=function(b){var c=$jscomp.checkStringArgs(this,null,'repeat');if(b<0||b>1342177279){throw new RangeError('Invalid count value')}b=b|0;var d='';while(b){if(b&1){d+=c}if(b>>>=1){c+=c}}return d};return b},'es6-impl','es3');$jscomp.stringPadding=function(c,a){var b=c!==undefined?String(c):' ';if(!(a>0)||!b){return ''}var d=Math.ceil(a/b.length);return b.repeat(d).substring(0,a)};$jscomp.polyfill('String.prototype.padEnd',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return b+$jscomp.stringPadding(c,e)};return b},'es8','es3');$jscomp.polyfill('String.prototype.padStart',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return $jscomp.stringPadding(c,e)+b};return b},'es8','es3');$jscomp.polyfill('String.prototype.startsWith',function(a){if(a){return a}var b=function(b,g){var c=$jscomp.checkStringArgs(this,b,'startsWith');b=b+'';var h=c.length;var e=b.length;var f=Math.max(0,Math.min(g|0,c.length));var d=0;while(d=e};return b},'es6-impl','es3');$jscomp.arrayFromIterator=function(c){var b;var a=[];while(!(b=c.next()).done){a.push(b.value)}return a};$jscomp.arrayFromIterable=function(a){if(a instanceof Array){return a}else {return $jscomp.arrayFromIterator($jscomp.makeIterator(a))}};$jscomp.inherits=function(a,b){function tempCtor(){}tempCtor.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new tempCtor();a.prototype.constructor=a;for(var c in b){if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);if(d){Object.defineProperty(a,c,d)}}else {a[c]=b[c]}}};$jscomp.polyfill('WeakSet',function(b){function isConformant(){if(!b||!Object.seal){return !1}try{var c=Object.seal({});var d=Object.seal({});var a=new b([c]);if(!a.has(c)||a.has(d)){return !1}a['delete'](c);a.add(d);return !a.has(c)&&a.has(d)}catch(e){return !1}}if(isConformant()){return b}var a=function(a){this.map_=new WeakMap();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}};a.prototype.add=function(a){this.map_.set(a,!0);return this};a.prototype.has=function(a){return this.map_.has(a)};a.prototype['delete']=function(a){return this.map_['delete'](a)};return a},'es6-impl','es3');try{if(Array.prototype.values.toString().indexOf('[native code]')==-1){delete Array.prototype.values}}catch(a){}var Explorer=Explorer||{};if(!Explorer.model){Explorer.model={}}if(!Explorer.store){Explorer.store={}}if(!Explorer.view){Explorer.view={}}if(!Explorer.view.coadd){Explorer.view.coadd={}}if(!Explorer.view.main){Explorer.view.main={}}if(!Explorer.view.system){Explorer.view.system={}}if(!Explorer.view.system.cmd){Explorer.view.system.cmd={}}var Ext=Ext||{};if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.app.bind){Ext.app.bind={}}if(!Ext.app.domain){Ext.app.domain={}}if(!Ext.app.route){Ext.app.route={}}if(!Ext.button){Ext.button={}}if(!Ext.chart){Ext.chart={}}if(!Ext.chart.axis){Ext.chart.axis={}}if(!Ext.chart.axis.layout){Ext.chart.axis.layout={}}if(!Ext.chart.axis.segmenter){Ext.chart.axis.segmenter={}}if(!Ext.chart.axis.sprite){Ext.chart.axis.sprite={}}if(!Ext.chart.grid){Ext.chart.grid={}}if(!Ext.chart.interactions){Ext.chart.interactions={}}if(!Ext.chart.label){Ext.chart.label={}}if(!Ext.chart.overrides){Ext.chart.overrides={}}if(!Ext.chart.plugin){Ext.chart.plugin={}}if(!Ext.chart.series){Ext.chart.series={}}if(!Ext.chart.series.sprite){Ext.chart.series.sprite={}}if(!Ext.chart.theme){Ext.chart.theme={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}if(!Ext.data){Ext.data={}}if(!Ext.data.field){Ext.data.field={}}if(!Ext.data.flash){Ext.data.flash={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.matrix){Ext.data.matrix={}}if(!Ext.data.operation){Ext.data.operation={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.request){Ext.data.request={}}if(!Ext.data.schema){Ext.data.schema={}}if(!Ext.data.session){Ext.data.session={}}if(!Ext.data.validator){Ext.data.validator={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dd){Ext.dd={}}if(!Ext.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.draw){Ext.draw={}}if(!Ext.draw.engine){Ext.draw.engine={}}if(!Ext.draw.engine.SvgContext){Ext.draw.engine.SvgContext={}}if(!Ext.draw.gradient){Ext.draw.gradient={}}if(!Ext.draw.modifier){Ext.draw.modifier={}}if(!Ext.draw.sprite){Ext.draw.sprite={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.form){Ext.form={}}if(!Ext.form.Action){Ext.form.Action={}}if(!Ext.form.action){Ext.form.action={}}if(!Ext.form.field){Ext.form.field={}}if(!Ext.form.trigger){Ext.form.trigger={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.fx.target){Ext.fx.target={}}if(!Ext.grid){Ext.grid={}}if(!Ext.grid.column){Ext.grid.column={}}if(!Ext.grid.header){Ext.grid.header={}}if(!Ext.grid.locking){Ext.grid.locking={}}if(!Ext.grid.plugin){Ext.grid.plugin={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.boxOverflow){Ext.layout.boxOverflow={}}if(!Ext.layout.component){Ext.layout.component={}}if(!Ext.layout.component.field){Ext.layout.component.field={}}if(!Ext.layout.container){Ext.layout.container={}}if(!Ext.layout.container.border){Ext.layout.container.border={}}if(!Ext.layout.container.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.list){Ext.list={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.overrides){Ext.overrides={}}if(!Ext.overrides.app){Ext.overrides.app={}}if(!Ext.overrides.app.domain){Ext.overrides.app.domain={}}if(!Ext.overrides.dom){Ext.overrides.dom={}}if(!Ext.overrides.event){Ext.overrides.event={}}if(!Ext.overrides.event.publisher){Ext.overrides.event.publisher={}}if(!Ext.overrides.plugin){Ext.overrides.plugin={}}if(!Ext.overrides.util){Ext.overrides.util={}}if(!Ext.panel){Ext.panel={}}if(!Ext.perf){Ext.perf={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.promise){Ext.promise={}}if(!Ext.resizer){Ext.resizer={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.selection){Ext.selection={}}if(!Ext.state){Ext.state={}}if(!Ext.tab){Ext.tab={}}if(!Ext.theme){Ext.theme={}}if(!Ext.theme.crisp){Ext.theme.crisp={}}if(!Ext.theme.crisp.view){Ext.theme.crisp.view={}}if(!Ext.theme.neptune){Ext.theme.neptune={}}if(!Ext.theme.neptune.container){Ext.theme.neptune.container={}}if(!Ext.theme.neptune.grid){Ext.theme.neptune.grid={}}if(!Ext.theme.neptune.grid.column){Ext.theme.neptune.grid.column={}}if(!Ext.theme.neptune.layout){Ext.theme.neptune.layout={}}if(!Ext.theme.neptune.layout.component){Ext.theme.neptune.layout.component={}}if(!Ext.theme.neptune.menu){Ext.theme.neptune.menu={}}if(!Ext.theme.neptune.panel){Ext.theme.neptune.panel={}}if(!Ext.theme.neptune.resizer){Ext.theme.neptune.resizer={}}if(!Ext.theme.neptune.toolbar){Ext.theme.neptune.toolbar={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}if(!Ext.tree){Ext.tree={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.ux){Ext.ux={}}if(!Ext.ux.colorpick){Ext.ux.colorpick={}}if(!Ext.ux.layout){Ext.ux.layout={}}if(!Ext.ux.rating){Ext.ux.rating={}}if(!Ext.view){Ext.view={}}if(!Ext.window){Ext.window={}}var Portal=Portal||{};var aladin=aladin||{};if(!aladin.maps){aladin.maps={}}if(!aladin.model){aladin.model={}}if(!aladin.store){aladin.store={}}var common=common||{};if(!common.contact){common.contact={}}if(!common.data){common.data={}}if(!common.data.proxy){common.data.proxy={}}if(!common.footer){common.footer={}}if(!common.header){common.header={}}if(!common.help){common.help={}}if(!common.model){common.model={}}if(!common.store){common.store={}}var visiomatic=visiomatic||{};if(!visiomatic.catalog){visiomatic.catalog={}}if(!visiomatic.crop){visiomatic.crop={}}if(!visiomatic.download){visiomatic.download={}}if(!visiomatic.filter){visiomatic.filter={}}if(!visiomatic.model){visiomatic.model={}}if(!visiomatic.store){visiomatic.store={}}(function(q){var e,p=['constructor','toString','valueOf','toLocaleString'],n={},m={},k=0,l,j,a,b,o,f,c,d,g,h,i,t=function(){var s,t;j=Ext.Base;a=Ext.ClassManager;b=Ext.Class;for(s=p.length;s-->0;){t=1<0;){H=e[l];g[H]=j[H]}if(c.$isFunction){c=c(g)}v.data=c;x=c.statics;delete c.statics;c.$className=u;if('$className' in c){g.$className=c.$className}g.extend(Q);r=g.prototype;if(E){g.xtype=c.xtype=E[0];r.xtypes=E}r.xtypesChain=M;r.xtypesMap=O;c.alias=B;m.triggerExtended(g,c,v);if(c.onClassExtended){g.onExtended(c.onClassExtended,g);delete c.onClassExtended}if(c.privates&&h){h.call(b,g,c)}if(x){if(i){g.addStatics(x)}else {for(w in x){if(x.hasOwnProperty(w)){t=x[w];if(t&&t.$isFunction&&!t.$isClass&&t!==Ext.emptyFn&&t!==Ext.identityFn){g[w]=I=t;I.$owner=g;I.$name=w}g[w]=t}}}}if(c.inheritableStatics){g.addInheritableStatics(c.inheritableStatics);delete c.inheritableStatics}if(r.onClassExtended){m.onExtended(r.onClassExtended,m);delete r.onClassExtended}if(c.platformConfig&&d){d.call(b,g,c);delete c.platformConfig}if(c.config){o.call(b,g,c)}if(c.cachedConfig&&f){f.call(b,g,c);delete c.cachedConfig}v.onBeforeCreated(g,v.data,v);for(l=0,y=D&&D.length;l0){c--;a[c]='var Ext=window.'+Ext.name+';'+a[c]}}d=a.join('');b=e[d];if(!b){b=Function.prototype.constructor.apply(Function.prototype,a);e[d]=b}return b},functionFactory:function(){var b=Array.prototype.slice.call(arguments),a;if(Ext.isSandboxed){a=b.length;if(a>0){a--;b[a]='var Ext=window.'+Ext.name+';'+b[a]}}return Function.prototype.constructor.apply(Function.prototype,b)},Logger:{verbose:a,log:a,info:a,warn:a,error:function(a){throw new Error(a)},deprecate:a},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:function(){var a={};return function(e,c){if(!e){return []}else {if(!c){return [e]}}var g=a[c]||(a[c]=new RegExp('\\\\'+c,'g')),f=[],d,b;d=e.split(c);while((b=d.shift())!==undefined){while(b.charAt(b.length-1)==='\\'&&d.length>0){b=b+c+d.shift()}b=b.replace(g,c);f.push(b)}return f}}()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=!0})();Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=!0);(function(){function toString(){var d=this,b=d.sourceClass,a=d.sourceMethod,c=d.msg;if(a){if(c){a+='(): ';a+=c}else {a+='()'}}if(b){a=a?b+'.'+a:b}return a||c||''}Ext.Error=function(b){if(Ext.isString(b)){b={msg:b}}var a=new Error();Ext.apply(a,b);a.message=a.message||a.msg;a.toString=toString;return a};Ext.apply(Ext.Error,{ignore:!1,raise:function(a){a=a||{};if(Ext.isString(a)){a={msg:a}}var d=this,b=d.raise.caller,e,c;if(b===Ext.raise){b=b.caller}if(b){if(!a.sourceMethod&&(c=b.$name)){a.sourceMethod=c}if(!a.sourceClass&&(c=b.$owner)&&(c=c.$className)){a.sourceClass=c}}if(d.handle(a)!==!0){e=toString.call(a);throw new Ext.Error(a)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=function(){var c=Array.prototype,b=c.slice,f=function(){var a=[],b,c=20;if(!a.splice){return !1}while(c--){a.push('A')}a.splice(15,0,'F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F');b=a.length;a.splice(13,0,'XXX');if(b+1!==a.length){return !1}return !0}(),i='indexOf' in c,h=!0;function stableSort(b,e){var d=b.length,c=new Array(d),a;for(a=0;ac){for(b=l;b--;){a[h+b]=a[c+b]}}}if(e&&f===j){a.length=j;a.push.apply(a,d)}else {a.length=j+e;for(b=0;b>1;f=d(i,h[e]);if(f>=0){c=e+1}else {if(f<0){b=e-1}}}return c},defaultCompare:function(a,b){return ab?1:0},lexicalCompare:function(a,b){a=String(a);b=String(b);return ab?1:0},each:function(c,e,d,g){c=a.from(c);var b,f=c.length;if(g!==!0){for(b=0;b-1;b--){if(e.call(d||c[b],c[b],b,c)===!1){return b}}}return !0},forEach:'forEach' in c?function(a,c,b){return a.forEach(c,b)}:function(b,d,c){for(var a=0,e=b.length;a=0&&b>>0,c=e;if(arguments.length<3){while(!0){if(b in a){c=a[b++];break}if(++b>=d){throw new TypeError('Reduce of empty array with no initial value')}}}for(;bb){b=a}}}return b},mean:function(b){return b.length>0?a.sum(b)/b.length:undefined},sum:function(b){var d=0,a,e,c;for(a=0,e=b.length;ab?1:-1,a;for(a=b;a!=d;a+=e){c[a]=c[a+e]}c[d]=f},replace:j,splice:p,push:function(a){var d=arguments.length,c=1,b;if(a===undefined){a=[]}else {if(!Ext.isArray(a)){a=[a]}}for(;c=d){a=0}else {a=d-a}}if(a===0){b=c+b}else {if(a>=b.length){b+=c}else {b=b.substr(0,a)+c+b.substr(a)}}return b},startsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.lastIndexOf(a,0)===0}return c},endsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.indexOf(a,b.length-a.length)!==-1}return c},createVarName:function(a){return a.replace(l,'')},htmlEncode:function(a){return !a?a:String(a).replace(b,h)},htmlDecode:function(a){return !a?a:String(a).replace(d,g)},hasHtmlCharacters:function(a){return b.test(a)},addCharacterEntities:function(g){var i=[],h=[],e,f;for(e in g){f=g[e];a[e]=f;c[f]=e;i.push(f);h.push(e)}b=new RegExp('('+i.join('|')+')','g');d=new RegExp('('+h.join('|')+'|&#[0-9]{1,5};)','g')},resetCharacterEntities:function(){c={};a={};this.addCharacterEntities({'&':'&','>':'>','<':'<','"':'"',''':"'"})},urlAppend:function(a,b){if(!Ext.isEmpty(b)){return a+(a.indexOf('?')===-1?'?':'&')+b}return a},trim:function(a){if(a){a=a.replace(m,'')}return a||''},capitalize:function(a){if(a){a=a.charAt(0).toUpperCase()+a.substr(1)}return a||''},uncapitalize:function(a){if(a){a=a.charAt(0).toLowerCase()+a.substr(1)}return a||''},ellipsis:function(a,c,e){if(a&&a.length>c){if(e){var b=a.substr(0,c-2),d=Math.max(b.lastIndexOf(' '),b.lastIndexOf('.'),b.lastIndexOf('!'),b.lastIndexOf('?'));if(d!==-1&&d>=c-15){return b.substr(0,d)+'...'}}return a.substr(0,c-3)+'...'}return a},escapeRegex:function(a){return a.replace(i,'\\$1')},createRegex:function(b,d,e,c){var a=b;if(b!=null&&!b.exec){a=f.escapeRegex(String(b));if(d!==!1){a='^'+a}if(e!==!1){a+='$'}a=new RegExp(a,c!==!1?'i':'')}return a},escape:function(a){return a.replace(n,'\\$1')},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,d,b){var a=String(c);b=b||' ';while(a.length daysInMonth) {','d = daysInMonth;','}','}','h = from(h, from(def.h, dt.getHours()));','i = from(i, from(def.i, dt.getMinutes()));','s = from(s, from(def.s, dt.getSeconds()));','ms = from(ms, from(def.ms, dt.getMilliseconds()));','if(z >= 0 && y >= 0){','v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);','}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){','v = null;','}else{','if (W) {','year = y || (new Date()).getFullYear();','jan4 = new Date(year, 0, 4, 0, 0, 0);','d = jan4.getDay();','week1monday = new Date(jan4.getTime() - ((d === 0 ? 6 : d - 1) * 86400000));','v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));','} else {','v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','}','}','}','}','if(v){','if(zz != null){','v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);','}else if(o){',"v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));",'}','}','return (v != null) ? v : null;'].join('\n');if(!Date.prototype.toISOString){Date.prototype.toISOString=function(){var a=this;return c(a.getUTCFullYear(),4,'0')+'-'+c(a.getUTCMonth()+1,2,'0')+'-'+c(a.getUTCDate(),2,'0')+'T'+c(a.getUTCHours(),2,'0')+':'+c(a.getUTCMinutes(),2,'0')+':'+c(a.getUTCSeconds(),2,'0')+'.'+c(a.getUTCMilliseconds(),3,'0')+'Z'}}function xf(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(e,function(d,c){return b[c]})}return a={now:b.now,toString:function(a){if(!a){a=new b()}return a.getFullYear()+'-'+c(a.getMonth()+1,2,'0')+'-'+c(a.getDate(),2,'0')+'T'+c(a.getHours(),2,'0')+':'+c(a.getMinutes(),2,'0')+':'+c(a.getSeconds(),2,'0')},getElapsed:function(b,c){return Math.abs(b-(c||a.now()))},useStrict:!1,formatCodeToRegex:function(c,d){var b=a.parseCodes[c];if(b){b=typeof b==='function'?b():b;a.parseCodes[c]=b}return b?Ext.applyIf({c:b.c?xf(b.c,d||'{0}'):b.c},b):{g:0,c:null,s:Ext.String.escapeRegex(c)}},parseFunctions:{'MS':function(c,d){var a=(c||'').match(f);return a?new b(((a[1]||'')+a[2])*1):null},'time':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a)}return null},'timestamp':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a*1000)}return null}},parseRegexes:[],formatFunctions:{'MS':function(){return '\\/Date('+this.getTime()+')\\/'},'time':function(){return this.getTime().toString()},'timestamp':function(){return a.format(this,'U')}},y2kYear:50,MILLI:'ms',SECOND:'s',MINUTE:'mi',HOUR:'h',DAY:'d',MONTH:'mo',YEAR:'y',defaults:{},dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:'m/d/Y',getShortMonthName:function(b){return a.monthNames[b].substring(0,3)},getShortDayName:function(b){return a.dayNames[b].substring(0,3)},getMonthNumber:function(b){return a.monthNumbers[b.substring(0,1).toUpperCase()+b.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return h.test(a.replace(d,''))},formatContainsDateInfo:function(a){return g.test(a.replace(d,''))},unescapeFormat:function(a){return a.replace(i,'')},formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')",D:'Ext.Date.getShortDayName(m.getDay())',j:'m.getDate()',l:'Ext.Date.dayNames[m.getDay()]',N:'(m.getDay() ? m.getDay() : 7)',S:'Ext.Date.getSuffix(m)',w:'m.getDay()',z:'Ext.Date.getDayOfYear(m)',W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')",F:'Ext.Date.monthNames[m.getMonth()]',m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')",M:'Ext.Date.getShortMonthName(m.getMonth())',n:'(m.getMonth() + 1)',t:'Ext.Date.getDaysInMonth(m)',L:'(Ext.Date.isLeapYear(m) ? 1 : 0)',o:'(m.getFullYear() + (Ext.Date.getWeekOfYear(m) == 1 && m.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(m) >= 52 && m.getMonth() < 11 ? -1 : 0)))',Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')",y:"('' + m.getFullYear()).substring(2, 4)",a:"(m.getHours() < 12 ? 'am' : 'pm')",A:"(m.getHours() < 12 ? 'AM' : 'PM')",g:'((m.getHours() % 12) ? m.getHours() % 12 : 12)',G:'m.getHours()',h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(m.getHours(), 2, '0')",i:"Ext.String.leftPad(m.getMinutes(), 2, '0')",s:"Ext.String.leftPad(m.getSeconds(), 2, '0')",u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')",O:'Ext.Date.getGMTOffset(m)',P:'Ext.Date.getGMTOffset(m, true)',T:'Ext.Date.getTimezone(m)',Z:'(m.getTimezoneOffset() * -60)',c:function(){var e='Y-m-dTH:i:sP',d=[],b,f=e.length,c;for(b=0;b me.y2kYear ? 1900 + ty : 2000 + ty;\n',s:'(\\d{2})'},a:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(am|pm|AM|PM)',calcAtEnd:!0},A:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(AM|PM|am|pm)',calcAtEnd:!0},g:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|[0-9])'},G:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|1[0-9]|[0-9])'},h:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|0[1-9])'},H:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|[0-1][0-9])'},i:{g:1,c:'i = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},s:{g:1,c:'s = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},u:{g:1,c:'ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n',s:'(\\d+)'},O:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),','mn = o.substring(3,5) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{4})'},P:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),','mn = o.substring(4,6) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{2}:\\d{2})'},T:{g:0,c:null,s:'[A-Z]{1,5}'},Z:{g:1,c:'zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n',s:'([+-]?\\d{1,5})'},c:function(){var d=[],b=[a.formatCodeToRegex('Y',1),a.formatCodeToRegex('m',2),a.formatCodeToRegex('d',3),a.formatCodeToRegex('H',4),a.formatCodeToRegex('i',5),a.formatCodeToRegex('s',6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:['if(results[8]) {',"if(results[8] == 'Z'){",'zz = 0;',"}else if (results[8].indexOf(':') > -1){",a.formatCodeToRegex('P',8).c,'}else{',a.formatCodeToRegex('O',8).c,'}','}'].join('\n')}],c,e;for(c=0,e=b.length;c0?'-':'+')+Ext.String.leftPad(Math.floor(Math.abs(a)/60),2,'0')+(b?':':'')+Ext.String.leftPad(Math.abs(a%60),2,'0')},getDayOfYear:function(c){var e=0,b=a.clone(c),f=c.getMonth(),d;for(d=0,b.setDate(1),b.setMonth(0);d28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.MONTH,c)).getDate())};b.setDate(d);b.setMonth(f.getMonth()+c);break;case a.YEAR:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.YEAR,c)).getDate())};b.setDate(d);b.setFullYear(f.getFullYear()+c);break;}}if(g){switch(h.toLowerCase()){case a.MILLI:e=1;break;case a.SECOND:e=1000;break;case a.MINUTE:e=1000*60;break;case a.HOUR:e=1000*60*60;break;case a.DAY:e=1000*60*60*24;break;case a.MONTH:d=a.getDaysInMonth(b);e=1000*60*60*24*d;break;case a.YEAR:d=a.isLeapYear(b)?366:365;e=1000*60*60*24*d;break;}if(e){b.setTime(b.getTime()+e*g)}}return b},subtract:function(d,b,c){return a.add(d,b,-c)},between:function(c,b,d){var a=c.getTime();return b.getTime()<=a&&a<=d.getTime()},compat:function(){var c,g=['useStrict','formatCodeToRegex','parseFunctions','parseRegexes','formatFunctions','y2kYear','MILLI','SECOND','MINUTE','HOUR','DAY','MONTH','YEAR','defaults','dayNames','monthNames','monthNumbers','getShortMonthName','getShortDayName','getMonthNumber','formatCodes','isValid','parseDate','getFormatCode','createFormat','createParser','parseCodes'],h=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],j=g.length,i=h.length,f,e,d;for(d=0;dd){return b-1};return b;case a.YEAR:b=d.getFullYear()-e.getFullYear();if(a.add(e,f,b)>d){return b-1}else {return b};}},align:function(e,f,d){var c=new b(+e);switch(f.toLowerCase()){case a.MILLI:return c;case a.SECOND:c.setUTCSeconds(c.getUTCSeconds()-c.getUTCSeconds()%d);c.setUTCMilliseconds(0);return c;case a.MINUTE:c.setUTCMinutes(c.getUTCMinutes()-c.getUTCMinutes()%d);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.HOUR:c.setUTCHours(c.getUTCHours()-c.getUTCHours()%d);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.DAY:if(d===7||d===14){c.setUTCDate(c.getUTCDate()-c.getUTCDay()+1)};c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.MONTH:c.setUTCMonth(c.getUTCMonth()-(c.getUTCMonth()-1)%d,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.YEAR:c.setUTCFullYear(c.getUTCFullYear()-c.getUTCFullYear()%d,1,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return e;}}}}();Ext.Function=function(){var i=0,f,c=[],l=[],m=0,e={},d=window,b=Ext.global,h=!!(b.setImmediate&&b.clearImmediate),k=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(c){var b=Ext.now(),a=Math.max(0,16-(b-i)),e=d.setTimeout(function(){c(b+a)},a);i=b+a;return e},g=function(){var h=c.length,g,d,a;f=null;for(d=0;d0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},b)}a();return 0},interval:function(a,c,d,e,b){a=Ext.Function.bind(a,d,e,b);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},c)},createSequence:function(a,b,c){if(!b){return a}else {return function(){var d=a.apply(this,arguments);b.apply(c||this,arguments);return d}}},createBuffered:function(b,c,d,e){var a;return function(){var f=e||Array.prototype.slice.call(arguments,0),g=d||this;if(a){clearTimeout(a)}a=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b,g,f)}else {b.apply(g,f)}},c)}},createAnimationFrame:function(f,d,e,c){var b;c=c||3;return function(){var g=e||Array.prototype.slice.call(arguments,0);d=d||this;if(c===3&&b){a.cancelAnimationFrame(b)}if(c&1||!b){b=a.requestAnimationFrame(function(){b=null;f.apply(d,g)})}}},requestAnimationFrame:function(i,d,h){var a=++m,b=Array.prototype.slice.call(arguments,0);b[3]=a;e[a]=1;c.push(b);if(!f){f=k(Ext.elevateFunction?j:g)}return a},cancelAnimationFrame:function(a){delete e[a]},createThrottled:function(h,f,a){var e=0,d,c,b,g=function(){if(Ext.elevateFunction){Ext.elevateFunction(h,a,c)}else {h.apply(a,c)}e=Ext.now();b=null};return function(){if(!a){a=this}d=Ext.now()-e;c=arguments;if(d>=f){clearTimeout(b);g()}else {if(!b){b=Ext.defer(g,f-d)}}}},createBarrier:function(a,c,b){return function(){if(!--a){c.apply(b,arguments)}}},interceptBefore:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){var f=e.apply(d||this,arguments);c.apply(this,arguments);return f}},interceptAfter:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){c.apply(this,arguments);return e.apply(d||this,arguments)}},makeCallback:function(b,a){return function(){return a[b].apply(a,arguments)}},memoize:function(e,c,a){var b={},d=a&&Ext.isFunction(a);return function(g){var f=d?a.apply(c,arguments):g;if(!(f in b)){b[f]=e.apply(c,arguments)}return b[f]}}};Ext.asap=h?function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setImmediate(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}})}:function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}},0,!0)},Ext.asapCancel=h?function(a){clearImmediate(a)}:function(a){clearTimeout(a)};Ext.defer=a.defer;Ext.interval=a.interval;Ext.pass=a.pass;Ext.bind=a.bind;Ext.deferCallback=a.requestAnimationFrame;return a}();Ext.Number=new function(){var b=this,d=(0.9).toFixed()!=='1',c=Math,a={count:!1,inclusive:!1,wrap:!0};Ext.apply(b,{Clip:{DEFAULT:a,COUNT:Ext.applyIf({count:!0},a),INCLUSIVE:Ext.applyIf({inclusive:!0},a),NOWRAP:Ext.applyIf({wrap:!1},a)},clipIndices:function(d,c,f){f=f||a;var h=0,i=f.wrap,g,b,e;c=c||[];for(e=0;e<2;++e){g=b;b=c[e];if(b==null){b=h}else {if(e&&f.count){b+=g;b=b>d?d:b}else {if(i){b=b<0?d+b:b}if(e&&f.inclusive){++b}b=b<0?0:b>d?d:b}}h=d}c[0]=g;c[1]=ba?a:d},snap:function(a,c,e,f){var d;if(a===undefined||a=c){a+=c}else {if(d*2<-c){a-=c}}}}return b.constrain(a,e,f)},snapInRange:function(a,d,c,e){var f;c=c||0;if(a===undefined||a=d){a+=d}}if(e!==undefined){if(a>(e=b.snapInRange(e,d,c))){a=e}}return a},sign:function(a){a=+a;if(a===0||isNaN(a)){return a}return a>0?1:-1},toFixed:d?function(d,a){a=a||0;var b=c.pow(10,a);return (c.round(d*b)/b).toFixed(a)}:function(b,a){return b.toFixed(a)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(a,b){return c.floor(c.random()*(b-a+1)+a)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return b.from.apply(this,arguments)}}();(function(){var b=function(){},d=/^\?/,f=/(\[):?([^\]]*)\]/g,e=/^([^\[]+)/,c=/\+/g,a=Ext.Object={chain:Object.create||function(a){b.prototype=a;var c=new b();b.prototype=null;return c},clear:function(a){for(var b in a){delete a[b]}return a},freeze:Object.freeze?function(b,c){if(b&&typeof b==='object'&&!Object.isFrozen(b)){Object.freeze(b);if(c){for(var d in b){a.freeze(b[d],c)}}}return b}:Ext.identityFn,toQueryObjects:function(e,c,f){var g=a.toQueryObjects,d=[],b,h;if(Ext.isArray(c)){for(b=0,h=c.length;b0){o=q.split('=');a=o[0];a=a.replace(c,'%20');a=decodeURIComponent(a);g=o[1];if(g!==undefined){g=g.replace(c,'%20');g=decodeURIComponent(g)}else {g=''}if(!v){if(i.hasOwnProperty(a)){if(!Ext.isArray(i[a])){i[a]=[i[a]]}i[a].push(g)}else {i[a]=g}}else {m=a.match(f);r=a.match(e);a=r[0];k=[];if(m===null){i[a]=g;continue}for(h=0,l=m.length;h@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(b){var c=b,a;if(b&&b.charAt(0)==='<'){a=Ext._resourcePoolRe.exec(b);if(a){c=Ext.getResourcePath(a[3],a[1],a[2])}}return c},urlEncode:function(){var a=Ext.Array.from(arguments),b='';if(Ext.isString(a[1])){b=a[1]+'&';a[1]=!1}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(d){var b=Ext._scrollbarSize;if(d||!b){var c=document.body,a=document.createElement('div');a.style.width=a.style.height='100px';a.style.overflow='scroll';a.style.position='absolute';c.appendChild(a);Ext._scrollbarSize=b={width:a.offsetWidth-a.clientWidth,height:a.offsetHeight-a.clientHeight};c.removeChild(a)}return b},typeOf:function(){var a=/\S/,d=Object.prototype.toString,c={number:1,string:1,'boolean':1,'undefined':1},b={'[object Array]':'array','[object Date]':'date','[object Boolean]':'boolean','[object Number]':'number','[object RegExp]':'regexp'};return function(e){if(e===null){return 'null'}var f=typeof e,g,h;if(c[f]){return f}g=b[h=d.call(e)];if(g){return g}if(f==='function'){return 'function'}if(f==='object'){if(e.nodeType!==undefined){if(e.nodeType===3){return a.test(e.nodeValue)?'textnode':'whitespace'}else {return 'element'}}return 'object'}return h}}(),factory:function(a,f,b,d){var e=Ext.ClassManager,c;if(!a||a.isInstance){if(b&&b!==a){b.destroy()}return a}if(d){if(typeof a==='string'){return e.instantiateByAlias(d+'.'+a)}else {if(Ext.isObject(a)&&'type' in a){return e.instantiateByAlias(d+'.'+a.type,a)}}}if(a===!0){return b||Ext.create(f)}if('xtype' in a){c=e.instantiateByAlias('widget.'+a.xtype,a)}else {if('xclass' in a){c=Ext.create(a.xclass,a)}}if(c){if(b){b.destroy()}return c}if(b){return b.setConfig(a)}return Ext.create(f,a)},log:function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}()});(function(){var b=[''],c=/([^\d\.])/,f=/[^\d]/g,g=/[\-+]/g,h=/\s/g,e=/_/g,d={classic:1,modern:1},a;Ext.Version=a=function(k,p){var b=this,n=b.padModes,o,m,d,h,j,l,i;if(k.isVersion){k=k.version}b.version=i=String(k).toLowerCase().replace(e,'.').replace(g,'');o=i.charAt(0);if(o in n){i=i.substring(1);d=n[o]}else {d=p?n[p]:0}b.pad=d;l=i.search(c);b.shortVersion=i;if(l!==-1){b.release=j=i.substr(l,k.length);b.shortVersion=i.substr(0,l);j=a.releaseValueMap[j]||j}b.releaseValue=j||d;b.shortVersion=b.shortVersion.replace(f,'');b.parts=h=i.split('.');for(m=h.length;m--;){h[m]=parseInt(h[m],10)}if(d===Infinity){h.push(d)}b.major=h[0]||d;b.minor=h[1]||d;b.patch=h[2]||d;b.build=h[3]||d;return b};a.prototype={isVersion:!0,padModes:{'~':NaN,'^':Infinity},release:'',compareTo:function(f){var g=this,m=g.pad,j=g.parts,h=j.length,e=f.isVersion?f:new a(f),n=e.pad,k=e.parts,i=k.length,l=Math.max(h,i),b,c,d;for(b=0;bd){return 1}}c=g.releaseValue;d=e.releaseValue;if(cd){return 1}return 0},toString:function(){return this.version},valueOf:function(){return this.version},getMajor:function(){return this.major},getMinor:function(){return this.minor},getPatch:function(){return this.patch},getBuild:function(){return this.build},getRelease:function(){return this.release},getReleaseValue:function(){return this.releaseValue},isGreaterThan:function(a){return this.compareTo(a)>0},isGreaterThanOrEqual:function(a){return this.compareTo(a)>=0},isLessThan:function(a){return this.compareTo(a)<0},isLessThanOrEqual:function(a){return this.compareTo(a)<=0},equals:function(a){return this.compareTo(a)===0},match:function(a){a=String(a);return this.version.substr(0,a.length)===a},toArray:function(){var a=this;return [a.getMajor(),a.getMinor(),a.getPatch(),a.getBuild(),a.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(a){return this.compareTo(a)>0},lt:function(a){return this.compareTo(a)<0},gtEq:function(a){return this.compareTo(a)>=0},ltEq:function(a){return this.compareTo(a)<=0}};Ext.apply(a,{aliases:{from:{extjs:'ext',core:'core',touch:'modern'},to:{ext:['extjs'],'core':['core'],modern:['touch']}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,'#':-2,p:-1,pl:-1},getComponentValue:function(a){return !a?0:isNaN(a)?this.releaseValueMap[a]||a:parseInt(a,10)},compare:function(b,c){var d=b.isVersion?b:new a(b);return d.compareTo(c)},set:function(g,f,c){var b=a.aliases.to[f],d=c.isVersion?c:new a(c),e;g[f]=d;if(b){for(e=b.length;e-->0;){g[b[e]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,d;if(!b){d=c.ext||c.touch||c.core}else {d=c[a.aliases.from[b]||b]}return d||Ext.getVersion(b)},setCompatVersion:function(b,c){a.set(Ext.compatVersions,b,c)},setVersion:function(b,c){if(b in d){Ext.toolkit=b}Ext.lastRegisteredVersion=a.set(Ext.versions,b,c);return this},getVersion:function(c){var b=Ext.versions;if(!c){return b.ext||b.touch||b.core}return b[a.aliases.from[c]||c]},checkVersion:function(o,j){var p=Ext.isArray(o),s=a.aliases.from,q=p?o:b,t=q.length,n=Ext.versions,r=n.ext||n.touch,l,c,f,i,g,m,d,e,k;if(!p){b[0]=o}for(l=0;l=0){d=d.replace(h,'')}c=d.indexOf('@');if(c<0){e=d;k=r}else {m=d.substring(0,c);if(!(k=n[s[m]||m])){if(j){return !1}continue}e=d.substring(c+1)}c=e.indexOf('-');if(c<0){if(e.charAt(c=e.length-1)==='+'){i=e.substring(0,c);g=null}else {i=g=e}}else {if(c>0){i=e.substring(0,c);g=e.substring(c+1)}else {i=null;g=e.substring(c+1)}}f=!0;if(i){i=new a(i,'~');f=i.ltEq(k)}if(f&&g){g=new a(g,'~');f=g.gtEq(k)}}if(f){if(!j){return !0}}else {if(j){return !1}}}return !!j},deprecate:function(b,e,c,d){if(a.compare(Ext.getVersion(b),e)<1){c.call(d)}}})})();(function(c){var d=c&&c.packages||{},b=c&&c.compatibility,a,e;for(a in d){e=d[a];Ext.setVersion(a,e.version)}if(b){if(Ext.isString(b)){Ext.setCompatVersion('core',b)}else {for(a in b){Ext.setCompatVersion(a,b[a])}}}if(!d.ext&&!d.touch){Ext.setVersion('ext','6.0.1.250');Ext.setVersion('core','6.0.1.250')}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:'_'+b,initializing:'is'+a+'Initializing',apply:'apply'+a,update:'update'+a,get:'get'+a,set:'set'+a,initGet:'initGet'+a,changeEvent:b.toLowerCase()+'change'};c.root=c};Ext.Config.map={};Ext.Config.get=function(a){var b=Ext.Config.map,c=b[a]||(b[a]=new Ext.Config(a));return c};Ext.Config.prototype={self:Ext.Config,isConfig:!0,getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(b,d,f,e){var a,c;if(!d){a=b}else {if(!b){a=d}else {a=Ext.Object.chain(d);for(c in b){if(!e||!(c in a)){a[c]=b[c]}}}}return a},mergeSets:function(a,f,e){var b=f?Ext.Object.chain(f):{},c,d;if(a instanceof Array){for(c=a.length;c--;){d=a[c];if(!e||!(d in b)){b[d]=!0}}}else {if(a){if(a.constructor===Object){for(c in a){d=a[c];if(!e||!(c in b)){b[c]=d}}}else {if(!e||!(a in b)){b[a]=!0}}}}return b},makeGetter:function(){var b=this.name,a=this.names.internal;return function(){var c=this.$configPrefixed?a:b;return this[c]}},makeInitGetter:function(){var e=this.name,a=this.names,d=a.set,c=a.get,b=a.initializing;return function(){var a=this;a[b]=!0;delete a[c];a[d](a.config[e]);delete a[b];return a[c].apply(a,arguments)}},makeSetter:function(){var g=this.name,a=this.names,e=a.internal,f=a.get,d=a.apply,c=a.update,b;b=function(b){var a=this,h=a.$configPrefixed?e:g,i=a[h];delete a[f];if(!a[d]||(b=a[d](b,i))!==undefined){if(b!==(i=a[h])){a[h]=b;if(a[c]){a[c](b,i)}}}return a};b.$isDefault=!0;return b},makeEventedSetter:function(){var i=this.name,a=this.names,f=a.internal,h=a.get,d=a.apply,b=a.update,e=a.changeEvent,g=function(a,c,e,d){a[d]=c;if(a[b]){a[b](c,e)}},c;c=function(c){var a=this,k=a.$configPrefixed?f:i,j=a[k];delete a[h];if(!a[d]||(c=a[d](c,j))!==undefined){if(c!==(j=a[k])){if(a.isConfiguring){a[k]=c;if(a[b]){a[b](c,j)}}else {a.fireEventedAction(e,[a,c,j],g,a,[a,c,j,k])}}}return a};c.$isDefault=!0;return c}};(function(){var c=Ext.Config,b=c.map,a=Ext.Object;Ext.Configurator=function(d){var b=this,e=d.prototype,c=d.superclass?d.superclass.self.$config:null;b.cls=d;b.superCfg=c;if(c){b.configs=a.chain(c.configs);b.cachedConfigs=a.chain(c.cachedConfigs);b.initMap=a.chain(c.initMap);b.values=a.chain(c.values);b.needsFork=c.needsFork}else {b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}e.config=e.defaultConfig=b.values;d.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:!1,initList:null,add:function(t,l){var i=this,n=i.cls,k=i.configs,v=i.cachedConfigs,p=i.initMap,g=n.prototype,r=l&&l.$config.configs,u=i.values,m,f,s,h,b,j,e,q,o,d;for(e in t){d=t[e];m=d&&d.constructor===Object;f=m&&'$value' in d?d:null;if(f){s=!!f.cached;d=f.$value;m=d&&d.constructor===Object}h=f&&f.merge;b=k[e];if(b){if(l){h=b.merge;if(!h){continue}f=null}else {h=h||b.merge}j=u[e];if(h){d=h.call(b,d,j,n,l)}else {if(m){if(j&&j.constructor===Object){d=a.merge({},j,d)}}}}else {if(r){b=r[e];f=null}else {b=c.get(e)}k[e]=b;if(b.cached||s){v[e]=!0}q=b.names;if(!g[o=q.get]){g[o]=b.getter||b.getGetter()}if(!g[o=q.set]){g[o]=f&&f.evented?b.eventedSetter||b.getEventedSetter():b.setter||b.getSetter()}}if(f){if(b.owner!==n){k[e]=b=Ext.Object.chain(b);b.owner=n}Ext.apply(b,f);delete b.$value}if(!i.needsFork&&d&&(d.constructor===Object||d instanceof Array)){i.needsFork=!0}if(d!==null){p[e]=!0}else {if(g.$configPrefixed){g[k[e].names.internal]=null}else {g[k[e].name]=null}if(e in p){p[e]=!1}}u[e]=d}},configure:function(c,h){var k=this,u=k.configs,x=k.initMap,q=k.initListMap,o=k.initList,j=k.cls.prototype,i=k.values,r=0,v=!o,n,b,m,w,d,p,l,f,e,g,t,s,y;i=k.needsFork?a.fork(i):a.chain(i);c.isConfiguring=!0;if(v){k.initList=o=[];k.initListMap=q={};c.isFirstInstance=!0;for(e in x){w=x[e];b=u[e];t=b.cached;if(w){f=b.names;g=i[e];if(!j[f.set].$isDefault||j[f.apply]||j[f.update]||typeof g==='object'){if(t){(n||(n=[])).push(b)}else {o.push(b);q[e]=!0}c[f.get]=b.initGetter||b.getInitGetter()}else {j[b.getInternalName(j)]=g}}else {if(t){j[b.getInternalName(j)]=undefined}}}}l=n&&n.length;if(l){for(d=0;d0){for(a=0;ac.maxSize){c.unlinkEntry(f.prev,!0);--c.count}}return d.value},evict:Ext.emptyFn,linkEntry:function(c){var d=this.head,e=d.next;c.next=e;c.prev=d;d.next=c;e.prev=c},unlinkEntry:function(c,f){var d=c.next,e=c.prev;e.next=d;d.prev=e;if(f){this.evict(c.key,c.value)}}};a.destroy=a.clear})();(function(){var a,d=Ext.Base,b=d.$staticMembers,c=function(a,b){return a.length-b.length||(ab?1:0)};function makeCtor(a){function constructor(){return this.constructor.apply(this,arguments)||null}return constructor}Ext.Class=a=function(b,c,d){if(typeof b!='function'){d=c;c=b;b=null}if(!c){c={}}b=a.create(b,c);a.process(b,c,d);return b};Ext.apply(a,{makeCtor:makeCtor,onBeforeCreated:function(a,c,b){a.addMembers(c);b.onCreated.call(a,a)},create:function(a,f){var e=b.length,c;if(!a){a=makeCtor()}while(e--){c=b[e];a[c]=d[c]}return a},process:function(l,f,k){var j=f.preprocessors||a.defaultPreprocessors,o=this.preprocessors,e={onBeforeCreated:this.onBeforeCreated},d=[],b,c,g,n,h,m,i;delete f.preprocessors;l._classHooks=e;for(g=0,n=j.length;g0){b=h.test(c[d])}c=o[a];if(c&&!b){d=c.length;while(!b&&d-->0){b=h.test(c[d])}}}if(b){i[a]=1;l.push(a)}}}}}return l},getPath:function(a){var e=this,d=e.paths,b='',c;if(a in d){b=d[a]}else {c=e.getPrefix(a);if(c){a=a.substring(c.length+1);b=d[c];if(b){b+='/'}}b+=a.replace(e.dotRe,'/')+'.js'}return b},getPrefix:function(a){if(a in this.paths){return a}var d=this.getPrefixes(),e=d.length,b,c;while(e-->0){b=(c=d[e]).length;if(b0){b=i[d];f=c;c=b.value||c[b.name];if(!c&&h){f[b.name]=c={}}}return c},setNamespace:function(f,d){var b=a.getNamespaceEntry(f),c=Ext.global;if(b.parent){c=a.lookupName(b.parent,!0)}c[b.name]=d;return d},setXType:function(i,d){var f=i.$className,k=f?i:a.get(f=i),b=k.prototype,j=b.xtypes,c=b.xtypesChain,h=b.xtypesMap;if(!b.hasOwnProperty('xtypes')){b.xtypes=j=[];b.xtypesChain=c=c?c.slice(0):[];b.xtypesMap=h=Ext.apply({},h)}a.addAlias(f,'widget.'+d,!0);j.push(d);c.push(d);h[d]=!0},set:function(b,d){var c=a.getName(d);a.classes[b]=a.setNamespace(b,d);if(c&&c!==b){a.addAlternate(c,b)}return a},get:function(b){return a.classes[b]||a.lookupName(b,!1)},addNameAliasMappings:function(b){a.addAlias(b)},addNameAlternateMappings:function(b){a.addAlternate(b)},getByAlias:function(b){return a.get(a.getNameByAlias(b))},getByConfig:function(c,d){var f=c.xclass,b;if(f){b=f}else {b=c.xtype;if(b){d='widget.'}else {b=c.type}b=a.getNameByAlias(d+b)}return a.get(b)},getName:function(a){return a&&a.$className||''},getClass:function(a){return a&&a.self||null},create:function(c,b,f){var d=q(c);if(typeof b==='function'){b=b(d)}b.$className=c;return new n(d,b,function(){var m=b.postprocessors||a.defaultPostprocessors,s=a.postprocessors,i=[],d,j,q,k,p,h,l;delete b.postprocessors;for(j=0,q=m.length;j0;){c=a.lookupName(arguments[b],!0)}return c}});Ext.addRootNamespaces=a.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;n.registerPreprocessor('className',function(b,a){if('$className' in a){b.$className=a.$className}},!0,'first');n.registerPreprocessor('alias',function(q,d){var l=q.prototype,c=g(d.xtype),i=g(d.alias),j='widget.',p=j.length,k=Array.prototype.slice.call(l.xtypesChain||[]),h=Ext.merge({},l.xtypesMap||{}),a,f,m,b;for(a=0,f=i.length;a=d){Ext[o+'p']=!0}}}if(n.is.Opera&&parseInt(a,10)<=12){Ext.isOpera12m=!0}Ext.chromeVersion=Ext.isChrome?a:0;Ext.firefoxVersion=Ext.isFirefox?a:0;Ext.ieVersion=Ext.isIE?a:0;Ext.operaVersion=Ext.isOpera?a:0;Ext.safariVersion=Ext.isSafari?a:0;Ext.webKitVersion=Ext.isWebKit?a:0;this.setFlag(c+a,!0,r);this.setFlag(c+f.getShortVersion())}for(d in j){if(j.hasOwnProperty(d)){h=j[d];this.setFlag(h,c===h)}}this.setFlag(h);if(l){this.setFlag(g+(l.getMajor()||''));this.setFlag(g+l.getShortVersion())}for(d in k){if(k.hasOwnProperty(d)){h=k[d];this.setFlag(h,g===h,r)}}this.setFlag('Standalone',!!navigator.standalone);this.setFlag('Ripple',!!document.getElementById('tinyhippos-injected')&&!Ext.isEmpty(window.top.ripple));this.setFlag('WebWorks',!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){q=!0;this.setFlag('PhoneGap');this.setFlag('Cordova')}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(e)){q=!0}this.setFlag('WebView',q);this.isStrict=Ext.isStrict=document.compatMode==='CSS1Compat';this.isSecure=Ext.isSecure;this.identity=c+a+(this.isStrict?'Strict':'Quirks')};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{webkit:'WebKit',gecko:'Gecko',presto:'Presto',trident:'Trident',other:'Other'},enginePrefixes:{webkit:'AppleWebKit/',gecko:'Gecko/',presto:'Presto/',trident:'Trident/'},styleDashPrefixes:{WebKit:'-webkit-',Gecko:'-moz-',Trident:'-ms-',Presto:'-o-',Other:''},stylePrefixes:{WebKit:'Webkit',Gecko:'Moz',Trident:'ms',Presto:'O',Other:''},propertyPrefixes:{WebKit:'webkit',Gecko:'moz',Trident:'ms',Presto:'o',Other:''},is:function(a){return !!this.is[a]},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(b,a,c){if(a===undefined){a=!0}this.is[b]=a;this.is[b.toLowerCase()]=a;if(c){Ext['is'+b]=a}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(b){var a=this.propertyPrefixes[this.engineName];if(a.length>0){return a+Ext.String.capitalize(b)}return b},getPreferredTranslationMethod:function(a){if(typeof a==='object'&&'translationMethod' in a&&a.translationMethod!=='auto'){return a.translationMethod}else {return 'csstransform'}}};(function(a){Ext.browser=new Ext.env.Browser(a,!0);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":'about:blank'})(Ext.global.navigator.userAgent);Ext.env.OS=function(j,k,b){var n=this,g=Ext.Boot.osNames,h=Ext.Boot.osPrefixes,a,c='',m=n.is,d,l,f,i,e;b=b||Ext.browser;for(d in h){if(h.hasOwnProperty(d)){l=h[d];f=j.match(new RegExp('(?:'+l+')([^\\s;]+)'));if(f){a=g[d];e=f[1];if(e&&e==='HTC_'){c=new Ext.Version('2.3')}else {if(e&&e==='Silk/'){c=new Ext.Version('2.3')}else {c=new Ext.Version(f[f.length-1])}}break}}}if(!a){a=g[(j.toLowerCase().match(/mac|win|linux/)||['other'])[0]];c=new Ext.Version('')}this.name=a;this.version=c;if(k){this.setFlag(k.replace(/ simulator$/i,''))}this.setFlag(a);if(c){this.setFlag(a+(c.getMajor()||''));this.setFlag(a+c.getShortVersion())}for(d in g){if(g.hasOwnProperty(d)){i=g[d];if(!m.hasOwnProperty(a)){this.setFlag(i,a===i)}}}if(this.name==='iOS'&&window.screen.height===568){this.setFlag('iPhone5')}if(b.is.Safari||b.is.Silk){if(this.is.Android2||this.is.Android3||b.version.shortVersion===501){b.setFlag('AndroidStock')}if(this.is.Android4){b.setFlag('AndroidStock');b.setFlag('AndroidStock4')}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(b,a){if(a===undefined){a=!0}if(this.flags){this.flags[b]=a}this.is[b]=a;this.is[b.toLowerCase()]=a;return this}};(function(){var h=Ext.global.navigator,i=h.userAgent,e=Ext.env.OS,f=Ext.is||(Ext.is={}),a,c,b;e.prototype.flags=f;Ext.os=a=new e(i,h.platform);c=a.name;Ext['is'+c]=!0;Ext.isMac=f.Mac=f.MacOS;var d=window.location.search.match(/deviceType=(Tablet|Phone)/),g=window.deviceType;if(d&&d[1]){b=d[1]}else {if(g==='iPhone'){b='Phone'}else {if(g==='iPad'){b='Tablet'}else {if(!a.is.Android&&!a.is.iOS&&!a.is.WindowsPhone&&/Windows|Linux|MacOS/.test(c)){b='Desktop';Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else {if(a.is.iPad||a.is.RIMTablet||a.is.Android3||Ext.browser.is.Silk||a.is.Android&&i.search(/mobile/i)===-1){b='Tablet'}else {b='Phone'}}}}}a.setFlag(b,!0);a.deviceType=b;delete e.prototype.flags})();Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a='div'}else {if(typeof a!=='string'){return a}}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(a,d){var b=this.getTestElement(d).style,c=Ext.String.capitalize(a);if(typeof b[a]!=='undefined'||typeof b[Ext.browser.getStylePrefix(a)+c]!=='undefined'){return !0}return !1},isStyleSupportedWithoutPrefix:function(b,c){var a=this.getTestElement(c).style;if(typeof a[b]!=='undefined'){return !0}return !1},isEventSupported:function(e,d){if(d===undefined){d=window}var a=this.getTestElement(d),b='on'+e.toLowerCase(),c=b in a;if(!c){if(a.setAttribute&&a.removeAttribute){a.setAttribute(b,'');c=typeof a[b]==='function';if(typeof a[b]!=='undefined'){a[b]=undefined}a.removeAttribute(b)}}return c},getStyle:function(a,c){var b=a.ownerDocument.defaultView,d=b?b.getComputedStyle(a,null):a.currentStyle;return (d||a.style)[c]},getSupportedPropertyName:function(c,a){var b=Ext.browser.getVendorProperyName(a);if(b in c){return b}else {if(a in c){return a}}return null},detect:function(h){var c=this,g=document,m=c.toRun||c.tests,i=m.length,f=g.createElement('div'),k=[],j=Ext.supports,n=c.has,a,e,b,l,d;f.innerHTML='
    ';if(h){g.body.appendChild(f)}l=c.preDetected[Ext.browser.identity]||[];while(i--){b=m[i];d=l[i];a=b.name;e=b.names;if(d===undefined){if(!h&&b.ready){k.push(b);continue}d=b.fn.call(c,g,f)}if(a){j[a]=n[a]=d}else {if(e){while(e.length){a=e.pop();j[a]=n[a]=d}}}}if(h){g.body.removeChild(f)}c.toRun=k},report:function(){var b=[],c=this.tests.length,a;for(a=0;a
    ';b=a.childNodes.length===1;a.innerHTML='';return b}},{name:'touchScroll',fn:function(){var a=0;if(Ext.os.is.Desktop&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)){a=1}else {if(Ext.supports.Touch){a=2}}return a}},{name:'Touch',fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return Ext.supports.TouchEvents&&a!==1||a>1}else {return Ext.supports.TouchEvents||a>0}}},{name:'TouchEvents',fn:function(){return this.isEventSupported('touchend')}},{name:'PointerEvents',fn:function(){return navigator.pointerEnabled}},{name:'MSPointerEvents',fn:function(){return navigator.msPointerEnabled}},{name:'Orientation',fn:function(){return 'orientation' in window&&this.isEventSupported('orientationchange')}},{name:'OrientationChange',fn:function(){return this.isEventSupported('orientationchange')}},{name:'DeviceMotion',fn:function(){return this.isEventSupported('devicemotion')}},{names:['Geolocation','GeoLocation'],fn:function(){return 'geolocation' in window.navigator}},{name:'SqlDatabase',fn:function(){return 'openDatabase' in window}},{name:'WebSockets',fn:function(){return 'WebSocket' in window}},{name:'Range',fn:function(){return !!document.createRange}},{name:'CreateContextualFragment',fn:function(){var a=!!document.createRange?document.createRange():!1;return a&&!!a.createContextualFragment}},{name:'History',fn:function(){return 'history' in window&&'pushState' in window.history}},{name:'Css3dTransforms',fn:function(){return this.has('CssTransforms')&&this.isStyleSupported('perspective')}},{name:'CssTransforms',fn:function(){return this.isStyleSupported('transform')}},{name:'CssTransformNoPrefix',fn:function(){return this.isStyleSupportedWithoutPrefix('transform')}},{name:'CssAnimations',fn:function(){return this.isStyleSupported('animationName')}},{names:['CssTransitions','Transitions'],fn:function(){return this.isStyleSupported('transitionProperty')}},{names:['Audio','AudioTag'],fn:function(){return !!this.getTestElement('audio').canPlayType}},{name:'Video',fn:function(){return !!this.getTestElement('video').canPlayType}},{name:'LocalStorage',fn:function(){try{if('localStorage' in window&&window['localStorage']!==null){localStorage.setItem('sencha-localstorage-test','test success');localStorage.removeItem('sencha-localstorage-test');return !0}}catch(b){}return !1}},{name:'XHR2',fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&'withCredentials' in new XMLHttpRequest()}},{name:'XHRUploadProgress',fn:function(){if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){var a=new XMLHttpRequest();return a&&'upload' in a&&'onprogress' in a.upload}return !1}},{name:'NumericInputPlaceHolder',fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:'matchesSelector',fn:function(){var a=document.documentElement,d='matches',e='webkitMatchesSelector',b='msMatchesSelector',c='mozMatchesSelector';return a[d]?d:a[e]?e:a[b]?b:a[c]?c:null}},{name:'RightMargin',ready:!0,fn:function(c,b){var a=c.defaultView;return !(a&&a.getComputedStyle(b.firstChild.firstChild,null).marginRight!=='0px')}},{name:'DisplayChangeInputSelectionBug',fn:function(){var a=Ext.webKitVersion;return 0a';b=a.firstChild;a.innerHTML='
    b
    ';return b.innerHTML!=='a'}},{name:'IncludePaddingInWidthCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetWidth===210}},{name:'IncludePaddingInHeightCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetHeight===210}},{name:'TextAreaMaxLength',fn:function(a){return 'maxlength' in a.createElement('textarea')}},{name:'GetPositionPercentage',ready:!0,fn:function(b,a){return Ext.feature.getStyle(a.childNodes[2],'left')==='10%'}},{name:'PercentageHeightOverflowBug',ready:!0,fn:function(d){var c=!1,b,a;if(Ext.getScrollbarSize().height){a=this.getTestElement();b=a.style;b.height='50px';b.width='50px';b.overflow='auto';b.position='absolute';a.innerHTML=['
    ','
    ','
    '].join('');d.body.appendChild(a);if(a.firstChild.offsetHeight===50){c=!0}d.body.removeChild(a)}return c}},{name:'xOriginBug',ready:!0,fn:function(e,b){b.innerHTML='
    ';var a=document.getElementById('b1').getBoundingClientRect(),c=document.getElementById('b2').getBoundingClientRect(),d=document.getElementById('b3').getBoundingClientRect();return c.left!==a.left&&d.right!==a.right}},{name:'ScrollWidthInlinePaddingBug',ready:!0,fn:function(c){var d=!1,a,b;b=c.createElement('div');a=b.style;a.height='50px';a.width='50px';a.padding='10px';a.overflow='hidden';a.position='absolute';b.innerHTML='';c.body.appendChild(b);if(b.scrollWidth===70){d=!0}c.body.removeChild(b);return d}},{name:'rtlVertScrollbarOnRight',ready:!0,fn:function(d,c){c.innerHTML='
    ';var a=c.firstChild,b=a.firstChild;return b.offsetLeft+b.offsetWidth!==a.offsetLeft+a.offsetWidth}},{name:'rtlVertScrollbarOverflowBug',ready:!0,fn:function(c,b){b.innerHTML='
    ';var a=b.firstChild;return a.clientHeight===a.offsetHeight}},{identity:'defineProperty',fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return !1}return !0}},{identify:'nativeXhr',fn:function(){if(typeof XMLHttpRequest!=='undefined'){return !0}XMLHttpRequest=function(){try{return new ActiveXObject('MSXML2.XMLHTTP.3.0')}catch(b){return null}};return !1}},{name:'SpecialKeyDownRepeat',fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(Ext.isGecko&&!Ext.isWindows||Ext.isOpera&&Ext.operaVersion<12)}},{name:'EmulatedMouseOver',fn:function(){return Ext.os.is.iOS}},{name:'Hashchange',fn:function(){var a=document.documentMode;return 'onhashchange' in window&&(a===undefined||a>7)}},{name:'FixedTableWidthBug',ready:!0,fn:function(){if(Ext.isIE8){return !1}var a=document.createElement('div'),b=document.createElement('div'),c;a.setAttribute('style','display:table;table-layout:fixed;');b.setAttribute('style','display:table-cell;min-width:50px;');a.appendChild(b);document.body.appendChild(a);a.offsetWidth;a.style.width='25px';c=a.offsetWidth;document.body.removeChild(a);return c===50}},{name:'FocusinFocusoutEvents',fn:function(){return !Ext.isGecko}},{name:'AsyncFocusEvents',fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:'accessibility',ready:!0,fn:function(f){var g=f.body,b,c,a,e,d;function getColor(a){var c=[],e=0,g,b;if(a.indexOf('rgb(')!==-1){c=a.replace('rgb(','').replace(')','').split(', ')}else {if(a.indexOf('#')!==-1){g=a.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;b=a.match(g);if(b){c=['0x'+b[1],'0x'+b[2],'0x'+b[3]]}}}for(var d=0;d0};Ext.supports.HighContrastMode=!e.BackgroundImages;g.removeChild(b);b=c=null;return e}},0]};Ext.feature.tests.pop();Ext.supports={};Ext.feature.detect();Ext.env.Ready={blocks:(location.search||'').indexOf('ext-pauseReadyFire')>0?1:0,bound:0,delay:1,firing:!1,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==='complete'){a.onReadyEvent({type:b.readyState||'body'})}else {a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener('deviceready',a.onReadyEvent,!1)}b.addEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.addEventListener('load',a.onReadyEvent,!1)}}},block:function(){++this.blocks;Ext.isReady=!1},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=!0;a.state=1;Ext.feature.detect(!0);if(!a.delay){a.handleReady()}else {if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else {a.handleReadySoon()}}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(b){var a=this;if(!a.timer){a.timer=Ext.defer(function(){a.timer=null;a.handleReady()},b||a.delay)}},invoke:function(a){var b=a.delay;if(b){Ext.defer(a.fn,b,a.scope)}else {if(Ext.elevateFunction){Ext.elevateFunction(a.fn,a.scope)}else {a.fn.call(a.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else {this.doInvokeAll()}},doInvokeAll:function(){var a=this,b=a.listeners,c;if(!a.blocks){Ext.isReady=!0}a.firing=!0;while(b.length){if(a.sortGeneration!==a.generation){a.sortGeneration=a.generation;b.sort(a.sortFn)}c=b.pop();if(a.blocks&&!c.dom){b.push(c);break}a.invoke(c)}a.firing=!1},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:!1,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(e,d,c){var a=Ext.env.Ready,b=a.makeListener(e,d,c);if(a.state===2&&!a.firing&&(b.dom||!a.blocks)){a.invoke(b)}else {a.listeners.push(b);++a.generation;if(!a.bound){a.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else {a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(a,b){return -(a.phase-b.phase||b.priority-a.priority||a.id-b.id)},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener('deviceready',a.onReadyEvent,!1)}b.removeEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.removeEventListener('load',a.onReadyEvent,!1)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=!0;try{document.documentElement.doScroll('left')}catch(c){b=!1}if(b&&document.body){a.onReadyEvent({type:'doScroll'})}else {a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){if(a.bound){return}var b=document,c;try{c=window.frameElement===undefined}catch(d){}if(!c||!b.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else {if(a.pollScroll()){return}}if(b.readyState==='complete'){a.onReadyEvent({type:'already '+(b.readyState||'body')})}else {b.attachEvent('onreadystatechange',a.onReadyStateChange);window.attachEvent('onload',a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent('onreadystatechange',a.onReadyStateChange);window.detachEvent('onload',a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){clearTimeout(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:!0};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()})();Ext.Loader=new function(){var a=this,b=Ext.ClassManager,i=Ext.Boot,o=Ext.Class,c=Ext.env.Ready,k=Ext.Function.alias,h=['extend','mixins','requires'],j={},m=[],f=[],g=[],l={},d={},e={enabled:!0,scriptChainDelay:!1,disableCaching:!0,disableCachingParam:'_dc',paths:b.paths,preserveScripts:!0,scriptCharset:undefined},n={disableCaching:!0,disableCachingParam:!0,preserveScripts:!0,scriptChainDelay:'loadDelay'};Ext.apply(a,{isInHistory:j,isLoading:!1,history:m,config:e,readyListeners:f,optionalRequires:g,requiresMap:l,hasFileLoadError:!1,scriptsLoading:0,syncModeEnabled:!1,missingQueue:d,init:function(){var k=document.getElementsByTagName('script'),m=k[k.length-1].src,n=m.substring(0,m.lastIndexOf('/')+1),l=Ext._classPathMetadata,h=Ext.Microloader,g=Ext.manifest,d,i,j,e,f;if(!b.getPath('Ext')){b.setPath('Ext',n+'src')}if(l){Ext._classPathMetadata=null;a.addClassPathMappings(l)}if(g){d=g.loadOrder;i=Ext.Boot.baseUrl;if(d&&g.bootRelative){for(j=d.length,e=0;e1?'es':'')+': '+g.join(', '))}if(l.length){a.loadScripts({url:l,_classNames:g})}else {a.checkReady()}}else {if(c){c.call(k)}a.checkReady()}if(a.syncModeEnabled){if(m===1){return b.get(h[0])}}return a},makeLoadCallback:function(a,c){return function(){var e=[],d=a.length;while(d-->0){e[d]=b.get(a[d])}return c.apply(this,e)}},onLoadFailure:function(){var b=this,c=b.onError;a.hasFileLoadError=!0;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onLoadSuccess:function(){var b=this,c=b.onLoad;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onReady:function(g,e,h,d){if(h){c.on(g,e,d)}else {var b=c.makeListener(g,e,d);if(a.isLoading){f.push(b)}else {c.invoke(b)}}},addUsedClasses:function(b){var c,d,e;if(b){b=typeof b==='string'?[b]:b;for(d=0,e=b.length;d0){a.loadScripts({url:b,sequential:!0})}}}if(h.uses){b=h.uses;a.addUsedClasses(b)}});b.onCreated(a.historyPush);a.init()}();Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}Ext.cmd.derive('Ext.Mixin',Ext.Base,function(a){return {statics:{addHook:function(e,c,d,h){var g=Ext.isFunction(e),b=function(){var b=arguments,i=g?e:h[e],f=this.callParent(b);i.apply(this,b);return f},f=c.hasOwnProperty(d)&&c[d];if(g){e.$previous=Ext.emptyFn}b.$name=d;b.$owner=c.self;if(f){b.$previous=f.$previous;f.$previous=b}else {c[d]=b}}},onClassExtended:function(k,c){var b=c.mixinConfig,d=c.xhooks,j=k.superclass,i=c.onClassMixedIn,h,f,g,e;if(d){delete c.xhooks;(b||(c.mixinConfig=b={})).on=d}if(b){h=j.mixinConfig;if(h){c.mixinConfig=b=Ext.merge({},h,b)}c.mixinId=b.id;f=b.before;g=b.after;d=b.on;e=b.extended}if(f||g||d||e){c.onClassMixedIn=function(b){var h=this.prototype,l=b.prototype,j;if(f){Ext.Object.each(f,function(e,d){b.addMember(e,function(){if(h[d].apply(this,arguments)!==!1){return this.callParent(arguments)}})})}if(g){Ext.Object.each(g,function(e,d){b.addMember(e,function(){var f=this.callParent(arguments);h[d].apply(this,arguments);return f})})}if(d){for(j in d){a.addHook(d[j],l,j,h)}}if(e){b.onExtended(function(){var d=Ext.Array.slice(arguments,0);d.unshift(b);return e.apply(this,d)},this)}if(i){i.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,'Mixin'],0);Ext.util=Ext.util||{};Ext.util.DelayedTask=function(e,c,d,b,g){var a=this,f,h=function(){var f=Ext.GlobalEvents;clearInterval(a.id);a.id=null;e.apply(c,d||[]);if(g!==!1&&f.hasListeners.idle){f.fireEvent('idle')}};b=typeof b==='boolean'?b:!0;a.id=null;a.delay=function(i,l,j,k){if(b){a.cancel()}if(typeof i==='number'){f=i}e=l||e;c=j||c;d=k||d;if(!a.id){a.id=Ext.interval(h,f)}};a.cancel=function(){if(a.id){clearInterval(a.id);a.id=null}}};Ext.cmd.derive('Ext.util.Event',Ext.Base,function(){var d=Array.prototype.slice,c=Ext.Array.insert,b=Ext.Array.toArray,a={};return {isEvent:!0,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(r,q,g,t,s){var a=this,p=!1,l=a.observable,o=a.name,d,m,i,h,f,k,j,b,e,n;if(a.findListener(r,q)===-1){m=a.createListener(r,q,g,t,s);if(a.firing){a.listeners=a.listeners.slice(0)}d=a.listeners;b=j=d.length;i=g&&g.priority;f=a._highestNegativePriorityIndex;k=f!==undefined;if(i){h=i<0;if(!h||k){for(e=h?f:0;e0},fireDelegated:function(a,b){this.firingObservable=a;return this.fire.apply(this,b)},fire:function(){var e=this,r=e.listeners,t=r.length,n=e.observable,i=n.isElement,w=n.isComponent,v=e.firingObservable,b,o,f,k,c,j,u,h,l,p,g,m,a,s,q;if(!e.suspended&&t>0){e.firing=!0;c=arguments.length?d.call(arguments,0):[];u=c.length;if(i){a=c[0]}for(k=0;k4?b:e;b=e;for(e in b){if(b.hasOwnProperty(e)){g=b[e];if(!h.$eventOptions[e]){f.addManagedListener(h,e,g.fn||g,g.scope||b.scope||i,g.fn?g:k,!0)}}}if(b&&b.destroyable){return new a(f,h,b)}}else {if(j!==d){h.doAddListener(e,j,i,b,null,f,f);if(!l&&b&&b.destroyable){return new a(f,h,e,j,i)}}}},removeManagedListener:function(h,a,k,j){var e=this,b,d,g,i,f;if(typeof a!=='string'){b=a;for(a in b){if(b.hasOwnProperty(a)){d=b[a];if(!h.$eventOptions[a]){e.removeManagedListener(h,a,d.fn||d,d.scope||b.scope||j)}}}}else {g=e.managedListeners?e.managedListeners.slice():[];a=Ext.canonicalEventName(a);for(f=0,i=g.length;f0,d=this.events;if(!b&&a&&d){a=d[a];if(a&&a.isEvent){return a.isSuspended()}}return b},suspendEvents:function(a){++this.eventsSuspended;if(a&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var e=this,f=e.events,g=arguments.length,d,b,a;for(d=0;d0){i.push(g)}d--;if(d===0){f.resolve(i)}return g};m=function(d){h--;if(h===0){f.reject(new Error('Too few Promises were resolved.'))}return d};for(g=j=0,n=e.length;j0){b.type=a.substring(0,e);b.defaultType=a.substring(e+1)}if(f){delete d.factoryConfig;Ext.apply(b,f)}g=Ext.Factory.define(b.type,b);if(c.create===Ext.Base.create){c.create=g}}},0,0,0,0,0,0,[Ext.mixin,'Factoryable'],0);Ext.cmd.derive('Ext.data.request.Base',Ext.Base,{factoryConfig:{type:'request',defaultType:'ajax'},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=!0}a.abort=Ext.emptyFn},createDeferred:function(){return this.deferred=new Ext.Deferred()},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var a=this,b=a.deferred,c=a.result;a.clearTimer();if(b){if(a.success){b.resolve(c)}else {b.reject(c)}}},onTimeout:function(){var a=this;a.timedout=!0;a.timer=null;a.abort(!0)},getTimeout:function(){return this.timeout},clearTimer:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var a=this,b;b={request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?'transaction aborted':'communication failure',getResponseHeader:a._getHeader,getAllResponseHeaders:a._getHeaders};if(a.aborted){b.aborted=!0}if(a.timedout){b.timedout=!0}return b},_getHeader:function(b){var a=this.headers;return a&&a[b.toLowerCase()]},_getHeaders:function(){return this.headers}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.request,'Base'],0);Ext.cmd.derive('Ext.data.flash.BinaryXhr',Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=!0;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById('ext-flash-polyfill');Ext.GlobalEvents.fireEvent('flashready')},flashPluginActive:!1,flashPluginInjected:!1,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(b,c,d){var a;a=this.liveConnections[Number(b)];if(a){a.onFlashStateChange(c,d)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var c=this,b,a;c.flashPolyfillEl=Ext.getBody().appendChild({id:'ext-flash-polyfill',cn:[{tag:'p',html:'To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed.'},{tag:'a',href:'http://www.adobe.com/go/getflashplayer',cn:[{tag:'img',src:window.location.protocol+'//www.adobe.com/images/shared/download_buttons/get_flash_player.gif',alt:'Get Adobe Flash player'}]}]});b=[Ext.Loader.getPath('Ext.data.Connection'),'../../../plugins/flash/swfobject.js'].join('/');a='/plugins/flash/FlashPlugin.swf';if(Ext.flashPluginPath){a=Ext.flashPluginPath}Ext.Loader.loadScript({url:b,onLoad:function(){var d='11.4.0';var e='playerProductInstall.swf';var f={};var b={};b.quality='high';b.bgcolor='#ffffff';b.allowscriptaccess='sameDomain';b.allowfullscreen='true';var c={};c.id='ext-flash-polyfill';c.name='polyfill';c.align='middle';swfobject.embedSWF(a,'ext-flash-polyfill','0','0',d,e,f,b,c)},onError:function(){},scope:c});Ext.data.flash.BinaryXhr.flashPluginInjected=!0}},readyState:0,status:0,statusText:'',responseBytes:null,javascriptId:null,constructor:function(b){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var a=this;Ext.apply(a,b);a.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=!0;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener('flashready',a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(c,b){a.push(c+': '+b)});return a.join('\r\n')},getResponseHeader:function(b){var a=this.responseHeaders;return a&&a[b]||null},open:function(c,f,d,e,b){var a=this;a.method=c;a.url=f;a.async=d!==!1;a.user=e;a.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(b){var a=this;a.body=b;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener('flashready',a.onFlashReady,a)}else {this.onFlashReady()}},onFlashReady:function(){var a=this,b,c;a.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(a);b={method:a.method,url:a.url,user:a.user,password:a.password,mimeType:a.mimeType,requestHeaders:a.requestHeaders,body:a.body,javascriptId:a.javascriptId};c=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(a,b){this.requestHeaders[a]=b},onreadystatechange:Ext.emptyFn,parseData:function(a){var b=this;this.status=a.status||0;b.responseHeaders={};if(b.mimeType){b.responseHeaders['content-type']=b.mimeType}if(a.reason=='complete'){this.responseBytes=a.data;b.responseHeaders['content-length']=a.data.length}else {if(a.reason=='error'||a.reason=='securityError'){this.statusText=a.text;b.responseHeaders['content-length']=0}}},onFlashStateChange:function(b,c){var a=this;if(b==4){a.parseData(c);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(b)}},1,0,0,0,0,0,[Ext.data.flash,'BinaryXhr'],0);Ext.cmd.derive('Ext.data.request.Ajax',Ext.data.request.Base,{statics:{parseStatus:function(a){a=a==1223?204:a;var c=a>=200&&a<300||a==304,b=!1;if(!c){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:b=!0;break;}}return {success:c,isException:b}}},start:function(f){var a=this,e=a.options,c=a.requestOptions,d=a.isXdr,b,g;b=a.xhr=a.openRequest(e,c,a.async,a.username,a.password);if(!d){g=a.setupHeaders(b,e,c.data,c.params)}if(a.async){if(!d){b.onreadystatechange=Ext.Function.bind(a.onStateChange,a)}}if(d){a.processXdrRequest(a,b)}Ext.data.request.Base.prototype.start.call(this,f);b.send(f);if(!a.async){return a.onComplete()}return a},abort:function(c){var a=this,b=a.xhr;if(c||a.isLoading()){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=Ext.emptyFn}b.abort();Ext.data.request.Base.prototype.abort.call(this,c);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var c=this,a=c.xhr,b=a&&a.readyState,d=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!a||c.aborted||c.timedout){return !1}if(d&&a instanceof d){return b!==4}return b!==0&&b!==4},openRequest:function(d,b,f,e,g){var c=this,a=c.newRequest(d);if(e){a.open(b.method,b.url,f,e,g)}else {if(c.isXdr){a.open(b.method,b.url)}else {a.open(b.method,b.url,f)}}if(d.binary||c.binary){if(window.Uint8Array){a.responseType='arraybuffer'}else {if(a.overrideMimeType){a.overrideMimeType('text/plain; charset=x-user-defined')}}}if(d.withCredentials||c.withCredentials){a.withCredentials=!0}return a},newRequest:function(c){var a=this,b;if(c.binaryData){if(window.Uint8Array){b=a.getXhrInstance()}else {b=new Ext.data.flash.BinaryXhr()}}else {if(a.cors&&Ext.isIE9m){b=a.getXdrInstance();a.isXdr=!0}else {b=a.getXhrInstance();a.isXdr=!1}}return b},setupHeaders:function(m,f,j,l){var d=this,a=Ext.apply({},f.headers||{},d.defaultHeaders),e=d.defaultPostHeader,h=f.jsonData,i=f.xmlData,b='Content-Type',k=d.useDefaultXhrHeader,c,g;if(!a.hasOwnProperty(b)&&(j||l)){if(j){if(f.rawData){e='text/plain'}else {if(i&&Ext.isDefined(i)){e='text/xml'}else {if(h&&Ext.isDefined(h)){e='application/json'}}}}a[b]=e}if(k&&!a['X-Requested-With']){a['X-Requested-With']=d.defaultXhrHeader}if(a[b]===undefined||a[b]===null){delete a[b]}try{for(c in a){if(a.hasOwnProperty(c)){g=a[c];m.setRequestHeader(c,g)}}}catch(n){d.owner.fireEvent('exception',c,g)}return a},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else {Ext.raise({msg:'Your browser does not support CORS'})}return a},getXhrInstance:function(){var c=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject('MSXML2.XMLHTTP.3.0')},function(){return new ActiveXObject('MSXML2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')}],b=0,d=c.length,a;for(;b=0){j=e.substr(0,c).toLowerCase();if(e.charAt(c+1)==' '){++c}f[j]=e.substr(c+1)}}b={request:d,requestId:d.id,status:a.status,statusText:a.statusText,getResponseHeader:function(b){return f[b.toLowerCase()]},getAllResponseHeaders:function(){return f}};if(h){d.processXdrResponse(b,a)}if(d.binary){b.responseBytes=d.getByteArray(a)}else {b.responseText=a.responseText;b.responseXML=a.responseXML}return b},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(b){var e=b.response,g=b.responseBody,h=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,d,f,c;if(b instanceof h){a=b.responseBytes}else {if(window.Uint8Array){a=e?new Uint8Array(e):[]}else {if(Ext.isIE9p){try{a=(new VBArray(g)).toArray()}catch(i){a=[]}}else {if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(b.responseBody,a=[])}else {a=[];d=b.responseText;f=d.length;for(c=0;c=500){this.run()}},run:function(){var a=this;if(!a.isRunning){return}var b=a.runningQueue,d=Ext.now(),c,e;a.lastRunTime=d;a.frameStartTime=d;b.push.apply(b,a.queue);for(c=0,e=b.length;c0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty('taskQueueTimer')){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var a=this.taskQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}}},1,0,0,0,0,0,[Ext,'AnimationQueue'],0);Ext.cmd.derive('Ext.ComponentManager',Ext.Base,{alternateClassName:'Ext.ComponentMgr',singleton:!0,count:0,typeName:'xtype',constructor:function(b){var a=this;Ext.apply(a,b||{});a.all={};a.references={};a.onAvailableCallbacks={}},create:function(a,b){if(typeof a==='string'){return Ext.widget(a)}if(a.isComponent){return a}if('xclass' in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(b){var a=this,e=a.all,d=b.getId(),c=a.onAvailableCallbacks;e[d]=b;if(b.getReference&&b.getReference()){a.references[d]=b}++a.count;if(!a.hasFocusListener){Ext.on('focus',a.onGlobalFocus,a);a.hasFocusListener=!0}c=c&&c[d];if(c&&c.length){a.notifyAvailable(b)}},unregister:function(b){var a=b.getId();if(b.getReference&&b.getReference()){this.references[a]=null;delete this.references[a]}this.all[a]=null;delete this.all[a];this.count--},markReferencesDirty:function(){this.referencesDirty=!0},fixReferences:function(){var c=this,a=c.references,b;if(c.referencesDirty){for(b in a){if(a.hasOwnProperty(b)){a[b].fixReference()}}c.referencesDirty=!1}},onAvailable:function(a,f,d){var g=this,b=g.onAvailableCallbacks,e=g.all,c;if(a in e){c=e[a];f.call(d||c,c)}else {if(a){if(!Ext.isArray(b[a])){b[a]=[]}b[a].push(function(b){f.call(d||b,b)})}}},notifyAvailable:function(a){var b=this.onAvailableCallbacks[a&&a.getId()]||[];while(b.length){b.shift()(a)}},each:function(b,a){return Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.fromElement(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(d){var h=this,g=d.toElement,f=d.fromElement,c=Ext.Component.fromElement(g),b=Ext.Component.fromElement(f),e,a;if(c===b){return}e=h.getCommonAncestor(b,c);if(b&&!(b.destroyed||b.destroying)){if(b.handleBlurEvent){b.handleBlurEvent(d)}for(a=b;a&&a!==e;a=a.getRefOwner()){if(!(a.destroyed||a.destroying)){a.onFocusLeave({event:d.event,type:'focusleave',target:f,relatedTarget:g,fromComponent:b,toComponent:c})}}}if(c&&!c.destroyed){if(c.handleFocusEvent){c.handleFocusEvent(d)}for(a=c;a&&a!==e;a=a.getRefOwner()){a.onFocusEnter({event:d.event,type:'focusenter',relatedTarget:f,target:g,fromComponent:b,toComponent:c})}}},getCommonAncestor:function(a,b){if(a===b){return a}while(a&&!(a.isAncestor(b)||a===b)){a=a.getRefOwner()}return a},privates:{clearAll:function(){this.all={};this.references={};this.onAvailableCallbacks={}},fromElement:function(i,b,e){var a=Ext.getDom(i),h=this.all,g=0,f,d,c;if(typeof b!=='number'){f=Ext.getDom(b);b=Number.MAX_VALUE}while(a&&a.nodeType===1&&g0){for(;a.first&&b;b--){a.removeAtKey(a.first.key)}}},destroy:function(){this.first=this.last=null;Ext.util.HashMap.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util,'LruCache'],0);Ext.cmd.derive('Ext.ComponentQuery',Ext.Base,{singleton:!0},0,0,0,0,0,0,[Ext,'ComponentQuery'],function(){var a=this,f=Ext.util.Operators,r=/(\d*)n\+?(\d*)/,q=/\D/,c=/^(\s)+/,b=/\\(.)/g,j=new Ext.util.LruCache({maxSize:100}),m=['var r = [],','i = 0,','it = items,','l = it.length,','c;','for (; i < l; i++) {','c = it[i];','if (c.{0}) {','r.push(c);','}','}','return r;'].join(''),d=function(b,a){return a.method.apply(this,[b].concat(a.args))},e=function(d,g){var b=[],c=0,e=d.length,a,f=g!=='>';for(;c\^])\s?|\s|$)/,o=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,k=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:g,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:l,argTransform:function(c){var g=c[0],f=c[1],e=c[2],a=c[4],d;if(a!==undefined){a=a.replace(b,'$1')}if(e==='/='){d=j.get(a);if(d){a=d}else {a=j.add(a,new RegExp(a))}}return [f,e,a]}},{re:/^#((?:\\\.|[\w\-])+)/,method:i},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:n,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:m}];a.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(f){var c=this.operations,b=[],e,a,d;for(a=0,d=c.length;a=0;--c){g=l[c];b=g.mode;if(b){if(b==='^'){a=e(a,' ')}else {if(b==='>'){i=[];for(f=0,k=a.length;f1}});Ext.apply(a,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(d,f){var c=0,g=d.length,e=[],h=-1,b;for(;c0){b.push(a[0])}return b},last:function(a){var b=a.length,c=[];if(b>0){c.push(a[b-1])}return c},focusable:function(d){var e=d.length,c=[],b=0,a;for(;b=c.left&&(t=='t'&&v=='b'||t=='b'&&v=='t');o=f=c.top&&(s=='r'&&u=='l'||s=='l'&&u=='r');if(e+k>a.right){if(o){e=c.left-k;o=!1}else {e=a.right-k}}if(ea.bottom){if(p){f=c.top-j;p=!1}else {f=a.bottom-j}}if(fa.right){e=!0;d[0]=a.right-b.right}if(b.left+d[0]a.bottom){e=!0;d[1]=a.bottom-b.bottom}if(b.top+d[1]=b.x&&a.right<=b.right&&a.y>=b.y&&a.bottom<=b.bottom},intersect:function(a){var b=this,f=Math.max(b.y,a.y),e=Math.min(b.right,a.right),c=Math.min(b.bottom,a.bottom),d=Math.max(b.x,a.x);if(c>f&&e>d){return new this.self(f,e,c,d)}else {return !1}},union:function(a){var b=this,f=Math.min(b.y,a.y),e=Math.max(b.right,a.right),c=Math.max(b.bottom,a.bottom),d=Math.min(b.x,a.x);return new this.self(f,e,c,d)},constrainTo:function(b){var a=this,c=Ext.Number.constrain;a.top=a.y=c(a.top,b.y,b.bottom);a.bottom=c(a.bottom,b.y,b.bottom);a.left=a.x=c(a.left,b.x,b.right);a.right=c(a.right,b.x,b.right);return a},adjust:function(e,c,b,d){var a=this;a.top=a.y+=e;a.left=a.x+=d;a.right+=c;a.bottom+=b;return a},getOutOfBoundOffset:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.getOutOfBoundOffsetX(a)}else {return this.getOutOfBoundOffsetY(a)}}else {a=b;var c=new Ext.util.Offset();c.x=this.getOutOfBoundOffsetX(a.x);c.y=this.getOutOfBoundOffsetY(a.y);return c}},getOutOfBoundOffsetX:function(a){if(a<=this.x){return this.x-a}else {if(a>=this.right){return this.right-a}}return 0},getOutOfBoundOffsetY:function(a){if(a<=this.y){return this.y-a}else {if(a>=this.bottom){return this.bottom-a}}return 0},isOutOfBound:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.isOutOfBoundX(a)}else {return this.isOutOfBoundY(a)}}else {a=b;return this.isOutOfBoundX(a.x)||this.isOutOfBoundY(a.y)}},isOutOfBoundX:function(a){return athis.right},isOutOfBoundY:function(a){return athis.bottom},restrict:function(d,a,b){if(Ext.isObject(d)){var c;b=a;a=d;if(a.copy){c=a.copy()}else {c={x:a.x,y:a.y}}c.x=this.restrictX(a.x,b);c.y=this.restrictY(a.y,b);return c}else {if(d=='x'){return this.restrictX(a,b)}else {return this.restrictY(a,b)}}},restrictX:function(a,b){if(!b){b=1}if(a<=this.x){a-=(a-this.x)*b}else {if(a>=this.right){a-=(a-this.right)*b}}return a},restrictY:function(a,b){if(!b){b=1}if(a<=this.y){a-=(a-this.y)*b}else {if(a>=this.bottom){a-=(a-this.bottom)*b}}return a},getSize:function(){return {width:this.right-this.x,height:this.bottom-this.y}},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(b){var a=this;a.top=a.y=a[1]=b.y;a.right=b.right;a.bottom=b.bottom;a.left=a.x=a[0]=b.x;return this},toString:function(){return 'Region['+this.top+','+this.right+','+this.bottom+','+this.left+']'},translateBy:function(b,c){if(arguments.length==1){c=b.y;b=b.x}var a=this;a.top=a.y+=c;a.right+=b;a.bottom+=c;a.left=a.x+=b;return a},round:function(){var a=this;a.top=a.y=Math.round(a.y);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);a.left=a.x=Math.round(a.x);return a},equals:function(a){return this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left}},3,0,0,0,0,0,[Ext.util,'Region'],0);Ext.cmd.derive('Ext.util.Point',Ext.util.Region,{radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(b){var a=b.changedTouches,c=a&&a.length>0?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}Ext.util.Region.prototype.constructor.call(this,b,a,b,a)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return 'Point['+this.x+','+this.y+']'},equals:function(a){return this.x===a.x&&this.y===a.y},isCloseTo:function(b,a){if(typeof a=='number'){return this.getDistanceTo(b)<=a}var e=b.x,f=b.y,c=a.x,d=a.y;return this.x<=e+c&&this.x>=e-c&&this.y<=f+d&&this.y>=f-d},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=='object'){a=this.origin}return Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y)},getDistanceTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.sqrt(b*b+c*c)},getAngleTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.atan2(c,b)*this.radianToDegreeConstant}},3,0,0,0,0,0,[Ext.util,'Point'],function(){this.prototype.translate=this.prototype.translateBy});Ext.cmd.derive('Ext.event.Event',Ext.Base,{alternateClassName:'Ext.EventObjectImpl',isStopped:!1,defaultPrevented:!1,isEvent:!0,statics:{resolveTextNode:function(a){return a&&a.nodeType===3?a.parentNode:a},pointerEvents:{pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerDown:1,MSPointerMove:1,MSPointerUp:1,MSPointerOver:1,MSPointerOut:1,MSPointerCancel:1,MSPointerEnter:1,MSPointerLeave:1},mouseEvents:{mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1,mouseenter:1,mouseleave:1},clickEvents:{click:1,dblclick:1},touchEvents:{touchstart:1,touchmove:1,touchend:1,touchcancel:1},focusEvents:{focus:1,blur:1,focusin:1,focusout:1,focusenter:1,focusleave:1},pointerTypes:{2:'touch',3:'pen',4:'mouse',touch:'touch',pen:'pen',mouse:'mouse'}},constructor:function(b){var a=this,c=a.self,h=a.self.resolveTextNode,i=b.changedTouches,g=i?i[0]:b,d=b.type,e,f;a.pageX=g.pageX;a.pageY=g.pageY;a.target=a.delegatedTarget=h(b.target);f=b.relatedTarget;if(f){a.relatedTarget=h(f)}a.browserEvent=a.event=b;a.type=d;a.button=b.button||0;a.shiftKey=b.shiftKey;a.ctrlKey=b.ctrlKey||b.metaKey||!1;a.altKey=b.altKey;a.charCode=b.charCode;a.keyCode=b.keyCode;a.buttons=b.buttons;if(a.button===0&&a.buttons===0){a.buttons=1}if(c.forwardTab!==undefined&&c.focusEvents[d]){a.forwardTab=c.forwardTab}if(c.mouseEvents[d]||c.clickEvents[d]){e='mouse'}else {if(c.pointerEvents[d]){e=c.pointerTypes[b.pointerType]}else {if(c.touchEvents[d]){e='touch'}}}if(e){a.pointerType=e}a.timeStamp=a.time=+(b.timeStamp||new Date())},chain:function(b){var a=Ext.Object.chain(this);a.parentEvent=this;return Ext.apply(a,b)},correctWheelDelta:function(a){var c=this.WHEEL_SCALE,b=Math.round(a/c);if(!b&&a){b=a<0?-1:1}return b},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.keyCodes[this.keyCode]},getPoint:function(){var a=this.getXY();return new Ext.util.Point(a[0],a[1])},getRelatedTarget:function(d,e,c){var a=this.relatedTarget,b=null;if(a){if(d){b=Ext.fly(a).findParent(d,e,c)}else {b=c?Ext.get(a):a}}return b},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):a?Ext.get(this.target):this.target},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var d=this,a=d.browserEvent,c=0,b=0;if(Ext.isDefined(a.wheelDeltaX)){c=a.wheelDeltaX;b=a.wheelDeltaY}else {if(a.wheelDelta){b=a.wheelDelta}else {if(a.detail){b=-a.detail;if(b>100){b=3}else {if(b<-100){b=-3}}if(Ext.isDefined(a.axis)&&a.axis===a.HORIZONTAL_AXIS){c=b;b=0}}}}return {x:d.correctWheelDelta(c),y:d.correctWheelDelta(b)}},getX:function(){return this.getXY()[0]},getXY:function(){var d=this,c=d.xy;if(!c){c=d.xy=[d.pageX,d.pageY];var g=c[0],e,f,a,b;if(!g&&g!==0){e=d.browserEvent;f=document;a=f.documentElement;b=f.body;c[0]=e.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);c[1]=e.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}}return c},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(c){var a=this,b=a.keyCode,d=a.type==='keypress';return (!d||Ext.isGecko)&&b>=33&&b<=40||!c&&(b===a.RETURN||b===a.TAB||b===a.ESC)},isSpecialKey:function(){var b=this,a=b.keyCode,d=Ext.isGecko,c=b.type==='keypress';return d&&c&&b.charCode===0||this.isNavKeyPress()||a===b.BACKSPACE||a===b.ENTER||a>=16&&a<=20||(!c||d)&&a>=44&&a<=46},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var a=this,b=a.parentEvent;a.defaultPrevented=!0;if(b){b.defaultPrevented=!0}a.browserEvent.preventDefault();return a},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var a=this,b=a.browserEvent,c=a.parentEvent;a.isStopped=!0;if(c){c.isStopped=!0}if(!b.stopPropagation){b.cancelBubble=!0;return a}b.stopPropagation();return a},within:function(b,d,c){var a;if(b){a=d?this.getRelatedTarget():this.getTarget()}return a?Ext.fly(b).contains(a)||!!(c&&a===Ext.getDom(b)):!1},deprecated:{'4.0':{methods:{getPageX:'getX',getPageY:'getY'}}}},1,0,0,0,0,0,[Ext.event,'Event',Ext,'EventObjectImpl'],function(f){var b=f.prototype,a={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,WHEEL_SCALE:function(){var a;if(Ext.isGecko){a=3}else {if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){a=120}else {a=12}a*=3}else {a=120}}return a}()},d={},c,e;Ext.apply(f,a);Ext.apply(b,a);delete a.WHEEL_SCALE;delete a.RETURN;for(c in a){e=a[c];d[e]=c}b.keyCodes=d;b.getTrueXY=b.getXY});Ext.define('Ext.overrides.event.Event',{override:'Ext.event.Event',mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:function(){var a,b={},c;if(!Ext.isIE9m&&document.createEvent){a={createHtmlEvent:function(e,d,c,b){var a=e.createEvent('HTMLEvents');a.initEvent(d,c,b);return a},createMouseEvent:function(d,n,h,f,m,b,c,i,k,g,j,l,e){var a=d.createEvent('MouseEvents'),o=d.defaultView||window;if(a.initMouseEvent){a.initMouseEvent(n,h,f,o,m,b,c,b,c,i,k,g,j,l,e)}else {a=d.createEvent('UIEvents');a.initEvent(n,h,f);a.view=o;a.detail=m;a.screenX=b;a.screenY=c;a.clientX=b;a.clientY=c;a.ctrlKey=i;a.altKey=k;a.metaKey=j;a.shiftKey=g;a.button=l;a.relatedTarget=e}return a},createUIEvent:function(b,f,d,c,e){var a=b.createEvent('UIEvents'),g=b.defaultView||window;a.initUIEvent(f,d,c,g,e);return a},fireEvent:function(a,c,b){a.dispatchEvent(b)}}}else {if(document.createEventObject){c={0:1,1:4,2:2};a={createHtmlEvent:function(d,e,c,b){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},createMouseEvent:function(n,o,i,g,m,b,d,j,l,h,k,e,f){var a=n.createEventObject();a.bubbles=i;a.cancelable=g;a.detail=m;a.screenX=b;a.screenY=d;a.clientX=b;a.clientY=d;a.ctrlKey=j;a.altKey=l;a.shiftKey=h;a.metaKey=k;a.button=c[e]||e;a.relatedTarget=f;return a},createUIEvent:function(d,f,c,b,e){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},fireEvent:function(a,c,b){a.fireEvent('on'+c,b)}}}}Ext.Object.each({load:[!1,!1],unload:[!1,!1],select:[!0,!1],change:[!0,!1],submit:[!0,!0],reset:[!0,!1],resize:[!0,!1],scroll:[!0,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createHtmlEvent(c,f,e);a.fireEvent(b,c,g)}});function createMouseEventDispatcher(b,d){var c=b!=='mousemove';return function(f,e){var g=e.getXY(),h=a.createMouseEvent(f.ownerDocument,b,!0,c,d,g[0],g[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget);a.fireEvent(f,b,h)}}Ext.each(['click','dblclick','mousedown','mouseup','mouseover','mousemove','mouseout'],function(a){b[a]=createMouseEventDispatcher(a,1)});Ext.Object.each({focusin:[!0,!1],focusout:[!0,!1],activate:[!0,!0],focus:[!1,!1],blur:[!1,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createUIEvent(b.ownerDocument,c,f,e,1);a.fireEvent(b,c,g)}});if(!a){b={};a={}}function cannotInject(b,a){}return function(a){var c=this,d=b[c.type]||cannotInject,e=a?a.dom||a:c.getTarget();d(e,c)}}(),preventDefault:function(){var c=this,a=c.browserEvent,e=c.parentEvent,d,b;if(typeof a.type!=='unknown'){c.defaultPrevented=!0;if(e){e.defaultPrevented=!0}if(a.preventDefault){a.preventDefault()}else {if(a.type==='mousedown'){b=a.target;d=b.getAttribute('unselectable');if(d!=='on'){b.setAttribute('unselectable','on');Ext.defer(function(){b.setAttribute('unselectable',d)},1)}}a.returnValue=!1;if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}}return c},stopPropagation:function(){var a=this,b=a.browserEvent;if(typeof b.type!=='unknown'){if(a.mousedownEvents[a.type]){Ext.GlobalEvents.fireMouseDown(a)}arguments.callee.$previous.call(this)}return a},deprecated:{'5.0':{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var c=this,d,a=function(a){if(a.keyCode===9){c.forwardTab=!a.shiftKey}},b=function(a){if(a.keyCode===9){delete c.forwardTab}};if(Ext.isIE9m){d={0:0,1:0,4:1,2:2};c.override({statics:{enableIEAsync:function(b){var a,c={};for(a in b){c[a]=b[a]}return c}},constructor:function(a,f,e,c){var b=this;b.callParent([a,f,e,c]);b.button=d[a.button];if(a.type==='contextmenu'){b.button=2}b.toElement=a.toElement;b.fromElement=a.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(a){this.browserEvent=this.self.enableIEAsync(a)},getRelatedTarget:function(f,d,e){var a=this,c,b;if(!a.relatedTarget){c=a.type;if(a.mouseLeaveRe.test(c)){b=a.toElement}else {if(a.mouseEnterRe.test(c)){b=a.fromElement}}if(b){a.relatedTarget=a.self.resolveTextNode(b)}}return a.callParent([f,d,e])}});document.attachEvent('onkeydown',a);document.attachEvent('onkeyup',b);window.attachEvent('onunload',function(){document.detachEvent('onkeydown',a);document.detachEvent('onkeyup',b)})}else {if(document.addEventListener){document.addEventListener('keydown',a,!0);document.addEventListener('keyup',b,!0)}}});Ext.cmd.derive('Ext.event.publisher.Dom',Ext.event.publisher.Publisher,{type:'dom',handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1,scroll:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var b=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=b.handledDomEvents,f=d.length,c=0,a;for(;cb?1:a1){e=[];for(d=0;d0){b.invokeRecognizers('onTouchMove',a)}}},onTouchEnd:function(b){var a=this;if(!a.isStarted){return}a.updateTouches(b,!0);a.invokeRecognizers(a.isCancelEvent[b.type]?'onTouchCancel':'onTouchEnd',b);if(!a.activeTouches.length){a.isStarted=!1;a.invokeRecognizers('onEnd',b);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else {this.doTargetTouchMove(a)}},doTargetTouchMove:function(a){if(!Ext.getBody().contains(a.target)){this.onTouchMove(new Ext.event.Event(a))}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else {this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var b=this,a=c.target;a.removeEventListener('touchmove',b.onTargetTouchMove);a.removeEventListener('touchend',b.onTargetTouchEnd);a.removeEventListener('touchcancel',b.onTargetTouchEnd);if(!Ext.getBody().contains(a)){b.onTouchEnd(new Ext.event.Event(c))}},updateAsync:function(a){this.handlers=a?this._asyncHandlers:this._handlers},reset:function(){var a=this,d=a.recognizers,e=d.length,b,c;a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.isStarted=!1;for(b=0;b=500){this.run()}},run:function(){this.pending=!1;var i=this.readQueue,h=this.writeQueue,c=null,d;if(this.mode){d=i;if(h.length>0){c=!1}}else {d=h;if(i.length>0){c=!0}}var g=d.slice(),f,j,b,a,e;d.length=0;for(f=0,j=g.length;f2){a.apply(e,b[2])}else {a.call(e)}}g.length=0;if(c!==null){this.request(c)}}},1,0,0,0,0,0,[Ext,'TaskQueue'],0);Ext.cmd.derive('Ext.util.sizemonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:0,height:0,contentWidth:0,contentHeight:0,constructor:function(a){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(a);this.bindListeners(!0)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer);a.addCls('x-size-monitored')},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.offsetWidth},getContentHeight:function(){return this.detectorsContainer.offsetHeight},refreshSize:function(){var b=this.getElement();if(!b||b.destroyed){return !1}var h=b.getWidth(),g=b.getHeight(),d=this.getContentWidth(),c=this.getContentHeight(),j=this.contentWidth,i=this.contentHeight,a=this.info,f=!1,e;this.width=h;this.height=g;this.contentWidth=d;this.contentHeight=c;e=(j!==d?1:0)+(i!==c?2:0);if(e>0){a.width=h;a.height=g;a.contentWidth=d;a.contentHeight=c;a.flag=e;f=!0;this.getCallback().apply(this.getScope(),this.getArgs())}return f},refresh:function(a){if(this.refreshSize()||a){Ext.TaskQueue.requestWrite('refreshMonitors',this)}},destroy:function(){var a=this,b=a.getElement();a.bindListeners(!1);if(b&&!b.destroyed){b.removeCls('x-size-monitored')}delete a._element;a.callParent()}},1,0,0,0,0,[[Ext.mixin.Templatable.prototype.mixinId||Ext.mixin.Templatable.$className,Ext.mixin.Templatable]],[Ext.util.sizemonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.sizemonitor.Scroll',Ext.util.sizemonitor.Abstract,{getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','scroll'],children:[{reference:'expandMonitor',className:'expand'},{reference:'shrinkMonitor',className:'shrink'}]}},constructor:function(a){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a]('scroll',this.onScroll,!0);this.shrinkMonitor[a]('scroll',this.onScroll,!0)},forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this,[!0])},onScroll:function(){Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){var a=this.expandMonitor,b=this.shrinkMonitor,c=1000000;if(a&&!a.destroyed){a.scrollLeft=c;a.scrollTop=c}if(b&&!b.destroyed){b.scrollLeft=c;b.scrollTop=c}}},1,0,0,0,0,0,[Ext.util.sizemonitor,'Scroll'],0);Ext.cmd.derive('Ext.util.sizemonitor.OverflowChange',Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=Ext.Function.bind(this.onExpand,this);this.onShrink=Ext.Function.bind(this.onShrink,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','overflowchanged'],children:[{reference:'expandMonitor',className:'expand',children:[{reference:'expandHelper'}]},{reference:'shrinkMonitor',className:'shrink',children:[{reference:'shrinkHelper'}]}]}},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a](Ext.browser.is.Firefox?'underflow':'overflowchanged',this.onExpand,!0);this.shrinkMonitor[a](Ext.browser.is.Firefox?'overflow':'overflowchanged',this.onShrink,!0)},onExpand:function(a){if(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},onShrink:function(a){if(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){if(this.destroyed){return}var b=this.expandHelper,c=this.shrinkHelper,d=this.getContentBounds(),f=d.width,e=d.height,a;if(b&&!b.destroyed){a=b.style;a.width=f+1+'px';a.height=e+1+'px'}if(c&&!c.destroyed){a=c.style;a.width=f+'px';a.height=e+'px'}Ext.TaskQueue.requestRead('refresh',this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,'OverflowChange'],0);Ext.cmd.derive('Ext.util.SizeMonitor',Ext.Base,{constructor:function(b){var a=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new a.OverflowChange(b)}else {return new a.Scroll(b)}}},1,0,0,0,0,0,[Ext.util,'SizeMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementSize',Ext.event.publisher.Publisher,{type:'size',handledEvents:['resize'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(b){var a=b.id,c=this.subscribers,d=this.monitors;if(c[a]){++c[a]}else {c[a]=1;d[a]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on('painted','forceRefresh',d[a]);return !0},unsubscribe:function(e){var a=e.id,c=this.subscribers,d=this.monitors,b;if(c[a]&&!--c[a]){delete c[a];b=d[a];e.un('painted','forceRefresh',b);b.destroy();delete d[a]}},onElementResize:function(a,b){Ext.TaskQueue.requestRead('fire',this,[a,'resize',[a,b]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementSize'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.util.paintmonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:'',monitorClass:'',constructor:function(a){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?'addEventListener':'removeEventListener'](this.eventName,this.onElementPainted,!0)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:['x-paint-monitor',this.monitorClass]},!0);a.appendChild(this.monitorElement);a.addCls('x-paint-monitored');this.bindListeners(!0)},onElementPainted:function(){},destroy:function(){var a=this,c=a.monitorElement,d=c.parentNode,b=a.getElement();a.bindListeners(!1);delete a.monitorElement;if(b&&!b.destroyed){b.removeCls('x-paint-monitored');delete a._element}if(d){d.removeChild(c)}a.callParent()}},1,0,0,0,0,0,[Ext.util.paintmonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.paintmonitor.CssAnimation',Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.WebKit?'webkitAnimationEnd':'animationend',monitorClass:'cssanimation',onElementPainted:function(a){if(a.animationName==='x-paint-monitor-helper'){this.getCallback().apply(this.getScope(),this.getArgs())}}},0,0,0,0,0,0,[Ext.util.paintmonitor,'CssAnimation'],0);Ext.cmd.derive('Ext.util.PaintMonitor',Ext.Base,{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}},1,0,0,0,0,0,[Ext.util,'PaintMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementPaint',Ext.event.publisher.Publisher,{type:'paint',handledEvents:['painted'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(d){var b=this,a=d.id,c=b.subscribers;if(c[a]){++c[a]}else {c[a]=1;b.monitors[a]=new Ext.util.PaintMonitor({element:d,callback:b.onElementPainted,scope:b,args:[d]})}},unsubscribe:function(d){var a=d.id,b=this.subscribers,c=this.monitors;if(b[a]&&!--b[a]){delete b[a];c[a].destroy();delete c[a]}},onElementPainted:function(a){Ext.TaskQueue.requestRead('fire',this,[a,'painted',[a]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementPaint'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.dom.Element',Ext.Base,function(a){var h=window,b=document,F='ext-window',D='ext-document',w='width',H='height',ac='min-width',_='min-height',ab='max-width',$='max-height',S='top',P='right',ag='bottom',R='left',aa='visibility',M='hidden',G='display',x='none',O='z-index',u='position',ad='relative',N='static',i='-',T=/\w/g,k=/\s+/,V=/[\s]+/,Y=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,U=/table-row|table-.*-group/,Q=/top/i,d={t:'border-top-width',r:'border-right-width',b:'border-bottom-width',l:'border-left-width'},f={t:'padding-top',r:'padding-right',b:'padding-bottom',l:'padding-left'},v={t:'margin-top',r:'margin-right',b:'margin-bottom',l:'margin-left'},Z=[f.l,f.r,f.t,f.b],B=[d.l,d.r,d.t,d.b],ae=/\d+$/,I=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,C='px',af=/(-[a-z])/gi,J=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,t=/^\d+(?:\.\d*)?px$/i,A={},y='originalDisplay',X=function(c,b){return b.charAt(1).toUpperCase()},E=function(d,e){var c,b,f;if(d.nodeType===1){d._extData=null;if(e){c=d.childNodes;for(b=0,f=c.length;bh.innerWidth?'portrait':'landscape'},getViewportHeight:function(){var c=a._viewportHeight;if(Ext.isIE9m){return b.documentElement.clientHeight}return c!=null?c:h.innerHeight},getViewportWidth:function(){var c=a._viewportWidth;if(Ext.isIE9m){return b.documentElement.clientWidth}return c!=null?c:h.innerWidth},getViewSize:function(){return {width:a.getViewportWidth(),height:a.getViewportHeight()}},normalize:function(b){return A[b]||(A[b]=b.replace(af,X))},_onWindowFocusChange:function(b){if(Ext.fly(b.target).is(a.editableSelector)){z=new Date();L=b.type==='focusin'||b.type==='pointerup'}},_onWindowResize:function(){var c=window.innerWidth,b=window.innerHeight,g=new Date(),f=1000,d,e;d=c-a._windowWidth;e=b-a._windowHeight;a._windowWidth=c;a._windowHeight=b;if(g-z=a.minKeyboardHeight){l=!1;K=new Date()}if(l){return}a._viewportWidth=c;a._viewportHeight=b},parseBox:function(c){c=c||0;var e=typeof c,b,d;if(e==='number'){return {top:c,right:c,bottom:c,left:c}}else {if(e!=='string'){return c}}b=c.split(' ');d=b.length;if(d===1){b[1]=b[2]=b[3]=b[0]}else {if(d===2){b[2]=b[0];b[3]=b[1]}else {if(d===3){b[3]=b[1]}}}return {top:parseFloat(b[0])||0,right:parseFloat(b[1])||0,bottom:parseFloat(b[2])||0,left:parseFloat(b[3])||0}},parseStyles:function(c){var d={},b;if(c){J.lastIndex=0;while(b=J.exec(c)){d[b[1]]=b[2]||''}}return d},select:function(d,c,e){return Ext.fly(e||b).select(d,c)},query:function(c,d,e){return Ext.fly(e||b).query(c,d)},unitizeBox:function(b,d){var c=this;b=c.parseBox(b);return c.addUnits(b.top,d)+' '+c.addUnits(b.right,d)+' '+c.addUnits(b.bottom,d)+' '+c.addUnits(b.left,d)},serializeForm:function(l){var m=l.elements||(b.forms[l]||Ext.getDom(l)).elements,n=!1,f=encodeURIComponent,g='',q=m.length,c,h,d,k,o,i,j,p,e;for(i=0;i0||b.scrollLeft!==0){e.push(b);g.push(c.attach(b).getScroll())}}return function(){var d,b,f;for(b=0,f=e.length;b '+d,!!c)},clone:function(c,d){var b=this.dom.cloneNode(c);if(Ext.supports.CloneNodeCopiesExpando){E(b,c)}return d?b:Ext.get(b)},constrainScrollLeft:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollWidth-b.clientWidth),0)},constrainScrollTop:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollHeight-b.clientHeight),0)},createChild:function(b,c,d){b=b||{tag:'div'};if(c){return Ext.DomHelper.insertBefore(c,b,d!==!0)}else {return Ext.DomHelper.append(this.dom,b,d!==!0)}},contains:function(b){if(!b){return !1}var d=this,c=Ext.getDom(b);return c===d.dom||d.isAncestor(c)},destroy:function(){var c=this,b=c.dom;if(b&&b.parentNode){b.parentNode.removeChild(b)}c.collect();if(!c.isFly){c.callParent()}},detach:function(){var b=this.dom;if(b&&b.parentNode&&b.tagName!=='BODY'){b.parentNode.removeChild(b)}return this},disableShadow:function(){var b=this.shadow;if(b){b.hide();b.disabled=!0}},disableShim:function(){var b=this.shim;if(b){b.hide();b.disabled=!0}},disableTouchContextMenu:function(){this._contextMenuListenerRemover=this.on({MSHoldVisual:function(b){b.preventDefault()},destroyable:!0,delegated:!1})},disableTouchScroll:function(){this.addCls(W);this.on({touchmove:function(b){b.preventDefault()},translate:!1})},doReplaceWith:function(c){var b=this.dom;b.parentNode.replaceChild(Ext.getDom(c),b)},doScrollIntoView:function(b,o,d,m,l,n){c=c||new Ext.dom.Fly();var e=this,k=e.dom,i=c.attach(b)[l](),j=b.scrollTop,h=e.getScrollIntoViewXY(b,i,j),f=h.x,g=h.y;if(m){if(d){d=Ext.apply({listeners:{afteranimate:function(){c.attach(k).highlight()}}},d)}else {c.attach(k).highlight()}}if(g!==j){c.attach(b).scrollTo('top',g,d)}if(o!==!1&&f!==i){c.attach(b)[n]('left',f,d)}return e},down:function(c,b){return this.selectNode(c,!!b)},enableShadow:function(f,e){var c=this,b=c.shadow||(c.shadow=new Ext.dom.Shadow(Ext.apply({target:c},f))),d=c.shim;if(d){d.offsets=b.outerOffsets;d.shadow=b;b.shim=d}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},enableShim:function(f,e){var c=this,b=c.shim||(c.shim=new Ext.dom.Shim(Ext.apply({target:c},f))),d=c.shadow;if(d){b.offsets=d.outerOffsets;b.shadow=d;d.shim=b}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},findParent:function(g,d,h){var i=this,c=i.dom,e=b.documentElement,f=0;if(d||d===0){if(typeof d!=='number'){e=Ext.getDom(d);d=Number.MAX_VALUE}}else {d=50}while(c&&c.nodeType===1&&f0&&d<0.5){b++}}}if(e){b-=c.getBorderWidth('tb')+c.getPadding('tb')}return b<0?0:b},getHtml:function(){return this.dom?this.dom.innerHTML:''},getLeft:function(b){return b?this.getLocalX():this.getX()},getLocalX:function(){var d=this,c,b=d.getStyle('left');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getX();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getX()}}}return b},getLocalXY:function(){var e=this,d,f=e.getStyle(['left','top']),b=f.left,c=f.top;if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=e.getX();d=e.dom.offsetParent;if(d){b-=Ext.fly(d).getX()}}}if(!c||c==='auto'){c=0}else {if(t.test(c)){c=parseFloat(c)}else {c=e.getY();d=e.dom.offsetParent;if(d){c-=Ext.fly(d).getY()}}}return [b,c]},getLocalY:function(){var d=this,c,b=d.getStyle('top');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getY();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getY()}}}return b},getMargin:function(){var c={t:'top',l:'left',r:'right',b:'bottom'},b=['margin-top','margin-left','margin-right','margin-bottom'];return function(g){var h=this,e,f,d;if(!g){e=h.getStyle(b);d={};if(e&&typeof e==='object'){d={};for(f in v){d[f]=d[c[f]]=parseFloat(e[v[f]])||0}}}else {d=h.addStyles(g,v)}return d}}(),getPadding:function(b){return this.addStyles(b,f)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(b){return (b?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var h=this,d=h.dom,g=b.documentElement,e,f,c=document.body;if(d===b||d===c){e=g.scrollLeft||(c?c.scrollLeft:0);f=g.scrollTop||(c?c.scrollTop:0)}else {e=d.scrollLeft;f=d.scrollTop}return {left:e,top:f}},getScrollIntoViewXY:function(r,b,c){var p=this.dom,h=Ext.getDom(r),j=this.getOffsetsTo(h),o=p.offsetWidth,m=p.offsetHeight,f=j[0]+b,g=j[1]+c,l=g+m,n=f+o,d=h.clientHeight,e=h.clientWidth,i=b,k=c,q=k+d,s=i+e;if(m>d||gq){c=l-d}}if(o>e||fs){b=n-e}}return {x:b,y:c}},getScrollLeft:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().left}else {return c.scrollLeft}},getScrollTop:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().top}else {return c.scrollTop}},getSize:function(b){return {width:this.getWidth(b),height:this.getHeight(b)}},getStyle:function(n,i){var k=this,e=k.dom,m=typeof n!=='string',p=k.styleHooks,b=n,j=b,q=1,h,o,f,d,g,c,l;if(m){f={};b=j[0];l=0;if(!(q=j.length)){return f}}if(!e||e.documentElement){return f||''}h=e.style;if(i){c=h}else {c=e.ownerDocument.defaultView.getComputedStyle(e,null);if(!c){i=!0;c=h}}do{d=p[b];if(!d){p[b]=d={name:a.normalize(b)}}if(d.get){g=d.get(e,k,i,c)}else {o=d.name;g=c[o]}if(!m){return g}f[b]=g;b=j[++l]}while(l0&&e<0.5){b++}}}if(h){b-=c.getBorderWidth('lr')+c.getPadding('lr')}return b<0?0:b},getX:function(){return this.getXY()[0]},getXY:function(){var h=Math.round,e=this.dom,f=0,g=0,c,d;if(e!==b&&e!==b.body){try{c=e.getBoundingClientRect()}catch(ah){c={left:0,top:0}}f=h(c.left);g=h(c.top);d=Ext.getDoc().getScroll();f+=d.left;g+=d.top}return [f,g]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle('z-index'),10)},hasCls:function(c){var b=this.getData();if(!b.isSynchronized){this.synchronize()}return b.classMap.hasOwnProperty(c)},hide:function(){this.setVisible(!1);return this},insertAfter:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b.nextSibling);return this},insertBefore:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b);return this},insertFirst:function(b,c){b=b||{};if(b.nodeType||b.dom||typeof b==='string'){b=Ext.getDom(b);this.dom.insertBefore(b,this.dom.firstChild);return !c?Ext.get(b):b}else {return this.createChild(b,this.dom.firstChild,c)}},insertHtml:function(d,e,c){var b=Ext.DomHelper.insertHtml(d,this.dom,e);return c?Ext.get(b):b},insertSibling:function(b,k,f){var d=this,j=Ext.DomHelper,h=(k||'before').toLowerCase()==='after',c,g,i,e;if(Ext.isIterable(b)){i=b.length;g=Ext.fly(document.createDocumentFragment());if(Ext.isArray(b)){for(e=0;eb.clientHeight||b.scrollWidth>b.clientWidth},isStyle:function(b,c){return this.getStyle(b)===c},isVisible:function(d){var b=this.dom,c;if(!b){return !1}if(!s){s=new Ext.dom.Fly()}for(c=b.ownerDocument.documentElement;b!==c;b=b.parentNode){if(!b||b.nodeType===11||s.attach(b).isStyle(aa,M)||s.isStyle(G,x)){return !1}if(!d){break}}return !0},last:function(c,b){return this.matchNode('previousSibling','lastChild',c,b)},maskIframes:function(){var b=document.getElementsByTagName('iframe');Ext.each(b,function(c){var b=Ext.fly(c.parentNode),d=b.mask();d.setStyle('background-color','transparent')})},matchNode:function(g,f,c,e){var d=this.dom,b;if(!d){return null}b=d[f];while(b){if(b.nodeType===1&&(!c||Ext.fly(b,'_matchNode').is(c))){return !e?Ext.get(b):b}b=b[g]}return null},next:function(c,b){return this.matchNode('nextSibling','nextSibling',c,b)},parent:function(c,b){return this.matchNode('parentNode','parentNode',c,b)},position:function(c,d,e,f){var b=this;if(b.dom.tagName!=='BODY'){if(!c&&b.isStyle(u,N)){b.setStyle(u,ad)}else {if(c){b.setStyle(u,c)}}if(d){b.setStyle(O,d)}if(e||f){b.setXY([e||!1,f||!1])}}},prev:function(c,b){return this.matchNode('previousSibling','previousSibling',c,b)},query:function(b,e,j){var i=this.dom,g,l,k,h,f,c,d;if(!i){return null}e=e!==!1;b=b.split(',');if(!j){g=[]}for(c=0,l=b.length;c0){b=i.className.split(V);for(c=0,j=b.length;c=':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>=a},'>':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>a},'!=':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!=c},'!==':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!==c},'in':function(b){var a=this._filterValue;return Ext.Array.contains(a,this.getCandidateValue(b,a))},notin:function(b){var a=this._filterValue;return !Ext.Array.contains(a,this.getCandidateValue(b,a))},like:function(b){var a=this._filterValue;return a&&this.getCandidateValue(b,a).toLowerCase().indexOf(a.toLowerCase())>-1}};a['==']=a['='];a.gt=a['>'];a.ge=a['>='];a.lt=a['<'];a.le=a['<='];a.eq=a['='];a.ne=a['!=']});Ext.cmd.derive('Ext.util.Observable',Ext.mixin.Observable,{$applyConfigs:!0},0,0,0,0,0,0,[Ext.util,'Observable'],function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe});Ext.cmd.derive('Ext.util.AbstractMixedCollection',Ext.Base,{isMixedCollection:!0,generation:0,indexGeneration:0,constructor:function(b,c){var a=this;if(arguments.length===1&&Ext.isObject(b)){a.initialConfig=b;Ext.apply(a,b)}else {a.allowFunctions=b===!0;if(c){a.getKey=c}a.initialConfig={allowFunctions:a.allowFunctions,getKey:a.getKey}}a.items=[];a.map={};a.keys=[];a.indexMap={};a.length=0;a.mixins.observable.constructor.call(a)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:!1,add:function(b,d){var c=this.length,a;if(arguments.length===1){a=this.insert(c,b)}else {a=this.insert(c,b,d)}return a},getKey:function(a){return a.id},replace:function(b,c){var a=this,d,e;if(arguments.length==1){c=arguments[0];b=a.getKey(c)}d=a.map[b];if(typeof b=='undefined'||b===null||typeof d=='undefined'){return a.add(b,c)}a.generation++;e=a.indexOfKey(b);a.items[e]=c;a.map[b]=c;if(a.hasListeners.replace){a.fireEvent('replace',b,d,c)}return c},reorder:function(e){var b=this,f=b.items,a=0,h=f.length,c=[],g=[],d;b.suspendEvents();for(d in e){c[e[d]]=f[d]}for(a=0;a-1){g=e[b];delete e[b];delete f[b];e[c]=g;f[c]=d;a.keys[d]=c;a.indexGeneration=++a.generation}},addAll:function(a){var c=this,b;if(arguments.length>1||Ext.isArray(a)){c.insert(c.length,arguments.length>1?arguments:a)}else {for(b in a){if(a.hasOwnProperty(b)){if(c.allowFunctions||typeof a[b]!='function'){c.add(b,a[b])}}}}},each:function(f,e){var c=Ext.Array.push([],this.items),a=0,d=c.length,b;for(;a2){a=this.doInsert(c,[b],[d])}else {a=this.doInsert(c,[b])}a=a[0]}return a},doInsert:function(f,e,d){var b=this,c,i,a,g=e.length,j=g,o=b.hasListeners.add,k,h={},l,n,m;if(d!=null){b.useLinearSearch=!0}else {d=e;e=new Array(g);for(a=0;a=0;--c){a.remove(b[c])}}else {while(a.length){a.removeAt(0)}}}else {a.length=a.items.length=a.keys.length=0;a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}},removeAt:function(b){var a=this,d,c;if(b=0){a.length--;d=a.items[b];Ext.Array.erase(a.items,b,1);c=a.keys[b];if(typeof c!='undefined'){delete a.map[c]}Ext.Array.erase(a.keys,b,1);if(a.hasListeners.remove){a.fireEvent('remove',d,c)}a.generation++;return d}return !1},removeRange:function(c,b){var a=this,i,f,d,e,g,h;if(c=0){if(!b){b=1}e=Math.min(c+b,a.length);b=e-c;h=e===a.length;g=h&&a.indexGeneration===a.generation;for(d=c;d=0;a--){if(c[a]==null){b.removeAt(a)}}}else {return b.removeAt(b.indexOfKey(d))}},getCount:function(){return this.length},indexOf:function(b){var a=this,c;if(b!=null){if(!a.useLinearSearch&&(c=a.getKey(b))){return this.indexOfKey(c)}return Ext.Array.indexOf(a.items,b)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var b=this,d=b.indexMap={},c=b.keys,e=c.length,a;for(a=0;aa){e=!0;g=b;b=a;a=g}if(b<0){b=0}if(a==null||a>=d){a=d-1}c=f.slice(b,a+1);if(e&&c.length){c.reverse()}return c},filter:function(a,e,d,c){var b=[];if(Ext.isString(a)){b.push(new Ext.util.Filter({property:a,value:e,anyMatch:d,caseSensitive:c}))}else {if(Ext.isArray(a)||a instanceof Ext.util.Filter){b=b.concat(a)}}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(h,g){var a=this,c=new a.self(a.initialConfig),e=a.keys,d=a.items,f=d.length,b;c.getKey=a.getKey;for(b=0;bb?1:a0){c.removeRange(b.multiSortLimit,g)};break;case 'prepend':c.insert(0,a);break;case 'append':c.addAll(a);break;case undefined:case null:case 'replace':c.clear();c.addAll(a);break;default:}}if(h!==!1){b.fireEvent('beforesort',b,a);b.onBeforeSort(a);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return a},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(b){if(!Ext.isArray(b)){if(b===undefined){b=[]}else {b=[b]}}var g=b.length,f=Ext.util.Sorter,e=this.getModel?this.getModel():this.model,d,a,c;for(c=0;c>1;c=d(h,f[a]);if(c>=0){b=a+1}else {if(c<0){e=a-1}}}return b},reorder:function(a){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,a);this.fireEvent('sort',this)},sortByKey:function(a,b){this._sort('key',a,b||function(e,f){var c=String(e).toUpperCase(),d=String(f).toUpperCase();return c>d?1:cf){k=f}}}if(c){b.tasks=c}b.firing=!1;if(b.tasks.length){b.startTimer(k-g,Ext.Date.now())}if(j!==!1&&l.hasListeners.idle){l.fireEvent('idle')}},startTimer:function(b,e){var a=this,d=e+b,c=a.timerId;if(c&&a.nextExpires-d>a.interval){clearTimeout(c);c=null}if(!c){if(b=a.duration,b,c;if(h){d=a.duration;e=!0}b=this.collectTargetData(a,d,f,e);if(f){a.target.setAttr(b.anims[a.id].attributes,!0);g.collectTargetData(a,a.duration,f,e);a.paused=!0;b=a.target.target;if(a.target.isComposite){b=a.target.target.last()}c={};c[Ext.supports.CSS3TransitionEnd]=a.lastFrame;c.scope=a;c.single=!0;b.on(c)}return b},jumpToEnd:function(d){var a=this,b,c;if(!a.targetArr){a.targetArr={};c=!0}b=a.runAnim(d,!0);a.applyAnimAttrs(b,b.anims[d.id]);if(c){a.targetArr=null}},collectTargetData:function(a,d,f,e){var c=a.target.getId(),b=this.targetArr[c];if(!b){b=this.targetArr[c]={id:c,el:a.target,anims:{}}}b.anims[a.id]={id:a.id,anim:a,elapsed:d,isLastFrame:e,attributes:[{duration:a.duration,easing:f&&a.reverse?a.easingFn.reverse().toCSS3():a.easing,attrs:a.runAnim(d)}]};return b},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var c=this.targetArr,b,d,a,f,e;for(d in c){if(c.hasOwnProperty(d)){b=c[d];for(e in b.anims){if(b.anims.hasOwnProperty(e)){a=b.anims[e];f=a.anim;if(a.attributes&&f.isRunning()){b.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){f.lastFrame()}}}}}}}},1,0,0,0,0,[['queue',Ext.fx.Queue]],[Ext.fx,'Manager'],0);Ext.cmd.derive('Ext.fx.Animator',Ext.Base,{isAnimator:!0,duration:250,delay:0,delayStart:0,dynamic:!1,easing:'ease',running:!1,paused:!1,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(b){var a=this;b=Ext.apply(a,b||{});a.config=b;a.id=Ext.id(null,'ext-animator-');a.mixins.observable.constructor.call(a,b);a.timeline=[];a.createTimeline(a.keyframes);if(a.target){a.applyAnimator(a.target);Ext.fx.Manager.addAnim(a)}},sorter:function(a,b){return a.pct-b.pct},createTimeline:function(e){var d=this,b=[],k=d.to||{},g=d.duration,h,j,c,i,a,f;for(a in e){if(e.hasOwnProperty(a)&&d.animKeyFramesRE.test(a)){f={attrs:Ext.apply(e[a],k)};if(a==='from'){a=0}else {if(a==='to'){a=100}}f.pct=parseInt(a,10);b.push(f)}}Ext.Array.sort(b,d.sorter);i=b.length;for(c=0;c0},isRunning:function(){return !1}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Animator'],0);Ext.cmd.derive('Ext.fx.CubicBezier',Ext.Base,{singleton:!0,cubicBezierAtTime:function(l,d,e,i,j,h){var a=3*d,b=3*(i-d)-a,f=1-a-b,c=3*e,g=3*(j-e)-c,k=1-c-g;function sampleCurveX(c){return ((f*c+b)*c+a)*c}function solve(f,b){var a=solveCurveX(f,b);return ((k*a+g)*a+c)*a}function solveCurveX(n,q){var g,k,c,m,o,p;for(c=n,p=0;p<8;p++){m=sampleCurveX(c)-n;if(Math.abs(m)k){return k}while(gm){g=c}else {k=c}c=(k-g)/2+g}return c}return solve(l,1/(200*h))},cubicBezier:function(b,d,c,e){var a=function(a){return Ext.fx.CubicBezier.cubicBezierAtTime(a,b,d,c,e,1)};a.toCSS3=function(){return 'cubic-bezier('+[b,d,c,e].join(',')+')'};a.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-c,1-e,1-b,1-d)};return a}},0,0,0,0,0,0,[Ext.fx,'CubicBezier'],0);Ext.cmd.derive('Ext.fx.Easing',Ext.Base,function(){var b=Math,g=b.PI,a=b.pow,f=b.sin,e=b.sqrt,d=b.abs,c=1.70158;return {singleton:!0,linear:Ext.identityFn,ease:function(k){var c=0.07813-k/2,f=e(0.0066+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.25;return a(1-b,2)*3*b*0.1+(1-b)*3*b*b+b*b*b},easeIn:function(b){return a(b,1.7)},easeOut:function(b){return a(b,0.48)},easeInOut:function(k){var c=0.48-k/1.04,f=e(0.1734+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.5;return (1-b)*3*b*b+b*b*b},backIn:function(a){return a*a*((c+1)*a-c)},backOut:function(a){a=a-1;return a*a*((c+1)*a+c)+1},elasticIn:function(b){if(b===0||b===1){return b}var c=0.3,d=c/4;return a(2,-10*b)*f((b-d)*(2*g)/c)+1},elasticOut:function(a){return 1-Ext.fx.Easing.elasticIn(1-a)},bounceIn:function(a){return 1-Ext.fx.Easing.bounceOut(1-a)},bounceOut:function(a){var d=7.5625,b=2.75,c;if(a<1/b){c=d*a*a}else {if(a<2/b){a-=1.5/b;c=d*a*a+0.75}else {if(a<2.5/b){a-=2.25/b;c=d*a*a+0.9375}else {a-=2.625/b;c=d*a*a+0.984375}}}return c}}},0,0,0,0,0,0,[Ext.fx,'Easing'],function(c){var b=c.self,a=b.prototype;b.addMembers({'back-in':a.backIn,'back-out':a.backOut,'ease-in':a.easeIn,'ease-out':a.easeOut,'elastic-in':a.elasticIn,'elastic-out':a.elasticOut,'bounce-in':a.bounceIn,'bounce-out':a.bounceOut,'ease-in-out':a.easeInOut})});Ext.cmd.derive('Ext.fx.DrawPath',Ext.Base,{singleton:!0,pathToStringRE:/,?([achlmqrstvxz]),?/gi,pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,stopsRE:/^(\d+%?)$/,radian:Math.PI/180,is:function(b,a){a=String(a).toLowerCase();return a=='object'&&b===Object(b)||a=='undefined'&&typeof b==a||a=='null'&&b===null||a=='array'&&Array.isArray&&Array.isArray(b)||Object.prototype.toString.call(b).toLowerCase().slice(8,-1)==a},path2string:function(){return this.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},pathToString:function(a){return a.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},parsePathString:function(c){if(!c){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=[],b=this;if(b.is(c,'array')&&b.is(c[0],'array')){a=b.pathClone(c)}if(!a.length){String(c).replace(b.pathCommandRE,function(i,g,h){var e=[],f=g.toLowerCase();h.replace(b.pathValuesRE,function(b,a){if(a){e.push(+a)}});if(f=='m'&&e.length>2){a.push([g].concat(Ext.Array.splice(e,0,2)));f='l';g=g=='m'?'l':'L'}while(e.length>=d[f]){a.push([g].concat(Ext.Array.splice(e,0,d[f])));if(!d[f]){break}}})}a.toString=b.path2string;return a},pathClone:function(a){var d=[],c,f,b,e;if(!this.is(a,'array')||!this.is(a&&a[0],'array')){a=this.parsePathString(a)}for(b=0,e=a.length;b7){a[d].shift();var e=a[d];while(e.length){Ext.Array.splice(a,d++,0,['C'].concat(Ext.Array.splice(e,0,6)))}Ext.Array.erase(a,d,1);j=Math.max(c.length,b.length||0)}},m=function(d,f,e,g,a){if(d&&f&&d[a][0]=='M'&&f[a][0]!='M'){Ext.Array.splice(f,a,0,['M',g.x,g.y]);e.bx=0;e.by=0;e.x=d[a][1];e.y=d[a][2];j=Math.max(c.length,b.length||0)}},a,j,g,f,i,h;for(a=0,j=Math.max(c.length,b.length||0);a1){u=N(u);d=u*d;c=u*c}x=d*d;y=c*c;I=(X==v?-1:1)*N(R((x*y-x*j*j-y*i*i)/(x*j*j+y*i*i)));q=I*d*j/c+(m+e)/2;r=I*-c*i/d+(n+f)/2;b=M(((n-r)/c).toFixed(7));a=M(((f-r)/c).toFixed(7));b=ma){b=b-k*2}if(!v&&a>b){a=a-k*2}}else {b=o[0];a=o[1];q=o[2];r=o[3]}z=a-b;if(R(z)>Q){L=a;O=e;P=f;a=b+Q*(v&&a>b?1:-1);e=q+d*B(a);f=r+c*C(a);g=s.arc2curve(e,f,d,c,K,0,v,O,P,[a,L,q,r])}z=a-b;S=B(b);V=C(b);T=B(a);W=C(a);J=p.tan(z/4);D=4/3*d*J;E=4/3*c*J;F=[m,n];l=[m+D*V,n-E*S];G=[e+D*W,f-E*T];H=[e,f];l[0]=2*F[0]-l[0];l[1]=2*F[1]-l[1];if(o){return [l,G,H].concat(g)}else {g=[l,G,H].concat(g).join().split(',');A=[];U=g.length;for(h=0;h=d){b=d;f=!0}if(a.reverse){b=d-b}for(c in e){if(e.hasOwnProperty(c)){h=e[c];g=f?1:k(b/d);i[c]=j[c].set(h,g)}}a.frameCount++;return i},lastFrame:function(){var a=this,c=a.iterations,b=a.currentIteration;b++;if(b0},isRunning:function(){return this.paused===!1&&this.running===!0&&this.isAnimator!==!0}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Anim'],0);Ext.enableFx=!0;Ext.cmd.derive('Ext.util.Animate',Ext.Base,{mixinId:'animate',isAnimate:!0,animate:function(b){var a=this;if(Ext.fx.Manager.hasFxBlock(a.id)){return a}Ext.fx.Manager.queueFx(new Ext.fx.Anim(a.anim(b)));return this},anim:function(a){if(!Ext.isObject(a)){return a?{}:!1}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:!0},a)},getAnimationProps:function(){var b=this,a=b.layout;return a&&a.animate?a.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,'stopAnimation'),stopAnimation:function(){Ext.fx.Manager.stopAnimation(this.id);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!0});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!1});return this},hasActiveFx:Ext.Function.alias(Ext.util.Animate,'getActiveAnimation'),getActiveAnimation:function(){return Ext.fx.Manager.getActiveAnimation(this.id)}},0,0,0,0,0,0,[Ext.util,'Animate'],0);Ext.cmd.derive('Ext.dom.Fly',Ext.dom.Element,{alternateClassName:'Ext.dom.Element.Fly',validNodeTypes:{1:1,9:1,11:1},isFly:!0,constructor:function(a){this.dom=a;this.el=this},attach:function(b){var a=this;if(!b){return a.detach()}a.dom=b;if(!Ext.cache[b.id]){a.getData().isSynchronized=!1}return a},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,'Fly',Ext.dom.Element,'Fly'],function(b){var a={};b.cache=a;Ext.fly=function(c,e){var d=null,h=Ext.fly,f,g;e=e||h.caller&&h.caller.$name||'_global';c=Ext.getDom(c);if(c){f=c.nodeType;if(b.prototype.validNodeTypes[f]||!f&&c.window==c){d=Ext.cache[c.id];if(!d||d.dom!==c){d=a[e]||(a[e]=new b());d.dom=c;g=d.getData(!0);if(g){g.isSynchronized=!1}}}}return d}});Ext.cmd.derive('Ext.dom.CompositeElementLite',Ext.Base,{alternateClassName:['Ext.CompositeElementLite'],isComposite:!0,isLite:!0,statics:{importElementMethods:function(){var b=Ext.dom.Element,a=this.prototype;Ext.Object.each(b.prototype,function(b,c){if(typeof c==='function'&&!a[b]){a[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(a,b){if(b){this.elements=a||[]}else {this.elements=[];this.add(a)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(a,e){var d=this.elements,b,c;if(!a){return this}if(typeof a=='string'){a=Ext.fly(e||document).query(a)}else {if(a.isComposite){a=a.elements}else {if(!Ext.isIterable(a)){a=[a]}}}for(b=0,c=a.length;b-1){a=Ext.getDom(a);if(e){b=this.elements[c];b.parentNode.insertBefore(a,b);Ext.removeNode(b)}Ext.Array.splice(this.elements,c,1,a)}return this},clear:function(c){var d=this,b=d.elements,a=b.length-1;if(c){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(a,d){if(!a){return this}if(typeof a==='string'){a=Ext.dom.Element.selectorFunction(a,d)}var e=this.elements,c=a.length,b;for(b=0;b','','','',''].join(''),O=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,J=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,G=/\ssrc=([\'\"])(.*?)\1/i,v=/\S/,E=/\stype=([\'\"])(.*?)\1/i,I=/^-ms-/,B=/(-[a-z])/gi,L=function(b,a){return a.charAt(1).toUpperCase()},r='x-masked',k='x-masked-relative',m='x-mask-msg',D=/^body/i,l={},u=function(d){var c=d.getData(),b=c[q];if(b===undefined){c[q]=b=a.VISIBILITY}return b},f=b.createRange?b.createRange():null,z={INPUT:!0,TEXTAREA:!0};if(Ext.isIE8){var p=b.createElement('div'),c=[],M=Ext.Function.createBuffered(function(){var b=c.length,a;for(a=0;a"+Ext.String.format(y,a)+''));b.selectNode('.'+a+'-mc').appendChild(this.dom);return b},clean:function(g){var c=this,d=c.dom,e=c.getData(),a=d.firstChild,f=-1,b;if(e.isCleaned&&g!==!0){return c}while(a){b=a.nextSibling;if(a.nodeType===3){if(!v.test(a.nodeValue)){d.removeChild(a)}else {if(b&&b.nodeType===3){a.appendData(Ext.String.trim(b.data));d.removeChild(b);b=a.nextSibling;a.nodeIndex=++f}}}else {Ext.fly(a,'_clean').clean();a.nodeIndex=++f}a=b}e.isCleaned=!0;return c},empty:f?function(){var a=this.dom;if(a.firstChild){f.setStartBefore(a.firstChild);f.setEndAfter(a.lastChild);f.deleteContents()}}:function(){var a=this.dom;while(a.lastChild){a.removeChild(a.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(a){a=a||'';return this.setStyle({left:a,right:a,top:a,bottom:a,'z-index':'',position:'static'})},createProxy:function(b,e,f){b=typeof b==='object'?b:{tag:'div',role:'presentation',cls:b};var d=this,c=e?Ext.DomHelper.append(e,b,!0):Ext.DomHelper.insertBefore(d.dom,b,!0);c.setVisibilityMode(a.DISPLAY);c.hide();if(f&&d.setBox&&d.getBox){c.setBox(d.getBox())}return c},clearOpacity:function(){return this.setOpacity('')},clip:function(){var a=this,c=a.getData(),b;if(!c[g]){c[g]=!0;b=a.getStyle([j,h,i]);c[n]={o:b[j],x:b[h],y:b[i]};a.setStyle(j,e);a.setStyle(h,e);a.setStyle(i,e)}return a},destroy:function(){var b=this,a=b.dom,f=b.getData(),e,d;if(a&&b.isAnimate){b.stopAnimation()}arguments.callee.$previous.call(this);if(a&&Ext.isIE8&&a.window!=a&&a.nodeType!==9&&a.tagName!=='BODY'&&a.tagName!=='HTML'){c[c.length]=a;M()}if(f){e=f.maskEl;d=f.maskMsg;if(e){e.destroy()}if(d){d.destroy()}}},enableDisplayMode:function(c){var b=this;b.setVisibilityMode(a.DISPLAY);if(c!==undefined){b.getData()[K]=c}return b},fadeIn:function(c){var a=this,b=a.dom;a.animate(Ext.apply({},c,{opacity:1,internalListeners:{beforeanimate:function(d){var a=Ext.fly(b,'_anim');if(a.isStyle('display','none')){a.setDisplayed('')}else {a.show()}}}}));return this},fadeOut:function(a){var b=this,c=b.dom;a=Ext.apply({opacity:0,internalListeners:{afteranimate:function(d){if(c&&d.to.opacity===0){var b=Ext.fly(c,'_anim');if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}}}}},a);b.animate(a);return b},fixDisplay:function(){var a=this;if(a.isStyle(d,s)){a.setStyle(o,e);a.setStyle(d,a._getDisplay());if(a.isStyle(d,s)){a.setStyle(d,'block')}}},frame:function(b,c,a){var d=this,f=d.dom,e;b=b||'#C3DAF9';c=c||1;a=a||{};e=function(){var g=Ext.fly(f,'_anim'),i=this,d,e,h;g.show();d=g.getBox();e=Ext.getBody().createChild({role:'presentation',id:g.dom.id+'-anim-proxy',style:{position:'absolute','pointer-events':'none','z-index':35000,border:'0px solid '+b}});h=new Ext.fx.Anim({target:e,duration:a.duration||1000,iterations:c,from:{top:d.y,left:d.x,borderWidth:0,opacity:1,height:d.height,width:d.width},to:{top:d.y-20,left:d.x-20,borderWidth:10,opacity:0,height:d.height+40,width:d.width+40}});h.on('afteranimate',function(){e.destroy();i.end()})};d.animate({duration:Math.max(a.duration,500)*2||2000,listeners:{beforeanimate:{fn:e}},callback:a.callback,scope:a.scope});return d},getColor:function(h,f,c){var a=this.getStyle(h),b=c||c===''?c:'#',d,g,e=0;if(!a||/transparent|inherit/.test(a)){return f}if(/^r/.test(a)){a=a.slice(4,a.length-1).split(',');g=a.length;for(;e5?b.toLowerCase():f},getLoader:function(){var c=this,b=c.getData(),a=b.loader;if(!a){b.loader=a=new Ext.ElementLoader({target:c})}return a},getPositioning:function(c){var a=this.getStyle(['left','top','position','z-index']),b=this.dom;if(c){if(a.left==='auto'){a.left=b.offsetLeft+'px'}if(a.top==='auto'){a.top=b.offsetTop+'px'}}return a},ghost:function(a,e){var b=this,d=b.dom,c;a=a||'b';c=function(){var h=Ext.fly(d,'_anim'),g=h.getWidth(),f=h.getHeight(),c=h.getXY(),i=h.getPositioning(),b={opacity:0};switch(a){case 't':b.y=c[1]-f;break;case 'l':b.x=c[0]-g;break;case 'r':b.x=c[0]+g;break;case 'b':b.y=c[1]+f;break;case 'tl':b.x=c[0]-g;b.y=c[1]-f;break;case 'bl':b.x=c[0]-g;b.y=c[1]+f;break;case 'br':b.x=c[0]+g;b.y=c[1]+f;break;case 'tr':b.x=c[0]+g;b.y=c[1]-f;break;}this.to=b;this.on('afteranimate',function(){var b=Ext.fly(d,'_anim');if(b){b.hide();b.clearOpacity();b.setPositioning(i)}})};b.animate(Ext.applyIf(e||{},{duration:500,easing:'ease-out',listeners:{beforeanimate:c}}));return b},hide:function(a){if(typeof a==='string'){this.setVisible(!1,a);return this}this.setVisible(!1,this.anim(a));return this},highlight:function(k,b){var g=this,e=g.dom,j={},i,h,c,d,a,f;b=b||{};d=b.listeners||{};c=b.attr||'backgroundColor';j[c]=k||'ffff9c';if(!b.to){h={};h[c]=b.endColor||g.getColor(c,'ffffff','')}else {h=b.to}b.listeners=Ext.apply(Ext.apply({},d),{beforeanimate:function(){i=e.style[c];var g=Ext.fly(e,'_anim');g.clearOpacity();g.show();a=d.beforeanimate;if(a){f=a.fn||a;return f.apply(a.scope||d.scope||t,arguments)}},afteranimate:function(){if(e){e.style[c]=i}a=d.afteranimate;if(a){f=a.fn||a;f.apply(a.scope||d.scope||t,arguments)}}});g.animate(Ext.apply({},b,{duration:1000,easing:'ease-in',from:j,to:h}));return g},hover:function(d,e,c,b){var a=this;a.on('mouseenter',d,c||a.dom,b);a.on('mouseleave',e,c||a.dom,b);return a},initDD:function(c,b,a){var d=new Ext.dd.DD(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDProxy:function(c,b,a){var d=new Ext.dd.DDProxy(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDTarget:function(c,b,a){var d=new Ext.dd.DDTarget(Ext.id(this.dom),c,b);return Ext.apply(d,a)},isFocusable:function(){var a=this.dom,b=!1,c;if(a&&!a.disabled){c=a.nodeName;b=!!Ext.Element.naturallyFocusableTags[c]||(c==='A'||c==='LINK')&&!!a.href||a.getAttribute('tabIndex')!=null||a.contentEditable==='true';if(Ext.isIE8&&c==='INPUT'&&a.type==='hidden'){b=!1}b=b&&this.isVisible(!0)}return b},isInputField:function(){var a=this.dom,b=a.contentEditable;if(z[a.tagName]&&a.type!=='button'||(b===''||b==='true')){return !0}return !1},isTabbable:function(f){var c=this.dom,a=!1,e,d,b;if(c&&!c.disabled){e=c.nodeName;b=c.getAttribute('tabIndex');d=b!=null;b-=0;if(e==='A'||e==='LINK'){if(c.href){a=d&&b<0?!1:!0}else {if(c.contentEditable==='true'){a=!d||d&&b>=0?!0:!1}else {a=d&&b>=0?!0:!1}}}else {if(c.contentEditable==='true'||Ext.Element.naturallyTabbableTags[e]){a=d&&b<0?!1:!0}else {if(d&&b>=0){a=!0}}}if(Ext.isIE8&&e==='INPUT'&&c.type==='hidden'){a=!1}a=a&&(f||(!this.component||this.component.isVisible(!0))&&this.isVisible(!0))}return a},isMasked:function(g){var b=this,f=b.getData(),e=f.maskEl,d=f.maskMsg,c=!1,a;if(e&&e.isVisible()){if(d){d.center(b)}c=!0}else {if(g){a=b.findParentNode();if(a){return Ext.fly(a).isMasked(g)}}}return c},load:function(a){this.getLoader().load(a);return this},mask:function(h,f,i){var c=this,d=c.dom,g=c.getData(),a=g.maskEl,e;if(!(D.test(d.tagName)&&c.getStyle('position')==='static')){c.addCls(k)}if(a){a.destroy()}a=Ext.DomHelper.append(d,{role:'presentation',cls:'x-mask x-border-box',children:{role:'presentation',cls:f?m+' '+f:m,cn:{tag:'div',role:'presentation',cls:'x-mask-msg-inner',cn:{tag:'div',role:'presentation',cls:'x-mask-msg-text',html:h||''}}}},!0);e=Ext.get(a.dom.firstChild);g.maskEl=a;c.addCls(r);a.setDisplayed(!0);if(typeof h==='string'){e.setDisplayed(!0);e.center(c)}else {e.setDisplayed(!1)}if(d===b.body){a.addCls('x-mask-fixed')}c.saveTabbableState({skipSelf:d===b.body});if(Ext.isIE9m&&d!==b.body&&c.isStyle('height','auto')){a.setSize(undefined,i||c.getHeight())}return a},monitorMouseLeave:function(e,d,f){var c=this,b,a={mouseleave:function(a){if(Ext.isIE9m){a.enableIEAsync()}b=Ext.defer(d,e,f||c,[a])},mouseenter:function(){clearTimeout(b)}};c.on(a);return a},puff:function(a){var c=this,e=c.dom,d,b=c.getBox(),f=c.getStyle(['width','height','left','right','top','bottom','position','z-index','font-size','opacity'],!0);a=Ext.applyIf(a||{},{easing:'ease-out',duration:500,useDisplay:!1});d=function(){var c=Ext.fly(e,'_anim');c.clearOpacity();c.show();this.to={width:b.width*2,height:b.height*2,x:b.x-b.width/2,y:b.y-b.height/2,opacity:0,fontSize:'200%'};this.on('afteranimate',function(){var b=Ext.fly(e,'_anim');if(b){if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}b.setStyle(f);Ext.callback(a.callback,a.scope)}})};c.animate({duration:a.duration,easing:a.easing,listeners:{beforeanimate:{fn:d}}});return c},selectable:function(){var b=this;b.dom.unselectable='';b.removeCls(a.unselectableCls);b.addCls(a.selectableCls);return b},setCapture:function(){var a=this.dom;if(Ext.isIE9m&&a.setCapture){a.setCapture()}},setHeight:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{height:c}},a))}return b},setHorizontal:function(){var a=this,b=a.verticalCls;delete a.vertical;if(b){delete a.verticalCls;a.removeCls(b)}delete a.setWidth;delete a.setHeight;if(!Ext.isIE8){delete a.getWidth;delete a.getHeight}delete a.styleHooks},updateText:function(d){var e=this,c,a;if(c){a=c.firstChild;if(!a||(a.nodeType!==3||a.nextSibling)){a=b.createTextNode();e.empty();c.appendChild(a)}if(d){a.data=d}}},setHtml:function(c,i,g,d){var a=this,f,e,h;if(!a.dom){return a}c=c||'';e=a.dom;if(i!==!0){e.innerHTML=c;Ext.callback(g,a);return a}f=Ext.id();c+='';h=Ext.interval(function(){var o,e,l,k,j,n,m;if(!(n=b.getElementById(f))){return !1}clearInterval(h);Ext.removeNode(n);o=Ext.getHead().dom;while(e=O.exec(c)){l=e[1];k=l?l.match(G):!1;if(k&&k[2]){m=b.createElement('script');m.src=k[2];j=l.match(E);if(j&&j[2]){m.type=j[2]}o.appendChild(m)}else {if(e[2]&&e[2].length>0){if(d){Ext.functionFactory(e[2]).call(d)}else {Ext.globalEval(e[2])}}}}Ext.callback(g,d||a)},20);e.innerHTML=c.replace(J,'');return a},setOpacity:function(c,b){var a=this;if(!a.dom){return a}if(!b||!a.anim){a.setStyle('opacity',c)}else {if(typeof b!='object'){b={duration:350,easing:'ease-in'}}a.animate(Ext.applyIf({to:{opacity:c}},b))}return a},setPositioning:function(a){return this.setStyle(a)},setVertical:function(e,d){var b=this,c=a.prototype;b.vertical=!0;if(d){b.addCls(b.verticalCls=d)}b.setWidth=c.setHeight;b.setHeight=c.setWidth;if(!Ext.isIE8){b.getWidth=c.getHeight;b.getHeight=c.getWidth}b.styleHooks=e===270?c.verticalStyleHooks270:c.verticalStyleHooks90},setSize:function(c,e,d){var b=this;if(Ext.isObject(c)){d=e;e=c.height;c=c.width}if(!d||!b.anim){b.dom.style.width=a.addUnits(c);b.dom.style.height=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}}else {if(d===!0){d={}}b.animate(Ext.applyIf({to:{width:c,height:e}},d))}return b},setVisible:function(f,g){var b=this,h=b.dom,c=u(b);if(typeof g==='string'){switch(g){case d:c=a.DISPLAY;break;case o:c=a.VISIBILITY;break;case A:c=a.OFFSETS;break;case H:c=a.CLIP;break;}b.setVisibilityMode(c);g=!1}if(!g||!b.anim){if(c===a.DISPLAY){return b.setDisplayed(f)}else {if(c===a.OFFSETS){b[f?'removeCls':'addCls'](N)}else {if(c===a.CLIP){b[f?'removeCls':'addCls'](w)}else {if(c===a.VISIBILITY){b.fixDisplay();h.style.visibility=f?'':e}}}}}else {if(f){b.setOpacity(0.01);b.setVisible(!0)}if(!Ext.isObject(g)){g={duration:350,easing:'ease-in'}}b.animate(Ext.applyIf({callback:function(){if(!f){Ext.fly(h).setVisible(!1).setOpacity(1)}},to:{opacity:f?1:0}},g))}b.getData()[x]=f;if(b.shadow||b.shim){b.setUnderlaysVisible(f)}return b},setWidth:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{width:c}},a))}return b},setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(b,a){var c=this;if(!a||!c.anim){arguments.callee.$previous.call(this,b)}else {if(!Ext.isObject(a)){a={}}c.animate(Ext.applyIf({to:{x:b[0],y:b[1]}},a))}return this},setY:function(b,a){return this.setXY([this.getX(),b],a)},show:function(a){if(typeof a==='string'){this.setVisible(!0,a);return this}this.setVisible(!0,this.anim(a));return this},slideIn:function(a,c,d){var b=this,g=b.dom,h=g.style,j,e,f,i;a=a||'t';c=c||{};j=function(){var p=this,o=c.listeners,m=Ext.fly(g,'_anim'),j,n,l,k;if(!d){m.fixDisplay()}j=m.getBox();if((a=='t'||a=='b')&&j.height===0){j.height=g.scrollHeight}else {if((a=='l'||a=='r')&&j.width===0){j.width=g.scrollWidth}}n=m.getStyle(['width','height','left','right','top','bottom','position','z-index'],!0);m.setSize(j.width,j.height);if(c.preserveScroll){f=m.cacheScrollValues()}k=m.wrap({role:'presentation',id:Ext.id()+'-anim-wrap-for-'+m.dom.id,style:{visibility:d?'visible':'hidden'}});i=k.dom.parentNode;k.setPositioning(m.getPositioning());if(k.isStyle('position','static')){k.position('relative')}m.clearPositioning('auto');k.clip();if(f){f()}m.setStyle({visibility:'',position:'absolute'});if(d){k.setSize(j.width,j.height)}switch(a){case 't':l={from:{width:j.width+'px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';break;case 'l':l={from:{width:'0px',height:j.height+'px'},to:{width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'r':l={from:{x:j.x+j.width,width:'0px',height:j.height+'px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'b':l={from:{y:j.y+j.height,width:j.width+'px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};break;case 'tl':l={from:{x:j.x,y:j.y,width:'0px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('l');break;case 'bl':l={from:{y:j.y+j.height,width:'0px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('l');break;case 'br':l={from:{x:j.x+j.width,y:j.y+j.height,width:'0px',height:'0px'},to:{x:j.x,y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('r');break;case 'tr':l={from:{x:j.x+j.width,width:'0px',height:'0px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('r');break;}k.show();e=Ext.apply({},c);delete e.listeners;e=new Ext.fx.Anim(Ext.applyIf(e,{target:k,duration:500,easing:'ease-out',from:d?l.to:l.from,to:d?l.from:l.to}));e.on('afteranimate',function(){var b=Ext.fly(g,'_anim');b.setStyle(n);if(d){if(c.useDisplay){b.setDisplayed(!1)}else {b.hide()}}if(k.dom){if(k.dom.parentNode){k.dom.parentNode.insertBefore(b.dom,k.dom)}else {i.appendChild(b.dom)}k.destroy()}if(f){f()}p.end()});if(o){e.on(o)}};b.animate({duration:c.duration?Math.max(c.duration,500)*2:1000,listeners:{beforeanimate:j}});return b},slideOut:function(a,b){return this.slideIn(a,b,!0)},swallowEvent:function(a,f){var b=this,c,d,e=function(b){b.stopPropagation();if(f){b.preventDefault()}};if(Ext.isArray(a)){d=a.length;for(c=0;c0){a.setAttribute(e,++f)}else {if(a.hasAttribute('tabIndex')){a.setAttribute(g,a.getAttribute('tabIndex'))}else {a.setAttribute(g,'none')}a.setAttribute('tabIndex','-1');a.setAttribute(e,'1')}}return c},restoreTabbableState:function(k,j){var g=this.dom,c=Ext.Element.tabbableSavedCounterAttribute,e=Ext.Element.tabbableSavedValueAttribute,b=[],h,f,b,a,d,i;if(!g){return this}if(!j){b=Ext.Array.from(g.querySelectorAll('['+c+']'))}if(!k){b.unshift(g)}for(d=0,i=b.length;d1){a.setAttribute(c,--f);continue}h=a.getAttribute(e);if(h==='none'){a.removeAttribute('tabIndex')}else {a.setAttribute('tabIndex',h)}a.removeAttribute(e);a.removeAttribute(c)}return b}},deprecated:{'4.0':{methods:{pause:function(b){var a=this;Ext.fx.Manager.setFxDefaults(a.id,{delay:b});return a},scale:function(c,a,b){this.animate(Ext.apply({},b,{width:c,height:a}));return this},shift:function(a){this.animate(a);return this}}},'4.2':{methods:{moveTo:function(b,c,a){return this.setXY([b,c],a)},setBounds:function(d,e,c,b,a){return this.setBox({x:d,y:e,width:c,height:b},a)},setLeftTop:function(d,e){var b=this,c=b.dom.style;c.left=a.addUnits(d);c.top=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocation:function(b,c,a){return this.setXY([b,c],a)}}},'5.0':{methods:{getAttributeNS:function(a,b){return this.getAttribute(b,a)},getCenterXY:function(){return this.getAlignToXY(b,'c-c')},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(C))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(F))||0},getStyleSize:function(){var d=this,e=this.dom,h=e===b||e===b.body,c,g,f;if(h){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}c=d.getStyle(['height','width'],!0);if(c.width&&c.width!=='auto'){g=parseFloat(c.width)}if(c.height&&c.height!=='auto'){f=parseFloat(c.height)}return {width:g||d.getWidth(!0),height:f||d.getHeight(!0)}},isBorderBox:function(){return !0},isDisplayed:function(){return !this.isStyle('display','none')},focusable:'isFocusable'}}}}}(),function(){var g=Ext.dom.Element,a=g.prototype,t=!Ext.isIE8,f=document,q=f.defaultView,p=/alpha\(opacity=(.*)\)/i,w=/^\s+|\s+$/g,d=a.styleHooks,e=Ext.supports,c,b,l,m,i,j,n;a._init(g);delete a._init;Ext.plainTableCls='x-table-plain';Ext.plainListCls='x-list-plain';if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!e.Opacity&&Ext.isIE){Ext.apply(d.opacity,{get:function(d){var c=d.style.filter,b,a;if(c.match){b=c.match(p);if(b){a=parseFloat(b[1]);if(!isNaN(a)){return a?a/100:0}}}return 1},set:function(d,a){var b=d.style,c=b.filter.replace(p,'').replace(w,'');b.zoom=1;if(typeof a==='number'&&a>=0&&a<1){a*=100;b.filter=c+(c.length?' ':'')+'alpha(opacity='+a+')'}else {b.filter=c}}})}if(!e.matchesSelector){var r=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,v=/\-/g,h,s=function(a,c){var b=new RegExp('(?:^|\\s+)'+c.replace(v,'\\-')+'(?:\\s+|$)');if(a&&a!=='*'){a=a.toUpperCase();return function(d){return d.tagName===a&&b.test(d.className)}}return function(d){return b.test(d.className)}},u=function(a){a=a.toUpperCase();return function(b){return b.tagName===a}},k={};a.matcherCache=k;a.is=function(a){if(!a){return !0}var b=this.dom,g,e,d,c,j,l,i;if(b.nodeType!==1){return !1}if(!(d=Ext.isFunction(a)?a:k[a])){if(!(e=a.match(r))){c=b.parentNode;if(!c){j=!0;c=h||(h=f.createDocumentFragment());h.appendChild(b)}l=Ext.Array.indexOf(Ext.fly(c,'_is').query(a),b)!==-1;if(j){h.removeChild(b)}return l}i=e[1];g=e[2];k[a]=d=g?s(i,g):u(i)}return d(b)}}if(!q||!q.getComputedStyle){a.getStyle=function(o,p){var j=this,e=j.dom,n=typeof o!=='string',a=o,i=a,r=1,m=p,l=j.styleHooks,q,h,d,c,f,b,k;if(n){d={};a=i[0];k=0;if(!(r=i.length)){return d}}if(!e||e.documentElement){return d||''}h=e.style;if(p){b=h}else {b=e.currentStyle;if(!b){m=!0;b=h}}do{c=l[a];if(!c){l[a]=c={name:g.normalize(a)}}if(c.get){f=c.get(e,j,m,b)}else {q=c.name;f=b[q]}if(!n){return f}d[a]=f;a=i[++k]}while(k=9)){a.getAttribute=function(a,c){var d=this.dom,b;if(c){b=typeof d[c+':'+a];if(b!=='undefined'&&b!=='unknown'){return d[c+':'+a]||null}return null}if(a==='for'){a='htmlFor'}return d[a]||null}}Ext.onInternalReady(function(){var o=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,h=[],p=a.setWidth,n=a.setHeight,m=a.setSize,q=/^\d+(?:\.\d*)?px$/i,i,l,k,j;if(e.FixedTableWidthBug){d.width={name:'width',set:function(c,e,f){var a=c.style,b=f._needsTableWidthFix,d=a.display;if(b){a.display='none'}a.width=e;if(b){c.scrollWidth;a.display=d}}};a.setWidth=function(g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}p.call(a,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a};a.setSize=function(h,g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}m.call(a,h,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a}}if(Ext.isIE8){d.height={name:'height',set:function(f,b,e){var a=e.component,d,c;if(a&&a._syncFrameHeight&&e===a.el){c=a.frameBody.dom.style;if(q.test(b)){d=a.getFrameInfo();if(d){c.height=parseInt(b,10)-d.height+'px'}}else {if(!b||b==='auto'){c.height=''}}}f.style.height=b}};a.setHeight=function(b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return n.call(this,b,e)};a.setSize=function(f,b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return m.call(this,f,b,e)}}Ext.getDoc().on('selectstart',function(h,a){var e=g.selectableCls,d=g.unselectableCls,b=a&&a.tagName;b=b&&b.toLowerCase();if(b==='input'||b==='textarea'){return}while(a&&a.nodeType===1&&a!==f.documentElement){var c=Ext.fly(a);if(c.hasCls(e)){return}if(c.hasCls(d)){h.stopEvent();return}a=a.parentNode}});function fixTransparent(d,e,c,b){var a=b[this.name]||'';return o.test(a)?'transparent':a}function makeSelectionRestoreFn(a,b,c){return function(){a.selectionStart=b;a.selectionEnd=c}}function getRightMarginFixCleaner(i){var h=e.DisplayChangeInputSelectionBug,f=e.DisplayChangeTextAreaSelectionBug,a,d,b,c;if(h||f){a=g.getActiveElement();d=a&&a.tagName;if(f&&d==='TEXTAREA'||h&&d==='INPUT'&&a.type==='text'){if(Ext.fly(i).isAncestor(a)){b=a.selectionStart;c=a.selectionEnd;if(Ext.isNumber(b)&&Ext.isNumber(c)){return makeSelectionRestoreFn(a,b,c)}}}}return Ext.emptyFn}function fixRightMargin(c,g,f,e){var b=e.marginRight,a,d;if(b!=='0px'){a=c.style;d=a.display;a.display='inline-block';b=(f?e:c.ownerDocument.defaultView.getComputedStyle(c,null)).marginRight;a.display=d}return b}function fixRightMarginAndInputFocus(b,h,g,f){var c=f.marginRight,a,d,e;if(c!=='0px'){a=b.style;d=getRightMarginFixCleaner(b);e=a.display;a.display='inline-block';c=(g?f:b.ownerDocument.defaultView.getComputedStyle(b,'')).marginRight;a.display=e;d()}return c}if(!e.RightMargin){d.marginRight=d['margin-right']={name:'marginRight',get:e.DisplayChangeInputSelectionBug||e.DisplayChangeTextAreaSelectionBug?fixRightMarginAndInputFocus:fixRightMargin}}if(!e.TransparentColor){i=['background-color','border-color','color','outline-color'];for(l=i.length;l--;){k=i[l];j=g.normalize(k);d[k]=d[j]={name:j,get:fixTransparent}}}a.verticalStyleHooks90=c=Ext.Object.chain(d);a.verticalStyleHooks270=b=Ext.Object.chain(d);c.width=d.height||{name:'height'};c.height=d.width||{name:'width'};c['margin-top']={name:'marginLeft'};c['margin-right']={name:'marginTop'};c['margin-bottom']={name:'marginRight'};c['margin-left']={name:'marginBottom'};c['padding-top']={name:'paddingLeft'};c['padding-right']={name:'paddingTop'};c['padding-bottom']={name:'paddingRight'};c['padding-left']={name:'paddingBottom'};c['border-top']={name:'borderLeft'};c['border-right']={name:'borderTop'};c['border-bottom']={name:'borderRight'};c['border-left']={name:'borderBottom'};b.width=d.height||{name:'height'};b.height=d.width||{name:'width'};b['margin-top']={name:'marginRight'};b['margin-right']={name:'marginBottom'};b['margin-bottom']={name:'marginLeft'};b['margin-left']={name:'marginTop'};b['padding-top']={name:'paddingRight'};b['padding-right']={name:'paddingBottom'};b['padding-bottom']={name:'paddingLeft'};b['padding-left']={name:'paddingTop'};b['border-top']={name:'borderRight'};b['border-right']={name:'borderBottom'};b['border-bottom']={name:'borderLeft'};b['border-left']={name:'borderTop'};if(!Ext.scopeCss){h.push('x-body')}if(e.Touch){h.push('x-touch')}if(Ext.isIE&&Ext.isIE9m){h.push('x-ie','x-ie9m');h.push('x-ie8p');if(Ext.isIE8){h.push('x-ie8')}else {h.push('x-ie9','x-ie9p')}if(Ext.isIE8m){h.push('x-ie8m')}}if(Ext.isIE10){h.push('x-ie10')}if(Ext.isIE10p){h.push('x-ie10p')}if(Ext.isIE11){h.push('x-ie11')}if(Ext.isGecko){h.push('x-gecko')}if(Ext.isOpera){h.push('x-opera')}if(Ext.isOpera12m){h.push('x-opera12m')}if(Ext.isWebKit){h.push('x-webkit')}if(Ext.isSafari){h.push('x-safari')}if(Ext.isChrome){h.push('x-chrome')}if(Ext.isMac){h.push('x-mac')}if(Ext.isLinux){h.push('x-linux')}if(!e.CSS3BorderRadius){h.push('x-nbr')}if(!e.CSS3LinearGradient){h.push('x-nlg')}if(e.Touch){h.push('x-touch')}Ext.getBody().addCls(h)},null,{priority:1500})});Ext.cmd.derive('Ext.GlobalEvents',Ext.mixin.Observable,{alternateClassName:'Ext.globalEvents',observableType:'global',singleton:!0,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},attachListeners:function(){Ext.get(window).on('resize',this.fireResize,this,{buffer:this.resizeBuffer});Ext.getDoc().on('mousedown',this.fireMouseDown,this)},fireMouseDown:function(a){this.fireEvent('mousedown',a)},fireResize:function(){var a=this,d=Ext.Element,c=d.getViewportWidth(),b=d.getViewportHeight();if(a.curHeight!==b||a.curWidth!==c){a.curHeight=b;a.curWidth=c;a.fireEvent('resize',c,b)}}},1,0,0,0,0,0,[Ext,'GlobalEvents',Ext,'globalEvents'],function(a){Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)}});Ext.define('Ext.overrides.GlobalEvents',{override:'Ext.GlobalEvents',deprecated:{5:{methods:{addListener:function(a,d,i,f,h,g,e){var c,b;if(a==='ready'){b=d}else {if(typeof a!=='string'){for(c in a){if(c==='ready'){b=a[c]}}}}if(b){Ext.onReady(b)}this.callParent([a,d,i,f,h,g,e])}}}}});Ext.USE_NATIVE_JSON=!1;Ext.JSON=new function(){var me=this,hasNative=window.JSON&&JSON.toString()==='[object JSON]',useHasOwn=!!{}.hasOwnProperty,pad=function(a){return a<10?'0'+a:a},doDecode=function(json){return eval('('+json+')')},doEncode=function(a,b){if(a===null||a===undefined){return 'null'}else {if(Ext.isDate(a)){return me.encodeDate(a)}else {if(Ext.isString(a)){if(Ext.isMSDate(a)){return me.encodeMSDate(a)}else {return me.encodeString(a)}}else {if(typeof a==='number'){return isFinite(a)?String(a):'null'}else {if(Ext.isBoolean(a)){return String(a)}else {if(a.toJSON){return a.toJSON()}else {if(Ext.isArray(a)){return encodeArray(a,b)}else {if(Ext.isObject(a)){return encodeObject(a,b)}else {if(typeof a==='function'){return 'null'}}}}}}}}}return 'undefined'},m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\','\v':'\\u000b'},charToReplace=/[\\\"\x00-\x1f\x7f-\uffff]/g,encodeString=function(a){return '"'+a.replace(charToReplace,function(b){var c=m[b];return typeof c==='string'?c:'\\u'+('0000'+b.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(a){return '"'+a+'"'},encodeArrayPretty=function(e,d){var f=e.length,c=d+' ',g=','+c,a=['[',c],b;for(b=0;b0}}return c},onBindNotify:function(b,c,a){a.syncing=a.syncing+1||1;this[a._config.names.set](b);--a.syncing},removeBindings:function(){var c=this,a,d,b;if(!c.destroying){a=c.getBind();if(a&&typeof a!=='string'){for(d in a){b=a[d];b.destroy();b._config=b.getTemplateScope=null}}}c.setBind(null)},updateSession:function(a){var b=this.getInherited();if(a){b.session=a}else {delete b.session}},updateViewModel:function(a){var c=this.getInherited(),b=this.getController();if(a){c.viewModel=a;a.setView(this);if(b){b.initViewModel(a)}}else {delete c.viewModel}}}},0,0,0,0,0,0,[Ext.mixin,'Bindable'],0);Ext.cmd.derive('Ext.mixin.ComponentDelegation',Ext.Mixin,{mixinConfig:{id:'componentDelegation'},privates:{addDelegatedListener:function(c,k,j,a,d,i,h){var b=this,e,g,f;d=d||a.order;if(d){f=a&&a.priority;if(!f){a=a?Ext.Object.chain(a):{};a.priority=b.$orderToPriority[d]}}e=b.$delegatedEvents||(b.$delegatedEvents={});g=e[c]||(e[c]=new Ext.util.Event(b,c));if(g.addListener(k,j,a,i,h)){b.$hasDelegatedListeners._incr_(c)}},clearDelegatedListeners:function(){var e=this,a=e.$delegatedEvents,b,c,d;if(a){for(b in a){c=a[b];d=c.listeners.length;c.clearListeners();e.$hasDelegatedListeners._decr_(b,d);delete a[b]}}},doFireDelegatedEvent:function(f,g){var e=this,d=!0,a,b,c;if(e.$hasDelegatedListeners[f]){a=e.getRefOwner();while(a){b=a.$delegatedEvents;if(b){c=b[f];if(c){d=c.fireDelegated(e,g);if(d===!1){break}}}a=a.getRefOwner()}}return d},removeDelegatedListener:function(c,f,e){var d=this,b=d.$delegatedEvents,a;if(b){a=b[c];if(a&&a.removeListener(f,e)){d.$hasDelegatedListeners._decr_(c);if(a.listeners.length===0){delete b[c]}}}}},onClassMixedIn:function(a){function HasListeners(){}a.prototype.HasListeners=a.HasListeners=HasListeners;HasListeners.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,'ComponentDelegation'],function(a){function HasDelegatedListeners(){}a.HasDelegatedListeners=HasDelegatedListeners;HasDelegatedListeners.prototype=a.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()});Ext.cmd.derive('Ext.Widget',Ext.Evented,{isWidget:!0,element:{reference:'element'},observableType:'component',cachedConfig:{style:null},config:{userCls:null},eventedConfig:{width:null,height:null},template:[],constructor:function(c){var a=this,b;a.initId(c);a.initElement();a.mixins.observable.constructor.call(a,c);Ext.ComponentManager.register(a);b=a.getController();if(b){b.init(a)}},afterCachedConfig:function(){var c=this,j=c.self.prototype,f=c.referenceList,i=c.renderElement,d,h,a,b,g,e;j.renderTemplate=d=document.createDocumentFragment();d.appendChild(i.clone(!0,!0));e=d.querySelectorAll('[id]');for(a=0,b=e.length;a]+>/gi,stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},undef:function(a){return a!==undefined?a:''},defaultValue:function(a,b){return a!==undefined&&a!==''?a:b},substr:'ab'.substr(-1)!='b'?function(d,a,c){var b=String(d);return a<0?b.substr(Math.max(b.length+a,0),c):b.substr(a,c)}:function(c,b,a){return String(c).substr(b,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(b){return a.currency(b,'$',2)},currency:function(b,f,c,h){var d='',e=',0',g=0;b=b-0;if(b<0){b=-b;d='-'}c=Ext.isDefined(c)?c:a.currencyPrecision;e+=c>0?'.':'';for(;gb){a=a.substring(a.length-b)}}while(a.length2){}else {if(e.length===2){d=e[1].length;f=e[1].match(a.hashRe);if(f){m=f[0].length;l='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+m+'}$")'}}}b=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts'+(h?',thousandSeparator,thousands=[],j,n,i':'')+(i?',formatString="'+c+'",formatPattern=/[\\d,\\.#]+/':'')+',trailingZeroes;return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";neg=v<0;','absVal=Math.abs(v);','fnum=Ext.Number.toFixed(absVal, '+d+');',l,';'];if(h){if(d){b[b.length]='parts=fnum.split(".");';b[b.length]='fnum=parts[0];'}b[b.length]='if(absVal>=1000) {';b[b.length]='thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i')},capitalize:Ext.String.capitalize,uncapitalize:Ext.String.uncapitalize,ellipsis:Ext.String.ellipsis,escape:Ext.String.escape,escapeRegex:Ext.String.escapeRegex,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,toggle:Ext.String.toggle,trim:Ext.String.trim,parseBox:function(b){b=b||0;if(typeof b==='number'){return {top:b,right:b,bottom:b,left:b}}var a=b.split(' '),c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else {if(c===2){a[2]=a[0];a[3]=a[1]}else {if(c===3){a[3]=a[1]}}}return {top:parseInt(a[0],10)||0,right:parseInt(a[1],10)||0,bottom:parseInt(a[2],10)||0,left:parseInt(a[3],10)||0}}}},1,0,0,0,0,0,[Ext.util,'Format'],0);Ext.cmd.derive('Ext.Template',Ext.Base,{inheritableStatics:{from:function(a,b){a=Ext.getDom(a);return new this(a.value||a.innerHTML,b||'')}},useEval:Ext.isGecko,constructor:function(g){var d=this,c=arguments,f=[],e,b=c.length,a;d.initialConfig={};if(b===1&&Ext.isArray(g)){c=g;b=c.length}if(b>1){for(e=0;e]*)\>)|(?:<\/tpl>)/g,actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g,propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/,defaultRe:/^\s*default\s*$/,elseRe:/^\s*else\s*$/},1,0,0,0,0,0,[Ext.util,'XTemplateParser'],0);Ext.cmd.derive('Ext.util.XTemplateCompiler',Ext.util.XTemplateParser,{useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:!0,propNameRe:/^[\w\d\$]*$/,compile:function(c){var a=this,b=a.generate(c);return a.useEval?a.evalTpl(b):(new Function('Ext',b))(Ext)},generate:function(d){var a=this,b='var fm=Ext.util.Format,ts=Object.prototype.toString;',c;a.maxLevel=0;a.body=['var c0=values, a0='+a.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(a.definitions){if(typeof a.definitions==='string'){a.definitions=[a.definitions,b]}else {a.definitions.push(b)}}else {a.definitions=[b]}a.switches=[];a.parse(d);a.definitions.push((a.useEval?'$=':'return')+' function ('+a.fnArgs+') {',a.body.join(''),'}');c=a.definitions.join('\n');a.definitions.length=a.body.length=a.switches.length=0;delete a.definitions;delete a.body;delete a.switches;return c},doText:function(a){var b=this,c=b.body;a=a.replace(b.aposRe,"\\'").replace(b.newLineRe,'\\n');if(b.useIndex){c.push("out[out.length]='",a,"'\n")}else {c.push("out.push('",a,"')\n")}},doExpr:function(b){var a=this.body;a.push('if ((v='+b+') != null) out');if(this.useIndex){a.push("[out.length]=v+''\n")}else {a.push(".push(v+'')\n")}},doTag:function(b){var a=this.parseTag(b);if(a){this.doExpr(a)}else {this.doText('{'+b+'}')}},doElse:function(){this.body.push('} else {\n')},doEval:function(a){this.body.push(a,'\n')},doIf:function(b,c){var a=this;if(b==='.'){a.body.push('if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('if (',a.parseTag(b),') {\n')}else {a.body.push('if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==='.'){a.body.push('else if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('} else if (',a.parseTag(b),') {\n')}else {a.body.push('} else if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doSwitch:function(b){var a=this,c;if(b==='.'||b==='#'){c=b==='.'?'values':'xindex';a.body.push('switch (',c,') {\n')}else {if(a.propNameRe.test(b)){a.body.push('switch (',a.parseTag(b),') {\n')}else {a.body.push('switch (',a.addFn(b),a.callFn,') {\n')}}a.switches.push(0)},doCase:function(e){var a=this,c=Ext.isArray(e)?e:[e],d=a.switches.length-1,f,b;if(a.switches[d]){a.body.push('break;\n')}else {a.switches[d]++}for(b=0,d=c.length;b1){ out.push("',d.between,'"); } \n')}},doForEach:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else {if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}}if(b.maxLevel1){ out.push("',d.between,'"); } \n')}},createArrayTest:'isArray' in Array?function(a){return 'Array.isArray(c'+a+')'}:function(a){return 'ts.call(c'+a+')==="[object Array]"'},doExec:function(d,e){var a=this,c='f'+a.definitions.length,b=a.guards[a.strict?0:1];a.definitions.push('function '+c+'('+a.fnArgs+') {',b.doTry,' var $v = values; with($v) {',' '+d,' }',b.doCatch,'}');a.body.push(c+a.callFn+'\n')},guards:[{doTry:'',doCatch:''},{doTry:'try { ',doCatch:' } catch(e) {\n}'}],addFn:function(c){var a=this,b='f'+a.definitions.length,d=a.guards[a.strict?0:1];if(c==='.'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return values','}')}else {if(c==='..'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return parent','}')}else {a.definitions.push('function '+b+'('+a.fnArgs+') {',d.doTry,' var $v = values; with($v) {',' return('+c+')',' }',d.doCatch,'}')}}return b},parseTag:function(h){var e=this,f=e.tagRe.exec(h),a,c,d,g,b;if(!f){return null}a=f[1];c=f[2];d=f[3];g=f[4];if(a=='.'){if(!e.validTypes){e.definitions.push('var validTypes={string:1,number:1,boolean:1};');e.validTypes=!0}b='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else {if(a=='#'){b='xindex'}else {if(a=='$'){b='xkey'}else {if(a.substr(0,7)=='parent.'){b=a}else {if(isNaN(a)&&a.indexOf('-')==-1&&a.indexOf('.')!=-1){b='values.'+a}else {b="values['"+a+"']"}}}}}if(g){b='('+b+g+')'}if(c&&e.useFormat){d=d?','+d:'';if(c.substr(0,5)!='this.'){c='fm.'+c+'('}else {c+='('}}else {return b}return c+b+d+')'},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},0,0,0,0,0,0,[Ext.util,'XTemplateCompiler'],function(){var a=this.prototype;a.fnArgs='out,values,parent,xindex,xcount,xkey';a.callFn='.call(this,'+a.fnArgs+')'});Ext.cmd.derive('Ext.XTemplate',Ext.Template,{isXTemplate:!0,emptyObj:{},fn:null,strict:!1,apply:function(b,a,d,c){return this.applyOut(b,[],a,d,c).join('')},applyOut:function(g,d,f,c,b){var a=this,e;if(!a.fn){e=new Ext.util.XTemplateCompiler({useFormat:a.disableFormats!==!0,definitions:a.definitions,strict:a.strict});a.fn=e.compile(a.html)}c=c||1;b=b||1;if(a.strict){a.fn(d,g,f||a.emptyObj,c,b)}else {try{a.fn(d,g,f||a.emptyObj,c,b)}catch(h){}}return d},compile:function(){return this},statics:{getTpl:function(c,d){var b=c[d],a;if(b&&!b.isTemplate){b=Ext.ClassManager.dynInstantiate('Ext.XTemplate',b);if(c.hasOwnProperty(d)){a=c}else {for(a=c.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=b;b.owner=a}return b||null}}},0,0,0,0,0,0,[Ext,'XTemplate'],0);Ext.cmd.derive('Ext.app.EventDomain',Ext.Base,{statics:{instances:{}},isEventDomain:!0,isInstance:!1,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(l,h,m){h=Ext.canonicalEventName(h);var j=this,n=j.bus,b=n[h],c,a,i,g,e,k,d,f;if(!b){return !0}for(c in b){if(b.hasOwnProperty(c)&&j.match(l,c,j.controller)){a=b[c];for(i in a){if(a.hasOwnProperty(i)){g=a[i];if(g.controller.isActive()){e=g.list;k=e.length;for(d=0;da.clientWidth}}if(e==='scroll'){h=!0}else {if(e){h=a.scrollHeight>a.clientHeight}}if(g){i=f.height}if(h){j=f.width}}}return {width:j,height:i}},getPosition:function(){return this.position},updateDirectionLock:Ext.emptyFn,updateDisabled:Ext.emptyFn,updateIndicators:Ext.emptyFn,updateMaxPosition:Ext.emptyFn,updateMaxUserPosition:Ext.emptyFn,updateMinPosition:Ext.emptyFn,updateMinUserPosition:Ext.emptyFn,updateMomenumEasing:Ext.emptyFn,updateX:Ext.emptyFn,updateY:Ext.emptyFn,onPartnerScrollStart:Ext.emptyFn,onPartnerScrollEnd:Ext.emptyFn,refresh:function(){this.fireEvent('refresh',this);return this},removePartner:function(c){var b=this._partners,a=c._partners;if(b){delete b[c.getId()]}if(a){delete a[this.getId()]}},scrollBy:function(a,b,c){var d=this.getPosition();if(a){if(a.length){c=b;b=a[1];a=a[0]}else {if(typeof a!=='number'){c=b;b=a.y;a=a.x}}}a=typeof a==='number'?a+d.x:null;b=typeof b==='number'?b+d.y:null;return this.doScrollTo(a,b,c)},scrollIntoView:function(d,i,h,e){var a=this,c=a.getPosition(),b,f,g,j=a.getElement();if(d){b=Ext.fly(d).getScrollIntoViewXY(j,c.x,c.y);f=i===!1?c.x:b.x;g=b.y;if(e){a.on({scrollend:'doHighlight',scope:a,single:!0,args:[d,e]})}a.doScrollTo(f,g,h)}},isInView:function(d){var f=this,c={x:!1,y:!1},b,e=f.getElement(),a;if(d&&e.contains(d)){a=e.getRegion();b=Ext.fly(d).getRegion();c.x=b.right>a.left&&b.lefta.top&&b.top0){b-=1}if(c>0){c-=1}e.setSpacerXY({x:b,y:c});d.show()}}},deprecated:{5:{methods:{getScroller:function(){return this}}},'5.1.0':{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}},privates:{getSpacer:function(){var b=this,a=b._spacer,c;if(!a){c=b.getElement();a=b._spacer=c.createChild({cls:b._spacerCls,role:'presentation'});a.setVisibilityMode(2);c.position()}return a},applySpacerXY:function(a,b){if(b&&a.x===b.x&&a.y===b.y){a=undefined}return a},updateSpacerXY:function(a){this.getSpacer().setLocalXY(a.x,a.y)},convertX:function(a){return a},doHighlight:function(b,a){if(a!==!0){Ext.fly(b).highlight(a)}else {Ext.fly(b).highlight()}},fireScrollStart:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollStart',b,c);if(a.hasListeners.scrollstart){a.fireEvent('scrollstart',a,b,c)}if(d&&d.onScrollStart){d.onScrollStart(b,c)}Ext.GlobalEvents.fireEvent('scrollstart',a,b,c)},fireScroll:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScroll',b,c);if(a.hasListeners.scroll){a.fireEvent('scroll',a,b,c)}if(d&&d.onScrollMove){d.onScrollMove(b,c)}Ext.GlobalEvents.fireEvent('scroll',a,b,c)},fireScrollEnd:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollEnd',b,c);if(a.hasListeners.scrollend){a.fireEvent('scrollend',a,b,c)}if(d&&d.onScrollEnd){d.onScrollEnd(b,c)}Ext.GlobalEvents.fireEvent('scrollend',a,b,c)},initXStyle:function(){var b=this.getElement(),a=this.getX();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-x',a)}},initYStyle:function(){var b=this.getElement(),a=this.getY();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-y',a)}},invokePartners:function(d,g,h){var b=this,c=b._partners,a,e,f=d==='onPartnerScrollEnd';if(!b.suspendSync&!b.isReflecting){for(e in c){a=c[e].scroller;a.isReflecting=!0;a[d](b,g,h);if(f){a.isReflecting=!1}}}},clearReflecting:function(){this.isReflecting=!1},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(){if(this.suspendSync){this.suspendSync--}},updateDomScrollPosition:function(){var a=this,d=a.getElement(),b,c=a.position;if(d&&!d.destroyed){b=a.getElementScroll(d);c.x=b.left;c.y=b.top}a.positionDirty=!1;return c},getElementScroll:function(a){return a.getScroll()},onDomScroll:function(){var a=this,b,d,e,c;if(a.isTouchScroller&&Ext.supports.touchScroll===2){c=a.getElement().dom;c.scrollTop=c.scrollLeft=0;return}b=a.updateDomScrollPosition();d=b.x;e=b.y;if(!a.isScrolling){a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(d,e)}a.fireScroll(d,e);a.onDomScrollEnd()},onDomScrollEnd:function(){var a=this,b=a.getPosition(),c=b.x,d=b.y;a.isScrolling=Ext.isScrolling=!1;a.trackingScrollLeft=c;a.trackingScrollTop=d;a.fireScrollEnd(c,d)},onPartnerScroll:function(d,b,c){var a=d._partners[this.getId()].axis;if(a){if(a==='x'){c=null}else {if(a==='y'){b=null}}}this.doScrollTo(b,c,!1,!0)},restoreState:function(){var a=this,c=a.getElement(),b;if(c){b=c.dom;if(a.trackingScrollTop!==undefined){b.scrollTop=a.trackingScrollTop;b.scrollLeft=a.trackingScrollLeft}}}}},1,0,0,0,['scroller.scroller'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.scroll,'Scroller'],0);Ext.cmd.derive('Ext.fx.easing.Abstract',Ext.Base,{config:{startTime:0,startValue:0},isEasing:!0,isEnded:!1,constructor:function(a){this.initConfig(a);return this},applyStartTime:function(a){if(!a){a=Ext.Date.now()}return a},updateStartTime:function(a){this.reset()},reset:function(){this.isEnded=!1},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,'Abstract'],0);Ext.cmd.derive('Ext.fx.easing.Momentum',Ext.fx.easing.Abstract,{config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(b){var a=Math.log(1-b/10);this.theta=a;this.alpha=a/this.getAcceleration()},updateStartVelocity:function(a){this.velocity=a*this.getAcceleration()},updateAcceleration:function(a){this.velocity=this.getStartVelocity()*a;this.alpha=this.theta/a},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var a=Ext.Date.now()-this.getStartTime();return Math.exp(a*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}},0,0,0,0,0,0,[Ext.fx.easing,'Momentum'],0);Ext.cmd.derive('Ext.fx.easing.Bounce',Ext.fx.easing.Abstract,{config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var b=Ext.Date.now()-this.getStartTime(),a=b/this.getAcceleration(),c=a*Math.pow(Math.E,-this.getSpringTension()*a);return this.getStartValue()+this.getStartVelocity()*c}},0,0,0,0,0,0,[Ext.fx.easing,'Bounce'],0);Ext.cmd.derive('Ext.fx.easing.BoundMomentum',Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(b,a){return Ext.factory(b,Ext.fx.easing.Momentum,a)},applyBounce:function(b,a){return Ext.factory(b,Ext.fx.easing.Bounce,a)},updateStartTime:function(a){this.getMomentum().setStartTime(a);Ext.fx.easing.Abstract.prototype.updateStartTime.apply(this,arguments)},updateStartVelocity:function(a){this.getMomentum().setStartVelocity(a)},updateStartValue:function(a){this.getMomentum().setStartValue(a)},reset:function(){this.lastValue=null;this.isBouncingBack=!1;this.isOutOfBound=!1;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var d=this.getMomentum(),j=this.getBounce(),f=d.getStartVelocity(),b=f>0?1:-1,i=this.getMinMomentumValue(),h=this.getMaxMomentumValue(),g=b==1?h:i,c=this.lastValue,a,e;if(f===0){return this.getStartValue()}if(!this.isOutOfBound){a=d.getValue();e=d.getVelocity();if(Math.abs(e)=i&&a<=h){return a}this.isOutOfBound=!0;j.setStartTime(Ext.Date.now()).setStartVelocity(e).setStartValue(g)}a=j.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(c!==null){if(b==1&&ac){this.isBouncingBack=!0}}}else {if(Math.round(a)==g){this.isEnded=!0}}}this.lastValue=a;return a}},0,0,0,0,0,0,[Ext.fx.easing,'BoundMomentum'],0);Ext.cmd.derive('Ext.fx.easing.Linear',Ext.fx.easing.Abstract,{config:{duration:0,endValue:0},updateStartValue:function(a){this.distance=this.getEndValue()-a},updateEndValue:function(a){this.distance=a-this.getStartValue()},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration();if(a>b){this.isEnded=!0;return this.getEndValue()}else {return this.getStartValue()+a/b*this.distance}}},0,0,0,0,['easing.linear'],0,[Ext.fx.easing,'Linear'],0);Ext.cmd.derive('Ext.fx.easing.EaseOut',Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,i=a/b,h=1-i,g=1-Math.pow(h,this.getExponent()),c=d+g*e;if(a>=b){this.isEnded=!0;return f}return c}},0,0,0,0,['easing.ease-out'],0,[Ext.fx.easing,'EaseOut'],0);Ext.cmd.derive('Ext.util.translatable.Abstract',Ext.Evented,{config:{useWrapper:null,easing:null,easingX:null,easingY:null},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:!1,isTranslatable:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,'easing')},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},doTranslate:Ext.emptyFn,translate:function(a,b,c){if(c){return this.translateAnimated(a,b,c)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a=='number'){this.x=a}if(!isNaN(b)&&typeof b=='number'){this.y=b}this.doTranslate(a,b)},translateAxis:function(e,a,d){var b,c;if(e=='x'){b=a}else {c=a}return this.translate(b,c,d)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(a,b){this.activeEasingX=a;this.activeEasingY=b;this.isAnimating=!0;this.lastX=null;this.lastY=null;Ext.AnimationQueue.start(this.doAnimationFrame,this);this.fireEvent('animationstart',this,this.x,this.y);return this},translateAnimated:function(g,h,a){var b=this;if(!Ext.isObject(a)){a={}}if(b.isAnimating){b.stopAnimation()}b.callback=a.callback;b.callbackScope=a.scope;var f=Ext.Date.now(),e=a.easing,c=typeof g=='number'?a.easingX||e||b.getEasingX()||!0:null,d=typeof h=='number'?a.easingY||e||b.getEasingY()||!0:null;if(c){c=b.factoryEasing(c);c.setStartTime(f);c.setStartValue(b.x);c.setEndValue(g);if('duration' in a){c.setDuration(a.duration)}}if(d){d=b.factoryEasing(d);d.setStartTime(f);d.setStartValue(b.y);d.setEndValue(h);if('duration' in a){d.setDuration(a.duration)}}return b.animate(c,d)},doAnimationFrame:function(){var a=this,d=a.activeEasingX,e=a.activeEasingY,f=Date.now(),b,c;if(!a.isAnimating){return}a.lastRun=f;if(d===null&&e===null){a.stopAnimation();return}if(d!==null){a.x=b=Math.round(d.getValue());if(d.isEnded){a.activeEasingX=null;a.fireEvent('axisanimationend',a,'x',b)}}else {b=a.x}if(e!==null){a.y=c=Math.round(e.getValue());if(e.isEnded){a.activeEasingY=null;a.fireEvent('axisanimationend',a,'y',c)}}else {c=a.y}if(a.lastX!==b||a.lastY!==c){a.doTranslate(b,c);a.lastX=b;a.lastY=c}a.fireEvent('animationframe',a,b,c)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=!1;Ext.AnimationQueue.stop(a.doAnimationFrame,a);a.fireEvent('animationend',a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){if(this.isAnimating){this.stopAnimation()}Ext.Evented.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.translatable,'Abstract'],0);Ext.cmd.derive('Ext.util.translatable.Dom',Ext.util.translatable.Abstract,{config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,'Dom'],0);Ext.cmd.derive('Ext.util.translatable.CssTransform',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement();if(!this.destroyed&&!a.destroyed){a.translate(b,c)}},destroy:function(){var a=this.getElement();if(a&&!a.destroyed){a.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssTransform'],0);Ext.cmd.derive('Ext.util.translatable.ScrollPosition',Ext.util.translatable.Dom,{type:'scrollposition',config:{useWrapper:!0},getWrapper:function(){var a=this.wrapper,c=this.getElement(),b;if(!a){b=c.getParent();if(!b){return null}if(b.hasCls('x-translatable-hboxfix')){b=b.getParent()}if(this.getUseWrapper()){a=c.wrap()}else {a=b}c.addCls('x-translatable');a.addCls('x-translatable-container');this.wrapper=a;a.on('painted',function(){if(!this.isAnimating){this.refresh()}},this);this.refresh()}return a},doTranslate:function(c,d){var b=this.getWrapper(),a;if(b){a=b.dom;if(typeof c=='number'){a.scrollLeft=500000-c}if(typeof d=='number'){a.scrollTop=500000-d}}},destroy:function(){var a=this,c=a.getElement(),b=a.wrapper;if(b){if(!c.destroyed){if(a.getUseWrapper()){b.doReplaceWith(c)}c.removeCls('x-translatable')}if(!b.destroyed){b.removeCls('x-translatable-container');b.un('painted','refresh',a)}delete a.wrapper;delete a._element}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollPosition'],0);Ext.cmd.derive('Ext.util.translatable.ScrollParent',Ext.util.translatable.Dom,{isScrollParent:!0,applyElement:function(b){var a=Ext.get(b);if(a){this.parent=a.parent()}return a},doTranslate:function(b,c){var a=this.parent;a.setScrollLeft(Math.round(-b));a.setScrollTop(Math.round(-c))},getPosition:function(){var c=this,a=c.position,b=c.parent;a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollParent'],0);Ext.cmd.derive('Ext.util.translatable.CssPosition',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement().dom.style;if(typeof b=='number'){a.left=b+'px'}if(typeof c=='number'){a.top=c+'px'}},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssPosition'],0);Ext.cmd.derive('Ext.util.Translatable',Ext.Base,{constructor:function(a){var b=Ext.util.translatable;switch(Ext.browser.getPreferredTranslationMethod(a)){case 'scrollposition':return new b.ScrollPosition(a);case 'scrollparent':return new b.ScrollParent(a);case 'csstransform':return new b.CssTransform(a);case 'cssposition':return new b.CssPosition(a);}}},1,0,0,0,0,0,[Ext.util,'Translatable'],0);Ext.cmd.derive('Ext.scroll.Indicator',Ext.Widget,{config:{axis:null,hideAnimation:!0,hideDelay:0,scroller:null,minLength:24},defaultHideAnimation:{to:{opacity:0},duration:300},names:{x:{side:'l',getSize:'getHeight',setLength:'setWidth',translate:'translateX'},y:{side:'t',getSize:'getWidth',setLength:'setHeight',translate:'translateY'}},oppositeAxis:{x:'y',y:'x'},cls:'x-scroll-indicator',applyHideAnimation:function(a){if(a){a=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,a)}return a},constructor:function(c){var a=this,b;Ext.Widget.prototype.constructor.call(this,c);b=a.getAxis();a.names=a.names[b];a.element.addCls(a.cls+' '+a.cls+'-'+b)},hide:function(){var a=this,b=a.getHideDelay();if(b){a._hideTimer=Ext.defer(a.doHide,b,a)}else {a.doHide()}},setValue:function(c){var a=this,o=a.element,l=a.names,m=a.getAxis(),k=a.getScroller(),f=k.getMaxUserPosition()[m],g=k.getElementSize()[m],b=a.length,j=a.getMinLength(),e=b,i=g-b-a.sizeAdjust,h=Math.round,n=Math.max,d;if(c<0){e=h(n(b+b*c/g,j));d=0}else {if(c>f){e=h(n(b-b*(c-f)/g,j));d=i+b-e}else {d=h(c/f*i)}}a[l.translate](d);o[l.setLength](e)},show:function(){var a=this,b=a.element,c=b.getActiveAnimation();if(c){c.end()}if(!a._inDom){a.getScroller().getElement().appendChild(b);a._inDom=!0;if(!a.size){a.cacheStyles()}}a.refreshLength();clearTimeout(a._hideTimer);b.setStyle('opacity','')},privates:{cacheStyles:function(){var a=this,c=a.element,b=a.names;a.size=c[b.getSize]();a.margin=c.getMargin(b.side)},doHide:function(){var a=this.getHideAnimation(),b=this.element;if(a){b.animate(a)}else {b.setStyle('opacity',0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle('opacity','0')},refreshLength:function(){var a=this,i=a.names,g=a.getAxis(),e=a.getScroller(),h=e.getSize()[g],c=e.getElementSize()[g],j=c/h,b=a.margin*2,d=a.hasOpposite()?b+a.size:b,f=Math.max(Math.round((c-d)*j),a.getMinLength());a.sizeAdjust=d;a.length=f;a.element[i.setLength](f)},translateX:function(a){this.element.translate(a)},translateY:function(a){this.element.translate(0,a)}}},1,['scrollindicator'],['widget','scrollindicator'],{'widget':!0,'scrollindicator':!0},['widget.scrollindicator'],0,[Ext.scroll,'Indicator'],0);Ext.cmd.derive('Ext.scroll.TouchScroller',Ext.scroll.Scroller,{isTouchScroller:!0,config:{autoRefresh:!0,bounceEasing:{duration:400},elementSize:undefined,indicators:!0,fps:'auto',maxAbsoluteVelocity:6,momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,innerElement:null,size:undefined,slotSnapEasing:{duration:150},slotSnapOffset:{x:0,y:0},startMomentumResetTime:300,translatable:{translationMethod:'auto',useWrapper:!1}},cls:'x-scroll-container',scrollerCls:'x-scroll-scroller',dragStartTime:0,dragEndTime:0,isDragging:!1,isAnimating:!1,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:'onTouchStart',touchmove:'onTouchMove',dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd'},refreshCounter:0,constructor:function(c){var a=this,b='onEvent';a.elementListeners={touchstart:b,touchmove:b,dragstart:b,drag:b,dragend:b,scope:a};a.minPosition={x:0,y:0};a.startPosition={x:0,y:0};a.velocity={x:0,y:0};a.isAxisEnabledFlags={x:!1,y:!1};a.flickStartPosition={x:0,y:0};a.flickStartTime={x:0,y:0};a.lastDragPosition={x:0,y:0};a.dragDirection={x:0,y:0};Ext.scroll.Scroller.prototype.constructor.call(this,c);a.refreshAxes();a.scheduleRefresh={idle:a.doRefresh,scope:a,single:!0,destroyable:!0}},applyBounceEasing:function(b){var a=Ext.fx.easing.EaseOut;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyElementSize:function(b){var e=this.getElement(),a,c,d;if(!e){return null}a=e.dom;if(!a){return}if(b==null){c=a.clientWidth;d=a.clientHeight}else {c=b.x;d=b.y}return {x:c,y:d}},applyIndicators:function(b,a){var g=this,c,d,e,f;if(b){if(b===!0){c=d={}}else {e=b.x;f=b.y;if(e||f){c=e==null||e===!0?{}:e;d=e==null||f===!0?{}:f}else {c=d=b}}if(a){if(c){a.x.setConfig(c)}else {a.x.destroy();a.x=null}if(d){a.y.setConfig(d)}else {a.y.destroy();a.y=null}b=a}else {b={x:null,y:null};if(c){b.x=new Ext.scroll.Indicator(Ext.applyIf({axis:'x',scroller:g},c))}if(d){b.y=new Ext.scroll.Indicator(Ext.applyIf({axis:'y',scroller:g},d))}}}else {if(a){if(a.x){a.x.destroy()}if(a.y){a.y.destroy()}a.x=a.y=null}}return b},applyMomentumEasing:function(b){var a=Ext.fx.easing.BoundMomentum;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyInnerElement:function(a){if(a&&!a.isElement){a=Ext.get(a)}return a},applyMaxPosition:function(a,c){if(c&&a.x===c.x&&a.y===c.y){return}var d=this.getTranslatable(),b;if(d.isAnimating){b=d.activeEasingY;if(b&&b.getStartVelocity&&b.getStartVelocity()<0&&a.yi){d=i}}if(l){c=a.convertX(c);d=a.convertX(d)}if(d!==null){f=a.getBounceEasing()[b];f.setConfig({startTime:j,startValue:-c,endValue:-d});return f}if(e===0){return null}if(e<-g){e=-g}else {if(e>g){e=g}}f=a.getMomentumEasing()[b];h={startTime:j,startValue:-c,startVelocity:e*1.5,minMomentumValue:-i,maxMomentumValue:0};if(l){a.convertEasingConfig(h)}f.setConfig(h);return f},getSnapPosition:function(d){var e=this,c=e.getSlotSnapSize()[d],f=null,b,h,g,a;if(c!==0&&e.isAxisEnabled(d)){b=e.position[d];h=e.getSlotSnapOffset()[d];g=e.getMaxUserPosition()[d];a=Math.floor((b-h)%c);if(a!==0){if(b!==g){if(Math.abs(a)>c/2){f=Math.min(g,b+(a>0?c-a:a-c))}else {f=b-a}}else {f=b-a}}}return f},hideIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.hide()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.hide()}}}},isAxisEnabled:function(a){this.getX();this.getY();return this.isAxisEnabledFlags[a]},onAnimationEnd:function(){this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(d,b,c){var a=this.position;a.x=this.convertX(-b);a.y=-c;this.onScroll()},onAxisDrag:function(a,k){if(k&&this.isAxisEnabled(a)){var b=this,o=b.flickStartPosition,g=b.flickStartTime,f=b.lastDragPosition,d=b.dragDirection,r=b.position[a],q=b.getMinUserPosition()[a],e=b.getMaxUserPosition()[a],p=b.startPosition[a],l=f[a],c=p-k,i=d[a],h=b.getOutOfBoundRestrictFactor(),n=b.getStartMomentumResetTime(),m=Ext.Date.now(),j;if(ce){j=c-e;c=e+j*h}}if(c>l){d[a]=1}else {if(cn){o[a]=r;g[a]=m}f[a]=c;return !0}},onDomScroll:function(){var c=this,b,a;if(c.getTranslatable().isScrollParent){b=c.getElement().dom;a=c.position;a.x=b.scrollLeft;a.y=b.scrollTop}Ext.scroll.Scroller.prototype.onDomScroll.call(this)},onDrag:function(c){var a=this,b=a.lastDragPosition;if(!a.isDragging){return}if(a.onAxisDrag('x',a.convertX(c.deltaX))|a.onAxisDrag('y',c.deltaY)){a.doScrollTo(b.x,b.y)}},onDragEnd:function(d){var a=this,b,c;if(!a.isDragging){return}a.dragEndTime=Ext.Date.now();a.onDrag(d);a.isDragging=!1;b=a.getAnimationEasing('x',d);c=a.getAnimationEasing('y',d);if(b||c){a.getTranslatable().animate(b,c)}else {a.onScrollEnd()}},onDragStart:function(d){var a=this,b=a.getDirection(),m=d.absDeltaX,n=d.absDeltaY,o=a.getDirectionLock(),l=a.startPosition,g=a.flickStartPosition,j=a.flickStartTime,h=a.lastDragPosition,i=a.position,k=a.dragDirection,e=i.x,f=i.y,c=Ext.Date.now();if(o&&b!=='both'){if(b==='horizontal'&&m>n||b==='vertical'&&n>m){d.stopPropagation()}else {return}}h.x=e;h.y=f;g.x=e;g.y=f;l.x=e;l.y=f;j.x=c;j.y=c;k.x=0;k.y=0;a.dragStartTime=c;a.isDragging=!0;if(!a.isScrolling){a.onScrollStart()}},onElementResize:function(b,a){this.refresh(!0,{elementSize:{x:a.contentWidth,y:a.contentHeight},size:this.getAutoRefresh()?null:this.getSize()})},onElementScroll:function(b,a){a.scrollTop=a.scrollLeft=0},onEvent:function(b){var a=this,c=b.browserEvent;if((!a.self.isTouching||a.isTouching)&&(!a.getTranslatable().isScrollParent||!a.isMouseEvent[c.type]&&c.pointerType!=='mouse')&&(a.getY()||a.getX())){a[a.listenerMap[b.type]](b)}},onInnerElementResize:function(b,a){this.refresh(!0,{size:{x:a.width,y:a.height}})},onMouseWheel:function(j){var a=this,g=j.getWheelDeltas(),c=-g.x,d=-g.y,b=a.position,e=a.getMaxUserPosition(),f=a.getMinUserPosition(),h=Math.max,i=Math.min,k=h(i(b.x+c,e.x),f.x),l=h(i(b.y+d,e.y),f.y);c=k-b.x;d=l-b.y;if(!c&&!d){return}j.stopEvent();a.onScrollStart();a.scrollBy(c,d);a.onScroll();a.onScrollEnd()},onPartnerScrollEnd:function(b,c){var a=this;if(!a.getTranslatable().isScrollParent){a.fireScrollEnd(b,c)}Ext.scroll.Scroller.prototype.onPartnerScrollEnd.call(this,b,c);a.isScrolling=!1;a.hideIndicators()},onPartnerScrollStart:function(b,c){var a=this;a.isScrolling=!0;if(!a.getTranslatable().isScrollParent){a.fireScrollStart(b,c)}a.showIndicators()},onScroll:function(){var a=this,e=a.position,f=e.x,g=e.y,b=a.getIndicators(),c,d;if(b){if(a.isAxisEnabled('x')){c=b.x;if(c){c.setValue(f)}}if(a.isAxisEnabled('y')){d=b.y;if(d){d.setValue(g)}}}a.fireScroll(f,g)},onScrollEnd:function(){var a=this,b=a.position;if(a.isScrolling&&!a.isTouching&&!a.snapToSlot()){a.hideIndicators();a.isScrolling=Ext.isScrolling=!1;a.fireScrollEnd(b.x,b.y)}},onScrollStart:function(){var a=this,b=a.position;if(!a.isScrolling){a.showIndicators();a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(b.x,b.y)}},onTouchEnd:function(){var a=this;a.isTouching=a.self.isTouching=!1;if(!a.isDragging&&a.snapToSlot()){a.onScrollStart()}},onTouchMove:function(a){a.preventDefault()},onTouchStart:function(){var a=this;a.isTouching=a.self.isTouching=!0;Ext.getDoc().on({touchend:'onTouchEnd',scope:a,single:!0});a.stopAnimation()},refreshAxes:function(){var a=this,b=a.isAxisEnabledFlags,k=a.getSize(),h=a.getElementSize(),e=a.getIndicators(),f,g,c,d,i,j;if(!k||!h){return}f=Math.max(0,k.x-h.x);g=Math.max(0,k.y-h.y);c=a.getX();d=a.getY();a.setMaxPosition({x:f,y:g});if(c===!0||c==='auto'){b.x=!!f}else {if(c===!1){b.x=!1;i=e&&e.x;if(i){i.hide()}}else {if(c==='scroll'){b.x=!0}}}if(d===!0||d==='auto'){b.y=!!g}else {if(d===!1){b.y=!1;j=e&&e.y;if(j){j.hide()}}else {if(d==='scroll'){b.y=!0}}}a.setMaxUserPosition({x:b.x?f:0,y:b.y?g:0});if(Ext.supports.touchScroll===1){a.initXStyle();a.initYStyle()}},showIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.show()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.show()}}}},snapToBoundary:function(){var a=this,d=a.getPosition();if(a.isConfiguring||!(d.x||d.y)){return}var f=a.getMinUserPosition(),e=a.getMaxUserPosition(),i=f.x,j=f.y,g=e.x,h=e.y,b=Math.round(d.x),c=Math.round(d.y);if(bg){b=g}}if(ch){c=h}}a.doScrollTo(b,c)},snapToSlot:function(){var a=this,c=a.getSnapPosition('x'),d=a.getSnapPosition('y'),b=a.getSlotSnapEasing();if(c!==null||d!==null){a.doScrollTo(c,d,{easingX:b.x,easingY:b.y});return !0}return !1},stopAnimation:function(){this.getTranslatable().stopAnimation()},toggleResizeListeners:function(e){var c=this,f=c.getElement(),b,a,d;if(f){d=c.getInnerElement();if(e){b=a='on'}else {if(e===null){b='on';a='un'}else {b=a='un'}}f[b]('resize','onElementResize',c);d[a]('resize','onInnerElementResize',c)}},unwrapContent:function(){var a=this.getInnerElement().dom,c=this.getElement().dom,b;while(b=a.firstChild){c.insertBefore(b,a)}},wrapContent:function(d){var a=document.createElement('div'),c=d.dom,b;while(b=c.lastChild){a.insertBefore(b,a.firstChild)}c.appendChild(a);this.setInnerElement(a);this._isWrapped=!0;return this.getInnerElement()}}},1,0,0,0,['scroller.touch'],0,[Ext.scroll,'TouchScroller'],0);Ext.cmd.derive('Ext.scroll.DomScroller',Ext.scroll.Scroller,{isDomScroller:!0,getMaxPosition:function(){var b=this.getElement(),c=0,d=0,a;if(b&&!b.destroyed){a=b.dom;c=a.scrollWidth-a.clientWidth;d=a.scrollHeight-a.clientHeight}return {x:c,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),d=0,e=0,a;if(b&&!b.destroyed){a=b.dom;if(c.getX()){d=a.scrollWidth-a.clientWidth}if(c.getY()){e=a.scrollHeight-a.clientHeight}}return {x:d,y:e}},getPosition:function(){var a=this;if(a.positionDirty){a.updateDomScrollPosition()}return a.position},getSize:function(){var a=this.getElement(),b,c;if(a&&!a.destroyed){c=a.dom;b={x:c.scrollWidth,y:c.scrollHeight}}else {b={x:0,y:0}}return b},updateElement:function(b,a){this.initXStyle();this.initYStyle()},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},privates:{doScrollTo:function(a,b,j){var e=this,d=e.getElement(),f,c,i,g,h,k;if(d&&!d.destroyed){c=d.dom;g=a===Infinity;h=b===Infinity;if(g||h){f=e.getMaxPosition();if(g){a=f.x}if(h){b=f.y}}a=e.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}d.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(b!=null){c.scrollTop=b}if(a!=null){c.scrollLeft=a;if(Ext.isIE8){k=c.scrollLeft;c.scrollLeft=a}}}e.positionDirty=!0}},getElementScroll:function(a){return a.getScroll()},stopAnimation:function(){var a=this.getElement().getActiveAnimation();if(a){a.end()}}}},0,0,0,0,['scroller.dom'],0,[Ext.scroll,'DomScroller'],function(a){Ext.onDocumentReady(function(){a.document=new a({x:!0,y:!0,element:document.body})})});Ext.cmd.derive('Ext.util.Floating',Ext.Base,{mixinId:'floating',focusOnToFront:!0,shadow:'sides',animateShadow:!1,constrain:!1,config:{activeCounter:0,alwaysOnTop:!1},preventDefaultAlign:!1,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var a=this,e=a.el,d=a.shadow,c,b;if(d){b={mode:d===!0?'sides':d};c=a.shadowOffset;if(c){b.offset=c}b.animate=a.animateShadow;b.fixed=a.fixed;e.enableShadow(b,!1)}if(a.shim||Ext.useShims){e.enableShim({fixed:a.fixed},!1)}e.setVisibilityMode(a._visModeMap[a.hideMode]);a.el.on({mousedown:a.onMouseDown,scope:a,capture:!0});a.registerWithOwnerCt();a.initHierarchyEvents()},alignTo:function(b,d,f,e){var a=this,c;Ext.un('scroll',a.onAlignToScroll,a);if(b.isComponent){c=b.el}else {if(b.nodeType){c=Ext.fly(b)}else {c=b}}if(!c.contains(a.el)){Ext.on('scroll',a.onAlignToScroll,a)}a._lastAlignTarget=b;a._lastAlignToPos=d;a.mixins.positionable.alignTo.call(a,c,d,f,e)},initFloatConstrain:function(){var a=this,b=a.floatParent;if((a.constrain||a.constrainHeader)&&!a.constrainTo){a.constrainTo=b?b.getTargetEl():a.container}},initHierarchyEvents:function(){var b=this,a=this.syncHidden;if(!b.hasHierarchyEventListeners){b.mon(Ext.GlobalEvents,{hide:a,collapse:a,show:a,expand:a,added:a,scope:b});b.hasHierarchyEventListeners=!0}},registerWithOwnerCt:function(){var a=this,c=a.ownerCt,b=a.zIndexParent;if(b){b.unregisterFloatingItem(a)}b=a.zIndexParent=a.up('[floating]');a.floatParent=c||b;a.initFloatConstrain();delete a.ownerCt;if(b){b.registerFloatingItem(a)}else {Ext.WindowManager.register(a)}},onMouseDown:function(g){var b=this,f=b.focusTask,c=g.pointerType==='touch',a,d,e;if(b.floating&&(!f||!f.id)){a=g.target;d=b.el.dom;while(!c&&a&&a!==d){if(Ext.fly(a).isFocusable()){c=!0}a=a.parentNode}e=Ext.WindowManager.getActive()===b&&(a===d||c);if(!e){b.toFront(c)}}},onBeforeFloatLayout:function(){this.el.preventSync=!0},onAfterFloatLayout:function(){var a=this.el;if(a.shadow||a.shim){a.setUnderlaysVisible(!0);a.syncUnderlays()}},syncHidden:function(){var a=this,d=a.hidden||!a.rendered,c=a.hierarchicallyHidden=a.isHierarchicallyHidden(),b=a.pendingShow;if(d!==c){if(c){a.hide();a.pendingShow=!0}else {if(b){delete a.pendingShow;if(b.length){a.show.apply(a,b)}else {a.show()}}}}},setZIndex:function(a){var b=this;b.el.setZIndex(a);a+=10;if(b.floatingDescendants){a=Math.floor(b.floatingDescendants.setBase(a)/100)*100+10000}return a},doConstrain:function(c){var a=this,b=a.calculateConstrainedPosition(c,null,!0);if(b){a.setPosition(b)}},updateActiveCounter:function(b){var a=this.zIndexParent;if(a&&this.bringParentToFront!==!1){a.setActiveCounter(++Ext.ZIndexManager.activeCounter)}a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},updateAlwaysOnTop:function(b){var a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},toFront:function(b){var a=this;if(a.zIndexManager.bringToFront(a,b||!a.focusOnToFront)){if(a.hasListeners.tofront){a.fireEvent('tofront',a,a.el.getZIndex())}}return a},setActive:function(d,c){var a=this,b;if(d){if(a.el.shadow&&!a.maximized){a.el.enableShadow(null,!0)}if(c){b=Ext.ComponentManager.getActiveComponent();if(!b||!b.up(a)){a.focus()}}a.fireEvent('activate',a)}else {a.fireEvent('deactivate',a)}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var a=this,b;if(a.isVisible()){b=a.getAlignToXY(a.container,'c-c');a.setPagePosition(b)}else {a.needsCenter=!0}return a},onFloatShow:function(){if(this.needsCenter){this.center()}delete this.needsCenter;if(this.toFrontOnShow){this.toFront()}},fitContainer:function(f){var d=this,c=d.floatParent,a=c?c.getTargetEl():d.container,b=a.getViewSize(),e=c||a.dom!==document.body?[0,0]:a.getXY();b.x=e[0];b.y=e[1];d.setBox(b,f)},privates:{onFloatDestroy:function(){this.clearAlignEl()},clearAlignEl:function(){var a=this;if(a._lastAlignTarget){Ext.un('scroll',a.onAlignToScroll,a);a._lastAlignPos=a._lastAlignTarget=null}},onAlignToScroll:function(e){var b=this,a=b._lastAlignTarget,f=a.isFloating,c,d;if(a){if(a.isComponent){c=a.destroyed;a=a.el}else {if(a.nodeType){a=Ext.fly(a)}d=a.dom;c=!d||Ext.isGarbage(d)}if(c){b.clearAlignEl()}else {if((e.getElement().contains(a)||f)&&!e.getElement().contains(b.el)){b.alignTo(a,b._lastAlignToPos)}}}}}},1,0,0,0,0,0,[Ext.util,'Floating'],0);Ext.cmd.derive('Ext.util.ElementContainer',Ext.Base,{mixinId:'elementCt',config:{childEls:{$value:{},cached:!0,lazy:!0,merge:function(d,f,g,e){var c=f?Ext.Object.chain(f):{},b,a;if(d instanceof Array){for(b=d.length;b--;){a=d[b];if(!e||!(a in c)){if(typeof a==='string'){c[a]={name:a,itemId:a}}else {c[a.name]=a}}}}else {if(d){if(d.constructor===Object){for(b in d){if(!e||!(b in c)){a=d[b];if(a===!0){c[b]={itemId:b}}else {if(typeof a==='string'){c[b]={itemId:a}}else {c[b]=a;if(!('itemId' in a)){a.itemId=b}}}c[b].name=b}}}else {if(!e||!(d in c)){c[d]={name:d,itemId:d}}}}}return c}}},destroy:function(){var c=this,d=c.getChildEls(),a,b;for(b in d){a=c[b];if(a){if(a.destroy){a.component=null;a.destroy()}c[b]=null}}},privates:{addChildEl:function(a){var c=this,b=c.getChildEls();if(!c.hasOwnProperty('childEls')){c.childEls=b=Ext.Object.chain(b)}if(typeof a==='string'){a={name:a,itemId:a}}b[a.name]=a},afterClassMixedIn:function(a){var c=a.prototype,b=c.childEls;if(b){delete c.childEls;a.getConfigurator().add({childEls:b})}},attachChildEls:function(h,n){var i=this,k=i.getChildEls(),e=n||i,m=e.id+'-',l=!e.frame,f,g,b,j,c,a,d;for(f in k){b=k[f];if(l&&b.frame){continue}c=b.select;if(c){a=h.select(c,!0)}else {if(!(c=b.selectNode)){if(!(d=b.id)){d=m+b.itemId;a=Ext.cache[d]}else {a=Ext.cache[d]||h.getById(d)}}else {a=h.selectNode(c,!1)}}if(a){if(a.isElement){a.component=e}else {if(a.isComposite&&!a.isLite){g=a.elements;for(j=g.length;j--;){g[j].component=e}}}}i[f]=a||null}}}},0,0,0,0,0,0,[Ext.util,'ElementContainer'],0);Ext.cmd.derive('Ext.util.Renderable',Ext.Base,{mixinId:'renderable',frameCls:'x-frame',frameIdRegex:/[\-]frame\d+[TMB][LCR]$/,frameElNames:['TL','TC','TR','ML','MC','MR','BL','BC','BR','Table'],frameTpl:['{%this.renderDockedItems(out,values,0);%}','','
    {parent.baseCls}-{parent.ui}-{.}-tl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','
    {parent.baseCls}-{parent.ui}-{.}-ml{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mc{frameElCls}" role="presentation">','{%this.applyRenderTpl(out, values)%}','
    ','
    ','
    ','','
    {parent.baseCls}-{parent.ui}-{.}-bl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-br{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-bc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','{%this.renderDockedItems(out,values,1);%}'],frameTableTpl:['{%this.renderDockedItems(out,values,0);%}','','','','','','','','','','','','','','','','','','','','','','{%this.renderDockedItems(out,values,1);%}'],_renderState:0,ariaEl:'el',_layerCls:'x-layer',_fixedLayerCls:'x-fixed-layer',ariaStaticRoles:{presentation:!0,article:!0,definition:!0,directory:!0,document:!0,img:!0,heading:!0,math:!0,note:!0,banner:!0,complementary:!0,contentinfo:!0,navigation:!0,search:!0,'undefined':!0,'null':!0},statics:{makeRenderSetter:function(c,b){var a=c.name;return function(g){var d=this,f=d.renderConfigs||(d.renderConfigs={}),e=f[b];if(d._renderState>=b){(c.setter||c.getSetter()).call(d,g)}else {if(!e){f[b]=e={}}if(!(a in e)){e[a]=d[a]}d[a]=g}return d}},processRenderConfig:function(g,e,c){var h=this.prototype,j=this.getConfigurator(),k=Ext.util.Renderable,l=k.makeRenderSetter,d=g[e],b,a,i,f;for(i in d){a=Ext.Config.get(i);if(!h[f=a.names.set]){b=a.renderSetter||(a.renderSetter={});h[f]=b[c]||(b[c]=l(a,c))}}delete g[e];j.add(d)}},onClassMixedIn:function(a){var e=a.override,c=this.processRenderConfig,d=function(b){if(b.beforeRenderConfig){this.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){this.processRenderConfig(b,'renderConfig',3)}e.call(this,b)},b=function(e,b){e.override=d;e.processRenderConfig=c;if(b.beforeRenderConfig){e.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){e.processRenderConfig(b,'renderConfig',3)}};b(a,a.prototype);a.onExtended(b)},afterRender:function(){var a=this,c={},i=a.protoEl,g=a.el,d,b,h,f,e;a.finishRenderChildren();a._renderState=4;if(a.contentEl){h='x-';f=h+'hidden-';e=a.contentEl=Ext.get(a.contentEl);e.component=a;e.removeCls([h+'hidden',f+'display',f+'offsets']);a.getContentTarget().appendChild(e.dom)}i.writeTo(c);b=c.removed;if(b){g.removeCls(b)}b=c.cls;if(b.length){g.addCls(b)}b=c.style;if(c.style){g.setStyle(b)}a.protoEl=null;if(!a.ownerCt&&!a.skipLayout){a.updateLayout()}if(!(a.x&&a.y)&&(a.pageX||a.pageY)){a.setPagePosition(a.pageX,a.pageY)}if(a.disableOnRender){a.onDisable()}d=a.controller;if(d&&d.afterRender){d.afterRender(a)}},afterFirstLayout:function(l,k){var a=this,g=a.x,h=a.y,j=a.defaultAlign,i=a.alignOffset,f,d,e,b,c;if(!a.ownerLayout){d=g!==undefined;e=h!==undefined}if(a.floating&&!a.preventDefaultAlign&&(!d||!e)){if(a.floatParent){b=a.floatParent.getTargetEl().getViewRegion();c=a.el.getAlignToXY(a.alignTarget||a.floatParent.getTargetEl(),j,i);b.x=c[0]-b.x;b.y=c[1]-b.y}else {c=a.el.getAlignToXY(a.alignTarget||a.container,j,i);b=a.el.translateXY(c[0],c[1])}g=d?g:b.x;h=e?h:b.y;d=e=!0}if(d||e){a.setPosition(g,h)}a.onBoxReady(l,k);f=a.controller;if(f&&f.boxReady){f.boxReady(a)}},beforeRender:function(){var a=this,d=a.floating,e=a.getComponentLayout(),b=a.userCls,c;a._renderState=1;a.ariaUsesMainElement=a.ariaEl==='el';c=a.controller;if(c&&c.beforeRender){c.beforeRender(a)}a.initBindable();if(a.renderConfigs){a.flushRenderConfigs()}if(a.reference){a.publishState()}if(b){a.addCls(b)}if(d){a.addCls(a.fixed?a._fixedLayerCls:a._layerCls);b=d.cls;if(b){a.addCls(b)}}a.frame=a.frame||a.alwaysFramed;if(!e.initialized){e.initLayout()}a.initOverflow();a.setUI(a.ui)},doApplyRenderTpl:function(d,a){var c=a.$comp,b;if(!c.rendered){b=c.initRenderTpl();b.applyOut(a.renderData,d)}},getElConfig:function(){var a=this,e=a.autoEl,c=a.getFrameInfo(),b={tag:'div',tpl:c?a.initFramingTpl(c.table):a.initRenderTpl()},g=a.layoutTargetCls,d=a.protoEl,f=a.ariaRole,h;a.initStyles(d);if(g&&!c){d.addCls(g)}d.writeTo(b);d.flush();if(e){if(Ext.isString(e)){b.tag=e}else {Ext.apply(b,e)}}if(f&&a.ariaUsesMainElement){b.role=f;if(!a.ariaStaticRoles[f]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}}b.id=a.id;if(b.tpl){if(c){b.tplData=h=a.getFrameRenderData();h.renderData=a.initRenderData()}else {b.tplData=a.initRenderData()}}a.ariaRenderAttributes=null;return b},getInsertPosition:function(a){if(a!==undefined){if(Ext.isNumber(a)){a=this.container.dom.childNodes[a]}else {a=Ext.getDom(a)}}return a},getRenderTree:function(){var a=this,b=null;if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a._renderState=1;a.beforeRender();a.rendering=!0;a._renderState=2;b=a.getElConfig();if(a.el){b.id=a.$pid=Ext.id(null,a.el.identifiablePrefix)}}return b},initRenderData:function(){var a=this,c=a.ariaRole,d,b;d=Ext.apply({$comp:a,id:a.id,ui:a.ui,uiCls:a.uiCls,baseCls:a.baseCls,componentCls:a.componentCls,frame:a.frame,renderScroller:a.touchScroll,scrollerCls:a.scrollerCls,childElCls:''},a.renderData);if(c&&!a.ariaUsesMainElement){b={role:c};if(!a.ariaStaticRoles[c]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}d.ariaAttributes=b}return d},onRender:function(i,h){var a=this,e=a.x,f=a.y,b=null,g=a.el,d,c;a.applyRenderSelectors();a.rendering=null;a.rendered=!0;a._renderState=3;if(a.renderConfigs){a.flushRenderConfigs()}if(e!=null){b={x:e}}if(f!=null){(b=b||{}).y=f}if(!a.getFrameInfo()){d=a.width;c=a.height;if(typeof d==='number'){b=b||{};b.width=d}if(typeof c==='number'){b=b||{};b.height=c}}if(a.touchScroll===1){a.getOverflowEl().disableTouchScroll()}a.lastBox=g.lastBox=b},render:function(c,g){var a=this,b=a.el,f=a.ownerLayout,h,d,e;if(b&&!b.isElement){a.wrapPrimaryEl(b);b=a.el}if(!a.skipLayout){Ext.suspendLayouts()}c=a.initContainer(c);e=a.getInsertPosition(g);if(!b){d=a.getRenderTree();if(f&&f.transformItemRenderTree){d=f.transformItemRenderTree(d)}if(d){if(e){b=Ext.DomHelper.insertBefore(e,d)}else {b=Ext.DomHelper.append(c,d)}a.wrapPrimaryEl(b);a.cacheRefEls(b)}}else {if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a.beforeRender();a.needsRenderTpl=a.rendering=!0;a._renderState=2;a.initStyles(b);if(a.allowDomMove!==!1){if(e){c.dom.insertBefore(b.dom,e)}else {c.dom.appendChild(b.dom)}}}else {h=!0}}if(b&&!h){a.finishRender(g)}if(!a.skipLayout){Ext.resumeLayouts(!a.hidden&&!c.isDetachedBody)}},ensureAttachedToBody:function(c){var a=this,b;while(a.ownerCt){a=a.ownerCt}if(a.container.isDetachedBody){a.container=b=Ext.getBody();b.appendChild(a.el.dom);if(c){a.updateLayout()}if(typeof a.x==='number'||typeof a.y==='number'){a.setPosition(a.x,a.y)}}},privates:{applyRenderSelectors:function(){var a=this,b=a.renderSelectors,e=a.el,d,c;a.attachChildEls(e);a.ariaEl=a[a.ariaEl]||a.el;if(b){for(c in b){d=b[c];if(d){a[c]=e.selectNode(d,!1)}}}},cacheRefEls:function(a){a=a||this.el;var e=Ext.cache,h=Ext.dom.Element,f=a.isElement?a.dom:a,d=f.querySelectorAll('[data-ref]'),g=d.length,c,b;for(b=0;b','
    ','','{%this.renderContent(out,values)%}','
    '],resizeHandles:'all',shrinkWrap:2,toFrontOnShow:!0,synthetic:!1,tplWriteMode:'overwrite',ui:'default',uiCls:[],userCls:null,weight:null,allowDomMove:!0,autoGenId:!1,borderBoxCls:'x-border-box',componentLayoutCounter:0,contentPaddingProperty:'padding',deferLayouts:!1,frameSize:null,horizontalPosProp:'left',isComponent:!0,_isLayoutRoot:!1,layoutSuspendCount:0,liquidLayout:!1,maskOnDisable:!0,offsetsCls:'x-hidden-offsets',rendered:!1,rootCls:'x-body',scrollerCls:'x-scroll-scroller',scrollerSelector:'.x-scroll-scroller',_scrollFlags:{auto:{auto:{overflowX:'auto',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'auto',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'auto',overflowY:'scroll',x:!0,y:!0,both:!0}},'false':{auto:{overflowX:'hidden',overflowY:'auto',x:!1,y:!0,both:!1},'false':{overflowX:'hidden',overflowY:'hidden',x:!1,y:!1,both:!1},scroll:{overflowX:'hidden',overflowY:'scroll',x:!1,y:!0,both:!1}},scroll:{auto:{overflowX:'scroll',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'scroll',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'scroll',overflowY:'scroll',x:!0,y:!0,both:!0}},none:{overflowX:'',overflowY:'',x:!1,y:!1,both:!1}},_scrollableCfg:{x:{x:!0,y:!1},y:{x:!1,y:!0},horizontal:{x:!0,y:!1},vertical:{x:!1,y:!0},both:{x:!0,y:!0},'true':{x:!0,y:!0}},validIdRe:Ext.validIdRe,constructor:function(b){var a=this,e,j,i,h,g,c,d,f;b=b||{};if(b.initialConfig){if(b.isAction){a.baseAction=b}b=b.initialConfig}else {if(b.tagName||b.dom||Ext.isString(b)){b={applyTo:b,id:b.id||b}}}a.initialConfig=b;a.getId();a.protoEl=new Ext.util.ProtoElement();a.initConfig(b);if(a.scrollable==null){g=a.autoScroll;if(g){f=!!g}else {c=a.overflowX;d=a.overflowY;if(c||d){f={x:c&&c!=='hidden'?c:!1,y:d&&d!=='hidden'?d:!1}}}if(f){a.setScrollable(f)}}i=a.xhooks;if(i){delete a.xhooks;Ext.override(a,i)}a.mixins.elementCt.constructor.call(a);a.setupProtoEl();if(a.cls){a.initialCls=a.cls;a.protoEl.addCls(a.cls)}if(a.style){a.initialStyle=a.style;a.protoEl.setStyle(a.style)}a.renderData=a.renderData||{};a.initComponent();if(!a.preventRegister){Ext.ComponentManager.register(a)}a.mixins.state.constructor.call(a);a.addStateEvents('resize');h=a.getController();if(h){h.init(a)}if(a.plugins){for(e=0,j=a.plugins.length;eh){o=j;f=!0}if(e&&k>i){p=k;f=!0}if(d||e){g=a.el.getStyle('overflow');if(g!=='hidden'){a.el.setStyle('overflow','hidden')}}if(f){r=!Ext.isNumber(a.width);q=!Ext.isNumber(a.height);a.setSize(p,o);a.el.setSize(i,h);if(r){delete a.width}if(q){delete a.height}}if(e){c.width=k}if(d){c.height=j}}n=a.constrain;l=a.constrainHeader;if(n||l){a.constrain=a.constrainHeader=!1;m=b.callback;b.callback=function(){a.constrain=n;a.constrainHeader=l;if(m){m.call(b.scope||a,arguments)}if(g!=='hidden'){a.el.setStyle('overflow',g)}}}return a.mixins.animate.animate.apply(a,arguments)},applyScrollable:function(a,c){var b=this,f=b.rendered,e,d;if(a){if(a===!0||typeof a==='string'){e=b._scrollableCfg[a];a=e}if(c){c.setConfig(a);a=c}else {a=Ext.Object.chain(a);if(f){a.element=b.getOverflowEl();d=b.getScrollerEl();if(d){a.innerElement=d}}a.autoRefresh=!1;if(Ext.supports.touchScroll===1){a.translatable={translationMethod:'scrollparent'};a.indicators=!1}a=Ext.scroll.Scroller.create(a);a.component=b}}else {if(c){c.setConfig({x:!1,y:!1});c.destroy();a=null}}if(b.rendered&&!b.destroying&&!b.destroyed){if(a){b.getOverflowStyle()}else {b.scrollFlags=b._scrollFlags.none}b.updateLayout()}return a},beforeComponentLayout:function(){return !0},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(a,b,f){var d=this,c=null,e,g,h,i;if(a){if(Ext.isNumber(e=a[0])){f=b;b=a[1];a=e}else {if((e=a.x)!==undefined){f=b;b=a.y;a=e}}}if(d.constrain||d.constrainHeader){c=d.calculateConstrainedPosition(null,[a,b],!0);if(c){a=c[0];b=c[1]}}g=a!==undefined;h=b!==undefined;if(g||h){d.x=a;d.y=b;i=d.adjustPosition(a,b);c={x:i.x,y:i.y,anim:f,hasX:g,hasY:h}}return c},beforeShow:Ext.emptyFn,bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.getBubbleTarget()}return this},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},cloneConfig:function(a){a=a||{};var d=a.id||Ext.id(),c=Ext.applyIf(a,this.initialConfig),b;c.id=d;b=Ext.getClass(this);return new b(c)},destroy:function(){var a=this,d=a.renderSelectors,f=a.getConfig('viewModel',!0),g=a.getConfig('session',!0),b,c,e;if(!a.hasListeners.beforedestroy||a.fireEvent('beforedestroy',a)!==!1){a.isDestroying=a.destroying=!0;c=a.floatParent||a.ownerCt;if(a.floating){delete a.floatParent;if(a.zIndexManager){a.zIndexManager.unregister(a);a.zIndexManager=null}}a.removeBindings();a.beforeDestroy();a.destroyBindable();if(c&&c.remove){c.remove(a,!1)}a.stopAnimation();a.onDestroy();Ext.destroy(a.plugins);if(a.rendered){Ext.Component.cancelLayout(a,!0)}a.componentLayout=null;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}if(!a.preventRegister){Ext.ComponentManager.unregister(a)}a.mixins.state.destroy.call(a);if(a.floating){a.onFloatDestroy()}a.clearListeners();if(a.rendered){if(!a.preserveElOnDestroy){a.el.destroy()}a.el.component=null;a.mixins.elementCt.destroy.call(a);if(d){for(b in d){if(d.hasOwnProperty(b)){e=a[b];if(e){delete a[b];e.destroy()}}}}a.data=a.el=a.frameBody=a.rendered=a.afterRenderEvents=null;a.tpl=a.renderTpl=a.renderData=null;a.focusableContainer=a.container=a.scrollable=null}a.isDestroying=a.destroying=!1;a.callParent()}},disable:function(e,d){var a=this,b=a.focusableContainer,c=a.getInherited();if(!d){c.disabled=!0;a.savedDisabled=!0}if(a.maskOnDisable){c.disableMask=!0}if(!a.disabled){if(b){b.beforeFocusableChildDisable(a)}a.addCls(a.disabledCls);if(a.rendered){a.onDisable()}else {a.disableOnRender=!0}a.disabled=!0;if(e!==!0){a.fireEvent('disable',a)}if(b){b.onFocusableChildDisable(a)}}return a},doFireEvent:function(c,d,e){var a=this,b=a.mixins.observable.doFireEvent.call(a,c,d,e);if(b!==!1){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,d)}return b},enable:function(e,c){var a=this,b=a.focusableContainer,d=a.getInherited();if(!c){delete a.getInherited().disabled;a.savedDisabled=!1}if(a.maskOnDisable){delete d.disableMask}if(a.disabled){if(!(c&&d.hasOwnProperty('disabled'))){if(b){b.beforeFocusableChildEnable(a)}a.disableOnRender=!1;a.removeCls(a.disabledCls);if(a.rendered){a.onEnable()}a.disabled=!1;if(e!==!0){a.fireEvent('enable',a)}if(b){b.onFocusableChildEnable(a)}}}return a},findParentBy:function(b){var a;for(a=this.getRefOwner();a&&!b(a,this);a=a.getRefOwner()){}return a||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.constructor===a}):this.up(a)},findPlugin:function(c){var a,b=this.plugins,d=b&&b.length;for(a=0;a-1;e--){b=g[e];if(b.query){a=b.query(c);a=a[a.length-1];if(a){return a}}if(b.is(c)){return b}}return f.previousNode(c,!0)}return null},previousSibling:function(c){var e=this.ownerCt,b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.getAt(--a)}}}}return null},registerFloatingItem:function(b){var a=this;if(!a.floatingDescendants){a.floatingDescendants=new Ext.ZIndexManager(a)}a.floatingDescendants.register(b)},removeCls:function(c){var a=this,b=a.rendered?a.el:a.protoEl;b.removeCls.apply(b,arguments);return a},removeClsWithUI:function(a,k){var b=this,d=[],e=0,g=Ext.Array,i=g.remove,j=b.uiCls=g.clone(b.uiCls),f=b.activeUI,h,c;if(typeof a==='string'){a=a.indexOf(' ')<0?[a]:Ext.String.splitWords(a)}h=a.length;for(e=0;e1){arguments[0]=null;a.pendingShow=arguments}else {a.pendingShow=!0}}else {if(b&&a.isVisible()){if(a.floating){a.onFloatShow()}}else {if(a.fireEvent('beforeshow',a)!==!1){a.hidden=!1;delete this.getInherited().hidden;Ext.suspendLayouts();if(!b&&(a.autoRender||a.floating)){a.doAutoRender();b=a.rendered}if(b){a.beforeShow();Ext.resumeLayouts();a.onShow.apply(a,arguments);a.afterShow.apply(a,arguments)}else {Ext.resumeLayouts(!0)}}else {a.onShowVeto()}}}return a},showAt:function(b,c,d){var a=this;if(!a.rendered&&(a.autoRender||a.floating)){a.x=b;a.y=c;return a.show()}if(a.floating){a.setPosition(b,c,d)}else {a.setPagePosition(b,c,d)}return a.show()},showBy:function(b,d,c){var a=this;if(a.floating&&b){a.alignTarget=b;if(d){a.defaultAlign=d}if(c){a.alignOffset=c}a.show();if(!a.hidden){a.alignTo(b,d||a.defaultAlign,c||a.alignOffset)}}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=!0}},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(!1)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){d++;if(c.isComponent){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},update:function(b,i,k,j){var a=this,h=a.tpl&&!Ext.isString(b),g=a.getScrollable(),f=a.focusableContainer,e,c,d;if(h){a.data=b&&b.isEntity?b.getData(!0):b}else {a.html=Ext.isObject(b)?Ext.DomHelper.markup(b):b}if(a.rendered){e=a.getSizeModel();c=e.width.shrinkWrap||e.height.shrinkWrap;if(a.isContainer){d=a.layout.getRenderTarget();c=c||a.items.items.length>0}else {d=a.touchScroll?a.getScrollerEl():a.getTargetEl()}if(h){a.tpl[a.tplWriteMode](d,a.data||{})}else {d.setHtml(a.html,i,k,j||a)}if(c){a.updateLayout()}if(g){g.refresh(!0)}if(f){f.onFocusableChildUpdate(a)}}},setHtml:function(c,a,b){this.update(c,a,null,b)},applyData:function(a){this.update(a)},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},_asLayoutRoot:{isRoot:!0},_notAsLayoutRoot:{isRoot:!1},updateLayout:function(b){var a=this,e,d=a.lastBox,c=b&&b.isRoot;if(d){d.invalid=!0}if(!a.rendered||a.layoutSuspendCount||a.suspendLayout){return}if(a.hidden){Ext.Component.cancelLayout(a)}else {if(typeof c!=='boolean'){c=a.isLayoutRoot()}}if(c||!a.ownerLayout||!a.ownerLayout.onContentChange(a)){if(!a.isLayoutSuspended()){e=b&&b.hasOwnProperty('defer')?b.defer:a.deferLayouts;Ext.Component.updateLayout(a,e)}}},updateMaxHeight:function(b,a){this.changeConstraint(b,a,'min','max-height','height')},updateMaxWidth:function(b,a){this.changeConstraint(b,a,'min','max-width','width')},updateMinHeight:function(b,a){this.changeConstraint(b,a,'max','min-height','height')},updateMinWidth:function(b,a){this.changeConstraint(b,a,'max','min-width','width')},getAnchorToXY:function(d,a,c,b){return d.getAnchorXY(a,c,b)},getBorderPadding:function(){return this.el.getBorderPadding()},getLocalX:function(){return this.el.getLocalX()},getLocalXY:function(){return this.el.getLocalXY()},getLocalY:function(){return this.el.getLocalY()},getX:function(){return this.el.getX()},getXY:function(){return this.el.getXY()},getY:function(){return this.el.getY()},setLocalX:function(a){this.el.setLocalX(a)},setLocalXY:function(a,b){this.el.setLocalXY(a,b)},setLocalY:function(a){this.el.setLocalY(a)},setX:function(b,a){this.el.setX(b,a)},setXY:function(b,a){this.el.setXY(b,a)},setY:function(b,a){this.el.setY(b,a)},privates:{addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},addUIToElement:function(){var a=this,d=a.baseCls+'-'+a.ui,e,c,f,b;a.addCls(d);if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){f=a[c];if(f){f.addCls(d+b)}}}}},changeConstraint:function(b,g,f,c,d){var a=this,e=a[d];if(b!=null&&typeof e==='number'){a[d]=Math[f](e,b)}if(a.liquidLayout){if(b!=null){a.setStyle(c,b+'px')}else {if(g){a.setStyle(c,'')}}}if(a.rendered){a.updateLayout()}},constructPlugin:function(a){var b=this;if(typeof a==='string'){a=Ext.PluginManager.create({},a,b)}else {a=Ext.PluginManager.create(a,null,b)}return a},constructPlugins:function(){var d=this,a=d.plugins,c,b,e;if(a){c=[];c.processed=!0;if(!Ext.isArray(a)){a=[a]}for(b=0,e=a.length;b=0){h=m[c].splitterDelta;if(e.getAt(d+h)!==b){e.remove(b);d=e.indexOf(a);if(h>0){++d}e.insert(d,b)}}}if(j){if(l){a.expand(!1)}i.remove(j);a.placeholder=null;if(l){a.collapse(null,!1)}}i.updateLayout();Ext.resumeLayouts(!0);a.fireEventArgs('changeregion',[a,g])}else {a.region=c}}return g},setWeight:function(b){var a=this,e=a.getOwningBorderContainer(),d=a.placeholder,c=a.weight;if(b!==c){if(a.fireEventArgs('beforechangeweight',[a,b])!==!1){a.weight=b;if(d){d.weight=b}if(e){e.updateLayout()}a.fireEventArgs('changeweight',[a,c])}}return c}},function(b){var a=b.prototype;a.setBorderRegion=a.setRegion;a.setRegionWeight=a.setWeight});Ext.define('Ext.theme.neptune.Component',{override:'Ext.Component',initComponent:function(){arguments.callee.$previous.call(this);if(this.dock&&this.border===undefined){this.border=!1}},privates:{initStyles:function(){var a=this,b=a.hasOwnProperty('border'),c=a.border;if(a.dock){a.border=null}arguments.callee.$previous.apply(this,arguments);if(b){a.border=c}else {delete a.border}}}},function(){Ext.namespace('Ext.theme.is').Neptune=!0;Ext.theme.name='Neptune'});Ext.define('Ext.theme.crisp.Component',{override:'Ext.Component'},function(){Ext.namespace('Ext.theme.is').Crisp=!0;Ext.theme.name='Crisp'});Ext.define('Ext.overrides.app.domain.Component',{override:'Ext.app.domain.Component'},function(a){a.monitor(Ext.Component)});Ext.cmd.derive('Ext.app.EventBus',Ext.Base,{singleton:!0,constructor:function(){var a=this,b=Ext.app.EventDomain.instances;a.callParent();a.domains=b;a.bus=b.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(b,c){var d=this.domains,a;for(a in b){if(b.hasOwnProperty(a)){d[a].listen(b[a],c)}}},unlisten:function(c){var a=Ext.app.EventDomain.instances,b;for(b in a){a[b].unlisten(c)}}},1,0,0,0,0,0,[Ext.app,'EventBus'],0);Ext.cmd.derive('Ext.app.domain.Global',Ext.app.EventDomain,{singleton:!0,type:'global',constructor:function(){var a=this;a.callParent();a.monitor(Ext.GlobalEvents)},listen:function(b,a){this.callParent([{global:b},a])},match:Ext.returnTrue},1,0,0,0,0,0,[Ext.app.domain,'Global'],0);Ext.cmd.derive('Ext.app.BaseController',Ext.Base,{isController:!0,config:{id:null,control:null,listen:null,routes:null,before:null},constructor:function(b){var a=this;Ext.apply(a,b);delete a.control;delete a.listen;a.eventbus=Ext.app.EventBus;a.mixins.observable.constructor.call(a,b);a.ensureId()},applyListen:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},applyControl:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},updateControl:function(a){this.ensureId();if(a){this.control(a)}},updateListen:function(a){this.ensureId();if(a){this.listen(a)}},updateRoutes:function(b){if(b){var e=this,f=e.getBefore()||{},g=Ext.app.route.Router,c,a,d;for(c in b){a=b[c];if(Ext.isString(a)){a={action:a}}d=a.action;if(!a.before){a.before=f[d]}g.connect(c,a,e)}}},isActive:function(){return !0},control:function(b,c,f){var e=this,d=f,a;if(Ext.isString(b)){a={};a[b]=c}else {a=b;d=c}e.eventbus.control(a,d||e)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var a=this,b=a.eventbus;Ext.app.route.Router.disconnectAll(a);if(b){b.unlisten(a);a.eventbus=null}a.callParent()},redirectTo:function(a,c){if(a.isModel){a=a.toUrl()}if(!c){var b=Ext.util.History.getToken();if(b===a){return !1}}else {Ext.app.route.Router.onStateChange(a)}Ext.util.History.add(a);return !0}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.app,'BaseController'],0);Ext.cmd.derive('Ext.app.Util',Ext.Base,{},0,0,0,0,0,0,[Ext.app,'Util'],function(){Ext.apply(Ext.app,{namespaces:{Ext:{}},addNamespaces:function(a){var d=Ext.app.namespaces,b,c;if(!Ext.isArray(a)){a=[a]}for(b=0,c=a.length;bb.length&&a+'.'===d.substring(0,a.length+1)){b=a}}return b===''?undefined:b},setupPaths:function(e,b,c){var a=Ext.manifest,d;if(e&&b!==null){a=a&&a.paths;if(!a||b!==undefined){Ext.Loader.setPath(e,b===undefined?'app':b)}}if(c){for(d in c){if(c.hasOwnProperty(d)){Ext.Loader.setPath(d,c[d])}}}}});Ext.getNamespace=Ext.app.getNamespace});Ext.cmd.derive('Ext.util.CollectionKey',Ext.Base,{isCollectionKey:!0,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:!0},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(i,b){var j=this.map||this.getMap(),c=j[i],e=this.getCollection(),h=e.length,d,a,f,g;if(!c){return -1}if(b===undefined){b=-1}if(c instanceof Array){f=c;a=h;for(g=f.length;g-->0;){d=e.indexOf(f[g]);if(db){a=d}}if(a===h){return -1}}else {a=e.indexOf(c)}return a>b?a:-1},updateKey:function(e,d){var f=this,c=f.map,a,b;if(c){a=c[d];if(a instanceof Array){b=Ext.Array.indexOf(a,e);if(b>=0){if(a.length>2){a.splice(b,1)}else {c[d]=a[1-b]}}}else {if(a){delete c[d]}}f.add([e])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(a,b){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(g,h){var a=this,f=a.map,d=h.items,c=d.length,b,i,e;if(f){if(a.getUnique()&&cb?1:a0&&a.getAutoSort(),r=a.getSource(),q=0,g=!1,o=!1,e,l,k,m,b,d;if(r&&!r.updating){r.itemChanged(c,p,f,u)}else {l=a.getKey(c);if(s){b=a.indexOfKey(j?f:l);o=b<0;g=a.isItemFiltered(c);n=o!==g}if(n){if(g){q=[c];d=-1}else {m=[c];d=a.length}}else {if(v&&!g){if(!s){b=a.indexOfKey(j?f:l)}k=a.getSortFn();if(b!==-1){if(b&&k(i[b-1],i[b])>0){h=-1;d=Ext.Array.binarySearch(i,c,0,b,k)}else {if(b0){h=1;d=Ext.Array.binarySearch(i,c,b+1,k)}}if(h){m=[c]}}}}e={item:c,key:l,index:d,filterChanged:n,keyChanged:j,indexChanged:!!h,filtered:g,oldIndex:b,newIndex:d,wasFiltered:o,meta:u};if(j){e.oldKey=f}if(p){e.modified=p}a.beginUpdate();a.notify('beforeitemchange',[e]);if(j){a.updateKey(c,f)}if(m||q){a.splice(d,q,m)}if(h>0){e.newIndex--}else {if(h<0){e.oldIndex++}}a.notify(g?'filtereditemchange':'itemchange',[e]);a.endUpdate()}},remove:function(d){var a=this,c=a.decodeRemoveItems(arguments,0),b=a.length;a.splice(0,c);return b-a.length},removeAll:function(){var a=this,b=a.length;if(a.generation&&b){a.splice(0,b)}return a},removeAt:function(j,f){var a=this,e=a.length,i=Ext.Number,g=i.clipIndices(e,[j,f===undefined?1:f],i.Clip.COUNT),c=g[0],d=g[1]-c,h=d===1&&a.getAt(c),b;a.splice(c,d);b=a.length-e;return h&&b?h:b},removeByKey:function(b){var a=this.getByKey(b);if(!a||!this.remove(a)){return !1}return a},replace:function(a){var b=this.indexOf(a);if(b===-1){this.add(a)}else {this.insert(b,a)}},splice:function(K,E,L){var b=this,D=b.sorted&&b.getAutoSort(),F=b.map,o=b.items,r=b.length,n=E instanceof Array?b.decodeRemoveItems(E):null,G=!n,J=Ext.Number,I=J.clipIndices(r,[K,G?E:0],J.Clip.COUNT),m=I[0],v=I[1],x=v-m,p=b.decodeItems(arguments,2),h=p?p.length:0,c,A,C,d=m,k=b.indices||(h||n?b.getIndices():null),e=null,i=x?[m]:null,l=null,t=b.getSource(),j,B,z,a,u,g,w,f,s,q,y,H,v;if(t&&!t.updating){if(G){n=[];for(a=0;a1){if(!c.$cloned){p=c=c.slice(0)}b.sortData(c)}}for(a=0;a0;){f=b.getKey(n[a]);if((g=k[f])!==undefined){(i||(i=[])).push(g)}}if(!e&&!i){return b}b.beginUpdate();if(i){j=null;z=[];C={};if(i.length>1){i.sort(Ext.Array.numericSortFn)}for(a=0,q=i.length;aj.at+B.length){z.push(j={at:g,items:B=[],keys:s=[],map:C,next:j,replacement:e});if(e){e.replaced=j}}B.push(C[f]=u);s.push(f);if(g1&&g===m){--x;i[a--]=++m}}if(e){e.at=d}for(w=z.length;w-->0;){j=z[w];a=j.at;q=j.items.length;if(a+q1&&r){b.spliceMerge(c,l)}else {if(D){if(h>1){d=0;b.indices=k=null}else {d=H.findInsertionIndex(e.items[0],o,b.getSortFn())}}if(d===r){v=d;for(a=c.length-1;a>=0;--a){o[v+a]=c[a]}k=b.indices;if(k){for(a=0;a-1){c=e[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(l,i){var a=this,j=i.atItem,d=i.items,h=a.requestedIndex,c,b,e,f,g,k;if(!a.sorted){if(h!==undefined){b=h}else {if(j){b=a.indexOf(j);if(b===-1){b=a.findInsertIndex(d[0])}else {++b}}else {b=0}}}if(a.getAutoFilter()&&a.filtered){for(f=0,k=d.length;fc)){c=a}}return [c,b]},count:function(a){return a.length},extremes:function(k,j,l,i,f){var e=null,d=null,c,b,g,h,a;for(c=j;ch)){h=a;d=b}}return [d,e]},max:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[1]},maxItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[1]},min:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[0]},minItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[0]},sum:function(g,f,h,e,c){for(var a,d=0,b=f;b1){Ext.Array.sort(a,b.prioritySortFn)}},prioritySortFn:function(a,b){var c=a.observerPriority||0,d=b.observerPriority||0;return c-d},applyExtraKeys:function(e,g){var d=this,f=g||{},b,c,a;for(c in e){a=e[c];if(!a.isCollectionKey){b={collection:d};if(Ext.isString(a)){b.property=a}else {b=Ext.apply(b,a)}a=new Ext.util.CollectionKey(b)}else {a.setCollection(d)}f[c]=d[c]=a;a.name=c}return f},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,'Ext.util.Grouper')}return a},decodeItems:function(e,d){var g=this,a=d===undefined?e:e[d],b,f,c;if(!a||!a.$cloned){b=e.length>d+1||!Ext.isIterable(a);if(b){a=Ext.Array.slice(e,d);if(a.length===1&&a[0]===undefined){a.length=0}}f=g.getDecoder();if(f){if(!b){a=a.slice(0);b=!0}for(c=a.length;c-->0;){if((a[c]=f.call(g,a[c]))===!1){a.splice(c,1)}}}if(b){a.$cloned=!0}}return a},getIndices:function(){var a=this,c=a.indices,d=a.items,f=d.length,b,e;if(!c){a.indices=c={};++a.indexRebuilds;for(b=0;b0;if(d||c){b.filtered=c;b.onFilterChange(a)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==!1){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(c,b,d){var a=this.getSorters();a.addSort.apply(a,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify('beforesort',[a.getSorters(!1)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify('sort')},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(c,b,a){if(!b){b=this.items}if(!a){a=this.getSortFn()}return Ext.Array.binarySearch(b,c,a)},applySorters:function(a,b){if(a==null||a&&a.isSorterCollection){return a}if(a){if(!b){b=this.getSorters()}b.splice(0,b.length,a)}return b},createSortFn:function(){var d=this,b=d.getGrouper(),c=d.getSorters(!1),a=c?c.getSortFn():null;if(!b){return a}return function(d,e){var c=b.sort(d,e);if(!c&&a){c=a(d,e)}return c}},updateGrouper:function(c){var a=this,b=a.getGroups(),e=a.getSorters(),d;a.onSorterChange();a.grouped=!!c;if(c){if(a.getTrackGroups()){if(!b){b=new Ext.util.GroupCollection({itemRoot:a.getRootProperty()});b.$groupable=a;a.setGroups(b)}b.setGrouper(c);d=!0}}else {if(b){a.removeObserver(b);b.destroy()}a.setGroups(null)}if(!e.updating){a.onEndUpdateSorters(e)}if(d){b.onCollectionRefresh(a)}},updateSorters:function(b,c){var a=this;if(c){c.un('endupdate','onEndUpdateSorters',a)}if(b){b.on({endupdate:'onEndUpdateSorters',scope:a,priority:a.$endUpdatePriority});b.$sortable=a}a.onSorterChange();a.onEndUpdateSorters(b)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(b){var a=this,d=a.sorted,c=a.grouped&&a.getAutoGroup()||b&&b.length>0;if(d||c){a.sorted=!!c;a.onSortChange(b)}},removeObserver:function(b){var a=this.observers;if(a){Ext.Array.remove(a,b)}},spliceMerge:function(i,q){var f=this,r=f.map,k=i.length,g=0,n=f.items,m=n.length,h=[],c=0,a=[],p=f.getSortFn(),l,j,d,b,o,e;f.items=a;for(e=0;e1){h[c-2].next=h[c-1]}for(;e1){h[c-2].next=h[c-1]}a.push(b);for(j=e+1;j=0){break}a.push(b);l.push(b)}}for(;g0)}e=j.createAssociationStore(i,f,b,h);e.$source=q;if(!b&&(j.autoLoad||a)){n=!0}f[m]=e}if(a){if(n||e.isLoading()){e.on('load',function(h,i,e,g){d=[h,g];c=c||a.scope||f;if(e){Ext.callback(a.success,c,d)}else {Ext.callback(a.failure,c,d)}d.push(e);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)},null,{single:!0})}else {d=[e,null];c=c||a.scope||f;Ext.callback(a.success,c,d);d.push(!0);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)}}if(n&&!e.isLoading()){e.load()}return e},getAssociatedItem:function(b){var a=this.isMany?this.getStoreName():this.getInstanceName();return b[a]||null},onDrop:Ext.emptyFn,getReaderRoot:function(){var a=this;return a.associationKey||(a.associationKey=a.association.schema.getNamer().readerRoot(a.role))},getReader:function(){var b=this,a=b.reader,d=b.cls,c=!b.associationKey,e=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:e,useSimpleAccessors:c,type:b.defaultReaderType});a=b.reader=Ext.createByAlias('reader.'+a.type,a)}return a},getInstanceName:function(){var a=this;return a.instanceName||(a.instanceName=a.association.schema.getNamer().instanceName(a.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName='$old'+this.getInstanceName())},getStoreName:function(){var a=this;return a.storeName||(a.storeName=a.association.schema.getNamer().storeName(a.role))},constructReader:function(h){var b=this,a=b.getReader(),e=b.cls,g=!b.associationKey,f=b.getReaderRoot(),c,d;if(!a){d=e.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(f)}else {a=new h.self({model:e,useSimpleAccessors:g,rootProperty:f})}b.reader=a}return a},read:function(f,e,d,c){var a=this.constructReader(d),b=a.getRoot(e);if(b){return a.readRecords(b,c,this._internalReadOptions)}},getCallbackOptions:function(a,c,b){if(typeof a==='function'){a={callback:a,scope:c||b}}else {if(a){a=Ext.apply({},a);a.scope=c||a.scope||b}}return a},doGetFK:function(d,b,f){var i=this,l=i.cls,j=i.association.getFieldName(),h=i.getInstanceName(),a=d[h],m=b&&b.reload,e=a!==undefined&&!m,k=d.session,c,g;if(!e){if(k){c=d.get(j);if(c||c===0){e=k.peekRecord(l,c,!0)&&!m;a=k.getRecord(l,c,!1)}else {e=!0;d[h]=a=null}}else {if(j){c=d.get(j);if(!c&&c!==0){e=!0;d[h]=a=null}else {if(!a){a=l.createWithId(c)}}}else {e=!0}}}else {if(a){e=!a.isLoading()}}if(e){if(b){g=[a,null];f=f||b.scope||d;Ext.callback(b.success,f,g);g.push(!0);Ext.callback(b,f,g);Ext.callback(b.callback,f,g)}}else {d[h]=a;b=i.getCallbackOptions(b,f,d);a.load(b)}return a},doSetFK:function(a,c,e,l){var f=this,i=f.association.getFieldName(),h=f.getInstanceName(),b=a[h],d=f.inverse,j=d.setterName,m=a.session,k,g;if(c&&c.isEntity){if(b!==c){g=f.getOldInstanceName();a[g]=b;a[h]=c;if(b&&b.isEntity){b[d.getInstanceName()]=undefined}if(i){a.set(i,c.getId())}delete a[g];if(j){c[j](a)}}}else {k=a.changingKey&&!d.isMany||a.set(i,c);if(k&&b&&b.isEntity&&!b.isEqual(b.getId(),c)){a[h]=undefined;if(!d.isMany){b[d.getInstanceName()]=undefined}}}if(e){if(Ext.isFunction(e)){e={callback:e,scope:l||a}}return a.save(e)}}},1,0,0,0,0,0,[Ext.data.schema,'Role'],0);Ext.cmd.derive('Ext.data.schema.Association',Ext.Base,{isOneToOne:!1,isManyToOne:!1,isManyToMany:!1,owner:null,field:null,constructor:function(d){var a=this,c,b;Ext.apply(a,d);a.left=c=new a.Left(a,a.left);a.right=b=new a.Right(a,a.right);c.inverse=b;b.inverse=c},hasField:function(){return !!this.field},getFieldName:function(){var a=this.field;return a?a.name:''}},1,0,0,0,0,0,[Ext.data.schema,'Association'],0);Ext.cmd.derive('Ext.data.schema.OneToOne',Ext.data.schema.Association,{isOneToOne:!0,isToOne:!0,kind:'one-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',onDrop:function(a,c){var b=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(b){b[this.inverse.getInstanceName()]=null}},createGetter:function(){var a=this;return function(){return a.doGet(this)}},createSetter:function(){var a=this;return function(b){return a.doSet(this,b)}},doGet:function(a){var c=this.getInstanceName(),b=a[c],d=a.session;if(!b&&d){}return b||null},doSet:function(a,b){var d=this.getInstanceName(),e=a[d],c=this.inverse.setterName;if(e!==b){a[d]=b;if(c){b[c](a)}}return e},read:function(a,g,f,e){var c=this,d=c.callParent([a,g,f,e]),b;if(d){b=d[0];if(b){b[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=b;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(d,b,c){return a.doSetFK(this,d,b,c)}},onDrop:function(c,f){var b=this,e=b.association.field,a=b.getAssociatedItem(c),d;if(b.inverse.owner){if(f){d=c.get(e.name);if(d||d===0){a=f.getEntry(b.cls,d).record;if(a){a.drop()}}}else {if(a){a.drop()}}}if(e){c.set(e.name,null)}c[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(b,f,c){var a=this,e=b[a.getOldInstanceName()]||a.getAssociatedItem(b),h=c||c===0,d=a.getInstanceName(),g=a.cls;b.changingKey=!0;a.doSetFK(b,c);if(!h){b[d]=null}else {if(f&&g){b[d]=f.peekRecord(g,c)||undefined}}if(a.inverse.owner&&e){a.association.schema.queueKeyCheck(e,a)}b.changingKey=!1},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(a,o,n,m){var f=this,l=f.callParent([a,o,n,m]),b,d,g,c,k,h,j,i,e;if(l){b=l[0];d=f.association.field;if(d){g=d.name}c=a.session;e=a.data;if(b){if(c){k=c.getRefs(b,this.inverse,!0);i=k&&k[a.id]||e[g]===undefined}else {i=!0}if(i){if(d){j=e[g];h=b.id;if(j!==h){e[g]=h;if(c){c.updateReference(a,d,h,j)}}}b[f.inverse.getInstanceName()]=a;a[f.getInstanceName()]=b}delete e[f.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,'OneToOne'],0);Ext.cmd.derive('Ext.data.schema.ManyToOne',Ext.data.schema.Association,{isManyToOne:!0,isToOne:!0,kind:'many-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,onDrop:function(d,f){var b=this,e=b.getAssociatedItem(d),a,g,c,i,h;if(e){a=e.removeAll();if(a&&b.inverse.owner){for(c=0,g=a.length;c0){a=c[h];e=!a.isEqual(l,a.get(i));b=f?null:d;if(e!==f){a.changingKey=!0;a[k](b);a.changingKey=!1}else {a[j]=b}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',onDrop:function(a,c){var b=this.association.field;if(b){a.set(b.name,null)}a[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(c,b){var d=this.association.field,a;a=this.getSessionStore(c,b.get(d.name));if(a&&!a.contains(b)){a.add(b)}},onValueChange:function(b,f,d,l){var c=this,j=c.getInstanceName(),m=c.cls,i,g,a,h,n,e,k;if(!b.changingKey){i=d||d===0;if(!i){b[j]=null}if(f){a=c.getSessionStore(f,l);if(a){a.remove(b)}if(i){a=c.getSessionStore(f,d);if(a&&!a.isLoading()){a.add(b)}if(m){k=f.peekRecord(m,d)}b[j]=k||undefined}}else {g=b.joined;if(g){for(h=0,n=g.length;h=0){a.remove([b])}}else {if(b<0){d=a.getSession().getEntry(this.type,e);c=d&&d.record;if(c){a.add(c)}}}a.matrixUpdate=0}},adoptAssociated:function(e,d){var a=this.getAssociatedItem(e),c,b,f;if(a){a.setSession(d);this.onStoreCreate(a,d,e.getId());c=a.getData().items;for(b=0,f=c.length;b1){a[b]=this.apply('capitalize',a[b])}return a.join('')},getterName:function(a){var b=a.role;if(a&&a.isMany){return b}return 'get'+this.apply('capitalize',b)},inverseFieldRole:function(e,f,c,d){var a=this,b=a.apply(f?'uniRole':'multiRole',e),g=a.apply('pluralize',c),h=a.apply('undotted,pluralize',d);if(g.toLowerCase()!==h.toLowerCase()){b=c+a.apply('capitalize',b)}return b},manyToMany:function(c,e,d){var b=this,a=b.apply('undotted,capitalize,singularize',e)+b.apply('undotted,capitalize,pluralize',d);if(c){a=b.apply('capitalize',c+a)}return a},manyToOne:function(d,b,a,c){return this.apply('capitalize,singularize',a)+this.apply('capitalize',b)},matrixRole:function(a,c){var b=this.apply(a?'multiRole,capitalize':'multiRole',c);return a?a+b:b},oneToOne:function(d,b,a,c){return this.apply('undotted,capitalize,singularize',a)+this.apply('capitalize',b)},setterName:function(a){return 'set'+this.apply('capitalize',a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(b,c){var e=this,h=e.cache,i=h[c]||(h[c]={}),a=i[b],d,g,f;if(!a){if(b.indexOf(',')<0){a=e[b](c)}else {g=(f=b.split(',')).length;a=c;for(d=0;d=Math.max(a,b)},find:function(g,h,d,e,b,c){var a=!e,f=!!(a&&c);return this.getData().findIndex(g,h,d,a,f,!b)},findRecord:function(){var a=this,b=a.find.apply(a,arguments);return b!==-1?a.getAt(b):null},findExact:function(a,c,b){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(a),c)},this,b)},findBy:function(c,a,b){return this.getData().findIndexBy(c,a,b)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,a){var c=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==!1){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(c,a){var b;if(!a){a=this.createFiltersCollection();b=!0}a.add(c);if(b){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==!1){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(c,a){var b;if(!a){a=this.createSortersCollection();b=!0}a.add(c);if(b){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(a,c,b){if(Ext.isString(a)){a={property:a,value:c}}this.suppressNextFilter=!!b;this.getFilters().add(a);this.suppressNextFilter=!1},removeFilter:function(a,d){var b=this,c=b.getFilters();b.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){c.remove(a)}else {c.removeByKey(a)}b.suppressNextFilter=!1},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(!1),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(!1),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=!1},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(!1);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=!1},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(!1);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(b){if(b.getTransform()){return}var e=b.getProperty(),d=this.getModel(),c,a;if(d){c=d.getField(e);a=c?c.getSortType():null}if(a&&a!==Ext.identityFn){b.setTransform(a)}},beginUpdate:function(){if(!this.updating++){this.fireEvent('beginupdate')}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent('endupdate');this.onEndUpdate()}},getState:function(){var c=this,e=[],g=c.getFilters(),f=c.getGrouper(),a,d,b;c.getSorters().each(function(a){e[e.length]=a.getState();d=!0});if(c.statefulFilters&&c.saveStatefulFilters){d=!0;a=[];g.each(function(b){a[a.length]=b.getState()})}if(f){d=!0}if(d){b={};if(e.length){b.sorters=e}if(a){b.filters=a}if(f){b.grouper=f.getState()}}return b},applyState:function(b){var a=this,e=b.sorters,c=b.filters,d=b.grouper;if(e){a.getSorters().replaceAll(e)}if(c){a.saveStatefulFilters=!0;a.getFilters().replaceAll(c)}if(d){a.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.callParent();a.onDestroy()},sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else {a.forceLocalSort()}}else {a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(b,a){if(a){this.fireEvent('beforesort',this,a.getRange())}},onSorterEndUpdate:function(){var a=this,b;b=a.getSorters(!1);if(a.settingGroups||!b){return}b=b.getRange();if(b.length){if(a.getRemoteSort()){a.load({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('sort',a,b)}}else {a.fireEvent('sort',a,b)}},onFilterEndUpdate:function(){var a=this,b=a.suppressNextFilter;if(a.getRemoteFilter()){a.currentPage=1;if(!b){a.load()}}else {if(!b){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}if(a.trackStateChanges){a.saveStatefulFilters=!0}a.fireEvent('filterchange',a,a.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else {this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(b,d){var a=this,c=a.getSorters(!1),e=b||c&&c.length;if(b&&typeof b==='string'){b={property:b,direction:d||a.getGroupDir()}}a.settingGroups=!0;a.getData().setGrouper(b);delete a.settingGroups;if(e){if(a.getRemoteSort()){a.load({scope:a,callback:a.fireGroupChange})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireGroupChange()}}else {a.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){this.fireEvent('groupchange',this,this.getGrouper())}},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b='';if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?'on':'un']('endupdate',this.onFilterEndUpdate,this)}},onRemoteSortSet:function(c,b){var a=this;if(c){c[b?'on':'un']('endupdate',a.onSorterEndUpdate,a);a.getData()[b?'un':'on']('beforesort',a.onBeforeCollectionSort,a)}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data,'AbstractStore'],0);Ext.cmd.derive('Ext.data.Error',Ext.Base,{isError:!0,$configPrefixed:!1,config:{field:null,message:''},constructor:function(a){this.initConfig(a);this.msg=this.message}},1,0,0,0,0,0,[Ext.data,'Error'],0);Ext.cmd.derive('Ext.data.ErrorCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.data.Errors',init:function(d){var b=this,h=d.fields,k=d.data,g,a,l,c,i,f,j,e;for(c=0,i=h.length;c]+>/gi,asText:function(a){return a!=null?String(a).replace(this.stripTagsRe,''):'\x00'},asUCText:function(a){return a!=null?String(a).toUpperCase().replace(this.stripTagsRe,''):'\x00'},asUCString:function(a){return a!=null?String(a).toUpperCase():'\x00'},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(b){var a=parseFloat(String(b).replace(this.stripCommasRe,''));return isNaN(a)?0:a},asInt:function(b){var a=parseInt(String(b).replace(this.stripCommasRe,''),10);return isNaN(a)?0:a}},0,0,0,0,0,0,[Ext.data,'SortTypes'],0);Ext.cmd.derive('Ext.data.validator.Validator',Ext.Base,{isValidator:!0,type:'base',statics:{all:{},register:function(a,c){var b=this.all;b[a.toUpperCase()]=b[a.toLowerCase()]=b[a]=c.prototype}},onClassExtended:function(b,a){if(a.type){Ext.data.validator.Validator.register(a.type,b)}},constructor:function(a){if(typeof a==='function'){this.fnOnly=!0;this.validate=a}else {this.initConfig(a)}},validate:function(){return !0},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},1,0,0,0,['data.validator.base'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.validator,'Validator'],function(){this.register(this.prototype.type,this)});Ext.cmd.derive('Ext.data.field.Field',Ext.Base,{alternateClassName:'Ext.data.Field',aliasPrefix:'data.field.',type:'auto',factoryConfig:{defaultProperty:'name'},isDataField:!0,isField:!0,allowBlank:!0,allowNull:!1,critical:!1,defaultInvalidMessage:'This field is invalid',defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,unique:!1,rank:null,stripRe:/[\$,%]/g,calculated:!1,evil:!1,identifier:!1,onClassExtended:function(f,d){var b=d.sortType,c=f.prototype,e=c.validators,a=d.validators;if(b&&Ext.isString(b)){c.sortType=Ext.data.SortTypes[b]}if(a){if(!Ext.isArray(a)){a=[a]}delete d.validators;if(e){a=e.concat(a)}c.validators=a}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var a=this,n=a.calculateRe,c,l,f,h,b,j,e,m,k,i,g;if(d){if(Ext.isString(d)){a.name=d}else {g=d.validators;if(g){delete d.validators;a.instanceValidators=g}Ext.apply(a,d)}}if(!a.allowNull){a.allowNull=!!a.reference}c=a.calculate;b=a.depends;if(c){a.convert=a.doCalculate;if(!b){if(!(b=c.$depends)){j={};k=c.toString();c.$depends=b=[];e=a.argumentNamesRe.exec(k);m=e?e[1]:'data';while(e=n.exec(k)){if(m===e[1]&&!j[i=e[2]]){j[i]=1;b.push(i)}}}a.depends=b}}f=a.defaultValue;if(a.convert){a.calculated=l=a.convert.length>1;a.evil=l&&!b}if(a.persist===null){a.persist=!c}h=a.sortType;if(!a.sortType){a.sortType=Ext.data.SortTypes.none}else {if(Ext.isString(h)){a.sortType=Ext.data.SortTypes[h]}}if(b&&typeof b==='string'){a.depends=[b]}a.cloneDefaultValue=f!==undefined&&(Ext.isDate(f)||Ext.isArray(f)||Ext.isObject(f))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},compileValidators:function(){var a=this;a._validators=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var d=a.length,e=this._validators,c,b;for(c=0;c0){(u=p[v]).dirty=!0;d=d?Math.min(d,u.rank):u.rank}if(!b||b.persist){if(f&&f.hasOwnProperty(c)){if(!y||o.isEqual(f[c],h)){delete f[c];a.dirty=-1}}else {if(y){if(!f){a.modified=f={}}a.dirty=!0;f[c]=j}}}if(c===a.idField.name){D=!0;z=j;s=h}}if(!d){break}b=l[d-1];b.dirty=!1;if(n){delete g[i]}else {g=a._singleProp;n=!0}i=b.name;g[i]=t[i];C=!0;for(;d0;){d=(b=g[i]).name;if(!(d in f)){c=h[d];if(j&&b.serialize){c=b.serialize(c,a)}f[d]=c}}}if(n){a.getAssociatedData(f,e)}return f},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(a){a=Ext.apply({},a);var b=this,d=a.scope||b,g=b.getProxy(),f=a.callback,c=b.loadOperation,h=b.getId(),e;if(c){e=c.extraCalls;if(!e){e=c.extraCalls=[]}e.push(a);return c}a.id=h;a.recordCreator=function(e,f,c){var d=b.session;if(c){c.recordCreator=d?d.recordCreator:null}b.set(e,b._commitOptions);return b};a.internalCallback=function(e){var h=e.wasSuccessful()&&e.getRecords().length>0,l=b.loadOperation,i=l.extraCalls,c=[b,e],j=[b,e,h],g,k;b.loadOperation=null;if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(f,d,j);if(i){for(g=0,k=i.length;g0;){b=i[a];if(b in e){delete e[b];delete j[b]}}for(a=0,h=f.length;a=a.getTotal()){a.setConfig({success:!1,records:[],total:0})}else {a.setRecords(Ext.Array.slice(d,e,e+i))}}b.setCompleted()}},clear:Ext.emptyFn},0,0,0,0,['proxy.memory'],0,[Ext.data.proxy,'Memory',Ext.data,'MemoryProxy'],0);Ext.cmd.derive('Ext.data.ProxyStore',Ext.data.AbstractStore,{config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:!1,batchUpdateMode:'operation',sortOnLoad:!0,trackRemoved:!0,asynchronousLoad:undefined},onClassExtended:function(e,d,b){var c=d.model,a;if(typeof c==='string'){a=b.onBeforeCreated;b.onBeforeCreated=function(){var g=this,f=arguments;Ext.require(c,function(){a.apply(g,f)})}}},implicitModel:'Ext.data.Model',autoSyncSuspended:0,constructor:function(b){var a=this;a.removed=[];Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(a.getAsynchronousLoad()===!1){a.flushLoad()}},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else {this.getFields();a=this.getModel()||this.createImplicitModel()}return a},applyProxy:function(a){var b=this.getModel();if(a!==null){if(a){if(a.isProxy){a.setModel(b)}else {if(Ext.isString(a)){a={type:a,model:b}}else {if(!a.model){a=Ext.apply({model:b},a)}}a=Ext.createByAlias('proxy.'+a.type,a);a.autoCreated=!0}}else {if(b){a=b.getProxy()}}if(!a){a=Ext.createByAlias('proxy.memory');a.autoCreated=!0}}return a},applyState:function(b){var a=this;Ext.data.AbstractStore.prototype.applyState.call(this,b);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(b,a){this.fireEvent('metachange',this,a)},create:function(f,a){var b=this,e=b.getModel(),d=new e(f),c;a=Ext.apply({},a);if(!a.records){a.records=[d]}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('create',a);return c.execute()},read:function(){return this.load.apply(this,arguments)},update:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getUpdatedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('update',a);return c.execute()},onProxyWrite:function(a){var b=this,c=a.wasSuccessful(),d=a.getRecords();switch(a.getAction()){case 'create':b.onCreateRecords(d,a,c);break;case 'update':b.onUpdateRecords(d,a,c);break;case 'destroy':b.onDestroyRecords(d,a,c);break;}if(c){b.fireEvent('write',b,a);b.fireEvent('datachanged',b)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(c,b,a){if(a){this.cleanRemoved()}},erase:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getRemovedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('destroy',a);return c.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(e,f){var a=this,c=e.operations,d=c.length,b;if(a.batchUpdateMode!=='operation'){a.suspendEvents();for(b=0;b0){b.create=f;c=!0}if(g.length>0){b.update=g;c=!0}if(e.length>0){b.destroy=e;c=!0}if(c&&a.fireEvent('beforesync',b)!==!1){a.isSyncing=!0;d=d||{};a.proxy.batch(Ext.apply(d,{operations:b,listeners:a.getBatchListeners()}))}return a},getBatchListeners:function(){var a=this,b={scope:a,exception:a.onBatchException,complete:a.onBatchComplete};if(a.batchUpdateMode==='operation'){b.operationcomplete=a.onBatchOperationComplete}return b},save:function(){return this.sync.apply(this,arguments)},load:function(b){var a=this;if(typeof b==='function'){b={callback:b}}else {b=b?Ext.Object.chain(b):{}}a.pendingLoadOptions=b;if(a.getAsynchronousLoad()){if(!a.loadTimer){a.loadTimer=Ext.asap(a.flushLoad,a)}}else {a.flushLoad()}return a},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b;a.clearLoadTask();if(!c){return}a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}b=Ext.apply({internalScope:a,internalCallback:a.onProxyLoad,scope:a},c);a.lastOptions=b;b=a.createOperation('read',b);if(a.fireEvent('beforeload',a,b)!==!1){a.onBeforeLoad(b);a.loading=!0;b.execute()}},reload:function(a){var b=Ext.apply({},a,this.lastOptions);return this.load(b)},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,onDestroy:function(){var a=this,b=a.getProxy();a.clearLoadTask();a.getData().destroy();a.data=null;a.setProxy(null);if(b.autoCreated){b.destroy()}a.setModel(null)},hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){Ext.asapCancel(this.loadTimer);this.pendingLoadOptions=this.loadTimer=null},cleanRemoved:function(){var a=this.getRawRemovedRecords(),c,b;if(a){for(b=0,c=a.length;b-1},each:function(f,e){var c=this.data.items,d=c.length,b,a;for(a=0;a0){if(u){f=0;if(d.length>1&&h){f=1}b[i]=d[f].getProperty();b[t]=d[f].getDirection()}else {b[i]=a.encodeSorters(d)}}if(l&&j&&j.length>0){b[l]=a.encodeFilters(j)}return b},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format('{0}={1}',b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(a){var b;if(a){b=a.getUrl()||this.getApi()[a.getAction()]}return b?b:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a){},afterRequest:Ext.emptyFn,destroy:function(){Ext.data.proxy.Proxy.prototype.destroy.call(this);Ext.destroy(this.getReader(),this.getWriter());this.reader=this.writer=null}},0,0,0,0,['proxy.server'],0,[Ext.data.proxy,'Server',Ext.data,'ServerProxy'],0);Ext.cmd.derive('Ext.data.proxy.Ajax',Ext.data.proxy.Server,{alternateClassName:['Ext.data.HttpProxy','Ext.data.AjaxProxy'],isAjaxProxy:!0,defaultActionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'},config:{binary:!1,headers:undefined,paramsAsJson:!1,withCredentials:!1,useDefaultXhrHeader:!0,username:null,password:null,actionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'}},doRequest:function(e){var a=this,g=a.getWriter(),b=a.buildRequest(e),f=a.getMethod(b),c,d;if(g&&e.allowWrite()){b=g.write(b)}b.setConfig({binary:a.getBinary(),headers:a.getHeaders(),timeout:a.getTimeout(),scope:a,callback:a.createRequestCallback(b,e),method:f,useDefaultXhrHeader:a.getUseDefaultXhrHeader(),disableCaching:!1});if(f.toUpperCase()!=='GET'&&a.getParamsAsJson()){d=b.getParams();if(d){c=b.getJsonData();if(c){c=Ext.Object.merge({},c,d)}else {c=d}b.setJsonData(c);b.setParams(undefined)}}if(a.getWithCredentials()){b.setWithCredentials(!0);b.setUsername(a.getUsername());b.setPassword(a.getPassword())}return a.sendRequest(b)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(d){var a=this.getActionMethods(),b=d.getAction(),c;if(a){c=a[b]}return c||this.defaultActionMethods[b]},createRequestCallback:function(b,c){var a=this;return function(f,e,d){if(b===a.lastRequest){a.lastRequest=null}a.processResponse(e,c,b,d)}},destroy:function(){this.lastRequest=null;Ext.data.proxy.Server.prototype.destroy.call(this)}},0,0,0,0,['proxy.ajax'],0,[Ext.data.proxy,'Ajax',Ext.data,'HttpProxy',Ext.data,'AjaxProxy'],0);Ext.cmd.derive('Ext.data.reader.Json',Ext.data.reader.Reader,{alternateClassName:'Ext.data.JsonReader',config:{record:null,metaProperty:'metaData',useSimpleAccessors:!1,preserveRawData:!1},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},readRecords:function(a,e,d){var b=this,c;if(b.getMeta){c=b.getMeta(a);if(c){b.onMetaChange(c)}}else {if(a.metaData){b.onMetaChange(a.metaData)}}return Ext.data.reader.Reader.prototype.readRecords.call(this,a,e,d)},getResponseData:function(b){var a;try{return Ext.decode(b.responseText)}catch(c){a=this.createReadError(c.message);Ext.Logger.warn('Unable to parse the JSON returned by the server');this.fireEvent('exception',this,b,a);return a}},buildExtractors:function(){var a=this,b,c;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){b=a.getMetaProperty();c=a.getRootProperty();if(c){a.getRoot=a.getAccessor(c)}else {a.getRoot=Ext.identityFn}if(b){a.getMeta=a.getAccessor(b)}}},extractData:function(a,f){var e=this.getRecord(),d=[],c,b;if(e){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b1||e&&!g){b+=d}else {if(k){i=!1;if(l){++e}else {if(g){--e;i=!0}}if(b){if(i){b='['+b+']'}else {b='.'+b}j+=b;m.push(''+j);b=''}}}}f=m.join(' && ');f=Ext.functionFactory('raw','return '+f)}return f}}(),createFieldAccessor:function(b){var e=this,a=b.mapping,c=a||a===0,d=c?a:b.name;if(c){if(typeof d==='function'){return function(a){return b.mapping(a,e)}}else {return e.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?'simple':'';return this.$className+a+b},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot}}},0,0,0,0,['reader.json'],0,[Ext.data.reader,'Json',Ext.data,'JsonReader'],0);Ext.cmd.derive('Ext.data.writer.Json',Ext.data.writer.Writer,{alternateClassName:'Ext.data.JsonWriter',config:{rootProperty:undefined,encode:!1,allowSingle:!0,expandData:!1},getExpandedData:function(f){var h=f.length,g=0,a,c,b,d,e,i=function(c,b){var a={};a[c]=b;return a};for(;g0){e=a[c];for(;d>0;d--){e=i(b[d],e)}a[b[0]]=a[b[0]]||{};Ext.Object.merge(a[b[0]],e);delete a[c]}}}}return f},writeRecords:function(b,a){var c=this,e=c.getRootProperty(),d,g,f;if(c.getExpandData()){a=c.getExpandedData(a)}if(c.getAllowSingle()&&a.length===1){a=a[0];g=!0}f=this.getTransform();if(f){a=f(a,b)}if(c.getEncode()){if(e){b.setParam(e,Ext.encode(a))}else {}}else {if(g||a&&a.length){d=b.getJsonData()||{};if(e){d[e]=a}else {d=a}b.setJsonData(d)}}return b}},0,0,0,0,['writer.json'],0,[Ext.data.writer,'Json',Ext.data,'JsonWriter'],0);Ext.cmd.derive('Ext.util.Group',Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001},0,0,0,0,0,0,[Ext.util,'Group'],0);Ext.cmd.derive('Ext.util.SorterCollection',Ext.util.Collection,{isSorterCollection:!0,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(b){var a=this;a.sortFn=Ext.util.Sorter.createComparator(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeSorter)},addSort:function(b,c,d){var a=this,f,j,k,g,h,i,e;if(!b){a.beginUpdate();a.endUpdate()}else {g=a.getOptions();if(b instanceof Array){e=b;d=c;c=null}else {if(Ext.isString(b)){if(!(i=a.get(b))){e=[{property:b,direction:c||g.getDefaultSortDirection()}]}else {e=[i]}}else {if(Ext.isFunction(b)){e=[{sorterFn:b,direction:c||g.getDefaultSortDirection()}]}else {e=[b];d=c;c=null}}}d=a._sortModes[d||'replace'];h=a.getAt(0);f=a.length;j=d.append?f:0;a.beginUpdate();a.splice(j,d.replace?f:0,e);if(d.multi){f=a.length;k=g.getMultiSortLimit();if(f>k){a.removeAt(k,f)}}if(i&&c){i.setDirection(c)}else {if(j===0&&h&&h===a.getAt(0)){h.toggle()}}a.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(d){var c=this.items,e=c.length,a,b;for(a=0;ad+1||!Ext.isIterable(b)){b=Ext.Array.slice(e,d)}var j=k.items,l=b.length,c=[],f,g,i,a,h;for(f=0;f0;){g=j[i];if(g.getSorterFn()===a){c.push(g)}}}}}}b=c;b.$cloned=!0}return b},getOptions:function(){return this.$sortable||this}},1,0,0,0,0,0,[Ext.util,'SorterCollection'],0);Ext.cmd.derive('Ext.util.FilterCollection',Ext.util.Collection,{isFilterCollection:!0,$filterable:null,filterFn:null,constructor:function(b){var a=this;a.filterFn=Ext.util.Filter.createFilterFn(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},decodeFilter:function(b){var d=this.getOptions(),c=d.getRootProperty(),a;if(b.isFilter){if(!b.getRoot()){b.setRoot(c)}}else {a={root:c};if(Ext.isFunction(b)){a.filterFn=b}else {a=Ext.apply(a,b);if(a.fn){a.filterFn=a.fn;delete a.fn}if(Ext.util.Filter.isInvalid(a)){return !1}}b=new Ext.util.Filter(a)}return b},decodeRemoveItems:function(f,e){var p=this,b=e===undefined?f:f[e];if(!b.$cloned){if(f.length>e+1||!Ext.isIterable(b)){b=Ext.Array.slice(f,e)}var k=p.items,o=b.length,h=[],a,g,l,n,m,c,d,j,i;for(g=0;g0;){c=k[j];d=!1;if(m){d=c.getProperty()===a}else {if(l){d=c.getFilterFn()===a}else {if(n){d=c.getProperty()===a.property&&c.getValue()===a.value}}}if(d){h.push(c)}}}}b=h;b.$cloned=!0}return b},getOptions:function(){return this.$filterable||this}},1,0,0,0,0,0,[Ext.util,'FilterCollection'],0);Ext.cmd.derive('Ext.util.GroupCollection',Ext.util.Collection,{isGroupCollection:!0,config:{grouper:null,itemRoot:null},observerPriority:-100,onCollectionAdd:function(b,a){this.addItemsToGroups(b,a.items)},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){var c=a.item;if(!a.indexChanged){this.syncItemGrouping(b,c,b.getKey(c),a.oldKey,a.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(a){this.removeAll();this.addItemsToGroups(a,a.items)},onCollectionRemove:function(k,j){var d=this,g=d.changeDetails,b,h,a,e,i,c,f;if(g){f=g.item;a=d.findGroupForItem(f);b=[];if(a){b.push({group:a,items:[f]})}}else {b=d.groupItems(k,j.items,!1)}for(e=0,i=b.length;e0&&i.getSorters().getCount()===0){k=i.indexOf(a.items[0]);if(o-1){b=[c];d=1}else {d=0}}else {b=[];for(g=0,d=c.length;g=0;a--){d=c[a];d.reject();if(!g){b.insert(d.removedFrom||0,d)}}if(g){h.setAutoSort(i);b.add(c)}c.length=0}b.endUpdate();Ext.resumeLayouts(!0)},onDestroy:function(){var a=this,c=a.loadTask,d=a.getData(),b=d.getSource();a.clearData();Ext.data.ProxyStore.prototype.onDestroy.call(this);a.setSession(null);a.observers=null;if(c){c.cancel();a.loadTask=null}if(b){b.destroy()}},privates:{fetch:function(a){a=Ext.apply({},a);this.setLoadOptions(a);var b=this.createOperation('read',a);b.execute()},onBeforeLoad:function(a){this.callObservers('BeforeLoad',[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,a,b)},onRemoteSortSet:function(b,a){var c=this.getData();if(b){c.setSorters(a?null:b)}c.setAutoGroup(!a);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,a)},isMoving:function(a,f){var c=this.moveMap,b=0,e,d;if(c){if(a){if(Ext.isArray(a)){for(d=0,e=a.length;d-1}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Store'],0);Ext.cmd.derive('Ext.app.route.Queue',Ext.Base,{queue:null,token:null,constructor:function(a){Ext.apply(this,a);this.queue=new Ext.util.MixedCollection()},queueAction:function(a,b){this.queue.add({route:a,args:b})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var c=this.queue,a=c.removeAt(0),b;if(a){b=a&&a.route;b.execute(this.token,a.args,this.onActionExecute,this)}},onActionExecute:function(a){if(a){this.clearQueue()}else {this.runQueue()}}},1,0,0,0,0,0,[Ext.app.route,'Queue'],0);Ext.cmd.derive('Ext.app.route.Route',Ext.Base,{action:null,conditions:null,controller:null,allowInactive:!1,url:null,before:null,caseInsensitive:!1,matcherRegex:null,paramMatchingRegex:null,paramsInMatchString:null,constructor:function(c){var a=this,b;Ext.apply(a,c,{conditions:{}});b=a.url;a.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);a.paramsInMatchString=b.match(a.paramMatchingRegex)||[];a.matcherRegex=a.createMatcherRegex(b)},recognize:function(b){var a=this,d=a.controller,e,c;if((a.allowInactive||d.isActive())&&a.recognizes(b)){e=a.matchesFor(b);c=b.match(a.matcherRegex);c.shift();return Ext.applyIf(e,{controller:d,action:a.action,historyUrl:b,args:c})}return !1},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(h,d,f,g){var e=d.args||[],a=this.before,c=this.controller,b=this.createCallback(d,f,g);if(a){e.push(b);if(Ext.isString(a)){a=this.before=c[a]}if(a){a.apply(c,e)}}else {b.resume()}},matchesFor:function(f){var b={},d=this.paramsInMatchString,c=f.match(this.matcherRegex),a=0,e=d.length;c.shift();for(;a0){c=a.substring(0,d);b=a.substring(d+1)+'.'+c}else {if(a.indexOf('.')>0&&(Ext.ClassManager.isCreated(a)||this.hasRegisteredPrefix(a))){b=a}else {if(f){b=f+'.'+g+'.'+(e?e+'.'+a:a);c=a}else {b=a}}}return {absoluteName:b,shortName:c}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:!0,moduleClassName:null},onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,i){var g=Ext.app.Controller,h=[],e,f;f=j.prototype;e=g.resolveNamespace(j,i);if(e){f.$namespace=e}g.processDependencies(f,h,e,'model',i.models);g.processDependencies(f,h,e,'view',i.views);g.processDependencies(f,h,e,'store',i.stores);g.processDependencies(f,h,e,'controller',i.controllers);Ext.require(h,Ext.Function.pass(b,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.apply(this,arguments)},normalizeRefs:function(a){var c=this,b=[];if(a){if(Ext.isObject(a)){Ext.Object.each(a,function(d,c){if(Ext.isString(c)){c={selector:c}}c.ref=d;b.push(c)})}else {if(Ext.isArray(a)){b=Ext.Array.merge(b,a)}}}a=c.refs;if(a){c.refs=null;a=c.normalizeRefs(a);if(a){b=Ext.Array.merge(b,a)}}return b},getRefMap:function(){var e=this,a=e._refMap,b,d,f,c;if(!a){b=e.getRefs();a=e._refMap={};if(b){for(c=0,f=b.length;c0){d=c[b];a.map[a.getKey(d)]=b}++a.generation}}},1,0,0,0,0,0,[Ext.util,'Bag'],0);Ext.cmd.derive('Ext.util.Scheduler',Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:!1,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var a=this,b=a.items;if(b===a.firing){a.items=b=b.clone()}c.id=c.id||++a.nextId;c.scheduler=a;b.add(c);if(!a.sortMap){a.orderedItems=null}},remove:function(c){var a=this,b=a.items;if(a.destroyed){return}if(b===a.firing){a.items=b=b.clone()}if(c.scheduled){a.unscheduleItem(c);c.scheduled=!1}b.remove(c);a.orderedItems=null},sort:function(){var a=this,b=a.items,f={},e=a.getPreSort(),c,d;a.orderedItems=[];a.sortMap=f;if(e){b.sort(e)}b=b.items;for(c=0;c0;){c[d].stub=b}}return b},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return !0}}return !1},onSchedule:function(){for(var c,e,b,a,d=this.parent;d;d=d.parent){a=d.bindings;if(a){for(c=0,e=a.length;c '+a.binding.getFullName()+')')},getDataObject:function(){var a=this.binding;return a&&a.getDataObject()},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isLoading:function(){var a=this.binding;return a?a.isLoading():!1},link:function(c,b){var a=this,d=a.binding;if(d){d.destroy()}b=a.target=b||a.owner;a.linkDescriptor=c;a.binding=b.bind(c,a.onChange,a);a.binding.deep=!0},onChange:function(){this.invalidate(!0)},react:function(){var a=this,b=a.owner.linkData;b[a.name]=a.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var c=this,b=Ext.app.bind.Stub.prototype.collect.call(this),a=c.binding?1:0;return b+a},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}},0,0,0,0,0,0,[Ext.app.bind,'LinkStub'],0);Ext.cmd.derive('Ext.app.bind.RootStub',Ext.app.bind.AbstractStub,{isRootStub:!0,depth:0,createRootChild:function(a,j){var e=this,d=e.owner,i=d.getData(),g=e.children,c=g&&g[a],f=c?null:e,h,b;if(j||i.hasOwnProperty(a)||!(h=d.getParent())){b=new Ext.app.bind.Stub(d,a,f)}else {b=new Ext.app.bind.LinkStub(d,a,c?null:f);b.link('{'+a+'}',h)}if(c){c.graft(b)}return b},createStubChild:function(a){return this.createRootChild(a,!0)},descend:function(a,g){var f=this,d=f.children,b=g||0,e=a[b++],c=d&&d[e]||f.createRootChild(e);if(b0;){if(a[b].isLoading()){return !0}}return !1},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var b=this.bindings,d=b.length,a,c;for(a=0;a-1}}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Controller'],0);Ext.cmd.derive('Ext.data.PageMap',Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:''},clear:function(b){var a=this;a.pageMapGeneration=(a.pageMapGeneration||0)+1;a.indexMap={};Ext.util.LruCache.prototype.clear.call(this,b)},forEach:function(k,f){var d=this,b=Ext.Object.getKeys(d.map),h=b.length,j=d.getPageSize(),a,c,e,g,i;for(a=0;ad},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(l,f){f--;if(!this.hasRange(l,f)){Ext.raise('PageMap asked for range which it does not have')}var c=this,k=Ext.Array,e=c.getPageSize(),g=c.getPageFromRecordIndex(l),h=c.getPageFromRecordIndex(f),m=(g-1)*e,n=h*e-1,a=g,j=[],d,i,b;for(;a<=h;a++){if(a===g){d=l-m;b=d>0}else {d=0;b=!1}if(a===h){i=e-(n-f);b=b||i=g){b=g-1;c=Math.max(b-h,0)}if(a.rangeCached(c,Math.min(b,a.totalCount))){a.loading=!1;f.un('pageadd',e);l=f.getRange(c,b+1);a.fireEvent('load',a,l,!0);a.fireEvent('refresh',a)}};h=Math.ceil((a.getLeadingBufferZone()+a.getTrailingBufferZone())/2);if(a.lastRequestStart&&a.preserveScrollOnReload){c=a.lastRequestStart;b=a.lastRequestEnd;i=a.getTotalCount()}else {c=d.start||0;b=c+(d.count||a.getPageSize())-1}f.clear(!0);delete a.totalCount;c=Math.max(c-h,0);b=Math.min(b+h,i);j=a.getPageFromRecordIndex(c);k=a.getPageFromRecordIndex(b);a.loading=!0;d.waitForReload=e;f.on('pageadd',e);for(g=j;g<=k;g++){a.prefetchPage(g,d)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},clearData:function(c){var b=this,a=b.getData();if(a){a.clear()}},getCount:function(){return this.totalCount||0},getRange:function(c,b,f){var a=this,k=a.totalCount-1,m=a.lastRequestStart,l=[],h=a.getData(),g,d,e,i,j;f=Ext.apply({prefetchStart:c,prefetchEnd:b},f);b=b>=a.totalCount?k:b;d=c===0?0:c-1;e=b===k?b:b+1;a.lastRequestStart=c;a.lastRequestEnd=b;if(a.rangeCached(d,e)){a.onRangeAvailable(f);l=h.getRange(c,b+1)}else {a.fireEvent('cachemiss',a,c,b);i=a.getPageFromRecordIndex(d);j=a.getPageFromRecordIndex(e);g=function(l,k,m){if(k>=i&&k<=j&&a.rangeCached(d,e)){a.fireEvent('cachefilled',a,c,b);h.un('pageadd',g);a.onRangeAvailable(f)}};h.on('pageadd',g);a.prefetchRange(c,b)}a.primeCache(c,b,c-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var a=this,c;if(b&&typeof b==='string'){c=a.grouper;if(!c){a.grouper=new Ext.util.Grouper({property:b,direction:d||'ASC',root:'data'})}else {if(d===undefined){c.toggle()}else {c.setDirection(d)}}}else {a.grouper=b?a.getSorters().decodeSorter(b,'Ext.util.Grouper'):null}a.getData().clear();a.loadPage(1,{callback:function(){a.fireEvent('groupchange',a,a.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(c){var a=this,b=a.getPurgePageCount();return b?Math.max(a.getData().getMaxSize()||0,Math.ceil((c+a.getTrailingBufferZone()+a.getLeadingBufferZone())/a.getPageSize())*2+b):0},loadToPrefetch:function(b){var a=this,f=b,h,d,i,e=b.start,k=b.start+b.limit-1,m=a.getViewSize()||b.limit,c=Math.min(k,b.start+m-1),p=a.getPageFromRecordIndex(Math.max(e-a.getTrailingBufferZone(),0)),q=a.getPageFromRecordIndex(k+a.getLeadingBufferZone()),g=a.getData(),j=function(){d=d||[];if(b.loadCallback){b.loadCallback.call(b.scope||a,d,o,!0)}if(b.callback){b.callback.call(b.scope||a,d,e||0,k||0,b)}},n=function(){a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('load',a,d,!0)},l=function(){if(a.rangeCached(e,c)){a.loading=!1;d=g.getRange(e,c+1);g.un('pageadd',l);if(a.hasListeners.guaranteedrange){a.guaranteeRange(e,c,b.callback,b.scope)}j();n()}},o;g.setMaxSize(a.calculatePageCacheSize(m));if(a.fireEvent('beforeload',a,b)!==!1){delete a.totalCount;a.loading=!0;if(b.callback){f=Ext.apply({},b);delete f.callback}a.on('prefetch',function(m,e,d,k){o=k;if(d){if(i=a.getTotalCount()){g.on('pageadd',l);c=Math.min(c,i-1);q=a.getPageFromRecordIndex(Math.min(c+a.getLeadingBufferZone(),i-1));for(h=p+1;h<=q;++h){a.prefetchPage(h,f)}}else {j();n()}}else {a.loading=!1;j();a.fireEvent('load',a,e,!1)}},null,{single:!0});a.prefetchPage(p,f)}},prefetch:function(b){var a=this,c=a.getPageSize(),d=a.getData(),e,f;if(c){if(a.lastPageSize&&c!=a.lastPageSize){Ext.raise('pageSize cannot be dynamically altered')}if(!d.getPageSize()){d.setPageSize(c)}}else {a.pageSize=d.setPageSize(c=b.limit)}a.lastPageSize=c;if(!b.page){b.page=a.getPageFromRecordIndex(b.start);b.start=(b.page-1)*c;b.limit=Math.ceil(b.limit/c)*c}f=a.pageRequests[b.page];if(!f||f.getOperation().pageMapGeneration!==d.pageMapGeneration){b=Ext.apply({action:'read',filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper(),internalCallback:a.onProxyPrefetch,internalScope:a},b);e=a.createOperation('read',b);e.pageMapGeneration=d.pageMapGeneration;if(a.fireEvent('beforeprefetch',a,e)!==!1){a.pageRequests[b.page]=e.execute();if(a.getProxy().isSynchronous){delete a.pageRequests[b.page]}}}return a},onPageMapClear:function(){var a=this,e=a.wasLoading,d=a.pageRequests,b=a.getData(),c;b.clearListeners();b.on('clear',a.onPageMapClear,a);a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.loading=!0;a.totalCount=0;for(c in d){if(d.hasOwnProperty(c)){d[c].getOperation().abort()}}a.fireEvent('clear',a);a.loading=e},prefetchPage:function(d,e){var a=this,b=a.getPageSize(),f=(d-1)*b,c=a.totalCount;if(c!==undefined&&a.data.getCount()===c){return}a.prefetch(Ext.applyIf({page:d,start:f,limit:b},e))},onProxyPrefetch:function(b){if(this.destroyed){return}var a=this,g=b.getResultSet(),e=b.getRecords(),d=b.wasSuccessful(),i=b.getPage(),c=b.waitForReload,k=a.totalCount,h=a.pageRequests,j,f;if(b.pageMapGeneration===a.getData().pageMapGeneration){if(g){a.totalCount=g.getTotal();if(a.totalCount!==k){a.fireEvent('totalcountchange',a.totalCount)}}if(i!==undefined){delete a.pageRequests[i]}a.loading=!1;a.fireEvent('prefetch',a,e,d,b);if(d){if(a.totalCount===0){if(c){for(j in h){f=h[j].getOperation();if(f.waitForReload===c){delete f.waitForReload}}a.getData().un('pageadd',c);a.fireEvent('load',a,[],!0);a.fireEvent('refresh',a)}}else {a.cachePage(e,b.getPage())}}Ext.callback(b.getCallback(),b.getScope()||a,[e,b,d])}},cachePage:function(b,d){var a=this,e=b.length,c;if(!Ext.isDefined(a.totalCount)){a.totalCount=b.length;a.fireEvent('totalcountchange',a.totalCount)}for(c=0;cf-1?f-1:a.prefetchEnd,d;b=Math.max(0,b);d=c.getData().getRange(e,b+1);if(a.fireEvent!==!1){c.fireEvent('guaranteedrange',d,e,b,a)}if(a.callback){a.callback.call(a.scope||c,d,e,b,a)}},guaranteeRange:function(d,e,b,c,a){a=Ext.apply({callback:b,scope:c},a);this.getRange(d,e+1,a)},prefetchRange:function(c,d){var a=this,e,f,b,g=a.getData();if(!a.rangeCached(c,d)){e=a.getPageFromRecordIndex(c);f=a.getPageFromRecordIndex(d);g.setMaxSize(a.calculatePageCacheSize(d-c+1));for(b=e;b<=f;b++){if(!a.pageCached(b)){a.prefetchPage(b)}}}},primeCache:function(a,b,g){var c=this,f=c.getLeadingBufferZone(),e=c.getTrailingBufferZone(),h=c.getPageSize(),d=c.totalCount;if(g===-1){a=Math.max(a-f,0);b=Math.min(b+e,d-1)}else {if(g===1){a=Math.max(Math.min(a-e,d-h),0);b=Math.min(b+f,d-1)}else {a=Math.min(Math.max(Math.floor(a-(f+e)/2),0),d-c.pageSize);b=Math.min(Math.max(Math.ceil(b+(f+e)/2),0),d-1)}}c.prefetchRange(a,b)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else {this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent('beforesort',a,b);a.clearAndLoad({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('sort',a,b)}},clearAndLoad:function(a){this.getData().clear();this.loadPage(1,a)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return !1}}},0,0,0,0,['store.buffered'],0,[Ext.data,'BufferedStore'],0);Ext.cmd.derive('Ext.data.NodeInterface',Ext.Base,{statics:{decorate:function(f){var a=Ext.data.schema.Schema.lookupEntity(f),e=a.prototype,c,b,d;if(!a.prototype.isObservable){a.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(e.isNode){return}c=e.idProperty;b=a.getField(c);d=b.type;a.override(this.getPrototypeBody());a.addFields([{name:'parentId',type:d,defaultValue:null,allowNull:b.allowNull},{name:'index',type:'int',defaultValue:-1,persist:!1,convert:null},{name:'depth',type:'int',defaultValue:0,persist:!1,convert:null},{name:'expanded',type:'bool',defaultValue:!1,persist:!1,convert:null},{name:'expandable',type:'bool',defaultValue:!0,persist:!1,convert:null},{name:'checked',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'leaf',type:'bool',defaultValue:!1},{name:'cls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'iconCls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'icon',type:'string',defaultValue:'',persist:!1,convert:null},{name:'root',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isLast',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isFirst',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'allowDrop',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'allowDrag',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'loaded',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'loading',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'href',type:'string',defaultValue:'',persist:!1,convert:null},{name:'hrefTarget',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtip',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtitle',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qshowDelay',type:'int',defaultValue:0,persist:!1,convert:null},{name:'children',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'visible',type:'boolean',defaultValue:!0,persist:!1},{name:'text',type:'string',persist:!1}])},getPrototypeBody:function(){var a={idchanged:!0,append:!0,remove:!0,move:!0,insert:!0,beforeappend:!0,beforeremove:!0,beforemove:!0,beforeinsert:!0,expand:!0,collapse:!0,beforeexpand:!0,beforecollapse:!0,sort:!0},b={silent:!0};return {isNode:!0,firstChild:null,lastChild:null,parentNode:null,previousSibling:null,nextSibling:null,constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.callParent(arguments);a.childNodes=[];return a},createNode:function(a){var b=this,j=b.childType,h,f,g,c,d,e,i=b.self;if(!a.isModel){if(j){i=b.schema.getEntity(j)}else {h=b.getTreeStore();f=h&&h.getProxy().getReader();g=b.getProxy();c=g?g.getReader():null;d=!f||c&&c.initialConfig.typeProperty?c:f;if(d){e=d.getTypeProperty();if(e){i=d.getChildType(b.schema,a,e)}}}a=new i(a)}if(!a.childNodes){a.firstChild=a.lastChild=a.parentNode=a.previousSibling=a.nextSibling=null;a.childNodes=[]}return a},isLeaf:function(){return this.get('leaf')===!0},setFirstChild:function(a){this.firstChild=a},setLastChild:function(a){this.lastChild=a},updateInfo:function(o,k){var a=this,i=a.data,r=i.depth,m={},n=a.childNodes,q=n.length,s=a.phantom,t=a.fields,c=a.modified||(a.modified={}),b,e,j,d,p,l=k.parentId,g,h,f;for(b in k){j=t[a.fieldOrdinals[b]];e=k[b];h=j&&j.persist;d=i[b];g=h&&b==='index'&&d!==-1&&(l&&l!==c.parentId);if(!g&&a.isEqual(d,e)){continue}i[b]=e;if(h){if(!g&&c.hasOwnProperty(b)){if(a.isEqual(c[b],e)){delete c[b];a.dirty=!1;for(p in c){if(c.hasOwnProperty(p)){a.dirty=!0;break}}}}else {a.dirty=!0;c[b]=d}}}if(o){a.commit();a.phantom=s}if(a.data.depth!==r){m={depth:a.data.depth+1};for(f=0;f0},isExpandable:function(){var a=this;if(a.get('expandable')){return !(a.isLeaf()||a.isLoaded()&&!a.phantom&&!a.hasChildNodes())}return !1},triggerUIUpdate:function(){this.callJoined('afterEdit',[])},appendChild:function(b,h,l){var a=this,j,m,c,e,f,k={isLast:!0,parentId:a.getId(),depth:(a.data.depth||0)+1},i,d=a.getTreeStore(),g=d&&d.bulkUpdate;Ext.suspendLayouts();if(Ext.isArray(b)){m=b.length;i=new Array(m);a.callTreeStore('beginFill');for(j=0;j0){if(!e){e=c.getTreeStore().getSortFn()}Ext.Array.sort(a,e);c.setFirstChild(a[0]);c.setLastChild(a[g-1]);for(b=0;b0){d.children=c=[];for(a=0;a1&&!a.getRemoteSort()&&a.getFolderSort()||j.length,e,h,c,d;if(a.needsLocalFilter()){d=a.getFilters().getFilterFn();b[0].set('visible',d(b[0]))}for(c=1;c')}else {b.push('>');if(c=a.tpl){c.applyOut(a.tplData,b)}if(c=a.html){b.push(c)}if(c=a.cn||a.children){e.generateMarkup(c,b)}h=e.closeTags;b.push(h[f]||(h[f]=''))}}}return b},generateStyles:function(c,d,f){var e=d||[],a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];a=this.decamelizeName(a);if(f&&Ext.String.hasHtmlCharacters(b)){b=Ext.String.htmlEncode(b)}e.push(a,':',b,';')}}return d||e.join('')},markup:function(a){if(typeof a==='string'){return a}var b=this.generateMarkup(a,[]);return b.join('')},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(e){var d=this.detachedDiv,b=document.createDocumentFragment(),c,a;d.innerHTML=e;a=d.childNodes;c=a.length;while(c--){b.appendChild(a[0])}return b},createDom:function(e,f){var c=this,d=c.markup(e),b=c.detachedDiv,a;b.innerHTML=d;a=b.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(!0):a},insertHtml:function(g,f,j){var o=this,l,k,n,m,i;g=g.toLowerCase();if(f.insertAdjacentHTML){if(o.ieInsertHtml){i=o.ieInsertHtml(g,f,j);if(i){return i}}l=h[g];if(l){f.insertAdjacentHTML(l[0],j);return f[l[1]]}}else {if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}k=Ext.supports.CreateContextualFragment?f.ownerDocument.createRange():undefined;m='setStart'+(this.endRe.test(g)?'After':'Before');if(e[g]){if(k){k[m](f);i=k.createContextualFragment(j)}else {i=this.createContextualFragment(j)}f.parentNode.insertBefore(i,g===a?f:f.nextSibling);return f[(g===a?'previous':'next')+'Sibling']}else {n=(g===b?'first':'last')+'Child';if(f.firstChild){if(k){try{k[m](f[n]);i=k.createContextualFragment(j)}catch(p){i=this.createContextualFragment(j)}}else {i=this.createContextualFragment(j)}if(g===b){f.insertBefore(i,f.firstChild)}else {f.appendChild(i)}}else {f.innerHTML=j}return f[n]}}},insertBefore:function(c,d,b){return this.doInsert(c,d,b,a)},insertAfter:function(b,c,a){return this.doInsert(b,c,a,d)},insertFirst:function(c,d,a){return this.doInsert(c,d,a,b)},append:function(b,d,a){return this.doInsert(b,d,a,c)},overwrite:function(b,c,e){var d=this,a;b=Ext.getDom(b);c=d.markup(c);if(d.ieOverwrite){a=d.ieOverwrite(b,c)}if(!a){b.innerHTML=c;a=b.firstChild}return e?Ext.get(a):a},doInsert:function(f,j,k,g){var i=this,h;f=f.dom||Ext.getDom(f);if('innerHTML' in f){h=i.insertHtml(g,f,i.markup(j))}else {h=i.createDom(j,null);if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}if(e[g]){f.parentNode.insertBefore(h,g===a?f:f.nextSibling)}else {if(f.firstChild&&g===b){f.insertBefore(h,f.firstChild)}else {f.appendChild(h)}}}return k?Ext.get(h):h},createTemplate:function(b){var a=this.markup(b);return new Ext.Template(a)},createHtml:function(a){return this.markup(a)}}},0,0,0,0,0,0,[Ext.dom,'Helper',Ext,'DomHelper',Ext.core,'DomHelper'],0);Ext.define('Ext.overrides.dom.Helper',function(){var a=/^(?:table|thead|tbody|tr|td)$/i,f=/td|tr|tbody|thead/i,e='',d='
    ',c=e+'',b=''+d,h=c+'',g=''+b;return {override:'Ext.dom.Helper',ieInsertHtml:function(d,b,e){var c=null;if(Ext.isIE9m&&a.test(b.tagName)){c=this.insertIntoTable(b.tagName.toLowerCase(),d,b,e)}return c},ieOverwrite:function(b,c){if(Ext.isIE9m&&a.test(b.tagName)){while(b.firstChild){b.removeChild(b.firstChild)}if(c){return this.insertHtml('afterbegin',b,c)}}},ieTable:function(g,f,e,d){var h=-1,a=this.detachedDiv,b,c;a.innerHTML=[f,e,d].join('');while(++ha.interval){a.collect()}a.timerId=Ext.interval(a.collect,a.interval)}},1,0,0,0,0,0,[Ext.dom,'GarbageCollector'],0);Ext.cmd.derive('Ext.event.gesture.Recognizer',Ext.Base,{priority:0,handledEvents:[],config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(a){this.initConfig(a);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:Ext.emptyFn,onTouchCancel:Ext.emptyFn,fail:function(){return !1},fire:function(){this.getOnRecognized().apply(this.getCallbackScope(),arguments)},reset:Ext.emptyFn},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.event.gesture,'Recognizer'],0);Ext.cmd.derive('Ext.event.gesture.SingleTouch',Ext.event.gesture.Recognizer,{inheritableStatics:{NOT_SINGLE_TOUCH:'Not Single Touch',TOUCH_MOVED:'Touch Moved',EVENT_CANCELED:'Event Canceled'},onTouchStart:function(a){if(a.touches.length>1){return this.fail(this.self.NOT_SINGLE_TOUCH)}},onTouchCancel:function(){return !1}},0,0,0,0,0,0,[Ext.event.gesture,'SingleTouch'],0);Ext.cmd.derive('Ext.event.gesture.DoubleTap',Ext.event.gesture.SingleTouch,{priority:300,inheritableStatics:{DIFFERENT_TARGET:'Different Target'},config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:['singletap','doubletap'],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(c){var a=this,b;if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}b=a.lastStartPoint=c.changedTouches[0].point;a.startPoint=a.startPoint||b;a.startTime=c.time;clearTimeout(a.singleTapTimer)},onTouchMove:function(c){var a=this,b=c.changedTouches[0].point;if(Math.abs(b.getDistanceTo(a.lastStartPoint))>=a.getMoveDistance()){a.startPoint=null;return a.fail(a.self.TOUCH_MOVED)}},onTouchEnd:function(b){var a=this,f=a.getMaxDuration(),d=b.time,g=b.target,e=a.lastTapTime,h=a.lastTarget,i=b.changedTouches[0].point,c;a.lastTapTime=d;a.lastTarget=g;if(e){c=d-e;if(c<=f&&Math.abs(i.getDistanceTo(a.startPoint))<=a.getTapDistance()){if(g!==h){return a.fail(a.self.DIFFERENT_TARGET)}a.lastTarget=null;a.lastTapTime=0;a.fire('doubletap',b,{touch:b.changedTouches[0],duration:c});a.startPoint=null;return}}if(d-a.startTime>f){a.fireSingleTap(b)}else {a.setSingleTapTimer(b)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fireSingleTap(b)},a.getMaxDuration())},fireSingleTap:function(b,a){this.fire('singletap',b,{touch:a});this.startPoint=null},reset:function(){var a=this;a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null}},0,0,0,0,0,0,[Ext.event.gesture,'DoubleTap'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)});Ext.cmd.derive('Ext.event.gesture.Drag',Ext.event.gesture.SingleTouch,{priority:100,isStarted:!1,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:['dragstart','drag','dragend','dragcancel'],config:{minDistance:8},constructor:function(){Ext.event.gesture.SingleTouch.prototype.constructor.apply(this,arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0}}},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){if(this.isStarted&&this.lastMoveEvent!==null){this.lastMoveEvent.isStopped=!1;this.onTouchEnd(this.lastMoveEvent)}return !1}this.startTime=a.time;this.startPoint=a.changedTouches[0].point},tryDragStart:function(a){var f=this.startPoint,b=a.changedTouches[0],c=b.point,e=this.getMinDistance(),d=this.info;if(Math.abs(c.getDistanceTo(f))>=e){this.isStarted=!0;this.previousPoint=this.lastPoint=c;this.resetInfo('x',a,b);this.resetInfo('y',a,b);d.time=a.time;this.fire('dragstart',a,d)}},onTouchMove:function(a){if(!this.isStarted){this.tryDragStart(a)}if(!this.isStarted){return}var b=a.changedTouches[0],c=b.point;if(this.lastPoint){this.previousPoint=this.lastPoint}this.lastPoint=c;this.lastMoveEvent=a;this.updateInfo('x',a,b);this.updateInfo('y',a,b);this.info.time=a.time;this.fire('drag',a,this.info)},onAxisDragEnd:function(b,a){var c=a.time-a.previousTime[b];if(c>0){a.flick.velocity[b]=(a[b]-a.previous[b])/c}},resetInfo:function(b,h,g){var f=this.lastPoint[b],d=this.startPoint[b],e=f-d,c=b.toUpperCase(),a=this.info;a.touch=g;a.delta[b]=e;a.absDelta[b]=Math.abs(e);a.previousTime[b]=this.startTime;a.previous[b]=d;a[b]=f;a.direction[b]=0;a['start'+c]=this.startPoint[b];a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=0;a.startTime=this.startTime},updateInfo:function(b,l,k){var e=this,d=e.lastPoint[b],g=e.previousPoint[b],f=e.startPoint[b],i=d-f,a=e.info,h=a.direction,c=b.toUpperCase(),j=a.previous[b];a.touch=k;a.delta[b]=i;a.absDelta[b]=Math.abs(i);if(d!==j&&d!==a[b]){a.previous[b]=a[b];a.previousTime[b]=a.time}a[b]=d;if(d>g){h[b]=1}else {if(dthis.getMaxDuration()){return this.fail(this.self.MAX_DURATION_EXCEEDED)}if(this.isHorizontal&&d>this.getMaxOffset()){this.isHorizontal=!1}if(this.isVertical&&c>this.getMaxOffset()){this.isVertical=!1}if(!this.isVertical||!this.isHorizontal){if(this.isHorizontal&&cj){this.isVertical=!1}if(this.isHorizontal&&i>j){this.isHorizontal=!1}if(this.isVertical&&this.isHorizontal){if(i>h){this.isHorizontal=!1}else {this.isVertical=!1}}if(this.isHorizontal){a=f<0?'left':'right';b=f}else {if(this.isVertical){a=g<0?'up':'down';b=g}}a=this.direction||(this.direction=a);if(a==='up'){b=g*-1}else {if(a==='left'){b=f*-1}}this.distance=b;if(!b){return this.fail(this.self.DISTANCE_NOT_ENOUGH)}if(!this.started){if(a==='right'&&this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='down'&&this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='left'&&o-this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='up'&&n-this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}}}}this.started=!0;this.startTime=c.time;this.fire('edgeswipestart',c,{touch:e,direction:a,distance:b,duration:k})}else {this.fire('edgeswipe',c,{touch:e,direction:a,distance:b,duration:k})}},onTouchEnd:function(a){var b;if(this.onTouchMove(a)!==!1){b=a.time-this.startTime;this.fire('edgeswipeend',a,{touch:a.changedTouches[0],direction:this.direction,distance:this.distance,duration:b})}},onTouchCancel:function(a){this.fire('edgeswipecancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){var a=this;a.started=a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null}},0,0,0,0,0,0,[Ext.event.gesture,'EdgeSwipe'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)});Ext.cmd.derive('Ext.event.gesture.LongPress',Ext.event.gesture.SingleTouch,{priority:400,inheritableStatics:{DURATION_NOT_ENOUGH:'Duration Not Enough'},config:{moveDistance:8,minDuration:1000},handledEvents:['longpress','taphold'],fireLongPress:function(a){this.fire('longpress',a,{touch:a.changedTouches[0],duration:this.getMinDuration()});this.isLongPress=!0},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}this.startPoint=a.changedTouches[0].point;this.isLongPress=!1;this.setLongPressTimer(a)},setLongPressTimer:function(b){var a=this;a.timer=Ext.defer(function(){a.fireLongPress(b)},a.getMinDuration())},onTouchMove:function(b){var a=b.changedTouches[0].point;if(Math.abs(a.getDistanceTo(this.startPoint))>=this.getMoveDistance()){return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(){if(!this.isLongPress){return this.fail(this.self.DURATION_NOT_ENOUGH)}},fail:function(){clearTimeout(this.timer);return Ext.event.gesture.SingleTouch.prototype.fail.apply(this,arguments)},reset:function(){this.isLongPress=this.startPoint=null},fire:function(b){if(b==='longpress'){var a=Array.prototype.slice.call(arguments);a[0]='taphold';this.fire.apply(this,a)}return Ext.event.gesture.SingleTouch.prototype.fire.apply(this,arguments)}},0,0,0,0,0,0,[Ext.event.gesture,'LongPress'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)});Ext.cmd.derive('Ext.event.gesture.MultiTouch',Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:!1,isStarted:!1,onTouchStart:function(a){var b=this.requiredTouchesCount,d=a.touches,c=d.length;if(c===b){this.start(a)}else {if(c>b){this.end(a)}}},onTouchEnd:function(a){this.end(a)},onTouchCancel:function(a){this.end(a,!0);return !1},start:function(){if(!this.isTracking){this.isTracking=!0;this.isStarted=!1}},end:function(b,a){if(this.isTracking){this.isTracking=!1;if(this.isStarted){this.isStarted=!1;this[a?'fireCancel':'fireEnd'](b)}}},reset:function(){this.isTracking=this.isStarted=!1}},0,0,0,0,0,0,[Ext.event.gesture,'MultiTouch'],0);Ext.cmd.derive('Ext.event.gesture.Pinch',Ext.event.gesture.MultiTouch,{priority:600,handledEvents:['pinchstart','pinch','pinchend','pinchcancel'],startDistance:0,lastTouches:null,onTouchMove:function(c){if(!this.isTracking){return}var b=c.touches,e,d,a;e=b[0].point;d=b[1].point;a=e.getDistanceTo(d);if(a===0){return}if(!this.isStarted){this.isStarted=!0;this.startDistance=a;this.fire('pinchstart',c,{touches:b,distance:a,scale:1})}else {this.fire('pinch',c,{touches:b,distance:a,scale:a/this.startDistance})}},fireEnd:function(a){this.fire('pinchend',a)},fireCancel:function(a){this.fire('pinchcancel',a)},fail:function(){return Ext.event.gesture.MultiTouch.prototype.fail.apply(this,arguments)},reset:function(){this.lastTouches=null;this.startDistance=0;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Pinch'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.pinch)});Ext.cmd.derive('Ext.event.gesture.Rotate',Ext.event.gesture.MultiTouch,{priority:700,handledEvents:['rotatestart','rotate','rotateend','rotatecancel'],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(g){if(!this.isTracking){return}var b=g.touches,c=this.lastAngle,i,h,a,e,d,f;i=b[0].point;h=b[1].point;a=i.getAngleTo(h);if(c!==null){f=Math.abs(c-a);e=a+360;d=a-360;if(Math.abs(e-c)=this.getMoveDistance()){this.fire('tapcancel',b,{touch:a});return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(a){this.fire('tap',a,{touch:a.changedTouches[0]})},onTouchCancel:function(a){this.fire('tapcancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){this.startPoint=null}},0,0,0,0,0,0,[Ext.event.gesture,'Tap'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)});Ext.cmd.derive('Ext.event.publisher.Focus',Ext.event.publisher.Dom,{type:'focus',handledEvents:['focusenter','focusleave','focusmove'],handledDomEvents:['focusin','focusout'],doDelegatedEvent:function(a,c){var d=this,b;a=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,a,!1);if(a){if(a.type==='focusout'){if(a.relatedTarget==null){d.processFocusIn(a,a.target,document.body,c)}}else {b=a.relatedTarget;d.processFocusIn(a,b==null||!b.tagName?document.body:b,a.target,c)}}},processFocusIn:function(i,d,e,l){var c=this,h,a,b=[],f,g,j,k;j=Ext.fly(d);k=Ext.fly(e);if(j&&j.isFocusSuspended()||k&&k.isFocusSuspended()){return}for(a=d,h=Ext.dom.Element.getCommonAncestor(e,d,!0);a&&a!==h;a=a.parentNode){b.push(a)}if(b.length){f=c.createSyntheticEvent('focusleave',i,d,e);c.publish('focusleave',b,f);if(f.isStopped){return}}b.length=0;for(a=e;a!==h;a=a.parentNode){b.push(a)}g=c.createSyntheticEvent('focusenter',i,e,d);if(b.length){c.publish('focusenter',b,g);if(g.isStopped){return}}b=c.getPropagatingTargets(h);if(b.length){f=c.createSyntheticEvent('focusmove',i,e,d);c.publish('focusmove',b,f);if(f.isStopped){return}}if(l){c.afterEvent(i)}Ext.GlobalEvents.fireEvent('focus',{event:g,toElement:e,fromElement:d})},createSyntheticEvent:function(d,c,e,b){var a=new Ext.event.Event(c);a.type=d;a.relatedTarget=b;a.target=e;return a}},0,0,0,0,0,0,[Ext.event.publisher,'Focus'],function(a){var b;a.instance=new a();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:['focus','blur'],doDelegatedEvent:function(c,e){var d=this;c=d.callSuper([c,!1]);if(c){clearTimeout(b);b=0;if(c.type==='blur'){var f=c.target===window?document.body:c.target;b=setTimeout(function(){b=0;d.processFocusIn(c,f,document.body,e);a.previousActiveElement=null},0);if(c.target===window||c.target===document){a.previousActiveElement=null}else {a.previousActiveElement=c.target}}else {d.processFocusIn(c,a.previousActiveElement||document.body,c.target===window?document.body:c.target,e)}}}})}});Ext.cmd.derive('Ext.fx.State',Ext.Base,{isAnimatable:{'background-color':!0,'background-image':!0,'background-position':!0,'border-bottom-color':!0,'border-bottom-width':!0,'border-color':!0,'border-left-color':!0,'border-left-width':!0,'border-right-color':!0,'border-right-width':!0,'border-spacing':!0,'border-top-color':!0,'border-top-width':!0,'border-width':!0,'bottom':!0,'color':!0,'crop':!0,'font-size':!0,'font-weight':!0,'height':!0,'left':!0,'letter-spacing':!0,'line-height':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'opacity':!0,'outline-color':!0,'outline-offset':!0,'outline-width':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'right':!0,'text-indent':!0,'text-shadow':!0,'top':!0,'vertical-align':!0,'visibility':!0,'width':!0,'word-spacing':!0,'z-index':!0,'zoom':!0,'transform':!0},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(d,a){var g=this.data,e=Ext.isArray(a),b=g.transform,c,f;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof d=='string'){switch(d){case 'translate':if(e){c=a.length;if(c==0){break}b.translateX=a[0];if(c==1){break}b.translateY=a[1];if(c==2){break}b.translateZ=a[2]}else {b.translateX=a};break;case 'rotate':if(e){c=a.length;if(c==0){break}b.rotateX=a[0];if(c==1){break}b.rotateY=a[1];if(c==2){break}b.rotateZ=a[2]}else {b.rotate=a};break;case 'scale':if(e){c=a.length;if(c==0){break}b.scaleX=a[0];if(c==1){break}b.scaleY=a[1];if(c==2){break}b.scaleZ=a[2]}else {b.scaleX=a;b.scaleY=a};break;case 'skew':if(e){c=a.length;if(c==0){break}b.skewX=a[0];if(c==1){break}b.skewY=a[1]}else {b.skewX=a};break;default:b[d]=a;}}else {for(f in d){if(d.hasOwnProperty(f)){a=d[f];this.setTransform(f,a)}}}},set:function(b,a){var d=this.data,c;if(typeof b!='string'){for(c in b){a=b[c];if(c==='transform'){this.setTransform(a)}else {d[c]=a}}}else {if(b==='transform'){this.setTransform(a)}else {d[b]=a}}return this},unset:function(b){var a=this.data;if(a.hasOwnProperty(b)){delete a[b]}return this},getData:function(){return this.data}},1,0,0,0,0,0,[Ext.fx,'State'],0);Ext.cmd.derive('Ext.fx.animation.Abstract',Ext.Evented,{isAnimation:!0,config:{name:'',element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:'linear',iteration:1,direction:'normal',delay:0,onBeforeStart:null,callback:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:!1,replacePrevious:!0},STATE_FROM:'0%',STATE_TO:'100%',DIRECTION_UP:'up',DIRECTION_DOWN:'down',DIRECTION_LEFT:'left',DIRECTION_RIGHT:'right',stateNameRegex:/^(?:[\d\.]+)%$/,constructor:function(){this.states={};Ext.Evented.prototype.constructor.apply(this,arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(b){var c=this.stateNameRegex,a;for(a in b){if(c.test(a)){this.setState(a,b[a])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent('stop',this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(c,d){var b=this.getStates(),a;a=Ext.factory(d,Ext.fx.State,b[c]);if(a){b[c]=a}return this},getState:function(a){return this.getStates()[a]},getData:function(){var a=this,b=a.getStates(),d={},e=a.getBefore(),f=a.getAfter(),k=b[a.STATE_FROM],l=b[a.STATE_TO],i=k.getData(),j=l.getData(),h,c,g;for(c in b){if(b.hasOwnProperty(c)){g=b[c];h=g.getData();d[c]=h}}return {before:e?e.getData():{},after:f?f.getData():{},states:d,from:i,to:j,duration:a.getDuration(),iteration:a.getIteration(),direction:a.getDirection(),easing:a.getEasing(),delay:a.getDelay(),onEnd:a.getOnEnd(),onBeforeEnd:a.getOnBeforeEnd(),onBeforeStart:a.getOnBeforeStart(),scope:a.getScope(),preserveEndState:a.getPreserveEndState(),replacePrevious:a.getReplacePrevious()}}},1,0,0,0,0,0,[Ext.fx.animation,'Abstract'],0);Ext.cmd.derive('Ext.fx.animation.Slide',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.SlideIn',config:{direction:'left',out:!1,offset:0,easing:'auto',containerBox:'auto',elementBox:'auto',isElementBoxFit:!0,useCssTransform:!0},reverseDirectionMap:{up:'down',down:'up',left:'right',right:'left'},applyEasing:function(a){if(a==='auto'){return 'ease-'+(this.getOut()?'in':'out')}return a},getContainerBox:function(){var a=this._containerBox;if(a==='auto'){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==='auto'){a=this.getElement().getBox()}return a},getData:function(){var o=this.getElementBox(),b=this.getContainerBox(),a=o?o:b,j=this.getFrom(),m=this.getTo(),d=this.getOut(),c=this.getOffset(),g=this.getDirection(),n=this.getUseCssTransform(),p=this.getReverse(),e=0,f=0,h,i,k,l;if(p){g=this.reverseDirectionMap[g]}switch(g){case this.DIRECTION_UP:if(d){f=b.top-a.top-a.height-c}else {f=b.bottom-a.bottom+a.height+c};break;case this.DIRECTION_DOWN:if(d){f=b.bottom-a.bottom+a.height+c}else {f=b.top-a.height-a.top-c};break;case this.DIRECTION_RIGHT:if(d){e=b.right-a.right+a.width+c}else {e=b.left-a.left-a.width-c};break;case this.DIRECTION_LEFT:if(d){e=b.left-a.left-a.width-c}else {e=b.right-a.right+a.width+c};break;}h=d?0:e;i=d?0:f;if(n){j.setTransform({translateX:h,translateY:i})}else {j.set('left',h);j.set('top',i)}k=d?e:0;l=d?f:0;if(n){m.setTransform({translateX:k,translateY:l})}else {m.set('left',k);m.set('top',l)}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.slide','animation.slideIn'],0,[Ext.fx.animation,'Slide',Ext.fx.animation,'SlideIn'],0);Ext.cmd.derive('Ext.fx.animation.SlideOut',Ext.fx.animation.Slide,{config:{out:!0}},0,0,0,0,['animation.slideOut'],0,[Ext.fx.animation,'SlideOut'],0);Ext.cmd.derive('Ext.fx.animation.Fade',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.FadeIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(c){var b=this.getTo(),a=this.getFrom();if(c){a.set('opacity',1);b.set('opacity',0)}else {a.set('opacity',0);b.set('opacity',1)}}},0,0,0,0,['animation.fade','animation.fadeIn'],0,[Ext.fx.animation,'Fade',Ext.fx.animation,'FadeIn'],0);Ext.cmd.derive('Ext.fx.animation.FadeOut',Ext.fx.animation.Fade,{config:{out:!0,before:{}}},0,0,0,0,['animation.fadeOut'],0,[Ext.fx.animation,'FadeOut'],0);Ext.cmd.derive('Ext.fx.animation.Flip',Ext.fx.animation.Abstract,{config:{easing:'ease-in',direction:'right',half:!1,out:null},getData:function(){var c=this,k=c.getFrom(),m=c.getTo(),j=c.getDirection(),b=c.getOut(),l=c.getHalf(),a=l?90:180,h=1,i=1,d=0,e=0,f=0,g=0;if(b){i=0.8}else {h=0.8}switch(j){case this.DIRECTION_UP:if(b){f=a}else {d=-a};break;case this.DIRECTION_DOWN:if(b){f=-a}else {d=a};break;case this.DIRECTION_RIGHT:if(b){g=a}else {e=-a};break;case this.DIRECTION_LEFT:if(b){g=-a}else {e=a};break;}k.setTransform({rotateX:d,rotateY:e,scale:h});m.setTransform({rotateX:f,rotateY:g,scale:i});return Ext.fx.animation.Abstract.prototype.getData.call(this)}},0,0,0,0,['animation.flip'],0,[Ext.fx.animation,'Flip'],0);Ext.cmd.derive('Ext.fx.animation.Pop',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.PopIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var b=this.getTo(),a=this.getFrom(),c=this.getOut();if(c){a.set('opacity',1);a.setTransform({scale:1});b.set('opacity',0);b.setTransform({scale:0})}else {a.set('opacity',0);a.setTransform({scale:0});b.set('opacity',1);b.setTransform({scale:1})}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.pop','animation.popIn'],0,[Ext.fx.animation,'Pop',Ext.fx.animation,'PopIn'],0);Ext.cmd.derive('Ext.fx.animation.PopOut',Ext.fx.animation.Pop,{config:{out:!0,before:{}}},0,0,0,0,['animation.popOut'],0,[Ext.fx.animation,'PopOut'],0);Ext.cmd.derive('Ext.fx.Animation',Ext.Base,{constructor:function(a){var c=Ext.fx.animation.Abstract,b;if(typeof a=='string'){b=a;a={}}else {if(a&&a.type){b=a.type}}if(b){c=Ext.ClassManager.getByAlias('animation.'+b)}return Ext.factory(a,c)}},1,0,0,0,0,0,[Ext.fx,'Animation'],0);Ext.cmd.derive('Ext.fx.runner.Css',Ext.Evented,{prefixedProperties:{'transform':!0,'transform-origin':!0,'perspective':!0,'transform-style':!0,'transition':!0,'transition-property':!0,'transition-duration':!0,'transition-timing-function':!0,'transition-delay':!0,'animation':!0,'animation-name':!0,'animation-duration':!0,'animation-iteration-count':!0,'animation-direction':!0,'animation-timing-function':!0,'animation-delay':!0},lengthProperties:{'top':!0,'right':!0,'bottom':!0,'left':!0,'width':!0,'height':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'border-bottom-width':!0,'border-left-width':!0,'border-right-width':!0,'border-spacing':!0,'border-top-width':!0,'border-width':!0,'outline-width':!0,'letter-spacing':!0,'line-height':!0,'text-indent':!0,'word-spacing':!0,'font-size':!0,'translate':!0,'translateX':!0,'translateY':!0,'translateZ':!0,'translate3d':!0},durationProperties:{'transition-duration':!0,'transition-delay':!0,'animation-duration':!0,'animation-delay':!0},angleProperties:{rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,skew:!0,skewX:!0,skewY:!0},lengthUnitRegex:/([a-z%]*)$/,DEFAULT_UNIT_LENGTH:'px',DEFAULT_UNIT_ANGLE:'deg',DEFAULT_UNIT_DURATION:'ms',formattedNameCache:{},transformMethods3d:['translateX','translateY','translateZ','rotate','rotateX','rotateY','rotateZ','skewX','skewY','scaleX','scaleY','scaleZ'],transformMethodsNo3d:['translateX','translateY','rotate','skewX','skewY','scaleX','scaleY'],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement('style');a.type='text/css';(document.head||document.getElementsByTagName('head')[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var i=this.getStyleSheet(),h=this.ruleStylesCache,k=i.cssRules,d,g,b,c,f,a,e;for(d in j){g=j[d];b=h[d];if(b===undefined){f=k.length;i.insertRule(d+'{}',f);b=h[d]=k.item(f).style}c=b.$cache;if(!c){c=b.$cache={}}for(a in g){e=this.formatValue(g[a],a);a=this.formatName(a);if(c[a]!==e){c[a]=e;if(e===null){b.removeProperty(a)}else {b.setProperty(a,e,'important')}}}}return this},applyStyles:function(f){var c,e,d,b,a,g;for(c in f){if(f.hasOwnProperty(c)){e=document.getElementById(c);if(!e){continue}d=e.style;b=f[c];for(a in b){if(b.hasOwnProperty(a)){g=this.formatValue(b[a],a);a=this.formatName(a);if(g===null){d.removeProperty(a)}else {d.setProperty(a,g,'important')}}}}}return this},formatName:function(b){var c=this.formattedNameCache,a=c[b];if(!a){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){a=this.vendorPrefix+b}else {a=b}c[b]=a}return a},formatValue:function(a,c){var j=typeof a,i=this.DEFAULT_UNIT_LENGTH,g,d,b,f,h,e,k;if(a===null){return ''}if(j=='string'){if(this.lengthProperties[c]){k=a.match(this.lengthUnitRegex)[1];if(k.length>0){}else {return a+i}}return a}else {if(j=='number'){if(a==0){return '0'}if(this.lengthProperties[c]){return a+i}if(this.angleProperties[c]){return a+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[c]){return a+this.DEFAULT_UNIT_DURATION}}else {if(c==='transform'){g=this.transformMethods;h=[];for(b=0,f=g.length;b0?e.join(', '):'none'}}}}return a}},1,0,0,0,0,0,[Ext.fx.runner,'Css'],0);Ext.cmd.derive('Ext.fx.runner.CssTransition',Ext.fx.runner.Css,{alternateClassName:'Ext.Animator',singleton:!0,listenersAttached:!1,constructor:function(){this.runningAnimationsData={};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=!0;Ext.getWin().on('transitionend','onTransitionEnd',this)},onTransitionEnd:function(c){var a=c.target,b=a.id;if(b&&this.runningAnimationsData.hasOwnProperty(b)){this.refreshRunningAnimationsData(Ext.get(a),[c.browserEvent.propertyName])}},onAnimationEnd:function(d,a,b,c,n){var l=d.getId(),j=this.runningAnimationsData[l],k={},h={},g,f,e,m,i;b.un('stop','onAnimationStop',this);if(j){g=j.nameMap}k[l]=h;if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,d,c)}b.fireEvent('animationbeforeend',b,d,c);this.fireEvent('animationbeforeend',this,b,d,c);if(n||!c&&!a.preserveEndState){f=a.toPropertyNames;for(e=0,m=f.length;e0},refreshRunningAnimationsData:function(i,m,f,g){var s=i.getId(),r=this.runningAnimationsData,e=r[s];if(!e){return}var o=e.nameMap,n=e.nameList,c=e.sessions,h,j,p,d,b,a,k,q,l=!1;f=Boolean(f);g=Boolean(g);if(!c){return this}h=c.length;if(h===0){return this}if(g){e.nameMap={};n.length=0;for(b=0;b');b.close();this.testElement=c=b.createElement('div');c.style.setProperty('position','absolute','important');b.body.appendChild(c);this.testElementComputedStyle=window.getComputedStyle(c)}return c},getCssStyleValue:function(b,a){var c=this.getTestElement(),e=this.testElementComputedStyle,d=c.style;d.setProperty(b,a);if(Ext.browser.is.Firefox){c.offsetHeight}a=e.getPropertyValue(b);d.removeProperty(b);return a},run:function(t){var a=this,H=a.lengthProperties,E={},j={},d={},i,f,m,k,F,g,e,u,v,s,r,w,x,G,c,o,y,C,h,b,l,D,n,z,q,p,A,B;if(!a.listenersAttached){a.attachListeners()}t=Ext.Array.from(t);for(w=0,G=t.length;w0){a.refreshRunningAnimationsData(i,Ext.Array.merge(g,e),!0,d.replacePrevious)}q=s.nameMap;p=s.nameList;y={};for(x=0;x0){g=Ext.Array.difference(p,g);e=Ext.Array.merge(g,e);r['transition-property']=g}E[f]=r;j[f]=Ext.apply({},k);j[f]['transition-property']=e;j[f]['transition-duration']=d.duration;j[f]['transition-timing-function']=d.easing;j[f]['transition-delay']=d.delay;c.startTime=Date.now()}v=a.$className;a.applyStyles(E);u=function(b){if(b.data===v&&b.source===window){window.removeEventListener('message',u,!1);a.applyStyles(j)}};if(window.requestAnimationFrame){window.requestAnimationFrame(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')})}else {Ext.defer(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')},1)}},onAnimationStop:function(h){var c=this.runningAnimationsData,e,f,d,b,g,a;for(e in c){if(c.hasOwnProperty(e)){f=c[e];d=f.sessions;for(b=0,g=d.length;b'){this.isParentReference=!0;a=a.substring(0,b)}return a}}},0,0,0,0,0,0,[Ext.mixin,'Container'],0);Ext.cmd.derive('Ext.mixin.Responsive',Ext.Mixin,function(a){return {mixinConfig:{id:'responsive',after:{destroy:'destroy'}},config:{responsiveConfig:{$value:undefined,merge:function(c,d,g,f){if(!c){return d}var e=d?Ext.Object.chain(d):{},b;for(b in c){if(!f||!(b in e)){e[b]={fn:null,config:c[b]}}}return e}},responsiveFormulas:{$value:0,merge:function(c,d,e,b){return this.mergeNew(c,d,e,b)}}},destroy:function(){a.unregister(this);this.callParent()},privates:{statics:{active:!1,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=!0;a.updateContext();Ext.on('resize',a.onResize,a)},deactivate:function(){a.active=!1;Ext.un('resize',a.onResize,a)},notify:function(){var b=a.all,e=a.context,d=Ext.GlobalEvents,f=a.timer,c;if(f){a.timer=null;Ext.Function.cancelAnimationFrame(f)}a.updateContext();Ext.suspendLayouts();d.fireEvent('beforeresponsiveupdate',e);for(c in b){b[c].setupResponsiveContext()}d.fireEvent('beginresponsiveupdate',e);for(c in b){b[c].updateResponsiveState()}d.fireEvent('responsiveupdate',e);Ext.resumeLayouts(!0)},onResize:function(){if(!a.timer){a.timer=Ext.Function.requestAnimationFrame(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(c,d,b){var g=d&&d[b],f=c.config,h,e;if(g){e=c.getConfigurator();h=e.configs[b];f[b]=h.merge(g,f[b],c)}},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),c=e.getViewportHeight(),b=a.context;b.width=d;b.height=c;b.tall=d','',' ({childCount} children)','','',' ({depth} deep)','','',', {type}: {[this.time(values.sum)]} msec (','avg={[this.time(values.sum / parent.count)]}',')','','
    '].join(''),{time:function(a){return Math.round(a*100)/100}})}var a=this.getData(b);a.name=this.name;a.pure.type='Pure';a.total.type='Total';a.times=[a.pure,a.total];return c.apply(a)},getData:function(b){var a=this;return {count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:setToJSON(a.count,a.childCount,b,a.pure),total:setToJSON(a.count,a.childCount,b,a.total)}},enter:function(){var c=this,d={accum:c,leave:leaveFrame,childTime:0,parent:b};++c.depth;if(c.maxDepth0){d=a==='this'?this:typeof a==='string'?this[a]:typeof a==='number'?arguments[a]:null;if(d){f=d.id}if(f!=null){console.log(b+' for '+f+': '+c+'ms')}else {console.log(b+' for unknown: '+c+'ms')}if(console.trace){console.trace()}}return h}}(b,d[b])}Ext.override(f,c)}}}}},1,0,0,0,0,0,[Ext.perf,'Monitor',Ext,'Perf'],0);Ext.cmd.derive('Ext.plugin.Abstract',Ext.Base,{alternateClassName:'Ext.AbstractPlugin',isPlugin:!0,constructor:function(a){if(a){this.pluginConfig=a;this.initConfig(a)}},clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},setCmp:function(a){this.cmp=a},getCmp:function(){return this.cmp},init:Ext.emptyFn,destroy:function(){this.cmp=this.pluginConfig=null;this.callParent()},onClassExtended:function(c,b,d){var a=b.alias;if(a&&!b.ptype){if(Ext.isArray(a)){a=a[0]}c.prototype.ptype=a.split('plugin.')[1]}},resolveListenerScope:function(b){var a=this,d=a.getCmp(),c;if(d){c=d.resolveSatelliteListenerScope(a,b)}return c||a.mixins.observable.resolveListenerScope.call(a,b)}},1,0,0,0,0,0,[Ext.plugin,'Abstract',Ext,'AbstractPlugin'],0);Ext.define('Ext.overrides.plugin.Abstract',{override:'Ext.plugin.Abstract',$configStrict:!1,$configPrefixed:!1,disabled:!1,getState:null,applyState:null,enable:function(){this.disabled=!1},disable:function(){this.disabled=!0}});Ext.cmd.derive('Ext.util.ItemCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.ItemCollection',getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}},0,0,0,0,0,0,[Ext.util,'ItemCollection',Ext,'ItemCollection'],0);Ext.cmd.derive('Ext.util.TaskManager',Ext.util.TaskRunner,{alternateClassName:['Ext.TaskManager'],singleton:!0},0,0,0,0,0,0,[Ext.util,'TaskManager',Ext,'TaskManager'],0);Ext.cmd.derive('Ext.util.TextMetrics',Ext.Base,{statics:{shared:null,measure:function(d,e,c){var b=this,a=b.shared;if(!a){a=b.shared=new b(d,c)}a.bind(d);a.setFixedWidth(c||'auto');return a.getSize(e)},destroy:function(){var a=this;Ext.destroy(a.shared);a.shared=null}},constructor:function(c,b){var d=this,a=Ext.getBody().createChild({role:'presentation',cls:'x-textmetrics'});a.setVisibilityMode(1);d.measure=a;if(c){d.bind(c)}a.position('absolute');a.setLocalXY(-1000,-1000);a.hide();if(b){a.setWidth(b)}},getSize:function(c){var a=this.measure,b;a.setHtml(c);b=a.getSize();a.setHtml('');return b},bind:function(b){var a=this;a.el=Ext.get(b);a.measure.setStyle(a.el.getStyle(['font-size','font-style','font-weight','font-family','line-height','text-transform','letter-spacing','word-break']))},setFixedWidth:function(a){this.measure.setWidth(a)},getWidth:function(a){this.measure.dom.style.width='auto';return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height},destroy:function(){var a=this;a.el=a.measure=Ext.destroy(a.measure);a.callParent()}},1,0,0,0,0,0,[Ext.util,'TextMetrics'],function(){Ext.Element.override({getTextWidth:function(a,c,b){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(a,this.dom.innerHTML,!0)).width,c||0,b||1000000)}})});Ext.define(null,{override:'Ext.event.publisher.Focus',compatibility:Ext.isIE10m,doDelegatedEvent:function(a,d){var c=document.body,b=Ext.synchronouslyFocusing;if(b&&(a.type==='focusout'&&a.srcElement===b&&a.toElement===c||a.type==='focusin'&&a.srcElement===c&&a.fromElement===b&&a.toElement===null)){return}return this.callParent([a,d])}});Ext.define(null,{override:'Ext.scroll.DomScroller',compatibility:Ext.isIE8,privates:{doScrollTo:function(a,b,j){var c=this,f=c.getElement(),e,d,i,g,h;if(f&&!f.destroyed){d=this.getElement().dom;g=a===Infinity;h=b===Infinity;if(g||h){e=c.getMaxPosition();if(g){a=e.x}if(h){b=e.y}}a=c.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}f.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(a!=null&&b!=null){c.deferDomScroll=!0}if(b!=null){d.scrollTop=b}if(a!=null){d.scrollLeft=a}if(c.deferDomScroll){c.deferDomScroll=!1;+d.scrollLeft;d.scrollLeft=a}}c.positionDirty=!0}},onDomScroll:function(){var a=this;if(a.deferDomScroll){return}a.callParent()}}});Ext.cmd.derive('Ext.ElementLoader',Ext.Base,{statics:{Renderer:{Html:function(c,b,a){c.getTarget().setHtml(b.responseText,a.scripts===!0,a.rendererScope);return !0}}},url:null,params:null,baseParams:null,autoLoad:!1,target:null,loadMask:!1,ajaxOptions:null,scripts:!1,isLoader:!0,constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.setTarget(a.target);if(a.autoLoad){b=a.autoLoad;if(b===!0){b=null}a.load(b)}},setTarget:function(a){var b=this;a=Ext.get(a);if(b.target&&b.target!==a){b.abort()}b.target=a},getTarget:function(){return this.target||null},abort:function(){var a=this.active;if(a!==undefined){Ext.Ajax.abort(a.request);if(a.mask){this.removeMask()}delete this.active}},removeMask:function(){this.target.unmask()},addMask:function(a){this.target.mask(a===!0?null:a)},load:function(b){b=Ext.apply({},b);var a=this,d=Ext.isDefined(b.loadMask)?b.loadMask:a.loadMask,c=Ext.apply({},b.params),e=Ext.apply({},b.ajaxOptions),f=b.callback||a.callback,g=b.scope||a.scope||a;Ext.applyIf(e,a.ajaxOptions);Ext.applyIf(b,e);Ext.applyIf(c,a.params);Ext.apply(c,a.baseParams);Ext.applyIf(b,{url:a.url});Ext.apply(b,{scope:a,params:c,callback:a.onComplete});if(a.fireEvent('beforeload',a,b)===!1){return}if(d){a.addMask(d)}a.active={options:b,mask:d,scope:g,callback:f,success:b.success||a.success,failure:b.failure||a.failure,renderer:b.renderer||a.renderer,scripts:Ext.isDefined(b.scripts)?b.scripts:a.scripts};a.active.request=Ext.Ajax.request(b);a.setOptions(a.active,b)},setOptions:function(b,a){b.rendererScope=a.rendererScope||this.rendererScope||this},onComplete:function(d,e,c){var a=this,b=a.active,g,f;if(b){f=b.scope;g=b.rendererScope;if(e){e=a.getRenderer(b.renderer).call(g,a,c,b)!==!1}if(e){Ext.callback(b.success,f,[a,c,d]);a.fireEvent('load',a,c,d)}else {Ext.callback(b.failure,f,[a,c,d]);a.fireEvent('exception',a,c,d)}Ext.callback(b.callback,f,[a,e,c,d]);if(b.mask){a.removeMask()}}delete a.active},getRenderer:function(a){if(Ext.isFunction(a)){return a}return this.statics().Renderer.Html},startAutoRefresh:function(b,c){var a=this;a.stopAutoRefresh();a.autoRefresh=Ext.interval(function(){a.load(c)},b)},stopAutoRefresh:function(){clearInterval(this.autoRefresh);delete this.autoRefresh},isAutoRefreshing:function(){return Ext.isDefined(this.autoRefresh)},destroy:function(){var a=this;a.stopAutoRefresh();delete a.target;a.abort();a.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext,'ElementLoader'],0);Ext.cmd.derive('Ext.ComponentLoader',Ext.ElementLoader,{statics:{Renderer:{Data:function(c,b,d){var a=!0;try{c.getTarget().update(Ext.decode(b.responseText))}catch(e){a=!1}return a},Component:function(f,d,e){var b=!0,a=f.getTarget(),c=[];try{c=Ext.decode(d.responseText)}catch(g){b=!1}if(b){a.suspendLayouts();if(e.removeAll){a.removeAll()}a.add(c);a.resumeLayouts(!0)}return b}}},target:null,loadOnRender:!1,loadMask:!1,renderer:'html',setTarget:function(b){var a=this;if(Ext.isString(b)){b=Ext.getCmp(b)}if(a.target&&a.target!==b){a.abort()}a.target=b;if(b&&a.loadOnRender){if(b.rendered){a.doLoadOnRender()}else {a.mon(b,'render',a.doLoadOnRender,a)}}},doLoadOnRender:function(){var a=this.loadOnRender;this.load(Ext.isObject(a)?a:null)},removeMask:function(){this.target.setLoading(!1)},addMask:function(a){this.target.setLoading(a)},setOptions:function(b,a){b.removeAll=Ext.isDefined(a.removeAll)?a.removeAll:this.removeAll;b.rendererScope=a.rendererScope||this.rendererScope||this.target},getRenderer:function(a){if(Ext.isFunction(a)){return a}var b=this.statics().Renderer;switch(a){case 'component':return b.Component;case 'data':return b.Data;default:return Ext.ElementLoader.Renderer.Html;}}},0,0,0,0,0,0,[Ext,'ComponentLoader'],0);Ext.cmd.derive('Ext.layout.SizeModel',Ext.Base,{constructor:function(e){var a=this,b=a.self,d=b.sizeModelsArray,c;Ext.apply(a,e);a[c=a.name]=!0;a.fixed=!(a.auto=a.natural||a.shrinkWrap);d[a.ordinal=d.length]=b[c]=b.sizeModels[c]=a},statics:{sizeModelsArray:[],sizeModels:{}},calculated:!1,configured:!1,constrainedMax:!1,constrainedMin:!1,natural:!1,shrinkWrap:!1,calculatedFromConfigured:!1,calculatedFromNatural:!1,calculatedFromShrinkWrap:!1,names:null},1,0,0,0,0,0,[Ext.layout,'SizeModel'],function(){var a=this,d=a.sizeModelsArray,b,c,f,g,e;new a({name:'calculated'});new a({name:'configured',names:{width:'width',height:'height'}});new a({name:'natural'});new a({name:'shrinkWrap'});new a({name:'calculatedFromConfigured',configured:!0,calculatedFrom:!0,names:{width:'width',height:'height'}});new a({name:'calculatedFromNatural',natural:!0,calculatedFrom:!0});new a({name:'calculatedFromShrinkWrap',shrinkWrap:!0,calculatedFrom:!0});new a({name:'constrainedMax',configured:!0,constrained:!0,names:{width:'maxWidth',height:'maxHeight'}});new a({name:'constrainedMin',configured:!0,constrained:!0,names:{width:'minWidth',height:'minHeight'}});new a({name:'constrainedDock',configured:!0,constrained:!0,constrainedByMin:!0,names:{width:'dockConstrainedWidth',height:'dockConstrainedHeight'}});for(b=0,f=d.length;b-1&&e','
    role="presentation"','class="{innerCtCls}">','{%this.renderBody(out,values)%}','
    ',''],beginLayout:function(a){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(a)},beforeLayoutCycle:function(d){var a=this.owner,c=a.inheritedState,b=a.inheritedStateInner;if(!c||c.invalid){c=a.getInherited();b=a.inheritedStateInner}if(d.widthModel.shrinkWrap){b.inShrinkWrapTable=!0}else {delete b.inShrinkWrapTable}},beginLayoutCycle:function(e){var a=this,g=a.outerCt,l=a.lastOuterCtWidth||'',k=a.lastOuterCtHeight||'',j=a.lastOuterCtTableLayout||'',i=e.state,f,d,c,b,h;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);d=c=b='';if(!e.widthModel.shrinkWrap){d='100%';h=a.owner.inheritedStateInner;f=a.getOverflowXStyle(e);b=h.inShrinkWrapTable||f==='auto'||f==='scroll'?'':'fixed'}if(!e.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){c='100%'}if(d!==l||a.hasOuterCtPxWidth){g.setStyle('width',d);a.lastOuterCtWidth=d;a.hasOuterCtPxWidth=!1}if(b!==j){g.setStyle('table-layout',b);a.lastOuterCtTableLayout=b}if(c!==k||a.hasOuterCtPxHeight){g.setStyle('height',c);a.lastOuterCtHeight=c;a.hasOuterCtPxHeight=!1}if(a.hasInnerCtPxHeight){a.innerCt.setStyle('height','');a.hasInnerCtPxHeight=!1}i.overflowAdjust=i.overflowAdjust||a.lastOverflowAdjust},calculate:function(b){var a=this,d=b.state,c=a.getContainerSize(b,!0),e=d.calculatedItems||(d.calculatedItems=a.calculateItems?a.calculateItems(b,c):!0);a.setCtSizeIfNeeded(b,c);if(e&&b.hasDomProp('containerChildrenSizeDone')){a.calculateContentSize(b);if(c.gotAll){if(a.manageOverflow&&!b.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(b,c)}return}}a.done=!1},calculateContentSize:function(a){var b=this,f=(a.widthModel.shrinkWrap?1:0)|(a.heightModel.shrinkWrap?2:0),d=f&1||undefined,c=f&2||undefined,e=0,g=a.props;if(d){if(isNaN(g.contentWidth)){++e}else {d=undefined}}if(c){if(isNaN(g.contentHeight)){++e}else {c=undefined}}if(e){if(d&&!a.setContentWidth(b.measureContentWidth(a))){b.done=!1}if(c&&!a.setContentHeight(b.measureContentHeight(a))){b.done=!1}}},calculateOverflow:function(d){var c=this,g,f,e,a,h,i,b;h=c.getOverflowXStyle(d)==='auto';i=c.getOverflowYStyle(d)==='auto';if(h||i){e=Ext.getScrollbarSize();b=d.overflowContext.el.dom;a=0;if(b.scrollWidth>b.clientWidth){a|=1}if(b.scrollHeight>b.clientHeight){a|=2}g=i&&a&2?e.width:0;f=h&&a&1?e.height:0;if(g!==c.lastOverflowAdjust.width||f!==c.lastOverflowAdjust.height){c.done=!1;d.invalidate({state:{overflowAdjust:{width:g,height:f},overflowState:a,secondPass:!0}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(b,a){var c=a.$layout,d=Ext.XTemplate,e=c.beforeBodyTpl,f=c.afterBodyTpl;if(e){d.getTpl(c,'beforeBodyTpl').applyOut(a,b)}this.renderItems(b,a);this.renderContent(b,a);if(f){d.getTpl(c,'afterBodyTpl').applyOut(a,b)}},doRenderPadding:function(d,b){var e=b.$layout,a=b.$layout.owner,c=a[a.contentPaddingProperty];if(e.managePadding&&c){d.push('padding:',a.unitizeBox(c))}},finishedLayout:function(b){var a=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){a.repaint()}if(Ext.isOpera){a.setStyle('position','relative');a.dom.scrollWidth;a.setStyle('position','')}},getContainerSize:function(c,d){var b=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),a=c.state.overflowAdjust;if(a){b.width-=a.width;b.height-=a.height}return b},getRenderData:function(){var b=this,a=Ext.layout.container.Container.prototype.getRenderData.call(this);a.innerCtCls=b.innerCtCls;a.outerCtCls=b.outerCtCls;return a},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(a){return a.overflowXStyle||(a.overflowXStyle=this.owner.scrollFlags.overflowX||a.overflowContext.getStyle('overflow-x'))},getOverflowYStyle:function(a){return a.overflowYStyle||(a.overflowYStyle=this.owner.scrollFlags.overflowY||a.overflowContext.getStyle('overflow-y'))},initContextItems:function(a){var b=this,d=a.target,c=b.owner.getOverflowEl();a.outerCtContext=a.getEl('outerCt',b);a.innerCtContext=a.getEl('innerCt',b);a.overflowContext=c===a.el?a:a.getEl(c);if(d[d.contentPaddingProperty]!==undefined){a.paddingContext=a.innerCtContext}},initLayout:function(){var a=this,b=Ext.getScrollbarSize().width,c=a.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&a.manageOverflow&&!a.hasOwnProperty('lastOverflowAdjust')){if(c.scrollable||a.reserveScrollbar){a.lastOverflowAdjust={width:b,height:0}}}},measureContentHeight:function(b){var a=this.outerCt.getHeight(),c=b.target;if(this.managePadding&&c[c.contentPaddingProperty]===undefined){a+=b.targetContext.getPaddingInfo().height}return a},measureContentWidth:function(f){var a,b,e,c,d;if(this.chromeCellMeasureBug){a=this.innerCt.dom;b=a.style;e=b.display;if(e==='table-cell'){b.display='';a.offsetWidth;b.display=e}}if(Ext.isSafari){a=this.outerCt.dom;b=a.style;b.display='table-cell';a.offsetWidth;a.style.display=''}c=this.outerCt.getWidth();d=f.target;if(this.managePadding&&d[d.contentPaddingProperty]===undefined){c+=f.targetContext.getPaddingInfo().width}return c},setCtSizeIfNeeded:function(a,h){var c=this,b=h.height,k=a.paddingContext.getPaddingInfo(),g=c.getTarget(),f=c.getOverflowXStyle(a),j=f==='auto'||f==='scroll',i=Ext.getScrollbarSize(),e,d;if(b&&!a.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){e=!0}if(Ext.isIE8){d=!0}if((e||d)&&j&&g.dom.scrollWidth>g.dom.clientWidth){b=Math.max(b-i.height,0)}if(e){a.outerCtContext.setProp('height',b+k.height);c.hasOuterCtPxHeight=!0}if(d){a.innerCtContext.setProp('height',b);c.hasInnerCtPxHeight=!0}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt},getScrollerEl:function(){return this.outerCt}},0,0,0,0,['layout.auto','layout.autocontainer'],0,[Ext.layout.container,'Auto'],function(){this.prototype.chromeCellMeasureBug=Ext.isChrome&&Ext.chromeVersion>=26});Ext.cmd.derive('Ext.ZIndexManager',Ext.Base,{alternateClassName:'Ext.WindowGroup',statics:{zBase:9000,activeCounter:0},constructor:function(b){var a=this;a.id=Ext.id(null,'zindex-mgr-');a.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(c,d){var a=(c.alwaysOnTop||0)-(d.alwaysOnTop||0);if(!a){a=c.getActiveCounter()-d.getActiveCounter()}return a}},filters:{filterFn:function(a){return a.isVisible()}}});a.zIndexStack.addObserver(a);a.front=null;a.globalListeners=Ext.GlobalEvents.on({beforehide:a.onComponentShowHide,show:a.onComponentShowHide,scope:a,destroyable:!0});if(b){if(b.isContainer){b.on('resize',a.onContainerResize,a);a.zseed=Ext.Number.from(a.rendered?b.getEl().getStyle('zIndex'):undefined,a.getNextZSeed());a.targetEl=b.getTargetEl();a.container=b}else {Ext.on('resize',a.onContainerResize,a);a.zseed=a.getNextZSeed();a.targetEl=Ext.get(b)}}else {a.zseed=a.getNextZSeed();Ext.onInternalReady(function(){Ext.on('resize',a.onContainerResize,a);a.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return Ext.ZIndexManager.zBase+=10000},setBase:function(a){this.zseed=a;return this.onCollectionSort()},onCollectionSort:function(){var d=this,b=d.front,k=b&&b.containsFocus,g=d.zseed,i=d.zIndexStack.getRange(),j=i.length,e,c,f,a,h=!1;for(e=0;e0;){a=c[b];if(a.isComponent&&e.call(d||a,a)===!1){return}}},destroy:function(){var a=this,c=a.zIndexStack.getRange(),d=c.length,b;for(b=0;b1){b.refresh()}if(a.hasListeners.afterlayout){a.fireEvent('afterlayout',a,c)}},beforeDestroy:function(){var a=this,d=a.items,c=a.floatingItems,b;if(d){while(b=d.first()){a.doRemove(b,!0)}}if(c){while(b=c.first()){a.doRemove(b,!0)}}Ext.destroy(a.layout);Ext.Component.prototype.beforeDestroy.call(this)},destroy:function(){var a=this;Ext.Component.prototype.destroy.call(this);if(a.items){a.items.destroy()}if(a.floatingItems){a.floatingItems.destroy()}a.refs=a.items=a.floatingItems=a.layout=null},beforeRender:function(){var a=this,c=a.getLayout(),b;a.preventChildDisable=!0;Ext.Component.prototype.beforeRender.call(this);a.preventChildDisable=!1;if(!c.initialized){c.initLayout()}b=c.targetCls;if(b){a.applyTargetCls(b)}},cascade:function(f,e,d){var a=this,h=a.items?a.items.items:[],j=h.length,g=0,b,c=d?d.concat(a):[a],i=c.length-1;if(f.apply(e||a,c)!==!1){for(;g','
    ','
    {msg}
    ','
    ',''],maskOnDisable:!1,skipLayout:!0,constructor:function(c){var a=this,b;if(arguments.length===2){b=a.target=c;c=arguments[1]}else {b=c.target}Ext.Component.prototype.constructor.call(this,c);if(b.isComponent){a.ownerCt=b;a.hidden=!0;a.renderTo=a.getMaskTarget();a.external=a.renderTo===Ext.getBody();a.bindComponent(b)}else {b=Ext.get(b);a.isElement=!0;a.renderTo=a.target}a.render(a.renderTo);if(a.store){a.bindStore(a.store,!0)}},initRenderData:function(){var a=Ext.Component.prototype.initRenderData.apply(this,arguments);a.msg=this.msg||'';return a},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(b){var a=this,c={scope:this,resize:a.sizeMask};if(a.external){c.added=a.onComponentAdded;c.removed=a.onComponentRemoved;if(b.floating){c.move=a.sizeMask;a.activeOwner=b}else {if(b.ownerCt){a.onComponentAdded(b.ownerCt)}}}a.mon(b,c);if(a.external){a.mon(Ext.GlobalEvents,{show:a.onContainerShow,hide:a.onContainerHide,expand:a.onContainerExpand,collapse:a.onContainerCollapse,scope:a})}},onComponentAdded:function(b){var a=this;delete a.activeOwner;a.floatParent=b;if(!b.floating){b=b.up('[floating]')}if(b){a.activeOwner=b;a.mon(b,'move',a.sizeMask,a);a.mon(b,'tofront',a.onOwnerToFront,a)}else {a.preventBringToFront=!0}b=a.floatParent.ownerCt;if(a.rendered&&a.isVisible()&&b){a.floatOwner=b;a.mon(b,'afterlayout',a.sizeMask,a,{single:!0})}},onComponentRemoved:function(d){var a=this,b=a.activeOwner,c=a.floatOwner;if(b){a.mun(b,'move',a.sizeMask,a);a.mun(b,'tofront',a.onOwnerToFront,a)}if(c){a.mun(c,'afterlayout',a.sizeMask,a)}delete a.activeOwner;delete a.floatOwner},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){a.el.on('mousedown',a.onMouseDown,a)}this.el.skipGarbageCollection=!0},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(b,a){this.el.setStyle('zIndex',a+1)},onContainerShow:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var a=this;if(a.rendered&&a.isVisible()){a.hide();a.showNext=!0}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var a=this,b=a.activeOwner||a.target,c=a.external?a.getOwner().el:a.getMaskTarget();if(a.rendered&&a.isVisible()){if(a.external){if(!a.isElement&&b.floating){a.onOwnerToFront(b,b.el.getZIndex())}a.el.setSize(c.getSize()).alignTo(c,'tl-tl')}a.msgWrapEl.center(a.el)}},bindStore:function(a,c){var b=this;Ext.destroy(b.proxyListeners);b.mixins.storeholder.bindStore.apply(b,arguments);a=b.store;if(a){while(a.getSource){a=a.getSource()}if(!a.loadsSynchronously()){b.proxyListeners=a.getProxy().on({exception:b.onLoad,scope:b,destroyable:!0})}if(a.isLoading()){b.onBeforeLoad()}}},getStoreListeners:function(d){var c=this.onLoad,b=this.onBeforeLoad,a={cachemiss:b,cachefilled:{fn:c,buffer:100}};if(!d.loadsSynchronously()){a.beforeload=b;a.load=c}return a},onDisable:function(){Ext.Component.prototype.onDisable.apply(this,arguments);if(this.loading){this.onLoad()}},getOwner:function(){return this.ownerCt||this.ownerCmp||this.floatParent},getMaskTarget:function(){var a=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?a.getTargetEl():a.getMaskTarget()||Ext.getBody()},onBeforeLoad:function(){var b=this,a=b.getOwner(),c;if(!b.disabled){b.loading=!0;if(a.componentLayoutCounter){b.maybeShow()}else {c=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=c;c.apply(a,arguments);b.maybeShow()}}}},maybeShow:function(){var a=this,b=a.getOwner();if(!b.isVisible(!0)){a.showNext=!0}else {if(a.loading&&b.rendered){a.show()}}},hide:function(){var b=this,a=b.ownerCt;if(b.isElement){a.unmask();b.fireEvent('hide',this);return}if(a){a.enableTabbing();a.setMasked(!1)}delete b.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;if(a.isElement){a.ownerCt.mask(this.useMsg?this.msg:'',this.msgCls);a.fireEvent('show',this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var a=this,b=a.ownerCt;a.loading=!0;Ext.Component.prototype.afterShow.apply(this,arguments);b.disableTabbing();b.setMasked(!0);a.el.restoreTabbableState();a.syncMaskState()},syncMaskState:function(){var a=this,c=a.ownerCt,b=a.el;if(a.isVisible()){if(a.hasOwnProperty('msgWrapCls')){b.dom.className=a.msgWrapCls}if(a.useMsg){a.msgTextEl.setHtml(a.msg)}else {a.msgEl.hide()}if(a.shim||Ext.useShims){b.enableShim(null,!0)}else {b.disableShim()}if(c.el.contains(Ext.Element.getActiveElement())){a.focus()}a.sizeMask()}},onLoad:function(){this.loading=!1;this.hide()},beforeDestroy:function(){this.ownerCt=null;this.bindStore(null);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.onDestroy.call(this)}},1,['loadmask'],['component','box','loadmask'],{'component':!0,'box':!0,'loadmask':!0},['widget.loadmask'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext,'LoadMask'],0);Ext.cmd.derive('Ext.layout.component.Component',Ext.layout.Layout,{type:'component',isComponentLayout:!0,nullBox:{},usesContentHeight:!0,usesContentWidth:!0,usesHeight:!0,usesWidth:!0,widthCache:{},heightCache:{},beginLayoutCycle:function(a,j){var c=this,f=c.owner,p=a.ownerCtContext,g=a.heightModel,h=a.widthModel,o=f.el.dom===document.body,e=f.lastBox||c.nullBox,d=f.el.lastBox||c.nullBox,m=!o,k=a.isTopLevel,i,b,n,l;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,a,j);if(j){if(c.usesContentWidth){++a.consumersContentWidth}if(c.usesContentHeight){++a.consumersContentHeight}if(c.usesWidth){++a.consumersWidth}if(c.usesHeight){++a.consumersHeight}if(p&&!p.hasRawContent){i=f.ownerLayout;if(i){if(i.usesWidth){++a.consumersWidth}if(i.usesHeight){++a.consumersHeight}}}}if(h.configured){n=f[h.names.width];if(k&&h.calculatedFrom){n=e.width}if(!o){m=c.setWidthInDom||(j?n!==d.width:h.constrained)}a.setWidth(n,m)}else {if(k){if(h.calculated){b=e.width;a.setWidth(b,b!==d.width)}b=e.x;a.setProp('x',b,b!==d.x)}}if(g.configured){l=f[g.names.height];if(k&&g.calculatedFrom){l=e.height}if(!o){m=j?l!==d.height:g.constrained}a.setHeight(l,m)}else {if(k){if(g.calculated){b=e.height;a.setHeight(b,b!==d.height)}b=e.y;a.setProp('y',b,b!==d.y)}}},finishedLayout:function(c){var h=this,e=c.children,g=h.owner,i,d,f,a,b;if(e){i=e.length;for(d=0;d','
    {text}
    ','
    ',''],componentLayout:'progressbar',ariaRole:'progressbar',initRenderData:function(){var a=this,b=a.value||0;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{internalText:!a.hasOwnProperty('textEl'),text:a.text||' ',percentage:b*100})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.textEl){a.textEl=Ext.get(a.textEl);a.updateText(a.text)}else {a.textEl=a.el.select('.'+a.baseCls+'-text')}},updateValue:function(a){this.updateProgress(a,Math.round(a*100)+'%')},updateProgress:function(b,c,d){b=b||0;var a=this,f=a.value,e=a.getTextTpl();a.value=b||(b=0);if(c!=null){a.updateText(c)}else {if(e){a.updateText(e.apply({value:b,percent:b*100}))}}if(a.rendered&&!a.destroyed){if(d===!0||d!==!1&&a.animate){a.bar.stopAnimation();a.bar.animate(Ext.apply({from:{width:f*100+'%'},to:{width:b*100+'%'}},a.animate))}else {a.bar.setStyle('width',b*100+'%')}}a.fireEvent('update',a,b,c);return a},updateText:function(b){var a=this;a.text=b;if(a.rendered){a.textEl.setHtml(a.text)}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(a){var b=this,c;if(!b.waitTimer){c=b;a=a||{};b.updateText(a.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var c=a.increment||10;d-=1;b.updateProgress(((d+c)%c+1)*(100/c)*0.01,null,a.animate)},interval:a.interval||1000,duration:a.duration,onStop:function(){if(a.fn){a.fn.apply(a.scope||b)}b.reset()},scope:c})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(b){var a=this;a.updateProgress(0);a.clearTimer();if(b===!0){a.hide()}return a},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},onDestroy:function(){var a=this,b=a.bar;a.clearTimer();if(a.rendered){if(a.textEl.isComposite){a.textEl.clear()}Ext.destroyMembers(a,'textEl','progressBar');if(b&&a.animate){b.stopAnimation()}}Ext.Component.prototype.onDestroy.call(this)}},0,['progressbar'],['component','box','progressbar'],{'component':!0,'box':!0,'progressbar':!0},['widget.progressbar'],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,'ProgressBar'],0);Ext.cmd.derive('Ext.dom.ButtonElement',Ext.dom.Element,{setSize:function(b,a,e){var d=this,c=d.component;Ext.dom.Element.prototype.setSize.call(this,b,a,e);c.btnWrap.setStyle('table-layout',!b||b==='auto'?'':'fixed');c.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return d},setStyle:function(a,c){var f=this,e=f.component,d,b;Ext.dom.Element.prototype.setStyle.call(this,a,c);if(a){if(a==='width'||typeof a!=='string'&&'width' in a){d=c||a.width;e.btnWrap.setStyle('table-layout',!d||d==='auto'?'':'fixed')}if(a==='height'||typeof a!=='string'&&'height' in a){b=c||a.height;e.btnEl.setStyle('height',!b||b==='auto'?'':'auto')}}return f},setHeight:function(a,b){Ext.dom.Element.prototype.setHeight.call(this,a,b);this.component.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return this},setWidth:function(a,b){Ext.dom.Element.prototype.setWidth.call(this,a,b);this.component.btnWrap.setStyle('table-layout',!a||a==='auto'?'':'fixed');return this}},0,0,0,0,0,0,[Ext.dom,'ButtonElement'],0);Ext.cmd.derive('Ext.button.Manager',Ext.Base,{singleton:!0,alternateClassName:'Ext.ButtonToggleManager',groups:{},pressedButton:null,init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a});a.initialized=!0}},onButtonMousedown:function(b,c){var a=this.pressedButton;if(a){a.onMouseUp(c)}this.pressedButton=b},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(c,e){if(e){var b=this.groups[c.toggleGroup],d=b.length,a;for(a=0;a{[values.$comp.renderIcon(values)]}{text}{[values.$comp.renderIcon(values)]}{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]} {closeText} tabindex="{tabIndex}" {$}="{.}">{arrowElText}
    ',iconTpl:'background-image:url({iconUrl});
    font-family:{glyphFontFamily};">&#{glyph};',scale:'small',allowedScales:['small','medium','large'],arrowAlign:'right',arrowCls:'arrow',maskOnDisable:!1,shrinkWrap:3,frame:!0,autoEl:{tag:'a',hidefocus:'on',unselectable:'on'},hasFrameTable:function(){return this.href&&this.frameTable},frameTableListener:function(){if(!this.disabled){this.doNavigate()}},doNavigate:function(){if(this.hrefTarget==='_blank'){window.open(this.getHref(),this.hrefTarget)}else {location.href=this.getHref()}},_triggerRegion:{},initComponent:function(){var a=this;a.addCls('x-unselectable');Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=!0;a.setMenu(a.menu,!1,!0)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty('preventDefault');if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=!1}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==''){a.enableToggle=!0}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var a=this,b=Ext.Component.prototype.getElConfig.call(this),d=a.getHref(),c=a.hrefTarget;if(b.tag==='a'){if(!a.disabled){b.tabIndex=a.tabIndex}if(d){if(!a.disabled){b.href=d;if(c){b.target=c}}}}if(!a.ariaStaticRoles[a.ariaRole]){if(a.menu&&!a.isSplitButton){b['aria-haspopup']=!0}if(a.enableToggle){b['aria-pressed']=!!a.pressed}}return b},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);if(this.pressed){this.addCls(this._pressedCls)}},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),this.getTemplateArgs())},getMenu:function(){return this.menu||null},setMenu:function(b,g,h){var a=this,e=a.menu,d=a.isSplitButton?a.arrowEl&&a.arrowEl.dom:a.ariaEl.dom,f,c;if(e&&!h){if(g!==!1&&a.destroyMenu){e.destroy()}e.ownerCmp=null}if(b){f=b.isMenu;b=Ext.menu.Manager.get(b,{ownerCmp:a});b.setOwnerCmp(a,f);b.menuClickBuffer=250;a.mon(b,{scope:a,show:a.onMenuShow,hide:a.onMenuHide});if(!e&&a.getArrowVisible()){a.split=!0;if(a.rendered){a._addSplitCls();a.updateLayout()}}a.menu=b;if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.isSplitButton?a.ariaArrowElAttributes||(a.ariaArrowElAttributes={}):a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {if(a.rendered){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns');a._removeSplitCls();a.updateLayout()}else {c=a.isSplitButton?a.ariaArrowElAttributes:a.ariaRenderAttributes;if(c){delete c['aria-haspopup'];delete c['aria-owns']}}a.split=!1;a.menu=null}},onRender:function(){var a=this,d,c,b;Ext.Component.prototype.onRender.apply(this,arguments);c=a.el;if(a.tooltip){a.setTooltip(a.tooltip,!0)}if(a.handleMouseEvents){b={scope:a,mouseover:a.onMouseOver,mouseout:a.onMouseOut,mousedown:a.onMouseDown};if(a.split){b.mousemove=a.onMouseMove}}else {b={scope:a}}if(Ext.supports.Touch){b.touchstart=a.onTouchStart}if(a.repeat){a.mon(new Ext.util.ClickRepeater(c,Ext.isObject(a.repeat)?a.repeat:{}),'click',a.onRepeatClick,a)}else {if(b[a.clickEvent]){d=!0}else {b[a.clickEvent]=a.onClick}}a.mon(c,b);if(a.hasFrameTable()){a.mon(a.frameTable,'click',a.frameTableListener,a)}if(d){a.mon(c,a.clickEvent,a.onClick,a)}Ext.button.Manager.register(a)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var a=this,i=a._btnCls,j=a._baseIconCls,d=a.getIconAlign(),b=a.glyph,f=Ext._glyphFontFamily,e=a.text,h=a._hasIcon(),g=a._hasIconCls,c;if(typeof b==='string'){c=b.split('@');b=c[0];f=c[1]}return {split:a.isSplitButton,innerCls:a._innerCls,splitCls:a.getArrowVisible()?a.getSplitCls():'',iconUrl:a.icon,iconCls:a.iconCls,glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:f,text:e||' ',closeText:a.closeText,textCls:e?a._textCls:'',noTextCls:e?'':a._noTextCls,hasIconCls:h?g:'',btnWrapCls:a._btnWrapCls,btnWrapStyle:a.width?'table-layout:fixed;':'',btnElStyle:a.height?'height:auto;':'',btnCls:i,baseIconCls:j,iconBeforeText:d==='left'||d==='top',iconAlignCls:h?g+'-'+d:'',textAlignCls:i+'-'+a.getTextAlign(),arrowElCls:a._arrowElCls,tabIndex:a.tabIndex}},renderIcon:function(a){return this.getTpl('iconTpl').apply(a)},setHref:function(c){var a=this,d=a.hrefTarget,b;a.href=c;if(!a.configuredWithPreventDefault){a.preventDefault=!c}if(a.rendered){b=a.el.dom;if(!c||a.disabled){b.removeAttribute('href');b.removeAttribute('hrefTarget')}else {b.href=a.getHref();if(d){b.target=d}}}},getHref:function(){var a=this,b=a.href;return b?Ext.urlAppend(b,Ext.Object.toQueryString(Ext.apply({},a.params,a.baseParams))):!1},setParams:function(c){var a=this,b;a.params=c;if(a.rendered){b=a.el.dom;if(a.disabled){b.removeAttribute('href')}else {b.href=a.getHref()||''}}},getSplitCls:function(){var a=this;return a.split?a.baseCls+'-'+a.arrowCls+' '+(a.baseCls+'-'+a.arrowCls+'-'+a.arrowAlign):''},setIcon:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.icon||'';a.icon=b;if(b!==c){if(d){d.setStyle('background-image',b?'url('+b+')':'');a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setIconCls:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.iconCls||'';a.iconCls=b;if(c!==b){if(d){d.removeCls(c);d.addCls(b);a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setGlyph:function(b){b=b||0;var a=this,c=a.btnIconEl,f=a.glyph,g=a._glyphCls,d,e;a.glyph=b;if(c){if(typeof b==='string'){e=b.split('@');b=e[0];d=e[1]||Ext._glyphFontFamily}if(!b){c.dom.innerHTML='';c.removeCls(g)}else {if(f!==b){c.dom.innerHTML='&#'+b+';';c.addCls(g)}}if(d){c.setStyle('font-family',d)}a._syncHasIconCls();if(a.didIconStateChange(f,b)){a.updateLayout()}}a.fireEvent('glyphchange',a,a.glyph,f);return a},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c||!b){a.clearTip()}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.el.id},b));a.tooltip=b}else {a.el.dom.setAttribute(a.getTipAttr(),b)}}}else {a.tooltip=b}return a},updateIconAlign:function(e,f){var b=this,a,d,c;if(b.rendered){a=b.btnEl;d=b.btnIconEl;c=b._hasIconCls;if(f){a.removeCls(c+'-'+f)}a.addCls(c+'-'+e);if(e==='top'||e==='left'){a.insertFirst(d)}else {a.appendChild(d)}b.updateLayout()}},updateTextAlign:function(e,d){var a=this,c=a.btnEl,b=a._btnCls;if(a.rendered){c.removeCls(b+'-'+d);c.addCls(b+'-'+e)}},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},clearTip:function(){var a=this,b=a.el;if(Ext.quickTipsActive&&Ext.isObject(a.tooltip)){Ext.tip.QuickTipManager.unregister(b)}else {b.dom.removeAttribute(a.getTipAttr())}},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this,b=a.menu;if(a.rendered){Ext.destroy(a.keyMap);delete a.keyMap}if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.onDestroy.call(this)},setHandler:function(a,b){this.handler=a;if(arguments.length>1){this.scope=b}return this},updateText:function(b,c){b=b==null?'':String(b);c=c||'';var a=this,e=a.btnInnerEl,d=a.btnEl;if(a.rendered){e.setHtml(b||' ');d[b?'addCls':'removeCls'](a._textCls);d[b?'removeCls':'addCls'](a._noTextCls);a.updateLayout()}a.fireEvent('textchange',a,c,b)},didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},click:function(a){return this.onClick(a)},setPressed:function(a){return this.toggle(a!==!1)},toggle:function(b,d){var a=this,c=a.ariaEl.dom;b=b===undefined?!a.pressed:!!b;if(a.fireEvent('beforetoggle',a,b)!==!1){if(b!==a.pressed){a[b?'addCls':'removeCls'](a._pressedCls);a.pressed=b;if(c){c.setAttribute('aria-pressed',b)}if(!d){a.fireEvent('toggle',a,b);Ext.callback(a.toggleHandler,a.scope,[a,b],0,a);if(a.reference&&a.publishState){a.publishState('pressed',b)}}}}return a},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(c){var a=this,b=a.menu,d=!c||c.pointerType;if(b&&a.rendered){if(a.tooltip&&Ext.quickTipsActive&&a.getTipAttr()!=='title'){Ext.tip.QuickTipManager.getQuickTip().cancelShow(a.el)}if(b.isVisible()){if(d){b.hide()}else {b.focus()}}else {if(!c||a.showEmptyMenu||b.items.getCount()>0){b.autoFocus=!d;b.showBy(a.el,a.menuAlign)}}}return a},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(b,a){this.onClick(a)},onTouchStart:function(a){this.doPreventDefault(a)},onEnterKey:function(a){this.onClick(a);a.stopEvent();return !1},onClick:function(b){var a=this;a.doPreventDefault(b);if(b.type!=='keydown'&&b.button){return}if(!a.disabled){a.doToggle();a.maybeShowMenu(b);a.fireHandler(b)}},doPreventDefault:function(a){if(a&&(this.preventDefault||this.disabled&&this.getHref())){a.preventDefault()}},fireHandler:function(b){var a=this;if(a.fireEvent('click',a,b)!==!1&&!a.destroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},doToggle:function(){var a=this;if(a.enableToggle&&(a.allowDepress!==!1||!a.pressed)){a.toggle()}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,!0,!0)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,!0,!0)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(b){var a=this,c=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(b)){if(!c){a.onMenuTriggerOver(b)}}else {if(c){a.onMenuTriggerOut(b)}}}},isWithinTrigger:function(d){var a=this,e=a.el,c,b;c=a.arrowAlign==='right'?d.getX()-a.getX():d.getY()-e.getY();b=a.getTriggerRegion();return c>b.begin&&c{iconMarkup}
    role="{textElRole}">{text}
    {iconMarkup}',iconTpl:'',_textAlignClasses:{left:'x-title-align-left',center:'x-title-align-center',right:'x-title-align-right'},_iconAlignClasses:{top:'x-title-icon-top',right:'x-title-icon-right',bottom:'x-title-icon-bottom',left:'x-title-icon-left'},_rotationClasses:{0:'x-title-rotate-none',1:'x-title-rotate-right',2:'x-title-rotate-left'},_rotationAngles:{1:90,2:270},baseCls:'x-title',_titleSuffix:'-title',_glyphCls:'x-title-glyph',_iconWrapCls:'x-title-icon-wrap',_baseIconCls:'x-title-icon',_itemCls:'x-title-item',_textCls:'x-title-text',afterComponentLayout:function(){var b=this,c=b.getRotation(),a,d,e;if(c&&!Ext.isIE8){e=b.el;a=b.lastBox;d=a.x;e.setStyle(b._getVerticalAdjustDirection(),d+(c===1?a.width:-a.height)+'px')}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var a=this,b=a.getRotation(),c=a.el;Ext.Component.prototype.onRender.call(this);if(b){c.setVertical(a._rotationAngles[b])}if(Ext.supports.FixedTableWidthBug){c._needsTableWidthFix=!0}},applyText:function(a){if(!a){a=' '}return a},beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.addCls(a._rotationClasses[a.getRotation()]);a.addCls(a._textAlignClasses[a.getTextAlign()])},getIconMarkup:function(){return this.getTpl('iconTpl').apply(this.getIconRenderData())},getIconRenderData:function(){var a=this,g=a.getIcon(),f=a.getIconCls(),b=a.getGlyph(),d=Ext._glyphFontFamily,e=a.getIconAlign(),c;if(typeof b==='string'){c=b.split('@');b=c[0];d=c[1]}return {id:a.id,ui:a.ui,itemCls:a._itemCls,iconUrl:g,iconCls:f,iconWrapCls:a._iconWrapCls,baseIconCls:a._baseIconCls,iconAlignCls:a._iconAlignClasses[e],glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:d}},initRenderData:function(){var a=this,c,b;b=Ext.apply({text:a.getText(),textElRole:a.textElRole,id:a.id,ui:a.ui,itemCls:a._itemCls,textCls:a._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(a._hasIcon()){c=a.getIconAlign();b.iconMarkup=a.getIconMarkup();b.iconBeforeTitle=c==='top'||c==='left'}return b},onAdded:function(a,f,e){var d=this,c=d._titleSuffix,b=a.baseCls;d.addCls([b+c,b+c+'-'+a.ui]);Ext.Component.prototype.onAdded.call(this,a,f,e)},updateGlyph:function(a,g){a=a||0;var b=this,f=b._glyphCls,c,d,e;b.glyph=a;if(b.rendered){b._syncIconVisibility();c=b.iconEl;if(typeof a==='string'){e=a.split('@');a=e[0];d=e[1]||Ext._glyphFontFamily}if(!a){c.dom.innerHTML='';c.removeCls(f)}else {if(g!==a){c.dom.innerHTML='&#'+a+';';c.addCls(f)}}if(d){c.setStyle('font-family',d)}if(b._didIconStateChange(g,a)){b.updateLayout()}}},updateIcon:function(a,c){a=a||'';var b=this,d;if(b.rendered&&a!==c){b._syncIconVisibility();d=b.iconEl;d.setStyle('background-image',a?'url('+a+')':'');if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateIconAlign:function(d,f){var a=this,b=a.iconWrapEl,e,c;if(a.iconWrapEl){e=a.el;c=a._iconAlignClasses;if(f){b.removeCls(c[f])}b.addCls(c[d]);if(d==='top'||d==='left'){e.insertFirst(b)}else {e.appendChild(b)}a.updateLayout()}},updateIconCls:function(a,c){a=a||'';var b=this,d;if(b.rendered&&c!==a){b._syncIconVisibility();d=b.iconEl;if(c){d.removeCls(c)}d.addCls(a);if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateRotation:function(d,e){var a=this,b,c;if(a.rendered){b=a.el;c=a._rotationClasses;a.removeCls(c[e]);a.addCls(c[d]);b.setHorizontal();if(d){b.setVertical(a._rotationAngles[d])}b.setStyle({right:'',left:'',top:'',height:'',width:''});a.lastBox=null;a.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,c){var a=this,b=a._textAlignClasses;if(a.rendered){if(c){a.removeCls(b[c])}a.addCls(b[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return 'left'},_didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var a=this,f=a.el,e=a._hasIcon(),b=a.iconWrapEl,d,c;if(e&&!b){c=a.iconAlign;d=c==='left'||c==='top';f.dom.insertAdjacentHTML(d?'afterbegin':'beforeend',a.getIconMarkup());b=a.iconWrapEl=f[d?'first':'last']();a.iconEl=b.first()}if(b){b.setDisplayed(e)}}}},0,['title'],['component','box','title'],{'component':!0,'box':!0,'title':!0},['widget.title'],0,[Ext.panel,'Title'],0);Ext.cmd.derive('Ext.panel.Tool',Ext.Component,{isTool:!0,baseCls:'x-tool',disabledCls:'x-tool-disabled',toolPressedCls:'x-tool-pressed',toolOverCls:'x-tool-over',childEls:['toolEl'],renderTpl:[''],toolOwner:null,tooltipType:'qtip',stopEvent:!0,ariaRole:'button',focusable:!0,tabIndex:0,keyHandlers:{SPACE:'onClick',ENTER:'onClick'},cacheHeight:!0,cacheWidth:!0,initComponent:function(){var a=this;a.type=a.type||a.id;Ext.applyIf(a.renderData,{baseCls:a.baseCls,type:a.type});a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);a.el.on({click:a.onClick,mousedown:a.onMouseDown,mouseover:a.onMouseOver,mouseout:a.onMouseOut,scope:a});b=a.tooltip;if(b){a.setTooltip(b)}},tipAttrs:{qtip:'data-qtip'},setTooltip:function(b,d){var a=this,g=a.tooltip,f=a.tooltipType,h=a.id,e=a.el,c;if(g&&Ext.quickTipsActive&&Ext.isObject(g)){Ext.tip.QuickTipManager.unregister(h)}a.tooltip=b;if(d){a.tooltipType=d}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:h},b))}else {if(e){if(d&&f&&d!==f){c=a.tipAttrs[f]||'title';e.dom.removeAttribute(c)}c=a.tipAttrs[d||f]||'title';e.dom.setAttribute(c,b)}}if(c!=='title'&&a.ariaRole&&a.ariaRole!=='presentation'){if(e){e.dom.setAttribute('aria-label',b)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-label']=b}}}},setType:function(b){var a=this,c=a.type;a.type=b;if(a.rendered){if(c){a.toolEl.removeCls(a.baseCls+'-'+c)}a.toolEl.addCls(a.baseCls+'-'+b)}else {a.renderData.type=b}return a},onDestroy:function(){var a=this,b=a.keyMap;a.setTooltip(null);delete a.toolOwner;Ext.Component.prototype.onDestroy.call(this)},privates:{onClick:function(b,c){var a=this;if(a.disabled){return !1}if(b.type!=='keydown'){a.el.removeCls(a.toolPressedCls+' '+a.toolOverCls)}if(a.stopEvent!==!1){b.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[b,c,a.ownerCt,a],0,a)}else {if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,b],0,a)}}a.fireEvent('click',a,b,a.toolOwner||a.ownerCt);return !0},onMouseDown:function(a){a.preventDefault();if(this.disabled){return !1}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return !1}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)}}},0,['tool'],['component','box','tool'],{'component':!0,'box':!0,'tool':!0},['widget.tool'],0,[Ext.panel,'Tool'],0);Ext.cmd.derive('Ext.util.KeyMap',Ext.Base,{alternateClassName:'Ext.KeyMap',eventName:'keydown',constructor:function(b){var a=this;if(arguments.length!==1||typeof b==='string'||b.dom||b.tagName||b===document||b.isComponent){a.legacyConstructor.apply(a,arguments);return}Ext.apply(a,b);a.bindings=[];if(!a.target.isComponent){a.target=Ext.get(a.target)}if(a.binding){a.addBinding(a.binding)}else {if(b.key){a.addBinding(b)}}a.enable()},legacyConstructor:function(d,b,c){var a=this;Ext.apply(a,{target:Ext.get(d),eventName:c||a.eventName,bindings:[]});if(b){a.addBinding(b)}a.enable()},addBinding:function(b){var a=this,e=b.key,c,d;if(a.processing){a.bindings=a.bindings.slice(0)}if(Ext.isArray(b)){for(c=0,d=b.length;c=i){return a}}}if(!g){return}a=c.findNextFocusableChild({beforeRender:h,items:b,step:!0});if(a){c.activateFocusable(a)}return a},clearFocusables:function(){var d=this,c=d.getFocusables(),e=c.length,a,b;for(b=0;b0?d0?d+b:e-1;for(;;a+=b){if(d<0&&(a>=e||a<0)){return null}else {if(a>=e){a=-1;continue}else {if(a<0){a=e;continue}else {if(a===d){return null}}}}c=g[a];if(!c||!c.focusable||c.disabled){continue}if(i||c.isFocusable&&c.isFocusable()){return c}}return null},getFocusableContainerEl:function(){return this.el},onFocusableChildAdd:function(a){if(this.enableFocusableContainer){return this.doFocusableChildAdd(a)}},activateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:this.activeChildTabIndex})}},deactivateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:undefined})}},isFocusableContainerActive:function(){var e=this,d=!1,c,b,a;c=e.getFocusableContainerEl();if(c&&c.isTabbable&&c.isTabbable()){d=!0}else {b=e.lastFocusedChild;a=b&&b.getFocusEl&&b.getFocusEl();if(a&&a.isTabbable&&a.isTabbable()){d=!0}}return d},doFocusableChildAdd:function(a){if(a.focusable){a.focusableContainer=this}},onFocusableChildRemove:function(a){if(this.enableFocusableContainer){return this.doFocusableChildRemove(a)}a.focusableContainer=null},doFocusableChildRemove:function(a){if(a===this.lastFocusedChild){this.lastFocusedChild=null;this.activateFocusableContainerEl()}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);this.mousedownTimestamp=a===this?Ext.Date.now():0;if(a===this){c.preventDefault()}},onFocusEnter:function(f){var a=this,d=f.toComponent,c=a.mousedownTimestamp,e=50,b;if(!a.enableFocusableContainer){return null}a.mousedownTimestamp=0;if(d===a){if(!c||Ext.Date.now()-c>e){b=a.initDefaultFocusable();if(b){a.deactivateFocusableContainerEl();b.focus()}}}else {a.deactivateFocusableContainerEl()}return d},onFocusLeave:function(c){var a=this,b=a.lastFocusedChild;if(!a.enableFocusableContainer){return}if(!a.destroyed&&!a.destroying){a.clearFocusables();if(b&&!b.disabled){a.activateFocusable(b)}else {a.activateFocusableContainerEl()}}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.enableFocusableContainer){return}a.clearFocusables();a.activateFocusable(b);if(b.needArrowKeys){a.guardFocusableChild(b)}},guardFocusableChild:function(c){var b=this,d=b.activeChildTabIndex,a;a=b.findNextFocusableChild({child:c,step:-1});if(a){a.setTabIndex(d)}a=b.findNextFocusableChild({child:c,step:1});if(a){a.setTabIndex(d)}},afterFocusableChildFocus:function(a){if(!this.enableFocusableContainer){return}this.lastFocusedChild=a},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this;if(!a.enableFocusableContainer){return}if(b!==a.lastFocusedChild){a.deactivateFocusable(b);if(!a.isFocusableContainerActive()){a.activateFocusableContainerEl()}}},beforeFocusableChildDisable:function(c){var a=this,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(c.hasFocus){b=a.findNextFocusableChild({child:c})||c.findFocusTarget();if(b){b.focus()}}},onFocusableChildDisable:function(d){var a=this,c=a.lastFocusedChild,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(d===c){a.activateFocusableContainerEl()}b=a.findNextFocusableChild({step:1});if(!b){a.deactivateFocusableContainerEl()}},onFocusableChildShow:Ext.privateFn,onFocusableChildHide:Ext.privateFn,onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn}},0,0,0,0,0,0,[Ext.util,'FocusableContainer'],0);Ext.cmd.derive('Ext.panel.Header',Ext.panel.Bar,{isHeader:!0,defaultType:'tool',indicateDrag:!1,weight:-1,shrinkWrap:3,iconAlign:'left',titleAlign:'left',titlePosition:0,titleRotation:'default',autoEl:{role:'presentation'},beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{xtype:'title',flex:1},merge:function(a,b){if(typeof a!=='object'){a={text:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:'x-header',initComponent:function(){var a=this,b=a.items,d=a.itemPosition,c=[a.headerCls];a.tools=a.tools||[];a.items=b=b?b.slice():[];if(d!==undefined){a._userItems=b.slice();a.items=b=[]}a.indicateDragCls=a.headerCls+'-draggable';if(a.indicateDrag){c.push(a.indicateDragCls)}a.addCls(c);a.syncNoBorderCls();a.enableFocusableContainer=!a.isAccordionHeader&&a.tools.length>0;if(a.enableFocusableContainer){a.ariaRole='toolbar'}Ext.Array.push(b,a.tools);a.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);a.on({dblclick:a.onDblClick,click:a.onClick,element:'el',scope:a})},addTool:function(b){var a=this;a.add(Ext.ComponentManager.create(b,'tool'));if(!a.isAccordionHeader&&a.tools.length>0&&!a.enableFocusableContainer){a.enableFocusableContainer=!0;a.ariaRole='toolbar';if(a.rendered){a.ariaEl.dom.setAttribute('role','toolbar');a.initFocusableContainer(!0)}}},afterLayout:function(){var a=this,e,b,c,d;if(a.vertical){b=a.frameTR;if(b){e=a.frameBR;c=a.frameTL;d=a.getWidth()-b.getPadding('r')-(c?c.getPadding('l'):a.el.getBorderWidth('l'))+'px';e.setStyle('background-position-x',d);b.setStyle('background-position-x',d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(a,d){var b=this,c,e;a=a||'';c=typeof a==='string';if(c){a={text:a}}if(d){Ext.suspendLayouts();d.setConfig(a);Ext.resumeLayouts(!0);a=d}else {if(c){a.xtype='title'}a.ui=b.ui;e='rotation' in a;a.id=b.id+'-title';if(b.isAccordionHeader){a.ariaRole='tab';a.textElRole=null;a.focusable=!0}a=Ext.create(a);if(!e&&b.vertical&&b.titleRotation==='default'){a.rotation=1}}return a},applyTitlePosition:function(b){var a=this.items.getCount();if(this._titleInItems){--a}return Math.max(Math.min(b,a),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var a=this,b=a.itemPosition;a.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(b!==undefined){a.insert(b,a._userItems)}},getTools:function(){return this.tools.slice()},onAdd:function(a,c){var b=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,a,c);if(a.isTool){b.push(a);b[a.type]=a}},onAdded:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,a,c,b)},onRemoved:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,a,c,b)},setDock:function(e){var a=this,c=a.getTitle(),b=a.getTitleRotation(),d=c.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,e);if(b==='default'){b=a.vertical?1:0;if(b!==d){c.setRotation(b)}if(a.rendered){a.resetItemMargins()}}Ext.resumeLayouts(!0)},updateGlyph:function(a){this.getTitle().setGlyph(a)},updateIcon:function(a){this.getTitle().setIcon(a)},updateIconAlign:function(a,b){this.getTitle().setIconAlign(a)},updateIconCls:function(a){this.getTitle().setIconCls(a)},updateTitle:function(a,b){if(!b){this.insert(this.getTitlePosition(),a);this._titleInItems=!0}this.titleCmp=a},updateTitleAlign:function(a,b){this.getTitle().setTextAlign(a)},updateTitlePosition:function(a){this.insert(a,this.getTitle())},updateTitleRotation:function(a){if(a==='default'){a=this.vertical?1:0}this.getTitle().setRotation(a)},privates:{fireClickEvent:function(c,a){var b='.'+Ext.panel.Tool.prototype.baseCls;if(!a.getTarget(b)){this.fireEvent(c,this,a)}},getFramingInfoCls:function(){var a=this,c=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),b=a.ownerCt;if(!a.expanding&&b&&(b.collapsed||a.isCollapsedExpander)){c+='-'+b.collapsedCls}return c+'-'+a.dock},onClick:function(a){this.fireClickEvent('click',a)},onDblClick:function(a){this.fireClickEvent('dblclick',a)},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {this.mixins.focusablecontainer.onFocusableContainerMousedown.apply(this,arguments)}},syncBeforeAfterTitleClasses:function(l){var c=this,j=c.items,i=j.items,h=c.getTitlePosition(),k=i.length,g=j.generation,f=c.syncBeforeAfterGen,e,d,b,a;if(!l&&f===g){return}c.syncBeforeAfterGen=g;for(b=0;bh){if(f){a.removeCls(d)}a.addCls(e)}}}},syncNoBorderCls:function(){var a=this,b=this.ownerCt,c=a.headerCls+'-noborder';if(b?b.border===!1&&!b.frame:a.border===!1){a.addCls(c)}else {a.removeCls(c)}}}},0,['header'],['component','box','container','header'],{'component':!0,'box':!0,'container':!0,'header':!0},['widget.header'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.panel,'Header'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.None',Ext.Base,{alternateClassName:'Ext.layout.boxOverflow.None',factoryConfig:{defaultType:'none'},isBoxOverflowHandler:!0,$configPrefixed:!1,$configStrict:!1,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var c=this,d=b.state.boxPlan,a;if(d&&d.tooNarrow){a=c.handleOverflow(b);if(a){if(a.reservedSpace){c.layout.publishInnerCtSize(b,a.reservedSpace)}}}else {c.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(e){var b=this,d=b.layout.owner,c,a;if(d.hasListeners.overflowchange){c=d.query('>[hidden]');a=c.length;if(a!==b.lastHiddenCount){d.fireEvent('overflowchange',b.lastHiddenCount,a,c);b.lastHiddenCount=a}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(b){var a;if(b.isToolbar){a='toolbar'}else {if(b.isTabBar){a='tab-bar'}else {if(b.isMenu){a='menu'}else {if(b.isBreadcrumb){a='breadcrumb'}else {a=b.getXType()}}}}return a},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return ''},setVertical:function(){var b=this,a=b.layout,c=a.innerCt;c.removeCls(b.getOverflowCls(a.oppositeDirection));c.addCls(b.getOverflowCls(a.direction))}},1,0,0,0,['box.overflow.None','box.overflow.none'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout.container.boxOverflow,'None',Ext.layout.boxOverflow,'None'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Scroller',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Scroller',animateScroll:!1,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:'x-box-scroller',beforeSuffix:'-before-scroller',afterSuffix:'-after-scroller',constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.scrollPosition=0;a.scrollSize=0},getPrefixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.beforeSuffix,cls:this.createScrollerCls('beforeX'),style:'display:none'}},getSuffixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.afterSuffix,cls:this.createScrollerCls('afterX'),style:'display:none'}},createScrollerCls:function(g){var c=this,d=c.layout,b=d.owner,e=c.getOwnerType(b),a=c.scrollerCls,f=a+' '+a+'-'+d.names[g]+' '+a+'-'+e+' '+a+'-'+e+'-'+b.ui;if(b.plain){f+=' '+a+'-plain'}return f},getOverflowCls:function(a){return this.scrollerCls+'-body-'+a},beginLayout:function(a){a.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(a){var b=this,f=a.state.boxPlan,e=b.layout,d=e.names,g=Math.min(b.getMaxScrollPosition(),a.innerCtScrollPos),c;if(f&&f.tooNarrow){c=a.childItems[a.childItems.length-1].props;b.scrollSize=c[d.x]+c[d.width];b.updateScrollButtons();e.innerCt[d.setScrollLeft](g)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,a)},handleOverflow:function(i){var a=this,d=a.layout.names,h=d.getWidth,f=d.parallelMargins,g,e,b,c;a.showScrollers();b=a.getBeforeScroller();c=a.getAfterScroller();g=b[h]()+c[h]()+b.getMargin(f)+c.getMargin(f);e=i.targetContext.getPaddingInfo()[d.width];return {reservedSpace:Math.max(g-e,0)}},getBeforeScroller:function(){var a=this;return a._beforeScroller||(a._beforeScroller=a.createScroller(a.beforeSuffix,'beforeRepeater','scrollLeft'))},getAfterScroller:function(){var a=this;return a._afterScroller||(a._afterScroller=a.createScroller(a.afterSuffix,'afterRepeater','scrollRight'))},createScroller:function(g,f,e){var b=this,d=b.layout.owner,c=b.scrollerCls,a;a=d.el.getById(d.id+g);a.addClsOnOver(c+'-hover');a.addClsOnClick(c+'-pressed');a.setVisibilityMode(Ext.Element.DISPLAY);b[f]=new Ext.util.ClickRepeater(a,{interval:b.scrollRepeatInterval,handler:e,scope:b});return a},createWheelListener:function(){var a=this;a.wheelListener=a.layout.innerCt.on('mousewheel',a.onMouseWheel,a,{destroyable:!0})},onMouseWheel:function(a){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,!1)},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;if(!a.wheelListener){a.createWheelListener()}a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')},hideScrollers:function(){var a=this,b=a.getBeforeScroller(),c=a.getAfterScroller();if(b){b.hide();c.hide();a.layout.owner.removeClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')}},destroy:function(){Ext.destroyMembers(this,'beforeRepeater','afterRepeater','_beforeScroller','_afterScroller','wheelListener');this.callParent()},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getScrollAnim:function(){return {duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var a=this,c=a.getBeforeScroller(),d=a.getAfterScroller(),b;if(!c||!d){return}b=a.scrollerCls+'-disabled';c[a.atExtremeBefore()?'addCls':'removeCls'](b);d[a.atExtremeAfter()?'addCls':'removeCls'](b);a.scrolling=!1},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,!1)},scrollRight:function(){this.scrollBy(this.scrollIncrement,!1)},getScrollPosition:function(){var b=this,c=b.layout,a;if(isNaN(b.scrollPosition)){a=c.innerCt[c.names.getScrollLeft]()}else {a=b.scrollPosition}return a},getMaxScrollPosition:function(){var c=this,b=c.layout,a=c.scrollSize-b.innerCt.lastBox[b.names.width];return a<0?0:a},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var c=this,d=c.getBeforeScroller(),e=c.getAfterScroller(),b=c.layout.names,a=c.scrollerCls;d.removeCls(a+'-'+b.beforeY);e.removeCls(a+'-'+b.afterY);d.addCls(a+'-'+b.beforeX);e.addCls(a+'-'+b.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(g,b){var a=this,d=a.layout,e=d.names,f=a.getScrollPosition(),c=Ext.Number.constrain(g,0,a.getMaxScrollPosition());if(c!==f&&!a.scrolling){a.scrollPosition=NaN;if(b===undefined){b=a.animateScroll}d.innerCt[e.scrollTo](e.beforeScrollX,c,b?a.getScrollAnim():!1);if(b){a.scrolling=!0}else {a.updateScrollButtons()}a.fireEvent('scroll',a,c,b?a.getScrollAnim():!1)}},scrollToItem:function(a,i){var c=this,e=c.layout,h=e.owner,f=e.names,j=e.innerCt,d,g,b;a=c.getItem(a);if(a!==undefined){if(a===h.items.first()){b=0}else {if(a===h.items.last()){b=c.getMaxScrollPosition()}else {d=c.getItemVisibility(a);if(!d.fullyVisible){g=a.getBox(!1,!0);b=g[f.x];if(d.hiddenEnd){b-=j[f.getWidth]()-g[f.width]}}}}if(b!==undefined){c.scrollTo(b,i)}}},getItemVisibility:function(i){var d=this,h=d.getItem(i).getBox(!0,!0),g=d.layout,c=g.names,b=h[c.x],f=b+h[c.width],a=d.getScrollPosition(),e=a+g.innerCt[c.getWidth]();return {hiddenStart:be,fullyVisible:b>=a&&f<=e}}},1,0,0,0,['box.overflow.Scroller','box.overflow.scroller'],[['observable',Ext.mixin.Observable]],[Ext.layout.container.boxOverflow,'Scroller',Ext.layout.boxOverflow,'Scroller'],0);Ext.cmd.derive('Ext.dd.DragDropManager',Ext.Base,{singleton:!0,alternateClassName:['Ext.dd.DragDropMgr','Ext.dd.DDM'],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:!0,stopPropagation:!0,initialized:!1,locked:!1,init:function(){this.initialized=!0},POINT:0,INTERSECT:1,mode:0,notifyOccluded:!1,dragCls:'x-dd-drag-current',_execOnAll:function(f,g){var c=this.ids,d,e,b,a;for(d in c){if(c.hasOwnProperty(d)){a=c[d];for(e in a){if(a.hasOwnProperty(e)){b=a[e];if(!this.isTypeOfDD(b)){continue}b[f].apply(b,g)}}}}},addListeners:function(){var a=this;a.init();Ext.getDoc().on({mouseup:a.handleMouseUp,mousemove:{fn:a.handleMouseMove,capture:!1},dragstart:a.preventDrag,drag:a.preventDrag,dragend:a.preventDrag,capture:!0,scope:a});Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},preventDrag:function(a){if(this.isMouseDown){a.stopPropagation()}},_onResize:function(a){this._execOnAll('resetConstraints',[])},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isLocked:function(){return this.locked},locationCache:{},useCache:!0,clickPixelThresh:8,dragThreshMet:!1,clickTimeout:null,startX:0,startY:0,regDragDrop:function(b,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][b.id]=b},removeDDFromGroup:function(c,a){if(!this.ids[a]){this.ids[a]={}}var b=this.ids[a];if(b&&b[c.id]){delete b[c.id]}},_remove:function(b,f){var a=this,d=a.ids,e=b.groups,c;if(a.clearingAll){return}if(a.dragCurrent===b){a.dragCurrent=null}for(c in e){if(e.hasOwnProperty(c)){if(f){delete d[c]}else {if(d[c]){delete d[c][b.id]}}}}delete a.handleIds[b.id];delete a.locationCache[b.id]},regHandle:function(a,b){if(!this.handleIds[a]){this.handleIds[a]={}}this.handleIds[a][b]=b},isDragDrop:function(a){return this.getDDById(a)?!0:!1},getRelated:function(f,e){var b=[],c,d,a;for(c in f.groups){for(d in this.ids[c]){a=this.ids[c][d];if(!this.isTypeOfDD(a)){continue}if(!e||a.isTarget){b[b.length]=a}}}return b},isLegalTarget:function(e,d){var b=this.getRelated(e,!0),a,c;for(a=0,c=b.length;aa.clickPixelThresh||e>a.clickPixelThresh){a.startDrag(a.startX,a.startY)}}if(a.dragThreshMet){c.b4Drag(b);c.onDrag(b);if(!c.moveOnly){a.fireEvents(b,!1)}}a.stopEvent(b);return !0},fireEvents:function(e,t){var d=this,s=Ext.supports.Touch,c=d.dragCurrent,l=d.currentPoint,v=l.x,w=l.y,j=[],r=[],h=[],i=[],g=[],k=[],u=s?document.documentElement.clientWidth/window.innerWidth:1,p,b,o,q,a,f,n,m;if(!c||c.isLocked()){return}m=!(c.deltaX<0||c.deltaY<0);if(s||!d.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&m){p=c.getDragEl();if(m){p.style.visibility='hidden'}e.target=document.elementFromPoint(v/u,w/u);if(m){p.style.visibility='visible'}}for(a in d.dragOvers){b=d.dragOvers[a];delete d.dragOvers[a];if(!d.isTypeOfDD(b)||b.destroyed){continue}if(d.notifyOccluded){if(!this.isOverTarget(l,b,d.mode)){h.push(b)}}else {if(!e.within(b.getEl())){h.push(b)}}r[a]=!0}for(n in c.groups){if('string'!==typeof n){continue}for(a in d.ids[n]){b=d.ids[n][a];if(d.isTypeOfDD(b)&&(o=b.getEl())&&b.isTarget&&!b.isLocked()&&Ext.fly(o).isVisible(!0)&&(b!==c||c.ignoreSelf===!1)){if(d.notifyOccluded){if((b.zIndex=d.getZIndex(o))!==-1){q=!0}j.push(b)}else {if(e.within(b.getEl())){j.push(b);break}}}}}if(q){Ext.Array.sort(j,d.byZIndex)}for(a=0,f=j.length;a','',''],isSplitter:!0,baseCls:'x-splitter',collapsedClsInternal:'x-splitter-collapsed',canResize:!0,collapsible:null,collapseOnDblClick:!0,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:'next',horizontal:!1,vertical:!1,size:5,tracker:null,ariaRole:'separator',focusable:!0,tabIndex:0,getTrackerConfig:function(){return Ext.apply({xclass:'Ext.resizer.SplitterTracker',el:this.el,splitter:this},this.tracker)},beforeRender:function(){var a=this,c=a.getCollapseTarget(),b=a.collapsible,d;Ext.Component.prototype.beforeRender.call(this);if(c.collapsed){a.addCls(a.collapsedClsInternal)}if(!a.canResize){a.addCls(a.baseCls+'-noresize')}Ext.applyIf(a.renderData,{collapseDir:a.getCollapseDirection(),collapsible:b!==null?b:c.collapsible});a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-orientation']=a.orientation;a.protoEl.unselectable()},onRender:function(){var a=this,b;Ext.Component.prototype.onRender.apply(this,arguments);if(a.performCollapse!==!1){if(a.renderData.collapsible){a.mon(a.collapseEl,'click',a.toggleTargetCmp,a)}if(a.collapseOnDblClick){a.mon(a.el,'dblclick',a.toggleTargetCmp,a)}}a.getCollapseTarget().on({collapse:a.onTargetCollapse,expand:a.onTargetExpand,beforeexpand:a.onBeforeTargetExpand,beforecollapse:a.onBeforeTargetCollapse,scope:a});if(a.canResize){a.tracker=Ext.create(a.getTrackerConfig());a.relayEvents(a.tracker,['beforedragstart','dragstart','dragend'])}b=a.collapseEl;if(b){b.lastCollapseDirCls=a.collapseDirProps[a.collapseDirection].cls}},getCollapseDirection:function(){var b=this,a=b.collapseDirection,c,f,d,e;if(!a){c=b.collapseTarget;if(c.isComponent){a=c.collapseDirection}if(!a){e=b.ownerCt.layout.type;if(c.isComponent){d=b.ownerCt.items;f=Number(d.indexOf(c)===d.indexOf(b)-1)<<1|Number(e==='hbox')}else {f=Number(b.collapseTarget==='prev')<<1|Number(e==='hbox')}a=['bottom','right','top','left'][f]}b.collapseDirection=a}b.setOrientation(a==='top'||a==='bottom'?'horizontal':'vertical');return a},getCollapseTarget:function(){var a=this;return a.collapseTarget.isComponent?a.collapseTarget:a.collapseTarget==='prev'?a.previousSibling():a.nextSibling()},setCollapseEl:function(b){var a=this.collapseEl;if(a){a.setDisplayed(b)}},onBeforeTargetExpand:function(a){this.setCollapseEl('none')},onBeforeTargetCollapse:function(){this.setCollapseEl('none')},onTargetCollapse:function(b){var a=this;if(b===a.getCollapseTarget()&&b[a.orientation==='vertical'?'collapsedHorizontal':'collapsedVertical']()){a.el.addCls(a.collapsedClsInternal+' '+(a.collapsedCls||''))}a.setCollapseEl('')},onTargetExpand:function(b){var a=this;a.el.removeCls(a.collapsedClsInternal+' '+(a.collapsedCls||''));a.setCollapseEl('')},collapseDirProps:{top:{cls:'x-layout-split-top'},right:{cls:'x-layout-split-right'},bottom:{cls:'x-layout-split-bottom'},left:{cls:'x-layout-split-left'}},orientationProps:{horizontal:{opposite:'vertical',fixedAxis:'height',stretchedAxis:'width'},vertical:{opposite:'horizontal',fixedAxis:'width',stretchedAxis:'height'}},applyCollapseDirection:function(){var c=this,a=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],b;if(a){b=a.lastCollapseDirCls;if(b){a.removeCls(b)}a.addCls(a.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var a=this,e=a.orientation,b=a.orientationProps[e],f=a.size,d=b.fixedAxis,c=b.stretchedAxis,g=a.baseCls+'-';a[e]=!0;a[b.opposite]=!1;if(!a.hasOwnProperty(d)||a[d]==='100%'){a[d]=f}if(!a.hasOwnProperty(c)||a[c]===f){a[c]='100%'}a.removeCls(g+b.opposite);a.addCls(g+e)},setOrientation:function(b){var a=this;if(a.orientation!==b){a.orientation=b;a.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,e){var a=this.getCollapseTarget(),c=a.placeholder,b;if(Ext.isFunction(a.expand)&&Ext.isFunction(a.collapse)){if(c&&!c.hidden){b=!0}else {b=!a.hidden}if(b){if(a.collapsed){a.expand()}else {if(a.collapseDirection){a.collapse()}else {a.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},beforeDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.beforeDestroy.call(this)}},0,['splitter'],['component','box','splitter'],{'component':!0,'box':!0,'splitter':!0},['widget.splitter'],0,[Ext.resizer,'Splitter'],0);Ext.define('Ext.theme.neptune.resizer.Splitter',{override:'Ext.resizer.Splitter',size:8});Ext.cmd.derive('Ext.layout.container.Box',Ext.layout.container.Container,{alternateClassName:'Ext.layout.BoxLayout',type:'box',config:{align:'begin',constrainAlign:!1,enableSplitters:!0,overflowHandler:{$value:null,merge:function(a,b){if(typeof a==='string'){a={type:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},padding:0,pack:'start',stretchMaxPartner:undefined,vertical:!1,alignRoundingMethod:'round'},itemCls:'x-box-item',targetCls:'x-box-layout-ct',targetElCls:'x-box-target',innerCls:'x-box-inner',manageMargins:!0,createsInnerCt:!0,childEls:['innerCt','targetEl'],renderTpl:['{%var oc,l=values.$comp.layout,oh=l.overflowHandler;if (oh && oh.getPrefixConfig!==Ext.emptyFn) {if(oc=oh.getPrefixConfig())dh.generateMarkup(oc, out)}%}{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:!0,definitions:'var dh=Ext.DomHelper;'}],constructor:function(c){var a=this,b;Ext.layout.container.Container.prototype.constructor.apply(this,arguments);a.setVertical(a.vertical);a.flexSortFn=a.flexSort.bind(a);b=typeof a.padding;if(b==='string'||b==='number'){a.padding=Ext.util.Format.parseBox(a.padding);a.padding.height=a.padding.top+a.padding.bottom;a.padding.width=a.padding.left+a.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(h,b){var a=this,f=a.sizePolicy,g=a.align,p=h.flex,c=g,o=a.names,e=o.height,m=o.width,q=h[m],n=h[e],d=a._percentageRe,i=d.test(q),l=g==='stretch',j=g==='stretchmax',k=a.constrainAlign;if(!b&&(l||p||i||k&&!j)){b=a.owner.getSizeModel()}if(l){if(!d.test(n)&&b[e].shrinkWrap){c='stretchmax'}}else {if(!j){if(d.test(n)){c='stretch'}else {if(k&&!b[e].shrinkWrap){c='stretchmax'}else {c=''}}}}if(p||i){if(!b[m].shrinkWrap){f=f.flex}}return f[c]},flexSort:function(o,p){var k=this.names.maxWidth,l=this.names.minWidth,j=Infinity,c=o.target,d=p.target,m=c.flex,n=d.flex,a=0,g,i,f,h,e,b;f=c[k]||j;h=d[k]||j;g=c[l]||0;i=d[l]||0;e=isFinite(g)||isFinite(i);b=isFinite(f)||isFinite(h);if(e||b){if(b){a=f-h}if(a===0&&e){a=i-g}if(a===0){if(b){a=n-m}else {a=m-n}}}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(a){var b=this;if(b.direction==='vertical'&&a.collapsedVertical()){a.collapseMemento.capture(['flex']);delete a.flex}else {if(b.direction==='horizontal'&&a.collapsedHorizontal()){a.collapseMemento.capture(['flex']);delete a.flex}}},beginExpand:function(a){a.collapseMemento.restore(['flex'])},beginLayout:function(a){var c=this,f=c.owner,b=f.stretchMaxPartner,h=c.innerCt.dom.style,i=c.names,g=c.overflowHandler,e=f.getScrollable(),d;a.boxNames=i;if(g){g.beginLayout(a)}if(typeof b==='string'){b=Ext.getCmp(b)||f.query(b)[0]}a.stretchMaxPartner=b&&a.context.getCmp(b);Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);a.innerCtContext=a.getEl('innerCt',c);a.targetElContext=a.getEl('targetEl',c);if(e){a.ownerScrollable=e;d=e.getPosition();if(d.x||d.y){a.scrollRestore=d}}h.width=h.height=''},beginLayoutCycle:function(a,l){var c=this,i=a.state,g=a.ownerScrollable,b=c.align,e=a.boxNames,d=c.pack,k=c._centerRe,j=c.overflowHandler,m=a.state.canScroll,h,f;if(j){j.beginLayoutCycle(a,l)}Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);a.parallelSizeModel=h=a[e.widthModel];a.perpendicularSizeModel=f=a[e.heightModel];a.boxOptions={align:b={stretch:b==='stretch',stretchmax:b==='stretchmax',center:k.test(b),bottom:c._endRe.test(b)},pack:d={center:k.test(d),end:d==='end'}};if(g){if(!m){i.canScroll={parallel:!h.shrinkWrap&&g[e.getX](),perpendicular:!f.shrinkWrap&&g[e.getY]()}}if(!i.actualScroll){i.actualScroll={parallel:!1,perpendicular:!1}}}if(b.stretch&&f.shrinkWrap){b.stretchmax=!0;b.stretch=!1}b.nostretch=!(b.stretch||b.stretchmax);if(h.shrinkWrap){d.center=d.end=!1}c.cacheFlexes(a);c.targetEl.setWidth(20000)},cacheFlexes:function(a){var u=this,d=a.boxNames,x=d.widthModel,w=d.heightModel,z=a.boxOptions.align.nostretch,s=0,r=a.childItems,v=r.length,h=[],t=0,g=0,o=0,p=d.minWidth,y=d.minHeight,q=u._percentageRe,n=0,m=0,b,c,l,f,i,j,k,e;while(v--){c=r[v];b=c.target;j=c[x];if(j.calculated){c.flex=l=b.flex;if(l){s+=l;h.push(c);t+=b[p]||0}else {f=q.exec(b[d.width]);c.percentageParallel=parseFloat(f[1])/100;++n}}if(j.configured){k=b[d.width]}else {k=b[p]||0}o+=k;i=c[w];if(z&&i.calculated){f=q.exec(b[d.height]);c.percentagePerpendicular=parseFloat(f[1])/100;++m}if(i.configured){e=b[d.height]}else {e=b[y]||0}if(e>g){g=e}}a.flexedItems=h;a.flexedMinWidth=t;a.smallestWidth=o;a.smallestHeight=g;a.totalFlex=s;a.percentageWidths=n;a.percentageHeights=m;Ext.Array.sort(h,u.flexSortFn)},calculate:function(b){var c=this,f=b.boxNames,a=b.state,h=a.actualScroll,g=a.needsScroll,e=a.canScroll,d=a.boxPlan||(a.boxPlan={}),i=c.overflowHandler;d.targetSize=c.getContainerSize(b);if(e&&!g){a.needsScroll=g={parallel:e.parallel&&d.targetSize[f.width]j){a.invalidate({before:K,after:L,layout:l,childHeight:j,names:d});c.state.parallelDone=!1}if(isNaN(b=o(b,g+i,a.target[d.minHeight]||0))){return !1}}}if(v){b+=q;c[d.hasOverflowX]=!0;c.target.componentLayout[d.setHeightInDom]=!0;c[d.invalidateScrollX]=Ext.isIE8}p=c.stretchMaxPartner;if(p){c.setProp('maxChildHeight',b);w=p.childItems;if(w&&w.length){b=o(b,p.getProp('maxChildHeight'));if(isNaN(b)){return !1}}}c[d.setContentHeight](b+l.padding[e]+c.targetContext.getPaddingInfo()[e]);if(v){b-=q}if(b>y[e]&&H&&H.perpendicular){C.actualScroll.perpendicular=!0}t.maxSize=b;if(O){f=b}else {if(B||A||D){if(I){f=h?b:j}else {f=h?b:o(j,b)}f-=c.innerCtContext.getBorderInfo()[e]}}for(k=0;k0){n=u+Math[l.alignRoundingMethod](s/2)}}else {if(A){n=o(0,f-n-a.props[e])}}}a.setProp(M,n)}return !0},onBeforeConstrainInvalidateChild:function(b,c){var a=c.names.heightModel;if(!b[a].constrainedMin){b[a]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(a,c){var b=c.names;a.setProp(b.beforeY,0);if(a[b.heightModel].calculated){a[b.setHeight](c.childHeight)}},calculateStretchMax:function(k,c,o){var f=this,h=c.height,l=c.width,g=k.childItems,n=g.length,m=o.maxSize,i=f.onBeforeStretchMaxInvalidateChild,j=f.onAfterStretchMaxInvalidateChild,a,b,d,e;for(d=0;d':{xtype:'tbfill',height:0}},1:{'->':{xtype:'tbfill',width:0}}}},initComponent:function(){var a=this,b=a.layout,c=a.vertical;if(c===undefined){a.vertical=c=a.dock==='right'||a.dock==='left'}a.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:c?'vbox':'hbox',align:c?'stretchmax':'middle'});if(a.overflowHandler){b.overflowHandler=a.overflowHandler}else {if(a.enableOverflow){b.overflowHandler='menu'}}if(c){a.addClsWithUI('vertical')}if(a.ui==='footer'){a.ignoreBorderManagement=!0}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(d){var c=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),e=c.layout,a;if(d&&(c.enableOverflow||c.overflowHandler==='menu')){a=e.overflowHandler;if(a&&a.menu){b=b.concat(a.menu.getRefItems(d))}}return b},lookupComponent:function(a){var d=arguments,b,c;if(typeof a==='string'){c=Ext.toolbar.Toolbar;b=c.shortcutsHV[this.vertical?1:0][a]||c.shortcuts[a];if(typeof b==='string'){a={xtype:b}}else {if(b){a=Ext.apply({},b)}else {a={xtype:'tbtext',text:a}}}this.applyDefaults(a);d=[a]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(a){var b=this,d=b.ui==='footer',c=d?b.defaultFooterButtonUI:b.defaultButtonUI;if(a.isSegmentedButton){if(a.getDefaultUI()==='default'&&!a.config.hasOwnProperty('defaultUI')){a.setDefaultUI(c)}}else {if(a.ui==='default'&&!a.hasOwnProperty('ui')){if(a.isButton){a.ui=c}else {if(a.isFormField){a.ui=d?b.defaultFooterFieldUI:b.defaultFieldUI}}}}if(a instanceof Ext.toolbar.Separator){a.setUI(b.vertical?'vertical':'horizontal')}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(a){if(a.needArrowKeys&&this.enableFocusableContainer){this.enableFocusableContainer=!1}Ext.container.Container.prototype.onAdd.apply(this,arguments);this.trackMenu(a)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,!0)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(b,c){var a=this;if(a.trackMenus&&b.menu){b[c?'un':'on']({mouseover:a.onButtonOver,menushow:a.onButtonMenuShow,menuhide:a.onButtonMenuHide,scope:a})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(a,c){var b=this.activeMenuBtn;if(b&&b!==a){b.hideMenu();a.focus();a.showMenu(c);this.activeMenuBtn=a}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,['toolbar'],['component','box','container','toolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0},['widget.toolbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,'Toolbar',Ext,'Toolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Toolbar',{override:'Ext.toolbar.Toolbar',usePlainButtons:!1,border:!1});Ext.cmd.derive('Ext.dd.DragDrop',Ext.Base,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:!1,lock:function(){this.locked=!0},moveOnly:!1,unlock:function(){this.locked=!1},isTarget:!0,padding:null,_domRef:null,__ygDragDrop:!0,constrainX:!1,constrainY:!1,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:!1,xTicks:null,yTicks:null,primaryButtonOnly:!0,available:!1,hasOuterHandles:!1,triggerEvent:'mousedown',b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(b,a){},b4DragOver:function(a){},onDragOver:function(b,a){},b4DragOut:function(a){},onDragOut:function(b,a){},b4DragDrop:function(a){},onDragDrop:function(b,a){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(j,a,k){if(Ext.isNumber(a)){a={left:a,right:a,top:a,bottom:a}}a=a||this.defaultPadding;var c=Ext.get(this.getEl()).getBox(),e=Ext.get(j),i=e.getScroll(),b,d=e.dom,h,g,f;if(d===document.body){b={x:i.left,y:i.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else {h=e.getXY();b={x:h[0],y:h[1],width:d.clientWidth,height:d.clientHeight}}g=c.y-b.y;f=c.x-b.x;this.resetConstraints();this.setXConstraint(f-(a.left||0),b.width-f-c.width-(a.right||0),this.xTickSize);this.setYConstraint(g-(a.top||0),b.height-g-c.height-(a.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(b,d,c){var a=this;a.el=a.el||Ext.get(b);a.initTarget(b,d,c);Ext.get(a.id).on(a.triggerEvent,a.handleMouseDown,a)},initTarget:function(a,b,c){this.config=c||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof a!=='string'){a=Ext.id(a)}this.id=a;this.addToGroup(b?b:'default');this.handleElId=a;this.setDragElId(a);this.invalidHandleTypes={A:'A'};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=this.config.isTarget!==!1;this.maintainOffset=this.config.maintainOffset;this.primaryButtonOnly=this.config.primaryButtonOnly!==!1},handleOnAvailable:function(){this.available=!0;this.resetConstraints();this.onAvailable()},setPadding:function(a,b,c,d){if(!b&&0!==b){this.padding=[a,a,a,a]}else {if(!c&&0!==c){this.padding=[a,b,a,b]}else {this.padding=[a,b,c,d]}}},setInitPosition:function(e,f){var d=this.getEl(),b,c,a;if(!this.DDMInstance.verifyEl(d)){return}b=e||0;c=f||0;a=Ext.fly(d).getXY();this.initPageX=a[0]-b;this.initPageY=a[1]-c;this.lastPageX=a[0];this.lastPageY=a[1];this.setStartPosition(a)},setStartPosition:function(b){var a=b||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=a[0];this.startPageY=a[1]},addToGroup:function(a){this.groups[a]=!0;this.DDMInstance.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDMInstance.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.handleElId=a;this.DDMInstance.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}Ext.get(a).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=!0},unreg:function(){var a=this,b;if(a._domRef){b=Ext.fly(a.id);if(b){b.un(a.triggerEvent,a.handleMouseDown,a)}}a._domRef=null;a.DDMInstance._remove(a,a.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return this.DDMInstance.isLocked()||this.locked},handleMouseDown:function(b,c){var a=this;if(a.primaryButtonOnly&&b.button||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(b.getPoint(),a)){if(a.clickValidator(b)){a.setStartPosition();a.b4MouseDown(b);a.onMouseDown(b);a.DDMInstance.handleMouseDown(b,a);a.DDMInstance.stopEvent(b)}}},clickValidator:function(b){var a=b.getTarget();return this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id))},addInvalidHandleType:function(b){var a=b.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){var b=a.toUpperCase();delete this.invalidHandleTypes[b]},removeInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(c){var b=this.invalidHandleClasses,d=b.length,a;for(a=0;a=this.minX;a=a-c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}for(a=this.initPageX;a<=this.maxX;a=a+c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,c){this.yTicks=[];this.yTickSize=c;var b={},a;for(a=this.initPageY;a>=this.minY;a=a-c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}for(a=this.initPageY;a<=this.maxY;a=a+c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(c,b,a){this.leftConstraint=c;this.rightConstraint=b;this.minX=this.initPageX-c;this.maxX=this.initPageX+b;if(a){this.setXTicks(this.initPageX,a)}this.constrainX=!0},clearConstraints:function(){this.constrainX=!1;this.constrainY=!1;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(c,b,a){this.topConstraint=c;this.bottomConstraint=b;this.minY=this.initPageY-c;this.maxY=this.initPageY+b;if(a){this.setYTicks(this.initPageY,a)}this.constrainY=!0},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var a=this.maintainOffset?this.lastPageX-this.initPageX:0,b=this.maintainOffset?this.lastPageY-this.initPageY:0;this.setInitPosition(a,b)}else {this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(d,a){if(!a){return d}else {if(a[0]>=d){return a[0]}else {var b,g,c,e,f;for(b=0,g=a.length;b=d){e=d-a[b];f=a[c]-d;return f>e?a[b]:a[c]}}return a[a.length-1]}}},toString:function(){return 'DragDrop '+this.id}},3,0,0,0,0,0,[Ext.dd,'DragDrop'],0);Ext.cmd.derive('Ext.dd.DD',Ext.dd.DragDrop,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},scroll:!0,autoOffset:function(a,b){var c=a-this.startPageX,d=b-this.startPageY;this.setDelta(c,d)},setDelta:function(a,b){this.deltaX=a;this.deltaY=b},setDragElPos:function(a,b){var c=this.getDragEl();this.alignElWithMouse(c,a,b)},alignElWithMouse:function(d,j,k){var a=this.getTargetCoord(j,k),c=d.dom?d:Ext.fly(d,'_dd'),e=c.getSize(),i=Ext.Element,b,g,f,h;if(!this.deltaSetXY){b=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};g=[Math.max(0,Math.min(a.x,b.width-e.width)),Math.max(0,Math.min(a.y,b.height-e.height))];c.setXY(g);f=this.getLocalX(c);h=c.getLocalY();this.deltaSetXY=[f-a.x,h-a.y]}else {b=this.cachedViewportSize;this.setLocalXY(c,Math.max(0,Math.min(a.x+this.deltaSetXY[0],b.width-e.width)),Math.max(0,Math.min(a.y+this.deltaSetXY[1],b.height-e.height)))}this.cachePosition(a.x,a.y);this.autoScroll(a.x,a.y,d.offsetHeight,d.offsetWidth);return a},cachePosition:function(b,c){if(b){this.lastPageX=b;this.lastPageY=c}else {var a=Ext.fly(this.getEl()).getXY();this.lastPageX=a[0];this.lastPageY=a[1]}},autoScroll:function(e,f,m,n){if(this.scroll){var g=Ext.Element.getViewportHeight(),h=Ext.Element.getViewportWidth(),b=this.DDMInstance.getScrollTop(),a=this.DDMInstance.getScrollLeft(),l=m+f,j=n+e,k=g+b-f-this.deltaY,i=h+a-e-this.deltaX,d=40,c=document.all?80:30;if(l>g&&k0&&f-bh&&i0&&e-athis.maxX){a=this.maxX}}if(this.constrainY){if(bthis.maxY){b=this.maxY}}a=this.getTick(a,this.xTicks);b=this.getTick(b,this.yTicks);return {x:a,y:b}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=this.config.scroll!==!1},b4MouseDown:function(b){var a=b.getXY();this.autoOffset(a[0],a[1])},b4Drag:function(b){var a=b.getXY();this.setDragElPos(a[0],a[1])},toString:function(){return 'DD '+this.id},getLocalX:function(a){return a.getLocalX()},setLocalXY:function(a,b,c){a.setLocalXY(b,c)}},3,0,0,0,0,0,[Ext.dd,'DD'],0);Ext.cmd.derive('Ext.dd.DDProxy',Ext.dd.DD,{statics:{dragElId:'ygddfdiv'},constructor:function(a,c,b){if(a){this.init(a,c,b);this.initFrame()}},resizeFrame:!0,centerFrame:!1,createFrame:function(){var d=this,c=document.body,a,b;if(!c||!c.firstChild){Ext.defer(function(){d.createFrame()},50);return}a=this.getDragEl();if(!a){a=document.createElement('div');a.id=this.dragElId;a.setAttribute('role','presentation');b=a.style;b.position='absolute';b.visibility='hidden';b.cursor='move';b.border='2px solid #aaa';b.zIndex=999;c.insertBefore(a,c.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=this.config.resizeFrame!==!1;this.centerFrame=this.config.centerFrame;this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(d,e){var a=this,b=a.getDragEl(),c=b.style;a._resizeProxy();if(a.centerFrame){a.setDelta(Math.round(parseInt(c.width,10)/2),Math.round(parseInt(c.height,10)/2))}a.setDragElPos(d,e);Ext.fly(b).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(d){var a=d.getXY(),b=a[0],c=a[1];this.autoOffset(b,c);this.setDragElPos(b,c)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl(),a=this.getDragEl();a.style.visibility='';this.beforeMove();b.style.visibility='hidden';Ext.dd.DDM.moveToEl(b,a);a.style.visibility='hidden';b.style.visibility='';this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return 'DDProxy '+this.id}},3,0,0,0,0,0,[Ext.dd,'DDProxy'],0);Ext.cmd.derive('Ext.dd.StatusProxy',Ext.Component,{animRepair:!1,childEls:['ghost'],renderTpl:[''],repairCls:'x-dd-drag-repair',ariaRole:'presentation',skipLayout:!0,constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:'visibility',hidden:!0,floating:!0,id:b.id||Ext.id(),cls:'x-dd-drag-proxy '+this.dropNotAllowed,shadow:a.shadow||!1,renderTo:Ext.getDetachedBody()});Ext.Component.prototype.constructor.apply(this,arguments);this.dropStatus=this.dropNotAllowed},dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',setStatus:function(a){a=a||this.dropNotAllowed;if(this.dropStatus!==a){this.el.replaceCls(this.dropStatus,a);this.dropStatus=a}},reset:function(c){var a=this,b='x-dd-drag-proxy ';a.el.replaceCls(b+a.dropAllowed,b+a.dropNotAllowed);a.dropStatus=a.dropNotAllowed;if(c){a.ghost.setHtml('')}},update:function(a){if(typeof a==='string'){this.ghost.setHtml(a)}else {this.ghost.setHtml('');a.style.margin='0';this.ghost.dom.appendChild(a)}var b=this.ghost.dom.firstChild;if(b){Ext.fly(b).setStyle('float','none')}},getGhost:function(){return this.ghost},hide:function(a){Ext.Component.prototype.hide.call(this);if(a){this.reset(!0)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(b,c,d){var a=this;a.callback=c;a.scope=d;if(b&&a.animRepair!==!1){a.el.addCls(a.repairCls);a.el.setUnderlaysVisible(!1);a.anim=a.el.animate({duration:a.repairDuration||500,easing:'ease-out',to:{x:b[0],y:b[1]},stopAnimation:!0,callback:a.afterRepair,scope:a})}else {a.afterRepair()}},afterRepair:function(){var a=this;a.hide(!0);a.el.removeCls(a.repairCls);if(typeof a.callback==='function'){a.callback.call(a.scope||a)}delete a.callback;delete a.scope}},1,0,['component','box'],{'component':!0,'box':!0},0,0,[Ext.dd,'StatusProxy'],0);Ext.cmd.derive('Ext.dd.DragSource',Ext.dd.DDProxy,{dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',animRepair:!0,repairHighlightColor:'c3daf9',constructor:function(b,a){this.el=Ext.get(b);if(!this.dragData){this.dragData={}}Ext.apply(this,a);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy({id:this.el.id+'-drag-status-proxy',animRepair:this.animRepair})}Ext.dd.DDProxy.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:!1,isTarget:!1,scroll:this.scroll===!0});this.dragging=!1},getDragData:function(a){return this.dragData},onDragEnter:function(c,b){var a=Ext.dd.DragDropManager.getDDById(b),d;this.cachedTarget=a;if(this.beforeDragEnter(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyEnter(this,c,this.dragData);this.proxy.setStatus(d)}else {this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(a,c,b)}}},beforeDragEnter:function(a,c,b){return !0},onDragOver:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b),d;if(this.beforeDragOver(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyOver(this,c,this.dragData);this.proxy.setStatus(d)}if(this.afterDragOver){this.afterDragOver(a,c,b)}}},beforeDragOver:function(a,c,b){return !0},onDragOut:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragOut(a,c,b)!==!1){if(a.isNotifyTarget){a.notifyOut(this,c,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,c,b)}}this.cachedTarget=null},beforeDragOut:function(a,c,b){return !0},onDragDrop:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragDrop(a,c,b)!==!1){if(a.isNotifyTarget){if(a.notifyDrop(this,c,this.dragData)!==!1){this.onValidDrop(a,c,b)}else {this.onInvalidDrop(a,c,b)}}else {this.onValidDrop(a,c,b)}if(this.afterDragDrop){this.afterDragDrop(a,c,b)}}delete this.cachedTarget},beforeDragDrop:function(a,c,b){return !0},onValidDrop:function(a,c,b){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(a,c,b)}},getRepairXY:function(b,a){return this.el.getXY()},onInvalidDrop:function(c,b,d){var a=this;if(!b){b=c;c=null;d=b.getTarget().id}if(a.beforeInvalidDrop(c,b,d)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}a.proxy.repair(a.getRepairXY(b,a.dragData),a.afterRepair,a);if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}},afterRepair:function(){var a=this;if(Ext.enableFx){a.el.highlight(a.repairHighlightColor)}a.dragging=!1},beforeInvalidDrop:function(a,c,b){return !0},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==!1){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return !0},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(!0);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=!1;this.dragging=!0;this.proxy.update('');this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(b,c){var a=this.el.dom.cloneNode(!0);a.id=Ext.id();this.proxy.update(a);this.onStartDrag(b,c);return !0},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(!0);this.dragging=!1},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(a){},endDrag:function(a){this.onEndDrag(this.dragData,a)},onEndDrag:function(a,b){},autoOffset:function(a,b){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DDProxy.prototype.destroy.call(this);Ext.destroy(this.proxy)}},1,0,0,0,0,0,[Ext.dd,'DragSource'],0);Ext.cmd.derive('Ext.panel.Proxy',Ext.Base,{alternateClassName:'Ext.dd.PanelProxy',moveOnDrag:!0,constructor:function(c,b){var a=this;a.panel=c;a.id=a.panel.id+'-ddproxy';Ext.apply(a,b)},insertProxy:!0,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost.el},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){var a=this;if(a.ghost){if(a.proxy){a.proxy.destroy();delete a.proxy}a.panel.unghost(null,a.moveOnDrag);delete a.ghost}},show:function(){var a=this,b;if(!a.ghost){b=a.panel.getSize();a.panel.el.setVisibilityMode(Ext.Element.DISPLAY);a.ghost=a.panel.ghost();if(a.insertProxy){a.proxy=a.panel.el.insertSibling({role:'presentation',cls:'x-panel-dd-spacer'});a.proxy.setSize(b)}}},repair:function(c,a,b){this.hide();Ext.callback(a,b||this)},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}},1,0,0,0,0,0,[Ext.panel,'Proxy',Ext.dd,'PanelProxy'],0);Ext.cmd.derive('Ext.panel.DD',Ext.dd.DragSource,{constructor:function(b,c){var a=this;a.panel=b;a.dragData={panel:b};a.panelProxy=new Ext.panel.Proxy(b,c);a.proxy=a.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,c);a.setupEl(b)},setupEl:function(c){var a=this,b=c.header,d=c.body;if(b){a.setHandleElId(b.id);d=b.el}if(d){d.setStyle('cursor','move');a.scroll=!1}else {c.on('boxready',a.setupEl,a,{single:!0})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(b){var a=b.getXY(),c=a[0],d=a[1];this.autoOffset(c,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return !0},createFrame:Ext.emptyFn,getDragEl:function(b){var a=this.panelProxy.ghost;if(a){return a.el.dom}},endDrag:function(a){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)},onInvalidDrop:function(d,b,c){var a=this;if(a.beforeInvalidDrop(d,b,c)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,c)}}}},1,0,0,0,0,0,[Ext.panel,'DD'],0);Ext.cmd.derive('Ext.layout.component.Dock',Ext.layout.component.Component,{alternateClassName:'Ext.layout.component.AbstractDock',type:'dock',horzAxisProps:{name:'horz',oppositeName:'vert',dockBegin:'left',dockEnd:'right',horizontal:!0,marginBegin:'margin-left',maxSize:'maxWidth',minSize:'minWidth',pos:'x',setSize:'setWidth',shrinkWrapDock:'shrinkWrapDockWidth',size:'width',sizeModel:'widthModel'},vertAxisProps:{name:'vert',oppositeName:'horz',dockBegin:'top',dockEnd:'bottom',horizontal:!1,marginBegin:'margin-top',maxSize:'maxHeight',minSize:'minHeight',pos:'y',setSize:'setHeight',shrinkWrapDock:'shrinkWrapDockHeight',size:'height',sizeModel:'heightModel'},initializedBorders:-1,horizontalCollapsePolicy:{width:!0,x:!0},verticalCollapsePolicy:{height:!0,y:!0},finishRender:function(){var a=this,b,c;Ext.layout.component.Component.prototype.finishRender.call(this);b=a.getRenderTarget();c=a.getDockedItems();a.finishRenderItems(b,c)},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},noBorderClasses:['x-docked-noborder-top','x-docked-noborder-right','x-docked-noborder-bottom','x-docked-noborder-left'],noBorderClassesSides:{top:'x-docked-noborder-top',right:'x-docked-noborder-right',bottom:'x-docked-noborder-bottom',left:'x-docked-noborder-left'},borderWidthProps:{top:'border-top-width',right:'border-right-width',bottom:'border-bottom-width',left:'border-left-width'},_itemCls:'x-docked',handleItemBorders:function(){var c=this,b=c.owner,a,l,k=c.lastDockedItems,j=c.borders,m=b.dockedItems.generation,i=c.noBorderClassesSides,n=c.borderWidthProps,f,h,d,g,e,o=c.collapsed;if(c.initializedBorders===m||b.border&&!b.manageBodyBorders||b.collapsed&&b.collapseMode==='mini'){return}c.initializedBorders=m;c.collapsed=!1;c.lastDockedItems=l=c.getLayoutItems();c.collapsed=o;a={top:[],right:[],bottom:[],left:[]};for(f=0,h=l.length;fj){b=i.constrainedMax;m=j}else {if(hj){c=i.constrainedMax;l=j}else {if(h',addDocked:function(c,d){var b=this,k=b.rendered,f=0,g=b.dockedItems,i=g.getCount(),e,h,a,j;c=b.prepareItems(c);j=c.length;if(k){Ext.suspendLayouts()}if(d===undefined){d=i}else {d=Math.min(d,i)}for(;f','
    ','{headingText}','
    ','','{% this.renderDockedItems(out,values,0); %}','
    {bodyCls}',' {baseCls}-body-{ui}',' {parent.baseCls}-body-{parent.ui}-{.}','{childElCls}"','',' {$}="{.}"','',' role="presentation"','',' style="{bodyStyle}">','{%this.renderContainer(out,values);%}','
    ','{% this.renderDockedItems(out,values,1); %}'],headerPosition:'top',iconAlign:'left',titleAlign:'left',titleRotation:'default',beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titleRotation:null},animCollapse:Ext.enableFx,border:!0,closable:!1,closeAction:'destroy',closeToolText:'Close panel',collapsed:!1,collapsedCls:'collapsed',collapseFirst:!0,collapsible:undefined,collapseToolText:'Collapse panel',expandToolText:'Expand panel',constrain:!1,constrainHeader:!1,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:!0,frame:!1,frameHeader:!0,hideCollapseTool:!1,manageHeight:!0,maskElement:'el',minButtonWidth:75,preventHeader:!1,shrinkWrapDock:!1,titleCollapse:undefined,baseCls:'x-panel',bodyPosProps:{x:'x',y:'y'},componentLayout:'dock',contentPaddingProperty:'bodyPadding',emptyArray:[],isPanel:!0,defaultBindProperty:'title',addBodyCls:function(c){var a=this,b=a.rendered?a.body:a.getProtoBody();b.addCls(c);return a},addTool:function(b){if(!Ext.isArray(b)){b=[b]}var c=this,a=c.header,g=b.length,f=c.tools,e,d;if(!a||!a.isHeader){a=null;if(!f){c.tools=f=[]}}for(e=0;e=e||c[b]>0){if(b>=e){b=0;f=0;h++;for(a=0;a0){c[a]--}}}else {b++}}i.push({rowIdx:h,cellIdx:f});for(a=g.colspan||1;a;--a){c[b]=g.rowspan||1;++b}++f}return i},getRenderTree:function(){var a=this,h=a.getLayoutItems(),i=[],m=Ext.apply({tag:'table',id:a.owner.id+'-table','data-ref':'table',role:'presentation',cls:a.tableCls,cellspacing:0,cellpadding:0,cn:{tag:'tbody',id:a.owner.id+'-tbody','data-ref':'tbody',role:'presentation',cn:i}},a.tableAttrs),k=a.tdAttrs,d,n=h.length,b,f,c,g,j,e,l;l=a.calculateCells(h);for(d=0;d0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(a.is(this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(e,b){var a=this,d=a.items,c=a.addHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.add(b)}}},onItemRemove:function(e,b){var a=this,d=a.items,c=a.removeHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.remove(b)}}},onContainerAdd:function(c,i){var a=this,d,e,h=a.handleAdd,g=a.handleRemove,b,f;if(c.isContainer){c.on('add',h,a);c.on('dockedadd',h,a);c.on('remove',g,a);c.on('dockedremove',g,a)}if(i!==!0){d=c.query(a.selector);for(b=0,e=d.length;bcontainer');for(b=0,e=d.length;ba.tolerance){a.triggerStart(b)}else {return}}if(a.fireEvent('mousemove',a,b)===!1){a.onMouseUp(b)}else {a.onDrag(b);a.fireEvent('drag',a,b)}},onMouseUp:function(b){var a=this;a.mouseIsDown=!1;if(a.mouseIsOut){a.mouseIsOut=!1;a.onMouseOut(b)}if(a.preventDefault!==!1){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent('mouseup',a,b);a.endDrag(b)},endDrag:function(b){var a=this,c=a.active;Ext.getDoc().un({mousemove:a.onMouseMove,mouseup:a.onMouseUp,selectstart:a.stopSelect,capture:!0,scope:a});a.clearStart();a.active=!1;if(c){a.dragEnded=!0;a.onEnd(b);a.fireEvent('dragend',a,b)}a._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=!0;a.onStart(b);a.fireEvent('dragstart',a,b)},clearStart:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return !1},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var a=this;if(a.constrainTo){if(a.constrainTo instanceof Ext.util.Region){return a.constrainTo}if(!a._constrainRegion){a._constrainRegion=Ext.fly(a.constrainTo).getViewRegion()}}else {if(!a._constrainRegion){a._constrainRegion=a.getDragCt().getViewRegion()}}return a._constrainRegion},getXY:function(a){return a?this.constrainModes[a](this,this.lastXY):this.lastXY},getOffset:function(c){var a=this.getXY(c),b=this.startXY;return [a[0]-b[0],a[1]-b[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(d,b){var a=d.dragRegion,c=d.getConstrainRegion();if(!c){return b}a.x=a.left=a[0]=a.right=b[0];a.y=a.top=a[1]=a.bottom=b[1];a.constrainTo(c);return [a.left,a.top]},dragTarget:function(e,c){var f=e.startXY,a=e.startRegion.copy(),b=e.getConstrainRegion(),d;if(!b){return c}a.translateBy(c[0]-f[0],c[1]-f[1]);if(a.right>b.right){c[0]+=d=b.right-a.right;a.left+=d}if(a.leftb.bottom){c[1]+=d=b.bottom-a.bottom;a.top+=d}if(a.top[flex]'),o=j.length,h=n==='vertical',i=0,d=h?'width':'height',m=0,g,a;for(;i',tabGuardIndex:0},tabGuardPositionAttribute:'data-tabguardposition',privates:{initTabGuards:function(){var a=this,f=a.tabGuardPositionAttribute,c=a.tabGuardBeforeEl,d=a.tabGuardAfterEl,e=a.tabGuardIndex,b;if(!a.rendered||!a.tabGuard){return}b=a.el.findTabbableElements({skipSelf:!0});if(b[0]&&b[0].hasAttribute(f)){b.shift()}if(b.length&&b[b.length-1].hasAttribute(f)){b.pop()}if(b.length){c.dom.setAttribute('tabIndex',e);c.on('focusenter',a.onTabGuardFocusEnter,a);d.dom.setAttribute('tabIndex',e);d.on('focusenter',a.onTabGuardFocusEnter,a)}else {c.dom.removeAttribute('tabIndex');c.un('focusenter',a.onTabGuardFocusEnter,a);d.dom.removeAttribute('tabIndex');d.un('focusenter',a.onTabGuardFocusEnter,a)}},onTabGuardFocusEnter:function(j,i){var h=this,e=h.el,g=h.tabGuardPositionAttribute,f=i.getAttribute(g),d=j.relatedTarget,a,c,b;if(!d.hasAttribute(g)&&d!==e.dom&&e.contains(d)){c=f==='before'?!1:!0}else {c=f==='before'?!0:!1}a=e.findTabbableElements({skipSelf:!0});a.shift();a.pop();b=c?a[0]:a[a.length-1];if(b){b.focus()}}}},0,0,0,0,0,0,[Ext.util,'FocusTrap'],0);Ext.cmd.derive('Ext.window.Window',Ext.panel.Panel,{alternateClassName:'Ext.Window',baseCls:'x-window',resizable:!0,draggable:!0,constrain:!1,constrainHeader:!1,plain:!1,minimizable:!1,maximizable:!1,minHeight:50,minWidth:50,expandOnShow:!0,collapsible:!1,closable:!0,hidden:!0,autoRender:!0,hideMode:'offsets',floating:!0,itemCls:'x-window-item',overlapHeader:!0,ignoreHeaderBorderManagement:!0,alwaysFramed:!0,isRootCfg:{isRoot:!0},isWindow:!0,ariaRole:'dialog',initComponent:function(){var a=this;a.frame=!1;Ext.panel.Panel.prototype.initComponent.call(this);if(a.plain){a.addClsWithUI('plain')}a.addStateEvents(['maximize','restore','resize','dragend'])},getElConfig:function(){var b=this,a;a=Ext.panel.Panel.prototype.getElConfig.call(this);a.tabIndex=-1;return a},getFocusEl:function(){return this.getDefaultFocus()||this.el},getState:function(){var a=this,e=Ext.panel.Panel.prototype.getState.call(this)||{},c=!!a.maximized,d=a.ghostBox,b;e.maximized=c;if(c){b=a.restorePos}else {if(d){b=[d.x,d.y]}else {b=a.getPosition()}}Ext.apply(e,{size:c?a.restoreSize:a.getSize(),pos:b});return e},applyState:function(a){var b=this;if(a){b.maximized=a.maximized;if(b.maximized){b.hasSavedRestore=!0;b.restoreSize=a.size;b.restorePos=a.pos}else {Ext.apply(b,{width:a.size.width,height:a.size.height,x:a.pos[0],y:a.pos[1]})}}},onRender:function(c,b){var a=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(a.header){a.header.on({scope:a,click:a.onHeaderClick})}if(a.maximizable){a.header.on({scope:a,dblclick:a.toggleMaximize})}},afterRender:function(){var a=this,c=a.header,b;if(a.maximized){a.maximized=!1;a.maximize();if(c){c.removeCls(c.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);if(a.closable){b=a.getKeyMap();b.on(27,a.onEsc,a)}else {b=a.keyMap}if(b&&a.hidden){b.disable()}},onEsc:function(b,a){a.stopEvent();this.close()},beforeDestroy:function(){var a=this;if(a.rendered){Ext.un('resize',a.onWindowResize,a);delete a.animateTarget;a.hide();Ext.destroy(a.keyMap)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},addTools:function(){var a=this,b=[];Ext.panel.Panel.prototype.addTools.call(this);if(a.minimizable){b.push({type:'minimize',handler:'minimize',scope:a})}if(a.maximizable){b.push({type:a.maximized?'restore':'maximize',handler:'toggleMaximize',scope:a})}if(b.length){a.addTool(b)}},onShow:function(){var a=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(a.expandOnShow){a.expand(!1)}a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.enable()}},doClose:function(){var a=this;if(a.hidden){a.fireEvent('close',a);if(a.closeAction==='destroy'){a.destroy()}}else {a.hide(a.animateTarget,a.doClose,a)}},afterHide:function(){var a=this;a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.disable()}Ext.panel.Panel.prototype.afterHide.apply(this,arguments)},onWindowResize:function(){var a=this,b;if(!a.destroyed){if(a.maximized){a.fitContainer()}else {b=a.getSizeModel();if(b.width.natural||b.height.natural){a.updateLayout()}a.doConstrain()}}},minimize:function(){this.fireEvent('minimize',this);return this},resumeHeaderLayout:function(a){this.header.resumeLayouts(a?this.isRootCfg:null)},afterCollapse:function(){var a=this,b=a.header,c=a.tools;if(b&&a.maximizable){b.suspendLayouts();c.maximize.hide();this.resumeHeaderLayout(!0)}if(a.resizer){a.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var a=this,c=a.header,d=a.tools,b;if(c){c.suspendLayouts();if(a.maximizable){d.maximize.show();b=!0}this.resumeHeaderLayout(b)}if(a.resizer){a.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(c){var a=this,b=a.header,f=a.tools,g=a.width,e=a.height,h,d;if(!a.maximized){a.expand(!1);if(!a.hasSavedRestore){h=a.restoreSize={width:g?g:null,height:e?e:null};a.restorePos=a.getPosition()}if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('restore')}if(a.collapseTool){a.collapseTool.hide();d=!0}a.resumeHeaderLayout(d)}a.el.disableShadow();if(a.dd){a.dd.disable();if(b){b.removeCls(b.indicateDragCls)}}if(a.resizer){a.resizer.disable()}a.el.addCls('x-window-maximized');a.container.addCls('x-window-maximized-ct');a.syncMonitorWindowResize();a.fitContainer(c=c||!!a.animateTarget?{callback:function(){a.maximized=!0;a.fireEvent('maximize',a)}}:null);if(!c){a.maximized=!0;a.fireEvent('maximize',a)}}return a},restore:function(c){var a=this,f=a.tools,b=a.header,d=a.restoreSize,e;if(a.maximized){a.hasSavedRestore=null;a.removeCls('x-window-maximized');if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('maximize')}if(a.collapseTool){a.collapseTool.show();e=!0}a.resumeHeaderLayout(e)}d.x=a.restorePos[0];d.y=a.restorePos[1];a.setBox(d,c=c||!!a.animateTarget?{callback:function(){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}:null);a.restorePos=a.restoreSize=null;if(a.dd){a.dd.enable();if(b){b.addCls(b.indicateDragCls)}}if(a.resizer){a.resizer.enable()}a.container.removeCls('x-window-maximized-ct');a.syncMonitorWindowResize();if(!c){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}return a},syncMonitorWindowResize:function(){var a=this,b=a._monitoringResize,d=a.monitorResize||a.constrain||a.constrainHeader||a.maximized,c=a.hidden||a.destroying||a.destroyed;if(d&&!c){if(!b){Ext.on('resize',a.onWindowResize,a,{buffer:1});a._monitoringResize=!0}}else {if(b){Ext.un('resize',a.onWindowResize,a);a._monitoringResize=!1}}},toggleMaximize:function(){return this[this.maximized?'restore':'maximize']()},createGhost:function(){var a=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);a.xtype='window';a.focusOnToFront=!1;return a},getDefaultFocus:function(){var d=this,b,a=d.defaultFocus,c;if(a!==undefined){if(Ext.isNumber(a)){b=d.query('button')[a]}else {if(Ext.isString(a)){c=a;if(Ext.validIdRe.test(c)){b=d.down(Ext.makeIdSelector(c))}if(!b){b=d.down(c)}}else {if(a.focus){b=a}}}}return b},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(b,c){var a;if(b.el.contains(c.getTarget())){a=this.getDefaultFocus();if(a){a.focus()}}},initResizable:function(){Ext.panel.Panel.prototype.initResizable.apply(this,arguments);if(this.maximized){this.resizer.disable()}}}},0,['window'],['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},['widget.window'],[[Ext.util.FocusTrap.prototype.mixinId||Ext.util.FocusTrap.$className,Ext.util.FocusTrap]],[Ext.window,'Window',Ext,'Window'],0);Ext.cmd.derive('Ext.form.Labelable',Ext.Mixin,{isLabelable:!0,mixinConfig:{id:'labelable',on:{beforeRender:'beforeLabelRender',onRender:'onLabelRender'}},config:{childEls:['labelEl','bodyEl','errorEl','errorWrapEl','ariaErrorEl']},labelableRenderTpl:['{beforeLabelTpl}','','{afterLabelTpl}','','','
    ','','
    ','
    ',{disableFormats:!0}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['','
      ','
    • {.}
    • ','
    ','
    '],plaintextActiveErrorsTpl:['','\n{.}',''],isFieldLabelable:!0,formItemCls:'x-form-item',labelCls:'x-form-item-label',topLabelCls:'x-form-item-label-top',rightLabelCls:'x-form-item-label-right',labelInnerCls:'x-form-item-label-inner',topLabelSideErrorCls:'x-form-item-label-top-side-error',errorMsgCls:'x-form-error-msg',errorWrapCls:'x-form-error-wrap',errorWrapSideCls:'x-form-error-wrap-side',errorWrapUnderCls:'x-form-error-wrap-under',errorWrapUnderSideLabelCls:'x-form-error-wrap-under-side-label',baseBodyCls:'x-form-item-body',invalidIconCls:'x-form-invalid-icon',invalidUnderCls:'x-form-invalid-under',noLabelCls:'x-form-item-no-label',fieldBodyCls:'',invalidCls:'x-form-invalid',fieldLabel:undefined,labelAlign:'left',labelWidth:100,labelPad:5,labelSeparator:':',hideLabel:!1,hideEmptyLabel:!0,preventMark:!1,autoFitErrors:!0,msgTarget:'qtip',msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:!0,labelableInsertions:['beforeBodyEl','afterBodyEl','beforeLabelTpl','afterLabelTpl','beforeSubTpl','afterSubTpl','beforeLabelTextTpl','afterLabelTextTpl','labelAttrTpl'],statics:{initTip:function(){var b=this.tip,a,c;if(b){return}a={id:'ext-form-error-tip',ui:'form-invalid'};if(Ext.supports.Touch){a.dismissDelay=0;a.anchor='top';a.showDelay=0;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.anchorTarget).getWidth()}}}b=this.tip=Ext.create('Ext.tip.QuickTip',a);c=Ext.apply({},b.tagConfig);c.attribute='errorqtip';b.setTagConfig(c)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var a=this,b=a.padding;if(b){a.padding=undefined;a.extraMargins=Ext.Element.parseBox(b)}if(Ext.isIE8){a.restoreDisplay=Ext.Function.createDelayed(a.doRestoreDisplay,0,a)}if(!a.activeErrorsTpl){if(a.msgTarget==='title'){a.activeErrorsTpl=a.plaintextActiveErrorsTpl}else {a.activeErrorsTpl=a.htmlActiveErrorsTpl}}a.addCls([a.formItemCls,a.formItemCls+'-'+a.ui]);a.lastActiveError='';a.enableBubble('errorchange')},trimLabelSeparator:function(){var b=this,c=b.labelSeparator,a=b.fieldLabel||'',d=a.substr(a.length-1);return d===c?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(b){b=b||'';var a=this,f=a.labelSeparator,h=a.labelEl,c=a.errorWrapEl,g=a.labelAlign!=='top',e=a.noLabelCls,d=a.errorWrapUnderSideLabelCls;a.fieldLabel=b;if(a.rendered){if(Ext.isEmpty(b)&&a.hideEmptyLabel){a.addCls(e);if(g&&c){c.removeCls(d)}}else {if(f){b=a.trimLabelSeparator()+f}h.dom.firstChild.innerHTML=b;a.removeCls(e);if(g&&c){c.addCls(d)}}a.updateLayout()}},setHideLabel:function(b){var a=this;if(b!==a.hideLabel){a.hideLabel=b;if(a.rendered){a[b?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},setHideEmptyLabel:function(b){var a=this,c;if(b!==a.hideEmptyLabel){a.hideEmptyLabel=b;if(a.rendered&&!a.hideLabel){c=b&&!a.getFieldLabel();a[c?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},getInsertionRenderData:function(c,d){var e=d.length,b,a;while(e--){b=d[e];a=this[b];if(a){if(typeof a!=='string'){if(!a.isTemplate){a=Ext.XTemplate.getTpl(this,b)}a=a.apply(c)}}c[b]=a||''}return c},getLabelableRenderData:function(){var a=this,l=a.labelAlign,o=l==='top',r=l==='right',c=a.msgTarget==='side',h=a.msgTarget==='under',q=a.errorMsgCls,b=a.labelPad,m=a.labelWidth,d=a.labelClsExtra||'',j=c?a.errorWrapSideCls:a.errorWrapUnderCls,g='',f='',p=a.hasVisibleLabel(),k=a.autoFitErrors,e=a.defaultBodyWidth,n,i;if(o){d+=' '+a.topLabelCls;if(b){f='padding-bottom:'+b+'px;'}if(c&&!k){d+=' '+a.topLabelSideErrorCls}}else {if(r){d+=' '+a.rightLabelCls}if(b){g+=a.getHorizontalPaddingStyle()+b+'px;'}g+='width:'+(m+(b?b:0))+'px;';f='width:'+m+'px'}if(p){if(!o&&h){j+=' '+a.errorWrapUnderSideLabelCls}}if(e){n='min-width:'+e+'px;max-width:'+e+'px;'}i={id:a.id,inputId:a.getInputId(),labelCls:a.labelCls,labelClsExtra:d,labelStyle:g+(a.labelStyle||''),labelInnerStyle:f,labelInnerCls:a.labelInnerCls,unselectableCls:Ext.Element.unselectableCls,bodyStyle:n,baseBodyCls:a.baseBodyCls,fieldBodyCls:a.fieldBodyCls,extraFieldBodyCls:a.extraFieldBodyCls,errorWrapCls:a.errorWrapCls,errorWrapExtraCls:j,renderError:c||h,invalidMsgCls:c?a.invalidIconCls:h?a.invalidUnderCls:'',errorMsgCls:q,growCls:a.grow?a.growCls:'',tipAnchorTarget:a.id+'-inputEl',errorWrapStyle:c&&!k?'visibility:hidden':'display:none',fieldLabel:a.getFieldLabel(),labelSeparator:a.labelSeparator};a.getInsertionRenderData(i,a.labelableInsertions);return i},getHorizontalPaddingStyle:function(){return 'padding-right:'},beforeLabelRender:function(){var a=this;a.setFieldDefaults(a.getInherited().fieldDefaults);if(a.ownerLayout){a.addCls('x-'+a.ownerLayout.type+'-form-item')}if(!a.hasVisibleLabel()){a.addCls(a.noLabelCls)}},onLabelRender:function(){var a=this,f={},e=Ext.Element,d=a.errorWrapEl,c,b;if(d){d.setVisibilityMode(a.msgTarget==='side'&&!a.autoFitErrors?e.VISIBILITY:e.DISPLAY)}if(a.extraMargins){c=a.el.getMargin();for(b in c){if(c.hasOwnProperty(b)){f['margin-'+b]=c[b]+a.extraMargins[b]+'px'}}a.el.setStyle(f)}},hasVisibleLabel:function(){if(this.hideLabel){return !1}return !(this.hideEmptyLabel&&!this.getFieldLabel())},getSubTplMarkup:function(){return ''},getInputId:function(){return ''},getActiveError:function(){return this.activeError||''},hasActiveError:function(){return !!this.getActiveError()},setActiveError:function(a){this.setActiveErrors(a)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(c){var a=this,h=a.errorWrapEl,b=a.msgTarget,g=b==='side',i=b==='qtip',e,d,j,f;c=Ext.Array.from(c);j=a.getTpl('activeErrorsTpl');a.activeErrors=c;d=a.activeError=j.apply({fieldLabel:a.fieldLabel,errors:c,listCls:'x-list-plain'});a.renderActiveError();if(a.rendered){e=a.getActionEl();if(g){a.errorEl.dom.setAttribute('data-errorqtip',d)}else {if(i){e.dom.setAttribute('data-errorqtip',d)}else {if(b==='title'){e.dom.setAttribute('title',d)}}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML=c.join('. ');e.dom.setAttribute('aria-describedby',a.ariaErrorEl.id)}if(g||i){Ext.form.Labelable.initTip()}if(!a.msgTargets[b]){f=Ext.get(b);if(f){f.dom.innerHTML=d}}}if(h){h.setVisible(c.length>0);if(g&&a.autoFitErrors){a.labelEl.addCls(a.topLabelSideErrorCls)}a.updateLayout()}},unsetActiveError:function(){var a=this,e=a.errorWrapEl,b=a.msgTarget,f=a.restoreDisplay,c,d;if(a.hasActiveError()){delete a.activeError;delete a.activeErrors;a.renderActiveError();if(a.rendered){c=a.getActionEl();if(b==='qtip'){c.dom.removeAttribute('data-errorqtip')}else {if(b==='title'){c.dom.removeAttribute('title')}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML='';c.dom.removeAttribute('aria-describedby')}if(!a.msgTargets[b]){d=Ext.get(b);if(d){d.dom.innerHTML=''}}if(e){e.hide();if(b==='side'&&a.autoFitErrors){a.labelEl.removeCls(a.topLabelSideErrorCls)}a.updateLayout();if(f){a.el.dom.style.display='block';a.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=''}},renderActiveError:function(){var a=this,b=a.getActiveError(),c=!!b;if(b!==a.lastActiveError){a.lastActiveError=b;a.fireEvent('errorchange',a,b)}if(a.rendered&&!a.destroyed&&!a.preventMark){a.toggleInvalidCls(c);if(a.errorEl){a.errorEl.dom.innerHTML=b}}},toggleInvalidCls:function(a){this.el[a?'addCls':'removeCls'](this.invalidCls)},setFieldDefaults:function(b){var a;for(a in b){if(!this.hasOwnProperty(a)){this[a]=b[a]}}}},0,0,0,0,0,0,[Ext.form,'Labelable'],function(){if(Ext.supports.Touch){this.prototype.msgTarget='side'}});Ext.cmd.derive('Ext.form.field.Field',Ext.Base,{mixinId:'field',isFormField:!0,config:{validation:null,validationField:null},disabled:!1,submitValue:!0,validateOnChange:!0,valuePublishEvent:'change',suspendCheckChange:0,dirty:!1,initField:function(){var a=this,b=a.valuePublishEvent,d,c;a.initValue();if(Ext.isString(b)){a.on(b,a.publishValue,a)}else {for(c=0,d=b.length;c name="{name}"',' value="{[Ext.util.Format.htmlEncode(values.value)]}"',' placeholder="{placeholder}"','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}',' readonly="readonly"',' disabled="disabled"',' tabindex="{tabIdx}"',' style="{fieldStyle}"',' {$}="{.}"',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete="off"/>',{disableFormats:!0}],defaultBindProperty:'value',autoEl:{role:'presentation'},subTplInsertions:['inputAttrTpl'],childEls:['inputEl'],inputType:'text',isTextInput:!0,invalidText:'The value in this field is invalid',fieldCls:'x-form-field',focusCls:'form-focus',dirtyCls:'x-form-dirty',checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<=9)?['change','propertychange','keyup']:['change','input','textInput','keyup','dragdrop'],ignoreChangeRe:/data\-errorqtip|style\.|className/,checkChangeBuffer:50,liquidLayout:!0,readOnly:!1,readOnlyCls:'x-form-readonly',validateOnBlur:!0,hasFocus:!1,baseCls:'x-field',fieldBodyCls:'x-field-body',maskOnDisable:!1,stretchInputElFixed:!0,ariaEl:'inputEl',initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();a.initDefaultName();if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls('x-form-type-'+a.inputType)},initDefaultName:function(){var a=this;if(!a.name){a.name=a.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+'-inputEl')},getSubTplData:function(f){var a=this,e=a.inputType,d=a.getInputId(),b,c;b=Ext.apply({ui:a.ui,id:d,cmpId:a.id,name:a.name||d,disabled:a.disabled,readOnly:a.readOnly,value:a.getRawValue(),type:e,fieldCls:a.fieldCls,fieldStyle:a.getFieldStyle(),childElCls:f.childElCls,tabIdx:a.tabIndex,inputCls:a.inputCls,typeCls:'x-form-'+(a.isTextInput?'text':e)},a.subTplData);if(a.ariaRole){c={role:a.ariaRole,'aria-hidden':!!a.hidden,'aria-disabled':!!a.disabled,'aria-readonly':!!a.readOnly,'aria-invalid':!1};if(a.ariaLabel){c['aria-label']=a.ariaLabel}if(a.format&&a.formatText&&!b.title){c.title=Ext.String.formatEncode(a.formatText,a.format)}b.inputElAriaAttributes=Ext.apply(c,a.getAriaAttributes())}a.getInsertionRenderData(b,a.subTplInsertions);return b},getSubTplMarkup:function(f){var b=this,c=b.getSubTplData(f),e=b.getTpl('preSubTpl'),d=b.getTpl('postSubTpl'),a='';if(e){a+=e.apply(c)}a+=b.getTpl('fieldSubTpl').apply(c);if(d){a+=d.apply(c)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(b){var c=this,a=c.inputEl;if(a){a.applyStyles(b)}c.fieldStyle=b},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,!0):a||''},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==='file'},getSubmitData:function(){var a=this,b=null,c;if(!a.disabled&&a.submitValue){c=a.getSubmitValue();if(c!==null){b={};b[a.getName()]=c}}return b},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var a=this,b=a.inputEl?a.inputEl.getValue():Ext.valueFrom(a.rawValue,'');a.rawValue=b;return b},setRawValue:function(b){var a=this,c=a.rawValue;if(!a.transformRawValue.$nullFn){b=a.transformRawValue(b)}b=Ext.valueFrom(b,'');if(c===undefined||c!==b||a.valueContainsPlaceholder){a.rawValue=b;if(a.inputEl){a.bindChangeEvents(!1);a.inputEl.dom.value=b;a.bindChangeEvents(!0)}if(a.rendered&&a.reference){a.publishState('rawValue',b)}}return b},transformRawValue:Ext.identityFn,valueToRaw:function(a){return ''+Ext.valueFrom(a,'')},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var a=this,b=a.rawToValue(a.processRawValue(a.getRawValue()));a.value=b;return b},setValue:function(b){var a=this;a.setRawValue(a.valueToRaw(b));return a.mixins.field.setValue.call(a,b)},onBoxReady:function(){var a=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(a.setReadOnlyOnBoxReady){a.setReadOnly(a.readOnly)}},onDisable:function(){var a=this,b=a.inputEl;Ext.Component.prototype.onDisable.call(this);if(b){b.dom.disabled=!0;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=!0}}if(a.wasValid===!1){a.checkValidityChange(!0)}},onEnable:function(){var a=this,b=a.inputEl,d=a.preventMark,c;Ext.Component.prototype.onEnable.call(this);if(b){b.dom.disabled=!1}if(a.wasValid!==undefined){a.forceValidation=!0;a.preventMark=!a.hadErrorOnDisable;c=a.isValid();a.forceValidation=!1;a.preventMark=d;a.checkValidityChange(c)}delete a.hadErrorOnDisable},setReadOnly:function(b){var a=this,c=a.inputEl,d=a.readOnly;b=!!b;a[b?'addCls':'removeCls'](a.readOnlyCls);a.readOnly=b;if(c){c.dom.readOnly=b;a.ariaEl.dom.setAttribute('aria-readonly',b)}else {if(a.rendering){a.setReadOnlyOnBoxReady=!0}}if(b!==d){a.fireEvent('writeablechange',a,b)}},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent('specialkey',this,a)}},initEvents:function(){var a=this,d=a.inputEl,f=a.onFieldMutation,e=a.checkChangeEvents,g=e.length,c,b;if(d){a.mon(d,Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress',a.fireKey,a);for(c=0;c style="{triggerStyle}">','{[values.$trigger.renderBody(values)]}',''],statics:{weightComparator:function(a,b){return a.weight-b.weight}},constructor:function(c){var a=this,b;Ext.apply(a,c);if(a.compat4Mode){b=a.cls;a.focusCls=[a.focusCls,b+'-focus'];a.overCls=[a.overCls,b+'-over'];a.clickCls=[a.clickCls,b+'-click']}},afterFieldRender:function(){this.initEvents()},destroy:function(){var a=this;a.clickRepeater=a.el=Ext.destroy(a.clickRepeater,a.el);a.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=!0;if(a){a.hide()}},initEvents:function(){var a=this,b=a.isFieldEnabled,c=a.getStateEl(),d=a.el;c.addClsOnOver(a.overCls,b,a);c.addClsOnClick(a.clickCls,b,a);if(a.repeatClick){a.clickRepeater=new Ext.util.ClickRepeater(d,{preventDefault:!0,handler:a.onClick,listeners:{mousedown:a.onClickRepeaterMouseDown,scope:a},scope:a})}else {a.field.mon(d,{click:a.onClick,mousedown:a.onMouseDown,scope:a})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=!1;if(a.hidden||!c||!a.rendered||a.destroyed){b=!0}return !b},onClick:function(){var a=this,c=arguments,e=a.clickRepeater?c[1]:c[0],d=a.handler,b=a.field;if(d&&!b.readOnly&&a.isFieldEnabled()){Ext.callback(a.handler,a.scope,[b,a,e],0,b)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=='touch'&&!this.field.owns(Ext.Element.getActiveElement())){this.field.inputEl.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==='mousedown'){this.field.inputEl.focus()}a.preventDefault()},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var a=this,b=a.el=a.field.triggerWrap.selectNode('#'+a.domId,!1);b.setVisibilityMode(Ext.Element.DISPLAY);a.rendered=!0},renderBody:function(b){var a=this,c=a.bodyTpl;Ext.apply(b,a.getBodyRenderData());return c?Ext.XTemplate.getTpl(a,'bodyTpl').apply(b):''},renderTrigger:function(b){var a=this,d=a.width,c=a.hidden?'display:none;':'';if(d){c+='width:'+d}return Ext.XTemplate.getTpl(a,'renderTpl').apply({$trigger:a,fieldData:b,ui:b.ui,childElCls:b.childElCls,triggerId:a.domId=a.field.id+'-trigger-'+a.id,cls:a.cls,triggerStyle:c,extraCls:a.extraCls,baseCls:a.baseCls})},setHidden:function(a){if(a!==this.hidden){this[a?'hide':'show']()}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=!1;if(a){a.show()}}},1,0,0,0,['trigger.trigger'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.form.trigger,'Trigger'],0);Ext.cmd.derive('Ext.form.field.Text',Ext.form.field.Base,{alternateClassName:['Ext.form.TextField','Ext.form.Text'],config:{hideTrigger:!1,triggers:undefined},renderConfig:{editable:!0},growMin:30,growMax:800,growAppend:'W',allowBlank:!0,validateBlank:!1,allowOnlyWhitespace:!0,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:'The minimum length for this field is {0}',maxLengthText:'The maximum length for this field is {0}',blankText:'This field is required',regexText:'',emptyText:'',emptyCls:'x-form-empty-field',requiredCls:'x-form-required-field',valueContainsPlaceholder:!1,ariaRole:'textbox',repeatTriggerClick:!1,triggerWrapCls:'x-form-trigger-wrap',triggerWrapFocusCls:'x-form-trigger-wrap-focus',triggerWrapInvalidCls:'x-form-trigger-wrap-invalid',fieldBodyCls:'x-form-text-field-body',inputWrapCls:'x-form-text-wrap',inputWrapFocusCls:'x-form-text-wrap-focus',inputWrapInvalidCls:'x-form-text-wrap-invalid',growCls:'x-form-text-grow',needArrowKeys:!0,squashMouseUp:{mouseup:function(){},translate:!1,single:!0,preventDefault:!0},childEls:['triggerWrap','inputWrap'],preSubTpl:[''],initComponent:function(){var a=this,b=a.emptyCls;if(a.allowOnlyWhitespace===!1){a.allowBlank=!1}if(a.size){a.defaultBodyWidth=a.size*6.5+20}if(!a.onTrigger1Click){a.onTrigger1Click=a.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(a.readOnly){a.setReadOnly(a.readOnly)}a.fieldFocusCls=a.baseCls+'-focus';a.emptyUICls=b+' '+b+'-'+a.ui;a.addStateEvents('change')},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(a.selectOnFocus||a.emptyText){a.mon(b,'mousedown',a.onMouseDown,a)}if(a.maskRe||a.vtype&&a.disableKeyFilter!==!0&&(a.maskRe=Ext.form.field.VTypes[a.vtype+'Mask'])){a.mon(b,'keypress',a.filterKeys,a)}if(a.enableKeyEvents){a.mon(b,{scope:a,keyup:a.onKeyUp,keydown:a.onKeyDown,keypress:a.onKeyPress})}},isEqual:function(a,b){return this.isEqualAsString(a,b)},onChange:function(a,b){Ext.form.field.Base.prototype.onChange.apply(this,arguments);this.autoSize()},getSubTplData:function(h){var a=this,c=a.getRawValue(),g=a.emptyText&&c.length<1,b=a.maxLength,e,f,d;if(a.enforceMaxLength){if(b===Number.MAX_VALUE){b=undefined}}else {b=undefined}if(g){if(Ext.supports.Placeholder){e=a.emptyText}else {c=a.emptyText;a.valueContainsPlaceholder=!0}}f=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,h),{triggerWrapCls:a.triggerWrapCls,inputWrapCls:a.inputWrapCls,triggers:a.orderedTriggers,maxLength:b,readOnly:!a.editable||a.readOnly,placeholder:e,value:c,fieldCls:a.fieldCls+(g&&(e||c)?' '+a.emptyUICls:'')+(a.allowBlank?'':' '+a.requiredCls)});d=f.inputElAriaAttributes;if(d){d['aria-required']=!a.allowBlank}return f},onRender:function(){var a=this,b=a.getTriggers(),c=[],d,e;if(Ext.supports.FixedTableWidthBug){a.el._needsTableWidthFix=!0}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(b){this.invokeTriggers('onFieldRender');for(d in b){c.push(b[d].el)}e=a.triggerEl=a.triggerCell=new Ext.CompositeElement(c,!0)}a.inputCell=a.inputWrap},afterRender:function(){var a=this;a.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);a.invokeTriggers('afterFieldRender')},onMouseDown:function(){if(!this.hasFocus){Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(c){var a=this,j=a.getHideTrigger(),k=a.readOnly,f=a.orderedTriggers=[],i=a.repeatTriggerClick,e,b,h,g,d;if(!c){c={};if(a.triggerCls&&!a.trigger1Cls){a.trigger1Cls=a.triggerCls}for(d=1;g=a['trigger'+d+'Cls'];d++){c['trigger'+d]={cls:g,extraCls:'x-trigger-index-'+d,handler:'onTrigger'+d+'Click',compat4Mode:!0,scope:a}}}for(e in c){if(c.hasOwnProperty(e)){b=c[e];b.field=a;b.id=e;if(k&&b.hideOnReadOnly!==!1||j&&b.hidden!==!1){b.hidden=!0}if(i&&b.repeatClick!==!1){b.repeatClick=!0}h=c[e]=Ext.form.trigger.Trigger.create(b);f.push(h)}}Ext.Array.sort(f,Ext.form.trigger.Trigger.weightComparator);return c},invokeTriggers:function(d,e){var f=this,a=f.getTriggers(),c,b;if(a){for(c in a){if(a.hasOwnProperty(c)){b=a[c];b[d].apply(b,e||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateHideTrigger:function(a){this.invokeTriggers(a?'hide':'show')},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(a){var b=this,d=b.getTriggers(),f=b.getHideTrigger(),c,e;a=!!a;Ext.form.field.Base.prototype.setReadOnly.call(this,a);if(b.rendered){b.setReadOnlyAttr(a||!b.editable)}if(d){for(e in d){c=d[e];if(c.hideOnReadOnly===!0||c.hideOnReadOnly!==!1&&!f){c.setVisible(!a)}}}},setReadOnlyAttr:function(c){var b=this,a='readonly',d=b.inputEl.dom;if(c){d.setAttribute(a,a)}else {d.removeAttribute(a)}if(b.ariaRole){b.ariaEl.dom.setAttribute('aria-readonly',!!c)}},processRawValue:function(c){var e=this,a=e.stripCharsRe,d,b;if(a){if(!a.global){d='g';d+=a.ignoreCase?'i':'';d+=a.multiline?'m':'';a=new RegExp(a.source,d)}b=c.replace(a,'');if(b!==c){e.setRawValue(b);c=b}}return c},onDisable:function(){Ext.form.field.Base.prototype.onDisable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable='on'}},onEnable:function(){Ext.form.field.Base.prototype.onEnable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable=''}},onKeyDown:function(a){this.fireEvent('keydown',this,a)},onKeyUp:function(a){this.fireEvent('keyup',this,a)},onKeyPress:function(a){this.fireEvent('keypress',this,a)},reset:function(){Ext.form.field.Base.prototype.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){var a=this,b=a.emptyText,c;if(a.rendered&&b){c=a.getRawValue().length<1&&!a.hasFocus;if(Ext.supports.Placeholder){a.inputEl.dom.placeholder=b}else {if(c){a.setRawValue(b);a.valueContainsPlaceholder=!0}}if(c){a.inputEl.addCls(a.emptyUICls)}else {a.inputEl.removeCls(a.emptyUICls)}a.autoSize()}},getEmptyText:function(){return this.emptyText},setEmptyText:function(e){var a=this,c=a.inputEl,b=c&&c.dom,d=e||'';if(e){a.emptyText=d;a.applyEmptyText()}else {if(b){if(Ext.supports.Placeholder){b.removeAttribute('placeholder')}else {if(b.value!==a.getRawValue()){b.value='';c.removeCls(a.emptyUICls)}}a.valueContainsPlaceholder=!1}}a.emptyText=d;return a},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var a=this.inputEl;if(a){a.dom.unselectable='on'}}},toggleInvalidCls:function(b){var a=b?'addCls':'removeCls';Ext.form.field.Base.prototype.toggleInvalidCls.call(this);this.triggerWrap[a](this.triggerWrapInvalidCls);this.inputWrap[a](this.inputWrapInvalidCls)},beforeFocus:function(){var a=this,b=a.inputEl,c=a.emptyText,d;Ext.form.field.Base.prototype.beforeFocus.apply(this,arguments);if(c&&!Ext.supports.Placeholder&&(b.dom.value===a.emptyText&&a.valueContainsPlaceholder)){a.setRawValue('');d=!0;b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}else {if(Ext.supports.Placeholder){b.removeCls(a.emptyUICls)}}},onFocus:function(b){var a=this;Ext.form.field.Base.prototype.onFocus.apply(this,arguments);if(a.selectOnFocus){a.inputEl.dom.select()}if(a.emptyText){a.autoSize()}a.addCls(a.fieldFocusCls);a.triggerWrap.addCls(a.triggerWrapFocusCls);a.inputWrap.addCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldFocus',[b])},onBlur:function(b){var a=this;Ext.form.field.Base.prototype.onBlur.apply(this,arguments);a.removeCls(a.fieldFocusCls);a.triggerWrap.removeCls(a.triggerWrapFocusCls);a.inputWrap.removeCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldBlur',[b])},completeEdit:function(a){Ext.form.field.Base.prototype.completeEdit.call(this,a);this.applyEmptyText()},filterKeys:function(a){if(a.ctrlKey&&!a.altKey||a.isSpecialKey()){return}var b=String.fromCharCode(a.getCharCode());if(!this.maskRe.test(b)){a.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),'value')},applyState:function(a){Ext.form.field.Base.prototype.applyState.apply(this,arguments);if(a.hasOwnProperty('value')){this.setValue(a.value)}},getRawValue:function(){var b=this,a=Ext.form.field.Base.prototype.getRawValue.call(this);if(a===b.emptyText&&b.valueContainsPlaceholder){a=''}return a},setValue:function(c){var a=this,b=a.inputEl;if(b&&a.emptyText&&!Ext.isEmpty(c)){b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}Ext.form.field.Base.prototype.setValue.apply(this,arguments);a.applyEmptyText();return a},getErrors:function(b){b=arguments.length?b==null?'':b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Base.prototype.getErrors.call(this,b),f=a.validator,d=a.vtype,j=Ext.form.field.VTypes,k=a.regex,i=Ext.String.format,e,h,g;if(Ext.isFunction(f)){e=f.call(a,b);if(e!==!0){c.push(e)}}h=a.allowOnlyWhitespace?b:Ext.String.trim(b);if(h.length<1||b===a.emptyText&&a.valueContainsPlaceholder){if(!a.allowBlank){c.push(a.blankText)}if(!a.validateBlank){return c}g=!0}if(!g&&b.lengtha.maxLength){c.push(i(a.maxLengthText,a.maxLength))}if(d){if(!j[d](b,a)){c.push(a.vtypeText||j[d+'Text'])}}if(k&&!k.test(b)){c.push(a.regexText||a.invalidText)}return c},selectText:function(a,b){var f=this,g=f.getRawValue(),c=g.length,e=f.inputEl.dom,d;if(c>0){a=a===undefined?0:Math.min(a,c);b=b===undefined?c:Math.min(b,c);if(e.setSelectionRange){e.setSelectionRange(a,b)}else {if(e.createTextRange){d=e.createTextRange();d.moveStart('character',a);d.moveEnd('character',b-c);d.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var a=this,d,f,c,g,b,e;if(a.grow&&a.rendered&&a.getSizeModel().width.auto){g=a.inputEl;d=a.getTriggers();c=0;e=Ext.util.Format.htmlEncode(a.getGrowWidth()||(a.hasFocus?'':a.emptyText)||'');e+=a.growAppend;for(f in d){c+=d[f].el.getWidth()}b=g.getTextWidth(e)+c+a.inputWrap.getBorderWidth('lr')+a.triggerWrap.getBorderWidth('lr');b=Math.min(Math.max(b,a.growMin),a.growMax);a.bodyEl.setWidth(b);a.updateLayout();a.fireEvent('autosize',a,b)}},onDestroy:function(){var a=this;a.invokeTriggers('destroy');Ext.destroy(a.triggerRepeater);Ext.form.field.Base.prototype.onDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return 'textfield'}},deprecated:{5:{methods:{getTriggerWidth:function(){var a=this.getTriggers(),c=0,b;if(a&&this.rendered){for(b in a){if(a.hasOwnProperty(b)){c+=a[b].el.getWidth()}}}return c}}}}},0,['textfield'],['component','box','field','textfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0},['widget.textfield'],0,[Ext.form.field,'Text',Ext.form,'TextField',Ext.form,'Text'],0);Ext.cmd.derive('Ext.form.field.TextArea',Ext.form.field.Text,{alternateClassName:'Ext.form.TextArea',fieldSubTpl:['',{disableFormats:!0}],growMin:60,growMax:1000,growAppend:'\n-',enterIsSpecial:!1,preventScrollbars:!1,returnRe:/\r/g,inputCls:'x-form-textarea',extraFieldBodyCls:'x-form-textarea-body',ariaAttributes:{'aria-multiline':!0},getSubTplData:function(d){var a=this,c=a.getFieldStyle(),b=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(a.grow){if(a.preventScrollbars){b.fieldStyle=(c||'')+';overflow:hidden;height:'+a.growMin+'px'}}return b},afterRender:function(){var a=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);a.needsMaxCheck=a.enforceMaxLength&&a.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(a.needsMaxCheck){a.inputEl.on('paste',a.onPaste,a)}},transformRawValue:function(a){return this.stripReturns(a)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(a){a=this.stripReturns(a);return Ext.form.field.Text.prototype.valueToRaw.call(this,a)},stripReturns:function(a){if(a&&typeof a==='string'){a=a.replace(this.returnRe,'')}return a},onPaste:function(){var a=this;if(!a.pasteTask){a.pasteTask=new Ext.util.DelayedTask(a.pasteCheck,a)}a.pasteTask.delay(1)},pasteCheck:function(){var b=this,a=b.getValue(),c=b.maxLength;if(a.length>c){a=a.substr(0,c);b.setValue(a)}},fireKey:function(a){var b=this,c=a.getKey(),d;if(a.isSpecialKey()&&(b.enterIsSpecial||(c!==a.ENTER||a.hasModifier()))){b.fireEvent('specialkey',b,a)}if(b.needsMaxCheck&&c!==a.BACKSPACE&&c!==a.DELETE&&!a.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(a,c)){d=b.getValue();if(d.length>=b.maxLength){a.stopEvent()}}},isCutCopyPasteSelectAll:function(a,b){if(a.ctrlKey){return b===a.A||b===a.C||b===a.V||b===a.X}return !1},autoSize:function(){var a=this,b,c,e,d;if(a.grow&&a.rendered&&a.getSizeModel().height.auto){b=a.inputEl;e=b.getWidth(!0);d=Ext.util.Format.htmlEncode(b.dom.value)||' ';d+=a.growAppend;d=d.replace(/\n/g,'
    ');c=Ext.util.TextMetrics.measure(b,d,e).height+b.getPadding('tb')+a.inputWrap.getBorderWidth('tb')+a.triggerWrap.getBorderWidth('tb');c=Math.min(Math.max(c,a.growMin),a.growMax);a.bodyEl.setHeight(c);a.updateLayout();a.fireEvent('autosize',a,c)}},beforeDestroy:function(){var a=this.pasteTask;if(a){a.cancel();this.pasteTask=null}Ext.form.field.Text.prototype.beforeDestroy.call(this)}},0,['textarea','textareafield'],['component','box','field','textfield','textareafield','textarea'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'textareafield':!0,'textarea':!0},['widget.textarea','widget.textareafield'],0,[Ext.form.field,'TextArea',Ext.form,'TextArea'],0);Ext.cmd.derive('Ext.window.MessageBox',Ext.window.Window,{OK:1,YES:2,NO:4,CANCEL:8,OKCANCEL:9,YESNO:6,YESNOCANCEL:14,INFO:'x-message-box-info',WARNING:'x-message-box-warning',QUESTION:'x-message-box-question',ERROR:'x-message-box-error',hideMode:'offsets',closeAction:'hide',resizable:!1,scrollable:!0,title:' ',defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:!0,cls:['x-message-box','x-hidden-offsets'],layout:{type:'vbox',align:'stretch'},shrinkWrapDock:!0,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:'OK',yes:'Yes',no:'No',cancel:'Cancel'},buttonIds:['ok','yes','no','cancel'],titleText:{confirm:'Confirm',prompt:'Prompt',wait:'Loading...',alert:'Attention'},baseIconCls:'x-message-box-icon',ariaRole:'alertdialog',makeButton:function(b){var a=this.buttonIds[b];return new Ext.button.Button({handler:this.btnCallback,itemId:a,scope:this,text:this.buttonText[a],minWidth:75})},btnCallback:function(e,b){var a=this,d,c;if(b&&b.type==='keydown'&&!b.isSpecialKey()){b.getTarget(null,null,!0).on({keyup:function(c){a.btnCallback(e,c)},single:!0});return}if(a.cfg.prompt||a.cfg.multiline){if(a.cfg.multiline){c=a.textArea}else {c=a.textField}d=c.getValue();c.reset()}a.hide();a.userCallback(e.itemId,d,a.cfg)},hide:function(){var a=this,b=a.cfg?a.cfg.cls:'';a.progressBar.reset();if(b){a.removeCls(b)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(b){var a=this;Ext.window.Window.prototype.constructor.apply(this,arguments);a.minWidth=a.defaultMinWidth=a.minWidth||a.defaultMinWidth;a.maxWidth=a.defaultMaxWidth=a.maxWidth||a.defaultMaxWidth;a.minHeight=a.defaultMinHeight=a.minHeight||a.defaultMinHeight;a.maxHeight=a.defaultMaxHeight=a.maxHeight||a.defaultMaxHeight},initComponent:function(e){var a=this,b=a.id,d,c;a.title=a.title||' ';a.iconCls=a.iconCls||'';a.topContainer=new Ext.container.Container({layout:'hbox',padding:10,style:{overflow:'hidden'},items:[a.iconComponent=new Ext.Component({cls:a.baseIconCls}),a.promptContainer=new Ext.container.Container({flex:1,layout:{type:'vbox',align:'stretch'},items:[a.msg=new Ext.Component({id:b+'-msg',cls:a.baseCls+'-text'}),a.textField=new Ext.form.field.Text({id:b+'-textfield',enableKeyEvents:!0,listeners:{keydown:a.onPromptKey,scope:a}}),a.textArea=new Ext.form.field.TextArea({id:b+'-textarea',height:75})]})]});a.progressBar=new Ext.ProgressBar({id:b+'-progressbar',margin:'0 10 10 10'});a.items=[a.topContainer,a.progressBar];a.msgButtons=[];for(d=0;d<4;d++){c=a.makeButton(d);a.msgButtons[c.itemId]=c;a.msgButtons.push(c)}a.bottomTb=new Ext.toolbar.Toolbar({id:b+'-toolbar',ui:'footer',dock:'bottom',layout:{pack:'center'},items:[a.msgButtons[0],a.msgButtons[1],a.msgButtons[2],a.msgButtons[3]]});a.dockedItems=[a.bottomTb];a.on('close',a.onClose,a);Ext.window.Window.prototype.initComponent.call(this)},onClose:function(){var a=this.header.child('[type=close]');if(a){a.itemId='cancel';this.btnCallback(a);delete a.itemId}},onPromptKey:function(c,b){var a=this;if(b.keyCode===b.RETURN||b.keyCode===10){if(a.msgButtons.ok.isVisible()){a.msgButtons.ok.handler.call(a,a.msgButtons.ok)}else {if(a.msgButtons.yes.isVisible()){a.msgButtons.yes.handler.call(a,a.msgButtons.yes)}}}},reconfigure:function(b){var a=this,j=0,q=!0,t=a.buttonText,g=a.resizer,c=a.header,r=c&&!c.isHeader,s=b&&(b.message||b.msg),i,n,m,e,d,f,o,k,l,h,p;a.updateButtonText();a.cfg=b=b||{};h=b.wait;if(b.width){n=b.width}if(b.height){m=b.height}a.minWidth=b.minWidth||a.defaultMinWidth;a.maxWidth=b.maxWidth||a.defaultMaxWidth;a.minHeight=b.minHeight||a.defaultMinHeight;a.maxHeight=b.maxHeight||a.defaultMaxHeight;if(g){i=g.resizeTracker;g.minWidth=i.minWidth=a.minWidth;g.maxWidth=i.maxWidth=a.maxWidth;g.minHeight=i.minHeight=a.minHeight;g.maxHeight=i.maxHeight=a.maxHeight}delete a.defaultFocus;if(b.defaultFocus){a.defaultFocus=b.defaultFocus}a.animateTarget=b.animateTarget||undefined;a.modal=b.modal!==!1;a.setTitle(b.title||r&&c.title||a.title);a.setIconCls(b.iconCls||r&&c.iconCls||a.iconCls);if(Ext.isObject(b.buttons)){a.buttonText=b.buttons;j=0}else {a.buttonText=b.buttonText||a.buttonText;j=Ext.isNumber(b.buttons)?b.buttons:0}j=j|a.updateButtonText();a.buttonText=t;Ext.suspendLayouts();a.width=a.height=null;if(n||m){if(n){a.setWidth(n)}if(m){a.setHeight(m)}}a.hidden=!1;if(!a.rendered){a.render(Ext.getBody())}a.closable=b.closable!==!1&&!h;c=a.header;if(c){p=c.child('[type=close]');if(p){p.setVisible(a.closable)}if(!b.title&&!a.closable&&!b.iconCls){c.hide()}else {c.show()}}a.liveDrag=!b.proxyDrag;a.userCallback=Ext.Function.bindCallback(b.callback||b.fn||Ext.emptyFn,b.scope||Ext.global);a.setIcon(b.icon);o=a.msg;if(s){o.setHtml(s);o.show()}else {o.hide()}d=a.textArea;f=a.textField;if(b.prompt||b.multiline){a.multiline=b.multiline;if(b.multiline){d.setValue(b.value);d.setHeight(b.defaultTextHeight||a.defaultTextHeight);d.show();f.hide();a.defaultFocus=d}else {f.setValue(b.value);d.hide();f.show();a.defaultFocus=f}}else {d.hide();f.hide()}k=a.progressBar;if(b.progress||h){k.show();a.updateProgress(0,b.progressText);if(h){k.wait(h===!0?b.waitConfig:h)}}else {k.hide()}l=a.msgButtons;for(e=0;e<4;e++){if(j&Math.pow(2,e)){if(!a.defaultFocus){a.defaultFocus=l[e]}l[e].show();q=!1}else {l[e].hide()}}if(q){a.bottomTb.hide()}else {a.bottomTb.show()}Ext.resumeLayouts(!0)},updateButtonText:function(){var b=this,c=b.buttonText,e=0,a,d;for(a in c){if(c.hasOwnProperty(a)){d=b.msgButtons[a];if(d){if(b.cfg&&b.cfg.buttonText){e=e|Math.pow(2,Ext.Array.indexOf(b.buttonIds,a))}if(d.text!==c[a]){d.setText(c[a])}}}}return e},show:function(b){var a=this,c;b=b||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){a.show(b)},single:!0});return a}a.reconfigure(b);if(b.cls){a.addCls(b.cls)}c=a.query('textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])');a.preventFocusOnActivate=!c.length;a.hidden=!0;Ext.window.Window.prototype.show.call(this);return a},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(e,d,c){var b=this,a=b.iconComponent,f=b.messageIconCls;if(f){a.removeCls(f)}if(e){a.show();if(d||c){a.setSize(d||a.getWidth(),c||a.getHeight())}a.addCls('x-dlg-icon');a.addCls(b.messageIconCls=e)}else {a.removeCls('x-dlg-icon');a.hide()}return b},updateProgress:function(c,b,a){this.progressBar.updateProgress(c,b);if(a){this.updateText(a)}return this},onEsc:function(){if(this.closable!==!1){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,b,d,c){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:b,buttons:this.YESNO,callback:d,scope:c}}return this.show(a)},prompt:function(a,c,f,d,b,e){if(Ext.isString(a)){a={prompt:!0,title:a,minWidth:this.minPromptWidth,message:c,buttons:this.OKCANCEL,callback:f,scope:d,multiline:b,value:e}}return this.show(a)},wait:function(a,c,b){if(Ext.isString(a)){a={title:c,message:a,closable:!1,wait:!0,modal:!0,minWidth:this.minProgressWidth,waitConfig:b}}return this.show(a)},alert:function(a,b,d,c){if(Ext.isString(a)){a={title:a,message:b,buttons:this.OK,fn:d,scope:c,minWidth:this.minWidth}}return this.show(a)},progress:function(a,c,b){if(Ext.isString(a)){a={title:a,message:c,progress:!0,progressText:b}}return this.show(a)}},1,['messagebox'],['component','box','container','panel','window','messagebox'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'messagebox':!0},['widget.messagebox'],0,[Ext.window,'MessageBox'],function(a){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new a()})});Ext.cmd.derive('Ext.form.Basic',Ext.util.Observable,{alternateClassName:'Ext.form.BasicForm',taskDelay:10,constructor:function(c,d){var a=this,b;a.owner=c;a.fieldMonitors={validitychange:a.checkValidityDelay,enable:a.checkValidityDelay,disable:a.checkValidityDelay,dirtychange:a.checkDirtyDelay,errorchange:a.checkErrorDelay,scope:a};a.checkValidityTask=new Ext.util.DelayedTask(a.checkValidity,a);a.checkDirtyTask=new Ext.util.DelayedTask(a.checkDirty,a);a.checkErrorTask=new Ext.util.DelayedTask(a.checkError,a);a.monitor=new Ext.container.Monitor({selector:'[isFormField]:not([excludeForm])',scope:a,addHandler:a.onFieldAdd,removeHandler:a.onFieldRemove,invalidateHandler:a.onMonitorInvalidate});a.monitor.bind(c);Ext.apply(a,d);if(Ext.isString(a.paramOrder)){a.paramOrder=a.paramOrder.split(/[\s,|]/)}b=a.reader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.reader=Ext.createByAlias('reader.'+b.type,b)}b=a.errorReader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.errorReader=Ext.createByAlias('reader.'+b.type,b)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=!0;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:!1,waitTitle:'Please Wait...',trackResetOnLoad:!1,wasDirty:!1,destroy:function(){var a=this,b=a.monitor;if(b){b.unbind();a.monitor=null}a.clearListeners();a.checkValidityTask.cancel();a.checkDirtyTask.cancel();a.checkErrorTask.cancel();a.checkValidityTask=a.checkDirtyTask=a.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},onFieldAdd:function(a){a.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(a){a.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var a=this._boundItems;if(!a||a.getCount()===0){a=this._boundItems=new Ext.util.MixedCollection();a.addAll(this.owner.query('[formBind]'))}return a},hasInvalidField:function(){return !!this.getFields().findBy(function(a){var c=a.preventMark,b;a.preventMark=!0;b=a.isValid();a.preventMark=c;return !b})},isValid:function(){var b=this,a;Ext.suspendLayouts();a=b.getFields().filterBy(function(a){return !a.validate()});Ext.resumeLayouts(!0);return a.length<1},checkValidity:function(){var a=this,b;if(a.destroyed){return}b=!a.hasInvalidField();if(b!==a.wasValid){a.onValidityChange(b);a.fireEvent('validitychange',a,b);a.wasValid=b}},checkValidityDelay:function(){var a=this.taskDelay;if(a){this.checkValidityTask.delay(a)}else {this.checkValidity()}},checkError:function(){this.fireEvent('errorchange',this)},checkErrorDelay:function(){var a=this.taskDelay;if(a){this.checkErrorTask.delay(a)}else {this.checkError()}},onValidityChange:function(e){var d=this.getBoundItems(),b,a,f,c;if(d){b=d.items;f=b.length;for(a=0;a',' {$}="{.}"','',' role="presentation"','','>','{%this.renderContainer(out,values)%}',''],initComponent:function(){var a=this;a.initLabelable();a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.initMonitor()},onAdd:function(b){var a=this;if(b.isLabelable&&Ext.isGecko&&Ext.firefoxVersion<37&&a.layout.type==='absolute'&&!a.hideLabel&&a.labelAlign!=='top'){b.x+=a.labelWidth+a.labelPad}Ext.container.Container.prototype.onAdd.apply(this,arguments);if(b.isLabelable&&a.combineLabels){b.oldHideLabel=b.hideLabel;b.hideLabel=!0}a.updateLabel()},onRemove:function(a,c){var b=this;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!c){if(a.isLabelable&&b.combineLabels){a.hideLabel=a.oldHideLabel}b.updateLabel()}},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.containerElCls=b.containerElCls;a=Ext.applyIf(a,b.getLabelableRenderData());a.tipAnchorTarget=b.id+'-containerEl';return a},getFieldLabel:function(){var a=this.fieldLabel||'';if(!a&&this.combineLabels){a=Ext.Array.map(this.query('[isFieldLabelable]'),function(a){return a.getFieldLabel()}).join(this.labelConnector)}return a},getSubTplData:function(){var a=this.initRenderData();Ext.apply(a,this.subTplData);return a},getSubTplMarkup:function(d){var b=this,a=b.getTpl('fieldSubTpl'),c;if(!a.renderContent){b.setupRenderTpl(a)}c=a.apply(b.getSubTplData(d));return c},updateLabel:function(){var a=this,b=a.labelEl;if(b){a.setFieldLabel(a.getFieldLabel())}},onFieldErrorChange:function(){if(this.combineErrors){var a=this,d=a.getActiveError(),c=Ext.Array.filter(a.query('[isFormField]'),function(a){return a.hasActiveError()}),b=a.getCombinedErrors(c);if(b){a.setActiveErrors(b)}else {a.unsetActiveError()}if(d!==a.getActiveError()){a.updateLayout()}}},getCombinedErrors:function(f){var g=[],b,j=f.length,d,c,a,i,h,e;for(b=0;b','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','',' tabindex="{tabIdx}"',' disabled="disabled"',' style="{fieldStyle}"',' class="{checkboxCls} {clipCls}" autocomplete="off" hidefocus="true" ',' {$}="{.}"','/>','','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','','',{disableFormats:!0,compiled:!0}],publishes:{checked:1},subTplInsertions:['beforeBoxLabelTpl','afterBoxLabelTpl','beforeBoxLabelTextTpl','afterBoxLabelTextTpl','boxLabelAttrTpl','inputAttrTpl'],isCheckbox:!0,focusCls:'form-checkbox-focus',fieldBodyCls:'x-form-cb-wrap',checked:!1,checkedCls:'x-form-cb-checked',boxLabelCls:'x-form-cb-label',boxLabelAlign:'after',afterLabelCls:'x-form-cb-after',wrapInnerCls:'x-form-cb-wrap-inner',noBoxLabelCls:'x-form-cb-no-box-label',inputValue:'on',checkChangeEvents:[],inputType:'checkbox',isTextInput:!1,ariaRole:'checkbox',onRe:/^on$/i,inputCls:'x-form-cb',_checkboxCls:'x-form-cb-input',_clipCls:'x-hidden-clip',initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);a.getManager().add(a)},initDefaultName:Ext.emptyFn,initValue:function(){var a=this,b=!!a.checked;a.originalValue=a.lastValue=b;a.setValue(b)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}return Ext.form.field.Base.prototype.getElConfig.call(this)},getSubTplData:function(g){var a=this,f=a.boxLabel,e=a.boxLabelAlign,d=e==='before',c,b;c=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,g),{clipCls:a._clipCls,checkboxCls:a._checkboxCls,disabled:a.readOnly||a.disabled,wrapInnerCls:a.wrapInnerCls,boxLabel:f,boxLabelCls:a.boxLabelCls,boxLabelAlign:e,labelAlignedBefore:d,afterLabelCls:d?a.afterLabelCls:'',noBoxLabelCls:!f?a.noBoxLabelCls:'',inputName:a.name||a.id});b=c.inputElAriaAttributes;if(b){b['aria-checked']=!!a.checked;b['aria-labelledby']=a.id+'-boxLabelEl'}return c},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.inputEl.on({click:'onBoxClick',scope:a,translate:!1});a.displayEl.on({click:'onBoxClick',mousedown:'_onDisplayElMouseDown',scope:a})},setBoxLabel:function(b){var a=this;a.boxLabel=b;if(a.rendered){a.boxLabelEl.setHtml(b);a.boxLabelEl[b?'removeCls':'addCls'](a.noBoxLabelCls);a.updateLayout()}},onBoxClick:function(){var a=this;if(!a.disabled&&!a.readOnly){a.setValue(!a.checked)}},getRawValue:function(){return this.checked},getValue:function(){return this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.checked?this.inputValue:b},isChecked:function(a,b){return a===!0||a==='true'||a==='1'||a===1||((Ext.isString(a)||Ext.isNumber(a))&&b?a==b:this.onRe.test(a))},setRawValue:function(e){var a=this,d=a.inputEl,c=a.displayEl,b=a.isChecked(e,a.inputValue);if(d){a[b?'addCls':'removeCls'](a.checkedCls);if(a.ariaRole){a.ariaEl.dom.setAttribute('aria-checked',b)}}if(Ext.isIE8&&c&&b!==a.lastValue){c.repaint()}a.checked=a.rawValue=b;if(!a.duringSetValue){a.lastValue=b}return b},setValue:function(e){var a=this,c,b,f,d;if(Ext.isArray(e)){c=a.getManager().getByName(a.name,a.getFormId()).items;f=c.length;for(b=0;b style="{bodyStyle}">','{%this.renderContainer(out,values);%}',''],stateEvents:['collapse','expand'],maskOnDisable:!1,beforeDestroy:function(){var b=this,a=b.legend;if(a){delete a.ownerCt;a.destroy();b.legend=null}Ext.container.Container.prototype.beforeDestroy.call(this)},initComponent:function(){var a=this,b=a.baseCls;if(a.ariaRole&&!a.ariaLabel){a.ariaLabel=Ext.String.formatEncode(a.descriptionText,a.title||'')}a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!a.collapsed;a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.layout.managePadding=a.layout.manageOverflow=!1;if(a.collapsed){a.addCls(b+'-collapsed');a.collapse()}if(a.title||a.checkboxToggle||a.collapsible){a.addTitleClasses();a.legend=a.createLegendCt()}a.initMonitor()},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.bodyTargetCls=b.bodyTargetCls;b.protoBody.writeTo(a);delete b.protoBody;return a},getState:function(){var a=Ext.container.Container.prototype.getState.call(this);a=this.addPropertyToState(a,'collapsed');return a},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn,collapsedHorizontal:function(){return !0},collapsedVertical:function(){return !0},createLegendCt:function(){var a=this,c=[],d={baseCls:a.baseCls+'-header',layout:'container',ui:a.ui,id:a.id+'-legend',autoEl:'legend',ariaRole:null,items:c,ownerCt:a,shrinkWrap:!0,ownerLayout:a.componentLayout},b;if(a.checkboxToggle){c.push(a.createCheckboxCmp())}else {if(a.collapsible){c.push(a.createToggleCmp())}}c.push(a.createTitleCmp());b=new Ext.container.Container(d);b.collapseImmune=!0;b.getInherited().collapseImmune=!0;return b},createTitleCmp:function(){var a=this,b={html:a.title,ui:a.ui,cls:a.baseCls+'-header-text',id:a.id+'-legendTitle',ariaRole:'presentation'};if(a.collapsible&&a.toggleOnTitleClick){b.listeners={click:{element:'el',scope:a,fn:a.toggle}};b.cls+=' '+a.baseCls+'-header-text-collapsible'}a.titleCmp=new Ext.Component(b);return a.titleCmp},createCheckboxCmp:function(){var a=this,d='-checkbox',b=a.baseCls+'-header'+d,c;b+=' '+b+'-'+a.ui;a.checkboxCmp=c=new Ext.form.field.Checkbox({hideEmptyLabel:!0,name:a.checkboxName||a.id+d,cls:b,id:a.id+'-legendChk',ui:a.checkboxUI,checked:!a.collapsed,msgTarget:'none',listeners:{change:a.onCheckChange,scope:a},ariaLabel:a.expandText});return c},createToggleCmp:function(){var a=this,b;a.toggleCmp=b=new Ext.panel.Tool({cacheHeight:!1,cls:a.baseCls+'-header-tool-'+a.ui,type:'toggle',handler:a.toggle,id:a.id+'-legendToggle',scope:a,ariaRole:'checkbox',ariaLabel:a.expandText,ariaRenderAttributes:{'aria-checked':!a.collapsed}});return b},doRenderLegend:function(d,c){var e=c.$comp,a=e.legend,b;if(a){a.ownerLayout.configureItem(a);b=a.getRenderTree();Ext.DomHelper.generateMarkup(b,d)}},getCollapsed:function(){return this.collapsed?'top':!1},getCollapsedDockedItems:function(){var a=this.legend;return a?[a]:[]},setTitle:function(c){var a=this,b=a.legend;a.title=c;a.ariaLabel=Ext.String.formatEncode(a.descriptionText,c||'');if(a.rendered){if(!b){a.legend=b=a.createLegendCt();a.addTitleClasses();b.ownerLayout.configureItem(b);b.render(a.el,0)}a.titleCmp.update(c);a.ariaEl.dom.setAttribute('aria-label',a.ariaLabel)}else {if(b){a.titleCmp.update(c)}else {a.addTitleClasses();a.legend=a.createLegendCt()}}return a},addTitleClasses:function(){var a=this,c=a.title,b=a.baseCls;if(c){a.addCls(b+'-with-title')}if(c||a.checkboxToggle||a.collapsible){a.addCls(b+'-with-legend')}},expand:function(){return this.setExpanded(!0)},collapse:function(){return this.setExpanded(!1)},setExpanded:function(b){var a=this,d=a.checkboxCmp,c=a.toggleCmp,e=b?'expand':'collapse';if(!a.rendered||a.fireEvent('before'+e,a)!==!1){b=!!b;if(d){d.setValue(b)}else {if(c&&c.ariaEl.dom){c.ariaEl.dom.setAttribute('aria-checked',b)}}if(b){a.removeCls(a.baseCls+'-collapsed')}else {a.addCls(a.baseCls+'-collapsed')}if(a.ariaEl.dom){a.ariaEl.dom.setAttribute('aria-expanded',!!b)}a.collapsed=!b;if(b){delete a.getInherited().collapsed}else {a.getInherited().collapsed=!0}if(a.rendered){a.updateLayout({isRoot:!1});a.fireEvent(e,a)}}return a},getRefItems:function(c){var a=Ext.container.Container.prototype.getRefItems.apply(this,arguments),b=this.legend;if(b){a.unshift(b);if(c){a.unshift.apply(a,b.getRefItems(!0))}}return a},toggle:function(){this.setExpanded(!!this.collapsed)},privates:{applyTargetCls:function(a){this.bodyTargetCls=a},finishRender:function(){var a=this.legend;Ext.container.Container.prototype.finishRender.call(this);if(a){a.finishRender()}},getProtoBody:function(){var b=this,a=b.protoBody;if(!a){b.protoBody=a=new Ext.util.ProtoElement({styleProp:'bodyStyle',styleIsText:!0})}return a},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){return this.body||this.frameBody||this.el},initPadding:function(d){var b=this,e=b.getProtoBody(),a=b.padding,c;if(a!==undefined){if(Ext.isIE8){a=b.parseBox(a);c=Ext.Element.parseBox(0);c.top=a.top;a.top=0;e.setStyle('padding',b.unitizeBox(c))}d.setStyle('padding',b.unitizeBox(a))}},onCheckChange:function(b,a){this.setExpanded(a)},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderLegend=this.doRenderLegend}}},0,['fieldset'],['component','box','container','fieldset'],{'component':!0,'box':!0,'container':!0,'fieldset':!0},['widget.fieldset'],[['fieldAncestor',Ext.form.FieldAncestor]],[Ext.form,'FieldSet'],0);Ext.cmd.derive('Ext.form.Label',Ext.Component,{autoEl:'label',maskOnDisable:!1,getElConfig:function(){var a=this;a.html=a.text?Ext.util.Format.htmlEncode(a.text):a.html||'';return Ext.apply(Ext.Component.prototype.getElConfig.call(this),{htmlFor:a.forId||''})},setText:function(c,b){var a=this;b=b!==!1;if(b){a.text=c;delete a.html}else {a.html=c;delete a.text}if(a.rendered){a.el.dom.innerHTML=b!==!1?Ext.util.Format.htmlEncode(c):c;a.updateLayout()}return a}},0,['label'],['component','box','label'],{'component':!0,'box':!0,'label':!0},['widget.label'],0,[Ext.form,'Label'],0);Ext.cmd.derive('Ext.form.Panel',Ext.panel.Panel,{alternateClassName:['Ext.FormPanel','Ext.form.FormPanel'],layout:'anchor',bodyAriaRole:'form',basicFormConfigs:['api','baseParams','errorReader','jsonSubmit','method','paramOrder','paramsAsHash','reader','standardSubmit','timeout','trackResetOnLoad','url','waitMsgTarget','waitTitle'],initComponent:function(){var a=this;if(a.frame){a.border=!1}a.initFieldAncestor();Ext.panel.Panel.prototype.initComponent.call(this);a.relayEvents(a.form,['beforeaction','actionfailed','actioncomplete','validitychange','dirtychange']);if(a.pollForChanges){a.startPolling(a.pollInterval||500)}},initItems:function(){Ext.panel.Panel.prototype.initItems.call(this);this.initMonitor();this.form=this.createForm()},afterFirstLayout:function(){Ext.panel.Panel.prototype.afterFirstLayout.apply(this,arguments);this.form.initialize()},createForm:function(){var d={},c=this.basicFormConfigs,e=c.length,b=0,a;for(;b150){delete a.lastDownArrow}if(!a.isExpanded){b.stopEvent();a.onTriggerClick();a.lastDownArrow=b.time}else {if(!b.isStopped&&b.time-a.lastDownArrow<150){delete a.lastDownArrow}}},expand:function(){var a=this,d,c,b,e;if(a.rendered&&!a.isExpanded&&!a.destroyed){d=a.bodyEl;b=a.getPicker();e=Ext.getDoc();b.setMaxHeight(b.initialConfig.maxHeight);if(a.matchFieldWidth){b.setWidth(a.bodyEl.getWidth())}b.show();a.isExpanded=!0;a.alignPicker();d.addCls(a.openCls);if(a.ariaRole){c=a.ariaEl.dom;c.setAttribute('aria-owns',b.listEl?b.listEl.id:b.el.id);c.setAttribute('aria-expanded',!0)}a.touchListeners=e.on({translate:!1,touchstart:a.collapseIf,scope:a,delegated:!1,destroyable:!0});a.scrollListeners=Ext.on({scroll:a.onGlobalScroll,scope:a,destroyable:!0});Ext.on('resize',a.alignPicker,a,{buffer:1});a.fireEvent('expand',a);a.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){if(!this.destroyed){var a=this.getPicker();if(a.isVisible()&&a.isFloating()){this.doAlign()}}},doAlign:function(){var a=this,c=a.picker,d='-above',b;a.picker.alignTo(a.triggerWrap,a.pickerAlign,a.pickerOffset);b=c.el.getY()=g){a.deselectRange(j,g-1)}else {if(h!==c){a.selectRange(h,c,f)}}}a.lastSelected=c}else {if(e){if(!f){a.doSelect(c,!1)}}else {a.selectWithEvent(c,b)}}}};break;case 'SIMPLE':if(e===b.A&&f){a.selected.beginUpdate();a.selectRange(0,a.store.getCount()-1);a.selected.endUpdate()}else {if(k){a.doDeselect(c)}else {a.doSelect(c,!0)}};break;case 'SINGLE':if(!f){if(i){a.doSelect(c,!1)}else {if(m||!e){a.selectWithEvent(c,b)}}};}if(!b.shiftKey&&!a.destroyed&&a.isSelected(c)){a.selectionStart=c;a.selectionStartIdx=g}},selectRange:function(d,f,m){var b=this,i=b.store,l=b.selected.items,h,a,g,e,c,j,k;if(b.isLocked()){return}h=b.normalizeRowRange(d,f);d=h[0];f=h[1];e=[];for(a=d;a<=f;a++){if(!b.isSelected(i.getAt(a))){e.push(i.getAt(a))}}if(!m){c=[];b.suspendChanges();for(a=0,g=l.length;af){c.push(k)}}for(a=0,g=c.length;a0)}}}},deselectRange:function(d,e){var a=this,h=a.store,g,c,b,f;if(a.isLocked()){return}g=a.normalizeRowRange(d,e);d=g[0];e=g[1];b=[];for(c=d;c<=e;c++){f=h.getAt(c);if(a.isSelected(f)){b.push(f)}}if(b.length){a.doDeselect(b)}},normalizeRowRange:function(a,b){var c=this.store,d;if(!Ext.isNumber(a)){a=c.indexOf(a)}a=Math.max(0,a);if(!Ext.isNumber(b)){b=c.indexOf(b)}b=Math.min(b,c.getCount()-1);if(a>b){d=b;b=a;a=d}return [a,b]},select:function(a,c,b){if(Ext.isDefined(a)&&!(Ext.isArray(a)&&!a.length)){this.doSelect(a,c,b)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(a,e,d){var b=this,c;if(b.locked||a==null){return}if(typeof a==='number'){c=b.store.getAt(a);if(!c){return}a=[c]}if(b.selectionMode==='SINGLE'){if(a.isModel){a=[a]}if(a.length){b.doSingleSelect(a[0],d)}}else {b.doMultiSelect(a,e,d)}},doMultiSelect:function(b,k,d){var a=this,g=a.selected,h=!1,e,f,j,c,i;if(a.locked){return}b=!Ext.isArray(b)?[b]:b;j=b.length;if(!k&&g.getCount()>0){e=a.deselectDuringSelect(b,d);if(a.destroyed){return}if(e[0]){a.maybeFireSelectionChange(e[1]>0&&!d);return}else {h=e[1]>0}}i=function(){if(!g.getCount()){a.selectionStart=c}g.add(c);h=!0};for(f=0;f0&&!f);return d===g},doSingleSelect:function(b,c){var a=this,e=!1,d=a.selected,f;if(a.locked){return}if(a.isSelected(b)){return}f=function(){if(d.getCount()){a.suspendChanges();var f=a.deselectDuringSelect([b],c);if(a.destroyed){return}a.resumeChanges();if(f[0]){return !1}}a.lastSelected=b;if(!d.getCount()){a.selectionStart=b}d.add(b);e=!0};a.onSelectChange(b,!0,c,f);if(e&&!a.destroyed){a.maybeFireSelectionChange(!c)}},maybeFireSelectionChange:function(b){var a=this;if(b&&!a.suspendChange){a.fireEvent('selectionchange',a,a.getSelection())}},getLastSelected:function(){return this.lastSelected},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(a){a=a?a.toUpperCase():'SINGLE';this.selectionMode=this.modes[a]?a:'SINGLE'},isLocked:function(){return this.locked},setLocked:function(a){this.locked=!!a},isRangeSelected:function(b,c){var e=this,f=e.store,a,d;d=e.normalizeRowRange(b,c);b=d[0];c=d[1];for(a=b;a<=c;a++){if(!e.isSelected(f.getAt(a))){return !1}}return !0},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected.contains(a)},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var a=this,l=a.store,e=[],c=[],k=a.getSelection(),m=k.length,b=a.getSelected(),h,j,d,g,i,f;if(!l||!(b.isCollection||b.isRows)||!b.getCount()){return}d=l.getData();if(d.getSource){j=d.getSource();if(j){d=j}}a.refreshing=!0;b.beginUpdate();a.suspendChanges();for(f=0;f0);if(i){a.fireEvent('lastselectedchanged',a,a.getSelection(),a.lastSelected)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(d,e,b,f){var a=this,c=e?'select':'deselect';if((b||a.fireEvent('before'+c,a,d))!==!1&&f()!==!1){if(!b){a.fireEvent(c,a,d)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(a){var c=this.view,b;if(c){b=c.resolveSatelliteListenerScope(this,a)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,a)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,selectWithEventMulti:function(b,l,e){var a=this,g=l.shiftKey,c=l.ctrlKey,j=g?a.getSelectionStart():null,i=a.getSelection(),k=i.length,f,d,h;if(g&&j){a.selectRange(j,b,c)}else {if(c&&e){if(a.allowDeselect){a.doDeselect(b,!1)}}else {if(c){a.doSelect(b,!0,!1)}else {if(e&&!g&&!c&&k>1){if(a.allowDeselect){f=[];for(d=0;dthis.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyRight:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyLeft:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(a){this.setPosition(0,a)},onKeyEnd:function(a){this.setPosition(this.view.all.getCount()-1,a)},onKeySpace:function(a){this.fireNavigateEvent(a)},onKeyEnter:function(a){a.stopEvent();a.view.fireEvent('itemclick',a.view,a.record,a.item,a.recordIndex,a)},onSelectAllKeyPress:function(a){this.fireNavigateEvent(a)},fireNavigateEvent:function(b){var a=this;a.fireEvent('navigate',{navigationModel:a,keyEvent:b,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,recordIndex:a.recordIndex,record:a.record,item:a.item})},destroy:function(){var a=this;a.setStore(null);Ext.destroy(a.viewListeners,a.keyNav);a.keyNav=a.viewListeners=a.dataSource=a.lastFocused=null;a.callParent()}},1,0,0,0,['view.navigation.default'],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,'NavigationModel'],0);Ext.cmd.derive('Ext.view.AbstractView',Ext.Component,{inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},defaultBindProperty:'store',renderBuffer:document.createElement('div'),statics:{updateDelay:200,queueRecordChange:function(n,o,d,m,f){var a=this,g=a.changeQueue||(a.changeQueue={}),i=d.internalId,h,b,l,e,c,j,k;h=g[i]||(g[i]={operation:m,record:d,data:{},views:[]});b=h.data;Ext.Array.include(h.views,n);if(f&&(l=f.length)){for(e=0;e
    {1}
    ',a.itemCls,b,a.itemAriaRole);a.tpl=new Ext.XTemplate(b,c)}Ext.Component.prototype.initComponent.call(this);a.tpl=a.getTpl('tpl');if(a.overItemCls){a.trackOver=!0}a.addCmpEvents();d=a.store=Ext.data.StoreManager.lookup(a.store||'ext-empty-store');if(!a.dataSource){a.dataSource=d}a.bindStore(d,!0);a.getNavigationModel().bindComponent(this);if(!a.all){a.all=new Ext.CompositeElementLite()}a.scrollState={top:0,left:0};a.savedTabIndexAttribute='data-savedtabindex-'+a.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(){var a=this.loadMask;Ext.Component.prototype.onRender.apply(this,arguments);if(a){this.createMask(a)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.apply(this,arguments);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refresh()}else {a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var a=this,b=a.loadingHeight;if(b&&b>a.getHeight()){a.hasLoadingHeight=!0;a.oldMinHeight=a.minHeight;a.minHeight=b;a.updateLayout()}},onMaskHide:function(){var a=this;if(!a.destroying&&a.hasLoadingHeight){a.minHeight=a.oldMinHeight;a.updateLayout();delete a.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.apply(this,arguments);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.apply(this,arguments);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var a=this.loadMask,b=[];if(a&&a.isComponent){b.push(a)}return b},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},applySelectionModel:function(b,e){var a=this,g=a.grid,c,f,d;if(e){e.un({scope:a,selectionchange:a.updateBindSelection,lastselectedchanged:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});Ext.destroy(a.selModelRelayer);b=Ext.Factory.selection(b)}else {if(b&&b.isSelectionModel){b.locked=a.disableSelection}else {if(a.simpleSelect){c='SIMPLE'}else {if(a.multiSelect){c='MULTI'}else {c='SINGLE'}}if(typeof b==='string'){b={type:b}}b=Ext.Factory.selection(Ext.apply({allowDeselect:a.allowDeselect||a.multiSelect,mode:c,locked:a.disableSelection},b))}}if(b.mode!=='SINGLE'){d=(g||a).ariaEl.dom;if(d){d.setAttribute('aria-multiselectable',!0)}else {if(!g){f=a.ariaRenderAttributes||(a.ariaRenderAttributes={});f['aria-multiselectable']=!0}}}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});return b},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(d){var a=this,b=a.getNavigationModel(),c;a.toggleChildrenTabbability(!1);if(!a.itemFocused&&a.all.getCount()){c=b.getLastFocused();b.setPosition(c||0,d.event,null,!c);a.itemFocused=b.getPosition()!=null}if(a.itemFocused){this.el.dom.setAttribute('tabIndex','-1')}Ext.Component.prototype.onFocusEnter.call(this,d)},onFocusLeave:function(b){var a=this;if(a.itemFocused&&!a.refreshing){a.getNavigationModel().setPosition(null,b.event,null,!0);a.itemFocused=!1;a.el.dom.setAttribute('tabIndex',0)}Ext.Component.prototype.onFocusLeave.call(this,b)},ariaSelect:function(c,b){var a=this.getNode(b);if(a){a.setAttribute('aria-selected',!0)}},ariaDeselect:function(c,b){var a=this.getNode(b);if(a){a.removeAttribute('aria-selected')}},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);if(!a){this.onFocusLeave({})}},refresh:function(){var a=this,c=a.all,i=c.getCount(),g=a.refreshCounter,e,k,f,j=a.getSelectionModel(),h,d=g&&c.getCount()&&a.preserveScrollOnRefresh&&a.getScrollable(),b;if(!a.rendered||a.destroyed){return}if(!a.hasListeners.beforerefresh||a.fireEvent('beforerefresh',a)!==!1){a.refreshing=!0;h=a.saveFocusState();e=a.getTargetEl();f=a.getViewRange();k=e.dom;if(d){b=d.getPosition();if(!(b.x||b.y)){b=null}}if(g){a.clearViewEl();a.refreshCounter++}else {a.refreshCounter=1}a.tpl.append(e,a.collectData(f,c.startIndex||0));if(f.length<1){a.addEmptyText();c.clear()}else {a.collectNodes(e.dom);a.updateIndexes(0)}h();if(a.refreshSelmodelOnRefresh!==!1){j.refresh()}a.refreshNeeded=!1;a.refreshSize(c.getCount()!==i);a.fireEvent('refresh',a,f);if(d){d.scrollTo(b)}if(!a.viewReady){a.viewReady=!0;a.fireEvent('viewready',a)}a.refreshing=!1;a.refreshScroll();a.cleanupData()}},addEmptyText:function(){var a=this,b=a.getStore();if(a.emptyText&&!b.isLoading()&&(!a.deferEmptyText||a.refreshCounter>1||b.isLoaded())){a.emptyEl=Ext.core.DomHelper.insertHtml('beforeEnd',a.getTargetEl().dom,a.emptyText)}},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(d){var a=this,b=a.getSizeModel(),c=a.getScrollable();if(b.height.shrinkWrap||b.width.shrinkWrap||d){a.updateLayout()}else {if(a.touchScroll&&!a.bufferedRenderer){if(c){c.refresh()}else {a.on({boxready:a.refreshScroll,scope:a,single:!0})}}}},afterFirstLayout:function(d,c){var a=this,b=a.getScrollable();if(b){b.on({scroll:a.onViewScroll,scrollend:a.onViewScrollEnd,scope:a,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,d,c)},clearViewEl:function(){var a=this,c=a.getTargetEl(),b=a.getNodeContainer()===c;a.clearEmptyEl();a.all.clear(!b);if(b){c.dom.innerHTML=''}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(c,a,b){this.fireEvent('scroll',this,a,b)},onViewScrollEnd:function(c,a,b){this.fireEvent('scrollend',this,a,b)},saveScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){b.left=a.getScrollX();b.top=a.getScrollY()}},restoreScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){a.setScrollX(b.left);a.setScrollY(b.top)}},prepareData:function(c,f,e){var a,b,d;if(e){a=e.getAssociatedData();for(b in a){if(a.hasOwnProperty(b)){if(!d){c=Ext.Object.chain(c);d=!0}c[b]=a[b]}}}return c},collectData:function(c,e){var d=[],a=0,f=c.length,b;for(;a-1){if(a.getNode(b)){d=a.bufferRender([b],c).children[0];a.all.replaceElement(c,d,!0);a.updateIndexes(c,c);e.onUpdate(b);a.refreshSizePending=!0;if(e.isSelected(b)){a.onItemSelect(b)}if(a.hasListeners.itemupdate){a.fireEvent('itemupdate',b,c,d)}return d}}}},onReplace:function(o,b,e,d){var a=this,c=a.all,n=a.getSelectionModel(),j=b,h,m,g,f,l,k,i;if(a.rendered){h=a.bufferRender(d,b,!0);g=h.fragment;f=h.children;m=c.item(b);if(m){c.item(b).insertSibling(g,'before',!0)}else {a.appendNodes(g)}c.insert(b,f);if(e.length){i=a.saveFocusState()}b+=d.length;k=b+e.length-1;l=c.removeRange(b,k,!0);if(a.refreshSelmodelOnRefresh!==!1){n.refresh()}a.updateIndexes(b);if(a.hasListeners.itemremove){a.fireEvent('itemremove',e,j,l,a)}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,j,f)}i();a.refreshSize()}},onAdd:function(f,d,b){var a=this,c,e=a.getSelectionModel();if(a.rendered){if(a.all.getCount()===0){a.refresh();c=a.all.slice()}else {c=a.doAdd(d,b);if(a.refreshSelmodelOnRefresh!==!1){e.refresh()}a.updateIndexes(b);a.refreshSizePending=!0}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,b,c)}}},appendNodes:function(a){var b=this.all,c=b.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(a)}else {b.item(c-1).insertSibling(a,'after')}},doAdd:function(j,b){var d=this,g=d.bufferRender(j,b,!0),f=g.fragment,c=g.children,a=d.all,h=a.getCount(),e=a.startIndex||0,i=a.endIndex||h-1;if(h===0||b>i){d.appendNodes(f)}else {if(b<=e){a.item(e).insertSibling(f,'before',!0)}else {a.item(b).insertSibling(c,'before',!0)}}a.insert(b,c);return c},onRemove:function(l,d,b){var a=this,i=a.all,g=a.hasListeners.itemremove,e,c,k,f,h,j;if(i.getCount()){if(a.dataSource.getCount()===0){if(g){a.fireEvent('itemremove',d,b,a.getNodes(b,b+d.length-1))}a.refresh()}else {j=a.saveFocusState();if(g){f=[]}for(c=d.length-1;c>=0;--c){k=d[c];e=b+c;if(f){h=i.item(e);f[c]=h?h.dom:undefined}if(i.item(e)){a.doRemove(k,e)}}if(g){a.fireEvent('itemremove',d,b,f,a)}j();a.updateIndexes(b)}a.refreshSizePending=!0}},doRemove:function(b,a){this.all.removeElement(a,!0)},saveFocusState:function(){var a=this,e=a.dataSource||a.store,c=a.getNavigationModel(),b=c.recordIndex,d=c.record;if(a.el.contains(Ext.Element.getActiveElement())){a.el.dom.focus();return function(){if(e.getCount()){b=Math.min(b,a.all.getCount()-1);c.setPosition(e.contains(d)?d:b,null,null,!0)}}}return Ext.emptyFn},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(d,b){var e=this.all.elements,c,f=this.getViewRange(),a,g=this.id;d=d||0;b=b||(b===0?0:e.length-1);for(a=d;a<=b;a++){c=e[a];c.setAttribute('data-recordIndex',a);c.setAttribute('data-recordId',f[a].internalId);c.setAttribute('data-boundView',g)}},bindStore:function(b,e){var a=this,c=a.getSelectionModel(),d=a.getNavigationModel();c.bindStore(b);c.bindComponent(b?a:null);a.mixins.storeholder.bindStore.apply(a,arguments);d.setStore(b);if(b&&a.componentLayoutCounter){a.doFirstRefresh(b,!e)}},doFirstRefresh:function(b,c){var a=this;if(a.deferInitialRefresh&&!c){Ext.defer(a.doFirstRefresh,1,a,[b,!0])}else {if(b&&!b.isLoading()){a.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(c,b){var a=this;if(a.store.isBufferedStore){a.store.preserveScrollOnReload=a.preserveScrollOnReload}if(b&&b.isBufferedStore){delete b.preserveScrollOnReload}a.setMaskBind(c);if(!a.dataSource){a.dataSource=c}},setMaskBind:function(b){var a=this.loadMask;if(this.rendered&&a&&b&&!a.bindStore){a=this.createMask()}if(a&&a.bindStore){a.bindStore(b)}},getStoreListeners:function(){var a=this;return {refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var a=this;if(a.updateSuspendCounter){--a.updateSuspendCounter}Ext.resumeLayouts(!0);if(a.refreshSizePending){a.refreshSize(!0);a.refreshSizePending=!1}},onDataRefresh:function(b){var a=this,c=a.preserveScrollOnRefresh;if(b.loadCount>a.lastRefreshLoadCount){a.preserveScrollOnRefresh=a.preserveScrollOnReLoad}a.refreshView();a.preserveScrollOnRefresh=c;a.lastRefreshLoadCount=b.loadCount},refreshView:function(){var a=this,b=a.blockRefresh||!a.rendered||a.up('[collapsed],[isCollapsingOrExpanding],[hidden]');if(b){a.refreshNeeded=!0}else {if(a.bufferedRenderer){a.bufferedRenderer.refreshView()}else {a.refresh()}}},findItemByChild:function(a){return Ext.fly(a).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(a){return a.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var c=[],b=this.getSelectionModel().getSelection(),d=b.length,a=0;for(;aa.bottom){d=b.bottom-a.bottom}}if(b.lefta.right){c=b.right-a.right}}if(c||d){g.scrollBy(c,d,!1)}e.set({tabIndex:-1});e.focus()}},privates:{repaintBorder:function(b){var a=this.getNode(b);if(a){a.className=a.className}}}},0,['dataview'],['component','box','dataview'],{'component':!0,'box':!0,'dataview':!0},['widget.dataview'],0,[Ext.view,'View',Ext,'DataView'],0);Ext.cmd.derive('Ext.view.BoundListKeyNav',Ext.view.NavigationModel,{navigateOnSpace:!0,initKeyNav:function(c){var a=this,b=c.pickerField;if(!a.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,c);a.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:a.onKeyEsc,scope:a})}if(!b){return}if(!b.rendered){b.on('render',Ext.Function.bind(a.initKeyNav,a,[c],0),a,{single:!0});return}a.fieldKeyNav=new Ext.util.KeyNav({disabled:!0,target:b.inputEl,forceKeyDown:!0,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,tab:a.onKeyTab,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1001,scope:a})},processViewEvent:function(b,c,e,d,a){if(a.within(b.listWrap)){return a}if(a.getKey()===a.ESC){if(Ext.fly(a.target).isInputField()){a.target=a.target.parentNode}return a}},enable:function(){this.fieldKeyNav.enable();Ext.view.NavigationModel.prototype.enable.call(this)},disable:function(){this.fieldKeyNav.disable();Ext.view.NavigationModel.prototype.disable.call(this)},onItemMouseDown:function(e,b,d,c,a){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,e,b,d,c,a);a.preventDefault()},onKeyUp:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b>0?b-1:f.getCount()-1;d.setPosition(e);g.preventDefault()},onKeyDown:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b
    ',destroy:function(){var a=this;if(a.spinnerEl){a.spinnerEl.destroy();a.spinnerEl=a.upEl=a.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var a=this;return {vertical:a.vertical,upDisabledCls:a.upEnabled?'':a.spinnerUpCls+'-disabled',downDisabledCls:a.downEnabled?'':a.spinnerDownCls+'-disabled',spinnerCls:a.spinnerCls,spinnerUpCls:a.spinnerUpCls,spinnerDownCls:a.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var a=this,d=arguments,c=a.clickRepeater?d[1]:d[0],b=a.field;if(!b.readOnly&&!b.disabled){if(a.upEl.contains(c.target)){Ext.callback(a.upHandler,a.scope,[b,a,c],0,b)}else {if(a.downEl.contains(c.target)){Ext.callback(a.downHandler,a.scope,[b,a,c],0,b)}}}b.inputEl.focus()},onFieldRender:function(){var a=this,d=a.vertical,c,b;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);c=a.spinnerEl=a.el.select('.'+a.spinnerCls,!0);b=c.elements;a.upEl=d?b[0]:b[1];a.downEl=d?b[1]:b[0]},setUpEnabled:function(a){this.upEl[a?'removeCls':'addCls'](this.spinnerUpCls+'-disabled')},setDownEnabled:function(a){this.downEl[a?'removeCls':'addCls'](this.spinnerDownCls+'-disabled')}},0,0,0,0,['trigger.spinner'],0,[Ext.form.trigger,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Spinner',Ext.form.field.Text,{alternateClassName:'Ext.form.Spinner',config:{triggers:{spinner:{type:'spinner',upHandler:'onSpinnerUpClick',downHandler:'onSpinnerDownClick',scope:'this'}}},spinUpEnabled:!0,spinDownEnabled:!0,keyNavEnabled:!0,mouseWheelEnabled:!0,repeatTriggerClick:!0,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:'spinbutton',applyTriggers:function(b){var c=this,a=b.spinner;a.upEnabled=c.spinUpEnabled;a.downEnabled=c.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},onRender:function(){var a=this,b=a.getTrigger('spinner');(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(a.keyNavEnabled){a.spinnerKeyNav=new Ext.util.KeyNav(a.inputEl,{scope:a,up:a.spinUp,down:a.spinDown})}if(a.mouseWheelEnabled){a.mon(a.bodyEl,'mousewheel',a.onMouseWheel,a)}a.spinUpEl=b.upEl;a.spinDownEl=b.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var a=this;if(a.spinUpEnabled&&!a.disabled){a.fireEvent('spin',a,'up');a.fireEvent('spinup',a);a.onSpinUp()}},spinDown:function(){var a=this;if(a.spinDownEnabled&&!a.disabled){a.fireEvent('spin',a,'down');a.fireEvent('spindown',a);a.onSpinDown()}},setSpinUpEnabled:function(b){var a=this,c=a.spinUpEnabled;a.spinUpEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setUpEnabled(b)}},setSpinDownEnabled:function(b){var a=this,c=a.spinDownEnabled;a.spinDownEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setDownEnabled(b)}},onMouseWheel:function(c){var b=this,a;if(b.hasFocus){a=c.getWheelDelta();if(a>0){b.spinUp()}else {if(a<0){b.spinDown()}}c.stopEvent()}},onDestroy:function(){Ext.destroyMembers(this,'spinnerKeyNav');Ext.form.field.Text.prototype.onDestroy.call(this)}},0,['spinnerfield'],['component','box','field','textfield','spinnerfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0},['widget.spinnerfield'],0,[Ext.form.field,'Spinner',Ext.form,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Number',Ext.form.field.Spinner,{alternateClassName:['Ext.form.NumberField','Ext.form.Number'],allowExponential:!0,allowDecimals:!0,decimalSeparator:null,submitLocaleSeparator:!0,decimalPrecision:2,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,step:1,minText:'The minimum value for this field is {0}',maxText:'The maximum value for this field is {0}',nanText:'{0} is not a valid number',negativeText:'The value cannot be negative',baseChars:'0123456789',autoStripChars:!1,initComponent:function(){var a=this;if(a.decimalSeparator===null){a.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);a.setMinValue(a.minValue);a.setMaxValue(a.maxValue)},getSubTplData:function(g){var f=this,e=f.minValue,d=f.maxValue,c,a,b;c=Ext.form.field.Spinner.prototype.getSubTplData.call(this,g);a=c.inputElAriaAttributes;if(a){if(e>Number.NEGATIVE_INFINITY){a['aria-valuemin']=e}if(d=e&&b<=d){a['aria-valuenow']=b}}return c},setValue:function(d){var a=this,c,b;if(a.hasFocus){c=a.getBind();b=c&&c.value;if(b&&b.syncing&&d===a.value){return a}}return Ext.form.field.Spinner.prototype.setValue.call(this,d)},getErrors:function(b){b=arguments.length>0?b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Spinner.prototype.getErrors.call(this,b),e=Ext.String.format,d;if(b.length<1){return c}b=String(b).replace(a.decimalSeparator,'.');if(isNaN(b)){c.push(e(a.nanText,b))}d=a.parseValue(b);if(a.minValue===0&&d<0){c.push(this.negativeText)}else {if(da.maxValue){c.push(e(a.maxText,a.maxValue))}return c},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(a){var b=this,c=b.decimalSeparator;a=b.parseValue(a);a=b.fixPrecision(a);a=Ext.isNumber(a)?a:parseFloat(String(a).replace(c,'.'));a=isNaN(a)?'':String(a).replace('.',c);return a},getSubmitValue:function(){var b=this,a=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!b.submitLocaleSeparator){a=a.replace(b.decimalSeparator,'.')}return a},onChange:function(a){var b=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(b){if(Ext.isNumber(a)&&isFinite(a)){b.setAttribute('aria-valuenow',a)}else {b.removeAttribute('aria-valuenow')}}},toggleSpinners:function(){var a=this,c=a.getValue(),d=c===null,b;if(a.spinUpEnabled||a.spinUpDisabledByToggle){b=d||ca.minValue;a.setSpinDownEnabled(b,!0)}},setMinValue:function(e){var a=this,c=a.ariaEl.dom,d,b,c;a.minValue=d=Ext.Number.from(e,Number.NEGATIVE_INFINITY);a.toggleSpinners();if(c){if(d>Number.NEGATIVE_INFINITY){c.setAttribute('aria-valuemin',d)}else {c.removeAttribute('aria-valuemin')}}if(a.disableKeyFilter!==!0){b=a.baseChars+'';if(a.allowExponential){b+=a.decimalSeparator+'e+-'}else {if(a.allowDecimals){b+=a.decimalSeparator}if(a.minValue<0){b+='-'}}b=Ext.String.escapeRegex(b);a.maskRe=new RegExp('['+b+']');if(a.autoStripChars){a.stripCharsRe=new RegExp('[^'+b+']','gi')}}},setMaxValue:function(c){var b=this.ariaEl.dom,a;this.maxValue=a=Ext.Number.from(c,Number.MAX_VALUE);if(b){if(aa.maxLength){return}}a.setValue(b)}},0,['numberfield'],['component','box','field','textfield','spinnerfield','numberfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0,'numberfield':!0},['widget.numberfield'],0,[Ext.form.field,'Number',Ext.form,'NumberField',Ext.form,'Number'],0);Ext.cmd.derive('Ext.toolbar.Paging',Ext.toolbar.Toolbar,{alternateClassName:'Ext.PagingToolbar',displayInfo:!1,prependButtons:!1,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display',beforePageText:'Page',afterPageText:'of {0}',firstText:'First Page',prevText:'Previous Page',nextText:'Next Page',lastText:'Last Page',refreshText:'Refresh',inputItemWidth:30,emptyPageData:{total:0,currentPage:0,pageCount:0,toRecord:0,fromRecord:0},defaultBindProperty:'store',getPagingItems:function(){var a=this,b={scope:a,blur:a.onPagingBlur};b[Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress']=a.onPagingKeyDown;return [{itemId:'first',tooltip:a.firstText,overflowText:a.firstText,iconCls:'x-tbar-page-first',disabled:!0,handler:a.moveFirst,scope:a},{itemId:'prev',tooltip:a.prevText,overflowText:a.prevText,iconCls:'x-tbar-page-prev',disabled:!0,handler:a.movePrevious,scope:a},'-',a.beforePageText,{xtype:'numberfield',itemId:'inputItem',name:'inputItem',cls:'x-tbar-page-number',allowDecimals:!1,minValue:1,hideTrigger:!0,enableKeyEvents:!0,keyNavEnabled:!1,selectOnFocus:!0,submitValue:!1,isFormField:!1,width:a.inputItemWidth,margin:'-1 2 3 2',listeners:b},{xtype:'tbtext',itemId:'afterTextItem',html:Ext.String.format(a.afterPageText,1)},'-',{itemId:'next',tooltip:a.nextText,overflowText:a.nextText,iconCls:'x-tbar-page-next',disabled:!0,handler:a.moveNext,scope:a},{itemId:'last',tooltip:a.lastText,overflowText:a.lastText,iconCls:'x-tbar-page-last',disabled:!0,handler:a.moveLast,scope:a},'-',{itemId:'refresh',tooltip:a.refreshText,overflowText:a.refreshText,iconCls:'x-tbar-loading',disabled:a.store.isLoading(),handler:a.doRefresh,scope:a}]},initComponent:function(){var a=this,c=a.items||a.buttons||[],b;a.bindStore(a.store||'ext-empty-store',!0);b=a.getPagingItems();if(a.prependButtons){a.items=c.concat(b)}else {a.items=b.concat(c)}delete a.buttons;if(a.displayInfo){a.items.push('->');a.items.push({xtype:'tbtext',itemId:'displayItem'})}Ext.toolbar.Toolbar.prototype.initComponent.call(this)},beforeRender:function(){Ext.toolbar.Toolbar.prototype.beforeRender.apply(this,arguments);this.updateBarInfo()},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=!0;a.onLoad();a.calledInternal=!1}},updateInfo:function(){var a=this,d=a.child('#displayItem'),f=a.store,b=a.getPageData(),e,c;if(d){e=f.getCount();if(e===0){c=a.emptyMsg}else {c=Ext.String.format(a.displayMsg,b.fromRecord,b.toRecord,b.total)}d.setText(c)}},onLoad:function(){var a=this,f,c,b,g,h,d,e;h=a.store.getCount();d=h===0;if(!d){f=a.getPageData();c=f.currentPage;b=f.pageCount;if(c>b){if(b>0){a.store.loadPage(b)}else {a.getInputItem().reset()}return}g=Ext.String.format(a.afterPageText,isNaN(b)?1:b)}else {c=0;b=0;g=Ext.String.format(a.afterPageText,0)}Ext.suspendLayouts();e=a.child('#afterTextItem');if(e){e.update(g)}e=a.getInputItem();if(e){e.setDisabled(d).setValue(c)}a.setChildDisabled('#first',c===1||d);a.setChildDisabled('#prev',c===1||d);a.setChildDisabled('#next',c===b||d);a.setChildDisabled('#last',c===b||d);a.setChildDisabled('#refresh',!1);a.updateInfo();Ext.resumeLayouts(!0);if(!a.calledInternal){a.fireEvent('change',a,f||a.emptyPageData)}},setChildDisabled:function(c,b){var a=this.child(c);if(a){a.setDisabled(b)}},getPageData:function(){var a=this.store,b=a.getTotalCount();return {total:b,currentPage:a.currentPage,pageCount:Math.ceil(b/a.pageSize),fromRecord:(a.currentPage-1)*a.pageSize+1,toRecord:Math.min(a.currentPage*a.pageSize,b)}},onLoadError:function(){this.setChildDisabled('#refresh',!1)},getInputItem:function(){return this.child('#inputItem')},readPageFromInput:function(d){var a=this.getInputItem(),b=!1,c;if(a){c=a.getValue();b=parseInt(c,10);if(!c||isNaN(b)){a.setValue(d.currentPage);return !1}}return b},onPagingBlur:function(c){var a=this.getInputItem(),b;if(a){b=this.getPageData().currentPage;a.setValue(b)}},onPagingKeyDown:function(a,b){this.processKeyEvent(a,b)},processKeyEvent:function(g,b){var e=this,c=b.getKey(),d=e.getPageData(),f=b.shiftKey?10:1,a;if(c===b.RETURN){b.stopEvent();a=e.readPageFromInput(d);if(a!==!1){a=Math.min(Math.max(1,a),d.pageCount);if(a!==d.currentPage&&e.fireEvent('beforechange',e,a)!==!1){e.store.loadPage(a)}}}else {if(c===b.HOME||c===b.END){b.stopEvent();a=c===b.HOME?1:d.pageCount;g.setValue(a)}else {if(c===b.UP||c===b.PAGE_UP||c===b.DOWN||c===b.PAGE_DOWN){b.stopEvent();a=e.readPageFromInput(d);if(a){if(c===b.DOWN||c===b.PAGE_DOWN){f*=-1}a+=f;if(a>=1&&a<=d.pageCount){g.setValue(a)}}}}}},beforeLoad:function(){this.setChildDisabled('#refresh',!0)},moveFirst:function(){if(this.fireEvent('beforechange',this,1)!==!1){this.store.loadPage(1);return !0}return !1},movePrevious:function(){var a=this,b=a.store,c=b.currentPage-1;if(c>0){if(a.fireEvent('beforechange',a,c)!==!1){b.previousPage();return !0}}return !1},moveNext:function(){var a=this,b=a.store,d=a.getPageData().pageCount,c=b.currentPage+1;if(c<=d){if(a.fireEvent('beforechange',a,c)!==!1){b.nextPage();return !0}}return !1},moveLast:function(){var a=this,b=a.getPageData().pageCount;if(a.fireEvent('beforechange',a,b)!==!1){a.store.loadPage(b);return !0}return !1},doRefresh:function(){var a=this,c=a.store,b=c.currentPage;if(a.fireEvent('beforechange',a,b)!==!1){c.loadPage(b);return !0}return !1},getStoreListeners:function(){return {beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},onDestroy:function(){this.bindStore(null);Ext.toolbar.Toolbar.prototype.onDestroy.call(this)}},0,['pagingtoolbar'],['component','box','container','toolbar','pagingtoolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'pagingtoolbar':!0},['widget.pagingtoolbar'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.toolbar,'Paging',Ext,'PagingToolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Paging',{override:'Ext.toolbar.Paging',defaultButtonUI:'plain-toolbar',inputItemWidth:40});Ext.cmd.derive('Ext.view.BoundList',Ext.view.View,{alternateClassName:'Ext.BoundList',pageSize:0,baseCls:'x-boundlist',itemCls:'x-boundlist-item',listItemCls:'',shadow:!1,trackOver:!0,preserveScrollOnRefresh:!0,enableInitialSelection:!1,refreshSelmodelOnRefresh:!0,componentLayout:'boundlist',navigationModel:'boundlist',scrollable:!0,ariaEl:'listEl',tabIndex:-1,childEls:['listWrap','listEl'],renderTpl:['
    ','
      {$}="{.}"','>','
    ','
    ','{%','var pagingToolbar=values.$comp.pagingToolbar;','if (pagingToolbar) {','Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);','}','%}',{disableFormats:!0}],focusOnToFront:!1,initComponent:function(){var a=this,b=a.baseCls,c=a.itemCls;a.selectedItemCls=b+'-selected';if(a.trackOver){a.overItemCls=b+'-item-over'}a.itemSelector='.'+c;a.scrollerSelector='ul.x-list-plain';if(a.floating){a.addCls(b+'-floating')}if(!a.tpl){a.tpl=new Ext.XTemplate('','
  • '+a.getInnerTpl(a.displayField)+'
  • ','
    ')}else {if(!a.tpl.isTemplate){a.tpl=new Ext.XTemplate(a.tpl)}}if(a.pageSize){a.pagingToolbar=a.createPagingToolbar()}Ext.view.View.prototype.initComponent.call(this)},getRefOwner:function(){return this.pickerField||Ext.view.View.prototype.getRefOwner.call(this)},getRefItems:function(){var b=Ext.view.View.prototype.getRefItems.call(this),a=this.pagingToolbar;if(a){b.push(a)}return b},createPagingToolbar:function(){return Ext.widget('pagingtoolbar',{id:this.id+'-paging-toolbar',pageSize:this.pageSize,store:this.dataSource,border:!1,ownerCt:this,ownerLayout:this.getComponentLayout()})},getNodeContainer:function(){return this.listEl},refresh:function(){var b=this,a=b.tpl;a.field=b.pickerField;a.store=b.store;Ext.view.View.prototype.refresh.call(this);a.field=a.store=null},bindStore:function(c,b){var a=this.pagingToolbar;Ext.view.View.prototype.bindStore.apply(this,arguments);if(a){a.bindStore(c,b)}},getInnerTpl:function(a){return '{'+a+'}'},onShow:function(){var a=this.pickerField;Ext.view.View.prototype.onShow.call(this);if(a&&a.rendered&&!a.hasFocus){a.focus()}},afterComponentLayout:function(e,d,c,b){var a=this.pickerField;Ext.view.View.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&a.alignPicker){a.alignPicker()}},onItemClick:function(e){var d=this,b=d.pickerField,c,a;if(!b){return}c=b.valueField;a=d.getSelectionModel().getSelection();if(!b.multiSelect&&a.length){a=a[0];if(a&&b.isEqual(e.get(c),a.get(c))&&b.collapse){b.collapse()}}},onContainerClick:function(b){var a=this.pagingToolbar;if(a&&a.rendered&&b.within(a.el)){return !1}},onDestroy:function(){Ext.view.View.prototype.onDestroy.call(this);Ext.destroyMembers(this,'pagingToolbar','listWrap','listEl')},privates:{getTargetEl:function(){return this.listEl},getOverflowEl:function(){return this.listWrap},finishRenderChildren:function(){var a=this.pagingToolbar;Ext.view.View.prototype.finishRenderChildren.apply(this,arguments);if(a){a.finishRender()}}}},0,['boundlist'],['component','box','dataview','boundlist'],{'component':!0,'box':!0,'dataview':!0,'boundlist':!0},['widget.boundlist'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,'BoundList',Ext,'BoundList'],0);Ext.cmd.derive('Ext.form.field.ComboBox',Ext.form.field.Picker,{alternateClassName:'Ext.form.ComboBox',config:{filters:null,selection:null,valueNotFoundText:null,displayTpl:!1,delimiter:', ',displayField:'text'},publishes:['selection'],twoWayBindable:['selection'],triggerCls:'x-form-arrow-trigger',hiddenName:'',collapseOnSelect:!1,hiddenDataCls:'x-hidden-display x-form-data-hidden',ariaRole:'combobox',childEls:{'hiddenDataEl':!0},filtered:!1,afterRender:function(){var a=this;Ext.form.field.Picker.prototype.afterRender.apply(this,arguments);a.setHiddenValue(a.value)},multiSelect:!1,triggerAction:'all',allQuery:'',queryParam:'query',queryMode:'remote',queryCaching:!0,autoLoadOnValue:!1,pageSize:0,anyMatch:!1,caseSensitive:!1,autoSelect:!0,typeAhead:!1,typeAheadDelay:250,selectOnTab:!0,forceSelection:!1,growToLongestValue:!0,clearFilterOnBlur:!0,defaultListConfig:{loadingHeight:70,minWidth:70,maxHeight:300,shadow:'sides'},transformInPlace:!0,clearValueOnEmpty:!0,getGrowWidth:function(){var a=this,i=a.inputEl.dom.value,h,e,g,c,b,f,d;if(a.growToLongestValue){h=a.displayField;e=a.store;g=e.data.length;c=0;for(b=0;bc){c=d;i=f}}}return i},initComponent:function(){var a=this,d=Ext.isDefined,f=a.store,e=a.transform,b,c;if('pinList' in a){a.collapseOnSelect=!a.pinList}if(e){b=Ext.getDom(e);if(b){if(!a.store){f=Ext.Array.map(Ext.Array.from(b.options),function(a){return [a.value,a.text]})}if(!a.name){a.name=b.name}if(!('value' in a)){a.value=b.value}}}a.bindStore(f||'ext-empty-store',!0,!0);c=a.queryMode==='local';if(!d(a.queryDelay)){a.queryDelay=c?10:500}if(!d(a.minChars)){a.minChars=c?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);a.doQueryTask=new Ext.util.DelayedTask(a.doRawQuery,a);if(b){if(a.transformInPlace){a.render(b.parentNode,b);delete a.renderTo}Ext.removeNode(b)}},getSubTplData:function(c){var b,a;b=Ext.form.field.Picker.prototype.getSubTplData.call(this,c);a=b.inputElAriaAttributes;if(a){a['aria-autocomplete']='list'}return b},getSubTplMarkup:function(c){var b=this,a='',d=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(b.hiddenName){a=''}return a+d},applyDisplayTpl:function(a){var b=this;if(!a){a=new Ext.XTemplate('{[typeof values === "string" ? values : values["'+b.getDisplayField()+'"]]}'+b.getDelimiter()+'');a.auto=!0}else {if(!a.isTemplate){a=new Ext.XTemplate(a)}}return a},applyFilters:function(b,a){var c=this;if(b===null||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.beginUpdate();a.splice(0,a.length,b);a.each(function(d){d.ownerId=c.id});a.endUpdate()}return a},applyValueNotFoundText:function(b){var a=this,c=a.valueNotFoundRecord||(a.valueNotFoundRecord=new Ext.data.Model());c.set(a.displayField,b);if(a.valueField&&a.displayField!==a.valueField){c.set(a.valueField,b)}return b},getFilters:function(b){var a=this.filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,c){var b=this;if(c){c.un('endupdate','onEndUpdateFilters',b)}if(a){a.on('endupdate','onEndUpdateFilters',b)}b.onEndUpdateFilters(a)},onEndUpdateFilters:function(a){var b=this,f=b.filtered,e=!!a&&a.length>0,d,c;if(f||e){b.filtered=e;d=[];c=b.store.getFilters();c.each(function(c){if(c.ownerId===b.id&&!a.contains(c)){d.push(c)}});c.splice(0,d,a.items)}},completeEdit:function(c){var a=this,b=a.queryFilter;Ext.form.field.Picker.prototype.completeEdit.call(this,c);a.doQueryTask.cancel();a.assertValue();if(b&&a.queryMode==='local'&&a.clearFilterOnBlur){a.getStore().getFilters().remove(b)}},onFocus:function(b){var a=this;Ext.form.field.Picker.prototype.onFocus.call(this,b);if(a.triggerAction!=='all'&&a.queryFilter&&a.queryMode==='local'&&a.clearFilterOnBlur){delete a.lastQuery;a.doRawQuery()}},assertValue:function(){var a=this,e=a.getRawValue(),c=a.getDisplayValue(),d=a.lastSelectedRecords,b;if(a.forceSelection){if(a.multiSelect){if(e!==c){a.setRawValue(c)}}else {b=a.findRecordByDisplay(e);if(b){if(a.getDisplayValue([a.getRecordDisplayData(b)])!==c){a.select(b,!0)}}else {if(d&&(!a.allowBlank||a.rawValue)){a.setValue(d)}else {if(d){delete a.lastSelectedRecords}a.setRawValue('')}}}}a.collapse()},onTypeAhead:function(){var a=this,e=a.displayField,d=a.store.findRecord(e,a.getRawValue()),f=a.getPicker(),b,g,c;if(d){b=d.get(e);g=b.length;c=a.getRawValue().length;f.highlightItem(f.getNode(d));if(c!==0&&c!==g){a.setRawValue(b);a.selectText(c,b.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){var a=this.queryFilter;Ext.form.field.Picker.prototype.beforeReset.call(this);if(a){this.getStore().getFilters().remove(a)}},onUnbindStore:function(){var a=this,c=a.picker,b=a.queryFilter;if(b&&!a.store.destroyed){a.changingFilters=!0;a.getStore().removeFilter(b,!0);a.changingFilters=!1}a.pickerSelectionModel.destroy();if(c){c.bindStore(null)}},onBindStore:function(b,f){var a=this,d=a.picker,c,e;if(b){if(b.autoCreated){a.queryMode='local';a.valueField=a.displayField='field1';if(!b.expanded){a.displayField='field2'}if(a.getDisplayTpl().auto){a.setDisplayTpl(null)}}if(!Ext.isDefined(a.valueField)){a.valueField=a.displayField}c={byValue:{rootProperty:'data',unique:!1}};c.byValue.property=a.valueField;b.setExtraKeys(c);if(a.displayField===a.valueField){b.byText=b.byValue}else {c.byText={rootProperty:'data',unique:!1};c.byText.property=a.displayField;b.setExtraKeys(c)}e={rootProperty:'data',extraKeys:{byInternalId:{property:'internalId'},byValue:{property:a.valueField,rootProperty:'data'}},listeners:{beginupdate:a.onValueCollectionBeginUpdate,endupdate:a.onValueCollectionEndUpdate,scope:a}};a.valueCollection=new Ext.util.Collection(e);a.pickerSelectionModel=new Ext.selection.DataViewModel({mode:a.multiSelect?'SIMPLE':'SINGLE',deselectOnContainerClick:!1,enableInitialSelection:!1,pruneRemoved:!1,selected:a.valueCollection,store:b,listeners:{scope:a,lastselectedchanged:a.updateBindSelection}});if(!f){a.resetToDefault()}if(d){d.setSelectionModel(a.pickerSelectionModel);if(d.getStore()!==b){d.bindStore(b)}}}},bindStore:function(a,e,c){var b=this,d=b.queryFilter;b.mixins.storeholder.bindStore.call(b,a,c);a=b.getStore();if(a&&d&&!e){a.getFilters().add(d)}if(!c&&a&&!a.isEmptyStore){b.setValueOnData()}},getStoreListeners:function(c){if(!c.isEmptyStore){var a=this,b={datachanged:a.onDataChanged,load:a.onLoad,exception:a.onException,update:a.onStoreUpdate,remove:a.checkValueOnChange};if(!c.getRemoteFilter()){b.filterchange=a.checkValueOnChange}return b}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var a=this;if(!a.destroying&&a.getStore().isLoaded()){if(a.multiSelect){}else {if(a.forceSelection&&!a.changingFilters&&!a.findRecordByValue(a.value)){a.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.collapse()},onLoad:function(b,e,d){var a=this,c=!a.valueCollection.byValue.get(a.value);if(d&&c&&!(b.lastOptions&&'rawQuery' in b.lastOptions)){a.setValueOnData()}a.checkValueOnChange()},setValueOnData:function(){var a=this;a.setValue(a.value);if(a.isExpanded&&a.getStore().getCount()){a.doAutoSelect()}},doRawQuery:function(){var a=this,b=a.inputEl.dom.value;if(a.multiSelect){b=b.split(a.delimiter).pop()}a.doQuery(b,!1,!0)},doQuery:function(c,f,g){var a=this,d=a.getStore(),e=d.filters&&!d.filters.length&&!!c,b=a.beforeQuery({query:c||'',rawQuery:g,forceAll:f,combo:a,cancel:!1});if(b!==!1&&!b.cancel){if(a.queryCaching&&!e&&b.query===a.lastQuery){a.getPicker().refresh();a.expand()}else {a.lastQuery=b.query;if(a.queryMode==='local'){a.doLocalQuery(b)}else {a.doRemoteQuery(b)}}}return !0},beforeQuery:function(a){var b=this;if(b.fireEvent('beforequery',a)===!1){a.cancel=!0}else {if(!a.cancel){if(a.query.length0){a=b.picker.getSelectionModel();if(a.lastSelected&&a.selected.length){c=a.lastSelected}d.getNavigationModel().setPosition(c)}},doTypeAhead:function(){var a=this,b=Ext.event.Event;if(!a.typeAheadTask){a.typeAheadTask=new Ext.util.DelayedTask(a.onTypeAhead,a)}if(a.lastKey!==b.BACKSPACE&&a.lastKey!==b.DELETE){a.typeAheadTask.delay(a.typeAheadDelay)}},onTriggerClick:function(){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else {if(a.triggerAction==='all'){a.doQuery(a.allQuery,!0)}else {if(a.triggerAction==='last'){a.doQuery(a.lastQuery,!0)}else {a.doQuery(a.getRawValue(),!1,!0)}}}}},onFieldMutation:function(b){var a=this,c=b.getKey(),d=c===b.BACKSPACE||c===b.DELETE,e=a.inputEl.dom.value,f=e.length;if(!a.readOnly&&(e!==a.lastMutatedValue||d)&&c!==b.TAB){a.lastMutatedValue=e;a.lastKey=c;if(f&&(b.type!=='keyup'||(!b.isSpecialKey()||d))){a.doQueryTask.delay(a.queryDelay)}else {if(!f&&(!c||d)){++a.suspendCheckChange;if(!a.multiSelect){a.value=null;a.displayTplData=undefined}if(a.clearValueOnEmpty){a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.removeAll();a.valueCollection.endUpdate()}a.collapse();if(a.queryFilter){a.changingFilters=!0;a.store.removeFilter(a.queryFilter,!0);a.changingFilters=!1}--a.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,b)}}},onDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);a.valueCollection=Ext.destroy(a.valueCollection);Ext.form.field.Picker.prototype.onDestroy.call(this)},onAdded:function(){var a=this;Ext.form.field.Picker.prototype.onAdded.apply(this,arguments);if(a.picker){a.picker.ownerCt=a.up('[floating]');a.picker.registerWithOwnerCt()}},createPicker:function(){var a=this,b,c=Ext.apply({xtype:'boundlist',id:a.pickerId,pickerField:a,selectionModel:a.pickerSelectionModel,floating:!0,hidden:!0,store:a.getPickerStore(),displayField:a.displayField,preserveScrollOnRefresh:!0,pageSize:a.pageSize,tpl:a.tpl},a.listConfig,a.defaultListConfig);b=a.picker=Ext.widget(c);if(a.pageSize){b.pagingToolbar.on('beforechange',a.onPageChange,a)}if(!b.initialConfig.maxHeight){b.on({beforeshow:a.onBeforePickerShow,scope:a})}b.getSelectionModel().on({beforeselect:a.onBeforeSelect,beforedeselect:a.onBeforeDeselect,focuschange:a.onFocusChange,scope:a});b.getNavigationModel().navigateOnSpace=!1;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(d){var b=this,a=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-a-b.getHeight();d.maxHeight=Math.max(a,c)-5},onBeforeSelect:function(c,b,a){return this.fireEvent('beforeselect',this,b,a)},onBeforeDeselect:function(c,b,a){return this.fireEvent('beforedeselect',this,b,a)},onFocusChange:function(e,d,b){var c=this.picker,a;if(b){a=Ext.get(c.getNodeByRecord(b));if(a){this.ariaEl.dom.setAttribute('aria-activedescendant',a.id)}}},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getPicker().getSelectionModel();if(c){b.select(c);a.hasHadSelection=!0}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var a=this,e=a.store,b=a.valueCollection.getRange(),d=b[0],c=b.length;a.updateBindSelection(a.pickerSelectionModel,b);if(a.isSelectionUpdating()){return}Ext.suspendLayouts();a.lastSelection=b;if(c){a.lastSelectedRecords=b}a.updateValue();if(c&&(!a.multiSelect&&e.contains(d)||a.collapseOnSelect||!e.getCount())){a.updatingValue=!0;a.collapse();a.updatingValue=!1}Ext.resumeLayouts(!0);if(c&&!a.suspendCheckChange){if(!a.multiSelect){b=d}a.fireEvent('select',a,b)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var a=this.getPicker().getNavigationModel();if(a){a.enable()}this.doAutoSelect()},onCollapse:function(){var a=this.getPicker().getNavigationModel();if(a){a.disable()}if(this.updatingValue){this.doQueryTask.cancel()}},select:function(b,e){var a=this,d=a.picker,c;if(b&&b.isModel&&e===!0&&d){c=!d.getSelectionModel().isSelected(b)}if(!c){a.suspendEvent('select')}a.setValue(b);a.resumeEvent('select')},findRecord:function(c,d){var b=this.store,a=b.findExact(c,d);return a!==-1?b.getAt(a):!1},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=!1;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=!1;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,!0)}},setValue:function(b){var a=this;if(b!=null){return a.doSetValue(b)}else {a.suspendEvent('select');a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.endUpdate();a.lastSelectedRecords=null;a.resumeEvent('select')}},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(c,p){var a=this,f=a.getStore(),v=f.getModel(),e=[],u=[],r=a.autoLoadOnValue,m=f.getCount()>0||f.isLoaded(),l=f.hasPendingLoad(),o=r&&!m&&!l,t=a.forceSelection,n=a.pickerSelectionModel,s=a.displayField===a.valueField,j=f.isEmptyStore,k=a.lastSelection,d,h,b,i,g,q;if(l||o||!m||j){if(!c.isModel){if(p){a.value=Ext.Array.from(a.value).concat(c)}else {a.value=c}a.setHiddenValue(a.value);a.setRawValue(s?c:'')}if(o&&!j){f.load()}if(!c.isModel||j){return a}}c=p?Ext.Array.from(a.value).concat(c):Ext.Array.from(c);for(d=0,h=c.length;d0){h.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:'input',type:'hidden',name:i}));a=1;g=d.firstChild}while(a>c){d.removeChild(b[0]);--a}while(am){if(a.anchorToTarget){a.defaultAlign='r-l';if(a.mouseOffset){a.mouseOffset[0]*=-1}}a.anchor='right';return a.getTargetXY()}if(b[1]l){if(a.anchorToTarget){a.defaultAlign='b-t';if(a.mouseOffset){a.mouseOffset[1]*=-1}}a.anchor='bottom';return a.getTargetXY()}}a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl.addCls(a.anchorCls);a.targetCounter=0;return b}else {c=a.getMouseOffset();return a.targetXY?[a.targetXY[0]+c[0],a.targetXY[1]+c[1]]:c}},calculateConstrainedPosition:function(e){var a=this,d,b,c;if(!e&&a.isContainedFloater()){d=a.isVisible();if(!d){a.el.show()}b=a.getTargetXY();if(!d){a.el.hide()}c=a.floatParent.getTargetEl().getViewRegion();b[0]-=c.left;b[1]-=c.top}else {b=a.callOverridden(arguments)}return b},getMouseOffset:function(){var a=this,b=a.anchor?[0,0]:[15,18];if(a.mouseOffset){b[0]+=a.mouseOffset[0];b[1]+=a.mouseOffset[1]}return b},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity('')}})},getAnchorPosition:function(){var a=this,b;if(a.anchor){a.tipAnchor=a.anchor.charAt(0)}else {b=a.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);a.tipAnchor=b[1].charAt(0)}switch(a.tipAnchor){case 't':return 'top';case 'b':return 'bottom';case 'r':return 'right';}return 'left'},getAnchorAlign:function(){switch(this.anchor){case 'top':return 'tl-bl';case 'left':return 'tl-tr';case 'right':return 'tr-tl';default:return 'bl-tl';}},getOffsets:function(){var b=this,c,a,d=b.getAnchorPosition().charAt(0);if(b.anchorToTarget&&!b.trackMouse){switch(d){case 't':a=[0,9];break;case 'b':a=[0,-13];break;case 'r':a=[-13,0];break;default:a=[9,0];break;}}else {switch(d){case 't':a=[-15-b.anchorOffset,30];break;case 'b':a=[-19-b.anchorOffset,-13-b.el.dom.offsetHeight];break;case 'r':a=[-15-b.el.dom.offsetWidth,-13-b.anchorOffset];break;default:a=[25,-13-b.anchorOffset];break;}}c=b.getMouseOffset();a[0]+=c[0];a[1]+=c[1];return a},onTargetOver:function(b){var a=this,d=a.delegate,c;if(a.disabled||b.within(a.target.dom,!0)){return}c=d?b.getTarget(d):!0;if(c){a.triggerElement=c;a.triggerEvent=b;a.clearTimer('hide');a.targetXY=b.getXY();a.delayShow()}},delayShow:function(c){var a=this,b=a.el&&(c===!1||!a.trackMouse)&&a.getTargetXY();if(a.hidden&&!a.showTimer){if(Ext.Date.getElapsed(a.lastActive)=b.length){a.colIdx=0}else {a.colIdx++}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;}}},statics:{compare:function(a,b){return a.rowIdx-b.rowIdx||a.colIdx-b.colIdx}}},1,0,0,0,0,0,[Ext.grid,'CellContext'],0);Ext.cmd.derive('Ext.grid.ColumnComponentLayout',Ext.layout.component.Auto,{type:'columncomponent',setWidthInDom:!0,_paddingReset:{paddingTop:'',paddingBottom:''},columnAutoCls:'x-column-header-text-container-auto',beginLayout:function(a){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);a.titleContext=a.getEl('titleEl')},beginLayoutCycle:function(d){var b=this,a=b.owner,c=d.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(c){a.el.setWidth('')}a.textContainerEl[c&&!a.isGroupHeader?'addCls':'removeCls'](b.columnAutoCls);a.titleEl.setStyle(b._paddingReset)},publishInnerHeight:function(a,e){var d=this,b=d.owner,c;if(b.getRootHeaderCt().hiddenHeaders){a.setProp('innerHeight',0);return}if(!a.hasRawContent){if(b.headerWrap&&!a.hasDomProp('width')){d.done=!1;return}c=e-a.getBorderInfo().height;a.setProp('innerHeight',c-b.titleEl.getHeight(),!1)}},measureContentHeight:function(a){return a.el.dom.offsetHeight},publishInnerWidth:function(a,b){if(!a.hasRawContent){a.setProp('innerWidth',b-a.getBorderInfo().width,!1)}},calculateOwnerHeightFromContentHeight:function(a,c){var d=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),b=this.owner;if(!a.hasRawContent){if(!b.headerWrap||a.hasDomProp('width')){return c+b.titleEl.getHeight()+a.getBorderInfo().height}return null}return d},calculateOwnerWidthFromContentWidth:function(a,d){var c=this.owner,f=a.getPaddingInfo().width,e=this.getTriggerOffset(c,a),b;if(c.isGroupHeader){b=d}else {b=Math.max(d,c.textEl.getWidth()+a.titleContext.getPaddingInfo().width)}return b+f+e},getTriggerOffset:function(a,c){var b=0;if(c.widthModel.shrinkWrap&&!a.menuDisabled){if(a.query('>:not([hidden])').length===0){b=a.getTriggerElWidth()}}return b}},0,0,0,0,['layout.columncomponent'],0,[Ext.grid,'ColumnComponentLayout'],0);Ext.cmd.derive('Ext.layout.container.Fit',Ext.layout.container.Container,{alternateClassName:'Ext.layout.FitLayout',itemCls:'x-fit-item',type:'fit',manageMargins:!0,sizePolicies:{0:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},1:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},2:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},3:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}},getItemSizePolicy:function(d,b){var a=b||this.owner.getSizeModel(),c=(a.width.shrinkWrap?0:1)|(a.height.shrinkWrap?0:2);return this.sizePolicies[c]},beginLayoutCycle:function(a,p){var f=this,j=f.lastHeightModel&&f.lastHeightModel.calculated,m=f.lastWidthModel&&f.lastWidthModel.calculated,l=m||j,h=0,i=0,b,k,g,e,q,n,c,d,o,r;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(l&&a.targetContext.el.dom.tagName.toUpperCase()!=='TD'){l=m=j=!1}k=a.childItems;q=k.length;for(g=0;g0){for(g=0;g'+a.view.emptyText+''}a.view.getComponentLayout().headerCt=a.headerCt;a.mon(a.view,{uievent:a.processEvent,scope:a});a.headerCt.view=a.view;if(a.hasListeners.viewcreated){a.fireEvent('viewcreated',a,a.view)}}return a.view},getColumnManager:function(){return this.columnManager},getVisibleColumnManager:function(){return this.visibleColumnManager},getTopLevelColumnManager:function(){return this.ownerGrid.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},setAutoScroll:Ext.emptyFn,applyScrollable:function(a){if(this.view){this.view.setScrollable(a)}return a},getScrollable:function(){return null},processEvent:function(g,h,f,c,d,b,e,i){var a=b.position.column;if(a){return a.processEvent.apply(a,arguments)}},ensureVisible:function(b,a){this.doEnsureVisible(b,a)},scrollByDeltaY:function(b,a){this.getView().scrollBy(0,b,a)},scrollByDeltaX:function(b,a){this.getView().scrollBy(b,0,a)},afterCollapse:function(){this.saveScrollPos();Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){Ext.panel.Panel.prototype.afterExpand.apply(this,arguments);this.restoreScrollPos()},saveScrollPos:Ext.emptyFn,restoreScrollPos:Ext.emptyFn,onHeaderResize:function(){var a=this.view.getScrollable(),b;if(a&&a.isTouchScroller){b=a.getSize();if(b){a.setSize({x:this.headerCt.getTableWidth(),y:b.y})}}},onHeaderMove:function(e,f,b,c,d){var a=this;if(a.optimizedColumnMove===!1){a.view.refreshView()}else {a.view.moveColumn(c,d,b)}a.delayScroll()},onHeaderHide:function(b,c){var a=this.view;if(!b.childHideCount&&a.refreshCounter){a.refreshView()}},onHeaderShow:function(b,c){var a=this.view;if(a.refreshCounter){a.refreshView()}},onHeadersChanged:function(b,c){var a=this;if(a.rendered&&!a.reconfiguring){a.view.refreshView();a.delayScroll()}},delayScroll:function(){var a=this.view;if(a){this.scrollTask.delay(10,null,null,[a])}},onViewReady:function(){this.fireEvent('viewready',this)},onRestoreHorzScroll:function(){var a=this,b=a.scrollXPos;if(b){a.syncHorizontalScroll(a,!0)}},getScrollerOwner:function(){var a=this;if(!this.scrollerOwner){a=this.up('[scrollerOwner]')}return a},getLhsMarker:function(){var a=this;return a.lhsMarker||(a.lhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getRhsMarker:function(){var a=this;return a.rhsMarker||(a.rhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},updateHeaderBorders:function(a){this[a?'removeCls':'addCls'](this.noHeaderBordersCls)},getNavigationModel:function(){return this.getView().getNavigationModel()},getSelectionModel:function(){return this.getView().getSelectionModel()},getScrollTarget:function(){var a=this.getScrollerOwner().query('tableview');return a[a.length-1]},syncHorizontalScroll:function(e,b){var a=this,c=a.view.getScrollX(),d;b=b===!0;if(a.rendered&&(b||c!==a.scrollXPos)){if(b){d=a.getScrollTarget();d.setScrollX(c)}a.headerCt.setScrollX(c);a.scrollXPos=c}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(b,d){var a=this,c=a.getView();if(b){a.store=b;if(c.store!==b){c.bindStore(b,!1)}a.mon(b,{load:a.onStoreLoad,scope:a});a.storeRelayers=a.relayEvents(b,['filterchange','groupchange'])}else {a.unbindStore()}},unbindStore:function(){var a=this,b=a.store,c;if(b){b.trackStateChanges=!1;a.store=null;a.mun(b,{load:a.onStoreLoad,scope:a});Ext.destroy(a.storeRelayers);c=a.view;if(c.store){c.bindStore(null)}}},setColumns:function(a){if(a.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,a)}},setStore:function(a){this.reconfigure(a);if(this.autoLoad&&!a.isEmptyStore&&!(a.loading||a.isLoaded())){a.load()}},reconfigure:function(b,c){var a=this,f=a.store,e=a.headerCt,i=a.lockable,h=e?e.items.getRange():a.columns,d=a.getView(),j,g;if(arguments.length===1&&Ext.isArray(b)){c=b;b=null}if(c){c=Ext.Array.slice(c)}a.reconfiguring=!0;if(b){b=Ext.StoreManager.lookup(b)}a.fireEvent('beforereconfigure',a,b,c,f,h);Ext.suspendLayouts();if(i){a.reconfigureLockable(b,c)}else {j=d.blockRefresh;d.blockRefresh=!0;if(b&&b!==f){a.unbindStore();a.bindStore(b)}if(c){delete a.scrollXPos;e.removeAll();e.add(c)}d.blockRefresh=j;g=d.refreshCounter}Ext.resumeLayouts(!0);if(i){a.afterReconfigureLockable()}else {if(d.refreshCounter===g){d.refreshView()}}a.fireEvent('reconfigure',a,b,c,f,h);delete a.reconfiguring},beforeDestroy:function(){var a=this,b=a.scrollTask;if(b){b.cancel();a.scrollTask=null}Ext.destroy(a.focusEnterLeaveListeners);Ext.panel.Panel.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.lockable){a.destroyLockable()}a.unbindStore();Ext.panel.Panel.prototype.onDestroy.call(this);a.columns=a.storeRelayers=a.columnManager=a.visibleColumnManager=null},destroy:function(){var a=this;Ext.panel.Panel.prototype.destroy.call(this);if(a.destroyed){a.view=a.selModel=a.headerCt=null}},privates:{initFocusableElement:function(){},doEnsureVisible:function(a,c){if(this.lockable){return this.ensureLockedVisible(a,c)}if(typeof a!=='number'&&!a.isEntity){a=this.store.getById(a)}var b=this,d=b.getView(),f=d.getNode(a),g,h,k,j,m,l,i,e,n;if(c){g=c.callback;h=c.scope;k=c.animate;j=c.highlight;m=c.select;l=c.focus;e=c.column}if(b.deferredEnsureVisible){b.deferredEnsureVisible.destroy()}if(!d.componentLayoutCounter){b.deferredEnsureVisible=d.on({resize:b.doEnsureVisible,args:Ext.Array.slice(arguments),scope:b,single:!0,destroyable:!0});return}if(typeof e==='number'){e=b.ownerGrid.getVisibleColumnManager().getColumns()[e]}if(f){i=d.getScrollable();if(e){n=Ext.fly(f).selectNode(e.getCellSelector())}if(i){i.scrollIntoView(n||f,!!e,k,j)}if(!a.isEntity){a=d.getRecord(f)}if(m){d.getSelectionModel().select(a)}if(l){d.getNavigationModel().setPosition(a,0)}Ext.callback(g,h||b,[!0,a,f])}else {if(d.bufferedRenderer){d.bufferedRenderer.scrollTo(a,{animate:k,highlight:j,select:m,focus:l,column:e,callback:function(f,e,d){Ext.callback(g,h||b,[!0,e,d])}})}else {Ext.callback(g,h||b,[!1,null])}}},getFocusEl:function(){return this.getView().getFocusEl()},setActionableMode:function(b,c){var a=this.ownerGrid;if(!a.destroying&&a.view.setActionableMode(b,c)!==!1){a.fireEvent('actionablemodechange',b);a[b?'addCls':'removeCls'](a.actionableModeCls);return !0}}}},1,['tablepanel'],['component','box','container','panel','tablepanel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0},['widget.tablepanel'],0,[Ext.panel,'Table'],0);Ext.define('Ext.theme.neptune.panel.Table',{override:'Ext.panel.Table',lockableBodyBorder:!0,initComponent:function(){var a=this;(arguments.callee.$previous||Ext.panel.Panel.prototype.initComponent).call(this);if(!a.hasOwnProperty('bodyBorder')&&!a.hideHeaders&&(a.lockableBodyBorder||!a.lockable)){a.bodyBorder=!0}}});Ext.cmd.derive('Ext.grid.ColumnLayout',Ext.layout.container.HBox,{type:'gridcolumn',firstHeaderCls:'x-column-header-first',lastHeaderCls:'x-column-header-last',initLayout:function(){Ext.layout.container.HBox.prototype.initLayout.call(this);if(this.scrollbarWidth===undefined){this.self.prototype.scrollbarWidth=Ext.getScrollbarSize().width}},beginLayout:function(d){var b=this,j=b.owner,e=b.firstHeaderCls,f=b.lastHeaderCls,h=[e,f],i=b.getVisibleItems(),g=i.length,c,a;Ext.layout.container.HBox.prototype.beginLayout.call(this,d);for(c=0;c0){b=this.getColumns()[a-1]}return b},getNextSibling:function(c){var a=this.getHeaderIndex(c),b;if(a!==-1){b=this.getColumns()[a+1]}return b||null},getFirst:function(){var a=this.getColumns();return a.length>0?a[0]:null},getLast:function(){var a=this.getColumns(),b=a.length;return b>0?a[b-1]:null},getHeaderByDataIndex:function(d){var c=this.getColumns(),e=c.length,a,b;for(a=0;a=d.left&&e=n.getMaxPosition().y-c.all.last(!0).offsetHeight){b.rowIdx--}e=Math.min(b.rowIdx,h.getCount()-1);f=Math.min(f,j.getColumns().length);d=h.getAt(e);i=j.getColumns()[f]}}else {if(k){d=e=null}else {if(g==null){g=a.lastFocused?a.lastFocused.column:0}if(typeof b==='number'){e=Math.max(Math.min(b,h.getCount()-1),0);d=h.getAt(b)}else {if(b.isEntity){d=b;e=h.indexOf(d)}else {if(b.tagName){d=c.getRecord(b);e=h.indexOf(d);if(e===-1){d=null}}else {if(p){return}k=!0;d=e=null}}}}if(d){if(e===-1){a.recordIndex=-1;d=h.getAt(0);e=0;g=null}if(g==null){if(!(i=a.column)){f=0;i=j.getColumns()[0]}}else {if(typeof g==='number'){i=j.getColumns()[g];f=g}else {i=g;f=j.indexOf(g)}}}else {k=!0;i=f=null}}if(e===a.recordIndex&&f===a.columnIndex&&c===a.position.view){return a.focusPosition(a.position)}if(a.cell){a.cell.removeCls(a.focusCls)}a.previousRecordIndex=a.recordIndex;a.previousRecord=a.record;a.previousItem=a.item;a.previousCell=a.cell;a.previousColumn=a.column;a.previousColumnIndex=a.columnIndex;a.previousPosition=a.position.clone();a.selectionStart=m.selectionStart;a.position.setAll(c,a.recordIndex=e,a.columnIndex=f,a.record=d,a.column=i);if(k){a.item=a.cell=null}else {a.focusPosition(a.position,o)}if(!q){m.fireEvent('focuschange',m,a.previousRecord,a.record);c.fireEvent('rowfocus',a.record,a.item,a.recordIndex);c.fireEvent('cellfocus',a.record,a.cell,a.position)}if(l&&!o&&a.cell!==a.previousCell){a.fireNavigateEvent(l)}},focusPosition:function(b){var a=this,c,d;a.item=a.cell=null;if(b&&b.record&&b.column){c=b.view;if(b.rowElement){d=a.item=b.rowElement}else {d=c.getRowByRecord(b.record)}if(d){a.cell=b.cellElement||Ext.fly(d).down(b.column.getCellSelector(),!0);if(a.cell){a.cell=new Ext.dom.Fly(a.cell);c.lastFocused=a.lastFocused=a.position.clone();a.focusItem(a.cell);c.focusEl=a.cell}else {a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null}}else {d=c.dataSource.indexOf(b.record);a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null;if(d!==-1&&c.bufferedRenderer){a.lastKeyEvent=null;c.bufferedRenderer.scrollTo(d,!1,a.afterBufferedScrollTo,a)}}}},focusItem:function(a){a.addCls(this.focusCls);a.focus()},getCell:function(){return this.cell},getPosition:function(f){var c=this,a=c.position,b,e,d;if(a.record&&a.column){if(f){return a}e=a.view;d=e.dataSource;b=d.indexOf(a.record);if(b===-1){b=a.rowIdx;if(!(a.record=d.getAt(b))){b=-1}}if(b===-1||e.getVisibleColumnManager().indexOf(a.column)===-1){a.setAll();c.record=c.column=c.recordIndex=c.columnIndex=null}else {return a}}return null},getLastFocused:function(){var c=this,b,a=c.lastFocused;if(a&&a.record&&a.column){b=a.view;if(b.dataSource.indexOf(a.record)!==-1&&b.getVisibleColumnManager().indexOf(a.column)!==-1){return a}}},onKeyTab:function(a){var e=!a.shiftKey,d=a.position.clone(),g=d.view,f=a.position.cellElement,b=Ext.fly(f).findTabbableElements(),c,i=g.ownerGrid.actionables,j=i.length,h;a.preventDefault();c=b[Ext.Array.indexOf(b,a.target)+(e?1:-1)];while(!c&&(f=f[e?'nextSibling':'previousSibling'])){d.setColumn(g.getHeaderByCell(f));for(h=0;hj.height}a.setProp('viewOverflowY',i)}},measureContentHeight:function(e){var d=this.owner,b=d.body.dom,c=d.emptyEl,a=0;if(c){a+=c.offsetHeight}if(b){a+=b.offsetHeight}if(e.headerContext.state.boxPlan.tooNarrow){a+=Ext.getScrollbarSize().height}return a},flushColumnWidths:function(){var a=this,i=a.layout,d=a.ownerContext,g=a.columnsChanged,h=d.target,j=g.length,b,c,e,f;if(d.state.columnFlusher!==a){return}for(c=0;c0){h+=b;Ext.fly(f[c].el).setHeight(a)}else {g-=b}}a=i.rowHeight+g;if(Ext.isIE9&&d.view.ownerGrid.rowLines){a--}if(d.rowHeight+h=c+d;a--){e[a]=e[a-d];e[a].setAttribute('data-recordIndex',a)}}b.endIndex=b.endIndex+d}else {b.startIndex=c;b.endIndex=c+d-1}for(a=0;ab.endIndex){delete d[a]}}while(a!==f);delete d[a]},getCount:function(){return this.count},slice:function(e,a){var d=this.elements,c=[],b;if(!a){a=this.endIndex}else {a=Math.min(this.endIndex,a-1)}for(b=e||this.startIndex;b<=a;b++){c.push(d[b])}return c},replaceElement:function(a,b,d){var e=this.elements,c=typeof a==='number'?a:this.indexOf(a);if(c>-1){b=Ext.getDom(b);if(d){a=e[c];a.parentNode.insertBefore(b,a);Ext.removeNode(a);b.setAttribute('data-recordIndex',c)}this.elements[c]=b}return this},indexOf:function(b){var c=this.elements,a;b=Ext.getDom(b);for(a=this.startIndex;a<=this.endIndex;a++){if(c[a]===b){return a}}return -1},removeRange:function(g,c,j){var a=this,e=a.elements,i=[],d,b,h,f;if(c==null){c=a.endIndex+1}else {c=Math.min(a.endIndex+1,c+1)}if(g==null){g=a.startIndex}h=c-g;for(b=g,f=c;b<=a.endIndex;b++,f++){d=e[b];if(b=b.startIndex&&f<=b.endIndex){a[a.length]=f}}Ext.Array.sort(a);e=a.length}else {if(ab.endIndex){return}e=1;a=[a]}for(d=g=a[0],c=0;d<=b.endIndex;d++,g++){if(c=b.startIndex){j=h[d]=h[g];j.setAttribute('data-recordIndex',d)}else {delete h[d]}}b.endIndex-=e;b.count-=e},scroll:function(i,t,m){var b=this,e=b.view,p=e.store,c=b.elements,r=i.length,q=e.getNodeContainer(),k=e.hasListeners.itemremove,s=e.hasListeners.itemadd,h=b.statics().range,a,d,o,j,l,n,f,g;if(!i.length){return}if(t===-1){if(m){if(k){f=[];g=[]}n=b.endIndex-m+1;if(h){h.setStartBefore(c[n]);h.setEndAfter(c[b.endIndex]);h.deleteContents();for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}else {for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];Ext.removeNode(d);if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}e.fireEvent('itemremove',f,n,g,e);b.endIndex-=m}if(i.length){l=e.bufferRender(i,b.startIndex-=r);j=l.children;for(a=0;a','{[view.renderTHead(values, out, parent)]}','{%','view.renderRows(values.rows, values.columns, values.viewStartIndex, out);','%}','{[view.renderTFoot(values, out, parent)]}','','{% ','view = columns = column = null;','%}',{definitions:'var view, tableCls, columns, i, len, column;',priority:0}],outerRowTpl:['','{%','this.nextTpl.applyOut(values, out, parent)','%}','',{priority:9999}],rowTpl:['{%','var dataRowCls = values.recordIndex === -1 ? "" : " x-grid-row";','%}','','{%','parent.view.renderCell(values, parent.record, parent.recordIndex, parent.rowIndex, xindex - 1, out, parent)','%}','','',{priority:0}],cellTpl:['{tdStyle}"',' tabindex="-1" data-columnid="{[values.column.getItemId()]}">','
    {style}" ','{cellInnerAttr:attributes}>{value}
    ','',{priority:0}],refreshSelmodelOnRefresh:!1,tableValues:{},rowValues:{itemClasses:[],rowClasses:[]},cellValues:{classes:['x-grid-cell x-grid-td']},constructor:function(a){if(a.grid.isTree){a.baseCls='x-tree-view'}Ext.view.View.prototype.constructor.call(this,a)},hasVariableRowHeight:function(b){var a=this;return a.variableRowHeight||a.store.isGrouped()||a.getVisibleColumnManager().hasVariableRowHeight()||!b&&a.lockingPartner&&a.lockingPartner.hasVariableRowHeight(!0)},initComponent:function(){var a=this;if(a.columnLines){a.addCls(a.grid.colLinesCls)}if(a.rowLines){a.addCls(a.grid.rowLinesCls)}a.body=new Ext.dom.Fly();a.body.id=a.id+'gridBody';if(!a.trackOver){a.overItemCls=null}a.headerCt.view=a;a.grid.view=a;a.initFeatures(a.grid);a.itemSelector=a.getItemSelector();a.all=new Ext.view.NodeCache(a);Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(a,f){var d=this,b=d.ownerGrid,e=a.type,c=d.disableSelection||b.disableSelection;if(!f){if(!(a&&a.isSelectionModel)){a=b.selModel||a}}if(a){if(a.isSelectionModel){a.allowDeselect=b.allowDeselect||a.selectionMode!=='SINGLE';a.locked=c}else {if(typeof a==='string'){a={type:a}}else {a.type=b.selType||a.selType||a.type||e}if(!a.mode){if(b.simpleSelect){a.mode='SIMPLE'}else {if(b.multiSelect){a.mode='MULTI'}}}a=Ext.Factory.selection(Ext.apply({allowDeselect:b.allowDeselect,locked:c},a))}}return a},updateSelectionModel:function(b,c){var a=this;if(c){c.un({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});Ext.destroy(a.selModelRelayer)}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});a.selModel=b},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(c,h,j){var b=this,m=j>1,e=m&&document.createRange?document.createRange():null,g=m&&!e?document.createDocumentFragment():null,l=h,p=b.getGridColumns().length,k=p-1,r=(b.firstCls||b.lastCls)&&(h===0||h===p||c===0||c===k),f,i,q,n,d,a,o;if(b.rendered&&h!==c){q=b.el.query(b.rowSelector);for(f=0,n=q.length;f=(a-1)*b&&d.endIndex<=a*b-1){c.get(a);return !1}},onViewScroll:function(a,b,c){if(!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,a,b,c)}},createRowElement:function(e,f,d){var a=this,c=a.renderBuffer,b=a.collectData([e],f);b.columns=d;a.tpl.overwrite(c,b);a.cleanupData();return Ext.fly(c).down(a.getNodeContainerSelector(),!0).firstChild},bufferRender:function(e,f){var c=this,a=c.renderBuffer,b,d=document.createRange?document.createRange():null;c.tpl.overwrite(a,c.collectData(e,f));c.cleanupData();Ext.fly(a).saveTabbableState({skipSelf:!0,includeHidden:!0});a=Ext.fly(a).down(c.getNodeContainerSelector(),!0);if(d){d.selectNodeContents(a);b=d.extractContents()}else {b=document.createDocumentFragment();while(a.firstChild){b.appendChild(a.firstChild)}}return {fragment:b,children:Ext.Array.toArray(b.childNodes)}},collectData:function(c,b){var a=this;a.rowValues.view=a;a.tableValues.view=a;a.tableValues.rows=c;a.tableValues.columns=null;a.tableValues.viewStartIndex=b;a.tableValues.touchScroll=a.touchScroll;a.tableValues.tableStyle='width:'+a.headerCt.getTableWidth()+'px';return a.tableValues},cleanupData:function(){var a=this.tableValues;a.view=a.columns=a.rows=this.rowValues.view=null},refreshSize:function(c){var a=this,b=a.getBodySelector();if(b){a.body.attach(a.el.down(b,!0))}if(!a.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.apply(this,arguments);if(c||a.hasVariableRowHeight()&&a.dataSource.getCount()){a.grid.updateLayout()}Ext.resumeLayouts(!0)}},clearViewEl:function(g){var a=this,b=a.all,i=a.getStore(),d,c,f,h=b.slice(),e=[];if(a.hasListeners.itemremove){for(d=b.startIndex;d<=b.endIndex;d++){e.push(i.getByInternalId(b.item(d,!0).getAttribute('data-recordId')))}}a.fireEvent('itemremove',e,b.startIndex,h,a);Ext.view.View.prototype.clearViewEl.call(this);c=Ext.fly(a.getNodeContainer());if(c&&!g){f=a.getTargetEl();if(f.dom!==c.dom){c.destroy()}}},getMaskTarget:function(){return this.ownerCt.body},statics:{getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},getRecord:function(a){if(this.store.destroyed){return}if(a.isModel){return a}a=this.getNode(a);if(a){return this.dataSource.getByInternalId(a.getAttribute('data-recordId'))}},indexOf:function(a){a=this.getNode(a);if(!a&&a!==0){return -1}return this.all.indexOf(a)},indexInStore:function(a){return a?this.dataSource.indexOf(this.getRecord(a)):-1},indexOfRow:function(a){var c=this.dataSource,b;if(a.isCollapsedPlaceholder){b=c.indexOfPlaceholder(a)}else {b=c.indexOf(a)}return b},renderRows:function(e,g,d,h){var b=this,a=b.rowValues,f=e.length,c;a.view=b;a.columns=g;a.rowRole=b.rowAriaRole;b.cellValues.cellRole=b.cellAriaRole;for(c=0;c');for(a=0;a')}d.push('')},renderRow:function(c,e,j){var a=this,k=e===-1,h=a.selectionModel,b=a.rowValues,d=b.itemClasses,g=b.rowClasses,l=a.itemCls,f,i=a.rowTpl;b.rowAttr={};b.record=c;b.recordId=c.internalId;b.recordIndex=a.store.indexOf(c);b.rowIndex=e;b.rowId=a.getRowId(c);b.itemCls=b.rowCls='';if(!b.columns){b.columns=a.ownerCt.getVisibleColumnManager().getColumns()}d.length=g.length=0;if(!k){d[0]=l;if(!a.ownerCt.disableSelection&&h.isRowSelected){if(h.isRowSelected(c)){d.push(a.selectedItemCls)}}if(a.stripeRows&&e%2!==0){d.push(a.altRowCls)}if(a.getRowClass){f=a.getRowClass(c,e,null,a.dataSource);if(f){g.push(f)}}}if(j){i.applyOut(b,j,a.tableValues)}else {return i.apply(b,a.tableValues)}},renderCell:function(b,f,j,n,m,p){var c=this,l,h=c.selectionModel,a=c.cellValues,d=a.classes,k=f.data[b.dataIndex],o=c.cellTpl,g,e,i=c.navigationModel.getPosition();a.record=f;a.column=b;a.recordIndex=j;a.rowIndex=n;a.columnIndex=a.cellIndex=m;a.align=b.align;a.innerCls=b.innerCls;a.tdCls=a.tdStyle=a.tdAttr=a.style='';a.unselectableAttr=c.enableTextSelection?'':'unselectable="on"';d[1]=b.getCellId();e=2;if(b.renderer&&b.renderer.call){l=c.ownerCt.columnManager.getHeaderIndex(b);g=b.renderer.call(b.usingDefaultRenderer?b:b.scope||c.ownerCt,k,a,f,j,l,c.dataSource,c);if(a.css){f.cssWarning=!0;a.tdCls+=' '+a.css;a.css=null}if(a.tdCls){d[e++]=a.tdCls}}else {g=k}a.value=g==null||g===''?b.emptyCellText:g;if(b.tdCls){d[e++]=b.tdCls}if(c.markDirty&&f.dirty&&f.isModified(b.dataIndex)){d[e++]=c.dirtyCls}if(b.isFirstVisible){d[e++]=c.firstCls}if(b.isLastVisible){d[e++]=c.lastCls}if(!c.enableTextSelection){d[e++]=c.unselectableCls}if(h&&(h.isCellModel||h.isSpreadsheetModel)&&h.isCellSelected(c,j,b)){d[e++]=c.selectedCellCls}if(i&&i.record.id===f.id&&i.column===b){d[e++]=c.focusedItemCls}d.length=e;a.tdCls=d.join(' ');o.applyOut(a,p);a.column=a.record=null},getRow:function(a){var b;if(!a&&a!==0||!this.rendered){return null}if(a.target){a=a.target}if(Ext.isString(a)){return Ext.fly(a).down(this.rowSelector,!0)}if(Ext.isNumber(a)){b=this.all.item(a);return b&&b.down(this.rowSelector,!0)}if(a.isModel){return this.getRowByRecord(a)}b=Ext.fly(a);if(b.is(this.itemSelector)){return this.getRowFromItem(b)}return b.findParent(this.rowSelector,this.getTargetEl())},getRowId:function(a){return this.id+'-record-'+a.internalId},constructRowId:function(a){return this.id+'-record-'+a},getNodeById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!1)},getRowById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!0)},getNodeByRecord:function(a){return this.retrieveNode(this.getRowId(a),!1)},getRowByRecord:function(a){return this.retrieveNode(this.getRowId(a),!0)},getRowFromItem:function(c){var b=Ext.getDom(c).tBodies[0].childNodes,d=b.length,a;for(a=0;a1){A=c._extData;j=a.createRowElement(d,a.indexOfRow(d),f);if(Ext.fly(c,'_internal').hasCls(u)){Ext.fly(j).addCls(u)}if(Ext.isIE9m&&c.mergeAttributes){c.mergeAttributes(j,!0)}else {o=j.attributes;H=o.length;for(l=0;l0){if(Ext.supports.ScrollWidthInlinePaddingBug){e+=c.getCellPaddingAfter(d[0])}if(c.columnLines){e+=Ext.fly(d[0].parentNode).getBorderWidth('lr')}}g.setWidth(1);b.textEl.setStyle({'text-overflow':'clip',display:'table-cell'});a=b.textEl.dom.offsetWidth+b.titleEl.getPadding('lr');b.textEl.setStyle({'text-overflow':'',display:''});for(;fh){return !1}if(d){b.view=d}b.setPosition(a,0)}else {b.navigate(+1)};break;case 'left':if(e.isFirstColumn()){a=d&&c.isNormalView?a:a-1;if(a<0){return !1}if(d){b.view=d;f=d.getVisibleColumnManager().getColumns()}b.setPosition(a,f[f.length-1])}else {b.navigate(-1)};break;case 'up':if(a===0){return !1}else {b.setRow(a-1)};break;case 'down':if(a===h){return !1}else {b.setRow(a+1)};break;}if(g&&g.call(j||c,b)!==!0){return !1}return b},walkRows:function(f,e){var i=this,j=i.dataSource,g=0,d=f,h,b=e<0?0:j.getCount()-1,c=b?1:-1,a=f;do{if(b?a>=b:a<=b){return d||b}a+=c;if((h=Ext.fly(i.getRow(a)))&&h.isVisible(!0)){g+=c;d=a}}while(g!==e);return a},walkRecs:function(h,g){var k=this,a=k.dataSource,i=0,e=h,j,c=g<0?0:(a.isBufferedStore?a.getTotalCount():a.getCount())-1,f=c?1:-1,b=a.indexOf(h),d;do{if(c?b>=c:b<=c){return e}b+=f;d=a.getAt(b);if(!d.isCollapsedPlaceholder&&(j=Ext.fly(k.getNodeByRecord(d)))&&j.isVisible(!0)){i+=f;e=d}}while(i!==g);return e},getFirstVisibleRowIndex:function(){var a=this,c=a.dataSource.isBufferedStore?a.dataSource.getTotalCount():a.dataSource.getCount(),b=a.indexOf(a.all.first())-1;do{b+=1;if(b===c){return}}while(!Ext.fly(a.getRow(b)).isVisible(!0));return b},getLastVisibleRowIndex:function(){var b=this,a=b.indexOf(b.all.last());do{a-=1;if(a===-1){return}}while(!Ext.fly(b.getRow(a)).isVisible(!0));return a},getHeaderCt:function(){return this.headerCt},getPosition:function(b,a){return (new Ext.grid.CellContext(this)).setPosition(b,a)},onDestroy:function(){var a=this,c=a.featuresMC,d,b;if(c){for(b=0,d=c.getCount();b=a.viewSize)){a.onReplace(e,d,[],c)}else {Ext.view.View.prototype.onAdd.apply(this,arguments)}b.setPendingStripe(d)},onRemove:function(f,d,e){var a=this,b=a.bufferedRenderer,c;if(a.rendered&&b&&a.dataSource.getCount()+d.length>=b.viewSize){c=a.saveFocusState();b.onReplace(f,e,d,[]);c()}else {Ext.view.View.prototype.onRemove.apply(this,arguments)}a.setPendingStripe(e)},saveFocusState:function(){var b=this,g=b.dataSource,c=b.actionableMode,d=b.getNavigationModel(),a=c?b.actionPosition:d.getPosition(!0),f,e;if(a){a=a.clone();if(c){b.ownerGrid.setActionableMode(!1)}b.el.dom.focus();d.setPosition();return function(){if(g.getCount()){f=Math.min(a.rowIdx,b.all.getCount()-1);e=Math.min(a.colIdx,b.getVisibleColumnManager().getColumns().length-1);a=(new Ext.grid.CellContext(b)).setPosition(g.contains(a.record)?a.record:f,e);if(c){b.ownerGrid.setActionableMode(!0,a)}else {b.cellFocused=!0;d.setPosition(a,null,null,null,!0)}}else {a.column.focus()}}}return Ext.emptyFn},onDataRefresh:function(c){var b=this,a=b.ownerCt;if(a&&a.isCollapsingOrExpanding===2){a.on('expand',b.onDataRefresh,b,{single:!0});return}Ext.view.View.prototype.onDataRefresh.call(this,c)},getViewRange:function(){var a=this;if(a.bufferedRenderer){return a.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(b){var a=this.stripeOnUpdate;if(a===null){a=b}else {a=Math.min(a,b)}this.stripeOnUpdate=a},onEndUpdate:function(){var b=this,a=b.stripeOnUpdate,c=b.all.startIndex;if(b.rendered&&(a||a===0)){if(a-1)&&!g;b=b+(c?1:-1)){o=n[b];e.setColumn(o);k=Ext.fly(d).down(e.column.getCellSelector());for(h=0;h=0&&!(b.isGroupHeader&&(!b.items||!b.items.length))&&h!==c){i=a.isGroupHeader?a.query(':not([hidden]):not([isGroupHeader])').length:1;if(h<=c&&i>1){c-=i}d.getRootHeaderCt().grid.view.moveColumn(h,c,i)}p.fireEvent('columnmove',e,a,h,c);e.isDDMoveInGrid=d.isDDMoveInGrid=!1;if(d.isGroupHeader&&!e.isGroupHeader){if(e!==d){a.savedFlex=a.flex;delete a.flex;a.width=o}}else {if(!e.isGroupHeader){if(a.savedFlex){a.flex=a.savedFlex;delete a.width}}}Ext.resumeLayouts(!0)}}},1,0,0,0,0,0,[Ext.grid.header,'DropZone'],0);Ext.cmd.derive('Ext.grid.plugin.HeaderReorderer',Ext.plugin.Abstract,{init:function(a){this.headerCt=a;a.on({boxready:this.onHeaderCtRender,single:!0,scope:this})},destroy:function(){var a=this;a.headerCt.un('boxready',a.onHeaderCtRender,a);Ext.destroy(a.dragZone,a.dropZone);a.headerCt=a.dragZone=a.dropZone=null;Ext.plugin.Abstract.prototype.destroy.call(this)},onHeaderCtRender:function(){var a=this;a.dragZone=new Ext.grid.header.DragZone(a.headerCt);a.dropZone=new Ext.grid.header.DropZone(a.headerCt);if(a.disabled){a.dragZone.disable()}},enable:function(){this.disabled=!1;if(this.dragZone){this.dragZone.enable()}},disable:function(){this.disabled=!0;if(this.dragZone){this.dragZone.disable()}}},0,0,0,0,['plugin.gridheaderreorderer'],0,[Ext.grid.plugin,'HeaderReorderer'],0);Ext.cmd.derive('Ext.grid.header.Container',Ext.container.Container,{border:!0,baseCls:'x-grid-header-ct',dock:'top',weight:100,defaultType:'gridcolumn',detachOnRemove:!1,defaultWidth:100,sortAscText:'Sort Ascending',sortDescText:'Sort Descending',sortClearText:'Clear Sort',columnsText:'Columns',headerOpenCls:'x-column-header-open',menuSortAscCls:'x-hmenu-sort-asc',menuSortDescCls:'x-hmenu-sort-desc',menuColsIcon:'x-cols-icon',blockEvents:!1,dragging:!1,sortOnClick:!0,enableFocusableContainer:!1,childHideCount:0,sortable:!0,enableColumnHide:!0,initComponent:function(){var a=this;a.plugins=a.plugins||[];a.defaults=a.defaults||{};if(!a.isColumn){if(a.enableColumnResize){a.resizer=new Ext.grid.plugin.HeaderResizer();a.plugins.push(a.resizer)}if(a.enableColumnMove){a.reorderer=new Ext.grid.plugin.HeaderReorderer();a.plugins.push(a.reorderer)}}if(a.isColumn&&!a.isGroupHeader){if(!a.items||a.items.length===0){a.isContainer=a.isFocusableContainer=!1;a.focusable=!0;a.layout={type:'container',calculate:Ext.emptyFn}}}else {a.layout=Ext.apply({type:'gridcolumn',align:'stretch'},a.initialConfig.layout);a.defaults.columnLines=a.columnLines;if(!a.isGroupHeader){a.isRootHeader=!0;if(!a.hiddenHeaders){a.enableFocusableContainer=!0;a.ariaRole='rowgroup'}a.columnManager=new Ext.grid.ColumnManager(!1,a);a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);if(a.grid){a.grid.columnManager=a.columnManager;a.grid.visibleColumnManager=a.visibleColumnManager}}else {a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);a.columnManager=new Ext.grid.ColumnManager(!1,a)}}a.menuTask=new Ext.util.DelayedTask(a.updateMenuDisabledState,a);Ext.container.Container.prototype.initComponent.call(this)},insertNestedHeader:function(d){var b=this,e=d.ownerCt,f=b.ownerCt,c=f.layout.owner,a;if(e){if(b.isGroupHeader&&!f.isNestedParent){a=c.items.indexOf(b)}e.remove(d,!1)}if(a===undefined){a=c.items.indexOf(b)}c.insert(a,d)},isNested:function(){return !!this.getRootHeaderCt().down('[isNestedParent]')},isNestedGroupHeader:function(){var a=this,b=a.getRefOwner().query('>:not([hidden])');return b.length===1&&b[0]===a},maybeShowNestedGroupHeader:function(){var a=this.items,b;if(a&&a.length===1&&(b=a.getAt(0))&&b.hidden){b.show()}},setNestedParent:function(a){a.isNestedParent=!1;a.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&a.ownerCt.items.length===1)},initEvents:function(){var a=this,b,c;Ext.container.Container.prototype.initEvents.call(this);if(!a.isColumn&&!a.isGroupHeader){b=a.onHeaderCtEvent;c={click:b,dblclick:b,contextmenu:b,mouseover:a.onHeaderCtMouseOver,mouseout:a.onHeaderCtMouseOut,scope:a};if(Ext.supports.Touch){c.longpress=a.onHeaderCtLongPress}a.mon(a.el,c)}},onHeaderCtEvent:function(a,g){var c=this,f=c.getHeaderElByEvent(a),b,e,d;if(c.longPressFired){c.longPressFired=!1;return}if(f&&!c.blockEvents){b=Ext.getCmp(f.id);if(b){e=b[b.clickTargetName];if(!b.isGroupHeader&&!b.isContainer||a.within(e)){if(a.type==='click'||a.type==='tap'){d=b.onTitleElClick(a,e,c.sortOnClick);if(d){c.onHeaderTriggerClick(d,a,a.pointerType==='touch'?d.el:d.triggerEl)}else {c.onHeaderClick(b,a,g)}}else {if(a.type==='contextmenu'){c.onHeaderContextMenu(b,a,g)}else {if(a.type==='dblclick'&&b.resizable){b.onTitleElDblClick(a,e.dom)}}}}}}},blockNextEvent:function(){this.blockEvents=!0;Ext.asap(this.unblockEvents,this)},unblockEvents:function(){this.blockEvents=!1},onHeaderCtMouseOver:function(b,e){var c,a,d;if(!b.within(this.el,!0)){c=b.getTarget('.'+Ext.grid.column.Column.prototype.baseCls);a=c&&Ext.getCmp(c.id);if(a){d=a[a.clickTargetName];if(b.within(d)){a.onTitleMouseOver(b,d.dom)}}}},onHeaderCtMouseOut:function(c,g){var f='.'+Ext.grid.column.Column.prototype.baseCls,d=c.getTarget(f),e=c.getRelatedTarget(f),a,b;if(d!==e){if(d){a=Ext.getCmp(d.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOut(c,b.dom)}}if(e){a=Ext.getCmp(e.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOver(c,b.dom)}}}},onHeaderCtLongPress:function(d){var a=this,b=a.getHeaderElByEvent(d),c=Ext.getCmp(b.id);if(!c.menuDisabled){a.longPressFired=!0;a.showMenuBy(d,b,c)}},getHeaderElByEvent:function(a){return a.getTarget('.'+Ext.grid.column.Column.prototype.baseCls)},isLayoutRoot:function(){if(this.hiddenHeaders){return !1}return Ext.container.Container.prototype.isLayoutRoot.call(this)},getRootHeaderCt:function(){var a=this;return a.isRootHeader?a:a.up('[isRootHeader]')},onDestroy:function(){var a=this;if(a.menu){a.menu.un('hide',a.onMenuHide,a)}a.menuTask.cancel();Ext.container.Container.prototype.onDestroy.call(this);Ext.destroy(a.visibleColumnManager,a.columnManager,a.menu);a.columnManager=a.visibleColumnManager=null},applyColumnsState:function(h,n){if(!h||!h.length){return}var f=this,m=f.items.items,o=m.length,b=0,i=h.length,g,e,a,d,k=!1,c=[],l={},j=[];for(g=0;g=a.visibleFromIdx){b++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(a.isGroupHeader){c=a.visibleColumnManager.getColumns().length}d.onHeaderMoved(a,c,a.visibleFromIdx,b)},maybeContinueRemove:function(){var a=this;return a.isGroupHeader&&!a.applyingState&&!a.isNestedParent&&a.ownerCt&&!a.items.getCount()},onRemove:function(b,c){var a=this,d=a.ownerCt,e=b.lastHiddenHeader;Ext.container.Container.prototype.onRemove.call(this,b,c);if(!a.destroying){if(!a.isDDMoveInGrid){a.onHeadersChanged(b,!1)}if(a.maybeContinueRemove()){if(b.rendered){a.detachComponent(b)}Ext.suspendLayouts();d.remove(a);Ext.resumeLayouts(!0)}}},onHeadersChanged:function(c,d){var b,a=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(a){a.onColumnsChanged();if(!c.isGroupHeader){b=a.ownerCt;if(b&&!d){b.onHeadersChanged(a,c)}}}},onHeaderMoved:function(d,f,c,e){var a=this,b=a.ownerCt;if(a.rendered){if(b&&b.onHeaderMove){b.onHeaderMove(a,d,f,c,e)}a.fireEvent('columnmove',a,d,c,e)}},onColumnsChanged:function(){var a=this,b=a.menu,c,d;if(a.rendered){a.fireEvent('columnschanged',a);if(b&&(c=b.child('#columnItemSeparator'))){d=b.child('#columnItem');c.destroy();d.destroy()}}},lookupComponent:function(b){var a=Ext.container.Container.prototype.lookupComponent.apply(this,arguments);if(!a.isGroupHeader&&a.width===undefined&&!a.flex){a.width=this.defaultWidth}return a},setSortState:function(){var e=this.up('[store]').store,d=this.visibleColumnManager.getColumns(),f=d.length,c,b,a;for(c=0;cgridcolumn[hideable]'),g=e.length,d;for(;cj.el.dom.clientHeight?Ext.getScrollbarSize().width:0),n=0,e=k.getVisibleGridColumns(),o=b.hidden,f,c,a,g,d;function getTotalFlex(){for(c=0,f=e.length;cg){b.width=g;l=!0}else {b.width=d;h-=d+m;getTotalFlex()}applyWidth();Ext.resumeLayouts(!0)},autoSizeColumn:function(a){var b=this.view;if(b){b.autoSizeColumn(a);if(this.forceFit){this.applyForceFit(a)}}},getRefItems:function(b){var a=Ext.container.Container.prototype.getRefItems.call(this,b);if(this.menu){a.push(this.menu)}return a},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},createFocusableContainerKeyNav:function(b){var a=this;return new Ext.util.KeyNav(b,{scope:a,down:a.showHeaderMenu,left:a.onFocusableContainerLeftKey,right:a.onFocusableContainerRightKey,home:a.onHomeKey,end:a.onEndKey,space:a.onHeaderActivate,enter:a.onHeaderActivate})},onHomeKey:function(a){return this.focusChild(null,!0,a)},onEndKey:function(a){return this.focusChild(null,!1,a)},showHeaderMenu:function(b){var a=this.getFocusableFromEvent(b);if(a&&a.isColumn&&a.triggerEl){this.onHeaderTriggerClick(a,b,a.triggerEl)}},onHeaderActivate:function(d){var a=this.getFocusableFromEvent(d),c,b;if(a&&a.isColumn){c=a.getView();if(a.sortable&&this.sortOnClick){b=c.getNavigationModel().getLastFocused();a.toggleSortState();if(b){c.ownerCt.ensureVisible(b.record)}}this.onHeaderClick(a,d,a.el)}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {a.focus()}}}},0,['headercontainer'],['component','box','container','headercontainer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0},['widget.headercontainer'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.grid.header,'Container'],0);Ext.cmd.derive('Ext.grid.column.Column',Ext.grid.header.Container,{alternateClassName:'Ext.grid.Column',config:{triggerVisible:!1,sorter:null},baseCls:'x-column-header',hoverCls:'x-column-header-over',ariaRole:'columnheader',enableFocusableContainer:!1,sortState:null,possibleSortStates:['ASC','DESC'],ariaSortStates:{ASC:'ascending',DESC:'descending'},childEls:['titleEl','triggerEl','textEl','textContainerEl'],headerWrap:!1,renderTpl:['','{%this.renderContainer(out,values)%}'],dataIndex:null,text:' ',menuText:null,emptyCellText:' ',sortable:!0,resizable:!0,hideable:!0,menuDisabled:!1,renderer:!1,align:'left',draggable:!0,tooltipType:'qtip',initDraggable:Ext.emptyFn,tdCls:'',producesHTML:!0,ignoreExport:!1,isHeader:!0,isColumn:!0,tabIndex:-1,ascSortCls:'x-column-header-sort-ASC',descSortCls:'x-column-header-sort-DESC',componentLayout:'columncomponent',groupSubHeaderCls:'x-group-sub-header',groupHeaderCls:'x-group-header',clickTargetName:'titleEl',detachOnRemove:!0,initResizable:Ext.emptyFn,rendererNames:{column:'renderer',edit:'editRenderer',summary:'summaryRenderer'},formatterNames:{column:'formatter',edit:'editFormatter',summary:'summaryFormatter'},initComponent:function(){var a=this;if(!a.rendererScope){a.rendererScope=a.scope}if(a.header!=null){a.text=a.header;a.header=null}if(a.cellWrap){a.tdCls=(a.tdCls||'')+' x-wrap-cell'}if(a.columns!=null){a.isGroupHeader=!0;a.ariaRole='presentation';a.items=a.columns;a.columns=a.flex=a.width=null;a.cls=(a.cls||'')+' '+a.groupHeaderCls;a.sortable=a.resizable=!1;a.align='center'}else {if(a.flex){a.minWidth=a.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}a.addCls('x-column-header-align-'+a.align);a.setupRenderer();a.setupRenderer('edit');a.setupRenderer('summary');Ext.grid.header.Container.prototype.initComponent.apply(this,arguments)},onAdded:function(e,g,f){var a=this,c,d,b;Ext.grid.header.Container.prototype.onAdded.call(this,e,g,f);if(!a.headerId){d=a.up('tablepanel');b=d?d.ownerGrid:a.getRootHeaderCt();b.headerCounter=(b.headerCounter||0)+1;a.headerId='h'+b.headerCounter}if(!a.stateId){a.stateId=a.initialConfig.id||a.headerId}c=a.getSorter();if(c&&!c.initialConfig.id){c.setId((a.dataIndex||a.stateId)+'-sorter')}},applySorter:function(a){return this.getRootHeaderCt().up('tablepanel').store.getData().getSorters().decodeSorter(a)},bindFormatter:function(a){var b=this;return function(c){return a.format(c,a.scope||b.rendererScope||b.resolveListenerScope())}},bindRenderer:function(b){var a=this;a.hasCustomRenderer=!0;return function(){return Ext.callback(b,a.rendererScope,arguments,0,a)}},setupRenderer:function(c){c=c||'column';var a=this,b=a[a.formatterNames[c]],d=a[a.rendererNames[c]],f=c==='column',e,g;if(!b){if(d){if(typeof d==='string'){d=a[a.rendererNames[c]]=a.bindRenderer(d);g=!0}if(f){a.hasCustomRenderer=g||d.length>1}}else {if(f&&a.defaultRenderer){a.renderer=a.defaultRenderer;a.usingDefaultRenderer=!0}}}else {e=b.indexOf('this.')===0;if(e){b=b.substring(5)}b=Ext.app.bind.Template.prototype.parseFormat(b);a[a.formatterNames[c]]=null;if(e){b.scope=null}a[a.rendererNames[c]]=a.bindFormatter(b)}},getView:function(){var a=this.getRootHeaderCt();if(a){return a.view}},onFocusLeave:function(a){Ext.grid.header.Container.prototype.onFocusLeave.call(this,a);if(this.activeMenu){this.activeMenu.hide()}},initItems:function(){var a=this;Ext.grid.header.Container.prototype.initItems.apply(this,arguments);if(a.isGroupHeader){if(a.config.hidden||!a.hasVisibleChildColumns()){a.hide()}}},hasVisibleChildColumns:function(){var c=this.items.items,d=c.length,a,b;for(a=0;agridcolumn:not([hidden]):not([menuDisabled])');c=a.length;if(Ext.Array.contains(a,b.hideCandidate)){c--}if(c){return !1}b.hideCandidate=this},isLockable:function(){var a={result:this.lockable!==!1};if(a.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[a])}return a.result},isLocked:function(){return this.locked||!!this.up('[isColumn][locked]','[isRootHeader]')},hasMultipleVisibleChildren:function(a){if(!this.isXType('headercontainer')){a.result=!1;return !1}if(this.query('>gridcolumn:not([hidden])').length>1){return !1}},hide:function(){var a=this,b=a.getRootHeaderCt(),c=a.getRefOwner();if(c.constructing){Ext.grid.header.Container.prototype.hide.call(this);return a}if(a.rendered&&!a.isVisible()){return a}if(b.forceFit){a.visibleSiblingCount=b.getVisibleGridColumns().length-1;if(a.flex){a.savedWidth=a.getWidth();a.flex=null}}b.beginChildHide();Ext.suspendLayouts();if(c.isGroupHeader){if(a.isNestedGroupHeader()){c.hide()}if(a.isSubHeader&&!a.isGroupHeader&&c.query('>gridcolumn:not([hidden])').length===1){c.lastHiddenHeader=a}}Ext.grid.header.Container.prototype.hide.call(this);b.endChildHide();b.onHeaderHide(a);Ext.resumeLayouts(!0);return a},show:function(){var a=this,c=a.getRootHeaderCt(),b=a.getRefOwner();if(a.isVisible()){return a}if(b.isGroupHeader){b.lastHiddenHeader=null}if(a.rendered){if(c.forceFit){c.applyForceFit(a)}}Ext.suspendLayouts();if(a.isSubHeader&&b.hidden){b.show(!1,!0)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(a.isGroupHeader){a.maybeShowNestedGroupHeader()}b=a.getRootHeaderCt();if(b){b.onHeaderShow(a)}Ext.resumeLayouts(!0);return a},shouldUpdateCell:function(d,b){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(b){var e=b.length,a,c;for(a=0;aActions',ignoreExport:!0,sortable:!1,innerCls:'x-grid-cell-inner-action-col',actionIconCls:'x-action-col-icon',constructor:function(g){var a=this,b=Ext.apply({},g),d=b.items||a.items||[a],e,c,f;a.origRenderer=b.renderer||a.renderer;a.origScope=b.scope||a.scope;a.renderer=a.scope=b.renderer=b.scope=null;b.items=null;Ext.grid.column.Column.prototype.constructor.call(this,b);a.items=d;for(c=0,f=d.length;c':'>')}return h},updater:function(e,d,c,f,b){var a={};Ext.fly(e).addCls(a.tdCls).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(d,a,c,null,null,b,f)},enableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!1;b.up('tablepanel').el.select('.x-action-col-'+a).removeCls(b.disabledCls);if(!c){b.fireEvent('enable',b)}},disableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!0;b.up('tablepanel').el.select('.x-action-col-'+a).addCls(b.disabledCls);if(!c){b.fireEvent('disable',b)}},beforeDestroy:function(){this.renderer=this.items=null;return Ext.grid.column.Column.prototype.beforeDestroy.apply(this,arguments)},processEvent:function(f,g,n,h,i,d,l,o){var b=this,c=d.getTarget(),e=f==='keydown'&&d.getKey(),m,a,j,k=Ext.fly(n);d.stopSelection=!e&&b.stopSelection;if(e&&(c===n||!k.contains(c))){c=k.query('.'+b.actionIconCls,!0);if(c.length===1){c=c[0]}else {return}}if(c&&(m=c.className.match(b.actionIdRe))){a=b.items[parseInt(m[1],10)];j=a.disabled||(a.isDisabled?a.isDisabled.call(a.scope||b.origScope||b,g,h,i,a,l):!1);if(a&&!j){if(f==='mousedown'&&!b.getView().actionableMode){d.preventDefault()}else {if(f==='click'||(e===d.ENTER||e===d.SPACE)){Ext.callback(a.handler||b.handler,a.scope||b.origScope,[g,h,i,a,d,l,o],undefined,b);if(!g.el.contains(Ext.Element.getActiveElement())){return !1}}}}}return Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)},cascade:function(b,a){b.call(a||this,this)},getRefItems:function(){return []},privates:{getFocusables:function(){return []},shouldUpdateCell:function(){return 2}}},1,['actioncolumn'],['component','box','container','headercontainer','gridcolumn','actioncolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'actioncolumn':!0},['widget.actioncolumn'],0,[Ext.grid.column,'Action',Ext.grid,'ActionColumn'],0);Ext.cmd.derive('Ext.grid.column.Check',Ext.grid.column.Column,{alternateClassName:['Ext.ux.CheckColumn','Ext.grid.column.CheckColumn'],align:'center',ignoreExport:!0,stopSelection:!0,tdCls:'x-grid-cell-checkcolumn',innerCls:'x-grid-cell-inner-checkcolumn',clickTargetName:'el',defaultFilterType:'boolean',constructor:function(){this.scope=this;Ext.grid.column.Column.prototype.constructor.apply(this,arguments)},processEvent:function(h,n,k,e,m,b,g,l){var a=this,d=h==='keydown'&&b.getKey(),f=h==='mousedown',j=a.disabled,i,c;b.stopSelection=!d&&a.stopSelection;if(!j&&(f||(d===b.ENTER||d===b.SPACE))){c=!a.isRecordChecked(g);if(a.fireEvent('beforecheckchange',a,e,c)!==!1){a.setRecordCheck(g,c,k,l,b);a.fireEvent('checkchange',a,e,c);if(f&&!a.getView().actionableMode){b.preventDefault()}}}else {i=Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)}return i},onEnable:function(){Ext.grid.column.Column.prototype.onEnable.apply(this,arguments);this._setDisabled(!1)},onDisable:function(){this._setDisabled(!0)},_setDisabled:function(d){var b=this,c=b.disabledCls,a;a=b.up('tablepanel').el.select(b.getCellSelector());if(d){a.addCls(c)}else {a.removeCls(c)}},defaultRenderer:function(d,c){var a='x-',b=a+'grid-checkcolumn';if(this.disabled){c.tdCls+=' '+this.disabledCls}if(d){b+=' '+a+'grid-checkcolumn-checked'}return '
    '},isRecordChecked:function(a){var b=this.property;if(b){return a[b]}return a.get(this.dataIndex)},setRecordCheck:function(c,a,e,f,g){var b=this,d=b.property;if(d){c[d]=a;b.updater(e,a)}else {c.set(b.dataIndex,a)}},updater:function(a,b){a=Ext.fly(a);a[this.disabled?'addCls':'removeCls'](this.disabledCls);Ext.fly(a.down(this.getView().innerSelector,!0).firstChild)[b?'addCls':'removeCls']('x-grid-checkcolumn-checked')}},1,['checkcolumn'],['component','box','container','headercontainer','gridcolumn','checkcolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'checkcolumn':!0},['widget.checkcolumn'],0,[Ext.grid.column,'Check',Ext.ux,'CheckColumn',Ext.grid.column,'CheckColumn'],0);Ext.cmd.derive('Ext.grid.column.Number',Ext.grid.column.Column,{alternateClassName:'Ext.grid.NumberColumn',defaultFilterType:'number',format:'0,000.00',producesHTML:!1,defaultRenderer:function(a){return Ext.util.Format.number(a,this.format)},updater:function(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Number.prototype.defaultRenderer.call(this,a)}},0,['numbercolumn'],['component','box','container','headercontainer','gridcolumn','numbercolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'numbercolumn':!0},['widget.numbercolumn'],0,[Ext.grid.column,'Number',Ext.grid,'NumberColumn'],0);Ext.cmd.derive('Ext.grid.column.RowNumberer',Ext.grid.column.Column,{alternateClassName:'Ext.grid.RowNumberer',isRowNumberer:!0,text:' ',width:23,sortable:!1,draggable:!1,autoLock:!0,lockable:!1,align:'right',producesHTML:!1,ignoreExport:!0,constructor:function(b){var a=this;a.width=a.width;Ext.grid.column.Column.prototype.constructor.apply(this,arguments);a.sortable=!1;a.scope=a},resizable:!1,hideable:!1,menuDisabled:!0,dataIndex:'',cls:'x-row-numberer',tdCls:'x-grid-cell-row-numberer x-grid-cell-special',innerCls:'x-grid-cell-inner-row-numberer',rowspan:undefined,defaultRenderer:function(j,b,f,i,h,a,g){var c=this.rowspan,e=a.currentPage,d=g.store.indexOf(f);if(b&&c){b.tdAttr='rowspan="'+c+'"'}if(e>1){d+=(e-1)*a.pageSize}return d+1},updater:function(d,c,b,e,a){Ext.fly(d).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(c,null,b,null,null,a,e)}},1,['rownumberer'],['component','box','container','headercontainer','gridcolumn','rownumberer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'rownumberer':!0},['widget.rownumberer'],0,[Ext.grid.column,'RowNumberer',Ext.grid,'RowNumberer'],0);Ext.define('Ext.theme.neptune.grid.column.RowNumberer',{override:'Ext.grid.column.RowNumberer',width:25});Ext.cmd.derive('Ext.grid.column.Widget',Ext.grid.column.Column,{config:{defaultWidgetUI:{}},ignoreExport:!0,sortable:!1,onWidgetAttach:null,preventUpdate:!0,stopSelection:!0,initComponent:function(){var b=this,a;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments);a=b.widget;b.widget=a=Ext.apply({},a);if(!a.ui){a.ui=b.getDefaultWidgetUI()[a.xtype]||'default'}b.isFixedSize=Ext.isNumber(a.width)},processEvent:function(c,d,h,e,f,b,g,i){var a;if(this.stopSelection&&c==='click'){a=b.getTarget(d.innerSelector);if(a&&a!==b.target){b.stopSelection=!0}}},beforeRender:function(){var a=this,b=a.tdCls,c;a.listenerScopeFn=function(b){if(b==='this'){return this}return a.resolveListenerScope(b)};a.liveWidgets={};a.cachedStyles={};a.freeWidgetStack=[c=a.getFreeWidget()];b=b?b+' ':'';a.tdCls=b+c.getTdCls();a.setupViewListeners(a.getView());Ext.grid.column.Column.prototype.beforeRender.call(this)},afterRender:function(){var a=this.getView();Ext.grid.column.Column.prototype.afterRender.call(this);if(a&&a.viewReady&&!a.ownerGrid.reconfiguring){this.onViewRefresh(a,a.getViewRange())}},defaultRenderer:Ext.emptyFn,updater:function(c,b,a){this.updateWidget(a)},onResize:function(e){var a=this,d=a.liveWidgets,c=a.getView(),f,b;if(!a.isFixedSize&&a.rendered&&c&&c.viewReady){b=c.getEl().down(a.getCellInnerSelector());if(b){e-=parseInt(a.getCachedStyle(b,'padding-left'),10)+parseInt(a.getCachedStyle(b,'padding-right'),10);for(f in d){d[f].setWidth(e)}}}},onAdded:function(){var b=this,a;Ext.grid.column.Column.prototype.onAdded.apply(this,arguments);a=b.getView();if(a){b.setupViewListeners(a);if(a&&a.viewReady&&b.rendered&&a.getEl().down(b.getCellSelector())){b.onViewRefresh(a,a.getViewRange())}}},onRemoved:function(e){var a=this,c=a.liveWidgets,b=a.viewListeners,d;if(a.rendered){a.viewListeners=b&&Ext.destroy(b);if(!e){for(d in c){c[d].detachFromBody()}}}Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments)},onDestroy:function(){var b=this,e=b.liveWidgets,d=b.freeWidgetStack,g,a,c,f;if(b.rendered){for(g in e){a=e[g];a.$widgetRecord=a.$widgetColumn=null;delete a.getWidgetRecord;delete a.getWidgetColumn;a.destroy()}for(c=0,f=d.length;c{text} {linkHrefCls}{childElCls}" href="{href}" target="{hrefTarget}" hidefocus="true" unselectable="on" tabindex="{tabIndex}" {$}="{.}">{text}',maskOnDisable:!1,iconAlign:'left',initComponent:function(){var a=this,b=a.cls?[a.cls]:[],c;if(a.hasOwnProperty('canActivate')){a.focusable=a.canActivate}if(a.plain){b.push('x-menu-item-plain')}if(b.length){a.cls=b.join(' ')}if(a.menu){c=a.menu;a.menu=null;a.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==!1&&!a.destroying&&!a.destroyed&&a.isVisible(!0)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.disabled){if(!a.plain){a.addCls(a.activeCls)}a.activated=!0;if(a.hasListeners.activate){a.fireEvent('activate',a)}}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(a.activated){if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=!1;if(a.hasListeners.deactivate){a.fireEvent('deactivate',a)}}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){for(var a=this.getRefOwner();a&&(a.isMenu&&a.floating||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},expandMenu:function(c,b){var a=this;if(a.activated&&a.menu){a.hideOnClick=!1;a.cancelDeferHide();b=b==null?a.menuExpandDelay:b;if(b===0){a.doExpandMenu(c)}else {a.cancelDeferExpand();a.expandMenuTimer=Ext.defer(a.doExpandMenu,b,a,[c])}}},doExpandMenu:function(c){var b=this,a=b.menu;if(!a.isVisible()){b.parentMenu.activeChild=a;a.ownerCmp=b;a.parentMenu=b.parentMenu;a.constrainTo=document.body;a.autoFocus=!c||!c.pointerType;a.showBy(b,b.menuAlign)}},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},getValue:function(){return this.value},hideMenu:function(b){var a=this;if(a.menu){a.cancelDeferExpand();a.hideMenuTimer=Ext.defer(a.doHideMenu,Ext.isNumber(b)?b:a.menuHideDelay,a)}},onClick:function(b){var a=this,e=a.clickHideDelay,f=b.browserEvent,d,c;if(!a.href||a.disabled){b.stopEvent();if(a.disabled){return !1}}if(a.disabled||a.handlingClick){return}if(a.hideOnClick){if(!e){a.deferHideParentMenus()}else {a.deferHideParentMenusTimer=Ext.defer(a.deferHideParentMenus,e,a)}}d=a.fireEvent('click',a,b);if(a.destroyed){return}if(d!==!1&&a.handler){Ext.callback(a.handler,a.scope,[a,b],0,a)}if(Ext.isIE9m){c=f.returnValue===!1?!0:!1}else {c=!!f.defaultPrevented}if(a.href&&b.type!=='click'&&!c){a.handlingClick=!0;a.itemEl.dom.click();a.handlingClick=!1}if(!a.hideOnClick){a.focus()}return d},onRemoved:function(){var a=this;if(a.activated&&a.parentMenu.activeItem===a){a.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);a.parentMenu=a.ownerCmp=null},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;a.cancelDeferExpand();a.cancelDeferHide();clearTimeout(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.onDestroy.apply(this,arguments)},beforeRender:function(){var a=this,c=a.glyph,j=Ext._glyphFontFamily,b=!!(a.icon||a.iconCls||c),f=!!a.menu,i=a.iconAlign==='right'&&!f,e=a.isMenuCheckItem,d=[],k=a.ownerCt,g=k.plain,h;if(a.plain){a.ariaEl='el'}Ext.Component.prototype.beforeRender.call(this);if(b){if(f&&a.showCheckbox){b=!1}}if(typeof c==='string'){h=c.split('@');c=h[0];j=h[1]}if(!g||b&&!i||e){if(k.showSeparator&&!g){d.push(a.indentCls)}else {d.push(a.indentNoSeparatorCls)}}if(f){d.push(a.indentRightArrowCls)}else {if(b&&(i||e)){d.push(a.indentRightIconCls)}}Ext.applyIf(a.renderData,{hasHref:!!a.href,href:a.href||'#',hrefTarget:a.hrefTarget,icon:a.icon,iconCls:a.iconCls,glyph:c,glyphCls:c?'x-menu-item-glyph':undefined,glyphFontFamily:j,hasIcon:b,hasMenu:f,indent:!g||b||e,isCheckItem:e,rightIcon:i,plain:a.plain,text:a.text,arrowCls:a.arrowCls,baseIconCls:a.baseIconCls,textCls:a.textCls,indentCls:d.join(' '),linkCls:a.linkCls,linkHrefCls:a.linkHrefCls,groupCls:a.group?a.groupCls:'',tabIndex:a.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,!0)}},getMenu:function(){return this.menu||null},setMenu:function(b,f){var a=this,e=a.menu,h=a.arrowEl,d=a.ariaEl.dom,c,g;if(e){e.ownerCmp=e.parentMenu=null;if(f===!0||f!==!1&&a.destroyMenu){Ext.destroy(e)}if(d){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns')}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});delete c['aria-haspopup'];delete c['aria-owns']}}if(b){g=b.isMenu;b=a.menu=Ext.menu.Manager.get(b,{ownerCmp:a,focusOnToFront:!1});b.setOwnerCmp(a,g);if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {b=a.menu=null}if(b&&a.rendered&&!a.destroying&&h){h[b?'addCls':'removeCls'](a.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(a){var b=this.iconEl,c=this.icon;if(b){b.src=a||Ext.BLANK_IMAGE_URL}this.icon=a;this.fireEvent('iconchange',this,c,a)},setIconCls:function(b){var a=this,c=a.iconEl,d=a.iconCls;if(c){if(a.iconCls){c.removeCls(a.iconCls)}if(b){c.addCls(b)}}a.iconCls=b;a.fireEvent('iconchange',a,d,b)},setText:function(b){var a=this,d=a.textEl||a.el,c=a.text;a.text=b;if(a.rendered){d.setHtml(b||'');a.updateLayout()}a.fireEvent('textchange',a,c,b)},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},clearTip:function(){if(Ext.quickTipsActive&&Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.itemEl)}},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c){a.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.itemEl.id},b));a.tooltip=b}else {a.itemEl.dom.setAttribute(a.getTipAttr(),b)}}else {a.tooltip=b}return a},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)},getFocusEl:function(){return this.plain?this.el:this.itemEl}}},0,['menuitem'],['component','box','menuitem'],{'component':!0,'box':!0,'menuitem':!0},['widget.menuitem'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.menu,'Item',Ext.menu,'TextItem'],0);Ext.cmd.derive('Ext.menu.CheckItem',Ext.menu.Item,{checkedCls:'x-menu-item-checked',uncheckedCls:'x-menu-item-unchecked',groupCls:'x-menu-group-icon',hideOnClick:!1,checkChangeDisabled:!1,submenuText:'{0} submenu',ariaRole:'menuitemcheckbox',childEls:['checkEl'],showCheckbox:!0,isMenuCheckItem:!0,checkboxCls:'x-menu-item-checkbox',initComponent:function(){var a=this;a.checked=!!a.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==!1){a.hideOnClick=!0}}},beforeRender:function(){var a=this,b;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(a.renderData,{checkboxCls:a.checkboxCls,showCheckbox:a.showCheckbox});b=a.ariaRenderAttributes||(a.ariaRenderAttributes={});b['aria-checked']=a.menu?'mixed':a.checked;if(a.menu){b['aria-label']=Ext.String.formatEncode(a.submenuText,a.text)}},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.setChecked(!a.checked,!0);if(a.checkChangeDisabled){a.disableCheckChange()}if(Ext.isGecko&&a.checkEl){a.checkEl.on('mousedown',a.onMouseDownCheck)}},disableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.addCls(a.disabledCls)}if(Ext.isIE8&&a.rendered){a.el.repaint()}a.checkChangeDisabled=!0},enableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.removeCls(a.disabledCls)}a.checkChangeDisabled=!1},onMouseDownCheck:function(a){a.preventDefault()},onClick:function(b){var a=this;if(!(a.disabled||a.checkChangeDisabled||a.checked&&a.group||a.menu&&'touch'===b.pointerType&&!a.checkEl.contains(b.target))){a.setChecked(!a.checked);if(b.type==='keydown'&&a.menu){return !1}}Ext.menu.Item.prototype.onClick.call(this,b)},onDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.onDestroy.apply(this,arguments)},setText:function(c){var a=this,b=a.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,c);if(b&&a.menu){b.setAttribute('aria-label',Ext.String.formatEncode(a.submenuText,c))}},setChecked:function(b,d){var a=this,f=a.checkedCls,e=a.uncheckedCls,c=a.el,g=a.ariaEl.dom;if(a.checked!==b&&(d||a.fireEvent('beforecheckchange',a,b)!==!1)){if(c){if(b){c.addCls(f);c.removeCls(e)}else {c.addCls(e);c.removeCls(f)}}if(g){g.setAttribute('aria-checked',a.menu?'mixed':!!b)}a.checked=b;Ext.menu.Manager.onCheckChange(a,b);if(!d){Ext.callback(a.checkHandler,a.scope,[a,b],0,a);a.fireEvent('checkchange',a,b)}}}},0,['menucheckitem'],['component','box','menuitem','menucheckitem'],{'component':!0,'box':!0,'menuitem':!0,'menucheckitem':!0},['widget.menucheckitem'],0,[Ext.menu,'CheckItem'],0);Ext.cmd.derive('Ext.menu.Separator',Ext.menu.Item,{focusable:!1,canActivate:!1,hideOnClick:!1,plain:!0,separatorCls:'x-menu-item-separator',text:' ',ariaRole:'separator',beforeRender:function(){this.addCls(this.separatorCls);Ext.menu.Item.prototype.beforeRender.call(this)}},0,['menuseparator'],['component','box','menuitem','menuseparator'],{'component':!0,'box':!0,'menuitem':!0,'menuseparator':!0},['widget.menuseparator'],0,[Ext.menu,'Separator'],0);Ext.define('Ext.theme.neptune.menu.Separator',{override:'Ext.menu.Separator',border:!0});Ext.cmd.derive('Ext.menu.Menu',Ext.panel.Panel,{enableKeyNav:!0,allowOtherMenus:!1,ariaRole:'menu',floating:!0,constrain:!0,hidden:!0,hideMode:'visibility',ignoreParentClicks:!1,isMenu:!0,showSeparator:!0,minWidth:undefined,defaultMinWidth:120,defaultAlign:'tl-bl?',focusOnToFront:!1,bringParentToFront:!1,defaultFocus:':focusable',menuClickBuffer:0,baseCls:'x-menu',_iconSeparatorCls:'x-menu-icon-separator',_itemCmpCls:'x-menu-item-cmp',layout:{type:'vbox',align:'stretchmax',overflowHandler:'Scroller'},initComponent:function(){var a=this,d=['x-menu'],c=a.bodyCls?[a.bodyCls]:[],e=a.floating!==!1,b={element:'el',click:a.onClick,mouseover:a.onMouseOver,scope:a};if(Ext.supports.Touch){b.pointerdown=a.onMouseOver}a.on(b);a.on({beforeshow:a.onBeforeShow,scope:a});if(a.plain){d.push('x-menu-plain')}a.cls=d.join(' ');c.push('x-menu-body',Ext.dom.Element.unselectableCls);a.bodyCls=c.join(' ');if(e){if(a.minWidth===undefined){a.minWidth=a.defaultMinWidth}}else {a.hidden=!!a.initialConfig.hidden;a.constrain=!1}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(a.getLayout(),{configureItem:a.configureItem})},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);a.hidden=this.hidden;return a},beforeRender:function(){var a=this;Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!a.getSizeModel().width.shrinkWrap){a.layout.align='stretch'}if(a.floating){a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!!a.autoShow}},onBoxReady:function(){var a=this,c=a._iconSeparatorCls,b=a.focusableKeyNav;if(b){b.map.processEventScope=a;b.map.processEvent=function(a){if(a.keyCode===a.ESC){a.target=this.el.dom}return a};b.map.addBinding([{key:Ext.event.Event.ESC,handler:a.onEscapeKey,scope:a},{key:/[\w]/,handler:a.onShortcutKey,scope:a,shift:!1,ctrl:!1,alt:!1}])}else {a.escapeKeyNav=new Ext.util.KeyNav(a.el,{eventName:'keydown',scope:a,esc:a.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(a.showSeparator){a.iconSepEl=a.body.insertFirst({role:'presentation',cls:c+' '+c+'-'+a.ui,html:' '})}if(Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){a.el.on({scope:a,click:a.preventClick,translate:!1})}a.mouseMonitor=a.el.monitorMouseLeave(100,a.onMouseLeave,a)},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var b=this,a=b.lastFocusedChild;if(a){a.blur()}},getItemFromEvent:function(d){var c=this,b=c.layout.getRenderTarget().dom,a=d.getTarget();while(a.parentNode!==b){a=a.parentNode;if(!a){return}}return Ext.getCmp(a.id)},lookupComponent:function(a){var b=this;if(typeof a==='string'){a=b.lookupItemFromString(a)}else {if(Ext.isObject(a)){a=b.lookupItemFromObject(a)}}if(!a.dock){a.minWidth=a.minWidth||b.minWidth}return a},lookupItemFromObject:function(a){var b=this;if(!a.isComponent){if(!a.xtype){a=Ext.create('Ext.menu.'+(Ext.isBoolean(a.checked)?'Check':'')+'Item',a)}else {a=Ext.ComponentManager.create(a,a.xtype)}}if(a.isMenuItem){a.parentMenu=b}return a},lookupItemFromString:function(a){return a==='separator'||a==='-'?new Ext.menu.Separator():new Ext.menu.Item({canActivate:!1,hideOnClick:!1,plain:!0,text:a})},configureItem:function(a){var c=this.owner,f='x-',e=c.ui,b,d;if(a.isMenuItem){a.setUI(e)}else {if(c.items.getCount()>1&&!a.rendered&&!a.dock){d=c._itemCmpCls;b=[d+' '+d+'-'+e];if(!c.plain&&(a.indent!==!1||a.iconCls==='no-icon')){b.push(f+'menu-item-indent-'+e)}if(a.rendered){a.el.addCls(b)}else {a.cls=(a.cls||'')+' '+b.join(' ')}a.$extraMenuCls=b}}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.destroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(b){var c=this,f=b.type,a,d,e=f==='keydown';if(c.disabled){b.stopEvent();return}a=c.getItemFromEvent(b);if(a&&a.isMenuItem){if(!a.menu||!c.ignoreParentClicks){d=a.onClick(b)}else {b.stopEvent()}if(a.menu&&d!==!1&&e){a.expandMenu(b,0)}}if(!a||a.disabled){a=undefined}c.fireEvent('click',c,a,b)},onDestroy:function(){var a=this;if(a.escapeKeyNav){a.escapeKeyNav.destroy()}a.parentMenu=a.ownerCmp=a.escapeKeyNav=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.menu.Manager.onHide(a);Ext.panel.Panel.prototype.onDestroy.apply(this,arguments)},onMouseLeave:function(a){if(this.disabled){return}this.fireEvent('mouseleave',this,a)},onMouseOver:function(c){var a=this,g=c.getRelatedTarget(),e=!a.el.contains(g),b=a.getItemFromEvent(c),d=a.parentMenu,f=a.ownerCmp;if(e&&d){d.setActiveItem(f);f.cancelDeferHide();d.mouseMonitor.mouseenter()}if(a.disabled){return}if(b){if(!b.containsFocus){b.focus()}if(b.expandMenu){b.expandMenu(c)}}if(e){a.fireEvent('mouseenter',a,c)}a.fireEvent('mouseover',a,b,c)},setActiveItem:function(a){var b=this;if(a&&a!==b.lastFocusedChild){b.focusChild(a,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(h,g){var e=String.fromCharCode(g.getCharCode()),c=this.query('>[text]'),f=c.length,a=this.lastFocusedChild,d=Ext.Array.indexOf(c,a),b=d;for(;;){if(++b===f){b=0}a=c[b];if(b===d){return}if(a.text&&a.text[0].toUpperCase()===e){a.focus();return}}},onFocusableContainerTabKey:function(a){if(this.floating){this.hide()}},onFocusableContainerEnterKey:function(a){this.onClick(a)},onFocusableContainerSpaceKey:function(a){this.onClick(a)},onFocusableContainerLeftKey:function(a){a.preventDefault();if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(b){var c=this,a=c.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)tablepanel:not(hidden)>tableview');if(a){a.focus()}},focusRow:function(c){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;b.focusRow(c)},focusCell:function(a){a.view.focusCell(a)},onRowFocus:function(){this.relayFn('onRowFocus',arguments)},isVisible:function(a){return this.ownerGrid.isVisible(a)},getFocusEl:function(){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;return b.getFocusEl()},getCellInclusive:function(a,c){var d=a.column,b=this.lockedGrid.getColumnManager().getColumns().length;if(d>=b){a=Ext.apply({},a);a.column-=b;return this.normalView.getCellInclusive(a,c)}else {return this.lockedView.getCellInclusive(a,c)}},getHeaderByCell:function(a){if(a){return this.getVisibleColumnManager().getHeaderById(a.getAttribute('data-columnId'))}return !1},onRowSelect:function(){this.relayFn('onRowSelect',arguments)},onRowDeselect:function(){this.relayFn('onRowDeselect',arguments)},onCellSelect:function(a){a.column.getView().onCellSelect({record:a.record,column:a.column})},onCellDeselect:function(a){a.column.getView().onCellDeselect({record:a.record,column:a.column})},getCellByPosition:function(a,c){var e=this,b=a.view,d=a.column;if(b===e){a=(new Ext.grid.CellContext(d.getView())).setPosition(a.record,a.column)}return b.getCellByPosition(a,c)},getRecord:function(b){var a=this.lockedView.getRecord(b);if(!a){a=this.normalView.getRecord(b)}return a},scrollBy:function(){var a=this.normalView;a.scrollBy.apply(a,arguments)},ensureVisible:function(){var a=this.normalView;a.ensureVisible.apply(a,arguments)},disable:function(){this.relayFn('disable',arguments)},enable:function(){this.relayFn('enable',arguments)},addElListener:function(){this.relayFn('addElListener',arguments)},refreshNode:function(){this.relayFn('refreshNode',arguments)},addRowCls:function(){this.relayFn('addRowCls',arguments)},removeRowCls:function(){this.relayFn('removeRowCls',arguments)},destroy:function(){var a=this;a.rendered=!1;a.bindStore(null,!1,'dataSource');Ext.destroy(a.lockedViewEventRelayers,a.normalViewEventRelayers);a.lockedViewEventRelayers=a.normalViewEventRelayers=null;a.callParent();Ext.destroy(a.loadMask,a.navigationModel,a.selModel);a.lockedView.lockingPartner=a.normalView.lockingPartner=null;a.lockedGrid=a.lockedView=a.normalGrid=a.normalView=null;a.loadMask=a.navigationModel=a.selModel=a.headerCt=null;a.ownerGrid=a.storeListeners=null}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable]],[Ext.grid.locking,'View',Ext.grid,'LockingView'],function(){this.borrow(Ext.Component,['up']);this.borrow(Ext.view.AbstractView,['doFirstRefresh','applyFirstRefresh']);this.borrow(Ext.view.Table,['cellSelector','selectedCellCls','selectedItemCls'])});Ext.cmd.derive('Ext.grid.locking.Lockable',Ext.Base,{alternateClassName:'Ext.grid.Lockable',syncRowHeight:!0,headerCounter:0,scrollDelta:40,lockedGridCls:'x-grid-inner-locked',normalGridCls:'x-grid-inner-normal',lockingBodyCls:'x-grid-locking-body',unlockText:'Unlock',lockText:'Lock',bothCfgCopy:['hideHeaders','enableColumnHide','enableColumnMove','enableColumnResize','sortableColumns','multiColumnSort','columnLines','rowLines','variableRowHeight','numFromEdge','trailingBufferZone','leadingBufferZone','scrollToLoadBuffer','syncRowHeight'],normalCfgCopy:['scroll'],lockedCfgCopy:[],determineXTypeToCreate:function(g){var f=this,a,b,d,e,c;if(f.subGridXType){a=f.subGridXType}else {if(!g){return 'gridpanel'}b=this.getXTypes().split('/');d=b.length;e=b[d-1];c=b[d-2];if(c!=='tablepanel'){a=c}else {a=e}}return a},injectLockable:function(){this.focusable=!1;this.lockable=!0;this.hasView=!0;var a=this,q=Ext.getScrollbarSize(),l=q.width,o=a.store=Ext.StoreManager.lookup(a.store),d=a.lockedViewConfig,g=a.normalViewConfig,s=Ext.Object,m,i,b,c,e,n,f,h,j=a.viewConfig,r=j&&j.loadMask,u=r!==undefined?r:a.loadMask,p=a.bufferedRenderer,k=l>0&&Ext.supports.touchScroll!==2,t=a.getInherited().rtl;m=a.constructLockableFeatures();a.features=null;i=a.constructLockablePlugins();a.plugins=i.topPlugins;b={id:a.id+'-locked',$initParent:a,isLocked:!0,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(!0),store:o,reserveScrollbar:k,scrollable:{indicators:{x:!0,y:!1}},scrollerOwner:!1,animate:!1,border:!1,cls:a.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.normalGrid.floatedFromCollapse},features:m.lockedFeatures,plugins:i.lockedPlugins};c={id:a.id+'-normal',$initParent:a,isLocked:!1,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(),store:o,reserveScrollbar:a.reserveScrollbar,scrollerOwner:!1,border:!1,cls:a.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.lockedGrid.floatedFromCollapse},features:m.normalFeatures,plugins:i.normalPlugins};a.addCls('x-grid-locked');Ext.copy(c,a,a.bothCfgCopy,!0);Ext.copy(b,a,a.bothCfgCopy,!0);Ext.copy(c,a,a.normalCfgCopy,!0);Ext.copy(b,a,a.lockedCfgCopy,!0);Ext.apply(c,a.normalGridConfig);Ext.apply(b,a.lockedGridConfig);for(e=0;e>#normalHeaderCt',items:e},j={itemId:'normalHeaderCt',stretchMaxPartner:'^^>>#lockedHeaderCt',items:f},l={locked:i,normal:j},g;if(Ext.isObject(b)){Ext.applyIf(i,b);Ext.applyIf(j,b);g=Ext.apply({},b);delete g.items;Ext.apply(c,g);b=b.items}c.constructing=!0;for(d=0,k=b.length;d0&&f){h.stopEvent();a+=e;d.setScrollY(a);b.normalGrid.getView().setScrollY(a);b.onNormalViewScroll()}}},onLockedViewScroll:function(){var f=this,e=f.lockedGrid.getView(),a=f.normalGrid.getView(),c=e.getScrollY(),g=a.getScrollY(),b,d;if(g!==c){a.setScrollY(c);if(a.bufferedRenderer){d=e.body.dom;b=a.body.dom;b.style.position='absolute';b.style.top=d.style.top}}},onNormalViewScroll:function(){var e=this,b=e.lockedGrid.getView(),c=e.normalGrid.getView(),f=b.getScrollY(),d=c.getScrollY(),a;if(d!==f){b.setScrollY(d);if(c.bufferedRenderer){a=b.body;if(a.dom){a.dom.style.position='absolute';a.translate(null,c.bufferedRenderer.bodyTop)}}}},syncRowHeights:function(){if(!this.destroyed){var f=this,b=f.normalGrid.getView(),a=f.lockedGrid.getView(),d=b.syncRowHeightBegin(),c=a.syncRowHeightBegin(),e;b.syncRowHeightMeasure(d);a.syncRowHeightMeasure(c);b.syncRowHeightFinish(d,c);a.syncRowHeightFinish(c,d);e=b.getScrollY();a.setScrollY(e)}},modifyHeaderCt:function(){var a=this;a.lockedGrid.headerCt.getMenuItems=a.getMenuItems(a.lockedGrid.headerCt.getMenuItems,!0);a.normalGrid.headerCt.getMenuItems=a.getMenuItems(a.normalGrid.headerCt.getMenuItems,!1);a.lockedGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.lockedGrid.headerCt.showMenuBy,a.showMenuBy);a.normalGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.normalGrid.headerCt.showMenuBy,a.showMenuBy)},onUnlockMenuClick:function(){this.unlock()},onLockMenuClick:function(){this.lock()},showMenuBy:function(f,g,c){var d=this.getMenu(),a=d.down('#unlockItem'),b=d.down('#lockItem'),e=a.prev();if(c.lockable===!1){e.hide();a.hide();b.hide()}else {e.show();a.show();b.show();if(!a.initialConfig.disabled){a.setDisabled(c.lockable===!1)}if(!b.initialConfig.disabled){b.setDisabled(!c.isLockable())}}},getMenuItems:function(d,b){var a=this,f=a.unlockText,h=a.lockText,g='x-hmenu-unlock',i='x-hmenu-lock',c=a.onUnlockMenuClick.bind(a),e=a.onLockMenuClick.bind(a);return function(){var a=d.call(this);a.push('-',{itemId:'unlockItem',iconCls:g,text:f,handler:c,disabled:!b});a.push({itemId:'lockItem',iconCls:i,text:h,handler:e,disabled:b});return a}},delaySyncLockedWidth:function(){var a=this,b=a.syncLockedWidthTask;if(!a.view.all.getCount()){return}if(!b){b=a.syncLockedWidthTask=new Ext.util.DelayedTask(a.syncLockedWidth,a)}b.delay(1)},syncLockedWidth:function(){var b=this,c=b.rendered,a=b.lockedGrid,g=a.view,d=b.normalGrid,e=a.getVisibleColumnManager().getColumns().length,f=d.getVisibleColumnManager().getColumns().length,h=b.syncLockedWidthTask;if(h){h.cancel()}Ext.suspendLayouts();if(f){d.show();if(e){if(c&&a.shrinkWrapColumns&&!a.headerCt.forceFit){delete a.flex;a.setWidth(a.headerCt.getTableWidth()+a.gridPanelBorderWidth)}a.addCls(b.lockedGridCls);a.show();if(a.split){b.child('splitter').show();b.addCls('x-grid-locked-split')}}else {if(c){a.getView().clearViewEl(!0)}a.hide();if(a.split){b.child('splitter').hide();b.removeCls('x-grid-locked-split')}}if(Ext.supports.touchScroll!==2&&Ext.Component.pendingLayouts){g.getScrollable().setX(!0)}if(c){b.ignoreMousewheel=g.scrollFlags.y}}else {d.hide();a.flex=1;delete a.width;a.removeCls(b.lockedGridCls);a.show();b.ignoreMousewheel=!0}Ext.resumeLayouts(!0);return [e,f]},onLockedHeaderSortChange:Ext.emptyFn,onNormalHeaderSortChange:Ext.emptyFn,lock:function(a,l,g){var e=this,i=e.normalGrid,b=e.lockedGrid,d=i.view,c=b.view,m=i.headerCt,h,k,j,f;a=a||m.getMenu().activeHeader;j=a.hasFocus;g=g||b.headerCt;k=a.ownerCt;if(!a.isLockable()){return}if(a.flex&&b.shrinkWrapColumns){a.width=a.getWidth();a.flex=null}Ext.suspendLayouts();if(b.hidden){if(!b.componentLayoutCounter){if(c.bufferedRenderer){c.bufferedRenderer.onViewResize(c,0,d.getHeight())}f=d.getScrollY()}b.show()}d.blockRefresh=c.blockRefresh=!0;a.ownerCmp=a.ownerCt;k.remove(a,!1);a.locked=!0;if(Ext.isDefined(l)){g.insert(l,a)}else {g.add(a)}d.blockRefresh=c.blockRefresh=!1;a.ownerCmp=null;h=e.syncLockedWidth();if(h[0]){b.getView().refreshView()}if(h[1]){i.getView().refreshView()}e.fireEvent('lockcolumn',e,a);Ext.resumeLayouts(!0);if(f){c.setScrollY(f);d.setScrollY(f)}if(j){a.focus()}},unlock:function(a,f,g){var b=this,e=b.normalGrid,d=b.lockedGrid,i=e.view,h=d.view,k=d.headerCt,c,j;if(!Ext.isDefined(f)){f=0}a=a||k.getMenu().activeHeader;j=a.hasFocus;g=g||e.headerCt;Ext.suspendLayouts();i.blockRefresh=h.blockRefresh=!0;a.ownerCmp=a.ownerCt;a.ownerCt.remove(a,!1);a.locked=!1;g.insert(f,a);i.blockRefresh=h.blockRefresh=!1;a.ownerCmp=null;c=b.syncLockedWidth();if(c[0]){d.getView().refreshView()}if(c[1]){e.getView().refreshView()}b.fireEvent('unlockcolumn',b,a);Ext.resumeLayouts(!0);if(j){a.focus()}},reconfigureLockable:function(a,f){var d=this,h=d.store,c=d.lockedGrid,e=d.normalGrid,b,g;if(a&&a!==h){a=Ext.data.StoreManager.lookup(a);d.store=a;c.view.blockRefresh=e.view.blockRefresh=!0;c.bindStore(a);b=c.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}e.bindStore(a);b=e.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}d.view.store=a;g=d.view.loadMask;if(g&&g.isLoadMask){g.bindStore(a)}d.view.bindStore(e.view.dataSource,!1,'dataSource');c.view.blockRefresh=e.view.blockRefresh=!1}if(f){c.reconfiguring=e.reconfiguring=!0;c.headerCt.removeAll();e.headerCt.removeAll();f=d.processColumns(f,c);c.headerCt.add(f.locked.items);e.headerCt.add(f.normal.items);c.reconfiguring=e.reconfiguring=!1;d.syncLockedWidth()}d.refreshCounter=c.view.refreshCounter},afterReconfigureLockable:function(){var a=this.lockedGrid.getView();if(this.refreshCounter===a.refreshCounter){this.view.refresh()}},constructLockableFeatures:function(){var b=this.features,a,e,c,d,f=0,g;if(b){if(!Ext.isArray(b)){b=[b]}c=[];d=[];g=b.length;for(;f0){a.onViewResize(b,null,e);if(c&&d.getCount()!==c.length){c.length=0;c.push.apply(c,a.store.getRange(d.startIndex,d.endIndex))}}}},beforeTableLayout:function(b){var a=this.view.body.dom;if(a){b.bodyHeight=a.offsetHeight;b.bodyWidth=a.offsetWidth}},afterTableLayout:function(d){var a=this,b=a.view,c;if(d.bodyHeight&&b.body.dom){delete a.rowHeight;a.refreshSize();c=b.body.dom.offsetHeight;if(c!==d.bodyHeight){a.onViewResize(b,null,b.el.lastBox.height);if(c=a.store.getCount()){a.setBodyTop(0)}else {if(a.bodyTop>a.scrollTop||a.bodyTop+cb){a.position=a.scrollTop=Math.max(b-a.bodyHeight,0);c.setScrollY(a.scrollTop)}if(a.bodyTop>b){c.body.translate(null,a.bodyTop=a.position)}if(c.getScrollable()){a.refreshScroller(c,b)}},refreshScroller:function(b,c){var a=b.getScrollable();if(a){if(a.setElementSize){a.setElementSize()}a.setSize({x:b.headerCt.getTableWidth(),y:c})}},setViewSize:function(c,o){var a=this,h=a.store,g=a.view,d=g.all,j=d.getCount(),e,f,b=a.view.lockingPartner&&a.view.lockingPartner.bufferedRenderer,i=j-c,n,m,l,k;if(b&&!o&&b.view.componentLayoutCounter){if(b.viewSize>c){c=b.viewSize}else {b.setViewSize(c,!0)}}i=j-c;if(i){a.scrollTop=g.getScrollY();a.viewSize=c;if(h.isBufferedStore){h.setViewSize(c)}if(j){k=h.getCount();e=d.startIndex;f=Math.min(e+c-1,k-1);if(e===d.startIndex&&f===d.endIndex){if(i<0){a.handleViewScroll(-1)}}else {if(b){b.disable()}if(i<0){if(k>j){h.getRange(d.endIndex+1,f,{callback:function(b,d){l=g.doAdd(b,d);g.fireEvent('itemadd',b,d,l);a.setBodyTop(a.bodyTop)}})}else {a.refreshView(0)}}else {e=d.endIndex-(i-1);f=d.endIndex;m=d.slice(e,f+1);d.removeRange(e,f,!0);if(g.hasListeners.itemremove){n=h.getRange(e,f);g.fireEvent('itemremove',n,e,m)}a.setBodyTop(a.bodyTop)}if(b){b.enable()}}}}return c},getViewRange:function(){var d=this,c=d.view.all,a=d.store,b=0;if(c.getCount()){b=c.startIndex}else {if(a.isBufferedStore){if(!a.currentPage){a.currentPage=1}b=c.startIndex=(a.currentPage-1)*(a.pageSize||1);a.currentPage=1}}if(a.data.getCount()){return a.getRange(b,b+(d.viewSize||a.defaultViewSize)-1)}else {return []}},onReplace:function(l,d,j,k){var a=this,c=a.view,b=c.all,i,g=b.getCount(),h=d+j.length-1,e=k.length-j.length,f=e*a.rowHeight;if(d>=b.startIndex+a.viewSize){a.refreshSize();return}if(g&&h=a.viewSize){b.moveBlock(e);a.refreshSize();i=b.startIndex;if(e>0){a.doNotMirror=!0;a.handleViewScroll(-1);a.doNotMirror=!1}if(b.startIndex===i){if(b.startIndex){a.setBodyTop(a.bodyTop+=f);c.suspendEvent('scroll');c.scrollBy(0,f);c.resumeEvent('scroll');a.position=a.scrollTop=c.getScrollY()}}else {c.suspendEvent('scroll');c.scrollBy(0,(i-b.startIndex)*a.rowHeight);c.resumeEvent('scroll')}c.refreshSize(b.getCount()!==g);return}if(g&&d>b.endIndex){a.refreshSize();if(e>0){a.onRangeFetched(null,b.startIndex,Math.min(l.getCount(),b.startIndex+a.viewSize)-1,null,!0)}c.refreshSize(b.getCount()!==g);return}if(d0?1:-1;if(Math.abs(c)>=20||b!==a.lastScrollDirection){a.lastScrollDirection=b;a.handleViewScroll(a.lastScrollDirection)}}},onViewScrollEnd:function(){if(this.needsPointerEventsFix){this.view.body.dom.style.pointerEvents=''}},handleViewScroll:function(h){var a=this,d=a.view.all,g=a.store,f=a.viewSize,e=g.getCount()-1,b,c;if(h===-1){if(d.startIndex){if(a.topOfViewCloseToEdge()){b=Math.max(0,a.getLastVisibleRowIndex()+a.trailingBufferZone-f)}}}else {if(d.endIndexa.scrollTop-a.numFromEdge*a.rowHeight}else {return a.getFirstVisibleRowIndex()-a.view.all.startIndexd){a=c-d+1}}}if(a===0&&c===0&&e===0){b.doRefreshView([],0,0)}else {g.getRange(a,c,{callback:b.doRefreshView,scope:b})}},doRefreshView:function(i,h,p,q){var a=this,b=a.view,c=b.all,l=c.startIndex,m=c.endIndex,e,f,n=c.getCount(),o,k=h!==c.startIndex,g,d,j;if(b.refreshCounter){if(b.hasListeners.beforerefresh&&b.fireEvent('beforerefresh',b)===!1){return}b.refreshing=a.refreshing=!0;j=b.saveFocusState();b.clearViewEl(!0);b.refreshCounter++;if(i.length){o=b.doAdd(i,h);if(k){e=c.item(l,!0);f=c.item(m,!0);if(e){d=-e.offsetTop}else {if(f){d=c.last(!0).offsetTop-f.offsetTop}}if(d){a.bodyTop=Math.max(a.bodyTop+d,0);a.scrollTop=a.bodyTop?a.scrollTop+d:0}else {a.bodyTop=g=h*a.rowHeight;a.scrollTop=Math.max(g-a.rowHeight*(gc.endIndex){r=c.startIndex-e;b.clearViewEl(!0);g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g);for(o=0;oc.endIndex||jp){d=a.scrollTop-a.rowHeight*p}}b.clearViewEl(!0);a.teleported=!1}if(!c.getCount()){g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g)}else {if(j>c.endIndex){l=Math.max(e-c.startIndex,0);if(k){i=c.item(c.startIndex+l,!0).offsetTop}g=c.scroll(Ext.Array.slice(h,c.endIndex+1-e),1,l);if(k){d=a.bodyTop+i}else {d=m}}else {l=Math.max(c.endIndex-j,0);u=c.startIndex;g=c.scroll(Ext.Array.slice(h,0,c.startIndex-e),-1,l);if(k){d=a.bodyTop-c.item(u,!0).offsetTop;if(!c.startIndex){if(d){b.setScrollY(a.position=a.scrollTop-=d);d=0}}else {if(d<0){i=c.startIndex*a.rowHeight;b.setScrollY(a.position=a.scrollTop+=i);d=a.bodyTop+i}}}else {d=m}}}a.position=a.scrollTop}if(t&&!v.contains(q)){n=b.actionableMode?b.actionPosition:b.lastFocused;if(n&&n.column){b.onFocusLeave({});n.column.focus()}}d=Math.max(Math.floor(d),0);if(b.positionBody){a.setBodyTop(d)}if(g&&f&&!f.disabled){f.scrollTop=f.position=a.scrollTop;if(f.view.ownerCt.isVisible()){s=f.onRangeFetched(null,e,j,x,!0);if(b.ownerGrid.syncRowHeight||f.variableRowHeight!==k){a.syncRowHeights(g,s);a.bodyHeight=b.body.dom.offsetHeight}}if(f.bodyTop!==d){f.setBodyTop(d)}f.view.setScrollY(a.scrollTop)}return g},syncRowHeights:function(b,e){var d=this,c=0,f=1,i=[],h=[],j=Ext.grid.locking.RowSynchronizer,a,g;if(b&&e){c=b.length;f=e.length}if(c!==f){b=d.view.all.slice();e=d.view.lockingPartner.all.slice();c=f=b.length}for(a=0;ae||i+a.bodyHeightc||j+a.bodyHeightc){return a.getLastVisibleRowIndex(f,b-1,e,c)}k=i+l[b].offsetHeight;if(k>=c){return b}else {if(b!==d){return a.getLastVisibleRowIndex(b+1,d,e,c)}}}return a.getFirstVisibleRowIndex()+Math.ceil(h/a.rowHeight)},getScrollHeight:function(){var a=this,j=a.view,d=j.all,i=a.store,c=i.getCount(),g=d.getCount(),h,f,e,b;if(!c){return 0}if(!a.hasOwnProperty('rowHeight')){if(g){if(a.variableRowHeight){a.rowHeight=Math.floor(a.bodyHeight/g)}else {h=d.first();f=h.getHeight();if(Ext.isIE8){e=h.getBorderWidth('b');if(e>0){f-=e}}a.rowHeight=f}}else {delete a.rowHeight}}if(a.variableRowHeight){if(d.endIndex===c-1){b=a.bodyTop+a.bodyHeight-1}else {b=Math.floor((c-g)*a.rowHeight)+a.bodyHeight;b+=a.bodyTop-d.startIndex*a.rowHeight}}else {b=Math.floor(c*a.rowHeight)}return a.scrollHeight=b},attemptLoad:function(b,c){var a=this;if(a.scrollToLoadBuffer){if(!a.loadTask){a.loadTask=new Ext.util.DelayedTask(a.doAttemptLoad,a,[])}a.loadTask.delay(a.scrollToLoadBuffer,a.doAttemptLoad,a,[b,c])}else {a.doAttemptLoad(b,c)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(b,c){var a=this;if(!a.destroyed){a.store.getRange(b,c,{loadId:++a.loadId,callback:function(e,f,g,d){if(d.loadId===a.loadId){a.onRangeFetched(e,f,g,d)}},fireEvent:!1})}},destroy:function(){var a=this,b=a.view;a.cancelLoad();if(b&&b.el){b.un('scroll',a.onViewScroll,a)}if(a.store){a.unbindStore()}a.viewListeners=a.gridListeners=a.view=a.grid=Ext.destroy(a.viewListeners,a.stretcher,a.gridListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,['plugin.bufferedrenderer'],0,[Ext.grid.plugin,'BufferedRenderer'],function(a){if(Ext.supports.Touch){a.prototype.leadingBufferZone=a.prototype.trailingBufferZone=2;a.prototype.numFromEdge=1}});Ext.cmd.derive('Ext.util.Queue',Ext.Base,{constructor:function(){this.clear()},add:function(b){var a=this,c=a.getKey(b);if(!a.map[c]){++a.length;a.items.push(b);a.map[c]=b}return b},clear:function(){var a=this,b=a.items;a.items=[];a.map={};a.length=0;return b},contains:function(b){var a=this.getKey(b);return this.map.hasOwnProperty(a)},getCount:function(){return this.length},getKey:function(a){return a.id},remove:function(b){var a=this,e=a.getKey(b),d=a.items,c;if(a.map[e]){c=Ext.Array.indexOf(d,b);Ext.Array.erase(d,c,1);delete a.map[e];--a.length}return b}},1,0,0,0,0,0,[Ext.util,'Queue'],0);Ext.cmd.derive('Ext.layout.ContextItem',Ext.Base,{heightModel:null,widthModel:null,sizeModel:null,optOut:!1,ownerSizePolicy:null,boxChildren:null,boxParent:null,children:[],dirty:null,dirtyCount:0,hasRawContent:!0,isContextItem:!0,isTopLevel:!1,consumersContentHeight:0,consumersContentWidth:0,consumersContainerHeight:0,consumersContainerWidth:0,consumersHeight:0,consumersWidth:0,ownerCtContext:null,remainingChildDimensions:0,props:null,state:null,wrapsComponent:!1,constructor:function(s){var a=this,o=Ext.layout.SizeModel.sizeModels,l=o.configured,g=o.shrinkWrap,r,c,f,d,k,i,b,p,m,q,n,h,e,j;Ext.apply(a,s);b=a.target;r=a.el;a.id=b.id;a.flushedProps={};a.props=k={};a.styles={};if(!b.isComponent){c=r.lastBox}else {a.wrapsComponent=!0;a.framing=b.frameSize||null;a.isComponentChild=b.ownerLayout&&b.ownerLayout.isComponentLayout;c=b.lastBox;f=b.ownerCt;if(f&&(d=f.el&&a.context.items[f.el.id])){a.ownerCtContext=d}a.sizeModel=i=b.getSizeModel(d&&d.widthModel.pairsByHeightOrdinal[d.heightModel.ordinal]);a.widthModel=h=i.width;a.heightModel=e=i.height;if(c&&c.invalid===!1){q=b.width===(p=c.width);n=b.height===(m=c.height);if(h===g&&e===g){j=!0}else {if(h===l&&q){j=e===g||e===l&&n}}if(j){a.optOut=!0;k.width=p;k.height=m}}}a.lastBox=c},init:function(r,i){var a=this,c=a.props,e=a.dirty,b=a.ownerCtContext,h=a.target.ownerLayout,j=!a.state,s=r||j,n,l,t,q,k,d,o=a.heightModel,p=a.widthModel,f,g,m=0;a.dirty=a.invalid=!1;a.props={};a.remainingChildDimensions=0;if(a.boxChildren){a.boxChildren.length=0}if(!j){a.clearAllBlocks('blocks');a.clearAllBlocks('domBlocks')}if(!a.wrapsComponent){return s}d=a.target;a.state={};if(j){if(d.beforeLayout&&d.beforeLayout!==Ext.emptyFn){d.beforeLayout()}if(!b&&(q=d.ownerCt)){b=a.context.items[q.el.id]}if(b){a.ownerCtContext=b;a.isBoxParent=h&&h.isItemBoxParent(a)}else {a.isTopLevel=!0}a.frameBodyContext=a.getEl('frameBody')}else {b=a.ownerCtContext;a.isTopLevel=!b;n=a.children;for(l=0,t=n.length;l0);if(r){a.widthModel=a.heightModel=null;k=d.getSizeModel(b&&b.widthModel.pairsByHeightOrdinal[b.heightModel.ordinal]);if(j){a.sizeModel=k}a.widthModel=k.width;a.heightModel=k.height;if(b&&!a.isComponentChild){if(h.needsItemSize||!d.liquidLayout){b.remainingChildDimensions+=2}else {if(a.widthModel.calculated){++b.remainingChildDimensions}if(a.heightModel.calculated){++b.remainingChildDimensions}}}}else {if(c){a.recoverProp('x',c,e);a.recoverProp('y',c,e);if(a.widthModel.calculated){a.recoverProp('width',c,e)}else {if('width' in c){++m}}if(a.heightModel.calculated){a.recoverProp('height',c,e)}else {if('height' in c){++m}}if(b&&!a.isComponentChild){b.remainingChildDimensions+=m}}}if(c&&h&&h.manageMargins){a.recoverProp('margin-top',c,e);a.recoverProp('margin-right',c,e);a.recoverProp('margin-bottom',c,e);a.recoverProp('margin-left',c,e)}if(i){f=i.heightModel;g=i.widthModel;if(g&&f&&p&&o){if(p.shrinkWrap&&o.shrinkWrap){if(g.constrainedMax&&f.constrainedMin){f=null}}}if(g){a.widthModel=g}if(f){a.heightModel=f}if(i.state){Ext.apply(a.state,i.state)}}return s},initContinue:function(f){var b=this,a=b.ownerCtContext,g=b.target,c=b.widthModel,e=g.getInherited(),d;if(c.fixed){e.inShrinkWrapTable=!1}else {delete e.inShrinkWrapTable}if(f){if(a&&c.shrinkWrap){d=a.isBoxParent?a:a.boxParent;if(d){d.addBoxChild(b)}}else {if(c.natural){b.boxParent=a}}}return f},initDone:function(d){var a=this,b=a.props,c=a.state;if(a.remainingChildDimensions===0){b.containerChildrenSizeDone=!0}if(d){b.containerLayoutDone=!0}if(a.boxChildren&&a.boxChildren.length&&a.widthModel.shrinkWrap){a.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var a=this,b=a.target,c=a.ownerCtContext;if(c&&c.isTopLevel){a.animatePolicy=b.ownerLayout.getAnimatePolicy(a)}else {if(!c&&b.isCollapsingOrExpanding&&b.animCollapse){a.animatePolicy=b.componentLayout.getAnimatePolicy(a)}}if(a.animatePolicy){a.context.queueAnimation(a)}},addBlock:function(f,a,e){var b=this,d=b[f]||(b[f]={}),c=d[e]||(d[e]={});if(!c[a.id]){c[a.id]=a;++a.blockCount;++b.context.blockCount}},addBoxChild:function(a){var d=this,b,c=a.widthModel;a.boxParent=this;a.measuresBox=c.shrinkWrap?a.hasRawContent:c.natural;if(a.measuresBox){b=d.boxChildren;if(b){b.push(a)}else {d.boxChildren=[a]}}},addPositionStyles:function(b,c){var d=c.x,e=c.y,a=0;if(d!==undefined){b.left=d+'px';++a}if(e!==undefined){b.top=e+'px';++a}return a},addTrigger:function(c,e){var b=this,h=e?'domTriggers':'triggers',f=b[h]||(b[h]={}),g=b.context,a=g.currentLayout,d=f[c]||(f[c]={});if(!d[a.id]){d[a.id]=a;++a.triggerCount;d=g.triggers[e?'dom':'data'];(d[a.id]||(d[a.id]=[])).push({item:this,prop:c});if(b.props[c]!==undefined){if(!e||!(b.dirty&&c in b.dirty)){++a.firedTriggers}}}},boxChildMeasured:function(){var a=this,b=a.state,c=b.boxesMeasured=(b.boxesMeasured||0)+1;if(c===a.boxChildren.length){b.clearBoxWidth=1;++a.context.progressCount;a.markDirty()}},borderNames:['border-top-width','border-right-width','border-bottom-width','border-left-width'],marginNames:['margin-top','margin-right','margin-bottom','margin-left'],paddingNames:['padding-top','padding-right','padding-bottom','padding-left'],trblNames:['top','right','bottom','left'],cacheMissHandlers:{borderInfo:function(b){var a=b.getStyles(b.borderNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},marginInfo:function(b){var a=b.getStyles(b.marginNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},paddingInfo:function(b){var c=b.frameBodyContext||b,a=c.getStyles(b.paddingNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(c){var a=this[c],b;if(a){for(b in a){this.clearBlocks(c,b)}}},clearBlocks:function(g,f){var c=this[g],b=c&&c[f],d,a,e;if(b){delete c[f];d=this.context;for(e in b){a=b[e];--d.blockCount;if(!--a.blockCount&&!a.pending&&!a.done){d.queueLayout(a)}}}},block:function(b,a){this.addBlock('blocks',b,a)},domBlock:function(b,a){this.addBlock('domBlocks',b,a)},fireTriggers:function(g,e){var c=this[g],b=c&&c[e],f=this.context,a,d;if(b){for(d in b){a=b[d];++a.firedTriggers;if(!a.done&&!a.blockCount&&!a.pending){f.queueLayout(a)}}}},flush:function(){var a=this,d=a.dirty,b=a.state,c=a.el;a.dirtyCount=0;if('attributes' in a){c.set(a.attributes);delete a.attributes}if('innerHTML' in a){c.innerHTML=a.innerHTML;delete a.innerHTML}if(b&&b.clearBoxWidth){b.clearBoxWidth=0;a.el.setStyle('width',null);if(!--b.blocks){a.context.queueItemLayouts(a)}}if(d){delete a.dirty;a.writeProps(d,!0)}},flushAnimations:function(){var b=this,k=b.previousSize,a,h,l,f,d,g,e,m,c,j,i;if(k){a=b.target;h=a.getAnimationProps();l=h.duration;f=Ext.Object.getKeys(b.animatePolicy);d=Ext.apply({},{from:{},to:{},duration:l||Ext.fx.Anim.prototype.duration},h);for(g=0,e=0,m=f.length;e0},runLayout:function(a){var b=this,c=b.getCmp(a.owner);a.pending=!1;if(c.state.blocks){return}a.done=!0;++a.calcCount;++b.calcCount;a.calculate(c);if(a.done){b.layoutDone(a);if(a.completeLayout){b.queueCompletion(a)}if(a.finalizeLayout){b.queueFinalize(a)}}else {if(!a.pending&&!a.invalid&&!(a.blockCount+a.triggerCount-a.firedTriggers)){b.queueLayout(a)}}},setItemSize:function(a,g,f){var b=a,c=1,e,d;if(a.isComposite){b=a.elements;c=b.length;a=b[0]}else {if(!a.dom&&!a.el){c=b.length;a=b[0]}}for(d=0;da){a=d.weight}}},this);return a},getSplitterTarget:function(b){var a=b.collapseTarget;if(a&&a.collapsed){return a.placeholder||a}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},insertSplitter:function(a,f,e,d){var c=a.region,b=Ext.apply({xtype:'bordersplitter',collapseTarget:a,id:a.id+'-splitter',hidden:e,canResize:a.splitterResize!==!1,splitterFor:a,synthetic:!0},d),g=f+(c==='south'||c==='east'?0:1);if(a.collapseMode==='mini'){b.collapsedCls=a.collapsedCls}a.splitter=this.owner.add(g,b)},getMoveAfterIndex:function(b){var a=Ext.layout.container.Container.prototype.getMoveAfterIndex.apply(this,arguments);if(b.splitter){a++}return a},moveItemBefore:function(c,a){var b;if(a&&a.splitter){b=a.region;if(b==='south'||b==='east'){a=a.splitter}}return Ext.layout.container.Container.prototype.moveItemBefore.call(this,c,a)},onAdd:function(a,i){var b=this,d=a.placeholderFor,f=a.region,e,c,g,h;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(f){Ext.apply(a,b.regionFlags[f]);if(b.owner.isViewport){a.isViewportBorderChild=!0}if(a.initBorderRegion){a.initBorderRegion()}e=f==='center';if(e){b.centerRegion=a}else {c=a.split;g=!!a.hidden;if(typeof c==='object'){h=c;c=!0}if((a.isHorz||a.isVert)&&(c||a.collapseMode==='mini')){b.insertSplitter(a,i,g||!c,h)}}if(!e&&!a.hasOwnProperty('collapseMode')){a.collapseMode=b.panelCollapseMode}if(!a.hasOwnProperty('animCollapse')){if(a.collapseMode!=='placeholder'){a.animCollapse=!1}else {a.animCollapse=b.panelCollapseAnimate}}}else {if(d){Ext.apply(a,b.regionFlags[d.region]);a.region=d.region;a.weight=d.weight}}},onDestroy:function(){this.centerRegion=null;Ext.layout.container.Container.prototype.onDestroy.call(this)},onRemove:function(a,f){var d=this,h=a.region,e=a.splitter,c=d.owner,g=c.destroying,b;if(h){if(a.isCenter){d.centerRegion=null}delete a.isCenter;delete a.isHorz;delete a.isVert;if(e&&!c.destroying){c.doRemove(e,!0)}delete a.splitter}Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(!g&&!f&&a.rendered){b=a.getEl();if(b){b.setStyle('top','');b.setStyle(d.horzPositionProp,'')}}},regionMeta:{center:{splitterDelta:0},north:{splitterDelta:1},south:{splitterDelta:-1},west:{splitterDelta:1},east:{splitterDelta:-1}},regionFlags:{center:{isCenter:!0,isHorz:!1,isVert:!1},north:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'top'},south:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'bottom'},west:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'left'},east:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'right'}},setupSplitterNeighbors:function(l){var i={},m=l.length,k=this.touchedRegions,h,b,j,g,d,a,f,e,c;for(h=0;h{%this.renderBody(out, values)%}'],targetElCls:'x-center-target',beginLayout:function(b){var h=this,f=h.percentRe,e,g,d,c,a,j,i;Ext.layout.container.Fit.prototype.beginLayout.call(this,b);e=b.childItems;for(d=0,g=e.length;dm){a=m}}if(a-d<2){return null}c=new Ext.util.Region(v,t,s,u);i.constraintAdjusters[i.getCollapseDirection()](c,d,a,e);i.dragInfo={minRange:d,maxRange:a,targetSize:q};return c},constraintAdjusters:{left:function(a,c,b,d){a[0]=a.x=a.left=a.right+c;a.right+=b+d.getWidth()},top:function(a,c,b,d){a[1]=a.y=a.top=a.bottom+c;a.bottom+=b+d.getHeight()},bottom:function(a,c,b,d){a.bottom=a.top-c;a.top-=b+d.getHeight()},right:function(a,c,b,d){a.right=a.left-c;a[0]=a.x=a.left=a.x-b+d.getWidth()}},onBeforeStart:function(h){var c=this,f=c.splitter,d=f.collapseTarget,e=f.neighbors,g=e.length,a,b;if(d.collapsed){return !1}for(a=0;ad){a.minWidth=a.el.getWidth()*c}else {a.minHeight=a.el.getHeight()*d}}if(a.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)},a.throttle);a.resize=function(f,d,c){if(c){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)}else {e.apply(null,arguments)}}}},onBeforeStart:function(a){this.startBox=this.target.getBox()},getProxy:function(){var a=this;if(!a.dynamic&&!a.proxy){a.proxy=a.createProxy(a.target||a.el);a.hideProxy=!0}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(a){var b,c=this.proxyCls;if(a.isComponent){b=a.getProxy().addCls(c)}else {b=a.createProxy({tag:'div',role:'presentation',cls:c,id:a.id+'-rzproxy'},Ext.getBody())}b.removeCls('x-proxy-el');return b},onStart:function(a){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(c,b){var a=Ext.fly(b.parentNode);Ext.dd.DragTracker.prototype.onMouseDown.apply(this,arguments);if(a&&a.shim){a.maskIframes()}},onMouseUp:function(b){var a=Ext.fly(this.dragTarget.parentNode);Ext.dd.DragTracker.prototype.onMouseUp.apply(this,arguments);if(a&&a.shim){a.unmaskIframes()}},onDrag:function(a){if(this.dynamic||this.proxy){this.updateDimensions(a)}},updateDimensions:function(s,r){var c=this,h=c.activeResizeHandle.region,d=c.getOffset(c.constrainTo?'dragTarget':null),b=c.startBox,n,f=0,e=0,k,j,l=0,m=0,q,i,g,a,o,p;h=c.convertRegionName(h);switch(h){case 'south':e=d[1];g=2;break;case 'north':e=-d[1];m=-e;g=2;break;case 'east':f=d[0];g=1;break;case 'west':f=-d[0];l=-f;g=1;break;case 'northeast':e=-d[1];m=-e;f=d[0];i=[b.x,b.y+b.height];g=3;break;case 'southeast':e=d[1];f=d[0];i=[b.x,b.y];g=3;break;case 'southwest':f=-d[0];l=-f;e=d[1];i=[b.x+b.width,b.y];g=3;break;case 'northwest':e=-d[1];m=-e;f=-d[0];l=-f;i=[b.x+b.width,b.y+b.height];g=3;break;}a={width:b.width+f,height:b.height+e,x:b.x+l,y:b.y+m};k=Ext.Number.snap(a.width,c.widthIncrement);j=Ext.Number.snap(a.height,c.heightIncrement);if(k!==a.width||j!==a.height){switch(h){case 'northeast':a.y-=j-a.height;break;case 'north':a.y-=j-a.height;break;case 'southwest':a.x-=k-a.width;break;case 'west':a.x-=k-a.width;break;case 'northwest':a.x-=k-a.width;a.y-=j-a.height;}a.width=k;a.height=j}if(a.widthc.maxWidth){a.width=Ext.Number.constrain(a.width,c.minWidth,c.maxWidth);if(l){a.x=b.x+(b.width-a.width)}}else {c.lastX=a.x}if(a.heightc.maxHeight){a.height=Ext.Number.constrain(a.height,c.minHeight,c.maxHeight);if(m){a.y=b.y+(b.height-a.height)}}else {c.lastY=a.y}if(c.preserveRatio||s.shiftKey){n=c.startBox.width/c.startBox.height;o=Math.min(Math.max(c.minHeight,a.width/n),c.maxHeight);p=Math.min(Math.max(c.minWidth,a.height*n),c.maxWidth);if(g===1){a.height=o}else {if(g===2){a.width=p}else {q=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(q>n){a.height=o}else {a.width=p}if(h==='northeast'){a.y=b.y-(a.height-b.height)}else {if(h==='northwest'){a.y=b.y-(a.height-b.height);a.x=b.x-(a.width-b.width)}else {if(h==='southwest'){a.x=b.x-(a.width-b.width)}}}}}}c.setPosition=a.x!==c.startBox.x||a.y!==c.startBox.y;c.resize(a,r)},resize:function(b,e){var a=this,c,d=a.setPosition;if(a.dynamic||!a.dynamic&&e){if(d){a.target.setBox(b)}else {a.target.setSize(b.width,b.height)}}if(!e){c=a.getProxy();if(c&&c!==a.target){if(d||a.hideProxy){c.setBox(b)}else {c.setSize(b.width,b.height)}}}},onEnd:function(a){this.updateDimensions(a,!0);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,'ResizeTracker'],0);Ext.cmd.derive('Ext.resizer.Resizer',Ext.Base,{alternateClassName:'Ext.Resizable',handleCls:'x-resizable-handle',overCls:'x-resizable-handle-over',pinnedCls:'x-resizable-pinned',wrapCls:'x-resizable-wrap',wrappedCls:'x-resizable-wrapped',delimiterRe:/(?:\s*[,;]\s*)|\s+/,dynamic:!0,handles:'s e se',height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:!1,preserveRatio:!1,transparent:!1,possiblePositions:{n:'north',s:'south',e:'east',w:'west',se:'southeast',sw:'southwest',nw:'northwest',ne:'northeast'},ariaRole:'presentation',constructor:function(e){var a=this,d=a.handles,q=Ext.dom.Element.unselectableCls,h=[],b,k,i,m,p,c,f,n,l,g,o,j;if(Ext.isString(e)||Ext.isElement(e)||e.dom){b=e;e=arguments[1]||{};e.target=b}a.mixins.observable.constructor.call(a,e);b=a.target;if(b){if(b.isComponent){b.addClsWithUI('resizable');if(b.minWidth){a.minWidth=b.minWidth}if(b.minHeight){a.minHeight=b.minHeight}if(b.maxWidth){a.maxWidth=b.maxWidth}if(b.maxHeight){a.maxHeight=b.maxHeight}if(b.floating){if(!a.hasOwnProperty('handles')){a.handles='n ne e se s sw w nw'}}a.el=b.getEl()}else {b=a.el=a.target=Ext.get(b)}}else {b=a.target=a.el=Ext.get(a.el)}a.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(a.width)){a.width=Ext.Number.constrain(a.width,a.minWidth,a.maxWidth)}if(Ext.isNumber(a.height)){a.height=Ext.Number.constrain(a.height,a.minHeight,a.maxHeight)}if(a.width!==null||a.height!==null){a.target.setSize(a.width,a.height)}m=a.el.dom.tagName.toUpperCase();if(m==='TEXTAREA'||m==='IMG'||m==='TABLE'){a.originalTarget=a.target;g=b.isComponent?b.getEl():b;a.el.addCls(a.wrappedCls);a.target=a.el=a.el.wrap({role:'presentation',cls:a.wrapCls,id:a.el.id+'-rzwrap',style:g.getStyle(['margin-top','margin-bottom'])});o=g.getPositioning();a.el.setPositioning(o);g.clearPositioning();l=g.getBox();if(o.position!=='absolute'){l.x=0;l.y=0}a.el.setBox(l);g.setStyle('position','absolute');a.isTargetWrapped=!0}a.el.position();if(a.pinned){a.el.addCls(a.pinnedCls)}a.resizeTracker=new Ext.resizer.ResizeTracker({disabled:a.disabled,target:b,el:a.el,constrainTo:a.constrainTo,handleCls:a.handleCls,overCls:a.overCls,throttle:a.throttle,proxy:a.originalTarget?a.el:null,dynamic:a.originalTarget?!0:a.dynamic,originalTarget:a.originalTarget,delegate:'.'+a.handleCls,preserveRatio:a.preserveRatio,heightIncrement:a.heightIncrement,widthIncrement:a.widthIncrement,minHeight:a.minHeight,maxHeight:a.maxHeight,minWidth:a.minWidth,maxWidth:a.maxWidth});a.resizeTracker.on({mousedown:a.onBeforeResize,drag:a.onResize,dragend:a.onResizeEnd,scope:a});if(a.handles==='all'){a.handles='n s e w ne nw se sw'}d=a.handles=a.handles.split(a.delimiterRe);i=a.possiblePositions;p=d.length;k=a.handleCls+' '+a.handleCls+'-{0}';if(a.target.isComponent){j=a.target.baseCls;k+=' '+j+'-handle '+j+'-handle-{0}';if(Ext.supports.CSS3BorderRadius){k+=' '+j+'-handle-{0}-br'}}for(c=0;c')}}Ext.DomHelper.append(a.el,h.join(''));h.length=0;for(c=0;c-1){this.doSelect(a.record,!1,b)}},onCellDeselect:function(a,b){if(a&&a.rowIdx!==undefined){this.doDeselect(a.record,b)}},onSelectChange:function(g,f,e,h){var b=this,a,c,d;if(f){a=b.nextSelection;c='select'}else {a=b.selection;c='deselect'}d=a.view||b.primaryView;if((e||b.fireEvent('before'+c,b,g,a.rowIdx,a.colIdx))!==!1&&h()!==!1){if(f){d.onCellSelect(a)}else {d.onCellDeselect(a);delete b.selection}if(!e){b.fireEvent(c,b,g,a.rowIdx,a.colIdx)}}},refresh:function(){var b=this.getPosition(),a;if(b&&(a=this.store.indexOf(this.selected.last()))!==-1){b.rowIdx=a}},onColumnMove:function(b,d,c,e){var a=b.up('tablepanel');if(a){this.onViewRefresh(a.view)}},onUpdate:function(c){var a=this,b;if(a.isSelected(c)){b=a.selecting?a.nextSelection:a.selection;a.view.onCellSelect(b)}},onViewRefresh:function(d){var f=this,b=f.getPosition(),g,c=d.headerCt,e,a;if(b&&b.view===d){e=b.record;a=b.column;if(!a.isDescendantOf(c)){a=c.queryById(a.id)||c.down('[text="'+a.text+'"]')||c.down('[dataIndex="'+a.dataIndex+'"]')}if(b.record){if(a&&d.store.indexOfId(e.getId())!==-1){g=(new Ext.grid.CellContext(d)).setPosition({row:e,column:a});f.setPosition(g)}}else {f.selection=null}}},selectByPosition:function(b,a){this.setPosition(b,a)}},0,0,0,0,['selection.cellmodel'],0,[Ext.selection,'CellModel'],0);Ext.cmd.derive('Ext.selection.RowModel',Ext.selection.DataViewModel,{enableKeyNav:!0,isRowModel:!0,deselectOnContainerClick:!1,onUpdate:function(b){var d=this,a=d.view,c;if(a&&d.isSelected(b)){c=a.indexOf(b);a.onRowSelect(c);if(b===d.lastFocused){a.onRowFocus(c,!0)}}},onSelectChange:function(c,g,e,j){var a=this,i=a.views||[a.view],k=i.length,b=a.store.indexOf(c),h=g?'select':'deselect',f,d;if((e||a.fireEvent('before'+h,a,c,b))!==!1&&j()!==!1){for(f=0;f '},selectByPosition:function(a,b){if(!a.isCellContext){a=(new Ext.grid.CellContext(this.view)).setPosition(a.row,a.column)}if(!this.checkOnly||a.column===this.column){Ext.selection.RowModel.prototype.selectByPosition.call(this,a,b)}},onSelectChange:function(){Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(!this.suspendChange){this.updateHeaderState()}},onStoreLoad:function(){Ext.selection.RowModel.prototype.onStoreLoad.apply(this,arguments);this.updateHeaderState()},onStoreAdd:function(){Ext.selection.RowModel.prototype.onStoreAdd.apply(this,arguments);this.updateHeaderState()},onStoreRemove:function(){Ext.selection.RowModel.prototype.onStoreRemove.apply(this,arguments);this.updateHeaderState()},onStoreRefresh:function(){Ext.selection.RowModel.prototype.onStoreRefresh.apply(this,arguments);this.updateHeaderState()},maybeFireSelectionChange:function(a){if(a&&!this.suspendChange){this.updateHeaderState()}Ext.selection.RowModel.prototype.maybeFireSelectionChange.apply(this,arguments)},resumeChanges:function(){Ext.selection.RowModel.prototype.resumeChanges.call(this);if(!this.suspendChange){this.updateHeaderState()}},updateHeaderState:function(){var a=this,e=a.store,g=e.getCount(),h=a.views,c=!1,f=0,d,i,b;if(!e.isBufferedStore&&g>0){d=a.selected;c=!0;for(b=0,i=d.getCount();b style="{bodyStyle}">{%this.renderContainer(out,values)%}',_reverseDockNames:{left:'right',right:'left'},_layoutAlign:{top:'end',right:'begin',bottom:'begin',left:'end'},initComponent:function(){var a=this,b=a.initialConfig.layout,d=b&&b.align,c=b&&b.overflowHandler;if(a.plain){a.addCls(a.baseCls+'-plain')}Ext.panel.Bar.prototype.initComponent.call(this);a.setLayout({align:d||(a.getTabStretchMax()?'stretchmax':a._layoutAlign[a.dock]),overflowHandler:c||'scroller'});a.on({click:a.onClick,element:'el',scope:a})},ensureTabVisible:function(a){var b=this,d=b.tabPanel,c=b.layout.overflowHandler;if(b.rendered&&c&&b.tooNarrow&&c.scrollToItem){if(a||a===0){if(!a.isTab){if(Ext.isNumber(a)){a=this.items.getAt(a)}else {if(a.isComponent&&d&&d.items.contains(a)){a=a.tab}}}}if(!a){a=b.activeTab}if(a){c.scrollToItem(a)}}},initRenderData:function(){var a=this;return Ext.apply(Ext.panel.Bar.prototype.initRenderData.call(this),{bodyCls:a.bodyCls,baseBodyCls:a._baseBodyCls,bodyTargetCls:a.bodyTargetCls,stripCls:a._stripCls,dock:a.dock})},setDock:function(f){var b=this,a=b.items,d=b.ownerCt,e,c,g;a=a&&a.items;if(a){for(c=0,g=a.length;c1){if(a&&a!==b&&!a.disabled){c=a}else {c=b.next('tab[disabled=false]')||b.prev('tab[disabled=false]')}}return c||d.activeTab},setActiveTab:function(b,c){var a=this;if(!b.disabled&&b!==a.activeTab){if(a.activeTab){if(a.activeTab.destroyed){a.previousTab=null}else {a.previousTab=a.activeTab;a.activeTab.deactivate();a.deactivateFocusable(a.activeTab)}}b.activate();a.activateFocusable(b);a.activeTab=b;a.needsScroll=!0;if(!c){a.fireEvent('change',a,b,b.card);a.updateLayout()}}},privates:{adjustTabPositions:function(){var g=this,f=g.items.items,h=f.length,a,b,e,c,d;if(!Ext.isIE8){d=g._getTabAdjustProp();while(h--){a=f[h];e=a.el;b=a.lastBox;c=a.isTab?a.getActualRotation():0;if(c===1&&a.isVisible()){e.setStyle(d,b.x+b.width+'px')}else {if(c===2&&a.isVisible()){e.setStyle(d,b.x-b.height+'px')}}}}},applyTargetCls:function(a){this.bodyTargetCls=a},_getTabAdjustProp:function(){return 'left'},getTargetEl:function(){return this.body||this.frameBody||this.el},onClick:function(c,g){var f=this,e,a,b,d;if(c.getTarget('.x-box-scroller')){return}if(Ext.isIE8&&f.vertical){d=f.getTabInfoFromPoint(c.getXY());a=d.tab;b=d.close}else {e=c.getTarget('.'+Ext.tab.Tab.prototype.baseCls);a=e&&Ext.getCmp(e.id);b=a&&a.closeEl&&g===a.closeEl.dom}if(b){c.preventDefault()}if(a&&a.isDisabled&&!a.isDisabled()){a.beforeClick(b);if(a.closable&&b){a.onCloseClick()}else {f.doActivateTab(a)}}},doActivateTab:function(a){var b=this.tabPanel;if(b){if(!a.disabled){b.setActiveTab(a.card)}}else {this.setActiveTab(a)}},onFocusableContainerFocus:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocus.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},onFocusableContainerFocusEnter:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocusEnter.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},focusChild:function(d,c){var b=this,e=b.mixins.focusablecontainer,a;a=e.focusChild.call(b,d,c);if(b.activateOnFocus&&a&&a.isTab){b.doActivateTab(a)}}}},0,['tabbar'],['component','box','container','tabbar'],{'component':!0,'box':!0,'container':!0,'tabbar':!0},['widget.tabbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.tab,'Bar'],0);Ext.cmd.derive('Ext.tab.Panel',Ext.panel.Panel,{alternateClassName:['Ext.TabPanel'],config:{tabBar:undefined,tabPosition:'top',tabRotation:'default',tabStretchMax:!0},removePanelHeader:!0,plain:!1,itemCls:'x-tabpanel-child',minTabWidth:undefined,maxTabWidth:undefined,deferredRender:!0,_defaultTabRotation:{top:0,right:1,bottom:0,left:2},initComponent:function(){var a=this,c=a.activeTab!==null?a.activeTab||0:null,d=a.dockedItems,b=a.header,f=a.tabBarHeaderPosition,e=a.getTabBar(),g;a.layout=new Ext.layout.container.Card(Ext.apply({owner:a,deferredRender:a.deferredRender,itemCls:a.itemCls,activeItem:c},a.layout));if(f!=null){b=a.header=Ext.apply({},b);g=b.items=b.items?b.items.slice():[];b.itemPosition=f;g.push(e);b.hasTabBar=!0}else {d=[].concat(a.dockedItems||[]);d.push(e);a.dockedItems=d}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);c=a.activeTab=a.getComponent(c);if(c){e.setActiveTab(c.tab,!0)}},onRender:function(){var b=this.items.items,c=b.length,a;Ext.panel.Panel.prototype.onRender.apply(this,arguments);for(a=0;a','
    lineempty" role="presentation">
    ','','
    -end-plus {expanderCls}" role="presentation">
    ','','
    {checkboxCls}-checked">
    ','
    ','',' role="presentation" class="{childCls} {baseIconCls} {customIconCls} ','{baseIconCls}-leafparent-expandedparent {iconCls}" ','style="background-image:url({icon})"/>>','','{value}','','{value}',''],uiFields:{checked:1,icon:1,iconCls:1},rowFields:{expanded:1,loaded:1,expandable:1,leaf:1,loading:1,qtip:1,qtitle:1,cls:1},initComponent:function(){var a=this;a.rendererScope=a.scope;a.setupRenderer();a.innerRenderer=a.renderer;a.renderer=a.treeRenderer;Ext.grid.column.Column.prototype.initComponent.call(this);a.scope=a;a.hasCustomRenderer=a.innerRenderer&&a.innerRenderer.length>1},treeRenderer:function(i,a,c,g,f,h,j){var e=this,d=c.get('cls'),b;if(a&&d){a.tdCls+=' '+d}b=e.initTemplateRendererData(i,a,c,g,f,h,j);return e.getTpl('cellTpl').apply(b)},initTemplateRendererData:function(j,i,d,m,l,n,k){var a=this,f=a.innerRenderer,b=d.data,c=d.parentNode,g=k.rootVisible,h=[],e;while(c&&(g||c.data.depth>0)){e=c.data;h[g?e.depth:e.depth-1]=e.isLast?0:1;c=c.parentNode}return {record:d,baseIconCls:a.iconCls,customIconCls:b.icon||b.iconCls?a.customIconCls:'',iconCls:b.iconCls,icon:b.icon,checkboxCls:a.checkboxCls,checked:b.checked,elbowCls:a.elbowCls,expanderCls:a.expanderCls,textCls:a.textCls,leaf:b.leaf,expandable:d.isExpandable(),expanded:b.expanded,isLast:d.isLastVisible(),blankUrl:Ext.BLANK_IMAGE_URL,href:b.href,hrefTarget:b.hrefTarget,lines:h,metaData:i,childCls:a.getChildCls?a.getChildCls()+' ':'',value:f?f.apply(a.rendererScope,arguments):j}},shouldUpdateCell:function(f,a){var e=this,c=0,d,b;if(a){d=a.length;for(;c1;Ext.grid.NavigationModel.prototype.initKeyNav.call(this,e);for(b=0,d=a.keyNav.length;b1},onCellClick:function(f,e,c,d,g,b,a){Ext.grid.NavigationModel.prototype.onCellClick.call(this,f,e,c,d,g,b,a);return !a.nodeToggled},onKeyLeft:function(b){var c=this,d=b.view,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyLeft.call(this,b)}if(b.position.column.isTreeColumn&&a.isExpanded()){d.collapse(a)}else {a=a.parentNode;if(a&&!(a.isRoot()&&!d.rootVisible)){c.setPosition(a,null,b)}}},onKeyRight:function(b){var c=this,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyRight.call(this,b)}if(!a.isLeaf()){if(b.position.column.isTreeColumn&&!a.isExpanded()){b.view.expand(a)}else {if(a.isExpanded()){a=a.childNodes[0];if(a){c.setPosition(a)}}}}},onKeyEnter:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeyEnter.call(this,a)}},onKeySpace:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeySpace.call(this,a)}},toggleCheck:function(a){this.view.onCheckChange(a)},onAsterisk:function(a){this.view.ownerCt.expandAll()}},0,0,0,0,['view.navigation.tree'],0,[Ext.tree,'NavigationModel'],0);Ext.cmd.derive('Ext.tree.View',Ext.view.Table,{config:{selectionModel:{type:'treemodel'}},isTreeView:!0,loadingCls:'x-grid-tree-loading',expandedCls:'x-grid-tree-node-expanded',leafCls:'x-grid-tree-node-leaf',expanderSelector:'.x-tree-expander',checkboxSelector:'.x-tree-checkbox',expanderIconOverCls:'x-tree-expander-over',nodeAnimWrapCls:'x-tree-animator-wrap',ariaRole:'tree',loadMask:!1,rootVisible:!0,expandDuration:250,collapseDuration:250,toggleOnDblClick:!0,stripeRows:!1,treeRowTpl:['{%','this.processRowValues(values);','this.nextTpl.applyOut(values, out, parent);','%}',{priority:10,processRowValues:function(a){var b=a.record,c=a.view;a.rowAttr['data-qtip']=b.get('qtip')||'';a.rowAttr['data-qtitle']=b.get('qtitle')||'';if(b.isExpanded()){a.rowClasses.push(c.expandedCls)}if(b.isLeaf()){a.rowClasses.push(c.leafCls)}if(b.isLoading()){a.rowClasses.push(c.loadingCls)}}}],initComponent:function(){var a=this;if(a.bufferedRenderer){a.animate=!1}else {if(a.initialConfig.animate===undefined){a.animate=Ext.enableFx}}a.store=a.panel.getStore();a.onRootChange(a.store.getRoot());a.animQueue={};a.animWraps={};Ext.view.Table.prototype.initComponent.call(this);a.store.setRootVisible(a.rootVisible);a.addRowTpl(Ext.XTemplate.getTpl(a,'treeRowTpl'))},onFillComplete:function(f,d,b){var a=this,e=a.store,c=e.indexOf(b[0]);d.triggerUIUpdate();if(!b.length||c===-1){return}a.onAdd(a.store,b,c);a.refreshPartner()},refreshPartner:function(){var a=this.lockingPartner;if(a){a.refresh()}},afterComponentLayout:function(e,d,c,b){var a=this.getScrollable();Ext.view.Table.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&!this.bufferedRenderer){a.refresh()}},processUIEvent:function(a){if(a.getTarget('.'+this.nodeAnimWrapCls,this.el)){return !1}return Ext.view.Table.prototype.processUIEvent.call(this,a)},setRootNode:function(a){this.node=a},getChecked:function(){var a=[];this.node.cascadeBy(function(b){if(b.get('checked')){a.push(b)}});return a},isItemChecked:function(a){return a.get('checked')},createAnimWrap:function(b,e){var d=this,c=d.getNode(b),a;a=Ext.fly(c).insertSibling({role:'presentation',tag:'div',cls:d.nodeAnimWrapCls},'after');return {record:b,node:c,el:a,expanding:!1,collapsing:!1,animateEl:a,targetEl:a}},getAnimWrap:function(a,d){if(!this.animate){return null}var c=this.animWraps,b=c[a.internalId];if(d!==!1){while(!b&&a){a=a.parentNode;if(a){b=c[a.internalId]}}}return b},doAdd:function(h,c){var d=this,l=h[0],i=l.parentNode,m=d.all,e,a=d.getAnimWrap(i),g,f,k,j,b;if(!a||!a.expanding){return Ext.view.Table.prototype.doAdd.call(this,h,c)}j=d.bufferRender(h,c,!0);b=j.children;i=a.record;g=a.targetEl;f=g.dom.childNodes;k=f.length;e=c-d.indexInStore(i)-1;if(!k||e>=k){g.appendChild(j.fragment,!0)}else {Ext.fly(f[e]).insertSibling(b,'before',!0)}m.insert(c,b);return b},onRemove:function(h,c,b){var a=this,g,d,e=a.hasListeners.remove,f;if(a.viewReady){g=a.store.getCount()===0;if(a.bufferedRenderer){return Ext.view.Table.prototype.onRemove.call(this,h,c,b)}if(e){f=this.all.slice(b,b+c.length)}if(g){a.refresh()}else {for(d=c.length-1,b+=d;d>=0;--d,--b){a.doRemove(c[d],b)}a.refreshSizePending=!0}if(e){a.fireEvent('itemremove',c,b,f,a)}}},doRemove:function(c,b){var g=this,f=g.all,a=g.getAnimWrap(c),d=f.item(b),e=d?d.dom:null;if(!e||!a||!a.collapsing){return Ext.view.Table.prototype.doRemove.call(this,c,b)}a.targetEl.dom.insertBefore(e,a.targetEl.dom.firstChild);f.removeElement(b)},onBeforeExpand:function(c,d,e){var b=this,a;if(b.rendered&&b.all.getCount()&&b.animate){if(b.getNode(c)){a=b.getAnimWrap(c,!1);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c);a.animateEl.setHeight(0)}else {if(a.collapsing){a.targetEl.select(b.itemSelector).destroy()}}a.expanding=!0;a.collapsing=!1}}},onExpand:function(b){var a=this,h=a.animQueue,i=b.getId(),f=a.getNode(b),g=f?a.indexOf(f):-1,c,d,e;if(a.singleExpand){a.ensureSingleExpand(b)}if(g===-1){return}c=a.getAnimWrap(b,!1);if(!c){b.isExpandingOrCollapsing=!1;a.fireEvent('afteritemexpand',b,g,f);return}d=c.animateEl;e=c.targetEl;d.stopAnimation();h[i]=!0;Ext.on('idle',function(){d.dom.style.height='0px'},null,{single:!0});d.animate({from:{height:0},to:{height:e.dom.scrollHeight},duration:a.expandDuration,listeners:{afteranimate:function(){var f=e.dom.childNodes,d=Ext.Element.getActiveElement();if(f.length){if(!e.contains(d)){d=null}c.el.insertSibling(f,'before',!0);if(d){Ext.fly(d).focus()}}c.el.destroy();a.animWraps[c.record.internalId]=h[i]=null}},callback:function(){b.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemexpand',b,g,f)}})},onBeforeCollapse:function(c,g,f,d,e){var b=this,a;if(b.rendered&&b.all.getCount()){if(b.animate){if(c.isVisible()){a=b.getAnimWrap(c);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c,f)}else {if(a.expanding){a.targetEl.select(this.itemSelector).destroy()}}a.expanding=!1;a.collapsing=!0;a.callback=d;a.scope=e}}else {b.onCollapseCallback=d;b.onCollapseScope=e}}},onCollapse:function(c){var a=this,g=a.animQueue,h=c.getId(),d=a.getNode(c),f=d?a.indexOf(d):-1,b=a.getAnimWrap(c),e;if(!a.all.getCount()||!c.isVisible()){return}if(!b){c.isExpandingOrCollapsing=!1;a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(a.onCollapseCallback,a.onCollapseScope);a.onCollapseCallback=a.onCollapseScope=null;return}e=b.animateEl;g[h]=!0;e.stopAnimation();e.animate({to:{height:0},duration:a.collapseDuration,listeners:{afteranimate:function(){b.el.destroy();a.animWraps[b.record.internalId]=g[h]=null}},callback:function(){c.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(b.callback,b.scope);b.callback=b.scope=null}})},isAnimating:function(a){return !!this.animQueue[a.getId()]},expand:function(a,f,d,e){var g=this,b=!!g.animate,c;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}Ext.suspendLayouts();c=a.expand(f,d,e);Ext.resumeLayouts(!0);return c}},collapse:function(a,e,c,d){var f=this,b=!!f.animate;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}return a.collapse(e,c,d)}},toggle:function(a,d,b,c){if(a.isExpanded()){this.collapse(a,d,b,c)}else {this.expand(a,d,b,c)}},onItemDblClick:function(a,e,d,f){var b=this,c=b.editingPlugin;Ext.view.Table.prototype.onItemDblClick.call(this,a,e,d,f);if(b.toggleOnDblClick&&a.isExpandable()&&!(c&&c.clicksToEdit===2)){b.toggle(a)}},onCellClick:function(d,g,c,i,h,a){var b=this,f=a.position.column,e;if(f.isTreeColumn){if(a.getTarget(b.checkboxSelector,d)&&Ext.isBoolean(e=c.get('checked'))&&b.fireEvent('beforecheckchange',c,e,a)!==!1){b.onCheckChange(a);if(f.stopSelection){a.stopSelection=!0}}else {if(a.getTarget(b.expanderSelector,d)&&c.isExpandable()){b.getNavigationModel().setPosition(a.position);b.toggle(c,a.ctrlKey);a.nodeToggled=!0}}return Ext.view.Table.prototype.onCellClick.call(this,d,g,c,i,h,a)}},onCheckChange:function(c){var a=c.record,b=!a.get('checked');a.set('checked',b);this.fireEvent('checkchange',a,b,c)},onItemMouseOver:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).addCls(this.expanderIconOverCls)}},onItemMouseOut:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).removeCls(this.expanderIconOverCls)}},getStoreListeners:function(){return Ext.apply(Ext.view.Table.prototype.getStoreListeners.call(this),{rootchange:this.onRootChange,fillcomplete:this.onFillComplete})},onBindStore:function(b,f,e,a){var d=a&&a.getRootNode(),c=b&&b.getRootNode();Ext.view.Table.prototype.onBindStore.call(this,b,f,e,a);if(c!==d){this.onRootChange(c,d)}},onRootChange:function(b,c){var a=this,d=a.grid;if(c){a.rootListeners.destroy();a.rootListeners=null}if(b){a.rootListeners=b.on({beforeexpand:a.onBeforeExpand,expand:a.onExpand,beforecollapse:a.onBeforeCollapse,collapse:a.onCollapse,destroyable:!0,scope:a});d.addRelayers(b)}},ensureSingleExpand:function(b){var a=b.parentNode;if(a){a.eachChild(function(a){if(a!==b&&a.isExpanded()){a.collapse()}})}}},0,['treeview'],['component','box','dataview','tableview','gridview','treeview'],{'component':!0,'box':!0,'dataview':!0,'tableview':!0,'gridview':!0,'treeview':!0},['widget.treeview'],0,[Ext.tree,'View'],0);Ext.cmd.derive('Ext.tree.Panel',Ext.panel.Table,{alternateClassName:['Ext.tree.TreePanel','Ext.TreePanel'],viewType:'treeview',treeCls:'x-tree-panel',rowLines:!1,lines:!0,useArrows:!1,singleExpand:!1,ddConfig:{enableDrag:!0,enableDrop:!0},rootVisible:!0,displayField:'text',root:null,normalCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible','scroll'],lockedCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible'],isTree:!0,arrowCls:'x-tree-arrows',linesCls:'x-tree-lines',noLinesCls:'x-tree-no-lines',autoWidthCls:'x-autowidth-table',constructor:function(a){a=a||{};if(a.animate===undefined){a.animate=Ext.isBoolean(this.animate)?this.animate:Ext.enableFx}this.enableAnimations=a.animate;delete a.animate;Ext.panel.Table.prototype.constructor.call(this,a)},initComponent:function(){var a=this,c=[a.treeCls],b,d;if(a.useArrows){c.push(a.arrowCls);a.lines=!1}if(a.lines){c.push(a.linesCls)}else {if(!a.useArrows){c.push(a.noLinesCls)}}b=a.applyStore(a.store);if(!b.getRoot()){b.setRoot({})}b.setRootVisible(a.rootVisible);a.viewConfig=Ext.apply({rootVisible:a.rootVisible,animate:a.enableAnimations,singleExpand:a.singleExpand,node:b.getRoot(),hideHeaders:a.hideHeaders,navigationModel:'tree'},a.viewConfig);if(!a.columns){if(a.initialConfig.hideHeaders===undefined){a.hideHeaders=!0}a.addCls(a.autoWidthCls);a.columns=[{xtype:'treecolumn',text:'Name',flex:1,dataIndex:a.displayField}]}if(a.cls){c.push(a.cls)}a.cls=c.join(' ');Ext.panel.Table.prototype.initComponent.call(this);d=a.getView();a.relayEvents(d,['beforecheckchange','checkchange','afteritemexpand','afteritemcollapse'])},applyStore:function(a){var b=this;if(Ext.isString(a)){a=b.store=Ext.StoreMgr.lookup(a)}else {if(!a||!a.isStore){a=Ext.apply({type:'tree',proxy:'memory'},a);if(b.root){a.root=b.root}if(b.fields){a.fields=b.fields}else {if(b.model){a.model=b.model}}if(b.folderSort){a.folderSort=b.folderSort}a=b.store=Ext.StoreMgr.lookup(a)}else {if(b.root){a=b.store=Ext.data.StoreManager.lookup(a);a.setRoot(b.root);if(b.folderSort!==undefined){a.folderSort=b.folderSort;a.sort()}}}}return a},setStore:function(a){var b=this;a=b.applyStore(a);if(!a.getRoot()){a.setRoot({})}a.setRootVisible(b.rootVisible);if(b.view){b.view.setRootNode(a.getRootNode())}b.bindStore(a)},bindStore:function(b,e){var a=this,c=b.getRoot(),d=a.bufferedRenderer;Ext.panel.Table.prototype.bindStore.apply(this,arguments);if(d){if(d.store){d.bindStore(b)}}b.singleExpand=a.singleExpand;a.storeListeners=a.mon(b,{destroyable:!0,rootchange:a.onRootChange,scope:a});a.storeRelayers=a.relayEvents(b,['beforeload','load']);if(!a.rootVisible&&!b.autoLoad&&!(c.isExpanded()||c.isLoading())){if(c.isLoaded()){c.data.expanded=!0;b.onNodeExpand(c,c.childNodes)}else {if(b.autoLoad!==!1){c.data.expanded=!1;c.expand()}}}b.ownerTree=a;if(!e){a.view.setRootNode(c)}},addRelayers:function(b){var a=this;if(a.rootRelayers){a.rootRelayers.destroy();a.rootRelayers=null}a.rootRelayers=a.mon(b,{destroyable:!0,append:a.createRelayer('itemappend'),remove:a.createRelayer('itemremove'),move:a.createRelayer('itemmove',[0,4]),insert:a.createRelayer('iteminsert'),beforeappend:a.createRelayer('beforeitemappend'),beforeremove:a.createRelayer('beforeitemremove'),beforemove:a.createRelayer('beforeitemmove'),beforeinsert:a.createRelayer('beforeiteminsert'),expand:a.createRelayer('itemexpand',[0,1]),collapse:a.createRelayer('itemcollapse',[0,1]),beforeexpand:a.createRelayer('beforeitemexpand',[0,1]),beforecollapse:a.createRelayer('beforeitemcollapse',[0,1]),scope:a})},unbindStore:function(){var a=this,b=a.store;if(b){Ext.panel.Table.prototype.unbindStore.call(this);Ext.destroy(a.storeListeners,a.storeRelayers,a.rootRelayers);delete b.ownerTree;b.singleExpand=null}},setRootNode:function(){return this.store.setRoot.apply(this.store,arguments)},getRootNode:function(){return this.store.getRoot()},onRootChange:function(a){this.view.setRootNode(a)},getChecked:function(){return this.getView().getChecked()},isItemChecked:function(a){return a.get('checked')},expandNode:function(b,d,a,c){return this.getView().expand(b,d,a,c||this)},collapseNode:function(b,d,a,c){return this.getView().collapse(b,d,a,c||this)},expandAll:function(c,d){var b=this,a=b.getRootNode();if(a){Ext.suspendLayouts();a.expand(!0,c,d||b);Ext.resumeLayouts(!0)}},collapseAll:function(d,a){var c=this,b=c.getRootNode(),e=c.getView();if(b){Ext.suspendLayouts();a=a||c;if(e.rootVisible){b.collapse(!0,d,a)}else {b.collapseChildren(!0,d,a)}Ext.resumeLayouts(!0)}},expandPath:function(p,a){var i=arguments,b=this,j=b.view,g=a&&a.field||b.store.model.idProperty,o,n,k=a&&a.separator||'/',c,e,d,h,f,m,l;if(a&&typeof a==='object'){g=a.field||b.store.model.idProperty;k=a.separator||'/';c=a.callback;e=a.scope;o=a.select;n=a.focus}else {g=i[1]||b.store.model.idProperty;k=i[2]||'/';c=i[3];e=i[4]}if(Ext.isEmpty(p)){return Ext.callback(c,e||b,[!1,null])}f=p.split(k);m=!f[0];if(m){d=b.getRootNode();h=1}else {d=b.store.findNode(g,f[0]);h=0}if(!d||m&&d.get(g)!==f[1]){return Ext.callback(c,e||b,[!1,d])}l=function(m){var d=this,q,k,i;if(++h===f.length){if(o){j.getSelectionModel().select(d)}if(n){j.getNavigationModel().setPosition(d,0)}return Ext.callback(c,e||b,[!0,d,j.getNode(d)])}for(k=0,q=m?m.length:0;k2?b[2]:null,e=a>3?b[3]:'/',d=a>4?b[4]:null,f=a>5?b[5]:!1;document.cookie=h+'='+escape(g)+(c===null?'':'; expires='+c.toUTCString())+(e===null?'':'; path='+e)+(d===null?'':'; domain='+d)+(f===!0?'; secure':'')},get:function(e){var d=document.cookie.split('; '),f=d.length,b,a,c;for(a=0;a'],childEls:['iframeEl'],initComponent:function(){Ext.Component.prototype.initComponent.call(this);this.frameName=this.frameName||this.id+'-frame'},initEvents:function(){var a=this;Ext.Component.prototype.initEvents.call(this);a.iframeEl.on('load',a.onLoad,a)},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{src:this.src,frameName:this.frameName})},getBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){try{return this.getWin().document}catch(b){return null}},getWin:function(){var a=this,b=a.frameName,c=Ext.isIE?a.iframeEl.dom.contentWindow:window.frames[b];return c},getFrame:function(){var a=this;return a.iframeEl.dom},beforeDestroy:function(){this.cleanupListeners(!0);Ext.Component.prototype.beforeDestroy.call(this)},cleanupListeners:function(c){var a,b;if(this.rendered){try{a=this.getDoc();if(a){Ext.get(a).un(this._docListeners);if(c){for(b in a){if(a.hasOwnProperty&&a.hasOwnProperty(b)){delete a[b]}}}}}catch(d){}}},onLoad:function(){var a=this,c=a.getDoc(),b=a.onRelayedEvent;if(c){try{Ext.get(c).on(a._docListeners={mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,scope:a})}catch(d){}Ext.get(this.getWin()).on('beforeunload',a.cleanupListeners,a);this.el.unmask();this.fireEvent('load',this)}else {if(a.src){this.el.unmask();this.fireEvent('error',this)}}},onRelayedEvent:function(a){var b=this.iframeEl,c=b.getTrueXY(),e=a.getXY(),d=a.getTrueXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},load:function(c){var a=this,b=a.loadMask,d=a.getFrame();if(a.fireEvent('beforeload',a,c)!==!1){if(b&&a.el){a.el.mask(b)}d.src=a.src=c||a.src}}},0,['uxiframe'],['component','box','uxiframe'],{'component':!0,'box':!0,'uxiframe':!0},['widget.uxiframe'],0,[Ext.ux,'IFrame'],0);Ext.cmd.derive('Ext.ux.colorpick.Selection',Ext.Base,{mixinId:'colorselection',config:{format:'hex6',value:'FF0000',color:null,previousColor:null},applyColor:function(b){var a=b;if(Ext.isString(a)){a=Ext.ux.colorpick.ColorUtils.parseColor(b)}return a},applyValue:function(a){var b=Ext.ux.colorpick.ColorUtils.parseColor(a);return this.formatColor(b)},formatColor:function(a){return Ext.ux.colorpick.ColorUtils.formats[this.getFormat()](a)},updateColor:function(b){var a=this;if(!a.syncing){a.syncing=!0;a.setValue(a.formatColor(b));a.syncing=!1}},updateValue:function(b,c){var a=this;if(!a.syncing){a.syncing=!0;a.setColor(b);a.syncing=!1}this.fireEvent('change',a,b,c)}},0,0,0,0,0,0,[Ext.ux.colorpick,'Selection'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorUtils',Ext.Base,function(a){var b=Ext.isIE&&Ext.ieVersion<10;return {singleton:!0,constructor:function(){a=this},backgroundTpl:b?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{alpha}{hex}', endColorstr='#{alpha}{hex}');":'background: {rgba};',setBackground:b?function(c,b){if(c){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={hex:a.rgb2hex(b.r,b.g,b.b),alpha:Math.floor(b.a*255).toString(16)},d=f.apply(e);c.applyStyles(d)}}:function(b,d){if(b){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={rgba:a.getRGBAString(d)},c=f.apply(e);b.applyStyles(c)}},formats:{HEX6:function(b){return a.rgb2hex(b.r,b.g,b.b)},HEX8:function(b){var c=a.rgb2hex(b.r,b.g,b.b),d=Math.round(b.a*255).toString(16);if(d.length<2){c+='0'}c+=d.toUpperCase();return c}},hexRe:/#?([0-9a-f]{3,8})/i,rgbaAltRe:/rgba\(\s*([\w#\d]+)\s*,\s*([\d\.]+)\s*\)/,rgbaRe:/rgba\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,rgbRe:/rgb\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,parseColor:function(d){if(!d){return null}var e=this,f=e.colorMap[d],b,c,g;if(f){c={r:f[0],g:f[1],b:f[2],a:1}}else {if(d==='transparent'){c={r:0,g:0,b:0,a:0}}else {b=e.hexRe.exec(d);if(b){b=b[1];switch(b.length){default:return null;case 3:c={r:parseInt(b[0]+b[0],16),g:parseInt(b[1]+b[1],16),b:parseInt(b[2]+b[2],16),a:1};break;case 6:case 8:c={r:parseInt(b.substr(0,2),16),g:parseInt(b.substr(2,2),16),b:parseInt(b.substr(4,2),16),a:parseInt(b.substr(6,2)||'ff',16)/255};break;}}else {b=e.rgbaRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:parseFloat(b[4])}}else {b=e.rgbaAltRe.exec(d);if(b){c=e.parseColor(b[1]);c.a=parseFloat(b[2]);return c}b=e.rgbRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:1}}else {return null}}}}}g=this.rgb2hsv(c.r,c.g,c.b);return Ext.apply(c,g)},getRGBAString:function(b){return 'rgba('+b.r+','+b.g+','+b.b+','+b.a+')'},getRGBString:function(b){return 'rgb('+b.r+','+b.g+','+b.b+')'},hsv2rgb:function(e,i,h){e=e*360;if(e===360){e=0}var c=h*i;var g=e/60;var d=c*(1-Math.abs(g%2-1));var b=[0,0,0];switch(Math.floor(g)){case 0:b=[c,d,0];break;case 1:b=[d,c,0];break;case 2:b=[0,c,d];break;case 3:b=[0,d,c];break;case 4:b=[d,0,c];break;case 5:b=[c,0,d];break;default:break;}var f=h-c;b[0]+=f;b[1]+=f;b[2]+=f;b[0]=Math.round(b[0]*255);b[1]=Math.round(b[1]*255);b[2]=Math.round(b[2]*255);return {r:b[0],g:b[1],b:b[2]}},rgb2hsv:function(e,d,c){e=e/255;d=d/255;c=c/255;var g=Math.max(e,d,c);var k=Math.min(e,d,c);var f=g-k;var h=0;if(f!==0){if(g===e){h=(d-c)/f%6}else {if(g===d){h=(c-e)/f+2}else {if(g===c){h=(e-d)/f+4}}}}var b=h*60;if(b===360){b=0}var j=g;var i=0;if(f!==0){i=f/j}b=b/360;if(b<0){b=b+1}return {h:b,s:i,v:j}},rgb2hex:function(d,c,b){d=d.toString(16);c=c.toString(16);b=b.toString(16);if(d.length<2){d='0'+d}if(c.length<2){c='0'+c}if(b.length<2){b='0'+b}return (d+c+b).toUpperCase()},colorMap:{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]}}},1,0,0,0,0,0,[Ext.ux.colorpick,'ColorUtils'],function(c){var a=c.formats,b={};a['#HEX6']=function(b){return '#'+a.HEX6(b)};a['#HEX8']=function(b){return '#'+a.HEX8(b)};Ext.Object.each(a,function(a,d){b[a.toLowerCase()]=function(b){var e=d(b);return e.toLowerCase()}});Ext.apply(a,b)});Ext.cmd.derive('Ext.ux.colorpick.ColorMapController',Ext.app.ViewController,{onFirstBoxReady:function(){var a=this,c=a.getView(),d=c.down('#dragHandle'),b=d.dd;b.constrain=!0;b.constrainTo=c.getEl();b.initialConstrainTo=b.constrainTo;b.on('drag',Ext.bind(a.onHandleDrag,a));a.mon(c.getEl(),{mousedown:a.onMouseDown,dragstart:a.onDragStart,scope:a})},onHandleDrag:function(k,l){var h=this,a=h.getView(),e=a.down('#dragHandle'),i=e.getX()-a.getX(),j=e.getY()-a.getY(),d=a.getEl(),g=d.getWidth(),f=d.getHeight(),b=i/g,c=j/f;if(b>0.99){b=1}if(c>0.99){c=1}a.fireEvent('handledrag',b,c)},onMouseDown:function(b){var c=this,d=c.getView(),a=d.down('#dragHandle');a.setY(b.getY());a.setX(b.getX());c.onHandleDrag();a.dd.onMouseDown(b,a.dd.el)},onDragStart:function(d){var c=this,b=c.getView(),a=b.down('#dragHandle');a.dd.onDragStart(d,a.dd.el)},onMapClick:function(h){var f=this,a=f.getView(),g=a.down('#dragHandle'),c=a.getXY(),d=h.getXY(),b,e;b=d[0]-c[0];e=d[1]-c[1];g.getEl().setStyle({left:b+'px',top:e+'px'});f.onHandleDrag()},onColorBindingChanged:function(n){var i=this,m=i.getViewModel(),a=m.get('selectedColor'),b,d=i.getView(),l=d.down('#dragHandle'),c=d.getEl(),k=c.getWidth(),j=c.getHeight(),e,f,g,h;b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);e=b.s;g=k*e;f=1-b.v;h=j*f;l.getEl().setStyle({left:g+'px',top:h+'px'})},onHueBindingChanged:function(d){var c=this,e=c.getViewModel(),a,b;a=Ext.ux.colorpick.ColorUtils.hsv2rgb(d,1,1);b=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);c.getView().getEl().applyStyles({'background-color':'#'+b})}},0,0,0,0,['controller.colorpickercolormapcontroller'],0,[Ext.ux.colorpick,'ColorMapController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorMap',Ext.container.Container,{controller:'colorpickercolormapcontroller',cls:'x-colorpicker-colormap',items:[{xtype:'component',cls:'x-colorpicker-colormap-draghandle-container',itemId:'dragHandle',width:1,height:1,draggable:!0,html:'
    '}],listeners:{boxready:{single:!0,fn:'onFirstBoxReady',scope:'controller'},colorbindingchanged:{fn:'onColorBindingChanged',scope:'controller'},huebindingchanged:{fn:'onHueBindingChanged',scope:'controller'}},afterRender:function(){var c=this,a=c.mapGradientUrl,b=c.el;Ext.container.Container.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.ColorMap.prototype.mapGradientUrl=a}b.setStyle('background-image','none');b=c.layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-colormap-blender',src:a})},setPosition:function(c){var b=this,a=b.down('#dragHandle');if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b.fireEvent('colorbindingchanged',c)},setHue:function(b){var a=this;if(!a.getEl()){return}a.fireEvent('huebindingchanged',b)}},0,['colorpickercolormap'],['component','box','container','colorpickercolormap'],{'component':!0,'box':!0,'container':!0,'colorpickercolormap':!0},['widget.colorpickercolormap'],0,[Ext.ux.colorpick,'ColorMap'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorModel',Ext.app.ViewModel,{data:{selectedColor:{r:255,g:255,b:255,h:0,s:1,v:1,a:1},previousColor:{r:0,g:0,b:0,h:0,s:1,v:1,a:1}},formulas:{hex:{get:function(a){var e=a('selectedColor.r').toString(16),d=a('selectedColor.g').toString(16),c=a('selectedColor.b').toString(16),b;b=Ext.ux.colorpick.ColorUtils.rgb2hex(e,d,c);return '#'+b},set:function(a){var b=Ext.ux.colorpick.ColorUtils.hex2rgb(a);this.changeRGB(b)}},red:{get:function(a){return a('selectedColor.r')},set:function(a){this.changeRGB({r:a})}},green:{get:function(a){return a('selectedColor.g')},set:function(a){this.changeRGB({g:a})}},blue:{get:function(a){return a('selectedColor.b')},set:function(a){this.changeRGB({b:a})}},hue:{get:function(a){return a('selectedColor.h')*360},set:function(a){this.changeHSV({h:a/360})}},saturation:{get:function(a){return a('selectedColor.s')*100},set:function(a){this.changeHSV({s:a/100})}},value:{get:function(a){var b=a('selectedColor.v');return b*100},set:function(a){this.changeHSV({v:a/100})}},alpha:{get:function(a){var b=a('selectedColor.a');return b*100},set:function(a){this.set('selectedColor',Ext.applyIf({a:a/100},this.data.selectedColor))}}},changeHSV:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);a.r=b.r;a.g=b.g;a.b=b.b;this.set('selectedColor',a)},changeRGB:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);a.h=b.h;a.s=b.s;a.v=b.v;this.set('selectedColor',a)}},0,0,0,0,['viewmodel.colorpick-selectormodel'],0,[Ext.ux.colorpick,'SelectorModel'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorController',Ext.app.ViewController,{initViewModel:function(){var b=this,a=b.getView();a.childViewModel.bind('{selectedColor}',function(b){a.setColor(b)})},destroy:function(){var c=this,b=c.getView(),a=b.childViewModel;if(a){a.destroy();b.childViewModel=null}Ext.app.ViewController.prototype.destroy.call(this)},changeHSV:function(a){var b=this.getView(),d=b.getColor(),c;Ext.applyIf(a,d);c=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);Ext.apply(a,c);b.setColor(a)},onColorMapHandleDrag:function(a,b){this.changeHSV({s:a,v:1-b})},onValueSliderHandleDrag:function(a){this.changeHSV({v:1-a})},onSaturationSliderHandleDrag:function(a){this.changeHSV({s:1-a})},onHueSliderHandleDrag:function(a){this.changeHSV({h:1-a})},onAlphaSliderHandleDrag:function(c){var a=this.getView(),d=a.getColor(),b=Ext.applyIf({a:1-c},d);a.setColor(b);a.el.repaint()},onPreviousColorSelected:function(c,a){var b=this.getView();b.setColor(a)},onOK:function(){var b=this,a=b.getView();a.fireEvent('ok',a,a.getValue())},onCancel:function(){this.fireViewEvent('cancel',this.getView())},onResize:function(){var c=this,h=c.getView(),b=h.childViewModel,a=c.getReferences(),d,f,g,e;if(!c.hasResizedOnce){c.hasResizedOnce=!0;return}d=b.get('hue');f=b.get('saturation');g=b.get('value');e=b.get('alpha');console.log('h='+d);a.colorMap.setPosition(b.getData());a.hueSlider.setHue(d);a.satSlider.setSaturation(f);a.valueSlider.setValue(g);a.alphaSlider.setAlpha(e)}},0,0,0,0,['controller.colorpick-selectorcontroller'],0,[Ext.ux.colorpick,'SelectorController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorPreview',Ext.Component,{style:'position: relative',html:'
    ',cls:'x-colorpreview',height:256,onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el.down('.btn'),'click',a.onClick,a)},onClick:function(){this.fireEvent('click',this,this.color)},setColor:function(b){var a=this,c=a.getEl();if(!c){return}a.color=b;a.applyBgStyle(b)},bgStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hexAlpha}{hex}', endColorstr='#{hexAlpha}{hex}');":'background: {rgba};'),applyBgStyle:function(a){var h=this,b=Ext.ux.colorpick.ColorUtils,g=h.getEl().down('.filter'),f,d,e,c;f=b.rgb2hex(a.r,a.g,a.b);d=Ext.util.Format.hex(Math.floor(a.a*255),2);e=b.getRGBAString(a);c=this.bgStyleTpl.apply({hex:f,hexAlpha:d,rgba:e});g.applyStyles(c)}},0,['colorpickercolorpreview'],['component','box','colorpickercolorpreview'],{'component':!0,'box':!0,'colorpickercolorpreview':!0},['widget.colorpickercolorpreview'],0,[Ext.ux.colorpick,'ColorPreview'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderController',Ext.app.ViewController,{boxReady:function(e){var b=this,d=b.getDragContainer(),c=b.getDragHandle(),a=c.dd;a.constrain=!0;a.constrainTo=d.getEl();a.initialConstrainTo=a.constrainTo;a.on('drag',b.onHandleDrag,b)},getDragHandle:function(){return this.view.lookupReference('dragHandle')},getDragContainer:function(){return this.view.lookupReference('dragHandleContainer')},onHandleDrag:function(i){var b=this,g=b.getView(),c=b.getDragContainer(),f=b.getDragHandle(),h=f.getY()-c.getY(),e=c.getEl(),d=e.getHeight(),a=h/d;if(a>0.99){a=1}g.fireEvent('handledrag',a)},onMouseDown:function(c){var b=this,a=b.getDragHandle(),d=c.getY();a.setY(d);b.onHandleDrag();a.el.repaint();a.dd.onMouseDown(c,a.dd.el)},onDragStart:function(c){var b=this,a=b.getDragHandle();a.dd.onDragStart(c,a.dd.el)},onMouseUp:function(){var a=this.getDragHandle();a.dd.dragEnded=!0}},0,0,0,0,['controller.colorpick-slidercontroller'],0,[Ext.ux.colorpick,'SliderController'],0);Ext.cmd.derive('Ext.ux.colorpick.Slider',Ext.container.Container,{controller:'colorpick-slidercontroller',baseCls:'x-colorpicker-slider',layout:'center',referenceHolder:!0,listeners:{element:'el',mousedown:'onMouseDown',mouseup:'onMouseUp',dragstart:'onDragStart'},items:{xtype:'container',cls:'x-colorpicker-draghandle-container',reference:'dragHandleContainer',height:'100%',items:{xtype:'component',cls:'x-colorpicker-draghandle-outer',reference:'dragHandle',width:'100%',height:1,draggable:!0,html:'
    '}},getDragHandle:function(){return this.lookupReference('dragHandle')},getDragContainer:function(){return this.lookupReference('dragHandleContainer')}},0,['colorpickerslider'],['component','box','container','colorpickerslider'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0},['widget.colorpickerslider'],0,[Ext.ux.colorpick,'Slider'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderAlpha',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-alpha',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#FF{hex}', endColorstr='#00{hex}');":'background: -mox-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -webkit-linear-gradient(top,rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -o-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -ms-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: linear-gradient(to bottom, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);'),setAlpha:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(1-h/100);c=a.getEl();c.setStyle({top:b})},setColor:function(a){var b=this,e=b.getDragContainer(),c,d;if(!b.getEl()){return}c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d=e.getEl().down('.x-autocontainer-innerCt');d.applyStyles(b.gradientStyleTpl.apply({hex:c,r:a.r,g:a.g,b:a.b}))}},0,['colorpickerslideralpha'],['component','box','container','colorpickerslider','colorpickerslideralpha'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslideralpha':!0},['widget.colorpickerslideralpha'],0,[Ext.ux.colorpick,'SliderAlpha'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderSaturation',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-saturation',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#ffffff');":'background: -mox-linear-gradient(top, #{hex} 0%, #ffffff 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -o-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -ms-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: linear-gradient(to bottom, #{hex} 0%,#ffffff 100%);'),setSaturation:function(g){var d=this,h=d.getDragContainer(),a=d.getDragHandle(),f=h.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-g/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidersaturation'],['component','box','container','colorpickerslider','colorpickerslidersaturation'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidersaturation':!0},['widget.colorpickerslidersaturation'],0,[Ext.ux.colorpick,'SliderSaturation'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderValue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-value',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#000000');":'background: -mox-linear-gradient(top, #{hex} 0%, #000000 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#000000 100%);background: -o-linear-gradient(top, #{hex} 0%,#000000 100%);background: -ms-linear-gradient(top, #{hex} 0%,#000000 100%);background: linear-gradient(to bottom, #{hex} 0%,#000000 100%);'),setValue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-h/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidervalue'],['component','box','container','colorpickerslider','colorpickerslidervalue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidervalue':!0},['widget.colorpickerslidervalue'],0,[Ext.ux.colorpick,'SliderValue'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderHue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-hue',afterRender:function(){var c=this,a=c.gradientUrl,b=c.el;Ext.ux.colorpick.Slider.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.SliderHue.prototype.gradientUrl=a}b.setStyle('background-image','none');b=c.getDragContainer().layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-hue-gradient',src:a})},setHue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(360-h)/360;c=a.getEl();c.setStyle({top:b+'px'})}},0,['colorpickersliderhue'],['component','box','container','colorpickerslider','colorpickersliderhue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickersliderhue':!0},['widget.colorpickersliderhue'],0,[Ext.ux.colorpick,'SliderHue'],0);Ext.cmd.derive('Ext.ux.colorpick.Selector',Ext.container.Container,{controller:'colorpick-selectorcontroller',width:580,height:337,cls:'x-colorpicker',padding:10,layout:{type:'hbox',align:'stretch'},defaultBindProperty:'value',twoWayBindable:['value'],fieldWidth:50,fieldPad:5,showPreviousColor:!1,showOkCancelButtons:!1,listeners:{resize:'onResize'},constructor:function(c){var a=this,b=Ext.Factory.viewModel('colorpick-selectormodel');a.childViewModel=b;a.items=[a.getMapAndHexRGBFields(b),a.getSliderAndHField(b),a.getSliderAndSField(b),a.getSliderAndVField(b),a.getSliderAndAField(b),a.getPreviewAndButtons(b,c)];Ext.container.Container.prototype.constructor.apply(this,arguments)},updateColor:function(b){var a=this;a.mixins.colorselection.updateColor.call(a,b);a.childViewModel.set('selectedColor',b)},updatePreviousColor:function(a){this.childViewModel.set('previousColor',a)},getMapAndHexRGBFields:function(d){var c=this,a={top:0,right:c.fieldPad,bottom:0,left:0},b=c.fieldWidth;return {xtype:'container',viewModel:d,cls:'x-colorpicker-escape-overflow',flex:1,layout:{type:'vbox',align:'stretch'},margin:'0 10 0 0',items:[{xtype:'colorpickercolormap',reference:'colorMap',flex:1,bind:{position:{bindTo:'{selectedColor}',deep:!0},hue:'{selectedColor.h}'},listeners:{handledrag:'onColorMapHandleDrag'}},{xtype:'container',layout:'hbox',defaults:{labelAlign:'top',labelSeparator:'',allowBlank:!1,onChange:function(){if(this.isValid()){Ext.form.field.Base.prototype.onChange.apply(this,arguments)}}},items:[{xtype:'textfield',fieldLabel:'HEX',flex:1,bind:'{hex}',margin:a,readOnly:!0},{xtype:'numberfield',fieldLabel:'R',bind:'{red}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'G',bind:'{green}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'B',bind:'{blue}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:0}]}]}},getSliderAndHField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickersliderhue',reference:'hueSlider',flex:1,bind:{hue:'{selectedColor.h}'},listeners:{handledrag:'onHueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'H',labelAlign:'top',width:a.fieldWidth,labelSeparator:'',bind:'{hue}',hideTrigger:!0,maxValue:360,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndSField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{right:a.fieldPad,left:a.fieldPad},items:[{xtype:'colorpickerslidersaturation',reference:'satSlider',flex:1,bind:{saturation:'{saturation}',hue:'{selectedColor.h}'},listeners:{handledrag:'onSaturationSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'S',labelAlign:'top',labelSeparator:'',bind:'{saturation}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndVField:function(a){var b=this;return {xtype:'container',viewModel:a,cls:'x-colorpicker-escape-overflow',width:b.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickerslidervalue',reference:'valueSlider',flex:1,bind:{value:'{value}',hue:'{selectedColor.h}'},listeners:{handledrag:'onValueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'V',labelAlign:'top',labelSeparator:'',bind:'{value}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndAField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{left:a.fieldPad},items:[{xtype:'colorpickerslideralpha',reference:'alphaSlider',flex:1,bind:{alpha:'{alpha}',color:{bindTo:'{selectedColor}',deep:!0}},listeners:{handledrag:'onAlphaSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'A',labelAlign:'top',labelSeparator:'',bind:'{alpha}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getPreviewAndButtons:function(c,b){var a=[{xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{selectedColor}',deep:!0}}}];if(b.showPreviousColor){a.push({xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{previousColor}',deep:!0}},listeners:{click:'onPreviousColorSelected'}})}if(b.showOkCancelButtons){a.push({xtype:'button',text:'OK',margin:'10 0 0 0',handler:'onOK'},{xtype:'button',text:'Cancel',margin:'10 0 0 0',handler:'onCancel'})}return {xtype:'container',viewModel:c,width:70,margin:'0 0 0 10',items:a,layout:{type:'vbox',align:'stretch'}}}},1,['colorselector'],['component','box','container','colorselector'],{'component':!0,'box':!0,'container':!0,'colorselector':!0},['widget.colorselector'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Selector'],0);Ext.cmd.derive('Ext.ux.colorpick.ButtonController',Ext.app.ViewController,{afterRender:function(a){a.updateColor(a.getColor())},destroy:function(){var a=this.getView(),b=a.colorPickerWindow;if(b){b.destroy();a.colorPickerWindow=a.colorPicker=null}Ext.app.ViewController.prototype.destroy.call(this)},getPopup:function(){var b=this.getView(),a=b.colorPickerWindow,c;if(!a){a=Ext.create(b.getPopup());b.colorPickerWindow=a;a.colorPicker=b.colorPicker=c=a.lookupReference('selector');c.setFormat(b.getFormat());c.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:this});a.on({close:'onColorPickerCancel',scope:this})}return a},onClick:function(){var e=this,d=e.getView(),b=d.getColor(),c=e.getPopup(),a=c.colorPicker;a.setColor(b);a.setPreviousColor(b);c.showBy(d,'tl-br?')},onColorPickerOK:function(b){var a=this.getView(),c=b.getColor(),d=a.colorPickerWindow;d.hide();a.setColor(c)},onColorPickerCancel:function(){var b=this.getView(),a=b.colorPickerWindow;a.hide()},syncColor:function(a){var b=this.getView();Ext.ux.colorpick.ColorUtils.setBackground(b.filterEl,a)}},0,0,0,0,['controller.colorpick-buttoncontroller'],0,[Ext.ux.colorpick,'ButtonController'],0);Ext.cmd.derive('Ext.ux.colorpick.Button',Ext.Component,{controller:'colorpick-buttoncontroller',baseCls:'x-colorpicker-button',width:20,height:20,childEls:['btnEl','filterEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},defaultBindProperty:'value',twoWayBindable:'value',renderTpl:'
    ',listeners:{click:'onClick',element:'btnEl'},updateColor:function(b){var a=this,c=a.colorPicker;a.mixins.colorselection.updateColor.call(a,b);Ext.ux.colorpick.ColorUtils.setBackground(a.filterEl,b);if(c){c.setColor(b)}},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}}},0,['colorbutton'],['component','box','colorbutton'],{'component':!0,'box':!0,'colorbutton':!0},['widget.colorbutton'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Button'],0);Ext.cmd.derive('Ext.ux.colorpick.Field',Ext.form.field.Picker,{editable:!1,matchFieldWidth:!1,beforeBodyEl:['
    '],cls:'x-colorpicker-field',childEls:['swatchEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},afterRender:function(){Ext.form.field.Picker.prototype.afterRender.call(this);this.updateValue(this.value)},createPicker:function(){var a=this,c=a.getPopup(),b;a.colorPickerWindow=c=Ext.create(c);a.colorPicker=b=c.lookupReference('selector');b.setFormat(a.getFormat());b.setColor(a.getColor());b.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:a});c.on({close:'onColorPickerCancel',scope:a});return a.colorPickerWindow},onColorPickerOK:function(a){this.setColor(a.getColor());this.collapse()},onColorPickerCancel:function(){this.collapse()},onExpand:function(){var a=this.getColor();this.colorPicker.setPreviousColor(a)},setValue:function(c){var a=this,b=a.applyValue(c);(arguments.callee.$previous||Ext.form.field.Picker.prototype.setValue).call(this,b);a.updateValue(b)},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}},updateValue:function(c){var a=this,b;if(!a.syncing){a.syncing=!0;a.setColor(c);a.syncing=!1}b=a.getColor();Ext.ux.colorpick.ColorUtils.setBackground(a.swatchEl,b);if(a.colorPicker){a.colorPicker.setColor(b)}}},0,['colorfield'],['component','box','field','textfield','pickerfield','colorfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'pickerfield':!0,'colorfield':!0},['widget.colorfield'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Field'],0);Ext.cmd.derive('Ext.ux.layout.ResponsiveColumn',Ext.layout.container.Auto,{states:{small:1000,large:0},_responsiveCls:'x-responsivecolumn',initLayout:function(){this.innerCtCls+=' '+this._responsiveCls;Ext.layout.container.Auto.prototype.initLayout.call(this)},beginLayout:function(j){var a=this,h=Ext.Element.getViewportWidth(),g=a.states,e=Infinity,i=a.innerCt,f=a._currentState,d,b,c;for(d in g){b=g[d]||Infinity;if(h<=b&&b<=e){e=b;c=d}}if(c!==f){i.replaceCls(f,c,a._responsiveCls);a._currentState=c}Ext.layout.container.Auto.prototype.beginLayout.apply(this,arguments)},onAdd:function(a){Ext.layout.container.Auto.prototype.onAdd.call(this,a);var b=a.responsiveCls;if(b){a.addCls(b)}}},0,0,0,0,['layout.responsivecolumn'],0,[Ext.ux.layout,'ResponsiveColumn'],function(a){if(Ext.isIE8){a.override({responsiveSizePolicy:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:0},setsItemSize:!0,calculateItems:function(b,f){var m=this,k=b.targetContext,j=b.childItems,l=j.length,i=f.gotWidth,g=f.width,o,n,d,c,e,h;if(i===!1){k.domBlock(m,'width');return !1}if(!i){return !0}for(d=0;dc?c:a}return a},onClick:function(a){var b=this.valueFromEvent(a);this.setValue(b)},onMouseEnter:function(){this.element.addCls(this.overCls)},onMouseLeave:function(){this.element.removeCls(this.overCls)},onMouseMove:function(a){var b=this.valueFromEvent(a);this.setTrackingValue(b)},updateFamily:function(a){this.element.setStyle('fontFamily',"'"+a+"'")},updateGlyphs:function(){this.refreshGlyphs()},updateLimit:function(){this.refreshGlyphs()},updateScale:function(a){this.element.setStyle('fontSize',a)},updateTooltip:function(){this.refreshTooltip()},updateTooltipText:function(c){var e=this.innerEl,b=Ext.tip&&Ext.tip.QuickTipManager,d=b&&b.tip,a;if(b){e.dom.setAttribute('data-qtip',c);this.trackerEl.dom.setAttribute('data-qtip',c);a=d&&d.activeTarget;a=a&&a.el;if(a&&e.contains(a)){d.update(c)}}},updateTrackingValue:function(d){var a=this,b=a.trackerEl,c=a.valueToPercent(d);b.setStyle('width',c);a.refreshTooltip()},updateTrackOver:function(a){this.element[a?'addCls':'removeCls'](this.trackOverCls)},updateValue:function(e,g){var a=this,h=a.getAnimate(),c=a.valueEl,f=a.valueToPercent(e),b,d;if(a.isConfiguring||!h){c.setStyle('width',f)}else {c.stopAnimation();c.animate(Ext.merge({from:{width:a.valueToPercent(g)},to:{width:f}},h))}a.refreshTooltip();if(!a.isConfiguring){if(a.hasListeners.change){a.fireEvent('change',a,e,g)}b=a.getWidgetColumn&&a.getWidgetColumn();d=b&&a.getWidgetRecord&&a.getWidgetRecord();if(d&&b.dataIndex){d.set(b.dataIndex,e)}}},afterCachedConfig:function(){this.refresh();return Ext.Widget.prototype.afterCachedConfig.apply(this,arguments)},initConfig:function(a){this.isConfiguring=!0;this.callParent([a]);this.refresh()},setConfig:function(){var a=this;a.isReconfiguring=!0;a.callParent(arguments);a.isReconfiguring=!1;a.refresh();return a},destroy:function(){this.tip=Ext.destroy(this.tip);Ext.Widget.prototype.destroy.call(this)},privates:{getGlyphTextNode:function(b){var a=b.lastChild;if(!a||a.nodeType!==3){a=b.ownerDocument.createTextNode('');b.appendChild(a)}return a},getTooltipData:function(){var a=this;return {component:a,tracking:a.getTrackingValue(),trackOver:a.getTrackOver(),value:a.getValue()}},refresh:function(){var a=this;if(a.invalidGlyphs){a.refreshGlyphs(!0)}if(a.invalidTooltip){a.refreshTooltip(!0)}},refreshGlyphs:function(j){var a=this,g=!j&&(a.isConfiguring||a.isReconfiguring),i,c,h,b,d,e,f;if(!g){i=a.getGlyphTextNode(a.innerEl.dom);f=a.getGlyphTextNode(a.valueEl.dom);e=a.getGlyphTextNode(a.trackerEl.dom);c=a.getGlyphs();h=a.getLimit();for(b=d='';h--;){d+=c[0];b+=c[1]}i.nodeValue=d;f.nodeValue=b;e.nodeValue=b}a.invalidGlyphs=g},refreshTooltip:function(f){var a=this,c=!f&&(a.isConfiguring||a.isReconfiguring),b=a.getTooltip(),d,e;if(!c){b=a.getTooltip();if(b){d=a.getTooltipData();e=b(d);a.setTooltipText(e)}}a.invalidTooltip=c},valueFromEvent:function(g){var a=this,e=a.innerEl,j=g.getX(),d=a.getRounding(),i=e.getX(),c=j-i,f=e.getWidth(),h=a.getLimit(),b;if(a.getInherited().rtl){c=f-c}b=c/f*h;b=Math.ceil(b/d)*d;return b},valueToPercent:function(a){a=a/this.getLimit()*100;return a+'%'}}},0,['rating'],['widget','rating'],{'widget':!0,'rating':!0},['widget.rating'],0,[Ext.ux.rating,'Picker'],0);Ext.cmd.derive('common.BandFilter',Ext.container.ButtonGroup,{alternateClassName:['Portal.BandFilter'],filters:['g','r','i','z','Y','RGB'],defaultFilter:'rgb',buttonWidth:30,vertical:!1,config:{availableFilters:[]},initComponent:function(){var a=this;if(!a.filters){Ext.Error.raise('You must specify a filters config.')}a.items=this.createFilters();var b='bands';if(a.itemId){b='bands_'+a.itemId}if(a.vertical){a.layout={type:'vbox',align:'stretch'}}else {a.layout={type:'hbox',align:'stretch'}}a.defaults={allowDepress:!1,enableToggle:!0,toggleGroup:b,toggleHandler:function(b){if(b.pressed){var c=b.value;a.fireEvent('onfilter',c,b,a)}}};Ext.container.ButtonGroup.prototype.initComponent.apply(this,arguments)},createFilters:function(){var c=this,f=[],d,a,b;for(var e=0;e1){b.width=50}if(c.defaultFilter==a){b.pressed=!0}f.push(b)}return f},getFilter:function(){var g=this,a=null,b,e,c;b=this.filters;e=Array();c=this.items;for(var d=0;d0){a.getTrigger('clear').show();a.getTrigger('search').hide();if(this.getMinSearch()>0&&a.getValue().length>=this.getMinSearch()){if(a.isValid()&&a.getValue()!==''){this.fireEvent('search',a.getValue(),this)}}}else {a.getTrigger('clear').hide();a.getTrigger('search').show();this.fireEvent('cancel')}},buffer:500},triggers:{clear:{cls:'x-form-clear-trigger',handler:function(a){a.reset();this.getTrigger('clear').hide();this.getTrigger('search').show();this.fireEvent('cancel')},hidden:!0},search:{cls:'x-form-search-trigger',handler:function(){}}},config:{minSearch:null}},0,['common-searchfield'],['component','box','field','textfield','common-searchfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'common-searchfield':!0},['widget.common-searchfield'],0,[common,'SearchField'],0);Ext.cmd.derive('common.data.proxy.CrsfToken',Ext.Base,{singleton:!0,constructor:function(){Ext.Ajax.on('beforerequest',function(b,a){if(!(/^http:.*/.test(a.url)||/^https:.*/.test(a.url))){if(typeof a.headers=='undefined'){a.headers={'Accept':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')}}else {a.headers['Application']='application/json';a.headers['X-CSRFToken']=Ext.util.Cookies.get('csrftoken')}}},this)}},1,0,0,0,0,0,[common.data.proxy,'CrsfToken'],0);Ext.cmd.derive('common.data.proxy.Django',Ext.data.proxy.Rest,{headers:{'Accept':'application/json;'},startParam:'offset',sortParam:'ordering',reader:{type:'json',rootProperty:'results',totalProperty:'count'},writer:{},actionMethods:{create:'POST',read:'GET',update:'PATCH',destroy:'DELETE'},encodeSorters:function(b){var c=[],a,d;for(var e in b){a=b[e];d=(a.getDirection()=='DESC'?'-':'')+a.getProperty();c.push(d)}return c.join()},getParams:function(b){var a=Ext.data.proxy.Rest.prototype.getParams.apply(this,arguments);if(!b.isReadOperation){return a}var c=b.getFilters();delete a[this.getFilterParam()];Ext.each(c,function(f){var e=f.getProperty(),d=f.getValue(),c,g;switch(f.getOperator()){case '<':c=Ext.String.format('{0}__lt',e);a[c]=d;break;case '<=':c=Ext.String.format('{0}__lte',e);a[c]=d;break;case '>=':c=Ext.String.format('{0}__gte',e);a[c]=d;break;case '>':c=Ext.String.format('{0}__gt',e);a[c]=d;break;case '!=':c=Ext.String.format('{0}__ne',e);a[c]=d;break;case 'in':c=Ext.String.format('{0}__in',e);a[c]=d.join();break;case 'like':c=Ext.String.format('{0}__icontains',e);a[c]=d;break;case 'range':c=Ext.String.format('{0}__range',e);g=Ext.String.format('{0},{1}',d[0],d[1]);a[c]=g;break;default:a[e]=d;}});return a},buildUrl:function(c){var b=this,e=c.getOperation(),h=e.getRecords(),g=h?h[0]:null,i=b.getFormat(),a=b.getUrl(c),d,f;if(g&&!g.phantom){d=g.getId()}else {d=e.getId()}if(b.getAppendId()&&b.isValidId(d)||e.action==='update'){if(!a.match(b.slashRe)){a+='/'}a+=encodeURIComponent(d);f=c.getParams();if(f){delete f[b.getIdParam()]}a+='/'}if(i){if(!a.match(b.periodRe)){a+='.'}a+=i}c.setUrl(a);return Ext.data.RestProxy.superclass.buildUrl.apply(this,arguments)}},0,0,0,0,['proxy.django'],0,[common.data.proxy,'Django'],0);Ext.cmd.derive('common.store.MyStore',Ext.data.Store,{proxy:{type:'django'},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c;switch(a.status){case 403:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;case 408:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Maximum execution time exceeded.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});break;}}}}}},0,0,0,0,0,0,[common.store,'MyStore'],0);Ext.cmd.derive('common.contact.ContactController',Ext.app.ViewController,{onFormCancel:function(){this.getView().lookupReference('windowForm').getForm().reset();this.getView().close()},onFormSubmit:function(){var c=this.getView(),d=c.lookupReference('windowForm'),b=d.getForm(),a=b.getValues();a.current_url=window.location.href;a.current_user=window.sessionStorage.dri_username;if(b.isValid()){Ext.Ajax.request({url:'/dri/api/contact/',method:'POST',params:a,success:function(){c.close();Ext.MessageBox.alert('Thank you!','Your inquiry has been sent. We will respond as soon as possible.')},failure:function(a,b){Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Sorry, message was not sent.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this})}})}}},0,0,0,0,['controller.contact'],0,[common.contact,'ContactController'],0);Ext.cmd.derive('common.contact.Contact',Ext.window.Window,{reference:'contactWindow',title:'Contact Us',controller:'contact',width:400,height:500,minWidth:300,minHeight:380,layout:'fit',resizable:!0,modal:!0,defaultFocus:'firstName',closeAction:'destroy',items:[{xtype:'form',reference:'windowForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{margin:'0 0 20 0',xtype:'component',html:['Thank you for visiting our site! We welcome your feedback; ','please click the button below to send us a message. We will ','respond to your inquiry as quickly as possible.']},{xtype:'textfield',fieldLabel:'Name',name:'name',allowBlank:!1},{xtype:'textfield',fieldLabel:'Your Email Address',vtype:'email',name:'from',allowBlank:!1},{xtype:'textfield',fieldLabel:'Subject',name:'subject',allowBlank:!1},{xtype:'textareafield',fieldLabel:'How can we help?',labelAlign:'top',flex:1,margin:'0',name:'message',allowBlank:!1,emptyText:'Describe the problem or share your ideas.'}],buttons:[{text:'Cancel',handler:'onFormCancel'},{text:'Send',handler:'onFormSubmit'}]}]},0,['form-contact-window'],['component','box','container','panel','window','form-contact-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'form-contact-window':!0},['widget.form-contact-window'],0,[common.contact,'Contact'],0);Ext.cmd.derive('common.footer.FooterController',Ext.app.ViewController,{onClickContact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()}},0,0,0,0,['controller.footer'],0,[common.footer,'FooterController'],0);Ext.cmd.derive('common.footer.Footer',Ext.toolbar.Toolbar,{controller:'footer',cls:'des-portal-footer',height:28,layout:{pack:'center',align:'middle'},viewModel:{data:{}},items:[{xtype:'tbtext',html:'Powered by LIneA | Dark Energy Survey | NCSA',cls:'des-portal-footer-text'}]},0,['dri-footer'],['component','box','container','toolbar','dri-footer'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-footer':!0},['widget.dri-footer'],0,[common.footer,'Footer'],0);Ext.cmd.derive('common.ToolbarController',Ext.app.ViewController,{listen:{component:{'dri-header':{afterrender:'onAfterRender'}}},logout:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/dri/api/api-auth/logout/?next=/dri/apps/',b,c);window.location.assign(a)},projectHome:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/',b,c);window.location.assign(a)},contact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()},about:function(){window.open('http://www.linea.gov.br')},onAfterRender:function(){var a=this;a.loadUsername();a.loaddTutorials()},loaddTutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');a.addFilter([{property:'app_name',value:c.get('internal_name')}]);a.load({scope:this,callback:b.onLoadTutorials})},onLoadTutorials:function(){var b=this,d=b.getViewModel(),c=d.getStore('tutorials'),a=b.lookupReference('headermenututorials');if(c.count()>0){a.enable()}else {a.disable()}},tutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');if(this.wincontact){this.wincontact=null}this.wintutorials=Ext.create('common.help.Tutorials',{store:a});this.wintutorials.show()},onClickHelp:function(){var e=this,f=e.getViewModel(),c=window.location.protocol,d=window.location.host,b=f.get('help_url'),a;a=Ext.String.format('{0}//{1}/{2}',c,d,b);window.open(a)},loadUsername:function(){var a=this,b=a.getViewModel();Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(c){var a=JSON.parse(c.responseText);b.set('username',a.username);window.dri_username=a.username}})}},0,0,0,0,['controller.toolbar'],0,[common,'ToolbarController'],0);Ext.cmd.derive('common.help.TutorialsController',Ext.app.ViewController,{onSelect:function(e,c){var d=this,b=d.lookupReference('video'),a;a=Ext.create('Ext.Component',{flex:1,html:''});b.removeAll();b.add(a)}},0,0,0,0,['controller.tutorials'],0,[common.help,'TutorialsController'],0);Ext.cmd.derive('common.help.Tutorials',Ext.window.Window,{title:'Tutorials',controller:'tutorials',config:{store:null},initComponent:function(){var a=this;Ext.apply(this,{layout:'border',width:700,height:400,minWidth:300,minHeight:280,resizable:!0,maximizable:!0,modal:!0,closeAction:'destroy',items:[{xtype:'grid',reference:'tutorials_grid',region:'west',split:!0,hideHeaders:!0,width:200,store:a.getStore(),columns:[{dataIndex:'ttr_title',flex:1}],listeners:{select:'onSelect'}},{xtype:'panel',region:'center',reference:'video',split:!0,layout:{type:'vbox',pack:'start',align:'stretch'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)}},0,['tutorials-window'],['component','box','container','panel','window','tutorials-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'tutorials-window':!0},['widget.tutorials-window'],0,[common.help,'Tutorials'],0);Ext.cmd.derive('common.header.Toolbar',Ext.toolbar.Toolbar,{controller:'toolbar',cls:'des-portal-headerbar toolbar-btn-shadow',layout:{type:'hbox',align:'middle'},viewModel:{data:{home:'',desPortalLogo:'resources/des-portal-logo.png',tooltip:'Home',username:''},stores:{tutorials:{fields:['id','application','application_display_name','ttr_title','ttr_src','ttr_description'],remoteSort:!0,remoteFilter:!0,autoLoad:!1,pageSize:0,proxy:{type:'django',url:'/dri/api/tutorial/'}}}},viewItems:function(){return [{xtype:'component',cls:'des-portal-logo',bind:{html:'Home'}},{xtype:'component',cls:'des-portal-appname',bind:{html:'{name}'},flex:1},'->',{xtype:'button',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',itemId:'btnusername',bind:{text:'{username}'}},{xtype:'button',iconCls:'x-fa fa-home',ui:'white-toolbar',cls:'delete-focus-bg',scale:'medium',handler:'projectHome',tooltip:'Home of the Science Server'},{xtype:'button',reference:'headermenu',iconCls:'x-fa fa-bars',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',arrowVisible:!1,menu:[{text:'About LIneA',handler:'about'},{text:'Contact Us',handler:'contact'},{text:'Tutorials',iconCls:'x-fa fa-question-circle',reference:'headermenututorials',disabled:!0,handler:'tutorials'},{text:'Help',iconCls:'x-fa fa-question',reference:'headermenuhelp',handler:'onClickHelp'},'-',{text:'Log out',iconCls:'x-fa fa-sign-out',handler:'logout'}]}]},initComponent:function(){this.items=this.viewItems();Ext.toolbar.Toolbar.prototype.initComponent.call(this)},afterRender:function(){var c=this,b=window.location.href,a;a=b.split('#')[0];c.getViewModel().set('home',a);Ext.toolbar.Toolbar.prototype.afterRender.apply(this,arguments)}},0,['dri-header'],['component','box','container','toolbar','dri-header'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-header':!0},['widget.dri-header'],0,[common.header,'Toolbar'],0);Ext.cmd.derive('common.model.Dataset',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'tag',type:'int'},{name:'tag_display_name',type:'string'},{name:'release',type:'int'},{name:'release_name',type:'string'},{name:'release_display_name',type:'string'},{name:'tite',type:'int'},{name:'run',type:'string'},{name:'date',type:'string'},{name:'tli_tilename',type:'string'},{name:'tli_ra',type:'float'},{name:'tli_ra',type:'float'},{name:'tli_dec',type:'float'},{name:'tli_urall',type:'float'},{name:'tli_udecll',type:'float'},{name:'tli_uraur',type:'float'},{name:'tli_udecur',type:'float'},{name:'release_tag',type:'string',convert:function(b,a){return Ext.String.format('{0} - {1}',a.get('release_display_name'),a.get('tag_display_name'))}},{name:'image_src_ptif',type:'string'},{name:'image_src_thumbnails',type:'string'},{name:'g',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'g',a.get('tli_tilename'))}},{name:'r',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'r',a.get('tli_tilename'))}},{name:'i',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'i',a.get('tli_tilename'))}},{name:'z',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'z',a.get('tli_tilename'))}},{name:'y',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'y',a.get('tli_tilename'))}},{name:'irg',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'irg',a.get('tli_tilename'))}}],isInsideTile:function(a,e){var d=this,a=parseFloat(a),e=parseFloat(e),b,c,f,g;if(a>180){a=a-360}b=d.get('tli_urall');c=d.get('tli_uraur');f=d.get('tli_udecll');g=d.get('tli_udecur');if(b>180){b=b-360}if(c>180){c=c-360}if(a>b&&af&&e180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decul',type:'float',convert:function(b,a){value=a.get('tli_decul');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'rall',type:'float',convert:function(b,a){value=a.get('tli_rall');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decll',type:'float',convert:function(b,a){value=a.get('tli_decll');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'ralr',type:'float',convert:function(b,a){value=a.get('tli_ralr');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'declr',type:'float',convert:function(b,a){value=a.get('tli_declr');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'raur',type:'float',convert:function(b,a){value=a.get('tli_raur');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decur',type:'float',convert:function(b,a){value=a.get('tli_decur');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}}]},0,0,0,0,0,0,[common.model,'Footprint'],0);Ext.cmd.derive('common.model.Map',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_user_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'prd_is_public',type:'boolean'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'prd_filter',type:'string'},{name:'prl_related',type:'string'},{name:'prl_cross_identification',type:'string'},{name:'prl_cross_property',type:'string'},{name:'tablename',type:'string'},{name:'mpa_nside',type:'int'},{name:'mpa_ordering',type:'string'}]},0,0,0,0,0,0,[common.model,'Map'],0);Ext.cmd.derive('common.model.Survey',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'srv_release',type:'int'},{name:'srv_filter',type:'int'},{name:'filter',type:'string'},{name:'srv_project',type:'string'},{name:'srv_display_name',type:'string'},{name:'srv_url',type:'string'},{name:'srv_target',type:'string'},{name:'srv_fov',type:'string'}]},0,0,0,0,0,0,[common.model,'Survey'],0);Ext.cmd.derive('common.model.Tag',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'tag_release',type:'int'},{name:'tag_name',type:'string'},{name:'tag_display_name',type:'string'},{name:'tag_status',type:'boolean'},{name:'tag_install_date',type:'date'},{name:'is_new',type:'boolean',convert:function(e,b){if(b.get('tag_install_date')){var a=b.get('tag_install_date'),c=-2,d=Ext.Date.add(new Date(),Ext.Date.DAY,c);return Ext.Date.between(a,d,a)}}}]},0,0,0,0,0,0,[common.model,'Tag'],0);Ext.cmd.derive('common.store.Tiles',common.store.MyStore,{pageSize:100,remoteFilter:!0,remoteSort:!0,proxy:{type:'django',timeout:90000,url:'/dri/api/tiles/'},filterByRaDec:function(a,d){var a=parseFloat(a),d=parseFloat(d),b,c,e;this.each(function(f){if(a>180){a=a-360}b=f.get('tli_urall');c=f.get('tli_uraur');if(b>180){b=b-360}if(c>180){c=c-360}if(ba&&f.get('tli_udecur')>d){e=f;return !1}},this);return e}},0,0,0,0,['store.tiles'],0,[common.store,'Tiles'],0);Ext.cmd.derive('common.store.Datasets',common.store.Tiles,{model:'common.model.Dataset',remoteFilter:!0,remoteSort:!0,pageSize:100,proxy:{type:'django',timeout:90000,url:'/dri/api/dataset/'}},0,0,0,0,['store.datasets'],0,[common.store,'Datasets'],0);Ext.cmd.derive('common.store.Footprints',common.store.Tiles,{model:'common.model.Footprint',remoteFilter:!0,remoteSort:!0,pageSize:0,proxy:{type:'django',timeout:90000,url:'/dri/api/footprints/',reader:{type:'array'}}},0,0,0,0,['store.footprints'],0,[common.store,'Footprints'],0);Ext.cmd.derive('common.store.Maps',common.store.MyStore,{model:'common.model.Map',autoLoad:!1,pageSize:0,remoteFilter:!0,proxy:{type:'django',url:'/dri/api/map/'}},0,0,0,0,['store.maps'],0,[common.store,'Maps'],0);Ext.cmd.derive('common.store.MyTreeStore',Ext.data.TreeStore,{proxy:{type:'django',appendId:!1,reader:{type:'json',rootProperty:'children'}},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c=JSON.parse(a.response.responseText);switch(a.status){case 403:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;default:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this});}}}}}},0,0,0,0,0,0,[common.store,'MyTreeStore'],0);Ext.cmd.derive('common.store.Surveys',common.store.MyStore,{model:'common.model.Survey',autoLoad:!1,remoteFilter:!0,remoteSort:!0,pageSize:0,proxy:{type:'django',url:'/dri/api/surveys/'}},0,0,0,0,['store.surveys'],0,[common.store,'Surveys'],0);Ext.cmd.derive('common.store.Tags',common.store.MyStore,{model:'common.model.Tag',remoteFilter:!0,remoteSort:!0,proxy:{type:'django',url:'/dri/api/tags/'},sorters:[{property:'tag_display_name',direction:'ASC'}]},0,0,0,0,['store.tags'],0,[common.store,'Tags'],0);Ext.cmd.derive('visiomatic.Interface',Ext.Base,{makeToolbar:function(){return Ext.create('Ext.toolbar.Toolbar',{items:[]})},makeToolbarButtons:function(){var a=this,c=a.getAuxTools(),b=[];if(a.getEnableShift()){b.push({xtype:'button',tooltip:'Switch between Visiomatic / Aladdin.',iconCls:'x-fa fa-exchange',scope:a,handler:a.onShift})}if(a.getEnableLink()){b.push({xtype:'button',tooltip:'Get link',iconCls:'x-fa fa-link',scope:a,handler:a.getLinkToPosition})}if(c.length>0){Ext.each(c,function(a){b.push(a)})}return b},makeMousePosition:function(){var a=this.getMap();return Ext.DomHelper.append(a._controlCorners['topright'],{tag:'div',cls:'leaflet-right leaflet-control leaflet-control-wcs-dialog visiomatic-mouse-position',html:'
    Mouse RA, Dec (0,0)
    '})}},0,0,0,0,0,0,[visiomatic,'Interface'],0);Ext.cmd.derive('visiomatic.VisiomaticModel',Ext.app.ViewModel,{data:{release:null,tag:null,dataset:null}},0,0,0,0,['viewmodel.visiomatic'],0,[visiomatic,'VisiomaticModel'],0);Ext.cmd.derive('visiomatic.VisiomaticController',Ext.app.ViewController,{},0,0,0,0,['controller.visiomatic'],0,[visiomatic,'VisiomaticController'],0);Ext.cmd.derive('visiomatic.catalog.Catalogs',Ext.tree.Panel,{initComponent:function(){var a=this;Ext.apply(this,{emptyText:'No data to display.',hideHeaders:!0,rootVisible:!1,useArrows:!0,selModel:{mode:'SINGLE'},columns:[{xtype:'treecolumn',text:'Name',flex:2,sortable:!0,dataIndex:'text',renderer:a.getTooltipName}],tbar:[{xtype:'textfield',emptyText:'Search by name',reference:'SearchField',flex:1,triggers:{clear:{cls:'x-form-clear-trigger',handler:'cancelFilter',hidden:!0},search:{cls:' x-form-search-trigger'}},listeners:{change:'filterCatalogByname',buffer:500}}]});Ext.tree.Panel.prototype.initComponent.apply(this,arguments)},getTooltipName:function(d,e,b){var f=this,c,a;if(b.get('leaf')){c=new Ext.XTemplate('
    ','{prd_display_name}','','


    {description}

    ','
    ','
    ');a=c.apply(b.data);e.tdAttr='data-qtip="'+a+'"'}return d}},0,['visiomatic-catalogs-tree'],['component','box','container','panel','tablepanel','treepanel','visiomatic-catalogs-tree'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'treepanel':!0,'visiomatic-catalogs-tree':!0},['widget.visiomatic-catalogs-tree'],0,[visiomatic.catalog,'Catalogs'],0);Ext.cmd.derive('visiomatic.model.CatalogTree',Ext.data.Model,{fields:[{name:'id'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'epr_name',type:'string'},{name:'epr_username',type:'string'},{name:'epr_start_date',type:'date'},{name:'epr_end_date',type:'date'},{name:'epr_readme',type:'string'},{name:'epr_comment',type:'string'},{name:'ctl_num_columns',type:'int'},{name:'ctl_num_tiles',type:'int'},{name:'ctl_num_objects',type:'int'},{name:'cds_source',type:'string'},{name:'cds_fieldnames',type:'string'},{name:'editable',type:'boolean',defaultValue:!1},{name:'markable',type:'boolean',defaultValue:!1},{name:'release_display_name',type:'string'},{name:'external_catalog',type:'boolean',defaultValue:!1}]},0,0,0,0,0,0,[visiomatic.model,'CatalogTree'],0);Ext.cmd.derive('visiomatic.store.CatalogsTree',common.store.MyTreeStore,{model:'visiomatic.model.CatalogTree',autoLoad:!1,remoteFilter:!0,proxy:{api:{read:'/dri/api/catalog/get_class_tree_by_group/'}}},0,0,0,0,['store.catalogs-overlay-tree'],0,[visiomatic.store,'CatalogsTree'],0);Ext.cmd.derive('visiomatic.store.Overlays',Ext.data.ArrayStore,{remoteFilter:!1,remoteSort:!1,autoLoad:!1,pageSize:0},0,0,0,0,['store.overlays'],0,[visiomatic.store,'Overlays'],0);Ext.cmd.derive('visiomatic.model.FilterCondition',Ext.data.Model,{fields:[{name:'id',type:'int','default':null,persist:!1},{name:'filterset',type:'int'},{name:'fcd_property',type:'int'},{name:'fcd_property_name',type:'string'},{name:'fcd_operation',type:'string'},{name:'fcd_value',type:'string'},{name:'operator_display_name',type:'string',persist:!1},{name:'property_display_name',type:'string',persist:!1,convert:function(a,c){var b=c.get('fcd_property_name');switch(b){case '_meta_rating':a='Rating';break;case '_meta_reject':a='Reject';break;}return a}}]},0,0,0,0,0,0,[visiomatic.model,'FilterCondition'],0);Ext.cmd.derive('visiomatic.store.FilterConditions',Ext.data.Store,{model:'visiomatic.model.FilterCondition',remoteFilter:!1,pageSize:0,sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.overlay-filter-conditions'],0,[visiomatic.store,'FilterConditions'],0);Ext.cmd.derive('visiomatic.catalog.CatalogViewModel',Ext.app.ViewModel,{stores:{catalogs:{type:'catalogs-overlay-tree'},overlays:{type:'overlays'}},data:{visiomatic:null,currentColor:'1dff00',currentFilters:null,pointType:0,pointSize:1},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0},dataset:{type:'common.model.Dataset',create:!0}}},0,0,0,0,['viewmodel.catalogoverlay'],0,[visiomatic.catalog,'CatalogViewModel'],0);Ext.cmd.derive('visiomatic.model.Object',Ext.data.Model,{idProperty:'_meta_id',fields:[{name:'_meta_id'},{name:'_meta_catalog_id',type:'int'},{name:'_meta_is_system',type:'boolean'},{name:'_meta_ra',type:'float'},{name:'_meta_dec',type:'float'},{name:'_meta_radius',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Object'],0);Ext.cmd.derive('visiomatic.store.Objects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,model:'visiomatic.model.Object',pageSize:5000,proxy:{type:'django',timeout:90000,api:{read:'/dri/api/catalogobjects/'}}},0,0,0,0,['store.overlay-objects'],0,[visiomatic.store,'Objects'],0);Ext.cmd.derive('visiomatic.store.ExternalObjects',common.store.MyStore,{remoteFilter:!0,remoteSort:!1,autoLoad:!1,model:'visiomatic.model.Object',pageSize:10000,proxy:{type:'django',timeout:60000,api:{read:'/dri/api/vizier/'}}},0,0,0,0,['store.overlay-external-objects'],0,[visiomatic.store,'ExternalObjects'],0);Ext.cmd.derive('visiomatic.model.Overlay',Ext.data.Model,{idProperty:'id',fields:[{name:'id',type:'int'},{name:'name',type:'string'},{name:'color',type:'string'},{name:'visible',type:'boolean'},{name:'status',type:'string'},{name:'status_message',type:'string'},{name:'count',type:'int'},{name:'total_count',type:'int'},{name:'excess',type:'int'},{name:'catalog'},{name:'layers'},{name:'objects'},{name:'filters'},{name:'objectUrl'},{name:'pointSize',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Overlay'],0);Ext.cmd.derive('visiomatic.filter.FiltersController',Ext.app.ViewController,{listen:{component:{'overlay-filters-window':{changecatalog:'onChangeCatalog'}}},onChangeCatalog:function(b){var a=this,d=a.getViewModel(),c=d.getStore('contents');a.clearImputs();c.addFilter({property:'pcn_product_id',value:b.get('id')})},onLoadContents:function(a){},onAddFilter:function(){var d=this,a=d.getViewModel(),b=a.get('content'),f=a.get('operator'),h=a.get('value'),g=a.getStore('filters'),e=a.get('afilters'),c;c=Ext.create('visiomatic.model.FilterCondition',{fcd_property:b.get('id'),fcd_property_name:b.get('column_name'),fcd_operation:f.get('name'),fcd_value:h,property_display_name:b.get('display_name'),operator_display_name:f.get('display_name')});e.push(c);g.add(c);a.set('afilters',e);d.clearImputs();d.checkHaveFilters()},onRemoveFilterClick:function(f,d,c,e,g,b){var a=this;Ext.MessageBox.confirm('','The Filter will be removed. Do you want continue?',function(h){if(h==='yes'){b.drop();a.createAFilters();a.checkHaveFilters()}},this)},createAFilters:function(){var c=this,e=c.getViewModel(),d=c.lookup('gridFilters'),b=d.getStore(),a=[];console.log(b);b.each(function(b){console.log(b);a.push(b)},this);e.set('afilters',a)},checkHaveFilters:function(){var b=this,a=b.getViewModel(),c=a.get('afilters'),d=b.lookup('BtnApply');if(c.length>0){a.set('haveFilters',!0)}else {a.set('haveFilters',!1)}},onSelectProperty:function(f,c){var a=this,b=a.getViewModel(),d=b.get('afilters'),e},onSelectOperator:function(b,a){},onCancelFilter:function(){this.getView().close()},onApplyFilter:function(){var a=this,e=a.getView(),c=a.getViewModel(),d=c.get('currentCatalog'),b=c.get('afilters');if(b.length>0){a.applyFilters(d,b)}},applyFilters:function(c,d){var b=this,a=b.getView();a.fireEvent('applyfilters',d,c,b);a.close()},clearImputs:function(){var e=this,a=e.getReferences(),c=a.cmbProperty,b=a.cmbOperator,d=a.txtValue;c.reset();b.reset();d.reset()}},0,0,0,0,['controller.overlay_filters'],0,[visiomatic.filter,'FiltersController'],0);Ext.cmd.derive('visiomatic.model.CatalogContent',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'product_id',type:'int'},{name:'setting_id',type:'int'},{name:'column_name',type:'string'},{name:'class_id',type:'int'},{name:'category',type:'string'},{name:'display_name',type:'string'},{name:'ucd',type:'string'},{name:'unit',type:'string'},{name:'reference',type:'string'},{name:'mandatory',type:'boolean'},{name:'content_setting',type:'int'},{name:'is_visible',type:'boolean'},{name:'order',type:'int'}]},0,0,0,0,0,0,[visiomatic.model,'CatalogContent'],0);Ext.cmd.derive('visiomatic.store.ProductDisplayContents',common.store.MyStore,{model:'visiomatic.model.CatalogContent',remoteFilter:!0,remoteSort:!1,pageSize:0,proxy:{url:'/dri/api/productcontent/get_display_content/'},sorters:[{property:'order',direction:'ASC'},{property:'display_name',direction:'ASC'}],ucds:['meta.id;meta.main','pos.eq.ra;meta.main','pos.eq.dec;meta.main'],check_ucds:function(){var a=this,b=[];a.each(function(c){if(a.ucds.indexOf(c.get('ucd'))!==-1){b.push(!0)}},a);if(b.length===a.ucds.length){return !0}else {return !1}}},0,0,0,0,['store.overlay-product-display-contents'],0,[visiomatic.store,'ProductDisplayContents'],0);Ext.cmd.derive('visiomatic.filter.FiltersModel',Ext.app.ViewModel,{stores:{contents:{type:'overlay-product-display-contents',storeId:'productContents',autoLoad:!1},filters:{type:'overlay-filter-conditions',storeId:'filterConditions',autoLoad:!1},operators:{fields:['name','display_name','type'],data:[{name:'=',display_name:'is equal to',type:'text'},{name:'!=',display_name:'is not equal to',type:'text'},{name:'>',display_name:'is greater than',type:'text'},{name:'>=',display_name:'is greater than or equal to',type:'text'},{name:'<',display_name:'is less than',type:'text'},{name:'<=',display_name:'is less than or equal to',type:'text'}]}},data:{operator:null,value:null,haveFilters:!1,afilters:[]},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0}}},0,0,0,0,['viewmodel.overlay_filters'],0,[visiomatic.filter,'FiltersModel'],0);Ext.cmd.derive('visiomatic.filter.FiltersWindow',Ext.window.Window,{title:'Filters',width:500,height:300,modal:!0,autoShow:!0,controller:'overlay_filters',viewModel:'overlay_filters',closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null},items:[{xtype:'form',reference:'filterForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'fieldset',title:'Add condition',items:[{xtype:'fieldcontainer',layout:'hbox',defaults:{flex:1},items:[{xtype:'combobox',emptyText:'Property',itemId:'cmbProperty',reference:'cmbProperty',publishes:'id',displayField:'display_name',bind:{store:'{contents}',selection:'{content}'},listeners:{select:'onSelectProperty'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,margin:'0 5 0 0'},{xtype:'combobox',itemId:'cmbOperator',reference:'cmbOperator',publishes:'name',displayField:'display_name',emptyText:'Operator',bind:{store:'{operators}',selection:'{operator}'},listeners:{select:'onSelectOperator'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,forceSelection:!0,margin:'0 5 0 0'},{xtype:'textfield',reference:'txtValue',emptyText:'Value',bind:{value:'{value}'},margin:'0 5 0 0',allowBlank:!1},{xtype:'button',iconCls:'x-fa fa-plus',width:40,flex:!1,handler:'onAddFilter'}]}]}]},{xtype:'grid',reference:'gridFilters',layout:'fit',border:!0,framed:!0,hideHeaders:!0,flex:1,bind:{store:'{filters}'},viewConfig:{markDirty:!1},columns:[{text:'Property',dataIndex:'property_display_name',flex:1},{text:'Operator',dataIndex:'operator_display_name',flex:1},{text:'Value',dataIndex:'fcd_value',flex:1},{xtype:'actioncolumn',width:60,sortable:!1,menuDisabled:!0,align:'center',items:[{iconCls:'x-fa fa-minus-circle color-soft-red',tooltip:'Remove condition',handler:'onRemoveFilterClick'}]}]}],buttons:[{text:'Cancel',handler:'onCancelFilter'},{text:'Ok',reference:'BtnApply',handler:'onApplyFilter',bind:{disabled:'{!haveFilters}'}}],setCurrentCatalog:function(a){var b=this;if(a&&a.get('id')>0){b.currentCatalog=a;b.getViewModel().set('currentCatalog',a);b.fireEvent('changecatalog',a)}},setFilterSet:function(a){var d=this,c=d.getViewModel(),b=c.getStore('filters'),e=d.lookup('btnDeleteFilterSet'),f=d.lookup('txtFilter');if(a&&a.get('id')>0){c.set('filterSet',a);c.set('filterName',a.get('fst_name'));f.setReadOnly(!0);e.enable();b.addFilter({property:'filterset',value:a.get('id')});b.load()}else {c.set('filterName',null);f.setReadOnly(!1);e.disable();b.clearFilter();b.removeAll(!0)}}},0,['overlay-filters-window'],['component','box','container','panel','window','overlay-filters-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'overlay-filters-window':!0},['widget.overlay-filters-window'],0,[visiomatic.filter,'FiltersWindow'],0);Ext.cmd.derive('visiomatic.catalog.CatalogController',Ext.app.ViewController,{listen:{component:{'visiomatic-catalog-overlay':{changedataset:'onChangeDataset'}}},baseFilters:[],winFilter:null,onChangeDataset:function(d){var a=this,c=a.getViewModel(),b=c.getStore('overlays');b.removeAll();a.loadCatalogs()},loadCatalogs:function(){var c=this,d=c.getViewModel(),b=d.getStore('catalogs'),a;a=[{property:'group',operator:'in',value:['objects_catalog','targets','value_added_catalogs','external_catalogs']}];c.baseFilters=a;b.addFilter(a);b.load()},onSelectCatalog:function(){var a=this,d=a.getViewModel(),b=d.get('currentFilters'),c=a.lookup('CatalogsTree'),f=c.selection,e=a.lookup('btnFilter');b=[]},filterCatalogByname:function(){var a=this,h=a.lookup('CatalogsTree'),b=a.lookup('SearchField'),c=h.getStore(),d=b.getValue(),e=[],f;if(d.length>0){b.getTrigger('clear').show();if(c.isLoading()){console.log('Store is Loading: %o',c.isLoading());var g=c.getProxy();g.abort();console.log('Store proxy abort')}f={property:'search',value:d};e.push(f);a.filterCatalogs(e)}else {b.getTrigger('clear').hide();a.filterCatalogs()}},filterCatalogs:function(a){var d=this,g=d.getViewModel(),b=g.getStore('catalogs'),f=d.baseFilters,e,c=Ext.clone(f);b.clearFilter(!0);b.removeAll();if(a&&Array.isArray(a)){for(index in a){e=a[index];c.push(e)}}b.filter(c)},cancelFilter:function(){var b=this,a=b.lookup('SearchField');a.reset();b.filterCatalogs();a.getTrigger('clear').hide()},onClickOverlay:function(){var b=this,c=b.getViewModel(),k=b.lookup('CatalogsTree'),d=k.selection,j=c.get('currentColor'),i=c.get('currentFilters'),h=c.getStore('overlays'),e=b.lookup('cmbPointType'),g=e.getValue(),f=c.get('pointSize')/1000,a;c.set('currentCatalog',d);a=Ext.create('visiomatic.model.Overlay',{name:d.get('prd_display_name'),catalog:d,color:Ext.String.format('#{0}',j),visible:!0,count:null,layers:null,pointType:g,pointSize:f,status:'loading',filters:null});h.add(a);if(!d.get('external_catalog')){a.set('objects',Ext.create('visiomatic.store.Objects',{}));a.set('filters',i);b.loadObjects(a)}else {a.set('objects',Ext.create('visiomatic.store.ExternalObjects',{}));a.set('objectUrl',!0);b.loadExternalCatalogObjects(a)}},loadExternalCatalogObjects:function(b){var d=this,f=d.getViewModel(),e=f.get('visiomatic'),c=b.get('objects'),a;a=e.getBounds();c.addFilter([{property:'cds_source',value:b.get('catalog').get('cds_source')},{property:'cds_fieldnames',value:b.get('catalog').get('cds_fieldnames')},{property:'lat',value:a.lat},{property:'lng',value:a.lng},{property:'dlat',value:a.dlat},{property:'dlng',value:a.dlng}]);c.load({callback:function(e,c,a){d.onLoadObjects(b,c,a)}})},loadObjects:function(a){var f=this,h=f.getViewModel(),g=h.get('visiomatic'),b=a.get('objects'),d=a.get('filters'),c=[],e;e=g.getBox();b.addFilter([{property:'product',value:a.get('catalog').get('id')},{property:'coordinates',value:JSON.stringify(e)}]);if(d!==null){Ext.each(d,function(b){c.push({property:b.get('fcd_property_name'),operator:b.get('fcd_operation'),value:b.get('fcd_value')})});b.addFilter(c)}b.load({callback:function(d,c,b){f.onLoadObjects(a,c,b)}})},onLoadObjects:function(a,c,g){var i=this,j=i.getViewModel(),h=j.get('visiomatic'),b=a.get('objects'),d,e;a.set('count',b.count());if(!g){var f=c.error.statusText;if(c.error.status==0){f='Communication Failure or Time out'}d=Ext.String.format('Sorry, there was a server error, and this operation can not be performed.
    Error: {0} - {1}',c.error.status,f);a.set('status','error');a.set('status_message',d);console.log('Server Side ERROR: %o - %o',c.error.status,c.error.statusText)}else {if(b.count()>0){if(b.totalCount>b.pageSize){e=b.totalCount-b.pageSize;d=Ext.String.format('The query returned more objects than the limit.
    {0} objects are not being displayed.
    Limit: {1}
    Query returned: {2}
    ',e,b.pageSize,b.totalCount);a.set('total_count',b.totalCount);a.set('excess',e);a.set('status','alert');a.set('status_message',d)}else {a.set('status','ok')}}else {a.set('status','warning')}layers=h.overlayCatalog(a.get('name'),b,{color:a.get('color'),objectUrl:a.get('objectUrl'),pointType:a.get('pointType'),pointSize:a.get('pointSize')});a.set('layers',layers)}},onRemoveOverlay:function(j,g,i){var h=this,d=h.getViewModel(),f=d.getStore('overlays'),e=d.get('visiomatic'),a=f.getAt(g),b=a.get('layers'),c=a.get('objects');if(c.loading){c.getProxy().abort()}if(b!==null){e.showHideLayer(b,!1)}a.erase()},onChangeVisibility:function(i,e,g){var h=this,b=h.getViewModel(),d=b.getStore('overlays'),c=b.get('visiomatic'),f=d.getAt(e),a=f.get('layers');if(a!==null){c.showHideLayer(a,g)}},onClickBtnFilter:function(){var a=this,d=a.getViewModel(),c=a.lookup('CatalogsTree'),b=c.selection;if(b&&b.get('id')>0){a.winFilter=Ext.create('visiomatic.filter.FiltersWindow',{listeners:{scope:a,applyfilters:'onApplyFilters'}});a.winFilter.setCurrentCatalog(b);a.winFilter.show()}},onApplyFilters:function(a,d){var b=this,c=b.getViewModel();if(a.length>0){c.set('currentFilters',a)}}},0,0,0,0,['controller.catalogoverlay'],0,[visiomatic.catalog,'CatalogController'],0);Ext.cmd.derive('visiomatic.catalog.Submit',Ext.form.Panel,{initComponent:function(){var a=this;Ext.apply(this,{bodyPadding:5,layout:{type:'vbox',align:'stretch'},items:[{xtype:'fieldset',flex:1,border:!1,items:[{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'tbtext',html:'Color:',width:45},{xtype:'colorbutton',bind:'{currentColor}',width:55,margin:'0 20 0 5',tooltip:'Choose a color. Click on the color and then on ok.'}]},{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'combobox',labelWidth:45,flex:1,reference:'cmbPointType',fieldLabel:'Marker',displayField:'name',valueField:'name',queryMode:'local',store:{fields:['name'],data:[{'name':'circle'},{'name':'ellipse'},{'name':'square'},{'name':'triangle'}]},value:'circle'},{xtype:'numberfield',name:'pointsize',fieldLabel:'Size',labelWidth:40,width:100,bind:'{pointSize}',minValue:1,maxValue:10,step:0.2,margin:'0 0 0 5'}]},{xtype:'button',iconCls:'x-fa fa-filter',text:'Filters',tooltip:'Filters',handler:'onClickBtnFilter',reference:'btnFilter',width:100}]}],buttons:[{text:'Apply',handler:'onClickOverlay'}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['visiomatic-catalogs-submit'],['component','box','container','panel','form','visiomatic-catalogs-submit'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'visiomatic-catalogs-submit':!0},['widget.visiomatic-catalogs-submit'],0,[visiomatic.catalog,'Submit'],0);Ext.cmd.derive('visiomatic.catalog.OverlayGrid',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{hideHeaders:!0,viewConfig:{markDirty:!1,listeners:{scope:a,render:a.addTooltipToColumnName,destroy:function(a){delete a.tip}}},columns:[{text:'Visible',xtype:'checkcolumn',dataIndex:'visible',width:30,listeners:{checkchange:'onChangeVisibility'},align:'center'},{text:'Color',dataIndex:'color',width:30,align:'center',renderer:a.renderColumnColor},{text:'Name',dataIndex:'name',tdCls:'nameTdCls',flex:2,renderer:a.renderColumnName},{menuDisabled:!0,xtype:'actioncolumn',width:30,items:[{iconCls:'x-fa fa-trash-o color-overlay-grid-icon',tooltip:'Remove',handler:'onRemoveOverlay'}]}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},addTooltipToColumnName:function(a){var b=this;a.tip=Ext.create('Ext.tip.ToolTip',{target:a.getId(),delegate:a.itemSelector+' .nameTdCls',trackMouse:!0,listeners:{beforeshow:function updateTipBody(c){var d=c.target.component;var e=d.getRecord(c.triggerElement);c.update(b.getTooltipName(e))}}})},getTooltipName:function(a){var f=this,b=a.get('filters'),d,e,c;if(a.get('status')!=='error'){d=Ext.String.format('{0}
    Entries: {1}',a.get('name'),a.get('count'));if(b!==null&&b.length>0){c='
    Filters:
    ';Ext.each(b,function(b){e=Ext.String.format('{0} {1} {2}
    ',b.get('fcd_property_name'),b.get('operator_display_name'),b.get('fcd_value'));c+=e});d+=c}return d}else {return a.get('status_message')}},renderColumnName:function(a,d,b){var c=16;if(a.length>c){a=a.substr(0,c);a=a+'...'}if(b.get('status')!=='loading'&&b.get('status')!=='error'){return Ext.String.format('{0} ({1} entries)',a,b.get('count'))}else {return a}},renderColumnColor:function(a,c,b){switch(b.get('status')){case 'loading':a='';break;case 'ok':a=Ext.String.format('',a);break;case 'alert':msg=b.get('status_message');a='';c.tdAttr='data-qtip= "'+msg+'"';break;case 'warning':a='';break;case 'error':msg=b.get('status_message');a='';break;}return a}},0,['visiomatic-catalogs-overlays-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','visiomatic-catalogs-overlays-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'visiomatic-catalogs-overlays-grid':!0},['widget.visiomatic-catalogs-overlays-grid'],0,[visiomatic.catalog,'OverlayGrid'],0);Ext.cmd.derive('visiomatic.catalog.CatalogOverlayWindow',Ext.window.Window,{controller:'catalogoverlay',viewModel:'catalogoverlay',config:{visiomatic:null,dataset:null},initComponent:function(){var a=this;Ext.apply(this,{title:'Catalog Overlay',width:600,height:450,closeAction:'hide',layout:{type:'hbox',align:'stretch'},items:[{xtype:'panel',split:!0,flex:1,framed:!0,layout:{type:'vbox',align:'stretch'},items:[{xtype:'visiomatic-catalogs-tree',reference:'CatalogsTree',flex:1,bind:{store:'{catalogs}'},listeners:{select:'onSelectCatalog'}},{xtype:'visiomatic-catalogs-submit',height:150,bind:{disabled:'{!CatalogsTree.selection.leaf}'}}]},{xtype:'visiomatic-catalogs-overlays-grid',split:!0,framed:!0,flex:1,bind:{store:'{overlays}'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setVisiomatic:function(a){this.visiomatic=a;this.getViewModel().set('visiomatic',a)},setDataset:function(c){var a=this,d=a.getDataset(),b=!1;if(d!==null&&d.get('id')>0){if(d.get('id')===c.get('id')){b=!1}else {b=!0}}else {b=!0}if(b){a.dataset=c;a.getViewModel().set('dataset',c);a.fireEvent('changedataset',c,a)}}},0,['visiomatic-catalog-overlay'],['component','box','container','panel','window','visiomatic-catalog-overlay'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'visiomatic-catalog-overlay':!0},['widget.visiomatic-catalog-overlay'],0,[visiomatic.catalog,'CatalogOverlayWindow'],0);Ext.cmd.derive('visiomatic.download.FitsController',Ext.app.ViewController,{listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},onChangeLoadFits:function(b,c){var f=this,e=f.getView(),a=e.getViewModel(),d=a.getStore('fitsFiles');a.set('tag',c);a.set('tilename',b);d.filter([{property:'tilename',value:b},{property:'tag',value:c}])}},0,0,0,0,['controller.fits-files'],0,[visiomatic.download,'FitsController'],0);Ext.cmd.derive('visiomatic.model.FitsFiles',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/get_fits_by_tilename'},fields:[{name:'filename',type:'string','default':null,persist:!1},{name:'filter',type:'string','default':null,persist:!1},{name:'order',type:'int','default':null,persist:!1},{name:'file_source',type:'string','default':null,persist:!1}]},0,0,0,0,0,0,[visiomatic.model,'FitsFiles'],0);Ext.cmd.derive('visiomatic.store.FitsFiles',common.store.MyStore,{model:'visiomatic.model.FitsFiles',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/get_fits_by_tilename'},sorters:[{property:'order',direction:'ASC'},{property:'filename',direction:'ASC'}]},0,0,0,0,['store.fits-files'],0,[visiomatic.store,'FitsFiles'],0);Ext.cmd.derive('visiomatic.download.FitsModel',Ext.app.ViewModel,{stores:{fitsFiles:{type:'fits-files'}}},0,0,0,0,['viewmodel.fits-files'],0,[visiomatic.download,'FitsModel'],0);Ext.cmd.derive('visiomatic.download.DescutDownloadWindow',Ext.window.Window,{viewModel:'fits-files',controller:'fits-files',title:'Download',width:600,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'vbox',align:'stretch'},initComponent:function(){var a=this;Ext.apply(this,{layout:'fit',items:[{xtype:'gridpanel',scrollable:!0,bind:{store:'{fitsFiles}'},columns:[{text:'Filename',dataIndex:'filename',flex:1},{text:'Filter',dataIndex:'filter'},{text:'URL',dataIndex:'file_source',renderer:function(a,b,c){return ' '}}]}],buttons:[{xtype:'label',text:'Right click "Save link as" to download files',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadFits:function(a,b){var c=this;this.loadFits=a;c.fireEvent('changeLoadFits',a,b)}},0,['target-download-descut'],['component','box','container','panel','window','target-download-descut'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-descut':!0},['widget.target-download-descut'],0,[visiomatic.download,'DescutDownloadWindow'],0);Ext.cmd.derive('visiomatic.Visiomatic',Ext.panel.Panel,{controller:'visiomatic',viewModel:'visiomatic',height:'100%',width:'100%',libL:null,config:{map:null,mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!0},prefix:null,enableSidebar:!0,enableSmallCrosshair:!1,enableCatalogs:!1,availableCatalogs:['GALEX_AIS','2MASS','AllWISE','SDSS','PPMXL','Abell','NVSS','FIRST','GAIA_DR1'],enableMiniMap:!1,miniMapOptions:{position:'topright',width:128,height:128,zoomLevelOffset:-6,nativeCelsys:!0},miniMap:null,enableWcs:!0,wcsUnits:[{label:'RA, Dec (Deg)',units:'deg'},{label:'RA, Dec (HMS)',units:'HMS'}],enableScale:!0,image:null,imageLayer:null,imageOptions:{credentials:!0,center:!1,fov:!1,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'},radiusOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',dashArray:'5, 5, 1, 5',interactive:!1},catalogOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',interactive:!0,pointType:'circle',pointSize:0.001},crosshairOptions:{color:'#FF4500',weight:2,smoothFactor:1,centerPadding:0.001,size:0.003},release:null,tag:null,dataset:null,currentDataset:null,enableTools:!0,auxTools:[],enableLink:!0,enableShift:!0,ready:!1,lradius:null,lcrosshair:null,showCrosshair:!1,enableContextMenu:!1,mlocate:'',showComments:!1},_winCatalogOverlay:null,bind:{release:'{release}',tag:'{tag}',dataset:'{dataset}'},initComponent:function(){var a=this,e=window.location.host,b,d,c;if(window.L){a.libL=window.L}else {console.log('window.L ainda nao esta carregada, incluir no app.json a biblioteca Leaflet')}this.cmpVisiomatic=c=Ext.create('Ext.Component',{id:a.getMapContainer(),width:'100%',height:'100%',listeners:{deactivate:a.onDeactivate}});if(a.getEnableTools()){b=a.makeToolbar();tools=a.makeToolbarButtons();b.add(tools);a.tbar=b}Ext.apply(this,{items:[c]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},afterRender:function(){var a=this,c=a.libL,d=a.getMapContainer(),e=a.getMapOptions(),b;Ext.panel.Panel.prototype.afterRender.apply(this,arguments);b=c.map(d,e);if(a.getPrefix()){b.attributionControl.setPrefix(a.getPrefix())}c.control.reticle().addTo(b);b.on('dblclick',a.onDblClick,a);b.on('contextmenu',a.onContextMenuClick,a);b.on('layeradd',a.onLayerAdd,a);b.on('move',a.onMove,a);b.on('mousemove',a.onMouseMove,a);b.on('overlaycatalog',a.showCatalogOverlayWindow,a);b.on('mouseup',a.savePreferences,a);b.on('keypress',a.savePreferences,a);a.setMap(b);if(a.getEnableSidebar()){a.createSidebar()}if(a.getEnableWcs()){a.addWcsController()}if(a.getEnableScale()){a.addScaleController()}a.cmpMousePosition=a.makeMousePosition()},savePreferences:function(){var c=this,a=c.getImageLayer();var b={credentials:!0,channelLabelMatch:'[ugrizY]',mixingMode:a.iipMode,contrast:a.iipContrast,gamma:a.iipGamma,invertCMap:a.iipInvertCMap,colorSat:a.iipColorSat,quality:a.iipQuality};localStorage.removeItem('imageOptions');localStorage.setItem('imageOptions',JSON.stringify(b))},onResize:function(){Ext.panel.Panel.prototype.onResize.apply(this,arguments);var a=this.getMap();if(a){a.invalidateSize()}},onDeactivate:function(){console.log('onDeactivate');var a=this;if(a._winCatalogOverlay){a._winCatalogOverlay.close()}},getMapContainer:function(){return this.getId()+'-placeholder'},createSidebar:function(){var c=this,b=c.libL,f=c.getMap(),e=c.getAvailableCatalogs(),a,d=[];a=b.control.sidebar().addTo(f);b.control.iip.channel().addTo(a);b.control.iip.image().addTo(a);if(c.getEnableCatalogs()){Ext.Array.each(e,function(a){d.push(b.Catalog[a])});b.control.iip.catalog(d).addTo(a)}b.control.iip.region([]).addTo(a);b.control.iip.profile().addTo(a);b.control.iip.snapshot().addTo(a);a.addTabList()},createSmallCrosshair:function(){var b=this,a=b.getRaDec(),c={color:'#90FA3A',weight:1,opacity:0.8,smoothFactor:1,centerPadding:5.0E-4,size:0.0015};b.drawSmallCrosshair(a.ra,a.dec,c)},addWcsController:function(){var a=this,c=a.libL,d=a.getMap(),b=a.getWcsUnits();c.control.wcs({coordinates:b,position:'topright'}).addTo(d)},addScaleController:function(){var a=this,b=a.libL,c=a.getMap();b.control.scale.wcs({pixels:!1}).addTo(c)},setCurrentDataset:function(a){var b=this;b.currentDataset=a},setImage:function(e,d){var a=this,i=a.libL,j=a.getMap(),h=a.getMiniMap(),b=a.getImageLayer(),c=a.getImageOptions(),f,k,g;a.setReady(!1);if(a._winCatalogOverlay!==null){a._winCatalogOverlay.close();a._winCatalogOverlay=null}a.removeImageLayer();d=d||{};if(b){c={credentials:c.credentials,channelLabelMatch:'[ugrizY]',mixingMode:b.iipMode,contrast:b.iipContrast,gamma:b.iipGamma,invertCMap:b.iipInvertCMap,colorSat:b.iipColorSat,quality:b.iipQuality}}f=Ext.Object.merge(c,d);a.image=e;if(!b){b=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(b)}else {a.removeImageLayer();g=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(g)}if(a.getEnableMiniMap()){if(h){h.remove()}a.createMiniMap()}},createMiniMap:function(){var a=this,e=a.libL,h=a.getMap(),g=a.getMiniMapOptions(),f=a.getImageOptions(),d=a.getImage(),c,b;if(d){b=e.tileLayer.iip(d,{credentials:f.credentials,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'});c=e.control.extraMap(b,g).addTo(h);a.setMiniMap(c)}},setView:function(c,b,h,f){var a=this,g=a.libL,e=a.getMap(),d;if(a.isReady()){c=parseFloat(parseFloat(c).toFixed(5));b=parseFloat(parseFloat(b).toFixed(5));d=g.latLng(b,c);e.setView(d,e.options.crs.fovToZoom(e,h,d));if(a.getShowCrosshair()){if(!f){a.drawCrosshair(c,b)}}}},onLayerAdd:function(b){var a=this;if(b.layer.type==='tilelayer'){a.setReady(!0);a.fireEvent('changeimage',a)}},onDblClick:function(b){var a=this;a.fireEvent('dblclick',b,a)},onContextMenuClick:function(b){var a=this,c=a.getMap();if(!a.isObjectContextMenu){a.showContextMenuImage(b)}a.isObjectContextMenu=!1},removeImageLayer:function(){var b=this,a=b.getMap();if(a!==null){a.eachLayer(function(b){a.removeLayer(b)})}},getRaDec:function(){var c=this,d=c.libL,b=c.getMap(),e=b.options.crs,a=b.getCenter();return {'ra':parseFloat(a.lng),'dec':parseFloat(a.lat)}},getBounds:function(){var m=this,j=m.libL,c=m.getMap(),b=c.options.crs,k=b.forceNativeCelsys&&!this.options.nativeCelsys,e=k?b.celsysToEq(c.getCenter()):c.getCenter(),n=Math.abs(Math.cos(e.lat*Math.PI/180)),d=c.getPixelBounds(),f=c.getZoom(),a,g,l,i,h,o;a=k?[b.celsysToEq(c.unproject(d.min,f)),b.celsysToEq(c.unproject(j.point(d.min.x,d.max.y),f)),b.celsysToEq(c.unproject(d.max,f)),b.celsysToEq(c.unproject(libLpoint(d.max.x,d.min.y),f))]:[c.unproject(d.min,f),c.unproject(j.point(d.min.x,d.max.y),f),c.unproject(d.max,f),c.unproject(j.point(d.max.x,d.min.y),f)];g=parseFloat(e.lng.toFixed(6));l=parseFloat(e.lat.toFixed(6));i=(Math.max(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e))-Math.min(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e)))*n;h=Math.max(a[0].lat,a[1].lat,a[2].lat,a[3].lat)-Math.min(a[0].lat,a[1].lat,a[2].lat,a[3].lat);if(h<1.0E-4){h=1.0E-4}if(i<1.0E-4){i=1.0E-4}if(g>360){g=g-360}return {lat:parseFloat(l),lng:parseFloat(g),dlat:parseFloat(h),dlng:parseFloat(i)}},getBox:function(){var j=this,g,f,d,e,c,i,h,a,b;bounding=j.getBounds();if(bounding.lng>360){bounding.lng=bounding.lng-360}b=bounding.dlng/2;a=bounding.dlat/2;e=parseFloat(bounding.lng-b);c=parseFloat(bounding.lat-a*Math.cos(bounding.lat*Math.PI/180));f=parseFloat(bounding.lng+b);d=parseFloat(bounding.lat+a*Math.cos(bounding.lat*Math.PI/180));i=[f,d];h=[e,c];g=[i,h];return g},getFov:function(){var e=this,a=e.getMap(),d=a.options.crs,c=a.getCenter(),b;b=d.zoomToFov(a,a.getZoom(),c);return b},onMove:function(){var a=this,b=a.getRaDec(),c=a.getFov();a.fireEvent('changeposition',b,c,a)},onMouseMove:function(b){var d=String(b.latlng.lng.toFixed(5)+', '+b.latlng.lat.toFixed(5)),a=this,c=a.getMap();this.cmpMousePosition.children[0].innerHTML='Mouse RA, Dec: '+d;a.currentPosition={radec:[b.latlng.lng.toFixed(5),b.latlng.lat.toFixed(5)],container:[b.containerPoint.x,b.containerPoint.y]};if(a.cropInit&&a.cropInit==a.cropEnd&&a.isCropping){if(a.cropRectangle){c.removeLayer(a.cropRectangle)}a.cropRectangle=a.drawRectangle(a.cropInit['radec'],a.currentPosition['radec'])}if(a.getEnableSmallCrosshair()){a.createSmallCrosshair()}},getLinkToPosition:function(){var b=this,e=b.getMap(),a=b.getRaDec(),c=b.getFov(),d;if(a.dec>0){d=a.ra.toFixed(5).replace('.',',')+'+'+a.dec.toFixed(5).replace('.',',')}else {d=a.ra.toFixed(5).replace('.',',')+a.dec.toFixed(5).replace('.',',')}if(c){c=c.toFixed(2).replace('.',',')}b.fireEvent('link',encodeURIComponent(d),c,a,b)},onShift:function(){this.fireEvent('shift',this.getRaDec(),this)},isReady:function(){return this.getReady()},panTo:function(a){var b=this.getMap();this.coordinatesToLatLng(a,function(c){if(c){b.panTo(c)}})},coordinatesToLatLng:function(a,b){visiomatic.Visiomatic.coordinatesToLatLng(a,b)},hmsToLatLng:function(a,b){visiomatic.Visiomatic.hmsToLatLng(a,b)},drawRadius:function(g,e,d,n,l){var a=this,b=a.libL,f=a.getMap(),j=f.options.crs,h=a.getRadiusOptions(),o=g+'_'+e,i,c,m;if(a.getLradius()){f.removeLayer(a.getLradius());a.setLradius(null)}m=Ext.Object.merge(h,l);if(n==='arcmin'){d=d/60}var k={type:'FeatureCollection',features:[{type:'Feature',id:o,properties:{},geometry:{type:'Point',coordinates:[g,e]}}]};c=b.geoJson(k,{coordsToLatLng:function(a){if(j.forceNativeCelsys){var c=j.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(a,c){i=Ext.Object.merge(h,{majAxis:d,minAxis:d,posAngle:90});return b.ellipse(b.latLng(e,g),i)}});a.setLradius(c);f.addLayer(c);return c},showHideRadius:function(d){var c=this,b=c.getMap(),a=c.getLradius();if(a!==null){if(d){b.addLayer(a)}else {b.removeLayer(a)}}},overlayCatalog:function(l,j,k){var c=this,b=c.libL,g=c.getMap(),h=g.options.crs,i=c.getCatalogOptions(),a,d,f,e;a=Ext.Object.merge(i,k);d={type:'FeatureCollection',features:[]};j.each(function(a){if(c.isInsideTile(a.get('_meta_ra'),a.get('_meta_dec'))){f={type:'Feature',id:a.get('_meta_id'),title:l,properties:a.data,is_system:a.get('_meta_is_system'),geometry:{type:'Point',coordinates:[a.get('_meta_ra'),a.get('_meta_dec')]}};d.features.push(f)}},c);e=b.geoJson(d,{coordsToLatLng:function(a){if(h.forceNativeCelsys){var c=h.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(e,d){if(e.is_system){if(e.properties._meta_radius){radius=e.properties._meta_radius/60;opts=c.getRadiusOptions()}}if(a.pointType==='ellipse'){var q=0.001,r=0.001,m=90;try{var o=e.properties._meta_a_image,p=e.properties._meta_b_image,f=e.properties._meta_theta_image;if(typeof o=='number'&&typeof p=='number'&&typeof f=='number'){q=o/3600;r=p/3600;m=f}}catch(x){}a.majAxis=q,a.minAxis=r,a.posAngle=m;return b.ellipse(d,a)}else {if(a.pointType==='square'){var w=[[d.lat-a.pointSize,d.lng-a.pointSize],[d.lat+a.pointSize,d.lng+a.pointSize]];var v=b.rectangle(w,a);return v}else {if(a.pointType==='triangle'){var h,i,g,n,s,t,u;h=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat-a.pointSize,d.lng+a.pointSize)];g=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];i=[b.latLng(d.lat-a.pointSize,d.lng+a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];s=b.polyline(h,a);u=b.polyline(g,a);t=b.polyline(i,a);n=new b.LayerGroup([s,u,t]);return n}else {a.majAxis=a.pointSize;a.minAxis=a.pointSize;a.posAngle=90;circle=b.ellipse(d,a);return circle}}}}}).bindPopup(c.createOverlayPopup).on('dblclick',function(){alert('TODO: OPEN IN EXPLORER!')}).on('contextmenu',c.onLayerContextMenu,c);g.addLayer(e);c.redraw();return e},redraw:function(){var d=this,c=d.getMap(),a=$(c.getContainer()),b=a.width();if(b>0){a.css({width:b+2});c.invalidateSize();a.css({width:'initial'})}},createOverlayPopup:function(i){var a=i.feature,h=a.properties,j=['_meta_mag_auto_g','_meta_mag_auto_r','_meta_mag_auto_i','_meta_mag_auto_z','_meta_mag_auto_y'],e=[],d=[],c=a.properties._meta_id,g=['RAJ2000','DEJ2000'],b=[],f;Ext.each(j,function(a){try{mag_name=a.slice(-1);if(mag_name=='y'){mag_name='Y'}mag_value=h[a];if(mag_value){mag_value=parseFloat(mag_value);tag=''+mag_name+': '+mag_value.toFixed(2)+'';e.push(tag)}}catch(k){}});if(a.properties._meta_photo_z){photoz=parseFloat(a.properties._meta_photo_z);d.push('photo-z: '+photoz.toFixed(2)+'')}if(a.properties._meta_is_system){c=''+a.properties._meta_id+''}else {if(a.properties._meta_catalog_class=='coadd_objects'){c=''+a.properties._meta_id+''}else {if(a.properties._meta_object_url){c=''+a.properties._meta_id+'';for(property in a.properties){if(!property.startsWith('_meta_')&&g.indexOf(property)==-1){b.push(property)}}if(b.length<=15){for(key in b.sort()){property=b[key];d.push(''+property+': '+a.properties[property]+'')}}}else {}}}ra=parseFloat(a.properties._meta_ra);dec=parseFloat(a.properties._meta_dec);f=''+a.title+'
    '+e.join('')+d.join('')+'
    ID: '+c+'
    RA, Dec (deg): '+ra.toFixed(5)+', '+dec.toFixed(5)+'
    ';return f},onDblClickOverlay:function(){console.log('onDblClickOverlay(%o)',arguments)},showHideLayer:function(a,c){var d=this,b=d.getMap();if(a!==null){if(c){b.addLayer(a)}else {b.removeLayer(a)}}},showHideComments:function(a,b){},onLayerContextMenu:function(a){var b=this;b.isObjectContextMenu=!0;if(a.target.targetPosition){b.showContextMenuImage(a)}else {if(a.target.targetObjet){a.layer={feature:a.target.targetObjet.feature}}b.showContextMenuObject(a)}},createCommentIcon:function(d,c){var b=this,e,a;a=b.markPosition(d,'mapmaker-comment comment-maker').on('contextmenu',b.onLayerContextMenu,b);if(c){c.commentMaker=a;a.targetObjet=c}else {a.targetPosition=d}a.getElement().style.display=b.getShowComments()?'':'none'},updateComment:function(b,a,c){},markPosition:function(i,g,e){var h=this,c=h.libL,j=h.getMap(),b,a,f,d;if(arguments.length==2){b=i;e=g;d=[12,25]}else {b=c.latLng(g,i);d=[8,44]}if(e){f=c.divIcon({className:'visiomatic-marker-position',iconAnchor:d,html:''});a=c.marker(b,{icon:f})}else {a=c.marker(b)}a.addTo(j);return a},setShowCrosshair:function(c){var b=this,d=b.getMap(),a=b.lcrosshair;b.showCrosshair=c;if(a!==null){if(c){d.addLayer(a)}else {d.removeLayer(a)}}},onToggleCrosshair:function(c,a,d){var b=this;if(d.pressed){b.drawCrosshair(c,a)}else {b.removeCrosshair(c,a)}},drawCrosshair:function(e,d,m){var c=this,a=c.libL,l=c.getMap(),o=c.getCrosshairOptions(),n=null,b,f,g,p,k,h,j,i;b=Ext.Object.merge({},o);if(m){b=Ext.Object.merge(b,m)}if(c.lcrosshair){if(l.hasLayer(c.lcrosshair)){l.removeLayer(c.lcrosshair);c.lsmallcrosshair=null}}p=a.latLng(d,e);f=b.centerPadding?b.centerPadding:0.001;g=b.size?b.size:0.005;k=[a.latLng(d+f,e),a.latLng(d+g,e)];h=[a.latLng(d-f,e),a.latLng(d-g,e)];j=[a.latLng(d,e+f),a.latLng(d,e+g)];i=[a.latLng(d,e-f),a.latLng(d,e-g)];k=a.polyline(k,b);h=a.polyline(h,b);j=a.polyline(j,b);i=a.polyline(i,b);n=new a.LayerGroup([k,h,j,i]);c.lcrosshair=n;if(c.getShowCrosshair()){l.addLayer(c.lcrosshair)}return c.lcrosshair},removeCrosshair:function(){var a=this,b=a.getMap();if(a.lcrosshair){if(b.hasLayer(a.lcrosshair)){b.removeLayer(a.lcrosshair);a.lsmallcrosshair=null}}},drawSmallCrosshair:function(d,c,e){var b=this,a=b.libL,h=b.getMap(),n=b.getCrosshairOptions(),p=null,m,f,g,o,l,i,k,j;m=Ext.Object.merge({},n);if(e){m=Ext.Object.merge(m,e)}if(b.lsmallcrosshair){if(h.hasLayer(b.lsmallcrosshair)){h.removeLayer(b.lsmallcrosshair);b.lsmallcrosshair=null}}o=a.latLng(c,d);f=0.005/h._zoom;g=0.01/h._zoom;l=[a.latLng(c+f,d),a.latLng(c+g,d)];i=[a.latLng(c-f,d),a.latLng(c-g,d)];k=[a.latLng(c,d+f),a.latLng(c,d+g)];j=[a.latLng(c,d-f),a.latLng(c,d-g)];l=a.polyline(l,e);i=a.polyline(i,e);k=a.polyline(k,e);j=a.polyline(j,e);layerSmall=new a.LayerGroup([l,i,k,j]);b.lsmallcrosshair=layerSmall;if(b.getEnableSmallCrosshair()&&e){h.addLayer(b.lsmallcrosshair)}return b.lsmallcrosshair},showCatalogOverlayWindow:function(){var b=this,c=b.getCurrentDataset(),a=b._winCatalogOverlay;if(c!==null&&c.get('id')>0){if(a!=null){a.show()}else {a=Ext.create('visiomatic.catalog.CatalogOverlayWindow',{visiomatic:b});b.add(a);a.show();b._winCatalogOverlay=a}b._winCatalogOverlay.setDataset(c)}else {console.log('Dataset nao foi definido, a funcao overlay precisa de um dataset.');return !1}},showDownloadWindow:function(){var d=this,a=d.getCurrentDataset(),c;if(a.get('tli_tilename')){c=a.get('tli_tilename');tag=a.get('release_name');var b=Ext.create('visiomatic.download.DescutDownloadWindow');b.loadFits(c,tag);b.show()}else {alert('File not found.')}},showContextMenuImage:function(b){var a=this,c=b.target,d={x:b.originalEvent.clientX,y:b.originalEvent.clientY};if(!a.getEnableContextMenu()){return}if(b.originalEvent.target.classList.contains('comment-maker')&&!c.targetPosition){return a.showContextMenuObject(b)}if(!this.contextMenuImage){this.contextMenuImage=new Ext.menu.Menu({items:[{id:'comment-position',text:'Comment Position',handler:function(c){a.fireEvent('imageMenuItemClick',a.contextMenuImage.target,a.getCurrentDataset())}}]})}c.latlng=b.latlng;a.contextMenuImage.target=c;a.contextMenuImage.showAt(d)},initCrop:function(){var a=this,b=a.getMap();b.on('mousedown',a.startCrop,a);a.isCropping=!0;b.dragging.removeHooks()},startCrop:function(){var a=this,b=a.getMap();a.cropInit=a.currentPosition;a.cropEnd=a.cropInit;b.off('mousedown',a.startCrop,a);b.on('mouseup',a.endCrop,a)},endCrop:function(c){var a=this,b=a.getMap();a.cropEnd=a.currentPosition;b.off('mouseup',a.endCrop,a);a.downloadCrop(a.cropInit,a.cropEnd);if(a.cropRectangle){b.removeLayer(a.cropRectangle)}a.cropInit=null;a.isCropping=!1;b.dragging.addHooks()},downloadCrop:function(d,e){var i=this,p=i.libL,h=i.getMap(),g=document.createElement('a'),a=i.getImageLayer();var o=h.getCenter(),j=h.getPixelBounds(),c=h.getZoom(),b;if(c>a.iipMaxZoom){b=Math.pow(2,c-a.iipMaxZoom);c=a.iipMaxZoom}else {b=1}var l=a.iipImageSize[c].x*b,m=a.iipImageSize[c].y*b,f=Math.abs(d.container[0]-e.container[0]),n=Math.abs(d.container[1]-e.container[1]);var k={x:j.min.x+Math.min(d.container[0],e.container[0]),y:j.min.y+Math.min(d.container[1],e.container[1])};g.href=a.getTileUrl({x:1,y:1}).replace(/JTL\=\d+\,\d+/g,'RGN='+k.x/l+','+k.y/m+','+f/l+','+n/m+'&WID='+(this._snapType===0?Math.floor(f/b):Math.floor(f/b/a.wcs.scale(c)))+'&CVT=jpeg');g.download=a._title+'_'+p.IIPUtils.latLngToHMSDMS(o).replace(/[\s\:\.]/g,'')+'.jpg';var q=Ext.create('visiomatic.crop.CropWindow',{image:g,height:n+100,width:f+100})},showContextMenuObject:function(a){var c,b=this,d={x:a.originalEvent.clientX,y:a.originalEvent.clientY};if(!b.getEnableContextMenu()){return}if(!this.contextMenuObject){this.contextMenuObject=new Ext.menu.Menu({items:[{id:'comment-object',text:'Comment Object',handler:function(c){b.fireEvent('objectMenuItemClick',a,this.feature)}}]})}c=b.contextMenuObject.items.get('comment-object');c.feature=a.layer?a.layer.feature:null;b.contextMenuObject.showAt(d)},drawRectangle:function(h,j,q){var f=this,a=f.libL,r=f.getMap(),e=h[0],c=h[1],d=j[0],b=j[1],l,g,k,i,p,m,n,o;pathOptions=Ext.Object.merge(f.getCrosshairOptions(),q);l=[a.latLng(c,d),a.latLng(c,e)];g=[a.latLng(b,d),a.latLng(b,e)];k=[a.latLng(c,e),a.latLng(b,e)];i=[a.latLng(c,d),a.latLng(b,d)];p=a.polyline(l,pathOptions);m=a.polyline(g,pathOptions);n=a.polyline(k,pathOptions);o=a.polyline(i,pathOptions);layer=new a.LayerGroup([p,m,n,o]);r.addLayer(layer);return layer},isInsideTile:function(d,b){var c=this,a=c.getCurrentDataset();if(a!=null&&a.get('id')>0){return a.isInsideTile(d,b)}else {return !0}},statics:{coordinatesToLatLng:function(a,c){var d,b=visiomatic.Visiomatic.strToSystem(a);a=a.trim().replace(/( )+/g,' ');d=a.split(',');if(b&&b.system=='latlng'){return c(b.value)}else {if(b&&b.system=='HMS'){return visiomatic.Visiomatic.hmsToLatLng(a,c)}}c(null)},hmsToLatLng:function(b,a){var c='http://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame/-oI/A?'+b;$.get(c,function(c){var d=visiomatic.Visiomatic.parseCoords(c,!0);if(a){a(d)}})},latLngToHMSDMS:function(f){var c=(f.lng+360)/360;c=(c-Math.floor(c))*24;var e=Math.floor(c),d=(c-e)*60,a=Math.floor(d),b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}var j=(e<10?'0':'')+e.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(3),h=Math.abs(f.lat),i=f.lat<0?'-':'+',g=Math.floor(h);d=(h-g)*60;a=Math.floor(d);b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}return j+' '+i+(g<10?'0':'')+g.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(2)},strToSystem:function(a){var b;if(a){a=a.trim().replace(/( )+/g,' ');b=a.split(',');if(b.length==2&&a.split(':').length==1){return {value:{lng:Number(b[0]),lat:Number(b[1])},system:'latlng'}}b=a.split(' ');if(b.length==2&&a.split(':').length==5){return {value:a,system:'HMS'}}}return null},parseCoords:function(b){var a=/J\s(\d+\.?\d*)\s*,?\s*\+?(-?\d+\.?\d*)/g.exec(b);if(a&&a.length>=3){return L.latLng(Number(a[2]),Number(a[1]))}return null}}},0,['visiomatic'],['component','box','container','panel','visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0},['widget.visiomatic'],[['interface',visiomatic.Interface]],[visiomatic,'Visiomatic'],0);Ext.cmd.derive('visiomatic.crop.CropWindow',Ext.window.Window,{title:'Crop',width:400,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'hbox'},initComponent:function(){var a=this,b=a.image;Ext.apply(this,{layout:'ux.center',items:[{xtype:'image',src:b.href,alt:b.download,height:a.height-100,width:a.width-100}],buttons:[{xtype:'label',text:'Right click "Save image as" to download the image',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadImage:function(a){var b=this;this.image=a}},0,['target-download-crop'],['component','box','container','panel','window','target-download-crop'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-crop':!0},['widget.target-download-crop'],0,[visiomatic.crop,'CropWindow'],0);Ext.cmd.derive('aladin.Events',Ext.Base,{mouseIsDown:!1,mouseInitialPosition:[],mouseLastPosition:[],addCustomEvents:function(){var a=this;a.addDblClickListener();a.addMouseDown();a.addMouseMoveListener();a.addMouseUP()},addDblClickListener:function(){var a=this,d=a.getAladin(),f=d.view,e=d.view.reticleCanvas,b,c;e.addEventListener('dblclick',function(d){c=f.imageCanvas.relMouseCoords(d);b=a.mousePositionToSky(c);if(b){a.updateLocation(b);if(!a.preventDbClickFire){a.preventDbClickFire=!0;task=a.runner.newTask({run:function(){a.preventDbClickFire=!1},interval:20,repeat:1});task.start();a.fireEvent('ondblclick',b,a)}}})},addMouseDown:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,b,c;e.addEventListener('mousedown',function(e){c=d.imageCanvas.relMouseCoords(e);b=a.mousePositionToSky(c);if(b){a.mouseIsDown=!0;a.mouseInitialPosition=b;a.mouseLastPosition=b}})},addMouseMoveListener:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,b,c;e.addEventListener('mousemove',function(e){c=d.imageCanvas.relMouseCoords(e);b=a.mousePositionToSky(c);if(b){a.updateLocation(a.getRaDec(),b);if(a.mouseIsDown){a.mouseLastPosition=b;a.fireEvent('reticlemove',a.getRaDec(),a)}}})},addMouseUP:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,c,b;e.addEventListener('mouseup',function(e){b=d.imageCanvas.relMouseCoords(e);c=a.mousePositionToSky(b);if(c){if(a.mouseIsDown){if(!Ext.Array.equals(a.mouseInitialPosition,a.mouseLastPosition)){a.fireEvent('onpanend',a.getRaDec(),a)}else {a.fireEvent('onclick',a.mouseLastPosition,a)}}a.mouseIsDown=!1;a.mouseInitialPosition=[];a.mouseLastPosition=[]}})},mousePositionToSky:function(e){var g=this,f=g.getAladin(),a=f.view,d,b,c=[];d=AladinUtils.viewToXy(e.x,e.y,a.width,a.height,a.largestDim,a.zoomFactor);try{b=a.projection.unproject(d.x,d.y)}catch(h){return}if(a.cooFrame==CooFrameEnum.GAL){c=CooConversion.GalacticToJ2000([b.ra,b.dec])}else {c=[parseFloat(b.ra.toFixed(5)),parseFloat(b.dec.toFixed(5))]}return c},skyToString:function(a){if(a&&a[0]&&a[1]){return String(a[0].toFixed(5)+', '+a[1].toFixed(5))}},updateLocation:function(e,d){var a=this,c,b;c=a.skyToString(e);b=a.skyToString(d);a.setLocation(c,b)},onClickBtnMap:function(){var a=this,c=a.getViewModel(),b=c.get('release');if(a.windowMapSelection==null){a.windowMapSelection=Ext.create('aladin.maps.MapSelectionWindow',{width:182,height:237,x:45,y:55,resizable:!1,aladin:a})}a.windowMapSelection.setRelease(b);if(a.windowMapSelection.isHidden()){a.windowMapSelection.show()}else {a.windowMapSelection.hide()}}},0,0,0,0,0,0,[aladin,'Events'],0);Ext.cmd.derive('aladin.model.Image',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'img_url',type:'string'},{name:'product',type:'int'}]},0,0,0,0,0,0,[aladin.model,'Image'],0);Ext.cmd.derive('aladin.store.Images',common.store.MyStore,{model:'aladin.model.Image',autoLoad:!1,pageSize:0,remoteFilter:!0,proxy:{type:'django',url:'/dri/api/aladin/image/'}},0,0,0,0,['store.aladin_images'],0,[aladin.store,'Images'],0);Ext.cmd.derive('aladin.maps.MapSelectionController',Ext.app.ViewController,{listen:{component:{'aladin-maps-mapselectionwindow':{changerelease:'onChangeRelease'}}},onChangeRelease:function(k){var a=this,h=a.getViewModel(),g=h.getView(),c=h.getStore('maps_store'),f=a.lookup('cmbType'),e=a.lookup('cmbClass'),b=f.getStore(),i=e.getStore(),d=a.lookup('cmbFilter'),j=d.getStore();g.setLoading(!0);c.addFilter([{property:'release_id',value:k},{property:'with_image',value:!0}]);c.load({callback:function(){f.reset();b.removeAll();e.reset();i.removeAll();d.reset();j.removeAll();c.each(function(a){if(b.findRecord('pgr_group',a.get('pgr_group'))==null){b.add(a)}},this);g.setLoading(!1)}})},onSelectMapType:function(h){var b=this,i=b.getViewModel(),f=h.selection,g=i.getStore('maps_store'),d=b.lookup('cmbClass'),a=d.getStore(),c=b.lookup('cmbFilter'),e=c.getStore();d.reset();a.removeAll();c.reset();e.removeAll();g.each(function(b){if(b.get('pgr_group')==f.get('pgr_group')&&a.findRecord('prd_class',b.get('prd_class'))==null){a.add(b)}},this)},onSelectMapClass:function(f){var d=this,g=d.getViewModel(),c=f.selection,e=g.getStore('maps_store'),b=d.lookup('cmbFilter'),a=b.getStore();b.reset();a.removeAll();e.each(function(b){if(b.get('pgr_group')==c.get('pgr_group')&&b.get('prd_class')==c.get('prd_class')){a.add(b)}},this)},onSelectMapFilter:function(g){var d=this,c=d.getViewModel(),f=c.getView(),e=f.getAladin(),b=g.selection,a=c.getStore('aladin_images_store');a.addFilter([{property:'product',value:b.get('id')}]);a.load({callback:function(){if(a.getCount()!=1){Ext.MessageBox.alert('Warning',a.getCount().toString()+' images found for same map!')}else {aladin_last_nonmap_survey=c.get('aladin_last_nonmap_survey');if(aladin_last_nonmap_survey==null){c.set('aladin_last_nonmap_survey',e.getImageSurvey())}var f=a.getAt(0).get('img_url');survey={'id':'map_'+b.get('id').toString(),'url':f,'name':b.get('pcl_display_name'),'filter':b.get('prd_filter'),'maxOrder':3,'frame':'equatorial','options':{'imgFormat':'png'}};e.readProperties(f,function(a){survey['maxOrder']=a['maxOrder'];d.setMapSurvey(survey)},function(a){console.log('aladin.readProperties() error: %o',a);d.setMapSurvey(survey)})}}})},setMapSurvey:function(c){var e=this,a=e.getViewModel(),d=a.getView(),b=d.getAladin();mapSurvey=b.createImageSurvey(c);b.setImageSurvey(mapSurvey);a.set('aladin_last_map_survey',mapSurvey);a.set('map_selected',!0)},onDisplayOnOff:function(f){var e=this,a=e.getViewModel(),d=a.getView(),c=d.getAladin(),b=null;if(a.get('map_selected')){b=a.get('aladin_last_map_survey')}else {b=a.get('aladin_last_nonmap_survey')}c.setImageSurvey(b)}},0,0,0,0,['controller.mapselection'],0,[aladin.maps,'MapSelectionController'],0);Ext.cmd.derive('aladin.maps.MapSelectionWindow',Ext.window.Window,{controller:'mapselection',viewModel:'mapselection',config:{aladin:null},initComponent:function(){var a=this,b=a.getViewModel();Ext.apply(this,{title:'Map viewer',closeAction:'hide',bodyPadding:5,items:[{xtype:'combobox',reference:'cmbType',fieldLabel:'Map Type:',labelAlign:'top',emptyText:'',displayField:'pgr_display_name',valueField:'pgr_group',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapType'},editable:!1,queryMode:'local'},{xtype:'combobox',reference:'cmbClass',fieldLabel:'Map Class:',labelAlign:'top',emptyText:'',displayField:'pcl_display_name',valueField:'prd_class',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapClass'},editable:!1,queryMode:'local'},{xtype:'combobox',reference:'cmbFilter',fieldLabel:'Filter:',labelAlign:'top',emptyText:'',displayField:'prd_filter',valueField:'id',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapFilter'},editable:!1,queryMode:'local'},{xtype:'checkbox',reference:'chkOnOff',boxLabel:'Display Map',handler:'onDisplayOnOff',bind:{disabled:'{!aladin_switchable}',value:'{map_selected}'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setRelease:function(a){var b=this,c=b.getViewModel();if(a!=c.get('release')){c.set('release',a);b.fireEvent('changerelease',a)}}},0,['aladin-maps-mapselectionwindow'],['component','box','container','panel','window','aladin-maps-mapselectionwindow'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'aladin-maps-mapselectionwindow':!0},['widget.aladin-maps-mapselectionwindow'],0,[aladin.maps,'MapSelectionWindow'],0);Ext.cmd.derive('aladin.Interfaces',Ext.Base,{windowInfo:null,windowMapSelection:null,enableDisableInfo:function(d,c){var b=this,a=b.windowInfo;if(!a){a=b.createWindowInfo()}a.setVisible(c)},createWindowInfo:function(){var b=this,a;a=Ext.create('Ext.Component',{width:280,height:100,x:5,y:10,renderTo:b.body,header:!1,resizable:!1,constrain:!0,cls:'aladin-location-info',style:{position:'absolute',zIndex:29},tpl:['
    {image_survey}','
    {tilename}','
    RA, Dec (deg): {location}
    Mouse RA, Dec (deg): {mlocation}
    ']});b.windowInfo=a;return a},getInfoData:function(){var g=this,a=g.getViewModel(),e=a.get('tile'),f=a.get('tag'),k=a.get('release_name'),d,b,c='',j='',i='',h='';if(f){h=k;i=f.get('tag_display_name')}if(e){j=e.get('tli_tilename')}b=g.getImageSurvey();if(b&&b.id!='empty_survey'){c=b.name}d={image_survey:c,location:a.get('location'),mlocation:a.get('mlocation'),release:h,tag:i,tilename:j};return d},updateInfoData:function(){var a=this,c=a.windowInfo,b=a.getInfoData();if(a.windowInfo){c.setData(b)}},makeToolbar:function(){var c=this,a=c.getToolbarPosition(),b=!1;if(a==='left'||a==='right'){b=!0}return Ext.create('Ext.toolbar.Toolbar',{vertical:b,reference:'aladinToolbar'})},makeToolbarButtons:function(){var a=this,c,b=[],e=a.getToolbarPosition(),f=!1;if(e==='left'||e==='right'){f=!0}if(a.getEnableShift()){b.push({xtype:'button',tooltip:'Switch between Aladdin / Visiomatic.',iconCls:'x-fa fa-exchange',scope:a,handler:a.onShift,bind:{disabled:'{!tile}'}})}if(a.getEnableLayersControl()){b.push({xtype:'button',scope:a,iconCls:'x-fa fa-picture-o',tooltip:'Image Layer',menu:a.createImageLayersMenuItems(),menuAlign:'tr',arrowVisible:!1,itemId:'BtnImageLayers'})}if(a.getShowFilters()){var d=Ext.create('common.BandFilter',{filters:['g','r','i','z','Y','irg'],defaultFilter:'irg',vertical:f,listeners:{scope:a,'onfilter':a.onFilter}});a.setBandFilter(d);b.push(d)}if(a.getEnableViewMenu()){b.push(a.createViewMenu())}if(a.getEnableMaps()){b.push({xtype:'button',tooltip:'Map Viewer',iconCls:'x-fa fa-th',scope:a,handler:a.onClickBtnMap})}if(a.getEnableGoto()){b.push({iconCls:'x-fa fa-search',tooltip:'Go To position. 356.0085, 0.5168 or 23 44 2.040 +00 31 0.48',menuAlign:'tr',arrowVisible:!1,menu:[{xtype:'textfield',emptyText:'RA (deg), Dec (deg)',triggers:{'goto':{cls:'x-form-search-trigger',scope:this,handler:a.submitGoToPosition,tooltip:'Go To position. 356.0085, 0.5168 or 23 44 2.040 +00 31 0.48'}},listeners:{scope:this,specialkey:function(b,a){if(a.getKey()==a.ENTER){this.submitGoToPosition(b)}}}}]})}if(a.getEnableExportPng()){if(Ext.firefoxVersion>0){b.push({xtype:'button',tooltip:'Snapshot',iconCls:'x-fa fa-camera',scope:a,handler:a.exportAsPng})}}c=a.getAuxTools();if(c.length>0){Ext.each(c,function(a){b.push(a)})}return b},createViewMenu:function(){var c=this,b,a;a=c.createViewMenuItems();if(a.length>0){b=Ext.create('Ext.button.Button',{iconCls:'x-fa fa-cog',tooltip:'Change view settings',itemId:'ViewMenu',menu:a,menuAlign:'tr',arrowVisible:!1})}return b},createViewMenuItems:function(){var a=this,b=[];b.push({xtype:'menucheckitem',text:'Tiles Grid',itemId:'TileGridMenu',menu:[],menuAlign:'tr',checkHandler:a.onCheckTileGridMenu,disabled:!0,checked:a.getTilesGridVisible()});b.push('-');if(a.getEnableColorMap()){b.push(a.createColorMapMenu())}b.push('-');if(a.getEnableFootprint()){var c=a.getHideFootprint();b.push({xtype:'menucheckitem',itemId:'DesFootprint',text:'Des Footprint',checked:!c,scope:a,checkHandler:a.showDesFootprint})}if(a.getEnableReticle()){b.push({xtype:'menucheckitem',text:'Reticle',checked:!0,scope:a,checkHandler:a.showReticle})}if(a.getEnableHealpixGrid()){b.push({xtype:'menucheckitem',text:'Healpix Grid',scope:a,checkHandler:a.showHealpixGrid})}if(a.getEnableHealpixGrid()){b.push({xtype:'menucheckitem',text:'Info',scope:a,checkHandler:a.enableDisableInfo,checked:a.getInfoEnabled()})}return b},createTileGridMenu:function(){var b=this,d=b.down('#ViewMenu'),c=b.createTileGridMenuItems(),a=b.down('#TileGridMenu');if(!a){a={text:'Tiles Grid',itemId:'TileGridMenu',menu:c};d.getMenu().add(a)}else {a.getMenu().removeAll();a.getMenu().add(c);a.enable()}},createTileGridMenuItems:function(){var a=this,c=a.getStoreTags(),b=[];if(c.count()>0){c.each(function(c){b.push({xtype:'menucheckitem',text:c.get('tag_display_name'),tag:c.get('id'),scope:a,checkHandler:a.onCheckTileGrid})},this)}return b},createColorMapMenu:function(){var c=this,b,a;a=c.createColorMapMenuItems();b={text:'Color Map',tooltip:'Change Color Map',reference:'BtnColorMap',itemId:'BtnColorMap',menu:a,menuAlign:'tr',arrowVisible:!1};return b},createColorMapMenuItems:function(){var a=this,c=a.getColorMaps(),b=[];for(var d in c){b.push({xtype:'menucheckitem',text:c[d],group:'colormaps',mapName:c[d],scope:a,checkHandler:a.changeColorMap})}b.push('-');b.push({text:'Reverse',scope:a,handler:a.reverseColor});return b},updateColorMapMenu:function(){var a=this,d=a.down('#BtnColorMap'),b,c;b=Ext.clone(ColorMap.MAPS_NAMES);a.setColorMaps(b);c=a.createColorMapMenuItems();d.setMenu(c)},createImageLayersMenuItems:function(){var a=this,f=a.getExternalSurveys(),b=a.getSurveys(),c=[],d,g;if(b!=null&&b.length>0){for(var e in b){desSurvey=b[e];if(desSurvey.id!='empty_survey'){c.push({xtype:'menucheckitem',text:desSurvey['name'],group:'imageSurveys',survey:desSurvey,scope:a,checked:!0,checkHandler:a.selectExternalSurvey})}}c.push('-')}for(var e in f){d=f[e];c.push({xtype:'menucheckitem',text:d['name'],group:'imageSurveys',survey:d,scope:a,checkHandler:a.selectExternalSurvey})}return c},updateImageLayersMenuItems:function(){var c=this,b=c.down('#BtnImageLayers'),a;if(b){a=c.createImageLayersMenuItems();b.setMenu(a)}}},0,0,0,0,0,0,[aladin,'Interfaces'],0);Ext.cmd.derive('aladin.Aladin',Ext.panel.Panel,{layout:'fit',libA:null,colorsDefault:['#A0F65A','#00BFFF','#FF0000','#FFFF00','#FF7F00','#7D26CD','#FF1493'],colorsAvailable:[],config:{aladinId:null,cmpAladin:null,aladin:null,aladinReady:!1,hipsDir:'/static/stripeHiPS',aladinOptions:{fov:180,target:'02 23 11.851 -09 40 21.59',cooFrame:'J2000',survey:'empty_survey',showReticle:!0,showZoomControl:!0,showFullscreenControl:!0,showLayersControl:!1,showGotoControl:!1,showShareControl:!1,showCatalog:!0,showFrame:!1,showCooGrid:!1,fullScreen:!1,reticleColor:'rgb(178, 50, 178)',reticleSize:28,log:!0,allowFullZoomout:!0},aladinWidth:300,aladinHeight:300,autoSize:!0,storeSurveys:null,storeMaps:null,surveys:[],maps:[],colorMaps:[],emptySurvey:{'id':'empty_survey','url':'','name':'','filter':'','maxOrder':11,'frame':'equatorial','options':{imgFormat:'png'}},enableLayersControl:!0,enableToolbar:!0,showFilters:!1,bandFilter:null,availableFilters:[],enableViewMenu:!0,enableExportPng:!0,enableReticle:!0,enableHealpixGrid:!0,enableColorMap:!0,enableFootprint:!0,hideFootprint:!0,enableGoto:!1,gotoSetPosition:!0,auxTools:[],storeTags:null,storeTiles:null,tilesGridVisible:!1,enableInfo:!0,infoEnabled:!0,location:'',mlocation:'',initialFov:null,enableMaps:!0,enableShift:!1,toolbarPosition:'left',externalSurveys:[{'id':'P/2MASS/color','url':'http://alasky.u-strasbg.fr/2MASS/Color','name':'2MASS colored','maxOrder':9,'frame':'equatorial','format':'jpeg'},{'id':'P/DSS2/color','url':'http://alasky.u-strasbg.fr/DSS/DSSColor','name':'DSS colored','maxOrder':9,'frame':'equatorial','format':'jpeg'},{'id':'P/DSS2/red','url':'http://alasky.u-strasbg.fr/DSS/DSS2Merged','name':'DSS2 Red (F+R)','maxOrder':9,'frame':'equatorial','format':'jpeg fits'},{'id':'P/Fermi/color','url':'http://alasky.u-strasbg.fr/Fermi/Color','name':'Fermi color','maxOrder':3,'frame':'equatorial','format':'jpeg'},{'id':'P/Finkbeiner','url':'http://alasky.u-strasbg.fr/FinkbeinerHalpha','maxOrder':3,'frame':'galactic','format':'jpeg fits','name':'Halpha'},{'id':'P/GALEXGR6/AIS/color','url':'http://alasky.u-strasbg.fr/GALEX/GR6-02-Color','name':'GALEX Allsky Imaging Survey colored','maxOrder':8,'frame':'equatorial','format':'jpeg'},{'id':'P/IRIS/color','url':'http://alasky.u-strasbg.fr/IRISColor','name':'IRIS colored','maxOrder':3,'frame':'galactic','format':'jpeg'},{'id':'P/Mellinger/color','url':'http://alasky.u-strasbg.fr/MellingerRGB','name':'Mellinger colored','maxOrder':4,'frame':'galactic','format':'jpeg'},{'id':'P/SDSS9/color','url':'http://alasky.u-strasbg.fr/SDSS/DR9/color','name':'SDSS9 colored','maxOrder':10,'frame':'equatorial','format':'jpeg'},{'id':'P/SPITZER/color','url':'http://alasky.u-strasbg.fr/SpitzerI1I2I4color','name':'IRAC color I1,I2,I4 - (GLIMPSE, SAGE, SAGE-SMC, SINGS)','maxOrder':9,'frame':'galactic','format':'jpeg'},{'id':'P/VTSS/Ha','url':'http://alasky.u-strasbg.fr/VTSS/Ha','maxOrder':3,'frame':'galactic','format':'png jpeg fits','name':'VTSS-Ha'},{'id':'P/XMM/EPIC','url':'http://saada.u-strasbg.fr/xmmallsky','name':'XMM-Newton stacked EPIC images (no phot. normalization)','maxOrder':7,'frame':'equatorial','format':'png fits'},{'id':'P/XMM/PN/color','url':'http://saada.unistra.fr/xmmpnsky','name':'XMM PN colored','maxOrder':7,'frame':'equatorial','format':'png jpeg'},{'id':'P/allWISE/color','url':'http://alasky.u-strasbg.fr/AllWISE/RGB-W4-W2-W1/','name':'AllWISE color','maxOrder':8,'frame':'equatorial','format':'jpeg'},{'id':'P/GLIMPSE360','url':'http://www.spitzer.caltech.edu/glimpse360/aladin/data','name':'GLIMPSE360','maxOrder':9,'frame':'equatorial','format':'jpeg'}]},isFirstSurvey:!0,viewModel:{data:{location:'',mlocation:'',tile:null,tag:null,release:null,release_name:''}},session:!0,preventDbClickFire:!1,runner:null,initComponent:function(){var a=this,c,b,d;if(window.A){a.libA=window.A}else {console.log('window.A ainda nao esta carregada')}a.setAladinId(a.getId()+'-placeholder');c=Ext.create('Ext.Component',{id:a.getAladinId(),width:a.getAladinWidth(),height:a.getAladinHeight()});if(a.getEnableToolbar()){b=a.leftToolBar=a.makeToolbar();d=a.makeToolbarButtons();b.add(d);if(a.getToolbarPosition()==='left'){a.lbar=b}else {if(a.getToolbarPosition()==='top'){a.tbar=b}}}Ext.apply(this,{items:[c],listeners:{scope:a,afterrender:'onAfterrender'}});a.runner=Ext.create('Ext.util.TaskRunner',{});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},onAfterrender:function(){var a=this,d='#'+a.getAladinId(),e=a.libA,c=a.getAladinOptions(),b,f;b=e.aladin(d,c);b.view.setUnknownSurveyIfNeeded=function(){};b._setImageSurvey=b.setImageSurvey;b.setImageSurvey=function(d,c){return b._setImageSurvey(d,function(){a.onChangeImageSurvey();if(c){c()}})};a.setAladin(b);a.createImageSurveys();if(a.getEnableColorMap()){a.updateColorMapMenu()}if(a.getInfoEnabled()){a.enableDisableInfo(null,a.getInfoEnabled())}a.addCustomEvents();a.setAladinReady(!0);a.fireEvent('aladinready',a)},onChangeImageSurvey:function(){this.addCustomEvents()},aladinIsReady:function(){var a=this;return a.getAladinReady()},getRaDec:function(){var b=this,a=b.getAladin();return a.getRaDec()},getEmptySurvey:function(){return Ext.clone(this.emptySurvey)},readProperties:function(c,a,b){ProgressiveCat.readProperties(c,a,b)},onResize:function(){var a=this,b=a.getAladin();if(a.getAutoSize()){b.view.fixLayoutDimensions()}},setSurveys:function(a){this.surveys=null;this.surveys=a;if(this.getAladin()&&a.length>0){this.removeLayers();this.createImageSurveys()}},createImageSurvey:function(e){var c=this,f=c.getEmptySurvey(),d=c.getAladin(),a,b,g;a=Ext.Object.merge(f,e);b=d.createImageSurvey(String(a.id),a.name,a.url,a.cooFrame,a.maxOrder,a.options);return b},createImageSurveys:function(){var a=this,b=a.getSurveys(),d=a.getFilter(),f=a.getEmptySurvey(),e,c;if(b.length===0){b.push(f)}for(var g in b){e=b[g];a.createImageSurvey(e)}if(d){c=a.getSurveyByFilter(d)}else {c=b[0]}a.updateImageLayersMenuItems();a.setImageSurvey(c)},getSurveyByFilter:function(c){var d=this,b=d.getSurveys(),a;for(var e in b){a=b[e];if(a.filter.toLowerCase()==c.toLowerCase()){return a}}},getImageSurvey:function(){var b=this,a=b.getAladin();if(a){return a.getBaseImageLayer()}else {return null}},setImageSurvey:function(b){var a=this,c=a.getAladin(),d=a.getEmptySurvey();if(b){c.setImageSurvey(b.id);if(a.isFirstSurvey){if(b.target!==''){a.goToPosition(b.target)}if(a.getInitialFov()){a.setFov(a.getInitialFov())}else {if(b.fov){a.setFov(b.fov)}}a.isFirstSurvey=!1}a.showDesFootprint();a.addCustomEvents();a.fireEvent('changeimage',b,a)}else {c.setImageSurvey(d.id)}},setStoreSurveys:function(a){var b=this;if(a){a.on({scope:this,load:'onStoreSurveysLoad',beforeload:'onStoreSurveysBeforeLoad'});b.storeSurveys=a}},onStoreSurveysBeforeLoad:function(a){var b=this;b.setLoading({store:a})},onStoreSurveysLoad:function(d){var a=this,g=a.getAladin(),f=a.getEmptySurvey(),c=[],b=[],e;if(d.count()===0){console.log('NAO TEM SURVEY');a.setImageSurvey(f)}d.each(function(a){e={id:String(a.get('id')),url:a.get('srv_url'),name:a.get('srv_display_name'),filter:a.get('filter'),target:a.get('srv_target'),fov:a.get('srv_fov')};c.push(e);b.push(a.get('filter'))});a.setSurveys(c);a.setAvailableFilters(b)},setLocation:function(c,b){var a=this,d=a.getViewModel();a.location=c;a.mlocation=b;d.set('location',c);d.set('mlocation',b);if(a.getAladin()){a.onChangeLocation()}},onChangeLocation:function(a){var b=this;if(!a){a=b.getRaDec()}b.identifyTile(a);b.updateInfoData()},setAvailableFilters:function(a){var b=this,c=b.getBandFilter();if(a.length>0){if(b.getShowFilters()){c.setAvailableFilters(a)}}},setStoreTags:function(a){var b=this;if(a){b.storeTags=a;a.on('load','onLoadStoreTags',this)}},onLoadStoreTags:function(b){var a=this;if(a.getEnableViewMenu()){if(b.count()>0){a.createTileGridMenu()}}},setStoreTiles:function(a){var b=this;b.storeTiles=a;a.on('beforeload','onBeforeloadStoreTiles',this);a.on('load','onLoadStoreTiles',this)},onBeforeloadStoreTiles:function(){var a=this;a.setLoading(!0)},onLoadStoreTiles:function(){var a=this,b;a.setLoading(!1);if(a.getEnableViewMenu()){b=a.down('#TileGridMenu');if(b.checked){a.onCheckTileGridMenu(b,b.checked)}}a.identifyTile()},getTileByPosition:function(c){var e=this,b=e.getStoreTiles(),a=c,d;if(!c){a=e.getRaDec()}if(b&&b.count()){d=b.filterByRaDec(a[0],a[1])}return d},identifyTile:function(f){var b=this,c=b.getViewModel(),e=c.get('tileid'),a,d;a=b.getTileByPosition(f);if(a){if(a.get('id')!==e){d=b.getStoreTags().getById(a.get('tag'));c.set('release_name',a.get('release_display_name'));c.set('tile',a);c.set('tag',d);b.fireEvent('changetile',a,d,b)}}else {c.set('tile',null);c.set('tag',null);b.fireEvent('changetile',a,d,b)}},onFilter:function(b){var a=this,c;c=a.getSurveyByFilter(b);a.setImageSurvey(c);a.fireEvent('changefilter',b,a)},getFilter:function(){var a=this,b=a.getBandFilter();if(a.getShowFilters()){return b.getFilter()}},setFilter:function(b){var c=this,a=c.getBandFilter();a.setFilter(b)},changeMapSurvey:function(a){var c=this,d=c.getAladin(),b;b={id:String(a.map_id),url:a.map_url,name:a.map_name,filter:a.map_filter,maxOrder:3};mapSurvey=c.createImageSurvey(b);d.setImageSurvey(mapSurvey.id)},selectExternalSurvey:function(b){var d=this,c=d.getAladin(),a=b.survey;c.setImageSurvey(a.id)},exportAsPng:function(){var b=this,a=b.getAladin();a.exportAsPNG()},showReticle:function(d,b){var c=this,a=c.getAladin();a.showReticle(b)},showHealpixGrid:function(d,b){var c=this,a=c.getAladin();a.showHealpixGrid(b)},showDesFootprint:function(a,b){var c=this;if(!a){a=c.down('#DesFootprint');b=a.checked}c.plotDesFootprint(b)},reverseColor:function(){var b=this,a=b.getAladin();a.getBaseImageLayer().getColorMap().reverse()},changeColorMap:function(b){var c=this,a=c.getAladin();a.getBaseImageLayer().getColorMap().update(b.mapName)},plotDesFootprint:function(e){var d=this,c=d.getAladin();des=d.getDesFootprintCoordinates();if(c.view.overlays[0]!=undefined){overlays=c.view.overlays;plotDes=!1;for(var b=overlays.length-1;b>=0;b--){if(overlays[b].name=='des'){plotDes=!0;if(e){overlays[b].show()}else {overlays[b].hide()}}}if(plotDes==!1){var a=A.graphicOverlay({color:'#ee2345',lineWidth:2,name:'des'});c.addOverlay(a);a.add(A.polyline(des))}}else {var a=A.graphicOverlay({color:'#ee2345',lineWidth:2,name:'des'});c.addOverlay(a);a.add(A.polyline(des))}},onCheckTileGridMenu:function(b,a){var d=this,c=b.getMenu();c.items.each(function(c){c.setChecked(a)},d)},onCheckTileGrid:function(b,a){this.showTileGrid(b.tag,a)},showTileGrid:function(c,g){var a=this,e=a.getStoreTiles(),f=a.getStoreTags(),d=f.getById(c),b;if(g){b=e.query('tag',c);if(b.count()>0){a.plotFootprint(d,b)}}else {a.setVisibleFootprint(d.get('tag_name'),!1)}},plotFootprint:function(e,h){var c=this,f=c.getAladin(),b=c.libA,a,d,g;d=b.catalog({name:'Recent tiles',sourceSize:14,color:'#e67e22'});a=c.getFootprintByName(e.get('tag_name'));if(a){a.show()}else {a=b.graphicOverlay({color:c.getColor(),lineWidth:1,name:String(e.get('tag_name'))});f.addOverlay(a);h.each(function(c){var f=[[c.get('raul'),c.get('decul')],[c.get('rall'),c.get('decll')],[c.get('ralr'),c.get('declr')],[c.get('raur'),c.get('decur')]];a.addFootprints(b.polygon(f));if(c.get('is_new')){g=!0;d.addSources([b.marker(c.get('tli_ra'),c.get('tli_dec'),{popupTitle:'Tile Recently Added',popupDesc:'Creation date: '+c.get('date')})])}},this);if(g&&!e.get('is_new')){f.addCatalog(d)}}},parsePosition:function(a){var b,d,c;if(a){if(a.indexOf(',')!=-1){a=a.split(',');b=parseFloat(a[0].trim());d=parseFloat(a[1].trim());if(b<0){b=b+360}c=[b,d];a=c.join(', ')}else {a=c}return a}},goToPosition:function(b){var c=this,d=c.getAladin(),a;if(b){a=c.parsePosition(b);d.gotoObject(a)}},setFov:function(b){var d=this,c=d.getAladin(),a=parseFloat(b);if(a){c.setFoV(a)}},getFov:function(){var b=this,a=b.getAladin();return a.getFov()[0]},getFootprintByName:function(d){var e=this,c=e.getAladin(),a=c.view.overlays,b=null;if(a.length>0){a.forEach(function(a){if(a.name==d){b=a}})}return b},setVisibleFootprint:function(c,b){var d=this,a;if(b=='undefined'){b=!0}a=d.getFootprintByName(c);if(a){if(b){a.show()}else {a.hide()}}},removeLayers:function(){var b=this,a=b.getAladin();a.removeLayers()},getColor:function(){var a=this,c=a.colorsDefault,b;if(a.colorsAvailable.length===0){a.colorsAvailable=Ext.clone(c)}b=a.colorsAvailable.shift();return b},onShift:function(){this.fireEvent('shift',this.getRaDec(),this)},onShowLayerBox:function(){var b=this,a=b.getViewModel().getView().getAladin();a.hideBoxes();a.showLayerBox();return !1},overlayDrawCircle:function(b,a,c){a.beginPath();a.arc(b.x,b.y,b.data['size']*2,0,2*Math.PI,!1);a.closePath();a.strokeStyle='#c38';a.lineWidth=3;a.globalAlpha=0.7,a.stroke();var d=Math.max(c['fov'][0],c['fov'][1]);return},getDesFootprintCoordinates:function(){var a=[[23,-7],[22,-7],[21,-7],[20,-7],[19,-7],[18,-7],[17,-7],[16,-7],[15,-7],[14,-7],[13,-7],[12,-7],[11,-7],[10,-7],[9,-7],[8,-7],[7,-7],[6,-7],[5,-7],[4,-7],[3,-7],[2,-7],[1,-7],[0,-7],[0,-6],[0,-5],[0,-4],[0,-3],[0,-2],[-1,-2],[-2,-2],[-3,-2],[-4,-2],[-5,-2],[-6,-2],[-7,-2],[-8,-2],[-9,-2],[-10,-2],[-11,-2],[-12,-2],[-13,-2],[-14,-2],[-15,-2],[-16,-2],[-17,-2],[-18,-2],[-19,-2],[-20,-2],[-21,-2],[-22,-2],[-23,-2],[-24,-2],[-25,-2],[-26,-2],[-27,-2],[-28,-2],[-29,-2],[-30,-2],[-31,-2],[-32,-2],[-33,-2],[-34,-2],[-35,-2],[-36,-2],[-37,-2],[-38,-2],[-39,-2],[-40,-2],[-41,-2],[-42,-2],[-43,-2],[-43,-1],[-43,0],[-43,1],[-43,2],[-42,2],[-41,2],[-40,2],[-39,2],[-38,2],[-37,2],[-36,2],[-35,2],[-34,2],[-33,2],[-32,2],[-31,2],[-30,2],[-29,2],[-28,2],[-27,2],[-26,2],[-25,2],[-24,2],[-23,2],[-22,2],[-21,2],[-20,2],[-19,2],[-18,2],[-17,2],[-16,2],[-15,2],[-14,2],[-13,2],[-12,2],[-11,2],[-10,2],[-9,2],[-8,2],[-7,2],[-6,2],[-5,2],[-4,2],[-3,2],[-2,2],[-1,2],[0,2],[0,2],[0,3],[0,4],[0,5],[1,5],[2,5],[3,5],[4,5],[5,5],[6,5],[7,5],[8,5],[9,5],[10,5],[11,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[21,5],[22,5],[23,5],[24,5],[25,5],[26,5],[27,5],[28,5],[29,5],[30,5],[31,5],[32,5],[33,5],[34,5],[35,5],[36,5],[37,5],[38,5],[39,5],[40,5],[41,5],[42,5],[43,5],[44,5],[45,5],[45,5],[45,4],[45,3],[45,2],[45,1],[45,0],[45,-1],[45,-2],[45,-3],[45,-4],[45,-5],[45,-6],[45,-7],[45,-8],[45,-9],[45.83584,-9.06842],[46.36744,-9.14567],[46.89697,-9.22888],[47.42429,-9.3181],[47.94928,-9.41337],[48.47183,-9.51474],[48.99181,-9.62226],[49.50912,-9.73598],[50.02364,-9.85594],[50.53529,-9.98221],[51.04396,-10.11482],[51.54955,-10.25382],[52.05199,-10.39926],[52.55118,-10.55119],[53.04706,-10.70965],[53.53954,-10.87467],[54.02856,-11.0463],[54.51405,-11.22457],[54.99596,-11.40952],[55.47423,-11.60118],[55.94881,-11.79957],[56.41965,-12.00471],[56.88672,-12.21663],[57.34998,-12.43534],[57.80939,-12.66086],[58.26493,-12.89318],[58.71657,-13.13232],[59.16429,-13.37827],[59.60807,-13.63102],[60.0479,-13.89057],[60.48377,-14.15689],[60.91568,-14.42997],[61.3436,-14.70979],[61.76755,-14.99631],[62.18753,-15.2895],[62.60354,-15.58931],[63.01557,-15.89572],[63.42365,-16.20866],[63.82778,-16.52808],[64.22797,-16.85393],[66,-18],[67,-18],[68,-18],[69,-18],[70,-18],[71,-18],[72,-18],[73,-18],[74,-18],[75,-18],[76,-18],[77,-18],[78,-18],[79,-18],[80,-18],[81,-18],[82,-18],[83,-18],[84,-18],[85,-18],[86,-18],[86.66667,-19],[87.33333,-20],[88,-21],[88.66667,-22],[89.41596,-23.1317],[89.68146,-24.3655],[89.95879,-25.59111],[90.24749,-26.80814],[90.54705,-28.01619],[90.8569,-29.21488],[91.17643,-30.40381],[91.50499,-31.58263],[91.84185,-32.75095],[92.18623,-33.90841],[92.53729,-35.05464],[92.89409,-36.18931],[93.25565,-37.31205],[93.62088,-38.42252],[93.98862,-39.5204],[94.35759,-40.60535],[94.72643,-41.67704],[95.09367,-42.73517],[95.45771,-43.77942],[95.81685,-44.80949],[96.16922,-45.82508],[96.51286,-46.8259],[96.84562,-47.81168],[97.16521,-48.78213],[97.46918,-49.73698],[97.75487,-50.67597],[98.01948,-51.59884],[98.25999,-52.50536],[98.47317,-53.39526],[98.65561,-54.26832],[98.80364,-55.1243],[98.91339,-55.96299],[98.98075,-56.78417],[99.00136,-57.58762],[98.97062,-58.37314],[98.88371,-59.14055],[98.73552,-59.88964],[98.52073,-60.62023],[98.23379,-61.33214],[98,-61.5],[97,-61.5],[96,-61.5],[95,-61.5],[94,-61.5],[93,-61.5],[92,-61.5],[91,-61.5],[90,-61.5],[89,-61.5],[88,-61.5],[87,-61.5],[86,-61.5],[85,-61.5],[84,-61.5],[83,-62],[78.66667,-63],[74.33333,-64],[69.1922,-65.62708],[68.293,-65.99135],[67.35218,-66.34555],[66.36917,-66.68914],[65.34355,-67.02152],[64.27503,-67.3421],[63.1635,-67.65026],[62.00905,-67.9454],[60.81197,-68.22686],[59.5728,-68.49402],[58.29235,-68],[56.97169,-68],[55.6122,-67],[54.21558,-66],[52.78381,-65.5],[51.31925,-65],[49.82454,-65],[48.30265,-65],[46.75683,-65],[45.19062,-65],[43.60779,-65],[42.0123,-65],[40.4083,-65],[38.8,-65],[37.1917,-65],[35.5877,-65],[33.99221,-65],[32.40938,-65],[30.84317,-65],[29.29735,-65],[27.77546,-65],[26.28075,-65],[24.81619,-65],[23.38442,-65],[21.9878,-65],[20.62831,-65],[19.30765,-65],[18.0272,-65],[16.78803,-65],[15.59095,-65],[14.4365,-65],[13.32497,-65],[12.25645,-65],[11.23083,-65],[10.24782,-65],[9.307,-65],[8.4078,-65],[7.54955,-65],[4,-65],[3,-65],[2,-65],[1,-65],[0,-65],[-1,-65],[-2,-65],[-3,-65],[-4,-65],[-5,-65],[-6,-65],[-7,-65],[-8,-65],[-9,-65],[-10,-65],[-11,-65],[-12,-65],[-13,-65],[-14,-65],[-15,-65],[-16,-65],[-17,-65],[-18,-65],[-19,-65],[-20,-65],[-21,-65],[-22,-65],[-23,-65],[-24,-65],[-25,-65],[-26,-65],[-27,-65],[-28,-65],[-29,-65],[-30,-65],[-31,-65],[-32,-65],[-33,-65],[-34,-65],[-35,-65],[-36,-65],[-37,-65],[-38,-65],[-39,-65],[-40,-65],[-41,-65],[-42,-65],[-43,-65],[-44,-65],[-45,-65],[-46,-65],[-47,-65],[-48,-65],[-49,-65],[-50,-65],[-51,-65],[-52,-65],[-53,-65],[-54,-65],[-55,-65],[-56,-65],[-57,-65],[-56.8,-64],[-56.6,-63],[-56.4,-62],[-56.2,-61],[-56,-60],[-60.9756,-58.52],[-60.7792,-55.2685],[-60.2796,-52.4931],[-59.9266,-50.9207],[-58.355,-50.4154],[-56.6089,-49.5636],[-54.9615,-48.7766],[-54.8,-48],[-54.7,-47],[-54.6,-46],[-54.5,-45],[-54.4,-44],[-54.3,-43],[-54.2,-42],[-54.1,-41],[-54,-40],[-53,-40],[-52,-40],[-51,-40],[-50,-40],[-49,-40],[-48,-40],[-47,-40],[-46,-40],[-45,-40],[-44,-40],[-43,-40],[-42,-40],[-41,-40],[-40,-40],[-39,-40],[-38,-40],[-37,-40],[-36,-40],[-35,-40],[-34,-40],[-33,-40],[-32,-40],[-31,-40],[-30,-40],[-29,-40],[-28,-40],[-27,-40],[-26,-40],[-25,-40],[-24,-40],[-23,-40],[-22,-40],[-21,-40],[-20,-40],[-19,-40],[-18,-40],[-17,-40],[-16,-40],[-15,-40],[-14,-40],[-13,-40],[-12,-40],[-11,-40],[-10,-40],[-9,-40],[-8,-40],[-7,-40],[-6,-40],[-5,-40],[-4,-40],[-3,-40],[-1.47219,-38.64048],[-1.27518,-38.12814],[-1.07231,-37.61674],[-0.86376,-37.1064],[-0.6497,-36.59723],[-0.43028,-36.08933],[-0.20564,-35.58282],[0.02406,-35.07782],[0.25871,-34.57444],[0.49818,-34.0728],[0.74235,-33.57301],[0.99113,-33.0752],[1.24441,-32.5795],[1.50209,-32.08601],[1.7641,-31.59488],[2.03036,-31.10621],[2.30079,-30.62015],[2.57532,-30.13681],[2.85391,-29.65632],[3.13648,-29.17881],[3.423,-28.70441],[3.71342,-28.23325],[4.0077,-27.76546],[4.30581,-27.30116],[4.60772,-26.84048],[4.9134,-26.38355],[5.22284,-25.93051],[5.53601,-25.48147],[5.8529,-25.03656],[6.17351,-24.59591],[6.49782,-24.15964],[6.82584,-23.72788],[7.15756,-23.30074],[7.49299,-22.87835],[7.83212,-22.46081],[8.17498,-22.04826],[8.52155,-21.6408],[8.87186,-21.23855],[9.22592,-20.8416],[9.58374,-20.45008],[9.94533,-20.06407],[10.3107,-19.68369],[10.67989,-19.30903],[11.05289,-18.94018],[11.42973,-18.57723],[11.81042,-18.22027],[12.19498,-17.86938],[12.58343,-17.52465],[12.97577,-17.18614],[13.37203,-16.85393],[13.77222,-16.52808],[14.17635,-16.20866],[14.58443,-15.89572],[14.99646,-15.58931],[15.41247,-15.2895],[15.83245,-14.99631],[16.2564,-14.70979],[16.68432,-14.42997],[17.11623,-14.15689],[17.5521,-13.89057],[17.99193,-13.63102],[18.43571,-13.37827],[18.88343,-13.13232],[19.33507,-12.89318],[19.79061,-12.66086],[20.25002,-12.43534],[20.71328,-12.21663],[21.18035,-12.00471],[21.65119,-11.79957],[22.12577,-11.60118],[22.60404,-11.40952],[23.08595,-11.22457],[23,-10],[23,-9],[23,-8],[23,-7]];return a}},0,['aladin'],['component','box','container','panel','aladin'],{'component':!0,'box':!0,'container':!0,'panel':!0,'aladin':!0},['widget.aladin'],[['events',aladin.Events],['interface',aladin.Interfaces]],[aladin,'Aladin'],0);Ext.cmd.derive('aladin.maps.MapSelectionViewModel',Ext.app.ViewModel,{stores:{maps_store:{type:'maps',autoLoad:!1},aladin_images_store:{type:'aladin_images',autoLoad:!1}},data:{release:null,aladin_last_map_survey:null,aladin_last_nonmap_survey:null,map_selected:!1},formulas:{aladin_switchable:function(a){return a('aladin_last_nonmap_survey')!=null&&a('aladin_last_map_survey')!=null}}},0,0,0,0,['viewmodel.mapselection'],0,[aladin.maps,'MapSelectionViewModel'],0);Ext.cmd.derive('Ext.draw.ContainerBase',Ext.panel.Panel,{previewTitleText:'Chart Preview',previewAltText:'Chart preview',layout:'container',addElementListener:function(){var a=this,b=arguments;if(a.rendered){a.el.on.apply(a.el,b)}else {a.on('render',function(){a.el.on.apply(a.el,b)})}},removeElementListener:function(){var a=this,b=arguments;if(a.rendered){a.el.un.apply(a.el,b)}},afterRender:function(){Ext.panel.Panel.prototype.afterRender.apply(this,arguments);this.initAnimator()},getItems:function(){var a=this,b=a.items;if(!b||!b.isMixedCollection){a.initItems()}return a.items},onRender:function(){Ext.panel.Panel.prototype.onRender.apply(this,arguments);this.element=this.el;this.innerElement=this.body},setItems:function(a){this.items=a;return a},setSurfaceSize:function(b,a){this.resizeHandler({width:b,height:a});this.renderFrame()},onResize:function(b,a,d,c){var e=this;Ext.panel.Panel.prototype.onResize.call(this,b,a,d,c);e.setBodySize({width:b,height:a})},preview:function(){var a=this.getImage();new Ext.window.Window({title:this.previewTitleText,closeable:!0,renderTo:Ext.getBody(),autoShow:!0,maximizeable:!0,maximized:!0,border:!0,layout:{type:'hbox',pack:'center',align:'middle'},items:{xtype:'container',items:{xtype:'image',mode:'img',cls:'x-chart-image',alt:this.previewAltText,src:a.data,listeners:{afterrender:function(){var b=this,c=b.imgEl.dom,d=a.type==='svg'?1:window['devicePixelRatio']||1,e;if(!c.naturalWidth||!c.naturalHeight){c.onload=function(){var e=c.naturalWidth,a=c.naturalHeight;b.setWidth(Math.floor(e/d));b.setHeight(Math.floor(a/d))}}else {e=b.getSize();b.setWidth(Math.floor(e.width/d));b.setHeight(Math.floor(e.height/d))}}}}}})},privates:{getTargetEl:function(){return this.innerElement},reattachToBody:function(){var a=this;if(a.pendingDetachSize){a.onBodyResize()}a.pendingDetachSize=!1;Ext.panel.Panel.prototype.reattachToBody.call(this)}}},0,0,['component','box','container','panel'],{'component':!0,'box':!0,'container':!0,'panel':!0},0,0,[Ext.draw,'ContainerBase'],0);Ext.cmd.derive('Ext.draw.SurfaceBase',Ext.Widget,{getOwnerBody:function(){return this.ownerCt.body},destroy:function(){var a=this;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}Ext.Widget.prototype.destroy.call(this)}},0,0,['widget'],{'widget':!0},0,0,[Ext.draw,'SurfaceBase'],0);Ext.cmd.derive('Ext.draw.Color',Ext.Base,{statics:{colorToHexRe:/(.*?)rgb\((\d+),\s*(\d+),\s*(\d+)\)/,rgbToHexRe:/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)/,rgbaToHexRe:/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([\.\d]+)\)/,hexRe:/\s*#([0-9a-fA-F][0-9a-fA-F]?)([0-9a-fA-F][0-9a-fA-F]?)([0-9a-fA-F][0-9a-fA-F]?)\s*/,NONE:'none',RGBA_NONE:'rgba(0, 0, 0, 0)'},isColor:!0,lightnessFactor:0.2,constructor:function(d,b,c,a){this.setRGB(d,b,c,a)},setRGB:function(e,c,d,b){var a=this;a.r=Math.min(255,Math.max(0,e));a.g=Math.min(255,Math.max(0,c));a.b=Math.min(255,Math.max(0,d));if(b===undefined){a.a=1}else {a.a=Math.min(1,Math.max(0,b))}},getGrayscale:function(){return this.r*0.3+this.g*0.59+this.b*0.11},getHSL:function(){var h=this,f=h.r/255,e=h.g/255,g=h.b/255,b=Math.max(f,e,g),d=Math.min(f,e,g),c=b-d,a,j=0,i=0.5*(b+d);if(d!==b){j=i<=0.5?c/(b+d):c/(2-b-d);if(f===b){a=60*(e-g)/c}else {if(e===b){a=120+60*(g-f)/c}else {a=240+60*(f-e)/c}}if(a<0){a+=360}if(a>=360){a-=360}}return [a,j,i]},getHSV:function(){var g=this,d=g.r/255,c=g.g/255,f=g.b/255,b=Math.max(d,c,f),i=Math.min(d,c,f),e=b-i,a,j=0,h=b;if(i!=b){j=h?e/h:0;if(d===b){a=60*(c-f)/e}else {if(c===b){a=60*(f-d)/e+120}else {a=60*(d-c)/e+240}}if(a<0){a+=360}if(a>=360){a-=360}}return [a,j,h]},setHSL:function(f,g,c){var d=this,h=Math.abs,b,e,a;f=(f%360+360)%360;g=g>1?1:g<0?0:g;c=c>1?1:c<0?0:c;if(g===0||f===null){c*=255;d.setRGB(c,c,c)}else {f/=60;b=g*(1-h(2*c-1));e=b*(1-h(f%2-1));a=c-b/2;a*=255;b*=255;e*=255;switch(Math.floor(f)){case 0:d.setRGB(b+a,e+a,a);break;case 1:d.setRGB(e+a,b+a,a);break;case 2:d.setRGB(a,b+a,e+a);break;case 3:d.setRGB(a,e+a,b+a);break;case 4:d.setRGB(e+a,a,b+a);break;case 5:d.setRGB(b+a,a,e+a);break;}}return d},setHSV:function(f,g,c){var d=this,b,e,a;f=(f%360+360)%360;g=g>1?1:g<0?0:g;c=c>1?1:c<0?0:c;if(g===0||f===null){c*=255;d.setRGB(c,c,c)}else {f/=60;b=c*g;e=b*(1-Math.abs(f%2-1));a=c-b;a*=255;b*=255;e*=255;switch(Math.floor(f)){case 0:d.setRGB(b+a,e+a,a);break;case 1:d.setRGB(e+a,b+a,a);break;case 2:d.setRGB(a,b+a,e+a);break;case 3:d.setRGB(a,e+a,b+a);break;case 4:d.setRGB(e+a,a,b+a);break;case 5:d.setRGB(b+a,a,e+a);break;}}return d},createLighter:function(b){if(!b&&b!==0){b=this.lightnessFactor}var a=this.getHSL();a[2]=Ext.Number.constrain(a[2]+b,0,1);return Ext.draw.Color.fromHSL(a[0],a[1],a[2])},createDarker:function(a){if(!a&&a!==0){a=this.lightnessFactor}return this.createLighter(-a)},toString:function(){var a=this,b=Math.round;if(a.a===1){var e=b(a.r).toString(16),d=b(a.g).toString(16),c=b(a.b).toString(16);e=e.length===1?'0'+e:e;d=d.length===1?'0'+d:d;c=c.length===1?'0'+c:c;return ['#',e,d,c].join('')}else {return 'rgba('+[b(a.r),b(a.g),b(a.b),a.a===0?0:a.a.toFixed(15)].join(', ')+')'}},toHex:function(a){if(Ext.isArray(a)){a=a[0]}if(!Ext.isString(a)){return ''}if(a.substr(0,1)==='#'){return a}var b=Ext.draw.Color.colorToHexRe.exec(a);if(Ext.isArray(b)){var e=parseInt(b[2],10),c=parseInt(b[3],10),d=parseInt(b[4],10),f=d|c<<8|e<<16;return b[1]+'#'+('000000'+f.toString(16)).slice(-6)}else {return ''}},setFromString:function(b){var a,c,e,d,g=1,f=parseInt;if(b===Ext.draw.Color.NONE){this.r=this.g=this.b=this.a=0;return this}if((b.length===4||b.length===7)&&b.substr(0,1)==='#'){a=b.match(Ext.draw.Color.hexRe);if(a){c=f(a[1],16)>>0;e=f(a[2],16)>>0;d=f(a[3],16)>>0;if(b.length===4){c+=c*16;e+=e*16;d+=d*16}}}else {if(a=b.match(Ext.draw.Color.rgbToHexRe)){c=+a[1];e=+a[2];d=+a[3]}else {if(a=b.match(Ext.draw.Color.rgbaToHexRe)){c=+a[1];e=+a[2];d=+a[3];g=+a[4]}else {if(Ext.draw.Color.ColorList.hasOwnProperty(b.toLowerCase())){return this.setFromString(Ext.draw.Color.ColorList[b.toLowerCase()])}}}}if(typeof c==='undefined'){return this}this.r=c;this.g=e;this.b=d;this.a=g;return this}},3,0,0,0,0,0,[Ext.draw,'Color'],function(){var a=new this();this.addStatics({fly:function(b,e,d,c){switch(arguments.length){case 1:a.setFromString(b);break;case 3:case 4:a.setRGB(b,e,d,c);break;default:return null;}return a},ColorList:{aliceblue:'#f0f8ff',antiquewhite:'#faebd7',aqua:'#00ffff',aquamarine:'#7fffd4',azure:'#f0ffff',beige:'#f5f5dc',bisque:'#ffe4c4',black:'#000000',blanchedalmond:'#ffebcd',blue:'#0000ff',blueviolet:'#8a2be2',brown:'#a52a2a',burlywood:'#deb887',cadetblue:'#5f9ea0',chartreuse:'#7fff00',chocolate:'#d2691e',coral:'#ff7f50',cornflowerblue:'#6495ed',cornsilk:'#fff8dc',crimson:'#dc143c',cyan:'#00ffff',darkblue:'#00008b',darkcyan:'#008b8b',darkgoldenrod:'#b8860b',darkgray:'#a9a9a9',darkgreen:'#006400',darkkhaki:'#bdb76b',darkmagenta:'#8b008b',darkolivegreen:'#556b2f',darkorange:'#ff8c00',darkorchid:'#9932cc',darkred:'#8b0000',darksalmon:'#e9967a',darkseagreen:'#8fbc8f',darkslateblue:'#483d8b',darkslategray:'#2f4f4f',darkturquoise:'#00ced1',darkviolet:'#9400d3',deeppink:'#ff1493',deepskyblue:'#00bfff',dimgray:'#696969',dodgerblue:'#1e90ff',firebrick:'#b22222',floralwhite:'#fffaf0',forestgreen:'#228b22',fuchsia:'#ff00ff',gainsboro:'#dcdcdc',ghostwhite:'#f8f8ff',gold:'#ffd700',goldenrod:'#daa520',gray:'#808080',green:'#008000',greenyellow:'#adff2f',honeydew:'#f0fff0',hotpink:'#ff69b4',indianred:'#cd5c5c',indigo:'#4b0082',ivory:'#fffff0',khaki:'#f0e68c',lavender:'#e6e6fa',lavenderblush:'#fff0f5',lawngreen:'#7cfc00',lemonchiffon:'#fffacd',lightblue:'#add8e6',lightcoral:'#f08080',lightcyan:'#e0ffff',lightgoldenrodyellow:'#fafad2',lightgray:'#d3d3d3',lightgrey:'#d3d3d3',lightgreen:'#90ee90',lightpink:'#ffb6c1',lightsalmon:'#ffa07a',lightseagreen:'#20b2aa',lightskyblue:'#87cefa',lightslategray:'#778899',lightsteelblue:'#b0c4de',lightyellow:'#ffffe0',lime:'#00ff00',limegreen:'#32cd32',linen:'#faf0e6',magenta:'#ff00ff',maroon:'#800000',mediumaquamarine:'#66cdaa',mediumblue:'#0000cd',mediumorchid:'#ba55d3',mediumpurple:'#9370d8',mediumseagreen:'#3cb371',mediumslateblue:'#7b68ee',mediumspringgreen:'#00fa9a',mediumturquoise:'#48d1cc',mediumvioletred:'#c71585',midnightblue:'#191970',mintcream:'#f5fffa',mistyrose:'#ffe4e1',moccasin:'#ffe4b5',navajowhite:'#ffdead',navy:'#000080',oldlace:'#fdf5e6',olive:'#808000',olivedrab:'#6b8e23',orange:'#ffa500',orangered:'#ff4500',orchid:'#da70d6',palegoldenrod:'#eee8aa',palegreen:'#98fb98',paleturquoise:'#afeeee',palevioletred:'#d87093',papayawhip:'#ffefd5',peachpuff:'#ffdab9',peru:'#cd853f',pink:'#ffc0cb',plum:'#dda0dd',powderblue:'#b0e0e6',purple:'#800080',red:'#ff0000',rosybrown:'#bc8f8f',royalblue:'#4169e1',saddlebrown:'#8b4513',salmon:'#fa8072',sandybrown:'#f4a460',seagreen:'#2e8b57',seashell:'#fff5ee',sienna:'#a0522d',silver:'#c0c0c0',skyblue:'#87ceeb',slateblue:'#6a5acd',slategray:'#708090',snow:'#fffafa',springgreen:'#00ff7f',steelblue:'#4682b4',tan:'#d2b48c',teal:'#008080',thistle:'#d8bfd8',tomato:'#ff6347',turquoise:'#40e0d0',violet:'#ee82ee',wheat:'#f5deb3',white:'#ffffff',whitesmoke:'#f5f5f5',yellow:'#ffff00',yellowgreen:'#9acd32'},fromHSL:function(a,c,b){return (new this(0,0,0,0)).setHSL(a,c,b)},fromHSV:function(a,b,c){return (new this(0,0,0,0)).setHSL(a,b,c)},fromString:function(a){return (new this(0,0,0,0)).setFromString(a)},create:function(a){if(a instanceof this){return a}else {if(Ext.isArray(a)){return new Ext.draw.Color(a[0],a[1],a[2],a[3])}else {if(Ext.isString(a)){return Ext.draw.Color.fromString(a)}else {if(arguments.length>2){return new Ext.draw.Color(arguments[0],arguments[1],arguments[2],arguments[3])}else {return new Ext.draw.Color(0,0,0,0)}}}}}})});Ext.cmd.derive('Ext.draw.sprite.AnimationParser',Ext.Base,function(){function compute(a,c,b){return a+(c-a)*b}return {singleton:!0,attributeRe:/^url\(#([a-zA-Z\-]+)\)$/,color:{parseInitial:function(a,b){if(Ext.isString(a)){a=Ext.draw.Color.create(a)}if(Ext.isString(b)){b=Ext.draw.Color.create(b)}if(a instanceof Ext.draw.Color&&b instanceof Ext.draw.Color){return [[a.r,a.g,a.b,a.a],[b.r,b.g,b.b,b.a]]}else {return [a||b,b||a]}},compute:function(a,b,c){if(!Ext.isArray(a)||!Ext.isArray(b)){return b||a}else {return [compute(a[0],b[0],c),compute(a[1],b[1],c),compute(a[2],b[2],c),compute(a[3],b[3],c)]}},serve:function(a){var b=Ext.draw.Color.fly(a[0],a[1],a[2],a[3]);return b.toString()}},number:{parse:function(a){return a===null?null:+a},compute:function(a,b,c){if(!Ext.isNumber(a)||!Ext.isNumber(b)){return b||a}else {return compute(a,b,c)}}},angle:{parseInitial:function(b,a){if(a-b>Math.PI){a-=Math.PI*2}else {if(a-b<-Math.PI){a+=Math.PI*2}}return [b,a]},compute:function(a,b,c){if(!Ext.isNumber(a)||!Ext.isNumber(b)){return b||a}else {return compute(a,b,c)}}},path:{parseInitial:function(m,l){var e=m.toStripes(),c=l.toStripes(),a,i,f=e.length,g=c.length,j,h,k,d=c[g-1],b=[d[d.length-2],d[d.length-1]];for(a=f;a=1){return b.path}var c=0,k=e.length,a=0,g,d,h,i=b.temp.params,j=0;for(;cMath.min(a.x+a.width,b.x+b.width)||Math.max(a.y,b.y)-c>Math.min(a.y+a.height,b.y+b.height)},isPointInBBox:function(b,c,a){return !!a&&b>=a.x&&b<=a.x+a.width&&c>=a.y&&c<=a.y+a.height},spline:function(c){var a,e,i=c.length,g,j,k,d,h=0,b=new Float32Array(c.length),f=new Float32Array(c.length*3-2);b[0]=0;b[i-1]=0;for(a=1;a0;a--){h=3.732050807568877+48.248711305964385/(-13.928203230275537+Math.pow(0.07179676972449123,a));b[a]-=b[a+1]*h}d=c[0];g=d-b[0];for(a=0,e=0;a=c&&a>=b||a<=c&&a<=b){d=e=q}else {d=t((f-s)/n(a-c));if(cq){i-=j}d+=i;e+=i;k=f-o*v(d);g=a+o*u(d);l=f+p*v(e);h=a+p*u(e);if(a>c&&gc){k+=n(c-g)*(k-f)/(g-a);g=c}if(a>b&&hb){l-=n(b-h)*(l-f)/(h-a);h=b}return {x1:k,y1:g,x2:l,y2:h}},smooth:function(i,j,p){var o=i.length,m,n,c,d,k,l,e,f,g=[],h=[],a,b;for(a=0;a=Math.PI){a-=Math.PI*2}}return a}},data:function(a){if(Ext.isArray(a)){return a.slice()}else {if(a instanceof Float32Array){return new Float32Array(a)}}},bool:function(a){return !!a},color:function(a){if(a instanceof Ext.draw.Color){return a.toString()}else {if(a instanceof Ext.draw.gradient.Gradient){return a}else {if(!a){return Ext.draw.Color.NONE}else {if(Ext.isString(a)){if(a.substr(0,3)==='url'){a=Ext.draw.gradient.GradientDefinition.get(a);if(Ext.isString(a)){return a}}else {return Ext.draw.Color.fly(a).toString()}}}}}if(a.type==='linear'){return Ext.create('Ext.draw.gradient.Linear',a)}else {if(a.type==='radial'){return Ext.create('Ext.draw.gradient.Radial',a)}else {if(a.type==='pattern'){return Ext.create('Ext.draw.gradient.Pattern',a)}else {return Ext.draw.Color.NONE}}}},limited:function(a,b){return function(c){c=+c;return Ext.isNumber(c)?Math.min(Math.max(c,a),b):undefined}},limited01:function(a){a=+a;return Ext.isNumber(a)?Math.min(Math.max(a,0),1):undefined},enums:function(){var b={},c=Array.prototype.slice.call(arguments,0),a,d;for(a=0,d=c.length;a=(7-4*c)/11){return a*a-b((11-6*c-11*d)/4,2)}}},elastic:function(a,c){return b(2,10*--a)*j(20*a*h*(c||1)/3)}},a={},e,g,c;function createPoly(a){return function(c){return b(c,a)}}function addEasing(c,b){a[c+'In']=function(a){return b(a)};a[c+'Out']=function(a){return 1-b(1-a)};a[c+'InOut']=function(a){return a<=0.5?b(2*a)/2:(2-b(2*(1-a)))/2}}for(c=0,g=f.length;c-1},empty:function(){return this.animations.length===0},step:function(e){var f=this,c=f.animations,a,b=0,d=c.length;for(;b0},applyEasing:function(a){if(typeof a==='string'){a=Ext.draw.TimingFunctions.easingMap[a]}return a},applyCustomEasings:function(g,b){b=b||{};var e,f,d,a,c,h;for(f in g){e=!0;a=g[f];d=f.split(',');if(typeof a==='string'){a=Ext.draw.TimingFunctions.easingMap[a]}for(c=0,h=d.length;c=1){d[b]=h[b];delete h[b];if(e[b].remove){d.removeFromInstance=d.removeFromInstance||{};d.removeFromInstance[b]=!0}delete e[b]}else {d[b]=a.serve(a.compute(a.source,a.target,a.easing(f),c[b]));i=!0}}c.lastUpdate=g;this.setAnimating(c,i);return d},pushDown:function(b,a){a=Ext.draw.modifier.Modifier.prototype.pushDown.call(this,b.animationOriginal,a);return this.setAttrs(b,a)},popUp:function(a,b){a=a.prototype;b=this.setAttrs(a,b);if(this._next){return this._next.popUp(a,b)}else {return Ext.apply(a,b)}},step:function(g){var a=this,e=a.animatingPool.slice(),f=e.length,d=0,c,b;for(;d=a.x&&c<=a.x+a.width&&d>=a.y&&d<=a.y+a.height;if(e){return {sprite:this}}}return null},isVisible:function(){var a=this.attr,b=this.getParent(),e=b&&(b.isSurface||b.isVisible()),h=e&&!a.hidden&&a.globalAlpha,c=Ext.draw.Color.NONE,d=Ext.draw.Color.RGBA_NONE,g=a.fillOpacity&&a.fillStyle!==c&&a.fillStyle!==d,f=a.strokeOpacity&&a.strokeStyle!==c&&a.strokeStyle!==d,i=h&&(g||f);return !!i},repaint:function(){var a=this.getSurface();if(a){a.renderFrame()}},remove:function(){var a=this.getSurface();if(a&&a.isSurface){return a.remove(this)}return null},destroy:function(){var a=this,b=a.topModifier,c;while(b){c=b;b=b.getPrevious();c.destroy()}delete a.attr;a.remove();if(a.fireEvent('beforedestroy',a)!==!1){a.fireEvent('destroy',a)}a.callParent()}},1,0,0,0,['sprite.sprite'],[['observable',Ext.mixin.Observable]],[Ext.draw.sprite,'Sprite'],function(){this.def=new Ext.draw.sprite.AttributeDefinition(this.def);this.def.spriteClass=this});Ext.cmd.derive('Ext.draw.Path',Ext.Base,{statics:{pathRe:/,?([achlmqrstvxz]),?/gi,pathRe2:/-/gi,pathSplitRe:/\s|,/g},svgString:'',constructor:function(b){var a=this;a.commands=[];a.params=[];a.cursor=null;a.startX=0;a.startY=0;if(b){a.fromSvgString(b)}},clear:function(){var a=this;a.params.length=0;a.commands.length=0;a.cursor=null;a.startX=0;a.startY=0;a.dirt()},dirt:function(){this.svgString=''},moveTo:function(b,c){var a=this;if(!a.cursor){a.cursor=[b,c]}a.params.push(b,c);a.commands.push('M');a.startX=b;a.startY=c;a.cursor[0]=b;a.cursor[1]=c;a.dirt()},lineTo:function(b,c){var a=this;if(!a.cursor){a.cursor=[b,c];a.params.push(b,c);a.commands.push('M')}else {a.params.push(b,c);a.commands.push('L')}a.cursor[0]=b;a.cursor[1]=c;a.dirt()},bezierCurveTo:function(b,c,f,g,d,e){var a=this;if(!a.cursor){a.moveTo(b,c)}a.params.push(b,c,f,g,d,e);a.commands.push('C');a.cursor[0]=d;a.cursor[1]=e;a.dirt()},quadraticCurveTo:function(b,c,d,e){var a=this;if(!a.cursor){a.moveTo(b,c)}a.bezierCurveTo((2*b+a.cursor[0])/3,(2*c+a.cursor[1])/3,(2*b+d)/3,(2*c+e)/3,d,e)},closePath:function(){var a=this;if(a.cursor){a.cursor=null;a.commands.push('Z');a.dirt()}},arcTo:function(l,m,e,f,d,b,n){var i=this;if(b===undefined){b=d}if(n===undefined){n=0}if(!i.cursor){i.moveTo(l,m);return}if(d===0||b===0){i.lineTo(l,m);return}e-=l;f-=m;var g=i.cursor[0]-l,h=i.cursor[1]-m,q=e*h-f*g,j,k,y,A,z,t,w=Math.sqrt(g*g+h*h),x=Math.sqrt(e*e+f*f),u,c,a;if(q===0){i.lineTo(l,m);return}if(b!==d){j=Math.cos(n);k=Math.sin(n);y=j/d;A=k/b;z=-k/d;t=j/b;var v=y*g+A*h;h=z*g+t*h;g=v;v=y*e+A*f;f=z*e+t*f;e=v}else {g/=d;h/=b;e/=d;f/=b}c=g*x+e*w;a=h*x+f*w;u=1/(Math.sin(Math.asin(Math.abs(q)/(w*x))*0.5)*Math.sqrt(c*c+a*a));c*=u;a*=u;var B=(c*g+a*h)/(g*g+h*h),C=(c*e+a*f)/(e*e+f*f);var r=g*B-c,s=h*B-a,D=e*C-c,E=f*C-a,o=Math.atan2(s,r),p=Math.atan2(E,D);if(q>0){if(p=Math.PI*2){b.ellipse(j,k,h,i,g,d,d+Math.PI,l);b.ellipse(j,k,h,i,g,d+Math.PI,e,l);return}if(!l){if(e=y){s.push(d+b*p+f,e+c*p+g,d*p+b+f,e*p+c+g,b+f,c+g);u+=6;a-=y;o=d;d=b;b=-o;o=e;e=c;c=-o}if(a){i=(0.3294738052815987+0.012120855841304373*a)*a;h=Math.cos(a);j=Math.sin(a);v=h+i*j;w=j-i*h;s.push(d+b*i+f,e+c*i+g,d*v+b*w+f,e*v+c*w+g,d*h+b*j+f,e*h+c*j+g);u+=6}return u},arcSvg:function(b,c,i,y,m,v,x){if(b<0){b=-b}if(c<0){c=-c}var n=this,u=n.cursor[0],w=n.cursor[1],q=(u-v)/2,r=(w-x)/2,g=Math.cos(i),h=Math.sin(i),o=q*g+r*h,p=-q*h+r*g,k=o/b,l=p/c,a=k*k+l*l,s=(u+v)*0.5,t=(w+x)*0.5,e=0,f=0;if(a>=1){a=Math.sqrt(a);b*=a;c*=a}else {a=Math.sqrt(1/a-1);if(y===m){a=-a}e=a*b*l;f=-a*c*k;s+=g*e-h*f;t+=h*e+g*f}var j=Math.atan2((p-f)/c,(o-e)/b),d=Math.atan2((-p-f)/c,(-o-e)/b)-j;if(m){if(d<=0){d+=Math.PI*2}}else {if(d>=0){d-=Math.PI*2}}n.ellipse(s,t,b,c,i,j,j+d,1-m)},fromSvgString:function(k){if(!k){return}var e=this,b,g={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0,A:7,C:6,H:1,L:2,M:2,Q:4,S:4,T:2,V:1,Z:0},h='',i,j,c=0,d=0,l=!1,a,f,m;if(Ext.isString(k)){b=k.replace(Ext.draw.Path.pathRe,' $1 ').replace(Ext.draw.Path.pathRe2,' -').split(Ext.draw.Path.pathSplitRe)}else {if(Ext.isArray(k)){b=k.join(',').split(Ext.draw.Path.pathSplitRe)}}for(a=0,f=0;a=0){f=Math.sqrt(f);a=(f-i)/2/l;if(00){a-=f/l;if(0a.x){c=a.x}if(ha.y){d=a.y}if(f=e.length||!d.isVisible()){return c}a.attr=e[b];c=a.isVisible(point,options);a.attr=f;return c},render:function(h,c,g,d){var e=this,b=e.getTemplate(),k=e.attr.matrix,j=b.attr,f=e.instances,a,i=e.position;k.toContext(c);b.preRender(h,c,g,d);b.useAttributes(c,d);for(a=0;ac){a=e.substr(c,d-c)}else {continue}}f=a.indexOf('/');if(f>0){a=a.substr(0,f)}else {if(f===0){continue}}if(a!=='normal'&&a!=='inherit'){g=h[a];if(g){b[g]=a}else {if(a.match(Ext.dom.Element.unitRe)){b.fontSize=a}else {b.fontFamily=e.substr(c);break}}}c=d+1}if(!b.fontStyle){b.fontStyle=''}if(!b.fontVariant){b.fontVariant=''}if(!b.fontWeight){b.fontWeight=''}this.setAttributes(b,!0)},fontProperties:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,fontFamily:!0},setAttributes:function(a,d,e){var b,c;if(a&&a.font){c={};for(b in a){if(!(b in this.fontProperties)){c[b]=a[b]}}a=c}Ext.draw.sprite.Sprite.prototype.setAttributes.call(this,a,d,e)},getBBox:function(d){var b=this,a=b.attr.bbox.plain,c=b.getSurface();if(a.dirty){b.updatePlainBBox(a);a.dirty=!1}if(c.getInherited().rtl&&c.getFlipRtlText()){b.updatePlainBBox(a,!0)}return Ext.draw.sprite.Sprite.prototype.getBBox.call(this,d)},rtlAlignments:{start:'end',center:'center',end:'start'},updatePlainBBox:function(j,s){var e=this,b=e.attr,g=b.x,l=b.y,k=[],u=b.font,v=b.text,t=b.textBaseline,m=b.textAlign,o=s&&e.oldSize?e.oldSize:e.oldSize=Ext.draw.TextMeasurer.measureText(v,u),n=e.getSurface(),i=n.getInherited().rtl,r=i&&n.getFlipRtlText(),q=n.getRect(),f=o.sizes,h=o.height,c=o.width,p=f?f.length:0,d,a=0;switch(t){case 'hanging':case 'top':break;case 'ideographic':case 'bottom':l-=h;break;case 'alphabetic':l-=h*0.8;break;case 'middle':l-=h*0.5;break;}if(r){g=q[2]-q[0]-g;m=e.rtlAlignments[m]}switch(m){case 'start':if(i){for(;a0&&d>0){c=Math.sqrt(a*a+d*d)*Math.abs(Math.cos(g-Math.atan(a/d)))/2;f=m.createLinearGradient(i+k*c,j+l*c,i-k*c,j-l*c);for(b=0;b=0;a--){b[a].destroy()}}else {for(;a>=0;a--){c=b[a];c.setParent(null);c.setSurface(null)}}b.length=0;this.map={};this.dirtyZIndex=!0},applyItems:function(a){if(this.getItems()){this.removeAll(!0)}return Ext.Array.from(this.add(a))},createItem:function(a){return Ext.create(a.xclass||'sprite.'+a.type,a)},getBBox:function(b,j){var b=Ext.Array.from(b),c=Infinity,g=-Infinity,d=Infinity,f=-Infinity,h,a,e,i;for(e=0,i=b.length;ea.x){c=a.x}if(ga.y){d=a.y}if(f0){a.isPendingRenderFrame=!0;return}var g=a.getRect(),d=a.getBackground(),e=a.getItems(),c,b,f;if(!g){return}a.orderByZIndex();if(a.getDirty()){a.clear();a.clearTransform();if(d){a.renderSprite(d)}for(b=0,f=e.length;bthis.position){this.removeElement(c[c.length-1])}for(b=0;bthis.position){Ext.fly(a[a.length-1]).destroy()}return 'url(#'+this.element.getId()+')'},destroy:function(){var b=this.statics().map,a=this.element;if(a&&a.dom){delete b[a.dom.id];a.destroy()}this.callParent()}},3,0,0,0,0,0,[Ext.draw.engine.SvgContext,'Gradient'],0);Ext.cmd.derive('Ext.draw.engine.Svg',Ext.draw.Surface,{statics:{BBoxTextCache:{}},config:{highPrecision:!1},getElementConfig:function(){return {reference:'element',style:{position:'absolute'},children:[{reference:'innerElement',style:{width:'100%',height:'100%',position:'relative'},children:[{tag:'svg',reference:'svgElement',namespace:'http://www.w3.org/2000/svg',width:'100%',height:'100%',version:1.1}]}]}},constructor:function(b){var a=this;Ext.draw.Surface.prototype.constructor.call(this,b);a.mainGroup=a.createSvgNode('g');a.defElement=a.createSvgNode('defs');a.svgElement.appendChild(a.mainGroup);a.svgElement.appendChild(a.defElement);a.ctx=new Ext.draw.engine.SvgContext(a)},createSvgNode:function(b){var a=document.createElementNS('http://www.w3.org/2000/svg',b);return Ext.get(a)},getSvgElement:function(c,d,b){var a;if(c.dom.childNodes.length>b){a=c.dom.childNodes[b];if(a.tagName===d){return Ext.get(a)}else {Ext.destroy(a)}}a=Ext.get(this.createSvgNode(d));if(b===0){c.insertFirst(a)}else {a.insertAfter(Ext.fly(c.dom.childNodes[b-1]))}a.cache={};return a},setElementAttributes:function(d,c){var f=d.dom,e=d.cache,a,b;for(a in c){b=c[a];if(e[a]!==b){e[a]=b;f.setAttribute(a,b)}}},getNextDef:function(a){return this.getSvgElement(this.defElement,a,this.defPosition++)},clearTransform:function(){var a=this;a.mainGroup.set({transform:a.matrix.toSvg()})},clear:function(){this.ctx.clear();this.defPosition=0},renderSprite:function(a){var d=this,c=d.getRect(),b=d.ctx;if(a.attr.hidden||a.attr.globalAlpha===0){b.save();b.restore();return}a.element=b.save();a.preRender(this);a.useAttributes(b,c);if(!1===a.render(this,b,[0,0,c[2],c[3]])){return !1}a.setDirty(!1);b.restore()},flatten:function(f,e){var a='',g=Ext.getClassName(this),b,d,c;a+='';for(c=0;c';a+=this.serializeNode(b.svgElement.dom);a+=''}a+='';return {data:'data:image/svg+xml;utf8,'+encodeURIComponent(a),type:'svg'}},serializeNode:function(a){var c='',b,d,e,f;if(a.nodeType===document.TEXT_NODE){return a.nodeValue}c+='<'+a.nodeName;if(a.attributes.length){for(b=0,d=a.attributes.length;b';return c},destroy:function(){var a=this;a.ctx.destroy();a.mainGroup.destroy();delete a.mainGroup;delete a.ctx;Ext.draw.Surface.prototype.destroy.call(this)},remove:function(a,b){if(a&&a.element){if(this.ctx){this.ctx.removeElement(a.element)}else {a.element.destroy()}a.element=null}Ext.draw.Surface.prototype.remove.apply(this,arguments)}},1,0,['widget','surface'],{'widget':!0,'surface':!0},0,0,[Ext.draw.engine,'Svg'],0);Ext.draw||(Ext.draw={});Ext.draw.engine||(Ext.draw.engine={});Ext.draw.engine.excanvas=!0;if(!document.createElement('canvas').getContext){(function(){var f=Math;var b=f.round;var n=f.sin;var m=f.cos;var t=f.abs;var s=f.sqrt;var c=10;var e=c/2;var u=+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1];function getContext(){return this.context_||(this.context_=new CanvasRenderingContext2D_(this))}var p=Array.prototype.slice;function bind(c,a,d){var b=p.call(arguments,2);return function(){return c.apply(a,b.concat(p.call(arguments)))}}function encodeHtmlAttribute(a){return String(a).replace(/&/g,'&').replace(/"/g,'"')}function addNamespace(b,a,c){Ext.onReady(function(){if(!b.namespaces[a]){b.namespaces.add(a,c,'#default#VML')}})}function addNamespacesAndStylesheet(a){addNamespace(a,'g_vml_','urn:schemas-microsoft-com:vml');addNamespace(a,'g_o_','urn:schemas-microsoft-com:office:office');if(!a.styleSheets['ex_canvas_']){var b=a.createStyleSheet();b.owningElement.id='ex_canvas_';b.cssText='canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}'}}addNamespacesAndStylesheet(document);var o={init:function(b){var a=b||document;a.createElement('canvas');a.attachEvent('onreadystatechange',bind(this.init_,this,a))},init_:function(c){var b=c.getElementsByTagName('canvas');for(var a=0;a1){a--}if(6*a<1){return b+(c-b)*6*a}else {if(2*a<1){return c}else {if(3*a<2){return b+(c-b)*(2/3-a)*6}else {return b}}}}var k={};function processStyle(a){if(a in k){return k[a]}var c,e=1;a=String(a);if(a.charAt(0)=='#'){c=a}else {if(/^rgb/.test(a)){var b=getRgbHslContent(a);var c='#',f;for(var d=0;d<3;d++){if(b[d].indexOf('%')!=-1){f=Math.floor(percent(b[d])*255)}else {f=+b[d]}c+=h[clamp(f,0,255)]}e=+b[3]}else {if(/^hsl/.test(a)){var b=getRgbHslContent(a);c=hslToRgb(b);e=b[3]}else {c=r[a]||a}}}return k[a]={color:c,alpha:e}}var g={style:'normal',variant:'normal',weight:'normal',size:10,family:'sans-serif'};var l={};function processFontStyle(b){if(l[b]){return l[b]}var c=document.createElement('div');var a=c.style;try{a.font=b}catch(v){}return l[b]={style:a.fontStyle||g.style,variant:a.fontVariant||g.variant,weight:a.fontWeight||g.weight,size:a.fontSize||g.size,family:a.fontFamily||g.family}}function getComputedStyle(b,f){var a={};for(var e in b){a[e]=b[e]}var d=parseFloat(f.currentStyle.fontSize),c=parseFloat(b.size);if(typeof b.size=='number'){a.size=b.size}else {if(b.size.indexOf('px')!=-1){a.size=c}else {if(b.size.indexOf('em')!=-1){a.size=d*c}else {if(b.size.indexOf('%')!=-1){a.size=d/100*c}else {if(b.size.indexOf('pt')!=-1){a.size=c/0.75}else {a.size=d}}}}}a.size*=0.981;return a}function buildStyle(a){return a.style+' '+a.variant+' '+a.weight+' '+a.size+'px '+a.family}var q={'butt':'flat','round':'round'};function processLineCap(a){return q[a]||'square'}function CanvasRenderingContext2D_(a){this.m_=createMatrixIdentity();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle='#000';this.fillStyle='#000';this.lineWidth=1;this.lineJoin='miter';this.lineDash=[];this.lineCap='butt';this.miterLimit=c*1;this.globalAlpha=1;this.font='10px sans-serif';this.textAlign='left';this.textBaseline='alphabetic';this.canvas=a;var e='width:'+a.clientWidth+'px;height:'+a.clientHeight+'px;overflow:hidden;position:absolute';var b=a.ownerDocument.createElement('div');b.style.cssText=e;a.appendChild(b);var d=b.cloneNode(!1);d.style.backgroundColor='red';d.style.filter='alpha(opacity=0)';a.appendChild(d);this.element_=b;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var a=CanvasRenderingContext2D_.prototype;a.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(!0);this.textMeasureEl_=null}this.element_.innerHTML=''};a.beginPath=function(){this.currentPath_=[]};a.moveTo=function(b,c){var a=getCoords(this,b,c);this.currentPath_.push({type:'moveTo',x:a.x,y:a.y});this.currentX_=a.x;this.currentY_=a.y};a.lineTo=function(b,c){var a=getCoords(this,b,c);this.currentPath_.push({type:'lineTo',x:a.x,y:a.y});this.currentX_=a.x;this.currentY_=a.y};a.bezierCurveTo=function(a,b,c,d,g,h){var i=getCoords(this,g,h);var e=getCoords(this,a,b);var f=getCoords(this,c,d);bezierCurveTo(this,e,f,i)};function bezierCurveTo(b,c,d,a){b.currentPath_.push({type:'bezierCurveTo',cp1x:c.x,cp1y:c.y,cp2x:d.x,cp2y:d.y,x:a.x,y:a.y});b.currentX_=a.x;b.currentY_=a.y}a.quadraticCurveTo=function(d,e,g,h){var c=getCoords(this,d,e);var b=getCoords(this,g,h);var a={x:this.currentX_+2/3*(c.x-this.currentX_),y:this.currentY_+2/3*(c.y-this.currentY_)};var f={x:a.x+(b.x-this.currentX_)/3,y:a.y+(b.y-this.currentY_)/3};bezierCurveTo(this,a,f,b)};a.arc=function(d,f,a,g,i,h){a*=c;var p=h?'at':'wa';var b=d+m(g)*a-e;var q=f+n(g)*a-e;var l=d+m(i)*a-e;var r=f+n(i)*a-e;if(b==l&&!h){b+=0.125}var o=getCoords(this,d,f);var j=getCoords(this,b,q);var k=getCoords(this,l,r);this.currentPath_.push({type:p,x:o.x,y:o.y,radius:a,xStart:j.x,yStart:j.y,xEnd:k.x,yEnd:k.y})};a.rect=function(a,b,d,c){this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+c);this.lineTo(a,b+c);this.closePath()};a.strokeRect=function(a,b,d,c){var e=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+c);this.lineTo(a,b+c);this.closePath();this.stroke();this.currentPath_=e};a.fillRect=function(a,b,d,c){var e=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+c);this.lineTo(a,b+c);this.closePath();this.fill();this.currentPath_=e};a.createLinearGradient=function(b,d,c,e){var a=new CanvasGradient_('gradient');a.x0_=b;a.y0_=d;a.x1_=c;a.y1_=e;return a};a.createRadialGradient=function(d,f,b,e,g,c){var a=new CanvasGradient_('gradientradial');a.x0_=d;a.y0_=f;a.r0_=b;a.x1_=e;a.y1_=g;a.r1_=c;return a};a.drawImage=function(a,u){var j,k,i,h,d,e,m,l;var t=a.runtimeStyle.width;var s=a.runtimeStyle.height;a.runtimeStyle.width='auto';a.runtimeStyle.height='auto';var g=a.width;var f=a.height;a.runtimeStyle.width=t;a.runtimeStyle.height=s;if(arguments.length==3){j=arguments[1];k=arguments[2];d=e=0;m=i=g;l=h=f}else {if(arguments.length==5){j=arguments[1];k=arguments[2];i=arguments[3];h=arguments[4];d=e=0;m=g;l=f}else {if(arguments.length==9){d=arguments[1];e=arguments[2];m=arguments[3];l=arguments[4];j=arguments[5];k=arguments[6];i=arguments[7];h=arguments[8]}else {throw Error('Invalid number of arguments')}}}var r=getCoords(this,j,k);var o=[];var q=10;var p=10;var n=this.m_;o.push(' ','','');this.element_.insertAdjacentHTML('BeforeEnd',o.join(''))};a.setLineDash=function(a){if(a.length===1){a=a.slice();a[1]=a[0]}this.lineDash=a};a.getLineDash=function(){return this.lineDash};a.stroke=function(g){var d=[];var j=10;var i=10;d.push('');if(!g){appendStroke(this,d)}else {appendFill(this,d,f,e)}d.push('');this.element_.insertAdjacentHTML('beforeEnd',d.join(''))};function appendStroke(a,e){var d=processStyle(a.strokeStyle);var f=d.color;var c=d.alpha*a.globalAlpha;var b=a.lineScale_*a.lineWidth;if(b<1){c*=b}e.push('')}function appendFill(b,m,g,v){var a=b.fillStyle;var h=b.arcScaleX_;var i=b.arcScaleY_;var k=v.x-g.x;var j=v.y-g.y;if(a instanceof CanvasGradient_){var e=0;var o={x:0,y:0};var p=0;var s=1;if(a.type_=='gradient'){var G=a.x0_/h;var I=a.y0_/i;var H=a.x1_/h;var J=a.y1_/i;var l=getCoords(b,G,I);var w=getCoords(b,H,J);var E=w.x-l.x;var F=w.y-l.y;e=Math.atan2(E,F)*180/Math.PI;if(e<0){e+=360}if(e<1.0E-6){e=0}}else {var l=getCoords(b,a.x0_,a.y0_);o={x:(l.x-g.x)/k,y:(l.y-g.y)/j};k/=h*c;j/=i*c;var r=f.max(k,j);p=2*a.r0_/r;s=2*a.r1_/r-p}var d=a.colors_;d.sort(function(a,c){return a.offset-c.offset});var n=d.length;var B=d[0].color;var C=d[n-1].color;var y=d[0].alpha*b.globalAlpha;var z=d[n-1].alpha*b.globalAlpha;var t=[];for(var q=0;q')}else {if(a instanceof CanvasPattern_){if(k&&j){var K=-g.x;var L=-g.y;m.push('')}}else {var x=processStyle(b.fillStyle);var D=x.color;var A=x.alpha*b.globalAlpha;m.push('')}}}a.fill=function(){this.$stroke(!0)};a.closePath=function(){this.currentPath_.push({type:'close'})};function getCoords(f,b,d){var a=f.m_;return {x:c*(b*a[0][0]+d*a[1][0]+a[2][0])-e,y:c*(b*a[0][1]+d*a[1][1]+a[2][1])-e}}a.save=function(){var a={};copyState(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=matrixMultiply(createMatrixIdentity(),this.m_)};a.restore=function(){if(this.aStack_.length){copyState(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};function matrixIsFinite(a){return isFinite(a[0][0])&&isFinite(a[0][1])&&isFinite(a[1][0])&&isFinite(a[1][1])&&isFinite(a[2][0])&&isFinite(a[2][1])}function setM(b,a,c){if(!matrixIsFinite(a)){return}b.m_=a;if(c){var d=a[0][0]*a[1][1]-a[0][1]*a[1][0];b.lineScale_=s(t(d))}}a.translate=function(a,b){var c=[[1,0,0],[0,1,0],[a,b,1]];setM(this,matrixMultiply(c,this.m_),!1)};a.rotate=function(a){var b=m(a);var c=n(a);var d=[[b,c,0],[-c,b,0],[0,0,1]];setM(this,matrixMultiply(d,this.m_),!1)};a.scale=function(a,b){this.arcScaleX_*=a;this.arcScaleY_*=b;var c=[[a,0,0],[0,b,0],[0,0,1]];setM(this,matrixMultiply(c,this.m_),!0)};a.transform=function(a,b,c,d,e,f){var g=[[a,b,0],[c,d,0],[e,f,1]];setM(this,matrixMultiply(g,this.m_),!0)};a.setTransform=function(a,b,c,d,e,f){var g=[[a,b,0],[c,d,0],[e,f,1]];setM(this,g,!0)};a.drawText_=function(q,r,s,t,j){var i=this.m_,k=1000,e=0,h=k,g={x:0,y:0},d=[];var f=getComputedStyle(processFontStyle(this.font),this.element_);var n=buildStyle(f);var l=this.element_.currentStyle;var a=this.textAlign.toLowerCase();switch(a){case 'left':case 'center':case 'right':break;case 'end':a=l.direction=='ltr'?'right':'left';break;case 'start':a=l.direction=='rtl'?'right':'left';break;default:a='left';}switch(this.textBaseline){case 'hanging':case 'top':g.y=f.size/1.75;break;case 'middle':break;default:case null:case 'alphabetic':case 'ideographic':case 'bottom':g.y=-f.size/3;break;}switch(a){case 'right':e=k;h=0.05;break;case 'center':e=h=k/2;break;}var m=getCoords(this,r+g.x,s+g.y);d.push('');if(j){appendStroke(this,d)}else {appendFill(this,d,{x:-e,y:0},{x:h,y:f.size})}var p=i[0][0].toFixed(3)+','+i[1][0].toFixed(3)+','+i[0][1].toFixed(3)+','+i[1][1].toFixed(3)+',0,0';var o=b(m.x/c)+','+b(m.y/c);d.push('','','');this.element_.insertAdjacentHTML('beforeEnd',d.join(''))};a.fillText=function(b,c,d,a){this.drawText_(b,c,d,a,!1)};a.strokeText=function(b,c,d,a){this.drawText_(b,c,d,a,!0)};a.measureText=function(a){if(!this.textMeasureEl_){var c='';this.element_.insertAdjacentHTML('beforeEnd',c);this.textMeasureEl_=this.element_.lastChild}var b=this.element_.ownerDocument;this.textMeasureEl_.innerHTML='';this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(b.createTextNode(a));return {width:this.textMeasureEl_.offsetWidth}};a.clip=function(){};a.arcTo=function(){};a.createPattern=function(b,a){return new CanvasPattern_(b,a)};function CanvasGradient_(a){this.type_=a;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}CanvasGradient_.prototype.addColorStop=function(b,a){a=processStyle(a);this.colors_.push({offset:b,color:a.color,alpha:a.alpha})};function CanvasPattern_(a,b){assertImageIsValid(a);switch(b){case 'repeat':case null:case '':this.repetition_='repeat';break;case 'repeat-x':case 'repeat-y':case 'no-repeat':this.repetition_=b;break;default:throwException('SYNTAX_ERR');}this.src_=a.src;this.width_=a.width;this.height_=a.height}function throwException(a){throw new DOMException_(a)}function assertImageIsValid(a){if(!a||a.nodeType!=1||a.tagName!='IMG'){throwException('TYPE_MISMATCH_ERR')}if(a.readyState!='complete'){throwException('INVALID_STATE_ERR')}}function DOMException_(a){this.code=this[a];this.message=a+': DOM Exception '+this.code}var d=DOMException_.prototype=new Error();d.INDEX_SIZE_ERR=1;d.DOMSTRING_SIZE_ERR=2;d.HIERARCHY_REQUEST_ERR=3;d.WRONG_DOCUMENT_ERR=4;d.INVALID_CHARACTER_ERR=5;d.NO_DATA_ALLOWED_ERR=6;d.NO_MODIFICATION_ALLOWED_ERR=7;d.NOT_FOUND_ERR=8;d.NOT_SUPPORTED_ERR=9;d.INUSE_ATTRIBUTE_ERR=10;d.INVALID_STATE_ERR=11;d.SYNTAX_ERR=12;d.INVALID_MODIFICATION_ERR=13;d.NAMESPACE_ERR=14;d.INVALID_ACCESS_ERR=15;d.VALIDATION_ERR=16;d.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=o;CanvasRenderingContext2D=CanvasRenderingContext2D_;CanvasGradient=CanvasGradient_;CanvasPattern=CanvasPattern_;DOMException=DOMException_})()}Ext.cmd.derive('Ext.draw.engine.Canvas',Ext.draw.Surface,{config:{highPrecision:!1},statics:{contextOverrides:{setGradientBBox:function(a){this.bbox=a},fill:function(){var d=this.fillStyle,b=this.fillGradient,a=this.fillOpacity,e=this.globalAlpha,c=this.bbox;if(d!==Ext.draw.Color.RGBA_NONE&&a!==0){if(b&&c){this.fillStyle=b.generateGradient(this,c)}if(a!==1){this.globalAlpha=e*a}this.$fill();if(a!==1){this.globalAlpha=e}if(b&&c){this.fillStyle=d}}},stroke:function(){var d=this.strokeStyle,b=this.strokeGradient,a=this.strokeOpacity,e=this.globalAlpha,c=this.bbox;if(d!==Ext.draw.Color.RGBA_NONE&&a!==0){if(b&&c){this.strokeStyle=b.generateGradient(this,c)}if(a!==1){this.globalAlpha=e*a}this.$stroke();if(a!==1){this.globalAlpha=e}if(b&&c){this.strokeStyle=d}}},fillStroke:function(d,b){var a=this,j=this.fillStyle,f=this.fillOpacity,h=this.strokeStyle,e=this.strokeOpacity,g=a.shadowColor,i=a.shadowBlur,c=Ext.draw.Color.RGBA_NONE;if(b===undefined){b=d.transformFillStroke}if(!b){d.inverseMatrix.toContext(a)}if(j!==c&&f!==0){a.fill();a.shadowColor=c;a.shadowBlur=0}if(h!==c&&e!==0){a.stroke()}a.shadowColor=g;a.shadowBlur=i},setLineDash:function(a){if(this.$setLineDash){this.$setLineDash(a)}},getLineDash:function(){if(this.$getLineDash){return this.$getLineDash()}},ellipse:function(e,f,c,d,g,i,j,h){var a=Math.cos(g),b=Math.sin(g);this.transform(a*c,b*c,-b*d,a*d,e,f);this.arc(0,0,1,i,j,h);this.transform(a/c,-b/d,b/c,a/d,-(a*e+b*f)/c,(b*e-a*f)/d)},appendPath:function(f){var c=this,d=0,a=0,e=f.commands,b=f.params,g=e.length;c.beginPath();for(;d=g.length){a.createCanvas()}b=g[c].dom;b.style.left=h+'px';b.style.top=i+'px';j=Math.min(e,p-i);if(j*f!==b.height){b.height=j*f;b.style.height=j+'px'}k=Math.min(e,q-h);if(k*f!==b.width){b.width=k*f;b.style.width=k+'px'}a.applyDefaults(a.contexts[c])}}for(c+=1;cs||a.x+a.widthr||a.y+a.height=0},filename:Ext.isString,width:Ext.isNumber,height:Ext.isNumber,scale:Ext.isNumber,pdf:Ext.isObject,jpeg:Ext.isObject},initAnimator:function(){this.frameCallbackId=Ext.draw.Animator.addFrameCallback('renderFrame',this)},applyGradients:function(d){var b=[],c,f,a,e;if(!Ext.isArray(d)){return b}for(c=0,f=d.length;c=0&&g[a[c].type]>i){a[c+1]=a[c];c--}a[c+1]=f}b=a[0].flatten(j,a);if(h==='image'){e=new Image();e.src=b.data;b.data=e;return b}if(h==='stream'){b.data=b.data.replace(/^data:image\/[^;]+/,'data:application/octet-stream');return b}return b},download:function(a){var d=this,e=[],f,b,c;a=Ext.apply({version:2,data:d.getImage().data},a);for(b in a){if(a.hasOwnProperty(b)){c=a[b];if(b in d.supportedOptions){if(d.supportedOptions[b].call(d,c)){e.push({tag:'input',type:'hidden',name:b,value:Ext.String.htmlEncode(Ext.isObject(c)?Ext.JSON.encode(c):c)})}}}}f=Ext.dom.Helper.markup({tag:'html',children:[{tag:'head'},{tag:'body',children:[{tag:'form',method:'POST',action:a.url||d.defaultDownloadServerUrl,children:e},{tag:'script',type:'text/javascript',children:'document.getElementsByTagName("form")[0].submit();'}]}]});window.open('','ImageDownload_'+Date.now()).document.write(f)},destroy:function(){var a=this.frameCallbackId;if(a){Ext.draw.Animator.removeFrameCallback(a)}Ext.draw.ContainerBase.prototype.destroy.call(this)}},0,['draw'],['component','box','container','panel','draw'],{'component':!0,'box':!0,'container':!0,'panel':!0,'draw':!0},['widget.draw'],0,[Ext.draw,'Container',Ext.draw,'Component'],function(){if(location.search.match('svg')){Ext.draw.Container.prototype.engine='Ext.draw.engine.Svg'}else {if(Ext.os.is.BlackBerry&&Ext.os.version.getMajor()===10||Ext.browser.is.AndroidStock4&&(Ext.os.version.getMinor()===1||Ext.os.version.getMinor()===2||Ext.os.version.getMinor()===3)){Ext.draw.Container.prototype.engine='Ext.draw.engine.Svg'}}});Ext.cmd.derive('Ext.chart.theme.Base',Ext.Base,{factoryConfig:{type:'chart.theme'},isTheme:!0,config:{baseColor:null,colors:undefined,gradients:null,chart:{defaults:{background:'white'}},axis:{defaults:{label:{x:0,y:0,textBaseline:'middle',textAlign:'center',fontSize:'default',fontFamily:'default',fontWeight:'default',fillStyle:'black'},title:{fillStyle:'black',fontSize:'default*1.23',fontFamily:'default',fontWeight:'default'},style:{strokeStyle:'black'},grid:{strokeStyle:'rgb(221, 221, 221)'}},top:{style:{textPadding:5}},bottom:{style:{textPadding:5}}},series:{defaults:{label:{fillStyle:'black',strokeStyle:'none',fontFamily:'default',fontWeight:'default',fontSize:'default*1.077',textBaseline:'middle',textAlign:'center'},labelOverflowPadding:5}},sprites:{text:{fontSize:'default',fontWeight:'default',fontFamily:'default',fillStyle:'black'}},seriesThemes:undefined,markerThemes:{type:['circle','cross','plus','square','triangle','diamond']},useGradients:!1,background:null},colorDefaults:['#94ae0a','#115fa6','#a61120','#ff8809','#ffd13e','#a61187','#24ad9a','#7c7474','#a66111'],constructor:function(a){this.initConfig(a);this.resolveDefaults()},defaultRegEx:/^default([+\-/\*]\d+(?:\.\d+)?)?$/,defaultOperators:{'*':function(a,b){return a*b},'+':function(a,b){return a+b},'-':function(a,b){return a-b}},resolveDefaults:function(){var a=this;Ext.onReady(function(){var g=Ext.clone(a.getSprites()),f=Ext.clone(a.getAxis()),e=Ext.clone(a.getSeries()),b,d,c;if(!a.superclass.defaults){b=Ext.getBody().createChild({tag:'div',cls:'x-component'});a.superclass.defaults={fontFamily:b.getStyle('fontFamily'),fontWeight:b.getStyle('fontWeight'),fontSize:parseFloat(b.getStyle('fontSize')),fontVariant:b.getStyle('fontVariant'),fontStyle:b.getStyle('fontStyle')};b.destroy()}a.replaceDefaults(g.text);a.setSprites(g);for(d in f){c=f[d];a.replaceDefaults(c.label);a.replaceDefaults(c.title)}a.setAxis(f);for(d in e){c=e[d];a.replaceDefaults(c.label)}a.setSeries(e)})},replaceDefaults:function(d){var e=this,g=e.superclass.defaults,h=e.defaultRegEx,c,b,a,f;if(Ext.isObject(d)){for(c in g){a=h.exec(d[c]);if(a){b=g[c];a=a[1];if(a){f=e.defaultOperators[a.charAt(0)];b=Math.round(f(b,parseFloat(a.substr(1))))}d[c]=b}}}},applyBaseColor:function(b){var a,c;if(b){a=b.isColor?b:Ext.draw.Color.fromString(b);c=a.getHSL()[2];if(c<0.15){a=a.createLighter(0.3)}else {if(c<0.3){a=a.createLighter(0.15)}else {if(c>0.85){a=a.createDarker(0.3)}else {if(c>0.7){a=a.createDarker(0.15)}}}}this.setColors([a.createDarker(0.3).toString(),a.createDarker(0.15).toString(),a.toString(),a.createLighter(0.12).toString(),a.createLighter(0.24).toString(),a.createLighter(0.31).toString()])}return b},applyColors:function(a){return a||this.colorDefaults},updateUseGradients:function(a){if(a){this.updateGradients({type:'linear',degrees:90})}},updateBackground:function(a){if(a){var b=this.getChart();b.defaults.background=a;this.setChart(b)}},updateGradients:function(d){var c=this.getColors(),g=[],e,a,f,b,h;if(Ext.isObject(d)){for(b=0,h=c&&c.length||0;bMath.PI){c-=Math.PI*2}if(p){c=c*(1-b)-Math.PI/2*b;m=h;h=g;g=m}else {c=c*(1-b)}a.rotationRads=c;a.x=n*(1-b)+j*b;a.y=o*(1-b)+k*b;d=j-n;e=k-o;if(Math.abs(e*h)>Math.abs(d*g)){if(e>0){a.calloutEndX=a.x-g/2*(d/e)*b;a.calloutEndY=a.y-g/2*b}else {a.calloutEndX=a.x+g/2*(d/e)*b;a.calloutEndY=a.y+g/2*b}}else {if(d>0){a.calloutEndX=a.x-h/2;a.calloutEndY=a.y-h/2*(e/d)*b}else {a.calloutEndX=a.x+h/2;a.calloutEndY=a.y+h/2*(e/d)*b}}if(a.calloutStartX&&a.calloutStartY){a.calloutHasLine=d>0&&a.calloutStartXa.calloutEndX||e>0&&a.calloutStartYa.calloutEndY}else {a.calloutHasLine=!0}}return a},pushDown:function(b,a){a=Ext.draw.modifier.Modifier.prototype.pushDown.call(this,b.calloutOriginal,a);return this.setAttrs(b,a)},popUp:function(a,b){a=a.prototype;b=this.setAttrs(a,b);if(this._next){return this._next.popUp(a,b)}else {return Ext.apply(a,b)}}},0,0,0,0,0,0,[Ext.chart.label,'Callout'],0);Ext.cmd.derive('Ext.chart.label.Label',Ext.draw.sprite.Text,{inheritableStatics:{def:{processors:{callout:'limited01',calloutHasLine:'bool',calloutPlaceX:'number',calloutPlaceY:'number',calloutStartX:'number',calloutStartY:'number',calloutEndX:'number',calloutEndY:'number',calloutColor:'color',calloutWidth:'number',calloutVertical:'bool',labelOverflowPadding:'number',display:'enums(none,under,over,rotate,insideStart,insideEnd,inside,outside)',orientation:'enums(horizontal,vertical)',renderer:'default'},defaults:{callout:0,calloutHasLine:!0,calloutPlaceX:0,calloutPlaceY:0,calloutStartX:0,calloutStartY:0,calloutEndX:0,calloutEndY:0,calloutWidth:1,calloutVertical:!1,calloutColor:'black',labelOverflowPadding:5,display:'none',orientation:'',renderer:null},triggers:{callout:'transform',calloutPlaceX:'transform',calloutPlaceY:'transform',labelOverflowPadding:'transform',calloutRotation:'transform',display:'hidden'},updaters:{hidden:function(a){a.hidden=a.display==='none'}}}},config:{fx:{customDurations:{callout:200}},field:null,calloutLine:!0},applyCalloutLine:function(a){if(a){return Ext.apply({},a)}},prepareModifiers:function(){Ext.draw.sprite.Text.prototype.prepareModifiers.apply(this,arguments);this.calloutModifier=new Ext.chart.label.Callout({sprite:this});this.fx.setNext(this.calloutModifier);this.calloutModifier.setNext(this.topModifier)},render:function(e,a){var b=this,d=b.attr,c=d.calloutColor;a.save();a.globalAlpha*=d.callout;if(a.globalAlpha>0&&d.calloutHasLine){if(c&&c.isGradient){c=c.getStops()[0].color}a.strokeStyle=c;a.fillStyle=c;a.lineWidth=d.calloutWidth;a.beginPath();a.moveTo(b.attr.calloutStartX,b.attr.calloutStartY);a.lineTo(b.attr.calloutEndX,b.attr.calloutEndY);a.stroke();a.beginPath();a.arc(b.attr.calloutStartX,b.attr.calloutStartY,1*d.calloutWidth,0,2*Math.PI,!0);a.fill();a.beginPath();a.arc(b.attr.calloutEndX,b.attr.calloutEndY,1*d.calloutWidth,0,2*Math.PI,!0);a.fill()}a.restore();Ext.draw.sprite.Text.prototype.render.apply(b,arguments)}},0,0,0,0,0,0,[Ext.chart.label,'Label'],0);Ext.cmd.derive('Ext.chart.series.Series',Ext.Base,{isSeries:!0,defaultBindProperty:'store',type:null,seriesType:'sprite',identifiablePrefix:'ext-line-',observableType:'series',darkerStrokeRatio:0.15,config:{chart:null,title:null,renderer:null,showInLegend:!0,triggerAfterDraw:!1,style:{},subStyle:{},themeStyle:{},colors:null,useDarkerStrokeColor:!0,store:null,label:{},labelOverflowPadding:null,showMarkers:!0,marker:null,markerSubStyle:null,itemInstancing:null,background:null,highlightItem:null,surface:null,overlaySurface:null,hidden:!1,highlight:!1,highlightCfg:{merge:function(a){return a},$value:{fillStyle:'yellow',strokeStyle:'red'}},animation:null,tooltip:null},directions:[],sprites:null,themeColorCount:function(){return 1},isStoreDependantColorCount:!1,themeMarkerCount:function(){return 0},getFields:function(d){var f=this,b=[],a,c,e;for(c=0,e=d.length;c0){if(!Ext.isBoolean(k)||!k){for(b=0;bd){d=a}}b.min=e;b.max=d},updateLabelData:function(){var h=this,l=h.getStore(),i=l.getData().items,e=h.getSprites(),k=h.getLabel().getTemplate(),d=Ext.Array.from(k.getField()),a,c,j,f,g,b;if(!e.length||!d.length){return}for(a=0;a=0){return a}}}}}},onChartDetached:function(b){var a=this;a.fireEvent('chartdetached',b,a);b.un('storechange','onStoreChange',a)},onChartAttached:function(b){var a=this;a.setBackground(a.getBackground());a.fireEvent('chartattached',b,a);b.on('storechange','onStoreChange',a);a.processData()},updateOverlaySurface:function(b){var a=this;if(b){if(a.getLabel()){a.getOverlaySurface().add(a.getLabel())}}},applyLabel:function(b,a){if(!a){a=new Ext.chart.Markers({zIndex:10});a.setTemplate(new Ext.chart.label.Label(b))}else {a.getTemplate().setAttributes(b)}return a},createItemInstancingSprite:function(f,e){var d=this,a=new Ext.chart.Markers(),c,b;a.setAttributes({zIndex:Number.MAX_VALUE});c=Ext.apply({},e);if(d.getHighlight()){c.highlight=d.getHighlight();c.modifiers=['highlight']}a.setTemplate(c);b=a.getTemplate();b.setAttributes(d.getStyle());b.fx.on('animationstart','onSpriteAnimationStart',this);b.fx.on('animationend','onSpriteAnimationEnd',this);f.bindMarker('items',a);d.getSurface().add(a);return a},getDefaultSpriteConfig:function(){return {type:this.seriesType,renderer:this.getRenderer()}},updateRenderer:function(d){var c=this,a=c.getChart(),b;if(a&&a.isInitializing){return}b=c.getSprites();if(b.length){b[0].setAttributes({renderer:d||null});if(a&&!a.isInitializing){a.redraw()}}},updateShowMarkers:function(d){var b=this.getSprites(),c=b&&b[0],a=c&&c.getMarker('markers');if(a){a.getTemplate().setAttributes({hidden:!d})}},createSprite:function(){var a=this,g=a.getSurface(),e=a.getItemInstancing(),b=g.add(a.getDefaultSpriteConfig()),f=a.getMarker(),c,d;b.setAttributes(a.getStyle());b.setSeries(a);if(e){b.itemsMarker=a.createItemInstancingSprite(b,e)}if(b.bindMarker){if(f){c=new Ext.chart.Markers();d=Ext.Object.merge({},f);if(a.getHighlight()){d.highlight=a.getHighlight();d.modifiers=['highlight']}c.setTemplate(d);c.getTemplate().fx.setCustomDurations({translationX:0,translationY:0});b.dataMarker=c;b.bindMarker('markers',c);a.getOverlaySurface().add(c)}if(a.getLabel().getTemplate().getField()){b.bindMarker('labels',a.getLabel())}}if(b.setStore){b.setStore(a.getStore())}b.fx.on('animationstart','onSpriteAnimationStart',a);b.fx.on('animationend','onSpriteAnimationEnd',a);a.sprites.push(b);return b},getSprites:Ext.emptyFn,onDataChanged:function(){var a=this,b=a.getChart(),d=b&&b.getStore(),c=a.getStore();if(c!==d){a.processData()}},isXType:function(a){return a==='series'},getItemId:function(){return this.getId()},applyThemeStyle:function(a,e){var d=this,b,c;b=a&&a.subStyle&&a.subStyle.fillStyle;c=b&&a.subStyle.strokeStyle;if(b&&!c){a.subStyle.strokeStyle=d.getStrokeColorsFromFillColors(b)}b=a&&a.markerSubStyle&&a.markerSubStyle.fillStyle;c=b&&a.markerSubStyle.strokeStyle;if(b&&!c){a.markerSubStyle.strokeStyle=d.getStrokeColorsFromFillColors(b)}return Ext.apply(e||{},a)},applyStyle:function(a,c){var b=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias('sprite.'+this.seriesType));if(b&&b.def){a=b.def.normalize(a)}return Ext.apply({},a,c)},applySubStyle:function(a,c){var b=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias('sprite.'+this.seriesType));if(b&&b.def){a=b.def.batchedNormalize(a,!0)}return Ext.merge({},c,a)},applyMarker:function(a,b){var d=a&&a.type||b&&b.type||'circle',c=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias('sprite.'+d));if(c&&c.def){a=c.def.normalize(Ext.isObject(a)?a:{},!0);a.type=d}return Ext.merge(b||{},a)},applyMarkerSubStyle:function(a,b){var d=a&&a.type||b&&b.type||'circle',c=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias('sprite.'+d));if(c&&c.def){a=c.def.batchedNormalize(a,!0)}return Ext.merge(b||{},a)},updateHidden:function(b){var a=this;a.getColors();a.getSubStyle();a.setSubStyle({hidden:b});a.processData();a.doUpdateStyles();if(!Ext.isArray(b)){a.updateLegendStore(b)}},updateLegendStore:function(c,g){var e=this,f=e.getChart(),b=f.getLegendStore(),d=e.getId(),a;if(b){if(arguments.length>1){a=b.findBy(function(a){return a.get('series')===d&&a.get('index')===g});if(a!==-1){a=b.getAt(a)}}else {a=b.findRecord('series',d)}if(a&&a.get('disabled')!==c){a.set('disabled',c)}}},setHiddenByIndex:function(c,b){var a=this;if(Ext.isArray(a.getHidden())){a.getHidden()[c]=b;a.updateHidden(a.getHidden());a.updateLegendStore(b,c)}else {a.setHidden(b)}},getStrokeColorsFromFillColors:function(c){var d=this,b=d.getUseDarkerStrokeColor(),e=Ext.isNumber(b)?b:d.darkerStrokeRatio,a;if(b){a=Ext.Array.map(c,function(a){a=Ext.isString(a)?a:a.stops[0].color;a=Ext.draw.Color.fromString(a);return a.createDarker(e).toString()})}else {a=Ext.Array.clone(c)}return a},updateThemeColors:function(d){var b=this,a=b.getThemeStyle(),f=Ext.Array.clone(d),e=b.getStrokeColorsFromFillColors(d),c={fillStyle:f,strokeStyle:e};a.subStyle=Ext.apply(a.subStyle||{},c);a.markerSubStyle=Ext.apply(a.markerSubStyle||{},c);b.doUpdateStyles()},themeOnlyIfConfigured:{},updateTheme:function(o){var c=this,d=o.getSeries(),m=c.getInitialConfig(),l=c.defaultConfig,n=c.getConfigurator().configs,k=d.defaults,j=d[c.type],i=c.themeOnlyIfConfigured,b,a,g,e,f,h;d=Ext.merge({},k,j);for(b in d){a=d[b];h=n[b];if(a!==null&&a!==undefined&&h){f=m[b];g=Ext.isObject(a);e=f===l[b];if(g){if(e&&i[b]){continue}a=Ext.merge({},a,f)}if(e||g){c[h.names.set](a)}}}},updateChartColors:function(b){var a=this;if(!a.getColors()){a.updateThemeColors(b)}},updateColors:function(a){this.updateThemeColors(a)},updateStyle:function(){this.doUpdateStyles()},updateSubStyle:function(){this.doUpdateStyles()},updateThemeStyle:function(){this.doUpdateStyles()},doUpdateStyles:function(){var c=this,b=c.sprites,e=c.getItemInstancing(),a=0,g=b&&b.length,h=c.getConfig('showMarkers',!0),f=c.getMarker(),d;for(;aa.to){c.call(this,a.max,a.getLabel(a.max),a.steps+1,a)}}else {var f=function(b){return !d.length||k(d,function(d){return l(d-b)>i})};h=this.getAxis();g=h.floatingAxes;d=[];i=(a.to-a.from)/(a.steps+1);if(h.getFloating()){for(j in g){d.push(g[j])}}if(a.mina.to&&f(a.max)){c.call(this,a.max,a.max,a.steps+1,a)}}},renderTicks:function(j,b,p,i){var c=this,a=c.attr,v=a.position,k=a.matrix,g=0.5*a.lineWidth,s=k.getXX(),q=k.getDX(),t=k.getYY(),r=k.getDY(),f=p.majorTicks,d=a.majorTickSize,e=p.minorTicks,h=a.minorTickSize;if(f){switch(v){case 'right':var m=function(a){return function(c,d,e){c=j.roundPixel(c*t+r)+g;b.moveTo(0,c);b.lineTo(a,c)}};c.iterate(f,m(d));e&&c.iterate(e,m(h));break;case 'left':var n=function(a){return function(c,d,e){c=j.roundPixel(c*t+r)+g;b.moveTo(i[2]-a,c);b.lineTo(i[2],c)}};c.iterate(f,n(d));e&&c.iterate(e,n(h));break;case 'bottom':var l=function(a){return function(c,d,e){c=j.roundPixel(c*s+q)-g;b.moveTo(c,0);b.lineTo(c,a)}};c.iterate(f,l(d));e&&c.iterate(e,l(h));break;case 'top':var o=function(a){return function(c,d,e){c=j.roundPixel(c*s+q)-g;b.moveTo(c,i[3]);b.lineTo(c,i[3]-a)}};c.iterate(f,o(d));e&&c.iterate(e,o(h));break;case 'angular':c.iterate(f,function(c,e,f){c=c/(a.max+1)*Math.PI*2+a.baseRotation;b.moveTo(a.centerX+a.length*Math.cos(c),a.centerY+a.length*Math.sin(c));b.lineTo(a.centerX+(a.length+d)*Math.cos(c),a.centerY+(a.length+d)*Math.sin(c))});break;case 'gauge':var u=c.getGaugeAngles();c.iterate(f,function(c,e,f){c=(c-a.min)/(a.max-a.min+1)*a.totalAngle-a.totalAngle+u.start;b.moveTo(a.centerX+a.length*Math.cos(c),a.centerY+a.length*Math.sin(c));b.lineTo(a.centerX+(a.length+d)*Math.cos(c),a.centerY+(a.length+d)*Math.sin(c))});break;}}},renderLabels:function(e,G,i,s){var h=this,a=h.attr,q=0.5*a.lineWidth,t=a.position,A=a.matrix,F=a.textPadding,J=A.getXX(),v=A.getDX(),K=A.getYY(),I=A.getDY(),m=0,w=i.majorTicks,k=Math.max(a.majorTickSize,a.minorTickSize)+a.lineWidth,y=Ext.draw.Draw.isBBoxIntersect,b=h.getLabel(),E,C,f=null,p=0,u=0,z=i.segmenter,o=h.getRenderer(),l=h.getAxis(),D=l.getTitle(),n=D&&D.attr.text!==''&&D.getBBox(),B,g=null,c,x,d,j,r;if(w&&b&&!b.attr.hidden){E=b.attr.font;if(G.font!==E){G.font=E}b.setAttributes({translationX:0,translationY:0},!0);b.applyTransformations();B=b.attr.inverseMatrix.elements.slice(0);switch(t){case 'left':j=n?n.x+n.width:0;switch(b.attr.textAlign){case 'start':r=e.roundPixel(j+v)-q;break;case 'end':r=e.roundPixel(s[2]-k+v)-q;break;default:r=e.roundPixel(j+(s[2]-j-k)/2+v)-q;};b.setAttributes({translationX:r},!0);break;case 'right':j=n?s[2]-n.x:0;switch(b.attr.textAlign){case 'start':r=e.roundPixel(k+v)+q;break;case 'end':r=e.roundPixel(s[2]-j+v)+q;break;default:r=e.roundPixel(k+(s[2]-k-j)/2+v)+q;};b.setAttributes({translationX:r},!0);break;case 'top':j=n?n.y+n.height:0;b.setAttributes({translationY:e.roundPixel(j+(s[3]-j-k)/2)-q},!0);break;case 'bottom':j=n?s[3]-n.y:0;b.setAttributes({translationY:e.roundPixel(k+(s[3]-k-j)/2)+q},!0);break;case 'radial':b.setAttributes({translationX:a.centerX},!0);break;case 'angular':b.setAttributes({translationY:a.centerY},!0);break;case 'gauge':b.setAttributes({translationY:a.centerY},!0);break;}if(t==='left'||t==='right'){h.iterate(w,function(j,a,n){if(a===undefined){return}if(o){d=Ext.callback(o,null,[l,a,i,f],0,l)}else {d=z.renderer(a,i,f)}f=a;b.setAttributes({text:String(d),translationY:e.roundPixel(j*K+I)},!0);b.applyTransformations();m=Math.max(m,b.getBBox().width+k);if(m<=h.thickness){x=Ext.draw.Matrix.fly(b.attr.matrix.elements.slice(0));c=x.prepend.apply(x,B).transformBBox(b.getBBox(!0));if(g&&!y(c,g,F)){return}e.renderSprite(b);g=c;p+=c.height;u++}})}else {if(t==='top'||t==='bottom'){h.iterate(w,function(j,a,n){if(a===undefined){return}if(o){d=Ext.callback(o,null,[l,a,i,f],0,l)}else {d=z.renderer(a,i,f)}f=a;b.setAttributes({text:String(d),translationX:e.roundPixel(j*J+v)},!0);b.applyTransformations();m=Math.max(m,b.getBBox().height+k);if(m<=h.thickness){x=Ext.draw.Matrix.fly(b.attr.matrix.elements.slice(0));c=x.prepend.apply(x,B).transformBBox(b.getBBox(!0));if(g&&!y(c,g,F)){return}e.renderSprite(b);g=c;p+=c.width;u++}})}else {if(t==='radial'){h.iterate(w,function(j,h,k){if(h===undefined){return}if(o){d=Ext.callback(o,null,[l,h,i,f],0,l)}else {d=z.renderer(h,i,f)}f=h;if(typeof d!=='undefined'){b.setAttributes({text:String(d),translationX:a.centerX-e.roundPixel(j)/a.max*a.length*Math.cos(a.baseRotation+Math.PI/2),translationY:a.centerY-e.roundPixel(j)/a.max*a.length*Math.sin(a.baseRotation+Math.PI/2)},!0);b.applyTransformations();c=b.attr.matrix.transformBBox(b.getBBox(!0));if(g&&!y(c,g)){return}e.renderSprite(b);g=c;p+=c.width;u++}})}else {if(t==='angular'){C=a.majorTickSize+a.lineWidth*0.5+(parseInt(b.attr.fontSize,10)||10)/2;h.iterate(w,function(k,h,n){if(h===undefined){return}if(o){d=Ext.callback(o,null,[l,h,i,f],0,l)}else {d=z.renderer(h,i,f)}f=h;m=Math.max(m,Math.max(a.majorTickSize,a.minorTickSize)+(a.lineCap!=='butt'?a.lineWidth*0.5:0));if(typeof d!=='undefined'){var j=k/(a.max+1)*Math.PI*2+a.baseRotation;b.setAttributes({text:String(d),translationX:a.centerX+(a.length+C)*Math.cos(j),translationY:a.centerY+(a.length+C)*Math.sin(j)},!0);b.applyTransformations();c=b.attr.matrix.transformBBox(b.getBBox(!0));if(g&&!y(c,g)){return}e.renderSprite(b);g=c;p+=c.width;u++}})}else {if(t==='gauge'){var H=h.getGaugeAngles();h.iterate(w,function(k,h,m){if(h===undefined){return}if(o){d=Ext.callback(o,null,[l,h,i,f],0,l)}else {d=z.renderer(h,i,f)}f=h;if(typeof d!=='undefined'){var j=(k-a.min)/(a.max-a.min+1)*a.totalAngle-a.totalAngle+H.start;b.setAttributes({text:String(d),translationX:a.centerX+(a.length+10)*Math.cos(j),translationY:a.centerY+(a.length+10)*Math.sin(j)},!0);b.applyTransformations();c=b.attr.matrix.transformBBox(b.getBBox(!0));if(g&&!y(c,g)){return}e.renderSprite(b);g=c;p+=c.width;u++}})}}}}}if(a.enlargeEstStepSizeByText&&u){p/=u;p+=k;p*=2;if(a.estStepSize1){h.thickness=m;a.bbox.plain.dirty=!0;a.bbox.transform.dirty=!0;h.doThicknessChanged();return !1}}},renderAxisLine:function(g,b,j,f){var h=this,a=h.attr,c=a.lineWidth*0.5,i=a.position,d,e;if(a.axisLine&&a.length){switch(i){case 'left':d=g.roundPixel(f[2])-c;b.moveTo(d,-a.endGap);b.lineTo(d,a.length+a.startGap+1);break;case 'right':b.moveTo(c,-a.endGap);b.lineTo(c,a.length+a.startGap+1);break;case 'bottom':b.moveTo(-a.startGap,c);b.lineTo(a.length+a.endGap,c);break;case 'top':d=g.roundPixel(f[3])-c;b.moveTo(-a.startGap,d);b.lineTo(a.length+a.endGap,d);break;case 'angular':b.moveTo(a.centerX+a.length,a.centerY);b.arc(a.centerX,a.centerY,a.length,0,Math.PI*2,!0);break;case 'gauge':e=h.getGaugeAngles();b.moveTo(a.centerX+Math.cos(e.start)*a.length,a.centerY+Math.sin(e.start)*a.length);b.arc(a.centerX,a.centerY,a.length,e.start,e.end,!0);break;}}},getGaugeAngles:function(){var c=this,b=c.attr.totalAngle,a;if(b<=Math.PI){a=(Math.PI-b)*0.5}else {a=-(Math.PI*2-b)*0.5}a=Math.PI*2-a;return {start:a,end:a-b}},renderGridLines:function(s,t,p,r){var c=this,q=c.getAxis(),b=c.attr,j=b.matrix,i=b.startGap,k=b.endGap,n=j.getXX(),o=j.getYY(),l=j.getDX(),m=j.getDY(),g=b.position,f=q.getGridAlignment(),h=p.majorTicks,a,e,d;if(b.grid){if(h){if(g==='left'||g==='right'){d=b.min*o+m+k+i;c.iterate(h,function(g,h,b){a=g*o+m+k;c.putMarker(f+'-'+(b%2?'odd':'even'),{y:a,height:d-a},e=b,!0);d=a});e++;a=0;c.putMarker(f+'-'+(e%2?'odd':'even'),{y:a,height:d-a},e,!0)}else {if(g==='top'||g==='bottom'){d=b.min*n+l+i;if(i){c.putMarker(f+'-even',{x:0,width:d},-1,!0)}c.iterate(h,function(g,h,b){a=g*n+l+i;c.putMarker(f+'-'+(b%2?'odd':'even'),{x:a,width:d-a},e=b,!0);d=a});e++;a=b.length+b.startGap+b.endGap;c.putMarker(f+'-'+(e%2?'odd':'even'),{x:a,width:d-a},e,!0)}else {if(g==='radial'){c.iterate(h,function(e,h,g){if(!e){return}a=e/b.max*b.length;c.putMarker(f+'-'+(g%2?'odd':'even'),{scalingX:a,scalingY:a},g,!0);d=a})}else {if(g==='angular'){c.iterate(h,function(g,h,e){if(!b.length){return}a=g/(b.max+1)*Math.PI*2+b.baseRotation;c.putMarker(f+'-'+(e%2?'odd':'even'),{rotationRads:a,rotationCenterX:0,rotationCenterY:0,scalingX:b.length,scalingY:b.length},e,!0);d=a})}}}}}}},renderLimits:function(u){var k=this,i=k.getAxis(),t=i.getChart(),s=t.getInnerPadding(),h=Ext.Array.from(i.getLimits());if(!h.length){return}var m=i.limits.surface.getRect(),c=k.attr,o=c.matrix,g=c.position,p=Ext.Object.chain,d=i.limits.titles,f,l,n,a,b,e,j,q,r;d.instances=[];d.position=0;if(g==='left'||g==='right'){for(e=0,j=h.length;ec.max){continue}b=b/c.max*c.length;a.line.cx=c.centerX;a.line.cy=c.centerY;a.line.scalingX=b;a.line.scalingY=b;a.line.strokeStyle=a.line.strokeStyle||c.strokeStyle;k.putMarker('circular-limit-lines',a.line,e,!0);if(a.line.title){d.createInstance(a.line.title);f=d.getBBoxFor(d.position-1);d.setAttributesFor(d.position-1,{x:c.centerX,y:c.centerY-b-f.height/2,fillStyle:a.line.title.fillStyle||a.line.strokeStyle})}}}else {if(g==='angular'){for(e=0,j=h.length;e-0.5*Math.PI&&b<0.5*Math.PI||b>1.5*Math.PI&&b<2*Math.PI?1:-1;d.setAttributesFor(d.position-1,{x:c.centerX+0.5*c.length*Math.cos(b)+n*f.height/2*Math.sin(b),y:c.centerY+0.5*c.length*Math.sin(b)-n*f.height/2*Math.cos(b),rotationRads:n===1?b:b-Math.PI,fillStyle:a.line.title.fillStyle||a.line.strokeStyle})}}}else {if(g==='gauge'){}}}}}},doThicknessChanged:function(){var a=this.getAxis();if(a){a.onThicknessChanged()}},render:function(e,a,d){var b=this,c=b.getLayoutContext();if(c){if(!1===b.renderLabels(e,a,c,d)){return !1}a.beginPath();b.renderTicks(e,a,c,d);b.renderAxisLine(e,a,c,d);b.renderGridLines(e,a,c,d);b.renderLimits(d);a.stroke()}}},0,0,0,0,['sprite.axis'],[['markerHolder',Ext.chart.MarkerHolder]],[Ext.chart.axis.sprite,'Axis'],0);Ext.cmd.derive('Ext.chart.axis.segmenter.Segmenter',Ext.Base,{config:{axis:null},constructor:function(a){this.initConfig(a)},renderer:function(a,b){return String(a)},from:function(a){return a},diff:Ext.emptyFn,align:Ext.emptyFn,add:Ext.emptyFn,preferredStep:Ext.emptyFn},1,0,0,0,0,0,[Ext.chart.axis.segmenter,'Segmenter'],0);Ext.cmd.derive('Ext.chart.axis.segmenter.Names',Ext.chart.axis.segmenter.Segmenter,{renderer:function(a,b){return a},diff:function(b,a,c){return Math.floor(a-b)},align:function(a,b,c){return Math.floor(a)},add:function(a,b,c){return a+b},preferredStep:function(d,a,b,c){return {unit:1,step:1}}},0,0,0,0,['segmenter.names'],0,[Ext.chart.axis.segmenter,'Names'],0);Ext.cmd.derive('Ext.chart.axis.segmenter.Numeric',Ext.chart.axis.segmenter.Segmenter,{isNumeric:!0,renderer:function(b,a){return b.toFixed(Math.max(0,a.majorTicks.unit.fixes))},diff:function(c,b,a){return Math.floor((b-c)/a.scale)},align:function(c,a,b){return Math.floor(c/(b.scale*a))*b.scale*a},add:function(a,b,c){return a+b*c.scale},preferredStep:function(d,a){var b=Math.floor(Math.log(a)*Math.LOG10E),c=Math.pow(10,b);a/=c;if(a<2){a=2}else {if(a<5){a=5}else {if(a<10){a=10;b++}}}return {unit:{fixes:-b,scale:c},step:a}},exactStep:function(d,a){var b=Math.floor(Math.log(a)*Math.LOG10E),c=Math.pow(10,b);return {unit:{fixes:-b+(a%c===0?0:1),scale:1},step:a}},adjustByMajorUnit:function(g,f,c){var e=c[0],d=c[1],b=g*f,a=e%b;if(a!==0){c[0]=e-a+(e<0?-b:0)}a=d%b;if(a!==0){c[1]=d-a+(d>0?b:0)}}},0,0,0,0,['segmenter.numeric'],0,[Ext.chart.axis.segmenter,'Numeric'],0);Ext.cmd.derive('Ext.chart.axis.segmenter.Time',Ext.chart.axis.segmenter.Segmenter,{config:{step:null},renderer:function(b,c){var a=Ext.Date;switch(c.majorTicks.unit){case 'y':return a.format(b,'Y');case 'mo':return a.format(b,'Y-m');case 'd':return a.format(b,'Y-m-d');}return a.format(b,'Y-m-d\nH:i:s')},from:function(a){return new Date(a)},diff:function(b,a,c){if(isFinite(b)){b=new Date(b)}if(isFinite(a)){a=new Date(a)}return Ext.Date.diff(b,a,c)},align:function(a,b,c){if(c==='d'&&b>=7){a=Ext.Date.align(a,'d',b);a.setDate(a.getDate()-a.getDay()+1);return a}else {return Ext.Date.align(a,c,b)}},add:function(a,b,c){return Ext.Date.add(new Date(a),c,b)},stepUnits:[[Ext.Date.YEAR,1,2,5,10,20,50,100,200,500],[Ext.Date.MONTH,1,3,6],[Ext.Date.DAY,1,7,14],[Ext.Date.HOUR,1,6,12],[Ext.Date.MINUTE,1,5,15,30],[Ext.Date.SECOND,1,5,15,30],[Ext.Date.MILLI,1,2,5,10,20,50,100,200,500]],preferredStep:function(g,h){if(this.getStep()){return this.getStep()}var i=new Date(+g),j=new Date(+g+Math.ceil(h)),c=this.stepUnits,b,f,e,a,d;for(a=0;a0){for(d=1;dg){a.max=a.to}if(a.fromf){a.max=a.to}if(a.from0){a.from=a.from+d*a.step*b;while(a.from0?a:b},applyLabel:function(b,a){if(!a){a=new Ext.draw.sprite.Text({})}if(this.limitTitleTpl){this.limitTitleTpl.setAttributes(b)}a.setAttributes(b);return a},applyLayout:function(a,b){a=Ext.factory(a,null,b,'axisLayout');a.setAxis(this);return a},applySegmenter:function(a,b){a=Ext.factory(a,null,b,'segmenter');a.setAxis(this);return a},updateMinimum:function(){this.range=null},updateMaximum:function(){this.range=null},hideLabels:function(){this.getSprites()[0].setDirty(!0);this.setLabel({hidden:!0})},showLabels:function(){this.getSprites()[0].setDirty(!0);this.setLabel({hidden:!1})},renderFrame:function(){this.getSurface().renderFrame()},updateChart:function(c,b){var a=this,d;if(b){b.unregister(a);b.un('serieschange',a.onSeriesChange,a);b.un('redraw',a.renderLimits,a);a.linkAxis();a.fireEvent('chartdetached',b,a)}if(c){c.on('serieschange',a.onSeriesChange,a);a.surface=null;d=a.getSurface();a.getLabel().setSurface(d);d.add(a.getSprites());d.add(a.getTitle());c.register(a);a.fireEvent('chartattached',c,a)}},applyBackground:function(a){var b=Ext.ClassManager.getByAlias('sprite.rect');return b.def.normalize(a)},processData:function(){this.getLayout().processData();this.range=null},getDirection:function(){return this.getChart().getDirectionForAxis(this.getPosition())},isSide:function(){var a=this.getPosition();return a==='left'||a==='right'},applyFields:function(a){return Ext.Array.from(a)},applyVisibleRange:function(a,b){this.getChart();if(a[0]>a[1]){var c=a[0];a[0]=a[1];a[0]=c}if(a[1]===a[0]){a[1]+=1/this.getMaxZoom()}if(a[1]>a[0]+1){a[0]=0;a[1]=1}else {if(a[0]<0){a[1]-=a[0];a[0]=0}else {if(a[1]>1){a[0]-=a[1]-1;a[1]=1}}}if(b&&a[0]===b[0]&&a[1]===b[1]){return undefined}return a},updateVisibleRange:function(a){this.fireEvent('visiblerangechange',this,a)},onSeriesChange:function(g){var a=this,e=g.getSeries(),h='get'+a.getDirection()+'Axis',f=[],b,i=e.length,d,c;for(b=0;bb){b=g[1]}}}if(!isFinite(b)){b=a.prevMax}if(!isFinite(c)){c=a.prevMin}if(a.getLabelInSpan()||c===b){b+=a.getIncrement();c-=a.getIncrement()}if(Ext.isNumber(a.getMinimum())){c=a.getMinimum()}else {a.prevMin=c}if(Ext.isNumber(a.getMaximum())){b=a.getMaximum()}else {a.prevMax=b}a.range=[Ext.Number.correctFloat(c),Ext.Number.correctFloat(b)];if(a.getReconcileRange()){a.reconcileRange()}if(a.getAdjustByMajorUnit()&&h.adjustByMajorUnit&&!a.getMajorTickSteps()){d=Ext.Object.chain(a.getSprites()[0].attr);d.min=a.range[0];d.max=a.range[1];d.visibleMin=j[0];d.visibleMax=j[1];f={attr:d,segmenter:h};l.calculateLayout(f);e=f.majorTicks;if(e){h.adjustByMajorUnit(e.step,e.unit.scale,a.range);d.min=a.range[0];d.max=a.range[1];delete f.majorTicks;l.calculateLayout(f);e=f.majorTicks;h.adjustByMajorUnit(e.step,e.unit.scale,a.range)}else {if(!a.hasClearRangePending){a.hasClearRangePending=!0;a.getChart().on('layout','clearRange',a)}}}if(!Ext.Array.equals(a.range,a.oldRange||[])){a.fireEvent('rangechange',a,a.range);a.oldRange=a.range}return a.range},clearRange:function(){delete this.hasClearRangePending;this.range=null},reconcileRange:function(){var a=this,e=a.getChart().getAxes(),g=a.getDirection(),d,f,c,b;if(!e){return}for(d=0,f=e.length;da.range[1]){a.range[1]=b[1]}}},applyStyle:function(b,a){var c=Ext.ClassManager.getByAlias('sprite.'+this.seriesType);if(c&&c.def){b=c.def.normalize(b)}a=Ext.apply(a||{},b);return a},themeOnlyIfConfigured:{grid:!0},updateTheme:function(p){var c=this,d=p.getAxis(),n=c.getPosition(),m=c.getInitialConfig(),l=c.defaultConfig,o=c.getConfigurator().configs,k=d.defaults,j=d[n],i=c.themeOnlyIfConfigured,b,a,g,e,f,h;d=Ext.merge({},k,j);for(b in d){a=d[b];h=o[b];if(a!==null&&a!==undefined&&h){f=m[b];g=Ext.isObject(a);e=f===l[b];if(g){if(e&&i[b]){continue}a=Ext.merge({},a,f)}if(e||g){c[h.names.set](a)}}}},updateCenter:function(d){var e=this.getSprites(),c=e[0],a=d[0],b=d[1];if(c){c.setAttributes({centerX:a,centerY:b})}if(this.gridSpriteEven){this.gridSpriteEven.getTemplate().setAttributes({translationX:a,translationY:b,rotationCenterX:a,rotationCenterY:b})}if(this.gridSpriteOdd){this.gridSpriteOdd.getTemplate().setAttributes({translationX:a,translationY:b,rotationCenterX:a,rotationCenterY:b})}},getSprites:function(){if(!this.getChart()){return}var a=this,e=a.getRange(),g=a.getPosition(),i=a.getChart(),d=i.getAnimation(),b,f,h=a.getLength(),c=a.superclass;if(d===!1){d={duration:0}}if(e){f=Ext.applyIf({position:g,axis:a,min:e[0],max:e[1],length:h,grid:a.getGrid(),hidden:a.getHidden(),titleOffset:a.titleOffset,layout:a.getLayout(),segmenter:a.getSegmenter(),totalAngle:a.getTotalAngle(),label:a.getLabel()},a.getStyle());if(!a.sprites.length){while(!c.xtype){c=c.superclass}b=Ext.create('sprite.'+c.xtype,f);b.fx.setCustomDurations({baseRotation:0});b.fx.on('animationstart','onAnimationStart',a);b.fx.on('animationend','onAnimationEnd',a);b.setLayout(a.getLayout());b.setSegmenter(a.getSegmenter());b.setLabel(a.getLabel());a.sprites.push(b);a.updateTitleSprite()}else {b=a.sprites[0];b.setAnimation(d);b.setAttributes(f)}if(a.getRenderer()){b.setRenderer(a.getRenderer())}}return a.sprites},updateTitleSprite:function(){var b=this,g=b.getLength();if(!b.sprites[0]||!Ext.isNumber(g)){return}var f=this.sprites[0].thickness,i=b.getSurface(),a=b.getTitle(),h=b.getPosition(),e=b.getMargin(),c=b.getTitleMargin(),d=i.roundPixel(g/2);if(a){switch(h){case 'top':a.setAttributes({x:d,y:e+c/2,textBaseline:'top',textAlign:'center'},!0);a.applyTransformations();b.titleOffset=a.getBBox().height+c;break;case 'bottom':a.setAttributes({x:d,y:f+c/2,textBaseline:'top',textAlign:'center'},!0);a.applyTransformations();b.titleOffset=a.getBBox().height+c;break;case 'left':a.setAttributes({x:e+c/2,y:d,textBaseline:'top',textAlign:'center',rotationCenterX:e+c/2,rotationCenterY:d,rotationRads:-Math.PI/2},!0);a.applyTransformations();b.titleOffset=a.getBBox().width+c;break;case 'right':a.setAttributes({x:f-e+c/2,y:d,textBaseline:'bottom',textAlign:'center',rotationCenterX:f+c/2,rotationCenterY:d,rotationRads:Math.PI/2},!0);a.applyTransformations();b.titleOffset=a.getBBox().width+c;break;}}},onThicknessChanged:function(){this.getChart().onThicknessChanged()},getThickness:function(){if(this.getHidden()){return 0}return (this.sprites[0]&&this.sprites[0].thickness||1)+this.titleOffset+this.getMargin()},onAnimationStart:function(){this.spriteAnimationCount++;if(this.spriteAnimationCount===1){this.fireEvent('animationstart',this)}},onAnimationEnd:function(){this.spriteAnimationCount--;if(this.spriteAnimationCount===0){this.fireEvent('animationend',this)}},getItemId:function(){return this.getId()},getAncestorIds:function(){return [this.getChart().getId()]},isXType:function(a){return a==='axis'},resolveListenerScope:function(d){var c=this,e=Ext._namedScopes[d],a=c.getChart(),b;if(!e){b=a?a.resolveListenerScope(d,!1):d||c}else {if(e.isThis){b=c}else {if(e.isController){b=a?a.resolveListenerScope(d,!1):c}else {if(e.isSelf){b=a?a.resolveListenerScope(d,!1):c;if(b===a&&!a.getInheritedConfig('defaultListenerScope')){b=c}}}}}return b},destroy:function(){var a=this;a.setChart(null);a.surface.destroy();a.surface=null;a.callParent()}},1,['axis'],['axis'],{'axis':!0},['widget.axis'],[['observable',Ext.mixin.Observable]],[Ext.chart.axis,'Axis'],0);Ext.cmd.derive('Ext.chart.LegendBase',Ext.view.View,{config:{tpl:['
    ','','
    ','','{name}','
    ','
    ','
    '],nodeContainerSelector:'div.x-legend-container',itemSelector:'div.x-legend-item',docked:'bottom'},setDocked:function(b){var a=this,d=a.ownerCt,c;a.docked=b;switch(b){case 'top':case 'bottom':a.addCls('x-horizontal');c='hbox';break;case 'left':case 'right':a.removeCls('x-horizontal');c='vbox';break;}if(d){d.setDocked(b)}},setStore:function(a){this.bindStore(a)},clearViewEl:function(){Ext.view.View.prototype.clearViewEl.apply(this,arguments);Ext.removeNode(this.getNodeContainer())},onItemClick:function(b,c,a,d){Ext.view.View.prototype.onItemClick.apply(this,arguments);this.toggleItem(a)}},0,0,['component','box','dataview'],{'component':!0,'box':!0,'dataview':!0},0,0,[Ext.chart,'LegendBase'],0);Ext.cmd.derive('Ext.chart.Legend',Ext.chart.LegendBase,{config:{baseCls:'x-legend',padding:5,rect:null,disableSelection:!0,toggleable:!0},toggleItem:function(h){if(!this.getToggleable()){return}var b=this.getStore(),f=0,d,g=!0,c,e,a;if(b){e=b.getCount();for(c=0;c1;a=b.getAt(h);if(a){d=a.get('disabled');if(d||g){a.set('disabled',!d)}}}}},0,['legend'],['component','box','dataview','legend'],{'component':!0,'box':!0,'dataview':!0,'legend':!0},['widget.legend'],0,[Ext.chart,'Legend'],0);Ext.cmd.derive('Ext.chart.AbstractChart',Ext.draw.Container,{isChart:!0,defaultBindProperty:'store',config:{store:'ext-empty-store',theme:'default',style:null,animation:!Ext.isIE8,series:[],axes:[],legend:null,colors:null,insetPadding:{top:10,left:10,right:10,bottom:10},background:null,interactions:[],mainRect:null,resizeHandler:null,highlightItem:null},animationSuspendCount:0,chartLayoutSuspendCount:0,axisThicknessSuspendCount:0,isThicknessChanged:!1,surfaceZIndexes:{background:0,main:1,grid:2,series:3,axis:4,chart:5,overlay:6,events:7},constructor:function(b){var a=this;a.itemListeners={};a.surfaceMap={};a.chartComponents={};a.isInitializing=!0;a.suspendChartLayout();a.animationSuspendCount++;Ext.draw.Container.prototype.constructor.apply(this,arguments);delete a.isInitializing;a.getSurface('main');a.getSurface('chart').setFlipRtlText(a.getInherited().rtl);a.getSurface('overlay').waitFor(a.getSurface('series'));a.animationSuspendCount--;a.resumeChartLayout()},applyAnimation:function(a,b){if(!a){a={duration:0}}else {if(a===!0){a={easing:'easeInOut',duration:500}}}return b?Ext.apply({},a,b):a},getAnimation:function(){if(this.animationSuspendCount){return {duration:0}}else {return (arguments.callee.$previous||Ext.draw.Container.prototype.getAnimation).call(this)}},applyInsetPadding:function(a,b){if(!Ext.isObject(a)){return Ext.util.Format.parseBox(a)}else {if(!b){return a}else {return Ext.apply(b,a)}}},suspendAnimation:function(){var b=this,c=b.getSeries(),e=c.length,d=-1,a;b.animationSuspendCount++;if(b.animationSuspendCount===1){while(++d0){this.axisThicknessSuspendCount--;if(this.axisThicknessSuspendCount===0&&this.isThicknessChanged){this.onThicknessChanged()}}},onThicknessChanged:function(){if(this.axisThicknessSuspendCount===0){this.isThicknessChanged=!1;this.performLayout()}else {this.isThicknessChanged=!0}},applySprites:function(a){var b=this.getSurface('chart');a=Ext.Array.from(a);b.removeAll(!0);b.add(a);return a},initItems:function(){var a=this.items,b,d,c;if(a&&!a.isMixedCollection){this.items=[];a=Ext.Array.from(a);for(b=0,d=a.length;b=0){a.splice(c,1)}},applyAxes:function(d,h){var b=this,l={left:'right',right:'left'},f=[],a,j,g,i,c,k,e;b.animationSuspendCount++;b.getStore();if(!h){h=[];h.map={}}e=h.map;f.map={};d=Ext.Array.from(d,!0);for(c=0,k=d.length;c0){a=b.applyColors(a)}return a||c&&c.getColors()},applyColors:function(a){a=Ext.Array.map(a,function(b){if(Ext.isString(b)){return b}else {return b.toString()}});return a},updateColors:function(k){var a=this,i=a.getTheme(),h=k||i&&i.getColors(),g=0,e=a.getSeries(),j=e&&e.length,b,d,f,c;if(h.length){for(b=0;b=0&&e<=a[2]&&f>=0&&f<=a[3])){return null}for(;d>=0;d--){h=g[d];b=h.getItemForPoint(e,f);if(b){return b}}return null},getItemsForPoint:function(h,i){var f=this,c=f.getSeries(),g=c.length,b=f.hasFirstLayout?g-1:-1,e=[],d,a;for(;b>=0;b--){d=c[b];a=d.getItemForPoint(h,i);if(a){e.push(a)}}return e},onAnimationStart:function(){this.fireEvent('animationstart',this)},onAnimationEnd:function(){this.fireEvent('animationend',this)},onDataChanged:function(){var a=this;if(a.isInitializing){return}var e=a.getMainRect(),c=a.getStore(),b=a.getSeries(),d=a.getAxes();if(!c||!d||!b){return}if(!e){a.on({redraw:a.onDataChanged,scope:a,single:!0});return}a.processData();a.redraw()},recordCount:0,processData:function(){var a=this,e=a.getStore().getCount(),f=a.getSeries(),g=f.length,b=!1,d=0,c;for(;da.recordCount){a.updateColors(a.getColors());a.recordCount=e}},bindStore:function(a){this.setStore(a)},applyHighlightItem:function(a,d){if(a===d){return}if(Ext.isObject(a)&&Ext.isObject(d)){var b=a,c=d,e=b.sprite&&(b.sprite[0]||b.sprite),f=c.sprite&&(c.sprite[0]||c.sprite);if(e===f&&b.index===c.index){return}}return a},updateHighlightItem:function(a,b){if(b){b.series.setAttributesForItem(b,{highlighted:!1})}if(a){a.series.setAttributesForItem(a,{highlighted:!0});this.fireEvent('itemhighlight',this,a,b)}this.fireEvent('itemhighlightchange',this,a,b)},destroyChart:function(){var a=this,f=a.getLegend(),h=a.getAxes(),g=a.getSeries(),e=a.getInteractions(),d=[],b,c;a.surfaceMap=null;for(b=0,c=e.length;bf&&bg&&ch){b=h}}if(ci){c=i}}a.selectionRect.setAttributes({width:b-a.startX,height:c-a.startY});if(Math.abs(a.startX-b)<11||Math.abs(a.startY-c)<11){a.selectionRect.setAttributes({globalAlpha:0.5})}else {a.selectionRect.setAttributes({globalAlpha:1})}l.renderFrame();return !1}},onGestureEnd:function(o){var a=this;if(a.zoomAnimationInProgress){return}if(a.getLocks()[a.gestureEvent]===a){var d=a.getChart(),e=a.getSurface(),f=d.getInnerRect(),k=d.getInnerPadding(),i=k.left,l=i+f[2],j=k.top,m=j+f[3],h=f[2],g=f[3],n=d.getEventXY(o),b=n[0],c=n[1];if(bl){b=l}}if(cm){c=m}}if(Math.abs(a.startX-b)<11||Math.abs(a.startY-c)<11){e.remove(a.selectionRect)}else {a.zoomBy([Math.min(a.startX,b)/h,1-Math.max(a.startY,c)/g,Math.max(a.startX,b)/h,1-Math.min(a.startY,c)/g]);a.selectionRect.setAttributes({x:Math.min(a.startX,b),y:Math.min(a.startY,c),width:Math.abs(a.startX-b),height:Math.abs(a.startY-c)});a.selectionRect.setAnimation(d.getAnimation()||{duration:0});a.selectionRect.setAttributes({globalAlpha:0,x:0,y:0,width:h,height:g});a.zoomAnimationInProgress=!0;d.suspendThicknessChanged();a.selectionRect.fx.on('animationend',function(){d.resumeThicknessChanged();e.remove(a.selectionRect);a.selectionRect=null;a.zoomAnimationInProgress=!1})}e.renderFrame();a.sync();a.unlockEvents(a.gestureEvent);a.setSeriesOpacity(1);if(!a.zoomAnimationInProgress){e.remove(a.selectionRect);a.selectionRect=null}}},zoomBy:function(b){var d=this,l=d.getAxes(),j=d.getChart(),k=j.getAxes(),n=j.getInherited().rtl,e,i={},f,g;if(n){b=b.slice();f=1-b[0];g=1-b[2];b[0]=Math.min(f,g);b[2]=Math.max(f,g)}for(var h=0;h=e[b-1]){return b-1}while(a+1>1,f=e[d];if(f===c){return d}else {if(ft&&cv&&dDec: '+a._meta_dec})]);console.log(a);e.addCatalog(b)}},0,['coadd-aladin'],['component','box','container','panel','aladin','coadd-aladin'],{'component':!0,'box':!0,'container':!0,'panel':!0,'aladin':!0,'coadd-aladin':!0},['widget.coadd-aladin'],0,[Explorer.view.coadd,'Aladin'],0);Ext.cmd.derive('Explorer.view.coadd.CoaddController',Ext.app.ViewController,{listen:{component:{'coadd-objects':{loadpanel:'onLoadPanel'},'coadd-visiomatic':{changedataset:'onChangeDataset',changeimage:'onChangeImage'}},store:{'#datasets':{load:'onLoadDatasets'}}},onLoadPanel:function(a,b){this.loadProduct(a)},loadProduct:function(d){var a=this,c=a.getView(),e=a.getViewModel(),b=e.getStore('products');c.setLoading(!0);b.addFilter({property:'prd_name',value:d});b.load({callback:function(){if(this.count()===1){a.onLoadProduct(this.first());c.setLoading(!1)}}})},onLoadProduct:function(b){var a=this,d=a.getViewModel(),e=a.getView(),c=a.lookup('detailPanel');d.set('currentProduct',b);c.setTitle(b.get('prd_display_name'));a.loadAssociations(b)},loadAssociations:function(e){var a=this,c=a.getView(),d=a.getViewModel(),b=d.getStore('associations');c.setLoading(!0);b.addFilter({property:'pca_product',value:e.get('id')});b.load({callback:function(){if(this.count()>0){this.each(function(a){if(a.get('pcc_ucd')==='meta.id;meta.main'){d.set('property_id',a.get('pcn_column_name'))}},a);c.setLoading(!1);a.loadObject()}}})},loadObject:function(){var b=this,a=b.getViewModel(),d=b.getView(),g=a.get('currentProduct'),c=a.getStore('objects'),f=a.get('object_id'),e=a.get('property_id');d.setLoading(!0);c.addFilter([{property:'product',value:g.get('id')},{property:e,value:f}]);c.load({callback:function(){if(this.count()===1){b.onLoadObject(this.first());d.setLoading(!1)}}})},onLoadObject:function(h){var b=this,c=b.getViewModel(),i=b.lookupReference('properties-grid'),d=c.getStore('properties'),g=c.getStore('datasets'),l=b.lookupReference('aladin'),k=b.getView(),a,e;d.removeAll();a=h.data;for(var f in a){var j=f.toLowerCase();if(j.indexOf('_meta_')===-1){d.add([[f.toLowerCase(),a[f]]])}}c.set('object_data',a);i.setStore(d);e=String(a._meta_ra)+','+String(a._meta_dec);g.addFilter([{property:'position',value:e}]);c.set('position',e);b.loadSpectralDistribution();k.setLoading(!1)},onLoadDatasets:function(a){var c=this,d=c.lookupReference('visiomatic'),b=d.lookupReference('cmbCurrentDataset');if(a.count()==1){c.changeImage(a.first());b.select(a.first());b.setReadOnly(!0)}else {if(a.count()>1){c.changeImage(a.first());b.select(a.first());b.setReadOnly(!1)}else {console.log('Nenhuma tile encontrada para o objeto')}}},changeImage:function(b){var d=this,a=d.lookupReference('visiomatic'),c=b.get('image_src_ptif');if(b){if(c!==''){a.setImage(c)}else {a.removeImageLayer()}}else {console.log('dataset nao encontrado')}},onChangeDataset:function(a){var b=this;b.changeImage(a);b.loadSurveys(a.get('release'));b.loadTags(a.get('release'))},onChangeImage:function(){var b=this,e=b.getViewModel(),a=e.get('object_data'),c=b.lookupReference('visiomatic'),d=0.03;c.setView(a._meta_ra,a._meta_dec,d)},loadSurveys:function(c){var b=this,d=b.getViewModel(),a=d.getStore('surveys');a.addFilter([{property:'srv_project',value:'DES'},{property:'srv_release',value:c}]);a.load({callback:function(){b.onLoadSurvey(this)}})},onLoadSurvey:function(e){var b=this,a=b.lookupReference('aladin'),c=b.getViewModel().get('position'),d=b.getViewModel().get('object_data');a.goToPosition(c);a.setFov(180);a.plotObject(d)},onSearch:function(a){var b=this,d=b.getViewModel(),c=d.getStore('properties');if(a!==''){c.filter([{property:'property',value:a}])}else {b.onSearchCancel()}},onSearchCancel:function(){var b=this,c=b.getViewModel(),a=c.getStore('properties');a.clearFilter()},loadTags:function(a){var c=this,d=c.getViewModel(),b=d.getStore('tags');if(a>0){b.addFilter([{property:'tag_release',value:a}]);b.load({callback:function(){c.onLoadTags(this)}})}},onLoadTags:function(a){var b=this;if(a.count()>0){b.loadTiles()}},loadTiles:function(){var e=this,b=e.getViewModel(),d=b.getStore('tags'),c=b.getStore('tiles'),a=[];d.each(function(b){a.push(b.get('id'))},this);c.filter([{property:'tag',operator:'in',value:a}])},onClickSimbad:function(){console.log('onClickSimbad()');var e=this,g=e.getViewModel(),a=g.get('object_data'),f=parseFloat(a._meta_ra).toFixed(4),d=parseFloat(a._meta_dec).toFixed(4),c=0.1,b;b=Ext.String.format('http://simbad.u-strasbg.fr/simbad/sim-coo?Coord={0}+{1}&CooFrame=FK5&CooEpoch=2000&Radius={2}&Radius.unit=arcmin&submit=submit+query',f,d,c);window.open(b,'_blank')},onClickNed:function(){console.log('onClickNed');var e=this,g=e.getViewModel(),a=g.get('object_data'),c=0.1,f=parseFloat(a._meta_ra).toFixed(4),d=parseFloat(a._meta_dec).toFixed(4),b;b=Ext.String.format('https://ned.ipac.caltech.edu/cgi-bin/objsearch?search_type=Near+Position+Search&in_csys=Equatorial&in_equinox=J2000.0&lon={0}d&lat={1}d&radius={2}',f,d,c);window.open(b,'_blank')},onClickVizier:function(){console.log('onClickVizier');var d=this,e=d.getViewModel(),a=e.get('object_data'),c=0.01,b;b=Ext.String.format('http://vizier.u-strasbg.fr/viz-bin/VizieR-5?-source=II/246&-c={0},{1},eq=J2000&-c.rs={2}',a._meta_ra,a._meta_dec,c);window.open(b,'_blank')},loadSpectralDistribution:function(){var k=this,g=k.getViewModel(),e=g.get('object_data'),j=g.getStore('spectral'),f=['mag_auto_g','mag_auto_r','mag_auto_i','mag_auto_z','mag_auto_y'],h=[474,645.5,783.5,926,1008],d,a,b,m,l;for(var i in e){var c=i.toLowerCase();if(f.indexOf(c)!==-1){a=parseFloat(parseFloat(e[c]).toFixed(2));if(parseInt(a)!==99&&parseInt(a)!==0){b=-0.4*a;b=parseFloat(b.toFixed(1))}d=h[f.indexOf(c)];j.add({flux:b,mag_auto:a,wavelength:d,property:c})}}}},0,0,0,0,['controller.coadd'],0,[Explorer.view.coadd,'CoaddController'],0);Ext.cmd.derive('Explorer.view.coadd.CoaddModel',Ext.app.ViewModel,{data:{source:null,object_id:null,object_data:null,property_id:null,position:null},links:{currentProduct:{type:'Explorer.model.Product',create:!0},currentDataset:{type:'common.model.Dataset',create:!0}},stores:{products:{type:'products'},associations:{type:'association'},objects:{type:'objects'},properties:{type:'array',fields:['property','value'],remoteSort:!1,remoteFilter:!1,sorters:[{property:'property',direction:'ASC'}]},datasets:{type:'datasets',storeId:'datasets',remoteSort:!1,sorters:[{property:'id',direction:'DESC'}]},surveys:{type:'surveys'},tags:{type:'tags',storeId:'Tags'},tiles:{type:'footprints',pageSize:0},spectral:{type:'spectral-distribution'}}},0,0,0,0,['viewmodel.coadd'],0,[Explorer.view.coadd,'CoaddModel'],0);Ext.cmd.derive('Explorer.view.coadd.Form',Ext.form.Panel,{initComponent:function(){var a=this;Ext.apply(this,{fieldDefaults:{labelAlign:'top',readOnly:!0},items:[{xtype:'fieldset',defaultType:'textfield',defaults:{anchor:'100%'},items:[{fieldLabel:'Source',bind:{value:'{currentProduct.tablename}'}},{fieldLabel:'Object ID',bind:{value:'{object_data._meta_id}'}},{fieldLabel:'RA, Dec (deg)',bind:{value:'{object_data._meta_ra}, {object_data._meta_dec}'}}]}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['coadd-form'],['component','box','container','panel','form','coadd-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'coadd-form':!0},['widget.coadd-form'],0,[Explorer.view.coadd,'Form'],0);Ext.cmd.derive('Explorer.view.coadd.Properties',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{columns:[{text:'Property',dataIndex:'property',width:200},{text:'Value',dataIndex:'value',renderer:this.formatNumber,flex:1}],tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearch','cancel':'onSearchCancel'},flex:1}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},formatNumber:function(a){if(typeof a==='number'){if(!isNaN(a)&&a.toString().indexOf('.')!=-1){a=a.toFixed(4)}}return a}},0,['coadd-properties'],['component','box','container','panel','tablepanel','gridpanel','grid','coadd-properties'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'coadd-properties':!0},['widget.coadd-properties'],0,[Explorer.view.coadd,'Properties'],0);Ext.cmd.derive('Explorer.view.coadd.Visiomatic',visiomatic.Visiomatic,{enableTools:!0,enableLink:!1,enableShift:!1,showCrosshair:!0,mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!1},initComponent:function(){var a=this;Ext.apply(this,{auxTools:[{xtype:'combobox',reference:'cmbCurrentDataset',publishes:'id',width:250,displayField:'release_tag',bind:{store:'{datasets}',disabled:'{!coadd.COADD_OBJECT_ID}',selection:'{!currentDataset}'},queryMode:'local',listConfig:{itemTpl:['
    {release_display_name} - {tag_display_name}
    ']},listeners:{scope:this,change:'changeDataset'}},{xtype:'textfield',width:120,readOnly:!0,bind:{value:'{currentDataset.tli_tilename}'}},{xtype:'button',iconCls:'x-fa fa-crosshairs',tooltip:'Show/Hide Crosshair',enableToggle:!0,pressed:!0,scope:this,toggleHandler:'onShowHideCrosshair'}]});visiomatic.Visiomatic.prototype.initComponent.apply(this,arguments)},changeDataset:function(a){this.fireEvent('changedataset',a.getSelectedRecord(),this)},onShowHideCrosshair:function(c,a){var b=this;b.setShowCrosshair(a)}},0,['coadd-visiomatic'],['component','box','container','panel','visiomatic','coadd-visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0,'coadd-visiomatic':!0},['widget.coadd-visiomatic'],0,[Explorer.view.coadd,'Visiomatic'],0);Ext.cmd.derive('Explorer.view.coadd.SpectralDistribution',Ext.chart.CartesianChart,{innerPadding:20,insetPadding:{top:40,right:20,bottom:20,left:20},sprites:[{type:'text',text:'Spectral Distribution',fontSize:22,width:100,height:30,x:40,y:20}],axes:[{type:'numeric',fields:['flux'],title:'log(Flux) [counts]',position:'left',grid:!0},{id:'wavelength-axis',type:'category',title:'Wavelength [nm]',fields:'wavelength',position:'bottom',grid:!0}],series:[{type:'scatter',xField:'wavelength',yField:'flux',marker:{type:'circle',fill:'#3333ff',radius:8,lineWidth:0},highlight:{radius:12,lineWidth:2},tooltip:{trackMouse:!0,renderer:function(b,a,c){b.setHtml(a.get('property')+': '+a.get('mag_auto'))}}}]},0,['coadd-spectral-distribution'],['component','box','container','panel','draw','cartesian','chart','coadd-spectral-distribution'],{'component':!0,'box':!0,'container':!0,'panel':!0,'draw':!0,'cartesian':!0,'chart':!0,'coadd-spectral-distribution':!0},['widget.coadd-spectral-distribution'],0,[Explorer.view.coadd,'SpectralDistribution'],0);Ext.cmd.derive('Explorer.view.coadd.Coadd',Ext.panel.Panel,{controller:'coadd',viewModel:'coadd',layout:'fit',initComponent:function(){var a=this;Ext.apply(this,{layout:{type:'hbox',pack:'start',align:'stretch'},defaults:{frame:!0},items:[{xtype:'panel',reference:'detailPanel',width:300,margin:'0 10 0 0',layout:{type:'vbox',pack:'start',align:'stretch'},items:[{xtype:'coadd-form',reference:'properties-form',split:!0,bbar:[{xtype:'button',text:'SIMBAD',handler:'onClickSimbad'},{xtype:'button',text:'NED',handler:'onClickNed'}]},{xtype:'coadd-properties',reference:'properties-grid',split:!0,flex:1}]},{xtype:'panel',flex:1,layout:{type:'vbox',pack:'start',align:'stretch'},margin:'0 0 10 0',defaults:{frame:!0},items:[{xtype:'panel',flex:1,layout:{type:'hbox',pack:'start',align:'stretch'},defaults:{frame:!0},items:[{xtype:'coadd-visiomatic',reference:'visiomatic',margin:'0 10 0 0',split:!0,flex:1},{xtype:'coadd-aladin',reference:'aladin',split:!0,flex:1,bind:{storeSurveys:'{surveys}',storeTags:'{tags}',storeTiles:'{tiles}'}}]},{xtype:'panel',flex:1,layout:{type:'hbox',pack:'start',align:'stretch'},items:[{xtype:'coadd-spectral-distribution',reference:'SpectralChart',flex:1,bind:{store:'{spectral}'}},{xtype:'panel',flex:1}]}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},loadPanel:function(b){var a=this,e=a.getViewModel(),d=b[1],c=b[2];e.set('source',d);e.set('object_id',c);a.fireEvent('loadpanel',d,c,a)},updatePanel:function(a){}},0,['coadd-objects'],['component','box','container','panel','coadd-objects'],{'component':!0,'box':!0,'container':!0,'panel':!0,'coadd-objects':!0},['widget.coadd-objects'],0,[Explorer.view.coadd,'Coadd'],0);Ext.cmd.derive('Explorer.view.system.SystemController',Ext.app.ViewController,{listen:{component:{'system':{loadpanel:'onLoadPanel'},'system-visiomatic':{changedataset:'onChangeDataset',changeimage:'onChangeImage'}},store:{'#datasets':{load:'onLoadDatasets'}}},onLoadPanel:function(a,b){this.load(a)},load:function(a){var b=this;b.loadProduct(a)},loadProduct:function(f){var a=this,d=a.getView(),e=a.getViewModel(),c=e.getStore('products'),b=e.getStore('vacProducts');d.setLoading(!0);c.addFilter({property:'prd_name',value:f});c.load({callback:function(){if(this.count()===1){a.onLoadProduct(this.first());d.setLoading(!1)}}});b.addFilter({property:'class_name',value:'vac_cluster'});b.load({scope:a,callback:a.onLoadVacProducts})},onLoadProduct:function(b){var a=this,d=a.getViewModel(),e=a.getView(),c=a.lookup('detailPanel');d.set('currentProduct',b);c.setTitle(b.get('prd_display_name'));a.loadAssociations(b);a.loadMembersContent(b);a.loadVacCluster()},loadVacCluster:function(){console.log('loadVacCluster()');var c=this,b=c.getViewModel(),d=b.get('currentProduct'),a=b.getStore('productRelateds');a.addFilter([{property:'prl_product',value:d.get('id')},{property:'prl_relation_type',value:'input'},{property:'prd_class',value:'vac_cluster'}]);a.load({callback:function(d){if(a.count()==1){b.set('relatedVacCluster',a.first());c.linkVacRelatedWithVacProduct()}}})},loadAssociations:function(e){var a=this,c=a.getView(),d=a.getViewModel(),b=d.getStore('associations');c.setLoading(!0);b.addFilter({property:'pca_product',value:e.get('id')});b.load({callback:function(){if(this.count()>0){this.each(function(a){if(a.get('pcc_ucd')==='meta.id;meta.main'){d.set('property_id',a.get('pcn_column_name'))}},a);c.setLoading(!1);a.loadObject()}}})},loadObject:function(){var b=this,a=b.getViewModel(),d=b.getView(),g=a.get('currentProduct'),c=a.getStore('objects'),f=a.get('object_id'),e=a.get('property_id');d.setLoading(!0);c.addFilter([{property:'product',value:g.get('id')},{property:e,value:f}]);c.load({callback:function(){if(this.count()===1){b.onLoadObject(this.first());d.setLoading(!1)}}})},onLoadObject:function(b){var d=this,a=d.getViewModel(),i=d.getView(),k=d.lookupReference('properties-grid'),e=a.getStore('properties'),h=a.get('currentProduct'),j=a.getStore('datasets'),m=d.lookupReference('aladin'),c,f;i.setLoading(!0);a.set('object',b);e.removeAll();c=b.data;a.set('object_data',c);for(var g in c){var l=g.toLowerCase();if(l.indexOf('_meta_')===-1){e.add([[g.toLowerCase(),c[g]]])}}k.setStore(e);f=String(c._meta_ra)+','+String(c._meta_dec);j.addFilter([{property:'position',value:f}]);a.set('position',f);i.setLoading(!1);if(h.get('prl_related')>0){d.loadSystemMembers(h,b)}a.set('vacRadius',2);a.set('display_ra',parseFloat(b.get('_meta_ra')).toFixed(5));a.set('display_dec',parseFloat(b.get('_meta_dec')).toFixed(5));a.set('display_radius',parseFloat(b.get('_meta_radius')).toFixed(3))},onLoadDatasets:function(a){var c=this,d=c.lookupReference('visiomatic'),b=d.lookupReference('cmbCurrentDataset');if(a.count()==1){c.changeImage(a.first());b.select(a.first());b.setReadOnly(!0)}else {if(a.count()>1){c.changeImage(a.first());b.select(a.first());b.setReadOnly(!1)}else {console.log('Nenhuma tile encontrada para o objeto')}}},changeImage:function(b){var d=this,a=d.lookupReference('visiomatic'),c=b.get('image_src_ptif');if(b){a.setDataset(b.get('id'));a.setCurrentDataset(b);if(c!==''){a.setImage(c)}else {a.removeImageLayer()}}else {console.log('dataset nao encontrado')}},onChangeDataset:function(a){var b=this;b.changeImage(a);b.loadSurveys(a.get('release'));b.loadTags(a.get('release'))},onChangeImage:function(){var b=this,d=b.getViewModel(),f=d.get('currentProduct'),a=d.get('object'),c=b.lookupReference('visiomatic'),g=b.lookupReference('aladin'),e=d.getStore('members');fov=0.07;c.setView(a.get('_meta_ra'),a.get('_meta_dec'),fov);c.drawRadius(a.get('_meta_ra'),a.get('_meta_dec'),a.get('_meta_radius'),'arcmin');c.showHideRadius(!0);b.onLoadSystemMembers(e)},loadSurveys:function(c){var b=this,d=b.getViewModel(),a=d.getStore('surveys');a.addFilter([{property:'srv_project',value:'DES'},{property:'srv_release',value:c}]);a.load({callback:function(){b.onLoadSurvey(this)}})},onLoadSurvey:function(e){var c=this,a=c.lookupReference('aladin'),d=c.getViewModel().get('position'),b=c.getViewModel().get('object_data');a.goToPosition(d);a.setFov(180);a.drawRadius(b._meta_ra,b._meta_dec,b._meta_radius,'arcmin')},onSearch:function(a){var b=this,d=b.getViewModel(),c=d.getStore('properties');if(a!==''){c.filter([{property:'property',value:a}])}else {b.onSearchCancel()}},onSearchCancel:function(){var b=this,c=b.getViewModel(),a=c.getStore('properties');a.clearFilter()},loadMembersContent:function(d){var b=this,e=b.getViewModel(),a=e.getStore('displayContents'),c=b.lookupReference('members-grid');a.addFilter({'property':'pcn_product_id',value:d.get('prl_related')});a.load({callback:function(){if(this.check_ucds()){c.reconfigureGrid(this)}}})},loadSystemMembers:function(b,d){var c=this,e=c.getViewModel(),a=e.getStore('members');a.addFilter([{property:'product',value:b.get('prl_related')},{property:b.get('prl_cross_property'),value:d.get('id')}]);a.load({callback:function(){c.onLoadSystemMembers(this)}})},onLoadSystemMembers:function(f){var b=this,c=b.getViewModel(),d=c.get('currentProduct'),e=b.lookupReference('visiomatic'),g=b.lookupReference('aladin'),a;a=e.overlayCatalog(d.get('prd_display_name'),f);e.showHideLayer(a,!0);c.set('overlayMembers',a);g.plotSystemMembers(d.get('prd_display_name'),f);c.set('have_members',!0)},onSelectSystemMember:function(b,a){this.highlightObject(a)},highlightObject:function(a,i){var d=this,e=d.getViewModel(),j=e.get('currentProduct'),b=e.get('lMarkPosition'),c=d.lookupReference('visiomatic'),g=d.lookupReference('aladin'),h=c.getFov(),k=d.lookup('members-grid'),f;c.setView(a.get('_meta_ra'),a.get('_meta_dec'),h,!0);if(b){c.showHideLayer(b,!1)}b=c.markPosition(a.get('_meta_ra'),a.get('_meta_dec'),'x-fa fa-sort-desc fa-2x');e.set('lMarkPosition',b);f=String(a.get('_meta_ra'))+','+String(a.get('_meta_dec'));g.goToPosition(f);e.set('selected_member',a)},onLoadVacProducts:function(){var a=this;a.linkVacRelatedWithVacProduct()},linkVacRelatedWithVacProduct:function(){var d=this,a=d.getViewModel(),b=a.get('relatedVacCluster'),c=a.getStore('vacProducts');if(b.get('id')){vacCluster=c.getAt(c.find('id',b.get('prl_related')));a.set('vacCluster',vacCluster)}},onSelectVacProduct:function(e,b){var a=this,d=a.getViewModel(),c=a.getStore('vacObjects');d.set('currentVacProduct',b);c.removeAll();a.loadVacProductContent(b)},loadVacProductContent:function(c){var a=this,e=a.getViewModel(),b=e.getStore('vacProductDisplayContents'),d=a.lookupReference('vac-grid');b.addFilter({'property':'pcn_product_id',value:c.get('id')});b.load({callback:function(){if(this.check_ucds()){d.reconfigureGrid(this);a.loadVacObjects()}}})},calculateVacRadius:function(a){var c=this,d=c.getViewModel(),b=d.get('vacRadius');vacRadius=a*b/60;return vacRadius.toFixed(3)},loadVacObjects:function(){var c=this,d=c.getViewModel(),b=d.get('object'),f=d.get('currentVacProduct'),a=d.getStore('vacObjects'),e;a.clearFilter();e=c.calculateVacRadius(b.get('_meta_radius'));a.addFilter([{property:'product',value:f.get('id')},{property:'lon',value:b.get('_meta_ra')},{property:'lat',value:b.get('_meta_dec')},{property:'radius',value:e}]);a.load({callback:function(){c.onLoadVacObjects(this)}})},onLoadVacObjects:function(e){var b=this,a=b.getViewModel(),d=a.get('currentVacProduct'),c=b.lookupReference('visiomatic');if(a.get('overlayVac')!=null){c.showHideLayer(a.get('overlayVac'),!1)}lvacs=c.overlayCatalog(d.get('prd_display_name'),e,{color:'#'+a.get('vacOverlayColor'),pointSize:a.get('vacOverlayPointSize')/1000,pointType:a.get('vacOverlaypointType')});a.set('overlayVac',lvacs);b.showHideOverlayVacs()},changeVisibleOverlayVacs:function(b,a){var c=this,d=c.getViewModel();d.set('visibleOverlayVacs',a);if(a){b.setIconCls('x-fa fa-eye')}else {b.setIconCls('x-fa fa-eye-slash')}c.showHideOverlayVacs()},showHideOverlayVacs:function(){var a=this,b=a.getViewModel(),e=b.get('visibleOverlayVacs'),d=b.get('overlayVac'),c=a.lookupReference('visiomatic');c.showHideLayer(d,e)},onSelectVacObject:function(b,a){this.highlightObject(a)},loadTags:function(a){var c=this,d=c.getViewModel(),b=d.getStore('tags');if(a>0){b.addFilter([{property:'tag_release',value:a}]);b.load({callback:function(){c.onLoadTags(this)}})}},onLoadTags:function(a){var b=this;if(a.count()>0){b.loadTiles()}},loadTiles:function(){var e=this,b=e.getViewModel(),d=b.getStore('tags'),c=b.getStore('tiles'),a=[];d.each(function(b){a.push(b.get('id'))},this);c.filter([{property:'tag',operator:'in',value:a}])},parseRA:function(a){if(a<0){return a+360}return a},onClickSimbad:function(){var c=this,g=c.getViewModel(),a=g.get('object_data'),f=parseFloat(c.parseRA(a._meta_ra)).toFixed(4),e=parseFloat(a._meta_dec).toFixed(4),d=2,b;b=Ext.String.format('http://simbad.u-strasbg.fr/simbad/sim-coo?Coord={0}+{1}&CooFrame=FK5&CooEpoch=2000&Radius={2}&Radius.unit=arcmin&submit=submit+query',f,e,d);window.open(b,'_blank')},onClickNed:function(){var c=this,g=c.getViewModel(),a=g.get('object_data'),f=parseFloat(c.parseRA(a._meta_ra)).toFixed(2),e=parseFloat(a._meta_dec).toFixed(2),d=2,b;b=Ext.String.format('https://ned.ipac.caltech.edu/cgi-bin/objsearch?search_type=Near+Position+Search&in_csys=Equatorial&in_equinox=J2000.0&lon={0}d&lat={1}d&radius={2}',f,e,d);window.open(b,'_blank')},onClickVizier:function(){var c=this,e=c.getViewModel(),a=e.get('object_data'),d=2,b;b=Ext.String.format('http://vizier.u-strasbg.fr/viz-bin/VizieR-5?-source=II/246&-c={0},{1},eq=J2000&-c.rs={2}',c.parseRA(a._meta_ra),a._meta_dec,d);window.open(b,'_blank')},onCmdClickPoint:function(a,c,b){this.highlightObject(a,!0)},onActiveCmdTab:function(a){var e=this,b=e.getViewModel(),c=b.getStore('members'),d=b.getStore('vacObjects');a.setMembers(c);a.setVacs(d);a.reloadPlots()}},0,0,0,0,['controller.system'],0,[Explorer.view.system,'SystemController'],0);Ext.cmd.derive('Explorer.view.system.SystemModel',Ext.app.ViewModel,{data:{source:null,object_id:null,display_ra:'',display_dec:'',display_radius:'',object:null,object_data:null,property_id:null,overlayMembers:null,position:null,have_members:!1,selected_member:null,visibleOverlayVacs:!0,overlayVac:null,vacRadius:1,vacOverlayColor:'1B81BC',vacOverlayPointSize:1.2,vacOverlaypointType:'square'},links:{currentProduct:{type:'Explorer.model.Product',create:!0},currentDataset:{type:'common.model.Dataset',create:!0},currentVacProduct:{type:'Explorer.model.Product',create:!0},relatedVacCluster:{type:'Explorer.model.ProductRelated',create:!0},vacCluster:{type:'Explorer.model.Product',create:!0}},stores:{products:{type:'products'},associations:{type:'association'},objects:{type:'objects'},members:{type:'objects'},displayContents:{type:'product-display-contents'},properties:{type:'array',fields:['property','value'],remoteSort:!1,remoteFilter:!1,sorters:[{property:'property',direction:'ASC'}]},datasets:{type:'datasets',storeId:'datasets',remoteSort:!1,sorters:[{property:'id',direction:'DESC'}]},surveys:{type:'surveys'},tags:{type:'tags',storeId:'Tags'},tiles:{type:'footprints',pageSize:0},vacProducts:{type:'products'},vacProductDisplayContents:{type:'product-display-contents'},vacObjects:{type:'objects',pageSize:2000},productRelateds:{type:'product_relateds',autoLoad:!1}}},0,0,0,0,['viewmodel.system'],0,[Explorer.view.system,'SystemModel'],0);Ext.cmd.derive('Explorer.view.system.Form',Ext.form.Panel,{initComponent:function(){var a=this;Ext.apply(this,{bodyPadding:'3',fieldDefaults:{readOnly:!0},items:[{xtype:'fieldcontainer',defaultType:'textfield',defaults:{anchor:'100%'},items:[{fieldLabel:'Source',bind:{value:'{currentProduct.tablename}'}},{fieldLabel:'Object ID',bind:{value:'{object_data._meta_id}'}},{fieldLabel:'RA, Dec (deg)',bind:{value:'{display_ra}, {display_dec}'}},{fieldLabel:'Radius (arcmin)',bind:{value:'{display_radius}'}},{xtype:'fieldcontainer',fieldLabel:'Proccess Id',defaults:{margin:'0 5 0 0'},layout:'hbox',items:[{xtype:'textfield',width:140,bind:{value:'{currentProduct.epr_original_id}'}},{xtype:'button',iconCls:'fa fa-info',tooltip:'Product Log',bind:{href:'{currentProduct.productlog}',disabled:'{!currentProduct.productlog}'}}]},{xtype:'fieldcontainer',fieldLabel:'VAC',defaults:{margin:'0 5 0 0'},layout:'hbox',items:[{xtype:'textfield',width:140,bind:{value:'{vacCluster.epr_original_id} - {vacCluster.prd_display_name}'}},{xtype:'button',iconCls:'fa fa-info',tooltip:'Product Log',bind:{href:'{vacCluster.productlog}',disabled:'{!vacCluster.productlog}'}}]}]}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['system-form'],['component','box','container','panel','form','system-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'system-form':!0},['widget.system-form'],0,[Explorer.view.system,'Form'],0);Ext.cmd.derive('Explorer.view.system.Properties',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{columns:[{text:'Property',dataIndex:'property',flex:1},{text:'Value',dataIndex:'value',renderer:this.formatNumber,flex:1}],tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearch','cancel':'onSearchCancel'},flex:1}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},formatNumber:function(a){if(typeof a==='number'){if(!isNaN(a)&&a.toString().indexOf('.')!=-1){a=a.toFixed(4)}}return a}},0,['system-properties'],['component','box','container','panel','tablepanel','gridpanel','grid','system-properties'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'system-properties':!0},['widget.system-properties'],0,[Explorer.view.system,'Properties'],0);Ext.cmd.derive('Explorer.view.system.Visiomatic',visiomatic.Visiomatic,{enableTools:!0,enableLink:!1,enableShift:!1,showCrosshair:!0,mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!0},initComponent:function(){var a=this;Ext.apply(this,{auxTools:[{xtype:'combobox',reference:'cmbCurrentDataset',publishes:'id',width:250,displayField:'release_tag',bind:{store:'{datasets}',disabled:'{!coadd.COADD_OBJECT_ID}',selection:'{!currentDataset}'},queryMode:'local',listConfig:{itemTpl:['
    {release_display_name} - {tag_display_name}
    ']},listeners:{scope:this,change:'changeDataset'}},{xtype:'textfield',width:120,readOnly:!0,bind:{value:'{currentDataset.tli_tilename}'}},{xtype:'button',iconCls:'x-fa fa-crosshairs',tooltip:'Show/Hide Crosshair',enableToggle:!0,pressed:!0,scope:this,toggleHandler:'onShowHideCrosshair'}]});visiomatic.Visiomatic.prototype.initComponent.apply(this,arguments)},changeDataset:function(a){this.fireEvent('changedataset',a.getSelectedRecord(),this)},onShowHideCrosshair:function(c,a){var b=this;b.setShowCrosshair(a)}},0,['system-visiomatic'],['component','box','container','panel','visiomatic','system-visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0,'system-visiomatic':!0},['widget.system-visiomatic'],0,[Explorer.view.system,'Visiomatic'],0);Ext.cmd.derive('Explorer.view.system.Aladin',aladin.Aladin,{initComponent:function(){var a=this;Ext.apply(this,{hideFootprint:!1,enableGoto:!1,enableShift:!1,infoEnabled:!1,enableLayersControl:!1,toolbarPosition:'top',showFilters:!1});aladin.Aladin.prototype.initComponent.apply(this,arguments)},plotObject:function(a,e){var d=this,f=d.getAladin(),c=d.libA,b;b=c.catalog({name:e,sourceSize:12,color:'#A0F65A'});b.addSources([c.marker(a._meta_ra,a._meta_dec,{popupTitle:'ID: '+a._meta_id,popupDesc:'RA: '+a._meta_ra+'
    Dec: '+a._meta_dec})]);f.addCatalog(b)},plotSystemMembers:function(e,f){var b=this,g=b.getAladin(),d=b.libA,c=[],a;a=d.catalog({name:e,sourceSize:12,color:'#A0F65A'});f.each(function(a){var b=d.marker(a.get('_meta_ra'),a.get('_meta_dec'),{popupTitle:'ID: '+a.get('_meta_id'),popupDesc:'J2000: '+a.get('_meta_ra')+', '+a.get('_meta_dec')});c.push(b)},b);a.addSources(c);g.addCatalog(a)},drawRadius:function(a,d,c,h,i){var f=this,g=f.getAladin(),e=f.libA,b;a=parseFloat(a);d=parseFloat(d);if(a<0){a=a+360}b=e.graphicOverlay({color:'#ee2345',lineWidth:3});g.addOverlay(b);if(h==='arcmin'){c=c/60}b.add(e.circle(a,d,c))}},0,['system-aladin'],['component','box','container','panel','aladin','system-aladin'],{'component':!0,'box':!0,'container':!0,'panel':!0,'aladin':!0,'system-aladin':!0},['widget.system-aladin'],0,[Explorer.view.system,'Aladin'],0);Ext.cmd.derive('Explorer.view.system.MembersGrid',Ext.grid.Panel,{config:{ready:!1,columnRating:!1,columnAccept:!1,columnComments:!1},emptyText:'No data to dysplay.',initComponent:function(){var a=this;Ext.apply(this,{enableLocking:!0,syncRowHeight:!0,columns:[Ext.create('Ext.grid.RowNumberer'),{text:'',dataIndex:'',width:50},{text:'',dataIndex:'',flex:!0}],viewConfig:{stripeRows:!0,markDirty:!1,getRowClass:function(a){return a.get('_meta_reject')===!0?'rejected-row':''}}});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},reconfigureGrid:function(d){var a=this,b=[],c;b.push(Ext.create('Ext.grid.RowNumberer',{width:50,resizable:!0,locked:!0}));if(d.count()>0){c=!1;d.each(function(f){if(f.get('is_visible')){var e={text:a.createColumnText(f),dataIndex:f.get('column_name').toLowerCase(),tooltip:a.createColumnTooltip(f),renderer:a.formatNumber,lockable:!0};if(f.get('ucd')=='meta.id;meta.main'){e.locked=!0;e.lockable=!0;e.renderer=null;c=!0}if(f.get('column_name').toLowerCase()=='tilename'){e.width=120}if(f.get('ucd')==='pos.eq.ra;meta.main'||f.get('ucd')==='pos.eq.dec;meta.main'){e.width=90;e.xtype='numbercolumn';e.format='0.000';e.renderer=null;e.locked=!0;e.lockable=!0}if(f.get('ucd')==='phys.angSize;src'){e.width=80;e.xtype='numbercolumn';e.format='0.000';e.renderer=null;e.lockable=!0}b.push(e)}},this);if(a.getColumnRating()&&c===!0){b.push({xtype:'widgetcolumn',width:90,sortable:!0,text:'Rating',dataIndex:'_meta_rating',tooltip:'Rating',widget:{xtype:'rating',minimum:0,scale:'115%',selectedStyle:'color: rgb(96, 169, 23);',style:{'color':'#777777'}}})}if(a.getColumnAccept()&&c===!0){b.push({xtype:'checkcolumn',text:'Reject',dataIndex:'_meta_reject',tooltip:'Reject',sortable:!0,width:80})}if(a.getColumnComments()&&c===!0){b.push({text:'Comments',dataIndex:'_meta_comments',tooltip:'Comments',align:'center',flex:1,sortable:!1,minWidth:80,renderer:function(b,c,e){var a='';if(b>0){if(b==1){a=' '}else {a=''}}return a}})}}else {b.push({text:'Placeholder',dataIndex:'',hidden:!0})}a.reconfigure(null,b);a.setReady(!0);this.fireEvent('ready',this)},getTypeColumn:function(a){switch(a){case 'integer':case 'real':case 'double precision':case 'bigint':case 'smallint':return 'number';break;case 'text':return 'string';break;}},createColumnText:function(a){var c=a.get('unit'),b=a.get('display_name');var d=c!=''?Ext.String.format('{0} ( {1} )',b,c):b;return d},createColumnTooltip:function(a){var b=new Ext.XTemplate('
    ','

    {display_name}

    ','','

    Name: {column_name}

    ','
    ','','

    Unit: {unit}

    ','
    ','','

    ucd: {ucd}

    ','
    ','','

    Reference: {reference}

    ','
    ','
    ');return b.apply(a.data)},formatNumber:function(a){var b=3,d,c;if(typeof a==='number'){if(a>10000){a=a.toExponential(1)}else {if(a.toString().indexOf('.')!=-1){d=a.toString().split('.');c=d[1];if(c.length>b){a=a.toFixed(b)}}}}return a}},0,['system-members-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','system-members-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'system-members-grid':!0},['widget.system-members-grid'],0,[Explorer.view.system,'MembersGrid'],0);Ext.cmd.derive('Explorer.view.system.VacGrid',Ext.grid.Panel,{config:{ready:!1},emptyText:'No data to dysplay.',initComponent:function(){var a=this;Ext.apply(this,{enableLocking:!0,syncRowHeight:!0,columns:[Ext.create('Ext.grid.RowNumberer'),{text:'',dataIndex:'',width:50},{text:'',dataIndex:'',flex:!0}],viewConfig:{stripeRows:!0,markDirty:!1},tbar:[{xtype:'combobox',emptyText:'choose the VAC catalog',width:200,valueField:'id',displayField:'name_with_process_id',queryMode:'local',bind:{store:'{vacProducts}'},readOnly:!1,listeners:{select:'onSelectVacProduct'}},{xtype:'button',iconCls:'x-fa fa-eye',enableToggle:!0,toggleHandler:'changeVisibleOverlayVacs',pressed:!0,tooltip:'Show or hide objects in visiomatic'},{xtype:'numberfield',minValue:0.1,maxValue:5,step:0.1,fieldLabel:'Radius (system radius)',labelWidth:140,width:200,bind:'{vacRadius}'},'-',{xtype:'colorbutton',bind:'{vacOverlayColor}',width:30,tooltip:'Choose a color. Click on the color and then on ok.'},{xtype:'combobox',displayField:'name',valueField:'name',queryMode:'local',width:80,store:{fields:['name'],data:[{'name':'circle'},{'name':'ellipse'},{'name':'square'},{'name':'triangle'}]},bind:{value:'{vacOverlaypointType}'}},{xtype:'numberfield',fieldLabel:'Size',labelWidth:40,width:100,bind:'{vacOverlayPointSize}',minValue:0.2,maxValue:10,step:0.2},{xtype:'button',iconCls:'x-tbar-loading',handler:'loadVacObjects',tooltip:'Refresh'},'-',{xtype:'button',iconCls:'fa fa-info',tooltip:'Product Log',bind:{href:'{currentVacProduct.productlog}',disabled:'{!currentVacProduct.productlog}'}}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},reconfigureGrid:function(c){var a=this,b=[],d;b.push(Ext.create('Ext.grid.RowNumberer',{width:50,resizable:!0,locked:!0}));if(c.count()>0){d=!1;c.each(function(f){if(f.get('is_visible')){var e={text:a.createColumnText(f),dataIndex:f.get('column_name').toLowerCase(),tooltip:a.createColumnTooltip(f),renderer:a.formatNumber,lockable:!0};if(f.get('ucd')=='meta.id;meta.main'){e.locked=!0;e.lockable=!0;e.renderer=null;d=!0}if(f.get('column_name').toLowerCase()=='tilename'){e.width=120}if(f.get('ucd')==='pos.eq.ra;meta.main'||f.get('ucd')==='pos.eq.dec;meta.main'){e.width=90;e.xtype='numbercolumn';e.format='0.000';e.renderer=null;e.locked=!0;e.lockable=!0}if(f.get('ucd')==='phys.angSize;src'){e.width=80;e.xtype='numbercolumn';e.format='0.000';e.renderer=null;e.lockable=!0}b.push(e)}},this)}else {b.push({text:'Placeholder',dataIndex:'',hidden:!0})}a.reconfigure(null,b);a.setReady(!0);this.fireEvent('ready',this)},createColumnText:function(a){var c=a.get('unit'),b=a.get('display_name');var d=c!=''?Ext.String.format('{0} ( {1} )',b,c):b;return d},createColumnTooltip:function(a){var b=new Ext.XTemplate('
    ','

    {display_name}

    ','','

    Name: {column_name}

    ','
    ','','

    Unit: {unit}

    ','
    ','','

    ucd: {ucd}

    ','
    ','','

    Reference: {reference}

    ','
    ','
    ');return b.apply(a.data)},formatNumber:function(a){var b=3,d,c;if(typeof a==='number'){if(a>10000){a=a.toExponential(1)}else {if(a.toString().indexOf('.')!=-1){d=a.toString().split('.');c=d[1];if(c.length>b){a=a.toFixed(b)}}}}return a}},0,['system-vac-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','system-vac-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'system-vac-grid':!0},['widget.system-vac-grid'],0,[Explorer.view.system,'VacGrid'],0);Ext.cmd.derive('Explorer.view.system.D3SvgComponent',Ext.Component,{title:'D3 Js',config:{baseCls:'x-d3',svgMargin:{top:50,left:50,right:50,bottom:50},legend:{width:0,height:0,y:20,iconSize:20},store:null,xAxisTitle:null,yAxisTitle:null,plotTitle:null,ready:!1},d3:null,resizeDelay:250,resizeTimerId:0,size:null,defs:null,wrapper:null,wrapperClipRect:null,wrapperClipId:'wrapper-clip',svg:null,defaultCls:{wrapper:'x-d3-wrapper',scene:'x-d3-scene',hidden:'x-d3-hidden'},proportionalSize:!0,scene:null,sceneRect:null,initComponent:function(){var a=this;Ext.Component.prototype.initComponent.apply(this,arguments);if(window.d3){a.d3=window.d3;a.on('resize','onElementResize',a)}else {console.log('window.d3 ainda nao esta carregada, incluir no app.json a biblioteca D3JS')}},onElementResize:function(a,b){this.handleResize(this.getSize())},handleResize:function(b,d){var a=this,c=a.getEl();if(!(c&&(b=b||c.getSize())&&b.width&&b.height)){return}clearTimeout(a.resizeTimerId);if(d){a.resizeTimerId=0}else {a.resizeTimerId=Ext.defer(a.handleResize,a.resizeDelay,a,[b,!0]);return}a.resizeHandler(b);a.size=b},resizeHandler:function(f){var a=this,l=a.getSvg(),c=a.getSvgMargin(),k=a.getInherited().rtl,j=a.getWrapper(),i=a.getWrapperClipRect(),h=a.getScene(),e=f&&f.width,d=f&&f.height,g=a.getLegend(),b;if(!(e&&d)){return}a.clearScene();if(a.proportionalSize){e=d+g.width}l.attr('width',e).attr('height',d);b=a.sceneRect||(a.sceneRect={});b.x=k?c.right:c.left;b.y=c.top;b.width=e-c.left-c.right-g.width;b.height=d-c.top-c.bottom;j.attr('transform','translate('+b.x+','+b.y+')');i.attr('width',b.width).attr('height',b.height);a.sceneRect=b;a.onSceneResize(h,b);a.fireEvent('sceneresize',a,h,b)},getSvg:function(){var a=this,b=a.getEl();return a.svg||(a.svg=a.d3.select(b.dom).append('svg').attr('version','1.1'))},getWrapper:function(){var a=this,b=a.wrapper;if(!b){b=a.wrapper=a.getSvg().append('g').classed(a.defaultCls.wrapper,!0)}return b},getWrapperClipRect:function(){var a=this,b=a.wrapperClipRect;if(!b){b=a.wrapperClipRect=a.getDefs().append('clipPath').attr('id',a.wrapperClipId).append('rect').attr('fill','white')}return b},getDefs:function(){var a=this.defs;if(!a){a=this.defs=this.getSvg().append('defs')}return a},getScene:function(){var a=this,c=a.getWrapper(),b=a.scene;if(!b){a.scene=b=c.append('g').classed(a.defaultCls.scene,!0);a.setupScene(b);a.fireEvent('scenesetup',a,b)}return b},setupScene:Ext.emptyFn,destroy:function(){this.getSvg().remove();Ext.Component.prototype.destroy.call(this)},clearScene:function(){var c=this,a=c.scene,b=c.defs;if(a){a=a.node();a.removeAttribute('transform');while(a.firstChild){a.removeChild(a.firstChild)}}if(b){b=b.node();while(b.firstChild){b.removeChild(b.firstChild)}}},onSceneResize:function(b,c){var a=this;a.setReady(!0);a.performLayout(b,c)},performLayout:Ext.emptyFn,showScene:function(){this.scene&&this.scene.classed(this.defaultCls.hidden,!1)},hideScene:function(){this.scene&&this.scene.classed(this.defaultCls.hidden,!0)},applyPadding:function(a,c){var b;if(!Ext.isObject(a)){b=Ext.util.Format.parseBox(a)}else {if(!c){b=a}else {b=Ext.apply(c,a)}}return b},setStore:function(a){this.store=a},setPlotTitle:function(b){var a=this;a.plotTitle=b;if(a.getReady()){a.createPlotTitle()}},setXAxisTitle:function(b){var a=this;a.xAxisTitle=b;if(a.getReady()){a.createAxisTitles()}},setYAxisTitle:function(b){var a=this;a.yAxisTitle=b;if(a.getReady()){a.createAxisTitles()}},createAxisTitles:function(){var a=this,f=a.getScene(),e=a.getSvgMargin(),b=a.sceneRect,c=a.getXAxisTitle(),d=a.getYAxisTitle(),g='xAxisTitle-'+a.getId(),h='yAxisTitle-'+a.getId();a.d3.select('#'+g).remove();a.d3.select('#'+h).remove();if(c){f.append('text').attr('id',g).attr('transform','translate('+b.width/2+' ,'+(b.height+e.bottom/2)+')').attr('dy','1em').style('text-anchor','middle').text(c)}if(d){f.append('text').attr('id',h).attr('transform','rotate(-90)').attr('y',0-e.left).attr('x',0-b.height/2).attr('dy','1em').style('text-anchor','middle').text(d)}},createPlotTitle:function(){var a=this,e=a.getScene(),d=a.getSvgMargin(),f=a.sceneRect,b=a.getPlotTitle(),c='plotTitle-'+a.getId();title=a.d3.select('#'+c);if(title){title.remove()}if(b){e.append('text').attr('id',c).attr('x',f.width/2).attr('y',0-d.top/2).attr('text-anchor','middle').style('font-size','1.2em').text(b)}}},0,0,['component','box'],{'component':!0,'box':!0},0,0,[Explorer.view.system,'D3SvgComponent'],0);Ext.cmd.derive('Explorer.view.system.SpatialDistribution',Explorer.view.system.D3SvgComponent,{},0,['system-spatial-distribution'],['component','box','system-spatial-distribution'],{'component':!0,'box':!0,'system-spatial-distribution':!0},['widget.system-spatial-distribution'],0,[Explorer.view.system,'SpatialDistribution'],0);Ext.cmd.derive('Explorer.view.system.ZDistribution',Explorer.view.system.D3SvgComponent,{plotTitle:'z Distribution',xAxisTitle:'Redshift',yAxisTitle:'N',proportionalSize:!1,performLayout:function(c,g){var a=this,i=g.width,e=g.height,d=a.processData(a.getStore()),k=a.getSvgMargin();var b=d3.scaleLinear().domain([d3.min(d),d3.max(d)]).range([0,i]);var f=d3.histogram().domain(b.domain()).thresholds(b.ticks(15))(d);var h=d3.scaleLinear().domain([0,d3.max(f,function(a){return a.length})]).range([e,0]);var j=d3.line().x(function(a,d){return b(a.x0)}).y(function(a,b){return h(a.length)}).curve(d3.curveStepAfter);c.append('g').attr('class','axis axis--x').attr('transform','translate(0,'+e+')').call(d3.axisBottom(b));c.append('g').attr('class','axis axis--y').call(d3.axisLeft(h).ticks(5).tickFormat(d3.format('d')));c.append('path').attr('class','line').attr('d',j(f)).attr('fill','none').attr('stroke','steelblue').attr('stroke-width','2px');a.createAxisTitles();a.createPlotTitle()},processData:function(b){var c=this,a=[];b.each(function(c){a.push(c.get('zp'))});return a}},0,['system-z-distribution'],['component','box','system-z-distribution'],{'component':!0,'box':!0,'system-z-distribution':!0},['widget.system-z-distribution'],0,[Explorer.view.system,'ZDistribution'],0);Ext.cmd.derive('Explorer.view.system.MagDistribution',Explorer.view.system.ZDistribution,{plotTitle:'Mag Distribution',xAxisTitle:'Mag',yAxisTitle:'N',processData:function(b){var c=this,a=[];b.each(function(c){a.push(c.get('mag'))});return a}},0,['system-mag-distribution'],['component','box','system-z-distribution','system-mag-distribution'],{'component':!0,'box':!0,'system-z-distribution':!0,'system-mag-distribution':!0},['widget.system-mag-distribution'],0,[Explorer.view.system,'MagDistribution'],0);Ext.cmd.derive('Explorer.view.system.cmd.CmdBase',Explorer.view.system.D3SvgComponent,{config:{dataSeries:{},plotData:[],members:null,vacs:null,svgMargin:{top:50,left:50,right:100,bottom:50},legend:{width:0,height:0,y:20,iconSize:20,iconPadding:5},colorScale:null,baseId:''},idleTimeout:null,idleDelay:350,proportionalSize:!1,performLayout:function(d,f){var a=this,h=f.width,e=f.height,i=a.getDataSeries(),b=a.loadData(),c=0.2;var g=d3.scaleQuantize().domain([0,1]).range(['#9EB0BB','#1B81BC']);a.setColorScale(g);a.setBaseId(a.getItemId()+'-');a.x=d3.scaleLinear().range([0,h]).domain([d3.min(b,function(a){return d3.min(a.values,function(b){return b.x-c})}),d3.max(b,function(a){return d3.max(a.values,function(b){return b.x+c})})]);a.xAxis=d3.axisBottom(a.x);a.y=d3.scaleLinear().range([e,0]).domain([d3.min(b,function(a){return d3.min(a.values,function(b){return b.y-c})}),d3.max(b,function(a){return d3.max(a.values,function(b){return b.y+c})})]);a.yAxis=d3.axisLeft(a.y);a.brush=d3.brush().extent([[0,0],[h,e]]).on('end',function(){a.onBrushendend()});a.gx=d.append('g').attr('class','axis axis--x').attr('id',a.getBaseId()+'axis--x').attr('transform','translate(0,'+e+')').call(a.xAxis);a.gy=d.append('g').attr('class','axis axis--y').attr('id',a.getBaseId()+'axis--y').call(a.yAxis);a.scene.append('g').attr('class','brush').call(a.brush);a.scatter=d.append('g').attr('id',a.getBaseId()+'scatterplot');a.scatter.selectAll('.series').data(b).enter().append('g').attr('class','series').attr('id',function(b){return a.getBaseId()+'serie-'+b.id}).attr('active',!1).style('fill',function(b,a){return g(a)}).style('opacity',function(a){if('opacity' in a){return a.opacity}else {return 1}}).selectAll('.dot').data(function(a){return a.values}).enter().append('circle').attr('class','dot').attr('r',2.5).attr('cx',function(b){return a.x(b.x)}).attr('cy',function(b){return a.y(b.y)}).on('mouseover',function(b){a.onMouseOverPoint(b,this)}).on('mouseout',function(b){a.onMouseOutPoint(b,this)}).on('click',function(b){a.onClickPoint(b,this)});a.createAxisTitles();a.createPlotTitle();a.createLegendBox(d,f,b)},reloadData:function(){var a=this;if(a.scene&&a.sceneRect){a.clearScene();a.performLayout(a.scene,a.sceneRect)}},loadData:function(){var c=this,g=c.getDataSeries(),d=c.getMembers(),f=c.getVacs(),e=[];for(var a in g){var b=g[a];if(f!=null&&a in f){b.values=f[a]}if(d!=null&&a in d){b.values=d[a]}if(b.values.length){e.push(b)}}c.setPlotData(e);return e},createLegendBox:function(d,f,e){var b=this,a=b.getLegend(),c=b.getColorScale();var h=d.selectAll('.legend').data(e).enter().append('g').attr('class','legend').attr('id',function(a){return b.getBaseId()+'legendItem-'+a.id}).attr('transform',function(g,c){var b=a.iconSize+a.iconPadding;return 'translate('+f.width+','+c*b+')'}).on('click',function(a){b.changeSerie(a)}).each(function(b,h){g=d3.select(this);g.append('rect').attr('width',a.iconSize).attr('height',a.iconSize).style('fill',c(h));g.append('text').attr('x',a.iconSize+5).attr('y',10).attr('dy','.35em').text(b.title)})},showHideSerie:function(c,e){var d=this,a=d3.select('#'+d.getBaseId()+'legendItem-'+c.id),b=d3.select('#'+d.getBaseId()+'serie-'+c.id);if(e){b.attr('active',!0).transition().duration(1000).style('opacity',function(a){if('opacity' in a){return a.opacity}else {return 1}}).style('display','block');a.transition().duration(1000).style('opacity',1)}else {b.attr('active',!1).transition().duration(1000).style('opacity',0).style('display','none');a.transition().duration(1000).style('opacity',0.3)}},changeSerie:function(a){var b=this,d=d3.select('#'+b.getBaseId()+'serie-'+a.id),c=d.attr('active')==='true'?!0:!1;if(c){b.deactiveSerie(a)}else {b.activeSerie(a)}},activeSerie:function(a){var b=this;b.showHideSerie(a,!0)},deactiveAllSeries:function(){var a=this,b=a.getPlotData();Ext.each(b,function(b){a.deactiveSerie(b)})},deactiveSerie:function(a){var b=this;b.showHideSerie(a,!1)},onMouseOverPoint:function(d,c){var e=this,a=d3.select(c),b=d3.select('#'+e.getBaseId()+'serie-'+d.serie);b.transition().duration(300).attr('fill-opacity',0.4);a.attr('r',3.5).attr('fill-opacity',1).style('cursor','pointer').style('fill','#E34D1C')},onMouseOutPoint:function(f,e){var a=this,b=d3.select(e),c=d3.select('#'+a.getBaseId()+'serie-'+f.serie),d=a.getColorScale();c.transition().duration(300).attr('fill-opacity',null);b.attr('r',2.5).attr('fill-opacity',null).style('cursor','default').style('fill',function(b,a){return d(a)})},onClickPoint:function(b,d){var a=this,e=a.getStore(),c;a.fireEvent('clickpoint',b.id,b.serie,a)},onBrushendend:function(){var a=this,d=a.getScene(),b=a.plotData,c=0.2;a.s=d3.event.selection;if(!a.s){if(!a.idleTimeout){return a.idleTimeout=setTimeout(function(){a.idleTimeout=null},a.idleDelay)}a.y.domain(d3.extent(b,function(a){return a.y})).nice();a.x.domain([d3.min(b,function(a){return d3.min(a.values,function(b){return b.x-c})}),d3.max(b,function(a){return d3.max(a.values,function(b){return b.x+c})})]);a.y.domain([d3.min(b,function(a){return d3.min(a.values,function(b){return b.y-c})}),d3.max(b,function(a){return d3.max(a.values,function(b){return b.y+c})})])}else {a.x.domain([a.s[0][0],a.s[1][0]].map(a.x.invert,a.x));a.y.domain([a.s[1][1],a.s[0][1]].map(a.y.invert,a.y));d.select('.brush').call(a.brush.move,null)}a.zoom()},zoom:function(){var a=this,c=a.getScene(),b;b=a.scatter.transition().duration(750);d3.select('#'+a.getBaseId()+'axis--x').transition(b).call(a.xAxis);d3.select('#'+a.getBaseId()+'axis--y').transition(b).call(a.yAxis);a.scatter.selectAll('circle').transition(b).attr('cx',function(b){return a.x(b.x)}).attr('cy',function(b){return a.y(b.y)})}},0,['system-cmd'],['component','box','system-cmd'],{'component':!0,'box':!0,'system-cmd':!0},['widget.system-cmd'],0,[Explorer.view.system.cmd,'CmdBase'],0);Ext.cmd.derive('Explorer.view.system.cmd.CmdTab',Ext.panel.Panel,{config:{members:null,vacs:null},initComponent:function(){var a=this;Ext.apply(this,{layout:'responsivecolumn',defaults:{xtype:'system-cmd',height:300,layout:'fit',userCls:'big-50 small-100',listeners:{scope:a,clickpoint:'onCmdClickPoint'}},items:[{itemId:'cmd-gr',plotTitle:'(g-r) vs. r',xAxisTitle:'r',yAxisTitle:'g-r',dataSeries:{vacgr:{id:'vac_g-r',title:'VAC',opacity:0.6,values:[]},gr:{id:'g-r',title:'(g-r) vs. r',opacity:1,values:[]}}},{itemId:'cmd-ri',plotTitle:'(r-i) vs. i',xAxisTitle:'i',yAxisTitle:'r-i',dataSeries:{vacri:{id:'vac_r-i',title:'VAC',opacity:0.6,values:[]},ri:{id:'r-i',title:'(r-i) vs. i',opacity:1,values:[]}}},{itemId:'cmd-iz',plotTitle:'(i-z) vs. z',xAxisTitle:'z',yAxisTitle:'i-z',dataSeries:{vaciz:{id:'vac_i-z',title:'VAC',opacity:0.6,values:[]},iz:{id:'i-z',title:'(i-z) vs. z',opacity:1,values:[]}}},{itemId:'cmd-zy',plotTitle:'(z-y) vs. Y',xAxisTitle:'Y',yAxisTitle:'z-Y',dataSeries:{vaczy:{id:'vac_z-y',title:'VAC',opacity:0.6,values:[]},zy:{id:'z-y',title:'(z-y) vs. Y',opacity:1,values:[]}}}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},getMembersData:function(){var c=this,b=c.getMembers(),a={gr:[],ri:[],iz:[],zy:[]};b.each(function(b){var g=parseFloat(b.get('mag_g')),d=parseFloat(b.get('mag_r')),c=parseFloat(b.get('mag_i')),e=parseFloat(b.get('mag_r')),f=parseFloat(b.get('mag_y'));a.gr.push({'id':b.get('_meta_id'),'x':d,'y':g-d,'serie':'g-r'});a.ri.push({'id':b.get('_meta_id'),'x':c,'y':d-c,'serie':'r-i'});a.iz.push({'id':b.get('_meta_id'),'x':e,'y':c-e,'serie':'i-z'});a.zy.push({'id':b.get('_meta_id'),'x':f,'y':e-f,'serie':'z-y'})});return a},getVacsData:function(){var c=this,b=c.getVacs(),a={vacgr:[],vacri:[],vaciz:[],vaczy:[]};b.each(function(b){var g=parseFloat(b.get('mag_g')),d=parseFloat(b.get('mag_r')),c=parseFloat(b.get('mag_i')),e=parseFloat(b.get('mag_r')),f=parseFloat(b.get('mag_y'));a.vacgr.push({'id':b.get('_meta_id'),'x':d,'y':g-d,'serie':'vac_g-r'});a.vacri.push({'id':b.get('_meta_id'),'x':c,'y':d-c,'serie':'vac_r-i'});a.vaciz.push({'id':b.get('_meta_id'),'x':e,'y':c-e,'serie':'vac_i-z'});a.vaczy.push({'id':b.get('_meta_id'),'x':f,'y':e-f,'serie':'vac_z-y'})});return a},reloadPlots:function(){var a=this,d=a.items,b=a.getMembersData(),c=a.getVacsData();d.each(function(a){a.setMembers(b);a.setVacs(c);a.reloadData()})},onCmdClickPoint:function(d,f,h){var a=this,e=a.getMembers(),g=a.getVacs(),c='member',b;if(f.indexOf('vac_')!=-1){c='vac';b=g.findRecord('_meta_id',d)}else {b=e.findRecord('_meta_id',d)}a.fireEvent('clickpoint',b,c,a)}},0,['cmd-tab'],['component','box','container','panel','cmd-tab'],{'component':!0,'box':!0,'container':!0,'panel':!0,'cmd-tab':!0},['widget.cmd-tab'],0,[Explorer.view.system.cmd,'CmdTab'],0);Ext.cmd.derive('Explorer.view.system.System',Ext.panel.Panel,{controller:'system',viewModel:'system',layout:'fit',initComponent:function(){var a=this;Ext.apply(this,{layout:'border',defaults:{frame:!0},items:[{xtype:'panel',region:'west',width:300,margin:'0 10 0 0',collapsible:!0,reference:'detailPanel',layout:{type:'vbox',pack:'start',align:'stretch'},items:[{xtype:'system-form',reference:'properties-form',split:!0,bbar:[{xtype:'button',text:'SIMBAD',handler:'onClickSimbad'},{xtype:'button',text:'NED',handler:'onClickNed'}]},{xtype:'system-properties',reference:'properties-grid',split:!0,flex:1}]},{xtype:'panel',region:'center',flex:1,split:!0,layout:{type:'vbox',pack:'start',align:'stretch'},margin:'0 0 10 0',defaults:{frame:!0},items:[{xtype:'panel',flex:1,split:!0,layout:{type:'hbox',pack:'start',align:'stretch'},items:[{xtype:'system-visiomatic',reference:'visiomatic',margin:'0 10 0 0',split:!0,flex:1},{xtype:'system-aladin',reference:'aladin',split:!0,flex:1,bind:{storeSurveys:'{surveys}',storeTags:'{tags}',storeTiles:'{tiles}'}}]},{xtype:'tabpanel',flex:1,split:!0,items:[{xtype:'system-members-grid',title:'System Members',reference:'members-grid',bind:{store:'{members}',selection:'{selected_member}'},listeners:{select:'onSelectSystemMember'}},{xtype:'system-vac-grid',title:'VAC',reference:'vac-grid',bind:{store:'{vacObjects}'},listeners:{select:'onSelectVacObject'}},{xtype:'panel',title:'Properties Distribution',layout:{type:'hbox',pack:'start',align:'stretch'},bind:{disabled:'{!have_members}'},items:[{xtype:'system-z-distribution',flex:1,bind:{store:'{members}'}},{xtype:'system-mag-distribution',flex:1,bind:{store:'{members}'}}]},{xtype:'system-spatial-distribution',title:'Spatial Distribution',disabled:!0},{xtype:'cmd-tab',title:'CMD',reference:'CmdTab',flex:1,scrollable:!0,bind:{disabled:'{!have_members}'},listeners:{activate:'onActiveCmdTab',clickpoint:'onCmdClickPoint'}}]}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},loadPanel:function(b){var a=this,e=a.getViewModel(),d=b[1],c=b[2];e.set('source',d);e.set('object_id',c);a.fireEvent('loadpanel',d,c,a)},updatePanel:function(a){}},0,['system'],['component','box','container','panel','system'],{'component':!0,'box':!0,'container':!0,'panel':!0,'system':!0},['widget.system'],0,[Explorer.view.system,'System'],0);Ext.cmd.derive('Explorer.view.main.MainController',Ext.app.ViewController,{routes:{'coadd/:source/:object':{action:'onCoadd'},'system/:source/:object':{action:'onSystem'}},setActivePanel:function(e){var h=this,g=h.getReferences(),b=g.mainCardPanel,d=b.getLayout(),f=e.routeId,c=b.child('component[routeId='+f+']'),a=null;if(!c){a=b.add(e);a.loadPanel(arguments);d.setActiveItem(a)}else {a=c;a.updatePanel(arguments);d.setActiveItem(a)}},onCoadd:function(c,a){var b=Ext.create('Explorer.view.coadd.Coadd',{hideMode:'offsets',routeId:'coadd',layout:'fit'});this.setActivePanel(b,c,a)},onSystem:function(c,a){var b=Ext.create('Explorer.view.system.System',{hideMode:'offsets',routeId:'sytem',layout:'fit'});this.setActivePanel(b,c,a)}},0,0,0,0,['controller.main'],0,[Explorer.view.main,'MainController'],0);Ext.cmd.derive('Explorer.view.main.MainModel',Ext.app.ViewModel,{data:{name:'Explorer',internal_name:'explorer',loremIpsum:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'}},0,0,0,0,['viewmodel.main'],0,[Explorer.view.main,'MainModel'],0);Ext.cmd.derive('Explorer.view.main.Main',Ext.container.Container,{controller:'main',viewModel:'main',layout:{type:'vbox',align:'stretch'},items:[{xtype:'dri-header'},{xtype:'container',flex:1,reference:'mainCardPanel',layout:{type:'card',anchor:'100%'}},{xtype:'dri-footer'}]},0,['app-main'],['component','box','container','app-main'],{'component':!0,'box':!0,'container':!0,'app-main':!0},['widget.app-main'],0,[Explorer.view.main,'Main'],0);Ext.application({name:'Explorer',extend:Explorer.Application,mainView:'Explorer.view.main.Main'}); \ No newline at end of file diff --git a/frontend/build/production/Explorer/app.json b/frontend/build/production/Explorer/app.json index 99fabc50c..13e7b276a 100644 --- a/frontend/build/production/Explorer/app.json +++ b/frontend/build/production/Explorer/app.json @@ -1 +1 @@ -{"packages":{"aladin":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux","common"],"version":"1.0.0"},"charts":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"visiomatic":{"css":true,"included":true,"namespace":"visiomatic","required":true,"requires":["ext","core","classic"],"version":"1.0.0"}},"js":[{"remote":true,"path":"https://d3js.org/d3.v4.min.js"},{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jquery-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic-src.js"},{"path":"packages/local/aladin/src/aladin/aladin-min.js"},{"path":"app.js"}],"css":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot.css"},{"path":"packages/local/aladin/src/aladin/aladin-min.css"},{"exclude":["fashion"],"path":"resources/Explorer-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"Explorer","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180219171845","cacheParam":"_dc"},"id":"1739eae9-ca05-49a0-800a-3c2bd487fa19","hash":"dac3b081a04ab8d762da77ac6bdec3755f40251c","profile":"","resources":{"path":"resources"}} \ No newline at end of file +{"packages":{"aladin":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux","common"],"version":"1.0.0"},"charts":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"visiomatic":{"css":true,"included":true,"namespace":"visiomatic","required":true,"requires":["ext","core","classic"],"version":"1.0.0"}},"js":[{"remote":true,"path":"https://d3js.org/d3.v4.min.js"},{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jquery-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic-src.js"},{"path":"packages/local/aladin/src/aladin/aladin-min.js"},{"path":"app.js"}],"css":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot.css"},{"path":"packages/local/aladin/src/aladin/aladin-min.css"},{"exclude":["fashion"],"path":"resources/Explorer-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"Explorer","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180315163452","cacheParam":"_dc"},"id":"1739eae9-ca05-49a0-800a-3c2bd487fa19","hash":"975290395ff34e166839809b38f95108057433b2","profile":"","resources":{"path":"resources"}} \ No newline at end of file diff --git a/frontend/build/production/Explorer/app.jsonp b/frontend/build/production/Explorer/app.jsonp index e1baa3ed2..46f3fadb7 100644 --- a/frontend/build/production/Explorer/app.jsonp +++ b/frontend/build/production/Explorer/app.jsonp @@ -1 +1 @@ -Ext.Microloader.setManifest({"packages":{"aladin":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux","common"],"version":"1.0.0"},"charts":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"visiomatic":{"css":true,"included":true,"namespace":"visiomatic","required":true,"requires":["ext","core","classic"],"version":"1.0.0"}},"js":[{"remote":true,"path":"https://d3js.org/d3.v4.min.js"},{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jquery-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic-src.js"},{"path":"packages/local/aladin/src/aladin/aladin-min.js"},{"path":"app.js"}],"css":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot.css"},{"path":"packages/local/aladin/src/aladin/aladin-min.css"},{"exclude":["fashion"],"path":"resources/Explorer-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"Explorer","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180219171845","cacheParam":"_dc"},"id":"1739eae9-ca05-49a0-800a-3c2bd487fa19","hash":"dac3b081a04ab8d762da77ac6bdec3755f40251c","profile":"","resources":{"path":"resources"}}); \ No newline at end of file +Ext.Microloader.setManifest({"packages":{"aladin":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux","common"],"version":"1.0.0"},"charts":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"visiomatic":{"css":true,"included":true,"namespace":"visiomatic","required":true,"requires":["ext","core","classic"],"version":"1.0.0"}},"js":[{"remote":true,"path":"https://d3js.org/d3.v4.min.js"},{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jquery-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic-src.js"},{"path":"packages/local/aladin/src/aladin/aladin-min.js"},{"path":"app.js"}],"css":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot.css"},{"path":"packages/local/aladin/src/aladin/aladin-min.css"},{"exclude":["fashion"],"path":"resources/Explorer-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"Explorer","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180315163452","cacheParam":"_dc"},"id":"1739eae9-ca05-49a0-800a-3c2bd487fa19","hash":"975290395ff34e166839809b38f95108057433b2","profile":"","resources":{"path":"resources"}}); \ No newline at end of file diff --git a/frontend/build/production/Sky/app.js b/frontend/build/production/Sky/app.js index bb38b4e48..d87be4c89 100644 --- a/frontend/build/production/Sky/app.js +++ b/frontend/build/production/Sky/app.js @@ -1 +1 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.defineProperty=typeof Object.defineProperties=='function'?Object.defineProperty:function(b,c,a){a=a;if(b==Array.prototype||b==Object.prototype){return}b[c]=a.value};$jscomp.getGlobal=function(a){return typeof window!='undefined'&&window===a?a:typeof global!='undefined'&&global!=null?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(i,f,j,k){if(!f){return}var a=$jscomp.global;var b=i.split('.');for(var e=0;ec){if(--b in this){this[--d]=this[b]}else {delete this[d]}}}return this};return b},'es6-impl','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global['Symbol']){$jscomp.global['Symbol']=$jscomp.Symbol}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||'')+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global['Symbol'].iterator;if(!a){a=$jscomp.global['Symbol'].iterator=$jscomp.global['Symbol']('iterator')}if(typeof Array.prototype[a]!='function'){$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}})}$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){if(bd){b=d}b=Number(b);if(b<0){b=Math.max(0,d+b)}for(var e=Number(c||0);e-0.25){var f=b;var g=1;var c=b;var d=0;var e=1;while(d!=c){f*=b;e*=-1;c=(d=c)+e*f/++g}return c}return Math.log(1+b)};return b},'es6-impl','es3');$jscomp.polyfill('Math.atanh',function(b){if(b){return b}var a=Math.log1p;var c=function(c){c=Number(c);return (a(c)-a(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.cbrt',function(a){if(a){return a}var b=function(b){if(b===0){return b}b=Number(b);var c=Math.pow(Math.abs(b),1/3);return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Math.clz32',function(a){if(a){return a}var b=function(b){b=Number(b)>>>0;if(b===0){return 32}var c=0;if((b&4.29490176E9)===0){b<<=16;c+=16}if((b&4.27819008E9)===0){b<<=8;c+=8}if((b&4.02653184E9)===0){b<<=4;c+=4}if((b&3.221225472E9)===0){b<<=2;c+=2}if((b&2.147483648E9)===0){c++}return c};return b},'es6-impl','es3');$jscomp.polyfill('Math.cosh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);return (b(c)+b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.expm1',function(a){if(a){return a}var b=function(b){b=Number(b);if(b<0.25&&b>-0.25){var e=b;var f=1;var c=b;var d=0;while(d!=c){e*=b/++f;c=(d=c)+e}return c}return Math.exp(b)-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.hypot',function(a){if(a){return a}var b=function(c,d,h){c=Number(c);d=Number(d);var b,g,f;var e=Math.max(Math.abs(c),Math.abs(d));for(b=2;b1.0E100||e<1.0E-100){c=c/e;d=d/e;f=c*c+d*d;for(b=2;b>>16&65535;var d=b&65535;var g=c>>>16&65535;var e=c&65535;var h=f*e+d*g<<16>>>0;return d*e+h|0};return b},'es6-impl','es3');$jscomp.polyfill('Math.log10',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN10};return b},'es6-impl','es3');$jscomp.polyfill('Math.log2',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN2};return b},'es6-impl','es3');$jscomp.polyfill('Math.sign',function(a){if(a){return a}var b=function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.sinh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);if(c===0){return c}return (b(c)-b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.tanh',function(a){if(a){return a}var b=function(b){b=Number(b);if(b===0){return b}var c=Math.exp(-2*Math.abs(b));var d=(1-c)/(1+c);return b<0?-d:d};return b},'es6-impl','es3');$jscomp.polyfill('Math.trunc',function(a){if(a){return a}var b=function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0){return b}var c=Math.floor(Math.abs(b));return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Number.EPSILON',function(a){return Math.pow(2,-52)},'es6-impl','es3');$jscomp.polyfill('Number.MAX_SAFE_INTEGER',function(){return 9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.MIN_SAFE_INTEGER',function(){return -9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.isFinite',function(a){if(a){return a}var b=function(b){if(typeof b!=='number'){return !1}return !isNaN(b)&&b!==Infinity&&b!==-Infinity};return b},'es6-impl','es3');$jscomp.polyfill('Number.isInteger',function(a){if(a){return a}var b=function(b){if(!Number.isFinite(b)){return !1}return b===Math.floor(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isNaN',function(a){if(a){return a}var b=function(b){return typeof b==='number'&&isNaN(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isSafeInteger',function(a){if(a){return a}var b=function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER};return b},'es6-impl','es3');$jscomp.polyfill('Object.assign',function(a){if(a){return a}var b=function(e,f){for(var d=1;d3?f:b,e);return !0}else {if(c.writable&&!Object.isFrozen(b)){b[d]=e;return !0}}return !1};return b},'es6','es5');$jscomp.polyfill('Reflect.setPrototypeOf',function(a){if(a){return a}if(typeof ''.__proto__!='object'){return null}var b=function(b,c){try{b.__proto__=c;return b.__proto__===c}catch(d){return !1}};return b},'es6','es5');$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.polyfill('Set',function(b){var c=!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!b||!b.prototype.entries||typeof Object.seal!='function'){return !1}try{b=b;var d=Object.seal({x:4});var c=new b($jscomp.makeIterator([d]));if(!c.has(d)||c.size!=1||c.add(d)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2){return !1}var e=c.entries();var a=e.next();if(a.done||a.value[0]!=d||a.value[1]!=d){return !1}a=e.next();if(a.done||a.value[0]==d||a.value[0].x!=4||a.value[1]!=a.value[0]){return !1}return e.next().done}catch(f){return !1}}();if(c){return b}$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=function(a){this.map_=new Map();if(a){var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}this.size=this.map_.size};a.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};a.prototype['delete']=function(c){var a=this.map_['delete'](c);this.size=this.map_.size;return a};a.prototype.clear=function(){this.map_.clear();this.size=0};a.prototype.has=function(a){return this.map_.has(a)};a.prototype.entries=function(){return this.map_.entries()};a.prototype.values=function(){return this.map_.values()};a.prototype.keys=a.prototype.values;$jscomp.initSymbol();$jscomp.initSymbolIterator();a.prototype[Symbol.iterator]=a.prototype.values;a.prototype.forEach=function(c,a){var d=this;this.map_.forEach(function(e){return c.call(a,e,e,d)})};return a},'es6-impl','es3');$jscomp.checkStringArgs=function(a,c,b){if(a==null){throw new TypeError("The 'this' value for String.prototype."+b+' must not be null or undefined')}if(c instanceof RegExp){throw new TypeError('First argument to String.prototype.'+b+' must not be a regular expression')}return a+''};$jscomp.polyfill('String.prototype.codePointAt',function(a){if(a){return a}var b=function(b){var e=$jscomp.checkStringArgs(this,null,'codePointAt');var f=e.length;b=Number(b)||0;if(!(b>=0&&b56319||b+1===f){return c}var d=e.charCodeAt(b+1);if(d<56320||d>57343){return c}return (c-55296)*1024+d+9216};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.endsWith',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'endsWith');b=b+'';if(c===void 0){c=d.length}var f=Math.max(0,Math.min(c|0,d.length));var e=b.length;while(e>0&&f>0){if(d[--f]!=b[--e]){return !1}}return e<=0};return b},'es6-impl','es3');$jscomp.polyfill('String.fromCodePoint',function(a){if(a){return a}var b=function(e){var c='';for(var d=0;d1114111||b!==Math.floor(b)){throw new RangeError('invalid_code_point '+b)}if(b<=65535){c+=String.fromCharCode(b)}else {b-=65536;c+=String.fromCharCode(b>>>10&1023|55296);c+=String.fromCharCode(b&1023|56320)}}return c};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.includes',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'includes');return d.indexOf(b,c||0)!==-1};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.repeat',function(a){if(a){return a}var b=function(b){var c=$jscomp.checkStringArgs(this,null,'repeat');if(b<0||b>1342177279){throw new RangeError('Invalid count value')}b=b|0;var d='';while(b){if(b&1){d+=c}if(b>>>=1){c+=c}}return d};return b},'es6-impl','es3');$jscomp.stringPadding=function(c,a){var b=c!==undefined?String(c):' ';if(!(a>0)||!b){return ''}var d=Math.ceil(a/b.length);return b.repeat(d).substring(0,a)};$jscomp.polyfill('String.prototype.padEnd',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return b+$jscomp.stringPadding(c,e)};return b},'es8','es3');$jscomp.polyfill('String.prototype.padStart',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return $jscomp.stringPadding(c,e)+b};return b},'es8','es3');$jscomp.polyfill('String.prototype.startsWith',function(a){if(a){return a}var b=function(b,g){var c=$jscomp.checkStringArgs(this,b,'startsWith');b=b+'';var h=c.length;var e=b.length;var f=Math.max(0,Math.min(g|0,c.length));var d=0;while(d=e};return b},'es6-impl','es3');$jscomp.arrayFromIterator=function(c){var b;var a=[];while(!(b=c.next()).done){a.push(b.value)}return a};$jscomp.arrayFromIterable=function(a){if(a instanceof Array){return a}else {return $jscomp.arrayFromIterator($jscomp.makeIterator(a))}};$jscomp.inherits=function(a,b){function tempCtor(){}tempCtor.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new tempCtor();a.prototype.constructor=a;for(var c in b){if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);if(d){Object.defineProperty(a,c,d)}}else {a[c]=b[c]}}};$jscomp.polyfill('WeakSet',function(b){function isConformant(){if(!b||!Object.seal){return !1}try{var c=Object.seal({});var d=Object.seal({});var a=new b([c]);if(!a.has(c)||a.has(d)){return !1}a['delete'](c);a.add(d);return !a.has(c)&&a.has(d)}catch(e){return !1}}if(isConformant()){return b}var a=function(a){this.map_=new WeakMap();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}};a.prototype.add=function(a){this.map_.set(a,!0);return this};a.prototype.has=function(a){return this.map_.has(a)};a.prototype['delete']=function(a){return this.map_['delete'](a)};return a},'es6-impl','es3');try{if(Array.prototype.values.toString().indexOf('[native code]')==-1){delete Array.prototype.values}}catch(a){}var Ext=Ext||{};if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.app.bind){Ext.app.bind={}}if(!Ext.app.domain){Ext.app.domain={}}if(!Ext.app.route){Ext.app.route={}}if(!Ext.button){Ext.button={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}if(!Ext.data){Ext.data={}}if(!Ext.data.field){Ext.data.field={}}if(!Ext.data.flash){Ext.data.flash={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.matrix){Ext.data.matrix={}}if(!Ext.data.operation){Ext.data.operation={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.request){Ext.data.request={}}if(!Ext.data.schema){Ext.data.schema={}}if(!Ext.data.session){Ext.data.session={}}if(!Ext.data.validator){Ext.data.validator={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dd){Ext.dd={}}if(!Ext.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.form){Ext.form={}}if(!Ext.form.Action){Ext.form.Action={}}if(!Ext.form.action){Ext.form.action={}}if(!Ext.form.field){Ext.form.field={}}if(!Ext.form.trigger){Ext.form.trigger={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.fx.target){Ext.fx.target={}}if(!Ext.grid){Ext.grid={}}if(!Ext.grid.column){Ext.grid.column={}}if(!Ext.grid.feature){Ext.grid.feature={}}if(!Ext.grid.header){Ext.grid.header={}}if(!Ext.grid.locking){Ext.grid.locking={}}if(!Ext.grid.plugin){Ext.grid.plugin={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.boxOverflow){Ext.layout.boxOverflow={}}if(!Ext.layout.component){Ext.layout.component={}}if(!Ext.layout.component.field){Ext.layout.component.field={}}if(!Ext.layout.container){Ext.layout.container={}}if(!Ext.layout.container.border){Ext.layout.container.border={}}if(!Ext.layout.container.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.list){Ext.list={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.overrides){Ext.overrides={}}if(!Ext.overrides.app){Ext.overrides.app={}}if(!Ext.overrides.app.domain){Ext.overrides.app.domain={}}if(!Ext.overrides.dom){Ext.overrides.dom={}}if(!Ext.overrides.event){Ext.overrides.event={}}if(!Ext.overrides.event.publisher){Ext.overrides.event.publisher={}}if(!Ext.overrides.plugin){Ext.overrides.plugin={}}if(!Ext.overrides.util){Ext.overrides.util={}}if(!Ext.panel){Ext.panel={}}if(!Ext.perf){Ext.perf={}}if(!Ext.picker){Ext.picker={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.promise){Ext.promise={}}if(!Ext.resizer){Ext.resizer={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.selection){Ext.selection={}}if(!Ext.state){Ext.state={}}if(!Ext.theme){Ext.theme={}}if(!Ext.theme.crisp){Ext.theme.crisp={}}if(!Ext.theme.crisp.view){Ext.theme.crisp.view={}}if(!Ext.theme.neptune){Ext.theme.neptune={}}if(!Ext.theme.neptune.container){Ext.theme.neptune.container={}}if(!Ext.theme.neptune.form){Ext.theme.neptune.form={}}if(!Ext.theme.neptune.form.field){Ext.theme.neptune.form.field={}}if(!Ext.theme.neptune.grid){Ext.theme.neptune.grid={}}if(!Ext.theme.neptune.grid.column){Ext.theme.neptune.grid.column={}}if(!Ext.theme.neptune.layout){Ext.theme.neptune.layout={}}if(!Ext.theme.neptune.layout.component){Ext.theme.neptune.layout.component={}}if(!Ext.theme.neptune.menu){Ext.theme.neptune.menu={}}if(!Ext.theme.neptune.panel){Ext.theme.neptune.panel={}}if(!Ext.theme.neptune.resizer){Ext.theme.neptune.resizer={}}if(!Ext.theme.neptune.toolbar){Ext.theme.neptune.toolbar={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}if(!Ext.tree){Ext.tree={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.ux){Ext.ux={}}if(!Ext.ux.colorpick){Ext.ux.colorpick={}}if(!Ext.ux.layout){Ext.ux.layout={}}if(!Ext.view){Ext.view={}}if(!Ext.window){Ext.window={}}var Portal=Portal||{};var Sky=Sky||{};if(!Sky.model){Sky.model={}}if(!Sky.store){Sky.store={}}if(!Sky.view){Sky.view={}}if(!Sky.view.dataset){Sky.view.dataset={}}if(!Sky.view.footprint){Sky.view.footprint={}}if(!Sky.view.home){Sky.view.home={}}if(!Sky.view.main){Sky.view.main={}}if(!Sky.view.search){Sky.view.search={}}var aladin=aladin||{};if(!aladin.maps){aladin.maps={}}if(!aladin.model){aladin.model={}}if(!aladin.store){aladin.store={}}var common=common||{};if(!common.comment){common.comment={}}if(!common.contact){common.contact={}}if(!common.data){common.data={}}if(!common.data.proxy){common.data.proxy={}}if(!common.footer){common.footer={}}if(!common.header){common.header={}}if(!common.help){common.help={}}if(!common.link){common.link={}}if(!common.model){common.model={}}if(!common.statistics){common.statistics={}}if(!common.store){common.store={}}var visiomatic=visiomatic||{};if(!visiomatic.catalog){visiomatic.catalog={}}if(!visiomatic.crop){visiomatic.crop={}}if(!visiomatic.download){visiomatic.download={}}if(!visiomatic.filter){visiomatic.filter={}}if(!visiomatic.model){visiomatic.model={}}if(!visiomatic.store){visiomatic.store={}}(function(q){var e,p=['constructor','toString','valueOf','toLocaleString'],n={},m={},k=0,l,j,a,b,o,f,c,d,g,h,i,t=function(){var s,t;j=Ext.Base;a=Ext.ClassManager;b=Ext.Class;for(s=p.length;s-->0;){t=1<0;){H=e[l];g[H]=j[H]}if(c.$isFunction){c=c(g)}v.data=c;x=c.statics;delete c.statics;c.$className=u;if('$className' in c){g.$className=c.$className}g.extend(Q);r=g.prototype;if(E){g.xtype=c.xtype=E[0];r.xtypes=E}r.xtypesChain=M;r.xtypesMap=O;c.alias=B;m.triggerExtended(g,c,v);if(c.onClassExtended){g.onExtended(c.onClassExtended,g);delete c.onClassExtended}if(c.privates&&h){h.call(b,g,c)}if(x){if(i){g.addStatics(x)}else {for(w in x){if(x.hasOwnProperty(w)){t=x[w];if(t&&t.$isFunction&&!t.$isClass&&t!==Ext.emptyFn&&t!==Ext.identityFn){g[w]=I=t;I.$owner=g;I.$name=w}g[w]=t}}}}if(c.inheritableStatics){g.addInheritableStatics(c.inheritableStatics);delete c.inheritableStatics}if(r.onClassExtended){m.onExtended(r.onClassExtended,m);delete r.onClassExtended}if(c.platformConfig&&d){d.call(b,g,c);delete c.platformConfig}if(c.config){o.call(b,g,c)}if(c.cachedConfig&&f){f.call(b,g,c);delete c.cachedConfig}v.onBeforeCreated(g,v.data,v);for(l=0,y=D&&D.length;l0){c--;a[c]='var Ext=window.'+Ext.name+';'+a[c]}}d=a.join('');b=e[d];if(!b){b=Function.prototype.constructor.apply(Function.prototype,a);e[d]=b}return b},functionFactory:function(){var b=Array.prototype.slice.call(arguments),a;if(Ext.isSandboxed){a=b.length;if(a>0){a--;b[a]='var Ext=window.'+Ext.name+';'+b[a]}}return Function.prototype.constructor.apply(Function.prototype,b)},Logger:{verbose:a,log:a,info:a,warn:a,error:function(a){throw new Error(a)},deprecate:a},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:function(){var a={};return function(e,c){if(!e){return []}else {if(!c){return [e]}}var g=a[c]||(a[c]=new RegExp('\\\\'+c,'g')),f=[],d,b;d=e.split(c);while((b=d.shift())!==undefined){while(b.charAt(b.length-1)==='\\'&&d.length>0){b=b+c+d.shift()}b=b.replace(g,c);f.push(b)}return f}}()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=!0})();Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=!0);(function(){function toString(){var d=this,b=d.sourceClass,a=d.sourceMethod,c=d.msg;if(a){if(c){a+='(): ';a+=c}else {a+='()'}}if(b){a=a?b+'.'+a:b}return a||c||''}Ext.Error=function(b){if(Ext.isString(b)){b={msg:b}}var a=new Error();Ext.apply(a,b);a.message=a.message||a.msg;a.toString=toString;return a};Ext.apply(Ext.Error,{ignore:!1,raise:function(a){a=a||{};if(Ext.isString(a)){a={msg:a}}var d=this,b=d.raise.caller,e,c;if(b===Ext.raise){b=b.caller}if(b){if(!a.sourceMethod&&(c=b.$name)){a.sourceMethod=c}if(!a.sourceClass&&(c=b.$owner)&&(c=c.$className)){a.sourceClass=c}}if(d.handle(a)!==!0){e=toString.call(a);throw new Ext.Error(a)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=function(){var c=Array.prototype,b=c.slice,f=function(){var a=[],b,c=20;if(!a.splice){return !1}while(c--){a.push('A')}a.splice(15,0,'F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F');b=a.length;a.splice(13,0,'XXX');if(b+1!==a.length){return !1}return !0}(),i='indexOf' in c,h=!0;function stableSort(b,e){var d=b.length,c=new Array(d),a;for(a=0;ac){for(b=l;b--;){a[h+b]=a[c+b]}}}if(e&&f===j){a.length=j;a.push.apply(a,d)}else {a.length=j+e;for(b=0;b>1;f=d(i,h[e]);if(f>=0){c=e+1}else {if(f<0){b=e-1}}}return c},defaultCompare:function(a,b){return ab?1:0},lexicalCompare:function(a,b){a=String(a);b=String(b);return ab?1:0},each:function(c,e,d,g){c=a.from(c);var b,f=c.length;if(g!==!0){for(b=0;b-1;b--){if(e.call(d||c[b],c[b],b,c)===!1){return b}}}return !0},forEach:'forEach' in c?function(a,c,b){return a.forEach(c,b)}:function(b,d,c){for(var a=0,e=b.length;a=0&&b>>0,c=e;if(arguments.length<3){while(!0){if(b in a){c=a[b++];break}if(++b>=d){throw new TypeError('Reduce of empty array with no initial value')}}}for(;bb){b=a}}}return b},mean:function(b){return b.length>0?a.sum(b)/b.length:undefined},sum:function(b){var d=0,a,e,c;for(a=0,e=b.length;ab?1:-1,a;for(a=b;a!=d;a+=e){c[a]=c[a+e]}c[d]=f},replace:j,splice:p,push:function(a){var d=arguments.length,c=1,b;if(a===undefined){a=[]}else {if(!Ext.isArray(a)){a=[a]}}for(;c=d){a=0}else {a=d-a}}if(a===0){b=c+b}else {if(a>=b.length){b+=c}else {b=b.substr(0,a)+c+b.substr(a)}}return b},startsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.lastIndexOf(a,0)===0}return c},endsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.indexOf(a,b.length-a.length)!==-1}return c},createVarName:function(a){return a.replace(l,'')},htmlEncode:function(a){return !a?a:String(a).replace(b,h)},htmlDecode:function(a){return !a?a:String(a).replace(d,g)},hasHtmlCharacters:function(a){return b.test(a)},addCharacterEntities:function(g){var i=[],h=[],e,f;for(e in g){f=g[e];a[e]=f;c[f]=e;i.push(f);h.push(e)}b=new RegExp('('+i.join('|')+')','g');d=new RegExp('('+h.join('|')+'|&#[0-9]{1,5};)','g')},resetCharacterEntities:function(){c={};a={};this.addCharacterEntities({'&':'&','>':'>','<':'<','"':'"',''':"'"})},urlAppend:function(a,b){if(!Ext.isEmpty(b)){return a+(a.indexOf('?')===-1?'?':'&')+b}return a},trim:function(a){if(a){a=a.replace(m,'')}return a||''},capitalize:function(a){if(a){a=a.charAt(0).toUpperCase()+a.substr(1)}return a||''},uncapitalize:function(a){if(a){a=a.charAt(0).toLowerCase()+a.substr(1)}return a||''},ellipsis:function(a,c,e){if(a&&a.length>c){if(e){var b=a.substr(0,c-2),d=Math.max(b.lastIndexOf(' '),b.lastIndexOf('.'),b.lastIndexOf('!'),b.lastIndexOf('?'));if(d!==-1&&d>=c-15){return b.substr(0,d)+'...'}}return a.substr(0,c-3)+'...'}return a},escapeRegex:function(a){return a.replace(i,'\\$1')},createRegex:function(b,d,e,c){var a=b;if(b!=null&&!b.exec){a=f.escapeRegex(String(b));if(d!==!1){a='^'+a}if(e!==!1){a+='$'}a=new RegExp(a,c!==!1?'i':'')}return a},escape:function(a){return a.replace(n,'\\$1')},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,d,b){var a=String(c);b=b||' ';while(a.length daysInMonth) {','d = daysInMonth;','}','}','h = from(h, from(def.h, dt.getHours()));','i = from(i, from(def.i, dt.getMinutes()));','s = from(s, from(def.s, dt.getSeconds()));','ms = from(ms, from(def.ms, dt.getMilliseconds()));','if(z >= 0 && y >= 0){','v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);','}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){','v = null;','}else{','if (W) {','year = y || (new Date()).getFullYear();','jan4 = new Date(year, 0, 4, 0, 0, 0);','d = jan4.getDay();','week1monday = new Date(jan4.getTime() - ((d === 0 ? 6 : d - 1) * 86400000));','v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));','} else {','v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','}','}','}','}','if(v){','if(zz != null){','v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);','}else if(o){',"v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));",'}','}','return (v != null) ? v : null;'].join('\n');if(!Date.prototype.toISOString){Date.prototype.toISOString=function(){var a=this;return c(a.getUTCFullYear(),4,'0')+'-'+c(a.getUTCMonth()+1,2,'0')+'-'+c(a.getUTCDate(),2,'0')+'T'+c(a.getUTCHours(),2,'0')+':'+c(a.getUTCMinutes(),2,'0')+':'+c(a.getUTCSeconds(),2,'0')+'.'+c(a.getUTCMilliseconds(),3,'0')+'Z'}}function xf(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(e,function(d,c){return b[c]})}return a={now:b.now,toString:function(a){if(!a){a=new b()}return a.getFullYear()+'-'+c(a.getMonth()+1,2,'0')+'-'+c(a.getDate(),2,'0')+'T'+c(a.getHours(),2,'0')+':'+c(a.getMinutes(),2,'0')+':'+c(a.getSeconds(),2,'0')},getElapsed:function(b,c){return Math.abs(b-(c||a.now()))},useStrict:!1,formatCodeToRegex:function(c,d){var b=a.parseCodes[c];if(b){b=typeof b==='function'?b():b;a.parseCodes[c]=b}return b?Ext.applyIf({c:b.c?xf(b.c,d||'{0}'):b.c},b):{g:0,c:null,s:Ext.String.escapeRegex(c)}},parseFunctions:{'MS':function(c,d){var a=(c||'').match(f);return a?new b(((a[1]||'')+a[2])*1):null},'time':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a)}return null},'timestamp':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a*1000)}return null}},parseRegexes:[],formatFunctions:{'MS':function(){return '\\/Date('+this.getTime()+')\\/'},'time':function(){return this.getTime().toString()},'timestamp':function(){return a.format(this,'U')}},y2kYear:50,MILLI:'ms',SECOND:'s',MINUTE:'mi',HOUR:'h',DAY:'d',MONTH:'mo',YEAR:'y',defaults:{},dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:'m/d/Y',getShortMonthName:function(b){return a.monthNames[b].substring(0,3)},getShortDayName:function(b){return a.dayNames[b].substring(0,3)},getMonthNumber:function(b){return a.monthNumbers[b.substring(0,1).toUpperCase()+b.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return h.test(a.replace(d,''))},formatContainsDateInfo:function(a){return g.test(a.replace(d,''))},unescapeFormat:function(a){return a.replace(i,'')},formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')",D:'Ext.Date.getShortDayName(m.getDay())',j:'m.getDate()',l:'Ext.Date.dayNames[m.getDay()]',N:'(m.getDay() ? m.getDay() : 7)',S:'Ext.Date.getSuffix(m)',w:'m.getDay()',z:'Ext.Date.getDayOfYear(m)',W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')",F:'Ext.Date.monthNames[m.getMonth()]',m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')",M:'Ext.Date.getShortMonthName(m.getMonth())',n:'(m.getMonth() + 1)',t:'Ext.Date.getDaysInMonth(m)',L:'(Ext.Date.isLeapYear(m) ? 1 : 0)',o:'(m.getFullYear() + (Ext.Date.getWeekOfYear(m) == 1 && m.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(m) >= 52 && m.getMonth() < 11 ? -1 : 0)))',Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')",y:"('' + m.getFullYear()).substring(2, 4)",a:"(m.getHours() < 12 ? 'am' : 'pm')",A:"(m.getHours() < 12 ? 'AM' : 'PM')",g:'((m.getHours() % 12) ? m.getHours() % 12 : 12)',G:'m.getHours()',h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(m.getHours(), 2, '0')",i:"Ext.String.leftPad(m.getMinutes(), 2, '0')",s:"Ext.String.leftPad(m.getSeconds(), 2, '0')",u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')",O:'Ext.Date.getGMTOffset(m)',P:'Ext.Date.getGMTOffset(m, true)',T:'Ext.Date.getTimezone(m)',Z:'(m.getTimezoneOffset() * -60)',c:function(){var e='Y-m-dTH:i:sP',d=[],b,f=e.length,c;for(b=0;b me.y2kYear ? 1900 + ty : 2000 + ty;\n',s:'(\\d{2})'},a:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(am|pm|AM|PM)',calcAtEnd:!0},A:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(AM|PM|am|pm)',calcAtEnd:!0},g:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|[0-9])'},G:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|1[0-9]|[0-9])'},h:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|0[1-9])'},H:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|[0-1][0-9])'},i:{g:1,c:'i = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},s:{g:1,c:'s = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},u:{g:1,c:'ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n',s:'(\\d+)'},O:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),','mn = o.substring(3,5) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{4})'},P:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),','mn = o.substring(4,6) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{2}:\\d{2})'},T:{g:0,c:null,s:'[A-Z]{1,5}'},Z:{g:1,c:'zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n',s:'([+-]?\\d{1,5})'},c:function(){var d=[],b=[a.formatCodeToRegex('Y',1),a.formatCodeToRegex('m',2),a.formatCodeToRegex('d',3),a.formatCodeToRegex('H',4),a.formatCodeToRegex('i',5),a.formatCodeToRegex('s',6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:['if(results[8]) {',"if(results[8] == 'Z'){",'zz = 0;',"}else if (results[8].indexOf(':') > -1){",a.formatCodeToRegex('P',8).c,'}else{',a.formatCodeToRegex('O',8).c,'}','}'].join('\n')}],c,e;for(c=0,e=b.length;c0?'-':'+')+Ext.String.leftPad(Math.floor(Math.abs(a)/60),2,'0')+(b?':':'')+Ext.String.leftPad(Math.abs(a%60),2,'0')},getDayOfYear:function(c){var e=0,b=a.clone(c),f=c.getMonth(),d;for(d=0,b.setDate(1),b.setMonth(0);d28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.MONTH,c)).getDate())};b.setDate(d);b.setMonth(f.getMonth()+c);break;case a.YEAR:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.YEAR,c)).getDate())};b.setDate(d);b.setFullYear(f.getFullYear()+c);break;}}if(g){switch(h.toLowerCase()){case a.MILLI:e=1;break;case a.SECOND:e=1000;break;case a.MINUTE:e=1000*60;break;case a.HOUR:e=1000*60*60;break;case a.DAY:e=1000*60*60*24;break;case a.MONTH:d=a.getDaysInMonth(b);e=1000*60*60*24*d;break;case a.YEAR:d=a.isLeapYear(b)?366:365;e=1000*60*60*24*d;break;}if(e){b.setTime(b.getTime()+e*g)}}return b},subtract:function(d,b,c){return a.add(d,b,-c)},between:function(c,b,d){var a=c.getTime();return b.getTime()<=a&&a<=d.getTime()},compat:function(){var c,g=['useStrict','formatCodeToRegex','parseFunctions','parseRegexes','formatFunctions','y2kYear','MILLI','SECOND','MINUTE','HOUR','DAY','MONTH','YEAR','defaults','dayNames','monthNames','monthNumbers','getShortMonthName','getShortDayName','getMonthNumber','formatCodes','isValid','parseDate','getFormatCode','createFormat','createParser','parseCodes'],h=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],j=g.length,i=h.length,f,e,d;for(d=0;dd){return b-1};return b;case a.YEAR:b=d.getFullYear()-e.getFullYear();if(a.add(e,f,b)>d){return b-1}else {return b};}},align:function(e,f,d){var c=new b(+e);switch(f.toLowerCase()){case a.MILLI:return c;case a.SECOND:c.setUTCSeconds(c.getUTCSeconds()-c.getUTCSeconds()%d);c.setUTCMilliseconds(0);return c;case a.MINUTE:c.setUTCMinutes(c.getUTCMinutes()-c.getUTCMinutes()%d);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.HOUR:c.setUTCHours(c.getUTCHours()-c.getUTCHours()%d);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.DAY:if(d===7||d===14){c.setUTCDate(c.getUTCDate()-c.getUTCDay()+1)};c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.MONTH:c.setUTCMonth(c.getUTCMonth()-(c.getUTCMonth()-1)%d,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.YEAR:c.setUTCFullYear(c.getUTCFullYear()-c.getUTCFullYear()%d,1,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return e;}}}}();Ext.Function=function(){var i=0,f,c=[],l=[],m=0,e={},d=window,b=Ext.global,h=!!(b.setImmediate&&b.clearImmediate),k=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(c){var b=Ext.now(),a=Math.max(0,16-(b-i)),e=d.setTimeout(function(){c(b+a)},a);i=b+a;return e},g=function(){var h=c.length,g,d,a;f=null;for(d=0;d0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},b)}a();return 0},interval:function(a,c,d,e,b){a=Ext.Function.bind(a,d,e,b);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},c)},createSequence:function(a,b,c){if(!b){return a}else {return function(){var d=a.apply(this,arguments);b.apply(c||this,arguments);return d}}},createBuffered:function(b,c,d,e){var a;return function(){var f=e||Array.prototype.slice.call(arguments,0),g=d||this;if(a){clearTimeout(a)}a=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b,g,f)}else {b.apply(g,f)}},c)}},createAnimationFrame:function(f,d,e,c){var b;c=c||3;return function(){var g=e||Array.prototype.slice.call(arguments,0);d=d||this;if(c===3&&b){a.cancelAnimationFrame(b)}if(c&1||!b){b=a.requestAnimationFrame(function(){b=null;f.apply(d,g)})}}},requestAnimationFrame:function(i,d,h){var a=++m,b=Array.prototype.slice.call(arguments,0);b[3]=a;e[a]=1;c.push(b);if(!f){f=k(Ext.elevateFunction?j:g)}return a},cancelAnimationFrame:function(a){delete e[a]},createThrottled:function(h,f,a){var e=0,d,c,b,g=function(){if(Ext.elevateFunction){Ext.elevateFunction(h,a,c)}else {h.apply(a,c)}e=Ext.now();b=null};return function(){if(!a){a=this}d=Ext.now()-e;c=arguments;if(d>=f){clearTimeout(b);g()}else {if(!b){b=Ext.defer(g,f-d)}}}},createBarrier:function(a,c,b){return function(){if(!--a){c.apply(b,arguments)}}},interceptBefore:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){var f=e.apply(d||this,arguments);c.apply(this,arguments);return f}},interceptAfter:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){c.apply(this,arguments);return e.apply(d||this,arguments)}},makeCallback:function(b,a){return function(){return a[b].apply(a,arguments)}},memoize:function(e,c,a){var b={},d=a&&Ext.isFunction(a);return function(g){var f=d?a.apply(c,arguments):g;if(!(f in b)){b[f]=e.apply(c,arguments)}return b[f]}}};Ext.asap=h?function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setImmediate(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}})}:function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}},0,!0)},Ext.asapCancel=h?function(a){clearImmediate(a)}:function(a){clearTimeout(a)};Ext.defer=a.defer;Ext.interval=a.interval;Ext.pass=a.pass;Ext.bind=a.bind;Ext.deferCallback=a.requestAnimationFrame;return a}();Ext.Number=new function(){var b=this,d=(0.9).toFixed()!=='1',c=Math,a={count:!1,inclusive:!1,wrap:!0};Ext.apply(b,{Clip:{DEFAULT:a,COUNT:Ext.applyIf({count:!0},a),INCLUSIVE:Ext.applyIf({inclusive:!0},a),NOWRAP:Ext.applyIf({wrap:!1},a)},clipIndices:function(d,c,f){f=f||a;var h=0,i=f.wrap,g,b,e;c=c||[];for(e=0;e<2;++e){g=b;b=c[e];if(b==null){b=h}else {if(e&&f.count){b+=g;b=b>d?d:b}else {if(i){b=b<0?d+b:b}if(e&&f.inclusive){++b}b=b<0?0:b>d?d:b}}h=d}c[0]=g;c[1]=ba?a:d},snap:function(a,c,e,f){var d;if(a===undefined||a=c){a+=c}else {if(d*2<-c){a-=c}}}}return b.constrain(a,e,f)},snapInRange:function(a,d,c,e){var f;c=c||0;if(a===undefined||a=d){a+=d}}if(e!==undefined){if(a>(e=b.snapInRange(e,d,c))){a=e}}return a},sign:function(a){a=+a;if(a===0||isNaN(a)){return a}return a>0?1:-1},toFixed:d?function(d,a){a=a||0;var b=c.pow(10,a);return (c.round(d*b)/b).toFixed(a)}:function(b,a){return b.toFixed(a)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(a,b){return c.floor(c.random()*(b-a+1)+a)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return b.from.apply(this,arguments)}}();(function(){var b=function(){},d=/^\?/,f=/(\[):?([^\]]*)\]/g,e=/^([^\[]+)/,c=/\+/g,a=Ext.Object={chain:Object.create||function(a){b.prototype=a;var c=new b();b.prototype=null;return c},clear:function(a){for(var b in a){delete a[b]}return a},freeze:Object.freeze?function(b,c){if(b&&typeof b==='object'&&!Object.isFrozen(b)){Object.freeze(b);if(c){for(var d in b){a.freeze(b[d],c)}}}return b}:Ext.identityFn,toQueryObjects:function(e,c,f){var g=a.toQueryObjects,d=[],b,h;if(Ext.isArray(c)){for(b=0,h=c.length;b0){o=q.split('=');a=o[0];a=a.replace(c,'%20');a=decodeURIComponent(a);g=o[1];if(g!==undefined){g=g.replace(c,'%20');g=decodeURIComponent(g)}else {g=''}if(!v){if(i.hasOwnProperty(a)){if(!Ext.isArray(i[a])){i[a]=[i[a]]}i[a].push(g)}else {i[a]=g}}else {m=a.match(f);r=a.match(e);a=r[0];k=[];if(m===null){i[a]=g;continue}for(h=0,l=m.length;h@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(b){var c=b,a;if(b&&b.charAt(0)==='<'){a=Ext._resourcePoolRe.exec(b);if(a){c=Ext.getResourcePath(a[3],a[1],a[2])}}return c},urlEncode:function(){var a=Ext.Array.from(arguments),b='';if(Ext.isString(a[1])){b=a[1]+'&';a[1]=!1}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(d){var b=Ext._scrollbarSize;if(d||!b){var c=document.body,a=document.createElement('div');a.style.width=a.style.height='100px';a.style.overflow='scroll';a.style.position='absolute';c.appendChild(a);Ext._scrollbarSize=b={width:a.offsetWidth-a.clientWidth,height:a.offsetHeight-a.clientHeight};c.removeChild(a)}return b},typeOf:function(){var a=/\S/,d=Object.prototype.toString,c={number:1,string:1,'boolean':1,'undefined':1},b={'[object Array]':'array','[object Date]':'date','[object Boolean]':'boolean','[object Number]':'number','[object RegExp]':'regexp'};return function(e){if(e===null){return 'null'}var f=typeof e,g,h;if(c[f]){return f}g=b[h=d.call(e)];if(g){return g}if(f==='function'){return 'function'}if(f==='object'){if(e.nodeType!==undefined){if(e.nodeType===3){return a.test(e.nodeValue)?'textnode':'whitespace'}else {return 'element'}}return 'object'}return h}}(),factory:function(a,f,b,d){var e=Ext.ClassManager,c;if(!a||a.isInstance){if(b&&b!==a){b.destroy()}return a}if(d){if(typeof a==='string'){return e.instantiateByAlias(d+'.'+a)}else {if(Ext.isObject(a)&&'type' in a){return e.instantiateByAlias(d+'.'+a.type,a)}}}if(a===!0){return b||Ext.create(f)}if('xtype' in a){c=e.instantiateByAlias('widget.'+a.xtype,a)}else {if('xclass' in a){c=Ext.create(a.xclass,a)}}if(c){if(b){b.destroy()}return c}if(b){return b.setConfig(a)}return Ext.create(f,a)},log:function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}()});(function(){var b=[''],c=/([^\d\.])/,f=/[^\d]/g,g=/[\-+]/g,h=/\s/g,e=/_/g,d={classic:1,modern:1},a;Ext.Version=a=function(k,p){var b=this,n=b.padModes,o,m,d,h,j,l,i;if(k.isVersion){k=k.version}b.version=i=String(k).toLowerCase().replace(e,'.').replace(g,'');o=i.charAt(0);if(o in n){i=i.substring(1);d=n[o]}else {d=p?n[p]:0}b.pad=d;l=i.search(c);b.shortVersion=i;if(l!==-1){b.release=j=i.substr(l,k.length);b.shortVersion=i.substr(0,l);j=a.releaseValueMap[j]||j}b.releaseValue=j||d;b.shortVersion=b.shortVersion.replace(f,'');b.parts=h=i.split('.');for(m=h.length;m--;){h[m]=parseInt(h[m],10)}if(d===Infinity){h.push(d)}b.major=h[0]||d;b.minor=h[1]||d;b.patch=h[2]||d;b.build=h[3]||d;return b};a.prototype={isVersion:!0,padModes:{'~':NaN,'^':Infinity},release:'',compareTo:function(f){var g=this,m=g.pad,j=g.parts,h=j.length,e=f.isVersion?f:new a(f),n=e.pad,k=e.parts,i=k.length,l=Math.max(h,i),b,c,d;for(b=0;bd){return 1}}c=g.releaseValue;d=e.releaseValue;if(cd){return 1}return 0},toString:function(){return this.version},valueOf:function(){return this.version},getMajor:function(){return this.major},getMinor:function(){return this.minor},getPatch:function(){return this.patch},getBuild:function(){return this.build},getRelease:function(){return this.release},getReleaseValue:function(){return this.releaseValue},isGreaterThan:function(a){return this.compareTo(a)>0},isGreaterThanOrEqual:function(a){return this.compareTo(a)>=0},isLessThan:function(a){return this.compareTo(a)<0},isLessThanOrEqual:function(a){return this.compareTo(a)<=0},equals:function(a){return this.compareTo(a)===0},match:function(a){a=String(a);return this.version.substr(0,a.length)===a},toArray:function(){var a=this;return [a.getMajor(),a.getMinor(),a.getPatch(),a.getBuild(),a.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(a){return this.compareTo(a)>0},lt:function(a){return this.compareTo(a)<0},gtEq:function(a){return this.compareTo(a)>=0},ltEq:function(a){return this.compareTo(a)<=0}};Ext.apply(a,{aliases:{from:{extjs:'ext',core:'core',touch:'modern'},to:{ext:['extjs'],'core':['core'],modern:['touch']}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,'#':-2,p:-1,pl:-1},getComponentValue:function(a){return !a?0:isNaN(a)?this.releaseValueMap[a]||a:parseInt(a,10)},compare:function(b,c){var d=b.isVersion?b:new a(b);return d.compareTo(c)},set:function(g,f,c){var b=a.aliases.to[f],d=c.isVersion?c:new a(c),e;g[f]=d;if(b){for(e=b.length;e-->0;){g[b[e]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,d;if(!b){d=c.ext||c.touch||c.core}else {d=c[a.aliases.from[b]||b]}return d||Ext.getVersion(b)},setCompatVersion:function(b,c){a.set(Ext.compatVersions,b,c)},setVersion:function(b,c){if(b in d){Ext.toolkit=b}Ext.lastRegisteredVersion=a.set(Ext.versions,b,c);return this},getVersion:function(c){var b=Ext.versions;if(!c){return b.ext||b.touch||b.core}return b[a.aliases.from[c]||c]},checkVersion:function(o,j){var p=Ext.isArray(o),s=a.aliases.from,q=p?o:b,t=q.length,n=Ext.versions,r=n.ext||n.touch,l,c,f,i,g,m,d,e,k;if(!p){b[0]=o}for(l=0;l=0){d=d.replace(h,'')}c=d.indexOf('@');if(c<0){e=d;k=r}else {m=d.substring(0,c);if(!(k=n[s[m]||m])){if(j){return !1}continue}e=d.substring(c+1)}c=e.indexOf('-');if(c<0){if(e.charAt(c=e.length-1)==='+'){i=e.substring(0,c);g=null}else {i=g=e}}else {if(c>0){i=e.substring(0,c);g=e.substring(c+1)}else {i=null;g=e.substring(c+1)}}f=!0;if(i){i=new a(i,'~');f=i.ltEq(k)}if(f&&g){g=new a(g,'~');f=g.gtEq(k)}}if(f){if(!j){return !0}}else {if(j){return !1}}}return !!j},deprecate:function(b,e,c,d){if(a.compare(Ext.getVersion(b),e)<1){c.call(d)}}})})();(function(c){var d=c&&c.packages||{},b=c&&c.compatibility,a,e;for(a in d){e=d[a];Ext.setVersion(a,e.version)}if(b){if(Ext.isString(b)){Ext.setCompatVersion('core',b)}else {for(a in b){Ext.setCompatVersion(a,b[a])}}}if(!d.ext&&!d.touch){Ext.setVersion('ext','6.0.1.250');Ext.setVersion('core','6.0.1.250')}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:'_'+b,initializing:'is'+a+'Initializing',apply:'apply'+a,update:'update'+a,get:'get'+a,set:'set'+a,initGet:'initGet'+a,changeEvent:b.toLowerCase()+'change'};c.root=c};Ext.Config.map={};Ext.Config.get=function(a){var b=Ext.Config.map,c=b[a]||(b[a]=new Ext.Config(a));return c};Ext.Config.prototype={self:Ext.Config,isConfig:!0,getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(b,d,f,e){var a,c;if(!d){a=b}else {if(!b){a=d}else {a=Ext.Object.chain(d);for(c in b){if(!e||!(c in a)){a[c]=b[c]}}}}return a},mergeSets:function(a,f,e){var b=f?Ext.Object.chain(f):{},c,d;if(a instanceof Array){for(c=a.length;c--;){d=a[c];if(!e||!(d in b)){b[d]=!0}}}else {if(a){if(a.constructor===Object){for(c in a){d=a[c];if(!e||!(c in b)){b[c]=d}}}else {if(!e||!(a in b)){b[a]=!0}}}}return b},makeGetter:function(){var b=this.name,a=this.names.internal;return function(){var c=this.$configPrefixed?a:b;return this[c]}},makeInitGetter:function(){var e=this.name,a=this.names,d=a.set,c=a.get,b=a.initializing;return function(){var a=this;a[b]=!0;delete a[c];a[d](a.config[e]);delete a[b];return a[c].apply(a,arguments)}},makeSetter:function(){var g=this.name,a=this.names,e=a.internal,f=a.get,d=a.apply,c=a.update,b;b=function(b){var a=this,h=a.$configPrefixed?e:g,i=a[h];delete a[f];if(!a[d]||(b=a[d](b,i))!==undefined){if(b!==(i=a[h])){a[h]=b;if(a[c]){a[c](b,i)}}}return a};b.$isDefault=!0;return b},makeEventedSetter:function(){var i=this.name,a=this.names,f=a.internal,h=a.get,d=a.apply,b=a.update,e=a.changeEvent,g=function(a,c,e,d){a[d]=c;if(a[b]){a[b](c,e)}},c;c=function(c){var a=this,k=a.$configPrefixed?f:i,j=a[k];delete a[h];if(!a[d]||(c=a[d](c,j))!==undefined){if(c!==(j=a[k])){if(a.isConfiguring){a[k]=c;if(a[b]){a[b](c,j)}}else {a.fireEventedAction(e,[a,c,j],g,a,[a,c,j,k])}}}return a};c.$isDefault=!0;return c}};(function(){var c=Ext.Config,b=c.map,a=Ext.Object;Ext.Configurator=function(d){var b=this,e=d.prototype,c=d.superclass?d.superclass.self.$config:null;b.cls=d;b.superCfg=c;if(c){b.configs=a.chain(c.configs);b.cachedConfigs=a.chain(c.cachedConfigs);b.initMap=a.chain(c.initMap);b.values=a.chain(c.values);b.needsFork=c.needsFork}else {b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}e.config=e.defaultConfig=b.values;d.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:!1,initList:null,add:function(t,l){var i=this,n=i.cls,k=i.configs,v=i.cachedConfigs,p=i.initMap,g=n.prototype,r=l&&l.$config.configs,u=i.values,m,f,s,h,b,j,e,q,o,d;for(e in t){d=t[e];m=d&&d.constructor===Object;f=m&&'$value' in d?d:null;if(f){s=!!f.cached;d=f.$value;m=d&&d.constructor===Object}h=f&&f.merge;b=k[e];if(b){if(l){h=b.merge;if(!h){continue}f=null}else {h=h||b.merge}j=u[e];if(h){d=h.call(b,d,j,n,l)}else {if(m){if(j&&j.constructor===Object){d=a.merge({},j,d)}}}}else {if(r){b=r[e];f=null}else {b=c.get(e)}k[e]=b;if(b.cached||s){v[e]=!0}q=b.names;if(!g[o=q.get]){g[o]=b.getter||b.getGetter()}if(!g[o=q.set]){g[o]=f&&f.evented?b.eventedSetter||b.getEventedSetter():b.setter||b.getSetter()}}if(f){if(b.owner!==n){k[e]=b=Ext.Object.chain(b);b.owner=n}Ext.apply(b,f);delete b.$value}if(!i.needsFork&&d&&(d.constructor===Object||d instanceof Array)){i.needsFork=!0}if(d!==null){p[e]=!0}else {if(g.$configPrefixed){g[k[e].names.internal]=null}else {g[k[e].name]=null}if(e in p){p[e]=!1}}u[e]=d}},configure:function(c,h){var k=this,u=k.configs,x=k.initMap,q=k.initListMap,o=k.initList,j=k.cls.prototype,i=k.values,r=0,v=!o,n,b,m,w,d,p,l,f,e,g,t,s,y;i=k.needsFork?a.fork(i):a.chain(i);c.isConfiguring=!0;if(v){k.initList=o=[];k.initListMap=q={};c.isFirstInstance=!0;for(e in x){w=x[e];b=u[e];t=b.cached;if(w){f=b.names;g=i[e];if(!j[f.set].$isDefault||j[f.apply]||j[f.update]||typeof g==='object'){if(t){(n||(n=[])).push(b)}else {o.push(b);q[e]=!0}c[f.get]=b.initGetter||b.getInitGetter()}else {j[b.getInternalName(j)]=g}}else {if(t){j[b.getInternalName(j)]=undefined}}}}l=n&&n.length;if(l){for(d=0;d0){for(a=0;ac.maxSize){c.unlinkEntry(f.prev,!0);--c.count}}return d.value},evict:Ext.emptyFn,linkEntry:function(c){var d=this.head,e=d.next;c.next=e;c.prev=d;d.next=c;e.prev=c},unlinkEntry:function(c,f){var d=c.next,e=c.prev;e.next=d;d.prev=e;if(f){this.evict(c.key,c.value)}}};a.destroy=a.clear})();(function(){var a,d=Ext.Base,b=d.$staticMembers,c=function(a,b){return a.length-b.length||(ab?1:0)};function makeCtor(a){function constructor(){return this.constructor.apply(this,arguments)||null}return constructor}Ext.Class=a=function(b,c,d){if(typeof b!='function'){d=c;c=b;b=null}if(!c){c={}}b=a.create(b,c);a.process(b,c,d);return b};Ext.apply(a,{makeCtor:makeCtor,onBeforeCreated:function(a,c,b){a.addMembers(c);b.onCreated.call(a,a)},create:function(a,f){var e=b.length,c;if(!a){a=makeCtor()}while(e--){c=b[e];a[c]=d[c]}return a},process:function(l,f,k){var j=f.preprocessors||a.defaultPreprocessors,o=this.preprocessors,e={onBeforeCreated:this.onBeforeCreated},d=[],b,c,g,n,h,m,i;delete f.preprocessors;l._classHooks=e;for(g=0,n=j.length;g0){b=h.test(c[d])}c=o[a];if(c&&!b){d=c.length;while(!b&&d-->0){b=h.test(c[d])}}}if(b){i[a]=1;l.push(a)}}}}}return l},getPath:function(a){var e=this,d=e.paths,b='',c;if(a in d){b=d[a]}else {c=e.getPrefix(a);if(c){a=a.substring(c.length+1);b=d[c];if(b){b+='/'}}b+=a.replace(e.dotRe,'/')+'.js'}return b},getPrefix:function(a){if(a in this.paths){return a}var d=this.getPrefixes(),e=d.length,b,c;while(e-->0){b=(c=d[e]).length;if(b0){b=i[d];f=c;c=b.value||c[b.name];if(!c&&h){f[b.name]=c={}}}return c},setNamespace:function(f,d){var b=a.getNamespaceEntry(f),c=Ext.global;if(b.parent){c=a.lookupName(b.parent,!0)}c[b.name]=d;return d},setXType:function(i,d){var f=i.$className,k=f?i:a.get(f=i),b=k.prototype,j=b.xtypes,c=b.xtypesChain,h=b.xtypesMap;if(!b.hasOwnProperty('xtypes')){b.xtypes=j=[];b.xtypesChain=c=c?c.slice(0):[];b.xtypesMap=h=Ext.apply({},h)}a.addAlias(f,'widget.'+d,!0);j.push(d);c.push(d);h[d]=!0},set:function(b,d){var c=a.getName(d);a.classes[b]=a.setNamespace(b,d);if(c&&c!==b){a.addAlternate(c,b)}return a},get:function(b){return a.classes[b]||a.lookupName(b,!1)},addNameAliasMappings:function(b){a.addAlias(b)},addNameAlternateMappings:function(b){a.addAlternate(b)},getByAlias:function(b){return a.get(a.getNameByAlias(b))},getByConfig:function(c,d){var f=c.xclass,b;if(f){b=f}else {b=c.xtype;if(b){d='widget.'}else {b=c.type}b=a.getNameByAlias(d+b)}return a.get(b)},getName:function(a){return a&&a.$className||''},getClass:function(a){return a&&a.self||null},create:function(c,b,f){var d=q(c);if(typeof b==='function'){b=b(d)}b.$className=c;return new n(d,b,function(){var m=b.postprocessors||a.defaultPostprocessors,s=a.postprocessors,i=[],d,j,q,k,p,h,l;delete b.postprocessors;for(j=0,q=m.length;j0;){c=a.lookupName(arguments[b],!0)}return c}});Ext.addRootNamespaces=a.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;n.registerPreprocessor('className',function(b,a){if('$className' in a){b.$className=a.$className}},!0,'first');n.registerPreprocessor('alias',function(q,d){var l=q.prototype,c=g(d.xtype),i=g(d.alias),j='widget.',p=j.length,k=Array.prototype.slice.call(l.xtypesChain||[]),h=Ext.merge({},l.xtypesMap||{}),a,f,m,b;for(a=0,f=i.length;a=d){Ext[o+'p']=!0}}}if(n.is.Opera&&parseInt(a,10)<=12){Ext.isOpera12m=!0}Ext.chromeVersion=Ext.isChrome?a:0;Ext.firefoxVersion=Ext.isFirefox?a:0;Ext.ieVersion=Ext.isIE?a:0;Ext.operaVersion=Ext.isOpera?a:0;Ext.safariVersion=Ext.isSafari?a:0;Ext.webKitVersion=Ext.isWebKit?a:0;this.setFlag(c+a,!0,r);this.setFlag(c+f.getShortVersion())}for(d in j){if(j.hasOwnProperty(d)){h=j[d];this.setFlag(h,c===h)}}this.setFlag(h);if(l){this.setFlag(g+(l.getMajor()||''));this.setFlag(g+l.getShortVersion())}for(d in k){if(k.hasOwnProperty(d)){h=k[d];this.setFlag(h,g===h,r)}}this.setFlag('Standalone',!!navigator.standalone);this.setFlag('Ripple',!!document.getElementById('tinyhippos-injected')&&!Ext.isEmpty(window.top.ripple));this.setFlag('WebWorks',!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){q=!0;this.setFlag('PhoneGap');this.setFlag('Cordova')}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(e)){q=!0}this.setFlag('WebView',q);this.isStrict=Ext.isStrict=document.compatMode==='CSS1Compat';this.isSecure=Ext.isSecure;this.identity=c+a+(this.isStrict?'Strict':'Quirks')};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{webkit:'WebKit',gecko:'Gecko',presto:'Presto',trident:'Trident',other:'Other'},enginePrefixes:{webkit:'AppleWebKit/',gecko:'Gecko/',presto:'Presto/',trident:'Trident/'},styleDashPrefixes:{WebKit:'-webkit-',Gecko:'-moz-',Trident:'-ms-',Presto:'-o-',Other:''},stylePrefixes:{WebKit:'Webkit',Gecko:'Moz',Trident:'ms',Presto:'O',Other:''},propertyPrefixes:{WebKit:'webkit',Gecko:'moz',Trident:'ms',Presto:'o',Other:''},is:function(a){return !!this.is[a]},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(b,a,c){if(a===undefined){a=!0}this.is[b]=a;this.is[b.toLowerCase()]=a;if(c){Ext['is'+b]=a}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(b){var a=this.propertyPrefixes[this.engineName];if(a.length>0){return a+Ext.String.capitalize(b)}return b},getPreferredTranslationMethod:function(a){if(typeof a==='object'&&'translationMethod' in a&&a.translationMethod!=='auto'){return a.translationMethod}else {return 'csstransform'}}};(function(a){Ext.browser=new Ext.env.Browser(a,!0);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":'about:blank'})(Ext.global.navigator.userAgent);Ext.env.OS=function(j,k,b){var n=this,g=Ext.Boot.osNames,h=Ext.Boot.osPrefixes,a,c='',m=n.is,d,l,f,i,e;b=b||Ext.browser;for(d in h){if(h.hasOwnProperty(d)){l=h[d];f=j.match(new RegExp('(?:'+l+')([^\\s;]+)'));if(f){a=g[d];e=f[1];if(e&&e==='HTC_'){c=new Ext.Version('2.3')}else {if(e&&e==='Silk/'){c=new Ext.Version('2.3')}else {c=new Ext.Version(f[f.length-1])}}break}}}if(!a){a=g[(j.toLowerCase().match(/mac|win|linux/)||['other'])[0]];c=new Ext.Version('')}this.name=a;this.version=c;if(k){this.setFlag(k.replace(/ simulator$/i,''))}this.setFlag(a);if(c){this.setFlag(a+(c.getMajor()||''));this.setFlag(a+c.getShortVersion())}for(d in g){if(g.hasOwnProperty(d)){i=g[d];if(!m.hasOwnProperty(a)){this.setFlag(i,a===i)}}}if(this.name==='iOS'&&window.screen.height===568){this.setFlag('iPhone5')}if(b.is.Safari||b.is.Silk){if(this.is.Android2||this.is.Android3||b.version.shortVersion===501){b.setFlag('AndroidStock')}if(this.is.Android4){b.setFlag('AndroidStock');b.setFlag('AndroidStock4')}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(b,a){if(a===undefined){a=!0}if(this.flags){this.flags[b]=a}this.is[b]=a;this.is[b.toLowerCase()]=a;return this}};(function(){var h=Ext.global.navigator,i=h.userAgent,e=Ext.env.OS,f=Ext.is||(Ext.is={}),a,c,b;e.prototype.flags=f;Ext.os=a=new e(i,h.platform);c=a.name;Ext['is'+c]=!0;Ext.isMac=f.Mac=f.MacOS;var d=window.location.search.match(/deviceType=(Tablet|Phone)/),g=window.deviceType;if(d&&d[1]){b=d[1]}else {if(g==='iPhone'){b='Phone'}else {if(g==='iPad'){b='Tablet'}else {if(!a.is.Android&&!a.is.iOS&&!a.is.WindowsPhone&&/Windows|Linux|MacOS/.test(c)){b='Desktop';Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else {if(a.is.iPad||a.is.RIMTablet||a.is.Android3||Ext.browser.is.Silk||a.is.Android&&i.search(/mobile/i)===-1){b='Tablet'}else {b='Phone'}}}}}a.setFlag(b,!0);a.deviceType=b;delete e.prototype.flags})();Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a='div'}else {if(typeof a!=='string'){return a}}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(a,d){var b=this.getTestElement(d).style,c=Ext.String.capitalize(a);if(typeof b[a]!=='undefined'||typeof b[Ext.browser.getStylePrefix(a)+c]!=='undefined'){return !0}return !1},isStyleSupportedWithoutPrefix:function(b,c){var a=this.getTestElement(c).style;if(typeof a[b]!=='undefined'){return !0}return !1},isEventSupported:function(e,d){if(d===undefined){d=window}var a=this.getTestElement(d),b='on'+e.toLowerCase(),c=b in a;if(!c){if(a.setAttribute&&a.removeAttribute){a.setAttribute(b,'');c=typeof a[b]==='function';if(typeof a[b]!=='undefined'){a[b]=undefined}a.removeAttribute(b)}}return c},getStyle:function(a,c){var b=a.ownerDocument.defaultView,d=b?b.getComputedStyle(a,null):a.currentStyle;return (d||a.style)[c]},getSupportedPropertyName:function(c,a){var b=Ext.browser.getVendorProperyName(a);if(b in c){return b}else {if(a in c){return a}}return null},detect:function(h){var c=this,g=document,m=c.toRun||c.tests,i=m.length,f=g.createElement('div'),k=[],j=Ext.supports,n=c.has,a,e,b,l,d;f.innerHTML='
    ';if(h){g.body.appendChild(f)}l=c.preDetected[Ext.browser.identity]||[];while(i--){b=m[i];d=l[i];a=b.name;e=b.names;if(d===undefined){if(!h&&b.ready){k.push(b);continue}d=b.fn.call(c,g,f)}if(a){j[a]=n[a]=d}else {if(e){while(e.length){a=e.pop();j[a]=n[a]=d}}}}if(h){g.body.removeChild(f)}c.toRun=k},report:function(){var b=[],c=this.tests.length,a;for(a=0;a
    ';b=a.childNodes.length===1;a.innerHTML='';return b}},{name:'touchScroll',fn:function(){var a=0;if(Ext.os.is.Desktop&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)){a=1}else {if(Ext.supports.Touch){a=2}}return a}},{name:'Touch',fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return Ext.supports.TouchEvents&&a!==1||a>1}else {return Ext.supports.TouchEvents||a>0}}},{name:'TouchEvents',fn:function(){return this.isEventSupported('touchend')}},{name:'PointerEvents',fn:function(){return navigator.pointerEnabled}},{name:'MSPointerEvents',fn:function(){return navigator.msPointerEnabled}},{name:'Orientation',fn:function(){return 'orientation' in window&&this.isEventSupported('orientationchange')}},{name:'OrientationChange',fn:function(){return this.isEventSupported('orientationchange')}},{name:'DeviceMotion',fn:function(){return this.isEventSupported('devicemotion')}},{names:['Geolocation','GeoLocation'],fn:function(){return 'geolocation' in window.navigator}},{name:'SqlDatabase',fn:function(){return 'openDatabase' in window}},{name:'WebSockets',fn:function(){return 'WebSocket' in window}},{name:'Range',fn:function(){return !!document.createRange}},{name:'CreateContextualFragment',fn:function(){var a=!!document.createRange?document.createRange():!1;return a&&!!a.createContextualFragment}},{name:'History',fn:function(){return 'history' in window&&'pushState' in window.history}},{name:'Css3dTransforms',fn:function(){return this.has('CssTransforms')&&this.isStyleSupported('perspective')}},{name:'CssTransforms',fn:function(){return this.isStyleSupported('transform')}},{name:'CssTransformNoPrefix',fn:function(){return this.isStyleSupportedWithoutPrefix('transform')}},{name:'CssAnimations',fn:function(){return this.isStyleSupported('animationName')}},{names:['CssTransitions','Transitions'],fn:function(){return this.isStyleSupported('transitionProperty')}},{names:['Audio','AudioTag'],fn:function(){return !!this.getTestElement('audio').canPlayType}},{name:'Video',fn:function(){return !!this.getTestElement('video').canPlayType}},{name:'LocalStorage',fn:function(){try{if('localStorage' in window&&window['localStorage']!==null){localStorage.setItem('sencha-localstorage-test','test success');localStorage.removeItem('sencha-localstorage-test');return !0}}catch(b){}return !1}},{name:'XHR2',fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&'withCredentials' in new XMLHttpRequest()}},{name:'XHRUploadProgress',fn:function(){if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){var a=new XMLHttpRequest();return a&&'upload' in a&&'onprogress' in a.upload}return !1}},{name:'NumericInputPlaceHolder',fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:'matchesSelector',fn:function(){var a=document.documentElement,d='matches',e='webkitMatchesSelector',b='msMatchesSelector',c='mozMatchesSelector';return a[d]?d:a[e]?e:a[b]?b:a[c]?c:null}},{name:'RightMargin',ready:!0,fn:function(c,b){var a=c.defaultView;return !(a&&a.getComputedStyle(b.firstChild.firstChild,null).marginRight!=='0px')}},{name:'DisplayChangeInputSelectionBug',fn:function(){var a=Ext.webKitVersion;return 0a';b=a.firstChild;a.innerHTML='
    b
    ';return b.innerHTML!=='a'}},{name:'IncludePaddingInWidthCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetWidth===210}},{name:'IncludePaddingInHeightCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetHeight===210}},{name:'TextAreaMaxLength',fn:function(a){return 'maxlength' in a.createElement('textarea')}},{name:'GetPositionPercentage',ready:!0,fn:function(b,a){return Ext.feature.getStyle(a.childNodes[2],'left')==='10%'}},{name:'PercentageHeightOverflowBug',ready:!0,fn:function(d){var c=!1,b,a;if(Ext.getScrollbarSize().height){a=this.getTestElement();b=a.style;b.height='50px';b.width='50px';b.overflow='auto';b.position='absolute';a.innerHTML=['
    ','
    ','
    '].join('');d.body.appendChild(a);if(a.firstChild.offsetHeight===50){c=!0}d.body.removeChild(a)}return c}},{name:'xOriginBug',ready:!0,fn:function(e,b){b.innerHTML='
    ';var a=document.getElementById('b1').getBoundingClientRect(),c=document.getElementById('b2').getBoundingClientRect(),d=document.getElementById('b3').getBoundingClientRect();return c.left!==a.left&&d.right!==a.right}},{name:'ScrollWidthInlinePaddingBug',ready:!0,fn:function(c){var d=!1,a,b;b=c.createElement('div');a=b.style;a.height='50px';a.width='50px';a.padding='10px';a.overflow='hidden';a.position='absolute';b.innerHTML='';c.body.appendChild(b);if(b.scrollWidth===70){d=!0}c.body.removeChild(b);return d}},{name:'rtlVertScrollbarOnRight',ready:!0,fn:function(d,c){c.innerHTML='
    ';var a=c.firstChild,b=a.firstChild;return b.offsetLeft+b.offsetWidth!==a.offsetLeft+a.offsetWidth}},{name:'rtlVertScrollbarOverflowBug',ready:!0,fn:function(c,b){b.innerHTML='
    ';var a=b.firstChild;return a.clientHeight===a.offsetHeight}},{identity:'defineProperty',fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return !1}return !0}},{identify:'nativeXhr',fn:function(){if(typeof XMLHttpRequest!=='undefined'){return !0}XMLHttpRequest=function(){try{return new ActiveXObject('MSXML2.XMLHTTP.3.0')}catch(b){return null}};return !1}},{name:'SpecialKeyDownRepeat',fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(Ext.isGecko&&!Ext.isWindows||Ext.isOpera&&Ext.operaVersion<12)}},{name:'EmulatedMouseOver',fn:function(){return Ext.os.is.iOS}},{name:'Hashchange',fn:function(){var a=document.documentMode;return 'onhashchange' in window&&(a===undefined||a>7)}},{name:'FixedTableWidthBug',ready:!0,fn:function(){if(Ext.isIE8){return !1}var a=document.createElement('div'),b=document.createElement('div'),c;a.setAttribute('style','display:table;table-layout:fixed;');b.setAttribute('style','display:table-cell;min-width:50px;');a.appendChild(b);document.body.appendChild(a);a.offsetWidth;a.style.width='25px';c=a.offsetWidth;document.body.removeChild(a);return c===50}},{name:'FocusinFocusoutEvents',fn:function(){return !Ext.isGecko}},{name:'AsyncFocusEvents',fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:'accessibility',ready:!0,fn:function(f){var g=f.body,b,c,a,e,d;function getColor(a){var c=[],e=0,g,b;if(a.indexOf('rgb(')!==-1){c=a.replace('rgb(','').replace(')','').split(', ')}else {if(a.indexOf('#')!==-1){g=a.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;b=a.match(g);if(b){c=['0x'+b[1],'0x'+b[2],'0x'+b[3]]}}}for(var d=0;d0};Ext.supports.HighContrastMode=!e.BackgroundImages;g.removeChild(b);b=c=null;return e}},0]};Ext.feature.tests.pop();Ext.supports={};Ext.feature.detect();Ext.env.Ready={blocks:(location.search||'').indexOf('ext-pauseReadyFire')>0?1:0,bound:0,delay:1,firing:!1,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==='complete'){a.onReadyEvent({type:b.readyState||'body'})}else {a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener('deviceready',a.onReadyEvent,!1)}b.addEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.addEventListener('load',a.onReadyEvent,!1)}}},block:function(){++this.blocks;Ext.isReady=!1},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=!0;a.state=1;Ext.feature.detect(!0);if(!a.delay){a.handleReady()}else {if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else {a.handleReadySoon()}}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(b){var a=this;if(!a.timer){a.timer=Ext.defer(function(){a.timer=null;a.handleReady()},b||a.delay)}},invoke:function(a){var b=a.delay;if(b){Ext.defer(a.fn,b,a.scope)}else {if(Ext.elevateFunction){Ext.elevateFunction(a.fn,a.scope)}else {a.fn.call(a.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else {this.doInvokeAll()}},doInvokeAll:function(){var a=this,b=a.listeners,c;if(!a.blocks){Ext.isReady=!0}a.firing=!0;while(b.length){if(a.sortGeneration!==a.generation){a.sortGeneration=a.generation;b.sort(a.sortFn)}c=b.pop();if(a.blocks&&!c.dom){b.push(c);break}a.invoke(c)}a.firing=!1},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:!1,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(e,d,c){var a=Ext.env.Ready,b=a.makeListener(e,d,c);if(a.state===2&&!a.firing&&(b.dom||!a.blocks)){a.invoke(b)}else {a.listeners.push(b);++a.generation;if(!a.bound){a.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else {a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(a,b){return -(a.phase-b.phase||b.priority-a.priority||a.id-b.id)},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener('deviceready',a.onReadyEvent,!1)}b.removeEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.removeEventListener('load',a.onReadyEvent,!1)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=!0;try{document.documentElement.doScroll('left')}catch(c){b=!1}if(b&&document.body){a.onReadyEvent({type:'doScroll'})}else {a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){if(a.bound){return}var b=document,c;try{c=window.frameElement===undefined}catch(d){}if(!c||!b.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else {if(a.pollScroll()){return}}if(b.readyState==='complete'){a.onReadyEvent({type:'already '+(b.readyState||'body')})}else {b.attachEvent('onreadystatechange',a.onReadyStateChange);window.attachEvent('onload',a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent('onreadystatechange',a.onReadyStateChange);window.detachEvent('onload',a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){clearTimeout(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:!0};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()})();Ext.Loader=new function(){var a=this,b=Ext.ClassManager,i=Ext.Boot,o=Ext.Class,c=Ext.env.Ready,k=Ext.Function.alias,h=['extend','mixins','requires'],j={},m=[],f=[],g=[],l={},d={},e={enabled:!0,scriptChainDelay:!1,disableCaching:!0,disableCachingParam:'_dc',paths:b.paths,preserveScripts:!0,scriptCharset:undefined},n={disableCaching:!0,disableCachingParam:!0,preserveScripts:!0,scriptChainDelay:'loadDelay'};Ext.apply(a,{isInHistory:j,isLoading:!1,history:m,config:e,readyListeners:f,optionalRequires:g,requiresMap:l,hasFileLoadError:!1,scriptsLoading:0,syncModeEnabled:!1,missingQueue:d,init:function(){var k=document.getElementsByTagName('script'),m=k[k.length-1].src,n=m.substring(0,m.lastIndexOf('/')+1),l=Ext._classPathMetadata,h=Ext.Microloader,g=Ext.manifest,d,i,j,e,f;if(!b.getPath('Ext')){b.setPath('Ext',n+'src')}if(l){Ext._classPathMetadata=null;a.addClassPathMappings(l)}if(g){d=g.loadOrder;i=Ext.Boot.baseUrl;if(d&&g.bootRelative){for(j=d.length,e=0;e1?'es':'')+': '+g.join(', '))}if(l.length){a.loadScripts({url:l,_classNames:g})}else {a.checkReady()}}else {if(c){c.call(k)}a.checkReady()}if(a.syncModeEnabled){if(m===1){return b.get(h[0])}}return a},makeLoadCallback:function(a,c){return function(){var e=[],d=a.length;while(d-->0){e[d]=b.get(a[d])}return c.apply(this,e)}},onLoadFailure:function(){var b=this,c=b.onError;a.hasFileLoadError=!0;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onLoadSuccess:function(){var b=this,c=b.onLoad;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onReady:function(g,e,h,d){if(h){c.on(g,e,d)}else {var b=c.makeListener(g,e,d);if(a.isLoading){f.push(b)}else {c.invoke(b)}}},addUsedClasses:function(b){var c,d,e;if(b){b=typeof b==='string'?[b]:b;for(d=0,e=b.length;d0){a.loadScripts({url:b,sequential:!0})}}}if(h.uses){b=h.uses;a.addUsedClasses(b)}});b.onCreated(a.historyPush);a.init()}();Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}Ext.cmd.derive('Ext.Mixin',Ext.Base,function(a){return {statics:{addHook:function(e,c,d,h){var g=Ext.isFunction(e),b=function(){var b=arguments,i=g?e:h[e],f=this.callParent(b);i.apply(this,b);return f},f=c.hasOwnProperty(d)&&c[d];if(g){e.$previous=Ext.emptyFn}b.$name=d;b.$owner=c.self;if(f){b.$previous=f.$previous;f.$previous=b}else {c[d]=b}}},onClassExtended:function(k,c){var b=c.mixinConfig,d=c.xhooks,j=k.superclass,i=c.onClassMixedIn,h,f,g,e;if(d){delete c.xhooks;(b||(c.mixinConfig=b={})).on=d}if(b){h=j.mixinConfig;if(h){c.mixinConfig=b=Ext.merge({},h,b)}c.mixinId=b.id;f=b.before;g=b.after;d=b.on;e=b.extended}if(f||g||d||e){c.onClassMixedIn=function(b){var h=this.prototype,l=b.prototype,j;if(f){Ext.Object.each(f,function(e,d){b.addMember(e,function(){if(h[d].apply(this,arguments)!==!1){return this.callParent(arguments)}})})}if(g){Ext.Object.each(g,function(e,d){b.addMember(e,function(){var f=this.callParent(arguments);h[d].apply(this,arguments);return f})})}if(d){for(j in d){a.addHook(d[j],l,j,h)}}if(e){b.onExtended(function(){var d=Ext.Array.slice(arguments,0);d.unshift(b);return e.apply(this,d)},this)}if(i){i.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,'Mixin'],0);Ext.util=Ext.util||{};Ext.util.DelayedTask=function(e,c,d,b,g){var a=this,f,h=function(){var f=Ext.GlobalEvents;clearInterval(a.id);a.id=null;e.apply(c,d||[]);if(g!==!1&&f.hasListeners.idle){f.fireEvent('idle')}};b=typeof b==='boolean'?b:!0;a.id=null;a.delay=function(i,l,j,k){if(b){a.cancel()}if(typeof i==='number'){f=i}e=l||e;c=j||c;d=k||d;if(!a.id){a.id=Ext.interval(h,f)}};a.cancel=function(){if(a.id){clearInterval(a.id);a.id=null}}};Ext.cmd.derive('Ext.util.Event',Ext.Base,function(){var d=Array.prototype.slice,c=Ext.Array.insert,b=Ext.Array.toArray,a={};return {isEvent:!0,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(r,q,g,t,s){var a=this,p=!1,l=a.observable,o=a.name,d,m,i,h,f,k,j,b,e,n;if(a.findListener(r,q)===-1){m=a.createListener(r,q,g,t,s);if(a.firing){a.listeners=a.listeners.slice(0)}d=a.listeners;b=j=d.length;i=g&&g.priority;f=a._highestNegativePriorityIndex;k=f!==undefined;if(i){h=i<0;if(!h||k){for(e=h?f:0;e0},fireDelegated:function(a,b){this.firingObservable=a;return this.fire.apply(this,b)},fire:function(){var e=this,r=e.listeners,t=r.length,n=e.observable,i=n.isElement,w=n.isComponent,v=e.firingObservable,b,o,f,k,c,j,u,h,l,p,g,m,a,s,q;if(!e.suspended&&t>0){e.firing=!0;c=arguments.length?d.call(arguments,0):[];u=c.length;if(i){a=c[0]}for(k=0;k4?b:e;b=e;for(e in b){if(b.hasOwnProperty(e)){g=b[e];if(!h.$eventOptions[e]){f.addManagedListener(h,e,g.fn||g,g.scope||b.scope||i,g.fn?g:k,!0)}}}if(b&&b.destroyable){return new a(f,h,b)}}else {if(j!==d){h.doAddListener(e,j,i,b,null,f,f);if(!l&&b&&b.destroyable){return new a(f,h,e,j,i)}}}},removeManagedListener:function(h,a,k,j){var e=this,b,d,g,i,f;if(typeof a!=='string'){b=a;for(a in b){if(b.hasOwnProperty(a)){d=b[a];if(!h.$eventOptions[a]){e.removeManagedListener(h,a,d.fn||d,d.scope||b.scope||j)}}}}else {g=e.managedListeners?e.managedListeners.slice():[];a=Ext.canonicalEventName(a);for(f=0,i=g.length;f0,d=this.events;if(!b&&a&&d){a=d[a];if(a&&a.isEvent){return a.isSuspended()}}return b},suspendEvents:function(a){++this.eventsSuspended;if(a&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var e=this,f=e.events,g=arguments.length,d,b,a;for(d=0;d0){i.push(g)}d--;if(d===0){f.resolve(i)}return g};m=function(d){h--;if(h===0){f.reject(new Error('Too few Promises were resolved.'))}return d};for(g=j=0,n=e.length;j0){b.type=a.substring(0,e);b.defaultType=a.substring(e+1)}if(f){delete d.factoryConfig;Ext.apply(b,f)}g=Ext.Factory.define(b.type,b);if(c.create===Ext.Base.create){c.create=g}}},0,0,0,0,0,0,[Ext.mixin,'Factoryable'],0);Ext.cmd.derive('Ext.data.request.Base',Ext.Base,{factoryConfig:{type:'request',defaultType:'ajax'},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=!0}a.abort=Ext.emptyFn},createDeferred:function(){return this.deferred=new Ext.Deferred()},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var a=this,b=a.deferred,c=a.result;a.clearTimer();if(b){if(a.success){b.resolve(c)}else {b.reject(c)}}},onTimeout:function(){var a=this;a.timedout=!0;a.timer=null;a.abort(!0)},getTimeout:function(){return this.timeout},clearTimer:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var a=this,b;b={request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?'transaction aborted':'communication failure',getResponseHeader:a._getHeader,getAllResponseHeaders:a._getHeaders};if(a.aborted){b.aborted=!0}if(a.timedout){b.timedout=!0}return b},_getHeader:function(b){var a=this.headers;return a&&a[b.toLowerCase()]},_getHeaders:function(){return this.headers}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.request,'Base'],0);Ext.cmd.derive('Ext.data.flash.BinaryXhr',Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=!0;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById('ext-flash-polyfill');Ext.GlobalEvents.fireEvent('flashready')},flashPluginActive:!1,flashPluginInjected:!1,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(b,c,d){var a;a=this.liveConnections[Number(b)];if(a){a.onFlashStateChange(c,d)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var c=this,b,a;c.flashPolyfillEl=Ext.getBody().appendChild({id:'ext-flash-polyfill',cn:[{tag:'p',html:'To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed.'},{tag:'a',href:'http://www.adobe.com/go/getflashplayer',cn:[{tag:'img',src:window.location.protocol+'//www.adobe.com/images/shared/download_buttons/get_flash_player.gif',alt:'Get Adobe Flash player'}]}]});b=[Ext.Loader.getPath('Ext.data.Connection'),'../../../plugins/flash/swfobject.js'].join('/');a='/plugins/flash/FlashPlugin.swf';if(Ext.flashPluginPath){a=Ext.flashPluginPath}Ext.Loader.loadScript({url:b,onLoad:function(){var d='11.4.0';var e='playerProductInstall.swf';var f={};var b={};b.quality='high';b.bgcolor='#ffffff';b.allowscriptaccess='sameDomain';b.allowfullscreen='true';var c={};c.id='ext-flash-polyfill';c.name='polyfill';c.align='middle';swfobject.embedSWF(a,'ext-flash-polyfill','0','0',d,e,f,b,c)},onError:function(){},scope:c});Ext.data.flash.BinaryXhr.flashPluginInjected=!0}},readyState:0,status:0,statusText:'',responseBytes:null,javascriptId:null,constructor:function(b){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var a=this;Ext.apply(a,b);a.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=!0;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener('flashready',a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(c,b){a.push(c+': '+b)});return a.join('\r\n')},getResponseHeader:function(b){var a=this.responseHeaders;return a&&a[b]||null},open:function(c,f,d,e,b){var a=this;a.method=c;a.url=f;a.async=d!==!1;a.user=e;a.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(b){var a=this;a.body=b;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener('flashready',a.onFlashReady,a)}else {this.onFlashReady()}},onFlashReady:function(){var a=this,b,c;a.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(a);b={method:a.method,url:a.url,user:a.user,password:a.password,mimeType:a.mimeType,requestHeaders:a.requestHeaders,body:a.body,javascriptId:a.javascriptId};c=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(a,b){this.requestHeaders[a]=b},onreadystatechange:Ext.emptyFn,parseData:function(a){var b=this;this.status=a.status||0;b.responseHeaders={};if(b.mimeType){b.responseHeaders['content-type']=b.mimeType}if(a.reason=='complete'){this.responseBytes=a.data;b.responseHeaders['content-length']=a.data.length}else {if(a.reason=='error'||a.reason=='securityError'){this.statusText=a.text;b.responseHeaders['content-length']=0}}},onFlashStateChange:function(b,c){var a=this;if(b==4){a.parseData(c);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(b)}},1,0,0,0,0,0,[Ext.data.flash,'BinaryXhr'],0);Ext.cmd.derive('Ext.data.request.Ajax',Ext.data.request.Base,{statics:{parseStatus:function(a){a=a==1223?204:a;var c=a>=200&&a<300||a==304,b=!1;if(!c){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:b=!0;break;}}return {success:c,isException:b}}},start:function(f){var a=this,e=a.options,c=a.requestOptions,d=a.isXdr,b,g;b=a.xhr=a.openRequest(e,c,a.async,a.username,a.password);if(!d){g=a.setupHeaders(b,e,c.data,c.params)}if(a.async){if(!d){b.onreadystatechange=Ext.Function.bind(a.onStateChange,a)}}if(d){a.processXdrRequest(a,b)}Ext.data.request.Base.prototype.start.call(this,f);b.send(f);if(!a.async){return a.onComplete()}return a},abort:function(c){var a=this,b=a.xhr;if(c||a.isLoading()){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=Ext.emptyFn}b.abort();Ext.data.request.Base.prototype.abort.call(this,c);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var c=this,a=c.xhr,b=a&&a.readyState,d=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!a||c.aborted||c.timedout){return !1}if(d&&a instanceof d){return b!==4}return b!==0&&b!==4},openRequest:function(d,b,f,e,g){var c=this,a=c.newRequest(d);if(e){a.open(b.method,b.url,f,e,g)}else {if(c.isXdr){a.open(b.method,b.url)}else {a.open(b.method,b.url,f)}}if(d.binary||c.binary){if(window.Uint8Array){a.responseType='arraybuffer'}else {if(a.overrideMimeType){a.overrideMimeType('text/plain; charset=x-user-defined')}}}if(d.withCredentials||c.withCredentials){a.withCredentials=!0}return a},newRequest:function(c){var a=this,b;if(c.binaryData){if(window.Uint8Array){b=a.getXhrInstance()}else {b=new Ext.data.flash.BinaryXhr()}}else {if(a.cors&&Ext.isIE9m){b=a.getXdrInstance();a.isXdr=!0}else {b=a.getXhrInstance();a.isXdr=!1}}return b},setupHeaders:function(m,f,j,l){var d=this,a=Ext.apply({},f.headers||{},d.defaultHeaders),e=d.defaultPostHeader,h=f.jsonData,i=f.xmlData,b='Content-Type',k=d.useDefaultXhrHeader,c,g;if(!a.hasOwnProperty(b)&&(j||l)){if(j){if(f.rawData){e='text/plain'}else {if(i&&Ext.isDefined(i)){e='text/xml'}else {if(h&&Ext.isDefined(h)){e='application/json'}}}}a[b]=e}if(k&&!a['X-Requested-With']){a['X-Requested-With']=d.defaultXhrHeader}if(a[b]===undefined||a[b]===null){delete a[b]}try{for(c in a){if(a.hasOwnProperty(c)){g=a[c];m.setRequestHeader(c,g)}}}catch(n){d.owner.fireEvent('exception',c,g)}return a},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else {Ext.raise({msg:'Your browser does not support CORS'})}return a},getXhrInstance:function(){var c=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject('MSXML2.XMLHTTP.3.0')},function(){return new ActiveXObject('MSXML2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')}],b=0,d=c.length,a;for(;b=0){j=e.substr(0,c).toLowerCase();if(e.charAt(c+1)==' '){++c}f[j]=e.substr(c+1)}}b={request:d,requestId:d.id,status:a.status,statusText:a.statusText,getResponseHeader:function(b){return f[b.toLowerCase()]},getAllResponseHeaders:function(){return f}};if(h){d.processXdrResponse(b,a)}if(d.binary){b.responseBytes=d.getByteArray(a)}else {b.responseText=a.responseText;b.responseXML=a.responseXML}return b},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(b){var e=b.response,g=b.responseBody,h=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,d,f,c;if(b instanceof h){a=b.responseBytes}else {if(window.Uint8Array){a=e?new Uint8Array(e):[]}else {if(Ext.isIE9p){try{a=(new VBArray(g)).toArray()}catch(i){a=[]}}else {if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(b.responseBody,a=[])}else {a=[];d=b.responseText;f=d.length;for(c=0;c=500){this.run()}},run:function(){var a=this;if(!a.isRunning){return}var b=a.runningQueue,d=Ext.now(),c,e;a.lastRunTime=d;a.frameStartTime=d;b.push.apply(b,a.queue);for(c=0,e=b.length;c0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty('taskQueueTimer')){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var a=this.taskQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}}},1,0,0,0,0,0,[Ext,'AnimationQueue'],0);Ext.cmd.derive('Ext.ComponentManager',Ext.Base,{alternateClassName:'Ext.ComponentMgr',singleton:!0,count:0,typeName:'xtype',constructor:function(b){var a=this;Ext.apply(a,b||{});a.all={};a.references={};a.onAvailableCallbacks={}},create:function(a,b){if(typeof a==='string'){return Ext.widget(a)}if(a.isComponent){return a}if('xclass' in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(b){var a=this,e=a.all,d=b.getId(),c=a.onAvailableCallbacks;e[d]=b;if(b.getReference&&b.getReference()){a.references[d]=b}++a.count;if(!a.hasFocusListener){Ext.on('focus',a.onGlobalFocus,a);a.hasFocusListener=!0}c=c&&c[d];if(c&&c.length){a.notifyAvailable(b)}},unregister:function(b){var a=b.getId();if(b.getReference&&b.getReference()){this.references[a]=null;delete this.references[a]}this.all[a]=null;delete this.all[a];this.count--},markReferencesDirty:function(){this.referencesDirty=!0},fixReferences:function(){var c=this,a=c.references,b;if(c.referencesDirty){for(b in a){if(a.hasOwnProperty(b)){a[b].fixReference()}}c.referencesDirty=!1}},onAvailable:function(a,f,d){var g=this,b=g.onAvailableCallbacks,e=g.all,c;if(a in e){c=e[a];f.call(d||c,c)}else {if(a){if(!Ext.isArray(b[a])){b[a]=[]}b[a].push(function(b){f.call(d||b,b)})}}},notifyAvailable:function(a){var b=this.onAvailableCallbacks[a&&a.getId()]||[];while(b.length){b.shift()(a)}},each:function(b,a){return Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.fromElement(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(d){var h=this,g=d.toElement,f=d.fromElement,c=Ext.Component.fromElement(g),b=Ext.Component.fromElement(f),e,a;if(c===b){return}e=h.getCommonAncestor(b,c);if(b&&!(b.destroyed||b.destroying)){if(b.handleBlurEvent){b.handleBlurEvent(d)}for(a=b;a&&a!==e;a=a.getRefOwner()){if(!(a.destroyed||a.destroying)){a.onFocusLeave({event:d.event,type:'focusleave',target:f,relatedTarget:g,fromComponent:b,toComponent:c})}}}if(c&&!c.destroyed){if(c.handleFocusEvent){c.handleFocusEvent(d)}for(a=c;a&&a!==e;a=a.getRefOwner()){a.onFocusEnter({event:d.event,type:'focusenter',relatedTarget:f,target:g,fromComponent:b,toComponent:c})}}},getCommonAncestor:function(a,b){if(a===b){return a}while(a&&!(a.isAncestor(b)||a===b)){a=a.getRefOwner()}return a},privates:{clearAll:function(){this.all={};this.references={};this.onAvailableCallbacks={}},fromElement:function(i,b,e){var a=Ext.getDom(i),h=this.all,g=0,f,d,c;if(typeof b!=='number'){f=Ext.getDom(b);b=Number.MAX_VALUE}while(a&&a.nodeType===1&&g0){for(;a.first&&b;b--){a.removeAtKey(a.first.key)}}},destroy:function(){this.first=this.last=null;Ext.util.HashMap.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util,'LruCache'],0);Ext.cmd.derive('Ext.ComponentQuery',Ext.Base,{singleton:!0},0,0,0,0,0,0,[Ext,'ComponentQuery'],function(){var a=this,f=Ext.util.Operators,r=/(\d*)n\+?(\d*)/,q=/\D/,c=/^(\s)+/,b=/\\(.)/g,j=new Ext.util.LruCache({maxSize:100}),m=['var r = [],','i = 0,','it = items,','l = it.length,','c;','for (; i < l; i++) {','c = it[i];','if (c.{0}) {','r.push(c);','}','}','return r;'].join(''),d=function(b,a){return a.method.apply(this,[b].concat(a.args))},e=function(d,g){var b=[],c=0,e=d.length,a,f=g!=='>';for(;c\^])\s?|\s|$)/,o=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,k=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:g,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:l,argTransform:function(c){var g=c[0],f=c[1],e=c[2],a=c[4],d;if(a!==undefined){a=a.replace(b,'$1')}if(e==='/='){d=j.get(a);if(d){a=d}else {a=j.add(a,new RegExp(a))}}return [f,e,a]}},{re:/^#((?:\\\.|[\w\-])+)/,method:i},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:n,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:m}];a.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(f){var c=this.operations,b=[],e,a,d;for(a=0,d=c.length;a=0;--c){g=l[c];b=g.mode;if(b){if(b==='^'){a=e(a,' ')}else {if(b==='>'){i=[];for(f=0,k=a.length;f1}});Ext.apply(a,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(d,f){var c=0,g=d.length,e=[],h=-1,b;for(;c0){b.push(a[0])}return b},last:function(a){var b=a.length,c=[];if(b>0){c.push(a[b-1])}return c},focusable:function(d){var e=d.length,c=[],b=0,a;for(;b=c.left&&(t=='t'&&v=='b'||t=='b'&&v=='t');o=f=c.top&&(s=='r'&&u=='l'||s=='l'&&u=='r');if(e+k>a.right){if(o){e=c.left-k;o=!1}else {e=a.right-k}}if(ea.bottom){if(p){f=c.top-j;p=!1}else {f=a.bottom-j}}if(fa.right){e=!0;d[0]=a.right-b.right}if(b.left+d[0]a.bottom){e=!0;d[1]=a.bottom-b.bottom}if(b.top+d[1]=b.x&&a.right<=b.right&&a.y>=b.y&&a.bottom<=b.bottom},intersect:function(a){var b=this,f=Math.max(b.y,a.y),e=Math.min(b.right,a.right),c=Math.min(b.bottom,a.bottom),d=Math.max(b.x,a.x);if(c>f&&e>d){return new this.self(f,e,c,d)}else {return !1}},union:function(a){var b=this,f=Math.min(b.y,a.y),e=Math.max(b.right,a.right),c=Math.max(b.bottom,a.bottom),d=Math.min(b.x,a.x);return new this.self(f,e,c,d)},constrainTo:function(b){var a=this,c=Ext.Number.constrain;a.top=a.y=c(a.top,b.y,b.bottom);a.bottom=c(a.bottom,b.y,b.bottom);a.left=a.x=c(a.left,b.x,b.right);a.right=c(a.right,b.x,b.right);return a},adjust:function(e,c,b,d){var a=this;a.top=a.y+=e;a.left=a.x+=d;a.right+=c;a.bottom+=b;return a},getOutOfBoundOffset:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.getOutOfBoundOffsetX(a)}else {return this.getOutOfBoundOffsetY(a)}}else {a=b;var c=new Ext.util.Offset();c.x=this.getOutOfBoundOffsetX(a.x);c.y=this.getOutOfBoundOffsetY(a.y);return c}},getOutOfBoundOffsetX:function(a){if(a<=this.x){return this.x-a}else {if(a>=this.right){return this.right-a}}return 0},getOutOfBoundOffsetY:function(a){if(a<=this.y){return this.y-a}else {if(a>=this.bottom){return this.bottom-a}}return 0},isOutOfBound:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.isOutOfBoundX(a)}else {return this.isOutOfBoundY(a)}}else {a=b;return this.isOutOfBoundX(a.x)||this.isOutOfBoundY(a.y)}},isOutOfBoundX:function(a){return athis.right},isOutOfBoundY:function(a){return athis.bottom},restrict:function(d,a,b){if(Ext.isObject(d)){var c;b=a;a=d;if(a.copy){c=a.copy()}else {c={x:a.x,y:a.y}}c.x=this.restrictX(a.x,b);c.y=this.restrictY(a.y,b);return c}else {if(d=='x'){return this.restrictX(a,b)}else {return this.restrictY(a,b)}}},restrictX:function(a,b){if(!b){b=1}if(a<=this.x){a-=(a-this.x)*b}else {if(a>=this.right){a-=(a-this.right)*b}}return a},restrictY:function(a,b){if(!b){b=1}if(a<=this.y){a-=(a-this.y)*b}else {if(a>=this.bottom){a-=(a-this.bottom)*b}}return a},getSize:function(){return {width:this.right-this.x,height:this.bottom-this.y}},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(b){var a=this;a.top=a.y=a[1]=b.y;a.right=b.right;a.bottom=b.bottom;a.left=a.x=a[0]=b.x;return this},toString:function(){return 'Region['+this.top+','+this.right+','+this.bottom+','+this.left+']'},translateBy:function(b,c){if(arguments.length==1){c=b.y;b=b.x}var a=this;a.top=a.y+=c;a.right+=b;a.bottom+=c;a.left=a.x+=b;return a},round:function(){var a=this;a.top=a.y=Math.round(a.y);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);a.left=a.x=Math.round(a.x);return a},equals:function(a){return this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left}},3,0,0,0,0,0,[Ext.util,'Region'],0);Ext.cmd.derive('Ext.util.Point',Ext.util.Region,{radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(b){var a=b.changedTouches,c=a&&a.length>0?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}Ext.util.Region.prototype.constructor.call(this,b,a,b,a)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return 'Point['+this.x+','+this.y+']'},equals:function(a){return this.x===a.x&&this.y===a.y},isCloseTo:function(b,a){if(typeof a=='number'){return this.getDistanceTo(b)<=a}var e=b.x,f=b.y,c=a.x,d=a.y;return this.x<=e+c&&this.x>=e-c&&this.y<=f+d&&this.y>=f-d},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=='object'){a=this.origin}return Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y)},getDistanceTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.sqrt(b*b+c*c)},getAngleTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.atan2(c,b)*this.radianToDegreeConstant}},3,0,0,0,0,0,[Ext.util,'Point'],function(){this.prototype.translate=this.prototype.translateBy});Ext.cmd.derive('Ext.event.Event',Ext.Base,{alternateClassName:'Ext.EventObjectImpl',isStopped:!1,defaultPrevented:!1,isEvent:!0,statics:{resolveTextNode:function(a){return a&&a.nodeType===3?a.parentNode:a},pointerEvents:{pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerDown:1,MSPointerMove:1,MSPointerUp:1,MSPointerOver:1,MSPointerOut:1,MSPointerCancel:1,MSPointerEnter:1,MSPointerLeave:1},mouseEvents:{mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1,mouseenter:1,mouseleave:1},clickEvents:{click:1,dblclick:1},touchEvents:{touchstart:1,touchmove:1,touchend:1,touchcancel:1},focusEvents:{focus:1,blur:1,focusin:1,focusout:1,focusenter:1,focusleave:1},pointerTypes:{2:'touch',3:'pen',4:'mouse',touch:'touch',pen:'pen',mouse:'mouse'}},constructor:function(b){var a=this,c=a.self,h=a.self.resolveTextNode,i=b.changedTouches,g=i?i[0]:b,d=b.type,e,f;a.pageX=g.pageX;a.pageY=g.pageY;a.target=a.delegatedTarget=h(b.target);f=b.relatedTarget;if(f){a.relatedTarget=h(f)}a.browserEvent=a.event=b;a.type=d;a.button=b.button||0;a.shiftKey=b.shiftKey;a.ctrlKey=b.ctrlKey||b.metaKey||!1;a.altKey=b.altKey;a.charCode=b.charCode;a.keyCode=b.keyCode;a.buttons=b.buttons;if(a.button===0&&a.buttons===0){a.buttons=1}if(c.forwardTab!==undefined&&c.focusEvents[d]){a.forwardTab=c.forwardTab}if(c.mouseEvents[d]||c.clickEvents[d]){e='mouse'}else {if(c.pointerEvents[d]){e=c.pointerTypes[b.pointerType]}else {if(c.touchEvents[d]){e='touch'}}}if(e){a.pointerType=e}a.timeStamp=a.time=+(b.timeStamp||new Date())},chain:function(b){var a=Ext.Object.chain(this);a.parentEvent=this;return Ext.apply(a,b)},correctWheelDelta:function(a){var c=this.WHEEL_SCALE,b=Math.round(a/c);if(!b&&a){b=a<0?-1:1}return b},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.keyCodes[this.keyCode]},getPoint:function(){var a=this.getXY();return new Ext.util.Point(a[0],a[1])},getRelatedTarget:function(d,e,c){var a=this.relatedTarget,b=null;if(a){if(d){b=Ext.fly(a).findParent(d,e,c)}else {b=c?Ext.get(a):a}}return b},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):a?Ext.get(this.target):this.target},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var d=this,a=d.browserEvent,c=0,b=0;if(Ext.isDefined(a.wheelDeltaX)){c=a.wheelDeltaX;b=a.wheelDeltaY}else {if(a.wheelDelta){b=a.wheelDelta}else {if(a.detail){b=-a.detail;if(b>100){b=3}else {if(b<-100){b=-3}}if(Ext.isDefined(a.axis)&&a.axis===a.HORIZONTAL_AXIS){c=b;b=0}}}}return {x:d.correctWheelDelta(c),y:d.correctWheelDelta(b)}},getX:function(){return this.getXY()[0]},getXY:function(){var d=this,c=d.xy;if(!c){c=d.xy=[d.pageX,d.pageY];var g=c[0],e,f,a,b;if(!g&&g!==0){e=d.browserEvent;f=document;a=f.documentElement;b=f.body;c[0]=e.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);c[1]=e.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}}return c},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(c){var a=this,b=a.keyCode,d=a.type==='keypress';return (!d||Ext.isGecko)&&b>=33&&b<=40||!c&&(b===a.RETURN||b===a.TAB||b===a.ESC)},isSpecialKey:function(){var b=this,a=b.keyCode,d=Ext.isGecko,c=b.type==='keypress';return d&&c&&b.charCode===0||this.isNavKeyPress()||a===b.BACKSPACE||a===b.ENTER||a>=16&&a<=20||(!c||d)&&a>=44&&a<=46},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var a=this,b=a.parentEvent;a.defaultPrevented=!0;if(b){b.defaultPrevented=!0}a.browserEvent.preventDefault();return a},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var a=this,b=a.browserEvent,c=a.parentEvent;a.isStopped=!0;if(c){c.isStopped=!0}if(!b.stopPropagation){b.cancelBubble=!0;return a}b.stopPropagation();return a},within:function(b,d,c){var a;if(b){a=d?this.getRelatedTarget():this.getTarget()}return a?Ext.fly(b).contains(a)||!!(c&&a===Ext.getDom(b)):!1},deprecated:{'4.0':{methods:{getPageX:'getX',getPageY:'getY'}}}},1,0,0,0,0,0,[Ext.event,'Event',Ext,'EventObjectImpl'],function(f){var b=f.prototype,a={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,WHEEL_SCALE:function(){var a;if(Ext.isGecko){a=3}else {if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){a=120}else {a=12}a*=3}else {a=120}}return a}()},d={},c,e;Ext.apply(f,a);Ext.apply(b,a);delete a.WHEEL_SCALE;delete a.RETURN;for(c in a){e=a[c];d[e]=c}b.keyCodes=d;b.getTrueXY=b.getXY});Ext.define('Ext.overrides.event.Event',{override:'Ext.event.Event',mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:function(){var a,b={},c;if(!Ext.isIE9m&&document.createEvent){a={createHtmlEvent:function(e,d,c,b){var a=e.createEvent('HTMLEvents');a.initEvent(d,c,b);return a},createMouseEvent:function(d,n,h,f,m,b,c,i,k,g,j,l,e){var a=d.createEvent('MouseEvents'),o=d.defaultView||window;if(a.initMouseEvent){a.initMouseEvent(n,h,f,o,m,b,c,b,c,i,k,g,j,l,e)}else {a=d.createEvent('UIEvents');a.initEvent(n,h,f);a.view=o;a.detail=m;a.screenX=b;a.screenY=c;a.clientX=b;a.clientY=c;a.ctrlKey=i;a.altKey=k;a.metaKey=j;a.shiftKey=g;a.button=l;a.relatedTarget=e}return a},createUIEvent:function(b,f,d,c,e){var a=b.createEvent('UIEvents'),g=b.defaultView||window;a.initUIEvent(f,d,c,g,e);return a},fireEvent:function(a,c,b){a.dispatchEvent(b)}}}else {if(document.createEventObject){c={0:1,1:4,2:2};a={createHtmlEvent:function(d,e,c,b){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},createMouseEvent:function(n,o,i,g,m,b,d,j,l,h,k,e,f){var a=n.createEventObject();a.bubbles=i;a.cancelable=g;a.detail=m;a.screenX=b;a.screenY=d;a.clientX=b;a.clientY=d;a.ctrlKey=j;a.altKey=l;a.shiftKey=h;a.metaKey=k;a.button=c[e]||e;a.relatedTarget=f;return a},createUIEvent:function(d,f,c,b,e){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},fireEvent:function(a,c,b){a.fireEvent('on'+c,b)}}}}Ext.Object.each({load:[!1,!1],unload:[!1,!1],select:[!0,!1],change:[!0,!1],submit:[!0,!0],reset:[!0,!1],resize:[!0,!1],scroll:[!0,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createHtmlEvent(c,f,e);a.fireEvent(b,c,g)}});function createMouseEventDispatcher(b,d){var c=b!=='mousemove';return function(f,e){var g=e.getXY(),h=a.createMouseEvent(f.ownerDocument,b,!0,c,d,g[0],g[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget);a.fireEvent(f,b,h)}}Ext.each(['click','dblclick','mousedown','mouseup','mouseover','mousemove','mouseout'],function(a){b[a]=createMouseEventDispatcher(a,1)});Ext.Object.each({focusin:[!0,!1],focusout:[!0,!1],activate:[!0,!0],focus:[!1,!1],blur:[!1,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createUIEvent(b.ownerDocument,c,f,e,1);a.fireEvent(b,c,g)}});if(!a){b={};a={}}function cannotInject(b,a){}return function(a){var c=this,d=b[c.type]||cannotInject,e=a?a.dom||a:c.getTarget();d(e,c)}}(),preventDefault:function(){var c=this,a=c.browserEvent,e=c.parentEvent,d,b;if(typeof a.type!=='unknown'){c.defaultPrevented=!0;if(e){e.defaultPrevented=!0}if(a.preventDefault){a.preventDefault()}else {if(a.type==='mousedown'){b=a.target;d=b.getAttribute('unselectable');if(d!=='on'){b.setAttribute('unselectable','on');Ext.defer(function(){b.setAttribute('unselectable',d)},1)}}a.returnValue=!1;if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}}return c},stopPropagation:function(){var a=this,b=a.browserEvent;if(typeof b.type!=='unknown'){if(a.mousedownEvents[a.type]){Ext.GlobalEvents.fireMouseDown(a)}arguments.callee.$previous.call(this)}return a},deprecated:{'5.0':{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var c=this,d,a=function(a){if(a.keyCode===9){c.forwardTab=!a.shiftKey}},b=function(a){if(a.keyCode===9){delete c.forwardTab}};if(Ext.isIE9m){d={0:0,1:0,4:1,2:2};c.override({statics:{enableIEAsync:function(b){var a,c={};for(a in b){c[a]=b[a]}return c}},constructor:function(a,f,e,c){var b=this;b.callParent([a,f,e,c]);b.button=d[a.button];if(a.type==='contextmenu'){b.button=2}b.toElement=a.toElement;b.fromElement=a.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(a){this.browserEvent=this.self.enableIEAsync(a)},getRelatedTarget:function(f,d,e){var a=this,c,b;if(!a.relatedTarget){c=a.type;if(a.mouseLeaveRe.test(c)){b=a.toElement}else {if(a.mouseEnterRe.test(c)){b=a.fromElement}}if(b){a.relatedTarget=a.self.resolveTextNode(b)}}return a.callParent([f,d,e])}});document.attachEvent('onkeydown',a);document.attachEvent('onkeyup',b);window.attachEvent('onunload',function(){document.detachEvent('onkeydown',a);document.detachEvent('onkeyup',b)})}else {if(document.addEventListener){document.addEventListener('keydown',a,!0);document.addEventListener('keyup',b,!0)}}});Ext.cmd.derive('Ext.event.publisher.Dom',Ext.event.publisher.Publisher,{type:'dom',handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1,scroll:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var b=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=b.handledDomEvents,f=d.length,c=0,a;for(;cb?1:a1){e=[];for(d=0;d0){b.invokeRecognizers('onTouchMove',a)}}},onTouchEnd:function(b){var a=this;if(!a.isStarted){return}a.updateTouches(b,!0);a.invokeRecognizers(a.isCancelEvent[b.type]?'onTouchCancel':'onTouchEnd',b);if(!a.activeTouches.length){a.isStarted=!1;a.invokeRecognizers('onEnd',b);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else {this.doTargetTouchMove(a)}},doTargetTouchMove:function(a){if(!Ext.getBody().contains(a.target)){this.onTouchMove(new Ext.event.Event(a))}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else {this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var b=this,a=c.target;a.removeEventListener('touchmove',b.onTargetTouchMove);a.removeEventListener('touchend',b.onTargetTouchEnd);a.removeEventListener('touchcancel',b.onTargetTouchEnd);if(!Ext.getBody().contains(a)){b.onTouchEnd(new Ext.event.Event(c))}},updateAsync:function(a){this.handlers=a?this._asyncHandlers:this._handlers},reset:function(){var a=this,d=a.recognizers,e=d.length,b,c;a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.isStarted=!1;for(b=0;b=500){this.run()}},run:function(){this.pending=!1;var i=this.readQueue,h=this.writeQueue,c=null,d;if(this.mode){d=i;if(h.length>0){c=!1}}else {d=h;if(i.length>0){c=!0}}var g=d.slice(),f,j,b,a,e;d.length=0;for(f=0,j=g.length;f2){a.apply(e,b[2])}else {a.call(e)}}g.length=0;if(c!==null){this.request(c)}}},1,0,0,0,0,0,[Ext,'TaskQueue'],0);Ext.cmd.derive('Ext.util.sizemonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:0,height:0,contentWidth:0,contentHeight:0,constructor:function(a){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(a);this.bindListeners(!0)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer);a.addCls('x-size-monitored')},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.offsetWidth},getContentHeight:function(){return this.detectorsContainer.offsetHeight},refreshSize:function(){var b=this.getElement();if(!b||b.destroyed){return !1}var h=b.getWidth(),g=b.getHeight(),d=this.getContentWidth(),c=this.getContentHeight(),j=this.contentWidth,i=this.contentHeight,a=this.info,f=!1,e;this.width=h;this.height=g;this.contentWidth=d;this.contentHeight=c;e=(j!==d?1:0)+(i!==c?2:0);if(e>0){a.width=h;a.height=g;a.contentWidth=d;a.contentHeight=c;a.flag=e;f=!0;this.getCallback().apply(this.getScope(),this.getArgs())}return f},refresh:function(a){if(this.refreshSize()||a){Ext.TaskQueue.requestWrite('refreshMonitors',this)}},destroy:function(){var a=this,b=a.getElement();a.bindListeners(!1);if(b&&!b.destroyed){b.removeCls('x-size-monitored')}delete a._element;a.callParent()}},1,0,0,0,0,[[Ext.mixin.Templatable.prototype.mixinId||Ext.mixin.Templatable.$className,Ext.mixin.Templatable]],[Ext.util.sizemonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.sizemonitor.Scroll',Ext.util.sizemonitor.Abstract,{getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','scroll'],children:[{reference:'expandMonitor',className:'expand'},{reference:'shrinkMonitor',className:'shrink'}]}},constructor:function(a){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a]('scroll',this.onScroll,!0);this.shrinkMonitor[a]('scroll',this.onScroll,!0)},forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this,[!0])},onScroll:function(){Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){var a=this.expandMonitor,b=this.shrinkMonitor,c=1000000;if(a&&!a.destroyed){a.scrollLeft=c;a.scrollTop=c}if(b&&!b.destroyed){b.scrollLeft=c;b.scrollTop=c}}},1,0,0,0,0,0,[Ext.util.sizemonitor,'Scroll'],0);Ext.cmd.derive('Ext.util.sizemonitor.OverflowChange',Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=Ext.Function.bind(this.onExpand,this);this.onShrink=Ext.Function.bind(this.onShrink,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','overflowchanged'],children:[{reference:'expandMonitor',className:'expand',children:[{reference:'expandHelper'}]},{reference:'shrinkMonitor',className:'shrink',children:[{reference:'shrinkHelper'}]}]}},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a](Ext.browser.is.Firefox?'underflow':'overflowchanged',this.onExpand,!0);this.shrinkMonitor[a](Ext.browser.is.Firefox?'overflow':'overflowchanged',this.onShrink,!0)},onExpand:function(a){if(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},onShrink:function(a){if(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){if(this.destroyed){return}var b=this.expandHelper,c=this.shrinkHelper,d=this.getContentBounds(),f=d.width,e=d.height,a;if(b&&!b.destroyed){a=b.style;a.width=f+1+'px';a.height=e+1+'px'}if(c&&!c.destroyed){a=c.style;a.width=f+'px';a.height=e+'px'}Ext.TaskQueue.requestRead('refresh',this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,'OverflowChange'],0);Ext.cmd.derive('Ext.util.SizeMonitor',Ext.Base,{constructor:function(b){var a=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new a.OverflowChange(b)}else {return new a.Scroll(b)}}},1,0,0,0,0,0,[Ext.util,'SizeMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementSize',Ext.event.publisher.Publisher,{type:'size',handledEvents:['resize'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(b){var a=b.id,c=this.subscribers,d=this.monitors;if(c[a]){++c[a]}else {c[a]=1;d[a]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on('painted','forceRefresh',d[a]);return !0},unsubscribe:function(e){var a=e.id,c=this.subscribers,d=this.monitors,b;if(c[a]&&!--c[a]){delete c[a];b=d[a];e.un('painted','forceRefresh',b);b.destroy();delete d[a]}},onElementResize:function(a,b){Ext.TaskQueue.requestRead('fire',this,[a,'resize',[a,b]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementSize'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.util.paintmonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:'',monitorClass:'',constructor:function(a){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?'addEventListener':'removeEventListener'](this.eventName,this.onElementPainted,!0)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:['x-paint-monitor',this.monitorClass]},!0);a.appendChild(this.monitorElement);a.addCls('x-paint-monitored');this.bindListeners(!0)},onElementPainted:function(){},destroy:function(){var a=this,c=a.monitorElement,d=c.parentNode,b=a.getElement();a.bindListeners(!1);delete a.monitorElement;if(b&&!b.destroyed){b.removeCls('x-paint-monitored');delete a._element}if(d){d.removeChild(c)}a.callParent()}},1,0,0,0,0,0,[Ext.util.paintmonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.paintmonitor.CssAnimation',Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.WebKit?'webkitAnimationEnd':'animationend',monitorClass:'cssanimation',onElementPainted:function(a){if(a.animationName==='x-paint-monitor-helper'){this.getCallback().apply(this.getScope(),this.getArgs())}}},0,0,0,0,0,0,[Ext.util.paintmonitor,'CssAnimation'],0);Ext.cmd.derive('Ext.util.PaintMonitor',Ext.Base,{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}},1,0,0,0,0,0,[Ext.util,'PaintMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementPaint',Ext.event.publisher.Publisher,{type:'paint',handledEvents:['painted'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(d){var b=this,a=d.id,c=b.subscribers;if(c[a]){++c[a]}else {c[a]=1;b.monitors[a]=new Ext.util.PaintMonitor({element:d,callback:b.onElementPainted,scope:b,args:[d]})}},unsubscribe:function(d){var a=d.id,b=this.subscribers,c=this.monitors;if(b[a]&&!--b[a]){delete b[a];c[a].destroy();delete c[a]}},onElementPainted:function(a){Ext.TaskQueue.requestRead('fire',this,[a,'painted',[a]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementPaint'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.dom.Element',Ext.Base,function(a){var h=window,b=document,F='ext-window',D='ext-document',w='width',H='height',ac='min-width',_='min-height',ab='max-width',$='max-height',S='top',P='right',ag='bottom',R='left',aa='visibility',M='hidden',G='display',x='none',O='z-index',u='position',ad='relative',N='static',i='-',T=/\w/g,k=/\s+/,V=/[\s]+/,Y=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,U=/table-row|table-.*-group/,Q=/top/i,d={t:'border-top-width',r:'border-right-width',b:'border-bottom-width',l:'border-left-width'},f={t:'padding-top',r:'padding-right',b:'padding-bottom',l:'padding-left'},v={t:'margin-top',r:'margin-right',b:'margin-bottom',l:'margin-left'},Z=[f.l,f.r,f.t,f.b],B=[d.l,d.r,d.t,d.b],ae=/\d+$/,I=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,C='px',af=/(-[a-z])/gi,J=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,t=/^\d+(?:\.\d*)?px$/i,A={},y='originalDisplay',X=function(c,b){return b.charAt(1).toUpperCase()},E=function(d,e){var c,b,f;if(d.nodeType===1){d._extData=null;if(e){c=d.childNodes;for(b=0,f=c.length;bh.innerWidth?'portrait':'landscape'},getViewportHeight:function(){var c=a._viewportHeight;if(Ext.isIE9m){return b.documentElement.clientHeight}return c!=null?c:h.innerHeight},getViewportWidth:function(){var c=a._viewportWidth;if(Ext.isIE9m){return b.documentElement.clientWidth}return c!=null?c:h.innerWidth},getViewSize:function(){return {width:a.getViewportWidth(),height:a.getViewportHeight()}},normalize:function(b){return A[b]||(A[b]=b.replace(af,X))},_onWindowFocusChange:function(b){if(Ext.fly(b.target).is(a.editableSelector)){z=new Date();L=b.type==='focusin'||b.type==='pointerup'}},_onWindowResize:function(){var c=window.innerWidth,b=window.innerHeight,g=new Date(),f=1000,d,e;d=c-a._windowWidth;e=b-a._windowHeight;a._windowWidth=c;a._windowHeight=b;if(g-z=a.minKeyboardHeight){l=!1;K=new Date()}if(l){return}a._viewportWidth=c;a._viewportHeight=b},parseBox:function(c){c=c||0;var e=typeof c,b,d;if(e==='number'){return {top:c,right:c,bottom:c,left:c}}else {if(e!=='string'){return c}}b=c.split(' ');d=b.length;if(d===1){b[1]=b[2]=b[3]=b[0]}else {if(d===2){b[2]=b[0];b[3]=b[1]}else {if(d===3){b[3]=b[1]}}}return {top:parseFloat(b[0])||0,right:parseFloat(b[1])||0,bottom:parseFloat(b[2])||0,left:parseFloat(b[3])||0}},parseStyles:function(c){var d={},b;if(c){J.lastIndex=0;while(b=J.exec(c)){d[b[1]]=b[2]||''}}return d},select:function(d,c,e){return Ext.fly(e||b).select(d,c)},query:function(c,d,e){return Ext.fly(e||b).query(c,d)},unitizeBox:function(b,d){var c=this;b=c.parseBox(b);return c.addUnits(b.top,d)+' '+c.addUnits(b.right,d)+' '+c.addUnits(b.bottom,d)+' '+c.addUnits(b.left,d)},serializeForm:function(l){var m=l.elements||(b.forms[l]||Ext.getDom(l)).elements,n=!1,f=encodeURIComponent,g='',q=m.length,c,h,d,k,o,i,j,p,e;for(i=0;i0||b.scrollLeft!==0){e.push(b);g.push(c.attach(b).getScroll())}}return function(){var d,b,f;for(b=0,f=e.length;b '+d,!!c)},clone:function(c,d){var b=this.dom.cloneNode(c);if(Ext.supports.CloneNodeCopiesExpando){E(b,c)}return d?b:Ext.get(b)},constrainScrollLeft:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollWidth-b.clientWidth),0)},constrainScrollTop:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollHeight-b.clientHeight),0)},createChild:function(b,c,d){b=b||{tag:'div'};if(c){return Ext.DomHelper.insertBefore(c,b,d!==!0)}else {return Ext.DomHelper.append(this.dom,b,d!==!0)}},contains:function(b){if(!b){return !1}var d=this,c=Ext.getDom(b);return c===d.dom||d.isAncestor(c)},destroy:function(){var c=this,b=c.dom;if(b&&b.parentNode){b.parentNode.removeChild(b)}c.collect();if(!c.isFly){c.callParent()}},detach:function(){var b=this.dom;if(b&&b.parentNode&&b.tagName!=='BODY'){b.parentNode.removeChild(b)}return this},disableShadow:function(){var b=this.shadow;if(b){b.hide();b.disabled=!0}},disableShim:function(){var b=this.shim;if(b){b.hide();b.disabled=!0}},disableTouchContextMenu:function(){this._contextMenuListenerRemover=this.on({MSHoldVisual:function(b){b.preventDefault()},destroyable:!0,delegated:!1})},disableTouchScroll:function(){this.addCls(W);this.on({touchmove:function(b){b.preventDefault()},translate:!1})},doReplaceWith:function(c){var b=this.dom;b.parentNode.replaceChild(Ext.getDom(c),b)},doScrollIntoView:function(b,o,d,m,l,n){c=c||new Ext.dom.Fly();var e=this,k=e.dom,i=c.attach(b)[l](),j=b.scrollTop,h=e.getScrollIntoViewXY(b,i,j),f=h.x,g=h.y;if(m){if(d){d=Ext.apply({listeners:{afteranimate:function(){c.attach(k).highlight()}}},d)}else {c.attach(k).highlight()}}if(g!==j){c.attach(b).scrollTo('top',g,d)}if(o!==!1&&f!==i){c.attach(b)[n]('left',f,d)}return e},down:function(c,b){return this.selectNode(c,!!b)},enableShadow:function(f,e){var c=this,b=c.shadow||(c.shadow=new Ext.dom.Shadow(Ext.apply({target:c},f))),d=c.shim;if(d){d.offsets=b.outerOffsets;d.shadow=b;b.shim=d}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},enableShim:function(f,e){var c=this,b=c.shim||(c.shim=new Ext.dom.Shim(Ext.apply({target:c},f))),d=c.shadow;if(d){b.offsets=d.outerOffsets;b.shadow=d;d.shim=b}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},findParent:function(g,d,h){var i=this,c=i.dom,e=b.documentElement,f=0;if(d||d===0){if(typeof d!=='number'){e=Ext.getDom(d);d=Number.MAX_VALUE}}else {d=50}while(c&&c.nodeType===1&&f0&&d<0.5){b++}}}if(e){b-=c.getBorderWidth('tb')+c.getPadding('tb')}return b<0?0:b},getHtml:function(){return this.dom?this.dom.innerHTML:''},getLeft:function(b){return b?this.getLocalX():this.getX()},getLocalX:function(){var d=this,c,b=d.getStyle('left');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getX();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getX()}}}return b},getLocalXY:function(){var e=this,d,f=e.getStyle(['left','top']),b=f.left,c=f.top;if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=e.getX();d=e.dom.offsetParent;if(d){b-=Ext.fly(d).getX()}}}if(!c||c==='auto'){c=0}else {if(t.test(c)){c=parseFloat(c)}else {c=e.getY();d=e.dom.offsetParent;if(d){c-=Ext.fly(d).getY()}}}return [b,c]},getLocalY:function(){var d=this,c,b=d.getStyle('top');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getY();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getY()}}}return b},getMargin:function(){var c={t:'top',l:'left',r:'right',b:'bottom'},b=['margin-top','margin-left','margin-right','margin-bottom'];return function(g){var h=this,e,f,d;if(!g){e=h.getStyle(b);d={};if(e&&typeof e==='object'){d={};for(f in v){d[f]=d[c[f]]=parseFloat(e[v[f]])||0}}}else {d=h.addStyles(g,v)}return d}}(),getPadding:function(b){return this.addStyles(b,f)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(b){return (b?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var h=this,d=h.dom,g=b.documentElement,e,f,c=document.body;if(d===b||d===c){e=g.scrollLeft||(c?c.scrollLeft:0);f=g.scrollTop||(c?c.scrollTop:0)}else {e=d.scrollLeft;f=d.scrollTop}return {left:e,top:f}},getScrollIntoViewXY:function(r,b,c){var p=this.dom,h=Ext.getDom(r),j=this.getOffsetsTo(h),o=p.offsetWidth,m=p.offsetHeight,f=j[0]+b,g=j[1]+c,l=g+m,n=f+o,d=h.clientHeight,e=h.clientWidth,i=b,k=c,q=k+d,s=i+e;if(m>d||gq){c=l-d}}if(o>e||fs){b=n-e}}return {x:b,y:c}},getScrollLeft:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().left}else {return c.scrollLeft}},getScrollTop:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().top}else {return c.scrollTop}},getSize:function(b){return {width:this.getWidth(b),height:this.getHeight(b)}},getStyle:function(n,i){var k=this,e=k.dom,m=typeof n!=='string',p=k.styleHooks,b=n,j=b,q=1,h,o,f,d,g,c,l;if(m){f={};b=j[0];l=0;if(!(q=j.length)){return f}}if(!e||e.documentElement){return f||''}h=e.style;if(i){c=h}else {c=e.ownerDocument.defaultView.getComputedStyle(e,null);if(!c){i=!0;c=h}}do{d=p[b];if(!d){p[b]=d={name:a.normalize(b)}}if(d.get){g=d.get(e,k,i,c)}else {o=d.name;g=c[o]}if(!m){return g}f[b]=g;b=j[++l]}while(l0&&e<0.5){b++}}}if(h){b-=c.getBorderWidth('lr')+c.getPadding('lr')}return b<0?0:b},getX:function(){return this.getXY()[0]},getXY:function(){var h=Math.round,e=this.dom,f=0,g=0,c,d;if(e!==b&&e!==b.body){try{c=e.getBoundingClientRect()}catch(ah){c={left:0,top:0}}f=h(c.left);g=h(c.top);d=Ext.getDoc().getScroll();f+=d.left;g+=d.top}return [f,g]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle('z-index'),10)},hasCls:function(c){var b=this.getData();if(!b.isSynchronized){this.synchronize()}return b.classMap.hasOwnProperty(c)},hide:function(){this.setVisible(!1);return this},insertAfter:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b.nextSibling);return this},insertBefore:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b);return this},insertFirst:function(b,c){b=b||{};if(b.nodeType||b.dom||typeof b==='string'){b=Ext.getDom(b);this.dom.insertBefore(b,this.dom.firstChild);return !c?Ext.get(b):b}else {return this.createChild(b,this.dom.firstChild,c)}},insertHtml:function(d,e,c){var b=Ext.DomHelper.insertHtml(d,this.dom,e);return c?Ext.get(b):b},insertSibling:function(b,k,f){var d=this,j=Ext.DomHelper,h=(k||'before').toLowerCase()==='after',c,g,i,e;if(Ext.isIterable(b)){i=b.length;g=Ext.fly(document.createDocumentFragment());if(Ext.isArray(b)){for(e=0;eb.clientHeight||b.scrollWidth>b.clientWidth},isStyle:function(b,c){return this.getStyle(b)===c},isVisible:function(d){var b=this.dom,c;if(!b){return !1}if(!s){s=new Ext.dom.Fly()}for(c=b.ownerDocument.documentElement;b!==c;b=b.parentNode){if(!b||b.nodeType===11||s.attach(b).isStyle(aa,M)||s.isStyle(G,x)){return !1}if(!d){break}}return !0},last:function(c,b){return this.matchNode('previousSibling','lastChild',c,b)},maskIframes:function(){var b=document.getElementsByTagName('iframe');Ext.each(b,function(c){var b=Ext.fly(c.parentNode),d=b.mask();d.setStyle('background-color','transparent')})},matchNode:function(g,f,c,e){var d=this.dom,b;if(!d){return null}b=d[f];while(b){if(b.nodeType===1&&(!c||Ext.fly(b,'_matchNode').is(c))){return !e?Ext.get(b):b}b=b[g]}return null},next:function(c,b){return this.matchNode('nextSibling','nextSibling',c,b)},parent:function(c,b){return this.matchNode('parentNode','parentNode',c,b)},position:function(c,d,e,f){var b=this;if(b.dom.tagName!=='BODY'){if(!c&&b.isStyle(u,N)){b.setStyle(u,ad)}else {if(c){b.setStyle(u,c)}}if(d){b.setStyle(O,d)}if(e||f){b.setXY([e||!1,f||!1])}}},prev:function(c,b){return this.matchNode('previousSibling','previousSibling',c,b)},query:function(b,e,j){var i=this.dom,g,l,k,h,f,c,d;if(!i){return null}e=e!==!1;b=b.split(',');if(!j){g=[]}for(c=0,l=b.length;c0){b=i.className.split(V);for(c=0,j=b.length;c=':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>=a},'>':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>a},'!=':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!=c},'!==':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!==c},'in':function(b){var a=this._filterValue;return Ext.Array.contains(a,this.getCandidateValue(b,a))},notin:function(b){var a=this._filterValue;return !Ext.Array.contains(a,this.getCandidateValue(b,a))},like:function(b){var a=this._filterValue;return a&&this.getCandidateValue(b,a).toLowerCase().indexOf(a.toLowerCase())>-1}};a['==']=a['='];a.gt=a['>'];a.ge=a['>='];a.lt=a['<'];a.le=a['<='];a.eq=a['='];a.ne=a['!=']});Ext.cmd.derive('Ext.util.Observable',Ext.mixin.Observable,{$applyConfigs:!0},0,0,0,0,0,0,[Ext.util,'Observable'],function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe});Ext.cmd.derive('Ext.util.AbstractMixedCollection',Ext.Base,{isMixedCollection:!0,generation:0,indexGeneration:0,constructor:function(b,c){var a=this;if(arguments.length===1&&Ext.isObject(b)){a.initialConfig=b;Ext.apply(a,b)}else {a.allowFunctions=b===!0;if(c){a.getKey=c}a.initialConfig={allowFunctions:a.allowFunctions,getKey:a.getKey}}a.items=[];a.map={};a.keys=[];a.indexMap={};a.length=0;a.mixins.observable.constructor.call(a)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:!1,add:function(b,d){var c=this.length,a;if(arguments.length===1){a=this.insert(c,b)}else {a=this.insert(c,b,d)}return a},getKey:function(a){return a.id},replace:function(b,c){var a=this,d,e;if(arguments.length==1){c=arguments[0];b=a.getKey(c)}d=a.map[b];if(typeof b=='undefined'||b===null||typeof d=='undefined'){return a.add(b,c)}a.generation++;e=a.indexOfKey(b);a.items[e]=c;a.map[b]=c;if(a.hasListeners.replace){a.fireEvent('replace',b,d,c)}return c},reorder:function(e){var b=this,f=b.items,a=0,h=f.length,c=[],g=[],d;b.suspendEvents();for(d in e){c[e[d]]=f[d]}for(a=0;a-1){g=e[b];delete e[b];delete f[b];e[c]=g;f[c]=d;a.keys[d]=c;a.indexGeneration=++a.generation}},addAll:function(a){var c=this,b;if(arguments.length>1||Ext.isArray(a)){c.insert(c.length,arguments.length>1?arguments:a)}else {for(b in a){if(a.hasOwnProperty(b)){if(c.allowFunctions||typeof a[b]!='function'){c.add(b,a[b])}}}}},each:function(f,e){var c=Ext.Array.push([],this.items),a=0,d=c.length,b;for(;a2){a=this.doInsert(c,[b],[d])}else {a=this.doInsert(c,[b])}a=a[0]}return a},doInsert:function(f,e,d){var b=this,c,i,a,g=e.length,j=g,o=b.hasListeners.add,k,h={},l,n,m;if(d!=null){b.useLinearSearch=!0}else {d=e;e=new Array(g);for(a=0;a=0;--c){a.remove(b[c])}}else {while(a.length){a.removeAt(0)}}}else {a.length=a.items.length=a.keys.length=0;a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}},removeAt:function(b){var a=this,d,c;if(b=0){a.length--;d=a.items[b];Ext.Array.erase(a.items,b,1);c=a.keys[b];if(typeof c!='undefined'){delete a.map[c]}Ext.Array.erase(a.keys,b,1);if(a.hasListeners.remove){a.fireEvent('remove',d,c)}a.generation++;return d}return !1},removeRange:function(c,b){var a=this,i,f,d,e,g,h;if(c=0){if(!b){b=1}e=Math.min(c+b,a.length);b=e-c;h=e===a.length;g=h&&a.indexGeneration===a.generation;for(d=c;d=0;a--){if(c[a]==null){b.removeAt(a)}}}else {return b.removeAt(b.indexOfKey(d))}},getCount:function(){return this.length},indexOf:function(b){var a=this,c;if(b!=null){if(!a.useLinearSearch&&(c=a.getKey(b))){return this.indexOfKey(c)}return Ext.Array.indexOf(a.items,b)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var b=this,d=b.indexMap={},c=b.keys,e=c.length,a;for(a=0;aa){e=!0;g=b;b=a;a=g}if(b<0){b=0}if(a==null||a>=d){a=d-1}c=f.slice(b,a+1);if(e&&c.length){c.reverse()}return c},filter:function(a,e,d,c){var b=[];if(Ext.isString(a)){b.push(new Ext.util.Filter({property:a,value:e,anyMatch:d,caseSensitive:c}))}else {if(Ext.isArray(a)||a instanceof Ext.util.Filter){b=b.concat(a)}}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(h,g){var a=this,c=new a.self(a.initialConfig),e=a.keys,d=a.items,f=d.length,b;c.getKey=a.getKey;for(b=0;bb?1:a0){c.removeRange(b.multiSortLimit,g)};break;case 'prepend':c.insert(0,a);break;case 'append':c.addAll(a);break;case undefined:case null:case 'replace':c.clear();c.addAll(a);break;default:}}if(h!==!1){b.fireEvent('beforesort',b,a);b.onBeforeSort(a);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return a},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(b){if(!Ext.isArray(b)){if(b===undefined){b=[]}else {b=[b]}}var g=b.length,f=Ext.util.Sorter,e=this.getModel?this.getModel():this.model,d,a,c;for(c=0;c>1;c=d(h,f[a]);if(c>=0){b=a+1}else {if(c<0){e=a-1}}}return b},reorder:function(a){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,a);this.fireEvent('sort',this)},sortByKey:function(a,b){this._sort('key',a,b||function(e,f){var c=String(e).toUpperCase(),d=String(f).toUpperCase();return c>d?1:cf){k=f}}}if(c){b.tasks=c}b.firing=!1;if(b.tasks.length){b.startTimer(k-g,Ext.Date.now())}if(j!==!1&&l.hasListeners.idle){l.fireEvent('idle')}},startTimer:function(b,e){var a=this,d=e+b,c=a.timerId;if(c&&a.nextExpires-d>a.interval){clearTimeout(c);c=null}if(!c){if(b=a.duration,b,c;if(h){d=a.duration;e=!0}b=this.collectTargetData(a,d,f,e);if(f){a.target.setAttr(b.anims[a.id].attributes,!0);g.collectTargetData(a,a.duration,f,e);a.paused=!0;b=a.target.target;if(a.target.isComposite){b=a.target.target.last()}c={};c[Ext.supports.CSS3TransitionEnd]=a.lastFrame;c.scope=a;c.single=!0;b.on(c)}return b},jumpToEnd:function(d){var a=this,b,c;if(!a.targetArr){a.targetArr={};c=!0}b=a.runAnim(d,!0);a.applyAnimAttrs(b,b.anims[d.id]);if(c){a.targetArr=null}},collectTargetData:function(a,d,f,e){var c=a.target.getId(),b=this.targetArr[c];if(!b){b=this.targetArr[c]={id:c,el:a.target,anims:{}}}b.anims[a.id]={id:a.id,anim:a,elapsed:d,isLastFrame:e,attributes:[{duration:a.duration,easing:f&&a.reverse?a.easingFn.reverse().toCSS3():a.easing,attrs:a.runAnim(d)}]};return b},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var c=this.targetArr,b,d,a,f,e;for(d in c){if(c.hasOwnProperty(d)){b=c[d];for(e in b.anims){if(b.anims.hasOwnProperty(e)){a=b.anims[e];f=a.anim;if(a.attributes&&f.isRunning()){b.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){f.lastFrame()}}}}}}}},1,0,0,0,0,[['queue',Ext.fx.Queue]],[Ext.fx,'Manager'],0);Ext.cmd.derive('Ext.fx.Animator',Ext.Base,{isAnimator:!0,duration:250,delay:0,delayStart:0,dynamic:!1,easing:'ease',running:!1,paused:!1,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(b){var a=this;b=Ext.apply(a,b||{});a.config=b;a.id=Ext.id(null,'ext-animator-');a.mixins.observable.constructor.call(a,b);a.timeline=[];a.createTimeline(a.keyframes);if(a.target){a.applyAnimator(a.target);Ext.fx.Manager.addAnim(a)}},sorter:function(a,b){return a.pct-b.pct},createTimeline:function(e){var d=this,b=[],k=d.to||{},g=d.duration,h,j,c,i,a,f;for(a in e){if(e.hasOwnProperty(a)&&d.animKeyFramesRE.test(a)){f={attrs:Ext.apply(e[a],k)};if(a==='from'){a=0}else {if(a==='to'){a=100}}f.pct=parseInt(a,10);b.push(f)}}Ext.Array.sort(b,d.sorter);i=b.length;for(c=0;c0},isRunning:function(){return !1}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Animator'],0);Ext.cmd.derive('Ext.fx.CubicBezier',Ext.Base,{singleton:!0,cubicBezierAtTime:function(l,d,e,i,j,h){var a=3*d,b=3*(i-d)-a,f=1-a-b,c=3*e,g=3*(j-e)-c,k=1-c-g;function sampleCurveX(c){return ((f*c+b)*c+a)*c}function solve(f,b){var a=solveCurveX(f,b);return ((k*a+g)*a+c)*a}function solveCurveX(n,q){var g,k,c,m,o,p;for(c=n,p=0;p<8;p++){m=sampleCurveX(c)-n;if(Math.abs(m)k){return k}while(gm){g=c}else {k=c}c=(k-g)/2+g}return c}return solve(l,1/(200*h))},cubicBezier:function(b,d,c,e){var a=function(a){return Ext.fx.CubicBezier.cubicBezierAtTime(a,b,d,c,e,1)};a.toCSS3=function(){return 'cubic-bezier('+[b,d,c,e].join(',')+')'};a.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-c,1-e,1-b,1-d)};return a}},0,0,0,0,0,0,[Ext.fx,'CubicBezier'],0);Ext.cmd.derive('Ext.fx.Easing',Ext.Base,function(){var b=Math,g=b.PI,a=b.pow,f=b.sin,e=b.sqrt,d=b.abs,c=1.70158;return {singleton:!0,linear:Ext.identityFn,ease:function(k){var c=0.07813-k/2,f=e(0.0066+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.25;return a(1-b,2)*3*b*0.1+(1-b)*3*b*b+b*b*b},easeIn:function(b){return a(b,1.7)},easeOut:function(b){return a(b,0.48)},easeInOut:function(k){var c=0.48-k/1.04,f=e(0.1734+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.5;return (1-b)*3*b*b+b*b*b},backIn:function(a){return a*a*((c+1)*a-c)},backOut:function(a){a=a-1;return a*a*((c+1)*a+c)+1},elasticIn:function(b){if(b===0||b===1){return b}var c=0.3,d=c/4;return a(2,-10*b)*f((b-d)*(2*g)/c)+1},elasticOut:function(a){return 1-Ext.fx.Easing.elasticIn(1-a)},bounceIn:function(a){return 1-Ext.fx.Easing.bounceOut(1-a)},bounceOut:function(a){var d=7.5625,b=2.75,c;if(a<1/b){c=d*a*a}else {if(a<2/b){a-=1.5/b;c=d*a*a+0.75}else {if(a<2.5/b){a-=2.25/b;c=d*a*a+0.9375}else {a-=2.625/b;c=d*a*a+0.984375}}}return c}}},0,0,0,0,0,0,[Ext.fx,'Easing'],function(c){var b=c.self,a=b.prototype;b.addMembers({'back-in':a.backIn,'back-out':a.backOut,'ease-in':a.easeIn,'ease-out':a.easeOut,'elastic-in':a.elasticIn,'elastic-out':a.elasticOut,'bounce-in':a.bounceIn,'bounce-out':a.bounceOut,'ease-in-out':a.easeInOut})});Ext.cmd.derive('Ext.fx.DrawPath',Ext.Base,{singleton:!0,pathToStringRE:/,?([achlmqrstvxz]),?/gi,pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,stopsRE:/^(\d+%?)$/,radian:Math.PI/180,is:function(b,a){a=String(a).toLowerCase();return a=='object'&&b===Object(b)||a=='undefined'&&typeof b==a||a=='null'&&b===null||a=='array'&&Array.isArray&&Array.isArray(b)||Object.prototype.toString.call(b).toLowerCase().slice(8,-1)==a},path2string:function(){return this.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},pathToString:function(a){return a.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},parsePathString:function(c){if(!c){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=[],b=this;if(b.is(c,'array')&&b.is(c[0],'array')){a=b.pathClone(c)}if(!a.length){String(c).replace(b.pathCommandRE,function(i,g,h){var e=[],f=g.toLowerCase();h.replace(b.pathValuesRE,function(b,a){if(a){e.push(+a)}});if(f=='m'&&e.length>2){a.push([g].concat(Ext.Array.splice(e,0,2)));f='l';g=g=='m'?'l':'L'}while(e.length>=d[f]){a.push([g].concat(Ext.Array.splice(e,0,d[f])));if(!d[f]){break}}})}a.toString=b.path2string;return a},pathClone:function(a){var d=[],c,f,b,e;if(!this.is(a,'array')||!this.is(a&&a[0],'array')){a=this.parsePathString(a)}for(b=0,e=a.length;b7){a[d].shift();var e=a[d];while(e.length){Ext.Array.splice(a,d++,0,['C'].concat(Ext.Array.splice(e,0,6)))}Ext.Array.erase(a,d,1);j=Math.max(c.length,b.length||0)}},m=function(d,f,e,g,a){if(d&&f&&d[a][0]=='M'&&f[a][0]!='M'){Ext.Array.splice(f,a,0,['M',g.x,g.y]);e.bx=0;e.by=0;e.x=d[a][1];e.y=d[a][2];j=Math.max(c.length,b.length||0)}},a,j,g,f,i,h;for(a=0,j=Math.max(c.length,b.length||0);a1){u=N(u);d=u*d;c=u*c}x=d*d;y=c*c;I=(X==v?-1:1)*N(R((x*y-x*j*j-y*i*i)/(x*j*j+y*i*i)));q=I*d*j/c+(m+e)/2;r=I*-c*i/d+(n+f)/2;b=M(((n-r)/c).toFixed(7));a=M(((f-r)/c).toFixed(7));b=ma){b=b-k*2}if(!v&&a>b){a=a-k*2}}else {b=o[0];a=o[1];q=o[2];r=o[3]}z=a-b;if(R(z)>Q){L=a;O=e;P=f;a=b+Q*(v&&a>b?1:-1);e=q+d*B(a);f=r+c*C(a);g=s.arc2curve(e,f,d,c,K,0,v,O,P,[a,L,q,r])}z=a-b;S=B(b);V=C(b);T=B(a);W=C(a);J=p.tan(z/4);D=4/3*d*J;E=4/3*c*J;F=[m,n];l=[m+D*V,n-E*S];G=[e+D*W,f-E*T];H=[e,f];l[0]=2*F[0]-l[0];l[1]=2*F[1]-l[1];if(o){return [l,G,H].concat(g)}else {g=[l,G,H].concat(g).join().split(',');A=[];U=g.length;for(h=0;h=d){b=d;f=!0}if(a.reverse){b=d-b}for(c in e){if(e.hasOwnProperty(c)){h=e[c];g=f?1:k(b/d);i[c]=j[c].set(h,g)}}a.frameCount++;return i},lastFrame:function(){var a=this,c=a.iterations,b=a.currentIteration;b++;if(b0},isRunning:function(){return this.paused===!1&&this.running===!0&&this.isAnimator!==!0}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Anim'],0);Ext.enableFx=!0;Ext.cmd.derive('Ext.util.Animate',Ext.Base,{mixinId:'animate',isAnimate:!0,animate:function(b){var a=this;if(Ext.fx.Manager.hasFxBlock(a.id)){return a}Ext.fx.Manager.queueFx(new Ext.fx.Anim(a.anim(b)));return this},anim:function(a){if(!Ext.isObject(a)){return a?{}:!1}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:!0},a)},getAnimationProps:function(){var b=this,a=b.layout;return a&&a.animate?a.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,'stopAnimation'),stopAnimation:function(){Ext.fx.Manager.stopAnimation(this.id);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!0});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!1});return this},hasActiveFx:Ext.Function.alias(Ext.util.Animate,'getActiveAnimation'),getActiveAnimation:function(){return Ext.fx.Manager.getActiveAnimation(this.id)}},0,0,0,0,0,0,[Ext.util,'Animate'],0);Ext.cmd.derive('Ext.dom.Fly',Ext.dom.Element,{alternateClassName:'Ext.dom.Element.Fly',validNodeTypes:{1:1,9:1,11:1},isFly:!0,constructor:function(a){this.dom=a;this.el=this},attach:function(b){var a=this;if(!b){return a.detach()}a.dom=b;if(!Ext.cache[b.id]){a.getData().isSynchronized=!1}return a},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,'Fly',Ext.dom.Element,'Fly'],function(b){var a={};b.cache=a;Ext.fly=function(c,e){var d=null,h=Ext.fly,f,g;e=e||h.caller&&h.caller.$name||'_global';c=Ext.getDom(c);if(c){f=c.nodeType;if(b.prototype.validNodeTypes[f]||!f&&c.window==c){d=Ext.cache[c.id];if(!d||d.dom!==c){d=a[e]||(a[e]=new b());d.dom=c;g=d.getData(!0);if(g){g.isSynchronized=!1}}}}return d}});Ext.cmd.derive('Ext.dom.CompositeElementLite',Ext.Base,{alternateClassName:['Ext.CompositeElementLite'],isComposite:!0,isLite:!0,statics:{importElementMethods:function(){var b=Ext.dom.Element,a=this.prototype;Ext.Object.each(b.prototype,function(b,c){if(typeof c==='function'&&!a[b]){a[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(a,b){if(b){this.elements=a||[]}else {this.elements=[];this.add(a)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(a,e){var d=this.elements,b,c;if(!a){return this}if(typeof a=='string'){a=Ext.fly(e||document).query(a)}else {if(a.isComposite){a=a.elements}else {if(!Ext.isIterable(a)){a=[a]}}}for(b=0,c=a.length;b-1){a=Ext.getDom(a);if(e){b=this.elements[c];b.parentNode.insertBefore(a,b);Ext.removeNode(b)}Ext.Array.splice(this.elements,c,1,a)}return this},clear:function(c){var d=this,b=d.elements,a=b.length-1;if(c){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(a,d){if(!a){return this}if(typeof a==='string'){a=Ext.dom.Element.selectorFunction(a,d)}var e=this.elements,c=a.length,b;for(b=0;b','','','',''].join(''),O=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,J=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,G=/\ssrc=([\'\"])(.*?)\1/i,v=/\S/,E=/\stype=([\'\"])(.*?)\1/i,I=/^-ms-/,B=/(-[a-z])/gi,L=function(b,a){return a.charAt(1).toUpperCase()},r='x-masked',k='x-masked-relative',m='x-mask-msg',D=/^body/i,l={},u=function(d){var c=d.getData(),b=c[q];if(b===undefined){c[q]=b=a.VISIBILITY}return b},f=b.createRange?b.createRange():null,z={INPUT:!0,TEXTAREA:!0};if(Ext.isIE8){var p=b.createElement('div'),c=[],M=Ext.Function.createBuffered(function(){var b=c.length,a;for(a=0;a"+Ext.String.format(y,a)+''));b.selectNode('.'+a+'-mc').appendChild(this.dom);return b},clean:function(g){var c=this,d=c.dom,e=c.getData(),a=d.firstChild,f=-1,b;if(e.isCleaned&&g!==!0){return c}while(a){b=a.nextSibling;if(a.nodeType===3){if(!v.test(a.nodeValue)){d.removeChild(a)}else {if(b&&b.nodeType===3){a.appendData(Ext.String.trim(b.data));d.removeChild(b);b=a.nextSibling;a.nodeIndex=++f}}}else {Ext.fly(a,'_clean').clean();a.nodeIndex=++f}a=b}e.isCleaned=!0;return c},empty:f?function(){var a=this.dom;if(a.firstChild){f.setStartBefore(a.firstChild);f.setEndAfter(a.lastChild);f.deleteContents()}}:function(){var a=this.dom;while(a.lastChild){a.removeChild(a.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(a){a=a||'';return this.setStyle({left:a,right:a,top:a,bottom:a,'z-index':'',position:'static'})},createProxy:function(b,e,f){b=typeof b==='object'?b:{tag:'div',role:'presentation',cls:b};var d=this,c=e?Ext.DomHelper.append(e,b,!0):Ext.DomHelper.insertBefore(d.dom,b,!0);c.setVisibilityMode(a.DISPLAY);c.hide();if(f&&d.setBox&&d.getBox){c.setBox(d.getBox())}return c},clearOpacity:function(){return this.setOpacity('')},clip:function(){var a=this,c=a.getData(),b;if(!c[g]){c[g]=!0;b=a.getStyle([j,h,i]);c[n]={o:b[j],x:b[h],y:b[i]};a.setStyle(j,e);a.setStyle(h,e);a.setStyle(i,e)}return a},destroy:function(){var b=this,a=b.dom,f=b.getData(),e,d;if(a&&b.isAnimate){b.stopAnimation()}arguments.callee.$previous.call(this);if(a&&Ext.isIE8&&a.window!=a&&a.nodeType!==9&&a.tagName!=='BODY'&&a.tagName!=='HTML'){c[c.length]=a;M()}if(f){e=f.maskEl;d=f.maskMsg;if(e){e.destroy()}if(d){d.destroy()}}},enableDisplayMode:function(c){var b=this;b.setVisibilityMode(a.DISPLAY);if(c!==undefined){b.getData()[K]=c}return b},fadeIn:function(c){var a=this,b=a.dom;a.animate(Ext.apply({},c,{opacity:1,internalListeners:{beforeanimate:function(d){var a=Ext.fly(b,'_anim');if(a.isStyle('display','none')){a.setDisplayed('')}else {a.show()}}}}));return this},fadeOut:function(a){var b=this,c=b.dom;a=Ext.apply({opacity:0,internalListeners:{afteranimate:function(d){if(c&&d.to.opacity===0){var b=Ext.fly(c,'_anim');if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}}}}},a);b.animate(a);return b},fixDisplay:function(){var a=this;if(a.isStyle(d,s)){a.setStyle(o,e);a.setStyle(d,a._getDisplay());if(a.isStyle(d,s)){a.setStyle(d,'block')}}},frame:function(b,c,a){var d=this,f=d.dom,e;b=b||'#C3DAF9';c=c||1;a=a||{};e=function(){var g=Ext.fly(f,'_anim'),i=this,d,e,h;g.show();d=g.getBox();e=Ext.getBody().createChild({role:'presentation',id:g.dom.id+'-anim-proxy',style:{position:'absolute','pointer-events':'none','z-index':35000,border:'0px solid '+b}});h=new Ext.fx.Anim({target:e,duration:a.duration||1000,iterations:c,from:{top:d.y,left:d.x,borderWidth:0,opacity:1,height:d.height,width:d.width},to:{top:d.y-20,left:d.x-20,borderWidth:10,opacity:0,height:d.height+40,width:d.width+40}});h.on('afteranimate',function(){e.destroy();i.end()})};d.animate({duration:Math.max(a.duration,500)*2||2000,listeners:{beforeanimate:{fn:e}},callback:a.callback,scope:a.scope});return d},getColor:function(h,f,c){var a=this.getStyle(h),b=c||c===''?c:'#',d,g,e=0;if(!a||/transparent|inherit/.test(a)){return f}if(/^r/.test(a)){a=a.slice(4,a.length-1).split(',');g=a.length;for(;e5?b.toLowerCase():f},getLoader:function(){var c=this,b=c.getData(),a=b.loader;if(!a){b.loader=a=new Ext.ElementLoader({target:c})}return a},getPositioning:function(c){var a=this.getStyle(['left','top','position','z-index']),b=this.dom;if(c){if(a.left==='auto'){a.left=b.offsetLeft+'px'}if(a.top==='auto'){a.top=b.offsetTop+'px'}}return a},ghost:function(a,e){var b=this,d=b.dom,c;a=a||'b';c=function(){var h=Ext.fly(d,'_anim'),g=h.getWidth(),f=h.getHeight(),c=h.getXY(),i=h.getPositioning(),b={opacity:0};switch(a){case 't':b.y=c[1]-f;break;case 'l':b.x=c[0]-g;break;case 'r':b.x=c[0]+g;break;case 'b':b.y=c[1]+f;break;case 'tl':b.x=c[0]-g;b.y=c[1]-f;break;case 'bl':b.x=c[0]-g;b.y=c[1]+f;break;case 'br':b.x=c[0]+g;b.y=c[1]+f;break;case 'tr':b.x=c[0]+g;b.y=c[1]-f;break;}this.to=b;this.on('afteranimate',function(){var b=Ext.fly(d,'_anim');if(b){b.hide();b.clearOpacity();b.setPositioning(i)}})};b.animate(Ext.applyIf(e||{},{duration:500,easing:'ease-out',listeners:{beforeanimate:c}}));return b},hide:function(a){if(typeof a==='string'){this.setVisible(!1,a);return this}this.setVisible(!1,this.anim(a));return this},highlight:function(k,b){var g=this,e=g.dom,j={},i,h,c,d,a,f;b=b||{};d=b.listeners||{};c=b.attr||'backgroundColor';j[c]=k||'ffff9c';if(!b.to){h={};h[c]=b.endColor||g.getColor(c,'ffffff','')}else {h=b.to}b.listeners=Ext.apply(Ext.apply({},d),{beforeanimate:function(){i=e.style[c];var g=Ext.fly(e,'_anim');g.clearOpacity();g.show();a=d.beforeanimate;if(a){f=a.fn||a;return f.apply(a.scope||d.scope||t,arguments)}},afteranimate:function(){if(e){e.style[c]=i}a=d.afteranimate;if(a){f=a.fn||a;f.apply(a.scope||d.scope||t,arguments)}}});g.animate(Ext.apply({},b,{duration:1000,easing:'ease-in',from:j,to:h}));return g},hover:function(d,e,c,b){var a=this;a.on('mouseenter',d,c||a.dom,b);a.on('mouseleave',e,c||a.dom,b);return a},initDD:function(c,b,a){var d=new Ext.dd.DD(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDProxy:function(c,b,a){var d=new Ext.dd.DDProxy(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDTarget:function(c,b,a){var d=new Ext.dd.DDTarget(Ext.id(this.dom),c,b);return Ext.apply(d,a)},isFocusable:function(){var a=this.dom,b=!1,c;if(a&&!a.disabled){c=a.nodeName;b=!!Ext.Element.naturallyFocusableTags[c]||(c==='A'||c==='LINK')&&!!a.href||a.getAttribute('tabIndex')!=null||a.contentEditable==='true';if(Ext.isIE8&&c==='INPUT'&&a.type==='hidden'){b=!1}b=b&&this.isVisible(!0)}return b},isInputField:function(){var a=this.dom,b=a.contentEditable;if(z[a.tagName]&&a.type!=='button'||(b===''||b==='true')){return !0}return !1},isTabbable:function(f){var c=this.dom,a=!1,e,d,b;if(c&&!c.disabled){e=c.nodeName;b=c.getAttribute('tabIndex');d=b!=null;b-=0;if(e==='A'||e==='LINK'){if(c.href){a=d&&b<0?!1:!0}else {if(c.contentEditable==='true'){a=!d||d&&b>=0?!0:!1}else {a=d&&b>=0?!0:!1}}}else {if(c.contentEditable==='true'||Ext.Element.naturallyTabbableTags[e]){a=d&&b<0?!1:!0}else {if(d&&b>=0){a=!0}}}if(Ext.isIE8&&e==='INPUT'&&c.type==='hidden'){a=!1}a=a&&(f||(!this.component||this.component.isVisible(!0))&&this.isVisible(!0))}return a},isMasked:function(g){var b=this,f=b.getData(),e=f.maskEl,d=f.maskMsg,c=!1,a;if(e&&e.isVisible()){if(d){d.center(b)}c=!0}else {if(g){a=b.findParentNode();if(a){return Ext.fly(a).isMasked(g)}}}return c},load:function(a){this.getLoader().load(a);return this},mask:function(h,f,i){var c=this,d=c.dom,g=c.getData(),a=g.maskEl,e;if(!(D.test(d.tagName)&&c.getStyle('position')==='static')){c.addCls(k)}if(a){a.destroy()}a=Ext.DomHelper.append(d,{role:'presentation',cls:'x-mask x-border-box',children:{role:'presentation',cls:f?m+' '+f:m,cn:{tag:'div',role:'presentation',cls:'x-mask-msg-inner',cn:{tag:'div',role:'presentation',cls:'x-mask-msg-text',html:h||''}}}},!0);e=Ext.get(a.dom.firstChild);g.maskEl=a;c.addCls(r);a.setDisplayed(!0);if(typeof h==='string'){e.setDisplayed(!0);e.center(c)}else {e.setDisplayed(!1)}if(d===b.body){a.addCls('x-mask-fixed')}c.saveTabbableState({skipSelf:d===b.body});if(Ext.isIE9m&&d!==b.body&&c.isStyle('height','auto')){a.setSize(undefined,i||c.getHeight())}return a},monitorMouseLeave:function(e,d,f){var c=this,b,a={mouseleave:function(a){if(Ext.isIE9m){a.enableIEAsync()}b=Ext.defer(d,e,f||c,[a])},mouseenter:function(){clearTimeout(b)}};c.on(a);return a},puff:function(a){var c=this,e=c.dom,d,b=c.getBox(),f=c.getStyle(['width','height','left','right','top','bottom','position','z-index','font-size','opacity'],!0);a=Ext.applyIf(a||{},{easing:'ease-out',duration:500,useDisplay:!1});d=function(){var c=Ext.fly(e,'_anim');c.clearOpacity();c.show();this.to={width:b.width*2,height:b.height*2,x:b.x-b.width/2,y:b.y-b.height/2,opacity:0,fontSize:'200%'};this.on('afteranimate',function(){var b=Ext.fly(e,'_anim');if(b){if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}b.setStyle(f);Ext.callback(a.callback,a.scope)}})};c.animate({duration:a.duration,easing:a.easing,listeners:{beforeanimate:{fn:d}}});return c},selectable:function(){var b=this;b.dom.unselectable='';b.removeCls(a.unselectableCls);b.addCls(a.selectableCls);return b},setCapture:function(){var a=this.dom;if(Ext.isIE9m&&a.setCapture){a.setCapture()}},setHeight:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{height:c}},a))}return b},setHorizontal:function(){var a=this,b=a.verticalCls;delete a.vertical;if(b){delete a.verticalCls;a.removeCls(b)}delete a.setWidth;delete a.setHeight;if(!Ext.isIE8){delete a.getWidth;delete a.getHeight}delete a.styleHooks},updateText:function(d){var e=this,c,a;if(c){a=c.firstChild;if(!a||(a.nodeType!==3||a.nextSibling)){a=b.createTextNode();e.empty();c.appendChild(a)}if(d){a.data=d}}},setHtml:function(c,i,g,d){var a=this,f,e,h;if(!a.dom){return a}c=c||'';e=a.dom;if(i!==!0){e.innerHTML=c;Ext.callback(g,a);return a}f=Ext.id();c+='';h=Ext.interval(function(){var o,e,l,k,j,n,m;if(!(n=b.getElementById(f))){return !1}clearInterval(h);Ext.removeNode(n);o=Ext.getHead().dom;while(e=O.exec(c)){l=e[1];k=l?l.match(G):!1;if(k&&k[2]){m=b.createElement('script');m.src=k[2];j=l.match(E);if(j&&j[2]){m.type=j[2]}o.appendChild(m)}else {if(e[2]&&e[2].length>0){if(d){Ext.functionFactory(e[2]).call(d)}else {Ext.globalEval(e[2])}}}}Ext.callback(g,d||a)},20);e.innerHTML=c.replace(J,'');return a},setOpacity:function(c,b){var a=this;if(!a.dom){return a}if(!b||!a.anim){a.setStyle('opacity',c)}else {if(typeof b!='object'){b={duration:350,easing:'ease-in'}}a.animate(Ext.applyIf({to:{opacity:c}},b))}return a},setPositioning:function(a){return this.setStyle(a)},setVertical:function(e,d){var b=this,c=a.prototype;b.vertical=!0;if(d){b.addCls(b.verticalCls=d)}b.setWidth=c.setHeight;b.setHeight=c.setWidth;if(!Ext.isIE8){b.getWidth=c.getHeight;b.getHeight=c.getWidth}b.styleHooks=e===270?c.verticalStyleHooks270:c.verticalStyleHooks90},setSize:function(c,e,d){var b=this;if(Ext.isObject(c)){d=e;e=c.height;c=c.width}if(!d||!b.anim){b.dom.style.width=a.addUnits(c);b.dom.style.height=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}}else {if(d===!0){d={}}b.animate(Ext.applyIf({to:{width:c,height:e}},d))}return b},setVisible:function(f,g){var b=this,h=b.dom,c=u(b);if(typeof g==='string'){switch(g){case d:c=a.DISPLAY;break;case o:c=a.VISIBILITY;break;case A:c=a.OFFSETS;break;case H:c=a.CLIP;break;}b.setVisibilityMode(c);g=!1}if(!g||!b.anim){if(c===a.DISPLAY){return b.setDisplayed(f)}else {if(c===a.OFFSETS){b[f?'removeCls':'addCls'](N)}else {if(c===a.CLIP){b[f?'removeCls':'addCls'](w)}else {if(c===a.VISIBILITY){b.fixDisplay();h.style.visibility=f?'':e}}}}}else {if(f){b.setOpacity(0.01);b.setVisible(!0)}if(!Ext.isObject(g)){g={duration:350,easing:'ease-in'}}b.animate(Ext.applyIf({callback:function(){if(!f){Ext.fly(h).setVisible(!1).setOpacity(1)}},to:{opacity:f?1:0}},g))}b.getData()[x]=f;if(b.shadow||b.shim){b.setUnderlaysVisible(f)}return b},setWidth:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{width:c}},a))}return b},setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(b,a){var c=this;if(!a||!c.anim){arguments.callee.$previous.call(this,b)}else {if(!Ext.isObject(a)){a={}}c.animate(Ext.applyIf({to:{x:b[0],y:b[1]}},a))}return this},setY:function(b,a){return this.setXY([this.getX(),b],a)},show:function(a){if(typeof a==='string'){this.setVisible(!0,a);return this}this.setVisible(!0,this.anim(a));return this},slideIn:function(a,c,d){var b=this,g=b.dom,h=g.style,j,e,f,i;a=a||'t';c=c||{};j=function(){var p=this,o=c.listeners,m=Ext.fly(g,'_anim'),j,n,l,k;if(!d){m.fixDisplay()}j=m.getBox();if((a=='t'||a=='b')&&j.height===0){j.height=g.scrollHeight}else {if((a=='l'||a=='r')&&j.width===0){j.width=g.scrollWidth}}n=m.getStyle(['width','height','left','right','top','bottom','position','z-index'],!0);m.setSize(j.width,j.height);if(c.preserveScroll){f=m.cacheScrollValues()}k=m.wrap({role:'presentation',id:Ext.id()+'-anim-wrap-for-'+m.dom.id,style:{visibility:d?'visible':'hidden'}});i=k.dom.parentNode;k.setPositioning(m.getPositioning());if(k.isStyle('position','static')){k.position('relative')}m.clearPositioning('auto');k.clip();if(f){f()}m.setStyle({visibility:'',position:'absolute'});if(d){k.setSize(j.width,j.height)}switch(a){case 't':l={from:{width:j.width+'px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';break;case 'l':l={from:{width:'0px',height:j.height+'px'},to:{width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'r':l={from:{x:j.x+j.width,width:'0px',height:j.height+'px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'b':l={from:{y:j.y+j.height,width:j.width+'px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};break;case 'tl':l={from:{x:j.x,y:j.y,width:'0px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('l');break;case 'bl':l={from:{y:j.y+j.height,width:'0px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('l');break;case 'br':l={from:{x:j.x+j.width,y:j.y+j.height,width:'0px',height:'0px'},to:{x:j.x,y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('r');break;case 'tr':l={from:{x:j.x+j.width,width:'0px',height:'0px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('r');break;}k.show();e=Ext.apply({},c);delete e.listeners;e=new Ext.fx.Anim(Ext.applyIf(e,{target:k,duration:500,easing:'ease-out',from:d?l.to:l.from,to:d?l.from:l.to}));e.on('afteranimate',function(){var b=Ext.fly(g,'_anim');b.setStyle(n);if(d){if(c.useDisplay){b.setDisplayed(!1)}else {b.hide()}}if(k.dom){if(k.dom.parentNode){k.dom.parentNode.insertBefore(b.dom,k.dom)}else {i.appendChild(b.dom)}k.destroy()}if(f){f()}p.end()});if(o){e.on(o)}};b.animate({duration:c.duration?Math.max(c.duration,500)*2:1000,listeners:{beforeanimate:j}});return b},slideOut:function(a,b){return this.slideIn(a,b,!0)},swallowEvent:function(a,f){var b=this,c,d,e=function(b){b.stopPropagation();if(f){b.preventDefault()}};if(Ext.isArray(a)){d=a.length;for(c=0;c0){a.setAttribute(e,++f)}else {if(a.hasAttribute('tabIndex')){a.setAttribute(g,a.getAttribute('tabIndex'))}else {a.setAttribute(g,'none')}a.setAttribute('tabIndex','-1');a.setAttribute(e,'1')}}return c},restoreTabbableState:function(k,j){var g=this.dom,c=Ext.Element.tabbableSavedCounterAttribute,e=Ext.Element.tabbableSavedValueAttribute,b=[],h,f,b,a,d,i;if(!g){return this}if(!j){b=Ext.Array.from(g.querySelectorAll('['+c+']'))}if(!k){b.unshift(g)}for(d=0,i=b.length;d1){a.setAttribute(c,--f);continue}h=a.getAttribute(e);if(h==='none'){a.removeAttribute('tabIndex')}else {a.setAttribute('tabIndex',h)}a.removeAttribute(e);a.removeAttribute(c)}return b}},deprecated:{'4.0':{methods:{pause:function(b){var a=this;Ext.fx.Manager.setFxDefaults(a.id,{delay:b});return a},scale:function(c,a,b){this.animate(Ext.apply({},b,{width:c,height:a}));return this},shift:function(a){this.animate(a);return this}}},'4.2':{methods:{moveTo:function(b,c,a){return this.setXY([b,c],a)},setBounds:function(d,e,c,b,a){return this.setBox({x:d,y:e,width:c,height:b},a)},setLeftTop:function(d,e){var b=this,c=b.dom.style;c.left=a.addUnits(d);c.top=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocation:function(b,c,a){return this.setXY([b,c],a)}}},'5.0':{methods:{getAttributeNS:function(a,b){return this.getAttribute(b,a)},getCenterXY:function(){return this.getAlignToXY(b,'c-c')},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(C))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(F))||0},getStyleSize:function(){var d=this,e=this.dom,h=e===b||e===b.body,c,g,f;if(h){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}c=d.getStyle(['height','width'],!0);if(c.width&&c.width!=='auto'){g=parseFloat(c.width)}if(c.height&&c.height!=='auto'){f=parseFloat(c.height)}return {width:g||d.getWidth(!0),height:f||d.getHeight(!0)}},isBorderBox:function(){return !0},isDisplayed:function(){return !this.isStyle('display','none')},focusable:'isFocusable'}}}}}(),function(){var g=Ext.dom.Element,a=g.prototype,t=!Ext.isIE8,f=document,q=f.defaultView,p=/alpha\(opacity=(.*)\)/i,w=/^\s+|\s+$/g,d=a.styleHooks,e=Ext.supports,c,b,l,m,i,j,n;a._init(g);delete a._init;Ext.plainTableCls='x-table-plain';Ext.plainListCls='x-list-plain';if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!e.Opacity&&Ext.isIE){Ext.apply(d.opacity,{get:function(d){var c=d.style.filter,b,a;if(c.match){b=c.match(p);if(b){a=parseFloat(b[1]);if(!isNaN(a)){return a?a/100:0}}}return 1},set:function(d,a){var b=d.style,c=b.filter.replace(p,'').replace(w,'');b.zoom=1;if(typeof a==='number'&&a>=0&&a<1){a*=100;b.filter=c+(c.length?' ':'')+'alpha(opacity='+a+')'}else {b.filter=c}}})}if(!e.matchesSelector){var r=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,v=/\-/g,h,s=function(a,c){var b=new RegExp('(?:^|\\s+)'+c.replace(v,'\\-')+'(?:\\s+|$)');if(a&&a!=='*'){a=a.toUpperCase();return function(d){return d.tagName===a&&b.test(d.className)}}return function(d){return b.test(d.className)}},u=function(a){a=a.toUpperCase();return function(b){return b.tagName===a}},k={};a.matcherCache=k;a.is=function(a){if(!a){return !0}var b=this.dom,g,e,d,c,j,l,i;if(b.nodeType!==1){return !1}if(!(d=Ext.isFunction(a)?a:k[a])){if(!(e=a.match(r))){c=b.parentNode;if(!c){j=!0;c=h||(h=f.createDocumentFragment());h.appendChild(b)}l=Ext.Array.indexOf(Ext.fly(c,'_is').query(a),b)!==-1;if(j){h.removeChild(b)}return l}i=e[1];g=e[2];k[a]=d=g?s(i,g):u(i)}return d(b)}}if(!q||!q.getComputedStyle){a.getStyle=function(o,p){var j=this,e=j.dom,n=typeof o!=='string',a=o,i=a,r=1,m=p,l=j.styleHooks,q,h,d,c,f,b,k;if(n){d={};a=i[0];k=0;if(!(r=i.length)){return d}}if(!e||e.documentElement){return d||''}h=e.style;if(p){b=h}else {b=e.currentStyle;if(!b){m=!0;b=h}}do{c=l[a];if(!c){l[a]=c={name:g.normalize(a)}}if(c.get){f=c.get(e,j,m,b)}else {q=c.name;f=b[q]}if(!n){return f}d[a]=f;a=i[++k]}while(k=9)){a.getAttribute=function(a,c){var d=this.dom,b;if(c){b=typeof d[c+':'+a];if(b!=='undefined'&&b!=='unknown'){return d[c+':'+a]||null}return null}if(a==='for'){a='htmlFor'}return d[a]||null}}Ext.onInternalReady(function(){var o=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,h=[],p=a.setWidth,n=a.setHeight,m=a.setSize,q=/^\d+(?:\.\d*)?px$/i,i,l,k,j;if(e.FixedTableWidthBug){d.width={name:'width',set:function(c,e,f){var a=c.style,b=f._needsTableWidthFix,d=a.display;if(b){a.display='none'}a.width=e;if(b){c.scrollWidth;a.display=d}}};a.setWidth=function(g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}p.call(a,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a};a.setSize=function(h,g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}m.call(a,h,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a}}if(Ext.isIE8){d.height={name:'height',set:function(f,b,e){var a=e.component,d,c;if(a&&a._syncFrameHeight&&e===a.el){c=a.frameBody.dom.style;if(q.test(b)){d=a.getFrameInfo();if(d){c.height=parseInt(b,10)-d.height+'px'}}else {if(!b||b==='auto'){c.height=''}}}f.style.height=b}};a.setHeight=function(b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return n.call(this,b,e)};a.setSize=function(f,b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return m.call(this,f,b,e)}}Ext.getDoc().on('selectstart',function(h,a){var e=g.selectableCls,d=g.unselectableCls,b=a&&a.tagName;b=b&&b.toLowerCase();if(b==='input'||b==='textarea'){return}while(a&&a.nodeType===1&&a!==f.documentElement){var c=Ext.fly(a);if(c.hasCls(e)){return}if(c.hasCls(d)){h.stopEvent();return}a=a.parentNode}});function fixTransparent(d,e,c,b){var a=b[this.name]||'';return o.test(a)?'transparent':a}function makeSelectionRestoreFn(a,b,c){return function(){a.selectionStart=b;a.selectionEnd=c}}function getRightMarginFixCleaner(i){var h=e.DisplayChangeInputSelectionBug,f=e.DisplayChangeTextAreaSelectionBug,a,d,b,c;if(h||f){a=g.getActiveElement();d=a&&a.tagName;if(f&&d==='TEXTAREA'||h&&d==='INPUT'&&a.type==='text'){if(Ext.fly(i).isAncestor(a)){b=a.selectionStart;c=a.selectionEnd;if(Ext.isNumber(b)&&Ext.isNumber(c)){return makeSelectionRestoreFn(a,b,c)}}}}return Ext.emptyFn}function fixRightMargin(c,g,f,e){var b=e.marginRight,a,d;if(b!=='0px'){a=c.style;d=a.display;a.display='inline-block';b=(f?e:c.ownerDocument.defaultView.getComputedStyle(c,null)).marginRight;a.display=d}return b}function fixRightMarginAndInputFocus(b,h,g,f){var c=f.marginRight,a,d,e;if(c!=='0px'){a=b.style;d=getRightMarginFixCleaner(b);e=a.display;a.display='inline-block';c=(g?f:b.ownerDocument.defaultView.getComputedStyle(b,'')).marginRight;a.display=e;d()}return c}if(!e.RightMargin){d.marginRight=d['margin-right']={name:'marginRight',get:e.DisplayChangeInputSelectionBug||e.DisplayChangeTextAreaSelectionBug?fixRightMarginAndInputFocus:fixRightMargin}}if(!e.TransparentColor){i=['background-color','border-color','color','outline-color'];for(l=i.length;l--;){k=i[l];j=g.normalize(k);d[k]=d[j]={name:j,get:fixTransparent}}}a.verticalStyleHooks90=c=Ext.Object.chain(d);a.verticalStyleHooks270=b=Ext.Object.chain(d);c.width=d.height||{name:'height'};c.height=d.width||{name:'width'};c['margin-top']={name:'marginLeft'};c['margin-right']={name:'marginTop'};c['margin-bottom']={name:'marginRight'};c['margin-left']={name:'marginBottom'};c['padding-top']={name:'paddingLeft'};c['padding-right']={name:'paddingTop'};c['padding-bottom']={name:'paddingRight'};c['padding-left']={name:'paddingBottom'};c['border-top']={name:'borderLeft'};c['border-right']={name:'borderTop'};c['border-bottom']={name:'borderRight'};c['border-left']={name:'borderBottom'};b.width=d.height||{name:'height'};b.height=d.width||{name:'width'};b['margin-top']={name:'marginRight'};b['margin-right']={name:'marginBottom'};b['margin-bottom']={name:'marginLeft'};b['margin-left']={name:'marginTop'};b['padding-top']={name:'paddingRight'};b['padding-right']={name:'paddingBottom'};b['padding-bottom']={name:'paddingLeft'};b['padding-left']={name:'paddingTop'};b['border-top']={name:'borderRight'};b['border-right']={name:'borderBottom'};b['border-bottom']={name:'borderLeft'};b['border-left']={name:'borderTop'};if(!Ext.scopeCss){h.push('x-body')}if(e.Touch){h.push('x-touch')}if(Ext.isIE&&Ext.isIE9m){h.push('x-ie','x-ie9m');h.push('x-ie8p');if(Ext.isIE8){h.push('x-ie8')}else {h.push('x-ie9','x-ie9p')}if(Ext.isIE8m){h.push('x-ie8m')}}if(Ext.isIE10){h.push('x-ie10')}if(Ext.isIE10p){h.push('x-ie10p')}if(Ext.isIE11){h.push('x-ie11')}if(Ext.isGecko){h.push('x-gecko')}if(Ext.isOpera){h.push('x-opera')}if(Ext.isOpera12m){h.push('x-opera12m')}if(Ext.isWebKit){h.push('x-webkit')}if(Ext.isSafari){h.push('x-safari')}if(Ext.isChrome){h.push('x-chrome')}if(Ext.isMac){h.push('x-mac')}if(Ext.isLinux){h.push('x-linux')}if(!e.CSS3BorderRadius){h.push('x-nbr')}if(!e.CSS3LinearGradient){h.push('x-nlg')}if(e.Touch){h.push('x-touch')}Ext.getBody().addCls(h)},null,{priority:1500})});Ext.cmd.derive('Ext.GlobalEvents',Ext.mixin.Observable,{alternateClassName:'Ext.globalEvents',observableType:'global',singleton:!0,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},attachListeners:function(){Ext.get(window).on('resize',this.fireResize,this,{buffer:this.resizeBuffer});Ext.getDoc().on('mousedown',this.fireMouseDown,this)},fireMouseDown:function(a){this.fireEvent('mousedown',a)},fireResize:function(){var a=this,d=Ext.Element,c=d.getViewportWidth(),b=d.getViewportHeight();if(a.curHeight!==b||a.curWidth!==c){a.curHeight=b;a.curWidth=c;a.fireEvent('resize',c,b)}}},1,0,0,0,0,0,[Ext,'GlobalEvents',Ext,'globalEvents'],function(a){Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)}});Ext.define('Ext.overrides.GlobalEvents',{override:'Ext.GlobalEvents',deprecated:{5:{methods:{addListener:function(a,d,i,f,h,g,e){var c,b;if(a==='ready'){b=d}else {if(typeof a!=='string'){for(c in a){if(c==='ready'){b=a[c]}}}}if(b){Ext.onReady(b)}this.callParent([a,d,i,f,h,g,e])}}}}});Ext.USE_NATIVE_JSON=!1;Ext.JSON=new function(){var me=this,hasNative=window.JSON&&JSON.toString()==='[object JSON]',useHasOwn=!!{}.hasOwnProperty,pad=function(a){return a<10?'0'+a:a},doDecode=function(json){return eval('('+json+')')},doEncode=function(a,b){if(a===null||a===undefined){return 'null'}else {if(Ext.isDate(a)){return me.encodeDate(a)}else {if(Ext.isString(a)){if(Ext.isMSDate(a)){return me.encodeMSDate(a)}else {return me.encodeString(a)}}else {if(typeof a==='number'){return isFinite(a)?String(a):'null'}else {if(Ext.isBoolean(a)){return String(a)}else {if(a.toJSON){return a.toJSON()}else {if(Ext.isArray(a)){return encodeArray(a,b)}else {if(Ext.isObject(a)){return encodeObject(a,b)}else {if(typeof a==='function'){return 'null'}}}}}}}}}return 'undefined'},m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\','\v':'\\u000b'},charToReplace=/[\\\"\x00-\x1f\x7f-\uffff]/g,encodeString=function(a){return '"'+a.replace(charToReplace,function(b){var c=m[b];return typeof c==='string'?c:'\\u'+('0000'+b.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(a){return '"'+a+'"'},encodeArrayPretty=function(e,d){var f=e.length,c=d+' ',g=','+c,a=['[',c],b;for(b=0;b0}}return c},onBindNotify:function(b,c,a){a.syncing=a.syncing+1||1;this[a._config.names.set](b);--a.syncing},removeBindings:function(){var c=this,a,d,b;if(!c.destroying){a=c.getBind();if(a&&typeof a!=='string'){for(d in a){b=a[d];b.destroy();b._config=b.getTemplateScope=null}}}c.setBind(null)},updateSession:function(a){var b=this.getInherited();if(a){b.session=a}else {delete b.session}},updateViewModel:function(a){var c=this.getInherited(),b=this.getController();if(a){c.viewModel=a;a.setView(this);if(b){b.initViewModel(a)}}else {delete c.viewModel}}}},0,0,0,0,0,0,[Ext.mixin,'Bindable'],0);Ext.cmd.derive('Ext.mixin.ComponentDelegation',Ext.Mixin,{mixinConfig:{id:'componentDelegation'},privates:{addDelegatedListener:function(c,k,j,a,d,i,h){var b=this,e,g,f;d=d||a.order;if(d){f=a&&a.priority;if(!f){a=a?Ext.Object.chain(a):{};a.priority=b.$orderToPriority[d]}}e=b.$delegatedEvents||(b.$delegatedEvents={});g=e[c]||(e[c]=new Ext.util.Event(b,c));if(g.addListener(k,j,a,i,h)){b.$hasDelegatedListeners._incr_(c)}},clearDelegatedListeners:function(){var e=this,a=e.$delegatedEvents,b,c,d;if(a){for(b in a){c=a[b];d=c.listeners.length;c.clearListeners();e.$hasDelegatedListeners._decr_(b,d);delete a[b]}}},doFireDelegatedEvent:function(f,g){var e=this,d=!0,a,b,c;if(e.$hasDelegatedListeners[f]){a=e.getRefOwner();while(a){b=a.$delegatedEvents;if(b){c=b[f];if(c){d=c.fireDelegated(e,g);if(d===!1){break}}}a=a.getRefOwner()}}return d},removeDelegatedListener:function(c,f,e){var d=this,b=d.$delegatedEvents,a;if(b){a=b[c];if(a&&a.removeListener(f,e)){d.$hasDelegatedListeners._decr_(c);if(a.listeners.length===0){delete b[c]}}}}},onClassMixedIn:function(a){function HasListeners(){}a.prototype.HasListeners=a.HasListeners=HasListeners;HasListeners.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,'ComponentDelegation'],function(a){function HasDelegatedListeners(){}a.HasDelegatedListeners=HasDelegatedListeners;HasDelegatedListeners.prototype=a.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()});Ext.cmd.derive('Ext.Widget',Ext.Evented,{isWidget:!0,element:{reference:'element'},observableType:'component',cachedConfig:{style:null},config:{userCls:null},eventedConfig:{width:null,height:null},template:[],constructor:function(c){var a=this,b;a.initId(c);a.initElement();a.mixins.observable.constructor.call(a,c);Ext.ComponentManager.register(a);b=a.getController();if(b){b.init(a)}},afterCachedConfig:function(){var c=this,j=c.self.prototype,f=c.referenceList,i=c.renderElement,d,h,a,b,g,e;j.renderTemplate=d=document.createDocumentFragment();d.appendChild(i.clone(!0,!0));e=d.querySelectorAll('[id]');for(a=0,b=e.length;a]+>/gi,stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},undef:function(a){return a!==undefined?a:''},defaultValue:function(a,b){return a!==undefined&&a!==''?a:b},substr:'ab'.substr(-1)!='b'?function(d,a,c){var b=String(d);return a<0?b.substr(Math.max(b.length+a,0),c):b.substr(a,c)}:function(c,b,a){return String(c).substr(b,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(b){return a.currency(b,'$',2)},currency:function(b,f,c,h){var d='',e=',0',g=0;b=b-0;if(b<0){b=-b;d='-'}c=Ext.isDefined(c)?c:a.currencyPrecision;e+=c>0?'.':'';for(;gb){a=a.substring(a.length-b)}}while(a.length2){}else {if(e.length===2){d=e[1].length;f=e[1].match(a.hashRe);if(f){m=f[0].length;l='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+m+'}$")'}}}b=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts'+(h?',thousandSeparator,thousands=[],j,n,i':'')+(i?',formatString="'+c+'",formatPattern=/[\\d,\\.#]+/':'')+',trailingZeroes;return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";neg=v<0;','absVal=Math.abs(v);','fnum=Ext.Number.toFixed(absVal, '+d+');',l,';'];if(h){if(d){b[b.length]='parts=fnum.split(".");';b[b.length]='fnum=parts[0];'}b[b.length]='if(absVal>=1000) {';b[b.length]='thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i')},capitalize:Ext.String.capitalize,uncapitalize:Ext.String.uncapitalize,ellipsis:Ext.String.ellipsis,escape:Ext.String.escape,escapeRegex:Ext.String.escapeRegex,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,toggle:Ext.String.toggle,trim:Ext.String.trim,parseBox:function(b){b=b||0;if(typeof b==='number'){return {top:b,right:b,bottom:b,left:b}}var a=b.split(' '),c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else {if(c===2){a[2]=a[0];a[3]=a[1]}else {if(c===3){a[3]=a[1]}}}return {top:parseInt(a[0],10)||0,right:parseInt(a[1],10)||0,bottom:parseInt(a[2],10)||0,left:parseInt(a[3],10)||0}}}},1,0,0,0,0,0,[Ext.util,'Format'],0);Ext.cmd.derive('Ext.Template',Ext.Base,{inheritableStatics:{from:function(a,b){a=Ext.getDom(a);return new this(a.value||a.innerHTML,b||'')}},useEval:Ext.isGecko,constructor:function(g){var d=this,c=arguments,f=[],e,b=c.length,a;d.initialConfig={};if(b===1&&Ext.isArray(g)){c=g;b=c.length}if(b>1){for(e=0;e]*)\>)|(?:<\/tpl>)/g,actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g,propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/,defaultRe:/^\s*default\s*$/,elseRe:/^\s*else\s*$/},1,0,0,0,0,0,[Ext.util,'XTemplateParser'],0);Ext.cmd.derive('Ext.util.XTemplateCompiler',Ext.util.XTemplateParser,{useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:!0,propNameRe:/^[\w\d\$]*$/,compile:function(c){var a=this,b=a.generate(c);return a.useEval?a.evalTpl(b):(new Function('Ext',b))(Ext)},generate:function(d){var a=this,b='var fm=Ext.util.Format,ts=Object.prototype.toString;',c;a.maxLevel=0;a.body=['var c0=values, a0='+a.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(a.definitions){if(typeof a.definitions==='string'){a.definitions=[a.definitions,b]}else {a.definitions.push(b)}}else {a.definitions=[b]}a.switches=[];a.parse(d);a.definitions.push((a.useEval?'$=':'return')+' function ('+a.fnArgs+') {',a.body.join(''),'}');c=a.definitions.join('\n');a.definitions.length=a.body.length=a.switches.length=0;delete a.definitions;delete a.body;delete a.switches;return c},doText:function(a){var b=this,c=b.body;a=a.replace(b.aposRe,"\\'").replace(b.newLineRe,'\\n');if(b.useIndex){c.push("out[out.length]='",a,"'\n")}else {c.push("out.push('",a,"')\n")}},doExpr:function(b){var a=this.body;a.push('if ((v='+b+') != null) out');if(this.useIndex){a.push("[out.length]=v+''\n")}else {a.push(".push(v+'')\n")}},doTag:function(b){var a=this.parseTag(b);if(a){this.doExpr(a)}else {this.doText('{'+b+'}')}},doElse:function(){this.body.push('} else {\n')},doEval:function(a){this.body.push(a,'\n')},doIf:function(b,c){var a=this;if(b==='.'){a.body.push('if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('if (',a.parseTag(b),') {\n')}else {a.body.push('if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==='.'){a.body.push('else if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('} else if (',a.parseTag(b),') {\n')}else {a.body.push('} else if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doSwitch:function(b){var a=this,c;if(b==='.'||b==='#'){c=b==='.'?'values':'xindex';a.body.push('switch (',c,') {\n')}else {if(a.propNameRe.test(b)){a.body.push('switch (',a.parseTag(b),') {\n')}else {a.body.push('switch (',a.addFn(b),a.callFn,') {\n')}}a.switches.push(0)},doCase:function(e){var a=this,c=Ext.isArray(e)?e:[e],d=a.switches.length-1,f,b;if(a.switches[d]){a.body.push('break;\n')}else {a.switches[d]++}for(b=0,d=c.length;b1){ out.push("',d.between,'"); } \n')}},doForEach:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else {if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}}if(b.maxLevel1){ out.push("',d.between,'"); } \n')}},createArrayTest:'isArray' in Array?function(a){return 'Array.isArray(c'+a+')'}:function(a){return 'ts.call(c'+a+')==="[object Array]"'},doExec:function(d,e){var a=this,c='f'+a.definitions.length,b=a.guards[a.strict?0:1];a.definitions.push('function '+c+'('+a.fnArgs+') {',b.doTry,' var $v = values; with($v) {',' '+d,' }',b.doCatch,'}');a.body.push(c+a.callFn+'\n')},guards:[{doTry:'',doCatch:''},{doTry:'try { ',doCatch:' } catch(e) {\n}'}],addFn:function(c){var a=this,b='f'+a.definitions.length,d=a.guards[a.strict?0:1];if(c==='.'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return values','}')}else {if(c==='..'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return parent','}')}else {a.definitions.push('function '+b+'('+a.fnArgs+') {',d.doTry,' var $v = values; with($v) {',' return('+c+')',' }',d.doCatch,'}')}}return b},parseTag:function(h){var e=this,f=e.tagRe.exec(h),a,c,d,g,b;if(!f){return null}a=f[1];c=f[2];d=f[3];g=f[4];if(a=='.'){if(!e.validTypes){e.definitions.push('var validTypes={string:1,number:1,boolean:1};');e.validTypes=!0}b='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else {if(a=='#'){b='xindex'}else {if(a=='$'){b='xkey'}else {if(a.substr(0,7)=='parent.'){b=a}else {if(isNaN(a)&&a.indexOf('-')==-1&&a.indexOf('.')!=-1){b='values.'+a}else {b="values['"+a+"']"}}}}}if(g){b='('+b+g+')'}if(c&&e.useFormat){d=d?','+d:'';if(c.substr(0,5)!='this.'){c='fm.'+c+'('}else {c+='('}}else {return b}return c+b+d+')'},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},0,0,0,0,0,0,[Ext.util,'XTemplateCompiler'],function(){var a=this.prototype;a.fnArgs='out,values,parent,xindex,xcount,xkey';a.callFn='.call(this,'+a.fnArgs+')'});Ext.cmd.derive('Ext.XTemplate',Ext.Template,{isXTemplate:!0,emptyObj:{},fn:null,strict:!1,apply:function(b,a,d,c){return this.applyOut(b,[],a,d,c).join('')},applyOut:function(g,d,f,c,b){var a=this,e;if(!a.fn){e=new Ext.util.XTemplateCompiler({useFormat:a.disableFormats!==!0,definitions:a.definitions,strict:a.strict});a.fn=e.compile(a.html)}c=c||1;b=b||1;if(a.strict){a.fn(d,g,f||a.emptyObj,c,b)}else {try{a.fn(d,g,f||a.emptyObj,c,b)}catch(h){}}return d},compile:function(){return this},statics:{getTpl:function(c,d){var b=c[d],a;if(b&&!b.isTemplate){b=Ext.ClassManager.dynInstantiate('Ext.XTemplate',b);if(c.hasOwnProperty(d)){a=c}else {for(a=c.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=b;b.owner=a}return b||null}}},0,0,0,0,0,0,[Ext,'XTemplate'],0);Ext.cmd.derive('Ext.app.EventDomain',Ext.Base,{statics:{instances:{}},isEventDomain:!0,isInstance:!1,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(l,h,m){h=Ext.canonicalEventName(h);var j=this,n=j.bus,b=n[h],c,a,i,g,e,k,d,f;if(!b){return !0}for(c in b){if(b.hasOwnProperty(c)&&j.match(l,c,j.controller)){a=b[c];for(i in a){if(a.hasOwnProperty(i)){g=a[i];if(g.controller.isActive()){e=g.list;k=e.length;for(d=0;da.clientWidth}}if(e==='scroll'){h=!0}else {if(e){h=a.scrollHeight>a.clientHeight}}if(g){i=f.height}if(h){j=f.width}}}return {width:j,height:i}},getPosition:function(){return this.position},updateDirectionLock:Ext.emptyFn,updateDisabled:Ext.emptyFn,updateIndicators:Ext.emptyFn,updateMaxPosition:Ext.emptyFn,updateMaxUserPosition:Ext.emptyFn,updateMinPosition:Ext.emptyFn,updateMinUserPosition:Ext.emptyFn,updateMomenumEasing:Ext.emptyFn,updateX:Ext.emptyFn,updateY:Ext.emptyFn,onPartnerScrollStart:Ext.emptyFn,onPartnerScrollEnd:Ext.emptyFn,refresh:function(){this.fireEvent('refresh',this);return this},removePartner:function(c){var b=this._partners,a=c._partners;if(b){delete b[c.getId()]}if(a){delete a[this.getId()]}},scrollBy:function(a,b,c){var d=this.getPosition();if(a){if(a.length){c=b;b=a[1];a=a[0]}else {if(typeof a!=='number'){c=b;b=a.y;a=a.x}}}a=typeof a==='number'?a+d.x:null;b=typeof b==='number'?b+d.y:null;return this.doScrollTo(a,b,c)},scrollIntoView:function(d,i,h,e){var a=this,c=a.getPosition(),b,f,g,j=a.getElement();if(d){b=Ext.fly(d).getScrollIntoViewXY(j,c.x,c.y);f=i===!1?c.x:b.x;g=b.y;if(e){a.on({scrollend:'doHighlight',scope:a,single:!0,args:[d,e]})}a.doScrollTo(f,g,h)}},isInView:function(d){var f=this,c={x:!1,y:!1},b,e=f.getElement(),a;if(d&&e.contains(d)){a=e.getRegion();b=Ext.fly(d).getRegion();c.x=b.right>a.left&&b.lefta.top&&b.top0){b-=1}if(c>0){c-=1}e.setSpacerXY({x:b,y:c});d.show()}}},deprecated:{5:{methods:{getScroller:function(){return this}}},'5.1.0':{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}},privates:{getSpacer:function(){var b=this,a=b._spacer,c;if(!a){c=b.getElement();a=b._spacer=c.createChild({cls:b._spacerCls,role:'presentation'});a.setVisibilityMode(2);c.position()}return a},applySpacerXY:function(a,b){if(b&&a.x===b.x&&a.y===b.y){a=undefined}return a},updateSpacerXY:function(a){this.getSpacer().setLocalXY(a.x,a.y)},convertX:function(a){return a},doHighlight:function(b,a){if(a!==!0){Ext.fly(b).highlight(a)}else {Ext.fly(b).highlight()}},fireScrollStart:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollStart',b,c);if(a.hasListeners.scrollstart){a.fireEvent('scrollstart',a,b,c)}if(d&&d.onScrollStart){d.onScrollStart(b,c)}Ext.GlobalEvents.fireEvent('scrollstart',a,b,c)},fireScroll:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScroll',b,c);if(a.hasListeners.scroll){a.fireEvent('scroll',a,b,c)}if(d&&d.onScrollMove){d.onScrollMove(b,c)}Ext.GlobalEvents.fireEvent('scroll',a,b,c)},fireScrollEnd:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollEnd',b,c);if(a.hasListeners.scrollend){a.fireEvent('scrollend',a,b,c)}if(d&&d.onScrollEnd){d.onScrollEnd(b,c)}Ext.GlobalEvents.fireEvent('scrollend',a,b,c)},initXStyle:function(){var b=this.getElement(),a=this.getX();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-x',a)}},initYStyle:function(){var b=this.getElement(),a=this.getY();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-y',a)}},invokePartners:function(d,g,h){var b=this,c=b._partners,a,e,f=d==='onPartnerScrollEnd';if(!b.suspendSync&!b.isReflecting){for(e in c){a=c[e].scroller;a.isReflecting=!0;a[d](b,g,h);if(f){a.isReflecting=!1}}}},clearReflecting:function(){this.isReflecting=!1},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(){if(this.suspendSync){this.suspendSync--}},updateDomScrollPosition:function(){var a=this,d=a.getElement(),b,c=a.position;if(d&&!d.destroyed){b=a.getElementScroll(d);c.x=b.left;c.y=b.top}a.positionDirty=!1;return c},getElementScroll:function(a){return a.getScroll()},onDomScroll:function(){var a=this,b,d,e,c;if(a.isTouchScroller&&Ext.supports.touchScroll===2){c=a.getElement().dom;c.scrollTop=c.scrollLeft=0;return}b=a.updateDomScrollPosition();d=b.x;e=b.y;if(!a.isScrolling){a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(d,e)}a.fireScroll(d,e);a.onDomScrollEnd()},onDomScrollEnd:function(){var a=this,b=a.getPosition(),c=b.x,d=b.y;a.isScrolling=Ext.isScrolling=!1;a.trackingScrollLeft=c;a.trackingScrollTop=d;a.fireScrollEnd(c,d)},onPartnerScroll:function(d,b,c){var a=d._partners[this.getId()].axis;if(a){if(a==='x'){c=null}else {if(a==='y'){b=null}}}this.doScrollTo(b,c,!1,!0)},restoreState:function(){var a=this,c=a.getElement(),b;if(c){b=c.dom;if(a.trackingScrollTop!==undefined){b.scrollTop=a.trackingScrollTop;b.scrollLeft=a.trackingScrollLeft}}}}},1,0,0,0,['scroller.scroller'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.scroll,'Scroller'],0);Ext.cmd.derive('Ext.fx.easing.Abstract',Ext.Base,{config:{startTime:0,startValue:0},isEasing:!0,isEnded:!1,constructor:function(a){this.initConfig(a);return this},applyStartTime:function(a){if(!a){a=Ext.Date.now()}return a},updateStartTime:function(a){this.reset()},reset:function(){this.isEnded=!1},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,'Abstract'],0);Ext.cmd.derive('Ext.fx.easing.Momentum',Ext.fx.easing.Abstract,{config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(b){var a=Math.log(1-b/10);this.theta=a;this.alpha=a/this.getAcceleration()},updateStartVelocity:function(a){this.velocity=a*this.getAcceleration()},updateAcceleration:function(a){this.velocity=this.getStartVelocity()*a;this.alpha=this.theta/a},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var a=Ext.Date.now()-this.getStartTime();return Math.exp(a*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}},0,0,0,0,0,0,[Ext.fx.easing,'Momentum'],0);Ext.cmd.derive('Ext.fx.easing.Bounce',Ext.fx.easing.Abstract,{config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var b=Ext.Date.now()-this.getStartTime(),a=b/this.getAcceleration(),c=a*Math.pow(Math.E,-this.getSpringTension()*a);return this.getStartValue()+this.getStartVelocity()*c}},0,0,0,0,0,0,[Ext.fx.easing,'Bounce'],0);Ext.cmd.derive('Ext.fx.easing.BoundMomentum',Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(b,a){return Ext.factory(b,Ext.fx.easing.Momentum,a)},applyBounce:function(b,a){return Ext.factory(b,Ext.fx.easing.Bounce,a)},updateStartTime:function(a){this.getMomentum().setStartTime(a);Ext.fx.easing.Abstract.prototype.updateStartTime.apply(this,arguments)},updateStartVelocity:function(a){this.getMomentum().setStartVelocity(a)},updateStartValue:function(a){this.getMomentum().setStartValue(a)},reset:function(){this.lastValue=null;this.isBouncingBack=!1;this.isOutOfBound=!1;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var d=this.getMomentum(),j=this.getBounce(),f=d.getStartVelocity(),b=f>0?1:-1,i=this.getMinMomentumValue(),h=this.getMaxMomentumValue(),g=b==1?h:i,c=this.lastValue,a,e;if(f===0){return this.getStartValue()}if(!this.isOutOfBound){a=d.getValue();e=d.getVelocity();if(Math.abs(e)=i&&a<=h){return a}this.isOutOfBound=!0;j.setStartTime(Ext.Date.now()).setStartVelocity(e).setStartValue(g)}a=j.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(c!==null){if(b==1&&ac){this.isBouncingBack=!0}}}else {if(Math.round(a)==g){this.isEnded=!0}}}this.lastValue=a;return a}},0,0,0,0,0,0,[Ext.fx.easing,'BoundMomentum'],0);Ext.cmd.derive('Ext.fx.easing.Linear',Ext.fx.easing.Abstract,{config:{duration:0,endValue:0},updateStartValue:function(a){this.distance=this.getEndValue()-a},updateEndValue:function(a){this.distance=a-this.getStartValue()},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration();if(a>b){this.isEnded=!0;return this.getEndValue()}else {return this.getStartValue()+a/b*this.distance}}},0,0,0,0,['easing.linear'],0,[Ext.fx.easing,'Linear'],0);Ext.cmd.derive('Ext.fx.easing.EaseOut',Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,i=a/b,h=1-i,g=1-Math.pow(h,this.getExponent()),c=d+g*e;if(a>=b){this.isEnded=!0;return f}return c}},0,0,0,0,['easing.ease-out'],0,[Ext.fx.easing,'EaseOut'],0);Ext.cmd.derive('Ext.util.translatable.Abstract',Ext.Evented,{config:{useWrapper:null,easing:null,easingX:null,easingY:null},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:!1,isTranslatable:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,'easing')},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},doTranslate:Ext.emptyFn,translate:function(a,b,c){if(c){return this.translateAnimated(a,b,c)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a=='number'){this.x=a}if(!isNaN(b)&&typeof b=='number'){this.y=b}this.doTranslate(a,b)},translateAxis:function(e,a,d){var b,c;if(e=='x'){b=a}else {c=a}return this.translate(b,c,d)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(a,b){this.activeEasingX=a;this.activeEasingY=b;this.isAnimating=!0;this.lastX=null;this.lastY=null;Ext.AnimationQueue.start(this.doAnimationFrame,this);this.fireEvent('animationstart',this,this.x,this.y);return this},translateAnimated:function(g,h,a){var b=this;if(!Ext.isObject(a)){a={}}if(b.isAnimating){b.stopAnimation()}b.callback=a.callback;b.callbackScope=a.scope;var f=Ext.Date.now(),e=a.easing,c=typeof g=='number'?a.easingX||e||b.getEasingX()||!0:null,d=typeof h=='number'?a.easingY||e||b.getEasingY()||!0:null;if(c){c=b.factoryEasing(c);c.setStartTime(f);c.setStartValue(b.x);c.setEndValue(g);if('duration' in a){c.setDuration(a.duration)}}if(d){d=b.factoryEasing(d);d.setStartTime(f);d.setStartValue(b.y);d.setEndValue(h);if('duration' in a){d.setDuration(a.duration)}}return b.animate(c,d)},doAnimationFrame:function(){var a=this,d=a.activeEasingX,e=a.activeEasingY,f=Date.now(),b,c;if(!a.isAnimating){return}a.lastRun=f;if(d===null&&e===null){a.stopAnimation();return}if(d!==null){a.x=b=Math.round(d.getValue());if(d.isEnded){a.activeEasingX=null;a.fireEvent('axisanimationend',a,'x',b)}}else {b=a.x}if(e!==null){a.y=c=Math.round(e.getValue());if(e.isEnded){a.activeEasingY=null;a.fireEvent('axisanimationend',a,'y',c)}}else {c=a.y}if(a.lastX!==b||a.lastY!==c){a.doTranslate(b,c);a.lastX=b;a.lastY=c}a.fireEvent('animationframe',a,b,c)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=!1;Ext.AnimationQueue.stop(a.doAnimationFrame,a);a.fireEvent('animationend',a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){if(this.isAnimating){this.stopAnimation()}Ext.Evented.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.translatable,'Abstract'],0);Ext.cmd.derive('Ext.util.translatable.Dom',Ext.util.translatable.Abstract,{config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,'Dom'],0);Ext.cmd.derive('Ext.util.translatable.CssTransform',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement();if(!this.destroyed&&!a.destroyed){a.translate(b,c)}},destroy:function(){var a=this.getElement();if(a&&!a.destroyed){a.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssTransform'],0);Ext.cmd.derive('Ext.util.translatable.ScrollPosition',Ext.util.translatable.Dom,{type:'scrollposition',config:{useWrapper:!0},getWrapper:function(){var a=this.wrapper,c=this.getElement(),b;if(!a){b=c.getParent();if(!b){return null}if(b.hasCls('x-translatable-hboxfix')){b=b.getParent()}if(this.getUseWrapper()){a=c.wrap()}else {a=b}c.addCls('x-translatable');a.addCls('x-translatable-container');this.wrapper=a;a.on('painted',function(){if(!this.isAnimating){this.refresh()}},this);this.refresh()}return a},doTranslate:function(c,d){var b=this.getWrapper(),a;if(b){a=b.dom;if(typeof c=='number'){a.scrollLeft=500000-c}if(typeof d=='number'){a.scrollTop=500000-d}}},destroy:function(){var a=this,c=a.getElement(),b=a.wrapper;if(b){if(!c.destroyed){if(a.getUseWrapper()){b.doReplaceWith(c)}c.removeCls('x-translatable')}if(!b.destroyed){b.removeCls('x-translatable-container');b.un('painted','refresh',a)}delete a.wrapper;delete a._element}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollPosition'],0);Ext.cmd.derive('Ext.util.translatable.ScrollParent',Ext.util.translatable.Dom,{isScrollParent:!0,applyElement:function(b){var a=Ext.get(b);if(a){this.parent=a.parent()}return a},doTranslate:function(b,c){var a=this.parent;a.setScrollLeft(Math.round(-b));a.setScrollTop(Math.round(-c))},getPosition:function(){var c=this,a=c.position,b=c.parent;a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollParent'],0);Ext.cmd.derive('Ext.util.translatable.CssPosition',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement().dom.style;if(typeof b=='number'){a.left=b+'px'}if(typeof c=='number'){a.top=c+'px'}},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssPosition'],0);Ext.cmd.derive('Ext.util.Translatable',Ext.Base,{constructor:function(a){var b=Ext.util.translatable;switch(Ext.browser.getPreferredTranslationMethod(a)){case 'scrollposition':return new b.ScrollPosition(a);case 'scrollparent':return new b.ScrollParent(a);case 'csstransform':return new b.CssTransform(a);case 'cssposition':return new b.CssPosition(a);}}},1,0,0,0,0,0,[Ext.util,'Translatable'],0);Ext.cmd.derive('Ext.scroll.Indicator',Ext.Widget,{config:{axis:null,hideAnimation:!0,hideDelay:0,scroller:null,minLength:24},defaultHideAnimation:{to:{opacity:0},duration:300},names:{x:{side:'l',getSize:'getHeight',setLength:'setWidth',translate:'translateX'},y:{side:'t',getSize:'getWidth',setLength:'setHeight',translate:'translateY'}},oppositeAxis:{x:'y',y:'x'},cls:'x-scroll-indicator',applyHideAnimation:function(a){if(a){a=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,a)}return a},constructor:function(c){var a=this,b;Ext.Widget.prototype.constructor.call(this,c);b=a.getAxis();a.names=a.names[b];a.element.addCls(a.cls+' '+a.cls+'-'+b)},hide:function(){var a=this,b=a.getHideDelay();if(b){a._hideTimer=Ext.defer(a.doHide,b,a)}else {a.doHide()}},setValue:function(c){var a=this,o=a.element,l=a.names,m=a.getAxis(),k=a.getScroller(),f=k.getMaxUserPosition()[m],g=k.getElementSize()[m],b=a.length,j=a.getMinLength(),e=b,i=g-b-a.sizeAdjust,h=Math.round,n=Math.max,d;if(c<0){e=h(n(b+b*c/g,j));d=0}else {if(c>f){e=h(n(b-b*(c-f)/g,j));d=i+b-e}else {d=h(c/f*i)}}a[l.translate](d);o[l.setLength](e)},show:function(){var a=this,b=a.element,c=b.getActiveAnimation();if(c){c.end()}if(!a._inDom){a.getScroller().getElement().appendChild(b);a._inDom=!0;if(!a.size){a.cacheStyles()}}a.refreshLength();clearTimeout(a._hideTimer);b.setStyle('opacity','')},privates:{cacheStyles:function(){var a=this,c=a.element,b=a.names;a.size=c[b.getSize]();a.margin=c.getMargin(b.side)},doHide:function(){var a=this.getHideAnimation(),b=this.element;if(a){b.animate(a)}else {b.setStyle('opacity',0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle('opacity','0')},refreshLength:function(){var a=this,i=a.names,g=a.getAxis(),e=a.getScroller(),h=e.getSize()[g],c=e.getElementSize()[g],j=c/h,b=a.margin*2,d=a.hasOpposite()?b+a.size:b,f=Math.max(Math.round((c-d)*j),a.getMinLength());a.sizeAdjust=d;a.length=f;a.element[i.setLength](f)},translateX:function(a){this.element.translate(a)},translateY:function(a){this.element.translate(0,a)}}},1,['scrollindicator'],['widget','scrollindicator'],{'widget':!0,'scrollindicator':!0},['widget.scrollindicator'],0,[Ext.scroll,'Indicator'],0);Ext.cmd.derive('Ext.scroll.TouchScroller',Ext.scroll.Scroller,{isTouchScroller:!0,config:{autoRefresh:!0,bounceEasing:{duration:400},elementSize:undefined,indicators:!0,fps:'auto',maxAbsoluteVelocity:6,momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,innerElement:null,size:undefined,slotSnapEasing:{duration:150},slotSnapOffset:{x:0,y:0},startMomentumResetTime:300,translatable:{translationMethod:'auto',useWrapper:!1}},cls:'x-scroll-container',scrollerCls:'x-scroll-scroller',dragStartTime:0,dragEndTime:0,isDragging:!1,isAnimating:!1,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:'onTouchStart',touchmove:'onTouchMove',dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd'},refreshCounter:0,constructor:function(c){var a=this,b='onEvent';a.elementListeners={touchstart:b,touchmove:b,dragstart:b,drag:b,dragend:b,scope:a};a.minPosition={x:0,y:0};a.startPosition={x:0,y:0};a.velocity={x:0,y:0};a.isAxisEnabledFlags={x:!1,y:!1};a.flickStartPosition={x:0,y:0};a.flickStartTime={x:0,y:0};a.lastDragPosition={x:0,y:0};a.dragDirection={x:0,y:0};Ext.scroll.Scroller.prototype.constructor.call(this,c);a.refreshAxes();a.scheduleRefresh={idle:a.doRefresh,scope:a,single:!0,destroyable:!0}},applyBounceEasing:function(b){var a=Ext.fx.easing.EaseOut;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyElementSize:function(b){var e=this.getElement(),a,c,d;if(!e){return null}a=e.dom;if(!a){return}if(b==null){c=a.clientWidth;d=a.clientHeight}else {c=b.x;d=b.y}return {x:c,y:d}},applyIndicators:function(b,a){var g=this,c,d,e,f;if(b){if(b===!0){c=d={}}else {e=b.x;f=b.y;if(e||f){c=e==null||e===!0?{}:e;d=e==null||f===!0?{}:f}else {c=d=b}}if(a){if(c){a.x.setConfig(c)}else {a.x.destroy();a.x=null}if(d){a.y.setConfig(d)}else {a.y.destroy();a.y=null}b=a}else {b={x:null,y:null};if(c){b.x=new Ext.scroll.Indicator(Ext.applyIf({axis:'x',scroller:g},c))}if(d){b.y=new Ext.scroll.Indicator(Ext.applyIf({axis:'y',scroller:g},d))}}}else {if(a){if(a.x){a.x.destroy()}if(a.y){a.y.destroy()}a.x=a.y=null}}return b},applyMomentumEasing:function(b){var a=Ext.fx.easing.BoundMomentum;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyInnerElement:function(a){if(a&&!a.isElement){a=Ext.get(a)}return a},applyMaxPosition:function(a,c){if(c&&a.x===c.x&&a.y===c.y){return}var d=this.getTranslatable(),b;if(d.isAnimating){b=d.activeEasingY;if(b&&b.getStartVelocity&&b.getStartVelocity()<0&&a.yi){d=i}}if(l){c=a.convertX(c);d=a.convertX(d)}if(d!==null){f=a.getBounceEasing()[b];f.setConfig({startTime:j,startValue:-c,endValue:-d});return f}if(e===0){return null}if(e<-g){e=-g}else {if(e>g){e=g}}f=a.getMomentumEasing()[b];h={startTime:j,startValue:-c,startVelocity:e*1.5,minMomentumValue:-i,maxMomentumValue:0};if(l){a.convertEasingConfig(h)}f.setConfig(h);return f},getSnapPosition:function(d){var e=this,c=e.getSlotSnapSize()[d],f=null,b,h,g,a;if(c!==0&&e.isAxisEnabled(d)){b=e.position[d];h=e.getSlotSnapOffset()[d];g=e.getMaxUserPosition()[d];a=Math.floor((b-h)%c);if(a!==0){if(b!==g){if(Math.abs(a)>c/2){f=Math.min(g,b+(a>0?c-a:a-c))}else {f=b-a}}else {f=b-a}}}return f},hideIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.hide()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.hide()}}}},isAxisEnabled:function(a){this.getX();this.getY();return this.isAxisEnabledFlags[a]},onAnimationEnd:function(){this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(d,b,c){var a=this.position;a.x=this.convertX(-b);a.y=-c;this.onScroll()},onAxisDrag:function(a,k){if(k&&this.isAxisEnabled(a)){var b=this,o=b.flickStartPosition,g=b.flickStartTime,f=b.lastDragPosition,d=b.dragDirection,r=b.position[a],q=b.getMinUserPosition()[a],e=b.getMaxUserPosition()[a],p=b.startPosition[a],l=f[a],c=p-k,i=d[a],h=b.getOutOfBoundRestrictFactor(),n=b.getStartMomentumResetTime(),m=Ext.Date.now(),j;if(ce){j=c-e;c=e+j*h}}if(c>l){d[a]=1}else {if(cn){o[a]=r;g[a]=m}f[a]=c;return !0}},onDomScroll:function(){var c=this,b,a;if(c.getTranslatable().isScrollParent){b=c.getElement().dom;a=c.position;a.x=b.scrollLeft;a.y=b.scrollTop}Ext.scroll.Scroller.prototype.onDomScroll.call(this)},onDrag:function(c){var a=this,b=a.lastDragPosition;if(!a.isDragging){return}if(a.onAxisDrag('x',a.convertX(c.deltaX))|a.onAxisDrag('y',c.deltaY)){a.doScrollTo(b.x,b.y)}},onDragEnd:function(d){var a=this,b,c;if(!a.isDragging){return}a.dragEndTime=Ext.Date.now();a.onDrag(d);a.isDragging=!1;b=a.getAnimationEasing('x',d);c=a.getAnimationEasing('y',d);if(b||c){a.getTranslatable().animate(b,c)}else {a.onScrollEnd()}},onDragStart:function(d){var a=this,b=a.getDirection(),m=d.absDeltaX,n=d.absDeltaY,o=a.getDirectionLock(),l=a.startPosition,g=a.flickStartPosition,j=a.flickStartTime,h=a.lastDragPosition,i=a.position,k=a.dragDirection,e=i.x,f=i.y,c=Ext.Date.now();if(o&&b!=='both'){if(b==='horizontal'&&m>n||b==='vertical'&&n>m){d.stopPropagation()}else {return}}h.x=e;h.y=f;g.x=e;g.y=f;l.x=e;l.y=f;j.x=c;j.y=c;k.x=0;k.y=0;a.dragStartTime=c;a.isDragging=!0;if(!a.isScrolling){a.onScrollStart()}},onElementResize:function(b,a){this.refresh(!0,{elementSize:{x:a.contentWidth,y:a.contentHeight},size:this.getAutoRefresh()?null:this.getSize()})},onElementScroll:function(b,a){a.scrollTop=a.scrollLeft=0},onEvent:function(b){var a=this,c=b.browserEvent;if((!a.self.isTouching||a.isTouching)&&(!a.getTranslatable().isScrollParent||!a.isMouseEvent[c.type]&&c.pointerType!=='mouse')&&(a.getY()||a.getX())){a[a.listenerMap[b.type]](b)}},onInnerElementResize:function(b,a){this.refresh(!0,{size:{x:a.width,y:a.height}})},onMouseWheel:function(j){var a=this,g=j.getWheelDeltas(),c=-g.x,d=-g.y,b=a.position,e=a.getMaxUserPosition(),f=a.getMinUserPosition(),h=Math.max,i=Math.min,k=h(i(b.x+c,e.x),f.x),l=h(i(b.y+d,e.y),f.y);c=k-b.x;d=l-b.y;if(!c&&!d){return}j.stopEvent();a.onScrollStart();a.scrollBy(c,d);a.onScroll();a.onScrollEnd()},onPartnerScrollEnd:function(b,c){var a=this;if(!a.getTranslatable().isScrollParent){a.fireScrollEnd(b,c)}Ext.scroll.Scroller.prototype.onPartnerScrollEnd.call(this,b,c);a.isScrolling=!1;a.hideIndicators()},onPartnerScrollStart:function(b,c){var a=this;a.isScrolling=!0;if(!a.getTranslatable().isScrollParent){a.fireScrollStart(b,c)}a.showIndicators()},onScroll:function(){var a=this,e=a.position,f=e.x,g=e.y,b=a.getIndicators(),c,d;if(b){if(a.isAxisEnabled('x')){c=b.x;if(c){c.setValue(f)}}if(a.isAxisEnabled('y')){d=b.y;if(d){d.setValue(g)}}}a.fireScroll(f,g)},onScrollEnd:function(){var a=this,b=a.position;if(a.isScrolling&&!a.isTouching&&!a.snapToSlot()){a.hideIndicators();a.isScrolling=Ext.isScrolling=!1;a.fireScrollEnd(b.x,b.y)}},onScrollStart:function(){var a=this,b=a.position;if(!a.isScrolling){a.showIndicators();a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(b.x,b.y)}},onTouchEnd:function(){var a=this;a.isTouching=a.self.isTouching=!1;if(!a.isDragging&&a.snapToSlot()){a.onScrollStart()}},onTouchMove:function(a){a.preventDefault()},onTouchStart:function(){var a=this;a.isTouching=a.self.isTouching=!0;Ext.getDoc().on({touchend:'onTouchEnd',scope:a,single:!0});a.stopAnimation()},refreshAxes:function(){var a=this,b=a.isAxisEnabledFlags,k=a.getSize(),h=a.getElementSize(),e=a.getIndicators(),f,g,c,d,i,j;if(!k||!h){return}f=Math.max(0,k.x-h.x);g=Math.max(0,k.y-h.y);c=a.getX();d=a.getY();a.setMaxPosition({x:f,y:g});if(c===!0||c==='auto'){b.x=!!f}else {if(c===!1){b.x=!1;i=e&&e.x;if(i){i.hide()}}else {if(c==='scroll'){b.x=!0}}}if(d===!0||d==='auto'){b.y=!!g}else {if(d===!1){b.y=!1;j=e&&e.y;if(j){j.hide()}}else {if(d==='scroll'){b.y=!0}}}a.setMaxUserPosition({x:b.x?f:0,y:b.y?g:0});if(Ext.supports.touchScroll===1){a.initXStyle();a.initYStyle()}},showIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.show()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.show()}}}},snapToBoundary:function(){var a=this,d=a.getPosition();if(a.isConfiguring||!(d.x||d.y)){return}var f=a.getMinUserPosition(),e=a.getMaxUserPosition(),i=f.x,j=f.y,g=e.x,h=e.y,b=Math.round(d.x),c=Math.round(d.y);if(bg){b=g}}if(ch){c=h}}a.doScrollTo(b,c)},snapToSlot:function(){var a=this,c=a.getSnapPosition('x'),d=a.getSnapPosition('y'),b=a.getSlotSnapEasing();if(c!==null||d!==null){a.doScrollTo(c,d,{easingX:b.x,easingY:b.y});return !0}return !1},stopAnimation:function(){this.getTranslatable().stopAnimation()},toggleResizeListeners:function(e){var c=this,f=c.getElement(),b,a,d;if(f){d=c.getInnerElement();if(e){b=a='on'}else {if(e===null){b='on';a='un'}else {b=a='un'}}f[b]('resize','onElementResize',c);d[a]('resize','onInnerElementResize',c)}},unwrapContent:function(){var a=this.getInnerElement().dom,c=this.getElement().dom,b;while(b=a.firstChild){c.insertBefore(b,a)}},wrapContent:function(d){var a=document.createElement('div'),c=d.dom,b;while(b=c.lastChild){a.insertBefore(b,a.firstChild)}c.appendChild(a);this.setInnerElement(a);this._isWrapped=!0;return this.getInnerElement()}}},1,0,0,0,['scroller.touch'],0,[Ext.scroll,'TouchScroller'],0);Ext.cmd.derive('Ext.scroll.DomScroller',Ext.scroll.Scroller,{isDomScroller:!0,getMaxPosition:function(){var b=this.getElement(),c=0,d=0,a;if(b&&!b.destroyed){a=b.dom;c=a.scrollWidth-a.clientWidth;d=a.scrollHeight-a.clientHeight}return {x:c,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),d=0,e=0,a;if(b&&!b.destroyed){a=b.dom;if(c.getX()){d=a.scrollWidth-a.clientWidth}if(c.getY()){e=a.scrollHeight-a.clientHeight}}return {x:d,y:e}},getPosition:function(){var a=this;if(a.positionDirty){a.updateDomScrollPosition()}return a.position},getSize:function(){var a=this.getElement(),b,c;if(a&&!a.destroyed){c=a.dom;b={x:c.scrollWidth,y:c.scrollHeight}}else {b={x:0,y:0}}return b},updateElement:function(b,a){this.initXStyle();this.initYStyle()},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},privates:{doScrollTo:function(a,b,j){var e=this,d=e.getElement(),f,c,i,g,h,k;if(d&&!d.destroyed){c=d.dom;g=a===Infinity;h=b===Infinity;if(g||h){f=e.getMaxPosition();if(g){a=f.x}if(h){b=f.y}}a=e.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}d.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(b!=null){c.scrollTop=b}if(a!=null){c.scrollLeft=a;if(Ext.isIE8){k=c.scrollLeft;c.scrollLeft=a}}}e.positionDirty=!0}},getElementScroll:function(a){return a.getScroll()},stopAnimation:function(){var a=this.getElement().getActiveAnimation();if(a){a.end()}}}},0,0,0,0,['scroller.dom'],0,[Ext.scroll,'DomScroller'],function(a){Ext.onDocumentReady(function(){a.document=new a({x:!0,y:!0,element:document.body})})});Ext.cmd.derive('Ext.util.Floating',Ext.Base,{mixinId:'floating',focusOnToFront:!0,shadow:'sides',animateShadow:!1,constrain:!1,config:{activeCounter:0,alwaysOnTop:!1},preventDefaultAlign:!1,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var a=this,e=a.el,d=a.shadow,c,b;if(d){b={mode:d===!0?'sides':d};c=a.shadowOffset;if(c){b.offset=c}b.animate=a.animateShadow;b.fixed=a.fixed;e.enableShadow(b,!1)}if(a.shim||Ext.useShims){e.enableShim({fixed:a.fixed},!1)}e.setVisibilityMode(a._visModeMap[a.hideMode]);a.el.on({mousedown:a.onMouseDown,scope:a,capture:!0});a.registerWithOwnerCt();a.initHierarchyEvents()},alignTo:function(b,d,f,e){var a=this,c;Ext.un('scroll',a.onAlignToScroll,a);if(b.isComponent){c=b.el}else {if(b.nodeType){c=Ext.fly(b)}else {c=b}}if(!c.contains(a.el)){Ext.on('scroll',a.onAlignToScroll,a)}a._lastAlignTarget=b;a._lastAlignToPos=d;a.mixins.positionable.alignTo.call(a,c,d,f,e)},initFloatConstrain:function(){var a=this,b=a.floatParent;if((a.constrain||a.constrainHeader)&&!a.constrainTo){a.constrainTo=b?b.getTargetEl():a.container}},initHierarchyEvents:function(){var b=this,a=this.syncHidden;if(!b.hasHierarchyEventListeners){b.mon(Ext.GlobalEvents,{hide:a,collapse:a,show:a,expand:a,added:a,scope:b});b.hasHierarchyEventListeners=!0}},registerWithOwnerCt:function(){var a=this,c=a.ownerCt,b=a.zIndexParent;if(b){b.unregisterFloatingItem(a)}b=a.zIndexParent=a.up('[floating]');a.floatParent=c||b;a.initFloatConstrain();delete a.ownerCt;if(b){b.registerFloatingItem(a)}else {Ext.WindowManager.register(a)}},onMouseDown:function(g){var b=this,f=b.focusTask,c=g.pointerType==='touch',a,d,e;if(b.floating&&(!f||!f.id)){a=g.target;d=b.el.dom;while(!c&&a&&a!==d){if(Ext.fly(a).isFocusable()){c=!0}a=a.parentNode}e=Ext.WindowManager.getActive()===b&&(a===d||c);if(!e){b.toFront(c)}}},onBeforeFloatLayout:function(){this.el.preventSync=!0},onAfterFloatLayout:function(){var a=this.el;if(a.shadow||a.shim){a.setUnderlaysVisible(!0);a.syncUnderlays()}},syncHidden:function(){var a=this,d=a.hidden||!a.rendered,c=a.hierarchicallyHidden=a.isHierarchicallyHidden(),b=a.pendingShow;if(d!==c){if(c){a.hide();a.pendingShow=!0}else {if(b){delete a.pendingShow;if(b.length){a.show.apply(a,b)}else {a.show()}}}}},setZIndex:function(a){var b=this;b.el.setZIndex(a);a+=10;if(b.floatingDescendants){a=Math.floor(b.floatingDescendants.setBase(a)/100)*100+10000}return a},doConstrain:function(c){var a=this,b=a.calculateConstrainedPosition(c,null,!0);if(b){a.setPosition(b)}},updateActiveCounter:function(b){var a=this.zIndexParent;if(a&&this.bringParentToFront!==!1){a.setActiveCounter(++Ext.ZIndexManager.activeCounter)}a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},updateAlwaysOnTop:function(b){var a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},toFront:function(b){var a=this;if(a.zIndexManager.bringToFront(a,b||!a.focusOnToFront)){if(a.hasListeners.tofront){a.fireEvent('tofront',a,a.el.getZIndex())}}return a},setActive:function(d,c){var a=this,b;if(d){if(a.el.shadow&&!a.maximized){a.el.enableShadow(null,!0)}if(c){b=Ext.ComponentManager.getActiveComponent();if(!b||!b.up(a)){a.focus()}}a.fireEvent('activate',a)}else {a.fireEvent('deactivate',a)}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var a=this,b;if(a.isVisible()){b=a.getAlignToXY(a.container,'c-c');a.setPagePosition(b)}else {a.needsCenter=!0}return a},onFloatShow:function(){if(this.needsCenter){this.center()}delete this.needsCenter;if(this.toFrontOnShow){this.toFront()}},fitContainer:function(f){var d=this,c=d.floatParent,a=c?c.getTargetEl():d.container,b=a.getViewSize(),e=c||a.dom!==document.body?[0,0]:a.getXY();b.x=e[0];b.y=e[1];d.setBox(b,f)},privates:{onFloatDestroy:function(){this.clearAlignEl()},clearAlignEl:function(){var a=this;if(a._lastAlignTarget){Ext.un('scroll',a.onAlignToScroll,a);a._lastAlignPos=a._lastAlignTarget=null}},onAlignToScroll:function(e){var b=this,a=b._lastAlignTarget,f=a.isFloating,c,d;if(a){if(a.isComponent){c=a.destroyed;a=a.el}else {if(a.nodeType){a=Ext.fly(a)}d=a.dom;c=!d||Ext.isGarbage(d)}if(c){b.clearAlignEl()}else {if((e.getElement().contains(a)||f)&&!e.getElement().contains(b.el)){b.alignTo(a,b._lastAlignToPos)}}}}}},1,0,0,0,0,0,[Ext.util,'Floating'],0);Ext.cmd.derive('Ext.util.ElementContainer',Ext.Base,{mixinId:'elementCt',config:{childEls:{$value:{},cached:!0,lazy:!0,merge:function(d,f,g,e){var c=f?Ext.Object.chain(f):{},b,a;if(d instanceof Array){for(b=d.length;b--;){a=d[b];if(!e||!(a in c)){if(typeof a==='string'){c[a]={name:a,itemId:a}}else {c[a.name]=a}}}}else {if(d){if(d.constructor===Object){for(b in d){if(!e||!(b in c)){a=d[b];if(a===!0){c[b]={itemId:b}}else {if(typeof a==='string'){c[b]={itemId:a}}else {c[b]=a;if(!('itemId' in a)){a.itemId=b}}}c[b].name=b}}}else {if(!e||!(d in c)){c[d]={name:d,itemId:d}}}}}return c}}},destroy:function(){var c=this,d=c.getChildEls(),a,b;for(b in d){a=c[b];if(a){if(a.destroy){a.component=null;a.destroy()}c[b]=null}}},privates:{addChildEl:function(a){var c=this,b=c.getChildEls();if(!c.hasOwnProperty('childEls')){c.childEls=b=Ext.Object.chain(b)}if(typeof a==='string'){a={name:a,itemId:a}}b[a.name]=a},afterClassMixedIn:function(a){var c=a.prototype,b=c.childEls;if(b){delete c.childEls;a.getConfigurator().add({childEls:b})}},attachChildEls:function(h,n){var i=this,k=i.getChildEls(),e=n||i,m=e.id+'-',l=!e.frame,f,g,b,j,c,a,d;for(f in k){b=k[f];if(l&&b.frame){continue}c=b.select;if(c){a=h.select(c,!0)}else {if(!(c=b.selectNode)){if(!(d=b.id)){d=m+b.itemId;a=Ext.cache[d]}else {a=Ext.cache[d]||h.getById(d)}}else {a=h.selectNode(c,!1)}}if(a){if(a.isElement){a.component=e}else {if(a.isComposite&&!a.isLite){g=a.elements;for(j=g.length;j--;){g[j].component=e}}}}i[f]=a||null}}}},0,0,0,0,0,0,[Ext.util,'ElementContainer'],0);Ext.cmd.derive('Ext.util.Renderable',Ext.Base,{mixinId:'renderable',frameCls:'x-frame',frameIdRegex:/[\-]frame\d+[TMB][LCR]$/,frameElNames:['TL','TC','TR','ML','MC','MR','BL','BC','BR','Table'],frameTpl:['{%this.renderDockedItems(out,values,0);%}','','
    {parent.baseCls}-{parent.ui}-{.}-tl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','
    {parent.baseCls}-{parent.ui}-{.}-ml{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mc{frameElCls}" role="presentation">','{%this.applyRenderTpl(out, values)%}','
    ','
    ','
    ','','
    {parent.baseCls}-{parent.ui}-{.}-bl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-br{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-bc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','{%this.renderDockedItems(out,values,1);%}'],frameTableTpl:['{%this.renderDockedItems(out,values,0);%}','','','','','','','','','','','','','','','','','','','','','','{%this.renderDockedItems(out,values,1);%}'],_renderState:0,ariaEl:'el',_layerCls:'x-layer',_fixedLayerCls:'x-fixed-layer',ariaStaticRoles:{presentation:!0,article:!0,definition:!0,directory:!0,document:!0,img:!0,heading:!0,math:!0,note:!0,banner:!0,complementary:!0,contentinfo:!0,navigation:!0,search:!0,'undefined':!0,'null':!0},statics:{makeRenderSetter:function(c,b){var a=c.name;return function(g){var d=this,f=d.renderConfigs||(d.renderConfigs={}),e=f[b];if(d._renderState>=b){(c.setter||c.getSetter()).call(d,g)}else {if(!e){f[b]=e={}}if(!(a in e)){e[a]=d[a]}d[a]=g}return d}},processRenderConfig:function(g,e,c){var h=this.prototype,j=this.getConfigurator(),k=Ext.util.Renderable,l=k.makeRenderSetter,d=g[e],b,a,i,f;for(i in d){a=Ext.Config.get(i);if(!h[f=a.names.set]){b=a.renderSetter||(a.renderSetter={});h[f]=b[c]||(b[c]=l(a,c))}}delete g[e];j.add(d)}},onClassMixedIn:function(a){var e=a.override,c=this.processRenderConfig,d=function(b){if(b.beforeRenderConfig){this.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){this.processRenderConfig(b,'renderConfig',3)}e.call(this,b)},b=function(e,b){e.override=d;e.processRenderConfig=c;if(b.beforeRenderConfig){e.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){e.processRenderConfig(b,'renderConfig',3)}};b(a,a.prototype);a.onExtended(b)},afterRender:function(){var a=this,c={},i=a.protoEl,g=a.el,d,b,h,f,e;a.finishRenderChildren();a._renderState=4;if(a.contentEl){h='x-';f=h+'hidden-';e=a.contentEl=Ext.get(a.contentEl);e.component=a;e.removeCls([h+'hidden',f+'display',f+'offsets']);a.getContentTarget().appendChild(e.dom)}i.writeTo(c);b=c.removed;if(b){g.removeCls(b)}b=c.cls;if(b.length){g.addCls(b)}b=c.style;if(c.style){g.setStyle(b)}a.protoEl=null;if(!a.ownerCt&&!a.skipLayout){a.updateLayout()}if(!(a.x&&a.y)&&(a.pageX||a.pageY)){a.setPagePosition(a.pageX,a.pageY)}if(a.disableOnRender){a.onDisable()}d=a.controller;if(d&&d.afterRender){d.afterRender(a)}},afterFirstLayout:function(l,k){var a=this,g=a.x,h=a.y,j=a.defaultAlign,i=a.alignOffset,f,d,e,b,c;if(!a.ownerLayout){d=g!==undefined;e=h!==undefined}if(a.floating&&!a.preventDefaultAlign&&(!d||!e)){if(a.floatParent){b=a.floatParent.getTargetEl().getViewRegion();c=a.el.getAlignToXY(a.alignTarget||a.floatParent.getTargetEl(),j,i);b.x=c[0]-b.x;b.y=c[1]-b.y}else {c=a.el.getAlignToXY(a.alignTarget||a.container,j,i);b=a.el.translateXY(c[0],c[1])}g=d?g:b.x;h=e?h:b.y;d=e=!0}if(d||e){a.setPosition(g,h)}a.onBoxReady(l,k);f=a.controller;if(f&&f.boxReady){f.boxReady(a)}},beforeRender:function(){var a=this,d=a.floating,e=a.getComponentLayout(),b=a.userCls,c;a._renderState=1;a.ariaUsesMainElement=a.ariaEl==='el';c=a.controller;if(c&&c.beforeRender){c.beforeRender(a)}a.initBindable();if(a.renderConfigs){a.flushRenderConfigs()}if(a.reference){a.publishState()}if(b){a.addCls(b)}if(d){a.addCls(a.fixed?a._fixedLayerCls:a._layerCls);b=d.cls;if(b){a.addCls(b)}}a.frame=a.frame||a.alwaysFramed;if(!e.initialized){e.initLayout()}a.initOverflow();a.setUI(a.ui)},doApplyRenderTpl:function(d,a){var c=a.$comp,b;if(!c.rendered){b=c.initRenderTpl();b.applyOut(a.renderData,d)}},getElConfig:function(){var a=this,e=a.autoEl,c=a.getFrameInfo(),b={tag:'div',tpl:c?a.initFramingTpl(c.table):a.initRenderTpl()},g=a.layoutTargetCls,d=a.protoEl,f=a.ariaRole,h;a.initStyles(d);if(g&&!c){d.addCls(g)}d.writeTo(b);d.flush();if(e){if(Ext.isString(e)){b.tag=e}else {Ext.apply(b,e)}}if(f&&a.ariaUsesMainElement){b.role=f;if(!a.ariaStaticRoles[f]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}}b.id=a.id;if(b.tpl){if(c){b.tplData=h=a.getFrameRenderData();h.renderData=a.initRenderData()}else {b.tplData=a.initRenderData()}}a.ariaRenderAttributes=null;return b},getInsertPosition:function(a){if(a!==undefined){if(Ext.isNumber(a)){a=this.container.dom.childNodes[a]}else {a=Ext.getDom(a)}}return a},getRenderTree:function(){var a=this,b=null;if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a._renderState=1;a.beforeRender();a.rendering=!0;a._renderState=2;b=a.getElConfig();if(a.el){b.id=a.$pid=Ext.id(null,a.el.identifiablePrefix)}}return b},initRenderData:function(){var a=this,c=a.ariaRole,d,b;d=Ext.apply({$comp:a,id:a.id,ui:a.ui,uiCls:a.uiCls,baseCls:a.baseCls,componentCls:a.componentCls,frame:a.frame,renderScroller:a.touchScroll,scrollerCls:a.scrollerCls,childElCls:''},a.renderData);if(c&&!a.ariaUsesMainElement){b={role:c};if(!a.ariaStaticRoles[c]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}d.ariaAttributes=b}return d},onRender:function(i,h){var a=this,e=a.x,f=a.y,b=null,g=a.el,d,c;a.applyRenderSelectors();a.rendering=null;a.rendered=!0;a._renderState=3;if(a.renderConfigs){a.flushRenderConfigs()}if(e!=null){b={x:e}}if(f!=null){(b=b||{}).y=f}if(!a.getFrameInfo()){d=a.width;c=a.height;if(typeof d==='number'){b=b||{};b.width=d}if(typeof c==='number'){b=b||{};b.height=c}}if(a.touchScroll===1){a.getOverflowEl().disableTouchScroll()}a.lastBox=g.lastBox=b},render:function(c,g){var a=this,b=a.el,f=a.ownerLayout,h,d,e;if(b&&!b.isElement){a.wrapPrimaryEl(b);b=a.el}if(!a.skipLayout){Ext.suspendLayouts()}c=a.initContainer(c);e=a.getInsertPosition(g);if(!b){d=a.getRenderTree();if(f&&f.transformItemRenderTree){d=f.transformItemRenderTree(d)}if(d){if(e){b=Ext.DomHelper.insertBefore(e,d)}else {b=Ext.DomHelper.append(c,d)}a.wrapPrimaryEl(b);a.cacheRefEls(b)}}else {if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a.beforeRender();a.needsRenderTpl=a.rendering=!0;a._renderState=2;a.initStyles(b);if(a.allowDomMove!==!1){if(e){c.dom.insertBefore(b.dom,e)}else {c.dom.appendChild(b.dom)}}}else {h=!0}}if(b&&!h){a.finishRender(g)}if(!a.skipLayout){Ext.resumeLayouts(!a.hidden&&!c.isDetachedBody)}},ensureAttachedToBody:function(c){var a=this,b;while(a.ownerCt){a=a.ownerCt}if(a.container.isDetachedBody){a.container=b=Ext.getBody();b.appendChild(a.el.dom);if(c){a.updateLayout()}if(typeof a.x==='number'||typeof a.y==='number'){a.setPosition(a.x,a.y)}}},privates:{applyRenderSelectors:function(){var a=this,b=a.renderSelectors,e=a.el,d,c;a.attachChildEls(e);a.ariaEl=a[a.ariaEl]||a.el;if(b){for(c in b){d=b[c];if(d){a[c]=e.selectNode(d,!1)}}}},cacheRefEls:function(a){a=a||this.el;var e=Ext.cache,h=Ext.dom.Element,f=a.isElement?a.dom:a,d=f.querySelectorAll('[data-ref]'),g=d.length,c,b;for(b=0;b','
    ','','{%this.renderContent(out,values)%}','
    '],resizeHandles:'all',shrinkWrap:2,toFrontOnShow:!0,synthetic:!1,tplWriteMode:'overwrite',ui:'default',uiCls:[],userCls:null,weight:null,allowDomMove:!0,autoGenId:!1,borderBoxCls:'x-border-box',componentLayoutCounter:0,contentPaddingProperty:'padding',deferLayouts:!1,frameSize:null,horizontalPosProp:'left',isComponent:!0,_isLayoutRoot:!1,layoutSuspendCount:0,liquidLayout:!1,maskOnDisable:!0,offsetsCls:'x-hidden-offsets',rendered:!1,rootCls:'x-body',scrollerCls:'x-scroll-scroller',scrollerSelector:'.x-scroll-scroller',_scrollFlags:{auto:{auto:{overflowX:'auto',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'auto',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'auto',overflowY:'scroll',x:!0,y:!0,both:!0}},'false':{auto:{overflowX:'hidden',overflowY:'auto',x:!1,y:!0,both:!1},'false':{overflowX:'hidden',overflowY:'hidden',x:!1,y:!1,both:!1},scroll:{overflowX:'hidden',overflowY:'scroll',x:!1,y:!0,both:!1}},scroll:{auto:{overflowX:'scroll',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'scroll',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'scroll',overflowY:'scroll',x:!0,y:!0,both:!0}},none:{overflowX:'',overflowY:'',x:!1,y:!1,both:!1}},_scrollableCfg:{x:{x:!0,y:!1},y:{x:!1,y:!0},horizontal:{x:!0,y:!1},vertical:{x:!1,y:!0},both:{x:!0,y:!0},'true':{x:!0,y:!0}},validIdRe:Ext.validIdRe,constructor:function(b){var a=this,e,j,i,h,g,c,d,f;b=b||{};if(b.initialConfig){if(b.isAction){a.baseAction=b}b=b.initialConfig}else {if(b.tagName||b.dom||Ext.isString(b)){b={applyTo:b,id:b.id||b}}}a.initialConfig=b;a.getId();a.protoEl=new Ext.util.ProtoElement();a.initConfig(b);if(a.scrollable==null){g=a.autoScroll;if(g){f=!!g}else {c=a.overflowX;d=a.overflowY;if(c||d){f={x:c&&c!=='hidden'?c:!1,y:d&&d!=='hidden'?d:!1}}}if(f){a.setScrollable(f)}}i=a.xhooks;if(i){delete a.xhooks;Ext.override(a,i)}a.mixins.elementCt.constructor.call(a);a.setupProtoEl();if(a.cls){a.initialCls=a.cls;a.protoEl.addCls(a.cls)}if(a.style){a.initialStyle=a.style;a.protoEl.setStyle(a.style)}a.renderData=a.renderData||{};a.initComponent();if(!a.preventRegister){Ext.ComponentManager.register(a)}a.mixins.state.constructor.call(a);a.addStateEvents('resize');h=a.getController();if(h){h.init(a)}if(a.plugins){for(e=0,j=a.plugins.length;eh){o=j;f=!0}if(e&&k>i){p=k;f=!0}if(d||e){g=a.el.getStyle('overflow');if(g!=='hidden'){a.el.setStyle('overflow','hidden')}}if(f){r=!Ext.isNumber(a.width);q=!Ext.isNumber(a.height);a.setSize(p,o);a.el.setSize(i,h);if(r){delete a.width}if(q){delete a.height}}if(e){c.width=k}if(d){c.height=j}}n=a.constrain;l=a.constrainHeader;if(n||l){a.constrain=a.constrainHeader=!1;m=b.callback;b.callback=function(){a.constrain=n;a.constrainHeader=l;if(m){m.call(b.scope||a,arguments)}if(g!=='hidden'){a.el.setStyle('overflow',g)}}}return a.mixins.animate.animate.apply(a,arguments)},applyScrollable:function(a,c){var b=this,f=b.rendered,e,d;if(a){if(a===!0||typeof a==='string'){e=b._scrollableCfg[a];a=e}if(c){c.setConfig(a);a=c}else {a=Ext.Object.chain(a);if(f){a.element=b.getOverflowEl();d=b.getScrollerEl();if(d){a.innerElement=d}}a.autoRefresh=!1;if(Ext.supports.touchScroll===1){a.translatable={translationMethod:'scrollparent'};a.indicators=!1}a=Ext.scroll.Scroller.create(a);a.component=b}}else {if(c){c.setConfig({x:!1,y:!1});c.destroy();a=null}}if(b.rendered&&!b.destroying&&!b.destroyed){if(a){b.getOverflowStyle()}else {b.scrollFlags=b._scrollFlags.none}b.updateLayout()}return a},beforeComponentLayout:function(){return !0},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(a,b,f){var d=this,c=null,e,g,h,i;if(a){if(Ext.isNumber(e=a[0])){f=b;b=a[1];a=e}else {if((e=a.x)!==undefined){f=b;b=a.y;a=e}}}if(d.constrain||d.constrainHeader){c=d.calculateConstrainedPosition(null,[a,b],!0);if(c){a=c[0];b=c[1]}}g=a!==undefined;h=b!==undefined;if(g||h){d.x=a;d.y=b;i=d.adjustPosition(a,b);c={x:i.x,y:i.y,anim:f,hasX:g,hasY:h}}return c},beforeShow:Ext.emptyFn,bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.getBubbleTarget()}return this},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},cloneConfig:function(a){a=a||{};var d=a.id||Ext.id(),c=Ext.applyIf(a,this.initialConfig),b;c.id=d;b=Ext.getClass(this);return new b(c)},destroy:function(){var a=this,d=a.renderSelectors,f=a.getConfig('viewModel',!0),g=a.getConfig('session',!0),b,c,e;if(!a.hasListeners.beforedestroy||a.fireEvent('beforedestroy',a)!==!1){a.isDestroying=a.destroying=!0;c=a.floatParent||a.ownerCt;if(a.floating){delete a.floatParent;if(a.zIndexManager){a.zIndexManager.unregister(a);a.zIndexManager=null}}a.removeBindings();a.beforeDestroy();a.destroyBindable();if(c&&c.remove){c.remove(a,!1)}a.stopAnimation();a.onDestroy();Ext.destroy(a.plugins);if(a.rendered){Ext.Component.cancelLayout(a,!0)}a.componentLayout=null;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}if(!a.preventRegister){Ext.ComponentManager.unregister(a)}a.mixins.state.destroy.call(a);if(a.floating){a.onFloatDestroy()}a.clearListeners();if(a.rendered){if(!a.preserveElOnDestroy){a.el.destroy()}a.el.component=null;a.mixins.elementCt.destroy.call(a);if(d){for(b in d){if(d.hasOwnProperty(b)){e=a[b];if(e){delete a[b];e.destroy()}}}}a.data=a.el=a.frameBody=a.rendered=a.afterRenderEvents=null;a.tpl=a.renderTpl=a.renderData=null;a.focusableContainer=a.container=a.scrollable=null}a.isDestroying=a.destroying=!1;a.callParent()}},disable:function(e,d){var a=this,b=a.focusableContainer,c=a.getInherited();if(!d){c.disabled=!0;a.savedDisabled=!0}if(a.maskOnDisable){c.disableMask=!0}if(!a.disabled){if(b){b.beforeFocusableChildDisable(a)}a.addCls(a.disabledCls);if(a.rendered){a.onDisable()}else {a.disableOnRender=!0}a.disabled=!0;if(e!==!0){a.fireEvent('disable',a)}if(b){b.onFocusableChildDisable(a)}}return a},doFireEvent:function(c,d,e){var a=this,b=a.mixins.observable.doFireEvent.call(a,c,d,e);if(b!==!1){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,d)}return b},enable:function(e,c){var a=this,b=a.focusableContainer,d=a.getInherited();if(!c){delete a.getInherited().disabled;a.savedDisabled=!1}if(a.maskOnDisable){delete d.disableMask}if(a.disabled){if(!(c&&d.hasOwnProperty('disabled'))){if(b){b.beforeFocusableChildEnable(a)}a.disableOnRender=!1;a.removeCls(a.disabledCls);if(a.rendered){a.onEnable()}a.disabled=!1;if(e!==!0){a.fireEvent('enable',a)}if(b){b.onFocusableChildEnable(a)}}}return a},findParentBy:function(b){var a;for(a=this.getRefOwner();a&&!b(a,this);a=a.getRefOwner()){}return a||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.constructor===a}):this.up(a)},findPlugin:function(c){var a,b=this.plugins,d=b&&b.length;for(a=0;a-1;e--){b=g[e];if(b.query){a=b.query(c);a=a[a.length-1];if(a){return a}}if(b.is(c)){return b}}return f.previousNode(c,!0)}return null},previousSibling:function(c){var e=this.ownerCt,b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.getAt(--a)}}}}return null},registerFloatingItem:function(b){var a=this;if(!a.floatingDescendants){a.floatingDescendants=new Ext.ZIndexManager(a)}a.floatingDescendants.register(b)},removeCls:function(c){var a=this,b=a.rendered?a.el:a.protoEl;b.removeCls.apply(b,arguments);return a},removeClsWithUI:function(a,k){var b=this,d=[],e=0,g=Ext.Array,i=g.remove,j=b.uiCls=g.clone(b.uiCls),f=b.activeUI,h,c;if(typeof a==='string'){a=a.indexOf(' ')<0?[a]:Ext.String.splitWords(a)}h=a.length;for(e=0;e1){arguments[0]=null;a.pendingShow=arguments}else {a.pendingShow=!0}}else {if(b&&a.isVisible()){if(a.floating){a.onFloatShow()}}else {if(a.fireEvent('beforeshow',a)!==!1){a.hidden=!1;delete this.getInherited().hidden;Ext.suspendLayouts();if(!b&&(a.autoRender||a.floating)){a.doAutoRender();b=a.rendered}if(b){a.beforeShow();Ext.resumeLayouts();a.onShow.apply(a,arguments);a.afterShow.apply(a,arguments)}else {Ext.resumeLayouts(!0)}}else {a.onShowVeto()}}}return a},showAt:function(b,c,d){var a=this;if(!a.rendered&&(a.autoRender||a.floating)){a.x=b;a.y=c;return a.show()}if(a.floating){a.setPosition(b,c,d)}else {a.setPagePosition(b,c,d)}return a.show()},showBy:function(b,d,c){var a=this;if(a.floating&&b){a.alignTarget=b;if(d){a.defaultAlign=d}if(c){a.alignOffset=c}a.show();if(!a.hidden){a.alignTo(b,d||a.defaultAlign,c||a.alignOffset)}}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=!0}},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(!1)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){d++;if(c.isComponent){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},update:function(b,i,k,j){var a=this,h=a.tpl&&!Ext.isString(b),g=a.getScrollable(),f=a.focusableContainer,e,c,d;if(h){a.data=b&&b.isEntity?b.getData(!0):b}else {a.html=Ext.isObject(b)?Ext.DomHelper.markup(b):b}if(a.rendered){e=a.getSizeModel();c=e.width.shrinkWrap||e.height.shrinkWrap;if(a.isContainer){d=a.layout.getRenderTarget();c=c||a.items.items.length>0}else {d=a.touchScroll?a.getScrollerEl():a.getTargetEl()}if(h){a.tpl[a.tplWriteMode](d,a.data||{})}else {d.setHtml(a.html,i,k,j||a)}if(c){a.updateLayout()}if(g){g.refresh(!0)}if(f){f.onFocusableChildUpdate(a)}}},setHtml:function(c,a,b){this.update(c,a,null,b)},applyData:function(a){this.update(a)},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},_asLayoutRoot:{isRoot:!0},_notAsLayoutRoot:{isRoot:!1},updateLayout:function(b){var a=this,e,d=a.lastBox,c=b&&b.isRoot;if(d){d.invalid=!0}if(!a.rendered||a.layoutSuspendCount||a.suspendLayout){return}if(a.hidden){Ext.Component.cancelLayout(a)}else {if(typeof c!=='boolean'){c=a.isLayoutRoot()}}if(c||!a.ownerLayout||!a.ownerLayout.onContentChange(a)){if(!a.isLayoutSuspended()){e=b&&b.hasOwnProperty('defer')?b.defer:a.deferLayouts;Ext.Component.updateLayout(a,e)}}},updateMaxHeight:function(b,a){this.changeConstraint(b,a,'min','max-height','height')},updateMaxWidth:function(b,a){this.changeConstraint(b,a,'min','max-width','width')},updateMinHeight:function(b,a){this.changeConstraint(b,a,'max','min-height','height')},updateMinWidth:function(b,a){this.changeConstraint(b,a,'max','min-width','width')},getAnchorToXY:function(d,a,c,b){return d.getAnchorXY(a,c,b)},getBorderPadding:function(){return this.el.getBorderPadding()},getLocalX:function(){return this.el.getLocalX()},getLocalXY:function(){return this.el.getLocalXY()},getLocalY:function(){return this.el.getLocalY()},getX:function(){return this.el.getX()},getXY:function(){return this.el.getXY()},getY:function(){return this.el.getY()},setLocalX:function(a){this.el.setLocalX(a)},setLocalXY:function(a,b){this.el.setLocalXY(a,b)},setLocalY:function(a){this.el.setLocalY(a)},setX:function(b,a){this.el.setX(b,a)},setXY:function(b,a){this.el.setXY(b,a)},setY:function(b,a){this.el.setY(b,a)},privates:{addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},addUIToElement:function(){var a=this,d=a.baseCls+'-'+a.ui,e,c,f,b;a.addCls(d);if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){f=a[c];if(f){f.addCls(d+b)}}}}},changeConstraint:function(b,g,f,c,d){var a=this,e=a[d];if(b!=null&&typeof e==='number'){a[d]=Math[f](e,b)}if(a.liquidLayout){if(b!=null){a.setStyle(c,b+'px')}else {if(g){a.setStyle(c,'')}}}if(a.rendered){a.updateLayout()}},constructPlugin:function(a){var b=this;if(typeof a==='string'){a=Ext.PluginManager.create({},a,b)}else {a=Ext.PluginManager.create(a,null,b)}return a},constructPlugins:function(){var d=this,a=d.plugins,c,b,e;if(a){c=[];c.processed=!0;if(!Ext.isArray(a)){a=[a]}for(b=0,e=a.length;b=0){h=m[c].splitterDelta;if(e.getAt(d+h)!==b){e.remove(b);d=e.indexOf(a);if(h>0){++d}e.insert(d,b)}}}if(j){if(l){a.expand(!1)}i.remove(j);a.placeholder=null;if(l){a.collapse(null,!1)}}i.updateLayout();Ext.resumeLayouts(!0);a.fireEventArgs('changeregion',[a,g])}else {a.region=c}}return g},setWeight:function(b){var a=this,e=a.getOwningBorderContainer(),d=a.placeholder,c=a.weight;if(b!==c){if(a.fireEventArgs('beforechangeweight',[a,b])!==!1){a.weight=b;if(d){d.weight=b}if(e){e.updateLayout()}a.fireEventArgs('changeweight',[a,c])}}return c}},function(b){var a=b.prototype;a.setBorderRegion=a.setRegion;a.setRegionWeight=a.setWeight});Ext.define('Ext.theme.neptune.Component',{override:'Ext.Component',initComponent:function(){arguments.callee.$previous.call(this);if(this.dock&&this.border===undefined){this.border=!1}},privates:{initStyles:function(){var a=this,b=a.hasOwnProperty('border'),c=a.border;if(a.dock){a.border=null}arguments.callee.$previous.apply(this,arguments);if(b){a.border=c}else {delete a.border}}}},function(){Ext.namespace('Ext.theme.is').Neptune=!0;Ext.theme.name='Neptune'});Ext.define('Ext.theme.crisp.Component',{override:'Ext.Component'},function(){Ext.namespace('Ext.theme.is').Crisp=!0;Ext.theme.name='Crisp'});Ext.define('Ext.overrides.app.domain.Component',{override:'Ext.app.domain.Component'},function(a){a.monitor(Ext.Component)});Ext.cmd.derive('Ext.app.EventBus',Ext.Base,{singleton:!0,constructor:function(){var a=this,b=Ext.app.EventDomain.instances;a.callParent();a.domains=b;a.bus=b.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(b,c){var d=this.domains,a;for(a in b){if(b.hasOwnProperty(a)){d[a].listen(b[a],c)}}},unlisten:function(c){var a=Ext.app.EventDomain.instances,b;for(b in a){a[b].unlisten(c)}}},1,0,0,0,0,0,[Ext.app,'EventBus'],0);Ext.cmd.derive('Ext.app.domain.Global',Ext.app.EventDomain,{singleton:!0,type:'global',constructor:function(){var a=this;a.callParent();a.monitor(Ext.GlobalEvents)},listen:function(b,a){this.callParent([{global:b},a])},match:Ext.returnTrue},1,0,0,0,0,0,[Ext.app.domain,'Global'],0);Ext.cmd.derive('Ext.app.BaseController',Ext.Base,{isController:!0,config:{id:null,control:null,listen:null,routes:null,before:null},constructor:function(b){var a=this;Ext.apply(a,b);delete a.control;delete a.listen;a.eventbus=Ext.app.EventBus;a.mixins.observable.constructor.call(a,b);a.ensureId()},applyListen:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},applyControl:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},updateControl:function(a){this.ensureId();if(a){this.control(a)}},updateListen:function(a){this.ensureId();if(a){this.listen(a)}},updateRoutes:function(b){if(b){var e=this,f=e.getBefore()||{},g=Ext.app.route.Router,c,a,d;for(c in b){a=b[c];if(Ext.isString(a)){a={action:a}}d=a.action;if(!a.before){a.before=f[d]}g.connect(c,a,e)}}},isActive:function(){return !0},control:function(b,c,f){var e=this,d=f,a;if(Ext.isString(b)){a={};a[b]=c}else {a=b;d=c}e.eventbus.control(a,d||e)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var a=this,b=a.eventbus;Ext.app.route.Router.disconnectAll(a);if(b){b.unlisten(a);a.eventbus=null}a.callParent()},redirectTo:function(a,c){if(a.isModel){a=a.toUrl()}if(!c){var b=Ext.util.History.getToken();if(b===a){return !1}}else {Ext.app.route.Router.onStateChange(a)}Ext.util.History.add(a);return !0}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.app,'BaseController'],0);Ext.cmd.derive('Ext.app.Util',Ext.Base,{},0,0,0,0,0,0,[Ext.app,'Util'],function(){Ext.apply(Ext.app,{namespaces:{Ext:{}},addNamespaces:function(a){var d=Ext.app.namespaces,b,c;if(!Ext.isArray(a)){a=[a]}for(b=0,c=a.length;bb.length&&a+'.'===d.substring(0,a.length+1)){b=a}}return b===''?undefined:b},setupPaths:function(e,b,c){var a=Ext.manifest,d;if(e&&b!==null){a=a&&a.paths;if(!a||b!==undefined){Ext.Loader.setPath(e,b===undefined?'app':b)}}if(c){for(d in c){if(c.hasOwnProperty(d)){Ext.Loader.setPath(d,c[d])}}}}});Ext.getNamespace=Ext.app.getNamespace});Ext.cmd.derive('Ext.util.CollectionKey',Ext.Base,{isCollectionKey:!0,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:!0},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(i,b){var j=this.map||this.getMap(),c=j[i],e=this.getCollection(),h=e.length,d,a,f,g;if(!c){return -1}if(b===undefined){b=-1}if(c instanceof Array){f=c;a=h;for(g=f.length;g-->0;){d=e.indexOf(f[g]);if(db){a=d}}if(a===h){return -1}}else {a=e.indexOf(c)}return a>b?a:-1},updateKey:function(e,d){var f=this,c=f.map,a,b;if(c){a=c[d];if(a instanceof Array){b=Ext.Array.indexOf(a,e);if(b>=0){if(a.length>2){a.splice(b,1)}else {c[d]=a[1-b]}}}else {if(a){delete c[d]}}f.add([e])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(a,b){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(g,h){var a=this,f=a.map,d=h.items,c=d.length,b,i,e;if(f){if(a.getUnique()&&cb?1:a0&&a.getAutoSort(),r=a.getSource(),q=0,g=!1,o=!1,e,l,k,m,b,d;if(r&&!r.updating){r.itemChanged(c,p,f,u)}else {l=a.getKey(c);if(s){b=a.indexOfKey(j?f:l);o=b<0;g=a.isItemFiltered(c);n=o!==g}if(n){if(g){q=[c];d=-1}else {m=[c];d=a.length}}else {if(v&&!g){if(!s){b=a.indexOfKey(j?f:l)}k=a.getSortFn();if(b!==-1){if(b&&k(i[b-1],i[b])>0){h=-1;d=Ext.Array.binarySearch(i,c,0,b,k)}else {if(b0){h=1;d=Ext.Array.binarySearch(i,c,b+1,k)}}if(h){m=[c]}}}}e={item:c,key:l,index:d,filterChanged:n,keyChanged:j,indexChanged:!!h,filtered:g,oldIndex:b,newIndex:d,wasFiltered:o,meta:u};if(j){e.oldKey=f}if(p){e.modified=p}a.beginUpdate();a.notify('beforeitemchange',[e]);if(j){a.updateKey(c,f)}if(m||q){a.splice(d,q,m)}if(h>0){e.newIndex--}else {if(h<0){e.oldIndex++}}a.notify(g?'filtereditemchange':'itemchange',[e]);a.endUpdate()}},remove:function(d){var a=this,c=a.decodeRemoveItems(arguments,0),b=a.length;a.splice(0,c);return b-a.length},removeAll:function(){var a=this,b=a.length;if(a.generation&&b){a.splice(0,b)}return a},removeAt:function(j,f){var a=this,e=a.length,i=Ext.Number,g=i.clipIndices(e,[j,f===undefined?1:f],i.Clip.COUNT),c=g[0],d=g[1]-c,h=d===1&&a.getAt(c),b;a.splice(c,d);b=a.length-e;return h&&b?h:b},removeByKey:function(b){var a=this.getByKey(b);if(!a||!this.remove(a)){return !1}return a},replace:function(a){var b=this.indexOf(a);if(b===-1){this.add(a)}else {this.insert(b,a)}},splice:function(K,E,L){var b=this,D=b.sorted&&b.getAutoSort(),F=b.map,o=b.items,r=b.length,n=E instanceof Array?b.decodeRemoveItems(E):null,G=!n,J=Ext.Number,I=J.clipIndices(r,[K,G?E:0],J.Clip.COUNT),m=I[0],v=I[1],x=v-m,p=b.decodeItems(arguments,2),h=p?p.length:0,c,A,C,d=m,k=b.indices||(h||n?b.getIndices():null),e=null,i=x?[m]:null,l=null,t=b.getSource(),j,B,z,a,u,g,w,f,s,q,y,H,v;if(t&&!t.updating){if(G){n=[];for(a=0;a1){if(!c.$cloned){p=c=c.slice(0)}b.sortData(c)}}for(a=0;a0;){f=b.getKey(n[a]);if((g=k[f])!==undefined){(i||(i=[])).push(g)}}if(!e&&!i){return b}b.beginUpdate();if(i){j=null;z=[];C={};if(i.length>1){i.sort(Ext.Array.numericSortFn)}for(a=0,q=i.length;aj.at+B.length){z.push(j={at:g,items:B=[],keys:s=[],map:C,next:j,replacement:e});if(e){e.replaced=j}}B.push(C[f]=u);s.push(f);if(g1&&g===m){--x;i[a--]=++m}}if(e){e.at=d}for(w=z.length;w-->0;){j=z[w];a=j.at;q=j.items.length;if(a+q1&&r){b.spliceMerge(c,l)}else {if(D){if(h>1){d=0;b.indices=k=null}else {d=H.findInsertionIndex(e.items[0],o,b.getSortFn())}}if(d===r){v=d;for(a=c.length-1;a>=0;--a){o[v+a]=c[a]}k=b.indices;if(k){for(a=0;a-1){c=e[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(l,i){var a=this,j=i.atItem,d=i.items,h=a.requestedIndex,c,b,e,f,g,k;if(!a.sorted){if(h!==undefined){b=h}else {if(j){b=a.indexOf(j);if(b===-1){b=a.findInsertIndex(d[0])}else {++b}}else {b=0}}}if(a.getAutoFilter()&&a.filtered){for(f=0,k=d.length;fc)){c=a}}return [c,b]},count:function(a){return a.length},extremes:function(k,j,l,i,f){var e=null,d=null,c,b,g,h,a;for(c=j;ch)){h=a;d=b}}return [d,e]},max:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[1]},maxItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[1]},min:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[0]},minItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[0]},sum:function(g,f,h,e,c){for(var a,d=0,b=f;b1){Ext.Array.sort(a,b.prioritySortFn)}},prioritySortFn:function(a,b){var c=a.observerPriority||0,d=b.observerPriority||0;return c-d},applyExtraKeys:function(e,g){var d=this,f=g||{},b,c,a;for(c in e){a=e[c];if(!a.isCollectionKey){b={collection:d};if(Ext.isString(a)){b.property=a}else {b=Ext.apply(b,a)}a=new Ext.util.CollectionKey(b)}else {a.setCollection(d)}f[c]=d[c]=a;a.name=c}return f},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,'Ext.util.Grouper')}return a},decodeItems:function(e,d){var g=this,a=d===undefined?e:e[d],b,f,c;if(!a||!a.$cloned){b=e.length>d+1||!Ext.isIterable(a);if(b){a=Ext.Array.slice(e,d);if(a.length===1&&a[0]===undefined){a.length=0}}f=g.getDecoder();if(f){if(!b){a=a.slice(0);b=!0}for(c=a.length;c-->0;){if((a[c]=f.call(g,a[c]))===!1){a.splice(c,1)}}}if(b){a.$cloned=!0}}return a},getIndices:function(){var a=this,c=a.indices,d=a.items,f=d.length,b,e;if(!c){a.indices=c={};++a.indexRebuilds;for(b=0;b0;if(d||c){b.filtered=c;b.onFilterChange(a)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==!1){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(c,b,d){var a=this.getSorters();a.addSort.apply(a,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify('beforesort',[a.getSorters(!1)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify('sort')},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(c,b,a){if(!b){b=this.items}if(!a){a=this.getSortFn()}return Ext.Array.binarySearch(b,c,a)},applySorters:function(a,b){if(a==null||a&&a.isSorterCollection){return a}if(a){if(!b){b=this.getSorters()}b.splice(0,b.length,a)}return b},createSortFn:function(){var d=this,b=d.getGrouper(),c=d.getSorters(!1),a=c?c.getSortFn():null;if(!b){return a}return function(d,e){var c=b.sort(d,e);if(!c&&a){c=a(d,e)}return c}},updateGrouper:function(c){var a=this,b=a.getGroups(),e=a.getSorters(),d;a.onSorterChange();a.grouped=!!c;if(c){if(a.getTrackGroups()){if(!b){b=new Ext.util.GroupCollection({itemRoot:a.getRootProperty()});b.$groupable=a;a.setGroups(b)}b.setGrouper(c);d=!0}}else {if(b){a.removeObserver(b);b.destroy()}a.setGroups(null)}if(!e.updating){a.onEndUpdateSorters(e)}if(d){b.onCollectionRefresh(a)}},updateSorters:function(b,c){var a=this;if(c){c.un('endupdate','onEndUpdateSorters',a)}if(b){b.on({endupdate:'onEndUpdateSorters',scope:a,priority:a.$endUpdatePriority});b.$sortable=a}a.onSorterChange();a.onEndUpdateSorters(b)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(b){var a=this,d=a.sorted,c=a.grouped&&a.getAutoGroup()||b&&b.length>0;if(d||c){a.sorted=!!c;a.onSortChange(b)}},removeObserver:function(b){var a=this.observers;if(a){Ext.Array.remove(a,b)}},spliceMerge:function(i,q){var f=this,r=f.map,k=i.length,g=0,n=f.items,m=n.length,h=[],c=0,a=[],p=f.getSortFn(),l,j,d,b,o,e;f.items=a;for(e=0;e1){h[c-2].next=h[c-1]}for(;e1){h[c-2].next=h[c-1]}a.push(b);for(j=e+1;j=0){break}a.push(b);l.push(b)}}for(;g0)}e=j.createAssociationStore(i,f,b,h);e.$source=q;if(!b&&(j.autoLoad||a)){n=!0}f[m]=e}if(a){if(n||e.isLoading()){e.on('load',function(h,i,e,g){d=[h,g];c=c||a.scope||f;if(e){Ext.callback(a.success,c,d)}else {Ext.callback(a.failure,c,d)}d.push(e);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)},null,{single:!0})}else {d=[e,null];c=c||a.scope||f;Ext.callback(a.success,c,d);d.push(!0);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)}}if(n&&!e.isLoading()){e.load()}return e},getAssociatedItem:function(b){var a=this.isMany?this.getStoreName():this.getInstanceName();return b[a]||null},onDrop:Ext.emptyFn,getReaderRoot:function(){var a=this;return a.associationKey||(a.associationKey=a.association.schema.getNamer().readerRoot(a.role))},getReader:function(){var b=this,a=b.reader,d=b.cls,c=!b.associationKey,e=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:e,useSimpleAccessors:c,type:b.defaultReaderType});a=b.reader=Ext.createByAlias('reader.'+a.type,a)}return a},getInstanceName:function(){var a=this;return a.instanceName||(a.instanceName=a.association.schema.getNamer().instanceName(a.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName='$old'+this.getInstanceName())},getStoreName:function(){var a=this;return a.storeName||(a.storeName=a.association.schema.getNamer().storeName(a.role))},constructReader:function(h){var b=this,a=b.getReader(),e=b.cls,g=!b.associationKey,f=b.getReaderRoot(),c,d;if(!a){d=e.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(f)}else {a=new h.self({model:e,useSimpleAccessors:g,rootProperty:f})}b.reader=a}return a},read:function(f,e,d,c){var a=this.constructReader(d),b=a.getRoot(e);if(b){return a.readRecords(b,c,this._internalReadOptions)}},getCallbackOptions:function(a,c,b){if(typeof a==='function'){a={callback:a,scope:c||b}}else {if(a){a=Ext.apply({},a);a.scope=c||a.scope||b}}return a},doGetFK:function(d,b,f){var i=this,l=i.cls,j=i.association.getFieldName(),h=i.getInstanceName(),a=d[h],m=b&&b.reload,e=a!==undefined&&!m,k=d.session,c,g;if(!e){if(k){c=d.get(j);if(c||c===0){e=k.peekRecord(l,c,!0)&&!m;a=k.getRecord(l,c,!1)}else {e=!0;d[h]=a=null}}else {if(j){c=d.get(j);if(!c&&c!==0){e=!0;d[h]=a=null}else {if(!a){a=l.createWithId(c)}}}else {e=!0}}}else {if(a){e=!a.isLoading()}}if(e){if(b){g=[a,null];f=f||b.scope||d;Ext.callback(b.success,f,g);g.push(!0);Ext.callback(b,f,g);Ext.callback(b.callback,f,g)}}else {d[h]=a;b=i.getCallbackOptions(b,f,d);a.load(b)}return a},doSetFK:function(a,c,e,l){var f=this,i=f.association.getFieldName(),h=f.getInstanceName(),b=a[h],d=f.inverse,j=d.setterName,m=a.session,k,g;if(c&&c.isEntity){if(b!==c){g=f.getOldInstanceName();a[g]=b;a[h]=c;if(b&&b.isEntity){b[d.getInstanceName()]=undefined}if(i){a.set(i,c.getId())}delete a[g];if(j){c[j](a)}}}else {k=a.changingKey&&!d.isMany||a.set(i,c);if(k&&b&&b.isEntity&&!b.isEqual(b.getId(),c)){a[h]=undefined;if(!d.isMany){b[d.getInstanceName()]=undefined}}}if(e){if(Ext.isFunction(e)){e={callback:e,scope:l||a}}return a.save(e)}}},1,0,0,0,0,0,[Ext.data.schema,'Role'],0);Ext.cmd.derive('Ext.data.schema.Association',Ext.Base,{isOneToOne:!1,isManyToOne:!1,isManyToMany:!1,owner:null,field:null,constructor:function(d){var a=this,c,b;Ext.apply(a,d);a.left=c=new a.Left(a,a.left);a.right=b=new a.Right(a,a.right);c.inverse=b;b.inverse=c},hasField:function(){return !!this.field},getFieldName:function(){var a=this.field;return a?a.name:''}},1,0,0,0,0,0,[Ext.data.schema,'Association'],0);Ext.cmd.derive('Ext.data.schema.OneToOne',Ext.data.schema.Association,{isOneToOne:!0,isToOne:!0,kind:'one-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',onDrop:function(a,c){var b=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(b){b[this.inverse.getInstanceName()]=null}},createGetter:function(){var a=this;return function(){return a.doGet(this)}},createSetter:function(){var a=this;return function(b){return a.doSet(this,b)}},doGet:function(a){var c=this.getInstanceName(),b=a[c],d=a.session;if(!b&&d){}return b||null},doSet:function(a,b){var d=this.getInstanceName(),e=a[d],c=this.inverse.setterName;if(e!==b){a[d]=b;if(c){b[c](a)}}return e},read:function(a,g,f,e){var c=this,d=c.callParent([a,g,f,e]),b;if(d){b=d[0];if(b){b[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=b;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(d,b,c){return a.doSetFK(this,d,b,c)}},onDrop:function(c,f){var b=this,e=b.association.field,a=b.getAssociatedItem(c),d;if(b.inverse.owner){if(f){d=c.get(e.name);if(d||d===0){a=f.getEntry(b.cls,d).record;if(a){a.drop()}}}else {if(a){a.drop()}}}if(e){c.set(e.name,null)}c[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(b,f,c){var a=this,e=b[a.getOldInstanceName()]||a.getAssociatedItem(b),h=c||c===0,d=a.getInstanceName(),g=a.cls;b.changingKey=!0;a.doSetFK(b,c);if(!h){b[d]=null}else {if(f&&g){b[d]=f.peekRecord(g,c)||undefined}}if(a.inverse.owner&&e){a.association.schema.queueKeyCheck(e,a)}b.changingKey=!1},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(a,o,n,m){var f=this,l=f.callParent([a,o,n,m]),b,d,g,c,k,h,j,i,e;if(l){b=l[0];d=f.association.field;if(d){g=d.name}c=a.session;e=a.data;if(b){if(c){k=c.getRefs(b,this.inverse,!0);i=k&&k[a.id]||e[g]===undefined}else {i=!0}if(i){if(d){j=e[g];h=b.id;if(j!==h){e[g]=h;if(c){c.updateReference(a,d,h,j)}}}b[f.inverse.getInstanceName()]=a;a[f.getInstanceName()]=b}delete e[f.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,'OneToOne'],0);Ext.cmd.derive('Ext.data.schema.ManyToOne',Ext.data.schema.Association,{isManyToOne:!0,isToOne:!0,kind:'many-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,onDrop:function(d,f){var b=this,e=b.getAssociatedItem(d),a,g,c,i,h;if(e){a=e.removeAll();if(a&&b.inverse.owner){for(c=0,g=a.length;c0){a=c[h];e=!a.isEqual(l,a.get(i));b=f?null:d;if(e!==f){a.changingKey=!0;a[k](b);a.changingKey=!1}else {a[j]=b}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',onDrop:function(a,c){var b=this.association.field;if(b){a.set(b.name,null)}a[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(c,b){var d=this.association.field,a;a=this.getSessionStore(c,b.get(d.name));if(a&&!a.contains(b)){a.add(b)}},onValueChange:function(b,f,d,l){var c=this,j=c.getInstanceName(),m=c.cls,i,g,a,h,n,e,k;if(!b.changingKey){i=d||d===0;if(!i){b[j]=null}if(f){a=c.getSessionStore(f,l);if(a){a.remove(b)}if(i){a=c.getSessionStore(f,d);if(a&&!a.isLoading()){a.add(b)}if(m){k=f.peekRecord(m,d)}b[j]=k||undefined}}else {g=b.joined;if(g){for(h=0,n=g.length;h=0){a.remove([b])}}else {if(b<0){d=a.getSession().getEntry(this.type,e);c=d&&d.record;if(c){a.add(c)}}}a.matrixUpdate=0}},adoptAssociated:function(e,d){var a=this.getAssociatedItem(e),c,b,f;if(a){a.setSession(d);this.onStoreCreate(a,d,e.getId());c=a.getData().items;for(b=0,f=c.length;b1){a[b]=this.apply('capitalize',a[b])}return a.join('')},getterName:function(a){var b=a.role;if(a&&a.isMany){return b}return 'get'+this.apply('capitalize',b)},inverseFieldRole:function(e,f,c,d){var a=this,b=a.apply(f?'uniRole':'multiRole',e),g=a.apply('pluralize',c),h=a.apply('undotted,pluralize',d);if(g.toLowerCase()!==h.toLowerCase()){b=c+a.apply('capitalize',b)}return b},manyToMany:function(c,e,d){var b=this,a=b.apply('undotted,capitalize,singularize',e)+b.apply('undotted,capitalize,pluralize',d);if(c){a=b.apply('capitalize',c+a)}return a},manyToOne:function(d,b,a,c){return this.apply('capitalize,singularize',a)+this.apply('capitalize',b)},matrixRole:function(a,c){var b=this.apply(a?'multiRole,capitalize':'multiRole',c);return a?a+b:b},oneToOne:function(d,b,a,c){return this.apply('undotted,capitalize,singularize',a)+this.apply('capitalize',b)},setterName:function(a){return 'set'+this.apply('capitalize',a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(b,c){var e=this,h=e.cache,i=h[c]||(h[c]={}),a=i[b],d,g,f;if(!a){if(b.indexOf(',')<0){a=e[b](c)}else {g=(f=b.split(',')).length;a=c;for(d=0;d=Math.max(a,b)},find:function(g,h,d,e,b,c){var a=!e,f=!!(a&&c);return this.getData().findIndex(g,h,d,a,f,!b)},findRecord:function(){var a=this,b=a.find.apply(a,arguments);return b!==-1?a.getAt(b):null},findExact:function(a,c,b){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(a),c)},this,b)},findBy:function(c,a,b){return this.getData().findIndexBy(c,a,b)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,a){var c=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==!1){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(c,a){var b;if(!a){a=this.createFiltersCollection();b=!0}a.add(c);if(b){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==!1){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(c,a){var b;if(!a){a=this.createSortersCollection();b=!0}a.add(c);if(b){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(a,c,b){if(Ext.isString(a)){a={property:a,value:c}}this.suppressNextFilter=!!b;this.getFilters().add(a);this.suppressNextFilter=!1},removeFilter:function(a,d){var b=this,c=b.getFilters();b.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){c.remove(a)}else {c.removeByKey(a)}b.suppressNextFilter=!1},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(!1),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(!1),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=!1},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(!1);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=!1},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(!1);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(b){if(b.getTransform()){return}var e=b.getProperty(),d=this.getModel(),c,a;if(d){c=d.getField(e);a=c?c.getSortType():null}if(a&&a!==Ext.identityFn){b.setTransform(a)}},beginUpdate:function(){if(!this.updating++){this.fireEvent('beginupdate')}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent('endupdate');this.onEndUpdate()}},getState:function(){var c=this,e=[],g=c.getFilters(),f=c.getGrouper(),a,d,b;c.getSorters().each(function(a){e[e.length]=a.getState();d=!0});if(c.statefulFilters&&c.saveStatefulFilters){d=!0;a=[];g.each(function(b){a[a.length]=b.getState()})}if(f){d=!0}if(d){b={};if(e.length){b.sorters=e}if(a){b.filters=a}if(f){b.grouper=f.getState()}}return b},applyState:function(b){var a=this,e=b.sorters,c=b.filters,d=b.grouper;if(e){a.getSorters().replaceAll(e)}if(c){a.saveStatefulFilters=!0;a.getFilters().replaceAll(c)}if(d){a.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.callParent();a.onDestroy()},sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else {a.forceLocalSort()}}else {a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(b,a){if(a){this.fireEvent('beforesort',this,a.getRange())}},onSorterEndUpdate:function(){var a=this,b;b=a.getSorters(!1);if(a.settingGroups||!b){return}b=b.getRange();if(b.length){if(a.getRemoteSort()){a.load({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('sort',a,b)}}else {a.fireEvent('sort',a,b)}},onFilterEndUpdate:function(){var a=this,b=a.suppressNextFilter;if(a.getRemoteFilter()){a.currentPage=1;if(!b){a.load()}}else {if(!b){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}if(a.trackStateChanges){a.saveStatefulFilters=!0}a.fireEvent('filterchange',a,a.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else {this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(b,d){var a=this,c=a.getSorters(!1),e=b||c&&c.length;if(b&&typeof b==='string'){b={property:b,direction:d||a.getGroupDir()}}a.settingGroups=!0;a.getData().setGrouper(b);delete a.settingGroups;if(e){if(a.getRemoteSort()){a.load({scope:a,callback:a.fireGroupChange})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireGroupChange()}}else {a.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){this.fireEvent('groupchange',this,this.getGrouper())}},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b='';if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?'on':'un']('endupdate',this.onFilterEndUpdate,this)}},onRemoteSortSet:function(c,b){var a=this;if(c){c[b?'on':'un']('endupdate',a.onSorterEndUpdate,a);a.getData()[b?'un':'on']('beforesort',a.onBeforeCollectionSort,a)}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data,'AbstractStore'],0);Ext.cmd.derive('Ext.data.Error',Ext.Base,{isError:!0,$configPrefixed:!1,config:{field:null,message:''},constructor:function(a){this.initConfig(a);this.msg=this.message}},1,0,0,0,0,0,[Ext.data,'Error'],0);Ext.cmd.derive('Ext.data.ErrorCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.data.Errors',init:function(d){var b=this,h=d.fields,k=d.data,g,a,l,c,i,f,j,e;for(c=0,i=h.length;c]+>/gi,asText:function(a){return a!=null?String(a).replace(this.stripTagsRe,''):'\x00'},asUCText:function(a){return a!=null?String(a).toUpperCase().replace(this.stripTagsRe,''):'\x00'},asUCString:function(a){return a!=null?String(a).toUpperCase():'\x00'},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(b){var a=parseFloat(String(b).replace(this.stripCommasRe,''));return isNaN(a)?0:a},asInt:function(b){var a=parseInt(String(b).replace(this.stripCommasRe,''),10);return isNaN(a)?0:a}},0,0,0,0,0,0,[Ext.data,'SortTypes'],0);Ext.cmd.derive('Ext.data.validator.Validator',Ext.Base,{isValidator:!0,type:'base',statics:{all:{},register:function(a,c){var b=this.all;b[a.toUpperCase()]=b[a.toLowerCase()]=b[a]=c.prototype}},onClassExtended:function(b,a){if(a.type){Ext.data.validator.Validator.register(a.type,b)}},constructor:function(a){if(typeof a==='function'){this.fnOnly=!0;this.validate=a}else {this.initConfig(a)}},validate:function(){return !0},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},1,0,0,0,['data.validator.base'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.validator,'Validator'],function(){this.register(this.prototype.type,this)});Ext.cmd.derive('Ext.data.field.Field',Ext.Base,{alternateClassName:'Ext.data.Field',aliasPrefix:'data.field.',type:'auto',factoryConfig:{defaultProperty:'name'},isDataField:!0,isField:!0,allowBlank:!0,allowNull:!1,critical:!1,defaultInvalidMessage:'This field is invalid',defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,unique:!1,rank:null,stripRe:/[\$,%]/g,calculated:!1,evil:!1,identifier:!1,onClassExtended:function(f,d){var b=d.sortType,c=f.prototype,e=c.validators,a=d.validators;if(b&&Ext.isString(b)){c.sortType=Ext.data.SortTypes[b]}if(a){if(!Ext.isArray(a)){a=[a]}delete d.validators;if(e){a=e.concat(a)}c.validators=a}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var a=this,n=a.calculateRe,c,l,f,h,b,j,e,m,k,i,g;if(d){if(Ext.isString(d)){a.name=d}else {g=d.validators;if(g){delete d.validators;a.instanceValidators=g}Ext.apply(a,d)}}if(!a.allowNull){a.allowNull=!!a.reference}c=a.calculate;b=a.depends;if(c){a.convert=a.doCalculate;if(!b){if(!(b=c.$depends)){j={};k=c.toString();c.$depends=b=[];e=a.argumentNamesRe.exec(k);m=e?e[1]:'data';while(e=n.exec(k)){if(m===e[1]&&!j[i=e[2]]){j[i]=1;b.push(i)}}}a.depends=b}}f=a.defaultValue;if(a.convert){a.calculated=l=a.convert.length>1;a.evil=l&&!b}if(a.persist===null){a.persist=!c}h=a.sortType;if(!a.sortType){a.sortType=Ext.data.SortTypes.none}else {if(Ext.isString(h)){a.sortType=Ext.data.SortTypes[h]}}if(b&&typeof b==='string'){a.depends=[b]}a.cloneDefaultValue=f!==undefined&&(Ext.isDate(f)||Ext.isArray(f)||Ext.isObject(f))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},compileValidators:function(){var a=this;a._validators=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var d=a.length,e=this._validators,c,b;for(c=0;c0){(u=p[v]).dirty=!0;d=d?Math.min(d,u.rank):u.rank}if(!b||b.persist){if(f&&f.hasOwnProperty(c)){if(!y||o.isEqual(f[c],h)){delete f[c];a.dirty=-1}}else {if(y){if(!f){a.modified=f={}}a.dirty=!0;f[c]=j}}}if(c===a.idField.name){D=!0;z=j;s=h}}if(!d){break}b=l[d-1];b.dirty=!1;if(n){delete g[i]}else {g=a._singleProp;n=!0}i=b.name;g[i]=t[i];C=!0;for(;d0;){d=(b=g[i]).name;if(!(d in f)){c=h[d];if(j&&b.serialize){c=b.serialize(c,a)}f[d]=c}}}if(n){a.getAssociatedData(f,e)}return f},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(a){a=Ext.apply({},a);var b=this,d=a.scope||b,g=b.getProxy(),f=a.callback,c=b.loadOperation,h=b.getId(),e;if(c){e=c.extraCalls;if(!e){e=c.extraCalls=[]}e.push(a);return c}a.id=h;a.recordCreator=function(e,f,c){var d=b.session;if(c){c.recordCreator=d?d.recordCreator:null}b.set(e,b._commitOptions);return b};a.internalCallback=function(e){var h=e.wasSuccessful()&&e.getRecords().length>0,l=b.loadOperation,i=l.extraCalls,c=[b,e],j=[b,e,h],g,k;b.loadOperation=null;if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(f,d,j);if(i){for(g=0,k=i.length;g0;){b=i[a];if(b in e){delete e[b];delete j[b]}}for(a=0,h=f.length;a=a.getTotal()){a.setConfig({success:!1,records:[],total:0})}else {a.setRecords(Ext.Array.slice(d,e,e+i))}}b.setCompleted()}},clear:Ext.emptyFn},0,0,0,0,['proxy.memory'],0,[Ext.data.proxy,'Memory',Ext.data,'MemoryProxy'],0);Ext.cmd.derive('Ext.data.ProxyStore',Ext.data.AbstractStore,{config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:!1,batchUpdateMode:'operation',sortOnLoad:!0,trackRemoved:!0,asynchronousLoad:undefined},onClassExtended:function(e,d,b){var c=d.model,a;if(typeof c==='string'){a=b.onBeforeCreated;b.onBeforeCreated=function(){var g=this,f=arguments;Ext.require(c,function(){a.apply(g,f)})}}},implicitModel:'Ext.data.Model',autoSyncSuspended:0,constructor:function(b){var a=this;a.removed=[];Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(a.getAsynchronousLoad()===!1){a.flushLoad()}},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else {this.getFields();a=this.getModel()||this.createImplicitModel()}return a},applyProxy:function(a){var b=this.getModel();if(a!==null){if(a){if(a.isProxy){a.setModel(b)}else {if(Ext.isString(a)){a={type:a,model:b}}else {if(!a.model){a=Ext.apply({model:b},a)}}a=Ext.createByAlias('proxy.'+a.type,a);a.autoCreated=!0}}else {if(b){a=b.getProxy()}}if(!a){a=Ext.createByAlias('proxy.memory');a.autoCreated=!0}}return a},applyState:function(b){var a=this;Ext.data.AbstractStore.prototype.applyState.call(this,b);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(b,a){this.fireEvent('metachange',this,a)},create:function(f,a){var b=this,e=b.getModel(),d=new e(f),c;a=Ext.apply({},a);if(!a.records){a.records=[d]}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('create',a);return c.execute()},read:function(){return this.load.apply(this,arguments)},update:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getUpdatedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('update',a);return c.execute()},onProxyWrite:function(a){var b=this,c=a.wasSuccessful(),d=a.getRecords();switch(a.getAction()){case 'create':b.onCreateRecords(d,a,c);break;case 'update':b.onUpdateRecords(d,a,c);break;case 'destroy':b.onDestroyRecords(d,a,c);break;}if(c){b.fireEvent('write',b,a);b.fireEvent('datachanged',b)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(c,b,a){if(a){this.cleanRemoved()}},erase:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getRemovedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('destroy',a);return c.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(e,f){var a=this,c=e.operations,d=c.length,b;if(a.batchUpdateMode!=='operation'){a.suspendEvents();for(b=0;b0){b.create=f;c=!0}if(g.length>0){b.update=g;c=!0}if(e.length>0){b.destroy=e;c=!0}if(c&&a.fireEvent('beforesync',b)!==!1){a.isSyncing=!0;d=d||{};a.proxy.batch(Ext.apply(d,{operations:b,listeners:a.getBatchListeners()}))}return a},getBatchListeners:function(){var a=this,b={scope:a,exception:a.onBatchException,complete:a.onBatchComplete};if(a.batchUpdateMode==='operation'){b.operationcomplete=a.onBatchOperationComplete}return b},save:function(){return this.sync.apply(this,arguments)},load:function(b){var a=this;if(typeof b==='function'){b={callback:b}}else {b=b?Ext.Object.chain(b):{}}a.pendingLoadOptions=b;if(a.getAsynchronousLoad()){if(!a.loadTimer){a.loadTimer=Ext.asap(a.flushLoad,a)}}else {a.flushLoad()}return a},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b;a.clearLoadTask();if(!c){return}a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}b=Ext.apply({internalScope:a,internalCallback:a.onProxyLoad,scope:a},c);a.lastOptions=b;b=a.createOperation('read',b);if(a.fireEvent('beforeload',a,b)!==!1){a.onBeforeLoad(b);a.loading=!0;b.execute()}},reload:function(a){var b=Ext.apply({},a,this.lastOptions);return this.load(b)},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,onDestroy:function(){var a=this,b=a.getProxy();a.clearLoadTask();a.getData().destroy();a.data=null;a.setProxy(null);if(b.autoCreated){b.destroy()}a.setModel(null)},hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){Ext.asapCancel(this.loadTimer);this.pendingLoadOptions=this.loadTimer=null},cleanRemoved:function(){var a=this.getRawRemovedRecords(),c,b;if(a){for(b=0,c=a.length;b-1},each:function(f,e){var c=this.data.items,d=c.length,b,a;for(a=0;a0){if(u){f=0;if(d.length>1&&h){f=1}b[i]=d[f].getProperty();b[t]=d[f].getDirection()}else {b[i]=a.encodeSorters(d)}}if(l&&j&&j.length>0){b[l]=a.encodeFilters(j)}return b},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format('{0}={1}',b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(a){var b;if(a){b=a.getUrl()||this.getApi()[a.getAction()]}return b?b:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a){},afterRequest:Ext.emptyFn,destroy:function(){Ext.data.proxy.Proxy.prototype.destroy.call(this);Ext.destroy(this.getReader(),this.getWriter());this.reader=this.writer=null}},0,0,0,0,['proxy.server'],0,[Ext.data.proxy,'Server',Ext.data,'ServerProxy'],0);Ext.cmd.derive('Ext.data.proxy.Ajax',Ext.data.proxy.Server,{alternateClassName:['Ext.data.HttpProxy','Ext.data.AjaxProxy'],isAjaxProxy:!0,defaultActionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'},config:{binary:!1,headers:undefined,paramsAsJson:!1,withCredentials:!1,useDefaultXhrHeader:!0,username:null,password:null,actionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'}},doRequest:function(e){var a=this,g=a.getWriter(),b=a.buildRequest(e),f=a.getMethod(b),c,d;if(g&&e.allowWrite()){b=g.write(b)}b.setConfig({binary:a.getBinary(),headers:a.getHeaders(),timeout:a.getTimeout(),scope:a,callback:a.createRequestCallback(b,e),method:f,useDefaultXhrHeader:a.getUseDefaultXhrHeader(),disableCaching:!1});if(f.toUpperCase()!=='GET'&&a.getParamsAsJson()){d=b.getParams();if(d){c=b.getJsonData();if(c){c=Ext.Object.merge({},c,d)}else {c=d}b.setJsonData(c);b.setParams(undefined)}}if(a.getWithCredentials()){b.setWithCredentials(!0);b.setUsername(a.getUsername());b.setPassword(a.getPassword())}return a.sendRequest(b)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(d){var a=this.getActionMethods(),b=d.getAction(),c;if(a){c=a[b]}return c||this.defaultActionMethods[b]},createRequestCallback:function(b,c){var a=this;return function(f,e,d){if(b===a.lastRequest){a.lastRequest=null}a.processResponse(e,c,b,d)}},destroy:function(){this.lastRequest=null;Ext.data.proxy.Server.prototype.destroy.call(this)}},0,0,0,0,['proxy.ajax'],0,[Ext.data.proxy,'Ajax',Ext.data,'HttpProxy',Ext.data,'AjaxProxy'],0);Ext.cmd.derive('Ext.data.reader.Json',Ext.data.reader.Reader,{alternateClassName:'Ext.data.JsonReader',config:{record:null,metaProperty:'metaData',useSimpleAccessors:!1,preserveRawData:!1},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},readRecords:function(a,e,d){var b=this,c;if(b.getMeta){c=b.getMeta(a);if(c){b.onMetaChange(c)}}else {if(a.metaData){b.onMetaChange(a.metaData)}}return Ext.data.reader.Reader.prototype.readRecords.call(this,a,e,d)},getResponseData:function(b){var a;try{return Ext.decode(b.responseText)}catch(c){a=this.createReadError(c.message);Ext.Logger.warn('Unable to parse the JSON returned by the server');this.fireEvent('exception',this,b,a);return a}},buildExtractors:function(){var a=this,b,c;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){b=a.getMetaProperty();c=a.getRootProperty();if(c){a.getRoot=a.getAccessor(c)}else {a.getRoot=Ext.identityFn}if(b){a.getMeta=a.getAccessor(b)}}},extractData:function(a,f){var e=this.getRecord(),d=[],c,b;if(e){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b1||e&&!g){b+=d}else {if(k){i=!1;if(l){++e}else {if(g){--e;i=!0}}if(b){if(i){b='['+b+']'}else {b='.'+b}j+=b;m.push(''+j);b=''}}}}f=m.join(' && ');f=Ext.functionFactory('raw','return '+f)}return f}}(),createFieldAccessor:function(b){var e=this,a=b.mapping,c=a||a===0,d=c?a:b.name;if(c){if(typeof d==='function'){return function(a){return b.mapping(a,e)}}else {return e.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?'simple':'';return this.$className+a+b},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot}}},0,0,0,0,['reader.json'],0,[Ext.data.reader,'Json',Ext.data,'JsonReader'],0);Ext.cmd.derive('Ext.data.writer.Json',Ext.data.writer.Writer,{alternateClassName:'Ext.data.JsonWriter',config:{rootProperty:undefined,encode:!1,allowSingle:!0,expandData:!1},getExpandedData:function(f){var h=f.length,g=0,a,c,b,d,e,i=function(c,b){var a={};a[c]=b;return a};for(;g0){e=a[c];for(;d>0;d--){e=i(b[d],e)}a[b[0]]=a[b[0]]||{};Ext.Object.merge(a[b[0]],e);delete a[c]}}}}return f},writeRecords:function(b,a){var c=this,e=c.getRootProperty(),d,g,f;if(c.getExpandData()){a=c.getExpandedData(a)}if(c.getAllowSingle()&&a.length===1){a=a[0];g=!0}f=this.getTransform();if(f){a=f(a,b)}if(c.getEncode()){if(e){b.setParam(e,Ext.encode(a))}else {}}else {if(g||a&&a.length){d=b.getJsonData()||{};if(e){d[e]=a}else {d=a}b.setJsonData(d)}}return b}},0,0,0,0,['writer.json'],0,[Ext.data.writer,'Json',Ext.data,'JsonWriter'],0);Ext.cmd.derive('Ext.util.Group',Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001},0,0,0,0,0,0,[Ext.util,'Group'],0);Ext.cmd.derive('Ext.util.SorterCollection',Ext.util.Collection,{isSorterCollection:!0,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(b){var a=this;a.sortFn=Ext.util.Sorter.createComparator(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeSorter)},addSort:function(b,c,d){var a=this,f,j,k,g,h,i,e;if(!b){a.beginUpdate();a.endUpdate()}else {g=a.getOptions();if(b instanceof Array){e=b;d=c;c=null}else {if(Ext.isString(b)){if(!(i=a.get(b))){e=[{property:b,direction:c||g.getDefaultSortDirection()}]}else {e=[i]}}else {if(Ext.isFunction(b)){e=[{sorterFn:b,direction:c||g.getDefaultSortDirection()}]}else {e=[b];d=c;c=null}}}d=a._sortModes[d||'replace'];h=a.getAt(0);f=a.length;j=d.append?f:0;a.beginUpdate();a.splice(j,d.replace?f:0,e);if(d.multi){f=a.length;k=g.getMultiSortLimit();if(f>k){a.removeAt(k,f)}}if(i&&c){i.setDirection(c)}else {if(j===0&&h&&h===a.getAt(0)){h.toggle()}}a.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(d){var c=this.items,e=c.length,a,b;for(a=0;ad+1||!Ext.isIterable(b)){b=Ext.Array.slice(e,d)}var j=k.items,l=b.length,c=[],f,g,i,a,h;for(f=0;f0;){g=j[i];if(g.getSorterFn()===a){c.push(g)}}}}}}b=c;b.$cloned=!0}return b},getOptions:function(){return this.$sortable||this}},1,0,0,0,0,0,[Ext.util,'SorterCollection'],0);Ext.cmd.derive('Ext.util.FilterCollection',Ext.util.Collection,{isFilterCollection:!0,$filterable:null,filterFn:null,constructor:function(b){var a=this;a.filterFn=Ext.util.Filter.createFilterFn(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},decodeFilter:function(b){var d=this.getOptions(),c=d.getRootProperty(),a;if(b.isFilter){if(!b.getRoot()){b.setRoot(c)}}else {a={root:c};if(Ext.isFunction(b)){a.filterFn=b}else {a=Ext.apply(a,b);if(a.fn){a.filterFn=a.fn;delete a.fn}if(Ext.util.Filter.isInvalid(a)){return !1}}b=new Ext.util.Filter(a)}return b},decodeRemoveItems:function(f,e){var p=this,b=e===undefined?f:f[e];if(!b.$cloned){if(f.length>e+1||!Ext.isIterable(b)){b=Ext.Array.slice(f,e)}var k=p.items,o=b.length,h=[],a,g,l,n,m,c,d,j,i;for(g=0;g0;){c=k[j];d=!1;if(m){d=c.getProperty()===a}else {if(l){d=c.getFilterFn()===a}else {if(n){d=c.getProperty()===a.property&&c.getValue()===a.value}}}if(d){h.push(c)}}}}b=h;b.$cloned=!0}return b},getOptions:function(){return this.$filterable||this}},1,0,0,0,0,0,[Ext.util,'FilterCollection'],0);Ext.cmd.derive('Ext.util.GroupCollection',Ext.util.Collection,{isGroupCollection:!0,config:{grouper:null,itemRoot:null},observerPriority:-100,onCollectionAdd:function(b,a){this.addItemsToGroups(b,a.items)},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){var c=a.item;if(!a.indexChanged){this.syncItemGrouping(b,c,b.getKey(c),a.oldKey,a.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(a){this.removeAll();this.addItemsToGroups(a,a.items)},onCollectionRemove:function(k,j){var d=this,g=d.changeDetails,b,h,a,e,i,c,f;if(g){f=g.item;a=d.findGroupForItem(f);b=[];if(a){b.push({group:a,items:[f]})}}else {b=d.groupItems(k,j.items,!1)}for(e=0,i=b.length;e0&&i.getSorters().getCount()===0){k=i.indexOf(a.items[0]);if(o-1){b=[c];d=1}else {d=0}}else {b=[];for(g=0,d=c.length;g=0;a--){d=c[a];d.reject();if(!g){b.insert(d.removedFrom||0,d)}}if(g){h.setAutoSort(i);b.add(c)}c.length=0}b.endUpdate();Ext.resumeLayouts(!0)},onDestroy:function(){var a=this,c=a.loadTask,d=a.getData(),b=d.getSource();a.clearData();Ext.data.ProxyStore.prototype.onDestroy.call(this);a.setSession(null);a.observers=null;if(c){c.cancel();a.loadTask=null}if(b){b.destroy()}},privates:{fetch:function(a){a=Ext.apply({},a);this.setLoadOptions(a);var b=this.createOperation('read',a);b.execute()},onBeforeLoad:function(a){this.callObservers('BeforeLoad',[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,a,b)},onRemoteSortSet:function(b,a){var c=this.getData();if(b){c.setSorters(a?null:b)}c.setAutoGroup(!a);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,a)},isMoving:function(a,f){var c=this.moveMap,b=0,e,d;if(c){if(a){if(Ext.isArray(a)){for(d=0,e=a.length;d-1}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Store'],0);Ext.cmd.derive('Ext.app.route.Queue',Ext.Base,{queue:null,token:null,constructor:function(a){Ext.apply(this,a);this.queue=new Ext.util.MixedCollection()},queueAction:function(a,b){this.queue.add({route:a,args:b})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var c=this.queue,a=c.removeAt(0),b;if(a){b=a&&a.route;b.execute(this.token,a.args,this.onActionExecute,this)}},onActionExecute:function(a){if(a){this.clearQueue()}else {this.runQueue()}}},1,0,0,0,0,0,[Ext.app.route,'Queue'],0);Ext.cmd.derive('Ext.app.route.Route',Ext.Base,{action:null,conditions:null,controller:null,allowInactive:!1,url:null,before:null,caseInsensitive:!1,matcherRegex:null,paramMatchingRegex:null,paramsInMatchString:null,constructor:function(c){var a=this,b;Ext.apply(a,c,{conditions:{}});b=a.url;a.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);a.paramsInMatchString=b.match(a.paramMatchingRegex)||[];a.matcherRegex=a.createMatcherRegex(b)},recognize:function(b){var a=this,d=a.controller,e,c;if((a.allowInactive||d.isActive())&&a.recognizes(b)){e=a.matchesFor(b);c=b.match(a.matcherRegex);c.shift();return Ext.applyIf(e,{controller:d,action:a.action,historyUrl:b,args:c})}return !1},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(h,d,f,g){var e=d.args||[],a=this.before,c=this.controller,b=this.createCallback(d,f,g);if(a){e.push(b);if(Ext.isString(a)){a=this.before=c[a]}if(a){a.apply(c,e)}}else {b.resume()}},matchesFor:function(f){var b={},d=this.paramsInMatchString,c=f.match(this.matcherRegex),a=0,e=d.length;c.shift();for(;a0){c=a.substring(0,d);b=a.substring(d+1)+'.'+c}else {if(a.indexOf('.')>0&&(Ext.ClassManager.isCreated(a)||this.hasRegisteredPrefix(a))){b=a}else {if(f){b=f+'.'+g+'.'+(e?e+'.'+a:a);c=a}else {b=a}}}return {absoluteName:b,shortName:c}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:!0,moduleClassName:null},onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,i){var g=Ext.app.Controller,h=[],e,f;f=j.prototype;e=g.resolveNamespace(j,i);if(e){f.$namespace=e}g.processDependencies(f,h,e,'model',i.models);g.processDependencies(f,h,e,'view',i.views);g.processDependencies(f,h,e,'store',i.stores);g.processDependencies(f,h,e,'controller',i.controllers);Ext.require(h,Ext.Function.pass(b,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.apply(this,arguments)},normalizeRefs:function(a){var c=this,b=[];if(a){if(Ext.isObject(a)){Ext.Object.each(a,function(d,c){if(Ext.isString(c)){c={selector:c}}c.ref=d;b.push(c)})}else {if(Ext.isArray(a)){b=Ext.Array.merge(b,a)}}}a=c.refs;if(a){c.refs=null;a=c.normalizeRefs(a);if(a){b=Ext.Array.merge(b,a)}}return b},getRefMap:function(){var e=this,a=e._refMap,b,d,f,c;if(!a){b=e.getRefs();a=e._refMap={};if(b){for(c=0,f=b.length;c0){d=c[b];a.map[a.getKey(d)]=b}++a.generation}}},1,0,0,0,0,0,[Ext.util,'Bag'],0);Ext.cmd.derive('Ext.util.Scheduler',Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:!1,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var a=this,b=a.items;if(b===a.firing){a.items=b=b.clone()}c.id=c.id||++a.nextId;c.scheduler=a;b.add(c);if(!a.sortMap){a.orderedItems=null}},remove:function(c){var a=this,b=a.items;if(a.destroyed){return}if(b===a.firing){a.items=b=b.clone()}if(c.scheduled){a.unscheduleItem(c);c.scheduled=!1}b.remove(c);a.orderedItems=null},sort:function(){var a=this,b=a.items,f={},e=a.getPreSort(),c,d;a.orderedItems=[];a.sortMap=f;if(e){b.sort(e)}b=b.items;for(c=0;c0;){c[d].stub=b}}return b},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return !0}}return !1},onSchedule:function(){for(var c,e,b,a,d=this.parent;d;d=d.parent){a=d.bindings;if(a){for(c=0,e=a.length;c '+a.binding.getFullName()+')')},getDataObject:function(){var a=this.binding;return a&&a.getDataObject()},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isLoading:function(){var a=this.binding;return a?a.isLoading():!1},link:function(c,b){var a=this,d=a.binding;if(d){d.destroy()}b=a.target=b||a.owner;a.linkDescriptor=c;a.binding=b.bind(c,a.onChange,a);a.binding.deep=!0},onChange:function(){this.invalidate(!0)},react:function(){var a=this,b=a.owner.linkData;b[a.name]=a.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var c=this,b=Ext.app.bind.Stub.prototype.collect.call(this),a=c.binding?1:0;return b+a},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}},0,0,0,0,0,0,[Ext.app.bind,'LinkStub'],0);Ext.cmd.derive('Ext.app.bind.RootStub',Ext.app.bind.AbstractStub,{isRootStub:!0,depth:0,createRootChild:function(a,j){var e=this,d=e.owner,i=d.getData(),g=e.children,c=g&&g[a],f=c?null:e,h,b;if(j||i.hasOwnProperty(a)||!(h=d.getParent())){b=new Ext.app.bind.Stub(d,a,f)}else {b=new Ext.app.bind.LinkStub(d,a,c?null:f);b.link('{'+a+'}',h)}if(c){c.graft(b)}return b},createStubChild:function(a){return this.createRootChild(a,!0)},descend:function(a,g){var f=this,d=f.children,b=g||0,e=a[b++],c=d&&d[e]||f.createRootChild(e);if(b0;){if(a[b].isLoading()){return !0}}return !1},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var b=this.bindings,d=b.length,a,c;for(a=0;a-1}}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Controller'],0);Ext.cmd.derive('Ext.data.PageMap',Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:''},clear:function(b){var a=this;a.pageMapGeneration=(a.pageMapGeneration||0)+1;a.indexMap={};Ext.util.LruCache.prototype.clear.call(this,b)},forEach:function(k,f){var d=this,b=Ext.Object.getKeys(d.map),h=b.length,j=d.getPageSize(),a,c,e,g,i;for(a=0;ad},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(l,f){f--;if(!this.hasRange(l,f)){Ext.raise('PageMap asked for range which it does not have')}var c=this,k=Ext.Array,e=c.getPageSize(),g=c.getPageFromRecordIndex(l),h=c.getPageFromRecordIndex(f),m=(g-1)*e,n=h*e-1,a=g,j=[],d,i,b;for(;a<=h;a++){if(a===g){d=l-m;b=d>0}else {d=0;b=!1}if(a===h){i=e-(n-f);b=b||i=g){b=g-1;c=Math.max(b-h,0)}if(a.rangeCached(c,Math.min(b,a.totalCount))){a.loading=!1;f.un('pageadd',e);l=f.getRange(c,b+1);a.fireEvent('load',a,l,!0);a.fireEvent('refresh',a)}};h=Math.ceil((a.getLeadingBufferZone()+a.getTrailingBufferZone())/2);if(a.lastRequestStart&&a.preserveScrollOnReload){c=a.lastRequestStart;b=a.lastRequestEnd;i=a.getTotalCount()}else {c=d.start||0;b=c+(d.count||a.getPageSize())-1}f.clear(!0);delete a.totalCount;c=Math.max(c-h,0);b=Math.min(b+h,i);j=a.getPageFromRecordIndex(c);k=a.getPageFromRecordIndex(b);a.loading=!0;d.waitForReload=e;f.on('pageadd',e);for(g=j;g<=k;g++){a.prefetchPage(g,d)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},clearData:function(c){var b=this,a=b.getData();if(a){a.clear()}},getCount:function(){return this.totalCount||0},getRange:function(c,b,f){var a=this,k=a.totalCount-1,m=a.lastRequestStart,l=[],h=a.getData(),g,d,e,i,j;f=Ext.apply({prefetchStart:c,prefetchEnd:b},f);b=b>=a.totalCount?k:b;d=c===0?0:c-1;e=b===k?b:b+1;a.lastRequestStart=c;a.lastRequestEnd=b;if(a.rangeCached(d,e)){a.onRangeAvailable(f);l=h.getRange(c,b+1)}else {a.fireEvent('cachemiss',a,c,b);i=a.getPageFromRecordIndex(d);j=a.getPageFromRecordIndex(e);g=function(l,k,m){if(k>=i&&k<=j&&a.rangeCached(d,e)){a.fireEvent('cachefilled',a,c,b);h.un('pageadd',g);a.onRangeAvailable(f)}};h.on('pageadd',g);a.prefetchRange(c,b)}a.primeCache(c,b,c-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var a=this,c;if(b&&typeof b==='string'){c=a.grouper;if(!c){a.grouper=new Ext.util.Grouper({property:b,direction:d||'ASC',root:'data'})}else {if(d===undefined){c.toggle()}else {c.setDirection(d)}}}else {a.grouper=b?a.getSorters().decodeSorter(b,'Ext.util.Grouper'):null}a.getData().clear();a.loadPage(1,{callback:function(){a.fireEvent('groupchange',a,a.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(c){var a=this,b=a.getPurgePageCount();return b?Math.max(a.getData().getMaxSize()||0,Math.ceil((c+a.getTrailingBufferZone()+a.getLeadingBufferZone())/a.getPageSize())*2+b):0},loadToPrefetch:function(b){var a=this,f=b,h,d,i,e=b.start,k=b.start+b.limit-1,m=a.getViewSize()||b.limit,c=Math.min(k,b.start+m-1),p=a.getPageFromRecordIndex(Math.max(e-a.getTrailingBufferZone(),0)),q=a.getPageFromRecordIndex(k+a.getLeadingBufferZone()),g=a.getData(),j=function(){d=d||[];if(b.loadCallback){b.loadCallback.call(b.scope||a,d,o,!0)}if(b.callback){b.callback.call(b.scope||a,d,e||0,k||0,b)}},n=function(){a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('load',a,d,!0)},l=function(){if(a.rangeCached(e,c)){a.loading=!1;d=g.getRange(e,c+1);g.un('pageadd',l);if(a.hasListeners.guaranteedrange){a.guaranteeRange(e,c,b.callback,b.scope)}j();n()}},o;g.setMaxSize(a.calculatePageCacheSize(m));if(a.fireEvent('beforeload',a,b)!==!1){delete a.totalCount;a.loading=!0;if(b.callback){f=Ext.apply({},b);delete f.callback}a.on('prefetch',function(m,e,d,k){o=k;if(d){if(i=a.getTotalCount()){g.on('pageadd',l);c=Math.min(c,i-1);q=a.getPageFromRecordIndex(Math.min(c+a.getLeadingBufferZone(),i-1));for(h=p+1;h<=q;++h){a.prefetchPage(h,f)}}else {j();n()}}else {a.loading=!1;j();a.fireEvent('load',a,e,!1)}},null,{single:!0});a.prefetchPage(p,f)}},prefetch:function(b){var a=this,c=a.getPageSize(),d=a.getData(),e,f;if(c){if(a.lastPageSize&&c!=a.lastPageSize){Ext.raise('pageSize cannot be dynamically altered')}if(!d.getPageSize()){d.setPageSize(c)}}else {a.pageSize=d.setPageSize(c=b.limit)}a.lastPageSize=c;if(!b.page){b.page=a.getPageFromRecordIndex(b.start);b.start=(b.page-1)*c;b.limit=Math.ceil(b.limit/c)*c}f=a.pageRequests[b.page];if(!f||f.getOperation().pageMapGeneration!==d.pageMapGeneration){b=Ext.apply({action:'read',filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper(),internalCallback:a.onProxyPrefetch,internalScope:a},b);e=a.createOperation('read',b);e.pageMapGeneration=d.pageMapGeneration;if(a.fireEvent('beforeprefetch',a,e)!==!1){a.pageRequests[b.page]=e.execute();if(a.getProxy().isSynchronous){delete a.pageRequests[b.page]}}}return a},onPageMapClear:function(){var a=this,e=a.wasLoading,d=a.pageRequests,b=a.getData(),c;b.clearListeners();b.on('clear',a.onPageMapClear,a);a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.loading=!0;a.totalCount=0;for(c in d){if(d.hasOwnProperty(c)){d[c].getOperation().abort()}}a.fireEvent('clear',a);a.loading=e},prefetchPage:function(d,e){var a=this,b=a.getPageSize(),f=(d-1)*b,c=a.totalCount;if(c!==undefined&&a.data.getCount()===c){return}a.prefetch(Ext.applyIf({page:d,start:f,limit:b},e))},onProxyPrefetch:function(b){if(this.destroyed){return}var a=this,g=b.getResultSet(),e=b.getRecords(),d=b.wasSuccessful(),i=b.getPage(),c=b.waitForReload,k=a.totalCount,h=a.pageRequests,j,f;if(b.pageMapGeneration===a.getData().pageMapGeneration){if(g){a.totalCount=g.getTotal();if(a.totalCount!==k){a.fireEvent('totalcountchange',a.totalCount)}}if(i!==undefined){delete a.pageRequests[i]}a.loading=!1;a.fireEvent('prefetch',a,e,d,b);if(d){if(a.totalCount===0){if(c){for(j in h){f=h[j].getOperation();if(f.waitForReload===c){delete f.waitForReload}}a.getData().un('pageadd',c);a.fireEvent('load',a,[],!0);a.fireEvent('refresh',a)}}else {a.cachePage(e,b.getPage())}}Ext.callback(b.getCallback(),b.getScope()||a,[e,b,d])}},cachePage:function(b,d){var a=this,e=b.length,c;if(!Ext.isDefined(a.totalCount)){a.totalCount=b.length;a.fireEvent('totalcountchange',a.totalCount)}for(c=0;cf-1?f-1:a.prefetchEnd,d;b=Math.max(0,b);d=c.getData().getRange(e,b+1);if(a.fireEvent!==!1){c.fireEvent('guaranteedrange',d,e,b,a)}if(a.callback){a.callback.call(a.scope||c,d,e,b,a)}},guaranteeRange:function(d,e,b,c,a){a=Ext.apply({callback:b,scope:c},a);this.getRange(d,e+1,a)},prefetchRange:function(c,d){var a=this,e,f,b,g=a.getData();if(!a.rangeCached(c,d)){e=a.getPageFromRecordIndex(c);f=a.getPageFromRecordIndex(d);g.setMaxSize(a.calculatePageCacheSize(d-c+1));for(b=e;b<=f;b++){if(!a.pageCached(b)){a.prefetchPage(b)}}}},primeCache:function(a,b,g){var c=this,f=c.getLeadingBufferZone(),e=c.getTrailingBufferZone(),h=c.getPageSize(),d=c.totalCount;if(g===-1){a=Math.max(a-f,0);b=Math.min(b+e,d-1)}else {if(g===1){a=Math.max(Math.min(a-e,d-h),0);b=Math.min(b+f,d-1)}else {a=Math.min(Math.max(Math.floor(a-(f+e)/2),0),d-c.pageSize);b=Math.min(Math.max(Math.ceil(b+(f+e)/2),0),d-1)}}c.prefetchRange(a,b)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else {this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent('beforesort',a,b);a.clearAndLoad({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('sort',a,b)}},clearAndLoad:function(a){this.getData().clear();this.loadPage(1,a)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return !1}}},0,0,0,0,['store.buffered'],0,[Ext.data,'BufferedStore'],0);Ext.cmd.derive('Ext.data.NodeInterface',Ext.Base,{statics:{decorate:function(f){var a=Ext.data.schema.Schema.lookupEntity(f),e=a.prototype,c,b,d;if(!a.prototype.isObservable){a.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(e.isNode){return}c=e.idProperty;b=a.getField(c);d=b.type;a.override(this.getPrototypeBody());a.addFields([{name:'parentId',type:d,defaultValue:null,allowNull:b.allowNull},{name:'index',type:'int',defaultValue:-1,persist:!1,convert:null},{name:'depth',type:'int',defaultValue:0,persist:!1,convert:null},{name:'expanded',type:'bool',defaultValue:!1,persist:!1,convert:null},{name:'expandable',type:'bool',defaultValue:!0,persist:!1,convert:null},{name:'checked',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'leaf',type:'bool',defaultValue:!1},{name:'cls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'iconCls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'icon',type:'string',defaultValue:'',persist:!1,convert:null},{name:'root',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isLast',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isFirst',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'allowDrop',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'allowDrag',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'loaded',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'loading',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'href',type:'string',defaultValue:'',persist:!1,convert:null},{name:'hrefTarget',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtip',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtitle',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qshowDelay',type:'int',defaultValue:0,persist:!1,convert:null},{name:'children',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'visible',type:'boolean',defaultValue:!0,persist:!1},{name:'text',type:'string',persist:!1}])},getPrototypeBody:function(){var a={idchanged:!0,append:!0,remove:!0,move:!0,insert:!0,beforeappend:!0,beforeremove:!0,beforemove:!0,beforeinsert:!0,expand:!0,collapse:!0,beforeexpand:!0,beforecollapse:!0,sort:!0},b={silent:!0};return {isNode:!0,firstChild:null,lastChild:null,parentNode:null,previousSibling:null,nextSibling:null,constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.callParent(arguments);a.childNodes=[];return a},createNode:function(a){var b=this,j=b.childType,h,f,g,c,d,e,i=b.self;if(!a.isModel){if(j){i=b.schema.getEntity(j)}else {h=b.getTreeStore();f=h&&h.getProxy().getReader();g=b.getProxy();c=g?g.getReader():null;d=!f||c&&c.initialConfig.typeProperty?c:f;if(d){e=d.getTypeProperty();if(e){i=d.getChildType(b.schema,a,e)}}}a=new i(a)}if(!a.childNodes){a.firstChild=a.lastChild=a.parentNode=a.previousSibling=a.nextSibling=null;a.childNodes=[]}return a},isLeaf:function(){return this.get('leaf')===!0},setFirstChild:function(a){this.firstChild=a},setLastChild:function(a){this.lastChild=a},updateInfo:function(o,k){var a=this,i=a.data,r=i.depth,m={},n=a.childNodes,q=n.length,s=a.phantom,t=a.fields,c=a.modified||(a.modified={}),b,e,j,d,p,l=k.parentId,g,h,f;for(b in k){j=t[a.fieldOrdinals[b]];e=k[b];h=j&&j.persist;d=i[b];g=h&&b==='index'&&d!==-1&&(l&&l!==c.parentId);if(!g&&a.isEqual(d,e)){continue}i[b]=e;if(h){if(!g&&c.hasOwnProperty(b)){if(a.isEqual(c[b],e)){delete c[b];a.dirty=!1;for(p in c){if(c.hasOwnProperty(p)){a.dirty=!0;break}}}}else {a.dirty=!0;c[b]=d}}}if(o){a.commit();a.phantom=s}if(a.data.depth!==r){m={depth:a.data.depth+1};for(f=0;f0},isExpandable:function(){var a=this;if(a.get('expandable')){return !(a.isLeaf()||a.isLoaded()&&!a.phantom&&!a.hasChildNodes())}return !1},triggerUIUpdate:function(){this.callJoined('afterEdit',[])},appendChild:function(b,h,l){var a=this,j,m,c,e,f,k={isLast:!0,parentId:a.getId(),depth:(a.data.depth||0)+1},i,d=a.getTreeStore(),g=d&&d.bulkUpdate;Ext.suspendLayouts();if(Ext.isArray(b)){m=b.length;i=new Array(m);a.callTreeStore('beginFill');for(j=0;j0){if(!e){e=c.getTreeStore().getSortFn()}Ext.Array.sort(a,e);c.setFirstChild(a[0]);c.setLastChild(a[g-1]);for(b=0;b0){d.children=c=[];for(a=0;a1&&!a.getRemoteSort()&&a.getFolderSort()||j.length,e,h,c,d;if(a.needsLocalFilter()){d=a.getFilters().getFilterFn();b[0].set('visible',d(b[0]))}for(c=1;c')}else {b.push('>');if(c=a.tpl){c.applyOut(a.tplData,b)}if(c=a.html){b.push(c)}if(c=a.cn||a.children){e.generateMarkup(c,b)}h=e.closeTags;b.push(h[f]||(h[f]=''))}}}return b},generateStyles:function(c,d,f){var e=d||[],a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];a=this.decamelizeName(a);if(f&&Ext.String.hasHtmlCharacters(b)){b=Ext.String.htmlEncode(b)}e.push(a,':',b,';')}}return d||e.join('')},markup:function(a){if(typeof a==='string'){return a}var b=this.generateMarkup(a,[]);return b.join('')},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(e){var d=this.detachedDiv,b=document.createDocumentFragment(),c,a;d.innerHTML=e;a=d.childNodes;c=a.length;while(c--){b.appendChild(a[0])}return b},createDom:function(e,f){var c=this,d=c.markup(e),b=c.detachedDiv,a;b.innerHTML=d;a=b.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(!0):a},insertHtml:function(g,f,j){var o=this,l,k,n,m,i;g=g.toLowerCase();if(f.insertAdjacentHTML){if(o.ieInsertHtml){i=o.ieInsertHtml(g,f,j);if(i){return i}}l=h[g];if(l){f.insertAdjacentHTML(l[0],j);return f[l[1]]}}else {if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}k=Ext.supports.CreateContextualFragment?f.ownerDocument.createRange():undefined;m='setStart'+(this.endRe.test(g)?'After':'Before');if(e[g]){if(k){k[m](f);i=k.createContextualFragment(j)}else {i=this.createContextualFragment(j)}f.parentNode.insertBefore(i,g===a?f:f.nextSibling);return f[(g===a?'previous':'next')+'Sibling']}else {n=(g===b?'first':'last')+'Child';if(f.firstChild){if(k){try{k[m](f[n]);i=k.createContextualFragment(j)}catch(p){i=this.createContextualFragment(j)}}else {i=this.createContextualFragment(j)}if(g===b){f.insertBefore(i,f.firstChild)}else {f.appendChild(i)}}else {f.innerHTML=j}return f[n]}}},insertBefore:function(c,d,b){return this.doInsert(c,d,b,a)},insertAfter:function(b,c,a){return this.doInsert(b,c,a,d)},insertFirst:function(c,d,a){return this.doInsert(c,d,a,b)},append:function(b,d,a){return this.doInsert(b,d,a,c)},overwrite:function(b,c,e){var d=this,a;b=Ext.getDom(b);c=d.markup(c);if(d.ieOverwrite){a=d.ieOverwrite(b,c)}if(!a){b.innerHTML=c;a=b.firstChild}return e?Ext.get(a):a},doInsert:function(f,j,k,g){var i=this,h;f=f.dom||Ext.getDom(f);if('innerHTML' in f){h=i.insertHtml(g,f,i.markup(j))}else {h=i.createDom(j,null);if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}if(e[g]){f.parentNode.insertBefore(h,g===a?f:f.nextSibling)}else {if(f.firstChild&&g===b){f.insertBefore(h,f.firstChild)}else {f.appendChild(h)}}}return k?Ext.get(h):h},createTemplate:function(b){var a=this.markup(b);return new Ext.Template(a)},createHtml:function(a){return this.markup(a)}}},0,0,0,0,0,0,[Ext.dom,'Helper',Ext,'DomHelper',Ext.core,'DomHelper'],0);Ext.define('Ext.overrides.dom.Helper',function(){var a=/^(?:table|thead|tbody|tr|td)$/i,f=/td|tr|tbody|thead/i,e='',d='
    ',c=e+'',b=''+d,h=c+'',g=''+b;return {override:'Ext.dom.Helper',ieInsertHtml:function(d,b,e){var c=null;if(Ext.isIE9m&&a.test(b.tagName)){c=this.insertIntoTable(b.tagName.toLowerCase(),d,b,e)}return c},ieOverwrite:function(b,c){if(Ext.isIE9m&&a.test(b.tagName)){while(b.firstChild){b.removeChild(b.firstChild)}if(c){return this.insertHtml('afterbegin',b,c)}}},ieTable:function(g,f,e,d){var h=-1,a=this.detachedDiv,b,c;a.innerHTML=[f,e,d].join('');while(++ha.interval){a.collect()}a.timerId=Ext.interval(a.collect,a.interval)}},1,0,0,0,0,0,[Ext.dom,'GarbageCollector'],0);Ext.cmd.derive('Ext.event.gesture.Recognizer',Ext.Base,{priority:0,handledEvents:[],config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(a){this.initConfig(a);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:Ext.emptyFn,onTouchCancel:Ext.emptyFn,fail:function(){return !1},fire:function(){this.getOnRecognized().apply(this.getCallbackScope(),arguments)},reset:Ext.emptyFn},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.event.gesture,'Recognizer'],0);Ext.cmd.derive('Ext.event.gesture.SingleTouch',Ext.event.gesture.Recognizer,{inheritableStatics:{NOT_SINGLE_TOUCH:'Not Single Touch',TOUCH_MOVED:'Touch Moved',EVENT_CANCELED:'Event Canceled'},onTouchStart:function(a){if(a.touches.length>1){return this.fail(this.self.NOT_SINGLE_TOUCH)}},onTouchCancel:function(){return !1}},0,0,0,0,0,0,[Ext.event.gesture,'SingleTouch'],0);Ext.cmd.derive('Ext.event.gesture.DoubleTap',Ext.event.gesture.SingleTouch,{priority:300,inheritableStatics:{DIFFERENT_TARGET:'Different Target'},config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:['singletap','doubletap'],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(c){var a=this,b;if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}b=a.lastStartPoint=c.changedTouches[0].point;a.startPoint=a.startPoint||b;a.startTime=c.time;clearTimeout(a.singleTapTimer)},onTouchMove:function(c){var a=this,b=c.changedTouches[0].point;if(Math.abs(b.getDistanceTo(a.lastStartPoint))>=a.getMoveDistance()){a.startPoint=null;return a.fail(a.self.TOUCH_MOVED)}},onTouchEnd:function(b){var a=this,f=a.getMaxDuration(),d=b.time,g=b.target,e=a.lastTapTime,h=a.lastTarget,i=b.changedTouches[0].point,c;a.lastTapTime=d;a.lastTarget=g;if(e){c=d-e;if(c<=f&&Math.abs(i.getDistanceTo(a.startPoint))<=a.getTapDistance()){if(g!==h){return a.fail(a.self.DIFFERENT_TARGET)}a.lastTarget=null;a.lastTapTime=0;a.fire('doubletap',b,{touch:b.changedTouches[0],duration:c});a.startPoint=null;return}}if(d-a.startTime>f){a.fireSingleTap(b)}else {a.setSingleTapTimer(b)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fireSingleTap(b)},a.getMaxDuration())},fireSingleTap:function(b,a){this.fire('singletap',b,{touch:a});this.startPoint=null},reset:function(){var a=this;a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null}},0,0,0,0,0,0,[Ext.event.gesture,'DoubleTap'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)});Ext.cmd.derive('Ext.event.gesture.Drag',Ext.event.gesture.SingleTouch,{priority:100,isStarted:!1,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:['dragstart','drag','dragend','dragcancel'],config:{minDistance:8},constructor:function(){Ext.event.gesture.SingleTouch.prototype.constructor.apply(this,arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0}}},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){if(this.isStarted&&this.lastMoveEvent!==null){this.lastMoveEvent.isStopped=!1;this.onTouchEnd(this.lastMoveEvent)}return !1}this.startTime=a.time;this.startPoint=a.changedTouches[0].point},tryDragStart:function(a){var f=this.startPoint,b=a.changedTouches[0],c=b.point,e=this.getMinDistance(),d=this.info;if(Math.abs(c.getDistanceTo(f))>=e){this.isStarted=!0;this.previousPoint=this.lastPoint=c;this.resetInfo('x',a,b);this.resetInfo('y',a,b);d.time=a.time;this.fire('dragstart',a,d)}},onTouchMove:function(a){if(!this.isStarted){this.tryDragStart(a)}if(!this.isStarted){return}var b=a.changedTouches[0],c=b.point;if(this.lastPoint){this.previousPoint=this.lastPoint}this.lastPoint=c;this.lastMoveEvent=a;this.updateInfo('x',a,b);this.updateInfo('y',a,b);this.info.time=a.time;this.fire('drag',a,this.info)},onAxisDragEnd:function(b,a){var c=a.time-a.previousTime[b];if(c>0){a.flick.velocity[b]=(a[b]-a.previous[b])/c}},resetInfo:function(b,h,g){var f=this.lastPoint[b],d=this.startPoint[b],e=f-d,c=b.toUpperCase(),a=this.info;a.touch=g;a.delta[b]=e;a.absDelta[b]=Math.abs(e);a.previousTime[b]=this.startTime;a.previous[b]=d;a[b]=f;a.direction[b]=0;a['start'+c]=this.startPoint[b];a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=0;a.startTime=this.startTime},updateInfo:function(b,l,k){var e=this,d=e.lastPoint[b],g=e.previousPoint[b],f=e.startPoint[b],i=d-f,a=e.info,h=a.direction,c=b.toUpperCase(),j=a.previous[b];a.touch=k;a.delta[b]=i;a.absDelta[b]=Math.abs(i);if(d!==j&&d!==a[b]){a.previous[b]=a[b];a.previousTime[b]=a.time}a[b]=d;if(d>g){h[b]=1}else {if(dthis.getMaxDuration()){return this.fail(this.self.MAX_DURATION_EXCEEDED)}if(this.isHorizontal&&d>this.getMaxOffset()){this.isHorizontal=!1}if(this.isVertical&&c>this.getMaxOffset()){this.isVertical=!1}if(!this.isVertical||!this.isHorizontal){if(this.isHorizontal&&cj){this.isVertical=!1}if(this.isHorizontal&&i>j){this.isHorizontal=!1}if(this.isVertical&&this.isHorizontal){if(i>h){this.isHorizontal=!1}else {this.isVertical=!1}}if(this.isHorizontal){a=f<0?'left':'right';b=f}else {if(this.isVertical){a=g<0?'up':'down';b=g}}a=this.direction||(this.direction=a);if(a==='up'){b=g*-1}else {if(a==='left'){b=f*-1}}this.distance=b;if(!b){return this.fail(this.self.DISTANCE_NOT_ENOUGH)}if(!this.started){if(a==='right'&&this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='down'&&this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='left'&&o-this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='up'&&n-this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}}}}this.started=!0;this.startTime=c.time;this.fire('edgeswipestart',c,{touch:e,direction:a,distance:b,duration:k})}else {this.fire('edgeswipe',c,{touch:e,direction:a,distance:b,duration:k})}},onTouchEnd:function(a){var b;if(this.onTouchMove(a)!==!1){b=a.time-this.startTime;this.fire('edgeswipeend',a,{touch:a.changedTouches[0],direction:this.direction,distance:this.distance,duration:b})}},onTouchCancel:function(a){this.fire('edgeswipecancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){var a=this;a.started=a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null}},0,0,0,0,0,0,[Ext.event.gesture,'EdgeSwipe'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)});Ext.cmd.derive('Ext.event.gesture.LongPress',Ext.event.gesture.SingleTouch,{priority:400,inheritableStatics:{DURATION_NOT_ENOUGH:'Duration Not Enough'},config:{moveDistance:8,minDuration:1000},handledEvents:['longpress','taphold'],fireLongPress:function(a){this.fire('longpress',a,{touch:a.changedTouches[0],duration:this.getMinDuration()});this.isLongPress=!0},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}this.startPoint=a.changedTouches[0].point;this.isLongPress=!1;this.setLongPressTimer(a)},setLongPressTimer:function(b){var a=this;a.timer=Ext.defer(function(){a.fireLongPress(b)},a.getMinDuration())},onTouchMove:function(b){var a=b.changedTouches[0].point;if(Math.abs(a.getDistanceTo(this.startPoint))>=this.getMoveDistance()){return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(){if(!this.isLongPress){return this.fail(this.self.DURATION_NOT_ENOUGH)}},fail:function(){clearTimeout(this.timer);return Ext.event.gesture.SingleTouch.prototype.fail.apply(this,arguments)},reset:function(){this.isLongPress=this.startPoint=null},fire:function(b){if(b==='longpress'){var a=Array.prototype.slice.call(arguments);a[0]='taphold';this.fire.apply(this,a)}return Ext.event.gesture.SingleTouch.prototype.fire.apply(this,arguments)}},0,0,0,0,0,0,[Ext.event.gesture,'LongPress'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)});Ext.cmd.derive('Ext.event.gesture.MultiTouch',Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:!1,isStarted:!1,onTouchStart:function(a){var b=this.requiredTouchesCount,d=a.touches,c=d.length;if(c===b){this.start(a)}else {if(c>b){this.end(a)}}},onTouchEnd:function(a){this.end(a)},onTouchCancel:function(a){this.end(a,!0);return !1},start:function(){if(!this.isTracking){this.isTracking=!0;this.isStarted=!1}},end:function(b,a){if(this.isTracking){this.isTracking=!1;if(this.isStarted){this.isStarted=!1;this[a?'fireCancel':'fireEnd'](b)}}},reset:function(){this.isTracking=this.isStarted=!1}},0,0,0,0,0,0,[Ext.event.gesture,'MultiTouch'],0);Ext.cmd.derive('Ext.event.gesture.Pinch',Ext.event.gesture.MultiTouch,{priority:600,handledEvents:['pinchstart','pinch','pinchend','pinchcancel'],startDistance:0,lastTouches:null,onTouchMove:function(c){if(!this.isTracking){return}var b=c.touches,e,d,a;e=b[0].point;d=b[1].point;a=e.getDistanceTo(d);if(a===0){return}if(!this.isStarted){this.isStarted=!0;this.startDistance=a;this.fire('pinchstart',c,{touches:b,distance:a,scale:1})}else {this.fire('pinch',c,{touches:b,distance:a,scale:a/this.startDistance})}},fireEnd:function(a){this.fire('pinchend',a)},fireCancel:function(a){this.fire('pinchcancel',a)},fail:function(){return Ext.event.gesture.MultiTouch.prototype.fail.apply(this,arguments)},reset:function(){this.lastTouches=null;this.startDistance=0;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Pinch'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.pinch)});Ext.cmd.derive('Ext.event.gesture.Rotate',Ext.event.gesture.MultiTouch,{priority:700,handledEvents:['rotatestart','rotate','rotateend','rotatecancel'],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(g){if(!this.isTracking){return}var b=g.touches,c=this.lastAngle,i,h,a,e,d,f;i=b[0].point;h=b[1].point;a=i.getAngleTo(h);if(c!==null){f=Math.abs(c-a);e=a+360;d=a-360;if(Math.abs(e-c)=this.getMoveDistance()){this.fire('tapcancel',b,{touch:a});return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(a){this.fire('tap',a,{touch:a.changedTouches[0]})},onTouchCancel:function(a){this.fire('tapcancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){this.startPoint=null}},0,0,0,0,0,0,[Ext.event.gesture,'Tap'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)});Ext.cmd.derive('Ext.event.publisher.Focus',Ext.event.publisher.Dom,{type:'focus',handledEvents:['focusenter','focusleave','focusmove'],handledDomEvents:['focusin','focusout'],doDelegatedEvent:function(a,c){var d=this,b;a=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,a,!1);if(a){if(a.type==='focusout'){if(a.relatedTarget==null){d.processFocusIn(a,a.target,document.body,c)}}else {b=a.relatedTarget;d.processFocusIn(a,b==null||!b.tagName?document.body:b,a.target,c)}}},processFocusIn:function(i,d,e,l){var c=this,h,a,b=[],f,g,j,k;j=Ext.fly(d);k=Ext.fly(e);if(j&&j.isFocusSuspended()||k&&k.isFocusSuspended()){return}for(a=d,h=Ext.dom.Element.getCommonAncestor(e,d,!0);a&&a!==h;a=a.parentNode){b.push(a)}if(b.length){f=c.createSyntheticEvent('focusleave',i,d,e);c.publish('focusleave',b,f);if(f.isStopped){return}}b.length=0;for(a=e;a!==h;a=a.parentNode){b.push(a)}g=c.createSyntheticEvent('focusenter',i,e,d);if(b.length){c.publish('focusenter',b,g);if(g.isStopped){return}}b=c.getPropagatingTargets(h);if(b.length){f=c.createSyntheticEvent('focusmove',i,e,d);c.publish('focusmove',b,f);if(f.isStopped){return}}if(l){c.afterEvent(i)}Ext.GlobalEvents.fireEvent('focus',{event:g,toElement:e,fromElement:d})},createSyntheticEvent:function(d,c,e,b){var a=new Ext.event.Event(c);a.type=d;a.relatedTarget=b;a.target=e;return a}},0,0,0,0,0,0,[Ext.event.publisher,'Focus'],function(a){var b;a.instance=new a();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:['focus','blur'],doDelegatedEvent:function(c,e){var d=this;c=d.callSuper([c,!1]);if(c){clearTimeout(b);b=0;if(c.type==='blur'){var f=c.target===window?document.body:c.target;b=setTimeout(function(){b=0;d.processFocusIn(c,f,document.body,e);a.previousActiveElement=null},0);if(c.target===window||c.target===document){a.previousActiveElement=null}else {a.previousActiveElement=c.target}}else {d.processFocusIn(c,a.previousActiveElement||document.body,c.target===window?document.body:c.target,e)}}}})}});Ext.cmd.derive('Ext.fx.State',Ext.Base,{isAnimatable:{'background-color':!0,'background-image':!0,'background-position':!0,'border-bottom-color':!0,'border-bottom-width':!0,'border-color':!0,'border-left-color':!0,'border-left-width':!0,'border-right-color':!0,'border-right-width':!0,'border-spacing':!0,'border-top-color':!0,'border-top-width':!0,'border-width':!0,'bottom':!0,'color':!0,'crop':!0,'font-size':!0,'font-weight':!0,'height':!0,'left':!0,'letter-spacing':!0,'line-height':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'opacity':!0,'outline-color':!0,'outline-offset':!0,'outline-width':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'right':!0,'text-indent':!0,'text-shadow':!0,'top':!0,'vertical-align':!0,'visibility':!0,'width':!0,'word-spacing':!0,'z-index':!0,'zoom':!0,'transform':!0},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(d,a){var g=this.data,e=Ext.isArray(a),b=g.transform,c,f;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof d=='string'){switch(d){case 'translate':if(e){c=a.length;if(c==0){break}b.translateX=a[0];if(c==1){break}b.translateY=a[1];if(c==2){break}b.translateZ=a[2]}else {b.translateX=a};break;case 'rotate':if(e){c=a.length;if(c==0){break}b.rotateX=a[0];if(c==1){break}b.rotateY=a[1];if(c==2){break}b.rotateZ=a[2]}else {b.rotate=a};break;case 'scale':if(e){c=a.length;if(c==0){break}b.scaleX=a[0];if(c==1){break}b.scaleY=a[1];if(c==2){break}b.scaleZ=a[2]}else {b.scaleX=a;b.scaleY=a};break;case 'skew':if(e){c=a.length;if(c==0){break}b.skewX=a[0];if(c==1){break}b.skewY=a[1]}else {b.skewX=a};break;default:b[d]=a;}}else {for(f in d){if(d.hasOwnProperty(f)){a=d[f];this.setTransform(f,a)}}}},set:function(b,a){var d=this.data,c;if(typeof b!='string'){for(c in b){a=b[c];if(c==='transform'){this.setTransform(a)}else {d[c]=a}}}else {if(b==='transform'){this.setTransform(a)}else {d[b]=a}}return this},unset:function(b){var a=this.data;if(a.hasOwnProperty(b)){delete a[b]}return this},getData:function(){return this.data}},1,0,0,0,0,0,[Ext.fx,'State'],0);Ext.cmd.derive('Ext.fx.animation.Abstract',Ext.Evented,{isAnimation:!0,config:{name:'',element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:'linear',iteration:1,direction:'normal',delay:0,onBeforeStart:null,callback:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:!1,replacePrevious:!0},STATE_FROM:'0%',STATE_TO:'100%',DIRECTION_UP:'up',DIRECTION_DOWN:'down',DIRECTION_LEFT:'left',DIRECTION_RIGHT:'right',stateNameRegex:/^(?:[\d\.]+)%$/,constructor:function(){this.states={};Ext.Evented.prototype.constructor.apply(this,arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(b){var c=this.stateNameRegex,a;for(a in b){if(c.test(a)){this.setState(a,b[a])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent('stop',this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(c,d){var b=this.getStates(),a;a=Ext.factory(d,Ext.fx.State,b[c]);if(a){b[c]=a}return this},getState:function(a){return this.getStates()[a]},getData:function(){var a=this,b=a.getStates(),d={},e=a.getBefore(),f=a.getAfter(),k=b[a.STATE_FROM],l=b[a.STATE_TO],i=k.getData(),j=l.getData(),h,c,g;for(c in b){if(b.hasOwnProperty(c)){g=b[c];h=g.getData();d[c]=h}}return {before:e?e.getData():{},after:f?f.getData():{},states:d,from:i,to:j,duration:a.getDuration(),iteration:a.getIteration(),direction:a.getDirection(),easing:a.getEasing(),delay:a.getDelay(),onEnd:a.getOnEnd(),onBeforeEnd:a.getOnBeforeEnd(),onBeforeStart:a.getOnBeforeStart(),scope:a.getScope(),preserveEndState:a.getPreserveEndState(),replacePrevious:a.getReplacePrevious()}}},1,0,0,0,0,0,[Ext.fx.animation,'Abstract'],0);Ext.cmd.derive('Ext.fx.animation.Slide',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.SlideIn',config:{direction:'left',out:!1,offset:0,easing:'auto',containerBox:'auto',elementBox:'auto',isElementBoxFit:!0,useCssTransform:!0},reverseDirectionMap:{up:'down',down:'up',left:'right',right:'left'},applyEasing:function(a){if(a==='auto'){return 'ease-'+(this.getOut()?'in':'out')}return a},getContainerBox:function(){var a=this._containerBox;if(a==='auto'){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==='auto'){a=this.getElement().getBox()}return a},getData:function(){var o=this.getElementBox(),b=this.getContainerBox(),a=o?o:b,j=this.getFrom(),m=this.getTo(),d=this.getOut(),c=this.getOffset(),g=this.getDirection(),n=this.getUseCssTransform(),p=this.getReverse(),e=0,f=0,h,i,k,l;if(p){g=this.reverseDirectionMap[g]}switch(g){case this.DIRECTION_UP:if(d){f=b.top-a.top-a.height-c}else {f=b.bottom-a.bottom+a.height+c};break;case this.DIRECTION_DOWN:if(d){f=b.bottom-a.bottom+a.height+c}else {f=b.top-a.height-a.top-c};break;case this.DIRECTION_RIGHT:if(d){e=b.right-a.right+a.width+c}else {e=b.left-a.left-a.width-c};break;case this.DIRECTION_LEFT:if(d){e=b.left-a.left-a.width-c}else {e=b.right-a.right+a.width+c};break;}h=d?0:e;i=d?0:f;if(n){j.setTransform({translateX:h,translateY:i})}else {j.set('left',h);j.set('top',i)}k=d?e:0;l=d?f:0;if(n){m.setTransform({translateX:k,translateY:l})}else {m.set('left',k);m.set('top',l)}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.slide','animation.slideIn'],0,[Ext.fx.animation,'Slide',Ext.fx.animation,'SlideIn'],0);Ext.cmd.derive('Ext.fx.animation.SlideOut',Ext.fx.animation.Slide,{config:{out:!0}},0,0,0,0,['animation.slideOut'],0,[Ext.fx.animation,'SlideOut'],0);Ext.cmd.derive('Ext.fx.animation.Fade',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.FadeIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(c){var b=this.getTo(),a=this.getFrom();if(c){a.set('opacity',1);b.set('opacity',0)}else {a.set('opacity',0);b.set('opacity',1)}}},0,0,0,0,['animation.fade','animation.fadeIn'],0,[Ext.fx.animation,'Fade',Ext.fx.animation,'FadeIn'],0);Ext.cmd.derive('Ext.fx.animation.FadeOut',Ext.fx.animation.Fade,{config:{out:!0,before:{}}},0,0,0,0,['animation.fadeOut'],0,[Ext.fx.animation,'FadeOut'],0);Ext.cmd.derive('Ext.fx.animation.Flip',Ext.fx.animation.Abstract,{config:{easing:'ease-in',direction:'right',half:!1,out:null},getData:function(){var c=this,k=c.getFrom(),m=c.getTo(),j=c.getDirection(),b=c.getOut(),l=c.getHalf(),a=l?90:180,h=1,i=1,d=0,e=0,f=0,g=0;if(b){i=0.8}else {h=0.8}switch(j){case this.DIRECTION_UP:if(b){f=a}else {d=-a};break;case this.DIRECTION_DOWN:if(b){f=-a}else {d=a};break;case this.DIRECTION_RIGHT:if(b){g=a}else {e=-a};break;case this.DIRECTION_LEFT:if(b){g=-a}else {e=a};break;}k.setTransform({rotateX:d,rotateY:e,scale:h});m.setTransform({rotateX:f,rotateY:g,scale:i});return Ext.fx.animation.Abstract.prototype.getData.call(this)}},0,0,0,0,['animation.flip'],0,[Ext.fx.animation,'Flip'],0);Ext.cmd.derive('Ext.fx.animation.Pop',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.PopIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var b=this.getTo(),a=this.getFrom(),c=this.getOut();if(c){a.set('opacity',1);a.setTransform({scale:1});b.set('opacity',0);b.setTransform({scale:0})}else {a.set('opacity',0);a.setTransform({scale:0});b.set('opacity',1);b.setTransform({scale:1})}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.pop','animation.popIn'],0,[Ext.fx.animation,'Pop',Ext.fx.animation,'PopIn'],0);Ext.cmd.derive('Ext.fx.animation.PopOut',Ext.fx.animation.Pop,{config:{out:!0,before:{}}},0,0,0,0,['animation.popOut'],0,[Ext.fx.animation,'PopOut'],0);Ext.cmd.derive('Ext.fx.Animation',Ext.Base,{constructor:function(a){var c=Ext.fx.animation.Abstract,b;if(typeof a=='string'){b=a;a={}}else {if(a&&a.type){b=a.type}}if(b){c=Ext.ClassManager.getByAlias('animation.'+b)}return Ext.factory(a,c)}},1,0,0,0,0,0,[Ext.fx,'Animation'],0);Ext.cmd.derive('Ext.fx.runner.Css',Ext.Evented,{prefixedProperties:{'transform':!0,'transform-origin':!0,'perspective':!0,'transform-style':!0,'transition':!0,'transition-property':!0,'transition-duration':!0,'transition-timing-function':!0,'transition-delay':!0,'animation':!0,'animation-name':!0,'animation-duration':!0,'animation-iteration-count':!0,'animation-direction':!0,'animation-timing-function':!0,'animation-delay':!0},lengthProperties:{'top':!0,'right':!0,'bottom':!0,'left':!0,'width':!0,'height':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'border-bottom-width':!0,'border-left-width':!0,'border-right-width':!0,'border-spacing':!0,'border-top-width':!0,'border-width':!0,'outline-width':!0,'letter-spacing':!0,'line-height':!0,'text-indent':!0,'word-spacing':!0,'font-size':!0,'translate':!0,'translateX':!0,'translateY':!0,'translateZ':!0,'translate3d':!0},durationProperties:{'transition-duration':!0,'transition-delay':!0,'animation-duration':!0,'animation-delay':!0},angleProperties:{rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,skew:!0,skewX:!0,skewY:!0},lengthUnitRegex:/([a-z%]*)$/,DEFAULT_UNIT_LENGTH:'px',DEFAULT_UNIT_ANGLE:'deg',DEFAULT_UNIT_DURATION:'ms',formattedNameCache:{},transformMethods3d:['translateX','translateY','translateZ','rotate','rotateX','rotateY','rotateZ','skewX','skewY','scaleX','scaleY','scaleZ'],transformMethodsNo3d:['translateX','translateY','rotate','skewX','skewY','scaleX','scaleY'],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement('style');a.type='text/css';(document.head||document.getElementsByTagName('head')[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var i=this.getStyleSheet(),h=this.ruleStylesCache,k=i.cssRules,d,g,b,c,f,a,e;for(d in j){g=j[d];b=h[d];if(b===undefined){f=k.length;i.insertRule(d+'{}',f);b=h[d]=k.item(f).style}c=b.$cache;if(!c){c=b.$cache={}}for(a in g){e=this.formatValue(g[a],a);a=this.formatName(a);if(c[a]!==e){c[a]=e;if(e===null){b.removeProperty(a)}else {b.setProperty(a,e,'important')}}}}return this},applyStyles:function(f){var c,e,d,b,a,g;for(c in f){if(f.hasOwnProperty(c)){e=document.getElementById(c);if(!e){continue}d=e.style;b=f[c];for(a in b){if(b.hasOwnProperty(a)){g=this.formatValue(b[a],a);a=this.formatName(a);if(g===null){d.removeProperty(a)}else {d.setProperty(a,g,'important')}}}}}return this},formatName:function(b){var c=this.formattedNameCache,a=c[b];if(!a){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){a=this.vendorPrefix+b}else {a=b}c[b]=a}return a},formatValue:function(a,c){var j=typeof a,i=this.DEFAULT_UNIT_LENGTH,g,d,b,f,h,e,k;if(a===null){return ''}if(j=='string'){if(this.lengthProperties[c]){k=a.match(this.lengthUnitRegex)[1];if(k.length>0){}else {return a+i}}return a}else {if(j=='number'){if(a==0){return '0'}if(this.lengthProperties[c]){return a+i}if(this.angleProperties[c]){return a+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[c]){return a+this.DEFAULT_UNIT_DURATION}}else {if(c==='transform'){g=this.transformMethods;h=[];for(b=0,f=g.length;b0?e.join(', '):'none'}}}}return a}},1,0,0,0,0,0,[Ext.fx.runner,'Css'],0);Ext.cmd.derive('Ext.fx.runner.CssTransition',Ext.fx.runner.Css,{alternateClassName:'Ext.Animator',singleton:!0,listenersAttached:!1,constructor:function(){this.runningAnimationsData={};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=!0;Ext.getWin().on('transitionend','onTransitionEnd',this)},onTransitionEnd:function(c){var a=c.target,b=a.id;if(b&&this.runningAnimationsData.hasOwnProperty(b)){this.refreshRunningAnimationsData(Ext.get(a),[c.browserEvent.propertyName])}},onAnimationEnd:function(d,a,b,c,n){var l=d.getId(),j=this.runningAnimationsData[l],k={},h={},g,f,e,m,i;b.un('stop','onAnimationStop',this);if(j){g=j.nameMap}k[l]=h;if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,d,c)}b.fireEvent('animationbeforeend',b,d,c);this.fireEvent('animationbeforeend',this,b,d,c);if(n||!c&&!a.preserveEndState){f=a.toPropertyNames;for(e=0,m=f.length;e0},refreshRunningAnimationsData:function(i,m,f,g){var s=i.getId(),r=this.runningAnimationsData,e=r[s];if(!e){return}var o=e.nameMap,n=e.nameList,c=e.sessions,h,j,p,d,b,a,k,q,l=!1;f=Boolean(f);g=Boolean(g);if(!c){return this}h=c.length;if(h===0){return this}if(g){e.nameMap={};n.length=0;for(b=0;b');b.close();this.testElement=c=b.createElement('div');c.style.setProperty('position','absolute','important');b.body.appendChild(c);this.testElementComputedStyle=window.getComputedStyle(c)}return c},getCssStyleValue:function(b,a){var c=this.getTestElement(),e=this.testElementComputedStyle,d=c.style;d.setProperty(b,a);if(Ext.browser.is.Firefox){c.offsetHeight}a=e.getPropertyValue(b);d.removeProperty(b);return a},run:function(t){var a=this,H=a.lengthProperties,E={},j={},d={},i,f,m,k,F,g,e,u,v,s,r,w,x,G,c,o,y,C,h,b,l,D,n,z,q,p,A,B;if(!a.listenersAttached){a.attachListeners()}t=Ext.Array.from(t);for(w=0,G=t.length;w0){a.refreshRunningAnimationsData(i,Ext.Array.merge(g,e),!0,d.replacePrevious)}q=s.nameMap;p=s.nameList;y={};for(x=0;x0){g=Ext.Array.difference(p,g);e=Ext.Array.merge(g,e);r['transition-property']=g}E[f]=r;j[f]=Ext.apply({},k);j[f]['transition-property']=e;j[f]['transition-duration']=d.duration;j[f]['transition-timing-function']=d.easing;j[f]['transition-delay']=d.delay;c.startTime=Date.now()}v=a.$className;a.applyStyles(E);u=function(b){if(b.data===v&&b.source===window){window.removeEventListener('message',u,!1);a.applyStyles(j)}};if(window.requestAnimationFrame){window.requestAnimationFrame(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')})}else {Ext.defer(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')},1)}},onAnimationStop:function(h){var c=this.runningAnimationsData,e,f,d,b,g,a;for(e in c){if(c.hasOwnProperty(e)){f=c[e];d=f.sessions;for(b=0,g=d.length;b'){this.isParentReference=!0;a=a.substring(0,b)}return a}}},0,0,0,0,0,0,[Ext.mixin,'Container'],0);Ext.cmd.derive('Ext.mixin.Responsive',Ext.Mixin,function(a){return {mixinConfig:{id:'responsive',after:{destroy:'destroy'}},config:{responsiveConfig:{$value:undefined,merge:function(c,d,g,f){if(!c){return d}var e=d?Ext.Object.chain(d):{},b;for(b in c){if(!f||!(b in e)){e[b]={fn:null,config:c[b]}}}return e}},responsiveFormulas:{$value:0,merge:function(c,d,e,b){return this.mergeNew(c,d,e,b)}}},destroy:function(){a.unregister(this);this.callParent()},privates:{statics:{active:!1,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=!0;a.updateContext();Ext.on('resize',a.onResize,a)},deactivate:function(){a.active=!1;Ext.un('resize',a.onResize,a)},notify:function(){var b=a.all,e=a.context,d=Ext.GlobalEvents,f=a.timer,c;if(f){a.timer=null;Ext.Function.cancelAnimationFrame(f)}a.updateContext();Ext.suspendLayouts();d.fireEvent('beforeresponsiveupdate',e);for(c in b){b[c].setupResponsiveContext()}d.fireEvent('beginresponsiveupdate',e);for(c in b){b[c].updateResponsiveState()}d.fireEvent('responsiveupdate',e);Ext.resumeLayouts(!0)},onResize:function(){if(!a.timer){a.timer=Ext.Function.requestAnimationFrame(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(c,d,b){var g=d&&d[b],f=c.config,h,e;if(g){e=c.getConfigurator();h=e.configs[b];f[b]=h.merge(g,f[b],c)}},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),c=e.getViewportHeight(),b=a.context;b.width=d;b.height=c;b.tall=d','',' ({childCount} children)','','',' ({depth} deep)','','',', {type}: {[this.time(values.sum)]} msec (','avg={[this.time(values.sum / parent.count)]}',')','','
    '].join(''),{time:function(a){return Math.round(a*100)/100}})}var a=this.getData(b);a.name=this.name;a.pure.type='Pure';a.total.type='Total';a.times=[a.pure,a.total];return c.apply(a)},getData:function(b){var a=this;return {count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:setToJSON(a.count,a.childCount,b,a.pure),total:setToJSON(a.count,a.childCount,b,a.total)}},enter:function(){var c=this,d={accum:c,leave:leaveFrame,childTime:0,parent:b};++c.depth;if(c.maxDepth0){d=a==='this'?this:typeof a==='string'?this[a]:typeof a==='number'?arguments[a]:null;if(d){f=d.id}if(f!=null){console.log(b+' for '+f+': '+c+'ms')}else {console.log(b+' for unknown: '+c+'ms')}if(console.trace){console.trace()}}return h}}(b,d[b])}Ext.override(f,c)}}}}},1,0,0,0,0,0,[Ext.perf,'Monitor',Ext,'Perf'],0);Ext.cmd.derive('Ext.plugin.Abstract',Ext.Base,{alternateClassName:'Ext.AbstractPlugin',isPlugin:!0,constructor:function(a){if(a){this.pluginConfig=a;this.initConfig(a)}},clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},setCmp:function(a){this.cmp=a},getCmp:function(){return this.cmp},init:Ext.emptyFn,destroy:function(){this.cmp=this.pluginConfig=null;this.callParent()},onClassExtended:function(c,b,d){var a=b.alias;if(a&&!b.ptype){if(Ext.isArray(a)){a=a[0]}c.prototype.ptype=a.split('plugin.')[1]}},resolveListenerScope:function(b){var a=this,d=a.getCmp(),c;if(d){c=d.resolveSatelliteListenerScope(a,b)}return c||a.mixins.observable.resolveListenerScope.call(a,b)}},1,0,0,0,0,0,[Ext.plugin,'Abstract',Ext,'AbstractPlugin'],0);Ext.define('Ext.overrides.plugin.Abstract',{override:'Ext.plugin.Abstract',$configStrict:!1,$configPrefixed:!1,disabled:!1,getState:null,applyState:null,enable:function(){this.disabled=!1},disable:function(){this.disabled=!0}});Ext.cmd.derive('Ext.util.ItemCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.ItemCollection',getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}},0,0,0,0,0,0,[Ext.util,'ItemCollection',Ext,'ItemCollection'],0);Ext.cmd.derive('Ext.util.TaskManager',Ext.util.TaskRunner,{alternateClassName:['Ext.TaskManager'],singleton:!0},0,0,0,0,0,0,[Ext.util,'TaskManager',Ext,'TaskManager'],0);Ext.cmd.derive('Ext.util.TextMetrics',Ext.Base,{statics:{shared:null,measure:function(d,e,c){var b=this,a=b.shared;if(!a){a=b.shared=new b(d,c)}a.bind(d);a.setFixedWidth(c||'auto');return a.getSize(e)},destroy:function(){var a=this;Ext.destroy(a.shared);a.shared=null}},constructor:function(c,b){var d=this,a=Ext.getBody().createChild({role:'presentation',cls:'x-textmetrics'});a.setVisibilityMode(1);d.measure=a;if(c){d.bind(c)}a.position('absolute');a.setLocalXY(-1000,-1000);a.hide();if(b){a.setWidth(b)}},getSize:function(c){var a=this.measure,b;a.setHtml(c);b=a.getSize();a.setHtml('');return b},bind:function(b){var a=this;a.el=Ext.get(b);a.measure.setStyle(a.el.getStyle(['font-size','font-style','font-weight','font-family','line-height','text-transform','letter-spacing','word-break']))},setFixedWidth:function(a){this.measure.setWidth(a)},getWidth:function(a){this.measure.dom.style.width='auto';return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height},destroy:function(){var a=this;a.el=a.measure=Ext.destroy(a.measure);a.callParent()}},1,0,0,0,0,0,[Ext.util,'TextMetrics'],function(){Ext.Element.override({getTextWidth:function(a,c,b){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(a,this.dom.innerHTML,!0)).width,c||0,b||1000000)}})});Ext.define(null,{override:'Ext.event.publisher.Focus',compatibility:Ext.isIE10m,doDelegatedEvent:function(a,d){var c=document.body,b=Ext.synchronouslyFocusing;if(b&&(a.type==='focusout'&&a.srcElement===b&&a.toElement===c||a.type==='focusin'&&a.srcElement===c&&a.fromElement===b&&a.toElement===null)){return}return this.callParent([a,d])}});Ext.define(null,{override:'Ext.scroll.DomScroller',compatibility:Ext.isIE8,privates:{doScrollTo:function(a,b,j){var c=this,f=c.getElement(),e,d,i,g,h;if(f&&!f.destroyed){d=this.getElement().dom;g=a===Infinity;h=b===Infinity;if(g||h){e=c.getMaxPosition();if(g){a=e.x}if(h){b=e.y}}a=c.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}f.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(a!=null&&b!=null){c.deferDomScroll=!0}if(b!=null){d.scrollTop=b}if(a!=null){d.scrollLeft=a}if(c.deferDomScroll){c.deferDomScroll=!1;+d.scrollLeft;d.scrollLeft=a}}c.positionDirty=!0}},onDomScroll:function(){var a=this;if(a.deferDomScroll){return}a.callParent()}}});Ext.cmd.derive('Ext.ElementLoader',Ext.Base,{statics:{Renderer:{Html:function(c,b,a){c.getTarget().setHtml(b.responseText,a.scripts===!0,a.rendererScope);return !0}}},url:null,params:null,baseParams:null,autoLoad:!1,target:null,loadMask:!1,ajaxOptions:null,scripts:!1,isLoader:!0,constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.setTarget(a.target);if(a.autoLoad){b=a.autoLoad;if(b===!0){b=null}a.load(b)}},setTarget:function(a){var b=this;a=Ext.get(a);if(b.target&&b.target!==a){b.abort()}b.target=a},getTarget:function(){return this.target||null},abort:function(){var a=this.active;if(a!==undefined){Ext.Ajax.abort(a.request);if(a.mask){this.removeMask()}delete this.active}},removeMask:function(){this.target.unmask()},addMask:function(a){this.target.mask(a===!0?null:a)},load:function(b){b=Ext.apply({},b);var a=this,d=Ext.isDefined(b.loadMask)?b.loadMask:a.loadMask,c=Ext.apply({},b.params),e=Ext.apply({},b.ajaxOptions),f=b.callback||a.callback,g=b.scope||a.scope||a;Ext.applyIf(e,a.ajaxOptions);Ext.applyIf(b,e);Ext.applyIf(c,a.params);Ext.apply(c,a.baseParams);Ext.applyIf(b,{url:a.url});Ext.apply(b,{scope:a,params:c,callback:a.onComplete});if(a.fireEvent('beforeload',a,b)===!1){return}if(d){a.addMask(d)}a.active={options:b,mask:d,scope:g,callback:f,success:b.success||a.success,failure:b.failure||a.failure,renderer:b.renderer||a.renderer,scripts:Ext.isDefined(b.scripts)?b.scripts:a.scripts};a.active.request=Ext.Ajax.request(b);a.setOptions(a.active,b)},setOptions:function(b,a){b.rendererScope=a.rendererScope||this.rendererScope||this},onComplete:function(d,e,c){var a=this,b=a.active,g,f;if(b){f=b.scope;g=b.rendererScope;if(e){e=a.getRenderer(b.renderer).call(g,a,c,b)!==!1}if(e){Ext.callback(b.success,f,[a,c,d]);a.fireEvent('load',a,c,d)}else {Ext.callback(b.failure,f,[a,c,d]);a.fireEvent('exception',a,c,d)}Ext.callback(b.callback,f,[a,e,c,d]);if(b.mask){a.removeMask()}}delete a.active},getRenderer:function(a){if(Ext.isFunction(a)){return a}return this.statics().Renderer.Html},startAutoRefresh:function(b,c){var a=this;a.stopAutoRefresh();a.autoRefresh=Ext.interval(function(){a.load(c)},b)},stopAutoRefresh:function(){clearInterval(this.autoRefresh);delete this.autoRefresh},isAutoRefreshing:function(){return Ext.isDefined(this.autoRefresh)},destroy:function(){var a=this;a.stopAutoRefresh();delete a.target;a.abort();a.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext,'ElementLoader'],0);Ext.cmd.derive('Ext.ComponentLoader',Ext.ElementLoader,{statics:{Renderer:{Data:function(c,b,d){var a=!0;try{c.getTarget().update(Ext.decode(b.responseText))}catch(e){a=!1}return a},Component:function(f,d,e){var b=!0,a=f.getTarget(),c=[];try{c=Ext.decode(d.responseText)}catch(g){b=!1}if(b){a.suspendLayouts();if(e.removeAll){a.removeAll()}a.add(c);a.resumeLayouts(!0)}return b}}},target:null,loadOnRender:!1,loadMask:!1,renderer:'html',setTarget:function(b){var a=this;if(Ext.isString(b)){b=Ext.getCmp(b)}if(a.target&&a.target!==b){a.abort()}a.target=b;if(b&&a.loadOnRender){if(b.rendered){a.doLoadOnRender()}else {a.mon(b,'render',a.doLoadOnRender,a)}}},doLoadOnRender:function(){var a=this.loadOnRender;this.load(Ext.isObject(a)?a:null)},removeMask:function(){this.target.setLoading(!1)},addMask:function(a){this.target.setLoading(a)},setOptions:function(b,a){b.removeAll=Ext.isDefined(a.removeAll)?a.removeAll:this.removeAll;b.rendererScope=a.rendererScope||this.rendererScope||this.target},getRenderer:function(a){if(Ext.isFunction(a)){return a}var b=this.statics().Renderer;switch(a){case 'component':return b.Component;case 'data':return b.Data;default:return Ext.ElementLoader.Renderer.Html;}}},0,0,0,0,0,0,[Ext,'ComponentLoader'],0);Ext.cmd.derive('Ext.layout.SizeModel',Ext.Base,{constructor:function(e){var a=this,b=a.self,d=b.sizeModelsArray,c;Ext.apply(a,e);a[c=a.name]=!0;a.fixed=!(a.auto=a.natural||a.shrinkWrap);d[a.ordinal=d.length]=b[c]=b.sizeModels[c]=a},statics:{sizeModelsArray:[],sizeModels:{}},calculated:!1,configured:!1,constrainedMax:!1,constrainedMin:!1,natural:!1,shrinkWrap:!1,calculatedFromConfigured:!1,calculatedFromNatural:!1,calculatedFromShrinkWrap:!1,names:null},1,0,0,0,0,0,[Ext.layout,'SizeModel'],function(){var a=this,d=a.sizeModelsArray,b,c,f,g,e;new a({name:'calculated'});new a({name:'configured',names:{width:'width',height:'height'}});new a({name:'natural'});new a({name:'shrinkWrap'});new a({name:'calculatedFromConfigured',configured:!0,calculatedFrom:!0,names:{width:'width',height:'height'}});new a({name:'calculatedFromNatural',natural:!0,calculatedFrom:!0});new a({name:'calculatedFromShrinkWrap',shrinkWrap:!0,calculatedFrom:!0});new a({name:'constrainedMax',configured:!0,constrained:!0,names:{width:'maxWidth',height:'maxHeight'}});new a({name:'constrainedMin',configured:!0,constrained:!0,names:{width:'minWidth',height:'minHeight'}});new a({name:'constrainedDock',configured:!0,constrained:!0,constrainedByMin:!0,names:{width:'dockConstrainedWidth',height:'dockConstrainedHeight'}});for(b=0,f=d.length;b-1&&e','
    role="presentation"','class="{innerCtCls}">','{%this.renderBody(out,values)%}','
    ',''],beginLayout:function(a){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(a)},beforeLayoutCycle:function(d){var a=this.owner,c=a.inheritedState,b=a.inheritedStateInner;if(!c||c.invalid){c=a.getInherited();b=a.inheritedStateInner}if(d.widthModel.shrinkWrap){b.inShrinkWrapTable=!0}else {delete b.inShrinkWrapTable}},beginLayoutCycle:function(e){var a=this,g=a.outerCt,l=a.lastOuterCtWidth||'',k=a.lastOuterCtHeight||'',j=a.lastOuterCtTableLayout||'',i=e.state,f,d,c,b,h;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);d=c=b='';if(!e.widthModel.shrinkWrap){d='100%';h=a.owner.inheritedStateInner;f=a.getOverflowXStyle(e);b=h.inShrinkWrapTable||f==='auto'||f==='scroll'?'':'fixed'}if(!e.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){c='100%'}if(d!==l||a.hasOuterCtPxWidth){g.setStyle('width',d);a.lastOuterCtWidth=d;a.hasOuterCtPxWidth=!1}if(b!==j){g.setStyle('table-layout',b);a.lastOuterCtTableLayout=b}if(c!==k||a.hasOuterCtPxHeight){g.setStyle('height',c);a.lastOuterCtHeight=c;a.hasOuterCtPxHeight=!1}if(a.hasInnerCtPxHeight){a.innerCt.setStyle('height','');a.hasInnerCtPxHeight=!1}i.overflowAdjust=i.overflowAdjust||a.lastOverflowAdjust},calculate:function(b){var a=this,d=b.state,c=a.getContainerSize(b,!0),e=d.calculatedItems||(d.calculatedItems=a.calculateItems?a.calculateItems(b,c):!0);a.setCtSizeIfNeeded(b,c);if(e&&b.hasDomProp('containerChildrenSizeDone')){a.calculateContentSize(b);if(c.gotAll){if(a.manageOverflow&&!b.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(b,c)}return}}a.done=!1},calculateContentSize:function(a){var b=this,f=(a.widthModel.shrinkWrap?1:0)|(a.heightModel.shrinkWrap?2:0),d=f&1||undefined,c=f&2||undefined,e=0,g=a.props;if(d){if(isNaN(g.contentWidth)){++e}else {d=undefined}}if(c){if(isNaN(g.contentHeight)){++e}else {c=undefined}}if(e){if(d&&!a.setContentWidth(b.measureContentWidth(a))){b.done=!1}if(c&&!a.setContentHeight(b.measureContentHeight(a))){b.done=!1}}},calculateOverflow:function(d){var c=this,g,f,e,a,h,i,b;h=c.getOverflowXStyle(d)==='auto';i=c.getOverflowYStyle(d)==='auto';if(h||i){e=Ext.getScrollbarSize();b=d.overflowContext.el.dom;a=0;if(b.scrollWidth>b.clientWidth){a|=1}if(b.scrollHeight>b.clientHeight){a|=2}g=i&&a&2?e.width:0;f=h&&a&1?e.height:0;if(g!==c.lastOverflowAdjust.width||f!==c.lastOverflowAdjust.height){c.done=!1;d.invalidate({state:{overflowAdjust:{width:g,height:f},overflowState:a,secondPass:!0}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(b,a){var c=a.$layout,d=Ext.XTemplate,e=c.beforeBodyTpl,f=c.afterBodyTpl;if(e){d.getTpl(c,'beforeBodyTpl').applyOut(a,b)}this.renderItems(b,a);this.renderContent(b,a);if(f){d.getTpl(c,'afterBodyTpl').applyOut(a,b)}},doRenderPadding:function(d,b){var e=b.$layout,a=b.$layout.owner,c=a[a.contentPaddingProperty];if(e.managePadding&&c){d.push('padding:',a.unitizeBox(c))}},finishedLayout:function(b){var a=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){a.repaint()}if(Ext.isOpera){a.setStyle('position','relative');a.dom.scrollWidth;a.setStyle('position','')}},getContainerSize:function(c,d){var b=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),a=c.state.overflowAdjust;if(a){b.width-=a.width;b.height-=a.height}return b},getRenderData:function(){var b=this,a=Ext.layout.container.Container.prototype.getRenderData.call(this);a.innerCtCls=b.innerCtCls;a.outerCtCls=b.outerCtCls;return a},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(a){return a.overflowXStyle||(a.overflowXStyle=this.owner.scrollFlags.overflowX||a.overflowContext.getStyle('overflow-x'))},getOverflowYStyle:function(a){return a.overflowYStyle||(a.overflowYStyle=this.owner.scrollFlags.overflowY||a.overflowContext.getStyle('overflow-y'))},initContextItems:function(a){var b=this,d=a.target,c=b.owner.getOverflowEl();a.outerCtContext=a.getEl('outerCt',b);a.innerCtContext=a.getEl('innerCt',b);a.overflowContext=c===a.el?a:a.getEl(c);if(d[d.contentPaddingProperty]!==undefined){a.paddingContext=a.innerCtContext}},initLayout:function(){var a=this,b=Ext.getScrollbarSize().width,c=a.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&a.manageOverflow&&!a.hasOwnProperty('lastOverflowAdjust')){if(c.scrollable||a.reserveScrollbar){a.lastOverflowAdjust={width:b,height:0}}}},measureContentHeight:function(b){var a=this.outerCt.getHeight(),c=b.target;if(this.managePadding&&c[c.contentPaddingProperty]===undefined){a+=b.targetContext.getPaddingInfo().height}return a},measureContentWidth:function(f){var a,b,e,c,d;if(this.chromeCellMeasureBug){a=this.innerCt.dom;b=a.style;e=b.display;if(e==='table-cell'){b.display='';a.offsetWidth;b.display=e}}if(Ext.isSafari){a=this.outerCt.dom;b=a.style;b.display='table-cell';a.offsetWidth;a.style.display=''}c=this.outerCt.getWidth();d=f.target;if(this.managePadding&&d[d.contentPaddingProperty]===undefined){c+=f.targetContext.getPaddingInfo().width}return c},setCtSizeIfNeeded:function(a,h){var c=this,b=h.height,k=a.paddingContext.getPaddingInfo(),g=c.getTarget(),f=c.getOverflowXStyle(a),j=f==='auto'||f==='scroll',i=Ext.getScrollbarSize(),e,d;if(b&&!a.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){e=!0}if(Ext.isIE8){d=!0}if((e||d)&&j&&g.dom.scrollWidth>g.dom.clientWidth){b=Math.max(b-i.height,0)}if(e){a.outerCtContext.setProp('height',b+k.height);c.hasOuterCtPxHeight=!0}if(d){a.innerCtContext.setProp('height',b);c.hasInnerCtPxHeight=!0}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt},getScrollerEl:function(){return this.outerCt}},0,0,0,0,['layout.auto','layout.autocontainer'],0,[Ext.layout.container,'Auto'],function(){this.prototype.chromeCellMeasureBug=Ext.isChrome&&Ext.chromeVersion>=26});Ext.cmd.derive('Ext.ZIndexManager',Ext.Base,{alternateClassName:'Ext.WindowGroup',statics:{zBase:9000,activeCounter:0},constructor:function(b){var a=this;a.id=Ext.id(null,'zindex-mgr-');a.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(c,d){var a=(c.alwaysOnTop||0)-(d.alwaysOnTop||0);if(!a){a=c.getActiveCounter()-d.getActiveCounter()}return a}},filters:{filterFn:function(a){return a.isVisible()}}});a.zIndexStack.addObserver(a);a.front=null;a.globalListeners=Ext.GlobalEvents.on({beforehide:a.onComponentShowHide,show:a.onComponentShowHide,scope:a,destroyable:!0});if(b){if(b.isContainer){b.on('resize',a.onContainerResize,a);a.zseed=Ext.Number.from(a.rendered?b.getEl().getStyle('zIndex'):undefined,a.getNextZSeed());a.targetEl=b.getTargetEl();a.container=b}else {Ext.on('resize',a.onContainerResize,a);a.zseed=a.getNextZSeed();a.targetEl=Ext.get(b)}}else {a.zseed=a.getNextZSeed();Ext.onInternalReady(function(){Ext.on('resize',a.onContainerResize,a);a.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return Ext.ZIndexManager.zBase+=10000},setBase:function(a){this.zseed=a;return this.onCollectionSort()},onCollectionSort:function(){var d=this,b=d.front,k=b&&b.containsFocus,g=d.zseed,i=d.zIndexStack.getRange(),j=i.length,e,c,f,a,h=!1;for(e=0;e0;){a=c[b];if(a.isComponent&&e.call(d||a,a)===!1){return}}},destroy:function(){var a=this,c=a.zIndexStack.getRange(),d=c.length,b;for(b=0;b1){b.refresh()}if(a.hasListeners.afterlayout){a.fireEvent('afterlayout',a,c)}},beforeDestroy:function(){var a=this,d=a.items,c=a.floatingItems,b;if(d){while(b=d.first()){a.doRemove(b,!0)}}if(c){while(b=c.first()){a.doRemove(b,!0)}}Ext.destroy(a.layout);Ext.Component.prototype.beforeDestroy.call(this)},destroy:function(){var a=this;Ext.Component.prototype.destroy.call(this);if(a.items){a.items.destroy()}if(a.floatingItems){a.floatingItems.destroy()}a.refs=a.items=a.floatingItems=a.layout=null},beforeRender:function(){var a=this,c=a.getLayout(),b;a.preventChildDisable=!0;Ext.Component.prototype.beforeRender.call(this);a.preventChildDisable=!1;if(!c.initialized){c.initLayout()}b=c.targetCls;if(b){a.applyTargetCls(b)}},cascade:function(f,e,d){var a=this,h=a.items?a.items.items:[],j=h.length,g=0,b,c=d?d.concat(a):[a],i=c.length-1;if(f.apply(e||a,c)!==!1){for(;g','
    ','
    {msg}
    ','
    ',''],maskOnDisable:!1,skipLayout:!0,constructor:function(c){var a=this,b;if(arguments.length===2){b=a.target=c;c=arguments[1]}else {b=c.target}Ext.Component.prototype.constructor.call(this,c);if(b.isComponent){a.ownerCt=b;a.hidden=!0;a.renderTo=a.getMaskTarget();a.external=a.renderTo===Ext.getBody();a.bindComponent(b)}else {b=Ext.get(b);a.isElement=!0;a.renderTo=a.target}a.render(a.renderTo);if(a.store){a.bindStore(a.store,!0)}},initRenderData:function(){var a=Ext.Component.prototype.initRenderData.apply(this,arguments);a.msg=this.msg||'';return a},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(b){var a=this,c={scope:this,resize:a.sizeMask};if(a.external){c.added=a.onComponentAdded;c.removed=a.onComponentRemoved;if(b.floating){c.move=a.sizeMask;a.activeOwner=b}else {if(b.ownerCt){a.onComponentAdded(b.ownerCt)}}}a.mon(b,c);if(a.external){a.mon(Ext.GlobalEvents,{show:a.onContainerShow,hide:a.onContainerHide,expand:a.onContainerExpand,collapse:a.onContainerCollapse,scope:a})}},onComponentAdded:function(b){var a=this;delete a.activeOwner;a.floatParent=b;if(!b.floating){b=b.up('[floating]')}if(b){a.activeOwner=b;a.mon(b,'move',a.sizeMask,a);a.mon(b,'tofront',a.onOwnerToFront,a)}else {a.preventBringToFront=!0}b=a.floatParent.ownerCt;if(a.rendered&&a.isVisible()&&b){a.floatOwner=b;a.mon(b,'afterlayout',a.sizeMask,a,{single:!0})}},onComponentRemoved:function(d){var a=this,b=a.activeOwner,c=a.floatOwner;if(b){a.mun(b,'move',a.sizeMask,a);a.mun(b,'tofront',a.onOwnerToFront,a)}if(c){a.mun(c,'afterlayout',a.sizeMask,a)}delete a.activeOwner;delete a.floatOwner},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){a.el.on('mousedown',a.onMouseDown,a)}this.el.skipGarbageCollection=!0},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(b,a){this.el.setStyle('zIndex',a+1)},onContainerShow:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var a=this;if(a.rendered&&a.isVisible()){a.hide();a.showNext=!0}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var a=this,b=a.activeOwner||a.target,c=a.external?a.getOwner().el:a.getMaskTarget();if(a.rendered&&a.isVisible()){if(a.external){if(!a.isElement&&b.floating){a.onOwnerToFront(b,b.el.getZIndex())}a.el.setSize(c.getSize()).alignTo(c,'tl-tl')}a.msgWrapEl.center(a.el)}},bindStore:function(a,c){var b=this;Ext.destroy(b.proxyListeners);b.mixins.storeholder.bindStore.apply(b,arguments);a=b.store;if(a){while(a.getSource){a=a.getSource()}if(!a.loadsSynchronously()){b.proxyListeners=a.getProxy().on({exception:b.onLoad,scope:b,destroyable:!0})}if(a.isLoading()){b.onBeforeLoad()}}},getStoreListeners:function(d){var c=this.onLoad,b=this.onBeforeLoad,a={cachemiss:b,cachefilled:{fn:c,buffer:100}};if(!d.loadsSynchronously()){a.beforeload=b;a.load=c}return a},onDisable:function(){Ext.Component.prototype.onDisable.apply(this,arguments);if(this.loading){this.onLoad()}},getOwner:function(){return this.ownerCt||this.ownerCmp||this.floatParent},getMaskTarget:function(){var a=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?a.getTargetEl():a.getMaskTarget()||Ext.getBody()},onBeforeLoad:function(){var b=this,a=b.getOwner(),c;if(!b.disabled){b.loading=!0;if(a.componentLayoutCounter){b.maybeShow()}else {c=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=c;c.apply(a,arguments);b.maybeShow()}}}},maybeShow:function(){var a=this,b=a.getOwner();if(!b.isVisible(!0)){a.showNext=!0}else {if(a.loading&&b.rendered){a.show()}}},hide:function(){var b=this,a=b.ownerCt;if(b.isElement){a.unmask();b.fireEvent('hide',this);return}if(a){a.enableTabbing();a.setMasked(!1)}delete b.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;if(a.isElement){a.ownerCt.mask(this.useMsg?this.msg:'',this.msgCls);a.fireEvent('show',this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var a=this,b=a.ownerCt;a.loading=!0;Ext.Component.prototype.afterShow.apply(this,arguments);b.disableTabbing();b.setMasked(!0);a.el.restoreTabbableState();a.syncMaskState()},syncMaskState:function(){var a=this,c=a.ownerCt,b=a.el;if(a.isVisible()){if(a.hasOwnProperty('msgWrapCls')){b.dom.className=a.msgWrapCls}if(a.useMsg){a.msgTextEl.setHtml(a.msg)}else {a.msgEl.hide()}if(a.shim||Ext.useShims){b.enableShim(null,!0)}else {b.disableShim()}if(c.el.contains(Ext.Element.getActiveElement())){a.focus()}a.sizeMask()}},onLoad:function(){this.loading=!1;this.hide()},beforeDestroy:function(){this.ownerCt=null;this.bindStore(null);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.onDestroy.call(this)}},1,['loadmask'],['component','box','loadmask'],{'component':!0,'box':!0,'loadmask':!0},['widget.loadmask'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext,'LoadMask'],0);Ext.cmd.derive('Ext.layout.component.Component',Ext.layout.Layout,{type:'component',isComponentLayout:!0,nullBox:{},usesContentHeight:!0,usesContentWidth:!0,usesHeight:!0,usesWidth:!0,widthCache:{},heightCache:{},beginLayoutCycle:function(a,j){var c=this,f=c.owner,p=a.ownerCtContext,g=a.heightModel,h=a.widthModel,o=f.el.dom===document.body,e=f.lastBox||c.nullBox,d=f.el.lastBox||c.nullBox,m=!o,k=a.isTopLevel,i,b,n,l;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,a,j);if(j){if(c.usesContentWidth){++a.consumersContentWidth}if(c.usesContentHeight){++a.consumersContentHeight}if(c.usesWidth){++a.consumersWidth}if(c.usesHeight){++a.consumersHeight}if(p&&!p.hasRawContent){i=f.ownerLayout;if(i){if(i.usesWidth){++a.consumersWidth}if(i.usesHeight){++a.consumersHeight}}}}if(h.configured){n=f[h.names.width];if(k&&h.calculatedFrom){n=e.width}if(!o){m=c.setWidthInDom||(j?n!==d.width:h.constrained)}a.setWidth(n,m)}else {if(k){if(h.calculated){b=e.width;a.setWidth(b,b!==d.width)}b=e.x;a.setProp('x',b,b!==d.x)}}if(g.configured){l=f[g.names.height];if(k&&g.calculatedFrom){l=e.height}if(!o){m=j?l!==d.height:g.constrained}a.setHeight(l,m)}else {if(k){if(g.calculated){b=e.height;a.setHeight(b,b!==d.height)}b=e.y;a.setProp('y',b,b!==d.y)}}},finishedLayout:function(c){var h=this,e=c.children,g=h.owner,i,d,f,a,b;if(e){i=e.length;for(d=0;d','
    {text}
    ','
    ',''],componentLayout:'progressbar',ariaRole:'progressbar',initRenderData:function(){var a=this,b=a.value||0;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{internalText:!a.hasOwnProperty('textEl'),text:a.text||' ',percentage:b*100})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.textEl){a.textEl=Ext.get(a.textEl);a.updateText(a.text)}else {a.textEl=a.el.select('.'+a.baseCls+'-text')}},updateValue:function(a){this.updateProgress(a,Math.round(a*100)+'%')},updateProgress:function(b,c,d){b=b||0;var a=this,f=a.value,e=a.getTextTpl();a.value=b||(b=0);if(c!=null){a.updateText(c)}else {if(e){a.updateText(e.apply({value:b,percent:b*100}))}}if(a.rendered&&!a.destroyed){if(d===!0||d!==!1&&a.animate){a.bar.stopAnimation();a.bar.animate(Ext.apply({from:{width:f*100+'%'},to:{width:b*100+'%'}},a.animate))}else {a.bar.setStyle('width',b*100+'%')}}a.fireEvent('update',a,b,c);return a},updateText:function(b){var a=this;a.text=b;if(a.rendered){a.textEl.setHtml(a.text)}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(a){var b=this,c;if(!b.waitTimer){c=b;a=a||{};b.updateText(a.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var c=a.increment||10;d-=1;b.updateProgress(((d+c)%c+1)*(100/c)*0.01,null,a.animate)},interval:a.interval||1000,duration:a.duration,onStop:function(){if(a.fn){a.fn.apply(a.scope||b)}b.reset()},scope:c})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(b){var a=this;a.updateProgress(0);a.clearTimer();if(b===!0){a.hide()}return a},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},onDestroy:function(){var a=this,b=a.bar;a.clearTimer();if(a.rendered){if(a.textEl.isComposite){a.textEl.clear()}Ext.destroyMembers(a,'textEl','progressBar');if(b&&a.animate){b.stopAnimation()}}Ext.Component.prototype.onDestroy.call(this)}},0,['progressbar'],['component','box','progressbar'],{'component':!0,'box':!0,'progressbar':!0},['widget.progressbar'],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,'ProgressBar'],0);Ext.cmd.derive('Ext.dom.ButtonElement',Ext.dom.Element,{setSize:function(b,a,e){var d=this,c=d.component;Ext.dom.Element.prototype.setSize.call(this,b,a,e);c.btnWrap.setStyle('table-layout',!b||b==='auto'?'':'fixed');c.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return d},setStyle:function(a,c){var f=this,e=f.component,d,b;Ext.dom.Element.prototype.setStyle.call(this,a,c);if(a){if(a==='width'||typeof a!=='string'&&'width' in a){d=c||a.width;e.btnWrap.setStyle('table-layout',!d||d==='auto'?'':'fixed')}if(a==='height'||typeof a!=='string'&&'height' in a){b=c||a.height;e.btnEl.setStyle('height',!b||b==='auto'?'':'auto')}}return f},setHeight:function(a,b){Ext.dom.Element.prototype.setHeight.call(this,a,b);this.component.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return this},setWidth:function(a,b){Ext.dom.Element.prototype.setWidth.call(this,a,b);this.component.btnWrap.setStyle('table-layout',!a||a==='auto'?'':'fixed');return this}},0,0,0,0,0,0,[Ext.dom,'ButtonElement'],0);Ext.cmd.derive('Ext.button.Manager',Ext.Base,{singleton:!0,alternateClassName:'Ext.ButtonToggleManager',groups:{},pressedButton:null,init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a});a.initialized=!0}},onButtonMousedown:function(b,c){var a=this.pressedButton;if(a){a.onMouseUp(c)}this.pressedButton=b},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(c,e){if(e){var b=this.groups[c.toggleGroup],d=b.length,a;for(a=0;a{[values.$comp.renderIcon(values)]}{text}{[values.$comp.renderIcon(values)]}{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]} {closeText} tabindex="{tabIndex}" {$}="{.}">{arrowElText}
    ',iconTpl:'background-image:url({iconUrl});
    font-family:{glyphFontFamily};">&#{glyph};',scale:'small',allowedScales:['small','medium','large'],arrowAlign:'right',arrowCls:'arrow',maskOnDisable:!1,shrinkWrap:3,frame:!0,autoEl:{tag:'a',hidefocus:'on',unselectable:'on'},hasFrameTable:function(){return this.href&&this.frameTable},frameTableListener:function(){if(!this.disabled){this.doNavigate()}},doNavigate:function(){if(this.hrefTarget==='_blank'){window.open(this.getHref(),this.hrefTarget)}else {location.href=this.getHref()}},_triggerRegion:{},initComponent:function(){var a=this;a.addCls('x-unselectable');Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=!0;a.setMenu(a.menu,!1,!0)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty('preventDefault');if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=!1}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==''){a.enableToggle=!0}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var a=this,b=Ext.Component.prototype.getElConfig.call(this),d=a.getHref(),c=a.hrefTarget;if(b.tag==='a'){if(!a.disabled){b.tabIndex=a.tabIndex}if(d){if(!a.disabled){b.href=d;if(c){b.target=c}}}}if(!a.ariaStaticRoles[a.ariaRole]){if(a.menu&&!a.isSplitButton){b['aria-haspopup']=!0}if(a.enableToggle){b['aria-pressed']=!!a.pressed}}return b},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);if(this.pressed){this.addCls(this._pressedCls)}},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),this.getTemplateArgs())},getMenu:function(){return this.menu||null},setMenu:function(b,g,h){var a=this,e=a.menu,d=a.isSplitButton?a.arrowEl&&a.arrowEl.dom:a.ariaEl.dom,f,c;if(e&&!h){if(g!==!1&&a.destroyMenu){e.destroy()}e.ownerCmp=null}if(b){f=b.isMenu;b=Ext.menu.Manager.get(b,{ownerCmp:a});b.setOwnerCmp(a,f);b.menuClickBuffer=250;a.mon(b,{scope:a,show:a.onMenuShow,hide:a.onMenuHide});if(!e&&a.getArrowVisible()){a.split=!0;if(a.rendered){a._addSplitCls();a.updateLayout()}}a.menu=b;if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.isSplitButton?a.ariaArrowElAttributes||(a.ariaArrowElAttributes={}):a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {if(a.rendered){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns');a._removeSplitCls();a.updateLayout()}else {c=a.isSplitButton?a.ariaArrowElAttributes:a.ariaRenderAttributes;if(c){delete c['aria-haspopup'];delete c['aria-owns']}}a.split=!1;a.menu=null}},onRender:function(){var a=this,d,c,b;Ext.Component.prototype.onRender.apply(this,arguments);c=a.el;if(a.tooltip){a.setTooltip(a.tooltip,!0)}if(a.handleMouseEvents){b={scope:a,mouseover:a.onMouseOver,mouseout:a.onMouseOut,mousedown:a.onMouseDown};if(a.split){b.mousemove=a.onMouseMove}}else {b={scope:a}}if(Ext.supports.Touch){b.touchstart=a.onTouchStart}if(a.repeat){a.mon(new Ext.util.ClickRepeater(c,Ext.isObject(a.repeat)?a.repeat:{}),'click',a.onRepeatClick,a)}else {if(b[a.clickEvent]){d=!0}else {b[a.clickEvent]=a.onClick}}a.mon(c,b);if(a.hasFrameTable()){a.mon(a.frameTable,'click',a.frameTableListener,a)}if(d){a.mon(c,a.clickEvent,a.onClick,a)}Ext.button.Manager.register(a)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var a=this,i=a._btnCls,j=a._baseIconCls,d=a.getIconAlign(),b=a.glyph,f=Ext._glyphFontFamily,e=a.text,h=a._hasIcon(),g=a._hasIconCls,c;if(typeof b==='string'){c=b.split('@');b=c[0];f=c[1]}return {split:a.isSplitButton,innerCls:a._innerCls,splitCls:a.getArrowVisible()?a.getSplitCls():'',iconUrl:a.icon,iconCls:a.iconCls,glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:f,text:e||' ',closeText:a.closeText,textCls:e?a._textCls:'',noTextCls:e?'':a._noTextCls,hasIconCls:h?g:'',btnWrapCls:a._btnWrapCls,btnWrapStyle:a.width?'table-layout:fixed;':'',btnElStyle:a.height?'height:auto;':'',btnCls:i,baseIconCls:j,iconBeforeText:d==='left'||d==='top',iconAlignCls:h?g+'-'+d:'',textAlignCls:i+'-'+a.getTextAlign(),arrowElCls:a._arrowElCls,tabIndex:a.tabIndex}},renderIcon:function(a){return this.getTpl('iconTpl').apply(a)},setHref:function(c){var a=this,d=a.hrefTarget,b;a.href=c;if(!a.configuredWithPreventDefault){a.preventDefault=!c}if(a.rendered){b=a.el.dom;if(!c||a.disabled){b.removeAttribute('href');b.removeAttribute('hrefTarget')}else {b.href=a.getHref();if(d){b.target=d}}}},getHref:function(){var a=this,b=a.href;return b?Ext.urlAppend(b,Ext.Object.toQueryString(Ext.apply({},a.params,a.baseParams))):!1},setParams:function(c){var a=this,b;a.params=c;if(a.rendered){b=a.el.dom;if(a.disabled){b.removeAttribute('href')}else {b.href=a.getHref()||''}}},getSplitCls:function(){var a=this;return a.split?a.baseCls+'-'+a.arrowCls+' '+(a.baseCls+'-'+a.arrowCls+'-'+a.arrowAlign):''},setIcon:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.icon||'';a.icon=b;if(b!==c){if(d){d.setStyle('background-image',b?'url('+b+')':'');a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setIconCls:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.iconCls||'';a.iconCls=b;if(c!==b){if(d){d.removeCls(c);d.addCls(b);a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setGlyph:function(b){b=b||0;var a=this,c=a.btnIconEl,f=a.glyph,g=a._glyphCls,d,e;a.glyph=b;if(c){if(typeof b==='string'){e=b.split('@');b=e[0];d=e[1]||Ext._glyphFontFamily}if(!b){c.dom.innerHTML='';c.removeCls(g)}else {if(f!==b){c.dom.innerHTML='&#'+b+';';c.addCls(g)}}if(d){c.setStyle('font-family',d)}a._syncHasIconCls();if(a.didIconStateChange(f,b)){a.updateLayout()}}a.fireEvent('glyphchange',a,a.glyph,f);return a},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c||!b){a.clearTip()}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.el.id},b));a.tooltip=b}else {a.el.dom.setAttribute(a.getTipAttr(),b)}}}else {a.tooltip=b}return a},updateIconAlign:function(e,f){var b=this,a,d,c;if(b.rendered){a=b.btnEl;d=b.btnIconEl;c=b._hasIconCls;if(f){a.removeCls(c+'-'+f)}a.addCls(c+'-'+e);if(e==='top'||e==='left'){a.insertFirst(d)}else {a.appendChild(d)}b.updateLayout()}},updateTextAlign:function(e,d){var a=this,c=a.btnEl,b=a._btnCls;if(a.rendered){c.removeCls(b+'-'+d);c.addCls(b+'-'+e)}},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},clearTip:function(){var a=this,b=a.el;if(Ext.quickTipsActive&&Ext.isObject(a.tooltip)){Ext.tip.QuickTipManager.unregister(b)}else {b.dom.removeAttribute(a.getTipAttr())}},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this,b=a.menu;if(a.rendered){Ext.destroy(a.keyMap);delete a.keyMap}if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.onDestroy.call(this)},setHandler:function(a,b){this.handler=a;if(arguments.length>1){this.scope=b}return this},updateText:function(b,c){b=b==null?'':String(b);c=c||'';var a=this,e=a.btnInnerEl,d=a.btnEl;if(a.rendered){e.setHtml(b||' ');d[b?'addCls':'removeCls'](a._textCls);d[b?'removeCls':'addCls'](a._noTextCls);a.updateLayout()}a.fireEvent('textchange',a,c,b)},didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},click:function(a){return this.onClick(a)},setPressed:function(a){return this.toggle(a!==!1)},toggle:function(b,d){var a=this,c=a.ariaEl.dom;b=b===undefined?!a.pressed:!!b;if(a.fireEvent('beforetoggle',a,b)!==!1){if(b!==a.pressed){a[b?'addCls':'removeCls'](a._pressedCls);a.pressed=b;if(c){c.setAttribute('aria-pressed',b)}if(!d){a.fireEvent('toggle',a,b);Ext.callback(a.toggleHandler,a.scope,[a,b],0,a);if(a.reference&&a.publishState){a.publishState('pressed',b)}}}}return a},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(c){var a=this,b=a.menu,d=!c||c.pointerType;if(b&&a.rendered){if(a.tooltip&&Ext.quickTipsActive&&a.getTipAttr()!=='title'){Ext.tip.QuickTipManager.getQuickTip().cancelShow(a.el)}if(b.isVisible()){if(d){b.hide()}else {b.focus()}}else {if(!c||a.showEmptyMenu||b.items.getCount()>0){b.autoFocus=!d;b.showBy(a.el,a.menuAlign)}}}return a},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(b,a){this.onClick(a)},onTouchStart:function(a){this.doPreventDefault(a)},onEnterKey:function(a){this.onClick(a);a.stopEvent();return !1},onClick:function(b){var a=this;a.doPreventDefault(b);if(b.type!=='keydown'&&b.button){return}if(!a.disabled){a.doToggle();a.maybeShowMenu(b);a.fireHandler(b)}},doPreventDefault:function(a){if(a&&(this.preventDefault||this.disabled&&this.getHref())){a.preventDefault()}},fireHandler:function(b){var a=this;if(a.fireEvent('click',a,b)!==!1&&!a.destroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},doToggle:function(){var a=this;if(a.enableToggle&&(a.allowDepress!==!1||!a.pressed)){a.toggle()}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,!0,!0)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,!0,!0)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(b){var a=this,c=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(b)){if(!c){a.onMenuTriggerOver(b)}}else {if(c){a.onMenuTriggerOut(b)}}}},isWithinTrigger:function(d){var a=this,e=a.el,c,b;c=a.arrowAlign==='right'?d.getX()-a.getX():d.getY()-e.getY();b=a.getTriggerRegion();return c>b.begin&&c{iconMarkup}
    role="{textElRole}">{text}
    {iconMarkup}',iconTpl:'',_textAlignClasses:{left:'x-title-align-left',center:'x-title-align-center',right:'x-title-align-right'},_iconAlignClasses:{top:'x-title-icon-top',right:'x-title-icon-right',bottom:'x-title-icon-bottom',left:'x-title-icon-left'},_rotationClasses:{0:'x-title-rotate-none',1:'x-title-rotate-right',2:'x-title-rotate-left'},_rotationAngles:{1:90,2:270},baseCls:'x-title',_titleSuffix:'-title',_glyphCls:'x-title-glyph',_iconWrapCls:'x-title-icon-wrap',_baseIconCls:'x-title-icon',_itemCls:'x-title-item',_textCls:'x-title-text',afterComponentLayout:function(){var b=this,c=b.getRotation(),a,d,e;if(c&&!Ext.isIE8){e=b.el;a=b.lastBox;d=a.x;e.setStyle(b._getVerticalAdjustDirection(),d+(c===1?a.width:-a.height)+'px')}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var a=this,b=a.getRotation(),c=a.el;Ext.Component.prototype.onRender.call(this);if(b){c.setVertical(a._rotationAngles[b])}if(Ext.supports.FixedTableWidthBug){c._needsTableWidthFix=!0}},applyText:function(a){if(!a){a=' '}return a},beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.addCls(a._rotationClasses[a.getRotation()]);a.addCls(a._textAlignClasses[a.getTextAlign()])},getIconMarkup:function(){return this.getTpl('iconTpl').apply(this.getIconRenderData())},getIconRenderData:function(){var a=this,g=a.getIcon(),f=a.getIconCls(),b=a.getGlyph(),d=Ext._glyphFontFamily,e=a.getIconAlign(),c;if(typeof b==='string'){c=b.split('@');b=c[0];d=c[1]}return {id:a.id,ui:a.ui,itemCls:a._itemCls,iconUrl:g,iconCls:f,iconWrapCls:a._iconWrapCls,baseIconCls:a._baseIconCls,iconAlignCls:a._iconAlignClasses[e],glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:d}},initRenderData:function(){var a=this,c,b;b=Ext.apply({text:a.getText(),textElRole:a.textElRole,id:a.id,ui:a.ui,itemCls:a._itemCls,textCls:a._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(a._hasIcon()){c=a.getIconAlign();b.iconMarkup=a.getIconMarkup();b.iconBeforeTitle=c==='top'||c==='left'}return b},onAdded:function(a,f,e){var d=this,c=d._titleSuffix,b=a.baseCls;d.addCls([b+c,b+c+'-'+a.ui]);Ext.Component.prototype.onAdded.call(this,a,f,e)},updateGlyph:function(a,g){a=a||0;var b=this,f=b._glyphCls,c,d,e;b.glyph=a;if(b.rendered){b._syncIconVisibility();c=b.iconEl;if(typeof a==='string'){e=a.split('@');a=e[0];d=e[1]||Ext._glyphFontFamily}if(!a){c.dom.innerHTML='';c.removeCls(f)}else {if(g!==a){c.dom.innerHTML='&#'+a+';';c.addCls(f)}}if(d){c.setStyle('font-family',d)}if(b._didIconStateChange(g,a)){b.updateLayout()}}},updateIcon:function(a,c){a=a||'';var b=this,d;if(b.rendered&&a!==c){b._syncIconVisibility();d=b.iconEl;d.setStyle('background-image',a?'url('+a+')':'');if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateIconAlign:function(d,f){var a=this,b=a.iconWrapEl,e,c;if(a.iconWrapEl){e=a.el;c=a._iconAlignClasses;if(f){b.removeCls(c[f])}b.addCls(c[d]);if(d==='top'||d==='left'){e.insertFirst(b)}else {e.appendChild(b)}a.updateLayout()}},updateIconCls:function(a,c){a=a||'';var b=this,d;if(b.rendered&&c!==a){b._syncIconVisibility();d=b.iconEl;if(c){d.removeCls(c)}d.addCls(a);if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateRotation:function(d,e){var a=this,b,c;if(a.rendered){b=a.el;c=a._rotationClasses;a.removeCls(c[e]);a.addCls(c[d]);b.setHorizontal();if(d){b.setVertical(a._rotationAngles[d])}b.setStyle({right:'',left:'',top:'',height:'',width:''});a.lastBox=null;a.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,c){var a=this,b=a._textAlignClasses;if(a.rendered){if(c){a.removeCls(b[c])}a.addCls(b[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return 'left'},_didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var a=this,f=a.el,e=a._hasIcon(),b=a.iconWrapEl,d,c;if(e&&!b){c=a.iconAlign;d=c==='left'||c==='top';f.dom.insertAdjacentHTML(d?'afterbegin':'beforeend',a.getIconMarkup());b=a.iconWrapEl=f[d?'first':'last']();a.iconEl=b.first()}if(b){b.setDisplayed(e)}}}},0,['title'],['component','box','title'],{'component':!0,'box':!0,'title':!0},['widget.title'],0,[Ext.panel,'Title'],0);Ext.cmd.derive('Ext.panel.Tool',Ext.Component,{isTool:!0,baseCls:'x-tool',disabledCls:'x-tool-disabled',toolPressedCls:'x-tool-pressed',toolOverCls:'x-tool-over',childEls:['toolEl'],renderTpl:[''],toolOwner:null,tooltipType:'qtip',stopEvent:!0,ariaRole:'button',focusable:!0,tabIndex:0,keyHandlers:{SPACE:'onClick',ENTER:'onClick'},cacheHeight:!0,cacheWidth:!0,initComponent:function(){var a=this;a.type=a.type||a.id;Ext.applyIf(a.renderData,{baseCls:a.baseCls,type:a.type});a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);a.el.on({click:a.onClick,mousedown:a.onMouseDown,mouseover:a.onMouseOver,mouseout:a.onMouseOut,scope:a});b=a.tooltip;if(b){a.setTooltip(b)}},tipAttrs:{qtip:'data-qtip'},setTooltip:function(b,d){var a=this,g=a.tooltip,f=a.tooltipType,h=a.id,e=a.el,c;if(g&&Ext.quickTipsActive&&Ext.isObject(g)){Ext.tip.QuickTipManager.unregister(h)}a.tooltip=b;if(d){a.tooltipType=d}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:h},b))}else {if(e){if(d&&f&&d!==f){c=a.tipAttrs[f]||'title';e.dom.removeAttribute(c)}c=a.tipAttrs[d||f]||'title';e.dom.setAttribute(c,b)}}if(c!=='title'&&a.ariaRole&&a.ariaRole!=='presentation'){if(e){e.dom.setAttribute('aria-label',b)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-label']=b}}}},setType:function(b){var a=this,c=a.type;a.type=b;if(a.rendered){if(c){a.toolEl.removeCls(a.baseCls+'-'+c)}a.toolEl.addCls(a.baseCls+'-'+b)}else {a.renderData.type=b}return a},onDestroy:function(){var a=this,b=a.keyMap;a.setTooltip(null);delete a.toolOwner;Ext.Component.prototype.onDestroy.call(this)},privates:{onClick:function(b,c){var a=this;if(a.disabled){return !1}if(b.type!=='keydown'){a.el.removeCls(a.toolPressedCls+' '+a.toolOverCls)}if(a.stopEvent!==!1){b.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[b,c,a.ownerCt,a],0,a)}else {if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,b],0,a)}}a.fireEvent('click',a,b,a.toolOwner||a.ownerCt);return !0},onMouseDown:function(a){a.preventDefault();if(this.disabled){return !1}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return !1}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)}}},0,['tool'],['component','box','tool'],{'component':!0,'box':!0,'tool':!0},['widget.tool'],0,[Ext.panel,'Tool'],0);Ext.cmd.derive('Ext.util.KeyMap',Ext.Base,{alternateClassName:'Ext.KeyMap',eventName:'keydown',constructor:function(b){var a=this;if(arguments.length!==1||typeof b==='string'||b.dom||b.tagName||b===document||b.isComponent){a.legacyConstructor.apply(a,arguments);return}Ext.apply(a,b);a.bindings=[];if(!a.target.isComponent){a.target=Ext.get(a.target)}if(a.binding){a.addBinding(a.binding)}else {if(b.key){a.addBinding(b)}}a.enable()},legacyConstructor:function(d,b,c){var a=this;Ext.apply(a,{target:Ext.get(d),eventName:c||a.eventName,bindings:[]});if(b){a.addBinding(b)}a.enable()},addBinding:function(b){var a=this,e=b.key,c,d;if(a.processing){a.bindings=a.bindings.slice(0)}if(Ext.isArray(b)){for(c=0,d=b.length;c=i){return a}}}if(!g){return}a=c.findNextFocusableChild({beforeRender:h,items:b,step:!0});if(a){c.activateFocusable(a)}return a},clearFocusables:function(){var d=this,c=d.getFocusables(),e=c.length,a,b;for(b=0;b0?d0?d+b:e-1;for(;;a+=b){if(d<0&&(a>=e||a<0)){return null}else {if(a>=e){a=-1;continue}else {if(a<0){a=e;continue}else {if(a===d){return null}}}}c=g[a];if(!c||!c.focusable||c.disabled){continue}if(i||c.isFocusable&&c.isFocusable()){return c}}return null},getFocusableContainerEl:function(){return this.el},onFocusableChildAdd:function(a){if(this.enableFocusableContainer){return this.doFocusableChildAdd(a)}},activateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:this.activeChildTabIndex})}},deactivateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:undefined})}},isFocusableContainerActive:function(){var e=this,d=!1,c,b,a;c=e.getFocusableContainerEl();if(c&&c.isTabbable&&c.isTabbable()){d=!0}else {b=e.lastFocusedChild;a=b&&b.getFocusEl&&b.getFocusEl();if(a&&a.isTabbable&&a.isTabbable()){d=!0}}return d},doFocusableChildAdd:function(a){if(a.focusable){a.focusableContainer=this}},onFocusableChildRemove:function(a){if(this.enableFocusableContainer){return this.doFocusableChildRemove(a)}a.focusableContainer=null},doFocusableChildRemove:function(a){if(a===this.lastFocusedChild){this.lastFocusedChild=null;this.activateFocusableContainerEl()}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);this.mousedownTimestamp=a===this?Ext.Date.now():0;if(a===this){c.preventDefault()}},onFocusEnter:function(f){var a=this,d=f.toComponent,c=a.mousedownTimestamp,e=50,b;if(!a.enableFocusableContainer){return null}a.mousedownTimestamp=0;if(d===a){if(!c||Ext.Date.now()-c>e){b=a.initDefaultFocusable();if(b){a.deactivateFocusableContainerEl();b.focus()}}}else {a.deactivateFocusableContainerEl()}return d},onFocusLeave:function(c){var a=this,b=a.lastFocusedChild;if(!a.enableFocusableContainer){return}if(!a.destroyed&&!a.destroying){a.clearFocusables();if(b&&!b.disabled){a.activateFocusable(b)}else {a.activateFocusableContainerEl()}}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.enableFocusableContainer){return}a.clearFocusables();a.activateFocusable(b);if(b.needArrowKeys){a.guardFocusableChild(b)}},guardFocusableChild:function(c){var b=this,d=b.activeChildTabIndex,a;a=b.findNextFocusableChild({child:c,step:-1});if(a){a.setTabIndex(d)}a=b.findNextFocusableChild({child:c,step:1});if(a){a.setTabIndex(d)}},afterFocusableChildFocus:function(a){if(!this.enableFocusableContainer){return}this.lastFocusedChild=a},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this;if(!a.enableFocusableContainer){return}if(b!==a.lastFocusedChild){a.deactivateFocusable(b);if(!a.isFocusableContainerActive()){a.activateFocusableContainerEl()}}},beforeFocusableChildDisable:function(c){var a=this,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(c.hasFocus){b=a.findNextFocusableChild({child:c})||c.findFocusTarget();if(b){b.focus()}}},onFocusableChildDisable:function(d){var a=this,c=a.lastFocusedChild,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(d===c){a.activateFocusableContainerEl()}b=a.findNextFocusableChild({step:1});if(!b){a.deactivateFocusableContainerEl()}},onFocusableChildShow:Ext.privateFn,onFocusableChildHide:Ext.privateFn,onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn}},0,0,0,0,0,0,[Ext.util,'FocusableContainer'],0);Ext.cmd.derive('Ext.panel.Header',Ext.panel.Bar,{isHeader:!0,defaultType:'tool',indicateDrag:!1,weight:-1,shrinkWrap:3,iconAlign:'left',titleAlign:'left',titlePosition:0,titleRotation:'default',autoEl:{role:'presentation'},beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{xtype:'title',flex:1},merge:function(a,b){if(typeof a!=='object'){a={text:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:'x-header',initComponent:function(){var a=this,b=a.items,d=a.itemPosition,c=[a.headerCls];a.tools=a.tools||[];a.items=b=b?b.slice():[];if(d!==undefined){a._userItems=b.slice();a.items=b=[]}a.indicateDragCls=a.headerCls+'-draggable';if(a.indicateDrag){c.push(a.indicateDragCls)}a.addCls(c);a.syncNoBorderCls();a.enableFocusableContainer=!a.isAccordionHeader&&a.tools.length>0;if(a.enableFocusableContainer){a.ariaRole='toolbar'}Ext.Array.push(b,a.tools);a.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);a.on({dblclick:a.onDblClick,click:a.onClick,element:'el',scope:a})},addTool:function(b){var a=this;a.add(Ext.ComponentManager.create(b,'tool'));if(!a.isAccordionHeader&&a.tools.length>0&&!a.enableFocusableContainer){a.enableFocusableContainer=!0;a.ariaRole='toolbar';if(a.rendered){a.ariaEl.dom.setAttribute('role','toolbar');a.initFocusableContainer(!0)}}},afterLayout:function(){var a=this,e,b,c,d;if(a.vertical){b=a.frameTR;if(b){e=a.frameBR;c=a.frameTL;d=a.getWidth()-b.getPadding('r')-(c?c.getPadding('l'):a.el.getBorderWidth('l'))+'px';e.setStyle('background-position-x',d);b.setStyle('background-position-x',d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(a,d){var b=this,c,e;a=a||'';c=typeof a==='string';if(c){a={text:a}}if(d){Ext.suspendLayouts();d.setConfig(a);Ext.resumeLayouts(!0);a=d}else {if(c){a.xtype='title'}a.ui=b.ui;e='rotation' in a;a.id=b.id+'-title';if(b.isAccordionHeader){a.ariaRole='tab';a.textElRole=null;a.focusable=!0}a=Ext.create(a);if(!e&&b.vertical&&b.titleRotation==='default'){a.rotation=1}}return a},applyTitlePosition:function(b){var a=this.items.getCount();if(this._titleInItems){--a}return Math.max(Math.min(b,a),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var a=this,b=a.itemPosition;a.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(b!==undefined){a.insert(b,a._userItems)}},getTools:function(){return this.tools.slice()},onAdd:function(a,c){var b=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,a,c);if(a.isTool){b.push(a);b[a.type]=a}},onAdded:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,a,c,b)},onRemoved:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,a,c,b)},setDock:function(e){var a=this,c=a.getTitle(),b=a.getTitleRotation(),d=c.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,e);if(b==='default'){b=a.vertical?1:0;if(b!==d){c.setRotation(b)}if(a.rendered){a.resetItemMargins()}}Ext.resumeLayouts(!0)},updateGlyph:function(a){this.getTitle().setGlyph(a)},updateIcon:function(a){this.getTitle().setIcon(a)},updateIconAlign:function(a,b){this.getTitle().setIconAlign(a)},updateIconCls:function(a){this.getTitle().setIconCls(a)},updateTitle:function(a,b){if(!b){this.insert(this.getTitlePosition(),a);this._titleInItems=!0}this.titleCmp=a},updateTitleAlign:function(a,b){this.getTitle().setTextAlign(a)},updateTitlePosition:function(a){this.insert(a,this.getTitle())},updateTitleRotation:function(a){if(a==='default'){a=this.vertical?1:0}this.getTitle().setRotation(a)},privates:{fireClickEvent:function(c,a){var b='.'+Ext.panel.Tool.prototype.baseCls;if(!a.getTarget(b)){this.fireEvent(c,this,a)}},getFramingInfoCls:function(){var a=this,c=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),b=a.ownerCt;if(!a.expanding&&b&&(b.collapsed||a.isCollapsedExpander)){c+='-'+b.collapsedCls}return c+'-'+a.dock},onClick:function(a){this.fireClickEvent('click',a)},onDblClick:function(a){this.fireClickEvent('dblclick',a)},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {this.mixins.focusablecontainer.onFocusableContainerMousedown.apply(this,arguments)}},syncBeforeAfterTitleClasses:function(l){var c=this,j=c.items,i=j.items,h=c.getTitlePosition(),k=i.length,g=j.generation,f=c.syncBeforeAfterGen,e,d,b,a;if(!l&&f===g){return}c.syncBeforeAfterGen=g;for(b=0;bh){if(f){a.removeCls(d)}a.addCls(e)}}}},syncNoBorderCls:function(){var a=this,b=this.ownerCt,c=a.headerCls+'-noborder';if(b?b.border===!1&&!b.frame:a.border===!1){a.addCls(c)}else {a.removeCls(c)}}}},0,['header'],['component','box','container','header'],{'component':!0,'box':!0,'container':!0,'header':!0},['widget.header'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.panel,'Header'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.None',Ext.Base,{alternateClassName:'Ext.layout.boxOverflow.None',factoryConfig:{defaultType:'none'},isBoxOverflowHandler:!0,$configPrefixed:!1,$configStrict:!1,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var c=this,d=b.state.boxPlan,a;if(d&&d.tooNarrow){a=c.handleOverflow(b);if(a){if(a.reservedSpace){c.layout.publishInnerCtSize(b,a.reservedSpace)}}}else {c.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(e){var b=this,d=b.layout.owner,c,a;if(d.hasListeners.overflowchange){c=d.query('>[hidden]');a=c.length;if(a!==b.lastHiddenCount){d.fireEvent('overflowchange',b.lastHiddenCount,a,c);b.lastHiddenCount=a}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(b){var a;if(b.isToolbar){a='toolbar'}else {if(b.isTabBar){a='tab-bar'}else {if(b.isMenu){a='menu'}else {if(b.isBreadcrumb){a='breadcrumb'}else {a=b.getXType()}}}}return a},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return ''},setVertical:function(){var b=this,a=b.layout,c=a.innerCt;c.removeCls(b.getOverflowCls(a.oppositeDirection));c.addCls(b.getOverflowCls(a.direction))}},1,0,0,0,['box.overflow.None','box.overflow.none'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout.container.boxOverflow,'None',Ext.layout.boxOverflow,'None'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Scroller',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Scroller',animateScroll:!1,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:'x-box-scroller',beforeSuffix:'-before-scroller',afterSuffix:'-after-scroller',constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.scrollPosition=0;a.scrollSize=0},getPrefixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.beforeSuffix,cls:this.createScrollerCls('beforeX'),style:'display:none'}},getSuffixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.afterSuffix,cls:this.createScrollerCls('afterX'),style:'display:none'}},createScrollerCls:function(g){var c=this,d=c.layout,b=d.owner,e=c.getOwnerType(b),a=c.scrollerCls,f=a+' '+a+'-'+d.names[g]+' '+a+'-'+e+' '+a+'-'+e+'-'+b.ui;if(b.plain){f+=' '+a+'-plain'}return f},getOverflowCls:function(a){return this.scrollerCls+'-body-'+a},beginLayout:function(a){a.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(a){var b=this,f=a.state.boxPlan,e=b.layout,d=e.names,g=Math.min(b.getMaxScrollPosition(),a.innerCtScrollPos),c;if(f&&f.tooNarrow){c=a.childItems[a.childItems.length-1].props;b.scrollSize=c[d.x]+c[d.width];b.updateScrollButtons();e.innerCt[d.setScrollLeft](g)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,a)},handleOverflow:function(i){var a=this,d=a.layout.names,h=d.getWidth,f=d.parallelMargins,g,e,b,c;a.showScrollers();b=a.getBeforeScroller();c=a.getAfterScroller();g=b[h]()+c[h]()+b.getMargin(f)+c.getMargin(f);e=i.targetContext.getPaddingInfo()[d.width];return {reservedSpace:Math.max(g-e,0)}},getBeforeScroller:function(){var a=this;return a._beforeScroller||(a._beforeScroller=a.createScroller(a.beforeSuffix,'beforeRepeater','scrollLeft'))},getAfterScroller:function(){var a=this;return a._afterScroller||(a._afterScroller=a.createScroller(a.afterSuffix,'afterRepeater','scrollRight'))},createScroller:function(g,f,e){var b=this,d=b.layout.owner,c=b.scrollerCls,a;a=d.el.getById(d.id+g);a.addClsOnOver(c+'-hover');a.addClsOnClick(c+'-pressed');a.setVisibilityMode(Ext.Element.DISPLAY);b[f]=new Ext.util.ClickRepeater(a,{interval:b.scrollRepeatInterval,handler:e,scope:b});return a},createWheelListener:function(){var a=this;a.wheelListener=a.layout.innerCt.on('mousewheel',a.onMouseWheel,a,{destroyable:!0})},onMouseWheel:function(a){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,!1)},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;if(!a.wheelListener){a.createWheelListener()}a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')},hideScrollers:function(){var a=this,b=a.getBeforeScroller(),c=a.getAfterScroller();if(b){b.hide();c.hide();a.layout.owner.removeClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')}},destroy:function(){Ext.destroyMembers(this,'beforeRepeater','afterRepeater','_beforeScroller','_afterScroller','wheelListener');this.callParent()},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getScrollAnim:function(){return {duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var a=this,c=a.getBeforeScroller(),d=a.getAfterScroller(),b;if(!c||!d){return}b=a.scrollerCls+'-disabled';c[a.atExtremeBefore()?'addCls':'removeCls'](b);d[a.atExtremeAfter()?'addCls':'removeCls'](b);a.scrolling=!1},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,!1)},scrollRight:function(){this.scrollBy(this.scrollIncrement,!1)},getScrollPosition:function(){var b=this,c=b.layout,a;if(isNaN(b.scrollPosition)){a=c.innerCt[c.names.getScrollLeft]()}else {a=b.scrollPosition}return a},getMaxScrollPosition:function(){var c=this,b=c.layout,a=c.scrollSize-b.innerCt.lastBox[b.names.width];return a<0?0:a},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var c=this,d=c.getBeforeScroller(),e=c.getAfterScroller(),b=c.layout.names,a=c.scrollerCls;d.removeCls(a+'-'+b.beforeY);e.removeCls(a+'-'+b.afterY);d.addCls(a+'-'+b.beforeX);e.addCls(a+'-'+b.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(g,b){var a=this,d=a.layout,e=d.names,f=a.getScrollPosition(),c=Ext.Number.constrain(g,0,a.getMaxScrollPosition());if(c!==f&&!a.scrolling){a.scrollPosition=NaN;if(b===undefined){b=a.animateScroll}d.innerCt[e.scrollTo](e.beforeScrollX,c,b?a.getScrollAnim():!1);if(b){a.scrolling=!0}else {a.updateScrollButtons()}a.fireEvent('scroll',a,c,b?a.getScrollAnim():!1)}},scrollToItem:function(a,i){var c=this,e=c.layout,h=e.owner,f=e.names,j=e.innerCt,d,g,b;a=c.getItem(a);if(a!==undefined){if(a===h.items.first()){b=0}else {if(a===h.items.last()){b=c.getMaxScrollPosition()}else {d=c.getItemVisibility(a);if(!d.fullyVisible){g=a.getBox(!1,!0);b=g[f.x];if(d.hiddenEnd){b-=j[f.getWidth]()-g[f.width]}}}}if(b!==undefined){c.scrollTo(b,i)}}},getItemVisibility:function(i){var d=this,h=d.getItem(i).getBox(!0,!0),g=d.layout,c=g.names,b=h[c.x],f=b+h[c.width],a=d.getScrollPosition(),e=a+g.innerCt[c.getWidth]();return {hiddenStart:be,fullyVisible:b>=a&&f<=e}}},1,0,0,0,['box.overflow.Scroller','box.overflow.scroller'],[['observable',Ext.mixin.Observable]],[Ext.layout.container.boxOverflow,'Scroller',Ext.layout.boxOverflow,'Scroller'],0);Ext.cmd.derive('Ext.dd.DragDropManager',Ext.Base,{singleton:!0,alternateClassName:['Ext.dd.DragDropMgr','Ext.dd.DDM'],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:!0,stopPropagation:!0,initialized:!1,locked:!1,init:function(){this.initialized=!0},POINT:0,INTERSECT:1,mode:0,notifyOccluded:!1,dragCls:'x-dd-drag-current',_execOnAll:function(f,g){var c=this.ids,d,e,b,a;for(d in c){if(c.hasOwnProperty(d)){a=c[d];for(e in a){if(a.hasOwnProperty(e)){b=a[e];if(!this.isTypeOfDD(b)){continue}b[f].apply(b,g)}}}}},addListeners:function(){var a=this;a.init();Ext.getDoc().on({mouseup:a.handleMouseUp,mousemove:{fn:a.handleMouseMove,capture:!1},dragstart:a.preventDrag,drag:a.preventDrag,dragend:a.preventDrag,capture:!0,scope:a});Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},preventDrag:function(a){if(this.isMouseDown){a.stopPropagation()}},_onResize:function(a){this._execOnAll('resetConstraints',[])},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isLocked:function(){return this.locked},locationCache:{},useCache:!0,clickPixelThresh:8,dragThreshMet:!1,clickTimeout:null,startX:0,startY:0,regDragDrop:function(b,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][b.id]=b},removeDDFromGroup:function(c,a){if(!this.ids[a]){this.ids[a]={}}var b=this.ids[a];if(b&&b[c.id]){delete b[c.id]}},_remove:function(b,f){var a=this,d=a.ids,e=b.groups,c;if(a.clearingAll){return}if(a.dragCurrent===b){a.dragCurrent=null}for(c in e){if(e.hasOwnProperty(c)){if(f){delete d[c]}else {if(d[c]){delete d[c][b.id]}}}}delete a.handleIds[b.id];delete a.locationCache[b.id]},regHandle:function(a,b){if(!this.handleIds[a]){this.handleIds[a]={}}this.handleIds[a][b]=b},isDragDrop:function(a){return this.getDDById(a)?!0:!1},getRelated:function(f,e){var b=[],c,d,a;for(c in f.groups){for(d in this.ids[c]){a=this.ids[c][d];if(!this.isTypeOfDD(a)){continue}if(!e||a.isTarget){b[b.length]=a}}}return b},isLegalTarget:function(e,d){var b=this.getRelated(e,!0),a,c;for(a=0,c=b.length;aa.clickPixelThresh||e>a.clickPixelThresh){a.startDrag(a.startX,a.startY)}}if(a.dragThreshMet){c.b4Drag(b);c.onDrag(b);if(!c.moveOnly){a.fireEvents(b,!1)}}a.stopEvent(b);return !0},fireEvents:function(e,t){var d=this,s=Ext.supports.Touch,c=d.dragCurrent,l=d.currentPoint,v=l.x,w=l.y,j=[],r=[],h=[],i=[],g=[],k=[],u=s?document.documentElement.clientWidth/window.innerWidth:1,p,b,o,q,a,f,n,m;if(!c||c.isLocked()){return}m=!(c.deltaX<0||c.deltaY<0);if(s||!d.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&m){p=c.getDragEl();if(m){p.style.visibility='hidden'}e.target=document.elementFromPoint(v/u,w/u);if(m){p.style.visibility='visible'}}for(a in d.dragOvers){b=d.dragOvers[a];delete d.dragOvers[a];if(!d.isTypeOfDD(b)||b.destroyed){continue}if(d.notifyOccluded){if(!this.isOverTarget(l,b,d.mode)){h.push(b)}}else {if(!e.within(b.getEl())){h.push(b)}}r[a]=!0}for(n in c.groups){if('string'!==typeof n){continue}for(a in d.ids[n]){b=d.ids[n][a];if(d.isTypeOfDD(b)&&(o=b.getEl())&&b.isTarget&&!b.isLocked()&&Ext.fly(o).isVisible(!0)&&(b!==c||c.ignoreSelf===!1)){if(d.notifyOccluded){if((b.zIndex=d.getZIndex(o))!==-1){q=!0}j.push(b)}else {if(e.within(b.getEl())){j.push(b);break}}}}}if(q){Ext.Array.sort(j,d.byZIndex)}for(a=0,f=j.length;a','',''],isSplitter:!0,baseCls:'x-splitter',collapsedClsInternal:'x-splitter-collapsed',canResize:!0,collapsible:null,collapseOnDblClick:!0,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:'next',horizontal:!1,vertical:!1,size:5,tracker:null,ariaRole:'separator',focusable:!0,tabIndex:0,getTrackerConfig:function(){return Ext.apply({xclass:'Ext.resizer.SplitterTracker',el:this.el,splitter:this},this.tracker)},beforeRender:function(){var a=this,c=a.getCollapseTarget(),b=a.collapsible,d;Ext.Component.prototype.beforeRender.call(this);if(c.collapsed){a.addCls(a.collapsedClsInternal)}if(!a.canResize){a.addCls(a.baseCls+'-noresize')}Ext.applyIf(a.renderData,{collapseDir:a.getCollapseDirection(),collapsible:b!==null?b:c.collapsible});a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-orientation']=a.orientation;a.protoEl.unselectable()},onRender:function(){var a=this,b;Ext.Component.prototype.onRender.apply(this,arguments);if(a.performCollapse!==!1){if(a.renderData.collapsible){a.mon(a.collapseEl,'click',a.toggleTargetCmp,a)}if(a.collapseOnDblClick){a.mon(a.el,'dblclick',a.toggleTargetCmp,a)}}a.getCollapseTarget().on({collapse:a.onTargetCollapse,expand:a.onTargetExpand,beforeexpand:a.onBeforeTargetExpand,beforecollapse:a.onBeforeTargetCollapse,scope:a});if(a.canResize){a.tracker=Ext.create(a.getTrackerConfig());a.relayEvents(a.tracker,['beforedragstart','dragstart','dragend'])}b=a.collapseEl;if(b){b.lastCollapseDirCls=a.collapseDirProps[a.collapseDirection].cls}},getCollapseDirection:function(){var b=this,a=b.collapseDirection,c,f,d,e;if(!a){c=b.collapseTarget;if(c.isComponent){a=c.collapseDirection}if(!a){e=b.ownerCt.layout.type;if(c.isComponent){d=b.ownerCt.items;f=Number(d.indexOf(c)===d.indexOf(b)-1)<<1|Number(e==='hbox')}else {f=Number(b.collapseTarget==='prev')<<1|Number(e==='hbox')}a=['bottom','right','top','left'][f]}b.collapseDirection=a}b.setOrientation(a==='top'||a==='bottom'?'horizontal':'vertical');return a},getCollapseTarget:function(){var a=this;return a.collapseTarget.isComponent?a.collapseTarget:a.collapseTarget==='prev'?a.previousSibling():a.nextSibling()},setCollapseEl:function(b){var a=this.collapseEl;if(a){a.setDisplayed(b)}},onBeforeTargetExpand:function(a){this.setCollapseEl('none')},onBeforeTargetCollapse:function(){this.setCollapseEl('none')},onTargetCollapse:function(b){var a=this;if(b===a.getCollapseTarget()&&b[a.orientation==='vertical'?'collapsedHorizontal':'collapsedVertical']()){a.el.addCls(a.collapsedClsInternal+' '+(a.collapsedCls||''))}a.setCollapseEl('')},onTargetExpand:function(b){var a=this;a.el.removeCls(a.collapsedClsInternal+' '+(a.collapsedCls||''));a.setCollapseEl('')},collapseDirProps:{top:{cls:'x-layout-split-top'},right:{cls:'x-layout-split-right'},bottom:{cls:'x-layout-split-bottom'},left:{cls:'x-layout-split-left'}},orientationProps:{horizontal:{opposite:'vertical',fixedAxis:'height',stretchedAxis:'width'},vertical:{opposite:'horizontal',fixedAxis:'width',stretchedAxis:'height'}},applyCollapseDirection:function(){var c=this,a=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],b;if(a){b=a.lastCollapseDirCls;if(b){a.removeCls(b)}a.addCls(a.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var a=this,e=a.orientation,b=a.orientationProps[e],f=a.size,d=b.fixedAxis,c=b.stretchedAxis,g=a.baseCls+'-';a[e]=!0;a[b.opposite]=!1;if(!a.hasOwnProperty(d)||a[d]==='100%'){a[d]=f}if(!a.hasOwnProperty(c)||a[c]===f){a[c]='100%'}a.removeCls(g+b.opposite);a.addCls(g+e)},setOrientation:function(b){var a=this;if(a.orientation!==b){a.orientation=b;a.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,e){var a=this.getCollapseTarget(),c=a.placeholder,b;if(Ext.isFunction(a.expand)&&Ext.isFunction(a.collapse)){if(c&&!c.hidden){b=!0}else {b=!a.hidden}if(b){if(a.collapsed){a.expand()}else {if(a.collapseDirection){a.collapse()}else {a.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},beforeDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.beforeDestroy.call(this)}},0,['splitter'],['component','box','splitter'],{'component':!0,'box':!0,'splitter':!0},['widget.splitter'],0,[Ext.resizer,'Splitter'],0);Ext.define('Ext.theme.neptune.resizer.Splitter',{override:'Ext.resizer.Splitter',size:8});Ext.cmd.derive('Ext.layout.container.Box',Ext.layout.container.Container,{alternateClassName:'Ext.layout.BoxLayout',type:'box',config:{align:'begin',constrainAlign:!1,enableSplitters:!0,overflowHandler:{$value:null,merge:function(a,b){if(typeof a==='string'){a={type:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},padding:0,pack:'start',stretchMaxPartner:undefined,vertical:!1,alignRoundingMethod:'round'},itemCls:'x-box-item',targetCls:'x-box-layout-ct',targetElCls:'x-box-target',innerCls:'x-box-inner',manageMargins:!0,createsInnerCt:!0,childEls:['innerCt','targetEl'],renderTpl:['{%var oc,l=values.$comp.layout,oh=l.overflowHandler;if (oh && oh.getPrefixConfig!==Ext.emptyFn) {if(oc=oh.getPrefixConfig())dh.generateMarkup(oc, out)}%}{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:!0,definitions:'var dh=Ext.DomHelper;'}],constructor:function(c){var a=this,b;Ext.layout.container.Container.prototype.constructor.apply(this,arguments);a.setVertical(a.vertical);a.flexSortFn=a.flexSort.bind(a);b=typeof a.padding;if(b==='string'||b==='number'){a.padding=Ext.util.Format.parseBox(a.padding);a.padding.height=a.padding.top+a.padding.bottom;a.padding.width=a.padding.left+a.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(h,b){var a=this,f=a.sizePolicy,g=a.align,p=h.flex,c=g,o=a.names,e=o.height,m=o.width,q=h[m],n=h[e],d=a._percentageRe,i=d.test(q),l=g==='stretch',j=g==='stretchmax',k=a.constrainAlign;if(!b&&(l||p||i||k&&!j)){b=a.owner.getSizeModel()}if(l){if(!d.test(n)&&b[e].shrinkWrap){c='stretchmax'}}else {if(!j){if(d.test(n)){c='stretch'}else {if(k&&!b[e].shrinkWrap){c='stretchmax'}else {c=''}}}}if(p||i){if(!b[m].shrinkWrap){f=f.flex}}return f[c]},flexSort:function(o,p){var k=this.names.maxWidth,l=this.names.minWidth,j=Infinity,c=o.target,d=p.target,m=c.flex,n=d.flex,a=0,g,i,f,h,e,b;f=c[k]||j;h=d[k]||j;g=c[l]||0;i=d[l]||0;e=isFinite(g)||isFinite(i);b=isFinite(f)||isFinite(h);if(e||b){if(b){a=f-h}if(a===0&&e){a=i-g}if(a===0){if(b){a=n-m}else {a=m-n}}}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(a){var b=this;if(b.direction==='vertical'&&a.collapsedVertical()){a.collapseMemento.capture(['flex']);delete a.flex}else {if(b.direction==='horizontal'&&a.collapsedHorizontal()){a.collapseMemento.capture(['flex']);delete a.flex}}},beginExpand:function(a){a.collapseMemento.restore(['flex'])},beginLayout:function(a){var c=this,f=c.owner,b=f.stretchMaxPartner,h=c.innerCt.dom.style,i=c.names,g=c.overflowHandler,e=f.getScrollable(),d;a.boxNames=i;if(g){g.beginLayout(a)}if(typeof b==='string'){b=Ext.getCmp(b)||f.query(b)[0]}a.stretchMaxPartner=b&&a.context.getCmp(b);Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);a.innerCtContext=a.getEl('innerCt',c);a.targetElContext=a.getEl('targetEl',c);if(e){a.ownerScrollable=e;d=e.getPosition();if(d.x||d.y){a.scrollRestore=d}}h.width=h.height=''},beginLayoutCycle:function(a,l){var c=this,i=a.state,g=a.ownerScrollable,b=c.align,e=a.boxNames,d=c.pack,k=c._centerRe,j=c.overflowHandler,m=a.state.canScroll,h,f;if(j){j.beginLayoutCycle(a,l)}Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);a.parallelSizeModel=h=a[e.widthModel];a.perpendicularSizeModel=f=a[e.heightModel];a.boxOptions={align:b={stretch:b==='stretch',stretchmax:b==='stretchmax',center:k.test(b),bottom:c._endRe.test(b)},pack:d={center:k.test(d),end:d==='end'}};if(g){if(!m){i.canScroll={parallel:!h.shrinkWrap&&g[e.getX](),perpendicular:!f.shrinkWrap&&g[e.getY]()}}if(!i.actualScroll){i.actualScroll={parallel:!1,perpendicular:!1}}}if(b.stretch&&f.shrinkWrap){b.stretchmax=!0;b.stretch=!1}b.nostretch=!(b.stretch||b.stretchmax);if(h.shrinkWrap){d.center=d.end=!1}c.cacheFlexes(a);c.targetEl.setWidth(20000)},cacheFlexes:function(a){var u=this,d=a.boxNames,x=d.widthModel,w=d.heightModel,z=a.boxOptions.align.nostretch,s=0,r=a.childItems,v=r.length,h=[],t=0,g=0,o=0,p=d.minWidth,y=d.minHeight,q=u._percentageRe,n=0,m=0,b,c,l,f,i,j,k,e;while(v--){c=r[v];b=c.target;j=c[x];if(j.calculated){c.flex=l=b.flex;if(l){s+=l;h.push(c);t+=b[p]||0}else {f=q.exec(b[d.width]);c.percentageParallel=parseFloat(f[1])/100;++n}}if(j.configured){k=b[d.width]}else {k=b[p]||0}o+=k;i=c[w];if(z&&i.calculated){f=q.exec(b[d.height]);c.percentagePerpendicular=parseFloat(f[1])/100;++m}if(i.configured){e=b[d.height]}else {e=b[y]||0}if(e>g){g=e}}a.flexedItems=h;a.flexedMinWidth=t;a.smallestWidth=o;a.smallestHeight=g;a.totalFlex=s;a.percentageWidths=n;a.percentageHeights=m;Ext.Array.sort(h,u.flexSortFn)},calculate:function(b){var c=this,f=b.boxNames,a=b.state,h=a.actualScroll,g=a.needsScroll,e=a.canScroll,d=a.boxPlan||(a.boxPlan={}),i=c.overflowHandler;d.targetSize=c.getContainerSize(b);if(e&&!g){a.needsScroll=g={parallel:e.parallel&&d.targetSize[f.width]j){a.invalidate({before:K,after:L,layout:l,childHeight:j,names:d});c.state.parallelDone=!1}if(isNaN(b=o(b,g+i,a.target[d.minHeight]||0))){return !1}}}if(v){b+=q;c[d.hasOverflowX]=!0;c.target.componentLayout[d.setHeightInDom]=!0;c[d.invalidateScrollX]=Ext.isIE8}p=c.stretchMaxPartner;if(p){c.setProp('maxChildHeight',b);w=p.childItems;if(w&&w.length){b=o(b,p.getProp('maxChildHeight'));if(isNaN(b)){return !1}}}c[d.setContentHeight](b+l.padding[e]+c.targetContext.getPaddingInfo()[e]);if(v){b-=q}if(b>y[e]&&H&&H.perpendicular){C.actualScroll.perpendicular=!0}t.maxSize=b;if(O){f=b}else {if(B||A||D){if(I){f=h?b:j}else {f=h?b:o(j,b)}f-=c.innerCtContext.getBorderInfo()[e]}}for(k=0;k0){n=u+Math[l.alignRoundingMethod](s/2)}}else {if(A){n=o(0,f-n-a.props[e])}}}a.setProp(M,n)}return !0},onBeforeConstrainInvalidateChild:function(b,c){var a=c.names.heightModel;if(!b[a].constrainedMin){b[a]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(a,c){var b=c.names;a.setProp(b.beforeY,0);if(a[b.heightModel].calculated){a[b.setHeight](c.childHeight)}},calculateStretchMax:function(k,c,o){var f=this,h=c.height,l=c.width,g=k.childItems,n=g.length,m=o.maxSize,i=f.onBeforeStretchMaxInvalidateChild,j=f.onAfterStretchMaxInvalidateChild,a,b,d,e;for(d=0;d':{xtype:'tbfill',height:0}},1:{'->':{xtype:'tbfill',width:0}}}},initComponent:function(){var a=this,b=a.layout,c=a.vertical;if(c===undefined){a.vertical=c=a.dock==='right'||a.dock==='left'}a.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:c?'vbox':'hbox',align:c?'stretchmax':'middle'});if(a.overflowHandler){b.overflowHandler=a.overflowHandler}else {if(a.enableOverflow){b.overflowHandler='menu'}}if(c){a.addClsWithUI('vertical')}if(a.ui==='footer'){a.ignoreBorderManagement=!0}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(d){var c=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),e=c.layout,a;if(d&&(c.enableOverflow||c.overflowHandler==='menu')){a=e.overflowHandler;if(a&&a.menu){b=b.concat(a.menu.getRefItems(d))}}return b},lookupComponent:function(a){var d=arguments,b,c;if(typeof a==='string'){c=Ext.toolbar.Toolbar;b=c.shortcutsHV[this.vertical?1:0][a]||c.shortcuts[a];if(typeof b==='string'){a={xtype:b}}else {if(b){a=Ext.apply({},b)}else {a={xtype:'tbtext',text:a}}}this.applyDefaults(a);d=[a]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(a){var b=this,d=b.ui==='footer',c=d?b.defaultFooterButtonUI:b.defaultButtonUI;if(a.isSegmentedButton){if(a.getDefaultUI()==='default'&&!a.config.hasOwnProperty('defaultUI')){a.setDefaultUI(c)}}else {if(a.ui==='default'&&!a.hasOwnProperty('ui')){if(a.isButton){a.ui=c}else {if(a.isFormField){a.ui=d?b.defaultFooterFieldUI:b.defaultFieldUI}}}}if(a instanceof Ext.toolbar.Separator){a.setUI(b.vertical?'vertical':'horizontal')}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(a){if(a.needArrowKeys&&this.enableFocusableContainer){this.enableFocusableContainer=!1}Ext.container.Container.prototype.onAdd.apply(this,arguments);this.trackMenu(a)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,!0)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(b,c){var a=this;if(a.trackMenus&&b.menu){b[c?'un':'on']({mouseover:a.onButtonOver,menushow:a.onButtonMenuShow,menuhide:a.onButtonMenuHide,scope:a})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(a,c){var b=this.activeMenuBtn;if(b&&b!==a){b.hideMenu();a.focus();a.showMenu(c);this.activeMenuBtn=a}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,['toolbar'],['component','box','container','toolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0},['widget.toolbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,'Toolbar',Ext,'Toolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Toolbar',{override:'Ext.toolbar.Toolbar',usePlainButtons:!1,border:!1});Ext.cmd.derive('Ext.dd.DragDrop',Ext.Base,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:!1,lock:function(){this.locked=!0},moveOnly:!1,unlock:function(){this.locked=!1},isTarget:!0,padding:null,_domRef:null,__ygDragDrop:!0,constrainX:!1,constrainY:!1,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:!1,xTicks:null,yTicks:null,primaryButtonOnly:!0,available:!1,hasOuterHandles:!1,triggerEvent:'mousedown',b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(b,a){},b4DragOver:function(a){},onDragOver:function(b,a){},b4DragOut:function(a){},onDragOut:function(b,a){},b4DragDrop:function(a){},onDragDrop:function(b,a){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(j,a,k){if(Ext.isNumber(a)){a={left:a,right:a,top:a,bottom:a}}a=a||this.defaultPadding;var c=Ext.get(this.getEl()).getBox(),e=Ext.get(j),i=e.getScroll(),b,d=e.dom,h,g,f;if(d===document.body){b={x:i.left,y:i.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else {h=e.getXY();b={x:h[0],y:h[1],width:d.clientWidth,height:d.clientHeight}}g=c.y-b.y;f=c.x-b.x;this.resetConstraints();this.setXConstraint(f-(a.left||0),b.width-f-c.width-(a.right||0),this.xTickSize);this.setYConstraint(g-(a.top||0),b.height-g-c.height-(a.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(b,d,c){var a=this;a.el=a.el||Ext.get(b);a.initTarget(b,d,c);Ext.get(a.id).on(a.triggerEvent,a.handleMouseDown,a)},initTarget:function(a,b,c){this.config=c||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof a!=='string'){a=Ext.id(a)}this.id=a;this.addToGroup(b?b:'default');this.handleElId=a;this.setDragElId(a);this.invalidHandleTypes={A:'A'};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=this.config.isTarget!==!1;this.maintainOffset=this.config.maintainOffset;this.primaryButtonOnly=this.config.primaryButtonOnly!==!1},handleOnAvailable:function(){this.available=!0;this.resetConstraints();this.onAvailable()},setPadding:function(a,b,c,d){if(!b&&0!==b){this.padding=[a,a,a,a]}else {if(!c&&0!==c){this.padding=[a,b,a,b]}else {this.padding=[a,b,c,d]}}},setInitPosition:function(e,f){var d=this.getEl(),b,c,a;if(!this.DDMInstance.verifyEl(d)){return}b=e||0;c=f||0;a=Ext.fly(d).getXY();this.initPageX=a[0]-b;this.initPageY=a[1]-c;this.lastPageX=a[0];this.lastPageY=a[1];this.setStartPosition(a)},setStartPosition:function(b){var a=b||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=a[0];this.startPageY=a[1]},addToGroup:function(a){this.groups[a]=!0;this.DDMInstance.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDMInstance.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.handleElId=a;this.DDMInstance.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}Ext.get(a).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=!0},unreg:function(){var a=this,b;if(a._domRef){b=Ext.fly(a.id);if(b){b.un(a.triggerEvent,a.handleMouseDown,a)}}a._domRef=null;a.DDMInstance._remove(a,a.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return this.DDMInstance.isLocked()||this.locked},handleMouseDown:function(b,c){var a=this;if(a.primaryButtonOnly&&b.button||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(b.getPoint(),a)){if(a.clickValidator(b)){a.setStartPosition();a.b4MouseDown(b);a.onMouseDown(b);a.DDMInstance.handleMouseDown(b,a);a.DDMInstance.stopEvent(b)}}},clickValidator:function(b){var a=b.getTarget();return this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id))},addInvalidHandleType:function(b){var a=b.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){var b=a.toUpperCase();delete this.invalidHandleTypes[b]},removeInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(c){var b=this.invalidHandleClasses,d=b.length,a;for(a=0;a=this.minX;a=a-c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}for(a=this.initPageX;a<=this.maxX;a=a+c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,c){this.yTicks=[];this.yTickSize=c;var b={},a;for(a=this.initPageY;a>=this.minY;a=a-c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}for(a=this.initPageY;a<=this.maxY;a=a+c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(c,b,a){this.leftConstraint=c;this.rightConstraint=b;this.minX=this.initPageX-c;this.maxX=this.initPageX+b;if(a){this.setXTicks(this.initPageX,a)}this.constrainX=!0},clearConstraints:function(){this.constrainX=!1;this.constrainY=!1;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(c,b,a){this.topConstraint=c;this.bottomConstraint=b;this.minY=this.initPageY-c;this.maxY=this.initPageY+b;if(a){this.setYTicks(this.initPageY,a)}this.constrainY=!0},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var a=this.maintainOffset?this.lastPageX-this.initPageX:0,b=this.maintainOffset?this.lastPageY-this.initPageY:0;this.setInitPosition(a,b)}else {this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(d,a){if(!a){return d}else {if(a[0]>=d){return a[0]}else {var b,g,c,e,f;for(b=0,g=a.length;b=d){e=d-a[b];f=a[c]-d;return f>e?a[b]:a[c]}}return a[a.length-1]}}},toString:function(){return 'DragDrop '+this.id}},3,0,0,0,0,0,[Ext.dd,'DragDrop'],0);Ext.cmd.derive('Ext.dd.DD',Ext.dd.DragDrop,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},scroll:!0,autoOffset:function(a,b){var c=a-this.startPageX,d=b-this.startPageY;this.setDelta(c,d)},setDelta:function(a,b){this.deltaX=a;this.deltaY=b},setDragElPos:function(a,b){var c=this.getDragEl();this.alignElWithMouse(c,a,b)},alignElWithMouse:function(d,j,k){var a=this.getTargetCoord(j,k),c=d.dom?d:Ext.fly(d,'_dd'),e=c.getSize(),i=Ext.Element,b,g,f,h;if(!this.deltaSetXY){b=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};g=[Math.max(0,Math.min(a.x,b.width-e.width)),Math.max(0,Math.min(a.y,b.height-e.height))];c.setXY(g);f=this.getLocalX(c);h=c.getLocalY();this.deltaSetXY=[f-a.x,h-a.y]}else {b=this.cachedViewportSize;this.setLocalXY(c,Math.max(0,Math.min(a.x+this.deltaSetXY[0],b.width-e.width)),Math.max(0,Math.min(a.y+this.deltaSetXY[1],b.height-e.height)))}this.cachePosition(a.x,a.y);this.autoScroll(a.x,a.y,d.offsetHeight,d.offsetWidth);return a},cachePosition:function(b,c){if(b){this.lastPageX=b;this.lastPageY=c}else {var a=Ext.fly(this.getEl()).getXY();this.lastPageX=a[0];this.lastPageY=a[1]}},autoScroll:function(e,f,m,n){if(this.scroll){var g=Ext.Element.getViewportHeight(),h=Ext.Element.getViewportWidth(),b=this.DDMInstance.getScrollTop(),a=this.DDMInstance.getScrollLeft(),l=m+f,j=n+e,k=g+b-f-this.deltaY,i=h+a-e-this.deltaX,d=40,c=document.all?80:30;if(l>g&&k0&&f-bh&&i0&&e-athis.maxX){a=this.maxX}}if(this.constrainY){if(bthis.maxY){b=this.maxY}}a=this.getTick(a,this.xTicks);b=this.getTick(b,this.yTicks);return {x:a,y:b}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=this.config.scroll!==!1},b4MouseDown:function(b){var a=b.getXY();this.autoOffset(a[0],a[1])},b4Drag:function(b){var a=b.getXY();this.setDragElPos(a[0],a[1])},toString:function(){return 'DD '+this.id},getLocalX:function(a){return a.getLocalX()},setLocalXY:function(a,b,c){a.setLocalXY(b,c)}},3,0,0,0,0,0,[Ext.dd,'DD'],0);Ext.cmd.derive('Ext.dd.DDProxy',Ext.dd.DD,{statics:{dragElId:'ygddfdiv'},constructor:function(a,c,b){if(a){this.init(a,c,b);this.initFrame()}},resizeFrame:!0,centerFrame:!1,createFrame:function(){var d=this,c=document.body,a,b;if(!c||!c.firstChild){Ext.defer(function(){d.createFrame()},50);return}a=this.getDragEl();if(!a){a=document.createElement('div');a.id=this.dragElId;a.setAttribute('role','presentation');b=a.style;b.position='absolute';b.visibility='hidden';b.cursor='move';b.border='2px solid #aaa';b.zIndex=999;c.insertBefore(a,c.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=this.config.resizeFrame!==!1;this.centerFrame=this.config.centerFrame;this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(d,e){var a=this,b=a.getDragEl(),c=b.style;a._resizeProxy();if(a.centerFrame){a.setDelta(Math.round(parseInt(c.width,10)/2),Math.round(parseInt(c.height,10)/2))}a.setDragElPos(d,e);Ext.fly(b).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(d){var a=d.getXY(),b=a[0],c=a[1];this.autoOffset(b,c);this.setDragElPos(b,c)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl(),a=this.getDragEl();a.style.visibility='';this.beforeMove();b.style.visibility='hidden';Ext.dd.DDM.moveToEl(b,a);a.style.visibility='hidden';b.style.visibility='';this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return 'DDProxy '+this.id}},3,0,0,0,0,0,[Ext.dd,'DDProxy'],0);Ext.cmd.derive('Ext.dd.StatusProxy',Ext.Component,{animRepair:!1,childEls:['ghost'],renderTpl:[''],repairCls:'x-dd-drag-repair',ariaRole:'presentation',skipLayout:!0,constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:'visibility',hidden:!0,floating:!0,id:b.id||Ext.id(),cls:'x-dd-drag-proxy '+this.dropNotAllowed,shadow:a.shadow||!1,renderTo:Ext.getDetachedBody()});Ext.Component.prototype.constructor.apply(this,arguments);this.dropStatus=this.dropNotAllowed},dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',setStatus:function(a){a=a||this.dropNotAllowed;if(this.dropStatus!==a){this.el.replaceCls(this.dropStatus,a);this.dropStatus=a}},reset:function(c){var a=this,b='x-dd-drag-proxy ';a.el.replaceCls(b+a.dropAllowed,b+a.dropNotAllowed);a.dropStatus=a.dropNotAllowed;if(c){a.ghost.setHtml('')}},update:function(a){if(typeof a==='string'){this.ghost.setHtml(a)}else {this.ghost.setHtml('');a.style.margin='0';this.ghost.dom.appendChild(a)}var b=this.ghost.dom.firstChild;if(b){Ext.fly(b).setStyle('float','none')}},getGhost:function(){return this.ghost},hide:function(a){Ext.Component.prototype.hide.call(this);if(a){this.reset(!0)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(b,c,d){var a=this;a.callback=c;a.scope=d;if(b&&a.animRepair!==!1){a.el.addCls(a.repairCls);a.el.setUnderlaysVisible(!1);a.anim=a.el.animate({duration:a.repairDuration||500,easing:'ease-out',to:{x:b[0],y:b[1]},stopAnimation:!0,callback:a.afterRepair,scope:a})}else {a.afterRepair()}},afterRepair:function(){var a=this;a.hide(!0);a.el.removeCls(a.repairCls);if(typeof a.callback==='function'){a.callback.call(a.scope||a)}delete a.callback;delete a.scope}},1,0,['component','box'],{'component':!0,'box':!0},0,0,[Ext.dd,'StatusProxy'],0);Ext.cmd.derive('Ext.dd.DragSource',Ext.dd.DDProxy,{dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',animRepair:!0,repairHighlightColor:'c3daf9',constructor:function(b,a){this.el=Ext.get(b);if(!this.dragData){this.dragData={}}Ext.apply(this,a);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy({id:this.el.id+'-drag-status-proxy',animRepair:this.animRepair})}Ext.dd.DDProxy.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:!1,isTarget:!1,scroll:this.scroll===!0});this.dragging=!1},getDragData:function(a){return this.dragData},onDragEnter:function(c,b){var a=Ext.dd.DragDropManager.getDDById(b),d;this.cachedTarget=a;if(this.beforeDragEnter(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyEnter(this,c,this.dragData);this.proxy.setStatus(d)}else {this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(a,c,b)}}},beforeDragEnter:function(a,c,b){return !0},onDragOver:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b),d;if(this.beforeDragOver(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyOver(this,c,this.dragData);this.proxy.setStatus(d)}if(this.afterDragOver){this.afterDragOver(a,c,b)}}},beforeDragOver:function(a,c,b){return !0},onDragOut:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragOut(a,c,b)!==!1){if(a.isNotifyTarget){a.notifyOut(this,c,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,c,b)}}this.cachedTarget=null},beforeDragOut:function(a,c,b){return !0},onDragDrop:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragDrop(a,c,b)!==!1){if(a.isNotifyTarget){if(a.notifyDrop(this,c,this.dragData)!==!1){this.onValidDrop(a,c,b)}else {this.onInvalidDrop(a,c,b)}}else {this.onValidDrop(a,c,b)}if(this.afterDragDrop){this.afterDragDrop(a,c,b)}}delete this.cachedTarget},beforeDragDrop:function(a,c,b){return !0},onValidDrop:function(a,c,b){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(a,c,b)}},getRepairXY:function(b,a){return this.el.getXY()},onInvalidDrop:function(c,b,d){var a=this;if(!b){b=c;c=null;d=b.getTarget().id}if(a.beforeInvalidDrop(c,b,d)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}a.proxy.repair(a.getRepairXY(b,a.dragData),a.afterRepair,a);if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}},afterRepair:function(){var a=this;if(Ext.enableFx){a.el.highlight(a.repairHighlightColor)}a.dragging=!1},beforeInvalidDrop:function(a,c,b){return !0},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==!1){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return !0},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(!0);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=!1;this.dragging=!0;this.proxy.update('');this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(b,c){var a=this.el.dom.cloneNode(!0);a.id=Ext.id();this.proxy.update(a);this.onStartDrag(b,c);return !0},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(!0);this.dragging=!1},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(a){},endDrag:function(a){this.onEndDrag(this.dragData,a)},onEndDrag:function(a,b){},autoOffset:function(a,b){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DDProxy.prototype.destroy.call(this);Ext.destroy(this.proxy)}},1,0,0,0,0,0,[Ext.dd,'DragSource'],0);Ext.cmd.derive('Ext.panel.Proxy',Ext.Base,{alternateClassName:'Ext.dd.PanelProxy',moveOnDrag:!0,constructor:function(c,b){var a=this;a.panel=c;a.id=a.panel.id+'-ddproxy';Ext.apply(a,b)},insertProxy:!0,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost.el},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){var a=this;if(a.ghost){if(a.proxy){a.proxy.destroy();delete a.proxy}a.panel.unghost(null,a.moveOnDrag);delete a.ghost}},show:function(){var a=this,b;if(!a.ghost){b=a.panel.getSize();a.panel.el.setVisibilityMode(Ext.Element.DISPLAY);a.ghost=a.panel.ghost();if(a.insertProxy){a.proxy=a.panel.el.insertSibling({role:'presentation',cls:'x-panel-dd-spacer'});a.proxy.setSize(b)}}},repair:function(c,a,b){this.hide();Ext.callback(a,b||this)},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}},1,0,0,0,0,0,[Ext.panel,'Proxy',Ext.dd,'PanelProxy'],0);Ext.cmd.derive('Ext.panel.DD',Ext.dd.DragSource,{constructor:function(b,c){var a=this;a.panel=b;a.dragData={panel:b};a.panelProxy=new Ext.panel.Proxy(b,c);a.proxy=a.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,c);a.setupEl(b)},setupEl:function(c){var a=this,b=c.header,d=c.body;if(b){a.setHandleElId(b.id);d=b.el}if(d){d.setStyle('cursor','move');a.scroll=!1}else {c.on('boxready',a.setupEl,a,{single:!0})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(b){var a=b.getXY(),c=a[0],d=a[1];this.autoOffset(c,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return !0},createFrame:Ext.emptyFn,getDragEl:function(b){var a=this.panelProxy.ghost;if(a){return a.el.dom}},endDrag:function(a){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)},onInvalidDrop:function(d,b,c){var a=this;if(a.beforeInvalidDrop(d,b,c)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,c)}}}},1,0,0,0,0,0,[Ext.panel,'DD'],0);Ext.cmd.derive('Ext.layout.component.Dock',Ext.layout.component.Component,{alternateClassName:'Ext.layout.component.AbstractDock',type:'dock',horzAxisProps:{name:'horz',oppositeName:'vert',dockBegin:'left',dockEnd:'right',horizontal:!0,marginBegin:'margin-left',maxSize:'maxWidth',minSize:'minWidth',pos:'x',setSize:'setWidth',shrinkWrapDock:'shrinkWrapDockWidth',size:'width',sizeModel:'widthModel'},vertAxisProps:{name:'vert',oppositeName:'horz',dockBegin:'top',dockEnd:'bottom',horizontal:!1,marginBegin:'margin-top',maxSize:'maxHeight',minSize:'minHeight',pos:'y',setSize:'setHeight',shrinkWrapDock:'shrinkWrapDockHeight',size:'height',sizeModel:'heightModel'},initializedBorders:-1,horizontalCollapsePolicy:{width:!0,x:!0},verticalCollapsePolicy:{height:!0,y:!0},finishRender:function(){var a=this,b,c;Ext.layout.component.Component.prototype.finishRender.call(this);b=a.getRenderTarget();c=a.getDockedItems();a.finishRenderItems(b,c)},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},noBorderClasses:['x-docked-noborder-top','x-docked-noborder-right','x-docked-noborder-bottom','x-docked-noborder-left'],noBorderClassesSides:{top:'x-docked-noborder-top',right:'x-docked-noborder-right',bottom:'x-docked-noborder-bottom',left:'x-docked-noborder-left'},borderWidthProps:{top:'border-top-width',right:'border-right-width',bottom:'border-bottom-width',left:'border-left-width'},_itemCls:'x-docked',handleItemBorders:function(){var c=this,b=c.owner,a,l,k=c.lastDockedItems,j=c.borders,m=b.dockedItems.generation,i=c.noBorderClassesSides,n=c.borderWidthProps,f,h,d,g,e,o=c.collapsed;if(c.initializedBorders===m||b.border&&!b.manageBodyBorders||b.collapsed&&b.collapseMode==='mini'){return}c.initializedBorders=m;c.collapsed=!1;c.lastDockedItems=l=c.getLayoutItems();c.collapsed=o;a={top:[],right:[],bottom:[],left:[]};for(f=0,h=l.length;fj){b=i.constrainedMax;m=j}else {if(hj){c=i.constrainedMax;l=j}else {if(h',addDocked:function(c,d){var b=this,k=b.rendered,f=0,g=b.dockedItems,i=g.getCount(),e,h,a,j;c=b.prepareItems(c);j=c.length;if(k){Ext.suspendLayouts()}if(d===undefined){d=i}else {d=Math.min(d,i)}for(;f','
    ','{headingText}','
    ','','{% this.renderDockedItems(out,values,0); %}','
    {bodyCls}',' {baseCls}-body-{ui}',' {parent.baseCls}-body-{parent.ui}-{.}','{childElCls}"','',' {$}="{.}"','',' role="presentation"','',' style="{bodyStyle}">','{%this.renderContainer(out,values);%}','
    ','{% this.renderDockedItems(out,values,1); %}'],headerPosition:'top',iconAlign:'left',titleAlign:'left',titleRotation:'default',beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titleRotation:null},animCollapse:Ext.enableFx,border:!0,closable:!1,closeAction:'destroy',closeToolText:'Close panel',collapsed:!1,collapsedCls:'collapsed',collapseFirst:!0,collapsible:undefined,collapseToolText:'Collapse panel',expandToolText:'Expand panel',constrain:!1,constrainHeader:!1,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:!0,frame:!1,frameHeader:!0,hideCollapseTool:!1,manageHeight:!0,maskElement:'el',minButtonWidth:75,preventHeader:!1,shrinkWrapDock:!1,titleCollapse:undefined,baseCls:'x-panel',bodyPosProps:{x:'x',y:'y'},componentLayout:'dock',contentPaddingProperty:'bodyPadding',emptyArray:[],isPanel:!0,defaultBindProperty:'title',addBodyCls:function(c){var a=this,b=a.rendered?a.body:a.getProtoBody();b.addCls(c);return a},addTool:function(b){if(!Ext.isArray(b)){b=[b]}var c=this,a=c.header,g=b.length,f=c.tools,e,d;if(!a||!a.isHeader){a=null;if(!f){c.tools=f=[]}}for(e=0;e=e||c[b]>0){if(b>=e){b=0;f=0;h++;for(a=0;a0){c[a]--}}}else {b++}}i.push({rowIdx:h,cellIdx:f});for(a=g.colspan||1;a;--a){c[b]=g.rowspan||1;++b}++f}return i},getRenderTree:function(){var a=this,h=a.getLayoutItems(),i=[],m=Ext.apply({tag:'table',id:a.owner.id+'-table','data-ref':'table',role:'presentation',cls:a.tableCls,cellspacing:0,cellpadding:0,cn:{tag:'tbody',id:a.owner.id+'-tbody','data-ref':'tbody',role:'presentation',cn:i}},a.tableAttrs),k=a.tdAttrs,d,n=h.length,b,f,c,g,j,e,l;l=a.calculateCells(h);for(d=0;d0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(a.is(this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(e,b){var a=this,d=a.items,c=a.addHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.add(b)}}},onItemRemove:function(e,b){var a=this,d=a.items,c=a.removeHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.remove(b)}}},onContainerAdd:function(c,i){var a=this,d,e,h=a.handleAdd,g=a.handleRemove,b,f;if(c.isContainer){c.on('add',h,a);c.on('dockedadd',h,a);c.on('remove',g,a);c.on('dockedremove',g,a)}if(i!==!0){d=c.query(a.selector);for(b=0,e=d.length;bcontainer');for(b=0,e=d.length;ba.tolerance){a.triggerStart(b)}else {return}}if(a.fireEvent('mousemove',a,b)===!1){a.onMouseUp(b)}else {a.onDrag(b);a.fireEvent('drag',a,b)}},onMouseUp:function(b){var a=this;a.mouseIsDown=!1;if(a.mouseIsOut){a.mouseIsOut=!1;a.onMouseOut(b)}if(a.preventDefault!==!1){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent('mouseup',a,b);a.endDrag(b)},endDrag:function(b){var a=this,c=a.active;Ext.getDoc().un({mousemove:a.onMouseMove,mouseup:a.onMouseUp,selectstart:a.stopSelect,capture:!0,scope:a});a.clearStart();a.active=!1;if(c){a.dragEnded=!0;a.onEnd(b);a.fireEvent('dragend',a,b)}a._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=!0;a.onStart(b);a.fireEvent('dragstart',a,b)},clearStart:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return !1},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var a=this;if(a.constrainTo){if(a.constrainTo instanceof Ext.util.Region){return a.constrainTo}if(!a._constrainRegion){a._constrainRegion=Ext.fly(a.constrainTo).getViewRegion()}}else {if(!a._constrainRegion){a._constrainRegion=a.getDragCt().getViewRegion()}}return a._constrainRegion},getXY:function(a){return a?this.constrainModes[a](this,this.lastXY):this.lastXY},getOffset:function(c){var a=this.getXY(c),b=this.startXY;return [a[0]-b[0],a[1]-b[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(d,b){var a=d.dragRegion,c=d.getConstrainRegion();if(!c){return b}a.x=a.left=a[0]=a.right=b[0];a.y=a.top=a[1]=a.bottom=b[1];a.constrainTo(c);return [a.left,a.top]},dragTarget:function(e,c){var f=e.startXY,a=e.startRegion.copy(),b=e.getConstrainRegion(),d;if(!b){return c}a.translateBy(c[0]-f[0],c[1]-f[1]);if(a.right>b.right){c[0]+=d=b.right-a.right;a.left+=d}if(a.leftb.bottom){c[1]+=d=b.bottom-a.bottom;a.top+=d}if(a.top[flex]'),o=j.length,h=n==='vertical',i=0,d=h?'width':'height',m=0,g,a;for(;i',tabGuardIndex:0},tabGuardPositionAttribute:'data-tabguardposition',privates:{initTabGuards:function(){var a=this,f=a.tabGuardPositionAttribute,c=a.tabGuardBeforeEl,d=a.tabGuardAfterEl,e=a.tabGuardIndex,b;if(!a.rendered||!a.tabGuard){return}b=a.el.findTabbableElements({skipSelf:!0});if(b[0]&&b[0].hasAttribute(f)){b.shift()}if(b.length&&b[b.length-1].hasAttribute(f)){b.pop()}if(b.length){c.dom.setAttribute('tabIndex',e);c.on('focusenter',a.onTabGuardFocusEnter,a);d.dom.setAttribute('tabIndex',e);d.on('focusenter',a.onTabGuardFocusEnter,a)}else {c.dom.removeAttribute('tabIndex');c.un('focusenter',a.onTabGuardFocusEnter,a);d.dom.removeAttribute('tabIndex');d.un('focusenter',a.onTabGuardFocusEnter,a)}},onTabGuardFocusEnter:function(j,i){var h=this,e=h.el,g=h.tabGuardPositionAttribute,f=i.getAttribute(g),d=j.relatedTarget,a,c,b;if(!d.hasAttribute(g)&&d!==e.dom&&e.contains(d)){c=f==='before'?!1:!0}else {c=f==='before'?!0:!1}a=e.findTabbableElements({skipSelf:!0});a.shift();a.pop();b=c?a[0]:a[a.length-1];if(b){b.focus()}}}},0,0,0,0,0,0,[Ext.util,'FocusTrap'],0);Ext.cmd.derive('Ext.window.Window',Ext.panel.Panel,{alternateClassName:'Ext.Window',baseCls:'x-window',resizable:!0,draggable:!0,constrain:!1,constrainHeader:!1,plain:!1,minimizable:!1,maximizable:!1,minHeight:50,minWidth:50,expandOnShow:!0,collapsible:!1,closable:!0,hidden:!0,autoRender:!0,hideMode:'offsets',floating:!0,itemCls:'x-window-item',overlapHeader:!0,ignoreHeaderBorderManagement:!0,alwaysFramed:!0,isRootCfg:{isRoot:!0},isWindow:!0,ariaRole:'dialog',initComponent:function(){var a=this;a.frame=!1;Ext.panel.Panel.prototype.initComponent.call(this);if(a.plain){a.addClsWithUI('plain')}a.addStateEvents(['maximize','restore','resize','dragend'])},getElConfig:function(){var b=this,a;a=Ext.panel.Panel.prototype.getElConfig.call(this);a.tabIndex=-1;return a},getFocusEl:function(){return this.getDefaultFocus()||this.el},getState:function(){var a=this,e=Ext.panel.Panel.prototype.getState.call(this)||{},c=!!a.maximized,d=a.ghostBox,b;e.maximized=c;if(c){b=a.restorePos}else {if(d){b=[d.x,d.y]}else {b=a.getPosition()}}Ext.apply(e,{size:c?a.restoreSize:a.getSize(),pos:b});return e},applyState:function(a){var b=this;if(a){b.maximized=a.maximized;if(b.maximized){b.hasSavedRestore=!0;b.restoreSize=a.size;b.restorePos=a.pos}else {Ext.apply(b,{width:a.size.width,height:a.size.height,x:a.pos[0],y:a.pos[1]})}}},onRender:function(c,b){var a=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(a.header){a.header.on({scope:a,click:a.onHeaderClick})}if(a.maximizable){a.header.on({scope:a,dblclick:a.toggleMaximize})}},afterRender:function(){var a=this,c=a.header,b;if(a.maximized){a.maximized=!1;a.maximize();if(c){c.removeCls(c.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);if(a.closable){b=a.getKeyMap();b.on(27,a.onEsc,a)}else {b=a.keyMap}if(b&&a.hidden){b.disable()}},onEsc:function(b,a){a.stopEvent();this.close()},beforeDestroy:function(){var a=this;if(a.rendered){Ext.un('resize',a.onWindowResize,a);delete a.animateTarget;a.hide();Ext.destroy(a.keyMap)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},addTools:function(){var a=this,b=[];Ext.panel.Panel.prototype.addTools.call(this);if(a.minimizable){b.push({type:'minimize',handler:'minimize',scope:a})}if(a.maximizable){b.push({type:a.maximized?'restore':'maximize',handler:'toggleMaximize',scope:a})}if(b.length){a.addTool(b)}},onShow:function(){var a=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(a.expandOnShow){a.expand(!1)}a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.enable()}},doClose:function(){var a=this;if(a.hidden){a.fireEvent('close',a);if(a.closeAction==='destroy'){a.destroy()}}else {a.hide(a.animateTarget,a.doClose,a)}},afterHide:function(){var a=this;a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.disable()}Ext.panel.Panel.prototype.afterHide.apply(this,arguments)},onWindowResize:function(){var a=this,b;if(!a.destroyed){if(a.maximized){a.fitContainer()}else {b=a.getSizeModel();if(b.width.natural||b.height.natural){a.updateLayout()}a.doConstrain()}}},minimize:function(){this.fireEvent('minimize',this);return this},resumeHeaderLayout:function(a){this.header.resumeLayouts(a?this.isRootCfg:null)},afterCollapse:function(){var a=this,b=a.header,c=a.tools;if(b&&a.maximizable){b.suspendLayouts();c.maximize.hide();this.resumeHeaderLayout(!0)}if(a.resizer){a.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var a=this,c=a.header,d=a.tools,b;if(c){c.suspendLayouts();if(a.maximizable){d.maximize.show();b=!0}this.resumeHeaderLayout(b)}if(a.resizer){a.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(c){var a=this,b=a.header,f=a.tools,g=a.width,e=a.height,h,d;if(!a.maximized){a.expand(!1);if(!a.hasSavedRestore){h=a.restoreSize={width:g?g:null,height:e?e:null};a.restorePos=a.getPosition()}if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('restore')}if(a.collapseTool){a.collapseTool.hide();d=!0}a.resumeHeaderLayout(d)}a.el.disableShadow();if(a.dd){a.dd.disable();if(b){b.removeCls(b.indicateDragCls)}}if(a.resizer){a.resizer.disable()}a.el.addCls('x-window-maximized');a.container.addCls('x-window-maximized-ct');a.syncMonitorWindowResize();a.fitContainer(c=c||!!a.animateTarget?{callback:function(){a.maximized=!0;a.fireEvent('maximize',a)}}:null);if(!c){a.maximized=!0;a.fireEvent('maximize',a)}}return a},restore:function(c){var a=this,f=a.tools,b=a.header,d=a.restoreSize,e;if(a.maximized){a.hasSavedRestore=null;a.removeCls('x-window-maximized');if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('maximize')}if(a.collapseTool){a.collapseTool.show();e=!0}a.resumeHeaderLayout(e)}d.x=a.restorePos[0];d.y=a.restorePos[1];a.setBox(d,c=c||!!a.animateTarget?{callback:function(){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}:null);a.restorePos=a.restoreSize=null;if(a.dd){a.dd.enable();if(b){b.addCls(b.indicateDragCls)}}if(a.resizer){a.resizer.enable()}a.container.removeCls('x-window-maximized-ct');a.syncMonitorWindowResize();if(!c){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}return a},syncMonitorWindowResize:function(){var a=this,b=a._monitoringResize,d=a.monitorResize||a.constrain||a.constrainHeader||a.maximized,c=a.hidden||a.destroying||a.destroyed;if(d&&!c){if(!b){Ext.on('resize',a.onWindowResize,a,{buffer:1});a._monitoringResize=!0}}else {if(b){Ext.un('resize',a.onWindowResize,a);a._monitoringResize=!1}}},toggleMaximize:function(){return this[this.maximized?'restore':'maximize']()},createGhost:function(){var a=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);a.xtype='window';a.focusOnToFront=!1;return a},getDefaultFocus:function(){var d=this,b,a=d.defaultFocus,c;if(a!==undefined){if(Ext.isNumber(a)){b=d.query('button')[a]}else {if(Ext.isString(a)){c=a;if(Ext.validIdRe.test(c)){b=d.down(Ext.makeIdSelector(c))}if(!b){b=d.down(c)}}else {if(a.focus){b=a}}}}return b},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(b,c){var a;if(b.el.contains(c.getTarget())){a=this.getDefaultFocus();if(a){a.focus()}}},initResizable:function(){Ext.panel.Panel.prototype.initResizable.apply(this,arguments);if(this.maximized){this.resizer.disable()}}}},0,['window'],['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},['widget.window'],[[Ext.util.FocusTrap.prototype.mixinId||Ext.util.FocusTrap.$className,Ext.util.FocusTrap]],[Ext.window,'Window',Ext,'Window'],0);Ext.cmd.derive('Ext.form.Labelable',Ext.Mixin,{isLabelable:!0,mixinConfig:{id:'labelable',on:{beforeRender:'beforeLabelRender',onRender:'onLabelRender'}},config:{childEls:['labelEl','bodyEl','errorEl','errorWrapEl','ariaErrorEl']},labelableRenderTpl:['{beforeLabelTpl}','','{afterLabelTpl}','','','
    ','','
    ','
    ',{disableFormats:!0}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['','
      ','
    • {.}
    • ','
    ','
    '],plaintextActiveErrorsTpl:['','\n{.}',''],isFieldLabelable:!0,formItemCls:'x-form-item',labelCls:'x-form-item-label',topLabelCls:'x-form-item-label-top',rightLabelCls:'x-form-item-label-right',labelInnerCls:'x-form-item-label-inner',topLabelSideErrorCls:'x-form-item-label-top-side-error',errorMsgCls:'x-form-error-msg',errorWrapCls:'x-form-error-wrap',errorWrapSideCls:'x-form-error-wrap-side',errorWrapUnderCls:'x-form-error-wrap-under',errorWrapUnderSideLabelCls:'x-form-error-wrap-under-side-label',baseBodyCls:'x-form-item-body',invalidIconCls:'x-form-invalid-icon',invalidUnderCls:'x-form-invalid-under',noLabelCls:'x-form-item-no-label',fieldBodyCls:'',invalidCls:'x-form-invalid',fieldLabel:undefined,labelAlign:'left',labelWidth:100,labelPad:5,labelSeparator:':',hideLabel:!1,hideEmptyLabel:!0,preventMark:!1,autoFitErrors:!0,msgTarget:'qtip',msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:!0,labelableInsertions:['beforeBodyEl','afterBodyEl','beforeLabelTpl','afterLabelTpl','beforeSubTpl','afterSubTpl','beforeLabelTextTpl','afterLabelTextTpl','labelAttrTpl'],statics:{initTip:function(){var b=this.tip,a,c;if(b){return}a={id:'ext-form-error-tip',ui:'form-invalid'};if(Ext.supports.Touch){a.dismissDelay=0;a.anchor='top';a.showDelay=0;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.anchorTarget).getWidth()}}}b=this.tip=Ext.create('Ext.tip.QuickTip',a);c=Ext.apply({},b.tagConfig);c.attribute='errorqtip';b.setTagConfig(c)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var a=this,b=a.padding;if(b){a.padding=undefined;a.extraMargins=Ext.Element.parseBox(b)}if(Ext.isIE8){a.restoreDisplay=Ext.Function.createDelayed(a.doRestoreDisplay,0,a)}if(!a.activeErrorsTpl){if(a.msgTarget==='title'){a.activeErrorsTpl=a.plaintextActiveErrorsTpl}else {a.activeErrorsTpl=a.htmlActiveErrorsTpl}}a.addCls([a.formItemCls,a.formItemCls+'-'+a.ui]);a.lastActiveError='';a.enableBubble('errorchange')},trimLabelSeparator:function(){var b=this,c=b.labelSeparator,a=b.fieldLabel||'',d=a.substr(a.length-1);return d===c?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(b){b=b||'';var a=this,f=a.labelSeparator,h=a.labelEl,c=a.errorWrapEl,g=a.labelAlign!=='top',e=a.noLabelCls,d=a.errorWrapUnderSideLabelCls;a.fieldLabel=b;if(a.rendered){if(Ext.isEmpty(b)&&a.hideEmptyLabel){a.addCls(e);if(g&&c){c.removeCls(d)}}else {if(f){b=a.trimLabelSeparator()+f}h.dom.firstChild.innerHTML=b;a.removeCls(e);if(g&&c){c.addCls(d)}}a.updateLayout()}},setHideLabel:function(b){var a=this;if(b!==a.hideLabel){a.hideLabel=b;if(a.rendered){a[b?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},setHideEmptyLabel:function(b){var a=this,c;if(b!==a.hideEmptyLabel){a.hideEmptyLabel=b;if(a.rendered&&!a.hideLabel){c=b&&!a.getFieldLabel();a[c?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},getInsertionRenderData:function(c,d){var e=d.length,b,a;while(e--){b=d[e];a=this[b];if(a){if(typeof a!=='string'){if(!a.isTemplate){a=Ext.XTemplate.getTpl(this,b)}a=a.apply(c)}}c[b]=a||''}return c},getLabelableRenderData:function(){var a=this,l=a.labelAlign,o=l==='top',r=l==='right',c=a.msgTarget==='side',h=a.msgTarget==='under',q=a.errorMsgCls,b=a.labelPad,m=a.labelWidth,d=a.labelClsExtra||'',j=c?a.errorWrapSideCls:a.errorWrapUnderCls,g='',f='',p=a.hasVisibleLabel(),k=a.autoFitErrors,e=a.defaultBodyWidth,n,i;if(o){d+=' '+a.topLabelCls;if(b){f='padding-bottom:'+b+'px;'}if(c&&!k){d+=' '+a.topLabelSideErrorCls}}else {if(r){d+=' '+a.rightLabelCls}if(b){g+=a.getHorizontalPaddingStyle()+b+'px;'}g+='width:'+(m+(b?b:0))+'px;';f='width:'+m+'px'}if(p){if(!o&&h){j+=' '+a.errorWrapUnderSideLabelCls}}if(e){n='min-width:'+e+'px;max-width:'+e+'px;'}i={id:a.id,inputId:a.getInputId(),labelCls:a.labelCls,labelClsExtra:d,labelStyle:g+(a.labelStyle||''),labelInnerStyle:f,labelInnerCls:a.labelInnerCls,unselectableCls:Ext.Element.unselectableCls,bodyStyle:n,baseBodyCls:a.baseBodyCls,fieldBodyCls:a.fieldBodyCls,extraFieldBodyCls:a.extraFieldBodyCls,errorWrapCls:a.errorWrapCls,errorWrapExtraCls:j,renderError:c||h,invalidMsgCls:c?a.invalidIconCls:h?a.invalidUnderCls:'',errorMsgCls:q,growCls:a.grow?a.growCls:'',tipAnchorTarget:a.id+'-inputEl',errorWrapStyle:c&&!k?'visibility:hidden':'display:none',fieldLabel:a.getFieldLabel(),labelSeparator:a.labelSeparator};a.getInsertionRenderData(i,a.labelableInsertions);return i},getHorizontalPaddingStyle:function(){return 'padding-right:'},beforeLabelRender:function(){var a=this;a.setFieldDefaults(a.getInherited().fieldDefaults);if(a.ownerLayout){a.addCls('x-'+a.ownerLayout.type+'-form-item')}if(!a.hasVisibleLabel()){a.addCls(a.noLabelCls)}},onLabelRender:function(){var a=this,f={},e=Ext.Element,d=a.errorWrapEl,c,b;if(d){d.setVisibilityMode(a.msgTarget==='side'&&!a.autoFitErrors?e.VISIBILITY:e.DISPLAY)}if(a.extraMargins){c=a.el.getMargin();for(b in c){if(c.hasOwnProperty(b)){f['margin-'+b]=c[b]+a.extraMargins[b]+'px'}}a.el.setStyle(f)}},hasVisibleLabel:function(){if(this.hideLabel){return !1}return !(this.hideEmptyLabel&&!this.getFieldLabel())},getSubTplMarkup:function(){return ''},getInputId:function(){return ''},getActiveError:function(){return this.activeError||''},hasActiveError:function(){return !!this.getActiveError()},setActiveError:function(a){this.setActiveErrors(a)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(c){var a=this,h=a.errorWrapEl,b=a.msgTarget,g=b==='side',i=b==='qtip',e,d,j,f;c=Ext.Array.from(c);j=a.getTpl('activeErrorsTpl');a.activeErrors=c;d=a.activeError=j.apply({fieldLabel:a.fieldLabel,errors:c,listCls:'x-list-plain'});a.renderActiveError();if(a.rendered){e=a.getActionEl();if(g){a.errorEl.dom.setAttribute('data-errorqtip',d)}else {if(i){e.dom.setAttribute('data-errorqtip',d)}else {if(b==='title'){e.dom.setAttribute('title',d)}}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML=c.join('. ');e.dom.setAttribute('aria-describedby',a.ariaErrorEl.id)}if(g||i){Ext.form.Labelable.initTip()}if(!a.msgTargets[b]){f=Ext.get(b);if(f){f.dom.innerHTML=d}}}if(h){h.setVisible(c.length>0);if(g&&a.autoFitErrors){a.labelEl.addCls(a.topLabelSideErrorCls)}a.updateLayout()}},unsetActiveError:function(){var a=this,e=a.errorWrapEl,b=a.msgTarget,f=a.restoreDisplay,c,d;if(a.hasActiveError()){delete a.activeError;delete a.activeErrors;a.renderActiveError();if(a.rendered){c=a.getActionEl();if(b==='qtip'){c.dom.removeAttribute('data-errorqtip')}else {if(b==='title'){c.dom.removeAttribute('title')}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML='';c.dom.removeAttribute('aria-describedby')}if(!a.msgTargets[b]){d=Ext.get(b);if(d){d.dom.innerHTML=''}}if(e){e.hide();if(b==='side'&&a.autoFitErrors){a.labelEl.removeCls(a.topLabelSideErrorCls)}a.updateLayout();if(f){a.el.dom.style.display='block';a.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=''}},renderActiveError:function(){var a=this,b=a.getActiveError(),c=!!b;if(b!==a.lastActiveError){a.lastActiveError=b;a.fireEvent('errorchange',a,b)}if(a.rendered&&!a.destroyed&&!a.preventMark){a.toggleInvalidCls(c);if(a.errorEl){a.errorEl.dom.innerHTML=b}}},toggleInvalidCls:function(a){this.el[a?'addCls':'removeCls'](this.invalidCls)},setFieldDefaults:function(b){var a;for(a in b){if(!this.hasOwnProperty(a)){this[a]=b[a]}}}},0,0,0,0,0,0,[Ext.form,'Labelable'],function(){if(Ext.supports.Touch){this.prototype.msgTarget='side'}});Ext.cmd.derive('Ext.form.field.Field',Ext.Base,{mixinId:'field',isFormField:!0,config:{validation:null,validationField:null},disabled:!1,submitValue:!0,validateOnChange:!0,valuePublishEvent:'change',suspendCheckChange:0,dirty:!1,initField:function(){var a=this,b=a.valuePublishEvent,d,c;a.initValue();if(Ext.isString(b)){a.on(b,a.publishValue,a)}else {for(c=0,d=b.length;c name="{name}"',' value="{[Ext.util.Format.htmlEncode(values.value)]}"',' placeholder="{placeholder}"','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}',' readonly="readonly"',' disabled="disabled"',' tabindex="{tabIdx}"',' style="{fieldStyle}"',' {$}="{.}"',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete="off"/>',{disableFormats:!0}],defaultBindProperty:'value',autoEl:{role:'presentation'},subTplInsertions:['inputAttrTpl'],childEls:['inputEl'],inputType:'text',isTextInput:!0,invalidText:'The value in this field is invalid',fieldCls:'x-form-field',focusCls:'form-focus',dirtyCls:'x-form-dirty',checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<=9)?['change','propertychange','keyup']:['change','input','textInput','keyup','dragdrop'],ignoreChangeRe:/data\-errorqtip|style\.|className/,checkChangeBuffer:50,liquidLayout:!0,readOnly:!1,readOnlyCls:'x-form-readonly',validateOnBlur:!0,hasFocus:!1,baseCls:'x-field',fieldBodyCls:'x-field-body',maskOnDisable:!1,stretchInputElFixed:!0,ariaEl:'inputEl',initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();a.initDefaultName();if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls('x-form-type-'+a.inputType)},initDefaultName:function(){var a=this;if(!a.name){a.name=a.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+'-inputEl')},getSubTplData:function(f){var a=this,e=a.inputType,d=a.getInputId(),b,c;b=Ext.apply({ui:a.ui,id:d,cmpId:a.id,name:a.name||d,disabled:a.disabled,readOnly:a.readOnly,value:a.getRawValue(),type:e,fieldCls:a.fieldCls,fieldStyle:a.getFieldStyle(),childElCls:f.childElCls,tabIdx:a.tabIndex,inputCls:a.inputCls,typeCls:'x-form-'+(a.isTextInput?'text':e)},a.subTplData);if(a.ariaRole){c={role:a.ariaRole,'aria-hidden':!!a.hidden,'aria-disabled':!!a.disabled,'aria-readonly':!!a.readOnly,'aria-invalid':!1};if(a.ariaLabel){c['aria-label']=a.ariaLabel}if(a.format&&a.formatText&&!b.title){c.title=Ext.String.formatEncode(a.formatText,a.format)}b.inputElAriaAttributes=Ext.apply(c,a.getAriaAttributes())}a.getInsertionRenderData(b,a.subTplInsertions);return b},getSubTplMarkup:function(f){var b=this,c=b.getSubTplData(f),e=b.getTpl('preSubTpl'),d=b.getTpl('postSubTpl'),a='';if(e){a+=e.apply(c)}a+=b.getTpl('fieldSubTpl').apply(c);if(d){a+=d.apply(c)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(b){var c=this,a=c.inputEl;if(a){a.applyStyles(b)}c.fieldStyle=b},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,!0):a||''},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==='file'},getSubmitData:function(){var a=this,b=null,c;if(!a.disabled&&a.submitValue){c=a.getSubmitValue();if(c!==null){b={};b[a.getName()]=c}}return b},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var a=this,b=a.inputEl?a.inputEl.getValue():Ext.valueFrom(a.rawValue,'');a.rawValue=b;return b},setRawValue:function(b){var a=this,c=a.rawValue;if(!a.transformRawValue.$nullFn){b=a.transformRawValue(b)}b=Ext.valueFrom(b,'');if(c===undefined||c!==b||a.valueContainsPlaceholder){a.rawValue=b;if(a.inputEl){a.bindChangeEvents(!1);a.inputEl.dom.value=b;a.bindChangeEvents(!0)}if(a.rendered&&a.reference){a.publishState('rawValue',b)}}return b},transformRawValue:Ext.identityFn,valueToRaw:function(a){return ''+Ext.valueFrom(a,'')},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var a=this,b=a.rawToValue(a.processRawValue(a.getRawValue()));a.value=b;return b},setValue:function(b){var a=this;a.setRawValue(a.valueToRaw(b));return a.mixins.field.setValue.call(a,b)},onBoxReady:function(){var a=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(a.setReadOnlyOnBoxReady){a.setReadOnly(a.readOnly)}},onDisable:function(){var a=this,b=a.inputEl;Ext.Component.prototype.onDisable.call(this);if(b){b.dom.disabled=!0;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=!0}}if(a.wasValid===!1){a.checkValidityChange(!0)}},onEnable:function(){var a=this,b=a.inputEl,d=a.preventMark,c;Ext.Component.prototype.onEnable.call(this);if(b){b.dom.disabled=!1}if(a.wasValid!==undefined){a.forceValidation=!0;a.preventMark=!a.hadErrorOnDisable;c=a.isValid();a.forceValidation=!1;a.preventMark=d;a.checkValidityChange(c)}delete a.hadErrorOnDisable},setReadOnly:function(b){var a=this,c=a.inputEl,d=a.readOnly;b=!!b;a[b?'addCls':'removeCls'](a.readOnlyCls);a.readOnly=b;if(c){c.dom.readOnly=b;a.ariaEl.dom.setAttribute('aria-readonly',b)}else {if(a.rendering){a.setReadOnlyOnBoxReady=!0}}if(b!==d){a.fireEvent('writeablechange',a,b)}},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent('specialkey',this,a)}},initEvents:function(){var a=this,d=a.inputEl,f=a.onFieldMutation,e=a.checkChangeEvents,g=e.length,c,b;if(d){a.mon(d,Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress',a.fireKey,a);for(c=0;c style="{triggerStyle}">','{[values.$trigger.renderBody(values)]}',''],statics:{weightComparator:function(a,b){return a.weight-b.weight}},constructor:function(c){var a=this,b;Ext.apply(a,c);if(a.compat4Mode){b=a.cls;a.focusCls=[a.focusCls,b+'-focus'];a.overCls=[a.overCls,b+'-over'];a.clickCls=[a.clickCls,b+'-click']}},afterFieldRender:function(){this.initEvents()},destroy:function(){var a=this;a.clickRepeater=a.el=Ext.destroy(a.clickRepeater,a.el);a.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=!0;if(a){a.hide()}},initEvents:function(){var a=this,b=a.isFieldEnabled,c=a.getStateEl(),d=a.el;c.addClsOnOver(a.overCls,b,a);c.addClsOnClick(a.clickCls,b,a);if(a.repeatClick){a.clickRepeater=new Ext.util.ClickRepeater(d,{preventDefault:!0,handler:a.onClick,listeners:{mousedown:a.onClickRepeaterMouseDown,scope:a},scope:a})}else {a.field.mon(d,{click:a.onClick,mousedown:a.onMouseDown,scope:a})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=!1;if(a.hidden||!c||!a.rendered||a.destroyed){b=!0}return !b},onClick:function(){var a=this,c=arguments,e=a.clickRepeater?c[1]:c[0],d=a.handler,b=a.field;if(d&&!b.readOnly&&a.isFieldEnabled()){Ext.callback(a.handler,a.scope,[b,a,e],0,b)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=='touch'&&!this.field.owns(Ext.Element.getActiveElement())){this.field.inputEl.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==='mousedown'){this.field.inputEl.focus()}a.preventDefault()},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var a=this,b=a.el=a.field.triggerWrap.selectNode('#'+a.domId,!1);b.setVisibilityMode(Ext.Element.DISPLAY);a.rendered=!0},renderBody:function(b){var a=this,c=a.bodyTpl;Ext.apply(b,a.getBodyRenderData());return c?Ext.XTemplate.getTpl(a,'bodyTpl').apply(b):''},renderTrigger:function(b){var a=this,d=a.width,c=a.hidden?'display:none;':'';if(d){c+='width:'+d}return Ext.XTemplate.getTpl(a,'renderTpl').apply({$trigger:a,fieldData:b,ui:b.ui,childElCls:b.childElCls,triggerId:a.domId=a.field.id+'-trigger-'+a.id,cls:a.cls,triggerStyle:c,extraCls:a.extraCls,baseCls:a.baseCls})},setHidden:function(a){if(a!==this.hidden){this[a?'hide':'show']()}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=!1;if(a){a.show()}}},1,0,0,0,['trigger.trigger'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.form.trigger,'Trigger'],0);Ext.cmd.derive('Ext.form.field.Text',Ext.form.field.Base,{alternateClassName:['Ext.form.TextField','Ext.form.Text'],config:{hideTrigger:!1,triggers:undefined},renderConfig:{editable:!0},growMin:30,growMax:800,growAppend:'W',allowBlank:!0,validateBlank:!1,allowOnlyWhitespace:!0,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:'The minimum length for this field is {0}',maxLengthText:'The maximum length for this field is {0}',blankText:'This field is required',regexText:'',emptyText:'',emptyCls:'x-form-empty-field',requiredCls:'x-form-required-field',valueContainsPlaceholder:!1,ariaRole:'textbox',repeatTriggerClick:!1,triggerWrapCls:'x-form-trigger-wrap',triggerWrapFocusCls:'x-form-trigger-wrap-focus',triggerWrapInvalidCls:'x-form-trigger-wrap-invalid',fieldBodyCls:'x-form-text-field-body',inputWrapCls:'x-form-text-wrap',inputWrapFocusCls:'x-form-text-wrap-focus',inputWrapInvalidCls:'x-form-text-wrap-invalid',growCls:'x-form-text-grow',needArrowKeys:!0,squashMouseUp:{mouseup:function(){},translate:!1,single:!0,preventDefault:!0},childEls:['triggerWrap','inputWrap'],preSubTpl:[''],initComponent:function(){var a=this,b=a.emptyCls;if(a.allowOnlyWhitespace===!1){a.allowBlank=!1}if(a.size){a.defaultBodyWidth=a.size*6.5+20}if(!a.onTrigger1Click){a.onTrigger1Click=a.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(a.readOnly){a.setReadOnly(a.readOnly)}a.fieldFocusCls=a.baseCls+'-focus';a.emptyUICls=b+' '+b+'-'+a.ui;a.addStateEvents('change')},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(a.selectOnFocus||a.emptyText){a.mon(b,'mousedown',a.onMouseDown,a)}if(a.maskRe||a.vtype&&a.disableKeyFilter!==!0&&(a.maskRe=Ext.form.field.VTypes[a.vtype+'Mask'])){a.mon(b,'keypress',a.filterKeys,a)}if(a.enableKeyEvents){a.mon(b,{scope:a,keyup:a.onKeyUp,keydown:a.onKeyDown,keypress:a.onKeyPress})}},isEqual:function(a,b){return this.isEqualAsString(a,b)},onChange:function(a,b){Ext.form.field.Base.prototype.onChange.apply(this,arguments);this.autoSize()},getSubTplData:function(h){var a=this,c=a.getRawValue(),g=a.emptyText&&c.length<1,b=a.maxLength,e,f,d;if(a.enforceMaxLength){if(b===Number.MAX_VALUE){b=undefined}}else {b=undefined}if(g){if(Ext.supports.Placeholder){e=a.emptyText}else {c=a.emptyText;a.valueContainsPlaceholder=!0}}f=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,h),{triggerWrapCls:a.triggerWrapCls,inputWrapCls:a.inputWrapCls,triggers:a.orderedTriggers,maxLength:b,readOnly:!a.editable||a.readOnly,placeholder:e,value:c,fieldCls:a.fieldCls+(g&&(e||c)?' '+a.emptyUICls:'')+(a.allowBlank?'':' '+a.requiredCls)});d=f.inputElAriaAttributes;if(d){d['aria-required']=!a.allowBlank}return f},onRender:function(){var a=this,b=a.getTriggers(),c=[],d,e;if(Ext.supports.FixedTableWidthBug){a.el._needsTableWidthFix=!0}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(b){this.invokeTriggers('onFieldRender');for(d in b){c.push(b[d].el)}e=a.triggerEl=a.triggerCell=new Ext.CompositeElement(c,!0)}a.inputCell=a.inputWrap},afterRender:function(){var a=this;a.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);a.invokeTriggers('afterFieldRender')},onMouseDown:function(){if(!this.hasFocus){Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(c){var a=this,j=a.getHideTrigger(),k=a.readOnly,f=a.orderedTriggers=[],i=a.repeatTriggerClick,e,b,h,g,d;if(!c){c={};if(a.triggerCls&&!a.trigger1Cls){a.trigger1Cls=a.triggerCls}for(d=1;g=a['trigger'+d+'Cls'];d++){c['trigger'+d]={cls:g,extraCls:'x-trigger-index-'+d,handler:'onTrigger'+d+'Click',compat4Mode:!0,scope:a}}}for(e in c){if(c.hasOwnProperty(e)){b=c[e];b.field=a;b.id=e;if(k&&b.hideOnReadOnly!==!1||j&&b.hidden!==!1){b.hidden=!0}if(i&&b.repeatClick!==!1){b.repeatClick=!0}h=c[e]=Ext.form.trigger.Trigger.create(b);f.push(h)}}Ext.Array.sort(f,Ext.form.trigger.Trigger.weightComparator);return c},invokeTriggers:function(d,e){var f=this,a=f.getTriggers(),c,b;if(a){for(c in a){if(a.hasOwnProperty(c)){b=a[c];b[d].apply(b,e||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateHideTrigger:function(a){this.invokeTriggers(a?'hide':'show')},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(a){var b=this,d=b.getTriggers(),f=b.getHideTrigger(),c,e;a=!!a;Ext.form.field.Base.prototype.setReadOnly.call(this,a);if(b.rendered){b.setReadOnlyAttr(a||!b.editable)}if(d){for(e in d){c=d[e];if(c.hideOnReadOnly===!0||c.hideOnReadOnly!==!1&&!f){c.setVisible(!a)}}}},setReadOnlyAttr:function(c){var b=this,a='readonly',d=b.inputEl.dom;if(c){d.setAttribute(a,a)}else {d.removeAttribute(a)}if(b.ariaRole){b.ariaEl.dom.setAttribute('aria-readonly',!!c)}},processRawValue:function(c){var e=this,a=e.stripCharsRe,d,b;if(a){if(!a.global){d='g';d+=a.ignoreCase?'i':'';d+=a.multiline?'m':'';a=new RegExp(a.source,d)}b=c.replace(a,'');if(b!==c){e.setRawValue(b);c=b}}return c},onDisable:function(){Ext.form.field.Base.prototype.onDisable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable='on'}},onEnable:function(){Ext.form.field.Base.prototype.onEnable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable=''}},onKeyDown:function(a){this.fireEvent('keydown',this,a)},onKeyUp:function(a){this.fireEvent('keyup',this,a)},onKeyPress:function(a){this.fireEvent('keypress',this,a)},reset:function(){Ext.form.field.Base.prototype.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){var a=this,b=a.emptyText,c;if(a.rendered&&b){c=a.getRawValue().length<1&&!a.hasFocus;if(Ext.supports.Placeholder){a.inputEl.dom.placeholder=b}else {if(c){a.setRawValue(b);a.valueContainsPlaceholder=!0}}if(c){a.inputEl.addCls(a.emptyUICls)}else {a.inputEl.removeCls(a.emptyUICls)}a.autoSize()}},getEmptyText:function(){return this.emptyText},setEmptyText:function(e){var a=this,c=a.inputEl,b=c&&c.dom,d=e||'';if(e){a.emptyText=d;a.applyEmptyText()}else {if(b){if(Ext.supports.Placeholder){b.removeAttribute('placeholder')}else {if(b.value!==a.getRawValue()){b.value='';c.removeCls(a.emptyUICls)}}a.valueContainsPlaceholder=!1}}a.emptyText=d;return a},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var a=this.inputEl;if(a){a.dom.unselectable='on'}}},toggleInvalidCls:function(b){var a=b?'addCls':'removeCls';Ext.form.field.Base.prototype.toggleInvalidCls.call(this);this.triggerWrap[a](this.triggerWrapInvalidCls);this.inputWrap[a](this.inputWrapInvalidCls)},beforeFocus:function(){var a=this,b=a.inputEl,c=a.emptyText,d;Ext.form.field.Base.prototype.beforeFocus.apply(this,arguments);if(c&&!Ext.supports.Placeholder&&(b.dom.value===a.emptyText&&a.valueContainsPlaceholder)){a.setRawValue('');d=!0;b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}else {if(Ext.supports.Placeholder){b.removeCls(a.emptyUICls)}}},onFocus:function(b){var a=this;Ext.form.field.Base.prototype.onFocus.apply(this,arguments);if(a.selectOnFocus){a.inputEl.dom.select()}if(a.emptyText){a.autoSize()}a.addCls(a.fieldFocusCls);a.triggerWrap.addCls(a.triggerWrapFocusCls);a.inputWrap.addCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldFocus',[b])},onBlur:function(b){var a=this;Ext.form.field.Base.prototype.onBlur.apply(this,arguments);a.removeCls(a.fieldFocusCls);a.triggerWrap.removeCls(a.triggerWrapFocusCls);a.inputWrap.removeCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldBlur',[b])},completeEdit:function(a){Ext.form.field.Base.prototype.completeEdit.call(this,a);this.applyEmptyText()},filterKeys:function(a){if(a.ctrlKey&&!a.altKey||a.isSpecialKey()){return}var b=String.fromCharCode(a.getCharCode());if(!this.maskRe.test(b)){a.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),'value')},applyState:function(a){Ext.form.field.Base.prototype.applyState.apply(this,arguments);if(a.hasOwnProperty('value')){this.setValue(a.value)}},getRawValue:function(){var b=this,a=Ext.form.field.Base.prototype.getRawValue.call(this);if(a===b.emptyText&&b.valueContainsPlaceholder){a=''}return a},setValue:function(c){var a=this,b=a.inputEl;if(b&&a.emptyText&&!Ext.isEmpty(c)){b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}Ext.form.field.Base.prototype.setValue.apply(this,arguments);a.applyEmptyText();return a},getErrors:function(b){b=arguments.length?b==null?'':b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Base.prototype.getErrors.call(this,b),f=a.validator,d=a.vtype,j=Ext.form.field.VTypes,k=a.regex,i=Ext.String.format,e,h,g;if(Ext.isFunction(f)){e=f.call(a,b);if(e!==!0){c.push(e)}}h=a.allowOnlyWhitespace?b:Ext.String.trim(b);if(h.length<1||b===a.emptyText&&a.valueContainsPlaceholder){if(!a.allowBlank){c.push(a.blankText)}if(!a.validateBlank){return c}g=!0}if(!g&&b.lengtha.maxLength){c.push(i(a.maxLengthText,a.maxLength))}if(d){if(!j[d](b,a)){c.push(a.vtypeText||j[d+'Text'])}}if(k&&!k.test(b)){c.push(a.regexText||a.invalidText)}return c},selectText:function(a,b){var f=this,g=f.getRawValue(),c=g.length,e=f.inputEl.dom,d;if(c>0){a=a===undefined?0:Math.min(a,c);b=b===undefined?c:Math.min(b,c);if(e.setSelectionRange){e.setSelectionRange(a,b)}else {if(e.createTextRange){d=e.createTextRange();d.moveStart('character',a);d.moveEnd('character',b-c);d.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var a=this,d,f,c,g,b,e;if(a.grow&&a.rendered&&a.getSizeModel().width.auto){g=a.inputEl;d=a.getTriggers();c=0;e=Ext.util.Format.htmlEncode(a.getGrowWidth()||(a.hasFocus?'':a.emptyText)||'');e+=a.growAppend;for(f in d){c+=d[f].el.getWidth()}b=g.getTextWidth(e)+c+a.inputWrap.getBorderWidth('lr')+a.triggerWrap.getBorderWidth('lr');b=Math.min(Math.max(b,a.growMin),a.growMax);a.bodyEl.setWidth(b);a.updateLayout();a.fireEvent('autosize',a,b)}},onDestroy:function(){var a=this;a.invokeTriggers('destroy');Ext.destroy(a.triggerRepeater);Ext.form.field.Base.prototype.onDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return 'textfield'}},deprecated:{5:{methods:{getTriggerWidth:function(){var a=this.getTriggers(),c=0,b;if(a&&this.rendered){for(b in a){if(a.hasOwnProperty(b)){c+=a[b].el.getWidth()}}}return c}}}}},0,['textfield'],['component','box','field','textfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0},['widget.textfield'],0,[Ext.form.field,'Text',Ext.form,'TextField',Ext.form,'Text'],0);Ext.cmd.derive('Ext.form.field.TextArea',Ext.form.field.Text,{alternateClassName:'Ext.form.TextArea',fieldSubTpl:['',{disableFormats:!0}],growMin:60,growMax:1000,growAppend:'\n-',enterIsSpecial:!1,preventScrollbars:!1,returnRe:/\r/g,inputCls:'x-form-textarea',extraFieldBodyCls:'x-form-textarea-body',ariaAttributes:{'aria-multiline':!0},getSubTplData:function(d){var a=this,c=a.getFieldStyle(),b=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(a.grow){if(a.preventScrollbars){b.fieldStyle=(c||'')+';overflow:hidden;height:'+a.growMin+'px'}}return b},afterRender:function(){var a=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);a.needsMaxCheck=a.enforceMaxLength&&a.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(a.needsMaxCheck){a.inputEl.on('paste',a.onPaste,a)}},transformRawValue:function(a){return this.stripReturns(a)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(a){a=this.stripReturns(a);return Ext.form.field.Text.prototype.valueToRaw.call(this,a)},stripReturns:function(a){if(a&&typeof a==='string'){a=a.replace(this.returnRe,'')}return a},onPaste:function(){var a=this;if(!a.pasteTask){a.pasteTask=new Ext.util.DelayedTask(a.pasteCheck,a)}a.pasteTask.delay(1)},pasteCheck:function(){var b=this,a=b.getValue(),c=b.maxLength;if(a.length>c){a=a.substr(0,c);b.setValue(a)}},fireKey:function(a){var b=this,c=a.getKey(),d;if(a.isSpecialKey()&&(b.enterIsSpecial||(c!==a.ENTER||a.hasModifier()))){b.fireEvent('specialkey',b,a)}if(b.needsMaxCheck&&c!==a.BACKSPACE&&c!==a.DELETE&&!a.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(a,c)){d=b.getValue();if(d.length>=b.maxLength){a.stopEvent()}}},isCutCopyPasteSelectAll:function(a,b){if(a.ctrlKey){return b===a.A||b===a.C||b===a.V||b===a.X}return !1},autoSize:function(){var a=this,b,c,e,d;if(a.grow&&a.rendered&&a.getSizeModel().height.auto){b=a.inputEl;e=b.getWidth(!0);d=Ext.util.Format.htmlEncode(b.dom.value)||' ';d+=a.growAppend;d=d.replace(/\n/g,'
    ');c=Ext.util.TextMetrics.measure(b,d,e).height+b.getPadding('tb')+a.inputWrap.getBorderWidth('tb')+a.triggerWrap.getBorderWidth('tb');c=Math.min(Math.max(c,a.growMin),a.growMax);a.bodyEl.setHeight(c);a.updateLayout();a.fireEvent('autosize',a,c)}},beforeDestroy:function(){var a=this.pasteTask;if(a){a.cancel();this.pasteTask=null}Ext.form.field.Text.prototype.beforeDestroy.call(this)}},0,['textarea','textareafield'],['component','box','field','textfield','textareafield','textarea'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'textareafield':!0,'textarea':!0},['widget.textarea','widget.textareafield'],0,[Ext.form.field,'TextArea',Ext.form,'TextArea'],0);Ext.cmd.derive('Ext.window.MessageBox',Ext.window.Window,{OK:1,YES:2,NO:4,CANCEL:8,OKCANCEL:9,YESNO:6,YESNOCANCEL:14,INFO:'x-message-box-info',WARNING:'x-message-box-warning',QUESTION:'x-message-box-question',ERROR:'x-message-box-error',hideMode:'offsets',closeAction:'hide',resizable:!1,scrollable:!0,title:' ',defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:!0,cls:['x-message-box','x-hidden-offsets'],layout:{type:'vbox',align:'stretch'},shrinkWrapDock:!0,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:'OK',yes:'Yes',no:'No',cancel:'Cancel'},buttonIds:['ok','yes','no','cancel'],titleText:{confirm:'Confirm',prompt:'Prompt',wait:'Loading...',alert:'Attention'},baseIconCls:'x-message-box-icon',ariaRole:'alertdialog',makeButton:function(b){var a=this.buttonIds[b];return new Ext.button.Button({handler:this.btnCallback,itemId:a,scope:this,text:this.buttonText[a],minWidth:75})},btnCallback:function(e,b){var a=this,d,c;if(b&&b.type==='keydown'&&!b.isSpecialKey()){b.getTarget(null,null,!0).on({keyup:function(c){a.btnCallback(e,c)},single:!0});return}if(a.cfg.prompt||a.cfg.multiline){if(a.cfg.multiline){c=a.textArea}else {c=a.textField}d=c.getValue();c.reset()}a.hide();a.userCallback(e.itemId,d,a.cfg)},hide:function(){var a=this,b=a.cfg?a.cfg.cls:'';a.progressBar.reset();if(b){a.removeCls(b)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(b){var a=this;Ext.window.Window.prototype.constructor.apply(this,arguments);a.minWidth=a.defaultMinWidth=a.minWidth||a.defaultMinWidth;a.maxWidth=a.defaultMaxWidth=a.maxWidth||a.defaultMaxWidth;a.minHeight=a.defaultMinHeight=a.minHeight||a.defaultMinHeight;a.maxHeight=a.defaultMaxHeight=a.maxHeight||a.defaultMaxHeight},initComponent:function(e){var a=this,b=a.id,d,c;a.title=a.title||' ';a.iconCls=a.iconCls||'';a.topContainer=new Ext.container.Container({layout:'hbox',padding:10,style:{overflow:'hidden'},items:[a.iconComponent=new Ext.Component({cls:a.baseIconCls}),a.promptContainer=new Ext.container.Container({flex:1,layout:{type:'vbox',align:'stretch'},items:[a.msg=new Ext.Component({id:b+'-msg',cls:a.baseCls+'-text'}),a.textField=new Ext.form.field.Text({id:b+'-textfield',enableKeyEvents:!0,listeners:{keydown:a.onPromptKey,scope:a}}),a.textArea=new Ext.form.field.TextArea({id:b+'-textarea',height:75})]})]});a.progressBar=new Ext.ProgressBar({id:b+'-progressbar',margin:'0 10 10 10'});a.items=[a.topContainer,a.progressBar];a.msgButtons=[];for(d=0;d<4;d++){c=a.makeButton(d);a.msgButtons[c.itemId]=c;a.msgButtons.push(c)}a.bottomTb=new Ext.toolbar.Toolbar({id:b+'-toolbar',ui:'footer',dock:'bottom',layout:{pack:'center'},items:[a.msgButtons[0],a.msgButtons[1],a.msgButtons[2],a.msgButtons[3]]});a.dockedItems=[a.bottomTb];a.on('close',a.onClose,a);Ext.window.Window.prototype.initComponent.call(this)},onClose:function(){var a=this.header.child('[type=close]');if(a){a.itemId='cancel';this.btnCallback(a);delete a.itemId}},onPromptKey:function(c,b){var a=this;if(b.keyCode===b.RETURN||b.keyCode===10){if(a.msgButtons.ok.isVisible()){a.msgButtons.ok.handler.call(a,a.msgButtons.ok)}else {if(a.msgButtons.yes.isVisible()){a.msgButtons.yes.handler.call(a,a.msgButtons.yes)}}}},reconfigure:function(b){var a=this,j=0,q=!0,t=a.buttonText,g=a.resizer,c=a.header,r=c&&!c.isHeader,s=b&&(b.message||b.msg),i,n,m,e,d,f,o,k,l,h,p;a.updateButtonText();a.cfg=b=b||{};h=b.wait;if(b.width){n=b.width}if(b.height){m=b.height}a.minWidth=b.minWidth||a.defaultMinWidth;a.maxWidth=b.maxWidth||a.defaultMaxWidth;a.minHeight=b.minHeight||a.defaultMinHeight;a.maxHeight=b.maxHeight||a.defaultMaxHeight;if(g){i=g.resizeTracker;g.minWidth=i.minWidth=a.minWidth;g.maxWidth=i.maxWidth=a.maxWidth;g.minHeight=i.minHeight=a.minHeight;g.maxHeight=i.maxHeight=a.maxHeight}delete a.defaultFocus;if(b.defaultFocus){a.defaultFocus=b.defaultFocus}a.animateTarget=b.animateTarget||undefined;a.modal=b.modal!==!1;a.setTitle(b.title||r&&c.title||a.title);a.setIconCls(b.iconCls||r&&c.iconCls||a.iconCls);if(Ext.isObject(b.buttons)){a.buttonText=b.buttons;j=0}else {a.buttonText=b.buttonText||a.buttonText;j=Ext.isNumber(b.buttons)?b.buttons:0}j=j|a.updateButtonText();a.buttonText=t;Ext.suspendLayouts();a.width=a.height=null;if(n||m){if(n){a.setWidth(n)}if(m){a.setHeight(m)}}a.hidden=!1;if(!a.rendered){a.render(Ext.getBody())}a.closable=b.closable!==!1&&!h;c=a.header;if(c){p=c.child('[type=close]');if(p){p.setVisible(a.closable)}if(!b.title&&!a.closable&&!b.iconCls){c.hide()}else {c.show()}}a.liveDrag=!b.proxyDrag;a.userCallback=Ext.Function.bindCallback(b.callback||b.fn||Ext.emptyFn,b.scope||Ext.global);a.setIcon(b.icon);o=a.msg;if(s){o.setHtml(s);o.show()}else {o.hide()}d=a.textArea;f=a.textField;if(b.prompt||b.multiline){a.multiline=b.multiline;if(b.multiline){d.setValue(b.value);d.setHeight(b.defaultTextHeight||a.defaultTextHeight);d.show();f.hide();a.defaultFocus=d}else {f.setValue(b.value);d.hide();f.show();a.defaultFocus=f}}else {d.hide();f.hide()}k=a.progressBar;if(b.progress||h){k.show();a.updateProgress(0,b.progressText);if(h){k.wait(h===!0?b.waitConfig:h)}}else {k.hide()}l=a.msgButtons;for(e=0;e<4;e++){if(j&Math.pow(2,e)){if(!a.defaultFocus){a.defaultFocus=l[e]}l[e].show();q=!1}else {l[e].hide()}}if(q){a.bottomTb.hide()}else {a.bottomTb.show()}Ext.resumeLayouts(!0)},updateButtonText:function(){var b=this,c=b.buttonText,e=0,a,d;for(a in c){if(c.hasOwnProperty(a)){d=b.msgButtons[a];if(d){if(b.cfg&&b.cfg.buttonText){e=e|Math.pow(2,Ext.Array.indexOf(b.buttonIds,a))}if(d.text!==c[a]){d.setText(c[a])}}}}return e},show:function(b){var a=this,c;b=b||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){a.show(b)},single:!0});return a}a.reconfigure(b);if(b.cls){a.addCls(b.cls)}c=a.query('textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])');a.preventFocusOnActivate=!c.length;a.hidden=!0;Ext.window.Window.prototype.show.call(this);return a},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(e,d,c){var b=this,a=b.iconComponent,f=b.messageIconCls;if(f){a.removeCls(f)}if(e){a.show();if(d||c){a.setSize(d||a.getWidth(),c||a.getHeight())}a.addCls('x-dlg-icon');a.addCls(b.messageIconCls=e)}else {a.removeCls('x-dlg-icon');a.hide()}return b},updateProgress:function(c,b,a){this.progressBar.updateProgress(c,b);if(a){this.updateText(a)}return this},onEsc:function(){if(this.closable!==!1){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,b,d,c){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:b,buttons:this.YESNO,callback:d,scope:c}}return this.show(a)},prompt:function(a,c,f,d,b,e){if(Ext.isString(a)){a={prompt:!0,title:a,minWidth:this.minPromptWidth,message:c,buttons:this.OKCANCEL,callback:f,scope:d,multiline:b,value:e}}return this.show(a)},wait:function(a,c,b){if(Ext.isString(a)){a={title:c,message:a,closable:!1,wait:!0,modal:!0,minWidth:this.minProgressWidth,waitConfig:b}}return this.show(a)},alert:function(a,b,d,c){if(Ext.isString(a)){a={title:a,message:b,buttons:this.OK,fn:d,scope:c,minWidth:this.minWidth}}return this.show(a)},progress:function(a,c,b){if(Ext.isString(a)){a={title:a,message:c,progress:!0,progressText:b}}return this.show(a)}},1,['messagebox'],['component','box','container','panel','window','messagebox'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'messagebox':!0},['widget.messagebox'],0,[Ext.window,'MessageBox'],function(a){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new a()})});Ext.cmd.derive('Ext.form.Basic',Ext.util.Observable,{alternateClassName:'Ext.form.BasicForm',taskDelay:10,constructor:function(c,d){var a=this,b;a.owner=c;a.fieldMonitors={validitychange:a.checkValidityDelay,enable:a.checkValidityDelay,disable:a.checkValidityDelay,dirtychange:a.checkDirtyDelay,errorchange:a.checkErrorDelay,scope:a};a.checkValidityTask=new Ext.util.DelayedTask(a.checkValidity,a);a.checkDirtyTask=new Ext.util.DelayedTask(a.checkDirty,a);a.checkErrorTask=new Ext.util.DelayedTask(a.checkError,a);a.monitor=new Ext.container.Monitor({selector:'[isFormField]:not([excludeForm])',scope:a,addHandler:a.onFieldAdd,removeHandler:a.onFieldRemove,invalidateHandler:a.onMonitorInvalidate});a.monitor.bind(c);Ext.apply(a,d);if(Ext.isString(a.paramOrder)){a.paramOrder=a.paramOrder.split(/[\s,|]/)}b=a.reader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.reader=Ext.createByAlias('reader.'+b.type,b)}b=a.errorReader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.errorReader=Ext.createByAlias('reader.'+b.type,b)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=!0;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:!1,waitTitle:'Please Wait...',trackResetOnLoad:!1,wasDirty:!1,destroy:function(){var a=this,b=a.monitor;if(b){b.unbind();a.monitor=null}a.clearListeners();a.checkValidityTask.cancel();a.checkDirtyTask.cancel();a.checkErrorTask.cancel();a.checkValidityTask=a.checkDirtyTask=a.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},onFieldAdd:function(a){a.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(a){a.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var a=this._boundItems;if(!a||a.getCount()===0){a=this._boundItems=new Ext.util.MixedCollection();a.addAll(this.owner.query('[formBind]'))}return a},hasInvalidField:function(){return !!this.getFields().findBy(function(a){var c=a.preventMark,b;a.preventMark=!0;b=a.isValid();a.preventMark=c;return !b})},isValid:function(){var b=this,a;Ext.suspendLayouts();a=b.getFields().filterBy(function(a){return !a.validate()});Ext.resumeLayouts(!0);return a.length<1},checkValidity:function(){var a=this,b;if(a.destroyed){return}b=!a.hasInvalidField();if(b!==a.wasValid){a.onValidityChange(b);a.fireEvent('validitychange',a,b);a.wasValid=b}},checkValidityDelay:function(){var a=this.taskDelay;if(a){this.checkValidityTask.delay(a)}else {this.checkValidity()}},checkError:function(){this.fireEvent('errorchange',this)},checkErrorDelay:function(){var a=this.taskDelay;if(a){this.checkErrorTask.delay(a)}else {this.checkError()}},onValidityChange:function(e){var d=this.getBoundItems(),b,a,f,c;if(d){b=d.items;f=b.length;for(a=0;a',' {$}="{.}"','',' role="presentation"','','>','{%this.renderContainer(out,values)%}',''],initComponent:function(){var a=this;a.initLabelable();a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.initMonitor()},onAdd:function(b){var a=this;if(b.isLabelable&&Ext.isGecko&&Ext.firefoxVersion<37&&a.layout.type==='absolute'&&!a.hideLabel&&a.labelAlign!=='top'){b.x+=a.labelWidth+a.labelPad}Ext.container.Container.prototype.onAdd.apply(this,arguments);if(b.isLabelable&&a.combineLabels){b.oldHideLabel=b.hideLabel;b.hideLabel=!0}a.updateLabel()},onRemove:function(a,c){var b=this;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!c){if(a.isLabelable&&b.combineLabels){a.hideLabel=a.oldHideLabel}b.updateLabel()}},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.containerElCls=b.containerElCls;a=Ext.applyIf(a,b.getLabelableRenderData());a.tipAnchorTarget=b.id+'-containerEl';return a},getFieldLabel:function(){var a=this.fieldLabel||'';if(!a&&this.combineLabels){a=Ext.Array.map(this.query('[isFieldLabelable]'),function(a){return a.getFieldLabel()}).join(this.labelConnector)}return a},getSubTplData:function(){var a=this.initRenderData();Ext.apply(a,this.subTplData);return a},getSubTplMarkup:function(d){var b=this,a=b.getTpl('fieldSubTpl'),c;if(!a.renderContent){b.setupRenderTpl(a)}c=a.apply(b.getSubTplData(d));return c},updateLabel:function(){var a=this,b=a.labelEl;if(b){a.setFieldLabel(a.getFieldLabel())}},onFieldErrorChange:function(){if(this.combineErrors){var a=this,d=a.getActiveError(),c=Ext.Array.filter(a.query('[isFormField]'),function(a){return a.hasActiveError()}),b=a.getCombinedErrors(c);if(b){a.setActiveErrors(b)}else {a.unsetActiveError()}if(d!==a.getActiveError()){a.updateLayout()}}},getCombinedErrors:function(f){var g=[],b,j=f.length,d,c,a,i,h,e;for(b=0;b','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','',' tabindex="{tabIdx}"',' disabled="disabled"',' style="{fieldStyle}"',' class="{checkboxCls} {clipCls}" autocomplete="off" hidefocus="true" ',' {$}="{.}"','/>','','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','','',{disableFormats:!0,compiled:!0}],publishes:{checked:1},subTplInsertions:['beforeBoxLabelTpl','afterBoxLabelTpl','beforeBoxLabelTextTpl','afterBoxLabelTextTpl','boxLabelAttrTpl','inputAttrTpl'],isCheckbox:!0,focusCls:'form-checkbox-focus',fieldBodyCls:'x-form-cb-wrap',checked:!1,checkedCls:'x-form-cb-checked',boxLabelCls:'x-form-cb-label',boxLabelAlign:'after',afterLabelCls:'x-form-cb-after',wrapInnerCls:'x-form-cb-wrap-inner',noBoxLabelCls:'x-form-cb-no-box-label',inputValue:'on',checkChangeEvents:[],inputType:'checkbox',isTextInput:!1,ariaRole:'checkbox',onRe:/^on$/i,inputCls:'x-form-cb',_checkboxCls:'x-form-cb-input',_clipCls:'x-hidden-clip',initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);a.getManager().add(a)},initDefaultName:Ext.emptyFn,initValue:function(){var a=this,b=!!a.checked;a.originalValue=a.lastValue=b;a.setValue(b)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}return Ext.form.field.Base.prototype.getElConfig.call(this)},getSubTplData:function(g){var a=this,f=a.boxLabel,e=a.boxLabelAlign,d=e==='before',c,b;c=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,g),{clipCls:a._clipCls,checkboxCls:a._checkboxCls,disabled:a.readOnly||a.disabled,wrapInnerCls:a.wrapInnerCls,boxLabel:f,boxLabelCls:a.boxLabelCls,boxLabelAlign:e,labelAlignedBefore:d,afterLabelCls:d?a.afterLabelCls:'',noBoxLabelCls:!f?a.noBoxLabelCls:'',inputName:a.name||a.id});b=c.inputElAriaAttributes;if(b){b['aria-checked']=!!a.checked;b['aria-labelledby']=a.id+'-boxLabelEl'}return c},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.inputEl.on({click:'onBoxClick',scope:a,translate:!1});a.displayEl.on({click:'onBoxClick',mousedown:'_onDisplayElMouseDown',scope:a})},setBoxLabel:function(b){var a=this;a.boxLabel=b;if(a.rendered){a.boxLabelEl.setHtml(b);a.boxLabelEl[b?'removeCls':'addCls'](a.noBoxLabelCls);a.updateLayout()}},onBoxClick:function(){var a=this;if(!a.disabled&&!a.readOnly){a.setValue(!a.checked)}},getRawValue:function(){return this.checked},getValue:function(){return this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.checked?this.inputValue:b},isChecked:function(a,b){return a===!0||a==='true'||a==='1'||a===1||((Ext.isString(a)||Ext.isNumber(a))&&b?a==b:this.onRe.test(a))},setRawValue:function(e){var a=this,d=a.inputEl,c=a.displayEl,b=a.isChecked(e,a.inputValue);if(d){a[b?'addCls':'removeCls'](a.checkedCls);if(a.ariaRole){a.ariaEl.dom.setAttribute('aria-checked',b)}}if(Ext.isIE8&&c&&b!==a.lastValue){c.repaint()}a.checked=a.rawValue=b;if(!a.duringSetValue){a.lastValue=b}return b},setValue:function(e){var a=this,c,b,f,d;if(Ext.isArray(e)){c=a.getManager().getByName(a.name,a.getFormId()).items;f=c.length;for(b=0;b style="{bodyStyle}">','{%this.renderContainer(out,values);%}',''],stateEvents:['collapse','expand'],maskOnDisable:!1,beforeDestroy:function(){var b=this,a=b.legend;if(a){delete a.ownerCt;a.destroy();b.legend=null}Ext.container.Container.prototype.beforeDestroy.call(this)},initComponent:function(){var a=this,b=a.baseCls;if(a.ariaRole&&!a.ariaLabel){a.ariaLabel=Ext.String.formatEncode(a.descriptionText,a.title||'')}a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!a.collapsed;a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.layout.managePadding=a.layout.manageOverflow=!1;if(a.collapsed){a.addCls(b+'-collapsed');a.collapse()}if(a.title||a.checkboxToggle||a.collapsible){a.addTitleClasses();a.legend=a.createLegendCt()}a.initMonitor()},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.bodyTargetCls=b.bodyTargetCls;b.protoBody.writeTo(a);delete b.protoBody;return a},getState:function(){var a=Ext.container.Container.prototype.getState.call(this);a=this.addPropertyToState(a,'collapsed');return a},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn,collapsedHorizontal:function(){return !0},collapsedVertical:function(){return !0},createLegendCt:function(){var a=this,c=[],d={baseCls:a.baseCls+'-header',layout:'container',ui:a.ui,id:a.id+'-legend',autoEl:'legend',ariaRole:null,items:c,ownerCt:a,shrinkWrap:!0,ownerLayout:a.componentLayout},b;if(a.checkboxToggle){c.push(a.createCheckboxCmp())}else {if(a.collapsible){c.push(a.createToggleCmp())}}c.push(a.createTitleCmp());b=new Ext.container.Container(d);b.collapseImmune=!0;b.getInherited().collapseImmune=!0;return b},createTitleCmp:function(){var a=this,b={html:a.title,ui:a.ui,cls:a.baseCls+'-header-text',id:a.id+'-legendTitle',ariaRole:'presentation'};if(a.collapsible&&a.toggleOnTitleClick){b.listeners={click:{element:'el',scope:a,fn:a.toggle}};b.cls+=' '+a.baseCls+'-header-text-collapsible'}a.titleCmp=new Ext.Component(b);return a.titleCmp},createCheckboxCmp:function(){var a=this,d='-checkbox',b=a.baseCls+'-header'+d,c;b+=' '+b+'-'+a.ui;a.checkboxCmp=c=new Ext.form.field.Checkbox({hideEmptyLabel:!0,name:a.checkboxName||a.id+d,cls:b,id:a.id+'-legendChk',ui:a.checkboxUI,checked:!a.collapsed,msgTarget:'none',listeners:{change:a.onCheckChange,scope:a},ariaLabel:a.expandText});return c},createToggleCmp:function(){var a=this,b;a.toggleCmp=b=new Ext.panel.Tool({cacheHeight:!1,cls:a.baseCls+'-header-tool-'+a.ui,type:'toggle',handler:a.toggle,id:a.id+'-legendToggle',scope:a,ariaRole:'checkbox',ariaLabel:a.expandText,ariaRenderAttributes:{'aria-checked':!a.collapsed}});return b},doRenderLegend:function(d,c){var e=c.$comp,a=e.legend,b;if(a){a.ownerLayout.configureItem(a);b=a.getRenderTree();Ext.DomHelper.generateMarkup(b,d)}},getCollapsed:function(){return this.collapsed?'top':!1},getCollapsedDockedItems:function(){var a=this.legend;return a?[a]:[]},setTitle:function(c){var a=this,b=a.legend;a.title=c;a.ariaLabel=Ext.String.formatEncode(a.descriptionText,c||'');if(a.rendered){if(!b){a.legend=b=a.createLegendCt();a.addTitleClasses();b.ownerLayout.configureItem(b);b.render(a.el,0)}a.titleCmp.update(c);a.ariaEl.dom.setAttribute('aria-label',a.ariaLabel)}else {if(b){a.titleCmp.update(c)}else {a.addTitleClasses();a.legend=a.createLegendCt()}}return a},addTitleClasses:function(){var a=this,c=a.title,b=a.baseCls;if(c){a.addCls(b+'-with-title')}if(c||a.checkboxToggle||a.collapsible){a.addCls(b+'-with-legend')}},expand:function(){return this.setExpanded(!0)},collapse:function(){return this.setExpanded(!1)},setExpanded:function(b){var a=this,d=a.checkboxCmp,c=a.toggleCmp,e=b?'expand':'collapse';if(!a.rendered||a.fireEvent('before'+e,a)!==!1){b=!!b;if(d){d.setValue(b)}else {if(c&&c.ariaEl.dom){c.ariaEl.dom.setAttribute('aria-checked',b)}}if(b){a.removeCls(a.baseCls+'-collapsed')}else {a.addCls(a.baseCls+'-collapsed')}if(a.ariaEl.dom){a.ariaEl.dom.setAttribute('aria-expanded',!!b)}a.collapsed=!b;if(b){delete a.getInherited().collapsed}else {a.getInherited().collapsed=!0}if(a.rendered){a.updateLayout({isRoot:!1});a.fireEvent(e,a)}}return a},getRefItems:function(c){var a=Ext.container.Container.prototype.getRefItems.apply(this,arguments),b=this.legend;if(b){a.unshift(b);if(c){a.unshift.apply(a,b.getRefItems(!0))}}return a},toggle:function(){this.setExpanded(!!this.collapsed)},privates:{applyTargetCls:function(a){this.bodyTargetCls=a},finishRender:function(){var a=this.legend;Ext.container.Container.prototype.finishRender.call(this);if(a){a.finishRender()}},getProtoBody:function(){var b=this,a=b.protoBody;if(!a){b.protoBody=a=new Ext.util.ProtoElement({styleProp:'bodyStyle',styleIsText:!0})}return a},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){return this.body||this.frameBody||this.el},initPadding:function(d){var b=this,e=b.getProtoBody(),a=b.padding,c;if(a!==undefined){if(Ext.isIE8){a=b.parseBox(a);c=Ext.Element.parseBox(0);c.top=a.top;a.top=0;e.setStyle('padding',b.unitizeBox(c))}d.setStyle('padding',b.unitizeBox(a))}},onCheckChange:function(b,a){this.setExpanded(a)},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderLegend=this.doRenderLegend}}},0,['fieldset'],['component','box','container','fieldset'],{'component':!0,'box':!0,'container':!0,'fieldset':!0},['widget.fieldset'],[['fieldAncestor',Ext.form.FieldAncestor]],[Ext.form,'FieldSet'],0);Ext.cmd.derive('Ext.form.Label',Ext.Component,{autoEl:'label',maskOnDisable:!1,getElConfig:function(){var a=this;a.html=a.text?Ext.util.Format.htmlEncode(a.text):a.html||'';return Ext.apply(Ext.Component.prototype.getElConfig.call(this),{htmlFor:a.forId||''})},setText:function(c,b){var a=this;b=b!==!1;if(b){a.text=c;delete a.html}else {a.html=c;delete a.text}if(a.rendered){a.el.dom.innerHTML=b!==!1?Ext.util.Format.htmlEncode(c):c;a.updateLayout()}return a}},0,['label'],['component','box','label'],{'component':!0,'box':!0,'label':!0},['widget.label'],0,[Ext.form,'Label'],0);Ext.cmd.derive('Ext.form.Panel',Ext.panel.Panel,{alternateClassName:['Ext.FormPanel','Ext.form.FormPanel'],layout:'anchor',bodyAriaRole:'form',basicFormConfigs:['api','baseParams','errorReader','jsonSubmit','method','paramOrder','paramsAsHash','reader','standardSubmit','timeout','trackResetOnLoad','url','waitMsgTarget','waitTitle'],initComponent:function(){var a=this;if(a.frame){a.border=!1}a.initFieldAncestor();Ext.panel.Panel.prototype.initComponent.call(this);a.relayEvents(a.form,['beforeaction','actionfailed','actioncomplete','validitychange','dirtychange']);if(a.pollForChanges){a.startPolling(a.pollInterval||500)}},initItems:function(){Ext.panel.Panel.prototype.initItems.call(this);this.initMonitor();this.form=this.createForm()},afterFirstLayout:function(){Ext.panel.Panel.prototype.afterFirstLayout.apply(this,arguments);this.form.initialize()},createForm:function(){var d={},c=this.basicFormConfigs,e=c.length,b=0,a;for(;b150){delete a.lastDownArrow}if(!a.isExpanded){b.stopEvent();a.onTriggerClick();a.lastDownArrow=b.time}else {if(!b.isStopped&&b.time-a.lastDownArrow<150){delete a.lastDownArrow}}},expand:function(){var a=this,d,c,b,e;if(a.rendered&&!a.isExpanded&&!a.destroyed){d=a.bodyEl;b=a.getPicker();e=Ext.getDoc();b.setMaxHeight(b.initialConfig.maxHeight);if(a.matchFieldWidth){b.setWidth(a.bodyEl.getWidth())}b.show();a.isExpanded=!0;a.alignPicker();d.addCls(a.openCls);if(a.ariaRole){c=a.ariaEl.dom;c.setAttribute('aria-owns',b.listEl?b.listEl.id:b.el.id);c.setAttribute('aria-expanded',!0)}a.touchListeners=e.on({translate:!1,touchstart:a.collapseIf,scope:a,delegated:!1,destroyable:!0});a.scrollListeners=Ext.on({scroll:a.onGlobalScroll,scope:a,destroyable:!0});Ext.on('resize',a.alignPicker,a,{buffer:1});a.fireEvent('expand',a);a.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){if(!this.destroyed){var a=this.getPicker();if(a.isVisible()&&a.isFloating()){this.doAlign()}}},doAlign:function(){var a=this,c=a.picker,d='-above',b;a.picker.alignTo(a.triggerWrap,a.pickerAlign,a.pickerOffset);b=c.el.getY()=g){a.deselectRange(j,g-1)}else {if(h!==c){a.selectRange(h,c,f)}}}a.lastSelected=c}else {if(e){if(!f){a.doSelect(c,!1)}}else {a.selectWithEvent(c,b)}}}};break;case 'SIMPLE':if(e===b.A&&f){a.selected.beginUpdate();a.selectRange(0,a.store.getCount()-1);a.selected.endUpdate()}else {if(k){a.doDeselect(c)}else {a.doSelect(c,!0)}};break;case 'SINGLE':if(!f){if(i){a.doSelect(c,!1)}else {if(m||!e){a.selectWithEvent(c,b)}}};}if(!b.shiftKey&&!a.destroyed&&a.isSelected(c)){a.selectionStart=c;a.selectionStartIdx=g}},selectRange:function(d,f,m){var b=this,i=b.store,l=b.selected.items,h,a,g,e,c,j,k;if(b.isLocked()){return}h=b.normalizeRowRange(d,f);d=h[0];f=h[1];e=[];for(a=d;a<=f;a++){if(!b.isSelected(i.getAt(a))){e.push(i.getAt(a))}}if(!m){c=[];b.suspendChanges();for(a=0,g=l.length;af){c.push(k)}}for(a=0,g=c.length;a0)}}}},deselectRange:function(d,e){var a=this,h=a.store,g,c,b,f;if(a.isLocked()){return}g=a.normalizeRowRange(d,e);d=g[0];e=g[1];b=[];for(c=d;c<=e;c++){f=h.getAt(c);if(a.isSelected(f)){b.push(f)}}if(b.length){a.doDeselect(b)}},normalizeRowRange:function(a,b){var c=this.store,d;if(!Ext.isNumber(a)){a=c.indexOf(a)}a=Math.max(0,a);if(!Ext.isNumber(b)){b=c.indexOf(b)}b=Math.min(b,c.getCount()-1);if(a>b){d=b;b=a;a=d}return [a,b]},select:function(a,c,b){if(Ext.isDefined(a)&&!(Ext.isArray(a)&&!a.length)){this.doSelect(a,c,b)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(a,e,d){var b=this,c;if(b.locked||a==null){return}if(typeof a==='number'){c=b.store.getAt(a);if(!c){return}a=[c]}if(b.selectionMode==='SINGLE'){if(a.isModel){a=[a]}if(a.length){b.doSingleSelect(a[0],d)}}else {b.doMultiSelect(a,e,d)}},doMultiSelect:function(b,k,d){var a=this,g=a.selected,h=!1,e,f,j,c,i;if(a.locked){return}b=!Ext.isArray(b)?[b]:b;j=b.length;if(!k&&g.getCount()>0){e=a.deselectDuringSelect(b,d);if(a.destroyed){return}if(e[0]){a.maybeFireSelectionChange(e[1]>0&&!d);return}else {h=e[1]>0}}i=function(){if(!g.getCount()){a.selectionStart=c}g.add(c);h=!0};for(f=0;f0&&!f);return d===g},doSingleSelect:function(b,c){var a=this,e=!1,d=a.selected,f;if(a.locked){return}if(a.isSelected(b)){return}f=function(){if(d.getCount()){a.suspendChanges();var f=a.deselectDuringSelect([b],c);if(a.destroyed){return}a.resumeChanges();if(f[0]){return !1}}a.lastSelected=b;if(!d.getCount()){a.selectionStart=b}d.add(b);e=!0};a.onSelectChange(b,!0,c,f);if(e&&!a.destroyed){a.maybeFireSelectionChange(!c)}},maybeFireSelectionChange:function(b){var a=this;if(b&&!a.suspendChange){a.fireEvent('selectionchange',a,a.getSelection())}},getLastSelected:function(){return this.lastSelected},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(a){a=a?a.toUpperCase():'SINGLE';this.selectionMode=this.modes[a]?a:'SINGLE'},isLocked:function(){return this.locked},setLocked:function(a){this.locked=!!a},isRangeSelected:function(b,c){var e=this,f=e.store,a,d;d=e.normalizeRowRange(b,c);b=d[0];c=d[1];for(a=b;a<=c;a++){if(!e.isSelected(f.getAt(a))){return !1}}return !0},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected.contains(a)},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var a=this,l=a.store,e=[],c=[],k=a.getSelection(),m=k.length,b=a.getSelected(),h,j,d,g,i,f;if(!l||!(b.isCollection||b.isRows)||!b.getCount()){return}d=l.getData();if(d.getSource){j=d.getSource();if(j){d=j}}a.refreshing=!0;b.beginUpdate();a.suspendChanges();for(f=0;f0);if(i){a.fireEvent('lastselectedchanged',a,a.getSelection(),a.lastSelected)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(d,e,b,f){var a=this,c=e?'select':'deselect';if((b||a.fireEvent('before'+c,a,d))!==!1&&f()!==!1){if(!b){a.fireEvent(c,a,d)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(a){var c=this.view,b;if(c){b=c.resolveSatelliteListenerScope(this,a)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,a)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,selectWithEventMulti:function(b,l,e){var a=this,g=l.shiftKey,c=l.ctrlKey,j=g?a.getSelectionStart():null,i=a.getSelection(),k=i.length,f,d,h;if(g&&j){a.selectRange(j,b,c)}else {if(c&&e){if(a.allowDeselect){a.doDeselect(b,!1)}}else {if(c){a.doSelect(b,!0,!1)}else {if(e&&!g&&!c&&k>1){if(a.allowDeselect){f=[];for(d=0;dthis.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyRight:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyLeft:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(a){this.setPosition(0,a)},onKeyEnd:function(a){this.setPosition(this.view.all.getCount()-1,a)},onKeySpace:function(a){this.fireNavigateEvent(a)},onKeyEnter:function(a){a.stopEvent();a.view.fireEvent('itemclick',a.view,a.record,a.item,a.recordIndex,a)},onSelectAllKeyPress:function(a){this.fireNavigateEvent(a)},fireNavigateEvent:function(b){var a=this;a.fireEvent('navigate',{navigationModel:a,keyEvent:b,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,recordIndex:a.recordIndex,record:a.record,item:a.item})},destroy:function(){var a=this;a.setStore(null);Ext.destroy(a.viewListeners,a.keyNav);a.keyNav=a.viewListeners=a.dataSource=a.lastFocused=null;a.callParent()}},1,0,0,0,['view.navigation.default'],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,'NavigationModel'],0);Ext.cmd.derive('Ext.view.AbstractView',Ext.Component,{inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},defaultBindProperty:'store',renderBuffer:document.createElement('div'),statics:{updateDelay:200,queueRecordChange:function(n,o,d,m,f){var a=this,g=a.changeQueue||(a.changeQueue={}),i=d.internalId,h,b,l,e,c,j,k;h=g[i]||(g[i]={operation:m,record:d,data:{},views:[]});b=h.data;Ext.Array.include(h.views,n);if(f&&(l=f.length)){for(e=0;e
    {1}
    ',a.itemCls,b,a.itemAriaRole);a.tpl=new Ext.XTemplate(b,c)}Ext.Component.prototype.initComponent.call(this);a.tpl=a.getTpl('tpl');if(a.overItemCls){a.trackOver=!0}a.addCmpEvents();d=a.store=Ext.data.StoreManager.lookup(a.store||'ext-empty-store');if(!a.dataSource){a.dataSource=d}a.bindStore(d,!0);a.getNavigationModel().bindComponent(this);if(!a.all){a.all=new Ext.CompositeElementLite()}a.scrollState={top:0,left:0};a.savedTabIndexAttribute='data-savedtabindex-'+a.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(){var a=this.loadMask;Ext.Component.prototype.onRender.apply(this,arguments);if(a){this.createMask(a)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.apply(this,arguments);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refresh()}else {a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var a=this,b=a.loadingHeight;if(b&&b>a.getHeight()){a.hasLoadingHeight=!0;a.oldMinHeight=a.minHeight;a.minHeight=b;a.updateLayout()}},onMaskHide:function(){var a=this;if(!a.destroying&&a.hasLoadingHeight){a.minHeight=a.oldMinHeight;a.updateLayout();delete a.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.apply(this,arguments);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.apply(this,arguments);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var a=this.loadMask,b=[];if(a&&a.isComponent){b.push(a)}return b},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},applySelectionModel:function(b,e){var a=this,g=a.grid,c,f,d;if(e){e.un({scope:a,selectionchange:a.updateBindSelection,lastselectedchanged:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});Ext.destroy(a.selModelRelayer);b=Ext.Factory.selection(b)}else {if(b&&b.isSelectionModel){b.locked=a.disableSelection}else {if(a.simpleSelect){c='SIMPLE'}else {if(a.multiSelect){c='MULTI'}else {c='SINGLE'}}if(typeof b==='string'){b={type:b}}b=Ext.Factory.selection(Ext.apply({allowDeselect:a.allowDeselect||a.multiSelect,mode:c,locked:a.disableSelection},b))}}if(b.mode!=='SINGLE'){d=(g||a).ariaEl.dom;if(d){d.setAttribute('aria-multiselectable',!0)}else {if(!g){f=a.ariaRenderAttributes||(a.ariaRenderAttributes={});f['aria-multiselectable']=!0}}}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});return b},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(d){var a=this,b=a.getNavigationModel(),c;a.toggleChildrenTabbability(!1);if(!a.itemFocused&&a.all.getCount()){c=b.getLastFocused();b.setPosition(c||0,d.event,null,!c);a.itemFocused=b.getPosition()!=null}if(a.itemFocused){this.el.dom.setAttribute('tabIndex','-1')}Ext.Component.prototype.onFocusEnter.call(this,d)},onFocusLeave:function(b){var a=this;if(a.itemFocused&&!a.refreshing){a.getNavigationModel().setPosition(null,b.event,null,!0);a.itemFocused=!1;a.el.dom.setAttribute('tabIndex',0)}Ext.Component.prototype.onFocusLeave.call(this,b)},ariaSelect:function(c,b){var a=this.getNode(b);if(a){a.setAttribute('aria-selected',!0)}},ariaDeselect:function(c,b){var a=this.getNode(b);if(a){a.removeAttribute('aria-selected')}},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);if(!a){this.onFocusLeave({})}},refresh:function(){var a=this,c=a.all,i=c.getCount(),g=a.refreshCounter,e,k,f,j=a.getSelectionModel(),h,d=g&&c.getCount()&&a.preserveScrollOnRefresh&&a.getScrollable(),b;if(!a.rendered||a.destroyed){return}if(!a.hasListeners.beforerefresh||a.fireEvent('beforerefresh',a)!==!1){a.refreshing=!0;h=a.saveFocusState();e=a.getTargetEl();f=a.getViewRange();k=e.dom;if(d){b=d.getPosition();if(!(b.x||b.y)){b=null}}if(g){a.clearViewEl();a.refreshCounter++}else {a.refreshCounter=1}a.tpl.append(e,a.collectData(f,c.startIndex||0));if(f.length<1){a.addEmptyText();c.clear()}else {a.collectNodes(e.dom);a.updateIndexes(0)}h();if(a.refreshSelmodelOnRefresh!==!1){j.refresh()}a.refreshNeeded=!1;a.refreshSize(c.getCount()!==i);a.fireEvent('refresh',a,f);if(d){d.scrollTo(b)}if(!a.viewReady){a.viewReady=!0;a.fireEvent('viewready',a)}a.refreshing=!1;a.refreshScroll();a.cleanupData()}},addEmptyText:function(){var a=this,b=a.getStore();if(a.emptyText&&!b.isLoading()&&(!a.deferEmptyText||a.refreshCounter>1||b.isLoaded())){a.emptyEl=Ext.core.DomHelper.insertHtml('beforeEnd',a.getTargetEl().dom,a.emptyText)}},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(d){var a=this,b=a.getSizeModel(),c=a.getScrollable();if(b.height.shrinkWrap||b.width.shrinkWrap||d){a.updateLayout()}else {if(a.touchScroll&&!a.bufferedRenderer){if(c){c.refresh()}else {a.on({boxready:a.refreshScroll,scope:a,single:!0})}}}},afterFirstLayout:function(d,c){var a=this,b=a.getScrollable();if(b){b.on({scroll:a.onViewScroll,scrollend:a.onViewScrollEnd,scope:a,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,d,c)},clearViewEl:function(){var a=this,c=a.getTargetEl(),b=a.getNodeContainer()===c;a.clearEmptyEl();a.all.clear(!b);if(b){c.dom.innerHTML=''}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(c,a,b){this.fireEvent('scroll',this,a,b)},onViewScrollEnd:function(c,a,b){this.fireEvent('scrollend',this,a,b)},saveScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){b.left=a.getScrollX();b.top=a.getScrollY()}},restoreScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){a.setScrollX(b.left);a.setScrollY(b.top)}},prepareData:function(c,f,e){var a,b,d;if(e){a=e.getAssociatedData();for(b in a){if(a.hasOwnProperty(b)){if(!d){c=Ext.Object.chain(c);d=!0}c[b]=a[b]}}}return c},collectData:function(c,e){var d=[],a=0,f=c.length,b;for(;a-1){if(a.getNode(b)){d=a.bufferRender([b],c).children[0];a.all.replaceElement(c,d,!0);a.updateIndexes(c,c);e.onUpdate(b);a.refreshSizePending=!0;if(e.isSelected(b)){a.onItemSelect(b)}if(a.hasListeners.itemupdate){a.fireEvent('itemupdate',b,c,d)}return d}}}},onReplace:function(o,b,e,d){var a=this,c=a.all,n=a.getSelectionModel(),j=b,h,m,g,f,l,k,i;if(a.rendered){h=a.bufferRender(d,b,!0);g=h.fragment;f=h.children;m=c.item(b);if(m){c.item(b).insertSibling(g,'before',!0)}else {a.appendNodes(g)}c.insert(b,f);if(e.length){i=a.saveFocusState()}b+=d.length;k=b+e.length-1;l=c.removeRange(b,k,!0);if(a.refreshSelmodelOnRefresh!==!1){n.refresh()}a.updateIndexes(b);if(a.hasListeners.itemremove){a.fireEvent('itemremove',e,j,l,a)}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,j,f)}i();a.refreshSize()}},onAdd:function(f,d,b){var a=this,c,e=a.getSelectionModel();if(a.rendered){if(a.all.getCount()===0){a.refresh();c=a.all.slice()}else {c=a.doAdd(d,b);if(a.refreshSelmodelOnRefresh!==!1){e.refresh()}a.updateIndexes(b);a.refreshSizePending=!0}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,b,c)}}},appendNodes:function(a){var b=this.all,c=b.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(a)}else {b.item(c-1).insertSibling(a,'after')}},doAdd:function(j,b){var d=this,g=d.bufferRender(j,b,!0),f=g.fragment,c=g.children,a=d.all,h=a.getCount(),e=a.startIndex||0,i=a.endIndex||h-1;if(h===0||b>i){d.appendNodes(f)}else {if(b<=e){a.item(e).insertSibling(f,'before',!0)}else {a.item(b).insertSibling(c,'before',!0)}}a.insert(b,c);return c},onRemove:function(l,d,b){var a=this,i=a.all,g=a.hasListeners.itemremove,e,c,k,f,h,j;if(i.getCount()){if(a.dataSource.getCount()===0){if(g){a.fireEvent('itemremove',d,b,a.getNodes(b,b+d.length-1))}a.refresh()}else {j=a.saveFocusState();if(g){f=[]}for(c=d.length-1;c>=0;--c){k=d[c];e=b+c;if(f){h=i.item(e);f[c]=h?h.dom:undefined}if(i.item(e)){a.doRemove(k,e)}}if(g){a.fireEvent('itemremove',d,b,f,a)}j();a.updateIndexes(b)}a.refreshSizePending=!0}},doRemove:function(b,a){this.all.removeElement(a,!0)},saveFocusState:function(){var a=this,e=a.dataSource||a.store,c=a.getNavigationModel(),b=c.recordIndex,d=c.record;if(a.el.contains(Ext.Element.getActiveElement())){a.el.dom.focus();return function(){if(e.getCount()){b=Math.min(b,a.all.getCount()-1);c.setPosition(e.contains(d)?d:b,null,null,!0)}}}return Ext.emptyFn},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(d,b){var e=this.all.elements,c,f=this.getViewRange(),a,g=this.id;d=d||0;b=b||(b===0?0:e.length-1);for(a=d;a<=b;a++){c=e[a];c.setAttribute('data-recordIndex',a);c.setAttribute('data-recordId',f[a].internalId);c.setAttribute('data-boundView',g)}},bindStore:function(b,e){var a=this,c=a.getSelectionModel(),d=a.getNavigationModel();c.bindStore(b);c.bindComponent(b?a:null);a.mixins.storeholder.bindStore.apply(a,arguments);d.setStore(b);if(b&&a.componentLayoutCounter){a.doFirstRefresh(b,!e)}},doFirstRefresh:function(b,c){var a=this;if(a.deferInitialRefresh&&!c){Ext.defer(a.doFirstRefresh,1,a,[b,!0])}else {if(b&&!b.isLoading()){a.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(c,b){var a=this;if(a.store.isBufferedStore){a.store.preserveScrollOnReload=a.preserveScrollOnReload}if(b&&b.isBufferedStore){delete b.preserveScrollOnReload}a.setMaskBind(c);if(!a.dataSource){a.dataSource=c}},setMaskBind:function(b){var a=this.loadMask;if(this.rendered&&a&&b&&!a.bindStore){a=this.createMask()}if(a&&a.bindStore){a.bindStore(b)}},getStoreListeners:function(){var a=this;return {refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var a=this;if(a.updateSuspendCounter){--a.updateSuspendCounter}Ext.resumeLayouts(!0);if(a.refreshSizePending){a.refreshSize(!0);a.refreshSizePending=!1}},onDataRefresh:function(b){var a=this,c=a.preserveScrollOnRefresh;if(b.loadCount>a.lastRefreshLoadCount){a.preserveScrollOnRefresh=a.preserveScrollOnReLoad}a.refreshView();a.preserveScrollOnRefresh=c;a.lastRefreshLoadCount=b.loadCount},refreshView:function(){var a=this,b=a.blockRefresh||!a.rendered||a.up('[collapsed],[isCollapsingOrExpanding],[hidden]');if(b){a.refreshNeeded=!0}else {if(a.bufferedRenderer){a.bufferedRenderer.refreshView()}else {a.refresh()}}},findItemByChild:function(a){return Ext.fly(a).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(a){return a.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var c=[],b=this.getSelectionModel().getSelection(),d=b.length,a=0;for(;aa.bottom){d=b.bottom-a.bottom}}if(b.lefta.right){c=b.right-a.right}}if(c||d){g.scrollBy(c,d,!1)}e.set({tabIndex:-1});e.focus()}},privates:{repaintBorder:function(b){var a=this.getNode(b);if(a){a.className=a.className}}}},0,['dataview'],['component','box','dataview'],{'component':!0,'box':!0,'dataview':!0},['widget.dataview'],0,[Ext.view,'View',Ext,'DataView'],0);Ext.cmd.derive('Ext.view.BoundListKeyNav',Ext.view.NavigationModel,{navigateOnSpace:!0,initKeyNav:function(c){var a=this,b=c.pickerField;if(!a.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,c);a.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:a.onKeyEsc,scope:a})}if(!b){return}if(!b.rendered){b.on('render',Ext.Function.bind(a.initKeyNav,a,[c],0),a,{single:!0});return}a.fieldKeyNav=new Ext.util.KeyNav({disabled:!0,target:b.inputEl,forceKeyDown:!0,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,tab:a.onKeyTab,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1001,scope:a})},processViewEvent:function(b,c,e,d,a){if(a.within(b.listWrap)){return a}if(a.getKey()===a.ESC){if(Ext.fly(a.target).isInputField()){a.target=a.target.parentNode}return a}},enable:function(){this.fieldKeyNav.enable();Ext.view.NavigationModel.prototype.enable.call(this)},disable:function(){this.fieldKeyNav.disable();Ext.view.NavigationModel.prototype.disable.call(this)},onItemMouseDown:function(e,b,d,c,a){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,e,b,d,c,a);a.preventDefault()},onKeyUp:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b>0?b-1:f.getCount()-1;d.setPosition(e);g.preventDefault()},onKeyDown:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b
    ',destroy:function(){var a=this;if(a.spinnerEl){a.spinnerEl.destroy();a.spinnerEl=a.upEl=a.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var a=this;return {vertical:a.vertical,upDisabledCls:a.upEnabled?'':a.spinnerUpCls+'-disabled',downDisabledCls:a.downEnabled?'':a.spinnerDownCls+'-disabled',spinnerCls:a.spinnerCls,spinnerUpCls:a.spinnerUpCls,spinnerDownCls:a.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var a=this,d=arguments,c=a.clickRepeater?d[1]:d[0],b=a.field;if(!b.readOnly&&!b.disabled){if(a.upEl.contains(c.target)){Ext.callback(a.upHandler,a.scope,[b,a,c],0,b)}else {if(a.downEl.contains(c.target)){Ext.callback(a.downHandler,a.scope,[b,a,c],0,b)}}}b.inputEl.focus()},onFieldRender:function(){var a=this,d=a.vertical,c,b;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);c=a.spinnerEl=a.el.select('.'+a.spinnerCls,!0);b=c.elements;a.upEl=d?b[0]:b[1];a.downEl=d?b[1]:b[0]},setUpEnabled:function(a){this.upEl[a?'removeCls':'addCls'](this.spinnerUpCls+'-disabled')},setDownEnabled:function(a){this.downEl[a?'removeCls':'addCls'](this.spinnerDownCls+'-disabled')}},0,0,0,0,['trigger.spinner'],0,[Ext.form.trigger,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Spinner',Ext.form.field.Text,{alternateClassName:'Ext.form.Spinner',config:{triggers:{spinner:{type:'spinner',upHandler:'onSpinnerUpClick',downHandler:'onSpinnerDownClick',scope:'this'}}},spinUpEnabled:!0,spinDownEnabled:!0,keyNavEnabled:!0,mouseWheelEnabled:!0,repeatTriggerClick:!0,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:'spinbutton',applyTriggers:function(b){var c=this,a=b.spinner;a.upEnabled=c.spinUpEnabled;a.downEnabled=c.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},onRender:function(){var a=this,b=a.getTrigger('spinner');(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(a.keyNavEnabled){a.spinnerKeyNav=new Ext.util.KeyNav(a.inputEl,{scope:a,up:a.spinUp,down:a.spinDown})}if(a.mouseWheelEnabled){a.mon(a.bodyEl,'mousewheel',a.onMouseWheel,a)}a.spinUpEl=b.upEl;a.spinDownEl=b.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var a=this;if(a.spinUpEnabled&&!a.disabled){a.fireEvent('spin',a,'up');a.fireEvent('spinup',a);a.onSpinUp()}},spinDown:function(){var a=this;if(a.spinDownEnabled&&!a.disabled){a.fireEvent('spin',a,'down');a.fireEvent('spindown',a);a.onSpinDown()}},setSpinUpEnabled:function(b){var a=this,c=a.spinUpEnabled;a.spinUpEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setUpEnabled(b)}},setSpinDownEnabled:function(b){var a=this,c=a.spinDownEnabled;a.spinDownEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setDownEnabled(b)}},onMouseWheel:function(c){var b=this,a;if(b.hasFocus){a=c.getWheelDelta();if(a>0){b.spinUp()}else {if(a<0){b.spinDown()}}c.stopEvent()}},onDestroy:function(){Ext.destroyMembers(this,'spinnerKeyNav');Ext.form.field.Text.prototype.onDestroy.call(this)}},0,['spinnerfield'],['component','box','field','textfield','spinnerfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0},['widget.spinnerfield'],0,[Ext.form.field,'Spinner',Ext.form,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Number',Ext.form.field.Spinner,{alternateClassName:['Ext.form.NumberField','Ext.form.Number'],allowExponential:!0,allowDecimals:!0,decimalSeparator:null,submitLocaleSeparator:!0,decimalPrecision:2,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,step:1,minText:'The minimum value for this field is {0}',maxText:'The maximum value for this field is {0}',nanText:'{0} is not a valid number',negativeText:'The value cannot be negative',baseChars:'0123456789',autoStripChars:!1,initComponent:function(){var a=this;if(a.decimalSeparator===null){a.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);a.setMinValue(a.minValue);a.setMaxValue(a.maxValue)},getSubTplData:function(g){var f=this,e=f.minValue,d=f.maxValue,c,a,b;c=Ext.form.field.Spinner.prototype.getSubTplData.call(this,g);a=c.inputElAriaAttributes;if(a){if(e>Number.NEGATIVE_INFINITY){a['aria-valuemin']=e}if(d=e&&b<=d){a['aria-valuenow']=b}}return c},setValue:function(d){var a=this,c,b;if(a.hasFocus){c=a.getBind();b=c&&c.value;if(b&&b.syncing&&d===a.value){return a}}return Ext.form.field.Spinner.prototype.setValue.call(this,d)},getErrors:function(b){b=arguments.length>0?b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Spinner.prototype.getErrors.call(this,b),e=Ext.String.format,d;if(b.length<1){return c}b=String(b).replace(a.decimalSeparator,'.');if(isNaN(b)){c.push(e(a.nanText,b))}d=a.parseValue(b);if(a.minValue===0&&d<0){c.push(this.negativeText)}else {if(da.maxValue){c.push(e(a.maxText,a.maxValue))}return c},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(a){var b=this,c=b.decimalSeparator;a=b.parseValue(a);a=b.fixPrecision(a);a=Ext.isNumber(a)?a:parseFloat(String(a).replace(c,'.'));a=isNaN(a)?'':String(a).replace('.',c);return a},getSubmitValue:function(){var b=this,a=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!b.submitLocaleSeparator){a=a.replace(b.decimalSeparator,'.')}return a},onChange:function(a){var b=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(b){if(Ext.isNumber(a)&&isFinite(a)){b.setAttribute('aria-valuenow',a)}else {b.removeAttribute('aria-valuenow')}}},toggleSpinners:function(){var a=this,c=a.getValue(),d=c===null,b;if(a.spinUpEnabled||a.spinUpDisabledByToggle){b=d||ca.minValue;a.setSpinDownEnabled(b,!0)}},setMinValue:function(e){var a=this,c=a.ariaEl.dom,d,b,c;a.minValue=d=Ext.Number.from(e,Number.NEGATIVE_INFINITY);a.toggleSpinners();if(c){if(d>Number.NEGATIVE_INFINITY){c.setAttribute('aria-valuemin',d)}else {c.removeAttribute('aria-valuemin')}}if(a.disableKeyFilter!==!0){b=a.baseChars+'';if(a.allowExponential){b+=a.decimalSeparator+'e+-'}else {if(a.allowDecimals){b+=a.decimalSeparator}if(a.minValue<0){b+='-'}}b=Ext.String.escapeRegex(b);a.maskRe=new RegExp('['+b+']');if(a.autoStripChars){a.stripCharsRe=new RegExp('[^'+b+']','gi')}}},setMaxValue:function(c){var b=this.ariaEl.dom,a;this.maxValue=a=Ext.Number.from(c,Number.MAX_VALUE);if(b){if(aa.maxLength){return}}a.setValue(b)}},0,['numberfield'],['component','box','field','textfield','spinnerfield','numberfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0,'numberfield':!0},['widget.numberfield'],0,[Ext.form.field,'Number',Ext.form,'NumberField',Ext.form,'Number'],0);Ext.cmd.derive('Ext.toolbar.Paging',Ext.toolbar.Toolbar,{alternateClassName:'Ext.PagingToolbar',displayInfo:!1,prependButtons:!1,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display',beforePageText:'Page',afterPageText:'of {0}',firstText:'First Page',prevText:'Previous Page',nextText:'Next Page',lastText:'Last Page',refreshText:'Refresh',inputItemWidth:30,emptyPageData:{total:0,currentPage:0,pageCount:0,toRecord:0,fromRecord:0},defaultBindProperty:'store',getPagingItems:function(){var a=this,b={scope:a,blur:a.onPagingBlur};b[Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress']=a.onPagingKeyDown;return [{itemId:'first',tooltip:a.firstText,overflowText:a.firstText,iconCls:'x-tbar-page-first',disabled:!0,handler:a.moveFirst,scope:a},{itemId:'prev',tooltip:a.prevText,overflowText:a.prevText,iconCls:'x-tbar-page-prev',disabled:!0,handler:a.movePrevious,scope:a},'-',a.beforePageText,{xtype:'numberfield',itemId:'inputItem',name:'inputItem',cls:'x-tbar-page-number',allowDecimals:!1,minValue:1,hideTrigger:!0,enableKeyEvents:!0,keyNavEnabled:!1,selectOnFocus:!0,submitValue:!1,isFormField:!1,width:a.inputItemWidth,margin:'-1 2 3 2',listeners:b},{xtype:'tbtext',itemId:'afterTextItem',html:Ext.String.format(a.afterPageText,1)},'-',{itemId:'next',tooltip:a.nextText,overflowText:a.nextText,iconCls:'x-tbar-page-next',disabled:!0,handler:a.moveNext,scope:a},{itemId:'last',tooltip:a.lastText,overflowText:a.lastText,iconCls:'x-tbar-page-last',disabled:!0,handler:a.moveLast,scope:a},'-',{itemId:'refresh',tooltip:a.refreshText,overflowText:a.refreshText,iconCls:'x-tbar-loading',disabled:a.store.isLoading(),handler:a.doRefresh,scope:a}]},initComponent:function(){var a=this,c=a.items||a.buttons||[],b;a.bindStore(a.store||'ext-empty-store',!0);b=a.getPagingItems();if(a.prependButtons){a.items=c.concat(b)}else {a.items=b.concat(c)}delete a.buttons;if(a.displayInfo){a.items.push('->');a.items.push({xtype:'tbtext',itemId:'displayItem'})}Ext.toolbar.Toolbar.prototype.initComponent.call(this)},beforeRender:function(){Ext.toolbar.Toolbar.prototype.beforeRender.apply(this,arguments);this.updateBarInfo()},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=!0;a.onLoad();a.calledInternal=!1}},updateInfo:function(){var a=this,d=a.child('#displayItem'),f=a.store,b=a.getPageData(),e,c;if(d){e=f.getCount();if(e===0){c=a.emptyMsg}else {c=Ext.String.format(a.displayMsg,b.fromRecord,b.toRecord,b.total)}d.setText(c)}},onLoad:function(){var a=this,f,c,b,g,h,d,e;h=a.store.getCount();d=h===0;if(!d){f=a.getPageData();c=f.currentPage;b=f.pageCount;if(c>b){if(b>0){a.store.loadPage(b)}else {a.getInputItem().reset()}return}g=Ext.String.format(a.afterPageText,isNaN(b)?1:b)}else {c=0;b=0;g=Ext.String.format(a.afterPageText,0)}Ext.suspendLayouts();e=a.child('#afterTextItem');if(e){e.update(g)}e=a.getInputItem();if(e){e.setDisabled(d).setValue(c)}a.setChildDisabled('#first',c===1||d);a.setChildDisabled('#prev',c===1||d);a.setChildDisabled('#next',c===b||d);a.setChildDisabled('#last',c===b||d);a.setChildDisabled('#refresh',!1);a.updateInfo();Ext.resumeLayouts(!0);if(!a.calledInternal){a.fireEvent('change',a,f||a.emptyPageData)}},setChildDisabled:function(c,b){var a=this.child(c);if(a){a.setDisabled(b)}},getPageData:function(){var a=this.store,b=a.getTotalCount();return {total:b,currentPage:a.currentPage,pageCount:Math.ceil(b/a.pageSize),fromRecord:(a.currentPage-1)*a.pageSize+1,toRecord:Math.min(a.currentPage*a.pageSize,b)}},onLoadError:function(){this.setChildDisabled('#refresh',!1)},getInputItem:function(){return this.child('#inputItem')},readPageFromInput:function(d){var a=this.getInputItem(),b=!1,c;if(a){c=a.getValue();b=parseInt(c,10);if(!c||isNaN(b)){a.setValue(d.currentPage);return !1}}return b},onPagingBlur:function(c){var a=this.getInputItem(),b;if(a){b=this.getPageData().currentPage;a.setValue(b)}},onPagingKeyDown:function(a,b){this.processKeyEvent(a,b)},processKeyEvent:function(g,b){var e=this,c=b.getKey(),d=e.getPageData(),f=b.shiftKey?10:1,a;if(c===b.RETURN){b.stopEvent();a=e.readPageFromInput(d);if(a!==!1){a=Math.min(Math.max(1,a),d.pageCount);if(a!==d.currentPage&&e.fireEvent('beforechange',e,a)!==!1){e.store.loadPage(a)}}}else {if(c===b.HOME||c===b.END){b.stopEvent();a=c===b.HOME?1:d.pageCount;g.setValue(a)}else {if(c===b.UP||c===b.PAGE_UP||c===b.DOWN||c===b.PAGE_DOWN){b.stopEvent();a=e.readPageFromInput(d);if(a){if(c===b.DOWN||c===b.PAGE_DOWN){f*=-1}a+=f;if(a>=1&&a<=d.pageCount){g.setValue(a)}}}}}},beforeLoad:function(){this.setChildDisabled('#refresh',!0)},moveFirst:function(){if(this.fireEvent('beforechange',this,1)!==!1){this.store.loadPage(1);return !0}return !1},movePrevious:function(){var a=this,b=a.store,c=b.currentPage-1;if(c>0){if(a.fireEvent('beforechange',a,c)!==!1){b.previousPage();return !0}}return !1},moveNext:function(){var a=this,b=a.store,d=a.getPageData().pageCount,c=b.currentPage+1;if(c<=d){if(a.fireEvent('beforechange',a,c)!==!1){b.nextPage();return !0}}return !1},moveLast:function(){var a=this,b=a.getPageData().pageCount;if(a.fireEvent('beforechange',a,b)!==!1){a.store.loadPage(b);return !0}return !1},doRefresh:function(){var a=this,c=a.store,b=c.currentPage;if(a.fireEvent('beforechange',a,b)!==!1){c.loadPage(b);return !0}return !1},getStoreListeners:function(){return {beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},onDestroy:function(){this.bindStore(null);Ext.toolbar.Toolbar.prototype.onDestroy.call(this)}},0,['pagingtoolbar'],['component','box','container','toolbar','pagingtoolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'pagingtoolbar':!0},['widget.pagingtoolbar'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.toolbar,'Paging',Ext,'PagingToolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Paging',{override:'Ext.toolbar.Paging',defaultButtonUI:'plain-toolbar',inputItemWidth:40});Ext.cmd.derive('Ext.view.BoundList',Ext.view.View,{alternateClassName:'Ext.BoundList',pageSize:0,baseCls:'x-boundlist',itemCls:'x-boundlist-item',listItemCls:'',shadow:!1,trackOver:!0,preserveScrollOnRefresh:!0,enableInitialSelection:!1,refreshSelmodelOnRefresh:!0,componentLayout:'boundlist',navigationModel:'boundlist',scrollable:!0,ariaEl:'listEl',tabIndex:-1,childEls:['listWrap','listEl'],renderTpl:['
    ','
      {$}="{.}"','>','
    ','
    ','{%','var pagingToolbar=values.$comp.pagingToolbar;','if (pagingToolbar) {','Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);','}','%}',{disableFormats:!0}],focusOnToFront:!1,initComponent:function(){var a=this,b=a.baseCls,c=a.itemCls;a.selectedItemCls=b+'-selected';if(a.trackOver){a.overItemCls=b+'-item-over'}a.itemSelector='.'+c;a.scrollerSelector='ul.x-list-plain';if(a.floating){a.addCls(b+'-floating')}if(!a.tpl){a.tpl=new Ext.XTemplate('','
  • '+a.getInnerTpl(a.displayField)+'
  • ','
    ')}else {if(!a.tpl.isTemplate){a.tpl=new Ext.XTemplate(a.tpl)}}if(a.pageSize){a.pagingToolbar=a.createPagingToolbar()}Ext.view.View.prototype.initComponent.call(this)},getRefOwner:function(){return this.pickerField||Ext.view.View.prototype.getRefOwner.call(this)},getRefItems:function(){var b=Ext.view.View.prototype.getRefItems.call(this),a=this.pagingToolbar;if(a){b.push(a)}return b},createPagingToolbar:function(){return Ext.widget('pagingtoolbar',{id:this.id+'-paging-toolbar',pageSize:this.pageSize,store:this.dataSource,border:!1,ownerCt:this,ownerLayout:this.getComponentLayout()})},getNodeContainer:function(){return this.listEl},refresh:function(){var b=this,a=b.tpl;a.field=b.pickerField;a.store=b.store;Ext.view.View.prototype.refresh.call(this);a.field=a.store=null},bindStore:function(c,b){var a=this.pagingToolbar;Ext.view.View.prototype.bindStore.apply(this,arguments);if(a){a.bindStore(c,b)}},getInnerTpl:function(a){return '{'+a+'}'},onShow:function(){var a=this.pickerField;Ext.view.View.prototype.onShow.call(this);if(a&&a.rendered&&!a.hasFocus){a.focus()}},afterComponentLayout:function(e,d,c,b){var a=this.pickerField;Ext.view.View.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&a.alignPicker){a.alignPicker()}},onItemClick:function(e){var d=this,b=d.pickerField,c,a;if(!b){return}c=b.valueField;a=d.getSelectionModel().getSelection();if(!b.multiSelect&&a.length){a=a[0];if(a&&b.isEqual(e.get(c),a.get(c))&&b.collapse){b.collapse()}}},onContainerClick:function(b){var a=this.pagingToolbar;if(a&&a.rendered&&b.within(a.el)){return !1}},onDestroy:function(){Ext.view.View.prototype.onDestroy.call(this);Ext.destroyMembers(this,'pagingToolbar','listWrap','listEl')},privates:{getTargetEl:function(){return this.listEl},getOverflowEl:function(){return this.listWrap},finishRenderChildren:function(){var a=this.pagingToolbar;Ext.view.View.prototype.finishRenderChildren.apply(this,arguments);if(a){a.finishRender()}}}},0,['boundlist'],['component','box','dataview','boundlist'],{'component':!0,'box':!0,'dataview':!0,'boundlist':!0},['widget.boundlist'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,'BoundList',Ext,'BoundList'],0);Ext.cmd.derive('Ext.form.field.ComboBox',Ext.form.field.Picker,{alternateClassName:'Ext.form.ComboBox',config:{filters:null,selection:null,valueNotFoundText:null,displayTpl:!1,delimiter:', ',displayField:'text'},publishes:['selection'],twoWayBindable:['selection'],triggerCls:'x-form-arrow-trigger',hiddenName:'',collapseOnSelect:!1,hiddenDataCls:'x-hidden-display x-form-data-hidden',ariaRole:'combobox',childEls:{'hiddenDataEl':!0},filtered:!1,afterRender:function(){var a=this;Ext.form.field.Picker.prototype.afterRender.apply(this,arguments);a.setHiddenValue(a.value)},multiSelect:!1,triggerAction:'all',allQuery:'',queryParam:'query',queryMode:'remote',queryCaching:!0,autoLoadOnValue:!1,pageSize:0,anyMatch:!1,caseSensitive:!1,autoSelect:!0,typeAhead:!1,typeAheadDelay:250,selectOnTab:!0,forceSelection:!1,growToLongestValue:!0,clearFilterOnBlur:!0,defaultListConfig:{loadingHeight:70,minWidth:70,maxHeight:300,shadow:'sides'},transformInPlace:!0,clearValueOnEmpty:!0,getGrowWidth:function(){var a=this,i=a.inputEl.dom.value,h,e,g,c,b,f,d;if(a.growToLongestValue){h=a.displayField;e=a.store;g=e.data.length;c=0;for(b=0;bc){c=d;i=f}}}return i},initComponent:function(){var a=this,d=Ext.isDefined,f=a.store,e=a.transform,b,c;if('pinList' in a){a.collapseOnSelect=!a.pinList}if(e){b=Ext.getDom(e);if(b){if(!a.store){f=Ext.Array.map(Ext.Array.from(b.options),function(a){return [a.value,a.text]})}if(!a.name){a.name=b.name}if(!('value' in a)){a.value=b.value}}}a.bindStore(f||'ext-empty-store',!0,!0);c=a.queryMode==='local';if(!d(a.queryDelay)){a.queryDelay=c?10:500}if(!d(a.minChars)){a.minChars=c?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);a.doQueryTask=new Ext.util.DelayedTask(a.doRawQuery,a);if(b){if(a.transformInPlace){a.render(b.parentNode,b);delete a.renderTo}Ext.removeNode(b)}},getSubTplData:function(c){var b,a;b=Ext.form.field.Picker.prototype.getSubTplData.call(this,c);a=b.inputElAriaAttributes;if(a){a['aria-autocomplete']='list'}return b},getSubTplMarkup:function(c){var b=this,a='',d=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(b.hiddenName){a=''}return a+d},applyDisplayTpl:function(a){var b=this;if(!a){a=new Ext.XTemplate('{[typeof values === "string" ? values : values["'+b.getDisplayField()+'"]]}'+b.getDelimiter()+'');a.auto=!0}else {if(!a.isTemplate){a=new Ext.XTemplate(a)}}return a},applyFilters:function(b,a){var c=this;if(b===null||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.beginUpdate();a.splice(0,a.length,b);a.each(function(d){d.ownerId=c.id});a.endUpdate()}return a},applyValueNotFoundText:function(b){var a=this,c=a.valueNotFoundRecord||(a.valueNotFoundRecord=new Ext.data.Model());c.set(a.displayField,b);if(a.valueField&&a.displayField!==a.valueField){c.set(a.valueField,b)}return b},getFilters:function(b){var a=this.filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,c){var b=this;if(c){c.un('endupdate','onEndUpdateFilters',b)}if(a){a.on('endupdate','onEndUpdateFilters',b)}b.onEndUpdateFilters(a)},onEndUpdateFilters:function(a){var b=this,f=b.filtered,e=!!a&&a.length>0,d,c;if(f||e){b.filtered=e;d=[];c=b.store.getFilters();c.each(function(c){if(c.ownerId===b.id&&!a.contains(c)){d.push(c)}});c.splice(0,d,a.items)}},completeEdit:function(c){var a=this,b=a.queryFilter;Ext.form.field.Picker.prototype.completeEdit.call(this,c);a.doQueryTask.cancel();a.assertValue();if(b&&a.queryMode==='local'&&a.clearFilterOnBlur){a.getStore().getFilters().remove(b)}},onFocus:function(b){var a=this;Ext.form.field.Picker.prototype.onFocus.call(this,b);if(a.triggerAction!=='all'&&a.queryFilter&&a.queryMode==='local'&&a.clearFilterOnBlur){delete a.lastQuery;a.doRawQuery()}},assertValue:function(){var a=this,e=a.getRawValue(),c=a.getDisplayValue(),d=a.lastSelectedRecords,b;if(a.forceSelection){if(a.multiSelect){if(e!==c){a.setRawValue(c)}}else {b=a.findRecordByDisplay(e);if(b){if(a.getDisplayValue([a.getRecordDisplayData(b)])!==c){a.select(b,!0)}}else {if(d&&(!a.allowBlank||a.rawValue)){a.setValue(d)}else {if(d){delete a.lastSelectedRecords}a.setRawValue('')}}}}a.collapse()},onTypeAhead:function(){var a=this,e=a.displayField,d=a.store.findRecord(e,a.getRawValue()),f=a.getPicker(),b,g,c;if(d){b=d.get(e);g=b.length;c=a.getRawValue().length;f.highlightItem(f.getNode(d));if(c!==0&&c!==g){a.setRawValue(b);a.selectText(c,b.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){var a=this.queryFilter;Ext.form.field.Picker.prototype.beforeReset.call(this);if(a){this.getStore().getFilters().remove(a)}},onUnbindStore:function(){var a=this,c=a.picker,b=a.queryFilter;if(b&&!a.store.destroyed){a.changingFilters=!0;a.getStore().removeFilter(b,!0);a.changingFilters=!1}a.pickerSelectionModel.destroy();if(c){c.bindStore(null)}},onBindStore:function(b,f){var a=this,d=a.picker,c,e;if(b){if(b.autoCreated){a.queryMode='local';a.valueField=a.displayField='field1';if(!b.expanded){a.displayField='field2'}if(a.getDisplayTpl().auto){a.setDisplayTpl(null)}}if(!Ext.isDefined(a.valueField)){a.valueField=a.displayField}c={byValue:{rootProperty:'data',unique:!1}};c.byValue.property=a.valueField;b.setExtraKeys(c);if(a.displayField===a.valueField){b.byText=b.byValue}else {c.byText={rootProperty:'data',unique:!1};c.byText.property=a.displayField;b.setExtraKeys(c)}e={rootProperty:'data',extraKeys:{byInternalId:{property:'internalId'},byValue:{property:a.valueField,rootProperty:'data'}},listeners:{beginupdate:a.onValueCollectionBeginUpdate,endupdate:a.onValueCollectionEndUpdate,scope:a}};a.valueCollection=new Ext.util.Collection(e);a.pickerSelectionModel=new Ext.selection.DataViewModel({mode:a.multiSelect?'SIMPLE':'SINGLE',deselectOnContainerClick:!1,enableInitialSelection:!1,pruneRemoved:!1,selected:a.valueCollection,store:b,listeners:{scope:a,lastselectedchanged:a.updateBindSelection}});if(!f){a.resetToDefault()}if(d){d.setSelectionModel(a.pickerSelectionModel);if(d.getStore()!==b){d.bindStore(b)}}}},bindStore:function(a,e,c){var b=this,d=b.queryFilter;b.mixins.storeholder.bindStore.call(b,a,c);a=b.getStore();if(a&&d&&!e){a.getFilters().add(d)}if(!c&&a&&!a.isEmptyStore){b.setValueOnData()}},getStoreListeners:function(c){if(!c.isEmptyStore){var a=this,b={datachanged:a.onDataChanged,load:a.onLoad,exception:a.onException,update:a.onStoreUpdate,remove:a.checkValueOnChange};if(!c.getRemoteFilter()){b.filterchange=a.checkValueOnChange}return b}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var a=this;if(!a.destroying&&a.getStore().isLoaded()){if(a.multiSelect){}else {if(a.forceSelection&&!a.changingFilters&&!a.findRecordByValue(a.value)){a.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.collapse()},onLoad:function(b,e,d){var a=this,c=!a.valueCollection.byValue.get(a.value);if(d&&c&&!(b.lastOptions&&'rawQuery' in b.lastOptions)){a.setValueOnData()}a.checkValueOnChange()},setValueOnData:function(){var a=this;a.setValue(a.value);if(a.isExpanded&&a.getStore().getCount()){a.doAutoSelect()}},doRawQuery:function(){var a=this,b=a.inputEl.dom.value;if(a.multiSelect){b=b.split(a.delimiter).pop()}a.doQuery(b,!1,!0)},doQuery:function(c,f,g){var a=this,d=a.getStore(),e=d.filters&&!d.filters.length&&!!c,b=a.beforeQuery({query:c||'',rawQuery:g,forceAll:f,combo:a,cancel:!1});if(b!==!1&&!b.cancel){if(a.queryCaching&&!e&&b.query===a.lastQuery){a.getPicker().refresh();a.expand()}else {a.lastQuery=b.query;if(a.queryMode==='local'){a.doLocalQuery(b)}else {a.doRemoteQuery(b)}}}return !0},beforeQuery:function(a){var b=this;if(b.fireEvent('beforequery',a)===!1){a.cancel=!0}else {if(!a.cancel){if(a.query.length0){a=b.picker.getSelectionModel();if(a.lastSelected&&a.selected.length){c=a.lastSelected}d.getNavigationModel().setPosition(c)}},doTypeAhead:function(){var a=this,b=Ext.event.Event;if(!a.typeAheadTask){a.typeAheadTask=new Ext.util.DelayedTask(a.onTypeAhead,a)}if(a.lastKey!==b.BACKSPACE&&a.lastKey!==b.DELETE){a.typeAheadTask.delay(a.typeAheadDelay)}},onTriggerClick:function(){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else {if(a.triggerAction==='all'){a.doQuery(a.allQuery,!0)}else {if(a.triggerAction==='last'){a.doQuery(a.lastQuery,!0)}else {a.doQuery(a.getRawValue(),!1,!0)}}}}},onFieldMutation:function(b){var a=this,c=b.getKey(),d=c===b.BACKSPACE||c===b.DELETE,e=a.inputEl.dom.value,f=e.length;if(!a.readOnly&&(e!==a.lastMutatedValue||d)&&c!==b.TAB){a.lastMutatedValue=e;a.lastKey=c;if(f&&(b.type!=='keyup'||(!b.isSpecialKey()||d))){a.doQueryTask.delay(a.queryDelay)}else {if(!f&&(!c||d)){++a.suspendCheckChange;if(!a.multiSelect){a.value=null;a.displayTplData=undefined}if(a.clearValueOnEmpty){a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.removeAll();a.valueCollection.endUpdate()}a.collapse();if(a.queryFilter){a.changingFilters=!0;a.store.removeFilter(a.queryFilter,!0);a.changingFilters=!1}--a.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,b)}}},onDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);a.valueCollection=Ext.destroy(a.valueCollection);Ext.form.field.Picker.prototype.onDestroy.call(this)},onAdded:function(){var a=this;Ext.form.field.Picker.prototype.onAdded.apply(this,arguments);if(a.picker){a.picker.ownerCt=a.up('[floating]');a.picker.registerWithOwnerCt()}},createPicker:function(){var a=this,b,c=Ext.apply({xtype:'boundlist',id:a.pickerId,pickerField:a,selectionModel:a.pickerSelectionModel,floating:!0,hidden:!0,store:a.getPickerStore(),displayField:a.displayField,preserveScrollOnRefresh:!0,pageSize:a.pageSize,tpl:a.tpl},a.listConfig,a.defaultListConfig);b=a.picker=Ext.widget(c);if(a.pageSize){b.pagingToolbar.on('beforechange',a.onPageChange,a)}if(!b.initialConfig.maxHeight){b.on({beforeshow:a.onBeforePickerShow,scope:a})}b.getSelectionModel().on({beforeselect:a.onBeforeSelect,beforedeselect:a.onBeforeDeselect,focuschange:a.onFocusChange,scope:a});b.getNavigationModel().navigateOnSpace=!1;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(d){var b=this,a=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-a-b.getHeight();d.maxHeight=Math.max(a,c)-5},onBeforeSelect:function(c,b,a){return this.fireEvent('beforeselect',this,b,a)},onBeforeDeselect:function(c,b,a){return this.fireEvent('beforedeselect',this,b,a)},onFocusChange:function(e,d,b){var c=this.picker,a;if(b){a=Ext.get(c.getNodeByRecord(b));if(a){this.ariaEl.dom.setAttribute('aria-activedescendant',a.id)}}},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getPicker().getSelectionModel();if(c){b.select(c);a.hasHadSelection=!0}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var a=this,e=a.store,b=a.valueCollection.getRange(),d=b[0],c=b.length;a.updateBindSelection(a.pickerSelectionModel,b);if(a.isSelectionUpdating()){return}Ext.suspendLayouts();a.lastSelection=b;if(c){a.lastSelectedRecords=b}a.updateValue();if(c&&(!a.multiSelect&&e.contains(d)||a.collapseOnSelect||!e.getCount())){a.updatingValue=!0;a.collapse();a.updatingValue=!1}Ext.resumeLayouts(!0);if(c&&!a.suspendCheckChange){if(!a.multiSelect){b=d}a.fireEvent('select',a,b)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var a=this.getPicker().getNavigationModel();if(a){a.enable()}this.doAutoSelect()},onCollapse:function(){var a=this.getPicker().getNavigationModel();if(a){a.disable()}if(this.updatingValue){this.doQueryTask.cancel()}},select:function(b,e){var a=this,d=a.picker,c;if(b&&b.isModel&&e===!0&&d){c=!d.getSelectionModel().isSelected(b)}if(!c){a.suspendEvent('select')}a.setValue(b);a.resumeEvent('select')},findRecord:function(c,d){var b=this.store,a=b.findExact(c,d);return a!==-1?b.getAt(a):!1},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=!1;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=!1;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,!0)}},setValue:function(b){var a=this;if(b!=null){return a.doSetValue(b)}else {a.suspendEvent('select');a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.endUpdate();a.lastSelectedRecords=null;a.resumeEvent('select')}},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(c,p){var a=this,f=a.getStore(),v=f.getModel(),e=[],u=[],r=a.autoLoadOnValue,m=f.getCount()>0||f.isLoaded(),l=f.hasPendingLoad(),o=r&&!m&&!l,t=a.forceSelection,n=a.pickerSelectionModel,s=a.displayField===a.valueField,j=f.isEmptyStore,k=a.lastSelection,d,h,b,i,g,q;if(l||o||!m||j){if(!c.isModel){if(p){a.value=Ext.Array.from(a.value).concat(c)}else {a.value=c}a.setHiddenValue(a.value);a.setRawValue(s?c:'')}if(o&&!j){f.load()}if(!c.isModel||j){return a}}c=p?Ext.Array.from(a.value).concat(c):Ext.Array.from(c);for(d=0,h=c.length;d0){h.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:'input',type:'hidden',name:i}));a=1;g=d.firstChild}while(a>c){d.removeChild(b[0]);--a}while(a style="{fieldStyle}"',' class="{fieldCls} {fieldCls}-{ui}">{value}',{compiled:!0,disableFormats:!0}],ariaRole:undefined,focusable:!1,readOnly:!0,fieldCls:'x-form-display-field',fieldBodyCls:'x-form-display-field-body',htmlEncode:!1,noWrap:!1,validateOnChange:!1,initEvents:Ext.emptyFn,submitValue:!1,getValue:function(){return this.value},valueToRaw:function(a){if(a||a===0||a===!1){return a}else {return ''}},isDirty:function(){return !1},isValid:Ext.returnTrue,validate:Ext.returnTrue,getRawValue:function(){return this.rawValue},setRawValue:function(b){var a=this;b=Ext.valueFrom(b,'');a.rawValue=b;if(a.rendered){a.inputEl.dom.innerHTML=a.getDisplayValue();a.updateLayout()}return b},getDisplayValue:function(){var a=this,c=this.getRawValue(),b;if(a.renderer){b=a.renderer.call(a.scope||a,c,a)}else {b=a.htmlEncode?Ext.util.Format.htmlEncode(c):c}return b},getSubTplData:function(b){var a=Ext.form.field.Base.prototype.getSubTplData.apply(this,arguments);a.value=this.getDisplayValue();return a}},0,['displayfield'],['component','box','field','displayfield'],{'component':!0,'box':!0,'field':!0,'displayfield':!0},['widget.displayfield'],0,[Ext.form.field,'Display',Ext.form,'DisplayField',Ext.form,'Display'],0);Ext.cmd.derive('Ext.tip.Tip',Ext.panel.Panel,{alternateClassName:'Ext.Tip',minWidth:40,maxWidth:500,shadow:'sides',defaultAlign:'tl-bl?',constrainPosition:!0,autoRender:!0,hidden:!0,baseCls:'x-tip',focusOnToFront:!1,maskOnDisable:!1,closeAction:'hide',alwaysFramed:!0,frameHeader:!1,initComponent:function(){var a=this;a.floating=Ext.apply({},{shadow:a.shadow,constrain:a.constrainPosition},a.self.prototype.floating);Ext.panel.Panel.prototype.initComponent.apply(this,arguments);a.constrain=a.constrain||a.constrainPosition},showAt:function(b){var a=this;Ext.panel.Panel.prototype.showAt.apply(this,arguments);if(a.isVisible()){a.setPagePosition(b[0],b[1]);if(a.constrainPosition||a.constrain){a.doConstrain()}a.toFront(!0)}},privates:{initDraggable:function(){var a=this;a.draggable={el:a.getDragEl(),delegate:a.header.el,constrain:a,constrainTo:a.el.dom.parentNode};Ext.Component.prototype.initDraggable.call(a)}},ghost:undefined,unghost:undefined},0,['tip'],['component','box','container','panel','tip'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tip':!0},['widget.tip'],0,[Ext.tip,'Tip',Ext,'Tip'],0);Ext.cmd.derive('Ext.tip.ToolTip',Ext.tip.Tip,{alternateClassName:'Ext.ToolTip',autoHide:!0,showDelay:500,hideDelay:200,dismissDelay:5000,trackMouse:!1,anchorToTarget:!0,anchorOffset:0,targetCounter:0,quickShowInterval:250,hideAction:'hide',fadeOutDuration:1000,ariaRole:'tooltip',initComponent:function(){var a=this;Ext.tip.Tip.prototype.initComponent.apply(this,arguments);a.lastActive=new Date();a.setTarget(a.target);a.origAnchor=a.anchor},onRender:function(c,b){var a=this;Ext.tip.Tip.prototype.onRender.apply(this,arguments);a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl=a.el.createChild({role:'presentation',cls:'x-tip-anchor '+a.anchorCls})},setTarget:function(d){var a=this,b=Ext.get(d),c;if(a.target){c=Ext.get(a.target);if(Ext.supports.Touch){a.mun(c,'tap',a.onTargetOver,a)}else {a.mun(c,{mouseover:a.onTargetOver,mouseout:a.onTargetOut,mousemove:a.onMouseMove,scope:a})}}a.target=b;if(b){if(Ext.supports.Touch){a.mon(b,{tap:a.onTargetOver,scope:a})}else {a.mon(b,{mouseover:a.onTargetOver,mouseout:a.onTargetOut,mousemove:a.onMouseMove,scope:a})}}if(a.anchor){a.anchorTarget=a.target}},onMouseMove:function(c){var a=this,d,b;if(!a.target||a.target.contains(c.target)){d=a.delegate?c.getTarget(a.delegate):a.triggerElement=!0;if(d){a.targetXY=c.getXY();if(d===a.triggerElement){if(!a.hidden&&a.trackMouse){b=a.getTargetXY();if(a.constrainPosition){b=a.el.adjustForConstraints(b,a.el.parent())}a.setPagePosition(b)}}else {a.hide();a.lastActive=new Date(0);a.onTargetOver(c)}}else {if(!a.closable&&a.isVisible()&&a.autoHide!==!1){a.delayHide()}}}},getTargetXY:function(){var a=this,c,d,h,m,l,f,e,j,k,b,g,i;if(a.delegate){a.anchorTarget=a.triggerElement}if(a.anchor){a.targetCounter++;d=a.getOffsets();h=a.anchorToTarget&&!a.trackMouse?a.getAlignToXY(a.anchorTarget,a.getAnchorAlign()):a.targetXY;m=Ext.Element.getViewportWidth()-5;l=Ext.Element.getViewportHeight()-5;f=document.documentElement;e=document.body;j=(f.scrollLeft||e.scrollLeft||0)+5;k=(f.scrollTop||e.scrollTop||0)+5;b=[h[0]+d[0],h[1]+d[1]];g=a.getSize();i=a.constrainPosition;a.anchorEl.removeCls(a.anchorCls);if(a.targetCounter<2&&i){if(b[0]m){if(a.anchorToTarget){a.defaultAlign='r-l';if(a.mouseOffset){a.mouseOffset[0]*=-1}}a.anchor='right';return a.getTargetXY()}if(b[1]l){if(a.anchorToTarget){a.defaultAlign='b-t';if(a.mouseOffset){a.mouseOffset[1]*=-1}}a.anchor='bottom';return a.getTargetXY()}}a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl.addCls(a.anchorCls);a.targetCounter=0;return b}else {c=a.getMouseOffset();return a.targetXY?[a.targetXY[0]+c[0],a.targetXY[1]+c[1]]:c}},calculateConstrainedPosition:function(e){var a=this,d,b,c;if(!e&&a.isContainedFloater()){d=a.isVisible();if(!d){a.el.show()}b=a.getTargetXY();if(!d){a.el.hide()}c=a.floatParent.getTargetEl().getViewRegion();b[0]-=c.left;b[1]-=c.top}else {b=a.callOverridden(arguments)}return b},getMouseOffset:function(){var a=this,b=a.anchor?[0,0]:[15,18];if(a.mouseOffset){b[0]+=a.mouseOffset[0];b[1]+=a.mouseOffset[1]}return b},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity('')}})},getAnchorPosition:function(){var a=this,b;if(a.anchor){a.tipAnchor=a.anchor.charAt(0)}else {b=a.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);a.tipAnchor=b[1].charAt(0)}switch(a.tipAnchor){case 't':return 'top';case 'b':return 'bottom';case 'r':return 'right';}return 'left'},getAnchorAlign:function(){switch(this.anchor){case 'top':return 'tl-bl';case 'left':return 'tl-tr';case 'right':return 'tr-tl';default:return 'bl-tl';}},getOffsets:function(){var b=this,c,a,d=b.getAnchorPosition().charAt(0);if(b.anchorToTarget&&!b.trackMouse){switch(d){case 't':a=[0,9];break;case 'b':a=[0,-13];break;case 'r':a=[-13,0];break;default:a=[9,0];break;}}else {switch(d){case 't':a=[-15-b.anchorOffset,30];break;case 'b':a=[-19-b.anchorOffset,-13-b.el.dom.offsetHeight];break;case 'r':a=[-15-b.el.dom.offsetWidth,-13-b.anchorOffset];break;default:a=[25,-13-b.anchorOffset];break;}}c=b.getMouseOffset();a[0]+=c[0];a[1]+=c[1];return a},onTargetOver:function(b){var a=this,d=a.delegate,c;if(a.disabled||b.within(a.target.dom,!0)){return}c=d?b.getTarget(d):!0;if(c){a.triggerElement=c;a.triggerEvent=b;a.clearTimer('hide');a.targetXY=b.getXY();a.delayShow()}},delayShow:function(c){var a=this,b=a.el&&(c===!1||!a.trackMouse)&&a.getTargetXY();if(a.hidden&&!a.showTimer){if(Ext.Date.getElapsed(a.lastActive)','',' ','',''],initComponent:function(){var a=this;Ext.Component.prototype.initComponent.apply(this,arguments);if(a.handler){a.on('select',a.handler,a.scope,!0)}},initRenderData:function(){var a=this;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{itemCls:a.itemCls,colors:a.colors})},onRender:function(){var a=this,b=a.clickEvent;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el,b,a.handleClick,a,{delegate:'a'});if(b!=='click'){a.mon(a.el,'click',Ext.emptyFn,a,{delegate:'a',stopEvent:!0})}},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);if(a.value){b=a.value;a.value=null;a.select(b,!0)}},handleClick:function(c){var a=this,b;c.stopEvent();if(!a.disabled){b=c.currentTarget.className.match(a.colorRe)[1];a.select(b.toUpperCase())}},select:function(b,g){var a=this,e=a.selectedCls,f=a.value,d,c;b=b.replace('#','');if(!a.rendered){a.value=b;return}if(b!==f||a.allowReselect){d=a.el;if(a.value){c=d.down('a.color-'+f,!0);Ext.fly(c).removeCls(e)}c=d.down('a.color-'+b,!0);Ext.fly(c).addCls(e);a.value=b;if(g!==!0){a.fireEvent('select',a,b)}}},clear:function(){var a=this,b=a.value,c;if(b&&a.rendered){c=a.el.down('a.color-'+b,!0);Ext.fly(c).removeCls(a.selectedCls)}a.value=null},getValue:function(){return this.value||null}},0,['colorpicker'],['component','box','colorpicker'],{'component':!0,'box':!0,'colorpicker':!0},['widget.colorpicker'],0,[Ext.picker,'Color',Ext,'ColorPalette'],0);Ext.cmd.derive('Ext.layout.component.field.HtmlEditor',Ext.layout.component.field.FieldContainer,{type:'htmleditor',naturalHeight:150,naturalWidth:300,beginLayout:function(a){var b=this.owner,c;if(Ext.isGecko){c=b.textareaEl.dom;this.lastValue=c.value;c.value=''}Ext.layout.component.field.FieldContainer.prototype.beginLayout.apply(this,arguments);a.toolbarContext=a.context.getCmp(b.toolbar);a.inputCmpContext=a.context.getCmp(b.inputCmp);a.bodyCellContext=a.getEl('bodyEl');a.textAreaContext=a.getEl('textareaEl');a.iframeContext=a.getEl('iframeEl')},beginLayoutCycle:function(a){var b=this,e=a.widthModel,c=a.heightModel,h=b.owner,f=h.iframeEl,d=h.textareaEl,g=c.natural||c.shrinkWrap?b.naturalHeight:'';Ext.layout.component.field.FieldContainer.prototype.beginLayoutCycle.apply(this,arguments);if(e.shrinkWrap){f.setStyle('width','');d.setStyle('width','')}else {if(e.natural){a.bodyCellContext.setWidth(b.naturalWidth)}}f.setStyle('height',g);d.setStyle('height',g)},finishedLayout:function(){var a=this.owner;Ext.layout.component.field.FieldContainer.prototype.finishedLayout.apply(this,arguments);if(Ext.isGecko){a.textareaEl.dom.value=this.lastValue}}},0,0,0,0,['layout.htmleditor'],0,[Ext.layout.component.field,'HtmlEditor'],0);Ext.cmd.derive('Ext.toolbar.Separator',Ext.toolbar.Item,{alternateClassName:'Ext.Toolbar.Separator',baseCls:'x-toolbar-separator',ariaRole:'separator'},0,['tbseparator'],['component','box','tbitem','tbseparator'],{'component':!0,'box':!0,'tbitem':!0,'tbseparator':!0},['widget.tbseparator'],0,[Ext.toolbar,'Separator',Ext.Toolbar,'Separator'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Menu',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Menu',noItemsMenuText:'',menuCls:'x-box-menu',constructor:function(a){var b=this;Ext.layout.container.boxOverflow.None.prototype.constructor.call(this,a);b.menuItems=[]},beginLayout:function(a){Ext.layout.container.boxOverflow.None.prototype.beginLayout.call(this,a);this.clearOverflow(a)},beginLayoutCycle:function(a,b){Ext.layout.container.boxOverflow.None.prototype.beginLayoutCycle.call(this,a,b);if(!b){this.clearOverflow(a);this.layout.cacheChildItems(a)}},onRemove:function(a){Ext.Array.remove(this.menuItems,a)},clearItem:function(a){var b=a.menu;if(a.isButton&&b){a.setMenu(b,!1)}},getSuffixConfig:function(){var a=this,c=a.layout,b=c.owner,d=b.id;a.menu=new Ext.menu.Menu({listeners:{scope:a,beforeshow:a.beforeMenuShow}});a.menuTrigger=new Ext.button.Button({id:d+'-menu-trigger',cls:a.menuCls+'-after x-toolbar-item',plain:b.usePlainButtons,ownerCt:b,ownerLayout:c,iconCls:'x-'+a.getOwnerType(b)+'-more-icon',ui:b.defaultButtonUI||'default',menu:a.menu,showEmptyMenu:!0,getSplitCls:function(){return ''}});return a.menuTrigger.getRenderTree()},getOverflowCls:function(a){return this.menuCls+'-body-'+a},handleOverflow:function(b){var a=this,c=a.layout;a.showTrigger(b);if(c.direction!=='vertical'){a.menuTrigger.setLocalY((b.state.boxPlan.maxSize-a.menuTrigger[c.names.getHeight]())/2)}return {reservedSpace:a.triggerTotalWidth}},captureChildElements:function(){var b=this,a=b.menuTrigger,c=b.layout.names;if(a.rendering){a.finishRender();b.triggerTotalWidth=a[c.getWidth]()+a.el.getMargin(c.parallelMargins)}},clearOverflow:function(h){var b=this,d=b.menuItems,g=d.length,e=b.layout.owner,f=e._asLayoutRoot,a,c;e.suspendLayouts();b.captureChildElements();b.hideTrigger();e.resumeLayouts();for(c=0;ck){h=d.target;b.menuItems.push(h);h.hide()}}o.resumeLayouts()},hideTrigger:function(){var a=this.menuTrigger;if(a){a.hide()}},beforeMenuShow:function(a){var e=this,g=e.menuItems,d=0,h=g.length,b,c,f=function(b,c){return b.isXType('buttongroup')&&!(c instanceof Ext.toolbar.Separator)};a.suspendLayouts();a.removeAll(!1);for(;d','{[Ext.util.Format.htmlEncode(values.value)]}','','{afterTextAreaTpl}','{beforeIFrameTpl}','','{afterIFrameTpl}',{disableFormats:!0}],stretchInputElFixed:!0,subTplInsertions:['beforeTextAreaTpl','afterTextAreaTpl','beforeIFrameTpl','afterIFrameTpl','iframeAttrTpl','inputAttrTpl'],enableFormat:!0,enableFontSize:!0,enableColors:!0,enableAlignments:!0,enableLists:!0,enableSourceEdit:!0,enableLinks:!0,enableFont:!0,createLinkText:'Please enter the URL for the link:',defaultLinkValue:'http://',fontFamilies:['Arial','Courier New','Tahoma','Times New Roman','Verdana'],defaultValue:Ext.isOpera?' ':'​',extraFieldBodyCls:'x-html-editor-wrap',defaultButtonUI:'default-toolbar',initialized:!1,activated:!1,sourceEditMode:!1,iframePad:3,hideMode:'offsets',maskOnDisable:!0,containerElCls:'x-html-editor-container',reStripQuotes:/^['"]*|['"]*$/g,textAlignRE:/text-align:(.*?);/i,safariNonsenseRE:/\sclass="(?:Apple-style-span|Apple-tab-span|khtml-block-placeholder)"/gi,nonDigitsRE:/\D/g,initComponent:function(){var a=this;a.items=[a.createToolbar(),a.createInputCmp()];a.layout={type:'vbox',align:'stretch'};if(a.value==null){a.value=''}Ext.form.FieldContainer.prototype.initComponent.apply(this,arguments);a.initField()},createInputCmp:function(){this.inputCmp=Ext.widget(this.getInputCmpCfg());return this.inputCmp},getInputCmpCfg:function(){var a=this,c=a.id+'-inputCmp',b={id:c,name:a.name,textareaCls:a.textareaCls+' x-hidden',value:a.value,iframeName:Ext.id(),iframeSrc:Ext.SSL_SECURE_URL,iframeCls:'x-htmleditor-iframe'};a.getInsertionRenderData(b,a.subTplInsertions);return {flex:1,xtype:'component',tpl:a.getTpl('componentTpl'),childEls:['iframeEl','textareaEl'],id:c,cls:'x-html-editor-input',data:b}},createToolbar:function(){this.toolbar=Ext.widget(this.getToolbarCfg());return this.toolbar},getToolbarCfg:function(){var a=this,b=[],e,f=Ext.quickTipsActive&&Ext.tip.QuickTipManager.isEnabled(),c='x-',g,d;function btn(b,g,e){return {itemId:b,cls:c+'btn-icon',iconCls:c+'edit-'+b,enableToggle:g!==!1,scope:a,handler:e||a.relayBtnCmd,clickEvent:'mousedown',tooltip:f?a.buttonTips[b]||d:d,overflowText:a.buttonTips[b].title||d,tabIndex:-1}}if(a.enableFont&&!Ext.isSafari2){g=Ext.widget('component',{itemId:'fontSelect',renderTpl:[''],childEls:['selectEl'],afterRender:function(){a.fontSelect=this.selectEl;Ext.Component.prototype.afterRender.apply(this,arguments)},onDisable:function(){var a=this.selectEl;if(a){a.dom.disabled=!0}Ext.Component.prototype.onDisable.apply(this,arguments)},onEnable:function(){var a=this.selectEl;if(a){a.dom.disabled=!1}Ext.Component.prototype.onEnable.apply(this,arguments)},listeners:{change:function(){a.win.focus();a.relayCmd('fontName',a.fontSelect.dom.value);a.deferFocus()},element:'selectEl'}});b.push(g,'-')}if(a.enableFormat){b.push(btn('bold'),btn('italic'),btn('underline'))}if(a.enableFontSize){b.push('-',btn('increasefontsize',!1,a.adjustFont),btn('decreasefontsize',!1,a.adjustFont))}if(a.enableColors){b.push('-',{itemId:'forecolor',cls:c+'btn-icon',iconCls:c+'edit-forecolor',overflowText:a.buttonTips.forecolor.title,tooltip:f?a.buttonTips.forecolor||d:d,tabIndex:-1,menu:Ext.widget('menu',{plain:!0,items:[{xtype:'colorpicker',allowReselect:!0,focus:Ext.emptyFn,value:'000000',plain:!0,clickEvent:'mousedown',handler:function(c,b){a.relayCmd('forecolor',Ext.isWebKit||Ext.isIE?'#'+b:b);this.up('menu').hide()}}]})},{itemId:'backcolor',cls:c+'btn-icon',iconCls:c+'edit-backcolor',overflowText:a.buttonTips.backcolor.title,tooltip:f?a.buttonTips.backcolor||d:d,tabIndex:-1,menu:Ext.widget('menu',{plain:!0,items:[{xtype:'colorpicker',focus:Ext.emptyFn,value:'FFFFFF',plain:!0,allowReselect:!0,clickEvent:'mousedown',handler:function(c,b){if(Ext.isGecko){a.execCmd('useCSS',!1);a.execCmd('hilitecolor','#'+b);a.execCmd('useCSS',!0);a.deferFocus()}else {a.relayCmd(Ext.isOpera?'hilitecolor':'backcolor',Ext.isWebKit||Ext.isIE||Ext.isOpera?'#'+b:b)}this.up('menu').hide()}}]})})}if(a.enableAlignments){b.push('-',btn('justifyleft'),btn('justifycenter'),btn('justifyright'))}if(!Ext.isSafari2){if(a.enableLinks){b.push('-',btn('createlink',!1,a.createLink))}if(a.enableLists){b.push('-',btn('insertorderedlist'),btn('insertunorderedlist'))}if(a.enableSourceEdit){b.push('-',btn('sourceedit',!0,function(){a.toggleSourceEdit(!a.sourceEditMode)}))}}for(e=0;e',a.iframePad,b,a.defaultFont)},getEditorBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){return this.iframeEl.dom.contentDocument||this.getWin().document},getWin:function(){return this.iframeEl.dom.contentWindow||window.frames[this.iframeEl.dom.name]},initDefaultFont:function(){var b=this,h=0,c,a,f,e,d,i,g;if(!b.defaultFont){a=b.textareaEl.getStyle('font-family');a=Ext.String.capitalize(a.split(',')[0]);c=Ext.Array.clone(b.fontFamilies);Ext.Array.include(c,a);c.sort();b.defaultFont=a;f=b.down('#fontSelect').selectEl.dom;for(d=0,i=c.length;d'+a+''}}a=b.cleanHtml(a);if(b.fireEvent('beforesync',b,a)!==!1){if(Ext.isGecko&&c.value===''&&a==='
    '){a=''}if(c.value!==a){c.value=a;g=!0}b.fireEvent('sync',b,a);if(g){b.checkChange()}}}},getValue:function(){var a=this,b;if(!a.sourceEditMode){a.syncValue()}b=a.rendered?a.textareaEl.dom.value:a.value;a.value=b;return b},pushValue:function(){var a=this,b;if(a.initialized){b=a.textareaEl.dom.value||'';if(!a.activated&&b.length<1){b=a.defaultValue}if(a.fireEvent('beforepush',a,b)!==!1){a.getEditorBody().innerHTML=b;if(Ext.isGecko){a.setDesignMode(!1);a.setDesignMode(!0)}a.fireEvent('push',a,b)}}},focus:function(e,c){var a=this,d,b;if(c){if(!a.focusTask){a.focusTask=new Ext.util.DelayedTask(a.focus)}a.focusTask.delay(Ext.isNumber(c)?c:10,null,a,[e,!1])}else {if(e){if(a.textareaEl&&a.textareaEl.dom){d=a.textareaEl.dom.value}if(d&&d.length){a.execCmd('selectall',!0)}}b=a.getFocusEl();if(b&&b.focus){b.focus()}}return a},initEditor:function(){var a=this,e,f,d,c,b;if(a.destroying||a.destroyed){return}e=a.getEditorBody();if(!e){setTimeout(function(){a.initEditor()},10);return}f=a.textareaEl.getStyle(['font-size','font-family','background-image','background-repeat','background-color','color']);f['background-attachment']='fixed';e.bgProperties='fixed';Ext.DomHelper.applyStyles(e,f);d=a.getDoc();c=Ext.get(d);if(c){try{c.clearListeners()}catch(g){}b=a.onEditorEvent.bind(a);c.on({mousedown:b,dblclick:b,click:b,keyup:b,delegated:!1,buffer:100});b=a.onRelayedEvent;c.on({mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,delegated:!1,scope:a});if(Ext.isGecko){c.on('keypress',a.applyCommand,a)}if(a.fixKeys){c.on('keydown',a.fixKeys,a,{delegated:!1})}if(a.fixKeysAfter){c.on('keyup',a.fixKeysAfter,a,{delegated:!1})}if(Ext.isIE9){Ext.get(d.documentElement).on('focus',a.focus,a)}if(Ext.isIE8){c.on('focusout',function(){a.savedSelection=d.selection.type!=='None'?d.selection.createRange():null},a);c.on('focusin',function(){if(a.savedSelection){a.savedSelection.select()}},a)}Ext.getWin().on('beforeunload',a.beforeDestroy,a);d.editorInitialized=!0;a.initialized=!0;a.pushValue();a.setReadOnly(a.readOnly);a.fireEvent('initialize',a)}},beforeDestroy:function(){var a=this,d=a.monitorTask,b,c;if(d){Ext.TaskManager.stop(d)}if(a.rendered){Ext.getWin().un(a.beforeDestroy,a);b=a.getDoc();if(b){Ext.get(b).destroy();if(b.hasOwnProperty){for(c in b){try{if(b.hasOwnProperty(c)){delete b[c]}}catch(e){}}}}delete a.iframeEl;delete a.textareaEl;delete a.toolbar;delete a.inputCmp}Ext.form.FieldContainer.prototype.beforeDestroy.call(this)},onRelayedEvent:function(a){var b=this.iframeEl,c=Ext.fly(b).getTrueXY(),e=a.getXY(),d=a.getXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},onFirstFocus:function(){var a=this,b,c;a.activated=!0;a.disableItems(a.readOnly);if(Ext.isGecko){a.win.focus();b=a.win.getSelection();if(b.focusNode&&!a.getValue().length){c=b.getRangeAt(0);c.selectNodeContents(a.getEditorBody());c.collapse(!0);a.deferFocus()}try{a.execCmd('useCSS',!0);a.execCmd('styleWithCSS',!1)}catch(d){}}a.fireEvent('activate',a)},adjustFont:function(e){var b=e.getItemId()==='increasefontsize'?1:-1,a=this.getDoc().queryCommandValue('FontSize')||'2',d=Ext.isString(a)&&a.indexOf('px')!==-1,c;a=parseInt(a,10);if(d){if(a<=10){a=1+b}else {if(a<=13){a=2+b}else {if(a<=16){a=3+b}else {if(a<=18){a=4+b}else {if(a<=24){a=5+b}else {a=6+b}}}}}a=Ext.Number.constrain(a,1,6)}else {c=Ext.isSafari;if(c){b*=2}a=Math.max(1,a+b)+(c?'px':0)}this.relayCmd('FontSize',a)},onEditorEvent:function(){this.updateToolbar()},updateToolbar:function(){var a=this,c,i,h,g,b,d,f,e;if(a.readOnly){return}if(!a.activated){a.onFirstFocus();return}h=a.getToolbar().items.map;g=a.getDoc();if(a.enableFont&&!Ext.isSafari2){d=g.queryCommandValue('fontName');b=(d?d.split(',')[0].replace(a.reStripQuotes,''):a.defaultFont).toLowerCase();f=a.fontSelect.dom;if(b!==f.value||b!==d){f.value=b}}function updateButtons(){var a;for(c=0,i=arguments.length,b;c0){b=String.fromCharCode(b);switch(b){case 'b':a='bold';break;case 'i':a='italic';break;case 'u':a='underline';break;}if(a){c.win.focus();c.execCmd(a);c.deferFocus();d.preventDefault()}}}},insertAtCursor:function(j){var e=this,g=e.getWin(),d=e.getDoc(),b,a,h,c,i,f,k;if(e.activated){g.focus();if(g.getSelection){b=g.getSelection();if(b.getRangeAt&&b.rangeCount){a=b.getRangeAt(0);a.deleteContents();h=d.createElement('div');h.innerHTML=j;c=d.createDocumentFragment();while(i=h.firstChild){f=c.appendChild(i)}k=c.firstChild;a.insertNode(c);if(f){a=a.cloneRange();a.setStartAfter(f);a.collapse(!0);b.removeAllRanges();b.addRange(a)}}}else {if(d.selection&&b.type!=='Control'){b=d.selection;a=b.createRange();a.collapse(!0);b.createRange().pasteHTML(j)}}e.deferFocus()}},fixKeys:function(){var a;if(Ext.isIE10m){return function(c){var b=this,f=c.getKey(),e=b.getDoc(),d=b.readOnly,a,g;if(f===c.TAB){c.stopEvent();if(!d){a=e.selection.createRange();if(a){if(a.collapse){a.collapse(!0);a.pasteHTML('    ')}b.deferFocus()}}}}}if(Ext.isOpera){return function(b){var a=this,d=b.getKey(),c=a.readOnly;if(d===b.TAB){b.stopEvent();if(!c){a.win.focus();a.execCmd('InsertHTML','    ');a.deferFocus()}}}}return null}(),fixKeysAfter:function(){if(Ext.isIE){return function(b){var d=this,e=b.getKey(),c=d.getDoc(),f=d.readOnly,a;if(!f&&(e===b.BACKSPACE||e===b.DELETE)){a=c.body.innerHTML;if(a==='

     

    '||a==='

     

    '){c.body.innerHTML=''}}}}return null}(),getToolbar:function(){return this.toolbar},buttonTips:{bold:{title:'Bold (Ctrl+B)',text:'Make the selected text bold.',cls:'x-html-editor-tip'},italic:{title:'Italic (Ctrl+I)',text:'Make the selected text italic.',cls:'x-html-editor-tip'},underline:{title:'Underline (Ctrl+U)',text:'Underline the selected text.',cls:'x-html-editor-tip'},increasefontsize:{title:'Grow Text',text:'Increase the font size.',cls:'x-html-editor-tip'},decreasefontsize:{title:'Shrink Text',text:'Decrease the font size.',cls:'x-html-editor-tip'},backcolor:{title:'Text Highlight Color',text:'Change the background color of the selected text.',cls:'x-html-editor-tip'},forecolor:{title:'Font Color',text:'Change the color of the selected text.',cls:'x-html-editor-tip'},justifyleft:{title:'Align Text Left',text:'Align text to the left.',cls:'x-html-editor-tip'},justifycenter:{title:'Center Text',text:'Center text in the editor.',cls:'x-html-editor-tip'},justifyright:{title:'Align Text Right',text:'Align text to the right.',cls:'x-html-editor-tip'},insertunorderedlist:{title:'Bullet List',text:'Start a bulleted list.',cls:'x-html-editor-tip'},insertorderedlist:{title:'Numbered List',text:'Start a numbered list.',cls:'x-html-editor-tip'},createlink:{title:'Hyperlink',text:'Make the selected text a hyperlink.',cls:'x-html-editor-tip'},sourceedit:{title:'Source Edit',text:'Switch to source editing mode.',cls:'x-html-editor-tip'}},privates:{deferFocus:function(){this.focus(!1,!0)},getFocusEl:function(){return this.sourceEditMode?this.textareaEl:this.iframeEl}}},0,['htmleditor'],['component','box','container','fieldcontainer','htmleditor'],{'component':!0,'box':!0,'container':!0,'fieldcontainer':!0,'htmleditor':!0},['widget.htmleditor'],[['field',Ext.form.field.Field]],[Ext.form.field,'HtmlEditor',Ext.form,'HtmlEditor'],0);Ext.define('Ext.theme.neptune.form.field.HtmlEditor',{override:'Ext.form.field.HtmlEditor',defaultButtonUI:'plain-toolbar'});Ext.cmd.derive('Ext.grid.CellContext',Ext.Base,{isCellContext:!0,constructor:function(a){this.view=a},setPosition:function(a,c){var b=this;if(arguments.length===1){if(a.length){c=a[0];a=a[1]}else {if(a.isCellContext){return b.setAll(a.view,a.rowIdx,a.colIdx,a.record,a.columnHeader)}else {if(a.view){b.view=a.view}c=a.column;a=a.row}}}b.setRow(a);b.setColumn(c);return b},setAll:function(f,d,c,e,b){var a=this;a.view=f;a.rowIdx=d;a.colIdx=c;a.record=e;a.column=b;return a},setRow:function(a){var b=this,c=b.view.dataSource;if(a!==undefined){if(typeof a==='number'){b.rowIdx=Math.max(Math.min(a,c.getCount()-1),0);b.record=c.getAt(a)}else {if(a.isModel){b.record=a;b.rowIdx=c.indexOf(a)}else {if(a.tagName||a.isElement){b.record=b.view.getRecord(a);b.rowIdx=c.indexOf(b.record)}}}}return b},setColumn:function(a){var b=this,c=b.view.getVisibleColumnManager();if(a!==undefined){if(typeof a==='number'){b.colIdx=a;b.column=c.getHeaderAtIndex(a)}else {if(a.isHeader){b.column=a;b.colIdx=c.indexOf(a)}}}return b},getCell:function(a){return this.view.getCellByPosition(this,a)},getRow:function(b){var a=this.view.getRow(this.record);return b?a:Ext.get(a)},getNode:function(b){var a=this.view.getNode(this.record);return b?a:Ext.get(a)},isEqual:function(a){return a&&a.isCellContext&&a.record===this.record&&a.column===this.column},clone:function(){var a=this,b=new a.self(a.view);b.rowIdx=a.rowIdx;b.colIdx=a.colIdx;b.record=a.record;b.column=a.column;return b},privates:{isFirstColumn:function(){var a=this.getCell(!0);if(a){return !a.previousSibling}},isLastColumn:function(){var a=this.getCell(!0);if(a){return !a.nextSibling}},getLastColumnIndex:function(){var a=this.getRow(!0);if(a){return a.lastChild.cellIndex}return -1},navigate:function(c){var a=this,b=a.view.getVisibleColumnManager().getColumns();switch(c){case -1:do{if(!a.colIdx){a.colIdx=b.length-1}else {a.colIdx--}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;case 1:do{if(a.colIdx>=b.length){a.colIdx=0}else {a.colIdx++}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;}}},statics:{compare:function(a,b){return a.rowIdx-b.rowIdx||a.colIdx-b.colIdx}}},1,0,0,0,0,0,[Ext.grid,'CellContext'],0);Ext.cmd.derive('Ext.grid.ColumnComponentLayout',Ext.layout.component.Auto,{type:'columncomponent',setWidthInDom:!0,_paddingReset:{paddingTop:'',paddingBottom:''},columnAutoCls:'x-column-header-text-container-auto',beginLayout:function(a){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);a.titleContext=a.getEl('titleEl')},beginLayoutCycle:function(d){var b=this,a=b.owner,c=d.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(c){a.el.setWidth('')}a.textContainerEl[c&&!a.isGroupHeader?'addCls':'removeCls'](b.columnAutoCls);a.titleEl.setStyle(b._paddingReset)},publishInnerHeight:function(a,e){var d=this,b=d.owner,c;if(b.getRootHeaderCt().hiddenHeaders){a.setProp('innerHeight',0);return}if(!a.hasRawContent){if(b.headerWrap&&!a.hasDomProp('width')){d.done=!1;return}c=e-a.getBorderInfo().height;a.setProp('innerHeight',c-b.titleEl.getHeight(),!1)}},measureContentHeight:function(a){return a.el.dom.offsetHeight},publishInnerWidth:function(a,b){if(!a.hasRawContent){a.setProp('innerWidth',b-a.getBorderInfo().width,!1)}},calculateOwnerHeightFromContentHeight:function(a,c){var d=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),b=this.owner;if(!a.hasRawContent){if(!b.headerWrap||a.hasDomProp('width')){return c+b.titleEl.getHeight()+a.getBorderInfo().height}return null}return d},calculateOwnerWidthFromContentWidth:function(a,d){var c=this.owner,f=a.getPaddingInfo().width,e=this.getTriggerOffset(c,a),b;if(c.isGroupHeader){b=d}else {b=Math.max(d,c.textEl.getWidth()+a.titleContext.getPaddingInfo().width)}return b+f+e},getTriggerOffset:function(a,c){var b=0;if(c.widthModel.shrinkWrap&&!a.menuDisabled){if(a.query('>:not([hidden])').length===0){b=a.getTriggerElWidth()}}return b}},0,0,0,0,['layout.columncomponent'],0,[Ext.grid,'ColumnComponentLayout'],0);Ext.cmd.derive('Ext.layout.container.Fit',Ext.layout.container.Container,{alternateClassName:'Ext.layout.FitLayout',itemCls:'x-fit-item',type:'fit',manageMargins:!0,sizePolicies:{0:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},1:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},2:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},3:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}},getItemSizePolicy:function(d,b){var a=b||this.owner.getSizeModel(),c=(a.width.shrinkWrap?0:1)|(a.height.shrinkWrap?0:2);return this.sizePolicies[c]},beginLayoutCycle:function(a,p){var f=this,j=f.lastHeightModel&&f.lastHeightModel.calculated,m=f.lastWidthModel&&f.lastWidthModel.calculated,l=m||j,h=0,i=0,b,k,g,e,q,n,c,d,o,r;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(l&&a.targetContext.el.dom.tagName.toUpperCase()!=='TD'){l=m=j=!1}k=a.childItems;q=k.length;for(g=0;g0){for(g=0;g'+a.view.emptyText+''}a.view.getComponentLayout().headerCt=a.headerCt;a.mon(a.view,{uievent:a.processEvent,scope:a});a.headerCt.view=a.view;if(a.hasListeners.viewcreated){a.fireEvent('viewcreated',a,a.view)}}return a.view},getColumnManager:function(){return this.columnManager},getVisibleColumnManager:function(){return this.visibleColumnManager},getTopLevelColumnManager:function(){return this.ownerGrid.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},setAutoScroll:Ext.emptyFn,applyScrollable:function(a){if(this.view){this.view.setScrollable(a)}return a},getScrollable:function(){return null},processEvent:function(g,h,f,c,d,b,e,i){var a=b.position.column;if(a){return a.processEvent.apply(a,arguments)}},ensureVisible:function(b,a){this.doEnsureVisible(b,a)},scrollByDeltaY:function(b,a){this.getView().scrollBy(0,b,a)},scrollByDeltaX:function(b,a){this.getView().scrollBy(b,0,a)},afterCollapse:function(){this.saveScrollPos();Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){Ext.panel.Panel.prototype.afterExpand.apply(this,arguments);this.restoreScrollPos()},saveScrollPos:Ext.emptyFn,restoreScrollPos:Ext.emptyFn,onHeaderResize:function(){var a=this.view.getScrollable(),b;if(a&&a.isTouchScroller){b=a.getSize();if(b){a.setSize({x:this.headerCt.getTableWidth(),y:b.y})}}},onHeaderMove:function(e,f,b,c,d){var a=this;if(a.optimizedColumnMove===!1){a.view.refreshView()}else {a.view.moveColumn(c,d,b)}a.delayScroll()},onHeaderHide:function(b,c){var a=this.view;if(!b.childHideCount&&a.refreshCounter){a.refreshView()}},onHeaderShow:function(b,c){var a=this.view;if(a.refreshCounter){a.refreshView()}},onHeadersChanged:function(b,c){var a=this;if(a.rendered&&!a.reconfiguring){a.view.refreshView();a.delayScroll()}},delayScroll:function(){var a=this.view;if(a){this.scrollTask.delay(10,null,null,[a])}},onViewReady:function(){this.fireEvent('viewready',this)},onRestoreHorzScroll:function(){var a=this,b=a.scrollXPos;if(b){a.syncHorizontalScroll(a,!0)}},getScrollerOwner:function(){var a=this;if(!this.scrollerOwner){a=this.up('[scrollerOwner]')}return a},getLhsMarker:function(){var a=this;return a.lhsMarker||(a.lhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getRhsMarker:function(){var a=this;return a.rhsMarker||(a.rhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},updateHeaderBorders:function(a){this[a?'removeCls':'addCls'](this.noHeaderBordersCls)},getNavigationModel:function(){return this.getView().getNavigationModel()},getSelectionModel:function(){return this.getView().getSelectionModel()},getScrollTarget:function(){var a=this.getScrollerOwner().query('tableview');return a[a.length-1]},syncHorizontalScroll:function(e,b){var a=this,c=a.view.getScrollX(),d;b=b===!0;if(a.rendered&&(b||c!==a.scrollXPos)){if(b){d=a.getScrollTarget();d.setScrollX(c)}a.headerCt.setScrollX(c);a.scrollXPos=c}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(b,d){var a=this,c=a.getView();if(b){a.store=b;if(c.store!==b){c.bindStore(b,!1)}a.mon(b,{load:a.onStoreLoad,scope:a});a.storeRelayers=a.relayEvents(b,['filterchange','groupchange'])}else {a.unbindStore()}},unbindStore:function(){var a=this,b=a.store,c;if(b){b.trackStateChanges=!1;a.store=null;a.mun(b,{load:a.onStoreLoad,scope:a});Ext.destroy(a.storeRelayers);c=a.view;if(c.store){c.bindStore(null)}}},setColumns:function(a){if(a.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,a)}},setStore:function(a){this.reconfigure(a);if(this.autoLoad&&!a.isEmptyStore&&!(a.loading||a.isLoaded())){a.load()}},reconfigure:function(b,c){var a=this,f=a.store,e=a.headerCt,i=a.lockable,h=e?e.items.getRange():a.columns,d=a.getView(),j,g;if(arguments.length===1&&Ext.isArray(b)){c=b;b=null}if(c){c=Ext.Array.slice(c)}a.reconfiguring=!0;if(b){b=Ext.StoreManager.lookup(b)}a.fireEvent('beforereconfigure',a,b,c,f,h);Ext.suspendLayouts();if(i){a.reconfigureLockable(b,c)}else {j=d.blockRefresh;d.blockRefresh=!0;if(b&&b!==f){a.unbindStore();a.bindStore(b)}if(c){delete a.scrollXPos;e.removeAll();e.add(c)}d.blockRefresh=j;g=d.refreshCounter}Ext.resumeLayouts(!0);if(i){a.afterReconfigureLockable()}else {if(d.refreshCounter===g){d.refreshView()}}a.fireEvent('reconfigure',a,b,c,f,h);delete a.reconfiguring},beforeDestroy:function(){var a=this,b=a.scrollTask;if(b){b.cancel();a.scrollTask=null}Ext.destroy(a.focusEnterLeaveListeners);Ext.panel.Panel.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.lockable){a.destroyLockable()}a.unbindStore();Ext.panel.Panel.prototype.onDestroy.call(this);a.columns=a.storeRelayers=a.columnManager=a.visibleColumnManager=null},destroy:function(){var a=this;Ext.panel.Panel.prototype.destroy.call(this);if(a.destroyed){a.view=a.selModel=a.headerCt=null}},privates:{initFocusableElement:function(){},doEnsureVisible:function(a,c){if(this.lockable){return this.ensureLockedVisible(a,c)}if(typeof a!=='number'&&!a.isEntity){a=this.store.getById(a)}var b=this,d=b.getView(),f=d.getNode(a),g,h,k,j,m,l,i,e,n;if(c){g=c.callback;h=c.scope;k=c.animate;j=c.highlight;m=c.select;l=c.focus;e=c.column}if(b.deferredEnsureVisible){b.deferredEnsureVisible.destroy()}if(!d.componentLayoutCounter){b.deferredEnsureVisible=d.on({resize:b.doEnsureVisible,args:Ext.Array.slice(arguments),scope:b,single:!0,destroyable:!0});return}if(typeof e==='number'){e=b.ownerGrid.getVisibleColumnManager().getColumns()[e]}if(f){i=d.getScrollable();if(e){n=Ext.fly(f).selectNode(e.getCellSelector())}if(i){i.scrollIntoView(n||f,!!e,k,j)}if(!a.isEntity){a=d.getRecord(f)}if(m){d.getSelectionModel().select(a)}if(l){d.getNavigationModel().setPosition(a,0)}Ext.callback(g,h||b,[!0,a,f])}else {if(d.bufferedRenderer){d.bufferedRenderer.scrollTo(a,{animate:k,highlight:j,select:m,focus:l,column:e,callback:function(f,e,d){Ext.callback(g,h||b,[!0,e,d])}})}else {Ext.callback(g,h||b,[!1,null])}}},getFocusEl:function(){return this.getView().getFocusEl()},setActionableMode:function(b,c){var a=this.ownerGrid;if(!a.destroying&&a.view.setActionableMode(b,c)!==!1){a.fireEvent('actionablemodechange',b);a[b?'addCls':'removeCls'](a.actionableModeCls);return !0}}}},1,['tablepanel'],['component','box','container','panel','tablepanel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0},['widget.tablepanel'],0,[Ext.panel,'Table'],0);Ext.define('Ext.theme.neptune.panel.Table',{override:'Ext.panel.Table',lockableBodyBorder:!0,initComponent:function(){var a=this;(arguments.callee.$previous||Ext.panel.Panel.prototype.initComponent).call(this);if(!a.hasOwnProperty('bodyBorder')&&!a.hideHeaders&&(a.lockableBodyBorder||!a.lockable)){a.bodyBorder=!0}}});Ext.cmd.derive('Ext.grid.ColumnLayout',Ext.layout.container.HBox,{type:'gridcolumn',firstHeaderCls:'x-column-header-first',lastHeaderCls:'x-column-header-last',initLayout:function(){Ext.layout.container.HBox.prototype.initLayout.call(this);if(this.scrollbarWidth===undefined){this.self.prototype.scrollbarWidth=Ext.getScrollbarSize().width}},beginLayout:function(d){var b=this,j=b.owner,e=b.firstHeaderCls,f=b.lastHeaderCls,h=[e,f],i=b.getVisibleItems(),g=i.length,c,a;Ext.layout.container.HBox.prototype.beginLayout.call(this,d);for(c=0;c0){b=this.getColumns()[a-1]}return b},getNextSibling:function(c){var a=this.getHeaderIndex(c),b;if(a!==-1){b=this.getColumns()[a+1]}return b||null},getFirst:function(){var a=this.getColumns();return a.length>0?a[0]:null},getLast:function(){var a=this.getColumns(),b=a.length;return b>0?a[b-1]:null},getHeaderByDataIndex:function(d){var c=this.getColumns(),e=c.length,a,b;for(a=0;a=d.left&&e=n.getMaxPosition().y-c.all.last(!0).offsetHeight){b.rowIdx--}e=Math.min(b.rowIdx,h.getCount()-1);f=Math.min(f,j.getColumns().length);d=h.getAt(e);i=j.getColumns()[f]}}else {if(k){d=e=null}else {if(g==null){g=a.lastFocused?a.lastFocused.column:0}if(typeof b==='number'){e=Math.max(Math.min(b,h.getCount()-1),0);d=h.getAt(b)}else {if(b.isEntity){d=b;e=h.indexOf(d)}else {if(b.tagName){d=c.getRecord(b);e=h.indexOf(d);if(e===-1){d=null}}else {if(p){return}k=!0;d=e=null}}}}if(d){if(e===-1){a.recordIndex=-1;d=h.getAt(0);e=0;g=null}if(g==null){if(!(i=a.column)){f=0;i=j.getColumns()[0]}}else {if(typeof g==='number'){i=j.getColumns()[g];f=g}else {i=g;f=j.indexOf(g)}}}else {k=!0;i=f=null}}if(e===a.recordIndex&&f===a.columnIndex&&c===a.position.view){return a.focusPosition(a.position)}if(a.cell){a.cell.removeCls(a.focusCls)}a.previousRecordIndex=a.recordIndex;a.previousRecord=a.record;a.previousItem=a.item;a.previousCell=a.cell;a.previousColumn=a.column;a.previousColumnIndex=a.columnIndex;a.previousPosition=a.position.clone();a.selectionStart=m.selectionStart;a.position.setAll(c,a.recordIndex=e,a.columnIndex=f,a.record=d,a.column=i);if(k){a.item=a.cell=null}else {a.focusPosition(a.position,o)}if(!q){m.fireEvent('focuschange',m,a.previousRecord,a.record);c.fireEvent('rowfocus',a.record,a.item,a.recordIndex);c.fireEvent('cellfocus',a.record,a.cell,a.position)}if(l&&!o&&a.cell!==a.previousCell){a.fireNavigateEvent(l)}},focusPosition:function(b){var a=this,c,d;a.item=a.cell=null;if(b&&b.record&&b.column){c=b.view;if(b.rowElement){d=a.item=b.rowElement}else {d=c.getRowByRecord(b.record)}if(d){a.cell=b.cellElement||Ext.fly(d).down(b.column.getCellSelector(),!0);if(a.cell){a.cell=new Ext.dom.Fly(a.cell);c.lastFocused=a.lastFocused=a.position.clone();a.focusItem(a.cell);c.focusEl=a.cell}else {a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null}}else {d=c.dataSource.indexOf(b.record);a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null;if(d!==-1&&c.bufferedRenderer){a.lastKeyEvent=null;c.bufferedRenderer.scrollTo(d,!1,a.afterBufferedScrollTo,a)}}}},focusItem:function(a){a.addCls(this.focusCls);a.focus()},getCell:function(){return this.cell},getPosition:function(f){var c=this,a=c.position,b,e,d;if(a.record&&a.column){if(f){return a}e=a.view;d=e.dataSource;b=d.indexOf(a.record);if(b===-1){b=a.rowIdx;if(!(a.record=d.getAt(b))){b=-1}}if(b===-1||e.getVisibleColumnManager().indexOf(a.column)===-1){a.setAll();c.record=c.column=c.recordIndex=c.columnIndex=null}else {return a}}return null},getLastFocused:function(){var c=this,b,a=c.lastFocused;if(a&&a.record&&a.column){b=a.view;if(b.dataSource.indexOf(a.record)!==-1&&b.getVisibleColumnManager().indexOf(a.column)!==-1){return a}}},onKeyTab:function(a){var e=!a.shiftKey,d=a.position.clone(),g=d.view,f=a.position.cellElement,b=Ext.fly(f).findTabbableElements(),c,i=g.ownerGrid.actionables,j=i.length,h;a.preventDefault();c=b[Ext.Array.indexOf(b,a.target)+(e?1:-1)];while(!c&&(f=f[e?'nextSibling':'previousSibling'])){d.setColumn(g.getHeaderByCell(f));for(h=0;hj.height}a.setProp('viewOverflowY',i)}},measureContentHeight:function(e){var d=this.owner,b=d.body.dom,c=d.emptyEl,a=0;if(c){a+=c.offsetHeight}if(b){a+=b.offsetHeight}if(e.headerContext.state.boxPlan.tooNarrow){a+=Ext.getScrollbarSize().height}return a},flushColumnWidths:function(){var a=this,i=a.layout,d=a.ownerContext,g=a.columnsChanged,h=d.target,j=g.length,b,c,e,f;if(d.state.columnFlusher!==a){return}for(c=0;c0){h+=b;Ext.fly(f[c].el).setHeight(a)}else {g-=b}}a=i.rowHeight+g;if(Ext.isIE9&&d.view.ownerGrid.rowLines){a--}if(d.rowHeight+h=c+d;a--){e[a]=e[a-d];e[a].setAttribute('data-recordIndex',a)}}b.endIndex=b.endIndex+d}else {b.startIndex=c;b.endIndex=c+d-1}for(a=0;ab.endIndex){delete d[a]}}while(a!==f);delete d[a]},getCount:function(){return this.count},slice:function(e,a){var d=this.elements,c=[],b;if(!a){a=this.endIndex}else {a=Math.min(this.endIndex,a-1)}for(b=e||this.startIndex;b<=a;b++){c.push(d[b])}return c},replaceElement:function(a,b,d){var e=this.elements,c=typeof a==='number'?a:this.indexOf(a);if(c>-1){b=Ext.getDom(b);if(d){a=e[c];a.parentNode.insertBefore(b,a);Ext.removeNode(a);b.setAttribute('data-recordIndex',c)}this.elements[c]=b}return this},indexOf:function(b){var c=this.elements,a;b=Ext.getDom(b);for(a=this.startIndex;a<=this.endIndex;a++){if(c[a]===b){return a}}return -1},removeRange:function(g,c,j){var a=this,e=a.elements,i=[],d,b,h,f;if(c==null){c=a.endIndex+1}else {c=Math.min(a.endIndex+1,c+1)}if(g==null){g=a.startIndex}h=c-g;for(b=g,f=c;b<=a.endIndex;b++,f++){d=e[b];if(b=b.startIndex&&f<=b.endIndex){a[a.length]=f}}Ext.Array.sort(a);e=a.length}else {if(ab.endIndex){return}e=1;a=[a]}for(d=g=a[0],c=0;d<=b.endIndex;d++,g++){if(c=b.startIndex){j=h[d]=h[g];j.setAttribute('data-recordIndex',d)}else {delete h[d]}}b.endIndex-=e;b.count-=e},scroll:function(i,t,m){var b=this,e=b.view,p=e.store,c=b.elements,r=i.length,q=e.getNodeContainer(),k=e.hasListeners.itemremove,s=e.hasListeners.itemadd,h=b.statics().range,a,d,o,j,l,n,f,g;if(!i.length){return}if(t===-1){if(m){if(k){f=[];g=[]}n=b.endIndex-m+1;if(h){h.setStartBefore(c[n]);h.setEndAfter(c[b.endIndex]);h.deleteContents();for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}else {for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];Ext.removeNode(d);if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}e.fireEvent('itemremove',f,n,g,e);b.endIndex-=m}if(i.length){l=e.bufferRender(i,b.startIndex-=r);j=l.children;for(a=0;a','{[view.renderTHead(values, out, parent)]}','{%','view.renderRows(values.rows, values.columns, values.viewStartIndex, out);','%}','{[view.renderTFoot(values, out, parent)]}','','{% ','view = columns = column = null;','%}',{definitions:'var view, tableCls, columns, i, len, column;',priority:0}],outerRowTpl:['','{%','this.nextTpl.applyOut(values, out, parent)','%}','',{priority:9999}],rowTpl:['{%','var dataRowCls = values.recordIndex === -1 ? "" : " x-grid-row";','%}','','{%','parent.view.renderCell(values, parent.record, parent.recordIndex, parent.rowIndex, xindex - 1, out, parent)','%}','','',{priority:0}],cellTpl:['{tdStyle}"',' tabindex="-1" data-columnid="{[values.column.getItemId()]}">','
    {style}" ','{cellInnerAttr:attributes}>{value}
    ','',{priority:0}],refreshSelmodelOnRefresh:!1,tableValues:{},rowValues:{itemClasses:[],rowClasses:[]},cellValues:{classes:['x-grid-cell x-grid-td']},constructor:function(a){if(a.grid.isTree){a.baseCls='x-tree-view'}Ext.view.View.prototype.constructor.call(this,a)},hasVariableRowHeight:function(b){var a=this;return a.variableRowHeight||a.store.isGrouped()||a.getVisibleColumnManager().hasVariableRowHeight()||!b&&a.lockingPartner&&a.lockingPartner.hasVariableRowHeight(!0)},initComponent:function(){var a=this;if(a.columnLines){a.addCls(a.grid.colLinesCls)}if(a.rowLines){a.addCls(a.grid.rowLinesCls)}a.body=new Ext.dom.Fly();a.body.id=a.id+'gridBody';if(!a.trackOver){a.overItemCls=null}a.headerCt.view=a;a.grid.view=a;a.initFeatures(a.grid);a.itemSelector=a.getItemSelector();a.all=new Ext.view.NodeCache(a);Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(a,f){var d=this,b=d.ownerGrid,e=a.type,c=d.disableSelection||b.disableSelection;if(!f){if(!(a&&a.isSelectionModel)){a=b.selModel||a}}if(a){if(a.isSelectionModel){a.allowDeselect=b.allowDeselect||a.selectionMode!=='SINGLE';a.locked=c}else {if(typeof a==='string'){a={type:a}}else {a.type=b.selType||a.selType||a.type||e}if(!a.mode){if(b.simpleSelect){a.mode='SIMPLE'}else {if(b.multiSelect){a.mode='MULTI'}}}a=Ext.Factory.selection(Ext.apply({allowDeselect:b.allowDeselect,locked:c},a))}}return a},updateSelectionModel:function(b,c){var a=this;if(c){c.un({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});Ext.destroy(a.selModelRelayer)}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});a.selModel=b},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(c,h,j){var b=this,m=j>1,e=m&&document.createRange?document.createRange():null,g=m&&!e?document.createDocumentFragment():null,l=h,p=b.getGridColumns().length,k=p-1,r=(b.firstCls||b.lastCls)&&(h===0||h===p||c===0||c===k),f,i,q,n,d,a,o;if(b.rendered&&h!==c){q=b.el.query(b.rowSelector);for(f=0,n=q.length;f=(a-1)*b&&d.endIndex<=a*b-1){c.get(a);return !1}},onViewScroll:function(a,b,c){if(!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,a,b,c)}},createRowElement:function(e,f,d){var a=this,c=a.renderBuffer,b=a.collectData([e],f);b.columns=d;a.tpl.overwrite(c,b);a.cleanupData();return Ext.fly(c).down(a.getNodeContainerSelector(),!0).firstChild},bufferRender:function(e,f){var c=this,a=c.renderBuffer,b,d=document.createRange?document.createRange():null;c.tpl.overwrite(a,c.collectData(e,f));c.cleanupData();Ext.fly(a).saveTabbableState({skipSelf:!0,includeHidden:!0});a=Ext.fly(a).down(c.getNodeContainerSelector(),!0);if(d){d.selectNodeContents(a);b=d.extractContents()}else {b=document.createDocumentFragment();while(a.firstChild){b.appendChild(a.firstChild)}}return {fragment:b,children:Ext.Array.toArray(b.childNodes)}},collectData:function(c,b){var a=this;a.rowValues.view=a;a.tableValues.view=a;a.tableValues.rows=c;a.tableValues.columns=null;a.tableValues.viewStartIndex=b;a.tableValues.touchScroll=a.touchScroll;a.tableValues.tableStyle='width:'+a.headerCt.getTableWidth()+'px';return a.tableValues},cleanupData:function(){var a=this.tableValues;a.view=a.columns=a.rows=this.rowValues.view=null},refreshSize:function(c){var a=this,b=a.getBodySelector();if(b){a.body.attach(a.el.down(b,!0))}if(!a.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.apply(this,arguments);if(c||a.hasVariableRowHeight()&&a.dataSource.getCount()){a.grid.updateLayout()}Ext.resumeLayouts(!0)}},clearViewEl:function(g){var a=this,b=a.all,i=a.getStore(),d,c,f,h=b.slice(),e=[];if(a.hasListeners.itemremove){for(d=b.startIndex;d<=b.endIndex;d++){e.push(i.getByInternalId(b.item(d,!0).getAttribute('data-recordId')))}}a.fireEvent('itemremove',e,b.startIndex,h,a);Ext.view.View.prototype.clearViewEl.call(this);c=Ext.fly(a.getNodeContainer());if(c&&!g){f=a.getTargetEl();if(f.dom!==c.dom){c.destroy()}}},getMaskTarget:function(){return this.ownerCt.body},statics:{getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},getRecord:function(a){if(this.store.destroyed){return}if(a.isModel){return a}a=this.getNode(a);if(a){return this.dataSource.getByInternalId(a.getAttribute('data-recordId'))}},indexOf:function(a){a=this.getNode(a);if(!a&&a!==0){return -1}return this.all.indexOf(a)},indexInStore:function(a){return a?this.dataSource.indexOf(this.getRecord(a)):-1},indexOfRow:function(a){var c=this.dataSource,b;if(a.isCollapsedPlaceholder){b=c.indexOfPlaceholder(a)}else {b=c.indexOf(a)}return b},renderRows:function(e,g,d,h){var b=this,a=b.rowValues,f=e.length,c;a.view=b;a.columns=g;a.rowRole=b.rowAriaRole;b.cellValues.cellRole=b.cellAriaRole;for(c=0;c');for(a=0;a')}d.push('')},renderRow:function(c,e,j){var a=this,k=e===-1,h=a.selectionModel,b=a.rowValues,d=b.itemClasses,g=b.rowClasses,l=a.itemCls,f,i=a.rowTpl;b.rowAttr={};b.record=c;b.recordId=c.internalId;b.recordIndex=a.store.indexOf(c);b.rowIndex=e;b.rowId=a.getRowId(c);b.itemCls=b.rowCls='';if(!b.columns){b.columns=a.ownerCt.getVisibleColumnManager().getColumns()}d.length=g.length=0;if(!k){d[0]=l;if(!a.ownerCt.disableSelection&&h.isRowSelected){if(h.isRowSelected(c)){d.push(a.selectedItemCls)}}if(a.stripeRows&&e%2!==0){d.push(a.altRowCls)}if(a.getRowClass){f=a.getRowClass(c,e,null,a.dataSource);if(f){g.push(f)}}}if(j){i.applyOut(b,j,a.tableValues)}else {return i.apply(b,a.tableValues)}},renderCell:function(b,f,j,n,m,p){var c=this,l,h=c.selectionModel,a=c.cellValues,d=a.classes,k=f.data[b.dataIndex],o=c.cellTpl,g,e,i=c.navigationModel.getPosition();a.record=f;a.column=b;a.recordIndex=j;a.rowIndex=n;a.columnIndex=a.cellIndex=m;a.align=b.align;a.innerCls=b.innerCls;a.tdCls=a.tdStyle=a.tdAttr=a.style='';a.unselectableAttr=c.enableTextSelection?'':'unselectable="on"';d[1]=b.getCellId();e=2;if(b.renderer&&b.renderer.call){l=c.ownerCt.columnManager.getHeaderIndex(b);g=b.renderer.call(b.usingDefaultRenderer?b:b.scope||c.ownerCt,k,a,f,j,l,c.dataSource,c);if(a.css){f.cssWarning=!0;a.tdCls+=' '+a.css;a.css=null}if(a.tdCls){d[e++]=a.tdCls}}else {g=k}a.value=g==null||g===''?b.emptyCellText:g;if(b.tdCls){d[e++]=b.tdCls}if(c.markDirty&&f.dirty&&f.isModified(b.dataIndex)){d[e++]=c.dirtyCls}if(b.isFirstVisible){d[e++]=c.firstCls}if(b.isLastVisible){d[e++]=c.lastCls}if(!c.enableTextSelection){d[e++]=c.unselectableCls}if(h&&(h.isCellModel||h.isSpreadsheetModel)&&h.isCellSelected(c,j,b)){d[e++]=c.selectedCellCls}if(i&&i.record.id===f.id&&i.column===b){d[e++]=c.focusedItemCls}d.length=e;a.tdCls=d.join(' ');o.applyOut(a,p);a.column=a.record=null},getRow:function(a){var b;if(!a&&a!==0||!this.rendered){return null}if(a.target){a=a.target}if(Ext.isString(a)){return Ext.fly(a).down(this.rowSelector,!0)}if(Ext.isNumber(a)){b=this.all.item(a);return b&&b.down(this.rowSelector,!0)}if(a.isModel){return this.getRowByRecord(a)}b=Ext.fly(a);if(b.is(this.itemSelector)){return this.getRowFromItem(b)}return b.findParent(this.rowSelector,this.getTargetEl())},getRowId:function(a){return this.id+'-record-'+a.internalId},constructRowId:function(a){return this.id+'-record-'+a},getNodeById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!1)},getRowById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!0)},getNodeByRecord:function(a){return this.retrieveNode(this.getRowId(a),!1)},getRowByRecord:function(a){return this.retrieveNode(this.getRowId(a),!0)},getRowFromItem:function(c){var b=Ext.getDom(c).tBodies[0].childNodes,d=b.length,a;for(a=0;a1){A=c._extData;j=a.createRowElement(d,a.indexOfRow(d),f);if(Ext.fly(c,'_internal').hasCls(u)){Ext.fly(j).addCls(u)}if(Ext.isIE9m&&c.mergeAttributes){c.mergeAttributes(j,!0)}else {o=j.attributes;H=o.length;for(l=0;l0){if(Ext.supports.ScrollWidthInlinePaddingBug){e+=c.getCellPaddingAfter(d[0])}if(c.columnLines){e+=Ext.fly(d[0].parentNode).getBorderWidth('lr')}}g.setWidth(1);b.textEl.setStyle({'text-overflow':'clip',display:'table-cell'});a=b.textEl.dom.offsetWidth+b.titleEl.getPadding('lr');b.textEl.setStyle({'text-overflow':'',display:''});for(;fh){return !1}if(d){b.view=d}b.setPosition(a,0)}else {b.navigate(+1)};break;case 'left':if(e.isFirstColumn()){a=d&&c.isNormalView?a:a-1;if(a<0){return !1}if(d){b.view=d;f=d.getVisibleColumnManager().getColumns()}b.setPosition(a,f[f.length-1])}else {b.navigate(-1)};break;case 'up':if(a===0){return !1}else {b.setRow(a-1)};break;case 'down':if(a===h){return !1}else {b.setRow(a+1)};break;}if(g&&g.call(j||c,b)!==!0){return !1}return b},walkRows:function(f,e){var i=this,j=i.dataSource,g=0,d=f,h,b=e<0?0:j.getCount()-1,c=b?1:-1,a=f;do{if(b?a>=b:a<=b){return d||b}a+=c;if((h=Ext.fly(i.getRow(a)))&&h.isVisible(!0)){g+=c;d=a}}while(g!==e);return a},walkRecs:function(h,g){var k=this,a=k.dataSource,i=0,e=h,j,c=g<0?0:(a.isBufferedStore?a.getTotalCount():a.getCount())-1,f=c?1:-1,b=a.indexOf(h),d;do{if(c?b>=c:b<=c){return e}b+=f;d=a.getAt(b);if(!d.isCollapsedPlaceholder&&(j=Ext.fly(k.getNodeByRecord(d)))&&j.isVisible(!0)){i+=f;e=d}}while(i!==g);return e},getFirstVisibleRowIndex:function(){var a=this,c=a.dataSource.isBufferedStore?a.dataSource.getTotalCount():a.dataSource.getCount(),b=a.indexOf(a.all.first())-1;do{b+=1;if(b===c){return}}while(!Ext.fly(a.getRow(b)).isVisible(!0));return b},getLastVisibleRowIndex:function(){var b=this,a=b.indexOf(b.all.last());do{a-=1;if(a===-1){return}}while(!Ext.fly(b.getRow(a)).isVisible(!0));return a},getHeaderCt:function(){return this.headerCt},getPosition:function(b,a){return (new Ext.grid.CellContext(this)).setPosition(b,a)},onDestroy:function(){var a=this,c=a.featuresMC,d,b;if(c){for(b=0,d=c.getCount();b=a.viewSize)){a.onReplace(e,d,[],c)}else {Ext.view.View.prototype.onAdd.apply(this,arguments)}b.setPendingStripe(d)},onRemove:function(f,d,e){var a=this,b=a.bufferedRenderer,c;if(a.rendered&&b&&a.dataSource.getCount()+d.length>=b.viewSize){c=a.saveFocusState();b.onReplace(f,e,d,[]);c()}else {Ext.view.View.prototype.onRemove.apply(this,arguments)}a.setPendingStripe(e)},saveFocusState:function(){var b=this,g=b.dataSource,c=b.actionableMode,d=b.getNavigationModel(),a=c?b.actionPosition:d.getPosition(!0),f,e;if(a){a=a.clone();if(c){b.ownerGrid.setActionableMode(!1)}b.el.dom.focus();d.setPosition();return function(){if(g.getCount()){f=Math.min(a.rowIdx,b.all.getCount()-1);e=Math.min(a.colIdx,b.getVisibleColumnManager().getColumns().length-1);a=(new Ext.grid.CellContext(b)).setPosition(g.contains(a.record)?a.record:f,e);if(c){b.ownerGrid.setActionableMode(!0,a)}else {b.cellFocused=!0;d.setPosition(a,null,null,null,!0)}}else {a.column.focus()}}}return Ext.emptyFn},onDataRefresh:function(c){var b=this,a=b.ownerCt;if(a&&a.isCollapsingOrExpanding===2){a.on('expand',b.onDataRefresh,b,{single:!0});return}Ext.view.View.prototype.onDataRefresh.call(this,c)},getViewRange:function(){var a=this;if(a.bufferedRenderer){return a.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(b){var a=this.stripeOnUpdate;if(a===null){a=b}else {a=Math.min(a,b)}this.stripeOnUpdate=a},onEndUpdate:function(){var b=this,a=b.stripeOnUpdate,c=b.all.startIndex;if(b.rendered&&(a||a===0)){if(a-1)&&!g;b=b+(c?1:-1)){o=n[b];e.setColumn(o);k=Ext.fly(d).down(e.column.getCellSelector());for(h=0;hj;e=f?1:0;d=a.getGridColumns();for(c=0,i=d.length;c=0&&b<=a.view.dataSource.getCount()){if(e){c=a.down(':focusable:not([isButton]):first');d.column.getView().getScrollable().scrollIntoView(d.ownerCt.child(':focusable').el)}else {c=a.down(':focusable:not([isButton]):last')}a.editingPlugin.startEdit(b,c.column)}}}},destroyColumnEditor:function(a){var b;if(a.hasEditor()&&(b=a.getEditor())){b.destroy()}},getFloatingButtons:function(){var a=this,b=a.floatingButtons;if(!b){a.floatingButtons=b=new Ext.grid.RowEditorButtons({ownerCmp:a,rowEditor:a})}return b},repositionIfVisible:function(b){var a=this,c=a.view;if(b&&(b===a||!b.el.isAncestor(c.el))){return}if(a.isVisible()&&c.isVisible(!0)){a.reposition()}},isLayoutChild:function(a){return !1},getRefOwner:function(){return this.editingPlugin.grid},getRefItems:function(c){var b=this,a;if(b.lockable){a=[b.lockedColumnContainer];a.push.apply(a,b.lockedColumnContainer.getRefItems(c));a.push(b.normalColumnContainer);a.push.apply(a,b.normalColumnContainer.getRefItems(c))}else {a=Ext.form.Panel.prototype.getRefItems.apply(this,arguments)}a.push.apply(a,b.getFloatingButtons().getRefItems(c));return a},reposition:function(c,j){var a=this,d=a.context,g=d&&d.row,i=a.wrapEl,h,f,e,b;if(g&&Ext.isElement(g)){e=a.syncButtonPosition(a.getScrollDelta());h=a.calculateLocalRowTop(g);f=a.calculateEditorTop(h);if(!j){b=function(){if(e){a.scrollingViewEl.scrollBy(0,e,!0)}a.focusColumnField(d.column)}}a.syncEditorClip();if(c){i.animate(Ext.applyIf({to:{top:f},duration:c.duration||125,callback:b},c))}else {i.setLocalY(f);if(b){b()}}}},getScrollDelta:function(){var b=this,d=b.scrollingViewEl.dom,e=b.context,c=b.body,a=0;if(e){a=Ext.fly(e.row).getOffsetsTo(d)[1];if(a<0){a-=c.getBorderPadding().beforeY}else {if(a>0){a=Math.max(a+b.getHeight()+b.floatingButtons.getHeight()-d.clientHeight-c.getBorderWidth('b'),0);if(a>0){a-=c.getBorderPadding().afterY}}}}return a},calculateLocalRowTop:function(b){var a=this.editingPlugin.grid;return Ext.fly(b).getOffsetsTo(a)[1]-a.el.getBorderWidth('t')+this.lastScrollTop},calculateEditorTop:function(a){return a-this.body.getBorderPadding().beforeY-this.lastScrollTop},getClientWidth:function(){var c=this,b=c.editingPlugin.grid,a;if(c.lockable){a=b.lockedGrid.getWidth()+b.normalGrid.view.el.dom.clientWidth}else {a=b.view.el.dom.clientWidth}return a},getEditor:function(a){var b=this;if(Ext.isNumber(a)){return b.query('[isEditorComponent]')[a]}else {if(a.isHeader&&!a.isGroupHeader){return a.getEditor()}}},addFieldsForColumn:function(a,e){var b=this,d,f,c;if(Ext.isArray(a)){for(d=0,f=a.length;ddisplayfield');d=e.length;for(a=0;a0){if(!a._buttonsOnTop){b.setButtonPosition('top');a._buttonsOnTop=!0}d=0}else {if(a._buttonsOnTop!==!1){b.setButtonPosition('bottom');a._buttonsOnTop=!1}else {b.setButtonPosition(b.position)}}return d},syncEditorClip:function(){var a=this,b=a.getScrollDelta(),h=a.el,i=a.floatingButtons,c=i.el,g=Math.max,f,e,d;if(b){a.isOverflowing=!0;f=a.body;e=i.getHeight();d=a.getHeight();g=Math.max;if(b>0){if(a._buttonsOnTop){b-=e-f.getBorderWidth('b');a.clipBottom(h,g(d-b),0);b-=d-f.getBorderWidth('t');if(b>0){a.clipBottom(c,g(e-b,0))}else {a.clearClip(c)}}else {a.clipBottom(c,g(e-b,0));b-=e-f.getBorderWidth('b');if(b>0){a.clipBottom(h,g(d-b,0))}else {a.clearClip(h)}}}else {if(b<0){b=Math.abs(b);a.clipTop(h,b);b-=d-f.getBorderWidth('b');if(b>0){a.clipTop(c,b)}else {a.clearClip(c)}}}}else {if(a.isOverflowing){a.clearClip(c);a.clearClip(h);a.isOverflowing=!1}}},focusColumnField:function(a){var b,c;if(a&&!a.destroyed){if(a.isVisible()){b=this.getEditor(a);if(b&&b.isFocusable(!0)){c=!0;b.focus()}}if(!c){this.focusColumnField(a.next())}}},cancelEdit:function(){var b=this,d=b.getForm(),f=d.getFields(),c=f.items,e=c.length,a;if(b._cachedNode){b.clearCache()}b.hide();d.clearInvalid();for(a=0;ae&&f[isFormField]'),g=f.length,c,d,e;for(c=0;c'+b.join('')+''},createErrorListItem:function(a,b){a=b?b+': '+a:a;return '
  • '+a+'
  • '},beforeDestroy:function(){Ext.destroy(this.floatingButtons,this.tooltip);Ext.form.Panel.prototype.beforeDestroy.call(this)},clipBottom:function(b,a){b.setStyle('clip','rect(0 auto '+a+'px 0)')},clipTop:function(b,a){b.setStyle('clip','rect('+a+'px, auto, auto, 0)')},clearClip:function(a){a.setStyle('clip',Ext.isIE8?'rect(-1000px auto 1000px auto)':'auto')}},0,['roweditor'],['component','box','container','panel','form','roweditor'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'roweditor':!0},['widget.roweditor'],0,[Ext.grid,'RowEditor'],0);Ext.define('Ext.theme.neptune.grid.RowEditor',{override:'Ext.grid.RowEditor',buttonUI:'default-toolbar'});Ext.cmd.derive('Ext.grid.plugin.HeaderResizer',Ext.plugin.Abstract,{disabled:!1,config:{dynamic:!1},colHeaderCls:'x-column-header',minColWidth:40,maxColWidth:1000,eResizeCursor:'col-resize',init:function(b){var a=this;a.headerCt=b;b.on('render',a.afterHeaderRender,a,{single:a});if(!a.minColWidth){a.self.prototype.minColWidth=Ext.grid.column.Column.prototype.minWidth}},destroy:function(){var a=this,b=a.tracker;if(b){b.destroy();a.tracker=null}a.headerCt.un('render',a.afterHeaderRender,a);a.headerCt=null;Ext.plugin.Abstract.prototype.destroy.call(this)},afterHeaderRender:function(){var a=this,b=a.headerCt,c=b.el;b.mon(c,'mousemove',a.onHeaderCtMouseMove,a);a.markerOwner=a.ownerGrid=a.headerCt.up('tablepanel').ownerGrid;a.tracker=new Ext.dd.DragTracker({disabled:a.disabled,onBeforeStart:a.onBeforeStart.bind(a),onStart:a.onStart.bind(a),onDrag:a.onDrag.bind(a),onEnd:a.onEnd.bind(a),tolerance:3,autoStart:300,el:c})},onHeaderCtMouseMove:function(b){var a=this;if(a.headerCt.dragging||a.disabled){if(a.activeHd){a.activeHd.el.dom.style.cursor='';delete a.activeHd}}else {if(b.pointerType!=='touch'){a.findActiveHeader(b)}}},findActiveHeader:function(f){var d=this,e=d.headerCt,i=f.getTarget('.'+d.colHeaderCls,e.el,!0),h=d.ownerGrid,g=h.ownerLockable,a,b,c,j;d.activeHd=null;if(i){a=Ext.getCmp(i.id);if(a.isAtEndEdge(f)){if(e.visibleColumnManager.getColumns().length===1&&e.forceFit){return}b=a}else {if(a.isAtStartEdge(f)){c=e.visibleColumnManager.getColumns();j=a.isGroupHeader?a.getGridColumns()[0]:a;b=c[Ext.Array.indexOf(c,j)-1];if(!b&&g&&!h.isLocked){c=g.lockedGrid.headerCt.visibleColumnManager.getColumns();b=c[c.length-1]}}}if(b){if(b.isGroupHeader){c=b.getGridColumns();b=c[c.length-1]}if(b&&!(b.fixed||b.resizable===!1)){d.activeHd=b;a.el.dom.style.cursor=d.eResizeCursor;if(a.triggerEl){a.triggerEl.dom.style.cursor=d.eResizeCursor}}}else {a.el.dom.style.cursor='';if(a.triggerEl){a.triggerEl.dom.style.cursor=''}}}return d.activeHd},onBeforeStart:function(b){var a=this;a.dragHd=a.activeHd||b.pointerType==='touch'&&a.findActiveHeader(b);if(a.dragHd&&!a.headerCt.dragging){a.xDelta=a.dragHd.getX()+a.dragHd.getWidth()-a.tracker.getXY()[0];a.tracker.constrainTo=a.getConstrainRegion();return !0}else {a.headerCt.dragging=!1;return !1}},getConstrainRegion:function(){var a=this,e=a.dragHd.el,c,b=a.ownerGrid,g=b.getSizeModel().width,d=g.shrinkWrap?a.headerCt.getWidth()-a.headerCt.visibleColumnManager.getColumns().length*a.minColWidth:a.maxColWidth,f;if(a.headerCt.forceFit){c=a.dragHd.nextNode('gridcolumn:not([hidden]):not([isGroupHeader])');if(c&&a.headerInSameGrid(c)){d=e.getWidth()+(c.getWidth()-a.minColWidth)}}else {if(b.isLocked&&g.shrinkWrap){d=a.dragHd.up('[scrollerOwner]').getTargetEl().getWidth(!0)-b.getWidth()-(b.ownerLockable.normalGrid.visibleColumnManager.getColumns().length*a.minColWidth+Ext.getScrollbarSize().width)}}f=a.adjustConstrainRegion(e.getRegion(),0,0,0,a.minColWidth);f.right=e.getX()+d;return f},onStart:function(k){var a=this,i=a.dragHd,j=i.el.getWidth(),h=i.getRootHeaderCt(),f,g,b,c,d,e;a.headerCt.dragging=!0;a.origWidth=j;if(!a.dynamic){b=a.markerOwner;if(b.frame&&b.resizable){a.gridOverflowSetting=b.el.dom.style.overflow;b.el.dom.style.overflow='hidden'}f=a.getLeftMarkerX(b);c=b.getLhsMarker();d=b.getRhsMarker();e=a.ownerGrid.body.getHeight()+h.getHeight();g=h.getOffsetsTo(b)[1]-b.el.getBorderWidth('t');c.dom.style.cursor=a.eResizeCursor;d.dom.style.cursor=a.eResizeCursor;c.setLocalY(g);d.setLocalY(g);c.setHeight(e);d.setHeight(e);a.setMarkerX(c,f);a.setMarkerX(d,f+j)}},onDrag:function(b){var a=this;if(a.dynamic){a.doResize()}else {a.setMarkerX(a.getMovingMarker(a.markerOwner),a.calculateDragX(a.markerOwner))}},getMovingMarker:function(a){return a.getRhsMarker()},onEnd:function(c){var a=this,b=a.markerOwner;a.headerCt.dragging=!1;if(a.dragHd){if(!a.dynamic){if('gridOverflowSetting' in a){b.el.dom.style.overflow=a.gridOverflowSetting}a.setMarkerX(b.getLhsMarker(),-9999);a.setMarkerX(b.getRhsMarker(),-9999)}a.doResize();if(c.pointerType!=='touch'){a.dragHd=null;a.activeHd.el.dom.style.cursor=a.eResizeCursor}else {a.dragHd=a.activeHd=null}}a.headerCt.blockNextEvent()},doResize:function(){var b=this,c=b.dragHd,a,d=b.tracker.getOffset('point');if(c&&d[0]){if(c.flex){delete c.flex}Ext.suspendLayouts();b.adjustColumnWidth(d[0]-b.xDelta);if(b.headerCt.forceFit){a=c.nextNode('gridcolumn:not([hidden]):not([isGroupHeader])');if(a&&!b.headerInSameGrid(a)){a=null}if(a){delete a.flex;a.setWidth(a.getWidth()-d[0])}}Ext.resumeLayouts(!0)}},headerInSameGrid:function(a){var b=this.dragHd.up('tablepanel');return !!a.up(b)},disable:function(){var a=this.tracker;this.disabled=!0;if(a){a.disable()}},enable:function(){var a=this.tracker;this.disabled=!1;if(a){a.enable()}},calculateDragX:function(a){return this.tracker.getXY('point')[0]+this.xDelta-a.getX()-a.el.getBorderWidth('l')},getLeftMarkerX:function(a){return this.dragHd.getX()-a.getX()-a.el.getBorderWidth('l')-1},setMarkerX:function(a,b){a.setLocalX(b)},adjustConstrainRegion:function(a,e,d,b,c){return a.adjust(e,d,b,c)},adjustColumnWidth:function(a){this.dragHd.setWidth(this.origWidth+a)}},0,0,0,0,['plugin.gridheaderresizer'],0,[Ext.grid.plugin,'HeaderResizer'],0);Ext.cmd.derive('Ext.grid.header.DragZone',Ext.dd.DragZone,{colHeaderSelector:'.x-column-header',colInnerSelector:'.x-column-header-inner',maxProxyWidth:120,constructor:function(b){var a=this;a.headerCt=b;a.ddGroup=a.getDDGroup();a.autoGroup=!0;Ext.dd.DragZone.prototype.constructor.call(this,b.el);a.proxy.el.addCls('x-grid-col-dd')},getDDGroup:function(){return 'header-dd-zone-'+this.headerCt.up('[scrollerOwner]').id},getDragData:function(c){if(c.getTarget(this.colInnerSelector)){var d=c.getTarget(this.colHeaderSelector),a,b;if(d){a=Ext.getCmp(d.id);if(!this.headerCt.dragging&&a.draggable&&!(a.isAtStartEdge(c)||a.isAtEndEdge(c))){b=document.createElement('div');b.role='presentation';b.innerHTML=a.text;return {ddel:b,header:a}}}}return !1},onBeforeDrag:function(){return !(this.headerCt.dragging||this.disabled)},onInitDrag:function(){this.headerCt.dragging=!0;this.headerCt.hideMenu();Ext.dd.DragZone.prototype.onInitDrag.apply(this,arguments)},onDragDrop:function(){this.headerCt.dragging=!1;Ext.dd.DragZone.prototype.onDragDrop.apply(this,arguments)},afterRepair:function(){Ext.dd.DragZone.prototype.afterRepair.call(this);this.headerCt.dragging=!1},getRepairXY:function(){return this.dragData.header.el.getXY()},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1}},1,0,0,0,0,0,[Ext.grid.header,'DragZone'],0);Ext.cmd.derive('Ext.grid.header.DropZone',Ext.dd.DropZone,{colHeaderCls:'x-column-header',proxyOffsets:[-4,-9],constructor:function(b){var a=this;a.headerCt=b;a.ddGroup=a.getDDGroup();a.autoGroup=!0;Ext.dd.DropZone.prototype.constructor.call(this,b.el)},destroy:function(){Ext.dd.DropZone.prototype.destroy.call(this);Ext.destroy(this.topIndicator,this.bottomIndicator)},getDDGroup:function(){return 'header-dd-zone-'+this.headerCt.up('[scrollerOwner]').id},getTargetFromEvent:function(a){return a.getTarget('.'+this.colHeaderCls)},getTopIndicator:function(){if(!this.topIndicator){this.topIndicator=Ext.getBody().createChild({role:'presentation',cls:'x-col-move-top',html:' '});this.indicatorXOffset=Math.floor((this.topIndicator.dom.offsetWidth+1)/2)}return this.topIndicator},getBottomIndicator:function(){if(!this.bottomIndicator){this.bottomIndicator=Ext.getBody().createChild({role:'presentation',cls:'x-col-move-bottom',html:' '})}return this.bottomIndicator},getLocation:function(d,c){var e=d.getXY()[0],a=Ext.fly(c).getRegion(),b;if(a.right-e<=(a.right-a.left)/2){b='after'}else {b='before'}return {pos:b,header:Ext.getCmp(c.id),node:c}},positionIndicator:function(t,v,w){var a=this,f=t.header,n=a.getLocation(w,v),b=n.header,c=n.pos,r,s,e,d,o,m,j,h,g,q,p,l,u,k,i;if(b===a.lastTargetHeader&&c===a.lastDropPos){return}r=f.nextSibling('gridcolumn:not([hidden])');s=f.previousSibling('gridcolumn:not([hidden])');a.lastTargetHeader=b;a.lastDropPos=c;if(!b.draggable&&c==='before'&&b.getIndex()===0){return !1}t.dropLocation=n;if(f!==b&&(c==='before'&&r!==b||c==='after'&&s!==b)&&!b.isDescendantOf(f)){l=Ext.dd.DragDropManager.getRelated(a);u=l.length;k=0;for(;k=0&&!(b.isGroupHeader&&(!b.items||!b.items.length))&&h!==c){i=a.isGroupHeader?a.query(':not([hidden]):not([isGroupHeader])').length:1;if(h<=c&&i>1){c-=i}d.getRootHeaderCt().grid.view.moveColumn(h,c,i)}p.fireEvent('columnmove',e,a,h,c);e.isDDMoveInGrid=d.isDDMoveInGrid=!1;if(d.isGroupHeader&&!e.isGroupHeader){if(e!==d){a.savedFlex=a.flex;delete a.flex;a.width=o}}else {if(!e.isGroupHeader){if(a.savedFlex){a.flex=a.savedFlex;delete a.width}}}Ext.resumeLayouts(!0)}}},1,0,0,0,0,0,[Ext.grid.header,'DropZone'],0);Ext.cmd.derive('Ext.grid.plugin.HeaderReorderer',Ext.plugin.Abstract,{init:function(a){this.headerCt=a;a.on({boxready:this.onHeaderCtRender,single:!0,scope:this})},destroy:function(){var a=this;a.headerCt.un('boxready',a.onHeaderCtRender,a);Ext.destroy(a.dragZone,a.dropZone);a.headerCt=a.dragZone=a.dropZone=null;Ext.plugin.Abstract.prototype.destroy.call(this)},onHeaderCtRender:function(){var a=this;a.dragZone=new Ext.grid.header.DragZone(a.headerCt);a.dropZone=new Ext.grid.header.DropZone(a.headerCt);if(a.disabled){a.dragZone.disable()}},enable:function(){this.disabled=!1;if(this.dragZone){this.dragZone.enable()}},disable:function(){this.disabled=!0;if(this.dragZone){this.dragZone.disable()}}},0,0,0,0,['plugin.gridheaderreorderer'],0,[Ext.grid.plugin,'HeaderReorderer'],0);Ext.cmd.derive('Ext.grid.header.Container',Ext.container.Container,{border:!0,baseCls:'x-grid-header-ct',dock:'top',weight:100,defaultType:'gridcolumn',detachOnRemove:!1,defaultWidth:100,sortAscText:'Sort Ascending',sortDescText:'Sort Descending',sortClearText:'Clear Sort',columnsText:'Columns',headerOpenCls:'x-column-header-open',menuSortAscCls:'x-hmenu-sort-asc',menuSortDescCls:'x-hmenu-sort-desc',menuColsIcon:'x-cols-icon',blockEvents:!1,dragging:!1,sortOnClick:!0,enableFocusableContainer:!1,childHideCount:0,sortable:!0,enableColumnHide:!0,initComponent:function(){var a=this;a.plugins=a.plugins||[];a.defaults=a.defaults||{};if(!a.isColumn){if(a.enableColumnResize){a.resizer=new Ext.grid.plugin.HeaderResizer();a.plugins.push(a.resizer)}if(a.enableColumnMove){a.reorderer=new Ext.grid.plugin.HeaderReorderer();a.plugins.push(a.reorderer)}}if(a.isColumn&&!a.isGroupHeader){if(!a.items||a.items.length===0){a.isContainer=a.isFocusableContainer=!1;a.focusable=!0;a.layout={type:'container',calculate:Ext.emptyFn}}}else {a.layout=Ext.apply({type:'gridcolumn',align:'stretch'},a.initialConfig.layout);a.defaults.columnLines=a.columnLines;if(!a.isGroupHeader){a.isRootHeader=!0;if(!a.hiddenHeaders){a.enableFocusableContainer=!0;a.ariaRole='rowgroup'}a.columnManager=new Ext.grid.ColumnManager(!1,a);a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);if(a.grid){a.grid.columnManager=a.columnManager;a.grid.visibleColumnManager=a.visibleColumnManager}}else {a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);a.columnManager=new Ext.grid.ColumnManager(!1,a)}}a.menuTask=new Ext.util.DelayedTask(a.updateMenuDisabledState,a);Ext.container.Container.prototype.initComponent.call(this)},insertNestedHeader:function(d){var b=this,e=d.ownerCt,f=b.ownerCt,c=f.layout.owner,a;if(e){if(b.isGroupHeader&&!f.isNestedParent){a=c.items.indexOf(b)}e.remove(d,!1)}if(a===undefined){a=c.items.indexOf(b)}c.insert(a,d)},isNested:function(){return !!this.getRootHeaderCt().down('[isNestedParent]')},isNestedGroupHeader:function(){var a=this,b=a.getRefOwner().query('>:not([hidden])');return b.length===1&&b[0]===a},maybeShowNestedGroupHeader:function(){var a=this.items,b;if(a&&a.length===1&&(b=a.getAt(0))&&b.hidden){b.show()}},setNestedParent:function(a){a.isNestedParent=!1;a.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&a.ownerCt.items.length===1)},initEvents:function(){var a=this,b,c;Ext.container.Container.prototype.initEvents.call(this);if(!a.isColumn&&!a.isGroupHeader){b=a.onHeaderCtEvent;c={click:b,dblclick:b,contextmenu:b,mouseover:a.onHeaderCtMouseOver,mouseout:a.onHeaderCtMouseOut,scope:a};if(Ext.supports.Touch){c.longpress=a.onHeaderCtLongPress}a.mon(a.el,c)}},onHeaderCtEvent:function(a,g){var c=this,f=c.getHeaderElByEvent(a),b,e,d;if(c.longPressFired){c.longPressFired=!1;return}if(f&&!c.blockEvents){b=Ext.getCmp(f.id);if(b){e=b[b.clickTargetName];if(!b.isGroupHeader&&!b.isContainer||a.within(e)){if(a.type==='click'||a.type==='tap'){d=b.onTitleElClick(a,e,c.sortOnClick);if(d){c.onHeaderTriggerClick(d,a,a.pointerType==='touch'?d.el:d.triggerEl)}else {c.onHeaderClick(b,a,g)}}else {if(a.type==='contextmenu'){c.onHeaderContextMenu(b,a,g)}else {if(a.type==='dblclick'&&b.resizable){b.onTitleElDblClick(a,e.dom)}}}}}}},blockNextEvent:function(){this.blockEvents=!0;Ext.asap(this.unblockEvents,this)},unblockEvents:function(){this.blockEvents=!1},onHeaderCtMouseOver:function(b,e){var c,a,d;if(!b.within(this.el,!0)){c=b.getTarget('.'+Ext.grid.column.Column.prototype.baseCls);a=c&&Ext.getCmp(c.id);if(a){d=a[a.clickTargetName];if(b.within(d)){a.onTitleMouseOver(b,d.dom)}}}},onHeaderCtMouseOut:function(c,g){var f='.'+Ext.grid.column.Column.prototype.baseCls,d=c.getTarget(f),e=c.getRelatedTarget(f),a,b;if(d!==e){if(d){a=Ext.getCmp(d.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOut(c,b.dom)}}if(e){a=Ext.getCmp(e.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOver(c,b.dom)}}}},onHeaderCtLongPress:function(d){var a=this,b=a.getHeaderElByEvent(d),c=Ext.getCmp(b.id);if(!c.menuDisabled){a.longPressFired=!0;a.showMenuBy(d,b,c)}},getHeaderElByEvent:function(a){return a.getTarget('.'+Ext.grid.column.Column.prototype.baseCls)},isLayoutRoot:function(){if(this.hiddenHeaders){return !1}return Ext.container.Container.prototype.isLayoutRoot.call(this)},getRootHeaderCt:function(){var a=this;return a.isRootHeader?a:a.up('[isRootHeader]')},onDestroy:function(){var a=this;if(a.menu){a.menu.un('hide',a.onMenuHide,a)}a.menuTask.cancel();Ext.container.Container.prototype.onDestroy.call(this);Ext.destroy(a.visibleColumnManager,a.columnManager,a.menu);a.columnManager=a.visibleColumnManager=null},applyColumnsState:function(h,n){if(!h||!h.length){return}var f=this,m=f.items.items,o=m.length,b=0,i=h.length,g,e,a,d,k=!1,c=[],l={},j=[];for(g=0;g=a.visibleFromIdx){b++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(a.isGroupHeader){c=a.visibleColumnManager.getColumns().length}d.onHeaderMoved(a,c,a.visibleFromIdx,b)},maybeContinueRemove:function(){var a=this;return a.isGroupHeader&&!a.applyingState&&!a.isNestedParent&&a.ownerCt&&!a.items.getCount()},onRemove:function(b,c){var a=this,d=a.ownerCt,e=b.lastHiddenHeader;Ext.container.Container.prototype.onRemove.call(this,b,c);if(!a.destroying){if(!a.isDDMoveInGrid){a.onHeadersChanged(b,!1)}if(a.maybeContinueRemove()){if(b.rendered){a.detachComponent(b)}Ext.suspendLayouts();d.remove(a);Ext.resumeLayouts(!0)}}},onHeadersChanged:function(c,d){var b,a=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(a){a.onColumnsChanged();if(!c.isGroupHeader){b=a.ownerCt;if(b&&!d){b.onHeadersChanged(a,c)}}}},onHeaderMoved:function(d,f,c,e){var a=this,b=a.ownerCt;if(a.rendered){if(b&&b.onHeaderMove){b.onHeaderMove(a,d,f,c,e)}a.fireEvent('columnmove',a,d,c,e)}},onColumnsChanged:function(){var a=this,b=a.menu,c,d;if(a.rendered){a.fireEvent('columnschanged',a);if(b&&(c=b.child('#columnItemSeparator'))){d=b.child('#columnItem');c.destroy();d.destroy()}}},lookupComponent:function(b){var a=Ext.container.Container.prototype.lookupComponent.apply(this,arguments);if(!a.isGroupHeader&&a.width===undefined&&!a.flex){a.width=this.defaultWidth}return a},setSortState:function(){var e=this.up('[store]').store,d=this.visibleColumnManager.getColumns(),f=d.length,c,b,a;for(c=0;cgridcolumn[hideable]'),g=e.length,d;for(;cj.el.dom.clientHeight?Ext.getScrollbarSize().width:0),n=0,e=k.getVisibleGridColumns(),o=b.hidden,f,c,a,g,d;function getTotalFlex(){for(c=0,f=e.length;cg){b.width=g;l=!0}else {b.width=d;h-=d+m;getTotalFlex()}applyWidth();Ext.resumeLayouts(!0)},autoSizeColumn:function(a){var b=this.view;if(b){b.autoSizeColumn(a);if(this.forceFit){this.applyForceFit(a)}}},getRefItems:function(b){var a=Ext.container.Container.prototype.getRefItems.call(this,b);if(this.menu){a.push(this.menu)}return a},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},createFocusableContainerKeyNav:function(b){var a=this;return new Ext.util.KeyNav(b,{scope:a,down:a.showHeaderMenu,left:a.onFocusableContainerLeftKey,right:a.onFocusableContainerRightKey,home:a.onHomeKey,end:a.onEndKey,space:a.onHeaderActivate,enter:a.onHeaderActivate})},onHomeKey:function(a){return this.focusChild(null,!0,a)},onEndKey:function(a){return this.focusChild(null,!1,a)},showHeaderMenu:function(b){var a=this.getFocusableFromEvent(b);if(a&&a.isColumn&&a.triggerEl){this.onHeaderTriggerClick(a,b,a.triggerEl)}},onHeaderActivate:function(d){var a=this.getFocusableFromEvent(d),c,b;if(a&&a.isColumn){c=a.getView();if(a.sortable&&this.sortOnClick){b=c.getNavigationModel().getLastFocused();a.toggleSortState();if(b){c.ownerCt.ensureVisible(b.record)}}this.onHeaderClick(a,d,a.el)}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {a.focus()}}}},0,['headercontainer'],['component','box','container','headercontainer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0},['widget.headercontainer'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.grid.header,'Container'],0);Ext.cmd.derive('Ext.grid.column.Column',Ext.grid.header.Container,{alternateClassName:'Ext.grid.Column',config:{triggerVisible:!1,sorter:null},baseCls:'x-column-header',hoverCls:'x-column-header-over',ariaRole:'columnheader',enableFocusableContainer:!1,sortState:null,possibleSortStates:['ASC','DESC'],ariaSortStates:{ASC:'ascending',DESC:'descending'},childEls:['titleEl','triggerEl','textEl','textContainerEl'],headerWrap:!1,renderTpl:['','{%this.renderContainer(out,values)%}'],dataIndex:null,text:' ',menuText:null,emptyCellText:' ',sortable:!0,resizable:!0,hideable:!0,menuDisabled:!1,renderer:!1,align:'left',draggable:!0,tooltipType:'qtip',initDraggable:Ext.emptyFn,tdCls:'',producesHTML:!0,ignoreExport:!1,isHeader:!0,isColumn:!0,tabIndex:-1,ascSortCls:'x-column-header-sort-ASC',descSortCls:'x-column-header-sort-DESC',componentLayout:'columncomponent',groupSubHeaderCls:'x-group-sub-header',groupHeaderCls:'x-group-header',clickTargetName:'titleEl',detachOnRemove:!0,initResizable:Ext.emptyFn,rendererNames:{column:'renderer',edit:'editRenderer',summary:'summaryRenderer'},formatterNames:{column:'formatter',edit:'editFormatter',summary:'summaryFormatter'},initComponent:function(){var a=this;if(!a.rendererScope){a.rendererScope=a.scope}if(a.header!=null){a.text=a.header;a.header=null}if(a.cellWrap){a.tdCls=(a.tdCls||'')+' x-wrap-cell'}if(a.columns!=null){a.isGroupHeader=!0;a.ariaRole='presentation';a.items=a.columns;a.columns=a.flex=a.width=null;a.cls=(a.cls||'')+' '+a.groupHeaderCls;a.sortable=a.resizable=!1;a.align='center'}else {if(a.flex){a.minWidth=a.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}a.addCls('x-column-header-align-'+a.align);a.setupRenderer();a.setupRenderer('edit');a.setupRenderer('summary');Ext.grid.header.Container.prototype.initComponent.apply(this,arguments)},onAdded:function(e,g,f){var a=this,c,d,b;Ext.grid.header.Container.prototype.onAdded.call(this,e,g,f);if(!a.headerId){d=a.up('tablepanel');b=d?d.ownerGrid:a.getRootHeaderCt();b.headerCounter=(b.headerCounter||0)+1;a.headerId='h'+b.headerCounter}if(!a.stateId){a.stateId=a.initialConfig.id||a.headerId}c=a.getSorter();if(c&&!c.initialConfig.id){c.setId((a.dataIndex||a.stateId)+'-sorter')}},applySorter:function(a){return this.getRootHeaderCt().up('tablepanel').store.getData().getSorters().decodeSorter(a)},bindFormatter:function(a){var b=this;return function(c){return a.format(c,a.scope||b.rendererScope||b.resolveListenerScope())}},bindRenderer:function(b){var a=this;a.hasCustomRenderer=!0;return function(){return Ext.callback(b,a.rendererScope,arguments,0,a)}},setupRenderer:function(c){c=c||'column';var a=this,b=a[a.formatterNames[c]],d=a[a.rendererNames[c]],f=c==='column',e,g;if(!b){if(d){if(typeof d==='string'){d=a[a.rendererNames[c]]=a.bindRenderer(d);g=!0}if(f){a.hasCustomRenderer=g||d.length>1}}else {if(f&&a.defaultRenderer){a.renderer=a.defaultRenderer;a.usingDefaultRenderer=!0}}}else {e=b.indexOf('this.')===0;if(e){b=b.substring(5)}b=Ext.app.bind.Template.prototype.parseFormat(b);a[a.formatterNames[c]]=null;if(e){b.scope=null}a[a.rendererNames[c]]=a.bindFormatter(b)}},getView:function(){var a=this.getRootHeaderCt();if(a){return a.view}},onFocusLeave:function(a){Ext.grid.header.Container.prototype.onFocusLeave.call(this,a);if(this.activeMenu){this.activeMenu.hide()}},initItems:function(){var a=this;Ext.grid.header.Container.prototype.initItems.apply(this,arguments);if(a.isGroupHeader){if(a.config.hidden||!a.hasVisibleChildColumns()){a.hide()}}},hasVisibleChildColumns:function(){var c=this.items.items,d=c.length,a,b;for(a=0;agridcolumn:not([hidden]):not([menuDisabled])');c=a.length;if(Ext.Array.contains(a,b.hideCandidate)){c--}if(c){return !1}b.hideCandidate=this},isLockable:function(){var a={result:this.lockable!==!1};if(a.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[a])}return a.result},isLocked:function(){return this.locked||!!this.up('[isColumn][locked]','[isRootHeader]')},hasMultipleVisibleChildren:function(a){if(!this.isXType('headercontainer')){a.result=!1;return !1}if(this.query('>gridcolumn:not([hidden])').length>1){return !1}},hide:function(){var a=this,b=a.getRootHeaderCt(),c=a.getRefOwner();if(c.constructing){Ext.grid.header.Container.prototype.hide.call(this);return a}if(a.rendered&&!a.isVisible()){return a}if(b.forceFit){a.visibleSiblingCount=b.getVisibleGridColumns().length-1;if(a.flex){a.savedWidth=a.getWidth();a.flex=null}}b.beginChildHide();Ext.suspendLayouts();if(c.isGroupHeader){if(a.isNestedGroupHeader()){c.hide()}if(a.isSubHeader&&!a.isGroupHeader&&c.query('>gridcolumn:not([hidden])').length===1){c.lastHiddenHeader=a}}Ext.grid.header.Container.prototype.hide.call(this);b.endChildHide();b.onHeaderHide(a);Ext.resumeLayouts(!0);return a},show:function(){var a=this,c=a.getRootHeaderCt(),b=a.getRefOwner();if(a.isVisible()){return a}if(b.isGroupHeader){b.lastHiddenHeader=null}if(a.rendered){if(c.forceFit){c.applyForceFit(a)}}Ext.suspendLayouts();if(a.isSubHeader&&b.hidden){b.show(!1,!0)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(a.isGroupHeader){a.maybeShowNestedGroupHeader()}b=a.getRootHeaderCt();if(b){b.onHeaderShow(a)}Ext.resumeLayouts(!0);return a},shouldUpdateCell:function(d,b){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(b){var e=b.length,a,c;for(a=0;aActions',ignoreExport:!0,sortable:!1,innerCls:'x-grid-cell-inner-action-col',actionIconCls:'x-action-col-icon',constructor:function(g){var a=this,b=Ext.apply({},g),d=b.items||a.items||[a],e,c,f;a.origRenderer=b.renderer||a.renderer;a.origScope=b.scope||a.scope;a.renderer=a.scope=b.renderer=b.scope=null;b.items=null;Ext.grid.column.Column.prototype.constructor.call(this,b);a.items=d;for(c=0,f=d.length;c':'>')}return h},updater:function(e,d,c,f,b){var a={};Ext.fly(e).addCls(a.tdCls).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(d,a,c,null,null,b,f)},enableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!1;b.up('tablepanel').el.select('.x-action-col-'+a).removeCls(b.disabledCls);if(!c){b.fireEvent('enable',b)}},disableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!0;b.up('tablepanel').el.select('.x-action-col-'+a).addCls(b.disabledCls);if(!c){b.fireEvent('disable',b)}},beforeDestroy:function(){this.renderer=this.items=null;return Ext.grid.column.Column.prototype.beforeDestroy.apply(this,arguments)},processEvent:function(f,g,n,h,i,d,l,o){var b=this,c=d.getTarget(),e=f==='keydown'&&d.getKey(),m,a,j,k=Ext.fly(n);d.stopSelection=!e&&b.stopSelection;if(e&&(c===n||!k.contains(c))){c=k.query('.'+b.actionIconCls,!0);if(c.length===1){c=c[0]}else {return}}if(c&&(m=c.className.match(b.actionIdRe))){a=b.items[parseInt(m[1],10)];j=a.disabled||(a.isDisabled?a.isDisabled.call(a.scope||b.origScope||b,g,h,i,a,l):!1);if(a&&!j){if(f==='mousedown'&&!b.getView().actionableMode){d.preventDefault()}else {if(f==='click'||(e===d.ENTER||e===d.SPACE)){Ext.callback(a.handler||b.handler,a.scope||b.origScope,[g,h,i,a,d,l,o],undefined,b);if(!g.el.contains(Ext.Element.getActiveElement())){return !1}}}}}return Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)},cascade:function(b,a){b.call(a||this,this)},getRefItems:function(){return []},privates:{getFocusables:function(){return []},shouldUpdateCell:function(){return 2}}},1,['actioncolumn'],['component','box','container','headercontainer','gridcolumn','actioncolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'actioncolumn':!0},['widget.actioncolumn'],0,[Ext.grid.column,'Action',Ext.grid,'ActionColumn'],0);Ext.cmd.derive('Ext.grid.column.Check',Ext.grid.column.Column,{alternateClassName:['Ext.ux.CheckColumn','Ext.grid.column.CheckColumn'],align:'center',ignoreExport:!0,stopSelection:!0,tdCls:'x-grid-cell-checkcolumn',innerCls:'x-grid-cell-inner-checkcolumn',clickTargetName:'el',defaultFilterType:'boolean',constructor:function(){this.scope=this;Ext.grid.column.Column.prototype.constructor.apply(this,arguments)},processEvent:function(h,n,k,e,m,b,g,l){var a=this,d=h==='keydown'&&b.getKey(),f=h==='mousedown',j=a.disabled,i,c;b.stopSelection=!d&&a.stopSelection;if(!j&&(f||(d===b.ENTER||d===b.SPACE))){c=!a.isRecordChecked(g);if(a.fireEvent('beforecheckchange',a,e,c)!==!1){a.setRecordCheck(g,c,k,l,b);a.fireEvent('checkchange',a,e,c);if(f&&!a.getView().actionableMode){b.preventDefault()}}}else {i=Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)}return i},onEnable:function(){Ext.grid.column.Column.prototype.onEnable.apply(this,arguments);this._setDisabled(!1)},onDisable:function(){this._setDisabled(!0)},_setDisabled:function(d){var b=this,c=b.disabledCls,a;a=b.up('tablepanel').el.select(b.getCellSelector());if(d){a.addCls(c)}else {a.removeCls(c)}},defaultRenderer:function(d,c){var a='x-',b=a+'grid-checkcolumn';if(this.disabled){c.tdCls+=' '+this.disabledCls}if(d){b+=' '+a+'grid-checkcolumn-checked'}return '
    '},isRecordChecked:function(a){var b=this.property;if(b){return a[b]}return a.get(this.dataIndex)},setRecordCheck:function(c,a,e,f,g){var b=this,d=b.property;if(d){c[d]=a;b.updater(e,a)}else {c.set(b.dataIndex,a)}},updater:function(a,b){a=Ext.fly(a);a[this.disabled?'addCls':'removeCls'](this.disabledCls);Ext.fly(a.down(this.getView().innerSelector,!0).firstChild)[b?'addCls':'removeCls']('x-grid-checkcolumn-checked')}},1,['checkcolumn'],['component','box','container','headercontainer','gridcolumn','checkcolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'checkcolumn':!0},['widget.checkcolumn'],0,[Ext.grid.column,'Check',Ext.ux,'CheckColumn',Ext.grid.column,'CheckColumn'],0);Ext.cmd.derive('Ext.grid.column.Date',Ext.grid.column.Column,{alternateClassName:'Ext.grid.DateColumn',isDateColumn:!0,defaultFilterType:'date',producesHTML:!1,initComponent:function(){if(!this.format){this.format=Ext.Date.defaultFormat}Ext.grid.column.Column.prototype.initComponent.apply(this,arguments)},defaultRenderer:function(a){return Ext.util.Format.date(a,this.format)},updater:function(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Date.prototype.defaultRenderer.call(this,a)}},0,['datecolumn'],['component','box','container','headercontainer','gridcolumn','datecolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'datecolumn':!0},['widget.datecolumn'],0,[Ext.grid.column,'Date',Ext.grid,'DateColumn'],0);Ext.cmd.derive('Ext.grid.column.RowNumberer',Ext.grid.column.Column,{alternateClassName:'Ext.grid.RowNumberer',isRowNumberer:!0,text:' ',width:23,sortable:!1,draggable:!1,autoLock:!0,lockable:!1,align:'right',producesHTML:!1,ignoreExport:!0,constructor:function(b){var a=this;a.width=a.width;Ext.grid.column.Column.prototype.constructor.apply(this,arguments);a.sortable=!1;a.scope=a},resizable:!1,hideable:!1,menuDisabled:!0,dataIndex:'',cls:'x-row-numberer',tdCls:'x-grid-cell-row-numberer x-grid-cell-special',innerCls:'x-grid-cell-inner-row-numberer',rowspan:undefined,defaultRenderer:function(j,b,f,i,h,a,g){var c=this.rowspan,e=a.currentPage,d=g.store.indexOf(f);if(b&&c){b.tdAttr='rowspan="'+c+'"'}if(e>1){d+=(e-1)*a.pageSize}return d+1},updater:function(d,c,b,e,a){Ext.fly(d).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(c,null,b,null,null,a,e)}},1,['rownumberer'],['component','box','container','headercontainer','gridcolumn','rownumberer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'rownumberer':!0},['widget.rownumberer'],0,[Ext.grid.column,'RowNumberer',Ext.grid,'RowNumberer'],0);Ext.define('Ext.theme.neptune.grid.column.RowNumberer',{override:'Ext.grid.column.RowNumberer',width:25});Ext.cmd.derive('Ext.grid.column.Widget',Ext.grid.column.Column,{config:{defaultWidgetUI:{}},ignoreExport:!0,sortable:!1,onWidgetAttach:null,preventUpdate:!0,stopSelection:!0,initComponent:function(){var b=this,a;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments);a=b.widget;b.widget=a=Ext.apply({},a);if(!a.ui){a.ui=b.getDefaultWidgetUI()[a.xtype]||'default'}b.isFixedSize=Ext.isNumber(a.width)},processEvent:function(c,d,h,e,f,b,g,i){var a;if(this.stopSelection&&c==='click'){a=b.getTarget(d.innerSelector);if(a&&a!==b.target){b.stopSelection=!0}}},beforeRender:function(){var a=this,b=a.tdCls,c;a.listenerScopeFn=function(b){if(b==='this'){return this}return a.resolveListenerScope(b)};a.liveWidgets={};a.cachedStyles={};a.freeWidgetStack=[c=a.getFreeWidget()];b=b?b+' ':'';a.tdCls=b+c.getTdCls();a.setupViewListeners(a.getView());Ext.grid.column.Column.prototype.beforeRender.call(this)},afterRender:function(){var a=this.getView();Ext.grid.column.Column.prototype.afterRender.call(this);if(a&&a.viewReady&&!a.ownerGrid.reconfiguring){this.onViewRefresh(a,a.getViewRange())}},defaultRenderer:Ext.emptyFn,updater:function(c,b,a){this.updateWidget(a)},onResize:function(e){var a=this,d=a.liveWidgets,c=a.getView(),f,b;if(!a.isFixedSize&&a.rendered&&c&&c.viewReady){b=c.getEl().down(a.getCellInnerSelector());if(b){e-=parseInt(a.getCachedStyle(b,'padding-left'),10)+parseInt(a.getCachedStyle(b,'padding-right'),10);for(f in d){d[f].setWidth(e)}}}},onAdded:function(){var b=this,a;Ext.grid.column.Column.prototype.onAdded.apply(this,arguments);a=b.getView();if(a){b.setupViewListeners(a);if(a&&a.viewReady&&b.rendered&&a.getEl().down(b.getCellSelector())){b.onViewRefresh(a,a.getViewRange())}}},onRemoved:function(e){var a=this,c=a.liveWidgets,b=a.viewListeners,d;if(a.rendered){a.viewListeners=b&&Ext.destroy(b);if(!e){for(d in c){c[d].detachFromBody()}}}Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments)},onDestroy:function(){var b=this,e=b.liveWidgets,d=b.freeWidgetStack,g,a,c,f;if(b.rendered){for(g in e){a=e[g];a.$widgetRecord=a.$widgetColumn=null;delete a.getWidgetRecord;delete a.getWidgetColumn;a.destroy()}for(c=0,f=d.length;c0){v=d.getModel();for(b=0;b-1},indexOfPlaceholder:function(a){return this.data.indexOf(a)},indexOfId:function(a){return this.data.indexOfKey(a)},indexOfTotal:function(a){return this.store.indexOf(a)},onAdd:function(b){var a=this;a.processStore(a.store);a.fireEvent('refresh',a);return !1},onClear:function(d,c,b){var a=this;a.processStore(a.store);a.fireEvent('clear',a)},onIdChanged:function(d,b,a,c){this.data.updateKey(b,a)},onRefresh:function(){this.processStore(this.store);this.fireEvent('refresh',this)},onRemove:function(){var a=this;a.processStore(a.store);a.fireEvent('refresh',a);return !1},onUpdate:function(k,b,j,c){var a=this,g=a.groupingFeature,f,i,d,e,h;if(k.isGrouped()){f=b.group=g.getGroup(b);if(f){i=g.getMetaGroup(b);if(c&&Ext.Array.contains(c,g.getGroupField())){return a.onRefresh(a.store)}if(i.isCollapsed){a.fireEvent('update',a,i.placeholder)}else {Ext.suspendLayouts();a.fireEvent('update',a,b,j,c);h=f.items;d=h[0];e=h[h.length-1];if(d!==b){d.group=f;a.fireEvent('update',a,d,'edit',c);delete d.group}if(e!==b&&e!==d&&g.showSummaryRow){e.group=f;a.fireEvent('update',a,e,'edit',c);delete e.group}Ext.resumeLayouts(!0)}}delete b.group}else {a.fireEvent('update',a,b,j,c)}},onGroupChange:function(b,a){if(!a){this.processStore(b)}this.fireEvent('groupchange',b,a)},destroy:function(){var a=this;a.bindStore(null);Ext.destroyMembers(a,'data','groupingFeature');Ext.util.Observable.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.grid.feature,'GroupStore'],0);Ext.cmd.derive('Ext.grid.feature.Grouping',Ext.grid.feature.Feature,{eventPrefix:'group',eventSelector:'.x-grid-group-hd',refreshData:{},wrapsItem:!0,groupHeaderTpl:'{columnName}: {name}',depthToIndent:17,collapsedCls:'x-grid-group-collapsed',hdCollapsedCls:'x-grid-group-hd-collapsed',hdNotCollapsibleCls:'x-grid-group-hd-not-collapsible',collapsibleCls:'x-grid-group-hd-collapsible',ctCls:'x-group-hd-container',groupByText:'Group by this field',showGroupsText:'Show in groups',hideGroupedHeader:!1,startCollapsed:!1,enableGroupingMenu:!0,enableNoGroups:!0,collapsible:!0,groupers:null,expandTip:'Click to expand. CTRL key collapses all others',collapseTip:'Click to collapse. CTRL/click collapses all others',showSummaryRow:!1,outerTpl:['{%','if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {','this.groupingFeature.setup(values.rows, values.view.rowValues);','}','this.nextTpl.applyOut(values, out, parent);','if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {','this.groupingFeature.cleanup(values.rows, values.view.rowValues);','}','%}',{priority:200}],groupRowTpl:['{%','var me = this.groupingFeature,','colspan = "colspan=" + values.columns.length;','if (me.disabled || parent.rows.length === 1 && parent.rows[0].isSummary) {','values.needsWrap = false;','} else {','me.setupRowData(values.record, values.rowIndex, values);','}','%}','','','{% values.view.renderColumnSizer(values, out); %}','','','{%','var groupTitleStyle = (!values.view.lockingPartner || (values.view.ownerCt === values.view.ownerCt.ownerLockable.lockedGrid) || (values.view.lockingPartner.headerCt.getVisibleGridColumns().length === 0)) ? "" : "visibility:hidden";','%}','
    ','
    ','{[values.groupHeaderTpl.apply(values.metaGroupCache, parent) || " "]}','
    ','
    ','','','
    ','','{%','values.itemClasses.length = 0;','this.nextTpl.applyOut(values, out, parent);','%}','','','{%me.outputSummaryRecord(values.summaryRecord, values, out, parent);%}','','','{%this.nextTpl.applyOut(values, out, parent);%}','',{priority:200,beginRowSync:function(b){var a=this.groupingFeature;b.add('header',a.eventSelector);b.add('summary',a.summaryRowSelector)},syncContent:function(c,b,f){c=Ext.fly(c,'syncDest');b=Ext.fly(b,'syncSrc');var a=this.groupingFeature,h=c.down(a.eventSelector,!0),g=b.down(a.eventSelector,!0),e=c.down(a.summaryRowSelector,!0),d=b.down(a.summaryRowSelector,!0);if(h&&g){Ext.fly(h).syncContent(g)}if(e&&d){if(f){this.groupingFeature.view.updateColumns(e,d,f)}else {Ext.fly(e).syncContent(d)}}}}],init:function(c){var a=this,b=a.view,f=a.getGridStore(),d,e;b.isGrouping=f.isGrouped();a.mixins.summary.init.call(a);Ext.grid.feature.Feature.prototype.init.call(this,c);b.headerCt.on({columnhide:a.onColumnHideShow,columnshow:a.onColumnHideShow,columnmove:a.onColumnMove,scope:a});b.addTpl(Ext.XTemplate.getTpl(a,'outerTpl')).groupingFeature=a;b.addRowTpl(Ext.XTemplate.getTpl(a,'groupRowTpl')).groupingFeature=a;b.preserveScrollOnRefresh=!0;if(f.isBufferedStore){a.collapsible=!1}else {d=a.lockingPartner;if(d&&d.dataSource){a.dataSource=b.dataSource=e=d.dataSource}else {a.dataSource=b.dataSource=e=new Ext.grid.feature.GroupStore(a,f)}}c=c.ownerLockable||c;c.on('beforereconfigure',a.beforeReconfigure,a);b.on({afterrender:a.afterViewRender,scope:a,single:!0});if(e){e.on('groupchange',a.onGroupChange,a)}else {a.setupStoreListeners(f)}a.mixins.summary.bindStore.call(a,c,c.getStore())},getGridStore:function(){return this.view.getStore()},indexOf:function(a){return this.dataSource.indexOf(a)},indexOfPlaceholder:function(a){return this.dataSource.indexOfPlaceholder(a)},isInCollapsedGroup:function(d){var c=this,e=c.getGridStore(),b=!1,a;if(e.isGrouped()&&(a=c.getMetaGroup(d))){b=!!(a&&a.isCollapsed)}return b},createCache:function(){var a=this.metaGroupCache={},b=this.lockingPartner;if(b){b.metaGroupCache=a}a.map={};return a},getCache:function(){return this.metaGroupCache||this.createCache()},invalidateCache:function(){var a=this.lockingPartner;this.metaGroupCache=null;if(a){a.metaGroupCache=null}},vetoEvent:function(c,d,b,a){if(a.type!=='mouseover'&&a.type!=='mouseout'&&a.type!=='mouseenter'&&a.type!=='mouseleave'&&a.getTarget(this.eventSelector)){return !1}},enable:function(){var a=this,c=a.view,e=a.getGridStore(),d=a.hideGroupedHeader&&a.getGroupedHeader(),b;c.isGrouping=!0;if(c.lockingPartner){c.lockingPartner.isGrouping=!0}Ext.grid.feature.Feature.prototype.enable.call(this);if(a.lastGrouper){e.group(a.lastGrouper);a.lastGrouper=null}if(d){d.hide()}b=a.view.headerCt.getMenu().down('#groupToggleMenuItem');if(b){b.setChecked(!0,!0)}},disable:function(){var a=this,c=a.view,f=a.getGridStore(),d=a.hideGroupedHeader&&a.getGroupedHeader(),e=f.getGrouper(),b;c.isGrouping=!1;if(c.lockingPartner){c.lockingPartner.isGrouping=!1}Ext.grid.feature.Feature.prototype.disable.call(this);if(e){a.lastGrouper=e;f.clearGrouping()}if(d){d.show()}b=a.view.headerCt.getMenu().down('#groupToggleMenuItem');if(b){b.setChecked(!1,!0);b.disable()}},afterViewRender:function(){var a=this,b=a.view;b.on({scope:a,groupclick:a.onGroupClick});if(a.enableGroupingMenu){a.injectGroupingMenu()}a.pruneGroupedHeader();a.lastGrouper=a.getGridStore().getGrouper();if(a.disabled){a.disable()}},injectGroupingMenu:function(){var a=this,b=a.view.headerCt;b.showMenuBy=a.showMenuBy;b.getMenuItems=a.getMenuItems()},onColumnHideShow:function(l,m){var a=this,e=a.view,k=e.headerCt,i=k.getMenu(),c=i.activeHeader,f=i.down('#groupMenuItem'),g,h=a.grid.getVisibleColumnManager().getColumns().length,d,j,b;if(c&&f){g=c.groupable===!1||!c.dataIndex||a.view.headerCt.getVisibleGridColumns().length<2?'disable':'enable';f[g]()}if(e.rendered&&h){d=e.el.query('.'+a.ctCls);for(b=0,j=d.length;b','','
    {rowBody}
    ','','','{%','if(this.rowBody.bodyBefore) {','this.nextTpl.applyOut(values, out, parent);','}','%}',{priority:100,beginRowSync:function(a){a.add('rowBody',this.owner.eventSelector)},syncContent:function(e,d,f){var c=this.owner,b=Ext.fly(e).down(c.eventSelector,!0),a;if(b&&(a=Ext.fly(d).down(c.eventSelector,!0))){Ext.fly(b).syncContent(a)}}}],init:function(c){var a=this,b=a.view=c.getView();c.variableRowHeight=b.variableRowHeight=!0;b.rowBodyFeature=a;c.mon(b,{element:'el',click:a.onClick,scope:a});b.headerCt.on({columnschanged:a.onColumnsChanged,scope:a});b.addTpl(a.outerTpl).rowBody=a;b.addRowTpl(Ext.XTemplate.getTpl(this,'extraRowTpl')).rowBody=a;Ext.grid.feature.Feature.prototype.init.apply(this,arguments)},onClick:function(c){var b=this,a=c.getTarget(b.eventSelector);if(a&&Ext.fly(a=a.previousSibling||a.nextSibling).is(b.view.rowSelector)){c.target=a;b.view.handleEvent(c)}},getSelectedRow:function(c,b){var a=c.getNode(b);if(a){return Ext.fly(a).down(this.eventSelector)}return null},onColumnsChanged:function(c){var b=this.view.el.query(this.rowBodyTdSelector),d=c.getVisibleGridColumns().length,e=b.length,a;for(a=0;a{text} {linkHrefCls}{childElCls}" href="{href}" target="{hrefTarget}" hidefocus="true" unselectable="on" tabindex="{tabIndex}" {$}="{.}">{text}
    ',maskOnDisable:!1,iconAlign:'left',initComponent:function(){var a=this,b=a.cls?[a.cls]:[],c;if(a.hasOwnProperty('canActivate')){a.focusable=a.canActivate}if(a.plain){b.push('x-menu-item-plain')}if(b.length){a.cls=b.join(' ')}if(a.menu){c=a.menu;a.menu=null;a.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==!1&&!a.destroying&&!a.destroyed&&a.isVisible(!0)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.disabled){if(!a.plain){a.addCls(a.activeCls)}a.activated=!0;if(a.hasListeners.activate){a.fireEvent('activate',a)}}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(a.activated){if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=!1;if(a.hasListeners.deactivate){a.fireEvent('deactivate',a)}}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){for(var a=this.getRefOwner();a&&(a.isMenu&&a.floating||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},expandMenu:function(c,b){var a=this;if(a.activated&&a.menu){a.hideOnClick=!1;a.cancelDeferHide();b=b==null?a.menuExpandDelay:b;if(b===0){a.doExpandMenu(c)}else {a.cancelDeferExpand();a.expandMenuTimer=Ext.defer(a.doExpandMenu,b,a,[c])}}},doExpandMenu:function(c){var b=this,a=b.menu;if(!a.isVisible()){b.parentMenu.activeChild=a;a.ownerCmp=b;a.parentMenu=b.parentMenu;a.constrainTo=document.body;a.autoFocus=!c||!c.pointerType;a.showBy(b,b.menuAlign)}},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},getValue:function(){return this.value},hideMenu:function(b){var a=this;if(a.menu){a.cancelDeferExpand();a.hideMenuTimer=Ext.defer(a.doHideMenu,Ext.isNumber(b)?b:a.menuHideDelay,a)}},onClick:function(b){var a=this,e=a.clickHideDelay,f=b.browserEvent,d,c;if(!a.href||a.disabled){b.stopEvent();if(a.disabled){return !1}}if(a.disabled||a.handlingClick){return}if(a.hideOnClick){if(!e){a.deferHideParentMenus()}else {a.deferHideParentMenusTimer=Ext.defer(a.deferHideParentMenus,e,a)}}d=a.fireEvent('click',a,b);if(a.destroyed){return}if(d!==!1&&a.handler){Ext.callback(a.handler,a.scope,[a,b],0,a)}if(Ext.isIE9m){c=f.returnValue===!1?!0:!1}else {c=!!f.defaultPrevented}if(a.href&&b.type!=='click'&&!c){a.handlingClick=!0;a.itemEl.dom.click();a.handlingClick=!1}if(!a.hideOnClick){a.focus()}return d},onRemoved:function(){var a=this;if(a.activated&&a.parentMenu.activeItem===a){a.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);a.parentMenu=a.ownerCmp=null},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;a.cancelDeferExpand();a.cancelDeferHide();clearTimeout(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.onDestroy.apply(this,arguments)},beforeRender:function(){var a=this,c=a.glyph,j=Ext._glyphFontFamily,b=!!(a.icon||a.iconCls||c),f=!!a.menu,i=a.iconAlign==='right'&&!f,e=a.isMenuCheckItem,d=[],k=a.ownerCt,g=k.plain,h;if(a.plain){a.ariaEl='el'}Ext.Component.prototype.beforeRender.call(this);if(b){if(f&&a.showCheckbox){b=!1}}if(typeof c==='string'){h=c.split('@');c=h[0];j=h[1]}if(!g||b&&!i||e){if(k.showSeparator&&!g){d.push(a.indentCls)}else {d.push(a.indentNoSeparatorCls)}}if(f){d.push(a.indentRightArrowCls)}else {if(b&&(i||e)){d.push(a.indentRightIconCls)}}Ext.applyIf(a.renderData,{hasHref:!!a.href,href:a.href||'#',hrefTarget:a.hrefTarget,icon:a.icon,iconCls:a.iconCls,glyph:c,glyphCls:c?'x-menu-item-glyph':undefined,glyphFontFamily:j,hasIcon:b,hasMenu:f,indent:!g||b||e,isCheckItem:e,rightIcon:i,plain:a.plain,text:a.text,arrowCls:a.arrowCls,baseIconCls:a.baseIconCls,textCls:a.textCls,indentCls:d.join(' '),linkCls:a.linkCls,linkHrefCls:a.linkHrefCls,groupCls:a.group?a.groupCls:'',tabIndex:a.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,!0)}},getMenu:function(){return this.menu||null},setMenu:function(b,f){var a=this,e=a.menu,h=a.arrowEl,d=a.ariaEl.dom,c,g;if(e){e.ownerCmp=e.parentMenu=null;if(f===!0||f!==!1&&a.destroyMenu){Ext.destroy(e)}if(d){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns')}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});delete c['aria-haspopup'];delete c['aria-owns']}}if(b){g=b.isMenu;b=a.menu=Ext.menu.Manager.get(b,{ownerCmp:a,focusOnToFront:!1});b.setOwnerCmp(a,g);if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {b=a.menu=null}if(b&&a.rendered&&!a.destroying&&h){h[b?'addCls':'removeCls'](a.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(a){var b=this.iconEl,c=this.icon;if(b){b.src=a||Ext.BLANK_IMAGE_URL}this.icon=a;this.fireEvent('iconchange',this,c,a)},setIconCls:function(b){var a=this,c=a.iconEl,d=a.iconCls;if(c){if(a.iconCls){c.removeCls(a.iconCls)}if(b){c.addCls(b)}}a.iconCls=b;a.fireEvent('iconchange',a,d,b)},setText:function(b){var a=this,d=a.textEl||a.el,c=a.text;a.text=b;if(a.rendered){d.setHtml(b||'');a.updateLayout()}a.fireEvent('textchange',a,c,b)},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},clearTip:function(){if(Ext.quickTipsActive&&Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.itemEl)}},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c){a.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.itemEl.id},b));a.tooltip=b}else {a.itemEl.dom.setAttribute(a.getTipAttr(),b)}}else {a.tooltip=b}return a},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)},getFocusEl:function(){return this.plain?this.el:this.itemEl}}},0,['menuitem'],['component','box','menuitem'],{'component':!0,'box':!0,'menuitem':!0},['widget.menuitem'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.menu,'Item',Ext.menu,'TextItem'],0);Ext.cmd.derive('Ext.menu.CheckItem',Ext.menu.Item,{checkedCls:'x-menu-item-checked',uncheckedCls:'x-menu-item-unchecked',groupCls:'x-menu-group-icon',hideOnClick:!1,checkChangeDisabled:!1,submenuText:'{0} submenu',ariaRole:'menuitemcheckbox',childEls:['checkEl'],showCheckbox:!0,isMenuCheckItem:!0,checkboxCls:'x-menu-item-checkbox',initComponent:function(){var a=this;a.checked=!!a.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==!1){a.hideOnClick=!0}}},beforeRender:function(){var a=this,b;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(a.renderData,{checkboxCls:a.checkboxCls,showCheckbox:a.showCheckbox});b=a.ariaRenderAttributes||(a.ariaRenderAttributes={});b['aria-checked']=a.menu?'mixed':a.checked;if(a.menu){b['aria-label']=Ext.String.formatEncode(a.submenuText,a.text)}},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.setChecked(!a.checked,!0);if(a.checkChangeDisabled){a.disableCheckChange()}if(Ext.isGecko&&a.checkEl){a.checkEl.on('mousedown',a.onMouseDownCheck)}},disableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.addCls(a.disabledCls)}if(Ext.isIE8&&a.rendered){a.el.repaint()}a.checkChangeDisabled=!0},enableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.removeCls(a.disabledCls)}a.checkChangeDisabled=!1},onMouseDownCheck:function(a){a.preventDefault()},onClick:function(b){var a=this;if(!(a.disabled||a.checkChangeDisabled||a.checked&&a.group||a.menu&&'touch'===b.pointerType&&!a.checkEl.contains(b.target))){a.setChecked(!a.checked);if(b.type==='keydown'&&a.menu){return !1}}Ext.menu.Item.prototype.onClick.call(this,b)},onDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.onDestroy.apply(this,arguments)},setText:function(c){var a=this,b=a.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,c);if(b&&a.menu){b.setAttribute('aria-label',Ext.String.formatEncode(a.submenuText,c))}},setChecked:function(b,d){var a=this,f=a.checkedCls,e=a.uncheckedCls,c=a.el,g=a.ariaEl.dom;if(a.checked!==b&&(d||a.fireEvent('beforecheckchange',a,b)!==!1)){if(c){if(b){c.addCls(f);c.removeCls(e)}else {c.addCls(e);c.removeCls(f)}}if(g){g.setAttribute('aria-checked',a.menu?'mixed':!!b)}a.checked=b;Ext.menu.Manager.onCheckChange(a,b);if(!d){Ext.callback(a.checkHandler,a.scope,[a,b],0,a);a.fireEvent('checkchange',a,b)}}}},0,['menucheckitem'],['component','box','menuitem','menucheckitem'],{'component':!0,'box':!0,'menuitem':!0,'menucheckitem':!0},['widget.menucheckitem'],0,[Ext.menu,'CheckItem'],0);Ext.cmd.derive('Ext.menu.Separator',Ext.menu.Item,{focusable:!1,canActivate:!1,hideOnClick:!1,plain:!0,separatorCls:'x-menu-item-separator',text:' ',ariaRole:'separator',beforeRender:function(){this.addCls(this.separatorCls);Ext.menu.Item.prototype.beforeRender.call(this)}},0,['menuseparator'],['component','box','menuitem','menuseparator'],{'component':!0,'box':!0,'menuitem':!0,'menuseparator':!0},['widget.menuseparator'],0,[Ext.menu,'Separator'],0);Ext.define('Ext.theme.neptune.menu.Separator',{override:'Ext.menu.Separator',border:!0});Ext.cmd.derive('Ext.menu.Menu',Ext.panel.Panel,{enableKeyNav:!0,allowOtherMenus:!1,ariaRole:'menu',floating:!0,constrain:!0,hidden:!0,hideMode:'visibility',ignoreParentClicks:!1,isMenu:!0,showSeparator:!0,minWidth:undefined,defaultMinWidth:120,defaultAlign:'tl-bl?',focusOnToFront:!1,bringParentToFront:!1,defaultFocus:':focusable',menuClickBuffer:0,baseCls:'x-menu',_iconSeparatorCls:'x-menu-icon-separator',_itemCmpCls:'x-menu-item-cmp',layout:{type:'vbox',align:'stretchmax',overflowHandler:'Scroller'},initComponent:function(){var a=this,d=['x-menu'],c=a.bodyCls?[a.bodyCls]:[],e=a.floating!==!1,b={element:'el',click:a.onClick,mouseover:a.onMouseOver,scope:a};if(Ext.supports.Touch){b.pointerdown=a.onMouseOver}a.on(b);a.on({beforeshow:a.onBeforeShow,scope:a});if(a.plain){d.push('x-menu-plain')}a.cls=d.join(' ');c.push('x-menu-body',Ext.dom.Element.unselectableCls);a.bodyCls=c.join(' ');if(e){if(a.minWidth===undefined){a.minWidth=a.defaultMinWidth}}else {a.hidden=!!a.initialConfig.hidden;a.constrain=!1}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(a.getLayout(),{configureItem:a.configureItem})},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);a.hidden=this.hidden;return a},beforeRender:function(){var a=this;Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!a.getSizeModel().width.shrinkWrap){a.layout.align='stretch'}if(a.floating){a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!!a.autoShow}},onBoxReady:function(){var a=this,c=a._iconSeparatorCls,b=a.focusableKeyNav;if(b){b.map.processEventScope=a;b.map.processEvent=function(a){if(a.keyCode===a.ESC){a.target=this.el.dom}return a};b.map.addBinding([{key:Ext.event.Event.ESC,handler:a.onEscapeKey,scope:a},{key:/[\w]/,handler:a.onShortcutKey,scope:a,shift:!1,ctrl:!1,alt:!1}])}else {a.escapeKeyNav=new Ext.util.KeyNav(a.el,{eventName:'keydown',scope:a,esc:a.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(a.showSeparator){a.iconSepEl=a.body.insertFirst({role:'presentation',cls:c+' '+c+'-'+a.ui,html:' '})}if(Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){a.el.on({scope:a,click:a.preventClick,translate:!1})}a.mouseMonitor=a.el.monitorMouseLeave(100,a.onMouseLeave,a)},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var b=this,a=b.lastFocusedChild;if(a){a.blur()}},getItemFromEvent:function(d){var c=this,b=c.layout.getRenderTarget().dom,a=d.getTarget();while(a.parentNode!==b){a=a.parentNode;if(!a){return}}return Ext.getCmp(a.id)},lookupComponent:function(a){var b=this;if(typeof a==='string'){a=b.lookupItemFromString(a)}else {if(Ext.isObject(a)){a=b.lookupItemFromObject(a)}}if(!a.dock){a.minWidth=a.minWidth||b.minWidth}return a},lookupItemFromObject:function(a){var b=this;if(!a.isComponent){if(!a.xtype){a=Ext.create('Ext.menu.'+(Ext.isBoolean(a.checked)?'Check':'')+'Item',a)}else {a=Ext.ComponentManager.create(a,a.xtype)}}if(a.isMenuItem){a.parentMenu=b}return a},lookupItemFromString:function(a){return a==='separator'||a==='-'?new Ext.menu.Separator():new Ext.menu.Item({canActivate:!1,hideOnClick:!1,plain:!0,text:a})},configureItem:function(a){var c=this.owner,f='x-',e=c.ui,b,d;if(a.isMenuItem){a.setUI(e)}else {if(c.items.getCount()>1&&!a.rendered&&!a.dock){d=c._itemCmpCls;b=[d+' '+d+'-'+e];if(!c.plain&&(a.indent!==!1||a.iconCls==='no-icon')){b.push(f+'menu-item-indent-'+e)}if(a.rendered){a.el.addCls(b)}else {a.cls=(a.cls||'')+' '+b.join(' ')}a.$extraMenuCls=b}}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.destroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(b){var c=this,f=b.type,a,d,e=f==='keydown';if(c.disabled){b.stopEvent();return}a=c.getItemFromEvent(b);if(a&&a.isMenuItem){if(!a.menu||!c.ignoreParentClicks){d=a.onClick(b)}else {b.stopEvent()}if(a.menu&&d!==!1&&e){a.expandMenu(b,0)}}if(!a||a.disabled){a=undefined}c.fireEvent('click',c,a,b)},onDestroy:function(){var a=this;if(a.escapeKeyNav){a.escapeKeyNav.destroy()}a.parentMenu=a.ownerCmp=a.escapeKeyNav=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.menu.Manager.onHide(a);Ext.panel.Panel.prototype.onDestroy.apply(this,arguments)},onMouseLeave:function(a){if(this.disabled){return}this.fireEvent('mouseleave',this,a)},onMouseOver:function(c){var a=this,g=c.getRelatedTarget(),e=!a.el.contains(g),b=a.getItemFromEvent(c),d=a.parentMenu,f=a.ownerCmp;if(e&&d){d.setActiveItem(f);f.cancelDeferHide();d.mouseMonitor.mouseenter()}if(a.disabled){return}if(b){if(!b.containsFocus){b.focus()}if(b.expandMenu){b.expandMenu(c)}}if(e){a.fireEvent('mouseenter',a,c)}a.fireEvent('mouseover',a,b,c)},setActiveItem:function(a){var b=this;if(a&&a!==b.lastFocusedChild){b.focusChild(a,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(h,g){var e=String.fromCharCode(g.getCharCode()),c=this.query('>[text]'),f=c.length,a=this.lastFocusedChild,d=Ext.Array.indexOf(c,a),b=d;for(;;){if(++b===f){b=0}a=c[b];if(b===d){return}if(a.text&&a.text[0].toUpperCase()===e){a.focus();return}}},onFocusableContainerTabKey:function(a){if(this.floating){this.hide()}},onFocusableContainerEnterKey:function(a){this.onClick(a)},onFocusableContainerSpaceKey:function(a){this.onClick(a)},onFocusableContainerLeftKey:function(a){a.preventDefault();if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(b){var c=this,a=c.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)tablepanel:not(hidden)>tableview');if(a){a.focus()}},focusRow:function(c){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;b.focusRow(c)},focusCell:function(a){a.view.focusCell(a)},onRowFocus:function(){this.relayFn('onRowFocus',arguments)},isVisible:function(a){return this.ownerGrid.isVisible(a)},getFocusEl:function(){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;return b.getFocusEl()},getCellInclusive:function(a,c){var d=a.column,b=this.lockedGrid.getColumnManager().getColumns().length;if(d>=b){a=Ext.apply({},a);a.column-=b;return this.normalView.getCellInclusive(a,c)}else {return this.lockedView.getCellInclusive(a,c)}},getHeaderByCell:function(a){if(a){return this.getVisibleColumnManager().getHeaderById(a.getAttribute('data-columnId'))}return !1},onRowSelect:function(){this.relayFn('onRowSelect',arguments)},onRowDeselect:function(){this.relayFn('onRowDeselect',arguments)},onCellSelect:function(a){a.column.getView().onCellSelect({record:a.record,column:a.column})},onCellDeselect:function(a){a.column.getView().onCellDeselect({record:a.record,column:a.column})},getCellByPosition:function(a,c){var e=this,b=a.view,d=a.column;if(b===e){a=(new Ext.grid.CellContext(d.getView())).setPosition(a.record,a.column)}return b.getCellByPosition(a,c)},getRecord:function(b){var a=this.lockedView.getRecord(b);if(!a){a=this.normalView.getRecord(b)}return a},scrollBy:function(){var a=this.normalView;a.scrollBy.apply(a,arguments)},ensureVisible:function(){var a=this.normalView;a.ensureVisible.apply(a,arguments)},disable:function(){this.relayFn('disable',arguments)},enable:function(){this.relayFn('enable',arguments)},addElListener:function(){this.relayFn('addElListener',arguments)},refreshNode:function(){this.relayFn('refreshNode',arguments)},addRowCls:function(){this.relayFn('addRowCls',arguments)},removeRowCls:function(){this.relayFn('removeRowCls',arguments)},destroy:function(){var a=this;a.rendered=!1;a.bindStore(null,!1,'dataSource');Ext.destroy(a.lockedViewEventRelayers,a.normalViewEventRelayers);a.lockedViewEventRelayers=a.normalViewEventRelayers=null;a.callParent();Ext.destroy(a.loadMask,a.navigationModel,a.selModel);a.lockedView.lockingPartner=a.normalView.lockingPartner=null;a.lockedGrid=a.lockedView=a.normalGrid=a.normalView=null;a.loadMask=a.navigationModel=a.selModel=a.headerCt=null;a.ownerGrid=a.storeListeners=null}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable]],[Ext.grid.locking,'View',Ext.grid,'LockingView'],function(){this.borrow(Ext.Component,['up']);this.borrow(Ext.view.AbstractView,['doFirstRefresh','applyFirstRefresh']);this.borrow(Ext.view.Table,['cellSelector','selectedCellCls','selectedItemCls'])});Ext.cmd.derive('Ext.grid.locking.Lockable',Ext.Base,{alternateClassName:'Ext.grid.Lockable',syncRowHeight:!0,headerCounter:0,scrollDelta:40,lockedGridCls:'x-grid-inner-locked',normalGridCls:'x-grid-inner-normal',lockingBodyCls:'x-grid-locking-body',unlockText:'Unlock',lockText:'Lock',bothCfgCopy:['hideHeaders','enableColumnHide','enableColumnMove','enableColumnResize','sortableColumns','multiColumnSort','columnLines','rowLines','variableRowHeight','numFromEdge','trailingBufferZone','leadingBufferZone','scrollToLoadBuffer','syncRowHeight'],normalCfgCopy:['scroll'],lockedCfgCopy:[],determineXTypeToCreate:function(g){var f=this,a,b,d,e,c;if(f.subGridXType){a=f.subGridXType}else {if(!g){return 'gridpanel'}b=this.getXTypes().split('/');d=b.length;e=b[d-1];c=b[d-2];if(c!=='tablepanel'){a=c}else {a=e}}return a},injectLockable:function(){this.focusable=!1;this.lockable=!0;this.hasView=!0;var a=this,q=Ext.getScrollbarSize(),l=q.width,o=a.store=Ext.StoreManager.lookup(a.store),d=a.lockedViewConfig,g=a.normalViewConfig,s=Ext.Object,m,i,b,c,e,n,f,h,j=a.viewConfig,r=j&&j.loadMask,u=r!==undefined?r:a.loadMask,p=a.bufferedRenderer,k=l>0&&Ext.supports.touchScroll!==2,t=a.getInherited().rtl;m=a.constructLockableFeatures();a.features=null;i=a.constructLockablePlugins();a.plugins=i.topPlugins;b={id:a.id+'-locked',$initParent:a,isLocked:!0,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(!0),store:o,reserveScrollbar:k,scrollable:{indicators:{x:!0,y:!1}},scrollerOwner:!1,animate:!1,border:!1,cls:a.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.normalGrid.floatedFromCollapse},features:m.lockedFeatures,plugins:i.lockedPlugins};c={id:a.id+'-normal',$initParent:a,isLocked:!1,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(),store:o,reserveScrollbar:a.reserveScrollbar,scrollerOwner:!1,border:!1,cls:a.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.lockedGrid.floatedFromCollapse},features:m.normalFeatures,plugins:i.normalPlugins};a.addCls('x-grid-locked');Ext.copy(c,a,a.bothCfgCopy,!0);Ext.copy(b,a,a.bothCfgCopy,!0);Ext.copy(c,a,a.normalCfgCopy,!0);Ext.copy(b,a,a.lockedCfgCopy,!0);Ext.apply(c,a.normalGridConfig);Ext.apply(b,a.lockedGridConfig);for(e=0;e>#normalHeaderCt',items:e},j={itemId:'normalHeaderCt',stretchMaxPartner:'^^>>#lockedHeaderCt',items:f},l={locked:i,normal:j},g;if(Ext.isObject(b)){Ext.applyIf(i,b);Ext.applyIf(j,b);g=Ext.apply({},b);delete g.items;Ext.apply(c,g);b=b.items}c.constructing=!0;for(d=0,k=b.length;d0&&f){h.stopEvent();a+=e;d.setScrollY(a);b.normalGrid.getView().setScrollY(a);b.onNormalViewScroll()}}},onLockedViewScroll:function(){var f=this,e=f.lockedGrid.getView(),a=f.normalGrid.getView(),c=e.getScrollY(),g=a.getScrollY(),b,d;if(g!==c){a.setScrollY(c);if(a.bufferedRenderer){d=e.body.dom;b=a.body.dom;b.style.position='absolute';b.style.top=d.style.top}}},onNormalViewScroll:function(){var e=this,b=e.lockedGrid.getView(),c=e.normalGrid.getView(),f=b.getScrollY(),d=c.getScrollY(),a;if(d!==f){b.setScrollY(d);if(c.bufferedRenderer){a=b.body;if(a.dom){a.dom.style.position='absolute';a.translate(null,c.bufferedRenderer.bodyTop)}}}},syncRowHeights:function(){if(!this.destroyed){var f=this,b=f.normalGrid.getView(),a=f.lockedGrid.getView(),d=b.syncRowHeightBegin(),c=a.syncRowHeightBegin(),e;b.syncRowHeightMeasure(d);a.syncRowHeightMeasure(c);b.syncRowHeightFinish(d,c);a.syncRowHeightFinish(c,d);e=b.getScrollY();a.setScrollY(e)}},modifyHeaderCt:function(){var a=this;a.lockedGrid.headerCt.getMenuItems=a.getMenuItems(a.lockedGrid.headerCt.getMenuItems,!0);a.normalGrid.headerCt.getMenuItems=a.getMenuItems(a.normalGrid.headerCt.getMenuItems,!1);a.lockedGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.lockedGrid.headerCt.showMenuBy,a.showMenuBy);a.normalGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.normalGrid.headerCt.showMenuBy,a.showMenuBy)},onUnlockMenuClick:function(){this.unlock()},onLockMenuClick:function(){this.lock()},showMenuBy:function(f,g,c){var d=this.getMenu(),a=d.down('#unlockItem'),b=d.down('#lockItem'),e=a.prev();if(c.lockable===!1){e.hide();a.hide();b.hide()}else {e.show();a.show();b.show();if(!a.initialConfig.disabled){a.setDisabled(c.lockable===!1)}if(!b.initialConfig.disabled){b.setDisabled(!c.isLockable())}}},getMenuItems:function(d,b){var a=this,f=a.unlockText,h=a.lockText,g='x-hmenu-unlock',i='x-hmenu-lock',c=a.onUnlockMenuClick.bind(a),e=a.onLockMenuClick.bind(a);return function(){var a=d.call(this);a.push('-',{itemId:'unlockItem',iconCls:g,text:f,handler:c,disabled:!b});a.push({itemId:'lockItem',iconCls:i,text:h,handler:e,disabled:b});return a}},delaySyncLockedWidth:function(){var a=this,b=a.syncLockedWidthTask;if(!a.view.all.getCount()){return}if(!b){b=a.syncLockedWidthTask=new Ext.util.DelayedTask(a.syncLockedWidth,a)}b.delay(1)},syncLockedWidth:function(){var b=this,c=b.rendered,a=b.lockedGrid,g=a.view,d=b.normalGrid,e=a.getVisibleColumnManager().getColumns().length,f=d.getVisibleColumnManager().getColumns().length,h=b.syncLockedWidthTask;if(h){h.cancel()}Ext.suspendLayouts();if(f){d.show();if(e){if(c&&a.shrinkWrapColumns&&!a.headerCt.forceFit){delete a.flex;a.setWidth(a.headerCt.getTableWidth()+a.gridPanelBorderWidth)}a.addCls(b.lockedGridCls);a.show();if(a.split){b.child('splitter').show();b.addCls('x-grid-locked-split')}}else {if(c){a.getView().clearViewEl(!0)}a.hide();if(a.split){b.child('splitter').hide();b.removeCls('x-grid-locked-split')}}if(Ext.supports.touchScroll!==2&&Ext.Component.pendingLayouts){g.getScrollable().setX(!0)}if(c){b.ignoreMousewheel=g.scrollFlags.y}}else {d.hide();a.flex=1;delete a.width;a.removeCls(b.lockedGridCls);a.show();b.ignoreMousewheel=!0}Ext.resumeLayouts(!0);return [e,f]},onLockedHeaderSortChange:Ext.emptyFn,onNormalHeaderSortChange:Ext.emptyFn,lock:function(a,l,g){var e=this,i=e.normalGrid,b=e.lockedGrid,d=i.view,c=b.view,m=i.headerCt,h,k,j,f;a=a||m.getMenu().activeHeader;j=a.hasFocus;g=g||b.headerCt;k=a.ownerCt;if(!a.isLockable()){return}if(a.flex&&b.shrinkWrapColumns){a.width=a.getWidth();a.flex=null}Ext.suspendLayouts();if(b.hidden){if(!b.componentLayoutCounter){if(c.bufferedRenderer){c.bufferedRenderer.onViewResize(c,0,d.getHeight())}f=d.getScrollY()}b.show()}d.blockRefresh=c.blockRefresh=!0;a.ownerCmp=a.ownerCt;k.remove(a,!1);a.locked=!0;if(Ext.isDefined(l)){g.insert(l,a)}else {g.add(a)}d.blockRefresh=c.blockRefresh=!1;a.ownerCmp=null;h=e.syncLockedWidth();if(h[0]){b.getView().refreshView()}if(h[1]){i.getView().refreshView()}e.fireEvent('lockcolumn',e,a);Ext.resumeLayouts(!0);if(f){c.setScrollY(f);d.setScrollY(f)}if(j){a.focus()}},unlock:function(a,f,g){var b=this,e=b.normalGrid,d=b.lockedGrid,i=e.view,h=d.view,k=d.headerCt,c,j;if(!Ext.isDefined(f)){f=0}a=a||k.getMenu().activeHeader;j=a.hasFocus;g=g||e.headerCt;Ext.suspendLayouts();i.blockRefresh=h.blockRefresh=!0;a.ownerCmp=a.ownerCt;a.ownerCt.remove(a,!1);a.locked=!1;g.insert(f,a);i.blockRefresh=h.blockRefresh=!1;a.ownerCmp=null;c=b.syncLockedWidth();if(c[0]){d.getView().refreshView()}if(c[1]){e.getView().refreshView()}b.fireEvent('unlockcolumn',b,a);Ext.resumeLayouts(!0);if(j){a.focus()}},reconfigureLockable:function(a,f){var d=this,h=d.store,c=d.lockedGrid,e=d.normalGrid,b,g;if(a&&a!==h){a=Ext.data.StoreManager.lookup(a);d.store=a;c.view.blockRefresh=e.view.blockRefresh=!0;c.bindStore(a);b=c.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}e.bindStore(a);b=e.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}d.view.store=a;g=d.view.loadMask;if(g&&g.isLoadMask){g.bindStore(a)}d.view.bindStore(e.view.dataSource,!1,'dataSource');c.view.blockRefresh=e.view.blockRefresh=!1}if(f){c.reconfiguring=e.reconfiguring=!0;c.headerCt.removeAll();e.headerCt.removeAll();f=d.processColumns(f,c);c.headerCt.add(f.locked.items);e.headerCt.add(f.normal.items);c.reconfiguring=e.reconfiguring=!1;d.syncLockedWidth()}d.refreshCounter=c.view.refreshCounter},afterReconfigureLockable:function(){var a=this.lockedGrid.getView();if(this.refreshCounter===a.refreshCounter){this.view.refresh()}},constructLockableFeatures:function(){var b=this.features,a,e,c,d,f=0,g;if(b){if(!Ext.isArray(b)){b=[b]}c=[];d=[];g=b.length;for(;f0){a.onViewResize(b,null,e);if(c&&d.getCount()!==c.length){c.length=0;c.push.apply(c,a.store.getRange(d.startIndex,d.endIndex))}}}},beforeTableLayout:function(b){var a=this.view.body.dom;if(a){b.bodyHeight=a.offsetHeight;b.bodyWidth=a.offsetWidth}},afterTableLayout:function(d){var a=this,b=a.view,c;if(d.bodyHeight&&b.body.dom){delete a.rowHeight;a.refreshSize();c=b.body.dom.offsetHeight;if(c!==d.bodyHeight){a.onViewResize(b,null,b.el.lastBox.height);if(c=a.store.getCount()){a.setBodyTop(0)}else {if(a.bodyTop>a.scrollTop||a.bodyTop+cb){a.position=a.scrollTop=Math.max(b-a.bodyHeight,0);c.setScrollY(a.scrollTop)}if(a.bodyTop>b){c.body.translate(null,a.bodyTop=a.position)}if(c.getScrollable()){a.refreshScroller(c,b)}},refreshScroller:function(b,c){var a=b.getScrollable();if(a){if(a.setElementSize){a.setElementSize()}a.setSize({x:b.headerCt.getTableWidth(),y:c})}},setViewSize:function(c,o){var a=this,h=a.store,g=a.view,d=g.all,j=d.getCount(),e,f,b=a.view.lockingPartner&&a.view.lockingPartner.bufferedRenderer,i=j-c,n,m,l,k;if(b&&!o&&b.view.componentLayoutCounter){if(b.viewSize>c){c=b.viewSize}else {b.setViewSize(c,!0)}}i=j-c;if(i){a.scrollTop=g.getScrollY();a.viewSize=c;if(h.isBufferedStore){h.setViewSize(c)}if(j){k=h.getCount();e=d.startIndex;f=Math.min(e+c-1,k-1);if(e===d.startIndex&&f===d.endIndex){if(i<0){a.handleViewScroll(-1)}}else {if(b){b.disable()}if(i<0){if(k>j){h.getRange(d.endIndex+1,f,{callback:function(b,d){l=g.doAdd(b,d);g.fireEvent('itemadd',b,d,l);a.setBodyTop(a.bodyTop)}})}else {a.refreshView(0)}}else {e=d.endIndex-(i-1);f=d.endIndex;m=d.slice(e,f+1);d.removeRange(e,f,!0);if(g.hasListeners.itemremove){n=h.getRange(e,f);g.fireEvent('itemremove',n,e,m)}a.setBodyTop(a.bodyTop)}if(b){b.enable()}}}}return c},getViewRange:function(){var d=this,c=d.view.all,a=d.store,b=0;if(c.getCount()){b=c.startIndex}else {if(a.isBufferedStore){if(!a.currentPage){a.currentPage=1}b=c.startIndex=(a.currentPage-1)*(a.pageSize||1);a.currentPage=1}}if(a.data.getCount()){return a.getRange(b,b+(d.viewSize||a.defaultViewSize)-1)}else {return []}},onReplace:function(l,d,j,k){var a=this,c=a.view,b=c.all,i,g=b.getCount(),h=d+j.length-1,e=k.length-j.length,f=e*a.rowHeight;if(d>=b.startIndex+a.viewSize){a.refreshSize();return}if(g&&h=a.viewSize){b.moveBlock(e);a.refreshSize();i=b.startIndex;if(e>0){a.doNotMirror=!0;a.handleViewScroll(-1);a.doNotMirror=!1}if(b.startIndex===i){if(b.startIndex){a.setBodyTop(a.bodyTop+=f);c.suspendEvent('scroll');c.scrollBy(0,f);c.resumeEvent('scroll');a.position=a.scrollTop=c.getScrollY()}}else {c.suspendEvent('scroll');c.scrollBy(0,(i-b.startIndex)*a.rowHeight);c.resumeEvent('scroll')}c.refreshSize(b.getCount()!==g);return}if(g&&d>b.endIndex){a.refreshSize();if(e>0){a.onRangeFetched(null,b.startIndex,Math.min(l.getCount(),b.startIndex+a.viewSize)-1,null,!0)}c.refreshSize(b.getCount()!==g);return}if(d0?1:-1;if(Math.abs(c)>=20||b!==a.lastScrollDirection){a.lastScrollDirection=b;a.handleViewScroll(a.lastScrollDirection)}}},onViewScrollEnd:function(){if(this.needsPointerEventsFix){this.view.body.dom.style.pointerEvents=''}},handleViewScroll:function(h){var a=this,d=a.view.all,g=a.store,f=a.viewSize,e=g.getCount()-1,b,c;if(h===-1){if(d.startIndex){if(a.topOfViewCloseToEdge()){b=Math.max(0,a.getLastVisibleRowIndex()+a.trailingBufferZone-f)}}}else {if(d.endIndexa.scrollTop-a.numFromEdge*a.rowHeight}else {return a.getFirstVisibleRowIndex()-a.view.all.startIndexd){a=c-d+1}}}if(a===0&&c===0&&e===0){b.doRefreshView([],0,0)}else {g.getRange(a,c,{callback:b.doRefreshView,scope:b})}},doRefreshView:function(i,h,p,q){var a=this,b=a.view,c=b.all,l=c.startIndex,m=c.endIndex,e,f,n=c.getCount(),o,k=h!==c.startIndex,g,d,j;if(b.refreshCounter){if(b.hasListeners.beforerefresh&&b.fireEvent('beforerefresh',b)===!1){return}b.refreshing=a.refreshing=!0;j=b.saveFocusState();b.clearViewEl(!0);b.refreshCounter++;if(i.length){o=b.doAdd(i,h);if(k){e=c.item(l,!0);f=c.item(m,!0);if(e){d=-e.offsetTop}else {if(f){d=c.last(!0).offsetTop-f.offsetTop}}if(d){a.bodyTop=Math.max(a.bodyTop+d,0);a.scrollTop=a.bodyTop?a.scrollTop+d:0}else {a.bodyTop=g=h*a.rowHeight;a.scrollTop=Math.max(g-a.rowHeight*(gc.endIndex){r=c.startIndex-e;b.clearViewEl(!0);g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g);for(o=0;oc.endIndex||jp){d=a.scrollTop-a.rowHeight*p}}b.clearViewEl(!0);a.teleported=!1}if(!c.getCount()){g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g)}else {if(j>c.endIndex){l=Math.max(e-c.startIndex,0);if(k){i=c.item(c.startIndex+l,!0).offsetTop}g=c.scroll(Ext.Array.slice(h,c.endIndex+1-e),1,l);if(k){d=a.bodyTop+i}else {d=m}}else {l=Math.max(c.endIndex-j,0);u=c.startIndex;g=c.scroll(Ext.Array.slice(h,0,c.startIndex-e),-1,l);if(k){d=a.bodyTop-c.item(u,!0).offsetTop;if(!c.startIndex){if(d){b.setScrollY(a.position=a.scrollTop-=d);d=0}}else {if(d<0){i=c.startIndex*a.rowHeight;b.setScrollY(a.position=a.scrollTop+=i);d=a.bodyTop+i}}}else {d=m}}}a.position=a.scrollTop}if(t&&!v.contains(q)){n=b.actionableMode?b.actionPosition:b.lastFocused;if(n&&n.column){b.onFocusLeave({});n.column.focus()}}d=Math.max(Math.floor(d),0);if(b.positionBody){a.setBodyTop(d)}if(g&&f&&!f.disabled){f.scrollTop=f.position=a.scrollTop;if(f.view.ownerCt.isVisible()){s=f.onRangeFetched(null,e,j,x,!0);if(b.ownerGrid.syncRowHeight||f.variableRowHeight!==k){a.syncRowHeights(g,s);a.bodyHeight=b.body.dom.offsetHeight}}if(f.bodyTop!==d){f.setBodyTop(d)}f.view.setScrollY(a.scrollTop)}return g},syncRowHeights:function(b,e){var d=this,c=0,f=1,i=[],h=[],j=Ext.grid.locking.RowSynchronizer,a,g;if(b&&e){c=b.length;f=e.length}if(c!==f){b=d.view.all.slice();e=d.view.lockingPartner.all.slice();c=f=b.length}for(a=0;ae||i+a.bodyHeightc||j+a.bodyHeightc){return a.getLastVisibleRowIndex(f,b-1,e,c)}k=i+l[b].offsetHeight;if(k>=c){return b}else {if(b!==d){return a.getLastVisibleRowIndex(b+1,d,e,c)}}}return a.getFirstVisibleRowIndex()+Math.ceil(h/a.rowHeight)},getScrollHeight:function(){var a=this,j=a.view,d=j.all,i=a.store,c=i.getCount(),g=d.getCount(),h,f,e,b;if(!c){return 0}if(!a.hasOwnProperty('rowHeight')){if(g){if(a.variableRowHeight){a.rowHeight=Math.floor(a.bodyHeight/g)}else {h=d.first();f=h.getHeight();if(Ext.isIE8){e=h.getBorderWidth('b');if(e>0){f-=e}}a.rowHeight=f}}else {delete a.rowHeight}}if(a.variableRowHeight){if(d.endIndex===c-1){b=a.bodyTop+a.bodyHeight-1}else {b=Math.floor((c-g)*a.rowHeight)+a.bodyHeight;b+=a.bodyTop-d.startIndex*a.rowHeight}}else {b=Math.floor(c*a.rowHeight)}return a.scrollHeight=b},attemptLoad:function(b,c){var a=this;if(a.scrollToLoadBuffer){if(!a.loadTask){a.loadTask=new Ext.util.DelayedTask(a.doAttemptLoad,a,[])}a.loadTask.delay(a.scrollToLoadBuffer,a.doAttemptLoad,a,[b,c])}else {a.doAttemptLoad(b,c)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(b,c){var a=this;if(!a.destroyed){a.store.getRange(b,c,{loadId:++a.loadId,callback:function(e,f,g,d){if(d.loadId===a.loadId){a.onRangeFetched(e,f,g,d)}},fireEvent:!1})}},destroy:function(){var a=this,b=a.view;a.cancelLoad();if(b&&b.el){b.un('scroll',a.onViewScroll,a)}if(a.store){a.unbindStore()}a.viewListeners=a.gridListeners=a.view=a.grid=Ext.destroy(a.viewListeners,a.stretcher,a.gridListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,['plugin.bufferedrenderer'],0,[Ext.grid.plugin,'BufferedRenderer'],function(a){if(Ext.supports.Touch){a.prototype.leadingBufferZone=a.prototype.trailingBufferZone=2;a.prototype.numFromEdge=1}});Ext.cmd.derive('Ext.grid.plugin.Editing',Ext.plugin.Abstract,{clicksToEdit:2,triggerEvent:undefined,relayedEvents:['beforeedit','edit','validateedit','canceledit'],defaultFieldUI:'default',defaultFieldXType:'textfield',editStyle:'',constructor:function(b){var a=this;Ext.plugin.Abstract.prototype.constructor.call(this,b);a.mixins.observable.constructor.call(a);a.on('edit',function(c,d){a.fireEvent('afteredit',c,d)})},init:function(b){var a=this,c=b.ownerLockable;a.grid=b;a.view=b.view;a.initEvents();if(b.rendered){a.setup()}else {a.mon(b,{beforereconfigure:a.onBeforeReconfigure,reconfigure:a.onReconfigure,scope:a,beforerender:{fn:a.onBeforeRender,single:!0,scope:a}})}b.editorEventRelayers=b.relayEvents(a,a.relayedEvents);if(c){c.editorEventRelayers=c.relayEvents(a,a.relayedEvents)}b.isEditable=!0;b.editingPlugin=b.view.editingPlugin=a},onBeforeReconfigure:function(){this.reconfiguring=!0},onReconfigure:function(){this.setup();delete this.reconfiguring},onBeforeRender:function(){this.setup()},setup:function(){this.initFieldAccessors(this.grid.getTopLevelColumnManager().getColumns())},destroy:function(){var b=this,a=b.grid;Ext.destroy(b.keyNav);b.clearListeners();if(a){if(a.ownerLockable){Ext.destroy(a.ownerLockable.editorEventRelayers);a.ownerLockable.editorEventRelayers=null}Ext.destroy(a.editorEventRelayers);a.editorEventRelayers=null;a.editingPlugin=a.view.editingPlugin=b.grid=b.view=b.editor=b.keyNav=null}Ext.plugin.Abstract.prototype.destroy.call(this)},getEditStyle:function(){return this.editStyle},initFieldAccessors:function(a){if(a.isGroupHeader){a=a.getGridColumns()}else {if(!Ext.isArray(a)){a=[a]}}var d=this,c,h=a.length,e=function(c,b){return d.getColumnField(this,b)},f=function(){return d.hasColumnField(this)},g=function(b){d.setColumnField(this,b)},b;for(c=0;c[isFormField]'),j=g.length,b,a,c;for(b=0;b0);if(r){a.widthModel=a.heightModel=null;k=d.getSizeModel(b&&b.widthModel.pairsByHeightOrdinal[b.heightModel.ordinal]);if(j){a.sizeModel=k}a.widthModel=k.width;a.heightModel=k.height;if(b&&!a.isComponentChild){if(h.needsItemSize||!d.liquidLayout){b.remainingChildDimensions+=2}else {if(a.widthModel.calculated){++b.remainingChildDimensions}if(a.heightModel.calculated){++b.remainingChildDimensions}}}}else {if(c){a.recoverProp('x',c,e);a.recoverProp('y',c,e);if(a.widthModel.calculated){a.recoverProp('width',c,e)}else {if('width' in c){++m}}if(a.heightModel.calculated){a.recoverProp('height',c,e)}else {if('height' in c){++m}}if(b&&!a.isComponentChild){b.remainingChildDimensions+=m}}}if(c&&h&&h.manageMargins){a.recoverProp('margin-top',c,e);a.recoverProp('margin-right',c,e);a.recoverProp('margin-bottom',c,e);a.recoverProp('margin-left',c,e)}if(i){f=i.heightModel;g=i.widthModel;if(g&&f&&p&&o){if(p.shrinkWrap&&o.shrinkWrap){if(g.constrainedMax&&f.constrainedMin){f=null}}}if(g){a.widthModel=g}if(f){a.heightModel=f}if(i.state){Ext.apply(a.state,i.state)}}return s},initContinue:function(f){var b=this,a=b.ownerCtContext,g=b.target,c=b.widthModel,e=g.getInherited(),d;if(c.fixed){e.inShrinkWrapTable=!1}else {delete e.inShrinkWrapTable}if(f){if(a&&c.shrinkWrap){d=a.isBoxParent?a:a.boxParent;if(d){d.addBoxChild(b)}}else {if(c.natural){b.boxParent=a}}}return f},initDone:function(d){var a=this,b=a.props,c=a.state;if(a.remainingChildDimensions===0){b.containerChildrenSizeDone=!0}if(d){b.containerLayoutDone=!0}if(a.boxChildren&&a.boxChildren.length&&a.widthModel.shrinkWrap){a.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var a=this,b=a.target,c=a.ownerCtContext;if(c&&c.isTopLevel){a.animatePolicy=b.ownerLayout.getAnimatePolicy(a)}else {if(!c&&b.isCollapsingOrExpanding&&b.animCollapse){a.animatePolicy=b.componentLayout.getAnimatePolicy(a)}}if(a.animatePolicy){a.context.queueAnimation(a)}},addBlock:function(f,a,e){var b=this,d=b[f]||(b[f]={}),c=d[e]||(d[e]={});if(!c[a.id]){c[a.id]=a;++a.blockCount;++b.context.blockCount}},addBoxChild:function(a){var d=this,b,c=a.widthModel;a.boxParent=this;a.measuresBox=c.shrinkWrap?a.hasRawContent:c.natural;if(a.measuresBox){b=d.boxChildren;if(b){b.push(a)}else {d.boxChildren=[a]}}},addPositionStyles:function(b,c){var d=c.x,e=c.y,a=0;if(d!==undefined){b.left=d+'px';++a}if(e!==undefined){b.top=e+'px';++a}return a},addTrigger:function(c,e){var b=this,h=e?'domTriggers':'triggers',f=b[h]||(b[h]={}),g=b.context,a=g.currentLayout,d=f[c]||(f[c]={});if(!d[a.id]){d[a.id]=a;++a.triggerCount;d=g.triggers[e?'dom':'data'];(d[a.id]||(d[a.id]=[])).push({item:this,prop:c});if(b.props[c]!==undefined){if(!e||!(b.dirty&&c in b.dirty)){++a.firedTriggers}}}},boxChildMeasured:function(){var a=this,b=a.state,c=b.boxesMeasured=(b.boxesMeasured||0)+1;if(c===a.boxChildren.length){b.clearBoxWidth=1;++a.context.progressCount;a.markDirty()}},borderNames:['border-top-width','border-right-width','border-bottom-width','border-left-width'],marginNames:['margin-top','margin-right','margin-bottom','margin-left'],paddingNames:['padding-top','padding-right','padding-bottom','padding-left'],trblNames:['top','right','bottom','left'],cacheMissHandlers:{borderInfo:function(b){var a=b.getStyles(b.borderNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},marginInfo:function(b){var a=b.getStyles(b.marginNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},paddingInfo:function(b){var c=b.frameBodyContext||b,a=c.getStyles(b.paddingNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(c){var a=this[c],b;if(a){for(b in a){this.clearBlocks(c,b)}}},clearBlocks:function(g,f){var c=this[g],b=c&&c[f],d,a,e;if(b){delete c[f];d=this.context;for(e in b){a=b[e];--d.blockCount;if(!--a.blockCount&&!a.pending&&!a.done){d.queueLayout(a)}}}},block:function(b,a){this.addBlock('blocks',b,a)},domBlock:function(b,a){this.addBlock('domBlocks',b,a)},fireTriggers:function(g,e){var c=this[g],b=c&&c[e],f=this.context,a,d;if(b){for(d in b){a=b[d];++a.firedTriggers;if(!a.done&&!a.blockCount&&!a.pending){f.queueLayout(a)}}}},flush:function(){var a=this,d=a.dirty,b=a.state,c=a.el;a.dirtyCount=0;if('attributes' in a){c.set(a.attributes);delete a.attributes}if('innerHTML' in a){c.innerHTML=a.innerHTML;delete a.innerHTML}if(b&&b.clearBoxWidth){b.clearBoxWidth=0;a.el.setStyle('width',null);if(!--b.blocks){a.context.queueItemLayouts(a)}}if(d){delete a.dirty;a.writeProps(d,!0)}},flushAnimations:function(){var b=this,k=b.previousSize,a,h,l,f,d,g,e,m,c,j,i;if(k){a=b.target;h=a.getAnimationProps();l=h.duration;f=Ext.Object.getKeys(b.animatePolicy);d=Ext.apply({},{from:{},to:{},duration:l||Ext.fx.Anim.prototype.duration},h);for(g=0,e=0,m=f.length;e0},runLayout:function(a){var b=this,c=b.getCmp(a.owner);a.pending=!1;if(c.state.blocks){return}a.done=!0;++a.calcCount;++b.calcCount;a.calculate(c);if(a.done){b.layoutDone(a);if(a.completeLayout){b.queueCompletion(a)}if(a.finalizeLayout){b.queueFinalize(a)}}else {if(!a.pending&&!a.invalid&&!(a.blockCount+a.triggerCount-a.firedTriggers)){b.queueLayout(a)}}},setItemSize:function(a,g,f){var b=a,c=1,e,d;if(a.isComposite){b=a.elements;c=b.length;a=b[0]}else {if(!a.dom&&!a.el){c=b.length;a=b[0]}}for(d=0;da){a=d.weight}}},this);return a},getSplitterTarget:function(b){var a=b.collapseTarget;if(a&&a.collapsed){return a.placeholder||a}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},insertSplitter:function(a,f,e,d){var c=a.region,b=Ext.apply({xtype:'bordersplitter',collapseTarget:a,id:a.id+'-splitter',hidden:e,canResize:a.splitterResize!==!1,splitterFor:a,synthetic:!0},d),g=f+(c==='south'||c==='east'?0:1);if(a.collapseMode==='mini'){b.collapsedCls=a.collapsedCls}a.splitter=this.owner.add(g,b)},getMoveAfterIndex:function(b){var a=Ext.layout.container.Container.prototype.getMoveAfterIndex.apply(this,arguments);if(b.splitter){a++}return a},moveItemBefore:function(c,a){var b;if(a&&a.splitter){b=a.region;if(b==='south'||b==='east'){a=a.splitter}}return Ext.layout.container.Container.prototype.moveItemBefore.call(this,c,a)},onAdd:function(a,i){var b=this,d=a.placeholderFor,f=a.region,e,c,g,h;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(f){Ext.apply(a,b.regionFlags[f]);if(b.owner.isViewport){a.isViewportBorderChild=!0}if(a.initBorderRegion){a.initBorderRegion()}e=f==='center';if(e){b.centerRegion=a}else {c=a.split;g=!!a.hidden;if(typeof c==='object'){h=c;c=!0}if((a.isHorz||a.isVert)&&(c||a.collapseMode==='mini')){b.insertSplitter(a,i,g||!c,h)}}if(!e&&!a.hasOwnProperty('collapseMode')){a.collapseMode=b.panelCollapseMode}if(!a.hasOwnProperty('animCollapse')){if(a.collapseMode!=='placeholder'){a.animCollapse=!1}else {a.animCollapse=b.panelCollapseAnimate}}}else {if(d){Ext.apply(a,b.regionFlags[d.region]);a.region=d.region;a.weight=d.weight}}},onDestroy:function(){this.centerRegion=null;Ext.layout.container.Container.prototype.onDestroy.call(this)},onRemove:function(a,f){var d=this,h=a.region,e=a.splitter,c=d.owner,g=c.destroying,b;if(h){if(a.isCenter){d.centerRegion=null}delete a.isCenter;delete a.isHorz;delete a.isVert;if(e&&!c.destroying){c.doRemove(e,!0)}delete a.splitter}Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(!g&&!f&&a.rendered){b=a.getEl();if(b){b.setStyle('top','');b.setStyle(d.horzPositionProp,'')}}},regionMeta:{center:{splitterDelta:0},north:{splitterDelta:1},south:{splitterDelta:-1},west:{splitterDelta:1},east:{splitterDelta:-1}},regionFlags:{center:{isCenter:!0,isHorz:!1,isVert:!1},north:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'top'},south:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'bottom'},west:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'left'},east:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'right'}},setupSplitterNeighbors:function(l){var i={},m=l.length,k=this.touchedRegions,h,b,j,g,d,a,f,e,c;for(h=0;h{%this.renderBody(out, values)%}'],targetElCls:'x-center-target',beginLayout:function(b){var h=this,f=h.percentRe,e,g,d,c,a,j,i;Ext.layout.container.Fit.prototype.beginLayout.call(this,b);e=b.childItems;for(d=0,g=e.length;dm){a=m}}if(a-d<2){return null}c=new Ext.util.Region(v,t,s,u);i.constraintAdjusters[i.getCollapseDirection()](c,d,a,e);i.dragInfo={minRange:d,maxRange:a,targetSize:q};return c},constraintAdjusters:{left:function(a,c,b,d){a[0]=a.x=a.left=a.right+c;a.right+=b+d.getWidth()},top:function(a,c,b,d){a[1]=a.y=a.top=a.bottom+c;a.bottom+=b+d.getHeight()},bottom:function(a,c,b,d){a.bottom=a.top-c;a.top-=b+d.getHeight()},right:function(a,c,b,d){a.right=a.left-c;a[0]=a.x=a.left=a.x-b+d.getWidth()}},onBeforeStart:function(h){var c=this,f=c.splitter,d=f.collapseTarget,e=f.neighbors,g=e.length,a,b;if(d.collapsed){return !1}for(a=0;ad){a.minWidth=a.el.getWidth()*c}else {a.minHeight=a.el.getHeight()*d}}if(a.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)},a.throttle);a.resize=function(f,d,c){if(c){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)}else {e.apply(null,arguments)}}}},onBeforeStart:function(a){this.startBox=this.target.getBox()},getProxy:function(){var a=this;if(!a.dynamic&&!a.proxy){a.proxy=a.createProxy(a.target||a.el);a.hideProxy=!0}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(a){var b,c=this.proxyCls;if(a.isComponent){b=a.getProxy().addCls(c)}else {b=a.createProxy({tag:'div',role:'presentation',cls:c,id:a.id+'-rzproxy'},Ext.getBody())}b.removeCls('x-proxy-el');return b},onStart:function(a){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(c,b){var a=Ext.fly(b.parentNode);Ext.dd.DragTracker.prototype.onMouseDown.apply(this,arguments);if(a&&a.shim){a.maskIframes()}},onMouseUp:function(b){var a=Ext.fly(this.dragTarget.parentNode);Ext.dd.DragTracker.prototype.onMouseUp.apply(this,arguments);if(a&&a.shim){a.unmaskIframes()}},onDrag:function(a){if(this.dynamic||this.proxy){this.updateDimensions(a)}},updateDimensions:function(s,r){var c=this,h=c.activeResizeHandle.region,d=c.getOffset(c.constrainTo?'dragTarget':null),b=c.startBox,n,f=0,e=0,k,j,l=0,m=0,q,i,g,a,o,p;h=c.convertRegionName(h);switch(h){case 'south':e=d[1];g=2;break;case 'north':e=-d[1];m=-e;g=2;break;case 'east':f=d[0];g=1;break;case 'west':f=-d[0];l=-f;g=1;break;case 'northeast':e=-d[1];m=-e;f=d[0];i=[b.x,b.y+b.height];g=3;break;case 'southeast':e=d[1];f=d[0];i=[b.x,b.y];g=3;break;case 'southwest':f=-d[0];l=-f;e=d[1];i=[b.x+b.width,b.y];g=3;break;case 'northwest':e=-d[1];m=-e;f=-d[0];l=-f;i=[b.x+b.width,b.y+b.height];g=3;break;}a={width:b.width+f,height:b.height+e,x:b.x+l,y:b.y+m};k=Ext.Number.snap(a.width,c.widthIncrement);j=Ext.Number.snap(a.height,c.heightIncrement);if(k!==a.width||j!==a.height){switch(h){case 'northeast':a.y-=j-a.height;break;case 'north':a.y-=j-a.height;break;case 'southwest':a.x-=k-a.width;break;case 'west':a.x-=k-a.width;break;case 'northwest':a.x-=k-a.width;a.y-=j-a.height;}a.width=k;a.height=j}if(a.widthc.maxWidth){a.width=Ext.Number.constrain(a.width,c.minWidth,c.maxWidth);if(l){a.x=b.x+(b.width-a.width)}}else {c.lastX=a.x}if(a.heightc.maxHeight){a.height=Ext.Number.constrain(a.height,c.minHeight,c.maxHeight);if(m){a.y=b.y+(b.height-a.height)}}else {c.lastY=a.y}if(c.preserveRatio||s.shiftKey){n=c.startBox.width/c.startBox.height;o=Math.min(Math.max(c.minHeight,a.width/n),c.maxHeight);p=Math.min(Math.max(c.minWidth,a.height*n),c.maxWidth);if(g===1){a.height=o}else {if(g===2){a.width=p}else {q=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(q>n){a.height=o}else {a.width=p}if(h==='northeast'){a.y=b.y-(a.height-b.height)}else {if(h==='northwest'){a.y=b.y-(a.height-b.height);a.x=b.x-(a.width-b.width)}else {if(h==='southwest'){a.x=b.x-(a.width-b.width)}}}}}}c.setPosition=a.x!==c.startBox.x||a.y!==c.startBox.y;c.resize(a,r)},resize:function(b,e){var a=this,c,d=a.setPosition;if(a.dynamic||!a.dynamic&&e){if(d){a.target.setBox(b)}else {a.target.setSize(b.width,b.height)}}if(!e){c=a.getProxy();if(c&&c!==a.target){if(d||a.hideProxy){c.setBox(b)}else {c.setSize(b.width,b.height)}}}},onEnd:function(a){this.updateDimensions(a,!0);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,'ResizeTracker'],0);Ext.cmd.derive('Ext.resizer.Resizer',Ext.Base,{alternateClassName:'Ext.Resizable',handleCls:'x-resizable-handle',overCls:'x-resizable-handle-over',pinnedCls:'x-resizable-pinned',wrapCls:'x-resizable-wrap',wrappedCls:'x-resizable-wrapped',delimiterRe:/(?:\s*[,;]\s*)|\s+/,dynamic:!0,handles:'s e se',height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:!1,preserveRatio:!1,transparent:!1,possiblePositions:{n:'north',s:'south',e:'east',w:'west',se:'southeast',sw:'southwest',nw:'northwest',ne:'northeast'},ariaRole:'presentation',constructor:function(e){var a=this,d=a.handles,q=Ext.dom.Element.unselectableCls,h=[],b,k,i,m,p,c,f,n,l,g,o,j;if(Ext.isString(e)||Ext.isElement(e)||e.dom){b=e;e=arguments[1]||{};e.target=b}a.mixins.observable.constructor.call(a,e);b=a.target;if(b){if(b.isComponent){b.addClsWithUI('resizable');if(b.minWidth){a.minWidth=b.minWidth}if(b.minHeight){a.minHeight=b.minHeight}if(b.maxWidth){a.maxWidth=b.maxWidth}if(b.maxHeight){a.maxHeight=b.maxHeight}if(b.floating){if(!a.hasOwnProperty('handles')){a.handles='n ne e se s sw w nw'}}a.el=b.getEl()}else {b=a.el=a.target=Ext.get(b)}}else {b=a.target=a.el=Ext.get(a.el)}a.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(a.width)){a.width=Ext.Number.constrain(a.width,a.minWidth,a.maxWidth)}if(Ext.isNumber(a.height)){a.height=Ext.Number.constrain(a.height,a.minHeight,a.maxHeight)}if(a.width!==null||a.height!==null){a.target.setSize(a.width,a.height)}m=a.el.dom.tagName.toUpperCase();if(m==='TEXTAREA'||m==='IMG'||m==='TABLE'){a.originalTarget=a.target;g=b.isComponent?b.getEl():b;a.el.addCls(a.wrappedCls);a.target=a.el=a.el.wrap({role:'presentation',cls:a.wrapCls,id:a.el.id+'-rzwrap',style:g.getStyle(['margin-top','margin-bottom'])});o=g.getPositioning();a.el.setPositioning(o);g.clearPositioning();l=g.getBox();if(o.position!=='absolute'){l.x=0;l.y=0}a.el.setBox(l);g.setStyle('position','absolute');a.isTargetWrapped=!0}a.el.position();if(a.pinned){a.el.addCls(a.pinnedCls)}a.resizeTracker=new Ext.resizer.ResizeTracker({disabled:a.disabled,target:b,el:a.el,constrainTo:a.constrainTo,handleCls:a.handleCls,overCls:a.overCls,throttle:a.throttle,proxy:a.originalTarget?a.el:null,dynamic:a.originalTarget?!0:a.dynamic,originalTarget:a.originalTarget,delegate:'.'+a.handleCls,preserveRatio:a.preserveRatio,heightIncrement:a.heightIncrement,widthIncrement:a.widthIncrement,minHeight:a.minHeight,maxHeight:a.maxHeight,minWidth:a.minWidth,maxWidth:a.maxWidth});a.resizeTracker.on({mousedown:a.onBeforeResize,drag:a.onResize,dragend:a.onResizeEnd,scope:a});if(a.handles==='all'){a.handles='n s e w ne nw se sw'}d=a.handles=a.handles.split(a.delimiterRe);i=a.possiblePositions;p=d.length;k=a.handleCls+' '+a.handleCls+'-{0}';if(a.target.isComponent){j=a.target.baseCls;k+=' '+j+'-handle '+j+'-handle-{0}';if(Ext.supports.CSS3BorderRadius){k+=' '+j+'-handle-{0}-br'}}for(c=0;c')}}Ext.DomHelper.append(a.el,h.join(''));h.length=0;for(c=0;c-1){this.doSelect(a.record,!1,b)}},onCellDeselect:function(a,b){if(a&&a.rowIdx!==undefined){this.doDeselect(a.record,b)}},onSelectChange:function(g,f,e,h){var b=this,a,c,d;if(f){a=b.nextSelection;c='select'}else {a=b.selection;c='deselect'}d=a.view||b.primaryView;if((e||b.fireEvent('before'+c,b,g,a.rowIdx,a.colIdx))!==!1&&h()!==!1){if(f){d.onCellSelect(a)}else {d.onCellDeselect(a);delete b.selection}if(!e){b.fireEvent(c,b,g,a.rowIdx,a.colIdx)}}},refresh:function(){var b=this.getPosition(),a;if(b&&(a=this.store.indexOf(this.selected.last()))!==-1){b.rowIdx=a}},onColumnMove:function(b,d,c,e){var a=b.up('tablepanel');if(a){this.onViewRefresh(a.view)}},onUpdate:function(c){var a=this,b;if(a.isSelected(c)){b=a.selecting?a.nextSelection:a.selection;a.view.onCellSelect(b)}},onViewRefresh:function(d){var f=this,b=f.getPosition(),g,c=d.headerCt,e,a;if(b&&b.view===d){e=b.record;a=b.column;if(!a.isDescendantOf(c)){a=c.queryById(a.id)||c.down('[text="'+a.text+'"]')||c.down('[dataIndex="'+a.dataIndex+'"]')}if(b.record){if(a&&d.store.indexOfId(e.getId())!==-1){g=(new Ext.grid.CellContext(d)).setPosition({row:e,column:a});f.setPosition(g)}}else {f.selection=null}}},selectByPosition:function(b,a){this.setPosition(b,a)}},0,0,0,0,['selection.cellmodel'],0,[Ext.selection,'CellModel'],0);Ext.cmd.derive('Ext.selection.RowModel',Ext.selection.DataViewModel,{enableKeyNav:!0,isRowModel:!0,deselectOnContainerClick:!1,onUpdate:function(b){var d=this,a=d.view,c;if(a&&d.isSelected(b)){c=a.indexOf(b);a.onRowSelect(c);if(b===d.lastFocused){a.onRowFocus(c,!0)}}},onSelectChange:function(c,g,e,j){var a=this,i=a.views||[a.view],k=i.length,b=a.store.indexOf(c),h=g?'select':'deselect',f,d;if((e||a.fireEvent('before'+h,a,c,b))!==!1&&j()!==!1){for(f=0;f '},selectByPosition:function(a,b){if(!a.isCellContext){a=(new Ext.grid.CellContext(this.view)).setPosition(a.row,a.column)}if(!this.checkOnly||a.column===this.column){Ext.selection.RowModel.prototype.selectByPosition.call(this,a,b)}},onSelectChange:function(){Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(!this.suspendChange){this.updateHeaderState()}},onStoreLoad:function(){Ext.selection.RowModel.prototype.onStoreLoad.apply(this,arguments);this.updateHeaderState()},onStoreAdd:function(){Ext.selection.RowModel.prototype.onStoreAdd.apply(this,arguments);this.updateHeaderState()},onStoreRemove:function(){Ext.selection.RowModel.prototype.onStoreRemove.apply(this,arguments);this.updateHeaderState()},onStoreRefresh:function(){Ext.selection.RowModel.prototype.onStoreRefresh.apply(this,arguments);this.updateHeaderState()},maybeFireSelectionChange:function(a){if(a&&!this.suspendChange){this.updateHeaderState()}Ext.selection.RowModel.prototype.maybeFireSelectionChange.apply(this,arguments)},resumeChanges:function(){Ext.selection.RowModel.prototype.resumeChanges.call(this);if(!this.suspendChange){this.updateHeaderState()}},updateHeaderState:function(){var a=this,e=a.store,g=e.getCount(),h=a.views,c=!1,f=0,d,i,b;if(!e.isBufferedStore&&g>0){d=a.selected;c=!0;for(b=0,i=d.getCount();b','
    lineempty" role="presentation">
    ','','
    -end-plus {expanderCls}" role="presentation">
    ','','
    {checkboxCls}-checked">
    ','
    ','',' role="presentation" class="{childCls} {baseIconCls} {customIconCls} ','{baseIconCls}-leafparent-expandedparent {iconCls}" ','style="background-image:url({icon})"/>>','','{value}','','{value}',''],uiFields:{checked:1,icon:1,iconCls:1},rowFields:{expanded:1,loaded:1,expandable:1,leaf:1,loading:1,qtip:1,qtitle:1,cls:1},initComponent:function(){var a=this;a.rendererScope=a.scope;a.setupRenderer();a.innerRenderer=a.renderer;a.renderer=a.treeRenderer;Ext.grid.column.Column.prototype.initComponent.call(this);a.scope=a;a.hasCustomRenderer=a.innerRenderer&&a.innerRenderer.length>1},treeRenderer:function(i,a,c,g,f,h,j){var e=this,d=c.get('cls'),b;if(a&&d){a.tdCls+=' '+d}b=e.initTemplateRendererData(i,a,c,g,f,h,j);return e.getTpl('cellTpl').apply(b)},initTemplateRendererData:function(j,i,d,m,l,n,k){var a=this,f=a.innerRenderer,b=d.data,c=d.parentNode,g=k.rootVisible,h=[],e;while(c&&(g||c.data.depth>0)){e=c.data;h[g?e.depth:e.depth-1]=e.isLast?0:1;c=c.parentNode}return {record:d,baseIconCls:a.iconCls,customIconCls:b.icon||b.iconCls?a.customIconCls:'',iconCls:b.iconCls,icon:b.icon,checkboxCls:a.checkboxCls,checked:b.checked,elbowCls:a.elbowCls,expanderCls:a.expanderCls,textCls:a.textCls,leaf:b.leaf,expandable:d.isExpandable(),expanded:b.expanded,isLast:d.isLastVisible(),blankUrl:Ext.BLANK_IMAGE_URL,href:b.href,hrefTarget:b.hrefTarget,lines:h,metaData:i,childCls:a.getChildCls?a.getChildCls()+' ':'',value:f?f.apply(a.rendererScope,arguments):j}},shouldUpdateCell:function(f,a){var e=this,c=0,d,b;if(a){d=a.length;for(;c1;Ext.grid.NavigationModel.prototype.initKeyNav.call(this,e);for(b=0,d=a.keyNav.length;b1},onCellClick:function(f,e,c,d,g,b,a){Ext.grid.NavigationModel.prototype.onCellClick.call(this,f,e,c,d,g,b,a);return !a.nodeToggled},onKeyLeft:function(b){var c=this,d=b.view,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyLeft.call(this,b)}if(b.position.column.isTreeColumn&&a.isExpanded()){d.collapse(a)}else {a=a.parentNode;if(a&&!(a.isRoot()&&!d.rootVisible)){c.setPosition(a,null,b)}}},onKeyRight:function(b){var c=this,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyRight.call(this,b)}if(!a.isLeaf()){if(b.position.column.isTreeColumn&&!a.isExpanded()){b.view.expand(a)}else {if(a.isExpanded()){a=a.childNodes[0];if(a){c.setPosition(a)}}}}},onKeyEnter:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeyEnter.call(this,a)}},onKeySpace:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeySpace.call(this,a)}},toggleCheck:function(a){this.view.onCheckChange(a)},onAsterisk:function(a){this.view.ownerCt.expandAll()}},0,0,0,0,['view.navigation.tree'],0,[Ext.tree,'NavigationModel'],0);Ext.cmd.derive('Ext.tree.View',Ext.view.Table,{config:{selectionModel:{type:'treemodel'}},isTreeView:!0,loadingCls:'x-grid-tree-loading',expandedCls:'x-grid-tree-node-expanded',leafCls:'x-grid-tree-node-leaf',expanderSelector:'.x-tree-expander',checkboxSelector:'.x-tree-checkbox',expanderIconOverCls:'x-tree-expander-over',nodeAnimWrapCls:'x-tree-animator-wrap',ariaRole:'tree',loadMask:!1,rootVisible:!0,expandDuration:250,collapseDuration:250,toggleOnDblClick:!0,stripeRows:!1,treeRowTpl:['{%','this.processRowValues(values);','this.nextTpl.applyOut(values, out, parent);','%}',{priority:10,processRowValues:function(a){var b=a.record,c=a.view;a.rowAttr['data-qtip']=b.get('qtip')||'';a.rowAttr['data-qtitle']=b.get('qtitle')||'';if(b.isExpanded()){a.rowClasses.push(c.expandedCls)}if(b.isLeaf()){a.rowClasses.push(c.leafCls)}if(b.isLoading()){a.rowClasses.push(c.loadingCls)}}}],initComponent:function(){var a=this;if(a.bufferedRenderer){a.animate=!1}else {if(a.initialConfig.animate===undefined){a.animate=Ext.enableFx}}a.store=a.panel.getStore();a.onRootChange(a.store.getRoot());a.animQueue={};a.animWraps={};Ext.view.Table.prototype.initComponent.call(this);a.store.setRootVisible(a.rootVisible);a.addRowTpl(Ext.XTemplate.getTpl(a,'treeRowTpl'))},onFillComplete:function(f,d,b){var a=this,e=a.store,c=e.indexOf(b[0]);d.triggerUIUpdate();if(!b.length||c===-1){return}a.onAdd(a.store,b,c);a.refreshPartner()},refreshPartner:function(){var a=this.lockingPartner;if(a){a.refresh()}},afterComponentLayout:function(e,d,c,b){var a=this.getScrollable();Ext.view.Table.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&!this.bufferedRenderer){a.refresh()}},processUIEvent:function(a){if(a.getTarget('.'+this.nodeAnimWrapCls,this.el)){return !1}return Ext.view.Table.prototype.processUIEvent.call(this,a)},setRootNode:function(a){this.node=a},getChecked:function(){var a=[];this.node.cascadeBy(function(b){if(b.get('checked')){a.push(b)}});return a},isItemChecked:function(a){return a.get('checked')},createAnimWrap:function(b,e){var d=this,c=d.getNode(b),a;a=Ext.fly(c).insertSibling({role:'presentation',tag:'div',cls:d.nodeAnimWrapCls},'after');return {record:b,node:c,el:a,expanding:!1,collapsing:!1,animateEl:a,targetEl:a}},getAnimWrap:function(a,d){if(!this.animate){return null}var c=this.animWraps,b=c[a.internalId];if(d!==!1){while(!b&&a){a=a.parentNode;if(a){b=c[a.internalId]}}}return b},doAdd:function(h,c){var d=this,l=h[0],i=l.parentNode,m=d.all,e,a=d.getAnimWrap(i),g,f,k,j,b;if(!a||!a.expanding){return Ext.view.Table.prototype.doAdd.call(this,h,c)}j=d.bufferRender(h,c,!0);b=j.children;i=a.record;g=a.targetEl;f=g.dom.childNodes;k=f.length;e=c-d.indexInStore(i)-1;if(!k||e>=k){g.appendChild(j.fragment,!0)}else {Ext.fly(f[e]).insertSibling(b,'before',!0)}m.insert(c,b);return b},onRemove:function(h,c,b){var a=this,g,d,e=a.hasListeners.remove,f;if(a.viewReady){g=a.store.getCount()===0;if(a.bufferedRenderer){return Ext.view.Table.prototype.onRemove.call(this,h,c,b)}if(e){f=this.all.slice(b,b+c.length)}if(g){a.refresh()}else {for(d=c.length-1,b+=d;d>=0;--d,--b){a.doRemove(c[d],b)}a.refreshSizePending=!0}if(e){a.fireEvent('itemremove',c,b,f,a)}}},doRemove:function(c,b){var g=this,f=g.all,a=g.getAnimWrap(c),d=f.item(b),e=d?d.dom:null;if(!e||!a||!a.collapsing){return Ext.view.Table.prototype.doRemove.call(this,c,b)}a.targetEl.dom.insertBefore(e,a.targetEl.dom.firstChild);f.removeElement(b)},onBeforeExpand:function(c,d,e){var b=this,a;if(b.rendered&&b.all.getCount()&&b.animate){if(b.getNode(c)){a=b.getAnimWrap(c,!1);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c);a.animateEl.setHeight(0)}else {if(a.collapsing){a.targetEl.select(b.itemSelector).destroy()}}a.expanding=!0;a.collapsing=!1}}},onExpand:function(b){var a=this,h=a.animQueue,i=b.getId(),f=a.getNode(b),g=f?a.indexOf(f):-1,c,d,e;if(a.singleExpand){a.ensureSingleExpand(b)}if(g===-1){return}c=a.getAnimWrap(b,!1);if(!c){b.isExpandingOrCollapsing=!1;a.fireEvent('afteritemexpand',b,g,f);return}d=c.animateEl;e=c.targetEl;d.stopAnimation();h[i]=!0;Ext.on('idle',function(){d.dom.style.height='0px'},null,{single:!0});d.animate({from:{height:0},to:{height:e.dom.scrollHeight},duration:a.expandDuration,listeners:{afteranimate:function(){var f=e.dom.childNodes,d=Ext.Element.getActiveElement();if(f.length){if(!e.contains(d)){d=null}c.el.insertSibling(f,'before',!0);if(d){Ext.fly(d).focus()}}c.el.destroy();a.animWraps[c.record.internalId]=h[i]=null}},callback:function(){b.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemexpand',b,g,f)}})},onBeforeCollapse:function(c,g,f,d,e){var b=this,a;if(b.rendered&&b.all.getCount()){if(b.animate){if(c.isVisible()){a=b.getAnimWrap(c);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c,f)}else {if(a.expanding){a.targetEl.select(this.itemSelector).destroy()}}a.expanding=!1;a.collapsing=!0;a.callback=d;a.scope=e}}else {b.onCollapseCallback=d;b.onCollapseScope=e}}},onCollapse:function(c){var a=this,g=a.animQueue,h=c.getId(),d=a.getNode(c),f=d?a.indexOf(d):-1,b=a.getAnimWrap(c),e;if(!a.all.getCount()||!c.isVisible()){return}if(!b){c.isExpandingOrCollapsing=!1;a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(a.onCollapseCallback,a.onCollapseScope);a.onCollapseCallback=a.onCollapseScope=null;return}e=b.animateEl;g[h]=!0;e.stopAnimation();e.animate({to:{height:0},duration:a.collapseDuration,listeners:{afteranimate:function(){b.el.destroy();a.animWraps[b.record.internalId]=g[h]=null}},callback:function(){c.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(b.callback,b.scope);b.callback=b.scope=null}})},isAnimating:function(a){return !!this.animQueue[a.getId()]},expand:function(a,f,d,e){var g=this,b=!!g.animate,c;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}Ext.suspendLayouts();c=a.expand(f,d,e);Ext.resumeLayouts(!0);return c}},collapse:function(a,e,c,d){var f=this,b=!!f.animate;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}return a.collapse(e,c,d)}},toggle:function(a,d,b,c){if(a.isExpanded()){this.collapse(a,d,b,c)}else {this.expand(a,d,b,c)}},onItemDblClick:function(a,e,d,f){var b=this,c=b.editingPlugin;Ext.view.Table.prototype.onItemDblClick.call(this,a,e,d,f);if(b.toggleOnDblClick&&a.isExpandable()&&!(c&&c.clicksToEdit===2)){b.toggle(a)}},onCellClick:function(d,g,c,i,h,a){var b=this,f=a.position.column,e;if(f.isTreeColumn){if(a.getTarget(b.checkboxSelector,d)&&Ext.isBoolean(e=c.get('checked'))&&b.fireEvent('beforecheckchange',c,e,a)!==!1){b.onCheckChange(a);if(f.stopSelection){a.stopSelection=!0}}else {if(a.getTarget(b.expanderSelector,d)&&c.isExpandable()){b.getNavigationModel().setPosition(a.position);b.toggle(c,a.ctrlKey);a.nodeToggled=!0}}return Ext.view.Table.prototype.onCellClick.call(this,d,g,c,i,h,a)}},onCheckChange:function(c){var a=c.record,b=!a.get('checked');a.set('checked',b);this.fireEvent('checkchange',a,b,c)},onItemMouseOver:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).addCls(this.expanderIconOverCls)}},onItemMouseOut:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).removeCls(this.expanderIconOverCls)}},getStoreListeners:function(){return Ext.apply(Ext.view.Table.prototype.getStoreListeners.call(this),{rootchange:this.onRootChange,fillcomplete:this.onFillComplete})},onBindStore:function(b,f,e,a){var d=a&&a.getRootNode(),c=b&&b.getRootNode();Ext.view.Table.prototype.onBindStore.call(this,b,f,e,a);if(c!==d){this.onRootChange(c,d)}},onRootChange:function(b,c){var a=this,d=a.grid;if(c){a.rootListeners.destroy();a.rootListeners=null}if(b){a.rootListeners=b.on({beforeexpand:a.onBeforeExpand,expand:a.onExpand,beforecollapse:a.onBeforeCollapse,collapse:a.onCollapse,destroyable:!0,scope:a});d.addRelayers(b)}},ensureSingleExpand:function(b){var a=b.parentNode;if(a){a.eachChild(function(a){if(a!==b&&a.isExpanded()){a.collapse()}})}}},0,['treeview'],['component','box','dataview','tableview','gridview','treeview'],{'component':!0,'box':!0,'dataview':!0,'tableview':!0,'gridview':!0,'treeview':!0},['widget.treeview'],0,[Ext.tree,'View'],0);Ext.cmd.derive('Ext.tree.Panel',Ext.panel.Table,{alternateClassName:['Ext.tree.TreePanel','Ext.TreePanel'],viewType:'treeview',treeCls:'x-tree-panel',rowLines:!1,lines:!0,useArrows:!1,singleExpand:!1,ddConfig:{enableDrag:!0,enableDrop:!0},rootVisible:!0,displayField:'text',root:null,normalCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible','scroll'],lockedCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible'],isTree:!0,arrowCls:'x-tree-arrows',linesCls:'x-tree-lines',noLinesCls:'x-tree-no-lines',autoWidthCls:'x-autowidth-table',constructor:function(a){a=a||{};if(a.animate===undefined){a.animate=Ext.isBoolean(this.animate)?this.animate:Ext.enableFx}this.enableAnimations=a.animate;delete a.animate;Ext.panel.Table.prototype.constructor.call(this,a)},initComponent:function(){var a=this,c=[a.treeCls],b,d;if(a.useArrows){c.push(a.arrowCls);a.lines=!1}if(a.lines){c.push(a.linesCls)}else {if(!a.useArrows){c.push(a.noLinesCls)}}b=a.applyStore(a.store);if(!b.getRoot()){b.setRoot({})}b.setRootVisible(a.rootVisible);a.viewConfig=Ext.apply({rootVisible:a.rootVisible,animate:a.enableAnimations,singleExpand:a.singleExpand,node:b.getRoot(),hideHeaders:a.hideHeaders,navigationModel:'tree'},a.viewConfig);if(!a.columns){if(a.initialConfig.hideHeaders===undefined){a.hideHeaders=!0}a.addCls(a.autoWidthCls);a.columns=[{xtype:'treecolumn',text:'Name',flex:1,dataIndex:a.displayField}]}if(a.cls){c.push(a.cls)}a.cls=c.join(' ');Ext.panel.Table.prototype.initComponent.call(this);d=a.getView();a.relayEvents(d,['beforecheckchange','checkchange','afteritemexpand','afteritemcollapse'])},applyStore:function(a){var b=this;if(Ext.isString(a)){a=b.store=Ext.StoreMgr.lookup(a)}else {if(!a||!a.isStore){a=Ext.apply({type:'tree',proxy:'memory'},a);if(b.root){a.root=b.root}if(b.fields){a.fields=b.fields}else {if(b.model){a.model=b.model}}if(b.folderSort){a.folderSort=b.folderSort}a=b.store=Ext.StoreMgr.lookup(a)}else {if(b.root){a=b.store=Ext.data.StoreManager.lookup(a);a.setRoot(b.root);if(b.folderSort!==undefined){a.folderSort=b.folderSort;a.sort()}}}}return a},setStore:function(a){var b=this;a=b.applyStore(a);if(!a.getRoot()){a.setRoot({})}a.setRootVisible(b.rootVisible);if(b.view){b.view.setRootNode(a.getRootNode())}b.bindStore(a)},bindStore:function(b,e){var a=this,c=b.getRoot(),d=a.bufferedRenderer;Ext.panel.Table.prototype.bindStore.apply(this,arguments);if(d){if(d.store){d.bindStore(b)}}b.singleExpand=a.singleExpand;a.storeListeners=a.mon(b,{destroyable:!0,rootchange:a.onRootChange,scope:a});a.storeRelayers=a.relayEvents(b,['beforeload','load']);if(!a.rootVisible&&!b.autoLoad&&!(c.isExpanded()||c.isLoading())){if(c.isLoaded()){c.data.expanded=!0;b.onNodeExpand(c,c.childNodes)}else {if(b.autoLoad!==!1){c.data.expanded=!1;c.expand()}}}b.ownerTree=a;if(!e){a.view.setRootNode(c)}},addRelayers:function(b){var a=this;if(a.rootRelayers){a.rootRelayers.destroy();a.rootRelayers=null}a.rootRelayers=a.mon(b,{destroyable:!0,append:a.createRelayer('itemappend'),remove:a.createRelayer('itemremove'),move:a.createRelayer('itemmove',[0,4]),insert:a.createRelayer('iteminsert'),beforeappend:a.createRelayer('beforeitemappend'),beforeremove:a.createRelayer('beforeitemremove'),beforemove:a.createRelayer('beforeitemmove'),beforeinsert:a.createRelayer('beforeiteminsert'),expand:a.createRelayer('itemexpand',[0,1]),collapse:a.createRelayer('itemcollapse',[0,1]),beforeexpand:a.createRelayer('beforeitemexpand',[0,1]),beforecollapse:a.createRelayer('beforeitemcollapse',[0,1]),scope:a})},unbindStore:function(){var a=this,b=a.store;if(b){Ext.panel.Table.prototype.unbindStore.call(this);Ext.destroy(a.storeListeners,a.storeRelayers,a.rootRelayers);delete b.ownerTree;b.singleExpand=null}},setRootNode:function(){return this.store.setRoot.apply(this.store,arguments)},getRootNode:function(){return this.store.getRoot()},onRootChange:function(a){this.view.setRootNode(a)},getChecked:function(){return this.getView().getChecked()},isItemChecked:function(a){return a.get('checked')},expandNode:function(b,d,a,c){return this.getView().expand(b,d,a,c||this)},collapseNode:function(b,d,a,c){return this.getView().collapse(b,d,a,c||this)},expandAll:function(c,d){var b=this,a=b.getRootNode();if(a){Ext.suspendLayouts();a.expand(!0,c,d||b);Ext.resumeLayouts(!0)}},collapseAll:function(d,a){var c=this,b=c.getRootNode(),e=c.getView();if(b){Ext.suspendLayouts();a=a||c;if(e.rootVisible){b.collapse(!0,d,a)}else {b.collapseChildren(!0,d,a)}Ext.resumeLayouts(!0)}},expandPath:function(p,a){var i=arguments,b=this,j=b.view,g=a&&a.field||b.store.model.idProperty,o,n,k=a&&a.separator||'/',c,e,d,h,f,m,l;if(a&&typeof a==='object'){g=a.field||b.store.model.idProperty;k=a.separator||'/';c=a.callback;e=a.scope;o=a.select;n=a.focus}else {g=i[1]||b.store.model.idProperty;k=i[2]||'/';c=i[3];e=i[4]}if(Ext.isEmpty(p)){return Ext.callback(c,e||b,[!1,null])}f=p.split(k);m=!f[0];if(m){d=b.getRootNode();h=1}else {d=b.store.findNode(g,f[0]);h=0}if(!d||m&&d.get(g)!==f[1]){return Ext.callback(c,e||b,[!1,d])}l=function(m){var d=this,q,k,i;if(++h===f.length){if(o){j.getSelectionModel().select(d)}if(n){j.getNavigationModel().setPosition(d,0)}return Ext.callback(c,e||b,[!0,d,j.getNode(d)])}for(k=0,q=m?m.length:0;k2?b[2]:null,e=a>3?b[3]:'/',d=a>4?b[4]:null,f=a>5?b[5]:!1;document.cookie=h+'='+escape(g)+(c===null?'':'; expires='+c.toUTCString())+(e===null?'':'; path='+e)+(d===null?'':'; domain='+d)+(f===!0?'; secure':'')},get:function(e){var d=document.cookie.split('; '),f=d.length,b,a,c;for(a=0;a'],childEls:['iframeEl'],initComponent:function(){Ext.Component.prototype.initComponent.call(this);this.frameName=this.frameName||this.id+'-frame'},initEvents:function(){var a=this;Ext.Component.prototype.initEvents.call(this);a.iframeEl.on('load',a.onLoad,a)},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{src:this.src,frameName:this.frameName})},getBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){try{return this.getWin().document}catch(b){return null}},getWin:function(){var a=this,b=a.frameName,c=Ext.isIE?a.iframeEl.dom.contentWindow:window.frames[b];return c},getFrame:function(){var a=this;return a.iframeEl.dom},beforeDestroy:function(){this.cleanupListeners(!0);Ext.Component.prototype.beforeDestroy.call(this)},cleanupListeners:function(c){var a,b;if(this.rendered){try{a=this.getDoc();if(a){Ext.get(a).un(this._docListeners);if(c){for(b in a){if(a.hasOwnProperty&&a.hasOwnProperty(b)){delete a[b]}}}}}catch(d){}}},onLoad:function(){var a=this,c=a.getDoc(),b=a.onRelayedEvent;if(c){try{Ext.get(c).on(a._docListeners={mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,scope:a})}catch(d){}Ext.get(this.getWin()).on('beforeunload',a.cleanupListeners,a);this.el.unmask();this.fireEvent('load',this)}else {if(a.src){this.el.unmask();this.fireEvent('error',this)}}},onRelayedEvent:function(a){var b=this.iframeEl,c=b.getTrueXY(),e=a.getXY(),d=a.getTrueXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},load:function(c){var a=this,b=a.loadMask,d=a.getFrame();if(a.fireEvent('beforeload',a,c)!==!1){if(b&&a.el){a.el.mask(b)}d.src=a.src=c||a.src}}},0,['uxiframe'],['component','box','uxiframe'],{'component':!0,'box':!0,'uxiframe':!0},['widget.uxiframe'],0,[Ext.ux,'IFrame'],0);Ext.cmd.derive('Ext.ux.PreviewPlugin',Ext.plugin.Abstract,{hideBodyCls:'x-grid-row-body-hidden',bodyField:'',previewExpanded:!0,setCmp:function(c){Ext.plugin.Abstract.prototype.setCmp.apply(this,arguments);var b=this,a=b.cmp=c.isXType('gridview')?c.grid:c,g=b.bodyField,f=b.hideBodyCls,e=Ext.create('Ext.grid.feature.RowBody',{grid:a,getAdditionalData:function(e,j,i,h){var b=Ext.grid.feature.RowBody.prototype.getAdditionalData,d={rowBody:e[g],rowBodyCls:a.getView().previewExpanded?'':f};if(Ext.isFunction(b)){Ext.apply(d,b.apply(this,arguments))}return d}}),d=function(d,a){a.previewExpanded=b.previewExpanded;a.featuresMC.add(e);e.init(d)};if(a.view){d(a,a.view)}else {a.on({viewcreated:d,single:!0})}},toggleExpanded:function(e){var c=this.getCmp(),a=c&&c.getView(),b=a.bufferedRenderer,d=a.scrollManager;if(c&&a&&e!==a.previewExpanded){this.previewExpanded=a.previewExpanded=!!e;a.refreshView();if(d){if(b){b.stretchView(a,b.getScrollHeight(!0))}else {d.refresh(!0)}}}}},0,0,0,0,['plugin.preview'],0,[Ext.ux,'PreviewPlugin'],0);Ext.cmd.derive('Ext.ux.colorpick.Selection',Ext.Base,{mixinId:'colorselection',config:{format:'hex6',value:'FF0000',color:null,previousColor:null},applyColor:function(b){var a=b;if(Ext.isString(a)){a=Ext.ux.colorpick.ColorUtils.parseColor(b)}return a},applyValue:function(a){var b=Ext.ux.colorpick.ColorUtils.parseColor(a);return this.formatColor(b)},formatColor:function(a){return Ext.ux.colorpick.ColorUtils.formats[this.getFormat()](a)},updateColor:function(b){var a=this;if(!a.syncing){a.syncing=!0;a.setValue(a.formatColor(b));a.syncing=!1}},updateValue:function(b,c){var a=this;if(!a.syncing){a.syncing=!0;a.setColor(b);a.syncing=!1}this.fireEvent('change',a,b,c)}},0,0,0,0,0,0,[Ext.ux.colorpick,'Selection'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorUtils',Ext.Base,function(a){var b=Ext.isIE&&Ext.ieVersion<10;return {singleton:!0,constructor:function(){a=this},backgroundTpl:b?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{alpha}{hex}', endColorstr='#{alpha}{hex}');":'background: {rgba};',setBackground:b?function(c,b){if(c){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={hex:a.rgb2hex(b.r,b.g,b.b),alpha:Math.floor(b.a*255).toString(16)},d=f.apply(e);c.applyStyles(d)}}:function(b,d){if(b){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={rgba:a.getRGBAString(d)},c=f.apply(e);b.applyStyles(c)}},formats:{HEX6:function(b){return a.rgb2hex(b.r,b.g,b.b)},HEX8:function(b){var c=a.rgb2hex(b.r,b.g,b.b),d=Math.round(b.a*255).toString(16);if(d.length<2){c+='0'}c+=d.toUpperCase();return c}},hexRe:/#?([0-9a-f]{3,8})/i,rgbaAltRe:/rgba\(\s*([\w#\d]+)\s*,\s*([\d\.]+)\s*\)/,rgbaRe:/rgba\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,rgbRe:/rgb\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,parseColor:function(d){if(!d){return null}var e=this,f=e.colorMap[d],b,c,g;if(f){c={r:f[0],g:f[1],b:f[2],a:1}}else {if(d==='transparent'){c={r:0,g:0,b:0,a:0}}else {b=e.hexRe.exec(d);if(b){b=b[1];switch(b.length){default:return null;case 3:c={r:parseInt(b[0]+b[0],16),g:parseInt(b[1]+b[1],16),b:parseInt(b[2]+b[2],16),a:1};break;case 6:case 8:c={r:parseInt(b.substr(0,2),16),g:parseInt(b.substr(2,2),16),b:parseInt(b.substr(4,2),16),a:parseInt(b.substr(6,2)||'ff',16)/255};break;}}else {b=e.rgbaRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:parseFloat(b[4])}}else {b=e.rgbaAltRe.exec(d);if(b){c=e.parseColor(b[1]);c.a=parseFloat(b[2]);return c}b=e.rgbRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:1}}else {return null}}}}}g=this.rgb2hsv(c.r,c.g,c.b);return Ext.apply(c,g)},getRGBAString:function(b){return 'rgba('+b.r+','+b.g+','+b.b+','+b.a+')'},getRGBString:function(b){return 'rgb('+b.r+','+b.g+','+b.b+')'},hsv2rgb:function(e,i,h){e=e*360;if(e===360){e=0}var c=h*i;var g=e/60;var d=c*(1-Math.abs(g%2-1));var b=[0,0,0];switch(Math.floor(g)){case 0:b=[c,d,0];break;case 1:b=[d,c,0];break;case 2:b=[0,c,d];break;case 3:b=[0,d,c];break;case 4:b=[d,0,c];break;case 5:b=[c,0,d];break;default:break;}var f=h-c;b[0]+=f;b[1]+=f;b[2]+=f;b[0]=Math.round(b[0]*255);b[1]=Math.round(b[1]*255);b[2]=Math.round(b[2]*255);return {r:b[0],g:b[1],b:b[2]}},rgb2hsv:function(e,d,c){e=e/255;d=d/255;c=c/255;var g=Math.max(e,d,c);var k=Math.min(e,d,c);var f=g-k;var h=0;if(f!==0){if(g===e){h=(d-c)/f%6}else {if(g===d){h=(c-e)/f+2}else {if(g===c){h=(e-d)/f+4}}}}var b=h*60;if(b===360){b=0}var j=g;var i=0;if(f!==0){i=f/j}b=b/360;if(b<0){b=b+1}return {h:b,s:i,v:j}},rgb2hex:function(d,c,b){d=d.toString(16);c=c.toString(16);b=b.toString(16);if(d.length<2){d='0'+d}if(c.length<2){c='0'+c}if(b.length<2){b='0'+b}return (d+c+b).toUpperCase()},colorMap:{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]}}},1,0,0,0,0,0,[Ext.ux.colorpick,'ColorUtils'],function(c){var a=c.formats,b={};a['#HEX6']=function(b){return '#'+a.HEX6(b)};a['#HEX8']=function(b){return '#'+a.HEX8(b)};Ext.Object.each(a,function(a,d){b[a.toLowerCase()]=function(b){var e=d(b);return e.toLowerCase()}});Ext.apply(a,b)});Ext.cmd.derive('Ext.ux.colorpick.ColorMapController',Ext.app.ViewController,{onFirstBoxReady:function(){var a=this,c=a.getView(),d=c.down('#dragHandle'),b=d.dd;b.constrain=!0;b.constrainTo=c.getEl();b.initialConstrainTo=b.constrainTo;b.on('drag',Ext.bind(a.onHandleDrag,a));a.mon(c.getEl(),{mousedown:a.onMouseDown,dragstart:a.onDragStart,scope:a})},onHandleDrag:function(k,l){var h=this,a=h.getView(),e=a.down('#dragHandle'),i=e.getX()-a.getX(),j=e.getY()-a.getY(),d=a.getEl(),g=d.getWidth(),f=d.getHeight(),b=i/g,c=j/f;if(b>0.99){b=1}if(c>0.99){c=1}a.fireEvent('handledrag',b,c)},onMouseDown:function(b){var c=this,d=c.getView(),a=d.down('#dragHandle');a.setY(b.getY());a.setX(b.getX());c.onHandleDrag();a.dd.onMouseDown(b,a.dd.el)},onDragStart:function(d){var c=this,b=c.getView(),a=b.down('#dragHandle');a.dd.onDragStart(d,a.dd.el)},onMapClick:function(h){var f=this,a=f.getView(),g=a.down('#dragHandle'),c=a.getXY(),d=h.getXY(),b,e;b=d[0]-c[0];e=d[1]-c[1];g.getEl().setStyle({left:b+'px',top:e+'px'});f.onHandleDrag()},onColorBindingChanged:function(n){var i=this,m=i.getViewModel(),a=m.get('selectedColor'),b,d=i.getView(),l=d.down('#dragHandle'),c=d.getEl(),k=c.getWidth(),j=c.getHeight(),e,f,g,h;b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);e=b.s;g=k*e;f=1-b.v;h=j*f;l.getEl().setStyle({left:g+'px',top:h+'px'})},onHueBindingChanged:function(d){var c=this,e=c.getViewModel(),a,b;a=Ext.ux.colorpick.ColorUtils.hsv2rgb(d,1,1);b=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);c.getView().getEl().applyStyles({'background-color':'#'+b})}},0,0,0,0,['controller.colorpickercolormapcontroller'],0,[Ext.ux.colorpick,'ColorMapController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorMap',Ext.container.Container,{controller:'colorpickercolormapcontroller',cls:'x-colorpicker-colormap',items:[{xtype:'component',cls:'x-colorpicker-colormap-draghandle-container',itemId:'dragHandle',width:1,height:1,draggable:!0,html:'
    '}],listeners:{boxready:{single:!0,fn:'onFirstBoxReady',scope:'controller'},colorbindingchanged:{fn:'onColorBindingChanged',scope:'controller'},huebindingchanged:{fn:'onHueBindingChanged',scope:'controller'}},afterRender:function(){var c=this,a=c.mapGradientUrl,b=c.el;Ext.container.Container.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.ColorMap.prototype.mapGradientUrl=a}b.setStyle('background-image','none');b=c.layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-colormap-blender',src:a})},setPosition:function(c){var b=this,a=b.down('#dragHandle');if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b.fireEvent('colorbindingchanged',c)},setHue:function(b){var a=this;if(!a.getEl()){return}a.fireEvent('huebindingchanged',b)}},0,['colorpickercolormap'],['component','box','container','colorpickercolormap'],{'component':!0,'box':!0,'container':!0,'colorpickercolormap':!0},['widget.colorpickercolormap'],0,[Ext.ux.colorpick,'ColorMap'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorModel',Ext.app.ViewModel,{data:{selectedColor:{r:255,g:255,b:255,h:0,s:1,v:1,a:1},previousColor:{r:0,g:0,b:0,h:0,s:1,v:1,a:1}},formulas:{hex:{get:function(a){var e=a('selectedColor.r').toString(16),d=a('selectedColor.g').toString(16),c=a('selectedColor.b').toString(16),b;b=Ext.ux.colorpick.ColorUtils.rgb2hex(e,d,c);return '#'+b},set:function(a){var b=Ext.ux.colorpick.ColorUtils.hex2rgb(a);this.changeRGB(b)}},red:{get:function(a){return a('selectedColor.r')},set:function(a){this.changeRGB({r:a})}},green:{get:function(a){return a('selectedColor.g')},set:function(a){this.changeRGB({g:a})}},blue:{get:function(a){return a('selectedColor.b')},set:function(a){this.changeRGB({b:a})}},hue:{get:function(a){return a('selectedColor.h')*360},set:function(a){this.changeHSV({h:a/360})}},saturation:{get:function(a){return a('selectedColor.s')*100},set:function(a){this.changeHSV({s:a/100})}},value:{get:function(a){var b=a('selectedColor.v');return b*100},set:function(a){this.changeHSV({v:a/100})}},alpha:{get:function(a){var b=a('selectedColor.a');return b*100},set:function(a){this.set('selectedColor',Ext.applyIf({a:a/100},this.data.selectedColor))}}},changeHSV:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);a.r=b.r;a.g=b.g;a.b=b.b;this.set('selectedColor',a)},changeRGB:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);a.h=b.h;a.s=b.s;a.v=b.v;this.set('selectedColor',a)}},0,0,0,0,['viewmodel.colorpick-selectormodel'],0,[Ext.ux.colorpick,'SelectorModel'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorController',Ext.app.ViewController,{initViewModel:function(){var b=this,a=b.getView();a.childViewModel.bind('{selectedColor}',function(b){a.setColor(b)})},destroy:function(){var c=this,b=c.getView(),a=b.childViewModel;if(a){a.destroy();b.childViewModel=null}Ext.app.ViewController.prototype.destroy.call(this)},changeHSV:function(a){var b=this.getView(),d=b.getColor(),c;Ext.applyIf(a,d);c=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);Ext.apply(a,c);b.setColor(a)},onColorMapHandleDrag:function(a,b){this.changeHSV({s:a,v:1-b})},onValueSliderHandleDrag:function(a){this.changeHSV({v:1-a})},onSaturationSliderHandleDrag:function(a){this.changeHSV({s:1-a})},onHueSliderHandleDrag:function(a){this.changeHSV({h:1-a})},onAlphaSliderHandleDrag:function(c){var a=this.getView(),d=a.getColor(),b=Ext.applyIf({a:1-c},d);a.setColor(b);a.el.repaint()},onPreviousColorSelected:function(c,a){var b=this.getView();b.setColor(a)},onOK:function(){var b=this,a=b.getView();a.fireEvent('ok',a,a.getValue())},onCancel:function(){this.fireViewEvent('cancel',this.getView())},onResize:function(){var c=this,h=c.getView(),b=h.childViewModel,a=c.getReferences(),d,f,g,e;if(!c.hasResizedOnce){c.hasResizedOnce=!0;return}d=b.get('hue');f=b.get('saturation');g=b.get('value');e=b.get('alpha');console.log('h='+d);a.colorMap.setPosition(b.getData());a.hueSlider.setHue(d);a.satSlider.setSaturation(f);a.valueSlider.setValue(g);a.alphaSlider.setAlpha(e)}},0,0,0,0,['controller.colorpick-selectorcontroller'],0,[Ext.ux.colorpick,'SelectorController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorPreview',Ext.Component,{style:'position: relative',html:'
    ',cls:'x-colorpreview',height:256,onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el.down('.btn'),'click',a.onClick,a)},onClick:function(){this.fireEvent('click',this,this.color)},setColor:function(b){var a=this,c=a.getEl();if(!c){return}a.color=b;a.applyBgStyle(b)},bgStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hexAlpha}{hex}', endColorstr='#{hexAlpha}{hex}');":'background: {rgba};'),applyBgStyle:function(a){var h=this,b=Ext.ux.colorpick.ColorUtils,g=h.getEl().down('.filter'),f,d,e,c;f=b.rgb2hex(a.r,a.g,a.b);d=Ext.util.Format.hex(Math.floor(a.a*255),2);e=b.getRGBAString(a);c=this.bgStyleTpl.apply({hex:f,hexAlpha:d,rgba:e});g.applyStyles(c)}},0,['colorpickercolorpreview'],['component','box','colorpickercolorpreview'],{'component':!0,'box':!0,'colorpickercolorpreview':!0},['widget.colorpickercolorpreview'],0,[Ext.ux.colorpick,'ColorPreview'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderController',Ext.app.ViewController,{boxReady:function(e){var b=this,d=b.getDragContainer(),c=b.getDragHandle(),a=c.dd;a.constrain=!0;a.constrainTo=d.getEl();a.initialConstrainTo=a.constrainTo;a.on('drag',b.onHandleDrag,b)},getDragHandle:function(){return this.view.lookupReference('dragHandle')},getDragContainer:function(){return this.view.lookupReference('dragHandleContainer')},onHandleDrag:function(i){var b=this,g=b.getView(),c=b.getDragContainer(),f=b.getDragHandle(),h=f.getY()-c.getY(),e=c.getEl(),d=e.getHeight(),a=h/d;if(a>0.99){a=1}g.fireEvent('handledrag',a)},onMouseDown:function(c){var b=this,a=b.getDragHandle(),d=c.getY();a.setY(d);b.onHandleDrag();a.el.repaint();a.dd.onMouseDown(c,a.dd.el)},onDragStart:function(c){var b=this,a=b.getDragHandle();a.dd.onDragStart(c,a.dd.el)},onMouseUp:function(){var a=this.getDragHandle();a.dd.dragEnded=!0}},0,0,0,0,['controller.colorpick-slidercontroller'],0,[Ext.ux.colorpick,'SliderController'],0);Ext.cmd.derive('Ext.ux.colorpick.Slider',Ext.container.Container,{controller:'colorpick-slidercontroller',baseCls:'x-colorpicker-slider',layout:'center',referenceHolder:!0,listeners:{element:'el',mousedown:'onMouseDown',mouseup:'onMouseUp',dragstart:'onDragStart'},items:{xtype:'container',cls:'x-colorpicker-draghandle-container',reference:'dragHandleContainer',height:'100%',items:{xtype:'component',cls:'x-colorpicker-draghandle-outer',reference:'dragHandle',width:'100%',height:1,draggable:!0,html:'
    '}},getDragHandle:function(){return this.lookupReference('dragHandle')},getDragContainer:function(){return this.lookupReference('dragHandleContainer')}},0,['colorpickerslider'],['component','box','container','colorpickerslider'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0},['widget.colorpickerslider'],0,[Ext.ux.colorpick,'Slider'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderAlpha',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-alpha',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#FF{hex}', endColorstr='#00{hex}');":'background: -mox-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -webkit-linear-gradient(top,rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -o-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -ms-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: linear-gradient(to bottom, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);'),setAlpha:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(1-h/100);c=a.getEl();c.setStyle({top:b})},setColor:function(a){var b=this,e=b.getDragContainer(),c,d;if(!b.getEl()){return}c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d=e.getEl().down('.x-autocontainer-innerCt');d.applyStyles(b.gradientStyleTpl.apply({hex:c,r:a.r,g:a.g,b:a.b}))}},0,['colorpickerslideralpha'],['component','box','container','colorpickerslider','colorpickerslideralpha'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslideralpha':!0},['widget.colorpickerslideralpha'],0,[Ext.ux.colorpick,'SliderAlpha'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderSaturation',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-saturation',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#ffffff');":'background: -mox-linear-gradient(top, #{hex} 0%, #ffffff 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -o-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -ms-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: linear-gradient(to bottom, #{hex} 0%,#ffffff 100%);'),setSaturation:function(g){var d=this,h=d.getDragContainer(),a=d.getDragHandle(),f=h.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-g/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidersaturation'],['component','box','container','colorpickerslider','colorpickerslidersaturation'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidersaturation':!0},['widget.colorpickerslidersaturation'],0,[Ext.ux.colorpick,'SliderSaturation'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderValue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-value',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#000000');":'background: -mox-linear-gradient(top, #{hex} 0%, #000000 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#000000 100%);background: -o-linear-gradient(top, #{hex} 0%,#000000 100%);background: -ms-linear-gradient(top, #{hex} 0%,#000000 100%);background: linear-gradient(to bottom, #{hex} 0%,#000000 100%);'),setValue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-h/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidervalue'],['component','box','container','colorpickerslider','colorpickerslidervalue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidervalue':!0},['widget.colorpickerslidervalue'],0,[Ext.ux.colorpick,'SliderValue'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderHue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-hue',afterRender:function(){var c=this,a=c.gradientUrl,b=c.el;Ext.ux.colorpick.Slider.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.SliderHue.prototype.gradientUrl=a}b.setStyle('background-image','none');b=c.getDragContainer().layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-hue-gradient',src:a})},setHue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(360-h)/360;c=a.getEl();c.setStyle({top:b+'px'})}},0,['colorpickersliderhue'],['component','box','container','colorpickerslider','colorpickersliderhue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickersliderhue':!0},['widget.colorpickersliderhue'],0,[Ext.ux.colorpick,'SliderHue'],0);Ext.cmd.derive('Ext.ux.colorpick.Selector',Ext.container.Container,{controller:'colorpick-selectorcontroller',width:580,height:337,cls:'x-colorpicker',padding:10,layout:{type:'hbox',align:'stretch'},defaultBindProperty:'value',twoWayBindable:['value'],fieldWidth:50,fieldPad:5,showPreviousColor:!1,showOkCancelButtons:!1,listeners:{resize:'onResize'},constructor:function(c){var a=this,b=Ext.Factory.viewModel('colorpick-selectormodel');a.childViewModel=b;a.items=[a.getMapAndHexRGBFields(b),a.getSliderAndHField(b),a.getSliderAndSField(b),a.getSliderAndVField(b),a.getSliderAndAField(b),a.getPreviewAndButtons(b,c)];Ext.container.Container.prototype.constructor.apply(this,arguments)},updateColor:function(b){var a=this;a.mixins.colorselection.updateColor.call(a,b);a.childViewModel.set('selectedColor',b)},updatePreviousColor:function(a){this.childViewModel.set('previousColor',a)},getMapAndHexRGBFields:function(d){var c=this,a={top:0,right:c.fieldPad,bottom:0,left:0},b=c.fieldWidth;return {xtype:'container',viewModel:d,cls:'x-colorpicker-escape-overflow',flex:1,layout:{type:'vbox',align:'stretch'},margin:'0 10 0 0',items:[{xtype:'colorpickercolormap',reference:'colorMap',flex:1,bind:{position:{bindTo:'{selectedColor}',deep:!0},hue:'{selectedColor.h}'},listeners:{handledrag:'onColorMapHandleDrag'}},{xtype:'container',layout:'hbox',defaults:{labelAlign:'top',labelSeparator:'',allowBlank:!1,onChange:function(){if(this.isValid()){Ext.form.field.Base.prototype.onChange.apply(this,arguments)}}},items:[{xtype:'textfield',fieldLabel:'HEX',flex:1,bind:'{hex}',margin:a,readOnly:!0},{xtype:'numberfield',fieldLabel:'R',bind:'{red}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'G',bind:'{green}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'B',bind:'{blue}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:0}]}]}},getSliderAndHField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickersliderhue',reference:'hueSlider',flex:1,bind:{hue:'{selectedColor.h}'},listeners:{handledrag:'onHueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'H',labelAlign:'top',width:a.fieldWidth,labelSeparator:'',bind:'{hue}',hideTrigger:!0,maxValue:360,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndSField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{right:a.fieldPad,left:a.fieldPad},items:[{xtype:'colorpickerslidersaturation',reference:'satSlider',flex:1,bind:{saturation:'{saturation}',hue:'{selectedColor.h}'},listeners:{handledrag:'onSaturationSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'S',labelAlign:'top',labelSeparator:'',bind:'{saturation}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndVField:function(a){var b=this;return {xtype:'container',viewModel:a,cls:'x-colorpicker-escape-overflow',width:b.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickerslidervalue',reference:'valueSlider',flex:1,bind:{value:'{value}',hue:'{selectedColor.h}'},listeners:{handledrag:'onValueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'V',labelAlign:'top',labelSeparator:'',bind:'{value}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndAField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{left:a.fieldPad},items:[{xtype:'colorpickerslideralpha',reference:'alphaSlider',flex:1,bind:{alpha:'{alpha}',color:{bindTo:'{selectedColor}',deep:!0}},listeners:{handledrag:'onAlphaSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'A',labelAlign:'top',labelSeparator:'',bind:'{alpha}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getPreviewAndButtons:function(c,b){var a=[{xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{selectedColor}',deep:!0}}}];if(b.showPreviousColor){a.push({xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{previousColor}',deep:!0}},listeners:{click:'onPreviousColorSelected'}})}if(b.showOkCancelButtons){a.push({xtype:'button',text:'OK',margin:'10 0 0 0',handler:'onOK'},{xtype:'button',text:'Cancel',margin:'10 0 0 0',handler:'onCancel'})}return {xtype:'container',viewModel:c,width:70,margin:'0 0 0 10',items:a,layout:{type:'vbox',align:'stretch'}}}},1,['colorselector'],['component','box','container','colorselector'],{'component':!0,'box':!0,'container':!0,'colorselector':!0},['widget.colorselector'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Selector'],0);Ext.cmd.derive('Ext.ux.colorpick.ButtonController',Ext.app.ViewController,{afterRender:function(a){a.updateColor(a.getColor())},destroy:function(){var a=this.getView(),b=a.colorPickerWindow;if(b){b.destroy();a.colorPickerWindow=a.colorPicker=null}Ext.app.ViewController.prototype.destroy.call(this)},getPopup:function(){var b=this.getView(),a=b.colorPickerWindow,c;if(!a){a=Ext.create(b.getPopup());b.colorPickerWindow=a;a.colorPicker=b.colorPicker=c=a.lookupReference('selector');c.setFormat(b.getFormat());c.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:this});a.on({close:'onColorPickerCancel',scope:this})}return a},onClick:function(){var e=this,d=e.getView(),b=d.getColor(),c=e.getPopup(),a=c.colorPicker;a.setColor(b);a.setPreviousColor(b);c.showBy(d,'tl-br?')},onColorPickerOK:function(b){var a=this.getView(),c=b.getColor(),d=a.colorPickerWindow;d.hide();a.setColor(c)},onColorPickerCancel:function(){var b=this.getView(),a=b.colorPickerWindow;a.hide()},syncColor:function(a){var b=this.getView();Ext.ux.colorpick.ColorUtils.setBackground(b.filterEl,a)}},0,0,0,0,['controller.colorpick-buttoncontroller'],0,[Ext.ux.colorpick,'ButtonController'],0);Ext.cmd.derive('Ext.ux.colorpick.Button',Ext.Component,{controller:'colorpick-buttoncontroller',baseCls:'x-colorpicker-button',width:20,height:20,childEls:['btnEl','filterEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},defaultBindProperty:'value',twoWayBindable:'value',renderTpl:'
    ',listeners:{click:'onClick',element:'btnEl'},updateColor:function(b){var a=this,c=a.colorPicker;a.mixins.colorselection.updateColor.call(a,b);Ext.ux.colorpick.ColorUtils.setBackground(a.filterEl,b);if(c){c.setColor(b)}},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}}},0,['colorbutton'],['component','box','colorbutton'],{'component':!0,'box':!0,'colorbutton':!0},['widget.colorbutton'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Button'],0);Ext.cmd.derive('Ext.ux.colorpick.Field',Ext.form.field.Picker,{editable:!1,matchFieldWidth:!1,beforeBodyEl:['
    '],cls:'x-colorpicker-field',childEls:['swatchEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},afterRender:function(){Ext.form.field.Picker.prototype.afterRender.call(this);this.updateValue(this.value)},createPicker:function(){var a=this,c=a.getPopup(),b;a.colorPickerWindow=c=Ext.create(c);a.colorPicker=b=c.lookupReference('selector');b.setFormat(a.getFormat());b.setColor(a.getColor());b.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:a});c.on({close:'onColorPickerCancel',scope:a});return a.colorPickerWindow},onColorPickerOK:function(a){this.setColor(a.getColor());this.collapse()},onColorPickerCancel:function(){this.collapse()},onExpand:function(){var a=this.getColor();this.colorPicker.setPreviousColor(a)},setValue:function(c){var a=this,b=a.applyValue(c);(arguments.callee.$previous||Ext.form.field.Picker.prototype.setValue).call(this,b);a.updateValue(b)},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}},updateValue:function(c){var a=this,b;if(!a.syncing){a.syncing=!0;a.setColor(c);a.syncing=!1}b=a.getColor();Ext.ux.colorpick.ColorUtils.setBackground(a.swatchEl,b);if(a.colorPicker){a.colorPicker.setColor(b)}}},0,['colorfield'],['component','box','field','textfield','pickerfield','colorfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'pickerfield':!0,'colorfield':!0},['widget.colorfield'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Field'],0);Ext.cmd.derive('common.BandFilter',Ext.container.ButtonGroup,{alternateClassName:['Portal.BandFilter'],filters:['g','r','i','z','Y','RGB'],defaultFilter:'rgb',buttonWidth:30,vertical:!1,config:{availableFilters:[]},initComponent:function(){var a=this;if(!a.filters){Ext.Error.raise('You must specify a filters config.')}a.items=this.createFilters();var b='bands';if(a.itemId){b='bands_'+a.itemId}if(a.vertical){a.layout={type:'vbox',align:'stretch'}}else {a.layout={type:'hbox',align:'stretch'}}a.defaults={allowDepress:!1,enableToggle:!0,toggleGroup:b,toggleHandler:function(b){if(b.pressed){var c=b.value;a.fireEvent('onfilter',c,b,a)}}};Ext.container.ButtonGroup.prototype.initComponent.apply(this,arguments)},createFilters:function(){var c=this,f=[],d,a,b;for(var e=0;e1){b.width=50}if(c.defaultFilter==a){b.pressed=!0}f.push(b)}return f},getFilter:function(){var g=this,a=null,b,e,c;b=this.filters;e=Array();c=this.items;for(var d=0;d=':c=Ext.String.format('{0}__gte',e);a[c]=d;break;case '>':c=Ext.String.format('{0}__gt',e);a[c]=d;break;case '!=':c=Ext.String.format('{0}__ne',e);a[c]=d;break;case 'in':c=Ext.String.format('{0}__in',e);a[c]=d.join();break;case 'like':c=Ext.String.format('{0}__icontains',e);a[c]=d;break;case 'range':c=Ext.String.format('{0}__range',e);g=Ext.String.format('{0},{1}',d[0],d[1]);a[c]=g;break;default:a[e]=d;}});return a},buildUrl:function(c){var b=this,e=c.getOperation(),h=e.getRecords(),g=h?h[0]:null,i=b.getFormat(),a=b.getUrl(c),d,f;if(g&&!g.phantom){d=g.getId()}else {d=e.getId()}if(b.getAppendId()&&b.isValidId(d)||e.action==='update'){if(!a.match(b.slashRe)){a+='/'}a+=encodeURIComponent(d);f=c.getParams();if(f){delete f[b.getIdParam()]}a+='/'}if(i){if(!a.match(b.periodRe)){a+='.'}a+=i}c.setUrl(a);return Ext.data.RestProxy.superclass.buildUrl.apply(this,arguments)}},0,0,0,0,['proxy.django'],0,[common.data.proxy,'Django'],0);Ext.cmd.derive('common.store.MyStore',Ext.data.Store,{proxy:{type:'django'},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c;switch(a.status){case 403:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;case 408:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Maximum execution time exceeded.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});break;}}}}}},0,0,0,0,0,0,[common.store,'MyStore'],0);Ext.cmd.derive('common.store.CommentsObjects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,proxy:{type:'django',url:'/dri/api/objectscomments/'},sorters:[{property:'date',direction:'DESC'}]},0,0,0,0,['store.comments-objects'],0,[common.store,'CommentsObjects'],0);Ext.cmd.derive('common.model.CommentObject',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'catalog_id',type:'int'},{name:'object_id',type:'string'},{name:'comments',type:'string'},{name:'owner',type:'string',persist:!1},{name:'date',type:'date',persist:!1},{name:'is_owner',type:'boolean',persist:!1}]},0,0,0,0,0,0,[common.model,'CommentObject'],0);Ext.cmd.derive('common.comment.CommentsObjectModel',Ext.app.ViewModel,{data:{catalog_id:null,object_id:null},stores:{comments:{type:'comments-objects'}},links:{currentcomment:{type:'common.model.CommentObject',create:!0}}},0,0,0,0,['viewmodel.comment-object'],0,[common.comment,'CommentsObjectModel'],0);Ext.cmd.derive('common.comment.CommentsObjectController',Ext.app.ViewController,{loadComments:function(b,c){var f=this,e=f.getView(),a=e.getViewModel(),d=a.getStore('comments');a.set('catalog_id',b);a.set('object_id',c);d.filter([{property:'catalog_id',value:b},{property:'object_id',value:c}])},onNewComment:function(){var a=this,g=a.getView(),b=a.getViewModel(),f=b.getStore('comments'),d=a.lookup('txtComment'),e=d.getValue(),c;if(e){c=Ext.create('common.model.CommentObject',{catalog_id:b.get('catalog_id'),object_id:b.get('object_id'),comments:e});d.reset();f.add(c);a.applyChanges()}},onTxtCommentPressKey:function(d,a){var b=this,c=b.lookup('txtComment');if(a.keyCode==13){b.onNewComment()}else {if(a.keyCode==27){c.reset()}}},onClickUpdateComment:function(b){var f=this,e=f.lookup('GridComments'),a=e.findPlugin('rowediting'),c=b.up('button'),d=c.getWidgetRecord();a.startEdit(d)},updateComment:function(d,a){var c=this,b=a.record;b.set('comments',a.newValues['comments']);c.applyChanges()},onClickDeleteComment:function(b){var a=this,c=b.up('button');record=c.getWidgetRecord();Ext.MessageBox.confirm('Confirm','Are you sure you want to do that?',function(c){if(c==='yes'){a.deleteComment(record)}},a)},deleteComment:function(b){var a=this,d=a.getViewModel(),c=d.getStore('comments');c.remove(b);a.applyChanges()},applyChanges:function(){var c=this,b=c.getView(),d=c.getViewModel(),a=d.getStore('comments');b.setLoading(!0);a.sync({success:function(){a.load()},failure:function(){a.rejectChanges();c.onFailure()},callback:function(){b.setLoading(!1);b.fireEvent('changecomments',a,b)}})},onFailure:function(){Ext.Msg.show({title:'Sorry',msg:'There was a problem and it was not possible to create the new record, please try again in a few moments. If the problem persists please notify us via the help desk.',icon:Ext.Msg.WARNING,buttons:Ext.Msg.OK})}},0,0,0,0,['controller.comment-object'],0,[common.comment,'CommentsObjectController'],0);Ext.cmd.derive('common.comment.CommentsObject',Ext.Panel,{padding:'19',frame:!0,controller:'comment-object',viewModel:'comment-object',layout:{type:'vbox',pack:'start',align:'stretch'},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'container',layout:'hbox',align:'fit',items:[{xtype:'textfield',reference:'txtComment',name:'comments',margin:'0 6 0 0',flex:1,enableKeyEvents:!0,listeners:{specialkey:'onTxtCommentPressKey'}},{xtype:'button',text:'Post',itemId:'btnSaveComment',align:'stretch',handler:'onNewComment',iconCls:'x-fa fa-floppy-o'}]},{xtype:'grid',reference:'GridComments',flex:1,frame:!0,split:!0,hideHeaders:!0,bind:{store:'{comments}',selection:'{currentcomment}'},plugins:[{ptype:'rowediting',autoCancel:!1,listeners:{edit:'updateComment'}}],columns:[{text:'',dataIndex:'comments',renderer:a.formatUser,flex:2,menuDisabled:!0,editor:{xtype:'textfield',allowBlank:!1}},{xtype:'datecolumn',text:'Date',dataIndex:'date',hidden:!0},{text:'Button',width:50,xtype:'widgetcolumn',widget:{xtype:'button',iconCls:'x-fa fa-caret-down',arrowVisible:!1,menu:[{text:'Edit',iconCls:'x-fa fa-pencil',handler:'onClickUpdateComment'},{text:'Delete',iconCls:'x-fa fa-trash',handler:'onClickDeleteComment'}]},onWidgetAttach:function(b,a){if(a.getWidgetRecord().get('is_owner')){a.setDisabled(!1)}else {a.setDisabled(!0)}}}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},formatUser:function(b,e,a){var d=this,c='
    {0} comments on {1}
    {2}
    ';return Ext.String.format(c,a.get('owner'),a.get('date')||'Unknown',b)},setObject:function(a,b){var c=this,d=c.getViewModel(),e=c.getController();d.set('catalog_id',a);d.set('object_id',b);e.loadComments(a,b)}},0,['comments-object'],['component','box','container','panel','comments-object'],{'component':!0,'box':!0,'container':!0,'panel':!0,'comments-object':!0},['widget.comments-object'],0,[common.comment,'CommentsObject'],0);Ext.cmd.derive('common.model.CommentPosition',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'owner',type:'string'},{name:'pst_dataset',type:'int'},{name:'pst_filter',type:'int'},{name:'pst_ra',type:'float'},{name:'pst_dec',type:'float'},{name:'pst_date',type:'date'},{name:'pst_comment',type:'string'},{name:'is_owner',type:'boolean'},{name:'coordinates',type:'string'}]},0,0,0,0,0,0,[common.model,'CommentPosition'],0);Ext.cmd.derive('common.store.CommentsPosition',common.store.MyStore,{model:'common.model.CommentPosition',remoteFilter:!0,remoteSort:!0,autoLoad:!1,proxy:{type:'django',url:'/dri/api/comment/position/'},sorters:[{property:'date',direction:'DESC'}]},0,0,0,0,['store.comments-position'],0,[common.store,'CommentsPosition'],0);Ext.cmd.derive('common.comment.CommentsPositionModel',Ext.app.ViewModel,{data:{catalog_id:null,coordinates:null},stores:{comments:{type:'comments-position'}},links:{currentcomment:{type:'common.model.CommentPosition',create:!0}}},0,0,0,0,['viewmodel.comment-position'],0,[common.comment,'CommentsPositionModel'],0);Ext.cmd.derive('common.comment.CommentsPositionController',Ext.app.ViewController,{loadComments:function(c,g){var b=this.getView().getViewModel(),f=b.getStore('comments'),a=c.targetPosition,d=a?a.lat:c.latlng.lat,e=a?a.lng:c.latlng.lng;b.set('pst_dataset',g.id);b.set('pst_dec',d);b.set('pst_ra',e);f.filter([{property:'coordinates',value:'[['+e+','+d+'],['+e+','+d+']]'}])},onDeleteComment:function(e){var a=this,c=a.getView(),d=c.getViewModel(),b=d.get('currentcomment');Ext.MessageBox.confirm('Confirm','Are you sure you want to do that?',function(c){if(c==='yes'){a.deleteComment(b)}},this)},deleteComment:function(b){var d=this,a=d.getView(),e=a.getViewModel(),c=e.getStore('comments');a.setLoading(!0);c.remove(b);c.sync({success:function(){b.isCommentPosition=!0;a.fireEvent('changecomments',{type:'delete',comment:b,total:c.data.items.length});a.setLoading(!1)},failure:function(e,d){a.setLoading(!1);var c=d.request.proxy.reader.jsonData;if(c){Ext.Msg.alert('Status',c.msg)}else {Ext.MessageBox.show({title:'Server Side Failure',msg:c.status+' '+c.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})}}})},onSaveComment:function(f){var e=this,b=e.getView(),d=b.getViewModel(),a=d.getStore('comments');var c=d.get('currentcomment');if(c.get('comments')!=''){b.setLoading(!0);a.sync({success:function(){a.commitChanges();a.load({callback:function(){c.isCommentPosition=!0;b.fireEvent('changecomments',{type:'delete',comment:c,total:a.data.items.length})}});var e=Ext.create('common.model.CommentObject');d.set('currentcomment',e);b.setLoading(!1)},failure:function(c,d){b.setLoading(!1);Ext.Msg.show({title:'Sorry',msg:'Was not possible to change the comment.',icon:Ext.Msg.ERROR,buttons:Ext.Msg.OK});a.rejectChanges()}})}},onNewComment:function(c){var a=this.getView().getViewModel(),d=a.getStore('comments');var b=Ext.create('common.model.CommentPosition',{pst_ra:a.get('pst_ra'),pst_dec:a.get('pst_dec'),pst_comment:c,pst_dataset:a.get('pst_dataset')});d.insert(0,b);a.set('currentcomment',b)}},0,0,0,0,['controller.comment-position'],0,[common.comment,'CommentsPositionController'],0);Ext.cmd.derive('common.comment.CommentsPosition',Ext.Panel,{padding:'19',frame:!0,controller:'comment-position',viewModel:'comment-position',layout:{type:'vbox',pack:'start',align:'stretch'},initComponent:function(){var a=this;a.rowEditing=new Ext.grid.plugin.RowEditing({listeners:{edit:function(c,b){b.record.set('pst_comment',b.newValues['pst_comment']);a.getController().onSaveComment()},canceledit:function(a,b){}}});if(!a.contextMenu){a.contextMenu=new Ext.menu.Menu({items:[{text:'Edit',handler:function(e){var d=a.down('grid'),b=a.contextMenu.record,c=d.store.find('id',b.data.id);a.rowEditing.startEdit(c,0)}},{text:'Delete',handler:function(e){var b=a.down('grid'),c=a.contextMenu.record,d=b.store.find('id',c.data.id);b.getSelectionModel().select(d);a.getController().onDeleteComment(e)}}]})}Ext.apply(this,{items:[{xtype:'container',layout:'hbox',align:'fit',items:[{xtype:'textfield',name:'comments',margin:'0 6 0 0',flex:1,enableKeyEvents:!0,listeners:{change:function(c,d){var b=a.down('grid').store;if(b.getNewRecords().length==0){}},specialkey:function(d,b){var c=a.getController();if(b.keyCode==13&&this.value){c.onNewComment(this.value);c.onSaveComment();this.setValue('')}else {if(b.keyCode==27){this.setValue('')}}}}},{xtype:'button',text:'Post',itemId:'btnSaveComment',align:'stretch',handler:function(){var c=a.getController();var b=a.down('[name="comments"]');if(b.value){c.onNewComment(b.value);c.onSaveComment();b.setValue('')}},iconCls:'x-fa fa-floppy-o'}]},{xtype:'grid',flex:1,frame:!0,split:!0,hideHeaders:!0,cls:'comment-grid',bind:{store:'{comments}',selection:'{currentcomment}'},plugins:[a.rowEditing],columns:[{text:'',dataIndex:'pst_comment',renderer:this.formatUser,flex:2,menuDisabled:!0,editor:{xtype:'textfield',allowBlank:!1}},{xtype:'datecolumn',text:'Date',dataIndex:'date',hidden:!0}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},formatUser:function(c,f,a){var e=this,b=Ext.id(),d='
    {0} comments on {1}
    {3}
    ';Ext.defer(function(){Ext.widget('button',{renderTo:b,iconCls:'x-fa fa-caret-down',style:'padding:0;margin-left:20px',handler:function(h,b){var g={x:b.event.clientX,y:b.event.clientY},d=e.up('comments-position').contextMenu;d.record=a;d.showAt(g)}})},50);return Ext.String.format(d,a.get('owner'),a.get('date')||'Unknown',b,c)}},0,['comments-position'],['component','box','container','panel','comments-position'],{'component':!0,'box':!0,'container':!0,'panel':!0,'comments-position':!0},['widget.comments-position'],0,[common.comment,'CommentsPosition'],0);Ext.cmd.derive('common.contact.ContactController',Ext.app.ViewController,{onFormCancel:function(){this.getView().lookupReference('windowForm').getForm().reset();this.getView().close()},onFormSubmit:function(){var c=this.getView(),d=c.lookupReference('windowForm'),b=d.getForm(),a=b.getValues();a.current_url=window.location.href;a.current_user=window.sessionStorage.dri_username;if(b.isValid()){Ext.Ajax.request({url:'/dri/api/contact/',method:'POST',params:a,success:function(){c.close();Ext.MessageBox.alert('Thank you!','Your inquiry has been sent. We will respond as soon as possible.')},failure:function(a,b){Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Sorry, message was not sent.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this})}})}}},0,0,0,0,['controller.contact'],0,[common.contact,'ContactController'],0);Ext.cmd.derive('common.contact.Contact',Ext.window.Window,{reference:'contactWindow',title:'Contact Us',controller:'contact',width:400,height:500,minWidth:300,minHeight:380,layout:'fit',resizable:!0,modal:!0,defaultFocus:'firstName',closeAction:'destroy',items:[{xtype:'form',reference:'windowForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{margin:'0 0 20 0',xtype:'component',html:['Thank you for visiting our site! We welcome your feedback; ','please click the button below to send us a message. We will ','respond to your inquiry as quickly as possible.']},{xtype:'textfield',fieldLabel:'Name',name:'name',allowBlank:!1},{xtype:'textfield',fieldLabel:'Your Email Address',vtype:'email',name:'from',allowBlank:!1},{xtype:'textfield',fieldLabel:'Subject',name:'subject',allowBlank:!1},{xtype:'textareafield',fieldLabel:'How can we help?',labelAlign:'top',flex:1,margin:'0',name:'message',allowBlank:!1,emptyText:'Describe the problem or share your ideas.'}],buttons:[{text:'Cancel',handler:'onFormCancel'},{text:'Send',handler:'onFormSubmit'}]}]},0,['form-contact-window'],['component','box','container','panel','window','form-contact-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'form-contact-window':!0},['widget.form-contact-window'],0,[common.contact,'Contact'],0);Ext.cmd.derive('common.footer.FooterController',Ext.app.ViewController,{onClickContact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()}},0,0,0,0,['controller.footer'],0,[common.footer,'FooterController'],0);Ext.cmd.derive('common.footer.Footer',Ext.toolbar.Toolbar,{controller:'footer',cls:'des-portal-footer',height:28,layout:{pack:'center',align:'middle'},viewModel:{data:{}},items:[{xtype:'tbtext',html:'Powered by LIneA | Dark Energy Survey | NCSA',cls:'des-portal-footer-text'}]},0,['dri-footer'],['component','box','container','toolbar','dri-footer'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-footer':!0},['widget.dri-footer'],0,[common.footer,'Footer'],0);Ext.cmd.derive('common.ToolbarController',Ext.app.ViewController,{listen:{component:{'dri-header':{afterrender:'onAfterRender'}}},logout:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/dri/api/api-auth/logout/?next=/dri/apps/',b,c);window.location.assign(a)},projectHome:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/',b,c);window.location.assign(a)},contact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()},about:function(){window.open('http://www.linea.gov.br')},onAfterRender:function(){var a=this;a.loadUsername();a.loaddTutorials()},loaddTutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');a.addFilter([{property:'app_name',value:c.get('internal_name')}]);a.load({scope:this,callback:b.onLoadTutorials})},onLoadTutorials:function(){var b=this,d=b.getViewModel(),c=d.getStore('tutorials'),a=b.lookupReference('headermenututorials');if(c.count()>0){a.enable()}else {a.disable()}},tutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');if(this.wincontact){this.wincontact=null}this.wintutorials=Ext.create('common.help.Tutorials',{store:a});this.wintutorials.show()},onClickHelp:function(){var e=this,f=e.getViewModel(),c=window.location.protocol,d=window.location.host,b=f.get('help_url'),a;a=Ext.String.format('{0}//{1}/{2}',c,d,b);window.open(a)},loadUsername:function(){var a=this,b=a.getViewModel();Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(c){var a=JSON.parse(c.responseText);b.set('username',a.username);window.dri_username=a.username}})}},0,0,0,0,['controller.toolbar'],0,[common,'ToolbarController'],0);Ext.cmd.derive('common.help.TutorialsController',Ext.app.ViewController,{onSelect:function(e,c){var d=this,b=d.lookupReference('video'),a;a=Ext.create('Ext.Component',{flex:1,html:''});b.removeAll();b.add(a)}},0,0,0,0,['controller.tutorials'],0,[common.help,'TutorialsController'],0);Ext.cmd.derive('common.help.Tutorials',Ext.window.Window,{title:'Tutorials',controller:'tutorials',config:{store:null},initComponent:function(){var a=this;Ext.apply(this,{layout:'border',width:700,height:400,minWidth:300,minHeight:280,resizable:!0,maximizable:!0,modal:!0,closeAction:'destroy',items:[{xtype:'grid',reference:'tutorials_grid',region:'west',split:!0,hideHeaders:!0,width:200,store:a.getStore(),columns:[{dataIndex:'ttr_title',flex:1}],listeners:{select:'onSelect'}},{xtype:'panel',region:'center',reference:'video',split:!0,layout:{type:'vbox',pack:'start',align:'stretch'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)}},0,['tutorials-window'],['component','box','container','panel','window','tutorials-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'tutorials-window':!0},['widget.tutorials-window'],0,[common.help,'Tutorials'],0);Ext.cmd.derive('common.header.Toolbar',Ext.toolbar.Toolbar,{controller:'toolbar',cls:'des-portal-headerbar toolbar-btn-shadow',layout:{type:'hbox',align:'middle'},viewModel:{data:{home:'',desPortalLogo:'resources/des-portal-logo.png',tooltip:'Home',username:''},stores:{tutorials:{fields:['id','application','application_display_name','ttr_title','ttr_src','ttr_description'],remoteSort:!0,remoteFilter:!0,autoLoad:!1,pageSize:0,proxy:{type:'django',url:'/dri/api/tutorial/'}}}},viewItems:function(){return [{xtype:'component',cls:'des-portal-logo',bind:{html:'Home'}},{xtype:'component',cls:'des-portal-appname',bind:{html:'{name}'},flex:1},'->',{xtype:'button',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',itemId:'btnusername',bind:{text:'{username}'}},{xtype:'button',iconCls:'x-fa fa-home',ui:'white-toolbar',cls:'delete-focus-bg',scale:'medium',handler:'projectHome',tooltip:'Home of the Science Server'},{xtype:'button',reference:'headermenu',iconCls:'x-fa fa-bars',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',arrowVisible:!1,menu:[{text:'About LIneA',handler:'about'},{text:'Contact Us',handler:'contact'},{text:'Tutorials',iconCls:'x-fa fa-question-circle',reference:'headermenututorials',disabled:!0,handler:'tutorials'},{text:'Help',iconCls:'x-fa fa-question',reference:'headermenuhelp',handler:'onClickHelp'},'-',{text:'Log out',iconCls:'x-fa fa-sign-out',handler:'logout'}]}]},initComponent:function(){this.items=this.viewItems();Ext.toolbar.Toolbar.prototype.initComponent.call(this)},afterRender:function(){var c=this,b=window.location.href,a;a=b.split('#')[0];c.getViewModel().set('home',a);Ext.toolbar.Toolbar.prototype.afterRender.apply(this,arguments)}},0,['dri-header'],['component','box','container','toolbar','dri-header'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-header':!0},['widget.dri-header'],0,[common.header,'Toolbar'],0);Ext.cmd.derive('common.link.LinkPrompt',Ext.window.Window,{config:{link:null},closable:!0,title:'Get Link',closeAction:'destroy',initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'container',layout:'hbox',padding:10,style:{overflow:'hidden'},items:[{xtype:'container',layout:{type:'vbox',align:'stretch'},items:[{xtype:'container',layout:'hbox',margin:'0 0 5 0',items:[{xtype:'textfield',value:a.getLink(),readOnly:!0,width:400,flex:1,height:32},{xtype:'button',iconCls:'x-fa fa-clipboard',tooltip:'Copy to clipboard',scope:a,handler:'copyClipboard',scale:'medium'},{xtype:'button',iconCls:'x-fa fa-external-link',tooltip:'Open in new tab',scope:a,handler:'openNew',scale:'medium'}]}]}]}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},openNew:function(){var a=this,b=a.getLink();window.open(b);a.close()},copyClipboard:function(){var b=this,d=b.down('textfield'),f=d.getEl(),g='#'+f.id+'-inputEl',a;a=document.querySelector(g);a.select();try{var c=document.execCommand('copy');var e=c?'successful':'unsuccessful';console.log('Copy '+e)}catch(h){console.log(h);console.log('Oops, unable to copy')}b.close()}},0,0,['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},0,0,[common.link,'LinkPrompt'],0);Ext.cmd.derive('common.model.Dataset',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'tag',type:'int'},{name:'tag_display_name',type:'string'},{name:'release',type:'int'},{name:'release_name',type:'string'},{name:'release_display_name',type:'string'},{name:'tite',type:'int'},{name:'run',type:'string'},{name:'date',type:'string'},{name:'tli_tilename',type:'string'},{name:'tli_ra',type:'float'},{name:'tli_ra',type:'float'},{name:'tli_dec',type:'float'},{name:'tli_urall',type:'float'},{name:'tli_udecll',type:'float'},{name:'tli_uraur',type:'float'},{name:'tli_udecur',type:'float'},{name:'release_tag',type:'string',convert:function(b,a){return Ext.String.format('{0} - {1}',a.get('release_display_name'),a.get('tag_display_name'))}},{name:'image_src_ptif',type:'string'},{name:'image_src_thumbnails',type:'string'},{name:'g',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'g',a.get('tli_tilename'))}},{name:'r',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'r',a.get('tli_tilename'))}},{name:'i',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'i',a.get('tli_tilename'))}},{name:'z',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'z',a.get('tli_tilename'))}},{name:'y',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'y',a.get('tli_tilename'))}},{name:'irg',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'irg',a.get('tli_tilename'))}}],isInsideTile:function(a,e){var d=this,a=parseFloat(a),e=parseFloat(e),b,c,f,g;if(a>180){a=a-360}b=d.get('tli_urall');c=d.get('tli_uraur');f=d.get('tli_udecll');g=d.get('tli_udecur');if(b>180){b=b-360}if(c>180){c=c-360}if(a>b&&af&&e180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decul',type:'float',convert:function(b,a){value=a.get('tli_decul');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'rall',type:'float',convert:function(b,a){value=a.get('tli_rall');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decll',type:'float',convert:function(b,a){value=a.get('tli_decll');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'ralr',type:'float',convert:function(b,a){value=a.get('tli_ralr');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'declr',type:'float',convert:function(b,a){value=a.get('tli_declr');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'raur',type:'float',convert:function(b,a){value=a.get('tli_raur');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decur',type:'float',convert:function(b,a){value=a.get('tli_decur');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}}]},0,0,0,0,0,0,[common.model,'Footprint'],0);Ext.cmd.derive('common.model.Map',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_user_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'prd_is_public',type:'boolean'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'prd_filter',type:'string'},{name:'prl_related',type:'string'},{name:'prl_cross_identification',type:'string'},{name:'prl_cross_property',type:'string'},{name:'tablename',type:'string'},{name:'mpa_nside',type:'int'},{name:'mpa_ordering',type:'string'}]},0,0,0,0,0,0,[common.model,'Map'],0);Ext.cmd.derive('common.model.Release',Ext.data.Model,{fields:[{name:'rls_name',type:'string'},{name:'rls_version',type:'string'},{name:'rls_date',type:'date'},{name:'rls_description',type:'float'},{name:'rls_doc_url',type:'string'},{name:'rls_display_name',type:'string'},{name:'rls_default',type:'boolean'},{name:'tiles_count',type:'int'},{name:'tags_count',type:'int',convert:function(a){if(a==1){return ''}}},{name:'is_new',type:'boolean',convert:function(e,b){if(b.get('rls_date')){var a=b.get('rls_date'),c=-2,d=Ext.Date.add(new Date(),Ext.Date.DAY,c);return Ext.Date.between(a,d,a)}}}]},0,0,0,0,0,0,[common.model,'Release'],0);Ext.cmd.derive('common.model.Survey',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'srv_release',type:'int'},{name:'srv_filter',type:'int'},{name:'filter',type:'string'},{name:'srv_project',type:'string'},{name:'srv_display_name',type:'string'},{name:'srv_url',type:'string'},{name:'srv_target',type:'string'},{name:'srv_fov',type:'string'}]},0,0,0,0,0,0,[common.model,'Survey'],0);Ext.cmd.derive('common.model.Tag',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'tag_release',type:'int'},{name:'tag_name',type:'string'},{name:'tag_display_name',type:'string'},{name:'tag_status',type:'boolean'},{name:'tag_install_date',type:'date'},{name:'is_new',type:'boolean',convert:function(e,b){if(b.get('tag_install_date')){var a=b.get('tag_install_date'),c=-2,d=Ext.Date.add(new Date(),Ext.Date.DAY,c);return Ext.Date.between(a,d,a)}}}]},0,0,0,0,0,0,[common.model,'Tag'],0);Ext.cmd.derive('common.statistics.Events',Ext.app.Controller,{init:function(){var a=this;Ext.GlobalEvents.on('eventregister',a.onEventRegister)},onEventRegister:function(a){var b=Ext.util.Cookies.get('csrftoken');Ext.Ajax.request({url:window.location.origin+'/dri/api/statistics/',method:'POST',params:{csrfmiddlewaretoken:b,event:a},success:function(b){},failure:function(b,c){}})}},0,0,0,0,0,0,[common.statistics,'Events'],0);Ext.cmd.derive('common.store.Tiles',common.store.MyStore,{pageSize:100,remoteFilter:!0,remoteSort:!0,proxy:{type:'django',timeout:90000,url:'/dri/api/tiles/'},filterByRaDec:function(a,d){var a=parseFloat(a),d=parseFloat(d),b,c,e;this.each(function(f){if(a>180){a=a-360}b=f.get('tli_urall');c=f.get('tli_uraur');if(b>180){b=b-360}if(c>180){c=c-360}if(ba&&f.get('tli_udecur')>d){e=f;return !1}},this);return e}},0,0,0,0,['store.tiles'],0,[common.store,'Tiles'],0);Ext.cmd.derive('common.store.Datasets',common.store.Tiles,{model:'common.model.Dataset',remoteFilter:!0,remoteSort:!0,pageSize:100,proxy:{type:'django',timeout:90000,url:'/dri/api/dataset/'}},0,0,0,0,['store.datasets'],0,[common.store,'Datasets'],0);Ext.cmd.derive('common.store.Footprints',common.store.Tiles,{model:'common.model.Footprint',remoteFilter:!0,remoteSort:!0,pageSize:0,proxy:{type:'django',timeout:90000,url:'/dri/api/footprints/',reader:{type:'array'}}},0,0,0,0,['store.footprints'],0,[common.store,'Footprints'],0);Ext.cmd.derive('common.store.Maps',common.store.MyStore,{model:'common.model.Map',autoLoad:!1,pageSize:0,remoteFilter:!0,proxy:{type:'django',url:'/dri/api/map/'}},0,0,0,0,['store.maps'],0,[common.store,'Maps'],0);Ext.cmd.derive('common.store.MyTreeStore',Ext.data.TreeStore,{proxy:{type:'django',appendId:!1,reader:{type:'json',rootProperty:'children'}},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c=JSON.parse(a.response.responseText);switch(a.status){case 403:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;default:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this});}}}}}},0,0,0,0,0,0,[common.store,'MyTreeStore'],0);Ext.cmd.derive('common.store.Releases',common.store.MyStore,{model:'common.model.Release',autoLoad:!0,remoteSort:!0,remoteFilter:!1,proxy:{type:'django',url:'/dri/api/releases/'},sorters:[{property:'rls_date',direction:'DESC'},{property:'rls_display_name',direction:'ASC'}]},0,0,0,0,['store.releases'],0,[common.store,'Releases'],0);Ext.cmd.derive('common.store.Surveys',common.store.MyStore,{model:'common.model.Survey',autoLoad:!1,remoteFilter:!0,remoteSort:!0,pageSize:0,proxy:{type:'django',url:'/dri/api/surveys/'}},0,0,0,0,['store.surveys'],0,[common.store,'Surveys'],0);Ext.cmd.derive('common.store.Tags',common.store.MyStore,{model:'common.model.Tag',remoteFilter:!0,remoteSort:!0,proxy:{type:'django',url:'/dri/api/tags/'},sorters:[{property:'tag_display_name',direction:'ASC'}]},0,0,0,0,['store.tags'],0,[common.store,'Tags'],0);Ext.cmd.derive('aladin.Events',Ext.Base,{mouseIsDown:!1,mouseInitialPosition:[],mouseLastPosition:[],addCustomEvents:function(){var a=this;a.addDblClickListener();a.addMouseDown();a.addMouseMoveListener();a.addMouseUP()},addDblClickListener:function(){var a=this,d=a.getAladin(),f=d.view,e=d.view.reticleCanvas,b,c;e.addEventListener('dblclick',function(d){c=f.imageCanvas.relMouseCoords(d);b=a.mousePositionToSky(c);if(b){a.updateLocation(b);if(!a.preventDbClickFire){a.preventDbClickFire=!0;task=a.runner.newTask({run:function(){a.preventDbClickFire=!1},interval:20,repeat:1});task.start();a.fireEvent('ondblclick',b,a)}}})},addMouseDown:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,b,c;e.addEventListener('mousedown',function(e){c=d.imageCanvas.relMouseCoords(e);b=a.mousePositionToSky(c);if(b){a.mouseIsDown=!0;a.mouseInitialPosition=b;a.mouseLastPosition=b}})},addMouseMoveListener:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,b,c;e.addEventListener('mousemove',function(e){c=d.imageCanvas.relMouseCoords(e);b=a.mousePositionToSky(c);if(b){a.updateLocation(a.getRaDec(),b);if(a.mouseIsDown){a.mouseLastPosition=b;a.fireEvent('reticlemove',a.getRaDec(),a)}}})},addMouseUP:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,c,b;e.addEventListener('mouseup',function(e){b=d.imageCanvas.relMouseCoords(e);c=a.mousePositionToSky(b);if(c){if(a.mouseIsDown){if(!Ext.Array.equals(a.mouseInitialPosition,a.mouseLastPosition)){a.fireEvent('onpanend',a.getRaDec(),a)}else {a.fireEvent('onclick',a.mouseLastPosition,a)}}a.mouseIsDown=!1;a.mouseInitialPosition=[];a.mouseLastPosition=[]}})},mousePositionToSky:function(e){var g=this,f=g.getAladin(),a=f.view,d,b,c=[];d=AladinUtils.viewToXy(e.x,e.y,a.width,a.height,a.largestDim,a.zoomFactor);try{b=a.projection.unproject(d.x,d.y)}catch(h){return}if(a.cooFrame==CooFrameEnum.GAL){c=CooConversion.GalacticToJ2000([b.ra,b.dec])}else {c=[parseFloat(b.ra.toFixed(5)),parseFloat(b.dec.toFixed(5))]}return c},skyToString:function(a){if(a&&a[0]&&a[1]){return String(a[0].toFixed(5)+', '+a[1].toFixed(5))}},updateLocation:function(e,d){var a=this,c,b;c=a.skyToString(e);b=a.skyToString(d);a.setLocation(c,b)},onClickBtnMap:function(){var a=this,c=a.getViewModel(),b=c.get('release');if(a.windowMapSelection==null){a.windowMapSelection=Ext.create('aladin.maps.MapSelectionWindow',{width:182,height:237,x:45,y:55,resizable:!1,aladin:a})}a.windowMapSelection.setRelease(b);if(a.windowMapSelection.isHidden()){a.windowMapSelection.show()}else {a.windowMapSelection.hide()}}},0,0,0,0,0,0,[aladin,'Events'],0);Ext.cmd.derive('aladin.model.Image',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'img_url',type:'string'},{name:'product',type:'int'}]},0,0,0,0,0,0,[aladin.model,'Image'],0);Ext.cmd.derive('aladin.store.Images',common.store.MyStore,{model:'aladin.model.Image',autoLoad:!1,pageSize:0,remoteFilter:!0,proxy:{type:'django',url:'/dri/api/aladin/image/'}},0,0,0,0,['store.aladin_images'],0,[aladin.store,'Images'],0);Ext.cmd.derive('aladin.maps.MapSelectionController',Ext.app.ViewController,{listen:{component:{'aladin-maps-mapselectionwindow':{changerelease:'onChangeRelease'}}},onChangeRelease:function(k){var a=this,h=a.getViewModel(),g=h.getView(),c=h.getStore('maps_store'),f=a.lookup('cmbType'),e=a.lookup('cmbClass'),b=f.getStore(),i=e.getStore(),d=a.lookup('cmbFilter'),j=d.getStore();g.setLoading(!0);c.addFilter([{property:'release_id',value:k},{property:'with_image',value:!0}]);c.load({callback:function(){f.reset();b.removeAll();e.reset();i.removeAll();d.reset();j.removeAll();c.each(function(a){if(b.findRecord('pgr_group',a.get('pgr_group'))==null){b.add(a)}},this);g.setLoading(!1)}})},onSelectMapType:function(h){var b=this,i=b.getViewModel(),f=h.selection,g=i.getStore('maps_store'),d=b.lookup('cmbClass'),a=d.getStore(),c=b.lookup('cmbFilter'),e=c.getStore();d.reset();a.removeAll();c.reset();e.removeAll();g.each(function(b){if(b.get('pgr_group')==f.get('pgr_group')&&a.findRecord('prd_class',b.get('prd_class'))==null){a.add(b)}},this)},onSelectMapClass:function(f){var d=this,g=d.getViewModel(),c=f.selection,e=g.getStore('maps_store'),b=d.lookup('cmbFilter'),a=b.getStore();b.reset();a.removeAll();e.each(function(b){if(b.get('pgr_group')==c.get('pgr_group')&&b.get('prd_class')==c.get('prd_class')){a.add(b)}},this)},onSelectMapFilter:function(g){var d=this,c=d.getViewModel(),f=c.getView(),e=f.getAladin(),b=g.selection,a=c.getStore('aladin_images_store');a.addFilter([{property:'product',value:b.get('id')}]);a.load({callback:function(){if(a.getCount()!=1){Ext.MessageBox.alert('Warning',a.getCount().toString()+' images found for same map!')}else {aladin_last_nonmap_survey=c.get('aladin_last_nonmap_survey');if(aladin_last_nonmap_survey==null){c.set('aladin_last_nonmap_survey',e.getImageSurvey())}var f=a.getAt(0).get('img_url');survey={'id':'map_'+b.get('id').toString(),'url':f,'name':b.get('pcl_display_name'),'filter':b.get('prd_filter'),'maxOrder':3,'frame':'equatorial','options':{'imgFormat':'png'}};e.readProperties(f,function(a){survey['maxOrder']=a['maxOrder'];d.setMapSurvey(survey)},function(a){console.log('aladin.readProperties() error: %o',a);d.setMapSurvey(survey)})}}})},setMapSurvey:function(c){var e=this,a=e.getViewModel(),d=a.getView(),b=d.getAladin();mapSurvey=b.createImageSurvey(c);b.setImageSurvey(mapSurvey);a.set('aladin_last_map_survey',mapSurvey);a.set('map_selected',!0)},onDisplayOnOff:function(f){var e=this,a=e.getViewModel(),d=a.getView(),c=d.getAladin(),b=null;if(a.get('map_selected')){b=a.get('aladin_last_map_survey')}else {b=a.get('aladin_last_nonmap_survey')}c.setImageSurvey(b)}},0,0,0,0,['controller.mapselection'],0,[aladin.maps,'MapSelectionController'],0);Ext.cmd.derive('aladin.maps.MapSelectionWindow',Ext.window.Window,{controller:'mapselection',viewModel:'mapselection',config:{aladin:null},initComponent:function(){var a=this,b=a.getViewModel();Ext.apply(this,{title:'Map viewer',closeAction:'hide',bodyPadding:5,items:[{xtype:'combobox',reference:'cmbType',fieldLabel:'Map Type:',labelAlign:'top',emptyText:'',displayField:'pgr_display_name',valueField:'pgr_group',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapType'},editable:!1,queryMode:'local'},{xtype:'combobox',reference:'cmbClass',fieldLabel:'Map Class:',labelAlign:'top',emptyText:'',displayField:'pcl_display_name',valueField:'prd_class',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapClass'},editable:!1,queryMode:'local'},{xtype:'combobox',reference:'cmbFilter',fieldLabel:'Filter:',labelAlign:'top',emptyText:'',displayField:'prd_filter',valueField:'id',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapFilter'},editable:!1,queryMode:'local'},{xtype:'checkbox',reference:'chkOnOff',boxLabel:'Display Map',handler:'onDisplayOnOff',bind:{disabled:'{!aladin_switchable}',value:'{map_selected}'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setRelease:function(a){var b=this,c=b.getViewModel();if(a!=c.get('release')){c.set('release',a);b.fireEvent('changerelease',a)}}},0,['aladin-maps-mapselectionwindow'],['component','box','container','panel','window','aladin-maps-mapselectionwindow'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'aladin-maps-mapselectionwindow':!0},['widget.aladin-maps-mapselectionwindow'],0,[aladin.maps,'MapSelectionWindow'],0);Ext.cmd.derive('aladin.Interfaces',Ext.Base,{windowInfo:null,windowMapSelection:null,enableDisableInfo:function(d,c){var b=this,a=b.windowInfo;if(!a){a=b.createWindowInfo()}a.setVisible(c)},createWindowInfo:function(){var b=this,a;a=Ext.create('Ext.Component',{width:280,height:100,x:5,y:10,renderTo:b.body,header:!1,resizable:!1,constrain:!0,cls:'aladin-location-info',style:{position:'absolute',zIndex:29},tpl:['
    {image_survey}','
    {tilename}','
    RA, Dec (deg): {location}
    Mouse RA, Dec (deg): {mlocation}
    ']});b.windowInfo=a;return a},getInfoData:function(){var g=this,a=g.getViewModel(),e=a.get('tile'),f=a.get('tag'),k=a.get('release_name'),d,b,c='',j='',i='',h='';if(f){h=k;i=f.get('tag_display_name')}if(e){j=e.get('tli_tilename')}b=g.getImageSurvey();if(b&&b.id!='empty_survey'){c=b.name}d={image_survey:c,location:a.get('location'),mlocation:a.get('mlocation'),release:h,tag:i,tilename:j};return d},updateInfoData:function(){var a=this,c=a.windowInfo,b=a.getInfoData();if(a.windowInfo){c.setData(b)}},makeToolbar:function(){var c=this,a=c.getToolbarPosition(),b=!1;if(a==='left'||a==='right'){b=!0}return Ext.create('Ext.toolbar.Toolbar',{vertical:b,reference:'aladinToolbar'})},makeToolbarButtons:function(){var a=this,c,b=[],e=a.getToolbarPosition(),f=!1;if(e==='left'||e==='right'){f=!0}if(a.getEnableShift()){b.push({xtype:'button',tooltip:'Switch between Aladdin / Visiomatic.',iconCls:'x-fa fa-exchange',scope:a,handler:a.onShift,bind:{disabled:'{!tile}'}})}if(a.getEnableLayersControl()){b.push({xtype:'button',scope:a,iconCls:'x-fa fa-picture-o',tooltip:'Image Layer',menu:a.createImageLayersMenuItems(),menuAlign:'tr',arrowVisible:!1,itemId:'BtnImageLayers'})}if(a.getShowFilters()){var d=Ext.create('common.BandFilter',{filters:['g','r','i','z','Y','irg'],defaultFilter:'irg',vertical:f,listeners:{scope:a,'onfilter':a.onFilter}});a.setBandFilter(d);b.push(d)}if(a.getEnableViewMenu()){b.push(a.createViewMenu())}if(a.getEnableMaps()){b.push({xtype:'button',tooltip:'Map Viewer',iconCls:'x-fa fa-th',scope:a,handler:a.onClickBtnMap})}if(a.getEnableGoto()){b.push({iconCls:'x-fa fa-search',tooltip:'Go To position. 356.0085, 0.5168 or 23 44 2.040 +00 31 0.48',menuAlign:'tr',arrowVisible:!1,menu:[{xtype:'textfield',emptyText:'RA (deg), Dec (deg)',triggers:{'goto':{cls:'x-form-search-trigger',scope:this,handler:a.submitGoToPosition,tooltip:'Go To position. 356.0085, 0.5168 or 23 44 2.040 +00 31 0.48'}},listeners:{scope:this,specialkey:function(b,a){if(a.getKey()==a.ENTER){this.submitGoToPosition(b)}}}}]})}if(a.getEnableExportPng()){if(Ext.firefoxVersion>0){b.push({xtype:'button',tooltip:'Snapshot',iconCls:'x-fa fa-camera',scope:a,handler:a.exportAsPng})}}c=a.getAuxTools();if(c.length>0){Ext.each(c,function(a){b.push(a)})}return b},createViewMenu:function(){var c=this,b,a;a=c.createViewMenuItems();if(a.length>0){b=Ext.create('Ext.button.Button',{iconCls:'x-fa fa-cog',tooltip:'Change view settings',itemId:'ViewMenu',menu:a,menuAlign:'tr',arrowVisible:!1})}return b},createViewMenuItems:function(){var a=this,b=[];b.push({xtype:'menucheckitem',text:'Tiles Grid',itemId:'TileGridMenu',menu:[],menuAlign:'tr',checkHandler:a.onCheckTileGridMenu,disabled:!0,checked:a.getTilesGridVisible()});b.push('-');if(a.getEnableColorMap()){b.push(a.createColorMapMenu())}b.push('-');if(a.getEnableFootprint()){var c=a.getHideFootprint();b.push({xtype:'menucheckitem',itemId:'DesFootprint',text:'Des Footprint',checked:!c,scope:a,checkHandler:a.showDesFootprint})}if(a.getEnableReticle()){b.push({xtype:'menucheckitem',text:'Reticle',checked:!0,scope:a,checkHandler:a.showReticle})}if(a.getEnableHealpixGrid()){b.push({xtype:'menucheckitem',text:'Healpix Grid',scope:a,checkHandler:a.showHealpixGrid})}if(a.getEnableHealpixGrid()){b.push({xtype:'menucheckitem',text:'Info',scope:a,checkHandler:a.enableDisableInfo,checked:a.getInfoEnabled()})}return b},createTileGridMenu:function(){var b=this,d=b.down('#ViewMenu'),c=b.createTileGridMenuItems(),a=b.down('#TileGridMenu');if(!a){a={text:'Tiles Grid',itemId:'TileGridMenu',menu:c};d.getMenu().add(a)}else {a.getMenu().removeAll();a.getMenu().add(c);a.enable()}},createTileGridMenuItems:function(){var a=this,c=a.getStoreTags(),b=[];if(c.count()>0){c.each(function(c){b.push({xtype:'menucheckitem',text:c.get('tag_display_name'),tag:c.get('id'),scope:a,checkHandler:a.onCheckTileGrid})},this)}return b},createColorMapMenu:function(){var c=this,b,a;a=c.createColorMapMenuItems();b={text:'Color Map',tooltip:'Change Color Map',reference:'BtnColorMap',itemId:'BtnColorMap',menu:a,menuAlign:'tr',arrowVisible:!1};return b},createColorMapMenuItems:function(){var a=this,c=a.getColorMaps(),b=[];for(var d in c){b.push({xtype:'menucheckitem',text:c[d],group:'colormaps',mapName:c[d],scope:a,checkHandler:a.changeColorMap})}b.push('-');b.push({text:'Reverse',scope:a,handler:a.reverseColor});return b},updateColorMapMenu:function(){var a=this,d=a.down('#BtnColorMap'),b,c;b=Ext.clone(ColorMap.MAPS_NAMES);a.setColorMaps(b);c=a.createColorMapMenuItems();d.setMenu(c)},createImageLayersMenuItems:function(){var a=this,f=a.getExternalSurveys(),b=a.getSurveys(),c=[],d,g;if(b!=null&&b.length>0){for(var e in b){desSurvey=b[e];if(desSurvey.id!='empty_survey'){c.push({xtype:'menucheckitem',text:desSurvey['name'],group:'imageSurveys',survey:desSurvey,scope:a,checked:!0,checkHandler:a.selectExternalSurvey})}}c.push('-')}for(var e in f){d=f[e];c.push({xtype:'menucheckitem',text:d['name'],group:'imageSurveys',survey:d,scope:a,checkHandler:a.selectExternalSurvey})}return c},updateImageLayersMenuItems:function(){var c=this,b=c.down('#BtnImageLayers'),a;if(b){a=c.createImageLayersMenuItems();b.setMenu(a)}}},0,0,0,0,0,0,[aladin,'Interfaces'],0);Ext.cmd.derive('aladin.Aladin',Ext.panel.Panel,{layout:'fit',libA:null,colorsDefault:['#A0F65A','#00BFFF','#FF0000','#FFFF00','#FF7F00','#7D26CD','#FF1493'],colorsAvailable:[],config:{aladinId:null,cmpAladin:null,aladin:null,aladinReady:!1,hipsDir:'/static/stripeHiPS',aladinOptions:{fov:180,target:'02 23 11.851 -09 40 21.59',cooFrame:'J2000',survey:'empty_survey',showReticle:!0,showZoomControl:!0,showFullscreenControl:!0,showLayersControl:!1,showGotoControl:!1,showShareControl:!1,showCatalog:!0,showFrame:!1,showCooGrid:!1,fullScreen:!1,reticleColor:'rgb(178, 50, 178)',reticleSize:28,log:!0,allowFullZoomout:!0},aladinWidth:300,aladinHeight:300,autoSize:!0,storeSurveys:null,storeMaps:null,surveys:[],maps:[],colorMaps:[],emptySurvey:{'id':'empty_survey','url':'','name':'','filter':'','maxOrder':11,'frame':'equatorial','options':{imgFormat:'png'}},enableLayersControl:!0,enableToolbar:!0,showFilters:!1,bandFilter:null,availableFilters:[],enableViewMenu:!0,enableExportPng:!0,enableReticle:!0,enableHealpixGrid:!0,enableColorMap:!0,enableFootprint:!0,hideFootprint:!0,enableGoto:!1,gotoSetPosition:!0,auxTools:[],storeTags:null,storeTiles:null,tilesGridVisible:!1,enableInfo:!0,infoEnabled:!0,location:'',mlocation:'',initialFov:null,enableMaps:!0,enableShift:!1,toolbarPosition:'left',externalSurveys:[{'id':'P/2MASS/color','url':'http://alasky.u-strasbg.fr/2MASS/Color','name':'2MASS colored','maxOrder':9,'frame':'equatorial','format':'jpeg'},{'id':'P/DSS2/color','url':'http://alasky.u-strasbg.fr/DSS/DSSColor','name':'DSS colored','maxOrder':9,'frame':'equatorial','format':'jpeg'},{'id':'P/DSS2/red','url':'http://alasky.u-strasbg.fr/DSS/DSS2Merged','name':'DSS2 Red (F+R)','maxOrder':9,'frame':'equatorial','format':'jpeg fits'},{'id':'P/Fermi/color','url':'http://alasky.u-strasbg.fr/Fermi/Color','name':'Fermi color','maxOrder':3,'frame':'equatorial','format':'jpeg'},{'id':'P/Finkbeiner','url':'http://alasky.u-strasbg.fr/FinkbeinerHalpha','maxOrder':3,'frame':'galactic','format':'jpeg fits','name':'Halpha'},{'id':'P/GALEXGR6/AIS/color','url':'http://alasky.u-strasbg.fr/GALEX/GR6-02-Color','name':'GALEX Allsky Imaging Survey colored','maxOrder':8,'frame':'equatorial','format':'jpeg'},{'id':'P/IRIS/color','url':'http://alasky.u-strasbg.fr/IRISColor','name':'IRIS colored','maxOrder':3,'frame':'galactic','format':'jpeg'},{'id':'P/Mellinger/color','url':'http://alasky.u-strasbg.fr/MellingerRGB','name':'Mellinger colored','maxOrder':4,'frame':'galactic','format':'jpeg'},{'id':'P/SDSS9/color','url':'http://alasky.u-strasbg.fr/SDSS/DR9/color','name':'SDSS9 colored','maxOrder':10,'frame':'equatorial','format':'jpeg'},{'id':'P/SPITZER/color','url':'http://alasky.u-strasbg.fr/SpitzerI1I2I4color','name':'IRAC color I1,I2,I4 - (GLIMPSE, SAGE, SAGE-SMC, SINGS)','maxOrder':9,'frame':'galactic','format':'jpeg'},{'id':'P/VTSS/Ha','url':'http://alasky.u-strasbg.fr/VTSS/Ha','maxOrder':3,'frame':'galactic','format':'png jpeg fits','name':'VTSS-Ha'},{'id':'P/XMM/EPIC','url':'http://saada.u-strasbg.fr/xmmallsky','name':'XMM-Newton stacked EPIC images (no phot. normalization)','maxOrder':7,'frame':'equatorial','format':'png fits'},{'id':'P/XMM/PN/color','url':'http://saada.unistra.fr/xmmpnsky','name':'XMM PN colored','maxOrder':7,'frame':'equatorial','format':'png jpeg'},{'id':'P/allWISE/color','url':'http://alasky.u-strasbg.fr/AllWISE/RGB-W4-W2-W1/','name':'AllWISE color','maxOrder':8,'frame':'equatorial','format':'jpeg'},{'id':'P/GLIMPSE360','url':'http://www.spitzer.caltech.edu/glimpse360/aladin/data','name':'GLIMPSE360','maxOrder':9,'frame':'equatorial','format':'jpeg'}]},isFirstSurvey:!0,viewModel:{data:{location:'',mlocation:'',tile:null,tag:null,release:null,release_name:''}},session:!0,preventDbClickFire:!1,runner:null,initComponent:function(){var a=this,c,b,d;if(window.A){a.libA=window.A}else {console.log('window.A ainda nao esta carregada')}a.setAladinId(a.getId()+'-placeholder');c=Ext.create('Ext.Component',{id:a.getAladinId(),width:a.getAladinWidth(),height:a.getAladinHeight()});if(a.getEnableToolbar()){b=a.leftToolBar=a.makeToolbar();d=a.makeToolbarButtons();b.add(d);if(a.getToolbarPosition()==='left'){a.lbar=b}else {if(a.getToolbarPosition()==='top'){a.tbar=b}}}Ext.apply(this,{items:[c],listeners:{scope:a,afterrender:'onAfterrender'}});a.runner=Ext.create('Ext.util.TaskRunner',{});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},onAfterrender:function(){var a=this,d='#'+a.getAladinId(),e=a.libA,c=a.getAladinOptions(),b,f;b=e.aladin(d,c);b.view.setUnknownSurveyIfNeeded=function(){};b._setImageSurvey=b.setImageSurvey;b.setImageSurvey=function(d,c){return b._setImageSurvey(d,function(){a.onChangeImageSurvey();if(c){c()}})};a.setAladin(b);a.createImageSurveys();if(a.getEnableColorMap()){a.updateColorMapMenu()}if(a.getInfoEnabled()){a.enableDisableInfo(null,a.getInfoEnabled())}a.addCustomEvents();a.setAladinReady(!0);a.fireEvent('aladinready',a)},onChangeImageSurvey:function(){this.addCustomEvents()},aladinIsReady:function(){var a=this;return a.getAladinReady()},getRaDec:function(){var b=this,a=b.getAladin();return a.getRaDec()},getEmptySurvey:function(){return Ext.clone(this.emptySurvey)},readProperties:function(c,a,b){ProgressiveCat.readProperties(c,a,b)},onResize:function(){var a=this,b=a.getAladin();if(a.getAutoSize()){b.view.fixLayoutDimensions()}},setSurveys:function(a){this.surveys=null;this.surveys=a;if(this.getAladin()&&a.length>0){this.removeLayers();this.createImageSurveys()}},createImageSurvey:function(e){var c=this,f=c.getEmptySurvey(),d=c.getAladin(),a,b,g;a=Ext.Object.merge(f,e);b=d.createImageSurvey(String(a.id),a.name,a.url,a.cooFrame,a.maxOrder,a.options);return b},createImageSurveys:function(){var a=this,b=a.getSurveys(),d=a.getFilter(),f=a.getEmptySurvey(),e,c;if(b.length===0){b.push(f)}for(var g in b){e=b[g];a.createImageSurvey(e)}if(d){c=a.getSurveyByFilter(d)}else {c=b[0]}a.updateImageLayersMenuItems();a.setImageSurvey(c)},getSurveyByFilter:function(c){var d=this,b=d.getSurveys(),a;for(var e in b){a=b[e];if(a.filter.toLowerCase()==c.toLowerCase()){return a}}},getImageSurvey:function(){var b=this,a=b.getAladin();if(a){return a.getBaseImageLayer()}else {return null}},setImageSurvey:function(b){var a=this,c=a.getAladin(),d=a.getEmptySurvey();if(b){c.setImageSurvey(b.id);if(a.isFirstSurvey){if(b.target!==''){a.goToPosition(b.target)}if(a.getInitialFov()){a.setFov(a.getInitialFov())}else {if(b.fov){a.setFov(b.fov)}}a.isFirstSurvey=!1}a.showDesFootprint();a.addCustomEvents();a.fireEvent('changeimage',b,a)}else {c.setImageSurvey(d.id)}},setStoreSurveys:function(a){var b=this;if(a){a.on({scope:this,load:'onStoreSurveysLoad',beforeload:'onStoreSurveysBeforeLoad'});b.storeSurveys=a}},onStoreSurveysBeforeLoad:function(a){var b=this;b.setLoading({store:a})},onStoreSurveysLoad:function(d){var a=this,g=a.getAladin(),f=a.getEmptySurvey(),c=[],b=[],e;if(d.count()===0){console.log('NAO TEM SURVEY');a.setImageSurvey(f)}d.each(function(a){e={id:String(a.get('id')),url:a.get('srv_url'),name:a.get('srv_display_name'),filter:a.get('filter'),target:a.get('srv_target'),fov:a.get('srv_fov')};c.push(e);b.push(a.get('filter'))});a.setSurveys(c);a.setAvailableFilters(b)},setLocation:function(c,b){var a=this,d=a.getViewModel();a.location=c;a.mlocation=b;d.set('location',c);d.set('mlocation',b);if(a.getAladin()){a.onChangeLocation()}},onChangeLocation:function(a){var b=this;if(!a){a=b.getRaDec()}b.identifyTile(a);b.updateInfoData()},setAvailableFilters:function(a){var b=this,c=b.getBandFilter();if(a.length>0){if(b.getShowFilters()){c.setAvailableFilters(a)}}},setStoreTags:function(a){var b=this;if(a){b.storeTags=a;a.on('load','onLoadStoreTags',this)}},onLoadStoreTags:function(b){var a=this;if(a.getEnableViewMenu()){if(b.count()>0){a.createTileGridMenu()}}},setStoreTiles:function(a){var b=this;b.storeTiles=a;a.on('beforeload','onBeforeloadStoreTiles',this);a.on('load','onLoadStoreTiles',this)},onBeforeloadStoreTiles:function(){var a=this;a.setLoading(!0)},onLoadStoreTiles:function(){var a=this,b;a.setLoading(!1);if(a.getEnableViewMenu()){b=a.down('#TileGridMenu');if(b.checked){a.onCheckTileGridMenu(b,b.checked)}}a.identifyTile()},getTileByPosition:function(c){var e=this,b=e.getStoreTiles(),a=c,d;if(!c){a=e.getRaDec()}if(b&&b.count()){d=b.filterByRaDec(a[0],a[1])}return d},identifyTile:function(f){var b=this,c=b.getViewModel(),e=c.get('tileid'),a,d;a=b.getTileByPosition(f);if(a){if(a.get('id')!==e){d=b.getStoreTags().getById(a.get('tag'));c.set('release_name',a.get('release_display_name'));c.set('tile',a);c.set('tag',d);b.fireEvent('changetile',a,d,b)}}else {c.set('tile',null);c.set('tag',null);b.fireEvent('changetile',a,d,b)}},onFilter:function(b){var a=this,c;c=a.getSurveyByFilter(b);a.setImageSurvey(c);a.fireEvent('changefilter',b,a)},getFilter:function(){var a=this,b=a.getBandFilter();if(a.getShowFilters()){return b.getFilter()}},setFilter:function(b){var c=this,a=c.getBandFilter();a.setFilter(b)},changeMapSurvey:function(a){var c=this,d=c.getAladin(),b;b={id:String(a.map_id),url:a.map_url,name:a.map_name,filter:a.map_filter,maxOrder:3};mapSurvey=c.createImageSurvey(b);d.setImageSurvey(mapSurvey.id)},selectExternalSurvey:function(b){var d=this,c=d.getAladin(),a=b.survey;c.setImageSurvey(a.id)},exportAsPng:function(){var b=this,a=b.getAladin();a.exportAsPNG()},showReticle:function(d,b){var c=this,a=c.getAladin();a.showReticle(b)},showHealpixGrid:function(d,b){var c=this,a=c.getAladin();a.showHealpixGrid(b)},showDesFootprint:function(a,b){var c=this;if(!a){a=c.down('#DesFootprint');b=a.checked}c.plotDesFootprint(b)},reverseColor:function(){var b=this,a=b.getAladin();a.getBaseImageLayer().getColorMap().reverse()},changeColorMap:function(b){var c=this,a=c.getAladin();a.getBaseImageLayer().getColorMap().update(b.mapName)},plotDesFootprint:function(e){var d=this,c=d.getAladin();des=d.getDesFootprintCoordinates();if(c.view.overlays[0]!=undefined){overlays=c.view.overlays;plotDes=!1;for(var b=overlays.length-1;b>=0;b--){if(overlays[b].name=='des'){plotDes=!0;if(e){overlays[b].show()}else {overlays[b].hide()}}}if(plotDes==!1){var a=A.graphicOverlay({color:'#ee2345',lineWidth:2,name:'des'});c.addOverlay(a);a.add(A.polyline(des))}}else {var a=A.graphicOverlay({color:'#ee2345',lineWidth:2,name:'des'});c.addOverlay(a);a.add(A.polyline(des))}},onCheckTileGridMenu:function(b,a){var d=this,c=b.getMenu();c.items.each(function(c){c.setChecked(a)},d)},onCheckTileGrid:function(b,a){this.showTileGrid(b.tag,a)},showTileGrid:function(c,g){var a=this,e=a.getStoreTiles(),f=a.getStoreTags(),d=f.getById(c),b;if(g){b=e.query('tag',c);if(b.count()>0){a.plotFootprint(d,b)}}else {a.setVisibleFootprint(d.get('tag_name'),!1)}},plotFootprint:function(e,h){var c=this,f=c.getAladin(),b=c.libA,a,d,g;d=b.catalog({name:'Recent tiles',sourceSize:14,color:'#e67e22'});a=c.getFootprintByName(e.get('tag_name'));if(a){a.show()}else {a=b.graphicOverlay({color:c.getColor(),lineWidth:1,name:String(e.get('tag_name'))});f.addOverlay(a);h.each(function(c){var f=[[c.get('raul'),c.get('decul')],[c.get('rall'),c.get('decll')],[c.get('ralr'),c.get('declr')],[c.get('raur'),c.get('decur')]];a.addFootprints(b.polygon(f));if(c.get('is_new')){g=!0;d.addSources([b.marker(c.get('tli_ra'),c.get('tli_dec'),{popupTitle:'Tile Recently Added',popupDesc:'Creation date: '+c.get('date')})])}},this);if(g&&!e.get('is_new')){f.addCatalog(d)}}},parsePosition:function(a){var b,d,c;if(a){if(a.indexOf(',')!=-1){a=a.split(',');b=parseFloat(a[0].trim());d=parseFloat(a[1].trim());if(b<0){b=b+360}c=[b,d];a=c.join(', ')}else {a=c}return a}},goToPosition:function(b){var c=this,d=c.getAladin(),a;if(b){a=c.parsePosition(b);d.gotoObject(a)}},setFov:function(b){var d=this,c=d.getAladin(),a=parseFloat(b);if(a){c.setFoV(a)}},getFov:function(){var b=this,a=b.getAladin();return a.getFov()[0]},getFootprintByName:function(d){var e=this,c=e.getAladin(),a=c.view.overlays,b=null;if(a.length>0){a.forEach(function(a){if(a.name==d){b=a}})}return b},setVisibleFootprint:function(c,b){var d=this,a;if(b=='undefined'){b=!0}a=d.getFootprintByName(c);if(a){if(b){a.show()}else {a.hide()}}},removeLayers:function(){var b=this,a=b.getAladin();a.removeLayers()},getColor:function(){var a=this,c=a.colorsDefault,b;if(a.colorsAvailable.length===0){a.colorsAvailable=Ext.clone(c)}b=a.colorsAvailable.shift();return b},onShift:function(){this.fireEvent('shift',this.getRaDec(),this)},onShowLayerBox:function(){var b=this,a=b.getViewModel().getView().getAladin();a.hideBoxes();a.showLayerBox();return !1},overlayDrawCircle:function(b,a,c){a.beginPath();a.arc(b.x,b.y,b.data['size']*2,0,2*Math.PI,!1);a.closePath();a.strokeStyle='#c38';a.lineWidth=3;a.globalAlpha=0.7,a.stroke();var d=Math.max(c['fov'][0],c['fov'][1]);return},getDesFootprintCoordinates:function(){var a=[[23,-7],[22,-7],[21,-7],[20,-7],[19,-7],[18,-7],[17,-7],[16,-7],[15,-7],[14,-7],[13,-7],[12,-7],[11,-7],[10,-7],[9,-7],[8,-7],[7,-7],[6,-7],[5,-7],[4,-7],[3,-7],[2,-7],[1,-7],[0,-7],[0,-6],[0,-5],[0,-4],[0,-3],[0,-2],[-1,-2],[-2,-2],[-3,-2],[-4,-2],[-5,-2],[-6,-2],[-7,-2],[-8,-2],[-9,-2],[-10,-2],[-11,-2],[-12,-2],[-13,-2],[-14,-2],[-15,-2],[-16,-2],[-17,-2],[-18,-2],[-19,-2],[-20,-2],[-21,-2],[-22,-2],[-23,-2],[-24,-2],[-25,-2],[-26,-2],[-27,-2],[-28,-2],[-29,-2],[-30,-2],[-31,-2],[-32,-2],[-33,-2],[-34,-2],[-35,-2],[-36,-2],[-37,-2],[-38,-2],[-39,-2],[-40,-2],[-41,-2],[-42,-2],[-43,-2],[-43,-1],[-43,0],[-43,1],[-43,2],[-42,2],[-41,2],[-40,2],[-39,2],[-38,2],[-37,2],[-36,2],[-35,2],[-34,2],[-33,2],[-32,2],[-31,2],[-30,2],[-29,2],[-28,2],[-27,2],[-26,2],[-25,2],[-24,2],[-23,2],[-22,2],[-21,2],[-20,2],[-19,2],[-18,2],[-17,2],[-16,2],[-15,2],[-14,2],[-13,2],[-12,2],[-11,2],[-10,2],[-9,2],[-8,2],[-7,2],[-6,2],[-5,2],[-4,2],[-3,2],[-2,2],[-1,2],[0,2],[0,2],[0,3],[0,4],[0,5],[1,5],[2,5],[3,5],[4,5],[5,5],[6,5],[7,5],[8,5],[9,5],[10,5],[11,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[21,5],[22,5],[23,5],[24,5],[25,5],[26,5],[27,5],[28,5],[29,5],[30,5],[31,5],[32,5],[33,5],[34,5],[35,5],[36,5],[37,5],[38,5],[39,5],[40,5],[41,5],[42,5],[43,5],[44,5],[45,5],[45,5],[45,4],[45,3],[45,2],[45,1],[45,0],[45,-1],[45,-2],[45,-3],[45,-4],[45,-5],[45,-6],[45,-7],[45,-8],[45,-9],[45.83584,-9.06842],[46.36744,-9.14567],[46.89697,-9.22888],[47.42429,-9.3181],[47.94928,-9.41337],[48.47183,-9.51474],[48.99181,-9.62226],[49.50912,-9.73598],[50.02364,-9.85594],[50.53529,-9.98221],[51.04396,-10.11482],[51.54955,-10.25382],[52.05199,-10.39926],[52.55118,-10.55119],[53.04706,-10.70965],[53.53954,-10.87467],[54.02856,-11.0463],[54.51405,-11.22457],[54.99596,-11.40952],[55.47423,-11.60118],[55.94881,-11.79957],[56.41965,-12.00471],[56.88672,-12.21663],[57.34998,-12.43534],[57.80939,-12.66086],[58.26493,-12.89318],[58.71657,-13.13232],[59.16429,-13.37827],[59.60807,-13.63102],[60.0479,-13.89057],[60.48377,-14.15689],[60.91568,-14.42997],[61.3436,-14.70979],[61.76755,-14.99631],[62.18753,-15.2895],[62.60354,-15.58931],[63.01557,-15.89572],[63.42365,-16.20866],[63.82778,-16.52808],[64.22797,-16.85393],[66,-18],[67,-18],[68,-18],[69,-18],[70,-18],[71,-18],[72,-18],[73,-18],[74,-18],[75,-18],[76,-18],[77,-18],[78,-18],[79,-18],[80,-18],[81,-18],[82,-18],[83,-18],[84,-18],[85,-18],[86,-18],[86.66667,-19],[87.33333,-20],[88,-21],[88.66667,-22],[89.41596,-23.1317],[89.68146,-24.3655],[89.95879,-25.59111],[90.24749,-26.80814],[90.54705,-28.01619],[90.8569,-29.21488],[91.17643,-30.40381],[91.50499,-31.58263],[91.84185,-32.75095],[92.18623,-33.90841],[92.53729,-35.05464],[92.89409,-36.18931],[93.25565,-37.31205],[93.62088,-38.42252],[93.98862,-39.5204],[94.35759,-40.60535],[94.72643,-41.67704],[95.09367,-42.73517],[95.45771,-43.77942],[95.81685,-44.80949],[96.16922,-45.82508],[96.51286,-46.8259],[96.84562,-47.81168],[97.16521,-48.78213],[97.46918,-49.73698],[97.75487,-50.67597],[98.01948,-51.59884],[98.25999,-52.50536],[98.47317,-53.39526],[98.65561,-54.26832],[98.80364,-55.1243],[98.91339,-55.96299],[98.98075,-56.78417],[99.00136,-57.58762],[98.97062,-58.37314],[98.88371,-59.14055],[98.73552,-59.88964],[98.52073,-60.62023],[98.23379,-61.33214],[98,-61.5],[97,-61.5],[96,-61.5],[95,-61.5],[94,-61.5],[93,-61.5],[92,-61.5],[91,-61.5],[90,-61.5],[89,-61.5],[88,-61.5],[87,-61.5],[86,-61.5],[85,-61.5],[84,-61.5],[83,-62],[78.66667,-63],[74.33333,-64],[69.1922,-65.62708],[68.293,-65.99135],[67.35218,-66.34555],[66.36917,-66.68914],[65.34355,-67.02152],[64.27503,-67.3421],[63.1635,-67.65026],[62.00905,-67.9454],[60.81197,-68.22686],[59.5728,-68.49402],[58.29235,-68],[56.97169,-68],[55.6122,-67],[54.21558,-66],[52.78381,-65.5],[51.31925,-65],[49.82454,-65],[48.30265,-65],[46.75683,-65],[45.19062,-65],[43.60779,-65],[42.0123,-65],[40.4083,-65],[38.8,-65],[37.1917,-65],[35.5877,-65],[33.99221,-65],[32.40938,-65],[30.84317,-65],[29.29735,-65],[27.77546,-65],[26.28075,-65],[24.81619,-65],[23.38442,-65],[21.9878,-65],[20.62831,-65],[19.30765,-65],[18.0272,-65],[16.78803,-65],[15.59095,-65],[14.4365,-65],[13.32497,-65],[12.25645,-65],[11.23083,-65],[10.24782,-65],[9.307,-65],[8.4078,-65],[7.54955,-65],[4,-65],[3,-65],[2,-65],[1,-65],[0,-65],[-1,-65],[-2,-65],[-3,-65],[-4,-65],[-5,-65],[-6,-65],[-7,-65],[-8,-65],[-9,-65],[-10,-65],[-11,-65],[-12,-65],[-13,-65],[-14,-65],[-15,-65],[-16,-65],[-17,-65],[-18,-65],[-19,-65],[-20,-65],[-21,-65],[-22,-65],[-23,-65],[-24,-65],[-25,-65],[-26,-65],[-27,-65],[-28,-65],[-29,-65],[-30,-65],[-31,-65],[-32,-65],[-33,-65],[-34,-65],[-35,-65],[-36,-65],[-37,-65],[-38,-65],[-39,-65],[-40,-65],[-41,-65],[-42,-65],[-43,-65],[-44,-65],[-45,-65],[-46,-65],[-47,-65],[-48,-65],[-49,-65],[-50,-65],[-51,-65],[-52,-65],[-53,-65],[-54,-65],[-55,-65],[-56,-65],[-57,-65],[-56.8,-64],[-56.6,-63],[-56.4,-62],[-56.2,-61],[-56,-60],[-60.9756,-58.52],[-60.7792,-55.2685],[-60.2796,-52.4931],[-59.9266,-50.9207],[-58.355,-50.4154],[-56.6089,-49.5636],[-54.9615,-48.7766],[-54.8,-48],[-54.7,-47],[-54.6,-46],[-54.5,-45],[-54.4,-44],[-54.3,-43],[-54.2,-42],[-54.1,-41],[-54,-40],[-53,-40],[-52,-40],[-51,-40],[-50,-40],[-49,-40],[-48,-40],[-47,-40],[-46,-40],[-45,-40],[-44,-40],[-43,-40],[-42,-40],[-41,-40],[-40,-40],[-39,-40],[-38,-40],[-37,-40],[-36,-40],[-35,-40],[-34,-40],[-33,-40],[-32,-40],[-31,-40],[-30,-40],[-29,-40],[-28,-40],[-27,-40],[-26,-40],[-25,-40],[-24,-40],[-23,-40],[-22,-40],[-21,-40],[-20,-40],[-19,-40],[-18,-40],[-17,-40],[-16,-40],[-15,-40],[-14,-40],[-13,-40],[-12,-40],[-11,-40],[-10,-40],[-9,-40],[-8,-40],[-7,-40],[-6,-40],[-5,-40],[-4,-40],[-3,-40],[-1.47219,-38.64048],[-1.27518,-38.12814],[-1.07231,-37.61674],[-0.86376,-37.1064],[-0.6497,-36.59723],[-0.43028,-36.08933],[-0.20564,-35.58282],[0.02406,-35.07782],[0.25871,-34.57444],[0.49818,-34.0728],[0.74235,-33.57301],[0.99113,-33.0752],[1.24441,-32.5795],[1.50209,-32.08601],[1.7641,-31.59488],[2.03036,-31.10621],[2.30079,-30.62015],[2.57532,-30.13681],[2.85391,-29.65632],[3.13648,-29.17881],[3.423,-28.70441],[3.71342,-28.23325],[4.0077,-27.76546],[4.30581,-27.30116],[4.60772,-26.84048],[4.9134,-26.38355],[5.22284,-25.93051],[5.53601,-25.48147],[5.8529,-25.03656],[6.17351,-24.59591],[6.49782,-24.15964],[6.82584,-23.72788],[7.15756,-23.30074],[7.49299,-22.87835],[7.83212,-22.46081],[8.17498,-22.04826],[8.52155,-21.6408],[8.87186,-21.23855],[9.22592,-20.8416],[9.58374,-20.45008],[9.94533,-20.06407],[10.3107,-19.68369],[10.67989,-19.30903],[11.05289,-18.94018],[11.42973,-18.57723],[11.81042,-18.22027],[12.19498,-17.86938],[12.58343,-17.52465],[12.97577,-17.18614],[13.37203,-16.85393],[13.77222,-16.52808],[14.17635,-16.20866],[14.58443,-15.89572],[14.99646,-15.58931],[15.41247,-15.2895],[15.83245,-14.99631],[16.2564,-14.70979],[16.68432,-14.42997],[17.11623,-14.15689],[17.5521,-13.89057],[17.99193,-13.63102],[18.43571,-13.37827],[18.88343,-13.13232],[19.33507,-12.89318],[19.79061,-12.66086],[20.25002,-12.43534],[20.71328,-12.21663],[21.18035,-12.00471],[21.65119,-11.79957],[22.12577,-11.60118],[22.60404,-11.40952],[23.08595,-11.22457],[23,-10],[23,-9],[23,-8],[23,-7]];return a}},0,['aladin'],['component','box','container','panel','aladin'],{'component':!0,'box':!0,'container':!0,'panel':!0,'aladin':!0},['widget.aladin'],[['events',aladin.Events],['interface',aladin.Interfaces]],[aladin,'Aladin'],0);Ext.cmd.derive('aladin.maps.MapSelectionViewModel',Ext.app.ViewModel,{stores:{maps_store:{type:'maps',autoLoad:!1},aladin_images_store:{type:'aladin_images',autoLoad:!1}},data:{release:null,aladin_last_map_survey:null,aladin_last_nonmap_survey:null,map_selected:!1},formulas:{aladin_switchable:function(a){return a('aladin_last_nonmap_survey')!=null&&a('aladin_last_map_survey')!=null}}},0,0,0,0,['viewmodel.mapselection'],0,[aladin.maps,'MapSelectionViewModel'],0);Ext.cmd.derive('visiomatic.Interface',Ext.Base,{makeToolbar:function(){return Ext.create('Ext.toolbar.Toolbar',{items:[]})},makeToolbarButtons:function(){var a=this,c=a.getAuxTools(),b=[];if(a.getEnableShift()){b.push({xtype:'button',tooltip:'Switch between Visiomatic / Aladdin.',iconCls:'x-fa fa-exchange',scope:a,handler:a.onShift})}if(a.getEnableLink()){b.push({xtype:'button',tooltip:'Get link',iconCls:'x-fa fa-link',scope:a,handler:a.getLinkToPosition})}if(c.length>0){Ext.each(c,function(a){b.push(a)})}return b},makeMousePosition:function(){var a=this.getMap();return Ext.DomHelper.append(a._controlCorners['topright'],{tag:'div',cls:'leaflet-right leaflet-control leaflet-control-wcs-dialog visiomatic-mouse-position',html:'
    Mouse RA, Dec (0,0)
    '})}},0,0,0,0,0,0,[visiomatic,'Interface'],0);Ext.cmd.derive('visiomatic.VisiomaticModel',Ext.app.ViewModel,{data:{release:null,tag:null,dataset:null}},0,0,0,0,['viewmodel.visiomatic'],0,[visiomatic,'VisiomaticModel'],0);Ext.cmd.derive('visiomatic.VisiomaticController',Ext.app.ViewController,{},0,0,0,0,['controller.visiomatic'],0,[visiomatic,'VisiomaticController'],0);Ext.cmd.derive('visiomatic.catalog.Catalogs',Ext.tree.Panel,{initComponent:function(){var a=this;Ext.apply(this,{emptyText:'No data to display.',hideHeaders:!0,rootVisible:!1,useArrows:!0,selModel:{mode:'SINGLE'},columns:[{xtype:'treecolumn',text:'Name',flex:2,sortable:!0,dataIndex:'text',renderer:a.getTooltipName}],tbar:[{xtype:'textfield',emptyText:'Search by name',reference:'SearchField',flex:1,triggers:{clear:{cls:'x-form-clear-trigger',handler:'cancelFilter',hidden:!0},search:{cls:' x-form-search-trigger'}},listeners:{change:'filterCatalogByname',buffer:500}}]});Ext.tree.Panel.prototype.initComponent.apply(this,arguments)},getTooltipName:function(d,e,b){var f=this,c,a;if(b.get('leaf')){c=new Ext.XTemplate('
    ','{prd_display_name}','','


    {description}

    ','
    ','
    ');a=c.apply(b.data);e.tdAttr='data-qtip="'+a+'"'}return d}},0,['visiomatic-catalogs-tree'],['component','box','container','panel','tablepanel','treepanel','visiomatic-catalogs-tree'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'treepanel':!0,'visiomatic-catalogs-tree':!0},['widget.visiomatic-catalogs-tree'],0,[visiomatic.catalog,'Catalogs'],0);Ext.cmd.derive('visiomatic.model.CatalogTree',Ext.data.Model,{fields:[{name:'id'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'epr_name',type:'string'},{name:'epr_username',type:'string'},{name:'epr_start_date',type:'date'},{name:'epr_end_date',type:'date'},{name:'epr_readme',type:'string'},{name:'epr_comment',type:'string'},{name:'ctl_num_columns',type:'int'},{name:'ctl_num_tiles',type:'int'},{name:'ctl_num_objects',type:'int'},{name:'cds_source',type:'string'},{name:'cds_fieldnames',type:'string'},{name:'editable',type:'boolean',defaultValue:!1},{name:'markable',type:'boolean',defaultValue:!1},{name:'release_display_name',type:'string'},{name:'external_catalog',type:'boolean',defaultValue:!1}]},0,0,0,0,0,0,[visiomatic.model,'CatalogTree'],0);Ext.cmd.derive('visiomatic.store.CatalogsTree',common.store.MyTreeStore,{model:'visiomatic.model.CatalogTree',autoLoad:!1,remoteFilter:!0,proxy:{api:{read:'/dri/api/catalog/get_class_tree_by_group/'}}},0,0,0,0,['store.catalogs-overlay-tree'],0,[visiomatic.store,'CatalogsTree'],0);Ext.cmd.derive('visiomatic.store.Overlays',Ext.data.ArrayStore,{remoteFilter:!1,remoteSort:!1,autoLoad:!1,pageSize:0},0,0,0,0,['store.overlays'],0,[visiomatic.store,'Overlays'],0);Ext.cmd.derive('visiomatic.model.FilterCondition',Ext.data.Model,{fields:[{name:'id',type:'int','default':null,persist:!1},{name:'filterset',type:'int'},{name:'fcd_property',type:'int'},{name:'fcd_property_name',type:'string'},{name:'fcd_operation',type:'string'},{name:'fcd_value',type:'string'},{name:'operator_display_name',type:'string',persist:!1},{name:'property_display_name',type:'string',persist:!1,convert:function(a,c){var b=c.get('fcd_property_name');switch(b){case '_meta_rating':a='Rating';break;case '_meta_reject':a='Reject';break;}return a}}]},0,0,0,0,0,0,[visiomatic.model,'FilterCondition'],0);Ext.cmd.derive('visiomatic.store.FilterConditions',Ext.data.Store,{model:'visiomatic.model.FilterCondition',remoteFilter:!1,pageSize:0,sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.overlay-filter-conditions'],0,[visiomatic.store,'FilterConditions'],0);Ext.cmd.derive('visiomatic.catalog.CatalogViewModel',Ext.app.ViewModel,{stores:{catalogs:{type:'catalogs-overlay-tree'},overlays:{type:'overlays'}},data:{visiomatic:null,currentColor:'1dff00',currentFilters:null,pointType:0,pointSize:1},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0},dataset:{type:'common.model.Dataset',create:!0}}},0,0,0,0,['viewmodel.catalogoverlay'],0,[visiomatic.catalog,'CatalogViewModel'],0);Ext.cmd.derive('visiomatic.model.Object',Ext.data.Model,{idProperty:'_meta_id',fields:[{name:'_meta_id'},{name:'_meta_catalog_id',type:'int'},{name:'_meta_is_system',type:'boolean'},{name:'_meta_ra',type:'float'},{name:'_meta_dec',type:'float'},{name:'_meta_radius',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Object'],0);Ext.cmd.derive('visiomatic.store.Objects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,model:'visiomatic.model.Object',pageSize:5000,proxy:{type:'django',timeout:90000,api:{read:'/dri/api/catalogobjects/'}}},0,0,0,0,['store.overlay-objects'],0,[visiomatic.store,'Objects'],0);Ext.cmd.derive('visiomatic.store.ExternalObjects',common.store.MyStore,{remoteFilter:!0,remoteSort:!1,autoLoad:!1,model:'visiomatic.model.Object',pageSize:10000,proxy:{type:'django',timeout:60000,api:{read:'/dri/api/vizier/'}}},0,0,0,0,['store.overlay-external-objects'],0,[visiomatic.store,'ExternalObjects'],0);Ext.cmd.derive('visiomatic.model.Overlay',Ext.data.Model,{idProperty:'id',fields:[{name:'id',type:'int'},{name:'name',type:'string'},{name:'color',type:'string'},{name:'visible',type:'boolean'},{name:'status',type:'string'},{name:'status_message',type:'string'},{name:'count',type:'int'},{name:'total_count',type:'int'},{name:'excess',type:'int'},{name:'catalog'},{name:'layers'},{name:'objects'},{name:'filters'},{name:'objectUrl'},{name:'pointSize',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Overlay'],0);Ext.cmd.derive('visiomatic.filter.FiltersController',Ext.app.ViewController,{listen:{component:{'overlay-filters-window':{changecatalog:'onChangeCatalog'}}},onChangeCatalog:function(b){var a=this,d=a.getViewModel(),c=d.getStore('contents');a.clearImputs();c.addFilter({property:'pcn_product_id',value:b.get('id')})},onLoadContents:function(a){},onAddFilter:function(){var d=this,a=d.getViewModel(),b=a.get('content'),f=a.get('operator'),h=a.get('value'),g=a.getStore('filters'),e=a.get('afilters'),c;c=Ext.create('visiomatic.model.FilterCondition',{fcd_property:b.get('id'),fcd_property_name:b.get('column_name'),fcd_operation:f.get('name'),fcd_value:h,property_display_name:b.get('display_name'),operator_display_name:f.get('display_name')});e.push(c);g.add(c);a.set('afilters',e);d.clearImputs();d.checkHaveFilters()},onRemoveFilterClick:function(f,d,c,e,g,b){var a=this;Ext.MessageBox.confirm('','The Filter will be removed. Do you want continue?',function(h){if(h==='yes'){b.drop();a.createAFilters();a.checkHaveFilters()}},this)},createAFilters:function(){var c=this,e=c.getViewModel(),d=c.lookup('gridFilters'),b=d.getStore(),a=[];console.log(b);b.each(function(b){console.log(b);a.push(b)},this);e.set('afilters',a)},checkHaveFilters:function(){var b=this,a=b.getViewModel(),c=a.get('afilters'),d=b.lookup('BtnApply');if(c.length>0){a.set('haveFilters',!0)}else {a.set('haveFilters',!1)}},onSelectProperty:function(f,c){var a=this,b=a.getViewModel(),d=b.get('afilters'),e},onSelectOperator:function(b,a){},onCancelFilter:function(){this.getView().close()},onApplyFilter:function(){var a=this,e=a.getView(),c=a.getViewModel(),d=c.get('currentCatalog'),b=c.get('afilters');if(b.length>0){a.applyFilters(d,b)}},applyFilters:function(c,d){var b=this,a=b.getView();a.fireEvent('applyfilters',d,c,b);a.close()},clearImputs:function(){var e=this,a=e.getReferences(),c=a.cmbProperty,b=a.cmbOperator,d=a.txtValue;c.reset();b.reset();d.reset()}},0,0,0,0,['controller.overlay_filters'],0,[visiomatic.filter,'FiltersController'],0);Ext.cmd.derive('visiomatic.model.CatalogContent',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'product_id',type:'int'},{name:'setting_id',type:'int'},{name:'column_name',type:'string'},{name:'class_id',type:'int'},{name:'category',type:'string'},{name:'display_name',type:'string'},{name:'ucd',type:'string'},{name:'unit',type:'string'},{name:'reference',type:'string'},{name:'mandatory',type:'boolean'},{name:'content_setting',type:'int'},{name:'is_visible',type:'boolean'},{name:'order',type:'int'}]},0,0,0,0,0,0,[visiomatic.model,'CatalogContent'],0);Ext.cmd.derive('visiomatic.store.ProductDisplayContents',common.store.MyStore,{model:'visiomatic.model.CatalogContent',remoteFilter:!0,remoteSort:!1,pageSize:0,proxy:{url:'/dri/api/productcontent/get_display_content/'},sorters:[{property:'order',direction:'ASC'},{property:'display_name',direction:'ASC'}],ucds:['meta.id;meta.main','pos.eq.ra;meta.main','pos.eq.dec;meta.main'],check_ucds:function(){var a=this,b=[];a.each(function(c){if(a.ucds.indexOf(c.get('ucd'))!==-1){b.push(!0)}},a);if(b.length===a.ucds.length){return !0}else {return !1}}},0,0,0,0,['store.overlay-product-display-contents'],0,[visiomatic.store,'ProductDisplayContents'],0);Ext.cmd.derive('visiomatic.filter.FiltersModel',Ext.app.ViewModel,{stores:{contents:{type:'overlay-product-display-contents',storeId:'productContents',autoLoad:!1},filters:{type:'overlay-filter-conditions',storeId:'filterConditions',autoLoad:!1},operators:{fields:['name','display_name','type'],data:[{name:'=',display_name:'is equal to',type:'text'},{name:'!=',display_name:'is not equal to',type:'text'},{name:'>',display_name:'is greater than',type:'text'},{name:'>=',display_name:'is greater than or equal to',type:'text'},{name:'<',display_name:'is less than',type:'text'},{name:'<=',display_name:'is less than or equal to',type:'text'}]}},data:{operator:null,value:null,haveFilters:!1,afilters:[]},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0}}},0,0,0,0,['viewmodel.overlay_filters'],0,[visiomatic.filter,'FiltersModel'],0);Ext.cmd.derive('visiomatic.filter.FiltersWindow',Ext.window.Window,{title:'Filters',width:500,height:300,modal:!0,autoShow:!0,controller:'overlay_filters',viewModel:'overlay_filters',closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null},items:[{xtype:'form',reference:'filterForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'fieldset',title:'Add condition',items:[{xtype:'fieldcontainer',layout:'hbox',defaults:{flex:1},items:[{xtype:'combobox',emptyText:'Property',itemId:'cmbProperty',reference:'cmbProperty',publishes:'id',displayField:'display_name',bind:{store:'{contents}',selection:'{content}'},listeners:{select:'onSelectProperty'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,margin:'0 5 0 0'},{xtype:'combobox',itemId:'cmbOperator',reference:'cmbOperator',publishes:'name',displayField:'display_name',emptyText:'Operator',bind:{store:'{operators}',selection:'{operator}'},listeners:{select:'onSelectOperator'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,forceSelection:!0,margin:'0 5 0 0'},{xtype:'textfield',reference:'txtValue',emptyText:'Value',bind:{value:'{value}'},margin:'0 5 0 0',allowBlank:!1},{xtype:'button',iconCls:'x-fa fa-plus',width:40,flex:!1,handler:'onAddFilter'}]}]}]},{xtype:'grid',reference:'gridFilters',layout:'fit',border:!0,framed:!0,hideHeaders:!0,flex:1,bind:{store:'{filters}'},viewConfig:{markDirty:!1},columns:[{text:'Property',dataIndex:'property_display_name',flex:1},{text:'Operator',dataIndex:'operator_display_name',flex:1},{text:'Value',dataIndex:'fcd_value',flex:1},{xtype:'actioncolumn',width:60,sortable:!1,menuDisabled:!0,align:'center',items:[{iconCls:'x-fa fa-minus-circle color-soft-red',tooltip:'Remove condition',handler:'onRemoveFilterClick'}]}]}],buttons:[{text:'Cancel',handler:'onCancelFilter'},{text:'Ok',reference:'BtnApply',handler:'onApplyFilter',bind:{disabled:'{!haveFilters}'}}],setCurrentCatalog:function(a){var b=this;if(a&&a.get('id')>0){b.currentCatalog=a;b.getViewModel().set('currentCatalog',a);b.fireEvent('changecatalog',a)}},setFilterSet:function(a){var d=this,c=d.getViewModel(),b=c.getStore('filters'),e=d.lookup('btnDeleteFilterSet'),f=d.lookup('txtFilter');if(a&&a.get('id')>0){c.set('filterSet',a);c.set('filterName',a.get('fst_name'));f.setReadOnly(!0);e.enable();b.addFilter({property:'filterset',value:a.get('id')});b.load()}else {c.set('filterName',null);f.setReadOnly(!1);e.disable();b.clearFilter();b.removeAll(!0)}}},0,['overlay-filters-window'],['component','box','container','panel','window','overlay-filters-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'overlay-filters-window':!0},['widget.overlay-filters-window'],0,[visiomatic.filter,'FiltersWindow'],0);Ext.cmd.derive('visiomatic.catalog.CatalogController',Ext.app.ViewController,{listen:{component:{'visiomatic-catalog-overlay':{changedataset:'onChangeDataset'}}},baseFilters:[],winFilter:null,onChangeDataset:function(d){var a=this,c=a.getViewModel(),b=c.getStore('overlays');b.removeAll();a.loadCatalogs()},loadCatalogs:function(){var c=this,d=c.getViewModel(),b=d.getStore('catalogs'),a;a=[{property:'group',operator:'in',value:['objects_catalog','targets','value_added_catalogs','external_catalogs']}];c.baseFilters=a;b.addFilter(a);b.load()},onSelectCatalog:function(){var a=this,d=a.getViewModel(),b=d.get('currentFilters'),c=a.lookup('CatalogsTree'),f=c.selection,e=a.lookup('btnFilter');b=[]},filterCatalogByname:function(){var a=this,h=a.lookup('CatalogsTree'),b=a.lookup('SearchField'),c=h.getStore(),d=b.getValue(),e=[],f;if(d.length>0){b.getTrigger('clear').show();if(c.isLoading()){console.log('Store is Loading: %o',c.isLoading());var g=c.getProxy();g.abort();console.log('Store proxy abort')}f={property:'search',value:d};e.push(f);a.filterCatalogs(e)}else {b.getTrigger('clear').hide();a.filterCatalogs()}},filterCatalogs:function(a){var d=this,g=d.getViewModel(),b=g.getStore('catalogs'),f=d.baseFilters,e,c=Ext.clone(f);b.clearFilter(!0);b.removeAll();if(a&&Array.isArray(a)){for(index in a){e=a[index];c.push(e)}}b.filter(c)},cancelFilter:function(){var b=this,a=b.lookup('SearchField');a.reset();b.filterCatalogs();a.getTrigger('clear').hide()},onClickOverlay:function(){var b=this,c=b.getViewModel(),k=b.lookup('CatalogsTree'),d=k.selection,j=c.get('currentColor'),i=c.get('currentFilters'),h=c.getStore('overlays'),e=b.lookup('cmbPointType'),g=e.getValue(),f=c.get('pointSize')/1000,a;c.set('currentCatalog',d);a=Ext.create('visiomatic.model.Overlay',{name:d.get('prd_display_name'),catalog:d,color:Ext.String.format('#{0}',j),visible:!0,count:null,layers:null,pointType:g,pointSize:f,status:'loading',filters:null});h.add(a);if(!d.get('external_catalog')){a.set('objects',Ext.create('visiomatic.store.Objects',{}));a.set('filters',i);b.loadObjects(a)}else {a.set('objects',Ext.create('visiomatic.store.ExternalObjects',{}));a.set('objectUrl',!0);b.loadExternalCatalogObjects(a)}},loadExternalCatalogObjects:function(b){var d=this,f=d.getViewModel(),e=f.get('visiomatic'),c=b.get('objects'),a;a=e.getBounds();c.addFilter([{property:'cds_source',value:b.get('catalog').get('cds_source')},{property:'cds_fieldnames',value:b.get('catalog').get('cds_fieldnames')},{property:'lat',value:a.lat},{property:'lng',value:a.lng},{property:'dlat',value:a.dlat},{property:'dlng',value:a.dlng}]);c.load({callback:function(e,c,a){d.onLoadObjects(b,c,a)}})},loadObjects:function(a){var f=this,h=f.getViewModel(),g=h.get('visiomatic'),b=a.get('objects'),d=a.get('filters'),c=[],e;e=g.getBox();b.addFilter([{property:'product',value:a.get('catalog').get('id')},{property:'coordinates',value:JSON.stringify(e)}]);if(d!==null){Ext.each(d,function(b){c.push({property:b.get('fcd_property_name'),operator:b.get('fcd_operation'),value:b.get('fcd_value')})});b.addFilter(c)}b.load({callback:function(d,c,b){f.onLoadObjects(a,c,b)}})},onLoadObjects:function(a,c,g){var i=this,j=i.getViewModel(),h=j.get('visiomatic'),b=a.get('objects'),d,e;a.set('count',b.count());if(!g){var f=c.error.statusText;if(c.error.status==0){f='Communication Failure or Time out'}d=Ext.String.format('Sorry, there was a server error, and this operation can not be performed.
    Error: {0} - {1}',c.error.status,f);a.set('status','error');a.set('status_message',d);console.log('Server Side ERROR: %o - %o',c.error.status,c.error.statusText)}else {if(b.count()>0){if(b.totalCount>b.pageSize){e=b.totalCount-b.pageSize;d=Ext.String.format('The query returned more objects than the limit.
    {0} objects are not being displayed.
    Limit: {1}
    Query returned: {2}
    ',e,b.pageSize,b.totalCount);a.set('total_count',b.totalCount);a.set('excess',e);a.set('status','alert');a.set('status_message',d)}else {a.set('status','ok')}}else {a.set('status','warning')}layers=h.overlayCatalog(a.get('name'),b,{color:a.get('color'),objectUrl:a.get('objectUrl'),pointType:a.get('pointType'),pointSize:a.get('pointSize')});a.set('layers',layers)}},onRemoveOverlay:function(i,f,h){var g=this,c=g.getViewModel(),e=c.getStore('overlays'),d=c.get('visiomatic'),b=e.getAt(f),a=b.get('layers');if(a!==null){d.showHideLayer(a,!1)}b.erase()},onChangeVisibility:function(i,e,g){var h=this,b=h.getViewModel(),d=b.getStore('overlays'),c=b.get('visiomatic'),f=d.getAt(e),a=f.get('layers');if(a!==null){c.showHideLayer(a,g)}},onClickBtnFilter:function(){var a=this,d=a.getViewModel(),c=a.lookup('CatalogsTree'),b=c.selection;if(b&&b.get('id')>0){a.winFilter=Ext.create('visiomatic.filter.FiltersWindow',{listeners:{scope:a,applyfilters:'onApplyFilters'}});a.winFilter.setCurrentCatalog(b);a.winFilter.show()}},onApplyFilters:function(a,d){var b=this,c=b.getViewModel();if(a.length>0){c.set('currentFilters',a)}}},0,0,0,0,['controller.catalogoverlay'],0,[visiomatic.catalog,'CatalogController'],0);Ext.cmd.derive('visiomatic.catalog.Submit',Ext.form.Panel,{initComponent:function(){var a=this;Ext.apply(this,{bodyPadding:5,layout:{type:'vbox',align:'stretch'},items:[{xtype:'fieldset',flex:1,border:!1,items:[{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'tbtext',html:'Color:',width:45},{xtype:'colorbutton',bind:'{currentColor}',width:55,margin:'0 20 0 5',tooltip:'Choose a color. Click on the color and then on ok.'}]},{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'combobox',labelWidth:45,flex:1,reference:'cmbPointType',fieldLabel:'Marker',displayField:'name',valueField:'name',queryMode:'local',store:{fields:['name'],data:[{'name':'circle'},{'name':'ellipse'},{'name':'square'},{'name':'triangle'}]},value:'circle'},{xtype:'numberfield',name:'pointsize',fieldLabel:'Size',labelWidth:40,width:100,bind:'{pointSize}',minValue:1,maxValue:10,step:0.2,margin:'0 0 0 5'}]},{xtype:'button',iconCls:'x-fa fa-filter',text:'Filters',tooltip:'Filters',handler:'onClickBtnFilter',reference:'btnFilter',width:100}]}],buttons:[{text:'Apply',handler:'onClickOverlay'}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['visiomatic-catalogs-submit'],['component','box','container','panel','form','visiomatic-catalogs-submit'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'visiomatic-catalogs-submit':!0},['widget.visiomatic-catalogs-submit'],0,[visiomatic.catalog,'Submit'],0);Ext.cmd.derive('visiomatic.catalog.OverlayGrid',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{hideHeaders:!0,viewConfig:{markDirty:!1,listeners:{scope:a,render:a.addTooltipToColumnName,destroy:function(a){delete a.tip}}},columns:[{text:'Visible',xtype:'checkcolumn',dataIndex:'visible',width:30,listeners:{checkchange:'onChangeVisibility'},align:'center'},{text:'Color',dataIndex:'color',width:30,align:'center',renderer:a.renderColumnColor},{text:'Name',dataIndex:'name',tdCls:'nameTdCls',flex:2,renderer:a.renderColumnName},{menuDisabled:!0,xtype:'actioncolumn',width:30,items:[{iconCls:'x-fa fa-trash-o color-overlay-grid-icon',tooltip:'Remove',handler:'onRemoveOverlay'}]}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},addTooltipToColumnName:function(a){var b=this;a.tip=Ext.create('Ext.tip.ToolTip',{target:a.getId(),delegate:a.itemSelector+' .nameTdCls',trackMouse:!0,listeners:{beforeshow:function updateTipBody(c){var d=c.target.component;var e=d.getRecord(c.triggerElement);c.update(b.getTooltipName(e))}}})},getTooltipName:function(a){var f=this,b=a.get('filters'),d,e,c;if(a.get('status')!=='error'){d=Ext.String.format('{0}
    Entries: {1}',a.get('name'),a.get('count'));if(b!==null&&b.length>0){c='
    Filters:
    ';Ext.each(b,function(b){e=Ext.String.format('{0} {1} {2}
    ',b.get('fcd_property_name'),b.get('operator_display_name'),b.get('fcd_value'));c+=e});d+=c}return d}else {return a.get('status_message')}},renderColumnName:function(a,d,b){var c=16;if(a.length>c){a=a.substr(0,c);a=a+'...'}if(b.get('status')!=='loading'&&b.get('status')!=='error'){return Ext.String.format('{0} ({1} entries)',a,b.get('count'))}else {return a}},renderColumnColor:function(a,c,b){switch(b.get('status')){case 'loading':a='';break;case 'ok':a=Ext.String.format('',a);break;case 'alert':msg=b.get('status_message');a='';c.tdAttr='data-qtip= "'+msg+'"';break;case 'warning':a='';break;case 'error':msg=b.get('status_message');a='';break;}return a}},0,['visiomatic-catalogs-overlays-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','visiomatic-catalogs-overlays-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'visiomatic-catalogs-overlays-grid':!0},['widget.visiomatic-catalogs-overlays-grid'],0,[visiomatic.catalog,'OverlayGrid'],0);Ext.cmd.derive('visiomatic.catalog.CatalogOverlayWindow',Ext.window.Window,{controller:'catalogoverlay',viewModel:'catalogoverlay',config:{visiomatic:null,dataset:null},initComponent:function(){var a=this;Ext.apply(this,{title:'Catalog Overlay',width:600,height:450,closeAction:'hide',layout:{type:'hbox',align:'stretch'},items:[{xtype:'panel',split:!0,flex:1,framed:!0,layout:{type:'vbox',align:'stretch'},items:[{xtype:'visiomatic-catalogs-tree',reference:'CatalogsTree',flex:1,bind:{store:'{catalogs}'},listeners:{select:'onSelectCatalog'}},{xtype:'visiomatic-catalogs-submit',height:150,bind:{disabled:'{!CatalogsTree.selection.leaf}'}}]},{xtype:'visiomatic-catalogs-overlays-grid',split:!0,framed:!0,flex:1,bind:{store:'{overlays}'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setVisiomatic:function(a){this.visiomatic=a;this.getViewModel().set('visiomatic',a)},setDataset:function(c){var a=this,d=a.getDataset(),b=!1;if(d!==null&&d.get('id')>0){if(d.get('id')===c.get('id')){b=!1}else {b=!0}}else {b=!0}if(b){a.dataset=c;a.getViewModel().set('dataset',c);a.fireEvent('changedataset',c,a)}}},0,['visiomatic-catalog-overlay'],['component','box','container','panel','window','visiomatic-catalog-overlay'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'visiomatic-catalog-overlay':!0},['widget.visiomatic-catalog-overlay'],0,[visiomatic.catalog,'CatalogOverlayWindow'],0);Ext.cmd.derive('visiomatic.download.FitsController',Ext.app.ViewController,{listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},onChangeLoadFits:function(b,c){var f=this,e=f.getView(),a=e.getViewModel(),d=a.getStore('fitsFiles');a.set('tag',c);a.set('tilename',b);d.filter([{property:'tilename',value:b},{property:'tag',value:c}])}},0,0,0,0,['controller.fits-files'],0,[visiomatic.download,'FitsController'],0);Ext.cmd.derive('visiomatic.model.FitsFiles',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/get_fits_by_tilename'},fields:[{name:'filename',type:'string','default':null,persist:!1},{name:'filter',type:'string','default':null,persist:!1},{name:'order',type:'int','default':null,persist:!1},{name:'file_source',type:'string','default':null,persist:!1}]},0,0,0,0,0,0,[visiomatic.model,'FitsFiles'],0);Ext.cmd.derive('visiomatic.store.FitsFiles',common.store.MyStore,{model:'visiomatic.model.FitsFiles',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/get_fits_by_tilename'},sorters:[{property:'order',direction:'ASC'},{property:'filename',direction:'ASC'}]},0,0,0,0,['store.fits-files'],0,[visiomatic.store,'FitsFiles'],0);Ext.cmd.derive('visiomatic.download.FitsModel',Ext.app.ViewModel,{stores:{fitsFiles:{type:'fits-files'}}},0,0,0,0,['viewmodel.fits-files'],0,[visiomatic.download,'FitsModel'],0);Ext.cmd.derive('visiomatic.download.DescutDownloadWindow',Ext.window.Window,{viewModel:'fits-files',controller:'fits-files',title:'Download',width:600,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'vbox',align:'stretch'},initComponent:function(){var a=this;Ext.apply(this,{layout:'fit',items:[{xtype:'gridpanel',scrollable:!0,bind:{store:'{fitsFiles}'},columns:[{text:'Filename',dataIndex:'filename',flex:1},{text:'Filter',dataIndex:'filter'},{text:'URL',dataIndex:'file_source',renderer:function(a,b,c){return ' '}}]}],buttons:[{xtype:'label',text:'Right click "Save link as" to download files',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadFits:function(a,b){var c=this;this.loadFits=a;c.fireEvent('changeLoadFits',a,b)}},0,['target-download-descut'],['component','box','container','panel','window','target-download-descut'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-descut':!0},['widget.target-download-descut'],0,[visiomatic.download,'DescutDownloadWindow'],0);Ext.cmd.derive('visiomatic.Visiomatic',Ext.panel.Panel,{controller:'visiomatic',viewModel:'visiomatic',height:'100%',width:'100%',libL:null,config:{map:null,mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!0},prefix:null,enableSidebar:!0,enableSmallCrosshair:!1,enableCatalogs:!1,availableCatalogs:['GALEX_AIS','2MASS','AllWISE','SDSS','PPMXL','Abell','NVSS','FIRST','GAIA_DR1'],enableMiniMap:!1,miniMapOptions:{position:'topright',width:128,height:128,zoomLevelOffset:-6,nativeCelsys:!0},miniMap:null,enableWcs:!0,wcsUnits:[{label:'RA, Dec (Deg)',units:'deg'},{label:'RA, Dec (HMS)',units:'HMS'}],enableScale:!0,image:null,imageLayer:null,imageOptions:{credentials:!0,center:!1,fov:!1,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'},radiusOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',dashArray:'5, 5, 1, 5',interactive:!1},catalogOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',interactive:!0,pointType:'circle',pointSize:0.001},crosshairOptions:{color:'#FF4500',weight:2,smoothFactor:1,centerPadding:0.001,size:0.003},release:null,tag:null,dataset:null,currentDataset:null,enableTools:!0,auxTools:[],enableLink:!0,enableShift:!0,ready:!1,lradius:null,lcrosshair:null,showCrosshair:!1,enableContextMenu:!1,mlocate:'',showComments:!1},_winCatalogOverlay:null,bind:{release:'{release}',tag:'{tag}',dataset:'{dataset}'},initComponent:function(){var a=this,e=window.location.host,b,d,c;if(window.L){a.libL=window.L}else {console.log('window.L ainda nao esta carregada, incluir no app.json a biblioteca Leaflet')}this.cmpVisiomatic=c=Ext.create('Ext.Component',{id:a.getMapContainer(),width:'100%',height:'100%',listeners:{deactivate:a.onDeactivate}});if(a.getEnableTools()){b=a.makeToolbar();tools=a.makeToolbarButtons();b.add(tools);a.tbar=b}Ext.apply(this,{items:[c]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},afterRender:function(){var a=this,c=a.libL,d=a.getMapContainer(),e=a.getMapOptions(),b;Ext.panel.Panel.prototype.afterRender.apply(this,arguments);b=c.map(d,e);if(a.getPrefix()){b.attributionControl.setPrefix(a.getPrefix())}c.control.reticle().addTo(b);b.on('dblclick',a.onDblClick,a);b.on('contextmenu',a.onContextMenuClick,a);b.on('layeradd',a.onLayerAdd,a);b.on('move',a.onMove,a);b.on('mousemove',a.onMouseMove,a);b.on('overlaycatalog',a.showCatalogOverlayWindow,a);b.on('mouseup',a.savePreferences,a);b.on('keypress',a.savePreferences,a);a.setMap(b);if(a.getEnableSidebar()){a.createSidebar()}if(a.getEnableWcs()){a.addWcsController()}if(a.getEnableScale()){a.addScaleController()}a.cmpMousePosition=a.makeMousePosition()},savePreferences:function(){var c=this,a=c.getImageLayer();var b={credentials:!0,channelLabelMatch:'[ugrizY]',mixingMode:a.iipMode,contrast:a.iipContrast,gamma:a.iipGamma,invertCMap:a.iipInvertCMap,colorSat:a.iipColorSat,quality:a.iipQuality};localStorage.removeItem('imageOptions');localStorage.setItem('imageOptions',JSON.stringify(b))},onResize:function(){Ext.panel.Panel.prototype.onResize.apply(this,arguments);var a=this.getMap();if(a){a.invalidateSize()}},onDeactivate:function(){console.log('onDeactivate');var a=this;if(a._winCatalogOverlay){a._winCatalogOverlay.close()}},getMapContainer:function(){return this.getId()+'-placeholder'},createSidebar:function(){var c=this,b=c.libL,f=c.getMap(),e=c.getAvailableCatalogs(),a,d=[];a=b.control.sidebar().addTo(f);b.control.iip.channel().addTo(a);b.control.iip.image().addTo(a);if(c.getEnableCatalogs()){Ext.Array.each(e,function(a){d.push(b.Catalog[a])});b.control.iip.catalog(d).addTo(a)}b.control.iip.region([]).addTo(a);b.control.iip.profile().addTo(a);b.control.iip.snapshot().addTo(a);a.addTabList()},createSmallCrosshair:function(){var b=this,a=b.getRaDec(),c={color:'#90FA3A',weight:1,opacity:0.8,smoothFactor:1,centerPadding:5.0E-4,size:0.0015};b.drawSmallCrosshair(a.ra,a.dec,c)},addWcsController:function(){var a=this,c=a.libL,d=a.getMap(),b=a.getWcsUnits();c.control.wcs({coordinates:b,position:'topright'}).addTo(d)},addScaleController:function(){var a=this,b=a.libL,c=a.getMap();b.control.scale.wcs({pixels:!1}).addTo(c)},setCurrentDataset:function(a){var b=this;b.currentDataset=a},setImage:function(e,d){var a=this,i=a.libL,j=a.getMap(),h=a.getMiniMap(),b=a.getImageLayer(),c=a.getImageOptions(),f,k,g;a.setReady(!1);if(a._winCatalogOverlay!==null){a._winCatalogOverlay.close();a._winCatalogOverlay=null}a.removeImageLayer();d=d||{};if(b){c={credentials:c.credentials,channelLabelMatch:'[ugrizY]',mixingMode:b.iipMode,contrast:b.iipContrast,gamma:b.iipGamma,invertCMap:b.iipInvertCMap,colorSat:b.iipColorSat,quality:b.iipQuality}}f=Ext.Object.merge(c,d);a.image=e;if(!b){b=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(b)}else {a.removeImageLayer();g=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(g)}if(a.getEnableMiniMap()){if(h){h.remove()}a.createMiniMap()}},createMiniMap:function(){var a=this,e=a.libL,h=a.getMap(),g=a.getMiniMapOptions(),f=a.getImageOptions(),d=a.getImage(),c,b;if(d){b=e.tileLayer.iip(d,{credentials:f.credentials,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'});c=e.control.extraMap(b,g).addTo(h);a.setMiniMap(c)}},setView:function(c,b,h,f){var a=this,g=a.libL,e=a.getMap(),d;if(a.isReady()){c=parseFloat(parseFloat(c).toFixed(5));b=parseFloat(parseFloat(b).toFixed(5));d=g.latLng(b,c);e.setView(d,e.options.crs.fovToZoom(e,h,d));if(a.getShowCrosshair()){if(!f){a.drawCrosshair(c,b)}}}},onLayerAdd:function(b){var a=this;if(b.layer.type==='tilelayer'){a.setReady(!0);a.fireEvent('changeimage',a)}},onDblClick:function(b){var a=this;a.fireEvent('dblclick',b,a)},onContextMenuClick:function(b){var a=this,c=a.getMap();if(!a.isObjectContextMenu){a.showContextMenuImage(b)}a.isObjectContextMenu=!1},removeImageLayer:function(){var b=this,a=b.getMap();if(a!==null){a.eachLayer(function(b){a.removeLayer(b)})}},getRaDec:function(){var c=this,d=c.libL,b=c.getMap(),e=b.options.crs,a=b.getCenter();return {'ra':parseFloat(a.lng),'dec':parseFloat(a.lat)}},getBounds:function(){var m=this,j=m.libL,c=m.getMap(),b=c.options.crs,k=b.forceNativeCelsys&&!this.options.nativeCelsys,e=k?b.celsysToEq(c.getCenter()):c.getCenter(),n=Math.abs(Math.cos(e.lat*Math.PI/180)),d=c.getPixelBounds(),f=c.getZoom(),a,g,l,i,h,o;a=k?[b.celsysToEq(c.unproject(d.min,f)),b.celsysToEq(c.unproject(j.point(d.min.x,d.max.y),f)),b.celsysToEq(c.unproject(d.max,f)),b.celsysToEq(c.unproject(libLpoint(d.max.x,d.min.y),f))]:[c.unproject(d.min,f),c.unproject(j.point(d.min.x,d.max.y),f),c.unproject(d.max,f),c.unproject(j.point(d.max.x,d.min.y),f)];g=parseFloat(e.lng.toFixed(6));l=parseFloat(e.lat.toFixed(6));i=(Math.max(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e))-Math.min(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e)))*n;h=Math.max(a[0].lat,a[1].lat,a[2].lat,a[3].lat)-Math.min(a[0].lat,a[1].lat,a[2].lat,a[3].lat);if(h<1.0E-4){h=1.0E-4}if(i<1.0E-4){i=1.0E-4}if(g>360){g=g-360}return {lat:parseFloat(l.toFixed(6)),lng:parseFloat(g.toFixed(6)),dlat:parseFloat(h.toFixed(6)),dlng:parseFloat(i.toFixed(6))}},getBox:function(){var h=this,e,d,b,c,a,g,f;bounding=h.getBounds();if(bounding.lng>360){bounding.lng=bounding.lng-360}d=parseFloat(bounding.lng+bounding.dlng/2).toFixed(6);b=parseFloat(bounding.lat+bounding.dlat/2).toFixed(6);c=parseFloat(bounding.lng-bounding.dlng/2).toFixed(6);a=parseFloat(bounding.lat-bounding.dlat/2).toFixed(6);g=[d,b];f=[c,a];e=[g,f];return e},getFov:function(){var e=this,a=e.getMap(),d=a.options.crs,c=a.getCenter(),b;b=d.zoomToFov(a,a.getZoom(),c);return b},onMove:function(){var a=this,b=a.getRaDec(),c=a.getFov();a.fireEvent('changeposition',b,c,a)},onMouseMove:function(b){var d=String(b.latlng.lng.toFixed(5)+', '+b.latlng.lat.toFixed(5)),a=this,c=a.getMap();this.cmpMousePosition.children[0].innerHTML='Mouse RA, Dec: '+d;a.currentPosition={radec:[b.latlng.lng.toFixed(5),b.latlng.lat.toFixed(5)],container:[b.containerPoint.x,b.containerPoint.y]};if(a.cropInit&&a.cropInit==a.cropEnd&&a.isCropping){if(a.cropRectangle){c.removeLayer(a.cropRectangle)}a.cropRectangle=a.drawRectangle(a.cropInit['radec'],a.currentPosition['radec'])}if(a.getEnableSmallCrosshair()){a.createSmallCrosshair()}},getLinkToPosition:function(){var b=this,e=b.getMap(),a=b.getRaDec(),c=b.getFov(),d;if(a.dec>0){d=a.ra.toFixed(5).replace('.',',')+'+'+a.dec.toFixed(5).replace('.',',')}else {d=a.ra.toFixed(5).replace('.',',')+a.dec.toFixed(5).replace('.',',')}if(c){c=c.toFixed(2).replace('.',',')}b.fireEvent('link',encodeURIComponent(d),c,a,b)},onShift:function(){this.fireEvent('shift',this.getRaDec(),this)},isReady:function(){return this.getReady()},panTo:function(a){var b=this.getMap();this.coordinatesToLatLng(a,function(c){if(c){b.panTo(c)}})},coordinatesToLatLng:function(a,b){visiomatic.Visiomatic.coordinatesToLatLng(a,b)},hmsToLatLng:function(a,b){visiomatic.Visiomatic.hmsToLatLng(a,b)},drawRadius:function(g,e,d,n,l){var a=this,b=a.libL,f=a.getMap(),j=f.options.crs,h=a.getRadiusOptions(),o=g+'_'+e,i,c,m;if(a.getLradius()){f.removeLayer(a.getLradius());a.setLradius(null)}m=Ext.Object.merge(h,l);if(n==='arcmin'){d=d/60}var k={type:'FeatureCollection',features:[{type:'Feature',id:o,properties:{},geometry:{type:'Point',coordinates:[g,e]}}]};c=b.geoJson(k,{coordsToLatLng:function(a){if(j.forceNativeCelsys){var c=j.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(a,c){i=Ext.Object.merge(h,{majAxis:d,minAxis:d,posAngle:90});return b.ellipse(b.latLng(e,g),i)}});a.setLradius(c);f.addLayer(c);return c},showHideRadius:function(d){var c=this,b=c.getMap(),a=c.getLradius();if(a!==null){if(d){b.addLayer(a)}else {b.removeLayer(a)}}},overlayCatalog:function(l,j,k){var c=this,b=c.libL,g=c.getMap(),h=g.options.crs,i=c.getCatalogOptions(),a,d,f,e;a=Ext.Object.merge(i,k);d={type:'FeatureCollection',features:[]};j.each(function(a){if(c.isInsideTile(a.get('_meta_ra'),a.get('_meta_dec'))){f={type:'Feature',id:a.get('_meta_id'),title:l,properties:a.data,is_system:a.get('_meta_is_system'),geometry:{type:'Point',coordinates:[a.get('_meta_ra'),a.get('_meta_dec')]}};d.features.push(f)}},c);e=b.geoJson(d,{coordsToLatLng:function(a){if(h.forceNativeCelsys){var c=h.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(e,d){if(e.is_system){if(e.properties._meta_radius){radius=e.properties._meta_radius/60;opts=c.getRadiusOptions()}}if(a.pointType==='ellipse'){var q=0.001,r=0.001,m=90;try{var o=e.properties._meta_a_image,p=e.properties._meta_b_image,f=e.properties._meta_theta_image;if(typeof o=='number'&&typeof p=='number'&&typeof f=='number'){q=o/3600;r=p/3600;m=f}}catch(x){}a.majAxis=q,a.minAxis=r,a.posAngle=m;return b.ellipse(d,a)}else {if(a.pointType==='square'){var w=[[d.lat-a.pointSize,d.lng-a.pointSize],[d.lat+a.pointSize,d.lng+a.pointSize]];var v=b.rectangle(w,a);return v}else {if(a.pointType==='triangle'){var h,i,g,n,s,t,u;h=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat-a.pointSize,d.lng+a.pointSize)];g=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];i=[b.latLng(d.lat-a.pointSize,d.lng+a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];s=b.polyline(h,a);u=b.polyline(g,a);t=b.polyline(i,a);n=new b.LayerGroup([s,u,t]);return n}else {a.majAxis=a.pointSize;a.minAxis=a.pointSize;a.posAngle=90;circle=b.ellipse(d,a);return circle}}}}}).bindPopup(c.createOverlayPopup).on('dblclick',function(){alert('TODO: OPEN IN EXPLORER!')}).on('contextmenu',c.onLayerContextMenu,c);g.addLayer(e);c.redraw();return e},redraw:function(){var d=this,c=d.getMap(),a=$(c.getContainer()),b=a.width();if(b>0){a.css({width:b+2});c.invalidateSize();a.css({width:'initial'})}},createOverlayPopup:function(i){var a=i.feature,h=a.properties,j=['_meta_mag_auto_g','_meta_mag_auto_r','_meta_mag_auto_i','_meta_mag_auto_z','_meta_mag_auto_y'],e=[],d=[],c=a.properties._meta_id,g=['RAJ2000','DEJ2000'],b=[],f;Ext.each(j,function(a){try{mag_name=a.slice(-1);if(mag_name=='y'){mag_name='Y'}mag_value=h[a];if(mag_value){mag_value=parseFloat(mag_value);tag=''+mag_name+': '+mag_value.toFixed(2)+'';e.push(tag)}}catch(k){}});if(a.properties._meta_photo_z){photoz=parseFloat(a.properties._meta_photo_z);d.push('photo-z: '+photoz.toFixed(2)+'')}if(a.properties._meta_is_system){c=''+a.properties._meta_id+''}else {if(a.properties._meta_catalog_class=='coadd_objects'){c=''+a.properties._meta_id+''}else {if(a.properties._meta_object_url){c=''+a.properties._meta_id+'';for(property in a.properties){if(!property.startsWith('_meta_')&&g.indexOf(property)==-1){b.push(property)}}if(b.length<=15){for(key in b.sort()){property=b[key];d.push(''+property+': '+a.properties[property]+'')}}}else {}}}ra=parseFloat(a.properties._meta_ra);dec=parseFloat(a.properties._meta_dec);f=''+a.title+'
    '+e.join('')+d.join('')+'
    ID: '+c+'
    RA, Dec (deg): '+ra.toFixed(5)+', '+dec.toFixed(5)+'
    ';return f},onDblClickOverlay:function(){console.log('onDblClickOverlay(%o)',arguments)},showHideLayer:function(a,c){var d=this,b=d.getMap();if(a!==null){if(c){b.addLayer(a)}else {b.removeLayer(a)}}},showHideComments:function(a,b){},onLayerContextMenu:function(a){var b=this;b.isObjectContextMenu=!0;if(a.target.targetPosition){b.showContextMenuImage(a)}else {if(a.target.targetObjet){a.layer={feature:a.target.targetObjet.feature}}b.showContextMenuObject(a)}},createCommentIcon:function(d,c){var b=this,e,a;a=b.markPosition(d,'mapmaker-comment comment-maker').on('contextmenu',b.onLayerContextMenu,b);if(c){c.commentMaker=a;a.targetObjet=c}else {a.targetPosition=d}a.getElement().style.display=b.getShowComments()?'':'none'},updateComment:function(b,a,c){},markPosition:function(i,g,e){var h=this,c=h.libL,j=h.getMap(),b,a,f,d;if(arguments.length==2){b=i;e=g;d=[12,25]}else {b=c.latLng(g,i);d=[8,44]}if(e){f=c.divIcon({className:'visiomatic-marker-position',iconAnchor:d,html:''});a=c.marker(b,{icon:f})}else {a=c.marker(b)}a.addTo(j);return a},setShowCrosshair:function(c){var b=this,d=b.getMap(),a=b.lcrosshair;b.showCrosshair=c;if(a!==null){if(c){d.addLayer(a)}else {d.removeLayer(a)}}},onToggleCrosshair:function(c,a,d){var b=this;if(d.pressed){b.drawCrosshair(c,a)}else {b.removeCrosshair(c,a)}},drawCrosshair:function(e,d,m){var c=this,a=c.libL,l=c.getMap(),o=c.getCrosshairOptions(),n=null,b,f,g,p,k,h,j,i;b=Ext.Object.merge({},o);if(m){b=Ext.Object.merge(b,m)}if(c.lcrosshair){if(l.hasLayer(c.lcrosshair)){l.removeLayer(c.lcrosshair);c.lsmallcrosshair=null}}p=a.latLng(d,e);f=b.centerPadding?b.centerPadding:0.001;g=b.size?b.size:0.005;k=[a.latLng(d+f,e),a.latLng(d+g,e)];h=[a.latLng(d-f,e),a.latLng(d-g,e)];j=[a.latLng(d,e+f),a.latLng(d,e+g)];i=[a.latLng(d,e-f),a.latLng(d,e-g)];k=a.polyline(k,b);h=a.polyline(h,b);j=a.polyline(j,b);i=a.polyline(i,b);n=new a.LayerGroup([k,h,j,i]);c.lcrosshair=n;if(c.getShowCrosshair()){l.addLayer(c.lcrosshair)}return c.lcrosshair},removeCrosshair:function(){var a=this,b=a.getMap();if(a.lcrosshair){if(b.hasLayer(a.lcrosshair)){b.removeLayer(a.lcrosshair);a.lsmallcrosshair=null}}},drawSmallCrosshair:function(d,c,e){var b=this,a=b.libL,h=b.getMap(),n=b.getCrosshairOptions(),p=null,m,f,g,o,l,i,k,j;m=Ext.Object.merge({},n);if(e){m=Ext.Object.merge(m,e)}if(b.lsmallcrosshair){if(h.hasLayer(b.lsmallcrosshair)){h.removeLayer(b.lsmallcrosshair);b.lsmallcrosshair=null}}o=a.latLng(c,d);f=0.005/h._zoom;g=0.01/h._zoom;l=[a.latLng(c+f,d),a.latLng(c+g,d)];i=[a.latLng(c-f,d),a.latLng(c-g,d)];k=[a.latLng(c,d+f),a.latLng(c,d+g)];j=[a.latLng(c,d-f),a.latLng(c,d-g)];l=a.polyline(l,e);i=a.polyline(i,e);k=a.polyline(k,e);j=a.polyline(j,e);layerSmall=new a.LayerGroup([l,i,k,j]);b.lsmallcrosshair=layerSmall;if(b.getEnableSmallCrosshair()&&e){h.addLayer(b.lsmallcrosshair)}return b.lsmallcrosshair},showCatalogOverlayWindow:function(){var b=this,c=b.getCurrentDataset(),a=b._winCatalogOverlay;if(c!==null&&c.get('id')>0){if(a!=null){a.show()}else {a=Ext.create('visiomatic.catalog.CatalogOverlayWindow',{visiomatic:b});b.add(a);a.show();b._winCatalogOverlay=a}b._winCatalogOverlay.setDataset(c)}else {console.log('Dataset nao foi definido, a funcao overlay precisa de um dataset.');return !1}},showDownloadWindow:function(){var d=this,a=d.getCurrentDataset(),c;if(a.get('tli_tilename')){c=a.get('tli_tilename');tag=a.get('release_name');var b=Ext.create('visiomatic.download.DescutDownloadWindow');b.loadFits(c,tag);b.show()}else {alert('File not found.')}},showContextMenuImage:function(b){var a=this,c=b.target,d={x:b.originalEvent.clientX,y:b.originalEvent.clientY};if(!a.getEnableContextMenu()){return}if(b.originalEvent.target.classList.contains('comment-maker')&&!c.targetPosition){return a.showContextMenuObject(b)}if(!this.contextMenuImage){this.contextMenuImage=new Ext.menu.Menu({items:[{id:'comment-position',text:'Comment Position',handler:function(c){a.fireEvent('imageMenuItemClick',a.contextMenuImage.target,a.getCurrentDataset())}}]})}c.latlng=b.latlng;a.contextMenuImage.target=c;a.contextMenuImage.showAt(d)},initCrop:function(){var a=this,b=a.getMap();b.on('mousedown',a.startCrop,a);a.isCropping=!0;b.dragging.removeHooks()},startCrop:function(){var a=this,b=a.getMap();a.cropInit=a.currentPosition;a.cropEnd=a.cropInit;b.off('mousedown',a.startCrop,a);b.on('mouseup',a.endCrop,a)},endCrop:function(c){var a=this,b=a.getMap();a.cropEnd=a.currentPosition;b.off('mouseup',a.endCrop,a);a.downloadCrop(a.cropInit,a.cropEnd);if(a.cropRectangle){b.removeLayer(a.cropRectangle)}a.cropInit=null;a.isCropping=!1;b.dragging.addHooks()},downloadCrop:function(d,e){var i=this,p=i.libL,h=i.getMap(),g=document.createElement('a'),a=i.getImageLayer();var o=h.getCenter(),j=h.getPixelBounds(),c=h.getZoom(),b;if(c>a.iipMaxZoom){b=Math.pow(2,c-a.iipMaxZoom);c=a.iipMaxZoom}else {b=1}var l=a.iipImageSize[c].x*b,m=a.iipImageSize[c].y*b,f=Math.abs(d.container[0]-e.container[0]),n=Math.abs(d.container[1]-e.container[1]);var k={x:j.min.x+Math.min(d.container[0],e.container[0]),y:j.min.y+Math.min(d.container[1],e.container[1])};g.href=a.getTileUrl({x:1,y:1}).replace(/JTL\=\d+\,\d+/g,'RGN='+k.x/l+','+k.y/m+','+f/l+','+n/m+'&WID='+(this._snapType===0?Math.floor(f/b):Math.floor(f/b/a.wcs.scale(c)))+'&CVT=jpeg');g.download=a._title+'_'+p.IIPUtils.latLngToHMSDMS(o).replace(/[\s\:\.]/g,'')+'.jpg';var q=Ext.create('visiomatic.crop.CropWindow',{image:g,height:n+100,width:f+100})},showContextMenuObject:function(a){var c,b=this,d={x:a.originalEvent.clientX,y:a.originalEvent.clientY};if(!b.getEnableContextMenu()){return}if(!this.contextMenuObject){this.contextMenuObject=new Ext.menu.Menu({items:[{id:'comment-object',text:'Comment Object',handler:function(c){b.fireEvent('objectMenuItemClick',a,this.feature)}}]})}c=b.contextMenuObject.items.get('comment-object');c.feature=a.layer?a.layer.feature:null;b.contextMenuObject.showAt(d)},drawRectangle:function(h,j,q){var f=this,a=f.libL,r=f.getMap(),e=h[0],c=h[1],d=j[0],b=j[1],l,g,k,i,p,m,n,o;pathOptions=Ext.Object.merge(f.getCrosshairOptions(),q);l=[a.latLng(c,d),a.latLng(c,e)];g=[a.latLng(b,d),a.latLng(b,e)];k=[a.latLng(c,e),a.latLng(b,e)];i=[a.latLng(c,d),a.latLng(b,d)];p=a.polyline(l,pathOptions);m=a.polyline(g,pathOptions);n=a.polyline(k,pathOptions);o=a.polyline(i,pathOptions);layer=new a.LayerGroup([p,m,n,o]);r.addLayer(layer);return layer},isInsideTile:function(d,b){var c=this,a=c.getCurrentDataset();if(a!=null&&a.get('id')>0){return a.isInsideTile(d,b)}else {return !0}},statics:{coordinatesToLatLng:function(a,c){var d,b=visiomatic.Visiomatic.strToSystem(a);a=a.trim().replace(/( )+/g,' ');d=a.split(',');if(b&&b.system=='latlng'){return c(b.value)}else {if(b&&b.system=='HMS'){return visiomatic.Visiomatic.hmsToLatLng(a,c)}}c(null)},hmsToLatLng:function(b,a){var c='http://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame/-oI/A?'+b;$.get(c,function(c){var d=visiomatic.Visiomatic.parseCoords(c,!0);if(a){a(d)}})},latLngToHMSDMS:function(f){var c=(f.lng+360)/360;c=(c-Math.floor(c))*24;var e=Math.floor(c),d=(c-e)*60,a=Math.floor(d),b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}var j=(e<10?'0':'')+e.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(3),h=Math.abs(f.lat),i=f.lat<0?'-':'+',g=Math.floor(h);d=(h-g)*60;a=Math.floor(d);b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}return j+' '+i+(g<10?'0':'')+g.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(2)},strToSystem:function(a){var b;if(a){a=a.trim().replace(/( )+/g,' ');b=a.split(',');if(b.length==2&&a.split(':').length==1){return {value:{lng:Number(b[0]),lat:Number(b[1])},system:'latlng'}}b=a.split(' ');if(b.length==2&&a.split(':').length==5){return {value:a,system:'HMS'}}}return null},parseCoords:function(b){var a=/J\s(\d+\.?\d*)\s*,?\s*\+?(-?\d+\.?\d*)/g.exec(b);if(a&&a.length>=3){return L.latLng(Number(a[2]),Number(a[1]))}return null}}},0,['visiomatic'],['component','box','container','panel','visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0},['widget.visiomatic'],[['interface',visiomatic.Interface]],[visiomatic,'Visiomatic'],0);Ext.cmd.derive('visiomatic.crop.CropWindow',Ext.window.Window,{title:'Crop',width:400,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'hbox'},initComponent:function(){var a=this,b=a.image;Ext.apply(this,{layout:'ux.center',items:[{xtype:'image',src:b.href,alt:b.download,height:a.height-100,width:a.width-100}],buttons:[{xtype:'label',text:'Right click "Save image as" to download the image',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadImage:function(a){var b=this;this.image=a}},0,['target-download-crop'],['component','box','container','panel','window','target-download-crop'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-crop':!0},['widget.target-download-crop'],0,[visiomatic.crop,'CropWindow'],0);Ext.cmd.derive('Sky.Application',Ext.app.Application,{name:'Sky',stores:[],defaultToken:'home',init:function(a){var b=this;Ext.enableAriaButtons=!1;Ext.create('common.statistics.Events').init();Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(b){var c=JSON.parse(b.responseText);if(window.ga){ga('set','userId',c.id)}},failure:function(f,g){var e=window.location.protocol,d=window.location.pathname,c=window.location.host,b;b=Ext.String.format('{0}//{1}/dri/api/api-auth/login/?next={2}',e,c,d);window.location.assign(b)}})},launch:function(){},onAppUpdate:function(){}},0,0,0,0,0,0,[Sky,'Application'],0);Ext.cmd.derive('Sky.model.Dataset',common.model.Dataset,{proxy:{type:'django',url:'/dri/api/dataset/',reader:{type:'json'}}},0,0,0,0,0,0,[Sky.model,'Dataset'],0);Ext.cmd.derive('Sky.model.Release',common.model.Release,{},0,0,0,0,0,0,[Sky.model,'Release'],0);Ext.cmd.derive('Sky.model.Tag',common.model.Tag,{},0,0,0,0,0,0,[Sky.model,'Tag'],0);Ext.cmd.derive('Sky.store.Datasets',common.store.Datasets,{autoLoad:!1},0,0,0,0,0,0,[Sky.store,'Datasets'],0);Ext.cmd.derive('Sky.store.Footprints',common.store.Footprints,{autoLoad:!1},0,0,0,0,0,0,[Sky.store,'Footprints'],0);Ext.cmd.derive('Sky.store.Releases',common.store.Releases,{sorters:[{property:'rls_date',direction:'DESC'},{property:'rls_display_name',direction:'ASC'}]},0,0,0,0,0,0,[Sky.store,'Releases'],0);Ext.cmd.derive('Sky.store.Surveys',common.store.Surveys,{},0,0,0,0,0,0,[Sky.store,'Surveys'],0);Ext.cmd.derive('Sky.store.Tags',common.store.Tags,{},0,0,0,0,0,0,[Sky.store,'Tags'],0);Ext.cmd.derive('Sky.view.dataset.Compare',visiomatic.Visiomatic,{config:{splited:0,originalDataset:null,compareDataset:null},bind:{originalDataset:'{currentDataset}'},mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!1},initComponent:function(){var a=this;Ext.apply(this,{enableTools:!1,listeners:{changeimage:'onCompareChangeImage'}});visiomatic.Visiomatic.prototype.initComponent.apply(this,arguments)},divide:function(b){var a=this;if(a.getSplited()===0){a.setWidth(b);a.setSplited(b)}},setCompareDataset:function(a){var b=this,c;b.compareDataset=a;c=a.get('release_display_name')+' - '+a.get('tag_display_name')+' - '+a.get('tli_tilename');b.setTitle(c);b.changeImage(a)},changeImage:function(c){var b=this,a=c.get('image_src_ptif');if(a!=''){b.setImage(a)}else {b.removeImageLayer()}}},0,['sky-compare'],['component','box','container','panel','visiomatic','sky-compare'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0,'sky-compare':!0},['widget.sky-compare'],0,[Sky.view.dataset,'Compare'],0);Ext.cmd.derive('Sky.view.dataset.Visiomatic',visiomatic.Visiomatic,{bind:{currentDataset:'{currentDataset}'},initComponent:function(){var a=this;Ext.apply(this,{enableTools:!1,showCrosshair:!1,enableContextMenu:!1,enableMiniMap:!0});visiomatic.Visiomatic.prototype.initComponent.apply(this,arguments)},setCurrentDataset:function(a){var c=this,b;(arguments.callee.$previous||visiomatic.Visiomatic.prototype.setCurrentDataset).apply(this,arguments);b=a.get('release_display_name')+' - '+a.get('tag_display_name')+' - '+a.get('tli_tilename');c.setTitle(b)}},0,['sky-visiomatic'],['component','box','container','panel','visiomatic','sky-visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0,'sky-visiomatic':!0},['widget.sky-visiomatic'],0,[Sky.view.dataset,'Visiomatic'],0);Ext.cmd.derive('Sky.view.dataset.DatasetController',Ext.app.ViewController,{listen:{component:{'dataset':{loadpanel:'onLoadPanel',updatePanel:'onUpdatePanel',updatePosition:'changeImage',compare:'onCompareImages'},'sky-visiomatic':{dblclick:'onDblClickVisiomatic',changeimage:'onChangeImage',link:'onGetLink',changeposition:'onChangePosition'},'sky-compare':{close:'onCloseCompare'}},store:{'#compare':{load:'onLoadDatasetInOtherReleases'}}},winGetLink:null,lMarker:null,onLoadPanel:function(a){var b=this;b.loadData(a)},onUpdatePanel:function(a){var b=this;b.loadData(a)},loadData:function(c){var d=this,b=d.getViewModel(),a=b.get('datasets');a.filter([{property:'id',value:c}]);a.load({scope:this,callback:function(a){if(a.length==1){b.set('currentDataset',a[0]);this.afterLoad()}}})},afterLoad:function(){var a=this,c=a.getView(),d=a.getViewModel(),b=d.get('currentDataset');c.setLoading(!1);a.changeImage(b)},changeImage:function(){var a=this,e=a.getViewModel(),b=a.lookupReference('visiomatic'),c=e.get('currentDataset'),d=c.get('image_src_ptif');if(d!==''){b.setImage(d)}else {b.removeImageLayer()}a.clearComparePanel();a.getDatasetInOtherReleases(c)},onChangeImage:function(){var c=this,b=c.getView(),a=b.getRadec(),e=b.getFov(),d=c.lookupReference('visiomatic');d.setView(a.ra,a.dec,e);if(b.getPinned()){c.lMarker=d.markPosition(a.ra,a.dec,'x-fa fa-map-marker fa-2x')}},onChangePosition:function(b,f){var d=this,e=d.getView(),a=d.lookupReference('compare'),c=e.down('#btnMagnetic');if(a.isVisible()&&a.isReady()){if(c&&c.checked){a.setView(b.ra,b.dec,f)}}},onDblClickVisiomatic:function(){this.toAladin(!0)},onShift:function(){this.toAladin(!0)},onGetLink:function(c,f){var b=this,h=b.getViewModel(),d=h.get('currentDataset'),g=window.location.href,e=g.split('/#')[0],a;if(f){a=Ext.String.format('{0}/#dataset/{1}/{2}/{3}',e,d.get('id'),c,f)}else {a=Ext.String.format('{0}/#dataset/{1}/{2}',e,d.get('id'),c)}b.winGetLink=Ext.create('common.link.LinkPrompt',{link:a});b.winGetLink.show()},toAladin:function(h){var b=this,k=b.getViewModel(),i=k.get('currentDataset'),j=i.get('release'),f=b.lookupReference('visiomatic'),d=f.getFov(),a=f.getRaDec(),g,e,c;if(b.winGetLink!=null){b.winGetLink.close();b.winGetLink=null}if(a.ra<0){a.ra=360+a.ra}if(a.dec>0){c=a.ra.toFixed(5).replace('.',',')+'+'+a.dec.toFixed(5).replace('.',',')}else {c=a.ra.toFixed(5).replace('.',',')+a.dec.toFixed(5).replace('.',',')}e=encodeURIComponent(c);d=d.toFixed(2).replace('.',',');g='sky/'+j+'/'+e+'/'+d;if(h){b.getView().txtCoordinateSearch.setValue('')}b.redirectTo(g)},getDatasetInOtherReleases:function(b){var a=this,c=a.getView();vm=a.getViewModel(),store=vm.getStore('compare');c.clearCompareOptions();store.clearFilter(!0);store.removeAll(!0);store.filter([{'property':'tli_tilename','value':b.get('tli_tilename')}])},onResize:function(){},onLoadDatasetInOtherReleases:function(a){var c=this,b=c.getView();b.setDatasets(a)},onCompareImages:function(d){var b=this,c=b.lookupReference('visiomatic'),a=b.lookupReference('compare'),e=c.getWidth()/2;a.setVisible(!0);a.divide(e);a.setCompareDataset(d)},onCompareChangeImage:function(){var c=this,a=c.lookupReference('visiomatic'),d=c.lookupReference('compare'),b=a.getRaDec(),e=a.getFov();d.setView(b.ra,b.dec,e)},onCloseCompare:function(){var a=this,b=a.getView(),c=a.lookupReference('visiomatic');b.updateCompareOptions()},clearComparePanel:function(){var b=this,a=b.lookupReference('compare');if(a.isVisible()){a.close()}},showHideMarker:function(d,c){var a=this,b=a.lookupReference('visiomatic');b.showHideLayer(a.lMarker,c)},onCenterTile:function(){var a=this,e=a.getViewModel(),b=e.get('currentDataset'),f=a.getView(),d=2,c=a.lookupReference('visiomatic');c.setView(b.get('tli_ra'),b.get('tli_dec'),d)},showHideComments:function(f,d){var a=this,b=a.lookupReference('visiomatic'),e=a.getViewModel(),c=e.get('overlayMembers');b.showHideComments(c,d)},gotoPosition:function(b){var a=this.lookupReference('visiomatic');a.coordinatesToLatLng(b,function(c){if(a.isInsideTile(c.lng,c.lat)){a.panTo(b)}else {Ext.MessageBox.alert('Alert','There is no DES tile in the current release on this position.')}})},showHideCrop:function(d,c){var b=this,a=b.lookupReference('visiomatic');Ext.GlobalEvents.fireEvent('eventregister','SkyViewer - crop');a.initCrop()},onSave:function(){var b=this,a=b.lookupReference('visiomatic');Ext.GlobalEvents.fireEvent('eventregister','SkyViewer - save_fits');a.showDownloadWindow()},onObjectMenuItemClickVisiomatic:function(h,a){var j=this,i=j.getView(),d=i.getViewModel(),g=d.get('currentRecord'),e=d.get('currentCatalog'),b,c;if(a&&a.properties){c=a.properties._meta_catalog_id;b=a.id}else {c=e.get('id');b=g.get('_meta_id')}if(b>0){var f=Ext.create('Ext.window.Window',{title:'Comments',iconCls:'x-fa fa-comments',layout:'fit',closeAction:'destroy',constrainHeader:!0,width:500,height:300,autoShow:!0,onEsc:Ext.emptyFn,items:[{xtype:'comments-object',reference:'',listeners:{scope:this,changecomments:'onChangeComments'}}]});f.down('comments-object').getController().loadComments(c,b,h.latlng,a)}},onImageMenuItemClickVisiomatic:function(d,c){var a=d.latlng;var b=Ext.create('Ext.window.Window',{title:'Position Comments',iconCls:'x-fa fa-comments',layout:'fit',closeAction:'destroy',constrainHeader:!0,width:500,height:300,autoShow:!0,onEsc:Ext.emptyFn,items:[{xtype:'comments-position',listeners:{scope:this,changecomments:'onChangeComments'}}]});b.down('comments-position').getController().loadComments(a.lat,a.lng,c)},onChangeComments:function(b){var a=this,f=a.getView(),d=a.lookupReference('visiomatic'),c=a.getViewModel(),e=c.get('overlayMembers');if(b&&b.comment){}}},0,0,0,0,['controller.dataset'],0,[Sky.view.dataset,'DatasetController'],0);Ext.cmd.derive('Sky.view.dataset.DatasetModel',Ext.app.ViewModel,{data:{dataset:null,disablecompare:!0},links:{currentRelease:{type:'Sky.model.Release',create:!0},currentTag:{type:'Sky.model.Tag',create:!0},currentDataset:{type:'Sky.model.Dataset',create:!0}},stores:{datasets:{type:'datasets'},compare:{type:'datasets',storeId:'compare',autoLoad:!1}}},0,0,0,0,['viewmodel.dataset'],0,[Sky.view.dataset,'DatasetModel'],0);Ext.cmd.derive('Sky.view.dataset.Dataset',Ext.panel.Panel,{controller:'dataset',viewModel:'dataset',config:{dataset:null,coordinate:null,fov:null,radec:null,defaultFov:2.43,defaultMinFov:0.6,datasets:null,currentDataset:null,pinned:!1},bind:{currentDataset:'{currentDataset}'},initComponent:function(){var a=this;Ext.apply(this,{layout:'border',items:[{xtype:'sky-visiomatic',reference:'visiomatic',region:'center',split:!0,listeners:{objectMenuItemClick:'onObjectMenuItemClickVisiomatic',imageMenuItemClick:'onImageMenuItemClickVisiomatic'}},{xtype:'sky-compare',reference:'compare',region:'east',width:400,split:!0,hidden:!0,closable:!0,closeAction:'hide'}],dockedItems:[{xtype:'toolbar',dock:'top',items:[{xtype:'button',tooltip:'Switch between Visiomatic / Aladdin.',iconCls:'x-fa fa-exchange',handler:'onShift'},{xtype:'button',tooltip:'Get link',iconCls:'x-fa fa-link',scope:a,handler:a.getLinkToPosition},{xtype:'button',itemId:'CompareDataset',tooltip:'Compare images between releases.',iconCls:'x-fa fa-object-ungroup ',text:'Compare',scope:a,handler:'compareImages',bind:{disabled:'{disablecompare}'},menu:[]},{xtype:'button',iconCls:'x-fa fa-map-marker',tooltip:'Show/Hide Pin',enableToggle:!0,pressed:!0,toggleHandler:'showHideMarker'},{xtype:'button',iconCls:'x-fa fa-arrows',tooltip:'Center Tile',handler:'onCenterTile',bind:{disabled:'{is_empty}'}},{xtype:'button',iconCls:'x-fa fa-comments',tooltip:'Show/Hide Comments',enableToggle:!0,pressed:!0,toggleHandler:'showHideComments',disabled:!0,hidden:!0},{xtype:'button',reference:'btnCrop',iconCls:'x-fa fa-crop',enableToggle:!0,toggleHandler:'showHideCrop',tooltip:'Crop',bind:{disabled:'{is_empty}'},pressed:!1},{xtype:'button',reference:'btnSave',iconCls:'x-fa fa-download',handler:'onSave',tooltip:'Download',bind:{disabled:'{is_empty}'}}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},loadPanel:function(g){var a=this,b=a.getDataset(),c=a.getCoordinate(),d=a.getFov(),e=this.getViewModel(),h,f;if(b>0){e.set('dataset',b);a.setParameters(c,d);a.setLoading(!0);this.fireEvent('loadpanel',b,this)}},updatePanel:function(c){var b=this,g=b.getDataset(),a=c[1],d=c[2],f=c[3],h=this.getViewModel(),e=b.down('sky-visiomatic');b.setParameters(d,f);e.removeImageLayer();if(a>0&&a!=g){b.setDataset(a);h.set('dataset',a);this.fireEvent('updatePanel',a,this)}else {this.fireEvent('updatePosition',a,this)}},setParameters:function(b,c){var a=this,d,e;b=decodeURIComponent(b);if(b.includes('+')){d=b.split('+')}else {d=b.split('-');d[1]='-'+d[1]}e={ra:parseFloat(d[0].replace(',','.')),dec:parseFloat(d[1].replace(',','.'))};a.setRadec(e);if(c==-1){a.setFov(a.getDefaultFov());a.setPinned(!1)}else {if(c==0){a.setFov(0.05);a.setPinned(!0)}else {c=parseFloat(c.replace(',','.'));if(c>a.getDefaultMinFov()){c=a.getDefaultMinFov()}a.setFov(c);a.setPinned(!1)}}b=e.ra+', '+e.dec;a.setCoordinate(b)},setDatasets:function(b){var a=this;a.datasets=b;a.updateCompareOptions()},clearCompareOptions:function(){var a=this,c=a.getViewModel(),b=a.down('#CompareDataset');b.getMenu().removeAll();c.set('disablecompare',!0)},updateCompareOptions:function(){var a=this,g=a.getViewModel(),c=a.getDatasets(),f=a.down('#CompareDataset'),e=a.getCurrentDataset(),b=[],d;a.clearCompareOptions();if(!e){return !1}if(c.count()>0){c.each(function(c){d={xtype:'menucheckitem',text:c.get('release_display_name')+' - '+c.get('tag_display_name'),group:'compareDatasets',dataset:c,scope:a,checkHandler:a.compareImages};b.push(d)});b.push('-');b.push({xtype:'menucheckitem',text:'Magnetic',iconCls:'x-fa fa-magnet',itemId:'btnMagnetic',checked:!0});f.getMenu().add(b);g.set('disablecompare',!1)}},compareImages:function(a){if(a.dataset){this.fireEvent('compare',a.dataset,this)}},getLinkToPosition:function(){var c=this,b=c.getReferences(),a=b.visiomatic;a.getLinkToPosition()}},0,['dataset'],['component','box','container','panel','dataset'],{'component':!0,'box':!0,'container':!0,'panel':!0,'dataset':!0},['widget.dataset'],0,[Sky.view.dataset,'Dataset'],0);Ext.cmd.derive('Sky.view.footprint.Aladin',aladin.Aladin,{initComponent:function(){var a=this;Ext.apply(this,{hideFootprint:!1,gotoSetPosition:!1,enableShift:!0});aladin.Aladin.prototype.initComponent.apply(this,arguments)}},0,['footprint-aladin'],['component','box','container','panel','aladin','footprint-aladin'],{'component':!0,'box':!0,'container':!0,'panel':!0,'aladin':!0,'footprint-aladin':!0},['widget.footprint-aladin'],0,[Sky.view.footprint,'Aladin'],0);Ext.cmd.derive('Sky.view.footprint.FootprintController',Ext.app.ViewController,{listen:{component:{'footprint':{loadpanel:'onLoadPanel',updatepanel:'onUpdatePanel',beforedeactivate:'onBeforeDeactivate'},'footprint-aladin':{ondblclick:'onDblClickAladin',shift:'onShift'}},store:{'#Releases':{load:'onLoadReleases'},'#Tags':{load:'onLoadTags'},'datasets':{load:'onLoadDatasets'}}},winGetLink:null,onLoadPanel:function(a){var b=this;b.loadReleaseById(a)},onUpdatePanel:function(c){console.log();var a=this,b=a.lookupReference('aladin');if(b.aladinIsReady()){b.removeLayers()}a.onChangeRelease();a.loadReleaseById(c)},onChangeRelease:function(){var f=this,a=f.getViewModel(),e=a.getStore('releases'),c=a.getStore('surveys'),b=a.getStore('datasets'),d=a.getStore('tiles');e.clearFilter(!0);c.removeAll();c.clearFilter(!0);b.removeAll();b.clearFilter(!0);d.removeAll();d.clearFilter(!0)},loadReleaseById:function(){var d=this,b=d.getViewModel(),a=b.get('release'),c=b.getStore('releases');if(a>0){c.filter([{property:'id',value:parseInt(a)}])}},onLoadReleases:function(b){var c=this,d=c.getViewModel(),a;if(b.count()==1){a=b.first();d.set('currentRelease',a);c.loadReleaseData(a)}},loadReleaseData:function(a){if(a.get('id')>0){this.loadSurveys(a);this.loadTags(a)}},onLoadDatasets:function(b){var c=this,d=c.getViewModel(),a;if(b.count()===1){a=b.first();d.set('currentDataset',a)}},loadTags:function(a){var c=this,d=c.getViewModel(),b=d.getStore('tags');if(a.get('id')>0){b.filter([{property:'tag_release',value:parseInt(a.get('id'))}])}},onLoadTags:function(a){var b=this;if(a.count()>0){b.loadTiles()}},loadTiles:function(){var e=this,b=e.getViewModel(),d=b.getStore('tags'),c=b.getStore('tiles'),a=[];d.each(function(b){a.push(b.get('id'))},this);c.filter([{property:'tag',operator:'in',value:a}])},loadSurveys:function(a){var c=this,d=c.getViewModel(),b=d.getStore('surveys');b.filter([{property:'srv_project',value:'DES'},{property:'srv_release',value:a.get('id')}])},onDblClickAladin:function(a){this.getView().fireEvent('ondblclick');this.toVisiomatic(a,!1,!0)},onShift:function(a){this.toVisiomatic(a,!1)},onClickGoToImage:function(){var b=this,a=b.lookupReference('aladin');this.toVisiomatic(a.getRaDec(),!0)},toVisiomatic:function(g,i,k){var f=this,m=f.getViewModel(),p=f.getView(),l=m.getStore('tiles'),j=f.lookupReference('aladin'),e=j.getFov(),h,d,a,c,b,n,o;a=g[0].toFixed(5);c=g[1].toFixed(5);e=e.toFixed(2).replace('.',',');d=l.filterByRaDec(a,c);if(d){if(a>0){b=a.replace('.',',')+'+'+c.replace('.',',')}else {b=a.replace('.',',')+c.replace('.',',')}if(i){e=-1;a=''+d.get('tli_ra');c=''+d.get('tli_dec');b=a.replace('.',',')+'+'+c.replace('.',',')}b=encodeURIComponent(b);if(k){e=0}h='dataset/'+d.get('id')+'/'+b+'/'+e;f.redirectTo(h,!0)}},onAladinGoToPosition:function(a,c){var b=this;b.toVisiomatic(a)},gotoPosition:function(c,b){var d=this,a=d.lookupReference('aladin');a.goToPosition(c);if(b){a.setFov(b)}},getLink:function(){var a=this,e=a.lookupReference('aladin'),d=e.getFov(),f=e.getRaDec(),g=a.getView().getRelease(),i=window.location.href,h=i.split('/#')[0],j,b,c;b=f[0].toFixed(5);c=f[1].toFixed(5);d=d.toFixed(2).replace('.',',');if(b>0){coordinate=b.replace('.',',')+'+'+c.replace('.',',')}else {coordinate=b.replace('.',',')+c.replace('.',',')}coordinate=encodeURIComponent(coordinate);link=Ext.String.format('{0}/#sky/{1}/{2}/{3}',h,g,coordinate,d);a.winGetLink=Ext.create('common.link.LinkPrompt',{link:link});a.winGetLink.show()},onBeforeDeactivate:function(){var a=this;if(a.winGetLink!==null){a.winGetLink.close();a.winGetLink=null}}},0,0,0,0,['controller.footprint'],0,[Sky.view.footprint,'FootprintController'],0);Ext.cmd.derive('Sky.view.footprint.FootprintModel',Ext.app.ViewModel,{data:{release:null},links:{currentRelease:{type:'Sky.model.Release',create:!0},currentTag:{type:'Sky.model.Tag',create:!0},currentDataset:{type:'Sky.model.Dataset',create:!0}},stores:{releases:{type:'releases',storeId:'Releases',autoLoad:!1,remoteFilter:!0},surveys:{type:'surveys'},tags:{type:'tags',storeId:'Tags'},datasets:{type:'datasets'},tiles:{type:'footprints',pageSize:0},tagsbyrelease:{type:'tags'}}},0,0,0,0,['viewmodel.footprint'],0,[Sky.view.footprint,'FootprintModel'],0);Ext.cmd.derive('Sky.view.footprint.Footprint',Ext.panel.Panel,{controller:'footprint',viewModel:'footprint',config:{release:null,coordinate:null,fov:null,radec:null,defaultMinFov:180},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'footprint-aladin',reference:'aladin',bind:{storeSurveys:'{surveys}',storeTags:'{tags}',storeTiles:'{tiles}'},listeners:{ondblclick:'onDblClickAladin',gotoposition:'onAladinGoToPosition'},auxTools:[{xtype:'button',iconCls:'x-fa fa-link',tooltip:'Get Link',handler:'getLink'},{xtype:'button',iconCls:'x-fa fa-arrow-right ',tooltip:'Go to Image Viewer',handler:'onClickGoToImage'}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},loadPanel:function(b){var c=this,a=c.getRelease(),d=b[2],e=b[3],f=this.getViewModel();if(a>0){f.set('release',a);this.fireEvent('loadpanel',a,this)}c.setParameters(d,e)},updatePanel:function(b){var c=this,e=c.getRelease(),a=b[1],d=b[2],f=b[3],g=this.getViewModel();if(a>0&&a!=e){c.setRelease(a);g.set('release',a);this.fireEvent('updatePanel',a,this)}else {c.setParameters(d,f)}},setParameters:function(d,a){var b=this,e=b.lookup('aladin'),c,f;d=decodeURIComponent(d);if(d){if(d.includes('+')){c=d.split('+')}else {c=d.split('-');c[1]='-'+c[1]}f={ra:parseFloat(c[0].replace(',','.')),dec:parseFloat(c[1].replace(',','.'))};b.setRadec(f);strcoordinate=f.ra+', '+f.dec;b.setCoordinate(strcoordinate);if(e.aladinIsReady()){e.goToPosition(strcoordinate)}}if(a){if(a==-1){b.setFov(b.getDefaultFov())}else {a=parseFloat(a.replace(',','.'));if(a>b.getDefaultMinFov()){a=b.getDefaultMinFov()}b.setFov(a)}if(e.aladinIsReady()){e.setFov(a)}}}},0,['footprint'],['component','box','container','panel','footprint'],{'component':!0,'box':!0,'container':!0,'panel':!0,'footprint':!0},['widget.footprint'],0,[Sky.view.footprint,'Footprint'],0);Ext.cmd.derive('Sky.view.home.HomeController',Ext.app.ViewController,{listen:{store:{'#releases':{load:'onLoadReleases'}}},onLoadReleases:function(a){var b=this;if(a.count()==1){b.onChooseRelease(a.first().get('id'))}},onRowDblClick:function(c,a){var b=this;b.onChooseRelease(a.get('id'))},onChooseRelease:function(b){var c=this,a;a='sky/'+b;c.redirectTo(a)},refreshAndClear:function(){var c=this,a=c.getReferences().txtSearch,b=c.getView().getStore();if(a.getValue()){a.setValue('')}else {b.clearFilter(!0);b.load()}},cancelFilter:function(a){a.getTrigger('clear').hide();this.refreshAndClear()},filterByname:function(a){var d=this,b=d.getView().getStore(),c=a.getValue();if(c.length>0){a.getTrigger('clear').show();b.addFilter([{property:'search',value:c}]);b.load()}else {a.getTrigger('clear').hide();d.cancelFilter(a)}},onActivate:function(){}},0,0,0,0,['controller.home'],0,[Sky.view.home,'HomeController'],0);Ext.cmd.derive('Sky.view.home.HomeModel',Ext.app.ViewModel,{stores:{releases:{type:'releases',remoteFilter:!0,storeId:'releases'}}},0,0,0,0,['viewmodel.home'],0,[Sky.view.home,'HomeModel'],0);Ext.cmd.derive('Sky.view.home.Home',Ext.grid.Panel,{title:'Releases',controller:'home',viewModel:'home',bind:{store:'{releases}'},initComponent:function(){var a=this;Ext.apply(this,{columns:[{text:'Name',dataIndex:'rls_display_name',flex:1,renderer:function(a,c,b){if(b.get('is_new')){return a+' New'}return a}},{xtype:'datecolumn',text:'Date',dataIndex:'rls_date',format:'Y-m-d',flex:1},{text:'Datasets',dataIndex:'tags_count',flex:1,sortable:!1},{text:'Tiles',dataIndex:'tiles_count',flex:1,sortable:!1}],dockedItems:[{xtype:'toolbar',dock:'top',items:[{xtype:'textfield',emptyText:'Search by name',reference:'txtSearch',width:250,triggers:{clear:{cls:'x-form-clear-trigger',handler:'cancelFilter',hidden:!0},search:{handler:'filterByname',cls:' x-form-search-trigger'}},listeners:{change:'filterByname',buffer:500}},{tooltip:'Refresh and Clear filters',iconCls:'x-fa fa-refresh',handler:'refreshAndClear'}]}]});Ext.GlobalEvents.fireEvent('eventregister','SkyViewer - initHome');Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},listeners:{rowdblclick:'onRowDblClick'},loadPanel:function(){this.fireEvent('loadpanel',this)},updatePanel:function(){this.fireEvent('updatepanel',this)}},0,['home'],['component','box','container','panel','tablepanel','gridpanel','grid','home'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'home':!0},['widget.home'],0,[Sky.view.home,'Home'],0);Ext.cmd.derive('Sky.view.main.MainController',Ext.app.ViewController,{routes:{'home':{action:'onHome'},'sky/:release':{action:'onSky'},'sky/:release/:coordinate/:fov':{action:'onSky'},'sky/:release/:coordinate':{action:'onSky'},'dataset/:dataset/:coordinate/:fov':{action:'onDataset'}},doSearch:function(e){var d=this,f=d.getReferences(),a=f.mainCardPanel,g=a.getLayout(),c=a.child("component[routeId='sky']"),b;d.setActivePanel(c);b=c.getController();b.gotoPosition(e,0.6)},changeCoordinateSystem:function(a){var i=this,e,b,c,h=i.getReferences(),g=h.mainCardPanel,f=g.getLayout(),j=f.getActiveItem().getController(),d=a.textfield.value;if(d){b=visiomatic.Visiomatic.strToSystem(d);c=a.name;if(b){if(b.name!=c){if(c=='HMS'){e=visiomatic.Visiomatic.latLngToHMSDMS(b.value);a.textfield.setValue(e)}else {if(c=='latlng'){if(visiomatic.processing){return}visiomatic.processing=!0;visiomatic.Visiomatic.hmsToLatLng(d,function(b){visiomatic.processing=!1;a.textfield.setValue(b.lng+', '+b.lat)})}}}}}},setActivePanel:function(e){var h=this,g=h.getReferences(),b=g.mainCardPanel,d=b.getLayout(),f=e.routeId,c=b.child('component[routeId='+f+']'),a=null;if(!c){a=b.add(e);a.loadPanel(arguments);d.setActiveItem(a)}else {a=c;a.updatePanel(arguments);d.setActiveItem(a)}},onHome:function(){var b=Ext.create('Sky.view.home.Home',{hideMode:'offsets',routeId:'home',layout:'fit'});var a=this.getView().down('dri-header-sky').getReferences();a.searchGlobal.hide();this.setActivePanel(b)},onSky:function(f,b,g){var a=this,e=Ext.create('Sky.view.footprint.Footprint',{hideMode:'offsets',routeId:'sky',layout:'fit',release:f,coordinate:b,foc:g,listeners:{ondblclick:function(){a.aladinDblClick=!0}}}),d=a.getView().down('dri-header-sky'),c=d.getReferences();c.searchGlobal.show();e.txtCoordinateSearch=c.txtCoordinateSearch;a.setActivePanel(e,f,b,g);d.getViewModel().set('name','Sky Viewer')},onDataset:function(e,b,f){var a=Ext.create('Sky.view.dataset.Dataset',{hideMode:'offsets',routeId:'tile',layout:'fit',dataset:e,coordinate:b,fov:f}),d=this.getView().down('dri-header-sky'),c=d.getReferences();c.searchGlobal.show();if(this.activePanel){a.showPin=this.activePanel.showPin}a.txtCoordinateSearch=c.txtCoordinateSearch;this.setActivePanel(a,e,b,f);d.getViewModel().set('name','Image Viewer')}},0,0,0,0,['controller.main'],0,[Sky.view.main,'MainController'],0);Ext.cmd.derive('Sky.view.main.MainModel',Ext.app.ViewModel,{data:{name:'Sky Viewer',internal_name:'sky_viewer',desPortalLogo:'resources/des-portal-logo.png',help_url:'dri/apps/home/help/help-sky-image-viewer/'}},0,0,0,0,['viewmodel.main'],0,[Sky.view.main,'MainModel'],0);Ext.cmd.derive('Sky.view.search.SearchResultGrid',Ext.grid.Panel,{controller:'search',initComponent:function(){var a=this;a.columns=[Ext.create('Ext.grid.RowNumberer'),{text:'Data Release ',dataIndex:'name',flex:1,renderer:function(c,b,a){return Ext.data.StoreManager.lookup('search-releases').getById(a.get('release')).get('rls_display_name')}},{text:'Field Name',dataIndex:'tag_display_name',flex:1,renderer:function(c,b,a){return Ext.data.StoreManager.lookup('search-tags').getById(a.get('tag')).get('tag_display_name')}},{text:'Sky Name',dataIndex:'tli_tilename',renderer:function(c,b,a){return a.getSky().get('tli_tilename')},flex:1}];Ext.grid.Panel.prototype.initComponent.apply(this,arguments)}},0,['tile-search-resultgrid'],['component','box','container','panel','tablepanel','gridpanel','grid','tile-search-resultgrid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'tile-search-resultgrid':!0},['widget.tile-search-resultgrid'],0,[Sky.view.search,'SearchResultGrid'],0);Ext.cmd.derive('Sky.view.search.SearchController',Ext.app.ViewController,{listen:{component:{'tile-search-field':{search:'onSearch'}},store:{'#search-tiles':{load:'onLoadSearch'}}},onSearch:function(a){this.search(a)},search:function(a){var b;this.checkStores();if(a.isValid()&&a.getValue()!=''){b=this.getSearchParams(a);if(b){this.loadSearch(b)}}},checkStores:function(){var c=this.getViewModel(),b=c.getStore('tags'),a=c.getStore('releases');if(!a.isLoaded()){a.load()}if(!b.isLoaded()){b.load()}},loadSearch:function(a){var c=this,d=c.getViewModel(),b=d.getStore('search');b.filter(a)},onLoadSearch:function(a){if(a.count()==1){this.onlySkyFound(a.first())}else {if(a.count()>1){this.manySkysFound(a)}else {this.noSkysFound()}}},manySkysFound:function(a){this.windowResults=this.createWindowResult();this.windowResults.show()},onlySkyFound:function(a){this.showSkyInSkyDetail(a.get('id'))},noSkysFound:function(){Ext.MessageBox.show({title:'Search',msg:'No matches found.',buttons:Ext.MessageBox.OK})},createWindowResult:function(){var b=this.getViewModel(),a=b.getStore('search');return Ext.create('Ext.window.Window',{title:'Search',closeAction:'destroy',width:600,height:400,modal:!0,constrainHeader:!0,layout:'fit',autoScroll:!0,items:[{xtype:'tile-search-resultgrid',store:a,listeners:{scope:this,rowdblclick:this.onDbClickResult}}]})},onDbClickResult:function(b,a){this.windowResults.close();this.showSkyInSkyDetail(a.get('id'))},showSkyInSkyDetail:function(b){var a='td/'+b;this.redirectTo(a)},checkSearchParams:function(a){if(a==''){return !0}if(a.search(',')!=-1){var d=a.split(',');if(d.length!=2){return 'More than one RA and Dec.'}var c=d[0].trim();if(/^(\d+(\.\d+)?)$/.test(c)){if(c<0||c>360){return 'RA must be between 0 and 360.'}}else {if(a.search(':')==-1){return 'RA use degrees or hh:mm:ss.'}}var b=d[1].trim();if(/^(\-?\d+(\.\d+)?)$/.test(b)){if(b<-90||b>90){return 'Dec must be between -90 and 90.'}}else {if(a.search(':')==-1){return 'Dec use degrees or dd:mm:ss.'}}if(!c&&!b){return 'RA and Dec coordinates must be separated by commas.
    eg. 300.8660,-50.8345 or HH:MM:SS,DD:MM:SS'}return !0}else {if(/^((DES|des|Des)[0-9]{4}(\+|-)[0-9]{4})$/.test(a)){return !0}else {return 'The value in this field is invalid'}}},getSearchParams:function(f){var d=f.getValue(),a=[],e=[],g,i,h,c,b;if(d.search(',')!=-1){a.type='coordinates';g=d.split(',');i=g[0].trim();h=g[1].trim();c=this.parseRa(i);b=this.parseDec(h);if(c.error){f.markInvalid(c.error);return !1}if(b.error){f.markInvalid(b.error);return !1}e.push(c.value);e.push(b.value);a.push({property:'position',value:e.join()});return a}else {if(/^((DES|des|Des)[0-9]{4}(\+|-)[0-9]{4})$/.test(d)){a.push({property:'tli_tilename',value:d});return a}}return !1},parseRa:function(b){var a={value:null,error:null};if(/^(\d+(\.\d+)?)$/.test(b)){if(b<0||b>360){a.error='RA must be between 0 and 360.';return a}a.value=b.trim()}else {if(b.search(':')!=-1){var c=this.sexagesimal2decimal(b.trim())*15;a.value=c}else {a.error='invalid value for RA.';return a}}return a},parseDec:function(b){var a={value:null,error:null};if(/^(\-?\d+(\.\d+)?)$/.test(b)){if(b<-90||b>90){a.error='Dec must be between -90 and 90.';return a}a.value=b.trim()}else {if(b.search(':')!=-1){var c=this.sexagesimal2decimal(b.trim());a.value=c}else {a.error='invalid value for Dec.';return a}}return a},sexagesimal2decimal:function(d){var a=0,b=0,c=0;data=d.split(':');if(data[0]<0){sign=-1;a=parseFloat(data[0]/1)*-1}else {sign=1;a=parseFloat(data[0]/1)}b=parseFloat(data[1]/60);c=parseFloat(data[2]/3600)||0;var e=((a+b+c)*sign).toFixed(4);return e}},0,0,0,0,['controller.search'],0,[Sky.view.search,'SearchController'],0);Ext.cmd.derive('Sky.view.search.SearchModel',Ext.app.ViewModel,{stores:{releases:{type:'releases',storeId:'search-releases',autoLoad:!0},tags:{type:'tags',storeId:'search-tags',autoLoad:!0},search:{type:'datasets',storeId:'search-tiles',pageSize:0}}},0,0,0,0,['viewmodel.search'],0,[Sky.view.search,'SearchModel'],0);Ext.cmd.derive('Sky.view.search.SearchField',Ext.form.field.Text,{controller:'search',viewModel:'search',emptyText:'Search',width:250,emptyText:'eg. 307.0658, -52.6783',submitEmptyText:!1,validateOnBlur:!1,validateOnChange:!1,validator:'checkSearchParams',listeners:{specialkey:function(b,a){if(a.getKey()==a.ENTER){}}},triggers:{search:{cls:'x-form-search-trigger',handler:function(){}}}},0,['tile-search-field'],['component','box','field','textfield','tile-search-field'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'tile-search-field':!0},['widget.tile-search-field'],0,[Sky.view.search,'SearchField'],0);Ext.cmd.derive('Sky.view.main.Toolbar',common.header.Toolbar,{viewItems:function(){var a=this,b=common.header.Toolbar.prototype.viewItems.call(this);b.splice(3,0,{xtype:'container',reference:'searchGlobal',width:290,layout:{type:'hbox',align:'left'},items:[{xtype:'button',text:'RA, Dec (Deg)',width:120,queryMode:'local',store:['',''],menu:{xtype:'menu',items:[{name:'latlng',text:'RA, Dec (Deg)'}],listeners:{click:function(c,b){if(b){this.up('button').setText(b.text);a.fireEvent('changeCoordinateSystem',{name:b.name,textfield:a.getReferences().txtCoordinateSearch})}}}}},{xtype:'textfield',emptyText:'RA (deg), Dec (deg)',reference:'txtCoordinateSearch',triggers:{'goto':{cls:'x-form-search-trigger',scope:a,tooltip:'Go To position. 356.0085, 0.5168 or 23 44 2.040 +00 31 0.48',handler:function(b){a.fireEventGotoPosition(b.getValue())}}},listeners:{scope:a,specialkey:function(c,b){if(b.keyCode==13){a.fireEventGotoPosition(c.getValue())}}}}]});return b},fireEventGotoPosition:function(a){this.lookup('txtCoordinateSearch').reset();this.fireEvent('dosearch',a)}},0,['dri-header-sky'],['component','box','container','toolbar','dri-header','dri-header-sky'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-header':!0,'dri-header-sky':!0},['widget.dri-header-sky'],0,[Sky.view.main,'Toolbar'],0);Ext.cmd.derive('Sky.view.main.Main',Ext.container.Container,{controller:'main',viewModel:'main',plugins:'viewport',layout:{type:'vbox',align:'stretch'},items:[{xtype:'dri-header-sky',reference:'driHeaderSky',listeners:{dosearch:'doSearch',changeCoordinateSystem:'changeCoordinateSystem'}},{xtype:'container',flex:1,reference:'mainCardPanel',layout:{type:'card',anchor:'100%'}},{xtype:'dri-footer'}]},0,['app-main'],['component','box','container','app-main'],{'component':!0,'box':!0,'container':!0,'app-main':!0},['widget.app-main'],0,[Sky.view.main,'Main'],0);Ext.application({name:'Sky',extend:Sky.Application,mainView:'Sky.view.main.Main'}); \ No newline at end of file +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.defineProperty=typeof Object.defineProperties=='function'?Object.defineProperty:function(b,c,a){a=a;if(b==Array.prototype||b==Object.prototype){return}b[c]=a.value};$jscomp.getGlobal=function(a){return typeof window!='undefined'&&window===a?a:typeof global!='undefined'&&global!=null?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(i,f,j,k){if(!f){return}var a=$jscomp.global;var b=i.split('.');for(var e=0;ec){if(--b in this){this[--d]=this[b]}else {delete this[d]}}}return this};return b},'es6-impl','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global['Symbol']){$jscomp.global['Symbol']=$jscomp.Symbol}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||'')+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global['Symbol'].iterator;if(!a){a=$jscomp.global['Symbol'].iterator=$jscomp.global['Symbol']('iterator')}if(typeof Array.prototype[a]!='function'){$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}})}$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){if(bd){b=d}b=Number(b);if(b<0){b=Math.max(0,d+b)}for(var e=Number(c||0);e-0.25){var f=b;var g=1;var c=b;var d=0;var e=1;while(d!=c){f*=b;e*=-1;c=(d=c)+e*f/++g}return c}return Math.log(1+b)};return b},'es6-impl','es3');$jscomp.polyfill('Math.atanh',function(b){if(b){return b}var a=Math.log1p;var c=function(c){c=Number(c);return (a(c)-a(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.cbrt',function(a){if(a){return a}var b=function(b){if(b===0){return b}b=Number(b);var c=Math.pow(Math.abs(b),1/3);return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Math.clz32',function(a){if(a){return a}var b=function(b){b=Number(b)>>>0;if(b===0){return 32}var c=0;if((b&4.29490176E9)===0){b<<=16;c+=16}if((b&4.27819008E9)===0){b<<=8;c+=8}if((b&4.02653184E9)===0){b<<=4;c+=4}if((b&3.221225472E9)===0){b<<=2;c+=2}if((b&2.147483648E9)===0){c++}return c};return b},'es6-impl','es3');$jscomp.polyfill('Math.cosh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);return (b(c)+b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.expm1',function(a){if(a){return a}var b=function(b){b=Number(b);if(b<0.25&&b>-0.25){var e=b;var f=1;var c=b;var d=0;while(d!=c){e*=b/++f;c=(d=c)+e}return c}return Math.exp(b)-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.hypot',function(a){if(a){return a}var b=function(c,d,h){c=Number(c);d=Number(d);var b,g,f;var e=Math.max(Math.abs(c),Math.abs(d));for(b=2;b1.0E100||e<1.0E-100){c=c/e;d=d/e;f=c*c+d*d;for(b=2;b>>16&65535;var d=b&65535;var g=c>>>16&65535;var e=c&65535;var h=f*e+d*g<<16>>>0;return d*e+h|0};return b},'es6-impl','es3');$jscomp.polyfill('Math.log10',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN10};return b},'es6-impl','es3');$jscomp.polyfill('Math.log2',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN2};return b},'es6-impl','es3');$jscomp.polyfill('Math.sign',function(a){if(a){return a}var b=function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.sinh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);if(c===0){return c}return (b(c)-b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.tanh',function(a){if(a){return a}var b=function(b){b=Number(b);if(b===0){return b}var c=Math.exp(-2*Math.abs(b));var d=(1-c)/(1+c);return b<0?-d:d};return b},'es6-impl','es3');$jscomp.polyfill('Math.trunc',function(a){if(a){return a}var b=function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0){return b}var c=Math.floor(Math.abs(b));return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Number.EPSILON',function(a){return Math.pow(2,-52)},'es6-impl','es3');$jscomp.polyfill('Number.MAX_SAFE_INTEGER',function(){return 9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.MIN_SAFE_INTEGER',function(){return -9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.isFinite',function(a){if(a){return a}var b=function(b){if(typeof b!=='number'){return !1}return !isNaN(b)&&b!==Infinity&&b!==-Infinity};return b},'es6-impl','es3');$jscomp.polyfill('Number.isInteger',function(a){if(a){return a}var b=function(b){if(!Number.isFinite(b)){return !1}return b===Math.floor(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isNaN',function(a){if(a){return a}var b=function(b){return typeof b==='number'&&isNaN(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isSafeInteger',function(a){if(a){return a}var b=function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER};return b},'es6-impl','es3');$jscomp.polyfill('Object.assign',function(a){if(a){return a}var b=function(e,f){for(var d=1;d3?f:b,e);return !0}else {if(c.writable&&!Object.isFrozen(b)){b[d]=e;return !0}}return !1};return b},'es6','es5');$jscomp.polyfill('Reflect.setPrototypeOf',function(a){if(a){return a}if(typeof ''.__proto__!='object'){return null}var b=function(b,c){try{b.__proto__=c;return b.__proto__===c}catch(d){return !1}};return b},'es6','es5');$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.polyfill('Set',function(b){var c=!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!b||!b.prototype.entries||typeof Object.seal!='function'){return !1}try{b=b;var d=Object.seal({x:4});var c=new b($jscomp.makeIterator([d]));if(!c.has(d)||c.size!=1||c.add(d)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2){return !1}var e=c.entries();var a=e.next();if(a.done||a.value[0]!=d||a.value[1]!=d){return !1}a=e.next();if(a.done||a.value[0]==d||a.value[0].x!=4||a.value[1]!=a.value[0]){return !1}return e.next().done}catch(f){return !1}}();if(c){return b}$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=function(a){this.map_=new Map();if(a){var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}this.size=this.map_.size};a.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};a.prototype['delete']=function(c){var a=this.map_['delete'](c);this.size=this.map_.size;return a};a.prototype.clear=function(){this.map_.clear();this.size=0};a.prototype.has=function(a){return this.map_.has(a)};a.prototype.entries=function(){return this.map_.entries()};a.prototype.values=function(){return this.map_.values()};a.prototype.keys=a.prototype.values;$jscomp.initSymbol();$jscomp.initSymbolIterator();a.prototype[Symbol.iterator]=a.prototype.values;a.prototype.forEach=function(c,a){var d=this;this.map_.forEach(function(e){return c.call(a,e,e,d)})};return a},'es6-impl','es3');$jscomp.checkStringArgs=function(a,c,b){if(a==null){throw new TypeError("The 'this' value for String.prototype."+b+' must not be null or undefined')}if(c instanceof RegExp){throw new TypeError('First argument to String.prototype.'+b+' must not be a regular expression')}return a+''};$jscomp.polyfill('String.prototype.codePointAt',function(a){if(a){return a}var b=function(b){var e=$jscomp.checkStringArgs(this,null,'codePointAt');var f=e.length;b=Number(b)||0;if(!(b>=0&&b56319||b+1===f){return c}var d=e.charCodeAt(b+1);if(d<56320||d>57343){return c}return (c-55296)*1024+d+9216};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.endsWith',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'endsWith');b=b+'';if(c===void 0){c=d.length}var f=Math.max(0,Math.min(c|0,d.length));var e=b.length;while(e>0&&f>0){if(d[--f]!=b[--e]){return !1}}return e<=0};return b},'es6-impl','es3');$jscomp.polyfill('String.fromCodePoint',function(a){if(a){return a}var b=function(e){var c='';for(var d=0;d1114111||b!==Math.floor(b)){throw new RangeError('invalid_code_point '+b)}if(b<=65535){c+=String.fromCharCode(b)}else {b-=65536;c+=String.fromCharCode(b>>>10&1023|55296);c+=String.fromCharCode(b&1023|56320)}}return c};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.includes',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'includes');return d.indexOf(b,c||0)!==-1};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.repeat',function(a){if(a){return a}var b=function(b){var c=$jscomp.checkStringArgs(this,null,'repeat');if(b<0||b>1342177279){throw new RangeError('Invalid count value')}b=b|0;var d='';while(b){if(b&1){d+=c}if(b>>>=1){c+=c}}return d};return b},'es6-impl','es3');$jscomp.stringPadding=function(c,a){var b=c!==undefined?String(c):' ';if(!(a>0)||!b){return ''}var d=Math.ceil(a/b.length);return b.repeat(d).substring(0,a)};$jscomp.polyfill('String.prototype.padEnd',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return b+$jscomp.stringPadding(c,e)};return b},'es8','es3');$jscomp.polyfill('String.prototype.padStart',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return $jscomp.stringPadding(c,e)+b};return b},'es8','es3');$jscomp.polyfill('String.prototype.startsWith',function(a){if(a){return a}var b=function(b,g){var c=$jscomp.checkStringArgs(this,b,'startsWith');b=b+'';var h=c.length;var e=b.length;var f=Math.max(0,Math.min(g|0,c.length));var d=0;while(d=e};return b},'es6-impl','es3');$jscomp.arrayFromIterator=function(c){var b;var a=[];while(!(b=c.next()).done){a.push(b.value)}return a};$jscomp.arrayFromIterable=function(a){if(a instanceof Array){return a}else {return $jscomp.arrayFromIterator($jscomp.makeIterator(a))}};$jscomp.inherits=function(a,b){function tempCtor(){}tempCtor.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new tempCtor();a.prototype.constructor=a;for(var c in b){if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);if(d){Object.defineProperty(a,c,d)}}else {a[c]=b[c]}}};$jscomp.polyfill('WeakSet',function(b){function isConformant(){if(!b||!Object.seal){return !1}try{var c=Object.seal({});var d=Object.seal({});var a=new b([c]);if(!a.has(c)||a.has(d)){return !1}a['delete'](c);a.add(d);return !a.has(c)&&a.has(d)}catch(e){return !1}}if(isConformant()){return b}var a=function(a){this.map_=new WeakMap();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}};a.prototype.add=function(a){this.map_.set(a,!0);return this};a.prototype.has=function(a){return this.map_.has(a)};a.prototype['delete']=function(a){return this.map_['delete'](a)};return a},'es6-impl','es3');try{if(Array.prototype.values.toString().indexOf('[native code]')==-1){delete Array.prototype.values}}catch(a){}var Ext=Ext||{};if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.app.bind){Ext.app.bind={}}if(!Ext.app.domain){Ext.app.domain={}}if(!Ext.app.route){Ext.app.route={}}if(!Ext.button){Ext.button={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}if(!Ext.data){Ext.data={}}if(!Ext.data.field){Ext.data.field={}}if(!Ext.data.flash){Ext.data.flash={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.matrix){Ext.data.matrix={}}if(!Ext.data.operation){Ext.data.operation={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.request){Ext.data.request={}}if(!Ext.data.schema){Ext.data.schema={}}if(!Ext.data.session){Ext.data.session={}}if(!Ext.data.validator){Ext.data.validator={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dd){Ext.dd={}}if(!Ext.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.form){Ext.form={}}if(!Ext.form.Action){Ext.form.Action={}}if(!Ext.form.action){Ext.form.action={}}if(!Ext.form.field){Ext.form.field={}}if(!Ext.form.trigger){Ext.form.trigger={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.fx.target){Ext.fx.target={}}if(!Ext.grid){Ext.grid={}}if(!Ext.grid.column){Ext.grid.column={}}if(!Ext.grid.feature){Ext.grid.feature={}}if(!Ext.grid.header){Ext.grid.header={}}if(!Ext.grid.locking){Ext.grid.locking={}}if(!Ext.grid.plugin){Ext.grid.plugin={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.boxOverflow){Ext.layout.boxOverflow={}}if(!Ext.layout.component){Ext.layout.component={}}if(!Ext.layout.component.field){Ext.layout.component.field={}}if(!Ext.layout.container){Ext.layout.container={}}if(!Ext.layout.container.border){Ext.layout.container.border={}}if(!Ext.layout.container.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.list){Ext.list={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.overrides){Ext.overrides={}}if(!Ext.overrides.app){Ext.overrides.app={}}if(!Ext.overrides.app.domain){Ext.overrides.app.domain={}}if(!Ext.overrides.dom){Ext.overrides.dom={}}if(!Ext.overrides.event){Ext.overrides.event={}}if(!Ext.overrides.event.publisher){Ext.overrides.event.publisher={}}if(!Ext.overrides.plugin){Ext.overrides.plugin={}}if(!Ext.overrides.util){Ext.overrides.util={}}if(!Ext.panel){Ext.panel={}}if(!Ext.perf){Ext.perf={}}if(!Ext.picker){Ext.picker={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.promise){Ext.promise={}}if(!Ext.resizer){Ext.resizer={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.selection){Ext.selection={}}if(!Ext.state){Ext.state={}}if(!Ext.theme){Ext.theme={}}if(!Ext.theme.crisp){Ext.theme.crisp={}}if(!Ext.theme.crisp.view){Ext.theme.crisp.view={}}if(!Ext.theme.neptune){Ext.theme.neptune={}}if(!Ext.theme.neptune.container){Ext.theme.neptune.container={}}if(!Ext.theme.neptune.form){Ext.theme.neptune.form={}}if(!Ext.theme.neptune.form.field){Ext.theme.neptune.form.field={}}if(!Ext.theme.neptune.grid){Ext.theme.neptune.grid={}}if(!Ext.theme.neptune.grid.column){Ext.theme.neptune.grid.column={}}if(!Ext.theme.neptune.layout){Ext.theme.neptune.layout={}}if(!Ext.theme.neptune.layout.component){Ext.theme.neptune.layout.component={}}if(!Ext.theme.neptune.menu){Ext.theme.neptune.menu={}}if(!Ext.theme.neptune.panel){Ext.theme.neptune.panel={}}if(!Ext.theme.neptune.resizer){Ext.theme.neptune.resizer={}}if(!Ext.theme.neptune.toolbar){Ext.theme.neptune.toolbar={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}if(!Ext.tree){Ext.tree={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.ux){Ext.ux={}}if(!Ext.ux.colorpick){Ext.ux.colorpick={}}if(!Ext.ux.layout){Ext.ux.layout={}}if(!Ext.view){Ext.view={}}if(!Ext.window){Ext.window={}}var Portal=Portal||{};var Sky=Sky||{};if(!Sky.model){Sky.model={}}if(!Sky.store){Sky.store={}}if(!Sky.view){Sky.view={}}if(!Sky.view.dataset){Sky.view.dataset={}}if(!Sky.view.footprint){Sky.view.footprint={}}if(!Sky.view.home){Sky.view.home={}}if(!Sky.view.main){Sky.view.main={}}if(!Sky.view.search){Sky.view.search={}}var aladin=aladin||{};if(!aladin.maps){aladin.maps={}}if(!aladin.model){aladin.model={}}if(!aladin.store){aladin.store={}}var common=common||{};if(!common.comment){common.comment={}}if(!common.contact){common.contact={}}if(!common.data){common.data={}}if(!common.data.proxy){common.data.proxy={}}if(!common.footer){common.footer={}}if(!common.header){common.header={}}if(!common.help){common.help={}}if(!common.link){common.link={}}if(!common.model){common.model={}}if(!common.statistics){common.statistics={}}if(!common.store){common.store={}}var visiomatic=visiomatic||{};if(!visiomatic.catalog){visiomatic.catalog={}}if(!visiomatic.crop){visiomatic.crop={}}if(!visiomatic.download){visiomatic.download={}}if(!visiomatic.filter){visiomatic.filter={}}if(!visiomatic.model){visiomatic.model={}}if(!visiomatic.store){visiomatic.store={}}(function(q){var e,p=['constructor','toString','valueOf','toLocaleString'],n={},m={},k=0,l,j,a,b,o,f,c,d,g,h,i,t=function(){var s,t;j=Ext.Base;a=Ext.ClassManager;b=Ext.Class;for(s=p.length;s-->0;){t=1<0;){H=e[l];g[H]=j[H]}if(c.$isFunction){c=c(g)}v.data=c;x=c.statics;delete c.statics;c.$className=u;if('$className' in c){g.$className=c.$className}g.extend(Q);r=g.prototype;if(E){g.xtype=c.xtype=E[0];r.xtypes=E}r.xtypesChain=M;r.xtypesMap=O;c.alias=B;m.triggerExtended(g,c,v);if(c.onClassExtended){g.onExtended(c.onClassExtended,g);delete c.onClassExtended}if(c.privates&&h){h.call(b,g,c)}if(x){if(i){g.addStatics(x)}else {for(w in x){if(x.hasOwnProperty(w)){t=x[w];if(t&&t.$isFunction&&!t.$isClass&&t!==Ext.emptyFn&&t!==Ext.identityFn){g[w]=I=t;I.$owner=g;I.$name=w}g[w]=t}}}}if(c.inheritableStatics){g.addInheritableStatics(c.inheritableStatics);delete c.inheritableStatics}if(r.onClassExtended){m.onExtended(r.onClassExtended,m);delete r.onClassExtended}if(c.platformConfig&&d){d.call(b,g,c);delete c.platformConfig}if(c.config){o.call(b,g,c)}if(c.cachedConfig&&f){f.call(b,g,c);delete c.cachedConfig}v.onBeforeCreated(g,v.data,v);for(l=0,y=D&&D.length;l0){c--;a[c]='var Ext=window.'+Ext.name+';'+a[c]}}d=a.join('');b=e[d];if(!b){b=Function.prototype.constructor.apply(Function.prototype,a);e[d]=b}return b},functionFactory:function(){var b=Array.prototype.slice.call(arguments),a;if(Ext.isSandboxed){a=b.length;if(a>0){a--;b[a]='var Ext=window.'+Ext.name+';'+b[a]}}return Function.prototype.constructor.apply(Function.prototype,b)},Logger:{verbose:a,log:a,info:a,warn:a,error:function(a){throw new Error(a)},deprecate:a},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:function(){var a={};return function(e,c){if(!e){return []}else {if(!c){return [e]}}var g=a[c]||(a[c]=new RegExp('\\\\'+c,'g')),f=[],d,b;d=e.split(c);while((b=d.shift())!==undefined){while(b.charAt(b.length-1)==='\\'&&d.length>0){b=b+c+d.shift()}b=b.replace(g,c);f.push(b)}return f}}()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=!0})();Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=!0);(function(){function toString(){var d=this,b=d.sourceClass,a=d.sourceMethod,c=d.msg;if(a){if(c){a+='(): ';a+=c}else {a+='()'}}if(b){a=a?b+'.'+a:b}return a||c||''}Ext.Error=function(b){if(Ext.isString(b)){b={msg:b}}var a=new Error();Ext.apply(a,b);a.message=a.message||a.msg;a.toString=toString;return a};Ext.apply(Ext.Error,{ignore:!1,raise:function(a){a=a||{};if(Ext.isString(a)){a={msg:a}}var d=this,b=d.raise.caller,e,c;if(b===Ext.raise){b=b.caller}if(b){if(!a.sourceMethod&&(c=b.$name)){a.sourceMethod=c}if(!a.sourceClass&&(c=b.$owner)&&(c=c.$className)){a.sourceClass=c}}if(d.handle(a)!==!0){e=toString.call(a);throw new Ext.Error(a)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=function(){var c=Array.prototype,b=c.slice,f=function(){var a=[],b,c=20;if(!a.splice){return !1}while(c--){a.push('A')}a.splice(15,0,'F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F');b=a.length;a.splice(13,0,'XXX');if(b+1!==a.length){return !1}return !0}(),i='indexOf' in c,h=!0;function stableSort(b,e){var d=b.length,c=new Array(d),a;for(a=0;ac){for(b=l;b--;){a[h+b]=a[c+b]}}}if(e&&f===j){a.length=j;a.push.apply(a,d)}else {a.length=j+e;for(b=0;b>1;f=d(i,h[e]);if(f>=0){c=e+1}else {if(f<0){b=e-1}}}return c},defaultCompare:function(a,b){return ab?1:0},lexicalCompare:function(a,b){a=String(a);b=String(b);return ab?1:0},each:function(c,e,d,g){c=a.from(c);var b,f=c.length;if(g!==!0){for(b=0;b-1;b--){if(e.call(d||c[b],c[b],b,c)===!1){return b}}}return !0},forEach:'forEach' in c?function(a,c,b){return a.forEach(c,b)}:function(b,d,c){for(var a=0,e=b.length;a=0&&b>>0,c=e;if(arguments.length<3){while(!0){if(b in a){c=a[b++];break}if(++b>=d){throw new TypeError('Reduce of empty array with no initial value')}}}for(;bb){b=a}}}return b},mean:function(b){return b.length>0?a.sum(b)/b.length:undefined},sum:function(b){var d=0,a,e,c;for(a=0,e=b.length;ab?1:-1,a;for(a=b;a!=d;a+=e){c[a]=c[a+e]}c[d]=f},replace:j,splice:p,push:function(a){var d=arguments.length,c=1,b;if(a===undefined){a=[]}else {if(!Ext.isArray(a)){a=[a]}}for(;c=d){a=0}else {a=d-a}}if(a===0){b=c+b}else {if(a>=b.length){b+=c}else {b=b.substr(0,a)+c+b.substr(a)}}return b},startsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.lastIndexOf(a,0)===0}return c},endsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.indexOf(a,b.length-a.length)!==-1}return c},createVarName:function(a){return a.replace(l,'')},htmlEncode:function(a){return !a?a:String(a).replace(b,h)},htmlDecode:function(a){return !a?a:String(a).replace(d,g)},hasHtmlCharacters:function(a){return b.test(a)},addCharacterEntities:function(g){var i=[],h=[],e,f;for(e in g){f=g[e];a[e]=f;c[f]=e;i.push(f);h.push(e)}b=new RegExp('('+i.join('|')+')','g');d=new RegExp('('+h.join('|')+'|&#[0-9]{1,5};)','g')},resetCharacterEntities:function(){c={};a={};this.addCharacterEntities({'&':'&','>':'>','<':'<','"':'"',''':"'"})},urlAppend:function(a,b){if(!Ext.isEmpty(b)){return a+(a.indexOf('?')===-1?'?':'&')+b}return a},trim:function(a){if(a){a=a.replace(m,'')}return a||''},capitalize:function(a){if(a){a=a.charAt(0).toUpperCase()+a.substr(1)}return a||''},uncapitalize:function(a){if(a){a=a.charAt(0).toLowerCase()+a.substr(1)}return a||''},ellipsis:function(a,c,e){if(a&&a.length>c){if(e){var b=a.substr(0,c-2),d=Math.max(b.lastIndexOf(' '),b.lastIndexOf('.'),b.lastIndexOf('!'),b.lastIndexOf('?'));if(d!==-1&&d>=c-15){return b.substr(0,d)+'...'}}return a.substr(0,c-3)+'...'}return a},escapeRegex:function(a){return a.replace(i,'\\$1')},createRegex:function(b,d,e,c){var a=b;if(b!=null&&!b.exec){a=f.escapeRegex(String(b));if(d!==!1){a='^'+a}if(e!==!1){a+='$'}a=new RegExp(a,c!==!1?'i':'')}return a},escape:function(a){return a.replace(n,'\\$1')},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,d,b){var a=String(c);b=b||' ';while(a.length daysInMonth) {','d = daysInMonth;','}','}','h = from(h, from(def.h, dt.getHours()));','i = from(i, from(def.i, dt.getMinutes()));','s = from(s, from(def.s, dt.getSeconds()));','ms = from(ms, from(def.ms, dt.getMilliseconds()));','if(z >= 0 && y >= 0){','v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);','}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){','v = null;','}else{','if (W) {','year = y || (new Date()).getFullYear();','jan4 = new Date(year, 0, 4, 0, 0, 0);','d = jan4.getDay();','week1monday = new Date(jan4.getTime() - ((d === 0 ? 6 : d - 1) * 86400000));','v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));','} else {','v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','}','}','}','}','if(v){','if(zz != null){','v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);','}else if(o){',"v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));",'}','}','return (v != null) ? v : null;'].join('\n');if(!Date.prototype.toISOString){Date.prototype.toISOString=function(){var a=this;return c(a.getUTCFullYear(),4,'0')+'-'+c(a.getUTCMonth()+1,2,'0')+'-'+c(a.getUTCDate(),2,'0')+'T'+c(a.getUTCHours(),2,'0')+':'+c(a.getUTCMinutes(),2,'0')+':'+c(a.getUTCSeconds(),2,'0')+'.'+c(a.getUTCMilliseconds(),3,'0')+'Z'}}function xf(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(e,function(d,c){return b[c]})}return a={now:b.now,toString:function(a){if(!a){a=new b()}return a.getFullYear()+'-'+c(a.getMonth()+1,2,'0')+'-'+c(a.getDate(),2,'0')+'T'+c(a.getHours(),2,'0')+':'+c(a.getMinutes(),2,'0')+':'+c(a.getSeconds(),2,'0')},getElapsed:function(b,c){return Math.abs(b-(c||a.now()))},useStrict:!1,formatCodeToRegex:function(c,d){var b=a.parseCodes[c];if(b){b=typeof b==='function'?b():b;a.parseCodes[c]=b}return b?Ext.applyIf({c:b.c?xf(b.c,d||'{0}'):b.c},b):{g:0,c:null,s:Ext.String.escapeRegex(c)}},parseFunctions:{'MS':function(c,d){var a=(c||'').match(f);return a?new b(((a[1]||'')+a[2])*1):null},'time':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a)}return null},'timestamp':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a*1000)}return null}},parseRegexes:[],formatFunctions:{'MS':function(){return '\\/Date('+this.getTime()+')\\/'},'time':function(){return this.getTime().toString()},'timestamp':function(){return a.format(this,'U')}},y2kYear:50,MILLI:'ms',SECOND:'s',MINUTE:'mi',HOUR:'h',DAY:'d',MONTH:'mo',YEAR:'y',defaults:{},dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:'m/d/Y',getShortMonthName:function(b){return a.monthNames[b].substring(0,3)},getShortDayName:function(b){return a.dayNames[b].substring(0,3)},getMonthNumber:function(b){return a.monthNumbers[b.substring(0,1).toUpperCase()+b.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return h.test(a.replace(d,''))},formatContainsDateInfo:function(a){return g.test(a.replace(d,''))},unescapeFormat:function(a){return a.replace(i,'')},formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')",D:'Ext.Date.getShortDayName(m.getDay())',j:'m.getDate()',l:'Ext.Date.dayNames[m.getDay()]',N:'(m.getDay() ? m.getDay() : 7)',S:'Ext.Date.getSuffix(m)',w:'m.getDay()',z:'Ext.Date.getDayOfYear(m)',W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')",F:'Ext.Date.monthNames[m.getMonth()]',m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')",M:'Ext.Date.getShortMonthName(m.getMonth())',n:'(m.getMonth() + 1)',t:'Ext.Date.getDaysInMonth(m)',L:'(Ext.Date.isLeapYear(m) ? 1 : 0)',o:'(m.getFullYear() + (Ext.Date.getWeekOfYear(m) == 1 && m.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(m) >= 52 && m.getMonth() < 11 ? -1 : 0)))',Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')",y:"('' + m.getFullYear()).substring(2, 4)",a:"(m.getHours() < 12 ? 'am' : 'pm')",A:"(m.getHours() < 12 ? 'AM' : 'PM')",g:'((m.getHours() % 12) ? m.getHours() % 12 : 12)',G:'m.getHours()',h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(m.getHours(), 2, '0')",i:"Ext.String.leftPad(m.getMinutes(), 2, '0')",s:"Ext.String.leftPad(m.getSeconds(), 2, '0')",u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')",O:'Ext.Date.getGMTOffset(m)',P:'Ext.Date.getGMTOffset(m, true)',T:'Ext.Date.getTimezone(m)',Z:'(m.getTimezoneOffset() * -60)',c:function(){var e='Y-m-dTH:i:sP',d=[],b,f=e.length,c;for(b=0;b me.y2kYear ? 1900 + ty : 2000 + ty;\n',s:'(\\d{2})'},a:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(am|pm|AM|PM)',calcAtEnd:!0},A:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(AM|PM|am|pm)',calcAtEnd:!0},g:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|[0-9])'},G:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|1[0-9]|[0-9])'},h:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|0[1-9])'},H:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|[0-1][0-9])'},i:{g:1,c:'i = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},s:{g:1,c:'s = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},u:{g:1,c:'ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n',s:'(\\d+)'},O:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),','mn = o.substring(3,5) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{4})'},P:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),','mn = o.substring(4,6) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{2}:\\d{2})'},T:{g:0,c:null,s:'[A-Z]{1,5}'},Z:{g:1,c:'zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n',s:'([+-]?\\d{1,5})'},c:function(){var d=[],b=[a.formatCodeToRegex('Y',1),a.formatCodeToRegex('m',2),a.formatCodeToRegex('d',3),a.formatCodeToRegex('H',4),a.formatCodeToRegex('i',5),a.formatCodeToRegex('s',6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:['if(results[8]) {',"if(results[8] == 'Z'){",'zz = 0;',"}else if (results[8].indexOf(':') > -1){",a.formatCodeToRegex('P',8).c,'}else{',a.formatCodeToRegex('O',8).c,'}','}'].join('\n')}],c,e;for(c=0,e=b.length;c0?'-':'+')+Ext.String.leftPad(Math.floor(Math.abs(a)/60),2,'0')+(b?':':'')+Ext.String.leftPad(Math.abs(a%60),2,'0')},getDayOfYear:function(c){var e=0,b=a.clone(c),f=c.getMonth(),d;for(d=0,b.setDate(1),b.setMonth(0);d28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.MONTH,c)).getDate())};b.setDate(d);b.setMonth(f.getMonth()+c);break;case a.YEAR:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.YEAR,c)).getDate())};b.setDate(d);b.setFullYear(f.getFullYear()+c);break;}}if(g){switch(h.toLowerCase()){case a.MILLI:e=1;break;case a.SECOND:e=1000;break;case a.MINUTE:e=1000*60;break;case a.HOUR:e=1000*60*60;break;case a.DAY:e=1000*60*60*24;break;case a.MONTH:d=a.getDaysInMonth(b);e=1000*60*60*24*d;break;case a.YEAR:d=a.isLeapYear(b)?366:365;e=1000*60*60*24*d;break;}if(e){b.setTime(b.getTime()+e*g)}}return b},subtract:function(d,b,c){return a.add(d,b,-c)},between:function(c,b,d){var a=c.getTime();return b.getTime()<=a&&a<=d.getTime()},compat:function(){var c,g=['useStrict','formatCodeToRegex','parseFunctions','parseRegexes','formatFunctions','y2kYear','MILLI','SECOND','MINUTE','HOUR','DAY','MONTH','YEAR','defaults','dayNames','monthNames','monthNumbers','getShortMonthName','getShortDayName','getMonthNumber','formatCodes','isValid','parseDate','getFormatCode','createFormat','createParser','parseCodes'],h=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],j=g.length,i=h.length,f,e,d;for(d=0;dd){return b-1};return b;case a.YEAR:b=d.getFullYear()-e.getFullYear();if(a.add(e,f,b)>d){return b-1}else {return b};}},align:function(e,f,d){var c=new b(+e);switch(f.toLowerCase()){case a.MILLI:return c;case a.SECOND:c.setUTCSeconds(c.getUTCSeconds()-c.getUTCSeconds()%d);c.setUTCMilliseconds(0);return c;case a.MINUTE:c.setUTCMinutes(c.getUTCMinutes()-c.getUTCMinutes()%d);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.HOUR:c.setUTCHours(c.getUTCHours()-c.getUTCHours()%d);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.DAY:if(d===7||d===14){c.setUTCDate(c.getUTCDate()-c.getUTCDay()+1)};c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.MONTH:c.setUTCMonth(c.getUTCMonth()-(c.getUTCMonth()-1)%d,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.YEAR:c.setUTCFullYear(c.getUTCFullYear()-c.getUTCFullYear()%d,1,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return e;}}}}();Ext.Function=function(){var i=0,f,c=[],l=[],m=0,e={},d=window,b=Ext.global,h=!!(b.setImmediate&&b.clearImmediate),k=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(c){var b=Ext.now(),a=Math.max(0,16-(b-i)),e=d.setTimeout(function(){c(b+a)},a);i=b+a;return e},g=function(){var h=c.length,g,d,a;f=null;for(d=0;d0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},b)}a();return 0},interval:function(a,c,d,e,b){a=Ext.Function.bind(a,d,e,b);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},c)},createSequence:function(a,b,c){if(!b){return a}else {return function(){var d=a.apply(this,arguments);b.apply(c||this,arguments);return d}}},createBuffered:function(b,c,d,e){var a;return function(){var f=e||Array.prototype.slice.call(arguments,0),g=d||this;if(a){clearTimeout(a)}a=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b,g,f)}else {b.apply(g,f)}},c)}},createAnimationFrame:function(f,d,e,c){var b;c=c||3;return function(){var g=e||Array.prototype.slice.call(arguments,0);d=d||this;if(c===3&&b){a.cancelAnimationFrame(b)}if(c&1||!b){b=a.requestAnimationFrame(function(){b=null;f.apply(d,g)})}}},requestAnimationFrame:function(i,d,h){var a=++m,b=Array.prototype.slice.call(arguments,0);b[3]=a;e[a]=1;c.push(b);if(!f){f=k(Ext.elevateFunction?j:g)}return a},cancelAnimationFrame:function(a){delete e[a]},createThrottled:function(h,f,a){var e=0,d,c,b,g=function(){if(Ext.elevateFunction){Ext.elevateFunction(h,a,c)}else {h.apply(a,c)}e=Ext.now();b=null};return function(){if(!a){a=this}d=Ext.now()-e;c=arguments;if(d>=f){clearTimeout(b);g()}else {if(!b){b=Ext.defer(g,f-d)}}}},createBarrier:function(a,c,b){return function(){if(!--a){c.apply(b,arguments)}}},interceptBefore:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){var f=e.apply(d||this,arguments);c.apply(this,arguments);return f}},interceptAfter:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){c.apply(this,arguments);return e.apply(d||this,arguments)}},makeCallback:function(b,a){return function(){return a[b].apply(a,arguments)}},memoize:function(e,c,a){var b={},d=a&&Ext.isFunction(a);return function(g){var f=d?a.apply(c,arguments):g;if(!(f in b)){b[f]=e.apply(c,arguments)}return b[f]}}};Ext.asap=h?function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setImmediate(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}})}:function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}},0,!0)},Ext.asapCancel=h?function(a){clearImmediate(a)}:function(a){clearTimeout(a)};Ext.defer=a.defer;Ext.interval=a.interval;Ext.pass=a.pass;Ext.bind=a.bind;Ext.deferCallback=a.requestAnimationFrame;return a}();Ext.Number=new function(){var b=this,d=(0.9).toFixed()!=='1',c=Math,a={count:!1,inclusive:!1,wrap:!0};Ext.apply(b,{Clip:{DEFAULT:a,COUNT:Ext.applyIf({count:!0},a),INCLUSIVE:Ext.applyIf({inclusive:!0},a),NOWRAP:Ext.applyIf({wrap:!1},a)},clipIndices:function(d,c,f){f=f||a;var h=0,i=f.wrap,g,b,e;c=c||[];for(e=0;e<2;++e){g=b;b=c[e];if(b==null){b=h}else {if(e&&f.count){b+=g;b=b>d?d:b}else {if(i){b=b<0?d+b:b}if(e&&f.inclusive){++b}b=b<0?0:b>d?d:b}}h=d}c[0]=g;c[1]=ba?a:d},snap:function(a,c,e,f){var d;if(a===undefined||a=c){a+=c}else {if(d*2<-c){a-=c}}}}return b.constrain(a,e,f)},snapInRange:function(a,d,c,e){var f;c=c||0;if(a===undefined||a=d){a+=d}}if(e!==undefined){if(a>(e=b.snapInRange(e,d,c))){a=e}}return a},sign:function(a){a=+a;if(a===0||isNaN(a)){return a}return a>0?1:-1},toFixed:d?function(d,a){a=a||0;var b=c.pow(10,a);return (c.round(d*b)/b).toFixed(a)}:function(b,a){return b.toFixed(a)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(a,b){return c.floor(c.random()*(b-a+1)+a)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return b.from.apply(this,arguments)}}();(function(){var b=function(){},d=/^\?/,f=/(\[):?([^\]]*)\]/g,e=/^([^\[]+)/,c=/\+/g,a=Ext.Object={chain:Object.create||function(a){b.prototype=a;var c=new b();b.prototype=null;return c},clear:function(a){for(var b in a){delete a[b]}return a},freeze:Object.freeze?function(b,c){if(b&&typeof b==='object'&&!Object.isFrozen(b)){Object.freeze(b);if(c){for(var d in b){a.freeze(b[d],c)}}}return b}:Ext.identityFn,toQueryObjects:function(e,c,f){var g=a.toQueryObjects,d=[],b,h;if(Ext.isArray(c)){for(b=0,h=c.length;b0){o=q.split('=');a=o[0];a=a.replace(c,'%20');a=decodeURIComponent(a);g=o[1];if(g!==undefined){g=g.replace(c,'%20');g=decodeURIComponent(g)}else {g=''}if(!v){if(i.hasOwnProperty(a)){if(!Ext.isArray(i[a])){i[a]=[i[a]]}i[a].push(g)}else {i[a]=g}}else {m=a.match(f);r=a.match(e);a=r[0];k=[];if(m===null){i[a]=g;continue}for(h=0,l=m.length;h@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(b){var c=b,a;if(b&&b.charAt(0)==='<'){a=Ext._resourcePoolRe.exec(b);if(a){c=Ext.getResourcePath(a[3],a[1],a[2])}}return c},urlEncode:function(){var a=Ext.Array.from(arguments),b='';if(Ext.isString(a[1])){b=a[1]+'&';a[1]=!1}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(d){var b=Ext._scrollbarSize;if(d||!b){var c=document.body,a=document.createElement('div');a.style.width=a.style.height='100px';a.style.overflow='scroll';a.style.position='absolute';c.appendChild(a);Ext._scrollbarSize=b={width:a.offsetWidth-a.clientWidth,height:a.offsetHeight-a.clientHeight};c.removeChild(a)}return b},typeOf:function(){var a=/\S/,d=Object.prototype.toString,c={number:1,string:1,'boolean':1,'undefined':1},b={'[object Array]':'array','[object Date]':'date','[object Boolean]':'boolean','[object Number]':'number','[object RegExp]':'regexp'};return function(e){if(e===null){return 'null'}var f=typeof e,g,h;if(c[f]){return f}g=b[h=d.call(e)];if(g){return g}if(f==='function'){return 'function'}if(f==='object'){if(e.nodeType!==undefined){if(e.nodeType===3){return a.test(e.nodeValue)?'textnode':'whitespace'}else {return 'element'}}return 'object'}return h}}(),factory:function(a,f,b,d){var e=Ext.ClassManager,c;if(!a||a.isInstance){if(b&&b!==a){b.destroy()}return a}if(d){if(typeof a==='string'){return e.instantiateByAlias(d+'.'+a)}else {if(Ext.isObject(a)&&'type' in a){return e.instantiateByAlias(d+'.'+a.type,a)}}}if(a===!0){return b||Ext.create(f)}if('xtype' in a){c=e.instantiateByAlias('widget.'+a.xtype,a)}else {if('xclass' in a){c=Ext.create(a.xclass,a)}}if(c){if(b){b.destroy()}return c}if(b){return b.setConfig(a)}return Ext.create(f,a)},log:function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}()});(function(){var b=[''],c=/([^\d\.])/,f=/[^\d]/g,g=/[\-+]/g,h=/\s/g,e=/_/g,d={classic:1,modern:1},a;Ext.Version=a=function(k,p){var b=this,n=b.padModes,o,m,d,h,j,l,i;if(k.isVersion){k=k.version}b.version=i=String(k).toLowerCase().replace(e,'.').replace(g,'');o=i.charAt(0);if(o in n){i=i.substring(1);d=n[o]}else {d=p?n[p]:0}b.pad=d;l=i.search(c);b.shortVersion=i;if(l!==-1){b.release=j=i.substr(l,k.length);b.shortVersion=i.substr(0,l);j=a.releaseValueMap[j]||j}b.releaseValue=j||d;b.shortVersion=b.shortVersion.replace(f,'');b.parts=h=i.split('.');for(m=h.length;m--;){h[m]=parseInt(h[m],10)}if(d===Infinity){h.push(d)}b.major=h[0]||d;b.minor=h[1]||d;b.patch=h[2]||d;b.build=h[3]||d;return b};a.prototype={isVersion:!0,padModes:{'~':NaN,'^':Infinity},release:'',compareTo:function(f){var g=this,m=g.pad,j=g.parts,h=j.length,e=f.isVersion?f:new a(f),n=e.pad,k=e.parts,i=k.length,l=Math.max(h,i),b,c,d;for(b=0;bd){return 1}}c=g.releaseValue;d=e.releaseValue;if(cd){return 1}return 0},toString:function(){return this.version},valueOf:function(){return this.version},getMajor:function(){return this.major},getMinor:function(){return this.minor},getPatch:function(){return this.patch},getBuild:function(){return this.build},getRelease:function(){return this.release},getReleaseValue:function(){return this.releaseValue},isGreaterThan:function(a){return this.compareTo(a)>0},isGreaterThanOrEqual:function(a){return this.compareTo(a)>=0},isLessThan:function(a){return this.compareTo(a)<0},isLessThanOrEqual:function(a){return this.compareTo(a)<=0},equals:function(a){return this.compareTo(a)===0},match:function(a){a=String(a);return this.version.substr(0,a.length)===a},toArray:function(){var a=this;return [a.getMajor(),a.getMinor(),a.getPatch(),a.getBuild(),a.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(a){return this.compareTo(a)>0},lt:function(a){return this.compareTo(a)<0},gtEq:function(a){return this.compareTo(a)>=0},ltEq:function(a){return this.compareTo(a)<=0}};Ext.apply(a,{aliases:{from:{extjs:'ext',core:'core',touch:'modern'},to:{ext:['extjs'],'core':['core'],modern:['touch']}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,'#':-2,p:-1,pl:-1},getComponentValue:function(a){return !a?0:isNaN(a)?this.releaseValueMap[a]||a:parseInt(a,10)},compare:function(b,c){var d=b.isVersion?b:new a(b);return d.compareTo(c)},set:function(g,f,c){var b=a.aliases.to[f],d=c.isVersion?c:new a(c),e;g[f]=d;if(b){for(e=b.length;e-->0;){g[b[e]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,d;if(!b){d=c.ext||c.touch||c.core}else {d=c[a.aliases.from[b]||b]}return d||Ext.getVersion(b)},setCompatVersion:function(b,c){a.set(Ext.compatVersions,b,c)},setVersion:function(b,c){if(b in d){Ext.toolkit=b}Ext.lastRegisteredVersion=a.set(Ext.versions,b,c);return this},getVersion:function(c){var b=Ext.versions;if(!c){return b.ext||b.touch||b.core}return b[a.aliases.from[c]||c]},checkVersion:function(o,j){var p=Ext.isArray(o),s=a.aliases.from,q=p?o:b,t=q.length,n=Ext.versions,r=n.ext||n.touch,l,c,f,i,g,m,d,e,k;if(!p){b[0]=o}for(l=0;l=0){d=d.replace(h,'')}c=d.indexOf('@');if(c<0){e=d;k=r}else {m=d.substring(0,c);if(!(k=n[s[m]||m])){if(j){return !1}continue}e=d.substring(c+1)}c=e.indexOf('-');if(c<0){if(e.charAt(c=e.length-1)==='+'){i=e.substring(0,c);g=null}else {i=g=e}}else {if(c>0){i=e.substring(0,c);g=e.substring(c+1)}else {i=null;g=e.substring(c+1)}}f=!0;if(i){i=new a(i,'~');f=i.ltEq(k)}if(f&&g){g=new a(g,'~');f=g.gtEq(k)}}if(f){if(!j){return !0}}else {if(j){return !1}}}return !!j},deprecate:function(b,e,c,d){if(a.compare(Ext.getVersion(b),e)<1){c.call(d)}}})})();(function(c){var d=c&&c.packages||{},b=c&&c.compatibility,a,e;for(a in d){e=d[a];Ext.setVersion(a,e.version)}if(b){if(Ext.isString(b)){Ext.setCompatVersion('core',b)}else {for(a in b){Ext.setCompatVersion(a,b[a])}}}if(!d.ext&&!d.touch){Ext.setVersion('ext','6.0.1.250');Ext.setVersion('core','6.0.1.250')}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:'_'+b,initializing:'is'+a+'Initializing',apply:'apply'+a,update:'update'+a,get:'get'+a,set:'set'+a,initGet:'initGet'+a,changeEvent:b.toLowerCase()+'change'};c.root=c};Ext.Config.map={};Ext.Config.get=function(a){var b=Ext.Config.map,c=b[a]||(b[a]=new Ext.Config(a));return c};Ext.Config.prototype={self:Ext.Config,isConfig:!0,getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(b,d,f,e){var a,c;if(!d){a=b}else {if(!b){a=d}else {a=Ext.Object.chain(d);for(c in b){if(!e||!(c in a)){a[c]=b[c]}}}}return a},mergeSets:function(a,f,e){var b=f?Ext.Object.chain(f):{},c,d;if(a instanceof Array){for(c=a.length;c--;){d=a[c];if(!e||!(d in b)){b[d]=!0}}}else {if(a){if(a.constructor===Object){for(c in a){d=a[c];if(!e||!(c in b)){b[c]=d}}}else {if(!e||!(a in b)){b[a]=!0}}}}return b},makeGetter:function(){var b=this.name,a=this.names.internal;return function(){var c=this.$configPrefixed?a:b;return this[c]}},makeInitGetter:function(){var e=this.name,a=this.names,d=a.set,c=a.get,b=a.initializing;return function(){var a=this;a[b]=!0;delete a[c];a[d](a.config[e]);delete a[b];return a[c].apply(a,arguments)}},makeSetter:function(){var g=this.name,a=this.names,e=a.internal,f=a.get,d=a.apply,c=a.update,b;b=function(b){var a=this,h=a.$configPrefixed?e:g,i=a[h];delete a[f];if(!a[d]||(b=a[d](b,i))!==undefined){if(b!==(i=a[h])){a[h]=b;if(a[c]){a[c](b,i)}}}return a};b.$isDefault=!0;return b},makeEventedSetter:function(){var i=this.name,a=this.names,f=a.internal,h=a.get,d=a.apply,b=a.update,e=a.changeEvent,g=function(a,c,e,d){a[d]=c;if(a[b]){a[b](c,e)}},c;c=function(c){var a=this,k=a.$configPrefixed?f:i,j=a[k];delete a[h];if(!a[d]||(c=a[d](c,j))!==undefined){if(c!==(j=a[k])){if(a.isConfiguring){a[k]=c;if(a[b]){a[b](c,j)}}else {a.fireEventedAction(e,[a,c,j],g,a,[a,c,j,k])}}}return a};c.$isDefault=!0;return c}};(function(){var c=Ext.Config,b=c.map,a=Ext.Object;Ext.Configurator=function(d){var b=this,e=d.prototype,c=d.superclass?d.superclass.self.$config:null;b.cls=d;b.superCfg=c;if(c){b.configs=a.chain(c.configs);b.cachedConfigs=a.chain(c.cachedConfigs);b.initMap=a.chain(c.initMap);b.values=a.chain(c.values);b.needsFork=c.needsFork}else {b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}e.config=e.defaultConfig=b.values;d.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:!1,initList:null,add:function(t,l){var i=this,n=i.cls,k=i.configs,v=i.cachedConfigs,p=i.initMap,g=n.prototype,r=l&&l.$config.configs,u=i.values,m,f,s,h,b,j,e,q,o,d;for(e in t){d=t[e];m=d&&d.constructor===Object;f=m&&'$value' in d?d:null;if(f){s=!!f.cached;d=f.$value;m=d&&d.constructor===Object}h=f&&f.merge;b=k[e];if(b){if(l){h=b.merge;if(!h){continue}f=null}else {h=h||b.merge}j=u[e];if(h){d=h.call(b,d,j,n,l)}else {if(m){if(j&&j.constructor===Object){d=a.merge({},j,d)}}}}else {if(r){b=r[e];f=null}else {b=c.get(e)}k[e]=b;if(b.cached||s){v[e]=!0}q=b.names;if(!g[o=q.get]){g[o]=b.getter||b.getGetter()}if(!g[o=q.set]){g[o]=f&&f.evented?b.eventedSetter||b.getEventedSetter():b.setter||b.getSetter()}}if(f){if(b.owner!==n){k[e]=b=Ext.Object.chain(b);b.owner=n}Ext.apply(b,f);delete b.$value}if(!i.needsFork&&d&&(d.constructor===Object||d instanceof Array)){i.needsFork=!0}if(d!==null){p[e]=!0}else {if(g.$configPrefixed){g[k[e].names.internal]=null}else {g[k[e].name]=null}if(e in p){p[e]=!1}}u[e]=d}},configure:function(c,h){var k=this,u=k.configs,x=k.initMap,q=k.initListMap,o=k.initList,j=k.cls.prototype,i=k.values,r=0,v=!o,n,b,m,w,d,p,l,f,e,g,t,s,y;i=k.needsFork?a.fork(i):a.chain(i);c.isConfiguring=!0;if(v){k.initList=o=[];k.initListMap=q={};c.isFirstInstance=!0;for(e in x){w=x[e];b=u[e];t=b.cached;if(w){f=b.names;g=i[e];if(!j[f.set].$isDefault||j[f.apply]||j[f.update]||typeof g==='object'){if(t){(n||(n=[])).push(b)}else {o.push(b);q[e]=!0}c[f.get]=b.initGetter||b.getInitGetter()}else {j[b.getInternalName(j)]=g}}else {if(t){j[b.getInternalName(j)]=undefined}}}}l=n&&n.length;if(l){for(d=0;d0){for(a=0;ac.maxSize){c.unlinkEntry(f.prev,!0);--c.count}}return d.value},evict:Ext.emptyFn,linkEntry:function(c){var d=this.head,e=d.next;c.next=e;c.prev=d;d.next=c;e.prev=c},unlinkEntry:function(c,f){var d=c.next,e=c.prev;e.next=d;d.prev=e;if(f){this.evict(c.key,c.value)}}};a.destroy=a.clear})();(function(){var a,d=Ext.Base,b=d.$staticMembers,c=function(a,b){return a.length-b.length||(ab?1:0)};function makeCtor(a){function constructor(){return this.constructor.apply(this,arguments)||null}return constructor}Ext.Class=a=function(b,c,d){if(typeof b!='function'){d=c;c=b;b=null}if(!c){c={}}b=a.create(b,c);a.process(b,c,d);return b};Ext.apply(a,{makeCtor:makeCtor,onBeforeCreated:function(a,c,b){a.addMembers(c);b.onCreated.call(a,a)},create:function(a,f){var e=b.length,c;if(!a){a=makeCtor()}while(e--){c=b[e];a[c]=d[c]}return a},process:function(l,f,k){var j=f.preprocessors||a.defaultPreprocessors,o=this.preprocessors,e={onBeforeCreated:this.onBeforeCreated},d=[],b,c,g,n,h,m,i;delete f.preprocessors;l._classHooks=e;for(g=0,n=j.length;g0){b=h.test(c[d])}c=o[a];if(c&&!b){d=c.length;while(!b&&d-->0){b=h.test(c[d])}}}if(b){i[a]=1;l.push(a)}}}}}return l},getPath:function(a){var e=this,d=e.paths,b='',c;if(a in d){b=d[a]}else {c=e.getPrefix(a);if(c){a=a.substring(c.length+1);b=d[c];if(b){b+='/'}}b+=a.replace(e.dotRe,'/')+'.js'}return b},getPrefix:function(a){if(a in this.paths){return a}var d=this.getPrefixes(),e=d.length,b,c;while(e-->0){b=(c=d[e]).length;if(b0){b=i[d];f=c;c=b.value||c[b.name];if(!c&&h){f[b.name]=c={}}}return c},setNamespace:function(f,d){var b=a.getNamespaceEntry(f),c=Ext.global;if(b.parent){c=a.lookupName(b.parent,!0)}c[b.name]=d;return d},setXType:function(i,d){var f=i.$className,k=f?i:a.get(f=i),b=k.prototype,j=b.xtypes,c=b.xtypesChain,h=b.xtypesMap;if(!b.hasOwnProperty('xtypes')){b.xtypes=j=[];b.xtypesChain=c=c?c.slice(0):[];b.xtypesMap=h=Ext.apply({},h)}a.addAlias(f,'widget.'+d,!0);j.push(d);c.push(d);h[d]=!0},set:function(b,d){var c=a.getName(d);a.classes[b]=a.setNamespace(b,d);if(c&&c!==b){a.addAlternate(c,b)}return a},get:function(b){return a.classes[b]||a.lookupName(b,!1)},addNameAliasMappings:function(b){a.addAlias(b)},addNameAlternateMappings:function(b){a.addAlternate(b)},getByAlias:function(b){return a.get(a.getNameByAlias(b))},getByConfig:function(c,d){var f=c.xclass,b;if(f){b=f}else {b=c.xtype;if(b){d='widget.'}else {b=c.type}b=a.getNameByAlias(d+b)}return a.get(b)},getName:function(a){return a&&a.$className||''},getClass:function(a){return a&&a.self||null},create:function(c,b,f){var d=q(c);if(typeof b==='function'){b=b(d)}b.$className=c;return new n(d,b,function(){var m=b.postprocessors||a.defaultPostprocessors,s=a.postprocessors,i=[],d,j,q,k,p,h,l;delete b.postprocessors;for(j=0,q=m.length;j0;){c=a.lookupName(arguments[b],!0)}return c}});Ext.addRootNamespaces=a.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;n.registerPreprocessor('className',function(b,a){if('$className' in a){b.$className=a.$className}},!0,'first');n.registerPreprocessor('alias',function(q,d){var l=q.prototype,c=g(d.xtype),i=g(d.alias),j='widget.',p=j.length,k=Array.prototype.slice.call(l.xtypesChain||[]),h=Ext.merge({},l.xtypesMap||{}),a,f,m,b;for(a=0,f=i.length;a=d){Ext[o+'p']=!0}}}if(n.is.Opera&&parseInt(a,10)<=12){Ext.isOpera12m=!0}Ext.chromeVersion=Ext.isChrome?a:0;Ext.firefoxVersion=Ext.isFirefox?a:0;Ext.ieVersion=Ext.isIE?a:0;Ext.operaVersion=Ext.isOpera?a:0;Ext.safariVersion=Ext.isSafari?a:0;Ext.webKitVersion=Ext.isWebKit?a:0;this.setFlag(c+a,!0,r);this.setFlag(c+f.getShortVersion())}for(d in j){if(j.hasOwnProperty(d)){h=j[d];this.setFlag(h,c===h)}}this.setFlag(h);if(l){this.setFlag(g+(l.getMajor()||''));this.setFlag(g+l.getShortVersion())}for(d in k){if(k.hasOwnProperty(d)){h=k[d];this.setFlag(h,g===h,r)}}this.setFlag('Standalone',!!navigator.standalone);this.setFlag('Ripple',!!document.getElementById('tinyhippos-injected')&&!Ext.isEmpty(window.top.ripple));this.setFlag('WebWorks',!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){q=!0;this.setFlag('PhoneGap');this.setFlag('Cordova')}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(e)){q=!0}this.setFlag('WebView',q);this.isStrict=Ext.isStrict=document.compatMode==='CSS1Compat';this.isSecure=Ext.isSecure;this.identity=c+a+(this.isStrict?'Strict':'Quirks')};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{webkit:'WebKit',gecko:'Gecko',presto:'Presto',trident:'Trident',other:'Other'},enginePrefixes:{webkit:'AppleWebKit/',gecko:'Gecko/',presto:'Presto/',trident:'Trident/'},styleDashPrefixes:{WebKit:'-webkit-',Gecko:'-moz-',Trident:'-ms-',Presto:'-o-',Other:''},stylePrefixes:{WebKit:'Webkit',Gecko:'Moz',Trident:'ms',Presto:'O',Other:''},propertyPrefixes:{WebKit:'webkit',Gecko:'moz',Trident:'ms',Presto:'o',Other:''},is:function(a){return !!this.is[a]},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(b,a,c){if(a===undefined){a=!0}this.is[b]=a;this.is[b.toLowerCase()]=a;if(c){Ext['is'+b]=a}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(b){var a=this.propertyPrefixes[this.engineName];if(a.length>0){return a+Ext.String.capitalize(b)}return b},getPreferredTranslationMethod:function(a){if(typeof a==='object'&&'translationMethod' in a&&a.translationMethod!=='auto'){return a.translationMethod}else {return 'csstransform'}}};(function(a){Ext.browser=new Ext.env.Browser(a,!0);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":'about:blank'})(Ext.global.navigator.userAgent);Ext.env.OS=function(j,k,b){var n=this,g=Ext.Boot.osNames,h=Ext.Boot.osPrefixes,a,c='',m=n.is,d,l,f,i,e;b=b||Ext.browser;for(d in h){if(h.hasOwnProperty(d)){l=h[d];f=j.match(new RegExp('(?:'+l+')([^\\s;]+)'));if(f){a=g[d];e=f[1];if(e&&e==='HTC_'){c=new Ext.Version('2.3')}else {if(e&&e==='Silk/'){c=new Ext.Version('2.3')}else {c=new Ext.Version(f[f.length-1])}}break}}}if(!a){a=g[(j.toLowerCase().match(/mac|win|linux/)||['other'])[0]];c=new Ext.Version('')}this.name=a;this.version=c;if(k){this.setFlag(k.replace(/ simulator$/i,''))}this.setFlag(a);if(c){this.setFlag(a+(c.getMajor()||''));this.setFlag(a+c.getShortVersion())}for(d in g){if(g.hasOwnProperty(d)){i=g[d];if(!m.hasOwnProperty(a)){this.setFlag(i,a===i)}}}if(this.name==='iOS'&&window.screen.height===568){this.setFlag('iPhone5')}if(b.is.Safari||b.is.Silk){if(this.is.Android2||this.is.Android3||b.version.shortVersion===501){b.setFlag('AndroidStock')}if(this.is.Android4){b.setFlag('AndroidStock');b.setFlag('AndroidStock4')}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(b,a){if(a===undefined){a=!0}if(this.flags){this.flags[b]=a}this.is[b]=a;this.is[b.toLowerCase()]=a;return this}};(function(){var h=Ext.global.navigator,i=h.userAgent,e=Ext.env.OS,f=Ext.is||(Ext.is={}),a,c,b;e.prototype.flags=f;Ext.os=a=new e(i,h.platform);c=a.name;Ext['is'+c]=!0;Ext.isMac=f.Mac=f.MacOS;var d=window.location.search.match(/deviceType=(Tablet|Phone)/),g=window.deviceType;if(d&&d[1]){b=d[1]}else {if(g==='iPhone'){b='Phone'}else {if(g==='iPad'){b='Tablet'}else {if(!a.is.Android&&!a.is.iOS&&!a.is.WindowsPhone&&/Windows|Linux|MacOS/.test(c)){b='Desktop';Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else {if(a.is.iPad||a.is.RIMTablet||a.is.Android3||Ext.browser.is.Silk||a.is.Android&&i.search(/mobile/i)===-1){b='Tablet'}else {b='Phone'}}}}}a.setFlag(b,!0);a.deviceType=b;delete e.prototype.flags})();Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a='div'}else {if(typeof a!=='string'){return a}}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(a,d){var b=this.getTestElement(d).style,c=Ext.String.capitalize(a);if(typeof b[a]!=='undefined'||typeof b[Ext.browser.getStylePrefix(a)+c]!=='undefined'){return !0}return !1},isStyleSupportedWithoutPrefix:function(b,c){var a=this.getTestElement(c).style;if(typeof a[b]!=='undefined'){return !0}return !1},isEventSupported:function(e,d){if(d===undefined){d=window}var a=this.getTestElement(d),b='on'+e.toLowerCase(),c=b in a;if(!c){if(a.setAttribute&&a.removeAttribute){a.setAttribute(b,'');c=typeof a[b]==='function';if(typeof a[b]!=='undefined'){a[b]=undefined}a.removeAttribute(b)}}return c},getStyle:function(a,c){var b=a.ownerDocument.defaultView,d=b?b.getComputedStyle(a,null):a.currentStyle;return (d||a.style)[c]},getSupportedPropertyName:function(c,a){var b=Ext.browser.getVendorProperyName(a);if(b in c){return b}else {if(a in c){return a}}return null},detect:function(h){var c=this,g=document,m=c.toRun||c.tests,i=m.length,f=g.createElement('div'),k=[],j=Ext.supports,n=c.has,a,e,b,l,d;f.innerHTML='
    ';if(h){g.body.appendChild(f)}l=c.preDetected[Ext.browser.identity]||[];while(i--){b=m[i];d=l[i];a=b.name;e=b.names;if(d===undefined){if(!h&&b.ready){k.push(b);continue}d=b.fn.call(c,g,f)}if(a){j[a]=n[a]=d}else {if(e){while(e.length){a=e.pop();j[a]=n[a]=d}}}}if(h){g.body.removeChild(f)}c.toRun=k},report:function(){var b=[],c=this.tests.length,a;for(a=0;a
    ';b=a.childNodes.length===1;a.innerHTML='';return b}},{name:'touchScroll',fn:function(){var a=0;if(Ext.os.is.Desktop&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)){a=1}else {if(Ext.supports.Touch){a=2}}return a}},{name:'Touch',fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return Ext.supports.TouchEvents&&a!==1||a>1}else {return Ext.supports.TouchEvents||a>0}}},{name:'TouchEvents',fn:function(){return this.isEventSupported('touchend')}},{name:'PointerEvents',fn:function(){return navigator.pointerEnabled}},{name:'MSPointerEvents',fn:function(){return navigator.msPointerEnabled}},{name:'Orientation',fn:function(){return 'orientation' in window&&this.isEventSupported('orientationchange')}},{name:'OrientationChange',fn:function(){return this.isEventSupported('orientationchange')}},{name:'DeviceMotion',fn:function(){return this.isEventSupported('devicemotion')}},{names:['Geolocation','GeoLocation'],fn:function(){return 'geolocation' in window.navigator}},{name:'SqlDatabase',fn:function(){return 'openDatabase' in window}},{name:'WebSockets',fn:function(){return 'WebSocket' in window}},{name:'Range',fn:function(){return !!document.createRange}},{name:'CreateContextualFragment',fn:function(){var a=!!document.createRange?document.createRange():!1;return a&&!!a.createContextualFragment}},{name:'History',fn:function(){return 'history' in window&&'pushState' in window.history}},{name:'Css3dTransforms',fn:function(){return this.has('CssTransforms')&&this.isStyleSupported('perspective')}},{name:'CssTransforms',fn:function(){return this.isStyleSupported('transform')}},{name:'CssTransformNoPrefix',fn:function(){return this.isStyleSupportedWithoutPrefix('transform')}},{name:'CssAnimations',fn:function(){return this.isStyleSupported('animationName')}},{names:['CssTransitions','Transitions'],fn:function(){return this.isStyleSupported('transitionProperty')}},{names:['Audio','AudioTag'],fn:function(){return !!this.getTestElement('audio').canPlayType}},{name:'Video',fn:function(){return !!this.getTestElement('video').canPlayType}},{name:'LocalStorage',fn:function(){try{if('localStorage' in window&&window['localStorage']!==null){localStorage.setItem('sencha-localstorage-test','test success');localStorage.removeItem('sencha-localstorage-test');return !0}}catch(b){}return !1}},{name:'XHR2',fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&'withCredentials' in new XMLHttpRequest()}},{name:'XHRUploadProgress',fn:function(){if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){var a=new XMLHttpRequest();return a&&'upload' in a&&'onprogress' in a.upload}return !1}},{name:'NumericInputPlaceHolder',fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:'matchesSelector',fn:function(){var a=document.documentElement,d='matches',e='webkitMatchesSelector',b='msMatchesSelector',c='mozMatchesSelector';return a[d]?d:a[e]?e:a[b]?b:a[c]?c:null}},{name:'RightMargin',ready:!0,fn:function(c,b){var a=c.defaultView;return !(a&&a.getComputedStyle(b.firstChild.firstChild,null).marginRight!=='0px')}},{name:'DisplayChangeInputSelectionBug',fn:function(){var a=Ext.webKitVersion;return 0a';b=a.firstChild;a.innerHTML='
    b
    ';return b.innerHTML!=='a'}},{name:'IncludePaddingInWidthCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetWidth===210}},{name:'IncludePaddingInHeightCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetHeight===210}},{name:'TextAreaMaxLength',fn:function(a){return 'maxlength' in a.createElement('textarea')}},{name:'GetPositionPercentage',ready:!0,fn:function(b,a){return Ext.feature.getStyle(a.childNodes[2],'left')==='10%'}},{name:'PercentageHeightOverflowBug',ready:!0,fn:function(d){var c=!1,b,a;if(Ext.getScrollbarSize().height){a=this.getTestElement();b=a.style;b.height='50px';b.width='50px';b.overflow='auto';b.position='absolute';a.innerHTML=['
    ','
    ','
    '].join('');d.body.appendChild(a);if(a.firstChild.offsetHeight===50){c=!0}d.body.removeChild(a)}return c}},{name:'xOriginBug',ready:!0,fn:function(e,b){b.innerHTML='
    ';var a=document.getElementById('b1').getBoundingClientRect(),c=document.getElementById('b2').getBoundingClientRect(),d=document.getElementById('b3').getBoundingClientRect();return c.left!==a.left&&d.right!==a.right}},{name:'ScrollWidthInlinePaddingBug',ready:!0,fn:function(c){var d=!1,a,b;b=c.createElement('div');a=b.style;a.height='50px';a.width='50px';a.padding='10px';a.overflow='hidden';a.position='absolute';b.innerHTML='';c.body.appendChild(b);if(b.scrollWidth===70){d=!0}c.body.removeChild(b);return d}},{name:'rtlVertScrollbarOnRight',ready:!0,fn:function(d,c){c.innerHTML='
    ';var a=c.firstChild,b=a.firstChild;return b.offsetLeft+b.offsetWidth!==a.offsetLeft+a.offsetWidth}},{name:'rtlVertScrollbarOverflowBug',ready:!0,fn:function(c,b){b.innerHTML='
    ';var a=b.firstChild;return a.clientHeight===a.offsetHeight}},{identity:'defineProperty',fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return !1}return !0}},{identify:'nativeXhr',fn:function(){if(typeof XMLHttpRequest!=='undefined'){return !0}XMLHttpRequest=function(){try{return new ActiveXObject('MSXML2.XMLHTTP.3.0')}catch(b){return null}};return !1}},{name:'SpecialKeyDownRepeat',fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(Ext.isGecko&&!Ext.isWindows||Ext.isOpera&&Ext.operaVersion<12)}},{name:'EmulatedMouseOver',fn:function(){return Ext.os.is.iOS}},{name:'Hashchange',fn:function(){var a=document.documentMode;return 'onhashchange' in window&&(a===undefined||a>7)}},{name:'FixedTableWidthBug',ready:!0,fn:function(){if(Ext.isIE8){return !1}var a=document.createElement('div'),b=document.createElement('div'),c;a.setAttribute('style','display:table;table-layout:fixed;');b.setAttribute('style','display:table-cell;min-width:50px;');a.appendChild(b);document.body.appendChild(a);a.offsetWidth;a.style.width='25px';c=a.offsetWidth;document.body.removeChild(a);return c===50}},{name:'FocusinFocusoutEvents',fn:function(){return !Ext.isGecko}},{name:'AsyncFocusEvents',fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:'accessibility',ready:!0,fn:function(f){var g=f.body,b,c,a,e,d;function getColor(a){var c=[],e=0,g,b;if(a.indexOf('rgb(')!==-1){c=a.replace('rgb(','').replace(')','').split(', ')}else {if(a.indexOf('#')!==-1){g=a.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;b=a.match(g);if(b){c=['0x'+b[1],'0x'+b[2],'0x'+b[3]]}}}for(var d=0;d0};Ext.supports.HighContrastMode=!e.BackgroundImages;g.removeChild(b);b=c=null;return e}},0]};Ext.feature.tests.pop();Ext.supports={};Ext.feature.detect();Ext.env.Ready={blocks:(location.search||'').indexOf('ext-pauseReadyFire')>0?1:0,bound:0,delay:1,firing:!1,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==='complete'){a.onReadyEvent({type:b.readyState||'body'})}else {a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener('deviceready',a.onReadyEvent,!1)}b.addEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.addEventListener('load',a.onReadyEvent,!1)}}},block:function(){++this.blocks;Ext.isReady=!1},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=!0;a.state=1;Ext.feature.detect(!0);if(!a.delay){a.handleReady()}else {if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else {a.handleReadySoon()}}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(b){var a=this;if(!a.timer){a.timer=Ext.defer(function(){a.timer=null;a.handleReady()},b||a.delay)}},invoke:function(a){var b=a.delay;if(b){Ext.defer(a.fn,b,a.scope)}else {if(Ext.elevateFunction){Ext.elevateFunction(a.fn,a.scope)}else {a.fn.call(a.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else {this.doInvokeAll()}},doInvokeAll:function(){var a=this,b=a.listeners,c;if(!a.blocks){Ext.isReady=!0}a.firing=!0;while(b.length){if(a.sortGeneration!==a.generation){a.sortGeneration=a.generation;b.sort(a.sortFn)}c=b.pop();if(a.blocks&&!c.dom){b.push(c);break}a.invoke(c)}a.firing=!1},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:!1,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(e,d,c){var a=Ext.env.Ready,b=a.makeListener(e,d,c);if(a.state===2&&!a.firing&&(b.dom||!a.blocks)){a.invoke(b)}else {a.listeners.push(b);++a.generation;if(!a.bound){a.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else {a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(a,b){return -(a.phase-b.phase||b.priority-a.priority||a.id-b.id)},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener('deviceready',a.onReadyEvent,!1)}b.removeEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.removeEventListener('load',a.onReadyEvent,!1)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=!0;try{document.documentElement.doScroll('left')}catch(c){b=!1}if(b&&document.body){a.onReadyEvent({type:'doScroll'})}else {a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){if(a.bound){return}var b=document,c;try{c=window.frameElement===undefined}catch(d){}if(!c||!b.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else {if(a.pollScroll()){return}}if(b.readyState==='complete'){a.onReadyEvent({type:'already '+(b.readyState||'body')})}else {b.attachEvent('onreadystatechange',a.onReadyStateChange);window.attachEvent('onload',a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent('onreadystatechange',a.onReadyStateChange);window.detachEvent('onload',a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){clearTimeout(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:!0};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()})();Ext.Loader=new function(){var a=this,b=Ext.ClassManager,i=Ext.Boot,o=Ext.Class,c=Ext.env.Ready,k=Ext.Function.alias,h=['extend','mixins','requires'],j={},m=[],f=[],g=[],l={},d={},e={enabled:!0,scriptChainDelay:!1,disableCaching:!0,disableCachingParam:'_dc',paths:b.paths,preserveScripts:!0,scriptCharset:undefined},n={disableCaching:!0,disableCachingParam:!0,preserveScripts:!0,scriptChainDelay:'loadDelay'};Ext.apply(a,{isInHistory:j,isLoading:!1,history:m,config:e,readyListeners:f,optionalRequires:g,requiresMap:l,hasFileLoadError:!1,scriptsLoading:0,syncModeEnabled:!1,missingQueue:d,init:function(){var k=document.getElementsByTagName('script'),m=k[k.length-1].src,n=m.substring(0,m.lastIndexOf('/')+1),l=Ext._classPathMetadata,h=Ext.Microloader,g=Ext.manifest,d,i,j,e,f;if(!b.getPath('Ext')){b.setPath('Ext',n+'src')}if(l){Ext._classPathMetadata=null;a.addClassPathMappings(l)}if(g){d=g.loadOrder;i=Ext.Boot.baseUrl;if(d&&g.bootRelative){for(j=d.length,e=0;e1?'es':'')+': '+g.join(', '))}if(l.length){a.loadScripts({url:l,_classNames:g})}else {a.checkReady()}}else {if(c){c.call(k)}a.checkReady()}if(a.syncModeEnabled){if(m===1){return b.get(h[0])}}return a},makeLoadCallback:function(a,c){return function(){var e=[],d=a.length;while(d-->0){e[d]=b.get(a[d])}return c.apply(this,e)}},onLoadFailure:function(){var b=this,c=b.onError;a.hasFileLoadError=!0;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onLoadSuccess:function(){var b=this,c=b.onLoad;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onReady:function(g,e,h,d){if(h){c.on(g,e,d)}else {var b=c.makeListener(g,e,d);if(a.isLoading){f.push(b)}else {c.invoke(b)}}},addUsedClasses:function(b){var c,d,e;if(b){b=typeof b==='string'?[b]:b;for(d=0,e=b.length;d0){a.loadScripts({url:b,sequential:!0})}}}if(h.uses){b=h.uses;a.addUsedClasses(b)}});b.onCreated(a.historyPush);a.init()}();Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}Ext.cmd.derive('Ext.Mixin',Ext.Base,function(a){return {statics:{addHook:function(e,c,d,h){var g=Ext.isFunction(e),b=function(){var b=arguments,i=g?e:h[e],f=this.callParent(b);i.apply(this,b);return f},f=c.hasOwnProperty(d)&&c[d];if(g){e.$previous=Ext.emptyFn}b.$name=d;b.$owner=c.self;if(f){b.$previous=f.$previous;f.$previous=b}else {c[d]=b}}},onClassExtended:function(k,c){var b=c.mixinConfig,d=c.xhooks,j=k.superclass,i=c.onClassMixedIn,h,f,g,e;if(d){delete c.xhooks;(b||(c.mixinConfig=b={})).on=d}if(b){h=j.mixinConfig;if(h){c.mixinConfig=b=Ext.merge({},h,b)}c.mixinId=b.id;f=b.before;g=b.after;d=b.on;e=b.extended}if(f||g||d||e){c.onClassMixedIn=function(b){var h=this.prototype,l=b.prototype,j;if(f){Ext.Object.each(f,function(e,d){b.addMember(e,function(){if(h[d].apply(this,arguments)!==!1){return this.callParent(arguments)}})})}if(g){Ext.Object.each(g,function(e,d){b.addMember(e,function(){var f=this.callParent(arguments);h[d].apply(this,arguments);return f})})}if(d){for(j in d){a.addHook(d[j],l,j,h)}}if(e){b.onExtended(function(){var d=Ext.Array.slice(arguments,0);d.unshift(b);return e.apply(this,d)},this)}if(i){i.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,'Mixin'],0);Ext.util=Ext.util||{};Ext.util.DelayedTask=function(e,c,d,b,g){var a=this,f,h=function(){var f=Ext.GlobalEvents;clearInterval(a.id);a.id=null;e.apply(c,d||[]);if(g!==!1&&f.hasListeners.idle){f.fireEvent('idle')}};b=typeof b==='boolean'?b:!0;a.id=null;a.delay=function(i,l,j,k){if(b){a.cancel()}if(typeof i==='number'){f=i}e=l||e;c=j||c;d=k||d;if(!a.id){a.id=Ext.interval(h,f)}};a.cancel=function(){if(a.id){clearInterval(a.id);a.id=null}}};Ext.cmd.derive('Ext.util.Event',Ext.Base,function(){var d=Array.prototype.slice,c=Ext.Array.insert,b=Ext.Array.toArray,a={};return {isEvent:!0,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(r,q,g,t,s){var a=this,p=!1,l=a.observable,o=a.name,d,m,i,h,f,k,j,b,e,n;if(a.findListener(r,q)===-1){m=a.createListener(r,q,g,t,s);if(a.firing){a.listeners=a.listeners.slice(0)}d=a.listeners;b=j=d.length;i=g&&g.priority;f=a._highestNegativePriorityIndex;k=f!==undefined;if(i){h=i<0;if(!h||k){for(e=h?f:0;e0},fireDelegated:function(a,b){this.firingObservable=a;return this.fire.apply(this,b)},fire:function(){var e=this,r=e.listeners,t=r.length,n=e.observable,i=n.isElement,w=n.isComponent,v=e.firingObservable,b,o,f,k,c,j,u,h,l,p,g,m,a,s,q;if(!e.suspended&&t>0){e.firing=!0;c=arguments.length?d.call(arguments,0):[];u=c.length;if(i){a=c[0]}for(k=0;k4?b:e;b=e;for(e in b){if(b.hasOwnProperty(e)){g=b[e];if(!h.$eventOptions[e]){f.addManagedListener(h,e,g.fn||g,g.scope||b.scope||i,g.fn?g:k,!0)}}}if(b&&b.destroyable){return new a(f,h,b)}}else {if(j!==d){h.doAddListener(e,j,i,b,null,f,f);if(!l&&b&&b.destroyable){return new a(f,h,e,j,i)}}}},removeManagedListener:function(h,a,k,j){var e=this,b,d,g,i,f;if(typeof a!=='string'){b=a;for(a in b){if(b.hasOwnProperty(a)){d=b[a];if(!h.$eventOptions[a]){e.removeManagedListener(h,a,d.fn||d,d.scope||b.scope||j)}}}}else {g=e.managedListeners?e.managedListeners.slice():[];a=Ext.canonicalEventName(a);for(f=0,i=g.length;f0,d=this.events;if(!b&&a&&d){a=d[a];if(a&&a.isEvent){return a.isSuspended()}}return b},suspendEvents:function(a){++this.eventsSuspended;if(a&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var e=this,f=e.events,g=arguments.length,d,b,a;for(d=0;d0){i.push(g)}d--;if(d===0){f.resolve(i)}return g};m=function(d){h--;if(h===0){f.reject(new Error('Too few Promises were resolved.'))}return d};for(g=j=0,n=e.length;j0){b.type=a.substring(0,e);b.defaultType=a.substring(e+1)}if(f){delete d.factoryConfig;Ext.apply(b,f)}g=Ext.Factory.define(b.type,b);if(c.create===Ext.Base.create){c.create=g}}},0,0,0,0,0,0,[Ext.mixin,'Factoryable'],0);Ext.cmd.derive('Ext.data.request.Base',Ext.Base,{factoryConfig:{type:'request',defaultType:'ajax'},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=!0}a.abort=Ext.emptyFn},createDeferred:function(){return this.deferred=new Ext.Deferred()},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var a=this,b=a.deferred,c=a.result;a.clearTimer();if(b){if(a.success){b.resolve(c)}else {b.reject(c)}}},onTimeout:function(){var a=this;a.timedout=!0;a.timer=null;a.abort(!0)},getTimeout:function(){return this.timeout},clearTimer:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var a=this,b;b={request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?'transaction aborted':'communication failure',getResponseHeader:a._getHeader,getAllResponseHeaders:a._getHeaders};if(a.aborted){b.aborted=!0}if(a.timedout){b.timedout=!0}return b},_getHeader:function(b){var a=this.headers;return a&&a[b.toLowerCase()]},_getHeaders:function(){return this.headers}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.request,'Base'],0);Ext.cmd.derive('Ext.data.flash.BinaryXhr',Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=!0;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById('ext-flash-polyfill');Ext.GlobalEvents.fireEvent('flashready')},flashPluginActive:!1,flashPluginInjected:!1,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(b,c,d){var a;a=this.liveConnections[Number(b)];if(a){a.onFlashStateChange(c,d)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var c=this,b,a;c.flashPolyfillEl=Ext.getBody().appendChild({id:'ext-flash-polyfill',cn:[{tag:'p',html:'To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed.'},{tag:'a',href:'http://www.adobe.com/go/getflashplayer',cn:[{tag:'img',src:window.location.protocol+'//www.adobe.com/images/shared/download_buttons/get_flash_player.gif',alt:'Get Adobe Flash player'}]}]});b=[Ext.Loader.getPath('Ext.data.Connection'),'../../../plugins/flash/swfobject.js'].join('/');a='/plugins/flash/FlashPlugin.swf';if(Ext.flashPluginPath){a=Ext.flashPluginPath}Ext.Loader.loadScript({url:b,onLoad:function(){var d='11.4.0';var e='playerProductInstall.swf';var f={};var b={};b.quality='high';b.bgcolor='#ffffff';b.allowscriptaccess='sameDomain';b.allowfullscreen='true';var c={};c.id='ext-flash-polyfill';c.name='polyfill';c.align='middle';swfobject.embedSWF(a,'ext-flash-polyfill','0','0',d,e,f,b,c)},onError:function(){},scope:c});Ext.data.flash.BinaryXhr.flashPluginInjected=!0}},readyState:0,status:0,statusText:'',responseBytes:null,javascriptId:null,constructor:function(b){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var a=this;Ext.apply(a,b);a.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=!0;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener('flashready',a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(c,b){a.push(c+': '+b)});return a.join('\r\n')},getResponseHeader:function(b){var a=this.responseHeaders;return a&&a[b]||null},open:function(c,f,d,e,b){var a=this;a.method=c;a.url=f;a.async=d!==!1;a.user=e;a.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(b){var a=this;a.body=b;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener('flashready',a.onFlashReady,a)}else {this.onFlashReady()}},onFlashReady:function(){var a=this,b,c;a.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(a);b={method:a.method,url:a.url,user:a.user,password:a.password,mimeType:a.mimeType,requestHeaders:a.requestHeaders,body:a.body,javascriptId:a.javascriptId};c=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(a,b){this.requestHeaders[a]=b},onreadystatechange:Ext.emptyFn,parseData:function(a){var b=this;this.status=a.status||0;b.responseHeaders={};if(b.mimeType){b.responseHeaders['content-type']=b.mimeType}if(a.reason=='complete'){this.responseBytes=a.data;b.responseHeaders['content-length']=a.data.length}else {if(a.reason=='error'||a.reason=='securityError'){this.statusText=a.text;b.responseHeaders['content-length']=0}}},onFlashStateChange:function(b,c){var a=this;if(b==4){a.parseData(c);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(b)}},1,0,0,0,0,0,[Ext.data.flash,'BinaryXhr'],0);Ext.cmd.derive('Ext.data.request.Ajax',Ext.data.request.Base,{statics:{parseStatus:function(a){a=a==1223?204:a;var c=a>=200&&a<300||a==304,b=!1;if(!c){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:b=!0;break;}}return {success:c,isException:b}}},start:function(f){var a=this,e=a.options,c=a.requestOptions,d=a.isXdr,b,g;b=a.xhr=a.openRequest(e,c,a.async,a.username,a.password);if(!d){g=a.setupHeaders(b,e,c.data,c.params)}if(a.async){if(!d){b.onreadystatechange=Ext.Function.bind(a.onStateChange,a)}}if(d){a.processXdrRequest(a,b)}Ext.data.request.Base.prototype.start.call(this,f);b.send(f);if(!a.async){return a.onComplete()}return a},abort:function(c){var a=this,b=a.xhr;if(c||a.isLoading()){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=Ext.emptyFn}b.abort();Ext.data.request.Base.prototype.abort.call(this,c);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var c=this,a=c.xhr,b=a&&a.readyState,d=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!a||c.aborted||c.timedout){return !1}if(d&&a instanceof d){return b!==4}return b!==0&&b!==4},openRequest:function(d,b,f,e,g){var c=this,a=c.newRequest(d);if(e){a.open(b.method,b.url,f,e,g)}else {if(c.isXdr){a.open(b.method,b.url)}else {a.open(b.method,b.url,f)}}if(d.binary||c.binary){if(window.Uint8Array){a.responseType='arraybuffer'}else {if(a.overrideMimeType){a.overrideMimeType('text/plain; charset=x-user-defined')}}}if(d.withCredentials||c.withCredentials){a.withCredentials=!0}return a},newRequest:function(c){var a=this,b;if(c.binaryData){if(window.Uint8Array){b=a.getXhrInstance()}else {b=new Ext.data.flash.BinaryXhr()}}else {if(a.cors&&Ext.isIE9m){b=a.getXdrInstance();a.isXdr=!0}else {b=a.getXhrInstance();a.isXdr=!1}}return b},setupHeaders:function(m,f,j,l){var d=this,a=Ext.apply({},f.headers||{},d.defaultHeaders),e=d.defaultPostHeader,h=f.jsonData,i=f.xmlData,b='Content-Type',k=d.useDefaultXhrHeader,c,g;if(!a.hasOwnProperty(b)&&(j||l)){if(j){if(f.rawData){e='text/plain'}else {if(i&&Ext.isDefined(i)){e='text/xml'}else {if(h&&Ext.isDefined(h)){e='application/json'}}}}a[b]=e}if(k&&!a['X-Requested-With']){a['X-Requested-With']=d.defaultXhrHeader}if(a[b]===undefined||a[b]===null){delete a[b]}try{for(c in a){if(a.hasOwnProperty(c)){g=a[c];m.setRequestHeader(c,g)}}}catch(n){d.owner.fireEvent('exception',c,g)}return a},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else {Ext.raise({msg:'Your browser does not support CORS'})}return a},getXhrInstance:function(){var c=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject('MSXML2.XMLHTTP.3.0')},function(){return new ActiveXObject('MSXML2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')}],b=0,d=c.length,a;for(;b=0){j=e.substr(0,c).toLowerCase();if(e.charAt(c+1)==' '){++c}f[j]=e.substr(c+1)}}b={request:d,requestId:d.id,status:a.status,statusText:a.statusText,getResponseHeader:function(b){return f[b.toLowerCase()]},getAllResponseHeaders:function(){return f}};if(h){d.processXdrResponse(b,a)}if(d.binary){b.responseBytes=d.getByteArray(a)}else {b.responseText=a.responseText;b.responseXML=a.responseXML}return b},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(b){var e=b.response,g=b.responseBody,h=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,d,f,c;if(b instanceof h){a=b.responseBytes}else {if(window.Uint8Array){a=e?new Uint8Array(e):[]}else {if(Ext.isIE9p){try{a=(new VBArray(g)).toArray()}catch(i){a=[]}}else {if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(b.responseBody,a=[])}else {a=[];d=b.responseText;f=d.length;for(c=0;c=500){this.run()}},run:function(){var a=this;if(!a.isRunning){return}var b=a.runningQueue,d=Ext.now(),c,e;a.lastRunTime=d;a.frameStartTime=d;b.push.apply(b,a.queue);for(c=0,e=b.length;c0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty('taskQueueTimer')){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var a=this.taskQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}}},1,0,0,0,0,0,[Ext,'AnimationQueue'],0);Ext.cmd.derive('Ext.ComponentManager',Ext.Base,{alternateClassName:'Ext.ComponentMgr',singleton:!0,count:0,typeName:'xtype',constructor:function(b){var a=this;Ext.apply(a,b||{});a.all={};a.references={};a.onAvailableCallbacks={}},create:function(a,b){if(typeof a==='string'){return Ext.widget(a)}if(a.isComponent){return a}if('xclass' in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(b){var a=this,e=a.all,d=b.getId(),c=a.onAvailableCallbacks;e[d]=b;if(b.getReference&&b.getReference()){a.references[d]=b}++a.count;if(!a.hasFocusListener){Ext.on('focus',a.onGlobalFocus,a);a.hasFocusListener=!0}c=c&&c[d];if(c&&c.length){a.notifyAvailable(b)}},unregister:function(b){var a=b.getId();if(b.getReference&&b.getReference()){this.references[a]=null;delete this.references[a]}this.all[a]=null;delete this.all[a];this.count--},markReferencesDirty:function(){this.referencesDirty=!0},fixReferences:function(){var c=this,a=c.references,b;if(c.referencesDirty){for(b in a){if(a.hasOwnProperty(b)){a[b].fixReference()}}c.referencesDirty=!1}},onAvailable:function(a,f,d){var g=this,b=g.onAvailableCallbacks,e=g.all,c;if(a in e){c=e[a];f.call(d||c,c)}else {if(a){if(!Ext.isArray(b[a])){b[a]=[]}b[a].push(function(b){f.call(d||b,b)})}}},notifyAvailable:function(a){var b=this.onAvailableCallbacks[a&&a.getId()]||[];while(b.length){b.shift()(a)}},each:function(b,a){return Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.fromElement(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(d){var h=this,g=d.toElement,f=d.fromElement,c=Ext.Component.fromElement(g),b=Ext.Component.fromElement(f),e,a;if(c===b){return}e=h.getCommonAncestor(b,c);if(b&&!(b.destroyed||b.destroying)){if(b.handleBlurEvent){b.handleBlurEvent(d)}for(a=b;a&&a!==e;a=a.getRefOwner()){if(!(a.destroyed||a.destroying)){a.onFocusLeave({event:d.event,type:'focusleave',target:f,relatedTarget:g,fromComponent:b,toComponent:c})}}}if(c&&!c.destroyed){if(c.handleFocusEvent){c.handleFocusEvent(d)}for(a=c;a&&a!==e;a=a.getRefOwner()){a.onFocusEnter({event:d.event,type:'focusenter',relatedTarget:f,target:g,fromComponent:b,toComponent:c})}}},getCommonAncestor:function(a,b){if(a===b){return a}while(a&&!(a.isAncestor(b)||a===b)){a=a.getRefOwner()}return a},privates:{clearAll:function(){this.all={};this.references={};this.onAvailableCallbacks={}},fromElement:function(i,b,e){var a=Ext.getDom(i),h=this.all,g=0,f,d,c;if(typeof b!=='number'){f=Ext.getDom(b);b=Number.MAX_VALUE}while(a&&a.nodeType===1&&g0){for(;a.first&&b;b--){a.removeAtKey(a.first.key)}}},destroy:function(){this.first=this.last=null;Ext.util.HashMap.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util,'LruCache'],0);Ext.cmd.derive('Ext.ComponentQuery',Ext.Base,{singleton:!0},0,0,0,0,0,0,[Ext,'ComponentQuery'],function(){var a=this,f=Ext.util.Operators,r=/(\d*)n\+?(\d*)/,q=/\D/,c=/^(\s)+/,b=/\\(.)/g,j=new Ext.util.LruCache({maxSize:100}),m=['var r = [],','i = 0,','it = items,','l = it.length,','c;','for (; i < l; i++) {','c = it[i];','if (c.{0}) {','r.push(c);','}','}','return r;'].join(''),d=function(b,a){return a.method.apply(this,[b].concat(a.args))},e=function(d,g){var b=[],c=0,e=d.length,a,f=g!=='>';for(;c\^])\s?|\s|$)/,o=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,k=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:g,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:l,argTransform:function(c){var g=c[0],f=c[1],e=c[2],a=c[4],d;if(a!==undefined){a=a.replace(b,'$1')}if(e==='/='){d=j.get(a);if(d){a=d}else {a=j.add(a,new RegExp(a))}}return [f,e,a]}},{re:/^#((?:\\\.|[\w\-])+)/,method:i},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:n,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:m}];a.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(f){var c=this.operations,b=[],e,a,d;for(a=0,d=c.length;a=0;--c){g=l[c];b=g.mode;if(b){if(b==='^'){a=e(a,' ')}else {if(b==='>'){i=[];for(f=0,k=a.length;f1}});Ext.apply(a,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(d,f){var c=0,g=d.length,e=[],h=-1,b;for(;c0){b.push(a[0])}return b},last:function(a){var b=a.length,c=[];if(b>0){c.push(a[b-1])}return c},focusable:function(d){var e=d.length,c=[],b=0,a;for(;b=c.left&&(t=='t'&&v=='b'||t=='b'&&v=='t');o=f=c.top&&(s=='r'&&u=='l'||s=='l'&&u=='r');if(e+k>a.right){if(o){e=c.left-k;o=!1}else {e=a.right-k}}if(ea.bottom){if(p){f=c.top-j;p=!1}else {f=a.bottom-j}}if(fa.right){e=!0;d[0]=a.right-b.right}if(b.left+d[0]a.bottom){e=!0;d[1]=a.bottom-b.bottom}if(b.top+d[1]=b.x&&a.right<=b.right&&a.y>=b.y&&a.bottom<=b.bottom},intersect:function(a){var b=this,f=Math.max(b.y,a.y),e=Math.min(b.right,a.right),c=Math.min(b.bottom,a.bottom),d=Math.max(b.x,a.x);if(c>f&&e>d){return new this.self(f,e,c,d)}else {return !1}},union:function(a){var b=this,f=Math.min(b.y,a.y),e=Math.max(b.right,a.right),c=Math.max(b.bottom,a.bottom),d=Math.min(b.x,a.x);return new this.self(f,e,c,d)},constrainTo:function(b){var a=this,c=Ext.Number.constrain;a.top=a.y=c(a.top,b.y,b.bottom);a.bottom=c(a.bottom,b.y,b.bottom);a.left=a.x=c(a.left,b.x,b.right);a.right=c(a.right,b.x,b.right);return a},adjust:function(e,c,b,d){var a=this;a.top=a.y+=e;a.left=a.x+=d;a.right+=c;a.bottom+=b;return a},getOutOfBoundOffset:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.getOutOfBoundOffsetX(a)}else {return this.getOutOfBoundOffsetY(a)}}else {a=b;var c=new Ext.util.Offset();c.x=this.getOutOfBoundOffsetX(a.x);c.y=this.getOutOfBoundOffsetY(a.y);return c}},getOutOfBoundOffsetX:function(a){if(a<=this.x){return this.x-a}else {if(a>=this.right){return this.right-a}}return 0},getOutOfBoundOffsetY:function(a){if(a<=this.y){return this.y-a}else {if(a>=this.bottom){return this.bottom-a}}return 0},isOutOfBound:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.isOutOfBoundX(a)}else {return this.isOutOfBoundY(a)}}else {a=b;return this.isOutOfBoundX(a.x)||this.isOutOfBoundY(a.y)}},isOutOfBoundX:function(a){return athis.right},isOutOfBoundY:function(a){return athis.bottom},restrict:function(d,a,b){if(Ext.isObject(d)){var c;b=a;a=d;if(a.copy){c=a.copy()}else {c={x:a.x,y:a.y}}c.x=this.restrictX(a.x,b);c.y=this.restrictY(a.y,b);return c}else {if(d=='x'){return this.restrictX(a,b)}else {return this.restrictY(a,b)}}},restrictX:function(a,b){if(!b){b=1}if(a<=this.x){a-=(a-this.x)*b}else {if(a>=this.right){a-=(a-this.right)*b}}return a},restrictY:function(a,b){if(!b){b=1}if(a<=this.y){a-=(a-this.y)*b}else {if(a>=this.bottom){a-=(a-this.bottom)*b}}return a},getSize:function(){return {width:this.right-this.x,height:this.bottom-this.y}},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(b){var a=this;a.top=a.y=a[1]=b.y;a.right=b.right;a.bottom=b.bottom;a.left=a.x=a[0]=b.x;return this},toString:function(){return 'Region['+this.top+','+this.right+','+this.bottom+','+this.left+']'},translateBy:function(b,c){if(arguments.length==1){c=b.y;b=b.x}var a=this;a.top=a.y+=c;a.right+=b;a.bottom+=c;a.left=a.x+=b;return a},round:function(){var a=this;a.top=a.y=Math.round(a.y);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);a.left=a.x=Math.round(a.x);return a},equals:function(a){return this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left}},3,0,0,0,0,0,[Ext.util,'Region'],0);Ext.cmd.derive('Ext.util.Point',Ext.util.Region,{radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(b){var a=b.changedTouches,c=a&&a.length>0?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}Ext.util.Region.prototype.constructor.call(this,b,a,b,a)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return 'Point['+this.x+','+this.y+']'},equals:function(a){return this.x===a.x&&this.y===a.y},isCloseTo:function(b,a){if(typeof a=='number'){return this.getDistanceTo(b)<=a}var e=b.x,f=b.y,c=a.x,d=a.y;return this.x<=e+c&&this.x>=e-c&&this.y<=f+d&&this.y>=f-d},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=='object'){a=this.origin}return Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y)},getDistanceTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.sqrt(b*b+c*c)},getAngleTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.atan2(c,b)*this.radianToDegreeConstant}},3,0,0,0,0,0,[Ext.util,'Point'],function(){this.prototype.translate=this.prototype.translateBy});Ext.cmd.derive('Ext.event.Event',Ext.Base,{alternateClassName:'Ext.EventObjectImpl',isStopped:!1,defaultPrevented:!1,isEvent:!0,statics:{resolveTextNode:function(a){return a&&a.nodeType===3?a.parentNode:a},pointerEvents:{pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerDown:1,MSPointerMove:1,MSPointerUp:1,MSPointerOver:1,MSPointerOut:1,MSPointerCancel:1,MSPointerEnter:1,MSPointerLeave:1},mouseEvents:{mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1,mouseenter:1,mouseleave:1},clickEvents:{click:1,dblclick:1},touchEvents:{touchstart:1,touchmove:1,touchend:1,touchcancel:1},focusEvents:{focus:1,blur:1,focusin:1,focusout:1,focusenter:1,focusleave:1},pointerTypes:{2:'touch',3:'pen',4:'mouse',touch:'touch',pen:'pen',mouse:'mouse'}},constructor:function(b){var a=this,c=a.self,h=a.self.resolveTextNode,i=b.changedTouches,g=i?i[0]:b,d=b.type,e,f;a.pageX=g.pageX;a.pageY=g.pageY;a.target=a.delegatedTarget=h(b.target);f=b.relatedTarget;if(f){a.relatedTarget=h(f)}a.browserEvent=a.event=b;a.type=d;a.button=b.button||0;a.shiftKey=b.shiftKey;a.ctrlKey=b.ctrlKey||b.metaKey||!1;a.altKey=b.altKey;a.charCode=b.charCode;a.keyCode=b.keyCode;a.buttons=b.buttons;if(a.button===0&&a.buttons===0){a.buttons=1}if(c.forwardTab!==undefined&&c.focusEvents[d]){a.forwardTab=c.forwardTab}if(c.mouseEvents[d]||c.clickEvents[d]){e='mouse'}else {if(c.pointerEvents[d]){e=c.pointerTypes[b.pointerType]}else {if(c.touchEvents[d]){e='touch'}}}if(e){a.pointerType=e}a.timeStamp=a.time=+(b.timeStamp||new Date())},chain:function(b){var a=Ext.Object.chain(this);a.parentEvent=this;return Ext.apply(a,b)},correctWheelDelta:function(a){var c=this.WHEEL_SCALE,b=Math.round(a/c);if(!b&&a){b=a<0?-1:1}return b},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.keyCodes[this.keyCode]},getPoint:function(){var a=this.getXY();return new Ext.util.Point(a[0],a[1])},getRelatedTarget:function(d,e,c){var a=this.relatedTarget,b=null;if(a){if(d){b=Ext.fly(a).findParent(d,e,c)}else {b=c?Ext.get(a):a}}return b},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):a?Ext.get(this.target):this.target},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var d=this,a=d.browserEvent,c=0,b=0;if(Ext.isDefined(a.wheelDeltaX)){c=a.wheelDeltaX;b=a.wheelDeltaY}else {if(a.wheelDelta){b=a.wheelDelta}else {if(a.detail){b=-a.detail;if(b>100){b=3}else {if(b<-100){b=-3}}if(Ext.isDefined(a.axis)&&a.axis===a.HORIZONTAL_AXIS){c=b;b=0}}}}return {x:d.correctWheelDelta(c),y:d.correctWheelDelta(b)}},getX:function(){return this.getXY()[0]},getXY:function(){var d=this,c=d.xy;if(!c){c=d.xy=[d.pageX,d.pageY];var g=c[0],e,f,a,b;if(!g&&g!==0){e=d.browserEvent;f=document;a=f.documentElement;b=f.body;c[0]=e.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);c[1]=e.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}}return c},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(c){var a=this,b=a.keyCode,d=a.type==='keypress';return (!d||Ext.isGecko)&&b>=33&&b<=40||!c&&(b===a.RETURN||b===a.TAB||b===a.ESC)},isSpecialKey:function(){var b=this,a=b.keyCode,d=Ext.isGecko,c=b.type==='keypress';return d&&c&&b.charCode===0||this.isNavKeyPress()||a===b.BACKSPACE||a===b.ENTER||a>=16&&a<=20||(!c||d)&&a>=44&&a<=46},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var a=this,b=a.parentEvent;a.defaultPrevented=!0;if(b){b.defaultPrevented=!0}a.browserEvent.preventDefault();return a},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var a=this,b=a.browserEvent,c=a.parentEvent;a.isStopped=!0;if(c){c.isStopped=!0}if(!b.stopPropagation){b.cancelBubble=!0;return a}b.stopPropagation();return a},within:function(b,d,c){var a;if(b){a=d?this.getRelatedTarget():this.getTarget()}return a?Ext.fly(b).contains(a)||!!(c&&a===Ext.getDom(b)):!1},deprecated:{'4.0':{methods:{getPageX:'getX',getPageY:'getY'}}}},1,0,0,0,0,0,[Ext.event,'Event',Ext,'EventObjectImpl'],function(f){var b=f.prototype,a={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,WHEEL_SCALE:function(){var a;if(Ext.isGecko){a=3}else {if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){a=120}else {a=12}a*=3}else {a=120}}return a}()},d={},c,e;Ext.apply(f,a);Ext.apply(b,a);delete a.WHEEL_SCALE;delete a.RETURN;for(c in a){e=a[c];d[e]=c}b.keyCodes=d;b.getTrueXY=b.getXY});Ext.define('Ext.overrides.event.Event',{override:'Ext.event.Event',mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:function(){var a,b={},c;if(!Ext.isIE9m&&document.createEvent){a={createHtmlEvent:function(e,d,c,b){var a=e.createEvent('HTMLEvents');a.initEvent(d,c,b);return a},createMouseEvent:function(d,n,h,f,m,b,c,i,k,g,j,l,e){var a=d.createEvent('MouseEvents'),o=d.defaultView||window;if(a.initMouseEvent){a.initMouseEvent(n,h,f,o,m,b,c,b,c,i,k,g,j,l,e)}else {a=d.createEvent('UIEvents');a.initEvent(n,h,f);a.view=o;a.detail=m;a.screenX=b;a.screenY=c;a.clientX=b;a.clientY=c;a.ctrlKey=i;a.altKey=k;a.metaKey=j;a.shiftKey=g;a.button=l;a.relatedTarget=e}return a},createUIEvent:function(b,f,d,c,e){var a=b.createEvent('UIEvents'),g=b.defaultView||window;a.initUIEvent(f,d,c,g,e);return a},fireEvent:function(a,c,b){a.dispatchEvent(b)}}}else {if(document.createEventObject){c={0:1,1:4,2:2};a={createHtmlEvent:function(d,e,c,b){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},createMouseEvent:function(n,o,i,g,m,b,d,j,l,h,k,e,f){var a=n.createEventObject();a.bubbles=i;a.cancelable=g;a.detail=m;a.screenX=b;a.screenY=d;a.clientX=b;a.clientY=d;a.ctrlKey=j;a.altKey=l;a.shiftKey=h;a.metaKey=k;a.button=c[e]||e;a.relatedTarget=f;return a},createUIEvent:function(d,f,c,b,e){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},fireEvent:function(a,c,b){a.fireEvent('on'+c,b)}}}}Ext.Object.each({load:[!1,!1],unload:[!1,!1],select:[!0,!1],change:[!0,!1],submit:[!0,!0],reset:[!0,!1],resize:[!0,!1],scroll:[!0,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createHtmlEvent(c,f,e);a.fireEvent(b,c,g)}});function createMouseEventDispatcher(b,d){var c=b!=='mousemove';return function(f,e){var g=e.getXY(),h=a.createMouseEvent(f.ownerDocument,b,!0,c,d,g[0],g[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget);a.fireEvent(f,b,h)}}Ext.each(['click','dblclick','mousedown','mouseup','mouseover','mousemove','mouseout'],function(a){b[a]=createMouseEventDispatcher(a,1)});Ext.Object.each({focusin:[!0,!1],focusout:[!0,!1],activate:[!0,!0],focus:[!1,!1],blur:[!1,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createUIEvent(b.ownerDocument,c,f,e,1);a.fireEvent(b,c,g)}});if(!a){b={};a={}}function cannotInject(b,a){}return function(a){var c=this,d=b[c.type]||cannotInject,e=a?a.dom||a:c.getTarget();d(e,c)}}(),preventDefault:function(){var c=this,a=c.browserEvent,e=c.parentEvent,d,b;if(typeof a.type!=='unknown'){c.defaultPrevented=!0;if(e){e.defaultPrevented=!0}if(a.preventDefault){a.preventDefault()}else {if(a.type==='mousedown'){b=a.target;d=b.getAttribute('unselectable');if(d!=='on'){b.setAttribute('unselectable','on');Ext.defer(function(){b.setAttribute('unselectable',d)},1)}}a.returnValue=!1;if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}}return c},stopPropagation:function(){var a=this,b=a.browserEvent;if(typeof b.type!=='unknown'){if(a.mousedownEvents[a.type]){Ext.GlobalEvents.fireMouseDown(a)}arguments.callee.$previous.call(this)}return a},deprecated:{'5.0':{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var c=this,d,a=function(a){if(a.keyCode===9){c.forwardTab=!a.shiftKey}},b=function(a){if(a.keyCode===9){delete c.forwardTab}};if(Ext.isIE9m){d={0:0,1:0,4:1,2:2};c.override({statics:{enableIEAsync:function(b){var a,c={};for(a in b){c[a]=b[a]}return c}},constructor:function(a,f,e,c){var b=this;b.callParent([a,f,e,c]);b.button=d[a.button];if(a.type==='contextmenu'){b.button=2}b.toElement=a.toElement;b.fromElement=a.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(a){this.browserEvent=this.self.enableIEAsync(a)},getRelatedTarget:function(f,d,e){var a=this,c,b;if(!a.relatedTarget){c=a.type;if(a.mouseLeaveRe.test(c)){b=a.toElement}else {if(a.mouseEnterRe.test(c)){b=a.fromElement}}if(b){a.relatedTarget=a.self.resolveTextNode(b)}}return a.callParent([f,d,e])}});document.attachEvent('onkeydown',a);document.attachEvent('onkeyup',b);window.attachEvent('onunload',function(){document.detachEvent('onkeydown',a);document.detachEvent('onkeyup',b)})}else {if(document.addEventListener){document.addEventListener('keydown',a,!0);document.addEventListener('keyup',b,!0)}}});Ext.cmd.derive('Ext.event.publisher.Dom',Ext.event.publisher.Publisher,{type:'dom',handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1,scroll:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var b=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=b.handledDomEvents,f=d.length,c=0,a;for(;cb?1:a1){e=[];for(d=0;d0){b.invokeRecognizers('onTouchMove',a)}}},onTouchEnd:function(b){var a=this;if(!a.isStarted){return}a.updateTouches(b,!0);a.invokeRecognizers(a.isCancelEvent[b.type]?'onTouchCancel':'onTouchEnd',b);if(!a.activeTouches.length){a.isStarted=!1;a.invokeRecognizers('onEnd',b);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else {this.doTargetTouchMove(a)}},doTargetTouchMove:function(a){if(!Ext.getBody().contains(a.target)){this.onTouchMove(new Ext.event.Event(a))}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else {this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var b=this,a=c.target;a.removeEventListener('touchmove',b.onTargetTouchMove);a.removeEventListener('touchend',b.onTargetTouchEnd);a.removeEventListener('touchcancel',b.onTargetTouchEnd);if(!Ext.getBody().contains(a)){b.onTouchEnd(new Ext.event.Event(c))}},updateAsync:function(a){this.handlers=a?this._asyncHandlers:this._handlers},reset:function(){var a=this,d=a.recognizers,e=d.length,b,c;a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.isStarted=!1;for(b=0;b=500){this.run()}},run:function(){this.pending=!1;var i=this.readQueue,h=this.writeQueue,c=null,d;if(this.mode){d=i;if(h.length>0){c=!1}}else {d=h;if(i.length>0){c=!0}}var g=d.slice(),f,j,b,a,e;d.length=0;for(f=0,j=g.length;f2){a.apply(e,b[2])}else {a.call(e)}}g.length=0;if(c!==null){this.request(c)}}},1,0,0,0,0,0,[Ext,'TaskQueue'],0);Ext.cmd.derive('Ext.util.sizemonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:0,height:0,contentWidth:0,contentHeight:0,constructor:function(a){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(a);this.bindListeners(!0)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer);a.addCls('x-size-monitored')},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.offsetWidth},getContentHeight:function(){return this.detectorsContainer.offsetHeight},refreshSize:function(){var b=this.getElement();if(!b||b.destroyed){return !1}var h=b.getWidth(),g=b.getHeight(),d=this.getContentWidth(),c=this.getContentHeight(),j=this.contentWidth,i=this.contentHeight,a=this.info,f=!1,e;this.width=h;this.height=g;this.contentWidth=d;this.contentHeight=c;e=(j!==d?1:0)+(i!==c?2:0);if(e>0){a.width=h;a.height=g;a.contentWidth=d;a.contentHeight=c;a.flag=e;f=!0;this.getCallback().apply(this.getScope(),this.getArgs())}return f},refresh:function(a){if(this.refreshSize()||a){Ext.TaskQueue.requestWrite('refreshMonitors',this)}},destroy:function(){var a=this,b=a.getElement();a.bindListeners(!1);if(b&&!b.destroyed){b.removeCls('x-size-monitored')}delete a._element;a.callParent()}},1,0,0,0,0,[[Ext.mixin.Templatable.prototype.mixinId||Ext.mixin.Templatable.$className,Ext.mixin.Templatable]],[Ext.util.sizemonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.sizemonitor.Scroll',Ext.util.sizemonitor.Abstract,{getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','scroll'],children:[{reference:'expandMonitor',className:'expand'},{reference:'shrinkMonitor',className:'shrink'}]}},constructor:function(a){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a]('scroll',this.onScroll,!0);this.shrinkMonitor[a]('scroll',this.onScroll,!0)},forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this,[!0])},onScroll:function(){Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){var a=this.expandMonitor,b=this.shrinkMonitor,c=1000000;if(a&&!a.destroyed){a.scrollLeft=c;a.scrollTop=c}if(b&&!b.destroyed){b.scrollLeft=c;b.scrollTop=c}}},1,0,0,0,0,0,[Ext.util.sizemonitor,'Scroll'],0);Ext.cmd.derive('Ext.util.sizemonitor.OverflowChange',Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=Ext.Function.bind(this.onExpand,this);this.onShrink=Ext.Function.bind(this.onShrink,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','overflowchanged'],children:[{reference:'expandMonitor',className:'expand',children:[{reference:'expandHelper'}]},{reference:'shrinkMonitor',className:'shrink',children:[{reference:'shrinkHelper'}]}]}},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a](Ext.browser.is.Firefox?'underflow':'overflowchanged',this.onExpand,!0);this.shrinkMonitor[a](Ext.browser.is.Firefox?'overflow':'overflowchanged',this.onShrink,!0)},onExpand:function(a){if(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},onShrink:function(a){if(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){if(this.destroyed){return}var b=this.expandHelper,c=this.shrinkHelper,d=this.getContentBounds(),f=d.width,e=d.height,a;if(b&&!b.destroyed){a=b.style;a.width=f+1+'px';a.height=e+1+'px'}if(c&&!c.destroyed){a=c.style;a.width=f+'px';a.height=e+'px'}Ext.TaskQueue.requestRead('refresh',this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,'OverflowChange'],0);Ext.cmd.derive('Ext.util.SizeMonitor',Ext.Base,{constructor:function(b){var a=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new a.OverflowChange(b)}else {return new a.Scroll(b)}}},1,0,0,0,0,0,[Ext.util,'SizeMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementSize',Ext.event.publisher.Publisher,{type:'size',handledEvents:['resize'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(b){var a=b.id,c=this.subscribers,d=this.monitors;if(c[a]){++c[a]}else {c[a]=1;d[a]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on('painted','forceRefresh',d[a]);return !0},unsubscribe:function(e){var a=e.id,c=this.subscribers,d=this.monitors,b;if(c[a]&&!--c[a]){delete c[a];b=d[a];e.un('painted','forceRefresh',b);b.destroy();delete d[a]}},onElementResize:function(a,b){Ext.TaskQueue.requestRead('fire',this,[a,'resize',[a,b]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementSize'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.util.paintmonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:'',monitorClass:'',constructor:function(a){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?'addEventListener':'removeEventListener'](this.eventName,this.onElementPainted,!0)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:['x-paint-monitor',this.monitorClass]},!0);a.appendChild(this.monitorElement);a.addCls('x-paint-monitored');this.bindListeners(!0)},onElementPainted:function(){},destroy:function(){var a=this,c=a.monitorElement,d=c.parentNode,b=a.getElement();a.bindListeners(!1);delete a.monitorElement;if(b&&!b.destroyed){b.removeCls('x-paint-monitored');delete a._element}if(d){d.removeChild(c)}a.callParent()}},1,0,0,0,0,0,[Ext.util.paintmonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.paintmonitor.CssAnimation',Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.WebKit?'webkitAnimationEnd':'animationend',monitorClass:'cssanimation',onElementPainted:function(a){if(a.animationName==='x-paint-monitor-helper'){this.getCallback().apply(this.getScope(),this.getArgs())}}},0,0,0,0,0,0,[Ext.util.paintmonitor,'CssAnimation'],0);Ext.cmd.derive('Ext.util.PaintMonitor',Ext.Base,{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}},1,0,0,0,0,0,[Ext.util,'PaintMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementPaint',Ext.event.publisher.Publisher,{type:'paint',handledEvents:['painted'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(d){var b=this,a=d.id,c=b.subscribers;if(c[a]){++c[a]}else {c[a]=1;b.monitors[a]=new Ext.util.PaintMonitor({element:d,callback:b.onElementPainted,scope:b,args:[d]})}},unsubscribe:function(d){var a=d.id,b=this.subscribers,c=this.monitors;if(b[a]&&!--b[a]){delete b[a];c[a].destroy();delete c[a]}},onElementPainted:function(a){Ext.TaskQueue.requestRead('fire',this,[a,'painted',[a]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementPaint'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.dom.Element',Ext.Base,function(a){var h=window,b=document,F='ext-window',D='ext-document',w='width',H='height',ac='min-width',_='min-height',ab='max-width',$='max-height',S='top',P='right',ag='bottom',R='left',aa='visibility',M='hidden',G='display',x='none',O='z-index',u='position',ad='relative',N='static',i='-',T=/\w/g,k=/\s+/,V=/[\s]+/,Y=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,U=/table-row|table-.*-group/,Q=/top/i,d={t:'border-top-width',r:'border-right-width',b:'border-bottom-width',l:'border-left-width'},f={t:'padding-top',r:'padding-right',b:'padding-bottom',l:'padding-left'},v={t:'margin-top',r:'margin-right',b:'margin-bottom',l:'margin-left'},Z=[f.l,f.r,f.t,f.b],B=[d.l,d.r,d.t,d.b],ae=/\d+$/,I=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,C='px',af=/(-[a-z])/gi,J=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,t=/^\d+(?:\.\d*)?px$/i,A={},y='originalDisplay',X=function(c,b){return b.charAt(1).toUpperCase()},E=function(d,e){var c,b,f;if(d.nodeType===1){d._extData=null;if(e){c=d.childNodes;for(b=0,f=c.length;bh.innerWidth?'portrait':'landscape'},getViewportHeight:function(){var c=a._viewportHeight;if(Ext.isIE9m){return b.documentElement.clientHeight}return c!=null?c:h.innerHeight},getViewportWidth:function(){var c=a._viewportWidth;if(Ext.isIE9m){return b.documentElement.clientWidth}return c!=null?c:h.innerWidth},getViewSize:function(){return {width:a.getViewportWidth(),height:a.getViewportHeight()}},normalize:function(b){return A[b]||(A[b]=b.replace(af,X))},_onWindowFocusChange:function(b){if(Ext.fly(b.target).is(a.editableSelector)){z=new Date();L=b.type==='focusin'||b.type==='pointerup'}},_onWindowResize:function(){var c=window.innerWidth,b=window.innerHeight,g=new Date(),f=1000,d,e;d=c-a._windowWidth;e=b-a._windowHeight;a._windowWidth=c;a._windowHeight=b;if(g-z=a.minKeyboardHeight){l=!1;K=new Date()}if(l){return}a._viewportWidth=c;a._viewportHeight=b},parseBox:function(c){c=c||0;var e=typeof c,b,d;if(e==='number'){return {top:c,right:c,bottom:c,left:c}}else {if(e!=='string'){return c}}b=c.split(' ');d=b.length;if(d===1){b[1]=b[2]=b[3]=b[0]}else {if(d===2){b[2]=b[0];b[3]=b[1]}else {if(d===3){b[3]=b[1]}}}return {top:parseFloat(b[0])||0,right:parseFloat(b[1])||0,bottom:parseFloat(b[2])||0,left:parseFloat(b[3])||0}},parseStyles:function(c){var d={},b;if(c){J.lastIndex=0;while(b=J.exec(c)){d[b[1]]=b[2]||''}}return d},select:function(d,c,e){return Ext.fly(e||b).select(d,c)},query:function(c,d,e){return Ext.fly(e||b).query(c,d)},unitizeBox:function(b,d){var c=this;b=c.parseBox(b);return c.addUnits(b.top,d)+' '+c.addUnits(b.right,d)+' '+c.addUnits(b.bottom,d)+' '+c.addUnits(b.left,d)},serializeForm:function(l){var m=l.elements||(b.forms[l]||Ext.getDom(l)).elements,n=!1,f=encodeURIComponent,g='',q=m.length,c,h,d,k,o,i,j,p,e;for(i=0;i0||b.scrollLeft!==0){e.push(b);g.push(c.attach(b).getScroll())}}return function(){var d,b,f;for(b=0,f=e.length;b '+d,!!c)},clone:function(c,d){var b=this.dom.cloneNode(c);if(Ext.supports.CloneNodeCopiesExpando){E(b,c)}return d?b:Ext.get(b)},constrainScrollLeft:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollWidth-b.clientWidth),0)},constrainScrollTop:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollHeight-b.clientHeight),0)},createChild:function(b,c,d){b=b||{tag:'div'};if(c){return Ext.DomHelper.insertBefore(c,b,d!==!0)}else {return Ext.DomHelper.append(this.dom,b,d!==!0)}},contains:function(b){if(!b){return !1}var d=this,c=Ext.getDom(b);return c===d.dom||d.isAncestor(c)},destroy:function(){var c=this,b=c.dom;if(b&&b.parentNode){b.parentNode.removeChild(b)}c.collect();if(!c.isFly){c.callParent()}},detach:function(){var b=this.dom;if(b&&b.parentNode&&b.tagName!=='BODY'){b.parentNode.removeChild(b)}return this},disableShadow:function(){var b=this.shadow;if(b){b.hide();b.disabled=!0}},disableShim:function(){var b=this.shim;if(b){b.hide();b.disabled=!0}},disableTouchContextMenu:function(){this._contextMenuListenerRemover=this.on({MSHoldVisual:function(b){b.preventDefault()},destroyable:!0,delegated:!1})},disableTouchScroll:function(){this.addCls(W);this.on({touchmove:function(b){b.preventDefault()},translate:!1})},doReplaceWith:function(c){var b=this.dom;b.parentNode.replaceChild(Ext.getDom(c),b)},doScrollIntoView:function(b,o,d,m,l,n){c=c||new Ext.dom.Fly();var e=this,k=e.dom,i=c.attach(b)[l](),j=b.scrollTop,h=e.getScrollIntoViewXY(b,i,j),f=h.x,g=h.y;if(m){if(d){d=Ext.apply({listeners:{afteranimate:function(){c.attach(k).highlight()}}},d)}else {c.attach(k).highlight()}}if(g!==j){c.attach(b).scrollTo('top',g,d)}if(o!==!1&&f!==i){c.attach(b)[n]('left',f,d)}return e},down:function(c,b){return this.selectNode(c,!!b)},enableShadow:function(f,e){var c=this,b=c.shadow||(c.shadow=new Ext.dom.Shadow(Ext.apply({target:c},f))),d=c.shim;if(d){d.offsets=b.outerOffsets;d.shadow=b;b.shim=d}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},enableShim:function(f,e){var c=this,b=c.shim||(c.shim=new Ext.dom.Shim(Ext.apply({target:c},f))),d=c.shadow;if(d){b.offsets=d.outerOffsets;b.shadow=d;d.shim=b}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},findParent:function(g,d,h){var i=this,c=i.dom,e=b.documentElement,f=0;if(d||d===0){if(typeof d!=='number'){e=Ext.getDom(d);d=Number.MAX_VALUE}}else {d=50}while(c&&c.nodeType===1&&f0&&d<0.5){b++}}}if(e){b-=c.getBorderWidth('tb')+c.getPadding('tb')}return b<0?0:b},getHtml:function(){return this.dom?this.dom.innerHTML:''},getLeft:function(b){return b?this.getLocalX():this.getX()},getLocalX:function(){var d=this,c,b=d.getStyle('left');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getX();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getX()}}}return b},getLocalXY:function(){var e=this,d,f=e.getStyle(['left','top']),b=f.left,c=f.top;if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=e.getX();d=e.dom.offsetParent;if(d){b-=Ext.fly(d).getX()}}}if(!c||c==='auto'){c=0}else {if(t.test(c)){c=parseFloat(c)}else {c=e.getY();d=e.dom.offsetParent;if(d){c-=Ext.fly(d).getY()}}}return [b,c]},getLocalY:function(){var d=this,c,b=d.getStyle('top');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getY();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getY()}}}return b},getMargin:function(){var c={t:'top',l:'left',r:'right',b:'bottom'},b=['margin-top','margin-left','margin-right','margin-bottom'];return function(g){var h=this,e,f,d;if(!g){e=h.getStyle(b);d={};if(e&&typeof e==='object'){d={};for(f in v){d[f]=d[c[f]]=parseFloat(e[v[f]])||0}}}else {d=h.addStyles(g,v)}return d}}(),getPadding:function(b){return this.addStyles(b,f)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(b){return (b?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var h=this,d=h.dom,g=b.documentElement,e,f,c=document.body;if(d===b||d===c){e=g.scrollLeft||(c?c.scrollLeft:0);f=g.scrollTop||(c?c.scrollTop:0)}else {e=d.scrollLeft;f=d.scrollTop}return {left:e,top:f}},getScrollIntoViewXY:function(r,b,c){var p=this.dom,h=Ext.getDom(r),j=this.getOffsetsTo(h),o=p.offsetWidth,m=p.offsetHeight,f=j[0]+b,g=j[1]+c,l=g+m,n=f+o,d=h.clientHeight,e=h.clientWidth,i=b,k=c,q=k+d,s=i+e;if(m>d||gq){c=l-d}}if(o>e||fs){b=n-e}}return {x:b,y:c}},getScrollLeft:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().left}else {return c.scrollLeft}},getScrollTop:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().top}else {return c.scrollTop}},getSize:function(b){return {width:this.getWidth(b),height:this.getHeight(b)}},getStyle:function(n,i){var k=this,e=k.dom,m=typeof n!=='string',p=k.styleHooks,b=n,j=b,q=1,h,o,f,d,g,c,l;if(m){f={};b=j[0];l=0;if(!(q=j.length)){return f}}if(!e||e.documentElement){return f||''}h=e.style;if(i){c=h}else {c=e.ownerDocument.defaultView.getComputedStyle(e,null);if(!c){i=!0;c=h}}do{d=p[b];if(!d){p[b]=d={name:a.normalize(b)}}if(d.get){g=d.get(e,k,i,c)}else {o=d.name;g=c[o]}if(!m){return g}f[b]=g;b=j[++l]}while(l0&&e<0.5){b++}}}if(h){b-=c.getBorderWidth('lr')+c.getPadding('lr')}return b<0?0:b},getX:function(){return this.getXY()[0]},getXY:function(){var h=Math.round,e=this.dom,f=0,g=0,c,d;if(e!==b&&e!==b.body){try{c=e.getBoundingClientRect()}catch(ah){c={left:0,top:0}}f=h(c.left);g=h(c.top);d=Ext.getDoc().getScroll();f+=d.left;g+=d.top}return [f,g]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle('z-index'),10)},hasCls:function(c){var b=this.getData();if(!b.isSynchronized){this.synchronize()}return b.classMap.hasOwnProperty(c)},hide:function(){this.setVisible(!1);return this},insertAfter:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b.nextSibling);return this},insertBefore:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b);return this},insertFirst:function(b,c){b=b||{};if(b.nodeType||b.dom||typeof b==='string'){b=Ext.getDom(b);this.dom.insertBefore(b,this.dom.firstChild);return !c?Ext.get(b):b}else {return this.createChild(b,this.dom.firstChild,c)}},insertHtml:function(d,e,c){var b=Ext.DomHelper.insertHtml(d,this.dom,e);return c?Ext.get(b):b},insertSibling:function(b,k,f){var d=this,j=Ext.DomHelper,h=(k||'before').toLowerCase()==='after',c,g,i,e;if(Ext.isIterable(b)){i=b.length;g=Ext.fly(document.createDocumentFragment());if(Ext.isArray(b)){for(e=0;eb.clientHeight||b.scrollWidth>b.clientWidth},isStyle:function(b,c){return this.getStyle(b)===c},isVisible:function(d){var b=this.dom,c;if(!b){return !1}if(!s){s=new Ext.dom.Fly()}for(c=b.ownerDocument.documentElement;b!==c;b=b.parentNode){if(!b||b.nodeType===11||s.attach(b).isStyle(aa,M)||s.isStyle(G,x)){return !1}if(!d){break}}return !0},last:function(c,b){return this.matchNode('previousSibling','lastChild',c,b)},maskIframes:function(){var b=document.getElementsByTagName('iframe');Ext.each(b,function(c){var b=Ext.fly(c.parentNode),d=b.mask();d.setStyle('background-color','transparent')})},matchNode:function(g,f,c,e){var d=this.dom,b;if(!d){return null}b=d[f];while(b){if(b.nodeType===1&&(!c||Ext.fly(b,'_matchNode').is(c))){return !e?Ext.get(b):b}b=b[g]}return null},next:function(c,b){return this.matchNode('nextSibling','nextSibling',c,b)},parent:function(c,b){return this.matchNode('parentNode','parentNode',c,b)},position:function(c,d,e,f){var b=this;if(b.dom.tagName!=='BODY'){if(!c&&b.isStyle(u,N)){b.setStyle(u,ad)}else {if(c){b.setStyle(u,c)}}if(d){b.setStyle(O,d)}if(e||f){b.setXY([e||!1,f||!1])}}},prev:function(c,b){return this.matchNode('previousSibling','previousSibling',c,b)},query:function(b,e,j){var i=this.dom,g,l,k,h,f,c,d;if(!i){return null}e=e!==!1;b=b.split(',');if(!j){g=[]}for(c=0,l=b.length;c0){b=i.className.split(V);for(c=0,j=b.length;c=':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>=a},'>':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>a},'!=':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!=c},'!==':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!==c},'in':function(b){var a=this._filterValue;return Ext.Array.contains(a,this.getCandidateValue(b,a))},notin:function(b){var a=this._filterValue;return !Ext.Array.contains(a,this.getCandidateValue(b,a))},like:function(b){var a=this._filterValue;return a&&this.getCandidateValue(b,a).toLowerCase().indexOf(a.toLowerCase())>-1}};a['==']=a['='];a.gt=a['>'];a.ge=a['>='];a.lt=a['<'];a.le=a['<='];a.eq=a['='];a.ne=a['!=']});Ext.cmd.derive('Ext.util.Observable',Ext.mixin.Observable,{$applyConfigs:!0},0,0,0,0,0,0,[Ext.util,'Observable'],function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe});Ext.cmd.derive('Ext.util.AbstractMixedCollection',Ext.Base,{isMixedCollection:!0,generation:0,indexGeneration:0,constructor:function(b,c){var a=this;if(arguments.length===1&&Ext.isObject(b)){a.initialConfig=b;Ext.apply(a,b)}else {a.allowFunctions=b===!0;if(c){a.getKey=c}a.initialConfig={allowFunctions:a.allowFunctions,getKey:a.getKey}}a.items=[];a.map={};a.keys=[];a.indexMap={};a.length=0;a.mixins.observable.constructor.call(a)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:!1,add:function(b,d){var c=this.length,a;if(arguments.length===1){a=this.insert(c,b)}else {a=this.insert(c,b,d)}return a},getKey:function(a){return a.id},replace:function(b,c){var a=this,d,e;if(arguments.length==1){c=arguments[0];b=a.getKey(c)}d=a.map[b];if(typeof b=='undefined'||b===null||typeof d=='undefined'){return a.add(b,c)}a.generation++;e=a.indexOfKey(b);a.items[e]=c;a.map[b]=c;if(a.hasListeners.replace){a.fireEvent('replace',b,d,c)}return c},reorder:function(e){var b=this,f=b.items,a=0,h=f.length,c=[],g=[],d;b.suspendEvents();for(d in e){c[e[d]]=f[d]}for(a=0;a-1){g=e[b];delete e[b];delete f[b];e[c]=g;f[c]=d;a.keys[d]=c;a.indexGeneration=++a.generation}},addAll:function(a){var c=this,b;if(arguments.length>1||Ext.isArray(a)){c.insert(c.length,arguments.length>1?arguments:a)}else {for(b in a){if(a.hasOwnProperty(b)){if(c.allowFunctions||typeof a[b]!='function'){c.add(b,a[b])}}}}},each:function(f,e){var c=Ext.Array.push([],this.items),a=0,d=c.length,b;for(;a2){a=this.doInsert(c,[b],[d])}else {a=this.doInsert(c,[b])}a=a[0]}return a},doInsert:function(f,e,d){var b=this,c,i,a,g=e.length,j=g,o=b.hasListeners.add,k,h={},l,n,m;if(d!=null){b.useLinearSearch=!0}else {d=e;e=new Array(g);for(a=0;a=0;--c){a.remove(b[c])}}else {while(a.length){a.removeAt(0)}}}else {a.length=a.items.length=a.keys.length=0;a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}},removeAt:function(b){var a=this,d,c;if(b=0){a.length--;d=a.items[b];Ext.Array.erase(a.items,b,1);c=a.keys[b];if(typeof c!='undefined'){delete a.map[c]}Ext.Array.erase(a.keys,b,1);if(a.hasListeners.remove){a.fireEvent('remove',d,c)}a.generation++;return d}return !1},removeRange:function(c,b){var a=this,i,f,d,e,g,h;if(c=0){if(!b){b=1}e=Math.min(c+b,a.length);b=e-c;h=e===a.length;g=h&&a.indexGeneration===a.generation;for(d=c;d=0;a--){if(c[a]==null){b.removeAt(a)}}}else {return b.removeAt(b.indexOfKey(d))}},getCount:function(){return this.length},indexOf:function(b){var a=this,c;if(b!=null){if(!a.useLinearSearch&&(c=a.getKey(b))){return this.indexOfKey(c)}return Ext.Array.indexOf(a.items,b)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var b=this,d=b.indexMap={},c=b.keys,e=c.length,a;for(a=0;aa){e=!0;g=b;b=a;a=g}if(b<0){b=0}if(a==null||a>=d){a=d-1}c=f.slice(b,a+1);if(e&&c.length){c.reverse()}return c},filter:function(a,e,d,c){var b=[];if(Ext.isString(a)){b.push(new Ext.util.Filter({property:a,value:e,anyMatch:d,caseSensitive:c}))}else {if(Ext.isArray(a)||a instanceof Ext.util.Filter){b=b.concat(a)}}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(h,g){var a=this,c=new a.self(a.initialConfig),e=a.keys,d=a.items,f=d.length,b;c.getKey=a.getKey;for(b=0;bb?1:a0){c.removeRange(b.multiSortLimit,g)};break;case 'prepend':c.insert(0,a);break;case 'append':c.addAll(a);break;case undefined:case null:case 'replace':c.clear();c.addAll(a);break;default:}}if(h!==!1){b.fireEvent('beforesort',b,a);b.onBeforeSort(a);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return a},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(b){if(!Ext.isArray(b)){if(b===undefined){b=[]}else {b=[b]}}var g=b.length,f=Ext.util.Sorter,e=this.getModel?this.getModel():this.model,d,a,c;for(c=0;c>1;c=d(h,f[a]);if(c>=0){b=a+1}else {if(c<0){e=a-1}}}return b},reorder:function(a){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,a);this.fireEvent('sort',this)},sortByKey:function(a,b){this._sort('key',a,b||function(e,f){var c=String(e).toUpperCase(),d=String(f).toUpperCase();return c>d?1:cf){k=f}}}if(c){b.tasks=c}b.firing=!1;if(b.tasks.length){b.startTimer(k-g,Ext.Date.now())}if(j!==!1&&l.hasListeners.idle){l.fireEvent('idle')}},startTimer:function(b,e){var a=this,d=e+b,c=a.timerId;if(c&&a.nextExpires-d>a.interval){clearTimeout(c);c=null}if(!c){if(b=a.duration,b,c;if(h){d=a.duration;e=!0}b=this.collectTargetData(a,d,f,e);if(f){a.target.setAttr(b.anims[a.id].attributes,!0);g.collectTargetData(a,a.duration,f,e);a.paused=!0;b=a.target.target;if(a.target.isComposite){b=a.target.target.last()}c={};c[Ext.supports.CSS3TransitionEnd]=a.lastFrame;c.scope=a;c.single=!0;b.on(c)}return b},jumpToEnd:function(d){var a=this,b,c;if(!a.targetArr){a.targetArr={};c=!0}b=a.runAnim(d,!0);a.applyAnimAttrs(b,b.anims[d.id]);if(c){a.targetArr=null}},collectTargetData:function(a,d,f,e){var c=a.target.getId(),b=this.targetArr[c];if(!b){b=this.targetArr[c]={id:c,el:a.target,anims:{}}}b.anims[a.id]={id:a.id,anim:a,elapsed:d,isLastFrame:e,attributes:[{duration:a.duration,easing:f&&a.reverse?a.easingFn.reverse().toCSS3():a.easing,attrs:a.runAnim(d)}]};return b},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var c=this.targetArr,b,d,a,f,e;for(d in c){if(c.hasOwnProperty(d)){b=c[d];for(e in b.anims){if(b.anims.hasOwnProperty(e)){a=b.anims[e];f=a.anim;if(a.attributes&&f.isRunning()){b.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){f.lastFrame()}}}}}}}},1,0,0,0,0,[['queue',Ext.fx.Queue]],[Ext.fx,'Manager'],0);Ext.cmd.derive('Ext.fx.Animator',Ext.Base,{isAnimator:!0,duration:250,delay:0,delayStart:0,dynamic:!1,easing:'ease',running:!1,paused:!1,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(b){var a=this;b=Ext.apply(a,b||{});a.config=b;a.id=Ext.id(null,'ext-animator-');a.mixins.observable.constructor.call(a,b);a.timeline=[];a.createTimeline(a.keyframes);if(a.target){a.applyAnimator(a.target);Ext.fx.Manager.addAnim(a)}},sorter:function(a,b){return a.pct-b.pct},createTimeline:function(e){var d=this,b=[],k=d.to||{},g=d.duration,h,j,c,i,a,f;for(a in e){if(e.hasOwnProperty(a)&&d.animKeyFramesRE.test(a)){f={attrs:Ext.apply(e[a],k)};if(a==='from'){a=0}else {if(a==='to'){a=100}}f.pct=parseInt(a,10);b.push(f)}}Ext.Array.sort(b,d.sorter);i=b.length;for(c=0;c0},isRunning:function(){return !1}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Animator'],0);Ext.cmd.derive('Ext.fx.CubicBezier',Ext.Base,{singleton:!0,cubicBezierAtTime:function(l,d,e,i,j,h){var a=3*d,b=3*(i-d)-a,f=1-a-b,c=3*e,g=3*(j-e)-c,k=1-c-g;function sampleCurveX(c){return ((f*c+b)*c+a)*c}function solve(f,b){var a=solveCurveX(f,b);return ((k*a+g)*a+c)*a}function solveCurveX(n,q){var g,k,c,m,o,p;for(c=n,p=0;p<8;p++){m=sampleCurveX(c)-n;if(Math.abs(m)k){return k}while(gm){g=c}else {k=c}c=(k-g)/2+g}return c}return solve(l,1/(200*h))},cubicBezier:function(b,d,c,e){var a=function(a){return Ext.fx.CubicBezier.cubicBezierAtTime(a,b,d,c,e,1)};a.toCSS3=function(){return 'cubic-bezier('+[b,d,c,e].join(',')+')'};a.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-c,1-e,1-b,1-d)};return a}},0,0,0,0,0,0,[Ext.fx,'CubicBezier'],0);Ext.cmd.derive('Ext.fx.Easing',Ext.Base,function(){var b=Math,g=b.PI,a=b.pow,f=b.sin,e=b.sqrt,d=b.abs,c=1.70158;return {singleton:!0,linear:Ext.identityFn,ease:function(k){var c=0.07813-k/2,f=e(0.0066+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.25;return a(1-b,2)*3*b*0.1+(1-b)*3*b*b+b*b*b},easeIn:function(b){return a(b,1.7)},easeOut:function(b){return a(b,0.48)},easeInOut:function(k){var c=0.48-k/1.04,f=e(0.1734+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.5;return (1-b)*3*b*b+b*b*b},backIn:function(a){return a*a*((c+1)*a-c)},backOut:function(a){a=a-1;return a*a*((c+1)*a+c)+1},elasticIn:function(b){if(b===0||b===1){return b}var c=0.3,d=c/4;return a(2,-10*b)*f((b-d)*(2*g)/c)+1},elasticOut:function(a){return 1-Ext.fx.Easing.elasticIn(1-a)},bounceIn:function(a){return 1-Ext.fx.Easing.bounceOut(1-a)},bounceOut:function(a){var d=7.5625,b=2.75,c;if(a<1/b){c=d*a*a}else {if(a<2/b){a-=1.5/b;c=d*a*a+0.75}else {if(a<2.5/b){a-=2.25/b;c=d*a*a+0.9375}else {a-=2.625/b;c=d*a*a+0.984375}}}return c}}},0,0,0,0,0,0,[Ext.fx,'Easing'],function(c){var b=c.self,a=b.prototype;b.addMembers({'back-in':a.backIn,'back-out':a.backOut,'ease-in':a.easeIn,'ease-out':a.easeOut,'elastic-in':a.elasticIn,'elastic-out':a.elasticOut,'bounce-in':a.bounceIn,'bounce-out':a.bounceOut,'ease-in-out':a.easeInOut})});Ext.cmd.derive('Ext.fx.DrawPath',Ext.Base,{singleton:!0,pathToStringRE:/,?([achlmqrstvxz]),?/gi,pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,stopsRE:/^(\d+%?)$/,radian:Math.PI/180,is:function(b,a){a=String(a).toLowerCase();return a=='object'&&b===Object(b)||a=='undefined'&&typeof b==a||a=='null'&&b===null||a=='array'&&Array.isArray&&Array.isArray(b)||Object.prototype.toString.call(b).toLowerCase().slice(8,-1)==a},path2string:function(){return this.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},pathToString:function(a){return a.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},parsePathString:function(c){if(!c){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=[],b=this;if(b.is(c,'array')&&b.is(c[0],'array')){a=b.pathClone(c)}if(!a.length){String(c).replace(b.pathCommandRE,function(i,g,h){var e=[],f=g.toLowerCase();h.replace(b.pathValuesRE,function(b,a){if(a){e.push(+a)}});if(f=='m'&&e.length>2){a.push([g].concat(Ext.Array.splice(e,0,2)));f='l';g=g=='m'?'l':'L'}while(e.length>=d[f]){a.push([g].concat(Ext.Array.splice(e,0,d[f])));if(!d[f]){break}}})}a.toString=b.path2string;return a},pathClone:function(a){var d=[],c,f,b,e;if(!this.is(a,'array')||!this.is(a&&a[0],'array')){a=this.parsePathString(a)}for(b=0,e=a.length;b7){a[d].shift();var e=a[d];while(e.length){Ext.Array.splice(a,d++,0,['C'].concat(Ext.Array.splice(e,0,6)))}Ext.Array.erase(a,d,1);j=Math.max(c.length,b.length||0)}},m=function(d,f,e,g,a){if(d&&f&&d[a][0]=='M'&&f[a][0]!='M'){Ext.Array.splice(f,a,0,['M',g.x,g.y]);e.bx=0;e.by=0;e.x=d[a][1];e.y=d[a][2];j=Math.max(c.length,b.length||0)}},a,j,g,f,i,h;for(a=0,j=Math.max(c.length,b.length||0);a1){u=N(u);d=u*d;c=u*c}x=d*d;y=c*c;I=(X==v?-1:1)*N(R((x*y-x*j*j-y*i*i)/(x*j*j+y*i*i)));q=I*d*j/c+(m+e)/2;r=I*-c*i/d+(n+f)/2;b=M(((n-r)/c).toFixed(7));a=M(((f-r)/c).toFixed(7));b=ma){b=b-k*2}if(!v&&a>b){a=a-k*2}}else {b=o[0];a=o[1];q=o[2];r=o[3]}z=a-b;if(R(z)>Q){L=a;O=e;P=f;a=b+Q*(v&&a>b?1:-1);e=q+d*B(a);f=r+c*C(a);g=s.arc2curve(e,f,d,c,K,0,v,O,P,[a,L,q,r])}z=a-b;S=B(b);V=C(b);T=B(a);W=C(a);J=p.tan(z/4);D=4/3*d*J;E=4/3*c*J;F=[m,n];l=[m+D*V,n-E*S];G=[e+D*W,f-E*T];H=[e,f];l[0]=2*F[0]-l[0];l[1]=2*F[1]-l[1];if(o){return [l,G,H].concat(g)}else {g=[l,G,H].concat(g).join().split(',');A=[];U=g.length;for(h=0;h=d){b=d;f=!0}if(a.reverse){b=d-b}for(c in e){if(e.hasOwnProperty(c)){h=e[c];g=f?1:k(b/d);i[c]=j[c].set(h,g)}}a.frameCount++;return i},lastFrame:function(){var a=this,c=a.iterations,b=a.currentIteration;b++;if(b0},isRunning:function(){return this.paused===!1&&this.running===!0&&this.isAnimator!==!0}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Anim'],0);Ext.enableFx=!0;Ext.cmd.derive('Ext.util.Animate',Ext.Base,{mixinId:'animate',isAnimate:!0,animate:function(b){var a=this;if(Ext.fx.Manager.hasFxBlock(a.id)){return a}Ext.fx.Manager.queueFx(new Ext.fx.Anim(a.anim(b)));return this},anim:function(a){if(!Ext.isObject(a)){return a?{}:!1}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:!0},a)},getAnimationProps:function(){var b=this,a=b.layout;return a&&a.animate?a.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,'stopAnimation'),stopAnimation:function(){Ext.fx.Manager.stopAnimation(this.id);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!0});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!1});return this},hasActiveFx:Ext.Function.alias(Ext.util.Animate,'getActiveAnimation'),getActiveAnimation:function(){return Ext.fx.Manager.getActiveAnimation(this.id)}},0,0,0,0,0,0,[Ext.util,'Animate'],0);Ext.cmd.derive('Ext.dom.Fly',Ext.dom.Element,{alternateClassName:'Ext.dom.Element.Fly',validNodeTypes:{1:1,9:1,11:1},isFly:!0,constructor:function(a){this.dom=a;this.el=this},attach:function(b){var a=this;if(!b){return a.detach()}a.dom=b;if(!Ext.cache[b.id]){a.getData().isSynchronized=!1}return a},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,'Fly',Ext.dom.Element,'Fly'],function(b){var a={};b.cache=a;Ext.fly=function(c,e){var d=null,h=Ext.fly,f,g;e=e||h.caller&&h.caller.$name||'_global';c=Ext.getDom(c);if(c){f=c.nodeType;if(b.prototype.validNodeTypes[f]||!f&&c.window==c){d=Ext.cache[c.id];if(!d||d.dom!==c){d=a[e]||(a[e]=new b());d.dom=c;g=d.getData(!0);if(g){g.isSynchronized=!1}}}}return d}});Ext.cmd.derive('Ext.dom.CompositeElementLite',Ext.Base,{alternateClassName:['Ext.CompositeElementLite'],isComposite:!0,isLite:!0,statics:{importElementMethods:function(){var b=Ext.dom.Element,a=this.prototype;Ext.Object.each(b.prototype,function(b,c){if(typeof c==='function'&&!a[b]){a[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(a,b){if(b){this.elements=a||[]}else {this.elements=[];this.add(a)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(a,e){var d=this.elements,b,c;if(!a){return this}if(typeof a=='string'){a=Ext.fly(e||document).query(a)}else {if(a.isComposite){a=a.elements}else {if(!Ext.isIterable(a)){a=[a]}}}for(b=0,c=a.length;b-1){a=Ext.getDom(a);if(e){b=this.elements[c];b.parentNode.insertBefore(a,b);Ext.removeNode(b)}Ext.Array.splice(this.elements,c,1,a)}return this},clear:function(c){var d=this,b=d.elements,a=b.length-1;if(c){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(a,d){if(!a){return this}if(typeof a==='string'){a=Ext.dom.Element.selectorFunction(a,d)}var e=this.elements,c=a.length,b;for(b=0;b','','','',''].join(''),O=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,J=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,G=/\ssrc=([\'\"])(.*?)\1/i,v=/\S/,E=/\stype=([\'\"])(.*?)\1/i,I=/^-ms-/,B=/(-[a-z])/gi,L=function(b,a){return a.charAt(1).toUpperCase()},r='x-masked',k='x-masked-relative',m='x-mask-msg',D=/^body/i,l={},u=function(d){var c=d.getData(),b=c[q];if(b===undefined){c[q]=b=a.VISIBILITY}return b},f=b.createRange?b.createRange():null,z={INPUT:!0,TEXTAREA:!0};if(Ext.isIE8){var p=b.createElement('div'),c=[],M=Ext.Function.createBuffered(function(){var b=c.length,a;for(a=0;a"+Ext.String.format(y,a)+''));b.selectNode('.'+a+'-mc').appendChild(this.dom);return b},clean:function(g){var c=this,d=c.dom,e=c.getData(),a=d.firstChild,f=-1,b;if(e.isCleaned&&g!==!0){return c}while(a){b=a.nextSibling;if(a.nodeType===3){if(!v.test(a.nodeValue)){d.removeChild(a)}else {if(b&&b.nodeType===3){a.appendData(Ext.String.trim(b.data));d.removeChild(b);b=a.nextSibling;a.nodeIndex=++f}}}else {Ext.fly(a,'_clean').clean();a.nodeIndex=++f}a=b}e.isCleaned=!0;return c},empty:f?function(){var a=this.dom;if(a.firstChild){f.setStartBefore(a.firstChild);f.setEndAfter(a.lastChild);f.deleteContents()}}:function(){var a=this.dom;while(a.lastChild){a.removeChild(a.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(a){a=a||'';return this.setStyle({left:a,right:a,top:a,bottom:a,'z-index':'',position:'static'})},createProxy:function(b,e,f){b=typeof b==='object'?b:{tag:'div',role:'presentation',cls:b};var d=this,c=e?Ext.DomHelper.append(e,b,!0):Ext.DomHelper.insertBefore(d.dom,b,!0);c.setVisibilityMode(a.DISPLAY);c.hide();if(f&&d.setBox&&d.getBox){c.setBox(d.getBox())}return c},clearOpacity:function(){return this.setOpacity('')},clip:function(){var a=this,c=a.getData(),b;if(!c[g]){c[g]=!0;b=a.getStyle([j,h,i]);c[n]={o:b[j],x:b[h],y:b[i]};a.setStyle(j,e);a.setStyle(h,e);a.setStyle(i,e)}return a},destroy:function(){var b=this,a=b.dom,f=b.getData(),e,d;if(a&&b.isAnimate){b.stopAnimation()}arguments.callee.$previous.call(this);if(a&&Ext.isIE8&&a.window!=a&&a.nodeType!==9&&a.tagName!=='BODY'&&a.tagName!=='HTML'){c[c.length]=a;M()}if(f){e=f.maskEl;d=f.maskMsg;if(e){e.destroy()}if(d){d.destroy()}}},enableDisplayMode:function(c){var b=this;b.setVisibilityMode(a.DISPLAY);if(c!==undefined){b.getData()[K]=c}return b},fadeIn:function(c){var a=this,b=a.dom;a.animate(Ext.apply({},c,{opacity:1,internalListeners:{beforeanimate:function(d){var a=Ext.fly(b,'_anim');if(a.isStyle('display','none')){a.setDisplayed('')}else {a.show()}}}}));return this},fadeOut:function(a){var b=this,c=b.dom;a=Ext.apply({opacity:0,internalListeners:{afteranimate:function(d){if(c&&d.to.opacity===0){var b=Ext.fly(c,'_anim');if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}}}}},a);b.animate(a);return b},fixDisplay:function(){var a=this;if(a.isStyle(d,s)){a.setStyle(o,e);a.setStyle(d,a._getDisplay());if(a.isStyle(d,s)){a.setStyle(d,'block')}}},frame:function(b,c,a){var d=this,f=d.dom,e;b=b||'#C3DAF9';c=c||1;a=a||{};e=function(){var g=Ext.fly(f,'_anim'),i=this,d,e,h;g.show();d=g.getBox();e=Ext.getBody().createChild({role:'presentation',id:g.dom.id+'-anim-proxy',style:{position:'absolute','pointer-events':'none','z-index':35000,border:'0px solid '+b}});h=new Ext.fx.Anim({target:e,duration:a.duration||1000,iterations:c,from:{top:d.y,left:d.x,borderWidth:0,opacity:1,height:d.height,width:d.width},to:{top:d.y-20,left:d.x-20,borderWidth:10,opacity:0,height:d.height+40,width:d.width+40}});h.on('afteranimate',function(){e.destroy();i.end()})};d.animate({duration:Math.max(a.duration,500)*2||2000,listeners:{beforeanimate:{fn:e}},callback:a.callback,scope:a.scope});return d},getColor:function(h,f,c){var a=this.getStyle(h),b=c||c===''?c:'#',d,g,e=0;if(!a||/transparent|inherit/.test(a)){return f}if(/^r/.test(a)){a=a.slice(4,a.length-1).split(',');g=a.length;for(;e5?b.toLowerCase():f},getLoader:function(){var c=this,b=c.getData(),a=b.loader;if(!a){b.loader=a=new Ext.ElementLoader({target:c})}return a},getPositioning:function(c){var a=this.getStyle(['left','top','position','z-index']),b=this.dom;if(c){if(a.left==='auto'){a.left=b.offsetLeft+'px'}if(a.top==='auto'){a.top=b.offsetTop+'px'}}return a},ghost:function(a,e){var b=this,d=b.dom,c;a=a||'b';c=function(){var h=Ext.fly(d,'_anim'),g=h.getWidth(),f=h.getHeight(),c=h.getXY(),i=h.getPositioning(),b={opacity:0};switch(a){case 't':b.y=c[1]-f;break;case 'l':b.x=c[0]-g;break;case 'r':b.x=c[0]+g;break;case 'b':b.y=c[1]+f;break;case 'tl':b.x=c[0]-g;b.y=c[1]-f;break;case 'bl':b.x=c[0]-g;b.y=c[1]+f;break;case 'br':b.x=c[0]+g;b.y=c[1]+f;break;case 'tr':b.x=c[0]+g;b.y=c[1]-f;break;}this.to=b;this.on('afteranimate',function(){var b=Ext.fly(d,'_anim');if(b){b.hide();b.clearOpacity();b.setPositioning(i)}})};b.animate(Ext.applyIf(e||{},{duration:500,easing:'ease-out',listeners:{beforeanimate:c}}));return b},hide:function(a){if(typeof a==='string'){this.setVisible(!1,a);return this}this.setVisible(!1,this.anim(a));return this},highlight:function(k,b){var g=this,e=g.dom,j={},i,h,c,d,a,f;b=b||{};d=b.listeners||{};c=b.attr||'backgroundColor';j[c]=k||'ffff9c';if(!b.to){h={};h[c]=b.endColor||g.getColor(c,'ffffff','')}else {h=b.to}b.listeners=Ext.apply(Ext.apply({},d),{beforeanimate:function(){i=e.style[c];var g=Ext.fly(e,'_anim');g.clearOpacity();g.show();a=d.beforeanimate;if(a){f=a.fn||a;return f.apply(a.scope||d.scope||t,arguments)}},afteranimate:function(){if(e){e.style[c]=i}a=d.afteranimate;if(a){f=a.fn||a;f.apply(a.scope||d.scope||t,arguments)}}});g.animate(Ext.apply({},b,{duration:1000,easing:'ease-in',from:j,to:h}));return g},hover:function(d,e,c,b){var a=this;a.on('mouseenter',d,c||a.dom,b);a.on('mouseleave',e,c||a.dom,b);return a},initDD:function(c,b,a){var d=new Ext.dd.DD(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDProxy:function(c,b,a){var d=new Ext.dd.DDProxy(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDTarget:function(c,b,a){var d=new Ext.dd.DDTarget(Ext.id(this.dom),c,b);return Ext.apply(d,a)},isFocusable:function(){var a=this.dom,b=!1,c;if(a&&!a.disabled){c=a.nodeName;b=!!Ext.Element.naturallyFocusableTags[c]||(c==='A'||c==='LINK')&&!!a.href||a.getAttribute('tabIndex')!=null||a.contentEditable==='true';if(Ext.isIE8&&c==='INPUT'&&a.type==='hidden'){b=!1}b=b&&this.isVisible(!0)}return b},isInputField:function(){var a=this.dom,b=a.contentEditable;if(z[a.tagName]&&a.type!=='button'||(b===''||b==='true')){return !0}return !1},isTabbable:function(f){var c=this.dom,a=!1,e,d,b;if(c&&!c.disabled){e=c.nodeName;b=c.getAttribute('tabIndex');d=b!=null;b-=0;if(e==='A'||e==='LINK'){if(c.href){a=d&&b<0?!1:!0}else {if(c.contentEditable==='true'){a=!d||d&&b>=0?!0:!1}else {a=d&&b>=0?!0:!1}}}else {if(c.contentEditable==='true'||Ext.Element.naturallyTabbableTags[e]){a=d&&b<0?!1:!0}else {if(d&&b>=0){a=!0}}}if(Ext.isIE8&&e==='INPUT'&&c.type==='hidden'){a=!1}a=a&&(f||(!this.component||this.component.isVisible(!0))&&this.isVisible(!0))}return a},isMasked:function(g){var b=this,f=b.getData(),e=f.maskEl,d=f.maskMsg,c=!1,a;if(e&&e.isVisible()){if(d){d.center(b)}c=!0}else {if(g){a=b.findParentNode();if(a){return Ext.fly(a).isMasked(g)}}}return c},load:function(a){this.getLoader().load(a);return this},mask:function(h,f,i){var c=this,d=c.dom,g=c.getData(),a=g.maskEl,e;if(!(D.test(d.tagName)&&c.getStyle('position')==='static')){c.addCls(k)}if(a){a.destroy()}a=Ext.DomHelper.append(d,{role:'presentation',cls:'x-mask x-border-box',children:{role:'presentation',cls:f?m+' '+f:m,cn:{tag:'div',role:'presentation',cls:'x-mask-msg-inner',cn:{tag:'div',role:'presentation',cls:'x-mask-msg-text',html:h||''}}}},!0);e=Ext.get(a.dom.firstChild);g.maskEl=a;c.addCls(r);a.setDisplayed(!0);if(typeof h==='string'){e.setDisplayed(!0);e.center(c)}else {e.setDisplayed(!1)}if(d===b.body){a.addCls('x-mask-fixed')}c.saveTabbableState({skipSelf:d===b.body});if(Ext.isIE9m&&d!==b.body&&c.isStyle('height','auto')){a.setSize(undefined,i||c.getHeight())}return a},monitorMouseLeave:function(e,d,f){var c=this,b,a={mouseleave:function(a){if(Ext.isIE9m){a.enableIEAsync()}b=Ext.defer(d,e,f||c,[a])},mouseenter:function(){clearTimeout(b)}};c.on(a);return a},puff:function(a){var c=this,e=c.dom,d,b=c.getBox(),f=c.getStyle(['width','height','left','right','top','bottom','position','z-index','font-size','opacity'],!0);a=Ext.applyIf(a||{},{easing:'ease-out',duration:500,useDisplay:!1});d=function(){var c=Ext.fly(e,'_anim');c.clearOpacity();c.show();this.to={width:b.width*2,height:b.height*2,x:b.x-b.width/2,y:b.y-b.height/2,opacity:0,fontSize:'200%'};this.on('afteranimate',function(){var b=Ext.fly(e,'_anim');if(b){if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}b.setStyle(f);Ext.callback(a.callback,a.scope)}})};c.animate({duration:a.duration,easing:a.easing,listeners:{beforeanimate:{fn:d}}});return c},selectable:function(){var b=this;b.dom.unselectable='';b.removeCls(a.unselectableCls);b.addCls(a.selectableCls);return b},setCapture:function(){var a=this.dom;if(Ext.isIE9m&&a.setCapture){a.setCapture()}},setHeight:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{height:c}},a))}return b},setHorizontal:function(){var a=this,b=a.verticalCls;delete a.vertical;if(b){delete a.verticalCls;a.removeCls(b)}delete a.setWidth;delete a.setHeight;if(!Ext.isIE8){delete a.getWidth;delete a.getHeight}delete a.styleHooks},updateText:function(d){var e=this,c,a;if(c){a=c.firstChild;if(!a||(a.nodeType!==3||a.nextSibling)){a=b.createTextNode();e.empty();c.appendChild(a)}if(d){a.data=d}}},setHtml:function(c,i,g,d){var a=this,f,e,h;if(!a.dom){return a}c=c||'';e=a.dom;if(i!==!0){e.innerHTML=c;Ext.callback(g,a);return a}f=Ext.id();c+='';h=Ext.interval(function(){var o,e,l,k,j,n,m;if(!(n=b.getElementById(f))){return !1}clearInterval(h);Ext.removeNode(n);o=Ext.getHead().dom;while(e=O.exec(c)){l=e[1];k=l?l.match(G):!1;if(k&&k[2]){m=b.createElement('script');m.src=k[2];j=l.match(E);if(j&&j[2]){m.type=j[2]}o.appendChild(m)}else {if(e[2]&&e[2].length>0){if(d){Ext.functionFactory(e[2]).call(d)}else {Ext.globalEval(e[2])}}}}Ext.callback(g,d||a)},20);e.innerHTML=c.replace(J,'');return a},setOpacity:function(c,b){var a=this;if(!a.dom){return a}if(!b||!a.anim){a.setStyle('opacity',c)}else {if(typeof b!='object'){b={duration:350,easing:'ease-in'}}a.animate(Ext.applyIf({to:{opacity:c}},b))}return a},setPositioning:function(a){return this.setStyle(a)},setVertical:function(e,d){var b=this,c=a.prototype;b.vertical=!0;if(d){b.addCls(b.verticalCls=d)}b.setWidth=c.setHeight;b.setHeight=c.setWidth;if(!Ext.isIE8){b.getWidth=c.getHeight;b.getHeight=c.getWidth}b.styleHooks=e===270?c.verticalStyleHooks270:c.verticalStyleHooks90},setSize:function(c,e,d){var b=this;if(Ext.isObject(c)){d=e;e=c.height;c=c.width}if(!d||!b.anim){b.dom.style.width=a.addUnits(c);b.dom.style.height=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}}else {if(d===!0){d={}}b.animate(Ext.applyIf({to:{width:c,height:e}},d))}return b},setVisible:function(f,g){var b=this,h=b.dom,c=u(b);if(typeof g==='string'){switch(g){case d:c=a.DISPLAY;break;case o:c=a.VISIBILITY;break;case A:c=a.OFFSETS;break;case H:c=a.CLIP;break;}b.setVisibilityMode(c);g=!1}if(!g||!b.anim){if(c===a.DISPLAY){return b.setDisplayed(f)}else {if(c===a.OFFSETS){b[f?'removeCls':'addCls'](N)}else {if(c===a.CLIP){b[f?'removeCls':'addCls'](w)}else {if(c===a.VISIBILITY){b.fixDisplay();h.style.visibility=f?'':e}}}}}else {if(f){b.setOpacity(0.01);b.setVisible(!0)}if(!Ext.isObject(g)){g={duration:350,easing:'ease-in'}}b.animate(Ext.applyIf({callback:function(){if(!f){Ext.fly(h).setVisible(!1).setOpacity(1)}},to:{opacity:f?1:0}},g))}b.getData()[x]=f;if(b.shadow||b.shim){b.setUnderlaysVisible(f)}return b},setWidth:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{width:c}},a))}return b},setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(b,a){var c=this;if(!a||!c.anim){arguments.callee.$previous.call(this,b)}else {if(!Ext.isObject(a)){a={}}c.animate(Ext.applyIf({to:{x:b[0],y:b[1]}},a))}return this},setY:function(b,a){return this.setXY([this.getX(),b],a)},show:function(a){if(typeof a==='string'){this.setVisible(!0,a);return this}this.setVisible(!0,this.anim(a));return this},slideIn:function(a,c,d){var b=this,g=b.dom,h=g.style,j,e,f,i;a=a||'t';c=c||{};j=function(){var p=this,o=c.listeners,m=Ext.fly(g,'_anim'),j,n,l,k;if(!d){m.fixDisplay()}j=m.getBox();if((a=='t'||a=='b')&&j.height===0){j.height=g.scrollHeight}else {if((a=='l'||a=='r')&&j.width===0){j.width=g.scrollWidth}}n=m.getStyle(['width','height','left','right','top','bottom','position','z-index'],!0);m.setSize(j.width,j.height);if(c.preserveScroll){f=m.cacheScrollValues()}k=m.wrap({role:'presentation',id:Ext.id()+'-anim-wrap-for-'+m.dom.id,style:{visibility:d?'visible':'hidden'}});i=k.dom.parentNode;k.setPositioning(m.getPositioning());if(k.isStyle('position','static')){k.position('relative')}m.clearPositioning('auto');k.clip();if(f){f()}m.setStyle({visibility:'',position:'absolute'});if(d){k.setSize(j.width,j.height)}switch(a){case 't':l={from:{width:j.width+'px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';break;case 'l':l={from:{width:'0px',height:j.height+'px'},to:{width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'r':l={from:{x:j.x+j.width,width:'0px',height:j.height+'px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'b':l={from:{y:j.y+j.height,width:j.width+'px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};break;case 'tl':l={from:{x:j.x,y:j.y,width:'0px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('l');break;case 'bl':l={from:{y:j.y+j.height,width:'0px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('l');break;case 'br':l={from:{x:j.x+j.width,y:j.y+j.height,width:'0px',height:'0px'},to:{x:j.x,y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('r');break;case 'tr':l={from:{x:j.x+j.width,width:'0px',height:'0px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('r');break;}k.show();e=Ext.apply({},c);delete e.listeners;e=new Ext.fx.Anim(Ext.applyIf(e,{target:k,duration:500,easing:'ease-out',from:d?l.to:l.from,to:d?l.from:l.to}));e.on('afteranimate',function(){var b=Ext.fly(g,'_anim');b.setStyle(n);if(d){if(c.useDisplay){b.setDisplayed(!1)}else {b.hide()}}if(k.dom){if(k.dom.parentNode){k.dom.parentNode.insertBefore(b.dom,k.dom)}else {i.appendChild(b.dom)}k.destroy()}if(f){f()}p.end()});if(o){e.on(o)}};b.animate({duration:c.duration?Math.max(c.duration,500)*2:1000,listeners:{beforeanimate:j}});return b},slideOut:function(a,b){return this.slideIn(a,b,!0)},swallowEvent:function(a,f){var b=this,c,d,e=function(b){b.stopPropagation();if(f){b.preventDefault()}};if(Ext.isArray(a)){d=a.length;for(c=0;c0){a.setAttribute(e,++f)}else {if(a.hasAttribute('tabIndex')){a.setAttribute(g,a.getAttribute('tabIndex'))}else {a.setAttribute(g,'none')}a.setAttribute('tabIndex','-1');a.setAttribute(e,'1')}}return c},restoreTabbableState:function(k,j){var g=this.dom,c=Ext.Element.tabbableSavedCounterAttribute,e=Ext.Element.tabbableSavedValueAttribute,b=[],h,f,b,a,d,i;if(!g){return this}if(!j){b=Ext.Array.from(g.querySelectorAll('['+c+']'))}if(!k){b.unshift(g)}for(d=0,i=b.length;d1){a.setAttribute(c,--f);continue}h=a.getAttribute(e);if(h==='none'){a.removeAttribute('tabIndex')}else {a.setAttribute('tabIndex',h)}a.removeAttribute(e);a.removeAttribute(c)}return b}},deprecated:{'4.0':{methods:{pause:function(b){var a=this;Ext.fx.Manager.setFxDefaults(a.id,{delay:b});return a},scale:function(c,a,b){this.animate(Ext.apply({},b,{width:c,height:a}));return this},shift:function(a){this.animate(a);return this}}},'4.2':{methods:{moveTo:function(b,c,a){return this.setXY([b,c],a)},setBounds:function(d,e,c,b,a){return this.setBox({x:d,y:e,width:c,height:b},a)},setLeftTop:function(d,e){var b=this,c=b.dom.style;c.left=a.addUnits(d);c.top=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocation:function(b,c,a){return this.setXY([b,c],a)}}},'5.0':{methods:{getAttributeNS:function(a,b){return this.getAttribute(b,a)},getCenterXY:function(){return this.getAlignToXY(b,'c-c')},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(C))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(F))||0},getStyleSize:function(){var d=this,e=this.dom,h=e===b||e===b.body,c,g,f;if(h){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}c=d.getStyle(['height','width'],!0);if(c.width&&c.width!=='auto'){g=parseFloat(c.width)}if(c.height&&c.height!=='auto'){f=parseFloat(c.height)}return {width:g||d.getWidth(!0),height:f||d.getHeight(!0)}},isBorderBox:function(){return !0},isDisplayed:function(){return !this.isStyle('display','none')},focusable:'isFocusable'}}}}}(),function(){var g=Ext.dom.Element,a=g.prototype,t=!Ext.isIE8,f=document,q=f.defaultView,p=/alpha\(opacity=(.*)\)/i,w=/^\s+|\s+$/g,d=a.styleHooks,e=Ext.supports,c,b,l,m,i,j,n;a._init(g);delete a._init;Ext.plainTableCls='x-table-plain';Ext.plainListCls='x-list-plain';if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!e.Opacity&&Ext.isIE){Ext.apply(d.opacity,{get:function(d){var c=d.style.filter,b,a;if(c.match){b=c.match(p);if(b){a=parseFloat(b[1]);if(!isNaN(a)){return a?a/100:0}}}return 1},set:function(d,a){var b=d.style,c=b.filter.replace(p,'').replace(w,'');b.zoom=1;if(typeof a==='number'&&a>=0&&a<1){a*=100;b.filter=c+(c.length?' ':'')+'alpha(opacity='+a+')'}else {b.filter=c}}})}if(!e.matchesSelector){var r=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,v=/\-/g,h,s=function(a,c){var b=new RegExp('(?:^|\\s+)'+c.replace(v,'\\-')+'(?:\\s+|$)');if(a&&a!=='*'){a=a.toUpperCase();return function(d){return d.tagName===a&&b.test(d.className)}}return function(d){return b.test(d.className)}},u=function(a){a=a.toUpperCase();return function(b){return b.tagName===a}},k={};a.matcherCache=k;a.is=function(a){if(!a){return !0}var b=this.dom,g,e,d,c,j,l,i;if(b.nodeType!==1){return !1}if(!(d=Ext.isFunction(a)?a:k[a])){if(!(e=a.match(r))){c=b.parentNode;if(!c){j=!0;c=h||(h=f.createDocumentFragment());h.appendChild(b)}l=Ext.Array.indexOf(Ext.fly(c,'_is').query(a),b)!==-1;if(j){h.removeChild(b)}return l}i=e[1];g=e[2];k[a]=d=g?s(i,g):u(i)}return d(b)}}if(!q||!q.getComputedStyle){a.getStyle=function(o,p){var j=this,e=j.dom,n=typeof o!=='string',a=o,i=a,r=1,m=p,l=j.styleHooks,q,h,d,c,f,b,k;if(n){d={};a=i[0];k=0;if(!(r=i.length)){return d}}if(!e||e.documentElement){return d||''}h=e.style;if(p){b=h}else {b=e.currentStyle;if(!b){m=!0;b=h}}do{c=l[a];if(!c){l[a]=c={name:g.normalize(a)}}if(c.get){f=c.get(e,j,m,b)}else {q=c.name;f=b[q]}if(!n){return f}d[a]=f;a=i[++k]}while(k=9)){a.getAttribute=function(a,c){var d=this.dom,b;if(c){b=typeof d[c+':'+a];if(b!=='undefined'&&b!=='unknown'){return d[c+':'+a]||null}return null}if(a==='for'){a='htmlFor'}return d[a]||null}}Ext.onInternalReady(function(){var o=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,h=[],p=a.setWidth,n=a.setHeight,m=a.setSize,q=/^\d+(?:\.\d*)?px$/i,i,l,k,j;if(e.FixedTableWidthBug){d.width={name:'width',set:function(c,e,f){var a=c.style,b=f._needsTableWidthFix,d=a.display;if(b){a.display='none'}a.width=e;if(b){c.scrollWidth;a.display=d}}};a.setWidth=function(g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}p.call(a,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a};a.setSize=function(h,g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}m.call(a,h,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a}}if(Ext.isIE8){d.height={name:'height',set:function(f,b,e){var a=e.component,d,c;if(a&&a._syncFrameHeight&&e===a.el){c=a.frameBody.dom.style;if(q.test(b)){d=a.getFrameInfo();if(d){c.height=parseInt(b,10)-d.height+'px'}}else {if(!b||b==='auto'){c.height=''}}}f.style.height=b}};a.setHeight=function(b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return n.call(this,b,e)};a.setSize=function(f,b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return m.call(this,f,b,e)}}Ext.getDoc().on('selectstart',function(h,a){var e=g.selectableCls,d=g.unselectableCls,b=a&&a.tagName;b=b&&b.toLowerCase();if(b==='input'||b==='textarea'){return}while(a&&a.nodeType===1&&a!==f.documentElement){var c=Ext.fly(a);if(c.hasCls(e)){return}if(c.hasCls(d)){h.stopEvent();return}a=a.parentNode}});function fixTransparent(d,e,c,b){var a=b[this.name]||'';return o.test(a)?'transparent':a}function makeSelectionRestoreFn(a,b,c){return function(){a.selectionStart=b;a.selectionEnd=c}}function getRightMarginFixCleaner(i){var h=e.DisplayChangeInputSelectionBug,f=e.DisplayChangeTextAreaSelectionBug,a,d,b,c;if(h||f){a=g.getActiveElement();d=a&&a.tagName;if(f&&d==='TEXTAREA'||h&&d==='INPUT'&&a.type==='text'){if(Ext.fly(i).isAncestor(a)){b=a.selectionStart;c=a.selectionEnd;if(Ext.isNumber(b)&&Ext.isNumber(c)){return makeSelectionRestoreFn(a,b,c)}}}}return Ext.emptyFn}function fixRightMargin(c,g,f,e){var b=e.marginRight,a,d;if(b!=='0px'){a=c.style;d=a.display;a.display='inline-block';b=(f?e:c.ownerDocument.defaultView.getComputedStyle(c,null)).marginRight;a.display=d}return b}function fixRightMarginAndInputFocus(b,h,g,f){var c=f.marginRight,a,d,e;if(c!=='0px'){a=b.style;d=getRightMarginFixCleaner(b);e=a.display;a.display='inline-block';c=(g?f:b.ownerDocument.defaultView.getComputedStyle(b,'')).marginRight;a.display=e;d()}return c}if(!e.RightMargin){d.marginRight=d['margin-right']={name:'marginRight',get:e.DisplayChangeInputSelectionBug||e.DisplayChangeTextAreaSelectionBug?fixRightMarginAndInputFocus:fixRightMargin}}if(!e.TransparentColor){i=['background-color','border-color','color','outline-color'];for(l=i.length;l--;){k=i[l];j=g.normalize(k);d[k]=d[j]={name:j,get:fixTransparent}}}a.verticalStyleHooks90=c=Ext.Object.chain(d);a.verticalStyleHooks270=b=Ext.Object.chain(d);c.width=d.height||{name:'height'};c.height=d.width||{name:'width'};c['margin-top']={name:'marginLeft'};c['margin-right']={name:'marginTop'};c['margin-bottom']={name:'marginRight'};c['margin-left']={name:'marginBottom'};c['padding-top']={name:'paddingLeft'};c['padding-right']={name:'paddingTop'};c['padding-bottom']={name:'paddingRight'};c['padding-left']={name:'paddingBottom'};c['border-top']={name:'borderLeft'};c['border-right']={name:'borderTop'};c['border-bottom']={name:'borderRight'};c['border-left']={name:'borderBottom'};b.width=d.height||{name:'height'};b.height=d.width||{name:'width'};b['margin-top']={name:'marginRight'};b['margin-right']={name:'marginBottom'};b['margin-bottom']={name:'marginLeft'};b['margin-left']={name:'marginTop'};b['padding-top']={name:'paddingRight'};b['padding-right']={name:'paddingBottom'};b['padding-bottom']={name:'paddingLeft'};b['padding-left']={name:'paddingTop'};b['border-top']={name:'borderRight'};b['border-right']={name:'borderBottom'};b['border-bottom']={name:'borderLeft'};b['border-left']={name:'borderTop'};if(!Ext.scopeCss){h.push('x-body')}if(e.Touch){h.push('x-touch')}if(Ext.isIE&&Ext.isIE9m){h.push('x-ie','x-ie9m');h.push('x-ie8p');if(Ext.isIE8){h.push('x-ie8')}else {h.push('x-ie9','x-ie9p')}if(Ext.isIE8m){h.push('x-ie8m')}}if(Ext.isIE10){h.push('x-ie10')}if(Ext.isIE10p){h.push('x-ie10p')}if(Ext.isIE11){h.push('x-ie11')}if(Ext.isGecko){h.push('x-gecko')}if(Ext.isOpera){h.push('x-opera')}if(Ext.isOpera12m){h.push('x-opera12m')}if(Ext.isWebKit){h.push('x-webkit')}if(Ext.isSafari){h.push('x-safari')}if(Ext.isChrome){h.push('x-chrome')}if(Ext.isMac){h.push('x-mac')}if(Ext.isLinux){h.push('x-linux')}if(!e.CSS3BorderRadius){h.push('x-nbr')}if(!e.CSS3LinearGradient){h.push('x-nlg')}if(e.Touch){h.push('x-touch')}Ext.getBody().addCls(h)},null,{priority:1500})});Ext.cmd.derive('Ext.GlobalEvents',Ext.mixin.Observable,{alternateClassName:'Ext.globalEvents',observableType:'global',singleton:!0,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},attachListeners:function(){Ext.get(window).on('resize',this.fireResize,this,{buffer:this.resizeBuffer});Ext.getDoc().on('mousedown',this.fireMouseDown,this)},fireMouseDown:function(a){this.fireEvent('mousedown',a)},fireResize:function(){var a=this,d=Ext.Element,c=d.getViewportWidth(),b=d.getViewportHeight();if(a.curHeight!==b||a.curWidth!==c){a.curHeight=b;a.curWidth=c;a.fireEvent('resize',c,b)}}},1,0,0,0,0,0,[Ext,'GlobalEvents',Ext,'globalEvents'],function(a){Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)}});Ext.define('Ext.overrides.GlobalEvents',{override:'Ext.GlobalEvents',deprecated:{5:{methods:{addListener:function(a,d,i,f,h,g,e){var c,b;if(a==='ready'){b=d}else {if(typeof a!=='string'){for(c in a){if(c==='ready'){b=a[c]}}}}if(b){Ext.onReady(b)}this.callParent([a,d,i,f,h,g,e])}}}}});Ext.USE_NATIVE_JSON=!1;Ext.JSON=new function(){var me=this,hasNative=window.JSON&&JSON.toString()==='[object JSON]',useHasOwn=!!{}.hasOwnProperty,pad=function(a){return a<10?'0'+a:a},doDecode=function(json){return eval('('+json+')')},doEncode=function(a,b){if(a===null||a===undefined){return 'null'}else {if(Ext.isDate(a)){return me.encodeDate(a)}else {if(Ext.isString(a)){if(Ext.isMSDate(a)){return me.encodeMSDate(a)}else {return me.encodeString(a)}}else {if(typeof a==='number'){return isFinite(a)?String(a):'null'}else {if(Ext.isBoolean(a)){return String(a)}else {if(a.toJSON){return a.toJSON()}else {if(Ext.isArray(a)){return encodeArray(a,b)}else {if(Ext.isObject(a)){return encodeObject(a,b)}else {if(typeof a==='function'){return 'null'}}}}}}}}}return 'undefined'},m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\','\v':'\\u000b'},charToReplace=/[\\\"\x00-\x1f\x7f-\uffff]/g,encodeString=function(a){return '"'+a.replace(charToReplace,function(b){var c=m[b];return typeof c==='string'?c:'\\u'+('0000'+b.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(a){return '"'+a+'"'},encodeArrayPretty=function(e,d){var f=e.length,c=d+' ',g=','+c,a=['[',c],b;for(b=0;b0}}return c},onBindNotify:function(b,c,a){a.syncing=a.syncing+1||1;this[a._config.names.set](b);--a.syncing},removeBindings:function(){var c=this,a,d,b;if(!c.destroying){a=c.getBind();if(a&&typeof a!=='string'){for(d in a){b=a[d];b.destroy();b._config=b.getTemplateScope=null}}}c.setBind(null)},updateSession:function(a){var b=this.getInherited();if(a){b.session=a}else {delete b.session}},updateViewModel:function(a){var c=this.getInherited(),b=this.getController();if(a){c.viewModel=a;a.setView(this);if(b){b.initViewModel(a)}}else {delete c.viewModel}}}},0,0,0,0,0,0,[Ext.mixin,'Bindable'],0);Ext.cmd.derive('Ext.mixin.ComponentDelegation',Ext.Mixin,{mixinConfig:{id:'componentDelegation'},privates:{addDelegatedListener:function(c,k,j,a,d,i,h){var b=this,e,g,f;d=d||a.order;if(d){f=a&&a.priority;if(!f){a=a?Ext.Object.chain(a):{};a.priority=b.$orderToPriority[d]}}e=b.$delegatedEvents||(b.$delegatedEvents={});g=e[c]||(e[c]=new Ext.util.Event(b,c));if(g.addListener(k,j,a,i,h)){b.$hasDelegatedListeners._incr_(c)}},clearDelegatedListeners:function(){var e=this,a=e.$delegatedEvents,b,c,d;if(a){for(b in a){c=a[b];d=c.listeners.length;c.clearListeners();e.$hasDelegatedListeners._decr_(b,d);delete a[b]}}},doFireDelegatedEvent:function(f,g){var e=this,d=!0,a,b,c;if(e.$hasDelegatedListeners[f]){a=e.getRefOwner();while(a){b=a.$delegatedEvents;if(b){c=b[f];if(c){d=c.fireDelegated(e,g);if(d===!1){break}}}a=a.getRefOwner()}}return d},removeDelegatedListener:function(c,f,e){var d=this,b=d.$delegatedEvents,a;if(b){a=b[c];if(a&&a.removeListener(f,e)){d.$hasDelegatedListeners._decr_(c);if(a.listeners.length===0){delete b[c]}}}}},onClassMixedIn:function(a){function HasListeners(){}a.prototype.HasListeners=a.HasListeners=HasListeners;HasListeners.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,'ComponentDelegation'],function(a){function HasDelegatedListeners(){}a.HasDelegatedListeners=HasDelegatedListeners;HasDelegatedListeners.prototype=a.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()});Ext.cmd.derive('Ext.Widget',Ext.Evented,{isWidget:!0,element:{reference:'element'},observableType:'component',cachedConfig:{style:null},config:{userCls:null},eventedConfig:{width:null,height:null},template:[],constructor:function(c){var a=this,b;a.initId(c);a.initElement();a.mixins.observable.constructor.call(a,c);Ext.ComponentManager.register(a);b=a.getController();if(b){b.init(a)}},afterCachedConfig:function(){var c=this,j=c.self.prototype,f=c.referenceList,i=c.renderElement,d,h,a,b,g,e;j.renderTemplate=d=document.createDocumentFragment();d.appendChild(i.clone(!0,!0));e=d.querySelectorAll('[id]');for(a=0,b=e.length;a]+>/gi,stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},undef:function(a){return a!==undefined?a:''},defaultValue:function(a,b){return a!==undefined&&a!==''?a:b},substr:'ab'.substr(-1)!='b'?function(d,a,c){var b=String(d);return a<0?b.substr(Math.max(b.length+a,0),c):b.substr(a,c)}:function(c,b,a){return String(c).substr(b,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(b){return a.currency(b,'$',2)},currency:function(b,f,c,h){var d='',e=',0',g=0;b=b-0;if(b<0){b=-b;d='-'}c=Ext.isDefined(c)?c:a.currencyPrecision;e+=c>0?'.':'';for(;gb){a=a.substring(a.length-b)}}while(a.length2){}else {if(e.length===2){d=e[1].length;f=e[1].match(a.hashRe);if(f){m=f[0].length;l='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+m+'}$")'}}}b=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts'+(h?',thousandSeparator,thousands=[],j,n,i':'')+(i?',formatString="'+c+'",formatPattern=/[\\d,\\.#]+/':'')+',trailingZeroes;return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";neg=v<0;','absVal=Math.abs(v);','fnum=Ext.Number.toFixed(absVal, '+d+');',l,';'];if(h){if(d){b[b.length]='parts=fnum.split(".");';b[b.length]='fnum=parts[0];'}b[b.length]='if(absVal>=1000) {';b[b.length]='thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i')},capitalize:Ext.String.capitalize,uncapitalize:Ext.String.uncapitalize,ellipsis:Ext.String.ellipsis,escape:Ext.String.escape,escapeRegex:Ext.String.escapeRegex,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,toggle:Ext.String.toggle,trim:Ext.String.trim,parseBox:function(b){b=b||0;if(typeof b==='number'){return {top:b,right:b,bottom:b,left:b}}var a=b.split(' '),c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else {if(c===2){a[2]=a[0];a[3]=a[1]}else {if(c===3){a[3]=a[1]}}}return {top:parseInt(a[0],10)||0,right:parseInt(a[1],10)||0,bottom:parseInt(a[2],10)||0,left:parseInt(a[3],10)||0}}}},1,0,0,0,0,0,[Ext.util,'Format'],0);Ext.cmd.derive('Ext.Template',Ext.Base,{inheritableStatics:{from:function(a,b){a=Ext.getDom(a);return new this(a.value||a.innerHTML,b||'')}},useEval:Ext.isGecko,constructor:function(g){var d=this,c=arguments,f=[],e,b=c.length,a;d.initialConfig={};if(b===1&&Ext.isArray(g)){c=g;b=c.length}if(b>1){for(e=0;e]*)\>)|(?:<\/tpl>)/g,actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g,propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/,defaultRe:/^\s*default\s*$/,elseRe:/^\s*else\s*$/},1,0,0,0,0,0,[Ext.util,'XTemplateParser'],0);Ext.cmd.derive('Ext.util.XTemplateCompiler',Ext.util.XTemplateParser,{useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:!0,propNameRe:/^[\w\d\$]*$/,compile:function(c){var a=this,b=a.generate(c);return a.useEval?a.evalTpl(b):(new Function('Ext',b))(Ext)},generate:function(d){var a=this,b='var fm=Ext.util.Format,ts=Object.prototype.toString;',c;a.maxLevel=0;a.body=['var c0=values, a0='+a.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(a.definitions){if(typeof a.definitions==='string'){a.definitions=[a.definitions,b]}else {a.definitions.push(b)}}else {a.definitions=[b]}a.switches=[];a.parse(d);a.definitions.push((a.useEval?'$=':'return')+' function ('+a.fnArgs+') {',a.body.join(''),'}');c=a.definitions.join('\n');a.definitions.length=a.body.length=a.switches.length=0;delete a.definitions;delete a.body;delete a.switches;return c},doText:function(a){var b=this,c=b.body;a=a.replace(b.aposRe,"\\'").replace(b.newLineRe,'\\n');if(b.useIndex){c.push("out[out.length]='",a,"'\n")}else {c.push("out.push('",a,"')\n")}},doExpr:function(b){var a=this.body;a.push('if ((v='+b+') != null) out');if(this.useIndex){a.push("[out.length]=v+''\n")}else {a.push(".push(v+'')\n")}},doTag:function(b){var a=this.parseTag(b);if(a){this.doExpr(a)}else {this.doText('{'+b+'}')}},doElse:function(){this.body.push('} else {\n')},doEval:function(a){this.body.push(a,'\n')},doIf:function(b,c){var a=this;if(b==='.'){a.body.push('if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('if (',a.parseTag(b),') {\n')}else {a.body.push('if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==='.'){a.body.push('else if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('} else if (',a.parseTag(b),') {\n')}else {a.body.push('} else if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doSwitch:function(b){var a=this,c;if(b==='.'||b==='#'){c=b==='.'?'values':'xindex';a.body.push('switch (',c,') {\n')}else {if(a.propNameRe.test(b)){a.body.push('switch (',a.parseTag(b),') {\n')}else {a.body.push('switch (',a.addFn(b),a.callFn,') {\n')}}a.switches.push(0)},doCase:function(e){var a=this,c=Ext.isArray(e)?e:[e],d=a.switches.length-1,f,b;if(a.switches[d]){a.body.push('break;\n')}else {a.switches[d]++}for(b=0,d=c.length;b1){ out.push("',d.between,'"); } \n')}},doForEach:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else {if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}}if(b.maxLevel1){ out.push("',d.between,'"); } \n')}},createArrayTest:'isArray' in Array?function(a){return 'Array.isArray(c'+a+')'}:function(a){return 'ts.call(c'+a+')==="[object Array]"'},doExec:function(d,e){var a=this,c='f'+a.definitions.length,b=a.guards[a.strict?0:1];a.definitions.push('function '+c+'('+a.fnArgs+') {',b.doTry,' var $v = values; with($v) {',' '+d,' }',b.doCatch,'}');a.body.push(c+a.callFn+'\n')},guards:[{doTry:'',doCatch:''},{doTry:'try { ',doCatch:' } catch(e) {\n}'}],addFn:function(c){var a=this,b='f'+a.definitions.length,d=a.guards[a.strict?0:1];if(c==='.'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return values','}')}else {if(c==='..'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return parent','}')}else {a.definitions.push('function '+b+'('+a.fnArgs+') {',d.doTry,' var $v = values; with($v) {',' return('+c+')',' }',d.doCatch,'}')}}return b},parseTag:function(h){var e=this,f=e.tagRe.exec(h),a,c,d,g,b;if(!f){return null}a=f[1];c=f[2];d=f[3];g=f[4];if(a=='.'){if(!e.validTypes){e.definitions.push('var validTypes={string:1,number:1,boolean:1};');e.validTypes=!0}b='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else {if(a=='#'){b='xindex'}else {if(a=='$'){b='xkey'}else {if(a.substr(0,7)=='parent.'){b=a}else {if(isNaN(a)&&a.indexOf('-')==-1&&a.indexOf('.')!=-1){b='values.'+a}else {b="values['"+a+"']"}}}}}if(g){b='('+b+g+')'}if(c&&e.useFormat){d=d?','+d:'';if(c.substr(0,5)!='this.'){c='fm.'+c+'('}else {c+='('}}else {return b}return c+b+d+')'},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},0,0,0,0,0,0,[Ext.util,'XTemplateCompiler'],function(){var a=this.prototype;a.fnArgs='out,values,parent,xindex,xcount,xkey';a.callFn='.call(this,'+a.fnArgs+')'});Ext.cmd.derive('Ext.XTemplate',Ext.Template,{isXTemplate:!0,emptyObj:{},fn:null,strict:!1,apply:function(b,a,d,c){return this.applyOut(b,[],a,d,c).join('')},applyOut:function(g,d,f,c,b){var a=this,e;if(!a.fn){e=new Ext.util.XTemplateCompiler({useFormat:a.disableFormats!==!0,definitions:a.definitions,strict:a.strict});a.fn=e.compile(a.html)}c=c||1;b=b||1;if(a.strict){a.fn(d,g,f||a.emptyObj,c,b)}else {try{a.fn(d,g,f||a.emptyObj,c,b)}catch(h){}}return d},compile:function(){return this},statics:{getTpl:function(c,d){var b=c[d],a;if(b&&!b.isTemplate){b=Ext.ClassManager.dynInstantiate('Ext.XTemplate',b);if(c.hasOwnProperty(d)){a=c}else {for(a=c.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=b;b.owner=a}return b||null}}},0,0,0,0,0,0,[Ext,'XTemplate'],0);Ext.cmd.derive('Ext.app.EventDomain',Ext.Base,{statics:{instances:{}},isEventDomain:!0,isInstance:!1,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(l,h,m){h=Ext.canonicalEventName(h);var j=this,n=j.bus,b=n[h],c,a,i,g,e,k,d,f;if(!b){return !0}for(c in b){if(b.hasOwnProperty(c)&&j.match(l,c,j.controller)){a=b[c];for(i in a){if(a.hasOwnProperty(i)){g=a[i];if(g.controller.isActive()){e=g.list;k=e.length;for(d=0;da.clientWidth}}if(e==='scroll'){h=!0}else {if(e){h=a.scrollHeight>a.clientHeight}}if(g){i=f.height}if(h){j=f.width}}}return {width:j,height:i}},getPosition:function(){return this.position},updateDirectionLock:Ext.emptyFn,updateDisabled:Ext.emptyFn,updateIndicators:Ext.emptyFn,updateMaxPosition:Ext.emptyFn,updateMaxUserPosition:Ext.emptyFn,updateMinPosition:Ext.emptyFn,updateMinUserPosition:Ext.emptyFn,updateMomenumEasing:Ext.emptyFn,updateX:Ext.emptyFn,updateY:Ext.emptyFn,onPartnerScrollStart:Ext.emptyFn,onPartnerScrollEnd:Ext.emptyFn,refresh:function(){this.fireEvent('refresh',this);return this},removePartner:function(c){var b=this._partners,a=c._partners;if(b){delete b[c.getId()]}if(a){delete a[this.getId()]}},scrollBy:function(a,b,c){var d=this.getPosition();if(a){if(a.length){c=b;b=a[1];a=a[0]}else {if(typeof a!=='number'){c=b;b=a.y;a=a.x}}}a=typeof a==='number'?a+d.x:null;b=typeof b==='number'?b+d.y:null;return this.doScrollTo(a,b,c)},scrollIntoView:function(d,i,h,e){var a=this,c=a.getPosition(),b,f,g,j=a.getElement();if(d){b=Ext.fly(d).getScrollIntoViewXY(j,c.x,c.y);f=i===!1?c.x:b.x;g=b.y;if(e){a.on({scrollend:'doHighlight',scope:a,single:!0,args:[d,e]})}a.doScrollTo(f,g,h)}},isInView:function(d){var f=this,c={x:!1,y:!1},b,e=f.getElement(),a;if(d&&e.contains(d)){a=e.getRegion();b=Ext.fly(d).getRegion();c.x=b.right>a.left&&b.lefta.top&&b.top0){b-=1}if(c>0){c-=1}e.setSpacerXY({x:b,y:c});d.show()}}},deprecated:{5:{methods:{getScroller:function(){return this}}},'5.1.0':{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}},privates:{getSpacer:function(){var b=this,a=b._spacer,c;if(!a){c=b.getElement();a=b._spacer=c.createChild({cls:b._spacerCls,role:'presentation'});a.setVisibilityMode(2);c.position()}return a},applySpacerXY:function(a,b){if(b&&a.x===b.x&&a.y===b.y){a=undefined}return a},updateSpacerXY:function(a){this.getSpacer().setLocalXY(a.x,a.y)},convertX:function(a){return a},doHighlight:function(b,a){if(a!==!0){Ext.fly(b).highlight(a)}else {Ext.fly(b).highlight()}},fireScrollStart:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollStart',b,c);if(a.hasListeners.scrollstart){a.fireEvent('scrollstart',a,b,c)}if(d&&d.onScrollStart){d.onScrollStart(b,c)}Ext.GlobalEvents.fireEvent('scrollstart',a,b,c)},fireScroll:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScroll',b,c);if(a.hasListeners.scroll){a.fireEvent('scroll',a,b,c)}if(d&&d.onScrollMove){d.onScrollMove(b,c)}Ext.GlobalEvents.fireEvent('scroll',a,b,c)},fireScrollEnd:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollEnd',b,c);if(a.hasListeners.scrollend){a.fireEvent('scrollend',a,b,c)}if(d&&d.onScrollEnd){d.onScrollEnd(b,c)}Ext.GlobalEvents.fireEvent('scrollend',a,b,c)},initXStyle:function(){var b=this.getElement(),a=this.getX();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-x',a)}},initYStyle:function(){var b=this.getElement(),a=this.getY();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-y',a)}},invokePartners:function(d,g,h){var b=this,c=b._partners,a,e,f=d==='onPartnerScrollEnd';if(!b.suspendSync&!b.isReflecting){for(e in c){a=c[e].scroller;a.isReflecting=!0;a[d](b,g,h);if(f){a.isReflecting=!1}}}},clearReflecting:function(){this.isReflecting=!1},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(){if(this.suspendSync){this.suspendSync--}},updateDomScrollPosition:function(){var a=this,d=a.getElement(),b,c=a.position;if(d&&!d.destroyed){b=a.getElementScroll(d);c.x=b.left;c.y=b.top}a.positionDirty=!1;return c},getElementScroll:function(a){return a.getScroll()},onDomScroll:function(){var a=this,b,d,e,c;if(a.isTouchScroller&&Ext.supports.touchScroll===2){c=a.getElement().dom;c.scrollTop=c.scrollLeft=0;return}b=a.updateDomScrollPosition();d=b.x;e=b.y;if(!a.isScrolling){a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(d,e)}a.fireScroll(d,e);a.onDomScrollEnd()},onDomScrollEnd:function(){var a=this,b=a.getPosition(),c=b.x,d=b.y;a.isScrolling=Ext.isScrolling=!1;a.trackingScrollLeft=c;a.trackingScrollTop=d;a.fireScrollEnd(c,d)},onPartnerScroll:function(d,b,c){var a=d._partners[this.getId()].axis;if(a){if(a==='x'){c=null}else {if(a==='y'){b=null}}}this.doScrollTo(b,c,!1,!0)},restoreState:function(){var a=this,c=a.getElement(),b;if(c){b=c.dom;if(a.trackingScrollTop!==undefined){b.scrollTop=a.trackingScrollTop;b.scrollLeft=a.trackingScrollLeft}}}}},1,0,0,0,['scroller.scroller'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.scroll,'Scroller'],0);Ext.cmd.derive('Ext.fx.easing.Abstract',Ext.Base,{config:{startTime:0,startValue:0},isEasing:!0,isEnded:!1,constructor:function(a){this.initConfig(a);return this},applyStartTime:function(a){if(!a){a=Ext.Date.now()}return a},updateStartTime:function(a){this.reset()},reset:function(){this.isEnded=!1},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,'Abstract'],0);Ext.cmd.derive('Ext.fx.easing.Momentum',Ext.fx.easing.Abstract,{config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(b){var a=Math.log(1-b/10);this.theta=a;this.alpha=a/this.getAcceleration()},updateStartVelocity:function(a){this.velocity=a*this.getAcceleration()},updateAcceleration:function(a){this.velocity=this.getStartVelocity()*a;this.alpha=this.theta/a},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var a=Ext.Date.now()-this.getStartTime();return Math.exp(a*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}},0,0,0,0,0,0,[Ext.fx.easing,'Momentum'],0);Ext.cmd.derive('Ext.fx.easing.Bounce',Ext.fx.easing.Abstract,{config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var b=Ext.Date.now()-this.getStartTime(),a=b/this.getAcceleration(),c=a*Math.pow(Math.E,-this.getSpringTension()*a);return this.getStartValue()+this.getStartVelocity()*c}},0,0,0,0,0,0,[Ext.fx.easing,'Bounce'],0);Ext.cmd.derive('Ext.fx.easing.BoundMomentum',Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(b,a){return Ext.factory(b,Ext.fx.easing.Momentum,a)},applyBounce:function(b,a){return Ext.factory(b,Ext.fx.easing.Bounce,a)},updateStartTime:function(a){this.getMomentum().setStartTime(a);Ext.fx.easing.Abstract.prototype.updateStartTime.apply(this,arguments)},updateStartVelocity:function(a){this.getMomentum().setStartVelocity(a)},updateStartValue:function(a){this.getMomentum().setStartValue(a)},reset:function(){this.lastValue=null;this.isBouncingBack=!1;this.isOutOfBound=!1;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var d=this.getMomentum(),j=this.getBounce(),f=d.getStartVelocity(),b=f>0?1:-1,i=this.getMinMomentumValue(),h=this.getMaxMomentumValue(),g=b==1?h:i,c=this.lastValue,a,e;if(f===0){return this.getStartValue()}if(!this.isOutOfBound){a=d.getValue();e=d.getVelocity();if(Math.abs(e)=i&&a<=h){return a}this.isOutOfBound=!0;j.setStartTime(Ext.Date.now()).setStartVelocity(e).setStartValue(g)}a=j.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(c!==null){if(b==1&&ac){this.isBouncingBack=!0}}}else {if(Math.round(a)==g){this.isEnded=!0}}}this.lastValue=a;return a}},0,0,0,0,0,0,[Ext.fx.easing,'BoundMomentum'],0);Ext.cmd.derive('Ext.fx.easing.Linear',Ext.fx.easing.Abstract,{config:{duration:0,endValue:0},updateStartValue:function(a){this.distance=this.getEndValue()-a},updateEndValue:function(a){this.distance=a-this.getStartValue()},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration();if(a>b){this.isEnded=!0;return this.getEndValue()}else {return this.getStartValue()+a/b*this.distance}}},0,0,0,0,['easing.linear'],0,[Ext.fx.easing,'Linear'],0);Ext.cmd.derive('Ext.fx.easing.EaseOut',Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,i=a/b,h=1-i,g=1-Math.pow(h,this.getExponent()),c=d+g*e;if(a>=b){this.isEnded=!0;return f}return c}},0,0,0,0,['easing.ease-out'],0,[Ext.fx.easing,'EaseOut'],0);Ext.cmd.derive('Ext.util.translatable.Abstract',Ext.Evented,{config:{useWrapper:null,easing:null,easingX:null,easingY:null},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:!1,isTranslatable:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,'easing')},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},doTranslate:Ext.emptyFn,translate:function(a,b,c){if(c){return this.translateAnimated(a,b,c)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a=='number'){this.x=a}if(!isNaN(b)&&typeof b=='number'){this.y=b}this.doTranslate(a,b)},translateAxis:function(e,a,d){var b,c;if(e=='x'){b=a}else {c=a}return this.translate(b,c,d)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(a,b){this.activeEasingX=a;this.activeEasingY=b;this.isAnimating=!0;this.lastX=null;this.lastY=null;Ext.AnimationQueue.start(this.doAnimationFrame,this);this.fireEvent('animationstart',this,this.x,this.y);return this},translateAnimated:function(g,h,a){var b=this;if(!Ext.isObject(a)){a={}}if(b.isAnimating){b.stopAnimation()}b.callback=a.callback;b.callbackScope=a.scope;var f=Ext.Date.now(),e=a.easing,c=typeof g=='number'?a.easingX||e||b.getEasingX()||!0:null,d=typeof h=='number'?a.easingY||e||b.getEasingY()||!0:null;if(c){c=b.factoryEasing(c);c.setStartTime(f);c.setStartValue(b.x);c.setEndValue(g);if('duration' in a){c.setDuration(a.duration)}}if(d){d=b.factoryEasing(d);d.setStartTime(f);d.setStartValue(b.y);d.setEndValue(h);if('duration' in a){d.setDuration(a.duration)}}return b.animate(c,d)},doAnimationFrame:function(){var a=this,d=a.activeEasingX,e=a.activeEasingY,f=Date.now(),b,c;if(!a.isAnimating){return}a.lastRun=f;if(d===null&&e===null){a.stopAnimation();return}if(d!==null){a.x=b=Math.round(d.getValue());if(d.isEnded){a.activeEasingX=null;a.fireEvent('axisanimationend',a,'x',b)}}else {b=a.x}if(e!==null){a.y=c=Math.round(e.getValue());if(e.isEnded){a.activeEasingY=null;a.fireEvent('axisanimationend',a,'y',c)}}else {c=a.y}if(a.lastX!==b||a.lastY!==c){a.doTranslate(b,c);a.lastX=b;a.lastY=c}a.fireEvent('animationframe',a,b,c)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=!1;Ext.AnimationQueue.stop(a.doAnimationFrame,a);a.fireEvent('animationend',a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){if(this.isAnimating){this.stopAnimation()}Ext.Evented.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.translatable,'Abstract'],0);Ext.cmd.derive('Ext.util.translatable.Dom',Ext.util.translatable.Abstract,{config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,'Dom'],0);Ext.cmd.derive('Ext.util.translatable.CssTransform',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement();if(!this.destroyed&&!a.destroyed){a.translate(b,c)}},destroy:function(){var a=this.getElement();if(a&&!a.destroyed){a.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssTransform'],0);Ext.cmd.derive('Ext.util.translatable.ScrollPosition',Ext.util.translatable.Dom,{type:'scrollposition',config:{useWrapper:!0},getWrapper:function(){var a=this.wrapper,c=this.getElement(),b;if(!a){b=c.getParent();if(!b){return null}if(b.hasCls('x-translatable-hboxfix')){b=b.getParent()}if(this.getUseWrapper()){a=c.wrap()}else {a=b}c.addCls('x-translatable');a.addCls('x-translatable-container');this.wrapper=a;a.on('painted',function(){if(!this.isAnimating){this.refresh()}},this);this.refresh()}return a},doTranslate:function(c,d){var b=this.getWrapper(),a;if(b){a=b.dom;if(typeof c=='number'){a.scrollLeft=500000-c}if(typeof d=='number'){a.scrollTop=500000-d}}},destroy:function(){var a=this,c=a.getElement(),b=a.wrapper;if(b){if(!c.destroyed){if(a.getUseWrapper()){b.doReplaceWith(c)}c.removeCls('x-translatable')}if(!b.destroyed){b.removeCls('x-translatable-container');b.un('painted','refresh',a)}delete a.wrapper;delete a._element}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollPosition'],0);Ext.cmd.derive('Ext.util.translatable.ScrollParent',Ext.util.translatable.Dom,{isScrollParent:!0,applyElement:function(b){var a=Ext.get(b);if(a){this.parent=a.parent()}return a},doTranslate:function(b,c){var a=this.parent;a.setScrollLeft(Math.round(-b));a.setScrollTop(Math.round(-c))},getPosition:function(){var c=this,a=c.position,b=c.parent;a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollParent'],0);Ext.cmd.derive('Ext.util.translatable.CssPosition',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement().dom.style;if(typeof b=='number'){a.left=b+'px'}if(typeof c=='number'){a.top=c+'px'}},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssPosition'],0);Ext.cmd.derive('Ext.util.Translatable',Ext.Base,{constructor:function(a){var b=Ext.util.translatable;switch(Ext.browser.getPreferredTranslationMethod(a)){case 'scrollposition':return new b.ScrollPosition(a);case 'scrollparent':return new b.ScrollParent(a);case 'csstransform':return new b.CssTransform(a);case 'cssposition':return new b.CssPosition(a);}}},1,0,0,0,0,0,[Ext.util,'Translatable'],0);Ext.cmd.derive('Ext.scroll.Indicator',Ext.Widget,{config:{axis:null,hideAnimation:!0,hideDelay:0,scroller:null,minLength:24},defaultHideAnimation:{to:{opacity:0},duration:300},names:{x:{side:'l',getSize:'getHeight',setLength:'setWidth',translate:'translateX'},y:{side:'t',getSize:'getWidth',setLength:'setHeight',translate:'translateY'}},oppositeAxis:{x:'y',y:'x'},cls:'x-scroll-indicator',applyHideAnimation:function(a){if(a){a=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,a)}return a},constructor:function(c){var a=this,b;Ext.Widget.prototype.constructor.call(this,c);b=a.getAxis();a.names=a.names[b];a.element.addCls(a.cls+' '+a.cls+'-'+b)},hide:function(){var a=this,b=a.getHideDelay();if(b){a._hideTimer=Ext.defer(a.doHide,b,a)}else {a.doHide()}},setValue:function(c){var a=this,o=a.element,l=a.names,m=a.getAxis(),k=a.getScroller(),f=k.getMaxUserPosition()[m],g=k.getElementSize()[m],b=a.length,j=a.getMinLength(),e=b,i=g-b-a.sizeAdjust,h=Math.round,n=Math.max,d;if(c<0){e=h(n(b+b*c/g,j));d=0}else {if(c>f){e=h(n(b-b*(c-f)/g,j));d=i+b-e}else {d=h(c/f*i)}}a[l.translate](d);o[l.setLength](e)},show:function(){var a=this,b=a.element,c=b.getActiveAnimation();if(c){c.end()}if(!a._inDom){a.getScroller().getElement().appendChild(b);a._inDom=!0;if(!a.size){a.cacheStyles()}}a.refreshLength();clearTimeout(a._hideTimer);b.setStyle('opacity','')},privates:{cacheStyles:function(){var a=this,c=a.element,b=a.names;a.size=c[b.getSize]();a.margin=c.getMargin(b.side)},doHide:function(){var a=this.getHideAnimation(),b=this.element;if(a){b.animate(a)}else {b.setStyle('opacity',0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle('opacity','0')},refreshLength:function(){var a=this,i=a.names,g=a.getAxis(),e=a.getScroller(),h=e.getSize()[g],c=e.getElementSize()[g],j=c/h,b=a.margin*2,d=a.hasOpposite()?b+a.size:b,f=Math.max(Math.round((c-d)*j),a.getMinLength());a.sizeAdjust=d;a.length=f;a.element[i.setLength](f)},translateX:function(a){this.element.translate(a)},translateY:function(a){this.element.translate(0,a)}}},1,['scrollindicator'],['widget','scrollindicator'],{'widget':!0,'scrollindicator':!0},['widget.scrollindicator'],0,[Ext.scroll,'Indicator'],0);Ext.cmd.derive('Ext.scroll.TouchScroller',Ext.scroll.Scroller,{isTouchScroller:!0,config:{autoRefresh:!0,bounceEasing:{duration:400},elementSize:undefined,indicators:!0,fps:'auto',maxAbsoluteVelocity:6,momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,innerElement:null,size:undefined,slotSnapEasing:{duration:150},slotSnapOffset:{x:0,y:0},startMomentumResetTime:300,translatable:{translationMethod:'auto',useWrapper:!1}},cls:'x-scroll-container',scrollerCls:'x-scroll-scroller',dragStartTime:0,dragEndTime:0,isDragging:!1,isAnimating:!1,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:'onTouchStart',touchmove:'onTouchMove',dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd'},refreshCounter:0,constructor:function(c){var a=this,b='onEvent';a.elementListeners={touchstart:b,touchmove:b,dragstart:b,drag:b,dragend:b,scope:a};a.minPosition={x:0,y:0};a.startPosition={x:0,y:0};a.velocity={x:0,y:0};a.isAxisEnabledFlags={x:!1,y:!1};a.flickStartPosition={x:0,y:0};a.flickStartTime={x:0,y:0};a.lastDragPosition={x:0,y:0};a.dragDirection={x:0,y:0};Ext.scroll.Scroller.prototype.constructor.call(this,c);a.refreshAxes();a.scheduleRefresh={idle:a.doRefresh,scope:a,single:!0,destroyable:!0}},applyBounceEasing:function(b){var a=Ext.fx.easing.EaseOut;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyElementSize:function(b){var e=this.getElement(),a,c,d;if(!e){return null}a=e.dom;if(!a){return}if(b==null){c=a.clientWidth;d=a.clientHeight}else {c=b.x;d=b.y}return {x:c,y:d}},applyIndicators:function(b,a){var g=this,c,d,e,f;if(b){if(b===!0){c=d={}}else {e=b.x;f=b.y;if(e||f){c=e==null||e===!0?{}:e;d=e==null||f===!0?{}:f}else {c=d=b}}if(a){if(c){a.x.setConfig(c)}else {a.x.destroy();a.x=null}if(d){a.y.setConfig(d)}else {a.y.destroy();a.y=null}b=a}else {b={x:null,y:null};if(c){b.x=new Ext.scroll.Indicator(Ext.applyIf({axis:'x',scroller:g},c))}if(d){b.y=new Ext.scroll.Indicator(Ext.applyIf({axis:'y',scroller:g},d))}}}else {if(a){if(a.x){a.x.destroy()}if(a.y){a.y.destroy()}a.x=a.y=null}}return b},applyMomentumEasing:function(b){var a=Ext.fx.easing.BoundMomentum;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyInnerElement:function(a){if(a&&!a.isElement){a=Ext.get(a)}return a},applyMaxPosition:function(a,c){if(c&&a.x===c.x&&a.y===c.y){return}var d=this.getTranslatable(),b;if(d.isAnimating){b=d.activeEasingY;if(b&&b.getStartVelocity&&b.getStartVelocity()<0&&a.yi){d=i}}if(l){c=a.convertX(c);d=a.convertX(d)}if(d!==null){f=a.getBounceEasing()[b];f.setConfig({startTime:j,startValue:-c,endValue:-d});return f}if(e===0){return null}if(e<-g){e=-g}else {if(e>g){e=g}}f=a.getMomentumEasing()[b];h={startTime:j,startValue:-c,startVelocity:e*1.5,minMomentumValue:-i,maxMomentumValue:0};if(l){a.convertEasingConfig(h)}f.setConfig(h);return f},getSnapPosition:function(d){var e=this,c=e.getSlotSnapSize()[d],f=null,b,h,g,a;if(c!==0&&e.isAxisEnabled(d)){b=e.position[d];h=e.getSlotSnapOffset()[d];g=e.getMaxUserPosition()[d];a=Math.floor((b-h)%c);if(a!==0){if(b!==g){if(Math.abs(a)>c/2){f=Math.min(g,b+(a>0?c-a:a-c))}else {f=b-a}}else {f=b-a}}}return f},hideIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.hide()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.hide()}}}},isAxisEnabled:function(a){this.getX();this.getY();return this.isAxisEnabledFlags[a]},onAnimationEnd:function(){this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(d,b,c){var a=this.position;a.x=this.convertX(-b);a.y=-c;this.onScroll()},onAxisDrag:function(a,k){if(k&&this.isAxisEnabled(a)){var b=this,o=b.flickStartPosition,g=b.flickStartTime,f=b.lastDragPosition,d=b.dragDirection,r=b.position[a],q=b.getMinUserPosition()[a],e=b.getMaxUserPosition()[a],p=b.startPosition[a],l=f[a],c=p-k,i=d[a],h=b.getOutOfBoundRestrictFactor(),n=b.getStartMomentumResetTime(),m=Ext.Date.now(),j;if(ce){j=c-e;c=e+j*h}}if(c>l){d[a]=1}else {if(cn){o[a]=r;g[a]=m}f[a]=c;return !0}},onDomScroll:function(){var c=this,b,a;if(c.getTranslatable().isScrollParent){b=c.getElement().dom;a=c.position;a.x=b.scrollLeft;a.y=b.scrollTop}Ext.scroll.Scroller.prototype.onDomScroll.call(this)},onDrag:function(c){var a=this,b=a.lastDragPosition;if(!a.isDragging){return}if(a.onAxisDrag('x',a.convertX(c.deltaX))|a.onAxisDrag('y',c.deltaY)){a.doScrollTo(b.x,b.y)}},onDragEnd:function(d){var a=this,b,c;if(!a.isDragging){return}a.dragEndTime=Ext.Date.now();a.onDrag(d);a.isDragging=!1;b=a.getAnimationEasing('x',d);c=a.getAnimationEasing('y',d);if(b||c){a.getTranslatable().animate(b,c)}else {a.onScrollEnd()}},onDragStart:function(d){var a=this,b=a.getDirection(),m=d.absDeltaX,n=d.absDeltaY,o=a.getDirectionLock(),l=a.startPosition,g=a.flickStartPosition,j=a.flickStartTime,h=a.lastDragPosition,i=a.position,k=a.dragDirection,e=i.x,f=i.y,c=Ext.Date.now();if(o&&b!=='both'){if(b==='horizontal'&&m>n||b==='vertical'&&n>m){d.stopPropagation()}else {return}}h.x=e;h.y=f;g.x=e;g.y=f;l.x=e;l.y=f;j.x=c;j.y=c;k.x=0;k.y=0;a.dragStartTime=c;a.isDragging=!0;if(!a.isScrolling){a.onScrollStart()}},onElementResize:function(b,a){this.refresh(!0,{elementSize:{x:a.contentWidth,y:a.contentHeight},size:this.getAutoRefresh()?null:this.getSize()})},onElementScroll:function(b,a){a.scrollTop=a.scrollLeft=0},onEvent:function(b){var a=this,c=b.browserEvent;if((!a.self.isTouching||a.isTouching)&&(!a.getTranslatable().isScrollParent||!a.isMouseEvent[c.type]&&c.pointerType!=='mouse')&&(a.getY()||a.getX())){a[a.listenerMap[b.type]](b)}},onInnerElementResize:function(b,a){this.refresh(!0,{size:{x:a.width,y:a.height}})},onMouseWheel:function(j){var a=this,g=j.getWheelDeltas(),c=-g.x,d=-g.y,b=a.position,e=a.getMaxUserPosition(),f=a.getMinUserPosition(),h=Math.max,i=Math.min,k=h(i(b.x+c,e.x),f.x),l=h(i(b.y+d,e.y),f.y);c=k-b.x;d=l-b.y;if(!c&&!d){return}j.stopEvent();a.onScrollStart();a.scrollBy(c,d);a.onScroll();a.onScrollEnd()},onPartnerScrollEnd:function(b,c){var a=this;if(!a.getTranslatable().isScrollParent){a.fireScrollEnd(b,c)}Ext.scroll.Scroller.prototype.onPartnerScrollEnd.call(this,b,c);a.isScrolling=!1;a.hideIndicators()},onPartnerScrollStart:function(b,c){var a=this;a.isScrolling=!0;if(!a.getTranslatable().isScrollParent){a.fireScrollStart(b,c)}a.showIndicators()},onScroll:function(){var a=this,e=a.position,f=e.x,g=e.y,b=a.getIndicators(),c,d;if(b){if(a.isAxisEnabled('x')){c=b.x;if(c){c.setValue(f)}}if(a.isAxisEnabled('y')){d=b.y;if(d){d.setValue(g)}}}a.fireScroll(f,g)},onScrollEnd:function(){var a=this,b=a.position;if(a.isScrolling&&!a.isTouching&&!a.snapToSlot()){a.hideIndicators();a.isScrolling=Ext.isScrolling=!1;a.fireScrollEnd(b.x,b.y)}},onScrollStart:function(){var a=this,b=a.position;if(!a.isScrolling){a.showIndicators();a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(b.x,b.y)}},onTouchEnd:function(){var a=this;a.isTouching=a.self.isTouching=!1;if(!a.isDragging&&a.snapToSlot()){a.onScrollStart()}},onTouchMove:function(a){a.preventDefault()},onTouchStart:function(){var a=this;a.isTouching=a.self.isTouching=!0;Ext.getDoc().on({touchend:'onTouchEnd',scope:a,single:!0});a.stopAnimation()},refreshAxes:function(){var a=this,b=a.isAxisEnabledFlags,k=a.getSize(),h=a.getElementSize(),e=a.getIndicators(),f,g,c,d,i,j;if(!k||!h){return}f=Math.max(0,k.x-h.x);g=Math.max(0,k.y-h.y);c=a.getX();d=a.getY();a.setMaxPosition({x:f,y:g});if(c===!0||c==='auto'){b.x=!!f}else {if(c===!1){b.x=!1;i=e&&e.x;if(i){i.hide()}}else {if(c==='scroll'){b.x=!0}}}if(d===!0||d==='auto'){b.y=!!g}else {if(d===!1){b.y=!1;j=e&&e.y;if(j){j.hide()}}else {if(d==='scroll'){b.y=!0}}}a.setMaxUserPosition({x:b.x?f:0,y:b.y?g:0});if(Ext.supports.touchScroll===1){a.initXStyle();a.initYStyle()}},showIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.show()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.show()}}}},snapToBoundary:function(){var a=this,d=a.getPosition();if(a.isConfiguring||!(d.x||d.y)){return}var f=a.getMinUserPosition(),e=a.getMaxUserPosition(),i=f.x,j=f.y,g=e.x,h=e.y,b=Math.round(d.x),c=Math.round(d.y);if(bg){b=g}}if(ch){c=h}}a.doScrollTo(b,c)},snapToSlot:function(){var a=this,c=a.getSnapPosition('x'),d=a.getSnapPosition('y'),b=a.getSlotSnapEasing();if(c!==null||d!==null){a.doScrollTo(c,d,{easingX:b.x,easingY:b.y});return !0}return !1},stopAnimation:function(){this.getTranslatable().stopAnimation()},toggleResizeListeners:function(e){var c=this,f=c.getElement(),b,a,d;if(f){d=c.getInnerElement();if(e){b=a='on'}else {if(e===null){b='on';a='un'}else {b=a='un'}}f[b]('resize','onElementResize',c);d[a]('resize','onInnerElementResize',c)}},unwrapContent:function(){var a=this.getInnerElement().dom,c=this.getElement().dom,b;while(b=a.firstChild){c.insertBefore(b,a)}},wrapContent:function(d){var a=document.createElement('div'),c=d.dom,b;while(b=c.lastChild){a.insertBefore(b,a.firstChild)}c.appendChild(a);this.setInnerElement(a);this._isWrapped=!0;return this.getInnerElement()}}},1,0,0,0,['scroller.touch'],0,[Ext.scroll,'TouchScroller'],0);Ext.cmd.derive('Ext.scroll.DomScroller',Ext.scroll.Scroller,{isDomScroller:!0,getMaxPosition:function(){var b=this.getElement(),c=0,d=0,a;if(b&&!b.destroyed){a=b.dom;c=a.scrollWidth-a.clientWidth;d=a.scrollHeight-a.clientHeight}return {x:c,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),d=0,e=0,a;if(b&&!b.destroyed){a=b.dom;if(c.getX()){d=a.scrollWidth-a.clientWidth}if(c.getY()){e=a.scrollHeight-a.clientHeight}}return {x:d,y:e}},getPosition:function(){var a=this;if(a.positionDirty){a.updateDomScrollPosition()}return a.position},getSize:function(){var a=this.getElement(),b,c;if(a&&!a.destroyed){c=a.dom;b={x:c.scrollWidth,y:c.scrollHeight}}else {b={x:0,y:0}}return b},updateElement:function(b,a){this.initXStyle();this.initYStyle()},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},privates:{doScrollTo:function(a,b,j){var e=this,d=e.getElement(),f,c,i,g,h,k;if(d&&!d.destroyed){c=d.dom;g=a===Infinity;h=b===Infinity;if(g||h){f=e.getMaxPosition();if(g){a=f.x}if(h){b=f.y}}a=e.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}d.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(b!=null){c.scrollTop=b}if(a!=null){c.scrollLeft=a;if(Ext.isIE8){k=c.scrollLeft;c.scrollLeft=a}}}e.positionDirty=!0}},getElementScroll:function(a){return a.getScroll()},stopAnimation:function(){var a=this.getElement().getActiveAnimation();if(a){a.end()}}}},0,0,0,0,['scroller.dom'],0,[Ext.scroll,'DomScroller'],function(a){Ext.onDocumentReady(function(){a.document=new a({x:!0,y:!0,element:document.body})})});Ext.cmd.derive('Ext.util.Floating',Ext.Base,{mixinId:'floating',focusOnToFront:!0,shadow:'sides',animateShadow:!1,constrain:!1,config:{activeCounter:0,alwaysOnTop:!1},preventDefaultAlign:!1,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var a=this,e=a.el,d=a.shadow,c,b;if(d){b={mode:d===!0?'sides':d};c=a.shadowOffset;if(c){b.offset=c}b.animate=a.animateShadow;b.fixed=a.fixed;e.enableShadow(b,!1)}if(a.shim||Ext.useShims){e.enableShim({fixed:a.fixed},!1)}e.setVisibilityMode(a._visModeMap[a.hideMode]);a.el.on({mousedown:a.onMouseDown,scope:a,capture:!0});a.registerWithOwnerCt();a.initHierarchyEvents()},alignTo:function(b,d,f,e){var a=this,c;Ext.un('scroll',a.onAlignToScroll,a);if(b.isComponent){c=b.el}else {if(b.nodeType){c=Ext.fly(b)}else {c=b}}if(!c.contains(a.el)){Ext.on('scroll',a.onAlignToScroll,a)}a._lastAlignTarget=b;a._lastAlignToPos=d;a.mixins.positionable.alignTo.call(a,c,d,f,e)},initFloatConstrain:function(){var a=this,b=a.floatParent;if((a.constrain||a.constrainHeader)&&!a.constrainTo){a.constrainTo=b?b.getTargetEl():a.container}},initHierarchyEvents:function(){var b=this,a=this.syncHidden;if(!b.hasHierarchyEventListeners){b.mon(Ext.GlobalEvents,{hide:a,collapse:a,show:a,expand:a,added:a,scope:b});b.hasHierarchyEventListeners=!0}},registerWithOwnerCt:function(){var a=this,c=a.ownerCt,b=a.zIndexParent;if(b){b.unregisterFloatingItem(a)}b=a.zIndexParent=a.up('[floating]');a.floatParent=c||b;a.initFloatConstrain();delete a.ownerCt;if(b){b.registerFloatingItem(a)}else {Ext.WindowManager.register(a)}},onMouseDown:function(g){var b=this,f=b.focusTask,c=g.pointerType==='touch',a,d,e;if(b.floating&&(!f||!f.id)){a=g.target;d=b.el.dom;while(!c&&a&&a!==d){if(Ext.fly(a).isFocusable()){c=!0}a=a.parentNode}e=Ext.WindowManager.getActive()===b&&(a===d||c);if(!e){b.toFront(c)}}},onBeforeFloatLayout:function(){this.el.preventSync=!0},onAfterFloatLayout:function(){var a=this.el;if(a.shadow||a.shim){a.setUnderlaysVisible(!0);a.syncUnderlays()}},syncHidden:function(){var a=this,d=a.hidden||!a.rendered,c=a.hierarchicallyHidden=a.isHierarchicallyHidden(),b=a.pendingShow;if(d!==c){if(c){a.hide();a.pendingShow=!0}else {if(b){delete a.pendingShow;if(b.length){a.show.apply(a,b)}else {a.show()}}}}},setZIndex:function(a){var b=this;b.el.setZIndex(a);a+=10;if(b.floatingDescendants){a=Math.floor(b.floatingDescendants.setBase(a)/100)*100+10000}return a},doConstrain:function(c){var a=this,b=a.calculateConstrainedPosition(c,null,!0);if(b){a.setPosition(b)}},updateActiveCounter:function(b){var a=this.zIndexParent;if(a&&this.bringParentToFront!==!1){a.setActiveCounter(++Ext.ZIndexManager.activeCounter)}a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},updateAlwaysOnTop:function(b){var a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},toFront:function(b){var a=this;if(a.zIndexManager.bringToFront(a,b||!a.focusOnToFront)){if(a.hasListeners.tofront){a.fireEvent('tofront',a,a.el.getZIndex())}}return a},setActive:function(d,c){var a=this,b;if(d){if(a.el.shadow&&!a.maximized){a.el.enableShadow(null,!0)}if(c){b=Ext.ComponentManager.getActiveComponent();if(!b||!b.up(a)){a.focus()}}a.fireEvent('activate',a)}else {a.fireEvent('deactivate',a)}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var a=this,b;if(a.isVisible()){b=a.getAlignToXY(a.container,'c-c');a.setPagePosition(b)}else {a.needsCenter=!0}return a},onFloatShow:function(){if(this.needsCenter){this.center()}delete this.needsCenter;if(this.toFrontOnShow){this.toFront()}},fitContainer:function(f){var d=this,c=d.floatParent,a=c?c.getTargetEl():d.container,b=a.getViewSize(),e=c||a.dom!==document.body?[0,0]:a.getXY();b.x=e[0];b.y=e[1];d.setBox(b,f)},privates:{onFloatDestroy:function(){this.clearAlignEl()},clearAlignEl:function(){var a=this;if(a._lastAlignTarget){Ext.un('scroll',a.onAlignToScroll,a);a._lastAlignPos=a._lastAlignTarget=null}},onAlignToScroll:function(e){var b=this,a=b._lastAlignTarget,f=a.isFloating,c,d;if(a){if(a.isComponent){c=a.destroyed;a=a.el}else {if(a.nodeType){a=Ext.fly(a)}d=a.dom;c=!d||Ext.isGarbage(d)}if(c){b.clearAlignEl()}else {if((e.getElement().contains(a)||f)&&!e.getElement().contains(b.el)){b.alignTo(a,b._lastAlignToPos)}}}}}},1,0,0,0,0,0,[Ext.util,'Floating'],0);Ext.cmd.derive('Ext.util.ElementContainer',Ext.Base,{mixinId:'elementCt',config:{childEls:{$value:{},cached:!0,lazy:!0,merge:function(d,f,g,e){var c=f?Ext.Object.chain(f):{},b,a;if(d instanceof Array){for(b=d.length;b--;){a=d[b];if(!e||!(a in c)){if(typeof a==='string'){c[a]={name:a,itemId:a}}else {c[a.name]=a}}}}else {if(d){if(d.constructor===Object){for(b in d){if(!e||!(b in c)){a=d[b];if(a===!0){c[b]={itemId:b}}else {if(typeof a==='string'){c[b]={itemId:a}}else {c[b]=a;if(!('itemId' in a)){a.itemId=b}}}c[b].name=b}}}else {if(!e||!(d in c)){c[d]={name:d,itemId:d}}}}}return c}}},destroy:function(){var c=this,d=c.getChildEls(),a,b;for(b in d){a=c[b];if(a){if(a.destroy){a.component=null;a.destroy()}c[b]=null}}},privates:{addChildEl:function(a){var c=this,b=c.getChildEls();if(!c.hasOwnProperty('childEls')){c.childEls=b=Ext.Object.chain(b)}if(typeof a==='string'){a={name:a,itemId:a}}b[a.name]=a},afterClassMixedIn:function(a){var c=a.prototype,b=c.childEls;if(b){delete c.childEls;a.getConfigurator().add({childEls:b})}},attachChildEls:function(h,n){var i=this,k=i.getChildEls(),e=n||i,m=e.id+'-',l=!e.frame,f,g,b,j,c,a,d;for(f in k){b=k[f];if(l&&b.frame){continue}c=b.select;if(c){a=h.select(c,!0)}else {if(!(c=b.selectNode)){if(!(d=b.id)){d=m+b.itemId;a=Ext.cache[d]}else {a=Ext.cache[d]||h.getById(d)}}else {a=h.selectNode(c,!1)}}if(a){if(a.isElement){a.component=e}else {if(a.isComposite&&!a.isLite){g=a.elements;for(j=g.length;j--;){g[j].component=e}}}}i[f]=a||null}}}},0,0,0,0,0,0,[Ext.util,'ElementContainer'],0);Ext.cmd.derive('Ext.util.Renderable',Ext.Base,{mixinId:'renderable',frameCls:'x-frame',frameIdRegex:/[\-]frame\d+[TMB][LCR]$/,frameElNames:['TL','TC','TR','ML','MC','MR','BL','BC','BR','Table'],frameTpl:['{%this.renderDockedItems(out,values,0);%}','','
    {parent.baseCls}-{parent.ui}-{.}-tl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','
    {parent.baseCls}-{parent.ui}-{.}-ml{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mc{frameElCls}" role="presentation">','{%this.applyRenderTpl(out, values)%}','
    ','
    ','
    ','','
    {parent.baseCls}-{parent.ui}-{.}-bl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-br{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-bc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','{%this.renderDockedItems(out,values,1);%}'],frameTableTpl:['{%this.renderDockedItems(out,values,0);%}','','','','','','','','','','','','','','','','','','','','','','{%this.renderDockedItems(out,values,1);%}'],_renderState:0,ariaEl:'el',_layerCls:'x-layer',_fixedLayerCls:'x-fixed-layer',ariaStaticRoles:{presentation:!0,article:!0,definition:!0,directory:!0,document:!0,img:!0,heading:!0,math:!0,note:!0,banner:!0,complementary:!0,contentinfo:!0,navigation:!0,search:!0,'undefined':!0,'null':!0},statics:{makeRenderSetter:function(c,b){var a=c.name;return function(g){var d=this,f=d.renderConfigs||(d.renderConfigs={}),e=f[b];if(d._renderState>=b){(c.setter||c.getSetter()).call(d,g)}else {if(!e){f[b]=e={}}if(!(a in e)){e[a]=d[a]}d[a]=g}return d}},processRenderConfig:function(g,e,c){var h=this.prototype,j=this.getConfigurator(),k=Ext.util.Renderable,l=k.makeRenderSetter,d=g[e],b,a,i,f;for(i in d){a=Ext.Config.get(i);if(!h[f=a.names.set]){b=a.renderSetter||(a.renderSetter={});h[f]=b[c]||(b[c]=l(a,c))}}delete g[e];j.add(d)}},onClassMixedIn:function(a){var e=a.override,c=this.processRenderConfig,d=function(b){if(b.beforeRenderConfig){this.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){this.processRenderConfig(b,'renderConfig',3)}e.call(this,b)},b=function(e,b){e.override=d;e.processRenderConfig=c;if(b.beforeRenderConfig){e.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){e.processRenderConfig(b,'renderConfig',3)}};b(a,a.prototype);a.onExtended(b)},afterRender:function(){var a=this,c={},i=a.protoEl,g=a.el,d,b,h,f,e;a.finishRenderChildren();a._renderState=4;if(a.contentEl){h='x-';f=h+'hidden-';e=a.contentEl=Ext.get(a.contentEl);e.component=a;e.removeCls([h+'hidden',f+'display',f+'offsets']);a.getContentTarget().appendChild(e.dom)}i.writeTo(c);b=c.removed;if(b){g.removeCls(b)}b=c.cls;if(b.length){g.addCls(b)}b=c.style;if(c.style){g.setStyle(b)}a.protoEl=null;if(!a.ownerCt&&!a.skipLayout){a.updateLayout()}if(!(a.x&&a.y)&&(a.pageX||a.pageY)){a.setPagePosition(a.pageX,a.pageY)}if(a.disableOnRender){a.onDisable()}d=a.controller;if(d&&d.afterRender){d.afterRender(a)}},afterFirstLayout:function(l,k){var a=this,g=a.x,h=a.y,j=a.defaultAlign,i=a.alignOffset,f,d,e,b,c;if(!a.ownerLayout){d=g!==undefined;e=h!==undefined}if(a.floating&&!a.preventDefaultAlign&&(!d||!e)){if(a.floatParent){b=a.floatParent.getTargetEl().getViewRegion();c=a.el.getAlignToXY(a.alignTarget||a.floatParent.getTargetEl(),j,i);b.x=c[0]-b.x;b.y=c[1]-b.y}else {c=a.el.getAlignToXY(a.alignTarget||a.container,j,i);b=a.el.translateXY(c[0],c[1])}g=d?g:b.x;h=e?h:b.y;d=e=!0}if(d||e){a.setPosition(g,h)}a.onBoxReady(l,k);f=a.controller;if(f&&f.boxReady){f.boxReady(a)}},beforeRender:function(){var a=this,d=a.floating,e=a.getComponentLayout(),b=a.userCls,c;a._renderState=1;a.ariaUsesMainElement=a.ariaEl==='el';c=a.controller;if(c&&c.beforeRender){c.beforeRender(a)}a.initBindable();if(a.renderConfigs){a.flushRenderConfigs()}if(a.reference){a.publishState()}if(b){a.addCls(b)}if(d){a.addCls(a.fixed?a._fixedLayerCls:a._layerCls);b=d.cls;if(b){a.addCls(b)}}a.frame=a.frame||a.alwaysFramed;if(!e.initialized){e.initLayout()}a.initOverflow();a.setUI(a.ui)},doApplyRenderTpl:function(d,a){var c=a.$comp,b;if(!c.rendered){b=c.initRenderTpl();b.applyOut(a.renderData,d)}},getElConfig:function(){var a=this,e=a.autoEl,c=a.getFrameInfo(),b={tag:'div',tpl:c?a.initFramingTpl(c.table):a.initRenderTpl()},g=a.layoutTargetCls,d=a.protoEl,f=a.ariaRole,h;a.initStyles(d);if(g&&!c){d.addCls(g)}d.writeTo(b);d.flush();if(e){if(Ext.isString(e)){b.tag=e}else {Ext.apply(b,e)}}if(f&&a.ariaUsesMainElement){b.role=f;if(!a.ariaStaticRoles[f]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}}b.id=a.id;if(b.tpl){if(c){b.tplData=h=a.getFrameRenderData();h.renderData=a.initRenderData()}else {b.tplData=a.initRenderData()}}a.ariaRenderAttributes=null;return b},getInsertPosition:function(a){if(a!==undefined){if(Ext.isNumber(a)){a=this.container.dom.childNodes[a]}else {a=Ext.getDom(a)}}return a},getRenderTree:function(){var a=this,b=null;if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a._renderState=1;a.beforeRender();a.rendering=!0;a._renderState=2;b=a.getElConfig();if(a.el){b.id=a.$pid=Ext.id(null,a.el.identifiablePrefix)}}return b},initRenderData:function(){var a=this,c=a.ariaRole,d,b;d=Ext.apply({$comp:a,id:a.id,ui:a.ui,uiCls:a.uiCls,baseCls:a.baseCls,componentCls:a.componentCls,frame:a.frame,renderScroller:a.touchScroll,scrollerCls:a.scrollerCls,childElCls:''},a.renderData);if(c&&!a.ariaUsesMainElement){b={role:c};if(!a.ariaStaticRoles[c]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}d.ariaAttributes=b}return d},onRender:function(i,h){var a=this,e=a.x,f=a.y,b=null,g=a.el,d,c;a.applyRenderSelectors();a.rendering=null;a.rendered=!0;a._renderState=3;if(a.renderConfigs){a.flushRenderConfigs()}if(e!=null){b={x:e}}if(f!=null){(b=b||{}).y=f}if(!a.getFrameInfo()){d=a.width;c=a.height;if(typeof d==='number'){b=b||{};b.width=d}if(typeof c==='number'){b=b||{};b.height=c}}if(a.touchScroll===1){a.getOverflowEl().disableTouchScroll()}a.lastBox=g.lastBox=b},render:function(c,g){var a=this,b=a.el,f=a.ownerLayout,h,d,e;if(b&&!b.isElement){a.wrapPrimaryEl(b);b=a.el}if(!a.skipLayout){Ext.suspendLayouts()}c=a.initContainer(c);e=a.getInsertPosition(g);if(!b){d=a.getRenderTree();if(f&&f.transformItemRenderTree){d=f.transformItemRenderTree(d)}if(d){if(e){b=Ext.DomHelper.insertBefore(e,d)}else {b=Ext.DomHelper.append(c,d)}a.wrapPrimaryEl(b);a.cacheRefEls(b)}}else {if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a.beforeRender();a.needsRenderTpl=a.rendering=!0;a._renderState=2;a.initStyles(b);if(a.allowDomMove!==!1){if(e){c.dom.insertBefore(b.dom,e)}else {c.dom.appendChild(b.dom)}}}else {h=!0}}if(b&&!h){a.finishRender(g)}if(!a.skipLayout){Ext.resumeLayouts(!a.hidden&&!c.isDetachedBody)}},ensureAttachedToBody:function(c){var a=this,b;while(a.ownerCt){a=a.ownerCt}if(a.container.isDetachedBody){a.container=b=Ext.getBody();b.appendChild(a.el.dom);if(c){a.updateLayout()}if(typeof a.x==='number'||typeof a.y==='number'){a.setPosition(a.x,a.y)}}},privates:{applyRenderSelectors:function(){var a=this,b=a.renderSelectors,e=a.el,d,c;a.attachChildEls(e);a.ariaEl=a[a.ariaEl]||a.el;if(b){for(c in b){d=b[c];if(d){a[c]=e.selectNode(d,!1)}}}},cacheRefEls:function(a){a=a||this.el;var e=Ext.cache,h=Ext.dom.Element,f=a.isElement?a.dom:a,d=f.querySelectorAll('[data-ref]'),g=d.length,c,b;for(b=0;b','
    ','','{%this.renderContent(out,values)%}','
    '],resizeHandles:'all',shrinkWrap:2,toFrontOnShow:!0,synthetic:!1,tplWriteMode:'overwrite',ui:'default',uiCls:[],userCls:null,weight:null,allowDomMove:!0,autoGenId:!1,borderBoxCls:'x-border-box',componentLayoutCounter:0,contentPaddingProperty:'padding',deferLayouts:!1,frameSize:null,horizontalPosProp:'left',isComponent:!0,_isLayoutRoot:!1,layoutSuspendCount:0,liquidLayout:!1,maskOnDisable:!0,offsetsCls:'x-hidden-offsets',rendered:!1,rootCls:'x-body',scrollerCls:'x-scroll-scroller',scrollerSelector:'.x-scroll-scroller',_scrollFlags:{auto:{auto:{overflowX:'auto',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'auto',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'auto',overflowY:'scroll',x:!0,y:!0,both:!0}},'false':{auto:{overflowX:'hidden',overflowY:'auto',x:!1,y:!0,both:!1},'false':{overflowX:'hidden',overflowY:'hidden',x:!1,y:!1,both:!1},scroll:{overflowX:'hidden',overflowY:'scroll',x:!1,y:!0,both:!1}},scroll:{auto:{overflowX:'scroll',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'scroll',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'scroll',overflowY:'scroll',x:!0,y:!0,both:!0}},none:{overflowX:'',overflowY:'',x:!1,y:!1,both:!1}},_scrollableCfg:{x:{x:!0,y:!1},y:{x:!1,y:!0},horizontal:{x:!0,y:!1},vertical:{x:!1,y:!0},both:{x:!0,y:!0},'true':{x:!0,y:!0}},validIdRe:Ext.validIdRe,constructor:function(b){var a=this,e,j,i,h,g,c,d,f;b=b||{};if(b.initialConfig){if(b.isAction){a.baseAction=b}b=b.initialConfig}else {if(b.tagName||b.dom||Ext.isString(b)){b={applyTo:b,id:b.id||b}}}a.initialConfig=b;a.getId();a.protoEl=new Ext.util.ProtoElement();a.initConfig(b);if(a.scrollable==null){g=a.autoScroll;if(g){f=!!g}else {c=a.overflowX;d=a.overflowY;if(c||d){f={x:c&&c!=='hidden'?c:!1,y:d&&d!=='hidden'?d:!1}}}if(f){a.setScrollable(f)}}i=a.xhooks;if(i){delete a.xhooks;Ext.override(a,i)}a.mixins.elementCt.constructor.call(a);a.setupProtoEl();if(a.cls){a.initialCls=a.cls;a.protoEl.addCls(a.cls)}if(a.style){a.initialStyle=a.style;a.protoEl.setStyle(a.style)}a.renderData=a.renderData||{};a.initComponent();if(!a.preventRegister){Ext.ComponentManager.register(a)}a.mixins.state.constructor.call(a);a.addStateEvents('resize');h=a.getController();if(h){h.init(a)}if(a.plugins){for(e=0,j=a.plugins.length;eh){o=j;f=!0}if(e&&k>i){p=k;f=!0}if(d||e){g=a.el.getStyle('overflow');if(g!=='hidden'){a.el.setStyle('overflow','hidden')}}if(f){r=!Ext.isNumber(a.width);q=!Ext.isNumber(a.height);a.setSize(p,o);a.el.setSize(i,h);if(r){delete a.width}if(q){delete a.height}}if(e){c.width=k}if(d){c.height=j}}n=a.constrain;l=a.constrainHeader;if(n||l){a.constrain=a.constrainHeader=!1;m=b.callback;b.callback=function(){a.constrain=n;a.constrainHeader=l;if(m){m.call(b.scope||a,arguments)}if(g!=='hidden'){a.el.setStyle('overflow',g)}}}return a.mixins.animate.animate.apply(a,arguments)},applyScrollable:function(a,c){var b=this,f=b.rendered,e,d;if(a){if(a===!0||typeof a==='string'){e=b._scrollableCfg[a];a=e}if(c){c.setConfig(a);a=c}else {a=Ext.Object.chain(a);if(f){a.element=b.getOverflowEl();d=b.getScrollerEl();if(d){a.innerElement=d}}a.autoRefresh=!1;if(Ext.supports.touchScroll===1){a.translatable={translationMethod:'scrollparent'};a.indicators=!1}a=Ext.scroll.Scroller.create(a);a.component=b}}else {if(c){c.setConfig({x:!1,y:!1});c.destroy();a=null}}if(b.rendered&&!b.destroying&&!b.destroyed){if(a){b.getOverflowStyle()}else {b.scrollFlags=b._scrollFlags.none}b.updateLayout()}return a},beforeComponentLayout:function(){return !0},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(a,b,f){var d=this,c=null,e,g,h,i;if(a){if(Ext.isNumber(e=a[0])){f=b;b=a[1];a=e}else {if((e=a.x)!==undefined){f=b;b=a.y;a=e}}}if(d.constrain||d.constrainHeader){c=d.calculateConstrainedPosition(null,[a,b],!0);if(c){a=c[0];b=c[1]}}g=a!==undefined;h=b!==undefined;if(g||h){d.x=a;d.y=b;i=d.adjustPosition(a,b);c={x:i.x,y:i.y,anim:f,hasX:g,hasY:h}}return c},beforeShow:Ext.emptyFn,bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.getBubbleTarget()}return this},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},cloneConfig:function(a){a=a||{};var d=a.id||Ext.id(),c=Ext.applyIf(a,this.initialConfig),b;c.id=d;b=Ext.getClass(this);return new b(c)},destroy:function(){var a=this,d=a.renderSelectors,f=a.getConfig('viewModel',!0),g=a.getConfig('session',!0),b,c,e;if(!a.hasListeners.beforedestroy||a.fireEvent('beforedestroy',a)!==!1){a.isDestroying=a.destroying=!0;c=a.floatParent||a.ownerCt;if(a.floating){delete a.floatParent;if(a.zIndexManager){a.zIndexManager.unregister(a);a.zIndexManager=null}}a.removeBindings();a.beforeDestroy();a.destroyBindable();if(c&&c.remove){c.remove(a,!1)}a.stopAnimation();a.onDestroy();Ext.destroy(a.plugins);if(a.rendered){Ext.Component.cancelLayout(a,!0)}a.componentLayout=null;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}if(!a.preventRegister){Ext.ComponentManager.unregister(a)}a.mixins.state.destroy.call(a);if(a.floating){a.onFloatDestroy()}a.clearListeners();if(a.rendered){if(!a.preserveElOnDestroy){a.el.destroy()}a.el.component=null;a.mixins.elementCt.destroy.call(a);if(d){for(b in d){if(d.hasOwnProperty(b)){e=a[b];if(e){delete a[b];e.destroy()}}}}a.data=a.el=a.frameBody=a.rendered=a.afterRenderEvents=null;a.tpl=a.renderTpl=a.renderData=null;a.focusableContainer=a.container=a.scrollable=null}a.isDestroying=a.destroying=!1;a.callParent()}},disable:function(e,d){var a=this,b=a.focusableContainer,c=a.getInherited();if(!d){c.disabled=!0;a.savedDisabled=!0}if(a.maskOnDisable){c.disableMask=!0}if(!a.disabled){if(b){b.beforeFocusableChildDisable(a)}a.addCls(a.disabledCls);if(a.rendered){a.onDisable()}else {a.disableOnRender=!0}a.disabled=!0;if(e!==!0){a.fireEvent('disable',a)}if(b){b.onFocusableChildDisable(a)}}return a},doFireEvent:function(c,d,e){var a=this,b=a.mixins.observable.doFireEvent.call(a,c,d,e);if(b!==!1){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,d)}return b},enable:function(e,c){var a=this,b=a.focusableContainer,d=a.getInherited();if(!c){delete a.getInherited().disabled;a.savedDisabled=!1}if(a.maskOnDisable){delete d.disableMask}if(a.disabled){if(!(c&&d.hasOwnProperty('disabled'))){if(b){b.beforeFocusableChildEnable(a)}a.disableOnRender=!1;a.removeCls(a.disabledCls);if(a.rendered){a.onEnable()}a.disabled=!1;if(e!==!0){a.fireEvent('enable',a)}if(b){b.onFocusableChildEnable(a)}}}return a},findParentBy:function(b){var a;for(a=this.getRefOwner();a&&!b(a,this);a=a.getRefOwner()){}return a||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.constructor===a}):this.up(a)},findPlugin:function(c){var a,b=this.plugins,d=b&&b.length;for(a=0;a-1;e--){b=g[e];if(b.query){a=b.query(c);a=a[a.length-1];if(a){return a}}if(b.is(c)){return b}}return f.previousNode(c,!0)}return null},previousSibling:function(c){var e=this.ownerCt,b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.getAt(--a)}}}}return null},registerFloatingItem:function(b){var a=this;if(!a.floatingDescendants){a.floatingDescendants=new Ext.ZIndexManager(a)}a.floatingDescendants.register(b)},removeCls:function(c){var a=this,b=a.rendered?a.el:a.protoEl;b.removeCls.apply(b,arguments);return a},removeClsWithUI:function(a,k){var b=this,d=[],e=0,g=Ext.Array,i=g.remove,j=b.uiCls=g.clone(b.uiCls),f=b.activeUI,h,c;if(typeof a==='string'){a=a.indexOf(' ')<0?[a]:Ext.String.splitWords(a)}h=a.length;for(e=0;e1){arguments[0]=null;a.pendingShow=arguments}else {a.pendingShow=!0}}else {if(b&&a.isVisible()){if(a.floating){a.onFloatShow()}}else {if(a.fireEvent('beforeshow',a)!==!1){a.hidden=!1;delete this.getInherited().hidden;Ext.suspendLayouts();if(!b&&(a.autoRender||a.floating)){a.doAutoRender();b=a.rendered}if(b){a.beforeShow();Ext.resumeLayouts();a.onShow.apply(a,arguments);a.afterShow.apply(a,arguments)}else {Ext.resumeLayouts(!0)}}else {a.onShowVeto()}}}return a},showAt:function(b,c,d){var a=this;if(!a.rendered&&(a.autoRender||a.floating)){a.x=b;a.y=c;return a.show()}if(a.floating){a.setPosition(b,c,d)}else {a.setPagePosition(b,c,d)}return a.show()},showBy:function(b,d,c){var a=this;if(a.floating&&b){a.alignTarget=b;if(d){a.defaultAlign=d}if(c){a.alignOffset=c}a.show();if(!a.hidden){a.alignTo(b,d||a.defaultAlign,c||a.alignOffset)}}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=!0}},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(!1)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){d++;if(c.isComponent){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},update:function(b,i,k,j){var a=this,h=a.tpl&&!Ext.isString(b),g=a.getScrollable(),f=a.focusableContainer,e,c,d;if(h){a.data=b&&b.isEntity?b.getData(!0):b}else {a.html=Ext.isObject(b)?Ext.DomHelper.markup(b):b}if(a.rendered){e=a.getSizeModel();c=e.width.shrinkWrap||e.height.shrinkWrap;if(a.isContainer){d=a.layout.getRenderTarget();c=c||a.items.items.length>0}else {d=a.touchScroll?a.getScrollerEl():a.getTargetEl()}if(h){a.tpl[a.tplWriteMode](d,a.data||{})}else {d.setHtml(a.html,i,k,j||a)}if(c){a.updateLayout()}if(g){g.refresh(!0)}if(f){f.onFocusableChildUpdate(a)}}},setHtml:function(c,a,b){this.update(c,a,null,b)},applyData:function(a){this.update(a)},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},_asLayoutRoot:{isRoot:!0},_notAsLayoutRoot:{isRoot:!1},updateLayout:function(b){var a=this,e,d=a.lastBox,c=b&&b.isRoot;if(d){d.invalid=!0}if(!a.rendered||a.layoutSuspendCount||a.suspendLayout){return}if(a.hidden){Ext.Component.cancelLayout(a)}else {if(typeof c!=='boolean'){c=a.isLayoutRoot()}}if(c||!a.ownerLayout||!a.ownerLayout.onContentChange(a)){if(!a.isLayoutSuspended()){e=b&&b.hasOwnProperty('defer')?b.defer:a.deferLayouts;Ext.Component.updateLayout(a,e)}}},updateMaxHeight:function(b,a){this.changeConstraint(b,a,'min','max-height','height')},updateMaxWidth:function(b,a){this.changeConstraint(b,a,'min','max-width','width')},updateMinHeight:function(b,a){this.changeConstraint(b,a,'max','min-height','height')},updateMinWidth:function(b,a){this.changeConstraint(b,a,'max','min-width','width')},getAnchorToXY:function(d,a,c,b){return d.getAnchorXY(a,c,b)},getBorderPadding:function(){return this.el.getBorderPadding()},getLocalX:function(){return this.el.getLocalX()},getLocalXY:function(){return this.el.getLocalXY()},getLocalY:function(){return this.el.getLocalY()},getX:function(){return this.el.getX()},getXY:function(){return this.el.getXY()},getY:function(){return this.el.getY()},setLocalX:function(a){this.el.setLocalX(a)},setLocalXY:function(a,b){this.el.setLocalXY(a,b)},setLocalY:function(a){this.el.setLocalY(a)},setX:function(b,a){this.el.setX(b,a)},setXY:function(b,a){this.el.setXY(b,a)},setY:function(b,a){this.el.setY(b,a)},privates:{addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},addUIToElement:function(){var a=this,d=a.baseCls+'-'+a.ui,e,c,f,b;a.addCls(d);if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){f=a[c];if(f){f.addCls(d+b)}}}}},changeConstraint:function(b,g,f,c,d){var a=this,e=a[d];if(b!=null&&typeof e==='number'){a[d]=Math[f](e,b)}if(a.liquidLayout){if(b!=null){a.setStyle(c,b+'px')}else {if(g){a.setStyle(c,'')}}}if(a.rendered){a.updateLayout()}},constructPlugin:function(a){var b=this;if(typeof a==='string'){a=Ext.PluginManager.create({},a,b)}else {a=Ext.PluginManager.create(a,null,b)}return a},constructPlugins:function(){var d=this,a=d.plugins,c,b,e;if(a){c=[];c.processed=!0;if(!Ext.isArray(a)){a=[a]}for(b=0,e=a.length;b=0){h=m[c].splitterDelta;if(e.getAt(d+h)!==b){e.remove(b);d=e.indexOf(a);if(h>0){++d}e.insert(d,b)}}}if(j){if(l){a.expand(!1)}i.remove(j);a.placeholder=null;if(l){a.collapse(null,!1)}}i.updateLayout();Ext.resumeLayouts(!0);a.fireEventArgs('changeregion',[a,g])}else {a.region=c}}return g},setWeight:function(b){var a=this,e=a.getOwningBorderContainer(),d=a.placeholder,c=a.weight;if(b!==c){if(a.fireEventArgs('beforechangeweight',[a,b])!==!1){a.weight=b;if(d){d.weight=b}if(e){e.updateLayout()}a.fireEventArgs('changeweight',[a,c])}}return c}},function(b){var a=b.prototype;a.setBorderRegion=a.setRegion;a.setRegionWeight=a.setWeight});Ext.define('Ext.theme.neptune.Component',{override:'Ext.Component',initComponent:function(){arguments.callee.$previous.call(this);if(this.dock&&this.border===undefined){this.border=!1}},privates:{initStyles:function(){var a=this,b=a.hasOwnProperty('border'),c=a.border;if(a.dock){a.border=null}arguments.callee.$previous.apply(this,arguments);if(b){a.border=c}else {delete a.border}}}},function(){Ext.namespace('Ext.theme.is').Neptune=!0;Ext.theme.name='Neptune'});Ext.define('Ext.theme.crisp.Component',{override:'Ext.Component'},function(){Ext.namespace('Ext.theme.is').Crisp=!0;Ext.theme.name='Crisp'});Ext.define('Ext.overrides.app.domain.Component',{override:'Ext.app.domain.Component'},function(a){a.monitor(Ext.Component)});Ext.cmd.derive('Ext.app.EventBus',Ext.Base,{singleton:!0,constructor:function(){var a=this,b=Ext.app.EventDomain.instances;a.callParent();a.domains=b;a.bus=b.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(b,c){var d=this.domains,a;for(a in b){if(b.hasOwnProperty(a)){d[a].listen(b[a],c)}}},unlisten:function(c){var a=Ext.app.EventDomain.instances,b;for(b in a){a[b].unlisten(c)}}},1,0,0,0,0,0,[Ext.app,'EventBus'],0);Ext.cmd.derive('Ext.app.domain.Global',Ext.app.EventDomain,{singleton:!0,type:'global',constructor:function(){var a=this;a.callParent();a.monitor(Ext.GlobalEvents)},listen:function(b,a){this.callParent([{global:b},a])},match:Ext.returnTrue},1,0,0,0,0,0,[Ext.app.domain,'Global'],0);Ext.cmd.derive('Ext.app.BaseController',Ext.Base,{isController:!0,config:{id:null,control:null,listen:null,routes:null,before:null},constructor:function(b){var a=this;Ext.apply(a,b);delete a.control;delete a.listen;a.eventbus=Ext.app.EventBus;a.mixins.observable.constructor.call(a,b);a.ensureId()},applyListen:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},applyControl:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},updateControl:function(a){this.ensureId();if(a){this.control(a)}},updateListen:function(a){this.ensureId();if(a){this.listen(a)}},updateRoutes:function(b){if(b){var e=this,f=e.getBefore()||{},g=Ext.app.route.Router,c,a,d;for(c in b){a=b[c];if(Ext.isString(a)){a={action:a}}d=a.action;if(!a.before){a.before=f[d]}g.connect(c,a,e)}}},isActive:function(){return !0},control:function(b,c,f){var e=this,d=f,a;if(Ext.isString(b)){a={};a[b]=c}else {a=b;d=c}e.eventbus.control(a,d||e)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var a=this,b=a.eventbus;Ext.app.route.Router.disconnectAll(a);if(b){b.unlisten(a);a.eventbus=null}a.callParent()},redirectTo:function(a,c){if(a.isModel){a=a.toUrl()}if(!c){var b=Ext.util.History.getToken();if(b===a){return !1}}else {Ext.app.route.Router.onStateChange(a)}Ext.util.History.add(a);return !0}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.app,'BaseController'],0);Ext.cmd.derive('Ext.app.Util',Ext.Base,{},0,0,0,0,0,0,[Ext.app,'Util'],function(){Ext.apply(Ext.app,{namespaces:{Ext:{}},addNamespaces:function(a){var d=Ext.app.namespaces,b,c;if(!Ext.isArray(a)){a=[a]}for(b=0,c=a.length;bb.length&&a+'.'===d.substring(0,a.length+1)){b=a}}return b===''?undefined:b},setupPaths:function(e,b,c){var a=Ext.manifest,d;if(e&&b!==null){a=a&&a.paths;if(!a||b!==undefined){Ext.Loader.setPath(e,b===undefined?'app':b)}}if(c){for(d in c){if(c.hasOwnProperty(d)){Ext.Loader.setPath(d,c[d])}}}}});Ext.getNamespace=Ext.app.getNamespace});Ext.cmd.derive('Ext.util.CollectionKey',Ext.Base,{isCollectionKey:!0,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:!0},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(i,b){var j=this.map||this.getMap(),c=j[i],e=this.getCollection(),h=e.length,d,a,f,g;if(!c){return -1}if(b===undefined){b=-1}if(c instanceof Array){f=c;a=h;for(g=f.length;g-->0;){d=e.indexOf(f[g]);if(db){a=d}}if(a===h){return -1}}else {a=e.indexOf(c)}return a>b?a:-1},updateKey:function(e,d){var f=this,c=f.map,a,b;if(c){a=c[d];if(a instanceof Array){b=Ext.Array.indexOf(a,e);if(b>=0){if(a.length>2){a.splice(b,1)}else {c[d]=a[1-b]}}}else {if(a){delete c[d]}}f.add([e])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(a,b){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(g,h){var a=this,f=a.map,d=h.items,c=d.length,b,i,e;if(f){if(a.getUnique()&&cb?1:a0&&a.getAutoSort(),r=a.getSource(),q=0,g=!1,o=!1,e,l,k,m,b,d;if(r&&!r.updating){r.itemChanged(c,p,f,u)}else {l=a.getKey(c);if(s){b=a.indexOfKey(j?f:l);o=b<0;g=a.isItemFiltered(c);n=o!==g}if(n){if(g){q=[c];d=-1}else {m=[c];d=a.length}}else {if(v&&!g){if(!s){b=a.indexOfKey(j?f:l)}k=a.getSortFn();if(b!==-1){if(b&&k(i[b-1],i[b])>0){h=-1;d=Ext.Array.binarySearch(i,c,0,b,k)}else {if(b0){h=1;d=Ext.Array.binarySearch(i,c,b+1,k)}}if(h){m=[c]}}}}e={item:c,key:l,index:d,filterChanged:n,keyChanged:j,indexChanged:!!h,filtered:g,oldIndex:b,newIndex:d,wasFiltered:o,meta:u};if(j){e.oldKey=f}if(p){e.modified=p}a.beginUpdate();a.notify('beforeitemchange',[e]);if(j){a.updateKey(c,f)}if(m||q){a.splice(d,q,m)}if(h>0){e.newIndex--}else {if(h<0){e.oldIndex++}}a.notify(g?'filtereditemchange':'itemchange',[e]);a.endUpdate()}},remove:function(d){var a=this,c=a.decodeRemoveItems(arguments,0),b=a.length;a.splice(0,c);return b-a.length},removeAll:function(){var a=this,b=a.length;if(a.generation&&b){a.splice(0,b)}return a},removeAt:function(j,f){var a=this,e=a.length,i=Ext.Number,g=i.clipIndices(e,[j,f===undefined?1:f],i.Clip.COUNT),c=g[0],d=g[1]-c,h=d===1&&a.getAt(c),b;a.splice(c,d);b=a.length-e;return h&&b?h:b},removeByKey:function(b){var a=this.getByKey(b);if(!a||!this.remove(a)){return !1}return a},replace:function(a){var b=this.indexOf(a);if(b===-1){this.add(a)}else {this.insert(b,a)}},splice:function(K,E,L){var b=this,D=b.sorted&&b.getAutoSort(),F=b.map,o=b.items,r=b.length,n=E instanceof Array?b.decodeRemoveItems(E):null,G=!n,J=Ext.Number,I=J.clipIndices(r,[K,G?E:0],J.Clip.COUNT),m=I[0],v=I[1],x=v-m,p=b.decodeItems(arguments,2),h=p?p.length:0,c,A,C,d=m,k=b.indices||(h||n?b.getIndices():null),e=null,i=x?[m]:null,l=null,t=b.getSource(),j,B,z,a,u,g,w,f,s,q,y,H,v;if(t&&!t.updating){if(G){n=[];for(a=0;a1){if(!c.$cloned){p=c=c.slice(0)}b.sortData(c)}}for(a=0;a0;){f=b.getKey(n[a]);if((g=k[f])!==undefined){(i||(i=[])).push(g)}}if(!e&&!i){return b}b.beginUpdate();if(i){j=null;z=[];C={};if(i.length>1){i.sort(Ext.Array.numericSortFn)}for(a=0,q=i.length;aj.at+B.length){z.push(j={at:g,items:B=[],keys:s=[],map:C,next:j,replacement:e});if(e){e.replaced=j}}B.push(C[f]=u);s.push(f);if(g1&&g===m){--x;i[a--]=++m}}if(e){e.at=d}for(w=z.length;w-->0;){j=z[w];a=j.at;q=j.items.length;if(a+q1&&r){b.spliceMerge(c,l)}else {if(D){if(h>1){d=0;b.indices=k=null}else {d=H.findInsertionIndex(e.items[0],o,b.getSortFn())}}if(d===r){v=d;for(a=c.length-1;a>=0;--a){o[v+a]=c[a]}k=b.indices;if(k){for(a=0;a-1){c=e[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(l,i){var a=this,j=i.atItem,d=i.items,h=a.requestedIndex,c,b,e,f,g,k;if(!a.sorted){if(h!==undefined){b=h}else {if(j){b=a.indexOf(j);if(b===-1){b=a.findInsertIndex(d[0])}else {++b}}else {b=0}}}if(a.getAutoFilter()&&a.filtered){for(f=0,k=d.length;fc)){c=a}}return [c,b]},count:function(a){return a.length},extremes:function(k,j,l,i,f){var e=null,d=null,c,b,g,h,a;for(c=j;ch)){h=a;d=b}}return [d,e]},max:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[1]},maxItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[1]},min:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[0]},minItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[0]},sum:function(g,f,h,e,c){for(var a,d=0,b=f;b1){Ext.Array.sort(a,b.prioritySortFn)}},prioritySortFn:function(a,b){var c=a.observerPriority||0,d=b.observerPriority||0;return c-d},applyExtraKeys:function(e,g){var d=this,f=g||{},b,c,a;for(c in e){a=e[c];if(!a.isCollectionKey){b={collection:d};if(Ext.isString(a)){b.property=a}else {b=Ext.apply(b,a)}a=new Ext.util.CollectionKey(b)}else {a.setCollection(d)}f[c]=d[c]=a;a.name=c}return f},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,'Ext.util.Grouper')}return a},decodeItems:function(e,d){var g=this,a=d===undefined?e:e[d],b,f,c;if(!a||!a.$cloned){b=e.length>d+1||!Ext.isIterable(a);if(b){a=Ext.Array.slice(e,d);if(a.length===1&&a[0]===undefined){a.length=0}}f=g.getDecoder();if(f){if(!b){a=a.slice(0);b=!0}for(c=a.length;c-->0;){if((a[c]=f.call(g,a[c]))===!1){a.splice(c,1)}}}if(b){a.$cloned=!0}}return a},getIndices:function(){var a=this,c=a.indices,d=a.items,f=d.length,b,e;if(!c){a.indices=c={};++a.indexRebuilds;for(b=0;b0;if(d||c){b.filtered=c;b.onFilterChange(a)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==!1){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(c,b,d){var a=this.getSorters();a.addSort.apply(a,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify('beforesort',[a.getSorters(!1)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify('sort')},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(c,b,a){if(!b){b=this.items}if(!a){a=this.getSortFn()}return Ext.Array.binarySearch(b,c,a)},applySorters:function(a,b){if(a==null||a&&a.isSorterCollection){return a}if(a){if(!b){b=this.getSorters()}b.splice(0,b.length,a)}return b},createSortFn:function(){var d=this,b=d.getGrouper(),c=d.getSorters(!1),a=c?c.getSortFn():null;if(!b){return a}return function(d,e){var c=b.sort(d,e);if(!c&&a){c=a(d,e)}return c}},updateGrouper:function(c){var a=this,b=a.getGroups(),e=a.getSorters(),d;a.onSorterChange();a.grouped=!!c;if(c){if(a.getTrackGroups()){if(!b){b=new Ext.util.GroupCollection({itemRoot:a.getRootProperty()});b.$groupable=a;a.setGroups(b)}b.setGrouper(c);d=!0}}else {if(b){a.removeObserver(b);b.destroy()}a.setGroups(null)}if(!e.updating){a.onEndUpdateSorters(e)}if(d){b.onCollectionRefresh(a)}},updateSorters:function(b,c){var a=this;if(c){c.un('endupdate','onEndUpdateSorters',a)}if(b){b.on({endupdate:'onEndUpdateSorters',scope:a,priority:a.$endUpdatePriority});b.$sortable=a}a.onSorterChange();a.onEndUpdateSorters(b)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(b){var a=this,d=a.sorted,c=a.grouped&&a.getAutoGroup()||b&&b.length>0;if(d||c){a.sorted=!!c;a.onSortChange(b)}},removeObserver:function(b){var a=this.observers;if(a){Ext.Array.remove(a,b)}},spliceMerge:function(i,q){var f=this,r=f.map,k=i.length,g=0,n=f.items,m=n.length,h=[],c=0,a=[],p=f.getSortFn(),l,j,d,b,o,e;f.items=a;for(e=0;e1){h[c-2].next=h[c-1]}for(;e1){h[c-2].next=h[c-1]}a.push(b);for(j=e+1;j=0){break}a.push(b);l.push(b)}}for(;g0)}e=j.createAssociationStore(i,f,b,h);e.$source=q;if(!b&&(j.autoLoad||a)){n=!0}f[m]=e}if(a){if(n||e.isLoading()){e.on('load',function(h,i,e,g){d=[h,g];c=c||a.scope||f;if(e){Ext.callback(a.success,c,d)}else {Ext.callback(a.failure,c,d)}d.push(e);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)},null,{single:!0})}else {d=[e,null];c=c||a.scope||f;Ext.callback(a.success,c,d);d.push(!0);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)}}if(n&&!e.isLoading()){e.load()}return e},getAssociatedItem:function(b){var a=this.isMany?this.getStoreName():this.getInstanceName();return b[a]||null},onDrop:Ext.emptyFn,getReaderRoot:function(){var a=this;return a.associationKey||(a.associationKey=a.association.schema.getNamer().readerRoot(a.role))},getReader:function(){var b=this,a=b.reader,d=b.cls,c=!b.associationKey,e=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:e,useSimpleAccessors:c,type:b.defaultReaderType});a=b.reader=Ext.createByAlias('reader.'+a.type,a)}return a},getInstanceName:function(){var a=this;return a.instanceName||(a.instanceName=a.association.schema.getNamer().instanceName(a.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName='$old'+this.getInstanceName())},getStoreName:function(){var a=this;return a.storeName||(a.storeName=a.association.schema.getNamer().storeName(a.role))},constructReader:function(h){var b=this,a=b.getReader(),e=b.cls,g=!b.associationKey,f=b.getReaderRoot(),c,d;if(!a){d=e.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(f)}else {a=new h.self({model:e,useSimpleAccessors:g,rootProperty:f})}b.reader=a}return a},read:function(f,e,d,c){var a=this.constructReader(d),b=a.getRoot(e);if(b){return a.readRecords(b,c,this._internalReadOptions)}},getCallbackOptions:function(a,c,b){if(typeof a==='function'){a={callback:a,scope:c||b}}else {if(a){a=Ext.apply({},a);a.scope=c||a.scope||b}}return a},doGetFK:function(d,b,f){var i=this,l=i.cls,j=i.association.getFieldName(),h=i.getInstanceName(),a=d[h],m=b&&b.reload,e=a!==undefined&&!m,k=d.session,c,g;if(!e){if(k){c=d.get(j);if(c||c===0){e=k.peekRecord(l,c,!0)&&!m;a=k.getRecord(l,c,!1)}else {e=!0;d[h]=a=null}}else {if(j){c=d.get(j);if(!c&&c!==0){e=!0;d[h]=a=null}else {if(!a){a=l.createWithId(c)}}}else {e=!0}}}else {if(a){e=!a.isLoading()}}if(e){if(b){g=[a,null];f=f||b.scope||d;Ext.callback(b.success,f,g);g.push(!0);Ext.callback(b,f,g);Ext.callback(b.callback,f,g)}}else {d[h]=a;b=i.getCallbackOptions(b,f,d);a.load(b)}return a},doSetFK:function(a,c,e,l){var f=this,i=f.association.getFieldName(),h=f.getInstanceName(),b=a[h],d=f.inverse,j=d.setterName,m=a.session,k,g;if(c&&c.isEntity){if(b!==c){g=f.getOldInstanceName();a[g]=b;a[h]=c;if(b&&b.isEntity){b[d.getInstanceName()]=undefined}if(i){a.set(i,c.getId())}delete a[g];if(j){c[j](a)}}}else {k=a.changingKey&&!d.isMany||a.set(i,c);if(k&&b&&b.isEntity&&!b.isEqual(b.getId(),c)){a[h]=undefined;if(!d.isMany){b[d.getInstanceName()]=undefined}}}if(e){if(Ext.isFunction(e)){e={callback:e,scope:l||a}}return a.save(e)}}},1,0,0,0,0,0,[Ext.data.schema,'Role'],0);Ext.cmd.derive('Ext.data.schema.Association',Ext.Base,{isOneToOne:!1,isManyToOne:!1,isManyToMany:!1,owner:null,field:null,constructor:function(d){var a=this,c,b;Ext.apply(a,d);a.left=c=new a.Left(a,a.left);a.right=b=new a.Right(a,a.right);c.inverse=b;b.inverse=c},hasField:function(){return !!this.field},getFieldName:function(){var a=this.field;return a?a.name:''}},1,0,0,0,0,0,[Ext.data.schema,'Association'],0);Ext.cmd.derive('Ext.data.schema.OneToOne',Ext.data.schema.Association,{isOneToOne:!0,isToOne:!0,kind:'one-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',onDrop:function(a,c){var b=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(b){b[this.inverse.getInstanceName()]=null}},createGetter:function(){var a=this;return function(){return a.doGet(this)}},createSetter:function(){var a=this;return function(b){return a.doSet(this,b)}},doGet:function(a){var c=this.getInstanceName(),b=a[c],d=a.session;if(!b&&d){}return b||null},doSet:function(a,b){var d=this.getInstanceName(),e=a[d],c=this.inverse.setterName;if(e!==b){a[d]=b;if(c){b[c](a)}}return e},read:function(a,g,f,e){var c=this,d=c.callParent([a,g,f,e]),b;if(d){b=d[0];if(b){b[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=b;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(d,b,c){return a.doSetFK(this,d,b,c)}},onDrop:function(c,f){var b=this,e=b.association.field,a=b.getAssociatedItem(c),d;if(b.inverse.owner){if(f){d=c.get(e.name);if(d||d===0){a=f.getEntry(b.cls,d).record;if(a){a.drop()}}}else {if(a){a.drop()}}}if(e){c.set(e.name,null)}c[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(b,f,c){var a=this,e=b[a.getOldInstanceName()]||a.getAssociatedItem(b),h=c||c===0,d=a.getInstanceName(),g=a.cls;b.changingKey=!0;a.doSetFK(b,c);if(!h){b[d]=null}else {if(f&&g){b[d]=f.peekRecord(g,c)||undefined}}if(a.inverse.owner&&e){a.association.schema.queueKeyCheck(e,a)}b.changingKey=!1},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(a,o,n,m){var f=this,l=f.callParent([a,o,n,m]),b,d,g,c,k,h,j,i,e;if(l){b=l[0];d=f.association.field;if(d){g=d.name}c=a.session;e=a.data;if(b){if(c){k=c.getRefs(b,this.inverse,!0);i=k&&k[a.id]||e[g]===undefined}else {i=!0}if(i){if(d){j=e[g];h=b.id;if(j!==h){e[g]=h;if(c){c.updateReference(a,d,h,j)}}}b[f.inverse.getInstanceName()]=a;a[f.getInstanceName()]=b}delete e[f.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,'OneToOne'],0);Ext.cmd.derive('Ext.data.schema.ManyToOne',Ext.data.schema.Association,{isManyToOne:!0,isToOne:!0,kind:'many-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,onDrop:function(d,f){var b=this,e=b.getAssociatedItem(d),a,g,c,i,h;if(e){a=e.removeAll();if(a&&b.inverse.owner){for(c=0,g=a.length;c0){a=c[h];e=!a.isEqual(l,a.get(i));b=f?null:d;if(e!==f){a.changingKey=!0;a[k](b);a.changingKey=!1}else {a[j]=b}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',onDrop:function(a,c){var b=this.association.field;if(b){a.set(b.name,null)}a[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(c,b){var d=this.association.field,a;a=this.getSessionStore(c,b.get(d.name));if(a&&!a.contains(b)){a.add(b)}},onValueChange:function(b,f,d,l){var c=this,j=c.getInstanceName(),m=c.cls,i,g,a,h,n,e,k;if(!b.changingKey){i=d||d===0;if(!i){b[j]=null}if(f){a=c.getSessionStore(f,l);if(a){a.remove(b)}if(i){a=c.getSessionStore(f,d);if(a&&!a.isLoading()){a.add(b)}if(m){k=f.peekRecord(m,d)}b[j]=k||undefined}}else {g=b.joined;if(g){for(h=0,n=g.length;h=0){a.remove([b])}}else {if(b<0){d=a.getSession().getEntry(this.type,e);c=d&&d.record;if(c){a.add(c)}}}a.matrixUpdate=0}},adoptAssociated:function(e,d){var a=this.getAssociatedItem(e),c,b,f;if(a){a.setSession(d);this.onStoreCreate(a,d,e.getId());c=a.getData().items;for(b=0,f=c.length;b1){a[b]=this.apply('capitalize',a[b])}return a.join('')},getterName:function(a){var b=a.role;if(a&&a.isMany){return b}return 'get'+this.apply('capitalize',b)},inverseFieldRole:function(e,f,c,d){var a=this,b=a.apply(f?'uniRole':'multiRole',e),g=a.apply('pluralize',c),h=a.apply('undotted,pluralize',d);if(g.toLowerCase()!==h.toLowerCase()){b=c+a.apply('capitalize',b)}return b},manyToMany:function(c,e,d){var b=this,a=b.apply('undotted,capitalize,singularize',e)+b.apply('undotted,capitalize,pluralize',d);if(c){a=b.apply('capitalize',c+a)}return a},manyToOne:function(d,b,a,c){return this.apply('capitalize,singularize',a)+this.apply('capitalize',b)},matrixRole:function(a,c){var b=this.apply(a?'multiRole,capitalize':'multiRole',c);return a?a+b:b},oneToOne:function(d,b,a,c){return this.apply('undotted,capitalize,singularize',a)+this.apply('capitalize',b)},setterName:function(a){return 'set'+this.apply('capitalize',a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(b,c){var e=this,h=e.cache,i=h[c]||(h[c]={}),a=i[b],d,g,f;if(!a){if(b.indexOf(',')<0){a=e[b](c)}else {g=(f=b.split(',')).length;a=c;for(d=0;d=Math.max(a,b)},find:function(g,h,d,e,b,c){var a=!e,f=!!(a&&c);return this.getData().findIndex(g,h,d,a,f,!b)},findRecord:function(){var a=this,b=a.find.apply(a,arguments);return b!==-1?a.getAt(b):null},findExact:function(a,c,b){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(a),c)},this,b)},findBy:function(c,a,b){return this.getData().findIndexBy(c,a,b)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,a){var c=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==!1){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(c,a){var b;if(!a){a=this.createFiltersCollection();b=!0}a.add(c);if(b){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==!1){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(c,a){var b;if(!a){a=this.createSortersCollection();b=!0}a.add(c);if(b){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(a,c,b){if(Ext.isString(a)){a={property:a,value:c}}this.suppressNextFilter=!!b;this.getFilters().add(a);this.suppressNextFilter=!1},removeFilter:function(a,d){var b=this,c=b.getFilters();b.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){c.remove(a)}else {c.removeByKey(a)}b.suppressNextFilter=!1},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(!1),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(!1),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=!1},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(!1);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=!1},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(!1);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(b){if(b.getTransform()){return}var e=b.getProperty(),d=this.getModel(),c,a;if(d){c=d.getField(e);a=c?c.getSortType():null}if(a&&a!==Ext.identityFn){b.setTransform(a)}},beginUpdate:function(){if(!this.updating++){this.fireEvent('beginupdate')}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent('endupdate');this.onEndUpdate()}},getState:function(){var c=this,e=[],g=c.getFilters(),f=c.getGrouper(),a,d,b;c.getSorters().each(function(a){e[e.length]=a.getState();d=!0});if(c.statefulFilters&&c.saveStatefulFilters){d=!0;a=[];g.each(function(b){a[a.length]=b.getState()})}if(f){d=!0}if(d){b={};if(e.length){b.sorters=e}if(a){b.filters=a}if(f){b.grouper=f.getState()}}return b},applyState:function(b){var a=this,e=b.sorters,c=b.filters,d=b.grouper;if(e){a.getSorters().replaceAll(e)}if(c){a.saveStatefulFilters=!0;a.getFilters().replaceAll(c)}if(d){a.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.callParent();a.onDestroy()},sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else {a.forceLocalSort()}}else {a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(b,a){if(a){this.fireEvent('beforesort',this,a.getRange())}},onSorterEndUpdate:function(){var a=this,b;b=a.getSorters(!1);if(a.settingGroups||!b){return}b=b.getRange();if(b.length){if(a.getRemoteSort()){a.load({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('sort',a,b)}}else {a.fireEvent('sort',a,b)}},onFilterEndUpdate:function(){var a=this,b=a.suppressNextFilter;if(a.getRemoteFilter()){a.currentPage=1;if(!b){a.load()}}else {if(!b){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}if(a.trackStateChanges){a.saveStatefulFilters=!0}a.fireEvent('filterchange',a,a.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else {this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(b,d){var a=this,c=a.getSorters(!1),e=b||c&&c.length;if(b&&typeof b==='string'){b={property:b,direction:d||a.getGroupDir()}}a.settingGroups=!0;a.getData().setGrouper(b);delete a.settingGroups;if(e){if(a.getRemoteSort()){a.load({scope:a,callback:a.fireGroupChange})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireGroupChange()}}else {a.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){this.fireEvent('groupchange',this,this.getGrouper())}},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b='';if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?'on':'un']('endupdate',this.onFilterEndUpdate,this)}},onRemoteSortSet:function(c,b){var a=this;if(c){c[b?'on':'un']('endupdate',a.onSorterEndUpdate,a);a.getData()[b?'un':'on']('beforesort',a.onBeforeCollectionSort,a)}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data,'AbstractStore'],0);Ext.cmd.derive('Ext.data.Error',Ext.Base,{isError:!0,$configPrefixed:!1,config:{field:null,message:''},constructor:function(a){this.initConfig(a);this.msg=this.message}},1,0,0,0,0,0,[Ext.data,'Error'],0);Ext.cmd.derive('Ext.data.ErrorCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.data.Errors',init:function(d){var b=this,h=d.fields,k=d.data,g,a,l,c,i,f,j,e;for(c=0,i=h.length;c]+>/gi,asText:function(a){return a!=null?String(a).replace(this.stripTagsRe,''):'\x00'},asUCText:function(a){return a!=null?String(a).toUpperCase().replace(this.stripTagsRe,''):'\x00'},asUCString:function(a){return a!=null?String(a).toUpperCase():'\x00'},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(b){var a=parseFloat(String(b).replace(this.stripCommasRe,''));return isNaN(a)?0:a},asInt:function(b){var a=parseInt(String(b).replace(this.stripCommasRe,''),10);return isNaN(a)?0:a}},0,0,0,0,0,0,[Ext.data,'SortTypes'],0);Ext.cmd.derive('Ext.data.validator.Validator',Ext.Base,{isValidator:!0,type:'base',statics:{all:{},register:function(a,c){var b=this.all;b[a.toUpperCase()]=b[a.toLowerCase()]=b[a]=c.prototype}},onClassExtended:function(b,a){if(a.type){Ext.data.validator.Validator.register(a.type,b)}},constructor:function(a){if(typeof a==='function'){this.fnOnly=!0;this.validate=a}else {this.initConfig(a)}},validate:function(){return !0},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},1,0,0,0,['data.validator.base'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.validator,'Validator'],function(){this.register(this.prototype.type,this)});Ext.cmd.derive('Ext.data.field.Field',Ext.Base,{alternateClassName:'Ext.data.Field',aliasPrefix:'data.field.',type:'auto',factoryConfig:{defaultProperty:'name'},isDataField:!0,isField:!0,allowBlank:!0,allowNull:!1,critical:!1,defaultInvalidMessage:'This field is invalid',defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,unique:!1,rank:null,stripRe:/[\$,%]/g,calculated:!1,evil:!1,identifier:!1,onClassExtended:function(f,d){var b=d.sortType,c=f.prototype,e=c.validators,a=d.validators;if(b&&Ext.isString(b)){c.sortType=Ext.data.SortTypes[b]}if(a){if(!Ext.isArray(a)){a=[a]}delete d.validators;if(e){a=e.concat(a)}c.validators=a}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var a=this,n=a.calculateRe,c,l,f,h,b,j,e,m,k,i,g;if(d){if(Ext.isString(d)){a.name=d}else {g=d.validators;if(g){delete d.validators;a.instanceValidators=g}Ext.apply(a,d)}}if(!a.allowNull){a.allowNull=!!a.reference}c=a.calculate;b=a.depends;if(c){a.convert=a.doCalculate;if(!b){if(!(b=c.$depends)){j={};k=c.toString();c.$depends=b=[];e=a.argumentNamesRe.exec(k);m=e?e[1]:'data';while(e=n.exec(k)){if(m===e[1]&&!j[i=e[2]]){j[i]=1;b.push(i)}}}a.depends=b}}f=a.defaultValue;if(a.convert){a.calculated=l=a.convert.length>1;a.evil=l&&!b}if(a.persist===null){a.persist=!c}h=a.sortType;if(!a.sortType){a.sortType=Ext.data.SortTypes.none}else {if(Ext.isString(h)){a.sortType=Ext.data.SortTypes[h]}}if(b&&typeof b==='string'){a.depends=[b]}a.cloneDefaultValue=f!==undefined&&(Ext.isDate(f)||Ext.isArray(f)||Ext.isObject(f))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},compileValidators:function(){var a=this;a._validators=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var d=a.length,e=this._validators,c,b;for(c=0;c0){(u=p[v]).dirty=!0;d=d?Math.min(d,u.rank):u.rank}if(!b||b.persist){if(f&&f.hasOwnProperty(c)){if(!y||o.isEqual(f[c],h)){delete f[c];a.dirty=-1}}else {if(y){if(!f){a.modified=f={}}a.dirty=!0;f[c]=j}}}if(c===a.idField.name){D=!0;z=j;s=h}}if(!d){break}b=l[d-1];b.dirty=!1;if(n){delete g[i]}else {g=a._singleProp;n=!0}i=b.name;g[i]=t[i];C=!0;for(;d0;){d=(b=g[i]).name;if(!(d in f)){c=h[d];if(j&&b.serialize){c=b.serialize(c,a)}f[d]=c}}}if(n){a.getAssociatedData(f,e)}return f},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(a){a=Ext.apply({},a);var b=this,d=a.scope||b,g=b.getProxy(),f=a.callback,c=b.loadOperation,h=b.getId(),e;if(c){e=c.extraCalls;if(!e){e=c.extraCalls=[]}e.push(a);return c}a.id=h;a.recordCreator=function(e,f,c){var d=b.session;if(c){c.recordCreator=d?d.recordCreator:null}b.set(e,b._commitOptions);return b};a.internalCallback=function(e){var h=e.wasSuccessful()&&e.getRecords().length>0,l=b.loadOperation,i=l.extraCalls,c=[b,e],j=[b,e,h],g,k;b.loadOperation=null;if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(f,d,j);if(i){for(g=0,k=i.length;g0;){b=i[a];if(b in e){delete e[b];delete j[b]}}for(a=0,h=f.length;a=a.getTotal()){a.setConfig({success:!1,records:[],total:0})}else {a.setRecords(Ext.Array.slice(d,e,e+i))}}b.setCompleted()}},clear:Ext.emptyFn},0,0,0,0,['proxy.memory'],0,[Ext.data.proxy,'Memory',Ext.data,'MemoryProxy'],0);Ext.cmd.derive('Ext.data.ProxyStore',Ext.data.AbstractStore,{config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:!1,batchUpdateMode:'operation',sortOnLoad:!0,trackRemoved:!0,asynchronousLoad:undefined},onClassExtended:function(e,d,b){var c=d.model,a;if(typeof c==='string'){a=b.onBeforeCreated;b.onBeforeCreated=function(){var g=this,f=arguments;Ext.require(c,function(){a.apply(g,f)})}}},implicitModel:'Ext.data.Model',autoSyncSuspended:0,constructor:function(b){var a=this;a.removed=[];Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(a.getAsynchronousLoad()===!1){a.flushLoad()}},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else {this.getFields();a=this.getModel()||this.createImplicitModel()}return a},applyProxy:function(a){var b=this.getModel();if(a!==null){if(a){if(a.isProxy){a.setModel(b)}else {if(Ext.isString(a)){a={type:a,model:b}}else {if(!a.model){a=Ext.apply({model:b},a)}}a=Ext.createByAlias('proxy.'+a.type,a);a.autoCreated=!0}}else {if(b){a=b.getProxy()}}if(!a){a=Ext.createByAlias('proxy.memory');a.autoCreated=!0}}return a},applyState:function(b){var a=this;Ext.data.AbstractStore.prototype.applyState.call(this,b);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(b,a){this.fireEvent('metachange',this,a)},create:function(f,a){var b=this,e=b.getModel(),d=new e(f),c;a=Ext.apply({},a);if(!a.records){a.records=[d]}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('create',a);return c.execute()},read:function(){return this.load.apply(this,arguments)},update:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getUpdatedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('update',a);return c.execute()},onProxyWrite:function(a){var b=this,c=a.wasSuccessful(),d=a.getRecords();switch(a.getAction()){case 'create':b.onCreateRecords(d,a,c);break;case 'update':b.onUpdateRecords(d,a,c);break;case 'destroy':b.onDestroyRecords(d,a,c);break;}if(c){b.fireEvent('write',b,a);b.fireEvent('datachanged',b)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(c,b,a){if(a){this.cleanRemoved()}},erase:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getRemovedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('destroy',a);return c.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(e,f){var a=this,c=e.operations,d=c.length,b;if(a.batchUpdateMode!=='operation'){a.suspendEvents();for(b=0;b0){b.create=f;c=!0}if(g.length>0){b.update=g;c=!0}if(e.length>0){b.destroy=e;c=!0}if(c&&a.fireEvent('beforesync',b)!==!1){a.isSyncing=!0;d=d||{};a.proxy.batch(Ext.apply(d,{operations:b,listeners:a.getBatchListeners()}))}return a},getBatchListeners:function(){var a=this,b={scope:a,exception:a.onBatchException,complete:a.onBatchComplete};if(a.batchUpdateMode==='operation'){b.operationcomplete=a.onBatchOperationComplete}return b},save:function(){return this.sync.apply(this,arguments)},load:function(b){var a=this;if(typeof b==='function'){b={callback:b}}else {b=b?Ext.Object.chain(b):{}}a.pendingLoadOptions=b;if(a.getAsynchronousLoad()){if(!a.loadTimer){a.loadTimer=Ext.asap(a.flushLoad,a)}}else {a.flushLoad()}return a},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b;a.clearLoadTask();if(!c){return}a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}b=Ext.apply({internalScope:a,internalCallback:a.onProxyLoad,scope:a},c);a.lastOptions=b;b=a.createOperation('read',b);if(a.fireEvent('beforeload',a,b)!==!1){a.onBeforeLoad(b);a.loading=!0;b.execute()}},reload:function(a){var b=Ext.apply({},a,this.lastOptions);return this.load(b)},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,onDestroy:function(){var a=this,b=a.getProxy();a.clearLoadTask();a.getData().destroy();a.data=null;a.setProxy(null);if(b.autoCreated){b.destroy()}a.setModel(null)},hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){Ext.asapCancel(this.loadTimer);this.pendingLoadOptions=this.loadTimer=null},cleanRemoved:function(){var a=this.getRawRemovedRecords(),c,b;if(a){for(b=0,c=a.length;b-1},each:function(f,e){var c=this.data.items,d=c.length,b,a;for(a=0;a0){if(u){f=0;if(d.length>1&&h){f=1}b[i]=d[f].getProperty();b[t]=d[f].getDirection()}else {b[i]=a.encodeSorters(d)}}if(l&&j&&j.length>0){b[l]=a.encodeFilters(j)}return b},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format('{0}={1}',b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(a){var b;if(a){b=a.getUrl()||this.getApi()[a.getAction()]}return b?b:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a){},afterRequest:Ext.emptyFn,destroy:function(){Ext.data.proxy.Proxy.prototype.destroy.call(this);Ext.destroy(this.getReader(),this.getWriter());this.reader=this.writer=null}},0,0,0,0,['proxy.server'],0,[Ext.data.proxy,'Server',Ext.data,'ServerProxy'],0);Ext.cmd.derive('Ext.data.proxy.Ajax',Ext.data.proxy.Server,{alternateClassName:['Ext.data.HttpProxy','Ext.data.AjaxProxy'],isAjaxProxy:!0,defaultActionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'},config:{binary:!1,headers:undefined,paramsAsJson:!1,withCredentials:!1,useDefaultXhrHeader:!0,username:null,password:null,actionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'}},doRequest:function(e){var a=this,g=a.getWriter(),b=a.buildRequest(e),f=a.getMethod(b),c,d;if(g&&e.allowWrite()){b=g.write(b)}b.setConfig({binary:a.getBinary(),headers:a.getHeaders(),timeout:a.getTimeout(),scope:a,callback:a.createRequestCallback(b,e),method:f,useDefaultXhrHeader:a.getUseDefaultXhrHeader(),disableCaching:!1});if(f.toUpperCase()!=='GET'&&a.getParamsAsJson()){d=b.getParams();if(d){c=b.getJsonData();if(c){c=Ext.Object.merge({},c,d)}else {c=d}b.setJsonData(c);b.setParams(undefined)}}if(a.getWithCredentials()){b.setWithCredentials(!0);b.setUsername(a.getUsername());b.setPassword(a.getPassword())}return a.sendRequest(b)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(d){var a=this.getActionMethods(),b=d.getAction(),c;if(a){c=a[b]}return c||this.defaultActionMethods[b]},createRequestCallback:function(b,c){var a=this;return function(f,e,d){if(b===a.lastRequest){a.lastRequest=null}a.processResponse(e,c,b,d)}},destroy:function(){this.lastRequest=null;Ext.data.proxy.Server.prototype.destroy.call(this)}},0,0,0,0,['proxy.ajax'],0,[Ext.data.proxy,'Ajax',Ext.data,'HttpProxy',Ext.data,'AjaxProxy'],0);Ext.cmd.derive('Ext.data.reader.Json',Ext.data.reader.Reader,{alternateClassName:'Ext.data.JsonReader',config:{record:null,metaProperty:'metaData',useSimpleAccessors:!1,preserveRawData:!1},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},readRecords:function(a,e,d){var b=this,c;if(b.getMeta){c=b.getMeta(a);if(c){b.onMetaChange(c)}}else {if(a.metaData){b.onMetaChange(a.metaData)}}return Ext.data.reader.Reader.prototype.readRecords.call(this,a,e,d)},getResponseData:function(b){var a;try{return Ext.decode(b.responseText)}catch(c){a=this.createReadError(c.message);Ext.Logger.warn('Unable to parse the JSON returned by the server');this.fireEvent('exception',this,b,a);return a}},buildExtractors:function(){var a=this,b,c;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){b=a.getMetaProperty();c=a.getRootProperty();if(c){a.getRoot=a.getAccessor(c)}else {a.getRoot=Ext.identityFn}if(b){a.getMeta=a.getAccessor(b)}}},extractData:function(a,f){var e=this.getRecord(),d=[],c,b;if(e){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b1||e&&!g){b+=d}else {if(k){i=!1;if(l){++e}else {if(g){--e;i=!0}}if(b){if(i){b='['+b+']'}else {b='.'+b}j+=b;m.push(''+j);b=''}}}}f=m.join(' && ');f=Ext.functionFactory('raw','return '+f)}return f}}(),createFieldAccessor:function(b){var e=this,a=b.mapping,c=a||a===0,d=c?a:b.name;if(c){if(typeof d==='function'){return function(a){return b.mapping(a,e)}}else {return e.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?'simple':'';return this.$className+a+b},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot}}},0,0,0,0,['reader.json'],0,[Ext.data.reader,'Json',Ext.data,'JsonReader'],0);Ext.cmd.derive('Ext.data.writer.Json',Ext.data.writer.Writer,{alternateClassName:'Ext.data.JsonWriter',config:{rootProperty:undefined,encode:!1,allowSingle:!0,expandData:!1},getExpandedData:function(f){var h=f.length,g=0,a,c,b,d,e,i=function(c,b){var a={};a[c]=b;return a};for(;g0){e=a[c];for(;d>0;d--){e=i(b[d],e)}a[b[0]]=a[b[0]]||{};Ext.Object.merge(a[b[0]],e);delete a[c]}}}}return f},writeRecords:function(b,a){var c=this,e=c.getRootProperty(),d,g,f;if(c.getExpandData()){a=c.getExpandedData(a)}if(c.getAllowSingle()&&a.length===1){a=a[0];g=!0}f=this.getTransform();if(f){a=f(a,b)}if(c.getEncode()){if(e){b.setParam(e,Ext.encode(a))}else {}}else {if(g||a&&a.length){d=b.getJsonData()||{};if(e){d[e]=a}else {d=a}b.setJsonData(d)}}return b}},0,0,0,0,['writer.json'],0,[Ext.data.writer,'Json',Ext.data,'JsonWriter'],0);Ext.cmd.derive('Ext.util.Group',Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001},0,0,0,0,0,0,[Ext.util,'Group'],0);Ext.cmd.derive('Ext.util.SorterCollection',Ext.util.Collection,{isSorterCollection:!0,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(b){var a=this;a.sortFn=Ext.util.Sorter.createComparator(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeSorter)},addSort:function(b,c,d){var a=this,f,j,k,g,h,i,e;if(!b){a.beginUpdate();a.endUpdate()}else {g=a.getOptions();if(b instanceof Array){e=b;d=c;c=null}else {if(Ext.isString(b)){if(!(i=a.get(b))){e=[{property:b,direction:c||g.getDefaultSortDirection()}]}else {e=[i]}}else {if(Ext.isFunction(b)){e=[{sorterFn:b,direction:c||g.getDefaultSortDirection()}]}else {e=[b];d=c;c=null}}}d=a._sortModes[d||'replace'];h=a.getAt(0);f=a.length;j=d.append?f:0;a.beginUpdate();a.splice(j,d.replace?f:0,e);if(d.multi){f=a.length;k=g.getMultiSortLimit();if(f>k){a.removeAt(k,f)}}if(i&&c){i.setDirection(c)}else {if(j===0&&h&&h===a.getAt(0)){h.toggle()}}a.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(d){var c=this.items,e=c.length,a,b;for(a=0;ad+1||!Ext.isIterable(b)){b=Ext.Array.slice(e,d)}var j=k.items,l=b.length,c=[],f,g,i,a,h;for(f=0;f0;){g=j[i];if(g.getSorterFn()===a){c.push(g)}}}}}}b=c;b.$cloned=!0}return b},getOptions:function(){return this.$sortable||this}},1,0,0,0,0,0,[Ext.util,'SorterCollection'],0);Ext.cmd.derive('Ext.util.FilterCollection',Ext.util.Collection,{isFilterCollection:!0,$filterable:null,filterFn:null,constructor:function(b){var a=this;a.filterFn=Ext.util.Filter.createFilterFn(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},decodeFilter:function(b){var d=this.getOptions(),c=d.getRootProperty(),a;if(b.isFilter){if(!b.getRoot()){b.setRoot(c)}}else {a={root:c};if(Ext.isFunction(b)){a.filterFn=b}else {a=Ext.apply(a,b);if(a.fn){a.filterFn=a.fn;delete a.fn}if(Ext.util.Filter.isInvalid(a)){return !1}}b=new Ext.util.Filter(a)}return b},decodeRemoveItems:function(f,e){var p=this,b=e===undefined?f:f[e];if(!b.$cloned){if(f.length>e+1||!Ext.isIterable(b)){b=Ext.Array.slice(f,e)}var k=p.items,o=b.length,h=[],a,g,l,n,m,c,d,j,i;for(g=0;g0;){c=k[j];d=!1;if(m){d=c.getProperty()===a}else {if(l){d=c.getFilterFn()===a}else {if(n){d=c.getProperty()===a.property&&c.getValue()===a.value}}}if(d){h.push(c)}}}}b=h;b.$cloned=!0}return b},getOptions:function(){return this.$filterable||this}},1,0,0,0,0,0,[Ext.util,'FilterCollection'],0);Ext.cmd.derive('Ext.util.GroupCollection',Ext.util.Collection,{isGroupCollection:!0,config:{grouper:null,itemRoot:null},observerPriority:-100,onCollectionAdd:function(b,a){this.addItemsToGroups(b,a.items)},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){var c=a.item;if(!a.indexChanged){this.syncItemGrouping(b,c,b.getKey(c),a.oldKey,a.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(a){this.removeAll();this.addItemsToGroups(a,a.items)},onCollectionRemove:function(k,j){var d=this,g=d.changeDetails,b,h,a,e,i,c,f;if(g){f=g.item;a=d.findGroupForItem(f);b=[];if(a){b.push({group:a,items:[f]})}}else {b=d.groupItems(k,j.items,!1)}for(e=0,i=b.length;e0&&i.getSorters().getCount()===0){k=i.indexOf(a.items[0]);if(o-1){b=[c];d=1}else {d=0}}else {b=[];for(g=0,d=c.length;g=0;a--){d=c[a];d.reject();if(!g){b.insert(d.removedFrom||0,d)}}if(g){h.setAutoSort(i);b.add(c)}c.length=0}b.endUpdate();Ext.resumeLayouts(!0)},onDestroy:function(){var a=this,c=a.loadTask,d=a.getData(),b=d.getSource();a.clearData();Ext.data.ProxyStore.prototype.onDestroy.call(this);a.setSession(null);a.observers=null;if(c){c.cancel();a.loadTask=null}if(b){b.destroy()}},privates:{fetch:function(a){a=Ext.apply({},a);this.setLoadOptions(a);var b=this.createOperation('read',a);b.execute()},onBeforeLoad:function(a){this.callObservers('BeforeLoad',[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,a,b)},onRemoteSortSet:function(b,a){var c=this.getData();if(b){c.setSorters(a?null:b)}c.setAutoGroup(!a);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,a)},isMoving:function(a,f){var c=this.moveMap,b=0,e,d;if(c){if(a){if(Ext.isArray(a)){for(d=0,e=a.length;d-1}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Store'],0);Ext.cmd.derive('Ext.app.route.Queue',Ext.Base,{queue:null,token:null,constructor:function(a){Ext.apply(this,a);this.queue=new Ext.util.MixedCollection()},queueAction:function(a,b){this.queue.add({route:a,args:b})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var c=this.queue,a=c.removeAt(0),b;if(a){b=a&&a.route;b.execute(this.token,a.args,this.onActionExecute,this)}},onActionExecute:function(a){if(a){this.clearQueue()}else {this.runQueue()}}},1,0,0,0,0,0,[Ext.app.route,'Queue'],0);Ext.cmd.derive('Ext.app.route.Route',Ext.Base,{action:null,conditions:null,controller:null,allowInactive:!1,url:null,before:null,caseInsensitive:!1,matcherRegex:null,paramMatchingRegex:null,paramsInMatchString:null,constructor:function(c){var a=this,b;Ext.apply(a,c,{conditions:{}});b=a.url;a.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);a.paramsInMatchString=b.match(a.paramMatchingRegex)||[];a.matcherRegex=a.createMatcherRegex(b)},recognize:function(b){var a=this,d=a.controller,e,c;if((a.allowInactive||d.isActive())&&a.recognizes(b)){e=a.matchesFor(b);c=b.match(a.matcherRegex);c.shift();return Ext.applyIf(e,{controller:d,action:a.action,historyUrl:b,args:c})}return !1},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(h,d,f,g){var e=d.args||[],a=this.before,c=this.controller,b=this.createCallback(d,f,g);if(a){e.push(b);if(Ext.isString(a)){a=this.before=c[a]}if(a){a.apply(c,e)}}else {b.resume()}},matchesFor:function(f){var b={},d=this.paramsInMatchString,c=f.match(this.matcherRegex),a=0,e=d.length;c.shift();for(;a0){c=a.substring(0,d);b=a.substring(d+1)+'.'+c}else {if(a.indexOf('.')>0&&(Ext.ClassManager.isCreated(a)||this.hasRegisteredPrefix(a))){b=a}else {if(f){b=f+'.'+g+'.'+(e?e+'.'+a:a);c=a}else {b=a}}}return {absoluteName:b,shortName:c}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:!0,moduleClassName:null},onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,i){var g=Ext.app.Controller,h=[],e,f;f=j.prototype;e=g.resolveNamespace(j,i);if(e){f.$namespace=e}g.processDependencies(f,h,e,'model',i.models);g.processDependencies(f,h,e,'view',i.views);g.processDependencies(f,h,e,'store',i.stores);g.processDependencies(f,h,e,'controller',i.controllers);Ext.require(h,Ext.Function.pass(b,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.apply(this,arguments)},normalizeRefs:function(a){var c=this,b=[];if(a){if(Ext.isObject(a)){Ext.Object.each(a,function(d,c){if(Ext.isString(c)){c={selector:c}}c.ref=d;b.push(c)})}else {if(Ext.isArray(a)){b=Ext.Array.merge(b,a)}}}a=c.refs;if(a){c.refs=null;a=c.normalizeRefs(a);if(a){b=Ext.Array.merge(b,a)}}return b},getRefMap:function(){var e=this,a=e._refMap,b,d,f,c;if(!a){b=e.getRefs();a=e._refMap={};if(b){for(c=0,f=b.length;c0){d=c[b];a.map[a.getKey(d)]=b}++a.generation}}},1,0,0,0,0,0,[Ext.util,'Bag'],0);Ext.cmd.derive('Ext.util.Scheduler',Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:!1,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var a=this,b=a.items;if(b===a.firing){a.items=b=b.clone()}c.id=c.id||++a.nextId;c.scheduler=a;b.add(c);if(!a.sortMap){a.orderedItems=null}},remove:function(c){var a=this,b=a.items;if(a.destroyed){return}if(b===a.firing){a.items=b=b.clone()}if(c.scheduled){a.unscheduleItem(c);c.scheduled=!1}b.remove(c);a.orderedItems=null},sort:function(){var a=this,b=a.items,f={},e=a.getPreSort(),c,d;a.orderedItems=[];a.sortMap=f;if(e){b.sort(e)}b=b.items;for(c=0;c0;){c[d].stub=b}}return b},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return !0}}return !1},onSchedule:function(){for(var c,e,b,a,d=this.parent;d;d=d.parent){a=d.bindings;if(a){for(c=0,e=a.length;c '+a.binding.getFullName()+')')},getDataObject:function(){var a=this.binding;return a&&a.getDataObject()},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isLoading:function(){var a=this.binding;return a?a.isLoading():!1},link:function(c,b){var a=this,d=a.binding;if(d){d.destroy()}b=a.target=b||a.owner;a.linkDescriptor=c;a.binding=b.bind(c,a.onChange,a);a.binding.deep=!0},onChange:function(){this.invalidate(!0)},react:function(){var a=this,b=a.owner.linkData;b[a.name]=a.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var c=this,b=Ext.app.bind.Stub.prototype.collect.call(this),a=c.binding?1:0;return b+a},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}},0,0,0,0,0,0,[Ext.app.bind,'LinkStub'],0);Ext.cmd.derive('Ext.app.bind.RootStub',Ext.app.bind.AbstractStub,{isRootStub:!0,depth:0,createRootChild:function(a,j){var e=this,d=e.owner,i=d.getData(),g=e.children,c=g&&g[a],f=c?null:e,h,b;if(j||i.hasOwnProperty(a)||!(h=d.getParent())){b=new Ext.app.bind.Stub(d,a,f)}else {b=new Ext.app.bind.LinkStub(d,a,c?null:f);b.link('{'+a+'}',h)}if(c){c.graft(b)}return b},createStubChild:function(a){return this.createRootChild(a,!0)},descend:function(a,g){var f=this,d=f.children,b=g||0,e=a[b++],c=d&&d[e]||f.createRootChild(e);if(b0;){if(a[b].isLoading()){return !0}}return !1},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var b=this.bindings,d=b.length,a,c;for(a=0;a-1}}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Controller'],0);Ext.cmd.derive('Ext.data.PageMap',Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:''},clear:function(b){var a=this;a.pageMapGeneration=(a.pageMapGeneration||0)+1;a.indexMap={};Ext.util.LruCache.prototype.clear.call(this,b)},forEach:function(k,f){var d=this,b=Ext.Object.getKeys(d.map),h=b.length,j=d.getPageSize(),a,c,e,g,i;for(a=0;ad},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(l,f){f--;if(!this.hasRange(l,f)){Ext.raise('PageMap asked for range which it does not have')}var c=this,k=Ext.Array,e=c.getPageSize(),g=c.getPageFromRecordIndex(l),h=c.getPageFromRecordIndex(f),m=(g-1)*e,n=h*e-1,a=g,j=[],d,i,b;for(;a<=h;a++){if(a===g){d=l-m;b=d>0}else {d=0;b=!1}if(a===h){i=e-(n-f);b=b||i=g){b=g-1;c=Math.max(b-h,0)}if(a.rangeCached(c,Math.min(b,a.totalCount))){a.loading=!1;f.un('pageadd',e);l=f.getRange(c,b+1);a.fireEvent('load',a,l,!0);a.fireEvent('refresh',a)}};h=Math.ceil((a.getLeadingBufferZone()+a.getTrailingBufferZone())/2);if(a.lastRequestStart&&a.preserveScrollOnReload){c=a.lastRequestStart;b=a.lastRequestEnd;i=a.getTotalCount()}else {c=d.start||0;b=c+(d.count||a.getPageSize())-1}f.clear(!0);delete a.totalCount;c=Math.max(c-h,0);b=Math.min(b+h,i);j=a.getPageFromRecordIndex(c);k=a.getPageFromRecordIndex(b);a.loading=!0;d.waitForReload=e;f.on('pageadd',e);for(g=j;g<=k;g++){a.prefetchPage(g,d)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},clearData:function(c){var b=this,a=b.getData();if(a){a.clear()}},getCount:function(){return this.totalCount||0},getRange:function(c,b,f){var a=this,k=a.totalCount-1,m=a.lastRequestStart,l=[],h=a.getData(),g,d,e,i,j;f=Ext.apply({prefetchStart:c,prefetchEnd:b},f);b=b>=a.totalCount?k:b;d=c===0?0:c-1;e=b===k?b:b+1;a.lastRequestStart=c;a.lastRequestEnd=b;if(a.rangeCached(d,e)){a.onRangeAvailable(f);l=h.getRange(c,b+1)}else {a.fireEvent('cachemiss',a,c,b);i=a.getPageFromRecordIndex(d);j=a.getPageFromRecordIndex(e);g=function(l,k,m){if(k>=i&&k<=j&&a.rangeCached(d,e)){a.fireEvent('cachefilled',a,c,b);h.un('pageadd',g);a.onRangeAvailable(f)}};h.on('pageadd',g);a.prefetchRange(c,b)}a.primeCache(c,b,c-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var a=this,c;if(b&&typeof b==='string'){c=a.grouper;if(!c){a.grouper=new Ext.util.Grouper({property:b,direction:d||'ASC',root:'data'})}else {if(d===undefined){c.toggle()}else {c.setDirection(d)}}}else {a.grouper=b?a.getSorters().decodeSorter(b,'Ext.util.Grouper'):null}a.getData().clear();a.loadPage(1,{callback:function(){a.fireEvent('groupchange',a,a.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(c){var a=this,b=a.getPurgePageCount();return b?Math.max(a.getData().getMaxSize()||0,Math.ceil((c+a.getTrailingBufferZone()+a.getLeadingBufferZone())/a.getPageSize())*2+b):0},loadToPrefetch:function(b){var a=this,f=b,h,d,i,e=b.start,k=b.start+b.limit-1,m=a.getViewSize()||b.limit,c=Math.min(k,b.start+m-1),p=a.getPageFromRecordIndex(Math.max(e-a.getTrailingBufferZone(),0)),q=a.getPageFromRecordIndex(k+a.getLeadingBufferZone()),g=a.getData(),j=function(){d=d||[];if(b.loadCallback){b.loadCallback.call(b.scope||a,d,o,!0)}if(b.callback){b.callback.call(b.scope||a,d,e||0,k||0,b)}},n=function(){a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('load',a,d,!0)},l=function(){if(a.rangeCached(e,c)){a.loading=!1;d=g.getRange(e,c+1);g.un('pageadd',l);if(a.hasListeners.guaranteedrange){a.guaranteeRange(e,c,b.callback,b.scope)}j();n()}},o;g.setMaxSize(a.calculatePageCacheSize(m));if(a.fireEvent('beforeload',a,b)!==!1){delete a.totalCount;a.loading=!0;if(b.callback){f=Ext.apply({},b);delete f.callback}a.on('prefetch',function(m,e,d,k){o=k;if(d){if(i=a.getTotalCount()){g.on('pageadd',l);c=Math.min(c,i-1);q=a.getPageFromRecordIndex(Math.min(c+a.getLeadingBufferZone(),i-1));for(h=p+1;h<=q;++h){a.prefetchPage(h,f)}}else {j();n()}}else {a.loading=!1;j();a.fireEvent('load',a,e,!1)}},null,{single:!0});a.prefetchPage(p,f)}},prefetch:function(b){var a=this,c=a.getPageSize(),d=a.getData(),e,f;if(c){if(a.lastPageSize&&c!=a.lastPageSize){Ext.raise('pageSize cannot be dynamically altered')}if(!d.getPageSize()){d.setPageSize(c)}}else {a.pageSize=d.setPageSize(c=b.limit)}a.lastPageSize=c;if(!b.page){b.page=a.getPageFromRecordIndex(b.start);b.start=(b.page-1)*c;b.limit=Math.ceil(b.limit/c)*c}f=a.pageRequests[b.page];if(!f||f.getOperation().pageMapGeneration!==d.pageMapGeneration){b=Ext.apply({action:'read',filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper(),internalCallback:a.onProxyPrefetch,internalScope:a},b);e=a.createOperation('read',b);e.pageMapGeneration=d.pageMapGeneration;if(a.fireEvent('beforeprefetch',a,e)!==!1){a.pageRequests[b.page]=e.execute();if(a.getProxy().isSynchronous){delete a.pageRequests[b.page]}}}return a},onPageMapClear:function(){var a=this,e=a.wasLoading,d=a.pageRequests,b=a.getData(),c;b.clearListeners();b.on('clear',a.onPageMapClear,a);a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.loading=!0;a.totalCount=0;for(c in d){if(d.hasOwnProperty(c)){d[c].getOperation().abort()}}a.fireEvent('clear',a);a.loading=e},prefetchPage:function(d,e){var a=this,b=a.getPageSize(),f=(d-1)*b,c=a.totalCount;if(c!==undefined&&a.data.getCount()===c){return}a.prefetch(Ext.applyIf({page:d,start:f,limit:b},e))},onProxyPrefetch:function(b){if(this.destroyed){return}var a=this,g=b.getResultSet(),e=b.getRecords(),d=b.wasSuccessful(),i=b.getPage(),c=b.waitForReload,k=a.totalCount,h=a.pageRequests,j,f;if(b.pageMapGeneration===a.getData().pageMapGeneration){if(g){a.totalCount=g.getTotal();if(a.totalCount!==k){a.fireEvent('totalcountchange',a.totalCount)}}if(i!==undefined){delete a.pageRequests[i]}a.loading=!1;a.fireEvent('prefetch',a,e,d,b);if(d){if(a.totalCount===0){if(c){for(j in h){f=h[j].getOperation();if(f.waitForReload===c){delete f.waitForReload}}a.getData().un('pageadd',c);a.fireEvent('load',a,[],!0);a.fireEvent('refresh',a)}}else {a.cachePage(e,b.getPage())}}Ext.callback(b.getCallback(),b.getScope()||a,[e,b,d])}},cachePage:function(b,d){var a=this,e=b.length,c;if(!Ext.isDefined(a.totalCount)){a.totalCount=b.length;a.fireEvent('totalcountchange',a.totalCount)}for(c=0;cf-1?f-1:a.prefetchEnd,d;b=Math.max(0,b);d=c.getData().getRange(e,b+1);if(a.fireEvent!==!1){c.fireEvent('guaranteedrange',d,e,b,a)}if(a.callback){a.callback.call(a.scope||c,d,e,b,a)}},guaranteeRange:function(d,e,b,c,a){a=Ext.apply({callback:b,scope:c},a);this.getRange(d,e+1,a)},prefetchRange:function(c,d){var a=this,e,f,b,g=a.getData();if(!a.rangeCached(c,d)){e=a.getPageFromRecordIndex(c);f=a.getPageFromRecordIndex(d);g.setMaxSize(a.calculatePageCacheSize(d-c+1));for(b=e;b<=f;b++){if(!a.pageCached(b)){a.prefetchPage(b)}}}},primeCache:function(a,b,g){var c=this,f=c.getLeadingBufferZone(),e=c.getTrailingBufferZone(),h=c.getPageSize(),d=c.totalCount;if(g===-1){a=Math.max(a-f,0);b=Math.min(b+e,d-1)}else {if(g===1){a=Math.max(Math.min(a-e,d-h),0);b=Math.min(b+f,d-1)}else {a=Math.min(Math.max(Math.floor(a-(f+e)/2),0),d-c.pageSize);b=Math.min(Math.max(Math.ceil(b+(f+e)/2),0),d-1)}}c.prefetchRange(a,b)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else {this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent('beforesort',a,b);a.clearAndLoad({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('sort',a,b)}},clearAndLoad:function(a){this.getData().clear();this.loadPage(1,a)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return !1}}},0,0,0,0,['store.buffered'],0,[Ext.data,'BufferedStore'],0);Ext.cmd.derive('Ext.data.NodeInterface',Ext.Base,{statics:{decorate:function(f){var a=Ext.data.schema.Schema.lookupEntity(f),e=a.prototype,c,b,d;if(!a.prototype.isObservable){a.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(e.isNode){return}c=e.idProperty;b=a.getField(c);d=b.type;a.override(this.getPrototypeBody());a.addFields([{name:'parentId',type:d,defaultValue:null,allowNull:b.allowNull},{name:'index',type:'int',defaultValue:-1,persist:!1,convert:null},{name:'depth',type:'int',defaultValue:0,persist:!1,convert:null},{name:'expanded',type:'bool',defaultValue:!1,persist:!1,convert:null},{name:'expandable',type:'bool',defaultValue:!0,persist:!1,convert:null},{name:'checked',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'leaf',type:'bool',defaultValue:!1},{name:'cls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'iconCls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'icon',type:'string',defaultValue:'',persist:!1,convert:null},{name:'root',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isLast',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isFirst',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'allowDrop',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'allowDrag',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'loaded',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'loading',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'href',type:'string',defaultValue:'',persist:!1,convert:null},{name:'hrefTarget',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtip',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtitle',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qshowDelay',type:'int',defaultValue:0,persist:!1,convert:null},{name:'children',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'visible',type:'boolean',defaultValue:!0,persist:!1},{name:'text',type:'string',persist:!1}])},getPrototypeBody:function(){var a={idchanged:!0,append:!0,remove:!0,move:!0,insert:!0,beforeappend:!0,beforeremove:!0,beforemove:!0,beforeinsert:!0,expand:!0,collapse:!0,beforeexpand:!0,beforecollapse:!0,sort:!0},b={silent:!0};return {isNode:!0,firstChild:null,lastChild:null,parentNode:null,previousSibling:null,nextSibling:null,constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.callParent(arguments);a.childNodes=[];return a},createNode:function(a){var b=this,j=b.childType,h,f,g,c,d,e,i=b.self;if(!a.isModel){if(j){i=b.schema.getEntity(j)}else {h=b.getTreeStore();f=h&&h.getProxy().getReader();g=b.getProxy();c=g?g.getReader():null;d=!f||c&&c.initialConfig.typeProperty?c:f;if(d){e=d.getTypeProperty();if(e){i=d.getChildType(b.schema,a,e)}}}a=new i(a)}if(!a.childNodes){a.firstChild=a.lastChild=a.parentNode=a.previousSibling=a.nextSibling=null;a.childNodes=[]}return a},isLeaf:function(){return this.get('leaf')===!0},setFirstChild:function(a){this.firstChild=a},setLastChild:function(a){this.lastChild=a},updateInfo:function(o,k){var a=this,i=a.data,r=i.depth,m={},n=a.childNodes,q=n.length,s=a.phantom,t=a.fields,c=a.modified||(a.modified={}),b,e,j,d,p,l=k.parentId,g,h,f;for(b in k){j=t[a.fieldOrdinals[b]];e=k[b];h=j&&j.persist;d=i[b];g=h&&b==='index'&&d!==-1&&(l&&l!==c.parentId);if(!g&&a.isEqual(d,e)){continue}i[b]=e;if(h){if(!g&&c.hasOwnProperty(b)){if(a.isEqual(c[b],e)){delete c[b];a.dirty=!1;for(p in c){if(c.hasOwnProperty(p)){a.dirty=!0;break}}}}else {a.dirty=!0;c[b]=d}}}if(o){a.commit();a.phantom=s}if(a.data.depth!==r){m={depth:a.data.depth+1};for(f=0;f0},isExpandable:function(){var a=this;if(a.get('expandable')){return !(a.isLeaf()||a.isLoaded()&&!a.phantom&&!a.hasChildNodes())}return !1},triggerUIUpdate:function(){this.callJoined('afterEdit',[])},appendChild:function(b,h,l){var a=this,j,m,c,e,f,k={isLast:!0,parentId:a.getId(),depth:(a.data.depth||0)+1},i,d=a.getTreeStore(),g=d&&d.bulkUpdate;Ext.suspendLayouts();if(Ext.isArray(b)){m=b.length;i=new Array(m);a.callTreeStore('beginFill');for(j=0;j0){if(!e){e=c.getTreeStore().getSortFn()}Ext.Array.sort(a,e);c.setFirstChild(a[0]);c.setLastChild(a[g-1]);for(b=0;b0){d.children=c=[];for(a=0;a1&&!a.getRemoteSort()&&a.getFolderSort()||j.length,e,h,c,d;if(a.needsLocalFilter()){d=a.getFilters().getFilterFn();b[0].set('visible',d(b[0]))}for(c=1;c')}else {b.push('>');if(c=a.tpl){c.applyOut(a.tplData,b)}if(c=a.html){b.push(c)}if(c=a.cn||a.children){e.generateMarkup(c,b)}h=e.closeTags;b.push(h[f]||(h[f]=''))}}}return b},generateStyles:function(c,d,f){var e=d||[],a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];a=this.decamelizeName(a);if(f&&Ext.String.hasHtmlCharacters(b)){b=Ext.String.htmlEncode(b)}e.push(a,':',b,';')}}return d||e.join('')},markup:function(a){if(typeof a==='string'){return a}var b=this.generateMarkup(a,[]);return b.join('')},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(e){var d=this.detachedDiv,b=document.createDocumentFragment(),c,a;d.innerHTML=e;a=d.childNodes;c=a.length;while(c--){b.appendChild(a[0])}return b},createDom:function(e,f){var c=this,d=c.markup(e),b=c.detachedDiv,a;b.innerHTML=d;a=b.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(!0):a},insertHtml:function(g,f,j){var o=this,l,k,n,m,i;g=g.toLowerCase();if(f.insertAdjacentHTML){if(o.ieInsertHtml){i=o.ieInsertHtml(g,f,j);if(i){return i}}l=h[g];if(l){f.insertAdjacentHTML(l[0],j);return f[l[1]]}}else {if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}k=Ext.supports.CreateContextualFragment?f.ownerDocument.createRange():undefined;m='setStart'+(this.endRe.test(g)?'After':'Before');if(e[g]){if(k){k[m](f);i=k.createContextualFragment(j)}else {i=this.createContextualFragment(j)}f.parentNode.insertBefore(i,g===a?f:f.nextSibling);return f[(g===a?'previous':'next')+'Sibling']}else {n=(g===b?'first':'last')+'Child';if(f.firstChild){if(k){try{k[m](f[n]);i=k.createContextualFragment(j)}catch(p){i=this.createContextualFragment(j)}}else {i=this.createContextualFragment(j)}if(g===b){f.insertBefore(i,f.firstChild)}else {f.appendChild(i)}}else {f.innerHTML=j}return f[n]}}},insertBefore:function(c,d,b){return this.doInsert(c,d,b,a)},insertAfter:function(b,c,a){return this.doInsert(b,c,a,d)},insertFirst:function(c,d,a){return this.doInsert(c,d,a,b)},append:function(b,d,a){return this.doInsert(b,d,a,c)},overwrite:function(b,c,e){var d=this,a;b=Ext.getDom(b);c=d.markup(c);if(d.ieOverwrite){a=d.ieOverwrite(b,c)}if(!a){b.innerHTML=c;a=b.firstChild}return e?Ext.get(a):a},doInsert:function(f,j,k,g){var i=this,h;f=f.dom||Ext.getDom(f);if('innerHTML' in f){h=i.insertHtml(g,f,i.markup(j))}else {h=i.createDom(j,null);if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}if(e[g]){f.parentNode.insertBefore(h,g===a?f:f.nextSibling)}else {if(f.firstChild&&g===b){f.insertBefore(h,f.firstChild)}else {f.appendChild(h)}}}return k?Ext.get(h):h},createTemplate:function(b){var a=this.markup(b);return new Ext.Template(a)},createHtml:function(a){return this.markup(a)}}},0,0,0,0,0,0,[Ext.dom,'Helper',Ext,'DomHelper',Ext.core,'DomHelper'],0);Ext.define('Ext.overrides.dom.Helper',function(){var a=/^(?:table|thead|tbody|tr|td)$/i,f=/td|tr|tbody|thead/i,e='',d='
    ',c=e+'',b=''+d,h=c+'',g=''+b;return {override:'Ext.dom.Helper',ieInsertHtml:function(d,b,e){var c=null;if(Ext.isIE9m&&a.test(b.tagName)){c=this.insertIntoTable(b.tagName.toLowerCase(),d,b,e)}return c},ieOverwrite:function(b,c){if(Ext.isIE9m&&a.test(b.tagName)){while(b.firstChild){b.removeChild(b.firstChild)}if(c){return this.insertHtml('afterbegin',b,c)}}},ieTable:function(g,f,e,d){var h=-1,a=this.detachedDiv,b,c;a.innerHTML=[f,e,d].join('');while(++ha.interval){a.collect()}a.timerId=Ext.interval(a.collect,a.interval)}},1,0,0,0,0,0,[Ext.dom,'GarbageCollector'],0);Ext.cmd.derive('Ext.event.gesture.Recognizer',Ext.Base,{priority:0,handledEvents:[],config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(a){this.initConfig(a);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:Ext.emptyFn,onTouchCancel:Ext.emptyFn,fail:function(){return !1},fire:function(){this.getOnRecognized().apply(this.getCallbackScope(),arguments)},reset:Ext.emptyFn},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.event.gesture,'Recognizer'],0);Ext.cmd.derive('Ext.event.gesture.SingleTouch',Ext.event.gesture.Recognizer,{inheritableStatics:{NOT_SINGLE_TOUCH:'Not Single Touch',TOUCH_MOVED:'Touch Moved',EVENT_CANCELED:'Event Canceled'},onTouchStart:function(a){if(a.touches.length>1){return this.fail(this.self.NOT_SINGLE_TOUCH)}},onTouchCancel:function(){return !1}},0,0,0,0,0,0,[Ext.event.gesture,'SingleTouch'],0);Ext.cmd.derive('Ext.event.gesture.DoubleTap',Ext.event.gesture.SingleTouch,{priority:300,inheritableStatics:{DIFFERENT_TARGET:'Different Target'},config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:['singletap','doubletap'],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(c){var a=this,b;if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}b=a.lastStartPoint=c.changedTouches[0].point;a.startPoint=a.startPoint||b;a.startTime=c.time;clearTimeout(a.singleTapTimer)},onTouchMove:function(c){var a=this,b=c.changedTouches[0].point;if(Math.abs(b.getDistanceTo(a.lastStartPoint))>=a.getMoveDistance()){a.startPoint=null;return a.fail(a.self.TOUCH_MOVED)}},onTouchEnd:function(b){var a=this,f=a.getMaxDuration(),d=b.time,g=b.target,e=a.lastTapTime,h=a.lastTarget,i=b.changedTouches[0].point,c;a.lastTapTime=d;a.lastTarget=g;if(e){c=d-e;if(c<=f&&Math.abs(i.getDistanceTo(a.startPoint))<=a.getTapDistance()){if(g!==h){return a.fail(a.self.DIFFERENT_TARGET)}a.lastTarget=null;a.lastTapTime=0;a.fire('doubletap',b,{touch:b.changedTouches[0],duration:c});a.startPoint=null;return}}if(d-a.startTime>f){a.fireSingleTap(b)}else {a.setSingleTapTimer(b)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fireSingleTap(b)},a.getMaxDuration())},fireSingleTap:function(b,a){this.fire('singletap',b,{touch:a});this.startPoint=null},reset:function(){var a=this;a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null}},0,0,0,0,0,0,[Ext.event.gesture,'DoubleTap'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)});Ext.cmd.derive('Ext.event.gesture.Drag',Ext.event.gesture.SingleTouch,{priority:100,isStarted:!1,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:['dragstart','drag','dragend','dragcancel'],config:{minDistance:8},constructor:function(){Ext.event.gesture.SingleTouch.prototype.constructor.apply(this,arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0}}},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){if(this.isStarted&&this.lastMoveEvent!==null){this.lastMoveEvent.isStopped=!1;this.onTouchEnd(this.lastMoveEvent)}return !1}this.startTime=a.time;this.startPoint=a.changedTouches[0].point},tryDragStart:function(a){var f=this.startPoint,b=a.changedTouches[0],c=b.point,e=this.getMinDistance(),d=this.info;if(Math.abs(c.getDistanceTo(f))>=e){this.isStarted=!0;this.previousPoint=this.lastPoint=c;this.resetInfo('x',a,b);this.resetInfo('y',a,b);d.time=a.time;this.fire('dragstart',a,d)}},onTouchMove:function(a){if(!this.isStarted){this.tryDragStart(a)}if(!this.isStarted){return}var b=a.changedTouches[0],c=b.point;if(this.lastPoint){this.previousPoint=this.lastPoint}this.lastPoint=c;this.lastMoveEvent=a;this.updateInfo('x',a,b);this.updateInfo('y',a,b);this.info.time=a.time;this.fire('drag',a,this.info)},onAxisDragEnd:function(b,a){var c=a.time-a.previousTime[b];if(c>0){a.flick.velocity[b]=(a[b]-a.previous[b])/c}},resetInfo:function(b,h,g){var f=this.lastPoint[b],d=this.startPoint[b],e=f-d,c=b.toUpperCase(),a=this.info;a.touch=g;a.delta[b]=e;a.absDelta[b]=Math.abs(e);a.previousTime[b]=this.startTime;a.previous[b]=d;a[b]=f;a.direction[b]=0;a['start'+c]=this.startPoint[b];a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=0;a.startTime=this.startTime},updateInfo:function(b,l,k){var e=this,d=e.lastPoint[b],g=e.previousPoint[b],f=e.startPoint[b],i=d-f,a=e.info,h=a.direction,c=b.toUpperCase(),j=a.previous[b];a.touch=k;a.delta[b]=i;a.absDelta[b]=Math.abs(i);if(d!==j&&d!==a[b]){a.previous[b]=a[b];a.previousTime[b]=a.time}a[b]=d;if(d>g){h[b]=1}else {if(dthis.getMaxDuration()){return this.fail(this.self.MAX_DURATION_EXCEEDED)}if(this.isHorizontal&&d>this.getMaxOffset()){this.isHorizontal=!1}if(this.isVertical&&c>this.getMaxOffset()){this.isVertical=!1}if(!this.isVertical||!this.isHorizontal){if(this.isHorizontal&&cj){this.isVertical=!1}if(this.isHorizontal&&i>j){this.isHorizontal=!1}if(this.isVertical&&this.isHorizontal){if(i>h){this.isHorizontal=!1}else {this.isVertical=!1}}if(this.isHorizontal){a=f<0?'left':'right';b=f}else {if(this.isVertical){a=g<0?'up':'down';b=g}}a=this.direction||(this.direction=a);if(a==='up'){b=g*-1}else {if(a==='left'){b=f*-1}}this.distance=b;if(!b){return this.fail(this.self.DISTANCE_NOT_ENOUGH)}if(!this.started){if(a==='right'&&this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='down'&&this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='left'&&o-this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='up'&&n-this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}}}}this.started=!0;this.startTime=c.time;this.fire('edgeswipestart',c,{touch:e,direction:a,distance:b,duration:k})}else {this.fire('edgeswipe',c,{touch:e,direction:a,distance:b,duration:k})}},onTouchEnd:function(a){var b;if(this.onTouchMove(a)!==!1){b=a.time-this.startTime;this.fire('edgeswipeend',a,{touch:a.changedTouches[0],direction:this.direction,distance:this.distance,duration:b})}},onTouchCancel:function(a){this.fire('edgeswipecancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){var a=this;a.started=a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null}},0,0,0,0,0,0,[Ext.event.gesture,'EdgeSwipe'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)});Ext.cmd.derive('Ext.event.gesture.LongPress',Ext.event.gesture.SingleTouch,{priority:400,inheritableStatics:{DURATION_NOT_ENOUGH:'Duration Not Enough'},config:{moveDistance:8,minDuration:1000},handledEvents:['longpress','taphold'],fireLongPress:function(a){this.fire('longpress',a,{touch:a.changedTouches[0],duration:this.getMinDuration()});this.isLongPress=!0},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}this.startPoint=a.changedTouches[0].point;this.isLongPress=!1;this.setLongPressTimer(a)},setLongPressTimer:function(b){var a=this;a.timer=Ext.defer(function(){a.fireLongPress(b)},a.getMinDuration())},onTouchMove:function(b){var a=b.changedTouches[0].point;if(Math.abs(a.getDistanceTo(this.startPoint))>=this.getMoveDistance()){return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(){if(!this.isLongPress){return this.fail(this.self.DURATION_NOT_ENOUGH)}},fail:function(){clearTimeout(this.timer);return Ext.event.gesture.SingleTouch.prototype.fail.apply(this,arguments)},reset:function(){this.isLongPress=this.startPoint=null},fire:function(b){if(b==='longpress'){var a=Array.prototype.slice.call(arguments);a[0]='taphold';this.fire.apply(this,a)}return Ext.event.gesture.SingleTouch.prototype.fire.apply(this,arguments)}},0,0,0,0,0,0,[Ext.event.gesture,'LongPress'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)});Ext.cmd.derive('Ext.event.gesture.MultiTouch',Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:!1,isStarted:!1,onTouchStart:function(a){var b=this.requiredTouchesCount,d=a.touches,c=d.length;if(c===b){this.start(a)}else {if(c>b){this.end(a)}}},onTouchEnd:function(a){this.end(a)},onTouchCancel:function(a){this.end(a,!0);return !1},start:function(){if(!this.isTracking){this.isTracking=!0;this.isStarted=!1}},end:function(b,a){if(this.isTracking){this.isTracking=!1;if(this.isStarted){this.isStarted=!1;this[a?'fireCancel':'fireEnd'](b)}}},reset:function(){this.isTracking=this.isStarted=!1}},0,0,0,0,0,0,[Ext.event.gesture,'MultiTouch'],0);Ext.cmd.derive('Ext.event.gesture.Pinch',Ext.event.gesture.MultiTouch,{priority:600,handledEvents:['pinchstart','pinch','pinchend','pinchcancel'],startDistance:0,lastTouches:null,onTouchMove:function(c){if(!this.isTracking){return}var b=c.touches,e,d,a;e=b[0].point;d=b[1].point;a=e.getDistanceTo(d);if(a===0){return}if(!this.isStarted){this.isStarted=!0;this.startDistance=a;this.fire('pinchstart',c,{touches:b,distance:a,scale:1})}else {this.fire('pinch',c,{touches:b,distance:a,scale:a/this.startDistance})}},fireEnd:function(a){this.fire('pinchend',a)},fireCancel:function(a){this.fire('pinchcancel',a)},fail:function(){return Ext.event.gesture.MultiTouch.prototype.fail.apply(this,arguments)},reset:function(){this.lastTouches=null;this.startDistance=0;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Pinch'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.pinch)});Ext.cmd.derive('Ext.event.gesture.Rotate',Ext.event.gesture.MultiTouch,{priority:700,handledEvents:['rotatestart','rotate','rotateend','rotatecancel'],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(g){if(!this.isTracking){return}var b=g.touches,c=this.lastAngle,i,h,a,e,d,f;i=b[0].point;h=b[1].point;a=i.getAngleTo(h);if(c!==null){f=Math.abs(c-a);e=a+360;d=a-360;if(Math.abs(e-c)=this.getMoveDistance()){this.fire('tapcancel',b,{touch:a});return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(a){this.fire('tap',a,{touch:a.changedTouches[0]})},onTouchCancel:function(a){this.fire('tapcancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){this.startPoint=null}},0,0,0,0,0,0,[Ext.event.gesture,'Tap'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)});Ext.cmd.derive('Ext.event.publisher.Focus',Ext.event.publisher.Dom,{type:'focus',handledEvents:['focusenter','focusleave','focusmove'],handledDomEvents:['focusin','focusout'],doDelegatedEvent:function(a,c){var d=this,b;a=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,a,!1);if(a){if(a.type==='focusout'){if(a.relatedTarget==null){d.processFocusIn(a,a.target,document.body,c)}}else {b=a.relatedTarget;d.processFocusIn(a,b==null||!b.tagName?document.body:b,a.target,c)}}},processFocusIn:function(i,d,e,l){var c=this,h,a,b=[],f,g,j,k;j=Ext.fly(d);k=Ext.fly(e);if(j&&j.isFocusSuspended()||k&&k.isFocusSuspended()){return}for(a=d,h=Ext.dom.Element.getCommonAncestor(e,d,!0);a&&a!==h;a=a.parentNode){b.push(a)}if(b.length){f=c.createSyntheticEvent('focusleave',i,d,e);c.publish('focusleave',b,f);if(f.isStopped){return}}b.length=0;for(a=e;a!==h;a=a.parentNode){b.push(a)}g=c.createSyntheticEvent('focusenter',i,e,d);if(b.length){c.publish('focusenter',b,g);if(g.isStopped){return}}b=c.getPropagatingTargets(h);if(b.length){f=c.createSyntheticEvent('focusmove',i,e,d);c.publish('focusmove',b,f);if(f.isStopped){return}}if(l){c.afterEvent(i)}Ext.GlobalEvents.fireEvent('focus',{event:g,toElement:e,fromElement:d})},createSyntheticEvent:function(d,c,e,b){var a=new Ext.event.Event(c);a.type=d;a.relatedTarget=b;a.target=e;return a}},0,0,0,0,0,0,[Ext.event.publisher,'Focus'],function(a){var b;a.instance=new a();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:['focus','blur'],doDelegatedEvent:function(c,e){var d=this;c=d.callSuper([c,!1]);if(c){clearTimeout(b);b=0;if(c.type==='blur'){var f=c.target===window?document.body:c.target;b=setTimeout(function(){b=0;d.processFocusIn(c,f,document.body,e);a.previousActiveElement=null},0);if(c.target===window||c.target===document){a.previousActiveElement=null}else {a.previousActiveElement=c.target}}else {d.processFocusIn(c,a.previousActiveElement||document.body,c.target===window?document.body:c.target,e)}}}})}});Ext.cmd.derive('Ext.fx.State',Ext.Base,{isAnimatable:{'background-color':!0,'background-image':!0,'background-position':!0,'border-bottom-color':!0,'border-bottom-width':!0,'border-color':!0,'border-left-color':!0,'border-left-width':!0,'border-right-color':!0,'border-right-width':!0,'border-spacing':!0,'border-top-color':!0,'border-top-width':!0,'border-width':!0,'bottom':!0,'color':!0,'crop':!0,'font-size':!0,'font-weight':!0,'height':!0,'left':!0,'letter-spacing':!0,'line-height':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'opacity':!0,'outline-color':!0,'outline-offset':!0,'outline-width':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'right':!0,'text-indent':!0,'text-shadow':!0,'top':!0,'vertical-align':!0,'visibility':!0,'width':!0,'word-spacing':!0,'z-index':!0,'zoom':!0,'transform':!0},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(d,a){var g=this.data,e=Ext.isArray(a),b=g.transform,c,f;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof d=='string'){switch(d){case 'translate':if(e){c=a.length;if(c==0){break}b.translateX=a[0];if(c==1){break}b.translateY=a[1];if(c==2){break}b.translateZ=a[2]}else {b.translateX=a};break;case 'rotate':if(e){c=a.length;if(c==0){break}b.rotateX=a[0];if(c==1){break}b.rotateY=a[1];if(c==2){break}b.rotateZ=a[2]}else {b.rotate=a};break;case 'scale':if(e){c=a.length;if(c==0){break}b.scaleX=a[0];if(c==1){break}b.scaleY=a[1];if(c==2){break}b.scaleZ=a[2]}else {b.scaleX=a;b.scaleY=a};break;case 'skew':if(e){c=a.length;if(c==0){break}b.skewX=a[0];if(c==1){break}b.skewY=a[1]}else {b.skewX=a};break;default:b[d]=a;}}else {for(f in d){if(d.hasOwnProperty(f)){a=d[f];this.setTransform(f,a)}}}},set:function(b,a){var d=this.data,c;if(typeof b!='string'){for(c in b){a=b[c];if(c==='transform'){this.setTransform(a)}else {d[c]=a}}}else {if(b==='transform'){this.setTransform(a)}else {d[b]=a}}return this},unset:function(b){var a=this.data;if(a.hasOwnProperty(b)){delete a[b]}return this},getData:function(){return this.data}},1,0,0,0,0,0,[Ext.fx,'State'],0);Ext.cmd.derive('Ext.fx.animation.Abstract',Ext.Evented,{isAnimation:!0,config:{name:'',element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:'linear',iteration:1,direction:'normal',delay:0,onBeforeStart:null,callback:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:!1,replacePrevious:!0},STATE_FROM:'0%',STATE_TO:'100%',DIRECTION_UP:'up',DIRECTION_DOWN:'down',DIRECTION_LEFT:'left',DIRECTION_RIGHT:'right',stateNameRegex:/^(?:[\d\.]+)%$/,constructor:function(){this.states={};Ext.Evented.prototype.constructor.apply(this,arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(b){var c=this.stateNameRegex,a;for(a in b){if(c.test(a)){this.setState(a,b[a])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent('stop',this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(c,d){var b=this.getStates(),a;a=Ext.factory(d,Ext.fx.State,b[c]);if(a){b[c]=a}return this},getState:function(a){return this.getStates()[a]},getData:function(){var a=this,b=a.getStates(),d={},e=a.getBefore(),f=a.getAfter(),k=b[a.STATE_FROM],l=b[a.STATE_TO],i=k.getData(),j=l.getData(),h,c,g;for(c in b){if(b.hasOwnProperty(c)){g=b[c];h=g.getData();d[c]=h}}return {before:e?e.getData():{},after:f?f.getData():{},states:d,from:i,to:j,duration:a.getDuration(),iteration:a.getIteration(),direction:a.getDirection(),easing:a.getEasing(),delay:a.getDelay(),onEnd:a.getOnEnd(),onBeforeEnd:a.getOnBeforeEnd(),onBeforeStart:a.getOnBeforeStart(),scope:a.getScope(),preserveEndState:a.getPreserveEndState(),replacePrevious:a.getReplacePrevious()}}},1,0,0,0,0,0,[Ext.fx.animation,'Abstract'],0);Ext.cmd.derive('Ext.fx.animation.Slide',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.SlideIn',config:{direction:'left',out:!1,offset:0,easing:'auto',containerBox:'auto',elementBox:'auto',isElementBoxFit:!0,useCssTransform:!0},reverseDirectionMap:{up:'down',down:'up',left:'right',right:'left'},applyEasing:function(a){if(a==='auto'){return 'ease-'+(this.getOut()?'in':'out')}return a},getContainerBox:function(){var a=this._containerBox;if(a==='auto'){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==='auto'){a=this.getElement().getBox()}return a},getData:function(){var o=this.getElementBox(),b=this.getContainerBox(),a=o?o:b,j=this.getFrom(),m=this.getTo(),d=this.getOut(),c=this.getOffset(),g=this.getDirection(),n=this.getUseCssTransform(),p=this.getReverse(),e=0,f=0,h,i,k,l;if(p){g=this.reverseDirectionMap[g]}switch(g){case this.DIRECTION_UP:if(d){f=b.top-a.top-a.height-c}else {f=b.bottom-a.bottom+a.height+c};break;case this.DIRECTION_DOWN:if(d){f=b.bottom-a.bottom+a.height+c}else {f=b.top-a.height-a.top-c};break;case this.DIRECTION_RIGHT:if(d){e=b.right-a.right+a.width+c}else {e=b.left-a.left-a.width-c};break;case this.DIRECTION_LEFT:if(d){e=b.left-a.left-a.width-c}else {e=b.right-a.right+a.width+c};break;}h=d?0:e;i=d?0:f;if(n){j.setTransform({translateX:h,translateY:i})}else {j.set('left',h);j.set('top',i)}k=d?e:0;l=d?f:0;if(n){m.setTransform({translateX:k,translateY:l})}else {m.set('left',k);m.set('top',l)}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.slide','animation.slideIn'],0,[Ext.fx.animation,'Slide',Ext.fx.animation,'SlideIn'],0);Ext.cmd.derive('Ext.fx.animation.SlideOut',Ext.fx.animation.Slide,{config:{out:!0}},0,0,0,0,['animation.slideOut'],0,[Ext.fx.animation,'SlideOut'],0);Ext.cmd.derive('Ext.fx.animation.Fade',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.FadeIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(c){var b=this.getTo(),a=this.getFrom();if(c){a.set('opacity',1);b.set('opacity',0)}else {a.set('opacity',0);b.set('opacity',1)}}},0,0,0,0,['animation.fade','animation.fadeIn'],0,[Ext.fx.animation,'Fade',Ext.fx.animation,'FadeIn'],0);Ext.cmd.derive('Ext.fx.animation.FadeOut',Ext.fx.animation.Fade,{config:{out:!0,before:{}}},0,0,0,0,['animation.fadeOut'],0,[Ext.fx.animation,'FadeOut'],0);Ext.cmd.derive('Ext.fx.animation.Flip',Ext.fx.animation.Abstract,{config:{easing:'ease-in',direction:'right',half:!1,out:null},getData:function(){var c=this,k=c.getFrom(),m=c.getTo(),j=c.getDirection(),b=c.getOut(),l=c.getHalf(),a=l?90:180,h=1,i=1,d=0,e=0,f=0,g=0;if(b){i=0.8}else {h=0.8}switch(j){case this.DIRECTION_UP:if(b){f=a}else {d=-a};break;case this.DIRECTION_DOWN:if(b){f=-a}else {d=a};break;case this.DIRECTION_RIGHT:if(b){g=a}else {e=-a};break;case this.DIRECTION_LEFT:if(b){g=-a}else {e=a};break;}k.setTransform({rotateX:d,rotateY:e,scale:h});m.setTransform({rotateX:f,rotateY:g,scale:i});return Ext.fx.animation.Abstract.prototype.getData.call(this)}},0,0,0,0,['animation.flip'],0,[Ext.fx.animation,'Flip'],0);Ext.cmd.derive('Ext.fx.animation.Pop',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.PopIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var b=this.getTo(),a=this.getFrom(),c=this.getOut();if(c){a.set('opacity',1);a.setTransform({scale:1});b.set('opacity',0);b.setTransform({scale:0})}else {a.set('opacity',0);a.setTransform({scale:0});b.set('opacity',1);b.setTransform({scale:1})}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.pop','animation.popIn'],0,[Ext.fx.animation,'Pop',Ext.fx.animation,'PopIn'],0);Ext.cmd.derive('Ext.fx.animation.PopOut',Ext.fx.animation.Pop,{config:{out:!0,before:{}}},0,0,0,0,['animation.popOut'],0,[Ext.fx.animation,'PopOut'],0);Ext.cmd.derive('Ext.fx.Animation',Ext.Base,{constructor:function(a){var c=Ext.fx.animation.Abstract,b;if(typeof a=='string'){b=a;a={}}else {if(a&&a.type){b=a.type}}if(b){c=Ext.ClassManager.getByAlias('animation.'+b)}return Ext.factory(a,c)}},1,0,0,0,0,0,[Ext.fx,'Animation'],0);Ext.cmd.derive('Ext.fx.runner.Css',Ext.Evented,{prefixedProperties:{'transform':!0,'transform-origin':!0,'perspective':!0,'transform-style':!0,'transition':!0,'transition-property':!0,'transition-duration':!0,'transition-timing-function':!0,'transition-delay':!0,'animation':!0,'animation-name':!0,'animation-duration':!0,'animation-iteration-count':!0,'animation-direction':!0,'animation-timing-function':!0,'animation-delay':!0},lengthProperties:{'top':!0,'right':!0,'bottom':!0,'left':!0,'width':!0,'height':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'border-bottom-width':!0,'border-left-width':!0,'border-right-width':!0,'border-spacing':!0,'border-top-width':!0,'border-width':!0,'outline-width':!0,'letter-spacing':!0,'line-height':!0,'text-indent':!0,'word-spacing':!0,'font-size':!0,'translate':!0,'translateX':!0,'translateY':!0,'translateZ':!0,'translate3d':!0},durationProperties:{'transition-duration':!0,'transition-delay':!0,'animation-duration':!0,'animation-delay':!0},angleProperties:{rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,skew:!0,skewX:!0,skewY:!0},lengthUnitRegex:/([a-z%]*)$/,DEFAULT_UNIT_LENGTH:'px',DEFAULT_UNIT_ANGLE:'deg',DEFAULT_UNIT_DURATION:'ms',formattedNameCache:{},transformMethods3d:['translateX','translateY','translateZ','rotate','rotateX','rotateY','rotateZ','skewX','skewY','scaleX','scaleY','scaleZ'],transformMethodsNo3d:['translateX','translateY','rotate','skewX','skewY','scaleX','scaleY'],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement('style');a.type='text/css';(document.head||document.getElementsByTagName('head')[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var i=this.getStyleSheet(),h=this.ruleStylesCache,k=i.cssRules,d,g,b,c,f,a,e;for(d in j){g=j[d];b=h[d];if(b===undefined){f=k.length;i.insertRule(d+'{}',f);b=h[d]=k.item(f).style}c=b.$cache;if(!c){c=b.$cache={}}for(a in g){e=this.formatValue(g[a],a);a=this.formatName(a);if(c[a]!==e){c[a]=e;if(e===null){b.removeProperty(a)}else {b.setProperty(a,e,'important')}}}}return this},applyStyles:function(f){var c,e,d,b,a,g;for(c in f){if(f.hasOwnProperty(c)){e=document.getElementById(c);if(!e){continue}d=e.style;b=f[c];for(a in b){if(b.hasOwnProperty(a)){g=this.formatValue(b[a],a);a=this.formatName(a);if(g===null){d.removeProperty(a)}else {d.setProperty(a,g,'important')}}}}}return this},formatName:function(b){var c=this.formattedNameCache,a=c[b];if(!a){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){a=this.vendorPrefix+b}else {a=b}c[b]=a}return a},formatValue:function(a,c){var j=typeof a,i=this.DEFAULT_UNIT_LENGTH,g,d,b,f,h,e,k;if(a===null){return ''}if(j=='string'){if(this.lengthProperties[c]){k=a.match(this.lengthUnitRegex)[1];if(k.length>0){}else {return a+i}}return a}else {if(j=='number'){if(a==0){return '0'}if(this.lengthProperties[c]){return a+i}if(this.angleProperties[c]){return a+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[c]){return a+this.DEFAULT_UNIT_DURATION}}else {if(c==='transform'){g=this.transformMethods;h=[];for(b=0,f=g.length;b0?e.join(', '):'none'}}}}return a}},1,0,0,0,0,0,[Ext.fx.runner,'Css'],0);Ext.cmd.derive('Ext.fx.runner.CssTransition',Ext.fx.runner.Css,{alternateClassName:'Ext.Animator',singleton:!0,listenersAttached:!1,constructor:function(){this.runningAnimationsData={};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=!0;Ext.getWin().on('transitionend','onTransitionEnd',this)},onTransitionEnd:function(c){var a=c.target,b=a.id;if(b&&this.runningAnimationsData.hasOwnProperty(b)){this.refreshRunningAnimationsData(Ext.get(a),[c.browserEvent.propertyName])}},onAnimationEnd:function(d,a,b,c,n){var l=d.getId(),j=this.runningAnimationsData[l],k={},h={},g,f,e,m,i;b.un('stop','onAnimationStop',this);if(j){g=j.nameMap}k[l]=h;if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,d,c)}b.fireEvent('animationbeforeend',b,d,c);this.fireEvent('animationbeforeend',this,b,d,c);if(n||!c&&!a.preserveEndState){f=a.toPropertyNames;for(e=0,m=f.length;e0},refreshRunningAnimationsData:function(i,m,f,g){var s=i.getId(),r=this.runningAnimationsData,e=r[s];if(!e){return}var o=e.nameMap,n=e.nameList,c=e.sessions,h,j,p,d,b,a,k,q,l=!1;f=Boolean(f);g=Boolean(g);if(!c){return this}h=c.length;if(h===0){return this}if(g){e.nameMap={};n.length=0;for(b=0;b');b.close();this.testElement=c=b.createElement('div');c.style.setProperty('position','absolute','important');b.body.appendChild(c);this.testElementComputedStyle=window.getComputedStyle(c)}return c},getCssStyleValue:function(b,a){var c=this.getTestElement(),e=this.testElementComputedStyle,d=c.style;d.setProperty(b,a);if(Ext.browser.is.Firefox){c.offsetHeight}a=e.getPropertyValue(b);d.removeProperty(b);return a},run:function(t){var a=this,H=a.lengthProperties,E={},j={},d={},i,f,m,k,F,g,e,u,v,s,r,w,x,G,c,o,y,C,h,b,l,D,n,z,q,p,A,B;if(!a.listenersAttached){a.attachListeners()}t=Ext.Array.from(t);for(w=0,G=t.length;w0){a.refreshRunningAnimationsData(i,Ext.Array.merge(g,e),!0,d.replacePrevious)}q=s.nameMap;p=s.nameList;y={};for(x=0;x0){g=Ext.Array.difference(p,g);e=Ext.Array.merge(g,e);r['transition-property']=g}E[f]=r;j[f]=Ext.apply({},k);j[f]['transition-property']=e;j[f]['transition-duration']=d.duration;j[f]['transition-timing-function']=d.easing;j[f]['transition-delay']=d.delay;c.startTime=Date.now()}v=a.$className;a.applyStyles(E);u=function(b){if(b.data===v&&b.source===window){window.removeEventListener('message',u,!1);a.applyStyles(j)}};if(window.requestAnimationFrame){window.requestAnimationFrame(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')})}else {Ext.defer(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')},1)}},onAnimationStop:function(h){var c=this.runningAnimationsData,e,f,d,b,g,a;for(e in c){if(c.hasOwnProperty(e)){f=c[e];d=f.sessions;for(b=0,g=d.length;b'){this.isParentReference=!0;a=a.substring(0,b)}return a}}},0,0,0,0,0,0,[Ext.mixin,'Container'],0);Ext.cmd.derive('Ext.mixin.Responsive',Ext.Mixin,function(a){return {mixinConfig:{id:'responsive',after:{destroy:'destroy'}},config:{responsiveConfig:{$value:undefined,merge:function(c,d,g,f){if(!c){return d}var e=d?Ext.Object.chain(d):{},b;for(b in c){if(!f||!(b in e)){e[b]={fn:null,config:c[b]}}}return e}},responsiveFormulas:{$value:0,merge:function(c,d,e,b){return this.mergeNew(c,d,e,b)}}},destroy:function(){a.unregister(this);this.callParent()},privates:{statics:{active:!1,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=!0;a.updateContext();Ext.on('resize',a.onResize,a)},deactivate:function(){a.active=!1;Ext.un('resize',a.onResize,a)},notify:function(){var b=a.all,e=a.context,d=Ext.GlobalEvents,f=a.timer,c;if(f){a.timer=null;Ext.Function.cancelAnimationFrame(f)}a.updateContext();Ext.suspendLayouts();d.fireEvent('beforeresponsiveupdate',e);for(c in b){b[c].setupResponsiveContext()}d.fireEvent('beginresponsiveupdate',e);for(c in b){b[c].updateResponsiveState()}d.fireEvent('responsiveupdate',e);Ext.resumeLayouts(!0)},onResize:function(){if(!a.timer){a.timer=Ext.Function.requestAnimationFrame(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(c,d,b){var g=d&&d[b],f=c.config,h,e;if(g){e=c.getConfigurator();h=e.configs[b];f[b]=h.merge(g,f[b],c)}},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),c=e.getViewportHeight(),b=a.context;b.width=d;b.height=c;b.tall=d','',' ({childCount} children)','','',' ({depth} deep)','','',', {type}: {[this.time(values.sum)]} msec (','avg={[this.time(values.sum / parent.count)]}',')','','
    '].join(''),{time:function(a){return Math.round(a*100)/100}})}var a=this.getData(b);a.name=this.name;a.pure.type='Pure';a.total.type='Total';a.times=[a.pure,a.total];return c.apply(a)},getData:function(b){var a=this;return {count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:setToJSON(a.count,a.childCount,b,a.pure),total:setToJSON(a.count,a.childCount,b,a.total)}},enter:function(){var c=this,d={accum:c,leave:leaveFrame,childTime:0,parent:b};++c.depth;if(c.maxDepth0){d=a==='this'?this:typeof a==='string'?this[a]:typeof a==='number'?arguments[a]:null;if(d){f=d.id}if(f!=null){console.log(b+' for '+f+': '+c+'ms')}else {console.log(b+' for unknown: '+c+'ms')}if(console.trace){console.trace()}}return h}}(b,d[b])}Ext.override(f,c)}}}}},1,0,0,0,0,0,[Ext.perf,'Monitor',Ext,'Perf'],0);Ext.cmd.derive('Ext.plugin.Abstract',Ext.Base,{alternateClassName:'Ext.AbstractPlugin',isPlugin:!0,constructor:function(a){if(a){this.pluginConfig=a;this.initConfig(a)}},clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},setCmp:function(a){this.cmp=a},getCmp:function(){return this.cmp},init:Ext.emptyFn,destroy:function(){this.cmp=this.pluginConfig=null;this.callParent()},onClassExtended:function(c,b,d){var a=b.alias;if(a&&!b.ptype){if(Ext.isArray(a)){a=a[0]}c.prototype.ptype=a.split('plugin.')[1]}},resolveListenerScope:function(b){var a=this,d=a.getCmp(),c;if(d){c=d.resolveSatelliteListenerScope(a,b)}return c||a.mixins.observable.resolveListenerScope.call(a,b)}},1,0,0,0,0,0,[Ext.plugin,'Abstract',Ext,'AbstractPlugin'],0);Ext.define('Ext.overrides.plugin.Abstract',{override:'Ext.plugin.Abstract',$configStrict:!1,$configPrefixed:!1,disabled:!1,getState:null,applyState:null,enable:function(){this.disabled=!1},disable:function(){this.disabled=!0}});Ext.cmd.derive('Ext.util.ItemCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.ItemCollection',getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}},0,0,0,0,0,0,[Ext.util,'ItemCollection',Ext,'ItemCollection'],0);Ext.cmd.derive('Ext.util.TaskManager',Ext.util.TaskRunner,{alternateClassName:['Ext.TaskManager'],singleton:!0},0,0,0,0,0,0,[Ext.util,'TaskManager',Ext,'TaskManager'],0);Ext.cmd.derive('Ext.util.TextMetrics',Ext.Base,{statics:{shared:null,measure:function(d,e,c){var b=this,a=b.shared;if(!a){a=b.shared=new b(d,c)}a.bind(d);a.setFixedWidth(c||'auto');return a.getSize(e)},destroy:function(){var a=this;Ext.destroy(a.shared);a.shared=null}},constructor:function(c,b){var d=this,a=Ext.getBody().createChild({role:'presentation',cls:'x-textmetrics'});a.setVisibilityMode(1);d.measure=a;if(c){d.bind(c)}a.position('absolute');a.setLocalXY(-1000,-1000);a.hide();if(b){a.setWidth(b)}},getSize:function(c){var a=this.measure,b;a.setHtml(c);b=a.getSize();a.setHtml('');return b},bind:function(b){var a=this;a.el=Ext.get(b);a.measure.setStyle(a.el.getStyle(['font-size','font-style','font-weight','font-family','line-height','text-transform','letter-spacing','word-break']))},setFixedWidth:function(a){this.measure.setWidth(a)},getWidth:function(a){this.measure.dom.style.width='auto';return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height},destroy:function(){var a=this;a.el=a.measure=Ext.destroy(a.measure);a.callParent()}},1,0,0,0,0,0,[Ext.util,'TextMetrics'],function(){Ext.Element.override({getTextWidth:function(a,c,b){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(a,this.dom.innerHTML,!0)).width,c||0,b||1000000)}})});Ext.define(null,{override:'Ext.event.publisher.Focus',compatibility:Ext.isIE10m,doDelegatedEvent:function(a,d){var c=document.body,b=Ext.synchronouslyFocusing;if(b&&(a.type==='focusout'&&a.srcElement===b&&a.toElement===c||a.type==='focusin'&&a.srcElement===c&&a.fromElement===b&&a.toElement===null)){return}return this.callParent([a,d])}});Ext.define(null,{override:'Ext.scroll.DomScroller',compatibility:Ext.isIE8,privates:{doScrollTo:function(a,b,j){var c=this,f=c.getElement(),e,d,i,g,h;if(f&&!f.destroyed){d=this.getElement().dom;g=a===Infinity;h=b===Infinity;if(g||h){e=c.getMaxPosition();if(g){a=e.x}if(h){b=e.y}}a=c.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}f.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(a!=null&&b!=null){c.deferDomScroll=!0}if(b!=null){d.scrollTop=b}if(a!=null){d.scrollLeft=a}if(c.deferDomScroll){c.deferDomScroll=!1;+d.scrollLeft;d.scrollLeft=a}}c.positionDirty=!0}},onDomScroll:function(){var a=this;if(a.deferDomScroll){return}a.callParent()}}});Ext.cmd.derive('Ext.ElementLoader',Ext.Base,{statics:{Renderer:{Html:function(c,b,a){c.getTarget().setHtml(b.responseText,a.scripts===!0,a.rendererScope);return !0}}},url:null,params:null,baseParams:null,autoLoad:!1,target:null,loadMask:!1,ajaxOptions:null,scripts:!1,isLoader:!0,constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.setTarget(a.target);if(a.autoLoad){b=a.autoLoad;if(b===!0){b=null}a.load(b)}},setTarget:function(a){var b=this;a=Ext.get(a);if(b.target&&b.target!==a){b.abort()}b.target=a},getTarget:function(){return this.target||null},abort:function(){var a=this.active;if(a!==undefined){Ext.Ajax.abort(a.request);if(a.mask){this.removeMask()}delete this.active}},removeMask:function(){this.target.unmask()},addMask:function(a){this.target.mask(a===!0?null:a)},load:function(b){b=Ext.apply({},b);var a=this,d=Ext.isDefined(b.loadMask)?b.loadMask:a.loadMask,c=Ext.apply({},b.params),e=Ext.apply({},b.ajaxOptions),f=b.callback||a.callback,g=b.scope||a.scope||a;Ext.applyIf(e,a.ajaxOptions);Ext.applyIf(b,e);Ext.applyIf(c,a.params);Ext.apply(c,a.baseParams);Ext.applyIf(b,{url:a.url});Ext.apply(b,{scope:a,params:c,callback:a.onComplete});if(a.fireEvent('beforeload',a,b)===!1){return}if(d){a.addMask(d)}a.active={options:b,mask:d,scope:g,callback:f,success:b.success||a.success,failure:b.failure||a.failure,renderer:b.renderer||a.renderer,scripts:Ext.isDefined(b.scripts)?b.scripts:a.scripts};a.active.request=Ext.Ajax.request(b);a.setOptions(a.active,b)},setOptions:function(b,a){b.rendererScope=a.rendererScope||this.rendererScope||this},onComplete:function(d,e,c){var a=this,b=a.active,g,f;if(b){f=b.scope;g=b.rendererScope;if(e){e=a.getRenderer(b.renderer).call(g,a,c,b)!==!1}if(e){Ext.callback(b.success,f,[a,c,d]);a.fireEvent('load',a,c,d)}else {Ext.callback(b.failure,f,[a,c,d]);a.fireEvent('exception',a,c,d)}Ext.callback(b.callback,f,[a,e,c,d]);if(b.mask){a.removeMask()}}delete a.active},getRenderer:function(a){if(Ext.isFunction(a)){return a}return this.statics().Renderer.Html},startAutoRefresh:function(b,c){var a=this;a.stopAutoRefresh();a.autoRefresh=Ext.interval(function(){a.load(c)},b)},stopAutoRefresh:function(){clearInterval(this.autoRefresh);delete this.autoRefresh},isAutoRefreshing:function(){return Ext.isDefined(this.autoRefresh)},destroy:function(){var a=this;a.stopAutoRefresh();delete a.target;a.abort();a.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext,'ElementLoader'],0);Ext.cmd.derive('Ext.ComponentLoader',Ext.ElementLoader,{statics:{Renderer:{Data:function(c,b,d){var a=!0;try{c.getTarget().update(Ext.decode(b.responseText))}catch(e){a=!1}return a},Component:function(f,d,e){var b=!0,a=f.getTarget(),c=[];try{c=Ext.decode(d.responseText)}catch(g){b=!1}if(b){a.suspendLayouts();if(e.removeAll){a.removeAll()}a.add(c);a.resumeLayouts(!0)}return b}}},target:null,loadOnRender:!1,loadMask:!1,renderer:'html',setTarget:function(b){var a=this;if(Ext.isString(b)){b=Ext.getCmp(b)}if(a.target&&a.target!==b){a.abort()}a.target=b;if(b&&a.loadOnRender){if(b.rendered){a.doLoadOnRender()}else {a.mon(b,'render',a.doLoadOnRender,a)}}},doLoadOnRender:function(){var a=this.loadOnRender;this.load(Ext.isObject(a)?a:null)},removeMask:function(){this.target.setLoading(!1)},addMask:function(a){this.target.setLoading(a)},setOptions:function(b,a){b.removeAll=Ext.isDefined(a.removeAll)?a.removeAll:this.removeAll;b.rendererScope=a.rendererScope||this.rendererScope||this.target},getRenderer:function(a){if(Ext.isFunction(a)){return a}var b=this.statics().Renderer;switch(a){case 'component':return b.Component;case 'data':return b.Data;default:return Ext.ElementLoader.Renderer.Html;}}},0,0,0,0,0,0,[Ext,'ComponentLoader'],0);Ext.cmd.derive('Ext.layout.SizeModel',Ext.Base,{constructor:function(e){var a=this,b=a.self,d=b.sizeModelsArray,c;Ext.apply(a,e);a[c=a.name]=!0;a.fixed=!(a.auto=a.natural||a.shrinkWrap);d[a.ordinal=d.length]=b[c]=b.sizeModels[c]=a},statics:{sizeModelsArray:[],sizeModels:{}},calculated:!1,configured:!1,constrainedMax:!1,constrainedMin:!1,natural:!1,shrinkWrap:!1,calculatedFromConfigured:!1,calculatedFromNatural:!1,calculatedFromShrinkWrap:!1,names:null},1,0,0,0,0,0,[Ext.layout,'SizeModel'],function(){var a=this,d=a.sizeModelsArray,b,c,f,g,e;new a({name:'calculated'});new a({name:'configured',names:{width:'width',height:'height'}});new a({name:'natural'});new a({name:'shrinkWrap'});new a({name:'calculatedFromConfigured',configured:!0,calculatedFrom:!0,names:{width:'width',height:'height'}});new a({name:'calculatedFromNatural',natural:!0,calculatedFrom:!0});new a({name:'calculatedFromShrinkWrap',shrinkWrap:!0,calculatedFrom:!0});new a({name:'constrainedMax',configured:!0,constrained:!0,names:{width:'maxWidth',height:'maxHeight'}});new a({name:'constrainedMin',configured:!0,constrained:!0,names:{width:'minWidth',height:'minHeight'}});new a({name:'constrainedDock',configured:!0,constrained:!0,constrainedByMin:!0,names:{width:'dockConstrainedWidth',height:'dockConstrainedHeight'}});for(b=0,f=d.length;b-1&&e','
    role="presentation"','class="{innerCtCls}">','{%this.renderBody(out,values)%}','
    ',''],beginLayout:function(a){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(a)},beforeLayoutCycle:function(d){var a=this.owner,c=a.inheritedState,b=a.inheritedStateInner;if(!c||c.invalid){c=a.getInherited();b=a.inheritedStateInner}if(d.widthModel.shrinkWrap){b.inShrinkWrapTable=!0}else {delete b.inShrinkWrapTable}},beginLayoutCycle:function(e){var a=this,g=a.outerCt,l=a.lastOuterCtWidth||'',k=a.lastOuterCtHeight||'',j=a.lastOuterCtTableLayout||'',i=e.state,f,d,c,b,h;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);d=c=b='';if(!e.widthModel.shrinkWrap){d='100%';h=a.owner.inheritedStateInner;f=a.getOverflowXStyle(e);b=h.inShrinkWrapTable||f==='auto'||f==='scroll'?'':'fixed'}if(!e.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){c='100%'}if(d!==l||a.hasOuterCtPxWidth){g.setStyle('width',d);a.lastOuterCtWidth=d;a.hasOuterCtPxWidth=!1}if(b!==j){g.setStyle('table-layout',b);a.lastOuterCtTableLayout=b}if(c!==k||a.hasOuterCtPxHeight){g.setStyle('height',c);a.lastOuterCtHeight=c;a.hasOuterCtPxHeight=!1}if(a.hasInnerCtPxHeight){a.innerCt.setStyle('height','');a.hasInnerCtPxHeight=!1}i.overflowAdjust=i.overflowAdjust||a.lastOverflowAdjust},calculate:function(b){var a=this,d=b.state,c=a.getContainerSize(b,!0),e=d.calculatedItems||(d.calculatedItems=a.calculateItems?a.calculateItems(b,c):!0);a.setCtSizeIfNeeded(b,c);if(e&&b.hasDomProp('containerChildrenSizeDone')){a.calculateContentSize(b);if(c.gotAll){if(a.manageOverflow&&!b.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(b,c)}return}}a.done=!1},calculateContentSize:function(a){var b=this,f=(a.widthModel.shrinkWrap?1:0)|(a.heightModel.shrinkWrap?2:0),d=f&1||undefined,c=f&2||undefined,e=0,g=a.props;if(d){if(isNaN(g.contentWidth)){++e}else {d=undefined}}if(c){if(isNaN(g.contentHeight)){++e}else {c=undefined}}if(e){if(d&&!a.setContentWidth(b.measureContentWidth(a))){b.done=!1}if(c&&!a.setContentHeight(b.measureContentHeight(a))){b.done=!1}}},calculateOverflow:function(d){var c=this,g,f,e,a,h,i,b;h=c.getOverflowXStyle(d)==='auto';i=c.getOverflowYStyle(d)==='auto';if(h||i){e=Ext.getScrollbarSize();b=d.overflowContext.el.dom;a=0;if(b.scrollWidth>b.clientWidth){a|=1}if(b.scrollHeight>b.clientHeight){a|=2}g=i&&a&2?e.width:0;f=h&&a&1?e.height:0;if(g!==c.lastOverflowAdjust.width||f!==c.lastOverflowAdjust.height){c.done=!1;d.invalidate({state:{overflowAdjust:{width:g,height:f},overflowState:a,secondPass:!0}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(b,a){var c=a.$layout,d=Ext.XTemplate,e=c.beforeBodyTpl,f=c.afterBodyTpl;if(e){d.getTpl(c,'beforeBodyTpl').applyOut(a,b)}this.renderItems(b,a);this.renderContent(b,a);if(f){d.getTpl(c,'afterBodyTpl').applyOut(a,b)}},doRenderPadding:function(d,b){var e=b.$layout,a=b.$layout.owner,c=a[a.contentPaddingProperty];if(e.managePadding&&c){d.push('padding:',a.unitizeBox(c))}},finishedLayout:function(b){var a=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){a.repaint()}if(Ext.isOpera){a.setStyle('position','relative');a.dom.scrollWidth;a.setStyle('position','')}},getContainerSize:function(c,d){var b=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),a=c.state.overflowAdjust;if(a){b.width-=a.width;b.height-=a.height}return b},getRenderData:function(){var b=this,a=Ext.layout.container.Container.prototype.getRenderData.call(this);a.innerCtCls=b.innerCtCls;a.outerCtCls=b.outerCtCls;return a},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(a){return a.overflowXStyle||(a.overflowXStyle=this.owner.scrollFlags.overflowX||a.overflowContext.getStyle('overflow-x'))},getOverflowYStyle:function(a){return a.overflowYStyle||(a.overflowYStyle=this.owner.scrollFlags.overflowY||a.overflowContext.getStyle('overflow-y'))},initContextItems:function(a){var b=this,d=a.target,c=b.owner.getOverflowEl();a.outerCtContext=a.getEl('outerCt',b);a.innerCtContext=a.getEl('innerCt',b);a.overflowContext=c===a.el?a:a.getEl(c);if(d[d.contentPaddingProperty]!==undefined){a.paddingContext=a.innerCtContext}},initLayout:function(){var a=this,b=Ext.getScrollbarSize().width,c=a.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&a.manageOverflow&&!a.hasOwnProperty('lastOverflowAdjust')){if(c.scrollable||a.reserveScrollbar){a.lastOverflowAdjust={width:b,height:0}}}},measureContentHeight:function(b){var a=this.outerCt.getHeight(),c=b.target;if(this.managePadding&&c[c.contentPaddingProperty]===undefined){a+=b.targetContext.getPaddingInfo().height}return a},measureContentWidth:function(f){var a,b,e,c,d;if(this.chromeCellMeasureBug){a=this.innerCt.dom;b=a.style;e=b.display;if(e==='table-cell'){b.display='';a.offsetWidth;b.display=e}}if(Ext.isSafari){a=this.outerCt.dom;b=a.style;b.display='table-cell';a.offsetWidth;a.style.display=''}c=this.outerCt.getWidth();d=f.target;if(this.managePadding&&d[d.contentPaddingProperty]===undefined){c+=f.targetContext.getPaddingInfo().width}return c},setCtSizeIfNeeded:function(a,h){var c=this,b=h.height,k=a.paddingContext.getPaddingInfo(),g=c.getTarget(),f=c.getOverflowXStyle(a),j=f==='auto'||f==='scroll',i=Ext.getScrollbarSize(),e,d;if(b&&!a.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){e=!0}if(Ext.isIE8){d=!0}if((e||d)&&j&&g.dom.scrollWidth>g.dom.clientWidth){b=Math.max(b-i.height,0)}if(e){a.outerCtContext.setProp('height',b+k.height);c.hasOuterCtPxHeight=!0}if(d){a.innerCtContext.setProp('height',b);c.hasInnerCtPxHeight=!0}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt},getScrollerEl:function(){return this.outerCt}},0,0,0,0,['layout.auto','layout.autocontainer'],0,[Ext.layout.container,'Auto'],function(){this.prototype.chromeCellMeasureBug=Ext.isChrome&&Ext.chromeVersion>=26});Ext.cmd.derive('Ext.ZIndexManager',Ext.Base,{alternateClassName:'Ext.WindowGroup',statics:{zBase:9000,activeCounter:0},constructor:function(b){var a=this;a.id=Ext.id(null,'zindex-mgr-');a.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(c,d){var a=(c.alwaysOnTop||0)-(d.alwaysOnTop||0);if(!a){a=c.getActiveCounter()-d.getActiveCounter()}return a}},filters:{filterFn:function(a){return a.isVisible()}}});a.zIndexStack.addObserver(a);a.front=null;a.globalListeners=Ext.GlobalEvents.on({beforehide:a.onComponentShowHide,show:a.onComponentShowHide,scope:a,destroyable:!0});if(b){if(b.isContainer){b.on('resize',a.onContainerResize,a);a.zseed=Ext.Number.from(a.rendered?b.getEl().getStyle('zIndex'):undefined,a.getNextZSeed());a.targetEl=b.getTargetEl();a.container=b}else {Ext.on('resize',a.onContainerResize,a);a.zseed=a.getNextZSeed();a.targetEl=Ext.get(b)}}else {a.zseed=a.getNextZSeed();Ext.onInternalReady(function(){Ext.on('resize',a.onContainerResize,a);a.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return Ext.ZIndexManager.zBase+=10000},setBase:function(a){this.zseed=a;return this.onCollectionSort()},onCollectionSort:function(){var d=this,b=d.front,k=b&&b.containsFocus,g=d.zseed,i=d.zIndexStack.getRange(),j=i.length,e,c,f,a,h=!1;for(e=0;e0;){a=c[b];if(a.isComponent&&e.call(d||a,a)===!1){return}}},destroy:function(){var a=this,c=a.zIndexStack.getRange(),d=c.length,b;for(b=0;b1){b.refresh()}if(a.hasListeners.afterlayout){a.fireEvent('afterlayout',a,c)}},beforeDestroy:function(){var a=this,d=a.items,c=a.floatingItems,b;if(d){while(b=d.first()){a.doRemove(b,!0)}}if(c){while(b=c.first()){a.doRemove(b,!0)}}Ext.destroy(a.layout);Ext.Component.prototype.beforeDestroy.call(this)},destroy:function(){var a=this;Ext.Component.prototype.destroy.call(this);if(a.items){a.items.destroy()}if(a.floatingItems){a.floatingItems.destroy()}a.refs=a.items=a.floatingItems=a.layout=null},beforeRender:function(){var a=this,c=a.getLayout(),b;a.preventChildDisable=!0;Ext.Component.prototype.beforeRender.call(this);a.preventChildDisable=!1;if(!c.initialized){c.initLayout()}b=c.targetCls;if(b){a.applyTargetCls(b)}},cascade:function(f,e,d){var a=this,h=a.items?a.items.items:[],j=h.length,g=0,b,c=d?d.concat(a):[a],i=c.length-1;if(f.apply(e||a,c)!==!1){for(;g','
    ','
    {msg}
    ','
    ',''],maskOnDisable:!1,skipLayout:!0,constructor:function(c){var a=this,b;if(arguments.length===2){b=a.target=c;c=arguments[1]}else {b=c.target}Ext.Component.prototype.constructor.call(this,c);if(b.isComponent){a.ownerCt=b;a.hidden=!0;a.renderTo=a.getMaskTarget();a.external=a.renderTo===Ext.getBody();a.bindComponent(b)}else {b=Ext.get(b);a.isElement=!0;a.renderTo=a.target}a.render(a.renderTo);if(a.store){a.bindStore(a.store,!0)}},initRenderData:function(){var a=Ext.Component.prototype.initRenderData.apply(this,arguments);a.msg=this.msg||'';return a},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(b){var a=this,c={scope:this,resize:a.sizeMask};if(a.external){c.added=a.onComponentAdded;c.removed=a.onComponentRemoved;if(b.floating){c.move=a.sizeMask;a.activeOwner=b}else {if(b.ownerCt){a.onComponentAdded(b.ownerCt)}}}a.mon(b,c);if(a.external){a.mon(Ext.GlobalEvents,{show:a.onContainerShow,hide:a.onContainerHide,expand:a.onContainerExpand,collapse:a.onContainerCollapse,scope:a})}},onComponentAdded:function(b){var a=this;delete a.activeOwner;a.floatParent=b;if(!b.floating){b=b.up('[floating]')}if(b){a.activeOwner=b;a.mon(b,'move',a.sizeMask,a);a.mon(b,'tofront',a.onOwnerToFront,a)}else {a.preventBringToFront=!0}b=a.floatParent.ownerCt;if(a.rendered&&a.isVisible()&&b){a.floatOwner=b;a.mon(b,'afterlayout',a.sizeMask,a,{single:!0})}},onComponentRemoved:function(d){var a=this,b=a.activeOwner,c=a.floatOwner;if(b){a.mun(b,'move',a.sizeMask,a);a.mun(b,'tofront',a.onOwnerToFront,a)}if(c){a.mun(c,'afterlayout',a.sizeMask,a)}delete a.activeOwner;delete a.floatOwner},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){a.el.on('mousedown',a.onMouseDown,a)}this.el.skipGarbageCollection=!0},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(b,a){this.el.setStyle('zIndex',a+1)},onContainerShow:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var a=this;if(a.rendered&&a.isVisible()){a.hide();a.showNext=!0}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var a=this,b=a.activeOwner||a.target,c=a.external?a.getOwner().el:a.getMaskTarget();if(a.rendered&&a.isVisible()){if(a.external){if(!a.isElement&&b.floating){a.onOwnerToFront(b,b.el.getZIndex())}a.el.setSize(c.getSize()).alignTo(c,'tl-tl')}a.msgWrapEl.center(a.el)}},bindStore:function(a,c){var b=this;Ext.destroy(b.proxyListeners);b.mixins.storeholder.bindStore.apply(b,arguments);a=b.store;if(a){while(a.getSource){a=a.getSource()}if(!a.loadsSynchronously()){b.proxyListeners=a.getProxy().on({exception:b.onLoad,scope:b,destroyable:!0})}if(a.isLoading()){b.onBeforeLoad()}}},getStoreListeners:function(d){var c=this.onLoad,b=this.onBeforeLoad,a={cachemiss:b,cachefilled:{fn:c,buffer:100}};if(!d.loadsSynchronously()){a.beforeload=b;a.load=c}return a},onDisable:function(){Ext.Component.prototype.onDisable.apply(this,arguments);if(this.loading){this.onLoad()}},getOwner:function(){return this.ownerCt||this.ownerCmp||this.floatParent},getMaskTarget:function(){var a=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?a.getTargetEl():a.getMaskTarget()||Ext.getBody()},onBeforeLoad:function(){var b=this,a=b.getOwner(),c;if(!b.disabled){b.loading=!0;if(a.componentLayoutCounter){b.maybeShow()}else {c=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=c;c.apply(a,arguments);b.maybeShow()}}}},maybeShow:function(){var a=this,b=a.getOwner();if(!b.isVisible(!0)){a.showNext=!0}else {if(a.loading&&b.rendered){a.show()}}},hide:function(){var b=this,a=b.ownerCt;if(b.isElement){a.unmask();b.fireEvent('hide',this);return}if(a){a.enableTabbing();a.setMasked(!1)}delete b.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;if(a.isElement){a.ownerCt.mask(this.useMsg?this.msg:'',this.msgCls);a.fireEvent('show',this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var a=this,b=a.ownerCt;a.loading=!0;Ext.Component.prototype.afterShow.apply(this,arguments);b.disableTabbing();b.setMasked(!0);a.el.restoreTabbableState();a.syncMaskState()},syncMaskState:function(){var a=this,c=a.ownerCt,b=a.el;if(a.isVisible()){if(a.hasOwnProperty('msgWrapCls')){b.dom.className=a.msgWrapCls}if(a.useMsg){a.msgTextEl.setHtml(a.msg)}else {a.msgEl.hide()}if(a.shim||Ext.useShims){b.enableShim(null,!0)}else {b.disableShim()}if(c.el.contains(Ext.Element.getActiveElement())){a.focus()}a.sizeMask()}},onLoad:function(){this.loading=!1;this.hide()},beforeDestroy:function(){this.ownerCt=null;this.bindStore(null);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.onDestroy.call(this)}},1,['loadmask'],['component','box','loadmask'],{'component':!0,'box':!0,'loadmask':!0},['widget.loadmask'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext,'LoadMask'],0);Ext.cmd.derive('Ext.layout.component.Component',Ext.layout.Layout,{type:'component',isComponentLayout:!0,nullBox:{},usesContentHeight:!0,usesContentWidth:!0,usesHeight:!0,usesWidth:!0,widthCache:{},heightCache:{},beginLayoutCycle:function(a,j){var c=this,f=c.owner,p=a.ownerCtContext,g=a.heightModel,h=a.widthModel,o=f.el.dom===document.body,e=f.lastBox||c.nullBox,d=f.el.lastBox||c.nullBox,m=!o,k=a.isTopLevel,i,b,n,l;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,a,j);if(j){if(c.usesContentWidth){++a.consumersContentWidth}if(c.usesContentHeight){++a.consumersContentHeight}if(c.usesWidth){++a.consumersWidth}if(c.usesHeight){++a.consumersHeight}if(p&&!p.hasRawContent){i=f.ownerLayout;if(i){if(i.usesWidth){++a.consumersWidth}if(i.usesHeight){++a.consumersHeight}}}}if(h.configured){n=f[h.names.width];if(k&&h.calculatedFrom){n=e.width}if(!o){m=c.setWidthInDom||(j?n!==d.width:h.constrained)}a.setWidth(n,m)}else {if(k){if(h.calculated){b=e.width;a.setWidth(b,b!==d.width)}b=e.x;a.setProp('x',b,b!==d.x)}}if(g.configured){l=f[g.names.height];if(k&&g.calculatedFrom){l=e.height}if(!o){m=j?l!==d.height:g.constrained}a.setHeight(l,m)}else {if(k){if(g.calculated){b=e.height;a.setHeight(b,b!==d.height)}b=e.y;a.setProp('y',b,b!==d.y)}}},finishedLayout:function(c){var h=this,e=c.children,g=h.owner,i,d,f,a,b;if(e){i=e.length;for(d=0;d','
    {text}
    ','
    ',''],componentLayout:'progressbar',ariaRole:'progressbar',initRenderData:function(){var a=this,b=a.value||0;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{internalText:!a.hasOwnProperty('textEl'),text:a.text||' ',percentage:b*100})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.textEl){a.textEl=Ext.get(a.textEl);a.updateText(a.text)}else {a.textEl=a.el.select('.'+a.baseCls+'-text')}},updateValue:function(a){this.updateProgress(a,Math.round(a*100)+'%')},updateProgress:function(b,c,d){b=b||0;var a=this,f=a.value,e=a.getTextTpl();a.value=b||(b=0);if(c!=null){a.updateText(c)}else {if(e){a.updateText(e.apply({value:b,percent:b*100}))}}if(a.rendered&&!a.destroyed){if(d===!0||d!==!1&&a.animate){a.bar.stopAnimation();a.bar.animate(Ext.apply({from:{width:f*100+'%'},to:{width:b*100+'%'}},a.animate))}else {a.bar.setStyle('width',b*100+'%')}}a.fireEvent('update',a,b,c);return a},updateText:function(b){var a=this;a.text=b;if(a.rendered){a.textEl.setHtml(a.text)}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(a){var b=this,c;if(!b.waitTimer){c=b;a=a||{};b.updateText(a.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var c=a.increment||10;d-=1;b.updateProgress(((d+c)%c+1)*(100/c)*0.01,null,a.animate)},interval:a.interval||1000,duration:a.duration,onStop:function(){if(a.fn){a.fn.apply(a.scope||b)}b.reset()},scope:c})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(b){var a=this;a.updateProgress(0);a.clearTimer();if(b===!0){a.hide()}return a},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},onDestroy:function(){var a=this,b=a.bar;a.clearTimer();if(a.rendered){if(a.textEl.isComposite){a.textEl.clear()}Ext.destroyMembers(a,'textEl','progressBar');if(b&&a.animate){b.stopAnimation()}}Ext.Component.prototype.onDestroy.call(this)}},0,['progressbar'],['component','box','progressbar'],{'component':!0,'box':!0,'progressbar':!0},['widget.progressbar'],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,'ProgressBar'],0);Ext.cmd.derive('Ext.dom.ButtonElement',Ext.dom.Element,{setSize:function(b,a,e){var d=this,c=d.component;Ext.dom.Element.prototype.setSize.call(this,b,a,e);c.btnWrap.setStyle('table-layout',!b||b==='auto'?'':'fixed');c.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return d},setStyle:function(a,c){var f=this,e=f.component,d,b;Ext.dom.Element.prototype.setStyle.call(this,a,c);if(a){if(a==='width'||typeof a!=='string'&&'width' in a){d=c||a.width;e.btnWrap.setStyle('table-layout',!d||d==='auto'?'':'fixed')}if(a==='height'||typeof a!=='string'&&'height' in a){b=c||a.height;e.btnEl.setStyle('height',!b||b==='auto'?'':'auto')}}return f},setHeight:function(a,b){Ext.dom.Element.prototype.setHeight.call(this,a,b);this.component.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return this},setWidth:function(a,b){Ext.dom.Element.prototype.setWidth.call(this,a,b);this.component.btnWrap.setStyle('table-layout',!a||a==='auto'?'':'fixed');return this}},0,0,0,0,0,0,[Ext.dom,'ButtonElement'],0);Ext.cmd.derive('Ext.button.Manager',Ext.Base,{singleton:!0,alternateClassName:'Ext.ButtonToggleManager',groups:{},pressedButton:null,init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a});a.initialized=!0}},onButtonMousedown:function(b,c){var a=this.pressedButton;if(a){a.onMouseUp(c)}this.pressedButton=b},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(c,e){if(e){var b=this.groups[c.toggleGroup],d=b.length,a;for(a=0;a{[values.$comp.renderIcon(values)]}{text}{[values.$comp.renderIcon(values)]}{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]} {closeText} tabindex="{tabIndex}" {$}="{.}">{arrowElText}
    ',iconTpl:'background-image:url({iconUrl});
    font-family:{glyphFontFamily};">&#{glyph};',scale:'small',allowedScales:['small','medium','large'],arrowAlign:'right',arrowCls:'arrow',maskOnDisable:!1,shrinkWrap:3,frame:!0,autoEl:{tag:'a',hidefocus:'on',unselectable:'on'},hasFrameTable:function(){return this.href&&this.frameTable},frameTableListener:function(){if(!this.disabled){this.doNavigate()}},doNavigate:function(){if(this.hrefTarget==='_blank'){window.open(this.getHref(),this.hrefTarget)}else {location.href=this.getHref()}},_triggerRegion:{},initComponent:function(){var a=this;a.addCls('x-unselectable');Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=!0;a.setMenu(a.menu,!1,!0)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty('preventDefault');if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=!1}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==''){a.enableToggle=!0}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var a=this,b=Ext.Component.prototype.getElConfig.call(this),d=a.getHref(),c=a.hrefTarget;if(b.tag==='a'){if(!a.disabled){b.tabIndex=a.tabIndex}if(d){if(!a.disabled){b.href=d;if(c){b.target=c}}}}if(!a.ariaStaticRoles[a.ariaRole]){if(a.menu&&!a.isSplitButton){b['aria-haspopup']=!0}if(a.enableToggle){b['aria-pressed']=!!a.pressed}}return b},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);if(this.pressed){this.addCls(this._pressedCls)}},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),this.getTemplateArgs())},getMenu:function(){return this.menu||null},setMenu:function(b,g,h){var a=this,e=a.menu,d=a.isSplitButton?a.arrowEl&&a.arrowEl.dom:a.ariaEl.dom,f,c;if(e&&!h){if(g!==!1&&a.destroyMenu){e.destroy()}e.ownerCmp=null}if(b){f=b.isMenu;b=Ext.menu.Manager.get(b,{ownerCmp:a});b.setOwnerCmp(a,f);b.menuClickBuffer=250;a.mon(b,{scope:a,show:a.onMenuShow,hide:a.onMenuHide});if(!e&&a.getArrowVisible()){a.split=!0;if(a.rendered){a._addSplitCls();a.updateLayout()}}a.menu=b;if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.isSplitButton?a.ariaArrowElAttributes||(a.ariaArrowElAttributes={}):a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {if(a.rendered){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns');a._removeSplitCls();a.updateLayout()}else {c=a.isSplitButton?a.ariaArrowElAttributes:a.ariaRenderAttributes;if(c){delete c['aria-haspopup'];delete c['aria-owns']}}a.split=!1;a.menu=null}},onRender:function(){var a=this,d,c,b;Ext.Component.prototype.onRender.apply(this,arguments);c=a.el;if(a.tooltip){a.setTooltip(a.tooltip,!0)}if(a.handleMouseEvents){b={scope:a,mouseover:a.onMouseOver,mouseout:a.onMouseOut,mousedown:a.onMouseDown};if(a.split){b.mousemove=a.onMouseMove}}else {b={scope:a}}if(Ext.supports.Touch){b.touchstart=a.onTouchStart}if(a.repeat){a.mon(new Ext.util.ClickRepeater(c,Ext.isObject(a.repeat)?a.repeat:{}),'click',a.onRepeatClick,a)}else {if(b[a.clickEvent]){d=!0}else {b[a.clickEvent]=a.onClick}}a.mon(c,b);if(a.hasFrameTable()){a.mon(a.frameTable,'click',a.frameTableListener,a)}if(d){a.mon(c,a.clickEvent,a.onClick,a)}Ext.button.Manager.register(a)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var a=this,i=a._btnCls,j=a._baseIconCls,d=a.getIconAlign(),b=a.glyph,f=Ext._glyphFontFamily,e=a.text,h=a._hasIcon(),g=a._hasIconCls,c;if(typeof b==='string'){c=b.split('@');b=c[0];f=c[1]}return {split:a.isSplitButton,innerCls:a._innerCls,splitCls:a.getArrowVisible()?a.getSplitCls():'',iconUrl:a.icon,iconCls:a.iconCls,glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:f,text:e||' ',closeText:a.closeText,textCls:e?a._textCls:'',noTextCls:e?'':a._noTextCls,hasIconCls:h?g:'',btnWrapCls:a._btnWrapCls,btnWrapStyle:a.width?'table-layout:fixed;':'',btnElStyle:a.height?'height:auto;':'',btnCls:i,baseIconCls:j,iconBeforeText:d==='left'||d==='top',iconAlignCls:h?g+'-'+d:'',textAlignCls:i+'-'+a.getTextAlign(),arrowElCls:a._arrowElCls,tabIndex:a.tabIndex}},renderIcon:function(a){return this.getTpl('iconTpl').apply(a)},setHref:function(c){var a=this,d=a.hrefTarget,b;a.href=c;if(!a.configuredWithPreventDefault){a.preventDefault=!c}if(a.rendered){b=a.el.dom;if(!c||a.disabled){b.removeAttribute('href');b.removeAttribute('hrefTarget')}else {b.href=a.getHref();if(d){b.target=d}}}},getHref:function(){var a=this,b=a.href;return b?Ext.urlAppend(b,Ext.Object.toQueryString(Ext.apply({},a.params,a.baseParams))):!1},setParams:function(c){var a=this,b;a.params=c;if(a.rendered){b=a.el.dom;if(a.disabled){b.removeAttribute('href')}else {b.href=a.getHref()||''}}},getSplitCls:function(){var a=this;return a.split?a.baseCls+'-'+a.arrowCls+' '+(a.baseCls+'-'+a.arrowCls+'-'+a.arrowAlign):''},setIcon:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.icon||'';a.icon=b;if(b!==c){if(d){d.setStyle('background-image',b?'url('+b+')':'');a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setIconCls:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.iconCls||'';a.iconCls=b;if(c!==b){if(d){d.removeCls(c);d.addCls(b);a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setGlyph:function(b){b=b||0;var a=this,c=a.btnIconEl,f=a.glyph,g=a._glyphCls,d,e;a.glyph=b;if(c){if(typeof b==='string'){e=b.split('@');b=e[0];d=e[1]||Ext._glyphFontFamily}if(!b){c.dom.innerHTML='';c.removeCls(g)}else {if(f!==b){c.dom.innerHTML='&#'+b+';';c.addCls(g)}}if(d){c.setStyle('font-family',d)}a._syncHasIconCls();if(a.didIconStateChange(f,b)){a.updateLayout()}}a.fireEvent('glyphchange',a,a.glyph,f);return a},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c||!b){a.clearTip()}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.el.id},b));a.tooltip=b}else {a.el.dom.setAttribute(a.getTipAttr(),b)}}}else {a.tooltip=b}return a},updateIconAlign:function(e,f){var b=this,a,d,c;if(b.rendered){a=b.btnEl;d=b.btnIconEl;c=b._hasIconCls;if(f){a.removeCls(c+'-'+f)}a.addCls(c+'-'+e);if(e==='top'||e==='left'){a.insertFirst(d)}else {a.appendChild(d)}b.updateLayout()}},updateTextAlign:function(e,d){var a=this,c=a.btnEl,b=a._btnCls;if(a.rendered){c.removeCls(b+'-'+d);c.addCls(b+'-'+e)}},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},clearTip:function(){var a=this,b=a.el;if(Ext.quickTipsActive&&Ext.isObject(a.tooltip)){Ext.tip.QuickTipManager.unregister(b)}else {b.dom.removeAttribute(a.getTipAttr())}},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this,b=a.menu;if(a.rendered){Ext.destroy(a.keyMap);delete a.keyMap}if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.onDestroy.call(this)},setHandler:function(a,b){this.handler=a;if(arguments.length>1){this.scope=b}return this},updateText:function(b,c){b=b==null?'':String(b);c=c||'';var a=this,e=a.btnInnerEl,d=a.btnEl;if(a.rendered){e.setHtml(b||' ');d[b?'addCls':'removeCls'](a._textCls);d[b?'removeCls':'addCls'](a._noTextCls);a.updateLayout()}a.fireEvent('textchange',a,c,b)},didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},click:function(a){return this.onClick(a)},setPressed:function(a){return this.toggle(a!==!1)},toggle:function(b,d){var a=this,c=a.ariaEl.dom;b=b===undefined?!a.pressed:!!b;if(a.fireEvent('beforetoggle',a,b)!==!1){if(b!==a.pressed){a[b?'addCls':'removeCls'](a._pressedCls);a.pressed=b;if(c){c.setAttribute('aria-pressed',b)}if(!d){a.fireEvent('toggle',a,b);Ext.callback(a.toggleHandler,a.scope,[a,b],0,a);if(a.reference&&a.publishState){a.publishState('pressed',b)}}}}return a},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(c){var a=this,b=a.menu,d=!c||c.pointerType;if(b&&a.rendered){if(a.tooltip&&Ext.quickTipsActive&&a.getTipAttr()!=='title'){Ext.tip.QuickTipManager.getQuickTip().cancelShow(a.el)}if(b.isVisible()){if(d){b.hide()}else {b.focus()}}else {if(!c||a.showEmptyMenu||b.items.getCount()>0){b.autoFocus=!d;b.showBy(a.el,a.menuAlign)}}}return a},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(b,a){this.onClick(a)},onTouchStart:function(a){this.doPreventDefault(a)},onEnterKey:function(a){this.onClick(a);a.stopEvent();return !1},onClick:function(b){var a=this;a.doPreventDefault(b);if(b.type!=='keydown'&&b.button){return}if(!a.disabled){a.doToggle();a.maybeShowMenu(b);a.fireHandler(b)}},doPreventDefault:function(a){if(a&&(this.preventDefault||this.disabled&&this.getHref())){a.preventDefault()}},fireHandler:function(b){var a=this;if(a.fireEvent('click',a,b)!==!1&&!a.destroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},doToggle:function(){var a=this;if(a.enableToggle&&(a.allowDepress!==!1||!a.pressed)){a.toggle()}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,!0,!0)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,!0,!0)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(b){var a=this,c=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(b)){if(!c){a.onMenuTriggerOver(b)}}else {if(c){a.onMenuTriggerOut(b)}}}},isWithinTrigger:function(d){var a=this,e=a.el,c,b;c=a.arrowAlign==='right'?d.getX()-a.getX():d.getY()-e.getY();b=a.getTriggerRegion();return c>b.begin&&c{iconMarkup}
    role="{textElRole}">{text}
    {iconMarkup}',iconTpl:'',_textAlignClasses:{left:'x-title-align-left',center:'x-title-align-center',right:'x-title-align-right'},_iconAlignClasses:{top:'x-title-icon-top',right:'x-title-icon-right',bottom:'x-title-icon-bottom',left:'x-title-icon-left'},_rotationClasses:{0:'x-title-rotate-none',1:'x-title-rotate-right',2:'x-title-rotate-left'},_rotationAngles:{1:90,2:270},baseCls:'x-title',_titleSuffix:'-title',_glyphCls:'x-title-glyph',_iconWrapCls:'x-title-icon-wrap',_baseIconCls:'x-title-icon',_itemCls:'x-title-item',_textCls:'x-title-text',afterComponentLayout:function(){var b=this,c=b.getRotation(),a,d,e;if(c&&!Ext.isIE8){e=b.el;a=b.lastBox;d=a.x;e.setStyle(b._getVerticalAdjustDirection(),d+(c===1?a.width:-a.height)+'px')}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var a=this,b=a.getRotation(),c=a.el;Ext.Component.prototype.onRender.call(this);if(b){c.setVertical(a._rotationAngles[b])}if(Ext.supports.FixedTableWidthBug){c._needsTableWidthFix=!0}},applyText:function(a){if(!a){a=' '}return a},beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.addCls(a._rotationClasses[a.getRotation()]);a.addCls(a._textAlignClasses[a.getTextAlign()])},getIconMarkup:function(){return this.getTpl('iconTpl').apply(this.getIconRenderData())},getIconRenderData:function(){var a=this,g=a.getIcon(),f=a.getIconCls(),b=a.getGlyph(),d=Ext._glyphFontFamily,e=a.getIconAlign(),c;if(typeof b==='string'){c=b.split('@');b=c[0];d=c[1]}return {id:a.id,ui:a.ui,itemCls:a._itemCls,iconUrl:g,iconCls:f,iconWrapCls:a._iconWrapCls,baseIconCls:a._baseIconCls,iconAlignCls:a._iconAlignClasses[e],glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:d}},initRenderData:function(){var a=this,c,b;b=Ext.apply({text:a.getText(),textElRole:a.textElRole,id:a.id,ui:a.ui,itemCls:a._itemCls,textCls:a._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(a._hasIcon()){c=a.getIconAlign();b.iconMarkup=a.getIconMarkup();b.iconBeforeTitle=c==='top'||c==='left'}return b},onAdded:function(a,f,e){var d=this,c=d._titleSuffix,b=a.baseCls;d.addCls([b+c,b+c+'-'+a.ui]);Ext.Component.prototype.onAdded.call(this,a,f,e)},updateGlyph:function(a,g){a=a||0;var b=this,f=b._glyphCls,c,d,e;b.glyph=a;if(b.rendered){b._syncIconVisibility();c=b.iconEl;if(typeof a==='string'){e=a.split('@');a=e[0];d=e[1]||Ext._glyphFontFamily}if(!a){c.dom.innerHTML='';c.removeCls(f)}else {if(g!==a){c.dom.innerHTML='&#'+a+';';c.addCls(f)}}if(d){c.setStyle('font-family',d)}if(b._didIconStateChange(g,a)){b.updateLayout()}}},updateIcon:function(a,c){a=a||'';var b=this,d;if(b.rendered&&a!==c){b._syncIconVisibility();d=b.iconEl;d.setStyle('background-image',a?'url('+a+')':'');if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateIconAlign:function(d,f){var a=this,b=a.iconWrapEl,e,c;if(a.iconWrapEl){e=a.el;c=a._iconAlignClasses;if(f){b.removeCls(c[f])}b.addCls(c[d]);if(d==='top'||d==='left'){e.insertFirst(b)}else {e.appendChild(b)}a.updateLayout()}},updateIconCls:function(a,c){a=a||'';var b=this,d;if(b.rendered&&c!==a){b._syncIconVisibility();d=b.iconEl;if(c){d.removeCls(c)}d.addCls(a);if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateRotation:function(d,e){var a=this,b,c;if(a.rendered){b=a.el;c=a._rotationClasses;a.removeCls(c[e]);a.addCls(c[d]);b.setHorizontal();if(d){b.setVertical(a._rotationAngles[d])}b.setStyle({right:'',left:'',top:'',height:'',width:''});a.lastBox=null;a.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,c){var a=this,b=a._textAlignClasses;if(a.rendered){if(c){a.removeCls(b[c])}a.addCls(b[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return 'left'},_didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var a=this,f=a.el,e=a._hasIcon(),b=a.iconWrapEl,d,c;if(e&&!b){c=a.iconAlign;d=c==='left'||c==='top';f.dom.insertAdjacentHTML(d?'afterbegin':'beforeend',a.getIconMarkup());b=a.iconWrapEl=f[d?'first':'last']();a.iconEl=b.first()}if(b){b.setDisplayed(e)}}}},0,['title'],['component','box','title'],{'component':!0,'box':!0,'title':!0},['widget.title'],0,[Ext.panel,'Title'],0);Ext.cmd.derive('Ext.panel.Tool',Ext.Component,{isTool:!0,baseCls:'x-tool',disabledCls:'x-tool-disabled',toolPressedCls:'x-tool-pressed',toolOverCls:'x-tool-over',childEls:['toolEl'],renderTpl:[''],toolOwner:null,tooltipType:'qtip',stopEvent:!0,ariaRole:'button',focusable:!0,tabIndex:0,keyHandlers:{SPACE:'onClick',ENTER:'onClick'},cacheHeight:!0,cacheWidth:!0,initComponent:function(){var a=this;a.type=a.type||a.id;Ext.applyIf(a.renderData,{baseCls:a.baseCls,type:a.type});a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);a.el.on({click:a.onClick,mousedown:a.onMouseDown,mouseover:a.onMouseOver,mouseout:a.onMouseOut,scope:a});b=a.tooltip;if(b){a.setTooltip(b)}},tipAttrs:{qtip:'data-qtip'},setTooltip:function(b,d){var a=this,g=a.tooltip,f=a.tooltipType,h=a.id,e=a.el,c;if(g&&Ext.quickTipsActive&&Ext.isObject(g)){Ext.tip.QuickTipManager.unregister(h)}a.tooltip=b;if(d){a.tooltipType=d}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:h},b))}else {if(e){if(d&&f&&d!==f){c=a.tipAttrs[f]||'title';e.dom.removeAttribute(c)}c=a.tipAttrs[d||f]||'title';e.dom.setAttribute(c,b)}}if(c!=='title'&&a.ariaRole&&a.ariaRole!=='presentation'){if(e){e.dom.setAttribute('aria-label',b)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-label']=b}}}},setType:function(b){var a=this,c=a.type;a.type=b;if(a.rendered){if(c){a.toolEl.removeCls(a.baseCls+'-'+c)}a.toolEl.addCls(a.baseCls+'-'+b)}else {a.renderData.type=b}return a},onDestroy:function(){var a=this,b=a.keyMap;a.setTooltip(null);delete a.toolOwner;Ext.Component.prototype.onDestroy.call(this)},privates:{onClick:function(b,c){var a=this;if(a.disabled){return !1}if(b.type!=='keydown'){a.el.removeCls(a.toolPressedCls+' '+a.toolOverCls)}if(a.stopEvent!==!1){b.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[b,c,a.ownerCt,a],0,a)}else {if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,b],0,a)}}a.fireEvent('click',a,b,a.toolOwner||a.ownerCt);return !0},onMouseDown:function(a){a.preventDefault();if(this.disabled){return !1}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return !1}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)}}},0,['tool'],['component','box','tool'],{'component':!0,'box':!0,'tool':!0},['widget.tool'],0,[Ext.panel,'Tool'],0);Ext.cmd.derive('Ext.util.KeyMap',Ext.Base,{alternateClassName:'Ext.KeyMap',eventName:'keydown',constructor:function(b){var a=this;if(arguments.length!==1||typeof b==='string'||b.dom||b.tagName||b===document||b.isComponent){a.legacyConstructor.apply(a,arguments);return}Ext.apply(a,b);a.bindings=[];if(!a.target.isComponent){a.target=Ext.get(a.target)}if(a.binding){a.addBinding(a.binding)}else {if(b.key){a.addBinding(b)}}a.enable()},legacyConstructor:function(d,b,c){var a=this;Ext.apply(a,{target:Ext.get(d),eventName:c||a.eventName,bindings:[]});if(b){a.addBinding(b)}a.enable()},addBinding:function(b){var a=this,e=b.key,c,d;if(a.processing){a.bindings=a.bindings.slice(0)}if(Ext.isArray(b)){for(c=0,d=b.length;c=i){return a}}}if(!g){return}a=c.findNextFocusableChild({beforeRender:h,items:b,step:!0});if(a){c.activateFocusable(a)}return a},clearFocusables:function(){var d=this,c=d.getFocusables(),e=c.length,a,b;for(b=0;b0?d0?d+b:e-1;for(;;a+=b){if(d<0&&(a>=e||a<0)){return null}else {if(a>=e){a=-1;continue}else {if(a<0){a=e;continue}else {if(a===d){return null}}}}c=g[a];if(!c||!c.focusable||c.disabled){continue}if(i||c.isFocusable&&c.isFocusable()){return c}}return null},getFocusableContainerEl:function(){return this.el},onFocusableChildAdd:function(a){if(this.enableFocusableContainer){return this.doFocusableChildAdd(a)}},activateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:this.activeChildTabIndex})}},deactivateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:undefined})}},isFocusableContainerActive:function(){var e=this,d=!1,c,b,a;c=e.getFocusableContainerEl();if(c&&c.isTabbable&&c.isTabbable()){d=!0}else {b=e.lastFocusedChild;a=b&&b.getFocusEl&&b.getFocusEl();if(a&&a.isTabbable&&a.isTabbable()){d=!0}}return d},doFocusableChildAdd:function(a){if(a.focusable){a.focusableContainer=this}},onFocusableChildRemove:function(a){if(this.enableFocusableContainer){return this.doFocusableChildRemove(a)}a.focusableContainer=null},doFocusableChildRemove:function(a){if(a===this.lastFocusedChild){this.lastFocusedChild=null;this.activateFocusableContainerEl()}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);this.mousedownTimestamp=a===this?Ext.Date.now():0;if(a===this){c.preventDefault()}},onFocusEnter:function(f){var a=this,d=f.toComponent,c=a.mousedownTimestamp,e=50,b;if(!a.enableFocusableContainer){return null}a.mousedownTimestamp=0;if(d===a){if(!c||Ext.Date.now()-c>e){b=a.initDefaultFocusable();if(b){a.deactivateFocusableContainerEl();b.focus()}}}else {a.deactivateFocusableContainerEl()}return d},onFocusLeave:function(c){var a=this,b=a.lastFocusedChild;if(!a.enableFocusableContainer){return}if(!a.destroyed&&!a.destroying){a.clearFocusables();if(b&&!b.disabled){a.activateFocusable(b)}else {a.activateFocusableContainerEl()}}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.enableFocusableContainer){return}a.clearFocusables();a.activateFocusable(b);if(b.needArrowKeys){a.guardFocusableChild(b)}},guardFocusableChild:function(c){var b=this,d=b.activeChildTabIndex,a;a=b.findNextFocusableChild({child:c,step:-1});if(a){a.setTabIndex(d)}a=b.findNextFocusableChild({child:c,step:1});if(a){a.setTabIndex(d)}},afterFocusableChildFocus:function(a){if(!this.enableFocusableContainer){return}this.lastFocusedChild=a},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this;if(!a.enableFocusableContainer){return}if(b!==a.lastFocusedChild){a.deactivateFocusable(b);if(!a.isFocusableContainerActive()){a.activateFocusableContainerEl()}}},beforeFocusableChildDisable:function(c){var a=this,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(c.hasFocus){b=a.findNextFocusableChild({child:c})||c.findFocusTarget();if(b){b.focus()}}},onFocusableChildDisable:function(d){var a=this,c=a.lastFocusedChild,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(d===c){a.activateFocusableContainerEl()}b=a.findNextFocusableChild({step:1});if(!b){a.deactivateFocusableContainerEl()}},onFocusableChildShow:Ext.privateFn,onFocusableChildHide:Ext.privateFn,onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn}},0,0,0,0,0,0,[Ext.util,'FocusableContainer'],0);Ext.cmd.derive('Ext.panel.Header',Ext.panel.Bar,{isHeader:!0,defaultType:'tool',indicateDrag:!1,weight:-1,shrinkWrap:3,iconAlign:'left',titleAlign:'left',titlePosition:0,titleRotation:'default',autoEl:{role:'presentation'},beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{xtype:'title',flex:1},merge:function(a,b){if(typeof a!=='object'){a={text:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:'x-header',initComponent:function(){var a=this,b=a.items,d=a.itemPosition,c=[a.headerCls];a.tools=a.tools||[];a.items=b=b?b.slice():[];if(d!==undefined){a._userItems=b.slice();a.items=b=[]}a.indicateDragCls=a.headerCls+'-draggable';if(a.indicateDrag){c.push(a.indicateDragCls)}a.addCls(c);a.syncNoBorderCls();a.enableFocusableContainer=!a.isAccordionHeader&&a.tools.length>0;if(a.enableFocusableContainer){a.ariaRole='toolbar'}Ext.Array.push(b,a.tools);a.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);a.on({dblclick:a.onDblClick,click:a.onClick,element:'el',scope:a})},addTool:function(b){var a=this;a.add(Ext.ComponentManager.create(b,'tool'));if(!a.isAccordionHeader&&a.tools.length>0&&!a.enableFocusableContainer){a.enableFocusableContainer=!0;a.ariaRole='toolbar';if(a.rendered){a.ariaEl.dom.setAttribute('role','toolbar');a.initFocusableContainer(!0)}}},afterLayout:function(){var a=this,e,b,c,d;if(a.vertical){b=a.frameTR;if(b){e=a.frameBR;c=a.frameTL;d=a.getWidth()-b.getPadding('r')-(c?c.getPadding('l'):a.el.getBorderWidth('l'))+'px';e.setStyle('background-position-x',d);b.setStyle('background-position-x',d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(a,d){var b=this,c,e;a=a||'';c=typeof a==='string';if(c){a={text:a}}if(d){Ext.suspendLayouts();d.setConfig(a);Ext.resumeLayouts(!0);a=d}else {if(c){a.xtype='title'}a.ui=b.ui;e='rotation' in a;a.id=b.id+'-title';if(b.isAccordionHeader){a.ariaRole='tab';a.textElRole=null;a.focusable=!0}a=Ext.create(a);if(!e&&b.vertical&&b.titleRotation==='default'){a.rotation=1}}return a},applyTitlePosition:function(b){var a=this.items.getCount();if(this._titleInItems){--a}return Math.max(Math.min(b,a),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var a=this,b=a.itemPosition;a.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(b!==undefined){a.insert(b,a._userItems)}},getTools:function(){return this.tools.slice()},onAdd:function(a,c){var b=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,a,c);if(a.isTool){b.push(a);b[a.type]=a}},onAdded:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,a,c,b)},onRemoved:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,a,c,b)},setDock:function(e){var a=this,c=a.getTitle(),b=a.getTitleRotation(),d=c.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,e);if(b==='default'){b=a.vertical?1:0;if(b!==d){c.setRotation(b)}if(a.rendered){a.resetItemMargins()}}Ext.resumeLayouts(!0)},updateGlyph:function(a){this.getTitle().setGlyph(a)},updateIcon:function(a){this.getTitle().setIcon(a)},updateIconAlign:function(a,b){this.getTitle().setIconAlign(a)},updateIconCls:function(a){this.getTitle().setIconCls(a)},updateTitle:function(a,b){if(!b){this.insert(this.getTitlePosition(),a);this._titleInItems=!0}this.titleCmp=a},updateTitleAlign:function(a,b){this.getTitle().setTextAlign(a)},updateTitlePosition:function(a){this.insert(a,this.getTitle())},updateTitleRotation:function(a){if(a==='default'){a=this.vertical?1:0}this.getTitle().setRotation(a)},privates:{fireClickEvent:function(c,a){var b='.'+Ext.panel.Tool.prototype.baseCls;if(!a.getTarget(b)){this.fireEvent(c,this,a)}},getFramingInfoCls:function(){var a=this,c=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),b=a.ownerCt;if(!a.expanding&&b&&(b.collapsed||a.isCollapsedExpander)){c+='-'+b.collapsedCls}return c+'-'+a.dock},onClick:function(a){this.fireClickEvent('click',a)},onDblClick:function(a){this.fireClickEvent('dblclick',a)},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {this.mixins.focusablecontainer.onFocusableContainerMousedown.apply(this,arguments)}},syncBeforeAfterTitleClasses:function(l){var c=this,j=c.items,i=j.items,h=c.getTitlePosition(),k=i.length,g=j.generation,f=c.syncBeforeAfterGen,e,d,b,a;if(!l&&f===g){return}c.syncBeforeAfterGen=g;for(b=0;bh){if(f){a.removeCls(d)}a.addCls(e)}}}},syncNoBorderCls:function(){var a=this,b=this.ownerCt,c=a.headerCls+'-noborder';if(b?b.border===!1&&!b.frame:a.border===!1){a.addCls(c)}else {a.removeCls(c)}}}},0,['header'],['component','box','container','header'],{'component':!0,'box':!0,'container':!0,'header':!0},['widget.header'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.panel,'Header'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.None',Ext.Base,{alternateClassName:'Ext.layout.boxOverflow.None',factoryConfig:{defaultType:'none'},isBoxOverflowHandler:!0,$configPrefixed:!1,$configStrict:!1,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var c=this,d=b.state.boxPlan,a;if(d&&d.tooNarrow){a=c.handleOverflow(b);if(a){if(a.reservedSpace){c.layout.publishInnerCtSize(b,a.reservedSpace)}}}else {c.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(e){var b=this,d=b.layout.owner,c,a;if(d.hasListeners.overflowchange){c=d.query('>[hidden]');a=c.length;if(a!==b.lastHiddenCount){d.fireEvent('overflowchange',b.lastHiddenCount,a,c);b.lastHiddenCount=a}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(b){var a;if(b.isToolbar){a='toolbar'}else {if(b.isTabBar){a='tab-bar'}else {if(b.isMenu){a='menu'}else {if(b.isBreadcrumb){a='breadcrumb'}else {a=b.getXType()}}}}return a},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return ''},setVertical:function(){var b=this,a=b.layout,c=a.innerCt;c.removeCls(b.getOverflowCls(a.oppositeDirection));c.addCls(b.getOverflowCls(a.direction))}},1,0,0,0,['box.overflow.None','box.overflow.none'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout.container.boxOverflow,'None',Ext.layout.boxOverflow,'None'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Scroller',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Scroller',animateScroll:!1,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:'x-box-scroller',beforeSuffix:'-before-scroller',afterSuffix:'-after-scroller',constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.scrollPosition=0;a.scrollSize=0},getPrefixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.beforeSuffix,cls:this.createScrollerCls('beforeX'),style:'display:none'}},getSuffixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.afterSuffix,cls:this.createScrollerCls('afterX'),style:'display:none'}},createScrollerCls:function(g){var c=this,d=c.layout,b=d.owner,e=c.getOwnerType(b),a=c.scrollerCls,f=a+' '+a+'-'+d.names[g]+' '+a+'-'+e+' '+a+'-'+e+'-'+b.ui;if(b.plain){f+=' '+a+'-plain'}return f},getOverflowCls:function(a){return this.scrollerCls+'-body-'+a},beginLayout:function(a){a.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(a){var b=this,f=a.state.boxPlan,e=b.layout,d=e.names,g=Math.min(b.getMaxScrollPosition(),a.innerCtScrollPos),c;if(f&&f.tooNarrow){c=a.childItems[a.childItems.length-1].props;b.scrollSize=c[d.x]+c[d.width];b.updateScrollButtons();e.innerCt[d.setScrollLeft](g)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,a)},handleOverflow:function(i){var a=this,d=a.layout.names,h=d.getWidth,f=d.parallelMargins,g,e,b,c;a.showScrollers();b=a.getBeforeScroller();c=a.getAfterScroller();g=b[h]()+c[h]()+b.getMargin(f)+c.getMargin(f);e=i.targetContext.getPaddingInfo()[d.width];return {reservedSpace:Math.max(g-e,0)}},getBeforeScroller:function(){var a=this;return a._beforeScroller||(a._beforeScroller=a.createScroller(a.beforeSuffix,'beforeRepeater','scrollLeft'))},getAfterScroller:function(){var a=this;return a._afterScroller||(a._afterScroller=a.createScroller(a.afterSuffix,'afterRepeater','scrollRight'))},createScroller:function(g,f,e){var b=this,d=b.layout.owner,c=b.scrollerCls,a;a=d.el.getById(d.id+g);a.addClsOnOver(c+'-hover');a.addClsOnClick(c+'-pressed');a.setVisibilityMode(Ext.Element.DISPLAY);b[f]=new Ext.util.ClickRepeater(a,{interval:b.scrollRepeatInterval,handler:e,scope:b});return a},createWheelListener:function(){var a=this;a.wheelListener=a.layout.innerCt.on('mousewheel',a.onMouseWheel,a,{destroyable:!0})},onMouseWheel:function(a){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,!1)},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;if(!a.wheelListener){a.createWheelListener()}a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')},hideScrollers:function(){var a=this,b=a.getBeforeScroller(),c=a.getAfterScroller();if(b){b.hide();c.hide();a.layout.owner.removeClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')}},destroy:function(){Ext.destroyMembers(this,'beforeRepeater','afterRepeater','_beforeScroller','_afterScroller','wheelListener');this.callParent()},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getScrollAnim:function(){return {duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var a=this,c=a.getBeforeScroller(),d=a.getAfterScroller(),b;if(!c||!d){return}b=a.scrollerCls+'-disabled';c[a.atExtremeBefore()?'addCls':'removeCls'](b);d[a.atExtremeAfter()?'addCls':'removeCls'](b);a.scrolling=!1},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,!1)},scrollRight:function(){this.scrollBy(this.scrollIncrement,!1)},getScrollPosition:function(){var b=this,c=b.layout,a;if(isNaN(b.scrollPosition)){a=c.innerCt[c.names.getScrollLeft]()}else {a=b.scrollPosition}return a},getMaxScrollPosition:function(){var c=this,b=c.layout,a=c.scrollSize-b.innerCt.lastBox[b.names.width];return a<0?0:a},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var c=this,d=c.getBeforeScroller(),e=c.getAfterScroller(),b=c.layout.names,a=c.scrollerCls;d.removeCls(a+'-'+b.beforeY);e.removeCls(a+'-'+b.afterY);d.addCls(a+'-'+b.beforeX);e.addCls(a+'-'+b.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(g,b){var a=this,d=a.layout,e=d.names,f=a.getScrollPosition(),c=Ext.Number.constrain(g,0,a.getMaxScrollPosition());if(c!==f&&!a.scrolling){a.scrollPosition=NaN;if(b===undefined){b=a.animateScroll}d.innerCt[e.scrollTo](e.beforeScrollX,c,b?a.getScrollAnim():!1);if(b){a.scrolling=!0}else {a.updateScrollButtons()}a.fireEvent('scroll',a,c,b?a.getScrollAnim():!1)}},scrollToItem:function(a,i){var c=this,e=c.layout,h=e.owner,f=e.names,j=e.innerCt,d,g,b;a=c.getItem(a);if(a!==undefined){if(a===h.items.first()){b=0}else {if(a===h.items.last()){b=c.getMaxScrollPosition()}else {d=c.getItemVisibility(a);if(!d.fullyVisible){g=a.getBox(!1,!0);b=g[f.x];if(d.hiddenEnd){b-=j[f.getWidth]()-g[f.width]}}}}if(b!==undefined){c.scrollTo(b,i)}}},getItemVisibility:function(i){var d=this,h=d.getItem(i).getBox(!0,!0),g=d.layout,c=g.names,b=h[c.x],f=b+h[c.width],a=d.getScrollPosition(),e=a+g.innerCt[c.getWidth]();return {hiddenStart:be,fullyVisible:b>=a&&f<=e}}},1,0,0,0,['box.overflow.Scroller','box.overflow.scroller'],[['observable',Ext.mixin.Observable]],[Ext.layout.container.boxOverflow,'Scroller',Ext.layout.boxOverflow,'Scroller'],0);Ext.cmd.derive('Ext.dd.DragDropManager',Ext.Base,{singleton:!0,alternateClassName:['Ext.dd.DragDropMgr','Ext.dd.DDM'],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:!0,stopPropagation:!0,initialized:!1,locked:!1,init:function(){this.initialized=!0},POINT:0,INTERSECT:1,mode:0,notifyOccluded:!1,dragCls:'x-dd-drag-current',_execOnAll:function(f,g){var c=this.ids,d,e,b,a;for(d in c){if(c.hasOwnProperty(d)){a=c[d];for(e in a){if(a.hasOwnProperty(e)){b=a[e];if(!this.isTypeOfDD(b)){continue}b[f].apply(b,g)}}}}},addListeners:function(){var a=this;a.init();Ext.getDoc().on({mouseup:a.handleMouseUp,mousemove:{fn:a.handleMouseMove,capture:!1},dragstart:a.preventDrag,drag:a.preventDrag,dragend:a.preventDrag,capture:!0,scope:a});Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},preventDrag:function(a){if(this.isMouseDown){a.stopPropagation()}},_onResize:function(a){this._execOnAll('resetConstraints',[])},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isLocked:function(){return this.locked},locationCache:{},useCache:!0,clickPixelThresh:8,dragThreshMet:!1,clickTimeout:null,startX:0,startY:0,regDragDrop:function(b,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][b.id]=b},removeDDFromGroup:function(c,a){if(!this.ids[a]){this.ids[a]={}}var b=this.ids[a];if(b&&b[c.id]){delete b[c.id]}},_remove:function(b,f){var a=this,d=a.ids,e=b.groups,c;if(a.clearingAll){return}if(a.dragCurrent===b){a.dragCurrent=null}for(c in e){if(e.hasOwnProperty(c)){if(f){delete d[c]}else {if(d[c]){delete d[c][b.id]}}}}delete a.handleIds[b.id];delete a.locationCache[b.id]},regHandle:function(a,b){if(!this.handleIds[a]){this.handleIds[a]={}}this.handleIds[a][b]=b},isDragDrop:function(a){return this.getDDById(a)?!0:!1},getRelated:function(f,e){var b=[],c,d,a;for(c in f.groups){for(d in this.ids[c]){a=this.ids[c][d];if(!this.isTypeOfDD(a)){continue}if(!e||a.isTarget){b[b.length]=a}}}return b},isLegalTarget:function(e,d){var b=this.getRelated(e,!0),a,c;for(a=0,c=b.length;aa.clickPixelThresh||e>a.clickPixelThresh){a.startDrag(a.startX,a.startY)}}if(a.dragThreshMet){c.b4Drag(b);c.onDrag(b);if(!c.moveOnly){a.fireEvents(b,!1)}}a.stopEvent(b);return !0},fireEvents:function(e,t){var d=this,s=Ext.supports.Touch,c=d.dragCurrent,l=d.currentPoint,v=l.x,w=l.y,j=[],r=[],h=[],i=[],g=[],k=[],u=s?document.documentElement.clientWidth/window.innerWidth:1,p,b,o,q,a,f,n,m;if(!c||c.isLocked()){return}m=!(c.deltaX<0||c.deltaY<0);if(s||!d.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&m){p=c.getDragEl();if(m){p.style.visibility='hidden'}e.target=document.elementFromPoint(v/u,w/u);if(m){p.style.visibility='visible'}}for(a in d.dragOvers){b=d.dragOvers[a];delete d.dragOvers[a];if(!d.isTypeOfDD(b)||b.destroyed){continue}if(d.notifyOccluded){if(!this.isOverTarget(l,b,d.mode)){h.push(b)}}else {if(!e.within(b.getEl())){h.push(b)}}r[a]=!0}for(n in c.groups){if('string'!==typeof n){continue}for(a in d.ids[n]){b=d.ids[n][a];if(d.isTypeOfDD(b)&&(o=b.getEl())&&b.isTarget&&!b.isLocked()&&Ext.fly(o).isVisible(!0)&&(b!==c||c.ignoreSelf===!1)){if(d.notifyOccluded){if((b.zIndex=d.getZIndex(o))!==-1){q=!0}j.push(b)}else {if(e.within(b.getEl())){j.push(b);break}}}}}if(q){Ext.Array.sort(j,d.byZIndex)}for(a=0,f=j.length;a','',''],isSplitter:!0,baseCls:'x-splitter',collapsedClsInternal:'x-splitter-collapsed',canResize:!0,collapsible:null,collapseOnDblClick:!0,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:'next',horizontal:!1,vertical:!1,size:5,tracker:null,ariaRole:'separator',focusable:!0,tabIndex:0,getTrackerConfig:function(){return Ext.apply({xclass:'Ext.resizer.SplitterTracker',el:this.el,splitter:this},this.tracker)},beforeRender:function(){var a=this,c=a.getCollapseTarget(),b=a.collapsible,d;Ext.Component.prototype.beforeRender.call(this);if(c.collapsed){a.addCls(a.collapsedClsInternal)}if(!a.canResize){a.addCls(a.baseCls+'-noresize')}Ext.applyIf(a.renderData,{collapseDir:a.getCollapseDirection(),collapsible:b!==null?b:c.collapsible});a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-orientation']=a.orientation;a.protoEl.unselectable()},onRender:function(){var a=this,b;Ext.Component.prototype.onRender.apply(this,arguments);if(a.performCollapse!==!1){if(a.renderData.collapsible){a.mon(a.collapseEl,'click',a.toggleTargetCmp,a)}if(a.collapseOnDblClick){a.mon(a.el,'dblclick',a.toggleTargetCmp,a)}}a.getCollapseTarget().on({collapse:a.onTargetCollapse,expand:a.onTargetExpand,beforeexpand:a.onBeforeTargetExpand,beforecollapse:a.onBeforeTargetCollapse,scope:a});if(a.canResize){a.tracker=Ext.create(a.getTrackerConfig());a.relayEvents(a.tracker,['beforedragstart','dragstart','dragend'])}b=a.collapseEl;if(b){b.lastCollapseDirCls=a.collapseDirProps[a.collapseDirection].cls}},getCollapseDirection:function(){var b=this,a=b.collapseDirection,c,f,d,e;if(!a){c=b.collapseTarget;if(c.isComponent){a=c.collapseDirection}if(!a){e=b.ownerCt.layout.type;if(c.isComponent){d=b.ownerCt.items;f=Number(d.indexOf(c)===d.indexOf(b)-1)<<1|Number(e==='hbox')}else {f=Number(b.collapseTarget==='prev')<<1|Number(e==='hbox')}a=['bottom','right','top','left'][f]}b.collapseDirection=a}b.setOrientation(a==='top'||a==='bottom'?'horizontal':'vertical');return a},getCollapseTarget:function(){var a=this;return a.collapseTarget.isComponent?a.collapseTarget:a.collapseTarget==='prev'?a.previousSibling():a.nextSibling()},setCollapseEl:function(b){var a=this.collapseEl;if(a){a.setDisplayed(b)}},onBeforeTargetExpand:function(a){this.setCollapseEl('none')},onBeforeTargetCollapse:function(){this.setCollapseEl('none')},onTargetCollapse:function(b){var a=this;if(b===a.getCollapseTarget()&&b[a.orientation==='vertical'?'collapsedHorizontal':'collapsedVertical']()){a.el.addCls(a.collapsedClsInternal+' '+(a.collapsedCls||''))}a.setCollapseEl('')},onTargetExpand:function(b){var a=this;a.el.removeCls(a.collapsedClsInternal+' '+(a.collapsedCls||''));a.setCollapseEl('')},collapseDirProps:{top:{cls:'x-layout-split-top'},right:{cls:'x-layout-split-right'},bottom:{cls:'x-layout-split-bottom'},left:{cls:'x-layout-split-left'}},orientationProps:{horizontal:{opposite:'vertical',fixedAxis:'height',stretchedAxis:'width'},vertical:{opposite:'horizontal',fixedAxis:'width',stretchedAxis:'height'}},applyCollapseDirection:function(){var c=this,a=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],b;if(a){b=a.lastCollapseDirCls;if(b){a.removeCls(b)}a.addCls(a.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var a=this,e=a.orientation,b=a.orientationProps[e],f=a.size,d=b.fixedAxis,c=b.stretchedAxis,g=a.baseCls+'-';a[e]=!0;a[b.opposite]=!1;if(!a.hasOwnProperty(d)||a[d]==='100%'){a[d]=f}if(!a.hasOwnProperty(c)||a[c]===f){a[c]='100%'}a.removeCls(g+b.opposite);a.addCls(g+e)},setOrientation:function(b){var a=this;if(a.orientation!==b){a.orientation=b;a.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,e){var a=this.getCollapseTarget(),c=a.placeholder,b;if(Ext.isFunction(a.expand)&&Ext.isFunction(a.collapse)){if(c&&!c.hidden){b=!0}else {b=!a.hidden}if(b){if(a.collapsed){a.expand()}else {if(a.collapseDirection){a.collapse()}else {a.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},beforeDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.beforeDestroy.call(this)}},0,['splitter'],['component','box','splitter'],{'component':!0,'box':!0,'splitter':!0},['widget.splitter'],0,[Ext.resizer,'Splitter'],0);Ext.define('Ext.theme.neptune.resizer.Splitter',{override:'Ext.resizer.Splitter',size:8});Ext.cmd.derive('Ext.layout.container.Box',Ext.layout.container.Container,{alternateClassName:'Ext.layout.BoxLayout',type:'box',config:{align:'begin',constrainAlign:!1,enableSplitters:!0,overflowHandler:{$value:null,merge:function(a,b){if(typeof a==='string'){a={type:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},padding:0,pack:'start',stretchMaxPartner:undefined,vertical:!1,alignRoundingMethod:'round'},itemCls:'x-box-item',targetCls:'x-box-layout-ct',targetElCls:'x-box-target',innerCls:'x-box-inner',manageMargins:!0,createsInnerCt:!0,childEls:['innerCt','targetEl'],renderTpl:['{%var oc,l=values.$comp.layout,oh=l.overflowHandler;if (oh && oh.getPrefixConfig!==Ext.emptyFn) {if(oc=oh.getPrefixConfig())dh.generateMarkup(oc, out)}%}{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:!0,definitions:'var dh=Ext.DomHelper;'}],constructor:function(c){var a=this,b;Ext.layout.container.Container.prototype.constructor.apply(this,arguments);a.setVertical(a.vertical);a.flexSortFn=a.flexSort.bind(a);b=typeof a.padding;if(b==='string'||b==='number'){a.padding=Ext.util.Format.parseBox(a.padding);a.padding.height=a.padding.top+a.padding.bottom;a.padding.width=a.padding.left+a.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(h,b){var a=this,f=a.sizePolicy,g=a.align,p=h.flex,c=g,o=a.names,e=o.height,m=o.width,q=h[m],n=h[e],d=a._percentageRe,i=d.test(q),l=g==='stretch',j=g==='stretchmax',k=a.constrainAlign;if(!b&&(l||p||i||k&&!j)){b=a.owner.getSizeModel()}if(l){if(!d.test(n)&&b[e].shrinkWrap){c='stretchmax'}}else {if(!j){if(d.test(n)){c='stretch'}else {if(k&&!b[e].shrinkWrap){c='stretchmax'}else {c=''}}}}if(p||i){if(!b[m].shrinkWrap){f=f.flex}}return f[c]},flexSort:function(o,p){var k=this.names.maxWidth,l=this.names.minWidth,j=Infinity,c=o.target,d=p.target,m=c.flex,n=d.flex,a=0,g,i,f,h,e,b;f=c[k]||j;h=d[k]||j;g=c[l]||0;i=d[l]||0;e=isFinite(g)||isFinite(i);b=isFinite(f)||isFinite(h);if(e||b){if(b){a=f-h}if(a===0&&e){a=i-g}if(a===0){if(b){a=n-m}else {a=m-n}}}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(a){var b=this;if(b.direction==='vertical'&&a.collapsedVertical()){a.collapseMemento.capture(['flex']);delete a.flex}else {if(b.direction==='horizontal'&&a.collapsedHorizontal()){a.collapseMemento.capture(['flex']);delete a.flex}}},beginExpand:function(a){a.collapseMemento.restore(['flex'])},beginLayout:function(a){var c=this,f=c.owner,b=f.stretchMaxPartner,h=c.innerCt.dom.style,i=c.names,g=c.overflowHandler,e=f.getScrollable(),d;a.boxNames=i;if(g){g.beginLayout(a)}if(typeof b==='string'){b=Ext.getCmp(b)||f.query(b)[0]}a.stretchMaxPartner=b&&a.context.getCmp(b);Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);a.innerCtContext=a.getEl('innerCt',c);a.targetElContext=a.getEl('targetEl',c);if(e){a.ownerScrollable=e;d=e.getPosition();if(d.x||d.y){a.scrollRestore=d}}h.width=h.height=''},beginLayoutCycle:function(a,l){var c=this,i=a.state,g=a.ownerScrollable,b=c.align,e=a.boxNames,d=c.pack,k=c._centerRe,j=c.overflowHandler,m=a.state.canScroll,h,f;if(j){j.beginLayoutCycle(a,l)}Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);a.parallelSizeModel=h=a[e.widthModel];a.perpendicularSizeModel=f=a[e.heightModel];a.boxOptions={align:b={stretch:b==='stretch',stretchmax:b==='stretchmax',center:k.test(b),bottom:c._endRe.test(b)},pack:d={center:k.test(d),end:d==='end'}};if(g){if(!m){i.canScroll={parallel:!h.shrinkWrap&&g[e.getX](),perpendicular:!f.shrinkWrap&&g[e.getY]()}}if(!i.actualScroll){i.actualScroll={parallel:!1,perpendicular:!1}}}if(b.stretch&&f.shrinkWrap){b.stretchmax=!0;b.stretch=!1}b.nostretch=!(b.stretch||b.stretchmax);if(h.shrinkWrap){d.center=d.end=!1}c.cacheFlexes(a);c.targetEl.setWidth(20000)},cacheFlexes:function(a){var u=this,d=a.boxNames,x=d.widthModel,w=d.heightModel,z=a.boxOptions.align.nostretch,s=0,r=a.childItems,v=r.length,h=[],t=0,g=0,o=0,p=d.minWidth,y=d.minHeight,q=u._percentageRe,n=0,m=0,b,c,l,f,i,j,k,e;while(v--){c=r[v];b=c.target;j=c[x];if(j.calculated){c.flex=l=b.flex;if(l){s+=l;h.push(c);t+=b[p]||0}else {f=q.exec(b[d.width]);c.percentageParallel=parseFloat(f[1])/100;++n}}if(j.configured){k=b[d.width]}else {k=b[p]||0}o+=k;i=c[w];if(z&&i.calculated){f=q.exec(b[d.height]);c.percentagePerpendicular=parseFloat(f[1])/100;++m}if(i.configured){e=b[d.height]}else {e=b[y]||0}if(e>g){g=e}}a.flexedItems=h;a.flexedMinWidth=t;a.smallestWidth=o;a.smallestHeight=g;a.totalFlex=s;a.percentageWidths=n;a.percentageHeights=m;Ext.Array.sort(h,u.flexSortFn)},calculate:function(b){var c=this,f=b.boxNames,a=b.state,h=a.actualScroll,g=a.needsScroll,e=a.canScroll,d=a.boxPlan||(a.boxPlan={}),i=c.overflowHandler;d.targetSize=c.getContainerSize(b);if(e&&!g){a.needsScroll=g={parallel:e.parallel&&d.targetSize[f.width]j){a.invalidate({before:K,after:L,layout:l,childHeight:j,names:d});c.state.parallelDone=!1}if(isNaN(b=o(b,g+i,a.target[d.minHeight]||0))){return !1}}}if(v){b+=q;c[d.hasOverflowX]=!0;c.target.componentLayout[d.setHeightInDom]=!0;c[d.invalidateScrollX]=Ext.isIE8}p=c.stretchMaxPartner;if(p){c.setProp('maxChildHeight',b);w=p.childItems;if(w&&w.length){b=o(b,p.getProp('maxChildHeight'));if(isNaN(b)){return !1}}}c[d.setContentHeight](b+l.padding[e]+c.targetContext.getPaddingInfo()[e]);if(v){b-=q}if(b>y[e]&&H&&H.perpendicular){C.actualScroll.perpendicular=!0}t.maxSize=b;if(O){f=b}else {if(B||A||D){if(I){f=h?b:j}else {f=h?b:o(j,b)}f-=c.innerCtContext.getBorderInfo()[e]}}for(k=0;k0){n=u+Math[l.alignRoundingMethod](s/2)}}else {if(A){n=o(0,f-n-a.props[e])}}}a.setProp(M,n)}return !0},onBeforeConstrainInvalidateChild:function(b,c){var a=c.names.heightModel;if(!b[a].constrainedMin){b[a]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(a,c){var b=c.names;a.setProp(b.beforeY,0);if(a[b.heightModel].calculated){a[b.setHeight](c.childHeight)}},calculateStretchMax:function(k,c,o){var f=this,h=c.height,l=c.width,g=k.childItems,n=g.length,m=o.maxSize,i=f.onBeforeStretchMaxInvalidateChild,j=f.onAfterStretchMaxInvalidateChild,a,b,d,e;for(d=0;d':{xtype:'tbfill',height:0}},1:{'->':{xtype:'tbfill',width:0}}}},initComponent:function(){var a=this,b=a.layout,c=a.vertical;if(c===undefined){a.vertical=c=a.dock==='right'||a.dock==='left'}a.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:c?'vbox':'hbox',align:c?'stretchmax':'middle'});if(a.overflowHandler){b.overflowHandler=a.overflowHandler}else {if(a.enableOverflow){b.overflowHandler='menu'}}if(c){a.addClsWithUI('vertical')}if(a.ui==='footer'){a.ignoreBorderManagement=!0}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(d){var c=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),e=c.layout,a;if(d&&(c.enableOverflow||c.overflowHandler==='menu')){a=e.overflowHandler;if(a&&a.menu){b=b.concat(a.menu.getRefItems(d))}}return b},lookupComponent:function(a){var d=arguments,b,c;if(typeof a==='string'){c=Ext.toolbar.Toolbar;b=c.shortcutsHV[this.vertical?1:0][a]||c.shortcuts[a];if(typeof b==='string'){a={xtype:b}}else {if(b){a=Ext.apply({},b)}else {a={xtype:'tbtext',text:a}}}this.applyDefaults(a);d=[a]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(a){var b=this,d=b.ui==='footer',c=d?b.defaultFooterButtonUI:b.defaultButtonUI;if(a.isSegmentedButton){if(a.getDefaultUI()==='default'&&!a.config.hasOwnProperty('defaultUI')){a.setDefaultUI(c)}}else {if(a.ui==='default'&&!a.hasOwnProperty('ui')){if(a.isButton){a.ui=c}else {if(a.isFormField){a.ui=d?b.defaultFooterFieldUI:b.defaultFieldUI}}}}if(a instanceof Ext.toolbar.Separator){a.setUI(b.vertical?'vertical':'horizontal')}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(a){if(a.needArrowKeys&&this.enableFocusableContainer){this.enableFocusableContainer=!1}Ext.container.Container.prototype.onAdd.apply(this,arguments);this.trackMenu(a)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,!0)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(b,c){var a=this;if(a.trackMenus&&b.menu){b[c?'un':'on']({mouseover:a.onButtonOver,menushow:a.onButtonMenuShow,menuhide:a.onButtonMenuHide,scope:a})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(a,c){var b=this.activeMenuBtn;if(b&&b!==a){b.hideMenu();a.focus();a.showMenu(c);this.activeMenuBtn=a}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,['toolbar'],['component','box','container','toolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0},['widget.toolbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,'Toolbar',Ext,'Toolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Toolbar',{override:'Ext.toolbar.Toolbar',usePlainButtons:!1,border:!1});Ext.cmd.derive('Ext.dd.DragDrop',Ext.Base,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:!1,lock:function(){this.locked=!0},moveOnly:!1,unlock:function(){this.locked=!1},isTarget:!0,padding:null,_domRef:null,__ygDragDrop:!0,constrainX:!1,constrainY:!1,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:!1,xTicks:null,yTicks:null,primaryButtonOnly:!0,available:!1,hasOuterHandles:!1,triggerEvent:'mousedown',b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(b,a){},b4DragOver:function(a){},onDragOver:function(b,a){},b4DragOut:function(a){},onDragOut:function(b,a){},b4DragDrop:function(a){},onDragDrop:function(b,a){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(j,a,k){if(Ext.isNumber(a)){a={left:a,right:a,top:a,bottom:a}}a=a||this.defaultPadding;var c=Ext.get(this.getEl()).getBox(),e=Ext.get(j),i=e.getScroll(),b,d=e.dom,h,g,f;if(d===document.body){b={x:i.left,y:i.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else {h=e.getXY();b={x:h[0],y:h[1],width:d.clientWidth,height:d.clientHeight}}g=c.y-b.y;f=c.x-b.x;this.resetConstraints();this.setXConstraint(f-(a.left||0),b.width-f-c.width-(a.right||0),this.xTickSize);this.setYConstraint(g-(a.top||0),b.height-g-c.height-(a.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(b,d,c){var a=this;a.el=a.el||Ext.get(b);a.initTarget(b,d,c);Ext.get(a.id).on(a.triggerEvent,a.handleMouseDown,a)},initTarget:function(a,b,c){this.config=c||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof a!=='string'){a=Ext.id(a)}this.id=a;this.addToGroup(b?b:'default');this.handleElId=a;this.setDragElId(a);this.invalidHandleTypes={A:'A'};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=this.config.isTarget!==!1;this.maintainOffset=this.config.maintainOffset;this.primaryButtonOnly=this.config.primaryButtonOnly!==!1},handleOnAvailable:function(){this.available=!0;this.resetConstraints();this.onAvailable()},setPadding:function(a,b,c,d){if(!b&&0!==b){this.padding=[a,a,a,a]}else {if(!c&&0!==c){this.padding=[a,b,a,b]}else {this.padding=[a,b,c,d]}}},setInitPosition:function(e,f){var d=this.getEl(),b,c,a;if(!this.DDMInstance.verifyEl(d)){return}b=e||0;c=f||0;a=Ext.fly(d).getXY();this.initPageX=a[0]-b;this.initPageY=a[1]-c;this.lastPageX=a[0];this.lastPageY=a[1];this.setStartPosition(a)},setStartPosition:function(b){var a=b||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=a[0];this.startPageY=a[1]},addToGroup:function(a){this.groups[a]=!0;this.DDMInstance.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDMInstance.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.handleElId=a;this.DDMInstance.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}Ext.get(a).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=!0},unreg:function(){var a=this,b;if(a._domRef){b=Ext.fly(a.id);if(b){b.un(a.triggerEvent,a.handleMouseDown,a)}}a._domRef=null;a.DDMInstance._remove(a,a.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return this.DDMInstance.isLocked()||this.locked},handleMouseDown:function(b,c){var a=this;if(a.primaryButtonOnly&&b.button||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(b.getPoint(),a)){if(a.clickValidator(b)){a.setStartPosition();a.b4MouseDown(b);a.onMouseDown(b);a.DDMInstance.handleMouseDown(b,a);a.DDMInstance.stopEvent(b)}}},clickValidator:function(b){var a=b.getTarget();return this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id))},addInvalidHandleType:function(b){var a=b.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){var b=a.toUpperCase();delete this.invalidHandleTypes[b]},removeInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(c){var b=this.invalidHandleClasses,d=b.length,a;for(a=0;a=this.minX;a=a-c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}for(a=this.initPageX;a<=this.maxX;a=a+c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,c){this.yTicks=[];this.yTickSize=c;var b={},a;for(a=this.initPageY;a>=this.minY;a=a-c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}for(a=this.initPageY;a<=this.maxY;a=a+c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(c,b,a){this.leftConstraint=c;this.rightConstraint=b;this.minX=this.initPageX-c;this.maxX=this.initPageX+b;if(a){this.setXTicks(this.initPageX,a)}this.constrainX=!0},clearConstraints:function(){this.constrainX=!1;this.constrainY=!1;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(c,b,a){this.topConstraint=c;this.bottomConstraint=b;this.minY=this.initPageY-c;this.maxY=this.initPageY+b;if(a){this.setYTicks(this.initPageY,a)}this.constrainY=!0},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var a=this.maintainOffset?this.lastPageX-this.initPageX:0,b=this.maintainOffset?this.lastPageY-this.initPageY:0;this.setInitPosition(a,b)}else {this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(d,a){if(!a){return d}else {if(a[0]>=d){return a[0]}else {var b,g,c,e,f;for(b=0,g=a.length;b=d){e=d-a[b];f=a[c]-d;return f>e?a[b]:a[c]}}return a[a.length-1]}}},toString:function(){return 'DragDrop '+this.id}},3,0,0,0,0,0,[Ext.dd,'DragDrop'],0);Ext.cmd.derive('Ext.dd.DD',Ext.dd.DragDrop,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},scroll:!0,autoOffset:function(a,b){var c=a-this.startPageX,d=b-this.startPageY;this.setDelta(c,d)},setDelta:function(a,b){this.deltaX=a;this.deltaY=b},setDragElPos:function(a,b){var c=this.getDragEl();this.alignElWithMouse(c,a,b)},alignElWithMouse:function(d,j,k){var a=this.getTargetCoord(j,k),c=d.dom?d:Ext.fly(d,'_dd'),e=c.getSize(),i=Ext.Element,b,g,f,h;if(!this.deltaSetXY){b=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};g=[Math.max(0,Math.min(a.x,b.width-e.width)),Math.max(0,Math.min(a.y,b.height-e.height))];c.setXY(g);f=this.getLocalX(c);h=c.getLocalY();this.deltaSetXY=[f-a.x,h-a.y]}else {b=this.cachedViewportSize;this.setLocalXY(c,Math.max(0,Math.min(a.x+this.deltaSetXY[0],b.width-e.width)),Math.max(0,Math.min(a.y+this.deltaSetXY[1],b.height-e.height)))}this.cachePosition(a.x,a.y);this.autoScroll(a.x,a.y,d.offsetHeight,d.offsetWidth);return a},cachePosition:function(b,c){if(b){this.lastPageX=b;this.lastPageY=c}else {var a=Ext.fly(this.getEl()).getXY();this.lastPageX=a[0];this.lastPageY=a[1]}},autoScroll:function(e,f,m,n){if(this.scroll){var g=Ext.Element.getViewportHeight(),h=Ext.Element.getViewportWidth(),b=this.DDMInstance.getScrollTop(),a=this.DDMInstance.getScrollLeft(),l=m+f,j=n+e,k=g+b-f-this.deltaY,i=h+a-e-this.deltaX,d=40,c=document.all?80:30;if(l>g&&k0&&f-bh&&i0&&e-athis.maxX){a=this.maxX}}if(this.constrainY){if(bthis.maxY){b=this.maxY}}a=this.getTick(a,this.xTicks);b=this.getTick(b,this.yTicks);return {x:a,y:b}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=this.config.scroll!==!1},b4MouseDown:function(b){var a=b.getXY();this.autoOffset(a[0],a[1])},b4Drag:function(b){var a=b.getXY();this.setDragElPos(a[0],a[1])},toString:function(){return 'DD '+this.id},getLocalX:function(a){return a.getLocalX()},setLocalXY:function(a,b,c){a.setLocalXY(b,c)}},3,0,0,0,0,0,[Ext.dd,'DD'],0);Ext.cmd.derive('Ext.dd.DDProxy',Ext.dd.DD,{statics:{dragElId:'ygddfdiv'},constructor:function(a,c,b){if(a){this.init(a,c,b);this.initFrame()}},resizeFrame:!0,centerFrame:!1,createFrame:function(){var d=this,c=document.body,a,b;if(!c||!c.firstChild){Ext.defer(function(){d.createFrame()},50);return}a=this.getDragEl();if(!a){a=document.createElement('div');a.id=this.dragElId;a.setAttribute('role','presentation');b=a.style;b.position='absolute';b.visibility='hidden';b.cursor='move';b.border='2px solid #aaa';b.zIndex=999;c.insertBefore(a,c.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=this.config.resizeFrame!==!1;this.centerFrame=this.config.centerFrame;this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(d,e){var a=this,b=a.getDragEl(),c=b.style;a._resizeProxy();if(a.centerFrame){a.setDelta(Math.round(parseInt(c.width,10)/2),Math.round(parseInt(c.height,10)/2))}a.setDragElPos(d,e);Ext.fly(b).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(d){var a=d.getXY(),b=a[0],c=a[1];this.autoOffset(b,c);this.setDragElPos(b,c)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl(),a=this.getDragEl();a.style.visibility='';this.beforeMove();b.style.visibility='hidden';Ext.dd.DDM.moveToEl(b,a);a.style.visibility='hidden';b.style.visibility='';this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return 'DDProxy '+this.id}},3,0,0,0,0,0,[Ext.dd,'DDProxy'],0);Ext.cmd.derive('Ext.dd.StatusProxy',Ext.Component,{animRepair:!1,childEls:['ghost'],renderTpl:[''],repairCls:'x-dd-drag-repair',ariaRole:'presentation',skipLayout:!0,constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:'visibility',hidden:!0,floating:!0,id:b.id||Ext.id(),cls:'x-dd-drag-proxy '+this.dropNotAllowed,shadow:a.shadow||!1,renderTo:Ext.getDetachedBody()});Ext.Component.prototype.constructor.apply(this,arguments);this.dropStatus=this.dropNotAllowed},dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',setStatus:function(a){a=a||this.dropNotAllowed;if(this.dropStatus!==a){this.el.replaceCls(this.dropStatus,a);this.dropStatus=a}},reset:function(c){var a=this,b='x-dd-drag-proxy ';a.el.replaceCls(b+a.dropAllowed,b+a.dropNotAllowed);a.dropStatus=a.dropNotAllowed;if(c){a.ghost.setHtml('')}},update:function(a){if(typeof a==='string'){this.ghost.setHtml(a)}else {this.ghost.setHtml('');a.style.margin='0';this.ghost.dom.appendChild(a)}var b=this.ghost.dom.firstChild;if(b){Ext.fly(b).setStyle('float','none')}},getGhost:function(){return this.ghost},hide:function(a){Ext.Component.prototype.hide.call(this);if(a){this.reset(!0)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(b,c,d){var a=this;a.callback=c;a.scope=d;if(b&&a.animRepair!==!1){a.el.addCls(a.repairCls);a.el.setUnderlaysVisible(!1);a.anim=a.el.animate({duration:a.repairDuration||500,easing:'ease-out',to:{x:b[0],y:b[1]},stopAnimation:!0,callback:a.afterRepair,scope:a})}else {a.afterRepair()}},afterRepair:function(){var a=this;a.hide(!0);a.el.removeCls(a.repairCls);if(typeof a.callback==='function'){a.callback.call(a.scope||a)}delete a.callback;delete a.scope}},1,0,['component','box'],{'component':!0,'box':!0},0,0,[Ext.dd,'StatusProxy'],0);Ext.cmd.derive('Ext.dd.DragSource',Ext.dd.DDProxy,{dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',animRepair:!0,repairHighlightColor:'c3daf9',constructor:function(b,a){this.el=Ext.get(b);if(!this.dragData){this.dragData={}}Ext.apply(this,a);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy({id:this.el.id+'-drag-status-proxy',animRepair:this.animRepair})}Ext.dd.DDProxy.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:!1,isTarget:!1,scroll:this.scroll===!0});this.dragging=!1},getDragData:function(a){return this.dragData},onDragEnter:function(c,b){var a=Ext.dd.DragDropManager.getDDById(b),d;this.cachedTarget=a;if(this.beforeDragEnter(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyEnter(this,c,this.dragData);this.proxy.setStatus(d)}else {this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(a,c,b)}}},beforeDragEnter:function(a,c,b){return !0},onDragOver:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b),d;if(this.beforeDragOver(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyOver(this,c,this.dragData);this.proxy.setStatus(d)}if(this.afterDragOver){this.afterDragOver(a,c,b)}}},beforeDragOver:function(a,c,b){return !0},onDragOut:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragOut(a,c,b)!==!1){if(a.isNotifyTarget){a.notifyOut(this,c,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,c,b)}}this.cachedTarget=null},beforeDragOut:function(a,c,b){return !0},onDragDrop:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragDrop(a,c,b)!==!1){if(a.isNotifyTarget){if(a.notifyDrop(this,c,this.dragData)!==!1){this.onValidDrop(a,c,b)}else {this.onInvalidDrop(a,c,b)}}else {this.onValidDrop(a,c,b)}if(this.afterDragDrop){this.afterDragDrop(a,c,b)}}delete this.cachedTarget},beforeDragDrop:function(a,c,b){return !0},onValidDrop:function(a,c,b){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(a,c,b)}},getRepairXY:function(b,a){return this.el.getXY()},onInvalidDrop:function(c,b,d){var a=this;if(!b){b=c;c=null;d=b.getTarget().id}if(a.beforeInvalidDrop(c,b,d)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}a.proxy.repair(a.getRepairXY(b,a.dragData),a.afterRepair,a);if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}},afterRepair:function(){var a=this;if(Ext.enableFx){a.el.highlight(a.repairHighlightColor)}a.dragging=!1},beforeInvalidDrop:function(a,c,b){return !0},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==!1){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return !0},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(!0);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=!1;this.dragging=!0;this.proxy.update('');this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(b,c){var a=this.el.dom.cloneNode(!0);a.id=Ext.id();this.proxy.update(a);this.onStartDrag(b,c);return !0},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(!0);this.dragging=!1},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(a){},endDrag:function(a){this.onEndDrag(this.dragData,a)},onEndDrag:function(a,b){},autoOffset:function(a,b){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DDProxy.prototype.destroy.call(this);Ext.destroy(this.proxy)}},1,0,0,0,0,0,[Ext.dd,'DragSource'],0);Ext.cmd.derive('Ext.panel.Proxy',Ext.Base,{alternateClassName:'Ext.dd.PanelProxy',moveOnDrag:!0,constructor:function(c,b){var a=this;a.panel=c;a.id=a.panel.id+'-ddproxy';Ext.apply(a,b)},insertProxy:!0,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost.el},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){var a=this;if(a.ghost){if(a.proxy){a.proxy.destroy();delete a.proxy}a.panel.unghost(null,a.moveOnDrag);delete a.ghost}},show:function(){var a=this,b;if(!a.ghost){b=a.panel.getSize();a.panel.el.setVisibilityMode(Ext.Element.DISPLAY);a.ghost=a.panel.ghost();if(a.insertProxy){a.proxy=a.panel.el.insertSibling({role:'presentation',cls:'x-panel-dd-spacer'});a.proxy.setSize(b)}}},repair:function(c,a,b){this.hide();Ext.callback(a,b||this)},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}},1,0,0,0,0,0,[Ext.panel,'Proxy',Ext.dd,'PanelProxy'],0);Ext.cmd.derive('Ext.panel.DD',Ext.dd.DragSource,{constructor:function(b,c){var a=this;a.panel=b;a.dragData={panel:b};a.panelProxy=new Ext.panel.Proxy(b,c);a.proxy=a.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,c);a.setupEl(b)},setupEl:function(c){var a=this,b=c.header,d=c.body;if(b){a.setHandleElId(b.id);d=b.el}if(d){d.setStyle('cursor','move');a.scroll=!1}else {c.on('boxready',a.setupEl,a,{single:!0})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(b){var a=b.getXY(),c=a[0],d=a[1];this.autoOffset(c,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return !0},createFrame:Ext.emptyFn,getDragEl:function(b){var a=this.panelProxy.ghost;if(a){return a.el.dom}},endDrag:function(a){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)},onInvalidDrop:function(d,b,c){var a=this;if(a.beforeInvalidDrop(d,b,c)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,c)}}}},1,0,0,0,0,0,[Ext.panel,'DD'],0);Ext.cmd.derive('Ext.layout.component.Dock',Ext.layout.component.Component,{alternateClassName:'Ext.layout.component.AbstractDock',type:'dock',horzAxisProps:{name:'horz',oppositeName:'vert',dockBegin:'left',dockEnd:'right',horizontal:!0,marginBegin:'margin-left',maxSize:'maxWidth',minSize:'minWidth',pos:'x',setSize:'setWidth',shrinkWrapDock:'shrinkWrapDockWidth',size:'width',sizeModel:'widthModel'},vertAxisProps:{name:'vert',oppositeName:'horz',dockBegin:'top',dockEnd:'bottom',horizontal:!1,marginBegin:'margin-top',maxSize:'maxHeight',minSize:'minHeight',pos:'y',setSize:'setHeight',shrinkWrapDock:'shrinkWrapDockHeight',size:'height',sizeModel:'heightModel'},initializedBorders:-1,horizontalCollapsePolicy:{width:!0,x:!0},verticalCollapsePolicy:{height:!0,y:!0},finishRender:function(){var a=this,b,c;Ext.layout.component.Component.prototype.finishRender.call(this);b=a.getRenderTarget();c=a.getDockedItems();a.finishRenderItems(b,c)},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},noBorderClasses:['x-docked-noborder-top','x-docked-noborder-right','x-docked-noborder-bottom','x-docked-noborder-left'],noBorderClassesSides:{top:'x-docked-noborder-top',right:'x-docked-noborder-right',bottom:'x-docked-noborder-bottom',left:'x-docked-noborder-left'},borderWidthProps:{top:'border-top-width',right:'border-right-width',bottom:'border-bottom-width',left:'border-left-width'},_itemCls:'x-docked',handleItemBorders:function(){var c=this,b=c.owner,a,l,k=c.lastDockedItems,j=c.borders,m=b.dockedItems.generation,i=c.noBorderClassesSides,n=c.borderWidthProps,f,h,d,g,e,o=c.collapsed;if(c.initializedBorders===m||b.border&&!b.manageBodyBorders||b.collapsed&&b.collapseMode==='mini'){return}c.initializedBorders=m;c.collapsed=!1;c.lastDockedItems=l=c.getLayoutItems();c.collapsed=o;a={top:[],right:[],bottom:[],left:[]};for(f=0,h=l.length;fj){b=i.constrainedMax;m=j}else {if(hj){c=i.constrainedMax;l=j}else {if(h',addDocked:function(c,d){var b=this,k=b.rendered,f=0,g=b.dockedItems,i=g.getCount(),e,h,a,j;c=b.prepareItems(c);j=c.length;if(k){Ext.suspendLayouts()}if(d===undefined){d=i}else {d=Math.min(d,i)}for(;f','
    ','{headingText}','
    ','','{% this.renderDockedItems(out,values,0); %}','
    {bodyCls}',' {baseCls}-body-{ui}',' {parent.baseCls}-body-{parent.ui}-{.}','{childElCls}"','',' {$}="{.}"','',' role="presentation"','',' style="{bodyStyle}">','{%this.renderContainer(out,values);%}','
    ','{% this.renderDockedItems(out,values,1); %}'],headerPosition:'top',iconAlign:'left',titleAlign:'left',titleRotation:'default',beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titleRotation:null},animCollapse:Ext.enableFx,border:!0,closable:!1,closeAction:'destroy',closeToolText:'Close panel',collapsed:!1,collapsedCls:'collapsed',collapseFirst:!0,collapsible:undefined,collapseToolText:'Collapse panel',expandToolText:'Expand panel',constrain:!1,constrainHeader:!1,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:!0,frame:!1,frameHeader:!0,hideCollapseTool:!1,manageHeight:!0,maskElement:'el',minButtonWidth:75,preventHeader:!1,shrinkWrapDock:!1,titleCollapse:undefined,baseCls:'x-panel',bodyPosProps:{x:'x',y:'y'},componentLayout:'dock',contentPaddingProperty:'bodyPadding',emptyArray:[],isPanel:!0,defaultBindProperty:'title',addBodyCls:function(c){var a=this,b=a.rendered?a.body:a.getProtoBody();b.addCls(c);return a},addTool:function(b){if(!Ext.isArray(b)){b=[b]}var c=this,a=c.header,g=b.length,f=c.tools,e,d;if(!a||!a.isHeader){a=null;if(!f){c.tools=f=[]}}for(e=0;e=e||c[b]>0){if(b>=e){b=0;f=0;h++;for(a=0;a0){c[a]--}}}else {b++}}i.push({rowIdx:h,cellIdx:f});for(a=g.colspan||1;a;--a){c[b]=g.rowspan||1;++b}++f}return i},getRenderTree:function(){var a=this,h=a.getLayoutItems(),i=[],m=Ext.apply({tag:'table',id:a.owner.id+'-table','data-ref':'table',role:'presentation',cls:a.tableCls,cellspacing:0,cellpadding:0,cn:{tag:'tbody',id:a.owner.id+'-tbody','data-ref':'tbody',role:'presentation',cn:i}},a.tableAttrs),k=a.tdAttrs,d,n=h.length,b,f,c,g,j,e,l;l=a.calculateCells(h);for(d=0;d0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(a.is(this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(e,b){var a=this,d=a.items,c=a.addHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.add(b)}}},onItemRemove:function(e,b){var a=this,d=a.items,c=a.removeHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.remove(b)}}},onContainerAdd:function(c,i){var a=this,d,e,h=a.handleAdd,g=a.handleRemove,b,f;if(c.isContainer){c.on('add',h,a);c.on('dockedadd',h,a);c.on('remove',g,a);c.on('dockedremove',g,a)}if(i!==!0){d=c.query(a.selector);for(b=0,e=d.length;bcontainer');for(b=0,e=d.length;ba.tolerance){a.triggerStart(b)}else {return}}if(a.fireEvent('mousemove',a,b)===!1){a.onMouseUp(b)}else {a.onDrag(b);a.fireEvent('drag',a,b)}},onMouseUp:function(b){var a=this;a.mouseIsDown=!1;if(a.mouseIsOut){a.mouseIsOut=!1;a.onMouseOut(b)}if(a.preventDefault!==!1){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent('mouseup',a,b);a.endDrag(b)},endDrag:function(b){var a=this,c=a.active;Ext.getDoc().un({mousemove:a.onMouseMove,mouseup:a.onMouseUp,selectstart:a.stopSelect,capture:!0,scope:a});a.clearStart();a.active=!1;if(c){a.dragEnded=!0;a.onEnd(b);a.fireEvent('dragend',a,b)}a._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=!0;a.onStart(b);a.fireEvent('dragstart',a,b)},clearStart:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return !1},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var a=this;if(a.constrainTo){if(a.constrainTo instanceof Ext.util.Region){return a.constrainTo}if(!a._constrainRegion){a._constrainRegion=Ext.fly(a.constrainTo).getViewRegion()}}else {if(!a._constrainRegion){a._constrainRegion=a.getDragCt().getViewRegion()}}return a._constrainRegion},getXY:function(a){return a?this.constrainModes[a](this,this.lastXY):this.lastXY},getOffset:function(c){var a=this.getXY(c),b=this.startXY;return [a[0]-b[0],a[1]-b[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(d,b){var a=d.dragRegion,c=d.getConstrainRegion();if(!c){return b}a.x=a.left=a[0]=a.right=b[0];a.y=a.top=a[1]=a.bottom=b[1];a.constrainTo(c);return [a.left,a.top]},dragTarget:function(e,c){var f=e.startXY,a=e.startRegion.copy(),b=e.getConstrainRegion(),d;if(!b){return c}a.translateBy(c[0]-f[0],c[1]-f[1]);if(a.right>b.right){c[0]+=d=b.right-a.right;a.left+=d}if(a.leftb.bottom){c[1]+=d=b.bottom-a.bottom;a.top+=d}if(a.top[flex]'),o=j.length,h=n==='vertical',i=0,d=h?'width':'height',m=0,g,a;for(;i',tabGuardIndex:0},tabGuardPositionAttribute:'data-tabguardposition',privates:{initTabGuards:function(){var a=this,f=a.tabGuardPositionAttribute,c=a.tabGuardBeforeEl,d=a.tabGuardAfterEl,e=a.tabGuardIndex,b;if(!a.rendered||!a.tabGuard){return}b=a.el.findTabbableElements({skipSelf:!0});if(b[0]&&b[0].hasAttribute(f)){b.shift()}if(b.length&&b[b.length-1].hasAttribute(f)){b.pop()}if(b.length){c.dom.setAttribute('tabIndex',e);c.on('focusenter',a.onTabGuardFocusEnter,a);d.dom.setAttribute('tabIndex',e);d.on('focusenter',a.onTabGuardFocusEnter,a)}else {c.dom.removeAttribute('tabIndex');c.un('focusenter',a.onTabGuardFocusEnter,a);d.dom.removeAttribute('tabIndex');d.un('focusenter',a.onTabGuardFocusEnter,a)}},onTabGuardFocusEnter:function(j,i){var h=this,e=h.el,g=h.tabGuardPositionAttribute,f=i.getAttribute(g),d=j.relatedTarget,a,c,b;if(!d.hasAttribute(g)&&d!==e.dom&&e.contains(d)){c=f==='before'?!1:!0}else {c=f==='before'?!0:!1}a=e.findTabbableElements({skipSelf:!0});a.shift();a.pop();b=c?a[0]:a[a.length-1];if(b){b.focus()}}}},0,0,0,0,0,0,[Ext.util,'FocusTrap'],0);Ext.cmd.derive('Ext.window.Window',Ext.panel.Panel,{alternateClassName:'Ext.Window',baseCls:'x-window',resizable:!0,draggable:!0,constrain:!1,constrainHeader:!1,plain:!1,minimizable:!1,maximizable:!1,minHeight:50,minWidth:50,expandOnShow:!0,collapsible:!1,closable:!0,hidden:!0,autoRender:!0,hideMode:'offsets',floating:!0,itemCls:'x-window-item',overlapHeader:!0,ignoreHeaderBorderManagement:!0,alwaysFramed:!0,isRootCfg:{isRoot:!0},isWindow:!0,ariaRole:'dialog',initComponent:function(){var a=this;a.frame=!1;Ext.panel.Panel.prototype.initComponent.call(this);if(a.plain){a.addClsWithUI('plain')}a.addStateEvents(['maximize','restore','resize','dragend'])},getElConfig:function(){var b=this,a;a=Ext.panel.Panel.prototype.getElConfig.call(this);a.tabIndex=-1;return a},getFocusEl:function(){return this.getDefaultFocus()||this.el},getState:function(){var a=this,e=Ext.panel.Panel.prototype.getState.call(this)||{},c=!!a.maximized,d=a.ghostBox,b;e.maximized=c;if(c){b=a.restorePos}else {if(d){b=[d.x,d.y]}else {b=a.getPosition()}}Ext.apply(e,{size:c?a.restoreSize:a.getSize(),pos:b});return e},applyState:function(a){var b=this;if(a){b.maximized=a.maximized;if(b.maximized){b.hasSavedRestore=!0;b.restoreSize=a.size;b.restorePos=a.pos}else {Ext.apply(b,{width:a.size.width,height:a.size.height,x:a.pos[0],y:a.pos[1]})}}},onRender:function(c,b){var a=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(a.header){a.header.on({scope:a,click:a.onHeaderClick})}if(a.maximizable){a.header.on({scope:a,dblclick:a.toggleMaximize})}},afterRender:function(){var a=this,c=a.header,b;if(a.maximized){a.maximized=!1;a.maximize();if(c){c.removeCls(c.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);if(a.closable){b=a.getKeyMap();b.on(27,a.onEsc,a)}else {b=a.keyMap}if(b&&a.hidden){b.disable()}},onEsc:function(b,a){a.stopEvent();this.close()},beforeDestroy:function(){var a=this;if(a.rendered){Ext.un('resize',a.onWindowResize,a);delete a.animateTarget;a.hide();Ext.destroy(a.keyMap)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},addTools:function(){var a=this,b=[];Ext.panel.Panel.prototype.addTools.call(this);if(a.minimizable){b.push({type:'minimize',handler:'minimize',scope:a})}if(a.maximizable){b.push({type:a.maximized?'restore':'maximize',handler:'toggleMaximize',scope:a})}if(b.length){a.addTool(b)}},onShow:function(){var a=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(a.expandOnShow){a.expand(!1)}a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.enable()}},doClose:function(){var a=this;if(a.hidden){a.fireEvent('close',a);if(a.closeAction==='destroy'){a.destroy()}}else {a.hide(a.animateTarget,a.doClose,a)}},afterHide:function(){var a=this;a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.disable()}Ext.panel.Panel.prototype.afterHide.apply(this,arguments)},onWindowResize:function(){var a=this,b;if(!a.destroyed){if(a.maximized){a.fitContainer()}else {b=a.getSizeModel();if(b.width.natural||b.height.natural){a.updateLayout()}a.doConstrain()}}},minimize:function(){this.fireEvent('minimize',this);return this},resumeHeaderLayout:function(a){this.header.resumeLayouts(a?this.isRootCfg:null)},afterCollapse:function(){var a=this,b=a.header,c=a.tools;if(b&&a.maximizable){b.suspendLayouts();c.maximize.hide();this.resumeHeaderLayout(!0)}if(a.resizer){a.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var a=this,c=a.header,d=a.tools,b;if(c){c.suspendLayouts();if(a.maximizable){d.maximize.show();b=!0}this.resumeHeaderLayout(b)}if(a.resizer){a.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(c){var a=this,b=a.header,f=a.tools,g=a.width,e=a.height,h,d;if(!a.maximized){a.expand(!1);if(!a.hasSavedRestore){h=a.restoreSize={width:g?g:null,height:e?e:null};a.restorePos=a.getPosition()}if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('restore')}if(a.collapseTool){a.collapseTool.hide();d=!0}a.resumeHeaderLayout(d)}a.el.disableShadow();if(a.dd){a.dd.disable();if(b){b.removeCls(b.indicateDragCls)}}if(a.resizer){a.resizer.disable()}a.el.addCls('x-window-maximized');a.container.addCls('x-window-maximized-ct');a.syncMonitorWindowResize();a.fitContainer(c=c||!!a.animateTarget?{callback:function(){a.maximized=!0;a.fireEvent('maximize',a)}}:null);if(!c){a.maximized=!0;a.fireEvent('maximize',a)}}return a},restore:function(c){var a=this,f=a.tools,b=a.header,d=a.restoreSize,e;if(a.maximized){a.hasSavedRestore=null;a.removeCls('x-window-maximized');if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('maximize')}if(a.collapseTool){a.collapseTool.show();e=!0}a.resumeHeaderLayout(e)}d.x=a.restorePos[0];d.y=a.restorePos[1];a.setBox(d,c=c||!!a.animateTarget?{callback:function(){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}:null);a.restorePos=a.restoreSize=null;if(a.dd){a.dd.enable();if(b){b.addCls(b.indicateDragCls)}}if(a.resizer){a.resizer.enable()}a.container.removeCls('x-window-maximized-ct');a.syncMonitorWindowResize();if(!c){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}return a},syncMonitorWindowResize:function(){var a=this,b=a._monitoringResize,d=a.monitorResize||a.constrain||a.constrainHeader||a.maximized,c=a.hidden||a.destroying||a.destroyed;if(d&&!c){if(!b){Ext.on('resize',a.onWindowResize,a,{buffer:1});a._monitoringResize=!0}}else {if(b){Ext.un('resize',a.onWindowResize,a);a._monitoringResize=!1}}},toggleMaximize:function(){return this[this.maximized?'restore':'maximize']()},createGhost:function(){var a=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);a.xtype='window';a.focusOnToFront=!1;return a},getDefaultFocus:function(){var d=this,b,a=d.defaultFocus,c;if(a!==undefined){if(Ext.isNumber(a)){b=d.query('button')[a]}else {if(Ext.isString(a)){c=a;if(Ext.validIdRe.test(c)){b=d.down(Ext.makeIdSelector(c))}if(!b){b=d.down(c)}}else {if(a.focus){b=a}}}}return b},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(b,c){var a;if(b.el.contains(c.getTarget())){a=this.getDefaultFocus();if(a){a.focus()}}},initResizable:function(){Ext.panel.Panel.prototype.initResizable.apply(this,arguments);if(this.maximized){this.resizer.disable()}}}},0,['window'],['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},['widget.window'],[[Ext.util.FocusTrap.prototype.mixinId||Ext.util.FocusTrap.$className,Ext.util.FocusTrap]],[Ext.window,'Window',Ext,'Window'],0);Ext.cmd.derive('Ext.form.Labelable',Ext.Mixin,{isLabelable:!0,mixinConfig:{id:'labelable',on:{beforeRender:'beforeLabelRender',onRender:'onLabelRender'}},config:{childEls:['labelEl','bodyEl','errorEl','errorWrapEl','ariaErrorEl']},labelableRenderTpl:['{beforeLabelTpl}','','{afterLabelTpl}','','','
    ','','
    ','
    ',{disableFormats:!0}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['','
      ','
    • {.}
    • ','
    ','
    '],plaintextActiveErrorsTpl:['','\n{.}',''],isFieldLabelable:!0,formItemCls:'x-form-item',labelCls:'x-form-item-label',topLabelCls:'x-form-item-label-top',rightLabelCls:'x-form-item-label-right',labelInnerCls:'x-form-item-label-inner',topLabelSideErrorCls:'x-form-item-label-top-side-error',errorMsgCls:'x-form-error-msg',errorWrapCls:'x-form-error-wrap',errorWrapSideCls:'x-form-error-wrap-side',errorWrapUnderCls:'x-form-error-wrap-under',errorWrapUnderSideLabelCls:'x-form-error-wrap-under-side-label',baseBodyCls:'x-form-item-body',invalidIconCls:'x-form-invalid-icon',invalidUnderCls:'x-form-invalid-under',noLabelCls:'x-form-item-no-label',fieldBodyCls:'',invalidCls:'x-form-invalid',fieldLabel:undefined,labelAlign:'left',labelWidth:100,labelPad:5,labelSeparator:':',hideLabel:!1,hideEmptyLabel:!0,preventMark:!1,autoFitErrors:!0,msgTarget:'qtip',msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:!0,labelableInsertions:['beforeBodyEl','afterBodyEl','beforeLabelTpl','afterLabelTpl','beforeSubTpl','afterSubTpl','beforeLabelTextTpl','afterLabelTextTpl','labelAttrTpl'],statics:{initTip:function(){var b=this.tip,a,c;if(b){return}a={id:'ext-form-error-tip',ui:'form-invalid'};if(Ext.supports.Touch){a.dismissDelay=0;a.anchor='top';a.showDelay=0;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.anchorTarget).getWidth()}}}b=this.tip=Ext.create('Ext.tip.QuickTip',a);c=Ext.apply({},b.tagConfig);c.attribute='errorqtip';b.setTagConfig(c)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var a=this,b=a.padding;if(b){a.padding=undefined;a.extraMargins=Ext.Element.parseBox(b)}if(Ext.isIE8){a.restoreDisplay=Ext.Function.createDelayed(a.doRestoreDisplay,0,a)}if(!a.activeErrorsTpl){if(a.msgTarget==='title'){a.activeErrorsTpl=a.plaintextActiveErrorsTpl}else {a.activeErrorsTpl=a.htmlActiveErrorsTpl}}a.addCls([a.formItemCls,a.formItemCls+'-'+a.ui]);a.lastActiveError='';a.enableBubble('errorchange')},trimLabelSeparator:function(){var b=this,c=b.labelSeparator,a=b.fieldLabel||'',d=a.substr(a.length-1);return d===c?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(b){b=b||'';var a=this,f=a.labelSeparator,h=a.labelEl,c=a.errorWrapEl,g=a.labelAlign!=='top',e=a.noLabelCls,d=a.errorWrapUnderSideLabelCls;a.fieldLabel=b;if(a.rendered){if(Ext.isEmpty(b)&&a.hideEmptyLabel){a.addCls(e);if(g&&c){c.removeCls(d)}}else {if(f){b=a.trimLabelSeparator()+f}h.dom.firstChild.innerHTML=b;a.removeCls(e);if(g&&c){c.addCls(d)}}a.updateLayout()}},setHideLabel:function(b){var a=this;if(b!==a.hideLabel){a.hideLabel=b;if(a.rendered){a[b?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},setHideEmptyLabel:function(b){var a=this,c;if(b!==a.hideEmptyLabel){a.hideEmptyLabel=b;if(a.rendered&&!a.hideLabel){c=b&&!a.getFieldLabel();a[c?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},getInsertionRenderData:function(c,d){var e=d.length,b,a;while(e--){b=d[e];a=this[b];if(a){if(typeof a!=='string'){if(!a.isTemplate){a=Ext.XTemplate.getTpl(this,b)}a=a.apply(c)}}c[b]=a||''}return c},getLabelableRenderData:function(){var a=this,l=a.labelAlign,o=l==='top',r=l==='right',c=a.msgTarget==='side',h=a.msgTarget==='under',q=a.errorMsgCls,b=a.labelPad,m=a.labelWidth,d=a.labelClsExtra||'',j=c?a.errorWrapSideCls:a.errorWrapUnderCls,g='',f='',p=a.hasVisibleLabel(),k=a.autoFitErrors,e=a.defaultBodyWidth,n,i;if(o){d+=' '+a.topLabelCls;if(b){f='padding-bottom:'+b+'px;'}if(c&&!k){d+=' '+a.topLabelSideErrorCls}}else {if(r){d+=' '+a.rightLabelCls}if(b){g+=a.getHorizontalPaddingStyle()+b+'px;'}g+='width:'+(m+(b?b:0))+'px;';f='width:'+m+'px'}if(p){if(!o&&h){j+=' '+a.errorWrapUnderSideLabelCls}}if(e){n='min-width:'+e+'px;max-width:'+e+'px;'}i={id:a.id,inputId:a.getInputId(),labelCls:a.labelCls,labelClsExtra:d,labelStyle:g+(a.labelStyle||''),labelInnerStyle:f,labelInnerCls:a.labelInnerCls,unselectableCls:Ext.Element.unselectableCls,bodyStyle:n,baseBodyCls:a.baseBodyCls,fieldBodyCls:a.fieldBodyCls,extraFieldBodyCls:a.extraFieldBodyCls,errorWrapCls:a.errorWrapCls,errorWrapExtraCls:j,renderError:c||h,invalidMsgCls:c?a.invalidIconCls:h?a.invalidUnderCls:'',errorMsgCls:q,growCls:a.grow?a.growCls:'',tipAnchorTarget:a.id+'-inputEl',errorWrapStyle:c&&!k?'visibility:hidden':'display:none',fieldLabel:a.getFieldLabel(),labelSeparator:a.labelSeparator};a.getInsertionRenderData(i,a.labelableInsertions);return i},getHorizontalPaddingStyle:function(){return 'padding-right:'},beforeLabelRender:function(){var a=this;a.setFieldDefaults(a.getInherited().fieldDefaults);if(a.ownerLayout){a.addCls('x-'+a.ownerLayout.type+'-form-item')}if(!a.hasVisibleLabel()){a.addCls(a.noLabelCls)}},onLabelRender:function(){var a=this,f={},e=Ext.Element,d=a.errorWrapEl,c,b;if(d){d.setVisibilityMode(a.msgTarget==='side'&&!a.autoFitErrors?e.VISIBILITY:e.DISPLAY)}if(a.extraMargins){c=a.el.getMargin();for(b in c){if(c.hasOwnProperty(b)){f['margin-'+b]=c[b]+a.extraMargins[b]+'px'}}a.el.setStyle(f)}},hasVisibleLabel:function(){if(this.hideLabel){return !1}return !(this.hideEmptyLabel&&!this.getFieldLabel())},getSubTplMarkup:function(){return ''},getInputId:function(){return ''},getActiveError:function(){return this.activeError||''},hasActiveError:function(){return !!this.getActiveError()},setActiveError:function(a){this.setActiveErrors(a)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(c){var a=this,h=a.errorWrapEl,b=a.msgTarget,g=b==='side',i=b==='qtip',e,d,j,f;c=Ext.Array.from(c);j=a.getTpl('activeErrorsTpl');a.activeErrors=c;d=a.activeError=j.apply({fieldLabel:a.fieldLabel,errors:c,listCls:'x-list-plain'});a.renderActiveError();if(a.rendered){e=a.getActionEl();if(g){a.errorEl.dom.setAttribute('data-errorqtip',d)}else {if(i){e.dom.setAttribute('data-errorqtip',d)}else {if(b==='title'){e.dom.setAttribute('title',d)}}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML=c.join('. ');e.dom.setAttribute('aria-describedby',a.ariaErrorEl.id)}if(g||i){Ext.form.Labelable.initTip()}if(!a.msgTargets[b]){f=Ext.get(b);if(f){f.dom.innerHTML=d}}}if(h){h.setVisible(c.length>0);if(g&&a.autoFitErrors){a.labelEl.addCls(a.topLabelSideErrorCls)}a.updateLayout()}},unsetActiveError:function(){var a=this,e=a.errorWrapEl,b=a.msgTarget,f=a.restoreDisplay,c,d;if(a.hasActiveError()){delete a.activeError;delete a.activeErrors;a.renderActiveError();if(a.rendered){c=a.getActionEl();if(b==='qtip'){c.dom.removeAttribute('data-errorqtip')}else {if(b==='title'){c.dom.removeAttribute('title')}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML='';c.dom.removeAttribute('aria-describedby')}if(!a.msgTargets[b]){d=Ext.get(b);if(d){d.dom.innerHTML=''}}if(e){e.hide();if(b==='side'&&a.autoFitErrors){a.labelEl.removeCls(a.topLabelSideErrorCls)}a.updateLayout();if(f){a.el.dom.style.display='block';a.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=''}},renderActiveError:function(){var a=this,b=a.getActiveError(),c=!!b;if(b!==a.lastActiveError){a.lastActiveError=b;a.fireEvent('errorchange',a,b)}if(a.rendered&&!a.destroyed&&!a.preventMark){a.toggleInvalidCls(c);if(a.errorEl){a.errorEl.dom.innerHTML=b}}},toggleInvalidCls:function(a){this.el[a?'addCls':'removeCls'](this.invalidCls)},setFieldDefaults:function(b){var a;for(a in b){if(!this.hasOwnProperty(a)){this[a]=b[a]}}}},0,0,0,0,0,0,[Ext.form,'Labelable'],function(){if(Ext.supports.Touch){this.prototype.msgTarget='side'}});Ext.cmd.derive('Ext.form.field.Field',Ext.Base,{mixinId:'field',isFormField:!0,config:{validation:null,validationField:null},disabled:!1,submitValue:!0,validateOnChange:!0,valuePublishEvent:'change',suspendCheckChange:0,dirty:!1,initField:function(){var a=this,b=a.valuePublishEvent,d,c;a.initValue();if(Ext.isString(b)){a.on(b,a.publishValue,a)}else {for(c=0,d=b.length;c name="{name}"',' value="{[Ext.util.Format.htmlEncode(values.value)]}"',' placeholder="{placeholder}"','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}',' readonly="readonly"',' disabled="disabled"',' tabindex="{tabIdx}"',' style="{fieldStyle}"',' {$}="{.}"',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete="off"/>',{disableFormats:!0}],defaultBindProperty:'value',autoEl:{role:'presentation'},subTplInsertions:['inputAttrTpl'],childEls:['inputEl'],inputType:'text',isTextInput:!0,invalidText:'The value in this field is invalid',fieldCls:'x-form-field',focusCls:'form-focus',dirtyCls:'x-form-dirty',checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<=9)?['change','propertychange','keyup']:['change','input','textInput','keyup','dragdrop'],ignoreChangeRe:/data\-errorqtip|style\.|className/,checkChangeBuffer:50,liquidLayout:!0,readOnly:!1,readOnlyCls:'x-form-readonly',validateOnBlur:!0,hasFocus:!1,baseCls:'x-field',fieldBodyCls:'x-field-body',maskOnDisable:!1,stretchInputElFixed:!0,ariaEl:'inputEl',initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();a.initDefaultName();if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls('x-form-type-'+a.inputType)},initDefaultName:function(){var a=this;if(!a.name){a.name=a.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+'-inputEl')},getSubTplData:function(f){var a=this,e=a.inputType,d=a.getInputId(),b,c;b=Ext.apply({ui:a.ui,id:d,cmpId:a.id,name:a.name||d,disabled:a.disabled,readOnly:a.readOnly,value:a.getRawValue(),type:e,fieldCls:a.fieldCls,fieldStyle:a.getFieldStyle(),childElCls:f.childElCls,tabIdx:a.tabIndex,inputCls:a.inputCls,typeCls:'x-form-'+(a.isTextInput?'text':e)},a.subTplData);if(a.ariaRole){c={role:a.ariaRole,'aria-hidden':!!a.hidden,'aria-disabled':!!a.disabled,'aria-readonly':!!a.readOnly,'aria-invalid':!1};if(a.ariaLabel){c['aria-label']=a.ariaLabel}if(a.format&&a.formatText&&!b.title){c.title=Ext.String.formatEncode(a.formatText,a.format)}b.inputElAriaAttributes=Ext.apply(c,a.getAriaAttributes())}a.getInsertionRenderData(b,a.subTplInsertions);return b},getSubTplMarkup:function(f){var b=this,c=b.getSubTplData(f),e=b.getTpl('preSubTpl'),d=b.getTpl('postSubTpl'),a='';if(e){a+=e.apply(c)}a+=b.getTpl('fieldSubTpl').apply(c);if(d){a+=d.apply(c)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(b){var c=this,a=c.inputEl;if(a){a.applyStyles(b)}c.fieldStyle=b},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,!0):a||''},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==='file'},getSubmitData:function(){var a=this,b=null,c;if(!a.disabled&&a.submitValue){c=a.getSubmitValue();if(c!==null){b={};b[a.getName()]=c}}return b},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var a=this,b=a.inputEl?a.inputEl.getValue():Ext.valueFrom(a.rawValue,'');a.rawValue=b;return b},setRawValue:function(b){var a=this,c=a.rawValue;if(!a.transformRawValue.$nullFn){b=a.transformRawValue(b)}b=Ext.valueFrom(b,'');if(c===undefined||c!==b||a.valueContainsPlaceholder){a.rawValue=b;if(a.inputEl){a.bindChangeEvents(!1);a.inputEl.dom.value=b;a.bindChangeEvents(!0)}if(a.rendered&&a.reference){a.publishState('rawValue',b)}}return b},transformRawValue:Ext.identityFn,valueToRaw:function(a){return ''+Ext.valueFrom(a,'')},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var a=this,b=a.rawToValue(a.processRawValue(a.getRawValue()));a.value=b;return b},setValue:function(b){var a=this;a.setRawValue(a.valueToRaw(b));return a.mixins.field.setValue.call(a,b)},onBoxReady:function(){var a=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(a.setReadOnlyOnBoxReady){a.setReadOnly(a.readOnly)}},onDisable:function(){var a=this,b=a.inputEl;Ext.Component.prototype.onDisable.call(this);if(b){b.dom.disabled=!0;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=!0}}if(a.wasValid===!1){a.checkValidityChange(!0)}},onEnable:function(){var a=this,b=a.inputEl,d=a.preventMark,c;Ext.Component.prototype.onEnable.call(this);if(b){b.dom.disabled=!1}if(a.wasValid!==undefined){a.forceValidation=!0;a.preventMark=!a.hadErrorOnDisable;c=a.isValid();a.forceValidation=!1;a.preventMark=d;a.checkValidityChange(c)}delete a.hadErrorOnDisable},setReadOnly:function(b){var a=this,c=a.inputEl,d=a.readOnly;b=!!b;a[b?'addCls':'removeCls'](a.readOnlyCls);a.readOnly=b;if(c){c.dom.readOnly=b;a.ariaEl.dom.setAttribute('aria-readonly',b)}else {if(a.rendering){a.setReadOnlyOnBoxReady=!0}}if(b!==d){a.fireEvent('writeablechange',a,b)}},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent('specialkey',this,a)}},initEvents:function(){var a=this,d=a.inputEl,f=a.onFieldMutation,e=a.checkChangeEvents,g=e.length,c,b;if(d){a.mon(d,Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress',a.fireKey,a);for(c=0;c style="{triggerStyle}">','{[values.$trigger.renderBody(values)]}',''],statics:{weightComparator:function(a,b){return a.weight-b.weight}},constructor:function(c){var a=this,b;Ext.apply(a,c);if(a.compat4Mode){b=a.cls;a.focusCls=[a.focusCls,b+'-focus'];a.overCls=[a.overCls,b+'-over'];a.clickCls=[a.clickCls,b+'-click']}},afterFieldRender:function(){this.initEvents()},destroy:function(){var a=this;a.clickRepeater=a.el=Ext.destroy(a.clickRepeater,a.el);a.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=!0;if(a){a.hide()}},initEvents:function(){var a=this,b=a.isFieldEnabled,c=a.getStateEl(),d=a.el;c.addClsOnOver(a.overCls,b,a);c.addClsOnClick(a.clickCls,b,a);if(a.repeatClick){a.clickRepeater=new Ext.util.ClickRepeater(d,{preventDefault:!0,handler:a.onClick,listeners:{mousedown:a.onClickRepeaterMouseDown,scope:a},scope:a})}else {a.field.mon(d,{click:a.onClick,mousedown:a.onMouseDown,scope:a})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=!1;if(a.hidden||!c||!a.rendered||a.destroyed){b=!0}return !b},onClick:function(){var a=this,c=arguments,e=a.clickRepeater?c[1]:c[0],d=a.handler,b=a.field;if(d&&!b.readOnly&&a.isFieldEnabled()){Ext.callback(a.handler,a.scope,[b,a,e],0,b)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=='touch'&&!this.field.owns(Ext.Element.getActiveElement())){this.field.inputEl.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==='mousedown'){this.field.inputEl.focus()}a.preventDefault()},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var a=this,b=a.el=a.field.triggerWrap.selectNode('#'+a.domId,!1);b.setVisibilityMode(Ext.Element.DISPLAY);a.rendered=!0},renderBody:function(b){var a=this,c=a.bodyTpl;Ext.apply(b,a.getBodyRenderData());return c?Ext.XTemplate.getTpl(a,'bodyTpl').apply(b):''},renderTrigger:function(b){var a=this,d=a.width,c=a.hidden?'display:none;':'';if(d){c+='width:'+d}return Ext.XTemplate.getTpl(a,'renderTpl').apply({$trigger:a,fieldData:b,ui:b.ui,childElCls:b.childElCls,triggerId:a.domId=a.field.id+'-trigger-'+a.id,cls:a.cls,triggerStyle:c,extraCls:a.extraCls,baseCls:a.baseCls})},setHidden:function(a){if(a!==this.hidden){this[a?'hide':'show']()}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=!1;if(a){a.show()}}},1,0,0,0,['trigger.trigger'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.form.trigger,'Trigger'],0);Ext.cmd.derive('Ext.form.field.Text',Ext.form.field.Base,{alternateClassName:['Ext.form.TextField','Ext.form.Text'],config:{hideTrigger:!1,triggers:undefined},renderConfig:{editable:!0},growMin:30,growMax:800,growAppend:'W',allowBlank:!0,validateBlank:!1,allowOnlyWhitespace:!0,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:'The minimum length for this field is {0}',maxLengthText:'The maximum length for this field is {0}',blankText:'This field is required',regexText:'',emptyText:'',emptyCls:'x-form-empty-field',requiredCls:'x-form-required-field',valueContainsPlaceholder:!1,ariaRole:'textbox',repeatTriggerClick:!1,triggerWrapCls:'x-form-trigger-wrap',triggerWrapFocusCls:'x-form-trigger-wrap-focus',triggerWrapInvalidCls:'x-form-trigger-wrap-invalid',fieldBodyCls:'x-form-text-field-body',inputWrapCls:'x-form-text-wrap',inputWrapFocusCls:'x-form-text-wrap-focus',inputWrapInvalidCls:'x-form-text-wrap-invalid',growCls:'x-form-text-grow',needArrowKeys:!0,squashMouseUp:{mouseup:function(){},translate:!1,single:!0,preventDefault:!0},childEls:['triggerWrap','inputWrap'],preSubTpl:[''],initComponent:function(){var a=this,b=a.emptyCls;if(a.allowOnlyWhitespace===!1){a.allowBlank=!1}if(a.size){a.defaultBodyWidth=a.size*6.5+20}if(!a.onTrigger1Click){a.onTrigger1Click=a.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(a.readOnly){a.setReadOnly(a.readOnly)}a.fieldFocusCls=a.baseCls+'-focus';a.emptyUICls=b+' '+b+'-'+a.ui;a.addStateEvents('change')},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(a.selectOnFocus||a.emptyText){a.mon(b,'mousedown',a.onMouseDown,a)}if(a.maskRe||a.vtype&&a.disableKeyFilter!==!0&&(a.maskRe=Ext.form.field.VTypes[a.vtype+'Mask'])){a.mon(b,'keypress',a.filterKeys,a)}if(a.enableKeyEvents){a.mon(b,{scope:a,keyup:a.onKeyUp,keydown:a.onKeyDown,keypress:a.onKeyPress})}},isEqual:function(a,b){return this.isEqualAsString(a,b)},onChange:function(a,b){Ext.form.field.Base.prototype.onChange.apply(this,arguments);this.autoSize()},getSubTplData:function(h){var a=this,c=a.getRawValue(),g=a.emptyText&&c.length<1,b=a.maxLength,e,f,d;if(a.enforceMaxLength){if(b===Number.MAX_VALUE){b=undefined}}else {b=undefined}if(g){if(Ext.supports.Placeholder){e=a.emptyText}else {c=a.emptyText;a.valueContainsPlaceholder=!0}}f=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,h),{triggerWrapCls:a.triggerWrapCls,inputWrapCls:a.inputWrapCls,triggers:a.orderedTriggers,maxLength:b,readOnly:!a.editable||a.readOnly,placeholder:e,value:c,fieldCls:a.fieldCls+(g&&(e||c)?' '+a.emptyUICls:'')+(a.allowBlank?'':' '+a.requiredCls)});d=f.inputElAriaAttributes;if(d){d['aria-required']=!a.allowBlank}return f},onRender:function(){var a=this,b=a.getTriggers(),c=[],d,e;if(Ext.supports.FixedTableWidthBug){a.el._needsTableWidthFix=!0}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(b){this.invokeTriggers('onFieldRender');for(d in b){c.push(b[d].el)}e=a.triggerEl=a.triggerCell=new Ext.CompositeElement(c,!0)}a.inputCell=a.inputWrap},afterRender:function(){var a=this;a.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);a.invokeTriggers('afterFieldRender')},onMouseDown:function(){if(!this.hasFocus){Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(c){var a=this,j=a.getHideTrigger(),k=a.readOnly,f=a.orderedTriggers=[],i=a.repeatTriggerClick,e,b,h,g,d;if(!c){c={};if(a.triggerCls&&!a.trigger1Cls){a.trigger1Cls=a.triggerCls}for(d=1;g=a['trigger'+d+'Cls'];d++){c['trigger'+d]={cls:g,extraCls:'x-trigger-index-'+d,handler:'onTrigger'+d+'Click',compat4Mode:!0,scope:a}}}for(e in c){if(c.hasOwnProperty(e)){b=c[e];b.field=a;b.id=e;if(k&&b.hideOnReadOnly!==!1||j&&b.hidden!==!1){b.hidden=!0}if(i&&b.repeatClick!==!1){b.repeatClick=!0}h=c[e]=Ext.form.trigger.Trigger.create(b);f.push(h)}}Ext.Array.sort(f,Ext.form.trigger.Trigger.weightComparator);return c},invokeTriggers:function(d,e){var f=this,a=f.getTriggers(),c,b;if(a){for(c in a){if(a.hasOwnProperty(c)){b=a[c];b[d].apply(b,e||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateHideTrigger:function(a){this.invokeTriggers(a?'hide':'show')},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(a){var b=this,d=b.getTriggers(),f=b.getHideTrigger(),c,e;a=!!a;Ext.form.field.Base.prototype.setReadOnly.call(this,a);if(b.rendered){b.setReadOnlyAttr(a||!b.editable)}if(d){for(e in d){c=d[e];if(c.hideOnReadOnly===!0||c.hideOnReadOnly!==!1&&!f){c.setVisible(!a)}}}},setReadOnlyAttr:function(c){var b=this,a='readonly',d=b.inputEl.dom;if(c){d.setAttribute(a,a)}else {d.removeAttribute(a)}if(b.ariaRole){b.ariaEl.dom.setAttribute('aria-readonly',!!c)}},processRawValue:function(c){var e=this,a=e.stripCharsRe,d,b;if(a){if(!a.global){d='g';d+=a.ignoreCase?'i':'';d+=a.multiline?'m':'';a=new RegExp(a.source,d)}b=c.replace(a,'');if(b!==c){e.setRawValue(b);c=b}}return c},onDisable:function(){Ext.form.field.Base.prototype.onDisable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable='on'}},onEnable:function(){Ext.form.field.Base.prototype.onEnable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable=''}},onKeyDown:function(a){this.fireEvent('keydown',this,a)},onKeyUp:function(a){this.fireEvent('keyup',this,a)},onKeyPress:function(a){this.fireEvent('keypress',this,a)},reset:function(){Ext.form.field.Base.prototype.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){var a=this,b=a.emptyText,c;if(a.rendered&&b){c=a.getRawValue().length<1&&!a.hasFocus;if(Ext.supports.Placeholder){a.inputEl.dom.placeholder=b}else {if(c){a.setRawValue(b);a.valueContainsPlaceholder=!0}}if(c){a.inputEl.addCls(a.emptyUICls)}else {a.inputEl.removeCls(a.emptyUICls)}a.autoSize()}},getEmptyText:function(){return this.emptyText},setEmptyText:function(e){var a=this,c=a.inputEl,b=c&&c.dom,d=e||'';if(e){a.emptyText=d;a.applyEmptyText()}else {if(b){if(Ext.supports.Placeholder){b.removeAttribute('placeholder')}else {if(b.value!==a.getRawValue()){b.value='';c.removeCls(a.emptyUICls)}}a.valueContainsPlaceholder=!1}}a.emptyText=d;return a},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var a=this.inputEl;if(a){a.dom.unselectable='on'}}},toggleInvalidCls:function(b){var a=b?'addCls':'removeCls';Ext.form.field.Base.prototype.toggleInvalidCls.call(this);this.triggerWrap[a](this.triggerWrapInvalidCls);this.inputWrap[a](this.inputWrapInvalidCls)},beforeFocus:function(){var a=this,b=a.inputEl,c=a.emptyText,d;Ext.form.field.Base.prototype.beforeFocus.apply(this,arguments);if(c&&!Ext.supports.Placeholder&&(b.dom.value===a.emptyText&&a.valueContainsPlaceholder)){a.setRawValue('');d=!0;b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}else {if(Ext.supports.Placeholder){b.removeCls(a.emptyUICls)}}},onFocus:function(b){var a=this;Ext.form.field.Base.prototype.onFocus.apply(this,arguments);if(a.selectOnFocus){a.inputEl.dom.select()}if(a.emptyText){a.autoSize()}a.addCls(a.fieldFocusCls);a.triggerWrap.addCls(a.triggerWrapFocusCls);a.inputWrap.addCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldFocus',[b])},onBlur:function(b){var a=this;Ext.form.field.Base.prototype.onBlur.apply(this,arguments);a.removeCls(a.fieldFocusCls);a.triggerWrap.removeCls(a.triggerWrapFocusCls);a.inputWrap.removeCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldBlur',[b])},completeEdit:function(a){Ext.form.field.Base.prototype.completeEdit.call(this,a);this.applyEmptyText()},filterKeys:function(a){if(a.ctrlKey&&!a.altKey||a.isSpecialKey()){return}var b=String.fromCharCode(a.getCharCode());if(!this.maskRe.test(b)){a.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),'value')},applyState:function(a){Ext.form.field.Base.prototype.applyState.apply(this,arguments);if(a.hasOwnProperty('value')){this.setValue(a.value)}},getRawValue:function(){var b=this,a=Ext.form.field.Base.prototype.getRawValue.call(this);if(a===b.emptyText&&b.valueContainsPlaceholder){a=''}return a},setValue:function(c){var a=this,b=a.inputEl;if(b&&a.emptyText&&!Ext.isEmpty(c)){b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}Ext.form.field.Base.prototype.setValue.apply(this,arguments);a.applyEmptyText();return a},getErrors:function(b){b=arguments.length?b==null?'':b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Base.prototype.getErrors.call(this,b),f=a.validator,d=a.vtype,j=Ext.form.field.VTypes,k=a.regex,i=Ext.String.format,e,h,g;if(Ext.isFunction(f)){e=f.call(a,b);if(e!==!0){c.push(e)}}h=a.allowOnlyWhitespace?b:Ext.String.trim(b);if(h.length<1||b===a.emptyText&&a.valueContainsPlaceholder){if(!a.allowBlank){c.push(a.blankText)}if(!a.validateBlank){return c}g=!0}if(!g&&b.lengtha.maxLength){c.push(i(a.maxLengthText,a.maxLength))}if(d){if(!j[d](b,a)){c.push(a.vtypeText||j[d+'Text'])}}if(k&&!k.test(b)){c.push(a.regexText||a.invalidText)}return c},selectText:function(a,b){var f=this,g=f.getRawValue(),c=g.length,e=f.inputEl.dom,d;if(c>0){a=a===undefined?0:Math.min(a,c);b=b===undefined?c:Math.min(b,c);if(e.setSelectionRange){e.setSelectionRange(a,b)}else {if(e.createTextRange){d=e.createTextRange();d.moveStart('character',a);d.moveEnd('character',b-c);d.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var a=this,d,f,c,g,b,e;if(a.grow&&a.rendered&&a.getSizeModel().width.auto){g=a.inputEl;d=a.getTriggers();c=0;e=Ext.util.Format.htmlEncode(a.getGrowWidth()||(a.hasFocus?'':a.emptyText)||'');e+=a.growAppend;for(f in d){c+=d[f].el.getWidth()}b=g.getTextWidth(e)+c+a.inputWrap.getBorderWidth('lr')+a.triggerWrap.getBorderWidth('lr');b=Math.min(Math.max(b,a.growMin),a.growMax);a.bodyEl.setWidth(b);a.updateLayout();a.fireEvent('autosize',a,b)}},onDestroy:function(){var a=this;a.invokeTriggers('destroy');Ext.destroy(a.triggerRepeater);Ext.form.field.Base.prototype.onDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return 'textfield'}},deprecated:{5:{methods:{getTriggerWidth:function(){var a=this.getTriggers(),c=0,b;if(a&&this.rendered){for(b in a){if(a.hasOwnProperty(b)){c+=a[b].el.getWidth()}}}return c}}}}},0,['textfield'],['component','box','field','textfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0},['widget.textfield'],0,[Ext.form.field,'Text',Ext.form,'TextField',Ext.form,'Text'],0);Ext.cmd.derive('Ext.form.field.TextArea',Ext.form.field.Text,{alternateClassName:'Ext.form.TextArea',fieldSubTpl:['',{disableFormats:!0}],growMin:60,growMax:1000,growAppend:'\n-',enterIsSpecial:!1,preventScrollbars:!1,returnRe:/\r/g,inputCls:'x-form-textarea',extraFieldBodyCls:'x-form-textarea-body',ariaAttributes:{'aria-multiline':!0},getSubTplData:function(d){var a=this,c=a.getFieldStyle(),b=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(a.grow){if(a.preventScrollbars){b.fieldStyle=(c||'')+';overflow:hidden;height:'+a.growMin+'px'}}return b},afterRender:function(){var a=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);a.needsMaxCheck=a.enforceMaxLength&&a.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(a.needsMaxCheck){a.inputEl.on('paste',a.onPaste,a)}},transformRawValue:function(a){return this.stripReturns(a)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(a){a=this.stripReturns(a);return Ext.form.field.Text.prototype.valueToRaw.call(this,a)},stripReturns:function(a){if(a&&typeof a==='string'){a=a.replace(this.returnRe,'')}return a},onPaste:function(){var a=this;if(!a.pasteTask){a.pasteTask=new Ext.util.DelayedTask(a.pasteCheck,a)}a.pasteTask.delay(1)},pasteCheck:function(){var b=this,a=b.getValue(),c=b.maxLength;if(a.length>c){a=a.substr(0,c);b.setValue(a)}},fireKey:function(a){var b=this,c=a.getKey(),d;if(a.isSpecialKey()&&(b.enterIsSpecial||(c!==a.ENTER||a.hasModifier()))){b.fireEvent('specialkey',b,a)}if(b.needsMaxCheck&&c!==a.BACKSPACE&&c!==a.DELETE&&!a.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(a,c)){d=b.getValue();if(d.length>=b.maxLength){a.stopEvent()}}},isCutCopyPasteSelectAll:function(a,b){if(a.ctrlKey){return b===a.A||b===a.C||b===a.V||b===a.X}return !1},autoSize:function(){var a=this,b,c,e,d;if(a.grow&&a.rendered&&a.getSizeModel().height.auto){b=a.inputEl;e=b.getWidth(!0);d=Ext.util.Format.htmlEncode(b.dom.value)||' ';d+=a.growAppend;d=d.replace(/\n/g,'
    ');c=Ext.util.TextMetrics.measure(b,d,e).height+b.getPadding('tb')+a.inputWrap.getBorderWidth('tb')+a.triggerWrap.getBorderWidth('tb');c=Math.min(Math.max(c,a.growMin),a.growMax);a.bodyEl.setHeight(c);a.updateLayout();a.fireEvent('autosize',a,c)}},beforeDestroy:function(){var a=this.pasteTask;if(a){a.cancel();this.pasteTask=null}Ext.form.field.Text.prototype.beforeDestroy.call(this)}},0,['textarea','textareafield'],['component','box','field','textfield','textareafield','textarea'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'textareafield':!0,'textarea':!0},['widget.textarea','widget.textareafield'],0,[Ext.form.field,'TextArea',Ext.form,'TextArea'],0);Ext.cmd.derive('Ext.window.MessageBox',Ext.window.Window,{OK:1,YES:2,NO:4,CANCEL:8,OKCANCEL:9,YESNO:6,YESNOCANCEL:14,INFO:'x-message-box-info',WARNING:'x-message-box-warning',QUESTION:'x-message-box-question',ERROR:'x-message-box-error',hideMode:'offsets',closeAction:'hide',resizable:!1,scrollable:!0,title:' ',defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:!0,cls:['x-message-box','x-hidden-offsets'],layout:{type:'vbox',align:'stretch'},shrinkWrapDock:!0,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:'OK',yes:'Yes',no:'No',cancel:'Cancel'},buttonIds:['ok','yes','no','cancel'],titleText:{confirm:'Confirm',prompt:'Prompt',wait:'Loading...',alert:'Attention'},baseIconCls:'x-message-box-icon',ariaRole:'alertdialog',makeButton:function(b){var a=this.buttonIds[b];return new Ext.button.Button({handler:this.btnCallback,itemId:a,scope:this,text:this.buttonText[a],minWidth:75})},btnCallback:function(e,b){var a=this,d,c;if(b&&b.type==='keydown'&&!b.isSpecialKey()){b.getTarget(null,null,!0).on({keyup:function(c){a.btnCallback(e,c)},single:!0});return}if(a.cfg.prompt||a.cfg.multiline){if(a.cfg.multiline){c=a.textArea}else {c=a.textField}d=c.getValue();c.reset()}a.hide();a.userCallback(e.itemId,d,a.cfg)},hide:function(){var a=this,b=a.cfg?a.cfg.cls:'';a.progressBar.reset();if(b){a.removeCls(b)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(b){var a=this;Ext.window.Window.prototype.constructor.apply(this,arguments);a.minWidth=a.defaultMinWidth=a.minWidth||a.defaultMinWidth;a.maxWidth=a.defaultMaxWidth=a.maxWidth||a.defaultMaxWidth;a.minHeight=a.defaultMinHeight=a.minHeight||a.defaultMinHeight;a.maxHeight=a.defaultMaxHeight=a.maxHeight||a.defaultMaxHeight},initComponent:function(e){var a=this,b=a.id,d,c;a.title=a.title||' ';a.iconCls=a.iconCls||'';a.topContainer=new Ext.container.Container({layout:'hbox',padding:10,style:{overflow:'hidden'},items:[a.iconComponent=new Ext.Component({cls:a.baseIconCls}),a.promptContainer=new Ext.container.Container({flex:1,layout:{type:'vbox',align:'stretch'},items:[a.msg=new Ext.Component({id:b+'-msg',cls:a.baseCls+'-text'}),a.textField=new Ext.form.field.Text({id:b+'-textfield',enableKeyEvents:!0,listeners:{keydown:a.onPromptKey,scope:a}}),a.textArea=new Ext.form.field.TextArea({id:b+'-textarea',height:75})]})]});a.progressBar=new Ext.ProgressBar({id:b+'-progressbar',margin:'0 10 10 10'});a.items=[a.topContainer,a.progressBar];a.msgButtons=[];for(d=0;d<4;d++){c=a.makeButton(d);a.msgButtons[c.itemId]=c;a.msgButtons.push(c)}a.bottomTb=new Ext.toolbar.Toolbar({id:b+'-toolbar',ui:'footer',dock:'bottom',layout:{pack:'center'},items:[a.msgButtons[0],a.msgButtons[1],a.msgButtons[2],a.msgButtons[3]]});a.dockedItems=[a.bottomTb];a.on('close',a.onClose,a);Ext.window.Window.prototype.initComponent.call(this)},onClose:function(){var a=this.header.child('[type=close]');if(a){a.itemId='cancel';this.btnCallback(a);delete a.itemId}},onPromptKey:function(c,b){var a=this;if(b.keyCode===b.RETURN||b.keyCode===10){if(a.msgButtons.ok.isVisible()){a.msgButtons.ok.handler.call(a,a.msgButtons.ok)}else {if(a.msgButtons.yes.isVisible()){a.msgButtons.yes.handler.call(a,a.msgButtons.yes)}}}},reconfigure:function(b){var a=this,j=0,q=!0,t=a.buttonText,g=a.resizer,c=a.header,r=c&&!c.isHeader,s=b&&(b.message||b.msg),i,n,m,e,d,f,o,k,l,h,p;a.updateButtonText();a.cfg=b=b||{};h=b.wait;if(b.width){n=b.width}if(b.height){m=b.height}a.minWidth=b.minWidth||a.defaultMinWidth;a.maxWidth=b.maxWidth||a.defaultMaxWidth;a.minHeight=b.minHeight||a.defaultMinHeight;a.maxHeight=b.maxHeight||a.defaultMaxHeight;if(g){i=g.resizeTracker;g.minWidth=i.minWidth=a.minWidth;g.maxWidth=i.maxWidth=a.maxWidth;g.minHeight=i.minHeight=a.minHeight;g.maxHeight=i.maxHeight=a.maxHeight}delete a.defaultFocus;if(b.defaultFocus){a.defaultFocus=b.defaultFocus}a.animateTarget=b.animateTarget||undefined;a.modal=b.modal!==!1;a.setTitle(b.title||r&&c.title||a.title);a.setIconCls(b.iconCls||r&&c.iconCls||a.iconCls);if(Ext.isObject(b.buttons)){a.buttonText=b.buttons;j=0}else {a.buttonText=b.buttonText||a.buttonText;j=Ext.isNumber(b.buttons)?b.buttons:0}j=j|a.updateButtonText();a.buttonText=t;Ext.suspendLayouts();a.width=a.height=null;if(n||m){if(n){a.setWidth(n)}if(m){a.setHeight(m)}}a.hidden=!1;if(!a.rendered){a.render(Ext.getBody())}a.closable=b.closable!==!1&&!h;c=a.header;if(c){p=c.child('[type=close]');if(p){p.setVisible(a.closable)}if(!b.title&&!a.closable&&!b.iconCls){c.hide()}else {c.show()}}a.liveDrag=!b.proxyDrag;a.userCallback=Ext.Function.bindCallback(b.callback||b.fn||Ext.emptyFn,b.scope||Ext.global);a.setIcon(b.icon);o=a.msg;if(s){o.setHtml(s);o.show()}else {o.hide()}d=a.textArea;f=a.textField;if(b.prompt||b.multiline){a.multiline=b.multiline;if(b.multiline){d.setValue(b.value);d.setHeight(b.defaultTextHeight||a.defaultTextHeight);d.show();f.hide();a.defaultFocus=d}else {f.setValue(b.value);d.hide();f.show();a.defaultFocus=f}}else {d.hide();f.hide()}k=a.progressBar;if(b.progress||h){k.show();a.updateProgress(0,b.progressText);if(h){k.wait(h===!0?b.waitConfig:h)}}else {k.hide()}l=a.msgButtons;for(e=0;e<4;e++){if(j&Math.pow(2,e)){if(!a.defaultFocus){a.defaultFocus=l[e]}l[e].show();q=!1}else {l[e].hide()}}if(q){a.bottomTb.hide()}else {a.bottomTb.show()}Ext.resumeLayouts(!0)},updateButtonText:function(){var b=this,c=b.buttonText,e=0,a,d;for(a in c){if(c.hasOwnProperty(a)){d=b.msgButtons[a];if(d){if(b.cfg&&b.cfg.buttonText){e=e|Math.pow(2,Ext.Array.indexOf(b.buttonIds,a))}if(d.text!==c[a]){d.setText(c[a])}}}}return e},show:function(b){var a=this,c;b=b||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){a.show(b)},single:!0});return a}a.reconfigure(b);if(b.cls){a.addCls(b.cls)}c=a.query('textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])');a.preventFocusOnActivate=!c.length;a.hidden=!0;Ext.window.Window.prototype.show.call(this);return a},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(e,d,c){var b=this,a=b.iconComponent,f=b.messageIconCls;if(f){a.removeCls(f)}if(e){a.show();if(d||c){a.setSize(d||a.getWidth(),c||a.getHeight())}a.addCls('x-dlg-icon');a.addCls(b.messageIconCls=e)}else {a.removeCls('x-dlg-icon');a.hide()}return b},updateProgress:function(c,b,a){this.progressBar.updateProgress(c,b);if(a){this.updateText(a)}return this},onEsc:function(){if(this.closable!==!1){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,b,d,c){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:b,buttons:this.YESNO,callback:d,scope:c}}return this.show(a)},prompt:function(a,c,f,d,b,e){if(Ext.isString(a)){a={prompt:!0,title:a,minWidth:this.minPromptWidth,message:c,buttons:this.OKCANCEL,callback:f,scope:d,multiline:b,value:e}}return this.show(a)},wait:function(a,c,b){if(Ext.isString(a)){a={title:c,message:a,closable:!1,wait:!0,modal:!0,minWidth:this.minProgressWidth,waitConfig:b}}return this.show(a)},alert:function(a,b,d,c){if(Ext.isString(a)){a={title:a,message:b,buttons:this.OK,fn:d,scope:c,minWidth:this.minWidth}}return this.show(a)},progress:function(a,c,b){if(Ext.isString(a)){a={title:a,message:c,progress:!0,progressText:b}}return this.show(a)}},1,['messagebox'],['component','box','container','panel','window','messagebox'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'messagebox':!0},['widget.messagebox'],0,[Ext.window,'MessageBox'],function(a){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new a()})});Ext.cmd.derive('Ext.form.Basic',Ext.util.Observable,{alternateClassName:'Ext.form.BasicForm',taskDelay:10,constructor:function(c,d){var a=this,b;a.owner=c;a.fieldMonitors={validitychange:a.checkValidityDelay,enable:a.checkValidityDelay,disable:a.checkValidityDelay,dirtychange:a.checkDirtyDelay,errorchange:a.checkErrorDelay,scope:a};a.checkValidityTask=new Ext.util.DelayedTask(a.checkValidity,a);a.checkDirtyTask=new Ext.util.DelayedTask(a.checkDirty,a);a.checkErrorTask=new Ext.util.DelayedTask(a.checkError,a);a.monitor=new Ext.container.Monitor({selector:'[isFormField]:not([excludeForm])',scope:a,addHandler:a.onFieldAdd,removeHandler:a.onFieldRemove,invalidateHandler:a.onMonitorInvalidate});a.monitor.bind(c);Ext.apply(a,d);if(Ext.isString(a.paramOrder)){a.paramOrder=a.paramOrder.split(/[\s,|]/)}b=a.reader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.reader=Ext.createByAlias('reader.'+b.type,b)}b=a.errorReader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.errorReader=Ext.createByAlias('reader.'+b.type,b)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=!0;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:!1,waitTitle:'Please Wait...',trackResetOnLoad:!1,wasDirty:!1,destroy:function(){var a=this,b=a.monitor;if(b){b.unbind();a.monitor=null}a.clearListeners();a.checkValidityTask.cancel();a.checkDirtyTask.cancel();a.checkErrorTask.cancel();a.checkValidityTask=a.checkDirtyTask=a.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},onFieldAdd:function(a){a.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(a){a.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var a=this._boundItems;if(!a||a.getCount()===0){a=this._boundItems=new Ext.util.MixedCollection();a.addAll(this.owner.query('[formBind]'))}return a},hasInvalidField:function(){return !!this.getFields().findBy(function(a){var c=a.preventMark,b;a.preventMark=!0;b=a.isValid();a.preventMark=c;return !b})},isValid:function(){var b=this,a;Ext.suspendLayouts();a=b.getFields().filterBy(function(a){return !a.validate()});Ext.resumeLayouts(!0);return a.length<1},checkValidity:function(){var a=this,b;if(a.destroyed){return}b=!a.hasInvalidField();if(b!==a.wasValid){a.onValidityChange(b);a.fireEvent('validitychange',a,b);a.wasValid=b}},checkValidityDelay:function(){var a=this.taskDelay;if(a){this.checkValidityTask.delay(a)}else {this.checkValidity()}},checkError:function(){this.fireEvent('errorchange',this)},checkErrorDelay:function(){var a=this.taskDelay;if(a){this.checkErrorTask.delay(a)}else {this.checkError()}},onValidityChange:function(e){var d=this.getBoundItems(),b,a,f,c;if(d){b=d.items;f=b.length;for(a=0;a',' {$}="{.}"','',' role="presentation"','','>','{%this.renderContainer(out,values)%}',''],initComponent:function(){var a=this;a.initLabelable();a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.initMonitor()},onAdd:function(b){var a=this;if(b.isLabelable&&Ext.isGecko&&Ext.firefoxVersion<37&&a.layout.type==='absolute'&&!a.hideLabel&&a.labelAlign!=='top'){b.x+=a.labelWidth+a.labelPad}Ext.container.Container.prototype.onAdd.apply(this,arguments);if(b.isLabelable&&a.combineLabels){b.oldHideLabel=b.hideLabel;b.hideLabel=!0}a.updateLabel()},onRemove:function(a,c){var b=this;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!c){if(a.isLabelable&&b.combineLabels){a.hideLabel=a.oldHideLabel}b.updateLabel()}},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.containerElCls=b.containerElCls;a=Ext.applyIf(a,b.getLabelableRenderData());a.tipAnchorTarget=b.id+'-containerEl';return a},getFieldLabel:function(){var a=this.fieldLabel||'';if(!a&&this.combineLabels){a=Ext.Array.map(this.query('[isFieldLabelable]'),function(a){return a.getFieldLabel()}).join(this.labelConnector)}return a},getSubTplData:function(){var a=this.initRenderData();Ext.apply(a,this.subTplData);return a},getSubTplMarkup:function(d){var b=this,a=b.getTpl('fieldSubTpl'),c;if(!a.renderContent){b.setupRenderTpl(a)}c=a.apply(b.getSubTplData(d));return c},updateLabel:function(){var a=this,b=a.labelEl;if(b){a.setFieldLabel(a.getFieldLabel())}},onFieldErrorChange:function(){if(this.combineErrors){var a=this,d=a.getActiveError(),c=Ext.Array.filter(a.query('[isFormField]'),function(a){return a.hasActiveError()}),b=a.getCombinedErrors(c);if(b){a.setActiveErrors(b)}else {a.unsetActiveError()}if(d!==a.getActiveError()){a.updateLayout()}}},getCombinedErrors:function(f){var g=[],b,j=f.length,d,c,a,i,h,e;for(b=0;b','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','',' tabindex="{tabIdx}"',' disabled="disabled"',' style="{fieldStyle}"',' class="{checkboxCls} {clipCls}" autocomplete="off" hidefocus="true" ',' {$}="{.}"','/>','','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','','',{disableFormats:!0,compiled:!0}],publishes:{checked:1},subTplInsertions:['beforeBoxLabelTpl','afterBoxLabelTpl','beforeBoxLabelTextTpl','afterBoxLabelTextTpl','boxLabelAttrTpl','inputAttrTpl'],isCheckbox:!0,focusCls:'form-checkbox-focus',fieldBodyCls:'x-form-cb-wrap',checked:!1,checkedCls:'x-form-cb-checked',boxLabelCls:'x-form-cb-label',boxLabelAlign:'after',afterLabelCls:'x-form-cb-after',wrapInnerCls:'x-form-cb-wrap-inner',noBoxLabelCls:'x-form-cb-no-box-label',inputValue:'on',checkChangeEvents:[],inputType:'checkbox',isTextInput:!1,ariaRole:'checkbox',onRe:/^on$/i,inputCls:'x-form-cb',_checkboxCls:'x-form-cb-input',_clipCls:'x-hidden-clip',initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);a.getManager().add(a)},initDefaultName:Ext.emptyFn,initValue:function(){var a=this,b=!!a.checked;a.originalValue=a.lastValue=b;a.setValue(b)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}return Ext.form.field.Base.prototype.getElConfig.call(this)},getSubTplData:function(g){var a=this,f=a.boxLabel,e=a.boxLabelAlign,d=e==='before',c,b;c=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,g),{clipCls:a._clipCls,checkboxCls:a._checkboxCls,disabled:a.readOnly||a.disabled,wrapInnerCls:a.wrapInnerCls,boxLabel:f,boxLabelCls:a.boxLabelCls,boxLabelAlign:e,labelAlignedBefore:d,afterLabelCls:d?a.afterLabelCls:'',noBoxLabelCls:!f?a.noBoxLabelCls:'',inputName:a.name||a.id});b=c.inputElAriaAttributes;if(b){b['aria-checked']=!!a.checked;b['aria-labelledby']=a.id+'-boxLabelEl'}return c},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.inputEl.on({click:'onBoxClick',scope:a,translate:!1});a.displayEl.on({click:'onBoxClick',mousedown:'_onDisplayElMouseDown',scope:a})},setBoxLabel:function(b){var a=this;a.boxLabel=b;if(a.rendered){a.boxLabelEl.setHtml(b);a.boxLabelEl[b?'removeCls':'addCls'](a.noBoxLabelCls);a.updateLayout()}},onBoxClick:function(){var a=this;if(!a.disabled&&!a.readOnly){a.setValue(!a.checked)}},getRawValue:function(){return this.checked},getValue:function(){return this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.checked?this.inputValue:b},isChecked:function(a,b){return a===!0||a==='true'||a==='1'||a===1||((Ext.isString(a)||Ext.isNumber(a))&&b?a==b:this.onRe.test(a))},setRawValue:function(e){var a=this,d=a.inputEl,c=a.displayEl,b=a.isChecked(e,a.inputValue);if(d){a[b?'addCls':'removeCls'](a.checkedCls);if(a.ariaRole){a.ariaEl.dom.setAttribute('aria-checked',b)}}if(Ext.isIE8&&c&&b!==a.lastValue){c.repaint()}a.checked=a.rawValue=b;if(!a.duringSetValue){a.lastValue=b}return b},setValue:function(e){var a=this,c,b,f,d;if(Ext.isArray(e)){c=a.getManager().getByName(a.name,a.getFormId()).items;f=c.length;for(b=0;b style="{bodyStyle}">','{%this.renderContainer(out,values);%}',''],stateEvents:['collapse','expand'],maskOnDisable:!1,beforeDestroy:function(){var b=this,a=b.legend;if(a){delete a.ownerCt;a.destroy();b.legend=null}Ext.container.Container.prototype.beforeDestroy.call(this)},initComponent:function(){var a=this,b=a.baseCls;if(a.ariaRole&&!a.ariaLabel){a.ariaLabel=Ext.String.formatEncode(a.descriptionText,a.title||'')}a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!a.collapsed;a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.layout.managePadding=a.layout.manageOverflow=!1;if(a.collapsed){a.addCls(b+'-collapsed');a.collapse()}if(a.title||a.checkboxToggle||a.collapsible){a.addTitleClasses();a.legend=a.createLegendCt()}a.initMonitor()},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.bodyTargetCls=b.bodyTargetCls;b.protoBody.writeTo(a);delete b.protoBody;return a},getState:function(){var a=Ext.container.Container.prototype.getState.call(this);a=this.addPropertyToState(a,'collapsed');return a},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn,collapsedHorizontal:function(){return !0},collapsedVertical:function(){return !0},createLegendCt:function(){var a=this,c=[],d={baseCls:a.baseCls+'-header',layout:'container',ui:a.ui,id:a.id+'-legend',autoEl:'legend',ariaRole:null,items:c,ownerCt:a,shrinkWrap:!0,ownerLayout:a.componentLayout},b;if(a.checkboxToggle){c.push(a.createCheckboxCmp())}else {if(a.collapsible){c.push(a.createToggleCmp())}}c.push(a.createTitleCmp());b=new Ext.container.Container(d);b.collapseImmune=!0;b.getInherited().collapseImmune=!0;return b},createTitleCmp:function(){var a=this,b={html:a.title,ui:a.ui,cls:a.baseCls+'-header-text',id:a.id+'-legendTitle',ariaRole:'presentation'};if(a.collapsible&&a.toggleOnTitleClick){b.listeners={click:{element:'el',scope:a,fn:a.toggle}};b.cls+=' '+a.baseCls+'-header-text-collapsible'}a.titleCmp=new Ext.Component(b);return a.titleCmp},createCheckboxCmp:function(){var a=this,d='-checkbox',b=a.baseCls+'-header'+d,c;b+=' '+b+'-'+a.ui;a.checkboxCmp=c=new Ext.form.field.Checkbox({hideEmptyLabel:!0,name:a.checkboxName||a.id+d,cls:b,id:a.id+'-legendChk',ui:a.checkboxUI,checked:!a.collapsed,msgTarget:'none',listeners:{change:a.onCheckChange,scope:a},ariaLabel:a.expandText});return c},createToggleCmp:function(){var a=this,b;a.toggleCmp=b=new Ext.panel.Tool({cacheHeight:!1,cls:a.baseCls+'-header-tool-'+a.ui,type:'toggle',handler:a.toggle,id:a.id+'-legendToggle',scope:a,ariaRole:'checkbox',ariaLabel:a.expandText,ariaRenderAttributes:{'aria-checked':!a.collapsed}});return b},doRenderLegend:function(d,c){var e=c.$comp,a=e.legend,b;if(a){a.ownerLayout.configureItem(a);b=a.getRenderTree();Ext.DomHelper.generateMarkup(b,d)}},getCollapsed:function(){return this.collapsed?'top':!1},getCollapsedDockedItems:function(){var a=this.legend;return a?[a]:[]},setTitle:function(c){var a=this,b=a.legend;a.title=c;a.ariaLabel=Ext.String.formatEncode(a.descriptionText,c||'');if(a.rendered){if(!b){a.legend=b=a.createLegendCt();a.addTitleClasses();b.ownerLayout.configureItem(b);b.render(a.el,0)}a.titleCmp.update(c);a.ariaEl.dom.setAttribute('aria-label',a.ariaLabel)}else {if(b){a.titleCmp.update(c)}else {a.addTitleClasses();a.legend=a.createLegendCt()}}return a},addTitleClasses:function(){var a=this,c=a.title,b=a.baseCls;if(c){a.addCls(b+'-with-title')}if(c||a.checkboxToggle||a.collapsible){a.addCls(b+'-with-legend')}},expand:function(){return this.setExpanded(!0)},collapse:function(){return this.setExpanded(!1)},setExpanded:function(b){var a=this,d=a.checkboxCmp,c=a.toggleCmp,e=b?'expand':'collapse';if(!a.rendered||a.fireEvent('before'+e,a)!==!1){b=!!b;if(d){d.setValue(b)}else {if(c&&c.ariaEl.dom){c.ariaEl.dom.setAttribute('aria-checked',b)}}if(b){a.removeCls(a.baseCls+'-collapsed')}else {a.addCls(a.baseCls+'-collapsed')}if(a.ariaEl.dom){a.ariaEl.dom.setAttribute('aria-expanded',!!b)}a.collapsed=!b;if(b){delete a.getInherited().collapsed}else {a.getInherited().collapsed=!0}if(a.rendered){a.updateLayout({isRoot:!1});a.fireEvent(e,a)}}return a},getRefItems:function(c){var a=Ext.container.Container.prototype.getRefItems.apply(this,arguments),b=this.legend;if(b){a.unshift(b);if(c){a.unshift.apply(a,b.getRefItems(!0))}}return a},toggle:function(){this.setExpanded(!!this.collapsed)},privates:{applyTargetCls:function(a){this.bodyTargetCls=a},finishRender:function(){var a=this.legend;Ext.container.Container.prototype.finishRender.call(this);if(a){a.finishRender()}},getProtoBody:function(){var b=this,a=b.protoBody;if(!a){b.protoBody=a=new Ext.util.ProtoElement({styleProp:'bodyStyle',styleIsText:!0})}return a},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){return this.body||this.frameBody||this.el},initPadding:function(d){var b=this,e=b.getProtoBody(),a=b.padding,c;if(a!==undefined){if(Ext.isIE8){a=b.parseBox(a);c=Ext.Element.parseBox(0);c.top=a.top;a.top=0;e.setStyle('padding',b.unitizeBox(c))}d.setStyle('padding',b.unitizeBox(a))}},onCheckChange:function(b,a){this.setExpanded(a)},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderLegend=this.doRenderLegend}}},0,['fieldset'],['component','box','container','fieldset'],{'component':!0,'box':!0,'container':!0,'fieldset':!0},['widget.fieldset'],[['fieldAncestor',Ext.form.FieldAncestor]],[Ext.form,'FieldSet'],0);Ext.cmd.derive('Ext.form.Label',Ext.Component,{autoEl:'label',maskOnDisable:!1,getElConfig:function(){var a=this;a.html=a.text?Ext.util.Format.htmlEncode(a.text):a.html||'';return Ext.apply(Ext.Component.prototype.getElConfig.call(this),{htmlFor:a.forId||''})},setText:function(c,b){var a=this;b=b!==!1;if(b){a.text=c;delete a.html}else {a.html=c;delete a.text}if(a.rendered){a.el.dom.innerHTML=b!==!1?Ext.util.Format.htmlEncode(c):c;a.updateLayout()}return a}},0,['label'],['component','box','label'],{'component':!0,'box':!0,'label':!0},['widget.label'],0,[Ext.form,'Label'],0);Ext.cmd.derive('Ext.form.Panel',Ext.panel.Panel,{alternateClassName:['Ext.FormPanel','Ext.form.FormPanel'],layout:'anchor',bodyAriaRole:'form',basicFormConfigs:['api','baseParams','errorReader','jsonSubmit','method','paramOrder','paramsAsHash','reader','standardSubmit','timeout','trackResetOnLoad','url','waitMsgTarget','waitTitle'],initComponent:function(){var a=this;if(a.frame){a.border=!1}a.initFieldAncestor();Ext.panel.Panel.prototype.initComponent.call(this);a.relayEvents(a.form,['beforeaction','actionfailed','actioncomplete','validitychange','dirtychange']);if(a.pollForChanges){a.startPolling(a.pollInterval||500)}},initItems:function(){Ext.panel.Panel.prototype.initItems.call(this);this.initMonitor();this.form=this.createForm()},afterFirstLayout:function(){Ext.panel.Panel.prototype.afterFirstLayout.apply(this,arguments);this.form.initialize()},createForm:function(){var d={},c=this.basicFormConfigs,e=c.length,b=0,a;for(;b150){delete a.lastDownArrow}if(!a.isExpanded){b.stopEvent();a.onTriggerClick();a.lastDownArrow=b.time}else {if(!b.isStopped&&b.time-a.lastDownArrow<150){delete a.lastDownArrow}}},expand:function(){var a=this,d,c,b,e;if(a.rendered&&!a.isExpanded&&!a.destroyed){d=a.bodyEl;b=a.getPicker();e=Ext.getDoc();b.setMaxHeight(b.initialConfig.maxHeight);if(a.matchFieldWidth){b.setWidth(a.bodyEl.getWidth())}b.show();a.isExpanded=!0;a.alignPicker();d.addCls(a.openCls);if(a.ariaRole){c=a.ariaEl.dom;c.setAttribute('aria-owns',b.listEl?b.listEl.id:b.el.id);c.setAttribute('aria-expanded',!0)}a.touchListeners=e.on({translate:!1,touchstart:a.collapseIf,scope:a,delegated:!1,destroyable:!0});a.scrollListeners=Ext.on({scroll:a.onGlobalScroll,scope:a,destroyable:!0});Ext.on('resize',a.alignPicker,a,{buffer:1});a.fireEvent('expand',a);a.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){if(!this.destroyed){var a=this.getPicker();if(a.isVisible()&&a.isFloating()){this.doAlign()}}},doAlign:function(){var a=this,c=a.picker,d='-above',b;a.picker.alignTo(a.triggerWrap,a.pickerAlign,a.pickerOffset);b=c.el.getY()=g){a.deselectRange(j,g-1)}else {if(h!==c){a.selectRange(h,c,f)}}}a.lastSelected=c}else {if(e){if(!f){a.doSelect(c,!1)}}else {a.selectWithEvent(c,b)}}}};break;case 'SIMPLE':if(e===b.A&&f){a.selected.beginUpdate();a.selectRange(0,a.store.getCount()-1);a.selected.endUpdate()}else {if(k){a.doDeselect(c)}else {a.doSelect(c,!0)}};break;case 'SINGLE':if(!f){if(i){a.doSelect(c,!1)}else {if(m||!e){a.selectWithEvent(c,b)}}};}if(!b.shiftKey&&!a.destroyed&&a.isSelected(c)){a.selectionStart=c;a.selectionStartIdx=g}},selectRange:function(d,f,m){var b=this,i=b.store,l=b.selected.items,h,a,g,e,c,j,k;if(b.isLocked()){return}h=b.normalizeRowRange(d,f);d=h[0];f=h[1];e=[];for(a=d;a<=f;a++){if(!b.isSelected(i.getAt(a))){e.push(i.getAt(a))}}if(!m){c=[];b.suspendChanges();for(a=0,g=l.length;af){c.push(k)}}for(a=0,g=c.length;a0)}}}},deselectRange:function(d,e){var a=this,h=a.store,g,c,b,f;if(a.isLocked()){return}g=a.normalizeRowRange(d,e);d=g[0];e=g[1];b=[];for(c=d;c<=e;c++){f=h.getAt(c);if(a.isSelected(f)){b.push(f)}}if(b.length){a.doDeselect(b)}},normalizeRowRange:function(a,b){var c=this.store,d;if(!Ext.isNumber(a)){a=c.indexOf(a)}a=Math.max(0,a);if(!Ext.isNumber(b)){b=c.indexOf(b)}b=Math.min(b,c.getCount()-1);if(a>b){d=b;b=a;a=d}return [a,b]},select:function(a,c,b){if(Ext.isDefined(a)&&!(Ext.isArray(a)&&!a.length)){this.doSelect(a,c,b)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(a,e,d){var b=this,c;if(b.locked||a==null){return}if(typeof a==='number'){c=b.store.getAt(a);if(!c){return}a=[c]}if(b.selectionMode==='SINGLE'){if(a.isModel){a=[a]}if(a.length){b.doSingleSelect(a[0],d)}}else {b.doMultiSelect(a,e,d)}},doMultiSelect:function(b,k,d){var a=this,g=a.selected,h=!1,e,f,j,c,i;if(a.locked){return}b=!Ext.isArray(b)?[b]:b;j=b.length;if(!k&&g.getCount()>0){e=a.deselectDuringSelect(b,d);if(a.destroyed){return}if(e[0]){a.maybeFireSelectionChange(e[1]>0&&!d);return}else {h=e[1]>0}}i=function(){if(!g.getCount()){a.selectionStart=c}g.add(c);h=!0};for(f=0;f0&&!f);return d===g},doSingleSelect:function(b,c){var a=this,e=!1,d=a.selected,f;if(a.locked){return}if(a.isSelected(b)){return}f=function(){if(d.getCount()){a.suspendChanges();var f=a.deselectDuringSelect([b],c);if(a.destroyed){return}a.resumeChanges();if(f[0]){return !1}}a.lastSelected=b;if(!d.getCount()){a.selectionStart=b}d.add(b);e=!0};a.onSelectChange(b,!0,c,f);if(e&&!a.destroyed){a.maybeFireSelectionChange(!c)}},maybeFireSelectionChange:function(b){var a=this;if(b&&!a.suspendChange){a.fireEvent('selectionchange',a,a.getSelection())}},getLastSelected:function(){return this.lastSelected},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(a){a=a?a.toUpperCase():'SINGLE';this.selectionMode=this.modes[a]?a:'SINGLE'},isLocked:function(){return this.locked},setLocked:function(a){this.locked=!!a},isRangeSelected:function(b,c){var e=this,f=e.store,a,d;d=e.normalizeRowRange(b,c);b=d[0];c=d[1];for(a=b;a<=c;a++){if(!e.isSelected(f.getAt(a))){return !1}}return !0},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected.contains(a)},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var a=this,l=a.store,e=[],c=[],k=a.getSelection(),m=k.length,b=a.getSelected(),h,j,d,g,i,f;if(!l||!(b.isCollection||b.isRows)||!b.getCount()){return}d=l.getData();if(d.getSource){j=d.getSource();if(j){d=j}}a.refreshing=!0;b.beginUpdate();a.suspendChanges();for(f=0;f0);if(i){a.fireEvent('lastselectedchanged',a,a.getSelection(),a.lastSelected)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(d,e,b,f){var a=this,c=e?'select':'deselect';if((b||a.fireEvent('before'+c,a,d))!==!1&&f()!==!1){if(!b){a.fireEvent(c,a,d)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(a){var c=this.view,b;if(c){b=c.resolveSatelliteListenerScope(this,a)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,a)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,selectWithEventMulti:function(b,l,e){var a=this,g=l.shiftKey,c=l.ctrlKey,j=g?a.getSelectionStart():null,i=a.getSelection(),k=i.length,f,d,h;if(g&&j){a.selectRange(j,b,c)}else {if(c&&e){if(a.allowDeselect){a.doDeselect(b,!1)}}else {if(c){a.doSelect(b,!0,!1)}else {if(e&&!g&&!c&&k>1){if(a.allowDeselect){f=[];for(d=0;dthis.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyRight:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyLeft:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(a){this.setPosition(0,a)},onKeyEnd:function(a){this.setPosition(this.view.all.getCount()-1,a)},onKeySpace:function(a){this.fireNavigateEvent(a)},onKeyEnter:function(a){a.stopEvent();a.view.fireEvent('itemclick',a.view,a.record,a.item,a.recordIndex,a)},onSelectAllKeyPress:function(a){this.fireNavigateEvent(a)},fireNavigateEvent:function(b){var a=this;a.fireEvent('navigate',{navigationModel:a,keyEvent:b,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,recordIndex:a.recordIndex,record:a.record,item:a.item})},destroy:function(){var a=this;a.setStore(null);Ext.destroy(a.viewListeners,a.keyNav);a.keyNav=a.viewListeners=a.dataSource=a.lastFocused=null;a.callParent()}},1,0,0,0,['view.navigation.default'],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,'NavigationModel'],0);Ext.cmd.derive('Ext.view.AbstractView',Ext.Component,{inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},defaultBindProperty:'store',renderBuffer:document.createElement('div'),statics:{updateDelay:200,queueRecordChange:function(n,o,d,m,f){var a=this,g=a.changeQueue||(a.changeQueue={}),i=d.internalId,h,b,l,e,c,j,k;h=g[i]||(g[i]={operation:m,record:d,data:{},views:[]});b=h.data;Ext.Array.include(h.views,n);if(f&&(l=f.length)){for(e=0;e
    {1}
    ',a.itemCls,b,a.itemAriaRole);a.tpl=new Ext.XTemplate(b,c)}Ext.Component.prototype.initComponent.call(this);a.tpl=a.getTpl('tpl');if(a.overItemCls){a.trackOver=!0}a.addCmpEvents();d=a.store=Ext.data.StoreManager.lookup(a.store||'ext-empty-store');if(!a.dataSource){a.dataSource=d}a.bindStore(d,!0);a.getNavigationModel().bindComponent(this);if(!a.all){a.all=new Ext.CompositeElementLite()}a.scrollState={top:0,left:0};a.savedTabIndexAttribute='data-savedtabindex-'+a.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(){var a=this.loadMask;Ext.Component.prototype.onRender.apply(this,arguments);if(a){this.createMask(a)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.apply(this,arguments);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refresh()}else {a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var a=this,b=a.loadingHeight;if(b&&b>a.getHeight()){a.hasLoadingHeight=!0;a.oldMinHeight=a.minHeight;a.minHeight=b;a.updateLayout()}},onMaskHide:function(){var a=this;if(!a.destroying&&a.hasLoadingHeight){a.minHeight=a.oldMinHeight;a.updateLayout();delete a.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.apply(this,arguments);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.apply(this,arguments);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var a=this.loadMask,b=[];if(a&&a.isComponent){b.push(a)}return b},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},applySelectionModel:function(b,e){var a=this,g=a.grid,c,f,d;if(e){e.un({scope:a,selectionchange:a.updateBindSelection,lastselectedchanged:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});Ext.destroy(a.selModelRelayer);b=Ext.Factory.selection(b)}else {if(b&&b.isSelectionModel){b.locked=a.disableSelection}else {if(a.simpleSelect){c='SIMPLE'}else {if(a.multiSelect){c='MULTI'}else {c='SINGLE'}}if(typeof b==='string'){b={type:b}}b=Ext.Factory.selection(Ext.apply({allowDeselect:a.allowDeselect||a.multiSelect,mode:c,locked:a.disableSelection},b))}}if(b.mode!=='SINGLE'){d=(g||a).ariaEl.dom;if(d){d.setAttribute('aria-multiselectable',!0)}else {if(!g){f=a.ariaRenderAttributes||(a.ariaRenderAttributes={});f['aria-multiselectable']=!0}}}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});return b},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(d){var a=this,b=a.getNavigationModel(),c;a.toggleChildrenTabbability(!1);if(!a.itemFocused&&a.all.getCount()){c=b.getLastFocused();b.setPosition(c||0,d.event,null,!c);a.itemFocused=b.getPosition()!=null}if(a.itemFocused){this.el.dom.setAttribute('tabIndex','-1')}Ext.Component.prototype.onFocusEnter.call(this,d)},onFocusLeave:function(b){var a=this;if(a.itemFocused&&!a.refreshing){a.getNavigationModel().setPosition(null,b.event,null,!0);a.itemFocused=!1;a.el.dom.setAttribute('tabIndex',0)}Ext.Component.prototype.onFocusLeave.call(this,b)},ariaSelect:function(c,b){var a=this.getNode(b);if(a){a.setAttribute('aria-selected',!0)}},ariaDeselect:function(c,b){var a=this.getNode(b);if(a){a.removeAttribute('aria-selected')}},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);if(!a){this.onFocusLeave({})}},refresh:function(){var a=this,c=a.all,i=c.getCount(),g=a.refreshCounter,e,k,f,j=a.getSelectionModel(),h,d=g&&c.getCount()&&a.preserveScrollOnRefresh&&a.getScrollable(),b;if(!a.rendered||a.destroyed){return}if(!a.hasListeners.beforerefresh||a.fireEvent('beforerefresh',a)!==!1){a.refreshing=!0;h=a.saveFocusState();e=a.getTargetEl();f=a.getViewRange();k=e.dom;if(d){b=d.getPosition();if(!(b.x||b.y)){b=null}}if(g){a.clearViewEl();a.refreshCounter++}else {a.refreshCounter=1}a.tpl.append(e,a.collectData(f,c.startIndex||0));if(f.length<1){a.addEmptyText();c.clear()}else {a.collectNodes(e.dom);a.updateIndexes(0)}h();if(a.refreshSelmodelOnRefresh!==!1){j.refresh()}a.refreshNeeded=!1;a.refreshSize(c.getCount()!==i);a.fireEvent('refresh',a,f);if(d){d.scrollTo(b)}if(!a.viewReady){a.viewReady=!0;a.fireEvent('viewready',a)}a.refreshing=!1;a.refreshScroll();a.cleanupData()}},addEmptyText:function(){var a=this,b=a.getStore();if(a.emptyText&&!b.isLoading()&&(!a.deferEmptyText||a.refreshCounter>1||b.isLoaded())){a.emptyEl=Ext.core.DomHelper.insertHtml('beforeEnd',a.getTargetEl().dom,a.emptyText)}},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(d){var a=this,b=a.getSizeModel(),c=a.getScrollable();if(b.height.shrinkWrap||b.width.shrinkWrap||d){a.updateLayout()}else {if(a.touchScroll&&!a.bufferedRenderer){if(c){c.refresh()}else {a.on({boxready:a.refreshScroll,scope:a,single:!0})}}}},afterFirstLayout:function(d,c){var a=this,b=a.getScrollable();if(b){b.on({scroll:a.onViewScroll,scrollend:a.onViewScrollEnd,scope:a,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,d,c)},clearViewEl:function(){var a=this,c=a.getTargetEl(),b=a.getNodeContainer()===c;a.clearEmptyEl();a.all.clear(!b);if(b){c.dom.innerHTML=''}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(c,a,b){this.fireEvent('scroll',this,a,b)},onViewScrollEnd:function(c,a,b){this.fireEvent('scrollend',this,a,b)},saveScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){b.left=a.getScrollX();b.top=a.getScrollY()}},restoreScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){a.setScrollX(b.left);a.setScrollY(b.top)}},prepareData:function(c,f,e){var a,b,d;if(e){a=e.getAssociatedData();for(b in a){if(a.hasOwnProperty(b)){if(!d){c=Ext.Object.chain(c);d=!0}c[b]=a[b]}}}return c},collectData:function(c,e){var d=[],a=0,f=c.length,b;for(;a-1){if(a.getNode(b)){d=a.bufferRender([b],c).children[0];a.all.replaceElement(c,d,!0);a.updateIndexes(c,c);e.onUpdate(b);a.refreshSizePending=!0;if(e.isSelected(b)){a.onItemSelect(b)}if(a.hasListeners.itemupdate){a.fireEvent('itemupdate',b,c,d)}return d}}}},onReplace:function(o,b,e,d){var a=this,c=a.all,n=a.getSelectionModel(),j=b,h,m,g,f,l,k,i;if(a.rendered){h=a.bufferRender(d,b,!0);g=h.fragment;f=h.children;m=c.item(b);if(m){c.item(b).insertSibling(g,'before',!0)}else {a.appendNodes(g)}c.insert(b,f);if(e.length){i=a.saveFocusState()}b+=d.length;k=b+e.length-1;l=c.removeRange(b,k,!0);if(a.refreshSelmodelOnRefresh!==!1){n.refresh()}a.updateIndexes(b);if(a.hasListeners.itemremove){a.fireEvent('itemremove',e,j,l,a)}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,j,f)}i();a.refreshSize()}},onAdd:function(f,d,b){var a=this,c,e=a.getSelectionModel();if(a.rendered){if(a.all.getCount()===0){a.refresh();c=a.all.slice()}else {c=a.doAdd(d,b);if(a.refreshSelmodelOnRefresh!==!1){e.refresh()}a.updateIndexes(b);a.refreshSizePending=!0}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,b,c)}}},appendNodes:function(a){var b=this.all,c=b.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(a)}else {b.item(c-1).insertSibling(a,'after')}},doAdd:function(j,b){var d=this,g=d.bufferRender(j,b,!0),f=g.fragment,c=g.children,a=d.all,h=a.getCount(),e=a.startIndex||0,i=a.endIndex||h-1;if(h===0||b>i){d.appendNodes(f)}else {if(b<=e){a.item(e).insertSibling(f,'before',!0)}else {a.item(b).insertSibling(c,'before',!0)}}a.insert(b,c);return c},onRemove:function(l,d,b){var a=this,i=a.all,g=a.hasListeners.itemremove,e,c,k,f,h,j;if(i.getCount()){if(a.dataSource.getCount()===0){if(g){a.fireEvent('itemremove',d,b,a.getNodes(b,b+d.length-1))}a.refresh()}else {j=a.saveFocusState();if(g){f=[]}for(c=d.length-1;c>=0;--c){k=d[c];e=b+c;if(f){h=i.item(e);f[c]=h?h.dom:undefined}if(i.item(e)){a.doRemove(k,e)}}if(g){a.fireEvent('itemremove',d,b,f,a)}j();a.updateIndexes(b)}a.refreshSizePending=!0}},doRemove:function(b,a){this.all.removeElement(a,!0)},saveFocusState:function(){var a=this,e=a.dataSource||a.store,c=a.getNavigationModel(),b=c.recordIndex,d=c.record;if(a.el.contains(Ext.Element.getActiveElement())){a.el.dom.focus();return function(){if(e.getCount()){b=Math.min(b,a.all.getCount()-1);c.setPosition(e.contains(d)?d:b,null,null,!0)}}}return Ext.emptyFn},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(d,b){var e=this.all.elements,c,f=this.getViewRange(),a,g=this.id;d=d||0;b=b||(b===0?0:e.length-1);for(a=d;a<=b;a++){c=e[a];c.setAttribute('data-recordIndex',a);c.setAttribute('data-recordId',f[a].internalId);c.setAttribute('data-boundView',g)}},bindStore:function(b,e){var a=this,c=a.getSelectionModel(),d=a.getNavigationModel();c.bindStore(b);c.bindComponent(b?a:null);a.mixins.storeholder.bindStore.apply(a,arguments);d.setStore(b);if(b&&a.componentLayoutCounter){a.doFirstRefresh(b,!e)}},doFirstRefresh:function(b,c){var a=this;if(a.deferInitialRefresh&&!c){Ext.defer(a.doFirstRefresh,1,a,[b,!0])}else {if(b&&!b.isLoading()){a.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(c,b){var a=this;if(a.store.isBufferedStore){a.store.preserveScrollOnReload=a.preserveScrollOnReload}if(b&&b.isBufferedStore){delete b.preserveScrollOnReload}a.setMaskBind(c);if(!a.dataSource){a.dataSource=c}},setMaskBind:function(b){var a=this.loadMask;if(this.rendered&&a&&b&&!a.bindStore){a=this.createMask()}if(a&&a.bindStore){a.bindStore(b)}},getStoreListeners:function(){var a=this;return {refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var a=this;if(a.updateSuspendCounter){--a.updateSuspendCounter}Ext.resumeLayouts(!0);if(a.refreshSizePending){a.refreshSize(!0);a.refreshSizePending=!1}},onDataRefresh:function(b){var a=this,c=a.preserveScrollOnRefresh;if(b.loadCount>a.lastRefreshLoadCount){a.preserveScrollOnRefresh=a.preserveScrollOnReLoad}a.refreshView();a.preserveScrollOnRefresh=c;a.lastRefreshLoadCount=b.loadCount},refreshView:function(){var a=this,b=a.blockRefresh||!a.rendered||a.up('[collapsed],[isCollapsingOrExpanding],[hidden]');if(b){a.refreshNeeded=!0}else {if(a.bufferedRenderer){a.bufferedRenderer.refreshView()}else {a.refresh()}}},findItemByChild:function(a){return Ext.fly(a).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(a){return a.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var c=[],b=this.getSelectionModel().getSelection(),d=b.length,a=0;for(;aa.bottom){d=b.bottom-a.bottom}}if(b.lefta.right){c=b.right-a.right}}if(c||d){g.scrollBy(c,d,!1)}e.set({tabIndex:-1});e.focus()}},privates:{repaintBorder:function(b){var a=this.getNode(b);if(a){a.className=a.className}}}},0,['dataview'],['component','box','dataview'],{'component':!0,'box':!0,'dataview':!0},['widget.dataview'],0,[Ext.view,'View',Ext,'DataView'],0);Ext.cmd.derive('Ext.view.BoundListKeyNav',Ext.view.NavigationModel,{navigateOnSpace:!0,initKeyNav:function(c){var a=this,b=c.pickerField;if(!a.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,c);a.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:a.onKeyEsc,scope:a})}if(!b){return}if(!b.rendered){b.on('render',Ext.Function.bind(a.initKeyNav,a,[c],0),a,{single:!0});return}a.fieldKeyNav=new Ext.util.KeyNav({disabled:!0,target:b.inputEl,forceKeyDown:!0,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,tab:a.onKeyTab,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1001,scope:a})},processViewEvent:function(b,c,e,d,a){if(a.within(b.listWrap)){return a}if(a.getKey()===a.ESC){if(Ext.fly(a.target).isInputField()){a.target=a.target.parentNode}return a}},enable:function(){this.fieldKeyNav.enable();Ext.view.NavigationModel.prototype.enable.call(this)},disable:function(){this.fieldKeyNav.disable();Ext.view.NavigationModel.prototype.disable.call(this)},onItemMouseDown:function(e,b,d,c,a){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,e,b,d,c,a);a.preventDefault()},onKeyUp:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b>0?b-1:f.getCount()-1;d.setPosition(e);g.preventDefault()},onKeyDown:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b
    ',destroy:function(){var a=this;if(a.spinnerEl){a.spinnerEl.destroy();a.spinnerEl=a.upEl=a.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var a=this;return {vertical:a.vertical,upDisabledCls:a.upEnabled?'':a.spinnerUpCls+'-disabled',downDisabledCls:a.downEnabled?'':a.spinnerDownCls+'-disabled',spinnerCls:a.spinnerCls,spinnerUpCls:a.spinnerUpCls,spinnerDownCls:a.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var a=this,d=arguments,c=a.clickRepeater?d[1]:d[0],b=a.field;if(!b.readOnly&&!b.disabled){if(a.upEl.contains(c.target)){Ext.callback(a.upHandler,a.scope,[b,a,c],0,b)}else {if(a.downEl.contains(c.target)){Ext.callback(a.downHandler,a.scope,[b,a,c],0,b)}}}b.inputEl.focus()},onFieldRender:function(){var a=this,d=a.vertical,c,b;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);c=a.spinnerEl=a.el.select('.'+a.spinnerCls,!0);b=c.elements;a.upEl=d?b[0]:b[1];a.downEl=d?b[1]:b[0]},setUpEnabled:function(a){this.upEl[a?'removeCls':'addCls'](this.spinnerUpCls+'-disabled')},setDownEnabled:function(a){this.downEl[a?'removeCls':'addCls'](this.spinnerDownCls+'-disabled')}},0,0,0,0,['trigger.spinner'],0,[Ext.form.trigger,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Spinner',Ext.form.field.Text,{alternateClassName:'Ext.form.Spinner',config:{triggers:{spinner:{type:'spinner',upHandler:'onSpinnerUpClick',downHandler:'onSpinnerDownClick',scope:'this'}}},spinUpEnabled:!0,spinDownEnabled:!0,keyNavEnabled:!0,mouseWheelEnabled:!0,repeatTriggerClick:!0,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:'spinbutton',applyTriggers:function(b){var c=this,a=b.spinner;a.upEnabled=c.spinUpEnabled;a.downEnabled=c.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},onRender:function(){var a=this,b=a.getTrigger('spinner');(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(a.keyNavEnabled){a.spinnerKeyNav=new Ext.util.KeyNav(a.inputEl,{scope:a,up:a.spinUp,down:a.spinDown})}if(a.mouseWheelEnabled){a.mon(a.bodyEl,'mousewheel',a.onMouseWheel,a)}a.spinUpEl=b.upEl;a.spinDownEl=b.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var a=this;if(a.spinUpEnabled&&!a.disabled){a.fireEvent('spin',a,'up');a.fireEvent('spinup',a);a.onSpinUp()}},spinDown:function(){var a=this;if(a.spinDownEnabled&&!a.disabled){a.fireEvent('spin',a,'down');a.fireEvent('spindown',a);a.onSpinDown()}},setSpinUpEnabled:function(b){var a=this,c=a.spinUpEnabled;a.spinUpEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setUpEnabled(b)}},setSpinDownEnabled:function(b){var a=this,c=a.spinDownEnabled;a.spinDownEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setDownEnabled(b)}},onMouseWheel:function(c){var b=this,a;if(b.hasFocus){a=c.getWheelDelta();if(a>0){b.spinUp()}else {if(a<0){b.spinDown()}}c.stopEvent()}},onDestroy:function(){Ext.destroyMembers(this,'spinnerKeyNav');Ext.form.field.Text.prototype.onDestroy.call(this)}},0,['spinnerfield'],['component','box','field','textfield','spinnerfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0},['widget.spinnerfield'],0,[Ext.form.field,'Spinner',Ext.form,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Number',Ext.form.field.Spinner,{alternateClassName:['Ext.form.NumberField','Ext.form.Number'],allowExponential:!0,allowDecimals:!0,decimalSeparator:null,submitLocaleSeparator:!0,decimalPrecision:2,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,step:1,minText:'The minimum value for this field is {0}',maxText:'The maximum value for this field is {0}',nanText:'{0} is not a valid number',negativeText:'The value cannot be negative',baseChars:'0123456789',autoStripChars:!1,initComponent:function(){var a=this;if(a.decimalSeparator===null){a.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);a.setMinValue(a.minValue);a.setMaxValue(a.maxValue)},getSubTplData:function(g){var f=this,e=f.minValue,d=f.maxValue,c,a,b;c=Ext.form.field.Spinner.prototype.getSubTplData.call(this,g);a=c.inputElAriaAttributes;if(a){if(e>Number.NEGATIVE_INFINITY){a['aria-valuemin']=e}if(d=e&&b<=d){a['aria-valuenow']=b}}return c},setValue:function(d){var a=this,c,b;if(a.hasFocus){c=a.getBind();b=c&&c.value;if(b&&b.syncing&&d===a.value){return a}}return Ext.form.field.Spinner.prototype.setValue.call(this,d)},getErrors:function(b){b=arguments.length>0?b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Spinner.prototype.getErrors.call(this,b),e=Ext.String.format,d;if(b.length<1){return c}b=String(b).replace(a.decimalSeparator,'.');if(isNaN(b)){c.push(e(a.nanText,b))}d=a.parseValue(b);if(a.minValue===0&&d<0){c.push(this.negativeText)}else {if(da.maxValue){c.push(e(a.maxText,a.maxValue))}return c},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(a){var b=this,c=b.decimalSeparator;a=b.parseValue(a);a=b.fixPrecision(a);a=Ext.isNumber(a)?a:parseFloat(String(a).replace(c,'.'));a=isNaN(a)?'':String(a).replace('.',c);return a},getSubmitValue:function(){var b=this,a=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!b.submitLocaleSeparator){a=a.replace(b.decimalSeparator,'.')}return a},onChange:function(a){var b=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(b){if(Ext.isNumber(a)&&isFinite(a)){b.setAttribute('aria-valuenow',a)}else {b.removeAttribute('aria-valuenow')}}},toggleSpinners:function(){var a=this,c=a.getValue(),d=c===null,b;if(a.spinUpEnabled||a.spinUpDisabledByToggle){b=d||ca.minValue;a.setSpinDownEnabled(b,!0)}},setMinValue:function(e){var a=this,c=a.ariaEl.dom,d,b,c;a.minValue=d=Ext.Number.from(e,Number.NEGATIVE_INFINITY);a.toggleSpinners();if(c){if(d>Number.NEGATIVE_INFINITY){c.setAttribute('aria-valuemin',d)}else {c.removeAttribute('aria-valuemin')}}if(a.disableKeyFilter!==!0){b=a.baseChars+'';if(a.allowExponential){b+=a.decimalSeparator+'e+-'}else {if(a.allowDecimals){b+=a.decimalSeparator}if(a.minValue<0){b+='-'}}b=Ext.String.escapeRegex(b);a.maskRe=new RegExp('['+b+']');if(a.autoStripChars){a.stripCharsRe=new RegExp('[^'+b+']','gi')}}},setMaxValue:function(c){var b=this.ariaEl.dom,a;this.maxValue=a=Ext.Number.from(c,Number.MAX_VALUE);if(b){if(aa.maxLength){return}}a.setValue(b)}},0,['numberfield'],['component','box','field','textfield','spinnerfield','numberfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0,'numberfield':!0},['widget.numberfield'],0,[Ext.form.field,'Number',Ext.form,'NumberField',Ext.form,'Number'],0);Ext.cmd.derive('Ext.toolbar.Paging',Ext.toolbar.Toolbar,{alternateClassName:'Ext.PagingToolbar',displayInfo:!1,prependButtons:!1,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display',beforePageText:'Page',afterPageText:'of {0}',firstText:'First Page',prevText:'Previous Page',nextText:'Next Page',lastText:'Last Page',refreshText:'Refresh',inputItemWidth:30,emptyPageData:{total:0,currentPage:0,pageCount:0,toRecord:0,fromRecord:0},defaultBindProperty:'store',getPagingItems:function(){var a=this,b={scope:a,blur:a.onPagingBlur};b[Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress']=a.onPagingKeyDown;return [{itemId:'first',tooltip:a.firstText,overflowText:a.firstText,iconCls:'x-tbar-page-first',disabled:!0,handler:a.moveFirst,scope:a},{itemId:'prev',tooltip:a.prevText,overflowText:a.prevText,iconCls:'x-tbar-page-prev',disabled:!0,handler:a.movePrevious,scope:a},'-',a.beforePageText,{xtype:'numberfield',itemId:'inputItem',name:'inputItem',cls:'x-tbar-page-number',allowDecimals:!1,minValue:1,hideTrigger:!0,enableKeyEvents:!0,keyNavEnabled:!1,selectOnFocus:!0,submitValue:!1,isFormField:!1,width:a.inputItemWidth,margin:'-1 2 3 2',listeners:b},{xtype:'tbtext',itemId:'afterTextItem',html:Ext.String.format(a.afterPageText,1)},'-',{itemId:'next',tooltip:a.nextText,overflowText:a.nextText,iconCls:'x-tbar-page-next',disabled:!0,handler:a.moveNext,scope:a},{itemId:'last',tooltip:a.lastText,overflowText:a.lastText,iconCls:'x-tbar-page-last',disabled:!0,handler:a.moveLast,scope:a},'-',{itemId:'refresh',tooltip:a.refreshText,overflowText:a.refreshText,iconCls:'x-tbar-loading',disabled:a.store.isLoading(),handler:a.doRefresh,scope:a}]},initComponent:function(){var a=this,c=a.items||a.buttons||[],b;a.bindStore(a.store||'ext-empty-store',!0);b=a.getPagingItems();if(a.prependButtons){a.items=c.concat(b)}else {a.items=b.concat(c)}delete a.buttons;if(a.displayInfo){a.items.push('->');a.items.push({xtype:'tbtext',itemId:'displayItem'})}Ext.toolbar.Toolbar.prototype.initComponent.call(this)},beforeRender:function(){Ext.toolbar.Toolbar.prototype.beforeRender.apply(this,arguments);this.updateBarInfo()},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=!0;a.onLoad();a.calledInternal=!1}},updateInfo:function(){var a=this,d=a.child('#displayItem'),f=a.store,b=a.getPageData(),e,c;if(d){e=f.getCount();if(e===0){c=a.emptyMsg}else {c=Ext.String.format(a.displayMsg,b.fromRecord,b.toRecord,b.total)}d.setText(c)}},onLoad:function(){var a=this,f,c,b,g,h,d,e;h=a.store.getCount();d=h===0;if(!d){f=a.getPageData();c=f.currentPage;b=f.pageCount;if(c>b){if(b>0){a.store.loadPage(b)}else {a.getInputItem().reset()}return}g=Ext.String.format(a.afterPageText,isNaN(b)?1:b)}else {c=0;b=0;g=Ext.String.format(a.afterPageText,0)}Ext.suspendLayouts();e=a.child('#afterTextItem');if(e){e.update(g)}e=a.getInputItem();if(e){e.setDisabled(d).setValue(c)}a.setChildDisabled('#first',c===1||d);a.setChildDisabled('#prev',c===1||d);a.setChildDisabled('#next',c===b||d);a.setChildDisabled('#last',c===b||d);a.setChildDisabled('#refresh',!1);a.updateInfo();Ext.resumeLayouts(!0);if(!a.calledInternal){a.fireEvent('change',a,f||a.emptyPageData)}},setChildDisabled:function(c,b){var a=this.child(c);if(a){a.setDisabled(b)}},getPageData:function(){var a=this.store,b=a.getTotalCount();return {total:b,currentPage:a.currentPage,pageCount:Math.ceil(b/a.pageSize),fromRecord:(a.currentPage-1)*a.pageSize+1,toRecord:Math.min(a.currentPage*a.pageSize,b)}},onLoadError:function(){this.setChildDisabled('#refresh',!1)},getInputItem:function(){return this.child('#inputItem')},readPageFromInput:function(d){var a=this.getInputItem(),b=!1,c;if(a){c=a.getValue();b=parseInt(c,10);if(!c||isNaN(b)){a.setValue(d.currentPage);return !1}}return b},onPagingBlur:function(c){var a=this.getInputItem(),b;if(a){b=this.getPageData().currentPage;a.setValue(b)}},onPagingKeyDown:function(a,b){this.processKeyEvent(a,b)},processKeyEvent:function(g,b){var e=this,c=b.getKey(),d=e.getPageData(),f=b.shiftKey?10:1,a;if(c===b.RETURN){b.stopEvent();a=e.readPageFromInput(d);if(a!==!1){a=Math.min(Math.max(1,a),d.pageCount);if(a!==d.currentPage&&e.fireEvent('beforechange',e,a)!==!1){e.store.loadPage(a)}}}else {if(c===b.HOME||c===b.END){b.stopEvent();a=c===b.HOME?1:d.pageCount;g.setValue(a)}else {if(c===b.UP||c===b.PAGE_UP||c===b.DOWN||c===b.PAGE_DOWN){b.stopEvent();a=e.readPageFromInput(d);if(a){if(c===b.DOWN||c===b.PAGE_DOWN){f*=-1}a+=f;if(a>=1&&a<=d.pageCount){g.setValue(a)}}}}}},beforeLoad:function(){this.setChildDisabled('#refresh',!0)},moveFirst:function(){if(this.fireEvent('beforechange',this,1)!==!1){this.store.loadPage(1);return !0}return !1},movePrevious:function(){var a=this,b=a.store,c=b.currentPage-1;if(c>0){if(a.fireEvent('beforechange',a,c)!==!1){b.previousPage();return !0}}return !1},moveNext:function(){var a=this,b=a.store,d=a.getPageData().pageCount,c=b.currentPage+1;if(c<=d){if(a.fireEvent('beforechange',a,c)!==!1){b.nextPage();return !0}}return !1},moveLast:function(){var a=this,b=a.getPageData().pageCount;if(a.fireEvent('beforechange',a,b)!==!1){a.store.loadPage(b);return !0}return !1},doRefresh:function(){var a=this,c=a.store,b=c.currentPage;if(a.fireEvent('beforechange',a,b)!==!1){c.loadPage(b);return !0}return !1},getStoreListeners:function(){return {beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},onDestroy:function(){this.bindStore(null);Ext.toolbar.Toolbar.prototype.onDestroy.call(this)}},0,['pagingtoolbar'],['component','box','container','toolbar','pagingtoolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'pagingtoolbar':!0},['widget.pagingtoolbar'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.toolbar,'Paging',Ext,'PagingToolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Paging',{override:'Ext.toolbar.Paging',defaultButtonUI:'plain-toolbar',inputItemWidth:40});Ext.cmd.derive('Ext.view.BoundList',Ext.view.View,{alternateClassName:'Ext.BoundList',pageSize:0,baseCls:'x-boundlist',itemCls:'x-boundlist-item',listItemCls:'',shadow:!1,trackOver:!0,preserveScrollOnRefresh:!0,enableInitialSelection:!1,refreshSelmodelOnRefresh:!0,componentLayout:'boundlist',navigationModel:'boundlist',scrollable:!0,ariaEl:'listEl',tabIndex:-1,childEls:['listWrap','listEl'],renderTpl:['
    ','
      {$}="{.}"','>','
    ','
    ','{%','var pagingToolbar=values.$comp.pagingToolbar;','if (pagingToolbar) {','Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);','}','%}',{disableFormats:!0}],focusOnToFront:!1,initComponent:function(){var a=this,b=a.baseCls,c=a.itemCls;a.selectedItemCls=b+'-selected';if(a.trackOver){a.overItemCls=b+'-item-over'}a.itemSelector='.'+c;a.scrollerSelector='ul.x-list-plain';if(a.floating){a.addCls(b+'-floating')}if(!a.tpl){a.tpl=new Ext.XTemplate('','
  • '+a.getInnerTpl(a.displayField)+'
  • ','
    ')}else {if(!a.tpl.isTemplate){a.tpl=new Ext.XTemplate(a.tpl)}}if(a.pageSize){a.pagingToolbar=a.createPagingToolbar()}Ext.view.View.prototype.initComponent.call(this)},getRefOwner:function(){return this.pickerField||Ext.view.View.prototype.getRefOwner.call(this)},getRefItems:function(){var b=Ext.view.View.prototype.getRefItems.call(this),a=this.pagingToolbar;if(a){b.push(a)}return b},createPagingToolbar:function(){return Ext.widget('pagingtoolbar',{id:this.id+'-paging-toolbar',pageSize:this.pageSize,store:this.dataSource,border:!1,ownerCt:this,ownerLayout:this.getComponentLayout()})},getNodeContainer:function(){return this.listEl},refresh:function(){var b=this,a=b.tpl;a.field=b.pickerField;a.store=b.store;Ext.view.View.prototype.refresh.call(this);a.field=a.store=null},bindStore:function(c,b){var a=this.pagingToolbar;Ext.view.View.prototype.bindStore.apply(this,arguments);if(a){a.bindStore(c,b)}},getInnerTpl:function(a){return '{'+a+'}'},onShow:function(){var a=this.pickerField;Ext.view.View.prototype.onShow.call(this);if(a&&a.rendered&&!a.hasFocus){a.focus()}},afterComponentLayout:function(e,d,c,b){var a=this.pickerField;Ext.view.View.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&a.alignPicker){a.alignPicker()}},onItemClick:function(e){var d=this,b=d.pickerField,c,a;if(!b){return}c=b.valueField;a=d.getSelectionModel().getSelection();if(!b.multiSelect&&a.length){a=a[0];if(a&&b.isEqual(e.get(c),a.get(c))&&b.collapse){b.collapse()}}},onContainerClick:function(b){var a=this.pagingToolbar;if(a&&a.rendered&&b.within(a.el)){return !1}},onDestroy:function(){Ext.view.View.prototype.onDestroy.call(this);Ext.destroyMembers(this,'pagingToolbar','listWrap','listEl')},privates:{getTargetEl:function(){return this.listEl},getOverflowEl:function(){return this.listWrap},finishRenderChildren:function(){var a=this.pagingToolbar;Ext.view.View.prototype.finishRenderChildren.apply(this,arguments);if(a){a.finishRender()}}}},0,['boundlist'],['component','box','dataview','boundlist'],{'component':!0,'box':!0,'dataview':!0,'boundlist':!0},['widget.boundlist'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,'BoundList',Ext,'BoundList'],0);Ext.cmd.derive('Ext.form.field.ComboBox',Ext.form.field.Picker,{alternateClassName:'Ext.form.ComboBox',config:{filters:null,selection:null,valueNotFoundText:null,displayTpl:!1,delimiter:', ',displayField:'text'},publishes:['selection'],twoWayBindable:['selection'],triggerCls:'x-form-arrow-trigger',hiddenName:'',collapseOnSelect:!1,hiddenDataCls:'x-hidden-display x-form-data-hidden',ariaRole:'combobox',childEls:{'hiddenDataEl':!0},filtered:!1,afterRender:function(){var a=this;Ext.form.field.Picker.prototype.afterRender.apply(this,arguments);a.setHiddenValue(a.value)},multiSelect:!1,triggerAction:'all',allQuery:'',queryParam:'query',queryMode:'remote',queryCaching:!0,autoLoadOnValue:!1,pageSize:0,anyMatch:!1,caseSensitive:!1,autoSelect:!0,typeAhead:!1,typeAheadDelay:250,selectOnTab:!0,forceSelection:!1,growToLongestValue:!0,clearFilterOnBlur:!0,defaultListConfig:{loadingHeight:70,minWidth:70,maxHeight:300,shadow:'sides'},transformInPlace:!0,clearValueOnEmpty:!0,getGrowWidth:function(){var a=this,i=a.inputEl.dom.value,h,e,g,c,b,f,d;if(a.growToLongestValue){h=a.displayField;e=a.store;g=e.data.length;c=0;for(b=0;bc){c=d;i=f}}}return i},initComponent:function(){var a=this,d=Ext.isDefined,f=a.store,e=a.transform,b,c;if('pinList' in a){a.collapseOnSelect=!a.pinList}if(e){b=Ext.getDom(e);if(b){if(!a.store){f=Ext.Array.map(Ext.Array.from(b.options),function(a){return [a.value,a.text]})}if(!a.name){a.name=b.name}if(!('value' in a)){a.value=b.value}}}a.bindStore(f||'ext-empty-store',!0,!0);c=a.queryMode==='local';if(!d(a.queryDelay)){a.queryDelay=c?10:500}if(!d(a.minChars)){a.minChars=c?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);a.doQueryTask=new Ext.util.DelayedTask(a.doRawQuery,a);if(b){if(a.transformInPlace){a.render(b.parentNode,b);delete a.renderTo}Ext.removeNode(b)}},getSubTplData:function(c){var b,a;b=Ext.form.field.Picker.prototype.getSubTplData.call(this,c);a=b.inputElAriaAttributes;if(a){a['aria-autocomplete']='list'}return b},getSubTplMarkup:function(c){var b=this,a='',d=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(b.hiddenName){a=''}return a+d},applyDisplayTpl:function(a){var b=this;if(!a){a=new Ext.XTemplate('{[typeof values === "string" ? values : values["'+b.getDisplayField()+'"]]}'+b.getDelimiter()+'');a.auto=!0}else {if(!a.isTemplate){a=new Ext.XTemplate(a)}}return a},applyFilters:function(b,a){var c=this;if(b===null||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.beginUpdate();a.splice(0,a.length,b);a.each(function(d){d.ownerId=c.id});a.endUpdate()}return a},applyValueNotFoundText:function(b){var a=this,c=a.valueNotFoundRecord||(a.valueNotFoundRecord=new Ext.data.Model());c.set(a.displayField,b);if(a.valueField&&a.displayField!==a.valueField){c.set(a.valueField,b)}return b},getFilters:function(b){var a=this.filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,c){var b=this;if(c){c.un('endupdate','onEndUpdateFilters',b)}if(a){a.on('endupdate','onEndUpdateFilters',b)}b.onEndUpdateFilters(a)},onEndUpdateFilters:function(a){var b=this,f=b.filtered,e=!!a&&a.length>0,d,c;if(f||e){b.filtered=e;d=[];c=b.store.getFilters();c.each(function(c){if(c.ownerId===b.id&&!a.contains(c)){d.push(c)}});c.splice(0,d,a.items)}},completeEdit:function(c){var a=this,b=a.queryFilter;Ext.form.field.Picker.prototype.completeEdit.call(this,c);a.doQueryTask.cancel();a.assertValue();if(b&&a.queryMode==='local'&&a.clearFilterOnBlur){a.getStore().getFilters().remove(b)}},onFocus:function(b){var a=this;Ext.form.field.Picker.prototype.onFocus.call(this,b);if(a.triggerAction!=='all'&&a.queryFilter&&a.queryMode==='local'&&a.clearFilterOnBlur){delete a.lastQuery;a.doRawQuery()}},assertValue:function(){var a=this,e=a.getRawValue(),c=a.getDisplayValue(),d=a.lastSelectedRecords,b;if(a.forceSelection){if(a.multiSelect){if(e!==c){a.setRawValue(c)}}else {b=a.findRecordByDisplay(e);if(b){if(a.getDisplayValue([a.getRecordDisplayData(b)])!==c){a.select(b,!0)}}else {if(d&&(!a.allowBlank||a.rawValue)){a.setValue(d)}else {if(d){delete a.lastSelectedRecords}a.setRawValue('')}}}}a.collapse()},onTypeAhead:function(){var a=this,e=a.displayField,d=a.store.findRecord(e,a.getRawValue()),f=a.getPicker(),b,g,c;if(d){b=d.get(e);g=b.length;c=a.getRawValue().length;f.highlightItem(f.getNode(d));if(c!==0&&c!==g){a.setRawValue(b);a.selectText(c,b.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){var a=this.queryFilter;Ext.form.field.Picker.prototype.beforeReset.call(this);if(a){this.getStore().getFilters().remove(a)}},onUnbindStore:function(){var a=this,c=a.picker,b=a.queryFilter;if(b&&!a.store.destroyed){a.changingFilters=!0;a.getStore().removeFilter(b,!0);a.changingFilters=!1}a.pickerSelectionModel.destroy();if(c){c.bindStore(null)}},onBindStore:function(b,f){var a=this,d=a.picker,c,e;if(b){if(b.autoCreated){a.queryMode='local';a.valueField=a.displayField='field1';if(!b.expanded){a.displayField='field2'}if(a.getDisplayTpl().auto){a.setDisplayTpl(null)}}if(!Ext.isDefined(a.valueField)){a.valueField=a.displayField}c={byValue:{rootProperty:'data',unique:!1}};c.byValue.property=a.valueField;b.setExtraKeys(c);if(a.displayField===a.valueField){b.byText=b.byValue}else {c.byText={rootProperty:'data',unique:!1};c.byText.property=a.displayField;b.setExtraKeys(c)}e={rootProperty:'data',extraKeys:{byInternalId:{property:'internalId'},byValue:{property:a.valueField,rootProperty:'data'}},listeners:{beginupdate:a.onValueCollectionBeginUpdate,endupdate:a.onValueCollectionEndUpdate,scope:a}};a.valueCollection=new Ext.util.Collection(e);a.pickerSelectionModel=new Ext.selection.DataViewModel({mode:a.multiSelect?'SIMPLE':'SINGLE',deselectOnContainerClick:!1,enableInitialSelection:!1,pruneRemoved:!1,selected:a.valueCollection,store:b,listeners:{scope:a,lastselectedchanged:a.updateBindSelection}});if(!f){a.resetToDefault()}if(d){d.setSelectionModel(a.pickerSelectionModel);if(d.getStore()!==b){d.bindStore(b)}}}},bindStore:function(a,e,c){var b=this,d=b.queryFilter;b.mixins.storeholder.bindStore.call(b,a,c);a=b.getStore();if(a&&d&&!e){a.getFilters().add(d)}if(!c&&a&&!a.isEmptyStore){b.setValueOnData()}},getStoreListeners:function(c){if(!c.isEmptyStore){var a=this,b={datachanged:a.onDataChanged,load:a.onLoad,exception:a.onException,update:a.onStoreUpdate,remove:a.checkValueOnChange};if(!c.getRemoteFilter()){b.filterchange=a.checkValueOnChange}return b}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var a=this;if(!a.destroying&&a.getStore().isLoaded()){if(a.multiSelect){}else {if(a.forceSelection&&!a.changingFilters&&!a.findRecordByValue(a.value)){a.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.collapse()},onLoad:function(b,e,d){var a=this,c=!a.valueCollection.byValue.get(a.value);if(d&&c&&!(b.lastOptions&&'rawQuery' in b.lastOptions)){a.setValueOnData()}a.checkValueOnChange()},setValueOnData:function(){var a=this;a.setValue(a.value);if(a.isExpanded&&a.getStore().getCount()){a.doAutoSelect()}},doRawQuery:function(){var a=this,b=a.inputEl.dom.value;if(a.multiSelect){b=b.split(a.delimiter).pop()}a.doQuery(b,!1,!0)},doQuery:function(c,f,g){var a=this,d=a.getStore(),e=d.filters&&!d.filters.length&&!!c,b=a.beforeQuery({query:c||'',rawQuery:g,forceAll:f,combo:a,cancel:!1});if(b!==!1&&!b.cancel){if(a.queryCaching&&!e&&b.query===a.lastQuery){a.getPicker().refresh();a.expand()}else {a.lastQuery=b.query;if(a.queryMode==='local'){a.doLocalQuery(b)}else {a.doRemoteQuery(b)}}}return !0},beforeQuery:function(a){var b=this;if(b.fireEvent('beforequery',a)===!1){a.cancel=!0}else {if(!a.cancel){if(a.query.length0){a=b.picker.getSelectionModel();if(a.lastSelected&&a.selected.length){c=a.lastSelected}d.getNavigationModel().setPosition(c)}},doTypeAhead:function(){var a=this,b=Ext.event.Event;if(!a.typeAheadTask){a.typeAheadTask=new Ext.util.DelayedTask(a.onTypeAhead,a)}if(a.lastKey!==b.BACKSPACE&&a.lastKey!==b.DELETE){a.typeAheadTask.delay(a.typeAheadDelay)}},onTriggerClick:function(){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else {if(a.triggerAction==='all'){a.doQuery(a.allQuery,!0)}else {if(a.triggerAction==='last'){a.doQuery(a.lastQuery,!0)}else {a.doQuery(a.getRawValue(),!1,!0)}}}}},onFieldMutation:function(b){var a=this,c=b.getKey(),d=c===b.BACKSPACE||c===b.DELETE,e=a.inputEl.dom.value,f=e.length;if(!a.readOnly&&(e!==a.lastMutatedValue||d)&&c!==b.TAB){a.lastMutatedValue=e;a.lastKey=c;if(f&&(b.type!=='keyup'||(!b.isSpecialKey()||d))){a.doQueryTask.delay(a.queryDelay)}else {if(!f&&(!c||d)){++a.suspendCheckChange;if(!a.multiSelect){a.value=null;a.displayTplData=undefined}if(a.clearValueOnEmpty){a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.removeAll();a.valueCollection.endUpdate()}a.collapse();if(a.queryFilter){a.changingFilters=!0;a.store.removeFilter(a.queryFilter,!0);a.changingFilters=!1}--a.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,b)}}},onDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);a.valueCollection=Ext.destroy(a.valueCollection);Ext.form.field.Picker.prototype.onDestroy.call(this)},onAdded:function(){var a=this;Ext.form.field.Picker.prototype.onAdded.apply(this,arguments);if(a.picker){a.picker.ownerCt=a.up('[floating]');a.picker.registerWithOwnerCt()}},createPicker:function(){var a=this,b,c=Ext.apply({xtype:'boundlist',id:a.pickerId,pickerField:a,selectionModel:a.pickerSelectionModel,floating:!0,hidden:!0,store:a.getPickerStore(),displayField:a.displayField,preserveScrollOnRefresh:!0,pageSize:a.pageSize,tpl:a.tpl},a.listConfig,a.defaultListConfig);b=a.picker=Ext.widget(c);if(a.pageSize){b.pagingToolbar.on('beforechange',a.onPageChange,a)}if(!b.initialConfig.maxHeight){b.on({beforeshow:a.onBeforePickerShow,scope:a})}b.getSelectionModel().on({beforeselect:a.onBeforeSelect,beforedeselect:a.onBeforeDeselect,focuschange:a.onFocusChange,scope:a});b.getNavigationModel().navigateOnSpace=!1;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(d){var b=this,a=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-a-b.getHeight();d.maxHeight=Math.max(a,c)-5},onBeforeSelect:function(c,b,a){return this.fireEvent('beforeselect',this,b,a)},onBeforeDeselect:function(c,b,a){return this.fireEvent('beforedeselect',this,b,a)},onFocusChange:function(e,d,b){var c=this.picker,a;if(b){a=Ext.get(c.getNodeByRecord(b));if(a){this.ariaEl.dom.setAttribute('aria-activedescendant',a.id)}}},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getPicker().getSelectionModel();if(c){b.select(c);a.hasHadSelection=!0}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var a=this,e=a.store,b=a.valueCollection.getRange(),d=b[0],c=b.length;a.updateBindSelection(a.pickerSelectionModel,b);if(a.isSelectionUpdating()){return}Ext.suspendLayouts();a.lastSelection=b;if(c){a.lastSelectedRecords=b}a.updateValue();if(c&&(!a.multiSelect&&e.contains(d)||a.collapseOnSelect||!e.getCount())){a.updatingValue=!0;a.collapse();a.updatingValue=!1}Ext.resumeLayouts(!0);if(c&&!a.suspendCheckChange){if(!a.multiSelect){b=d}a.fireEvent('select',a,b)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var a=this.getPicker().getNavigationModel();if(a){a.enable()}this.doAutoSelect()},onCollapse:function(){var a=this.getPicker().getNavigationModel();if(a){a.disable()}if(this.updatingValue){this.doQueryTask.cancel()}},select:function(b,e){var a=this,d=a.picker,c;if(b&&b.isModel&&e===!0&&d){c=!d.getSelectionModel().isSelected(b)}if(!c){a.suspendEvent('select')}a.setValue(b);a.resumeEvent('select')},findRecord:function(c,d){var b=this.store,a=b.findExact(c,d);return a!==-1?b.getAt(a):!1},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=!1;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=!1;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,!0)}},setValue:function(b){var a=this;if(b!=null){return a.doSetValue(b)}else {a.suspendEvent('select');a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.endUpdate();a.lastSelectedRecords=null;a.resumeEvent('select')}},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(c,p){var a=this,f=a.getStore(),v=f.getModel(),e=[],u=[],r=a.autoLoadOnValue,m=f.getCount()>0||f.isLoaded(),l=f.hasPendingLoad(),o=r&&!m&&!l,t=a.forceSelection,n=a.pickerSelectionModel,s=a.displayField===a.valueField,j=f.isEmptyStore,k=a.lastSelection,d,h,b,i,g,q;if(l||o||!m||j){if(!c.isModel){if(p){a.value=Ext.Array.from(a.value).concat(c)}else {a.value=c}a.setHiddenValue(a.value);a.setRawValue(s?c:'')}if(o&&!j){f.load()}if(!c.isModel||j){return a}}c=p?Ext.Array.from(a.value).concat(c):Ext.Array.from(c);for(d=0,h=c.length;d0){h.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:'input',type:'hidden',name:i}));a=1;g=d.firstChild}while(a>c){d.removeChild(b[0]);--a}while(a style="{fieldStyle}"',' class="{fieldCls} {fieldCls}-{ui}">{value}',{compiled:!0,disableFormats:!0}],ariaRole:undefined,focusable:!1,readOnly:!0,fieldCls:'x-form-display-field',fieldBodyCls:'x-form-display-field-body',htmlEncode:!1,noWrap:!1,validateOnChange:!1,initEvents:Ext.emptyFn,submitValue:!1,getValue:function(){return this.value},valueToRaw:function(a){if(a||a===0||a===!1){return a}else {return ''}},isDirty:function(){return !1},isValid:Ext.returnTrue,validate:Ext.returnTrue,getRawValue:function(){return this.rawValue},setRawValue:function(b){var a=this;b=Ext.valueFrom(b,'');a.rawValue=b;if(a.rendered){a.inputEl.dom.innerHTML=a.getDisplayValue();a.updateLayout()}return b},getDisplayValue:function(){var a=this,c=this.getRawValue(),b;if(a.renderer){b=a.renderer.call(a.scope||a,c,a)}else {b=a.htmlEncode?Ext.util.Format.htmlEncode(c):c}return b},getSubTplData:function(b){var a=Ext.form.field.Base.prototype.getSubTplData.apply(this,arguments);a.value=this.getDisplayValue();return a}},0,['displayfield'],['component','box','field','displayfield'],{'component':!0,'box':!0,'field':!0,'displayfield':!0},['widget.displayfield'],0,[Ext.form.field,'Display',Ext.form,'DisplayField',Ext.form,'Display'],0);Ext.cmd.derive('Ext.tip.Tip',Ext.panel.Panel,{alternateClassName:'Ext.Tip',minWidth:40,maxWidth:500,shadow:'sides',defaultAlign:'tl-bl?',constrainPosition:!0,autoRender:!0,hidden:!0,baseCls:'x-tip',focusOnToFront:!1,maskOnDisable:!1,closeAction:'hide',alwaysFramed:!0,frameHeader:!1,initComponent:function(){var a=this;a.floating=Ext.apply({},{shadow:a.shadow,constrain:a.constrainPosition},a.self.prototype.floating);Ext.panel.Panel.prototype.initComponent.apply(this,arguments);a.constrain=a.constrain||a.constrainPosition},showAt:function(b){var a=this;Ext.panel.Panel.prototype.showAt.apply(this,arguments);if(a.isVisible()){a.setPagePosition(b[0],b[1]);if(a.constrainPosition||a.constrain){a.doConstrain()}a.toFront(!0)}},privates:{initDraggable:function(){var a=this;a.draggable={el:a.getDragEl(),delegate:a.header.el,constrain:a,constrainTo:a.el.dom.parentNode};Ext.Component.prototype.initDraggable.call(a)}},ghost:undefined,unghost:undefined},0,['tip'],['component','box','container','panel','tip'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tip':!0},['widget.tip'],0,[Ext.tip,'Tip',Ext,'Tip'],0);Ext.cmd.derive('Ext.tip.ToolTip',Ext.tip.Tip,{alternateClassName:'Ext.ToolTip',autoHide:!0,showDelay:500,hideDelay:200,dismissDelay:5000,trackMouse:!1,anchorToTarget:!0,anchorOffset:0,targetCounter:0,quickShowInterval:250,hideAction:'hide',fadeOutDuration:1000,ariaRole:'tooltip',initComponent:function(){var a=this;Ext.tip.Tip.prototype.initComponent.apply(this,arguments);a.lastActive=new Date();a.setTarget(a.target);a.origAnchor=a.anchor},onRender:function(c,b){var a=this;Ext.tip.Tip.prototype.onRender.apply(this,arguments);a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl=a.el.createChild({role:'presentation',cls:'x-tip-anchor '+a.anchorCls})},setTarget:function(d){var a=this,b=Ext.get(d),c;if(a.target){c=Ext.get(a.target);if(Ext.supports.Touch){a.mun(c,'tap',a.onTargetOver,a)}else {a.mun(c,{mouseover:a.onTargetOver,mouseout:a.onTargetOut,mousemove:a.onMouseMove,scope:a})}}a.target=b;if(b){if(Ext.supports.Touch){a.mon(b,{tap:a.onTargetOver,scope:a})}else {a.mon(b,{mouseover:a.onTargetOver,mouseout:a.onTargetOut,mousemove:a.onMouseMove,scope:a})}}if(a.anchor){a.anchorTarget=a.target}},onMouseMove:function(c){var a=this,d,b;if(!a.target||a.target.contains(c.target)){d=a.delegate?c.getTarget(a.delegate):a.triggerElement=!0;if(d){a.targetXY=c.getXY();if(d===a.triggerElement){if(!a.hidden&&a.trackMouse){b=a.getTargetXY();if(a.constrainPosition){b=a.el.adjustForConstraints(b,a.el.parent())}a.setPagePosition(b)}}else {a.hide();a.lastActive=new Date(0);a.onTargetOver(c)}}else {if(!a.closable&&a.isVisible()&&a.autoHide!==!1){a.delayHide()}}}},getTargetXY:function(){var a=this,c,d,h,m,l,f,e,j,k,b,g,i;if(a.delegate){a.anchorTarget=a.triggerElement}if(a.anchor){a.targetCounter++;d=a.getOffsets();h=a.anchorToTarget&&!a.trackMouse?a.getAlignToXY(a.anchorTarget,a.getAnchorAlign()):a.targetXY;m=Ext.Element.getViewportWidth()-5;l=Ext.Element.getViewportHeight()-5;f=document.documentElement;e=document.body;j=(f.scrollLeft||e.scrollLeft||0)+5;k=(f.scrollTop||e.scrollTop||0)+5;b=[h[0]+d[0],h[1]+d[1]];g=a.getSize();i=a.constrainPosition;a.anchorEl.removeCls(a.anchorCls);if(a.targetCounter<2&&i){if(b[0]m){if(a.anchorToTarget){a.defaultAlign='r-l';if(a.mouseOffset){a.mouseOffset[0]*=-1}}a.anchor='right';return a.getTargetXY()}if(b[1]l){if(a.anchorToTarget){a.defaultAlign='b-t';if(a.mouseOffset){a.mouseOffset[1]*=-1}}a.anchor='bottom';return a.getTargetXY()}}a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl.addCls(a.anchorCls);a.targetCounter=0;return b}else {c=a.getMouseOffset();return a.targetXY?[a.targetXY[0]+c[0],a.targetXY[1]+c[1]]:c}},calculateConstrainedPosition:function(e){var a=this,d,b,c;if(!e&&a.isContainedFloater()){d=a.isVisible();if(!d){a.el.show()}b=a.getTargetXY();if(!d){a.el.hide()}c=a.floatParent.getTargetEl().getViewRegion();b[0]-=c.left;b[1]-=c.top}else {b=a.callOverridden(arguments)}return b},getMouseOffset:function(){var a=this,b=a.anchor?[0,0]:[15,18];if(a.mouseOffset){b[0]+=a.mouseOffset[0];b[1]+=a.mouseOffset[1]}return b},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity('')}})},getAnchorPosition:function(){var a=this,b;if(a.anchor){a.tipAnchor=a.anchor.charAt(0)}else {b=a.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);a.tipAnchor=b[1].charAt(0)}switch(a.tipAnchor){case 't':return 'top';case 'b':return 'bottom';case 'r':return 'right';}return 'left'},getAnchorAlign:function(){switch(this.anchor){case 'top':return 'tl-bl';case 'left':return 'tl-tr';case 'right':return 'tr-tl';default:return 'bl-tl';}},getOffsets:function(){var b=this,c,a,d=b.getAnchorPosition().charAt(0);if(b.anchorToTarget&&!b.trackMouse){switch(d){case 't':a=[0,9];break;case 'b':a=[0,-13];break;case 'r':a=[-13,0];break;default:a=[9,0];break;}}else {switch(d){case 't':a=[-15-b.anchorOffset,30];break;case 'b':a=[-19-b.anchorOffset,-13-b.el.dom.offsetHeight];break;case 'r':a=[-15-b.el.dom.offsetWidth,-13-b.anchorOffset];break;default:a=[25,-13-b.anchorOffset];break;}}c=b.getMouseOffset();a[0]+=c[0];a[1]+=c[1];return a},onTargetOver:function(b){var a=this,d=a.delegate,c;if(a.disabled||b.within(a.target.dom,!0)){return}c=d?b.getTarget(d):!0;if(c){a.triggerElement=c;a.triggerEvent=b;a.clearTimer('hide');a.targetXY=b.getXY();a.delayShow()}},delayShow:function(c){var a=this,b=a.el&&(c===!1||!a.trackMouse)&&a.getTargetXY();if(a.hidden&&!a.showTimer){if(Ext.Date.getElapsed(a.lastActive)','',' ','',''],initComponent:function(){var a=this;Ext.Component.prototype.initComponent.apply(this,arguments);if(a.handler){a.on('select',a.handler,a.scope,!0)}},initRenderData:function(){var a=this;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{itemCls:a.itemCls,colors:a.colors})},onRender:function(){var a=this,b=a.clickEvent;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el,b,a.handleClick,a,{delegate:'a'});if(b!=='click'){a.mon(a.el,'click',Ext.emptyFn,a,{delegate:'a',stopEvent:!0})}},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);if(a.value){b=a.value;a.value=null;a.select(b,!0)}},handleClick:function(c){var a=this,b;c.stopEvent();if(!a.disabled){b=c.currentTarget.className.match(a.colorRe)[1];a.select(b.toUpperCase())}},select:function(b,g){var a=this,e=a.selectedCls,f=a.value,d,c;b=b.replace('#','');if(!a.rendered){a.value=b;return}if(b!==f||a.allowReselect){d=a.el;if(a.value){c=d.down('a.color-'+f,!0);Ext.fly(c).removeCls(e)}c=d.down('a.color-'+b,!0);Ext.fly(c).addCls(e);a.value=b;if(g!==!0){a.fireEvent('select',a,b)}}},clear:function(){var a=this,b=a.value,c;if(b&&a.rendered){c=a.el.down('a.color-'+b,!0);Ext.fly(c).removeCls(a.selectedCls)}a.value=null},getValue:function(){return this.value||null}},0,['colorpicker'],['component','box','colorpicker'],{'component':!0,'box':!0,'colorpicker':!0},['widget.colorpicker'],0,[Ext.picker,'Color',Ext,'ColorPalette'],0);Ext.cmd.derive('Ext.layout.component.field.HtmlEditor',Ext.layout.component.field.FieldContainer,{type:'htmleditor',naturalHeight:150,naturalWidth:300,beginLayout:function(a){var b=this.owner,c;if(Ext.isGecko){c=b.textareaEl.dom;this.lastValue=c.value;c.value=''}Ext.layout.component.field.FieldContainer.prototype.beginLayout.apply(this,arguments);a.toolbarContext=a.context.getCmp(b.toolbar);a.inputCmpContext=a.context.getCmp(b.inputCmp);a.bodyCellContext=a.getEl('bodyEl');a.textAreaContext=a.getEl('textareaEl');a.iframeContext=a.getEl('iframeEl')},beginLayoutCycle:function(a){var b=this,e=a.widthModel,c=a.heightModel,h=b.owner,f=h.iframeEl,d=h.textareaEl,g=c.natural||c.shrinkWrap?b.naturalHeight:'';Ext.layout.component.field.FieldContainer.prototype.beginLayoutCycle.apply(this,arguments);if(e.shrinkWrap){f.setStyle('width','');d.setStyle('width','')}else {if(e.natural){a.bodyCellContext.setWidth(b.naturalWidth)}}f.setStyle('height',g);d.setStyle('height',g)},finishedLayout:function(){var a=this.owner;Ext.layout.component.field.FieldContainer.prototype.finishedLayout.apply(this,arguments);if(Ext.isGecko){a.textareaEl.dom.value=this.lastValue}}},0,0,0,0,['layout.htmleditor'],0,[Ext.layout.component.field,'HtmlEditor'],0);Ext.cmd.derive('Ext.toolbar.Separator',Ext.toolbar.Item,{alternateClassName:'Ext.Toolbar.Separator',baseCls:'x-toolbar-separator',ariaRole:'separator'},0,['tbseparator'],['component','box','tbitem','tbseparator'],{'component':!0,'box':!0,'tbitem':!0,'tbseparator':!0},['widget.tbseparator'],0,[Ext.toolbar,'Separator',Ext.Toolbar,'Separator'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Menu',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Menu',noItemsMenuText:'',menuCls:'x-box-menu',constructor:function(a){var b=this;Ext.layout.container.boxOverflow.None.prototype.constructor.call(this,a);b.menuItems=[]},beginLayout:function(a){Ext.layout.container.boxOverflow.None.prototype.beginLayout.call(this,a);this.clearOverflow(a)},beginLayoutCycle:function(a,b){Ext.layout.container.boxOverflow.None.prototype.beginLayoutCycle.call(this,a,b);if(!b){this.clearOverflow(a);this.layout.cacheChildItems(a)}},onRemove:function(a){Ext.Array.remove(this.menuItems,a)},clearItem:function(a){var b=a.menu;if(a.isButton&&b){a.setMenu(b,!1)}},getSuffixConfig:function(){var a=this,c=a.layout,b=c.owner,d=b.id;a.menu=new Ext.menu.Menu({listeners:{scope:a,beforeshow:a.beforeMenuShow}});a.menuTrigger=new Ext.button.Button({id:d+'-menu-trigger',cls:a.menuCls+'-after x-toolbar-item',plain:b.usePlainButtons,ownerCt:b,ownerLayout:c,iconCls:'x-'+a.getOwnerType(b)+'-more-icon',ui:b.defaultButtonUI||'default',menu:a.menu,showEmptyMenu:!0,getSplitCls:function(){return ''}});return a.menuTrigger.getRenderTree()},getOverflowCls:function(a){return this.menuCls+'-body-'+a},handleOverflow:function(b){var a=this,c=a.layout;a.showTrigger(b);if(c.direction!=='vertical'){a.menuTrigger.setLocalY((b.state.boxPlan.maxSize-a.menuTrigger[c.names.getHeight]())/2)}return {reservedSpace:a.triggerTotalWidth}},captureChildElements:function(){var b=this,a=b.menuTrigger,c=b.layout.names;if(a.rendering){a.finishRender();b.triggerTotalWidth=a[c.getWidth]()+a.el.getMargin(c.parallelMargins)}},clearOverflow:function(h){var b=this,d=b.menuItems,g=d.length,e=b.layout.owner,f=e._asLayoutRoot,a,c;e.suspendLayouts();b.captureChildElements();b.hideTrigger();e.resumeLayouts();for(c=0;ck){h=d.target;b.menuItems.push(h);h.hide()}}o.resumeLayouts()},hideTrigger:function(){var a=this.menuTrigger;if(a){a.hide()}},beforeMenuShow:function(a){var e=this,g=e.menuItems,d=0,h=g.length,b,c,f=function(b,c){return b.isXType('buttongroup')&&!(c instanceof Ext.toolbar.Separator)};a.suspendLayouts();a.removeAll(!1);for(;d','{[Ext.util.Format.htmlEncode(values.value)]}','','{afterTextAreaTpl}','{beforeIFrameTpl}','','{afterIFrameTpl}',{disableFormats:!0}],stretchInputElFixed:!0,subTplInsertions:['beforeTextAreaTpl','afterTextAreaTpl','beforeIFrameTpl','afterIFrameTpl','iframeAttrTpl','inputAttrTpl'],enableFormat:!0,enableFontSize:!0,enableColors:!0,enableAlignments:!0,enableLists:!0,enableSourceEdit:!0,enableLinks:!0,enableFont:!0,createLinkText:'Please enter the URL for the link:',defaultLinkValue:'http://',fontFamilies:['Arial','Courier New','Tahoma','Times New Roman','Verdana'],defaultValue:Ext.isOpera?' ':'​',extraFieldBodyCls:'x-html-editor-wrap',defaultButtonUI:'default-toolbar',initialized:!1,activated:!1,sourceEditMode:!1,iframePad:3,hideMode:'offsets',maskOnDisable:!0,containerElCls:'x-html-editor-container',reStripQuotes:/^['"]*|['"]*$/g,textAlignRE:/text-align:(.*?);/i,safariNonsenseRE:/\sclass="(?:Apple-style-span|Apple-tab-span|khtml-block-placeholder)"/gi,nonDigitsRE:/\D/g,initComponent:function(){var a=this;a.items=[a.createToolbar(),a.createInputCmp()];a.layout={type:'vbox',align:'stretch'};if(a.value==null){a.value=''}Ext.form.FieldContainer.prototype.initComponent.apply(this,arguments);a.initField()},createInputCmp:function(){this.inputCmp=Ext.widget(this.getInputCmpCfg());return this.inputCmp},getInputCmpCfg:function(){var a=this,c=a.id+'-inputCmp',b={id:c,name:a.name,textareaCls:a.textareaCls+' x-hidden',value:a.value,iframeName:Ext.id(),iframeSrc:Ext.SSL_SECURE_URL,iframeCls:'x-htmleditor-iframe'};a.getInsertionRenderData(b,a.subTplInsertions);return {flex:1,xtype:'component',tpl:a.getTpl('componentTpl'),childEls:['iframeEl','textareaEl'],id:c,cls:'x-html-editor-input',data:b}},createToolbar:function(){this.toolbar=Ext.widget(this.getToolbarCfg());return this.toolbar},getToolbarCfg:function(){var a=this,b=[],e,f=Ext.quickTipsActive&&Ext.tip.QuickTipManager.isEnabled(),c='x-',g,d;function btn(b,g,e){return {itemId:b,cls:c+'btn-icon',iconCls:c+'edit-'+b,enableToggle:g!==!1,scope:a,handler:e||a.relayBtnCmd,clickEvent:'mousedown',tooltip:f?a.buttonTips[b]||d:d,overflowText:a.buttonTips[b].title||d,tabIndex:-1}}if(a.enableFont&&!Ext.isSafari2){g=Ext.widget('component',{itemId:'fontSelect',renderTpl:[''],childEls:['selectEl'],afterRender:function(){a.fontSelect=this.selectEl;Ext.Component.prototype.afterRender.apply(this,arguments)},onDisable:function(){var a=this.selectEl;if(a){a.dom.disabled=!0}Ext.Component.prototype.onDisable.apply(this,arguments)},onEnable:function(){var a=this.selectEl;if(a){a.dom.disabled=!1}Ext.Component.prototype.onEnable.apply(this,arguments)},listeners:{change:function(){a.win.focus();a.relayCmd('fontName',a.fontSelect.dom.value);a.deferFocus()},element:'selectEl'}});b.push(g,'-')}if(a.enableFormat){b.push(btn('bold'),btn('italic'),btn('underline'))}if(a.enableFontSize){b.push('-',btn('increasefontsize',!1,a.adjustFont),btn('decreasefontsize',!1,a.adjustFont))}if(a.enableColors){b.push('-',{itemId:'forecolor',cls:c+'btn-icon',iconCls:c+'edit-forecolor',overflowText:a.buttonTips.forecolor.title,tooltip:f?a.buttonTips.forecolor||d:d,tabIndex:-1,menu:Ext.widget('menu',{plain:!0,items:[{xtype:'colorpicker',allowReselect:!0,focus:Ext.emptyFn,value:'000000',plain:!0,clickEvent:'mousedown',handler:function(c,b){a.relayCmd('forecolor',Ext.isWebKit||Ext.isIE?'#'+b:b);this.up('menu').hide()}}]})},{itemId:'backcolor',cls:c+'btn-icon',iconCls:c+'edit-backcolor',overflowText:a.buttonTips.backcolor.title,tooltip:f?a.buttonTips.backcolor||d:d,tabIndex:-1,menu:Ext.widget('menu',{plain:!0,items:[{xtype:'colorpicker',focus:Ext.emptyFn,value:'FFFFFF',plain:!0,allowReselect:!0,clickEvent:'mousedown',handler:function(c,b){if(Ext.isGecko){a.execCmd('useCSS',!1);a.execCmd('hilitecolor','#'+b);a.execCmd('useCSS',!0);a.deferFocus()}else {a.relayCmd(Ext.isOpera?'hilitecolor':'backcolor',Ext.isWebKit||Ext.isIE||Ext.isOpera?'#'+b:b)}this.up('menu').hide()}}]})})}if(a.enableAlignments){b.push('-',btn('justifyleft'),btn('justifycenter'),btn('justifyright'))}if(!Ext.isSafari2){if(a.enableLinks){b.push('-',btn('createlink',!1,a.createLink))}if(a.enableLists){b.push('-',btn('insertorderedlist'),btn('insertunorderedlist'))}if(a.enableSourceEdit){b.push('-',btn('sourceedit',!0,function(){a.toggleSourceEdit(!a.sourceEditMode)}))}}for(e=0;e',a.iframePad,b,a.defaultFont)},getEditorBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){return this.iframeEl.dom.contentDocument||this.getWin().document},getWin:function(){return this.iframeEl.dom.contentWindow||window.frames[this.iframeEl.dom.name]},initDefaultFont:function(){var b=this,h=0,c,a,f,e,d,i,g;if(!b.defaultFont){a=b.textareaEl.getStyle('font-family');a=Ext.String.capitalize(a.split(',')[0]);c=Ext.Array.clone(b.fontFamilies);Ext.Array.include(c,a);c.sort();b.defaultFont=a;f=b.down('#fontSelect').selectEl.dom;for(d=0,i=c.length;d'+a+''}}a=b.cleanHtml(a);if(b.fireEvent('beforesync',b,a)!==!1){if(Ext.isGecko&&c.value===''&&a==='
    '){a=''}if(c.value!==a){c.value=a;g=!0}b.fireEvent('sync',b,a);if(g){b.checkChange()}}}},getValue:function(){var a=this,b;if(!a.sourceEditMode){a.syncValue()}b=a.rendered?a.textareaEl.dom.value:a.value;a.value=b;return b},pushValue:function(){var a=this,b;if(a.initialized){b=a.textareaEl.dom.value||'';if(!a.activated&&b.length<1){b=a.defaultValue}if(a.fireEvent('beforepush',a,b)!==!1){a.getEditorBody().innerHTML=b;if(Ext.isGecko){a.setDesignMode(!1);a.setDesignMode(!0)}a.fireEvent('push',a,b)}}},focus:function(e,c){var a=this,d,b;if(c){if(!a.focusTask){a.focusTask=new Ext.util.DelayedTask(a.focus)}a.focusTask.delay(Ext.isNumber(c)?c:10,null,a,[e,!1])}else {if(e){if(a.textareaEl&&a.textareaEl.dom){d=a.textareaEl.dom.value}if(d&&d.length){a.execCmd('selectall',!0)}}b=a.getFocusEl();if(b&&b.focus){b.focus()}}return a},initEditor:function(){var a=this,e,f,d,c,b;if(a.destroying||a.destroyed){return}e=a.getEditorBody();if(!e){setTimeout(function(){a.initEditor()},10);return}f=a.textareaEl.getStyle(['font-size','font-family','background-image','background-repeat','background-color','color']);f['background-attachment']='fixed';e.bgProperties='fixed';Ext.DomHelper.applyStyles(e,f);d=a.getDoc();c=Ext.get(d);if(c){try{c.clearListeners()}catch(g){}b=a.onEditorEvent.bind(a);c.on({mousedown:b,dblclick:b,click:b,keyup:b,delegated:!1,buffer:100});b=a.onRelayedEvent;c.on({mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,delegated:!1,scope:a});if(Ext.isGecko){c.on('keypress',a.applyCommand,a)}if(a.fixKeys){c.on('keydown',a.fixKeys,a,{delegated:!1})}if(a.fixKeysAfter){c.on('keyup',a.fixKeysAfter,a,{delegated:!1})}if(Ext.isIE9){Ext.get(d.documentElement).on('focus',a.focus,a)}if(Ext.isIE8){c.on('focusout',function(){a.savedSelection=d.selection.type!=='None'?d.selection.createRange():null},a);c.on('focusin',function(){if(a.savedSelection){a.savedSelection.select()}},a)}Ext.getWin().on('beforeunload',a.beforeDestroy,a);d.editorInitialized=!0;a.initialized=!0;a.pushValue();a.setReadOnly(a.readOnly);a.fireEvent('initialize',a)}},beforeDestroy:function(){var a=this,d=a.monitorTask,b,c;if(d){Ext.TaskManager.stop(d)}if(a.rendered){Ext.getWin().un(a.beforeDestroy,a);b=a.getDoc();if(b){Ext.get(b).destroy();if(b.hasOwnProperty){for(c in b){try{if(b.hasOwnProperty(c)){delete b[c]}}catch(e){}}}}delete a.iframeEl;delete a.textareaEl;delete a.toolbar;delete a.inputCmp}Ext.form.FieldContainer.prototype.beforeDestroy.call(this)},onRelayedEvent:function(a){var b=this.iframeEl,c=Ext.fly(b).getTrueXY(),e=a.getXY(),d=a.getXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},onFirstFocus:function(){var a=this,b,c;a.activated=!0;a.disableItems(a.readOnly);if(Ext.isGecko){a.win.focus();b=a.win.getSelection();if(b.focusNode&&!a.getValue().length){c=b.getRangeAt(0);c.selectNodeContents(a.getEditorBody());c.collapse(!0);a.deferFocus()}try{a.execCmd('useCSS',!0);a.execCmd('styleWithCSS',!1)}catch(d){}}a.fireEvent('activate',a)},adjustFont:function(e){var b=e.getItemId()==='increasefontsize'?1:-1,a=this.getDoc().queryCommandValue('FontSize')||'2',d=Ext.isString(a)&&a.indexOf('px')!==-1,c;a=parseInt(a,10);if(d){if(a<=10){a=1+b}else {if(a<=13){a=2+b}else {if(a<=16){a=3+b}else {if(a<=18){a=4+b}else {if(a<=24){a=5+b}else {a=6+b}}}}}a=Ext.Number.constrain(a,1,6)}else {c=Ext.isSafari;if(c){b*=2}a=Math.max(1,a+b)+(c?'px':0)}this.relayCmd('FontSize',a)},onEditorEvent:function(){this.updateToolbar()},updateToolbar:function(){var a=this,c,i,h,g,b,d,f,e;if(a.readOnly){return}if(!a.activated){a.onFirstFocus();return}h=a.getToolbar().items.map;g=a.getDoc();if(a.enableFont&&!Ext.isSafari2){d=g.queryCommandValue('fontName');b=(d?d.split(',')[0].replace(a.reStripQuotes,''):a.defaultFont).toLowerCase();f=a.fontSelect.dom;if(b!==f.value||b!==d){f.value=b}}function updateButtons(){var a;for(c=0,i=arguments.length,b;c0){b=String.fromCharCode(b);switch(b){case 'b':a='bold';break;case 'i':a='italic';break;case 'u':a='underline';break;}if(a){c.win.focus();c.execCmd(a);c.deferFocus();d.preventDefault()}}}},insertAtCursor:function(j){var e=this,g=e.getWin(),d=e.getDoc(),b,a,h,c,i,f,k;if(e.activated){g.focus();if(g.getSelection){b=g.getSelection();if(b.getRangeAt&&b.rangeCount){a=b.getRangeAt(0);a.deleteContents();h=d.createElement('div');h.innerHTML=j;c=d.createDocumentFragment();while(i=h.firstChild){f=c.appendChild(i)}k=c.firstChild;a.insertNode(c);if(f){a=a.cloneRange();a.setStartAfter(f);a.collapse(!0);b.removeAllRanges();b.addRange(a)}}}else {if(d.selection&&b.type!=='Control'){b=d.selection;a=b.createRange();a.collapse(!0);b.createRange().pasteHTML(j)}}e.deferFocus()}},fixKeys:function(){var a;if(Ext.isIE10m){return function(c){var b=this,f=c.getKey(),e=b.getDoc(),d=b.readOnly,a,g;if(f===c.TAB){c.stopEvent();if(!d){a=e.selection.createRange();if(a){if(a.collapse){a.collapse(!0);a.pasteHTML('    ')}b.deferFocus()}}}}}if(Ext.isOpera){return function(b){var a=this,d=b.getKey(),c=a.readOnly;if(d===b.TAB){b.stopEvent();if(!c){a.win.focus();a.execCmd('InsertHTML','    ');a.deferFocus()}}}}return null}(),fixKeysAfter:function(){if(Ext.isIE){return function(b){var d=this,e=b.getKey(),c=d.getDoc(),f=d.readOnly,a;if(!f&&(e===b.BACKSPACE||e===b.DELETE)){a=c.body.innerHTML;if(a==='

     

    '||a==='

     

    '){c.body.innerHTML=''}}}}return null}(),getToolbar:function(){return this.toolbar},buttonTips:{bold:{title:'Bold (Ctrl+B)',text:'Make the selected text bold.',cls:'x-html-editor-tip'},italic:{title:'Italic (Ctrl+I)',text:'Make the selected text italic.',cls:'x-html-editor-tip'},underline:{title:'Underline (Ctrl+U)',text:'Underline the selected text.',cls:'x-html-editor-tip'},increasefontsize:{title:'Grow Text',text:'Increase the font size.',cls:'x-html-editor-tip'},decreasefontsize:{title:'Shrink Text',text:'Decrease the font size.',cls:'x-html-editor-tip'},backcolor:{title:'Text Highlight Color',text:'Change the background color of the selected text.',cls:'x-html-editor-tip'},forecolor:{title:'Font Color',text:'Change the color of the selected text.',cls:'x-html-editor-tip'},justifyleft:{title:'Align Text Left',text:'Align text to the left.',cls:'x-html-editor-tip'},justifycenter:{title:'Center Text',text:'Center text in the editor.',cls:'x-html-editor-tip'},justifyright:{title:'Align Text Right',text:'Align text to the right.',cls:'x-html-editor-tip'},insertunorderedlist:{title:'Bullet List',text:'Start a bulleted list.',cls:'x-html-editor-tip'},insertorderedlist:{title:'Numbered List',text:'Start a numbered list.',cls:'x-html-editor-tip'},createlink:{title:'Hyperlink',text:'Make the selected text a hyperlink.',cls:'x-html-editor-tip'},sourceedit:{title:'Source Edit',text:'Switch to source editing mode.',cls:'x-html-editor-tip'}},privates:{deferFocus:function(){this.focus(!1,!0)},getFocusEl:function(){return this.sourceEditMode?this.textareaEl:this.iframeEl}}},0,['htmleditor'],['component','box','container','fieldcontainer','htmleditor'],{'component':!0,'box':!0,'container':!0,'fieldcontainer':!0,'htmleditor':!0},['widget.htmleditor'],[['field',Ext.form.field.Field]],[Ext.form.field,'HtmlEditor',Ext.form,'HtmlEditor'],0);Ext.define('Ext.theme.neptune.form.field.HtmlEditor',{override:'Ext.form.field.HtmlEditor',defaultButtonUI:'plain-toolbar'});Ext.cmd.derive('Ext.grid.CellContext',Ext.Base,{isCellContext:!0,constructor:function(a){this.view=a},setPosition:function(a,c){var b=this;if(arguments.length===1){if(a.length){c=a[0];a=a[1]}else {if(a.isCellContext){return b.setAll(a.view,a.rowIdx,a.colIdx,a.record,a.columnHeader)}else {if(a.view){b.view=a.view}c=a.column;a=a.row}}}b.setRow(a);b.setColumn(c);return b},setAll:function(f,d,c,e,b){var a=this;a.view=f;a.rowIdx=d;a.colIdx=c;a.record=e;a.column=b;return a},setRow:function(a){var b=this,c=b.view.dataSource;if(a!==undefined){if(typeof a==='number'){b.rowIdx=Math.max(Math.min(a,c.getCount()-1),0);b.record=c.getAt(a)}else {if(a.isModel){b.record=a;b.rowIdx=c.indexOf(a)}else {if(a.tagName||a.isElement){b.record=b.view.getRecord(a);b.rowIdx=c.indexOf(b.record)}}}}return b},setColumn:function(a){var b=this,c=b.view.getVisibleColumnManager();if(a!==undefined){if(typeof a==='number'){b.colIdx=a;b.column=c.getHeaderAtIndex(a)}else {if(a.isHeader){b.column=a;b.colIdx=c.indexOf(a)}}}return b},getCell:function(a){return this.view.getCellByPosition(this,a)},getRow:function(b){var a=this.view.getRow(this.record);return b?a:Ext.get(a)},getNode:function(b){var a=this.view.getNode(this.record);return b?a:Ext.get(a)},isEqual:function(a){return a&&a.isCellContext&&a.record===this.record&&a.column===this.column},clone:function(){var a=this,b=new a.self(a.view);b.rowIdx=a.rowIdx;b.colIdx=a.colIdx;b.record=a.record;b.column=a.column;return b},privates:{isFirstColumn:function(){var a=this.getCell(!0);if(a){return !a.previousSibling}},isLastColumn:function(){var a=this.getCell(!0);if(a){return !a.nextSibling}},getLastColumnIndex:function(){var a=this.getRow(!0);if(a){return a.lastChild.cellIndex}return -1},navigate:function(c){var a=this,b=a.view.getVisibleColumnManager().getColumns();switch(c){case -1:do{if(!a.colIdx){a.colIdx=b.length-1}else {a.colIdx--}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;case 1:do{if(a.colIdx>=b.length){a.colIdx=0}else {a.colIdx++}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;}}},statics:{compare:function(a,b){return a.rowIdx-b.rowIdx||a.colIdx-b.colIdx}}},1,0,0,0,0,0,[Ext.grid,'CellContext'],0);Ext.cmd.derive('Ext.grid.ColumnComponentLayout',Ext.layout.component.Auto,{type:'columncomponent',setWidthInDom:!0,_paddingReset:{paddingTop:'',paddingBottom:''},columnAutoCls:'x-column-header-text-container-auto',beginLayout:function(a){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);a.titleContext=a.getEl('titleEl')},beginLayoutCycle:function(d){var b=this,a=b.owner,c=d.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(c){a.el.setWidth('')}a.textContainerEl[c&&!a.isGroupHeader?'addCls':'removeCls'](b.columnAutoCls);a.titleEl.setStyle(b._paddingReset)},publishInnerHeight:function(a,e){var d=this,b=d.owner,c;if(b.getRootHeaderCt().hiddenHeaders){a.setProp('innerHeight',0);return}if(!a.hasRawContent){if(b.headerWrap&&!a.hasDomProp('width')){d.done=!1;return}c=e-a.getBorderInfo().height;a.setProp('innerHeight',c-b.titleEl.getHeight(),!1)}},measureContentHeight:function(a){return a.el.dom.offsetHeight},publishInnerWidth:function(a,b){if(!a.hasRawContent){a.setProp('innerWidth',b-a.getBorderInfo().width,!1)}},calculateOwnerHeightFromContentHeight:function(a,c){var d=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),b=this.owner;if(!a.hasRawContent){if(!b.headerWrap||a.hasDomProp('width')){return c+b.titleEl.getHeight()+a.getBorderInfo().height}return null}return d},calculateOwnerWidthFromContentWidth:function(a,d){var c=this.owner,f=a.getPaddingInfo().width,e=this.getTriggerOffset(c,a),b;if(c.isGroupHeader){b=d}else {b=Math.max(d,c.textEl.getWidth()+a.titleContext.getPaddingInfo().width)}return b+f+e},getTriggerOffset:function(a,c){var b=0;if(c.widthModel.shrinkWrap&&!a.menuDisabled){if(a.query('>:not([hidden])').length===0){b=a.getTriggerElWidth()}}return b}},0,0,0,0,['layout.columncomponent'],0,[Ext.grid,'ColumnComponentLayout'],0);Ext.cmd.derive('Ext.layout.container.Fit',Ext.layout.container.Container,{alternateClassName:'Ext.layout.FitLayout',itemCls:'x-fit-item',type:'fit',manageMargins:!0,sizePolicies:{0:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},1:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},2:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},3:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}},getItemSizePolicy:function(d,b){var a=b||this.owner.getSizeModel(),c=(a.width.shrinkWrap?0:1)|(a.height.shrinkWrap?0:2);return this.sizePolicies[c]},beginLayoutCycle:function(a,p){var f=this,j=f.lastHeightModel&&f.lastHeightModel.calculated,m=f.lastWidthModel&&f.lastWidthModel.calculated,l=m||j,h=0,i=0,b,k,g,e,q,n,c,d,o,r;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(l&&a.targetContext.el.dom.tagName.toUpperCase()!=='TD'){l=m=j=!1}k=a.childItems;q=k.length;for(g=0;g0){for(g=0;g'+a.view.emptyText+''}a.view.getComponentLayout().headerCt=a.headerCt;a.mon(a.view,{uievent:a.processEvent,scope:a});a.headerCt.view=a.view;if(a.hasListeners.viewcreated){a.fireEvent('viewcreated',a,a.view)}}return a.view},getColumnManager:function(){return this.columnManager},getVisibleColumnManager:function(){return this.visibleColumnManager},getTopLevelColumnManager:function(){return this.ownerGrid.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},setAutoScroll:Ext.emptyFn,applyScrollable:function(a){if(this.view){this.view.setScrollable(a)}return a},getScrollable:function(){return null},processEvent:function(g,h,f,c,d,b,e,i){var a=b.position.column;if(a){return a.processEvent.apply(a,arguments)}},ensureVisible:function(b,a){this.doEnsureVisible(b,a)},scrollByDeltaY:function(b,a){this.getView().scrollBy(0,b,a)},scrollByDeltaX:function(b,a){this.getView().scrollBy(b,0,a)},afterCollapse:function(){this.saveScrollPos();Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){Ext.panel.Panel.prototype.afterExpand.apply(this,arguments);this.restoreScrollPos()},saveScrollPos:Ext.emptyFn,restoreScrollPos:Ext.emptyFn,onHeaderResize:function(){var a=this.view.getScrollable(),b;if(a&&a.isTouchScroller){b=a.getSize();if(b){a.setSize({x:this.headerCt.getTableWidth(),y:b.y})}}},onHeaderMove:function(e,f,b,c,d){var a=this;if(a.optimizedColumnMove===!1){a.view.refreshView()}else {a.view.moveColumn(c,d,b)}a.delayScroll()},onHeaderHide:function(b,c){var a=this.view;if(!b.childHideCount&&a.refreshCounter){a.refreshView()}},onHeaderShow:function(b,c){var a=this.view;if(a.refreshCounter){a.refreshView()}},onHeadersChanged:function(b,c){var a=this;if(a.rendered&&!a.reconfiguring){a.view.refreshView();a.delayScroll()}},delayScroll:function(){var a=this.view;if(a){this.scrollTask.delay(10,null,null,[a])}},onViewReady:function(){this.fireEvent('viewready',this)},onRestoreHorzScroll:function(){var a=this,b=a.scrollXPos;if(b){a.syncHorizontalScroll(a,!0)}},getScrollerOwner:function(){var a=this;if(!this.scrollerOwner){a=this.up('[scrollerOwner]')}return a},getLhsMarker:function(){var a=this;return a.lhsMarker||(a.lhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getRhsMarker:function(){var a=this;return a.rhsMarker||(a.rhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},updateHeaderBorders:function(a){this[a?'removeCls':'addCls'](this.noHeaderBordersCls)},getNavigationModel:function(){return this.getView().getNavigationModel()},getSelectionModel:function(){return this.getView().getSelectionModel()},getScrollTarget:function(){var a=this.getScrollerOwner().query('tableview');return a[a.length-1]},syncHorizontalScroll:function(e,b){var a=this,c=a.view.getScrollX(),d;b=b===!0;if(a.rendered&&(b||c!==a.scrollXPos)){if(b){d=a.getScrollTarget();d.setScrollX(c)}a.headerCt.setScrollX(c);a.scrollXPos=c}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(b,d){var a=this,c=a.getView();if(b){a.store=b;if(c.store!==b){c.bindStore(b,!1)}a.mon(b,{load:a.onStoreLoad,scope:a});a.storeRelayers=a.relayEvents(b,['filterchange','groupchange'])}else {a.unbindStore()}},unbindStore:function(){var a=this,b=a.store,c;if(b){b.trackStateChanges=!1;a.store=null;a.mun(b,{load:a.onStoreLoad,scope:a});Ext.destroy(a.storeRelayers);c=a.view;if(c.store){c.bindStore(null)}}},setColumns:function(a){if(a.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,a)}},setStore:function(a){this.reconfigure(a);if(this.autoLoad&&!a.isEmptyStore&&!(a.loading||a.isLoaded())){a.load()}},reconfigure:function(b,c){var a=this,f=a.store,e=a.headerCt,i=a.lockable,h=e?e.items.getRange():a.columns,d=a.getView(),j,g;if(arguments.length===1&&Ext.isArray(b)){c=b;b=null}if(c){c=Ext.Array.slice(c)}a.reconfiguring=!0;if(b){b=Ext.StoreManager.lookup(b)}a.fireEvent('beforereconfigure',a,b,c,f,h);Ext.suspendLayouts();if(i){a.reconfigureLockable(b,c)}else {j=d.blockRefresh;d.blockRefresh=!0;if(b&&b!==f){a.unbindStore();a.bindStore(b)}if(c){delete a.scrollXPos;e.removeAll();e.add(c)}d.blockRefresh=j;g=d.refreshCounter}Ext.resumeLayouts(!0);if(i){a.afterReconfigureLockable()}else {if(d.refreshCounter===g){d.refreshView()}}a.fireEvent('reconfigure',a,b,c,f,h);delete a.reconfiguring},beforeDestroy:function(){var a=this,b=a.scrollTask;if(b){b.cancel();a.scrollTask=null}Ext.destroy(a.focusEnterLeaveListeners);Ext.panel.Panel.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.lockable){a.destroyLockable()}a.unbindStore();Ext.panel.Panel.prototype.onDestroy.call(this);a.columns=a.storeRelayers=a.columnManager=a.visibleColumnManager=null},destroy:function(){var a=this;Ext.panel.Panel.prototype.destroy.call(this);if(a.destroyed){a.view=a.selModel=a.headerCt=null}},privates:{initFocusableElement:function(){},doEnsureVisible:function(a,c){if(this.lockable){return this.ensureLockedVisible(a,c)}if(typeof a!=='number'&&!a.isEntity){a=this.store.getById(a)}var b=this,d=b.getView(),f=d.getNode(a),g,h,k,j,m,l,i,e,n;if(c){g=c.callback;h=c.scope;k=c.animate;j=c.highlight;m=c.select;l=c.focus;e=c.column}if(b.deferredEnsureVisible){b.deferredEnsureVisible.destroy()}if(!d.componentLayoutCounter){b.deferredEnsureVisible=d.on({resize:b.doEnsureVisible,args:Ext.Array.slice(arguments),scope:b,single:!0,destroyable:!0});return}if(typeof e==='number'){e=b.ownerGrid.getVisibleColumnManager().getColumns()[e]}if(f){i=d.getScrollable();if(e){n=Ext.fly(f).selectNode(e.getCellSelector())}if(i){i.scrollIntoView(n||f,!!e,k,j)}if(!a.isEntity){a=d.getRecord(f)}if(m){d.getSelectionModel().select(a)}if(l){d.getNavigationModel().setPosition(a,0)}Ext.callback(g,h||b,[!0,a,f])}else {if(d.bufferedRenderer){d.bufferedRenderer.scrollTo(a,{animate:k,highlight:j,select:m,focus:l,column:e,callback:function(f,e,d){Ext.callback(g,h||b,[!0,e,d])}})}else {Ext.callback(g,h||b,[!1,null])}}},getFocusEl:function(){return this.getView().getFocusEl()},setActionableMode:function(b,c){var a=this.ownerGrid;if(!a.destroying&&a.view.setActionableMode(b,c)!==!1){a.fireEvent('actionablemodechange',b);a[b?'addCls':'removeCls'](a.actionableModeCls);return !0}}}},1,['tablepanel'],['component','box','container','panel','tablepanel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0},['widget.tablepanel'],0,[Ext.panel,'Table'],0);Ext.define('Ext.theme.neptune.panel.Table',{override:'Ext.panel.Table',lockableBodyBorder:!0,initComponent:function(){var a=this;(arguments.callee.$previous||Ext.panel.Panel.prototype.initComponent).call(this);if(!a.hasOwnProperty('bodyBorder')&&!a.hideHeaders&&(a.lockableBodyBorder||!a.lockable)){a.bodyBorder=!0}}});Ext.cmd.derive('Ext.grid.ColumnLayout',Ext.layout.container.HBox,{type:'gridcolumn',firstHeaderCls:'x-column-header-first',lastHeaderCls:'x-column-header-last',initLayout:function(){Ext.layout.container.HBox.prototype.initLayout.call(this);if(this.scrollbarWidth===undefined){this.self.prototype.scrollbarWidth=Ext.getScrollbarSize().width}},beginLayout:function(d){var b=this,j=b.owner,e=b.firstHeaderCls,f=b.lastHeaderCls,h=[e,f],i=b.getVisibleItems(),g=i.length,c,a;Ext.layout.container.HBox.prototype.beginLayout.call(this,d);for(c=0;c0){b=this.getColumns()[a-1]}return b},getNextSibling:function(c){var a=this.getHeaderIndex(c),b;if(a!==-1){b=this.getColumns()[a+1]}return b||null},getFirst:function(){var a=this.getColumns();return a.length>0?a[0]:null},getLast:function(){var a=this.getColumns(),b=a.length;return b>0?a[b-1]:null},getHeaderByDataIndex:function(d){var c=this.getColumns(),e=c.length,a,b;for(a=0;a=d.left&&e=n.getMaxPosition().y-c.all.last(!0).offsetHeight){b.rowIdx--}e=Math.min(b.rowIdx,h.getCount()-1);f=Math.min(f,j.getColumns().length);d=h.getAt(e);i=j.getColumns()[f]}}else {if(k){d=e=null}else {if(g==null){g=a.lastFocused?a.lastFocused.column:0}if(typeof b==='number'){e=Math.max(Math.min(b,h.getCount()-1),0);d=h.getAt(b)}else {if(b.isEntity){d=b;e=h.indexOf(d)}else {if(b.tagName){d=c.getRecord(b);e=h.indexOf(d);if(e===-1){d=null}}else {if(p){return}k=!0;d=e=null}}}}if(d){if(e===-1){a.recordIndex=-1;d=h.getAt(0);e=0;g=null}if(g==null){if(!(i=a.column)){f=0;i=j.getColumns()[0]}}else {if(typeof g==='number'){i=j.getColumns()[g];f=g}else {i=g;f=j.indexOf(g)}}}else {k=!0;i=f=null}}if(e===a.recordIndex&&f===a.columnIndex&&c===a.position.view){return a.focusPosition(a.position)}if(a.cell){a.cell.removeCls(a.focusCls)}a.previousRecordIndex=a.recordIndex;a.previousRecord=a.record;a.previousItem=a.item;a.previousCell=a.cell;a.previousColumn=a.column;a.previousColumnIndex=a.columnIndex;a.previousPosition=a.position.clone();a.selectionStart=m.selectionStart;a.position.setAll(c,a.recordIndex=e,a.columnIndex=f,a.record=d,a.column=i);if(k){a.item=a.cell=null}else {a.focusPosition(a.position,o)}if(!q){m.fireEvent('focuschange',m,a.previousRecord,a.record);c.fireEvent('rowfocus',a.record,a.item,a.recordIndex);c.fireEvent('cellfocus',a.record,a.cell,a.position)}if(l&&!o&&a.cell!==a.previousCell){a.fireNavigateEvent(l)}},focusPosition:function(b){var a=this,c,d;a.item=a.cell=null;if(b&&b.record&&b.column){c=b.view;if(b.rowElement){d=a.item=b.rowElement}else {d=c.getRowByRecord(b.record)}if(d){a.cell=b.cellElement||Ext.fly(d).down(b.column.getCellSelector(),!0);if(a.cell){a.cell=new Ext.dom.Fly(a.cell);c.lastFocused=a.lastFocused=a.position.clone();a.focusItem(a.cell);c.focusEl=a.cell}else {a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null}}else {d=c.dataSource.indexOf(b.record);a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null;if(d!==-1&&c.bufferedRenderer){a.lastKeyEvent=null;c.bufferedRenderer.scrollTo(d,!1,a.afterBufferedScrollTo,a)}}}},focusItem:function(a){a.addCls(this.focusCls);a.focus()},getCell:function(){return this.cell},getPosition:function(f){var c=this,a=c.position,b,e,d;if(a.record&&a.column){if(f){return a}e=a.view;d=e.dataSource;b=d.indexOf(a.record);if(b===-1){b=a.rowIdx;if(!(a.record=d.getAt(b))){b=-1}}if(b===-1||e.getVisibleColumnManager().indexOf(a.column)===-1){a.setAll();c.record=c.column=c.recordIndex=c.columnIndex=null}else {return a}}return null},getLastFocused:function(){var c=this,b,a=c.lastFocused;if(a&&a.record&&a.column){b=a.view;if(b.dataSource.indexOf(a.record)!==-1&&b.getVisibleColumnManager().indexOf(a.column)!==-1){return a}}},onKeyTab:function(a){var e=!a.shiftKey,d=a.position.clone(),g=d.view,f=a.position.cellElement,b=Ext.fly(f).findTabbableElements(),c,i=g.ownerGrid.actionables,j=i.length,h;a.preventDefault();c=b[Ext.Array.indexOf(b,a.target)+(e?1:-1)];while(!c&&(f=f[e?'nextSibling':'previousSibling'])){d.setColumn(g.getHeaderByCell(f));for(h=0;hj.height}a.setProp('viewOverflowY',i)}},measureContentHeight:function(e){var d=this.owner,b=d.body.dom,c=d.emptyEl,a=0;if(c){a+=c.offsetHeight}if(b){a+=b.offsetHeight}if(e.headerContext.state.boxPlan.tooNarrow){a+=Ext.getScrollbarSize().height}return a},flushColumnWidths:function(){var a=this,i=a.layout,d=a.ownerContext,g=a.columnsChanged,h=d.target,j=g.length,b,c,e,f;if(d.state.columnFlusher!==a){return}for(c=0;c0){h+=b;Ext.fly(f[c].el).setHeight(a)}else {g-=b}}a=i.rowHeight+g;if(Ext.isIE9&&d.view.ownerGrid.rowLines){a--}if(d.rowHeight+h=c+d;a--){e[a]=e[a-d];e[a].setAttribute('data-recordIndex',a)}}b.endIndex=b.endIndex+d}else {b.startIndex=c;b.endIndex=c+d-1}for(a=0;ab.endIndex){delete d[a]}}while(a!==f);delete d[a]},getCount:function(){return this.count},slice:function(e,a){var d=this.elements,c=[],b;if(!a){a=this.endIndex}else {a=Math.min(this.endIndex,a-1)}for(b=e||this.startIndex;b<=a;b++){c.push(d[b])}return c},replaceElement:function(a,b,d){var e=this.elements,c=typeof a==='number'?a:this.indexOf(a);if(c>-1){b=Ext.getDom(b);if(d){a=e[c];a.parentNode.insertBefore(b,a);Ext.removeNode(a);b.setAttribute('data-recordIndex',c)}this.elements[c]=b}return this},indexOf:function(b){var c=this.elements,a;b=Ext.getDom(b);for(a=this.startIndex;a<=this.endIndex;a++){if(c[a]===b){return a}}return -1},removeRange:function(g,c,j){var a=this,e=a.elements,i=[],d,b,h,f;if(c==null){c=a.endIndex+1}else {c=Math.min(a.endIndex+1,c+1)}if(g==null){g=a.startIndex}h=c-g;for(b=g,f=c;b<=a.endIndex;b++,f++){d=e[b];if(b=b.startIndex&&f<=b.endIndex){a[a.length]=f}}Ext.Array.sort(a);e=a.length}else {if(ab.endIndex){return}e=1;a=[a]}for(d=g=a[0],c=0;d<=b.endIndex;d++,g++){if(c=b.startIndex){j=h[d]=h[g];j.setAttribute('data-recordIndex',d)}else {delete h[d]}}b.endIndex-=e;b.count-=e},scroll:function(i,t,m){var b=this,e=b.view,p=e.store,c=b.elements,r=i.length,q=e.getNodeContainer(),k=e.hasListeners.itemremove,s=e.hasListeners.itemadd,h=b.statics().range,a,d,o,j,l,n,f,g;if(!i.length){return}if(t===-1){if(m){if(k){f=[];g=[]}n=b.endIndex-m+1;if(h){h.setStartBefore(c[n]);h.setEndAfter(c[b.endIndex]);h.deleteContents();for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}else {for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];Ext.removeNode(d);if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}e.fireEvent('itemremove',f,n,g,e);b.endIndex-=m}if(i.length){l=e.bufferRender(i,b.startIndex-=r);j=l.children;for(a=0;a','{[view.renderTHead(values, out, parent)]}','{%','view.renderRows(values.rows, values.columns, values.viewStartIndex, out);','%}','{[view.renderTFoot(values, out, parent)]}','','{% ','view = columns = column = null;','%}',{definitions:'var view, tableCls, columns, i, len, column;',priority:0}],outerRowTpl:['','{%','this.nextTpl.applyOut(values, out, parent)','%}','',{priority:9999}],rowTpl:['{%','var dataRowCls = values.recordIndex === -1 ? "" : " x-grid-row";','%}','','{%','parent.view.renderCell(values, parent.record, parent.recordIndex, parent.rowIndex, xindex - 1, out, parent)','%}','','',{priority:0}],cellTpl:['{tdStyle}"',' tabindex="-1" data-columnid="{[values.column.getItemId()]}">','
    {style}" ','{cellInnerAttr:attributes}>{value}
    ','',{priority:0}],refreshSelmodelOnRefresh:!1,tableValues:{},rowValues:{itemClasses:[],rowClasses:[]},cellValues:{classes:['x-grid-cell x-grid-td']},constructor:function(a){if(a.grid.isTree){a.baseCls='x-tree-view'}Ext.view.View.prototype.constructor.call(this,a)},hasVariableRowHeight:function(b){var a=this;return a.variableRowHeight||a.store.isGrouped()||a.getVisibleColumnManager().hasVariableRowHeight()||!b&&a.lockingPartner&&a.lockingPartner.hasVariableRowHeight(!0)},initComponent:function(){var a=this;if(a.columnLines){a.addCls(a.grid.colLinesCls)}if(a.rowLines){a.addCls(a.grid.rowLinesCls)}a.body=new Ext.dom.Fly();a.body.id=a.id+'gridBody';if(!a.trackOver){a.overItemCls=null}a.headerCt.view=a;a.grid.view=a;a.initFeatures(a.grid);a.itemSelector=a.getItemSelector();a.all=new Ext.view.NodeCache(a);Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(a,f){var d=this,b=d.ownerGrid,e=a.type,c=d.disableSelection||b.disableSelection;if(!f){if(!(a&&a.isSelectionModel)){a=b.selModel||a}}if(a){if(a.isSelectionModel){a.allowDeselect=b.allowDeselect||a.selectionMode!=='SINGLE';a.locked=c}else {if(typeof a==='string'){a={type:a}}else {a.type=b.selType||a.selType||a.type||e}if(!a.mode){if(b.simpleSelect){a.mode='SIMPLE'}else {if(b.multiSelect){a.mode='MULTI'}}}a=Ext.Factory.selection(Ext.apply({allowDeselect:b.allowDeselect,locked:c},a))}}return a},updateSelectionModel:function(b,c){var a=this;if(c){c.un({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});Ext.destroy(a.selModelRelayer)}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});a.selModel=b},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(c,h,j){var b=this,m=j>1,e=m&&document.createRange?document.createRange():null,g=m&&!e?document.createDocumentFragment():null,l=h,p=b.getGridColumns().length,k=p-1,r=(b.firstCls||b.lastCls)&&(h===0||h===p||c===0||c===k),f,i,q,n,d,a,o;if(b.rendered&&h!==c){q=b.el.query(b.rowSelector);for(f=0,n=q.length;f=(a-1)*b&&d.endIndex<=a*b-1){c.get(a);return !1}},onViewScroll:function(a,b,c){if(!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,a,b,c)}},createRowElement:function(e,f,d){var a=this,c=a.renderBuffer,b=a.collectData([e],f);b.columns=d;a.tpl.overwrite(c,b);a.cleanupData();return Ext.fly(c).down(a.getNodeContainerSelector(),!0).firstChild},bufferRender:function(e,f){var c=this,a=c.renderBuffer,b,d=document.createRange?document.createRange():null;c.tpl.overwrite(a,c.collectData(e,f));c.cleanupData();Ext.fly(a).saveTabbableState({skipSelf:!0,includeHidden:!0});a=Ext.fly(a).down(c.getNodeContainerSelector(),!0);if(d){d.selectNodeContents(a);b=d.extractContents()}else {b=document.createDocumentFragment();while(a.firstChild){b.appendChild(a.firstChild)}}return {fragment:b,children:Ext.Array.toArray(b.childNodes)}},collectData:function(c,b){var a=this;a.rowValues.view=a;a.tableValues.view=a;a.tableValues.rows=c;a.tableValues.columns=null;a.tableValues.viewStartIndex=b;a.tableValues.touchScroll=a.touchScroll;a.tableValues.tableStyle='width:'+a.headerCt.getTableWidth()+'px';return a.tableValues},cleanupData:function(){var a=this.tableValues;a.view=a.columns=a.rows=this.rowValues.view=null},refreshSize:function(c){var a=this,b=a.getBodySelector();if(b){a.body.attach(a.el.down(b,!0))}if(!a.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.apply(this,arguments);if(c||a.hasVariableRowHeight()&&a.dataSource.getCount()){a.grid.updateLayout()}Ext.resumeLayouts(!0)}},clearViewEl:function(g){var a=this,b=a.all,i=a.getStore(),d,c,f,h=b.slice(),e=[];if(a.hasListeners.itemremove){for(d=b.startIndex;d<=b.endIndex;d++){e.push(i.getByInternalId(b.item(d,!0).getAttribute('data-recordId')))}}a.fireEvent('itemremove',e,b.startIndex,h,a);Ext.view.View.prototype.clearViewEl.call(this);c=Ext.fly(a.getNodeContainer());if(c&&!g){f=a.getTargetEl();if(f.dom!==c.dom){c.destroy()}}},getMaskTarget:function(){return this.ownerCt.body},statics:{getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},getRecord:function(a){if(this.store.destroyed){return}if(a.isModel){return a}a=this.getNode(a);if(a){return this.dataSource.getByInternalId(a.getAttribute('data-recordId'))}},indexOf:function(a){a=this.getNode(a);if(!a&&a!==0){return -1}return this.all.indexOf(a)},indexInStore:function(a){return a?this.dataSource.indexOf(this.getRecord(a)):-1},indexOfRow:function(a){var c=this.dataSource,b;if(a.isCollapsedPlaceholder){b=c.indexOfPlaceholder(a)}else {b=c.indexOf(a)}return b},renderRows:function(e,g,d,h){var b=this,a=b.rowValues,f=e.length,c;a.view=b;a.columns=g;a.rowRole=b.rowAriaRole;b.cellValues.cellRole=b.cellAriaRole;for(c=0;c');for(a=0;a')}d.push('')},renderRow:function(c,e,j){var a=this,k=e===-1,h=a.selectionModel,b=a.rowValues,d=b.itemClasses,g=b.rowClasses,l=a.itemCls,f,i=a.rowTpl;b.rowAttr={};b.record=c;b.recordId=c.internalId;b.recordIndex=a.store.indexOf(c);b.rowIndex=e;b.rowId=a.getRowId(c);b.itemCls=b.rowCls='';if(!b.columns){b.columns=a.ownerCt.getVisibleColumnManager().getColumns()}d.length=g.length=0;if(!k){d[0]=l;if(!a.ownerCt.disableSelection&&h.isRowSelected){if(h.isRowSelected(c)){d.push(a.selectedItemCls)}}if(a.stripeRows&&e%2!==0){d.push(a.altRowCls)}if(a.getRowClass){f=a.getRowClass(c,e,null,a.dataSource);if(f){g.push(f)}}}if(j){i.applyOut(b,j,a.tableValues)}else {return i.apply(b,a.tableValues)}},renderCell:function(b,f,j,n,m,p){var c=this,l,h=c.selectionModel,a=c.cellValues,d=a.classes,k=f.data[b.dataIndex],o=c.cellTpl,g,e,i=c.navigationModel.getPosition();a.record=f;a.column=b;a.recordIndex=j;a.rowIndex=n;a.columnIndex=a.cellIndex=m;a.align=b.align;a.innerCls=b.innerCls;a.tdCls=a.tdStyle=a.tdAttr=a.style='';a.unselectableAttr=c.enableTextSelection?'':'unselectable="on"';d[1]=b.getCellId();e=2;if(b.renderer&&b.renderer.call){l=c.ownerCt.columnManager.getHeaderIndex(b);g=b.renderer.call(b.usingDefaultRenderer?b:b.scope||c.ownerCt,k,a,f,j,l,c.dataSource,c);if(a.css){f.cssWarning=!0;a.tdCls+=' '+a.css;a.css=null}if(a.tdCls){d[e++]=a.tdCls}}else {g=k}a.value=g==null||g===''?b.emptyCellText:g;if(b.tdCls){d[e++]=b.tdCls}if(c.markDirty&&f.dirty&&f.isModified(b.dataIndex)){d[e++]=c.dirtyCls}if(b.isFirstVisible){d[e++]=c.firstCls}if(b.isLastVisible){d[e++]=c.lastCls}if(!c.enableTextSelection){d[e++]=c.unselectableCls}if(h&&(h.isCellModel||h.isSpreadsheetModel)&&h.isCellSelected(c,j,b)){d[e++]=c.selectedCellCls}if(i&&i.record.id===f.id&&i.column===b){d[e++]=c.focusedItemCls}d.length=e;a.tdCls=d.join(' ');o.applyOut(a,p);a.column=a.record=null},getRow:function(a){var b;if(!a&&a!==0||!this.rendered){return null}if(a.target){a=a.target}if(Ext.isString(a)){return Ext.fly(a).down(this.rowSelector,!0)}if(Ext.isNumber(a)){b=this.all.item(a);return b&&b.down(this.rowSelector,!0)}if(a.isModel){return this.getRowByRecord(a)}b=Ext.fly(a);if(b.is(this.itemSelector)){return this.getRowFromItem(b)}return b.findParent(this.rowSelector,this.getTargetEl())},getRowId:function(a){return this.id+'-record-'+a.internalId},constructRowId:function(a){return this.id+'-record-'+a},getNodeById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!1)},getRowById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!0)},getNodeByRecord:function(a){return this.retrieveNode(this.getRowId(a),!1)},getRowByRecord:function(a){return this.retrieveNode(this.getRowId(a),!0)},getRowFromItem:function(c){var b=Ext.getDom(c).tBodies[0].childNodes,d=b.length,a;for(a=0;a1){A=c._extData;j=a.createRowElement(d,a.indexOfRow(d),f);if(Ext.fly(c,'_internal').hasCls(u)){Ext.fly(j).addCls(u)}if(Ext.isIE9m&&c.mergeAttributes){c.mergeAttributes(j,!0)}else {o=j.attributes;H=o.length;for(l=0;l0){if(Ext.supports.ScrollWidthInlinePaddingBug){e+=c.getCellPaddingAfter(d[0])}if(c.columnLines){e+=Ext.fly(d[0].parentNode).getBorderWidth('lr')}}g.setWidth(1);b.textEl.setStyle({'text-overflow':'clip',display:'table-cell'});a=b.textEl.dom.offsetWidth+b.titleEl.getPadding('lr');b.textEl.setStyle({'text-overflow':'',display:''});for(;fh){return !1}if(d){b.view=d}b.setPosition(a,0)}else {b.navigate(+1)};break;case 'left':if(e.isFirstColumn()){a=d&&c.isNormalView?a:a-1;if(a<0){return !1}if(d){b.view=d;f=d.getVisibleColumnManager().getColumns()}b.setPosition(a,f[f.length-1])}else {b.navigate(-1)};break;case 'up':if(a===0){return !1}else {b.setRow(a-1)};break;case 'down':if(a===h){return !1}else {b.setRow(a+1)};break;}if(g&&g.call(j||c,b)!==!0){return !1}return b},walkRows:function(f,e){var i=this,j=i.dataSource,g=0,d=f,h,b=e<0?0:j.getCount()-1,c=b?1:-1,a=f;do{if(b?a>=b:a<=b){return d||b}a+=c;if((h=Ext.fly(i.getRow(a)))&&h.isVisible(!0)){g+=c;d=a}}while(g!==e);return a},walkRecs:function(h,g){var k=this,a=k.dataSource,i=0,e=h,j,c=g<0?0:(a.isBufferedStore?a.getTotalCount():a.getCount())-1,f=c?1:-1,b=a.indexOf(h),d;do{if(c?b>=c:b<=c){return e}b+=f;d=a.getAt(b);if(!d.isCollapsedPlaceholder&&(j=Ext.fly(k.getNodeByRecord(d)))&&j.isVisible(!0)){i+=f;e=d}}while(i!==g);return e},getFirstVisibleRowIndex:function(){var a=this,c=a.dataSource.isBufferedStore?a.dataSource.getTotalCount():a.dataSource.getCount(),b=a.indexOf(a.all.first())-1;do{b+=1;if(b===c){return}}while(!Ext.fly(a.getRow(b)).isVisible(!0));return b},getLastVisibleRowIndex:function(){var b=this,a=b.indexOf(b.all.last());do{a-=1;if(a===-1){return}}while(!Ext.fly(b.getRow(a)).isVisible(!0));return a},getHeaderCt:function(){return this.headerCt},getPosition:function(b,a){return (new Ext.grid.CellContext(this)).setPosition(b,a)},onDestroy:function(){var a=this,c=a.featuresMC,d,b;if(c){for(b=0,d=c.getCount();b=a.viewSize)){a.onReplace(e,d,[],c)}else {Ext.view.View.prototype.onAdd.apply(this,arguments)}b.setPendingStripe(d)},onRemove:function(f,d,e){var a=this,b=a.bufferedRenderer,c;if(a.rendered&&b&&a.dataSource.getCount()+d.length>=b.viewSize){c=a.saveFocusState();b.onReplace(f,e,d,[]);c()}else {Ext.view.View.prototype.onRemove.apply(this,arguments)}a.setPendingStripe(e)},saveFocusState:function(){var b=this,g=b.dataSource,c=b.actionableMode,d=b.getNavigationModel(),a=c?b.actionPosition:d.getPosition(!0),f,e;if(a){a=a.clone();if(c){b.ownerGrid.setActionableMode(!1)}b.el.dom.focus();d.setPosition();return function(){if(g.getCount()){f=Math.min(a.rowIdx,b.all.getCount()-1);e=Math.min(a.colIdx,b.getVisibleColumnManager().getColumns().length-1);a=(new Ext.grid.CellContext(b)).setPosition(g.contains(a.record)?a.record:f,e);if(c){b.ownerGrid.setActionableMode(!0,a)}else {b.cellFocused=!0;d.setPosition(a,null,null,null,!0)}}else {a.column.focus()}}}return Ext.emptyFn},onDataRefresh:function(c){var b=this,a=b.ownerCt;if(a&&a.isCollapsingOrExpanding===2){a.on('expand',b.onDataRefresh,b,{single:!0});return}Ext.view.View.prototype.onDataRefresh.call(this,c)},getViewRange:function(){var a=this;if(a.bufferedRenderer){return a.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(b){var a=this.stripeOnUpdate;if(a===null){a=b}else {a=Math.min(a,b)}this.stripeOnUpdate=a},onEndUpdate:function(){var b=this,a=b.stripeOnUpdate,c=b.all.startIndex;if(b.rendered&&(a||a===0)){if(a-1)&&!g;b=b+(c?1:-1)){o=n[b];e.setColumn(o);k=Ext.fly(d).down(e.column.getCellSelector());for(h=0;hj;e=f?1:0;d=a.getGridColumns();for(c=0,i=d.length;c=0&&b<=a.view.dataSource.getCount()){if(e){c=a.down(':focusable:not([isButton]):first');d.column.getView().getScrollable().scrollIntoView(d.ownerCt.child(':focusable').el)}else {c=a.down(':focusable:not([isButton]):last')}a.editingPlugin.startEdit(b,c.column)}}}},destroyColumnEditor:function(a){var b;if(a.hasEditor()&&(b=a.getEditor())){b.destroy()}},getFloatingButtons:function(){var a=this,b=a.floatingButtons;if(!b){a.floatingButtons=b=new Ext.grid.RowEditorButtons({ownerCmp:a,rowEditor:a})}return b},repositionIfVisible:function(b){var a=this,c=a.view;if(b&&(b===a||!b.el.isAncestor(c.el))){return}if(a.isVisible()&&c.isVisible(!0)){a.reposition()}},isLayoutChild:function(a){return !1},getRefOwner:function(){return this.editingPlugin.grid},getRefItems:function(c){var b=this,a;if(b.lockable){a=[b.lockedColumnContainer];a.push.apply(a,b.lockedColumnContainer.getRefItems(c));a.push(b.normalColumnContainer);a.push.apply(a,b.normalColumnContainer.getRefItems(c))}else {a=Ext.form.Panel.prototype.getRefItems.apply(this,arguments)}a.push.apply(a,b.getFloatingButtons().getRefItems(c));return a},reposition:function(c,j){var a=this,d=a.context,g=d&&d.row,i=a.wrapEl,h,f,e,b;if(g&&Ext.isElement(g)){e=a.syncButtonPosition(a.getScrollDelta());h=a.calculateLocalRowTop(g);f=a.calculateEditorTop(h);if(!j){b=function(){if(e){a.scrollingViewEl.scrollBy(0,e,!0)}a.focusColumnField(d.column)}}a.syncEditorClip();if(c){i.animate(Ext.applyIf({to:{top:f},duration:c.duration||125,callback:b},c))}else {i.setLocalY(f);if(b){b()}}}},getScrollDelta:function(){var b=this,d=b.scrollingViewEl.dom,e=b.context,c=b.body,a=0;if(e){a=Ext.fly(e.row).getOffsetsTo(d)[1];if(a<0){a-=c.getBorderPadding().beforeY}else {if(a>0){a=Math.max(a+b.getHeight()+b.floatingButtons.getHeight()-d.clientHeight-c.getBorderWidth('b'),0);if(a>0){a-=c.getBorderPadding().afterY}}}}return a},calculateLocalRowTop:function(b){var a=this.editingPlugin.grid;return Ext.fly(b).getOffsetsTo(a)[1]-a.el.getBorderWidth('t')+this.lastScrollTop},calculateEditorTop:function(a){return a-this.body.getBorderPadding().beforeY-this.lastScrollTop},getClientWidth:function(){var c=this,b=c.editingPlugin.grid,a;if(c.lockable){a=b.lockedGrid.getWidth()+b.normalGrid.view.el.dom.clientWidth}else {a=b.view.el.dom.clientWidth}return a},getEditor:function(a){var b=this;if(Ext.isNumber(a)){return b.query('[isEditorComponent]')[a]}else {if(a.isHeader&&!a.isGroupHeader){return a.getEditor()}}},addFieldsForColumn:function(a,e){var b=this,d,f,c;if(Ext.isArray(a)){for(d=0,f=a.length;ddisplayfield');d=e.length;for(a=0;a0){if(!a._buttonsOnTop){b.setButtonPosition('top');a._buttonsOnTop=!0}d=0}else {if(a._buttonsOnTop!==!1){b.setButtonPosition('bottom');a._buttonsOnTop=!1}else {b.setButtonPosition(b.position)}}return d},syncEditorClip:function(){var a=this,b=a.getScrollDelta(),h=a.el,i=a.floatingButtons,c=i.el,g=Math.max,f,e,d;if(b){a.isOverflowing=!0;f=a.body;e=i.getHeight();d=a.getHeight();g=Math.max;if(b>0){if(a._buttonsOnTop){b-=e-f.getBorderWidth('b');a.clipBottom(h,g(d-b),0);b-=d-f.getBorderWidth('t');if(b>0){a.clipBottom(c,g(e-b,0))}else {a.clearClip(c)}}else {a.clipBottom(c,g(e-b,0));b-=e-f.getBorderWidth('b');if(b>0){a.clipBottom(h,g(d-b,0))}else {a.clearClip(h)}}}else {if(b<0){b=Math.abs(b);a.clipTop(h,b);b-=d-f.getBorderWidth('b');if(b>0){a.clipTop(c,b)}else {a.clearClip(c)}}}}else {if(a.isOverflowing){a.clearClip(c);a.clearClip(h);a.isOverflowing=!1}}},focusColumnField:function(a){var b,c;if(a&&!a.destroyed){if(a.isVisible()){b=this.getEditor(a);if(b&&b.isFocusable(!0)){c=!0;b.focus()}}if(!c){this.focusColumnField(a.next())}}},cancelEdit:function(){var b=this,d=b.getForm(),f=d.getFields(),c=f.items,e=c.length,a;if(b._cachedNode){b.clearCache()}b.hide();d.clearInvalid();for(a=0;ae&&f[isFormField]'),g=f.length,c,d,e;for(c=0;c'+b.join('')+''},createErrorListItem:function(a,b){a=b?b+': '+a:a;return '
  • '+a+'
  • '},beforeDestroy:function(){Ext.destroy(this.floatingButtons,this.tooltip);Ext.form.Panel.prototype.beforeDestroy.call(this)},clipBottom:function(b,a){b.setStyle('clip','rect(0 auto '+a+'px 0)')},clipTop:function(b,a){b.setStyle('clip','rect('+a+'px, auto, auto, 0)')},clearClip:function(a){a.setStyle('clip',Ext.isIE8?'rect(-1000px auto 1000px auto)':'auto')}},0,['roweditor'],['component','box','container','panel','form','roweditor'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'roweditor':!0},['widget.roweditor'],0,[Ext.grid,'RowEditor'],0);Ext.define('Ext.theme.neptune.grid.RowEditor',{override:'Ext.grid.RowEditor',buttonUI:'default-toolbar'});Ext.cmd.derive('Ext.grid.plugin.HeaderResizer',Ext.plugin.Abstract,{disabled:!1,config:{dynamic:!1},colHeaderCls:'x-column-header',minColWidth:40,maxColWidth:1000,eResizeCursor:'col-resize',init:function(b){var a=this;a.headerCt=b;b.on('render',a.afterHeaderRender,a,{single:a});if(!a.minColWidth){a.self.prototype.minColWidth=Ext.grid.column.Column.prototype.minWidth}},destroy:function(){var a=this,b=a.tracker;if(b){b.destroy();a.tracker=null}a.headerCt.un('render',a.afterHeaderRender,a);a.headerCt=null;Ext.plugin.Abstract.prototype.destroy.call(this)},afterHeaderRender:function(){var a=this,b=a.headerCt,c=b.el;b.mon(c,'mousemove',a.onHeaderCtMouseMove,a);a.markerOwner=a.ownerGrid=a.headerCt.up('tablepanel').ownerGrid;a.tracker=new Ext.dd.DragTracker({disabled:a.disabled,onBeforeStart:a.onBeforeStart.bind(a),onStart:a.onStart.bind(a),onDrag:a.onDrag.bind(a),onEnd:a.onEnd.bind(a),tolerance:3,autoStart:300,el:c})},onHeaderCtMouseMove:function(b){var a=this;if(a.headerCt.dragging||a.disabled){if(a.activeHd){a.activeHd.el.dom.style.cursor='';delete a.activeHd}}else {if(b.pointerType!=='touch'){a.findActiveHeader(b)}}},findActiveHeader:function(f){var d=this,e=d.headerCt,i=f.getTarget('.'+d.colHeaderCls,e.el,!0),h=d.ownerGrid,g=h.ownerLockable,a,b,c,j;d.activeHd=null;if(i){a=Ext.getCmp(i.id);if(a.isAtEndEdge(f)){if(e.visibleColumnManager.getColumns().length===1&&e.forceFit){return}b=a}else {if(a.isAtStartEdge(f)){c=e.visibleColumnManager.getColumns();j=a.isGroupHeader?a.getGridColumns()[0]:a;b=c[Ext.Array.indexOf(c,j)-1];if(!b&&g&&!h.isLocked){c=g.lockedGrid.headerCt.visibleColumnManager.getColumns();b=c[c.length-1]}}}if(b){if(b.isGroupHeader){c=b.getGridColumns();b=c[c.length-1]}if(b&&!(b.fixed||b.resizable===!1)){d.activeHd=b;a.el.dom.style.cursor=d.eResizeCursor;if(a.triggerEl){a.triggerEl.dom.style.cursor=d.eResizeCursor}}}else {a.el.dom.style.cursor='';if(a.triggerEl){a.triggerEl.dom.style.cursor=''}}}return d.activeHd},onBeforeStart:function(b){var a=this;a.dragHd=a.activeHd||b.pointerType==='touch'&&a.findActiveHeader(b);if(a.dragHd&&!a.headerCt.dragging){a.xDelta=a.dragHd.getX()+a.dragHd.getWidth()-a.tracker.getXY()[0];a.tracker.constrainTo=a.getConstrainRegion();return !0}else {a.headerCt.dragging=!1;return !1}},getConstrainRegion:function(){var a=this,e=a.dragHd.el,c,b=a.ownerGrid,g=b.getSizeModel().width,d=g.shrinkWrap?a.headerCt.getWidth()-a.headerCt.visibleColumnManager.getColumns().length*a.minColWidth:a.maxColWidth,f;if(a.headerCt.forceFit){c=a.dragHd.nextNode('gridcolumn:not([hidden]):not([isGroupHeader])');if(c&&a.headerInSameGrid(c)){d=e.getWidth()+(c.getWidth()-a.minColWidth)}}else {if(b.isLocked&&g.shrinkWrap){d=a.dragHd.up('[scrollerOwner]').getTargetEl().getWidth(!0)-b.getWidth()-(b.ownerLockable.normalGrid.visibleColumnManager.getColumns().length*a.minColWidth+Ext.getScrollbarSize().width)}}f=a.adjustConstrainRegion(e.getRegion(),0,0,0,a.minColWidth);f.right=e.getX()+d;return f},onStart:function(k){var a=this,i=a.dragHd,j=i.el.getWidth(),h=i.getRootHeaderCt(),f,g,b,c,d,e;a.headerCt.dragging=!0;a.origWidth=j;if(!a.dynamic){b=a.markerOwner;if(b.frame&&b.resizable){a.gridOverflowSetting=b.el.dom.style.overflow;b.el.dom.style.overflow='hidden'}f=a.getLeftMarkerX(b);c=b.getLhsMarker();d=b.getRhsMarker();e=a.ownerGrid.body.getHeight()+h.getHeight();g=h.getOffsetsTo(b)[1]-b.el.getBorderWidth('t');c.dom.style.cursor=a.eResizeCursor;d.dom.style.cursor=a.eResizeCursor;c.setLocalY(g);d.setLocalY(g);c.setHeight(e);d.setHeight(e);a.setMarkerX(c,f);a.setMarkerX(d,f+j)}},onDrag:function(b){var a=this;if(a.dynamic){a.doResize()}else {a.setMarkerX(a.getMovingMarker(a.markerOwner),a.calculateDragX(a.markerOwner))}},getMovingMarker:function(a){return a.getRhsMarker()},onEnd:function(c){var a=this,b=a.markerOwner;a.headerCt.dragging=!1;if(a.dragHd){if(!a.dynamic){if('gridOverflowSetting' in a){b.el.dom.style.overflow=a.gridOverflowSetting}a.setMarkerX(b.getLhsMarker(),-9999);a.setMarkerX(b.getRhsMarker(),-9999)}a.doResize();if(c.pointerType!=='touch'){a.dragHd=null;a.activeHd.el.dom.style.cursor=a.eResizeCursor}else {a.dragHd=a.activeHd=null}}a.headerCt.blockNextEvent()},doResize:function(){var b=this,c=b.dragHd,a,d=b.tracker.getOffset('point');if(c&&d[0]){if(c.flex){delete c.flex}Ext.suspendLayouts();b.adjustColumnWidth(d[0]-b.xDelta);if(b.headerCt.forceFit){a=c.nextNode('gridcolumn:not([hidden]):not([isGroupHeader])');if(a&&!b.headerInSameGrid(a)){a=null}if(a){delete a.flex;a.setWidth(a.getWidth()-d[0])}}Ext.resumeLayouts(!0)}},headerInSameGrid:function(a){var b=this.dragHd.up('tablepanel');return !!a.up(b)},disable:function(){var a=this.tracker;this.disabled=!0;if(a){a.disable()}},enable:function(){var a=this.tracker;this.disabled=!1;if(a){a.enable()}},calculateDragX:function(a){return this.tracker.getXY('point')[0]+this.xDelta-a.getX()-a.el.getBorderWidth('l')},getLeftMarkerX:function(a){return this.dragHd.getX()-a.getX()-a.el.getBorderWidth('l')-1},setMarkerX:function(a,b){a.setLocalX(b)},adjustConstrainRegion:function(a,e,d,b,c){return a.adjust(e,d,b,c)},adjustColumnWidth:function(a){this.dragHd.setWidth(this.origWidth+a)}},0,0,0,0,['plugin.gridheaderresizer'],0,[Ext.grid.plugin,'HeaderResizer'],0);Ext.cmd.derive('Ext.grid.header.DragZone',Ext.dd.DragZone,{colHeaderSelector:'.x-column-header',colInnerSelector:'.x-column-header-inner',maxProxyWidth:120,constructor:function(b){var a=this;a.headerCt=b;a.ddGroup=a.getDDGroup();a.autoGroup=!0;Ext.dd.DragZone.prototype.constructor.call(this,b.el);a.proxy.el.addCls('x-grid-col-dd')},getDDGroup:function(){return 'header-dd-zone-'+this.headerCt.up('[scrollerOwner]').id},getDragData:function(c){if(c.getTarget(this.colInnerSelector)){var d=c.getTarget(this.colHeaderSelector),a,b;if(d){a=Ext.getCmp(d.id);if(!this.headerCt.dragging&&a.draggable&&!(a.isAtStartEdge(c)||a.isAtEndEdge(c))){b=document.createElement('div');b.role='presentation';b.innerHTML=a.text;return {ddel:b,header:a}}}}return !1},onBeforeDrag:function(){return !(this.headerCt.dragging||this.disabled)},onInitDrag:function(){this.headerCt.dragging=!0;this.headerCt.hideMenu();Ext.dd.DragZone.prototype.onInitDrag.apply(this,arguments)},onDragDrop:function(){this.headerCt.dragging=!1;Ext.dd.DragZone.prototype.onDragDrop.apply(this,arguments)},afterRepair:function(){Ext.dd.DragZone.prototype.afterRepair.call(this);this.headerCt.dragging=!1},getRepairXY:function(){return this.dragData.header.el.getXY()},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1}},1,0,0,0,0,0,[Ext.grid.header,'DragZone'],0);Ext.cmd.derive('Ext.grid.header.DropZone',Ext.dd.DropZone,{colHeaderCls:'x-column-header',proxyOffsets:[-4,-9],constructor:function(b){var a=this;a.headerCt=b;a.ddGroup=a.getDDGroup();a.autoGroup=!0;Ext.dd.DropZone.prototype.constructor.call(this,b.el)},destroy:function(){Ext.dd.DropZone.prototype.destroy.call(this);Ext.destroy(this.topIndicator,this.bottomIndicator)},getDDGroup:function(){return 'header-dd-zone-'+this.headerCt.up('[scrollerOwner]').id},getTargetFromEvent:function(a){return a.getTarget('.'+this.colHeaderCls)},getTopIndicator:function(){if(!this.topIndicator){this.topIndicator=Ext.getBody().createChild({role:'presentation',cls:'x-col-move-top',html:' '});this.indicatorXOffset=Math.floor((this.topIndicator.dom.offsetWidth+1)/2)}return this.topIndicator},getBottomIndicator:function(){if(!this.bottomIndicator){this.bottomIndicator=Ext.getBody().createChild({role:'presentation',cls:'x-col-move-bottom',html:' '})}return this.bottomIndicator},getLocation:function(d,c){var e=d.getXY()[0],a=Ext.fly(c).getRegion(),b;if(a.right-e<=(a.right-a.left)/2){b='after'}else {b='before'}return {pos:b,header:Ext.getCmp(c.id),node:c}},positionIndicator:function(t,v,w){var a=this,f=t.header,n=a.getLocation(w,v),b=n.header,c=n.pos,r,s,e,d,o,m,j,h,g,q,p,l,u,k,i;if(b===a.lastTargetHeader&&c===a.lastDropPos){return}r=f.nextSibling('gridcolumn:not([hidden])');s=f.previousSibling('gridcolumn:not([hidden])');a.lastTargetHeader=b;a.lastDropPos=c;if(!b.draggable&&c==='before'&&b.getIndex()===0){return !1}t.dropLocation=n;if(f!==b&&(c==='before'&&r!==b||c==='after'&&s!==b)&&!b.isDescendantOf(f)){l=Ext.dd.DragDropManager.getRelated(a);u=l.length;k=0;for(;k=0&&!(b.isGroupHeader&&(!b.items||!b.items.length))&&h!==c){i=a.isGroupHeader?a.query(':not([hidden]):not([isGroupHeader])').length:1;if(h<=c&&i>1){c-=i}d.getRootHeaderCt().grid.view.moveColumn(h,c,i)}p.fireEvent('columnmove',e,a,h,c);e.isDDMoveInGrid=d.isDDMoveInGrid=!1;if(d.isGroupHeader&&!e.isGroupHeader){if(e!==d){a.savedFlex=a.flex;delete a.flex;a.width=o}}else {if(!e.isGroupHeader){if(a.savedFlex){a.flex=a.savedFlex;delete a.width}}}Ext.resumeLayouts(!0)}}},1,0,0,0,0,0,[Ext.grid.header,'DropZone'],0);Ext.cmd.derive('Ext.grid.plugin.HeaderReorderer',Ext.plugin.Abstract,{init:function(a){this.headerCt=a;a.on({boxready:this.onHeaderCtRender,single:!0,scope:this})},destroy:function(){var a=this;a.headerCt.un('boxready',a.onHeaderCtRender,a);Ext.destroy(a.dragZone,a.dropZone);a.headerCt=a.dragZone=a.dropZone=null;Ext.plugin.Abstract.prototype.destroy.call(this)},onHeaderCtRender:function(){var a=this;a.dragZone=new Ext.grid.header.DragZone(a.headerCt);a.dropZone=new Ext.grid.header.DropZone(a.headerCt);if(a.disabled){a.dragZone.disable()}},enable:function(){this.disabled=!1;if(this.dragZone){this.dragZone.enable()}},disable:function(){this.disabled=!0;if(this.dragZone){this.dragZone.disable()}}},0,0,0,0,['plugin.gridheaderreorderer'],0,[Ext.grid.plugin,'HeaderReorderer'],0);Ext.cmd.derive('Ext.grid.header.Container',Ext.container.Container,{border:!0,baseCls:'x-grid-header-ct',dock:'top',weight:100,defaultType:'gridcolumn',detachOnRemove:!1,defaultWidth:100,sortAscText:'Sort Ascending',sortDescText:'Sort Descending',sortClearText:'Clear Sort',columnsText:'Columns',headerOpenCls:'x-column-header-open',menuSortAscCls:'x-hmenu-sort-asc',menuSortDescCls:'x-hmenu-sort-desc',menuColsIcon:'x-cols-icon',blockEvents:!1,dragging:!1,sortOnClick:!0,enableFocusableContainer:!1,childHideCount:0,sortable:!0,enableColumnHide:!0,initComponent:function(){var a=this;a.plugins=a.plugins||[];a.defaults=a.defaults||{};if(!a.isColumn){if(a.enableColumnResize){a.resizer=new Ext.grid.plugin.HeaderResizer();a.plugins.push(a.resizer)}if(a.enableColumnMove){a.reorderer=new Ext.grid.plugin.HeaderReorderer();a.plugins.push(a.reorderer)}}if(a.isColumn&&!a.isGroupHeader){if(!a.items||a.items.length===0){a.isContainer=a.isFocusableContainer=!1;a.focusable=!0;a.layout={type:'container',calculate:Ext.emptyFn}}}else {a.layout=Ext.apply({type:'gridcolumn',align:'stretch'},a.initialConfig.layout);a.defaults.columnLines=a.columnLines;if(!a.isGroupHeader){a.isRootHeader=!0;if(!a.hiddenHeaders){a.enableFocusableContainer=!0;a.ariaRole='rowgroup'}a.columnManager=new Ext.grid.ColumnManager(!1,a);a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);if(a.grid){a.grid.columnManager=a.columnManager;a.grid.visibleColumnManager=a.visibleColumnManager}}else {a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);a.columnManager=new Ext.grid.ColumnManager(!1,a)}}a.menuTask=new Ext.util.DelayedTask(a.updateMenuDisabledState,a);Ext.container.Container.prototype.initComponent.call(this)},insertNestedHeader:function(d){var b=this,e=d.ownerCt,f=b.ownerCt,c=f.layout.owner,a;if(e){if(b.isGroupHeader&&!f.isNestedParent){a=c.items.indexOf(b)}e.remove(d,!1)}if(a===undefined){a=c.items.indexOf(b)}c.insert(a,d)},isNested:function(){return !!this.getRootHeaderCt().down('[isNestedParent]')},isNestedGroupHeader:function(){var a=this,b=a.getRefOwner().query('>:not([hidden])');return b.length===1&&b[0]===a},maybeShowNestedGroupHeader:function(){var a=this.items,b;if(a&&a.length===1&&(b=a.getAt(0))&&b.hidden){b.show()}},setNestedParent:function(a){a.isNestedParent=!1;a.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&a.ownerCt.items.length===1)},initEvents:function(){var a=this,b,c;Ext.container.Container.prototype.initEvents.call(this);if(!a.isColumn&&!a.isGroupHeader){b=a.onHeaderCtEvent;c={click:b,dblclick:b,contextmenu:b,mouseover:a.onHeaderCtMouseOver,mouseout:a.onHeaderCtMouseOut,scope:a};if(Ext.supports.Touch){c.longpress=a.onHeaderCtLongPress}a.mon(a.el,c)}},onHeaderCtEvent:function(a,g){var c=this,f=c.getHeaderElByEvent(a),b,e,d;if(c.longPressFired){c.longPressFired=!1;return}if(f&&!c.blockEvents){b=Ext.getCmp(f.id);if(b){e=b[b.clickTargetName];if(!b.isGroupHeader&&!b.isContainer||a.within(e)){if(a.type==='click'||a.type==='tap'){d=b.onTitleElClick(a,e,c.sortOnClick);if(d){c.onHeaderTriggerClick(d,a,a.pointerType==='touch'?d.el:d.triggerEl)}else {c.onHeaderClick(b,a,g)}}else {if(a.type==='contextmenu'){c.onHeaderContextMenu(b,a,g)}else {if(a.type==='dblclick'&&b.resizable){b.onTitleElDblClick(a,e.dom)}}}}}}},blockNextEvent:function(){this.blockEvents=!0;Ext.asap(this.unblockEvents,this)},unblockEvents:function(){this.blockEvents=!1},onHeaderCtMouseOver:function(b,e){var c,a,d;if(!b.within(this.el,!0)){c=b.getTarget('.'+Ext.grid.column.Column.prototype.baseCls);a=c&&Ext.getCmp(c.id);if(a){d=a[a.clickTargetName];if(b.within(d)){a.onTitleMouseOver(b,d.dom)}}}},onHeaderCtMouseOut:function(c,g){var f='.'+Ext.grid.column.Column.prototype.baseCls,d=c.getTarget(f),e=c.getRelatedTarget(f),a,b;if(d!==e){if(d){a=Ext.getCmp(d.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOut(c,b.dom)}}if(e){a=Ext.getCmp(e.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOver(c,b.dom)}}}},onHeaderCtLongPress:function(d){var a=this,b=a.getHeaderElByEvent(d),c=Ext.getCmp(b.id);if(!c.menuDisabled){a.longPressFired=!0;a.showMenuBy(d,b,c)}},getHeaderElByEvent:function(a){return a.getTarget('.'+Ext.grid.column.Column.prototype.baseCls)},isLayoutRoot:function(){if(this.hiddenHeaders){return !1}return Ext.container.Container.prototype.isLayoutRoot.call(this)},getRootHeaderCt:function(){var a=this;return a.isRootHeader?a:a.up('[isRootHeader]')},onDestroy:function(){var a=this;if(a.menu){a.menu.un('hide',a.onMenuHide,a)}a.menuTask.cancel();Ext.container.Container.prototype.onDestroy.call(this);Ext.destroy(a.visibleColumnManager,a.columnManager,a.menu);a.columnManager=a.visibleColumnManager=null},applyColumnsState:function(h,n){if(!h||!h.length){return}var f=this,m=f.items.items,o=m.length,b=0,i=h.length,g,e,a,d,k=!1,c=[],l={},j=[];for(g=0;g=a.visibleFromIdx){b++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(a.isGroupHeader){c=a.visibleColumnManager.getColumns().length}d.onHeaderMoved(a,c,a.visibleFromIdx,b)},maybeContinueRemove:function(){var a=this;return a.isGroupHeader&&!a.applyingState&&!a.isNestedParent&&a.ownerCt&&!a.items.getCount()},onRemove:function(b,c){var a=this,d=a.ownerCt,e=b.lastHiddenHeader;Ext.container.Container.prototype.onRemove.call(this,b,c);if(!a.destroying){if(!a.isDDMoveInGrid){a.onHeadersChanged(b,!1)}if(a.maybeContinueRemove()){if(b.rendered){a.detachComponent(b)}Ext.suspendLayouts();d.remove(a);Ext.resumeLayouts(!0)}}},onHeadersChanged:function(c,d){var b,a=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(a){a.onColumnsChanged();if(!c.isGroupHeader){b=a.ownerCt;if(b&&!d){b.onHeadersChanged(a,c)}}}},onHeaderMoved:function(d,f,c,e){var a=this,b=a.ownerCt;if(a.rendered){if(b&&b.onHeaderMove){b.onHeaderMove(a,d,f,c,e)}a.fireEvent('columnmove',a,d,c,e)}},onColumnsChanged:function(){var a=this,b=a.menu,c,d;if(a.rendered){a.fireEvent('columnschanged',a);if(b&&(c=b.child('#columnItemSeparator'))){d=b.child('#columnItem');c.destroy();d.destroy()}}},lookupComponent:function(b){var a=Ext.container.Container.prototype.lookupComponent.apply(this,arguments);if(!a.isGroupHeader&&a.width===undefined&&!a.flex){a.width=this.defaultWidth}return a},setSortState:function(){var e=this.up('[store]').store,d=this.visibleColumnManager.getColumns(),f=d.length,c,b,a;for(c=0;cgridcolumn[hideable]'),g=e.length,d;for(;cj.el.dom.clientHeight?Ext.getScrollbarSize().width:0),n=0,e=k.getVisibleGridColumns(),o=b.hidden,f,c,a,g,d;function getTotalFlex(){for(c=0,f=e.length;cg){b.width=g;l=!0}else {b.width=d;h-=d+m;getTotalFlex()}applyWidth();Ext.resumeLayouts(!0)},autoSizeColumn:function(a){var b=this.view;if(b){b.autoSizeColumn(a);if(this.forceFit){this.applyForceFit(a)}}},getRefItems:function(b){var a=Ext.container.Container.prototype.getRefItems.call(this,b);if(this.menu){a.push(this.menu)}return a},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},createFocusableContainerKeyNav:function(b){var a=this;return new Ext.util.KeyNav(b,{scope:a,down:a.showHeaderMenu,left:a.onFocusableContainerLeftKey,right:a.onFocusableContainerRightKey,home:a.onHomeKey,end:a.onEndKey,space:a.onHeaderActivate,enter:a.onHeaderActivate})},onHomeKey:function(a){return this.focusChild(null,!0,a)},onEndKey:function(a){return this.focusChild(null,!1,a)},showHeaderMenu:function(b){var a=this.getFocusableFromEvent(b);if(a&&a.isColumn&&a.triggerEl){this.onHeaderTriggerClick(a,b,a.triggerEl)}},onHeaderActivate:function(d){var a=this.getFocusableFromEvent(d),c,b;if(a&&a.isColumn){c=a.getView();if(a.sortable&&this.sortOnClick){b=c.getNavigationModel().getLastFocused();a.toggleSortState();if(b){c.ownerCt.ensureVisible(b.record)}}this.onHeaderClick(a,d,a.el)}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {a.focus()}}}},0,['headercontainer'],['component','box','container','headercontainer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0},['widget.headercontainer'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.grid.header,'Container'],0);Ext.cmd.derive('Ext.grid.column.Column',Ext.grid.header.Container,{alternateClassName:'Ext.grid.Column',config:{triggerVisible:!1,sorter:null},baseCls:'x-column-header',hoverCls:'x-column-header-over',ariaRole:'columnheader',enableFocusableContainer:!1,sortState:null,possibleSortStates:['ASC','DESC'],ariaSortStates:{ASC:'ascending',DESC:'descending'},childEls:['titleEl','triggerEl','textEl','textContainerEl'],headerWrap:!1,renderTpl:['','{%this.renderContainer(out,values)%}'],dataIndex:null,text:' ',menuText:null,emptyCellText:' ',sortable:!0,resizable:!0,hideable:!0,menuDisabled:!1,renderer:!1,align:'left',draggable:!0,tooltipType:'qtip',initDraggable:Ext.emptyFn,tdCls:'',producesHTML:!0,ignoreExport:!1,isHeader:!0,isColumn:!0,tabIndex:-1,ascSortCls:'x-column-header-sort-ASC',descSortCls:'x-column-header-sort-DESC',componentLayout:'columncomponent',groupSubHeaderCls:'x-group-sub-header',groupHeaderCls:'x-group-header',clickTargetName:'titleEl',detachOnRemove:!0,initResizable:Ext.emptyFn,rendererNames:{column:'renderer',edit:'editRenderer',summary:'summaryRenderer'},formatterNames:{column:'formatter',edit:'editFormatter',summary:'summaryFormatter'},initComponent:function(){var a=this;if(!a.rendererScope){a.rendererScope=a.scope}if(a.header!=null){a.text=a.header;a.header=null}if(a.cellWrap){a.tdCls=(a.tdCls||'')+' x-wrap-cell'}if(a.columns!=null){a.isGroupHeader=!0;a.ariaRole='presentation';a.items=a.columns;a.columns=a.flex=a.width=null;a.cls=(a.cls||'')+' '+a.groupHeaderCls;a.sortable=a.resizable=!1;a.align='center'}else {if(a.flex){a.minWidth=a.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}a.addCls('x-column-header-align-'+a.align);a.setupRenderer();a.setupRenderer('edit');a.setupRenderer('summary');Ext.grid.header.Container.prototype.initComponent.apply(this,arguments)},onAdded:function(e,g,f){var a=this,c,d,b;Ext.grid.header.Container.prototype.onAdded.call(this,e,g,f);if(!a.headerId){d=a.up('tablepanel');b=d?d.ownerGrid:a.getRootHeaderCt();b.headerCounter=(b.headerCounter||0)+1;a.headerId='h'+b.headerCounter}if(!a.stateId){a.stateId=a.initialConfig.id||a.headerId}c=a.getSorter();if(c&&!c.initialConfig.id){c.setId((a.dataIndex||a.stateId)+'-sorter')}},applySorter:function(a){return this.getRootHeaderCt().up('tablepanel').store.getData().getSorters().decodeSorter(a)},bindFormatter:function(a){var b=this;return function(c){return a.format(c,a.scope||b.rendererScope||b.resolveListenerScope())}},bindRenderer:function(b){var a=this;a.hasCustomRenderer=!0;return function(){return Ext.callback(b,a.rendererScope,arguments,0,a)}},setupRenderer:function(c){c=c||'column';var a=this,b=a[a.formatterNames[c]],d=a[a.rendererNames[c]],f=c==='column',e,g;if(!b){if(d){if(typeof d==='string'){d=a[a.rendererNames[c]]=a.bindRenderer(d);g=!0}if(f){a.hasCustomRenderer=g||d.length>1}}else {if(f&&a.defaultRenderer){a.renderer=a.defaultRenderer;a.usingDefaultRenderer=!0}}}else {e=b.indexOf('this.')===0;if(e){b=b.substring(5)}b=Ext.app.bind.Template.prototype.parseFormat(b);a[a.formatterNames[c]]=null;if(e){b.scope=null}a[a.rendererNames[c]]=a.bindFormatter(b)}},getView:function(){var a=this.getRootHeaderCt();if(a){return a.view}},onFocusLeave:function(a){Ext.grid.header.Container.prototype.onFocusLeave.call(this,a);if(this.activeMenu){this.activeMenu.hide()}},initItems:function(){var a=this;Ext.grid.header.Container.prototype.initItems.apply(this,arguments);if(a.isGroupHeader){if(a.config.hidden||!a.hasVisibleChildColumns()){a.hide()}}},hasVisibleChildColumns:function(){var c=this.items.items,d=c.length,a,b;for(a=0;agridcolumn:not([hidden]):not([menuDisabled])');c=a.length;if(Ext.Array.contains(a,b.hideCandidate)){c--}if(c){return !1}b.hideCandidate=this},isLockable:function(){var a={result:this.lockable!==!1};if(a.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[a])}return a.result},isLocked:function(){return this.locked||!!this.up('[isColumn][locked]','[isRootHeader]')},hasMultipleVisibleChildren:function(a){if(!this.isXType('headercontainer')){a.result=!1;return !1}if(this.query('>gridcolumn:not([hidden])').length>1){return !1}},hide:function(){var a=this,b=a.getRootHeaderCt(),c=a.getRefOwner();if(c.constructing){Ext.grid.header.Container.prototype.hide.call(this);return a}if(a.rendered&&!a.isVisible()){return a}if(b.forceFit){a.visibleSiblingCount=b.getVisibleGridColumns().length-1;if(a.flex){a.savedWidth=a.getWidth();a.flex=null}}b.beginChildHide();Ext.suspendLayouts();if(c.isGroupHeader){if(a.isNestedGroupHeader()){c.hide()}if(a.isSubHeader&&!a.isGroupHeader&&c.query('>gridcolumn:not([hidden])').length===1){c.lastHiddenHeader=a}}Ext.grid.header.Container.prototype.hide.call(this);b.endChildHide();b.onHeaderHide(a);Ext.resumeLayouts(!0);return a},show:function(){var a=this,c=a.getRootHeaderCt(),b=a.getRefOwner();if(a.isVisible()){return a}if(b.isGroupHeader){b.lastHiddenHeader=null}if(a.rendered){if(c.forceFit){c.applyForceFit(a)}}Ext.suspendLayouts();if(a.isSubHeader&&b.hidden){b.show(!1,!0)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(a.isGroupHeader){a.maybeShowNestedGroupHeader()}b=a.getRootHeaderCt();if(b){b.onHeaderShow(a)}Ext.resumeLayouts(!0);return a},shouldUpdateCell:function(d,b){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(b){var e=b.length,a,c;for(a=0;aActions',ignoreExport:!0,sortable:!1,innerCls:'x-grid-cell-inner-action-col',actionIconCls:'x-action-col-icon',constructor:function(g){var a=this,b=Ext.apply({},g),d=b.items||a.items||[a],e,c,f;a.origRenderer=b.renderer||a.renderer;a.origScope=b.scope||a.scope;a.renderer=a.scope=b.renderer=b.scope=null;b.items=null;Ext.grid.column.Column.prototype.constructor.call(this,b);a.items=d;for(c=0,f=d.length;c':'>')}return h},updater:function(e,d,c,f,b){var a={};Ext.fly(e).addCls(a.tdCls).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(d,a,c,null,null,b,f)},enableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!1;b.up('tablepanel').el.select('.x-action-col-'+a).removeCls(b.disabledCls);if(!c){b.fireEvent('enable',b)}},disableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!0;b.up('tablepanel').el.select('.x-action-col-'+a).addCls(b.disabledCls);if(!c){b.fireEvent('disable',b)}},beforeDestroy:function(){this.renderer=this.items=null;return Ext.grid.column.Column.prototype.beforeDestroy.apply(this,arguments)},processEvent:function(f,g,n,h,i,d,l,o){var b=this,c=d.getTarget(),e=f==='keydown'&&d.getKey(),m,a,j,k=Ext.fly(n);d.stopSelection=!e&&b.stopSelection;if(e&&(c===n||!k.contains(c))){c=k.query('.'+b.actionIconCls,!0);if(c.length===1){c=c[0]}else {return}}if(c&&(m=c.className.match(b.actionIdRe))){a=b.items[parseInt(m[1],10)];j=a.disabled||(a.isDisabled?a.isDisabled.call(a.scope||b.origScope||b,g,h,i,a,l):!1);if(a&&!j){if(f==='mousedown'&&!b.getView().actionableMode){d.preventDefault()}else {if(f==='click'||(e===d.ENTER||e===d.SPACE)){Ext.callback(a.handler||b.handler,a.scope||b.origScope,[g,h,i,a,d,l,o],undefined,b);if(!g.el.contains(Ext.Element.getActiveElement())){return !1}}}}}return Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)},cascade:function(b,a){b.call(a||this,this)},getRefItems:function(){return []},privates:{getFocusables:function(){return []},shouldUpdateCell:function(){return 2}}},1,['actioncolumn'],['component','box','container','headercontainer','gridcolumn','actioncolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'actioncolumn':!0},['widget.actioncolumn'],0,[Ext.grid.column,'Action',Ext.grid,'ActionColumn'],0);Ext.cmd.derive('Ext.grid.column.Check',Ext.grid.column.Column,{alternateClassName:['Ext.ux.CheckColumn','Ext.grid.column.CheckColumn'],align:'center',ignoreExport:!0,stopSelection:!0,tdCls:'x-grid-cell-checkcolumn',innerCls:'x-grid-cell-inner-checkcolumn',clickTargetName:'el',defaultFilterType:'boolean',constructor:function(){this.scope=this;Ext.grid.column.Column.prototype.constructor.apply(this,arguments)},processEvent:function(h,n,k,e,m,b,g,l){var a=this,d=h==='keydown'&&b.getKey(),f=h==='mousedown',j=a.disabled,i,c;b.stopSelection=!d&&a.stopSelection;if(!j&&(f||(d===b.ENTER||d===b.SPACE))){c=!a.isRecordChecked(g);if(a.fireEvent('beforecheckchange',a,e,c)!==!1){a.setRecordCheck(g,c,k,l,b);a.fireEvent('checkchange',a,e,c);if(f&&!a.getView().actionableMode){b.preventDefault()}}}else {i=Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)}return i},onEnable:function(){Ext.grid.column.Column.prototype.onEnable.apply(this,arguments);this._setDisabled(!1)},onDisable:function(){this._setDisabled(!0)},_setDisabled:function(d){var b=this,c=b.disabledCls,a;a=b.up('tablepanel').el.select(b.getCellSelector());if(d){a.addCls(c)}else {a.removeCls(c)}},defaultRenderer:function(d,c){var a='x-',b=a+'grid-checkcolumn';if(this.disabled){c.tdCls+=' '+this.disabledCls}if(d){b+=' '+a+'grid-checkcolumn-checked'}return '
    '},isRecordChecked:function(a){var b=this.property;if(b){return a[b]}return a.get(this.dataIndex)},setRecordCheck:function(c,a,e,f,g){var b=this,d=b.property;if(d){c[d]=a;b.updater(e,a)}else {c.set(b.dataIndex,a)}},updater:function(a,b){a=Ext.fly(a);a[this.disabled?'addCls':'removeCls'](this.disabledCls);Ext.fly(a.down(this.getView().innerSelector,!0).firstChild)[b?'addCls':'removeCls']('x-grid-checkcolumn-checked')}},1,['checkcolumn'],['component','box','container','headercontainer','gridcolumn','checkcolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'checkcolumn':!0},['widget.checkcolumn'],0,[Ext.grid.column,'Check',Ext.ux,'CheckColumn',Ext.grid.column,'CheckColumn'],0);Ext.cmd.derive('Ext.grid.column.Date',Ext.grid.column.Column,{alternateClassName:'Ext.grid.DateColumn',isDateColumn:!0,defaultFilterType:'date',producesHTML:!1,initComponent:function(){if(!this.format){this.format=Ext.Date.defaultFormat}Ext.grid.column.Column.prototype.initComponent.apply(this,arguments)},defaultRenderer:function(a){return Ext.util.Format.date(a,this.format)},updater:function(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Date.prototype.defaultRenderer.call(this,a)}},0,['datecolumn'],['component','box','container','headercontainer','gridcolumn','datecolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'datecolumn':!0},['widget.datecolumn'],0,[Ext.grid.column,'Date',Ext.grid,'DateColumn'],0);Ext.cmd.derive('Ext.grid.column.RowNumberer',Ext.grid.column.Column,{alternateClassName:'Ext.grid.RowNumberer',isRowNumberer:!0,text:' ',width:23,sortable:!1,draggable:!1,autoLock:!0,lockable:!1,align:'right',producesHTML:!1,ignoreExport:!0,constructor:function(b){var a=this;a.width=a.width;Ext.grid.column.Column.prototype.constructor.apply(this,arguments);a.sortable=!1;a.scope=a},resizable:!1,hideable:!1,menuDisabled:!0,dataIndex:'',cls:'x-row-numberer',tdCls:'x-grid-cell-row-numberer x-grid-cell-special',innerCls:'x-grid-cell-inner-row-numberer',rowspan:undefined,defaultRenderer:function(j,b,f,i,h,a,g){var c=this.rowspan,e=a.currentPage,d=g.store.indexOf(f);if(b&&c){b.tdAttr='rowspan="'+c+'"'}if(e>1){d+=(e-1)*a.pageSize}return d+1},updater:function(d,c,b,e,a){Ext.fly(d).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(c,null,b,null,null,a,e)}},1,['rownumberer'],['component','box','container','headercontainer','gridcolumn','rownumberer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'rownumberer':!0},['widget.rownumberer'],0,[Ext.grid.column,'RowNumberer',Ext.grid,'RowNumberer'],0);Ext.define('Ext.theme.neptune.grid.column.RowNumberer',{override:'Ext.grid.column.RowNumberer',width:25});Ext.cmd.derive('Ext.grid.column.Widget',Ext.grid.column.Column,{config:{defaultWidgetUI:{}},ignoreExport:!0,sortable:!1,onWidgetAttach:null,preventUpdate:!0,stopSelection:!0,initComponent:function(){var b=this,a;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments);a=b.widget;b.widget=a=Ext.apply({},a);if(!a.ui){a.ui=b.getDefaultWidgetUI()[a.xtype]||'default'}b.isFixedSize=Ext.isNumber(a.width)},processEvent:function(c,d,h,e,f,b,g,i){var a;if(this.stopSelection&&c==='click'){a=b.getTarget(d.innerSelector);if(a&&a!==b.target){b.stopSelection=!0}}},beforeRender:function(){var a=this,b=a.tdCls,c;a.listenerScopeFn=function(b){if(b==='this'){return this}return a.resolveListenerScope(b)};a.liveWidgets={};a.cachedStyles={};a.freeWidgetStack=[c=a.getFreeWidget()];b=b?b+' ':'';a.tdCls=b+c.getTdCls();a.setupViewListeners(a.getView());Ext.grid.column.Column.prototype.beforeRender.call(this)},afterRender:function(){var a=this.getView();Ext.grid.column.Column.prototype.afterRender.call(this);if(a&&a.viewReady&&!a.ownerGrid.reconfiguring){this.onViewRefresh(a,a.getViewRange())}},defaultRenderer:Ext.emptyFn,updater:function(c,b,a){this.updateWidget(a)},onResize:function(e){var a=this,d=a.liveWidgets,c=a.getView(),f,b;if(!a.isFixedSize&&a.rendered&&c&&c.viewReady){b=c.getEl().down(a.getCellInnerSelector());if(b){e-=parseInt(a.getCachedStyle(b,'padding-left'),10)+parseInt(a.getCachedStyle(b,'padding-right'),10);for(f in d){d[f].setWidth(e)}}}},onAdded:function(){var b=this,a;Ext.grid.column.Column.prototype.onAdded.apply(this,arguments);a=b.getView();if(a){b.setupViewListeners(a);if(a&&a.viewReady&&b.rendered&&a.getEl().down(b.getCellSelector())){b.onViewRefresh(a,a.getViewRange())}}},onRemoved:function(e){var a=this,c=a.liveWidgets,b=a.viewListeners,d;if(a.rendered){a.viewListeners=b&&Ext.destroy(b);if(!e){for(d in c){c[d].detachFromBody()}}}Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments)},onDestroy:function(){var b=this,e=b.liveWidgets,d=b.freeWidgetStack,g,a,c,f;if(b.rendered){for(g in e){a=e[g];a.$widgetRecord=a.$widgetColumn=null;delete a.getWidgetRecord;delete a.getWidgetColumn;a.destroy()}for(c=0,f=d.length;c0){v=d.getModel();for(b=0;b-1},indexOfPlaceholder:function(a){return this.data.indexOf(a)},indexOfId:function(a){return this.data.indexOfKey(a)},indexOfTotal:function(a){return this.store.indexOf(a)},onAdd:function(b){var a=this;a.processStore(a.store);a.fireEvent('refresh',a);return !1},onClear:function(d,c,b){var a=this;a.processStore(a.store);a.fireEvent('clear',a)},onIdChanged:function(d,b,a,c){this.data.updateKey(b,a)},onRefresh:function(){this.processStore(this.store);this.fireEvent('refresh',this)},onRemove:function(){var a=this;a.processStore(a.store);a.fireEvent('refresh',a);return !1},onUpdate:function(k,b,j,c){var a=this,g=a.groupingFeature,f,i,d,e,h;if(k.isGrouped()){f=b.group=g.getGroup(b);if(f){i=g.getMetaGroup(b);if(c&&Ext.Array.contains(c,g.getGroupField())){return a.onRefresh(a.store)}if(i.isCollapsed){a.fireEvent('update',a,i.placeholder)}else {Ext.suspendLayouts();a.fireEvent('update',a,b,j,c);h=f.items;d=h[0];e=h[h.length-1];if(d!==b){d.group=f;a.fireEvent('update',a,d,'edit',c);delete d.group}if(e!==b&&e!==d&&g.showSummaryRow){e.group=f;a.fireEvent('update',a,e,'edit',c);delete e.group}Ext.resumeLayouts(!0)}}delete b.group}else {a.fireEvent('update',a,b,j,c)}},onGroupChange:function(b,a){if(!a){this.processStore(b)}this.fireEvent('groupchange',b,a)},destroy:function(){var a=this;a.bindStore(null);Ext.destroyMembers(a,'data','groupingFeature');Ext.util.Observable.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.grid.feature,'GroupStore'],0);Ext.cmd.derive('Ext.grid.feature.Grouping',Ext.grid.feature.Feature,{eventPrefix:'group',eventSelector:'.x-grid-group-hd',refreshData:{},wrapsItem:!0,groupHeaderTpl:'{columnName}: {name}',depthToIndent:17,collapsedCls:'x-grid-group-collapsed',hdCollapsedCls:'x-grid-group-hd-collapsed',hdNotCollapsibleCls:'x-grid-group-hd-not-collapsible',collapsibleCls:'x-grid-group-hd-collapsible',ctCls:'x-group-hd-container',groupByText:'Group by this field',showGroupsText:'Show in groups',hideGroupedHeader:!1,startCollapsed:!1,enableGroupingMenu:!0,enableNoGroups:!0,collapsible:!0,groupers:null,expandTip:'Click to expand. CTRL key collapses all others',collapseTip:'Click to collapse. CTRL/click collapses all others',showSummaryRow:!1,outerTpl:['{%','if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {','this.groupingFeature.setup(values.rows, values.view.rowValues);','}','this.nextTpl.applyOut(values, out, parent);','if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {','this.groupingFeature.cleanup(values.rows, values.view.rowValues);','}','%}',{priority:200}],groupRowTpl:['{%','var me = this.groupingFeature,','colspan = "colspan=" + values.columns.length;','if (me.disabled || parent.rows.length === 1 && parent.rows[0].isSummary) {','values.needsWrap = false;','} else {','me.setupRowData(values.record, values.rowIndex, values);','}','%}','','','{% values.view.renderColumnSizer(values, out); %}','','','{%','var groupTitleStyle = (!values.view.lockingPartner || (values.view.ownerCt === values.view.ownerCt.ownerLockable.lockedGrid) || (values.view.lockingPartner.headerCt.getVisibleGridColumns().length === 0)) ? "" : "visibility:hidden";','%}','
    ','
    ','{[values.groupHeaderTpl.apply(values.metaGroupCache, parent) || " "]}','
    ','
    ','','','
    ','','{%','values.itemClasses.length = 0;','this.nextTpl.applyOut(values, out, parent);','%}','','','{%me.outputSummaryRecord(values.summaryRecord, values, out, parent);%}','','','{%this.nextTpl.applyOut(values, out, parent);%}','',{priority:200,beginRowSync:function(b){var a=this.groupingFeature;b.add('header',a.eventSelector);b.add('summary',a.summaryRowSelector)},syncContent:function(c,b,f){c=Ext.fly(c,'syncDest');b=Ext.fly(b,'syncSrc');var a=this.groupingFeature,h=c.down(a.eventSelector,!0),g=b.down(a.eventSelector,!0),e=c.down(a.summaryRowSelector,!0),d=b.down(a.summaryRowSelector,!0);if(h&&g){Ext.fly(h).syncContent(g)}if(e&&d){if(f){this.groupingFeature.view.updateColumns(e,d,f)}else {Ext.fly(e).syncContent(d)}}}}],init:function(c){var a=this,b=a.view,f=a.getGridStore(),d,e;b.isGrouping=f.isGrouped();a.mixins.summary.init.call(a);Ext.grid.feature.Feature.prototype.init.call(this,c);b.headerCt.on({columnhide:a.onColumnHideShow,columnshow:a.onColumnHideShow,columnmove:a.onColumnMove,scope:a});b.addTpl(Ext.XTemplate.getTpl(a,'outerTpl')).groupingFeature=a;b.addRowTpl(Ext.XTemplate.getTpl(a,'groupRowTpl')).groupingFeature=a;b.preserveScrollOnRefresh=!0;if(f.isBufferedStore){a.collapsible=!1}else {d=a.lockingPartner;if(d&&d.dataSource){a.dataSource=b.dataSource=e=d.dataSource}else {a.dataSource=b.dataSource=e=new Ext.grid.feature.GroupStore(a,f)}}c=c.ownerLockable||c;c.on('beforereconfigure',a.beforeReconfigure,a);b.on({afterrender:a.afterViewRender,scope:a,single:!0});if(e){e.on('groupchange',a.onGroupChange,a)}else {a.setupStoreListeners(f)}a.mixins.summary.bindStore.call(a,c,c.getStore())},getGridStore:function(){return this.view.getStore()},indexOf:function(a){return this.dataSource.indexOf(a)},indexOfPlaceholder:function(a){return this.dataSource.indexOfPlaceholder(a)},isInCollapsedGroup:function(d){var c=this,e=c.getGridStore(),b=!1,a;if(e.isGrouped()&&(a=c.getMetaGroup(d))){b=!!(a&&a.isCollapsed)}return b},createCache:function(){var a=this.metaGroupCache={},b=this.lockingPartner;if(b){b.metaGroupCache=a}a.map={};return a},getCache:function(){return this.metaGroupCache||this.createCache()},invalidateCache:function(){var a=this.lockingPartner;this.metaGroupCache=null;if(a){a.metaGroupCache=null}},vetoEvent:function(c,d,b,a){if(a.type!=='mouseover'&&a.type!=='mouseout'&&a.type!=='mouseenter'&&a.type!=='mouseleave'&&a.getTarget(this.eventSelector)){return !1}},enable:function(){var a=this,c=a.view,e=a.getGridStore(),d=a.hideGroupedHeader&&a.getGroupedHeader(),b;c.isGrouping=!0;if(c.lockingPartner){c.lockingPartner.isGrouping=!0}Ext.grid.feature.Feature.prototype.enable.call(this);if(a.lastGrouper){e.group(a.lastGrouper);a.lastGrouper=null}if(d){d.hide()}b=a.view.headerCt.getMenu().down('#groupToggleMenuItem');if(b){b.setChecked(!0,!0)}},disable:function(){var a=this,c=a.view,f=a.getGridStore(),d=a.hideGroupedHeader&&a.getGroupedHeader(),e=f.getGrouper(),b;c.isGrouping=!1;if(c.lockingPartner){c.lockingPartner.isGrouping=!1}Ext.grid.feature.Feature.prototype.disable.call(this);if(e){a.lastGrouper=e;f.clearGrouping()}if(d){d.show()}b=a.view.headerCt.getMenu().down('#groupToggleMenuItem');if(b){b.setChecked(!1,!0);b.disable()}},afterViewRender:function(){var a=this,b=a.view;b.on({scope:a,groupclick:a.onGroupClick});if(a.enableGroupingMenu){a.injectGroupingMenu()}a.pruneGroupedHeader();a.lastGrouper=a.getGridStore().getGrouper();if(a.disabled){a.disable()}},injectGroupingMenu:function(){var a=this,b=a.view.headerCt;b.showMenuBy=a.showMenuBy;b.getMenuItems=a.getMenuItems()},onColumnHideShow:function(l,m){var a=this,e=a.view,k=e.headerCt,i=k.getMenu(),c=i.activeHeader,f=i.down('#groupMenuItem'),g,h=a.grid.getVisibleColumnManager().getColumns().length,d,j,b;if(c&&f){g=c.groupable===!1||!c.dataIndex||a.view.headerCt.getVisibleGridColumns().length<2?'disable':'enable';f[g]()}if(e.rendered&&h){d=e.el.query('.'+a.ctCls);for(b=0,j=d.length;b','','
    {rowBody}
    ','','','{%','if(this.rowBody.bodyBefore) {','this.nextTpl.applyOut(values, out, parent);','}','%}',{priority:100,beginRowSync:function(a){a.add('rowBody',this.owner.eventSelector)},syncContent:function(e,d,f){var c=this.owner,b=Ext.fly(e).down(c.eventSelector,!0),a;if(b&&(a=Ext.fly(d).down(c.eventSelector,!0))){Ext.fly(b).syncContent(a)}}}],init:function(c){var a=this,b=a.view=c.getView();c.variableRowHeight=b.variableRowHeight=!0;b.rowBodyFeature=a;c.mon(b,{element:'el',click:a.onClick,scope:a});b.headerCt.on({columnschanged:a.onColumnsChanged,scope:a});b.addTpl(a.outerTpl).rowBody=a;b.addRowTpl(Ext.XTemplate.getTpl(this,'extraRowTpl')).rowBody=a;Ext.grid.feature.Feature.prototype.init.apply(this,arguments)},onClick:function(c){var b=this,a=c.getTarget(b.eventSelector);if(a&&Ext.fly(a=a.previousSibling||a.nextSibling).is(b.view.rowSelector)){c.target=a;b.view.handleEvent(c)}},getSelectedRow:function(c,b){var a=c.getNode(b);if(a){return Ext.fly(a).down(this.eventSelector)}return null},onColumnsChanged:function(c){var b=this.view.el.query(this.rowBodyTdSelector),d=c.getVisibleGridColumns().length,e=b.length,a;for(a=0;a{text} {linkHrefCls}{childElCls}" href="{href}" target="{hrefTarget}" hidefocus="true" unselectable="on" tabindex="{tabIndex}" {$}="{.}">{text}
    ',maskOnDisable:!1,iconAlign:'left',initComponent:function(){var a=this,b=a.cls?[a.cls]:[],c;if(a.hasOwnProperty('canActivate')){a.focusable=a.canActivate}if(a.plain){b.push('x-menu-item-plain')}if(b.length){a.cls=b.join(' ')}if(a.menu){c=a.menu;a.menu=null;a.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==!1&&!a.destroying&&!a.destroyed&&a.isVisible(!0)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.disabled){if(!a.plain){a.addCls(a.activeCls)}a.activated=!0;if(a.hasListeners.activate){a.fireEvent('activate',a)}}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(a.activated){if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=!1;if(a.hasListeners.deactivate){a.fireEvent('deactivate',a)}}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){for(var a=this.getRefOwner();a&&(a.isMenu&&a.floating||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},expandMenu:function(c,b){var a=this;if(a.activated&&a.menu){a.hideOnClick=!1;a.cancelDeferHide();b=b==null?a.menuExpandDelay:b;if(b===0){a.doExpandMenu(c)}else {a.cancelDeferExpand();a.expandMenuTimer=Ext.defer(a.doExpandMenu,b,a,[c])}}},doExpandMenu:function(c){var b=this,a=b.menu;if(!a.isVisible()){b.parentMenu.activeChild=a;a.ownerCmp=b;a.parentMenu=b.parentMenu;a.constrainTo=document.body;a.autoFocus=!c||!c.pointerType;a.showBy(b,b.menuAlign)}},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},getValue:function(){return this.value},hideMenu:function(b){var a=this;if(a.menu){a.cancelDeferExpand();a.hideMenuTimer=Ext.defer(a.doHideMenu,Ext.isNumber(b)?b:a.menuHideDelay,a)}},onClick:function(b){var a=this,e=a.clickHideDelay,f=b.browserEvent,d,c;if(!a.href||a.disabled){b.stopEvent();if(a.disabled){return !1}}if(a.disabled||a.handlingClick){return}if(a.hideOnClick){if(!e){a.deferHideParentMenus()}else {a.deferHideParentMenusTimer=Ext.defer(a.deferHideParentMenus,e,a)}}d=a.fireEvent('click',a,b);if(a.destroyed){return}if(d!==!1&&a.handler){Ext.callback(a.handler,a.scope,[a,b],0,a)}if(Ext.isIE9m){c=f.returnValue===!1?!0:!1}else {c=!!f.defaultPrevented}if(a.href&&b.type!=='click'&&!c){a.handlingClick=!0;a.itemEl.dom.click();a.handlingClick=!1}if(!a.hideOnClick){a.focus()}return d},onRemoved:function(){var a=this;if(a.activated&&a.parentMenu.activeItem===a){a.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);a.parentMenu=a.ownerCmp=null},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;a.cancelDeferExpand();a.cancelDeferHide();clearTimeout(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.onDestroy.apply(this,arguments)},beforeRender:function(){var a=this,c=a.glyph,j=Ext._glyphFontFamily,b=!!(a.icon||a.iconCls||c),f=!!a.menu,i=a.iconAlign==='right'&&!f,e=a.isMenuCheckItem,d=[],k=a.ownerCt,g=k.plain,h;if(a.plain){a.ariaEl='el'}Ext.Component.prototype.beforeRender.call(this);if(b){if(f&&a.showCheckbox){b=!1}}if(typeof c==='string'){h=c.split('@');c=h[0];j=h[1]}if(!g||b&&!i||e){if(k.showSeparator&&!g){d.push(a.indentCls)}else {d.push(a.indentNoSeparatorCls)}}if(f){d.push(a.indentRightArrowCls)}else {if(b&&(i||e)){d.push(a.indentRightIconCls)}}Ext.applyIf(a.renderData,{hasHref:!!a.href,href:a.href||'#',hrefTarget:a.hrefTarget,icon:a.icon,iconCls:a.iconCls,glyph:c,glyphCls:c?'x-menu-item-glyph':undefined,glyphFontFamily:j,hasIcon:b,hasMenu:f,indent:!g||b||e,isCheckItem:e,rightIcon:i,plain:a.plain,text:a.text,arrowCls:a.arrowCls,baseIconCls:a.baseIconCls,textCls:a.textCls,indentCls:d.join(' '),linkCls:a.linkCls,linkHrefCls:a.linkHrefCls,groupCls:a.group?a.groupCls:'',tabIndex:a.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,!0)}},getMenu:function(){return this.menu||null},setMenu:function(b,f){var a=this,e=a.menu,h=a.arrowEl,d=a.ariaEl.dom,c,g;if(e){e.ownerCmp=e.parentMenu=null;if(f===!0||f!==!1&&a.destroyMenu){Ext.destroy(e)}if(d){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns')}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});delete c['aria-haspopup'];delete c['aria-owns']}}if(b){g=b.isMenu;b=a.menu=Ext.menu.Manager.get(b,{ownerCmp:a,focusOnToFront:!1});b.setOwnerCmp(a,g);if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {b=a.menu=null}if(b&&a.rendered&&!a.destroying&&h){h[b?'addCls':'removeCls'](a.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(a){var b=this.iconEl,c=this.icon;if(b){b.src=a||Ext.BLANK_IMAGE_URL}this.icon=a;this.fireEvent('iconchange',this,c,a)},setIconCls:function(b){var a=this,c=a.iconEl,d=a.iconCls;if(c){if(a.iconCls){c.removeCls(a.iconCls)}if(b){c.addCls(b)}}a.iconCls=b;a.fireEvent('iconchange',a,d,b)},setText:function(b){var a=this,d=a.textEl||a.el,c=a.text;a.text=b;if(a.rendered){d.setHtml(b||'');a.updateLayout()}a.fireEvent('textchange',a,c,b)},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},clearTip:function(){if(Ext.quickTipsActive&&Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.itemEl)}},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c){a.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.itemEl.id},b));a.tooltip=b}else {a.itemEl.dom.setAttribute(a.getTipAttr(),b)}}else {a.tooltip=b}return a},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)},getFocusEl:function(){return this.plain?this.el:this.itemEl}}},0,['menuitem'],['component','box','menuitem'],{'component':!0,'box':!0,'menuitem':!0},['widget.menuitem'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.menu,'Item',Ext.menu,'TextItem'],0);Ext.cmd.derive('Ext.menu.CheckItem',Ext.menu.Item,{checkedCls:'x-menu-item-checked',uncheckedCls:'x-menu-item-unchecked',groupCls:'x-menu-group-icon',hideOnClick:!1,checkChangeDisabled:!1,submenuText:'{0} submenu',ariaRole:'menuitemcheckbox',childEls:['checkEl'],showCheckbox:!0,isMenuCheckItem:!0,checkboxCls:'x-menu-item-checkbox',initComponent:function(){var a=this;a.checked=!!a.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==!1){a.hideOnClick=!0}}},beforeRender:function(){var a=this,b;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(a.renderData,{checkboxCls:a.checkboxCls,showCheckbox:a.showCheckbox});b=a.ariaRenderAttributes||(a.ariaRenderAttributes={});b['aria-checked']=a.menu?'mixed':a.checked;if(a.menu){b['aria-label']=Ext.String.formatEncode(a.submenuText,a.text)}},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.setChecked(!a.checked,!0);if(a.checkChangeDisabled){a.disableCheckChange()}if(Ext.isGecko&&a.checkEl){a.checkEl.on('mousedown',a.onMouseDownCheck)}},disableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.addCls(a.disabledCls)}if(Ext.isIE8&&a.rendered){a.el.repaint()}a.checkChangeDisabled=!0},enableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.removeCls(a.disabledCls)}a.checkChangeDisabled=!1},onMouseDownCheck:function(a){a.preventDefault()},onClick:function(b){var a=this;if(!(a.disabled||a.checkChangeDisabled||a.checked&&a.group||a.menu&&'touch'===b.pointerType&&!a.checkEl.contains(b.target))){a.setChecked(!a.checked);if(b.type==='keydown'&&a.menu){return !1}}Ext.menu.Item.prototype.onClick.call(this,b)},onDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.onDestroy.apply(this,arguments)},setText:function(c){var a=this,b=a.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,c);if(b&&a.menu){b.setAttribute('aria-label',Ext.String.formatEncode(a.submenuText,c))}},setChecked:function(b,d){var a=this,f=a.checkedCls,e=a.uncheckedCls,c=a.el,g=a.ariaEl.dom;if(a.checked!==b&&(d||a.fireEvent('beforecheckchange',a,b)!==!1)){if(c){if(b){c.addCls(f);c.removeCls(e)}else {c.addCls(e);c.removeCls(f)}}if(g){g.setAttribute('aria-checked',a.menu?'mixed':!!b)}a.checked=b;Ext.menu.Manager.onCheckChange(a,b);if(!d){Ext.callback(a.checkHandler,a.scope,[a,b],0,a);a.fireEvent('checkchange',a,b)}}}},0,['menucheckitem'],['component','box','menuitem','menucheckitem'],{'component':!0,'box':!0,'menuitem':!0,'menucheckitem':!0},['widget.menucheckitem'],0,[Ext.menu,'CheckItem'],0);Ext.cmd.derive('Ext.menu.Separator',Ext.menu.Item,{focusable:!1,canActivate:!1,hideOnClick:!1,plain:!0,separatorCls:'x-menu-item-separator',text:' ',ariaRole:'separator',beforeRender:function(){this.addCls(this.separatorCls);Ext.menu.Item.prototype.beforeRender.call(this)}},0,['menuseparator'],['component','box','menuitem','menuseparator'],{'component':!0,'box':!0,'menuitem':!0,'menuseparator':!0},['widget.menuseparator'],0,[Ext.menu,'Separator'],0);Ext.define('Ext.theme.neptune.menu.Separator',{override:'Ext.menu.Separator',border:!0});Ext.cmd.derive('Ext.menu.Menu',Ext.panel.Panel,{enableKeyNav:!0,allowOtherMenus:!1,ariaRole:'menu',floating:!0,constrain:!0,hidden:!0,hideMode:'visibility',ignoreParentClicks:!1,isMenu:!0,showSeparator:!0,minWidth:undefined,defaultMinWidth:120,defaultAlign:'tl-bl?',focusOnToFront:!1,bringParentToFront:!1,defaultFocus:':focusable',menuClickBuffer:0,baseCls:'x-menu',_iconSeparatorCls:'x-menu-icon-separator',_itemCmpCls:'x-menu-item-cmp',layout:{type:'vbox',align:'stretchmax',overflowHandler:'Scroller'},initComponent:function(){var a=this,d=['x-menu'],c=a.bodyCls?[a.bodyCls]:[],e=a.floating!==!1,b={element:'el',click:a.onClick,mouseover:a.onMouseOver,scope:a};if(Ext.supports.Touch){b.pointerdown=a.onMouseOver}a.on(b);a.on({beforeshow:a.onBeforeShow,scope:a});if(a.plain){d.push('x-menu-plain')}a.cls=d.join(' ');c.push('x-menu-body',Ext.dom.Element.unselectableCls);a.bodyCls=c.join(' ');if(e){if(a.minWidth===undefined){a.minWidth=a.defaultMinWidth}}else {a.hidden=!!a.initialConfig.hidden;a.constrain=!1}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(a.getLayout(),{configureItem:a.configureItem})},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);a.hidden=this.hidden;return a},beforeRender:function(){var a=this;Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!a.getSizeModel().width.shrinkWrap){a.layout.align='stretch'}if(a.floating){a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!!a.autoShow}},onBoxReady:function(){var a=this,c=a._iconSeparatorCls,b=a.focusableKeyNav;if(b){b.map.processEventScope=a;b.map.processEvent=function(a){if(a.keyCode===a.ESC){a.target=this.el.dom}return a};b.map.addBinding([{key:Ext.event.Event.ESC,handler:a.onEscapeKey,scope:a},{key:/[\w]/,handler:a.onShortcutKey,scope:a,shift:!1,ctrl:!1,alt:!1}])}else {a.escapeKeyNav=new Ext.util.KeyNav(a.el,{eventName:'keydown',scope:a,esc:a.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(a.showSeparator){a.iconSepEl=a.body.insertFirst({role:'presentation',cls:c+' '+c+'-'+a.ui,html:' '})}if(Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){a.el.on({scope:a,click:a.preventClick,translate:!1})}a.mouseMonitor=a.el.monitorMouseLeave(100,a.onMouseLeave,a)},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var b=this,a=b.lastFocusedChild;if(a){a.blur()}},getItemFromEvent:function(d){var c=this,b=c.layout.getRenderTarget().dom,a=d.getTarget();while(a.parentNode!==b){a=a.parentNode;if(!a){return}}return Ext.getCmp(a.id)},lookupComponent:function(a){var b=this;if(typeof a==='string'){a=b.lookupItemFromString(a)}else {if(Ext.isObject(a)){a=b.lookupItemFromObject(a)}}if(!a.dock){a.minWidth=a.minWidth||b.minWidth}return a},lookupItemFromObject:function(a){var b=this;if(!a.isComponent){if(!a.xtype){a=Ext.create('Ext.menu.'+(Ext.isBoolean(a.checked)?'Check':'')+'Item',a)}else {a=Ext.ComponentManager.create(a,a.xtype)}}if(a.isMenuItem){a.parentMenu=b}return a},lookupItemFromString:function(a){return a==='separator'||a==='-'?new Ext.menu.Separator():new Ext.menu.Item({canActivate:!1,hideOnClick:!1,plain:!0,text:a})},configureItem:function(a){var c=this.owner,f='x-',e=c.ui,b,d;if(a.isMenuItem){a.setUI(e)}else {if(c.items.getCount()>1&&!a.rendered&&!a.dock){d=c._itemCmpCls;b=[d+' '+d+'-'+e];if(!c.plain&&(a.indent!==!1||a.iconCls==='no-icon')){b.push(f+'menu-item-indent-'+e)}if(a.rendered){a.el.addCls(b)}else {a.cls=(a.cls||'')+' '+b.join(' ')}a.$extraMenuCls=b}}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.destroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(b){var c=this,f=b.type,a,d,e=f==='keydown';if(c.disabled){b.stopEvent();return}a=c.getItemFromEvent(b);if(a&&a.isMenuItem){if(!a.menu||!c.ignoreParentClicks){d=a.onClick(b)}else {b.stopEvent()}if(a.menu&&d!==!1&&e){a.expandMenu(b,0)}}if(!a||a.disabled){a=undefined}c.fireEvent('click',c,a,b)},onDestroy:function(){var a=this;if(a.escapeKeyNav){a.escapeKeyNav.destroy()}a.parentMenu=a.ownerCmp=a.escapeKeyNav=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.menu.Manager.onHide(a);Ext.panel.Panel.prototype.onDestroy.apply(this,arguments)},onMouseLeave:function(a){if(this.disabled){return}this.fireEvent('mouseleave',this,a)},onMouseOver:function(c){var a=this,g=c.getRelatedTarget(),e=!a.el.contains(g),b=a.getItemFromEvent(c),d=a.parentMenu,f=a.ownerCmp;if(e&&d){d.setActiveItem(f);f.cancelDeferHide();d.mouseMonitor.mouseenter()}if(a.disabled){return}if(b){if(!b.containsFocus){b.focus()}if(b.expandMenu){b.expandMenu(c)}}if(e){a.fireEvent('mouseenter',a,c)}a.fireEvent('mouseover',a,b,c)},setActiveItem:function(a){var b=this;if(a&&a!==b.lastFocusedChild){b.focusChild(a,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(h,g){var e=String.fromCharCode(g.getCharCode()),c=this.query('>[text]'),f=c.length,a=this.lastFocusedChild,d=Ext.Array.indexOf(c,a),b=d;for(;;){if(++b===f){b=0}a=c[b];if(b===d){return}if(a.text&&a.text[0].toUpperCase()===e){a.focus();return}}},onFocusableContainerTabKey:function(a){if(this.floating){this.hide()}},onFocusableContainerEnterKey:function(a){this.onClick(a)},onFocusableContainerSpaceKey:function(a){this.onClick(a)},onFocusableContainerLeftKey:function(a){a.preventDefault();if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(b){var c=this,a=c.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)tablepanel:not(hidden)>tableview');if(a){a.focus()}},focusRow:function(c){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;b.focusRow(c)},focusCell:function(a){a.view.focusCell(a)},onRowFocus:function(){this.relayFn('onRowFocus',arguments)},isVisible:function(a){return this.ownerGrid.isVisible(a)},getFocusEl:function(){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;return b.getFocusEl()},getCellInclusive:function(a,c){var d=a.column,b=this.lockedGrid.getColumnManager().getColumns().length;if(d>=b){a=Ext.apply({},a);a.column-=b;return this.normalView.getCellInclusive(a,c)}else {return this.lockedView.getCellInclusive(a,c)}},getHeaderByCell:function(a){if(a){return this.getVisibleColumnManager().getHeaderById(a.getAttribute('data-columnId'))}return !1},onRowSelect:function(){this.relayFn('onRowSelect',arguments)},onRowDeselect:function(){this.relayFn('onRowDeselect',arguments)},onCellSelect:function(a){a.column.getView().onCellSelect({record:a.record,column:a.column})},onCellDeselect:function(a){a.column.getView().onCellDeselect({record:a.record,column:a.column})},getCellByPosition:function(a,c){var e=this,b=a.view,d=a.column;if(b===e){a=(new Ext.grid.CellContext(d.getView())).setPosition(a.record,a.column)}return b.getCellByPosition(a,c)},getRecord:function(b){var a=this.lockedView.getRecord(b);if(!a){a=this.normalView.getRecord(b)}return a},scrollBy:function(){var a=this.normalView;a.scrollBy.apply(a,arguments)},ensureVisible:function(){var a=this.normalView;a.ensureVisible.apply(a,arguments)},disable:function(){this.relayFn('disable',arguments)},enable:function(){this.relayFn('enable',arguments)},addElListener:function(){this.relayFn('addElListener',arguments)},refreshNode:function(){this.relayFn('refreshNode',arguments)},addRowCls:function(){this.relayFn('addRowCls',arguments)},removeRowCls:function(){this.relayFn('removeRowCls',arguments)},destroy:function(){var a=this;a.rendered=!1;a.bindStore(null,!1,'dataSource');Ext.destroy(a.lockedViewEventRelayers,a.normalViewEventRelayers);a.lockedViewEventRelayers=a.normalViewEventRelayers=null;a.callParent();Ext.destroy(a.loadMask,a.navigationModel,a.selModel);a.lockedView.lockingPartner=a.normalView.lockingPartner=null;a.lockedGrid=a.lockedView=a.normalGrid=a.normalView=null;a.loadMask=a.navigationModel=a.selModel=a.headerCt=null;a.ownerGrid=a.storeListeners=null}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable]],[Ext.grid.locking,'View',Ext.grid,'LockingView'],function(){this.borrow(Ext.Component,['up']);this.borrow(Ext.view.AbstractView,['doFirstRefresh','applyFirstRefresh']);this.borrow(Ext.view.Table,['cellSelector','selectedCellCls','selectedItemCls'])});Ext.cmd.derive('Ext.grid.locking.Lockable',Ext.Base,{alternateClassName:'Ext.grid.Lockable',syncRowHeight:!0,headerCounter:0,scrollDelta:40,lockedGridCls:'x-grid-inner-locked',normalGridCls:'x-grid-inner-normal',lockingBodyCls:'x-grid-locking-body',unlockText:'Unlock',lockText:'Lock',bothCfgCopy:['hideHeaders','enableColumnHide','enableColumnMove','enableColumnResize','sortableColumns','multiColumnSort','columnLines','rowLines','variableRowHeight','numFromEdge','trailingBufferZone','leadingBufferZone','scrollToLoadBuffer','syncRowHeight'],normalCfgCopy:['scroll'],lockedCfgCopy:[],determineXTypeToCreate:function(g){var f=this,a,b,d,e,c;if(f.subGridXType){a=f.subGridXType}else {if(!g){return 'gridpanel'}b=this.getXTypes().split('/');d=b.length;e=b[d-1];c=b[d-2];if(c!=='tablepanel'){a=c}else {a=e}}return a},injectLockable:function(){this.focusable=!1;this.lockable=!0;this.hasView=!0;var a=this,q=Ext.getScrollbarSize(),l=q.width,o=a.store=Ext.StoreManager.lookup(a.store),d=a.lockedViewConfig,g=a.normalViewConfig,s=Ext.Object,m,i,b,c,e,n,f,h,j=a.viewConfig,r=j&&j.loadMask,u=r!==undefined?r:a.loadMask,p=a.bufferedRenderer,k=l>0&&Ext.supports.touchScroll!==2,t=a.getInherited().rtl;m=a.constructLockableFeatures();a.features=null;i=a.constructLockablePlugins();a.plugins=i.topPlugins;b={id:a.id+'-locked',$initParent:a,isLocked:!0,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(!0),store:o,reserveScrollbar:k,scrollable:{indicators:{x:!0,y:!1}},scrollerOwner:!1,animate:!1,border:!1,cls:a.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.normalGrid.floatedFromCollapse},features:m.lockedFeatures,plugins:i.lockedPlugins};c={id:a.id+'-normal',$initParent:a,isLocked:!1,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(),store:o,reserveScrollbar:a.reserveScrollbar,scrollerOwner:!1,border:!1,cls:a.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.lockedGrid.floatedFromCollapse},features:m.normalFeatures,plugins:i.normalPlugins};a.addCls('x-grid-locked');Ext.copy(c,a,a.bothCfgCopy,!0);Ext.copy(b,a,a.bothCfgCopy,!0);Ext.copy(c,a,a.normalCfgCopy,!0);Ext.copy(b,a,a.lockedCfgCopy,!0);Ext.apply(c,a.normalGridConfig);Ext.apply(b,a.lockedGridConfig);for(e=0;e>#normalHeaderCt',items:e},j={itemId:'normalHeaderCt',stretchMaxPartner:'^^>>#lockedHeaderCt',items:f},l={locked:i,normal:j},g;if(Ext.isObject(b)){Ext.applyIf(i,b);Ext.applyIf(j,b);g=Ext.apply({},b);delete g.items;Ext.apply(c,g);b=b.items}c.constructing=!0;for(d=0,k=b.length;d0&&f){h.stopEvent();a+=e;d.setScrollY(a);b.normalGrid.getView().setScrollY(a);b.onNormalViewScroll()}}},onLockedViewScroll:function(){var f=this,e=f.lockedGrid.getView(),a=f.normalGrid.getView(),c=e.getScrollY(),g=a.getScrollY(),b,d;if(g!==c){a.setScrollY(c);if(a.bufferedRenderer){d=e.body.dom;b=a.body.dom;b.style.position='absolute';b.style.top=d.style.top}}},onNormalViewScroll:function(){var e=this,b=e.lockedGrid.getView(),c=e.normalGrid.getView(),f=b.getScrollY(),d=c.getScrollY(),a;if(d!==f){b.setScrollY(d);if(c.bufferedRenderer){a=b.body;if(a.dom){a.dom.style.position='absolute';a.translate(null,c.bufferedRenderer.bodyTop)}}}},syncRowHeights:function(){if(!this.destroyed){var f=this,b=f.normalGrid.getView(),a=f.lockedGrid.getView(),d=b.syncRowHeightBegin(),c=a.syncRowHeightBegin(),e;b.syncRowHeightMeasure(d);a.syncRowHeightMeasure(c);b.syncRowHeightFinish(d,c);a.syncRowHeightFinish(c,d);e=b.getScrollY();a.setScrollY(e)}},modifyHeaderCt:function(){var a=this;a.lockedGrid.headerCt.getMenuItems=a.getMenuItems(a.lockedGrid.headerCt.getMenuItems,!0);a.normalGrid.headerCt.getMenuItems=a.getMenuItems(a.normalGrid.headerCt.getMenuItems,!1);a.lockedGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.lockedGrid.headerCt.showMenuBy,a.showMenuBy);a.normalGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.normalGrid.headerCt.showMenuBy,a.showMenuBy)},onUnlockMenuClick:function(){this.unlock()},onLockMenuClick:function(){this.lock()},showMenuBy:function(f,g,c){var d=this.getMenu(),a=d.down('#unlockItem'),b=d.down('#lockItem'),e=a.prev();if(c.lockable===!1){e.hide();a.hide();b.hide()}else {e.show();a.show();b.show();if(!a.initialConfig.disabled){a.setDisabled(c.lockable===!1)}if(!b.initialConfig.disabled){b.setDisabled(!c.isLockable())}}},getMenuItems:function(d,b){var a=this,f=a.unlockText,h=a.lockText,g='x-hmenu-unlock',i='x-hmenu-lock',c=a.onUnlockMenuClick.bind(a),e=a.onLockMenuClick.bind(a);return function(){var a=d.call(this);a.push('-',{itemId:'unlockItem',iconCls:g,text:f,handler:c,disabled:!b});a.push({itemId:'lockItem',iconCls:i,text:h,handler:e,disabled:b});return a}},delaySyncLockedWidth:function(){var a=this,b=a.syncLockedWidthTask;if(!a.view.all.getCount()){return}if(!b){b=a.syncLockedWidthTask=new Ext.util.DelayedTask(a.syncLockedWidth,a)}b.delay(1)},syncLockedWidth:function(){var b=this,c=b.rendered,a=b.lockedGrid,g=a.view,d=b.normalGrid,e=a.getVisibleColumnManager().getColumns().length,f=d.getVisibleColumnManager().getColumns().length,h=b.syncLockedWidthTask;if(h){h.cancel()}Ext.suspendLayouts();if(f){d.show();if(e){if(c&&a.shrinkWrapColumns&&!a.headerCt.forceFit){delete a.flex;a.setWidth(a.headerCt.getTableWidth()+a.gridPanelBorderWidth)}a.addCls(b.lockedGridCls);a.show();if(a.split){b.child('splitter').show();b.addCls('x-grid-locked-split')}}else {if(c){a.getView().clearViewEl(!0)}a.hide();if(a.split){b.child('splitter').hide();b.removeCls('x-grid-locked-split')}}if(Ext.supports.touchScroll!==2&&Ext.Component.pendingLayouts){g.getScrollable().setX(!0)}if(c){b.ignoreMousewheel=g.scrollFlags.y}}else {d.hide();a.flex=1;delete a.width;a.removeCls(b.lockedGridCls);a.show();b.ignoreMousewheel=!0}Ext.resumeLayouts(!0);return [e,f]},onLockedHeaderSortChange:Ext.emptyFn,onNormalHeaderSortChange:Ext.emptyFn,lock:function(a,l,g){var e=this,i=e.normalGrid,b=e.lockedGrid,d=i.view,c=b.view,m=i.headerCt,h,k,j,f;a=a||m.getMenu().activeHeader;j=a.hasFocus;g=g||b.headerCt;k=a.ownerCt;if(!a.isLockable()){return}if(a.flex&&b.shrinkWrapColumns){a.width=a.getWidth();a.flex=null}Ext.suspendLayouts();if(b.hidden){if(!b.componentLayoutCounter){if(c.bufferedRenderer){c.bufferedRenderer.onViewResize(c,0,d.getHeight())}f=d.getScrollY()}b.show()}d.blockRefresh=c.blockRefresh=!0;a.ownerCmp=a.ownerCt;k.remove(a,!1);a.locked=!0;if(Ext.isDefined(l)){g.insert(l,a)}else {g.add(a)}d.blockRefresh=c.blockRefresh=!1;a.ownerCmp=null;h=e.syncLockedWidth();if(h[0]){b.getView().refreshView()}if(h[1]){i.getView().refreshView()}e.fireEvent('lockcolumn',e,a);Ext.resumeLayouts(!0);if(f){c.setScrollY(f);d.setScrollY(f)}if(j){a.focus()}},unlock:function(a,f,g){var b=this,e=b.normalGrid,d=b.lockedGrid,i=e.view,h=d.view,k=d.headerCt,c,j;if(!Ext.isDefined(f)){f=0}a=a||k.getMenu().activeHeader;j=a.hasFocus;g=g||e.headerCt;Ext.suspendLayouts();i.blockRefresh=h.blockRefresh=!0;a.ownerCmp=a.ownerCt;a.ownerCt.remove(a,!1);a.locked=!1;g.insert(f,a);i.blockRefresh=h.blockRefresh=!1;a.ownerCmp=null;c=b.syncLockedWidth();if(c[0]){d.getView().refreshView()}if(c[1]){e.getView().refreshView()}b.fireEvent('unlockcolumn',b,a);Ext.resumeLayouts(!0);if(j){a.focus()}},reconfigureLockable:function(a,f){var d=this,h=d.store,c=d.lockedGrid,e=d.normalGrid,b,g;if(a&&a!==h){a=Ext.data.StoreManager.lookup(a);d.store=a;c.view.blockRefresh=e.view.blockRefresh=!0;c.bindStore(a);b=c.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}e.bindStore(a);b=e.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}d.view.store=a;g=d.view.loadMask;if(g&&g.isLoadMask){g.bindStore(a)}d.view.bindStore(e.view.dataSource,!1,'dataSource');c.view.blockRefresh=e.view.blockRefresh=!1}if(f){c.reconfiguring=e.reconfiguring=!0;c.headerCt.removeAll();e.headerCt.removeAll();f=d.processColumns(f,c);c.headerCt.add(f.locked.items);e.headerCt.add(f.normal.items);c.reconfiguring=e.reconfiguring=!1;d.syncLockedWidth()}d.refreshCounter=c.view.refreshCounter},afterReconfigureLockable:function(){var a=this.lockedGrid.getView();if(this.refreshCounter===a.refreshCounter){this.view.refresh()}},constructLockableFeatures:function(){var b=this.features,a,e,c,d,f=0,g;if(b){if(!Ext.isArray(b)){b=[b]}c=[];d=[];g=b.length;for(;f0){a.onViewResize(b,null,e);if(c&&d.getCount()!==c.length){c.length=0;c.push.apply(c,a.store.getRange(d.startIndex,d.endIndex))}}}},beforeTableLayout:function(b){var a=this.view.body.dom;if(a){b.bodyHeight=a.offsetHeight;b.bodyWidth=a.offsetWidth}},afterTableLayout:function(d){var a=this,b=a.view,c;if(d.bodyHeight&&b.body.dom){delete a.rowHeight;a.refreshSize();c=b.body.dom.offsetHeight;if(c!==d.bodyHeight){a.onViewResize(b,null,b.el.lastBox.height);if(c=a.store.getCount()){a.setBodyTop(0)}else {if(a.bodyTop>a.scrollTop||a.bodyTop+cb){a.position=a.scrollTop=Math.max(b-a.bodyHeight,0);c.setScrollY(a.scrollTop)}if(a.bodyTop>b){c.body.translate(null,a.bodyTop=a.position)}if(c.getScrollable()){a.refreshScroller(c,b)}},refreshScroller:function(b,c){var a=b.getScrollable();if(a){if(a.setElementSize){a.setElementSize()}a.setSize({x:b.headerCt.getTableWidth(),y:c})}},setViewSize:function(c,o){var a=this,h=a.store,g=a.view,d=g.all,j=d.getCount(),e,f,b=a.view.lockingPartner&&a.view.lockingPartner.bufferedRenderer,i=j-c,n,m,l,k;if(b&&!o&&b.view.componentLayoutCounter){if(b.viewSize>c){c=b.viewSize}else {b.setViewSize(c,!0)}}i=j-c;if(i){a.scrollTop=g.getScrollY();a.viewSize=c;if(h.isBufferedStore){h.setViewSize(c)}if(j){k=h.getCount();e=d.startIndex;f=Math.min(e+c-1,k-1);if(e===d.startIndex&&f===d.endIndex){if(i<0){a.handleViewScroll(-1)}}else {if(b){b.disable()}if(i<0){if(k>j){h.getRange(d.endIndex+1,f,{callback:function(b,d){l=g.doAdd(b,d);g.fireEvent('itemadd',b,d,l);a.setBodyTop(a.bodyTop)}})}else {a.refreshView(0)}}else {e=d.endIndex-(i-1);f=d.endIndex;m=d.slice(e,f+1);d.removeRange(e,f,!0);if(g.hasListeners.itemremove){n=h.getRange(e,f);g.fireEvent('itemremove',n,e,m)}a.setBodyTop(a.bodyTop)}if(b){b.enable()}}}}return c},getViewRange:function(){var d=this,c=d.view.all,a=d.store,b=0;if(c.getCount()){b=c.startIndex}else {if(a.isBufferedStore){if(!a.currentPage){a.currentPage=1}b=c.startIndex=(a.currentPage-1)*(a.pageSize||1);a.currentPage=1}}if(a.data.getCount()){return a.getRange(b,b+(d.viewSize||a.defaultViewSize)-1)}else {return []}},onReplace:function(l,d,j,k){var a=this,c=a.view,b=c.all,i,g=b.getCount(),h=d+j.length-1,e=k.length-j.length,f=e*a.rowHeight;if(d>=b.startIndex+a.viewSize){a.refreshSize();return}if(g&&h=a.viewSize){b.moveBlock(e);a.refreshSize();i=b.startIndex;if(e>0){a.doNotMirror=!0;a.handleViewScroll(-1);a.doNotMirror=!1}if(b.startIndex===i){if(b.startIndex){a.setBodyTop(a.bodyTop+=f);c.suspendEvent('scroll');c.scrollBy(0,f);c.resumeEvent('scroll');a.position=a.scrollTop=c.getScrollY()}}else {c.suspendEvent('scroll');c.scrollBy(0,(i-b.startIndex)*a.rowHeight);c.resumeEvent('scroll')}c.refreshSize(b.getCount()!==g);return}if(g&&d>b.endIndex){a.refreshSize();if(e>0){a.onRangeFetched(null,b.startIndex,Math.min(l.getCount(),b.startIndex+a.viewSize)-1,null,!0)}c.refreshSize(b.getCount()!==g);return}if(d0?1:-1;if(Math.abs(c)>=20||b!==a.lastScrollDirection){a.lastScrollDirection=b;a.handleViewScroll(a.lastScrollDirection)}}},onViewScrollEnd:function(){if(this.needsPointerEventsFix){this.view.body.dom.style.pointerEvents=''}},handleViewScroll:function(h){var a=this,d=a.view.all,g=a.store,f=a.viewSize,e=g.getCount()-1,b,c;if(h===-1){if(d.startIndex){if(a.topOfViewCloseToEdge()){b=Math.max(0,a.getLastVisibleRowIndex()+a.trailingBufferZone-f)}}}else {if(d.endIndexa.scrollTop-a.numFromEdge*a.rowHeight}else {return a.getFirstVisibleRowIndex()-a.view.all.startIndexd){a=c-d+1}}}if(a===0&&c===0&&e===0){b.doRefreshView([],0,0)}else {g.getRange(a,c,{callback:b.doRefreshView,scope:b})}},doRefreshView:function(i,h,p,q){var a=this,b=a.view,c=b.all,l=c.startIndex,m=c.endIndex,e,f,n=c.getCount(),o,k=h!==c.startIndex,g,d,j;if(b.refreshCounter){if(b.hasListeners.beforerefresh&&b.fireEvent('beforerefresh',b)===!1){return}b.refreshing=a.refreshing=!0;j=b.saveFocusState();b.clearViewEl(!0);b.refreshCounter++;if(i.length){o=b.doAdd(i,h);if(k){e=c.item(l,!0);f=c.item(m,!0);if(e){d=-e.offsetTop}else {if(f){d=c.last(!0).offsetTop-f.offsetTop}}if(d){a.bodyTop=Math.max(a.bodyTop+d,0);a.scrollTop=a.bodyTop?a.scrollTop+d:0}else {a.bodyTop=g=h*a.rowHeight;a.scrollTop=Math.max(g-a.rowHeight*(gc.endIndex){r=c.startIndex-e;b.clearViewEl(!0);g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g);for(o=0;oc.endIndex||jp){d=a.scrollTop-a.rowHeight*p}}b.clearViewEl(!0);a.teleported=!1}if(!c.getCount()){g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g)}else {if(j>c.endIndex){l=Math.max(e-c.startIndex,0);if(k){i=c.item(c.startIndex+l,!0).offsetTop}g=c.scroll(Ext.Array.slice(h,c.endIndex+1-e),1,l);if(k){d=a.bodyTop+i}else {d=m}}else {l=Math.max(c.endIndex-j,0);u=c.startIndex;g=c.scroll(Ext.Array.slice(h,0,c.startIndex-e),-1,l);if(k){d=a.bodyTop-c.item(u,!0).offsetTop;if(!c.startIndex){if(d){b.setScrollY(a.position=a.scrollTop-=d);d=0}}else {if(d<0){i=c.startIndex*a.rowHeight;b.setScrollY(a.position=a.scrollTop+=i);d=a.bodyTop+i}}}else {d=m}}}a.position=a.scrollTop}if(t&&!v.contains(q)){n=b.actionableMode?b.actionPosition:b.lastFocused;if(n&&n.column){b.onFocusLeave({});n.column.focus()}}d=Math.max(Math.floor(d),0);if(b.positionBody){a.setBodyTop(d)}if(g&&f&&!f.disabled){f.scrollTop=f.position=a.scrollTop;if(f.view.ownerCt.isVisible()){s=f.onRangeFetched(null,e,j,x,!0);if(b.ownerGrid.syncRowHeight||f.variableRowHeight!==k){a.syncRowHeights(g,s);a.bodyHeight=b.body.dom.offsetHeight}}if(f.bodyTop!==d){f.setBodyTop(d)}f.view.setScrollY(a.scrollTop)}return g},syncRowHeights:function(b,e){var d=this,c=0,f=1,i=[],h=[],j=Ext.grid.locking.RowSynchronizer,a,g;if(b&&e){c=b.length;f=e.length}if(c!==f){b=d.view.all.slice();e=d.view.lockingPartner.all.slice();c=f=b.length}for(a=0;ae||i+a.bodyHeightc||j+a.bodyHeightc){return a.getLastVisibleRowIndex(f,b-1,e,c)}k=i+l[b].offsetHeight;if(k>=c){return b}else {if(b!==d){return a.getLastVisibleRowIndex(b+1,d,e,c)}}}return a.getFirstVisibleRowIndex()+Math.ceil(h/a.rowHeight)},getScrollHeight:function(){var a=this,j=a.view,d=j.all,i=a.store,c=i.getCount(),g=d.getCount(),h,f,e,b;if(!c){return 0}if(!a.hasOwnProperty('rowHeight')){if(g){if(a.variableRowHeight){a.rowHeight=Math.floor(a.bodyHeight/g)}else {h=d.first();f=h.getHeight();if(Ext.isIE8){e=h.getBorderWidth('b');if(e>0){f-=e}}a.rowHeight=f}}else {delete a.rowHeight}}if(a.variableRowHeight){if(d.endIndex===c-1){b=a.bodyTop+a.bodyHeight-1}else {b=Math.floor((c-g)*a.rowHeight)+a.bodyHeight;b+=a.bodyTop-d.startIndex*a.rowHeight}}else {b=Math.floor(c*a.rowHeight)}return a.scrollHeight=b},attemptLoad:function(b,c){var a=this;if(a.scrollToLoadBuffer){if(!a.loadTask){a.loadTask=new Ext.util.DelayedTask(a.doAttemptLoad,a,[])}a.loadTask.delay(a.scrollToLoadBuffer,a.doAttemptLoad,a,[b,c])}else {a.doAttemptLoad(b,c)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(b,c){var a=this;if(!a.destroyed){a.store.getRange(b,c,{loadId:++a.loadId,callback:function(e,f,g,d){if(d.loadId===a.loadId){a.onRangeFetched(e,f,g,d)}},fireEvent:!1})}},destroy:function(){var a=this,b=a.view;a.cancelLoad();if(b&&b.el){b.un('scroll',a.onViewScroll,a)}if(a.store){a.unbindStore()}a.viewListeners=a.gridListeners=a.view=a.grid=Ext.destroy(a.viewListeners,a.stretcher,a.gridListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,['plugin.bufferedrenderer'],0,[Ext.grid.plugin,'BufferedRenderer'],function(a){if(Ext.supports.Touch){a.prototype.leadingBufferZone=a.prototype.trailingBufferZone=2;a.prototype.numFromEdge=1}});Ext.cmd.derive('Ext.grid.plugin.Editing',Ext.plugin.Abstract,{clicksToEdit:2,triggerEvent:undefined,relayedEvents:['beforeedit','edit','validateedit','canceledit'],defaultFieldUI:'default',defaultFieldXType:'textfield',editStyle:'',constructor:function(b){var a=this;Ext.plugin.Abstract.prototype.constructor.call(this,b);a.mixins.observable.constructor.call(a);a.on('edit',function(c,d){a.fireEvent('afteredit',c,d)})},init:function(b){var a=this,c=b.ownerLockable;a.grid=b;a.view=b.view;a.initEvents();if(b.rendered){a.setup()}else {a.mon(b,{beforereconfigure:a.onBeforeReconfigure,reconfigure:a.onReconfigure,scope:a,beforerender:{fn:a.onBeforeRender,single:!0,scope:a}})}b.editorEventRelayers=b.relayEvents(a,a.relayedEvents);if(c){c.editorEventRelayers=c.relayEvents(a,a.relayedEvents)}b.isEditable=!0;b.editingPlugin=b.view.editingPlugin=a},onBeforeReconfigure:function(){this.reconfiguring=!0},onReconfigure:function(){this.setup();delete this.reconfiguring},onBeforeRender:function(){this.setup()},setup:function(){this.initFieldAccessors(this.grid.getTopLevelColumnManager().getColumns())},destroy:function(){var b=this,a=b.grid;Ext.destroy(b.keyNav);b.clearListeners();if(a){if(a.ownerLockable){Ext.destroy(a.ownerLockable.editorEventRelayers);a.ownerLockable.editorEventRelayers=null}Ext.destroy(a.editorEventRelayers);a.editorEventRelayers=null;a.editingPlugin=a.view.editingPlugin=b.grid=b.view=b.editor=b.keyNav=null}Ext.plugin.Abstract.prototype.destroy.call(this)},getEditStyle:function(){return this.editStyle},initFieldAccessors:function(a){if(a.isGroupHeader){a=a.getGridColumns()}else {if(!Ext.isArray(a)){a=[a]}}var d=this,c,h=a.length,e=function(c,b){return d.getColumnField(this,b)},f=function(){return d.hasColumnField(this)},g=function(b){d.setColumnField(this,b)},b;for(c=0;c[isFormField]'),j=g.length,b,a,c;for(b=0;b0);if(r){a.widthModel=a.heightModel=null;k=d.getSizeModel(b&&b.widthModel.pairsByHeightOrdinal[b.heightModel.ordinal]);if(j){a.sizeModel=k}a.widthModel=k.width;a.heightModel=k.height;if(b&&!a.isComponentChild){if(h.needsItemSize||!d.liquidLayout){b.remainingChildDimensions+=2}else {if(a.widthModel.calculated){++b.remainingChildDimensions}if(a.heightModel.calculated){++b.remainingChildDimensions}}}}else {if(c){a.recoverProp('x',c,e);a.recoverProp('y',c,e);if(a.widthModel.calculated){a.recoverProp('width',c,e)}else {if('width' in c){++m}}if(a.heightModel.calculated){a.recoverProp('height',c,e)}else {if('height' in c){++m}}if(b&&!a.isComponentChild){b.remainingChildDimensions+=m}}}if(c&&h&&h.manageMargins){a.recoverProp('margin-top',c,e);a.recoverProp('margin-right',c,e);a.recoverProp('margin-bottom',c,e);a.recoverProp('margin-left',c,e)}if(i){f=i.heightModel;g=i.widthModel;if(g&&f&&p&&o){if(p.shrinkWrap&&o.shrinkWrap){if(g.constrainedMax&&f.constrainedMin){f=null}}}if(g){a.widthModel=g}if(f){a.heightModel=f}if(i.state){Ext.apply(a.state,i.state)}}return s},initContinue:function(f){var b=this,a=b.ownerCtContext,g=b.target,c=b.widthModel,e=g.getInherited(),d;if(c.fixed){e.inShrinkWrapTable=!1}else {delete e.inShrinkWrapTable}if(f){if(a&&c.shrinkWrap){d=a.isBoxParent?a:a.boxParent;if(d){d.addBoxChild(b)}}else {if(c.natural){b.boxParent=a}}}return f},initDone:function(d){var a=this,b=a.props,c=a.state;if(a.remainingChildDimensions===0){b.containerChildrenSizeDone=!0}if(d){b.containerLayoutDone=!0}if(a.boxChildren&&a.boxChildren.length&&a.widthModel.shrinkWrap){a.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var a=this,b=a.target,c=a.ownerCtContext;if(c&&c.isTopLevel){a.animatePolicy=b.ownerLayout.getAnimatePolicy(a)}else {if(!c&&b.isCollapsingOrExpanding&&b.animCollapse){a.animatePolicy=b.componentLayout.getAnimatePolicy(a)}}if(a.animatePolicy){a.context.queueAnimation(a)}},addBlock:function(f,a,e){var b=this,d=b[f]||(b[f]={}),c=d[e]||(d[e]={});if(!c[a.id]){c[a.id]=a;++a.blockCount;++b.context.blockCount}},addBoxChild:function(a){var d=this,b,c=a.widthModel;a.boxParent=this;a.measuresBox=c.shrinkWrap?a.hasRawContent:c.natural;if(a.measuresBox){b=d.boxChildren;if(b){b.push(a)}else {d.boxChildren=[a]}}},addPositionStyles:function(b,c){var d=c.x,e=c.y,a=0;if(d!==undefined){b.left=d+'px';++a}if(e!==undefined){b.top=e+'px';++a}return a},addTrigger:function(c,e){var b=this,h=e?'domTriggers':'triggers',f=b[h]||(b[h]={}),g=b.context,a=g.currentLayout,d=f[c]||(f[c]={});if(!d[a.id]){d[a.id]=a;++a.triggerCount;d=g.triggers[e?'dom':'data'];(d[a.id]||(d[a.id]=[])).push({item:this,prop:c});if(b.props[c]!==undefined){if(!e||!(b.dirty&&c in b.dirty)){++a.firedTriggers}}}},boxChildMeasured:function(){var a=this,b=a.state,c=b.boxesMeasured=(b.boxesMeasured||0)+1;if(c===a.boxChildren.length){b.clearBoxWidth=1;++a.context.progressCount;a.markDirty()}},borderNames:['border-top-width','border-right-width','border-bottom-width','border-left-width'],marginNames:['margin-top','margin-right','margin-bottom','margin-left'],paddingNames:['padding-top','padding-right','padding-bottom','padding-left'],trblNames:['top','right','bottom','left'],cacheMissHandlers:{borderInfo:function(b){var a=b.getStyles(b.borderNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},marginInfo:function(b){var a=b.getStyles(b.marginNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},paddingInfo:function(b){var c=b.frameBodyContext||b,a=c.getStyles(b.paddingNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(c){var a=this[c],b;if(a){for(b in a){this.clearBlocks(c,b)}}},clearBlocks:function(g,f){var c=this[g],b=c&&c[f],d,a,e;if(b){delete c[f];d=this.context;for(e in b){a=b[e];--d.blockCount;if(!--a.blockCount&&!a.pending&&!a.done){d.queueLayout(a)}}}},block:function(b,a){this.addBlock('blocks',b,a)},domBlock:function(b,a){this.addBlock('domBlocks',b,a)},fireTriggers:function(g,e){var c=this[g],b=c&&c[e],f=this.context,a,d;if(b){for(d in b){a=b[d];++a.firedTriggers;if(!a.done&&!a.blockCount&&!a.pending){f.queueLayout(a)}}}},flush:function(){var a=this,d=a.dirty,b=a.state,c=a.el;a.dirtyCount=0;if('attributes' in a){c.set(a.attributes);delete a.attributes}if('innerHTML' in a){c.innerHTML=a.innerHTML;delete a.innerHTML}if(b&&b.clearBoxWidth){b.clearBoxWidth=0;a.el.setStyle('width',null);if(!--b.blocks){a.context.queueItemLayouts(a)}}if(d){delete a.dirty;a.writeProps(d,!0)}},flushAnimations:function(){var b=this,k=b.previousSize,a,h,l,f,d,g,e,m,c,j,i;if(k){a=b.target;h=a.getAnimationProps();l=h.duration;f=Ext.Object.getKeys(b.animatePolicy);d=Ext.apply({},{from:{},to:{},duration:l||Ext.fx.Anim.prototype.duration},h);for(g=0,e=0,m=f.length;e0},runLayout:function(a){var b=this,c=b.getCmp(a.owner);a.pending=!1;if(c.state.blocks){return}a.done=!0;++a.calcCount;++b.calcCount;a.calculate(c);if(a.done){b.layoutDone(a);if(a.completeLayout){b.queueCompletion(a)}if(a.finalizeLayout){b.queueFinalize(a)}}else {if(!a.pending&&!a.invalid&&!(a.blockCount+a.triggerCount-a.firedTriggers)){b.queueLayout(a)}}},setItemSize:function(a,g,f){var b=a,c=1,e,d;if(a.isComposite){b=a.elements;c=b.length;a=b[0]}else {if(!a.dom&&!a.el){c=b.length;a=b[0]}}for(d=0;da){a=d.weight}}},this);return a},getSplitterTarget:function(b){var a=b.collapseTarget;if(a&&a.collapsed){return a.placeholder||a}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},insertSplitter:function(a,f,e,d){var c=a.region,b=Ext.apply({xtype:'bordersplitter',collapseTarget:a,id:a.id+'-splitter',hidden:e,canResize:a.splitterResize!==!1,splitterFor:a,synthetic:!0},d),g=f+(c==='south'||c==='east'?0:1);if(a.collapseMode==='mini'){b.collapsedCls=a.collapsedCls}a.splitter=this.owner.add(g,b)},getMoveAfterIndex:function(b){var a=Ext.layout.container.Container.prototype.getMoveAfterIndex.apply(this,arguments);if(b.splitter){a++}return a},moveItemBefore:function(c,a){var b;if(a&&a.splitter){b=a.region;if(b==='south'||b==='east'){a=a.splitter}}return Ext.layout.container.Container.prototype.moveItemBefore.call(this,c,a)},onAdd:function(a,i){var b=this,d=a.placeholderFor,f=a.region,e,c,g,h;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(f){Ext.apply(a,b.regionFlags[f]);if(b.owner.isViewport){a.isViewportBorderChild=!0}if(a.initBorderRegion){a.initBorderRegion()}e=f==='center';if(e){b.centerRegion=a}else {c=a.split;g=!!a.hidden;if(typeof c==='object'){h=c;c=!0}if((a.isHorz||a.isVert)&&(c||a.collapseMode==='mini')){b.insertSplitter(a,i,g||!c,h)}}if(!e&&!a.hasOwnProperty('collapseMode')){a.collapseMode=b.panelCollapseMode}if(!a.hasOwnProperty('animCollapse')){if(a.collapseMode!=='placeholder'){a.animCollapse=!1}else {a.animCollapse=b.panelCollapseAnimate}}}else {if(d){Ext.apply(a,b.regionFlags[d.region]);a.region=d.region;a.weight=d.weight}}},onDestroy:function(){this.centerRegion=null;Ext.layout.container.Container.prototype.onDestroy.call(this)},onRemove:function(a,f){var d=this,h=a.region,e=a.splitter,c=d.owner,g=c.destroying,b;if(h){if(a.isCenter){d.centerRegion=null}delete a.isCenter;delete a.isHorz;delete a.isVert;if(e&&!c.destroying){c.doRemove(e,!0)}delete a.splitter}Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(!g&&!f&&a.rendered){b=a.getEl();if(b){b.setStyle('top','');b.setStyle(d.horzPositionProp,'')}}},regionMeta:{center:{splitterDelta:0},north:{splitterDelta:1},south:{splitterDelta:-1},west:{splitterDelta:1},east:{splitterDelta:-1}},regionFlags:{center:{isCenter:!0,isHorz:!1,isVert:!1},north:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'top'},south:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'bottom'},west:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'left'},east:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'right'}},setupSplitterNeighbors:function(l){var i={},m=l.length,k=this.touchedRegions,h,b,j,g,d,a,f,e,c;for(h=0;h{%this.renderBody(out, values)%}'],targetElCls:'x-center-target',beginLayout:function(b){var h=this,f=h.percentRe,e,g,d,c,a,j,i;Ext.layout.container.Fit.prototype.beginLayout.call(this,b);e=b.childItems;for(d=0,g=e.length;dm){a=m}}if(a-d<2){return null}c=new Ext.util.Region(v,t,s,u);i.constraintAdjusters[i.getCollapseDirection()](c,d,a,e);i.dragInfo={minRange:d,maxRange:a,targetSize:q};return c},constraintAdjusters:{left:function(a,c,b,d){a[0]=a.x=a.left=a.right+c;a.right+=b+d.getWidth()},top:function(a,c,b,d){a[1]=a.y=a.top=a.bottom+c;a.bottom+=b+d.getHeight()},bottom:function(a,c,b,d){a.bottom=a.top-c;a.top-=b+d.getHeight()},right:function(a,c,b,d){a.right=a.left-c;a[0]=a.x=a.left=a.x-b+d.getWidth()}},onBeforeStart:function(h){var c=this,f=c.splitter,d=f.collapseTarget,e=f.neighbors,g=e.length,a,b;if(d.collapsed){return !1}for(a=0;ad){a.minWidth=a.el.getWidth()*c}else {a.minHeight=a.el.getHeight()*d}}if(a.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)},a.throttle);a.resize=function(f,d,c){if(c){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)}else {e.apply(null,arguments)}}}},onBeforeStart:function(a){this.startBox=this.target.getBox()},getProxy:function(){var a=this;if(!a.dynamic&&!a.proxy){a.proxy=a.createProxy(a.target||a.el);a.hideProxy=!0}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(a){var b,c=this.proxyCls;if(a.isComponent){b=a.getProxy().addCls(c)}else {b=a.createProxy({tag:'div',role:'presentation',cls:c,id:a.id+'-rzproxy'},Ext.getBody())}b.removeCls('x-proxy-el');return b},onStart:function(a){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(c,b){var a=Ext.fly(b.parentNode);Ext.dd.DragTracker.prototype.onMouseDown.apply(this,arguments);if(a&&a.shim){a.maskIframes()}},onMouseUp:function(b){var a=Ext.fly(this.dragTarget.parentNode);Ext.dd.DragTracker.prototype.onMouseUp.apply(this,arguments);if(a&&a.shim){a.unmaskIframes()}},onDrag:function(a){if(this.dynamic||this.proxy){this.updateDimensions(a)}},updateDimensions:function(s,r){var c=this,h=c.activeResizeHandle.region,d=c.getOffset(c.constrainTo?'dragTarget':null),b=c.startBox,n,f=0,e=0,k,j,l=0,m=0,q,i,g,a,o,p;h=c.convertRegionName(h);switch(h){case 'south':e=d[1];g=2;break;case 'north':e=-d[1];m=-e;g=2;break;case 'east':f=d[0];g=1;break;case 'west':f=-d[0];l=-f;g=1;break;case 'northeast':e=-d[1];m=-e;f=d[0];i=[b.x,b.y+b.height];g=3;break;case 'southeast':e=d[1];f=d[0];i=[b.x,b.y];g=3;break;case 'southwest':f=-d[0];l=-f;e=d[1];i=[b.x+b.width,b.y];g=3;break;case 'northwest':e=-d[1];m=-e;f=-d[0];l=-f;i=[b.x+b.width,b.y+b.height];g=3;break;}a={width:b.width+f,height:b.height+e,x:b.x+l,y:b.y+m};k=Ext.Number.snap(a.width,c.widthIncrement);j=Ext.Number.snap(a.height,c.heightIncrement);if(k!==a.width||j!==a.height){switch(h){case 'northeast':a.y-=j-a.height;break;case 'north':a.y-=j-a.height;break;case 'southwest':a.x-=k-a.width;break;case 'west':a.x-=k-a.width;break;case 'northwest':a.x-=k-a.width;a.y-=j-a.height;}a.width=k;a.height=j}if(a.widthc.maxWidth){a.width=Ext.Number.constrain(a.width,c.minWidth,c.maxWidth);if(l){a.x=b.x+(b.width-a.width)}}else {c.lastX=a.x}if(a.heightc.maxHeight){a.height=Ext.Number.constrain(a.height,c.minHeight,c.maxHeight);if(m){a.y=b.y+(b.height-a.height)}}else {c.lastY=a.y}if(c.preserveRatio||s.shiftKey){n=c.startBox.width/c.startBox.height;o=Math.min(Math.max(c.minHeight,a.width/n),c.maxHeight);p=Math.min(Math.max(c.minWidth,a.height*n),c.maxWidth);if(g===1){a.height=o}else {if(g===2){a.width=p}else {q=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(q>n){a.height=o}else {a.width=p}if(h==='northeast'){a.y=b.y-(a.height-b.height)}else {if(h==='northwest'){a.y=b.y-(a.height-b.height);a.x=b.x-(a.width-b.width)}else {if(h==='southwest'){a.x=b.x-(a.width-b.width)}}}}}}c.setPosition=a.x!==c.startBox.x||a.y!==c.startBox.y;c.resize(a,r)},resize:function(b,e){var a=this,c,d=a.setPosition;if(a.dynamic||!a.dynamic&&e){if(d){a.target.setBox(b)}else {a.target.setSize(b.width,b.height)}}if(!e){c=a.getProxy();if(c&&c!==a.target){if(d||a.hideProxy){c.setBox(b)}else {c.setSize(b.width,b.height)}}}},onEnd:function(a){this.updateDimensions(a,!0);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,'ResizeTracker'],0);Ext.cmd.derive('Ext.resizer.Resizer',Ext.Base,{alternateClassName:'Ext.Resizable',handleCls:'x-resizable-handle',overCls:'x-resizable-handle-over',pinnedCls:'x-resizable-pinned',wrapCls:'x-resizable-wrap',wrappedCls:'x-resizable-wrapped',delimiterRe:/(?:\s*[,;]\s*)|\s+/,dynamic:!0,handles:'s e se',height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:!1,preserveRatio:!1,transparent:!1,possiblePositions:{n:'north',s:'south',e:'east',w:'west',se:'southeast',sw:'southwest',nw:'northwest',ne:'northeast'},ariaRole:'presentation',constructor:function(e){var a=this,d=a.handles,q=Ext.dom.Element.unselectableCls,h=[],b,k,i,m,p,c,f,n,l,g,o,j;if(Ext.isString(e)||Ext.isElement(e)||e.dom){b=e;e=arguments[1]||{};e.target=b}a.mixins.observable.constructor.call(a,e);b=a.target;if(b){if(b.isComponent){b.addClsWithUI('resizable');if(b.minWidth){a.minWidth=b.minWidth}if(b.minHeight){a.minHeight=b.minHeight}if(b.maxWidth){a.maxWidth=b.maxWidth}if(b.maxHeight){a.maxHeight=b.maxHeight}if(b.floating){if(!a.hasOwnProperty('handles')){a.handles='n ne e se s sw w nw'}}a.el=b.getEl()}else {b=a.el=a.target=Ext.get(b)}}else {b=a.target=a.el=Ext.get(a.el)}a.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(a.width)){a.width=Ext.Number.constrain(a.width,a.minWidth,a.maxWidth)}if(Ext.isNumber(a.height)){a.height=Ext.Number.constrain(a.height,a.minHeight,a.maxHeight)}if(a.width!==null||a.height!==null){a.target.setSize(a.width,a.height)}m=a.el.dom.tagName.toUpperCase();if(m==='TEXTAREA'||m==='IMG'||m==='TABLE'){a.originalTarget=a.target;g=b.isComponent?b.getEl():b;a.el.addCls(a.wrappedCls);a.target=a.el=a.el.wrap({role:'presentation',cls:a.wrapCls,id:a.el.id+'-rzwrap',style:g.getStyle(['margin-top','margin-bottom'])});o=g.getPositioning();a.el.setPositioning(o);g.clearPositioning();l=g.getBox();if(o.position!=='absolute'){l.x=0;l.y=0}a.el.setBox(l);g.setStyle('position','absolute');a.isTargetWrapped=!0}a.el.position();if(a.pinned){a.el.addCls(a.pinnedCls)}a.resizeTracker=new Ext.resizer.ResizeTracker({disabled:a.disabled,target:b,el:a.el,constrainTo:a.constrainTo,handleCls:a.handleCls,overCls:a.overCls,throttle:a.throttle,proxy:a.originalTarget?a.el:null,dynamic:a.originalTarget?!0:a.dynamic,originalTarget:a.originalTarget,delegate:'.'+a.handleCls,preserveRatio:a.preserveRatio,heightIncrement:a.heightIncrement,widthIncrement:a.widthIncrement,minHeight:a.minHeight,maxHeight:a.maxHeight,minWidth:a.minWidth,maxWidth:a.maxWidth});a.resizeTracker.on({mousedown:a.onBeforeResize,drag:a.onResize,dragend:a.onResizeEnd,scope:a});if(a.handles==='all'){a.handles='n s e w ne nw se sw'}d=a.handles=a.handles.split(a.delimiterRe);i=a.possiblePositions;p=d.length;k=a.handleCls+' '+a.handleCls+'-{0}';if(a.target.isComponent){j=a.target.baseCls;k+=' '+j+'-handle '+j+'-handle-{0}';if(Ext.supports.CSS3BorderRadius){k+=' '+j+'-handle-{0}-br'}}for(c=0;c')}}Ext.DomHelper.append(a.el,h.join(''));h.length=0;for(c=0;c-1){this.doSelect(a.record,!1,b)}},onCellDeselect:function(a,b){if(a&&a.rowIdx!==undefined){this.doDeselect(a.record,b)}},onSelectChange:function(g,f,e,h){var b=this,a,c,d;if(f){a=b.nextSelection;c='select'}else {a=b.selection;c='deselect'}d=a.view||b.primaryView;if((e||b.fireEvent('before'+c,b,g,a.rowIdx,a.colIdx))!==!1&&h()!==!1){if(f){d.onCellSelect(a)}else {d.onCellDeselect(a);delete b.selection}if(!e){b.fireEvent(c,b,g,a.rowIdx,a.colIdx)}}},refresh:function(){var b=this.getPosition(),a;if(b&&(a=this.store.indexOf(this.selected.last()))!==-1){b.rowIdx=a}},onColumnMove:function(b,d,c,e){var a=b.up('tablepanel');if(a){this.onViewRefresh(a.view)}},onUpdate:function(c){var a=this,b;if(a.isSelected(c)){b=a.selecting?a.nextSelection:a.selection;a.view.onCellSelect(b)}},onViewRefresh:function(d){var f=this,b=f.getPosition(),g,c=d.headerCt,e,a;if(b&&b.view===d){e=b.record;a=b.column;if(!a.isDescendantOf(c)){a=c.queryById(a.id)||c.down('[text="'+a.text+'"]')||c.down('[dataIndex="'+a.dataIndex+'"]')}if(b.record){if(a&&d.store.indexOfId(e.getId())!==-1){g=(new Ext.grid.CellContext(d)).setPosition({row:e,column:a});f.setPosition(g)}}else {f.selection=null}}},selectByPosition:function(b,a){this.setPosition(b,a)}},0,0,0,0,['selection.cellmodel'],0,[Ext.selection,'CellModel'],0);Ext.cmd.derive('Ext.selection.RowModel',Ext.selection.DataViewModel,{enableKeyNav:!0,isRowModel:!0,deselectOnContainerClick:!1,onUpdate:function(b){var d=this,a=d.view,c;if(a&&d.isSelected(b)){c=a.indexOf(b);a.onRowSelect(c);if(b===d.lastFocused){a.onRowFocus(c,!0)}}},onSelectChange:function(c,g,e,j){var a=this,i=a.views||[a.view],k=i.length,b=a.store.indexOf(c),h=g?'select':'deselect',f,d;if((e||a.fireEvent('before'+h,a,c,b))!==!1&&j()!==!1){for(f=0;f '},selectByPosition:function(a,b){if(!a.isCellContext){a=(new Ext.grid.CellContext(this.view)).setPosition(a.row,a.column)}if(!this.checkOnly||a.column===this.column){Ext.selection.RowModel.prototype.selectByPosition.call(this,a,b)}},onSelectChange:function(){Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(!this.suspendChange){this.updateHeaderState()}},onStoreLoad:function(){Ext.selection.RowModel.prototype.onStoreLoad.apply(this,arguments);this.updateHeaderState()},onStoreAdd:function(){Ext.selection.RowModel.prototype.onStoreAdd.apply(this,arguments);this.updateHeaderState()},onStoreRemove:function(){Ext.selection.RowModel.prototype.onStoreRemove.apply(this,arguments);this.updateHeaderState()},onStoreRefresh:function(){Ext.selection.RowModel.prototype.onStoreRefresh.apply(this,arguments);this.updateHeaderState()},maybeFireSelectionChange:function(a){if(a&&!this.suspendChange){this.updateHeaderState()}Ext.selection.RowModel.prototype.maybeFireSelectionChange.apply(this,arguments)},resumeChanges:function(){Ext.selection.RowModel.prototype.resumeChanges.call(this);if(!this.suspendChange){this.updateHeaderState()}},updateHeaderState:function(){var a=this,e=a.store,g=e.getCount(),h=a.views,c=!1,f=0,d,i,b;if(!e.isBufferedStore&&g>0){d=a.selected;c=!0;for(b=0,i=d.getCount();b','
    lineempty" role="presentation">
    ','','
    -end-plus {expanderCls}" role="presentation">
    ','','
    {checkboxCls}-checked">
    ','
    ','',' role="presentation" class="{childCls} {baseIconCls} {customIconCls} ','{baseIconCls}-leafparent-expandedparent {iconCls}" ','style="background-image:url({icon})"/>>','','{value}','','{value}',''],uiFields:{checked:1,icon:1,iconCls:1},rowFields:{expanded:1,loaded:1,expandable:1,leaf:1,loading:1,qtip:1,qtitle:1,cls:1},initComponent:function(){var a=this;a.rendererScope=a.scope;a.setupRenderer();a.innerRenderer=a.renderer;a.renderer=a.treeRenderer;Ext.grid.column.Column.prototype.initComponent.call(this);a.scope=a;a.hasCustomRenderer=a.innerRenderer&&a.innerRenderer.length>1},treeRenderer:function(i,a,c,g,f,h,j){var e=this,d=c.get('cls'),b;if(a&&d){a.tdCls+=' '+d}b=e.initTemplateRendererData(i,a,c,g,f,h,j);return e.getTpl('cellTpl').apply(b)},initTemplateRendererData:function(j,i,d,m,l,n,k){var a=this,f=a.innerRenderer,b=d.data,c=d.parentNode,g=k.rootVisible,h=[],e;while(c&&(g||c.data.depth>0)){e=c.data;h[g?e.depth:e.depth-1]=e.isLast?0:1;c=c.parentNode}return {record:d,baseIconCls:a.iconCls,customIconCls:b.icon||b.iconCls?a.customIconCls:'',iconCls:b.iconCls,icon:b.icon,checkboxCls:a.checkboxCls,checked:b.checked,elbowCls:a.elbowCls,expanderCls:a.expanderCls,textCls:a.textCls,leaf:b.leaf,expandable:d.isExpandable(),expanded:b.expanded,isLast:d.isLastVisible(),blankUrl:Ext.BLANK_IMAGE_URL,href:b.href,hrefTarget:b.hrefTarget,lines:h,metaData:i,childCls:a.getChildCls?a.getChildCls()+' ':'',value:f?f.apply(a.rendererScope,arguments):j}},shouldUpdateCell:function(f,a){var e=this,c=0,d,b;if(a){d=a.length;for(;c1;Ext.grid.NavigationModel.prototype.initKeyNav.call(this,e);for(b=0,d=a.keyNav.length;b1},onCellClick:function(f,e,c,d,g,b,a){Ext.grid.NavigationModel.prototype.onCellClick.call(this,f,e,c,d,g,b,a);return !a.nodeToggled},onKeyLeft:function(b){var c=this,d=b.view,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyLeft.call(this,b)}if(b.position.column.isTreeColumn&&a.isExpanded()){d.collapse(a)}else {a=a.parentNode;if(a&&!(a.isRoot()&&!d.rootVisible)){c.setPosition(a,null,b)}}},onKeyRight:function(b){var c=this,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyRight.call(this,b)}if(!a.isLeaf()){if(b.position.column.isTreeColumn&&!a.isExpanded()){b.view.expand(a)}else {if(a.isExpanded()){a=a.childNodes[0];if(a){c.setPosition(a)}}}}},onKeyEnter:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeyEnter.call(this,a)}},onKeySpace:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeySpace.call(this,a)}},toggleCheck:function(a){this.view.onCheckChange(a)},onAsterisk:function(a){this.view.ownerCt.expandAll()}},0,0,0,0,['view.navigation.tree'],0,[Ext.tree,'NavigationModel'],0);Ext.cmd.derive('Ext.tree.View',Ext.view.Table,{config:{selectionModel:{type:'treemodel'}},isTreeView:!0,loadingCls:'x-grid-tree-loading',expandedCls:'x-grid-tree-node-expanded',leafCls:'x-grid-tree-node-leaf',expanderSelector:'.x-tree-expander',checkboxSelector:'.x-tree-checkbox',expanderIconOverCls:'x-tree-expander-over',nodeAnimWrapCls:'x-tree-animator-wrap',ariaRole:'tree',loadMask:!1,rootVisible:!0,expandDuration:250,collapseDuration:250,toggleOnDblClick:!0,stripeRows:!1,treeRowTpl:['{%','this.processRowValues(values);','this.nextTpl.applyOut(values, out, parent);','%}',{priority:10,processRowValues:function(a){var b=a.record,c=a.view;a.rowAttr['data-qtip']=b.get('qtip')||'';a.rowAttr['data-qtitle']=b.get('qtitle')||'';if(b.isExpanded()){a.rowClasses.push(c.expandedCls)}if(b.isLeaf()){a.rowClasses.push(c.leafCls)}if(b.isLoading()){a.rowClasses.push(c.loadingCls)}}}],initComponent:function(){var a=this;if(a.bufferedRenderer){a.animate=!1}else {if(a.initialConfig.animate===undefined){a.animate=Ext.enableFx}}a.store=a.panel.getStore();a.onRootChange(a.store.getRoot());a.animQueue={};a.animWraps={};Ext.view.Table.prototype.initComponent.call(this);a.store.setRootVisible(a.rootVisible);a.addRowTpl(Ext.XTemplate.getTpl(a,'treeRowTpl'))},onFillComplete:function(f,d,b){var a=this,e=a.store,c=e.indexOf(b[0]);d.triggerUIUpdate();if(!b.length||c===-1){return}a.onAdd(a.store,b,c);a.refreshPartner()},refreshPartner:function(){var a=this.lockingPartner;if(a){a.refresh()}},afterComponentLayout:function(e,d,c,b){var a=this.getScrollable();Ext.view.Table.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&!this.bufferedRenderer){a.refresh()}},processUIEvent:function(a){if(a.getTarget('.'+this.nodeAnimWrapCls,this.el)){return !1}return Ext.view.Table.prototype.processUIEvent.call(this,a)},setRootNode:function(a){this.node=a},getChecked:function(){var a=[];this.node.cascadeBy(function(b){if(b.get('checked')){a.push(b)}});return a},isItemChecked:function(a){return a.get('checked')},createAnimWrap:function(b,e){var d=this,c=d.getNode(b),a;a=Ext.fly(c).insertSibling({role:'presentation',tag:'div',cls:d.nodeAnimWrapCls},'after');return {record:b,node:c,el:a,expanding:!1,collapsing:!1,animateEl:a,targetEl:a}},getAnimWrap:function(a,d){if(!this.animate){return null}var c=this.animWraps,b=c[a.internalId];if(d!==!1){while(!b&&a){a=a.parentNode;if(a){b=c[a.internalId]}}}return b},doAdd:function(h,c){var d=this,l=h[0],i=l.parentNode,m=d.all,e,a=d.getAnimWrap(i),g,f,k,j,b;if(!a||!a.expanding){return Ext.view.Table.prototype.doAdd.call(this,h,c)}j=d.bufferRender(h,c,!0);b=j.children;i=a.record;g=a.targetEl;f=g.dom.childNodes;k=f.length;e=c-d.indexInStore(i)-1;if(!k||e>=k){g.appendChild(j.fragment,!0)}else {Ext.fly(f[e]).insertSibling(b,'before',!0)}m.insert(c,b);return b},onRemove:function(h,c,b){var a=this,g,d,e=a.hasListeners.remove,f;if(a.viewReady){g=a.store.getCount()===0;if(a.bufferedRenderer){return Ext.view.Table.prototype.onRemove.call(this,h,c,b)}if(e){f=this.all.slice(b,b+c.length)}if(g){a.refresh()}else {for(d=c.length-1,b+=d;d>=0;--d,--b){a.doRemove(c[d],b)}a.refreshSizePending=!0}if(e){a.fireEvent('itemremove',c,b,f,a)}}},doRemove:function(c,b){var g=this,f=g.all,a=g.getAnimWrap(c),d=f.item(b),e=d?d.dom:null;if(!e||!a||!a.collapsing){return Ext.view.Table.prototype.doRemove.call(this,c,b)}a.targetEl.dom.insertBefore(e,a.targetEl.dom.firstChild);f.removeElement(b)},onBeforeExpand:function(c,d,e){var b=this,a;if(b.rendered&&b.all.getCount()&&b.animate){if(b.getNode(c)){a=b.getAnimWrap(c,!1);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c);a.animateEl.setHeight(0)}else {if(a.collapsing){a.targetEl.select(b.itemSelector).destroy()}}a.expanding=!0;a.collapsing=!1}}},onExpand:function(b){var a=this,h=a.animQueue,i=b.getId(),f=a.getNode(b),g=f?a.indexOf(f):-1,c,d,e;if(a.singleExpand){a.ensureSingleExpand(b)}if(g===-1){return}c=a.getAnimWrap(b,!1);if(!c){b.isExpandingOrCollapsing=!1;a.fireEvent('afteritemexpand',b,g,f);return}d=c.animateEl;e=c.targetEl;d.stopAnimation();h[i]=!0;Ext.on('idle',function(){d.dom.style.height='0px'},null,{single:!0});d.animate({from:{height:0},to:{height:e.dom.scrollHeight},duration:a.expandDuration,listeners:{afteranimate:function(){var f=e.dom.childNodes,d=Ext.Element.getActiveElement();if(f.length){if(!e.contains(d)){d=null}c.el.insertSibling(f,'before',!0);if(d){Ext.fly(d).focus()}}c.el.destroy();a.animWraps[c.record.internalId]=h[i]=null}},callback:function(){b.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemexpand',b,g,f)}})},onBeforeCollapse:function(c,g,f,d,e){var b=this,a;if(b.rendered&&b.all.getCount()){if(b.animate){if(c.isVisible()){a=b.getAnimWrap(c);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c,f)}else {if(a.expanding){a.targetEl.select(this.itemSelector).destroy()}}a.expanding=!1;a.collapsing=!0;a.callback=d;a.scope=e}}else {b.onCollapseCallback=d;b.onCollapseScope=e}}},onCollapse:function(c){var a=this,g=a.animQueue,h=c.getId(),d=a.getNode(c),f=d?a.indexOf(d):-1,b=a.getAnimWrap(c),e;if(!a.all.getCount()||!c.isVisible()){return}if(!b){c.isExpandingOrCollapsing=!1;a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(a.onCollapseCallback,a.onCollapseScope);a.onCollapseCallback=a.onCollapseScope=null;return}e=b.animateEl;g[h]=!0;e.stopAnimation();e.animate({to:{height:0},duration:a.collapseDuration,listeners:{afteranimate:function(){b.el.destroy();a.animWraps[b.record.internalId]=g[h]=null}},callback:function(){c.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(b.callback,b.scope);b.callback=b.scope=null}})},isAnimating:function(a){return !!this.animQueue[a.getId()]},expand:function(a,f,d,e){var g=this,b=!!g.animate,c;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}Ext.suspendLayouts();c=a.expand(f,d,e);Ext.resumeLayouts(!0);return c}},collapse:function(a,e,c,d){var f=this,b=!!f.animate;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}return a.collapse(e,c,d)}},toggle:function(a,d,b,c){if(a.isExpanded()){this.collapse(a,d,b,c)}else {this.expand(a,d,b,c)}},onItemDblClick:function(a,e,d,f){var b=this,c=b.editingPlugin;Ext.view.Table.prototype.onItemDblClick.call(this,a,e,d,f);if(b.toggleOnDblClick&&a.isExpandable()&&!(c&&c.clicksToEdit===2)){b.toggle(a)}},onCellClick:function(d,g,c,i,h,a){var b=this,f=a.position.column,e;if(f.isTreeColumn){if(a.getTarget(b.checkboxSelector,d)&&Ext.isBoolean(e=c.get('checked'))&&b.fireEvent('beforecheckchange',c,e,a)!==!1){b.onCheckChange(a);if(f.stopSelection){a.stopSelection=!0}}else {if(a.getTarget(b.expanderSelector,d)&&c.isExpandable()){b.getNavigationModel().setPosition(a.position);b.toggle(c,a.ctrlKey);a.nodeToggled=!0}}return Ext.view.Table.prototype.onCellClick.call(this,d,g,c,i,h,a)}},onCheckChange:function(c){var a=c.record,b=!a.get('checked');a.set('checked',b);this.fireEvent('checkchange',a,b,c)},onItemMouseOver:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).addCls(this.expanderIconOverCls)}},onItemMouseOut:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).removeCls(this.expanderIconOverCls)}},getStoreListeners:function(){return Ext.apply(Ext.view.Table.prototype.getStoreListeners.call(this),{rootchange:this.onRootChange,fillcomplete:this.onFillComplete})},onBindStore:function(b,f,e,a){var d=a&&a.getRootNode(),c=b&&b.getRootNode();Ext.view.Table.prototype.onBindStore.call(this,b,f,e,a);if(c!==d){this.onRootChange(c,d)}},onRootChange:function(b,c){var a=this,d=a.grid;if(c){a.rootListeners.destroy();a.rootListeners=null}if(b){a.rootListeners=b.on({beforeexpand:a.onBeforeExpand,expand:a.onExpand,beforecollapse:a.onBeforeCollapse,collapse:a.onCollapse,destroyable:!0,scope:a});d.addRelayers(b)}},ensureSingleExpand:function(b){var a=b.parentNode;if(a){a.eachChild(function(a){if(a!==b&&a.isExpanded()){a.collapse()}})}}},0,['treeview'],['component','box','dataview','tableview','gridview','treeview'],{'component':!0,'box':!0,'dataview':!0,'tableview':!0,'gridview':!0,'treeview':!0},['widget.treeview'],0,[Ext.tree,'View'],0);Ext.cmd.derive('Ext.tree.Panel',Ext.panel.Table,{alternateClassName:['Ext.tree.TreePanel','Ext.TreePanel'],viewType:'treeview',treeCls:'x-tree-panel',rowLines:!1,lines:!0,useArrows:!1,singleExpand:!1,ddConfig:{enableDrag:!0,enableDrop:!0},rootVisible:!0,displayField:'text',root:null,normalCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible','scroll'],lockedCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible'],isTree:!0,arrowCls:'x-tree-arrows',linesCls:'x-tree-lines',noLinesCls:'x-tree-no-lines',autoWidthCls:'x-autowidth-table',constructor:function(a){a=a||{};if(a.animate===undefined){a.animate=Ext.isBoolean(this.animate)?this.animate:Ext.enableFx}this.enableAnimations=a.animate;delete a.animate;Ext.panel.Table.prototype.constructor.call(this,a)},initComponent:function(){var a=this,c=[a.treeCls],b,d;if(a.useArrows){c.push(a.arrowCls);a.lines=!1}if(a.lines){c.push(a.linesCls)}else {if(!a.useArrows){c.push(a.noLinesCls)}}b=a.applyStore(a.store);if(!b.getRoot()){b.setRoot({})}b.setRootVisible(a.rootVisible);a.viewConfig=Ext.apply({rootVisible:a.rootVisible,animate:a.enableAnimations,singleExpand:a.singleExpand,node:b.getRoot(),hideHeaders:a.hideHeaders,navigationModel:'tree'},a.viewConfig);if(!a.columns){if(a.initialConfig.hideHeaders===undefined){a.hideHeaders=!0}a.addCls(a.autoWidthCls);a.columns=[{xtype:'treecolumn',text:'Name',flex:1,dataIndex:a.displayField}]}if(a.cls){c.push(a.cls)}a.cls=c.join(' ');Ext.panel.Table.prototype.initComponent.call(this);d=a.getView();a.relayEvents(d,['beforecheckchange','checkchange','afteritemexpand','afteritemcollapse'])},applyStore:function(a){var b=this;if(Ext.isString(a)){a=b.store=Ext.StoreMgr.lookup(a)}else {if(!a||!a.isStore){a=Ext.apply({type:'tree',proxy:'memory'},a);if(b.root){a.root=b.root}if(b.fields){a.fields=b.fields}else {if(b.model){a.model=b.model}}if(b.folderSort){a.folderSort=b.folderSort}a=b.store=Ext.StoreMgr.lookup(a)}else {if(b.root){a=b.store=Ext.data.StoreManager.lookup(a);a.setRoot(b.root);if(b.folderSort!==undefined){a.folderSort=b.folderSort;a.sort()}}}}return a},setStore:function(a){var b=this;a=b.applyStore(a);if(!a.getRoot()){a.setRoot({})}a.setRootVisible(b.rootVisible);if(b.view){b.view.setRootNode(a.getRootNode())}b.bindStore(a)},bindStore:function(b,e){var a=this,c=b.getRoot(),d=a.bufferedRenderer;Ext.panel.Table.prototype.bindStore.apply(this,arguments);if(d){if(d.store){d.bindStore(b)}}b.singleExpand=a.singleExpand;a.storeListeners=a.mon(b,{destroyable:!0,rootchange:a.onRootChange,scope:a});a.storeRelayers=a.relayEvents(b,['beforeload','load']);if(!a.rootVisible&&!b.autoLoad&&!(c.isExpanded()||c.isLoading())){if(c.isLoaded()){c.data.expanded=!0;b.onNodeExpand(c,c.childNodes)}else {if(b.autoLoad!==!1){c.data.expanded=!1;c.expand()}}}b.ownerTree=a;if(!e){a.view.setRootNode(c)}},addRelayers:function(b){var a=this;if(a.rootRelayers){a.rootRelayers.destroy();a.rootRelayers=null}a.rootRelayers=a.mon(b,{destroyable:!0,append:a.createRelayer('itemappend'),remove:a.createRelayer('itemremove'),move:a.createRelayer('itemmove',[0,4]),insert:a.createRelayer('iteminsert'),beforeappend:a.createRelayer('beforeitemappend'),beforeremove:a.createRelayer('beforeitemremove'),beforemove:a.createRelayer('beforeitemmove'),beforeinsert:a.createRelayer('beforeiteminsert'),expand:a.createRelayer('itemexpand',[0,1]),collapse:a.createRelayer('itemcollapse',[0,1]),beforeexpand:a.createRelayer('beforeitemexpand',[0,1]),beforecollapse:a.createRelayer('beforeitemcollapse',[0,1]),scope:a})},unbindStore:function(){var a=this,b=a.store;if(b){Ext.panel.Table.prototype.unbindStore.call(this);Ext.destroy(a.storeListeners,a.storeRelayers,a.rootRelayers);delete b.ownerTree;b.singleExpand=null}},setRootNode:function(){return this.store.setRoot.apply(this.store,arguments)},getRootNode:function(){return this.store.getRoot()},onRootChange:function(a){this.view.setRootNode(a)},getChecked:function(){return this.getView().getChecked()},isItemChecked:function(a){return a.get('checked')},expandNode:function(b,d,a,c){return this.getView().expand(b,d,a,c||this)},collapseNode:function(b,d,a,c){return this.getView().collapse(b,d,a,c||this)},expandAll:function(c,d){var b=this,a=b.getRootNode();if(a){Ext.suspendLayouts();a.expand(!0,c,d||b);Ext.resumeLayouts(!0)}},collapseAll:function(d,a){var c=this,b=c.getRootNode(),e=c.getView();if(b){Ext.suspendLayouts();a=a||c;if(e.rootVisible){b.collapse(!0,d,a)}else {b.collapseChildren(!0,d,a)}Ext.resumeLayouts(!0)}},expandPath:function(p,a){var i=arguments,b=this,j=b.view,g=a&&a.field||b.store.model.idProperty,o,n,k=a&&a.separator||'/',c,e,d,h,f,m,l;if(a&&typeof a==='object'){g=a.field||b.store.model.idProperty;k=a.separator||'/';c=a.callback;e=a.scope;o=a.select;n=a.focus}else {g=i[1]||b.store.model.idProperty;k=i[2]||'/';c=i[3];e=i[4]}if(Ext.isEmpty(p)){return Ext.callback(c,e||b,[!1,null])}f=p.split(k);m=!f[0];if(m){d=b.getRootNode();h=1}else {d=b.store.findNode(g,f[0]);h=0}if(!d||m&&d.get(g)!==f[1]){return Ext.callback(c,e||b,[!1,d])}l=function(m){var d=this,q,k,i;if(++h===f.length){if(o){j.getSelectionModel().select(d)}if(n){j.getNavigationModel().setPosition(d,0)}return Ext.callback(c,e||b,[!0,d,j.getNode(d)])}for(k=0,q=m?m.length:0;k2?b[2]:null,e=a>3?b[3]:'/',d=a>4?b[4]:null,f=a>5?b[5]:!1;document.cookie=h+'='+escape(g)+(c===null?'':'; expires='+c.toUTCString())+(e===null?'':'; path='+e)+(d===null?'':'; domain='+d)+(f===!0?'; secure':'')},get:function(e){var d=document.cookie.split('; '),f=d.length,b,a,c;for(a=0;a'],childEls:['iframeEl'],initComponent:function(){Ext.Component.prototype.initComponent.call(this);this.frameName=this.frameName||this.id+'-frame'},initEvents:function(){var a=this;Ext.Component.prototype.initEvents.call(this);a.iframeEl.on('load',a.onLoad,a)},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{src:this.src,frameName:this.frameName})},getBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){try{return this.getWin().document}catch(b){return null}},getWin:function(){var a=this,b=a.frameName,c=Ext.isIE?a.iframeEl.dom.contentWindow:window.frames[b];return c},getFrame:function(){var a=this;return a.iframeEl.dom},beforeDestroy:function(){this.cleanupListeners(!0);Ext.Component.prototype.beforeDestroy.call(this)},cleanupListeners:function(c){var a,b;if(this.rendered){try{a=this.getDoc();if(a){Ext.get(a).un(this._docListeners);if(c){for(b in a){if(a.hasOwnProperty&&a.hasOwnProperty(b)){delete a[b]}}}}}catch(d){}}},onLoad:function(){var a=this,c=a.getDoc(),b=a.onRelayedEvent;if(c){try{Ext.get(c).on(a._docListeners={mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,scope:a})}catch(d){}Ext.get(this.getWin()).on('beforeunload',a.cleanupListeners,a);this.el.unmask();this.fireEvent('load',this)}else {if(a.src){this.el.unmask();this.fireEvent('error',this)}}},onRelayedEvent:function(a){var b=this.iframeEl,c=b.getTrueXY(),e=a.getXY(),d=a.getTrueXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},load:function(c){var a=this,b=a.loadMask,d=a.getFrame();if(a.fireEvent('beforeload',a,c)!==!1){if(b&&a.el){a.el.mask(b)}d.src=a.src=c||a.src}}},0,['uxiframe'],['component','box','uxiframe'],{'component':!0,'box':!0,'uxiframe':!0},['widget.uxiframe'],0,[Ext.ux,'IFrame'],0);Ext.cmd.derive('Ext.ux.PreviewPlugin',Ext.plugin.Abstract,{hideBodyCls:'x-grid-row-body-hidden',bodyField:'',previewExpanded:!0,setCmp:function(c){Ext.plugin.Abstract.prototype.setCmp.apply(this,arguments);var b=this,a=b.cmp=c.isXType('gridview')?c.grid:c,g=b.bodyField,f=b.hideBodyCls,e=Ext.create('Ext.grid.feature.RowBody',{grid:a,getAdditionalData:function(e,j,i,h){var b=Ext.grid.feature.RowBody.prototype.getAdditionalData,d={rowBody:e[g],rowBodyCls:a.getView().previewExpanded?'':f};if(Ext.isFunction(b)){Ext.apply(d,b.apply(this,arguments))}return d}}),d=function(d,a){a.previewExpanded=b.previewExpanded;a.featuresMC.add(e);e.init(d)};if(a.view){d(a,a.view)}else {a.on({viewcreated:d,single:!0})}},toggleExpanded:function(e){var c=this.getCmp(),a=c&&c.getView(),b=a.bufferedRenderer,d=a.scrollManager;if(c&&a&&e!==a.previewExpanded){this.previewExpanded=a.previewExpanded=!!e;a.refreshView();if(d){if(b){b.stretchView(a,b.getScrollHeight(!0))}else {d.refresh(!0)}}}}},0,0,0,0,['plugin.preview'],0,[Ext.ux,'PreviewPlugin'],0);Ext.cmd.derive('Ext.ux.colorpick.Selection',Ext.Base,{mixinId:'colorselection',config:{format:'hex6',value:'FF0000',color:null,previousColor:null},applyColor:function(b){var a=b;if(Ext.isString(a)){a=Ext.ux.colorpick.ColorUtils.parseColor(b)}return a},applyValue:function(a){var b=Ext.ux.colorpick.ColorUtils.parseColor(a);return this.formatColor(b)},formatColor:function(a){return Ext.ux.colorpick.ColorUtils.formats[this.getFormat()](a)},updateColor:function(b){var a=this;if(!a.syncing){a.syncing=!0;a.setValue(a.formatColor(b));a.syncing=!1}},updateValue:function(b,c){var a=this;if(!a.syncing){a.syncing=!0;a.setColor(b);a.syncing=!1}this.fireEvent('change',a,b,c)}},0,0,0,0,0,0,[Ext.ux.colorpick,'Selection'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorUtils',Ext.Base,function(a){var b=Ext.isIE&&Ext.ieVersion<10;return {singleton:!0,constructor:function(){a=this},backgroundTpl:b?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{alpha}{hex}', endColorstr='#{alpha}{hex}');":'background: {rgba};',setBackground:b?function(c,b){if(c){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={hex:a.rgb2hex(b.r,b.g,b.b),alpha:Math.floor(b.a*255).toString(16)},d=f.apply(e);c.applyStyles(d)}}:function(b,d){if(b){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={rgba:a.getRGBAString(d)},c=f.apply(e);b.applyStyles(c)}},formats:{HEX6:function(b){return a.rgb2hex(b.r,b.g,b.b)},HEX8:function(b){var c=a.rgb2hex(b.r,b.g,b.b),d=Math.round(b.a*255).toString(16);if(d.length<2){c+='0'}c+=d.toUpperCase();return c}},hexRe:/#?([0-9a-f]{3,8})/i,rgbaAltRe:/rgba\(\s*([\w#\d]+)\s*,\s*([\d\.]+)\s*\)/,rgbaRe:/rgba\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,rgbRe:/rgb\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,parseColor:function(d){if(!d){return null}var e=this,f=e.colorMap[d],b,c,g;if(f){c={r:f[0],g:f[1],b:f[2],a:1}}else {if(d==='transparent'){c={r:0,g:0,b:0,a:0}}else {b=e.hexRe.exec(d);if(b){b=b[1];switch(b.length){default:return null;case 3:c={r:parseInt(b[0]+b[0],16),g:parseInt(b[1]+b[1],16),b:parseInt(b[2]+b[2],16),a:1};break;case 6:case 8:c={r:parseInt(b.substr(0,2),16),g:parseInt(b.substr(2,2),16),b:parseInt(b.substr(4,2),16),a:parseInt(b.substr(6,2)||'ff',16)/255};break;}}else {b=e.rgbaRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:parseFloat(b[4])}}else {b=e.rgbaAltRe.exec(d);if(b){c=e.parseColor(b[1]);c.a=parseFloat(b[2]);return c}b=e.rgbRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:1}}else {return null}}}}}g=this.rgb2hsv(c.r,c.g,c.b);return Ext.apply(c,g)},getRGBAString:function(b){return 'rgba('+b.r+','+b.g+','+b.b+','+b.a+')'},getRGBString:function(b){return 'rgb('+b.r+','+b.g+','+b.b+')'},hsv2rgb:function(e,i,h){e=e*360;if(e===360){e=0}var c=h*i;var g=e/60;var d=c*(1-Math.abs(g%2-1));var b=[0,0,0];switch(Math.floor(g)){case 0:b=[c,d,0];break;case 1:b=[d,c,0];break;case 2:b=[0,c,d];break;case 3:b=[0,d,c];break;case 4:b=[d,0,c];break;case 5:b=[c,0,d];break;default:break;}var f=h-c;b[0]+=f;b[1]+=f;b[2]+=f;b[0]=Math.round(b[0]*255);b[1]=Math.round(b[1]*255);b[2]=Math.round(b[2]*255);return {r:b[0],g:b[1],b:b[2]}},rgb2hsv:function(e,d,c){e=e/255;d=d/255;c=c/255;var g=Math.max(e,d,c);var k=Math.min(e,d,c);var f=g-k;var h=0;if(f!==0){if(g===e){h=(d-c)/f%6}else {if(g===d){h=(c-e)/f+2}else {if(g===c){h=(e-d)/f+4}}}}var b=h*60;if(b===360){b=0}var j=g;var i=0;if(f!==0){i=f/j}b=b/360;if(b<0){b=b+1}return {h:b,s:i,v:j}},rgb2hex:function(d,c,b){d=d.toString(16);c=c.toString(16);b=b.toString(16);if(d.length<2){d='0'+d}if(c.length<2){c='0'+c}if(b.length<2){b='0'+b}return (d+c+b).toUpperCase()},colorMap:{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]}}},1,0,0,0,0,0,[Ext.ux.colorpick,'ColorUtils'],function(c){var a=c.formats,b={};a['#HEX6']=function(b){return '#'+a.HEX6(b)};a['#HEX8']=function(b){return '#'+a.HEX8(b)};Ext.Object.each(a,function(a,d){b[a.toLowerCase()]=function(b){var e=d(b);return e.toLowerCase()}});Ext.apply(a,b)});Ext.cmd.derive('Ext.ux.colorpick.ColorMapController',Ext.app.ViewController,{onFirstBoxReady:function(){var a=this,c=a.getView(),d=c.down('#dragHandle'),b=d.dd;b.constrain=!0;b.constrainTo=c.getEl();b.initialConstrainTo=b.constrainTo;b.on('drag',Ext.bind(a.onHandleDrag,a));a.mon(c.getEl(),{mousedown:a.onMouseDown,dragstart:a.onDragStart,scope:a})},onHandleDrag:function(k,l){var h=this,a=h.getView(),e=a.down('#dragHandle'),i=e.getX()-a.getX(),j=e.getY()-a.getY(),d=a.getEl(),g=d.getWidth(),f=d.getHeight(),b=i/g,c=j/f;if(b>0.99){b=1}if(c>0.99){c=1}a.fireEvent('handledrag',b,c)},onMouseDown:function(b){var c=this,d=c.getView(),a=d.down('#dragHandle');a.setY(b.getY());a.setX(b.getX());c.onHandleDrag();a.dd.onMouseDown(b,a.dd.el)},onDragStart:function(d){var c=this,b=c.getView(),a=b.down('#dragHandle');a.dd.onDragStart(d,a.dd.el)},onMapClick:function(h){var f=this,a=f.getView(),g=a.down('#dragHandle'),c=a.getXY(),d=h.getXY(),b,e;b=d[0]-c[0];e=d[1]-c[1];g.getEl().setStyle({left:b+'px',top:e+'px'});f.onHandleDrag()},onColorBindingChanged:function(n){var i=this,m=i.getViewModel(),a=m.get('selectedColor'),b,d=i.getView(),l=d.down('#dragHandle'),c=d.getEl(),k=c.getWidth(),j=c.getHeight(),e,f,g,h;b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);e=b.s;g=k*e;f=1-b.v;h=j*f;l.getEl().setStyle({left:g+'px',top:h+'px'})},onHueBindingChanged:function(d){var c=this,e=c.getViewModel(),a,b;a=Ext.ux.colorpick.ColorUtils.hsv2rgb(d,1,1);b=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);c.getView().getEl().applyStyles({'background-color':'#'+b})}},0,0,0,0,['controller.colorpickercolormapcontroller'],0,[Ext.ux.colorpick,'ColorMapController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorMap',Ext.container.Container,{controller:'colorpickercolormapcontroller',cls:'x-colorpicker-colormap',items:[{xtype:'component',cls:'x-colorpicker-colormap-draghandle-container',itemId:'dragHandle',width:1,height:1,draggable:!0,html:'
    '}],listeners:{boxready:{single:!0,fn:'onFirstBoxReady',scope:'controller'},colorbindingchanged:{fn:'onColorBindingChanged',scope:'controller'},huebindingchanged:{fn:'onHueBindingChanged',scope:'controller'}},afterRender:function(){var c=this,a=c.mapGradientUrl,b=c.el;Ext.container.Container.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.ColorMap.prototype.mapGradientUrl=a}b.setStyle('background-image','none');b=c.layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-colormap-blender',src:a})},setPosition:function(c){var b=this,a=b.down('#dragHandle');if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b.fireEvent('colorbindingchanged',c)},setHue:function(b){var a=this;if(!a.getEl()){return}a.fireEvent('huebindingchanged',b)}},0,['colorpickercolormap'],['component','box','container','colorpickercolormap'],{'component':!0,'box':!0,'container':!0,'colorpickercolormap':!0},['widget.colorpickercolormap'],0,[Ext.ux.colorpick,'ColorMap'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorModel',Ext.app.ViewModel,{data:{selectedColor:{r:255,g:255,b:255,h:0,s:1,v:1,a:1},previousColor:{r:0,g:0,b:0,h:0,s:1,v:1,a:1}},formulas:{hex:{get:function(a){var e=a('selectedColor.r').toString(16),d=a('selectedColor.g').toString(16),c=a('selectedColor.b').toString(16),b;b=Ext.ux.colorpick.ColorUtils.rgb2hex(e,d,c);return '#'+b},set:function(a){var b=Ext.ux.colorpick.ColorUtils.hex2rgb(a);this.changeRGB(b)}},red:{get:function(a){return a('selectedColor.r')},set:function(a){this.changeRGB({r:a})}},green:{get:function(a){return a('selectedColor.g')},set:function(a){this.changeRGB({g:a})}},blue:{get:function(a){return a('selectedColor.b')},set:function(a){this.changeRGB({b:a})}},hue:{get:function(a){return a('selectedColor.h')*360},set:function(a){this.changeHSV({h:a/360})}},saturation:{get:function(a){return a('selectedColor.s')*100},set:function(a){this.changeHSV({s:a/100})}},value:{get:function(a){var b=a('selectedColor.v');return b*100},set:function(a){this.changeHSV({v:a/100})}},alpha:{get:function(a){var b=a('selectedColor.a');return b*100},set:function(a){this.set('selectedColor',Ext.applyIf({a:a/100},this.data.selectedColor))}}},changeHSV:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);a.r=b.r;a.g=b.g;a.b=b.b;this.set('selectedColor',a)},changeRGB:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);a.h=b.h;a.s=b.s;a.v=b.v;this.set('selectedColor',a)}},0,0,0,0,['viewmodel.colorpick-selectormodel'],0,[Ext.ux.colorpick,'SelectorModel'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorController',Ext.app.ViewController,{initViewModel:function(){var b=this,a=b.getView();a.childViewModel.bind('{selectedColor}',function(b){a.setColor(b)})},destroy:function(){var c=this,b=c.getView(),a=b.childViewModel;if(a){a.destroy();b.childViewModel=null}Ext.app.ViewController.prototype.destroy.call(this)},changeHSV:function(a){var b=this.getView(),d=b.getColor(),c;Ext.applyIf(a,d);c=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);Ext.apply(a,c);b.setColor(a)},onColorMapHandleDrag:function(a,b){this.changeHSV({s:a,v:1-b})},onValueSliderHandleDrag:function(a){this.changeHSV({v:1-a})},onSaturationSliderHandleDrag:function(a){this.changeHSV({s:1-a})},onHueSliderHandleDrag:function(a){this.changeHSV({h:1-a})},onAlphaSliderHandleDrag:function(c){var a=this.getView(),d=a.getColor(),b=Ext.applyIf({a:1-c},d);a.setColor(b);a.el.repaint()},onPreviousColorSelected:function(c,a){var b=this.getView();b.setColor(a)},onOK:function(){var b=this,a=b.getView();a.fireEvent('ok',a,a.getValue())},onCancel:function(){this.fireViewEvent('cancel',this.getView())},onResize:function(){var c=this,h=c.getView(),b=h.childViewModel,a=c.getReferences(),d,f,g,e;if(!c.hasResizedOnce){c.hasResizedOnce=!0;return}d=b.get('hue');f=b.get('saturation');g=b.get('value');e=b.get('alpha');console.log('h='+d);a.colorMap.setPosition(b.getData());a.hueSlider.setHue(d);a.satSlider.setSaturation(f);a.valueSlider.setValue(g);a.alphaSlider.setAlpha(e)}},0,0,0,0,['controller.colorpick-selectorcontroller'],0,[Ext.ux.colorpick,'SelectorController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorPreview',Ext.Component,{style:'position: relative',html:'
    ',cls:'x-colorpreview',height:256,onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el.down('.btn'),'click',a.onClick,a)},onClick:function(){this.fireEvent('click',this,this.color)},setColor:function(b){var a=this,c=a.getEl();if(!c){return}a.color=b;a.applyBgStyle(b)},bgStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hexAlpha}{hex}', endColorstr='#{hexAlpha}{hex}');":'background: {rgba};'),applyBgStyle:function(a){var h=this,b=Ext.ux.colorpick.ColorUtils,g=h.getEl().down('.filter'),f,d,e,c;f=b.rgb2hex(a.r,a.g,a.b);d=Ext.util.Format.hex(Math.floor(a.a*255),2);e=b.getRGBAString(a);c=this.bgStyleTpl.apply({hex:f,hexAlpha:d,rgba:e});g.applyStyles(c)}},0,['colorpickercolorpreview'],['component','box','colorpickercolorpreview'],{'component':!0,'box':!0,'colorpickercolorpreview':!0},['widget.colorpickercolorpreview'],0,[Ext.ux.colorpick,'ColorPreview'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderController',Ext.app.ViewController,{boxReady:function(e){var b=this,d=b.getDragContainer(),c=b.getDragHandle(),a=c.dd;a.constrain=!0;a.constrainTo=d.getEl();a.initialConstrainTo=a.constrainTo;a.on('drag',b.onHandleDrag,b)},getDragHandle:function(){return this.view.lookupReference('dragHandle')},getDragContainer:function(){return this.view.lookupReference('dragHandleContainer')},onHandleDrag:function(i){var b=this,g=b.getView(),c=b.getDragContainer(),f=b.getDragHandle(),h=f.getY()-c.getY(),e=c.getEl(),d=e.getHeight(),a=h/d;if(a>0.99){a=1}g.fireEvent('handledrag',a)},onMouseDown:function(c){var b=this,a=b.getDragHandle(),d=c.getY();a.setY(d);b.onHandleDrag();a.el.repaint();a.dd.onMouseDown(c,a.dd.el)},onDragStart:function(c){var b=this,a=b.getDragHandle();a.dd.onDragStart(c,a.dd.el)},onMouseUp:function(){var a=this.getDragHandle();a.dd.dragEnded=!0}},0,0,0,0,['controller.colorpick-slidercontroller'],0,[Ext.ux.colorpick,'SliderController'],0);Ext.cmd.derive('Ext.ux.colorpick.Slider',Ext.container.Container,{controller:'colorpick-slidercontroller',baseCls:'x-colorpicker-slider',layout:'center',referenceHolder:!0,listeners:{element:'el',mousedown:'onMouseDown',mouseup:'onMouseUp',dragstart:'onDragStart'},items:{xtype:'container',cls:'x-colorpicker-draghandle-container',reference:'dragHandleContainer',height:'100%',items:{xtype:'component',cls:'x-colorpicker-draghandle-outer',reference:'dragHandle',width:'100%',height:1,draggable:!0,html:'
    '}},getDragHandle:function(){return this.lookupReference('dragHandle')},getDragContainer:function(){return this.lookupReference('dragHandleContainer')}},0,['colorpickerslider'],['component','box','container','colorpickerslider'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0},['widget.colorpickerslider'],0,[Ext.ux.colorpick,'Slider'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderAlpha',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-alpha',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#FF{hex}', endColorstr='#00{hex}');":'background: -mox-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -webkit-linear-gradient(top,rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -o-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -ms-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: linear-gradient(to bottom, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);'),setAlpha:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(1-h/100);c=a.getEl();c.setStyle({top:b})},setColor:function(a){var b=this,e=b.getDragContainer(),c,d;if(!b.getEl()){return}c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d=e.getEl().down('.x-autocontainer-innerCt');d.applyStyles(b.gradientStyleTpl.apply({hex:c,r:a.r,g:a.g,b:a.b}))}},0,['colorpickerslideralpha'],['component','box','container','colorpickerslider','colorpickerslideralpha'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslideralpha':!0},['widget.colorpickerslideralpha'],0,[Ext.ux.colorpick,'SliderAlpha'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderSaturation',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-saturation',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#ffffff');":'background: -mox-linear-gradient(top, #{hex} 0%, #ffffff 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -o-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -ms-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: linear-gradient(to bottom, #{hex} 0%,#ffffff 100%);'),setSaturation:function(g){var d=this,h=d.getDragContainer(),a=d.getDragHandle(),f=h.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-g/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidersaturation'],['component','box','container','colorpickerslider','colorpickerslidersaturation'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidersaturation':!0},['widget.colorpickerslidersaturation'],0,[Ext.ux.colorpick,'SliderSaturation'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderValue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-value',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#000000');":'background: -mox-linear-gradient(top, #{hex} 0%, #000000 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#000000 100%);background: -o-linear-gradient(top, #{hex} 0%,#000000 100%);background: -ms-linear-gradient(top, #{hex} 0%,#000000 100%);background: linear-gradient(to bottom, #{hex} 0%,#000000 100%);'),setValue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-h/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidervalue'],['component','box','container','colorpickerslider','colorpickerslidervalue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidervalue':!0},['widget.colorpickerslidervalue'],0,[Ext.ux.colorpick,'SliderValue'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderHue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-hue',afterRender:function(){var c=this,a=c.gradientUrl,b=c.el;Ext.ux.colorpick.Slider.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.SliderHue.prototype.gradientUrl=a}b.setStyle('background-image','none');b=c.getDragContainer().layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-hue-gradient',src:a})},setHue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(360-h)/360;c=a.getEl();c.setStyle({top:b+'px'})}},0,['colorpickersliderhue'],['component','box','container','colorpickerslider','colorpickersliderhue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickersliderhue':!0},['widget.colorpickersliderhue'],0,[Ext.ux.colorpick,'SliderHue'],0);Ext.cmd.derive('Ext.ux.colorpick.Selector',Ext.container.Container,{controller:'colorpick-selectorcontroller',width:580,height:337,cls:'x-colorpicker',padding:10,layout:{type:'hbox',align:'stretch'},defaultBindProperty:'value',twoWayBindable:['value'],fieldWidth:50,fieldPad:5,showPreviousColor:!1,showOkCancelButtons:!1,listeners:{resize:'onResize'},constructor:function(c){var a=this,b=Ext.Factory.viewModel('colorpick-selectormodel');a.childViewModel=b;a.items=[a.getMapAndHexRGBFields(b),a.getSliderAndHField(b),a.getSliderAndSField(b),a.getSliderAndVField(b),a.getSliderAndAField(b),a.getPreviewAndButtons(b,c)];Ext.container.Container.prototype.constructor.apply(this,arguments)},updateColor:function(b){var a=this;a.mixins.colorselection.updateColor.call(a,b);a.childViewModel.set('selectedColor',b)},updatePreviousColor:function(a){this.childViewModel.set('previousColor',a)},getMapAndHexRGBFields:function(d){var c=this,a={top:0,right:c.fieldPad,bottom:0,left:0},b=c.fieldWidth;return {xtype:'container',viewModel:d,cls:'x-colorpicker-escape-overflow',flex:1,layout:{type:'vbox',align:'stretch'},margin:'0 10 0 0',items:[{xtype:'colorpickercolormap',reference:'colorMap',flex:1,bind:{position:{bindTo:'{selectedColor}',deep:!0},hue:'{selectedColor.h}'},listeners:{handledrag:'onColorMapHandleDrag'}},{xtype:'container',layout:'hbox',defaults:{labelAlign:'top',labelSeparator:'',allowBlank:!1,onChange:function(){if(this.isValid()){Ext.form.field.Base.prototype.onChange.apply(this,arguments)}}},items:[{xtype:'textfield',fieldLabel:'HEX',flex:1,bind:'{hex}',margin:a,readOnly:!0},{xtype:'numberfield',fieldLabel:'R',bind:'{red}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'G',bind:'{green}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'B',bind:'{blue}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:0}]}]}},getSliderAndHField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickersliderhue',reference:'hueSlider',flex:1,bind:{hue:'{selectedColor.h}'},listeners:{handledrag:'onHueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'H',labelAlign:'top',width:a.fieldWidth,labelSeparator:'',bind:'{hue}',hideTrigger:!0,maxValue:360,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndSField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{right:a.fieldPad,left:a.fieldPad},items:[{xtype:'colorpickerslidersaturation',reference:'satSlider',flex:1,bind:{saturation:'{saturation}',hue:'{selectedColor.h}'},listeners:{handledrag:'onSaturationSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'S',labelAlign:'top',labelSeparator:'',bind:'{saturation}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndVField:function(a){var b=this;return {xtype:'container',viewModel:a,cls:'x-colorpicker-escape-overflow',width:b.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickerslidervalue',reference:'valueSlider',flex:1,bind:{value:'{value}',hue:'{selectedColor.h}'},listeners:{handledrag:'onValueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'V',labelAlign:'top',labelSeparator:'',bind:'{value}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndAField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{left:a.fieldPad},items:[{xtype:'colorpickerslideralpha',reference:'alphaSlider',flex:1,bind:{alpha:'{alpha}',color:{bindTo:'{selectedColor}',deep:!0}},listeners:{handledrag:'onAlphaSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'A',labelAlign:'top',labelSeparator:'',bind:'{alpha}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getPreviewAndButtons:function(c,b){var a=[{xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{selectedColor}',deep:!0}}}];if(b.showPreviousColor){a.push({xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{previousColor}',deep:!0}},listeners:{click:'onPreviousColorSelected'}})}if(b.showOkCancelButtons){a.push({xtype:'button',text:'OK',margin:'10 0 0 0',handler:'onOK'},{xtype:'button',text:'Cancel',margin:'10 0 0 0',handler:'onCancel'})}return {xtype:'container',viewModel:c,width:70,margin:'0 0 0 10',items:a,layout:{type:'vbox',align:'stretch'}}}},1,['colorselector'],['component','box','container','colorselector'],{'component':!0,'box':!0,'container':!0,'colorselector':!0},['widget.colorselector'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Selector'],0);Ext.cmd.derive('Ext.ux.colorpick.ButtonController',Ext.app.ViewController,{afterRender:function(a){a.updateColor(a.getColor())},destroy:function(){var a=this.getView(),b=a.colorPickerWindow;if(b){b.destroy();a.colorPickerWindow=a.colorPicker=null}Ext.app.ViewController.prototype.destroy.call(this)},getPopup:function(){var b=this.getView(),a=b.colorPickerWindow,c;if(!a){a=Ext.create(b.getPopup());b.colorPickerWindow=a;a.colorPicker=b.colorPicker=c=a.lookupReference('selector');c.setFormat(b.getFormat());c.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:this});a.on({close:'onColorPickerCancel',scope:this})}return a},onClick:function(){var e=this,d=e.getView(),b=d.getColor(),c=e.getPopup(),a=c.colorPicker;a.setColor(b);a.setPreviousColor(b);c.showBy(d,'tl-br?')},onColorPickerOK:function(b){var a=this.getView(),c=b.getColor(),d=a.colorPickerWindow;d.hide();a.setColor(c)},onColorPickerCancel:function(){var b=this.getView(),a=b.colorPickerWindow;a.hide()},syncColor:function(a){var b=this.getView();Ext.ux.colorpick.ColorUtils.setBackground(b.filterEl,a)}},0,0,0,0,['controller.colorpick-buttoncontroller'],0,[Ext.ux.colorpick,'ButtonController'],0);Ext.cmd.derive('Ext.ux.colorpick.Button',Ext.Component,{controller:'colorpick-buttoncontroller',baseCls:'x-colorpicker-button',width:20,height:20,childEls:['btnEl','filterEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},defaultBindProperty:'value',twoWayBindable:'value',renderTpl:'
    ',listeners:{click:'onClick',element:'btnEl'},updateColor:function(b){var a=this,c=a.colorPicker;a.mixins.colorselection.updateColor.call(a,b);Ext.ux.colorpick.ColorUtils.setBackground(a.filterEl,b);if(c){c.setColor(b)}},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}}},0,['colorbutton'],['component','box','colorbutton'],{'component':!0,'box':!0,'colorbutton':!0},['widget.colorbutton'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Button'],0);Ext.cmd.derive('Ext.ux.colorpick.Field',Ext.form.field.Picker,{editable:!1,matchFieldWidth:!1,beforeBodyEl:['
    '],cls:'x-colorpicker-field',childEls:['swatchEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},afterRender:function(){Ext.form.field.Picker.prototype.afterRender.call(this);this.updateValue(this.value)},createPicker:function(){var a=this,c=a.getPopup(),b;a.colorPickerWindow=c=Ext.create(c);a.colorPicker=b=c.lookupReference('selector');b.setFormat(a.getFormat());b.setColor(a.getColor());b.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:a});c.on({close:'onColorPickerCancel',scope:a});return a.colorPickerWindow},onColorPickerOK:function(a){this.setColor(a.getColor());this.collapse()},onColorPickerCancel:function(){this.collapse()},onExpand:function(){var a=this.getColor();this.colorPicker.setPreviousColor(a)},setValue:function(c){var a=this,b=a.applyValue(c);(arguments.callee.$previous||Ext.form.field.Picker.prototype.setValue).call(this,b);a.updateValue(b)},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}},updateValue:function(c){var a=this,b;if(!a.syncing){a.syncing=!0;a.setColor(c);a.syncing=!1}b=a.getColor();Ext.ux.colorpick.ColorUtils.setBackground(a.swatchEl,b);if(a.colorPicker){a.colorPicker.setColor(b)}}},0,['colorfield'],['component','box','field','textfield','pickerfield','colorfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'pickerfield':!0,'colorfield':!0},['widget.colorfield'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Field'],0);Ext.cmd.derive('common.BandFilter',Ext.container.ButtonGroup,{alternateClassName:['Portal.BandFilter'],filters:['g','r','i','z','Y','RGB'],defaultFilter:'rgb',buttonWidth:30,vertical:!1,config:{availableFilters:[]},initComponent:function(){var a=this;if(!a.filters){Ext.Error.raise('You must specify a filters config.')}a.items=this.createFilters();var b='bands';if(a.itemId){b='bands_'+a.itemId}if(a.vertical){a.layout={type:'vbox',align:'stretch'}}else {a.layout={type:'hbox',align:'stretch'}}a.defaults={allowDepress:!1,enableToggle:!0,toggleGroup:b,toggleHandler:function(b){if(b.pressed){var c=b.value;a.fireEvent('onfilter',c,b,a)}}};Ext.container.ButtonGroup.prototype.initComponent.apply(this,arguments)},createFilters:function(){var c=this,f=[],d,a,b;for(var e=0;e1){b.width=50}if(c.defaultFilter==a){b.pressed=!0}f.push(b)}return f},getFilter:function(){var g=this,a=null,b,e,c;b=this.filters;e=Array();c=this.items;for(var d=0;d=':c=Ext.String.format('{0}__gte',e);a[c]=d;break;case '>':c=Ext.String.format('{0}__gt',e);a[c]=d;break;case '!=':c=Ext.String.format('{0}__ne',e);a[c]=d;break;case 'in':c=Ext.String.format('{0}__in',e);a[c]=d.join();break;case 'like':c=Ext.String.format('{0}__icontains',e);a[c]=d;break;case 'range':c=Ext.String.format('{0}__range',e);g=Ext.String.format('{0},{1}',d[0],d[1]);a[c]=g;break;default:a[e]=d;}});return a},buildUrl:function(c){var b=this,e=c.getOperation(),h=e.getRecords(),g=h?h[0]:null,i=b.getFormat(),a=b.getUrl(c),d,f;if(g&&!g.phantom){d=g.getId()}else {d=e.getId()}if(b.getAppendId()&&b.isValidId(d)||e.action==='update'){if(!a.match(b.slashRe)){a+='/'}a+=encodeURIComponent(d);f=c.getParams();if(f){delete f[b.getIdParam()]}a+='/'}if(i){if(!a.match(b.periodRe)){a+='.'}a+=i}c.setUrl(a);return Ext.data.RestProxy.superclass.buildUrl.apply(this,arguments)}},0,0,0,0,['proxy.django'],0,[common.data.proxy,'Django'],0);Ext.cmd.derive('common.store.MyStore',Ext.data.Store,{proxy:{type:'django'},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c;switch(a.status){case 403:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;case 408:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Maximum execution time exceeded.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});break;}}}}}},0,0,0,0,0,0,[common.store,'MyStore'],0);Ext.cmd.derive('common.store.CommentsObjects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,proxy:{type:'django',url:'/dri/api/objectscomments/'},sorters:[{property:'date',direction:'DESC'}]},0,0,0,0,['store.comments-objects'],0,[common.store,'CommentsObjects'],0);Ext.cmd.derive('common.model.CommentObject',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'catalog_id',type:'int'},{name:'object_id',type:'string'},{name:'comments',type:'string'},{name:'owner',type:'string',persist:!1},{name:'date',type:'date',persist:!1},{name:'is_owner',type:'boolean',persist:!1}]},0,0,0,0,0,0,[common.model,'CommentObject'],0);Ext.cmd.derive('common.comment.CommentsObjectModel',Ext.app.ViewModel,{data:{catalog_id:null,object_id:null},stores:{comments:{type:'comments-objects'}},links:{currentcomment:{type:'common.model.CommentObject',create:!0}}},0,0,0,0,['viewmodel.comment-object'],0,[common.comment,'CommentsObjectModel'],0);Ext.cmd.derive('common.comment.CommentsObjectController',Ext.app.ViewController,{loadComments:function(b,c){var f=this,e=f.getView(),a=e.getViewModel(),d=a.getStore('comments');a.set('catalog_id',b);a.set('object_id',c);d.filter([{property:'catalog_id',value:b},{property:'object_id',value:c}])},onNewComment:function(){var a=this,g=a.getView(),b=a.getViewModel(),f=b.getStore('comments'),d=a.lookup('txtComment'),e=d.getValue(),c;if(e){c=Ext.create('common.model.CommentObject',{catalog_id:b.get('catalog_id'),object_id:b.get('object_id'),comments:e});d.reset();f.add(c);a.applyChanges()}},onTxtCommentPressKey:function(d,a){var b=this,c=b.lookup('txtComment');if(a.keyCode==13){b.onNewComment()}else {if(a.keyCode==27){c.reset()}}},onClickUpdateComment:function(b){var f=this,e=f.lookup('GridComments'),a=e.findPlugin('rowediting'),c=b.up('button'),d=c.getWidgetRecord();a.startEdit(d)},updateComment:function(d,a){var c=this,b=a.record;b.set('comments',a.newValues['comments']);c.applyChanges()},onClickDeleteComment:function(b){var a=this,c=b.up('button');record=c.getWidgetRecord();Ext.MessageBox.confirm('Confirm','Are you sure you want to do that?',function(c){if(c==='yes'){a.deleteComment(record)}},a)},deleteComment:function(b){var a=this,d=a.getViewModel(),c=d.getStore('comments');c.remove(b);a.applyChanges()},applyChanges:function(){var c=this,b=c.getView(),d=c.getViewModel(),a=d.getStore('comments');b.setLoading(!0);a.sync({success:function(){a.load()},failure:function(){a.rejectChanges();c.onFailure()},callback:function(){b.setLoading(!1);b.fireEvent('changecomments',a,b)}})},onFailure:function(){Ext.Msg.show({title:'Sorry',msg:'There was a problem and it was not possible to create the new record, please try again in a few moments. If the problem persists please notify us via the help desk.',icon:Ext.Msg.WARNING,buttons:Ext.Msg.OK})}},0,0,0,0,['controller.comment-object'],0,[common.comment,'CommentsObjectController'],0);Ext.cmd.derive('common.comment.CommentsObject',Ext.Panel,{padding:'19',frame:!0,controller:'comment-object',viewModel:'comment-object',layout:{type:'vbox',pack:'start',align:'stretch'},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'container',layout:'hbox',align:'fit',items:[{xtype:'textfield',reference:'txtComment',name:'comments',margin:'0 6 0 0',flex:1,enableKeyEvents:!0,listeners:{specialkey:'onTxtCommentPressKey'}},{xtype:'button',text:'Post',itemId:'btnSaveComment',align:'stretch',handler:'onNewComment',iconCls:'x-fa fa-floppy-o'}]},{xtype:'grid',reference:'GridComments',flex:1,frame:!0,split:!0,hideHeaders:!0,bind:{store:'{comments}',selection:'{currentcomment}'},plugins:[{ptype:'rowediting',autoCancel:!1,listeners:{edit:'updateComment'}}],columns:[{text:'',dataIndex:'comments',renderer:a.formatUser,flex:2,menuDisabled:!0,editor:{xtype:'textfield',allowBlank:!1}},{xtype:'datecolumn',text:'Date',dataIndex:'date',hidden:!0},{text:'Button',width:50,xtype:'widgetcolumn',widget:{xtype:'button',iconCls:'x-fa fa-caret-down',arrowVisible:!1,menu:[{text:'Edit',iconCls:'x-fa fa-pencil',handler:'onClickUpdateComment'},{text:'Delete',iconCls:'x-fa fa-trash',handler:'onClickDeleteComment'}]},onWidgetAttach:function(b,a){if(a.getWidgetRecord().get('is_owner')){a.setDisabled(!1)}else {a.setDisabled(!0)}}}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},formatUser:function(b,e,a){var d=this,c='
    {0} comments on {1}
    {2}
    ';return Ext.String.format(c,a.get('owner'),a.get('date')||'Unknown',b)},setObject:function(a,b){var c=this,d=c.getViewModel(),e=c.getController();d.set('catalog_id',a);d.set('object_id',b);e.loadComments(a,b)}},0,['comments-object'],['component','box','container','panel','comments-object'],{'component':!0,'box':!0,'container':!0,'panel':!0,'comments-object':!0},['widget.comments-object'],0,[common.comment,'CommentsObject'],0);Ext.cmd.derive('common.model.CommentPosition',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'owner',type:'string'},{name:'pst_dataset',type:'int'},{name:'pst_filter',type:'int'},{name:'pst_ra',type:'float'},{name:'pst_dec',type:'float'},{name:'pst_date',type:'date'},{name:'pst_comment',type:'string'},{name:'is_owner',type:'boolean'},{name:'coordinates',type:'string'}]},0,0,0,0,0,0,[common.model,'CommentPosition'],0);Ext.cmd.derive('common.store.CommentsPosition',common.store.MyStore,{model:'common.model.CommentPosition',remoteFilter:!0,remoteSort:!0,autoLoad:!1,proxy:{type:'django',url:'/dri/api/comment/position/'},sorters:[{property:'date',direction:'DESC'}]},0,0,0,0,['store.comments-position'],0,[common.store,'CommentsPosition'],0);Ext.cmd.derive('common.comment.CommentsPositionModel',Ext.app.ViewModel,{data:{catalog_id:null,coordinates:null},stores:{comments:{type:'comments-position'}},links:{currentcomment:{type:'common.model.CommentPosition',create:!0}}},0,0,0,0,['viewmodel.comment-position'],0,[common.comment,'CommentsPositionModel'],0);Ext.cmd.derive('common.comment.CommentsPositionController',Ext.app.ViewController,{loadComments:function(c,g){var b=this.getView().getViewModel(),f=b.getStore('comments'),a=c.targetPosition,d=a?a.lat:c.latlng.lat,e=a?a.lng:c.latlng.lng;b.set('pst_dataset',g.id);b.set('pst_dec',d);b.set('pst_ra',e);f.filter([{property:'coordinates',value:'[['+e+','+d+'],['+e+','+d+']]'}])},onDeleteComment:function(e){var a=this,c=a.getView(),d=c.getViewModel(),b=d.get('currentcomment');Ext.MessageBox.confirm('Confirm','Are you sure you want to do that?',function(c){if(c==='yes'){a.deleteComment(b)}},this)},deleteComment:function(b){var d=this,a=d.getView(),e=a.getViewModel(),c=e.getStore('comments');a.setLoading(!0);c.remove(b);c.sync({success:function(){b.isCommentPosition=!0;a.fireEvent('changecomments',{type:'delete',comment:b,total:c.data.items.length});a.setLoading(!1)},failure:function(e,d){a.setLoading(!1);var c=d.request.proxy.reader.jsonData;if(c){Ext.Msg.alert('Status',c.msg)}else {Ext.MessageBox.show({title:'Server Side Failure',msg:c.status+' '+c.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})}}})},onSaveComment:function(f){var e=this,b=e.getView(),d=b.getViewModel(),a=d.getStore('comments');var c=d.get('currentcomment');if(c.get('comments')!=''){b.setLoading(!0);a.sync({success:function(){a.commitChanges();a.load({callback:function(){c.isCommentPosition=!0;b.fireEvent('changecomments',{type:'delete',comment:c,total:a.data.items.length})}});var e=Ext.create('common.model.CommentObject');d.set('currentcomment',e);b.setLoading(!1)},failure:function(c,d){b.setLoading(!1);Ext.Msg.show({title:'Sorry',msg:'Was not possible to change the comment.',icon:Ext.Msg.ERROR,buttons:Ext.Msg.OK});a.rejectChanges()}})}},onNewComment:function(c){var a=this.getView().getViewModel(),d=a.getStore('comments');var b=Ext.create('common.model.CommentPosition',{pst_ra:a.get('pst_ra'),pst_dec:a.get('pst_dec'),pst_comment:c,pst_dataset:a.get('pst_dataset')});d.insert(0,b);a.set('currentcomment',b)}},0,0,0,0,['controller.comment-position'],0,[common.comment,'CommentsPositionController'],0);Ext.cmd.derive('common.comment.CommentsPosition',Ext.Panel,{padding:'19',frame:!0,controller:'comment-position',viewModel:'comment-position',layout:{type:'vbox',pack:'start',align:'stretch'},initComponent:function(){var a=this;a.rowEditing=new Ext.grid.plugin.RowEditing({listeners:{edit:function(c,b){b.record.set('pst_comment',b.newValues['pst_comment']);a.getController().onSaveComment()},canceledit:function(a,b){}}});if(!a.contextMenu){a.contextMenu=new Ext.menu.Menu({items:[{text:'Edit',handler:function(e){var d=a.down('grid'),b=a.contextMenu.record,c=d.store.find('id',b.data.id);a.rowEditing.startEdit(c,0)}},{text:'Delete',handler:function(e){var b=a.down('grid'),c=a.contextMenu.record,d=b.store.find('id',c.data.id);b.getSelectionModel().select(d);a.getController().onDeleteComment(e)}}]})}Ext.apply(this,{items:[{xtype:'container',layout:'hbox',align:'fit',items:[{xtype:'textfield',name:'comments',margin:'0 6 0 0',flex:1,enableKeyEvents:!0,listeners:{change:function(c,d){var b=a.down('grid').store;if(b.getNewRecords().length==0){}},specialkey:function(d,b){var c=a.getController();if(b.keyCode==13&&this.value){c.onNewComment(this.value);c.onSaveComment();this.setValue('')}else {if(b.keyCode==27){this.setValue('')}}}}},{xtype:'button',text:'Post',itemId:'btnSaveComment',align:'stretch',handler:function(){var c=a.getController();var b=a.down('[name="comments"]');if(b.value){c.onNewComment(b.value);c.onSaveComment();b.setValue('')}},iconCls:'x-fa fa-floppy-o'}]},{xtype:'grid',flex:1,frame:!0,split:!0,hideHeaders:!0,cls:'comment-grid',bind:{store:'{comments}',selection:'{currentcomment}'},plugins:[a.rowEditing],columns:[{text:'',dataIndex:'pst_comment',renderer:this.formatUser,flex:2,menuDisabled:!0,editor:{xtype:'textfield',allowBlank:!1}},{xtype:'datecolumn',text:'Date',dataIndex:'date',hidden:!0}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},formatUser:function(c,f,a){var e=this,b=Ext.id(),d='
    {0} comments on {1}
    {3}
    ';Ext.defer(function(){Ext.widget('button',{renderTo:b,iconCls:'x-fa fa-caret-down',style:'padding:0;margin-left:20px',handler:function(h,b){var g={x:b.event.clientX,y:b.event.clientY},d=e.up('comments-position').contextMenu;d.record=a;d.showAt(g)}})},50);return Ext.String.format(d,a.get('owner'),a.get('date')||'Unknown',b,c)}},0,['comments-position'],['component','box','container','panel','comments-position'],{'component':!0,'box':!0,'container':!0,'panel':!0,'comments-position':!0},['widget.comments-position'],0,[common.comment,'CommentsPosition'],0);Ext.cmd.derive('common.contact.ContactController',Ext.app.ViewController,{onFormCancel:function(){this.getView().lookupReference('windowForm').getForm().reset();this.getView().close()},onFormSubmit:function(){var c=this.getView(),d=c.lookupReference('windowForm'),b=d.getForm(),a=b.getValues();a.current_url=window.location.href;a.current_user=window.sessionStorage.dri_username;if(b.isValid()){Ext.Ajax.request({url:'/dri/api/contact/',method:'POST',params:a,success:function(){c.close();Ext.MessageBox.alert('Thank you!','Your inquiry has been sent. We will respond as soon as possible.')},failure:function(a,b){Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Sorry, message was not sent.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this})}})}}},0,0,0,0,['controller.contact'],0,[common.contact,'ContactController'],0);Ext.cmd.derive('common.contact.Contact',Ext.window.Window,{reference:'contactWindow',title:'Contact Us',controller:'contact',width:400,height:500,minWidth:300,minHeight:380,layout:'fit',resizable:!0,modal:!0,defaultFocus:'firstName',closeAction:'destroy',items:[{xtype:'form',reference:'windowForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{margin:'0 0 20 0',xtype:'component',html:['Thank you for visiting our site! We welcome your feedback; ','please click the button below to send us a message. We will ','respond to your inquiry as quickly as possible.']},{xtype:'textfield',fieldLabel:'Name',name:'name',allowBlank:!1},{xtype:'textfield',fieldLabel:'Your Email Address',vtype:'email',name:'from',allowBlank:!1},{xtype:'textfield',fieldLabel:'Subject',name:'subject',allowBlank:!1},{xtype:'textareafield',fieldLabel:'How can we help?',labelAlign:'top',flex:1,margin:'0',name:'message',allowBlank:!1,emptyText:'Describe the problem or share your ideas.'}],buttons:[{text:'Cancel',handler:'onFormCancel'},{text:'Send',handler:'onFormSubmit'}]}]},0,['form-contact-window'],['component','box','container','panel','window','form-contact-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'form-contact-window':!0},['widget.form-contact-window'],0,[common.contact,'Contact'],0);Ext.cmd.derive('common.footer.FooterController',Ext.app.ViewController,{onClickContact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()}},0,0,0,0,['controller.footer'],0,[common.footer,'FooterController'],0);Ext.cmd.derive('common.footer.Footer',Ext.toolbar.Toolbar,{controller:'footer',cls:'des-portal-footer',height:28,layout:{pack:'center',align:'middle'},viewModel:{data:{}},items:[{xtype:'tbtext',html:'Powered by LIneA | Dark Energy Survey | NCSA',cls:'des-portal-footer-text'}]},0,['dri-footer'],['component','box','container','toolbar','dri-footer'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-footer':!0},['widget.dri-footer'],0,[common.footer,'Footer'],0);Ext.cmd.derive('common.ToolbarController',Ext.app.ViewController,{listen:{component:{'dri-header':{afterrender:'onAfterRender'}}},logout:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/dri/api/api-auth/logout/?next=/dri/apps/',b,c);window.location.assign(a)},projectHome:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/',b,c);window.location.assign(a)},contact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()},about:function(){window.open('http://www.linea.gov.br')},onAfterRender:function(){var a=this;a.loadUsername();a.loaddTutorials()},loaddTutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');a.addFilter([{property:'app_name',value:c.get('internal_name')}]);a.load({scope:this,callback:b.onLoadTutorials})},onLoadTutorials:function(){var b=this,d=b.getViewModel(),c=d.getStore('tutorials'),a=b.lookupReference('headermenututorials');if(c.count()>0){a.enable()}else {a.disable()}},tutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');if(this.wincontact){this.wincontact=null}this.wintutorials=Ext.create('common.help.Tutorials',{store:a});this.wintutorials.show()},onClickHelp:function(){var e=this,f=e.getViewModel(),c=window.location.protocol,d=window.location.host,b=f.get('help_url'),a;a=Ext.String.format('{0}//{1}/{2}',c,d,b);window.open(a)},loadUsername:function(){var a=this,b=a.getViewModel();Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(c){var a=JSON.parse(c.responseText);b.set('username',a.username);window.dri_username=a.username}})}},0,0,0,0,['controller.toolbar'],0,[common,'ToolbarController'],0);Ext.cmd.derive('common.help.TutorialsController',Ext.app.ViewController,{onSelect:function(e,c){var d=this,b=d.lookupReference('video'),a;a=Ext.create('Ext.Component',{flex:1,html:''});b.removeAll();b.add(a)}},0,0,0,0,['controller.tutorials'],0,[common.help,'TutorialsController'],0);Ext.cmd.derive('common.help.Tutorials',Ext.window.Window,{title:'Tutorials',controller:'tutorials',config:{store:null},initComponent:function(){var a=this;Ext.apply(this,{layout:'border',width:700,height:400,minWidth:300,minHeight:280,resizable:!0,maximizable:!0,modal:!0,closeAction:'destroy',items:[{xtype:'grid',reference:'tutorials_grid',region:'west',split:!0,hideHeaders:!0,width:200,store:a.getStore(),columns:[{dataIndex:'ttr_title',flex:1}],listeners:{select:'onSelect'}},{xtype:'panel',region:'center',reference:'video',split:!0,layout:{type:'vbox',pack:'start',align:'stretch'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)}},0,['tutorials-window'],['component','box','container','panel','window','tutorials-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'tutorials-window':!0},['widget.tutorials-window'],0,[common.help,'Tutorials'],0);Ext.cmd.derive('common.header.Toolbar',Ext.toolbar.Toolbar,{controller:'toolbar',cls:'des-portal-headerbar toolbar-btn-shadow',layout:{type:'hbox',align:'middle'},viewModel:{data:{home:'',desPortalLogo:'resources/des-portal-logo.png',tooltip:'Home',username:''},stores:{tutorials:{fields:['id','application','application_display_name','ttr_title','ttr_src','ttr_description'],remoteSort:!0,remoteFilter:!0,autoLoad:!1,pageSize:0,proxy:{type:'django',url:'/dri/api/tutorial/'}}}},viewItems:function(){return [{xtype:'component',cls:'des-portal-logo',bind:{html:'Home'}},{xtype:'component',cls:'des-portal-appname',bind:{html:'{name}'},flex:1},'->',{xtype:'button',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',itemId:'btnusername',bind:{text:'{username}'}},{xtype:'button',iconCls:'x-fa fa-home',ui:'white-toolbar',cls:'delete-focus-bg',scale:'medium',handler:'projectHome',tooltip:'Home of the Science Server'},{xtype:'button',reference:'headermenu',iconCls:'x-fa fa-bars',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',arrowVisible:!1,menu:[{text:'About LIneA',handler:'about'},{text:'Contact Us',handler:'contact'},{text:'Tutorials',iconCls:'x-fa fa-question-circle',reference:'headermenututorials',disabled:!0,handler:'tutorials'},{text:'Help',iconCls:'x-fa fa-question',reference:'headermenuhelp',handler:'onClickHelp'},'-',{text:'Log out',iconCls:'x-fa fa-sign-out',handler:'logout'}]}]},initComponent:function(){this.items=this.viewItems();Ext.toolbar.Toolbar.prototype.initComponent.call(this)},afterRender:function(){var c=this,b=window.location.href,a;a=b.split('#')[0];c.getViewModel().set('home',a);Ext.toolbar.Toolbar.prototype.afterRender.apply(this,arguments)}},0,['dri-header'],['component','box','container','toolbar','dri-header'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-header':!0},['widget.dri-header'],0,[common.header,'Toolbar'],0);Ext.cmd.derive('common.link.LinkPrompt',Ext.window.Window,{config:{link:null},closable:!0,title:'Get Link',closeAction:'destroy',initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'container',layout:'hbox',padding:10,style:{overflow:'hidden'},items:[{xtype:'container',layout:{type:'vbox',align:'stretch'},items:[{xtype:'container',layout:'hbox',margin:'0 0 5 0',items:[{xtype:'textfield',value:a.getLink(),readOnly:!0,width:400,flex:1,height:32},{xtype:'button',iconCls:'x-fa fa-clipboard',tooltip:'Copy to clipboard',scope:a,handler:'copyClipboard',scale:'medium'},{xtype:'button',iconCls:'x-fa fa-external-link',tooltip:'Open in new tab',scope:a,handler:'openNew',scale:'medium'}]}]}]}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},openNew:function(){var a=this,b=a.getLink();window.open(b);a.close()},copyClipboard:function(){var b=this,d=b.down('textfield'),f=d.getEl(),g='#'+f.id+'-inputEl',a;a=document.querySelector(g);a.select();try{var c=document.execCommand('copy');var e=c?'successful':'unsuccessful';console.log('Copy '+e)}catch(h){console.log(h);console.log('Oops, unable to copy')}b.close()}},0,0,['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},0,0,[common.link,'LinkPrompt'],0);Ext.cmd.derive('common.model.Dataset',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'tag',type:'int'},{name:'tag_display_name',type:'string'},{name:'release',type:'int'},{name:'release_name',type:'string'},{name:'release_display_name',type:'string'},{name:'tite',type:'int'},{name:'run',type:'string'},{name:'date',type:'string'},{name:'tli_tilename',type:'string'},{name:'tli_ra',type:'float'},{name:'tli_ra',type:'float'},{name:'tli_dec',type:'float'},{name:'tli_urall',type:'float'},{name:'tli_udecll',type:'float'},{name:'tli_uraur',type:'float'},{name:'tli_udecur',type:'float'},{name:'release_tag',type:'string',convert:function(b,a){return Ext.String.format('{0} - {1}',a.get('release_display_name'),a.get('tag_display_name'))}},{name:'image_src_ptif',type:'string'},{name:'image_src_thumbnails',type:'string'},{name:'g',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'g',a.get('tli_tilename'))}},{name:'r',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'r',a.get('tli_tilename'))}},{name:'i',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'i',a.get('tli_tilename'))}},{name:'z',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'z',a.get('tli_tilename'))}},{name:'y',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'y',a.get('tli_tilename'))}},{name:'irg',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'irg',a.get('tli_tilename'))}}],isInsideTile:function(a,e){var d=this,a=parseFloat(a),e=parseFloat(e),b,c,f,g;if(a>180){a=a-360}b=d.get('tli_urall');c=d.get('tli_uraur');f=d.get('tli_udecll');g=d.get('tli_udecur');if(b>180){b=b-360}if(c>180){c=c-360}if(a>b&&af&&e180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decul',type:'float',convert:function(b,a){value=a.get('tli_decul');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'rall',type:'float',convert:function(b,a){value=a.get('tli_rall');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decll',type:'float',convert:function(b,a){value=a.get('tli_decll');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'ralr',type:'float',convert:function(b,a){value=a.get('tli_ralr');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'declr',type:'float',convert:function(b,a){value=a.get('tli_declr');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'raur',type:'float',convert:function(b,a){value=a.get('tli_raur');if(value>180){value=value-360}value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}},{name:'decur',type:'float',convert:function(b,a){value=a.get('tli_decur');value=Ext.util.Format.number(value,'0.0000');return parseFloat(value)}}]},0,0,0,0,0,0,[common.model,'Footprint'],0);Ext.cmd.derive('common.model.Map',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_user_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'prd_is_public',type:'boolean'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'prd_filter',type:'string'},{name:'prl_related',type:'string'},{name:'prl_cross_identification',type:'string'},{name:'prl_cross_property',type:'string'},{name:'tablename',type:'string'},{name:'mpa_nside',type:'int'},{name:'mpa_ordering',type:'string'}]},0,0,0,0,0,0,[common.model,'Map'],0);Ext.cmd.derive('common.model.Release',Ext.data.Model,{fields:[{name:'rls_name',type:'string'},{name:'rls_version',type:'string'},{name:'rls_date',type:'date'},{name:'rls_description',type:'float'},{name:'rls_doc_url',type:'string'},{name:'rls_display_name',type:'string'},{name:'rls_default',type:'boolean'},{name:'tiles_count',type:'int'},{name:'tags_count',type:'int',convert:function(a){if(a==1){return ''}}},{name:'is_new',type:'boolean',convert:function(e,b){if(b.get('rls_date')){var a=b.get('rls_date'),c=-2,d=Ext.Date.add(new Date(),Ext.Date.DAY,c);return Ext.Date.between(a,d,a)}}}]},0,0,0,0,0,0,[common.model,'Release'],0);Ext.cmd.derive('common.model.Survey',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'srv_release',type:'int'},{name:'srv_filter',type:'int'},{name:'filter',type:'string'},{name:'srv_project',type:'string'},{name:'srv_display_name',type:'string'},{name:'srv_url',type:'string'},{name:'srv_target',type:'string'},{name:'srv_fov',type:'string'}]},0,0,0,0,0,0,[common.model,'Survey'],0);Ext.cmd.derive('common.model.Tag',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'tag_release',type:'int'},{name:'tag_name',type:'string'},{name:'tag_display_name',type:'string'},{name:'tag_status',type:'boolean'},{name:'tag_install_date',type:'date'},{name:'is_new',type:'boolean',convert:function(e,b){if(b.get('tag_install_date')){var a=b.get('tag_install_date'),c=-2,d=Ext.Date.add(new Date(),Ext.Date.DAY,c);return Ext.Date.between(a,d,a)}}}]},0,0,0,0,0,0,[common.model,'Tag'],0);Ext.cmd.derive('common.statistics.Events',Ext.app.Controller,{init:function(){var a=this;Ext.GlobalEvents.on('eventregister',a.onEventRegister)},onEventRegister:function(a){var b=Ext.util.Cookies.get('csrftoken');Ext.Ajax.request({url:window.location.origin+'/dri/api/statistics/',method:'POST',params:{csrfmiddlewaretoken:b,event:a},success:function(b){},failure:function(b,c){}})}},0,0,0,0,0,0,[common.statistics,'Events'],0);Ext.cmd.derive('common.store.Tiles',common.store.MyStore,{pageSize:100,remoteFilter:!0,remoteSort:!0,proxy:{type:'django',timeout:90000,url:'/dri/api/tiles/'},filterByRaDec:function(a,d){var a=parseFloat(a),d=parseFloat(d),b,c,e;this.each(function(f){if(a>180){a=a-360}b=f.get('tli_urall');c=f.get('tli_uraur');if(b>180){b=b-360}if(c>180){c=c-360}if(ba&&f.get('tli_udecur')>d){e=f;return !1}},this);return e}},0,0,0,0,['store.tiles'],0,[common.store,'Tiles'],0);Ext.cmd.derive('common.store.Datasets',common.store.Tiles,{model:'common.model.Dataset',remoteFilter:!0,remoteSort:!0,pageSize:100,proxy:{type:'django',timeout:90000,url:'/dri/api/dataset/'}},0,0,0,0,['store.datasets'],0,[common.store,'Datasets'],0);Ext.cmd.derive('common.store.Footprints',common.store.Tiles,{model:'common.model.Footprint',remoteFilter:!0,remoteSort:!0,pageSize:0,proxy:{type:'django',timeout:90000,url:'/dri/api/footprints/',reader:{type:'array'}}},0,0,0,0,['store.footprints'],0,[common.store,'Footprints'],0);Ext.cmd.derive('common.store.Maps',common.store.MyStore,{model:'common.model.Map',autoLoad:!1,pageSize:0,remoteFilter:!0,proxy:{type:'django',url:'/dri/api/map/'}},0,0,0,0,['store.maps'],0,[common.store,'Maps'],0);Ext.cmd.derive('common.store.MyTreeStore',Ext.data.TreeStore,{proxy:{type:'django',appendId:!1,reader:{type:'json',rootProperty:'children'}},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c=JSON.parse(a.response.responseText);switch(a.status){case 403:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;default:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this});}}}}}},0,0,0,0,0,0,[common.store,'MyTreeStore'],0);Ext.cmd.derive('common.store.Releases',common.store.MyStore,{model:'common.model.Release',autoLoad:!0,remoteSort:!0,remoteFilter:!1,proxy:{type:'django',url:'/dri/api/releases/'},sorters:[{property:'rls_date',direction:'DESC'},{property:'rls_display_name',direction:'ASC'}]},0,0,0,0,['store.releases'],0,[common.store,'Releases'],0);Ext.cmd.derive('common.store.Surveys',common.store.MyStore,{model:'common.model.Survey',autoLoad:!1,remoteFilter:!0,remoteSort:!0,pageSize:0,proxy:{type:'django',url:'/dri/api/surveys/'}},0,0,0,0,['store.surveys'],0,[common.store,'Surveys'],0);Ext.cmd.derive('common.store.Tags',common.store.MyStore,{model:'common.model.Tag',remoteFilter:!0,remoteSort:!0,proxy:{type:'django',url:'/dri/api/tags/'},sorters:[{property:'tag_display_name',direction:'ASC'}]},0,0,0,0,['store.tags'],0,[common.store,'Tags'],0);Ext.cmd.derive('aladin.Events',Ext.Base,{mouseIsDown:!1,mouseInitialPosition:[],mouseLastPosition:[],addCustomEvents:function(){var a=this;a.addDblClickListener();a.addMouseDown();a.addMouseMoveListener();a.addMouseUP()},addDblClickListener:function(){var a=this,d=a.getAladin(),f=d.view,e=d.view.reticleCanvas,b,c;e.addEventListener('dblclick',function(d){c=f.imageCanvas.relMouseCoords(d);b=a.mousePositionToSky(c);if(b){a.updateLocation(b);if(!a.preventDbClickFire){a.preventDbClickFire=!0;task=a.runner.newTask({run:function(){a.preventDbClickFire=!1},interval:20,repeat:1});task.start();a.fireEvent('ondblclick',b,a)}}})},addMouseDown:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,b,c;e.addEventListener('mousedown',function(e){c=d.imageCanvas.relMouseCoords(e);b=a.mousePositionToSky(c);if(b){a.mouseIsDown=!0;a.mouseInitialPosition=b;a.mouseLastPosition=b}})},addMouseMoveListener:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,b,c;e.addEventListener('mousemove',function(e){c=d.imageCanvas.relMouseCoords(e);b=a.mousePositionToSky(c);if(b){a.updateLocation(a.getRaDec(),b);if(a.mouseIsDown){a.mouseLastPosition=b;a.fireEvent('reticlemove',a.getRaDec(),a)}}})},addMouseUP:function(){var a=this,f=a.getAladin(),d=f.view,e=d.reticleCanvas,c,b;e.addEventListener('mouseup',function(e){b=d.imageCanvas.relMouseCoords(e);c=a.mousePositionToSky(b);if(c){if(a.mouseIsDown){if(!Ext.Array.equals(a.mouseInitialPosition,a.mouseLastPosition)){a.fireEvent('onpanend',a.getRaDec(),a)}else {a.fireEvent('onclick',a.mouseLastPosition,a)}}a.mouseIsDown=!1;a.mouseInitialPosition=[];a.mouseLastPosition=[]}})},mousePositionToSky:function(e){var g=this,f=g.getAladin(),a=f.view,d,b,c=[];d=AladinUtils.viewToXy(e.x,e.y,a.width,a.height,a.largestDim,a.zoomFactor);try{b=a.projection.unproject(d.x,d.y)}catch(h){return}if(a.cooFrame==CooFrameEnum.GAL){c=CooConversion.GalacticToJ2000([b.ra,b.dec])}else {c=[parseFloat(b.ra.toFixed(5)),parseFloat(b.dec.toFixed(5))]}return c},skyToString:function(a){if(a&&a[0]&&a[1]){return String(a[0].toFixed(5)+', '+a[1].toFixed(5))}},updateLocation:function(e,d){var a=this,c,b;c=a.skyToString(e);b=a.skyToString(d);a.setLocation(c,b)},onClickBtnMap:function(){var a=this,c=a.getViewModel(),b=c.get('release');if(a.windowMapSelection==null){a.windowMapSelection=Ext.create('aladin.maps.MapSelectionWindow',{width:182,height:237,x:45,y:55,resizable:!1,aladin:a})}a.windowMapSelection.setRelease(b);if(a.windowMapSelection.isHidden()){a.windowMapSelection.show()}else {a.windowMapSelection.hide()}}},0,0,0,0,0,0,[aladin,'Events'],0);Ext.cmd.derive('aladin.model.Image',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'img_url',type:'string'},{name:'product',type:'int'}]},0,0,0,0,0,0,[aladin.model,'Image'],0);Ext.cmd.derive('aladin.store.Images',common.store.MyStore,{model:'aladin.model.Image',autoLoad:!1,pageSize:0,remoteFilter:!0,proxy:{type:'django',url:'/dri/api/aladin/image/'}},0,0,0,0,['store.aladin_images'],0,[aladin.store,'Images'],0);Ext.cmd.derive('aladin.maps.MapSelectionController',Ext.app.ViewController,{listen:{component:{'aladin-maps-mapselectionwindow':{changerelease:'onChangeRelease'}}},onChangeRelease:function(k){var a=this,h=a.getViewModel(),g=h.getView(),c=h.getStore('maps_store'),f=a.lookup('cmbType'),e=a.lookup('cmbClass'),b=f.getStore(),i=e.getStore(),d=a.lookup('cmbFilter'),j=d.getStore();g.setLoading(!0);c.addFilter([{property:'release_id',value:k},{property:'with_image',value:!0}]);c.load({callback:function(){f.reset();b.removeAll();e.reset();i.removeAll();d.reset();j.removeAll();c.each(function(a){if(b.findRecord('pgr_group',a.get('pgr_group'))==null){b.add(a)}},this);g.setLoading(!1)}})},onSelectMapType:function(h){var b=this,i=b.getViewModel(),f=h.selection,g=i.getStore('maps_store'),d=b.lookup('cmbClass'),a=d.getStore(),c=b.lookup('cmbFilter'),e=c.getStore();d.reset();a.removeAll();c.reset();e.removeAll();g.each(function(b){if(b.get('pgr_group')==f.get('pgr_group')&&a.findRecord('prd_class',b.get('prd_class'))==null){a.add(b)}},this)},onSelectMapClass:function(f){var d=this,g=d.getViewModel(),c=f.selection,e=g.getStore('maps_store'),b=d.lookup('cmbFilter'),a=b.getStore();b.reset();a.removeAll();e.each(function(b){if(b.get('pgr_group')==c.get('pgr_group')&&b.get('prd_class')==c.get('prd_class')){a.add(b)}},this)},onSelectMapFilter:function(g){var d=this,c=d.getViewModel(),f=c.getView(),e=f.getAladin(),b=g.selection,a=c.getStore('aladin_images_store');a.addFilter([{property:'product',value:b.get('id')}]);a.load({callback:function(){if(a.getCount()!=1){Ext.MessageBox.alert('Warning',a.getCount().toString()+' images found for same map!')}else {aladin_last_nonmap_survey=c.get('aladin_last_nonmap_survey');if(aladin_last_nonmap_survey==null){c.set('aladin_last_nonmap_survey',e.getImageSurvey())}var f=a.getAt(0).get('img_url');survey={'id':'map_'+b.get('id').toString(),'url':f,'name':b.get('pcl_display_name'),'filter':b.get('prd_filter'),'maxOrder':3,'frame':'equatorial','options':{'imgFormat':'png'}};e.readProperties(f,function(a){survey['maxOrder']=a['maxOrder'];d.setMapSurvey(survey)},function(a){console.log('aladin.readProperties() error: %o',a);d.setMapSurvey(survey)})}}})},setMapSurvey:function(c){var e=this,a=e.getViewModel(),d=a.getView(),b=d.getAladin();mapSurvey=b.createImageSurvey(c);b.setImageSurvey(mapSurvey);a.set('aladin_last_map_survey',mapSurvey);a.set('map_selected',!0)},onDisplayOnOff:function(f){var e=this,a=e.getViewModel(),d=a.getView(),c=d.getAladin(),b=null;if(a.get('map_selected')){b=a.get('aladin_last_map_survey')}else {b=a.get('aladin_last_nonmap_survey')}c.setImageSurvey(b)}},0,0,0,0,['controller.mapselection'],0,[aladin.maps,'MapSelectionController'],0);Ext.cmd.derive('aladin.maps.MapSelectionWindow',Ext.window.Window,{controller:'mapselection',viewModel:'mapselection',config:{aladin:null},initComponent:function(){var a=this,b=a.getViewModel();Ext.apply(this,{title:'Map viewer',closeAction:'hide',bodyPadding:5,items:[{xtype:'combobox',reference:'cmbType',fieldLabel:'Map Type:',labelAlign:'top',emptyText:'',displayField:'pgr_display_name',valueField:'pgr_group',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapType'},editable:!1,queryMode:'local'},{xtype:'combobox',reference:'cmbClass',fieldLabel:'Map Class:',labelAlign:'top',emptyText:'',displayField:'pcl_display_name',valueField:'prd_class',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapClass'},editable:!1,queryMode:'local'},{xtype:'combobox',reference:'cmbFilter',fieldLabel:'Filter:',labelAlign:'top',emptyText:'',displayField:'prd_filter',valueField:'id',store:{type:'maps',autoLoad:!1,remoteFilter:!1},listeners:{select:'onSelectMapFilter'},editable:!1,queryMode:'local'},{xtype:'checkbox',reference:'chkOnOff',boxLabel:'Display Map',handler:'onDisplayOnOff',bind:{disabled:'{!aladin_switchable}',value:'{map_selected}'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setRelease:function(a){var b=this,c=b.getViewModel();if(a!=c.get('release')){c.set('release',a);b.fireEvent('changerelease',a)}}},0,['aladin-maps-mapselectionwindow'],['component','box','container','panel','window','aladin-maps-mapselectionwindow'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'aladin-maps-mapselectionwindow':!0},['widget.aladin-maps-mapselectionwindow'],0,[aladin.maps,'MapSelectionWindow'],0);Ext.cmd.derive('aladin.Interfaces',Ext.Base,{windowInfo:null,windowMapSelection:null,enableDisableInfo:function(d,c){var b=this,a=b.windowInfo;if(!a){a=b.createWindowInfo()}a.setVisible(c)},createWindowInfo:function(){var b=this,a;a=Ext.create('Ext.Component',{width:280,height:100,x:5,y:10,renderTo:b.body,header:!1,resizable:!1,constrain:!0,cls:'aladin-location-info',style:{position:'absolute',zIndex:29},tpl:['
    {image_survey}','
    {tilename}','
    RA, Dec (deg): {location}
    Mouse RA, Dec (deg): {mlocation}
    ']});b.windowInfo=a;return a},getInfoData:function(){var g=this,a=g.getViewModel(),e=a.get('tile'),f=a.get('tag'),k=a.get('release_name'),d,b,c='',j='',i='',h='';if(f){h=k;i=f.get('tag_display_name')}if(e){j=e.get('tli_tilename')}b=g.getImageSurvey();if(b&&b.id!='empty_survey'){c=b.name}d={image_survey:c,location:a.get('location'),mlocation:a.get('mlocation'),release:h,tag:i,tilename:j};return d},updateInfoData:function(){var a=this,c=a.windowInfo,b=a.getInfoData();if(a.windowInfo){c.setData(b)}},makeToolbar:function(){var c=this,a=c.getToolbarPosition(),b=!1;if(a==='left'||a==='right'){b=!0}return Ext.create('Ext.toolbar.Toolbar',{vertical:b,reference:'aladinToolbar'})},makeToolbarButtons:function(){var a=this,c,b=[],e=a.getToolbarPosition(),f=!1;if(e==='left'||e==='right'){f=!0}if(a.getEnableShift()){b.push({xtype:'button',tooltip:'Switch between Aladdin / Visiomatic.',iconCls:'x-fa fa-exchange',scope:a,handler:a.onShift,bind:{disabled:'{!tile}'}})}if(a.getEnableLayersControl()){b.push({xtype:'button',scope:a,iconCls:'x-fa fa-picture-o',tooltip:'Image Layer',menu:a.createImageLayersMenuItems(),menuAlign:'tr',arrowVisible:!1,itemId:'BtnImageLayers'})}if(a.getShowFilters()){var d=Ext.create('common.BandFilter',{filters:['g','r','i','z','Y','irg'],defaultFilter:'irg',vertical:f,listeners:{scope:a,'onfilter':a.onFilter}});a.setBandFilter(d);b.push(d)}if(a.getEnableViewMenu()){b.push(a.createViewMenu())}if(a.getEnableMaps()){b.push({xtype:'button',tooltip:'Map Viewer',iconCls:'x-fa fa-th',scope:a,handler:a.onClickBtnMap})}if(a.getEnableGoto()){b.push({iconCls:'x-fa fa-search',tooltip:'Go To position. 356.0085, 0.5168 or 23 44 2.040 +00 31 0.48',menuAlign:'tr',arrowVisible:!1,menu:[{xtype:'textfield',emptyText:'RA (deg), Dec (deg)',triggers:{'goto':{cls:'x-form-search-trigger',scope:this,handler:a.submitGoToPosition,tooltip:'Go To position. 356.0085, 0.5168 or 23 44 2.040 +00 31 0.48'}},listeners:{scope:this,specialkey:function(b,a){if(a.getKey()==a.ENTER){this.submitGoToPosition(b)}}}}]})}if(a.getEnableExportPng()){if(Ext.firefoxVersion>0){b.push({xtype:'button',tooltip:'Snapshot',iconCls:'x-fa fa-camera',scope:a,handler:a.exportAsPng})}}c=a.getAuxTools();if(c.length>0){Ext.each(c,function(a){b.push(a)})}return b},createViewMenu:function(){var c=this,b,a;a=c.createViewMenuItems();if(a.length>0){b=Ext.create('Ext.button.Button',{iconCls:'x-fa fa-cog',tooltip:'Change view settings',itemId:'ViewMenu',menu:a,menuAlign:'tr',arrowVisible:!1})}return b},createViewMenuItems:function(){var a=this,b=[];b.push({xtype:'menucheckitem',text:'Tiles Grid',itemId:'TileGridMenu',menu:[],menuAlign:'tr',checkHandler:a.onCheckTileGridMenu,disabled:!0,checked:a.getTilesGridVisible()});b.push('-');if(a.getEnableColorMap()){b.push(a.createColorMapMenu())}b.push('-');if(a.getEnableFootprint()){var c=a.getHideFootprint();b.push({xtype:'menucheckitem',itemId:'DesFootprint',text:'Des Footprint',checked:!c,scope:a,checkHandler:a.showDesFootprint})}if(a.getEnableReticle()){b.push({xtype:'menucheckitem',text:'Reticle',checked:!0,scope:a,checkHandler:a.showReticle})}if(a.getEnableHealpixGrid()){b.push({xtype:'menucheckitem',text:'Healpix Grid',scope:a,checkHandler:a.showHealpixGrid})}if(a.getEnableHealpixGrid()){b.push({xtype:'menucheckitem',text:'Info',scope:a,checkHandler:a.enableDisableInfo,checked:a.getInfoEnabled()})}return b},createTileGridMenu:function(){var b=this,d=b.down('#ViewMenu'),c=b.createTileGridMenuItems(),a=b.down('#TileGridMenu');if(!a){a={text:'Tiles Grid',itemId:'TileGridMenu',menu:c};d.getMenu().add(a)}else {a.getMenu().removeAll();a.getMenu().add(c);a.enable()}},createTileGridMenuItems:function(){var a=this,c=a.getStoreTags(),b=[];if(c.count()>0){c.each(function(c){b.push({xtype:'menucheckitem',text:c.get('tag_display_name'),tag:c.get('id'),scope:a,checkHandler:a.onCheckTileGrid})},this)}return b},createColorMapMenu:function(){var c=this,b,a;a=c.createColorMapMenuItems();b={text:'Color Map',tooltip:'Change Color Map',reference:'BtnColorMap',itemId:'BtnColorMap',menu:a,menuAlign:'tr',arrowVisible:!1};return b},createColorMapMenuItems:function(){var a=this,c=a.getColorMaps(),b=[];for(var d in c){b.push({xtype:'menucheckitem',text:c[d],group:'colormaps',mapName:c[d],scope:a,checkHandler:a.changeColorMap})}b.push('-');b.push({text:'Reverse',scope:a,handler:a.reverseColor});return b},updateColorMapMenu:function(){var a=this,d=a.down('#BtnColorMap'),b,c;b=Ext.clone(ColorMap.MAPS_NAMES);a.setColorMaps(b);c=a.createColorMapMenuItems();d.setMenu(c)},createImageLayersMenuItems:function(){var a=this,f=a.getExternalSurveys(),b=a.getSurveys(),c=[],d,g;if(b!=null&&b.length>0){for(var e in b){desSurvey=b[e];if(desSurvey.id!='empty_survey'){c.push({xtype:'menucheckitem',text:desSurvey['name'],group:'imageSurveys',survey:desSurvey,scope:a,checked:!0,checkHandler:a.selectExternalSurvey})}}c.push('-')}for(var e in f){d=f[e];c.push({xtype:'menucheckitem',text:d['name'],group:'imageSurveys',survey:d,scope:a,checkHandler:a.selectExternalSurvey})}return c},updateImageLayersMenuItems:function(){var c=this,b=c.down('#BtnImageLayers'),a;if(b){a=c.createImageLayersMenuItems();b.setMenu(a)}}},0,0,0,0,0,0,[aladin,'Interfaces'],0);Ext.cmd.derive('aladin.Aladin',Ext.panel.Panel,{layout:'fit',libA:null,colorsDefault:['#A0F65A','#00BFFF','#FF0000','#FFFF00','#FF7F00','#7D26CD','#FF1493'],colorsAvailable:[],config:{aladinId:null,cmpAladin:null,aladin:null,aladinReady:!1,hipsDir:'/static/stripeHiPS',aladinOptions:{fov:180,target:'02 23 11.851 -09 40 21.59',cooFrame:'J2000',survey:'empty_survey',showReticle:!0,showZoomControl:!0,showFullscreenControl:!0,showLayersControl:!1,showGotoControl:!1,showShareControl:!1,showCatalog:!0,showFrame:!1,showCooGrid:!1,fullScreen:!1,reticleColor:'rgb(178, 50, 178)',reticleSize:28,log:!0,allowFullZoomout:!0},aladinWidth:300,aladinHeight:300,autoSize:!0,storeSurveys:null,storeMaps:null,surveys:[],maps:[],colorMaps:[],emptySurvey:{'id':'empty_survey','url':'','name':'','filter':'','maxOrder':11,'frame':'equatorial','options':{imgFormat:'png'}},enableLayersControl:!0,enableToolbar:!0,showFilters:!1,bandFilter:null,availableFilters:[],enableViewMenu:!0,enableExportPng:!0,enableReticle:!0,enableHealpixGrid:!0,enableColorMap:!0,enableFootprint:!0,hideFootprint:!0,enableGoto:!1,gotoSetPosition:!0,auxTools:[],storeTags:null,storeTiles:null,tilesGridVisible:!1,enableInfo:!0,infoEnabled:!0,location:'',mlocation:'',initialFov:null,enableMaps:!0,enableShift:!1,toolbarPosition:'left',externalSurveys:[{'id':'P/2MASS/color','url':'http://alasky.u-strasbg.fr/2MASS/Color','name':'2MASS colored','maxOrder':9,'frame':'equatorial','format':'jpeg'},{'id':'P/DSS2/color','url':'http://alasky.u-strasbg.fr/DSS/DSSColor','name':'DSS colored','maxOrder':9,'frame':'equatorial','format':'jpeg'},{'id':'P/DSS2/red','url':'http://alasky.u-strasbg.fr/DSS/DSS2Merged','name':'DSS2 Red (F+R)','maxOrder':9,'frame':'equatorial','format':'jpeg fits'},{'id':'P/Fermi/color','url':'http://alasky.u-strasbg.fr/Fermi/Color','name':'Fermi color','maxOrder':3,'frame':'equatorial','format':'jpeg'},{'id':'P/Finkbeiner','url':'http://alasky.u-strasbg.fr/FinkbeinerHalpha','maxOrder':3,'frame':'galactic','format':'jpeg fits','name':'Halpha'},{'id':'P/GALEXGR6/AIS/color','url':'http://alasky.u-strasbg.fr/GALEX/GR6-02-Color','name':'GALEX Allsky Imaging Survey colored','maxOrder':8,'frame':'equatorial','format':'jpeg'},{'id':'P/IRIS/color','url':'http://alasky.u-strasbg.fr/IRISColor','name':'IRIS colored','maxOrder':3,'frame':'galactic','format':'jpeg'},{'id':'P/Mellinger/color','url':'http://alasky.u-strasbg.fr/MellingerRGB','name':'Mellinger colored','maxOrder':4,'frame':'galactic','format':'jpeg'},{'id':'P/SDSS9/color','url':'http://alasky.u-strasbg.fr/SDSS/DR9/color','name':'SDSS9 colored','maxOrder':10,'frame':'equatorial','format':'jpeg'},{'id':'P/SPITZER/color','url':'http://alasky.u-strasbg.fr/SpitzerI1I2I4color','name':'IRAC color I1,I2,I4 - (GLIMPSE, SAGE, SAGE-SMC, SINGS)','maxOrder':9,'frame':'galactic','format':'jpeg'},{'id':'P/VTSS/Ha','url':'http://alasky.u-strasbg.fr/VTSS/Ha','maxOrder':3,'frame':'galactic','format':'png jpeg fits','name':'VTSS-Ha'},{'id':'P/XMM/EPIC','url':'http://saada.u-strasbg.fr/xmmallsky','name':'XMM-Newton stacked EPIC images (no phot. normalization)','maxOrder':7,'frame':'equatorial','format':'png fits'},{'id':'P/XMM/PN/color','url':'http://saada.unistra.fr/xmmpnsky','name':'XMM PN colored','maxOrder':7,'frame':'equatorial','format':'png jpeg'},{'id':'P/allWISE/color','url':'http://alasky.u-strasbg.fr/AllWISE/RGB-W4-W2-W1/','name':'AllWISE color','maxOrder':8,'frame':'equatorial','format':'jpeg'},{'id':'P/GLIMPSE360','url':'http://www.spitzer.caltech.edu/glimpse360/aladin/data','name':'GLIMPSE360','maxOrder':9,'frame':'equatorial','format':'jpeg'}]},isFirstSurvey:!0,viewModel:{data:{location:'',mlocation:'',tile:null,tag:null,release:null,release_name:''}},session:!0,preventDbClickFire:!1,runner:null,initComponent:function(){var a=this,c,b,d;if(window.A){a.libA=window.A}else {console.log('window.A ainda nao esta carregada')}a.setAladinId(a.getId()+'-placeholder');c=Ext.create('Ext.Component',{id:a.getAladinId(),width:a.getAladinWidth(),height:a.getAladinHeight()});if(a.getEnableToolbar()){b=a.leftToolBar=a.makeToolbar();d=a.makeToolbarButtons();b.add(d);if(a.getToolbarPosition()==='left'){a.lbar=b}else {if(a.getToolbarPosition()==='top'){a.tbar=b}}}Ext.apply(this,{items:[c],listeners:{scope:a,afterrender:'onAfterrender'}});a.runner=Ext.create('Ext.util.TaskRunner',{});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},onAfterrender:function(){var a=this,d='#'+a.getAladinId(),e=a.libA,c=a.getAladinOptions(),b,f;b=e.aladin(d,c);b.view.setUnknownSurveyIfNeeded=function(){};b._setImageSurvey=b.setImageSurvey;b.setImageSurvey=function(d,c){return b._setImageSurvey(d,function(){a.onChangeImageSurvey();if(c){c()}})};a.setAladin(b);a.createImageSurveys();if(a.getEnableColorMap()){a.updateColorMapMenu()}if(a.getInfoEnabled()){a.enableDisableInfo(null,a.getInfoEnabled())}a.addCustomEvents();a.setAladinReady(!0);a.fireEvent('aladinready',a)},onChangeImageSurvey:function(){this.addCustomEvents()},aladinIsReady:function(){var a=this;return a.getAladinReady()},getRaDec:function(){var b=this,a=b.getAladin();return a.getRaDec()},getEmptySurvey:function(){return Ext.clone(this.emptySurvey)},readProperties:function(c,a,b){ProgressiveCat.readProperties(c,a,b)},onResize:function(){var a=this,b=a.getAladin();if(a.getAutoSize()){b.view.fixLayoutDimensions()}},setSurveys:function(a){this.surveys=null;this.surveys=a;if(this.getAladin()&&a.length>0){this.removeLayers();this.createImageSurveys()}},createImageSurvey:function(e){var c=this,f=c.getEmptySurvey(),d=c.getAladin(),a,b,g;a=Ext.Object.merge(f,e);b=d.createImageSurvey(String(a.id),a.name,a.url,a.cooFrame,a.maxOrder,a.options);return b},createImageSurveys:function(){var a=this,b=a.getSurveys(),d=a.getFilter(),f=a.getEmptySurvey(),e,c;if(b.length===0){b.push(f)}for(var g in b){e=b[g];a.createImageSurvey(e)}if(d){c=a.getSurveyByFilter(d)}else {c=b[0]}a.updateImageLayersMenuItems();a.setImageSurvey(c)},getSurveyByFilter:function(c){var d=this,b=d.getSurveys(),a;for(var e in b){a=b[e];if(a.filter.toLowerCase()==c.toLowerCase()){return a}}},getImageSurvey:function(){var b=this,a=b.getAladin();if(a){return a.getBaseImageLayer()}else {return null}},setImageSurvey:function(b){var a=this,c=a.getAladin(),d=a.getEmptySurvey();if(b){c.setImageSurvey(b.id);if(a.isFirstSurvey){if(b.target!==''){a.goToPosition(b.target)}if(a.getInitialFov()){a.setFov(a.getInitialFov())}else {if(b.fov){a.setFov(b.fov)}}a.isFirstSurvey=!1}a.showDesFootprint();a.addCustomEvents();a.fireEvent('changeimage',b,a)}else {c.setImageSurvey(d.id)}},setStoreSurveys:function(a){var b=this;if(a){a.on({scope:this,load:'onStoreSurveysLoad',beforeload:'onStoreSurveysBeforeLoad'});b.storeSurveys=a}},onStoreSurveysBeforeLoad:function(a){var b=this;b.setLoading({store:a})},onStoreSurveysLoad:function(d){var a=this,g=a.getAladin(),f=a.getEmptySurvey(),c=[],b=[],e;if(d.count()===0){console.log('NAO TEM SURVEY');a.setImageSurvey(f)}d.each(function(a){e={id:String(a.get('id')),url:a.get('srv_url'),name:a.get('srv_display_name'),filter:a.get('filter'),target:a.get('srv_target'),fov:a.get('srv_fov')};c.push(e);b.push(a.get('filter'))});a.setSurveys(c);a.setAvailableFilters(b)},setLocation:function(c,b){var a=this,d=a.getViewModel();a.location=c;a.mlocation=b;d.set('location',c);d.set('mlocation',b);if(a.getAladin()){a.onChangeLocation()}},onChangeLocation:function(a){var b=this;if(!a){a=b.getRaDec()}b.identifyTile(a);b.updateInfoData()},setAvailableFilters:function(a){var b=this,c=b.getBandFilter();if(a.length>0){if(b.getShowFilters()){c.setAvailableFilters(a)}}},setStoreTags:function(a){var b=this;if(a){b.storeTags=a;a.on('load','onLoadStoreTags',this)}},onLoadStoreTags:function(b){var a=this;if(a.getEnableViewMenu()){if(b.count()>0){a.createTileGridMenu()}}},setStoreTiles:function(a){var b=this;b.storeTiles=a;a.on('beforeload','onBeforeloadStoreTiles',this);a.on('load','onLoadStoreTiles',this)},onBeforeloadStoreTiles:function(){var a=this;a.setLoading(!0)},onLoadStoreTiles:function(){var a=this,b;a.setLoading(!1);if(a.getEnableViewMenu()){b=a.down('#TileGridMenu');if(b.checked){a.onCheckTileGridMenu(b,b.checked)}}a.identifyTile()},getTileByPosition:function(c){var e=this,b=e.getStoreTiles(),a=c,d;if(!c){a=e.getRaDec()}if(b&&b.count()){d=b.filterByRaDec(a[0],a[1])}return d},identifyTile:function(f){var b=this,c=b.getViewModel(),e=c.get('tileid'),a,d;a=b.getTileByPosition(f);if(a){if(a.get('id')!==e){d=b.getStoreTags().getById(a.get('tag'));c.set('release_name',a.get('release_display_name'));c.set('tile',a);c.set('tag',d);b.fireEvent('changetile',a,d,b)}}else {c.set('tile',null);c.set('tag',null);b.fireEvent('changetile',a,d,b)}},onFilter:function(b){var a=this,c;c=a.getSurveyByFilter(b);a.setImageSurvey(c);a.fireEvent('changefilter',b,a)},getFilter:function(){var a=this,b=a.getBandFilter();if(a.getShowFilters()){return b.getFilter()}},setFilter:function(b){var c=this,a=c.getBandFilter();a.setFilter(b)},changeMapSurvey:function(a){var c=this,d=c.getAladin(),b;b={id:String(a.map_id),url:a.map_url,name:a.map_name,filter:a.map_filter,maxOrder:3};mapSurvey=c.createImageSurvey(b);d.setImageSurvey(mapSurvey.id)},selectExternalSurvey:function(b){var d=this,c=d.getAladin(),a=b.survey;c.setImageSurvey(a.id)},exportAsPng:function(){var b=this,a=b.getAladin();a.exportAsPNG()},showReticle:function(d,b){var c=this,a=c.getAladin();a.showReticle(b)},showHealpixGrid:function(d,b){var c=this,a=c.getAladin();a.showHealpixGrid(b)},showDesFootprint:function(a,b){var c=this;if(!a){a=c.down('#DesFootprint');b=a.checked}c.plotDesFootprint(b)},reverseColor:function(){var b=this,a=b.getAladin();a.getBaseImageLayer().getColorMap().reverse()},changeColorMap:function(b){var c=this,a=c.getAladin();a.getBaseImageLayer().getColorMap().update(b.mapName)},plotDesFootprint:function(e){var d=this,c=d.getAladin();des=d.getDesFootprintCoordinates();if(c.view.overlays[0]!=undefined){overlays=c.view.overlays;plotDes=!1;for(var b=overlays.length-1;b>=0;b--){if(overlays[b].name=='des'){plotDes=!0;if(e){overlays[b].show()}else {overlays[b].hide()}}}if(plotDes==!1){var a=A.graphicOverlay({color:'#ee2345',lineWidth:2,name:'des'});c.addOverlay(a);a.add(A.polyline(des))}}else {var a=A.graphicOverlay({color:'#ee2345',lineWidth:2,name:'des'});c.addOverlay(a);a.add(A.polyline(des))}},onCheckTileGridMenu:function(b,a){var d=this,c=b.getMenu();c.items.each(function(c){c.setChecked(a)},d)},onCheckTileGrid:function(b,a){this.showTileGrid(b.tag,a)},showTileGrid:function(c,g){var a=this,e=a.getStoreTiles(),f=a.getStoreTags(),d=f.getById(c),b;if(g){b=e.query('tag',c);if(b.count()>0){a.plotFootprint(d,b)}}else {a.setVisibleFootprint(d.get('tag_name'),!1)}},plotFootprint:function(e,h){var c=this,f=c.getAladin(),b=c.libA,a,d,g;d=b.catalog({name:'Recent tiles',sourceSize:14,color:'#e67e22'});a=c.getFootprintByName(e.get('tag_name'));if(a){a.show()}else {a=b.graphicOverlay({color:c.getColor(),lineWidth:1,name:String(e.get('tag_name'))});f.addOverlay(a);h.each(function(c){var f=[[c.get('raul'),c.get('decul')],[c.get('rall'),c.get('decll')],[c.get('ralr'),c.get('declr')],[c.get('raur'),c.get('decur')]];a.addFootprints(b.polygon(f));if(c.get('is_new')){g=!0;d.addSources([b.marker(c.get('tli_ra'),c.get('tli_dec'),{popupTitle:'Tile Recently Added',popupDesc:'Creation date: '+c.get('date')})])}},this);if(g&&!e.get('is_new')){f.addCatalog(d)}}},parsePosition:function(a){var b,d,c;if(a){if(a.indexOf(',')!=-1){a=a.split(',');b=parseFloat(a[0].trim());d=parseFloat(a[1].trim());if(b<0){b=b+360}c=[b,d];a=c.join(', ')}else {a=c}return a}},goToPosition:function(b){var c=this,d=c.getAladin(),a;if(b){a=c.parsePosition(b);d.gotoObject(a)}},setFov:function(b){var d=this,c=d.getAladin(),a=parseFloat(b);if(a){c.setFoV(a)}},getFov:function(){var b=this,a=b.getAladin();return a.getFov()[0]},getFootprintByName:function(d){var e=this,c=e.getAladin(),a=c.view.overlays,b=null;if(a.length>0){a.forEach(function(a){if(a.name==d){b=a}})}return b},setVisibleFootprint:function(c,b){var d=this,a;if(b=='undefined'){b=!0}a=d.getFootprintByName(c);if(a){if(b){a.show()}else {a.hide()}}},removeLayers:function(){var b=this,a=b.getAladin();a.removeLayers()},getColor:function(){var a=this,c=a.colorsDefault,b;if(a.colorsAvailable.length===0){a.colorsAvailable=Ext.clone(c)}b=a.colorsAvailable.shift();return b},onShift:function(){this.fireEvent('shift',this.getRaDec(),this)},onShowLayerBox:function(){var b=this,a=b.getViewModel().getView().getAladin();a.hideBoxes();a.showLayerBox();return !1},overlayDrawCircle:function(b,a,c){a.beginPath();a.arc(b.x,b.y,b.data['size']*2,0,2*Math.PI,!1);a.closePath();a.strokeStyle='#c38';a.lineWidth=3;a.globalAlpha=0.7,a.stroke();var d=Math.max(c['fov'][0],c['fov'][1]);return},getDesFootprintCoordinates:function(){var a=[[23,-7],[22,-7],[21,-7],[20,-7],[19,-7],[18,-7],[17,-7],[16,-7],[15,-7],[14,-7],[13,-7],[12,-7],[11,-7],[10,-7],[9,-7],[8,-7],[7,-7],[6,-7],[5,-7],[4,-7],[3,-7],[2,-7],[1,-7],[0,-7],[0,-6],[0,-5],[0,-4],[0,-3],[0,-2],[-1,-2],[-2,-2],[-3,-2],[-4,-2],[-5,-2],[-6,-2],[-7,-2],[-8,-2],[-9,-2],[-10,-2],[-11,-2],[-12,-2],[-13,-2],[-14,-2],[-15,-2],[-16,-2],[-17,-2],[-18,-2],[-19,-2],[-20,-2],[-21,-2],[-22,-2],[-23,-2],[-24,-2],[-25,-2],[-26,-2],[-27,-2],[-28,-2],[-29,-2],[-30,-2],[-31,-2],[-32,-2],[-33,-2],[-34,-2],[-35,-2],[-36,-2],[-37,-2],[-38,-2],[-39,-2],[-40,-2],[-41,-2],[-42,-2],[-43,-2],[-43,-1],[-43,0],[-43,1],[-43,2],[-42,2],[-41,2],[-40,2],[-39,2],[-38,2],[-37,2],[-36,2],[-35,2],[-34,2],[-33,2],[-32,2],[-31,2],[-30,2],[-29,2],[-28,2],[-27,2],[-26,2],[-25,2],[-24,2],[-23,2],[-22,2],[-21,2],[-20,2],[-19,2],[-18,2],[-17,2],[-16,2],[-15,2],[-14,2],[-13,2],[-12,2],[-11,2],[-10,2],[-9,2],[-8,2],[-7,2],[-6,2],[-5,2],[-4,2],[-3,2],[-2,2],[-1,2],[0,2],[0,2],[0,3],[0,4],[0,5],[1,5],[2,5],[3,5],[4,5],[5,5],[6,5],[7,5],[8,5],[9,5],[10,5],[11,5],[12,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[21,5],[22,5],[23,5],[24,5],[25,5],[26,5],[27,5],[28,5],[29,5],[30,5],[31,5],[32,5],[33,5],[34,5],[35,5],[36,5],[37,5],[38,5],[39,5],[40,5],[41,5],[42,5],[43,5],[44,5],[45,5],[45,5],[45,4],[45,3],[45,2],[45,1],[45,0],[45,-1],[45,-2],[45,-3],[45,-4],[45,-5],[45,-6],[45,-7],[45,-8],[45,-9],[45.83584,-9.06842],[46.36744,-9.14567],[46.89697,-9.22888],[47.42429,-9.3181],[47.94928,-9.41337],[48.47183,-9.51474],[48.99181,-9.62226],[49.50912,-9.73598],[50.02364,-9.85594],[50.53529,-9.98221],[51.04396,-10.11482],[51.54955,-10.25382],[52.05199,-10.39926],[52.55118,-10.55119],[53.04706,-10.70965],[53.53954,-10.87467],[54.02856,-11.0463],[54.51405,-11.22457],[54.99596,-11.40952],[55.47423,-11.60118],[55.94881,-11.79957],[56.41965,-12.00471],[56.88672,-12.21663],[57.34998,-12.43534],[57.80939,-12.66086],[58.26493,-12.89318],[58.71657,-13.13232],[59.16429,-13.37827],[59.60807,-13.63102],[60.0479,-13.89057],[60.48377,-14.15689],[60.91568,-14.42997],[61.3436,-14.70979],[61.76755,-14.99631],[62.18753,-15.2895],[62.60354,-15.58931],[63.01557,-15.89572],[63.42365,-16.20866],[63.82778,-16.52808],[64.22797,-16.85393],[66,-18],[67,-18],[68,-18],[69,-18],[70,-18],[71,-18],[72,-18],[73,-18],[74,-18],[75,-18],[76,-18],[77,-18],[78,-18],[79,-18],[80,-18],[81,-18],[82,-18],[83,-18],[84,-18],[85,-18],[86,-18],[86.66667,-19],[87.33333,-20],[88,-21],[88.66667,-22],[89.41596,-23.1317],[89.68146,-24.3655],[89.95879,-25.59111],[90.24749,-26.80814],[90.54705,-28.01619],[90.8569,-29.21488],[91.17643,-30.40381],[91.50499,-31.58263],[91.84185,-32.75095],[92.18623,-33.90841],[92.53729,-35.05464],[92.89409,-36.18931],[93.25565,-37.31205],[93.62088,-38.42252],[93.98862,-39.5204],[94.35759,-40.60535],[94.72643,-41.67704],[95.09367,-42.73517],[95.45771,-43.77942],[95.81685,-44.80949],[96.16922,-45.82508],[96.51286,-46.8259],[96.84562,-47.81168],[97.16521,-48.78213],[97.46918,-49.73698],[97.75487,-50.67597],[98.01948,-51.59884],[98.25999,-52.50536],[98.47317,-53.39526],[98.65561,-54.26832],[98.80364,-55.1243],[98.91339,-55.96299],[98.98075,-56.78417],[99.00136,-57.58762],[98.97062,-58.37314],[98.88371,-59.14055],[98.73552,-59.88964],[98.52073,-60.62023],[98.23379,-61.33214],[98,-61.5],[97,-61.5],[96,-61.5],[95,-61.5],[94,-61.5],[93,-61.5],[92,-61.5],[91,-61.5],[90,-61.5],[89,-61.5],[88,-61.5],[87,-61.5],[86,-61.5],[85,-61.5],[84,-61.5],[83,-62],[78.66667,-63],[74.33333,-64],[69.1922,-65.62708],[68.293,-65.99135],[67.35218,-66.34555],[66.36917,-66.68914],[65.34355,-67.02152],[64.27503,-67.3421],[63.1635,-67.65026],[62.00905,-67.9454],[60.81197,-68.22686],[59.5728,-68.49402],[58.29235,-68],[56.97169,-68],[55.6122,-67],[54.21558,-66],[52.78381,-65.5],[51.31925,-65],[49.82454,-65],[48.30265,-65],[46.75683,-65],[45.19062,-65],[43.60779,-65],[42.0123,-65],[40.4083,-65],[38.8,-65],[37.1917,-65],[35.5877,-65],[33.99221,-65],[32.40938,-65],[30.84317,-65],[29.29735,-65],[27.77546,-65],[26.28075,-65],[24.81619,-65],[23.38442,-65],[21.9878,-65],[20.62831,-65],[19.30765,-65],[18.0272,-65],[16.78803,-65],[15.59095,-65],[14.4365,-65],[13.32497,-65],[12.25645,-65],[11.23083,-65],[10.24782,-65],[9.307,-65],[8.4078,-65],[7.54955,-65],[4,-65],[3,-65],[2,-65],[1,-65],[0,-65],[-1,-65],[-2,-65],[-3,-65],[-4,-65],[-5,-65],[-6,-65],[-7,-65],[-8,-65],[-9,-65],[-10,-65],[-11,-65],[-12,-65],[-13,-65],[-14,-65],[-15,-65],[-16,-65],[-17,-65],[-18,-65],[-19,-65],[-20,-65],[-21,-65],[-22,-65],[-23,-65],[-24,-65],[-25,-65],[-26,-65],[-27,-65],[-28,-65],[-29,-65],[-30,-65],[-31,-65],[-32,-65],[-33,-65],[-34,-65],[-35,-65],[-36,-65],[-37,-65],[-38,-65],[-39,-65],[-40,-65],[-41,-65],[-42,-65],[-43,-65],[-44,-65],[-45,-65],[-46,-65],[-47,-65],[-48,-65],[-49,-65],[-50,-65],[-51,-65],[-52,-65],[-53,-65],[-54,-65],[-55,-65],[-56,-65],[-57,-65],[-56.8,-64],[-56.6,-63],[-56.4,-62],[-56.2,-61],[-56,-60],[-60.9756,-58.52],[-60.7792,-55.2685],[-60.2796,-52.4931],[-59.9266,-50.9207],[-58.355,-50.4154],[-56.6089,-49.5636],[-54.9615,-48.7766],[-54.8,-48],[-54.7,-47],[-54.6,-46],[-54.5,-45],[-54.4,-44],[-54.3,-43],[-54.2,-42],[-54.1,-41],[-54,-40],[-53,-40],[-52,-40],[-51,-40],[-50,-40],[-49,-40],[-48,-40],[-47,-40],[-46,-40],[-45,-40],[-44,-40],[-43,-40],[-42,-40],[-41,-40],[-40,-40],[-39,-40],[-38,-40],[-37,-40],[-36,-40],[-35,-40],[-34,-40],[-33,-40],[-32,-40],[-31,-40],[-30,-40],[-29,-40],[-28,-40],[-27,-40],[-26,-40],[-25,-40],[-24,-40],[-23,-40],[-22,-40],[-21,-40],[-20,-40],[-19,-40],[-18,-40],[-17,-40],[-16,-40],[-15,-40],[-14,-40],[-13,-40],[-12,-40],[-11,-40],[-10,-40],[-9,-40],[-8,-40],[-7,-40],[-6,-40],[-5,-40],[-4,-40],[-3,-40],[-1.47219,-38.64048],[-1.27518,-38.12814],[-1.07231,-37.61674],[-0.86376,-37.1064],[-0.6497,-36.59723],[-0.43028,-36.08933],[-0.20564,-35.58282],[0.02406,-35.07782],[0.25871,-34.57444],[0.49818,-34.0728],[0.74235,-33.57301],[0.99113,-33.0752],[1.24441,-32.5795],[1.50209,-32.08601],[1.7641,-31.59488],[2.03036,-31.10621],[2.30079,-30.62015],[2.57532,-30.13681],[2.85391,-29.65632],[3.13648,-29.17881],[3.423,-28.70441],[3.71342,-28.23325],[4.0077,-27.76546],[4.30581,-27.30116],[4.60772,-26.84048],[4.9134,-26.38355],[5.22284,-25.93051],[5.53601,-25.48147],[5.8529,-25.03656],[6.17351,-24.59591],[6.49782,-24.15964],[6.82584,-23.72788],[7.15756,-23.30074],[7.49299,-22.87835],[7.83212,-22.46081],[8.17498,-22.04826],[8.52155,-21.6408],[8.87186,-21.23855],[9.22592,-20.8416],[9.58374,-20.45008],[9.94533,-20.06407],[10.3107,-19.68369],[10.67989,-19.30903],[11.05289,-18.94018],[11.42973,-18.57723],[11.81042,-18.22027],[12.19498,-17.86938],[12.58343,-17.52465],[12.97577,-17.18614],[13.37203,-16.85393],[13.77222,-16.52808],[14.17635,-16.20866],[14.58443,-15.89572],[14.99646,-15.58931],[15.41247,-15.2895],[15.83245,-14.99631],[16.2564,-14.70979],[16.68432,-14.42997],[17.11623,-14.15689],[17.5521,-13.89057],[17.99193,-13.63102],[18.43571,-13.37827],[18.88343,-13.13232],[19.33507,-12.89318],[19.79061,-12.66086],[20.25002,-12.43534],[20.71328,-12.21663],[21.18035,-12.00471],[21.65119,-11.79957],[22.12577,-11.60118],[22.60404,-11.40952],[23.08595,-11.22457],[23,-10],[23,-9],[23,-8],[23,-7]];return a}},0,['aladin'],['component','box','container','panel','aladin'],{'component':!0,'box':!0,'container':!0,'panel':!0,'aladin':!0},['widget.aladin'],[['events',aladin.Events],['interface',aladin.Interfaces]],[aladin,'Aladin'],0);Ext.cmd.derive('aladin.maps.MapSelectionViewModel',Ext.app.ViewModel,{stores:{maps_store:{type:'maps',autoLoad:!1},aladin_images_store:{type:'aladin_images',autoLoad:!1}},data:{release:null,aladin_last_map_survey:null,aladin_last_nonmap_survey:null,map_selected:!1},formulas:{aladin_switchable:function(a){return a('aladin_last_nonmap_survey')!=null&&a('aladin_last_map_survey')!=null}}},0,0,0,0,['viewmodel.mapselection'],0,[aladin.maps,'MapSelectionViewModel'],0);Ext.cmd.derive('visiomatic.Interface',Ext.Base,{makeToolbar:function(){return Ext.create('Ext.toolbar.Toolbar',{items:[]})},makeToolbarButtons:function(){var a=this,c=a.getAuxTools(),b=[];if(a.getEnableShift()){b.push({xtype:'button',tooltip:'Switch between Visiomatic / Aladdin.',iconCls:'x-fa fa-exchange',scope:a,handler:a.onShift})}if(a.getEnableLink()){b.push({xtype:'button',tooltip:'Get link',iconCls:'x-fa fa-link',scope:a,handler:a.getLinkToPosition})}if(c.length>0){Ext.each(c,function(a){b.push(a)})}return b},makeMousePosition:function(){var a=this.getMap();return Ext.DomHelper.append(a._controlCorners['topright'],{tag:'div',cls:'leaflet-right leaflet-control leaflet-control-wcs-dialog visiomatic-mouse-position',html:'
    Mouse RA, Dec (0,0)
    '})}},0,0,0,0,0,0,[visiomatic,'Interface'],0);Ext.cmd.derive('visiomatic.VisiomaticModel',Ext.app.ViewModel,{data:{release:null,tag:null,dataset:null}},0,0,0,0,['viewmodel.visiomatic'],0,[visiomatic,'VisiomaticModel'],0);Ext.cmd.derive('visiomatic.VisiomaticController',Ext.app.ViewController,{},0,0,0,0,['controller.visiomatic'],0,[visiomatic,'VisiomaticController'],0);Ext.cmd.derive('visiomatic.catalog.Catalogs',Ext.tree.Panel,{initComponent:function(){var a=this;Ext.apply(this,{emptyText:'No data to display.',hideHeaders:!0,rootVisible:!1,useArrows:!0,selModel:{mode:'SINGLE'},columns:[{xtype:'treecolumn',text:'Name',flex:2,sortable:!0,dataIndex:'text',renderer:a.getTooltipName}],tbar:[{xtype:'textfield',emptyText:'Search by name',reference:'SearchField',flex:1,triggers:{clear:{cls:'x-form-clear-trigger',handler:'cancelFilter',hidden:!0},search:{cls:' x-form-search-trigger'}},listeners:{change:'filterCatalogByname',buffer:500}}]});Ext.tree.Panel.prototype.initComponent.apply(this,arguments)},getTooltipName:function(d,e,b){var f=this,c,a;if(b.get('leaf')){c=new Ext.XTemplate('
    ','{prd_display_name}','','


    {description}

    ','
    ','
    ');a=c.apply(b.data);e.tdAttr='data-qtip="'+a+'"'}return d}},0,['visiomatic-catalogs-tree'],['component','box','container','panel','tablepanel','treepanel','visiomatic-catalogs-tree'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'treepanel':!0,'visiomatic-catalogs-tree':!0},['widget.visiomatic-catalogs-tree'],0,[visiomatic.catalog,'Catalogs'],0);Ext.cmd.derive('visiomatic.model.CatalogTree',Ext.data.Model,{fields:[{name:'id'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'epr_name',type:'string'},{name:'epr_username',type:'string'},{name:'epr_start_date',type:'date'},{name:'epr_end_date',type:'date'},{name:'epr_readme',type:'string'},{name:'epr_comment',type:'string'},{name:'ctl_num_columns',type:'int'},{name:'ctl_num_tiles',type:'int'},{name:'ctl_num_objects',type:'int'},{name:'cds_source',type:'string'},{name:'cds_fieldnames',type:'string'},{name:'editable',type:'boolean',defaultValue:!1},{name:'markable',type:'boolean',defaultValue:!1},{name:'release_display_name',type:'string'},{name:'external_catalog',type:'boolean',defaultValue:!1}]},0,0,0,0,0,0,[visiomatic.model,'CatalogTree'],0);Ext.cmd.derive('visiomatic.store.CatalogsTree',common.store.MyTreeStore,{model:'visiomatic.model.CatalogTree',autoLoad:!1,remoteFilter:!0,proxy:{api:{read:'/dri/api/catalog/get_class_tree_by_group/'}}},0,0,0,0,['store.catalogs-overlay-tree'],0,[visiomatic.store,'CatalogsTree'],0);Ext.cmd.derive('visiomatic.store.Overlays',Ext.data.ArrayStore,{remoteFilter:!1,remoteSort:!1,autoLoad:!1,pageSize:0},0,0,0,0,['store.overlays'],0,[visiomatic.store,'Overlays'],0);Ext.cmd.derive('visiomatic.model.FilterCondition',Ext.data.Model,{fields:[{name:'id',type:'int','default':null,persist:!1},{name:'filterset',type:'int'},{name:'fcd_property',type:'int'},{name:'fcd_property_name',type:'string'},{name:'fcd_operation',type:'string'},{name:'fcd_value',type:'string'},{name:'operator_display_name',type:'string',persist:!1},{name:'property_display_name',type:'string',persist:!1,convert:function(a,c){var b=c.get('fcd_property_name');switch(b){case '_meta_rating':a='Rating';break;case '_meta_reject':a='Reject';break;}return a}}]},0,0,0,0,0,0,[visiomatic.model,'FilterCondition'],0);Ext.cmd.derive('visiomatic.store.FilterConditions',Ext.data.Store,{model:'visiomatic.model.FilterCondition',remoteFilter:!1,pageSize:0,sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.overlay-filter-conditions'],0,[visiomatic.store,'FilterConditions'],0);Ext.cmd.derive('visiomatic.catalog.CatalogViewModel',Ext.app.ViewModel,{stores:{catalogs:{type:'catalogs-overlay-tree'},overlays:{type:'overlays'}},data:{visiomatic:null,currentColor:'1dff00',currentFilters:null,pointType:0,pointSize:1},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0},dataset:{type:'common.model.Dataset',create:!0}}},0,0,0,0,['viewmodel.catalogoverlay'],0,[visiomatic.catalog,'CatalogViewModel'],0);Ext.cmd.derive('visiomatic.model.Object',Ext.data.Model,{idProperty:'_meta_id',fields:[{name:'_meta_id'},{name:'_meta_catalog_id',type:'int'},{name:'_meta_is_system',type:'boolean'},{name:'_meta_ra',type:'float'},{name:'_meta_dec',type:'float'},{name:'_meta_radius',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Object'],0);Ext.cmd.derive('visiomatic.store.Objects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,model:'visiomatic.model.Object',pageSize:5000,proxy:{type:'django',timeout:90000,api:{read:'/dri/api/catalogobjects/'}}},0,0,0,0,['store.overlay-objects'],0,[visiomatic.store,'Objects'],0);Ext.cmd.derive('visiomatic.store.ExternalObjects',common.store.MyStore,{remoteFilter:!0,remoteSort:!1,autoLoad:!1,model:'visiomatic.model.Object',pageSize:10000,proxy:{type:'django',timeout:60000,api:{read:'/dri/api/vizier/'}}},0,0,0,0,['store.overlay-external-objects'],0,[visiomatic.store,'ExternalObjects'],0);Ext.cmd.derive('visiomatic.model.Overlay',Ext.data.Model,{idProperty:'id',fields:[{name:'id',type:'int'},{name:'name',type:'string'},{name:'color',type:'string'},{name:'visible',type:'boolean'},{name:'status',type:'string'},{name:'status_message',type:'string'},{name:'count',type:'int'},{name:'total_count',type:'int'},{name:'excess',type:'int'},{name:'catalog'},{name:'layers'},{name:'objects'},{name:'filters'},{name:'objectUrl'},{name:'pointSize',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Overlay'],0);Ext.cmd.derive('visiomatic.filter.FiltersController',Ext.app.ViewController,{listen:{component:{'overlay-filters-window':{changecatalog:'onChangeCatalog'}}},onChangeCatalog:function(b){var a=this,d=a.getViewModel(),c=d.getStore('contents');a.clearImputs();c.addFilter({property:'pcn_product_id',value:b.get('id')})},onLoadContents:function(a){},onAddFilter:function(){var d=this,a=d.getViewModel(),b=a.get('content'),f=a.get('operator'),h=a.get('value'),g=a.getStore('filters'),e=a.get('afilters'),c;c=Ext.create('visiomatic.model.FilterCondition',{fcd_property:b.get('id'),fcd_property_name:b.get('column_name'),fcd_operation:f.get('name'),fcd_value:h,property_display_name:b.get('display_name'),operator_display_name:f.get('display_name')});e.push(c);g.add(c);a.set('afilters',e);d.clearImputs();d.checkHaveFilters()},onRemoveFilterClick:function(f,d,c,e,g,b){var a=this;Ext.MessageBox.confirm('','The Filter will be removed. Do you want continue?',function(h){if(h==='yes'){b.drop();a.createAFilters();a.checkHaveFilters()}},this)},createAFilters:function(){var c=this,e=c.getViewModel(),d=c.lookup('gridFilters'),b=d.getStore(),a=[];console.log(b);b.each(function(b){console.log(b);a.push(b)},this);e.set('afilters',a)},checkHaveFilters:function(){var b=this,a=b.getViewModel(),c=a.get('afilters'),d=b.lookup('BtnApply');if(c.length>0){a.set('haveFilters',!0)}else {a.set('haveFilters',!1)}},onSelectProperty:function(f,c){var a=this,b=a.getViewModel(),d=b.get('afilters'),e},onSelectOperator:function(b,a){},onCancelFilter:function(){this.getView().close()},onApplyFilter:function(){var a=this,e=a.getView(),c=a.getViewModel(),d=c.get('currentCatalog'),b=c.get('afilters');if(b.length>0){a.applyFilters(d,b)}},applyFilters:function(c,d){var b=this,a=b.getView();a.fireEvent('applyfilters',d,c,b);a.close()},clearImputs:function(){var e=this,a=e.getReferences(),c=a.cmbProperty,b=a.cmbOperator,d=a.txtValue;c.reset();b.reset();d.reset()}},0,0,0,0,['controller.overlay_filters'],0,[visiomatic.filter,'FiltersController'],0);Ext.cmd.derive('visiomatic.model.CatalogContent',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'product_id',type:'int'},{name:'setting_id',type:'int'},{name:'column_name',type:'string'},{name:'class_id',type:'int'},{name:'category',type:'string'},{name:'display_name',type:'string'},{name:'ucd',type:'string'},{name:'unit',type:'string'},{name:'reference',type:'string'},{name:'mandatory',type:'boolean'},{name:'content_setting',type:'int'},{name:'is_visible',type:'boolean'},{name:'order',type:'int'}]},0,0,0,0,0,0,[visiomatic.model,'CatalogContent'],0);Ext.cmd.derive('visiomatic.store.ProductDisplayContents',common.store.MyStore,{model:'visiomatic.model.CatalogContent',remoteFilter:!0,remoteSort:!1,pageSize:0,proxy:{url:'/dri/api/productcontent/get_display_content/'},sorters:[{property:'order',direction:'ASC'},{property:'display_name',direction:'ASC'}],ucds:['meta.id;meta.main','pos.eq.ra;meta.main','pos.eq.dec;meta.main'],check_ucds:function(){var a=this,b=[];a.each(function(c){if(a.ucds.indexOf(c.get('ucd'))!==-1){b.push(!0)}},a);if(b.length===a.ucds.length){return !0}else {return !1}}},0,0,0,0,['store.overlay-product-display-contents'],0,[visiomatic.store,'ProductDisplayContents'],0);Ext.cmd.derive('visiomatic.filter.FiltersModel',Ext.app.ViewModel,{stores:{contents:{type:'overlay-product-display-contents',storeId:'productContents',autoLoad:!1},filters:{type:'overlay-filter-conditions',storeId:'filterConditions',autoLoad:!1},operators:{fields:['name','display_name','type'],data:[{name:'=',display_name:'is equal to',type:'text'},{name:'!=',display_name:'is not equal to',type:'text'},{name:'>',display_name:'is greater than',type:'text'},{name:'>=',display_name:'is greater than or equal to',type:'text'},{name:'<',display_name:'is less than',type:'text'},{name:'<=',display_name:'is less than or equal to',type:'text'}]}},data:{operator:null,value:null,haveFilters:!1,afilters:[]},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0}}},0,0,0,0,['viewmodel.overlay_filters'],0,[visiomatic.filter,'FiltersModel'],0);Ext.cmd.derive('visiomatic.filter.FiltersWindow',Ext.window.Window,{title:'Filters',width:500,height:300,modal:!0,autoShow:!0,controller:'overlay_filters',viewModel:'overlay_filters',closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null},items:[{xtype:'form',reference:'filterForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'fieldset',title:'Add condition',items:[{xtype:'fieldcontainer',layout:'hbox',defaults:{flex:1},items:[{xtype:'combobox',emptyText:'Property',itemId:'cmbProperty',reference:'cmbProperty',publishes:'id',displayField:'display_name',bind:{store:'{contents}',selection:'{content}'},listeners:{select:'onSelectProperty'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,margin:'0 5 0 0'},{xtype:'combobox',itemId:'cmbOperator',reference:'cmbOperator',publishes:'name',displayField:'display_name',emptyText:'Operator',bind:{store:'{operators}',selection:'{operator}'},listeners:{select:'onSelectOperator'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,forceSelection:!0,margin:'0 5 0 0'},{xtype:'textfield',reference:'txtValue',emptyText:'Value',bind:{value:'{value}'},margin:'0 5 0 0',allowBlank:!1},{xtype:'button',iconCls:'x-fa fa-plus',width:40,flex:!1,handler:'onAddFilter'}]}]}]},{xtype:'grid',reference:'gridFilters',layout:'fit',border:!0,framed:!0,hideHeaders:!0,flex:1,bind:{store:'{filters}'},viewConfig:{markDirty:!1},columns:[{text:'Property',dataIndex:'property_display_name',flex:1},{text:'Operator',dataIndex:'operator_display_name',flex:1},{text:'Value',dataIndex:'fcd_value',flex:1},{xtype:'actioncolumn',width:60,sortable:!1,menuDisabled:!0,align:'center',items:[{iconCls:'x-fa fa-minus-circle color-soft-red',tooltip:'Remove condition',handler:'onRemoveFilterClick'}]}]}],buttons:[{text:'Cancel',handler:'onCancelFilter'},{text:'Ok',reference:'BtnApply',handler:'onApplyFilter',bind:{disabled:'{!haveFilters}'}}],setCurrentCatalog:function(a){var b=this;if(a&&a.get('id')>0){b.currentCatalog=a;b.getViewModel().set('currentCatalog',a);b.fireEvent('changecatalog',a)}},setFilterSet:function(a){var d=this,c=d.getViewModel(),b=c.getStore('filters'),e=d.lookup('btnDeleteFilterSet'),f=d.lookup('txtFilter');if(a&&a.get('id')>0){c.set('filterSet',a);c.set('filterName',a.get('fst_name'));f.setReadOnly(!0);e.enable();b.addFilter({property:'filterset',value:a.get('id')});b.load()}else {c.set('filterName',null);f.setReadOnly(!1);e.disable();b.clearFilter();b.removeAll(!0)}}},0,['overlay-filters-window'],['component','box','container','panel','window','overlay-filters-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'overlay-filters-window':!0},['widget.overlay-filters-window'],0,[visiomatic.filter,'FiltersWindow'],0);Ext.cmd.derive('visiomatic.catalog.CatalogController',Ext.app.ViewController,{listen:{component:{'visiomatic-catalog-overlay':{changedataset:'onChangeDataset'}}},baseFilters:[],winFilter:null,onChangeDataset:function(d){var a=this,c=a.getViewModel(),b=c.getStore('overlays');b.removeAll();a.loadCatalogs()},loadCatalogs:function(){var c=this,d=c.getViewModel(),b=d.getStore('catalogs'),a;a=[{property:'group',operator:'in',value:['objects_catalog','targets','value_added_catalogs','external_catalogs']}];c.baseFilters=a;b.addFilter(a);b.load()},onSelectCatalog:function(){var a=this,d=a.getViewModel(),b=d.get('currentFilters'),c=a.lookup('CatalogsTree'),f=c.selection,e=a.lookup('btnFilter');b=[]},filterCatalogByname:function(){var a=this,h=a.lookup('CatalogsTree'),b=a.lookup('SearchField'),c=h.getStore(),d=b.getValue(),e=[],f;if(d.length>0){b.getTrigger('clear').show();if(c.isLoading()){console.log('Store is Loading: %o',c.isLoading());var g=c.getProxy();g.abort();console.log('Store proxy abort')}f={property:'search',value:d};e.push(f);a.filterCatalogs(e)}else {b.getTrigger('clear').hide();a.filterCatalogs()}},filterCatalogs:function(a){var d=this,g=d.getViewModel(),b=g.getStore('catalogs'),f=d.baseFilters,e,c=Ext.clone(f);b.clearFilter(!0);b.removeAll();if(a&&Array.isArray(a)){for(index in a){e=a[index];c.push(e)}}b.filter(c)},cancelFilter:function(){var b=this,a=b.lookup('SearchField');a.reset();b.filterCatalogs();a.getTrigger('clear').hide()},onClickOverlay:function(){var b=this,c=b.getViewModel(),k=b.lookup('CatalogsTree'),d=k.selection,j=c.get('currentColor'),i=c.get('currentFilters'),h=c.getStore('overlays'),e=b.lookup('cmbPointType'),g=e.getValue(),f=c.get('pointSize')/1000,a;c.set('currentCatalog',d);a=Ext.create('visiomatic.model.Overlay',{name:d.get('prd_display_name'),catalog:d,color:Ext.String.format('#{0}',j),visible:!0,count:null,layers:null,pointType:g,pointSize:f,status:'loading',filters:null});h.add(a);if(!d.get('external_catalog')){a.set('objects',Ext.create('visiomatic.store.Objects',{}));a.set('filters',i);b.loadObjects(a)}else {a.set('objects',Ext.create('visiomatic.store.ExternalObjects',{}));a.set('objectUrl',!0);b.loadExternalCatalogObjects(a)}},loadExternalCatalogObjects:function(b){var d=this,f=d.getViewModel(),e=f.get('visiomatic'),c=b.get('objects'),a;a=e.getBounds();c.addFilter([{property:'cds_source',value:b.get('catalog').get('cds_source')},{property:'cds_fieldnames',value:b.get('catalog').get('cds_fieldnames')},{property:'lat',value:a.lat},{property:'lng',value:a.lng},{property:'dlat',value:a.dlat},{property:'dlng',value:a.dlng}]);c.load({callback:function(e,c,a){d.onLoadObjects(b,c,a)}})},loadObjects:function(a){var f=this,h=f.getViewModel(),g=h.get('visiomatic'),b=a.get('objects'),d=a.get('filters'),c=[],e;e=g.getBox();b.addFilter([{property:'product',value:a.get('catalog').get('id')},{property:'coordinates',value:JSON.stringify(e)}]);if(d!==null){Ext.each(d,function(b){c.push({property:b.get('fcd_property_name'),operator:b.get('fcd_operation'),value:b.get('fcd_value')})});b.addFilter(c)}b.load({callback:function(d,c,b){f.onLoadObjects(a,c,b)}})},onLoadObjects:function(a,c,g){var i=this,j=i.getViewModel(),h=j.get('visiomatic'),b=a.get('objects'),d,e;a.set('count',b.count());if(!g){var f=c.error.statusText;if(c.error.status==0){f='Communication Failure or Time out'}d=Ext.String.format('Sorry, there was a server error, and this operation can not be performed.
    Error: {0} - {1}',c.error.status,f);a.set('status','error');a.set('status_message',d);console.log('Server Side ERROR: %o - %o',c.error.status,c.error.statusText)}else {if(b.count()>0){if(b.totalCount>b.pageSize){e=b.totalCount-b.pageSize;d=Ext.String.format('The query returned more objects than the limit.
    {0} objects are not being displayed.
    Limit: {1}
    Query returned: {2}
    ',e,b.pageSize,b.totalCount);a.set('total_count',b.totalCount);a.set('excess',e);a.set('status','alert');a.set('status_message',d)}else {a.set('status','ok')}}else {a.set('status','warning')}layers=h.overlayCatalog(a.get('name'),b,{color:a.get('color'),objectUrl:a.get('objectUrl'),pointType:a.get('pointType'),pointSize:a.get('pointSize')});a.set('layers',layers)}},onRemoveOverlay:function(j,g,i){var h=this,d=h.getViewModel(),f=d.getStore('overlays'),e=d.get('visiomatic'),a=f.getAt(g),b=a.get('layers'),c=a.get('objects');if(c.loading){c.getProxy().abort()}if(b!==null){e.showHideLayer(b,!1)}a.erase()},onChangeVisibility:function(i,e,g){var h=this,b=h.getViewModel(),d=b.getStore('overlays'),c=b.get('visiomatic'),f=d.getAt(e),a=f.get('layers');if(a!==null){c.showHideLayer(a,g)}},onClickBtnFilter:function(){var a=this,d=a.getViewModel(),c=a.lookup('CatalogsTree'),b=c.selection;if(b&&b.get('id')>0){a.winFilter=Ext.create('visiomatic.filter.FiltersWindow',{listeners:{scope:a,applyfilters:'onApplyFilters'}});a.winFilter.setCurrentCatalog(b);a.winFilter.show()}},onApplyFilters:function(a,d){var b=this,c=b.getViewModel();if(a.length>0){c.set('currentFilters',a)}}},0,0,0,0,['controller.catalogoverlay'],0,[visiomatic.catalog,'CatalogController'],0);Ext.cmd.derive('visiomatic.catalog.Submit',Ext.form.Panel,{initComponent:function(){var a=this;Ext.apply(this,{bodyPadding:5,layout:{type:'vbox',align:'stretch'},items:[{xtype:'fieldset',flex:1,border:!1,items:[{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'tbtext',html:'Color:',width:45},{xtype:'colorbutton',bind:'{currentColor}',width:55,margin:'0 20 0 5',tooltip:'Choose a color. Click on the color and then on ok.'}]},{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'combobox',labelWidth:45,flex:1,reference:'cmbPointType',fieldLabel:'Marker',displayField:'name',valueField:'name',queryMode:'local',store:{fields:['name'],data:[{'name':'circle'},{'name':'ellipse'},{'name':'square'},{'name':'triangle'}]},value:'circle'},{xtype:'numberfield',name:'pointsize',fieldLabel:'Size',labelWidth:40,width:100,bind:'{pointSize}',minValue:1,maxValue:10,step:0.2,margin:'0 0 0 5'}]},{xtype:'button',iconCls:'x-fa fa-filter',text:'Filters',tooltip:'Filters',handler:'onClickBtnFilter',reference:'btnFilter',width:100}]}],buttons:[{text:'Apply',handler:'onClickOverlay'}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['visiomatic-catalogs-submit'],['component','box','container','panel','form','visiomatic-catalogs-submit'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'visiomatic-catalogs-submit':!0},['widget.visiomatic-catalogs-submit'],0,[visiomatic.catalog,'Submit'],0);Ext.cmd.derive('visiomatic.catalog.OverlayGrid',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{hideHeaders:!0,viewConfig:{markDirty:!1,listeners:{scope:a,render:a.addTooltipToColumnName,destroy:function(a){delete a.tip}}},columns:[{text:'Visible',xtype:'checkcolumn',dataIndex:'visible',width:30,listeners:{checkchange:'onChangeVisibility'},align:'center'},{text:'Color',dataIndex:'color',width:30,align:'center',renderer:a.renderColumnColor},{text:'Name',dataIndex:'name',tdCls:'nameTdCls',flex:2,renderer:a.renderColumnName},{menuDisabled:!0,xtype:'actioncolumn',width:30,items:[{iconCls:'x-fa fa-trash-o color-overlay-grid-icon',tooltip:'Remove',handler:'onRemoveOverlay'}]}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},addTooltipToColumnName:function(a){var b=this;a.tip=Ext.create('Ext.tip.ToolTip',{target:a.getId(),delegate:a.itemSelector+' .nameTdCls',trackMouse:!0,listeners:{beforeshow:function updateTipBody(c){var d=c.target.component;var e=d.getRecord(c.triggerElement);c.update(b.getTooltipName(e))}}})},getTooltipName:function(a){var f=this,b=a.get('filters'),d,e,c;if(a.get('status')!=='error'){d=Ext.String.format('{0}
    Entries: {1}',a.get('name'),a.get('count'));if(b!==null&&b.length>0){c='
    Filters:
    ';Ext.each(b,function(b){e=Ext.String.format('{0} {1} {2}
    ',b.get('fcd_property_name'),b.get('operator_display_name'),b.get('fcd_value'));c+=e});d+=c}return d}else {return a.get('status_message')}},renderColumnName:function(a,d,b){var c=16;if(a.length>c){a=a.substr(0,c);a=a+'...'}if(b.get('status')!=='loading'&&b.get('status')!=='error'){return Ext.String.format('{0} ({1} entries)',a,b.get('count'))}else {return a}},renderColumnColor:function(a,c,b){switch(b.get('status')){case 'loading':a='';break;case 'ok':a=Ext.String.format('',a);break;case 'alert':msg=b.get('status_message');a='';c.tdAttr='data-qtip= "'+msg+'"';break;case 'warning':a='';break;case 'error':msg=b.get('status_message');a='';break;}return a}},0,['visiomatic-catalogs-overlays-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','visiomatic-catalogs-overlays-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'visiomatic-catalogs-overlays-grid':!0},['widget.visiomatic-catalogs-overlays-grid'],0,[visiomatic.catalog,'OverlayGrid'],0);Ext.cmd.derive('visiomatic.catalog.CatalogOverlayWindow',Ext.window.Window,{controller:'catalogoverlay',viewModel:'catalogoverlay',config:{visiomatic:null,dataset:null},initComponent:function(){var a=this;Ext.apply(this,{title:'Catalog Overlay',width:600,height:450,closeAction:'hide',layout:{type:'hbox',align:'stretch'},items:[{xtype:'panel',split:!0,flex:1,framed:!0,layout:{type:'vbox',align:'stretch'},items:[{xtype:'visiomatic-catalogs-tree',reference:'CatalogsTree',flex:1,bind:{store:'{catalogs}'},listeners:{select:'onSelectCatalog'}},{xtype:'visiomatic-catalogs-submit',height:150,bind:{disabled:'{!CatalogsTree.selection.leaf}'}}]},{xtype:'visiomatic-catalogs-overlays-grid',split:!0,framed:!0,flex:1,bind:{store:'{overlays}'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setVisiomatic:function(a){this.visiomatic=a;this.getViewModel().set('visiomatic',a)},setDataset:function(c){var a=this,d=a.getDataset(),b=!1;if(d!==null&&d.get('id')>0){if(d.get('id')===c.get('id')){b=!1}else {b=!0}}else {b=!0}if(b){a.dataset=c;a.getViewModel().set('dataset',c);a.fireEvent('changedataset',c,a)}}},0,['visiomatic-catalog-overlay'],['component','box','container','panel','window','visiomatic-catalog-overlay'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'visiomatic-catalog-overlay':!0},['widget.visiomatic-catalog-overlay'],0,[visiomatic.catalog,'CatalogOverlayWindow'],0);Ext.cmd.derive('visiomatic.download.FitsController',Ext.app.ViewController,{listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},onChangeLoadFits:function(b,c){var f=this,e=f.getView(),a=e.getViewModel(),d=a.getStore('fitsFiles');a.set('tag',c);a.set('tilename',b);d.filter([{property:'tilename',value:b},{property:'tag',value:c}])}},0,0,0,0,['controller.fits-files'],0,[visiomatic.download,'FitsController'],0);Ext.cmd.derive('visiomatic.model.FitsFiles',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/get_fits_by_tilename'},fields:[{name:'filename',type:'string','default':null,persist:!1},{name:'filter',type:'string','default':null,persist:!1},{name:'order',type:'int','default':null,persist:!1},{name:'file_source',type:'string','default':null,persist:!1}]},0,0,0,0,0,0,[visiomatic.model,'FitsFiles'],0);Ext.cmd.derive('visiomatic.store.FitsFiles',common.store.MyStore,{model:'visiomatic.model.FitsFiles',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/get_fits_by_tilename'},sorters:[{property:'order',direction:'ASC'},{property:'filename',direction:'ASC'}]},0,0,0,0,['store.fits-files'],0,[visiomatic.store,'FitsFiles'],0);Ext.cmd.derive('visiomatic.download.FitsModel',Ext.app.ViewModel,{stores:{fitsFiles:{type:'fits-files'}}},0,0,0,0,['viewmodel.fits-files'],0,[visiomatic.download,'FitsModel'],0);Ext.cmd.derive('visiomatic.download.DescutDownloadWindow',Ext.window.Window,{viewModel:'fits-files',controller:'fits-files',title:'Download',width:600,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'vbox',align:'stretch'},initComponent:function(){var a=this;Ext.apply(this,{layout:'fit',items:[{xtype:'gridpanel',scrollable:!0,bind:{store:'{fitsFiles}'},columns:[{text:'Filename',dataIndex:'filename',flex:1},{text:'Filter',dataIndex:'filter'},{text:'URL',dataIndex:'file_source',renderer:function(a,b,c){return ' '}}]}],buttons:[{xtype:'label',text:'Right click "Save link as" to download files',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadFits:function(a,b){var c=this;this.loadFits=a;c.fireEvent('changeLoadFits',a,b)}},0,['target-download-descut'],['component','box','container','panel','window','target-download-descut'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-descut':!0},['widget.target-download-descut'],0,[visiomatic.download,'DescutDownloadWindow'],0);Ext.cmd.derive('visiomatic.Visiomatic',Ext.panel.Panel,{controller:'visiomatic',viewModel:'visiomatic',height:'100%',width:'100%',libL:null,config:{map:null,mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!0},prefix:null,enableSidebar:!0,enableSmallCrosshair:!1,enableCatalogs:!1,availableCatalogs:['GALEX_AIS','2MASS','AllWISE','SDSS','PPMXL','Abell','NVSS','FIRST','GAIA_DR1'],enableMiniMap:!1,miniMapOptions:{position:'topright',width:128,height:128,zoomLevelOffset:-6,nativeCelsys:!0},miniMap:null,enableWcs:!0,wcsUnits:[{label:'RA, Dec (Deg)',units:'deg'},{label:'RA, Dec (HMS)',units:'HMS'}],enableScale:!0,image:null,imageLayer:null,imageOptions:{credentials:!0,center:!1,fov:!1,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'},radiusOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',dashArray:'5, 5, 1, 5',interactive:!1},catalogOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',interactive:!0,pointType:'circle',pointSize:0.001},crosshairOptions:{color:'#FF4500',weight:2,smoothFactor:1,centerPadding:0.001,size:0.003},release:null,tag:null,dataset:null,currentDataset:null,enableTools:!0,auxTools:[],enableLink:!0,enableShift:!0,ready:!1,lradius:null,lcrosshair:null,showCrosshair:!1,enableContextMenu:!1,mlocate:'',showComments:!1},_winCatalogOverlay:null,bind:{release:'{release}',tag:'{tag}',dataset:'{dataset}'},initComponent:function(){var a=this,e=window.location.host,b,d,c;if(window.L){a.libL=window.L}else {console.log('window.L ainda nao esta carregada, incluir no app.json a biblioteca Leaflet')}this.cmpVisiomatic=c=Ext.create('Ext.Component',{id:a.getMapContainer(),width:'100%',height:'100%',listeners:{deactivate:a.onDeactivate}});if(a.getEnableTools()){b=a.makeToolbar();tools=a.makeToolbarButtons();b.add(tools);a.tbar=b}Ext.apply(this,{items:[c]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},afterRender:function(){var a=this,c=a.libL,d=a.getMapContainer(),e=a.getMapOptions(),b;Ext.panel.Panel.prototype.afterRender.apply(this,arguments);b=c.map(d,e);if(a.getPrefix()){b.attributionControl.setPrefix(a.getPrefix())}c.control.reticle().addTo(b);b.on('dblclick',a.onDblClick,a);b.on('contextmenu',a.onContextMenuClick,a);b.on('layeradd',a.onLayerAdd,a);b.on('move',a.onMove,a);b.on('mousemove',a.onMouseMove,a);b.on('overlaycatalog',a.showCatalogOverlayWindow,a);b.on('mouseup',a.savePreferences,a);b.on('keypress',a.savePreferences,a);a.setMap(b);if(a.getEnableSidebar()){a.createSidebar()}if(a.getEnableWcs()){a.addWcsController()}if(a.getEnableScale()){a.addScaleController()}a.cmpMousePosition=a.makeMousePosition()},savePreferences:function(){var c=this,a=c.getImageLayer();var b={credentials:!0,channelLabelMatch:'[ugrizY]',mixingMode:a.iipMode,contrast:a.iipContrast,gamma:a.iipGamma,invertCMap:a.iipInvertCMap,colorSat:a.iipColorSat,quality:a.iipQuality};localStorage.removeItem('imageOptions');localStorage.setItem('imageOptions',JSON.stringify(b))},onResize:function(){Ext.panel.Panel.prototype.onResize.apply(this,arguments);var a=this.getMap();if(a){a.invalidateSize()}},onDeactivate:function(){console.log('onDeactivate');var a=this;if(a._winCatalogOverlay){a._winCatalogOverlay.close()}},getMapContainer:function(){return this.getId()+'-placeholder'},createSidebar:function(){var c=this,b=c.libL,f=c.getMap(),e=c.getAvailableCatalogs(),a,d=[];a=b.control.sidebar().addTo(f);b.control.iip.channel().addTo(a);b.control.iip.image().addTo(a);if(c.getEnableCatalogs()){Ext.Array.each(e,function(a){d.push(b.Catalog[a])});b.control.iip.catalog(d).addTo(a)}b.control.iip.region([]).addTo(a);b.control.iip.profile().addTo(a);b.control.iip.snapshot().addTo(a);a.addTabList()},createSmallCrosshair:function(){var b=this,a=b.getRaDec(),c={color:'#90FA3A',weight:1,opacity:0.8,smoothFactor:1,centerPadding:5.0E-4,size:0.0015};b.drawSmallCrosshair(a.ra,a.dec,c)},addWcsController:function(){var a=this,c=a.libL,d=a.getMap(),b=a.getWcsUnits();c.control.wcs({coordinates:b,position:'topright'}).addTo(d)},addScaleController:function(){var a=this,b=a.libL,c=a.getMap();b.control.scale.wcs({pixels:!1}).addTo(c)},setCurrentDataset:function(a){var b=this;b.currentDataset=a},setImage:function(e,d){var a=this,i=a.libL,j=a.getMap(),h=a.getMiniMap(),b=a.getImageLayer(),c=a.getImageOptions(),f,k,g;a.setReady(!1);if(a._winCatalogOverlay!==null){a._winCatalogOverlay.close();a._winCatalogOverlay=null}a.removeImageLayer();d=d||{};if(b){c={credentials:c.credentials,channelLabelMatch:'[ugrizY]',mixingMode:b.iipMode,contrast:b.iipContrast,gamma:b.iipGamma,invertCMap:b.iipInvertCMap,colorSat:b.iipColorSat,quality:b.iipQuality}}f=Ext.Object.merge(c,d);a.image=e;if(!b){b=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(b)}else {a.removeImageLayer();g=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(g)}if(a.getEnableMiniMap()){if(h){h.remove()}a.createMiniMap()}},createMiniMap:function(){var a=this,e=a.libL,h=a.getMap(),g=a.getMiniMapOptions(),f=a.getImageOptions(),d=a.getImage(),c,b;if(d){b=e.tileLayer.iip(d,{credentials:f.credentials,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'});c=e.control.extraMap(b,g).addTo(h);a.setMiniMap(c)}},setView:function(c,b,h,f){var a=this,g=a.libL,e=a.getMap(),d;if(a.isReady()){c=parseFloat(parseFloat(c).toFixed(5));b=parseFloat(parseFloat(b).toFixed(5));d=g.latLng(b,c);e.setView(d,e.options.crs.fovToZoom(e,h,d));if(a.getShowCrosshair()){if(!f){a.drawCrosshair(c,b)}}}},onLayerAdd:function(b){var a=this;if(b.layer.type==='tilelayer'){a.setReady(!0);a.fireEvent('changeimage',a)}},onDblClick:function(b){var a=this;a.fireEvent('dblclick',b,a)},onContextMenuClick:function(b){var a=this,c=a.getMap();if(!a.isObjectContextMenu){a.showContextMenuImage(b)}a.isObjectContextMenu=!1},removeImageLayer:function(){var b=this,a=b.getMap();if(a!==null){a.eachLayer(function(b){a.removeLayer(b)})}},getRaDec:function(){var c=this,d=c.libL,b=c.getMap(),e=b.options.crs,a=b.getCenter();return {'ra':parseFloat(a.lng),'dec':parseFloat(a.lat)}},getBounds:function(){var m=this,j=m.libL,c=m.getMap(),b=c.options.crs,k=b.forceNativeCelsys&&!this.options.nativeCelsys,e=k?b.celsysToEq(c.getCenter()):c.getCenter(),n=Math.abs(Math.cos(e.lat*Math.PI/180)),d=c.getPixelBounds(),f=c.getZoom(),a,g,l,i,h,o;a=k?[b.celsysToEq(c.unproject(d.min,f)),b.celsysToEq(c.unproject(j.point(d.min.x,d.max.y),f)),b.celsysToEq(c.unproject(d.max,f)),b.celsysToEq(c.unproject(libLpoint(d.max.x,d.min.y),f))]:[c.unproject(d.min,f),c.unproject(j.point(d.min.x,d.max.y),f),c.unproject(d.max,f),c.unproject(j.point(d.max.x,d.min.y),f)];g=parseFloat(e.lng.toFixed(6));l=parseFloat(e.lat.toFixed(6));i=(Math.max(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e))-Math.min(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e)))*n;h=Math.max(a[0].lat,a[1].lat,a[2].lat,a[3].lat)-Math.min(a[0].lat,a[1].lat,a[2].lat,a[3].lat);if(h<1.0E-4){h=1.0E-4}if(i<1.0E-4){i=1.0E-4}if(g>360){g=g-360}return {lat:parseFloat(l),lng:parseFloat(g),dlat:parseFloat(h),dlng:parseFloat(i)}},getBox:function(){var j=this,g,f,d,e,c,i,h,a,b;bounding=j.getBounds();if(bounding.lng>360){bounding.lng=bounding.lng-360}b=bounding.dlng/2;a=bounding.dlat/2;e=parseFloat(bounding.lng-b);c=parseFloat(bounding.lat-a*Math.cos(bounding.lat*Math.PI/180));f=parseFloat(bounding.lng+b);d=parseFloat(bounding.lat+a*Math.cos(bounding.lat*Math.PI/180));i=[f,d];h=[e,c];g=[i,h];return g},getFov:function(){var e=this,a=e.getMap(),d=a.options.crs,c=a.getCenter(),b;b=d.zoomToFov(a,a.getZoom(),c);return b},onMove:function(){var a=this,b=a.getRaDec(),c=a.getFov();a.fireEvent('changeposition',b,c,a)},onMouseMove:function(b){var d=String(b.latlng.lng.toFixed(5)+', '+b.latlng.lat.toFixed(5)),a=this,c=a.getMap();this.cmpMousePosition.children[0].innerHTML='Mouse RA, Dec: '+d;a.currentPosition={radec:[b.latlng.lng.toFixed(5),b.latlng.lat.toFixed(5)],container:[b.containerPoint.x,b.containerPoint.y]};if(a.cropInit&&a.cropInit==a.cropEnd&&a.isCropping){if(a.cropRectangle){c.removeLayer(a.cropRectangle)}a.cropRectangle=a.drawRectangle(a.cropInit['radec'],a.currentPosition['radec'])}if(a.getEnableSmallCrosshair()){a.createSmallCrosshair()}},getLinkToPosition:function(){var b=this,e=b.getMap(),a=b.getRaDec(),c=b.getFov(),d;if(a.dec>0){d=a.ra.toFixed(5).replace('.',',')+'+'+a.dec.toFixed(5).replace('.',',')}else {d=a.ra.toFixed(5).replace('.',',')+a.dec.toFixed(5).replace('.',',')}if(c){c=c.toFixed(2).replace('.',',')}b.fireEvent('link',encodeURIComponent(d),c,a,b)},onShift:function(){this.fireEvent('shift',this.getRaDec(),this)},isReady:function(){return this.getReady()},panTo:function(a){var b=this.getMap();this.coordinatesToLatLng(a,function(c){if(c){b.panTo(c)}})},coordinatesToLatLng:function(a,b){visiomatic.Visiomatic.coordinatesToLatLng(a,b)},hmsToLatLng:function(a,b){visiomatic.Visiomatic.hmsToLatLng(a,b)},drawRadius:function(g,e,d,n,l){var a=this,b=a.libL,f=a.getMap(),j=f.options.crs,h=a.getRadiusOptions(),o=g+'_'+e,i,c,m;if(a.getLradius()){f.removeLayer(a.getLradius());a.setLradius(null)}m=Ext.Object.merge(h,l);if(n==='arcmin'){d=d/60}var k={type:'FeatureCollection',features:[{type:'Feature',id:o,properties:{},geometry:{type:'Point',coordinates:[g,e]}}]};c=b.geoJson(k,{coordsToLatLng:function(a){if(j.forceNativeCelsys){var c=j.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(a,c){i=Ext.Object.merge(h,{majAxis:d,minAxis:d,posAngle:90});return b.ellipse(b.latLng(e,g),i)}});a.setLradius(c);f.addLayer(c);return c},showHideRadius:function(d){var c=this,b=c.getMap(),a=c.getLradius();if(a!==null){if(d){b.addLayer(a)}else {b.removeLayer(a)}}},overlayCatalog:function(l,j,k){var c=this,b=c.libL,g=c.getMap(),h=g.options.crs,i=c.getCatalogOptions(),a,d,f,e;a=Ext.Object.merge(i,k);d={type:'FeatureCollection',features:[]};j.each(function(a){if(c.isInsideTile(a.get('_meta_ra'),a.get('_meta_dec'))){f={type:'Feature',id:a.get('_meta_id'),title:l,properties:a.data,is_system:a.get('_meta_is_system'),geometry:{type:'Point',coordinates:[a.get('_meta_ra'),a.get('_meta_dec')]}};d.features.push(f)}},c);e=b.geoJson(d,{coordsToLatLng:function(a){if(h.forceNativeCelsys){var c=h.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(e,d){if(e.is_system){if(e.properties._meta_radius){radius=e.properties._meta_radius/60;opts=c.getRadiusOptions()}}if(a.pointType==='ellipse'){var q=0.001,r=0.001,m=90;try{var o=e.properties._meta_a_image,p=e.properties._meta_b_image,f=e.properties._meta_theta_image;if(typeof o=='number'&&typeof p=='number'&&typeof f=='number'){q=o/3600;r=p/3600;m=f}}catch(x){}a.majAxis=q,a.minAxis=r,a.posAngle=m;return b.ellipse(d,a)}else {if(a.pointType==='square'){var w=[[d.lat-a.pointSize,d.lng-a.pointSize],[d.lat+a.pointSize,d.lng+a.pointSize]];var v=b.rectangle(w,a);return v}else {if(a.pointType==='triangle'){var h,i,g,n,s,t,u;h=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat-a.pointSize,d.lng+a.pointSize)];g=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];i=[b.latLng(d.lat-a.pointSize,d.lng+a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];s=b.polyline(h,a);u=b.polyline(g,a);t=b.polyline(i,a);n=new b.LayerGroup([s,u,t]);return n}else {a.majAxis=a.pointSize;a.minAxis=a.pointSize;a.posAngle=90;circle=b.ellipse(d,a);return circle}}}}}).bindPopup(c.createOverlayPopup).on('dblclick',function(){alert('TODO: OPEN IN EXPLORER!')}).on('contextmenu',c.onLayerContextMenu,c);g.addLayer(e);c.redraw();return e},redraw:function(){var d=this,c=d.getMap(),a=$(c.getContainer()),b=a.width();if(b>0){a.css({width:b+2});c.invalidateSize();a.css({width:'initial'})}},createOverlayPopup:function(i){var a=i.feature,h=a.properties,j=['_meta_mag_auto_g','_meta_mag_auto_r','_meta_mag_auto_i','_meta_mag_auto_z','_meta_mag_auto_y'],e=[],d=[],c=a.properties._meta_id,g=['RAJ2000','DEJ2000'],b=[],f;Ext.each(j,function(a){try{mag_name=a.slice(-1);if(mag_name=='y'){mag_name='Y'}mag_value=h[a];if(mag_value){mag_value=parseFloat(mag_value);tag=''+mag_name+': '+mag_value.toFixed(2)+'';e.push(tag)}}catch(k){}});if(a.properties._meta_photo_z){photoz=parseFloat(a.properties._meta_photo_z);d.push('photo-z: '+photoz.toFixed(2)+'')}if(a.properties._meta_is_system){c=''+a.properties._meta_id+''}else {if(a.properties._meta_catalog_class=='coadd_objects'){c=''+a.properties._meta_id+''}else {if(a.properties._meta_object_url){c=''+a.properties._meta_id+'';for(property in a.properties){if(!property.startsWith('_meta_')&&g.indexOf(property)==-1){b.push(property)}}if(b.length<=15){for(key in b.sort()){property=b[key];d.push(''+property+': '+a.properties[property]+'')}}}else {}}}ra=parseFloat(a.properties._meta_ra);dec=parseFloat(a.properties._meta_dec);f=''+a.title+'
    '+e.join('')+d.join('')+'
    ID: '+c+'
    RA, Dec (deg): '+ra.toFixed(5)+', '+dec.toFixed(5)+'
    ';return f},onDblClickOverlay:function(){console.log('onDblClickOverlay(%o)',arguments)},showHideLayer:function(a,c){var d=this,b=d.getMap();if(a!==null){if(c){b.addLayer(a)}else {b.removeLayer(a)}}},showHideComments:function(a,b){},onLayerContextMenu:function(a){var b=this;b.isObjectContextMenu=!0;if(a.target.targetPosition){b.showContextMenuImage(a)}else {if(a.target.targetObjet){a.layer={feature:a.target.targetObjet.feature}}b.showContextMenuObject(a)}},createCommentIcon:function(d,c){var b=this,e,a;a=b.markPosition(d,'mapmaker-comment comment-maker').on('contextmenu',b.onLayerContextMenu,b);if(c){c.commentMaker=a;a.targetObjet=c}else {a.targetPosition=d}a.getElement().style.display=b.getShowComments()?'':'none'},updateComment:function(b,a,c){},markPosition:function(i,g,e){var h=this,c=h.libL,j=h.getMap(),b,a,f,d;if(arguments.length==2){b=i;e=g;d=[12,25]}else {b=c.latLng(g,i);d=[8,44]}if(e){f=c.divIcon({className:'visiomatic-marker-position',iconAnchor:d,html:''});a=c.marker(b,{icon:f})}else {a=c.marker(b)}a.addTo(j);return a},setShowCrosshair:function(c){var b=this,d=b.getMap(),a=b.lcrosshair;b.showCrosshair=c;if(a!==null){if(c){d.addLayer(a)}else {d.removeLayer(a)}}},onToggleCrosshair:function(c,a,d){var b=this;if(d.pressed){b.drawCrosshair(c,a)}else {b.removeCrosshair(c,a)}},drawCrosshair:function(e,d,m){var c=this,a=c.libL,l=c.getMap(),o=c.getCrosshairOptions(),n=null,b,f,g,p,k,h,j,i;b=Ext.Object.merge({},o);if(m){b=Ext.Object.merge(b,m)}if(c.lcrosshair){if(l.hasLayer(c.lcrosshair)){l.removeLayer(c.lcrosshair);c.lsmallcrosshair=null}}p=a.latLng(d,e);f=b.centerPadding?b.centerPadding:0.001;g=b.size?b.size:0.005;k=[a.latLng(d+f,e),a.latLng(d+g,e)];h=[a.latLng(d-f,e),a.latLng(d-g,e)];j=[a.latLng(d,e+f),a.latLng(d,e+g)];i=[a.latLng(d,e-f),a.latLng(d,e-g)];k=a.polyline(k,b);h=a.polyline(h,b);j=a.polyline(j,b);i=a.polyline(i,b);n=new a.LayerGroup([k,h,j,i]);c.lcrosshair=n;if(c.getShowCrosshair()){l.addLayer(c.lcrosshair)}return c.lcrosshair},removeCrosshair:function(){var a=this,b=a.getMap();if(a.lcrosshair){if(b.hasLayer(a.lcrosshair)){b.removeLayer(a.lcrosshair);a.lsmallcrosshair=null}}},drawSmallCrosshair:function(d,c,e){var b=this,a=b.libL,h=b.getMap(),n=b.getCrosshairOptions(),p=null,m,f,g,o,l,i,k,j;m=Ext.Object.merge({},n);if(e){m=Ext.Object.merge(m,e)}if(b.lsmallcrosshair){if(h.hasLayer(b.lsmallcrosshair)){h.removeLayer(b.lsmallcrosshair);b.lsmallcrosshair=null}}o=a.latLng(c,d);f=0.005/h._zoom;g=0.01/h._zoom;l=[a.latLng(c+f,d),a.latLng(c+g,d)];i=[a.latLng(c-f,d),a.latLng(c-g,d)];k=[a.latLng(c,d+f),a.latLng(c,d+g)];j=[a.latLng(c,d-f),a.latLng(c,d-g)];l=a.polyline(l,e);i=a.polyline(i,e);k=a.polyline(k,e);j=a.polyline(j,e);layerSmall=new a.LayerGroup([l,i,k,j]);b.lsmallcrosshair=layerSmall;if(b.getEnableSmallCrosshair()&&e){h.addLayer(b.lsmallcrosshair)}return b.lsmallcrosshair},showCatalogOverlayWindow:function(){var b=this,c=b.getCurrentDataset(),a=b._winCatalogOverlay;if(c!==null&&c.get('id')>0){if(a!=null){a.show()}else {a=Ext.create('visiomatic.catalog.CatalogOverlayWindow',{visiomatic:b});b.add(a);a.show();b._winCatalogOverlay=a}b._winCatalogOverlay.setDataset(c)}else {console.log('Dataset nao foi definido, a funcao overlay precisa de um dataset.');return !1}},showDownloadWindow:function(){var d=this,a=d.getCurrentDataset(),c;if(a.get('tli_tilename')){c=a.get('tli_tilename');tag=a.get('release_name');var b=Ext.create('visiomatic.download.DescutDownloadWindow');b.loadFits(c,tag);b.show()}else {alert('File not found.')}},showContextMenuImage:function(b){var a=this,c=b.target,d={x:b.originalEvent.clientX,y:b.originalEvent.clientY};if(!a.getEnableContextMenu()){return}if(b.originalEvent.target.classList.contains('comment-maker')&&!c.targetPosition){return a.showContextMenuObject(b)}if(!this.contextMenuImage){this.contextMenuImage=new Ext.menu.Menu({items:[{id:'comment-position',text:'Comment Position',handler:function(c){a.fireEvent('imageMenuItemClick',a.contextMenuImage.target,a.getCurrentDataset())}}]})}c.latlng=b.latlng;a.contextMenuImage.target=c;a.contextMenuImage.showAt(d)},initCrop:function(){var a=this,b=a.getMap();b.on('mousedown',a.startCrop,a);a.isCropping=!0;b.dragging.removeHooks()},startCrop:function(){var a=this,b=a.getMap();a.cropInit=a.currentPosition;a.cropEnd=a.cropInit;b.off('mousedown',a.startCrop,a);b.on('mouseup',a.endCrop,a)},endCrop:function(c){var a=this,b=a.getMap();a.cropEnd=a.currentPosition;b.off('mouseup',a.endCrop,a);a.downloadCrop(a.cropInit,a.cropEnd);if(a.cropRectangle){b.removeLayer(a.cropRectangle)}a.cropInit=null;a.isCropping=!1;b.dragging.addHooks()},downloadCrop:function(d,e){var i=this,p=i.libL,h=i.getMap(),g=document.createElement('a'),a=i.getImageLayer();var o=h.getCenter(),j=h.getPixelBounds(),c=h.getZoom(),b;if(c>a.iipMaxZoom){b=Math.pow(2,c-a.iipMaxZoom);c=a.iipMaxZoom}else {b=1}var l=a.iipImageSize[c].x*b,m=a.iipImageSize[c].y*b,f=Math.abs(d.container[0]-e.container[0]),n=Math.abs(d.container[1]-e.container[1]);var k={x:j.min.x+Math.min(d.container[0],e.container[0]),y:j.min.y+Math.min(d.container[1],e.container[1])};g.href=a.getTileUrl({x:1,y:1}).replace(/JTL\=\d+\,\d+/g,'RGN='+k.x/l+','+k.y/m+','+f/l+','+n/m+'&WID='+(this._snapType===0?Math.floor(f/b):Math.floor(f/b/a.wcs.scale(c)))+'&CVT=jpeg');g.download=a._title+'_'+p.IIPUtils.latLngToHMSDMS(o).replace(/[\s\:\.]/g,'')+'.jpg';var q=Ext.create('visiomatic.crop.CropWindow',{image:g,height:n+100,width:f+100})},showContextMenuObject:function(a){var c,b=this,d={x:a.originalEvent.clientX,y:a.originalEvent.clientY};if(!b.getEnableContextMenu()){return}if(!this.contextMenuObject){this.contextMenuObject=new Ext.menu.Menu({items:[{id:'comment-object',text:'Comment Object',handler:function(c){b.fireEvent('objectMenuItemClick',a,this.feature)}}]})}c=b.contextMenuObject.items.get('comment-object');c.feature=a.layer?a.layer.feature:null;b.contextMenuObject.showAt(d)},drawRectangle:function(h,j,q){var f=this,a=f.libL,r=f.getMap(),e=h[0],c=h[1],d=j[0],b=j[1],l,g,k,i,p,m,n,o;pathOptions=Ext.Object.merge(f.getCrosshairOptions(),q);l=[a.latLng(c,d),a.latLng(c,e)];g=[a.latLng(b,d),a.latLng(b,e)];k=[a.latLng(c,e),a.latLng(b,e)];i=[a.latLng(c,d),a.latLng(b,d)];p=a.polyline(l,pathOptions);m=a.polyline(g,pathOptions);n=a.polyline(k,pathOptions);o=a.polyline(i,pathOptions);layer=new a.LayerGroup([p,m,n,o]);r.addLayer(layer);return layer},isInsideTile:function(d,b){var c=this,a=c.getCurrentDataset();if(a!=null&&a.get('id')>0){return a.isInsideTile(d,b)}else {return !0}},statics:{coordinatesToLatLng:function(a,c){var d,b=visiomatic.Visiomatic.strToSystem(a);a=a.trim().replace(/( )+/g,' ');d=a.split(',');if(b&&b.system=='latlng'){return c(b.value)}else {if(b&&b.system=='HMS'){return visiomatic.Visiomatic.hmsToLatLng(a,c)}}c(null)},hmsToLatLng:function(b,a){var c='http://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame/-oI/A?'+b;$.get(c,function(c){var d=visiomatic.Visiomatic.parseCoords(c,!0);if(a){a(d)}})},latLngToHMSDMS:function(f){var c=(f.lng+360)/360;c=(c-Math.floor(c))*24;var e=Math.floor(c),d=(c-e)*60,a=Math.floor(d),b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}var j=(e<10?'0':'')+e.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(3),h=Math.abs(f.lat),i=f.lat<0?'-':'+',g=Math.floor(h);d=(h-g)*60;a=Math.floor(d);b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}return j+' '+i+(g<10?'0':'')+g.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(2)},strToSystem:function(a){var b;if(a){a=a.trim().replace(/( )+/g,' ');b=a.split(',');if(b.length==2&&a.split(':').length==1){return {value:{lng:Number(b[0]),lat:Number(b[1])},system:'latlng'}}b=a.split(' ');if(b.length==2&&a.split(':').length==5){return {value:a,system:'HMS'}}}return null},parseCoords:function(b){var a=/J\s(\d+\.?\d*)\s*,?\s*\+?(-?\d+\.?\d*)/g.exec(b);if(a&&a.length>=3){return L.latLng(Number(a[2]),Number(a[1]))}return null}}},0,['visiomatic'],['component','box','container','panel','visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0},['widget.visiomatic'],[['interface',visiomatic.Interface]],[visiomatic,'Visiomatic'],0);Ext.cmd.derive('visiomatic.crop.CropWindow',Ext.window.Window,{title:'Crop',width:400,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'hbox'},initComponent:function(){var a=this,b=a.image;Ext.apply(this,{layout:'ux.center',items:[{xtype:'image',src:b.href,alt:b.download,height:a.height-100,width:a.width-100}],buttons:[{xtype:'label',text:'Right click "Save image as" to download the image',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadImage:function(a){var b=this;this.image=a}},0,['target-download-crop'],['component','box','container','panel','window','target-download-crop'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-crop':!0},['widget.target-download-crop'],0,[visiomatic.crop,'CropWindow'],0);Ext.cmd.derive('Sky.Application',Ext.app.Application,{name:'Sky',stores:[],defaultToken:'home',init:function(a){var b=this;Ext.enableAriaButtons=!1;Ext.create('common.statistics.Events').init();Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(b){var c=JSON.parse(b.responseText);if(window.ga){ga('set','userId',c.id)}},failure:function(f,g){var e=window.location.protocol,d=window.location.pathname,c=window.location.host,b;b=Ext.String.format('{0}//{1}/dri/api/api-auth/login/?next={2}',e,c,d);window.location.assign(b)}})},launch:function(){},onAppUpdate:function(){}},0,0,0,0,0,0,[Sky,'Application'],0);Ext.cmd.derive('Sky.model.Dataset',common.model.Dataset,{proxy:{type:'django',url:'/dri/api/dataset/',reader:{type:'json'}}},0,0,0,0,0,0,[Sky.model,'Dataset'],0);Ext.cmd.derive('Sky.model.Release',common.model.Release,{},0,0,0,0,0,0,[Sky.model,'Release'],0);Ext.cmd.derive('Sky.model.Tag',common.model.Tag,{},0,0,0,0,0,0,[Sky.model,'Tag'],0);Ext.cmd.derive('Sky.store.Datasets',common.store.Datasets,{autoLoad:!1},0,0,0,0,0,0,[Sky.store,'Datasets'],0);Ext.cmd.derive('Sky.store.Footprints',common.store.Footprints,{autoLoad:!1},0,0,0,0,0,0,[Sky.store,'Footprints'],0);Ext.cmd.derive('Sky.store.Releases',common.store.Releases,{sorters:[{property:'rls_date',direction:'DESC'},{property:'rls_display_name',direction:'ASC'}]},0,0,0,0,0,0,[Sky.store,'Releases'],0);Ext.cmd.derive('Sky.store.Surveys',common.store.Surveys,{},0,0,0,0,0,0,[Sky.store,'Surveys'],0);Ext.cmd.derive('Sky.store.Tags',common.store.Tags,{},0,0,0,0,0,0,[Sky.store,'Tags'],0);Ext.cmd.derive('Sky.view.dataset.Compare',visiomatic.Visiomatic,{config:{splited:0,originalDataset:null,compareDataset:null},bind:{originalDataset:'{currentDataset}'},mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!1},initComponent:function(){var a=this;Ext.apply(this,{enableTools:!1,listeners:{changeimage:'onCompareChangeImage'}});visiomatic.Visiomatic.prototype.initComponent.apply(this,arguments)},divide:function(b){var a=this;if(a.getSplited()===0){a.setWidth(b);a.setSplited(b)}},setCompareDataset:function(a){var b=this,c;b.compareDataset=a;c=a.get('release_display_name')+' - '+a.get('tag_display_name')+' - '+a.get('tli_tilename');b.setTitle(c);b.changeImage(a)},changeImage:function(c){var b=this,a=c.get('image_src_ptif');if(a!=''){b.setImage(a)}else {b.removeImageLayer()}}},0,['sky-compare'],['component','box','container','panel','visiomatic','sky-compare'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0,'sky-compare':!0},['widget.sky-compare'],0,[Sky.view.dataset,'Compare'],0);Ext.cmd.derive('Sky.view.dataset.Visiomatic',visiomatic.Visiomatic,{bind:{currentDataset:'{currentDataset}'},initComponent:function(){var a=this;Ext.apply(this,{enableTools:!1,showCrosshair:!1,enableContextMenu:!1,enableMiniMap:!0});visiomatic.Visiomatic.prototype.initComponent.apply(this,arguments)},setCurrentDataset:function(a){var c=this,b;(arguments.callee.$previous||visiomatic.Visiomatic.prototype.setCurrentDataset).apply(this,arguments);b=a.get('release_display_name')+' - '+a.get('tag_display_name')+' - '+a.get('tli_tilename');c.setTitle(b)}},0,['sky-visiomatic'],['component','box','container','panel','visiomatic','sky-visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0,'sky-visiomatic':!0},['widget.sky-visiomatic'],0,[Sky.view.dataset,'Visiomatic'],0);Ext.cmd.derive('Sky.view.dataset.DatasetController',Ext.app.ViewController,{listen:{component:{'dataset':{loadpanel:'onLoadPanel',updatePanel:'onUpdatePanel',updatePosition:'changeImage',compare:'onCompareImages'},'sky-visiomatic':{dblclick:'onDblClickVisiomatic',changeimage:'onChangeImage',link:'onGetLink',changeposition:'onChangePosition'},'sky-compare':{close:'onCloseCompare'}},store:{'#compare':{load:'onLoadDatasetInOtherReleases'}}},winGetLink:null,lMarker:null,onLoadPanel:function(a){var b=this;b.loadData(a)},onUpdatePanel:function(a){var b=this;b.loadData(a)},loadData:function(c){var d=this,b=d.getViewModel(),a=b.get('datasets');a.filter([{property:'id',value:c}]);a.load({scope:this,callback:function(a){if(a.length==1){b.set('currentDataset',a[0]);this.afterLoad()}}})},afterLoad:function(){var a=this,c=a.getView(),d=a.getViewModel(),b=d.get('currentDataset');c.setLoading(!1);a.changeImage(b)},changeImage:function(){var a=this,e=a.getViewModel(),b=a.lookupReference('visiomatic'),c=e.get('currentDataset'),d=c.get('image_src_ptif');if(d!==''){b.setImage(d)}else {b.removeImageLayer()}a.clearComparePanel();a.getDatasetInOtherReleases(c)},onChangeImage:function(){var c=this,b=c.getView(),a=b.getRadec(),e=b.getFov(),d=c.lookupReference('visiomatic');d.setView(a.ra,a.dec,e);if(b.getPinned()){c.lMarker=d.markPosition(a.ra,a.dec,'x-fa fa-map-marker fa-2x')}},onChangePosition:function(b,f){var d=this,e=d.getView(),a=d.lookupReference('compare'),c=e.down('#btnMagnetic');if(a.isVisible()&&a.isReady()){if(c&&c.checked){a.setView(b.ra,b.dec,f)}}},onDblClickVisiomatic:function(){this.toAladin(!0)},onShift:function(){this.toAladin(!0)},onGetLink:function(c,f){var b=this,h=b.getViewModel(),d=h.get('currentDataset'),g=window.location.href,e=g.split('/#')[0],a;if(f){a=Ext.String.format('{0}/#dataset/{1}/{2}/{3}',e,d.get('id'),c,f)}else {a=Ext.String.format('{0}/#dataset/{1}/{2}',e,d.get('id'),c)}b.winGetLink=Ext.create('common.link.LinkPrompt',{link:a});b.winGetLink.show()},toAladin:function(h){var b=this,k=b.getViewModel(),i=k.get('currentDataset'),j=i.get('release'),f=b.lookupReference('visiomatic'),d=f.getFov(),a=f.getRaDec(),g,e,c;if(b.winGetLink!=null){b.winGetLink.close();b.winGetLink=null}if(a.ra<0){a.ra=360+a.ra}if(a.dec>0){c=a.ra.toFixed(5).replace('.',',')+'+'+a.dec.toFixed(5).replace('.',',')}else {c=a.ra.toFixed(5).replace('.',',')+a.dec.toFixed(5).replace('.',',')}e=encodeURIComponent(c);d=d.toFixed(2).replace('.',',');g='sky/'+j+'/'+e+'/'+d;if(h){b.getView().txtCoordinateSearch.setValue('')}b.redirectTo(g)},getDatasetInOtherReleases:function(b){var a=this,c=a.getView();vm=a.getViewModel(),store=vm.getStore('compare');c.clearCompareOptions();store.clearFilter(!0);store.removeAll(!0);store.filter([{'property':'tli_tilename','value':b.get('tli_tilename')}])},onResize:function(){},onLoadDatasetInOtherReleases:function(a){var c=this,b=c.getView();b.setDatasets(a)},onCompareImages:function(d){var b=this,c=b.lookupReference('visiomatic'),a=b.lookupReference('compare'),e=c.getWidth()/2;a.setVisible(!0);a.divide(e);a.setCompareDataset(d)},onCompareChangeImage:function(){var c=this,a=c.lookupReference('visiomatic'),d=c.lookupReference('compare'),b=a.getRaDec(),e=a.getFov();d.setView(b.ra,b.dec,e)},onCloseCompare:function(){var a=this,b=a.getView(),c=a.lookupReference('visiomatic');b.updateCompareOptions()},clearComparePanel:function(){var b=this,a=b.lookupReference('compare');if(a.isVisible()){a.close()}},showHideMarker:function(d,c){var a=this,b=a.lookupReference('visiomatic');b.showHideLayer(a.lMarker,c)},onCenterTile:function(){var a=this,e=a.getViewModel(),b=e.get('currentDataset'),f=a.getView(),d=2,c=a.lookupReference('visiomatic');c.setView(b.get('tli_ra'),b.get('tli_dec'),d)},showHideComments:function(f,d){var a=this,b=a.lookupReference('visiomatic'),e=a.getViewModel(),c=e.get('overlayMembers');b.showHideComments(c,d)},gotoPosition:function(b){var a=this.lookupReference('visiomatic');a.coordinatesToLatLng(b,function(c){if(a.isInsideTile(c.lng,c.lat)){a.panTo(b)}else {Ext.MessageBox.alert('Alert','There is no DES tile in the current release on this position.')}})},showHideCrop:function(d,c){var b=this,a=b.lookupReference('visiomatic');Ext.GlobalEvents.fireEvent('eventregister','SkyViewer - crop');a.initCrop()},onSave:function(){var b=this,a=b.lookupReference('visiomatic');Ext.GlobalEvents.fireEvent('eventregister','SkyViewer - save_fits');a.showDownloadWindow()},onObjectMenuItemClickVisiomatic:function(h,a){var j=this,i=j.getView(),d=i.getViewModel(),g=d.get('currentRecord'),e=d.get('currentCatalog'),b,c;if(a&&a.properties){c=a.properties._meta_catalog_id;b=a.id}else {c=e.get('id');b=g.get('_meta_id')}if(b>0){var f=Ext.create('Ext.window.Window',{title:'Comments',iconCls:'x-fa fa-comments',layout:'fit',closeAction:'destroy',constrainHeader:!0,width:500,height:300,autoShow:!0,onEsc:Ext.emptyFn,items:[{xtype:'comments-object',reference:'',listeners:{scope:this,changecomments:'onChangeComments'}}]});f.down('comments-object').getController().loadComments(c,b,h.latlng,a)}},onImageMenuItemClickVisiomatic:function(d,c){var a=d.latlng;var b=Ext.create('Ext.window.Window',{title:'Position Comments',iconCls:'x-fa fa-comments',layout:'fit',closeAction:'destroy',constrainHeader:!0,width:500,height:300,autoShow:!0,onEsc:Ext.emptyFn,items:[{xtype:'comments-position',listeners:{scope:this,changecomments:'onChangeComments'}}]});b.down('comments-position').getController().loadComments(a.lat,a.lng,c)},onChangeComments:function(b){var a=this,f=a.getView(),d=a.lookupReference('visiomatic'),c=a.getViewModel(),e=c.get('overlayMembers');if(b&&b.comment){}}},0,0,0,0,['controller.dataset'],0,[Sky.view.dataset,'DatasetController'],0);Ext.cmd.derive('Sky.view.dataset.DatasetModel',Ext.app.ViewModel,{data:{dataset:null,disablecompare:!0},links:{currentRelease:{type:'Sky.model.Release',create:!0},currentTag:{type:'Sky.model.Tag',create:!0},currentDataset:{type:'Sky.model.Dataset',create:!0}},stores:{datasets:{type:'datasets'},compare:{type:'datasets',storeId:'compare',autoLoad:!1}}},0,0,0,0,['viewmodel.dataset'],0,[Sky.view.dataset,'DatasetModel'],0);Ext.cmd.derive('Sky.view.dataset.Dataset',Ext.panel.Panel,{controller:'dataset',viewModel:'dataset',config:{dataset:null,coordinate:null,fov:null,radec:null,defaultFov:2.43,defaultMinFov:0.6,datasets:null,currentDataset:null,pinned:!1},bind:{currentDataset:'{currentDataset}'},initComponent:function(){var a=this;Ext.apply(this,{layout:'border',items:[{xtype:'sky-visiomatic',reference:'visiomatic',region:'center',split:!0,listeners:{objectMenuItemClick:'onObjectMenuItemClickVisiomatic',imageMenuItemClick:'onImageMenuItemClickVisiomatic'}},{xtype:'sky-compare',reference:'compare',region:'east',width:400,split:!0,hidden:!0,closable:!0,closeAction:'hide'}],dockedItems:[{xtype:'toolbar',dock:'top',items:[{xtype:'button',tooltip:'Switch between Visiomatic / Aladdin.',iconCls:'x-fa fa-exchange',handler:'onShift'},{xtype:'button',tooltip:'Get link',iconCls:'x-fa fa-link',scope:a,handler:a.getLinkToPosition},{xtype:'button',itemId:'CompareDataset',tooltip:'Compare images between releases.',iconCls:'x-fa fa-object-ungroup ',text:'Compare',scope:a,handler:'compareImages',bind:{disabled:'{disablecompare}'},menu:[]},{xtype:'button',iconCls:'x-fa fa-map-marker',tooltip:'Show/Hide Pin',enableToggle:!0,pressed:!0,toggleHandler:'showHideMarker'},{xtype:'button',iconCls:'x-fa fa-arrows',tooltip:'Center Tile',handler:'onCenterTile',bind:{disabled:'{is_empty}'}},{xtype:'button',iconCls:'x-fa fa-comments',tooltip:'Show/Hide Comments',enableToggle:!0,pressed:!0,toggleHandler:'showHideComments',disabled:!0,hidden:!0},{xtype:'button',reference:'btnCrop',iconCls:'x-fa fa-crop',enableToggle:!0,toggleHandler:'showHideCrop',tooltip:'Crop',bind:{disabled:'{is_empty}'},pressed:!1},{xtype:'button',reference:'btnSave',iconCls:'x-fa fa-download',handler:'onSave',tooltip:'Download',bind:{disabled:'{is_empty}'}}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},loadPanel:function(g){var a=this,b=a.getDataset(),c=a.getCoordinate(),d=a.getFov(),e=this.getViewModel(),h,f;if(b>0){e.set('dataset',b);a.setParameters(c,d);a.setLoading(!0);this.fireEvent('loadpanel',b,this)}},updatePanel:function(c){var b=this,g=b.getDataset(),a=c[1],d=c[2],f=c[3],h=this.getViewModel(),e=b.down('sky-visiomatic');b.setParameters(d,f);e.removeImageLayer();if(a>0&&a!=g){b.setDataset(a);h.set('dataset',a);this.fireEvent('updatePanel',a,this)}else {this.fireEvent('updatePosition',a,this)}},setParameters:function(b,c){var a=this,d,e;b=decodeURIComponent(b);if(b.includes('+')){d=b.split('+')}else {d=b.split('-');d[1]='-'+d[1]}e={ra:parseFloat(d[0].replace(',','.')),dec:parseFloat(d[1].replace(',','.'))};a.setRadec(e);if(c==-1){a.setFov(a.getDefaultFov());a.setPinned(!1)}else {if(c==0){a.setFov(0.05);a.setPinned(!0)}else {c=parseFloat(c.replace(',','.'));if(c>a.getDefaultMinFov()){c=a.getDefaultMinFov()}a.setFov(c);a.setPinned(!1)}}b=e.ra+', '+e.dec;a.setCoordinate(b)},setDatasets:function(b){var a=this;a.datasets=b;a.updateCompareOptions()},clearCompareOptions:function(){var a=this,c=a.getViewModel(),b=a.down('#CompareDataset');b.getMenu().removeAll();c.set('disablecompare',!0)},updateCompareOptions:function(){var a=this,g=a.getViewModel(),c=a.getDatasets(),f=a.down('#CompareDataset'),e=a.getCurrentDataset(),b=[],d;a.clearCompareOptions();if(!e){return !1}if(c.count()>0){c.each(function(c){d={xtype:'menucheckitem',text:c.get('release_display_name')+' - '+c.get('tag_display_name'),group:'compareDatasets',dataset:c,scope:a,checkHandler:a.compareImages};b.push(d)});b.push('-');b.push({xtype:'menucheckitem',text:'Magnetic',iconCls:'x-fa fa-magnet',itemId:'btnMagnetic',checked:!0});f.getMenu().add(b);g.set('disablecompare',!1)}},compareImages:function(a){if(a.dataset){this.fireEvent('compare',a.dataset,this)}},getLinkToPosition:function(){var c=this,b=c.getReferences(),a=b.visiomatic;a.getLinkToPosition()}},0,['dataset'],['component','box','container','panel','dataset'],{'component':!0,'box':!0,'container':!0,'panel':!0,'dataset':!0},['widget.dataset'],0,[Sky.view.dataset,'Dataset'],0);Ext.cmd.derive('Sky.view.footprint.Aladin',aladin.Aladin,{initComponent:function(){var a=this;Ext.apply(this,{hideFootprint:!1,gotoSetPosition:!1,enableShift:!0});aladin.Aladin.prototype.initComponent.apply(this,arguments)}},0,['footprint-aladin'],['component','box','container','panel','aladin','footprint-aladin'],{'component':!0,'box':!0,'container':!0,'panel':!0,'aladin':!0,'footprint-aladin':!0},['widget.footprint-aladin'],0,[Sky.view.footprint,'Aladin'],0);Ext.cmd.derive('Sky.view.footprint.FootprintController',Ext.app.ViewController,{listen:{component:{'footprint':{loadpanel:'onLoadPanel',updatepanel:'onUpdatePanel',beforedeactivate:'onBeforeDeactivate'},'footprint-aladin':{ondblclick:'onDblClickAladin',shift:'onShift'}},store:{'#Releases':{load:'onLoadReleases'},'#Tags':{load:'onLoadTags'},'datasets':{load:'onLoadDatasets'}}},winGetLink:null,onLoadPanel:function(a){var b=this;b.loadReleaseById(a)},onUpdatePanel:function(c){console.log();var a=this,b=a.lookupReference('aladin');if(b.aladinIsReady()){b.removeLayers()}a.onChangeRelease();a.loadReleaseById(c)},onChangeRelease:function(){var f=this,a=f.getViewModel(),e=a.getStore('releases'),c=a.getStore('surveys'),b=a.getStore('datasets'),d=a.getStore('tiles');e.clearFilter(!0);c.removeAll();c.clearFilter(!0);b.removeAll();b.clearFilter(!0);d.removeAll();d.clearFilter(!0)},loadReleaseById:function(){var d=this,b=d.getViewModel(),a=b.get('release'),c=b.getStore('releases');if(a>0){c.filter([{property:'id',value:parseInt(a)}])}},onLoadReleases:function(b){var c=this,d=c.getViewModel(),a;if(b.count()==1){a=b.first();d.set('currentRelease',a);c.loadReleaseData(a)}},loadReleaseData:function(a){if(a.get('id')>0){this.loadSurveys(a);this.loadTags(a)}},onLoadDatasets:function(b){var c=this,d=c.getViewModel(),a;if(b.count()===1){a=b.first();d.set('currentDataset',a)}},loadTags:function(a){var c=this,d=c.getViewModel(),b=d.getStore('tags');if(a.get('id')>0){b.filter([{property:'tag_release',value:parseInt(a.get('id'))}])}},onLoadTags:function(a){var b=this;if(a.count()>0){b.loadTiles()}},loadTiles:function(){var e=this,b=e.getViewModel(),d=b.getStore('tags'),c=b.getStore('tiles'),a=[];d.each(function(b){a.push(b.get('id'))},this);c.filter([{property:'tag',operator:'in',value:a}])},loadSurveys:function(a){var c=this,d=c.getViewModel(),b=d.getStore('surveys');b.filter([{property:'srv_project',value:'DES'},{property:'srv_release',value:a.get('id')}])},onDblClickAladin:function(a){this.getView().fireEvent('ondblclick');this.toVisiomatic(a,!1,!0)},onShift:function(a){this.toVisiomatic(a,!1)},onClickGoToImage:function(){var b=this,a=b.lookupReference('aladin');this.toVisiomatic(a.getRaDec(),!0)},toVisiomatic:function(g,i,k){var f=this,m=f.getViewModel(),p=f.getView(),l=m.getStore('tiles'),j=f.lookupReference('aladin'),e=j.getFov(),h,d,a,c,b,n,o;a=g[0].toFixed(5);c=g[1].toFixed(5);e=e.toFixed(2).replace('.',',');d=l.filterByRaDec(a,c);if(d){if(a>0){b=a.replace('.',',')+'+'+c.replace('.',',')}else {b=a.replace('.',',')+c.replace('.',',')}if(i){e=-1;a=''+d.get('tli_ra');c=''+d.get('tli_dec');b=a.replace('.',',')+'+'+c.replace('.',',')}b=encodeURIComponent(b);if(k){e=0}h='dataset/'+d.get('id')+'/'+b+'/'+e;f.redirectTo(h,!0)}},onAladinGoToPosition:function(a,c){var b=this;b.toVisiomatic(a)},gotoPosition:function(c,b){var d=this,a=d.lookupReference('aladin');a.goToPosition(c);if(b){a.setFov(b)}},getLink:function(){var a=this,e=a.lookupReference('aladin'),d=e.getFov(),f=e.getRaDec(),g=a.getView().getRelease(),i=window.location.href,h=i.split('/#')[0],j,b,c;b=f[0].toFixed(5);c=f[1].toFixed(5);d=d.toFixed(2).replace('.',',');if(b>0){coordinate=b.replace('.',',')+'+'+c.replace('.',',')}else {coordinate=b.replace('.',',')+c.replace('.',',')}coordinate=encodeURIComponent(coordinate);link=Ext.String.format('{0}/#sky/{1}/{2}/{3}',h,g,coordinate,d);a.winGetLink=Ext.create('common.link.LinkPrompt',{link:link});a.winGetLink.show()},onBeforeDeactivate:function(){var a=this;if(a.winGetLink!==null){a.winGetLink.close();a.winGetLink=null}}},0,0,0,0,['controller.footprint'],0,[Sky.view.footprint,'FootprintController'],0);Ext.cmd.derive('Sky.view.footprint.FootprintModel',Ext.app.ViewModel,{data:{release:null},links:{currentRelease:{type:'Sky.model.Release',create:!0},currentTag:{type:'Sky.model.Tag',create:!0},currentDataset:{type:'Sky.model.Dataset',create:!0}},stores:{releases:{type:'releases',storeId:'Releases',autoLoad:!1,remoteFilter:!0},surveys:{type:'surveys'},tags:{type:'tags',storeId:'Tags'},datasets:{type:'datasets'},tiles:{type:'footprints',pageSize:0},tagsbyrelease:{type:'tags'}}},0,0,0,0,['viewmodel.footprint'],0,[Sky.view.footprint,'FootprintModel'],0);Ext.cmd.derive('Sky.view.footprint.Footprint',Ext.panel.Panel,{controller:'footprint',viewModel:'footprint',config:{release:null,coordinate:null,fov:null,radec:null,defaultMinFov:180},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'footprint-aladin',reference:'aladin',bind:{storeSurveys:'{surveys}',storeTags:'{tags}',storeTiles:'{tiles}'},listeners:{ondblclick:'onDblClickAladin',gotoposition:'onAladinGoToPosition'},auxTools:[{xtype:'button',iconCls:'x-fa fa-link',tooltip:'Get Link',handler:'getLink'},{xtype:'button',iconCls:'x-fa fa-arrow-right ',tooltip:'Go to Image Viewer',handler:'onClickGoToImage'}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},loadPanel:function(b){var c=this,a=c.getRelease(),d=b[2],e=b[3],f=this.getViewModel();if(a>0){f.set('release',a);this.fireEvent('loadpanel',a,this)}c.setParameters(d,e)},updatePanel:function(b){var c=this,e=c.getRelease(),a=b[1],d=b[2],f=b[3],g=this.getViewModel();if(a>0&&a!=e){c.setRelease(a);g.set('release',a);this.fireEvent('updatePanel',a,this)}else {c.setParameters(d,f)}},setParameters:function(d,a){var b=this,e=b.lookup('aladin'),c,f;d=decodeURIComponent(d);if(d){if(d.includes('+')){c=d.split('+')}else {c=d.split('-');c[1]='-'+c[1]}f={ra:parseFloat(c[0].replace(',','.')),dec:parseFloat(c[1].replace(',','.'))};b.setRadec(f);strcoordinate=f.ra+', '+f.dec;b.setCoordinate(strcoordinate);if(e.aladinIsReady()){e.goToPosition(strcoordinate)}}if(a){if(a==-1){b.setFov(b.getDefaultFov())}else {a=parseFloat(a.replace(',','.'));if(a>b.getDefaultMinFov()){a=b.getDefaultMinFov()}b.setFov(a)}if(e.aladinIsReady()){e.setFov(a)}}}},0,['footprint'],['component','box','container','panel','footprint'],{'component':!0,'box':!0,'container':!0,'panel':!0,'footprint':!0},['widget.footprint'],0,[Sky.view.footprint,'Footprint'],0);Ext.cmd.derive('Sky.view.home.HomeController',Ext.app.ViewController,{listen:{store:{'#releases':{load:'onLoadReleases'}}},onLoadReleases:function(a){var b=this;if(a.count()==1){b.onChooseRelease(a.first().get('id'))}},onRowDblClick:function(c,a){var b=this;b.onChooseRelease(a.get('id'))},onChooseRelease:function(b){var c=this,a;a='sky/'+b;c.redirectTo(a)},refreshAndClear:function(){var c=this,a=c.getReferences().txtSearch,b=c.getView().getStore();if(a.getValue()){a.setValue('')}else {b.clearFilter(!0);b.load()}},cancelFilter:function(a){a.getTrigger('clear').hide();this.refreshAndClear()},filterByname:function(a){var d=this,b=d.getView().getStore(),c=a.getValue();if(c.length>0){a.getTrigger('clear').show();b.addFilter([{property:'search',value:c}]);b.load()}else {a.getTrigger('clear').hide();d.cancelFilter(a)}},onActivate:function(){}},0,0,0,0,['controller.home'],0,[Sky.view.home,'HomeController'],0);Ext.cmd.derive('Sky.view.home.HomeModel',Ext.app.ViewModel,{stores:{releases:{type:'releases',remoteFilter:!0,storeId:'releases'}}},0,0,0,0,['viewmodel.home'],0,[Sky.view.home,'HomeModel'],0);Ext.cmd.derive('Sky.view.home.Home',Ext.grid.Panel,{title:'Releases',controller:'home',viewModel:'home',bind:{store:'{releases}'},initComponent:function(){var a=this;Ext.apply(this,{columns:[{text:'Name',dataIndex:'rls_display_name',flex:1,renderer:function(a,c,b){if(b.get('is_new')){return a+' New'}return a}},{xtype:'datecolumn',text:'Date',dataIndex:'rls_date',format:'Y-m-d',flex:1},{text:'Datasets',dataIndex:'tags_count',flex:1,sortable:!1},{text:'Tiles',dataIndex:'tiles_count',flex:1,sortable:!1}],dockedItems:[{xtype:'toolbar',dock:'top',items:[{xtype:'textfield',emptyText:'Search by name',reference:'txtSearch',width:250,triggers:{clear:{cls:'x-form-clear-trigger',handler:'cancelFilter',hidden:!0},search:{handler:'filterByname',cls:' x-form-search-trigger'}},listeners:{change:'filterByname',buffer:500}},{tooltip:'Refresh and Clear filters',iconCls:'x-fa fa-refresh',handler:'refreshAndClear'}]}]});Ext.GlobalEvents.fireEvent('eventregister','SkyViewer - initHome');Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},listeners:{rowdblclick:'onRowDblClick'},loadPanel:function(){this.fireEvent('loadpanel',this)},updatePanel:function(){this.fireEvent('updatepanel',this)}},0,['home'],['component','box','container','panel','tablepanel','gridpanel','grid','home'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'home':!0},['widget.home'],0,[Sky.view.home,'Home'],0);Ext.cmd.derive('Sky.view.main.MainController',Ext.app.ViewController,{routes:{'home':{action:'onHome'},'sky/:release':{action:'onSky'},'sky/:release/:coordinate/:fov':{action:'onSky'},'sky/:release/:coordinate':{action:'onSky'},'dataset/:dataset/:coordinate/:fov':{action:'onDataset'}},doSearch:function(e){var d=this,f=d.getReferences(),a=f.mainCardPanel,g=a.getLayout(),c=a.child("component[routeId='sky']"),b;d.setActivePanel(c);b=c.getController();b.gotoPosition(e,0.6)},changeCoordinateSystem:function(a){var i=this,e,b,c,h=i.getReferences(),g=h.mainCardPanel,f=g.getLayout(),j=f.getActiveItem().getController(),d=a.textfield.value;if(d){b=visiomatic.Visiomatic.strToSystem(d);c=a.name;if(b){if(b.name!=c){if(c=='HMS'){e=visiomatic.Visiomatic.latLngToHMSDMS(b.value);a.textfield.setValue(e)}else {if(c=='latlng'){if(visiomatic.processing){return}visiomatic.processing=!0;visiomatic.Visiomatic.hmsToLatLng(d,function(b){visiomatic.processing=!1;a.textfield.setValue(b.lng+', '+b.lat)})}}}}}},setActivePanel:function(e){var h=this,g=h.getReferences(),b=g.mainCardPanel,d=b.getLayout(),f=e.routeId,c=b.child('component[routeId='+f+']'),a=null;if(!c){a=b.add(e);a.loadPanel(arguments);d.setActiveItem(a)}else {a=c;a.updatePanel(arguments);d.setActiveItem(a)}},onHome:function(){var b=Ext.create('Sky.view.home.Home',{hideMode:'offsets',routeId:'home',layout:'fit'});var a=this.getView().down('dri-header-sky').getReferences();a.searchGlobal.hide();this.setActivePanel(b)},onSky:function(f,b,g){var a=this,e=Ext.create('Sky.view.footprint.Footprint',{hideMode:'offsets',routeId:'sky',layout:'fit',release:f,coordinate:b,foc:g,listeners:{ondblclick:function(){a.aladinDblClick=!0}}}),d=a.getView().down('dri-header-sky'),c=d.getReferences();c.searchGlobal.show();e.txtCoordinateSearch=c.txtCoordinateSearch;a.setActivePanel(e,f,b,g);d.getViewModel().set('name','Sky Viewer')},onDataset:function(e,b,f){var a=Ext.create('Sky.view.dataset.Dataset',{hideMode:'offsets',routeId:'tile',layout:'fit',dataset:e,coordinate:b,fov:f}),d=this.getView().down('dri-header-sky'),c=d.getReferences();c.searchGlobal.show();if(this.activePanel){a.showPin=this.activePanel.showPin}a.txtCoordinateSearch=c.txtCoordinateSearch;this.setActivePanel(a,e,b,f);d.getViewModel().set('name','Image Viewer')}},0,0,0,0,['controller.main'],0,[Sky.view.main,'MainController'],0);Ext.cmd.derive('Sky.view.main.MainModel',Ext.app.ViewModel,{data:{name:'Sky Viewer',internal_name:'sky_viewer',desPortalLogo:'resources/des-portal-logo.png',help_url:'dri/apps/home/help/help-sky-image-viewer/'}},0,0,0,0,['viewmodel.main'],0,[Sky.view.main,'MainModel'],0);Ext.cmd.derive('Sky.view.search.SearchResultGrid',Ext.grid.Panel,{controller:'search',initComponent:function(){var a=this;a.columns=[Ext.create('Ext.grid.RowNumberer'),{text:'Data Release ',dataIndex:'name',flex:1,renderer:function(c,b,a){return Ext.data.StoreManager.lookup('search-releases').getById(a.get('release')).get('rls_display_name')}},{text:'Field Name',dataIndex:'tag_display_name',flex:1,renderer:function(c,b,a){return Ext.data.StoreManager.lookup('search-tags').getById(a.get('tag')).get('tag_display_name')}},{text:'Sky Name',dataIndex:'tli_tilename',renderer:function(c,b,a){return a.getSky().get('tli_tilename')},flex:1}];Ext.grid.Panel.prototype.initComponent.apply(this,arguments)}},0,['tile-search-resultgrid'],['component','box','container','panel','tablepanel','gridpanel','grid','tile-search-resultgrid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'tile-search-resultgrid':!0},['widget.tile-search-resultgrid'],0,[Sky.view.search,'SearchResultGrid'],0);Ext.cmd.derive('Sky.view.search.SearchController',Ext.app.ViewController,{listen:{component:{'tile-search-field':{search:'onSearch'}},store:{'#search-tiles':{load:'onLoadSearch'}}},onSearch:function(a){this.search(a)},search:function(a){var b;this.checkStores();if(a.isValid()&&a.getValue()!=''){b=this.getSearchParams(a);if(b){this.loadSearch(b)}}},checkStores:function(){var c=this.getViewModel(),b=c.getStore('tags'),a=c.getStore('releases');if(!a.isLoaded()){a.load()}if(!b.isLoaded()){b.load()}},loadSearch:function(a){var c=this,d=c.getViewModel(),b=d.getStore('search');b.filter(a)},onLoadSearch:function(a){if(a.count()==1){this.onlySkyFound(a.first())}else {if(a.count()>1){this.manySkysFound(a)}else {this.noSkysFound()}}},manySkysFound:function(a){this.windowResults=this.createWindowResult();this.windowResults.show()},onlySkyFound:function(a){this.showSkyInSkyDetail(a.get('id'))},noSkysFound:function(){Ext.MessageBox.show({title:'Search',msg:'No matches found.',buttons:Ext.MessageBox.OK})},createWindowResult:function(){var b=this.getViewModel(),a=b.getStore('search');return Ext.create('Ext.window.Window',{title:'Search',closeAction:'destroy',width:600,height:400,modal:!0,constrainHeader:!0,layout:'fit',autoScroll:!0,items:[{xtype:'tile-search-resultgrid',store:a,listeners:{scope:this,rowdblclick:this.onDbClickResult}}]})},onDbClickResult:function(b,a){this.windowResults.close();this.showSkyInSkyDetail(a.get('id'))},showSkyInSkyDetail:function(b){var a='td/'+b;this.redirectTo(a)},checkSearchParams:function(a){if(a==''){return !0}if(a.search(',')!=-1){var d=a.split(',');if(d.length!=2){return 'More than one RA and Dec.'}var c=d[0].trim();if(/^(\d+(\.\d+)?)$/.test(c)){if(c<0||c>360){return 'RA must be between 0 and 360.'}}else {if(a.search(':')==-1){return 'RA use degrees or hh:mm:ss.'}}var b=d[1].trim();if(/^(\-?\d+(\.\d+)?)$/.test(b)){if(b<-90||b>90){return 'Dec must be between -90 and 90.'}}else {if(a.search(':')==-1){return 'Dec use degrees or dd:mm:ss.'}}if(!c&&!b){return 'RA and Dec coordinates must be separated by commas.
    eg. 300.8660,-50.8345 or HH:MM:SS,DD:MM:SS'}return !0}else {if(/^((DES|des|Des)[0-9]{4}(\+|-)[0-9]{4})$/.test(a)){return !0}else {return 'The value in this field is invalid'}}},getSearchParams:function(f){var d=f.getValue(),a=[],e=[],g,i,h,c,b;if(d.search(',')!=-1){a.type='coordinates';g=d.split(',');i=g[0].trim();h=g[1].trim();c=this.parseRa(i);b=this.parseDec(h);if(c.error){f.markInvalid(c.error);return !1}if(b.error){f.markInvalid(b.error);return !1}e.push(c.value);e.push(b.value);a.push({property:'position',value:e.join()});return a}else {if(/^((DES|des|Des)[0-9]{4}(\+|-)[0-9]{4})$/.test(d)){a.push({property:'tli_tilename',value:d});return a}}return !1},parseRa:function(b){var a={value:null,error:null};if(/^(\d+(\.\d+)?)$/.test(b)){if(b<0||b>360){a.error='RA must be between 0 and 360.';return a}a.value=b.trim()}else {if(b.search(':')!=-1){var c=this.sexagesimal2decimal(b.trim())*15;a.value=c}else {a.error='invalid value for RA.';return a}}return a},parseDec:function(b){var a={value:null,error:null};if(/^(\-?\d+(\.\d+)?)$/.test(b)){if(b<-90||b>90){a.error='Dec must be between -90 and 90.';return a}a.value=b.trim()}else {if(b.search(':')!=-1){var c=this.sexagesimal2decimal(b.trim());a.value=c}else {a.error='invalid value for Dec.';return a}}return a},sexagesimal2decimal:function(d){var a=0,b=0,c=0;data=d.split(':');if(data[0]<0){sign=-1;a=parseFloat(data[0]/1)*-1}else {sign=1;a=parseFloat(data[0]/1)}b=parseFloat(data[1]/60);c=parseFloat(data[2]/3600)||0;var e=((a+b+c)*sign).toFixed(4);return e}},0,0,0,0,['controller.search'],0,[Sky.view.search,'SearchController'],0);Ext.cmd.derive('Sky.view.search.SearchModel',Ext.app.ViewModel,{stores:{releases:{type:'releases',storeId:'search-releases',autoLoad:!0},tags:{type:'tags',storeId:'search-tags',autoLoad:!0},search:{type:'datasets',storeId:'search-tiles',pageSize:0}}},0,0,0,0,['viewmodel.search'],0,[Sky.view.search,'SearchModel'],0);Ext.cmd.derive('Sky.view.search.SearchField',Ext.form.field.Text,{controller:'search',viewModel:'search',emptyText:'Search',width:250,emptyText:'eg. 307.0658, -52.6783',submitEmptyText:!1,validateOnBlur:!1,validateOnChange:!1,validator:'checkSearchParams',listeners:{specialkey:function(b,a){if(a.getKey()==a.ENTER){}}},triggers:{search:{cls:'x-form-search-trigger',handler:function(){}}}},0,['tile-search-field'],['component','box','field','textfield','tile-search-field'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'tile-search-field':!0},['widget.tile-search-field'],0,[Sky.view.search,'SearchField'],0);Ext.cmd.derive('Sky.view.main.Toolbar',common.header.Toolbar,{viewItems:function(){var a=this,b=common.header.Toolbar.prototype.viewItems.call(this);b.splice(3,0,{xtype:'container',reference:'searchGlobal',width:290,layout:{type:'hbox',align:'left'},items:[{xtype:'button',text:'RA, Dec (Deg)',width:120,queryMode:'local',store:['',''],menu:{xtype:'menu',items:[{name:'latlng',text:'RA, Dec (Deg)'}],listeners:{click:function(c,b){if(b){this.up('button').setText(b.text);a.fireEvent('changeCoordinateSystem',{name:b.name,textfield:a.getReferences().txtCoordinateSearch})}}}}},{xtype:'textfield',emptyText:'RA (deg), Dec (deg)',reference:'txtCoordinateSearch',triggers:{'goto':{cls:'x-form-search-trigger',scope:a,tooltip:'Go To position. 356.0085, 0.5168 or 23 44 2.040 +00 31 0.48',handler:function(b){a.fireEventGotoPosition(b.getValue())}}},listeners:{scope:a,specialkey:function(c,b){if(b.keyCode==13){a.fireEventGotoPosition(c.getValue())}}}}]});return b},fireEventGotoPosition:function(a){this.lookup('txtCoordinateSearch').reset();this.fireEvent('dosearch',a)}},0,['dri-header-sky'],['component','box','container','toolbar','dri-header','dri-header-sky'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-header':!0,'dri-header-sky':!0},['widget.dri-header-sky'],0,[Sky.view.main,'Toolbar'],0);Ext.cmd.derive('Sky.view.main.Main',Ext.container.Container,{controller:'main',viewModel:'main',plugins:'viewport',layout:{type:'vbox',align:'stretch'},items:[{xtype:'dri-header-sky',reference:'driHeaderSky',listeners:{dosearch:'doSearch',changeCoordinateSystem:'changeCoordinateSystem'}},{xtype:'container',flex:1,reference:'mainCardPanel',layout:{type:'card',anchor:'100%'}},{xtype:'dri-footer'}]},0,['app-main'],['component','box','container','app-main'],{'component':!0,'box':!0,'container':!0,'app-main':!0},['widget.app-main'],0,[Sky.view.main,'Main'],0);Ext.application({name:'Sky',extend:Sky.Application,mainView:'Sky.view.main.Main'}); \ No newline at end of file diff --git a/frontend/build/production/Sky/app.json b/frontend/build/production/Sky/app.json index 47738fe22..f33dcad29 100644 --- a/frontend/build/production/Sky/app.json +++ b/frontend/build/production/Sky/app.json @@ -1 +1 @@ -{"packages":{"aladin":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux","common"],"version":"1.0.0"},"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.1.2.15","version":"6.5.1.240"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"visiomatic":{"css":true,"included":true,"namespace":"visiomatic","required":true,"requires":["ext","core","classic"],"version":"1.0.0"}},"js":[{"path":"packages/local/visiomatic/src/visiomatic/dist/jquery-min.js"},{"path":"packages/local/aladin/src/aladin/aladin-min.js"},{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic-src.js"},{"path":"app.js"}],"css":[{"path":"packages/local/aladin/src/aladin/aladin-min.css"},{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot.css"},{"remote":false,"exclude":["fashion"],"path":"resources/Sky-all_1.css"},{"remote":false,"exclude":["fashion"],"path":"resources/Sky-all_2.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"Sky","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180119161151","cacheParam":"_dc"},"id":"495a5aab-e912-414c-bd2d-7b69ef5766b9","hash":"d2fbf8232ccf6926a24efb2ee67814c469ac6709","profile":"","resources":{"path":"resources"}} \ No newline at end of file +{"packages":{"aladin":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux","common"],"version":"1.0.0"},"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.1.2.15","version":"6.5.1.240"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"visiomatic":{"css":true,"included":true,"namespace":"visiomatic","required":true,"requires":["ext","core","classic"],"version":"1.0.0"}},"js":[{"path":"packages/local/visiomatic/src/visiomatic/dist/jquery-min.js"},{"path":"packages/local/aladin/src/aladin/aladin-min.js"},{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic-src.js"},{"path":"app.js"}],"css":[{"path":"packages/local/aladin/src/aladin/aladin-min.css"},{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot.css"},{"remote":false,"exclude":["fashion"],"path":"resources/Sky-all_1.css"},{"remote":false,"exclude":["fashion"],"path":"resources/Sky-all_2.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"Sky","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180314144549","cacheParam":"_dc"},"id":"495a5aab-e912-414c-bd2d-7b69ef5766b9","hash":"da5f7e8f817ec670f830e7f98a53dfd3a5b75f25","profile":"","resources":{"path":"resources"}} \ No newline at end of file diff --git a/frontend/build/production/Target/app.js b/frontend/build/production/Target/app.js index 1d762a7dc..6cafe5d03 100644 --- a/frontend/build/production/Target/app.js +++ b/frontend/build/production/Target/app.js @@ -1 +1 @@ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.defineProperty=typeof Object.defineProperties=='function'?Object.defineProperty:function(b,c,a){a=a;if(b==Array.prototype||b==Object.prototype){return}b[c]=a.value};$jscomp.getGlobal=function(a){return typeof window!='undefined'&&window===a?a:typeof global!='undefined'&&global!=null?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(i,f,j,k){if(!f){return}var a=$jscomp.global;var b=i.split('.');for(var e=0;ec){if(--b in this){this[--d]=this[b]}else {delete this[d]}}}return this};return b},'es6-impl','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global['Symbol']){$jscomp.global['Symbol']=$jscomp.Symbol}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||'')+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global['Symbol'].iterator;if(!a){a=$jscomp.global['Symbol'].iterator=$jscomp.global['Symbol']('iterator')}if(typeof Array.prototype[a]!='function'){$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}})}$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){if(bd){b=d}b=Number(b);if(b<0){b=Math.max(0,d+b)}for(var e=Number(c||0);e-0.25){var f=b;var g=1;var c=b;var d=0;var e=1;while(d!=c){f*=b;e*=-1;c=(d=c)+e*f/++g}return c}return Math.log(1+b)};return b},'es6-impl','es3');$jscomp.polyfill('Math.atanh',function(b){if(b){return b}var a=Math.log1p;var c=function(c){c=Number(c);return (a(c)-a(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.cbrt',function(a){if(a){return a}var b=function(b){if(b===0){return b}b=Number(b);var c=Math.pow(Math.abs(b),1/3);return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Math.clz32',function(a){if(a){return a}var b=function(b){b=Number(b)>>>0;if(b===0){return 32}var c=0;if((b&4.29490176E9)===0){b<<=16;c+=16}if((b&4.27819008E9)===0){b<<=8;c+=8}if((b&4.02653184E9)===0){b<<=4;c+=4}if((b&3.221225472E9)===0){b<<=2;c+=2}if((b&2.147483648E9)===0){c++}return c};return b},'es6-impl','es3');$jscomp.polyfill('Math.cosh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);return (b(c)+b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.expm1',function(a){if(a){return a}var b=function(b){b=Number(b);if(b<0.25&&b>-0.25){var e=b;var f=1;var c=b;var d=0;while(d!=c){e*=b/++f;c=(d=c)+e}return c}return Math.exp(b)-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.hypot',function(a){if(a){return a}var b=function(c,d,h){c=Number(c);d=Number(d);var b,g,f;var e=Math.max(Math.abs(c),Math.abs(d));for(b=2;b1.0E100||e<1.0E-100){c=c/e;d=d/e;f=c*c+d*d;for(b=2;b>>16&65535;var d=b&65535;var g=c>>>16&65535;var e=c&65535;var h=f*e+d*g<<16>>>0;return d*e+h|0};return b},'es6-impl','es3');$jscomp.polyfill('Math.log10',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN10};return b},'es6-impl','es3');$jscomp.polyfill('Math.log2',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN2};return b},'es6-impl','es3');$jscomp.polyfill('Math.sign',function(a){if(a){return a}var b=function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.sinh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);if(c===0){return c}return (b(c)-b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.tanh',function(a){if(a){return a}var b=function(b){b=Number(b);if(b===0){return b}var c=Math.exp(-2*Math.abs(b));var d=(1-c)/(1+c);return b<0?-d:d};return b},'es6-impl','es3');$jscomp.polyfill('Math.trunc',function(a){if(a){return a}var b=function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0){return b}var c=Math.floor(Math.abs(b));return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Number.EPSILON',function(a){return Math.pow(2,-52)},'es6-impl','es3');$jscomp.polyfill('Number.MAX_SAFE_INTEGER',function(){return 9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.MIN_SAFE_INTEGER',function(){return -9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.isFinite',function(a){if(a){return a}var b=function(b){if(typeof b!=='number'){return !1}return !isNaN(b)&&b!==Infinity&&b!==-Infinity};return b},'es6-impl','es3');$jscomp.polyfill('Number.isInteger',function(a){if(a){return a}var b=function(b){if(!Number.isFinite(b)){return !1}return b===Math.floor(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isNaN',function(a){if(a){return a}var b=function(b){return typeof b==='number'&&isNaN(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isSafeInteger',function(a){if(a){return a}var b=function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER};return b},'es6-impl','es3');$jscomp.polyfill('Object.assign',function(a){if(a){return a}var b=function(e,f){for(var d=1;d3?f:b,e);return !0}else {if(c.writable&&!Object.isFrozen(b)){b[d]=e;return !0}}return !1};return b},'es6','es5');$jscomp.polyfill('Reflect.setPrototypeOf',function(a){if(a){return a}if(typeof ''.__proto__!='object'){return null}var b=function(b,c){try{b.__proto__=c;return b.__proto__===c}catch(d){return !1}};return b},'es6','es5');$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.polyfill('Set',function(b){var c=!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!b||!b.prototype.entries||typeof Object.seal!='function'){return !1}try{b=b;var d=Object.seal({x:4});var c=new b($jscomp.makeIterator([d]));if(!c.has(d)||c.size!=1||c.add(d)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2){return !1}var e=c.entries();var a=e.next();if(a.done||a.value[0]!=d||a.value[1]!=d){return !1}a=e.next();if(a.done||a.value[0]==d||a.value[0].x!=4||a.value[1]!=a.value[0]){return !1}return e.next().done}catch(f){return !1}}();if(c){return b}$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=function(a){this.map_=new Map();if(a){var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}this.size=this.map_.size};a.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};a.prototype['delete']=function(c){var a=this.map_['delete'](c);this.size=this.map_.size;return a};a.prototype.clear=function(){this.map_.clear();this.size=0};a.prototype.has=function(a){return this.map_.has(a)};a.prototype.entries=function(){return this.map_.entries()};a.prototype.values=function(){return this.map_.values()};a.prototype.keys=a.prototype.values;$jscomp.initSymbol();$jscomp.initSymbolIterator();a.prototype[Symbol.iterator]=a.prototype.values;a.prototype.forEach=function(c,a){var d=this;this.map_.forEach(function(e){return c.call(a,e,e,d)})};return a},'es6-impl','es3');$jscomp.checkStringArgs=function(a,c,b){if(a==null){throw new TypeError("The 'this' value for String.prototype."+b+' must not be null or undefined')}if(c instanceof RegExp){throw new TypeError('First argument to String.prototype.'+b+' must not be a regular expression')}return a+''};$jscomp.polyfill('String.prototype.codePointAt',function(a){if(a){return a}var b=function(b){var e=$jscomp.checkStringArgs(this,null,'codePointAt');var f=e.length;b=Number(b)||0;if(!(b>=0&&b56319||b+1===f){return c}var d=e.charCodeAt(b+1);if(d<56320||d>57343){return c}return (c-55296)*1024+d+9216};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.endsWith',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'endsWith');b=b+'';if(c===void 0){c=d.length}var f=Math.max(0,Math.min(c|0,d.length));var e=b.length;while(e>0&&f>0){if(d[--f]!=b[--e]){return !1}}return e<=0};return b},'es6-impl','es3');$jscomp.polyfill('String.fromCodePoint',function(a){if(a){return a}var b=function(e){var c='';for(var d=0;d1114111||b!==Math.floor(b)){throw new RangeError('invalid_code_point '+b)}if(b<=65535){c+=String.fromCharCode(b)}else {b-=65536;c+=String.fromCharCode(b>>>10&1023|55296);c+=String.fromCharCode(b&1023|56320)}}return c};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.includes',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'includes');return d.indexOf(b,c||0)!==-1};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.repeat',function(a){if(a){return a}var b=function(b){var c=$jscomp.checkStringArgs(this,null,'repeat');if(b<0||b>1342177279){throw new RangeError('Invalid count value')}b=b|0;var d='';while(b){if(b&1){d+=c}if(b>>>=1){c+=c}}return d};return b},'es6-impl','es3');$jscomp.stringPadding=function(c,a){var b=c!==undefined?String(c):' ';if(!(a>0)||!b){return ''}var d=Math.ceil(a/b.length);return b.repeat(d).substring(0,a)};$jscomp.polyfill('String.prototype.padEnd',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return b+$jscomp.stringPadding(c,e)};return b},'es8','es3');$jscomp.polyfill('String.prototype.padStart',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return $jscomp.stringPadding(c,e)+b};return b},'es8','es3');$jscomp.polyfill('String.prototype.startsWith',function(a){if(a){return a}var b=function(b,g){var c=$jscomp.checkStringArgs(this,b,'startsWith');b=b+'';var h=c.length;var e=b.length;var f=Math.max(0,Math.min(g|0,c.length));var d=0;while(d=e};return b},'es6-impl','es3');$jscomp.arrayFromIterator=function(c){var b;var a=[];while(!(b=c.next()).done){a.push(b.value)}return a};$jscomp.arrayFromIterable=function(a){if(a instanceof Array){return a}else {return $jscomp.arrayFromIterator($jscomp.makeIterator(a))}};$jscomp.inherits=function(a,b){function tempCtor(){}tempCtor.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new tempCtor();a.prototype.constructor=a;for(var c in b){if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);if(d){Object.defineProperty(a,c,d)}}else {a[c]=b[c]}}};$jscomp.polyfill('WeakSet',function(b){function isConformant(){if(!b||!Object.seal){return !1}try{var c=Object.seal({});var d=Object.seal({});var a=new b([c]);if(!a.has(c)||a.has(d)){return !1}a['delete'](c);a.add(d);return !a.has(c)&&a.has(d)}catch(e){return !1}}if(isConformant()){return b}var a=function(a){this.map_=new WeakMap();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}};a.prototype.add=function(a){this.map_.set(a,!0);return this};a.prototype.has=function(a){return this.map_.has(a)};a.prototype['delete']=function(a){return this.map_['delete'](a)};return a},'es6-impl','es3');try{if(Array.prototype.values.toString().indexOf('[native code]')==-1){delete Array.prototype.values}}catch(a){}var Ext=Ext||{};if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.app.bind){Ext.app.bind={}}if(!Ext.app.domain){Ext.app.domain={}}if(!Ext.app.route){Ext.app.route={}}if(!Ext.button){Ext.button={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}if(!Ext.data){Ext.data={}}if(!Ext.data.field){Ext.data.field={}}if(!Ext.data.flash){Ext.data.flash={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.matrix){Ext.data.matrix={}}if(!Ext.data.operation){Ext.data.operation={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.request){Ext.data.request={}}if(!Ext.data.schema){Ext.data.schema={}}if(!Ext.data.session){Ext.data.session={}}if(!Ext.data.validator){Ext.data.validator={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dd){Ext.dd={}}if(!Ext.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.form){Ext.form={}}if(!Ext.form.Action){Ext.form.Action={}}if(!Ext.form.action){Ext.form.action={}}if(!Ext.form.field){Ext.form.field={}}if(!Ext.form.trigger){Ext.form.trigger={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.fx.target){Ext.fx.target={}}if(!Ext.grid){Ext.grid={}}if(!Ext.grid.column){Ext.grid.column={}}if(!Ext.grid.feature){Ext.grid.feature={}}if(!Ext.grid.filters){Ext.grid.filters={}}if(!Ext.grid.filters.filter){Ext.grid.filters.filter={}}if(!Ext.grid.header){Ext.grid.header={}}if(!Ext.grid.locking){Ext.grid.locking={}}if(!Ext.grid.plugin){Ext.grid.plugin={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.boxOverflow){Ext.layout.boxOverflow={}}if(!Ext.layout.component){Ext.layout.component={}}if(!Ext.layout.component.field){Ext.layout.component.field={}}if(!Ext.layout.container){Ext.layout.container={}}if(!Ext.layout.container.border){Ext.layout.container.border={}}if(!Ext.layout.container.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.list){Ext.list={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.overrides){Ext.overrides={}}if(!Ext.overrides.app){Ext.overrides.app={}}if(!Ext.overrides.app.domain){Ext.overrides.app.domain={}}if(!Ext.overrides.dom){Ext.overrides.dom={}}if(!Ext.overrides.event){Ext.overrides.event={}}if(!Ext.overrides.event.publisher){Ext.overrides.event.publisher={}}if(!Ext.overrides.plugin){Ext.overrides.plugin={}}if(!Ext.overrides.util){Ext.overrides.util={}}if(!Ext.panel){Ext.panel={}}if(!Ext.perf){Ext.perf={}}if(!Ext.picker){Ext.picker={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.promise){Ext.promise={}}if(!Ext.resizer){Ext.resizer={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.selection){Ext.selection={}}if(!Ext.state){Ext.state={}}if(!Ext.tab){Ext.tab={}}if(!Ext.theme){Ext.theme={}}if(!Ext.theme.crisp){Ext.theme.crisp={}}if(!Ext.theme.crisp.view){Ext.theme.crisp.view={}}if(!Ext.theme.neptune){Ext.theme.neptune={}}if(!Ext.theme.neptune.form){Ext.theme.neptune.form={}}if(!Ext.theme.neptune.form.field){Ext.theme.neptune.form.field={}}if(!Ext.theme.neptune.grid){Ext.theme.neptune.grid={}}if(!Ext.theme.neptune.grid.column){Ext.theme.neptune.grid.column={}}if(!Ext.theme.neptune.layout){Ext.theme.neptune.layout={}}if(!Ext.theme.neptune.layout.component){Ext.theme.neptune.layout.component={}}if(!Ext.theme.neptune.menu){Ext.theme.neptune.menu={}}if(!Ext.theme.neptune.panel){Ext.theme.neptune.panel={}}if(!Ext.theme.neptune.picker){Ext.theme.neptune.picker={}}if(!Ext.theme.neptune.resizer){Ext.theme.neptune.resizer={}}if(!Ext.theme.neptune.toolbar){Ext.theme.neptune.toolbar={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}if(!Ext.tree){Ext.tree={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.ux){Ext.ux={}}if(!Ext.ux.colorpick){Ext.ux.colorpick={}}if(!Ext.ux.dd){Ext.ux.dd={}}if(!Ext.ux.layout){Ext.ux.layout={}}if(!Ext.ux.rating){Ext.ux.rating={}}if(!Ext.view){Ext.view={}}if(!Ext.window){Ext.window={}}var Settings=Settings||{};var Target=Target||{};if(!Target.model){Target.model={}}if(!Target.store){Target.store={}}if(!Target.view){Target.view={}}if(!Target.view.association){Target.view.association={}}if(!Target.view.catalog){Target.view.catalog={}}if(!Target.view.home){Target.view.home={}}if(!Target.view.main){Target.view.main={}}if(!Target.view.objects){Target.view.objects={}}if(!Target.view.preview){Target.view.preview={}}if(!Target.view.settings){Target.view.settings={}}if(!Target.view.wizard){Target.view.wizard={}}var common=common||{};if(!common.comment){common.comment={}}if(!common.contact){common.contact={}}if(!common.data){common.data={}}if(!common.data.proxy){common.data.proxy={}}if(!common.footer){common.footer={}}if(!common.header){common.header={}}if(!common.help){common.help={}}if(!common.model){common.model={}}if(!common.statistics){common.statistics={}}if(!common.store){common.store={}}var visiomatic=visiomatic||{};if(!visiomatic.catalog){visiomatic.catalog={}}if(!visiomatic.crop){visiomatic.crop={}}if(!visiomatic.download){visiomatic.download={}}if(!visiomatic.filter){visiomatic.filter={}}if(!visiomatic.model){visiomatic.model={}}if(!visiomatic.store){visiomatic.store={}}(function(q){var e,p=['constructor','toString','valueOf','toLocaleString'],n={},m={},k=0,l,j,a,b,o,f,c,d,g,h,i,t=function(){var s,t;j=Ext.Base;a=Ext.ClassManager;b=Ext.Class;for(s=p.length;s-->0;){t=1<0;){H=e[l];g[H]=j[H]}if(c.$isFunction){c=c(g)}v.data=c;x=c.statics;delete c.statics;c.$className=u;if('$className' in c){g.$className=c.$className}g.extend(Q);r=g.prototype;if(E){g.xtype=c.xtype=E[0];r.xtypes=E}r.xtypesChain=M;r.xtypesMap=O;c.alias=B;m.triggerExtended(g,c,v);if(c.onClassExtended){g.onExtended(c.onClassExtended,g);delete c.onClassExtended}if(c.privates&&h){h.call(b,g,c)}if(x){if(i){g.addStatics(x)}else {for(w in x){if(x.hasOwnProperty(w)){t=x[w];if(t&&t.$isFunction&&!t.$isClass&&t!==Ext.emptyFn&&t!==Ext.identityFn){g[w]=I=t;I.$owner=g;I.$name=w}g[w]=t}}}}if(c.inheritableStatics){g.addInheritableStatics(c.inheritableStatics);delete c.inheritableStatics}if(r.onClassExtended){m.onExtended(r.onClassExtended,m);delete r.onClassExtended}if(c.platformConfig&&d){d.call(b,g,c);delete c.platformConfig}if(c.config){o.call(b,g,c)}if(c.cachedConfig&&f){f.call(b,g,c);delete c.cachedConfig}v.onBeforeCreated(g,v.data,v);for(l=0,y=D&&D.length;l0){c--;a[c]='var Ext=window.'+Ext.name+';'+a[c]}}d=a.join('');b=e[d];if(!b){b=Function.prototype.constructor.apply(Function.prototype,a);e[d]=b}return b},functionFactory:function(){var b=Array.prototype.slice.call(arguments),a;if(Ext.isSandboxed){a=b.length;if(a>0){a--;b[a]='var Ext=window.'+Ext.name+';'+b[a]}}return Function.prototype.constructor.apply(Function.prototype,b)},Logger:{verbose:a,log:a,info:a,warn:a,error:function(a){throw new Error(a)},deprecate:a},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:function(){var a={};return function(e,c){if(!e){return []}else {if(!c){return [e]}}var g=a[c]||(a[c]=new RegExp('\\\\'+c,'g')),f=[],d,b;d=e.split(c);while((b=d.shift())!==undefined){while(b.charAt(b.length-1)==='\\'&&d.length>0){b=b+c+d.shift()}b=b.replace(g,c);f.push(b)}return f}}()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=!0})();Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=!0);(function(){function toString(){var d=this,b=d.sourceClass,a=d.sourceMethod,c=d.msg;if(a){if(c){a+='(): ';a+=c}else {a+='()'}}if(b){a=a?b+'.'+a:b}return a||c||''}Ext.Error=function(b){if(Ext.isString(b)){b={msg:b}}var a=new Error();Ext.apply(a,b);a.message=a.message||a.msg;a.toString=toString;return a};Ext.apply(Ext.Error,{ignore:!1,raise:function(a){a=a||{};if(Ext.isString(a)){a={msg:a}}var d=this,b=d.raise.caller,e,c;if(b===Ext.raise){b=b.caller}if(b){if(!a.sourceMethod&&(c=b.$name)){a.sourceMethod=c}if(!a.sourceClass&&(c=b.$owner)&&(c=c.$className)){a.sourceClass=c}}if(d.handle(a)!==!0){e=toString.call(a);throw new Ext.Error(a)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=function(){var c=Array.prototype,b=c.slice,f=function(){var a=[],b,c=20;if(!a.splice){return !1}while(c--){a.push('A')}a.splice(15,0,'F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F');b=a.length;a.splice(13,0,'XXX');if(b+1!==a.length){return !1}return !0}(),i='indexOf' in c,h=!0;function stableSort(b,e){var d=b.length,c=new Array(d),a;for(a=0;ac){for(b=l;b--;){a[h+b]=a[c+b]}}}if(e&&f===j){a.length=j;a.push.apply(a,d)}else {a.length=j+e;for(b=0;b>1;f=d(i,h[e]);if(f>=0){c=e+1}else {if(f<0){b=e-1}}}return c},defaultCompare:function(a,b){return ab?1:0},lexicalCompare:function(a,b){a=String(a);b=String(b);return ab?1:0},each:function(c,e,d,g){c=a.from(c);var b,f=c.length;if(g!==!0){for(b=0;b-1;b--){if(e.call(d||c[b],c[b],b,c)===!1){return b}}}return !0},forEach:'forEach' in c?function(a,c,b){return a.forEach(c,b)}:function(b,d,c){for(var a=0,e=b.length;a=0&&b>>0,c=e;if(arguments.length<3){while(!0){if(b in a){c=a[b++];break}if(++b>=d){throw new TypeError('Reduce of empty array with no initial value')}}}for(;bb){b=a}}}return b},mean:function(b){return b.length>0?a.sum(b)/b.length:undefined},sum:function(b){var d=0,a,e,c;for(a=0,e=b.length;ab?1:-1,a;for(a=b;a!=d;a+=e){c[a]=c[a+e]}c[d]=f},replace:j,splice:p,push:function(a){var d=arguments.length,c=1,b;if(a===undefined){a=[]}else {if(!Ext.isArray(a)){a=[a]}}for(;c=d){a=0}else {a=d-a}}if(a===0){b=c+b}else {if(a>=b.length){b+=c}else {b=b.substr(0,a)+c+b.substr(a)}}return b},startsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.lastIndexOf(a,0)===0}return c},endsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.indexOf(a,b.length-a.length)!==-1}return c},createVarName:function(a){return a.replace(l,'')},htmlEncode:function(a){return !a?a:String(a).replace(b,h)},htmlDecode:function(a){return !a?a:String(a).replace(d,g)},hasHtmlCharacters:function(a){return b.test(a)},addCharacterEntities:function(g){var i=[],h=[],e,f;for(e in g){f=g[e];a[e]=f;c[f]=e;i.push(f);h.push(e)}b=new RegExp('('+i.join('|')+')','g');d=new RegExp('('+h.join('|')+'|&#[0-9]{1,5};)','g')},resetCharacterEntities:function(){c={};a={};this.addCharacterEntities({'&':'&','>':'>','<':'<','"':'"',''':"'"})},urlAppend:function(a,b){if(!Ext.isEmpty(b)){return a+(a.indexOf('?')===-1?'?':'&')+b}return a},trim:function(a){if(a){a=a.replace(m,'')}return a||''},capitalize:function(a){if(a){a=a.charAt(0).toUpperCase()+a.substr(1)}return a||''},uncapitalize:function(a){if(a){a=a.charAt(0).toLowerCase()+a.substr(1)}return a||''},ellipsis:function(a,c,e){if(a&&a.length>c){if(e){var b=a.substr(0,c-2),d=Math.max(b.lastIndexOf(' '),b.lastIndexOf('.'),b.lastIndexOf('!'),b.lastIndexOf('?'));if(d!==-1&&d>=c-15){return b.substr(0,d)+'...'}}return a.substr(0,c-3)+'...'}return a},escapeRegex:function(a){return a.replace(i,'\\$1')},createRegex:function(b,d,e,c){var a=b;if(b!=null&&!b.exec){a=f.escapeRegex(String(b));if(d!==!1){a='^'+a}if(e!==!1){a+='$'}a=new RegExp(a,c!==!1?'i':'')}return a},escape:function(a){return a.replace(n,'\\$1')},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,d,b){var a=String(c);b=b||' ';while(a.length daysInMonth) {','d = daysInMonth;','}','}','h = from(h, from(def.h, dt.getHours()));','i = from(i, from(def.i, dt.getMinutes()));','s = from(s, from(def.s, dt.getSeconds()));','ms = from(ms, from(def.ms, dt.getMilliseconds()));','if(z >= 0 && y >= 0){','v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);','}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){','v = null;','}else{','if (W) {','year = y || (new Date()).getFullYear();','jan4 = new Date(year, 0, 4, 0, 0, 0);','d = jan4.getDay();','week1monday = new Date(jan4.getTime() - ((d === 0 ? 6 : d - 1) * 86400000));','v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));','} else {','v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','}','}','}','}','if(v){','if(zz != null){','v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);','}else if(o){',"v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));",'}','}','return (v != null) ? v : null;'].join('\n');if(!Date.prototype.toISOString){Date.prototype.toISOString=function(){var a=this;return c(a.getUTCFullYear(),4,'0')+'-'+c(a.getUTCMonth()+1,2,'0')+'-'+c(a.getUTCDate(),2,'0')+'T'+c(a.getUTCHours(),2,'0')+':'+c(a.getUTCMinutes(),2,'0')+':'+c(a.getUTCSeconds(),2,'0')+'.'+c(a.getUTCMilliseconds(),3,'0')+'Z'}}function xf(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(e,function(d,c){return b[c]})}return a={now:b.now,toString:function(a){if(!a){a=new b()}return a.getFullYear()+'-'+c(a.getMonth()+1,2,'0')+'-'+c(a.getDate(),2,'0')+'T'+c(a.getHours(),2,'0')+':'+c(a.getMinutes(),2,'0')+':'+c(a.getSeconds(),2,'0')},getElapsed:function(b,c){return Math.abs(b-(c||a.now()))},useStrict:!1,formatCodeToRegex:function(c,d){var b=a.parseCodes[c];if(b){b=typeof b==='function'?b():b;a.parseCodes[c]=b}return b?Ext.applyIf({c:b.c?xf(b.c,d||'{0}'):b.c},b):{g:0,c:null,s:Ext.String.escapeRegex(c)}},parseFunctions:{'MS':function(c,d){var a=(c||'').match(f);return a?new b(((a[1]||'')+a[2])*1):null},'time':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a)}return null},'timestamp':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a*1000)}return null}},parseRegexes:[],formatFunctions:{'MS':function(){return '\\/Date('+this.getTime()+')\\/'},'time':function(){return this.getTime().toString()},'timestamp':function(){return a.format(this,'U')}},y2kYear:50,MILLI:'ms',SECOND:'s',MINUTE:'mi',HOUR:'h',DAY:'d',MONTH:'mo',YEAR:'y',defaults:{},dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:'m/d/Y',getShortMonthName:function(b){return a.monthNames[b].substring(0,3)},getShortDayName:function(b){return a.dayNames[b].substring(0,3)},getMonthNumber:function(b){return a.monthNumbers[b.substring(0,1).toUpperCase()+b.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return h.test(a.replace(d,''))},formatContainsDateInfo:function(a){return g.test(a.replace(d,''))},unescapeFormat:function(a){return a.replace(i,'')},formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')",D:'Ext.Date.getShortDayName(m.getDay())',j:'m.getDate()',l:'Ext.Date.dayNames[m.getDay()]',N:'(m.getDay() ? m.getDay() : 7)',S:'Ext.Date.getSuffix(m)',w:'m.getDay()',z:'Ext.Date.getDayOfYear(m)',W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')",F:'Ext.Date.monthNames[m.getMonth()]',m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')",M:'Ext.Date.getShortMonthName(m.getMonth())',n:'(m.getMonth() + 1)',t:'Ext.Date.getDaysInMonth(m)',L:'(Ext.Date.isLeapYear(m) ? 1 : 0)',o:'(m.getFullYear() + (Ext.Date.getWeekOfYear(m) == 1 && m.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(m) >= 52 && m.getMonth() < 11 ? -1 : 0)))',Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')",y:"('' + m.getFullYear()).substring(2, 4)",a:"(m.getHours() < 12 ? 'am' : 'pm')",A:"(m.getHours() < 12 ? 'AM' : 'PM')",g:'((m.getHours() % 12) ? m.getHours() % 12 : 12)',G:'m.getHours()',h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(m.getHours(), 2, '0')",i:"Ext.String.leftPad(m.getMinutes(), 2, '0')",s:"Ext.String.leftPad(m.getSeconds(), 2, '0')",u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')",O:'Ext.Date.getGMTOffset(m)',P:'Ext.Date.getGMTOffset(m, true)',T:'Ext.Date.getTimezone(m)',Z:'(m.getTimezoneOffset() * -60)',c:function(){var e='Y-m-dTH:i:sP',d=[],b,f=e.length,c;for(b=0;b me.y2kYear ? 1900 + ty : 2000 + ty;\n',s:'(\\d{2})'},a:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(am|pm|AM|PM)',calcAtEnd:!0},A:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(AM|PM|am|pm)',calcAtEnd:!0},g:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|[0-9])'},G:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|1[0-9]|[0-9])'},h:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|0[1-9])'},H:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|[0-1][0-9])'},i:{g:1,c:'i = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},s:{g:1,c:'s = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},u:{g:1,c:'ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n',s:'(\\d+)'},O:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),','mn = o.substring(3,5) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{4})'},P:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),','mn = o.substring(4,6) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{2}:\\d{2})'},T:{g:0,c:null,s:'[A-Z]{1,5}'},Z:{g:1,c:'zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n',s:'([+-]?\\d{1,5})'},c:function(){var d=[],b=[a.formatCodeToRegex('Y',1),a.formatCodeToRegex('m',2),a.formatCodeToRegex('d',3),a.formatCodeToRegex('H',4),a.formatCodeToRegex('i',5),a.formatCodeToRegex('s',6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:['if(results[8]) {',"if(results[8] == 'Z'){",'zz = 0;',"}else if (results[8].indexOf(':') > -1){",a.formatCodeToRegex('P',8).c,'}else{',a.formatCodeToRegex('O',8).c,'}','}'].join('\n')}],c,e;for(c=0,e=b.length;c0?'-':'+')+Ext.String.leftPad(Math.floor(Math.abs(a)/60),2,'0')+(b?':':'')+Ext.String.leftPad(Math.abs(a%60),2,'0')},getDayOfYear:function(c){var e=0,b=a.clone(c),f=c.getMonth(),d;for(d=0,b.setDate(1),b.setMonth(0);d28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.MONTH,c)).getDate())};b.setDate(d);b.setMonth(f.getMonth()+c);break;case a.YEAR:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.YEAR,c)).getDate())};b.setDate(d);b.setFullYear(f.getFullYear()+c);break;}}if(g){switch(h.toLowerCase()){case a.MILLI:e=1;break;case a.SECOND:e=1000;break;case a.MINUTE:e=1000*60;break;case a.HOUR:e=1000*60*60;break;case a.DAY:e=1000*60*60*24;break;case a.MONTH:d=a.getDaysInMonth(b);e=1000*60*60*24*d;break;case a.YEAR:d=a.isLeapYear(b)?366:365;e=1000*60*60*24*d;break;}if(e){b.setTime(b.getTime()+e*g)}}return b},subtract:function(d,b,c){return a.add(d,b,-c)},between:function(c,b,d){var a=c.getTime();return b.getTime()<=a&&a<=d.getTime()},compat:function(){var c,g=['useStrict','formatCodeToRegex','parseFunctions','parseRegexes','formatFunctions','y2kYear','MILLI','SECOND','MINUTE','HOUR','DAY','MONTH','YEAR','defaults','dayNames','monthNames','monthNumbers','getShortMonthName','getShortDayName','getMonthNumber','formatCodes','isValid','parseDate','getFormatCode','createFormat','createParser','parseCodes'],h=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],j=g.length,i=h.length,f,e,d;for(d=0;dd){return b-1};return b;case a.YEAR:b=d.getFullYear()-e.getFullYear();if(a.add(e,f,b)>d){return b-1}else {return b};}},align:function(e,f,d){var c=new b(+e);switch(f.toLowerCase()){case a.MILLI:return c;case a.SECOND:c.setUTCSeconds(c.getUTCSeconds()-c.getUTCSeconds()%d);c.setUTCMilliseconds(0);return c;case a.MINUTE:c.setUTCMinutes(c.getUTCMinutes()-c.getUTCMinutes()%d);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.HOUR:c.setUTCHours(c.getUTCHours()-c.getUTCHours()%d);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.DAY:if(d===7||d===14){c.setUTCDate(c.getUTCDate()-c.getUTCDay()+1)};c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.MONTH:c.setUTCMonth(c.getUTCMonth()-(c.getUTCMonth()-1)%d,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.YEAR:c.setUTCFullYear(c.getUTCFullYear()-c.getUTCFullYear()%d,1,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return e;}}}}();Ext.Function=function(){var i=0,f,c=[],l=[],m=0,e={},d=window,b=Ext.global,h=!!(b.setImmediate&&b.clearImmediate),k=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(c){var b=Ext.now(),a=Math.max(0,16-(b-i)),e=d.setTimeout(function(){c(b+a)},a);i=b+a;return e},g=function(){var h=c.length,g,d,a;f=null;for(d=0;d0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},b)}a();return 0},interval:function(a,c,d,e,b){a=Ext.Function.bind(a,d,e,b);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},c)},createSequence:function(a,b,c){if(!b){return a}else {return function(){var d=a.apply(this,arguments);b.apply(c||this,arguments);return d}}},createBuffered:function(b,c,d,e){var a;return function(){var f=e||Array.prototype.slice.call(arguments,0),g=d||this;if(a){clearTimeout(a)}a=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b,g,f)}else {b.apply(g,f)}},c)}},createAnimationFrame:function(f,d,e,c){var b;c=c||3;return function(){var g=e||Array.prototype.slice.call(arguments,0);d=d||this;if(c===3&&b){a.cancelAnimationFrame(b)}if(c&1||!b){b=a.requestAnimationFrame(function(){b=null;f.apply(d,g)})}}},requestAnimationFrame:function(i,d,h){var a=++m,b=Array.prototype.slice.call(arguments,0);b[3]=a;e[a]=1;c.push(b);if(!f){f=k(Ext.elevateFunction?j:g)}return a},cancelAnimationFrame:function(a){delete e[a]},createThrottled:function(h,f,a){var e=0,d,c,b,g=function(){if(Ext.elevateFunction){Ext.elevateFunction(h,a,c)}else {h.apply(a,c)}e=Ext.now();b=null};return function(){if(!a){a=this}d=Ext.now()-e;c=arguments;if(d>=f){clearTimeout(b);g()}else {if(!b){b=Ext.defer(g,f-d)}}}},createBarrier:function(a,c,b){return function(){if(!--a){c.apply(b,arguments)}}},interceptBefore:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){var f=e.apply(d||this,arguments);c.apply(this,arguments);return f}},interceptAfter:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){c.apply(this,arguments);return e.apply(d||this,arguments)}},makeCallback:function(b,a){return function(){return a[b].apply(a,arguments)}},memoize:function(e,c,a){var b={},d=a&&Ext.isFunction(a);return function(g){var f=d?a.apply(c,arguments):g;if(!(f in b)){b[f]=e.apply(c,arguments)}return b[f]}}};Ext.asap=h?function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setImmediate(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}})}:function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}},0,!0)},Ext.asapCancel=h?function(a){clearImmediate(a)}:function(a){clearTimeout(a)};Ext.defer=a.defer;Ext.interval=a.interval;Ext.pass=a.pass;Ext.bind=a.bind;Ext.deferCallback=a.requestAnimationFrame;return a}();Ext.Number=new function(){var b=this,d=(0.9).toFixed()!=='1',c=Math,a={count:!1,inclusive:!1,wrap:!0};Ext.apply(b,{Clip:{DEFAULT:a,COUNT:Ext.applyIf({count:!0},a),INCLUSIVE:Ext.applyIf({inclusive:!0},a),NOWRAP:Ext.applyIf({wrap:!1},a)},clipIndices:function(d,c,f){f=f||a;var h=0,i=f.wrap,g,b,e;c=c||[];for(e=0;e<2;++e){g=b;b=c[e];if(b==null){b=h}else {if(e&&f.count){b+=g;b=b>d?d:b}else {if(i){b=b<0?d+b:b}if(e&&f.inclusive){++b}b=b<0?0:b>d?d:b}}h=d}c[0]=g;c[1]=ba?a:d},snap:function(a,c,e,f){var d;if(a===undefined||a=c){a+=c}else {if(d*2<-c){a-=c}}}}return b.constrain(a,e,f)},snapInRange:function(a,d,c,e){var f;c=c||0;if(a===undefined||a=d){a+=d}}if(e!==undefined){if(a>(e=b.snapInRange(e,d,c))){a=e}}return a},sign:function(a){a=+a;if(a===0||isNaN(a)){return a}return a>0?1:-1},toFixed:d?function(d,a){a=a||0;var b=c.pow(10,a);return (c.round(d*b)/b).toFixed(a)}:function(b,a){return b.toFixed(a)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(a,b){return c.floor(c.random()*(b-a+1)+a)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return b.from.apply(this,arguments)}}();(function(){var b=function(){},d=/^\?/,f=/(\[):?([^\]]*)\]/g,e=/^([^\[]+)/,c=/\+/g,a=Ext.Object={chain:Object.create||function(a){b.prototype=a;var c=new b();b.prototype=null;return c},clear:function(a){for(var b in a){delete a[b]}return a},freeze:Object.freeze?function(b,c){if(b&&typeof b==='object'&&!Object.isFrozen(b)){Object.freeze(b);if(c){for(var d in b){a.freeze(b[d],c)}}}return b}:Ext.identityFn,toQueryObjects:function(e,c,f){var g=a.toQueryObjects,d=[],b,h;if(Ext.isArray(c)){for(b=0,h=c.length;b0){o=q.split('=');a=o[0];a=a.replace(c,'%20');a=decodeURIComponent(a);g=o[1];if(g!==undefined){g=g.replace(c,'%20');g=decodeURIComponent(g)}else {g=''}if(!v){if(i.hasOwnProperty(a)){if(!Ext.isArray(i[a])){i[a]=[i[a]]}i[a].push(g)}else {i[a]=g}}else {m=a.match(f);r=a.match(e);a=r[0];k=[];if(m===null){i[a]=g;continue}for(h=0,l=m.length;h@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(b){var c=b,a;if(b&&b.charAt(0)==='<'){a=Ext._resourcePoolRe.exec(b);if(a){c=Ext.getResourcePath(a[3],a[1],a[2])}}return c},urlEncode:function(){var a=Ext.Array.from(arguments),b='';if(Ext.isString(a[1])){b=a[1]+'&';a[1]=!1}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(d){var b=Ext._scrollbarSize;if(d||!b){var c=document.body,a=document.createElement('div');a.style.width=a.style.height='100px';a.style.overflow='scroll';a.style.position='absolute';c.appendChild(a);Ext._scrollbarSize=b={width:a.offsetWidth-a.clientWidth,height:a.offsetHeight-a.clientHeight};c.removeChild(a)}return b},typeOf:function(){var a=/\S/,d=Object.prototype.toString,c={number:1,string:1,'boolean':1,'undefined':1},b={'[object Array]':'array','[object Date]':'date','[object Boolean]':'boolean','[object Number]':'number','[object RegExp]':'regexp'};return function(e){if(e===null){return 'null'}var f=typeof e,g,h;if(c[f]){return f}g=b[h=d.call(e)];if(g){return g}if(f==='function'){return 'function'}if(f==='object'){if(e.nodeType!==undefined){if(e.nodeType===3){return a.test(e.nodeValue)?'textnode':'whitespace'}else {return 'element'}}return 'object'}return h}}(),factory:function(a,f,b,d){var e=Ext.ClassManager,c;if(!a||a.isInstance){if(b&&b!==a){b.destroy()}return a}if(d){if(typeof a==='string'){return e.instantiateByAlias(d+'.'+a)}else {if(Ext.isObject(a)&&'type' in a){return e.instantiateByAlias(d+'.'+a.type,a)}}}if(a===!0){return b||Ext.create(f)}if('xtype' in a){c=e.instantiateByAlias('widget.'+a.xtype,a)}else {if('xclass' in a){c=Ext.create(a.xclass,a)}}if(c){if(b){b.destroy()}return c}if(b){return b.setConfig(a)}return Ext.create(f,a)},log:function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}()});(function(){var b=[''],c=/([^\d\.])/,f=/[^\d]/g,g=/[\-+]/g,h=/\s/g,e=/_/g,d={classic:1,modern:1},a;Ext.Version=a=function(k,p){var b=this,n=b.padModes,o,m,d,h,j,l,i;if(k.isVersion){k=k.version}b.version=i=String(k).toLowerCase().replace(e,'.').replace(g,'');o=i.charAt(0);if(o in n){i=i.substring(1);d=n[o]}else {d=p?n[p]:0}b.pad=d;l=i.search(c);b.shortVersion=i;if(l!==-1){b.release=j=i.substr(l,k.length);b.shortVersion=i.substr(0,l);j=a.releaseValueMap[j]||j}b.releaseValue=j||d;b.shortVersion=b.shortVersion.replace(f,'');b.parts=h=i.split('.');for(m=h.length;m--;){h[m]=parseInt(h[m],10)}if(d===Infinity){h.push(d)}b.major=h[0]||d;b.minor=h[1]||d;b.patch=h[2]||d;b.build=h[3]||d;return b};a.prototype={isVersion:!0,padModes:{'~':NaN,'^':Infinity},release:'',compareTo:function(f){var g=this,m=g.pad,j=g.parts,h=j.length,e=f.isVersion?f:new a(f),n=e.pad,k=e.parts,i=k.length,l=Math.max(h,i),b,c,d;for(b=0;bd){return 1}}c=g.releaseValue;d=e.releaseValue;if(cd){return 1}return 0},toString:function(){return this.version},valueOf:function(){return this.version},getMajor:function(){return this.major},getMinor:function(){return this.minor},getPatch:function(){return this.patch},getBuild:function(){return this.build},getRelease:function(){return this.release},getReleaseValue:function(){return this.releaseValue},isGreaterThan:function(a){return this.compareTo(a)>0},isGreaterThanOrEqual:function(a){return this.compareTo(a)>=0},isLessThan:function(a){return this.compareTo(a)<0},isLessThanOrEqual:function(a){return this.compareTo(a)<=0},equals:function(a){return this.compareTo(a)===0},match:function(a){a=String(a);return this.version.substr(0,a.length)===a},toArray:function(){var a=this;return [a.getMajor(),a.getMinor(),a.getPatch(),a.getBuild(),a.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(a){return this.compareTo(a)>0},lt:function(a){return this.compareTo(a)<0},gtEq:function(a){return this.compareTo(a)>=0},ltEq:function(a){return this.compareTo(a)<=0}};Ext.apply(a,{aliases:{from:{extjs:'ext',core:'core',touch:'modern'},to:{ext:['extjs'],'core':['core'],modern:['touch']}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,'#':-2,p:-1,pl:-1},getComponentValue:function(a){return !a?0:isNaN(a)?this.releaseValueMap[a]||a:parseInt(a,10)},compare:function(b,c){var d=b.isVersion?b:new a(b);return d.compareTo(c)},set:function(g,f,c){var b=a.aliases.to[f],d=c.isVersion?c:new a(c),e;g[f]=d;if(b){for(e=b.length;e-->0;){g[b[e]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,d;if(!b){d=c.ext||c.touch||c.core}else {d=c[a.aliases.from[b]||b]}return d||Ext.getVersion(b)},setCompatVersion:function(b,c){a.set(Ext.compatVersions,b,c)},setVersion:function(b,c){if(b in d){Ext.toolkit=b}Ext.lastRegisteredVersion=a.set(Ext.versions,b,c);return this},getVersion:function(c){var b=Ext.versions;if(!c){return b.ext||b.touch||b.core}return b[a.aliases.from[c]||c]},checkVersion:function(o,j){var p=Ext.isArray(o),s=a.aliases.from,q=p?o:b,t=q.length,n=Ext.versions,r=n.ext||n.touch,l,c,f,i,g,m,d,e,k;if(!p){b[0]=o}for(l=0;l=0){d=d.replace(h,'')}c=d.indexOf('@');if(c<0){e=d;k=r}else {m=d.substring(0,c);if(!(k=n[s[m]||m])){if(j){return !1}continue}e=d.substring(c+1)}c=e.indexOf('-');if(c<0){if(e.charAt(c=e.length-1)==='+'){i=e.substring(0,c);g=null}else {i=g=e}}else {if(c>0){i=e.substring(0,c);g=e.substring(c+1)}else {i=null;g=e.substring(c+1)}}f=!0;if(i){i=new a(i,'~');f=i.ltEq(k)}if(f&&g){g=new a(g,'~');f=g.gtEq(k)}}if(f){if(!j){return !0}}else {if(j){return !1}}}return !!j},deprecate:function(b,e,c,d){if(a.compare(Ext.getVersion(b),e)<1){c.call(d)}}})})();(function(c){var d=c&&c.packages||{},b=c&&c.compatibility,a,e;for(a in d){e=d[a];Ext.setVersion(a,e.version)}if(b){if(Ext.isString(b)){Ext.setCompatVersion('core',b)}else {for(a in b){Ext.setCompatVersion(a,b[a])}}}if(!d.ext&&!d.touch){Ext.setVersion('ext','6.0.1.250');Ext.setVersion('core','6.0.1.250')}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:'_'+b,initializing:'is'+a+'Initializing',apply:'apply'+a,update:'update'+a,get:'get'+a,set:'set'+a,initGet:'initGet'+a,changeEvent:b.toLowerCase()+'change'};c.root=c};Ext.Config.map={};Ext.Config.get=function(a){var b=Ext.Config.map,c=b[a]||(b[a]=new Ext.Config(a));return c};Ext.Config.prototype={self:Ext.Config,isConfig:!0,getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(b,d,f,e){var a,c;if(!d){a=b}else {if(!b){a=d}else {a=Ext.Object.chain(d);for(c in b){if(!e||!(c in a)){a[c]=b[c]}}}}return a},mergeSets:function(a,f,e){var b=f?Ext.Object.chain(f):{},c,d;if(a instanceof Array){for(c=a.length;c--;){d=a[c];if(!e||!(d in b)){b[d]=!0}}}else {if(a){if(a.constructor===Object){for(c in a){d=a[c];if(!e||!(c in b)){b[c]=d}}}else {if(!e||!(a in b)){b[a]=!0}}}}return b},makeGetter:function(){var b=this.name,a=this.names.internal;return function(){var c=this.$configPrefixed?a:b;return this[c]}},makeInitGetter:function(){var e=this.name,a=this.names,d=a.set,c=a.get,b=a.initializing;return function(){var a=this;a[b]=!0;delete a[c];a[d](a.config[e]);delete a[b];return a[c].apply(a,arguments)}},makeSetter:function(){var g=this.name,a=this.names,e=a.internal,f=a.get,d=a.apply,c=a.update,b;b=function(b){var a=this,h=a.$configPrefixed?e:g,i=a[h];delete a[f];if(!a[d]||(b=a[d](b,i))!==undefined){if(b!==(i=a[h])){a[h]=b;if(a[c]){a[c](b,i)}}}return a};b.$isDefault=!0;return b},makeEventedSetter:function(){var i=this.name,a=this.names,f=a.internal,h=a.get,d=a.apply,b=a.update,e=a.changeEvent,g=function(a,c,e,d){a[d]=c;if(a[b]){a[b](c,e)}},c;c=function(c){var a=this,k=a.$configPrefixed?f:i,j=a[k];delete a[h];if(!a[d]||(c=a[d](c,j))!==undefined){if(c!==(j=a[k])){if(a.isConfiguring){a[k]=c;if(a[b]){a[b](c,j)}}else {a.fireEventedAction(e,[a,c,j],g,a,[a,c,j,k])}}}return a};c.$isDefault=!0;return c}};(function(){var c=Ext.Config,b=c.map,a=Ext.Object;Ext.Configurator=function(d){var b=this,e=d.prototype,c=d.superclass?d.superclass.self.$config:null;b.cls=d;b.superCfg=c;if(c){b.configs=a.chain(c.configs);b.cachedConfigs=a.chain(c.cachedConfigs);b.initMap=a.chain(c.initMap);b.values=a.chain(c.values);b.needsFork=c.needsFork}else {b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}e.config=e.defaultConfig=b.values;d.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:!1,initList:null,add:function(t,l){var i=this,n=i.cls,k=i.configs,v=i.cachedConfigs,p=i.initMap,g=n.prototype,r=l&&l.$config.configs,u=i.values,m,f,s,h,b,j,e,q,o,d;for(e in t){d=t[e];m=d&&d.constructor===Object;f=m&&'$value' in d?d:null;if(f){s=!!f.cached;d=f.$value;m=d&&d.constructor===Object}h=f&&f.merge;b=k[e];if(b){if(l){h=b.merge;if(!h){continue}f=null}else {h=h||b.merge}j=u[e];if(h){d=h.call(b,d,j,n,l)}else {if(m){if(j&&j.constructor===Object){d=a.merge({},j,d)}}}}else {if(r){b=r[e];f=null}else {b=c.get(e)}k[e]=b;if(b.cached||s){v[e]=!0}q=b.names;if(!g[o=q.get]){g[o]=b.getter||b.getGetter()}if(!g[o=q.set]){g[o]=f&&f.evented?b.eventedSetter||b.getEventedSetter():b.setter||b.getSetter()}}if(f){if(b.owner!==n){k[e]=b=Ext.Object.chain(b);b.owner=n}Ext.apply(b,f);delete b.$value}if(!i.needsFork&&d&&(d.constructor===Object||d instanceof Array)){i.needsFork=!0}if(d!==null){p[e]=!0}else {if(g.$configPrefixed){g[k[e].names.internal]=null}else {g[k[e].name]=null}if(e in p){p[e]=!1}}u[e]=d}},configure:function(c,h){var k=this,u=k.configs,x=k.initMap,q=k.initListMap,o=k.initList,j=k.cls.prototype,i=k.values,r=0,v=!o,n,b,m,w,d,p,l,f,e,g,t,s,y;i=k.needsFork?a.fork(i):a.chain(i);c.isConfiguring=!0;if(v){k.initList=o=[];k.initListMap=q={};c.isFirstInstance=!0;for(e in x){w=x[e];b=u[e];t=b.cached;if(w){f=b.names;g=i[e];if(!j[f.set].$isDefault||j[f.apply]||j[f.update]||typeof g==='object'){if(t){(n||(n=[])).push(b)}else {o.push(b);q[e]=!0}c[f.get]=b.initGetter||b.getInitGetter()}else {j[b.getInternalName(j)]=g}}else {if(t){j[b.getInternalName(j)]=undefined}}}}l=n&&n.length;if(l){for(d=0;d0){for(a=0;ac.maxSize){c.unlinkEntry(f.prev,!0);--c.count}}return d.value},evict:Ext.emptyFn,linkEntry:function(c){var d=this.head,e=d.next;c.next=e;c.prev=d;d.next=c;e.prev=c},unlinkEntry:function(c,f){var d=c.next,e=c.prev;e.next=d;d.prev=e;if(f){this.evict(c.key,c.value)}}};a.destroy=a.clear})();(function(){var a,d=Ext.Base,b=d.$staticMembers,c=function(a,b){return a.length-b.length||(ab?1:0)};function makeCtor(a){function constructor(){return this.constructor.apply(this,arguments)||null}return constructor}Ext.Class=a=function(b,c,d){if(typeof b!='function'){d=c;c=b;b=null}if(!c){c={}}b=a.create(b,c);a.process(b,c,d);return b};Ext.apply(a,{makeCtor:makeCtor,onBeforeCreated:function(a,c,b){a.addMembers(c);b.onCreated.call(a,a)},create:function(a,f){var e=b.length,c;if(!a){a=makeCtor()}while(e--){c=b[e];a[c]=d[c]}return a},process:function(l,f,k){var j=f.preprocessors||a.defaultPreprocessors,o=this.preprocessors,e={onBeforeCreated:this.onBeforeCreated},d=[],b,c,g,n,h,m,i;delete f.preprocessors;l._classHooks=e;for(g=0,n=j.length;g0){b=h.test(c[d])}c=o[a];if(c&&!b){d=c.length;while(!b&&d-->0){b=h.test(c[d])}}}if(b){i[a]=1;l.push(a)}}}}}return l},getPath:function(a){var e=this,d=e.paths,b='',c;if(a in d){b=d[a]}else {c=e.getPrefix(a);if(c){a=a.substring(c.length+1);b=d[c];if(b){b+='/'}}b+=a.replace(e.dotRe,'/')+'.js'}return b},getPrefix:function(a){if(a in this.paths){return a}var d=this.getPrefixes(),e=d.length,b,c;while(e-->0){b=(c=d[e]).length;if(b0){b=i[d];f=c;c=b.value||c[b.name];if(!c&&h){f[b.name]=c={}}}return c},setNamespace:function(f,d){var b=a.getNamespaceEntry(f),c=Ext.global;if(b.parent){c=a.lookupName(b.parent,!0)}c[b.name]=d;return d},setXType:function(i,d){var f=i.$className,k=f?i:a.get(f=i),b=k.prototype,j=b.xtypes,c=b.xtypesChain,h=b.xtypesMap;if(!b.hasOwnProperty('xtypes')){b.xtypes=j=[];b.xtypesChain=c=c?c.slice(0):[];b.xtypesMap=h=Ext.apply({},h)}a.addAlias(f,'widget.'+d,!0);j.push(d);c.push(d);h[d]=!0},set:function(b,d){var c=a.getName(d);a.classes[b]=a.setNamespace(b,d);if(c&&c!==b){a.addAlternate(c,b)}return a},get:function(b){return a.classes[b]||a.lookupName(b,!1)},addNameAliasMappings:function(b){a.addAlias(b)},addNameAlternateMappings:function(b){a.addAlternate(b)},getByAlias:function(b){return a.get(a.getNameByAlias(b))},getByConfig:function(c,d){var f=c.xclass,b;if(f){b=f}else {b=c.xtype;if(b){d='widget.'}else {b=c.type}b=a.getNameByAlias(d+b)}return a.get(b)},getName:function(a){return a&&a.$className||''},getClass:function(a){return a&&a.self||null},create:function(c,b,f){var d=q(c);if(typeof b==='function'){b=b(d)}b.$className=c;return new n(d,b,function(){var m=b.postprocessors||a.defaultPostprocessors,s=a.postprocessors,i=[],d,j,q,k,p,h,l;delete b.postprocessors;for(j=0,q=m.length;j0;){c=a.lookupName(arguments[b],!0)}return c}});Ext.addRootNamespaces=a.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;n.registerPreprocessor('className',function(b,a){if('$className' in a){b.$className=a.$className}},!0,'first');n.registerPreprocessor('alias',function(q,d){var l=q.prototype,c=g(d.xtype),i=g(d.alias),j='widget.',p=j.length,k=Array.prototype.slice.call(l.xtypesChain||[]),h=Ext.merge({},l.xtypesMap||{}),a,f,m,b;for(a=0,f=i.length;a=d){Ext[o+'p']=!0}}}if(n.is.Opera&&parseInt(a,10)<=12){Ext.isOpera12m=!0}Ext.chromeVersion=Ext.isChrome?a:0;Ext.firefoxVersion=Ext.isFirefox?a:0;Ext.ieVersion=Ext.isIE?a:0;Ext.operaVersion=Ext.isOpera?a:0;Ext.safariVersion=Ext.isSafari?a:0;Ext.webKitVersion=Ext.isWebKit?a:0;this.setFlag(c+a,!0,r);this.setFlag(c+f.getShortVersion())}for(d in j){if(j.hasOwnProperty(d)){h=j[d];this.setFlag(h,c===h)}}this.setFlag(h);if(l){this.setFlag(g+(l.getMajor()||''));this.setFlag(g+l.getShortVersion())}for(d in k){if(k.hasOwnProperty(d)){h=k[d];this.setFlag(h,g===h,r)}}this.setFlag('Standalone',!!navigator.standalone);this.setFlag('Ripple',!!document.getElementById('tinyhippos-injected')&&!Ext.isEmpty(window.top.ripple));this.setFlag('WebWorks',!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){q=!0;this.setFlag('PhoneGap');this.setFlag('Cordova')}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(e)){q=!0}this.setFlag('WebView',q);this.isStrict=Ext.isStrict=document.compatMode==='CSS1Compat';this.isSecure=Ext.isSecure;this.identity=c+a+(this.isStrict?'Strict':'Quirks')};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{webkit:'WebKit',gecko:'Gecko',presto:'Presto',trident:'Trident',other:'Other'},enginePrefixes:{webkit:'AppleWebKit/',gecko:'Gecko/',presto:'Presto/',trident:'Trident/'},styleDashPrefixes:{WebKit:'-webkit-',Gecko:'-moz-',Trident:'-ms-',Presto:'-o-',Other:''},stylePrefixes:{WebKit:'Webkit',Gecko:'Moz',Trident:'ms',Presto:'O',Other:''},propertyPrefixes:{WebKit:'webkit',Gecko:'moz',Trident:'ms',Presto:'o',Other:''},is:function(a){return !!this.is[a]},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(b,a,c){if(a===undefined){a=!0}this.is[b]=a;this.is[b.toLowerCase()]=a;if(c){Ext['is'+b]=a}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(b){var a=this.propertyPrefixes[this.engineName];if(a.length>0){return a+Ext.String.capitalize(b)}return b},getPreferredTranslationMethod:function(a){if(typeof a==='object'&&'translationMethod' in a&&a.translationMethod!=='auto'){return a.translationMethod}else {return 'csstransform'}}};(function(a){Ext.browser=new Ext.env.Browser(a,!0);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":'about:blank'})(Ext.global.navigator.userAgent);Ext.env.OS=function(j,k,b){var n=this,g=Ext.Boot.osNames,h=Ext.Boot.osPrefixes,a,c='',m=n.is,d,l,f,i,e;b=b||Ext.browser;for(d in h){if(h.hasOwnProperty(d)){l=h[d];f=j.match(new RegExp('(?:'+l+')([^\\s;]+)'));if(f){a=g[d];e=f[1];if(e&&e==='HTC_'){c=new Ext.Version('2.3')}else {if(e&&e==='Silk/'){c=new Ext.Version('2.3')}else {c=new Ext.Version(f[f.length-1])}}break}}}if(!a){a=g[(j.toLowerCase().match(/mac|win|linux/)||['other'])[0]];c=new Ext.Version('')}this.name=a;this.version=c;if(k){this.setFlag(k.replace(/ simulator$/i,''))}this.setFlag(a);if(c){this.setFlag(a+(c.getMajor()||''));this.setFlag(a+c.getShortVersion())}for(d in g){if(g.hasOwnProperty(d)){i=g[d];if(!m.hasOwnProperty(a)){this.setFlag(i,a===i)}}}if(this.name==='iOS'&&window.screen.height===568){this.setFlag('iPhone5')}if(b.is.Safari||b.is.Silk){if(this.is.Android2||this.is.Android3||b.version.shortVersion===501){b.setFlag('AndroidStock')}if(this.is.Android4){b.setFlag('AndroidStock');b.setFlag('AndroidStock4')}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(b,a){if(a===undefined){a=!0}if(this.flags){this.flags[b]=a}this.is[b]=a;this.is[b.toLowerCase()]=a;return this}};(function(){var h=Ext.global.navigator,i=h.userAgent,e=Ext.env.OS,f=Ext.is||(Ext.is={}),a,c,b;e.prototype.flags=f;Ext.os=a=new e(i,h.platform);c=a.name;Ext['is'+c]=!0;Ext.isMac=f.Mac=f.MacOS;var d=window.location.search.match(/deviceType=(Tablet|Phone)/),g=window.deviceType;if(d&&d[1]){b=d[1]}else {if(g==='iPhone'){b='Phone'}else {if(g==='iPad'){b='Tablet'}else {if(!a.is.Android&&!a.is.iOS&&!a.is.WindowsPhone&&/Windows|Linux|MacOS/.test(c)){b='Desktop';Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else {if(a.is.iPad||a.is.RIMTablet||a.is.Android3||Ext.browser.is.Silk||a.is.Android&&i.search(/mobile/i)===-1){b='Tablet'}else {b='Phone'}}}}}a.setFlag(b,!0);a.deviceType=b;delete e.prototype.flags})();Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a='div'}else {if(typeof a!=='string'){return a}}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(a,d){var b=this.getTestElement(d).style,c=Ext.String.capitalize(a);if(typeof b[a]!=='undefined'||typeof b[Ext.browser.getStylePrefix(a)+c]!=='undefined'){return !0}return !1},isStyleSupportedWithoutPrefix:function(b,c){var a=this.getTestElement(c).style;if(typeof a[b]!=='undefined'){return !0}return !1},isEventSupported:function(e,d){if(d===undefined){d=window}var a=this.getTestElement(d),b='on'+e.toLowerCase(),c=b in a;if(!c){if(a.setAttribute&&a.removeAttribute){a.setAttribute(b,'');c=typeof a[b]==='function';if(typeof a[b]!=='undefined'){a[b]=undefined}a.removeAttribute(b)}}return c},getStyle:function(a,c){var b=a.ownerDocument.defaultView,d=b?b.getComputedStyle(a,null):a.currentStyle;return (d||a.style)[c]},getSupportedPropertyName:function(c,a){var b=Ext.browser.getVendorProperyName(a);if(b in c){return b}else {if(a in c){return a}}return null},detect:function(h){var c=this,g=document,m=c.toRun||c.tests,i=m.length,f=g.createElement('div'),k=[],j=Ext.supports,n=c.has,a,e,b,l,d;f.innerHTML='
    ';if(h){g.body.appendChild(f)}l=c.preDetected[Ext.browser.identity]||[];while(i--){b=m[i];d=l[i];a=b.name;e=b.names;if(d===undefined){if(!h&&b.ready){k.push(b);continue}d=b.fn.call(c,g,f)}if(a){j[a]=n[a]=d}else {if(e){while(e.length){a=e.pop();j[a]=n[a]=d}}}}if(h){g.body.removeChild(f)}c.toRun=k},report:function(){var b=[],c=this.tests.length,a;for(a=0;a
    ';b=a.childNodes.length===1;a.innerHTML='';return b}},{name:'touchScroll',fn:function(){var a=0;if(Ext.os.is.Desktop&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)){a=1}else {if(Ext.supports.Touch){a=2}}return a}},{name:'Touch',fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return Ext.supports.TouchEvents&&a!==1||a>1}else {return Ext.supports.TouchEvents||a>0}}},{name:'TouchEvents',fn:function(){return this.isEventSupported('touchend')}},{name:'PointerEvents',fn:function(){return navigator.pointerEnabled}},{name:'MSPointerEvents',fn:function(){return navigator.msPointerEnabled}},{name:'Orientation',fn:function(){return 'orientation' in window&&this.isEventSupported('orientationchange')}},{name:'OrientationChange',fn:function(){return this.isEventSupported('orientationchange')}},{name:'DeviceMotion',fn:function(){return this.isEventSupported('devicemotion')}},{names:['Geolocation','GeoLocation'],fn:function(){return 'geolocation' in window.navigator}},{name:'SqlDatabase',fn:function(){return 'openDatabase' in window}},{name:'WebSockets',fn:function(){return 'WebSocket' in window}},{name:'Range',fn:function(){return !!document.createRange}},{name:'CreateContextualFragment',fn:function(){var a=!!document.createRange?document.createRange():!1;return a&&!!a.createContextualFragment}},{name:'History',fn:function(){return 'history' in window&&'pushState' in window.history}},{name:'Css3dTransforms',fn:function(){return this.has('CssTransforms')&&this.isStyleSupported('perspective')}},{name:'CssTransforms',fn:function(){return this.isStyleSupported('transform')}},{name:'CssTransformNoPrefix',fn:function(){return this.isStyleSupportedWithoutPrefix('transform')}},{name:'CssAnimations',fn:function(){return this.isStyleSupported('animationName')}},{names:['CssTransitions','Transitions'],fn:function(){return this.isStyleSupported('transitionProperty')}},{names:['Audio','AudioTag'],fn:function(){return !!this.getTestElement('audio').canPlayType}},{name:'Video',fn:function(){return !!this.getTestElement('video').canPlayType}},{name:'LocalStorage',fn:function(){try{if('localStorage' in window&&window['localStorage']!==null){localStorage.setItem('sencha-localstorage-test','test success');localStorage.removeItem('sencha-localstorage-test');return !0}}catch(b){}return !1}},{name:'XHR2',fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&'withCredentials' in new XMLHttpRequest()}},{name:'XHRUploadProgress',fn:function(){if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){var a=new XMLHttpRequest();return a&&'upload' in a&&'onprogress' in a.upload}return !1}},{name:'NumericInputPlaceHolder',fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:'matchesSelector',fn:function(){var a=document.documentElement,d='matches',e='webkitMatchesSelector',b='msMatchesSelector',c='mozMatchesSelector';return a[d]?d:a[e]?e:a[b]?b:a[c]?c:null}},{name:'RightMargin',ready:!0,fn:function(c,b){var a=c.defaultView;return !(a&&a.getComputedStyle(b.firstChild.firstChild,null).marginRight!=='0px')}},{name:'DisplayChangeInputSelectionBug',fn:function(){var a=Ext.webKitVersion;return 0a';b=a.firstChild;a.innerHTML='
    b
    ';return b.innerHTML!=='a'}},{name:'IncludePaddingInWidthCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetWidth===210}},{name:'IncludePaddingInHeightCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetHeight===210}},{name:'TextAreaMaxLength',fn:function(a){return 'maxlength' in a.createElement('textarea')}},{name:'GetPositionPercentage',ready:!0,fn:function(b,a){return Ext.feature.getStyle(a.childNodes[2],'left')==='10%'}},{name:'PercentageHeightOverflowBug',ready:!0,fn:function(d){var c=!1,b,a;if(Ext.getScrollbarSize().height){a=this.getTestElement();b=a.style;b.height='50px';b.width='50px';b.overflow='auto';b.position='absolute';a.innerHTML=['
    ','
    ','
    '].join('');d.body.appendChild(a);if(a.firstChild.offsetHeight===50){c=!0}d.body.removeChild(a)}return c}},{name:'xOriginBug',ready:!0,fn:function(e,b){b.innerHTML='
    ';var a=document.getElementById('b1').getBoundingClientRect(),c=document.getElementById('b2').getBoundingClientRect(),d=document.getElementById('b3').getBoundingClientRect();return c.left!==a.left&&d.right!==a.right}},{name:'ScrollWidthInlinePaddingBug',ready:!0,fn:function(c){var d=!1,a,b;b=c.createElement('div');a=b.style;a.height='50px';a.width='50px';a.padding='10px';a.overflow='hidden';a.position='absolute';b.innerHTML='';c.body.appendChild(b);if(b.scrollWidth===70){d=!0}c.body.removeChild(b);return d}},{name:'rtlVertScrollbarOnRight',ready:!0,fn:function(d,c){c.innerHTML='
    ';var a=c.firstChild,b=a.firstChild;return b.offsetLeft+b.offsetWidth!==a.offsetLeft+a.offsetWidth}},{name:'rtlVertScrollbarOverflowBug',ready:!0,fn:function(c,b){b.innerHTML='
    ';var a=b.firstChild;return a.clientHeight===a.offsetHeight}},{identity:'defineProperty',fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return !1}return !0}},{identify:'nativeXhr',fn:function(){if(typeof XMLHttpRequest!=='undefined'){return !0}XMLHttpRequest=function(){try{return new ActiveXObject('MSXML2.XMLHTTP.3.0')}catch(b){return null}};return !1}},{name:'SpecialKeyDownRepeat',fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(Ext.isGecko&&!Ext.isWindows||Ext.isOpera&&Ext.operaVersion<12)}},{name:'EmulatedMouseOver',fn:function(){return Ext.os.is.iOS}},{name:'Hashchange',fn:function(){var a=document.documentMode;return 'onhashchange' in window&&(a===undefined||a>7)}},{name:'FixedTableWidthBug',ready:!0,fn:function(){if(Ext.isIE8){return !1}var a=document.createElement('div'),b=document.createElement('div'),c;a.setAttribute('style','display:table;table-layout:fixed;');b.setAttribute('style','display:table-cell;min-width:50px;');a.appendChild(b);document.body.appendChild(a);a.offsetWidth;a.style.width='25px';c=a.offsetWidth;document.body.removeChild(a);return c===50}},{name:'FocusinFocusoutEvents',fn:function(){return !Ext.isGecko}},{name:'AsyncFocusEvents',fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:'accessibility',ready:!0,fn:function(f){var g=f.body,b,c,a,e,d;function getColor(a){var c=[],e=0,g,b;if(a.indexOf('rgb(')!==-1){c=a.replace('rgb(','').replace(')','').split(', ')}else {if(a.indexOf('#')!==-1){g=a.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;b=a.match(g);if(b){c=['0x'+b[1],'0x'+b[2],'0x'+b[3]]}}}for(var d=0;d0};Ext.supports.HighContrastMode=!e.BackgroundImages;g.removeChild(b);b=c=null;return e}},0]};Ext.feature.tests.pop();Ext.supports={};Ext.feature.detect();Ext.env.Ready={blocks:(location.search||'').indexOf('ext-pauseReadyFire')>0?1:0,bound:0,delay:1,firing:!1,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==='complete'){a.onReadyEvent({type:b.readyState||'body'})}else {a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener('deviceready',a.onReadyEvent,!1)}b.addEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.addEventListener('load',a.onReadyEvent,!1)}}},block:function(){++this.blocks;Ext.isReady=!1},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=!0;a.state=1;Ext.feature.detect(!0);if(!a.delay){a.handleReady()}else {if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else {a.handleReadySoon()}}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(b){var a=this;if(!a.timer){a.timer=Ext.defer(function(){a.timer=null;a.handleReady()},b||a.delay)}},invoke:function(a){var b=a.delay;if(b){Ext.defer(a.fn,b,a.scope)}else {if(Ext.elevateFunction){Ext.elevateFunction(a.fn,a.scope)}else {a.fn.call(a.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else {this.doInvokeAll()}},doInvokeAll:function(){var a=this,b=a.listeners,c;if(!a.blocks){Ext.isReady=!0}a.firing=!0;while(b.length){if(a.sortGeneration!==a.generation){a.sortGeneration=a.generation;b.sort(a.sortFn)}c=b.pop();if(a.blocks&&!c.dom){b.push(c);break}a.invoke(c)}a.firing=!1},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:!1,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(e,d,c){var a=Ext.env.Ready,b=a.makeListener(e,d,c);if(a.state===2&&!a.firing&&(b.dom||!a.blocks)){a.invoke(b)}else {a.listeners.push(b);++a.generation;if(!a.bound){a.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else {a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(a,b){return -(a.phase-b.phase||b.priority-a.priority||a.id-b.id)},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener('deviceready',a.onReadyEvent,!1)}b.removeEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.removeEventListener('load',a.onReadyEvent,!1)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=!0;try{document.documentElement.doScroll('left')}catch(c){b=!1}if(b&&document.body){a.onReadyEvent({type:'doScroll'})}else {a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){if(a.bound){return}var b=document,c;try{c=window.frameElement===undefined}catch(d){}if(!c||!b.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else {if(a.pollScroll()){return}}if(b.readyState==='complete'){a.onReadyEvent({type:'already '+(b.readyState||'body')})}else {b.attachEvent('onreadystatechange',a.onReadyStateChange);window.attachEvent('onload',a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent('onreadystatechange',a.onReadyStateChange);window.detachEvent('onload',a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){clearTimeout(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:!0};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()})();Ext.Loader=new function(){var a=this,b=Ext.ClassManager,i=Ext.Boot,o=Ext.Class,c=Ext.env.Ready,k=Ext.Function.alias,h=['extend','mixins','requires'],j={},m=[],f=[],g=[],l={},d={},e={enabled:!0,scriptChainDelay:!1,disableCaching:!0,disableCachingParam:'_dc',paths:b.paths,preserveScripts:!0,scriptCharset:undefined},n={disableCaching:!0,disableCachingParam:!0,preserveScripts:!0,scriptChainDelay:'loadDelay'};Ext.apply(a,{isInHistory:j,isLoading:!1,history:m,config:e,readyListeners:f,optionalRequires:g,requiresMap:l,hasFileLoadError:!1,scriptsLoading:0,syncModeEnabled:!1,missingQueue:d,init:function(){var k=document.getElementsByTagName('script'),m=k[k.length-1].src,n=m.substring(0,m.lastIndexOf('/')+1),l=Ext._classPathMetadata,h=Ext.Microloader,g=Ext.manifest,d,i,j,e,f;if(!b.getPath('Ext')){b.setPath('Ext',n+'src')}if(l){Ext._classPathMetadata=null;a.addClassPathMappings(l)}if(g){d=g.loadOrder;i=Ext.Boot.baseUrl;if(d&&g.bootRelative){for(j=d.length,e=0;e1?'es':'')+': '+g.join(', '))}if(l.length){a.loadScripts({url:l,_classNames:g})}else {a.checkReady()}}else {if(c){c.call(k)}a.checkReady()}if(a.syncModeEnabled){if(m===1){return b.get(h[0])}}return a},makeLoadCallback:function(a,c){return function(){var e=[],d=a.length;while(d-->0){e[d]=b.get(a[d])}return c.apply(this,e)}},onLoadFailure:function(){var b=this,c=b.onError;a.hasFileLoadError=!0;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onLoadSuccess:function(){var b=this,c=b.onLoad;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onReady:function(g,e,h,d){if(h){c.on(g,e,d)}else {var b=c.makeListener(g,e,d);if(a.isLoading){f.push(b)}else {c.invoke(b)}}},addUsedClasses:function(b){var c,d,e;if(b){b=typeof b==='string'?[b]:b;for(d=0,e=b.length;d0){a.loadScripts({url:b,sequential:!0})}}}if(h.uses){b=h.uses;a.addUsedClasses(b)}});b.onCreated(a.historyPush);a.init()}();Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}Ext.cmd.derive('Ext.Mixin',Ext.Base,function(a){return {statics:{addHook:function(e,c,d,h){var g=Ext.isFunction(e),b=function(){var b=arguments,i=g?e:h[e],f=this.callParent(b);i.apply(this,b);return f},f=c.hasOwnProperty(d)&&c[d];if(g){e.$previous=Ext.emptyFn}b.$name=d;b.$owner=c.self;if(f){b.$previous=f.$previous;f.$previous=b}else {c[d]=b}}},onClassExtended:function(k,c){var b=c.mixinConfig,d=c.xhooks,j=k.superclass,i=c.onClassMixedIn,h,f,g,e;if(d){delete c.xhooks;(b||(c.mixinConfig=b={})).on=d}if(b){h=j.mixinConfig;if(h){c.mixinConfig=b=Ext.merge({},h,b)}c.mixinId=b.id;f=b.before;g=b.after;d=b.on;e=b.extended}if(f||g||d||e){c.onClassMixedIn=function(b){var h=this.prototype,l=b.prototype,j;if(f){Ext.Object.each(f,function(e,d){b.addMember(e,function(){if(h[d].apply(this,arguments)!==!1){return this.callParent(arguments)}})})}if(g){Ext.Object.each(g,function(e,d){b.addMember(e,function(){var f=this.callParent(arguments);h[d].apply(this,arguments);return f})})}if(d){for(j in d){a.addHook(d[j],l,j,h)}}if(e){b.onExtended(function(){var d=Ext.Array.slice(arguments,0);d.unshift(b);return e.apply(this,d)},this)}if(i){i.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,'Mixin'],0);Ext.util=Ext.util||{};Ext.util.DelayedTask=function(e,c,d,b,g){var a=this,f,h=function(){var f=Ext.GlobalEvents;clearInterval(a.id);a.id=null;e.apply(c,d||[]);if(g!==!1&&f.hasListeners.idle){f.fireEvent('idle')}};b=typeof b==='boolean'?b:!0;a.id=null;a.delay=function(i,l,j,k){if(b){a.cancel()}if(typeof i==='number'){f=i}e=l||e;c=j||c;d=k||d;if(!a.id){a.id=Ext.interval(h,f)}};a.cancel=function(){if(a.id){clearInterval(a.id);a.id=null}}};Ext.cmd.derive('Ext.util.Event',Ext.Base,function(){var d=Array.prototype.slice,c=Ext.Array.insert,b=Ext.Array.toArray,a={};return {isEvent:!0,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(r,q,g,t,s){var a=this,p=!1,l=a.observable,o=a.name,d,m,i,h,f,k,j,b,e,n;if(a.findListener(r,q)===-1){m=a.createListener(r,q,g,t,s);if(a.firing){a.listeners=a.listeners.slice(0)}d=a.listeners;b=j=d.length;i=g&&g.priority;f=a._highestNegativePriorityIndex;k=f!==undefined;if(i){h=i<0;if(!h||k){for(e=h?f:0;e0},fireDelegated:function(a,b){this.firingObservable=a;return this.fire.apply(this,b)},fire:function(){var e=this,r=e.listeners,t=r.length,n=e.observable,i=n.isElement,w=n.isComponent,v=e.firingObservable,b,o,f,k,c,j,u,h,l,p,g,m,a,s,q;if(!e.suspended&&t>0){e.firing=!0;c=arguments.length?d.call(arguments,0):[];u=c.length;if(i){a=c[0]}for(k=0;k4?b:e;b=e;for(e in b){if(b.hasOwnProperty(e)){g=b[e];if(!h.$eventOptions[e]){f.addManagedListener(h,e,g.fn||g,g.scope||b.scope||i,g.fn?g:k,!0)}}}if(b&&b.destroyable){return new a(f,h,b)}}else {if(j!==d){h.doAddListener(e,j,i,b,null,f,f);if(!l&&b&&b.destroyable){return new a(f,h,e,j,i)}}}},removeManagedListener:function(h,a,k,j){var e=this,b,d,g,i,f;if(typeof a!=='string'){b=a;for(a in b){if(b.hasOwnProperty(a)){d=b[a];if(!h.$eventOptions[a]){e.removeManagedListener(h,a,d.fn||d,d.scope||b.scope||j)}}}}else {g=e.managedListeners?e.managedListeners.slice():[];a=Ext.canonicalEventName(a);for(f=0,i=g.length;f0,d=this.events;if(!b&&a&&d){a=d[a];if(a&&a.isEvent){return a.isSuspended()}}return b},suspendEvents:function(a){++this.eventsSuspended;if(a&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var e=this,f=e.events,g=arguments.length,d,b,a;for(d=0;d0){i.push(g)}d--;if(d===0){f.resolve(i)}return g};m=function(d){h--;if(h===0){f.reject(new Error('Too few Promises were resolved.'))}return d};for(g=j=0,n=e.length;j0){b.type=a.substring(0,e);b.defaultType=a.substring(e+1)}if(f){delete d.factoryConfig;Ext.apply(b,f)}g=Ext.Factory.define(b.type,b);if(c.create===Ext.Base.create){c.create=g}}},0,0,0,0,0,0,[Ext.mixin,'Factoryable'],0);Ext.cmd.derive('Ext.data.request.Base',Ext.Base,{factoryConfig:{type:'request',defaultType:'ajax'},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=!0}a.abort=Ext.emptyFn},createDeferred:function(){return this.deferred=new Ext.Deferred()},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var a=this,b=a.deferred,c=a.result;a.clearTimer();if(b){if(a.success){b.resolve(c)}else {b.reject(c)}}},onTimeout:function(){var a=this;a.timedout=!0;a.timer=null;a.abort(!0)},getTimeout:function(){return this.timeout},clearTimer:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var a=this,b;b={request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?'transaction aborted':'communication failure',getResponseHeader:a._getHeader,getAllResponseHeaders:a._getHeaders};if(a.aborted){b.aborted=!0}if(a.timedout){b.timedout=!0}return b},_getHeader:function(b){var a=this.headers;return a&&a[b.toLowerCase()]},_getHeaders:function(){return this.headers}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.request,'Base'],0);Ext.cmd.derive('Ext.data.flash.BinaryXhr',Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=!0;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById('ext-flash-polyfill');Ext.GlobalEvents.fireEvent('flashready')},flashPluginActive:!1,flashPluginInjected:!1,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(b,c,d){var a;a=this.liveConnections[Number(b)];if(a){a.onFlashStateChange(c,d)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var c=this,b,a;c.flashPolyfillEl=Ext.getBody().appendChild({id:'ext-flash-polyfill',cn:[{tag:'p',html:'To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed.'},{tag:'a',href:'http://www.adobe.com/go/getflashplayer',cn:[{tag:'img',src:window.location.protocol+'//www.adobe.com/images/shared/download_buttons/get_flash_player.gif',alt:'Get Adobe Flash player'}]}]});b=[Ext.Loader.getPath('Ext.data.Connection'),'../../../plugins/flash/swfobject.js'].join('/');a='/plugins/flash/FlashPlugin.swf';if(Ext.flashPluginPath){a=Ext.flashPluginPath}Ext.Loader.loadScript({url:b,onLoad:function(){var d='11.4.0';var e='playerProductInstall.swf';var f={};var b={};b.quality='high';b.bgcolor='#ffffff';b.allowscriptaccess='sameDomain';b.allowfullscreen='true';var c={};c.id='ext-flash-polyfill';c.name='polyfill';c.align='middle';swfobject.embedSWF(a,'ext-flash-polyfill','0','0',d,e,f,b,c)},onError:function(){},scope:c});Ext.data.flash.BinaryXhr.flashPluginInjected=!0}},readyState:0,status:0,statusText:'',responseBytes:null,javascriptId:null,constructor:function(b){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var a=this;Ext.apply(a,b);a.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=!0;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener('flashready',a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(c,b){a.push(c+': '+b)});return a.join('\r\n')},getResponseHeader:function(b){var a=this.responseHeaders;return a&&a[b]||null},open:function(c,f,d,e,b){var a=this;a.method=c;a.url=f;a.async=d!==!1;a.user=e;a.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(b){var a=this;a.body=b;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener('flashready',a.onFlashReady,a)}else {this.onFlashReady()}},onFlashReady:function(){var a=this,b,c;a.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(a);b={method:a.method,url:a.url,user:a.user,password:a.password,mimeType:a.mimeType,requestHeaders:a.requestHeaders,body:a.body,javascriptId:a.javascriptId};c=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(a,b){this.requestHeaders[a]=b},onreadystatechange:Ext.emptyFn,parseData:function(a){var b=this;this.status=a.status||0;b.responseHeaders={};if(b.mimeType){b.responseHeaders['content-type']=b.mimeType}if(a.reason=='complete'){this.responseBytes=a.data;b.responseHeaders['content-length']=a.data.length}else {if(a.reason=='error'||a.reason=='securityError'){this.statusText=a.text;b.responseHeaders['content-length']=0}}},onFlashStateChange:function(b,c){var a=this;if(b==4){a.parseData(c);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(b)}},1,0,0,0,0,0,[Ext.data.flash,'BinaryXhr'],0);Ext.cmd.derive('Ext.data.request.Ajax',Ext.data.request.Base,{statics:{parseStatus:function(a){a=a==1223?204:a;var c=a>=200&&a<300||a==304,b=!1;if(!c){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:b=!0;break;}}return {success:c,isException:b}}},start:function(f){var a=this,e=a.options,c=a.requestOptions,d=a.isXdr,b,g;b=a.xhr=a.openRequest(e,c,a.async,a.username,a.password);if(!d){g=a.setupHeaders(b,e,c.data,c.params)}if(a.async){if(!d){b.onreadystatechange=Ext.Function.bind(a.onStateChange,a)}}if(d){a.processXdrRequest(a,b)}Ext.data.request.Base.prototype.start.call(this,f);b.send(f);if(!a.async){return a.onComplete()}return a},abort:function(c){var a=this,b=a.xhr;if(c||a.isLoading()){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=Ext.emptyFn}b.abort();Ext.data.request.Base.prototype.abort.call(this,c);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var c=this,a=c.xhr,b=a&&a.readyState,d=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!a||c.aborted||c.timedout){return !1}if(d&&a instanceof d){return b!==4}return b!==0&&b!==4},openRequest:function(d,b,f,e,g){var c=this,a=c.newRequest(d);if(e){a.open(b.method,b.url,f,e,g)}else {if(c.isXdr){a.open(b.method,b.url)}else {a.open(b.method,b.url,f)}}if(d.binary||c.binary){if(window.Uint8Array){a.responseType='arraybuffer'}else {if(a.overrideMimeType){a.overrideMimeType('text/plain; charset=x-user-defined')}}}if(d.withCredentials||c.withCredentials){a.withCredentials=!0}return a},newRequest:function(c){var a=this,b;if(c.binaryData){if(window.Uint8Array){b=a.getXhrInstance()}else {b=new Ext.data.flash.BinaryXhr()}}else {if(a.cors&&Ext.isIE9m){b=a.getXdrInstance();a.isXdr=!0}else {b=a.getXhrInstance();a.isXdr=!1}}return b},setupHeaders:function(m,f,j,l){var d=this,a=Ext.apply({},f.headers||{},d.defaultHeaders),e=d.defaultPostHeader,h=f.jsonData,i=f.xmlData,b='Content-Type',k=d.useDefaultXhrHeader,c,g;if(!a.hasOwnProperty(b)&&(j||l)){if(j){if(f.rawData){e='text/plain'}else {if(i&&Ext.isDefined(i)){e='text/xml'}else {if(h&&Ext.isDefined(h)){e='application/json'}}}}a[b]=e}if(k&&!a['X-Requested-With']){a['X-Requested-With']=d.defaultXhrHeader}if(a[b]===undefined||a[b]===null){delete a[b]}try{for(c in a){if(a.hasOwnProperty(c)){g=a[c];m.setRequestHeader(c,g)}}}catch(n){d.owner.fireEvent('exception',c,g)}return a},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else {Ext.raise({msg:'Your browser does not support CORS'})}return a},getXhrInstance:function(){var c=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject('MSXML2.XMLHTTP.3.0')},function(){return new ActiveXObject('MSXML2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')}],b=0,d=c.length,a;for(;b=0){j=e.substr(0,c).toLowerCase();if(e.charAt(c+1)==' '){++c}f[j]=e.substr(c+1)}}b={request:d,requestId:d.id,status:a.status,statusText:a.statusText,getResponseHeader:function(b){return f[b.toLowerCase()]},getAllResponseHeaders:function(){return f}};if(h){d.processXdrResponse(b,a)}if(d.binary){b.responseBytes=d.getByteArray(a)}else {b.responseText=a.responseText;b.responseXML=a.responseXML}return b},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(b){var e=b.response,g=b.responseBody,h=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,d,f,c;if(b instanceof h){a=b.responseBytes}else {if(window.Uint8Array){a=e?new Uint8Array(e):[]}else {if(Ext.isIE9p){try{a=(new VBArray(g)).toArray()}catch(i){a=[]}}else {if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(b.responseBody,a=[])}else {a=[];d=b.responseText;f=d.length;for(c=0;c=500){this.run()}},run:function(){var a=this;if(!a.isRunning){return}var b=a.runningQueue,d=Ext.now(),c,e;a.lastRunTime=d;a.frameStartTime=d;b.push.apply(b,a.queue);for(c=0,e=b.length;c0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty('taskQueueTimer')){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var a=this.taskQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}}},1,0,0,0,0,0,[Ext,'AnimationQueue'],0);Ext.cmd.derive('Ext.ComponentManager',Ext.Base,{alternateClassName:'Ext.ComponentMgr',singleton:!0,count:0,typeName:'xtype',constructor:function(b){var a=this;Ext.apply(a,b||{});a.all={};a.references={};a.onAvailableCallbacks={}},create:function(a,b){if(typeof a==='string'){return Ext.widget(a)}if(a.isComponent){return a}if('xclass' in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(b){var a=this,e=a.all,d=b.getId(),c=a.onAvailableCallbacks;e[d]=b;if(b.getReference&&b.getReference()){a.references[d]=b}++a.count;if(!a.hasFocusListener){Ext.on('focus',a.onGlobalFocus,a);a.hasFocusListener=!0}c=c&&c[d];if(c&&c.length){a.notifyAvailable(b)}},unregister:function(b){var a=b.getId();if(b.getReference&&b.getReference()){this.references[a]=null;delete this.references[a]}this.all[a]=null;delete this.all[a];this.count--},markReferencesDirty:function(){this.referencesDirty=!0},fixReferences:function(){var c=this,a=c.references,b;if(c.referencesDirty){for(b in a){if(a.hasOwnProperty(b)){a[b].fixReference()}}c.referencesDirty=!1}},onAvailable:function(a,f,d){var g=this,b=g.onAvailableCallbacks,e=g.all,c;if(a in e){c=e[a];f.call(d||c,c)}else {if(a){if(!Ext.isArray(b[a])){b[a]=[]}b[a].push(function(b){f.call(d||b,b)})}}},notifyAvailable:function(a){var b=this.onAvailableCallbacks[a&&a.getId()]||[];while(b.length){b.shift()(a)}},each:function(b,a){return Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.fromElement(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(d){var h=this,g=d.toElement,f=d.fromElement,c=Ext.Component.fromElement(g),b=Ext.Component.fromElement(f),e,a;if(c===b){return}e=h.getCommonAncestor(b,c);if(b&&!(b.destroyed||b.destroying)){if(b.handleBlurEvent){b.handleBlurEvent(d)}for(a=b;a&&a!==e;a=a.getRefOwner()){if(!(a.destroyed||a.destroying)){a.onFocusLeave({event:d.event,type:'focusleave',target:f,relatedTarget:g,fromComponent:b,toComponent:c})}}}if(c&&!c.destroyed){if(c.handleFocusEvent){c.handleFocusEvent(d)}for(a=c;a&&a!==e;a=a.getRefOwner()){a.onFocusEnter({event:d.event,type:'focusenter',relatedTarget:f,target:g,fromComponent:b,toComponent:c})}}},getCommonAncestor:function(a,b){if(a===b){return a}while(a&&!(a.isAncestor(b)||a===b)){a=a.getRefOwner()}return a},privates:{clearAll:function(){this.all={};this.references={};this.onAvailableCallbacks={}},fromElement:function(i,b,e){var a=Ext.getDom(i),h=this.all,g=0,f,d,c;if(typeof b!=='number'){f=Ext.getDom(b);b=Number.MAX_VALUE}while(a&&a.nodeType===1&&g0){for(;a.first&&b;b--){a.removeAtKey(a.first.key)}}},destroy:function(){this.first=this.last=null;Ext.util.HashMap.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util,'LruCache'],0);Ext.cmd.derive('Ext.ComponentQuery',Ext.Base,{singleton:!0},0,0,0,0,0,0,[Ext,'ComponentQuery'],function(){var a=this,f=Ext.util.Operators,r=/(\d*)n\+?(\d*)/,q=/\D/,c=/^(\s)+/,b=/\\(.)/g,j=new Ext.util.LruCache({maxSize:100}),m=['var r = [],','i = 0,','it = items,','l = it.length,','c;','for (; i < l; i++) {','c = it[i];','if (c.{0}) {','r.push(c);','}','}','return r;'].join(''),d=function(b,a){return a.method.apply(this,[b].concat(a.args))},e=function(d,g){var b=[],c=0,e=d.length,a,f=g!=='>';for(;c\^])\s?|\s|$)/,o=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,k=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:g,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:l,argTransform:function(c){var g=c[0],f=c[1],e=c[2],a=c[4],d;if(a!==undefined){a=a.replace(b,'$1')}if(e==='/='){d=j.get(a);if(d){a=d}else {a=j.add(a,new RegExp(a))}}return [f,e,a]}},{re:/^#((?:\\\.|[\w\-])+)/,method:i},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:n,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:m}];a.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(f){var c=this.operations,b=[],e,a,d;for(a=0,d=c.length;a=0;--c){g=l[c];b=g.mode;if(b){if(b==='^'){a=e(a,' ')}else {if(b==='>'){i=[];for(f=0,k=a.length;f1}});Ext.apply(a,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(d,f){var c=0,g=d.length,e=[],h=-1,b;for(;c0){b.push(a[0])}return b},last:function(a){var b=a.length,c=[];if(b>0){c.push(a[b-1])}return c},focusable:function(d){var e=d.length,c=[],b=0,a;for(;b=c.left&&(t=='t'&&v=='b'||t=='b'&&v=='t');o=f=c.top&&(s=='r'&&u=='l'||s=='l'&&u=='r');if(e+k>a.right){if(o){e=c.left-k;o=!1}else {e=a.right-k}}if(ea.bottom){if(p){f=c.top-j;p=!1}else {f=a.bottom-j}}if(fa.right){e=!0;d[0]=a.right-b.right}if(b.left+d[0]a.bottom){e=!0;d[1]=a.bottom-b.bottom}if(b.top+d[1]=b.x&&a.right<=b.right&&a.y>=b.y&&a.bottom<=b.bottom},intersect:function(a){var b=this,f=Math.max(b.y,a.y),e=Math.min(b.right,a.right),c=Math.min(b.bottom,a.bottom),d=Math.max(b.x,a.x);if(c>f&&e>d){return new this.self(f,e,c,d)}else {return !1}},union:function(a){var b=this,f=Math.min(b.y,a.y),e=Math.max(b.right,a.right),c=Math.max(b.bottom,a.bottom),d=Math.min(b.x,a.x);return new this.self(f,e,c,d)},constrainTo:function(b){var a=this,c=Ext.Number.constrain;a.top=a.y=c(a.top,b.y,b.bottom);a.bottom=c(a.bottom,b.y,b.bottom);a.left=a.x=c(a.left,b.x,b.right);a.right=c(a.right,b.x,b.right);return a},adjust:function(e,c,b,d){var a=this;a.top=a.y+=e;a.left=a.x+=d;a.right+=c;a.bottom+=b;return a},getOutOfBoundOffset:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.getOutOfBoundOffsetX(a)}else {return this.getOutOfBoundOffsetY(a)}}else {a=b;var c=new Ext.util.Offset();c.x=this.getOutOfBoundOffsetX(a.x);c.y=this.getOutOfBoundOffsetY(a.y);return c}},getOutOfBoundOffsetX:function(a){if(a<=this.x){return this.x-a}else {if(a>=this.right){return this.right-a}}return 0},getOutOfBoundOffsetY:function(a){if(a<=this.y){return this.y-a}else {if(a>=this.bottom){return this.bottom-a}}return 0},isOutOfBound:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.isOutOfBoundX(a)}else {return this.isOutOfBoundY(a)}}else {a=b;return this.isOutOfBoundX(a.x)||this.isOutOfBoundY(a.y)}},isOutOfBoundX:function(a){return athis.right},isOutOfBoundY:function(a){return athis.bottom},restrict:function(d,a,b){if(Ext.isObject(d)){var c;b=a;a=d;if(a.copy){c=a.copy()}else {c={x:a.x,y:a.y}}c.x=this.restrictX(a.x,b);c.y=this.restrictY(a.y,b);return c}else {if(d=='x'){return this.restrictX(a,b)}else {return this.restrictY(a,b)}}},restrictX:function(a,b){if(!b){b=1}if(a<=this.x){a-=(a-this.x)*b}else {if(a>=this.right){a-=(a-this.right)*b}}return a},restrictY:function(a,b){if(!b){b=1}if(a<=this.y){a-=(a-this.y)*b}else {if(a>=this.bottom){a-=(a-this.bottom)*b}}return a},getSize:function(){return {width:this.right-this.x,height:this.bottom-this.y}},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(b){var a=this;a.top=a.y=a[1]=b.y;a.right=b.right;a.bottom=b.bottom;a.left=a.x=a[0]=b.x;return this},toString:function(){return 'Region['+this.top+','+this.right+','+this.bottom+','+this.left+']'},translateBy:function(b,c){if(arguments.length==1){c=b.y;b=b.x}var a=this;a.top=a.y+=c;a.right+=b;a.bottom+=c;a.left=a.x+=b;return a},round:function(){var a=this;a.top=a.y=Math.round(a.y);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);a.left=a.x=Math.round(a.x);return a},equals:function(a){return this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left}},3,0,0,0,0,0,[Ext.util,'Region'],0);Ext.cmd.derive('Ext.util.Point',Ext.util.Region,{radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(b){var a=b.changedTouches,c=a&&a.length>0?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}Ext.util.Region.prototype.constructor.call(this,b,a,b,a)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return 'Point['+this.x+','+this.y+']'},equals:function(a){return this.x===a.x&&this.y===a.y},isCloseTo:function(b,a){if(typeof a=='number'){return this.getDistanceTo(b)<=a}var e=b.x,f=b.y,c=a.x,d=a.y;return this.x<=e+c&&this.x>=e-c&&this.y<=f+d&&this.y>=f-d},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=='object'){a=this.origin}return Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y)},getDistanceTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.sqrt(b*b+c*c)},getAngleTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.atan2(c,b)*this.radianToDegreeConstant}},3,0,0,0,0,0,[Ext.util,'Point'],function(){this.prototype.translate=this.prototype.translateBy});Ext.cmd.derive('Ext.event.Event',Ext.Base,{alternateClassName:'Ext.EventObjectImpl',isStopped:!1,defaultPrevented:!1,isEvent:!0,statics:{resolveTextNode:function(a){return a&&a.nodeType===3?a.parentNode:a},pointerEvents:{pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerDown:1,MSPointerMove:1,MSPointerUp:1,MSPointerOver:1,MSPointerOut:1,MSPointerCancel:1,MSPointerEnter:1,MSPointerLeave:1},mouseEvents:{mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1,mouseenter:1,mouseleave:1},clickEvents:{click:1,dblclick:1},touchEvents:{touchstart:1,touchmove:1,touchend:1,touchcancel:1},focusEvents:{focus:1,blur:1,focusin:1,focusout:1,focusenter:1,focusleave:1},pointerTypes:{2:'touch',3:'pen',4:'mouse',touch:'touch',pen:'pen',mouse:'mouse'}},constructor:function(b){var a=this,c=a.self,h=a.self.resolveTextNode,i=b.changedTouches,g=i?i[0]:b,d=b.type,e,f;a.pageX=g.pageX;a.pageY=g.pageY;a.target=a.delegatedTarget=h(b.target);f=b.relatedTarget;if(f){a.relatedTarget=h(f)}a.browserEvent=a.event=b;a.type=d;a.button=b.button||0;a.shiftKey=b.shiftKey;a.ctrlKey=b.ctrlKey||b.metaKey||!1;a.altKey=b.altKey;a.charCode=b.charCode;a.keyCode=b.keyCode;a.buttons=b.buttons;if(a.button===0&&a.buttons===0){a.buttons=1}if(c.forwardTab!==undefined&&c.focusEvents[d]){a.forwardTab=c.forwardTab}if(c.mouseEvents[d]||c.clickEvents[d]){e='mouse'}else {if(c.pointerEvents[d]){e=c.pointerTypes[b.pointerType]}else {if(c.touchEvents[d]){e='touch'}}}if(e){a.pointerType=e}a.timeStamp=a.time=+(b.timeStamp||new Date())},chain:function(b){var a=Ext.Object.chain(this);a.parentEvent=this;return Ext.apply(a,b)},correctWheelDelta:function(a){var c=this.WHEEL_SCALE,b=Math.round(a/c);if(!b&&a){b=a<0?-1:1}return b},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.keyCodes[this.keyCode]},getPoint:function(){var a=this.getXY();return new Ext.util.Point(a[0],a[1])},getRelatedTarget:function(d,e,c){var a=this.relatedTarget,b=null;if(a){if(d){b=Ext.fly(a).findParent(d,e,c)}else {b=c?Ext.get(a):a}}return b},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):a?Ext.get(this.target):this.target},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var d=this,a=d.browserEvent,c=0,b=0;if(Ext.isDefined(a.wheelDeltaX)){c=a.wheelDeltaX;b=a.wheelDeltaY}else {if(a.wheelDelta){b=a.wheelDelta}else {if(a.detail){b=-a.detail;if(b>100){b=3}else {if(b<-100){b=-3}}if(Ext.isDefined(a.axis)&&a.axis===a.HORIZONTAL_AXIS){c=b;b=0}}}}return {x:d.correctWheelDelta(c),y:d.correctWheelDelta(b)}},getX:function(){return this.getXY()[0]},getXY:function(){var d=this,c=d.xy;if(!c){c=d.xy=[d.pageX,d.pageY];var g=c[0],e,f,a,b;if(!g&&g!==0){e=d.browserEvent;f=document;a=f.documentElement;b=f.body;c[0]=e.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);c[1]=e.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}}return c},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(c){var a=this,b=a.keyCode,d=a.type==='keypress';return (!d||Ext.isGecko)&&b>=33&&b<=40||!c&&(b===a.RETURN||b===a.TAB||b===a.ESC)},isSpecialKey:function(){var b=this,a=b.keyCode,d=Ext.isGecko,c=b.type==='keypress';return d&&c&&b.charCode===0||this.isNavKeyPress()||a===b.BACKSPACE||a===b.ENTER||a>=16&&a<=20||(!c||d)&&a>=44&&a<=46},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var a=this,b=a.parentEvent;a.defaultPrevented=!0;if(b){b.defaultPrevented=!0}a.browserEvent.preventDefault();return a},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var a=this,b=a.browserEvent,c=a.parentEvent;a.isStopped=!0;if(c){c.isStopped=!0}if(!b.stopPropagation){b.cancelBubble=!0;return a}b.stopPropagation();return a},within:function(b,d,c){var a;if(b){a=d?this.getRelatedTarget():this.getTarget()}return a?Ext.fly(b).contains(a)||!!(c&&a===Ext.getDom(b)):!1},deprecated:{'4.0':{methods:{getPageX:'getX',getPageY:'getY'}}}},1,0,0,0,0,0,[Ext.event,'Event',Ext,'EventObjectImpl'],function(f){var b=f.prototype,a={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,WHEEL_SCALE:function(){var a;if(Ext.isGecko){a=3}else {if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){a=120}else {a=12}a*=3}else {a=120}}return a}()},d={},c,e;Ext.apply(f,a);Ext.apply(b,a);delete a.WHEEL_SCALE;delete a.RETURN;for(c in a){e=a[c];d[e]=c}b.keyCodes=d;b.getTrueXY=b.getXY});Ext.define('Ext.overrides.event.Event',{override:'Ext.event.Event',mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:function(){var a,b={},c;if(!Ext.isIE9m&&document.createEvent){a={createHtmlEvent:function(e,d,c,b){var a=e.createEvent('HTMLEvents');a.initEvent(d,c,b);return a},createMouseEvent:function(d,n,h,f,m,b,c,i,k,g,j,l,e){var a=d.createEvent('MouseEvents'),o=d.defaultView||window;if(a.initMouseEvent){a.initMouseEvent(n,h,f,o,m,b,c,b,c,i,k,g,j,l,e)}else {a=d.createEvent('UIEvents');a.initEvent(n,h,f);a.view=o;a.detail=m;a.screenX=b;a.screenY=c;a.clientX=b;a.clientY=c;a.ctrlKey=i;a.altKey=k;a.metaKey=j;a.shiftKey=g;a.button=l;a.relatedTarget=e}return a},createUIEvent:function(b,f,d,c,e){var a=b.createEvent('UIEvents'),g=b.defaultView||window;a.initUIEvent(f,d,c,g,e);return a},fireEvent:function(a,c,b){a.dispatchEvent(b)}}}else {if(document.createEventObject){c={0:1,1:4,2:2};a={createHtmlEvent:function(d,e,c,b){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},createMouseEvent:function(n,o,i,g,m,b,d,j,l,h,k,e,f){var a=n.createEventObject();a.bubbles=i;a.cancelable=g;a.detail=m;a.screenX=b;a.screenY=d;a.clientX=b;a.clientY=d;a.ctrlKey=j;a.altKey=l;a.shiftKey=h;a.metaKey=k;a.button=c[e]||e;a.relatedTarget=f;return a},createUIEvent:function(d,f,c,b,e){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},fireEvent:function(a,c,b){a.fireEvent('on'+c,b)}}}}Ext.Object.each({load:[!1,!1],unload:[!1,!1],select:[!0,!1],change:[!0,!1],submit:[!0,!0],reset:[!0,!1],resize:[!0,!1],scroll:[!0,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createHtmlEvent(c,f,e);a.fireEvent(b,c,g)}});function createMouseEventDispatcher(b,d){var c=b!=='mousemove';return function(f,e){var g=e.getXY(),h=a.createMouseEvent(f.ownerDocument,b,!0,c,d,g[0],g[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget);a.fireEvent(f,b,h)}}Ext.each(['click','dblclick','mousedown','mouseup','mouseover','mousemove','mouseout'],function(a){b[a]=createMouseEventDispatcher(a,1)});Ext.Object.each({focusin:[!0,!1],focusout:[!0,!1],activate:[!0,!0],focus:[!1,!1],blur:[!1,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createUIEvent(b.ownerDocument,c,f,e,1);a.fireEvent(b,c,g)}});if(!a){b={};a={}}function cannotInject(b,a){}return function(a){var c=this,d=b[c.type]||cannotInject,e=a?a.dom||a:c.getTarget();d(e,c)}}(),preventDefault:function(){var c=this,a=c.browserEvent,e=c.parentEvent,d,b;if(typeof a.type!=='unknown'){c.defaultPrevented=!0;if(e){e.defaultPrevented=!0}if(a.preventDefault){a.preventDefault()}else {if(a.type==='mousedown'){b=a.target;d=b.getAttribute('unselectable');if(d!=='on'){b.setAttribute('unselectable','on');Ext.defer(function(){b.setAttribute('unselectable',d)},1)}}a.returnValue=!1;if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}}return c},stopPropagation:function(){var a=this,b=a.browserEvent;if(typeof b.type!=='unknown'){if(a.mousedownEvents[a.type]){Ext.GlobalEvents.fireMouseDown(a)}arguments.callee.$previous.call(this)}return a},deprecated:{'5.0':{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var c=this,d,a=function(a){if(a.keyCode===9){c.forwardTab=!a.shiftKey}},b=function(a){if(a.keyCode===9){delete c.forwardTab}};if(Ext.isIE9m){d={0:0,1:0,4:1,2:2};c.override({statics:{enableIEAsync:function(b){var a,c={};for(a in b){c[a]=b[a]}return c}},constructor:function(a,f,e,c){var b=this;b.callParent([a,f,e,c]);b.button=d[a.button];if(a.type==='contextmenu'){b.button=2}b.toElement=a.toElement;b.fromElement=a.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(a){this.browserEvent=this.self.enableIEAsync(a)},getRelatedTarget:function(f,d,e){var a=this,c,b;if(!a.relatedTarget){c=a.type;if(a.mouseLeaveRe.test(c)){b=a.toElement}else {if(a.mouseEnterRe.test(c)){b=a.fromElement}}if(b){a.relatedTarget=a.self.resolveTextNode(b)}}return a.callParent([f,d,e])}});document.attachEvent('onkeydown',a);document.attachEvent('onkeyup',b);window.attachEvent('onunload',function(){document.detachEvent('onkeydown',a);document.detachEvent('onkeyup',b)})}else {if(document.addEventListener){document.addEventListener('keydown',a,!0);document.addEventListener('keyup',b,!0)}}});Ext.cmd.derive('Ext.event.publisher.Dom',Ext.event.publisher.Publisher,{type:'dom',handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1,scroll:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var b=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=b.handledDomEvents,f=d.length,c=0,a;for(;cb?1:a1){e=[];for(d=0;d0){b.invokeRecognizers('onTouchMove',a)}}},onTouchEnd:function(b){var a=this;if(!a.isStarted){return}a.updateTouches(b,!0);a.invokeRecognizers(a.isCancelEvent[b.type]?'onTouchCancel':'onTouchEnd',b);if(!a.activeTouches.length){a.isStarted=!1;a.invokeRecognizers('onEnd',b);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else {this.doTargetTouchMove(a)}},doTargetTouchMove:function(a){if(!Ext.getBody().contains(a.target)){this.onTouchMove(new Ext.event.Event(a))}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else {this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var b=this,a=c.target;a.removeEventListener('touchmove',b.onTargetTouchMove);a.removeEventListener('touchend',b.onTargetTouchEnd);a.removeEventListener('touchcancel',b.onTargetTouchEnd);if(!Ext.getBody().contains(a)){b.onTouchEnd(new Ext.event.Event(c))}},updateAsync:function(a){this.handlers=a?this._asyncHandlers:this._handlers},reset:function(){var a=this,d=a.recognizers,e=d.length,b,c;a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.isStarted=!1;for(b=0;b=500){this.run()}},run:function(){this.pending=!1;var i=this.readQueue,h=this.writeQueue,c=null,d;if(this.mode){d=i;if(h.length>0){c=!1}}else {d=h;if(i.length>0){c=!0}}var g=d.slice(),f,j,b,a,e;d.length=0;for(f=0,j=g.length;f2){a.apply(e,b[2])}else {a.call(e)}}g.length=0;if(c!==null){this.request(c)}}},1,0,0,0,0,0,[Ext,'TaskQueue'],0);Ext.cmd.derive('Ext.util.sizemonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:0,height:0,contentWidth:0,contentHeight:0,constructor:function(a){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(a);this.bindListeners(!0)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer);a.addCls('x-size-monitored')},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.offsetWidth},getContentHeight:function(){return this.detectorsContainer.offsetHeight},refreshSize:function(){var b=this.getElement();if(!b||b.destroyed){return !1}var h=b.getWidth(),g=b.getHeight(),d=this.getContentWidth(),c=this.getContentHeight(),j=this.contentWidth,i=this.contentHeight,a=this.info,f=!1,e;this.width=h;this.height=g;this.contentWidth=d;this.contentHeight=c;e=(j!==d?1:0)+(i!==c?2:0);if(e>0){a.width=h;a.height=g;a.contentWidth=d;a.contentHeight=c;a.flag=e;f=!0;this.getCallback().apply(this.getScope(),this.getArgs())}return f},refresh:function(a){if(this.refreshSize()||a){Ext.TaskQueue.requestWrite('refreshMonitors',this)}},destroy:function(){var a=this,b=a.getElement();a.bindListeners(!1);if(b&&!b.destroyed){b.removeCls('x-size-monitored')}delete a._element;a.callParent()}},1,0,0,0,0,[[Ext.mixin.Templatable.prototype.mixinId||Ext.mixin.Templatable.$className,Ext.mixin.Templatable]],[Ext.util.sizemonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.sizemonitor.Scroll',Ext.util.sizemonitor.Abstract,{getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','scroll'],children:[{reference:'expandMonitor',className:'expand'},{reference:'shrinkMonitor',className:'shrink'}]}},constructor:function(a){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a]('scroll',this.onScroll,!0);this.shrinkMonitor[a]('scroll',this.onScroll,!0)},forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this,[!0])},onScroll:function(){Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){var a=this.expandMonitor,b=this.shrinkMonitor,c=1000000;if(a&&!a.destroyed){a.scrollLeft=c;a.scrollTop=c}if(b&&!b.destroyed){b.scrollLeft=c;b.scrollTop=c}}},1,0,0,0,0,0,[Ext.util.sizemonitor,'Scroll'],0);Ext.cmd.derive('Ext.util.sizemonitor.OverflowChange',Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=Ext.Function.bind(this.onExpand,this);this.onShrink=Ext.Function.bind(this.onShrink,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','overflowchanged'],children:[{reference:'expandMonitor',className:'expand',children:[{reference:'expandHelper'}]},{reference:'shrinkMonitor',className:'shrink',children:[{reference:'shrinkHelper'}]}]}},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a](Ext.browser.is.Firefox?'underflow':'overflowchanged',this.onExpand,!0);this.shrinkMonitor[a](Ext.browser.is.Firefox?'overflow':'overflowchanged',this.onShrink,!0)},onExpand:function(a){if(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},onShrink:function(a){if(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){if(this.destroyed){return}var b=this.expandHelper,c=this.shrinkHelper,d=this.getContentBounds(),f=d.width,e=d.height,a;if(b&&!b.destroyed){a=b.style;a.width=f+1+'px';a.height=e+1+'px'}if(c&&!c.destroyed){a=c.style;a.width=f+'px';a.height=e+'px'}Ext.TaskQueue.requestRead('refresh',this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,'OverflowChange'],0);Ext.cmd.derive('Ext.util.SizeMonitor',Ext.Base,{constructor:function(b){var a=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new a.OverflowChange(b)}else {return new a.Scroll(b)}}},1,0,0,0,0,0,[Ext.util,'SizeMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementSize',Ext.event.publisher.Publisher,{type:'size',handledEvents:['resize'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(b){var a=b.id,c=this.subscribers,d=this.monitors;if(c[a]){++c[a]}else {c[a]=1;d[a]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on('painted','forceRefresh',d[a]);return !0},unsubscribe:function(e){var a=e.id,c=this.subscribers,d=this.monitors,b;if(c[a]&&!--c[a]){delete c[a];b=d[a];e.un('painted','forceRefresh',b);b.destroy();delete d[a]}},onElementResize:function(a,b){Ext.TaskQueue.requestRead('fire',this,[a,'resize',[a,b]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementSize'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.util.paintmonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:'',monitorClass:'',constructor:function(a){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?'addEventListener':'removeEventListener'](this.eventName,this.onElementPainted,!0)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:['x-paint-monitor',this.monitorClass]},!0);a.appendChild(this.monitorElement);a.addCls('x-paint-monitored');this.bindListeners(!0)},onElementPainted:function(){},destroy:function(){var a=this,c=a.monitorElement,d=c.parentNode,b=a.getElement();a.bindListeners(!1);delete a.monitorElement;if(b&&!b.destroyed){b.removeCls('x-paint-monitored');delete a._element}if(d){d.removeChild(c)}a.callParent()}},1,0,0,0,0,0,[Ext.util.paintmonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.paintmonitor.CssAnimation',Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.WebKit?'webkitAnimationEnd':'animationend',monitorClass:'cssanimation',onElementPainted:function(a){if(a.animationName==='x-paint-monitor-helper'){this.getCallback().apply(this.getScope(),this.getArgs())}}},0,0,0,0,0,0,[Ext.util.paintmonitor,'CssAnimation'],0);Ext.cmd.derive('Ext.util.PaintMonitor',Ext.Base,{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}},1,0,0,0,0,0,[Ext.util,'PaintMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementPaint',Ext.event.publisher.Publisher,{type:'paint',handledEvents:['painted'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(d){var b=this,a=d.id,c=b.subscribers;if(c[a]){++c[a]}else {c[a]=1;b.monitors[a]=new Ext.util.PaintMonitor({element:d,callback:b.onElementPainted,scope:b,args:[d]})}},unsubscribe:function(d){var a=d.id,b=this.subscribers,c=this.monitors;if(b[a]&&!--b[a]){delete b[a];c[a].destroy();delete c[a]}},onElementPainted:function(a){Ext.TaskQueue.requestRead('fire',this,[a,'painted',[a]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementPaint'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.dom.Element',Ext.Base,function(a){var h=window,b=document,F='ext-window',D='ext-document',w='width',H='height',ac='min-width',_='min-height',ab='max-width',$='max-height',S='top',P='right',ag='bottom',R='left',aa='visibility',M='hidden',G='display',x='none',O='z-index',u='position',ad='relative',N='static',i='-',T=/\w/g,k=/\s+/,V=/[\s]+/,Y=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,U=/table-row|table-.*-group/,Q=/top/i,d={t:'border-top-width',r:'border-right-width',b:'border-bottom-width',l:'border-left-width'},f={t:'padding-top',r:'padding-right',b:'padding-bottom',l:'padding-left'},v={t:'margin-top',r:'margin-right',b:'margin-bottom',l:'margin-left'},Z=[f.l,f.r,f.t,f.b],B=[d.l,d.r,d.t,d.b],ae=/\d+$/,I=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,C='px',af=/(-[a-z])/gi,J=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,t=/^\d+(?:\.\d*)?px$/i,A={},y='originalDisplay',X=function(c,b){return b.charAt(1).toUpperCase()},E=function(d,e){var c,b,f;if(d.nodeType===1){d._extData=null;if(e){c=d.childNodes;for(b=0,f=c.length;bh.innerWidth?'portrait':'landscape'},getViewportHeight:function(){var c=a._viewportHeight;if(Ext.isIE9m){return b.documentElement.clientHeight}return c!=null?c:h.innerHeight},getViewportWidth:function(){var c=a._viewportWidth;if(Ext.isIE9m){return b.documentElement.clientWidth}return c!=null?c:h.innerWidth},getViewSize:function(){return {width:a.getViewportWidth(),height:a.getViewportHeight()}},normalize:function(b){return A[b]||(A[b]=b.replace(af,X))},_onWindowFocusChange:function(b){if(Ext.fly(b.target).is(a.editableSelector)){z=new Date();L=b.type==='focusin'||b.type==='pointerup'}},_onWindowResize:function(){var c=window.innerWidth,b=window.innerHeight,g=new Date(),f=1000,d,e;d=c-a._windowWidth;e=b-a._windowHeight;a._windowWidth=c;a._windowHeight=b;if(g-z=a.minKeyboardHeight){l=!1;K=new Date()}if(l){return}a._viewportWidth=c;a._viewportHeight=b},parseBox:function(c){c=c||0;var e=typeof c,b,d;if(e==='number'){return {top:c,right:c,bottom:c,left:c}}else {if(e!=='string'){return c}}b=c.split(' ');d=b.length;if(d===1){b[1]=b[2]=b[3]=b[0]}else {if(d===2){b[2]=b[0];b[3]=b[1]}else {if(d===3){b[3]=b[1]}}}return {top:parseFloat(b[0])||0,right:parseFloat(b[1])||0,bottom:parseFloat(b[2])||0,left:parseFloat(b[3])||0}},parseStyles:function(c){var d={},b;if(c){J.lastIndex=0;while(b=J.exec(c)){d[b[1]]=b[2]||''}}return d},select:function(d,c,e){return Ext.fly(e||b).select(d,c)},query:function(c,d,e){return Ext.fly(e||b).query(c,d)},unitizeBox:function(b,d){var c=this;b=c.parseBox(b);return c.addUnits(b.top,d)+' '+c.addUnits(b.right,d)+' '+c.addUnits(b.bottom,d)+' '+c.addUnits(b.left,d)},serializeForm:function(l){var m=l.elements||(b.forms[l]||Ext.getDom(l)).elements,n=!1,f=encodeURIComponent,g='',q=m.length,c,h,d,k,o,i,j,p,e;for(i=0;i0||b.scrollLeft!==0){e.push(b);g.push(c.attach(b).getScroll())}}return function(){var d,b,f;for(b=0,f=e.length;b '+d,!!c)},clone:function(c,d){var b=this.dom.cloneNode(c);if(Ext.supports.CloneNodeCopiesExpando){E(b,c)}return d?b:Ext.get(b)},constrainScrollLeft:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollWidth-b.clientWidth),0)},constrainScrollTop:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollHeight-b.clientHeight),0)},createChild:function(b,c,d){b=b||{tag:'div'};if(c){return Ext.DomHelper.insertBefore(c,b,d!==!0)}else {return Ext.DomHelper.append(this.dom,b,d!==!0)}},contains:function(b){if(!b){return !1}var d=this,c=Ext.getDom(b);return c===d.dom||d.isAncestor(c)},destroy:function(){var c=this,b=c.dom;if(b&&b.parentNode){b.parentNode.removeChild(b)}c.collect();if(!c.isFly){c.callParent()}},detach:function(){var b=this.dom;if(b&&b.parentNode&&b.tagName!=='BODY'){b.parentNode.removeChild(b)}return this},disableShadow:function(){var b=this.shadow;if(b){b.hide();b.disabled=!0}},disableShim:function(){var b=this.shim;if(b){b.hide();b.disabled=!0}},disableTouchContextMenu:function(){this._contextMenuListenerRemover=this.on({MSHoldVisual:function(b){b.preventDefault()},destroyable:!0,delegated:!1})},disableTouchScroll:function(){this.addCls(W);this.on({touchmove:function(b){b.preventDefault()},translate:!1})},doReplaceWith:function(c){var b=this.dom;b.parentNode.replaceChild(Ext.getDom(c),b)},doScrollIntoView:function(b,o,d,m,l,n){c=c||new Ext.dom.Fly();var e=this,k=e.dom,i=c.attach(b)[l](),j=b.scrollTop,h=e.getScrollIntoViewXY(b,i,j),f=h.x,g=h.y;if(m){if(d){d=Ext.apply({listeners:{afteranimate:function(){c.attach(k).highlight()}}},d)}else {c.attach(k).highlight()}}if(g!==j){c.attach(b).scrollTo('top',g,d)}if(o!==!1&&f!==i){c.attach(b)[n]('left',f,d)}return e},down:function(c,b){return this.selectNode(c,!!b)},enableShadow:function(f,e){var c=this,b=c.shadow||(c.shadow=new Ext.dom.Shadow(Ext.apply({target:c},f))),d=c.shim;if(d){d.offsets=b.outerOffsets;d.shadow=b;b.shim=d}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},enableShim:function(f,e){var c=this,b=c.shim||(c.shim=new Ext.dom.Shim(Ext.apply({target:c},f))),d=c.shadow;if(d){b.offsets=d.outerOffsets;b.shadow=d;d.shim=b}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},findParent:function(g,d,h){var i=this,c=i.dom,e=b.documentElement,f=0;if(d||d===0){if(typeof d!=='number'){e=Ext.getDom(d);d=Number.MAX_VALUE}}else {d=50}while(c&&c.nodeType===1&&f0&&d<0.5){b++}}}if(e){b-=c.getBorderWidth('tb')+c.getPadding('tb')}return b<0?0:b},getHtml:function(){return this.dom?this.dom.innerHTML:''},getLeft:function(b){return b?this.getLocalX():this.getX()},getLocalX:function(){var d=this,c,b=d.getStyle('left');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getX();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getX()}}}return b},getLocalXY:function(){var e=this,d,f=e.getStyle(['left','top']),b=f.left,c=f.top;if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=e.getX();d=e.dom.offsetParent;if(d){b-=Ext.fly(d).getX()}}}if(!c||c==='auto'){c=0}else {if(t.test(c)){c=parseFloat(c)}else {c=e.getY();d=e.dom.offsetParent;if(d){c-=Ext.fly(d).getY()}}}return [b,c]},getLocalY:function(){var d=this,c,b=d.getStyle('top');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getY();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getY()}}}return b},getMargin:function(){var c={t:'top',l:'left',r:'right',b:'bottom'},b=['margin-top','margin-left','margin-right','margin-bottom'];return function(g){var h=this,e,f,d;if(!g){e=h.getStyle(b);d={};if(e&&typeof e==='object'){d={};for(f in v){d[f]=d[c[f]]=parseFloat(e[v[f]])||0}}}else {d=h.addStyles(g,v)}return d}}(),getPadding:function(b){return this.addStyles(b,f)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(b){return (b?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var h=this,d=h.dom,g=b.documentElement,e,f,c=document.body;if(d===b||d===c){e=g.scrollLeft||(c?c.scrollLeft:0);f=g.scrollTop||(c?c.scrollTop:0)}else {e=d.scrollLeft;f=d.scrollTop}return {left:e,top:f}},getScrollIntoViewXY:function(r,b,c){var p=this.dom,h=Ext.getDom(r),j=this.getOffsetsTo(h),o=p.offsetWidth,m=p.offsetHeight,f=j[0]+b,g=j[1]+c,l=g+m,n=f+o,d=h.clientHeight,e=h.clientWidth,i=b,k=c,q=k+d,s=i+e;if(m>d||gq){c=l-d}}if(o>e||fs){b=n-e}}return {x:b,y:c}},getScrollLeft:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().left}else {return c.scrollLeft}},getScrollTop:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().top}else {return c.scrollTop}},getSize:function(b){return {width:this.getWidth(b),height:this.getHeight(b)}},getStyle:function(n,i){var k=this,e=k.dom,m=typeof n!=='string',p=k.styleHooks,b=n,j=b,q=1,h,o,f,d,g,c,l;if(m){f={};b=j[0];l=0;if(!(q=j.length)){return f}}if(!e||e.documentElement){return f||''}h=e.style;if(i){c=h}else {c=e.ownerDocument.defaultView.getComputedStyle(e,null);if(!c){i=!0;c=h}}do{d=p[b];if(!d){p[b]=d={name:a.normalize(b)}}if(d.get){g=d.get(e,k,i,c)}else {o=d.name;g=c[o]}if(!m){return g}f[b]=g;b=j[++l]}while(l0&&e<0.5){b++}}}if(h){b-=c.getBorderWidth('lr')+c.getPadding('lr')}return b<0?0:b},getX:function(){return this.getXY()[0]},getXY:function(){var h=Math.round,e=this.dom,f=0,g=0,c,d;if(e!==b&&e!==b.body){try{c=e.getBoundingClientRect()}catch(ah){c={left:0,top:0}}f=h(c.left);g=h(c.top);d=Ext.getDoc().getScroll();f+=d.left;g+=d.top}return [f,g]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle('z-index'),10)},hasCls:function(c){var b=this.getData();if(!b.isSynchronized){this.synchronize()}return b.classMap.hasOwnProperty(c)},hide:function(){this.setVisible(!1);return this},insertAfter:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b.nextSibling);return this},insertBefore:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b);return this},insertFirst:function(b,c){b=b||{};if(b.nodeType||b.dom||typeof b==='string'){b=Ext.getDom(b);this.dom.insertBefore(b,this.dom.firstChild);return !c?Ext.get(b):b}else {return this.createChild(b,this.dom.firstChild,c)}},insertHtml:function(d,e,c){var b=Ext.DomHelper.insertHtml(d,this.dom,e);return c?Ext.get(b):b},insertSibling:function(b,k,f){var d=this,j=Ext.DomHelper,h=(k||'before').toLowerCase()==='after',c,g,i,e;if(Ext.isIterable(b)){i=b.length;g=Ext.fly(document.createDocumentFragment());if(Ext.isArray(b)){for(e=0;eb.clientHeight||b.scrollWidth>b.clientWidth},isStyle:function(b,c){return this.getStyle(b)===c},isVisible:function(d){var b=this.dom,c;if(!b){return !1}if(!s){s=new Ext.dom.Fly()}for(c=b.ownerDocument.documentElement;b!==c;b=b.parentNode){if(!b||b.nodeType===11||s.attach(b).isStyle(aa,M)||s.isStyle(G,x)){return !1}if(!d){break}}return !0},last:function(c,b){return this.matchNode('previousSibling','lastChild',c,b)},maskIframes:function(){var b=document.getElementsByTagName('iframe');Ext.each(b,function(c){var b=Ext.fly(c.parentNode),d=b.mask();d.setStyle('background-color','transparent')})},matchNode:function(g,f,c,e){var d=this.dom,b;if(!d){return null}b=d[f];while(b){if(b.nodeType===1&&(!c||Ext.fly(b,'_matchNode').is(c))){return !e?Ext.get(b):b}b=b[g]}return null},next:function(c,b){return this.matchNode('nextSibling','nextSibling',c,b)},parent:function(c,b){return this.matchNode('parentNode','parentNode',c,b)},position:function(c,d,e,f){var b=this;if(b.dom.tagName!=='BODY'){if(!c&&b.isStyle(u,N)){b.setStyle(u,ad)}else {if(c){b.setStyle(u,c)}}if(d){b.setStyle(O,d)}if(e||f){b.setXY([e||!1,f||!1])}}},prev:function(c,b){return this.matchNode('previousSibling','previousSibling',c,b)},query:function(b,e,j){var i=this.dom,g,l,k,h,f,c,d;if(!i){return null}e=e!==!1;b=b.split(',');if(!j){g=[]}for(c=0,l=b.length;c0){b=i.className.split(V);for(c=0,j=b.length;c=':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>=a},'>':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>a},'!=':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!=c},'!==':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!==c},'in':function(b){var a=this._filterValue;return Ext.Array.contains(a,this.getCandidateValue(b,a))},notin:function(b){var a=this._filterValue;return !Ext.Array.contains(a,this.getCandidateValue(b,a))},like:function(b){var a=this._filterValue;return a&&this.getCandidateValue(b,a).toLowerCase().indexOf(a.toLowerCase())>-1}};a['==']=a['='];a.gt=a['>'];a.ge=a['>='];a.lt=a['<'];a.le=a['<='];a.eq=a['='];a.ne=a['!=']});Ext.cmd.derive('Ext.util.Observable',Ext.mixin.Observable,{$applyConfigs:!0},0,0,0,0,0,0,[Ext.util,'Observable'],function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe});Ext.cmd.derive('Ext.util.AbstractMixedCollection',Ext.Base,{isMixedCollection:!0,generation:0,indexGeneration:0,constructor:function(b,c){var a=this;if(arguments.length===1&&Ext.isObject(b)){a.initialConfig=b;Ext.apply(a,b)}else {a.allowFunctions=b===!0;if(c){a.getKey=c}a.initialConfig={allowFunctions:a.allowFunctions,getKey:a.getKey}}a.items=[];a.map={};a.keys=[];a.indexMap={};a.length=0;a.mixins.observable.constructor.call(a)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:!1,add:function(b,d){var c=this.length,a;if(arguments.length===1){a=this.insert(c,b)}else {a=this.insert(c,b,d)}return a},getKey:function(a){return a.id},replace:function(b,c){var a=this,d,e;if(arguments.length==1){c=arguments[0];b=a.getKey(c)}d=a.map[b];if(typeof b=='undefined'||b===null||typeof d=='undefined'){return a.add(b,c)}a.generation++;e=a.indexOfKey(b);a.items[e]=c;a.map[b]=c;if(a.hasListeners.replace){a.fireEvent('replace',b,d,c)}return c},reorder:function(e){var b=this,f=b.items,a=0,h=f.length,c=[],g=[],d;b.suspendEvents();for(d in e){c[e[d]]=f[d]}for(a=0;a-1){g=e[b];delete e[b];delete f[b];e[c]=g;f[c]=d;a.keys[d]=c;a.indexGeneration=++a.generation}},addAll:function(a){var c=this,b;if(arguments.length>1||Ext.isArray(a)){c.insert(c.length,arguments.length>1?arguments:a)}else {for(b in a){if(a.hasOwnProperty(b)){if(c.allowFunctions||typeof a[b]!='function'){c.add(b,a[b])}}}}},each:function(f,e){var c=Ext.Array.push([],this.items),a=0,d=c.length,b;for(;a2){a=this.doInsert(c,[b],[d])}else {a=this.doInsert(c,[b])}a=a[0]}return a},doInsert:function(f,e,d){var b=this,c,i,a,g=e.length,j=g,o=b.hasListeners.add,k,h={},l,n,m;if(d!=null){b.useLinearSearch=!0}else {d=e;e=new Array(g);for(a=0;a=0;--c){a.remove(b[c])}}else {while(a.length){a.removeAt(0)}}}else {a.length=a.items.length=a.keys.length=0;a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}},removeAt:function(b){var a=this,d,c;if(b=0){a.length--;d=a.items[b];Ext.Array.erase(a.items,b,1);c=a.keys[b];if(typeof c!='undefined'){delete a.map[c]}Ext.Array.erase(a.keys,b,1);if(a.hasListeners.remove){a.fireEvent('remove',d,c)}a.generation++;return d}return !1},removeRange:function(c,b){var a=this,i,f,d,e,g,h;if(c=0){if(!b){b=1}e=Math.min(c+b,a.length);b=e-c;h=e===a.length;g=h&&a.indexGeneration===a.generation;for(d=c;d=0;a--){if(c[a]==null){b.removeAt(a)}}}else {return b.removeAt(b.indexOfKey(d))}},getCount:function(){return this.length},indexOf:function(b){var a=this,c;if(b!=null){if(!a.useLinearSearch&&(c=a.getKey(b))){return this.indexOfKey(c)}return Ext.Array.indexOf(a.items,b)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var b=this,d=b.indexMap={},c=b.keys,e=c.length,a;for(a=0;aa){e=!0;g=b;b=a;a=g}if(b<0){b=0}if(a==null||a>=d){a=d-1}c=f.slice(b,a+1);if(e&&c.length){c.reverse()}return c},filter:function(a,e,d,c){var b=[];if(Ext.isString(a)){b.push(new Ext.util.Filter({property:a,value:e,anyMatch:d,caseSensitive:c}))}else {if(Ext.isArray(a)||a instanceof Ext.util.Filter){b=b.concat(a)}}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(h,g){var a=this,c=new a.self(a.initialConfig),e=a.keys,d=a.items,f=d.length,b;c.getKey=a.getKey;for(b=0;bb?1:a0){c.removeRange(b.multiSortLimit,g)};break;case 'prepend':c.insert(0,a);break;case 'append':c.addAll(a);break;case undefined:case null:case 'replace':c.clear();c.addAll(a);break;default:}}if(h!==!1){b.fireEvent('beforesort',b,a);b.onBeforeSort(a);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return a},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(b){if(!Ext.isArray(b)){if(b===undefined){b=[]}else {b=[b]}}var g=b.length,f=Ext.util.Sorter,e=this.getModel?this.getModel():this.model,d,a,c;for(c=0;c>1;c=d(h,f[a]);if(c>=0){b=a+1}else {if(c<0){e=a-1}}}return b},reorder:function(a){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,a);this.fireEvent('sort',this)},sortByKey:function(a,b){this._sort('key',a,b||function(e,f){var c=String(e).toUpperCase(),d=String(f).toUpperCase();return c>d?1:cf){k=f}}}if(c){b.tasks=c}b.firing=!1;if(b.tasks.length){b.startTimer(k-g,Ext.Date.now())}if(j!==!1&&l.hasListeners.idle){l.fireEvent('idle')}},startTimer:function(b,e){var a=this,d=e+b,c=a.timerId;if(c&&a.nextExpires-d>a.interval){clearTimeout(c);c=null}if(!c){if(b=a.duration,b,c;if(h){d=a.duration;e=!0}b=this.collectTargetData(a,d,f,e);if(f){a.target.setAttr(b.anims[a.id].attributes,!0);g.collectTargetData(a,a.duration,f,e);a.paused=!0;b=a.target.target;if(a.target.isComposite){b=a.target.target.last()}c={};c[Ext.supports.CSS3TransitionEnd]=a.lastFrame;c.scope=a;c.single=!0;b.on(c)}return b},jumpToEnd:function(d){var a=this,b,c;if(!a.targetArr){a.targetArr={};c=!0}b=a.runAnim(d,!0);a.applyAnimAttrs(b,b.anims[d.id]);if(c){a.targetArr=null}},collectTargetData:function(a,d,f,e){var c=a.target.getId(),b=this.targetArr[c];if(!b){b=this.targetArr[c]={id:c,el:a.target,anims:{}}}b.anims[a.id]={id:a.id,anim:a,elapsed:d,isLastFrame:e,attributes:[{duration:a.duration,easing:f&&a.reverse?a.easingFn.reverse().toCSS3():a.easing,attrs:a.runAnim(d)}]};return b},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var c=this.targetArr,b,d,a,f,e;for(d in c){if(c.hasOwnProperty(d)){b=c[d];for(e in b.anims){if(b.anims.hasOwnProperty(e)){a=b.anims[e];f=a.anim;if(a.attributes&&f.isRunning()){b.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){f.lastFrame()}}}}}}}},1,0,0,0,0,[['queue',Ext.fx.Queue]],[Ext.fx,'Manager'],0);Ext.cmd.derive('Ext.fx.Animator',Ext.Base,{isAnimator:!0,duration:250,delay:0,delayStart:0,dynamic:!1,easing:'ease',running:!1,paused:!1,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(b){var a=this;b=Ext.apply(a,b||{});a.config=b;a.id=Ext.id(null,'ext-animator-');a.mixins.observable.constructor.call(a,b);a.timeline=[];a.createTimeline(a.keyframes);if(a.target){a.applyAnimator(a.target);Ext.fx.Manager.addAnim(a)}},sorter:function(a,b){return a.pct-b.pct},createTimeline:function(e){var d=this,b=[],k=d.to||{},g=d.duration,h,j,c,i,a,f;for(a in e){if(e.hasOwnProperty(a)&&d.animKeyFramesRE.test(a)){f={attrs:Ext.apply(e[a],k)};if(a==='from'){a=0}else {if(a==='to'){a=100}}f.pct=parseInt(a,10);b.push(f)}}Ext.Array.sort(b,d.sorter);i=b.length;for(c=0;c0},isRunning:function(){return !1}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Animator'],0);Ext.cmd.derive('Ext.fx.CubicBezier',Ext.Base,{singleton:!0,cubicBezierAtTime:function(l,d,e,i,j,h){var a=3*d,b=3*(i-d)-a,f=1-a-b,c=3*e,g=3*(j-e)-c,k=1-c-g;function sampleCurveX(c){return ((f*c+b)*c+a)*c}function solve(f,b){var a=solveCurveX(f,b);return ((k*a+g)*a+c)*a}function solveCurveX(n,q){var g,k,c,m,o,p;for(c=n,p=0;p<8;p++){m=sampleCurveX(c)-n;if(Math.abs(m)k){return k}while(gm){g=c}else {k=c}c=(k-g)/2+g}return c}return solve(l,1/(200*h))},cubicBezier:function(b,d,c,e){var a=function(a){return Ext.fx.CubicBezier.cubicBezierAtTime(a,b,d,c,e,1)};a.toCSS3=function(){return 'cubic-bezier('+[b,d,c,e].join(',')+')'};a.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-c,1-e,1-b,1-d)};return a}},0,0,0,0,0,0,[Ext.fx,'CubicBezier'],0);Ext.cmd.derive('Ext.fx.Easing',Ext.Base,function(){var b=Math,g=b.PI,a=b.pow,f=b.sin,e=b.sqrt,d=b.abs,c=1.70158;return {singleton:!0,linear:Ext.identityFn,ease:function(k){var c=0.07813-k/2,f=e(0.0066+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.25;return a(1-b,2)*3*b*0.1+(1-b)*3*b*b+b*b*b},easeIn:function(b){return a(b,1.7)},easeOut:function(b){return a(b,0.48)},easeInOut:function(k){var c=0.48-k/1.04,f=e(0.1734+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.5;return (1-b)*3*b*b+b*b*b},backIn:function(a){return a*a*((c+1)*a-c)},backOut:function(a){a=a-1;return a*a*((c+1)*a+c)+1},elasticIn:function(b){if(b===0||b===1){return b}var c=0.3,d=c/4;return a(2,-10*b)*f((b-d)*(2*g)/c)+1},elasticOut:function(a){return 1-Ext.fx.Easing.elasticIn(1-a)},bounceIn:function(a){return 1-Ext.fx.Easing.bounceOut(1-a)},bounceOut:function(a){var d=7.5625,b=2.75,c;if(a<1/b){c=d*a*a}else {if(a<2/b){a-=1.5/b;c=d*a*a+0.75}else {if(a<2.5/b){a-=2.25/b;c=d*a*a+0.9375}else {a-=2.625/b;c=d*a*a+0.984375}}}return c}}},0,0,0,0,0,0,[Ext.fx,'Easing'],function(c){var b=c.self,a=b.prototype;b.addMembers({'back-in':a.backIn,'back-out':a.backOut,'ease-in':a.easeIn,'ease-out':a.easeOut,'elastic-in':a.elasticIn,'elastic-out':a.elasticOut,'bounce-in':a.bounceIn,'bounce-out':a.bounceOut,'ease-in-out':a.easeInOut})});Ext.cmd.derive('Ext.fx.DrawPath',Ext.Base,{singleton:!0,pathToStringRE:/,?([achlmqrstvxz]),?/gi,pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,stopsRE:/^(\d+%?)$/,radian:Math.PI/180,is:function(b,a){a=String(a).toLowerCase();return a=='object'&&b===Object(b)||a=='undefined'&&typeof b==a||a=='null'&&b===null||a=='array'&&Array.isArray&&Array.isArray(b)||Object.prototype.toString.call(b).toLowerCase().slice(8,-1)==a},path2string:function(){return this.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},pathToString:function(a){return a.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},parsePathString:function(c){if(!c){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=[],b=this;if(b.is(c,'array')&&b.is(c[0],'array')){a=b.pathClone(c)}if(!a.length){String(c).replace(b.pathCommandRE,function(i,g,h){var e=[],f=g.toLowerCase();h.replace(b.pathValuesRE,function(b,a){if(a){e.push(+a)}});if(f=='m'&&e.length>2){a.push([g].concat(Ext.Array.splice(e,0,2)));f='l';g=g=='m'?'l':'L'}while(e.length>=d[f]){a.push([g].concat(Ext.Array.splice(e,0,d[f])));if(!d[f]){break}}})}a.toString=b.path2string;return a},pathClone:function(a){var d=[],c,f,b,e;if(!this.is(a,'array')||!this.is(a&&a[0],'array')){a=this.parsePathString(a)}for(b=0,e=a.length;b7){a[d].shift();var e=a[d];while(e.length){Ext.Array.splice(a,d++,0,['C'].concat(Ext.Array.splice(e,0,6)))}Ext.Array.erase(a,d,1);j=Math.max(c.length,b.length||0)}},m=function(d,f,e,g,a){if(d&&f&&d[a][0]=='M'&&f[a][0]!='M'){Ext.Array.splice(f,a,0,['M',g.x,g.y]);e.bx=0;e.by=0;e.x=d[a][1];e.y=d[a][2];j=Math.max(c.length,b.length||0)}},a,j,g,f,i,h;for(a=0,j=Math.max(c.length,b.length||0);a1){u=N(u);d=u*d;c=u*c}x=d*d;y=c*c;I=(X==v?-1:1)*N(R((x*y-x*j*j-y*i*i)/(x*j*j+y*i*i)));q=I*d*j/c+(m+e)/2;r=I*-c*i/d+(n+f)/2;b=M(((n-r)/c).toFixed(7));a=M(((f-r)/c).toFixed(7));b=ma){b=b-k*2}if(!v&&a>b){a=a-k*2}}else {b=o[0];a=o[1];q=o[2];r=o[3]}z=a-b;if(R(z)>Q){L=a;O=e;P=f;a=b+Q*(v&&a>b?1:-1);e=q+d*B(a);f=r+c*C(a);g=s.arc2curve(e,f,d,c,K,0,v,O,P,[a,L,q,r])}z=a-b;S=B(b);V=C(b);T=B(a);W=C(a);J=p.tan(z/4);D=4/3*d*J;E=4/3*c*J;F=[m,n];l=[m+D*V,n-E*S];G=[e+D*W,f-E*T];H=[e,f];l[0]=2*F[0]-l[0];l[1]=2*F[1]-l[1];if(o){return [l,G,H].concat(g)}else {g=[l,G,H].concat(g).join().split(',');A=[];U=g.length;for(h=0;h=d){b=d;f=!0}if(a.reverse){b=d-b}for(c in e){if(e.hasOwnProperty(c)){h=e[c];g=f?1:k(b/d);i[c]=j[c].set(h,g)}}a.frameCount++;return i},lastFrame:function(){var a=this,c=a.iterations,b=a.currentIteration;b++;if(b0},isRunning:function(){return this.paused===!1&&this.running===!0&&this.isAnimator!==!0}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Anim'],0);Ext.enableFx=!0;Ext.cmd.derive('Ext.util.Animate',Ext.Base,{mixinId:'animate',isAnimate:!0,animate:function(b){var a=this;if(Ext.fx.Manager.hasFxBlock(a.id)){return a}Ext.fx.Manager.queueFx(new Ext.fx.Anim(a.anim(b)));return this},anim:function(a){if(!Ext.isObject(a)){return a?{}:!1}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:!0},a)},getAnimationProps:function(){var b=this,a=b.layout;return a&&a.animate?a.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,'stopAnimation'),stopAnimation:function(){Ext.fx.Manager.stopAnimation(this.id);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!0});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!1});return this},hasActiveFx:Ext.Function.alias(Ext.util.Animate,'getActiveAnimation'),getActiveAnimation:function(){return Ext.fx.Manager.getActiveAnimation(this.id)}},0,0,0,0,0,0,[Ext.util,'Animate'],0);Ext.cmd.derive('Ext.dom.Fly',Ext.dom.Element,{alternateClassName:'Ext.dom.Element.Fly',validNodeTypes:{1:1,9:1,11:1},isFly:!0,constructor:function(a){this.dom=a;this.el=this},attach:function(b){var a=this;if(!b){return a.detach()}a.dom=b;if(!Ext.cache[b.id]){a.getData().isSynchronized=!1}return a},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,'Fly',Ext.dom.Element,'Fly'],function(b){var a={};b.cache=a;Ext.fly=function(c,e){var d=null,h=Ext.fly,f,g;e=e||h.caller&&h.caller.$name||'_global';c=Ext.getDom(c);if(c){f=c.nodeType;if(b.prototype.validNodeTypes[f]||!f&&c.window==c){d=Ext.cache[c.id];if(!d||d.dom!==c){d=a[e]||(a[e]=new b());d.dom=c;g=d.getData(!0);if(g){g.isSynchronized=!1}}}}return d}});Ext.cmd.derive('Ext.dom.CompositeElementLite',Ext.Base,{alternateClassName:['Ext.CompositeElementLite'],isComposite:!0,isLite:!0,statics:{importElementMethods:function(){var b=Ext.dom.Element,a=this.prototype;Ext.Object.each(b.prototype,function(b,c){if(typeof c==='function'&&!a[b]){a[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(a,b){if(b){this.elements=a||[]}else {this.elements=[];this.add(a)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(a,e){var d=this.elements,b,c;if(!a){return this}if(typeof a=='string'){a=Ext.fly(e||document).query(a)}else {if(a.isComposite){a=a.elements}else {if(!Ext.isIterable(a)){a=[a]}}}for(b=0,c=a.length;b-1){a=Ext.getDom(a);if(e){b=this.elements[c];b.parentNode.insertBefore(a,b);Ext.removeNode(b)}Ext.Array.splice(this.elements,c,1,a)}return this},clear:function(c){var d=this,b=d.elements,a=b.length-1;if(c){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(a,d){if(!a){return this}if(typeof a==='string'){a=Ext.dom.Element.selectorFunction(a,d)}var e=this.elements,c=a.length,b;for(b=0;b','','','',''].join(''),O=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,J=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,G=/\ssrc=([\'\"])(.*?)\1/i,v=/\S/,E=/\stype=([\'\"])(.*?)\1/i,I=/^-ms-/,B=/(-[a-z])/gi,L=function(b,a){return a.charAt(1).toUpperCase()},r='x-masked',k='x-masked-relative',m='x-mask-msg',D=/^body/i,l={},u=function(d){var c=d.getData(),b=c[q];if(b===undefined){c[q]=b=a.VISIBILITY}return b},f=b.createRange?b.createRange():null,z={INPUT:!0,TEXTAREA:!0};if(Ext.isIE8){var p=b.createElement('div'),c=[],M=Ext.Function.createBuffered(function(){var b=c.length,a;for(a=0;a"+Ext.String.format(y,a)+''));b.selectNode('.'+a+'-mc').appendChild(this.dom);return b},clean:function(g){var c=this,d=c.dom,e=c.getData(),a=d.firstChild,f=-1,b;if(e.isCleaned&&g!==!0){return c}while(a){b=a.nextSibling;if(a.nodeType===3){if(!v.test(a.nodeValue)){d.removeChild(a)}else {if(b&&b.nodeType===3){a.appendData(Ext.String.trim(b.data));d.removeChild(b);b=a.nextSibling;a.nodeIndex=++f}}}else {Ext.fly(a,'_clean').clean();a.nodeIndex=++f}a=b}e.isCleaned=!0;return c},empty:f?function(){var a=this.dom;if(a.firstChild){f.setStartBefore(a.firstChild);f.setEndAfter(a.lastChild);f.deleteContents()}}:function(){var a=this.dom;while(a.lastChild){a.removeChild(a.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(a){a=a||'';return this.setStyle({left:a,right:a,top:a,bottom:a,'z-index':'',position:'static'})},createProxy:function(b,e,f){b=typeof b==='object'?b:{tag:'div',role:'presentation',cls:b};var d=this,c=e?Ext.DomHelper.append(e,b,!0):Ext.DomHelper.insertBefore(d.dom,b,!0);c.setVisibilityMode(a.DISPLAY);c.hide();if(f&&d.setBox&&d.getBox){c.setBox(d.getBox())}return c},clearOpacity:function(){return this.setOpacity('')},clip:function(){var a=this,c=a.getData(),b;if(!c[g]){c[g]=!0;b=a.getStyle([j,h,i]);c[n]={o:b[j],x:b[h],y:b[i]};a.setStyle(j,e);a.setStyle(h,e);a.setStyle(i,e)}return a},destroy:function(){var b=this,a=b.dom,f=b.getData(),e,d;if(a&&b.isAnimate){b.stopAnimation()}arguments.callee.$previous.call(this);if(a&&Ext.isIE8&&a.window!=a&&a.nodeType!==9&&a.tagName!=='BODY'&&a.tagName!=='HTML'){c[c.length]=a;M()}if(f){e=f.maskEl;d=f.maskMsg;if(e){e.destroy()}if(d){d.destroy()}}},enableDisplayMode:function(c){var b=this;b.setVisibilityMode(a.DISPLAY);if(c!==undefined){b.getData()[K]=c}return b},fadeIn:function(c){var a=this,b=a.dom;a.animate(Ext.apply({},c,{opacity:1,internalListeners:{beforeanimate:function(d){var a=Ext.fly(b,'_anim');if(a.isStyle('display','none')){a.setDisplayed('')}else {a.show()}}}}));return this},fadeOut:function(a){var b=this,c=b.dom;a=Ext.apply({opacity:0,internalListeners:{afteranimate:function(d){if(c&&d.to.opacity===0){var b=Ext.fly(c,'_anim');if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}}}}},a);b.animate(a);return b},fixDisplay:function(){var a=this;if(a.isStyle(d,s)){a.setStyle(o,e);a.setStyle(d,a._getDisplay());if(a.isStyle(d,s)){a.setStyle(d,'block')}}},frame:function(b,c,a){var d=this,f=d.dom,e;b=b||'#C3DAF9';c=c||1;a=a||{};e=function(){var g=Ext.fly(f,'_anim'),i=this,d,e,h;g.show();d=g.getBox();e=Ext.getBody().createChild({role:'presentation',id:g.dom.id+'-anim-proxy',style:{position:'absolute','pointer-events':'none','z-index':35000,border:'0px solid '+b}});h=new Ext.fx.Anim({target:e,duration:a.duration||1000,iterations:c,from:{top:d.y,left:d.x,borderWidth:0,opacity:1,height:d.height,width:d.width},to:{top:d.y-20,left:d.x-20,borderWidth:10,opacity:0,height:d.height+40,width:d.width+40}});h.on('afteranimate',function(){e.destroy();i.end()})};d.animate({duration:Math.max(a.duration,500)*2||2000,listeners:{beforeanimate:{fn:e}},callback:a.callback,scope:a.scope});return d},getColor:function(h,f,c){var a=this.getStyle(h),b=c||c===''?c:'#',d,g,e=0;if(!a||/transparent|inherit/.test(a)){return f}if(/^r/.test(a)){a=a.slice(4,a.length-1).split(',');g=a.length;for(;e5?b.toLowerCase():f},getLoader:function(){var c=this,b=c.getData(),a=b.loader;if(!a){b.loader=a=new Ext.ElementLoader({target:c})}return a},getPositioning:function(c){var a=this.getStyle(['left','top','position','z-index']),b=this.dom;if(c){if(a.left==='auto'){a.left=b.offsetLeft+'px'}if(a.top==='auto'){a.top=b.offsetTop+'px'}}return a},ghost:function(a,e){var b=this,d=b.dom,c;a=a||'b';c=function(){var h=Ext.fly(d,'_anim'),g=h.getWidth(),f=h.getHeight(),c=h.getXY(),i=h.getPositioning(),b={opacity:0};switch(a){case 't':b.y=c[1]-f;break;case 'l':b.x=c[0]-g;break;case 'r':b.x=c[0]+g;break;case 'b':b.y=c[1]+f;break;case 'tl':b.x=c[0]-g;b.y=c[1]-f;break;case 'bl':b.x=c[0]-g;b.y=c[1]+f;break;case 'br':b.x=c[0]+g;b.y=c[1]+f;break;case 'tr':b.x=c[0]+g;b.y=c[1]-f;break;}this.to=b;this.on('afteranimate',function(){var b=Ext.fly(d,'_anim');if(b){b.hide();b.clearOpacity();b.setPositioning(i)}})};b.animate(Ext.applyIf(e||{},{duration:500,easing:'ease-out',listeners:{beforeanimate:c}}));return b},hide:function(a){if(typeof a==='string'){this.setVisible(!1,a);return this}this.setVisible(!1,this.anim(a));return this},highlight:function(k,b){var g=this,e=g.dom,j={},i,h,c,d,a,f;b=b||{};d=b.listeners||{};c=b.attr||'backgroundColor';j[c]=k||'ffff9c';if(!b.to){h={};h[c]=b.endColor||g.getColor(c,'ffffff','')}else {h=b.to}b.listeners=Ext.apply(Ext.apply({},d),{beforeanimate:function(){i=e.style[c];var g=Ext.fly(e,'_anim');g.clearOpacity();g.show();a=d.beforeanimate;if(a){f=a.fn||a;return f.apply(a.scope||d.scope||t,arguments)}},afteranimate:function(){if(e){e.style[c]=i}a=d.afteranimate;if(a){f=a.fn||a;f.apply(a.scope||d.scope||t,arguments)}}});g.animate(Ext.apply({},b,{duration:1000,easing:'ease-in',from:j,to:h}));return g},hover:function(d,e,c,b){var a=this;a.on('mouseenter',d,c||a.dom,b);a.on('mouseleave',e,c||a.dom,b);return a},initDD:function(c,b,a){var d=new Ext.dd.DD(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDProxy:function(c,b,a){var d=new Ext.dd.DDProxy(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDTarget:function(c,b,a){var d=new Ext.dd.DDTarget(Ext.id(this.dom),c,b);return Ext.apply(d,a)},isFocusable:function(){var a=this.dom,b=!1,c;if(a&&!a.disabled){c=a.nodeName;b=!!Ext.Element.naturallyFocusableTags[c]||(c==='A'||c==='LINK')&&!!a.href||a.getAttribute('tabIndex')!=null||a.contentEditable==='true';if(Ext.isIE8&&c==='INPUT'&&a.type==='hidden'){b=!1}b=b&&this.isVisible(!0)}return b},isInputField:function(){var a=this.dom,b=a.contentEditable;if(z[a.tagName]&&a.type!=='button'||(b===''||b==='true')){return !0}return !1},isTabbable:function(f){var c=this.dom,a=!1,e,d,b;if(c&&!c.disabled){e=c.nodeName;b=c.getAttribute('tabIndex');d=b!=null;b-=0;if(e==='A'||e==='LINK'){if(c.href){a=d&&b<0?!1:!0}else {if(c.contentEditable==='true'){a=!d||d&&b>=0?!0:!1}else {a=d&&b>=0?!0:!1}}}else {if(c.contentEditable==='true'||Ext.Element.naturallyTabbableTags[e]){a=d&&b<0?!1:!0}else {if(d&&b>=0){a=!0}}}if(Ext.isIE8&&e==='INPUT'&&c.type==='hidden'){a=!1}a=a&&(f||(!this.component||this.component.isVisible(!0))&&this.isVisible(!0))}return a},isMasked:function(g){var b=this,f=b.getData(),e=f.maskEl,d=f.maskMsg,c=!1,a;if(e&&e.isVisible()){if(d){d.center(b)}c=!0}else {if(g){a=b.findParentNode();if(a){return Ext.fly(a).isMasked(g)}}}return c},load:function(a){this.getLoader().load(a);return this},mask:function(h,f,i){var c=this,d=c.dom,g=c.getData(),a=g.maskEl,e;if(!(D.test(d.tagName)&&c.getStyle('position')==='static')){c.addCls(k)}if(a){a.destroy()}a=Ext.DomHelper.append(d,{role:'presentation',cls:'x-mask x-border-box',children:{role:'presentation',cls:f?m+' '+f:m,cn:{tag:'div',role:'presentation',cls:'x-mask-msg-inner',cn:{tag:'div',role:'presentation',cls:'x-mask-msg-text',html:h||''}}}},!0);e=Ext.get(a.dom.firstChild);g.maskEl=a;c.addCls(r);a.setDisplayed(!0);if(typeof h==='string'){e.setDisplayed(!0);e.center(c)}else {e.setDisplayed(!1)}if(d===b.body){a.addCls('x-mask-fixed')}c.saveTabbableState({skipSelf:d===b.body});if(Ext.isIE9m&&d!==b.body&&c.isStyle('height','auto')){a.setSize(undefined,i||c.getHeight())}return a},monitorMouseLeave:function(e,d,f){var c=this,b,a={mouseleave:function(a){if(Ext.isIE9m){a.enableIEAsync()}b=Ext.defer(d,e,f||c,[a])},mouseenter:function(){clearTimeout(b)}};c.on(a);return a},puff:function(a){var c=this,e=c.dom,d,b=c.getBox(),f=c.getStyle(['width','height','left','right','top','bottom','position','z-index','font-size','opacity'],!0);a=Ext.applyIf(a||{},{easing:'ease-out',duration:500,useDisplay:!1});d=function(){var c=Ext.fly(e,'_anim');c.clearOpacity();c.show();this.to={width:b.width*2,height:b.height*2,x:b.x-b.width/2,y:b.y-b.height/2,opacity:0,fontSize:'200%'};this.on('afteranimate',function(){var b=Ext.fly(e,'_anim');if(b){if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}b.setStyle(f);Ext.callback(a.callback,a.scope)}})};c.animate({duration:a.duration,easing:a.easing,listeners:{beforeanimate:{fn:d}}});return c},selectable:function(){var b=this;b.dom.unselectable='';b.removeCls(a.unselectableCls);b.addCls(a.selectableCls);return b},setCapture:function(){var a=this.dom;if(Ext.isIE9m&&a.setCapture){a.setCapture()}},setHeight:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{height:c}},a))}return b},setHorizontal:function(){var a=this,b=a.verticalCls;delete a.vertical;if(b){delete a.verticalCls;a.removeCls(b)}delete a.setWidth;delete a.setHeight;if(!Ext.isIE8){delete a.getWidth;delete a.getHeight}delete a.styleHooks},updateText:function(d){var e=this,c,a;if(c){a=c.firstChild;if(!a||(a.nodeType!==3||a.nextSibling)){a=b.createTextNode();e.empty();c.appendChild(a)}if(d){a.data=d}}},setHtml:function(c,i,g,d){var a=this,f,e,h;if(!a.dom){return a}c=c||'';e=a.dom;if(i!==!0){e.innerHTML=c;Ext.callback(g,a);return a}f=Ext.id();c+='';h=Ext.interval(function(){var o,e,l,k,j,n,m;if(!(n=b.getElementById(f))){return !1}clearInterval(h);Ext.removeNode(n);o=Ext.getHead().dom;while(e=O.exec(c)){l=e[1];k=l?l.match(G):!1;if(k&&k[2]){m=b.createElement('script');m.src=k[2];j=l.match(E);if(j&&j[2]){m.type=j[2]}o.appendChild(m)}else {if(e[2]&&e[2].length>0){if(d){Ext.functionFactory(e[2]).call(d)}else {Ext.globalEval(e[2])}}}}Ext.callback(g,d||a)},20);e.innerHTML=c.replace(J,'');return a},setOpacity:function(c,b){var a=this;if(!a.dom){return a}if(!b||!a.anim){a.setStyle('opacity',c)}else {if(typeof b!='object'){b={duration:350,easing:'ease-in'}}a.animate(Ext.applyIf({to:{opacity:c}},b))}return a},setPositioning:function(a){return this.setStyle(a)},setVertical:function(e,d){var b=this,c=a.prototype;b.vertical=!0;if(d){b.addCls(b.verticalCls=d)}b.setWidth=c.setHeight;b.setHeight=c.setWidth;if(!Ext.isIE8){b.getWidth=c.getHeight;b.getHeight=c.getWidth}b.styleHooks=e===270?c.verticalStyleHooks270:c.verticalStyleHooks90},setSize:function(c,e,d){var b=this;if(Ext.isObject(c)){d=e;e=c.height;c=c.width}if(!d||!b.anim){b.dom.style.width=a.addUnits(c);b.dom.style.height=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}}else {if(d===!0){d={}}b.animate(Ext.applyIf({to:{width:c,height:e}},d))}return b},setVisible:function(f,g){var b=this,h=b.dom,c=u(b);if(typeof g==='string'){switch(g){case d:c=a.DISPLAY;break;case o:c=a.VISIBILITY;break;case A:c=a.OFFSETS;break;case H:c=a.CLIP;break;}b.setVisibilityMode(c);g=!1}if(!g||!b.anim){if(c===a.DISPLAY){return b.setDisplayed(f)}else {if(c===a.OFFSETS){b[f?'removeCls':'addCls'](N)}else {if(c===a.CLIP){b[f?'removeCls':'addCls'](w)}else {if(c===a.VISIBILITY){b.fixDisplay();h.style.visibility=f?'':e}}}}}else {if(f){b.setOpacity(0.01);b.setVisible(!0)}if(!Ext.isObject(g)){g={duration:350,easing:'ease-in'}}b.animate(Ext.applyIf({callback:function(){if(!f){Ext.fly(h).setVisible(!1).setOpacity(1)}},to:{opacity:f?1:0}},g))}b.getData()[x]=f;if(b.shadow||b.shim){b.setUnderlaysVisible(f)}return b},setWidth:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{width:c}},a))}return b},setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(b,a){var c=this;if(!a||!c.anim){arguments.callee.$previous.call(this,b)}else {if(!Ext.isObject(a)){a={}}c.animate(Ext.applyIf({to:{x:b[0],y:b[1]}},a))}return this},setY:function(b,a){return this.setXY([this.getX(),b],a)},show:function(a){if(typeof a==='string'){this.setVisible(!0,a);return this}this.setVisible(!0,this.anim(a));return this},slideIn:function(a,c,d){var b=this,g=b.dom,h=g.style,j,e,f,i;a=a||'t';c=c||{};j=function(){var p=this,o=c.listeners,m=Ext.fly(g,'_anim'),j,n,l,k;if(!d){m.fixDisplay()}j=m.getBox();if((a=='t'||a=='b')&&j.height===0){j.height=g.scrollHeight}else {if((a=='l'||a=='r')&&j.width===0){j.width=g.scrollWidth}}n=m.getStyle(['width','height','left','right','top','bottom','position','z-index'],!0);m.setSize(j.width,j.height);if(c.preserveScroll){f=m.cacheScrollValues()}k=m.wrap({role:'presentation',id:Ext.id()+'-anim-wrap-for-'+m.dom.id,style:{visibility:d?'visible':'hidden'}});i=k.dom.parentNode;k.setPositioning(m.getPositioning());if(k.isStyle('position','static')){k.position('relative')}m.clearPositioning('auto');k.clip();if(f){f()}m.setStyle({visibility:'',position:'absolute'});if(d){k.setSize(j.width,j.height)}switch(a){case 't':l={from:{width:j.width+'px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';break;case 'l':l={from:{width:'0px',height:j.height+'px'},to:{width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'r':l={from:{x:j.x+j.width,width:'0px',height:j.height+'px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'b':l={from:{y:j.y+j.height,width:j.width+'px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};break;case 'tl':l={from:{x:j.x,y:j.y,width:'0px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('l');break;case 'bl':l={from:{y:j.y+j.height,width:'0px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('l');break;case 'br':l={from:{x:j.x+j.width,y:j.y+j.height,width:'0px',height:'0px'},to:{x:j.x,y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('r');break;case 'tr':l={from:{x:j.x+j.width,width:'0px',height:'0px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('r');break;}k.show();e=Ext.apply({},c);delete e.listeners;e=new Ext.fx.Anim(Ext.applyIf(e,{target:k,duration:500,easing:'ease-out',from:d?l.to:l.from,to:d?l.from:l.to}));e.on('afteranimate',function(){var b=Ext.fly(g,'_anim');b.setStyle(n);if(d){if(c.useDisplay){b.setDisplayed(!1)}else {b.hide()}}if(k.dom){if(k.dom.parentNode){k.dom.parentNode.insertBefore(b.dom,k.dom)}else {i.appendChild(b.dom)}k.destroy()}if(f){f()}p.end()});if(o){e.on(o)}};b.animate({duration:c.duration?Math.max(c.duration,500)*2:1000,listeners:{beforeanimate:j}});return b},slideOut:function(a,b){return this.slideIn(a,b,!0)},swallowEvent:function(a,f){var b=this,c,d,e=function(b){b.stopPropagation();if(f){b.preventDefault()}};if(Ext.isArray(a)){d=a.length;for(c=0;c0){a.setAttribute(e,++f)}else {if(a.hasAttribute('tabIndex')){a.setAttribute(g,a.getAttribute('tabIndex'))}else {a.setAttribute(g,'none')}a.setAttribute('tabIndex','-1');a.setAttribute(e,'1')}}return c},restoreTabbableState:function(k,j){var g=this.dom,c=Ext.Element.tabbableSavedCounterAttribute,e=Ext.Element.tabbableSavedValueAttribute,b=[],h,f,b,a,d,i;if(!g){return this}if(!j){b=Ext.Array.from(g.querySelectorAll('['+c+']'))}if(!k){b.unshift(g)}for(d=0,i=b.length;d1){a.setAttribute(c,--f);continue}h=a.getAttribute(e);if(h==='none'){a.removeAttribute('tabIndex')}else {a.setAttribute('tabIndex',h)}a.removeAttribute(e);a.removeAttribute(c)}return b}},deprecated:{'4.0':{methods:{pause:function(b){var a=this;Ext.fx.Manager.setFxDefaults(a.id,{delay:b});return a},scale:function(c,a,b){this.animate(Ext.apply({},b,{width:c,height:a}));return this},shift:function(a){this.animate(a);return this}}},'4.2':{methods:{moveTo:function(b,c,a){return this.setXY([b,c],a)},setBounds:function(d,e,c,b,a){return this.setBox({x:d,y:e,width:c,height:b},a)},setLeftTop:function(d,e){var b=this,c=b.dom.style;c.left=a.addUnits(d);c.top=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocation:function(b,c,a){return this.setXY([b,c],a)}}},'5.0':{methods:{getAttributeNS:function(a,b){return this.getAttribute(b,a)},getCenterXY:function(){return this.getAlignToXY(b,'c-c')},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(C))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(F))||0},getStyleSize:function(){var d=this,e=this.dom,h=e===b||e===b.body,c,g,f;if(h){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}c=d.getStyle(['height','width'],!0);if(c.width&&c.width!=='auto'){g=parseFloat(c.width)}if(c.height&&c.height!=='auto'){f=parseFloat(c.height)}return {width:g||d.getWidth(!0),height:f||d.getHeight(!0)}},isBorderBox:function(){return !0},isDisplayed:function(){return !this.isStyle('display','none')},focusable:'isFocusable'}}}}}(),function(){var g=Ext.dom.Element,a=g.prototype,t=!Ext.isIE8,f=document,q=f.defaultView,p=/alpha\(opacity=(.*)\)/i,w=/^\s+|\s+$/g,d=a.styleHooks,e=Ext.supports,c,b,l,m,i,j,n;a._init(g);delete a._init;Ext.plainTableCls='x-table-plain';Ext.plainListCls='x-list-plain';if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!e.Opacity&&Ext.isIE){Ext.apply(d.opacity,{get:function(d){var c=d.style.filter,b,a;if(c.match){b=c.match(p);if(b){a=parseFloat(b[1]);if(!isNaN(a)){return a?a/100:0}}}return 1},set:function(d,a){var b=d.style,c=b.filter.replace(p,'').replace(w,'');b.zoom=1;if(typeof a==='number'&&a>=0&&a<1){a*=100;b.filter=c+(c.length?' ':'')+'alpha(opacity='+a+')'}else {b.filter=c}}})}if(!e.matchesSelector){var r=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,v=/\-/g,h,s=function(a,c){var b=new RegExp('(?:^|\\s+)'+c.replace(v,'\\-')+'(?:\\s+|$)');if(a&&a!=='*'){a=a.toUpperCase();return function(d){return d.tagName===a&&b.test(d.className)}}return function(d){return b.test(d.className)}},u=function(a){a=a.toUpperCase();return function(b){return b.tagName===a}},k={};a.matcherCache=k;a.is=function(a){if(!a){return !0}var b=this.dom,g,e,d,c,j,l,i;if(b.nodeType!==1){return !1}if(!(d=Ext.isFunction(a)?a:k[a])){if(!(e=a.match(r))){c=b.parentNode;if(!c){j=!0;c=h||(h=f.createDocumentFragment());h.appendChild(b)}l=Ext.Array.indexOf(Ext.fly(c,'_is').query(a),b)!==-1;if(j){h.removeChild(b)}return l}i=e[1];g=e[2];k[a]=d=g?s(i,g):u(i)}return d(b)}}if(!q||!q.getComputedStyle){a.getStyle=function(o,p){var j=this,e=j.dom,n=typeof o!=='string',a=o,i=a,r=1,m=p,l=j.styleHooks,q,h,d,c,f,b,k;if(n){d={};a=i[0];k=0;if(!(r=i.length)){return d}}if(!e||e.documentElement){return d||''}h=e.style;if(p){b=h}else {b=e.currentStyle;if(!b){m=!0;b=h}}do{c=l[a];if(!c){l[a]=c={name:g.normalize(a)}}if(c.get){f=c.get(e,j,m,b)}else {q=c.name;f=b[q]}if(!n){return f}d[a]=f;a=i[++k]}while(k=9)){a.getAttribute=function(a,c){var d=this.dom,b;if(c){b=typeof d[c+':'+a];if(b!=='undefined'&&b!=='unknown'){return d[c+':'+a]||null}return null}if(a==='for'){a='htmlFor'}return d[a]||null}}Ext.onInternalReady(function(){var o=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,h=[],p=a.setWidth,n=a.setHeight,m=a.setSize,q=/^\d+(?:\.\d*)?px$/i,i,l,k,j;if(e.FixedTableWidthBug){d.width={name:'width',set:function(c,e,f){var a=c.style,b=f._needsTableWidthFix,d=a.display;if(b){a.display='none'}a.width=e;if(b){c.scrollWidth;a.display=d}}};a.setWidth=function(g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}p.call(a,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a};a.setSize=function(h,g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}m.call(a,h,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a}}if(Ext.isIE8){d.height={name:'height',set:function(f,b,e){var a=e.component,d,c;if(a&&a._syncFrameHeight&&e===a.el){c=a.frameBody.dom.style;if(q.test(b)){d=a.getFrameInfo();if(d){c.height=parseInt(b,10)-d.height+'px'}}else {if(!b||b==='auto'){c.height=''}}}f.style.height=b}};a.setHeight=function(b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return n.call(this,b,e)};a.setSize=function(f,b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return m.call(this,f,b,e)}}Ext.getDoc().on('selectstart',function(h,a){var e=g.selectableCls,d=g.unselectableCls,b=a&&a.tagName;b=b&&b.toLowerCase();if(b==='input'||b==='textarea'){return}while(a&&a.nodeType===1&&a!==f.documentElement){var c=Ext.fly(a);if(c.hasCls(e)){return}if(c.hasCls(d)){h.stopEvent();return}a=a.parentNode}});function fixTransparent(d,e,c,b){var a=b[this.name]||'';return o.test(a)?'transparent':a}function makeSelectionRestoreFn(a,b,c){return function(){a.selectionStart=b;a.selectionEnd=c}}function getRightMarginFixCleaner(i){var h=e.DisplayChangeInputSelectionBug,f=e.DisplayChangeTextAreaSelectionBug,a,d,b,c;if(h||f){a=g.getActiveElement();d=a&&a.tagName;if(f&&d==='TEXTAREA'||h&&d==='INPUT'&&a.type==='text'){if(Ext.fly(i).isAncestor(a)){b=a.selectionStart;c=a.selectionEnd;if(Ext.isNumber(b)&&Ext.isNumber(c)){return makeSelectionRestoreFn(a,b,c)}}}}return Ext.emptyFn}function fixRightMargin(c,g,f,e){var b=e.marginRight,a,d;if(b!=='0px'){a=c.style;d=a.display;a.display='inline-block';b=(f?e:c.ownerDocument.defaultView.getComputedStyle(c,null)).marginRight;a.display=d}return b}function fixRightMarginAndInputFocus(b,h,g,f){var c=f.marginRight,a,d,e;if(c!=='0px'){a=b.style;d=getRightMarginFixCleaner(b);e=a.display;a.display='inline-block';c=(g?f:b.ownerDocument.defaultView.getComputedStyle(b,'')).marginRight;a.display=e;d()}return c}if(!e.RightMargin){d.marginRight=d['margin-right']={name:'marginRight',get:e.DisplayChangeInputSelectionBug||e.DisplayChangeTextAreaSelectionBug?fixRightMarginAndInputFocus:fixRightMargin}}if(!e.TransparentColor){i=['background-color','border-color','color','outline-color'];for(l=i.length;l--;){k=i[l];j=g.normalize(k);d[k]=d[j]={name:j,get:fixTransparent}}}a.verticalStyleHooks90=c=Ext.Object.chain(d);a.verticalStyleHooks270=b=Ext.Object.chain(d);c.width=d.height||{name:'height'};c.height=d.width||{name:'width'};c['margin-top']={name:'marginLeft'};c['margin-right']={name:'marginTop'};c['margin-bottom']={name:'marginRight'};c['margin-left']={name:'marginBottom'};c['padding-top']={name:'paddingLeft'};c['padding-right']={name:'paddingTop'};c['padding-bottom']={name:'paddingRight'};c['padding-left']={name:'paddingBottom'};c['border-top']={name:'borderLeft'};c['border-right']={name:'borderTop'};c['border-bottom']={name:'borderRight'};c['border-left']={name:'borderBottom'};b.width=d.height||{name:'height'};b.height=d.width||{name:'width'};b['margin-top']={name:'marginRight'};b['margin-right']={name:'marginBottom'};b['margin-bottom']={name:'marginLeft'};b['margin-left']={name:'marginTop'};b['padding-top']={name:'paddingRight'};b['padding-right']={name:'paddingBottom'};b['padding-bottom']={name:'paddingLeft'};b['padding-left']={name:'paddingTop'};b['border-top']={name:'borderRight'};b['border-right']={name:'borderBottom'};b['border-bottom']={name:'borderLeft'};b['border-left']={name:'borderTop'};if(!Ext.scopeCss){h.push('x-body')}if(e.Touch){h.push('x-touch')}if(Ext.isIE&&Ext.isIE9m){h.push('x-ie','x-ie9m');h.push('x-ie8p');if(Ext.isIE8){h.push('x-ie8')}else {h.push('x-ie9','x-ie9p')}if(Ext.isIE8m){h.push('x-ie8m')}}if(Ext.isIE10){h.push('x-ie10')}if(Ext.isIE10p){h.push('x-ie10p')}if(Ext.isIE11){h.push('x-ie11')}if(Ext.isGecko){h.push('x-gecko')}if(Ext.isOpera){h.push('x-opera')}if(Ext.isOpera12m){h.push('x-opera12m')}if(Ext.isWebKit){h.push('x-webkit')}if(Ext.isSafari){h.push('x-safari')}if(Ext.isChrome){h.push('x-chrome')}if(Ext.isMac){h.push('x-mac')}if(Ext.isLinux){h.push('x-linux')}if(!e.CSS3BorderRadius){h.push('x-nbr')}if(!e.CSS3LinearGradient){h.push('x-nlg')}if(e.Touch){h.push('x-touch')}Ext.getBody().addCls(h)},null,{priority:1500})});Ext.cmd.derive('Ext.GlobalEvents',Ext.mixin.Observable,{alternateClassName:'Ext.globalEvents',observableType:'global',singleton:!0,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},attachListeners:function(){Ext.get(window).on('resize',this.fireResize,this,{buffer:this.resizeBuffer});Ext.getDoc().on('mousedown',this.fireMouseDown,this)},fireMouseDown:function(a){this.fireEvent('mousedown',a)},fireResize:function(){var a=this,d=Ext.Element,c=d.getViewportWidth(),b=d.getViewportHeight();if(a.curHeight!==b||a.curWidth!==c){a.curHeight=b;a.curWidth=c;a.fireEvent('resize',c,b)}}},1,0,0,0,0,0,[Ext,'GlobalEvents',Ext,'globalEvents'],function(a){Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)}});Ext.define('Ext.overrides.GlobalEvents',{override:'Ext.GlobalEvents',deprecated:{5:{methods:{addListener:function(a,d,i,f,h,g,e){var c,b;if(a==='ready'){b=d}else {if(typeof a!=='string'){for(c in a){if(c==='ready'){b=a[c]}}}}if(b){Ext.onReady(b)}this.callParent([a,d,i,f,h,g,e])}}}}});Ext.USE_NATIVE_JSON=!1;Ext.JSON=new function(){var me=this,hasNative=window.JSON&&JSON.toString()==='[object JSON]',useHasOwn=!!{}.hasOwnProperty,pad=function(a){return a<10?'0'+a:a},doDecode=function(json){return eval('('+json+')')},doEncode=function(a,b){if(a===null||a===undefined){return 'null'}else {if(Ext.isDate(a)){return me.encodeDate(a)}else {if(Ext.isString(a)){if(Ext.isMSDate(a)){return me.encodeMSDate(a)}else {return me.encodeString(a)}}else {if(typeof a==='number'){return isFinite(a)?String(a):'null'}else {if(Ext.isBoolean(a)){return String(a)}else {if(a.toJSON){return a.toJSON()}else {if(Ext.isArray(a)){return encodeArray(a,b)}else {if(Ext.isObject(a)){return encodeObject(a,b)}else {if(typeof a==='function'){return 'null'}}}}}}}}}return 'undefined'},m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\','\v':'\\u000b'},charToReplace=/[\\\"\x00-\x1f\x7f-\uffff]/g,encodeString=function(a){return '"'+a.replace(charToReplace,function(b){var c=m[b];return typeof c==='string'?c:'\\u'+('0000'+b.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(a){return '"'+a+'"'},encodeArrayPretty=function(e,d){var f=e.length,c=d+' ',g=','+c,a=['[',c],b;for(b=0;b0}}return c},onBindNotify:function(b,c,a){a.syncing=a.syncing+1||1;this[a._config.names.set](b);--a.syncing},removeBindings:function(){var c=this,a,d,b;if(!c.destroying){a=c.getBind();if(a&&typeof a!=='string'){for(d in a){b=a[d];b.destroy();b._config=b.getTemplateScope=null}}}c.setBind(null)},updateSession:function(a){var b=this.getInherited();if(a){b.session=a}else {delete b.session}},updateViewModel:function(a){var c=this.getInherited(),b=this.getController();if(a){c.viewModel=a;a.setView(this);if(b){b.initViewModel(a)}}else {delete c.viewModel}}}},0,0,0,0,0,0,[Ext.mixin,'Bindable'],0);Ext.cmd.derive('Ext.mixin.ComponentDelegation',Ext.Mixin,{mixinConfig:{id:'componentDelegation'},privates:{addDelegatedListener:function(c,k,j,a,d,i,h){var b=this,e,g,f;d=d||a.order;if(d){f=a&&a.priority;if(!f){a=a?Ext.Object.chain(a):{};a.priority=b.$orderToPriority[d]}}e=b.$delegatedEvents||(b.$delegatedEvents={});g=e[c]||(e[c]=new Ext.util.Event(b,c));if(g.addListener(k,j,a,i,h)){b.$hasDelegatedListeners._incr_(c)}},clearDelegatedListeners:function(){var e=this,a=e.$delegatedEvents,b,c,d;if(a){for(b in a){c=a[b];d=c.listeners.length;c.clearListeners();e.$hasDelegatedListeners._decr_(b,d);delete a[b]}}},doFireDelegatedEvent:function(f,g){var e=this,d=!0,a,b,c;if(e.$hasDelegatedListeners[f]){a=e.getRefOwner();while(a){b=a.$delegatedEvents;if(b){c=b[f];if(c){d=c.fireDelegated(e,g);if(d===!1){break}}}a=a.getRefOwner()}}return d},removeDelegatedListener:function(c,f,e){var d=this,b=d.$delegatedEvents,a;if(b){a=b[c];if(a&&a.removeListener(f,e)){d.$hasDelegatedListeners._decr_(c);if(a.listeners.length===0){delete b[c]}}}}},onClassMixedIn:function(a){function HasListeners(){}a.prototype.HasListeners=a.HasListeners=HasListeners;HasListeners.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,'ComponentDelegation'],function(a){function HasDelegatedListeners(){}a.HasDelegatedListeners=HasDelegatedListeners;HasDelegatedListeners.prototype=a.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()});Ext.cmd.derive('Ext.Widget',Ext.Evented,{isWidget:!0,element:{reference:'element'},observableType:'component',cachedConfig:{style:null},config:{userCls:null},eventedConfig:{width:null,height:null},template:[],constructor:function(c){var a=this,b;a.initId(c);a.initElement();a.mixins.observable.constructor.call(a,c);Ext.ComponentManager.register(a);b=a.getController();if(b){b.init(a)}},afterCachedConfig:function(){var c=this,j=c.self.prototype,f=c.referenceList,i=c.renderElement,d,h,a,b,g,e;j.renderTemplate=d=document.createDocumentFragment();d.appendChild(i.clone(!0,!0));e=d.querySelectorAll('[id]');for(a=0,b=e.length;a]+>/gi,stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},undef:function(a){return a!==undefined?a:''},defaultValue:function(a,b){return a!==undefined&&a!==''?a:b},substr:'ab'.substr(-1)!='b'?function(d,a,c){var b=String(d);return a<0?b.substr(Math.max(b.length+a,0),c):b.substr(a,c)}:function(c,b,a){return String(c).substr(b,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(b){return a.currency(b,'$',2)},currency:function(b,f,c,h){var d='',e=',0',g=0;b=b-0;if(b<0){b=-b;d='-'}c=Ext.isDefined(c)?c:a.currencyPrecision;e+=c>0?'.':'';for(;gb){a=a.substring(a.length-b)}}while(a.length2){}else {if(e.length===2){d=e[1].length;f=e[1].match(a.hashRe);if(f){m=f[0].length;l='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+m+'}$")'}}}b=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts'+(h?',thousandSeparator,thousands=[],j,n,i':'')+(i?',formatString="'+c+'",formatPattern=/[\\d,\\.#]+/':'')+',trailingZeroes;return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";neg=v<0;','absVal=Math.abs(v);','fnum=Ext.Number.toFixed(absVal, '+d+');',l,';'];if(h){if(d){b[b.length]='parts=fnum.split(".");';b[b.length]='fnum=parts[0];'}b[b.length]='if(absVal>=1000) {';b[b.length]='thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i')},capitalize:Ext.String.capitalize,uncapitalize:Ext.String.uncapitalize,ellipsis:Ext.String.ellipsis,escape:Ext.String.escape,escapeRegex:Ext.String.escapeRegex,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,toggle:Ext.String.toggle,trim:Ext.String.trim,parseBox:function(b){b=b||0;if(typeof b==='number'){return {top:b,right:b,bottom:b,left:b}}var a=b.split(' '),c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else {if(c===2){a[2]=a[0];a[3]=a[1]}else {if(c===3){a[3]=a[1]}}}return {top:parseInt(a[0],10)||0,right:parseInt(a[1],10)||0,bottom:parseInt(a[2],10)||0,left:parseInt(a[3],10)||0}}}},1,0,0,0,0,0,[Ext.util,'Format'],0);Ext.cmd.derive('Ext.Template',Ext.Base,{inheritableStatics:{from:function(a,b){a=Ext.getDom(a);return new this(a.value||a.innerHTML,b||'')}},useEval:Ext.isGecko,constructor:function(g){var d=this,c=arguments,f=[],e,b=c.length,a;d.initialConfig={};if(b===1&&Ext.isArray(g)){c=g;b=c.length}if(b>1){for(e=0;e]*)\>)|(?:<\/tpl>)/g,actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g,propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/,defaultRe:/^\s*default\s*$/,elseRe:/^\s*else\s*$/},1,0,0,0,0,0,[Ext.util,'XTemplateParser'],0);Ext.cmd.derive('Ext.util.XTemplateCompiler',Ext.util.XTemplateParser,{useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:!0,propNameRe:/^[\w\d\$]*$/,compile:function(c){var a=this,b=a.generate(c);return a.useEval?a.evalTpl(b):(new Function('Ext',b))(Ext)},generate:function(d){var a=this,b='var fm=Ext.util.Format,ts=Object.prototype.toString;',c;a.maxLevel=0;a.body=['var c0=values, a0='+a.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(a.definitions){if(typeof a.definitions==='string'){a.definitions=[a.definitions,b]}else {a.definitions.push(b)}}else {a.definitions=[b]}a.switches=[];a.parse(d);a.definitions.push((a.useEval?'$=':'return')+' function ('+a.fnArgs+') {',a.body.join(''),'}');c=a.definitions.join('\n');a.definitions.length=a.body.length=a.switches.length=0;delete a.definitions;delete a.body;delete a.switches;return c},doText:function(a){var b=this,c=b.body;a=a.replace(b.aposRe,"\\'").replace(b.newLineRe,'\\n');if(b.useIndex){c.push("out[out.length]='",a,"'\n")}else {c.push("out.push('",a,"')\n")}},doExpr:function(b){var a=this.body;a.push('if ((v='+b+') != null) out');if(this.useIndex){a.push("[out.length]=v+''\n")}else {a.push(".push(v+'')\n")}},doTag:function(b){var a=this.parseTag(b);if(a){this.doExpr(a)}else {this.doText('{'+b+'}')}},doElse:function(){this.body.push('} else {\n')},doEval:function(a){this.body.push(a,'\n')},doIf:function(b,c){var a=this;if(b==='.'){a.body.push('if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('if (',a.parseTag(b),') {\n')}else {a.body.push('if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==='.'){a.body.push('else if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('} else if (',a.parseTag(b),') {\n')}else {a.body.push('} else if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doSwitch:function(b){var a=this,c;if(b==='.'||b==='#'){c=b==='.'?'values':'xindex';a.body.push('switch (',c,') {\n')}else {if(a.propNameRe.test(b)){a.body.push('switch (',a.parseTag(b),') {\n')}else {a.body.push('switch (',a.addFn(b),a.callFn,') {\n')}}a.switches.push(0)},doCase:function(e){var a=this,c=Ext.isArray(e)?e:[e],d=a.switches.length-1,f,b;if(a.switches[d]){a.body.push('break;\n')}else {a.switches[d]++}for(b=0,d=c.length;b1){ out.push("',d.between,'"); } \n')}},doForEach:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else {if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}}if(b.maxLevel1){ out.push("',d.between,'"); } \n')}},createArrayTest:'isArray' in Array?function(a){return 'Array.isArray(c'+a+')'}:function(a){return 'ts.call(c'+a+')==="[object Array]"'},doExec:function(d,e){var a=this,c='f'+a.definitions.length,b=a.guards[a.strict?0:1];a.definitions.push('function '+c+'('+a.fnArgs+') {',b.doTry,' var $v = values; with($v) {',' '+d,' }',b.doCatch,'}');a.body.push(c+a.callFn+'\n')},guards:[{doTry:'',doCatch:''},{doTry:'try { ',doCatch:' } catch(e) {\n}'}],addFn:function(c){var a=this,b='f'+a.definitions.length,d=a.guards[a.strict?0:1];if(c==='.'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return values','}')}else {if(c==='..'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return parent','}')}else {a.definitions.push('function '+b+'('+a.fnArgs+') {',d.doTry,' var $v = values; with($v) {',' return('+c+')',' }',d.doCatch,'}')}}return b},parseTag:function(h){var e=this,f=e.tagRe.exec(h),a,c,d,g,b;if(!f){return null}a=f[1];c=f[2];d=f[3];g=f[4];if(a=='.'){if(!e.validTypes){e.definitions.push('var validTypes={string:1,number:1,boolean:1};');e.validTypes=!0}b='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else {if(a=='#'){b='xindex'}else {if(a=='$'){b='xkey'}else {if(a.substr(0,7)=='parent.'){b=a}else {if(isNaN(a)&&a.indexOf('-')==-1&&a.indexOf('.')!=-1){b='values.'+a}else {b="values['"+a+"']"}}}}}if(g){b='('+b+g+')'}if(c&&e.useFormat){d=d?','+d:'';if(c.substr(0,5)!='this.'){c='fm.'+c+'('}else {c+='('}}else {return b}return c+b+d+')'},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},0,0,0,0,0,0,[Ext.util,'XTemplateCompiler'],function(){var a=this.prototype;a.fnArgs='out,values,parent,xindex,xcount,xkey';a.callFn='.call(this,'+a.fnArgs+')'});Ext.cmd.derive('Ext.XTemplate',Ext.Template,{isXTemplate:!0,emptyObj:{},fn:null,strict:!1,apply:function(b,a,d,c){return this.applyOut(b,[],a,d,c).join('')},applyOut:function(g,d,f,c,b){var a=this,e;if(!a.fn){e=new Ext.util.XTemplateCompiler({useFormat:a.disableFormats!==!0,definitions:a.definitions,strict:a.strict});a.fn=e.compile(a.html)}c=c||1;b=b||1;if(a.strict){a.fn(d,g,f||a.emptyObj,c,b)}else {try{a.fn(d,g,f||a.emptyObj,c,b)}catch(h){}}return d},compile:function(){return this},statics:{getTpl:function(c,d){var b=c[d],a;if(b&&!b.isTemplate){b=Ext.ClassManager.dynInstantiate('Ext.XTemplate',b);if(c.hasOwnProperty(d)){a=c}else {for(a=c.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=b;b.owner=a}return b||null}}},0,0,0,0,0,0,[Ext,'XTemplate'],0);Ext.cmd.derive('Ext.app.EventDomain',Ext.Base,{statics:{instances:{}},isEventDomain:!0,isInstance:!1,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(l,h,m){h=Ext.canonicalEventName(h);var j=this,n=j.bus,b=n[h],c,a,i,g,e,k,d,f;if(!b){return !0}for(c in b){if(b.hasOwnProperty(c)&&j.match(l,c,j.controller)){a=b[c];for(i in a){if(a.hasOwnProperty(i)){g=a[i];if(g.controller.isActive()){e=g.list;k=e.length;for(d=0;da.clientWidth}}if(e==='scroll'){h=!0}else {if(e){h=a.scrollHeight>a.clientHeight}}if(g){i=f.height}if(h){j=f.width}}}return {width:j,height:i}},getPosition:function(){return this.position},updateDirectionLock:Ext.emptyFn,updateDisabled:Ext.emptyFn,updateIndicators:Ext.emptyFn,updateMaxPosition:Ext.emptyFn,updateMaxUserPosition:Ext.emptyFn,updateMinPosition:Ext.emptyFn,updateMinUserPosition:Ext.emptyFn,updateMomenumEasing:Ext.emptyFn,updateX:Ext.emptyFn,updateY:Ext.emptyFn,onPartnerScrollStart:Ext.emptyFn,onPartnerScrollEnd:Ext.emptyFn,refresh:function(){this.fireEvent('refresh',this);return this},removePartner:function(c){var b=this._partners,a=c._partners;if(b){delete b[c.getId()]}if(a){delete a[this.getId()]}},scrollBy:function(a,b,c){var d=this.getPosition();if(a){if(a.length){c=b;b=a[1];a=a[0]}else {if(typeof a!=='number'){c=b;b=a.y;a=a.x}}}a=typeof a==='number'?a+d.x:null;b=typeof b==='number'?b+d.y:null;return this.doScrollTo(a,b,c)},scrollIntoView:function(d,i,h,e){var a=this,c=a.getPosition(),b,f,g,j=a.getElement();if(d){b=Ext.fly(d).getScrollIntoViewXY(j,c.x,c.y);f=i===!1?c.x:b.x;g=b.y;if(e){a.on({scrollend:'doHighlight',scope:a,single:!0,args:[d,e]})}a.doScrollTo(f,g,h)}},isInView:function(d){var f=this,c={x:!1,y:!1},b,e=f.getElement(),a;if(d&&e.contains(d)){a=e.getRegion();b=Ext.fly(d).getRegion();c.x=b.right>a.left&&b.lefta.top&&b.top0){b-=1}if(c>0){c-=1}e.setSpacerXY({x:b,y:c});d.show()}}},deprecated:{5:{methods:{getScroller:function(){return this}}},'5.1.0':{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}},privates:{getSpacer:function(){var b=this,a=b._spacer,c;if(!a){c=b.getElement();a=b._spacer=c.createChild({cls:b._spacerCls,role:'presentation'});a.setVisibilityMode(2);c.position()}return a},applySpacerXY:function(a,b){if(b&&a.x===b.x&&a.y===b.y){a=undefined}return a},updateSpacerXY:function(a){this.getSpacer().setLocalXY(a.x,a.y)},convertX:function(a){return a},doHighlight:function(b,a){if(a!==!0){Ext.fly(b).highlight(a)}else {Ext.fly(b).highlight()}},fireScrollStart:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollStart',b,c);if(a.hasListeners.scrollstart){a.fireEvent('scrollstart',a,b,c)}if(d&&d.onScrollStart){d.onScrollStart(b,c)}Ext.GlobalEvents.fireEvent('scrollstart',a,b,c)},fireScroll:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScroll',b,c);if(a.hasListeners.scroll){a.fireEvent('scroll',a,b,c)}if(d&&d.onScrollMove){d.onScrollMove(b,c)}Ext.GlobalEvents.fireEvent('scroll',a,b,c)},fireScrollEnd:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollEnd',b,c);if(a.hasListeners.scrollend){a.fireEvent('scrollend',a,b,c)}if(d&&d.onScrollEnd){d.onScrollEnd(b,c)}Ext.GlobalEvents.fireEvent('scrollend',a,b,c)},initXStyle:function(){var b=this.getElement(),a=this.getX();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-x',a)}},initYStyle:function(){var b=this.getElement(),a=this.getY();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-y',a)}},invokePartners:function(d,g,h){var b=this,c=b._partners,a,e,f=d==='onPartnerScrollEnd';if(!b.suspendSync&!b.isReflecting){for(e in c){a=c[e].scroller;a.isReflecting=!0;a[d](b,g,h);if(f){a.isReflecting=!1}}}},clearReflecting:function(){this.isReflecting=!1},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(){if(this.suspendSync){this.suspendSync--}},updateDomScrollPosition:function(){var a=this,d=a.getElement(),b,c=a.position;if(d&&!d.destroyed){b=a.getElementScroll(d);c.x=b.left;c.y=b.top}a.positionDirty=!1;return c},getElementScroll:function(a){return a.getScroll()},onDomScroll:function(){var a=this,b,d,e,c;if(a.isTouchScroller&&Ext.supports.touchScroll===2){c=a.getElement().dom;c.scrollTop=c.scrollLeft=0;return}b=a.updateDomScrollPosition();d=b.x;e=b.y;if(!a.isScrolling){a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(d,e)}a.fireScroll(d,e);a.onDomScrollEnd()},onDomScrollEnd:function(){var a=this,b=a.getPosition(),c=b.x,d=b.y;a.isScrolling=Ext.isScrolling=!1;a.trackingScrollLeft=c;a.trackingScrollTop=d;a.fireScrollEnd(c,d)},onPartnerScroll:function(d,b,c){var a=d._partners[this.getId()].axis;if(a){if(a==='x'){c=null}else {if(a==='y'){b=null}}}this.doScrollTo(b,c,!1,!0)},restoreState:function(){var a=this,c=a.getElement(),b;if(c){b=c.dom;if(a.trackingScrollTop!==undefined){b.scrollTop=a.trackingScrollTop;b.scrollLeft=a.trackingScrollLeft}}}}},1,0,0,0,['scroller.scroller'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.scroll,'Scroller'],0);Ext.cmd.derive('Ext.fx.easing.Abstract',Ext.Base,{config:{startTime:0,startValue:0},isEasing:!0,isEnded:!1,constructor:function(a){this.initConfig(a);return this},applyStartTime:function(a){if(!a){a=Ext.Date.now()}return a},updateStartTime:function(a){this.reset()},reset:function(){this.isEnded=!1},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,'Abstract'],0);Ext.cmd.derive('Ext.fx.easing.Momentum',Ext.fx.easing.Abstract,{config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(b){var a=Math.log(1-b/10);this.theta=a;this.alpha=a/this.getAcceleration()},updateStartVelocity:function(a){this.velocity=a*this.getAcceleration()},updateAcceleration:function(a){this.velocity=this.getStartVelocity()*a;this.alpha=this.theta/a},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var a=Ext.Date.now()-this.getStartTime();return Math.exp(a*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}},0,0,0,0,0,0,[Ext.fx.easing,'Momentum'],0);Ext.cmd.derive('Ext.fx.easing.Bounce',Ext.fx.easing.Abstract,{config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var b=Ext.Date.now()-this.getStartTime(),a=b/this.getAcceleration(),c=a*Math.pow(Math.E,-this.getSpringTension()*a);return this.getStartValue()+this.getStartVelocity()*c}},0,0,0,0,0,0,[Ext.fx.easing,'Bounce'],0);Ext.cmd.derive('Ext.fx.easing.BoundMomentum',Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(b,a){return Ext.factory(b,Ext.fx.easing.Momentum,a)},applyBounce:function(b,a){return Ext.factory(b,Ext.fx.easing.Bounce,a)},updateStartTime:function(a){this.getMomentum().setStartTime(a);Ext.fx.easing.Abstract.prototype.updateStartTime.apply(this,arguments)},updateStartVelocity:function(a){this.getMomentum().setStartVelocity(a)},updateStartValue:function(a){this.getMomentum().setStartValue(a)},reset:function(){this.lastValue=null;this.isBouncingBack=!1;this.isOutOfBound=!1;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var d=this.getMomentum(),j=this.getBounce(),f=d.getStartVelocity(),b=f>0?1:-1,i=this.getMinMomentumValue(),h=this.getMaxMomentumValue(),g=b==1?h:i,c=this.lastValue,a,e;if(f===0){return this.getStartValue()}if(!this.isOutOfBound){a=d.getValue();e=d.getVelocity();if(Math.abs(e)=i&&a<=h){return a}this.isOutOfBound=!0;j.setStartTime(Ext.Date.now()).setStartVelocity(e).setStartValue(g)}a=j.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(c!==null){if(b==1&&ac){this.isBouncingBack=!0}}}else {if(Math.round(a)==g){this.isEnded=!0}}}this.lastValue=a;return a}},0,0,0,0,0,0,[Ext.fx.easing,'BoundMomentum'],0);Ext.cmd.derive('Ext.fx.easing.Linear',Ext.fx.easing.Abstract,{config:{duration:0,endValue:0},updateStartValue:function(a){this.distance=this.getEndValue()-a},updateEndValue:function(a){this.distance=a-this.getStartValue()},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration();if(a>b){this.isEnded=!0;return this.getEndValue()}else {return this.getStartValue()+a/b*this.distance}}},0,0,0,0,['easing.linear'],0,[Ext.fx.easing,'Linear'],0);Ext.cmd.derive('Ext.fx.easing.EaseOut',Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,i=a/b,h=1-i,g=1-Math.pow(h,this.getExponent()),c=d+g*e;if(a>=b){this.isEnded=!0;return f}return c}},0,0,0,0,['easing.ease-out'],0,[Ext.fx.easing,'EaseOut'],0);Ext.cmd.derive('Ext.util.translatable.Abstract',Ext.Evented,{config:{useWrapper:null,easing:null,easingX:null,easingY:null},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:!1,isTranslatable:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,'easing')},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},doTranslate:Ext.emptyFn,translate:function(a,b,c){if(c){return this.translateAnimated(a,b,c)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a=='number'){this.x=a}if(!isNaN(b)&&typeof b=='number'){this.y=b}this.doTranslate(a,b)},translateAxis:function(e,a,d){var b,c;if(e=='x'){b=a}else {c=a}return this.translate(b,c,d)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(a,b){this.activeEasingX=a;this.activeEasingY=b;this.isAnimating=!0;this.lastX=null;this.lastY=null;Ext.AnimationQueue.start(this.doAnimationFrame,this);this.fireEvent('animationstart',this,this.x,this.y);return this},translateAnimated:function(g,h,a){var b=this;if(!Ext.isObject(a)){a={}}if(b.isAnimating){b.stopAnimation()}b.callback=a.callback;b.callbackScope=a.scope;var f=Ext.Date.now(),e=a.easing,c=typeof g=='number'?a.easingX||e||b.getEasingX()||!0:null,d=typeof h=='number'?a.easingY||e||b.getEasingY()||!0:null;if(c){c=b.factoryEasing(c);c.setStartTime(f);c.setStartValue(b.x);c.setEndValue(g);if('duration' in a){c.setDuration(a.duration)}}if(d){d=b.factoryEasing(d);d.setStartTime(f);d.setStartValue(b.y);d.setEndValue(h);if('duration' in a){d.setDuration(a.duration)}}return b.animate(c,d)},doAnimationFrame:function(){var a=this,d=a.activeEasingX,e=a.activeEasingY,f=Date.now(),b,c;if(!a.isAnimating){return}a.lastRun=f;if(d===null&&e===null){a.stopAnimation();return}if(d!==null){a.x=b=Math.round(d.getValue());if(d.isEnded){a.activeEasingX=null;a.fireEvent('axisanimationend',a,'x',b)}}else {b=a.x}if(e!==null){a.y=c=Math.round(e.getValue());if(e.isEnded){a.activeEasingY=null;a.fireEvent('axisanimationend',a,'y',c)}}else {c=a.y}if(a.lastX!==b||a.lastY!==c){a.doTranslate(b,c);a.lastX=b;a.lastY=c}a.fireEvent('animationframe',a,b,c)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=!1;Ext.AnimationQueue.stop(a.doAnimationFrame,a);a.fireEvent('animationend',a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){if(this.isAnimating){this.stopAnimation()}Ext.Evented.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.translatable,'Abstract'],0);Ext.cmd.derive('Ext.util.translatable.Dom',Ext.util.translatable.Abstract,{config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,'Dom'],0);Ext.cmd.derive('Ext.util.translatable.CssTransform',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement();if(!this.destroyed&&!a.destroyed){a.translate(b,c)}},destroy:function(){var a=this.getElement();if(a&&!a.destroyed){a.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssTransform'],0);Ext.cmd.derive('Ext.util.translatable.ScrollPosition',Ext.util.translatable.Dom,{type:'scrollposition',config:{useWrapper:!0},getWrapper:function(){var a=this.wrapper,c=this.getElement(),b;if(!a){b=c.getParent();if(!b){return null}if(b.hasCls('x-translatable-hboxfix')){b=b.getParent()}if(this.getUseWrapper()){a=c.wrap()}else {a=b}c.addCls('x-translatable');a.addCls('x-translatable-container');this.wrapper=a;a.on('painted',function(){if(!this.isAnimating){this.refresh()}},this);this.refresh()}return a},doTranslate:function(c,d){var b=this.getWrapper(),a;if(b){a=b.dom;if(typeof c=='number'){a.scrollLeft=500000-c}if(typeof d=='number'){a.scrollTop=500000-d}}},destroy:function(){var a=this,c=a.getElement(),b=a.wrapper;if(b){if(!c.destroyed){if(a.getUseWrapper()){b.doReplaceWith(c)}c.removeCls('x-translatable')}if(!b.destroyed){b.removeCls('x-translatable-container');b.un('painted','refresh',a)}delete a.wrapper;delete a._element}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollPosition'],0);Ext.cmd.derive('Ext.util.translatable.ScrollParent',Ext.util.translatable.Dom,{isScrollParent:!0,applyElement:function(b){var a=Ext.get(b);if(a){this.parent=a.parent()}return a},doTranslate:function(b,c){var a=this.parent;a.setScrollLeft(Math.round(-b));a.setScrollTop(Math.round(-c))},getPosition:function(){var c=this,a=c.position,b=c.parent;a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollParent'],0);Ext.cmd.derive('Ext.util.translatable.CssPosition',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement().dom.style;if(typeof b=='number'){a.left=b+'px'}if(typeof c=='number'){a.top=c+'px'}},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssPosition'],0);Ext.cmd.derive('Ext.util.Translatable',Ext.Base,{constructor:function(a){var b=Ext.util.translatable;switch(Ext.browser.getPreferredTranslationMethod(a)){case 'scrollposition':return new b.ScrollPosition(a);case 'scrollparent':return new b.ScrollParent(a);case 'csstransform':return new b.CssTransform(a);case 'cssposition':return new b.CssPosition(a);}}},1,0,0,0,0,0,[Ext.util,'Translatable'],0);Ext.cmd.derive('Ext.scroll.Indicator',Ext.Widget,{config:{axis:null,hideAnimation:!0,hideDelay:0,scroller:null,minLength:24},defaultHideAnimation:{to:{opacity:0},duration:300},names:{x:{side:'l',getSize:'getHeight',setLength:'setWidth',translate:'translateX'},y:{side:'t',getSize:'getWidth',setLength:'setHeight',translate:'translateY'}},oppositeAxis:{x:'y',y:'x'},cls:'x-scroll-indicator',applyHideAnimation:function(a){if(a){a=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,a)}return a},constructor:function(c){var a=this,b;Ext.Widget.prototype.constructor.call(this,c);b=a.getAxis();a.names=a.names[b];a.element.addCls(a.cls+' '+a.cls+'-'+b)},hide:function(){var a=this,b=a.getHideDelay();if(b){a._hideTimer=Ext.defer(a.doHide,b,a)}else {a.doHide()}},setValue:function(c){var a=this,o=a.element,l=a.names,m=a.getAxis(),k=a.getScroller(),f=k.getMaxUserPosition()[m],g=k.getElementSize()[m],b=a.length,j=a.getMinLength(),e=b,i=g-b-a.sizeAdjust,h=Math.round,n=Math.max,d;if(c<0){e=h(n(b+b*c/g,j));d=0}else {if(c>f){e=h(n(b-b*(c-f)/g,j));d=i+b-e}else {d=h(c/f*i)}}a[l.translate](d);o[l.setLength](e)},show:function(){var a=this,b=a.element,c=b.getActiveAnimation();if(c){c.end()}if(!a._inDom){a.getScroller().getElement().appendChild(b);a._inDom=!0;if(!a.size){a.cacheStyles()}}a.refreshLength();clearTimeout(a._hideTimer);b.setStyle('opacity','')},privates:{cacheStyles:function(){var a=this,c=a.element,b=a.names;a.size=c[b.getSize]();a.margin=c.getMargin(b.side)},doHide:function(){var a=this.getHideAnimation(),b=this.element;if(a){b.animate(a)}else {b.setStyle('opacity',0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle('opacity','0')},refreshLength:function(){var a=this,i=a.names,g=a.getAxis(),e=a.getScroller(),h=e.getSize()[g],c=e.getElementSize()[g],j=c/h,b=a.margin*2,d=a.hasOpposite()?b+a.size:b,f=Math.max(Math.round((c-d)*j),a.getMinLength());a.sizeAdjust=d;a.length=f;a.element[i.setLength](f)},translateX:function(a){this.element.translate(a)},translateY:function(a){this.element.translate(0,a)}}},1,['scrollindicator'],['widget','scrollindicator'],{'widget':!0,'scrollindicator':!0},['widget.scrollindicator'],0,[Ext.scroll,'Indicator'],0);Ext.cmd.derive('Ext.scroll.TouchScroller',Ext.scroll.Scroller,{isTouchScroller:!0,config:{autoRefresh:!0,bounceEasing:{duration:400},elementSize:undefined,indicators:!0,fps:'auto',maxAbsoluteVelocity:6,momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,innerElement:null,size:undefined,slotSnapEasing:{duration:150},slotSnapOffset:{x:0,y:0},startMomentumResetTime:300,translatable:{translationMethod:'auto',useWrapper:!1}},cls:'x-scroll-container',scrollerCls:'x-scroll-scroller',dragStartTime:0,dragEndTime:0,isDragging:!1,isAnimating:!1,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:'onTouchStart',touchmove:'onTouchMove',dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd'},refreshCounter:0,constructor:function(c){var a=this,b='onEvent';a.elementListeners={touchstart:b,touchmove:b,dragstart:b,drag:b,dragend:b,scope:a};a.minPosition={x:0,y:0};a.startPosition={x:0,y:0};a.velocity={x:0,y:0};a.isAxisEnabledFlags={x:!1,y:!1};a.flickStartPosition={x:0,y:0};a.flickStartTime={x:0,y:0};a.lastDragPosition={x:0,y:0};a.dragDirection={x:0,y:0};Ext.scroll.Scroller.prototype.constructor.call(this,c);a.refreshAxes();a.scheduleRefresh={idle:a.doRefresh,scope:a,single:!0,destroyable:!0}},applyBounceEasing:function(b){var a=Ext.fx.easing.EaseOut;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyElementSize:function(b){var e=this.getElement(),a,c,d;if(!e){return null}a=e.dom;if(!a){return}if(b==null){c=a.clientWidth;d=a.clientHeight}else {c=b.x;d=b.y}return {x:c,y:d}},applyIndicators:function(b,a){var g=this,c,d,e,f;if(b){if(b===!0){c=d={}}else {e=b.x;f=b.y;if(e||f){c=e==null||e===!0?{}:e;d=e==null||f===!0?{}:f}else {c=d=b}}if(a){if(c){a.x.setConfig(c)}else {a.x.destroy();a.x=null}if(d){a.y.setConfig(d)}else {a.y.destroy();a.y=null}b=a}else {b={x:null,y:null};if(c){b.x=new Ext.scroll.Indicator(Ext.applyIf({axis:'x',scroller:g},c))}if(d){b.y=new Ext.scroll.Indicator(Ext.applyIf({axis:'y',scroller:g},d))}}}else {if(a){if(a.x){a.x.destroy()}if(a.y){a.y.destroy()}a.x=a.y=null}}return b},applyMomentumEasing:function(b){var a=Ext.fx.easing.BoundMomentum;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyInnerElement:function(a){if(a&&!a.isElement){a=Ext.get(a)}return a},applyMaxPosition:function(a,c){if(c&&a.x===c.x&&a.y===c.y){return}var d=this.getTranslatable(),b;if(d.isAnimating){b=d.activeEasingY;if(b&&b.getStartVelocity&&b.getStartVelocity()<0&&a.yi){d=i}}if(l){c=a.convertX(c);d=a.convertX(d)}if(d!==null){f=a.getBounceEasing()[b];f.setConfig({startTime:j,startValue:-c,endValue:-d});return f}if(e===0){return null}if(e<-g){e=-g}else {if(e>g){e=g}}f=a.getMomentumEasing()[b];h={startTime:j,startValue:-c,startVelocity:e*1.5,minMomentumValue:-i,maxMomentumValue:0};if(l){a.convertEasingConfig(h)}f.setConfig(h);return f},getSnapPosition:function(d){var e=this,c=e.getSlotSnapSize()[d],f=null,b,h,g,a;if(c!==0&&e.isAxisEnabled(d)){b=e.position[d];h=e.getSlotSnapOffset()[d];g=e.getMaxUserPosition()[d];a=Math.floor((b-h)%c);if(a!==0){if(b!==g){if(Math.abs(a)>c/2){f=Math.min(g,b+(a>0?c-a:a-c))}else {f=b-a}}else {f=b-a}}}return f},hideIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.hide()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.hide()}}}},isAxisEnabled:function(a){this.getX();this.getY();return this.isAxisEnabledFlags[a]},onAnimationEnd:function(){this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(d,b,c){var a=this.position;a.x=this.convertX(-b);a.y=-c;this.onScroll()},onAxisDrag:function(a,k){if(k&&this.isAxisEnabled(a)){var b=this,o=b.flickStartPosition,g=b.flickStartTime,f=b.lastDragPosition,d=b.dragDirection,r=b.position[a],q=b.getMinUserPosition()[a],e=b.getMaxUserPosition()[a],p=b.startPosition[a],l=f[a],c=p-k,i=d[a],h=b.getOutOfBoundRestrictFactor(),n=b.getStartMomentumResetTime(),m=Ext.Date.now(),j;if(ce){j=c-e;c=e+j*h}}if(c>l){d[a]=1}else {if(cn){o[a]=r;g[a]=m}f[a]=c;return !0}},onDomScroll:function(){var c=this,b,a;if(c.getTranslatable().isScrollParent){b=c.getElement().dom;a=c.position;a.x=b.scrollLeft;a.y=b.scrollTop}Ext.scroll.Scroller.prototype.onDomScroll.call(this)},onDrag:function(c){var a=this,b=a.lastDragPosition;if(!a.isDragging){return}if(a.onAxisDrag('x',a.convertX(c.deltaX))|a.onAxisDrag('y',c.deltaY)){a.doScrollTo(b.x,b.y)}},onDragEnd:function(d){var a=this,b,c;if(!a.isDragging){return}a.dragEndTime=Ext.Date.now();a.onDrag(d);a.isDragging=!1;b=a.getAnimationEasing('x',d);c=a.getAnimationEasing('y',d);if(b||c){a.getTranslatable().animate(b,c)}else {a.onScrollEnd()}},onDragStart:function(d){var a=this,b=a.getDirection(),m=d.absDeltaX,n=d.absDeltaY,o=a.getDirectionLock(),l=a.startPosition,g=a.flickStartPosition,j=a.flickStartTime,h=a.lastDragPosition,i=a.position,k=a.dragDirection,e=i.x,f=i.y,c=Ext.Date.now();if(o&&b!=='both'){if(b==='horizontal'&&m>n||b==='vertical'&&n>m){d.stopPropagation()}else {return}}h.x=e;h.y=f;g.x=e;g.y=f;l.x=e;l.y=f;j.x=c;j.y=c;k.x=0;k.y=0;a.dragStartTime=c;a.isDragging=!0;if(!a.isScrolling){a.onScrollStart()}},onElementResize:function(b,a){this.refresh(!0,{elementSize:{x:a.contentWidth,y:a.contentHeight},size:this.getAutoRefresh()?null:this.getSize()})},onElementScroll:function(b,a){a.scrollTop=a.scrollLeft=0},onEvent:function(b){var a=this,c=b.browserEvent;if((!a.self.isTouching||a.isTouching)&&(!a.getTranslatable().isScrollParent||!a.isMouseEvent[c.type]&&c.pointerType!=='mouse')&&(a.getY()||a.getX())){a[a.listenerMap[b.type]](b)}},onInnerElementResize:function(b,a){this.refresh(!0,{size:{x:a.width,y:a.height}})},onMouseWheel:function(j){var a=this,g=j.getWheelDeltas(),c=-g.x,d=-g.y,b=a.position,e=a.getMaxUserPosition(),f=a.getMinUserPosition(),h=Math.max,i=Math.min,k=h(i(b.x+c,e.x),f.x),l=h(i(b.y+d,e.y),f.y);c=k-b.x;d=l-b.y;if(!c&&!d){return}j.stopEvent();a.onScrollStart();a.scrollBy(c,d);a.onScroll();a.onScrollEnd()},onPartnerScrollEnd:function(b,c){var a=this;if(!a.getTranslatable().isScrollParent){a.fireScrollEnd(b,c)}Ext.scroll.Scroller.prototype.onPartnerScrollEnd.call(this,b,c);a.isScrolling=!1;a.hideIndicators()},onPartnerScrollStart:function(b,c){var a=this;a.isScrolling=!0;if(!a.getTranslatable().isScrollParent){a.fireScrollStart(b,c)}a.showIndicators()},onScroll:function(){var a=this,e=a.position,f=e.x,g=e.y,b=a.getIndicators(),c,d;if(b){if(a.isAxisEnabled('x')){c=b.x;if(c){c.setValue(f)}}if(a.isAxisEnabled('y')){d=b.y;if(d){d.setValue(g)}}}a.fireScroll(f,g)},onScrollEnd:function(){var a=this,b=a.position;if(a.isScrolling&&!a.isTouching&&!a.snapToSlot()){a.hideIndicators();a.isScrolling=Ext.isScrolling=!1;a.fireScrollEnd(b.x,b.y)}},onScrollStart:function(){var a=this,b=a.position;if(!a.isScrolling){a.showIndicators();a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(b.x,b.y)}},onTouchEnd:function(){var a=this;a.isTouching=a.self.isTouching=!1;if(!a.isDragging&&a.snapToSlot()){a.onScrollStart()}},onTouchMove:function(a){a.preventDefault()},onTouchStart:function(){var a=this;a.isTouching=a.self.isTouching=!0;Ext.getDoc().on({touchend:'onTouchEnd',scope:a,single:!0});a.stopAnimation()},refreshAxes:function(){var a=this,b=a.isAxisEnabledFlags,k=a.getSize(),h=a.getElementSize(),e=a.getIndicators(),f,g,c,d,i,j;if(!k||!h){return}f=Math.max(0,k.x-h.x);g=Math.max(0,k.y-h.y);c=a.getX();d=a.getY();a.setMaxPosition({x:f,y:g});if(c===!0||c==='auto'){b.x=!!f}else {if(c===!1){b.x=!1;i=e&&e.x;if(i){i.hide()}}else {if(c==='scroll'){b.x=!0}}}if(d===!0||d==='auto'){b.y=!!g}else {if(d===!1){b.y=!1;j=e&&e.y;if(j){j.hide()}}else {if(d==='scroll'){b.y=!0}}}a.setMaxUserPosition({x:b.x?f:0,y:b.y?g:0});if(Ext.supports.touchScroll===1){a.initXStyle();a.initYStyle()}},showIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.show()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.show()}}}},snapToBoundary:function(){var a=this,d=a.getPosition();if(a.isConfiguring||!(d.x||d.y)){return}var f=a.getMinUserPosition(),e=a.getMaxUserPosition(),i=f.x,j=f.y,g=e.x,h=e.y,b=Math.round(d.x),c=Math.round(d.y);if(bg){b=g}}if(ch){c=h}}a.doScrollTo(b,c)},snapToSlot:function(){var a=this,c=a.getSnapPosition('x'),d=a.getSnapPosition('y'),b=a.getSlotSnapEasing();if(c!==null||d!==null){a.doScrollTo(c,d,{easingX:b.x,easingY:b.y});return !0}return !1},stopAnimation:function(){this.getTranslatable().stopAnimation()},toggleResizeListeners:function(e){var c=this,f=c.getElement(),b,a,d;if(f){d=c.getInnerElement();if(e){b=a='on'}else {if(e===null){b='on';a='un'}else {b=a='un'}}f[b]('resize','onElementResize',c);d[a]('resize','onInnerElementResize',c)}},unwrapContent:function(){var a=this.getInnerElement().dom,c=this.getElement().dom,b;while(b=a.firstChild){c.insertBefore(b,a)}},wrapContent:function(d){var a=document.createElement('div'),c=d.dom,b;while(b=c.lastChild){a.insertBefore(b,a.firstChild)}c.appendChild(a);this.setInnerElement(a);this._isWrapped=!0;return this.getInnerElement()}}},1,0,0,0,['scroller.touch'],0,[Ext.scroll,'TouchScroller'],0);Ext.cmd.derive('Ext.scroll.DomScroller',Ext.scroll.Scroller,{isDomScroller:!0,getMaxPosition:function(){var b=this.getElement(),c=0,d=0,a;if(b&&!b.destroyed){a=b.dom;c=a.scrollWidth-a.clientWidth;d=a.scrollHeight-a.clientHeight}return {x:c,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),d=0,e=0,a;if(b&&!b.destroyed){a=b.dom;if(c.getX()){d=a.scrollWidth-a.clientWidth}if(c.getY()){e=a.scrollHeight-a.clientHeight}}return {x:d,y:e}},getPosition:function(){var a=this;if(a.positionDirty){a.updateDomScrollPosition()}return a.position},getSize:function(){var a=this.getElement(),b,c;if(a&&!a.destroyed){c=a.dom;b={x:c.scrollWidth,y:c.scrollHeight}}else {b={x:0,y:0}}return b},updateElement:function(b,a){this.initXStyle();this.initYStyle()},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},privates:{doScrollTo:function(a,b,j){var e=this,d=e.getElement(),f,c,i,g,h,k;if(d&&!d.destroyed){c=d.dom;g=a===Infinity;h=b===Infinity;if(g||h){f=e.getMaxPosition();if(g){a=f.x}if(h){b=f.y}}a=e.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}d.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(b!=null){c.scrollTop=b}if(a!=null){c.scrollLeft=a;if(Ext.isIE8){k=c.scrollLeft;c.scrollLeft=a}}}e.positionDirty=!0}},getElementScroll:function(a){return a.getScroll()},stopAnimation:function(){var a=this.getElement().getActiveAnimation();if(a){a.end()}}}},0,0,0,0,['scroller.dom'],0,[Ext.scroll,'DomScroller'],function(a){Ext.onDocumentReady(function(){a.document=new a({x:!0,y:!0,element:document.body})})});Ext.cmd.derive('Ext.util.Floating',Ext.Base,{mixinId:'floating',focusOnToFront:!0,shadow:'sides',animateShadow:!1,constrain:!1,config:{activeCounter:0,alwaysOnTop:!1},preventDefaultAlign:!1,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var a=this,e=a.el,d=a.shadow,c,b;if(d){b={mode:d===!0?'sides':d};c=a.shadowOffset;if(c){b.offset=c}b.animate=a.animateShadow;b.fixed=a.fixed;e.enableShadow(b,!1)}if(a.shim||Ext.useShims){e.enableShim({fixed:a.fixed},!1)}e.setVisibilityMode(a._visModeMap[a.hideMode]);a.el.on({mousedown:a.onMouseDown,scope:a,capture:!0});a.registerWithOwnerCt();a.initHierarchyEvents()},alignTo:function(b,d,f,e){var a=this,c;Ext.un('scroll',a.onAlignToScroll,a);if(b.isComponent){c=b.el}else {if(b.nodeType){c=Ext.fly(b)}else {c=b}}if(!c.contains(a.el)){Ext.on('scroll',a.onAlignToScroll,a)}a._lastAlignTarget=b;a._lastAlignToPos=d;a.mixins.positionable.alignTo.call(a,c,d,f,e)},initFloatConstrain:function(){var a=this,b=a.floatParent;if((a.constrain||a.constrainHeader)&&!a.constrainTo){a.constrainTo=b?b.getTargetEl():a.container}},initHierarchyEvents:function(){var b=this,a=this.syncHidden;if(!b.hasHierarchyEventListeners){b.mon(Ext.GlobalEvents,{hide:a,collapse:a,show:a,expand:a,added:a,scope:b});b.hasHierarchyEventListeners=!0}},registerWithOwnerCt:function(){var a=this,c=a.ownerCt,b=a.zIndexParent;if(b){b.unregisterFloatingItem(a)}b=a.zIndexParent=a.up('[floating]');a.floatParent=c||b;a.initFloatConstrain();delete a.ownerCt;if(b){b.registerFloatingItem(a)}else {Ext.WindowManager.register(a)}},onMouseDown:function(g){var b=this,f=b.focusTask,c=g.pointerType==='touch',a,d,e;if(b.floating&&(!f||!f.id)){a=g.target;d=b.el.dom;while(!c&&a&&a!==d){if(Ext.fly(a).isFocusable()){c=!0}a=a.parentNode}e=Ext.WindowManager.getActive()===b&&(a===d||c);if(!e){b.toFront(c)}}},onBeforeFloatLayout:function(){this.el.preventSync=!0},onAfterFloatLayout:function(){var a=this.el;if(a.shadow||a.shim){a.setUnderlaysVisible(!0);a.syncUnderlays()}},syncHidden:function(){var a=this,d=a.hidden||!a.rendered,c=a.hierarchicallyHidden=a.isHierarchicallyHidden(),b=a.pendingShow;if(d!==c){if(c){a.hide();a.pendingShow=!0}else {if(b){delete a.pendingShow;if(b.length){a.show.apply(a,b)}else {a.show()}}}}},setZIndex:function(a){var b=this;b.el.setZIndex(a);a+=10;if(b.floatingDescendants){a=Math.floor(b.floatingDescendants.setBase(a)/100)*100+10000}return a},doConstrain:function(c){var a=this,b=a.calculateConstrainedPosition(c,null,!0);if(b){a.setPosition(b)}},updateActiveCounter:function(b){var a=this.zIndexParent;if(a&&this.bringParentToFront!==!1){a.setActiveCounter(++Ext.ZIndexManager.activeCounter)}a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},updateAlwaysOnTop:function(b){var a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},toFront:function(b){var a=this;if(a.zIndexManager.bringToFront(a,b||!a.focusOnToFront)){if(a.hasListeners.tofront){a.fireEvent('tofront',a,a.el.getZIndex())}}return a},setActive:function(d,c){var a=this,b;if(d){if(a.el.shadow&&!a.maximized){a.el.enableShadow(null,!0)}if(c){b=Ext.ComponentManager.getActiveComponent();if(!b||!b.up(a)){a.focus()}}a.fireEvent('activate',a)}else {a.fireEvent('deactivate',a)}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var a=this,b;if(a.isVisible()){b=a.getAlignToXY(a.container,'c-c');a.setPagePosition(b)}else {a.needsCenter=!0}return a},onFloatShow:function(){if(this.needsCenter){this.center()}delete this.needsCenter;if(this.toFrontOnShow){this.toFront()}},fitContainer:function(f){var d=this,c=d.floatParent,a=c?c.getTargetEl():d.container,b=a.getViewSize(),e=c||a.dom!==document.body?[0,0]:a.getXY();b.x=e[0];b.y=e[1];d.setBox(b,f)},privates:{onFloatDestroy:function(){this.clearAlignEl()},clearAlignEl:function(){var a=this;if(a._lastAlignTarget){Ext.un('scroll',a.onAlignToScroll,a);a._lastAlignPos=a._lastAlignTarget=null}},onAlignToScroll:function(e){var b=this,a=b._lastAlignTarget,f=a.isFloating,c,d;if(a){if(a.isComponent){c=a.destroyed;a=a.el}else {if(a.nodeType){a=Ext.fly(a)}d=a.dom;c=!d||Ext.isGarbage(d)}if(c){b.clearAlignEl()}else {if((e.getElement().contains(a)||f)&&!e.getElement().contains(b.el)){b.alignTo(a,b._lastAlignToPos)}}}}}},1,0,0,0,0,0,[Ext.util,'Floating'],0);Ext.cmd.derive('Ext.util.ElementContainer',Ext.Base,{mixinId:'elementCt',config:{childEls:{$value:{},cached:!0,lazy:!0,merge:function(d,f,g,e){var c=f?Ext.Object.chain(f):{},b,a;if(d instanceof Array){for(b=d.length;b--;){a=d[b];if(!e||!(a in c)){if(typeof a==='string'){c[a]={name:a,itemId:a}}else {c[a.name]=a}}}}else {if(d){if(d.constructor===Object){for(b in d){if(!e||!(b in c)){a=d[b];if(a===!0){c[b]={itemId:b}}else {if(typeof a==='string'){c[b]={itemId:a}}else {c[b]=a;if(!('itemId' in a)){a.itemId=b}}}c[b].name=b}}}else {if(!e||!(d in c)){c[d]={name:d,itemId:d}}}}}return c}}},destroy:function(){var c=this,d=c.getChildEls(),a,b;for(b in d){a=c[b];if(a){if(a.destroy){a.component=null;a.destroy()}c[b]=null}}},privates:{addChildEl:function(a){var c=this,b=c.getChildEls();if(!c.hasOwnProperty('childEls')){c.childEls=b=Ext.Object.chain(b)}if(typeof a==='string'){a={name:a,itemId:a}}b[a.name]=a},afterClassMixedIn:function(a){var c=a.prototype,b=c.childEls;if(b){delete c.childEls;a.getConfigurator().add({childEls:b})}},attachChildEls:function(h,n){var i=this,k=i.getChildEls(),e=n||i,m=e.id+'-',l=!e.frame,f,g,b,j,c,a,d;for(f in k){b=k[f];if(l&&b.frame){continue}c=b.select;if(c){a=h.select(c,!0)}else {if(!(c=b.selectNode)){if(!(d=b.id)){d=m+b.itemId;a=Ext.cache[d]}else {a=Ext.cache[d]||h.getById(d)}}else {a=h.selectNode(c,!1)}}if(a){if(a.isElement){a.component=e}else {if(a.isComposite&&!a.isLite){g=a.elements;for(j=g.length;j--;){g[j].component=e}}}}i[f]=a||null}}}},0,0,0,0,0,0,[Ext.util,'ElementContainer'],0);Ext.cmd.derive('Ext.util.Renderable',Ext.Base,{mixinId:'renderable',frameCls:'x-frame',frameIdRegex:/[\-]frame\d+[TMB][LCR]$/,frameElNames:['TL','TC','TR','ML','MC','MR','BL','BC','BR','Table'],frameTpl:['{%this.renderDockedItems(out,values,0);%}','','
    {parent.baseCls}-{parent.ui}-{.}-tl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','
    {parent.baseCls}-{parent.ui}-{.}-ml{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mc{frameElCls}" role="presentation">','{%this.applyRenderTpl(out, values)%}','
    ','
    ','
    ','','
    {parent.baseCls}-{parent.ui}-{.}-bl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-br{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-bc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','{%this.renderDockedItems(out,values,1);%}'],frameTableTpl:['{%this.renderDockedItems(out,values,0);%}','','','','','','','','','','','','','','','','','','','','','','{%this.renderDockedItems(out,values,1);%}'],_renderState:0,ariaEl:'el',_layerCls:'x-layer',_fixedLayerCls:'x-fixed-layer',ariaStaticRoles:{presentation:!0,article:!0,definition:!0,directory:!0,document:!0,img:!0,heading:!0,math:!0,note:!0,banner:!0,complementary:!0,contentinfo:!0,navigation:!0,search:!0,'undefined':!0,'null':!0},statics:{makeRenderSetter:function(c,b){var a=c.name;return function(g){var d=this,f=d.renderConfigs||(d.renderConfigs={}),e=f[b];if(d._renderState>=b){(c.setter||c.getSetter()).call(d,g)}else {if(!e){f[b]=e={}}if(!(a in e)){e[a]=d[a]}d[a]=g}return d}},processRenderConfig:function(g,e,c){var h=this.prototype,j=this.getConfigurator(),k=Ext.util.Renderable,l=k.makeRenderSetter,d=g[e],b,a,i,f;for(i in d){a=Ext.Config.get(i);if(!h[f=a.names.set]){b=a.renderSetter||(a.renderSetter={});h[f]=b[c]||(b[c]=l(a,c))}}delete g[e];j.add(d)}},onClassMixedIn:function(a){var e=a.override,c=this.processRenderConfig,d=function(b){if(b.beforeRenderConfig){this.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){this.processRenderConfig(b,'renderConfig',3)}e.call(this,b)},b=function(e,b){e.override=d;e.processRenderConfig=c;if(b.beforeRenderConfig){e.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){e.processRenderConfig(b,'renderConfig',3)}};b(a,a.prototype);a.onExtended(b)},afterRender:function(){var a=this,c={},i=a.protoEl,g=a.el,d,b,h,f,e;a.finishRenderChildren();a._renderState=4;if(a.contentEl){h='x-';f=h+'hidden-';e=a.contentEl=Ext.get(a.contentEl);e.component=a;e.removeCls([h+'hidden',f+'display',f+'offsets']);a.getContentTarget().appendChild(e.dom)}i.writeTo(c);b=c.removed;if(b){g.removeCls(b)}b=c.cls;if(b.length){g.addCls(b)}b=c.style;if(c.style){g.setStyle(b)}a.protoEl=null;if(!a.ownerCt&&!a.skipLayout){a.updateLayout()}if(!(a.x&&a.y)&&(a.pageX||a.pageY)){a.setPagePosition(a.pageX,a.pageY)}if(a.disableOnRender){a.onDisable()}d=a.controller;if(d&&d.afterRender){d.afterRender(a)}},afterFirstLayout:function(l,k){var a=this,g=a.x,h=a.y,j=a.defaultAlign,i=a.alignOffset,f,d,e,b,c;if(!a.ownerLayout){d=g!==undefined;e=h!==undefined}if(a.floating&&!a.preventDefaultAlign&&(!d||!e)){if(a.floatParent){b=a.floatParent.getTargetEl().getViewRegion();c=a.el.getAlignToXY(a.alignTarget||a.floatParent.getTargetEl(),j,i);b.x=c[0]-b.x;b.y=c[1]-b.y}else {c=a.el.getAlignToXY(a.alignTarget||a.container,j,i);b=a.el.translateXY(c[0],c[1])}g=d?g:b.x;h=e?h:b.y;d=e=!0}if(d||e){a.setPosition(g,h)}a.onBoxReady(l,k);f=a.controller;if(f&&f.boxReady){f.boxReady(a)}},beforeRender:function(){var a=this,d=a.floating,e=a.getComponentLayout(),b=a.userCls,c;a._renderState=1;a.ariaUsesMainElement=a.ariaEl==='el';c=a.controller;if(c&&c.beforeRender){c.beforeRender(a)}a.initBindable();if(a.renderConfigs){a.flushRenderConfigs()}if(a.reference){a.publishState()}if(b){a.addCls(b)}if(d){a.addCls(a.fixed?a._fixedLayerCls:a._layerCls);b=d.cls;if(b){a.addCls(b)}}a.frame=a.frame||a.alwaysFramed;if(!e.initialized){e.initLayout()}a.initOverflow();a.setUI(a.ui)},doApplyRenderTpl:function(d,a){var c=a.$comp,b;if(!c.rendered){b=c.initRenderTpl();b.applyOut(a.renderData,d)}},getElConfig:function(){var a=this,e=a.autoEl,c=a.getFrameInfo(),b={tag:'div',tpl:c?a.initFramingTpl(c.table):a.initRenderTpl()},g=a.layoutTargetCls,d=a.protoEl,f=a.ariaRole,h;a.initStyles(d);if(g&&!c){d.addCls(g)}d.writeTo(b);d.flush();if(e){if(Ext.isString(e)){b.tag=e}else {Ext.apply(b,e)}}if(f&&a.ariaUsesMainElement){b.role=f;if(!a.ariaStaticRoles[f]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}}b.id=a.id;if(b.tpl){if(c){b.tplData=h=a.getFrameRenderData();h.renderData=a.initRenderData()}else {b.tplData=a.initRenderData()}}a.ariaRenderAttributes=null;return b},getInsertPosition:function(a){if(a!==undefined){if(Ext.isNumber(a)){a=this.container.dom.childNodes[a]}else {a=Ext.getDom(a)}}return a},getRenderTree:function(){var a=this,b=null;if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a._renderState=1;a.beforeRender();a.rendering=!0;a._renderState=2;b=a.getElConfig();if(a.el){b.id=a.$pid=Ext.id(null,a.el.identifiablePrefix)}}return b},initRenderData:function(){var a=this,c=a.ariaRole,d,b;d=Ext.apply({$comp:a,id:a.id,ui:a.ui,uiCls:a.uiCls,baseCls:a.baseCls,componentCls:a.componentCls,frame:a.frame,renderScroller:a.touchScroll,scrollerCls:a.scrollerCls,childElCls:''},a.renderData);if(c&&!a.ariaUsesMainElement){b={role:c};if(!a.ariaStaticRoles[c]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}d.ariaAttributes=b}return d},onRender:function(i,h){var a=this,e=a.x,f=a.y,b=null,g=a.el,d,c;a.applyRenderSelectors();a.rendering=null;a.rendered=!0;a._renderState=3;if(a.renderConfigs){a.flushRenderConfigs()}if(e!=null){b={x:e}}if(f!=null){(b=b||{}).y=f}if(!a.getFrameInfo()){d=a.width;c=a.height;if(typeof d==='number'){b=b||{};b.width=d}if(typeof c==='number'){b=b||{};b.height=c}}if(a.touchScroll===1){a.getOverflowEl().disableTouchScroll()}a.lastBox=g.lastBox=b},render:function(c,g){var a=this,b=a.el,f=a.ownerLayout,h,d,e;if(b&&!b.isElement){a.wrapPrimaryEl(b);b=a.el}if(!a.skipLayout){Ext.suspendLayouts()}c=a.initContainer(c);e=a.getInsertPosition(g);if(!b){d=a.getRenderTree();if(f&&f.transformItemRenderTree){d=f.transformItemRenderTree(d)}if(d){if(e){b=Ext.DomHelper.insertBefore(e,d)}else {b=Ext.DomHelper.append(c,d)}a.wrapPrimaryEl(b);a.cacheRefEls(b)}}else {if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a.beforeRender();a.needsRenderTpl=a.rendering=!0;a._renderState=2;a.initStyles(b);if(a.allowDomMove!==!1){if(e){c.dom.insertBefore(b.dom,e)}else {c.dom.appendChild(b.dom)}}}else {h=!0}}if(b&&!h){a.finishRender(g)}if(!a.skipLayout){Ext.resumeLayouts(!a.hidden&&!c.isDetachedBody)}},ensureAttachedToBody:function(c){var a=this,b;while(a.ownerCt){a=a.ownerCt}if(a.container.isDetachedBody){a.container=b=Ext.getBody();b.appendChild(a.el.dom);if(c){a.updateLayout()}if(typeof a.x==='number'||typeof a.y==='number'){a.setPosition(a.x,a.y)}}},privates:{applyRenderSelectors:function(){var a=this,b=a.renderSelectors,e=a.el,d,c;a.attachChildEls(e);a.ariaEl=a[a.ariaEl]||a.el;if(b){for(c in b){d=b[c];if(d){a[c]=e.selectNode(d,!1)}}}},cacheRefEls:function(a){a=a||this.el;var e=Ext.cache,h=Ext.dom.Element,f=a.isElement?a.dom:a,d=f.querySelectorAll('[data-ref]'),g=d.length,c,b;for(b=0;b','
    ','','{%this.renderContent(out,values)%}','
    '],resizeHandles:'all',shrinkWrap:2,toFrontOnShow:!0,synthetic:!1,tplWriteMode:'overwrite',ui:'default',uiCls:[],userCls:null,weight:null,allowDomMove:!0,autoGenId:!1,borderBoxCls:'x-border-box',componentLayoutCounter:0,contentPaddingProperty:'padding',deferLayouts:!1,frameSize:null,horizontalPosProp:'left',isComponent:!0,_isLayoutRoot:!1,layoutSuspendCount:0,liquidLayout:!1,maskOnDisable:!0,offsetsCls:'x-hidden-offsets',rendered:!1,rootCls:'x-body',scrollerCls:'x-scroll-scroller',scrollerSelector:'.x-scroll-scroller',_scrollFlags:{auto:{auto:{overflowX:'auto',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'auto',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'auto',overflowY:'scroll',x:!0,y:!0,both:!0}},'false':{auto:{overflowX:'hidden',overflowY:'auto',x:!1,y:!0,both:!1},'false':{overflowX:'hidden',overflowY:'hidden',x:!1,y:!1,both:!1},scroll:{overflowX:'hidden',overflowY:'scroll',x:!1,y:!0,both:!1}},scroll:{auto:{overflowX:'scroll',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'scroll',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'scroll',overflowY:'scroll',x:!0,y:!0,both:!0}},none:{overflowX:'',overflowY:'',x:!1,y:!1,both:!1}},_scrollableCfg:{x:{x:!0,y:!1},y:{x:!1,y:!0},horizontal:{x:!0,y:!1},vertical:{x:!1,y:!0},both:{x:!0,y:!0},'true':{x:!0,y:!0}},validIdRe:Ext.validIdRe,constructor:function(b){var a=this,e,j,i,h,g,c,d,f;b=b||{};if(b.initialConfig){if(b.isAction){a.baseAction=b}b=b.initialConfig}else {if(b.tagName||b.dom||Ext.isString(b)){b={applyTo:b,id:b.id||b}}}a.initialConfig=b;a.getId();a.protoEl=new Ext.util.ProtoElement();a.initConfig(b);if(a.scrollable==null){g=a.autoScroll;if(g){f=!!g}else {c=a.overflowX;d=a.overflowY;if(c||d){f={x:c&&c!=='hidden'?c:!1,y:d&&d!=='hidden'?d:!1}}}if(f){a.setScrollable(f)}}i=a.xhooks;if(i){delete a.xhooks;Ext.override(a,i)}a.mixins.elementCt.constructor.call(a);a.setupProtoEl();if(a.cls){a.initialCls=a.cls;a.protoEl.addCls(a.cls)}if(a.style){a.initialStyle=a.style;a.protoEl.setStyle(a.style)}a.renderData=a.renderData||{};a.initComponent();if(!a.preventRegister){Ext.ComponentManager.register(a)}a.mixins.state.constructor.call(a);a.addStateEvents('resize');h=a.getController();if(h){h.init(a)}if(a.plugins){for(e=0,j=a.plugins.length;eh){o=j;f=!0}if(e&&k>i){p=k;f=!0}if(d||e){g=a.el.getStyle('overflow');if(g!=='hidden'){a.el.setStyle('overflow','hidden')}}if(f){r=!Ext.isNumber(a.width);q=!Ext.isNumber(a.height);a.setSize(p,o);a.el.setSize(i,h);if(r){delete a.width}if(q){delete a.height}}if(e){c.width=k}if(d){c.height=j}}n=a.constrain;l=a.constrainHeader;if(n||l){a.constrain=a.constrainHeader=!1;m=b.callback;b.callback=function(){a.constrain=n;a.constrainHeader=l;if(m){m.call(b.scope||a,arguments)}if(g!=='hidden'){a.el.setStyle('overflow',g)}}}return a.mixins.animate.animate.apply(a,arguments)},applyScrollable:function(a,c){var b=this,f=b.rendered,e,d;if(a){if(a===!0||typeof a==='string'){e=b._scrollableCfg[a];a=e}if(c){c.setConfig(a);a=c}else {a=Ext.Object.chain(a);if(f){a.element=b.getOverflowEl();d=b.getScrollerEl();if(d){a.innerElement=d}}a.autoRefresh=!1;if(Ext.supports.touchScroll===1){a.translatable={translationMethod:'scrollparent'};a.indicators=!1}a=Ext.scroll.Scroller.create(a);a.component=b}}else {if(c){c.setConfig({x:!1,y:!1});c.destroy();a=null}}if(b.rendered&&!b.destroying&&!b.destroyed){if(a){b.getOverflowStyle()}else {b.scrollFlags=b._scrollFlags.none}b.updateLayout()}return a},beforeComponentLayout:function(){return !0},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(a,b,f){var d=this,c=null,e,g,h,i;if(a){if(Ext.isNumber(e=a[0])){f=b;b=a[1];a=e}else {if((e=a.x)!==undefined){f=b;b=a.y;a=e}}}if(d.constrain||d.constrainHeader){c=d.calculateConstrainedPosition(null,[a,b],!0);if(c){a=c[0];b=c[1]}}g=a!==undefined;h=b!==undefined;if(g||h){d.x=a;d.y=b;i=d.adjustPosition(a,b);c={x:i.x,y:i.y,anim:f,hasX:g,hasY:h}}return c},beforeShow:Ext.emptyFn,bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.getBubbleTarget()}return this},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},cloneConfig:function(a){a=a||{};var d=a.id||Ext.id(),c=Ext.applyIf(a,this.initialConfig),b;c.id=d;b=Ext.getClass(this);return new b(c)},destroy:function(){var a=this,d=a.renderSelectors,f=a.getConfig('viewModel',!0),g=a.getConfig('session',!0),b,c,e;if(!a.hasListeners.beforedestroy||a.fireEvent('beforedestroy',a)!==!1){a.isDestroying=a.destroying=!0;c=a.floatParent||a.ownerCt;if(a.floating){delete a.floatParent;if(a.zIndexManager){a.zIndexManager.unregister(a);a.zIndexManager=null}}a.removeBindings();a.beforeDestroy();a.destroyBindable();if(c&&c.remove){c.remove(a,!1)}a.stopAnimation();a.onDestroy();Ext.destroy(a.plugins);if(a.rendered){Ext.Component.cancelLayout(a,!0)}a.componentLayout=null;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}if(!a.preventRegister){Ext.ComponentManager.unregister(a)}a.mixins.state.destroy.call(a);if(a.floating){a.onFloatDestroy()}a.clearListeners();if(a.rendered){if(!a.preserveElOnDestroy){a.el.destroy()}a.el.component=null;a.mixins.elementCt.destroy.call(a);if(d){for(b in d){if(d.hasOwnProperty(b)){e=a[b];if(e){delete a[b];e.destroy()}}}}a.data=a.el=a.frameBody=a.rendered=a.afterRenderEvents=null;a.tpl=a.renderTpl=a.renderData=null;a.focusableContainer=a.container=a.scrollable=null}a.isDestroying=a.destroying=!1;a.callParent()}},disable:function(e,d){var a=this,b=a.focusableContainer,c=a.getInherited();if(!d){c.disabled=!0;a.savedDisabled=!0}if(a.maskOnDisable){c.disableMask=!0}if(!a.disabled){if(b){b.beforeFocusableChildDisable(a)}a.addCls(a.disabledCls);if(a.rendered){a.onDisable()}else {a.disableOnRender=!0}a.disabled=!0;if(e!==!0){a.fireEvent('disable',a)}if(b){b.onFocusableChildDisable(a)}}return a},doFireEvent:function(c,d,e){var a=this,b=a.mixins.observable.doFireEvent.call(a,c,d,e);if(b!==!1){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,d)}return b},enable:function(e,c){var a=this,b=a.focusableContainer,d=a.getInherited();if(!c){delete a.getInherited().disabled;a.savedDisabled=!1}if(a.maskOnDisable){delete d.disableMask}if(a.disabled){if(!(c&&d.hasOwnProperty('disabled'))){if(b){b.beforeFocusableChildEnable(a)}a.disableOnRender=!1;a.removeCls(a.disabledCls);if(a.rendered){a.onEnable()}a.disabled=!1;if(e!==!0){a.fireEvent('enable',a)}if(b){b.onFocusableChildEnable(a)}}}return a},findParentBy:function(b){var a;for(a=this.getRefOwner();a&&!b(a,this);a=a.getRefOwner()){}return a||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.constructor===a}):this.up(a)},findPlugin:function(c){var a,b=this.plugins,d=b&&b.length;for(a=0;a-1;e--){b=g[e];if(b.query){a=b.query(c);a=a[a.length-1];if(a){return a}}if(b.is(c)){return b}}return f.previousNode(c,!0)}return null},previousSibling:function(c){var e=this.ownerCt,b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.getAt(--a)}}}}return null},registerFloatingItem:function(b){var a=this;if(!a.floatingDescendants){a.floatingDescendants=new Ext.ZIndexManager(a)}a.floatingDescendants.register(b)},removeCls:function(c){var a=this,b=a.rendered?a.el:a.protoEl;b.removeCls.apply(b,arguments);return a},removeClsWithUI:function(a,k){var b=this,d=[],e=0,g=Ext.Array,i=g.remove,j=b.uiCls=g.clone(b.uiCls),f=b.activeUI,h,c;if(typeof a==='string'){a=a.indexOf(' ')<0?[a]:Ext.String.splitWords(a)}h=a.length;for(e=0;e1){arguments[0]=null;a.pendingShow=arguments}else {a.pendingShow=!0}}else {if(b&&a.isVisible()){if(a.floating){a.onFloatShow()}}else {if(a.fireEvent('beforeshow',a)!==!1){a.hidden=!1;delete this.getInherited().hidden;Ext.suspendLayouts();if(!b&&(a.autoRender||a.floating)){a.doAutoRender();b=a.rendered}if(b){a.beforeShow();Ext.resumeLayouts();a.onShow.apply(a,arguments);a.afterShow.apply(a,arguments)}else {Ext.resumeLayouts(!0)}}else {a.onShowVeto()}}}return a},showAt:function(b,c,d){var a=this;if(!a.rendered&&(a.autoRender||a.floating)){a.x=b;a.y=c;return a.show()}if(a.floating){a.setPosition(b,c,d)}else {a.setPagePosition(b,c,d)}return a.show()},showBy:function(b,d,c){var a=this;if(a.floating&&b){a.alignTarget=b;if(d){a.defaultAlign=d}if(c){a.alignOffset=c}a.show();if(!a.hidden){a.alignTo(b,d||a.defaultAlign,c||a.alignOffset)}}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=!0}},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(!1)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){d++;if(c.isComponent){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},update:function(b,i,k,j){var a=this,h=a.tpl&&!Ext.isString(b),g=a.getScrollable(),f=a.focusableContainer,e,c,d;if(h){a.data=b&&b.isEntity?b.getData(!0):b}else {a.html=Ext.isObject(b)?Ext.DomHelper.markup(b):b}if(a.rendered){e=a.getSizeModel();c=e.width.shrinkWrap||e.height.shrinkWrap;if(a.isContainer){d=a.layout.getRenderTarget();c=c||a.items.items.length>0}else {d=a.touchScroll?a.getScrollerEl():a.getTargetEl()}if(h){a.tpl[a.tplWriteMode](d,a.data||{})}else {d.setHtml(a.html,i,k,j||a)}if(c){a.updateLayout()}if(g){g.refresh(!0)}if(f){f.onFocusableChildUpdate(a)}}},setHtml:function(c,a,b){this.update(c,a,null,b)},applyData:function(a){this.update(a)},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},_asLayoutRoot:{isRoot:!0},_notAsLayoutRoot:{isRoot:!1},updateLayout:function(b){var a=this,e,d=a.lastBox,c=b&&b.isRoot;if(d){d.invalid=!0}if(!a.rendered||a.layoutSuspendCount||a.suspendLayout){return}if(a.hidden){Ext.Component.cancelLayout(a)}else {if(typeof c!=='boolean'){c=a.isLayoutRoot()}}if(c||!a.ownerLayout||!a.ownerLayout.onContentChange(a)){if(!a.isLayoutSuspended()){e=b&&b.hasOwnProperty('defer')?b.defer:a.deferLayouts;Ext.Component.updateLayout(a,e)}}},updateMaxHeight:function(b,a){this.changeConstraint(b,a,'min','max-height','height')},updateMaxWidth:function(b,a){this.changeConstraint(b,a,'min','max-width','width')},updateMinHeight:function(b,a){this.changeConstraint(b,a,'max','min-height','height')},updateMinWidth:function(b,a){this.changeConstraint(b,a,'max','min-width','width')},getAnchorToXY:function(d,a,c,b){return d.getAnchorXY(a,c,b)},getBorderPadding:function(){return this.el.getBorderPadding()},getLocalX:function(){return this.el.getLocalX()},getLocalXY:function(){return this.el.getLocalXY()},getLocalY:function(){return this.el.getLocalY()},getX:function(){return this.el.getX()},getXY:function(){return this.el.getXY()},getY:function(){return this.el.getY()},setLocalX:function(a){this.el.setLocalX(a)},setLocalXY:function(a,b){this.el.setLocalXY(a,b)},setLocalY:function(a){this.el.setLocalY(a)},setX:function(b,a){this.el.setX(b,a)},setXY:function(b,a){this.el.setXY(b,a)},setY:function(b,a){this.el.setY(b,a)},privates:{addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},addUIToElement:function(){var a=this,d=a.baseCls+'-'+a.ui,e,c,f,b;a.addCls(d);if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){f=a[c];if(f){f.addCls(d+b)}}}}},changeConstraint:function(b,g,f,c,d){var a=this,e=a[d];if(b!=null&&typeof e==='number'){a[d]=Math[f](e,b)}if(a.liquidLayout){if(b!=null){a.setStyle(c,b+'px')}else {if(g){a.setStyle(c,'')}}}if(a.rendered){a.updateLayout()}},constructPlugin:function(a){var b=this;if(typeof a==='string'){a=Ext.PluginManager.create({},a,b)}else {a=Ext.PluginManager.create(a,null,b)}return a},constructPlugins:function(){var d=this,a=d.plugins,c,b,e;if(a){c=[];c.processed=!0;if(!Ext.isArray(a)){a=[a]}for(b=0,e=a.length;b=0){h=m[c].splitterDelta;if(e.getAt(d+h)!==b){e.remove(b);d=e.indexOf(a);if(h>0){++d}e.insert(d,b)}}}if(j){if(l){a.expand(!1)}i.remove(j);a.placeholder=null;if(l){a.collapse(null,!1)}}i.updateLayout();Ext.resumeLayouts(!0);a.fireEventArgs('changeregion',[a,g])}else {a.region=c}}return g},setWeight:function(b){var a=this,e=a.getOwningBorderContainer(),d=a.placeholder,c=a.weight;if(b!==c){if(a.fireEventArgs('beforechangeweight',[a,b])!==!1){a.weight=b;if(d){d.weight=b}if(e){e.updateLayout()}a.fireEventArgs('changeweight',[a,c])}}return c}},function(b){var a=b.prototype;a.setBorderRegion=a.setRegion;a.setRegionWeight=a.setWeight});Ext.define('Ext.theme.neptune.Component',{override:'Ext.Component',initComponent:function(){arguments.callee.$previous.call(this);if(this.dock&&this.border===undefined){this.border=!1}},privates:{initStyles:function(){var a=this,b=a.hasOwnProperty('border'),c=a.border;if(a.dock){a.border=null}arguments.callee.$previous.apply(this,arguments);if(b){a.border=c}else {delete a.border}}}},function(){Ext.namespace('Ext.theme.is').Neptune=!0;Ext.theme.name='Neptune'});Ext.define('Ext.theme.crisp.Component',{override:'Ext.Component'},function(){Ext.namespace('Ext.theme.is').Crisp=!0;Ext.theme.name='Crisp'});Ext.define('Ext.overrides.app.domain.Component',{override:'Ext.app.domain.Component'},function(a){a.monitor(Ext.Component)});Ext.cmd.derive('Ext.app.EventBus',Ext.Base,{singleton:!0,constructor:function(){var a=this,b=Ext.app.EventDomain.instances;a.callParent();a.domains=b;a.bus=b.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(b,c){var d=this.domains,a;for(a in b){if(b.hasOwnProperty(a)){d[a].listen(b[a],c)}}},unlisten:function(c){var a=Ext.app.EventDomain.instances,b;for(b in a){a[b].unlisten(c)}}},1,0,0,0,0,0,[Ext.app,'EventBus'],0);Ext.cmd.derive('Ext.app.domain.Global',Ext.app.EventDomain,{singleton:!0,type:'global',constructor:function(){var a=this;a.callParent();a.monitor(Ext.GlobalEvents)},listen:function(b,a){this.callParent([{global:b},a])},match:Ext.returnTrue},1,0,0,0,0,0,[Ext.app.domain,'Global'],0);Ext.cmd.derive('Ext.app.BaseController',Ext.Base,{isController:!0,config:{id:null,control:null,listen:null,routes:null,before:null},constructor:function(b){var a=this;Ext.apply(a,b);delete a.control;delete a.listen;a.eventbus=Ext.app.EventBus;a.mixins.observable.constructor.call(a,b);a.ensureId()},applyListen:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},applyControl:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},updateControl:function(a){this.ensureId();if(a){this.control(a)}},updateListen:function(a){this.ensureId();if(a){this.listen(a)}},updateRoutes:function(b){if(b){var e=this,f=e.getBefore()||{},g=Ext.app.route.Router,c,a,d;for(c in b){a=b[c];if(Ext.isString(a)){a={action:a}}d=a.action;if(!a.before){a.before=f[d]}g.connect(c,a,e)}}},isActive:function(){return !0},control:function(b,c,f){var e=this,d=f,a;if(Ext.isString(b)){a={};a[b]=c}else {a=b;d=c}e.eventbus.control(a,d||e)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var a=this,b=a.eventbus;Ext.app.route.Router.disconnectAll(a);if(b){b.unlisten(a);a.eventbus=null}a.callParent()},redirectTo:function(a,c){if(a.isModel){a=a.toUrl()}if(!c){var b=Ext.util.History.getToken();if(b===a){return !1}}else {Ext.app.route.Router.onStateChange(a)}Ext.util.History.add(a);return !0}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.app,'BaseController'],0);Ext.cmd.derive('Ext.app.Util',Ext.Base,{},0,0,0,0,0,0,[Ext.app,'Util'],function(){Ext.apply(Ext.app,{namespaces:{Ext:{}},addNamespaces:function(a){var d=Ext.app.namespaces,b,c;if(!Ext.isArray(a)){a=[a]}for(b=0,c=a.length;bb.length&&a+'.'===d.substring(0,a.length+1)){b=a}}return b===''?undefined:b},setupPaths:function(e,b,c){var a=Ext.manifest,d;if(e&&b!==null){a=a&&a.paths;if(!a||b!==undefined){Ext.Loader.setPath(e,b===undefined?'app':b)}}if(c){for(d in c){if(c.hasOwnProperty(d)){Ext.Loader.setPath(d,c[d])}}}}});Ext.getNamespace=Ext.app.getNamespace});Ext.cmd.derive('Ext.util.CollectionKey',Ext.Base,{isCollectionKey:!0,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:!0},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(i,b){var j=this.map||this.getMap(),c=j[i],e=this.getCollection(),h=e.length,d,a,f,g;if(!c){return -1}if(b===undefined){b=-1}if(c instanceof Array){f=c;a=h;for(g=f.length;g-->0;){d=e.indexOf(f[g]);if(db){a=d}}if(a===h){return -1}}else {a=e.indexOf(c)}return a>b?a:-1},updateKey:function(e,d){var f=this,c=f.map,a,b;if(c){a=c[d];if(a instanceof Array){b=Ext.Array.indexOf(a,e);if(b>=0){if(a.length>2){a.splice(b,1)}else {c[d]=a[1-b]}}}else {if(a){delete c[d]}}f.add([e])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(a,b){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(g,h){var a=this,f=a.map,d=h.items,c=d.length,b,i,e;if(f){if(a.getUnique()&&cb?1:a0&&a.getAutoSort(),r=a.getSource(),q=0,g=!1,o=!1,e,l,k,m,b,d;if(r&&!r.updating){r.itemChanged(c,p,f,u)}else {l=a.getKey(c);if(s){b=a.indexOfKey(j?f:l);o=b<0;g=a.isItemFiltered(c);n=o!==g}if(n){if(g){q=[c];d=-1}else {m=[c];d=a.length}}else {if(v&&!g){if(!s){b=a.indexOfKey(j?f:l)}k=a.getSortFn();if(b!==-1){if(b&&k(i[b-1],i[b])>0){h=-1;d=Ext.Array.binarySearch(i,c,0,b,k)}else {if(b0){h=1;d=Ext.Array.binarySearch(i,c,b+1,k)}}if(h){m=[c]}}}}e={item:c,key:l,index:d,filterChanged:n,keyChanged:j,indexChanged:!!h,filtered:g,oldIndex:b,newIndex:d,wasFiltered:o,meta:u};if(j){e.oldKey=f}if(p){e.modified=p}a.beginUpdate();a.notify('beforeitemchange',[e]);if(j){a.updateKey(c,f)}if(m||q){a.splice(d,q,m)}if(h>0){e.newIndex--}else {if(h<0){e.oldIndex++}}a.notify(g?'filtereditemchange':'itemchange',[e]);a.endUpdate()}},remove:function(d){var a=this,c=a.decodeRemoveItems(arguments,0),b=a.length;a.splice(0,c);return b-a.length},removeAll:function(){var a=this,b=a.length;if(a.generation&&b){a.splice(0,b)}return a},removeAt:function(j,f){var a=this,e=a.length,i=Ext.Number,g=i.clipIndices(e,[j,f===undefined?1:f],i.Clip.COUNT),c=g[0],d=g[1]-c,h=d===1&&a.getAt(c),b;a.splice(c,d);b=a.length-e;return h&&b?h:b},removeByKey:function(b){var a=this.getByKey(b);if(!a||!this.remove(a)){return !1}return a},replace:function(a){var b=this.indexOf(a);if(b===-1){this.add(a)}else {this.insert(b,a)}},splice:function(K,E,L){var b=this,D=b.sorted&&b.getAutoSort(),F=b.map,o=b.items,r=b.length,n=E instanceof Array?b.decodeRemoveItems(E):null,G=!n,J=Ext.Number,I=J.clipIndices(r,[K,G?E:0],J.Clip.COUNT),m=I[0],v=I[1],x=v-m,p=b.decodeItems(arguments,2),h=p?p.length:0,c,A,C,d=m,k=b.indices||(h||n?b.getIndices():null),e=null,i=x?[m]:null,l=null,t=b.getSource(),j,B,z,a,u,g,w,f,s,q,y,H,v;if(t&&!t.updating){if(G){n=[];for(a=0;a1){if(!c.$cloned){p=c=c.slice(0)}b.sortData(c)}}for(a=0;a0;){f=b.getKey(n[a]);if((g=k[f])!==undefined){(i||(i=[])).push(g)}}if(!e&&!i){return b}b.beginUpdate();if(i){j=null;z=[];C={};if(i.length>1){i.sort(Ext.Array.numericSortFn)}for(a=0,q=i.length;aj.at+B.length){z.push(j={at:g,items:B=[],keys:s=[],map:C,next:j,replacement:e});if(e){e.replaced=j}}B.push(C[f]=u);s.push(f);if(g1&&g===m){--x;i[a--]=++m}}if(e){e.at=d}for(w=z.length;w-->0;){j=z[w];a=j.at;q=j.items.length;if(a+q1&&r){b.spliceMerge(c,l)}else {if(D){if(h>1){d=0;b.indices=k=null}else {d=H.findInsertionIndex(e.items[0],o,b.getSortFn())}}if(d===r){v=d;for(a=c.length-1;a>=0;--a){o[v+a]=c[a]}k=b.indices;if(k){for(a=0;a-1){c=e[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(l,i){var a=this,j=i.atItem,d=i.items,h=a.requestedIndex,c,b,e,f,g,k;if(!a.sorted){if(h!==undefined){b=h}else {if(j){b=a.indexOf(j);if(b===-1){b=a.findInsertIndex(d[0])}else {++b}}else {b=0}}}if(a.getAutoFilter()&&a.filtered){for(f=0,k=d.length;fc)){c=a}}return [c,b]},count:function(a){return a.length},extremes:function(k,j,l,i,f){var e=null,d=null,c,b,g,h,a;for(c=j;ch)){h=a;d=b}}return [d,e]},max:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[1]},maxItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[1]},min:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[0]},minItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[0]},sum:function(g,f,h,e,c){for(var a,d=0,b=f;b1){Ext.Array.sort(a,b.prioritySortFn)}},prioritySortFn:function(a,b){var c=a.observerPriority||0,d=b.observerPriority||0;return c-d},applyExtraKeys:function(e,g){var d=this,f=g||{},b,c,a;for(c in e){a=e[c];if(!a.isCollectionKey){b={collection:d};if(Ext.isString(a)){b.property=a}else {b=Ext.apply(b,a)}a=new Ext.util.CollectionKey(b)}else {a.setCollection(d)}f[c]=d[c]=a;a.name=c}return f},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,'Ext.util.Grouper')}return a},decodeItems:function(e,d){var g=this,a=d===undefined?e:e[d],b,f,c;if(!a||!a.$cloned){b=e.length>d+1||!Ext.isIterable(a);if(b){a=Ext.Array.slice(e,d);if(a.length===1&&a[0]===undefined){a.length=0}}f=g.getDecoder();if(f){if(!b){a=a.slice(0);b=!0}for(c=a.length;c-->0;){if((a[c]=f.call(g,a[c]))===!1){a.splice(c,1)}}}if(b){a.$cloned=!0}}return a},getIndices:function(){var a=this,c=a.indices,d=a.items,f=d.length,b,e;if(!c){a.indices=c={};++a.indexRebuilds;for(b=0;b0;if(d||c){b.filtered=c;b.onFilterChange(a)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==!1){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(c,b,d){var a=this.getSorters();a.addSort.apply(a,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify('beforesort',[a.getSorters(!1)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify('sort')},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(c,b,a){if(!b){b=this.items}if(!a){a=this.getSortFn()}return Ext.Array.binarySearch(b,c,a)},applySorters:function(a,b){if(a==null||a&&a.isSorterCollection){return a}if(a){if(!b){b=this.getSorters()}b.splice(0,b.length,a)}return b},createSortFn:function(){var d=this,b=d.getGrouper(),c=d.getSorters(!1),a=c?c.getSortFn():null;if(!b){return a}return function(d,e){var c=b.sort(d,e);if(!c&&a){c=a(d,e)}return c}},updateGrouper:function(c){var a=this,b=a.getGroups(),e=a.getSorters(),d;a.onSorterChange();a.grouped=!!c;if(c){if(a.getTrackGroups()){if(!b){b=new Ext.util.GroupCollection({itemRoot:a.getRootProperty()});b.$groupable=a;a.setGroups(b)}b.setGrouper(c);d=!0}}else {if(b){a.removeObserver(b);b.destroy()}a.setGroups(null)}if(!e.updating){a.onEndUpdateSorters(e)}if(d){b.onCollectionRefresh(a)}},updateSorters:function(b,c){var a=this;if(c){c.un('endupdate','onEndUpdateSorters',a)}if(b){b.on({endupdate:'onEndUpdateSorters',scope:a,priority:a.$endUpdatePriority});b.$sortable=a}a.onSorterChange();a.onEndUpdateSorters(b)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(b){var a=this,d=a.sorted,c=a.grouped&&a.getAutoGroup()||b&&b.length>0;if(d||c){a.sorted=!!c;a.onSortChange(b)}},removeObserver:function(b){var a=this.observers;if(a){Ext.Array.remove(a,b)}},spliceMerge:function(i,q){var f=this,r=f.map,k=i.length,g=0,n=f.items,m=n.length,h=[],c=0,a=[],p=f.getSortFn(),l,j,d,b,o,e;f.items=a;for(e=0;e1){h[c-2].next=h[c-1]}for(;e1){h[c-2].next=h[c-1]}a.push(b);for(j=e+1;j=0){break}a.push(b);l.push(b)}}for(;g0)}e=j.createAssociationStore(i,f,b,h);e.$source=q;if(!b&&(j.autoLoad||a)){n=!0}f[m]=e}if(a){if(n||e.isLoading()){e.on('load',function(h,i,e,g){d=[h,g];c=c||a.scope||f;if(e){Ext.callback(a.success,c,d)}else {Ext.callback(a.failure,c,d)}d.push(e);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)},null,{single:!0})}else {d=[e,null];c=c||a.scope||f;Ext.callback(a.success,c,d);d.push(!0);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)}}if(n&&!e.isLoading()){e.load()}return e},getAssociatedItem:function(b){var a=this.isMany?this.getStoreName():this.getInstanceName();return b[a]||null},onDrop:Ext.emptyFn,getReaderRoot:function(){var a=this;return a.associationKey||(a.associationKey=a.association.schema.getNamer().readerRoot(a.role))},getReader:function(){var b=this,a=b.reader,d=b.cls,c=!b.associationKey,e=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:e,useSimpleAccessors:c,type:b.defaultReaderType});a=b.reader=Ext.createByAlias('reader.'+a.type,a)}return a},getInstanceName:function(){var a=this;return a.instanceName||(a.instanceName=a.association.schema.getNamer().instanceName(a.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName='$old'+this.getInstanceName())},getStoreName:function(){var a=this;return a.storeName||(a.storeName=a.association.schema.getNamer().storeName(a.role))},constructReader:function(h){var b=this,a=b.getReader(),e=b.cls,g=!b.associationKey,f=b.getReaderRoot(),c,d;if(!a){d=e.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(f)}else {a=new h.self({model:e,useSimpleAccessors:g,rootProperty:f})}b.reader=a}return a},read:function(f,e,d,c){var a=this.constructReader(d),b=a.getRoot(e);if(b){return a.readRecords(b,c,this._internalReadOptions)}},getCallbackOptions:function(a,c,b){if(typeof a==='function'){a={callback:a,scope:c||b}}else {if(a){a=Ext.apply({},a);a.scope=c||a.scope||b}}return a},doGetFK:function(d,b,f){var i=this,l=i.cls,j=i.association.getFieldName(),h=i.getInstanceName(),a=d[h],m=b&&b.reload,e=a!==undefined&&!m,k=d.session,c,g;if(!e){if(k){c=d.get(j);if(c||c===0){e=k.peekRecord(l,c,!0)&&!m;a=k.getRecord(l,c,!1)}else {e=!0;d[h]=a=null}}else {if(j){c=d.get(j);if(!c&&c!==0){e=!0;d[h]=a=null}else {if(!a){a=l.createWithId(c)}}}else {e=!0}}}else {if(a){e=!a.isLoading()}}if(e){if(b){g=[a,null];f=f||b.scope||d;Ext.callback(b.success,f,g);g.push(!0);Ext.callback(b,f,g);Ext.callback(b.callback,f,g)}}else {d[h]=a;b=i.getCallbackOptions(b,f,d);a.load(b)}return a},doSetFK:function(a,c,e,l){var f=this,i=f.association.getFieldName(),h=f.getInstanceName(),b=a[h],d=f.inverse,j=d.setterName,m=a.session,k,g;if(c&&c.isEntity){if(b!==c){g=f.getOldInstanceName();a[g]=b;a[h]=c;if(b&&b.isEntity){b[d.getInstanceName()]=undefined}if(i){a.set(i,c.getId())}delete a[g];if(j){c[j](a)}}}else {k=a.changingKey&&!d.isMany||a.set(i,c);if(k&&b&&b.isEntity&&!b.isEqual(b.getId(),c)){a[h]=undefined;if(!d.isMany){b[d.getInstanceName()]=undefined}}}if(e){if(Ext.isFunction(e)){e={callback:e,scope:l||a}}return a.save(e)}}},1,0,0,0,0,0,[Ext.data.schema,'Role'],0);Ext.cmd.derive('Ext.data.schema.Association',Ext.Base,{isOneToOne:!1,isManyToOne:!1,isManyToMany:!1,owner:null,field:null,constructor:function(d){var a=this,c,b;Ext.apply(a,d);a.left=c=new a.Left(a,a.left);a.right=b=new a.Right(a,a.right);c.inverse=b;b.inverse=c},hasField:function(){return !!this.field},getFieldName:function(){var a=this.field;return a?a.name:''}},1,0,0,0,0,0,[Ext.data.schema,'Association'],0);Ext.cmd.derive('Ext.data.schema.OneToOne',Ext.data.schema.Association,{isOneToOne:!0,isToOne:!0,kind:'one-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',onDrop:function(a,c){var b=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(b){b[this.inverse.getInstanceName()]=null}},createGetter:function(){var a=this;return function(){return a.doGet(this)}},createSetter:function(){var a=this;return function(b){return a.doSet(this,b)}},doGet:function(a){var c=this.getInstanceName(),b=a[c],d=a.session;if(!b&&d){}return b||null},doSet:function(a,b){var d=this.getInstanceName(),e=a[d],c=this.inverse.setterName;if(e!==b){a[d]=b;if(c){b[c](a)}}return e},read:function(a,g,f,e){var c=this,d=c.callParent([a,g,f,e]),b;if(d){b=d[0];if(b){b[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=b;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(d,b,c){return a.doSetFK(this,d,b,c)}},onDrop:function(c,f){var b=this,e=b.association.field,a=b.getAssociatedItem(c),d;if(b.inverse.owner){if(f){d=c.get(e.name);if(d||d===0){a=f.getEntry(b.cls,d).record;if(a){a.drop()}}}else {if(a){a.drop()}}}if(e){c.set(e.name,null)}c[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(b,f,c){var a=this,e=b[a.getOldInstanceName()]||a.getAssociatedItem(b),h=c||c===0,d=a.getInstanceName(),g=a.cls;b.changingKey=!0;a.doSetFK(b,c);if(!h){b[d]=null}else {if(f&&g){b[d]=f.peekRecord(g,c)||undefined}}if(a.inverse.owner&&e){a.association.schema.queueKeyCheck(e,a)}b.changingKey=!1},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(a,o,n,m){var f=this,l=f.callParent([a,o,n,m]),b,d,g,c,k,h,j,i,e;if(l){b=l[0];d=f.association.field;if(d){g=d.name}c=a.session;e=a.data;if(b){if(c){k=c.getRefs(b,this.inverse,!0);i=k&&k[a.id]||e[g]===undefined}else {i=!0}if(i){if(d){j=e[g];h=b.id;if(j!==h){e[g]=h;if(c){c.updateReference(a,d,h,j)}}}b[f.inverse.getInstanceName()]=a;a[f.getInstanceName()]=b}delete e[f.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,'OneToOne'],0);Ext.cmd.derive('Ext.data.schema.ManyToOne',Ext.data.schema.Association,{isManyToOne:!0,isToOne:!0,kind:'many-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,onDrop:function(d,f){var b=this,e=b.getAssociatedItem(d),a,g,c,i,h;if(e){a=e.removeAll();if(a&&b.inverse.owner){for(c=0,g=a.length;c0){a=c[h];e=!a.isEqual(l,a.get(i));b=f?null:d;if(e!==f){a.changingKey=!0;a[k](b);a.changingKey=!1}else {a[j]=b}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',onDrop:function(a,c){var b=this.association.field;if(b){a.set(b.name,null)}a[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(c,b){var d=this.association.field,a;a=this.getSessionStore(c,b.get(d.name));if(a&&!a.contains(b)){a.add(b)}},onValueChange:function(b,f,d,l){var c=this,j=c.getInstanceName(),m=c.cls,i,g,a,h,n,e,k;if(!b.changingKey){i=d||d===0;if(!i){b[j]=null}if(f){a=c.getSessionStore(f,l);if(a){a.remove(b)}if(i){a=c.getSessionStore(f,d);if(a&&!a.isLoading()){a.add(b)}if(m){k=f.peekRecord(m,d)}b[j]=k||undefined}}else {g=b.joined;if(g){for(h=0,n=g.length;h=0){a.remove([b])}}else {if(b<0){d=a.getSession().getEntry(this.type,e);c=d&&d.record;if(c){a.add(c)}}}a.matrixUpdate=0}},adoptAssociated:function(e,d){var a=this.getAssociatedItem(e),c,b,f;if(a){a.setSession(d);this.onStoreCreate(a,d,e.getId());c=a.getData().items;for(b=0,f=c.length;b1){a[b]=this.apply('capitalize',a[b])}return a.join('')},getterName:function(a){var b=a.role;if(a&&a.isMany){return b}return 'get'+this.apply('capitalize',b)},inverseFieldRole:function(e,f,c,d){var a=this,b=a.apply(f?'uniRole':'multiRole',e),g=a.apply('pluralize',c),h=a.apply('undotted,pluralize',d);if(g.toLowerCase()!==h.toLowerCase()){b=c+a.apply('capitalize',b)}return b},manyToMany:function(c,e,d){var b=this,a=b.apply('undotted,capitalize,singularize',e)+b.apply('undotted,capitalize,pluralize',d);if(c){a=b.apply('capitalize',c+a)}return a},manyToOne:function(d,b,a,c){return this.apply('capitalize,singularize',a)+this.apply('capitalize',b)},matrixRole:function(a,c){var b=this.apply(a?'multiRole,capitalize':'multiRole',c);return a?a+b:b},oneToOne:function(d,b,a,c){return this.apply('undotted,capitalize,singularize',a)+this.apply('capitalize',b)},setterName:function(a){return 'set'+this.apply('capitalize',a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(b,c){var e=this,h=e.cache,i=h[c]||(h[c]={}),a=i[b],d,g,f;if(!a){if(b.indexOf(',')<0){a=e[b](c)}else {g=(f=b.split(',')).length;a=c;for(d=0;d=Math.max(a,b)},find:function(g,h,d,e,b,c){var a=!e,f=!!(a&&c);return this.getData().findIndex(g,h,d,a,f,!b)},findRecord:function(){var a=this,b=a.find.apply(a,arguments);return b!==-1?a.getAt(b):null},findExact:function(a,c,b){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(a),c)},this,b)},findBy:function(c,a,b){return this.getData().findIndexBy(c,a,b)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,a){var c=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==!1){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(c,a){var b;if(!a){a=this.createFiltersCollection();b=!0}a.add(c);if(b){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==!1){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(c,a){var b;if(!a){a=this.createSortersCollection();b=!0}a.add(c);if(b){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(a,c,b){if(Ext.isString(a)){a={property:a,value:c}}this.suppressNextFilter=!!b;this.getFilters().add(a);this.suppressNextFilter=!1},removeFilter:function(a,d){var b=this,c=b.getFilters();b.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){c.remove(a)}else {c.removeByKey(a)}b.suppressNextFilter=!1},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(!1),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(!1),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=!1},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(!1);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=!1},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(!1);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(b){if(b.getTransform()){return}var e=b.getProperty(),d=this.getModel(),c,a;if(d){c=d.getField(e);a=c?c.getSortType():null}if(a&&a!==Ext.identityFn){b.setTransform(a)}},beginUpdate:function(){if(!this.updating++){this.fireEvent('beginupdate')}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent('endupdate');this.onEndUpdate()}},getState:function(){var c=this,e=[],g=c.getFilters(),f=c.getGrouper(),a,d,b;c.getSorters().each(function(a){e[e.length]=a.getState();d=!0});if(c.statefulFilters&&c.saveStatefulFilters){d=!0;a=[];g.each(function(b){a[a.length]=b.getState()})}if(f){d=!0}if(d){b={};if(e.length){b.sorters=e}if(a){b.filters=a}if(f){b.grouper=f.getState()}}return b},applyState:function(b){var a=this,e=b.sorters,c=b.filters,d=b.grouper;if(e){a.getSorters().replaceAll(e)}if(c){a.saveStatefulFilters=!0;a.getFilters().replaceAll(c)}if(d){a.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.callParent();a.onDestroy()},sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else {a.forceLocalSort()}}else {a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(b,a){if(a){this.fireEvent('beforesort',this,a.getRange())}},onSorterEndUpdate:function(){var a=this,b;b=a.getSorters(!1);if(a.settingGroups||!b){return}b=b.getRange();if(b.length){if(a.getRemoteSort()){a.load({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('sort',a,b)}}else {a.fireEvent('sort',a,b)}},onFilterEndUpdate:function(){var a=this,b=a.suppressNextFilter;if(a.getRemoteFilter()){a.currentPage=1;if(!b){a.load()}}else {if(!b){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}if(a.trackStateChanges){a.saveStatefulFilters=!0}a.fireEvent('filterchange',a,a.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else {this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(b,d){var a=this,c=a.getSorters(!1),e=b||c&&c.length;if(b&&typeof b==='string'){b={property:b,direction:d||a.getGroupDir()}}a.settingGroups=!0;a.getData().setGrouper(b);delete a.settingGroups;if(e){if(a.getRemoteSort()){a.load({scope:a,callback:a.fireGroupChange})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireGroupChange()}}else {a.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){this.fireEvent('groupchange',this,this.getGrouper())}},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b='';if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?'on':'un']('endupdate',this.onFilterEndUpdate,this)}},onRemoteSortSet:function(c,b){var a=this;if(c){c[b?'on':'un']('endupdate',a.onSorterEndUpdate,a);a.getData()[b?'un':'on']('beforesort',a.onBeforeCollectionSort,a)}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data,'AbstractStore'],0);Ext.cmd.derive('Ext.data.Error',Ext.Base,{isError:!0,$configPrefixed:!1,config:{field:null,message:''},constructor:function(a){this.initConfig(a);this.msg=this.message}},1,0,0,0,0,0,[Ext.data,'Error'],0);Ext.cmd.derive('Ext.data.ErrorCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.data.Errors',init:function(d){var b=this,h=d.fields,k=d.data,g,a,l,c,i,f,j,e;for(c=0,i=h.length;c]+>/gi,asText:function(a){return a!=null?String(a).replace(this.stripTagsRe,''):'\x00'},asUCText:function(a){return a!=null?String(a).toUpperCase().replace(this.stripTagsRe,''):'\x00'},asUCString:function(a){return a!=null?String(a).toUpperCase():'\x00'},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(b){var a=parseFloat(String(b).replace(this.stripCommasRe,''));return isNaN(a)?0:a},asInt:function(b){var a=parseInt(String(b).replace(this.stripCommasRe,''),10);return isNaN(a)?0:a}},0,0,0,0,0,0,[Ext.data,'SortTypes'],0);Ext.cmd.derive('Ext.data.validator.Validator',Ext.Base,{isValidator:!0,type:'base',statics:{all:{},register:function(a,c){var b=this.all;b[a.toUpperCase()]=b[a.toLowerCase()]=b[a]=c.prototype}},onClassExtended:function(b,a){if(a.type){Ext.data.validator.Validator.register(a.type,b)}},constructor:function(a){if(typeof a==='function'){this.fnOnly=!0;this.validate=a}else {this.initConfig(a)}},validate:function(){return !0},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},1,0,0,0,['data.validator.base'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.validator,'Validator'],function(){this.register(this.prototype.type,this)});Ext.cmd.derive('Ext.data.field.Field',Ext.Base,{alternateClassName:'Ext.data.Field',aliasPrefix:'data.field.',type:'auto',factoryConfig:{defaultProperty:'name'},isDataField:!0,isField:!0,allowBlank:!0,allowNull:!1,critical:!1,defaultInvalidMessage:'This field is invalid',defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,unique:!1,rank:null,stripRe:/[\$,%]/g,calculated:!1,evil:!1,identifier:!1,onClassExtended:function(f,d){var b=d.sortType,c=f.prototype,e=c.validators,a=d.validators;if(b&&Ext.isString(b)){c.sortType=Ext.data.SortTypes[b]}if(a){if(!Ext.isArray(a)){a=[a]}delete d.validators;if(e){a=e.concat(a)}c.validators=a}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var a=this,n=a.calculateRe,c,l,f,h,b,j,e,m,k,i,g;if(d){if(Ext.isString(d)){a.name=d}else {g=d.validators;if(g){delete d.validators;a.instanceValidators=g}Ext.apply(a,d)}}if(!a.allowNull){a.allowNull=!!a.reference}c=a.calculate;b=a.depends;if(c){a.convert=a.doCalculate;if(!b){if(!(b=c.$depends)){j={};k=c.toString();c.$depends=b=[];e=a.argumentNamesRe.exec(k);m=e?e[1]:'data';while(e=n.exec(k)){if(m===e[1]&&!j[i=e[2]]){j[i]=1;b.push(i)}}}a.depends=b}}f=a.defaultValue;if(a.convert){a.calculated=l=a.convert.length>1;a.evil=l&&!b}if(a.persist===null){a.persist=!c}h=a.sortType;if(!a.sortType){a.sortType=Ext.data.SortTypes.none}else {if(Ext.isString(h)){a.sortType=Ext.data.SortTypes[h]}}if(b&&typeof b==='string'){a.depends=[b]}a.cloneDefaultValue=f!==undefined&&(Ext.isDate(f)||Ext.isArray(f)||Ext.isObject(f))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},compileValidators:function(){var a=this;a._validators=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var d=a.length,e=this._validators,c,b;for(c=0;c0){(u=p[v]).dirty=!0;d=d?Math.min(d,u.rank):u.rank}if(!b||b.persist){if(f&&f.hasOwnProperty(c)){if(!y||o.isEqual(f[c],h)){delete f[c];a.dirty=-1}}else {if(y){if(!f){a.modified=f={}}a.dirty=!0;f[c]=j}}}if(c===a.idField.name){D=!0;z=j;s=h}}if(!d){break}b=l[d-1];b.dirty=!1;if(n){delete g[i]}else {g=a._singleProp;n=!0}i=b.name;g[i]=t[i];C=!0;for(;d0;){d=(b=g[i]).name;if(!(d in f)){c=h[d];if(j&&b.serialize){c=b.serialize(c,a)}f[d]=c}}}if(n){a.getAssociatedData(f,e)}return f},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(a){a=Ext.apply({},a);var b=this,d=a.scope||b,g=b.getProxy(),f=a.callback,c=b.loadOperation,h=b.getId(),e;if(c){e=c.extraCalls;if(!e){e=c.extraCalls=[]}e.push(a);return c}a.id=h;a.recordCreator=function(e,f,c){var d=b.session;if(c){c.recordCreator=d?d.recordCreator:null}b.set(e,b._commitOptions);return b};a.internalCallback=function(e){var h=e.wasSuccessful()&&e.getRecords().length>0,l=b.loadOperation,i=l.extraCalls,c=[b,e],j=[b,e,h],g,k;b.loadOperation=null;if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(f,d,j);if(i){for(g=0,k=i.length;g0;){b=i[a];if(b in e){delete e[b];delete j[b]}}for(a=0,h=f.length;a=a.getTotal()){a.setConfig({success:!1,records:[],total:0})}else {a.setRecords(Ext.Array.slice(d,e,e+i))}}b.setCompleted()}},clear:Ext.emptyFn},0,0,0,0,['proxy.memory'],0,[Ext.data.proxy,'Memory',Ext.data,'MemoryProxy'],0);Ext.cmd.derive('Ext.data.ProxyStore',Ext.data.AbstractStore,{config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:!1,batchUpdateMode:'operation',sortOnLoad:!0,trackRemoved:!0,asynchronousLoad:undefined},onClassExtended:function(e,d,b){var c=d.model,a;if(typeof c==='string'){a=b.onBeforeCreated;b.onBeforeCreated=function(){var g=this,f=arguments;Ext.require(c,function(){a.apply(g,f)})}}},implicitModel:'Ext.data.Model',autoSyncSuspended:0,constructor:function(b){var a=this;a.removed=[];Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(a.getAsynchronousLoad()===!1){a.flushLoad()}},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else {this.getFields();a=this.getModel()||this.createImplicitModel()}return a},applyProxy:function(a){var b=this.getModel();if(a!==null){if(a){if(a.isProxy){a.setModel(b)}else {if(Ext.isString(a)){a={type:a,model:b}}else {if(!a.model){a=Ext.apply({model:b},a)}}a=Ext.createByAlias('proxy.'+a.type,a);a.autoCreated=!0}}else {if(b){a=b.getProxy()}}if(!a){a=Ext.createByAlias('proxy.memory');a.autoCreated=!0}}return a},applyState:function(b){var a=this;Ext.data.AbstractStore.prototype.applyState.call(this,b);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(b,a){this.fireEvent('metachange',this,a)},create:function(f,a){var b=this,e=b.getModel(),d=new e(f),c;a=Ext.apply({},a);if(!a.records){a.records=[d]}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('create',a);return c.execute()},read:function(){return this.load.apply(this,arguments)},update:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getUpdatedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('update',a);return c.execute()},onProxyWrite:function(a){var b=this,c=a.wasSuccessful(),d=a.getRecords();switch(a.getAction()){case 'create':b.onCreateRecords(d,a,c);break;case 'update':b.onUpdateRecords(d,a,c);break;case 'destroy':b.onDestroyRecords(d,a,c);break;}if(c){b.fireEvent('write',b,a);b.fireEvent('datachanged',b)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(c,b,a){if(a){this.cleanRemoved()}},erase:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getRemovedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('destroy',a);return c.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(e,f){var a=this,c=e.operations,d=c.length,b;if(a.batchUpdateMode!=='operation'){a.suspendEvents();for(b=0;b0){b.create=f;c=!0}if(g.length>0){b.update=g;c=!0}if(e.length>0){b.destroy=e;c=!0}if(c&&a.fireEvent('beforesync',b)!==!1){a.isSyncing=!0;d=d||{};a.proxy.batch(Ext.apply(d,{operations:b,listeners:a.getBatchListeners()}))}return a},getBatchListeners:function(){var a=this,b={scope:a,exception:a.onBatchException,complete:a.onBatchComplete};if(a.batchUpdateMode==='operation'){b.operationcomplete=a.onBatchOperationComplete}return b},save:function(){return this.sync.apply(this,arguments)},load:function(b){var a=this;if(typeof b==='function'){b={callback:b}}else {b=b?Ext.Object.chain(b):{}}a.pendingLoadOptions=b;if(a.getAsynchronousLoad()){if(!a.loadTimer){a.loadTimer=Ext.asap(a.flushLoad,a)}}else {a.flushLoad()}return a},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b;a.clearLoadTask();if(!c){return}a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}b=Ext.apply({internalScope:a,internalCallback:a.onProxyLoad,scope:a},c);a.lastOptions=b;b=a.createOperation('read',b);if(a.fireEvent('beforeload',a,b)!==!1){a.onBeforeLoad(b);a.loading=!0;b.execute()}},reload:function(a){var b=Ext.apply({},a,this.lastOptions);return this.load(b)},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,onDestroy:function(){var a=this,b=a.getProxy();a.clearLoadTask();a.getData().destroy();a.data=null;a.setProxy(null);if(b.autoCreated){b.destroy()}a.setModel(null)},hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){Ext.asapCancel(this.loadTimer);this.pendingLoadOptions=this.loadTimer=null},cleanRemoved:function(){var a=this.getRawRemovedRecords(),c,b;if(a){for(b=0,c=a.length;b-1},each:function(f,e){var c=this.data.items,d=c.length,b,a;for(a=0;a0){if(u){f=0;if(d.length>1&&h){f=1}b[i]=d[f].getProperty();b[t]=d[f].getDirection()}else {b[i]=a.encodeSorters(d)}}if(l&&j&&j.length>0){b[l]=a.encodeFilters(j)}return b},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format('{0}={1}',b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(a){var b;if(a){b=a.getUrl()||this.getApi()[a.getAction()]}return b?b:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a){},afterRequest:Ext.emptyFn,destroy:function(){Ext.data.proxy.Proxy.prototype.destroy.call(this);Ext.destroy(this.getReader(),this.getWriter());this.reader=this.writer=null}},0,0,0,0,['proxy.server'],0,[Ext.data.proxy,'Server',Ext.data,'ServerProxy'],0);Ext.cmd.derive('Ext.data.proxy.Ajax',Ext.data.proxy.Server,{alternateClassName:['Ext.data.HttpProxy','Ext.data.AjaxProxy'],isAjaxProxy:!0,defaultActionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'},config:{binary:!1,headers:undefined,paramsAsJson:!1,withCredentials:!1,useDefaultXhrHeader:!0,username:null,password:null,actionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'}},doRequest:function(e){var a=this,g=a.getWriter(),b=a.buildRequest(e),f=a.getMethod(b),c,d;if(g&&e.allowWrite()){b=g.write(b)}b.setConfig({binary:a.getBinary(),headers:a.getHeaders(),timeout:a.getTimeout(),scope:a,callback:a.createRequestCallback(b,e),method:f,useDefaultXhrHeader:a.getUseDefaultXhrHeader(),disableCaching:!1});if(f.toUpperCase()!=='GET'&&a.getParamsAsJson()){d=b.getParams();if(d){c=b.getJsonData();if(c){c=Ext.Object.merge({},c,d)}else {c=d}b.setJsonData(c);b.setParams(undefined)}}if(a.getWithCredentials()){b.setWithCredentials(!0);b.setUsername(a.getUsername());b.setPassword(a.getPassword())}return a.sendRequest(b)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(d){var a=this.getActionMethods(),b=d.getAction(),c;if(a){c=a[b]}return c||this.defaultActionMethods[b]},createRequestCallback:function(b,c){var a=this;return function(f,e,d){if(b===a.lastRequest){a.lastRequest=null}a.processResponse(e,c,b,d)}},destroy:function(){this.lastRequest=null;Ext.data.proxy.Server.prototype.destroy.call(this)}},0,0,0,0,['proxy.ajax'],0,[Ext.data.proxy,'Ajax',Ext.data,'HttpProxy',Ext.data,'AjaxProxy'],0);Ext.cmd.derive('Ext.data.reader.Json',Ext.data.reader.Reader,{alternateClassName:'Ext.data.JsonReader',config:{record:null,metaProperty:'metaData',useSimpleAccessors:!1,preserveRawData:!1},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},readRecords:function(a,e,d){var b=this,c;if(b.getMeta){c=b.getMeta(a);if(c){b.onMetaChange(c)}}else {if(a.metaData){b.onMetaChange(a.metaData)}}return Ext.data.reader.Reader.prototype.readRecords.call(this,a,e,d)},getResponseData:function(b){var a;try{return Ext.decode(b.responseText)}catch(c){a=this.createReadError(c.message);Ext.Logger.warn('Unable to parse the JSON returned by the server');this.fireEvent('exception',this,b,a);return a}},buildExtractors:function(){var a=this,b,c;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){b=a.getMetaProperty();c=a.getRootProperty();if(c){a.getRoot=a.getAccessor(c)}else {a.getRoot=Ext.identityFn}if(b){a.getMeta=a.getAccessor(b)}}},extractData:function(a,f){var e=this.getRecord(),d=[],c,b;if(e){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b1||e&&!g){b+=d}else {if(k){i=!1;if(l){++e}else {if(g){--e;i=!0}}if(b){if(i){b='['+b+']'}else {b='.'+b}j+=b;m.push(''+j);b=''}}}}f=m.join(' && ');f=Ext.functionFactory('raw','return '+f)}return f}}(),createFieldAccessor:function(b){var e=this,a=b.mapping,c=a||a===0,d=c?a:b.name;if(c){if(typeof d==='function'){return function(a){return b.mapping(a,e)}}else {return e.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?'simple':'';return this.$className+a+b},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot}}},0,0,0,0,['reader.json'],0,[Ext.data.reader,'Json',Ext.data,'JsonReader'],0);Ext.cmd.derive('Ext.data.writer.Json',Ext.data.writer.Writer,{alternateClassName:'Ext.data.JsonWriter',config:{rootProperty:undefined,encode:!1,allowSingle:!0,expandData:!1},getExpandedData:function(f){var h=f.length,g=0,a,c,b,d,e,i=function(c,b){var a={};a[c]=b;return a};for(;g0){e=a[c];for(;d>0;d--){e=i(b[d],e)}a[b[0]]=a[b[0]]||{};Ext.Object.merge(a[b[0]],e);delete a[c]}}}}return f},writeRecords:function(b,a){var c=this,e=c.getRootProperty(),d,g,f;if(c.getExpandData()){a=c.getExpandedData(a)}if(c.getAllowSingle()&&a.length===1){a=a[0];g=!0}f=this.getTransform();if(f){a=f(a,b)}if(c.getEncode()){if(e){b.setParam(e,Ext.encode(a))}else {}}else {if(g||a&&a.length){d=b.getJsonData()||{};if(e){d[e]=a}else {d=a}b.setJsonData(d)}}return b}},0,0,0,0,['writer.json'],0,[Ext.data.writer,'Json',Ext.data,'JsonWriter'],0);Ext.cmd.derive('Ext.util.Group',Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001},0,0,0,0,0,0,[Ext.util,'Group'],0);Ext.cmd.derive('Ext.util.SorterCollection',Ext.util.Collection,{isSorterCollection:!0,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(b){var a=this;a.sortFn=Ext.util.Sorter.createComparator(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeSorter)},addSort:function(b,c,d){var a=this,f,j,k,g,h,i,e;if(!b){a.beginUpdate();a.endUpdate()}else {g=a.getOptions();if(b instanceof Array){e=b;d=c;c=null}else {if(Ext.isString(b)){if(!(i=a.get(b))){e=[{property:b,direction:c||g.getDefaultSortDirection()}]}else {e=[i]}}else {if(Ext.isFunction(b)){e=[{sorterFn:b,direction:c||g.getDefaultSortDirection()}]}else {e=[b];d=c;c=null}}}d=a._sortModes[d||'replace'];h=a.getAt(0);f=a.length;j=d.append?f:0;a.beginUpdate();a.splice(j,d.replace?f:0,e);if(d.multi){f=a.length;k=g.getMultiSortLimit();if(f>k){a.removeAt(k,f)}}if(i&&c){i.setDirection(c)}else {if(j===0&&h&&h===a.getAt(0)){h.toggle()}}a.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(d){var c=this.items,e=c.length,a,b;for(a=0;ad+1||!Ext.isIterable(b)){b=Ext.Array.slice(e,d)}var j=k.items,l=b.length,c=[],f,g,i,a,h;for(f=0;f0;){g=j[i];if(g.getSorterFn()===a){c.push(g)}}}}}}b=c;b.$cloned=!0}return b},getOptions:function(){return this.$sortable||this}},1,0,0,0,0,0,[Ext.util,'SorterCollection'],0);Ext.cmd.derive('Ext.util.FilterCollection',Ext.util.Collection,{isFilterCollection:!0,$filterable:null,filterFn:null,constructor:function(b){var a=this;a.filterFn=Ext.util.Filter.createFilterFn(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},decodeFilter:function(b){var d=this.getOptions(),c=d.getRootProperty(),a;if(b.isFilter){if(!b.getRoot()){b.setRoot(c)}}else {a={root:c};if(Ext.isFunction(b)){a.filterFn=b}else {a=Ext.apply(a,b);if(a.fn){a.filterFn=a.fn;delete a.fn}if(Ext.util.Filter.isInvalid(a)){return !1}}b=new Ext.util.Filter(a)}return b},decodeRemoveItems:function(f,e){var p=this,b=e===undefined?f:f[e];if(!b.$cloned){if(f.length>e+1||!Ext.isIterable(b)){b=Ext.Array.slice(f,e)}var k=p.items,o=b.length,h=[],a,g,l,n,m,c,d,j,i;for(g=0;g0;){c=k[j];d=!1;if(m){d=c.getProperty()===a}else {if(l){d=c.getFilterFn()===a}else {if(n){d=c.getProperty()===a.property&&c.getValue()===a.value}}}if(d){h.push(c)}}}}b=h;b.$cloned=!0}return b},getOptions:function(){return this.$filterable||this}},1,0,0,0,0,0,[Ext.util,'FilterCollection'],0);Ext.cmd.derive('Ext.util.GroupCollection',Ext.util.Collection,{isGroupCollection:!0,config:{grouper:null,itemRoot:null},observerPriority:-100,onCollectionAdd:function(b,a){this.addItemsToGroups(b,a.items)},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){var c=a.item;if(!a.indexChanged){this.syncItemGrouping(b,c,b.getKey(c),a.oldKey,a.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(a){this.removeAll();this.addItemsToGroups(a,a.items)},onCollectionRemove:function(k,j){var d=this,g=d.changeDetails,b,h,a,e,i,c,f;if(g){f=g.item;a=d.findGroupForItem(f);b=[];if(a){b.push({group:a,items:[f]})}}else {b=d.groupItems(k,j.items,!1)}for(e=0,i=b.length;e0&&i.getSorters().getCount()===0){k=i.indexOf(a.items[0]);if(o-1){b=[c];d=1}else {d=0}}else {b=[];for(g=0,d=c.length;g=0;a--){d=c[a];d.reject();if(!g){b.insert(d.removedFrom||0,d)}}if(g){h.setAutoSort(i);b.add(c)}c.length=0}b.endUpdate();Ext.resumeLayouts(!0)},onDestroy:function(){var a=this,c=a.loadTask,d=a.getData(),b=d.getSource();a.clearData();Ext.data.ProxyStore.prototype.onDestroy.call(this);a.setSession(null);a.observers=null;if(c){c.cancel();a.loadTask=null}if(b){b.destroy()}},privates:{fetch:function(a){a=Ext.apply({},a);this.setLoadOptions(a);var b=this.createOperation('read',a);b.execute()},onBeforeLoad:function(a){this.callObservers('BeforeLoad',[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,a,b)},onRemoteSortSet:function(b,a){var c=this.getData();if(b){c.setSorters(a?null:b)}c.setAutoGroup(!a);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,a)},isMoving:function(a,f){var c=this.moveMap,b=0,e,d;if(c){if(a){if(Ext.isArray(a)){for(d=0,e=a.length;d-1}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Store'],0);Ext.cmd.derive('Ext.app.route.Queue',Ext.Base,{queue:null,token:null,constructor:function(a){Ext.apply(this,a);this.queue=new Ext.util.MixedCollection()},queueAction:function(a,b){this.queue.add({route:a,args:b})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var c=this.queue,a=c.removeAt(0),b;if(a){b=a&&a.route;b.execute(this.token,a.args,this.onActionExecute,this)}},onActionExecute:function(a){if(a){this.clearQueue()}else {this.runQueue()}}},1,0,0,0,0,0,[Ext.app.route,'Queue'],0);Ext.cmd.derive('Ext.app.route.Route',Ext.Base,{action:null,conditions:null,controller:null,allowInactive:!1,url:null,before:null,caseInsensitive:!1,matcherRegex:null,paramMatchingRegex:null,paramsInMatchString:null,constructor:function(c){var a=this,b;Ext.apply(a,c,{conditions:{}});b=a.url;a.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);a.paramsInMatchString=b.match(a.paramMatchingRegex)||[];a.matcherRegex=a.createMatcherRegex(b)},recognize:function(b){var a=this,d=a.controller,e,c;if((a.allowInactive||d.isActive())&&a.recognizes(b)){e=a.matchesFor(b);c=b.match(a.matcherRegex);c.shift();return Ext.applyIf(e,{controller:d,action:a.action,historyUrl:b,args:c})}return !1},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(h,d,f,g){var e=d.args||[],a=this.before,c=this.controller,b=this.createCallback(d,f,g);if(a){e.push(b);if(Ext.isString(a)){a=this.before=c[a]}if(a){a.apply(c,e)}}else {b.resume()}},matchesFor:function(f){var b={},d=this.paramsInMatchString,c=f.match(this.matcherRegex),a=0,e=d.length;c.shift();for(;a0){c=a.substring(0,d);b=a.substring(d+1)+'.'+c}else {if(a.indexOf('.')>0&&(Ext.ClassManager.isCreated(a)||this.hasRegisteredPrefix(a))){b=a}else {if(f){b=f+'.'+g+'.'+(e?e+'.'+a:a);c=a}else {b=a}}}return {absoluteName:b,shortName:c}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:!0,moduleClassName:null},onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,i){var g=Ext.app.Controller,h=[],e,f;f=j.prototype;e=g.resolveNamespace(j,i);if(e){f.$namespace=e}g.processDependencies(f,h,e,'model',i.models);g.processDependencies(f,h,e,'view',i.views);g.processDependencies(f,h,e,'store',i.stores);g.processDependencies(f,h,e,'controller',i.controllers);Ext.require(h,Ext.Function.pass(b,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.apply(this,arguments)},normalizeRefs:function(a){var c=this,b=[];if(a){if(Ext.isObject(a)){Ext.Object.each(a,function(d,c){if(Ext.isString(c)){c={selector:c}}c.ref=d;b.push(c)})}else {if(Ext.isArray(a)){b=Ext.Array.merge(b,a)}}}a=c.refs;if(a){c.refs=null;a=c.normalizeRefs(a);if(a){b=Ext.Array.merge(b,a)}}return b},getRefMap:function(){var e=this,a=e._refMap,b,d,f,c;if(!a){b=e.getRefs();a=e._refMap={};if(b){for(c=0,f=b.length;c0){d=c[b];a.map[a.getKey(d)]=b}++a.generation}}},1,0,0,0,0,0,[Ext.util,'Bag'],0);Ext.cmd.derive('Ext.util.Scheduler',Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:!1,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var a=this,b=a.items;if(b===a.firing){a.items=b=b.clone()}c.id=c.id||++a.nextId;c.scheduler=a;b.add(c);if(!a.sortMap){a.orderedItems=null}},remove:function(c){var a=this,b=a.items;if(a.destroyed){return}if(b===a.firing){a.items=b=b.clone()}if(c.scheduled){a.unscheduleItem(c);c.scheduled=!1}b.remove(c);a.orderedItems=null},sort:function(){var a=this,b=a.items,f={},e=a.getPreSort(),c,d;a.orderedItems=[];a.sortMap=f;if(e){b.sort(e)}b=b.items;for(c=0;c0;){c[d].stub=b}}return b},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return !0}}return !1},onSchedule:function(){for(var c,e,b,a,d=this.parent;d;d=d.parent){a=d.bindings;if(a){for(c=0,e=a.length;c '+a.binding.getFullName()+')')},getDataObject:function(){var a=this.binding;return a&&a.getDataObject()},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isLoading:function(){var a=this.binding;return a?a.isLoading():!1},link:function(c,b){var a=this,d=a.binding;if(d){d.destroy()}b=a.target=b||a.owner;a.linkDescriptor=c;a.binding=b.bind(c,a.onChange,a);a.binding.deep=!0},onChange:function(){this.invalidate(!0)},react:function(){var a=this,b=a.owner.linkData;b[a.name]=a.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var c=this,b=Ext.app.bind.Stub.prototype.collect.call(this),a=c.binding?1:0;return b+a},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}},0,0,0,0,0,0,[Ext.app.bind,'LinkStub'],0);Ext.cmd.derive('Ext.app.bind.RootStub',Ext.app.bind.AbstractStub,{isRootStub:!0,depth:0,createRootChild:function(a,j){var e=this,d=e.owner,i=d.getData(),g=e.children,c=g&&g[a],f=c?null:e,h,b;if(j||i.hasOwnProperty(a)||!(h=d.getParent())){b=new Ext.app.bind.Stub(d,a,f)}else {b=new Ext.app.bind.LinkStub(d,a,c?null:f);b.link('{'+a+'}',h)}if(c){c.graft(b)}return b},createStubChild:function(a){return this.createRootChild(a,!0)},descend:function(a,g){var f=this,d=f.children,b=g||0,e=a[b++],c=d&&d[e]||f.createRootChild(e);if(b0;){if(a[b].isLoading()){return !0}}return !1},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var b=this.bindings,d=b.length,a,c;for(a=0;a-1}}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Controller'],0);Ext.cmd.derive('Ext.data.PageMap',Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:''},clear:function(b){var a=this;a.pageMapGeneration=(a.pageMapGeneration||0)+1;a.indexMap={};Ext.util.LruCache.prototype.clear.call(this,b)},forEach:function(k,f){var d=this,b=Ext.Object.getKeys(d.map),h=b.length,j=d.getPageSize(),a,c,e,g,i;for(a=0;ad},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(l,f){f--;if(!this.hasRange(l,f)){Ext.raise('PageMap asked for range which it does not have')}var c=this,k=Ext.Array,e=c.getPageSize(),g=c.getPageFromRecordIndex(l),h=c.getPageFromRecordIndex(f),m=(g-1)*e,n=h*e-1,a=g,j=[],d,i,b;for(;a<=h;a++){if(a===g){d=l-m;b=d>0}else {d=0;b=!1}if(a===h){i=e-(n-f);b=b||i=g){b=g-1;c=Math.max(b-h,0)}if(a.rangeCached(c,Math.min(b,a.totalCount))){a.loading=!1;f.un('pageadd',e);l=f.getRange(c,b+1);a.fireEvent('load',a,l,!0);a.fireEvent('refresh',a)}};h=Math.ceil((a.getLeadingBufferZone()+a.getTrailingBufferZone())/2);if(a.lastRequestStart&&a.preserveScrollOnReload){c=a.lastRequestStart;b=a.lastRequestEnd;i=a.getTotalCount()}else {c=d.start||0;b=c+(d.count||a.getPageSize())-1}f.clear(!0);delete a.totalCount;c=Math.max(c-h,0);b=Math.min(b+h,i);j=a.getPageFromRecordIndex(c);k=a.getPageFromRecordIndex(b);a.loading=!0;d.waitForReload=e;f.on('pageadd',e);for(g=j;g<=k;g++){a.prefetchPage(g,d)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},clearData:function(c){var b=this,a=b.getData();if(a){a.clear()}},getCount:function(){return this.totalCount||0},getRange:function(c,b,f){var a=this,k=a.totalCount-1,m=a.lastRequestStart,l=[],h=a.getData(),g,d,e,i,j;f=Ext.apply({prefetchStart:c,prefetchEnd:b},f);b=b>=a.totalCount?k:b;d=c===0?0:c-1;e=b===k?b:b+1;a.lastRequestStart=c;a.lastRequestEnd=b;if(a.rangeCached(d,e)){a.onRangeAvailable(f);l=h.getRange(c,b+1)}else {a.fireEvent('cachemiss',a,c,b);i=a.getPageFromRecordIndex(d);j=a.getPageFromRecordIndex(e);g=function(l,k,m){if(k>=i&&k<=j&&a.rangeCached(d,e)){a.fireEvent('cachefilled',a,c,b);h.un('pageadd',g);a.onRangeAvailable(f)}};h.on('pageadd',g);a.prefetchRange(c,b)}a.primeCache(c,b,c-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var a=this,c;if(b&&typeof b==='string'){c=a.grouper;if(!c){a.grouper=new Ext.util.Grouper({property:b,direction:d||'ASC',root:'data'})}else {if(d===undefined){c.toggle()}else {c.setDirection(d)}}}else {a.grouper=b?a.getSorters().decodeSorter(b,'Ext.util.Grouper'):null}a.getData().clear();a.loadPage(1,{callback:function(){a.fireEvent('groupchange',a,a.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(c){var a=this,b=a.getPurgePageCount();return b?Math.max(a.getData().getMaxSize()||0,Math.ceil((c+a.getTrailingBufferZone()+a.getLeadingBufferZone())/a.getPageSize())*2+b):0},loadToPrefetch:function(b){var a=this,f=b,h,d,i,e=b.start,k=b.start+b.limit-1,m=a.getViewSize()||b.limit,c=Math.min(k,b.start+m-1),p=a.getPageFromRecordIndex(Math.max(e-a.getTrailingBufferZone(),0)),q=a.getPageFromRecordIndex(k+a.getLeadingBufferZone()),g=a.getData(),j=function(){d=d||[];if(b.loadCallback){b.loadCallback.call(b.scope||a,d,o,!0)}if(b.callback){b.callback.call(b.scope||a,d,e||0,k||0,b)}},n=function(){a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('load',a,d,!0)},l=function(){if(a.rangeCached(e,c)){a.loading=!1;d=g.getRange(e,c+1);g.un('pageadd',l);if(a.hasListeners.guaranteedrange){a.guaranteeRange(e,c,b.callback,b.scope)}j();n()}},o;g.setMaxSize(a.calculatePageCacheSize(m));if(a.fireEvent('beforeload',a,b)!==!1){delete a.totalCount;a.loading=!0;if(b.callback){f=Ext.apply({},b);delete f.callback}a.on('prefetch',function(m,e,d,k){o=k;if(d){if(i=a.getTotalCount()){g.on('pageadd',l);c=Math.min(c,i-1);q=a.getPageFromRecordIndex(Math.min(c+a.getLeadingBufferZone(),i-1));for(h=p+1;h<=q;++h){a.prefetchPage(h,f)}}else {j();n()}}else {a.loading=!1;j();a.fireEvent('load',a,e,!1)}},null,{single:!0});a.prefetchPage(p,f)}},prefetch:function(b){var a=this,c=a.getPageSize(),d=a.getData(),e,f;if(c){if(a.lastPageSize&&c!=a.lastPageSize){Ext.raise('pageSize cannot be dynamically altered')}if(!d.getPageSize()){d.setPageSize(c)}}else {a.pageSize=d.setPageSize(c=b.limit)}a.lastPageSize=c;if(!b.page){b.page=a.getPageFromRecordIndex(b.start);b.start=(b.page-1)*c;b.limit=Math.ceil(b.limit/c)*c}f=a.pageRequests[b.page];if(!f||f.getOperation().pageMapGeneration!==d.pageMapGeneration){b=Ext.apply({action:'read',filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper(),internalCallback:a.onProxyPrefetch,internalScope:a},b);e=a.createOperation('read',b);e.pageMapGeneration=d.pageMapGeneration;if(a.fireEvent('beforeprefetch',a,e)!==!1){a.pageRequests[b.page]=e.execute();if(a.getProxy().isSynchronous){delete a.pageRequests[b.page]}}}return a},onPageMapClear:function(){var a=this,e=a.wasLoading,d=a.pageRequests,b=a.getData(),c;b.clearListeners();b.on('clear',a.onPageMapClear,a);a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.loading=!0;a.totalCount=0;for(c in d){if(d.hasOwnProperty(c)){d[c].getOperation().abort()}}a.fireEvent('clear',a);a.loading=e},prefetchPage:function(d,e){var a=this,b=a.getPageSize(),f=(d-1)*b,c=a.totalCount;if(c!==undefined&&a.data.getCount()===c){return}a.prefetch(Ext.applyIf({page:d,start:f,limit:b},e))},onProxyPrefetch:function(b){if(this.destroyed){return}var a=this,g=b.getResultSet(),e=b.getRecords(),d=b.wasSuccessful(),i=b.getPage(),c=b.waitForReload,k=a.totalCount,h=a.pageRequests,j,f;if(b.pageMapGeneration===a.getData().pageMapGeneration){if(g){a.totalCount=g.getTotal();if(a.totalCount!==k){a.fireEvent('totalcountchange',a.totalCount)}}if(i!==undefined){delete a.pageRequests[i]}a.loading=!1;a.fireEvent('prefetch',a,e,d,b);if(d){if(a.totalCount===0){if(c){for(j in h){f=h[j].getOperation();if(f.waitForReload===c){delete f.waitForReload}}a.getData().un('pageadd',c);a.fireEvent('load',a,[],!0);a.fireEvent('refresh',a)}}else {a.cachePage(e,b.getPage())}}Ext.callback(b.getCallback(),b.getScope()||a,[e,b,d])}},cachePage:function(b,d){var a=this,e=b.length,c;if(!Ext.isDefined(a.totalCount)){a.totalCount=b.length;a.fireEvent('totalcountchange',a.totalCount)}for(c=0;cf-1?f-1:a.prefetchEnd,d;b=Math.max(0,b);d=c.getData().getRange(e,b+1);if(a.fireEvent!==!1){c.fireEvent('guaranteedrange',d,e,b,a)}if(a.callback){a.callback.call(a.scope||c,d,e,b,a)}},guaranteeRange:function(d,e,b,c,a){a=Ext.apply({callback:b,scope:c},a);this.getRange(d,e+1,a)},prefetchRange:function(c,d){var a=this,e,f,b,g=a.getData();if(!a.rangeCached(c,d)){e=a.getPageFromRecordIndex(c);f=a.getPageFromRecordIndex(d);g.setMaxSize(a.calculatePageCacheSize(d-c+1));for(b=e;b<=f;b++){if(!a.pageCached(b)){a.prefetchPage(b)}}}},primeCache:function(a,b,g){var c=this,f=c.getLeadingBufferZone(),e=c.getTrailingBufferZone(),h=c.getPageSize(),d=c.totalCount;if(g===-1){a=Math.max(a-f,0);b=Math.min(b+e,d-1)}else {if(g===1){a=Math.max(Math.min(a-e,d-h),0);b=Math.min(b+f,d-1)}else {a=Math.min(Math.max(Math.floor(a-(f+e)/2),0),d-c.pageSize);b=Math.min(Math.max(Math.ceil(b+(f+e)/2),0),d-1)}}c.prefetchRange(a,b)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else {this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent('beforesort',a,b);a.clearAndLoad({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('sort',a,b)}},clearAndLoad:function(a){this.getData().clear();this.loadPage(1,a)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return !1}}},0,0,0,0,['store.buffered'],0,[Ext.data,'BufferedStore'],0);Ext.cmd.derive('Ext.data.NodeInterface',Ext.Base,{statics:{decorate:function(f){var a=Ext.data.schema.Schema.lookupEntity(f),e=a.prototype,c,b,d;if(!a.prototype.isObservable){a.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(e.isNode){return}c=e.idProperty;b=a.getField(c);d=b.type;a.override(this.getPrototypeBody());a.addFields([{name:'parentId',type:d,defaultValue:null,allowNull:b.allowNull},{name:'index',type:'int',defaultValue:-1,persist:!1,convert:null},{name:'depth',type:'int',defaultValue:0,persist:!1,convert:null},{name:'expanded',type:'bool',defaultValue:!1,persist:!1,convert:null},{name:'expandable',type:'bool',defaultValue:!0,persist:!1,convert:null},{name:'checked',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'leaf',type:'bool',defaultValue:!1},{name:'cls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'iconCls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'icon',type:'string',defaultValue:'',persist:!1,convert:null},{name:'root',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isLast',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isFirst',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'allowDrop',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'allowDrag',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'loaded',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'loading',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'href',type:'string',defaultValue:'',persist:!1,convert:null},{name:'hrefTarget',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtip',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtitle',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qshowDelay',type:'int',defaultValue:0,persist:!1,convert:null},{name:'children',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'visible',type:'boolean',defaultValue:!0,persist:!1},{name:'text',type:'string',persist:!1}])},getPrototypeBody:function(){var a={idchanged:!0,append:!0,remove:!0,move:!0,insert:!0,beforeappend:!0,beforeremove:!0,beforemove:!0,beforeinsert:!0,expand:!0,collapse:!0,beforeexpand:!0,beforecollapse:!0,sort:!0},b={silent:!0};return {isNode:!0,firstChild:null,lastChild:null,parentNode:null,previousSibling:null,nextSibling:null,constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.callParent(arguments);a.childNodes=[];return a},createNode:function(a){var b=this,j=b.childType,h,f,g,c,d,e,i=b.self;if(!a.isModel){if(j){i=b.schema.getEntity(j)}else {h=b.getTreeStore();f=h&&h.getProxy().getReader();g=b.getProxy();c=g?g.getReader():null;d=!f||c&&c.initialConfig.typeProperty?c:f;if(d){e=d.getTypeProperty();if(e){i=d.getChildType(b.schema,a,e)}}}a=new i(a)}if(!a.childNodes){a.firstChild=a.lastChild=a.parentNode=a.previousSibling=a.nextSibling=null;a.childNodes=[]}return a},isLeaf:function(){return this.get('leaf')===!0},setFirstChild:function(a){this.firstChild=a},setLastChild:function(a){this.lastChild=a},updateInfo:function(o,k){var a=this,i=a.data,r=i.depth,m={},n=a.childNodes,q=n.length,s=a.phantom,t=a.fields,c=a.modified||(a.modified={}),b,e,j,d,p,l=k.parentId,g,h,f;for(b in k){j=t[a.fieldOrdinals[b]];e=k[b];h=j&&j.persist;d=i[b];g=h&&b==='index'&&d!==-1&&(l&&l!==c.parentId);if(!g&&a.isEqual(d,e)){continue}i[b]=e;if(h){if(!g&&c.hasOwnProperty(b)){if(a.isEqual(c[b],e)){delete c[b];a.dirty=!1;for(p in c){if(c.hasOwnProperty(p)){a.dirty=!0;break}}}}else {a.dirty=!0;c[b]=d}}}if(o){a.commit();a.phantom=s}if(a.data.depth!==r){m={depth:a.data.depth+1};for(f=0;f0},isExpandable:function(){var a=this;if(a.get('expandable')){return !(a.isLeaf()||a.isLoaded()&&!a.phantom&&!a.hasChildNodes())}return !1},triggerUIUpdate:function(){this.callJoined('afterEdit',[])},appendChild:function(b,h,l){var a=this,j,m,c,e,f,k={isLast:!0,parentId:a.getId(),depth:(a.data.depth||0)+1},i,d=a.getTreeStore(),g=d&&d.bulkUpdate;Ext.suspendLayouts();if(Ext.isArray(b)){m=b.length;i=new Array(m);a.callTreeStore('beginFill');for(j=0;j0){if(!e){e=c.getTreeStore().getSortFn()}Ext.Array.sort(a,e);c.setFirstChild(a[0]);c.setLastChild(a[g-1]);for(b=0;b0){d.children=c=[];for(a=0;a1&&!a.getRemoteSort()&&a.getFolderSort()||j.length,e,h,c,d;if(a.needsLocalFilter()){d=a.getFilters().getFilterFn();b[0].set('visible',d(b[0]))}for(c=1;c')}else {b.push('>');if(c=a.tpl){c.applyOut(a.tplData,b)}if(c=a.html){b.push(c)}if(c=a.cn||a.children){e.generateMarkup(c,b)}h=e.closeTags;b.push(h[f]||(h[f]=''))}}}return b},generateStyles:function(c,d,f){var e=d||[],a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];a=this.decamelizeName(a);if(f&&Ext.String.hasHtmlCharacters(b)){b=Ext.String.htmlEncode(b)}e.push(a,':',b,';')}}return d||e.join('')},markup:function(a){if(typeof a==='string'){return a}var b=this.generateMarkup(a,[]);return b.join('')},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(e){var d=this.detachedDiv,b=document.createDocumentFragment(),c,a;d.innerHTML=e;a=d.childNodes;c=a.length;while(c--){b.appendChild(a[0])}return b},createDom:function(e,f){var c=this,d=c.markup(e),b=c.detachedDiv,a;b.innerHTML=d;a=b.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(!0):a},insertHtml:function(g,f,j){var o=this,l,k,n,m,i;g=g.toLowerCase();if(f.insertAdjacentHTML){if(o.ieInsertHtml){i=o.ieInsertHtml(g,f,j);if(i){return i}}l=h[g];if(l){f.insertAdjacentHTML(l[0],j);return f[l[1]]}}else {if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}k=Ext.supports.CreateContextualFragment?f.ownerDocument.createRange():undefined;m='setStart'+(this.endRe.test(g)?'After':'Before');if(e[g]){if(k){k[m](f);i=k.createContextualFragment(j)}else {i=this.createContextualFragment(j)}f.parentNode.insertBefore(i,g===a?f:f.nextSibling);return f[(g===a?'previous':'next')+'Sibling']}else {n=(g===b?'first':'last')+'Child';if(f.firstChild){if(k){try{k[m](f[n]);i=k.createContextualFragment(j)}catch(p){i=this.createContextualFragment(j)}}else {i=this.createContextualFragment(j)}if(g===b){f.insertBefore(i,f.firstChild)}else {f.appendChild(i)}}else {f.innerHTML=j}return f[n]}}},insertBefore:function(c,d,b){return this.doInsert(c,d,b,a)},insertAfter:function(b,c,a){return this.doInsert(b,c,a,d)},insertFirst:function(c,d,a){return this.doInsert(c,d,a,b)},append:function(b,d,a){return this.doInsert(b,d,a,c)},overwrite:function(b,c,e){var d=this,a;b=Ext.getDom(b);c=d.markup(c);if(d.ieOverwrite){a=d.ieOverwrite(b,c)}if(!a){b.innerHTML=c;a=b.firstChild}return e?Ext.get(a):a},doInsert:function(f,j,k,g){var i=this,h;f=f.dom||Ext.getDom(f);if('innerHTML' in f){h=i.insertHtml(g,f,i.markup(j))}else {h=i.createDom(j,null);if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}if(e[g]){f.parentNode.insertBefore(h,g===a?f:f.nextSibling)}else {if(f.firstChild&&g===b){f.insertBefore(h,f.firstChild)}else {f.appendChild(h)}}}return k?Ext.get(h):h},createTemplate:function(b){var a=this.markup(b);return new Ext.Template(a)},createHtml:function(a){return this.markup(a)}}},0,0,0,0,0,0,[Ext.dom,'Helper',Ext,'DomHelper',Ext.core,'DomHelper'],0);Ext.define('Ext.overrides.dom.Helper',function(){var a=/^(?:table|thead|tbody|tr|td)$/i,f=/td|tr|tbody|thead/i,e='',d='
    ',c=e+'',b=''+d,h=c+'',g=''+b;return {override:'Ext.dom.Helper',ieInsertHtml:function(d,b,e){var c=null;if(Ext.isIE9m&&a.test(b.tagName)){c=this.insertIntoTable(b.tagName.toLowerCase(),d,b,e)}return c},ieOverwrite:function(b,c){if(Ext.isIE9m&&a.test(b.tagName)){while(b.firstChild){b.removeChild(b.firstChild)}if(c){return this.insertHtml('afterbegin',b,c)}}},ieTable:function(g,f,e,d){var h=-1,a=this.detachedDiv,b,c;a.innerHTML=[f,e,d].join('');while(++ha.interval){a.collect()}a.timerId=Ext.interval(a.collect,a.interval)}},1,0,0,0,0,0,[Ext.dom,'GarbageCollector'],0);Ext.cmd.derive('Ext.event.gesture.Recognizer',Ext.Base,{priority:0,handledEvents:[],config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(a){this.initConfig(a);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:Ext.emptyFn,onTouchCancel:Ext.emptyFn,fail:function(){return !1},fire:function(){this.getOnRecognized().apply(this.getCallbackScope(),arguments)},reset:Ext.emptyFn},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.event.gesture,'Recognizer'],0);Ext.cmd.derive('Ext.event.gesture.SingleTouch',Ext.event.gesture.Recognizer,{inheritableStatics:{NOT_SINGLE_TOUCH:'Not Single Touch',TOUCH_MOVED:'Touch Moved',EVENT_CANCELED:'Event Canceled'},onTouchStart:function(a){if(a.touches.length>1){return this.fail(this.self.NOT_SINGLE_TOUCH)}},onTouchCancel:function(){return !1}},0,0,0,0,0,0,[Ext.event.gesture,'SingleTouch'],0);Ext.cmd.derive('Ext.event.gesture.DoubleTap',Ext.event.gesture.SingleTouch,{priority:300,inheritableStatics:{DIFFERENT_TARGET:'Different Target'},config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:['singletap','doubletap'],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(c){var a=this,b;if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}b=a.lastStartPoint=c.changedTouches[0].point;a.startPoint=a.startPoint||b;a.startTime=c.time;clearTimeout(a.singleTapTimer)},onTouchMove:function(c){var a=this,b=c.changedTouches[0].point;if(Math.abs(b.getDistanceTo(a.lastStartPoint))>=a.getMoveDistance()){a.startPoint=null;return a.fail(a.self.TOUCH_MOVED)}},onTouchEnd:function(b){var a=this,f=a.getMaxDuration(),d=b.time,g=b.target,e=a.lastTapTime,h=a.lastTarget,i=b.changedTouches[0].point,c;a.lastTapTime=d;a.lastTarget=g;if(e){c=d-e;if(c<=f&&Math.abs(i.getDistanceTo(a.startPoint))<=a.getTapDistance()){if(g!==h){return a.fail(a.self.DIFFERENT_TARGET)}a.lastTarget=null;a.lastTapTime=0;a.fire('doubletap',b,{touch:b.changedTouches[0],duration:c});a.startPoint=null;return}}if(d-a.startTime>f){a.fireSingleTap(b)}else {a.setSingleTapTimer(b)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fireSingleTap(b)},a.getMaxDuration())},fireSingleTap:function(b,a){this.fire('singletap',b,{touch:a});this.startPoint=null},reset:function(){var a=this;a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null}},0,0,0,0,0,0,[Ext.event.gesture,'DoubleTap'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)});Ext.cmd.derive('Ext.event.gesture.Drag',Ext.event.gesture.SingleTouch,{priority:100,isStarted:!1,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:['dragstart','drag','dragend','dragcancel'],config:{minDistance:8},constructor:function(){Ext.event.gesture.SingleTouch.prototype.constructor.apply(this,arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0}}},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){if(this.isStarted&&this.lastMoveEvent!==null){this.lastMoveEvent.isStopped=!1;this.onTouchEnd(this.lastMoveEvent)}return !1}this.startTime=a.time;this.startPoint=a.changedTouches[0].point},tryDragStart:function(a){var f=this.startPoint,b=a.changedTouches[0],c=b.point,e=this.getMinDistance(),d=this.info;if(Math.abs(c.getDistanceTo(f))>=e){this.isStarted=!0;this.previousPoint=this.lastPoint=c;this.resetInfo('x',a,b);this.resetInfo('y',a,b);d.time=a.time;this.fire('dragstart',a,d)}},onTouchMove:function(a){if(!this.isStarted){this.tryDragStart(a)}if(!this.isStarted){return}var b=a.changedTouches[0],c=b.point;if(this.lastPoint){this.previousPoint=this.lastPoint}this.lastPoint=c;this.lastMoveEvent=a;this.updateInfo('x',a,b);this.updateInfo('y',a,b);this.info.time=a.time;this.fire('drag',a,this.info)},onAxisDragEnd:function(b,a){var c=a.time-a.previousTime[b];if(c>0){a.flick.velocity[b]=(a[b]-a.previous[b])/c}},resetInfo:function(b,h,g){var f=this.lastPoint[b],d=this.startPoint[b],e=f-d,c=b.toUpperCase(),a=this.info;a.touch=g;a.delta[b]=e;a.absDelta[b]=Math.abs(e);a.previousTime[b]=this.startTime;a.previous[b]=d;a[b]=f;a.direction[b]=0;a['start'+c]=this.startPoint[b];a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=0;a.startTime=this.startTime},updateInfo:function(b,l,k){var e=this,d=e.lastPoint[b],g=e.previousPoint[b],f=e.startPoint[b],i=d-f,a=e.info,h=a.direction,c=b.toUpperCase(),j=a.previous[b];a.touch=k;a.delta[b]=i;a.absDelta[b]=Math.abs(i);if(d!==j&&d!==a[b]){a.previous[b]=a[b];a.previousTime[b]=a.time}a[b]=d;if(d>g){h[b]=1}else {if(dthis.getMaxDuration()){return this.fail(this.self.MAX_DURATION_EXCEEDED)}if(this.isHorizontal&&d>this.getMaxOffset()){this.isHorizontal=!1}if(this.isVertical&&c>this.getMaxOffset()){this.isVertical=!1}if(!this.isVertical||!this.isHorizontal){if(this.isHorizontal&&cj){this.isVertical=!1}if(this.isHorizontal&&i>j){this.isHorizontal=!1}if(this.isVertical&&this.isHorizontal){if(i>h){this.isHorizontal=!1}else {this.isVertical=!1}}if(this.isHorizontal){a=f<0?'left':'right';b=f}else {if(this.isVertical){a=g<0?'up':'down';b=g}}a=this.direction||(this.direction=a);if(a==='up'){b=g*-1}else {if(a==='left'){b=f*-1}}this.distance=b;if(!b){return this.fail(this.self.DISTANCE_NOT_ENOUGH)}if(!this.started){if(a==='right'&&this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='down'&&this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='left'&&o-this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='up'&&n-this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}}}}this.started=!0;this.startTime=c.time;this.fire('edgeswipestart',c,{touch:e,direction:a,distance:b,duration:k})}else {this.fire('edgeswipe',c,{touch:e,direction:a,distance:b,duration:k})}},onTouchEnd:function(a){var b;if(this.onTouchMove(a)!==!1){b=a.time-this.startTime;this.fire('edgeswipeend',a,{touch:a.changedTouches[0],direction:this.direction,distance:this.distance,duration:b})}},onTouchCancel:function(a){this.fire('edgeswipecancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){var a=this;a.started=a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null}},0,0,0,0,0,0,[Ext.event.gesture,'EdgeSwipe'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)});Ext.cmd.derive('Ext.event.gesture.LongPress',Ext.event.gesture.SingleTouch,{priority:400,inheritableStatics:{DURATION_NOT_ENOUGH:'Duration Not Enough'},config:{moveDistance:8,minDuration:1000},handledEvents:['longpress','taphold'],fireLongPress:function(a){this.fire('longpress',a,{touch:a.changedTouches[0],duration:this.getMinDuration()});this.isLongPress=!0},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}this.startPoint=a.changedTouches[0].point;this.isLongPress=!1;this.setLongPressTimer(a)},setLongPressTimer:function(b){var a=this;a.timer=Ext.defer(function(){a.fireLongPress(b)},a.getMinDuration())},onTouchMove:function(b){var a=b.changedTouches[0].point;if(Math.abs(a.getDistanceTo(this.startPoint))>=this.getMoveDistance()){return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(){if(!this.isLongPress){return this.fail(this.self.DURATION_NOT_ENOUGH)}},fail:function(){clearTimeout(this.timer);return Ext.event.gesture.SingleTouch.prototype.fail.apply(this,arguments)},reset:function(){this.isLongPress=this.startPoint=null},fire:function(b){if(b==='longpress'){var a=Array.prototype.slice.call(arguments);a[0]='taphold';this.fire.apply(this,a)}return Ext.event.gesture.SingleTouch.prototype.fire.apply(this,arguments)}},0,0,0,0,0,0,[Ext.event.gesture,'LongPress'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)});Ext.cmd.derive('Ext.event.gesture.MultiTouch',Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:!1,isStarted:!1,onTouchStart:function(a){var b=this.requiredTouchesCount,d=a.touches,c=d.length;if(c===b){this.start(a)}else {if(c>b){this.end(a)}}},onTouchEnd:function(a){this.end(a)},onTouchCancel:function(a){this.end(a,!0);return !1},start:function(){if(!this.isTracking){this.isTracking=!0;this.isStarted=!1}},end:function(b,a){if(this.isTracking){this.isTracking=!1;if(this.isStarted){this.isStarted=!1;this[a?'fireCancel':'fireEnd'](b)}}},reset:function(){this.isTracking=this.isStarted=!1}},0,0,0,0,0,0,[Ext.event.gesture,'MultiTouch'],0);Ext.cmd.derive('Ext.event.gesture.Pinch',Ext.event.gesture.MultiTouch,{priority:600,handledEvents:['pinchstart','pinch','pinchend','pinchcancel'],startDistance:0,lastTouches:null,onTouchMove:function(c){if(!this.isTracking){return}var b=c.touches,e,d,a;e=b[0].point;d=b[1].point;a=e.getDistanceTo(d);if(a===0){return}if(!this.isStarted){this.isStarted=!0;this.startDistance=a;this.fire('pinchstart',c,{touches:b,distance:a,scale:1})}else {this.fire('pinch',c,{touches:b,distance:a,scale:a/this.startDistance})}},fireEnd:function(a){this.fire('pinchend',a)},fireCancel:function(a){this.fire('pinchcancel',a)},fail:function(){return Ext.event.gesture.MultiTouch.prototype.fail.apply(this,arguments)},reset:function(){this.lastTouches=null;this.startDistance=0;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Pinch'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.pinch)});Ext.cmd.derive('Ext.event.gesture.Rotate',Ext.event.gesture.MultiTouch,{priority:700,handledEvents:['rotatestart','rotate','rotateend','rotatecancel'],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(g){if(!this.isTracking){return}var b=g.touches,c=this.lastAngle,i,h,a,e,d,f;i=b[0].point;h=b[1].point;a=i.getAngleTo(h);if(c!==null){f=Math.abs(c-a);e=a+360;d=a-360;if(Math.abs(e-c)=this.getMoveDistance()){this.fire('tapcancel',b,{touch:a});return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(a){this.fire('tap',a,{touch:a.changedTouches[0]})},onTouchCancel:function(a){this.fire('tapcancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){this.startPoint=null}},0,0,0,0,0,0,[Ext.event.gesture,'Tap'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)});Ext.cmd.derive('Ext.event.publisher.Focus',Ext.event.publisher.Dom,{type:'focus',handledEvents:['focusenter','focusleave','focusmove'],handledDomEvents:['focusin','focusout'],doDelegatedEvent:function(a,c){var d=this,b;a=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,a,!1);if(a){if(a.type==='focusout'){if(a.relatedTarget==null){d.processFocusIn(a,a.target,document.body,c)}}else {b=a.relatedTarget;d.processFocusIn(a,b==null||!b.tagName?document.body:b,a.target,c)}}},processFocusIn:function(i,d,e,l){var c=this,h,a,b=[],f,g,j,k;j=Ext.fly(d);k=Ext.fly(e);if(j&&j.isFocusSuspended()||k&&k.isFocusSuspended()){return}for(a=d,h=Ext.dom.Element.getCommonAncestor(e,d,!0);a&&a!==h;a=a.parentNode){b.push(a)}if(b.length){f=c.createSyntheticEvent('focusleave',i,d,e);c.publish('focusleave',b,f);if(f.isStopped){return}}b.length=0;for(a=e;a!==h;a=a.parentNode){b.push(a)}g=c.createSyntheticEvent('focusenter',i,e,d);if(b.length){c.publish('focusenter',b,g);if(g.isStopped){return}}b=c.getPropagatingTargets(h);if(b.length){f=c.createSyntheticEvent('focusmove',i,e,d);c.publish('focusmove',b,f);if(f.isStopped){return}}if(l){c.afterEvent(i)}Ext.GlobalEvents.fireEvent('focus',{event:g,toElement:e,fromElement:d})},createSyntheticEvent:function(d,c,e,b){var a=new Ext.event.Event(c);a.type=d;a.relatedTarget=b;a.target=e;return a}},0,0,0,0,0,0,[Ext.event.publisher,'Focus'],function(a){var b;a.instance=new a();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:['focus','blur'],doDelegatedEvent:function(c,e){var d=this;c=d.callSuper([c,!1]);if(c){clearTimeout(b);b=0;if(c.type==='blur'){var f=c.target===window?document.body:c.target;b=setTimeout(function(){b=0;d.processFocusIn(c,f,document.body,e);a.previousActiveElement=null},0);if(c.target===window||c.target===document){a.previousActiveElement=null}else {a.previousActiveElement=c.target}}else {d.processFocusIn(c,a.previousActiveElement||document.body,c.target===window?document.body:c.target,e)}}}})}});Ext.cmd.derive('Ext.fx.State',Ext.Base,{isAnimatable:{'background-color':!0,'background-image':!0,'background-position':!0,'border-bottom-color':!0,'border-bottom-width':!0,'border-color':!0,'border-left-color':!0,'border-left-width':!0,'border-right-color':!0,'border-right-width':!0,'border-spacing':!0,'border-top-color':!0,'border-top-width':!0,'border-width':!0,'bottom':!0,'color':!0,'crop':!0,'font-size':!0,'font-weight':!0,'height':!0,'left':!0,'letter-spacing':!0,'line-height':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'opacity':!0,'outline-color':!0,'outline-offset':!0,'outline-width':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'right':!0,'text-indent':!0,'text-shadow':!0,'top':!0,'vertical-align':!0,'visibility':!0,'width':!0,'word-spacing':!0,'z-index':!0,'zoom':!0,'transform':!0},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(d,a){var g=this.data,e=Ext.isArray(a),b=g.transform,c,f;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof d=='string'){switch(d){case 'translate':if(e){c=a.length;if(c==0){break}b.translateX=a[0];if(c==1){break}b.translateY=a[1];if(c==2){break}b.translateZ=a[2]}else {b.translateX=a};break;case 'rotate':if(e){c=a.length;if(c==0){break}b.rotateX=a[0];if(c==1){break}b.rotateY=a[1];if(c==2){break}b.rotateZ=a[2]}else {b.rotate=a};break;case 'scale':if(e){c=a.length;if(c==0){break}b.scaleX=a[0];if(c==1){break}b.scaleY=a[1];if(c==2){break}b.scaleZ=a[2]}else {b.scaleX=a;b.scaleY=a};break;case 'skew':if(e){c=a.length;if(c==0){break}b.skewX=a[0];if(c==1){break}b.skewY=a[1]}else {b.skewX=a};break;default:b[d]=a;}}else {for(f in d){if(d.hasOwnProperty(f)){a=d[f];this.setTransform(f,a)}}}},set:function(b,a){var d=this.data,c;if(typeof b!='string'){for(c in b){a=b[c];if(c==='transform'){this.setTransform(a)}else {d[c]=a}}}else {if(b==='transform'){this.setTransform(a)}else {d[b]=a}}return this},unset:function(b){var a=this.data;if(a.hasOwnProperty(b)){delete a[b]}return this},getData:function(){return this.data}},1,0,0,0,0,0,[Ext.fx,'State'],0);Ext.cmd.derive('Ext.fx.animation.Abstract',Ext.Evented,{isAnimation:!0,config:{name:'',element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:'linear',iteration:1,direction:'normal',delay:0,onBeforeStart:null,callback:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:!1,replacePrevious:!0},STATE_FROM:'0%',STATE_TO:'100%',DIRECTION_UP:'up',DIRECTION_DOWN:'down',DIRECTION_LEFT:'left',DIRECTION_RIGHT:'right',stateNameRegex:/^(?:[\d\.]+)%$/,constructor:function(){this.states={};Ext.Evented.prototype.constructor.apply(this,arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(b){var c=this.stateNameRegex,a;for(a in b){if(c.test(a)){this.setState(a,b[a])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent('stop',this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(c,d){var b=this.getStates(),a;a=Ext.factory(d,Ext.fx.State,b[c]);if(a){b[c]=a}return this},getState:function(a){return this.getStates()[a]},getData:function(){var a=this,b=a.getStates(),d={},e=a.getBefore(),f=a.getAfter(),k=b[a.STATE_FROM],l=b[a.STATE_TO],i=k.getData(),j=l.getData(),h,c,g;for(c in b){if(b.hasOwnProperty(c)){g=b[c];h=g.getData();d[c]=h}}return {before:e?e.getData():{},after:f?f.getData():{},states:d,from:i,to:j,duration:a.getDuration(),iteration:a.getIteration(),direction:a.getDirection(),easing:a.getEasing(),delay:a.getDelay(),onEnd:a.getOnEnd(),onBeforeEnd:a.getOnBeforeEnd(),onBeforeStart:a.getOnBeforeStart(),scope:a.getScope(),preserveEndState:a.getPreserveEndState(),replacePrevious:a.getReplacePrevious()}}},1,0,0,0,0,0,[Ext.fx.animation,'Abstract'],0);Ext.cmd.derive('Ext.fx.animation.Slide',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.SlideIn',config:{direction:'left',out:!1,offset:0,easing:'auto',containerBox:'auto',elementBox:'auto',isElementBoxFit:!0,useCssTransform:!0},reverseDirectionMap:{up:'down',down:'up',left:'right',right:'left'},applyEasing:function(a){if(a==='auto'){return 'ease-'+(this.getOut()?'in':'out')}return a},getContainerBox:function(){var a=this._containerBox;if(a==='auto'){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==='auto'){a=this.getElement().getBox()}return a},getData:function(){var o=this.getElementBox(),b=this.getContainerBox(),a=o?o:b,j=this.getFrom(),m=this.getTo(),d=this.getOut(),c=this.getOffset(),g=this.getDirection(),n=this.getUseCssTransform(),p=this.getReverse(),e=0,f=0,h,i,k,l;if(p){g=this.reverseDirectionMap[g]}switch(g){case this.DIRECTION_UP:if(d){f=b.top-a.top-a.height-c}else {f=b.bottom-a.bottom+a.height+c};break;case this.DIRECTION_DOWN:if(d){f=b.bottom-a.bottom+a.height+c}else {f=b.top-a.height-a.top-c};break;case this.DIRECTION_RIGHT:if(d){e=b.right-a.right+a.width+c}else {e=b.left-a.left-a.width-c};break;case this.DIRECTION_LEFT:if(d){e=b.left-a.left-a.width-c}else {e=b.right-a.right+a.width+c};break;}h=d?0:e;i=d?0:f;if(n){j.setTransform({translateX:h,translateY:i})}else {j.set('left',h);j.set('top',i)}k=d?e:0;l=d?f:0;if(n){m.setTransform({translateX:k,translateY:l})}else {m.set('left',k);m.set('top',l)}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.slide','animation.slideIn'],0,[Ext.fx.animation,'Slide',Ext.fx.animation,'SlideIn'],0);Ext.cmd.derive('Ext.fx.animation.SlideOut',Ext.fx.animation.Slide,{config:{out:!0}},0,0,0,0,['animation.slideOut'],0,[Ext.fx.animation,'SlideOut'],0);Ext.cmd.derive('Ext.fx.animation.Fade',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.FadeIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(c){var b=this.getTo(),a=this.getFrom();if(c){a.set('opacity',1);b.set('opacity',0)}else {a.set('opacity',0);b.set('opacity',1)}}},0,0,0,0,['animation.fade','animation.fadeIn'],0,[Ext.fx.animation,'Fade',Ext.fx.animation,'FadeIn'],0);Ext.cmd.derive('Ext.fx.animation.FadeOut',Ext.fx.animation.Fade,{config:{out:!0,before:{}}},0,0,0,0,['animation.fadeOut'],0,[Ext.fx.animation,'FadeOut'],0);Ext.cmd.derive('Ext.fx.animation.Flip',Ext.fx.animation.Abstract,{config:{easing:'ease-in',direction:'right',half:!1,out:null},getData:function(){var c=this,k=c.getFrom(),m=c.getTo(),j=c.getDirection(),b=c.getOut(),l=c.getHalf(),a=l?90:180,h=1,i=1,d=0,e=0,f=0,g=0;if(b){i=0.8}else {h=0.8}switch(j){case this.DIRECTION_UP:if(b){f=a}else {d=-a};break;case this.DIRECTION_DOWN:if(b){f=-a}else {d=a};break;case this.DIRECTION_RIGHT:if(b){g=a}else {e=-a};break;case this.DIRECTION_LEFT:if(b){g=-a}else {e=a};break;}k.setTransform({rotateX:d,rotateY:e,scale:h});m.setTransform({rotateX:f,rotateY:g,scale:i});return Ext.fx.animation.Abstract.prototype.getData.call(this)}},0,0,0,0,['animation.flip'],0,[Ext.fx.animation,'Flip'],0);Ext.cmd.derive('Ext.fx.animation.Pop',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.PopIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var b=this.getTo(),a=this.getFrom(),c=this.getOut();if(c){a.set('opacity',1);a.setTransform({scale:1});b.set('opacity',0);b.setTransform({scale:0})}else {a.set('opacity',0);a.setTransform({scale:0});b.set('opacity',1);b.setTransform({scale:1})}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.pop','animation.popIn'],0,[Ext.fx.animation,'Pop',Ext.fx.animation,'PopIn'],0);Ext.cmd.derive('Ext.fx.animation.PopOut',Ext.fx.animation.Pop,{config:{out:!0,before:{}}},0,0,0,0,['animation.popOut'],0,[Ext.fx.animation,'PopOut'],0);Ext.cmd.derive('Ext.fx.Animation',Ext.Base,{constructor:function(a){var c=Ext.fx.animation.Abstract,b;if(typeof a=='string'){b=a;a={}}else {if(a&&a.type){b=a.type}}if(b){c=Ext.ClassManager.getByAlias('animation.'+b)}return Ext.factory(a,c)}},1,0,0,0,0,0,[Ext.fx,'Animation'],0);Ext.cmd.derive('Ext.fx.runner.Css',Ext.Evented,{prefixedProperties:{'transform':!0,'transform-origin':!0,'perspective':!0,'transform-style':!0,'transition':!0,'transition-property':!0,'transition-duration':!0,'transition-timing-function':!0,'transition-delay':!0,'animation':!0,'animation-name':!0,'animation-duration':!0,'animation-iteration-count':!0,'animation-direction':!0,'animation-timing-function':!0,'animation-delay':!0},lengthProperties:{'top':!0,'right':!0,'bottom':!0,'left':!0,'width':!0,'height':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'border-bottom-width':!0,'border-left-width':!0,'border-right-width':!0,'border-spacing':!0,'border-top-width':!0,'border-width':!0,'outline-width':!0,'letter-spacing':!0,'line-height':!0,'text-indent':!0,'word-spacing':!0,'font-size':!0,'translate':!0,'translateX':!0,'translateY':!0,'translateZ':!0,'translate3d':!0},durationProperties:{'transition-duration':!0,'transition-delay':!0,'animation-duration':!0,'animation-delay':!0},angleProperties:{rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,skew:!0,skewX:!0,skewY:!0},lengthUnitRegex:/([a-z%]*)$/,DEFAULT_UNIT_LENGTH:'px',DEFAULT_UNIT_ANGLE:'deg',DEFAULT_UNIT_DURATION:'ms',formattedNameCache:{},transformMethods3d:['translateX','translateY','translateZ','rotate','rotateX','rotateY','rotateZ','skewX','skewY','scaleX','scaleY','scaleZ'],transformMethodsNo3d:['translateX','translateY','rotate','skewX','skewY','scaleX','scaleY'],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement('style');a.type='text/css';(document.head||document.getElementsByTagName('head')[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var i=this.getStyleSheet(),h=this.ruleStylesCache,k=i.cssRules,d,g,b,c,f,a,e;for(d in j){g=j[d];b=h[d];if(b===undefined){f=k.length;i.insertRule(d+'{}',f);b=h[d]=k.item(f).style}c=b.$cache;if(!c){c=b.$cache={}}for(a in g){e=this.formatValue(g[a],a);a=this.formatName(a);if(c[a]!==e){c[a]=e;if(e===null){b.removeProperty(a)}else {b.setProperty(a,e,'important')}}}}return this},applyStyles:function(f){var c,e,d,b,a,g;for(c in f){if(f.hasOwnProperty(c)){e=document.getElementById(c);if(!e){continue}d=e.style;b=f[c];for(a in b){if(b.hasOwnProperty(a)){g=this.formatValue(b[a],a);a=this.formatName(a);if(g===null){d.removeProperty(a)}else {d.setProperty(a,g,'important')}}}}}return this},formatName:function(b){var c=this.formattedNameCache,a=c[b];if(!a){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){a=this.vendorPrefix+b}else {a=b}c[b]=a}return a},formatValue:function(a,c){var j=typeof a,i=this.DEFAULT_UNIT_LENGTH,g,d,b,f,h,e,k;if(a===null){return ''}if(j=='string'){if(this.lengthProperties[c]){k=a.match(this.lengthUnitRegex)[1];if(k.length>0){}else {return a+i}}return a}else {if(j=='number'){if(a==0){return '0'}if(this.lengthProperties[c]){return a+i}if(this.angleProperties[c]){return a+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[c]){return a+this.DEFAULT_UNIT_DURATION}}else {if(c==='transform'){g=this.transformMethods;h=[];for(b=0,f=g.length;b0?e.join(', '):'none'}}}}return a}},1,0,0,0,0,0,[Ext.fx.runner,'Css'],0);Ext.cmd.derive('Ext.fx.runner.CssTransition',Ext.fx.runner.Css,{alternateClassName:'Ext.Animator',singleton:!0,listenersAttached:!1,constructor:function(){this.runningAnimationsData={};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=!0;Ext.getWin().on('transitionend','onTransitionEnd',this)},onTransitionEnd:function(c){var a=c.target,b=a.id;if(b&&this.runningAnimationsData.hasOwnProperty(b)){this.refreshRunningAnimationsData(Ext.get(a),[c.browserEvent.propertyName])}},onAnimationEnd:function(d,a,b,c,n){var l=d.getId(),j=this.runningAnimationsData[l],k={},h={},g,f,e,m,i;b.un('stop','onAnimationStop',this);if(j){g=j.nameMap}k[l]=h;if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,d,c)}b.fireEvent('animationbeforeend',b,d,c);this.fireEvent('animationbeforeend',this,b,d,c);if(n||!c&&!a.preserveEndState){f=a.toPropertyNames;for(e=0,m=f.length;e0},refreshRunningAnimationsData:function(i,m,f,g){var s=i.getId(),r=this.runningAnimationsData,e=r[s];if(!e){return}var o=e.nameMap,n=e.nameList,c=e.sessions,h,j,p,d,b,a,k,q,l=!1;f=Boolean(f);g=Boolean(g);if(!c){return this}h=c.length;if(h===0){return this}if(g){e.nameMap={};n.length=0;for(b=0;b');b.close();this.testElement=c=b.createElement('div');c.style.setProperty('position','absolute','important');b.body.appendChild(c);this.testElementComputedStyle=window.getComputedStyle(c)}return c},getCssStyleValue:function(b,a){var c=this.getTestElement(),e=this.testElementComputedStyle,d=c.style;d.setProperty(b,a);if(Ext.browser.is.Firefox){c.offsetHeight}a=e.getPropertyValue(b);d.removeProperty(b);return a},run:function(t){var a=this,H=a.lengthProperties,E={},j={},d={},i,f,m,k,F,g,e,u,v,s,r,w,x,G,c,o,y,C,h,b,l,D,n,z,q,p,A,B;if(!a.listenersAttached){a.attachListeners()}t=Ext.Array.from(t);for(w=0,G=t.length;w0){a.refreshRunningAnimationsData(i,Ext.Array.merge(g,e),!0,d.replacePrevious)}q=s.nameMap;p=s.nameList;y={};for(x=0;x0){g=Ext.Array.difference(p,g);e=Ext.Array.merge(g,e);r['transition-property']=g}E[f]=r;j[f]=Ext.apply({},k);j[f]['transition-property']=e;j[f]['transition-duration']=d.duration;j[f]['transition-timing-function']=d.easing;j[f]['transition-delay']=d.delay;c.startTime=Date.now()}v=a.$className;a.applyStyles(E);u=function(b){if(b.data===v&&b.source===window){window.removeEventListener('message',u,!1);a.applyStyles(j)}};if(window.requestAnimationFrame){window.requestAnimationFrame(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')})}else {Ext.defer(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')},1)}},onAnimationStop:function(h){var c=this.runningAnimationsData,e,f,d,b,g,a;for(e in c){if(c.hasOwnProperty(e)){f=c[e];d=f.sessions;for(b=0,g=d.length;b'){this.isParentReference=!0;a=a.substring(0,b)}return a}}},0,0,0,0,0,0,[Ext.mixin,'Container'],0);Ext.cmd.derive('Ext.mixin.Responsive',Ext.Mixin,function(a){return {mixinConfig:{id:'responsive',after:{destroy:'destroy'}},config:{responsiveConfig:{$value:undefined,merge:function(c,d,g,f){if(!c){return d}var e=d?Ext.Object.chain(d):{},b;for(b in c){if(!f||!(b in e)){e[b]={fn:null,config:c[b]}}}return e}},responsiveFormulas:{$value:0,merge:function(c,d,e,b){return this.mergeNew(c,d,e,b)}}},destroy:function(){a.unregister(this);this.callParent()},privates:{statics:{active:!1,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=!0;a.updateContext();Ext.on('resize',a.onResize,a)},deactivate:function(){a.active=!1;Ext.un('resize',a.onResize,a)},notify:function(){var b=a.all,e=a.context,d=Ext.GlobalEvents,f=a.timer,c;if(f){a.timer=null;Ext.Function.cancelAnimationFrame(f)}a.updateContext();Ext.suspendLayouts();d.fireEvent('beforeresponsiveupdate',e);for(c in b){b[c].setupResponsiveContext()}d.fireEvent('beginresponsiveupdate',e);for(c in b){b[c].updateResponsiveState()}d.fireEvent('responsiveupdate',e);Ext.resumeLayouts(!0)},onResize:function(){if(!a.timer){a.timer=Ext.Function.requestAnimationFrame(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(c,d,b){var g=d&&d[b],f=c.config,h,e;if(g){e=c.getConfigurator();h=e.configs[b];f[b]=h.merge(g,f[b],c)}},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),c=e.getViewportHeight(),b=a.context;b.width=d;b.height=c;b.tall=d','',' ({childCount} children)','','',' ({depth} deep)','','',', {type}: {[this.time(values.sum)]} msec (','avg={[this.time(values.sum / parent.count)]}',')','','
    '].join(''),{time:function(a){return Math.round(a*100)/100}})}var a=this.getData(b);a.name=this.name;a.pure.type='Pure';a.total.type='Total';a.times=[a.pure,a.total];return c.apply(a)},getData:function(b){var a=this;return {count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:setToJSON(a.count,a.childCount,b,a.pure),total:setToJSON(a.count,a.childCount,b,a.total)}},enter:function(){var c=this,d={accum:c,leave:leaveFrame,childTime:0,parent:b};++c.depth;if(c.maxDepth0){d=a==='this'?this:typeof a==='string'?this[a]:typeof a==='number'?arguments[a]:null;if(d){f=d.id}if(f!=null){console.log(b+' for '+f+': '+c+'ms')}else {console.log(b+' for unknown: '+c+'ms')}if(console.trace){console.trace()}}return h}}(b,d[b])}Ext.override(f,c)}}}}},1,0,0,0,0,0,[Ext.perf,'Monitor',Ext,'Perf'],0);Ext.cmd.derive('Ext.plugin.Abstract',Ext.Base,{alternateClassName:'Ext.AbstractPlugin',isPlugin:!0,constructor:function(a){if(a){this.pluginConfig=a;this.initConfig(a)}},clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},setCmp:function(a){this.cmp=a},getCmp:function(){return this.cmp},init:Ext.emptyFn,destroy:function(){this.cmp=this.pluginConfig=null;this.callParent()},onClassExtended:function(c,b,d){var a=b.alias;if(a&&!b.ptype){if(Ext.isArray(a)){a=a[0]}c.prototype.ptype=a.split('plugin.')[1]}},resolveListenerScope:function(b){var a=this,d=a.getCmp(),c;if(d){c=d.resolveSatelliteListenerScope(a,b)}return c||a.mixins.observable.resolveListenerScope.call(a,b)}},1,0,0,0,0,0,[Ext.plugin,'Abstract',Ext,'AbstractPlugin'],0);Ext.define('Ext.overrides.plugin.Abstract',{override:'Ext.plugin.Abstract',$configStrict:!1,$configPrefixed:!1,disabled:!1,getState:null,applyState:null,enable:function(){this.disabled=!1},disable:function(){this.disabled=!0}});Ext.cmd.derive('Ext.util.ItemCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.ItemCollection',getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}},0,0,0,0,0,0,[Ext.util,'ItemCollection',Ext,'ItemCollection'],0);Ext.cmd.derive('Ext.util.TaskManager',Ext.util.TaskRunner,{alternateClassName:['Ext.TaskManager'],singleton:!0},0,0,0,0,0,0,[Ext.util,'TaskManager',Ext,'TaskManager'],0);Ext.cmd.derive('Ext.util.TextMetrics',Ext.Base,{statics:{shared:null,measure:function(d,e,c){var b=this,a=b.shared;if(!a){a=b.shared=new b(d,c)}a.bind(d);a.setFixedWidth(c||'auto');return a.getSize(e)},destroy:function(){var a=this;Ext.destroy(a.shared);a.shared=null}},constructor:function(c,b){var d=this,a=Ext.getBody().createChild({role:'presentation',cls:'x-textmetrics'});a.setVisibilityMode(1);d.measure=a;if(c){d.bind(c)}a.position('absolute');a.setLocalXY(-1000,-1000);a.hide();if(b){a.setWidth(b)}},getSize:function(c){var a=this.measure,b;a.setHtml(c);b=a.getSize();a.setHtml('');return b},bind:function(b){var a=this;a.el=Ext.get(b);a.measure.setStyle(a.el.getStyle(['font-size','font-style','font-weight','font-family','line-height','text-transform','letter-spacing','word-break']))},setFixedWidth:function(a){this.measure.setWidth(a)},getWidth:function(a){this.measure.dom.style.width='auto';return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height},destroy:function(){var a=this;a.el=a.measure=Ext.destroy(a.measure);a.callParent()}},1,0,0,0,0,0,[Ext.util,'TextMetrics'],function(){Ext.Element.override({getTextWidth:function(a,c,b){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(a,this.dom.innerHTML,!0)).width,c||0,b||1000000)}})});Ext.define(null,{override:'Ext.event.publisher.Focus',compatibility:Ext.isIE10m,doDelegatedEvent:function(a,d){var c=document.body,b=Ext.synchronouslyFocusing;if(b&&(a.type==='focusout'&&a.srcElement===b&&a.toElement===c||a.type==='focusin'&&a.srcElement===c&&a.fromElement===b&&a.toElement===null)){return}return this.callParent([a,d])}});Ext.define(null,{override:'Ext.scroll.DomScroller',compatibility:Ext.isIE8,privates:{doScrollTo:function(a,b,j){var c=this,f=c.getElement(),e,d,i,g,h;if(f&&!f.destroyed){d=this.getElement().dom;g=a===Infinity;h=b===Infinity;if(g||h){e=c.getMaxPosition();if(g){a=e.x}if(h){b=e.y}}a=c.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}f.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(a!=null&&b!=null){c.deferDomScroll=!0}if(b!=null){d.scrollTop=b}if(a!=null){d.scrollLeft=a}if(c.deferDomScroll){c.deferDomScroll=!1;+d.scrollLeft;d.scrollLeft=a}}c.positionDirty=!0}},onDomScroll:function(){var a=this;if(a.deferDomScroll){return}a.callParent()}}});Ext.cmd.derive('Ext.ElementLoader',Ext.Base,{statics:{Renderer:{Html:function(c,b,a){c.getTarget().setHtml(b.responseText,a.scripts===!0,a.rendererScope);return !0}}},url:null,params:null,baseParams:null,autoLoad:!1,target:null,loadMask:!1,ajaxOptions:null,scripts:!1,isLoader:!0,constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.setTarget(a.target);if(a.autoLoad){b=a.autoLoad;if(b===!0){b=null}a.load(b)}},setTarget:function(a){var b=this;a=Ext.get(a);if(b.target&&b.target!==a){b.abort()}b.target=a},getTarget:function(){return this.target||null},abort:function(){var a=this.active;if(a!==undefined){Ext.Ajax.abort(a.request);if(a.mask){this.removeMask()}delete this.active}},removeMask:function(){this.target.unmask()},addMask:function(a){this.target.mask(a===!0?null:a)},load:function(b){b=Ext.apply({},b);var a=this,d=Ext.isDefined(b.loadMask)?b.loadMask:a.loadMask,c=Ext.apply({},b.params),e=Ext.apply({},b.ajaxOptions),f=b.callback||a.callback,g=b.scope||a.scope||a;Ext.applyIf(e,a.ajaxOptions);Ext.applyIf(b,e);Ext.applyIf(c,a.params);Ext.apply(c,a.baseParams);Ext.applyIf(b,{url:a.url});Ext.apply(b,{scope:a,params:c,callback:a.onComplete});if(a.fireEvent('beforeload',a,b)===!1){return}if(d){a.addMask(d)}a.active={options:b,mask:d,scope:g,callback:f,success:b.success||a.success,failure:b.failure||a.failure,renderer:b.renderer||a.renderer,scripts:Ext.isDefined(b.scripts)?b.scripts:a.scripts};a.active.request=Ext.Ajax.request(b);a.setOptions(a.active,b)},setOptions:function(b,a){b.rendererScope=a.rendererScope||this.rendererScope||this},onComplete:function(d,e,c){var a=this,b=a.active,g,f;if(b){f=b.scope;g=b.rendererScope;if(e){e=a.getRenderer(b.renderer).call(g,a,c,b)!==!1}if(e){Ext.callback(b.success,f,[a,c,d]);a.fireEvent('load',a,c,d)}else {Ext.callback(b.failure,f,[a,c,d]);a.fireEvent('exception',a,c,d)}Ext.callback(b.callback,f,[a,e,c,d]);if(b.mask){a.removeMask()}}delete a.active},getRenderer:function(a){if(Ext.isFunction(a)){return a}return this.statics().Renderer.Html},startAutoRefresh:function(b,c){var a=this;a.stopAutoRefresh();a.autoRefresh=Ext.interval(function(){a.load(c)},b)},stopAutoRefresh:function(){clearInterval(this.autoRefresh);delete this.autoRefresh},isAutoRefreshing:function(){return Ext.isDefined(this.autoRefresh)},destroy:function(){var a=this;a.stopAutoRefresh();delete a.target;a.abort();a.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext,'ElementLoader'],0);Ext.cmd.derive('Ext.ComponentLoader',Ext.ElementLoader,{statics:{Renderer:{Data:function(c,b,d){var a=!0;try{c.getTarget().update(Ext.decode(b.responseText))}catch(e){a=!1}return a},Component:function(f,d,e){var b=!0,a=f.getTarget(),c=[];try{c=Ext.decode(d.responseText)}catch(g){b=!1}if(b){a.suspendLayouts();if(e.removeAll){a.removeAll()}a.add(c);a.resumeLayouts(!0)}return b}}},target:null,loadOnRender:!1,loadMask:!1,renderer:'html',setTarget:function(b){var a=this;if(Ext.isString(b)){b=Ext.getCmp(b)}if(a.target&&a.target!==b){a.abort()}a.target=b;if(b&&a.loadOnRender){if(b.rendered){a.doLoadOnRender()}else {a.mon(b,'render',a.doLoadOnRender,a)}}},doLoadOnRender:function(){var a=this.loadOnRender;this.load(Ext.isObject(a)?a:null)},removeMask:function(){this.target.setLoading(!1)},addMask:function(a){this.target.setLoading(a)},setOptions:function(b,a){b.removeAll=Ext.isDefined(a.removeAll)?a.removeAll:this.removeAll;b.rendererScope=a.rendererScope||this.rendererScope||this.target},getRenderer:function(a){if(Ext.isFunction(a)){return a}var b=this.statics().Renderer;switch(a){case 'component':return b.Component;case 'data':return b.Data;default:return Ext.ElementLoader.Renderer.Html;}}},0,0,0,0,0,0,[Ext,'ComponentLoader'],0);Ext.cmd.derive('Ext.layout.SizeModel',Ext.Base,{constructor:function(e){var a=this,b=a.self,d=b.sizeModelsArray,c;Ext.apply(a,e);a[c=a.name]=!0;a.fixed=!(a.auto=a.natural||a.shrinkWrap);d[a.ordinal=d.length]=b[c]=b.sizeModels[c]=a},statics:{sizeModelsArray:[],sizeModels:{}},calculated:!1,configured:!1,constrainedMax:!1,constrainedMin:!1,natural:!1,shrinkWrap:!1,calculatedFromConfigured:!1,calculatedFromNatural:!1,calculatedFromShrinkWrap:!1,names:null},1,0,0,0,0,0,[Ext.layout,'SizeModel'],function(){var a=this,d=a.sizeModelsArray,b,c,f,g,e;new a({name:'calculated'});new a({name:'configured',names:{width:'width',height:'height'}});new a({name:'natural'});new a({name:'shrinkWrap'});new a({name:'calculatedFromConfigured',configured:!0,calculatedFrom:!0,names:{width:'width',height:'height'}});new a({name:'calculatedFromNatural',natural:!0,calculatedFrom:!0});new a({name:'calculatedFromShrinkWrap',shrinkWrap:!0,calculatedFrom:!0});new a({name:'constrainedMax',configured:!0,constrained:!0,names:{width:'maxWidth',height:'maxHeight'}});new a({name:'constrainedMin',configured:!0,constrained:!0,names:{width:'minWidth',height:'minHeight'}});new a({name:'constrainedDock',configured:!0,constrained:!0,constrainedByMin:!0,names:{width:'dockConstrainedWidth',height:'dockConstrainedHeight'}});for(b=0,f=d.length;b-1&&e','
    role="presentation"','class="{innerCtCls}">','{%this.renderBody(out,values)%}','
    ',''],beginLayout:function(a){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(a)},beforeLayoutCycle:function(d){var a=this.owner,c=a.inheritedState,b=a.inheritedStateInner;if(!c||c.invalid){c=a.getInherited();b=a.inheritedStateInner}if(d.widthModel.shrinkWrap){b.inShrinkWrapTable=!0}else {delete b.inShrinkWrapTable}},beginLayoutCycle:function(e){var a=this,g=a.outerCt,l=a.lastOuterCtWidth||'',k=a.lastOuterCtHeight||'',j=a.lastOuterCtTableLayout||'',i=e.state,f,d,c,b,h;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);d=c=b='';if(!e.widthModel.shrinkWrap){d='100%';h=a.owner.inheritedStateInner;f=a.getOverflowXStyle(e);b=h.inShrinkWrapTable||f==='auto'||f==='scroll'?'':'fixed'}if(!e.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){c='100%'}if(d!==l||a.hasOuterCtPxWidth){g.setStyle('width',d);a.lastOuterCtWidth=d;a.hasOuterCtPxWidth=!1}if(b!==j){g.setStyle('table-layout',b);a.lastOuterCtTableLayout=b}if(c!==k||a.hasOuterCtPxHeight){g.setStyle('height',c);a.lastOuterCtHeight=c;a.hasOuterCtPxHeight=!1}if(a.hasInnerCtPxHeight){a.innerCt.setStyle('height','');a.hasInnerCtPxHeight=!1}i.overflowAdjust=i.overflowAdjust||a.lastOverflowAdjust},calculate:function(b){var a=this,d=b.state,c=a.getContainerSize(b,!0),e=d.calculatedItems||(d.calculatedItems=a.calculateItems?a.calculateItems(b,c):!0);a.setCtSizeIfNeeded(b,c);if(e&&b.hasDomProp('containerChildrenSizeDone')){a.calculateContentSize(b);if(c.gotAll){if(a.manageOverflow&&!b.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(b,c)}return}}a.done=!1},calculateContentSize:function(a){var b=this,f=(a.widthModel.shrinkWrap?1:0)|(a.heightModel.shrinkWrap?2:0),d=f&1||undefined,c=f&2||undefined,e=0,g=a.props;if(d){if(isNaN(g.contentWidth)){++e}else {d=undefined}}if(c){if(isNaN(g.contentHeight)){++e}else {c=undefined}}if(e){if(d&&!a.setContentWidth(b.measureContentWidth(a))){b.done=!1}if(c&&!a.setContentHeight(b.measureContentHeight(a))){b.done=!1}}},calculateOverflow:function(d){var c=this,g,f,e,a,h,i,b;h=c.getOverflowXStyle(d)==='auto';i=c.getOverflowYStyle(d)==='auto';if(h||i){e=Ext.getScrollbarSize();b=d.overflowContext.el.dom;a=0;if(b.scrollWidth>b.clientWidth){a|=1}if(b.scrollHeight>b.clientHeight){a|=2}g=i&&a&2?e.width:0;f=h&&a&1?e.height:0;if(g!==c.lastOverflowAdjust.width||f!==c.lastOverflowAdjust.height){c.done=!1;d.invalidate({state:{overflowAdjust:{width:g,height:f},overflowState:a,secondPass:!0}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(b,a){var c=a.$layout,d=Ext.XTemplate,e=c.beforeBodyTpl,f=c.afterBodyTpl;if(e){d.getTpl(c,'beforeBodyTpl').applyOut(a,b)}this.renderItems(b,a);this.renderContent(b,a);if(f){d.getTpl(c,'afterBodyTpl').applyOut(a,b)}},doRenderPadding:function(d,b){var e=b.$layout,a=b.$layout.owner,c=a[a.contentPaddingProperty];if(e.managePadding&&c){d.push('padding:',a.unitizeBox(c))}},finishedLayout:function(b){var a=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){a.repaint()}if(Ext.isOpera){a.setStyle('position','relative');a.dom.scrollWidth;a.setStyle('position','')}},getContainerSize:function(c,d){var b=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),a=c.state.overflowAdjust;if(a){b.width-=a.width;b.height-=a.height}return b},getRenderData:function(){var b=this,a=Ext.layout.container.Container.prototype.getRenderData.call(this);a.innerCtCls=b.innerCtCls;a.outerCtCls=b.outerCtCls;return a},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(a){return a.overflowXStyle||(a.overflowXStyle=this.owner.scrollFlags.overflowX||a.overflowContext.getStyle('overflow-x'))},getOverflowYStyle:function(a){return a.overflowYStyle||(a.overflowYStyle=this.owner.scrollFlags.overflowY||a.overflowContext.getStyle('overflow-y'))},initContextItems:function(a){var b=this,d=a.target,c=b.owner.getOverflowEl();a.outerCtContext=a.getEl('outerCt',b);a.innerCtContext=a.getEl('innerCt',b);a.overflowContext=c===a.el?a:a.getEl(c);if(d[d.contentPaddingProperty]!==undefined){a.paddingContext=a.innerCtContext}},initLayout:function(){var a=this,b=Ext.getScrollbarSize().width,c=a.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&a.manageOverflow&&!a.hasOwnProperty('lastOverflowAdjust')){if(c.scrollable||a.reserveScrollbar){a.lastOverflowAdjust={width:b,height:0}}}},measureContentHeight:function(b){var a=this.outerCt.getHeight(),c=b.target;if(this.managePadding&&c[c.contentPaddingProperty]===undefined){a+=b.targetContext.getPaddingInfo().height}return a},measureContentWidth:function(f){var a,b,e,c,d;if(this.chromeCellMeasureBug){a=this.innerCt.dom;b=a.style;e=b.display;if(e==='table-cell'){b.display='';a.offsetWidth;b.display=e}}if(Ext.isSafari){a=this.outerCt.dom;b=a.style;b.display='table-cell';a.offsetWidth;a.style.display=''}c=this.outerCt.getWidth();d=f.target;if(this.managePadding&&d[d.contentPaddingProperty]===undefined){c+=f.targetContext.getPaddingInfo().width}return c},setCtSizeIfNeeded:function(a,h){var c=this,b=h.height,k=a.paddingContext.getPaddingInfo(),g=c.getTarget(),f=c.getOverflowXStyle(a),j=f==='auto'||f==='scroll',i=Ext.getScrollbarSize(),e,d;if(b&&!a.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){e=!0}if(Ext.isIE8){d=!0}if((e||d)&&j&&g.dom.scrollWidth>g.dom.clientWidth){b=Math.max(b-i.height,0)}if(e){a.outerCtContext.setProp('height',b+k.height);c.hasOuterCtPxHeight=!0}if(d){a.innerCtContext.setProp('height',b);c.hasInnerCtPxHeight=!0}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt},getScrollerEl:function(){return this.outerCt}},0,0,0,0,['layout.auto','layout.autocontainer'],0,[Ext.layout.container,'Auto'],function(){this.prototype.chromeCellMeasureBug=Ext.isChrome&&Ext.chromeVersion>=26});Ext.cmd.derive('Ext.ZIndexManager',Ext.Base,{alternateClassName:'Ext.WindowGroup',statics:{zBase:9000,activeCounter:0},constructor:function(b){var a=this;a.id=Ext.id(null,'zindex-mgr-');a.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(c,d){var a=(c.alwaysOnTop||0)-(d.alwaysOnTop||0);if(!a){a=c.getActiveCounter()-d.getActiveCounter()}return a}},filters:{filterFn:function(a){return a.isVisible()}}});a.zIndexStack.addObserver(a);a.front=null;a.globalListeners=Ext.GlobalEvents.on({beforehide:a.onComponentShowHide,show:a.onComponentShowHide,scope:a,destroyable:!0});if(b){if(b.isContainer){b.on('resize',a.onContainerResize,a);a.zseed=Ext.Number.from(a.rendered?b.getEl().getStyle('zIndex'):undefined,a.getNextZSeed());a.targetEl=b.getTargetEl();a.container=b}else {Ext.on('resize',a.onContainerResize,a);a.zseed=a.getNextZSeed();a.targetEl=Ext.get(b)}}else {a.zseed=a.getNextZSeed();Ext.onInternalReady(function(){Ext.on('resize',a.onContainerResize,a);a.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return Ext.ZIndexManager.zBase+=10000},setBase:function(a){this.zseed=a;return this.onCollectionSort()},onCollectionSort:function(){var d=this,b=d.front,k=b&&b.containsFocus,g=d.zseed,i=d.zIndexStack.getRange(),j=i.length,e,c,f,a,h=!1;for(e=0;e0;){a=c[b];if(a.isComponent&&e.call(d||a,a)===!1){return}}},destroy:function(){var a=this,c=a.zIndexStack.getRange(),d=c.length,b;for(b=0;b1){b.refresh()}if(a.hasListeners.afterlayout){a.fireEvent('afterlayout',a,c)}},beforeDestroy:function(){var a=this,d=a.items,c=a.floatingItems,b;if(d){while(b=d.first()){a.doRemove(b,!0)}}if(c){while(b=c.first()){a.doRemove(b,!0)}}Ext.destroy(a.layout);Ext.Component.prototype.beforeDestroy.call(this)},destroy:function(){var a=this;Ext.Component.prototype.destroy.call(this);if(a.items){a.items.destroy()}if(a.floatingItems){a.floatingItems.destroy()}a.refs=a.items=a.floatingItems=a.layout=null},beforeRender:function(){var a=this,c=a.getLayout(),b;a.preventChildDisable=!0;Ext.Component.prototype.beforeRender.call(this);a.preventChildDisable=!1;if(!c.initialized){c.initLayout()}b=c.targetCls;if(b){a.applyTargetCls(b)}},cascade:function(f,e,d){var a=this,h=a.items?a.items.items:[],j=h.length,g=0,b,c=d?d.concat(a):[a],i=c.length-1;if(f.apply(e||a,c)!==!1){for(;g','
    ','
    {msg}
    ','
    ',''],maskOnDisable:!1,skipLayout:!0,constructor:function(c){var a=this,b;if(arguments.length===2){b=a.target=c;c=arguments[1]}else {b=c.target}Ext.Component.prototype.constructor.call(this,c);if(b.isComponent){a.ownerCt=b;a.hidden=!0;a.renderTo=a.getMaskTarget();a.external=a.renderTo===Ext.getBody();a.bindComponent(b)}else {b=Ext.get(b);a.isElement=!0;a.renderTo=a.target}a.render(a.renderTo);if(a.store){a.bindStore(a.store,!0)}},initRenderData:function(){var a=Ext.Component.prototype.initRenderData.apply(this,arguments);a.msg=this.msg||'';return a},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(b){var a=this,c={scope:this,resize:a.sizeMask};if(a.external){c.added=a.onComponentAdded;c.removed=a.onComponentRemoved;if(b.floating){c.move=a.sizeMask;a.activeOwner=b}else {if(b.ownerCt){a.onComponentAdded(b.ownerCt)}}}a.mon(b,c);if(a.external){a.mon(Ext.GlobalEvents,{show:a.onContainerShow,hide:a.onContainerHide,expand:a.onContainerExpand,collapse:a.onContainerCollapse,scope:a})}},onComponentAdded:function(b){var a=this;delete a.activeOwner;a.floatParent=b;if(!b.floating){b=b.up('[floating]')}if(b){a.activeOwner=b;a.mon(b,'move',a.sizeMask,a);a.mon(b,'tofront',a.onOwnerToFront,a)}else {a.preventBringToFront=!0}b=a.floatParent.ownerCt;if(a.rendered&&a.isVisible()&&b){a.floatOwner=b;a.mon(b,'afterlayout',a.sizeMask,a,{single:!0})}},onComponentRemoved:function(d){var a=this,b=a.activeOwner,c=a.floatOwner;if(b){a.mun(b,'move',a.sizeMask,a);a.mun(b,'tofront',a.onOwnerToFront,a)}if(c){a.mun(c,'afterlayout',a.sizeMask,a)}delete a.activeOwner;delete a.floatOwner},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){a.el.on('mousedown',a.onMouseDown,a)}this.el.skipGarbageCollection=!0},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(b,a){this.el.setStyle('zIndex',a+1)},onContainerShow:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var a=this;if(a.rendered&&a.isVisible()){a.hide();a.showNext=!0}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var a=this,b=a.activeOwner||a.target,c=a.external?a.getOwner().el:a.getMaskTarget();if(a.rendered&&a.isVisible()){if(a.external){if(!a.isElement&&b.floating){a.onOwnerToFront(b,b.el.getZIndex())}a.el.setSize(c.getSize()).alignTo(c,'tl-tl')}a.msgWrapEl.center(a.el)}},bindStore:function(a,c){var b=this;Ext.destroy(b.proxyListeners);b.mixins.storeholder.bindStore.apply(b,arguments);a=b.store;if(a){while(a.getSource){a=a.getSource()}if(!a.loadsSynchronously()){b.proxyListeners=a.getProxy().on({exception:b.onLoad,scope:b,destroyable:!0})}if(a.isLoading()){b.onBeforeLoad()}}},getStoreListeners:function(d){var c=this.onLoad,b=this.onBeforeLoad,a={cachemiss:b,cachefilled:{fn:c,buffer:100}};if(!d.loadsSynchronously()){a.beforeload=b;a.load=c}return a},onDisable:function(){Ext.Component.prototype.onDisable.apply(this,arguments);if(this.loading){this.onLoad()}},getOwner:function(){return this.ownerCt||this.ownerCmp||this.floatParent},getMaskTarget:function(){var a=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?a.getTargetEl():a.getMaskTarget()||Ext.getBody()},onBeforeLoad:function(){var b=this,a=b.getOwner(),c;if(!b.disabled){b.loading=!0;if(a.componentLayoutCounter){b.maybeShow()}else {c=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=c;c.apply(a,arguments);b.maybeShow()}}}},maybeShow:function(){var a=this,b=a.getOwner();if(!b.isVisible(!0)){a.showNext=!0}else {if(a.loading&&b.rendered){a.show()}}},hide:function(){var b=this,a=b.ownerCt;if(b.isElement){a.unmask();b.fireEvent('hide',this);return}if(a){a.enableTabbing();a.setMasked(!1)}delete b.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;if(a.isElement){a.ownerCt.mask(this.useMsg?this.msg:'',this.msgCls);a.fireEvent('show',this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var a=this,b=a.ownerCt;a.loading=!0;Ext.Component.prototype.afterShow.apply(this,arguments);b.disableTabbing();b.setMasked(!0);a.el.restoreTabbableState();a.syncMaskState()},syncMaskState:function(){var a=this,c=a.ownerCt,b=a.el;if(a.isVisible()){if(a.hasOwnProperty('msgWrapCls')){b.dom.className=a.msgWrapCls}if(a.useMsg){a.msgTextEl.setHtml(a.msg)}else {a.msgEl.hide()}if(a.shim||Ext.useShims){b.enableShim(null,!0)}else {b.disableShim()}if(c.el.contains(Ext.Element.getActiveElement())){a.focus()}a.sizeMask()}},onLoad:function(){this.loading=!1;this.hide()},beforeDestroy:function(){this.ownerCt=null;this.bindStore(null);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.onDestroy.call(this)}},1,['loadmask'],['component','box','loadmask'],{'component':!0,'box':!0,'loadmask':!0},['widget.loadmask'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext,'LoadMask'],0);Ext.cmd.derive('Ext.layout.component.Component',Ext.layout.Layout,{type:'component',isComponentLayout:!0,nullBox:{},usesContentHeight:!0,usesContentWidth:!0,usesHeight:!0,usesWidth:!0,widthCache:{},heightCache:{},beginLayoutCycle:function(a,j){var c=this,f=c.owner,p=a.ownerCtContext,g=a.heightModel,h=a.widthModel,o=f.el.dom===document.body,e=f.lastBox||c.nullBox,d=f.el.lastBox||c.nullBox,m=!o,k=a.isTopLevel,i,b,n,l;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,a,j);if(j){if(c.usesContentWidth){++a.consumersContentWidth}if(c.usesContentHeight){++a.consumersContentHeight}if(c.usesWidth){++a.consumersWidth}if(c.usesHeight){++a.consumersHeight}if(p&&!p.hasRawContent){i=f.ownerLayout;if(i){if(i.usesWidth){++a.consumersWidth}if(i.usesHeight){++a.consumersHeight}}}}if(h.configured){n=f[h.names.width];if(k&&h.calculatedFrom){n=e.width}if(!o){m=c.setWidthInDom||(j?n!==d.width:h.constrained)}a.setWidth(n,m)}else {if(k){if(h.calculated){b=e.width;a.setWidth(b,b!==d.width)}b=e.x;a.setProp('x',b,b!==d.x)}}if(g.configured){l=f[g.names.height];if(k&&g.calculatedFrom){l=e.height}if(!o){m=j?l!==d.height:g.constrained}a.setHeight(l,m)}else {if(k){if(g.calculated){b=e.height;a.setHeight(b,b!==d.height)}b=e.y;a.setProp('y',b,b!==d.y)}}},finishedLayout:function(c){var h=this,e=c.children,g=h.owner,i,d,f,a,b;if(e){i=e.length;for(d=0;d','
    {text}
    ','
    ',''],componentLayout:'progressbar',ariaRole:'progressbar',initRenderData:function(){var a=this,b=a.value||0;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{internalText:!a.hasOwnProperty('textEl'),text:a.text||' ',percentage:b*100})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.textEl){a.textEl=Ext.get(a.textEl);a.updateText(a.text)}else {a.textEl=a.el.select('.'+a.baseCls+'-text')}},updateValue:function(a){this.updateProgress(a,Math.round(a*100)+'%')},updateProgress:function(b,c,d){b=b||0;var a=this,f=a.value,e=a.getTextTpl();a.value=b||(b=0);if(c!=null){a.updateText(c)}else {if(e){a.updateText(e.apply({value:b,percent:b*100}))}}if(a.rendered&&!a.destroyed){if(d===!0||d!==!1&&a.animate){a.bar.stopAnimation();a.bar.animate(Ext.apply({from:{width:f*100+'%'},to:{width:b*100+'%'}},a.animate))}else {a.bar.setStyle('width',b*100+'%')}}a.fireEvent('update',a,b,c);return a},updateText:function(b){var a=this;a.text=b;if(a.rendered){a.textEl.setHtml(a.text)}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(a){var b=this,c;if(!b.waitTimer){c=b;a=a||{};b.updateText(a.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var c=a.increment||10;d-=1;b.updateProgress(((d+c)%c+1)*(100/c)*0.01,null,a.animate)},interval:a.interval||1000,duration:a.duration,onStop:function(){if(a.fn){a.fn.apply(a.scope||b)}b.reset()},scope:c})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(b){var a=this;a.updateProgress(0);a.clearTimer();if(b===!0){a.hide()}return a},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},onDestroy:function(){var a=this,b=a.bar;a.clearTimer();if(a.rendered){if(a.textEl.isComposite){a.textEl.clear()}Ext.destroyMembers(a,'textEl','progressBar');if(b&&a.animate){b.stopAnimation()}}Ext.Component.prototype.onDestroy.call(this)}},0,['progressbar'],['component','box','progressbar'],{'component':!0,'box':!0,'progressbar':!0},['widget.progressbar'],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,'ProgressBar'],0);Ext.cmd.derive('Ext.dom.ButtonElement',Ext.dom.Element,{setSize:function(b,a,e){var d=this,c=d.component;Ext.dom.Element.prototype.setSize.call(this,b,a,e);c.btnWrap.setStyle('table-layout',!b||b==='auto'?'':'fixed');c.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return d},setStyle:function(a,c){var f=this,e=f.component,d,b;Ext.dom.Element.prototype.setStyle.call(this,a,c);if(a){if(a==='width'||typeof a!=='string'&&'width' in a){d=c||a.width;e.btnWrap.setStyle('table-layout',!d||d==='auto'?'':'fixed')}if(a==='height'||typeof a!=='string'&&'height' in a){b=c||a.height;e.btnEl.setStyle('height',!b||b==='auto'?'':'auto')}}return f},setHeight:function(a,b){Ext.dom.Element.prototype.setHeight.call(this,a,b);this.component.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return this},setWidth:function(a,b){Ext.dom.Element.prototype.setWidth.call(this,a,b);this.component.btnWrap.setStyle('table-layout',!a||a==='auto'?'':'fixed');return this}},0,0,0,0,0,0,[Ext.dom,'ButtonElement'],0);Ext.cmd.derive('Ext.button.Manager',Ext.Base,{singleton:!0,alternateClassName:'Ext.ButtonToggleManager',groups:{},pressedButton:null,init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a});a.initialized=!0}},onButtonMousedown:function(b,c){var a=this.pressedButton;if(a){a.onMouseUp(c)}this.pressedButton=b},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(c,e){if(e){var b=this.groups[c.toggleGroup],d=b.length,a;for(a=0;a{[values.$comp.renderIcon(values)]}{text}{[values.$comp.renderIcon(values)]}{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]} {closeText} tabindex="{tabIndex}" {$}="{.}">{arrowElText}
    ',iconTpl:'background-image:url({iconUrl});
    font-family:{glyphFontFamily};">&#{glyph};',scale:'small',allowedScales:['small','medium','large'],arrowAlign:'right',arrowCls:'arrow',maskOnDisable:!1,shrinkWrap:3,frame:!0,autoEl:{tag:'a',hidefocus:'on',unselectable:'on'},hasFrameTable:function(){return this.href&&this.frameTable},frameTableListener:function(){if(!this.disabled){this.doNavigate()}},doNavigate:function(){if(this.hrefTarget==='_blank'){window.open(this.getHref(),this.hrefTarget)}else {location.href=this.getHref()}},_triggerRegion:{},initComponent:function(){var a=this;a.addCls('x-unselectable');Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=!0;a.setMenu(a.menu,!1,!0)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty('preventDefault');if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=!1}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==''){a.enableToggle=!0}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var a=this,b=Ext.Component.prototype.getElConfig.call(this),d=a.getHref(),c=a.hrefTarget;if(b.tag==='a'){if(!a.disabled){b.tabIndex=a.tabIndex}if(d){if(!a.disabled){b.href=d;if(c){b.target=c}}}}if(!a.ariaStaticRoles[a.ariaRole]){if(a.menu&&!a.isSplitButton){b['aria-haspopup']=!0}if(a.enableToggle){b['aria-pressed']=!!a.pressed}}return b},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);if(this.pressed){this.addCls(this._pressedCls)}},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),this.getTemplateArgs())},getMenu:function(){return this.menu||null},setMenu:function(b,g,h){var a=this,e=a.menu,d=a.isSplitButton?a.arrowEl&&a.arrowEl.dom:a.ariaEl.dom,f,c;if(e&&!h){if(g!==!1&&a.destroyMenu){e.destroy()}e.ownerCmp=null}if(b){f=b.isMenu;b=Ext.menu.Manager.get(b,{ownerCmp:a});b.setOwnerCmp(a,f);b.menuClickBuffer=250;a.mon(b,{scope:a,show:a.onMenuShow,hide:a.onMenuHide});if(!e&&a.getArrowVisible()){a.split=!0;if(a.rendered){a._addSplitCls();a.updateLayout()}}a.menu=b;if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.isSplitButton?a.ariaArrowElAttributes||(a.ariaArrowElAttributes={}):a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {if(a.rendered){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns');a._removeSplitCls();a.updateLayout()}else {c=a.isSplitButton?a.ariaArrowElAttributes:a.ariaRenderAttributes;if(c){delete c['aria-haspopup'];delete c['aria-owns']}}a.split=!1;a.menu=null}},onRender:function(){var a=this,d,c,b;Ext.Component.prototype.onRender.apply(this,arguments);c=a.el;if(a.tooltip){a.setTooltip(a.tooltip,!0)}if(a.handleMouseEvents){b={scope:a,mouseover:a.onMouseOver,mouseout:a.onMouseOut,mousedown:a.onMouseDown};if(a.split){b.mousemove=a.onMouseMove}}else {b={scope:a}}if(Ext.supports.Touch){b.touchstart=a.onTouchStart}if(a.repeat){a.mon(new Ext.util.ClickRepeater(c,Ext.isObject(a.repeat)?a.repeat:{}),'click',a.onRepeatClick,a)}else {if(b[a.clickEvent]){d=!0}else {b[a.clickEvent]=a.onClick}}a.mon(c,b);if(a.hasFrameTable()){a.mon(a.frameTable,'click',a.frameTableListener,a)}if(d){a.mon(c,a.clickEvent,a.onClick,a)}Ext.button.Manager.register(a)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var a=this,i=a._btnCls,j=a._baseIconCls,d=a.getIconAlign(),b=a.glyph,f=Ext._glyphFontFamily,e=a.text,h=a._hasIcon(),g=a._hasIconCls,c;if(typeof b==='string'){c=b.split('@');b=c[0];f=c[1]}return {split:a.isSplitButton,innerCls:a._innerCls,splitCls:a.getArrowVisible()?a.getSplitCls():'',iconUrl:a.icon,iconCls:a.iconCls,glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:f,text:e||' ',closeText:a.closeText,textCls:e?a._textCls:'',noTextCls:e?'':a._noTextCls,hasIconCls:h?g:'',btnWrapCls:a._btnWrapCls,btnWrapStyle:a.width?'table-layout:fixed;':'',btnElStyle:a.height?'height:auto;':'',btnCls:i,baseIconCls:j,iconBeforeText:d==='left'||d==='top',iconAlignCls:h?g+'-'+d:'',textAlignCls:i+'-'+a.getTextAlign(),arrowElCls:a._arrowElCls,tabIndex:a.tabIndex}},renderIcon:function(a){return this.getTpl('iconTpl').apply(a)},setHref:function(c){var a=this,d=a.hrefTarget,b;a.href=c;if(!a.configuredWithPreventDefault){a.preventDefault=!c}if(a.rendered){b=a.el.dom;if(!c||a.disabled){b.removeAttribute('href');b.removeAttribute('hrefTarget')}else {b.href=a.getHref();if(d){b.target=d}}}},getHref:function(){var a=this,b=a.href;return b?Ext.urlAppend(b,Ext.Object.toQueryString(Ext.apply({},a.params,a.baseParams))):!1},setParams:function(c){var a=this,b;a.params=c;if(a.rendered){b=a.el.dom;if(a.disabled){b.removeAttribute('href')}else {b.href=a.getHref()||''}}},getSplitCls:function(){var a=this;return a.split?a.baseCls+'-'+a.arrowCls+' '+(a.baseCls+'-'+a.arrowCls+'-'+a.arrowAlign):''},setIcon:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.icon||'';a.icon=b;if(b!==c){if(d){d.setStyle('background-image',b?'url('+b+')':'');a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setIconCls:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.iconCls||'';a.iconCls=b;if(c!==b){if(d){d.removeCls(c);d.addCls(b);a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setGlyph:function(b){b=b||0;var a=this,c=a.btnIconEl,f=a.glyph,g=a._glyphCls,d,e;a.glyph=b;if(c){if(typeof b==='string'){e=b.split('@');b=e[0];d=e[1]||Ext._glyphFontFamily}if(!b){c.dom.innerHTML='';c.removeCls(g)}else {if(f!==b){c.dom.innerHTML='&#'+b+';';c.addCls(g)}}if(d){c.setStyle('font-family',d)}a._syncHasIconCls();if(a.didIconStateChange(f,b)){a.updateLayout()}}a.fireEvent('glyphchange',a,a.glyph,f);return a},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c||!b){a.clearTip()}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.el.id},b));a.tooltip=b}else {a.el.dom.setAttribute(a.getTipAttr(),b)}}}else {a.tooltip=b}return a},updateIconAlign:function(e,f){var b=this,a,d,c;if(b.rendered){a=b.btnEl;d=b.btnIconEl;c=b._hasIconCls;if(f){a.removeCls(c+'-'+f)}a.addCls(c+'-'+e);if(e==='top'||e==='left'){a.insertFirst(d)}else {a.appendChild(d)}b.updateLayout()}},updateTextAlign:function(e,d){var a=this,c=a.btnEl,b=a._btnCls;if(a.rendered){c.removeCls(b+'-'+d);c.addCls(b+'-'+e)}},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},clearTip:function(){var a=this,b=a.el;if(Ext.quickTipsActive&&Ext.isObject(a.tooltip)){Ext.tip.QuickTipManager.unregister(b)}else {b.dom.removeAttribute(a.getTipAttr())}},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this,b=a.menu;if(a.rendered){Ext.destroy(a.keyMap);delete a.keyMap}if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.onDestroy.call(this)},setHandler:function(a,b){this.handler=a;if(arguments.length>1){this.scope=b}return this},updateText:function(b,c){b=b==null?'':String(b);c=c||'';var a=this,e=a.btnInnerEl,d=a.btnEl;if(a.rendered){e.setHtml(b||' ');d[b?'addCls':'removeCls'](a._textCls);d[b?'removeCls':'addCls'](a._noTextCls);a.updateLayout()}a.fireEvent('textchange',a,c,b)},didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},click:function(a){return this.onClick(a)},setPressed:function(a){return this.toggle(a!==!1)},toggle:function(b,d){var a=this,c=a.ariaEl.dom;b=b===undefined?!a.pressed:!!b;if(a.fireEvent('beforetoggle',a,b)!==!1){if(b!==a.pressed){a[b?'addCls':'removeCls'](a._pressedCls);a.pressed=b;if(c){c.setAttribute('aria-pressed',b)}if(!d){a.fireEvent('toggle',a,b);Ext.callback(a.toggleHandler,a.scope,[a,b],0,a);if(a.reference&&a.publishState){a.publishState('pressed',b)}}}}return a},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(c){var a=this,b=a.menu,d=!c||c.pointerType;if(b&&a.rendered){if(a.tooltip&&Ext.quickTipsActive&&a.getTipAttr()!=='title'){Ext.tip.QuickTipManager.getQuickTip().cancelShow(a.el)}if(b.isVisible()){if(d){b.hide()}else {b.focus()}}else {if(!c||a.showEmptyMenu||b.items.getCount()>0){b.autoFocus=!d;b.showBy(a.el,a.menuAlign)}}}return a},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(b,a){this.onClick(a)},onTouchStart:function(a){this.doPreventDefault(a)},onEnterKey:function(a){this.onClick(a);a.stopEvent();return !1},onClick:function(b){var a=this;a.doPreventDefault(b);if(b.type!=='keydown'&&b.button){return}if(!a.disabled){a.doToggle();a.maybeShowMenu(b);a.fireHandler(b)}},doPreventDefault:function(a){if(a&&(this.preventDefault||this.disabled&&this.getHref())){a.preventDefault()}},fireHandler:function(b){var a=this;if(a.fireEvent('click',a,b)!==!1&&!a.destroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},doToggle:function(){var a=this;if(a.enableToggle&&(a.allowDepress!==!1||!a.pressed)){a.toggle()}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,!0,!0)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,!0,!0)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(b){var a=this,c=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(b)){if(!c){a.onMenuTriggerOver(b)}}else {if(c){a.onMenuTriggerOut(b)}}}},isWithinTrigger:function(d){var a=this,e=a.el,c,b;c=a.arrowAlign==='right'?d.getX()-a.getX():d.getY()-e.getY();b=a.getTriggerRegion();return c>b.begin&&c{iconMarkup}
    role="{textElRole}">{text}
    {iconMarkup}',iconTpl:'',_textAlignClasses:{left:'x-title-align-left',center:'x-title-align-center',right:'x-title-align-right'},_iconAlignClasses:{top:'x-title-icon-top',right:'x-title-icon-right',bottom:'x-title-icon-bottom',left:'x-title-icon-left'},_rotationClasses:{0:'x-title-rotate-none',1:'x-title-rotate-right',2:'x-title-rotate-left'},_rotationAngles:{1:90,2:270},baseCls:'x-title',_titleSuffix:'-title',_glyphCls:'x-title-glyph',_iconWrapCls:'x-title-icon-wrap',_baseIconCls:'x-title-icon',_itemCls:'x-title-item',_textCls:'x-title-text',afterComponentLayout:function(){var b=this,c=b.getRotation(),a,d,e;if(c&&!Ext.isIE8){e=b.el;a=b.lastBox;d=a.x;e.setStyle(b._getVerticalAdjustDirection(),d+(c===1?a.width:-a.height)+'px')}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var a=this,b=a.getRotation(),c=a.el;Ext.Component.prototype.onRender.call(this);if(b){c.setVertical(a._rotationAngles[b])}if(Ext.supports.FixedTableWidthBug){c._needsTableWidthFix=!0}},applyText:function(a){if(!a){a=' '}return a},beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.addCls(a._rotationClasses[a.getRotation()]);a.addCls(a._textAlignClasses[a.getTextAlign()])},getIconMarkup:function(){return this.getTpl('iconTpl').apply(this.getIconRenderData())},getIconRenderData:function(){var a=this,g=a.getIcon(),f=a.getIconCls(),b=a.getGlyph(),d=Ext._glyphFontFamily,e=a.getIconAlign(),c;if(typeof b==='string'){c=b.split('@');b=c[0];d=c[1]}return {id:a.id,ui:a.ui,itemCls:a._itemCls,iconUrl:g,iconCls:f,iconWrapCls:a._iconWrapCls,baseIconCls:a._baseIconCls,iconAlignCls:a._iconAlignClasses[e],glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:d}},initRenderData:function(){var a=this,c,b;b=Ext.apply({text:a.getText(),textElRole:a.textElRole,id:a.id,ui:a.ui,itemCls:a._itemCls,textCls:a._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(a._hasIcon()){c=a.getIconAlign();b.iconMarkup=a.getIconMarkup();b.iconBeforeTitle=c==='top'||c==='left'}return b},onAdded:function(a,f,e){var d=this,c=d._titleSuffix,b=a.baseCls;d.addCls([b+c,b+c+'-'+a.ui]);Ext.Component.prototype.onAdded.call(this,a,f,e)},updateGlyph:function(a,g){a=a||0;var b=this,f=b._glyphCls,c,d,e;b.glyph=a;if(b.rendered){b._syncIconVisibility();c=b.iconEl;if(typeof a==='string'){e=a.split('@');a=e[0];d=e[1]||Ext._glyphFontFamily}if(!a){c.dom.innerHTML='';c.removeCls(f)}else {if(g!==a){c.dom.innerHTML='&#'+a+';';c.addCls(f)}}if(d){c.setStyle('font-family',d)}if(b._didIconStateChange(g,a)){b.updateLayout()}}},updateIcon:function(a,c){a=a||'';var b=this,d;if(b.rendered&&a!==c){b._syncIconVisibility();d=b.iconEl;d.setStyle('background-image',a?'url('+a+')':'');if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateIconAlign:function(d,f){var a=this,b=a.iconWrapEl,e,c;if(a.iconWrapEl){e=a.el;c=a._iconAlignClasses;if(f){b.removeCls(c[f])}b.addCls(c[d]);if(d==='top'||d==='left'){e.insertFirst(b)}else {e.appendChild(b)}a.updateLayout()}},updateIconCls:function(a,c){a=a||'';var b=this,d;if(b.rendered&&c!==a){b._syncIconVisibility();d=b.iconEl;if(c){d.removeCls(c)}d.addCls(a);if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateRotation:function(d,e){var a=this,b,c;if(a.rendered){b=a.el;c=a._rotationClasses;a.removeCls(c[e]);a.addCls(c[d]);b.setHorizontal();if(d){b.setVertical(a._rotationAngles[d])}b.setStyle({right:'',left:'',top:'',height:'',width:''});a.lastBox=null;a.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,c){var a=this,b=a._textAlignClasses;if(a.rendered){if(c){a.removeCls(b[c])}a.addCls(b[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return 'left'},_didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var a=this,f=a.el,e=a._hasIcon(),b=a.iconWrapEl,d,c;if(e&&!b){c=a.iconAlign;d=c==='left'||c==='top';f.dom.insertAdjacentHTML(d?'afterbegin':'beforeend',a.getIconMarkup());b=a.iconWrapEl=f[d?'first':'last']();a.iconEl=b.first()}if(b){b.setDisplayed(e)}}}},0,['title'],['component','box','title'],{'component':!0,'box':!0,'title':!0},['widget.title'],0,[Ext.panel,'Title'],0);Ext.cmd.derive('Ext.panel.Tool',Ext.Component,{isTool:!0,baseCls:'x-tool',disabledCls:'x-tool-disabled',toolPressedCls:'x-tool-pressed',toolOverCls:'x-tool-over',childEls:['toolEl'],renderTpl:[''],toolOwner:null,tooltipType:'qtip',stopEvent:!0,ariaRole:'button',focusable:!0,tabIndex:0,keyHandlers:{SPACE:'onClick',ENTER:'onClick'},cacheHeight:!0,cacheWidth:!0,initComponent:function(){var a=this;a.type=a.type||a.id;Ext.applyIf(a.renderData,{baseCls:a.baseCls,type:a.type});a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);a.el.on({click:a.onClick,mousedown:a.onMouseDown,mouseover:a.onMouseOver,mouseout:a.onMouseOut,scope:a});b=a.tooltip;if(b){a.setTooltip(b)}},tipAttrs:{qtip:'data-qtip'},setTooltip:function(b,d){var a=this,g=a.tooltip,f=a.tooltipType,h=a.id,e=a.el,c;if(g&&Ext.quickTipsActive&&Ext.isObject(g)){Ext.tip.QuickTipManager.unregister(h)}a.tooltip=b;if(d){a.tooltipType=d}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:h},b))}else {if(e){if(d&&f&&d!==f){c=a.tipAttrs[f]||'title';e.dom.removeAttribute(c)}c=a.tipAttrs[d||f]||'title';e.dom.setAttribute(c,b)}}if(c!=='title'&&a.ariaRole&&a.ariaRole!=='presentation'){if(e){e.dom.setAttribute('aria-label',b)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-label']=b}}}},setType:function(b){var a=this,c=a.type;a.type=b;if(a.rendered){if(c){a.toolEl.removeCls(a.baseCls+'-'+c)}a.toolEl.addCls(a.baseCls+'-'+b)}else {a.renderData.type=b}return a},onDestroy:function(){var a=this,b=a.keyMap;a.setTooltip(null);delete a.toolOwner;Ext.Component.prototype.onDestroy.call(this)},privates:{onClick:function(b,c){var a=this;if(a.disabled){return !1}if(b.type!=='keydown'){a.el.removeCls(a.toolPressedCls+' '+a.toolOverCls)}if(a.stopEvent!==!1){b.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[b,c,a.ownerCt,a],0,a)}else {if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,b],0,a)}}a.fireEvent('click',a,b,a.toolOwner||a.ownerCt);return !0},onMouseDown:function(a){a.preventDefault();if(this.disabled){return !1}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return !1}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)}}},0,['tool'],['component','box','tool'],{'component':!0,'box':!0,'tool':!0},['widget.tool'],0,[Ext.panel,'Tool'],0);Ext.cmd.derive('Ext.util.KeyMap',Ext.Base,{alternateClassName:'Ext.KeyMap',eventName:'keydown',constructor:function(b){var a=this;if(arguments.length!==1||typeof b==='string'||b.dom||b.tagName||b===document||b.isComponent){a.legacyConstructor.apply(a,arguments);return}Ext.apply(a,b);a.bindings=[];if(!a.target.isComponent){a.target=Ext.get(a.target)}if(a.binding){a.addBinding(a.binding)}else {if(b.key){a.addBinding(b)}}a.enable()},legacyConstructor:function(d,b,c){var a=this;Ext.apply(a,{target:Ext.get(d),eventName:c||a.eventName,bindings:[]});if(b){a.addBinding(b)}a.enable()},addBinding:function(b){var a=this,e=b.key,c,d;if(a.processing){a.bindings=a.bindings.slice(0)}if(Ext.isArray(b)){for(c=0,d=b.length;c=i){return a}}}if(!g){return}a=c.findNextFocusableChild({beforeRender:h,items:b,step:!0});if(a){c.activateFocusable(a)}return a},clearFocusables:function(){var d=this,c=d.getFocusables(),e=c.length,a,b;for(b=0;b0?d0?d+b:e-1;for(;;a+=b){if(d<0&&(a>=e||a<0)){return null}else {if(a>=e){a=-1;continue}else {if(a<0){a=e;continue}else {if(a===d){return null}}}}c=g[a];if(!c||!c.focusable||c.disabled){continue}if(i||c.isFocusable&&c.isFocusable()){return c}}return null},getFocusableContainerEl:function(){return this.el},onFocusableChildAdd:function(a){if(this.enableFocusableContainer){return this.doFocusableChildAdd(a)}},activateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:this.activeChildTabIndex})}},deactivateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:undefined})}},isFocusableContainerActive:function(){var e=this,d=!1,c,b,a;c=e.getFocusableContainerEl();if(c&&c.isTabbable&&c.isTabbable()){d=!0}else {b=e.lastFocusedChild;a=b&&b.getFocusEl&&b.getFocusEl();if(a&&a.isTabbable&&a.isTabbable()){d=!0}}return d},doFocusableChildAdd:function(a){if(a.focusable){a.focusableContainer=this}},onFocusableChildRemove:function(a){if(this.enableFocusableContainer){return this.doFocusableChildRemove(a)}a.focusableContainer=null},doFocusableChildRemove:function(a){if(a===this.lastFocusedChild){this.lastFocusedChild=null;this.activateFocusableContainerEl()}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);this.mousedownTimestamp=a===this?Ext.Date.now():0;if(a===this){c.preventDefault()}},onFocusEnter:function(f){var a=this,d=f.toComponent,c=a.mousedownTimestamp,e=50,b;if(!a.enableFocusableContainer){return null}a.mousedownTimestamp=0;if(d===a){if(!c||Ext.Date.now()-c>e){b=a.initDefaultFocusable();if(b){a.deactivateFocusableContainerEl();b.focus()}}}else {a.deactivateFocusableContainerEl()}return d},onFocusLeave:function(c){var a=this,b=a.lastFocusedChild;if(!a.enableFocusableContainer){return}if(!a.destroyed&&!a.destroying){a.clearFocusables();if(b&&!b.disabled){a.activateFocusable(b)}else {a.activateFocusableContainerEl()}}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.enableFocusableContainer){return}a.clearFocusables();a.activateFocusable(b);if(b.needArrowKeys){a.guardFocusableChild(b)}},guardFocusableChild:function(c){var b=this,d=b.activeChildTabIndex,a;a=b.findNextFocusableChild({child:c,step:-1});if(a){a.setTabIndex(d)}a=b.findNextFocusableChild({child:c,step:1});if(a){a.setTabIndex(d)}},afterFocusableChildFocus:function(a){if(!this.enableFocusableContainer){return}this.lastFocusedChild=a},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this;if(!a.enableFocusableContainer){return}if(b!==a.lastFocusedChild){a.deactivateFocusable(b);if(!a.isFocusableContainerActive()){a.activateFocusableContainerEl()}}},beforeFocusableChildDisable:function(c){var a=this,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(c.hasFocus){b=a.findNextFocusableChild({child:c})||c.findFocusTarget();if(b){b.focus()}}},onFocusableChildDisable:function(d){var a=this,c=a.lastFocusedChild,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(d===c){a.activateFocusableContainerEl()}b=a.findNextFocusableChild({step:1});if(!b){a.deactivateFocusableContainerEl()}},onFocusableChildShow:Ext.privateFn,onFocusableChildHide:Ext.privateFn,onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn}},0,0,0,0,0,0,[Ext.util,'FocusableContainer'],0);Ext.cmd.derive('Ext.panel.Header',Ext.panel.Bar,{isHeader:!0,defaultType:'tool',indicateDrag:!1,weight:-1,shrinkWrap:3,iconAlign:'left',titleAlign:'left',titlePosition:0,titleRotation:'default',autoEl:{role:'presentation'},beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{xtype:'title',flex:1},merge:function(a,b){if(typeof a!=='object'){a={text:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:'x-header',initComponent:function(){var a=this,b=a.items,d=a.itemPosition,c=[a.headerCls];a.tools=a.tools||[];a.items=b=b?b.slice():[];if(d!==undefined){a._userItems=b.slice();a.items=b=[]}a.indicateDragCls=a.headerCls+'-draggable';if(a.indicateDrag){c.push(a.indicateDragCls)}a.addCls(c);a.syncNoBorderCls();a.enableFocusableContainer=!a.isAccordionHeader&&a.tools.length>0;if(a.enableFocusableContainer){a.ariaRole='toolbar'}Ext.Array.push(b,a.tools);a.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);a.on({dblclick:a.onDblClick,click:a.onClick,element:'el',scope:a})},addTool:function(b){var a=this;a.add(Ext.ComponentManager.create(b,'tool'));if(!a.isAccordionHeader&&a.tools.length>0&&!a.enableFocusableContainer){a.enableFocusableContainer=!0;a.ariaRole='toolbar';if(a.rendered){a.ariaEl.dom.setAttribute('role','toolbar');a.initFocusableContainer(!0)}}},afterLayout:function(){var a=this,e,b,c,d;if(a.vertical){b=a.frameTR;if(b){e=a.frameBR;c=a.frameTL;d=a.getWidth()-b.getPadding('r')-(c?c.getPadding('l'):a.el.getBorderWidth('l'))+'px';e.setStyle('background-position-x',d);b.setStyle('background-position-x',d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(a,d){var b=this,c,e;a=a||'';c=typeof a==='string';if(c){a={text:a}}if(d){Ext.suspendLayouts();d.setConfig(a);Ext.resumeLayouts(!0);a=d}else {if(c){a.xtype='title'}a.ui=b.ui;e='rotation' in a;a.id=b.id+'-title';if(b.isAccordionHeader){a.ariaRole='tab';a.textElRole=null;a.focusable=!0}a=Ext.create(a);if(!e&&b.vertical&&b.titleRotation==='default'){a.rotation=1}}return a},applyTitlePosition:function(b){var a=this.items.getCount();if(this._titleInItems){--a}return Math.max(Math.min(b,a),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var a=this,b=a.itemPosition;a.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(b!==undefined){a.insert(b,a._userItems)}},getTools:function(){return this.tools.slice()},onAdd:function(a,c){var b=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,a,c);if(a.isTool){b.push(a);b[a.type]=a}},onAdded:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,a,c,b)},onRemoved:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,a,c,b)},setDock:function(e){var a=this,c=a.getTitle(),b=a.getTitleRotation(),d=c.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,e);if(b==='default'){b=a.vertical?1:0;if(b!==d){c.setRotation(b)}if(a.rendered){a.resetItemMargins()}}Ext.resumeLayouts(!0)},updateGlyph:function(a){this.getTitle().setGlyph(a)},updateIcon:function(a){this.getTitle().setIcon(a)},updateIconAlign:function(a,b){this.getTitle().setIconAlign(a)},updateIconCls:function(a){this.getTitle().setIconCls(a)},updateTitle:function(a,b){if(!b){this.insert(this.getTitlePosition(),a);this._titleInItems=!0}this.titleCmp=a},updateTitleAlign:function(a,b){this.getTitle().setTextAlign(a)},updateTitlePosition:function(a){this.insert(a,this.getTitle())},updateTitleRotation:function(a){if(a==='default'){a=this.vertical?1:0}this.getTitle().setRotation(a)},privates:{fireClickEvent:function(c,a){var b='.'+Ext.panel.Tool.prototype.baseCls;if(!a.getTarget(b)){this.fireEvent(c,this,a)}},getFramingInfoCls:function(){var a=this,c=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),b=a.ownerCt;if(!a.expanding&&b&&(b.collapsed||a.isCollapsedExpander)){c+='-'+b.collapsedCls}return c+'-'+a.dock},onClick:function(a){this.fireClickEvent('click',a)},onDblClick:function(a){this.fireClickEvent('dblclick',a)},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {this.mixins.focusablecontainer.onFocusableContainerMousedown.apply(this,arguments)}},syncBeforeAfterTitleClasses:function(l){var c=this,j=c.items,i=j.items,h=c.getTitlePosition(),k=i.length,g=j.generation,f=c.syncBeforeAfterGen,e,d,b,a;if(!l&&f===g){return}c.syncBeforeAfterGen=g;for(b=0;bh){if(f){a.removeCls(d)}a.addCls(e)}}}},syncNoBorderCls:function(){var a=this,b=this.ownerCt,c=a.headerCls+'-noborder';if(b?b.border===!1&&!b.frame:a.border===!1){a.addCls(c)}else {a.removeCls(c)}}}},0,['header'],['component','box','container','header'],{'component':!0,'box':!0,'container':!0,'header':!0},['widget.header'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.panel,'Header'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.None',Ext.Base,{alternateClassName:'Ext.layout.boxOverflow.None',factoryConfig:{defaultType:'none'},isBoxOverflowHandler:!0,$configPrefixed:!1,$configStrict:!1,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var c=this,d=b.state.boxPlan,a;if(d&&d.tooNarrow){a=c.handleOverflow(b);if(a){if(a.reservedSpace){c.layout.publishInnerCtSize(b,a.reservedSpace)}}}else {c.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(e){var b=this,d=b.layout.owner,c,a;if(d.hasListeners.overflowchange){c=d.query('>[hidden]');a=c.length;if(a!==b.lastHiddenCount){d.fireEvent('overflowchange',b.lastHiddenCount,a,c);b.lastHiddenCount=a}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(b){var a;if(b.isToolbar){a='toolbar'}else {if(b.isTabBar){a='tab-bar'}else {if(b.isMenu){a='menu'}else {if(b.isBreadcrumb){a='breadcrumb'}else {a=b.getXType()}}}}return a},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return ''},setVertical:function(){var b=this,a=b.layout,c=a.innerCt;c.removeCls(b.getOverflowCls(a.oppositeDirection));c.addCls(b.getOverflowCls(a.direction))}},1,0,0,0,['box.overflow.None','box.overflow.none'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout.container.boxOverflow,'None',Ext.layout.boxOverflow,'None'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Scroller',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Scroller',animateScroll:!1,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:'x-box-scroller',beforeSuffix:'-before-scroller',afterSuffix:'-after-scroller',constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.scrollPosition=0;a.scrollSize=0},getPrefixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.beforeSuffix,cls:this.createScrollerCls('beforeX'),style:'display:none'}},getSuffixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.afterSuffix,cls:this.createScrollerCls('afterX'),style:'display:none'}},createScrollerCls:function(g){var c=this,d=c.layout,b=d.owner,e=c.getOwnerType(b),a=c.scrollerCls,f=a+' '+a+'-'+d.names[g]+' '+a+'-'+e+' '+a+'-'+e+'-'+b.ui;if(b.plain){f+=' '+a+'-plain'}return f},getOverflowCls:function(a){return this.scrollerCls+'-body-'+a},beginLayout:function(a){a.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(a){var b=this,f=a.state.boxPlan,e=b.layout,d=e.names,g=Math.min(b.getMaxScrollPosition(),a.innerCtScrollPos),c;if(f&&f.tooNarrow){c=a.childItems[a.childItems.length-1].props;b.scrollSize=c[d.x]+c[d.width];b.updateScrollButtons();e.innerCt[d.setScrollLeft](g)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,a)},handleOverflow:function(i){var a=this,d=a.layout.names,h=d.getWidth,f=d.parallelMargins,g,e,b,c;a.showScrollers();b=a.getBeforeScroller();c=a.getAfterScroller();g=b[h]()+c[h]()+b.getMargin(f)+c.getMargin(f);e=i.targetContext.getPaddingInfo()[d.width];return {reservedSpace:Math.max(g-e,0)}},getBeforeScroller:function(){var a=this;return a._beforeScroller||(a._beforeScroller=a.createScroller(a.beforeSuffix,'beforeRepeater','scrollLeft'))},getAfterScroller:function(){var a=this;return a._afterScroller||(a._afterScroller=a.createScroller(a.afterSuffix,'afterRepeater','scrollRight'))},createScroller:function(g,f,e){var b=this,d=b.layout.owner,c=b.scrollerCls,a;a=d.el.getById(d.id+g);a.addClsOnOver(c+'-hover');a.addClsOnClick(c+'-pressed');a.setVisibilityMode(Ext.Element.DISPLAY);b[f]=new Ext.util.ClickRepeater(a,{interval:b.scrollRepeatInterval,handler:e,scope:b});return a},createWheelListener:function(){var a=this;a.wheelListener=a.layout.innerCt.on('mousewheel',a.onMouseWheel,a,{destroyable:!0})},onMouseWheel:function(a){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,!1)},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;if(!a.wheelListener){a.createWheelListener()}a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')},hideScrollers:function(){var a=this,b=a.getBeforeScroller(),c=a.getAfterScroller();if(b){b.hide();c.hide();a.layout.owner.removeClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')}},destroy:function(){Ext.destroyMembers(this,'beforeRepeater','afterRepeater','_beforeScroller','_afterScroller','wheelListener');this.callParent()},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getScrollAnim:function(){return {duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var a=this,c=a.getBeforeScroller(),d=a.getAfterScroller(),b;if(!c||!d){return}b=a.scrollerCls+'-disabled';c[a.atExtremeBefore()?'addCls':'removeCls'](b);d[a.atExtremeAfter()?'addCls':'removeCls'](b);a.scrolling=!1},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,!1)},scrollRight:function(){this.scrollBy(this.scrollIncrement,!1)},getScrollPosition:function(){var b=this,c=b.layout,a;if(isNaN(b.scrollPosition)){a=c.innerCt[c.names.getScrollLeft]()}else {a=b.scrollPosition}return a},getMaxScrollPosition:function(){var c=this,b=c.layout,a=c.scrollSize-b.innerCt.lastBox[b.names.width];return a<0?0:a},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var c=this,d=c.getBeforeScroller(),e=c.getAfterScroller(),b=c.layout.names,a=c.scrollerCls;d.removeCls(a+'-'+b.beforeY);e.removeCls(a+'-'+b.afterY);d.addCls(a+'-'+b.beforeX);e.addCls(a+'-'+b.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(g,b){var a=this,d=a.layout,e=d.names,f=a.getScrollPosition(),c=Ext.Number.constrain(g,0,a.getMaxScrollPosition());if(c!==f&&!a.scrolling){a.scrollPosition=NaN;if(b===undefined){b=a.animateScroll}d.innerCt[e.scrollTo](e.beforeScrollX,c,b?a.getScrollAnim():!1);if(b){a.scrolling=!0}else {a.updateScrollButtons()}a.fireEvent('scroll',a,c,b?a.getScrollAnim():!1)}},scrollToItem:function(a,i){var c=this,e=c.layout,h=e.owner,f=e.names,j=e.innerCt,d,g,b;a=c.getItem(a);if(a!==undefined){if(a===h.items.first()){b=0}else {if(a===h.items.last()){b=c.getMaxScrollPosition()}else {d=c.getItemVisibility(a);if(!d.fullyVisible){g=a.getBox(!1,!0);b=g[f.x];if(d.hiddenEnd){b-=j[f.getWidth]()-g[f.width]}}}}if(b!==undefined){c.scrollTo(b,i)}}},getItemVisibility:function(i){var d=this,h=d.getItem(i).getBox(!0,!0),g=d.layout,c=g.names,b=h[c.x],f=b+h[c.width],a=d.getScrollPosition(),e=a+g.innerCt[c.getWidth]();return {hiddenStart:be,fullyVisible:b>=a&&f<=e}}},1,0,0,0,['box.overflow.Scroller','box.overflow.scroller'],[['observable',Ext.mixin.Observable]],[Ext.layout.container.boxOverflow,'Scroller',Ext.layout.boxOverflow,'Scroller'],0);Ext.cmd.derive('Ext.dd.DragDropManager',Ext.Base,{singleton:!0,alternateClassName:['Ext.dd.DragDropMgr','Ext.dd.DDM'],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:!0,stopPropagation:!0,initialized:!1,locked:!1,init:function(){this.initialized=!0},POINT:0,INTERSECT:1,mode:0,notifyOccluded:!1,dragCls:'x-dd-drag-current',_execOnAll:function(f,g){var c=this.ids,d,e,b,a;for(d in c){if(c.hasOwnProperty(d)){a=c[d];for(e in a){if(a.hasOwnProperty(e)){b=a[e];if(!this.isTypeOfDD(b)){continue}b[f].apply(b,g)}}}}},addListeners:function(){var a=this;a.init();Ext.getDoc().on({mouseup:a.handleMouseUp,mousemove:{fn:a.handleMouseMove,capture:!1},dragstart:a.preventDrag,drag:a.preventDrag,dragend:a.preventDrag,capture:!0,scope:a});Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},preventDrag:function(a){if(this.isMouseDown){a.stopPropagation()}},_onResize:function(a){this._execOnAll('resetConstraints',[])},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isLocked:function(){return this.locked},locationCache:{},useCache:!0,clickPixelThresh:8,dragThreshMet:!1,clickTimeout:null,startX:0,startY:0,regDragDrop:function(b,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][b.id]=b},removeDDFromGroup:function(c,a){if(!this.ids[a]){this.ids[a]={}}var b=this.ids[a];if(b&&b[c.id]){delete b[c.id]}},_remove:function(b,f){var a=this,d=a.ids,e=b.groups,c;if(a.clearingAll){return}if(a.dragCurrent===b){a.dragCurrent=null}for(c in e){if(e.hasOwnProperty(c)){if(f){delete d[c]}else {if(d[c]){delete d[c][b.id]}}}}delete a.handleIds[b.id];delete a.locationCache[b.id]},regHandle:function(a,b){if(!this.handleIds[a]){this.handleIds[a]={}}this.handleIds[a][b]=b},isDragDrop:function(a){return this.getDDById(a)?!0:!1},getRelated:function(f,e){var b=[],c,d,a;for(c in f.groups){for(d in this.ids[c]){a=this.ids[c][d];if(!this.isTypeOfDD(a)){continue}if(!e||a.isTarget){b[b.length]=a}}}return b},isLegalTarget:function(e,d){var b=this.getRelated(e,!0),a,c;for(a=0,c=b.length;aa.clickPixelThresh||e>a.clickPixelThresh){a.startDrag(a.startX,a.startY)}}if(a.dragThreshMet){c.b4Drag(b);c.onDrag(b);if(!c.moveOnly){a.fireEvents(b,!1)}}a.stopEvent(b);return !0},fireEvents:function(e,t){var d=this,s=Ext.supports.Touch,c=d.dragCurrent,l=d.currentPoint,v=l.x,w=l.y,j=[],r=[],h=[],i=[],g=[],k=[],u=s?document.documentElement.clientWidth/window.innerWidth:1,p,b,o,q,a,f,n,m;if(!c||c.isLocked()){return}m=!(c.deltaX<0||c.deltaY<0);if(s||!d.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&m){p=c.getDragEl();if(m){p.style.visibility='hidden'}e.target=document.elementFromPoint(v/u,w/u);if(m){p.style.visibility='visible'}}for(a in d.dragOvers){b=d.dragOvers[a];delete d.dragOvers[a];if(!d.isTypeOfDD(b)||b.destroyed){continue}if(d.notifyOccluded){if(!this.isOverTarget(l,b,d.mode)){h.push(b)}}else {if(!e.within(b.getEl())){h.push(b)}}r[a]=!0}for(n in c.groups){if('string'!==typeof n){continue}for(a in d.ids[n]){b=d.ids[n][a];if(d.isTypeOfDD(b)&&(o=b.getEl())&&b.isTarget&&!b.isLocked()&&Ext.fly(o).isVisible(!0)&&(b!==c||c.ignoreSelf===!1)){if(d.notifyOccluded){if((b.zIndex=d.getZIndex(o))!==-1){q=!0}j.push(b)}else {if(e.within(b.getEl())){j.push(b);break}}}}}if(q){Ext.Array.sort(j,d.byZIndex)}for(a=0,f=j.length;a','',''],isSplitter:!0,baseCls:'x-splitter',collapsedClsInternal:'x-splitter-collapsed',canResize:!0,collapsible:null,collapseOnDblClick:!0,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:'next',horizontal:!1,vertical:!1,size:5,tracker:null,ariaRole:'separator',focusable:!0,tabIndex:0,getTrackerConfig:function(){return Ext.apply({xclass:'Ext.resizer.SplitterTracker',el:this.el,splitter:this},this.tracker)},beforeRender:function(){var a=this,c=a.getCollapseTarget(),b=a.collapsible,d;Ext.Component.prototype.beforeRender.call(this);if(c.collapsed){a.addCls(a.collapsedClsInternal)}if(!a.canResize){a.addCls(a.baseCls+'-noresize')}Ext.applyIf(a.renderData,{collapseDir:a.getCollapseDirection(),collapsible:b!==null?b:c.collapsible});a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-orientation']=a.orientation;a.protoEl.unselectable()},onRender:function(){var a=this,b;Ext.Component.prototype.onRender.apply(this,arguments);if(a.performCollapse!==!1){if(a.renderData.collapsible){a.mon(a.collapseEl,'click',a.toggleTargetCmp,a)}if(a.collapseOnDblClick){a.mon(a.el,'dblclick',a.toggleTargetCmp,a)}}a.getCollapseTarget().on({collapse:a.onTargetCollapse,expand:a.onTargetExpand,beforeexpand:a.onBeforeTargetExpand,beforecollapse:a.onBeforeTargetCollapse,scope:a});if(a.canResize){a.tracker=Ext.create(a.getTrackerConfig());a.relayEvents(a.tracker,['beforedragstart','dragstart','dragend'])}b=a.collapseEl;if(b){b.lastCollapseDirCls=a.collapseDirProps[a.collapseDirection].cls}},getCollapseDirection:function(){var b=this,a=b.collapseDirection,c,f,d,e;if(!a){c=b.collapseTarget;if(c.isComponent){a=c.collapseDirection}if(!a){e=b.ownerCt.layout.type;if(c.isComponent){d=b.ownerCt.items;f=Number(d.indexOf(c)===d.indexOf(b)-1)<<1|Number(e==='hbox')}else {f=Number(b.collapseTarget==='prev')<<1|Number(e==='hbox')}a=['bottom','right','top','left'][f]}b.collapseDirection=a}b.setOrientation(a==='top'||a==='bottom'?'horizontal':'vertical');return a},getCollapseTarget:function(){var a=this;return a.collapseTarget.isComponent?a.collapseTarget:a.collapseTarget==='prev'?a.previousSibling():a.nextSibling()},setCollapseEl:function(b){var a=this.collapseEl;if(a){a.setDisplayed(b)}},onBeforeTargetExpand:function(a){this.setCollapseEl('none')},onBeforeTargetCollapse:function(){this.setCollapseEl('none')},onTargetCollapse:function(b){var a=this;if(b===a.getCollapseTarget()&&b[a.orientation==='vertical'?'collapsedHorizontal':'collapsedVertical']()){a.el.addCls(a.collapsedClsInternal+' '+(a.collapsedCls||''))}a.setCollapseEl('')},onTargetExpand:function(b){var a=this;a.el.removeCls(a.collapsedClsInternal+' '+(a.collapsedCls||''));a.setCollapseEl('')},collapseDirProps:{top:{cls:'x-layout-split-top'},right:{cls:'x-layout-split-right'},bottom:{cls:'x-layout-split-bottom'},left:{cls:'x-layout-split-left'}},orientationProps:{horizontal:{opposite:'vertical',fixedAxis:'height',stretchedAxis:'width'},vertical:{opposite:'horizontal',fixedAxis:'width',stretchedAxis:'height'}},applyCollapseDirection:function(){var c=this,a=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],b;if(a){b=a.lastCollapseDirCls;if(b){a.removeCls(b)}a.addCls(a.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var a=this,e=a.orientation,b=a.orientationProps[e],f=a.size,d=b.fixedAxis,c=b.stretchedAxis,g=a.baseCls+'-';a[e]=!0;a[b.opposite]=!1;if(!a.hasOwnProperty(d)||a[d]==='100%'){a[d]=f}if(!a.hasOwnProperty(c)||a[c]===f){a[c]='100%'}a.removeCls(g+b.opposite);a.addCls(g+e)},setOrientation:function(b){var a=this;if(a.orientation!==b){a.orientation=b;a.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,e){var a=this.getCollapseTarget(),c=a.placeholder,b;if(Ext.isFunction(a.expand)&&Ext.isFunction(a.collapse)){if(c&&!c.hidden){b=!0}else {b=!a.hidden}if(b){if(a.collapsed){a.expand()}else {if(a.collapseDirection){a.collapse()}else {a.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},beforeDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.beforeDestroy.call(this)}},0,['splitter'],['component','box','splitter'],{'component':!0,'box':!0,'splitter':!0},['widget.splitter'],0,[Ext.resizer,'Splitter'],0);Ext.define('Ext.theme.neptune.resizer.Splitter',{override:'Ext.resizer.Splitter',size:8});Ext.cmd.derive('Ext.layout.container.Box',Ext.layout.container.Container,{alternateClassName:'Ext.layout.BoxLayout',type:'box',config:{align:'begin',constrainAlign:!1,enableSplitters:!0,overflowHandler:{$value:null,merge:function(a,b){if(typeof a==='string'){a={type:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},padding:0,pack:'start',stretchMaxPartner:undefined,vertical:!1,alignRoundingMethod:'round'},itemCls:'x-box-item',targetCls:'x-box-layout-ct',targetElCls:'x-box-target',innerCls:'x-box-inner',manageMargins:!0,createsInnerCt:!0,childEls:['innerCt','targetEl'],renderTpl:['{%var oc,l=values.$comp.layout,oh=l.overflowHandler;if (oh && oh.getPrefixConfig!==Ext.emptyFn) {if(oc=oh.getPrefixConfig())dh.generateMarkup(oc, out)}%}{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:!0,definitions:'var dh=Ext.DomHelper;'}],constructor:function(c){var a=this,b;Ext.layout.container.Container.prototype.constructor.apply(this,arguments);a.setVertical(a.vertical);a.flexSortFn=a.flexSort.bind(a);b=typeof a.padding;if(b==='string'||b==='number'){a.padding=Ext.util.Format.parseBox(a.padding);a.padding.height=a.padding.top+a.padding.bottom;a.padding.width=a.padding.left+a.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(h,b){var a=this,f=a.sizePolicy,g=a.align,p=h.flex,c=g,o=a.names,e=o.height,m=o.width,q=h[m],n=h[e],d=a._percentageRe,i=d.test(q),l=g==='stretch',j=g==='stretchmax',k=a.constrainAlign;if(!b&&(l||p||i||k&&!j)){b=a.owner.getSizeModel()}if(l){if(!d.test(n)&&b[e].shrinkWrap){c='stretchmax'}}else {if(!j){if(d.test(n)){c='stretch'}else {if(k&&!b[e].shrinkWrap){c='stretchmax'}else {c=''}}}}if(p||i){if(!b[m].shrinkWrap){f=f.flex}}return f[c]},flexSort:function(o,p){var k=this.names.maxWidth,l=this.names.minWidth,j=Infinity,c=o.target,d=p.target,m=c.flex,n=d.flex,a=0,g,i,f,h,e,b;f=c[k]||j;h=d[k]||j;g=c[l]||0;i=d[l]||0;e=isFinite(g)||isFinite(i);b=isFinite(f)||isFinite(h);if(e||b){if(b){a=f-h}if(a===0&&e){a=i-g}if(a===0){if(b){a=n-m}else {a=m-n}}}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(a){var b=this;if(b.direction==='vertical'&&a.collapsedVertical()){a.collapseMemento.capture(['flex']);delete a.flex}else {if(b.direction==='horizontal'&&a.collapsedHorizontal()){a.collapseMemento.capture(['flex']);delete a.flex}}},beginExpand:function(a){a.collapseMemento.restore(['flex'])},beginLayout:function(a){var c=this,f=c.owner,b=f.stretchMaxPartner,h=c.innerCt.dom.style,i=c.names,g=c.overflowHandler,e=f.getScrollable(),d;a.boxNames=i;if(g){g.beginLayout(a)}if(typeof b==='string'){b=Ext.getCmp(b)||f.query(b)[0]}a.stretchMaxPartner=b&&a.context.getCmp(b);Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);a.innerCtContext=a.getEl('innerCt',c);a.targetElContext=a.getEl('targetEl',c);if(e){a.ownerScrollable=e;d=e.getPosition();if(d.x||d.y){a.scrollRestore=d}}h.width=h.height=''},beginLayoutCycle:function(a,l){var c=this,i=a.state,g=a.ownerScrollable,b=c.align,e=a.boxNames,d=c.pack,k=c._centerRe,j=c.overflowHandler,m=a.state.canScroll,h,f;if(j){j.beginLayoutCycle(a,l)}Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);a.parallelSizeModel=h=a[e.widthModel];a.perpendicularSizeModel=f=a[e.heightModel];a.boxOptions={align:b={stretch:b==='stretch',stretchmax:b==='stretchmax',center:k.test(b),bottom:c._endRe.test(b)},pack:d={center:k.test(d),end:d==='end'}};if(g){if(!m){i.canScroll={parallel:!h.shrinkWrap&&g[e.getX](),perpendicular:!f.shrinkWrap&&g[e.getY]()}}if(!i.actualScroll){i.actualScroll={parallel:!1,perpendicular:!1}}}if(b.stretch&&f.shrinkWrap){b.stretchmax=!0;b.stretch=!1}b.nostretch=!(b.stretch||b.stretchmax);if(h.shrinkWrap){d.center=d.end=!1}c.cacheFlexes(a);c.targetEl.setWidth(20000)},cacheFlexes:function(a){var u=this,d=a.boxNames,x=d.widthModel,w=d.heightModel,z=a.boxOptions.align.nostretch,s=0,r=a.childItems,v=r.length,h=[],t=0,g=0,o=0,p=d.minWidth,y=d.minHeight,q=u._percentageRe,n=0,m=0,b,c,l,f,i,j,k,e;while(v--){c=r[v];b=c.target;j=c[x];if(j.calculated){c.flex=l=b.flex;if(l){s+=l;h.push(c);t+=b[p]||0}else {f=q.exec(b[d.width]);c.percentageParallel=parseFloat(f[1])/100;++n}}if(j.configured){k=b[d.width]}else {k=b[p]||0}o+=k;i=c[w];if(z&&i.calculated){f=q.exec(b[d.height]);c.percentagePerpendicular=parseFloat(f[1])/100;++m}if(i.configured){e=b[d.height]}else {e=b[y]||0}if(e>g){g=e}}a.flexedItems=h;a.flexedMinWidth=t;a.smallestWidth=o;a.smallestHeight=g;a.totalFlex=s;a.percentageWidths=n;a.percentageHeights=m;Ext.Array.sort(h,u.flexSortFn)},calculate:function(b){var c=this,f=b.boxNames,a=b.state,h=a.actualScroll,g=a.needsScroll,e=a.canScroll,d=a.boxPlan||(a.boxPlan={}),i=c.overflowHandler;d.targetSize=c.getContainerSize(b);if(e&&!g){a.needsScroll=g={parallel:e.parallel&&d.targetSize[f.width]j){a.invalidate({before:K,after:L,layout:l,childHeight:j,names:d});c.state.parallelDone=!1}if(isNaN(b=o(b,g+i,a.target[d.minHeight]||0))){return !1}}}if(v){b+=q;c[d.hasOverflowX]=!0;c.target.componentLayout[d.setHeightInDom]=!0;c[d.invalidateScrollX]=Ext.isIE8}p=c.stretchMaxPartner;if(p){c.setProp('maxChildHeight',b);w=p.childItems;if(w&&w.length){b=o(b,p.getProp('maxChildHeight'));if(isNaN(b)){return !1}}}c[d.setContentHeight](b+l.padding[e]+c.targetContext.getPaddingInfo()[e]);if(v){b-=q}if(b>y[e]&&H&&H.perpendicular){C.actualScroll.perpendicular=!0}t.maxSize=b;if(O){f=b}else {if(B||A||D){if(I){f=h?b:j}else {f=h?b:o(j,b)}f-=c.innerCtContext.getBorderInfo()[e]}}for(k=0;k0){n=u+Math[l.alignRoundingMethod](s/2)}}else {if(A){n=o(0,f-n-a.props[e])}}}a.setProp(M,n)}return !0},onBeforeConstrainInvalidateChild:function(b,c){var a=c.names.heightModel;if(!b[a].constrainedMin){b[a]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(a,c){var b=c.names;a.setProp(b.beforeY,0);if(a[b.heightModel].calculated){a[b.setHeight](c.childHeight)}},calculateStretchMax:function(k,c,o){var f=this,h=c.height,l=c.width,g=k.childItems,n=g.length,m=o.maxSize,i=f.onBeforeStretchMaxInvalidateChild,j=f.onAfterStretchMaxInvalidateChild,a,b,d,e;for(d=0;d':{xtype:'tbfill',height:0}},1:{'->':{xtype:'tbfill',width:0}}}},initComponent:function(){var a=this,b=a.layout,c=a.vertical;if(c===undefined){a.vertical=c=a.dock==='right'||a.dock==='left'}a.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:c?'vbox':'hbox',align:c?'stretchmax':'middle'});if(a.overflowHandler){b.overflowHandler=a.overflowHandler}else {if(a.enableOverflow){b.overflowHandler='menu'}}if(c){a.addClsWithUI('vertical')}if(a.ui==='footer'){a.ignoreBorderManagement=!0}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(d){var c=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),e=c.layout,a;if(d&&(c.enableOverflow||c.overflowHandler==='menu')){a=e.overflowHandler;if(a&&a.menu){b=b.concat(a.menu.getRefItems(d))}}return b},lookupComponent:function(a){var d=arguments,b,c;if(typeof a==='string'){c=Ext.toolbar.Toolbar;b=c.shortcutsHV[this.vertical?1:0][a]||c.shortcuts[a];if(typeof b==='string'){a={xtype:b}}else {if(b){a=Ext.apply({},b)}else {a={xtype:'tbtext',text:a}}}this.applyDefaults(a);d=[a]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(a){var b=this,d=b.ui==='footer',c=d?b.defaultFooterButtonUI:b.defaultButtonUI;if(a.isSegmentedButton){if(a.getDefaultUI()==='default'&&!a.config.hasOwnProperty('defaultUI')){a.setDefaultUI(c)}}else {if(a.ui==='default'&&!a.hasOwnProperty('ui')){if(a.isButton){a.ui=c}else {if(a.isFormField){a.ui=d?b.defaultFooterFieldUI:b.defaultFieldUI}}}}if(a instanceof Ext.toolbar.Separator){a.setUI(b.vertical?'vertical':'horizontal')}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(a){if(a.needArrowKeys&&this.enableFocusableContainer){this.enableFocusableContainer=!1}Ext.container.Container.prototype.onAdd.apply(this,arguments);this.trackMenu(a)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,!0)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(b,c){var a=this;if(a.trackMenus&&b.menu){b[c?'un':'on']({mouseover:a.onButtonOver,menushow:a.onButtonMenuShow,menuhide:a.onButtonMenuHide,scope:a})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(a,c){var b=this.activeMenuBtn;if(b&&b!==a){b.hideMenu();a.focus();a.showMenu(c);this.activeMenuBtn=a}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,['toolbar'],['component','box','container','toolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0},['widget.toolbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,'Toolbar',Ext,'Toolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Toolbar',{override:'Ext.toolbar.Toolbar',usePlainButtons:!1,border:!1});Ext.cmd.derive('Ext.dd.DragDrop',Ext.Base,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:!1,lock:function(){this.locked=!0},moveOnly:!1,unlock:function(){this.locked=!1},isTarget:!0,padding:null,_domRef:null,__ygDragDrop:!0,constrainX:!1,constrainY:!1,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:!1,xTicks:null,yTicks:null,primaryButtonOnly:!0,available:!1,hasOuterHandles:!1,triggerEvent:'mousedown',b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(b,a){},b4DragOver:function(a){},onDragOver:function(b,a){},b4DragOut:function(a){},onDragOut:function(b,a){},b4DragDrop:function(a){},onDragDrop:function(b,a){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(j,a,k){if(Ext.isNumber(a)){a={left:a,right:a,top:a,bottom:a}}a=a||this.defaultPadding;var c=Ext.get(this.getEl()).getBox(),e=Ext.get(j),i=e.getScroll(),b,d=e.dom,h,g,f;if(d===document.body){b={x:i.left,y:i.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else {h=e.getXY();b={x:h[0],y:h[1],width:d.clientWidth,height:d.clientHeight}}g=c.y-b.y;f=c.x-b.x;this.resetConstraints();this.setXConstraint(f-(a.left||0),b.width-f-c.width-(a.right||0),this.xTickSize);this.setYConstraint(g-(a.top||0),b.height-g-c.height-(a.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(b,d,c){var a=this;a.el=a.el||Ext.get(b);a.initTarget(b,d,c);Ext.get(a.id).on(a.triggerEvent,a.handleMouseDown,a)},initTarget:function(a,b,c){this.config=c||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof a!=='string'){a=Ext.id(a)}this.id=a;this.addToGroup(b?b:'default');this.handleElId=a;this.setDragElId(a);this.invalidHandleTypes={A:'A'};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=this.config.isTarget!==!1;this.maintainOffset=this.config.maintainOffset;this.primaryButtonOnly=this.config.primaryButtonOnly!==!1},handleOnAvailable:function(){this.available=!0;this.resetConstraints();this.onAvailable()},setPadding:function(a,b,c,d){if(!b&&0!==b){this.padding=[a,a,a,a]}else {if(!c&&0!==c){this.padding=[a,b,a,b]}else {this.padding=[a,b,c,d]}}},setInitPosition:function(e,f){var d=this.getEl(),b,c,a;if(!this.DDMInstance.verifyEl(d)){return}b=e||0;c=f||0;a=Ext.fly(d).getXY();this.initPageX=a[0]-b;this.initPageY=a[1]-c;this.lastPageX=a[0];this.lastPageY=a[1];this.setStartPosition(a)},setStartPosition:function(b){var a=b||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=a[0];this.startPageY=a[1]},addToGroup:function(a){this.groups[a]=!0;this.DDMInstance.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDMInstance.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.handleElId=a;this.DDMInstance.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}Ext.get(a).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=!0},unreg:function(){var a=this,b;if(a._domRef){b=Ext.fly(a.id);if(b){b.un(a.triggerEvent,a.handleMouseDown,a)}}a._domRef=null;a.DDMInstance._remove(a,a.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return this.DDMInstance.isLocked()||this.locked},handleMouseDown:function(b,c){var a=this;if(a.primaryButtonOnly&&b.button||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(b.getPoint(),a)){if(a.clickValidator(b)){a.setStartPosition();a.b4MouseDown(b);a.onMouseDown(b);a.DDMInstance.handleMouseDown(b,a);a.DDMInstance.stopEvent(b)}}},clickValidator:function(b){var a=b.getTarget();return this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id))},addInvalidHandleType:function(b){var a=b.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){var b=a.toUpperCase();delete this.invalidHandleTypes[b]},removeInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(c){var b=this.invalidHandleClasses,d=b.length,a;for(a=0;a=this.minX;a=a-c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}for(a=this.initPageX;a<=this.maxX;a=a+c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,c){this.yTicks=[];this.yTickSize=c;var b={},a;for(a=this.initPageY;a>=this.minY;a=a-c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}for(a=this.initPageY;a<=this.maxY;a=a+c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(c,b,a){this.leftConstraint=c;this.rightConstraint=b;this.minX=this.initPageX-c;this.maxX=this.initPageX+b;if(a){this.setXTicks(this.initPageX,a)}this.constrainX=!0},clearConstraints:function(){this.constrainX=!1;this.constrainY=!1;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(c,b,a){this.topConstraint=c;this.bottomConstraint=b;this.minY=this.initPageY-c;this.maxY=this.initPageY+b;if(a){this.setYTicks(this.initPageY,a)}this.constrainY=!0},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var a=this.maintainOffset?this.lastPageX-this.initPageX:0,b=this.maintainOffset?this.lastPageY-this.initPageY:0;this.setInitPosition(a,b)}else {this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(d,a){if(!a){return d}else {if(a[0]>=d){return a[0]}else {var b,g,c,e,f;for(b=0,g=a.length;b=d){e=d-a[b];f=a[c]-d;return f>e?a[b]:a[c]}}return a[a.length-1]}}},toString:function(){return 'DragDrop '+this.id}},3,0,0,0,0,0,[Ext.dd,'DragDrop'],0);Ext.cmd.derive('Ext.dd.DD',Ext.dd.DragDrop,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},scroll:!0,autoOffset:function(a,b){var c=a-this.startPageX,d=b-this.startPageY;this.setDelta(c,d)},setDelta:function(a,b){this.deltaX=a;this.deltaY=b},setDragElPos:function(a,b){var c=this.getDragEl();this.alignElWithMouse(c,a,b)},alignElWithMouse:function(d,j,k){var a=this.getTargetCoord(j,k),c=d.dom?d:Ext.fly(d,'_dd'),e=c.getSize(),i=Ext.Element,b,g,f,h;if(!this.deltaSetXY){b=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};g=[Math.max(0,Math.min(a.x,b.width-e.width)),Math.max(0,Math.min(a.y,b.height-e.height))];c.setXY(g);f=this.getLocalX(c);h=c.getLocalY();this.deltaSetXY=[f-a.x,h-a.y]}else {b=this.cachedViewportSize;this.setLocalXY(c,Math.max(0,Math.min(a.x+this.deltaSetXY[0],b.width-e.width)),Math.max(0,Math.min(a.y+this.deltaSetXY[1],b.height-e.height)))}this.cachePosition(a.x,a.y);this.autoScroll(a.x,a.y,d.offsetHeight,d.offsetWidth);return a},cachePosition:function(b,c){if(b){this.lastPageX=b;this.lastPageY=c}else {var a=Ext.fly(this.getEl()).getXY();this.lastPageX=a[0];this.lastPageY=a[1]}},autoScroll:function(e,f,m,n){if(this.scroll){var g=Ext.Element.getViewportHeight(),h=Ext.Element.getViewportWidth(),b=this.DDMInstance.getScrollTop(),a=this.DDMInstance.getScrollLeft(),l=m+f,j=n+e,k=g+b-f-this.deltaY,i=h+a-e-this.deltaX,d=40,c=document.all?80:30;if(l>g&&k0&&f-bh&&i0&&e-athis.maxX){a=this.maxX}}if(this.constrainY){if(bthis.maxY){b=this.maxY}}a=this.getTick(a,this.xTicks);b=this.getTick(b,this.yTicks);return {x:a,y:b}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=this.config.scroll!==!1},b4MouseDown:function(b){var a=b.getXY();this.autoOffset(a[0],a[1])},b4Drag:function(b){var a=b.getXY();this.setDragElPos(a[0],a[1])},toString:function(){return 'DD '+this.id},getLocalX:function(a){return a.getLocalX()},setLocalXY:function(a,b,c){a.setLocalXY(b,c)}},3,0,0,0,0,0,[Ext.dd,'DD'],0);Ext.cmd.derive('Ext.dd.DDProxy',Ext.dd.DD,{statics:{dragElId:'ygddfdiv'},constructor:function(a,c,b){if(a){this.init(a,c,b);this.initFrame()}},resizeFrame:!0,centerFrame:!1,createFrame:function(){var d=this,c=document.body,a,b;if(!c||!c.firstChild){Ext.defer(function(){d.createFrame()},50);return}a=this.getDragEl();if(!a){a=document.createElement('div');a.id=this.dragElId;a.setAttribute('role','presentation');b=a.style;b.position='absolute';b.visibility='hidden';b.cursor='move';b.border='2px solid #aaa';b.zIndex=999;c.insertBefore(a,c.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=this.config.resizeFrame!==!1;this.centerFrame=this.config.centerFrame;this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(d,e){var a=this,b=a.getDragEl(),c=b.style;a._resizeProxy();if(a.centerFrame){a.setDelta(Math.round(parseInt(c.width,10)/2),Math.round(parseInt(c.height,10)/2))}a.setDragElPos(d,e);Ext.fly(b).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(d){var a=d.getXY(),b=a[0],c=a[1];this.autoOffset(b,c);this.setDragElPos(b,c)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl(),a=this.getDragEl();a.style.visibility='';this.beforeMove();b.style.visibility='hidden';Ext.dd.DDM.moveToEl(b,a);a.style.visibility='hidden';b.style.visibility='';this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return 'DDProxy '+this.id}},3,0,0,0,0,0,[Ext.dd,'DDProxy'],0);Ext.cmd.derive('Ext.dd.StatusProxy',Ext.Component,{animRepair:!1,childEls:['ghost'],renderTpl:[''],repairCls:'x-dd-drag-repair',ariaRole:'presentation',skipLayout:!0,constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:'visibility',hidden:!0,floating:!0,id:b.id||Ext.id(),cls:'x-dd-drag-proxy '+this.dropNotAllowed,shadow:a.shadow||!1,renderTo:Ext.getDetachedBody()});Ext.Component.prototype.constructor.apply(this,arguments);this.dropStatus=this.dropNotAllowed},dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',setStatus:function(a){a=a||this.dropNotAllowed;if(this.dropStatus!==a){this.el.replaceCls(this.dropStatus,a);this.dropStatus=a}},reset:function(c){var a=this,b='x-dd-drag-proxy ';a.el.replaceCls(b+a.dropAllowed,b+a.dropNotAllowed);a.dropStatus=a.dropNotAllowed;if(c){a.ghost.setHtml('')}},update:function(a){if(typeof a==='string'){this.ghost.setHtml(a)}else {this.ghost.setHtml('');a.style.margin='0';this.ghost.dom.appendChild(a)}var b=this.ghost.dom.firstChild;if(b){Ext.fly(b).setStyle('float','none')}},getGhost:function(){return this.ghost},hide:function(a){Ext.Component.prototype.hide.call(this);if(a){this.reset(!0)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(b,c,d){var a=this;a.callback=c;a.scope=d;if(b&&a.animRepair!==!1){a.el.addCls(a.repairCls);a.el.setUnderlaysVisible(!1);a.anim=a.el.animate({duration:a.repairDuration||500,easing:'ease-out',to:{x:b[0],y:b[1]},stopAnimation:!0,callback:a.afterRepair,scope:a})}else {a.afterRepair()}},afterRepair:function(){var a=this;a.hide(!0);a.el.removeCls(a.repairCls);if(typeof a.callback==='function'){a.callback.call(a.scope||a)}delete a.callback;delete a.scope}},1,0,['component','box'],{'component':!0,'box':!0},0,0,[Ext.dd,'StatusProxy'],0);Ext.cmd.derive('Ext.dd.DragSource',Ext.dd.DDProxy,{dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',animRepair:!0,repairHighlightColor:'c3daf9',constructor:function(b,a){this.el=Ext.get(b);if(!this.dragData){this.dragData={}}Ext.apply(this,a);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy({id:this.el.id+'-drag-status-proxy',animRepair:this.animRepair})}Ext.dd.DDProxy.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:!1,isTarget:!1,scroll:this.scroll===!0});this.dragging=!1},getDragData:function(a){return this.dragData},onDragEnter:function(c,b){var a=Ext.dd.DragDropManager.getDDById(b),d;this.cachedTarget=a;if(this.beforeDragEnter(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyEnter(this,c,this.dragData);this.proxy.setStatus(d)}else {this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(a,c,b)}}},beforeDragEnter:function(a,c,b){return !0},onDragOver:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b),d;if(this.beforeDragOver(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyOver(this,c,this.dragData);this.proxy.setStatus(d)}if(this.afterDragOver){this.afterDragOver(a,c,b)}}},beforeDragOver:function(a,c,b){return !0},onDragOut:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragOut(a,c,b)!==!1){if(a.isNotifyTarget){a.notifyOut(this,c,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,c,b)}}this.cachedTarget=null},beforeDragOut:function(a,c,b){return !0},onDragDrop:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragDrop(a,c,b)!==!1){if(a.isNotifyTarget){if(a.notifyDrop(this,c,this.dragData)!==!1){this.onValidDrop(a,c,b)}else {this.onInvalidDrop(a,c,b)}}else {this.onValidDrop(a,c,b)}if(this.afterDragDrop){this.afterDragDrop(a,c,b)}}delete this.cachedTarget},beforeDragDrop:function(a,c,b){return !0},onValidDrop:function(a,c,b){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(a,c,b)}},getRepairXY:function(b,a){return this.el.getXY()},onInvalidDrop:function(c,b,d){var a=this;if(!b){b=c;c=null;d=b.getTarget().id}if(a.beforeInvalidDrop(c,b,d)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}a.proxy.repair(a.getRepairXY(b,a.dragData),a.afterRepair,a);if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}},afterRepair:function(){var a=this;if(Ext.enableFx){a.el.highlight(a.repairHighlightColor)}a.dragging=!1},beforeInvalidDrop:function(a,c,b){return !0},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==!1){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return !0},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(!0);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=!1;this.dragging=!0;this.proxy.update('');this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(b,c){var a=this.el.dom.cloneNode(!0);a.id=Ext.id();this.proxy.update(a);this.onStartDrag(b,c);return !0},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(!0);this.dragging=!1},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(a){},endDrag:function(a){this.onEndDrag(this.dragData,a)},onEndDrag:function(a,b){},autoOffset:function(a,b){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DDProxy.prototype.destroy.call(this);Ext.destroy(this.proxy)}},1,0,0,0,0,0,[Ext.dd,'DragSource'],0);Ext.cmd.derive('Ext.panel.Proxy',Ext.Base,{alternateClassName:'Ext.dd.PanelProxy',moveOnDrag:!0,constructor:function(c,b){var a=this;a.panel=c;a.id=a.panel.id+'-ddproxy';Ext.apply(a,b)},insertProxy:!0,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost.el},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){var a=this;if(a.ghost){if(a.proxy){a.proxy.destroy();delete a.proxy}a.panel.unghost(null,a.moveOnDrag);delete a.ghost}},show:function(){var a=this,b;if(!a.ghost){b=a.panel.getSize();a.panel.el.setVisibilityMode(Ext.Element.DISPLAY);a.ghost=a.panel.ghost();if(a.insertProxy){a.proxy=a.panel.el.insertSibling({role:'presentation',cls:'x-panel-dd-spacer'});a.proxy.setSize(b)}}},repair:function(c,a,b){this.hide();Ext.callback(a,b||this)},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}},1,0,0,0,0,0,[Ext.panel,'Proxy',Ext.dd,'PanelProxy'],0);Ext.cmd.derive('Ext.panel.DD',Ext.dd.DragSource,{constructor:function(b,c){var a=this;a.panel=b;a.dragData={panel:b};a.panelProxy=new Ext.panel.Proxy(b,c);a.proxy=a.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,c);a.setupEl(b)},setupEl:function(c){var a=this,b=c.header,d=c.body;if(b){a.setHandleElId(b.id);d=b.el}if(d){d.setStyle('cursor','move');a.scroll=!1}else {c.on('boxready',a.setupEl,a,{single:!0})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(b){var a=b.getXY(),c=a[0],d=a[1];this.autoOffset(c,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return !0},createFrame:Ext.emptyFn,getDragEl:function(b){var a=this.panelProxy.ghost;if(a){return a.el.dom}},endDrag:function(a){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)},onInvalidDrop:function(d,b,c){var a=this;if(a.beforeInvalidDrop(d,b,c)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,c)}}}},1,0,0,0,0,0,[Ext.panel,'DD'],0);Ext.cmd.derive('Ext.layout.component.Dock',Ext.layout.component.Component,{alternateClassName:'Ext.layout.component.AbstractDock',type:'dock',horzAxisProps:{name:'horz',oppositeName:'vert',dockBegin:'left',dockEnd:'right',horizontal:!0,marginBegin:'margin-left',maxSize:'maxWidth',minSize:'minWidth',pos:'x',setSize:'setWidth',shrinkWrapDock:'shrinkWrapDockWidth',size:'width',sizeModel:'widthModel'},vertAxisProps:{name:'vert',oppositeName:'horz',dockBegin:'top',dockEnd:'bottom',horizontal:!1,marginBegin:'margin-top',maxSize:'maxHeight',minSize:'minHeight',pos:'y',setSize:'setHeight',shrinkWrapDock:'shrinkWrapDockHeight',size:'height',sizeModel:'heightModel'},initializedBorders:-1,horizontalCollapsePolicy:{width:!0,x:!0},verticalCollapsePolicy:{height:!0,y:!0},finishRender:function(){var a=this,b,c;Ext.layout.component.Component.prototype.finishRender.call(this);b=a.getRenderTarget();c=a.getDockedItems();a.finishRenderItems(b,c)},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},noBorderClasses:['x-docked-noborder-top','x-docked-noborder-right','x-docked-noborder-bottom','x-docked-noborder-left'],noBorderClassesSides:{top:'x-docked-noborder-top',right:'x-docked-noborder-right',bottom:'x-docked-noborder-bottom',left:'x-docked-noborder-left'},borderWidthProps:{top:'border-top-width',right:'border-right-width',bottom:'border-bottom-width',left:'border-left-width'},_itemCls:'x-docked',handleItemBorders:function(){var c=this,b=c.owner,a,l,k=c.lastDockedItems,j=c.borders,m=b.dockedItems.generation,i=c.noBorderClassesSides,n=c.borderWidthProps,f,h,d,g,e,o=c.collapsed;if(c.initializedBorders===m||b.border&&!b.manageBodyBorders||b.collapsed&&b.collapseMode==='mini'){return}c.initializedBorders=m;c.collapsed=!1;c.lastDockedItems=l=c.getLayoutItems();c.collapsed=o;a={top:[],right:[],bottom:[],left:[]};for(f=0,h=l.length;fj){b=i.constrainedMax;m=j}else {if(hj){c=i.constrainedMax;l=j}else {if(h',addDocked:function(c,d){var b=this,k=b.rendered,f=0,g=b.dockedItems,i=g.getCount(),e,h,a,j;c=b.prepareItems(c);j=c.length;if(k){Ext.suspendLayouts()}if(d===undefined){d=i}else {d=Math.min(d,i)}for(;f','
    ','{headingText}','
    ','','{% this.renderDockedItems(out,values,0); %}','
    {bodyCls}',' {baseCls}-body-{ui}',' {parent.baseCls}-body-{parent.ui}-{.}','{childElCls}"','',' {$}="{.}"','',' role="presentation"','',' style="{bodyStyle}">','{%this.renderContainer(out,values);%}','
    ','{% this.renderDockedItems(out,values,1); %}'],headerPosition:'top',iconAlign:'left',titleAlign:'left',titleRotation:'default',beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titleRotation:null},animCollapse:Ext.enableFx,border:!0,closable:!1,closeAction:'destroy',closeToolText:'Close panel',collapsed:!1,collapsedCls:'collapsed',collapseFirst:!0,collapsible:undefined,collapseToolText:'Collapse panel',expandToolText:'Expand panel',constrain:!1,constrainHeader:!1,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:!0,frame:!1,frameHeader:!0,hideCollapseTool:!1,manageHeight:!0,maskElement:'el',minButtonWidth:75,preventHeader:!1,shrinkWrapDock:!1,titleCollapse:undefined,baseCls:'x-panel',bodyPosProps:{x:'x',y:'y'},componentLayout:'dock',contentPaddingProperty:'bodyPadding',emptyArray:[],isPanel:!0,defaultBindProperty:'title',addBodyCls:function(c){var a=this,b=a.rendered?a.body:a.getProtoBody();b.addCls(c);return a},addTool:function(b){if(!Ext.isArray(b)){b=[b]}var c=this,a=c.header,g=b.length,f=c.tools,e,d;if(!a||!a.isHeader){a=null;if(!f){c.tools=f=[]}}for(e=0;e0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(a.is(this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(e,b){var a=this,d=a.items,c=a.addHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.add(b)}}},onItemRemove:function(e,b){var a=this,d=a.items,c=a.removeHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.remove(b)}}},onContainerAdd:function(c,i){var a=this,d,e,h=a.handleAdd,g=a.handleRemove,b,f;if(c.isContainer){c.on('add',h,a);c.on('dockedadd',h,a);c.on('remove',g,a);c.on('dockedremove',g,a)}if(i!==!0){d=c.query(a.selector);for(b=0,e=d.length;bcontainer');for(b=0,e=d.length;ba.tolerance){a.triggerStart(b)}else {return}}if(a.fireEvent('mousemove',a,b)===!1){a.onMouseUp(b)}else {a.onDrag(b);a.fireEvent('drag',a,b)}},onMouseUp:function(b){var a=this;a.mouseIsDown=!1;if(a.mouseIsOut){a.mouseIsOut=!1;a.onMouseOut(b)}if(a.preventDefault!==!1){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent('mouseup',a,b);a.endDrag(b)},endDrag:function(b){var a=this,c=a.active;Ext.getDoc().un({mousemove:a.onMouseMove,mouseup:a.onMouseUp,selectstart:a.stopSelect,capture:!0,scope:a});a.clearStart();a.active=!1;if(c){a.dragEnded=!0;a.onEnd(b);a.fireEvent('dragend',a,b)}a._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=!0;a.onStart(b);a.fireEvent('dragstart',a,b)},clearStart:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return !1},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var a=this;if(a.constrainTo){if(a.constrainTo instanceof Ext.util.Region){return a.constrainTo}if(!a._constrainRegion){a._constrainRegion=Ext.fly(a.constrainTo).getViewRegion()}}else {if(!a._constrainRegion){a._constrainRegion=a.getDragCt().getViewRegion()}}return a._constrainRegion},getXY:function(a){return a?this.constrainModes[a](this,this.lastXY):this.lastXY},getOffset:function(c){var a=this.getXY(c),b=this.startXY;return [a[0]-b[0],a[1]-b[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(d,b){var a=d.dragRegion,c=d.getConstrainRegion();if(!c){return b}a.x=a.left=a[0]=a.right=b[0];a.y=a.top=a[1]=a.bottom=b[1];a.constrainTo(c);return [a.left,a.top]},dragTarget:function(e,c){var f=e.startXY,a=e.startRegion.copy(),b=e.getConstrainRegion(),d;if(!b){return c}a.translateBy(c[0]-f[0],c[1]-f[1]);if(a.right>b.right){c[0]+=d=b.right-a.right;a.left+=d}if(a.leftb.bottom){c[1]+=d=b.bottom-a.bottom;a.top+=d}if(a.top[flex]'),o=j.length,h=n==='vertical',i=0,d=h?'width':'height',m=0,g,a;for(;i',tabGuardIndex:0},tabGuardPositionAttribute:'data-tabguardposition',privates:{initTabGuards:function(){var a=this,f=a.tabGuardPositionAttribute,c=a.tabGuardBeforeEl,d=a.tabGuardAfterEl,e=a.tabGuardIndex,b;if(!a.rendered||!a.tabGuard){return}b=a.el.findTabbableElements({skipSelf:!0});if(b[0]&&b[0].hasAttribute(f)){b.shift()}if(b.length&&b[b.length-1].hasAttribute(f)){b.pop()}if(b.length){c.dom.setAttribute('tabIndex',e);c.on('focusenter',a.onTabGuardFocusEnter,a);d.dom.setAttribute('tabIndex',e);d.on('focusenter',a.onTabGuardFocusEnter,a)}else {c.dom.removeAttribute('tabIndex');c.un('focusenter',a.onTabGuardFocusEnter,a);d.dom.removeAttribute('tabIndex');d.un('focusenter',a.onTabGuardFocusEnter,a)}},onTabGuardFocusEnter:function(j,i){var h=this,e=h.el,g=h.tabGuardPositionAttribute,f=i.getAttribute(g),d=j.relatedTarget,a,c,b;if(!d.hasAttribute(g)&&d!==e.dom&&e.contains(d)){c=f==='before'?!1:!0}else {c=f==='before'?!0:!1}a=e.findTabbableElements({skipSelf:!0});a.shift();a.pop();b=c?a[0]:a[a.length-1];if(b){b.focus()}}}},0,0,0,0,0,0,[Ext.util,'FocusTrap'],0);Ext.cmd.derive('Ext.window.Window',Ext.panel.Panel,{alternateClassName:'Ext.Window',baseCls:'x-window',resizable:!0,draggable:!0,constrain:!1,constrainHeader:!1,plain:!1,minimizable:!1,maximizable:!1,minHeight:50,minWidth:50,expandOnShow:!0,collapsible:!1,closable:!0,hidden:!0,autoRender:!0,hideMode:'offsets',floating:!0,itemCls:'x-window-item',overlapHeader:!0,ignoreHeaderBorderManagement:!0,alwaysFramed:!0,isRootCfg:{isRoot:!0},isWindow:!0,ariaRole:'dialog',initComponent:function(){var a=this;a.frame=!1;Ext.panel.Panel.prototype.initComponent.call(this);if(a.plain){a.addClsWithUI('plain')}a.addStateEvents(['maximize','restore','resize','dragend'])},getElConfig:function(){var b=this,a;a=Ext.panel.Panel.prototype.getElConfig.call(this);a.tabIndex=-1;return a},getFocusEl:function(){return this.getDefaultFocus()||this.el},getState:function(){var a=this,e=Ext.panel.Panel.prototype.getState.call(this)||{},c=!!a.maximized,d=a.ghostBox,b;e.maximized=c;if(c){b=a.restorePos}else {if(d){b=[d.x,d.y]}else {b=a.getPosition()}}Ext.apply(e,{size:c?a.restoreSize:a.getSize(),pos:b});return e},applyState:function(a){var b=this;if(a){b.maximized=a.maximized;if(b.maximized){b.hasSavedRestore=!0;b.restoreSize=a.size;b.restorePos=a.pos}else {Ext.apply(b,{width:a.size.width,height:a.size.height,x:a.pos[0],y:a.pos[1]})}}},onRender:function(c,b){var a=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(a.header){a.header.on({scope:a,click:a.onHeaderClick})}if(a.maximizable){a.header.on({scope:a,dblclick:a.toggleMaximize})}},afterRender:function(){var a=this,c=a.header,b;if(a.maximized){a.maximized=!1;a.maximize();if(c){c.removeCls(c.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);if(a.closable){b=a.getKeyMap();b.on(27,a.onEsc,a)}else {b=a.keyMap}if(b&&a.hidden){b.disable()}},onEsc:function(b,a){a.stopEvent();this.close()},beforeDestroy:function(){var a=this;if(a.rendered){Ext.un('resize',a.onWindowResize,a);delete a.animateTarget;a.hide();Ext.destroy(a.keyMap)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},addTools:function(){var a=this,b=[];Ext.panel.Panel.prototype.addTools.call(this);if(a.minimizable){b.push({type:'minimize',handler:'minimize',scope:a})}if(a.maximizable){b.push({type:a.maximized?'restore':'maximize',handler:'toggleMaximize',scope:a})}if(b.length){a.addTool(b)}},onShow:function(){var a=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(a.expandOnShow){a.expand(!1)}a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.enable()}},doClose:function(){var a=this;if(a.hidden){a.fireEvent('close',a);if(a.closeAction==='destroy'){a.destroy()}}else {a.hide(a.animateTarget,a.doClose,a)}},afterHide:function(){var a=this;a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.disable()}Ext.panel.Panel.prototype.afterHide.apply(this,arguments)},onWindowResize:function(){var a=this,b;if(!a.destroyed){if(a.maximized){a.fitContainer()}else {b=a.getSizeModel();if(b.width.natural||b.height.natural){a.updateLayout()}a.doConstrain()}}},minimize:function(){this.fireEvent('minimize',this);return this},resumeHeaderLayout:function(a){this.header.resumeLayouts(a?this.isRootCfg:null)},afterCollapse:function(){var a=this,b=a.header,c=a.tools;if(b&&a.maximizable){b.suspendLayouts();c.maximize.hide();this.resumeHeaderLayout(!0)}if(a.resizer){a.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var a=this,c=a.header,d=a.tools,b;if(c){c.suspendLayouts();if(a.maximizable){d.maximize.show();b=!0}this.resumeHeaderLayout(b)}if(a.resizer){a.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(c){var a=this,b=a.header,f=a.tools,g=a.width,e=a.height,h,d;if(!a.maximized){a.expand(!1);if(!a.hasSavedRestore){h=a.restoreSize={width:g?g:null,height:e?e:null};a.restorePos=a.getPosition()}if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('restore')}if(a.collapseTool){a.collapseTool.hide();d=!0}a.resumeHeaderLayout(d)}a.el.disableShadow();if(a.dd){a.dd.disable();if(b){b.removeCls(b.indicateDragCls)}}if(a.resizer){a.resizer.disable()}a.el.addCls('x-window-maximized');a.container.addCls('x-window-maximized-ct');a.syncMonitorWindowResize();a.fitContainer(c=c||!!a.animateTarget?{callback:function(){a.maximized=!0;a.fireEvent('maximize',a)}}:null);if(!c){a.maximized=!0;a.fireEvent('maximize',a)}}return a},restore:function(c){var a=this,f=a.tools,b=a.header,d=a.restoreSize,e;if(a.maximized){a.hasSavedRestore=null;a.removeCls('x-window-maximized');if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('maximize')}if(a.collapseTool){a.collapseTool.show();e=!0}a.resumeHeaderLayout(e)}d.x=a.restorePos[0];d.y=a.restorePos[1];a.setBox(d,c=c||!!a.animateTarget?{callback:function(){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}:null);a.restorePos=a.restoreSize=null;if(a.dd){a.dd.enable();if(b){b.addCls(b.indicateDragCls)}}if(a.resizer){a.resizer.enable()}a.container.removeCls('x-window-maximized-ct');a.syncMonitorWindowResize();if(!c){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}return a},syncMonitorWindowResize:function(){var a=this,b=a._monitoringResize,d=a.monitorResize||a.constrain||a.constrainHeader||a.maximized,c=a.hidden||a.destroying||a.destroyed;if(d&&!c){if(!b){Ext.on('resize',a.onWindowResize,a,{buffer:1});a._monitoringResize=!0}}else {if(b){Ext.un('resize',a.onWindowResize,a);a._monitoringResize=!1}}},toggleMaximize:function(){return this[this.maximized?'restore':'maximize']()},createGhost:function(){var a=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);a.xtype='window';a.focusOnToFront=!1;return a},getDefaultFocus:function(){var d=this,b,a=d.defaultFocus,c;if(a!==undefined){if(Ext.isNumber(a)){b=d.query('button')[a]}else {if(Ext.isString(a)){c=a;if(Ext.validIdRe.test(c)){b=d.down(Ext.makeIdSelector(c))}if(!b){b=d.down(c)}}else {if(a.focus){b=a}}}}return b},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(b,c){var a;if(b.el.contains(c.getTarget())){a=this.getDefaultFocus();if(a){a.focus()}}},initResizable:function(){Ext.panel.Panel.prototype.initResizable.apply(this,arguments);if(this.maximized){this.resizer.disable()}}}},0,['window'],['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},['widget.window'],[[Ext.util.FocusTrap.prototype.mixinId||Ext.util.FocusTrap.$className,Ext.util.FocusTrap]],[Ext.window,'Window',Ext,'Window'],0);Ext.cmd.derive('Ext.form.Labelable',Ext.Mixin,{isLabelable:!0,mixinConfig:{id:'labelable',on:{beforeRender:'beforeLabelRender',onRender:'onLabelRender'}},config:{childEls:['labelEl','bodyEl','errorEl','errorWrapEl','ariaErrorEl']},labelableRenderTpl:['{beforeLabelTpl}','','{afterLabelTpl}','','','
    ','','
    ','
    ',{disableFormats:!0}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['','
      ','
    • {.}
    • ','
    ','
    '],plaintextActiveErrorsTpl:['','\n{.}',''],isFieldLabelable:!0,formItemCls:'x-form-item',labelCls:'x-form-item-label',topLabelCls:'x-form-item-label-top',rightLabelCls:'x-form-item-label-right',labelInnerCls:'x-form-item-label-inner',topLabelSideErrorCls:'x-form-item-label-top-side-error',errorMsgCls:'x-form-error-msg',errorWrapCls:'x-form-error-wrap',errorWrapSideCls:'x-form-error-wrap-side',errorWrapUnderCls:'x-form-error-wrap-under',errorWrapUnderSideLabelCls:'x-form-error-wrap-under-side-label',baseBodyCls:'x-form-item-body',invalidIconCls:'x-form-invalid-icon',invalidUnderCls:'x-form-invalid-under',noLabelCls:'x-form-item-no-label',fieldBodyCls:'',invalidCls:'x-form-invalid',fieldLabel:undefined,labelAlign:'left',labelWidth:100,labelPad:5,labelSeparator:':',hideLabel:!1,hideEmptyLabel:!0,preventMark:!1,autoFitErrors:!0,msgTarget:'qtip',msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:!0,labelableInsertions:['beforeBodyEl','afterBodyEl','beforeLabelTpl','afterLabelTpl','beforeSubTpl','afterSubTpl','beforeLabelTextTpl','afterLabelTextTpl','labelAttrTpl'],statics:{initTip:function(){var b=this.tip,a,c;if(b){return}a={id:'ext-form-error-tip',ui:'form-invalid'};if(Ext.supports.Touch){a.dismissDelay=0;a.anchor='top';a.showDelay=0;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.anchorTarget).getWidth()}}}b=this.tip=Ext.create('Ext.tip.QuickTip',a);c=Ext.apply({},b.tagConfig);c.attribute='errorqtip';b.setTagConfig(c)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var a=this,b=a.padding;if(b){a.padding=undefined;a.extraMargins=Ext.Element.parseBox(b)}if(Ext.isIE8){a.restoreDisplay=Ext.Function.createDelayed(a.doRestoreDisplay,0,a)}if(!a.activeErrorsTpl){if(a.msgTarget==='title'){a.activeErrorsTpl=a.plaintextActiveErrorsTpl}else {a.activeErrorsTpl=a.htmlActiveErrorsTpl}}a.addCls([a.formItemCls,a.formItemCls+'-'+a.ui]);a.lastActiveError='';a.enableBubble('errorchange')},trimLabelSeparator:function(){var b=this,c=b.labelSeparator,a=b.fieldLabel||'',d=a.substr(a.length-1);return d===c?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(b){b=b||'';var a=this,f=a.labelSeparator,h=a.labelEl,c=a.errorWrapEl,g=a.labelAlign!=='top',e=a.noLabelCls,d=a.errorWrapUnderSideLabelCls;a.fieldLabel=b;if(a.rendered){if(Ext.isEmpty(b)&&a.hideEmptyLabel){a.addCls(e);if(g&&c){c.removeCls(d)}}else {if(f){b=a.trimLabelSeparator()+f}h.dom.firstChild.innerHTML=b;a.removeCls(e);if(g&&c){c.addCls(d)}}a.updateLayout()}},setHideLabel:function(b){var a=this;if(b!==a.hideLabel){a.hideLabel=b;if(a.rendered){a[b?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},setHideEmptyLabel:function(b){var a=this,c;if(b!==a.hideEmptyLabel){a.hideEmptyLabel=b;if(a.rendered&&!a.hideLabel){c=b&&!a.getFieldLabel();a[c?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},getInsertionRenderData:function(c,d){var e=d.length,b,a;while(e--){b=d[e];a=this[b];if(a){if(typeof a!=='string'){if(!a.isTemplate){a=Ext.XTemplate.getTpl(this,b)}a=a.apply(c)}}c[b]=a||''}return c},getLabelableRenderData:function(){var a=this,l=a.labelAlign,o=l==='top',r=l==='right',c=a.msgTarget==='side',h=a.msgTarget==='under',q=a.errorMsgCls,b=a.labelPad,m=a.labelWidth,d=a.labelClsExtra||'',j=c?a.errorWrapSideCls:a.errorWrapUnderCls,g='',f='',p=a.hasVisibleLabel(),k=a.autoFitErrors,e=a.defaultBodyWidth,n,i;if(o){d+=' '+a.topLabelCls;if(b){f='padding-bottom:'+b+'px;'}if(c&&!k){d+=' '+a.topLabelSideErrorCls}}else {if(r){d+=' '+a.rightLabelCls}if(b){g+=a.getHorizontalPaddingStyle()+b+'px;'}g+='width:'+(m+(b?b:0))+'px;';f='width:'+m+'px'}if(p){if(!o&&h){j+=' '+a.errorWrapUnderSideLabelCls}}if(e){n='min-width:'+e+'px;max-width:'+e+'px;'}i={id:a.id,inputId:a.getInputId(),labelCls:a.labelCls,labelClsExtra:d,labelStyle:g+(a.labelStyle||''),labelInnerStyle:f,labelInnerCls:a.labelInnerCls,unselectableCls:Ext.Element.unselectableCls,bodyStyle:n,baseBodyCls:a.baseBodyCls,fieldBodyCls:a.fieldBodyCls,extraFieldBodyCls:a.extraFieldBodyCls,errorWrapCls:a.errorWrapCls,errorWrapExtraCls:j,renderError:c||h,invalidMsgCls:c?a.invalidIconCls:h?a.invalidUnderCls:'',errorMsgCls:q,growCls:a.grow?a.growCls:'',tipAnchorTarget:a.id+'-inputEl',errorWrapStyle:c&&!k?'visibility:hidden':'display:none',fieldLabel:a.getFieldLabel(),labelSeparator:a.labelSeparator};a.getInsertionRenderData(i,a.labelableInsertions);return i},getHorizontalPaddingStyle:function(){return 'padding-right:'},beforeLabelRender:function(){var a=this;a.setFieldDefaults(a.getInherited().fieldDefaults);if(a.ownerLayout){a.addCls('x-'+a.ownerLayout.type+'-form-item')}if(!a.hasVisibleLabel()){a.addCls(a.noLabelCls)}},onLabelRender:function(){var a=this,f={},e=Ext.Element,d=a.errorWrapEl,c,b;if(d){d.setVisibilityMode(a.msgTarget==='side'&&!a.autoFitErrors?e.VISIBILITY:e.DISPLAY)}if(a.extraMargins){c=a.el.getMargin();for(b in c){if(c.hasOwnProperty(b)){f['margin-'+b]=c[b]+a.extraMargins[b]+'px'}}a.el.setStyle(f)}},hasVisibleLabel:function(){if(this.hideLabel){return !1}return !(this.hideEmptyLabel&&!this.getFieldLabel())},getSubTplMarkup:function(){return ''},getInputId:function(){return ''},getActiveError:function(){return this.activeError||''},hasActiveError:function(){return !!this.getActiveError()},setActiveError:function(a){this.setActiveErrors(a)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(c){var a=this,h=a.errorWrapEl,b=a.msgTarget,g=b==='side',i=b==='qtip',e,d,j,f;c=Ext.Array.from(c);j=a.getTpl('activeErrorsTpl');a.activeErrors=c;d=a.activeError=j.apply({fieldLabel:a.fieldLabel,errors:c,listCls:'x-list-plain'});a.renderActiveError();if(a.rendered){e=a.getActionEl();if(g){a.errorEl.dom.setAttribute('data-errorqtip',d)}else {if(i){e.dom.setAttribute('data-errorqtip',d)}else {if(b==='title'){e.dom.setAttribute('title',d)}}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML=c.join('. ');e.dom.setAttribute('aria-describedby',a.ariaErrorEl.id)}if(g||i){Ext.form.Labelable.initTip()}if(!a.msgTargets[b]){f=Ext.get(b);if(f){f.dom.innerHTML=d}}}if(h){h.setVisible(c.length>0);if(g&&a.autoFitErrors){a.labelEl.addCls(a.topLabelSideErrorCls)}a.updateLayout()}},unsetActiveError:function(){var a=this,e=a.errorWrapEl,b=a.msgTarget,f=a.restoreDisplay,c,d;if(a.hasActiveError()){delete a.activeError;delete a.activeErrors;a.renderActiveError();if(a.rendered){c=a.getActionEl();if(b==='qtip'){c.dom.removeAttribute('data-errorqtip')}else {if(b==='title'){c.dom.removeAttribute('title')}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML='';c.dom.removeAttribute('aria-describedby')}if(!a.msgTargets[b]){d=Ext.get(b);if(d){d.dom.innerHTML=''}}if(e){e.hide();if(b==='side'&&a.autoFitErrors){a.labelEl.removeCls(a.topLabelSideErrorCls)}a.updateLayout();if(f){a.el.dom.style.display='block';a.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=''}},renderActiveError:function(){var a=this,b=a.getActiveError(),c=!!b;if(b!==a.lastActiveError){a.lastActiveError=b;a.fireEvent('errorchange',a,b)}if(a.rendered&&!a.destroyed&&!a.preventMark){a.toggleInvalidCls(c);if(a.errorEl){a.errorEl.dom.innerHTML=b}}},toggleInvalidCls:function(a){this.el[a?'addCls':'removeCls'](this.invalidCls)},setFieldDefaults:function(b){var a;for(a in b){if(!this.hasOwnProperty(a)){this[a]=b[a]}}}},0,0,0,0,0,0,[Ext.form,'Labelable'],function(){if(Ext.supports.Touch){this.prototype.msgTarget='side'}});Ext.cmd.derive('Ext.form.field.Field',Ext.Base,{mixinId:'field',isFormField:!0,config:{validation:null,validationField:null},disabled:!1,submitValue:!0,validateOnChange:!0,valuePublishEvent:'change',suspendCheckChange:0,dirty:!1,initField:function(){var a=this,b=a.valuePublishEvent,d,c;a.initValue();if(Ext.isString(b)){a.on(b,a.publishValue,a)}else {for(c=0,d=b.length;c name="{name}"',' value="{[Ext.util.Format.htmlEncode(values.value)]}"',' placeholder="{placeholder}"','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}',' readonly="readonly"',' disabled="disabled"',' tabindex="{tabIdx}"',' style="{fieldStyle}"',' {$}="{.}"',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete="off"/>',{disableFormats:!0}],defaultBindProperty:'value',autoEl:{role:'presentation'},subTplInsertions:['inputAttrTpl'],childEls:['inputEl'],inputType:'text',isTextInput:!0,invalidText:'The value in this field is invalid',fieldCls:'x-form-field',focusCls:'form-focus',dirtyCls:'x-form-dirty',checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<=9)?['change','propertychange','keyup']:['change','input','textInput','keyup','dragdrop'],ignoreChangeRe:/data\-errorqtip|style\.|className/,checkChangeBuffer:50,liquidLayout:!0,readOnly:!1,readOnlyCls:'x-form-readonly',validateOnBlur:!0,hasFocus:!1,baseCls:'x-field',fieldBodyCls:'x-field-body',maskOnDisable:!1,stretchInputElFixed:!0,ariaEl:'inputEl',initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();a.initDefaultName();if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls('x-form-type-'+a.inputType)},initDefaultName:function(){var a=this;if(!a.name){a.name=a.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+'-inputEl')},getSubTplData:function(f){var a=this,e=a.inputType,d=a.getInputId(),b,c;b=Ext.apply({ui:a.ui,id:d,cmpId:a.id,name:a.name||d,disabled:a.disabled,readOnly:a.readOnly,value:a.getRawValue(),type:e,fieldCls:a.fieldCls,fieldStyle:a.getFieldStyle(),childElCls:f.childElCls,tabIdx:a.tabIndex,inputCls:a.inputCls,typeCls:'x-form-'+(a.isTextInput?'text':e)},a.subTplData);if(a.ariaRole){c={role:a.ariaRole,'aria-hidden':!!a.hidden,'aria-disabled':!!a.disabled,'aria-readonly':!!a.readOnly,'aria-invalid':!1};if(a.ariaLabel){c['aria-label']=a.ariaLabel}if(a.format&&a.formatText&&!b.title){c.title=Ext.String.formatEncode(a.formatText,a.format)}b.inputElAriaAttributes=Ext.apply(c,a.getAriaAttributes())}a.getInsertionRenderData(b,a.subTplInsertions);return b},getSubTplMarkup:function(f){var b=this,c=b.getSubTplData(f),e=b.getTpl('preSubTpl'),d=b.getTpl('postSubTpl'),a='';if(e){a+=e.apply(c)}a+=b.getTpl('fieldSubTpl').apply(c);if(d){a+=d.apply(c)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(b){var c=this,a=c.inputEl;if(a){a.applyStyles(b)}c.fieldStyle=b},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,!0):a||''},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==='file'},getSubmitData:function(){var a=this,b=null,c;if(!a.disabled&&a.submitValue){c=a.getSubmitValue();if(c!==null){b={};b[a.getName()]=c}}return b},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var a=this,b=a.inputEl?a.inputEl.getValue():Ext.valueFrom(a.rawValue,'');a.rawValue=b;return b},setRawValue:function(b){var a=this,c=a.rawValue;if(!a.transformRawValue.$nullFn){b=a.transformRawValue(b)}b=Ext.valueFrom(b,'');if(c===undefined||c!==b||a.valueContainsPlaceholder){a.rawValue=b;if(a.inputEl){a.bindChangeEvents(!1);a.inputEl.dom.value=b;a.bindChangeEvents(!0)}if(a.rendered&&a.reference){a.publishState('rawValue',b)}}return b},transformRawValue:Ext.identityFn,valueToRaw:function(a){return ''+Ext.valueFrom(a,'')},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var a=this,b=a.rawToValue(a.processRawValue(a.getRawValue()));a.value=b;return b},setValue:function(b){var a=this;a.setRawValue(a.valueToRaw(b));return a.mixins.field.setValue.call(a,b)},onBoxReady:function(){var a=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(a.setReadOnlyOnBoxReady){a.setReadOnly(a.readOnly)}},onDisable:function(){var a=this,b=a.inputEl;Ext.Component.prototype.onDisable.call(this);if(b){b.dom.disabled=!0;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=!0}}if(a.wasValid===!1){a.checkValidityChange(!0)}},onEnable:function(){var a=this,b=a.inputEl,d=a.preventMark,c;Ext.Component.prototype.onEnable.call(this);if(b){b.dom.disabled=!1}if(a.wasValid!==undefined){a.forceValidation=!0;a.preventMark=!a.hadErrorOnDisable;c=a.isValid();a.forceValidation=!1;a.preventMark=d;a.checkValidityChange(c)}delete a.hadErrorOnDisable},setReadOnly:function(b){var a=this,c=a.inputEl,d=a.readOnly;b=!!b;a[b?'addCls':'removeCls'](a.readOnlyCls);a.readOnly=b;if(c){c.dom.readOnly=b;a.ariaEl.dom.setAttribute('aria-readonly',b)}else {if(a.rendering){a.setReadOnlyOnBoxReady=!0}}if(b!==d){a.fireEvent('writeablechange',a,b)}},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent('specialkey',this,a)}},initEvents:function(){var a=this,d=a.inputEl,f=a.onFieldMutation,e=a.checkChangeEvents,g=e.length,c,b;if(d){a.mon(d,Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress',a.fireKey,a);for(c=0;c style="{triggerStyle}">','{[values.$trigger.renderBody(values)]}',''],statics:{weightComparator:function(a,b){return a.weight-b.weight}},constructor:function(c){var a=this,b;Ext.apply(a,c);if(a.compat4Mode){b=a.cls;a.focusCls=[a.focusCls,b+'-focus'];a.overCls=[a.overCls,b+'-over'];a.clickCls=[a.clickCls,b+'-click']}},afterFieldRender:function(){this.initEvents()},destroy:function(){var a=this;a.clickRepeater=a.el=Ext.destroy(a.clickRepeater,a.el);a.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=!0;if(a){a.hide()}},initEvents:function(){var a=this,b=a.isFieldEnabled,c=a.getStateEl(),d=a.el;c.addClsOnOver(a.overCls,b,a);c.addClsOnClick(a.clickCls,b,a);if(a.repeatClick){a.clickRepeater=new Ext.util.ClickRepeater(d,{preventDefault:!0,handler:a.onClick,listeners:{mousedown:a.onClickRepeaterMouseDown,scope:a},scope:a})}else {a.field.mon(d,{click:a.onClick,mousedown:a.onMouseDown,scope:a})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=!1;if(a.hidden||!c||!a.rendered||a.destroyed){b=!0}return !b},onClick:function(){var a=this,c=arguments,e=a.clickRepeater?c[1]:c[0],d=a.handler,b=a.field;if(d&&!b.readOnly&&a.isFieldEnabled()){Ext.callback(a.handler,a.scope,[b,a,e],0,b)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=='touch'&&!this.field.owns(Ext.Element.getActiveElement())){this.field.inputEl.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==='mousedown'){this.field.inputEl.focus()}a.preventDefault()},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var a=this,b=a.el=a.field.triggerWrap.selectNode('#'+a.domId,!1);b.setVisibilityMode(Ext.Element.DISPLAY);a.rendered=!0},renderBody:function(b){var a=this,c=a.bodyTpl;Ext.apply(b,a.getBodyRenderData());return c?Ext.XTemplate.getTpl(a,'bodyTpl').apply(b):''},renderTrigger:function(b){var a=this,d=a.width,c=a.hidden?'display:none;':'';if(d){c+='width:'+d}return Ext.XTemplate.getTpl(a,'renderTpl').apply({$trigger:a,fieldData:b,ui:b.ui,childElCls:b.childElCls,triggerId:a.domId=a.field.id+'-trigger-'+a.id,cls:a.cls,triggerStyle:c,extraCls:a.extraCls,baseCls:a.baseCls})},setHidden:function(a){if(a!==this.hidden){this[a?'hide':'show']()}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=!1;if(a){a.show()}}},1,0,0,0,['trigger.trigger'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.form.trigger,'Trigger'],0);Ext.cmd.derive('Ext.form.field.Text',Ext.form.field.Base,{alternateClassName:['Ext.form.TextField','Ext.form.Text'],config:{hideTrigger:!1,triggers:undefined},renderConfig:{editable:!0},growMin:30,growMax:800,growAppend:'W',allowBlank:!0,validateBlank:!1,allowOnlyWhitespace:!0,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:'The minimum length for this field is {0}',maxLengthText:'The maximum length for this field is {0}',blankText:'This field is required',regexText:'',emptyText:'',emptyCls:'x-form-empty-field',requiredCls:'x-form-required-field',valueContainsPlaceholder:!1,ariaRole:'textbox',repeatTriggerClick:!1,triggerWrapCls:'x-form-trigger-wrap',triggerWrapFocusCls:'x-form-trigger-wrap-focus',triggerWrapInvalidCls:'x-form-trigger-wrap-invalid',fieldBodyCls:'x-form-text-field-body',inputWrapCls:'x-form-text-wrap',inputWrapFocusCls:'x-form-text-wrap-focus',inputWrapInvalidCls:'x-form-text-wrap-invalid',growCls:'x-form-text-grow',needArrowKeys:!0,squashMouseUp:{mouseup:function(){},translate:!1,single:!0,preventDefault:!0},childEls:['triggerWrap','inputWrap'],preSubTpl:[''],initComponent:function(){var a=this,b=a.emptyCls;if(a.allowOnlyWhitespace===!1){a.allowBlank=!1}if(a.size){a.defaultBodyWidth=a.size*6.5+20}if(!a.onTrigger1Click){a.onTrigger1Click=a.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(a.readOnly){a.setReadOnly(a.readOnly)}a.fieldFocusCls=a.baseCls+'-focus';a.emptyUICls=b+' '+b+'-'+a.ui;a.addStateEvents('change')},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(a.selectOnFocus||a.emptyText){a.mon(b,'mousedown',a.onMouseDown,a)}if(a.maskRe||a.vtype&&a.disableKeyFilter!==!0&&(a.maskRe=Ext.form.field.VTypes[a.vtype+'Mask'])){a.mon(b,'keypress',a.filterKeys,a)}if(a.enableKeyEvents){a.mon(b,{scope:a,keyup:a.onKeyUp,keydown:a.onKeyDown,keypress:a.onKeyPress})}},isEqual:function(a,b){return this.isEqualAsString(a,b)},onChange:function(a,b){Ext.form.field.Base.prototype.onChange.apply(this,arguments);this.autoSize()},getSubTplData:function(h){var a=this,c=a.getRawValue(),g=a.emptyText&&c.length<1,b=a.maxLength,e,f,d;if(a.enforceMaxLength){if(b===Number.MAX_VALUE){b=undefined}}else {b=undefined}if(g){if(Ext.supports.Placeholder){e=a.emptyText}else {c=a.emptyText;a.valueContainsPlaceholder=!0}}f=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,h),{triggerWrapCls:a.triggerWrapCls,inputWrapCls:a.inputWrapCls,triggers:a.orderedTriggers,maxLength:b,readOnly:!a.editable||a.readOnly,placeholder:e,value:c,fieldCls:a.fieldCls+(g&&(e||c)?' '+a.emptyUICls:'')+(a.allowBlank?'':' '+a.requiredCls)});d=f.inputElAriaAttributes;if(d){d['aria-required']=!a.allowBlank}return f},onRender:function(){var a=this,b=a.getTriggers(),c=[],d,e;if(Ext.supports.FixedTableWidthBug){a.el._needsTableWidthFix=!0}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(b){this.invokeTriggers('onFieldRender');for(d in b){c.push(b[d].el)}e=a.triggerEl=a.triggerCell=new Ext.CompositeElement(c,!0)}a.inputCell=a.inputWrap},afterRender:function(){var a=this;a.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);a.invokeTriggers('afterFieldRender')},onMouseDown:function(){if(!this.hasFocus){Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(c){var a=this,j=a.getHideTrigger(),k=a.readOnly,f=a.orderedTriggers=[],i=a.repeatTriggerClick,e,b,h,g,d;if(!c){c={};if(a.triggerCls&&!a.trigger1Cls){a.trigger1Cls=a.triggerCls}for(d=1;g=a['trigger'+d+'Cls'];d++){c['trigger'+d]={cls:g,extraCls:'x-trigger-index-'+d,handler:'onTrigger'+d+'Click',compat4Mode:!0,scope:a}}}for(e in c){if(c.hasOwnProperty(e)){b=c[e];b.field=a;b.id=e;if(k&&b.hideOnReadOnly!==!1||j&&b.hidden!==!1){b.hidden=!0}if(i&&b.repeatClick!==!1){b.repeatClick=!0}h=c[e]=Ext.form.trigger.Trigger.create(b);f.push(h)}}Ext.Array.sort(f,Ext.form.trigger.Trigger.weightComparator);return c},invokeTriggers:function(d,e){var f=this,a=f.getTriggers(),c,b;if(a){for(c in a){if(a.hasOwnProperty(c)){b=a[c];b[d].apply(b,e||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateHideTrigger:function(a){this.invokeTriggers(a?'hide':'show')},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(a){var b=this,d=b.getTriggers(),f=b.getHideTrigger(),c,e;a=!!a;Ext.form.field.Base.prototype.setReadOnly.call(this,a);if(b.rendered){b.setReadOnlyAttr(a||!b.editable)}if(d){for(e in d){c=d[e];if(c.hideOnReadOnly===!0||c.hideOnReadOnly!==!1&&!f){c.setVisible(!a)}}}},setReadOnlyAttr:function(c){var b=this,a='readonly',d=b.inputEl.dom;if(c){d.setAttribute(a,a)}else {d.removeAttribute(a)}if(b.ariaRole){b.ariaEl.dom.setAttribute('aria-readonly',!!c)}},processRawValue:function(c){var e=this,a=e.stripCharsRe,d,b;if(a){if(!a.global){d='g';d+=a.ignoreCase?'i':'';d+=a.multiline?'m':'';a=new RegExp(a.source,d)}b=c.replace(a,'');if(b!==c){e.setRawValue(b);c=b}}return c},onDisable:function(){Ext.form.field.Base.prototype.onDisable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable='on'}},onEnable:function(){Ext.form.field.Base.prototype.onEnable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable=''}},onKeyDown:function(a){this.fireEvent('keydown',this,a)},onKeyUp:function(a){this.fireEvent('keyup',this,a)},onKeyPress:function(a){this.fireEvent('keypress',this,a)},reset:function(){Ext.form.field.Base.prototype.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){var a=this,b=a.emptyText,c;if(a.rendered&&b){c=a.getRawValue().length<1&&!a.hasFocus;if(Ext.supports.Placeholder){a.inputEl.dom.placeholder=b}else {if(c){a.setRawValue(b);a.valueContainsPlaceholder=!0}}if(c){a.inputEl.addCls(a.emptyUICls)}else {a.inputEl.removeCls(a.emptyUICls)}a.autoSize()}},getEmptyText:function(){return this.emptyText},setEmptyText:function(e){var a=this,c=a.inputEl,b=c&&c.dom,d=e||'';if(e){a.emptyText=d;a.applyEmptyText()}else {if(b){if(Ext.supports.Placeholder){b.removeAttribute('placeholder')}else {if(b.value!==a.getRawValue()){b.value='';c.removeCls(a.emptyUICls)}}a.valueContainsPlaceholder=!1}}a.emptyText=d;return a},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var a=this.inputEl;if(a){a.dom.unselectable='on'}}},toggleInvalidCls:function(b){var a=b?'addCls':'removeCls';Ext.form.field.Base.prototype.toggleInvalidCls.call(this);this.triggerWrap[a](this.triggerWrapInvalidCls);this.inputWrap[a](this.inputWrapInvalidCls)},beforeFocus:function(){var a=this,b=a.inputEl,c=a.emptyText,d;Ext.form.field.Base.prototype.beforeFocus.apply(this,arguments);if(c&&!Ext.supports.Placeholder&&(b.dom.value===a.emptyText&&a.valueContainsPlaceholder)){a.setRawValue('');d=!0;b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}else {if(Ext.supports.Placeholder){b.removeCls(a.emptyUICls)}}},onFocus:function(b){var a=this;Ext.form.field.Base.prototype.onFocus.apply(this,arguments);if(a.selectOnFocus){a.inputEl.dom.select()}if(a.emptyText){a.autoSize()}a.addCls(a.fieldFocusCls);a.triggerWrap.addCls(a.triggerWrapFocusCls);a.inputWrap.addCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldFocus',[b])},onBlur:function(b){var a=this;Ext.form.field.Base.prototype.onBlur.apply(this,arguments);a.removeCls(a.fieldFocusCls);a.triggerWrap.removeCls(a.triggerWrapFocusCls);a.inputWrap.removeCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldBlur',[b])},completeEdit:function(a){Ext.form.field.Base.prototype.completeEdit.call(this,a);this.applyEmptyText()},filterKeys:function(a){if(a.ctrlKey&&!a.altKey||a.isSpecialKey()){return}var b=String.fromCharCode(a.getCharCode());if(!this.maskRe.test(b)){a.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),'value')},applyState:function(a){Ext.form.field.Base.prototype.applyState.apply(this,arguments);if(a.hasOwnProperty('value')){this.setValue(a.value)}},getRawValue:function(){var b=this,a=Ext.form.field.Base.prototype.getRawValue.call(this);if(a===b.emptyText&&b.valueContainsPlaceholder){a=''}return a},setValue:function(c){var a=this,b=a.inputEl;if(b&&a.emptyText&&!Ext.isEmpty(c)){b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}Ext.form.field.Base.prototype.setValue.apply(this,arguments);a.applyEmptyText();return a},getErrors:function(b){b=arguments.length?b==null?'':b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Base.prototype.getErrors.call(this,b),f=a.validator,d=a.vtype,j=Ext.form.field.VTypes,k=a.regex,i=Ext.String.format,e,h,g;if(Ext.isFunction(f)){e=f.call(a,b);if(e!==!0){c.push(e)}}h=a.allowOnlyWhitespace?b:Ext.String.trim(b);if(h.length<1||b===a.emptyText&&a.valueContainsPlaceholder){if(!a.allowBlank){c.push(a.blankText)}if(!a.validateBlank){return c}g=!0}if(!g&&b.lengtha.maxLength){c.push(i(a.maxLengthText,a.maxLength))}if(d){if(!j[d](b,a)){c.push(a.vtypeText||j[d+'Text'])}}if(k&&!k.test(b)){c.push(a.regexText||a.invalidText)}return c},selectText:function(a,b){var f=this,g=f.getRawValue(),c=g.length,e=f.inputEl.dom,d;if(c>0){a=a===undefined?0:Math.min(a,c);b=b===undefined?c:Math.min(b,c);if(e.setSelectionRange){e.setSelectionRange(a,b)}else {if(e.createTextRange){d=e.createTextRange();d.moveStart('character',a);d.moveEnd('character',b-c);d.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var a=this,d,f,c,g,b,e;if(a.grow&&a.rendered&&a.getSizeModel().width.auto){g=a.inputEl;d=a.getTriggers();c=0;e=Ext.util.Format.htmlEncode(a.getGrowWidth()||(a.hasFocus?'':a.emptyText)||'');e+=a.growAppend;for(f in d){c+=d[f].el.getWidth()}b=g.getTextWidth(e)+c+a.inputWrap.getBorderWidth('lr')+a.triggerWrap.getBorderWidth('lr');b=Math.min(Math.max(b,a.growMin),a.growMax);a.bodyEl.setWidth(b);a.updateLayout();a.fireEvent('autosize',a,b)}},onDestroy:function(){var a=this;a.invokeTriggers('destroy');Ext.destroy(a.triggerRepeater);Ext.form.field.Base.prototype.onDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return 'textfield'}},deprecated:{5:{methods:{getTriggerWidth:function(){var a=this.getTriggers(),c=0,b;if(a&&this.rendered){for(b in a){if(a.hasOwnProperty(b)){c+=a[b].el.getWidth()}}}return c}}}}},0,['textfield'],['component','box','field','textfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0},['widget.textfield'],0,[Ext.form.field,'Text',Ext.form,'TextField',Ext.form,'Text'],0);Ext.cmd.derive('Ext.form.field.TextArea',Ext.form.field.Text,{alternateClassName:'Ext.form.TextArea',fieldSubTpl:['',{disableFormats:!0}],growMin:60,growMax:1000,growAppend:'\n-',enterIsSpecial:!1,preventScrollbars:!1,returnRe:/\r/g,inputCls:'x-form-textarea',extraFieldBodyCls:'x-form-textarea-body',ariaAttributes:{'aria-multiline':!0},getSubTplData:function(d){var a=this,c=a.getFieldStyle(),b=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(a.grow){if(a.preventScrollbars){b.fieldStyle=(c||'')+';overflow:hidden;height:'+a.growMin+'px'}}return b},afterRender:function(){var a=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);a.needsMaxCheck=a.enforceMaxLength&&a.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(a.needsMaxCheck){a.inputEl.on('paste',a.onPaste,a)}},transformRawValue:function(a){return this.stripReturns(a)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(a){a=this.stripReturns(a);return Ext.form.field.Text.prototype.valueToRaw.call(this,a)},stripReturns:function(a){if(a&&typeof a==='string'){a=a.replace(this.returnRe,'')}return a},onPaste:function(){var a=this;if(!a.pasteTask){a.pasteTask=new Ext.util.DelayedTask(a.pasteCheck,a)}a.pasteTask.delay(1)},pasteCheck:function(){var b=this,a=b.getValue(),c=b.maxLength;if(a.length>c){a=a.substr(0,c);b.setValue(a)}},fireKey:function(a){var b=this,c=a.getKey(),d;if(a.isSpecialKey()&&(b.enterIsSpecial||(c!==a.ENTER||a.hasModifier()))){b.fireEvent('specialkey',b,a)}if(b.needsMaxCheck&&c!==a.BACKSPACE&&c!==a.DELETE&&!a.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(a,c)){d=b.getValue();if(d.length>=b.maxLength){a.stopEvent()}}},isCutCopyPasteSelectAll:function(a,b){if(a.ctrlKey){return b===a.A||b===a.C||b===a.V||b===a.X}return !1},autoSize:function(){var a=this,b,c,e,d;if(a.grow&&a.rendered&&a.getSizeModel().height.auto){b=a.inputEl;e=b.getWidth(!0);d=Ext.util.Format.htmlEncode(b.dom.value)||' ';d+=a.growAppend;d=d.replace(/\n/g,'
    ');c=Ext.util.TextMetrics.measure(b,d,e).height+b.getPadding('tb')+a.inputWrap.getBorderWidth('tb')+a.triggerWrap.getBorderWidth('tb');c=Math.min(Math.max(c,a.growMin),a.growMax);a.bodyEl.setHeight(c);a.updateLayout();a.fireEvent('autosize',a,c)}},beforeDestroy:function(){var a=this.pasteTask;if(a){a.cancel();this.pasteTask=null}Ext.form.field.Text.prototype.beforeDestroy.call(this)}},0,['textarea','textareafield'],['component','box','field','textfield','textareafield','textarea'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'textareafield':!0,'textarea':!0},['widget.textarea','widget.textareafield'],0,[Ext.form.field,'TextArea',Ext.form,'TextArea'],0);Ext.cmd.derive('Ext.window.MessageBox',Ext.window.Window,{OK:1,YES:2,NO:4,CANCEL:8,OKCANCEL:9,YESNO:6,YESNOCANCEL:14,INFO:'x-message-box-info',WARNING:'x-message-box-warning',QUESTION:'x-message-box-question',ERROR:'x-message-box-error',hideMode:'offsets',closeAction:'hide',resizable:!1,scrollable:!0,title:' ',defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:!0,cls:['x-message-box','x-hidden-offsets'],layout:{type:'vbox',align:'stretch'},shrinkWrapDock:!0,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:'OK',yes:'Yes',no:'No',cancel:'Cancel'},buttonIds:['ok','yes','no','cancel'],titleText:{confirm:'Confirm',prompt:'Prompt',wait:'Loading...',alert:'Attention'},baseIconCls:'x-message-box-icon',ariaRole:'alertdialog',makeButton:function(b){var a=this.buttonIds[b];return new Ext.button.Button({handler:this.btnCallback,itemId:a,scope:this,text:this.buttonText[a],minWidth:75})},btnCallback:function(e,b){var a=this,d,c;if(b&&b.type==='keydown'&&!b.isSpecialKey()){b.getTarget(null,null,!0).on({keyup:function(c){a.btnCallback(e,c)},single:!0});return}if(a.cfg.prompt||a.cfg.multiline){if(a.cfg.multiline){c=a.textArea}else {c=a.textField}d=c.getValue();c.reset()}a.hide();a.userCallback(e.itemId,d,a.cfg)},hide:function(){var a=this,b=a.cfg?a.cfg.cls:'';a.progressBar.reset();if(b){a.removeCls(b)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(b){var a=this;Ext.window.Window.prototype.constructor.apply(this,arguments);a.minWidth=a.defaultMinWidth=a.minWidth||a.defaultMinWidth;a.maxWidth=a.defaultMaxWidth=a.maxWidth||a.defaultMaxWidth;a.minHeight=a.defaultMinHeight=a.minHeight||a.defaultMinHeight;a.maxHeight=a.defaultMaxHeight=a.maxHeight||a.defaultMaxHeight},initComponent:function(e){var a=this,b=a.id,d,c;a.title=a.title||' ';a.iconCls=a.iconCls||'';a.topContainer=new Ext.container.Container({layout:'hbox',padding:10,style:{overflow:'hidden'},items:[a.iconComponent=new Ext.Component({cls:a.baseIconCls}),a.promptContainer=new Ext.container.Container({flex:1,layout:{type:'vbox',align:'stretch'},items:[a.msg=new Ext.Component({id:b+'-msg',cls:a.baseCls+'-text'}),a.textField=new Ext.form.field.Text({id:b+'-textfield',enableKeyEvents:!0,listeners:{keydown:a.onPromptKey,scope:a}}),a.textArea=new Ext.form.field.TextArea({id:b+'-textarea',height:75})]})]});a.progressBar=new Ext.ProgressBar({id:b+'-progressbar',margin:'0 10 10 10'});a.items=[a.topContainer,a.progressBar];a.msgButtons=[];for(d=0;d<4;d++){c=a.makeButton(d);a.msgButtons[c.itemId]=c;a.msgButtons.push(c)}a.bottomTb=new Ext.toolbar.Toolbar({id:b+'-toolbar',ui:'footer',dock:'bottom',layout:{pack:'center'},items:[a.msgButtons[0],a.msgButtons[1],a.msgButtons[2],a.msgButtons[3]]});a.dockedItems=[a.bottomTb];a.on('close',a.onClose,a);Ext.window.Window.prototype.initComponent.call(this)},onClose:function(){var a=this.header.child('[type=close]');if(a){a.itemId='cancel';this.btnCallback(a);delete a.itemId}},onPromptKey:function(c,b){var a=this;if(b.keyCode===b.RETURN||b.keyCode===10){if(a.msgButtons.ok.isVisible()){a.msgButtons.ok.handler.call(a,a.msgButtons.ok)}else {if(a.msgButtons.yes.isVisible()){a.msgButtons.yes.handler.call(a,a.msgButtons.yes)}}}},reconfigure:function(b){var a=this,j=0,q=!0,t=a.buttonText,g=a.resizer,c=a.header,r=c&&!c.isHeader,s=b&&(b.message||b.msg),i,n,m,e,d,f,o,k,l,h,p;a.updateButtonText();a.cfg=b=b||{};h=b.wait;if(b.width){n=b.width}if(b.height){m=b.height}a.minWidth=b.minWidth||a.defaultMinWidth;a.maxWidth=b.maxWidth||a.defaultMaxWidth;a.minHeight=b.minHeight||a.defaultMinHeight;a.maxHeight=b.maxHeight||a.defaultMaxHeight;if(g){i=g.resizeTracker;g.minWidth=i.minWidth=a.minWidth;g.maxWidth=i.maxWidth=a.maxWidth;g.minHeight=i.minHeight=a.minHeight;g.maxHeight=i.maxHeight=a.maxHeight}delete a.defaultFocus;if(b.defaultFocus){a.defaultFocus=b.defaultFocus}a.animateTarget=b.animateTarget||undefined;a.modal=b.modal!==!1;a.setTitle(b.title||r&&c.title||a.title);a.setIconCls(b.iconCls||r&&c.iconCls||a.iconCls);if(Ext.isObject(b.buttons)){a.buttonText=b.buttons;j=0}else {a.buttonText=b.buttonText||a.buttonText;j=Ext.isNumber(b.buttons)?b.buttons:0}j=j|a.updateButtonText();a.buttonText=t;Ext.suspendLayouts();a.width=a.height=null;if(n||m){if(n){a.setWidth(n)}if(m){a.setHeight(m)}}a.hidden=!1;if(!a.rendered){a.render(Ext.getBody())}a.closable=b.closable!==!1&&!h;c=a.header;if(c){p=c.child('[type=close]');if(p){p.setVisible(a.closable)}if(!b.title&&!a.closable&&!b.iconCls){c.hide()}else {c.show()}}a.liveDrag=!b.proxyDrag;a.userCallback=Ext.Function.bindCallback(b.callback||b.fn||Ext.emptyFn,b.scope||Ext.global);a.setIcon(b.icon);o=a.msg;if(s){o.setHtml(s);o.show()}else {o.hide()}d=a.textArea;f=a.textField;if(b.prompt||b.multiline){a.multiline=b.multiline;if(b.multiline){d.setValue(b.value);d.setHeight(b.defaultTextHeight||a.defaultTextHeight);d.show();f.hide();a.defaultFocus=d}else {f.setValue(b.value);d.hide();f.show();a.defaultFocus=f}}else {d.hide();f.hide()}k=a.progressBar;if(b.progress||h){k.show();a.updateProgress(0,b.progressText);if(h){k.wait(h===!0?b.waitConfig:h)}}else {k.hide()}l=a.msgButtons;for(e=0;e<4;e++){if(j&Math.pow(2,e)){if(!a.defaultFocus){a.defaultFocus=l[e]}l[e].show();q=!1}else {l[e].hide()}}if(q){a.bottomTb.hide()}else {a.bottomTb.show()}Ext.resumeLayouts(!0)},updateButtonText:function(){var b=this,c=b.buttonText,e=0,a,d;for(a in c){if(c.hasOwnProperty(a)){d=b.msgButtons[a];if(d){if(b.cfg&&b.cfg.buttonText){e=e|Math.pow(2,Ext.Array.indexOf(b.buttonIds,a))}if(d.text!==c[a]){d.setText(c[a])}}}}return e},show:function(b){var a=this,c;b=b||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){a.show(b)},single:!0});return a}a.reconfigure(b);if(b.cls){a.addCls(b.cls)}c=a.query('textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])');a.preventFocusOnActivate=!c.length;a.hidden=!0;Ext.window.Window.prototype.show.call(this);return a},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(e,d,c){var b=this,a=b.iconComponent,f=b.messageIconCls;if(f){a.removeCls(f)}if(e){a.show();if(d||c){a.setSize(d||a.getWidth(),c||a.getHeight())}a.addCls('x-dlg-icon');a.addCls(b.messageIconCls=e)}else {a.removeCls('x-dlg-icon');a.hide()}return b},updateProgress:function(c,b,a){this.progressBar.updateProgress(c,b);if(a){this.updateText(a)}return this},onEsc:function(){if(this.closable!==!1){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,b,d,c){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:b,buttons:this.YESNO,callback:d,scope:c}}return this.show(a)},prompt:function(a,c,f,d,b,e){if(Ext.isString(a)){a={prompt:!0,title:a,minWidth:this.minPromptWidth,message:c,buttons:this.OKCANCEL,callback:f,scope:d,multiline:b,value:e}}return this.show(a)},wait:function(a,c,b){if(Ext.isString(a)){a={title:c,message:a,closable:!1,wait:!0,modal:!0,minWidth:this.minProgressWidth,waitConfig:b}}return this.show(a)},alert:function(a,b,d,c){if(Ext.isString(a)){a={title:a,message:b,buttons:this.OK,fn:d,scope:c,minWidth:this.minWidth}}return this.show(a)},progress:function(a,c,b){if(Ext.isString(a)){a={title:a,message:c,progress:!0,progressText:b}}return this.show(a)}},1,['messagebox'],['component','box','container','panel','window','messagebox'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'messagebox':!0},['widget.messagebox'],0,[Ext.window,'MessageBox'],function(a){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new a()})});Ext.cmd.derive('Ext.form.Basic',Ext.util.Observable,{alternateClassName:'Ext.form.BasicForm',taskDelay:10,constructor:function(c,d){var a=this,b;a.owner=c;a.fieldMonitors={validitychange:a.checkValidityDelay,enable:a.checkValidityDelay,disable:a.checkValidityDelay,dirtychange:a.checkDirtyDelay,errorchange:a.checkErrorDelay,scope:a};a.checkValidityTask=new Ext.util.DelayedTask(a.checkValidity,a);a.checkDirtyTask=new Ext.util.DelayedTask(a.checkDirty,a);a.checkErrorTask=new Ext.util.DelayedTask(a.checkError,a);a.monitor=new Ext.container.Monitor({selector:'[isFormField]:not([excludeForm])',scope:a,addHandler:a.onFieldAdd,removeHandler:a.onFieldRemove,invalidateHandler:a.onMonitorInvalidate});a.monitor.bind(c);Ext.apply(a,d);if(Ext.isString(a.paramOrder)){a.paramOrder=a.paramOrder.split(/[\s,|]/)}b=a.reader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.reader=Ext.createByAlias('reader.'+b.type,b)}b=a.errorReader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.errorReader=Ext.createByAlias('reader.'+b.type,b)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=!0;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:!1,waitTitle:'Please Wait...',trackResetOnLoad:!1,wasDirty:!1,destroy:function(){var a=this,b=a.monitor;if(b){b.unbind();a.monitor=null}a.clearListeners();a.checkValidityTask.cancel();a.checkDirtyTask.cancel();a.checkErrorTask.cancel();a.checkValidityTask=a.checkDirtyTask=a.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},onFieldAdd:function(a){a.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(a){a.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var a=this._boundItems;if(!a||a.getCount()===0){a=this._boundItems=new Ext.util.MixedCollection();a.addAll(this.owner.query('[formBind]'))}return a},hasInvalidField:function(){return !!this.getFields().findBy(function(a){var c=a.preventMark,b;a.preventMark=!0;b=a.isValid();a.preventMark=c;return !b})},isValid:function(){var b=this,a;Ext.suspendLayouts();a=b.getFields().filterBy(function(a){return !a.validate()});Ext.resumeLayouts(!0);return a.length<1},checkValidity:function(){var a=this,b;if(a.destroyed){return}b=!a.hasInvalidField();if(b!==a.wasValid){a.onValidityChange(b);a.fireEvent('validitychange',a,b);a.wasValid=b}},checkValidityDelay:function(){var a=this.taskDelay;if(a){this.checkValidityTask.delay(a)}else {this.checkValidity()}},checkError:function(){this.fireEvent('errorchange',this)},checkErrorDelay:function(){var a=this.taskDelay;if(a){this.checkErrorTask.delay(a)}else {this.checkError()}},onValidityChange:function(e){var d=this.getBoundItems(),b,a,f,c;if(d){b=d.items;f=b.length;for(a=0;a',' {$}="{.}"','',' role="presentation"','','>','{%this.renderContainer(out,values)%}',''],initComponent:function(){var a=this;a.initLabelable();a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.initMonitor()},onAdd:function(b){var a=this;if(b.isLabelable&&Ext.isGecko&&Ext.firefoxVersion<37&&a.layout.type==='absolute'&&!a.hideLabel&&a.labelAlign!=='top'){b.x+=a.labelWidth+a.labelPad}Ext.container.Container.prototype.onAdd.apply(this,arguments);if(b.isLabelable&&a.combineLabels){b.oldHideLabel=b.hideLabel;b.hideLabel=!0}a.updateLabel()},onRemove:function(a,c){var b=this;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!c){if(a.isLabelable&&b.combineLabels){a.hideLabel=a.oldHideLabel}b.updateLabel()}},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.containerElCls=b.containerElCls;a=Ext.applyIf(a,b.getLabelableRenderData());a.tipAnchorTarget=b.id+'-containerEl';return a},getFieldLabel:function(){var a=this.fieldLabel||'';if(!a&&this.combineLabels){a=Ext.Array.map(this.query('[isFieldLabelable]'),function(a){return a.getFieldLabel()}).join(this.labelConnector)}return a},getSubTplData:function(){var a=this.initRenderData();Ext.apply(a,this.subTplData);return a},getSubTplMarkup:function(d){var b=this,a=b.getTpl('fieldSubTpl'),c;if(!a.renderContent){b.setupRenderTpl(a)}c=a.apply(b.getSubTplData(d));return c},updateLabel:function(){var a=this,b=a.labelEl;if(b){a.setFieldLabel(a.getFieldLabel())}},onFieldErrorChange:function(){if(this.combineErrors){var a=this,d=a.getActiveError(),c=Ext.Array.filter(a.query('[isFormField]'),function(a){return a.hasActiveError()}),b=a.getCombinedErrors(c);if(b){a.setActiveErrors(b)}else {a.unsetActiveError()}if(d!==a.getActiveError()){a.updateLayout()}}},getCombinedErrors:function(f){var g=[],b,j=f.length,d,c,a,i,h,e;for(b=0;b','','','{% this.renderColumn(out,parent,xindex-1) %}','','',''],lastOwnerItemsGeneration:null,beginLayout:function(i){var d=this,h,e,a,c,f,j=0,g=0,k=d.autoFlex,b=d.innerCt.dom.style;Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);h=d.columnNodes;i.innerCtContext=i.getEl('innerCt',d);if(!i.widthModel.shrinkWrap){e=h.length;if(d.columnsArray){for(a=0;ad){b=c-d;e=f.rowEl;for(a=0;a','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','',' tabindex="{tabIdx}"',' disabled="disabled"',' style="{fieldStyle}"',' class="{checkboxCls} {clipCls}" autocomplete="off" hidefocus="true" ',' {$}="{.}"','/>','','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','','',{disableFormats:!0,compiled:!0}],publishes:{checked:1},subTplInsertions:['beforeBoxLabelTpl','afterBoxLabelTpl','beforeBoxLabelTextTpl','afterBoxLabelTextTpl','boxLabelAttrTpl','inputAttrTpl'],isCheckbox:!0,focusCls:'form-checkbox-focus',fieldBodyCls:'x-form-cb-wrap',checked:!1,checkedCls:'x-form-cb-checked',boxLabelCls:'x-form-cb-label',boxLabelAlign:'after',afterLabelCls:'x-form-cb-after',wrapInnerCls:'x-form-cb-wrap-inner',noBoxLabelCls:'x-form-cb-no-box-label',inputValue:'on',checkChangeEvents:[],inputType:'checkbox',isTextInput:!1,ariaRole:'checkbox',onRe:/^on$/i,inputCls:'x-form-cb',_checkboxCls:'x-form-cb-input',_clipCls:'x-hidden-clip',initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);a.getManager().add(a)},initDefaultName:Ext.emptyFn,initValue:function(){var a=this,b=!!a.checked;a.originalValue=a.lastValue=b;a.setValue(b)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}return Ext.form.field.Base.prototype.getElConfig.call(this)},getSubTplData:function(g){var a=this,f=a.boxLabel,e=a.boxLabelAlign,d=e==='before',c,b;c=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,g),{clipCls:a._clipCls,checkboxCls:a._checkboxCls,disabled:a.readOnly||a.disabled,wrapInnerCls:a.wrapInnerCls,boxLabel:f,boxLabelCls:a.boxLabelCls,boxLabelAlign:e,labelAlignedBefore:d,afterLabelCls:d?a.afterLabelCls:'',noBoxLabelCls:!f?a.noBoxLabelCls:'',inputName:a.name||a.id});b=c.inputElAriaAttributes;if(b){b['aria-checked']=!!a.checked;b['aria-labelledby']=a.id+'-boxLabelEl'}return c},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.inputEl.on({click:'onBoxClick',scope:a,translate:!1});a.displayEl.on({click:'onBoxClick',mousedown:'_onDisplayElMouseDown',scope:a})},setBoxLabel:function(b){var a=this;a.boxLabel=b;if(a.rendered){a.boxLabelEl.setHtml(b);a.boxLabelEl[b?'removeCls':'addCls'](a.noBoxLabelCls);a.updateLayout()}},onBoxClick:function(){var a=this;if(!a.disabled&&!a.readOnly){a.setValue(!a.checked)}},getRawValue:function(){return this.checked},getValue:function(){return this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.checked?this.inputValue:b},isChecked:function(a,b){return a===!0||a==='true'||a==='1'||a===1||((Ext.isString(a)||Ext.isNumber(a))&&b?a==b:this.onRe.test(a))},setRawValue:function(e){var a=this,d=a.inputEl,c=a.displayEl,b=a.isChecked(e,a.inputValue);if(d){a[b?'addCls':'removeCls'](a.checkedCls);if(a.ariaRole){a.ariaEl.dom.setAttribute('aria-checked',b)}}if(Ext.isIE8&&c&&b!==a.lastValue){c.repaint()}a.checked=a.rawValue=b;if(!a.duringSetValue){a.lastValue=b}return b},setValue:function(e){var a=this,c,b,f,d;if(Ext.isArray(e)){c=a.getManager().getByName(a.name,a.getFormId()).items;f=c.length;for(b=0;b style="{bodyStyle}">','{%this.renderContainer(out,values);%}',''],stateEvents:['collapse','expand'],maskOnDisable:!1,beforeDestroy:function(){var b=this,a=b.legend;if(a){delete a.ownerCt;a.destroy();b.legend=null}Ext.container.Container.prototype.beforeDestroy.call(this)},initComponent:function(){var a=this,b=a.baseCls;if(a.ariaRole&&!a.ariaLabel){a.ariaLabel=Ext.String.formatEncode(a.descriptionText,a.title||'')}a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!a.collapsed;a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.layout.managePadding=a.layout.manageOverflow=!1;if(a.collapsed){a.addCls(b+'-collapsed');a.collapse()}if(a.title||a.checkboxToggle||a.collapsible){a.addTitleClasses();a.legend=a.createLegendCt()}a.initMonitor()},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.bodyTargetCls=b.bodyTargetCls;b.protoBody.writeTo(a);delete b.protoBody;return a},getState:function(){var a=Ext.container.Container.prototype.getState.call(this);a=this.addPropertyToState(a,'collapsed');return a},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn,collapsedHorizontal:function(){return !0},collapsedVertical:function(){return !0},createLegendCt:function(){var a=this,c=[],d={baseCls:a.baseCls+'-header',layout:'container',ui:a.ui,id:a.id+'-legend',autoEl:'legend',ariaRole:null,items:c,ownerCt:a,shrinkWrap:!0,ownerLayout:a.componentLayout},b;if(a.checkboxToggle){c.push(a.createCheckboxCmp())}else {if(a.collapsible){c.push(a.createToggleCmp())}}c.push(a.createTitleCmp());b=new Ext.container.Container(d);b.collapseImmune=!0;b.getInherited().collapseImmune=!0;return b},createTitleCmp:function(){var a=this,b={html:a.title,ui:a.ui,cls:a.baseCls+'-header-text',id:a.id+'-legendTitle',ariaRole:'presentation'};if(a.collapsible&&a.toggleOnTitleClick){b.listeners={click:{element:'el',scope:a,fn:a.toggle}};b.cls+=' '+a.baseCls+'-header-text-collapsible'}a.titleCmp=new Ext.Component(b);return a.titleCmp},createCheckboxCmp:function(){var a=this,d='-checkbox',b=a.baseCls+'-header'+d,c;b+=' '+b+'-'+a.ui;a.checkboxCmp=c=new Ext.form.field.Checkbox({hideEmptyLabel:!0,name:a.checkboxName||a.id+d,cls:b,id:a.id+'-legendChk',ui:a.checkboxUI,checked:!a.collapsed,msgTarget:'none',listeners:{change:a.onCheckChange,scope:a},ariaLabel:a.expandText});return c},createToggleCmp:function(){var a=this,b;a.toggleCmp=b=new Ext.panel.Tool({cacheHeight:!1,cls:a.baseCls+'-header-tool-'+a.ui,type:'toggle',handler:a.toggle,id:a.id+'-legendToggle',scope:a,ariaRole:'checkbox',ariaLabel:a.expandText,ariaRenderAttributes:{'aria-checked':!a.collapsed}});return b},doRenderLegend:function(d,c){var e=c.$comp,a=e.legend,b;if(a){a.ownerLayout.configureItem(a);b=a.getRenderTree();Ext.DomHelper.generateMarkup(b,d)}},getCollapsed:function(){return this.collapsed?'top':!1},getCollapsedDockedItems:function(){var a=this.legend;return a?[a]:[]},setTitle:function(c){var a=this,b=a.legend;a.title=c;a.ariaLabel=Ext.String.formatEncode(a.descriptionText,c||'');if(a.rendered){if(!b){a.legend=b=a.createLegendCt();a.addTitleClasses();b.ownerLayout.configureItem(b);b.render(a.el,0)}a.titleCmp.update(c);a.ariaEl.dom.setAttribute('aria-label',a.ariaLabel)}else {if(b){a.titleCmp.update(c)}else {a.addTitleClasses();a.legend=a.createLegendCt()}}return a},addTitleClasses:function(){var a=this,c=a.title,b=a.baseCls;if(c){a.addCls(b+'-with-title')}if(c||a.checkboxToggle||a.collapsible){a.addCls(b+'-with-legend')}},expand:function(){return this.setExpanded(!0)},collapse:function(){return this.setExpanded(!1)},setExpanded:function(b){var a=this,d=a.checkboxCmp,c=a.toggleCmp,e=b?'expand':'collapse';if(!a.rendered||a.fireEvent('before'+e,a)!==!1){b=!!b;if(d){d.setValue(b)}else {if(c&&c.ariaEl.dom){c.ariaEl.dom.setAttribute('aria-checked',b)}}if(b){a.removeCls(a.baseCls+'-collapsed')}else {a.addCls(a.baseCls+'-collapsed')}if(a.ariaEl.dom){a.ariaEl.dom.setAttribute('aria-expanded',!!b)}a.collapsed=!b;if(b){delete a.getInherited().collapsed}else {a.getInherited().collapsed=!0}if(a.rendered){a.updateLayout({isRoot:!1});a.fireEvent(e,a)}}return a},getRefItems:function(c){var a=Ext.container.Container.prototype.getRefItems.apply(this,arguments),b=this.legend;if(b){a.unshift(b);if(c){a.unshift.apply(a,b.getRefItems(!0))}}return a},toggle:function(){this.setExpanded(!!this.collapsed)},privates:{applyTargetCls:function(a){this.bodyTargetCls=a},finishRender:function(){var a=this.legend;Ext.container.Container.prototype.finishRender.call(this);if(a){a.finishRender()}},getProtoBody:function(){var b=this,a=b.protoBody;if(!a){b.protoBody=a=new Ext.util.ProtoElement({styleProp:'bodyStyle',styleIsText:!0})}return a},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){return this.body||this.frameBody||this.el},initPadding:function(d){var b=this,e=b.getProtoBody(),a=b.padding,c;if(a!==undefined){if(Ext.isIE8){a=b.parseBox(a);c=Ext.Element.parseBox(0);c.top=a.top;a.top=0;e.setStyle('padding',b.unitizeBox(c))}d.setStyle('padding',b.unitizeBox(a))}},onCheckChange:function(b,a){this.setExpanded(a)},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderLegend=this.doRenderLegend}}},0,['fieldset'],['component','box','container','fieldset'],{'component':!0,'box':!0,'container':!0,'fieldset':!0},['widget.fieldset'],[['fieldAncestor',Ext.form.FieldAncestor]],[Ext.form,'FieldSet'],0);Ext.cmd.derive('Ext.form.Label',Ext.Component,{autoEl:'label',maskOnDisable:!1,getElConfig:function(){var a=this;a.html=a.text?Ext.util.Format.htmlEncode(a.text):a.html||'';return Ext.apply(Ext.Component.prototype.getElConfig.call(this),{htmlFor:a.forId||''})},setText:function(c,b){var a=this;b=b!==!1;if(b){a.text=c;delete a.html}else {a.html=c;delete a.text}if(a.rendered){a.el.dom.innerHTML=b!==!1?Ext.util.Format.htmlEncode(c):c;a.updateLayout()}return a}},0,['label'],['component','box','label'],{'component':!0,'box':!0,'label':!0},['widget.label'],0,[Ext.form,'Label'],0);Ext.cmd.derive('Ext.form.Panel',Ext.panel.Panel,{alternateClassName:['Ext.FormPanel','Ext.form.FormPanel'],layout:'anchor',bodyAriaRole:'form',basicFormConfigs:['api','baseParams','errorReader','jsonSubmit','method','paramOrder','paramsAsHash','reader','standardSubmit','timeout','trackResetOnLoad','url','waitMsgTarget','waitTitle'],initComponent:function(){var a=this;if(a.frame){a.border=!1}a.initFieldAncestor();Ext.panel.Panel.prototype.initComponent.call(this);a.relayEvents(a.form,['beforeaction','actionfailed','actioncomplete','validitychange','dirtychange']);if(a.pollForChanges){a.startPolling(a.pollInterval||500)}},initItems:function(){Ext.panel.Panel.prototype.initItems.call(this);this.initMonitor();this.form=this.createForm()},afterFirstLayout:function(){Ext.panel.Panel.prototype.afterFirstLayout.apply(this,arguments);this.form.initialize()},createForm:function(){var d={},c=this.basicFormConfigs,e=c.length,b=0,a;for(;b150){delete a.lastDownArrow}if(!a.isExpanded){b.stopEvent();a.onTriggerClick();a.lastDownArrow=b.time}else {if(!b.isStopped&&b.time-a.lastDownArrow<150){delete a.lastDownArrow}}},expand:function(){var a=this,d,c,b,e;if(a.rendered&&!a.isExpanded&&!a.destroyed){d=a.bodyEl;b=a.getPicker();e=Ext.getDoc();b.setMaxHeight(b.initialConfig.maxHeight);if(a.matchFieldWidth){b.setWidth(a.bodyEl.getWidth())}b.show();a.isExpanded=!0;a.alignPicker();d.addCls(a.openCls);if(a.ariaRole){c=a.ariaEl.dom;c.setAttribute('aria-owns',b.listEl?b.listEl.id:b.el.id);c.setAttribute('aria-expanded',!0)}a.touchListeners=e.on({translate:!1,touchstart:a.collapseIf,scope:a,delegated:!1,destroyable:!0});a.scrollListeners=Ext.on({scroll:a.onGlobalScroll,scope:a,destroyable:!0});Ext.on('resize',a.alignPicker,a,{buffer:1});a.fireEvent('expand',a);a.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){if(!this.destroyed){var a=this.getPicker();if(a.isVisible()&&a.isFloating()){this.doAlign()}}},doAlign:function(){var a=this,c=a.picker,d='-above',b;a.picker.alignTo(a.triggerWrap,a.pickerAlign,a.pickerOffset);b=c.el.getY()=g){a.deselectRange(j,g-1)}else {if(h!==c){a.selectRange(h,c,f)}}}a.lastSelected=c}else {if(e){if(!f){a.doSelect(c,!1)}}else {a.selectWithEvent(c,b)}}}};break;case 'SIMPLE':if(e===b.A&&f){a.selected.beginUpdate();a.selectRange(0,a.store.getCount()-1);a.selected.endUpdate()}else {if(k){a.doDeselect(c)}else {a.doSelect(c,!0)}};break;case 'SINGLE':if(!f){if(i){a.doSelect(c,!1)}else {if(m||!e){a.selectWithEvent(c,b)}}};}if(!b.shiftKey&&!a.destroyed&&a.isSelected(c)){a.selectionStart=c;a.selectionStartIdx=g}},selectRange:function(d,f,m){var b=this,i=b.store,l=b.selected.items,h,a,g,e,c,j,k;if(b.isLocked()){return}h=b.normalizeRowRange(d,f);d=h[0];f=h[1];e=[];for(a=d;a<=f;a++){if(!b.isSelected(i.getAt(a))){e.push(i.getAt(a))}}if(!m){c=[];b.suspendChanges();for(a=0,g=l.length;af){c.push(k)}}for(a=0,g=c.length;a0)}}}},deselectRange:function(d,e){var a=this,h=a.store,g,c,b,f;if(a.isLocked()){return}g=a.normalizeRowRange(d,e);d=g[0];e=g[1];b=[];for(c=d;c<=e;c++){f=h.getAt(c);if(a.isSelected(f)){b.push(f)}}if(b.length){a.doDeselect(b)}},normalizeRowRange:function(a,b){var c=this.store,d;if(!Ext.isNumber(a)){a=c.indexOf(a)}a=Math.max(0,a);if(!Ext.isNumber(b)){b=c.indexOf(b)}b=Math.min(b,c.getCount()-1);if(a>b){d=b;b=a;a=d}return [a,b]},select:function(a,c,b){if(Ext.isDefined(a)&&!(Ext.isArray(a)&&!a.length)){this.doSelect(a,c,b)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(a,e,d){var b=this,c;if(b.locked||a==null){return}if(typeof a==='number'){c=b.store.getAt(a);if(!c){return}a=[c]}if(b.selectionMode==='SINGLE'){if(a.isModel){a=[a]}if(a.length){b.doSingleSelect(a[0],d)}}else {b.doMultiSelect(a,e,d)}},doMultiSelect:function(b,k,d){var a=this,g=a.selected,h=!1,e,f,j,c,i;if(a.locked){return}b=!Ext.isArray(b)?[b]:b;j=b.length;if(!k&&g.getCount()>0){e=a.deselectDuringSelect(b,d);if(a.destroyed){return}if(e[0]){a.maybeFireSelectionChange(e[1]>0&&!d);return}else {h=e[1]>0}}i=function(){if(!g.getCount()){a.selectionStart=c}g.add(c);h=!0};for(f=0;f0&&!f);return d===g},doSingleSelect:function(b,c){var a=this,e=!1,d=a.selected,f;if(a.locked){return}if(a.isSelected(b)){return}f=function(){if(d.getCount()){a.suspendChanges();var f=a.deselectDuringSelect([b],c);if(a.destroyed){return}a.resumeChanges();if(f[0]){return !1}}a.lastSelected=b;if(!d.getCount()){a.selectionStart=b}d.add(b);e=!0};a.onSelectChange(b,!0,c,f);if(e&&!a.destroyed){a.maybeFireSelectionChange(!c)}},maybeFireSelectionChange:function(b){var a=this;if(b&&!a.suspendChange){a.fireEvent('selectionchange',a,a.getSelection())}},getLastSelected:function(){return this.lastSelected},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(a){a=a?a.toUpperCase():'SINGLE';this.selectionMode=this.modes[a]?a:'SINGLE'},isLocked:function(){return this.locked},setLocked:function(a){this.locked=!!a},isRangeSelected:function(b,c){var e=this,f=e.store,a,d;d=e.normalizeRowRange(b,c);b=d[0];c=d[1];for(a=b;a<=c;a++){if(!e.isSelected(f.getAt(a))){return !1}}return !0},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected.contains(a)},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var a=this,l=a.store,e=[],c=[],k=a.getSelection(),m=k.length,b=a.getSelected(),h,j,d,g,i,f;if(!l||!(b.isCollection||b.isRows)||!b.getCount()){return}d=l.getData();if(d.getSource){j=d.getSource();if(j){d=j}}a.refreshing=!0;b.beginUpdate();a.suspendChanges();for(f=0;f0);if(i){a.fireEvent('lastselectedchanged',a,a.getSelection(),a.lastSelected)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(d,e,b,f){var a=this,c=e?'select':'deselect';if((b||a.fireEvent('before'+c,a,d))!==!1&&f()!==!1){if(!b){a.fireEvent(c,a,d)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(a){var c=this.view,b;if(c){b=c.resolveSatelliteListenerScope(this,a)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,a)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,selectWithEventMulti:function(b,l,e){var a=this,g=l.shiftKey,c=l.ctrlKey,j=g?a.getSelectionStart():null,i=a.getSelection(),k=i.length,f,d,h;if(g&&j){a.selectRange(j,b,c)}else {if(c&&e){if(a.allowDeselect){a.doDeselect(b,!1)}}else {if(c){a.doSelect(b,!0,!1)}else {if(e&&!g&&!c&&k>1){if(a.allowDeselect){f=[];for(d=0;dthis.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyRight:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyLeft:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(a){this.setPosition(0,a)},onKeyEnd:function(a){this.setPosition(this.view.all.getCount()-1,a)},onKeySpace:function(a){this.fireNavigateEvent(a)},onKeyEnter:function(a){a.stopEvent();a.view.fireEvent('itemclick',a.view,a.record,a.item,a.recordIndex,a)},onSelectAllKeyPress:function(a){this.fireNavigateEvent(a)},fireNavigateEvent:function(b){var a=this;a.fireEvent('navigate',{navigationModel:a,keyEvent:b,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,recordIndex:a.recordIndex,record:a.record,item:a.item})},destroy:function(){var a=this;a.setStore(null);Ext.destroy(a.viewListeners,a.keyNav);a.keyNav=a.viewListeners=a.dataSource=a.lastFocused=null;a.callParent()}},1,0,0,0,['view.navigation.default'],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,'NavigationModel'],0);Ext.cmd.derive('Ext.view.AbstractView',Ext.Component,{inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},defaultBindProperty:'store',renderBuffer:document.createElement('div'),statics:{updateDelay:200,queueRecordChange:function(n,o,d,m,f){var a=this,g=a.changeQueue||(a.changeQueue={}),i=d.internalId,h,b,l,e,c,j,k;h=g[i]||(g[i]={operation:m,record:d,data:{},views:[]});b=h.data;Ext.Array.include(h.views,n);if(f&&(l=f.length)){for(e=0;e
    {1}
    ',a.itemCls,b,a.itemAriaRole);a.tpl=new Ext.XTemplate(b,c)}Ext.Component.prototype.initComponent.call(this);a.tpl=a.getTpl('tpl');if(a.overItemCls){a.trackOver=!0}a.addCmpEvents();d=a.store=Ext.data.StoreManager.lookup(a.store||'ext-empty-store');if(!a.dataSource){a.dataSource=d}a.bindStore(d,!0);a.getNavigationModel().bindComponent(this);if(!a.all){a.all=new Ext.CompositeElementLite()}a.scrollState={top:0,left:0};a.savedTabIndexAttribute='data-savedtabindex-'+a.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(){var a=this.loadMask;Ext.Component.prototype.onRender.apply(this,arguments);if(a){this.createMask(a)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.apply(this,arguments);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refresh()}else {a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var a=this,b=a.loadingHeight;if(b&&b>a.getHeight()){a.hasLoadingHeight=!0;a.oldMinHeight=a.minHeight;a.minHeight=b;a.updateLayout()}},onMaskHide:function(){var a=this;if(!a.destroying&&a.hasLoadingHeight){a.minHeight=a.oldMinHeight;a.updateLayout();delete a.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.apply(this,arguments);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.apply(this,arguments);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var a=this.loadMask,b=[];if(a&&a.isComponent){b.push(a)}return b},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},applySelectionModel:function(b,e){var a=this,g=a.grid,c,f,d;if(e){e.un({scope:a,selectionchange:a.updateBindSelection,lastselectedchanged:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});Ext.destroy(a.selModelRelayer);b=Ext.Factory.selection(b)}else {if(b&&b.isSelectionModel){b.locked=a.disableSelection}else {if(a.simpleSelect){c='SIMPLE'}else {if(a.multiSelect){c='MULTI'}else {c='SINGLE'}}if(typeof b==='string'){b={type:b}}b=Ext.Factory.selection(Ext.apply({allowDeselect:a.allowDeselect||a.multiSelect,mode:c,locked:a.disableSelection},b))}}if(b.mode!=='SINGLE'){d=(g||a).ariaEl.dom;if(d){d.setAttribute('aria-multiselectable',!0)}else {if(!g){f=a.ariaRenderAttributes||(a.ariaRenderAttributes={});f['aria-multiselectable']=!0}}}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});return b},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(d){var a=this,b=a.getNavigationModel(),c;a.toggleChildrenTabbability(!1);if(!a.itemFocused&&a.all.getCount()){c=b.getLastFocused();b.setPosition(c||0,d.event,null,!c);a.itemFocused=b.getPosition()!=null}if(a.itemFocused){this.el.dom.setAttribute('tabIndex','-1')}Ext.Component.prototype.onFocusEnter.call(this,d)},onFocusLeave:function(b){var a=this;if(a.itemFocused&&!a.refreshing){a.getNavigationModel().setPosition(null,b.event,null,!0);a.itemFocused=!1;a.el.dom.setAttribute('tabIndex',0)}Ext.Component.prototype.onFocusLeave.call(this,b)},ariaSelect:function(c,b){var a=this.getNode(b);if(a){a.setAttribute('aria-selected',!0)}},ariaDeselect:function(c,b){var a=this.getNode(b);if(a){a.removeAttribute('aria-selected')}},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);if(!a){this.onFocusLeave({})}},refresh:function(){var a=this,c=a.all,i=c.getCount(),g=a.refreshCounter,e,k,f,j=a.getSelectionModel(),h,d=g&&c.getCount()&&a.preserveScrollOnRefresh&&a.getScrollable(),b;if(!a.rendered||a.destroyed){return}if(!a.hasListeners.beforerefresh||a.fireEvent('beforerefresh',a)!==!1){a.refreshing=!0;h=a.saveFocusState();e=a.getTargetEl();f=a.getViewRange();k=e.dom;if(d){b=d.getPosition();if(!(b.x||b.y)){b=null}}if(g){a.clearViewEl();a.refreshCounter++}else {a.refreshCounter=1}a.tpl.append(e,a.collectData(f,c.startIndex||0));if(f.length<1){a.addEmptyText();c.clear()}else {a.collectNodes(e.dom);a.updateIndexes(0)}h();if(a.refreshSelmodelOnRefresh!==!1){j.refresh()}a.refreshNeeded=!1;a.refreshSize(c.getCount()!==i);a.fireEvent('refresh',a,f);if(d){d.scrollTo(b)}if(!a.viewReady){a.viewReady=!0;a.fireEvent('viewready',a)}a.refreshing=!1;a.refreshScroll();a.cleanupData()}},addEmptyText:function(){var a=this,b=a.getStore();if(a.emptyText&&!b.isLoading()&&(!a.deferEmptyText||a.refreshCounter>1||b.isLoaded())){a.emptyEl=Ext.core.DomHelper.insertHtml('beforeEnd',a.getTargetEl().dom,a.emptyText)}},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(d){var a=this,b=a.getSizeModel(),c=a.getScrollable();if(b.height.shrinkWrap||b.width.shrinkWrap||d){a.updateLayout()}else {if(a.touchScroll&&!a.bufferedRenderer){if(c){c.refresh()}else {a.on({boxready:a.refreshScroll,scope:a,single:!0})}}}},afterFirstLayout:function(d,c){var a=this,b=a.getScrollable();if(b){b.on({scroll:a.onViewScroll,scrollend:a.onViewScrollEnd,scope:a,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,d,c)},clearViewEl:function(){var a=this,c=a.getTargetEl(),b=a.getNodeContainer()===c;a.clearEmptyEl();a.all.clear(!b);if(b){c.dom.innerHTML=''}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(c,a,b){this.fireEvent('scroll',this,a,b)},onViewScrollEnd:function(c,a,b){this.fireEvent('scrollend',this,a,b)},saveScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){b.left=a.getScrollX();b.top=a.getScrollY()}},restoreScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){a.setScrollX(b.left);a.setScrollY(b.top)}},prepareData:function(c,f,e){var a,b,d;if(e){a=e.getAssociatedData();for(b in a){if(a.hasOwnProperty(b)){if(!d){c=Ext.Object.chain(c);d=!0}c[b]=a[b]}}}return c},collectData:function(c,e){var d=[],a=0,f=c.length,b;for(;a-1){if(a.getNode(b)){d=a.bufferRender([b],c).children[0];a.all.replaceElement(c,d,!0);a.updateIndexes(c,c);e.onUpdate(b);a.refreshSizePending=!0;if(e.isSelected(b)){a.onItemSelect(b)}if(a.hasListeners.itemupdate){a.fireEvent('itemupdate',b,c,d)}return d}}}},onReplace:function(o,b,e,d){var a=this,c=a.all,n=a.getSelectionModel(),j=b,h,m,g,f,l,k,i;if(a.rendered){h=a.bufferRender(d,b,!0);g=h.fragment;f=h.children;m=c.item(b);if(m){c.item(b).insertSibling(g,'before',!0)}else {a.appendNodes(g)}c.insert(b,f);if(e.length){i=a.saveFocusState()}b+=d.length;k=b+e.length-1;l=c.removeRange(b,k,!0);if(a.refreshSelmodelOnRefresh!==!1){n.refresh()}a.updateIndexes(b);if(a.hasListeners.itemremove){a.fireEvent('itemremove',e,j,l,a)}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,j,f)}i();a.refreshSize()}},onAdd:function(f,d,b){var a=this,c,e=a.getSelectionModel();if(a.rendered){if(a.all.getCount()===0){a.refresh();c=a.all.slice()}else {c=a.doAdd(d,b);if(a.refreshSelmodelOnRefresh!==!1){e.refresh()}a.updateIndexes(b);a.refreshSizePending=!0}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,b,c)}}},appendNodes:function(a){var b=this.all,c=b.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(a)}else {b.item(c-1).insertSibling(a,'after')}},doAdd:function(j,b){var d=this,g=d.bufferRender(j,b,!0),f=g.fragment,c=g.children,a=d.all,h=a.getCount(),e=a.startIndex||0,i=a.endIndex||h-1;if(h===0||b>i){d.appendNodes(f)}else {if(b<=e){a.item(e).insertSibling(f,'before',!0)}else {a.item(b).insertSibling(c,'before',!0)}}a.insert(b,c);return c},onRemove:function(l,d,b){var a=this,i=a.all,g=a.hasListeners.itemremove,e,c,k,f,h,j;if(i.getCount()){if(a.dataSource.getCount()===0){if(g){a.fireEvent('itemremove',d,b,a.getNodes(b,b+d.length-1))}a.refresh()}else {j=a.saveFocusState();if(g){f=[]}for(c=d.length-1;c>=0;--c){k=d[c];e=b+c;if(f){h=i.item(e);f[c]=h?h.dom:undefined}if(i.item(e)){a.doRemove(k,e)}}if(g){a.fireEvent('itemremove',d,b,f,a)}j();a.updateIndexes(b)}a.refreshSizePending=!0}},doRemove:function(b,a){this.all.removeElement(a,!0)},saveFocusState:function(){var a=this,e=a.dataSource||a.store,c=a.getNavigationModel(),b=c.recordIndex,d=c.record;if(a.el.contains(Ext.Element.getActiveElement())){a.el.dom.focus();return function(){if(e.getCount()){b=Math.min(b,a.all.getCount()-1);c.setPosition(e.contains(d)?d:b,null,null,!0)}}}return Ext.emptyFn},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(d,b){var e=this.all.elements,c,f=this.getViewRange(),a,g=this.id;d=d||0;b=b||(b===0?0:e.length-1);for(a=d;a<=b;a++){c=e[a];c.setAttribute('data-recordIndex',a);c.setAttribute('data-recordId',f[a].internalId);c.setAttribute('data-boundView',g)}},bindStore:function(b,e){var a=this,c=a.getSelectionModel(),d=a.getNavigationModel();c.bindStore(b);c.bindComponent(b?a:null);a.mixins.storeholder.bindStore.apply(a,arguments);d.setStore(b);if(b&&a.componentLayoutCounter){a.doFirstRefresh(b,!e)}},doFirstRefresh:function(b,c){var a=this;if(a.deferInitialRefresh&&!c){Ext.defer(a.doFirstRefresh,1,a,[b,!0])}else {if(b&&!b.isLoading()){a.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(c,b){var a=this;if(a.store.isBufferedStore){a.store.preserveScrollOnReload=a.preserveScrollOnReload}if(b&&b.isBufferedStore){delete b.preserveScrollOnReload}a.setMaskBind(c);if(!a.dataSource){a.dataSource=c}},setMaskBind:function(b){var a=this.loadMask;if(this.rendered&&a&&b&&!a.bindStore){a=this.createMask()}if(a&&a.bindStore){a.bindStore(b)}},getStoreListeners:function(){var a=this;return {refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var a=this;if(a.updateSuspendCounter){--a.updateSuspendCounter}Ext.resumeLayouts(!0);if(a.refreshSizePending){a.refreshSize(!0);a.refreshSizePending=!1}},onDataRefresh:function(b){var a=this,c=a.preserveScrollOnRefresh;if(b.loadCount>a.lastRefreshLoadCount){a.preserveScrollOnRefresh=a.preserveScrollOnReLoad}a.refreshView();a.preserveScrollOnRefresh=c;a.lastRefreshLoadCount=b.loadCount},refreshView:function(){var a=this,b=a.blockRefresh||!a.rendered||a.up('[collapsed],[isCollapsingOrExpanding],[hidden]');if(b){a.refreshNeeded=!0}else {if(a.bufferedRenderer){a.bufferedRenderer.refreshView()}else {a.refresh()}}},findItemByChild:function(a){return Ext.fly(a).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(a){return a.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var c=[],b=this.getSelectionModel().getSelection(),d=b.length,a=0;for(;aa.bottom){d=b.bottom-a.bottom}}if(b.lefta.right){c=b.right-a.right}}if(c||d){g.scrollBy(c,d,!1)}e.set({tabIndex:-1});e.focus()}},privates:{repaintBorder:function(b){var a=this.getNode(b);if(a){a.className=a.className}}}},0,['dataview'],['component','box','dataview'],{'component':!0,'box':!0,'dataview':!0},['widget.dataview'],0,[Ext.view,'View',Ext,'DataView'],0);Ext.cmd.derive('Ext.view.BoundListKeyNav',Ext.view.NavigationModel,{navigateOnSpace:!0,initKeyNav:function(c){var a=this,b=c.pickerField;if(!a.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,c);a.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:a.onKeyEsc,scope:a})}if(!b){return}if(!b.rendered){b.on('render',Ext.Function.bind(a.initKeyNav,a,[c],0),a,{single:!0});return}a.fieldKeyNav=new Ext.util.KeyNav({disabled:!0,target:b.inputEl,forceKeyDown:!0,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,tab:a.onKeyTab,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1001,scope:a})},processViewEvent:function(b,c,e,d,a){if(a.within(b.listWrap)){return a}if(a.getKey()===a.ESC){if(Ext.fly(a.target).isInputField()){a.target=a.target.parentNode}return a}},enable:function(){this.fieldKeyNav.enable();Ext.view.NavigationModel.prototype.enable.call(this)},disable:function(){this.fieldKeyNav.disable();Ext.view.NavigationModel.prototype.disable.call(this)},onItemMouseDown:function(e,b,d,c,a){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,e,b,d,c,a);a.preventDefault()},onKeyUp:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b>0?b-1:f.getCount()-1;d.setPosition(e);g.preventDefault()},onKeyDown:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b
    ',destroy:function(){var a=this;if(a.spinnerEl){a.spinnerEl.destroy();a.spinnerEl=a.upEl=a.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var a=this;return {vertical:a.vertical,upDisabledCls:a.upEnabled?'':a.spinnerUpCls+'-disabled',downDisabledCls:a.downEnabled?'':a.spinnerDownCls+'-disabled',spinnerCls:a.spinnerCls,spinnerUpCls:a.spinnerUpCls,spinnerDownCls:a.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var a=this,d=arguments,c=a.clickRepeater?d[1]:d[0],b=a.field;if(!b.readOnly&&!b.disabled){if(a.upEl.contains(c.target)){Ext.callback(a.upHandler,a.scope,[b,a,c],0,b)}else {if(a.downEl.contains(c.target)){Ext.callback(a.downHandler,a.scope,[b,a,c],0,b)}}}b.inputEl.focus()},onFieldRender:function(){var a=this,d=a.vertical,c,b;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);c=a.spinnerEl=a.el.select('.'+a.spinnerCls,!0);b=c.elements;a.upEl=d?b[0]:b[1];a.downEl=d?b[1]:b[0]},setUpEnabled:function(a){this.upEl[a?'removeCls':'addCls'](this.spinnerUpCls+'-disabled')},setDownEnabled:function(a){this.downEl[a?'removeCls':'addCls'](this.spinnerDownCls+'-disabled')}},0,0,0,0,['trigger.spinner'],0,[Ext.form.trigger,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Spinner',Ext.form.field.Text,{alternateClassName:'Ext.form.Spinner',config:{triggers:{spinner:{type:'spinner',upHandler:'onSpinnerUpClick',downHandler:'onSpinnerDownClick',scope:'this'}}},spinUpEnabled:!0,spinDownEnabled:!0,keyNavEnabled:!0,mouseWheelEnabled:!0,repeatTriggerClick:!0,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:'spinbutton',applyTriggers:function(b){var c=this,a=b.spinner;a.upEnabled=c.spinUpEnabled;a.downEnabled=c.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},onRender:function(){var a=this,b=a.getTrigger('spinner');(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(a.keyNavEnabled){a.spinnerKeyNav=new Ext.util.KeyNav(a.inputEl,{scope:a,up:a.spinUp,down:a.spinDown})}if(a.mouseWheelEnabled){a.mon(a.bodyEl,'mousewheel',a.onMouseWheel,a)}a.spinUpEl=b.upEl;a.spinDownEl=b.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var a=this;if(a.spinUpEnabled&&!a.disabled){a.fireEvent('spin',a,'up');a.fireEvent('spinup',a);a.onSpinUp()}},spinDown:function(){var a=this;if(a.spinDownEnabled&&!a.disabled){a.fireEvent('spin',a,'down');a.fireEvent('spindown',a);a.onSpinDown()}},setSpinUpEnabled:function(b){var a=this,c=a.spinUpEnabled;a.spinUpEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setUpEnabled(b)}},setSpinDownEnabled:function(b){var a=this,c=a.spinDownEnabled;a.spinDownEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setDownEnabled(b)}},onMouseWheel:function(c){var b=this,a;if(b.hasFocus){a=c.getWheelDelta();if(a>0){b.spinUp()}else {if(a<0){b.spinDown()}}c.stopEvent()}},onDestroy:function(){Ext.destroyMembers(this,'spinnerKeyNav');Ext.form.field.Text.prototype.onDestroy.call(this)}},0,['spinnerfield'],['component','box','field','textfield','spinnerfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0},['widget.spinnerfield'],0,[Ext.form.field,'Spinner',Ext.form,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Number',Ext.form.field.Spinner,{alternateClassName:['Ext.form.NumberField','Ext.form.Number'],allowExponential:!0,allowDecimals:!0,decimalSeparator:null,submitLocaleSeparator:!0,decimalPrecision:2,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,step:1,minText:'The minimum value for this field is {0}',maxText:'The maximum value for this field is {0}',nanText:'{0} is not a valid number',negativeText:'The value cannot be negative',baseChars:'0123456789',autoStripChars:!1,initComponent:function(){var a=this;if(a.decimalSeparator===null){a.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);a.setMinValue(a.minValue);a.setMaxValue(a.maxValue)},getSubTplData:function(g){var f=this,e=f.minValue,d=f.maxValue,c,a,b;c=Ext.form.field.Spinner.prototype.getSubTplData.call(this,g);a=c.inputElAriaAttributes;if(a){if(e>Number.NEGATIVE_INFINITY){a['aria-valuemin']=e}if(d=e&&b<=d){a['aria-valuenow']=b}}return c},setValue:function(d){var a=this,c,b;if(a.hasFocus){c=a.getBind();b=c&&c.value;if(b&&b.syncing&&d===a.value){return a}}return Ext.form.field.Spinner.prototype.setValue.call(this,d)},getErrors:function(b){b=arguments.length>0?b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Spinner.prototype.getErrors.call(this,b),e=Ext.String.format,d;if(b.length<1){return c}b=String(b).replace(a.decimalSeparator,'.');if(isNaN(b)){c.push(e(a.nanText,b))}d=a.parseValue(b);if(a.minValue===0&&d<0){c.push(this.negativeText)}else {if(da.maxValue){c.push(e(a.maxText,a.maxValue))}return c},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(a){var b=this,c=b.decimalSeparator;a=b.parseValue(a);a=b.fixPrecision(a);a=Ext.isNumber(a)?a:parseFloat(String(a).replace(c,'.'));a=isNaN(a)?'':String(a).replace('.',c);return a},getSubmitValue:function(){var b=this,a=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!b.submitLocaleSeparator){a=a.replace(b.decimalSeparator,'.')}return a},onChange:function(a){var b=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(b){if(Ext.isNumber(a)&&isFinite(a)){b.setAttribute('aria-valuenow',a)}else {b.removeAttribute('aria-valuenow')}}},toggleSpinners:function(){var a=this,c=a.getValue(),d=c===null,b;if(a.spinUpEnabled||a.spinUpDisabledByToggle){b=d||ca.minValue;a.setSpinDownEnabled(b,!0)}},setMinValue:function(e){var a=this,c=a.ariaEl.dom,d,b,c;a.minValue=d=Ext.Number.from(e,Number.NEGATIVE_INFINITY);a.toggleSpinners();if(c){if(d>Number.NEGATIVE_INFINITY){c.setAttribute('aria-valuemin',d)}else {c.removeAttribute('aria-valuemin')}}if(a.disableKeyFilter!==!0){b=a.baseChars+'';if(a.allowExponential){b+=a.decimalSeparator+'e+-'}else {if(a.allowDecimals){b+=a.decimalSeparator}if(a.minValue<0){b+='-'}}b=Ext.String.escapeRegex(b);a.maskRe=new RegExp('['+b+']');if(a.autoStripChars){a.stripCharsRe=new RegExp('[^'+b+']','gi')}}},setMaxValue:function(c){var b=this.ariaEl.dom,a;this.maxValue=a=Ext.Number.from(c,Number.MAX_VALUE);if(b){if(aa.maxLength){return}}a.setValue(b)}},0,['numberfield'],['component','box','field','textfield','spinnerfield','numberfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0,'numberfield':!0},['widget.numberfield'],0,[Ext.form.field,'Number',Ext.form,'NumberField',Ext.form,'Number'],0);Ext.cmd.derive('Ext.toolbar.Paging',Ext.toolbar.Toolbar,{alternateClassName:'Ext.PagingToolbar',displayInfo:!1,prependButtons:!1,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display',beforePageText:'Page',afterPageText:'of {0}',firstText:'First Page',prevText:'Previous Page',nextText:'Next Page',lastText:'Last Page',refreshText:'Refresh',inputItemWidth:30,emptyPageData:{total:0,currentPage:0,pageCount:0,toRecord:0,fromRecord:0},defaultBindProperty:'store',getPagingItems:function(){var a=this,b={scope:a,blur:a.onPagingBlur};b[Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress']=a.onPagingKeyDown;return [{itemId:'first',tooltip:a.firstText,overflowText:a.firstText,iconCls:'x-tbar-page-first',disabled:!0,handler:a.moveFirst,scope:a},{itemId:'prev',tooltip:a.prevText,overflowText:a.prevText,iconCls:'x-tbar-page-prev',disabled:!0,handler:a.movePrevious,scope:a},'-',a.beforePageText,{xtype:'numberfield',itemId:'inputItem',name:'inputItem',cls:'x-tbar-page-number',allowDecimals:!1,minValue:1,hideTrigger:!0,enableKeyEvents:!0,keyNavEnabled:!1,selectOnFocus:!0,submitValue:!1,isFormField:!1,width:a.inputItemWidth,margin:'-1 2 3 2',listeners:b},{xtype:'tbtext',itemId:'afterTextItem',html:Ext.String.format(a.afterPageText,1)},'-',{itemId:'next',tooltip:a.nextText,overflowText:a.nextText,iconCls:'x-tbar-page-next',disabled:!0,handler:a.moveNext,scope:a},{itemId:'last',tooltip:a.lastText,overflowText:a.lastText,iconCls:'x-tbar-page-last',disabled:!0,handler:a.moveLast,scope:a},'-',{itemId:'refresh',tooltip:a.refreshText,overflowText:a.refreshText,iconCls:'x-tbar-loading',disabled:a.store.isLoading(),handler:a.doRefresh,scope:a}]},initComponent:function(){var a=this,c=a.items||a.buttons||[],b;a.bindStore(a.store||'ext-empty-store',!0);b=a.getPagingItems();if(a.prependButtons){a.items=c.concat(b)}else {a.items=b.concat(c)}delete a.buttons;if(a.displayInfo){a.items.push('->');a.items.push({xtype:'tbtext',itemId:'displayItem'})}Ext.toolbar.Toolbar.prototype.initComponent.call(this)},beforeRender:function(){Ext.toolbar.Toolbar.prototype.beforeRender.apply(this,arguments);this.updateBarInfo()},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=!0;a.onLoad();a.calledInternal=!1}},updateInfo:function(){var a=this,d=a.child('#displayItem'),f=a.store,b=a.getPageData(),e,c;if(d){e=f.getCount();if(e===0){c=a.emptyMsg}else {c=Ext.String.format(a.displayMsg,b.fromRecord,b.toRecord,b.total)}d.setText(c)}},onLoad:function(){var a=this,f,c,b,g,h,d,e;h=a.store.getCount();d=h===0;if(!d){f=a.getPageData();c=f.currentPage;b=f.pageCount;if(c>b){if(b>0){a.store.loadPage(b)}else {a.getInputItem().reset()}return}g=Ext.String.format(a.afterPageText,isNaN(b)?1:b)}else {c=0;b=0;g=Ext.String.format(a.afterPageText,0)}Ext.suspendLayouts();e=a.child('#afterTextItem');if(e){e.update(g)}e=a.getInputItem();if(e){e.setDisabled(d).setValue(c)}a.setChildDisabled('#first',c===1||d);a.setChildDisabled('#prev',c===1||d);a.setChildDisabled('#next',c===b||d);a.setChildDisabled('#last',c===b||d);a.setChildDisabled('#refresh',!1);a.updateInfo();Ext.resumeLayouts(!0);if(!a.calledInternal){a.fireEvent('change',a,f||a.emptyPageData)}},setChildDisabled:function(c,b){var a=this.child(c);if(a){a.setDisabled(b)}},getPageData:function(){var a=this.store,b=a.getTotalCount();return {total:b,currentPage:a.currentPage,pageCount:Math.ceil(b/a.pageSize),fromRecord:(a.currentPage-1)*a.pageSize+1,toRecord:Math.min(a.currentPage*a.pageSize,b)}},onLoadError:function(){this.setChildDisabled('#refresh',!1)},getInputItem:function(){return this.child('#inputItem')},readPageFromInput:function(d){var a=this.getInputItem(),b=!1,c;if(a){c=a.getValue();b=parseInt(c,10);if(!c||isNaN(b)){a.setValue(d.currentPage);return !1}}return b},onPagingBlur:function(c){var a=this.getInputItem(),b;if(a){b=this.getPageData().currentPage;a.setValue(b)}},onPagingKeyDown:function(a,b){this.processKeyEvent(a,b)},processKeyEvent:function(g,b){var e=this,c=b.getKey(),d=e.getPageData(),f=b.shiftKey?10:1,a;if(c===b.RETURN){b.stopEvent();a=e.readPageFromInput(d);if(a!==!1){a=Math.min(Math.max(1,a),d.pageCount);if(a!==d.currentPage&&e.fireEvent('beforechange',e,a)!==!1){e.store.loadPage(a)}}}else {if(c===b.HOME||c===b.END){b.stopEvent();a=c===b.HOME?1:d.pageCount;g.setValue(a)}else {if(c===b.UP||c===b.PAGE_UP||c===b.DOWN||c===b.PAGE_DOWN){b.stopEvent();a=e.readPageFromInput(d);if(a){if(c===b.DOWN||c===b.PAGE_DOWN){f*=-1}a+=f;if(a>=1&&a<=d.pageCount){g.setValue(a)}}}}}},beforeLoad:function(){this.setChildDisabled('#refresh',!0)},moveFirst:function(){if(this.fireEvent('beforechange',this,1)!==!1){this.store.loadPage(1);return !0}return !1},movePrevious:function(){var a=this,b=a.store,c=b.currentPage-1;if(c>0){if(a.fireEvent('beforechange',a,c)!==!1){b.previousPage();return !0}}return !1},moveNext:function(){var a=this,b=a.store,d=a.getPageData().pageCount,c=b.currentPage+1;if(c<=d){if(a.fireEvent('beforechange',a,c)!==!1){b.nextPage();return !0}}return !1},moveLast:function(){var a=this,b=a.getPageData().pageCount;if(a.fireEvent('beforechange',a,b)!==!1){a.store.loadPage(b);return !0}return !1},doRefresh:function(){var a=this,c=a.store,b=c.currentPage;if(a.fireEvent('beforechange',a,b)!==!1){c.loadPage(b);return !0}return !1},getStoreListeners:function(){return {beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},onDestroy:function(){this.bindStore(null);Ext.toolbar.Toolbar.prototype.onDestroy.call(this)}},0,['pagingtoolbar'],['component','box','container','toolbar','pagingtoolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'pagingtoolbar':!0},['widget.pagingtoolbar'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.toolbar,'Paging',Ext,'PagingToolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Paging',{override:'Ext.toolbar.Paging',defaultButtonUI:'plain-toolbar',inputItemWidth:40});Ext.cmd.derive('Ext.view.BoundList',Ext.view.View,{alternateClassName:'Ext.BoundList',pageSize:0,baseCls:'x-boundlist',itemCls:'x-boundlist-item',listItemCls:'',shadow:!1,trackOver:!0,preserveScrollOnRefresh:!0,enableInitialSelection:!1,refreshSelmodelOnRefresh:!0,componentLayout:'boundlist',navigationModel:'boundlist',scrollable:!0,ariaEl:'listEl',tabIndex:-1,childEls:['listWrap','listEl'],renderTpl:['
    ','
      {$}="{.}"','>','
    ','
    ','{%','var pagingToolbar=values.$comp.pagingToolbar;','if (pagingToolbar) {','Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);','}','%}',{disableFormats:!0}],focusOnToFront:!1,initComponent:function(){var a=this,b=a.baseCls,c=a.itemCls;a.selectedItemCls=b+'-selected';if(a.trackOver){a.overItemCls=b+'-item-over'}a.itemSelector='.'+c;a.scrollerSelector='ul.x-list-plain';if(a.floating){a.addCls(b+'-floating')}if(!a.tpl){a.tpl=new Ext.XTemplate('','
  • '+a.getInnerTpl(a.displayField)+'
  • ','
    ')}else {if(!a.tpl.isTemplate){a.tpl=new Ext.XTemplate(a.tpl)}}if(a.pageSize){a.pagingToolbar=a.createPagingToolbar()}Ext.view.View.prototype.initComponent.call(this)},getRefOwner:function(){return this.pickerField||Ext.view.View.prototype.getRefOwner.call(this)},getRefItems:function(){var b=Ext.view.View.prototype.getRefItems.call(this),a=this.pagingToolbar;if(a){b.push(a)}return b},createPagingToolbar:function(){return Ext.widget('pagingtoolbar',{id:this.id+'-paging-toolbar',pageSize:this.pageSize,store:this.dataSource,border:!1,ownerCt:this,ownerLayout:this.getComponentLayout()})},getNodeContainer:function(){return this.listEl},refresh:function(){var b=this,a=b.tpl;a.field=b.pickerField;a.store=b.store;Ext.view.View.prototype.refresh.call(this);a.field=a.store=null},bindStore:function(c,b){var a=this.pagingToolbar;Ext.view.View.prototype.bindStore.apply(this,arguments);if(a){a.bindStore(c,b)}},getInnerTpl:function(a){return '{'+a+'}'},onShow:function(){var a=this.pickerField;Ext.view.View.prototype.onShow.call(this);if(a&&a.rendered&&!a.hasFocus){a.focus()}},afterComponentLayout:function(e,d,c,b){var a=this.pickerField;Ext.view.View.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&a.alignPicker){a.alignPicker()}},onItemClick:function(e){var d=this,b=d.pickerField,c,a;if(!b){return}c=b.valueField;a=d.getSelectionModel().getSelection();if(!b.multiSelect&&a.length){a=a[0];if(a&&b.isEqual(e.get(c),a.get(c))&&b.collapse){b.collapse()}}},onContainerClick:function(b){var a=this.pagingToolbar;if(a&&a.rendered&&b.within(a.el)){return !1}},onDestroy:function(){Ext.view.View.prototype.onDestroy.call(this);Ext.destroyMembers(this,'pagingToolbar','listWrap','listEl')},privates:{getTargetEl:function(){return this.listEl},getOverflowEl:function(){return this.listWrap},finishRenderChildren:function(){var a=this.pagingToolbar;Ext.view.View.prototype.finishRenderChildren.apply(this,arguments);if(a){a.finishRender()}}}},0,['boundlist'],['component','box','dataview','boundlist'],{'component':!0,'box':!0,'dataview':!0,'boundlist':!0},['widget.boundlist'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,'BoundList',Ext,'BoundList'],0);Ext.cmd.derive('Ext.form.field.ComboBox',Ext.form.field.Picker,{alternateClassName:'Ext.form.ComboBox',config:{filters:null,selection:null,valueNotFoundText:null,displayTpl:!1,delimiter:', ',displayField:'text'},publishes:['selection'],twoWayBindable:['selection'],triggerCls:'x-form-arrow-trigger',hiddenName:'',collapseOnSelect:!1,hiddenDataCls:'x-hidden-display x-form-data-hidden',ariaRole:'combobox',childEls:{'hiddenDataEl':!0},filtered:!1,afterRender:function(){var a=this;Ext.form.field.Picker.prototype.afterRender.apply(this,arguments);a.setHiddenValue(a.value)},multiSelect:!1,triggerAction:'all',allQuery:'',queryParam:'query',queryMode:'remote',queryCaching:!0,autoLoadOnValue:!1,pageSize:0,anyMatch:!1,caseSensitive:!1,autoSelect:!0,typeAhead:!1,typeAheadDelay:250,selectOnTab:!0,forceSelection:!1,growToLongestValue:!0,clearFilterOnBlur:!0,defaultListConfig:{loadingHeight:70,minWidth:70,maxHeight:300,shadow:'sides'},transformInPlace:!0,clearValueOnEmpty:!0,getGrowWidth:function(){var a=this,i=a.inputEl.dom.value,h,e,g,c,b,f,d;if(a.growToLongestValue){h=a.displayField;e=a.store;g=e.data.length;c=0;for(b=0;bc){c=d;i=f}}}return i},initComponent:function(){var a=this,d=Ext.isDefined,f=a.store,e=a.transform,b,c;if('pinList' in a){a.collapseOnSelect=!a.pinList}if(e){b=Ext.getDom(e);if(b){if(!a.store){f=Ext.Array.map(Ext.Array.from(b.options),function(a){return [a.value,a.text]})}if(!a.name){a.name=b.name}if(!('value' in a)){a.value=b.value}}}a.bindStore(f||'ext-empty-store',!0,!0);c=a.queryMode==='local';if(!d(a.queryDelay)){a.queryDelay=c?10:500}if(!d(a.minChars)){a.minChars=c?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);a.doQueryTask=new Ext.util.DelayedTask(a.doRawQuery,a);if(b){if(a.transformInPlace){a.render(b.parentNode,b);delete a.renderTo}Ext.removeNode(b)}},getSubTplData:function(c){var b,a;b=Ext.form.field.Picker.prototype.getSubTplData.call(this,c);a=b.inputElAriaAttributes;if(a){a['aria-autocomplete']='list'}return b},getSubTplMarkup:function(c){var b=this,a='',d=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(b.hiddenName){a=''}return a+d},applyDisplayTpl:function(a){var b=this;if(!a){a=new Ext.XTemplate('{[typeof values === "string" ? values : values["'+b.getDisplayField()+'"]]}'+b.getDelimiter()+'');a.auto=!0}else {if(!a.isTemplate){a=new Ext.XTemplate(a)}}return a},applyFilters:function(b,a){var c=this;if(b===null||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.beginUpdate();a.splice(0,a.length,b);a.each(function(d){d.ownerId=c.id});a.endUpdate()}return a},applyValueNotFoundText:function(b){var a=this,c=a.valueNotFoundRecord||(a.valueNotFoundRecord=new Ext.data.Model());c.set(a.displayField,b);if(a.valueField&&a.displayField!==a.valueField){c.set(a.valueField,b)}return b},getFilters:function(b){var a=this.filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,c){var b=this;if(c){c.un('endupdate','onEndUpdateFilters',b)}if(a){a.on('endupdate','onEndUpdateFilters',b)}b.onEndUpdateFilters(a)},onEndUpdateFilters:function(a){var b=this,f=b.filtered,e=!!a&&a.length>0,d,c;if(f||e){b.filtered=e;d=[];c=b.store.getFilters();c.each(function(c){if(c.ownerId===b.id&&!a.contains(c)){d.push(c)}});c.splice(0,d,a.items)}},completeEdit:function(c){var a=this,b=a.queryFilter;Ext.form.field.Picker.prototype.completeEdit.call(this,c);a.doQueryTask.cancel();a.assertValue();if(b&&a.queryMode==='local'&&a.clearFilterOnBlur){a.getStore().getFilters().remove(b)}},onFocus:function(b){var a=this;Ext.form.field.Picker.prototype.onFocus.call(this,b);if(a.triggerAction!=='all'&&a.queryFilter&&a.queryMode==='local'&&a.clearFilterOnBlur){delete a.lastQuery;a.doRawQuery()}},assertValue:function(){var a=this,e=a.getRawValue(),c=a.getDisplayValue(),d=a.lastSelectedRecords,b;if(a.forceSelection){if(a.multiSelect){if(e!==c){a.setRawValue(c)}}else {b=a.findRecordByDisplay(e);if(b){if(a.getDisplayValue([a.getRecordDisplayData(b)])!==c){a.select(b,!0)}}else {if(d&&(!a.allowBlank||a.rawValue)){a.setValue(d)}else {if(d){delete a.lastSelectedRecords}a.setRawValue('')}}}}a.collapse()},onTypeAhead:function(){var a=this,e=a.displayField,d=a.store.findRecord(e,a.getRawValue()),f=a.getPicker(),b,g,c;if(d){b=d.get(e);g=b.length;c=a.getRawValue().length;f.highlightItem(f.getNode(d));if(c!==0&&c!==g){a.setRawValue(b);a.selectText(c,b.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){var a=this.queryFilter;Ext.form.field.Picker.prototype.beforeReset.call(this);if(a){this.getStore().getFilters().remove(a)}},onUnbindStore:function(){var a=this,c=a.picker,b=a.queryFilter;if(b&&!a.store.destroyed){a.changingFilters=!0;a.getStore().removeFilter(b,!0);a.changingFilters=!1}a.pickerSelectionModel.destroy();if(c){c.bindStore(null)}},onBindStore:function(b,f){var a=this,d=a.picker,c,e;if(b){if(b.autoCreated){a.queryMode='local';a.valueField=a.displayField='field1';if(!b.expanded){a.displayField='field2'}if(a.getDisplayTpl().auto){a.setDisplayTpl(null)}}if(!Ext.isDefined(a.valueField)){a.valueField=a.displayField}c={byValue:{rootProperty:'data',unique:!1}};c.byValue.property=a.valueField;b.setExtraKeys(c);if(a.displayField===a.valueField){b.byText=b.byValue}else {c.byText={rootProperty:'data',unique:!1};c.byText.property=a.displayField;b.setExtraKeys(c)}e={rootProperty:'data',extraKeys:{byInternalId:{property:'internalId'},byValue:{property:a.valueField,rootProperty:'data'}},listeners:{beginupdate:a.onValueCollectionBeginUpdate,endupdate:a.onValueCollectionEndUpdate,scope:a}};a.valueCollection=new Ext.util.Collection(e);a.pickerSelectionModel=new Ext.selection.DataViewModel({mode:a.multiSelect?'SIMPLE':'SINGLE',deselectOnContainerClick:!1,enableInitialSelection:!1,pruneRemoved:!1,selected:a.valueCollection,store:b,listeners:{scope:a,lastselectedchanged:a.updateBindSelection}});if(!f){a.resetToDefault()}if(d){d.setSelectionModel(a.pickerSelectionModel);if(d.getStore()!==b){d.bindStore(b)}}}},bindStore:function(a,e,c){var b=this,d=b.queryFilter;b.mixins.storeholder.bindStore.call(b,a,c);a=b.getStore();if(a&&d&&!e){a.getFilters().add(d)}if(!c&&a&&!a.isEmptyStore){b.setValueOnData()}},getStoreListeners:function(c){if(!c.isEmptyStore){var a=this,b={datachanged:a.onDataChanged,load:a.onLoad,exception:a.onException,update:a.onStoreUpdate,remove:a.checkValueOnChange};if(!c.getRemoteFilter()){b.filterchange=a.checkValueOnChange}return b}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var a=this;if(!a.destroying&&a.getStore().isLoaded()){if(a.multiSelect){}else {if(a.forceSelection&&!a.changingFilters&&!a.findRecordByValue(a.value)){a.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.collapse()},onLoad:function(b,e,d){var a=this,c=!a.valueCollection.byValue.get(a.value);if(d&&c&&!(b.lastOptions&&'rawQuery' in b.lastOptions)){a.setValueOnData()}a.checkValueOnChange()},setValueOnData:function(){var a=this;a.setValue(a.value);if(a.isExpanded&&a.getStore().getCount()){a.doAutoSelect()}},doRawQuery:function(){var a=this,b=a.inputEl.dom.value;if(a.multiSelect){b=b.split(a.delimiter).pop()}a.doQuery(b,!1,!0)},doQuery:function(c,f,g){var a=this,d=a.getStore(),e=d.filters&&!d.filters.length&&!!c,b=a.beforeQuery({query:c||'',rawQuery:g,forceAll:f,combo:a,cancel:!1});if(b!==!1&&!b.cancel){if(a.queryCaching&&!e&&b.query===a.lastQuery){a.getPicker().refresh();a.expand()}else {a.lastQuery=b.query;if(a.queryMode==='local'){a.doLocalQuery(b)}else {a.doRemoteQuery(b)}}}return !0},beforeQuery:function(a){var b=this;if(b.fireEvent('beforequery',a)===!1){a.cancel=!0}else {if(!a.cancel){if(a.query.length0){a=b.picker.getSelectionModel();if(a.lastSelected&&a.selected.length){c=a.lastSelected}d.getNavigationModel().setPosition(c)}},doTypeAhead:function(){var a=this,b=Ext.event.Event;if(!a.typeAheadTask){a.typeAheadTask=new Ext.util.DelayedTask(a.onTypeAhead,a)}if(a.lastKey!==b.BACKSPACE&&a.lastKey!==b.DELETE){a.typeAheadTask.delay(a.typeAheadDelay)}},onTriggerClick:function(){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else {if(a.triggerAction==='all'){a.doQuery(a.allQuery,!0)}else {if(a.triggerAction==='last'){a.doQuery(a.lastQuery,!0)}else {a.doQuery(a.getRawValue(),!1,!0)}}}}},onFieldMutation:function(b){var a=this,c=b.getKey(),d=c===b.BACKSPACE||c===b.DELETE,e=a.inputEl.dom.value,f=e.length;if(!a.readOnly&&(e!==a.lastMutatedValue||d)&&c!==b.TAB){a.lastMutatedValue=e;a.lastKey=c;if(f&&(b.type!=='keyup'||(!b.isSpecialKey()||d))){a.doQueryTask.delay(a.queryDelay)}else {if(!f&&(!c||d)){++a.suspendCheckChange;if(!a.multiSelect){a.value=null;a.displayTplData=undefined}if(a.clearValueOnEmpty){a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.removeAll();a.valueCollection.endUpdate()}a.collapse();if(a.queryFilter){a.changingFilters=!0;a.store.removeFilter(a.queryFilter,!0);a.changingFilters=!1}--a.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,b)}}},onDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);a.valueCollection=Ext.destroy(a.valueCollection);Ext.form.field.Picker.prototype.onDestroy.call(this)},onAdded:function(){var a=this;Ext.form.field.Picker.prototype.onAdded.apply(this,arguments);if(a.picker){a.picker.ownerCt=a.up('[floating]');a.picker.registerWithOwnerCt()}},createPicker:function(){var a=this,b,c=Ext.apply({xtype:'boundlist',id:a.pickerId,pickerField:a,selectionModel:a.pickerSelectionModel,floating:!0,hidden:!0,store:a.getPickerStore(),displayField:a.displayField,preserveScrollOnRefresh:!0,pageSize:a.pageSize,tpl:a.tpl},a.listConfig,a.defaultListConfig);b=a.picker=Ext.widget(c);if(a.pageSize){b.pagingToolbar.on('beforechange',a.onPageChange,a)}if(!b.initialConfig.maxHeight){b.on({beforeshow:a.onBeforePickerShow,scope:a})}b.getSelectionModel().on({beforeselect:a.onBeforeSelect,beforedeselect:a.onBeforeDeselect,focuschange:a.onFocusChange,scope:a});b.getNavigationModel().navigateOnSpace=!1;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(d){var b=this,a=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-a-b.getHeight();d.maxHeight=Math.max(a,c)-5},onBeforeSelect:function(c,b,a){return this.fireEvent('beforeselect',this,b,a)},onBeforeDeselect:function(c,b,a){return this.fireEvent('beforedeselect',this,b,a)},onFocusChange:function(e,d,b){var c=this.picker,a;if(b){a=Ext.get(c.getNodeByRecord(b));if(a){this.ariaEl.dom.setAttribute('aria-activedescendant',a.id)}}},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getPicker().getSelectionModel();if(c){b.select(c);a.hasHadSelection=!0}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var a=this,e=a.store,b=a.valueCollection.getRange(),d=b[0],c=b.length;a.updateBindSelection(a.pickerSelectionModel,b);if(a.isSelectionUpdating()){return}Ext.suspendLayouts();a.lastSelection=b;if(c){a.lastSelectedRecords=b}a.updateValue();if(c&&(!a.multiSelect&&e.contains(d)||a.collapseOnSelect||!e.getCount())){a.updatingValue=!0;a.collapse();a.updatingValue=!1}Ext.resumeLayouts(!0);if(c&&!a.suspendCheckChange){if(!a.multiSelect){b=d}a.fireEvent('select',a,b)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var a=this.getPicker().getNavigationModel();if(a){a.enable()}this.doAutoSelect()},onCollapse:function(){var a=this.getPicker().getNavigationModel();if(a){a.disable()}if(this.updatingValue){this.doQueryTask.cancel()}},select:function(b,e){var a=this,d=a.picker,c;if(b&&b.isModel&&e===!0&&d){c=!d.getSelectionModel().isSelected(b)}if(!c){a.suspendEvent('select')}a.setValue(b);a.resumeEvent('select')},findRecord:function(c,d){var b=this.store,a=b.findExact(c,d);return a!==-1?b.getAt(a):!1},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=!1;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=!1;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,!0)}},setValue:function(b){var a=this;if(b!=null){return a.doSetValue(b)}else {a.suspendEvent('select');a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.endUpdate();a.lastSelectedRecords=null;a.resumeEvent('select')}},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(c,p){var a=this,f=a.getStore(),v=f.getModel(),e=[],u=[],r=a.autoLoadOnValue,m=f.getCount()>0||f.isLoaded(),l=f.hasPendingLoad(),o=r&&!m&&!l,t=a.forceSelection,n=a.pickerSelectionModel,s=a.displayField===a.valueField,j=f.isEmptyStore,k=a.lastSelection,d,h,b,i,g,q;if(l||o||!m||j){if(!c.isModel){if(p){a.value=Ext.Array.from(a.value).concat(c)}else {a.value=c}a.setHiddenValue(a.value);a.setRawValue(s?c:'')}if(o&&!j){f.load()}if(!c.isModel||j){return a}}c=p?Ext.Array.from(a.value).concat(c):Ext.Array.from(c);for(d=0,h=c.length;d0){h.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:'input',type:'hidden',name:i}));a=1;g=d.firstChild}while(a>c){d.removeChild(b[0]);--a}while(a','
    ','','
    ','{.}','
    ','
    ','
    ','
    ','
    ','
    ','','
    ','
    ','','
    ','
    ','','
    ','{.}','
    ','
    ','
    ','
    ','','
    {%','var me=values.$comp, okBtn=me.okBtn, cancelBtn=me.cancelBtn;','okBtn.ownerLayout = cancelBtn.ownerLayout = me.componentLayout;','okBtn.ownerCt = cancelBtn.ownerCt = me;','Ext.DomHelper.generateMarkup(okBtn.getRenderTree(), out);','Ext.DomHelper.generateMarkup(cancelBtn.getRenderTree(), out);','%}
    ','
    ',''],okText:'OK',cancelText:'Cancel',baseCls:'x-monthpicker',showButtons:!0,footerButtonUI:'default',measureWidth:35,measureMaxHeight:20,smallCls:'x-monthpicker-small',totalYears:10,yearOffset:5,monthOffset:6,initComponent:function(){var a=this;a.selectedCls=a.baseCls+'-selected';if(a.small){a.addCls(a.smallCls)}a.setValue(a.value);a.activeYear=a.getYear((new Date()).getFullYear()-4,-4);if(a.showButtons){a.okBtn=new Ext.button.Button({ui:a.footerButtonUI,text:a.okText,handler:a.onOkClick,scope:a});a.cancelBtn=new Ext.button.Button({ui:a.footerButtonUI,text:a.cancelText,handler:a.onCancelClick,scope:a})}Ext.Component.prototype.initComponent.call(this)},beforeRender:function(){var a=this,b=0,f=[],c=Ext.Date.getShortMonthName,d=a.monthOffset,e=a.monthMargin,g='';if(a.padding&&!a.width){a.cacheWidth()}Ext.Component.prototype.beforeRender.call(this);for(;bb.measureMaxHeight){--a;c.setStyle('margin','0 '+a+'px')}return a},getLargest:function(b){var a=0;this.months.each(function(d){var c=d.getHeight();if(c>a){a=c}});return a},setValue:function(b){var a=this,d=a.activeYear,c;if(!b){a.value=[null,null]}else {if(Ext.isDate(b)){a.value=[b.getMonth(),b.getFullYear()]}else {a.value=[b[0],b[1]]}}if(a.rendered){c=a.value[1];if(c!==null){if(cd+a.yearOffset){a.activeYear=c-a.yearOffset+1}}a.updateBody()}return a},getValue:function(){return this.value},hasSelection:function(){var a=this.value;return a[0]!==null&&a[1]!==null},getYears:function(){var e=this,b=e.yearOffset,c=e.activeYear,f=c+b,a=c,d=[];for(;a','
    ','','
    {%this.renderMonthBtn(values, out)%}
    ','','
    ','','','','','','','','','','','','{#:this.isEndOfWeek}','','','','','
    ','','
    ','
    ','
    ','','','','
    {todayText}.
    ','
    {ariaMinText}.
    ','
    {ariaMaxText}.
    ','
    {ariaDisabledDaysText}.
    ','
    {ariaDisabledDatesText}.
    ','',{firstInitial:function(a){return Ext.picker.Date.prototype.getDayInitial(a)},isEndOfWeek:function(a){a--;var b=a%7===0&&a!==0;return b?'':''},renderTodayBtn:function(a,b){Ext.DomHelper.generateMarkup(a.$comp.todayBtn.getRenderTree(),b)},renderMonthBtn:function(a,b){Ext.DomHelper.generateMarkup(a.$comp.monthBtn.getRenderTree(),b)}}],initHour:12,numDays:42,initComponent:function(){var a=this,b=Ext.Date.clearTime;a.selectedCls=a.baseCls+'-selected';a.disabledCellCls=a.baseCls+'-disabled';a.prevCls=a.baseCls+'-prevday';a.activeCls=a.baseCls+'-active';a.cellCls=a.baseCls+'-cell';a.nextCls=a.baseCls+'-prevday';a.todayCls=a.baseCls+'-today';if(!a.format){a.format=Ext.Date.defaultFormat}if(!a.dayNames){a.dayNames=Ext.Date.dayNames}a.dayNames=a.dayNames.slice(a.startDay).concat(a.dayNames.slice(0,a.startDay));Ext.Component.prototype.initComponent.call(this);a.value=a.value?b(a.value,!0):b(new Date());a.initDisabledDays()},getRefOwner:function(){return this.pickerField||Ext.Component.prototype.getRefOwner.call(this)},getRefItems:function(){var a=[],b=this.monthBtn,c=this.todayBtn;if(b){a.push(b)}if(c){a.push(c)}return a},beforeRender:function(){var a=this,b=Ext.String.htmlEncode,d=new Array(a.numDays),c=Ext.Date.format(new Date(),a.format);if(a.padding&&!a.width){a.cacheWidth()}a.monthBtn=new Ext.button.Split({ownerCt:a,ownerLayout:a.getComponentLayout(),text:'',tooltip:a.monthYearText,tabIndex:-1,ariaRole:'presentation',listeners:{click:a.doShowMonthPicker,arrowclick:a.doShowMonthPicker,scope:a}});if(a.showToday){a.todayBtn=new Ext.button.Button({ui:a.footerButtonUI,ownerCt:a,ownerLayout:a.getComponentLayout(),text:Ext.String.format(a.todayText,c),tooltip:Ext.String.format(a.todayTip,c),tooltipType:'title',tabIndex:-1,ariaRole:'presentation',handler:a.selectToday,scope:a})}Ext.Component.prototype.beforeRender.call(this);Ext.applyIf(a,{renderData:{}});Ext.apply(a.renderData,{dayNames:a.dayNames,showToday:a.showToday,prevText:b(a.prevText),nextText:b(a.nextText),todayText:b(a.todayText),ariaMinText:b(a.ariaMinText),ariaMaxText:b(a.ariaMaxText),ariaDisabledDaysText:b(a.ariaDisabledDaysText),ariaDisabledDatesText:b(a.ariaDisabledDatesText),days:d});a.protoEl.unselectable()},cacheWidth:function(){var a=this,b=a.parseBox(a.padding),c=Ext.getBody().createChild({cls:a.baseCls+' '+a.borderBoxCls,style:'position:absolute;top:-1000px;left:-1000px;'});a.self.prototype.width=c.getWidth()+b.left+b.right;c.destroy()},onRender:function(b,c){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);a.cells=a.eventEl.select('tbody td');a.textNodes=a.eventEl.query('tbody td div');a.eventEl.set({'aria-labelledby':a.monthBtn.id});a.mon(a.eventEl,{scope:a,mousewheel:a.handleMouseWheel,click:{fn:a.handleDateClick,delegate:'div.'+a.baseCls+'-date'}})},initEvents:function(){var a=this,c=a.pickerField,b=Ext.Date,d=b.DAY;Ext.Component.prototype.initEvents.call(this);if(c){a.el.on('mousedown',a.onMouseDown,a)}a.monthBtn.el.on('mousedown',a.onMouseDown,a);a.prevRepeater=new Ext.util.ClickRepeater(a.prevEl,{handler:a.showPrevMonth,scope:a,mousedownStopEvent:!0});a.nextRepeater=new Ext.util.ClickRepeater(a.nextEl,{handler:a.showNextMonth,scope:a,mousedownStopEvent:!0});a.keyNav=new Ext.util.KeyNav(a.eventEl,Ext.apply({scope:a,left:function(c){if(c.ctrlKey){c.preventDefault();a.showPrevMonth()}else {a.update(b.add(a.activeDate,d,-1))}},right:function(c){if(c.ctrlKey){c.preventDefault();a.showNextMonth()}else {a.update(b.add(a.activeDate,d,1))}},up:function(c){if(c.ctrlKey){a.showNextYear()}else {a.update(b.add(a.activeDate,d,-7))}},down:function(c){if(c.ctrlKey){a.showPrevYear()}else {a.update(b.add(a.activeDate,d,7))}},pageUp:function(b){if(b.ctrlKey){a.showPrevYear()}else {a.showPrevMonth()}},pageDown:function(b){if(b.ctrlKey){a.showNextYear()}else {a.showNextMonth()}},tab:function(b){a.handleTabKey(b);return !0},enter:function(b){a.handleDateClick(b,a.activeCell.firstChild)},space:function(){a.setValue(new Date(a.activeCell.firstChild.dateValue));var d=a.startValue,e=a.value,b;if(c){b=c.getValue();if(b&&d&&b.getTime()===e.getTime()){c.setValue(d)}else {c.setValue(e)}}},home:function(c){a.update(b.getFirstDateOfMonth(a.activeDate))},end:function(c){a.update(b.getLastDateOfMonth(a.activeDate))}},a.keyNavConfig));if(a.disabled){a.syncDisabled(!0)}a.update(a.value)},onMouseDown:function(a){a.preventDefault()},handleTabKey:function(d){var a=this,b=a.getSelectedDate(a.activeDate),c=a.handler;if(!a.disabled&&b.dateValue&&!Ext.fly(b.parentNode).hasCls(a.disabledCellCls)){a.setValue(new Date(b.dateValue));a.fireEvent('select',a,a.value);if(c){c.call(a.scope||a,a,a.value)}a.onSelect()}else {a.fireEventArgs('tabout',[a])}},getSelectedDate:function(g){var e=this,i=g.getTime(),d=e.cells,h=e.selectedCls,c=d.elements,f=c.length,b,a;d.removeCls(h);for(a=0;a0){this.showPrevMonth()}else {if(a<0){this.showNextMonth()}}}},handleDateClick:function(d,b){var a=this,c=a.handler;d.stopEvent();if(!a.disabled&&b.dateValue&&!Ext.fly(b.parentNode).hasCls(a.disabledCellCls)){a.setValue(new Date(b.dateValue));a.fireEvent('select',a,a.value);if(c){c.call(a.scope||a,a,a.value)}a.onSelect()}},onSelect:function(){if(this.hideOnSelect){this.hide()}},selectToday:function(){var a=this,c=a.todayBtn,b=a.handler;if(c&&!c.disabled){a.setValue(Ext.Date.clearTime(new Date()));a.fireEvent('select',a,a.value);if(b){b.call(a.scope||a,a,a.value)}a.onSelect()}return a},selectedUpdate:function(g){var b=this,h=g.getTime(),d=b.cells,e=b.selectedCls,c,f=d.getCount(),a;b.eventEl.dom.setAttribute('aria-busy','true');a=b.activeCell;if(a){Ext.fly(a).removeCls(e);a.setAttribute('aria-selected',!1)}for(c=0;cu||j&&k&&j.test(b.dateFormat(g,k))||l&&l.indexOf(g.getDay())!==-1;if(!a.disabled){a.todayBtn.setDisabled(r)}}s=function(m,g){var d=z[m],e=[];if(!d.hasAttribute('id')){d.setAttribute('id',a.id+'-cell-'+m)}f=+b.clearTime(c,!0);d.firstChild.dateValue=f;d.setAttribute('aria-label',b.format(c,B));d.removeAttribute('aria-describedby');d.removeAttribute('data-qtip');if(f===A){g+=' '+a.todayCls;e.push(a.id+'-todayText')}if(f===x){a.activeCell=d;a.eventEl.dom.setAttribute('aria-activedescendant',d.id);d.setAttribute('aria-selected',!0);g+=' '+a.selectedCls;a.fireEvent('highlightitem',a,d)}else {d.setAttribute('aria-selected',!1)}if(fu){g+=' '+i;e.push(a.id+'-ariaMaxText');d.setAttribute('data-qtip',a.maxText)}else {if(l&&l.indexOf(c.getDay())!==-1){d.setAttribute('data-qtip',D);e.push(a.id+'-ariaDisabledDaysText');g+=' '+i}else {if(j&&k){p=b.dateFormat(c,k);if(j.test(p)){d.setAttribute('data-qtip',y.replace('%0',p));e.push(a.id+'-ariaDisabledDatesText');g+=' '+i}}}}}if(e.length){d.setAttribute('aria-describedby',e.join(' '))}d.className=g+' '+a.cellCls};a.eventEl.dom.setAttribute('aria-busy','true');for(;d=t){m=++E;n=a.nextCls}else {m=d-e+1;n=a.activeCls}}w[d].innerHTML=m;c.setDate(c.getDate()+1);s(d,n)}a.eventEl.dom.removeAttribute('aria-busy');a.monthBtn.setText(Ext.Date.format(h,a.monthYearFormat))},update:function(c,d){var a=this,b=a.activeDate;if(a.rendered){a.activeDate=c;if(!d&&b&&a.el&&b.getMonth()===c.getMonth()&&b.getFullYear()===c.getFullYear()){a.selectedUpdate(c,b)}else {a.fullUpdate(c,b)}}return a},beforeDestroy:function(){var a=this;if(a.rendered){Ext.destroy(a.keyNav,a.monthPicker,a.monthBtn,a.nextRepeater,a.prevRepeater,a.todayBtn,a.todayElSpan);delete a.textNodes;delete a.cells.elements}Ext.Component.prototype.beforeDestroy.call(this)},privates:{finishRenderChildren:function(){var a=this;Ext.Component.prototype.finishRenderChildren.call(this);a.monthBtn.finishRender();if(a.showToday){a.todayBtn.finishRender()}},getFocusEl:function(){return this.eventEl},syncDisabled:function(b){var a=this,c=a.keyNav;if(c){c.setDisabled(b);a.prevRepeater.setDisabled(b);a.nextRepeater.setDisabled(b);if(a.todayBtn){a.todayBtn.setDisabled(b)}}}}},0,['datepicker'],['component','box','datepicker'],{'component':!0,'box':!0,'datepicker':!0},['widget.datepicker'],0,[Ext.picker,'Date',Ext,'DatePicker'],0);Ext.cmd.derive('Ext.form.field.Date',Ext.form.field.Picker,{alternateClassName:['Ext.form.DateField','Ext.form.Date'],format:'m/d/Y',ariaFormat:'M j Y',altFormats:'m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j',disabledDaysText:'Disabled',ariaDisabledDaysText:'This day of week is disabled',disabledDatesText:'Disabled',ariaDisabledDatesText:'This date cannot be selected',minText:'The date in this field must be equal to or after {0}',ariaMinText:'The date must be equal to or after {0}',maxText:'The date in this field must be equal to or before {0}',ariaMaxText:'The date must be equal to or before {0}',invalidText:'{0} is not a valid date - it must be in the format {1}',formatText:'Expected date format: {0}',triggerCls:'x-form-date-trigger',showToday:!0,useStrict:undefined,initTime:'12',initTimeFormat:'H',matchFieldWidth:!1,startDay:0,valuePublishEvent:['select','blur'],ariaRole:'combobox',initComponent:function(){var a=this,d=Ext.isString,c,b;c=a.minValue;b=a.maxValue;if(d(c)){a.minValue=a.parseDate(c)}if(d(b)){a.maxValue=a.parseDate(b)}a.disabledDatesRE=null;a.initDisabledDays();Ext.form.field.Picker.prototype.initComponent.call(this)},initValue:function(){var a=this,b=a.value;if(Ext.isString(b)){a.value=a.rawToValue(b)}Ext.form.field.Picker.prototype.initValue.call(this)},initDisabledDays:function(){if(this.disabledDates){var c=this.disabledDates,f=c.length-1,d='(?:',a,e=c.length,b;for(a=0;a0?b:this.formatDate(this.processRawValue(this.getRawValue()));var a=this,e=Ext.String.format,l=Ext.Date.clearTime,c=Ext.form.field.Picker.prototype.getErrors.call(this,b),d=a.disabledDays,k=a.disabledDatesRE,g=a.minValue,f=a.maxValue,o=d?d.length:0,j=0,m,h,n,i;if(b===null||b.length<1){return c}m=b;b=a.parseDate(b);if(!b){c.push(e(a.invalidText,m,Ext.Date.unescapeFormat(a.format)));return c}i=b.getTime();if(g&&il(f).getTime()){c.push(e(a.maxText,a.formatDate(f)))}if(d){n=b.getDay();for(;j style="{fieldStyle}"',' class="{fieldCls} {fieldCls}-{ui}">{value}',{compiled:!0,disableFormats:!0}],ariaRole:undefined,focusable:!1,readOnly:!0,fieldCls:'x-form-display-field',fieldBodyCls:'x-form-display-field-body',htmlEncode:!1,noWrap:!1,validateOnChange:!1,initEvents:Ext.emptyFn,submitValue:!1,getValue:function(){return this.value},valueToRaw:function(a){if(a||a===0||a===!1){return a}else {return ''}},isDirty:function(){return !1},isValid:Ext.returnTrue,validate:Ext.returnTrue,getRawValue:function(){return this.rawValue},setRawValue:function(b){var a=this;b=Ext.valueFrom(b,'');a.rawValue=b;if(a.rendered){a.inputEl.dom.innerHTML=a.getDisplayValue();a.updateLayout()}return b},getDisplayValue:function(){var a=this,c=this.getRawValue(),b;if(a.renderer){b=a.renderer.call(a.scope||a,c,a)}else {b=a.htmlEncode?Ext.util.Format.htmlEncode(c):c}return b},getSubTplData:function(b){var a=Ext.form.field.Base.prototype.getSubTplData.apply(this,arguments);a.value=this.getDisplayValue();return a}},0,['displayfield'],['component','box','field','displayfield'],{'component':!0,'box':!0,'field':!0,'displayfield':!0},['widget.displayfield'],0,[Ext.form.field,'Display',Ext.form,'DisplayField',Ext.form,'Display'],0);Ext.cmd.derive('Ext.tip.Tip',Ext.panel.Panel,{alternateClassName:'Ext.Tip',minWidth:40,maxWidth:500,shadow:'sides',defaultAlign:'tl-bl?',constrainPosition:!0,autoRender:!0,hidden:!0,baseCls:'x-tip',focusOnToFront:!1,maskOnDisable:!1,closeAction:'hide',alwaysFramed:!0,frameHeader:!1,initComponent:function(){var a=this;a.floating=Ext.apply({},{shadow:a.shadow,constrain:a.constrainPosition},a.self.prototype.floating);Ext.panel.Panel.prototype.initComponent.apply(this,arguments);a.constrain=a.constrain||a.constrainPosition},showAt:function(b){var a=this;Ext.panel.Panel.prototype.showAt.apply(this,arguments);if(a.isVisible()){a.setPagePosition(b[0],b[1]);if(a.constrainPosition||a.constrain){a.doConstrain()}a.toFront(!0)}},privates:{initDraggable:function(){var a=this;a.draggable={el:a.getDragEl(),delegate:a.header.el,constrain:a,constrainTo:a.el.dom.parentNode};Ext.Component.prototype.initDraggable.call(a)}},ghost:undefined,unghost:undefined},0,['tip'],['component','box','container','panel','tip'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tip':!0},['widget.tip'],0,[Ext.tip,'Tip',Ext,'Tip'],0);Ext.cmd.derive('Ext.tip.ToolTip',Ext.tip.Tip,{alternateClassName:'Ext.ToolTip',autoHide:!0,showDelay:500,hideDelay:200,dismissDelay:5000,trackMouse:!1,anchorToTarget:!0,anchorOffset:0,targetCounter:0,quickShowInterval:250,hideAction:'hide',fadeOutDuration:1000,ariaRole:'tooltip',initComponent:function(){var a=this;Ext.tip.Tip.prototype.initComponent.apply(this,arguments);a.lastActive=new Date();a.setTarget(a.target);a.origAnchor=a.anchor},onRender:function(c,b){var a=this;Ext.tip.Tip.prototype.onRender.apply(this,arguments);a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl=a.el.createChild({role:'presentation',cls:'x-tip-anchor '+a.anchorCls})},setTarget:function(d){var a=this,b=Ext.get(d),c;if(a.target){c=Ext.get(a.target);if(Ext.supports.Touch){a.mun(c,'tap',a.onTargetOver,a)}else {a.mun(c,{mouseover:a.onTargetOver,mouseout:a.onTargetOut,mousemove:a.onMouseMove,scope:a})}}a.target=b;if(b){if(Ext.supports.Touch){a.mon(b,{tap:a.onTargetOver,scope:a})}else {a.mon(b,{mouseover:a.onTargetOver,mouseout:a.onTargetOut,mousemove:a.onMouseMove,scope:a})}}if(a.anchor){a.anchorTarget=a.target}},onMouseMove:function(c){var a=this,d,b;if(!a.target||a.target.contains(c.target)){d=a.delegate?c.getTarget(a.delegate):a.triggerElement=!0;if(d){a.targetXY=c.getXY();if(d===a.triggerElement){if(!a.hidden&&a.trackMouse){b=a.getTargetXY();if(a.constrainPosition){b=a.el.adjustForConstraints(b,a.el.parent())}a.setPagePosition(b)}}else {a.hide();a.lastActive=new Date(0);a.onTargetOver(c)}}else {if(!a.closable&&a.isVisible()&&a.autoHide!==!1){a.delayHide()}}}},getTargetXY:function(){var a=this,c,d,h,m,l,f,e,j,k,b,g,i;if(a.delegate){a.anchorTarget=a.triggerElement}if(a.anchor){a.targetCounter++;d=a.getOffsets();h=a.anchorToTarget&&!a.trackMouse?a.getAlignToXY(a.anchorTarget,a.getAnchorAlign()):a.targetXY;m=Ext.Element.getViewportWidth()-5;l=Ext.Element.getViewportHeight()-5;f=document.documentElement;e=document.body;j=(f.scrollLeft||e.scrollLeft||0)+5;k=(f.scrollTop||e.scrollTop||0)+5;b=[h[0]+d[0],h[1]+d[1]];g=a.getSize();i=a.constrainPosition;a.anchorEl.removeCls(a.anchorCls);if(a.targetCounter<2&&i){if(b[0]m){if(a.anchorToTarget){a.defaultAlign='r-l';if(a.mouseOffset){a.mouseOffset[0]*=-1}}a.anchor='right';return a.getTargetXY()}if(b[1]l){if(a.anchorToTarget){a.defaultAlign='b-t';if(a.mouseOffset){a.mouseOffset[1]*=-1}}a.anchor='bottom';return a.getTargetXY()}}a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl.addCls(a.anchorCls);a.targetCounter=0;return b}else {c=a.getMouseOffset();return a.targetXY?[a.targetXY[0]+c[0],a.targetXY[1]+c[1]]:c}},calculateConstrainedPosition:function(e){var a=this,d,b,c;if(!e&&a.isContainedFloater()){d=a.isVisible();if(!d){a.el.show()}b=a.getTargetXY();if(!d){a.el.hide()}c=a.floatParent.getTargetEl().getViewRegion();b[0]-=c.left;b[1]-=c.top}else {b=a.callOverridden(arguments)}return b},getMouseOffset:function(){var a=this,b=a.anchor?[0,0]:[15,18];if(a.mouseOffset){b[0]+=a.mouseOffset[0];b[1]+=a.mouseOffset[1]}return b},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity('')}})},getAnchorPosition:function(){var a=this,b;if(a.anchor){a.tipAnchor=a.anchor.charAt(0)}else {b=a.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);a.tipAnchor=b[1].charAt(0)}switch(a.tipAnchor){case 't':return 'top';case 'b':return 'bottom';case 'r':return 'right';}return 'left'},getAnchorAlign:function(){switch(this.anchor){case 'top':return 'tl-bl';case 'left':return 'tl-tr';case 'right':return 'tr-tl';default:return 'bl-tl';}},getOffsets:function(){var b=this,c,a,d=b.getAnchorPosition().charAt(0);if(b.anchorToTarget&&!b.trackMouse){switch(d){case 't':a=[0,9];break;case 'b':a=[0,-13];break;case 'r':a=[-13,0];break;default:a=[9,0];break;}}else {switch(d){case 't':a=[-15-b.anchorOffset,30];break;case 'b':a=[-19-b.anchorOffset,-13-b.el.dom.offsetHeight];break;case 'r':a=[-15-b.el.dom.offsetWidth,-13-b.anchorOffset];break;default:a=[25,-13-b.anchorOffset];break;}}c=b.getMouseOffset();a[0]+=c[0];a[1]+=c[1];return a},onTargetOver:function(b){var a=this,d=a.delegate,c;if(a.disabled||b.within(a.target.dom,!0)){return}c=d?b.getTarget(d):!0;if(c){a.triggerElement=c;a.triggerEvent=b;a.clearTimer('hide');a.targetXY=b.getXY();a.delayShow()}},delayShow:function(c){var a=this,b=a.el&&(c===!1||!a.trackMouse)&&a.getTargetXY();if(a.hidden&&!a.showTimer){if(Ext.Date.getElapsed(a.lastActive)','',' ','',''],initComponent:function(){var a=this;Ext.Component.prototype.initComponent.apply(this,arguments);if(a.handler){a.on('select',a.handler,a.scope,!0)}},initRenderData:function(){var a=this;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{itemCls:a.itemCls,colors:a.colors})},onRender:function(){var a=this,b=a.clickEvent;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el,b,a.handleClick,a,{delegate:'a'});if(b!=='click'){a.mon(a.el,'click',Ext.emptyFn,a,{delegate:'a',stopEvent:!0})}},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);if(a.value){b=a.value;a.value=null;a.select(b,!0)}},handleClick:function(c){var a=this,b;c.stopEvent();if(!a.disabled){b=c.currentTarget.className.match(a.colorRe)[1];a.select(b.toUpperCase())}},select:function(b,g){var a=this,e=a.selectedCls,f=a.value,d,c;b=b.replace('#','');if(!a.rendered){a.value=b;return}if(b!==f||a.allowReselect){d=a.el;if(a.value){c=d.down('a.color-'+f,!0);Ext.fly(c).removeCls(e)}c=d.down('a.color-'+b,!0);Ext.fly(c).addCls(e);a.value=b;if(g!==!0){a.fireEvent('select',a,b)}}},clear:function(){var a=this,b=a.value,c;if(b&&a.rendered){c=a.el.down('a.color-'+b,!0);Ext.fly(c).removeCls(a.selectedCls)}a.value=null},getValue:function(){return this.value||null}},0,['colorpicker'],['component','box','colorpicker'],{'component':!0,'box':!0,'colorpicker':!0},['widget.colorpicker'],0,[Ext.picker,'Color',Ext,'ColorPalette'],0);Ext.cmd.derive('Ext.layout.component.field.HtmlEditor',Ext.layout.component.field.FieldContainer,{type:'htmleditor',naturalHeight:150,naturalWidth:300,beginLayout:function(a){var b=this.owner,c;if(Ext.isGecko){c=b.textareaEl.dom;this.lastValue=c.value;c.value=''}Ext.layout.component.field.FieldContainer.prototype.beginLayout.apply(this,arguments);a.toolbarContext=a.context.getCmp(b.toolbar);a.inputCmpContext=a.context.getCmp(b.inputCmp);a.bodyCellContext=a.getEl('bodyEl');a.textAreaContext=a.getEl('textareaEl');a.iframeContext=a.getEl('iframeEl')},beginLayoutCycle:function(a){var b=this,e=a.widthModel,c=a.heightModel,h=b.owner,f=h.iframeEl,d=h.textareaEl,g=c.natural||c.shrinkWrap?b.naturalHeight:'';Ext.layout.component.field.FieldContainer.prototype.beginLayoutCycle.apply(this,arguments);if(e.shrinkWrap){f.setStyle('width','');d.setStyle('width','')}else {if(e.natural){a.bodyCellContext.setWidth(b.naturalWidth)}}f.setStyle('height',g);d.setStyle('height',g)},finishedLayout:function(){var a=this.owner;Ext.layout.component.field.FieldContainer.prototype.finishedLayout.apply(this,arguments);if(Ext.isGecko){a.textareaEl.dom.value=this.lastValue}}},0,0,0,0,['layout.htmleditor'],0,[Ext.layout.component.field,'HtmlEditor'],0);Ext.cmd.derive('Ext.toolbar.Separator',Ext.toolbar.Item,{alternateClassName:'Ext.Toolbar.Separator',baseCls:'x-toolbar-separator',ariaRole:'separator'},0,['tbseparator'],['component','box','tbitem','tbseparator'],{'component':!0,'box':!0,'tbitem':!0,'tbseparator':!0},['widget.tbseparator'],0,[Ext.toolbar,'Separator',Ext.Toolbar,'Separator'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Menu',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Menu',noItemsMenuText:'',menuCls:'x-box-menu',constructor:function(a){var b=this;Ext.layout.container.boxOverflow.None.prototype.constructor.call(this,a);b.menuItems=[]},beginLayout:function(a){Ext.layout.container.boxOverflow.None.prototype.beginLayout.call(this,a);this.clearOverflow(a)},beginLayoutCycle:function(a,b){Ext.layout.container.boxOverflow.None.prototype.beginLayoutCycle.call(this,a,b);if(!b){this.clearOverflow(a);this.layout.cacheChildItems(a)}},onRemove:function(a){Ext.Array.remove(this.menuItems,a)},clearItem:function(a){var b=a.menu;if(a.isButton&&b){a.setMenu(b,!1)}},getSuffixConfig:function(){var a=this,c=a.layout,b=c.owner,d=b.id;a.menu=new Ext.menu.Menu({listeners:{scope:a,beforeshow:a.beforeMenuShow}});a.menuTrigger=new Ext.button.Button({id:d+'-menu-trigger',cls:a.menuCls+'-after x-toolbar-item',plain:b.usePlainButtons,ownerCt:b,ownerLayout:c,iconCls:'x-'+a.getOwnerType(b)+'-more-icon',ui:b.defaultButtonUI||'default',menu:a.menu,showEmptyMenu:!0,getSplitCls:function(){return ''}});return a.menuTrigger.getRenderTree()},getOverflowCls:function(a){return this.menuCls+'-body-'+a},handleOverflow:function(b){var a=this,c=a.layout;a.showTrigger(b);if(c.direction!=='vertical'){a.menuTrigger.setLocalY((b.state.boxPlan.maxSize-a.menuTrigger[c.names.getHeight]())/2)}return {reservedSpace:a.triggerTotalWidth}},captureChildElements:function(){var b=this,a=b.menuTrigger,c=b.layout.names;if(a.rendering){a.finishRender();b.triggerTotalWidth=a[c.getWidth]()+a.el.getMargin(c.parallelMargins)}},clearOverflow:function(h){var b=this,d=b.menuItems,g=d.length,e=b.layout.owner,f=e._asLayoutRoot,a,c;e.suspendLayouts();b.captureChildElements();b.hideTrigger();e.resumeLayouts();for(c=0;ck){h=d.target;b.menuItems.push(h);h.hide()}}o.resumeLayouts()},hideTrigger:function(){var a=this.menuTrigger;if(a){a.hide()}},beforeMenuShow:function(a){var e=this,g=e.menuItems,d=0,h=g.length,b,c,f=function(b,c){return b.isXType('buttongroup')&&!(c instanceof Ext.toolbar.Separator)};a.suspendLayouts();a.removeAll(!1);for(;d','{[Ext.util.Format.htmlEncode(values.value)]}','','{afterTextAreaTpl}','{beforeIFrameTpl}','','{afterIFrameTpl}',{disableFormats:!0}],stretchInputElFixed:!0,subTplInsertions:['beforeTextAreaTpl','afterTextAreaTpl','beforeIFrameTpl','afterIFrameTpl','iframeAttrTpl','inputAttrTpl'],enableFormat:!0,enableFontSize:!0,enableColors:!0,enableAlignments:!0,enableLists:!0,enableSourceEdit:!0,enableLinks:!0,enableFont:!0,createLinkText:'Please enter the URL for the link:',defaultLinkValue:'http://',fontFamilies:['Arial','Courier New','Tahoma','Times New Roman','Verdana'],defaultValue:Ext.isOpera?' ':'​',extraFieldBodyCls:'x-html-editor-wrap',defaultButtonUI:'default-toolbar',initialized:!1,activated:!1,sourceEditMode:!1,iframePad:3,hideMode:'offsets',maskOnDisable:!0,containerElCls:'x-html-editor-container',reStripQuotes:/^['"]*|['"]*$/g,textAlignRE:/text-align:(.*?);/i,safariNonsenseRE:/\sclass="(?:Apple-style-span|Apple-tab-span|khtml-block-placeholder)"/gi,nonDigitsRE:/\D/g,initComponent:function(){var a=this;a.items=[a.createToolbar(),a.createInputCmp()];a.layout={type:'vbox',align:'stretch'};if(a.value==null){a.value=''}Ext.form.FieldContainer.prototype.initComponent.apply(this,arguments);a.initField()},createInputCmp:function(){this.inputCmp=Ext.widget(this.getInputCmpCfg());return this.inputCmp},getInputCmpCfg:function(){var a=this,c=a.id+'-inputCmp',b={id:c,name:a.name,textareaCls:a.textareaCls+' x-hidden',value:a.value,iframeName:Ext.id(),iframeSrc:Ext.SSL_SECURE_URL,iframeCls:'x-htmleditor-iframe'};a.getInsertionRenderData(b,a.subTplInsertions);return {flex:1,xtype:'component',tpl:a.getTpl('componentTpl'),childEls:['iframeEl','textareaEl'],id:c,cls:'x-html-editor-input',data:b}},createToolbar:function(){this.toolbar=Ext.widget(this.getToolbarCfg());return this.toolbar},getToolbarCfg:function(){var a=this,b=[],e,f=Ext.quickTipsActive&&Ext.tip.QuickTipManager.isEnabled(),c='x-',g,d;function btn(b,g,e){return {itemId:b,cls:c+'btn-icon',iconCls:c+'edit-'+b,enableToggle:g!==!1,scope:a,handler:e||a.relayBtnCmd,clickEvent:'mousedown',tooltip:f?a.buttonTips[b]||d:d,overflowText:a.buttonTips[b].title||d,tabIndex:-1}}if(a.enableFont&&!Ext.isSafari2){g=Ext.widget('component',{itemId:'fontSelect',renderTpl:[''],childEls:['selectEl'],afterRender:function(){a.fontSelect=this.selectEl;Ext.Component.prototype.afterRender.apply(this,arguments)},onDisable:function(){var a=this.selectEl;if(a){a.dom.disabled=!0}Ext.Component.prototype.onDisable.apply(this,arguments)},onEnable:function(){var a=this.selectEl;if(a){a.dom.disabled=!1}Ext.Component.prototype.onEnable.apply(this,arguments)},listeners:{change:function(){a.win.focus();a.relayCmd('fontName',a.fontSelect.dom.value);a.deferFocus()},element:'selectEl'}});b.push(g,'-')}if(a.enableFormat){b.push(btn('bold'),btn('italic'),btn('underline'))}if(a.enableFontSize){b.push('-',btn('increasefontsize',!1,a.adjustFont),btn('decreasefontsize',!1,a.adjustFont))}if(a.enableColors){b.push('-',{itemId:'forecolor',cls:c+'btn-icon',iconCls:c+'edit-forecolor',overflowText:a.buttonTips.forecolor.title,tooltip:f?a.buttonTips.forecolor||d:d,tabIndex:-1,menu:Ext.widget('menu',{plain:!0,items:[{xtype:'colorpicker',allowReselect:!0,focus:Ext.emptyFn,value:'000000',plain:!0,clickEvent:'mousedown',handler:function(c,b){a.relayCmd('forecolor',Ext.isWebKit||Ext.isIE?'#'+b:b);this.up('menu').hide()}}]})},{itemId:'backcolor',cls:c+'btn-icon',iconCls:c+'edit-backcolor',overflowText:a.buttonTips.backcolor.title,tooltip:f?a.buttonTips.backcolor||d:d,tabIndex:-1,menu:Ext.widget('menu',{plain:!0,items:[{xtype:'colorpicker',focus:Ext.emptyFn,value:'FFFFFF',plain:!0,allowReselect:!0,clickEvent:'mousedown',handler:function(c,b){if(Ext.isGecko){a.execCmd('useCSS',!1);a.execCmd('hilitecolor','#'+b);a.execCmd('useCSS',!0);a.deferFocus()}else {a.relayCmd(Ext.isOpera?'hilitecolor':'backcolor',Ext.isWebKit||Ext.isIE||Ext.isOpera?'#'+b:b)}this.up('menu').hide()}}]})})}if(a.enableAlignments){b.push('-',btn('justifyleft'),btn('justifycenter'),btn('justifyright'))}if(!Ext.isSafari2){if(a.enableLinks){b.push('-',btn('createlink',!1,a.createLink))}if(a.enableLists){b.push('-',btn('insertorderedlist'),btn('insertunorderedlist'))}if(a.enableSourceEdit){b.push('-',btn('sourceedit',!0,function(){a.toggleSourceEdit(!a.sourceEditMode)}))}}for(e=0;e',a.iframePad,b,a.defaultFont)},getEditorBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){return this.iframeEl.dom.contentDocument||this.getWin().document},getWin:function(){return this.iframeEl.dom.contentWindow||window.frames[this.iframeEl.dom.name]},initDefaultFont:function(){var b=this,h=0,c,a,f,e,d,i,g;if(!b.defaultFont){a=b.textareaEl.getStyle('font-family');a=Ext.String.capitalize(a.split(',')[0]);c=Ext.Array.clone(b.fontFamilies);Ext.Array.include(c,a);c.sort();b.defaultFont=a;f=b.down('#fontSelect').selectEl.dom;for(d=0,i=c.length;d'+a+''}}a=b.cleanHtml(a);if(b.fireEvent('beforesync',b,a)!==!1){if(Ext.isGecko&&c.value===''&&a==='
    '){a=''}if(c.value!==a){c.value=a;g=!0}b.fireEvent('sync',b,a);if(g){b.checkChange()}}}},getValue:function(){var a=this,b;if(!a.sourceEditMode){a.syncValue()}b=a.rendered?a.textareaEl.dom.value:a.value;a.value=b;return b},pushValue:function(){var a=this,b;if(a.initialized){b=a.textareaEl.dom.value||'';if(!a.activated&&b.length<1){b=a.defaultValue}if(a.fireEvent('beforepush',a,b)!==!1){a.getEditorBody().innerHTML=b;if(Ext.isGecko){a.setDesignMode(!1);a.setDesignMode(!0)}a.fireEvent('push',a,b)}}},focus:function(e,c){var a=this,d,b;if(c){if(!a.focusTask){a.focusTask=new Ext.util.DelayedTask(a.focus)}a.focusTask.delay(Ext.isNumber(c)?c:10,null,a,[e,!1])}else {if(e){if(a.textareaEl&&a.textareaEl.dom){d=a.textareaEl.dom.value}if(d&&d.length){a.execCmd('selectall',!0)}}b=a.getFocusEl();if(b&&b.focus){b.focus()}}return a},initEditor:function(){var a=this,e,f,d,c,b;if(a.destroying||a.destroyed){return}e=a.getEditorBody();if(!e){setTimeout(function(){a.initEditor()},10);return}f=a.textareaEl.getStyle(['font-size','font-family','background-image','background-repeat','background-color','color']);f['background-attachment']='fixed';e.bgProperties='fixed';Ext.DomHelper.applyStyles(e,f);d=a.getDoc();c=Ext.get(d);if(c){try{c.clearListeners()}catch(g){}b=a.onEditorEvent.bind(a);c.on({mousedown:b,dblclick:b,click:b,keyup:b,delegated:!1,buffer:100});b=a.onRelayedEvent;c.on({mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,delegated:!1,scope:a});if(Ext.isGecko){c.on('keypress',a.applyCommand,a)}if(a.fixKeys){c.on('keydown',a.fixKeys,a,{delegated:!1})}if(a.fixKeysAfter){c.on('keyup',a.fixKeysAfter,a,{delegated:!1})}if(Ext.isIE9){Ext.get(d.documentElement).on('focus',a.focus,a)}if(Ext.isIE8){c.on('focusout',function(){a.savedSelection=d.selection.type!=='None'?d.selection.createRange():null},a);c.on('focusin',function(){if(a.savedSelection){a.savedSelection.select()}},a)}Ext.getWin().on('beforeunload',a.beforeDestroy,a);d.editorInitialized=!0;a.initialized=!0;a.pushValue();a.setReadOnly(a.readOnly);a.fireEvent('initialize',a)}},beforeDestroy:function(){var a=this,d=a.monitorTask,b,c;if(d){Ext.TaskManager.stop(d)}if(a.rendered){Ext.getWin().un(a.beforeDestroy,a);b=a.getDoc();if(b){Ext.get(b).destroy();if(b.hasOwnProperty){for(c in b){try{if(b.hasOwnProperty(c)){delete b[c]}}catch(e){}}}}delete a.iframeEl;delete a.textareaEl;delete a.toolbar;delete a.inputCmp}Ext.form.FieldContainer.prototype.beforeDestroy.call(this)},onRelayedEvent:function(a){var b=this.iframeEl,c=Ext.fly(b).getTrueXY(),e=a.getXY(),d=a.getXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},onFirstFocus:function(){var a=this,b,c;a.activated=!0;a.disableItems(a.readOnly);if(Ext.isGecko){a.win.focus();b=a.win.getSelection();if(b.focusNode&&!a.getValue().length){c=b.getRangeAt(0);c.selectNodeContents(a.getEditorBody());c.collapse(!0);a.deferFocus()}try{a.execCmd('useCSS',!0);a.execCmd('styleWithCSS',!1)}catch(d){}}a.fireEvent('activate',a)},adjustFont:function(e){var b=e.getItemId()==='increasefontsize'?1:-1,a=this.getDoc().queryCommandValue('FontSize')||'2',d=Ext.isString(a)&&a.indexOf('px')!==-1,c;a=parseInt(a,10);if(d){if(a<=10){a=1+b}else {if(a<=13){a=2+b}else {if(a<=16){a=3+b}else {if(a<=18){a=4+b}else {if(a<=24){a=5+b}else {a=6+b}}}}}a=Ext.Number.constrain(a,1,6)}else {c=Ext.isSafari;if(c){b*=2}a=Math.max(1,a+b)+(c?'px':0)}this.relayCmd('FontSize',a)},onEditorEvent:function(){this.updateToolbar()},updateToolbar:function(){var a=this,c,i,h,g,b,d,f,e;if(a.readOnly){return}if(!a.activated){a.onFirstFocus();return}h=a.getToolbar().items.map;g=a.getDoc();if(a.enableFont&&!Ext.isSafari2){d=g.queryCommandValue('fontName');b=(d?d.split(',')[0].replace(a.reStripQuotes,''):a.defaultFont).toLowerCase();f=a.fontSelect.dom;if(b!==f.value||b!==d){f.value=b}}function updateButtons(){var a;for(c=0,i=arguments.length,b;c0){b=String.fromCharCode(b);switch(b){case 'b':a='bold';break;case 'i':a='italic';break;case 'u':a='underline';break;}if(a){c.win.focus();c.execCmd(a);c.deferFocus();d.preventDefault()}}}},insertAtCursor:function(j){var e=this,g=e.getWin(),d=e.getDoc(),b,a,h,c,i,f,k;if(e.activated){g.focus();if(g.getSelection){b=g.getSelection();if(b.getRangeAt&&b.rangeCount){a=b.getRangeAt(0);a.deleteContents();h=d.createElement('div');h.innerHTML=j;c=d.createDocumentFragment();while(i=h.firstChild){f=c.appendChild(i)}k=c.firstChild;a.insertNode(c);if(f){a=a.cloneRange();a.setStartAfter(f);a.collapse(!0);b.removeAllRanges();b.addRange(a)}}}else {if(d.selection&&b.type!=='Control'){b=d.selection;a=b.createRange();a.collapse(!0);b.createRange().pasteHTML(j)}}e.deferFocus()}},fixKeys:function(){var a;if(Ext.isIE10m){return function(c){var b=this,f=c.getKey(),e=b.getDoc(),d=b.readOnly,a,g;if(f===c.TAB){c.stopEvent();if(!d){a=e.selection.createRange();if(a){if(a.collapse){a.collapse(!0);a.pasteHTML('    ')}b.deferFocus()}}}}}if(Ext.isOpera){return function(b){var a=this,d=b.getKey(),c=a.readOnly;if(d===b.TAB){b.stopEvent();if(!c){a.win.focus();a.execCmd('InsertHTML','    ');a.deferFocus()}}}}return null}(),fixKeysAfter:function(){if(Ext.isIE){return function(b){var d=this,e=b.getKey(),c=d.getDoc(),f=d.readOnly,a;if(!f&&(e===b.BACKSPACE||e===b.DELETE)){a=c.body.innerHTML;if(a==='

     

    '||a==='

     

    '){c.body.innerHTML=''}}}}return null}(),getToolbar:function(){return this.toolbar},buttonTips:{bold:{title:'Bold (Ctrl+B)',text:'Make the selected text bold.',cls:'x-html-editor-tip'},italic:{title:'Italic (Ctrl+I)',text:'Make the selected text italic.',cls:'x-html-editor-tip'},underline:{title:'Underline (Ctrl+U)',text:'Underline the selected text.',cls:'x-html-editor-tip'},increasefontsize:{title:'Grow Text',text:'Increase the font size.',cls:'x-html-editor-tip'},decreasefontsize:{title:'Shrink Text',text:'Decrease the font size.',cls:'x-html-editor-tip'},backcolor:{title:'Text Highlight Color',text:'Change the background color of the selected text.',cls:'x-html-editor-tip'},forecolor:{title:'Font Color',text:'Change the color of the selected text.',cls:'x-html-editor-tip'},justifyleft:{title:'Align Text Left',text:'Align text to the left.',cls:'x-html-editor-tip'},justifycenter:{title:'Center Text',text:'Center text in the editor.',cls:'x-html-editor-tip'},justifyright:{title:'Align Text Right',text:'Align text to the right.',cls:'x-html-editor-tip'},insertunorderedlist:{title:'Bullet List',text:'Start a bulleted list.',cls:'x-html-editor-tip'},insertorderedlist:{title:'Numbered List',text:'Start a numbered list.',cls:'x-html-editor-tip'},createlink:{title:'Hyperlink',text:'Make the selected text a hyperlink.',cls:'x-html-editor-tip'},sourceedit:{title:'Source Edit',text:'Switch to source editing mode.',cls:'x-html-editor-tip'}},privates:{deferFocus:function(){this.focus(!1,!0)},getFocusEl:function(){return this.sourceEditMode?this.textareaEl:this.iframeEl}}},0,['htmleditor'],['component','box','container','fieldcontainer','htmleditor'],{'component':!0,'box':!0,'container':!0,'fieldcontainer':!0,'htmleditor':!0},['widget.htmleditor'],[['field',Ext.form.field.Field]],[Ext.form.field,'HtmlEditor',Ext.form,'HtmlEditor'],0);Ext.define('Ext.theme.neptune.form.field.HtmlEditor',{override:'Ext.form.field.HtmlEditor',defaultButtonUI:'plain-toolbar'});Ext.cmd.derive('Ext.form.field.Tag',Ext.form.field.ComboBox,{noWrap:!1,multiSelect:!0,delimiter:',',tipTpl:undefined,forceSelection:!0,createNewOnEnter:!1,createNewOnBlur:!1,encodeSubmitValue:!1,triggerOnClick:!0,stacked:!1,filterPickList:!1,grow:!0,growMin:!1,growMax:!1,selectOnFocus:!0,fieldSubTpl:['
    ','
      ','
    • ','
      {emptyText}
      ','name="{name}" ',' value="{[Ext.util.Format.htmlEncode(values.value)]}"','size="{size}" ','tabindex="{tabIdx}" ',' disabled="disabled"','class="x-tagfield-input-field {inputElCls}" autocomplete="off">','
    • ','
    ','
    ',{disableFormats:!0}],extraFieldBodyCls:'x-tagfield-body',childEls:['listWrapper','itemList','inputEl','inputElCt','emptyEl'],emptyInputCls:'x-tagfield-emptyinput',clearValueOnEmpty:!1,tagItemCls:'x-tagfield-item',tagItemTextCls:'x-tagfield-item-text',tagItemCloseCls:'x-tagfield-item-close',tagItemSelector:'.x-tagfield-item',tagItemCloseSelector:'.x-tagfield-item-close',tagSelectedCls:'x-tagfield-item-selected',initComponent:function(){var a=this,c=a.typeAhead,b=a.delimiter;if(a.createNewOnEnter||a.createNewOnBlur){a.forceSelection=!1}a.typeAhead=!1;if(a.value==null){a.value=[]}a.selectionModel=new Ext.selection.Model({mode:'MULTI',onSelectChange:function(d,c,b,a){a()},listeners:{scope:a,selectionchange:a.onSelectionChange,focuschange:a.onFocusChange}});Ext.form.field.ComboBox.prototype.initComponent.call(this);a.typeAhead=c;if(b&&a.multiSelect){a.delimiterRegexp=new RegExp(Ext.String.escapeRegex(b))}},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.ComboBox.prototype.initEvents.apply(this,arguments);if(!a.enableKeyEvents){b.on('keydown',a.onKeyDown,a);b.on('keyup',a.onKeyUp,a)}a.listWrapper.on({scope:a,click:a.onItemListClick,mousedown:a.onItemMouseDown})},isValid:function(){var a=this,b=a.disabled,c=a.forceValidation||!b;return c?a.validateValue(a.getValue()):b},onBindStore:function(b){var a=this;Ext.form.field.ComboBox.prototype.onBindStore.call(this,b);if(b){a.valueStore=new Ext.data.Store({model:b.getModel(),useModelWarning:!1});a.selectionModel.bindStore(a.valueStore);if(a.filterPickList){a.listFilter=new Ext.util.Filter({scope:a,filterFn:a.filterPicked});a.changingFilters=!0;b.filter(a.listFilter);a.changingFilters=!1}}},filterPicked:function(a){return !this.valueCollection.contains(a)},onUnbindStore:function(d){var a=this,b=a.valueStore,c=a.picker;if(c){c.bindStore(null)}if(b){b.destroy();a.valueStore=null}if(a.filterPickList&&!d.destroyed){a.changingFilters=!0;d.removeFilter(a.listFilter);a.changingFilters=!1}Ext.form.field.ComboBox.prototype.onUnbindStore.apply(this,arguments)},onValueCollectionEndUpdate:function(){var a=this,c=a.valueCollection.items,b=a.valueStore;if(a.isSelectionUpdating()){return}if(a.filterPickList){a.changingFilters=!0;a.store.filter(a.listFilter);a.changingFilters=!1}Ext.form.field.ComboBox.prototype.onValueCollectionEndUpdate.call(this);Ext.suspendLayouts();if(b){b.suspendEvents();b.loadRecords(c);b.resumeEvents()}Ext.resumeLayouts(!0);a.alignPicker()},checkValueOnDataChange:Ext.emptyFn,onSelectionChange:function(b,a){this.applyMultiselectItemMarkup();this.fireEvent('valueselectionchange',this,a)},onFocusChange:function(c,b,a){this.fireEvent('valuefocuschange',this,b,a)},onDestroy:function(){this.selectionModel=Ext.destroy(this.selectionModel);Ext.form.field.ComboBox.prototype.onDestroy.apply(this,arguments)},getSubTplData:function(i){var b=this,a=Ext.form.field.ComboBox.prototype.getSubTplData.apply(this,arguments),h=b.emptyText,g=b.emptyInputCls,f=h&&a.value.length<1,e=b.growMin,d=b.growMax,c='';a.value='';a.emptyText=f?h:'';a.emptyCls=f?b.emptyCls:g;a.inputElCls=f?g:'';a.itemListCls='';if(b.grow){if(Ext.isNumber(e)&&e>0){c+='min-height:'+e+'px;'}if(Ext.isNumber(d)&&d>0){c+='max-height:'+d+'px;'}}a.wrapperStyle=c;if(b.stacked===!0){a.itemListCls+=' x-tagfield-stacked'}if(!b.multiSelect){a.itemListCls+=' x-tagfield-singleselect'}return a},afterRender:function(){var a=this,b=a.inputEl,c=a.emptyText;if(c){if(Ext.supports.Placeholder&&b){b.dom.removeAttribute('placeholder')}else {a.applyEmptyText()}}a.applyMultiselectItemMarkup();Ext.form.field.ComboBox.prototype.afterRender.apply(this,arguments)},findRecord:function(b,c){var a=this.getStore().queryRecords(b,c);return a.length?a[0]:!1},getCursorPosition:function(){var a;if(document.selection){a=document.selection.createRange();a.collapse(!0);a.moveStart('character',-this.inputEl.dom.value.length);a=a.text.length}else {a=this.inputEl.dom.selectionStart}return a},hasSelectedText:function(){var a=this.inputEl.dom,c,b;if(document.selection){c=document.selection;b=c.createRange();return b.parentElement()===a}else {return a.selectionStart!==a.selectionEnd}},onKeyDown:function(a){var c=this,f=a.getKey(),i=c.inputEl,h=i.dom.value,e=c.valueCollection,b=c.selectionModel,g=!1,d;if(c.readOnly||c.disabled||!c.editable){return}if(e.getCount()>0&&(h===''||c.getCursorPosition()===0&&!c.hasSelectedText())){d=b.getCount()>0?e.indexOf(b.getLastSelected()):-1;if(f===a.BACKSPACE||f===a.DELETE){if(d>-1){if(b.getCount()>1){d=-1}e.remove(b.getSelection())}else {e.remove(e.last())}b.clearSelections();if(d>0){b.select(d-1)}else {if(e.getCount()){b.select(e.last())}}g=!0}else {if(f===a.RIGHT||f===a.LEFT){if(d===-1&&f===a.LEFT){b.select(e.last());g=!0}else {if(d>-1){if(f===a.RIGHT){if(d0){b.select(d-1,a.shiftKey);g=!0}}}}}else {if(f===a.A&&a.ctrlKey){b.selectAll();g=a.A}}}}if(g){c.preventKeyUpEvent=g;a.stopEvent();return}if(c.isExpanded&&f===a.ENTER&&c.picker.highlightedItem){c.preventKeyUpEvent=!0}if(c.enableKeyEvents){Ext.form.field.ComboBox.prototype.onKeyDown.apply(this,arguments)}if(!a.isSpecialKey()&&!a.hasModifier()){b.deselectAll()}},onKeyUp:function(b,f){var a=this,d=a.inputEl,c=d.dom.value,e=a.preventKeyUpEvent;if(a.preventKeyUpEvent){b.stopEvent();if(e===!0||b.getKey()===e){delete a.preventKeyUpEvent}return}if(a.multiSelect&&a.delimiterRegexp&&a.delimiterRegexp.test(c)||a.createNewOnEnter&&b.getKey()===b.ENTER){c=Ext.Array.clean(c.split(a.delimiterRegexp));d.dom.value='';a.setValue(a.valueStore.getRange().concat(c));d.focus()}Ext.form.field.ComboBox.prototype.onKeyUp.call(this,b,f)},onTypeAhead:function(){var a=this,f=a.displayField,d=a.inputEl.dom,g=a.getPicker(),e=a.getStore().findRecord(f,d.value),b,h,c;if(e){b=e.get(f);h=b.length;c=d.value.length;g.highlightItem(g.getNode(e));if(c!==0&&c!==h){d.value=b;a.selectText(c,b.length)}}},onItemListClick:function(c){var a=this,d=a.selectionModel,b=c.getTarget(a.tagItemSelector),e=b?c.getTarget(a.tagItemCloseSelector):!1;if(a.readOnly||a.disabled){return}c.stopPropagation();if(b){if(e){a.removeByListItemNode(b);if(a.valueStore.getCount()>0){a.fireEvent('select',a,a.valueStore.getRange())}}else {a.toggleSelectionByListItemNode(b,c.shiftKey)}if(!Ext.supports.TouchEvents){a.inputEl.focus()}}else {if(d.getCount()>0){d.deselectAll()}a.inputEl.focus();if(a.triggerOnClick){a.onTriggerClick()}}},onItemMouseDown:function(a){a.preventDefault()},getMultiSelectItemMarkup:function(){var a=this,b=a._getChildElCls&&a._getChildElCls()||'';if(!a.multiSelectItemTpl){if(!a.labelTpl){a.labelTpl='{'+a.displayField+'}'}a.labelTpl=a.getTpl('labelTpl');if(a.tipTpl){a.tipTpl=a.getTpl('tipTpl')}a.multiSelectItemTpl=new Ext.XTemplate(['','
  • ',' '+a.tagSelectedCls,'','{%','values = values.data;','%}',a.tipTpl?'" data-qtip="{[this.getTip(values)]}">':'">','
    {[this.getItemLabel(values)]}
    ','
    ','
  • ','
    ',{isSelected:function(b){return a.selectionModel.isSelected(b)},getItemLabel:function(b){return Ext.String.htmlEncode(a.labelTpl.apply(b))},getTip:function(b){return Ext.String.htmlEncode(a.tipTpl.apply(b))},strict:!0}])}if(!a.multiSelectItemTpl.isTemplate){a.multiSelectItemTpl=this.getTpl('multiSelectItemTpl')}return a.multiSelectItemTpl.apply(a.valueCollection.getRange())},applyMultiselectItemMarkup:function(){var a=this,b=a.itemList;if(b){b.select('.x-tagfield-item').destroy();a.inputElCt.insertHtml('beforeBegin',a.getMultiSelectItemMarkup());a.autoSize()}},getRecordByListItemNode:function(a){return this.valueCollection.items[Number(a.getAttribute('data-selectionIndex'))]},toggleSelectionByListItemNode:function(e,d){var c=this,a=c.getRecordByListItemNode(e),b=c.selectionModel;if(a){if(b.isSelected(a)){b.deselect(a)}else {b.select(a,d)}}},removeByListItemNode:function(c){var b=this,a=b.getRecordByListItemNode(c);if(a){b.pickerSelectionModel.deselect(a)}},getDisplayValue:function(){return this.getRawValue()},getRawValue:function(){var e=this,b=e.getValueRecords(),c=[],a,d;for(a=0,d=b.length;a0||f.isLoaded(),o=f.hasPendingLoad(),r=n&&!p&&!o,e,m,d,c,l,h;if(Ext.isEmpty(a)){a=null}else {if(Ext.isString(a)&&b.multiSelect){a=a.split(b.delimiter)}else {a=Ext.Array.from(a,!0)}}if(a&&b.queryMode==='remote'&&!f.isEmptyStore&&q!==!0&&r){for(d=0,m=a.length;d-1){a[d]=j.getAt(c)}else {c=b.findRecord(i,e);if(!c){if(b.forceSelection){g.push(e)}else {c={};c[b.valueField]=e;c[b.displayField]=e;l=b.valueStore.getModel();c=new l(c)}}if(c){a[d]=c}}}}if(g.length){h={};h[b.valueParam||b.valueField]=g.join(b.delimiter);f.load({params:h,callback:function(){b.setValue(a,k,!0);b.autoSize();b.lastQuery=!1}});return !1}}if(!b.multiSelect&&a.length>0){for(d=a.length-1;d>=0;d--){if(a[d].isModel){a=a[d];break}}if(Ext.isArray(a)){a=a[a.length-1]}}return Ext.form.field.ComboBox.prototype.setValue.call(this,a,k)},updateValue:function(){var a=this,b=a.valueCollection.getRange(),d=b.length,c;for(c=0;c=b.length){a.colIdx=0}else {a.colIdx++}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;}}},statics:{compare:function(a,b){return a.rowIdx-b.rowIdx||a.colIdx-b.colIdx}}},1,0,0,0,0,0,[Ext.grid,'CellContext'],0);Ext.cmd.derive('Ext.grid.ColumnComponentLayout',Ext.layout.component.Auto,{type:'columncomponent',setWidthInDom:!0,_paddingReset:{paddingTop:'',paddingBottom:''},columnAutoCls:'x-column-header-text-container-auto',beginLayout:function(a){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);a.titleContext=a.getEl('titleEl')},beginLayoutCycle:function(d){var b=this,a=b.owner,c=d.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(c){a.el.setWidth('')}a.textContainerEl[c&&!a.isGroupHeader?'addCls':'removeCls'](b.columnAutoCls);a.titleEl.setStyle(b._paddingReset)},publishInnerHeight:function(a,e){var d=this,b=d.owner,c;if(b.getRootHeaderCt().hiddenHeaders){a.setProp('innerHeight',0);return}if(!a.hasRawContent){if(b.headerWrap&&!a.hasDomProp('width')){d.done=!1;return}c=e-a.getBorderInfo().height;a.setProp('innerHeight',c-b.titleEl.getHeight(),!1)}},measureContentHeight:function(a){return a.el.dom.offsetHeight},publishInnerWidth:function(a,b){if(!a.hasRawContent){a.setProp('innerWidth',b-a.getBorderInfo().width,!1)}},calculateOwnerHeightFromContentHeight:function(a,c){var d=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),b=this.owner;if(!a.hasRawContent){if(!b.headerWrap||a.hasDomProp('width')){return c+b.titleEl.getHeight()+a.getBorderInfo().height}return null}return d},calculateOwnerWidthFromContentWidth:function(a,d){var c=this.owner,f=a.getPaddingInfo().width,e=this.getTriggerOffset(c,a),b;if(c.isGroupHeader){b=d}else {b=Math.max(d,c.textEl.getWidth()+a.titleContext.getPaddingInfo().width)}return b+f+e},getTriggerOffset:function(a,c){var b=0;if(c.widthModel.shrinkWrap&&!a.menuDisabled){if(a.query('>:not([hidden])').length===0){b=a.getTriggerElWidth()}}return b}},0,0,0,0,['layout.columncomponent'],0,[Ext.grid,'ColumnComponentLayout'],0);Ext.cmd.derive('Ext.layout.container.Fit',Ext.layout.container.Container,{alternateClassName:'Ext.layout.FitLayout',itemCls:'x-fit-item',type:'fit',manageMargins:!0,sizePolicies:{0:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},1:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},2:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},3:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}},getItemSizePolicy:function(d,b){var a=b||this.owner.getSizeModel(),c=(a.width.shrinkWrap?0:1)|(a.height.shrinkWrap?0:2);return this.sizePolicies[c]},beginLayoutCycle:function(a,p){var f=this,j=f.lastHeightModel&&f.lastHeightModel.calculated,m=f.lastWidthModel&&f.lastWidthModel.calculated,l=m||j,h=0,i=0,b,k,g,e,q,n,c,d,o,r;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(l&&a.targetContext.el.dom.tagName.toUpperCase()!=='TD'){l=m=j=!1}k=a.childItems;q=k.length;for(g=0;g0){for(g=0;g'+a.view.emptyText+''}a.view.getComponentLayout().headerCt=a.headerCt;a.mon(a.view,{uievent:a.processEvent,scope:a});a.headerCt.view=a.view;if(a.hasListeners.viewcreated){a.fireEvent('viewcreated',a,a.view)}}return a.view},getColumnManager:function(){return this.columnManager},getVisibleColumnManager:function(){return this.visibleColumnManager},getTopLevelColumnManager:function(){return this.ownerGrid.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},setAutoScroll:Ext.emptyFn,applyScrollable:function(a){if(this.view){this.view.setScrollable(a)}return a},getScrollable:function(){return null},processEvent:function(g,h,f,c,d,b,e,i){var a=b.position.column;if(a){return a.processEvent.apply(a,arguments)}},ensureVisible:function(b,a){this.doEnsureVisible(b,a)},scrollByDeltaY:function(b,a){this.getView().scrollBy(0,b,a)},scrollByDeltaX:function(b,a){this.getView().scrollBy(b,0,a)},afterCollapse:function(){this.saveScrollPos();Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){Ext.panel.Panel.prototype.afterExpand.apply(this,arguments);this.restoreScrollPos()},saveScrollPos:Ext.emptyFn,restoreScrollPos:Ext.emptyFn,onHeaderResize:function(){var a=this.view.getScrollable(),b;if(a&&a.isTouchScroller){b=a.getSize();if(b){a.setSize({x:this.headerCt.getTableWidth(),y:b.y})}}},onHeaderMove:function(e,f,b,c,d){var a=this;if(a.optimizedColumnMove===!1){a.view.refreshView()}else {a.view.moveColumn(c,d,b)}a.delayScroll()},onHeaderHide:function(b,c){var a=this.view;if(!b.childHideCount&&a.refreshCounter){a.refreshView()}},onHeaderShow:function(b,c){var a=this.view;if(a.refreshCounter){a.refreshView()}},onHeadersChanged:function(b,c){var a=this;if(a.rendered&&!a.reconfiguring){a.view.refreshView();a.delayScroll()}},delayScroll:function(){var a=this.view;if(a){this.scrollTask.delay(10,null,null,[a])}},onViewReady:function(){this.fireEvent('viewready',this)},onRestoreHorzScroll:function(){var a=this,b=a.scrollXPos;if(b){a.syncHorizontalScroll(a,!0)}},getScrollerOwner:function(){var a=this;if(!this.scrollerOwner){a=this.up('[scrollerOwner]')}return a},getLhsMarker:function(){var a=this;return a.lhsMarker||(a.lhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getRhsMarker:function(){var a=this;return a.rhsMarker||(a.rhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},updateHeaderBorders:function(a){this[a?'removeCls':'addCls'](this.noHeaderBordersCls)},getNavigationModel:function(){return this.getView().getNavigationModel()},getSelectionModel:function(){return this.getView().getSelectionModel()},getScrollTarget:function(){var a=this.getScrollerOwner().query('tableview');return a[a.length-1]},syncHorizontalScroll:function(e,b){var a=this,c=a.view.getScrollX(),d;b=b===!0;if(a.rendered&&(b||c!==a.scrollXPos)){if(b){d=a.getScrollTarget();d.setScrollX(c)}a.headerCt.setScrollX(c);a.scrollXPos=c}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(b,d){var a=this,c=a.getView();if(b){a.store=b;if(c.store!==b){c.bindStore(b,!1)}a.mon(b,{load:a.onStoreLoad,scope:a});a.storeRelayers=a.relayEvents(b,['filterchange','groupchange'])}else {a.unbindStore()}},unbindStore:function(){var a=this,b=a.store,c;if(b){b.trackStateChanges=!1;a.store=null;a.mun(b,{load:a.onStoreLoad,scope:a});Ext.destroy(a.storeRelayers);c=a.view;if(c.store){c.bindStore(null)}}},setColumns:function(a){if(a.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,a)}},setStore:function(a){this.reconfigure(a);if(this.autoLoad&&!a.isEmptyStore&&!(a.loading||a.isLoaded())){a.load()}},reconfigure:function(b,c){var a=this,f=a.store,e=a.headerCt,i=a.lockable,h=e?e.items.getRange():a.columns,d=a.getView(),j,g;if(arguments.length===1&&Ext.isArray(b)){c=b;b=null}if(c){c=Ext.Array.slice(c)}a.reconfiguring=!0;if(b){b=Ext.StoreManager.lookup(b)}a.fireEvent('beforereconfigure',a,b,c,f,h);Ext.suspendLayouts();if(i){a.reconfigureLockable(b,c)}else {j=d.blockRefresh;d.blockRefresh=!0;if(b&&b!==f){a.unbindStore();a.bindStore(b)}if(c){delete a.scrollXPos;e.removeAll();e.add(c)}d.blockRefresh=j;g=d.refreshCounter}Ext.resumeLayouts(!0);if(i){a.afterReconfigureLockable()}else {if(d.refreshCounter===g){d.refreshView()}}a.fireEvent('reconfigure',a,b,c,f,h);delete a.reconfiguring},beforeDestroy:function(){var a=this,b=a.scrollTask;if(b){b.cancel();a.scrollTask=null}Ext.destroy(a.focusEnterLeaveListeners);Ext.panel.Panel.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.lockable){a.destroyLockable()}a.unbindStore();Ext.panel.Panel.prototype.onDestroy.call(this);a.columns=a.storeRelayers=a.columnManager=a.visibleColumnManager=null},destroy:function(){var a=this;Ext.panel.Panel.prototype.destroy.call(this);if(a.destroyed){a.view=a.selModel=a.headerCt=null}},privates:{initFocusableElement:function(){},doEnsureVisible:function(a,c){if(this.lockable){return this.ensureLockedVisible(a,c)}if(typeof a!=='number'&&!a.isEntity){a=this.store.getById(a)}var b=this,d=b.getView(),f=d.getNode(a),g,h,k,j,m,l,i,e,n;if(c){g=c.callback;h=c.scope;k=c.animate;j=c.highlight;m=c.select;l=c.focus;e=c.column}if(b.deferredEnsureVisible){b.deferredEnsureVisible.destroy()}if(!d.componentLayoutCounter){b.deferredEnsureVisible=d.on({resize:b.doEnsureVisible,args:Ext.Array.slice(arguments),scope:b,single:!0,destroyable:!0});return}if(typeof e==='number'){e=b.ownerGrid.getVisibleColumnManager().getColumns()[e]}if(f){i=d.getScrollable();if(e){n=Ext.fly(f).selectNode(e.getCellSelector())}if(i){i.scrollIntoView(n||f,!!e,k,j)}if(!a.isEntity){a=d.getRecord(f)}if(m){d.getSelectionModel().select(a)}if(l){d.getNavigationModel().setPosition(a,0)}Ext.callback(g,h||b,[!0,a,f])}else {if(d.bufferedRenderer){d.bufferedRenderer.scrollTo(a,{animate:k,highlight:j,select:m,focus:l,column:e,callback:function(f,e,d){Ext.callback(g,h||b,[!0,e,d])}})}else {Ext.callback(g,h||b,[!1,null])}}},getFocusEl:function(){return this.getView().getFocusEl()},setActionableMode:function(b,c){var a=this.ownerGrid;if(!a.destroying&&a.view.setActionableMode(b,c)!==!1){a.fireEvent('actionablemodechange',b);a[b?'addCls':'removeCls'](a.actionableModeCls);return !0}}}},1,['tablepanel'],['component','box','container','panel','tablepanel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0},['widget.tablepanel'],0,[Ext.panel,'Table'],0);Ext.define('Ext.theme.neptune.panel.Table',{override:'Ext.panel.Table',lockableBodyBorder:!0,initComponent:function(){var a=this;(arguments.callee.$previous||Ext.panel.Panel.prototype.initComponent).call(this);if(!a.hasOwnProperty('bodyBorder')&&!a.hideHeaders&&(a.lockableBodyBorder||!a.lockable)){a.bodyBorder=!0}}});Ext.cmd.derive('Ext.grid.ColumnLayout',Ext.layout.container.HBox,{type:'gridcolumn',firstHeaderCls:'x-column-header-first',lastHeaderCls:'x-column-header-last',initLayout:function(){Ext.layout.container.HBox.prototype.initLayout.call(this);if(this.scrollbarWidth===undefined){this.self.prototype.scrollbarWidth=Ext.getScrollbarSize().width}},beginLayout:function(d){var b=this,j=b.owner,e=b.firstHeaderCls,f=b.lastHeaderCls,h=[e,f],i=b.getVisibleItems(),g=i.length,c,a;Ext.layout.container.HBox.prototype.beginLayout.call(this,d);for(c=0;c0){b=this.getColumns()[a-1]}return b},getNextSibling:function(c){var a=this.getHeaderIndex(c),b;if(a!==-1){b=this.getColumns()[a+1]}return b||null},getFirst:function(){var a=this.getColumns();return a.length>0?a[0]:null},getLast:function(){var a=this.getColumns(),b=a.length;return b>0?a[b-1]:null},getHeaderByDataIndex:function(d){var c=this.getColumns(),e=c.length,a,b;for(a=0;a=d.left&&e=n.getMaxPosition().y-c.all.last(!0).offsetHeight){b.rowIdx--}e=Math.min(b.rowIdx,h.getCount()-1);f=Math.min(f,j.getColumns().length);d=h.getAt(e);i=j.getColumns()[f]}}else {if(k){d=e=null}else {if(g==null){g=a.lastFocused?a.lastFocused.column:0}if(typeof b==='number'){e=Math.max(Math.min(b,h.getCount()-1),0);d=h.getAt(b)}else {if(b.isEntity){d=b;e=h.indexOf(d)}else {if(b.tagName){d=c.getRecord(b);e=h.indexOf(d);if(e===-1){d=null}}else {if(p){return}k=!0;d=e=null}}}}if(d){if(e===-1){a.recordIndex=-1;d=h.getAt(0);e=0;g=null}if(g==null){if(!(i=a.column)){f=0;i=j.getColumns()[0]}}else {if(typeof g==='number'){i=j.getColumns()[g];f=g}else {i=g;f=j.indexOf(g)}}}else {k=!0;i=f=null}}if(e===a.recordIndex&&f===a.columnIndex&&c===a.position.view){return a.focusPosition(a.position)}if(a.cell){a.cell.removeCls(a.focusCls)}a.previousRecordIndex=a.recordIndex;a.previousRecord=a.record;a.previousItem=a.item;a.previousCell=a.cell;a.previousColumn=a.column;a.previousColumnIndex=a.columnIndex;a.previousPosition=a.position.clone();a.selectionStart=m.selectionStart;a.position.setAll(c,a.recordIndex=e,a.columnIndex=f,a.record=d,a.column=i);if(k){a.item=a.cell=null}else {a.focusPosition(a.position,o)}if(!q){m.fireEvent('focuschange',m,a.previousRecord,a.record);c.fireEvent('rowfocus',a.record,a.item,a.recordIndex);c.fireEvent('cellfocus',a.record,a.cell,a.position)}if(l&&!o&&a.cell!==a.previousCell){a.fireNavigateEvent(l)}},focusPosition:function(b){var a=this,c,d;a.item=a.cell=null;if(b&&b.record&&b.column){c=b.view;if(b.rowElement){d=a.item=b.rowElement}else {d=c.getRowByRecord(b.record)}if(d){a.cell=b.cellElement||Ext.fly(d).down(b.column.getCellSelector(),!0);if(a.cell){a.cell=new Ext.dom.Fly(a.cell);c.lastFocused=a.lastFocused=a.position.clone();a.focusItem(a.cell);c.focusEl=a.cell}else {a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null}}else {d=c.dataSource.indexOf(b.record);a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null;if(d!==-1&&c.bufferedRenderer){a.lastKeyEvent=null;c.bufferedRenderer.scrollTo(d,!1,a.afterBufferedScrollTo,a)}}}},focusItem:function(a){a.addCls(this.focusCls);a.focus()},getCell:function(){return this.cell},getPosition:function(f){var c=this,a=c.position,b,e,d;if(a.record&&a.column){if(f){return a}e=a.view;d=e.dataSource;b=d.indexOf(a.record);if(b===-1){b=a.rowIdx;if(!(a.record=d.getAt(b))){b=-1}}if(b===-1||e.getVisibleColumnManager().indexOf(a.column)===-1){a.setAll();c.record=c.column=c.recordIndex=c.columnIndex=null}else {return a}}return null},getLastFocused:function(){var c=this,b,a=c.lastFocused;if(a&&a.record&&a.column){b=a.view;if(b.dataSource.indexOf(a.record)!==-1&&b.getVisibleColumnManager().indexOf(a.column)!==-1){return a}}},onKeyTab:function(a){var e=!a.shiftKey,d=a.position.clone(),g=d.view,f=a.position.cellElement,b=Ext.fly(f).findTabbableElements(),c,i=g.ownerGrid.actionables,j=i.length,h;a.preventDefault();c=b[Ext.Array.indexOf(b,a.target)+(e?1:-1)];while(!c&&(f=f[e?'nextSibling':'previousSibling'])){d.setColumn(g.getHeaderByCell(f));for(h=0;hj.height}a.setProp('viewOverflowY',i)}},measureContentHeight:function(e){var d=this.owner,b=d.body.dom,c=d.emptyEl,a=0;if(c){a+=c.offsetHeight}if(b){a+=b.offsetHeight}if(e.headerContext.state.boxPlan.tooNarrow){a+=Ext.getScrollbarSize().height}return a},flushColumnWidths:function(){var a=this,i=a.layout,d=a.ownerContext,g=a.columnsChanged,h=d.target,j=g.length,b,c,e,f;if(d.state.columnFlusher!==a){return}for(c=0;c0){h+=b;Ext.fly(f[c].el).setHeight(a)}else {g-=b}}a=i.rowHeight+g;if(Ext.isIE9&&d.view.ownerGrid.rowLines){a--}if(d.rowHeight+h=c+d;a--){e[a]=e[a-d];e[a].setAttribute('data-recordIndex',a)}}b.endIndex=b.endIndex+d}else {b.startIndex=c;b.endIndex=c+d-1}for(a=0;ab.endIndex){delete d[a]}}while(a!==f);delete d[a]},getCount:function(){return this.count},slice:function(e,a){var d=this.elements,c=[],b;if(!a){a=this.endIndex}else {a=Math.min(this.endIndex,a-1)}for(b=e||this.startIndex;b<=a;b++){c.push(d[b])}return c},replaceElement:function(a,b,d){var e=this.elements,c=typeof a==='number'?a:this.indexOf(a);if(c>-1){b=Ext.getDom(b);if(d){a=e[c];a.parentNode.insertBefore(b,a);Ext.removeNode(a);b.setAttribute('data-recordIndex',c)}this.elements[c]=b}return this},indexOf:function(b){var c=this.elements,a;b=Ext.getDom(b);for(a=this.startIndex;a<=this.endIndex;a++){if(c[a]===b){return a}}return -1},removeRange:function(g,c,j){var a=this,e=a.elements,i=[],d,b,h,f;if(c==null){c=a.endIndex+1}else {c=Math.min(a.endIndex+1,c+1)}if(g==null){g=a.startIndex}h=c-g;for(b=g,f=c;b<=a.endIndex;b++,f++){d=e[b];if(b=b.startIndex&&f<=b.endIndex){a[a.length]=f}}Ext.Array.sort(a);e=a.length}else {if(ab.endIndex){return}e=1;a=[a]}for(d=g=a[0],c=0;d<=b.endIndex;d++,g++){if(c=b.startIndex){j=h[d]=h[g];j.setAttribute('data-recordIndex',d)}else {delete h[d]}}b.endIndex-=e;b.count-=e},scroll:function(i,t,m){var b=this,e=b.view,p=e.store,c=b.elements,r=i.length,q=e.getNodeContainer(),k=e.hasListeners.itemremove,s=e.hasListeners.itemadd,h=b.statics().range,a,d,o,j,l,n,f,g;if(!i.length){return}if(t===-1){if(m){if(k){f=[];g=[]}n=b.endIndex-m+1;if(h){h.setStartBefore(c[n]);h.setEndAfter(c[b.endIndex]);h.deleteContents();for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}else {for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];Ext.removeNode(d);if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}e.fireEvent('itemremove',f,n,g,e);b.endIndex-=m}if(i.length){l=e.bufferRender(i,b.startIndex-=r);j=l.children;for(a=0;a','{[view.renderTHead(values, out, parent)]}','{%','view.renderRows(values.rows, values.columns, values.viewStartIndex, out);','%}','{[view.renderTFoot(values, out, parent)]}','','{% ','view = columns = column = null;','%}',{definitions:'var view, tableCls, columns, i, len, column;',priority:0}],outerRowTpl:['','{%','this.nextTpl.applyOut(values, out, parent)','%}','',{priority:9999}],rowTpl:['{%','var dataRowCls = values.recordIndex === -1 ? "" : " x-grid-row";','%}','','{%','parent.view.renderCell(values, parent.record, parent.recordIndex, parent.rowIndex, xindex - 1, out, parent)','%}','','',{priority:0}],cellTpl:['{tdStyle}"',' tabindex="-1" data-columnid="{[values.column.getItemId()]}">','
    {style}" ','{cellInnerAttr:attributes}>{value}
    ','',{priority:0}],refreshSelmodelOnRefresh:!1,tableValues:{},rowValues:{itemClasses:[],rowClasses:[]},cellValues:{classes:['x-grid-cell x-grid-td']},constructor:function(a){if(a.grid.isTree){a.baseCls='x-tree-view'}Ext.view.View.prototype.constructor.call(this,a)},hasVariableRowHeight:function(b){var a=this;return a.variableRowHeight||a.store.isGrouped()||a.getVisibleColumnManager().hasVariableRowHeight()||!b&&a.lockingPartner&&a.lockingPartner.hasVariableRowHeight(!0)},initComponent:function(){var a=this;if(a.columnLines){a.addCls(a.grid.colLinesCls)}if(a.rowLines){a.addCls(a.grid.rowLinesCls)}a.body=new Ext.dom.Fly();a.body.id=a.id+'gridBody';if(!a.trackOver){a.overItemCls=null}a.headerCt.view=a;a.grid.view=a;a.initFeatures(a.grid);a.itemSelector=a.getItemSelector();a.all=new Ext.view.NodeCache(a);Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(a,f){var d=this,b=d.ownerGrid,e=a.type,c=d.disableSelection||b.disableSelection;if(!f){if(!(a&&a.isSelectionModel)){a=b.selModel||a}}if(a){if(a.isSelectionModel){a.allowDeselect=b.allowDeselect||a.selectionMode!=='SINGLE';a.locked=c}else {if(typeof a==='string'){a={type:a}}else {a.type=b.selType||a.selType||a.type||e}if(!a.mode){if(b.simpleSelect){a.mode='SIMPLE'}else {if(b.multiSelect){a.mode='MULTI'}}}a=Ext.Factory.selection(Ext.apply({allowDeselect:b.allowDeselect,locked:c},a))}}return a},updateSelectionModel:function(b,c){var a=this;if(c){c.un({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});Ext.destroy(a.selModelRelayer)}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});a.selModel=b},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(c,h,j){var b=this,m=j>1,e=m&&document.createRange?document.createRange():null,g=m&&!e?document.createDocumentFragment():null,l=h,p=b.getGridColumns().length,k=p-1,r=(b.firstCls||b.lastCls)&&(h===0||h===p||c===0||c===k),f,i,q,n,d,a,o;if(b.rendered&&h!==c){q=b.el.query(b.rowSelector);for(f=0,n=q.length;f=(a-1)*b&&d.endIndex<=a*b-1){c.get(a);return !1}},onViewScroll:function(a,b,c){if(!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,a,b,c)}},createRowElement:function(e,f,d){var a=this,c=a.renderBuffer,b=a.collectData([e],f);b.columns=d;a.tpl.overwrite(c,b);a.cleanupData();return Ext.fly(c).down(a.getNodeContainerSelector(),!0).firstChild},bufferRender:function(e,f){var c=this,a=c.renderBuffer,b,d=document.createRange?document.createRange():null;c.tpl.overwrite(a,c.collectData(e,f));c.cleanupData();Ext.fly(a).saveTabbableState({skipSelf:!0,includeHidden:!0});a=Ext.fly(a).down(c.getNodeContainerSelector(),!0);if(d){d.selectNodeContents(a);b=d.extractContents()}else {b=document.createDocumentFragment();while(a.firstChild){b.appendChild(a.firstChild)}}return {fragment:b,children:Ext.Array.toArray(b.childNodes)}},collectData:function(c,b){var a=this;a.rowValues.view=a;a.tableValues.view=a;a.tableValues.rows=c;a.tableValues.columns=null;a.tableValues.viewStartIndex=b;a.tableValues.touchScroll=a.touchScroll;a.tableValues.tableStyle='width:'+a.headerCt.getTableWidth()+'px';return a.tableValues},cleanupData:function(){var a=this.tableValues;a.view=a.columns=a.rows=this.rowValues.view=null},refreshSize:function(c){var a=this,b=a.getBodySelector();if(b){a.body.attach(a.el.down(b,!0))}if(!a.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.apply(this,arguments);if(c||a.hasVariableRowHeight()&&a.dataSource.getCount()){a.grid.updateLayout()}Ext.resumeLayouts(!0)}},clearViewEl:function(g){var a=this,b=a.all,i=a.getStore(),d,c,f,h=b.slice(),e=[];if(a.hasListeners.itemremove){for(d=b.startIndex;d<=b.endIndex;d++){e.push(i.getByInternalId(b.item(d,!0).getAttribute('data-recordId')))}}a.fireEvent('itemremove',e,b.startIndex,h,a);Ext.view.View.prototype.clearViewEl.call(this);c=Ext.fly(a.getNodeContainer());if(c&&!g){f=a.getTargetEl();if(f.dom!==c.dom){c.destroy()}}},getMaskTarget:function(){return this.ownerCt.body},statics:{getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},getRecord:function(a){if(this.store.destroyed){return}if(a.isModel){return a}a=this.getNode(a);if(a){return this.dataSource.getByInternalId(a.getAttribute('data-recordId'))}},indexOf:function(a){a=this.getNode(a);if(!a&&a!==0){return -1}return this.all.indexOf(a)},indexInStore:function(a){return a?this.dataSource.indexOf(this.getRecord(a)):-1},indexOfRow:function(a){var c=this.dataSource,b;if(a.isCollapsedPlaceholder){b=c.indexOfPlaceholder(a)}else {b=c.indexOf(a)}return b},renderRows:function(e,g,d,h){var b=this,a=b.rowValues,f=e.length,c;a.view=b;a.columns=g;a.rowRole=b.rowAriaRole;b.cellValues.cellRole=b.cellAriaRole;for(c=0;c');for(a=0;a')}d.push('')},renderRow:function(c,e,j){var a=this,k=e===-1,h=a.selectionModel,b=a.rowValues,d=b.itemClasses,g=b.rowClasses,l=a.itemCls,f,i=a.rowTpl;b.rowAttr={};b.record=c;b.recordId=c.internalId;b.recordIndex=a.store.indexOf(c);b.rowIndex=e;b.rowId=a.getRowId(c);b.itemCls=b.rowCls='';if(!b.columns){b.columns=a.ownerCt.getVisibleColumnManager().getColumns()}d.length=g.length=0;if(!k){d[0]=l;if(!a.ownerCt.disableSelection&&h.isRowSelected){if(h.isRowSelected(c)){d.push(a.selectedItemCls)}}if(a.stripeRows&&e%2!==0){d.push(a.altRowCls)}if(a.getRowClass){f=a.getRowClass(c,e,null,a.dataSource);if(f){g.push(f)}}}if(j){i.applyOut(b,j,a.tableValues)}else {return i.apply(b,a.tableValues)}},renderCell:function(b,f,j,n,m,p){var c=this,l,h=c.selectionModel,a=c.cellValues,d=a.classes,k=f.data[b.dataIndex],o=c.cellTpl,g,e,i=c.navigationModel.getPosition();a.record=f;a.column=b;a.recordIndex=j;a.rowIndex=n;a.columnIndex=a.cellIndex=m;a.align=b.align;a.innerCls=b.innerCls;a.tdCls=a.tdStyle=a.tdAttr=a.style='';a.unselectableAttr=c.enableTextSelection?'':'unselectable="on"';d[1]=b.getCellId();e=2;if(b.renderer&&b.renderer.call){l=c.ownerCt.columnManager.getHeaderIndex(b);g=b.renderer.call(b.usingDefaultRenderer?b:b.scope||c.ownerCt,k,a,f,j,l,c.dataSource,c);if(a.css){f.cssWarning=!0;a.tdCls+=' '+a.css;a.css=null}if(a.tdCls){d[e++]=a.tdCls}}else {g=k}a.value=g==null||g===''?b.emptyCellText:g;if(b.tdCls){d[e++]=b.tdCls}if(c.markDirty&&f.dirty&&f.isModified(b.dataIndex)){d[e++]=c.dirtyCls}if(b.isFirstVisible){d[e++]=c.firstCls}if(b.isLastVisible){d[e++]=c.lastCls}if(!c.enableTextSelection){d[e++]=c.unselectableCls}if(h&&(h.isCellModel||h.isSpreadsheetModel)&&h.isCellSelected(c,j,b)){d[e++]=c.selectedCellCls}if(i&&i.record.id===f.id&&i.column===b){d[e++]=c.focusedItemCls}d.length=e;a.tdCls=d.join(' ');o.applyOut(a,p);a.column=a.record=null},getRow:function(a){var b;if(!a&&a!==0||!this.rendered){return null}if(a.target){a=a.target}if(Ext.isString(a)){return Ext.fly(a).down(this.rowSelector,!0)}if(Ext.isNumber(a)){b=this.all.item(a);return b&&b.down(this.rowSelector,!0)}if(a.isModel){return this.getRowByRecord(a)}b=Ext.fly(a);if(b.is(this.itemSelector)){return this.getRowFromItem(b)}return b.findParent(this.rowSelector,this.getTargetEl())},getRowId:function(a){return this.id+'-record-'+a.internalId},constructRowId:function(a){return this.id+'-record-'+a},getNodeById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!1)},getRowById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!0)},getNodeByRecord:function(a){return this.retrieveNode(this.getRowId(a),!1)},getRowByRecord:function(a){return this.retrieveNode(this.getRowId(a),!0)},getRowFromItem:function(c){var b=Ext.getDom(c).tBodies[0].childNodes,d=b.length,a;for(a=0;a1){A=c._extData;j=a.createRowElement(d,a.indexOfRow(d),f);if(Ext.fly(c,'_internal').hasCls(u)){Ext.fly(j).addCls(u)}if(Ext.isIE9m&&c.mergeAttributes){c.mergeAttributes(j,!0)}else {o=j.attributes;H=o.length;for(l=0;l0){if(Ext.supports.ScrollWidthInlinePaddingBug){e+=c.getCellPaddingAfter(d[0])}if(c.columnLines){e+=Ext.fly(d[0].parentNode).getBorderWidth('lr')}}g.setWidth(1);b.textEl.setStyle({'text-overflow':'clip',display:'table-cell'});a=b.textEl.dom.offsetWidth+b.titleEl.getPadding('lr');b.textEl.setStyle({'text-overflow':'',display:''});for(;fh){return !1}if(d){b.view=d}b.setPosition(a,0)}else {b.navigate(+1)};break;case 'left':if(e.isFirstColumn()){a=d&&c.isNormalView?a:a-1;if(a<0){return !1}if(d){b.view=d;f=d.getVisibleColumnManager().getColumns()}b.setPosition(a,f[f.length-1])}else {b.navigate(-1)};break;case 'up':if(a===0){return !1}else {b.setRow(a-1)};break;case 'down':if(a===h){return !1}else {b.setRow(a+1)};break;}if(g&&g.call(j||c,b)!==!0){return !1}return b},walkRows:function(f,e){var i=this,j=i.dataSource,g=0,d=f,h,b=e<0?0:j.getCount()-1,c=b?1:-1,a=f;do{if(b?a>=b:a<=b){return d||b}a+=c;if((h=Ext.fly(i.getRow(a)))&&h.isVisible(!0)){g+=c;d=a}}while(g!==e);return a},walkRecs:function(h,g){var k=this,a=k.dataSource,i=0,e=h,j,c=g<0?0:(a.isBufferedStore?a.getTotalCount():a.getCount())-1,f=c?1:-1,b=a.indexOf(h),d;do{if(c?b>=c:b<=c){return e}b+=f;d=a.getAt(b);if(!d.isCollapsedPlaceholder&&(j=Ext.fly(k.getNodeByRecord(d)))&&j.isVisible(!0)){i+=f;e=d}}while(i!==g);return e},getFirstVisibleRowIndex:function(){var a=this,c=a.dataSource.isBufferedStore?a.dataSource.getTotalCount():a.dataSource.getCount(),b=a.indexOf(a.all.first())-1;do{b+=1;if(b===c){return}}while(!Ext.fly(a.getRow(b)).isVisible(!0));return b},getLastVisibleRowIndex:function(){var b=this,a=b.indexOf(b.all.last());do{a-=1;if(a===-1){return}}while(!Ext.fly(b.getRow(a)).isVisible(!0));return a},getHeaderCt:function(){return this.headerCt},getPosition:function(b,a){return (new Ext.grid.CellContext(this)).setPosition(b,a)},onDestroy:function(){var a=this,c=a.featuresMC,d,b;if(c){for(b=0,d=c.getCount();b=a.viewSize)){a.onReplace(e,d,[],c)}else {Ext.view.View.prototype.onAdd.apply(this,arguments)}b.setPendingStripe(d)},onRemove:function(f,d,e){var a=this,b=a.bufferedRenderer,c;if(a.rendered&&b&&a.dataSource.getCount()+d.length>=b.viewSize){c=a.saveFocusState();b.onReplace(f,e,d,[]);c()}else {Ext.view.View.prototype.onRemove.apply(this,arguments)}a.setPendingStripe(e)},saveFocusState:function(){var b=this,g=b.dataSource,c=b.actionableMode,d=b.getNavigationModel(),a=c?b.actionPosition:d.getPosition(!0),f,e;if(a){a=a.clone();if(c){b.ownerGrid.setActionableMode(!1)}b.el.dom.focus();d.setPosition();return function(){if(g.getCount()){f=Math.min(a.rowIdx,b.all.getCount()-1);e=Math.min(a.colIdx,b.getVisibleColumnManager().getColumns().length-1);a=(new Ext.grid.CellContext(b)).setPosition(g.contains(a.record)?a.record:f,e);if(c){b.ownerGrid.setActionableMode(!0,a)}else {b.cellFocused=!0;d.setPosition(a,null,null,null,!0)}}else {a.column.focus()}}}return Ext.emptyFn},onDataRefresh:function(c){var b=this,a=b.ownerCt;if(a&&a.isCollapsingOrExpanding===2){a.on('expand',b.onDataRefresh,b,{single:!0});return}Ext.view.View.prototype.onDataRefresh.call(this,c)},getViewRange:function(){var a=this;if(a.bufferedRenderer){return a.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(b){var a=this.stripeOnUpdate;if(a===null){a=b}else {a=Math.min(a,b)}this.stripeOnUpdate=a},onEndUpdate:function(){var b=this,a=b.stripeOnUpdate,c=b.all.startIndex;if(b.rendered&&(a||a===0)){if(a-1)&&!g;b=b+(c?1:-1)){o=n[b];e.setColumn(o);k=Ext.fly(d).down(e.column.getCellSelector());for(h=0;hj;e=f?1:0;d=a.getGridColumns();for(c=0,i=d.length;c=0&&b<=a.view.dataSource.getCount()){if(e){c=a.down(':focusable:not([isButton]):first');d.column.getView().getScrollable().scrollIntoView(d.ownerCt.child(':focusable').el)}else {c=a.down(':focusable:not([isButton]):last')}a.editingPlugin.startEdit(b,c.column)}}}},destroyColumnEditor:function(a){var b;if(a.hasEditor()&&(b=a.getEditor())){b.destroy()}},getFloatingButtons:function(){var a=this,b=a.floatingButtons;if(!b){a.floatingButtons=b=new Ext.grid.RowEditorButtons({ownerCmp:a,rowEditor:a})}return b},repositionIfVisible:function(b){var a=this,c=a.view;if(b&&(b===a||!b.el.isAncestor(c.el))){return}if(a.isVisible()&&c.isVisible(!0)){a.reposition()}},isLayoutChild:function(a){return !1},getRefOwner:function(){return this.editingPlugin.grid},getRefItems:function(c){var b=this,a;if(b.lockable){a=[b.lockedColumnContainer];a.push.apply(a,b.lockedColumnContainer.getRefItems(c));a.push(b.normalColumnContainer);a.push.apply(a,b.normalColumnContainer.getRefItems(c))}else {a=Ext.form.Panel.prototype.getRefItems.apply(this,arguments)}a.push.apply(a,b.getFloatingButtons().getRefItems(c));return a},reposition:function(c,j){var a=this,d=a.context,g=d&&d.row,i=a.wrapEl,h,f,e,b;if(g&&Ext.isElement(g)){e=a.syncButtonPosition(a.getScrollDelta());h=a.calculateLocalRowTop(g);f=a.calculateEditorTop(h);if(!j){b=function(){if(e){a.scrollingViewEl.scrollBy(0,e,!0)}a.focusColumnField(d.column)}}a.syncEditorClip();if(c){i.animate(Ext.applyIf({to:{top:f},duration:c.duration||125,callback:b},c))}else {i.setLocalY(f);if(b){b()}}}},getScrollDelta:function(){var b=this,d=b.scrollingViewEl.dom,e=b.context,c=b.body,a=0;if(e){a=Ext.fly(e.row).getOffsetsTo(d)[1];if(a<0){a-=c.getBorderPadding().beforeY}else {if(a>0){a=Math.max(a+b.getHeight()+b.floatingButtons.getHeight()-d.clientHeight-c.getBorderWidth('b'),0);if(a>0){a-=c.getBorderPadding().afterY}}}}return a},calculateLocalRowTop:function(b){var a=this.editingPlugin.grid;return Ext.fly(b).getOffsetsTo(a)[1]-a.el.getBorderWidth('t')+this.lastScrollTop},calculateEditorTop:function(a){return a-this.body.getBorderPadding().beforeY-this.lastScrollTop},getClientWidth:function(){var c=this,b=c.editingPlugin.grid,a;if(c.lockable){a=b.lockedGrid.getWidth()+b.normalGrid.view.el.dom.clientWidth}else {a=b.view.el.dom.clientWidth}return a},getEditor:function(a){var b=this;if(Ext.isNumber(a)){return b.query('[isEditorComponent]')[a]}else {if(a.isHeader&&!a.isGroupHeader){return a.getEditor()}}},addFieldsForColumn:function(a,e){var b=this,d,f,c;if(Ext.isArray(a)){for(d=0,f=a.length;ddisplayfield');d=e.length;for(a=0;a0){if(!a._buttonsOnTop){b.setButtonPosition('top');a._buttonsOnTop=!0}d=0}else {if(a._buttonsOnTop!==!1){b.setButtonPosition('bottom');a._buttonsOnTop=!1}else {b.setButtonPosition(b.position)}}return d},syncEditorClip:function(){var a=this,b=a.getScrollDelta(),h=a.el,i=a.floatingButtons,c=i.el,g=Math.max,f,e,d;if(b){a.isOverflowing=!0;f=a.body;e=i.getHeight();d=a.getHeight();g=Math.max;if(b>0){if(a._buttonsOnTop){b-=e-f.getBorderWidth('b');a.clipBottom(h,g(d-b),0);b-=d-f.getBorderWidth('t');if(b>0){a.clipBottom(c,g(e-b,0))}else {a.clearClip(c)}}else {a.clipBottom(c,g(e-b,0));b-=e-f.getBorderWidth('b');if(b>0){a.clipBottom(h,g(d-b,0))}else {a.clearClip(h)}}}else {if(b<0){b=Math.abs(b);a.clipTop(h,b);b-=d-f.getBorderWidth('b');if(b>0){a.clipTop(c,b)}else {a.clearClip(c)}}}}else {if(a.isOverflowing){a.clearClip(c);a.clearClip(h);a.isOverflowing=!1}}},focusColumnField:function(a){var b,c;if(a&&!a.destroyed){if(a.isVisible()){b=this.getEditor(a);if(b&&b.isFocusable(!0)){c=!0;b.focus()}}if(!c){this.focusColumnField(a.next())}}},cancelEdit:function(){var b=this,d=b.getForm(),f=d.getFields(),c=f.items,e=c.length,a;if(b._cachedNode){b.clearCache()}b.hide();d.clearInvalid();for(a=0;ae&&f[isFormField]'),g=f.length,c,d,e;for(c=0;c'+b.join('')+''},createErrorListItem:function(a,b){a=b?b+': '+a:a;return '
  • '+a+'
  • '},beforeDestroy:function(){Ext.destroy(this.floatingButtons,this.tooltip);Ext.form.Panel.prototype.beforeDestroy.call(this)},clipBottom:function(b,a){b.setStyle('clip','rect(0 auto '+a+'px 0)')},clipTop:function(b,a){b.setStyle('clip','rect('+a+'px, auto, auto, 0)')},clearClip:function(a){a.setStyle('clip',Ext.isIE8?'rect(-1000px auto 1000px auto)':'auto')}},0,['roweditor'],['component','box','container','panel','form','roweditor'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'roweditor':!0},['widget.roweditor'],0,[Ext.grid,'RowEditor'],0);Ext.define('Ext.theme.neptune.grid.RowEditor',{override:'Ext.grid.RowEditor',buttonUI:'default-toolbar'});Ext.cmd.derive('Ext.view.DropZone',Ext.dd.DropZone,{indicatorCls:'x-grid-drop-indicator',indicatorHtml:['',''].join(''),constructor:function(b){var a=this;Ext.apply(a,b);if(!a.ddGroup){a.ddGroup='view-dd-zone-'+a.view.id}Ext.dd.DropZone.prototype.constructor.call(this,a.view.el)},fireViewEvent:function(){var a=this,b;a.lock();b=a.view.fireEvent.apply(a.view,arguments);a.unlock();return b},getTargetFromEvent:function(h){var e=h.getTarget(this.view.getItemSelector()),d,b,c,a,g,f;if(!e){d=h.getY();for(a=0,b=this.view.getNodes(),g=b.length;a=(a.bottom-a.top)/2){b='before'}else {b='after'}return b},containsRecordAtOffset:function(f,d,g){if(!d){return !1}var a=this.view,e=a.indexOf(d),c=a.getNode(e+g),b=c?a.getRecord(c):null;return b&&Ext.Array.contains(f,b)},positionIndicator:function(f,h,i){var a=this,c=a.view,d=a.getPosition(i,f),b=c.getRecord(f),g=h.records,e;if(!Ext.Array.contains(g,b)&&(d==='before'&&!a.containsRecordAtOffset(g,b,-1)||d==='after'&&!a.containsRecordAtOffset(g,b,1))){a.valid=!0;if(a.overRecord!==b||a.currentPosition!==d){e=Ext.fly(f).getY()-c.el.getY()-1;if(d==='after'){e+=Ext.fly(f).getHeight()}if(c.touchScroll===2){e+=c.getScrollY()}a.getIndicator().setWidth(Ext.fly(c.el).getWidth()).showAt(0,e);a.overRecord=b;a.currentPosition=d}}else {a.invalidateDrop()}},invalidateDrop:function(){if(this.valid){this.valid=!1;this.getIndicator().hide()}},onNodeOver:function(c,e,d,b){var a=this;if(!Ext.Array.contains(b.records,a.view.getRecord(c))){a.positionIndicator(c,b,d)}return a.valid?a.dropAllowed:a.dropNotAllowed},notifyOut:function(d,b,e,c){var a=this;Ext.dd.DropZone.prototype.notifyOut.apply(this,arguments);a.overRecord=a.currentPosition=null;a.valid=!1;if(a.indicator){a.indicator.hide()}},onContainerOver:function(f,e,d){var a=this,b=a.view,c=b.dataSource.getCount();if(c){a.positionIndicator(b.all.last(),d,e)}else {a.overRecord=a.currentPosition=null;a.getIndicator().setWidth(Ext.fly(b.el).getWidth()).showAt(0,0);a.valid=!0}return a.dropAllowed},onContainerDrop:function(b,c,a){return this.onNodeDrop(b,null,c,a)},onNodeDrop:function(f,g,h,e){var a=this,d=!1,c={wait:!1,processDrop:function(){a.invalidateDrop();a.handleNodeDrop(e,a.overRecord,a.currentPosition);d=!0;a.fireViewEvent('drop',f,e,a.overRecord,a.currentPosition)},cancelDrop:function(){a.invalidateDrop();d=!0}},b=!1;if(a.valid){b=a.fireViewEvent('beforedrop',f,e,a.overRecord,a.currentPosition,c);if(c.wait){return}if(b!==!1){if(!d){c.processDrop()}}}return b},destroy:function(){this.indicator=Ext.destroy(this.indicator);Ext.dd.DropZone.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.view,'DropZone'],0);Ext.cmd.derive('Ext.grid.ViewDropZone',Ext.view.DropZone,{indicatorHtml:'',indicatorCls:'x-grid-drop-indicator',handleNodeDrop:function(a,h,g){var b=this.view,f=b.getStore(),e,d,c,i;if(a.copy){d=a.records;a.records=[];for(c=0,i=d.length;c=0&&!(b.isGroupHeader&&(!b.items||!b.items.length))&&h!==c){i=a.isGroupHeader?a.query(':not([hidden]):not([isGroupHeader])').length:1;if(h<=c&&i>1){c-=i}d.getRootHeaderCt().grid.view.moveColumn(h,c,i)}p.fireEvent('columnmove',e,a,h,c);e.isDDMoveInGrid=d.isDDMoveInGrid=!1;if(d.isGroupHeader&&!e.isGroupHeader){if(e!==d){a.savedFlex=a.flex;delete a.flex;a.width=o}}else {if(!e.isGroupHeader){if(a.savedFlex){a.flex=a.savedFlex;delete a.width}}}Ext.resumeLayouts(!0)}}},1,0,0,0,0,0,[Ext.grid.header,'DropZone'],0);Ext.cmd.derive('Ext.grid.plugin.HeaderReorderer',Ext.plugin.Abstract,{init:function(a){this.headerCt=a;a.on({boxready:this.onHeaderCtRender,single:!0,scope:this})},destroy:function(){var a=this;a.headerCt.un('boxready',a.onHeaderCtRender,a);Ext.destroy(a.dragZone,a.dropZone);a.headerCt=a.dragZone=a.dropZone=null;Ext.plugin.Abstract.prototype.destroy.call(this)},onHeaderCtRender:function(){var a=this;a.dragZone=new Ext.grid.header.DragZone(a.headerCt);a.dropZone=new Ext.grid.header.DropZone(a.headerCt);if(a.disabled){a.dragZone.disable()}},enable:function(){this.disabled=!1;if(this.dragZone){this.dragZone.enable()}},disable:function(){this.disabled=!0;if(this.dragZone){this.dragZone.disable()}}},0,0,0,0,['plugin.gridheaderreorderer'],0,[Ext.grid.plugin,'HeaderReorderer'],0);Ext.cmd.derive('Ext.grid.header.Container',Ext.container.Container,{border:!0,baseCls:'x-grid-header-ct',dock:'top',weight:100,defaultType:'gridcolumn',detachOnRemove:!1,defaultWidth:100,sortAscText:'Sort Ascending',sortDescText:'Sort Descending',sortClearText:'Clear Sort',columnsText:'Columns',headerOpenCls:'x-column-header-open',menuSortAscCls:'x-hmenu-sort-asc',menuSortDescCls:'x-hmenu-sort-desc',menuColsIcon:'x-cols-icon',blockEvents:!1,dragging:!1,sortOnClick:!0,enableFocusableContainer:!1,childHideCount:0,sortable:!0,enableColumnHide:!0,initComponent:function(){var a=this;a.plugins=a.plugins||[];a.defaults=a.defaults||{};if(!a.isColumn){if(a.enableColumnResize){a.resizer=new Ext.grid.plugin.HeaderResizer();a.plugins.push(a.resizer)}if(a.enableColumnMove){a.reorderer=new Ext.grid.plugin.HeaderReorderer();a.plugins.push(a.reorderer)}}if(a.isColumn&&!a.isGroupHeader){if(!a.items||a.items.length===0){a.isContainer=a.isFocusableContainer=!1;a.focusable=!0;a.layout={type:'container',calculate:Ext.emptyFn}}}else {a.layout=Ext.apply({type:'gridcolumn',align:'stretch'},a.initialConfig.layout);a.defaults.columnLines=a.columnLines;if(!a.isGroupHeader){a.isRootHeader=!0;if(!a.hiddenHeaders){a.enableFocusableContainer=!0;a.ariaRole='rowgroup'}a.columnManager=new Ext.grid.ColumnManager(!1,a);a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);if(a.grid){a.grid.columnManager=a.columnManager;a.grid.visibleColumnManager=a.visibleColumnManager}}else {a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);a.columnManager=new Ext.grid.ColumnManager(!1,a)}}a.menuTask=new Ext.util.DelayedTask(a.updateMenuDisabledState,a);Ext.container.Container.prototype.initComponent.call(this)},insertNestedHeader:function(d){var b=this,e=d.ownerCt,f=b.ownerCt,c=f.layout.owner,a;if(e){if(b.isGroupHeader&&!f.isNestedParent){a=c.items.indexOf(b)}e.remove(d,!1)}if(a===undefined){a=c.items.indexOf(b)}c.insert(a,d)},isNested:function(){return !!this.getRootHeaderCt().down('[isNestedParent]')},isNestedGroupHeader:function(){var a=this,b=a.getRefOwner().query('>:not([hidden])');return b.length===1&&b[0]===a},maybeShowNestedGroupHeader:function(){var a=this.items,b;if(a&&a.length===1&&(b=a.getAt(0))&&b.hidden){b.show()}},setNestedParent:function(a){a.isNestedParent=!1;a.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&a.ownerCt.items.length===1)},initEvents:function(){var a=this,b,c;Ext.container.Container.prototype.initEvents.call(this);if(!a.isColumn&&!a.isGroupHeader){b=a.onHeaderCtEvent;c={click:b,dblclick:b,contextmenu:b,mouseover:a.onHeaderCtMouseOver,mouseout:a.onHeaderCtMouseOut,scope:a};if(Ext.supports.Touch){c.longpress=a.onHeaderCtLongPress}a.mon(a.el,c)}},onHeaderCtEvent:function(a,g){var c=this,f=c.getHeaderElByEvent(a),b,e,d;if(c.longPressFired){c.longPressFired=!1;return}if(f&&!c.blockEvents){b=Ext.getCmp(f.id);if(b){e=b[b.clickTargetName];if(!b.isGroupHeader&&!b.isContainer||a.within(e)){if(a.type==='click'||a.type==='tap'){d=b.onTitleElClick(a,e,c.sortOnClick);if(d){c.onHeaderTriggerClick(d,a,a.pointerType==='touch'?d.el:d.triggerEl)}else {c.onHeaderClick(b,a,g)}}else {if(a.type==='contextmenu'){c.onHeaderContextMenu(b,a,g)}else {if(a.type==='dblclick'&&b.resizable){b.onTitleElDblClick(a,e.dom)}}}}}}},blockNextEvent:function(){this.blockEvents=!0;Ext.asap(this.unblockEvents,this)},unblockEvents:function(){this.blockEvents=!1},onHeaderCtMouseOver:function(b,e){var c,a,d;if(!b.within(this.el,!0)){c=b.getTarget('.'+Ext.grid.column.Column.prototype.baseCls);a=c&&Ext.getCmp(c.id);if(a){d=a[a.clickTargetName];if(b.within(d)){a.onTitleMouseOver(b,d.dom)}}}},onHeaderCtMouseOut:function(c,g){var f='.'+Ext.grid.column.Column.prototype.baseCls,d=c.getTarget(f),e=c.getRelatedTarget(f),a,b;if(d!==e){if(d){a=Ext.getCmp(d.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOut(c,b.dom)}}if(e){a=Ext.getCmp(e.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOver(c,b.dom)}}}},onHeaderCtLongPress:function(d){var a=this,b=a.getHeaderElByEvent(d),c=Ext.getCmp(b.id);if(!c.menuDisabled){a.longPressFired=!0;a.showMenuBy(d,b,c)}},getHeaderElByEvent:function(a){return a.getTarget('.'+Ext.grid.column.Column.prototype.baseCls)},isLayoutRoot:function(){if(this.hiddenHeaders){return !1}return Ext.container.Container.prototype.isLayoutRoot.call(this)},getRootHeaderCt:function(){var a=this;return a.isRootHeader?a:a.up('[isRootHeader]')},onDestroy:function(){var a=this;if(a.menu){a.menu.un('hide',a.onMenuHide,a)}a.menuTask.cancel();Ext.container.Container.prototype.onDestroy.call(this);Ext.destroy(a.visibleColumnManager,a.columnManager,a.menu);a.columnManager=a.visibleColumnManager=null},applyColumnsState:function(h,n){if(!h||!h.length){return}var f=this,m=f.items.items,o=m.length,b=0,i=h.length,g,e,a,d,k=!1,c=[],l={},j=[];for(g=0;g=a.visibleFromIdx){b++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(a.isGroupHeader){c=a.visibleColumnManager.getColumns().length}d.onHeaderMoved(a,c,a.visibleFromIdx,b)},maybeContinueRemove:function(){var a=this;return a.isGroupHeader&&!a.applyingState&&!a.isNestedParent&&a.ownerCt&&!a.items.getCount()},onRemove:function(b,c){var a=this,d=a.ownerCt,e=b.lastHiddenHeader;Ext.container.Container.prototype.onRemove.call(this,b,c);if(!a.destroying){if(!a.isDDMoveInGrid){a.onHeadersChanged(b,!1)}if(a.maybeContinueRemove()){if(b.rendered){a.detachComponent(b)}Ext.suspendLayouts();d.remove(a);Ext.resumeLayouts(!0)}}},onHeadersChanged:function(c,d){var b,a=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(a){a.onColumnsChanged();if(!c.isGroupHeader){b=a.ownerCt;if(b&&!d){b.onHeadersChanged(a,c)}}}},onHeaderMoved:function(d,f,c,e){var a=this,b=a.ownerCt;if(a.rendered){if(b&&b.onHeaderMove){b.onHeaderMove(a,d,f,c,e)}a.fireEvent('columnmove',a,d,c,e)}},onColumnsChanged:function(){var a=this,b=a.menu,c,d;if(a.rendered){a.fireEvent('columnschanged',a);if(b&&(c=b.child('#columnItemSeparator'))){d=b.child('#columnItem');c.destroy();d.destroy()}}},lookupComponent:function(b){var a=Ext.container.Container.prototype.lookupComponent.apply(this,arguments);if(!a.isGroupHeader&&a.width===undefined&&!a.flex){a.width=this.defaultWidth}return a},setSortState:function(){var e=this.up('[store]').store,d=this.visibleColumnManager.getColumns(),f=d.length,c,b,a;for(c=0;cgridcolumn[hideable]'),g=e.length,d;for(;cj.el.dom.clientHeight?Ext.getScrollbarSize().width:0),n=0,e=k.getVisibleGridColumns(),o=b.hidden,f,c,a,g,d;function getTotalFlex(){for(c=0,f=e.length;cg){b.width=g;l=!0}else {b.width=d;h-=d+m;getTotalFlex()}applyWidth();Ext.resumeLayouts(!0)},autoSizeColumn:function(a){var b=this.view;if(b){b.autoSizeColumn(a);if(this.forceFit){this.applyForceFit(a)}}},getRefItems:function(b){var a=Ext.container.Container.prototype.getRefItems.call(this,b);if(this.menu){a.push(this.menu)}return a},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},createFocusableContainerKeyNav:function(b){var a=this;return new Ext.util.KeyNav(b,{scope:a,down:a.showHeaderMenu,left:a.onFocusableContainerLeftKey,right:a.onFocusableContainerRightKey,home:a.onHomeKey,end:a.onEndKey,space:a.onHeaderActivate,enter:a.onHeaderActivate})},onHomeKey:function(a){return this.focusChild(null,!0,a)},onEndKey:function(a){return this.focusChild(null,!1,a)},showHeaderMenu:function(b){var a=this.getFocusableFromEvent(b);if(a&&a.isColumn&&a.triggerEl){this.onHeaderTriggerClick(a,b,a.triggerEl)}},onHeaderActivate:function(d){var a=this.getFocusableFromEvent(d),c,b;if(a&&a.isColumn){c=a.getView();if(a.sortable&&this.sortOnClick){b=c.getNavigationModel().getLastFocused();a.toggleSortState();if(b){c.ownerCt.ensureVisible(b.record)}}this.onHeaderClick(a,d,a.el)}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {a.focus()}}}},0,['headercontainer'],['component','box','container','headercontainer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0},['widget.headercontainer'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.grid.header,'Container'],0);Ext.cmd.derive('Ext.grid.column.Column',Ext.grid.header.Container,{alternateClassName:'Ext.grid.Column',config:{triggerVisible:!1,sorter:null},baseCls:'x-column-header',hoverCls:'x-column-header-over',ariaRole:'columnheader',enableFocusableContainer:!1,sortState:null,possibleSortStates:['ASC','DESC'],ariaSortStates:{ASC:'ascending',DESC:'descending'},childEls:['titleEl','triggerEl','textEl','textContainerEl'],headerWrap:!1,renderTpl:['','{%this.renderContainer(out,values)%}'],dataIndex:null,text:' ',menuText:null,emptyCellText:' ',sortable:!0,resizable:!0,hideable:!0,menuDisabled:!1,renderer:!1,align:'left',draggable:!0,tooltipType:'qtip',initDraggable:Ext.emptyFn,tdCls:'',producesHTML:!0,ignoreExport:!1,isHeader:!0,isColumn:!0,tabIndex:-1,ascSortCls:'x-column-header-sort-ASC',descSortCls:'x-column-header-sort-DESC',componentLayout:'columncomponent',groupSubHeaderCls:'x-group-sub-header',groupHeaderCls:'x-group-header',clickTargetName:'titleEl',detachOnRemove:!0,initResizable:Ext.emptyFn,rendererNames:{column:'renderer',edit:'editRenderer',summary:'summaryRenderer'},formatterNames:{column:'formatter',edit:'editFormatter',summary:'summaryFormatter'},initComponent:function(){var a=this;if(!a.rendererScope){a.rendererScope=a.scope}if(a.header!=null){a.text=a.header;a.header=null}if(a.cellWrap){a.tdCls=(a.tdCls||'')+' x-wrap-cell'}if(a.columns!=null){a.isGroupHeader=!0;a.ariaRole='presentation';a.items=a.columns;a.columns=a.flex=a.width=null;a.cls=(a.cls||'')+' '+a.groupHeaderCls;a.sortable=a.resizable=!1;a.align='center'}else {if(a.flex){a.minWidth=a.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}a.addCls('x-column-header-align-'+a.align);a.setupRenderer();a.setupRenderer('edit');a.setupRenderer('summary');Ext.grid.header.Container.prototype.initComponent.apply(this,arguments)},onAdded:function(e,g,f){var a=this,c,d,b;Ext.grid.header.Container.prototype.onAdded.call(this,e,g,f);if(!a.headerId){d=a.up('tablepanel');b=d?d.ownerGrid:a.getRootHeaderCt();b.headerCounter=(b.headerCounter||0)+1;a.headerId='h'+b.headerCounter}if(!a.stateId){a.stateId=a.initialConfig.id||a.headerId}c=a.getSorter();if(c&&!c.initialConfig.id){c.setId((a.dataIndex||a.stateId)+'-sorter')}},applySorter:function(a){return this.getRootHeaderCt().up('tablepanel').store.getData().getSorters().decodeSorter(a)},bindFormatter:function(a){var b=this;return function(c){return a.format(c,a.scope||b.rendererScope||b.resolveListenerScope())}},bindRenderer:function(b){var a=this;a.hasCustomRenderer=!0;return function(){return Ext.callback(b,a.rendererScope,arguments,0,a)}},setupRenderer:function(c){c=c||'column';var a=this,b=a[a.formatterNames[c]],d=a[a.rendererNames[c]],f=c==='column',e,g;if(!b){if(d){if(typeof d==='string'){d=a[a.rendererNames[c]]=a.bindRenderer(d);g=!0}if(f){a.hasCustomRenderer=g||d.length>1}}else {if(f&&a.defaultRenderer){a.renderer=a.defaultRenderer;a.usingDefaultRenderer=!0}}}else {e=b.indexOf('this.')===0;if(e){b=b.substring(5)}b=Ext.app.bind.Template.prototype.parseFormat(b);a[a.formatterNames[c]]=null;if(e){b.scope=null}a[a.rendererNames[c]]=a.bindFormatter(b)}},getView:function(){var a=this.getRootHeaderCt();if(a){return a.view}},onFocusLeave:function(a){Ext.grid.header.Container.prototype.onFocusLeave.call(this,a);if(this.activeMenu){this.activeMenu.hide()}},initItems:function(){var a=this;Ext.grid.header.Container.prototype.initItems.apply(this,arguments);if(a.isGroupHeader){if(a.config.hidden||!a.hasVisibleChildColumns()){a.hide()}}},hasVisibleChildColumns:function(){var c=this.items.items,d=c.length,a,b;for(a=0;agridcolumn:not([hidden]):not([menuDisabled])');c=a.length;if(Ext.Array.contains(a,b.hideCandidate)){c--}if(c){return !1}b.hideCandidate=this},isLockable:function(){var a={result:this.lockable!==!1};if(a.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[a])}return a.result},isLocked:function(){return this.locked||!!this.up('[isColumn][locked]','[isRootHeader]')},hasMultipleVisibleChildren:function(a){if(!this.isXType('headercontainer')){a.result=!1;return !1}if(this.query('>gridcolumn:not([hidden])').length>1){return !1}},hide:function(){var a=this,b=a.getRootHeaderCt(),c=a.getRefOwner();if(c.constructing){Ext.grid.header.Container.prototype.hide.call(this);return a}if(a.rendered&&!a.isVisible()){return a}if(b.forceFit){a.visibleSiblingCount=b.getVisibleGridColumns().length-1;if(a.flex){a.savedWidth=a.getWidth();a.flex=null}}b.beginChildHide();Ext.suspendLayouts();if(c.isGroupHeader){if(a.isNestedGroupHeader()){c.hide()}if(a.isSubHeader&&!a.isGroupHeader&&c.query('>gridcolumn:not([hidden])').length===1){c.lastHiddenHeader=a}}Ext.grid.header.Container.prototype.hide.call(this);b.endChildHide();b.onHeaderHide(a);Ext.resumeLayouts(!0);return a},show:function(){var a=this,c=a.getRootHeaderCt(),b=a.getRefOwner();if(a.isVisible()){return a}if(b.isGroupHeader){b.lastHiddenHeader=null}if(a.rendered){if(c.forceFit){c.applyForceFit(a)}}Ext.suspendLayouts();if(a.isSubHeader&&b.hidden){b.show(!1,!0)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(a.isGroupHeader){a.maybeShowNestedGroupHeader()}b=a.getRootHeaderCt();if(b){b.onHeaderShow(a)}Ext.resumeLayouts(!0);return a},shouldUpdateCell:function(d,b){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(b){var e=b.length,a,c;for(a=0;aActions',ignoreExport:!0,sortable:!1,innerCls:'x-grid-cell-inner-action-col',actionIconCls:'x-action-col-icon',constructor:function(g){var a=this,b=Ext.apply({},g),d=b.items||a.items||[a],e,c,f;a.origRenderer=b.renderer||a.renderer;a.origScope=b.scope||a.scope;a.renderer=a.scope=b.renderer=b.scope=null;b.items=null;Ext.grid.column.Column.prototype.constructor.call(this,b);a.items=d;for(c=0,f=d.length;c':'>')}return h},updater:function(e,d,c,f,b){var a={};Ext.fly(e).addCls(a.tdCls).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(d,a,c,null,null,b,f)},enableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!1;b.up('tablepanel').el.select('.x-action-col-'+a).removeCls(b.disabledCls);if(!c){b.fireEvent('enable',b)}},disableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!0;b.up('tablepanel').el.select('.x-action-col-'+a).addCls(b.disabledCls);if(!c){b.fireEvent('disable',b)}},beforeDestroy:function(){this.renderer=this.items=null;return Ext.grid.column.Column.prototype.beforeDestroy.apply(this,arguments)},processEvent:function(f,g,n,h,i,d,l,o){var b=this,c=d.getTarget(),e=f==='keydown'&&d.getKey(),m,a,j,k=Ext.fly(n);d.stopSelection=!e&&b.stopSelection;if(e&&(c===n||!k.contains(c))){c=k.query('.'+b.actionIconCls,!0);if(c.length===1){c=c[0]}else {return}}if(c&&(m=c.className.match(b.actionIdRe))){a=b.items[parseInt(m[1],10)];j=a.disabled||(a.isDisabled?a.isDisabled.call(a.scope||b.origScope||b,g,h,i,a,l):!1);if(a&&!j){if(f==='mousedown'&&!b.getView().actionableMode){d.preventDefault()}else {if(f==='click'||(e===d.ENTER||e===d.SPACE)){Ext.callback(a.handler||b.handler,a.scope||b.origScope,[g,h,i,a,d,l,o],undefined,b);if(!g.el.contains(Ext.Element.getActiveElement())){return !1}}}}}return Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)},cascade:function(b,a){b.call(a||this,this)},getRefItems:function(){return []},privates:{getFocusables:function(){return []},shouldUpdateCell:function(){return 2}}},1,['actioncolumn'],['component','box','container','headercontainer','gridcolumn','actioncolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'actioncolumn':!0},['widget.actioncolumn'],0,[Ext.grid.column,'Action',Ext.grid,'ActionColumn'],0);Ext.cmd.derive('Ext.grid.column.Check',Ext.grid.column.Column,{alternateClassName:['Ext.ux.CheckColumn','Ext.grid.column.CheckColumn'],align:'center',ignoreExport:!0,stopSelection:!0,tdCls:'x-grid-cell-checkcolumn',innerCls:'x-grid-cell-inner-checkcolumn',clickTargetName:'el',defaultFilterType:'boolean',constructor:function(){this.scope=this;Ext.grid.column.Column.prototype.constructor.apply(this,arguments)},processEvent:function(h,n,k,e,m,b,g,l){var a=this,d=h==='keydown'&&b.getKey(),f=h==='mousedown',j=a.disabled,i,c;b.stopSelection=!d&&a.stopSelection;if(!j&&(f||(d===b.ENTER||d===b.SPACE))){c=!a.isRecordChecked(g);if(a.fireEvent('beforecheckchange',a,e,c)!==!1){a.setRecordCheck(g,c,k,l,b);a.fireEvent('checkchange',a,e,c);if(f&&!a.getView().actionableMode){b.preventDefault()}}}else {i=Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)}return i},onEnable:function(){Ext.grid.column.Column.prototype.onEnable.apply(this,arguments);this._setDisabled(!1)},onDisable:function(){this._setDisabled(!0)},_setDisabled:function(d){var b=this,c=b.disabledCls,a;a=b.up('tablepanel').el.select(b.getCellSelector());if(d){a.addCls(c)}else {a.removeCls(c)}},defaultRenderer:function(d,c){var a='x-',b=a+'grid-checkcolumn';if(this.disabled){c.tdCls+=' '+this.disabledCls}if(d){b+=' '+a+'grid-checkcolumn-checked'}return '
    '},isRecordChecked:function(a){var b=this.property;if(b){return a[b]}return a.get(this.dataIndex)},setRecordCheck:function(c,a,e,f,g){var b=this,d=b.property;if(d){c[d]=a;b.updater(e,a)}else {c.set(b.dataIndex,a)}},updater:function(a,b){a=Ext.fly(a);a[this.disabled?'addCls':'removeCls'](this.disabledCls);Ext.fly(a.down(this.getView().innerSelector,!0).firstChild)[b?'addCls':'removeCls']('x-grid-checkcolumn-checked')}},1,['checkcolumn'],['component','box','container','headercontainer','gridcolumn','checkcolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'checkcolumn':!0},['widget.checkcolumn'],0,[Ext.grid.column,'Check',Ext.ux,'CheckColumn',Ext.grid.column,'CheckColumn'],0);Ext.cmd.derive('Ext.grid.column.Date',Ext.grid.column.Column,{alternateClassName:'Ext.grid.DateColumn',isDateColumn:!0,defaultFilterType:'date',producesHTML:!1,initComponent:function(){if(!this.format){this.format=Ext.Date.defaultFormat}Ext.grid.column.Column.prototype.initComponent.apply(this,arguments)},defaultRenderer:function(a){return Ext.util.Format.date(a,this.format)},updater:function(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Date.prototype.defaultRenderer.call(this,a)}},0,['datecolumn'],['component','box','container','headercontainer','gridcolumn','datecolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'datecolumn':!0},['widget.datecolumn'],0,[Ext.grid.column,'Date',Ext.grid,'DateColumn'],0);Ext.cmd.derive('Ext.grid.column.Number',Ext.grid.column.Column,{alternateClassName:'Ext.grid.NumberColumn',defaultFilterType:'number',format:'0,000.00',producesHTML:!1,defaultRenderer:function(a){return Ext.util.Format.number(a,this.format)},updater:function(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Number.prototype.defaultRenderer.call(this,a)}},0,['numbercolumn'],['component','box','container','headercontainer','gridcolumn','numbercolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'numbercolumn':!0},['widget.numbercolumn'],0,[Ext.grid.column,'Number',Ext.grid,'NumberColumn'],0);Ext.cmd.derive('Ext.grid.column.RowNumberer',Ext.grid.column.Column,{alternateClassName:'Ext.grid.RowNumberer',isRowNumberer:!0,text:' ',width:23,sortable:!1,draggable:!1,autoLock:!0,lockable:!1,align:'right',producesHTML:!1,ignoreExport:!0,constructor:function(b){var a=this;a.width=a.width;Ext.grid.column.Column.prototype.constructor.apply(this,arguments);a.sortable=!1;a.scope=a},resizable:!1,hideable:!1,menuDisabled:!0,dataIndex:'',cls:'x-row-numberer',tdCls:'x-grid-cell-row-numberer x-grid-cell-special',innerCls:'x-grid-cell-inner-row-numberer',rowspan:undefined,defaultRenderer:function(j,b,f,i,h,a,g){var c=this.rowspan,e=a.currentPage,d=g.store.indexOf(f);if(b&&c){b.tdAttr='rowspan="'+c+'"'}if(e>1){d+=(e-1)*a.pageSize}return d+1},updater:function(d,c,b,e,a){Ext.fly(d).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(c,null,b,null,null,a,e)}},1,['rownumberer'],['component','box','container','headercontainer','gridcolumn','rownumberer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'rownumberer':!0},['widget.rownumberer'],0,[Ext.grid.column,'RowNumberer',Ext.grid,'RowNumberer'],0);Ext.define('Ext.theme.neptune.grid.column.RowNumberer',{override:'Ext.grid.column.RowNumberer',width:25});Ext.cmd.derive('Ext.grid.column.Widget',Ext.grid.column.Column,{config:{defaultWidgetUI:{}},ignoreExport:!0,sortable:!1,onWidgetAttach:null,preventUpdate:!0,stopSelection:!0,initComponent:function(){var b=this,a;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments);a=b.widget;b.widget=a=Ext.apply({},a);if(!a.ui){a.ui=b.getDefaultWidgetUI()[a.xtype]||'default'}b.isFixedSize=Ext.isNumber(a.width)},processEvent:function(c,d,h,e,f,b,g,i){var a;if(this.stopSelection&&c==='click'){a=b.getTarget(d.innerSelector);if(a&&a!==b.target){b.stopSelection=!0}}},beforeRender:function(){var a=this,b=a.tdCls,c;a.listenerScopeFn=function(b){if(b==='this'){return this}return a.resolveListenerScope(b)};a.liveWidgets={};a.cachedStyles={};a.freeWidgetStack=[c=a.getFreeWidget()];b=b?b+' ':'';a.tdCls=b+c.getTdCls();a.setupViewListeners(a.getView());Ext.grid.column.Column.prototype.beforeRender.call(this)},afterRender:function(){var a=this.getView();Ext.grid.column.Column.prototype.afterRender.call(this);if(a&&a.viewReady&&!a.ownerGrid.reconfiguring){this.onViewRefresh(a,a.getViewRange())}},defaultRenderer:Ext.emptyFn,updater:function(c,b,a){this.updateWidget(a)},onResize:function(e){var a=this,d=a.liveWidgets,c=a.getView(),f,b;if(!a.isFixedSize&&a.rendered&&c&&c.viewReady){b=c.getEl().down(a.getCellInnerSelector());if(b){e-=parseInt(a.getCachedStyle(b,'padding-left'),10)+parseInt(a.getCachedStyle(b,'padding-right'),10);for(f in d){d[f].setWidth(e)}}}},onAdded:function(){var b=this,a;Ext.grid.column.Column.prototype.onAdded.apply(this,arguments);a=b.getView();if(a){b.setupViewListeners(a);if(a&&a.viewReady&&b.rendered&&a.getEl().down(b.getCellSelector())){b.onViewRefresh(a,a.getViewRange())}}},onRemoved:function(e){var a=this,c=a.liveWidgets,b=a.viewListeners,d;if(a.rendered){a.viewListeners=b&&Ext.destroy(b);if(!e){for(d in c){c[d].detachFromBody()}}}Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments)},onDestroy:function(){var b=this,e=b.liveWidgets,d=b.freeWidgetStack,g,a,c,f;if(b.rendered){for(g in e){a=e[g];a.$widgetRecord=a.$widgetColumn=null;delete a.getWidgetRecord;delete a.getWidgetColumn;a.destroy()}for(c=0,f=d.length;c0){v=d.getModel();for(b=0;b-1},indexOfPlaceholder:function(a){return this.data.indexOf(a)},indexOfId:function(a){return this.data.indexOfKey(a)},indexOfTotal:function(a){return this.store.indexOf(a)},onAdd:function(b){var a=this;a.processStore(a.store);a.fireEvent('refresh',a);return !1},onClear:function(d,c,b){var a=this;a.processStore(a.store);a.fireEvent('clear',a)},onIdChanged:function(d,b,a,c){this.data.updateKey(b,a)},onRefresh:function(){this.processStore(this.store);this.fireEvent('refresh',this)},onRemove:function(){var a=this;a.processStore(a.store);a.fireEvent('refresh',a);return !1},onUpdate:function(k,b,j,c){var a=this,g=a.groupingFeature,f,i,d,e,h;if(k.isGrouped()){f=b.group=g.getGroup(b);if(f){i=g.getMetaGroup(b);if(c&&Ext.Array.contains(c,g.getGroupField())){return a.onRefresh(a.store)}if(i.isCollapsed){a.fireEvent('update',a,i.placeholder)}else {Ext.suspendLayouts();a.fireEvent('update',a,b,j,c);h=f.items;d=h[0];e=h[h.length-1];if(d!==b){d.group=f;a.fireEvent('update',a,d,'edit',c);delete d.group}if(e!==b&&e!==d&&g.showSummaryRow){e.group=f;a.fireEvent('update',a,e,'edit',c);delete e.group}Ext.resumeLayouts(!0)}}delete b.group}else {a.fireEvent('update',a,b,j,c)}},onGroupChange:function(b,a){if(!a){this.processStore(b)}this.fireEvent('groupchange',b,a)},destroy:function(){var a=this;a.bindStore(null);Ext.destroyMembers(a,'data','groupingFeature');Ext.util.Observable.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.grid.feature,'GroupStore'],0);Ext.cmd.derive('Ext.grid.feature.Grouping',Ext.grid.feature.Feature,{eventPrefix:'group',eventSelector:'.x-grid-group-hd',refreshData:{},wrapsItem:!0,groupHeaderTpl:'{columnName}: {name}',depthToIndent:17,collapsedCls:'x-grid-group-collapsed',hdCollapsedCls:'x-grid-group-hd-collapsed',hdNotCollapsibleCls:'x-grid-group-hd-not-collapsible',collapsibleCls:'x-grid-group-hd-collapsible',ctCls:'x-group-hd-container',groupByText:'Group by this field',showGroupsText:'Show in groups',hideGroupedHeader:!1,startCollapsed:!1,enableGroupingMenu:!0,enableNoGroups:!0,collapsible:!0,groupers:null,expandTip:'Click to expand. CTRL key collapses all others',collapseTip:'Click to collapse. CTRL/click collapses all others',showSummaryRow:!1,outerTpl:['{%','if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {','this.groupingFeature.setup(values.rows, values.view.rowValues);','}','this.nextTpl.applyOut(values, out, parent);','if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {','this.groupingFeature.cleanup(values.rows, values.view.rowValues);','}','%}',{priority:200}],groupRowTpl:['{%','var me = this.groupingFeature,','colspan = "colspan=" + values.columns.length;','if (me.disabled || parent.rows.length === 1 && parent.rows[0].isSummary) {','values.needsWrap = false;','} else {','me.setupRowData(values.record, values.rowIndex, values);','}','%}','','','{% values.view.renderColumnSizer(values, out); %}','','','{%','var groupTitleStyle = (!values.view.lockingPartner || (values.view.ownerCt === values.view.ownerCt.ownerLockable.lockedGrid) || (values.view.lockingPartner.headerCt.getVisibleGridColumns().length === 0)) ? "" : "visibility:hidden";','%}','
    ','
    ','{[values.groupHeaderTpl.apply(values.metaGroupCache, parent) || " "]}','
    ','
    ','','','
    ','','{%','values.itemClasses.length = 0;','this.nextTpl.applyOut(values, out, parent);','%}','','','{%me.outputSummaryRecord(values.summaryRecord, values, out, parent);%}','','','{%this.nextTpl.applyOut(values, out, parent);%}','',{priority:200,beginRowSync:function(b){var a=this.groupingFeature;b.add('header',a.eventSelector);b.add('summary',a.summaryRowSelector)},syncContent:function(c,b,f){c=Ext.fly(c,'syncDest');b=Ext.fly(b,'syncSrc');var a=this.groupingFeature,h=c.down(a.eventSelector,!0),g=b.down(a.eventSelector,!0),e=c.down(a.summaryRowSelector,!0),d=b.down(a.summaryRowSelector,!0);if(h&&g){Ext.fly(h).syncContent(g)}if(e&&d){if(f){this.groupingFeature.view.updateColumns(e,d,f)}else {Ext.fly(e).syncContent(d)}}}}],init:function(c){var a=this,b=a.view,f=a.getGridStore(),d,e;b.isGrouping=f.isGrouped();a.mixins.summary.init.call(a);Ext.grid.feature.Feature.prototype.init.call(this,c);b.headerCt.on({columnhide:a.onColumnHideShow,columnshow:a.onColumnHideShow,columnmove:a.onColumnMove,scope:a});b.addTpl(Ext.XTemplate.getTpl(a,'outerTpl')).groupingFeature=a;b.addRowTpl(Ext.XTemplate.getTpl(a,'groupRowTpl')).groupingFeature=a;b.preserveScrollOnRefresh=!0;if(f.isBufferedStore){a.collapsible=!1}else {d=a.lockingPartner;if(d&&d.dataSource){a.dataSource=b.dataSource=e=d.dataSource}else {a.dataSource=b.dataSource=e=new Ext.grid.feature.GroupStore(a,f)}}c=c.ownerLockable||c;c.on('beforereconfigure',a.beforeReconfigure,a);b.on({afterrender:a.afterViewRender,scope:a,single:!0});if(e){e.on('groupchange',a.onGroupChange,a)}else {a.setupStoreListeners(f)}a.mixins.summary.bindStore.call(a,c,c.getStore())},getGridStore:function(){return this.view.getStore()},indexOf:function(a){return this.dataSource.indexOf(a)},indexOfPlaceholder:function(a){return this.dataSource.indexOfPlaceholder(a)},isInCollapsedGroup:function(d){var c=this,e=c.getGridStore(),b=!1,a;if(e.isGrouped()&&(a=c.getMetaGroup(d))){b=!!(a&&a.isCollapsed)}return b},createCache:function(){var a=this.metaGroupCache={},b=this.lockingPartner;if(b){b.metaGroupCache=a}a.map={};return a},getCache:function(){return this.metaGroupCache||this.createCache()},invalidateCache:function(){var a=this.lockingPartner;this.metaGroupCache=null;if(a){a.metaGroupCache=null}},vetoEvent:function(c,d,b,a){if(a.type!=='mouseover'&&a.type!=='mouseout'&&a.type!=='mouseenter'&&a.type!=='mouseleave'&&a.getTarget(this.eventSelector)){return !1}},enable:function(){var a=this,c=a.view,e=a.getGridStore(),d=a.hideGroupedHeader&&a.getGroupedHeader(),b;c.isGrouping=!0;if(c.lockingPartner){c.lockingPartner.isGrouping=!0}Ext.grid.feature.Feature.prototype.enable.call(this);if(a.lastGrouper){e.group(a.lastGrouper);a.lastGrouper=null}if(d){d.hide()}b=a.view.headerCt.getMenu().down('#groupToggleMenuItem');if(b){b.setChecked(!0,!0)}},disable:function(){var a=this,c=a.view,f=a.getGridStore(),d=a.hideGroupedHeader&&a.getGroupedHeader(),e=f.getGrouper(),b;c.isGrouping=!1;if(c.lockingPartner){c.lockingPartner.isGrouping=!1}Ext.grid.feature.Feature.prototype.disable.call(this);if(e){a.lastGrouper=e;f.clearGrouping()}if(d){d.show()}b=a.view.headerCt.getMenu().down('#groupToggleMenuItem');if(b){b.setChecked(!1,!0);b.disable()}},afterViewRender:function(){var a=this,b=a.view;b.on({scope:a,groupclick:a.onGroupClick});if(a.enableGroupingMenu){a.injectGroupingMenu()}a.pruneGroupedHeader();a.lastGrouper=a.getGridStore().getGrouper();if(a.disabled){a.disable()}},injectGroupingMenu:function(){var a=this,b=a.view.headerCt;b.showMenuBy=a.showMenuBy;b.getMenuItems=a.getMenuItems()},onColumnHideShow:function(l,m){var a=this,e=a.view,k=e.headerCt,i=k.getMenu(),c=i.activeHeader,f=i.down('#groupMenuItem'),g,h=a.grid.getVisibleColumnManager().getColumns().length,d,j,b;if(c&&f){g=c.groupable===!1||!c.dataIndex||a.view.headerCt.getVisibleGridColumns().length<2?'disable':'enable';f[g]()}if(e.rendered&&h){d=e.el.query('.'+a.ctCls);for(b=0,j=d.length;b','','
    {rowBody}
    ','','','{%','if(this.rowBody.bodyBefore) {','this.nextTpl.applyOut(values, out, parent);','}','%}',{priority:100,beginRowSync:function(a){a.add('rowBody',this.owner.eventSelector)},syncContent:function(e,d,f){var c=this.owner,b=Ext.fly(e).down(c.eventSelector,!0),a;if(b&&(a=Ext.fly(d).down(c.eventSelector,!0))){Ext.fly(b).syncContent(a)}}}],init:function(c){var a=this,b=a.view=c.getView();c.variableRowHeight=b.variableRowHeight=!0;b.rowBodyFeature=a;c.mon(b,{element:'el',click:a.onClick,scope:a});b.headerCt.on({columnschanged:a.onColumnsChanged,scope:a});b.addTpl(a.outerTpl).rowBody=a;b.addRowTpl(Ext.XTemplate.getTpl(this,'extraRowTpl')).rowBody=a;Ext.grid.feature.Feature.prototype.init.apply(this,arguments)},onClick:function(c){var b=this,a=c.getTarget(b.eventSelector);if(a&&Ext.fly(a=a.previousSibling||a.nextSibling).is(b.view.rowSelector)){c.target=a;b.view.handleEvent(c)}},getSelectedRow:function(c,b){var a=c.getNode(b);if(a){return Ext.fly(a).down(this.eventSelector)}return null},onColumnsChanged:function(c){var b=this.view.el.query(this.rowBodyTdSelector),d=c.getVisibleGridColumns().length,e=b.length,a;for(a=0;a{text} {linkHrefCls}{childElCls}" href="{href}" target="{hrefTarget}" hidefocus="true" unselectable="on" tabindex="{tabIndex}" {$}="{.}">{text}
    ',maskOnDisable:!1,iconAlign:'left',initComponent:function(){var a=this,b=a.cls?[a.cls]:[],c;if(a.hasOwnProperty('canActivate')){a.focusable=a.canActivate}if(a.plain){b.push('x-menu-item-plain')}if(b.length){a.cls=b.join(' ')}if(a.menu){c=a.menu;a.menu=null;a.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==!1&&!a.destroying&&!a.destroyed&&a.isVisible(!0)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.disabled){if(!a.plain){a.addCls(a.activeCls)}a.activated=!0;if(a.hasListeners.activate){a.fireEvent('activate',a)}}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(a.activated){if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=!1;if(a.hasListeners.deactivate){a.fireEvent('deactivate',a)}}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){for(var a=this.getRefOwner();a&&(a.isMenu&&a.floating||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},expandMenu:function(c,b){var a=this;if(a.activated&&a.menu){a.hideOnClick=!1;a.cancelDeferHide();b=b==null?a.menuExpandDelay:b;if(b===0){a.doExpandMenu(c)}else {a.cancelDeferExpand();a.expandMenuTimer=Ext.defer(a.doExpandMenu,b,a,[c])}}},doExpandMenu:function(c){var b=this,a=b.menu;if(!a.isVisible()){b.parentMenu.activeChild=a;a.ownerCmp=b;a.parentMenu=b.parentMenu;a.constrainTo=document.body;a.autoFocus=!c||!c.pointerType;a.showBy(b,b.menuAlign)}},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},getValue:function(){return this.value},hideMenu:function(b){var a=this;if(a.menu){a.cancelDeferExpand();a.hideMenuTimer=Ext.defer(a.doHideMenu,Ext.isNumber(b)?b:a.menuHideDelay,a)}},onClick:function(b){var a=this,e=a.clickHideDelay,f=b.browserEvent,d,c;if(!a.href||a.disabled){b.stopEvent();if(a.disabled){return !1}}if(a.disabled||a.handlingClick){return}if(a.hideOnClick){if(!e){a.deferHideParentMenus()}else {a.deferHideParentMenusTimer=Ext.defer(a.deferHideParentMenus,e,a)}}d=a.fireEvent('click',a,b);if(a.destroyed){return}if(d!==!1&&a.handler){Ext.callback(a.handler,a.scope,[a,b],0,a)}if(Ext.isIE9m){c=f.returnValue===!1?!0:!1}else {c=!!f.defaultPrevented}if(a.href&&b.type!=='click'&&!c){a.handlingClick=!0;a.itemEl.dom.click();a.handlingClick=!1}if(!a.hideOnClick){a.focus()}return d},onRemoved:function(){var a=this;if(a.activated&&a.parentMenu.activeItem===a){a.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);a.parentMenu=a.ownerCmp=null},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;a.cancelDeferExpand();a.cancelDeferHide();clearTimeout(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.onDestroy.apply(this,arguments)},beforeRender:function(){var a=this,c=a.glyph,j=Ext._glyphFontFamily,b=!!(a.icon||a.iconCls||c),f=!!a.menu,i=a.iconAlign==='right'&&!f,e=a.isMenuCheckItem,d=[],k=a.ownerCt,g=k.plain,h;if(a.plain){a.ariaEl='el'}Ext.Component.prototype.beforeRender.call(this);if(b){if(f&&a.showCheckbox){b=!1}}if(typeof c==='string'){h=c.split('@');c=h[0];j=h[1]}if(!g||b&&!i||e){if(k.showSeparator&&!g){d.push(a.indentCls)}else {d.push(a.indentNoSeparatorCls)}}if(f){d.push(a.indentRightArrowCls)}else {if(b&&(i||e)){d.push(a.indentRightIconCls)}}Ext.applyIf(a.renderData,{hasHref:!!a.href,href:a.href||'#',hrefTarget:a.hrefTarget,icon:a.icon,iconCls:a.iconCls,glyph:c,glyphCls:c?'x-menu-item-glyph':undefined,glyphFontFamily:j,hasIcon:b,hasMenu:f,indent:!g||b||e,isCheckItem:e,rightIcon:i,plain:a.plain,text:a.text,arrowCls:a.arrowCls,baseIconCls:a.baseIconCls,textCls:a.textCls,indentCls:d.join(' '),linkCls:a.linkCls,linkHrefCls:a.linkHrefCls,groupCls:a.group?a.groupCls:'',tabIndex:a.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,!0)}},getMenu:function(){return this.menu||null},setMenu:function(b,f){var a=this,e=a.menu,h=a.arrowEl,d=a.ariaEl.dom,c,g;if(e){e.ownerCmp=e.parentMenu=null;if(f===!0||f!==!1&&a.destroyMenu){Ext.destroy(e)}if(d){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns')}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});delete c['aria-haspopup'];delete c['aria-owns']}}if(b){g=b.isMenu;b=a.menu=Ext.menu.Manager.get(b,{ownerCmp:a,focusOnToFront:!1});b.setOwnerCmp(a,g);if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {b=a.menu=null}if(b&&a.rendered&&!a.destroying&&h){h[b?'addCls':'removeCls'](a.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(a){var b=this.iconEl,c=this.icon;if(b){b.src=a||Ext.BLANK_IMAGE_URL}this.icon=a;this.fireEvent('iconchange',this,c,a)},setIconCls:function(b){var a=this,c=a.iconEl,d=a.iconCls;if(c){if(a.iconCls){c.removeCls(a.iconCls)}if(b){c.addCls(b)}}a.iconCls=b;a.fireEvent('iconchange',a,d,b)},setText:function(b){var a=this,d=a.textEl||a.el,c=a.text;a.text=b;if(a.rendered){d.setHtml(b||'');a.updateLayout()}a.fireEvent('textchange',a,c,b)},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},clearTip:function(){if(Ext.quickTipsActive&&Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.itemEl)}},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c){a.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.itemEl.id},b));a.tooltip=b}else {a.itemEl.dom.setAttribute(a.getTipAttr(),b)}}else {a.tooltip=b}return a},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)},getFocusEl:function(){return this.plain?this.el:this.itemEl}}},0,['menuitem'],['component','box','menuitem'],{'component':!0,'box':!0,'menuitem':!0},['widget.menuitem'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.menu,'Item',Ext.menu,'TextItem'],0);Ext.cmd.derive('Ext.menu.CheckItem',Ext.menu.Item,{checkedCls:'x-menu-item-checked',uncheckedCls:'x-menu-item-unchecked',groupCls:'x-menu-group-icon',hideOnClick:!1,checkChangeDisabled:!1,submenuText:'{0} submenu',ariaRole:'menuitemcheckbox',childEls:['checkEl'],showCheckbox:!0,isMenuCheckItem:!0,checkboxCls:'x-menu-item-checkbox',initComponent:function(){var a=this;a.checked=!!a.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==!1){a.hideOnClick=!0}}},beforeRender:function(){var a=this,b;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(a.renderData,{checkboxCls:a.checkboxCls,showCheckbox:a.showCheckbox});b=a.ariaRenderAttributes||(a.ariaRenderAttributes={});b['aria-checked']=a.menu?'mixed':a.checked;if(a.menu){b['aria-label']=Ext.String.formatEncode(a.submenuText,a.text)}},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.setChecked(!a.checked,!0);if(a.checkChangeDisabled){a.disableCheckChange()}if(Ext.isGecko&&a.checkEl){a.checkEl.on('mousedown',a.onMouseDownCheck)}},disableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.addCls(a.disabledCls)}if(Ext.isIE8&&a.rendered){a.el.repaint()}a.checkChangeDisabled=!0},enableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.removeCls(a.disabledCls)}a.checkChangeDisabled=!1},onMouseDownCheck:function(a){a.preventDefault()},onClick:function(b){var a=this;if(!(a.disabled||a.checkChangeDisabled||a.checked&&a.group||a.menu&&'touch'===b.pointerType&&!a.checkEl.contains(b.target))){a.setChecked(!a.checked);if(b.type==='keydown'&&a.menu){return !1}}Ext.menu.Item.prototype.onClick.call(this,b)},onDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.onDestroy.apply(this,arguments)},setText:function(c){var a=this,b=a.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,c);if(b&&a.menu){b.setAttribute('aria-label',Ext.String.formatEncode(a.submenuText,c))}},setChecked:function(b,d){var a=this,f=a.checkedCls,e=a.uncheckedCls,c=a.el,g=a.ariaEl.dom;if(a.checked!==b&&(d||a.fireEvent('beforecheckchange',a,b)!==!1)){if(c){if(b){c.addCls(f);c.removeCls(e)}else {c.addCls(e);c.removeCls(f)}}if(g){g.setAttribute('aria-checked',a.menu?'mixed':!!b)}a.checked=b;Ext.menu.Manager.onCheckChange(a,b);if(!d){Ext.callback(a.checkHandler,a.scope,[a,b],0,a);a.fireEvent('checkchange',a,b)}}}},0,['menucheckitem'],['component','box','menuitem','menucheckitem'],{'component':!0,'box':!0,'menuitem':!0,'menucheckitem':!0},['widget.menucheckitem'],0,[Ext.menu,'CheckItem'],0);Ext.cmd.derive('Ext.menu.Separator',Ext.menu.Item,{focusable:!1,canActivate:!1,hideOnClick:!1,plain:!0,separatorCls:'x-menu-item-separator',text:' ',ariaRole:'separator',beforeRender:function(){this.addCls(this.separatorCls);Ext.menu.Item.prototype.beforeRender.call(this)}},0,['menuseparator'],['component','box','menuitem','menuseparator'],{'component':!0,'box':!0,'menuitem':!0,'menuseparator':!0},['widget.menuseparator'],0,[Ext.menu,'Separator'],0);Ext.define('Ext.theme.neptune.menu.Separator',{override:'Ext.menu.Separator',border:!0});Ext.cmd.derive('Ext.menu.Menu',Ext.panel.Panel,{enableKeyNav:!0,allowOtherMenus:!1,ariaRole:'menu',floating:!0,constrain:!0,hidden:!0,hideMode:'visibility',ignoreParentClicks:!1,isMenu:!0,showSeparator:!0,minWidth:undefined,defaultMinWidth:120,defaultAlign:'tl-bl?',focusOnToFront:!1,bringParentToFront:!1,defaultFocus:':focusable',menuClickBuffer:0,baseCls:'x-menu',_iconSeparatorCls:'x-menu-icon-separator',_itemCmpCls:'x-menu-item-cmp',layout:{type:'vbox',align:'stretchmax',overflowHandler:'Scroller'},initComponent:function(){var a=this,d=['x-menu'],c=a.bodyCls?[a.bodyCls]:[],e=a.floating!==!1,b={element:'el',click:a.onClick,mouseover:a.onMouseOver,scope:a};if(Ext.supports.Touch){b.pointerdown=a.onMouseOver}a.on(b);a.on({beforeshow:a.onBeforeShow,scope:a});if(a.plain){d.push('x-menu-plain')}a.cls=d.join(' ');c.push('x-menu-body',Ext.dom.Element.unselectableCls);a.bodyCls=c.join(' ');if(e){if(a.minWidth===undefined){a.minWidth=a.defaultMinWidth}}else {a.hidden=!!a.initialConfig.hidden;a.constrain=!1}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(a.getLayout(),{configureItem:a.configureItem})},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);a.hidden=this.hidden;return a},beforeRender:function(){var a=this;Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!a.getSizeModel().width.shrinkWrap){a.layout.align='stretch'}if(a.floating){a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!!a.autoShow}},onBoxReady:function(){var a=this,c=a._iconSeparatorCls,b=a.focusableKeyNav;if(b){b.map.processEventScope=a;b.map.processEvent=function(a){if(a.keyCode===a.ESC){a.target=this.el.dom}return a};b.map.addBinding([{key:Ext.event.Event.ESC,handler:a.onEscapeKey,scope:a},{key:/[\w]/,handler:a.onShortcutKey,scope:a,shift:!1,ctrl:!1,alt:!1}])}else {a.escapeKeyNav=new Ext.util.KeyNav(a.el,{eventName:'keydown',scope:a,esc:a.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(a.showSeparator){a.iconSepEl=a.body.insertFirst({role:'presentation',cls:c+' '+c+'-'+a.ui,html:' '})}if(Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){a.el.on({scope:a,click:a.preventClick,translate:!1})}a.mouseMonitor=a.el.monitorMouseLeave(100,a.onMouseLeave,a)},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var b=this,a=b.lastFocusedChild;if(a){a.blur()}},getItemFromEvent:function(d){var c=this,b=c.layout.getRenderTarget().dom,a=d.getTarget();while(a.parentNode!==b){a=a.parentNode;if(!a){return}}return Ext.getCmp(a.id)},lookupComponent:function(a){var b=this;if(typeof a==='string'){a=b.lookupItemFromString(a)}else {if(Ext.isObject(a)){a=b.lookupItemFromObject(a)}}if(!a.dock){a.minWidth=a.minWidth||b.minWidth}return a},lookupItemFromObject:function(a){var b=this;if(!a.isComponent){if(!a.xtype){a=Ext.create('Ext.menu.'+(Ext.isBoolean(a.checked)?'Check':'')+'Item',a)}else {a=Ext.ComponentManager.create(a,a.xtype)}}if(a.isMenuItem){a.parentMenu=b}return a},lookupItemFromString:function(a){return a==='separator'||a==='-'?new Ext.menu.Separator():new Ext.menu.Item({canActivate:!1,hideOnClick:!1,plain:!0,text:a})},configureItem:function(a){var c=this.owner,f='x-',e=c.ui,b,d;if(a.isMenuItem){a.setUI(e)}else {if(c.items.getCount()>1&&!a.rendered&&!a.dock){d=c._itemCmpCls;b=[d+' '+d+'-'+e];if(!c.plain&&(a.indent!==!1||a.iconCls==='no-icon')){b.push(f+'menu-item-indent-'+e)}if(a.rendered){a.el.addCls(b)}else {a.cls=(a.cls||'')+' '+b.join(' ')}a.$extraMenuCls=b}}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.destroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(b){var c=this,f=b.type,a,d,e=f==='keydown';if(c.disabled){b.stopEvent();return}a=c.getItemFromEvent(b);if(a&&a.isMenuItem){if(!a.menu||!c.ignoreParentClicks){d=a.onClick(b)}else {b.stopEvent()}if(a.menu&&d!==!1&&e){a.expandMenu(b,0)}}if(!a||a.disabled){a=undefined}c.fireEvent('click',c,a,b)},onDestroy:function(){var a=this;if(a.escapeKeyNav){a.escapeKeyNav.destroy()}a.parentMenu=a.ownerCmp=a.escapeKeyNav=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.menu.Manager.onHide(a);Ext.panel.Panel.prototype.onDestroy.apply(this,arguments)},onMouseLeave:function(a){if(this.disabled){return}this.fireEvent('mouseleave',this,a)},onMouseOver:function(c){var a=this,g=c.getRelatedTarget(),e=!a.el.contains(g),b=a.getItemFromEvent(c),d=a.parentMenu,f=a.ownerCmp;if(e&&d){d.setActiveItem(f);f.cancelDeferHide();d.mouseMonitor.mouseenter()}if(a.disabled){return}if(b){if(!b.containsFocus){b.focus()}if(b.expandMenu){b.expandMenu(c)}}if(e){a.fireEvent('mouseenter',a,c)}a.fireEvent('mouseover',a,b,c)},setActiveItem:function(a){var b=this;if(a&&a!==b.lastFocusedChild){b.focusChild(a,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(h,g){var e=String.fromCharCode(g.getCharCode()),c=this.query('>[text]'),f=c.length,a=this.lastFocusedChild,d=Ext.Array.indexOf(c,a),b=d;for(;;){if(++b===f){b=0}a=c[b];if(b===d){return}if(a.text&&a.text[0].toUpperCase()===e){a.focus();return}}},onFocusableContainerTabKey:function(a){if(this.floating){this.hide()}},onFocusableContainerEnterKey:function(a){this.onClick(a)},onFocusableContainerSpaceKey:function(a){this.onClick(a)},onFocusableContainerLeftKey:function(a){a.preventDefault();if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(b){var c=this,a=c.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)+f){c.up('menuitem').setChecked(!1,!0);if(h.gt.getValue()!=null){e.gt=null}}}}e[a.filterKey]=f;g.setValue(e);i.up('menu').hide()}},0,0,0,0,['grid.filter.date'],0,[Ext.grid.filters.filter,'Date'],0);Ext.cmd.derive('Ext.grid.filters.filter.List',Ext.grid.filters.filter.SingleFilter,{type:'list',operator:'in',itemDefaults:{checked:!1,hideOnClick:!1},idField:'id',labelField:'text',labelIndex:null,loadingText:'Loading...',loadOnShow:!0,single:!1,plain:!0,constructor:function(c){var a=this,b;Ext.grid.filters.filter.SingleFilter.prototype.constructor.call(this,c);a.labelIndex=a.labelIndex||a.column.dataIndex;if(!a.options&&a.value!=null&&a.active){b=a.getGridStore();if(!b.isEmptyStore){b.on(a.getGridStoreListeners())}a.grid.on('reconfigure',a.onReconfigure,a);a.inferOptionsFromGridStore=!0}},destroy:function(){var a=this,b=a.store,d=a.autoStore,c=a.gridStoreListeners;if(b){if(d||b.autoDestroy){b.destroy()}else {b.un('load',a.bindMenuStore,a)}a.store=null}if(a.inferOptionsFromGridStore){a.grid.un('reconfigure',a.onReconfigure,a)}if(c){a.getGridStore().un(c);a.gridStoreListeners=null}Ext.grid.filters.filter.SingleFilter.prototype.destroy.call(this)},activateMenu:function(){var f=this,d=f.filter.getValue(),c,a,e,b;if(!d||!d.length){return}c=f.menu.items;for(a=0,e=c.length;a-1){b.setChecked(!0,!0)}}},bindMenuStore:function(b){var a=this;if(a.grid.destroyed||a.preventFilterRemoval){return}a.createListStore(b);a.createMenuItems(a.store);a.loaded=!0},createListStore:function(d){var a=this,e=a.store,l=d.isStore,j=a.idField,i=a.labelField,h=!1,c,g,f,k,b;if(l){if(d!==a.getGridStore()){h=!0;e=a.store=d}else {a.autoStore=!0;c=a.getOptionsFromStore(d)}}else {c=[];for(f=0,k=d.length;ftablepanel:not(hidden)>tableview');if(a){a.focus()}},focusRow:function(c){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;b.focusRow(c)},focusCell:function(a){a.view.focusCell(a)},onRowFocus:function(){this.relayFn('onRowFocus',arguments)},isVisible:function(a){return this.ownerGrid.isVisible(a)},getFocusEl:function(){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;return b.getFocusEl()},getCellInclusive:function(a,c){var d=a.column,b=this.lockedGrid.getColumnManager().getColumns().length;if(d>=b){a=Ext.apply({},a);a.column-=b;return this.normalView.getCellInclusive(a,c)}else {return this.lockedView.getCellInclusive(a,c)}},getHeaderByCell:function(a){if(a){return this.getVisibleColumnManager().getHeaderById(a.getAttribute('data-columnId'))}return !1},onRowSelect:function(){this.relayFn('onRowSelect',arguments)},onRowDeselect:function(){this.relayFn('onRowDeselect',arguments)},onCellSelect:function(a){a.column.getView().onCellSelect({record:a.record,column:a.column})},onCellDeselect:function(a){a.column.getView().onCellDeselect({record:a.record,column:a.column})},getCellByPosition:function(a,c){var e=this,b=a.view,d=a.column;if(b===e){a=(new Ext.grid.CellContext(d.getView())).setPosition(a.record,a.column)}return b.getCellByPosition(a,c)},getRecord:function(b){var a=this.lockedView.getRecord(b);if(!a){a=this.normalView.getRecord(b)}return a},scrollBy:function(){var a=this.normalView;a.scrollBy.apply(a,arguments)},ensureVisible:function(){var a=this.normalView;a.ensureVisible.apply(a,arguments)},disable:function(){this.relayFn('disable',arguments)},enable:function(){this.relayFn('enable',arguments)},addElListener:function(){this.relayFn('addElListener',arguments)},refreshNode:function(){this.relayFn('refreshNode',arguments)},addRowCls:function(){this.relayFn('addRowCls',arguments)},removeRowCls:function(){this.relayFn('removeRowCls',arguments)},destroy:function(){var a=this;a.rendered=!1;a.bindStore(null,!1,'dataSource');Ext.destroy(a.lockedViewEventRelayers,a.normalViewEventRelayers);a.lockedViewEventRelayers=a.normalViewEventRelayers=null;a.callParent();Ext.destroy(a.loadMask,a.navigationModel,a.selModel);a.lockedView.lockingPartner=a.normalView.lockingPartner=null;a.lockedGrid=a.lockedView=a.normalGrid=a.normalView=null;a.loadMask=a.navigationModel=a.selModel=a.headerCt=null;a.ownerGrid=a.storeListeners=null}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable]],[Ext.grid.locking,'View',Ext.grid,'LockingView'],function(){this.borrow(Ext.Component,['up']);this.borrow(Ext.view.AbstractView,['doFirstRefresh','applyFirstRefresh']);this.borrow(Ext.view.Table,['cellSelector','selectedCellCls','selectedItemCls'])});Ext.cmd.derive('Ext.grid.locking.Lockable',Ext.Base,{alternateClassName:'Ext.grid.Lockable',syncRowHeight:!0,headerCounter:0,scrollDelta:40,lockedGridCls:'x-grid-inner-locked',normalGridCls:'x-grid-inner-normal',lockingBodyCls:'x-grid-locking-body',unlockText:'Unlock',lockText:'Lock',bothCfgCopy:['hideHeaders','enableColumnHide','enableColumnMove','enableColumnResize','sortableColumns','multiColumnSort','columnLines','rowLines','variableRowHeight','numFromEdge','trailingBufferZone','leadingBufferZone','scrollToLoadBuffer','syncRowHeight'],normalCfgCopy:['scroll'],lockedCfgCopy:[],determineXTypeToCreate:function(g){var f=this,a,b,d,e,c;if(f.subGridXType){a=f.subGridXType}else {if(!g){return 'gridpanel'}b=this.getXTypes().split('/');d=b.length;e=b[d-1];c=b[d-2];if(c!=='tablepanel'){a=c}else {a=e}}return a},injectLockable:function(){this.focusable=!1;this.lockable=!0;this.hasView=!0;var a=this,q=Ext.getScrollbarSize(),l=q.width,o=a.store=Ext.StoreManager.lookup(a.store),d=a.lockedViewConfig,g=a.normalViewConfig,s=Ext.Object,m,i,b,c,e,n,f,h,j=a.viewConfig,r=j&&j.loadMask,u=r!==undefined?r:a.loadMask,p=a.bufferedRenderer,k=l>0&&Ext.supports.touchScroll!==2,t=a.getInherited().rtl;m=a.constructLockableFeatures();a.features=null;i=a.constructLockablePlugins();a.plugins=i.topPlugins;b={id:a.id+'-locked',$initParent:a,isLocked:!0,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(!0),store:o,reserveScrollbar:k,scrollable:{indicators:{x:!0,y:!1}},scrollerOwner:!1,animate:!1,border:!1,cls:a.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.normalGrid.floatedFromCollapse},features:m.lockedFeatures,plugins:i.lockedPlugins};c={id:a.id+'-normal',$initParent:a,isLocked:!1,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(),store:o,reserveScrollbar:a.reserveScrollbar,scrollerOwner:!1,border:!1,cls:a.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.lockedGrid.floatedFromCollapse},features:m.normalFeatures,plugins:i.normalPlugins};a.addCls('x-grid-locked');Ext.copy(c,a,a.bothCfgCopy,!0);Ext.copy(b,a,a.bothCfgCopy,!0);Ext.copy(c,a,a.normalCfgCopy,!0);Ext.copy(b,a,a.lockedCfgCopy,!0);Ext.apply(c,a.normalGridConfig);Ext.apply(b,a.lockedGridConfig);for(e=0;e>#normalHeaderCt',items:e},j={itemId:'normalHeaderCt',stretchMaxPartner:'^^>>#lockedHeaderCt',items:f},l={locked:i,normal:j},g;if(Ext.isObject(b)){Ext.applyIf(i,b);Ext.applyIf(j,b);g=Ext.apply({},b);delete g.items;Ext.apply(c,g);b=b.items}c.constructing=!0;for(d=0,k=b.length;d0&&f){h.stopEvent();a+=e;d.setScrollY(a);b.normalGrid.getView().setScrollY(a);b.onNormalViewScroll()}}},onLockedViewScroll:function(){var f=this,e=f.lockedGrid.getView(),a=f.normalGrid.getView(),c=e.getScrollY(),g=a.getScrollY(),b,d;if(g!==c){a.setScrollY(c);if(a.bufferedRenderer){d=e.body.dom;b=a.body.dom;b.style.position='absolute';b.style.top=d.style.top}}},onNormalViewScroll:function(){var e=this,b=e.lockedGrid.getView(),c=e.normalGrid.getView(),f=b.getScrollY(),d=c.getScrollY(),a;if(d!==f){b.setScrollY(d);if(c.bufferedRenderer){a=b.body;if(a.dom){a.dom.style.position='absolute';a.translate(null,c.bufferedRenderer.bodyTop)}}}},syncRowHeights:function(){if(!this.destroyed){var f=this,b=f.normalGrid.getView(),a=f.lockedGrid.getView(),d=b.syncRowHeightBegin(),c=a.syncRowHeightBegin(),e;b.syncRowHeightMeasure(d);a.syncRowHeightMeasure(c);b.syncRowHeightFinish(d,c);a.syncRowHeightFinish(c,d);e=b.getScrollY();a.setScrollY(e)}},modifyHeaderCt:function(){var a=this;a.lockedGrid.headerCt.getMenuItems=a.getMenuItems(a.lockedGrid.headerCt.getMenuItems,!0);a.normalGrid.headerCt.getMenuItems=a.getMenuItems(a.normalGrid.headerCt.getMenuItems,!1);a.lockedGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.lockedGrid.headerCt.showMenuBy,a.showMenuBy);a.normalGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.normalGrid.headerCt.showMenuBy,a.showMenuBy)},onUnlockMenuClick:function(){this.unlock()},onLockMenuClick:function(){this.lock()},showMenuBy:function(f,g,c){var d=this.getMenu(),a=d.down('#unlockItem'),b=d.down('#lockItem'),e=a.prev();if(c.lockable===!1){e.hide();a.hide();b.hide()}else {e.show();a.show();b.show();if(!a.initialConfig.disabled){a.setDisabled(c.lockable===!1)}if(!b.initialConfig.disabled){b.setDisabled(!c.isLockable())}}},getMenuItems:function(d,b){var a=this,f=a.unlockText,h=a.lockText,g='x-hmenu-unlock',i='x-hmenu-lock',c=a.onUnlockMenuClick.bind(a),e=a.onLockMenuClick.bind(a);return function(){var a=d.call(this);a.push('-',{itemId:'unlockItem',iconCls:g,text:f,handler:c,disabled:!b});a.push({itemId:'lockItem',iconCls:i,text:h,handler:e,disabled:b});return a}},delaySyncLockedWidth:function(){var a=this,b=a.syncLockedWidthTask;if(!a.view.all.getCount()){return}if(!b){b=a.syncLockedWidthTask=new Ext.util.DelayedTask(a.syncLockedWidth,a)}b.delay(1)},syncLockedWidth:function(){var b=this,c=b.rendered,a=b.lockedGrid,g=a.view,d=b.normalGrid,e=a.getVisibleColumnManager().getColumns().length,f=d.getVisibleColumnManager().getColumns().length,h=b.syncLockedWidthTask;if(h){h.cancel()}Ext.suspendLayouts();if(f){d.show();if(e){if(c&&a.shrinkWrapColumns&&!a.headerCt.forceFit){delete a.flex;a.setWidth(a.headerCt.getTableWidth()+a.gridPanelBorderWidth)}a.addCls(b.lockedGridCls);a.show();if(a.split){b.child('splitter').show();b.addCls('x-grid-locked-split')}}else {if(c){a.getView().clearViewEl(!0)}a.hide();if(a.split){b.child('splitter').hide();b.removeCls('x-grid-locked-split')}}if(Ext.supports.touchScroll!==2&&Ext.Component.pendingLayouts){g.getScrollable().setX(!0)}if(c){b.ignoreMousewheel=g.scrollFlags.y}}else {d.hide();a.flex=1;delete a.width;a.removeCls(b.lockedGridCls);a.show();b.ignoreMousewheel=!0}Ext.resumeLayouts(!0);return [e,f]},onLockedHeaderSortChange:Ext.emptyFn,onNormalHeaderSortChange:Ext.emptyFn,lock:function(a,l,g){var e=this,i=e.normalGrid,b=e.lockedGrid,d=i.view,c=b.view,m=i.headerCt,h,k,j,f;a=a||m.getMenu().activeHeader;j=a.hasFocus;g=g||b.headerCt;k=a.ownerCt;if(!a.isLockable()){return}if(a.flex&&b.shrinkWrapColumns){a.width=a.getWidth();a.flex=null}Ext.suspendLayouts();if(b.hidden){if(!b.componentLayoutCounter){if(c.bufferedRenderer){c.bufferedRenderer.onViewResize(c,0,d.getHeight())}f=d.getScrollY()}b.show()}d.blockRefresh=c.blockRefresh=!0;a.ownerCmp=a.ownerCt;k.remove(a,!1);a.locked=!0;if(Ext.isDefined(l)){g.insert(l,a)}else {g.add(a)}d.blockRefresh=c.blockRefresh=!1;a.ownerCmp=null;h=e.syncLockedWidth();if(h[0]){b.getView().refreshView()}if(h[1]){i.getView().refreshView()}e.fireEvent('lockcolumn',e,a);Ext.resumeLayouts(!0);if(f){c.setScrollY(f);d.setScrollY(f)}if(j){a.focus()}},unlock:function(a,f,g){var b=this,e=b.normalGrid,d=b.lockedGrid,i=e.view,h=d.view,k=d.headerCt,c,j;if(!Ext.isDefined(f)){f=0}a=a||k.getMenu().activeHeader;j=a.hasFocus;g=g||e.headerCt;Ext.suspendLayouts();i.blockRefresh=h.blockRefresh=!0;a.ownerCmp=a.ownerCt;a.ownerCt.remove(a,!1);a.locked=!1;g.insert(f,a);i.blockRefresh=h.blockRefresh=!1;a.ownerCmp=null;c=b.syncLockedWidth();if(c[0]){d.getView().refreshView()}if(c[1]){e.getView().refreshView()}b.fireEvent('unlockcolumn',b,a);Ext.resumeLayouts(!0);if(j){a.focus()}},reconfigureLockable:function(a,f){var d=this,h=d.store,c=d.lockedGrid,e=d.normalGrid,b,g;if(a&&a!==h){a=Ext.data.StoreManager.lookup(a);d.store=a;c.view.blockRefresh=e.view.blockRefresh=!0;c.bindStore(a);b=c.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}e.bindStore(a);b=e.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}d.view.store=a;g=d.view.loadMask;if(g&&g.isLoadMask){g.bindStore(a)}d.view.bindStore(e.view.dataSource,!1,'dataSource');c.view.blockRefresh=e.view.blockRefresh=!1}if(f){c.reconfiguring=e.reconfiguring=!0;c.headerCt.removeAll();e.headerCt.removeAll();f=d.processColumns(f,c);c.headerCt.add(f.locked.items);e.headerCt.add(f.normal.items);c.reconfiguring=e.reconfiguring=!1;d.syncLockedWidth()}d.refreshCounter=c.view.refreshCounter},afterReconfigureLockable:function(){var a=this.lockedGrid.getView();if(this.refreshCounter===a.refreshCounter){this.view.refresh()}},constructLockableFeatures:function(){var b=this.features,a,e,c,d,f=0,g;if(b){if(!Ext.isArray(b)){b=[b]}c=[];d=[];g=b.length;for(;f0){a.onViewResize(b,null,e);if(c&&d.getCount()!==c.length){c.length=0;c.push.apply(c,a.store.getRange(d.startIndex,d.endIndex))}}}},beforeTableLayout:function(b){var a=this.view.body.dom;if(a){b.bodyHeight=a.offsetHeight;b.bodyWidth=a.offsetWidth}},afterTableLayout:function(d){var a=this,b=a.view,c;if(d.bodyHeight&&b.body.dom){delete a.rowHeight;a.refreshSize();c=b.body.dom.offsetHeight;if(c!==d.bodyHeight){a.onViewResize(b,null,b.el.lastBox.height);if(c=a.store.getCount()){a.setBodyTop(0)}else {if(a.bodyTop>a.scrollTop||a.bodyTop+cb){a.position=a.scrollTop=Math.max(b-a.bodyHeight,0);c.setScrollY(a.scrollTop)}if(a.bodyTop>b){c.body.translate(null,a.bodyTop=a.position)}if(c.getScrollable()){a.refreshScroller(c,b)}},refreshScroller:function(b,c){var a=b.getScrollable();if(a){if(a.setElementSize){a.setElementSize()}a.setSize({x:b.headerCt.getTableWidth(),y:c})}},setViewSize:function(c,o){var a=this,h=a.store,g=a.view,d=g.all,j=d.getCount(),e,f,b=a.view.lockingPartner&&a.view.lockingPartner.bufferedRenderer,i=j-c,n,m,l,k;if(b&&!o&&b.view.componentLayoutCounter){if(b.viewSize>c){c=b.viewSize}else {b.setViewSize(c,!0)}}i=j-c;if(i){a.scrollTop=g.getScrollY();a.viewSize=c;if(h.isBufferedStore){h.setViewSize(c)}if(j){k=h.getCount();e=d.startIndex;f=Math.min(e+c-1,k-1);if(e===d.startIndex&&f===d.endIndex){if(i<0){a.handleViewScroll(-1)}}else {if(b){b.disable()}if(i<0){if(k>j){h.getRange(d.endIndex+1,f,{callback:function(b,d){l=g.doAdd(b,d);g.fireEvent('itemadd',b,d,l);a.setBodyTop(a.bodyTop)}})}else {a.refreshView(0)}}else {e=d.endIndex-(i-1);f=d.endIndex;m=d.slice(e,f+1);d.removeRange(e,f,!0);if(g.hasListeners.itemremove){n=h.getRange(e,f);g.fireEvent('itemremove',n,e,m)}a.setBodyTop(a.bodyTop)}if(b){b.enable()}}}}return c},getViewRange:function(){var d=this,c=d.view.all,a=d.store,b=0;if(c.getCount()){b=c.startIndex}else {if(a.isBufferedStore){if(!a.currentPage){a.currentPage=1}b=c.startIndex=(a.currentPage-1)*(a.pageSize||1);a.currentPage=1}}if(a.data.getCount()){return a.getRange(b,b+(d.viewSize||a.defaultViewSize)-1)}else {return []}},onReplace:function(l,d,j,k){var a=this,c=a.view,b=c.all,i,g=b.getCount(),h=d+j.length-1,e=k.length-j.length,f=e*a.rowHeight;if(d>=b.startIndex+a.viewSize){a.refreshSize();return}if(g&&h=a.viewSize){b.moveBlock(e);a.refreshSize();i=b.startIndex;if(e>0){a.doNotMirror=!0;a.handleViewScroll(-1);a.doNotMirror=!1}if(b.startIndex===i){if(b.startIndex){a.setBodyTop(a.bodyTop+=f);c.suspendEvent('scroll');c.scrollBy(0,f);c.resumeEvent('scroll');a.position=a.scrollTop=c.getScrollY()}}else {c.suspendEvent('scroll');c.scrollBy(0,(i-b.startIndex)*a.rowHeight);c.resumeEvent('scroll')}c.refreshSize(b.getCount()!==g);return}if(g&&d>b.endIndex){a.refreshSize();if(e>0){a.onRangeFetched(null,b.startIndex,Math.min(l.getCount(),b.startIndex+a.viewSize)-1,null,!0)}c.refreshSize(b.getCount()!==g);return}if(d0?1:-1;if(Math.abs(c)>=20||b!==a.lastScrollDirection){a.lastScrollDirection=b;a.handleViewScroll(a.lastScrollDirection)}}},onViewScrollEnd:function(){if(this.needsPointerEventsFix){this.view.body.dom.style.pointerEvents=''}},handleViewScroll:function(h){var a=this,d=a.view.all,g=a.store,f=a.viewSize,e=g.getCount()-1,b,c;if(h===-1){if(d.startIndex){if(a.topOfViewCloseToEdge()){b=Math.max(0,a.getLastVisibleRowIndex()+a.trailingBufferZone-f)}}}else {if(d.endIndexa.scrollTop-a.numFromEdge*a.rowHeight}else {return a.getFirstVisibleRowIndex()-a.view.all.startIndexd){a=c-d+1}}}if(a===0&&c===0&&e===0){b.doRefreshView([],0,0)}else {g.getRange(a,c,{callback:b.doRefreshView,scope:b})}},doRefreshView:function(i,h,p,q){var a=this,b=a.view,c=b.all,l=c.startIndex,m=c.endIndex,e,f,n=c.getCount(),o,k=h!==c.startIndex,g,d,j;if(b.refreshCounter){if(b.hasListeners.beforerefresh&&b.fireEvent('beforerefresh',b)===!1){return}b.refreshing=a.refreshing=!0;j=b.saveFocusState();b.clearViewEl(!0);b.refreshCounter++;if(i.length){o=b.doAdd(i,h);if(k){e=c.item(l,!0);f=c.item(m,!0);if(e){d=-e.offsetTop}else {if(f){d=c.last(!0).offsetTop-f.offsetTop}}if(d){a.bodyTop=Math.max(a.bodyTop+d,0);a.scrollTop=a.bodyTop?a.scrollTop+d:0}else {a.bodyTop=g=h*a.rowHeight;a.scrollTop=Math.max(g-a.rowHeight*(gc.endIndex){r=c.startIndex-e;b.clearViewEl(!0);g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g);for(o=0;oc.endIndex||jp){d=a.scrollTop-a.rowHeight*p}}b.clearViewEl(!0);a.teleported=!1}if(!c.getCount()){g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g)}else {if(j>c.endIndex){l=Math.max(e-c.startIndex,0);if(k){i=c.item(c.startIndex+l,!0).offsetTop}g=c.scroll(Ext.Array.slice(h,c.endIndex+1-e),1,l);if(k){d=a.bodyTop+i}else {d=m}}else {l=Math.max(c.endIndex-j,0);u=c.startIndex;g=c.scroll(Ext.Array.slice(h,0,c.startIndex-e),-1,l);if(k){d=a.bodyTop-c.item(u,!0).offsetTop;if(!c.startIndex){if(d){b.setScrollY(a.position=a.scrollTop-=d);d=0}}else {if(d<0){i=c.startIndex*a.rowHeight;b.setScrollY(a.position=a.scrollTop+=i);d=a.bodyTop+i}}}else {d=m}}}a.position=a.scrollTop}if(t&&!v.contains(q)){n=b.actionableMode?b.actionPosition:b.lastFocused;if(n&&n.column){b.onFocusLeave({});n.column.focus()}}d=Math.max(Math.floor(d),0);if(b.positionBody){a.setBodyTop(d)}if(g&&f&&!f.disabled){f.scrollTop=f.position=a.scrollTop;if(f.view.ownerCt.isVisible()){s=f.onRangeFetched(null,e,j,x,!0);if(b.ownerGrid.syncRowHeight||f.variableRowHeight!==k){a.syncRowHeights(g,s);a.bodyHeight=b.body.dom.offsetHeight}}if(f.bodyTop!==d){f.setBodyTop(d)}f.view.setScrollY(a.scrollTop)}return g},syncRowHeights:function(b,e){var d=this,c=0,f=1,i=[],h=[],j=Ext.grid.locking.RowSynchronizer,a,g;if(b&&e){c=b.length;f=e.length}if(c!==f){b=d.view.all.slice();e=d.view.lockingPartner.all.slice();c=f=b.length}for(a=0;ae||i+a.bodyHeightc||j+a.bodyHeightc){return a.getLastVisibleRowIndex(f,b-1,e,c)}k=i+l[b].offsetHeight;if(k>=c){return b}else {if(b!==d){return a.getLastVisibleRowIndex(b+1,d,e,c)}}}return a.getFirstVisibleRowIndex()+Math.ceil(h/a.rowHeight)},getScrollHeight:function(){var a=this,j=a.view,d=j.all,i=a.store,c=i.getCount(),g=d.getCount(),h,f,e,b;if(!c){return 0}if(!a.hasOwnProperty('rowHeight')){if(g){if(a.variableRowHeight){a.rowHeight=Math.floor(a.bodyHeight/g)}else {h=d.first();f=h.getHeight();if(Ext.isIE8){e=h.getBorderWidth('b');if(e>0){f-=e}}a.rowHeight=f}}else {delete a.rowHeight}}if(a.variableRowHeight){if(d.endIndex===c-1){b=a.bodyTop+a.bodyHeight-1}else {b=Math.floor((c-g)*a.rowHeight)+a.bodyHeight;b+=a.bodyTop-d.startIndex*a.rowHeight}}else {b=Math.floor(c*a.rowHeight)}return a.scrollHeight=b},attemptLoad:function(b,c){var a=this;if(a.scrollToLoadBuffer){if(!a.loadTask){a.loadTask=new Ext.util.DelayedTask(a.doAttemptLoad,a,[])}a.loadTask.delay(a.scrollToLoadBuffer,a.doAttemptLoad,a,[b,c])}else {a.doAttemptLoad(b,c)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(b,c){var a=this;if(!a.destroyed){a.store.getRange(b,c,{loadId:++a.loadId,callback:function(e,f,g,d){if(d.loadId===a.loadId){a.onRangeFetched(e,f,g,d)}},fireEvent:!1})}},destroy:function(){var a=this,b=a.view;a.cancelLoad();if(b&&b.el){b.un('scroll',a.onViewScroll,a)}if(a.store){a.unbindStore()}a.viewListeners=a.gridListeners=a.view=a.grid=Ext.destroy(a.viewListeners,a.stretcher,a.gridListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,['plugin.bufferedrenderer'],0,[Ext.grid.plugin,'BufferedRenderer'],function(a){if(Ext.supports.Touch){a.prototype.leadingBufferZone=a.prototype.trailingBufferZone=2;a.prototype.numFromEdge=1}});Ext.cmd.derive('Ext.grid.plugin.Editing',Ext.plugin.Abstract,{clicksToEdit:2,triggerEvent:undefined,relayedEvents:['beforeedit','edit','validateedit','canceledit'],defaultFieldUI:'default',defaultFieldXType:'textfield',editStyle:'',constructor:function(b){var a=this;Ext.plugin.Abstract.prototype.constructor.call(this,b);a.mixins.observable.constructor.call(a);a.on('edit',function(c,d){a.fireEvent('afteredit',c,d)})},init:function(b){var a=this,c=b.ownerLockable;a.grid=b;a.view=b.view;a.initEvents();if(b.rendered){a.setup()}else {a.mon(b,{beforereconfigure:a.onBeforeReconfigure,reconfigure:a.onReconfigure,scope:a,beforerender:{fn:a.onBeforeRender,single:!0,scope:a}})}b.editorEventRelayers=b.relayEvents(a,a.relayedEvents);if(c){c.editorEventRelayers=c.relayEvents(a,a.relayedEvents)}b.isEditable=!0;b.editingPlugin=b.view.editingPlugin=a},onBeforeReconfigure:function(){this.reconfiguring=!0},onReconfigure:function(){this.setup();delete this.reconfiguring},onBeforeRender:function(){this.setup()},setup:function(){this.initFieldAccessors(this.grid.getTopLevelColumnManager().getColumns())},destroy:function(){var b=this,a=b.grid;Ext.destroy(b.keyNav);b.clearListeners();if(a){if(a.ownerLockable){Ext.destroy(a.ownerLockable.editorEventRelayers);a.ownerLockable.editorEventRelayers=null}Ext.destroy(a.editorEventRelayers);a.editorEventRelayers=null;a.editingPlugin=a.view.editingPlugin=b.grid=b.view=b.editor=b.keyNav=null}Ext.plugin.Abstract.prototype.destroy.call(this)},getEditStyle:function(){return this.editStyle},initFieldAccessors:function(a){if(a.isGroupHeader){a=a.getGridColumns()}else {if(!Ext.isArray(a)){a=[a]}}var d=this,c,h=a.length,e=function(c,b){return d.getColumnField(this,b)},f=function(){return d.hasColumnField(this)},g=function(b){d.setColumnField(this,b)},b;for(c=0;c[isFormField]'),j=g.length,b,a,c;for(b=0;b0);if(r){a.widthModel=a.heightModel=null;k=d.getSizeModel(b&&b.widthModel.pairsByHeightOrdinal[b.heightModel.ordinal]);if(j){a.sizeModel=k}a.widthModel=k.width;a.heightModel=k.height;if(b&&!a.isComponentChild){if(h.needsItemSize||!d.liquidLayout){b.remainingChildDimensions+=2}else {if(a.widthModel.calculated){++b.remainingChildDimensions}if(a.heightModel.calculated){++b.remainingChildDimensions}}}}else {if(c){a.recoverProp('x',c,e);a.recoverProp('y',c,e);if(a.widthModel.calculated){a.recoverProp('width',c,e)}else {if('width' in c){++m}}if(a.heightModel.calculated){a.recoverProp('height',c,e)}else {if('height' in c){++m}}if(b&&!a.isComponentChild){b.remainingChildDimensions+=m}}}if(c&&h&&h.manageMargins){a.recoverProp('margin-top',c,e);a.recoverProp('margin-right',c,e);a.recoverProp('margin-bottom',c,e);a.recoverProp('margin-left',c,e)}if(i){f=i.heightModel;g=i.widthModel;if(g&&f&&p&&o){if(p.shrinkWrap&&o.shrinkWrap){if(g.constrainedMax&&f.constrainedMin){f=null}}}if(g){a.widthModel=g}if(f){a.heightModel=f}if(i.state){Ext.apply(a.state,i.state)}}return s},initContinue:function(f){var b=this,a=b.ownerCtContext,g=b.target,c=b.widthModel,e=g.getInherited(),d;if(c.fixed){e.inShrinkWrapTable=!1}else {delete e.inShrinkWrapTable}if(f){if(a&&c.shrinkWrap){d=a.isBoxParent?a:a.boxParent;if(d){d.addBoxChild(b)}}else {if(c.natural){b.boxParent=a}}}return f},initDone:function(d){var a=this,b=a.props,c=a.state;if(a.remainingChildDimensions===0){b.containerChildrenSizeDone=!0}if(d){b.containerLayoutDone=!0}if(a.boxChildren&&a.boxChildren.length&&a.widthModel.shrinkWrap){a.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var a=this,b=a.target,c=a.ownerCtContext;if(c&&c.isTopLevel){a.animatePolicy=b.ownerLayout.getAnimatePolicy(a)}else {if(!c&&b.isCollapsingOrExpanding&&b.animCollapse){a.animatePolicy=b.componentLayout.getAnimatePolicy(a)}}if(a.animatePolicy){a.context.queueAnimation(a)}},addBlock:function(f,a,e){var b=this,d=b[f]||(b[f]={}),c=d[e]||(d[e]={});if(!c[a.id]){c[a.id]=a;++a.blockCount;++b.context.blockCount}},addBoxChild:function(a){var d=this,b,c=a.widthModel;a.boxParent=this;a.measuresBox=c.shrinkWrap?a.hasRawContent:c.natural;if(a.measuresBox){b=d.boxChildren;if(b){b.push(a)}else {d.boxChildren=[a]}}},addPositionStyles:function(b,c){var d=c.x,e=c.y,a=0;if(d!==undefined){b.left=d+'px';++a}if(e!==undefined){b.top=e+'px';++a}return a},addTrigger:function(c,e){var b=this,h=e?'domTriggers':'triggers',f=b[h]||(b[h]={}),g=b.context,a=g.currentLayout,d=f[c]||(f[c]={});if(!d[a.id]){d[a.id]=a;++a.triggerCount;d=g.triggers[e?'dom':'data'];(d[a.id]||(d[a.id]=[])).push({item:this,prop:c});if(b.props[c]!==undefined){if(!e||!(b.dirty&&c in b.dirty)){++a.firedTriggers}}}},boxChildMeasured:function(){var a=this,b=a.state,c=b.boxesMeasured=(b.boxesMeasured||0)+1;if(c===a.boxChildren.length){b.clearBoxWidth=1;++a.context.progressCount;a.markDirty()}},borderNames:['border-top-width','border-right-width','border-bottom-width','border-left-width'],marginNames:['margin-top','margin-right','margin-bottom','margin-left'],paddingNames:['padding-top','padding-right','padding-bottom','padding-left'],trblNames:['top','right','bottom','left'],cacheMissHandlers:{borderInfo:function(b){var a=b.getStyles(b.borderNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},marginInfo:function(b){var a=b.getStyles(b.marginNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},paddingInfo:function(b){var c=b.frameBodyContext||b,a=c.getStyles(b.paddingNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(c){var a=this[c],b;if(a){for(b in a){this.clearBlocks(c,b)}}},clearBlocks:function(g,f){var c=this[g],b=c&&c[f],d,a,e;if(b){delete c[f];d=this.context;for(e in b){a=b[e];--d.blockCount;if(!--a.blockCount&&!a.pending&&!a.done){d.queueLayout(a)}}}},block:function(b,a){this.addBlock('blocks',b,a)},domBlock:function(b,a){this.addBlock('domBlocks',b,a)},fireTriggers:function(g,e){var c=this[g],b=c&&c[e],f=this.context,a,d;if(b){for(d in b){a=b[d];++a.firedTriggers;if(!a.done&&!a.blockCount&&!a.pending){f.queueLayout(a)}}}},flush:function(){var a=this,d=a.dirty,b=a.state,c=a.el;a.dirtyCount=0;if('attributes' in a){c.set(a.attributes);delete a.attributes}if('innerHTML' in a){c.innerHTML=a.innerHTML;delete a.innerHTML}if(b&&b.clearBoxWidth){b.clearBoxWidth=0;a.el.setStyle('width',null);if(!--b.blocks){a.context.queueItemLayouts(a)}}if(d){delete a.dirty;a.writeProps(d,!0)}},flushAnimations:function(){var b=this,k=b.previousSize,a,h,l,f,d,g,e,m,c,j,i;if(k){a=b.target;h=a.getAnimationProps();l=h.duration;f=Ext.Object.getKeys(b.animatePolicy);d=Ext.apply({},{from:{},to:{},duration:l||Ext.fx.Anim.prototype.duration},h);for(g=0,e=0,m=f.length;e0},runLayout:function(a){var b=this,c=b.getCmp(a.owner);a.pending=!1;if(c.state.blocks){return}a.done=!0;++a.calcCount;++b.calcCount;a.calculate(c);if(a.done){b.layoutDone(a);if(a.completeLayout){b.queueCompletion(a)}if(a.finalizeLayout){b.queueFinalize(a)}}else {if(!a.pending&&!a.invalid&&!(a.blockCount+a.triggerCount-a.firedTriggers)){b.queueLayout(a)}}},setItemSize:function(a,g,f){var b=a,c=1,e,d;if(a.isComposite){b=a.elements;c=b.length;a=b[0]}else {if(!a.dom&&!a.el){c=b.length;a=b[0]}}for(d=0;da){a=d.weight}}},this);return a},getSplitterTarget:function(b){var a=b.collapseTarget;if(a&&a.collapsed){return a.placeholder||a}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},insertSplitter:function(a,f,e,d){var c=a.region,b=Ext.apply({xtype:'bordersplitter',collapseTarget:a,id:a.id+'-splitter',hidden:e,canResize:a.splitterResize!==!1,splitterFor:a,synthetic:!0},d),g=f+(c==='south'||c==='east'?0:1);if(a.collapseMode==='mini'){b.collapsedCls=a.collapsedCls}a.splitter=this.owner.add(g,b)},getMoveAfterIndex:function(b){var a=Ext.layout.container.Container.prototype.getMoveAfterIndex.apply(this,arguments);if(b.splitter){a++}return a},moveItemBefore:function(c,a){var b;if(a&&a.splitter){b=a.region;if(b==='south'||b==='east'){a=a.splitter}}return Ext.layout.container.Container.prototype.moveItemBefore.call(this,c,a)},onAdd:function(a,i){var b=this,d=a.placeholderFor,f=a.region,e,c,g,h;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(f){Ext.apply(a,b.regionFlags[f]);if(b.owner.isViewport){a.isViewportBorderChild=!0}if(a.initBorderRegion){a.initBorderRegion()}e=f==='center';if(e){b.centerRegion=a}else {c=a.split;g=!!a.hidden;if(typeof c==='object'){h=c;c=!0}if((a.isHorz||a.isVert)&&(c||a.collapseMode==='mini')){b.insertSplitter(a,i,g||!c,h)}}if(!e&&!a.hasOwnProperty('collapseMode')){a.collapseMode=b.panelCollapseMode}if(!a.hasOwnProperty('animCollapse')){if(a.collapseMode!=='placeholder'){a.animCollapse=!1}else {a.animCollapse=b.panelCollapseAnimate}}}else {if(d){Ext.apply(a,b.regionFlags[d.region]);a.region=d.region;a.weight=d.weight}}},onDestroy:function(){this.centerRegion=null;Ext.layout.container.Container.prototype.onDestroy.call(this)},onRemove:function(a,f){var d=this,h=a.region,e=a.splitter,c=d.owner,g=c.destroying,b;if(h){if(a.isCenter){d.centerRegion=null}delete a.isCenter;delete a.isHorz;delete a.isVert;if(e&&!c.destroying){c.doRemove(e,!0)}delete a.splitter}Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(!g&&!f&&a.rendered){b=a.getEl();if(b){b.setStyle('top','');b.setStyle(d.horzPositionProp,'')}}},regionMeta:{center:{splitterDelta:0},north:{splitterDelta:1},south:{splitterDelta:-1},west:{splitterDelta:1},east:{splitterDelta:-1}},regionFlags:{center:{isCenter:!0,isHorz:!1,isVert:!1},north:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'top'},south:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'bottom'},west:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'left'},east:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'right'}},setupSplitterNeighbors:function(l){var i={},m=l.length,k=this.touchedRegions,h,b,j,g,d,a,f,e,c;for(h=0;h{%this.renderBody(out, values)%}'],targetElCls:'x-center-target',beginLayout:function(b){var h=this,f=h.percentRe,e,g,d,c,a,j,i;Ext.layout.container.Fit.prototype.beginLayout.call(this,b);e=b.childItems;for(d=0,g=e.length;dm){a=m}}if(a-d<2){return null}c=new Ext.util.Region(v,t,s,u);i.constraintAdjusters[i.getCollapseDirection()](c,d,a,e);i.dragInfo={minRange:d,maxRange:a,targetSize:q};return c},constraintAdjusters:{left:function(a,c,b,d){a[0]=a.x=a.left=a.right+c;a.right+=b+d.getWidth()},top:function(a,c,b,d){a[1]=a.y=a.top=a.bottom+c;a.bottom+=b+d.getHeight()},bottom:function(a,c,b,d){a.bottom=a.top-c;a.top-=b+d.getHeight()},right:function(a,c,b,d){a.right=a.left-c;a[0]=a.x=a.left=a.x-b+d.getWidth()}},onBeforeStart:function(h){var c=this,f=c.splitter,d=f.collapseTarget,e=f.neighbors,g=e.length,a,b;if(d.collapsed){return !1}for(a=0;ad){a.minWidth=a.el.getWidth()*c}else {a.minHeight=a.el.getHeight()*d}}if(a.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)},a.throttle);a.resize=function(f,d,c){if(c){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)}else {e.apply(null,arguments)}}}},onBeforeStart:function(a){this.startBox=this.target.getBox()},getProxy:function(){var a=this;if(!a.dynamic&&!a.proxy){a.proxy=a.createProxy(a.target||a.el);a.hideProxy=!0}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(a){var b,c=this.proxyCls;if(a.isComponent){b=a.getProxy().addCls(c)}else {b=a.createProxy({tag:'div',role:'presentation',cls:c,id:a.id+'-rzproxy'},Ext.getBody())}b.removeCls('x-proxy-el');return b},onStart:function(a){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(c,b){var a=Ext.fly(b.parentNode);Ext.dd.DragTracker.prototype.onMouseDown.apply(this,arguments);if(a&&a.shim){a.maskIframes()}},onMouseUp:function(b){var a=Ext.fly(this.dragTarget.parentNode);Ext.dd.DragTracker.prototype.onMouseUp.apply(this,arguments);if(a&&a.shim){a.unmaskIframes()}},onDrag:function(a){if(this.dynamic||this.proxy){this.updateDimensions(a)}},updateDimensions:function(s,r){var c=this,h=c.activeResizeHandle.region,d=c.getOffset(c.constrainTo?'dragTarget':null),b=c.startBox,n,f=0,e=0,k,j,l=0,m=0,q,i,g,a,o,p;h=c.convertRegionName(h);switch(h){case 'south':e=d[1];g=2;break;case 'north':e=-d[1];m=-e;g=2;break;case 'east':f=d[0];g=1;break;case 'west':f=-d[0];l=-f;g=1;break;case 'northeast':e=-d[1];m=-e;f=d[0];i=[b.x,b.y+b.height];g=3;break;case 'southeast':e=d[1];f=d[0];i=[b.x,b.y];g=3;break;case 'southwest':f=-d[0];l=-f;e=d[1];i=[b.x+b.width,b.y];g=3;break;case 'northwest':e=-d[1];m=-e;f=-d[0];l=-f;i=[b.x+b.width,b.y+b.height];g=3;break;}a={width:b.width+f,height:b.height+e,x:b.x+l,y:b.y+m};k=Ext.Number.snap(a.width,c.widthIncrement);j=Ext.Number.snap(a.height,c.heightIncrement);if(k!==a.width||j!==a.height){switch(h){case 'northeast':a.y-=j-a.height;break;case 'north':a.y-=j-a.height;break;case 'southwest':a.x-=k-a.width;break;case 'west':a.x-=k-a.width;break;case 'northwest':a.x-=k-a.width;a.y-=j-a.height;}a.width=k;a.height=j}if(a.widthc.maxWidth){a.width=Ext.Number.constrain(a.width,c.minWidth,c.maxWidth);if(l){a.x=b.x+(b.width-a.width)}}else {c.lastX=a.x}if(a.heightc.maxHeight){a.height=Ext.Number.constrain(a.height,c.minHeight,c.maxHeight);if(m){a.y=b.y+(b.height-a.height)}}else {c.lastY=a.y}if(c.preserveRatio||s.shiftKey){n=c.startBox.width/c.startBox.height;o=Math.min(Math.max(c.minHeight,a.width/n),c.maxHeight);p=Math.min(Math.max(c.minWidth,a.height*n),c.maxWidth);if(g===1){a.height=o}else {if(g===2){a.width=p}else {q=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(q>n){a.height=o}else {a.width=p}if(h==='northeast'){a.y=b.y-(a.height-b.height)}else {if(h==='northwest'){a.y=b.y-(a.height-b.height);a.x=b.x-(a.width-b.width)}else {if(h==='southwest'){a.x=b.x-(a.width-b.width)}}}}}}c.setPosition=a.x!==c.startBox.x||a.y!==c.startBox.y;c.resize(a,r)},resize:function(b,e){var a=this,c,d=a.setPosition;if(a.dynamic||!a.dynamic&&e){if(d){a.target.setBox(b)}else {a.target.setSize(b.width,b.height)}}if(!e){c=a.getProxy();if(c&&c!==a.target){if(d||a.hideProxy){c.setBox(b)}else {c.setSize(b.width,b.height)}}}},onEnd:function(a){this.updateDimensions(a,!0);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,'ResizeTracker'],0);Ext.cmd.derive('Ext.resizer.Resizer',Ext.Base,{alternateClassName:'Ext.Resizable',handleCls:'x-resizable-handle',overCls:'x-resizable-handle-over',pinnedCls:'x-resizable-pinned',wrapCls:'x-resizable-wrap',wrappedCls:'x-resizable-wrapped',delimiterRe:/(?:\s*[,;]\s*)|\s+/,dynamic:!0,handles:'s e se',height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:!1,preserveRatio:!1,transparent:!1,possiblePositions:{n:'north',s:'south',e:'east',w:'west',se:'southeast',sw:'southwest',nw:'northwest',ne:'northeast'},ariaRole:'presentation',constructor:function(e){var a=this,d=a.handles,q=Ext.dom.Element.unselectableCls,h=[],b,k,i,m,p,c,f,n,l,g,o,j;if(Ext.isString(e)||Ext.isElement(e)||e.dom){b=e;e=arguments[1]||{};e.target=b}a.mixins.observable.constructor.call(a,e);b=a.target;if(b){if(b.isComponent){b.addClsWithUI('resizable');if(b.minWidth){a.minWidth=b.minWidth}if(b.minHeight){a.minHeight=b.minHeight}if(b.maxWidth){a.maxWidth=b.maxWidth}if(b.maxHeight){a.maxHeight=b.maxHeight}if(b.floating){if(!a.hasOwnProperty('handles')){a.handles='n ne e se s sw w nw'}}a.el=b.getEl()}else {b=a.el=a.target=Ext.get(b)}}else {b=a.target=a.el=Ext.get(a.el)}a.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(a.width)){a.width=Ext.Number.constrain(a.width,a.minWidth,a.maxWidth)}if(Ext.isNumber(a.height)){a.height=Ext.Number.constrain(a.height,a.minHeight,a.maxHeight)}if(a.width!==null||a.height!==null){a.target.setSize(a.width,a.height)}m=a.el.dom.tagName.toUpperCase();if(m==='TEXTAREA'||m==='IMG'||m==='TABLE'){a.originalTarget=a.target;g=b.isComponent?b.getEl():b;a.el.addCls(a.wrappedCls);a.target=a.el=a.el.wrap({role:'presentation',cls:a.wrapCls,id:a.el.id+'-rzwrap',style:g.getStyle(['margin-top','margin-bottom'])});o=g.getPositioning();a.el.setPositioning(o);g.clearPositioning();l=g.getBox();if(o.position!=='absolute'){l.x=0;l.y=0}a.el.setBox(l);g.setStyle('position','absolute');a.isTargetWrapped=!0}a.el.position();if(a.pinned){a.el.addCls(a.pinnedCls)}a.resizeTracker=new Ext.resizer.ResizeTracker({disabled:a.disabled,target:b,el:a.el,constrainTo:a.constrainTo,handleCls:a.handleCls,overCls:a.overCls,throttle:a.throttle,proxy:a.originalTarget?a.el:null,dynamic:a.originalTarget?!0:a.dynamic,originalTarget:a.originalTarget,delegate:'.'+a.handleCls,preserveRatio:a.preserveRatio,heightIncrement:a.heightIncrement,widthIncrement:a.widthIncrement,minHeight:a.minHeight,maxHeight:a.maxHeight,minWidth:a.minWidth,maxWidth:a.maxWidth});a.resizeTracker.on({mousedown:a.onBeforeResize,drag:a.onResize,dragend:a.onResizeEnd,scope:a});if(a.handles==='all'){a.handles='n s e w ne nw se sw'}d=a.handles=a.handles.split(a.delimiterRe);i=a.possiblePositions;p=d.length;k=a.handleCls+' '+a.handleCls+'-{0}';if(a.target.isComponent){j=a.target.baseCls;k+=' '+j+'-handle '+j+'-handle-{0}';if(Ext.supports.CSS3BorderRadius){k+=' '+j+'-handle-{0}-br'}}for(c=0;c')}}Ext.DomHelper.append(a.el,h.join(''));h.length=0;for(c=0;c-1){this.doSelect(a.record,!1,b)}},onCellDeselect:function(a,b){if(a&&a.rowIdx!==undefined){this.doDeselect(a.record,b)}},onSelectChange:function(g,f,e,h){var b=this,a,c,d;if(f){a=b.nextSelection;c='select'}else {a=b.selection;c='deselect'}d=a.view||b.primaryView;if((e||b.fireEvent('before'+c,b,g,a.rowIdx,a.colIdx))!==!1&&h()!==!1){if(f){d.onCellSelect(a)}else {d.onCellDeselect(a);delete b.selection}if(!e){b.fireEvent(c,b,g,a.rowIdx,a.colIdx)}}},refresh:function(){var b=this.getPosition(),a;if(b&&(a=this.store.indexOf(this.selected.last()))!==-1){b.rowIdx=a}},onColumnMove:function(b,d,c,e){var a=b.up('tablepanel');if(a){this.onViewRefresh(a.view)}},onUpdate:function(c){var a=this,b;if(a.isSelected(c)){b=a.selecting?a.nextSelection:a.selection;a.view.onCellSelect(b)}},onViewRefresh:function(d){var f=this,b=f.getPosition(),g,c=d.headerCt,e,a;if(b&&b.view===d){e=b.record;a=b.column;if(!a.isDescendantOf(c)){a=c.queryById(a.id)||c.down('[text="'+a.text+'"]')||c.down('[dataIndex="'+a.dataIndex+'"]')}if(b.record){if(a&&d.store.indexOfId(e.getId())!==-1){g=(new Ext.grid.CellContext(d)).setPosition({row:e,column:a});f.setPosition(g)}}else {f.selection=null}}},selectByPosition:function(b,a){this.setPosition(b,a)}},0,0,0,0,['selection.cellmodel'],0,[Ext.selection,'CellModel'],0);Ext.cmd.derive('Ext.selection.RowModel',Ext.selection.DataViewModel,{enableKeyNav:!0,isRowModel:!0,deselectOnContainerClick:!1,onUpdate:function(b){var d=this,a=d.view,c;if(a&&d.isSelected(b)){c=a.indexOf(b);a.onRowSelect(c);if(b===d.lastFocused){a.onRowFocus(c,!0)}}},onSelectChange:function(c,g,e,j){var a=this,i=a.views||[a.view],k=i.length,b=a.store.indexOf(c),h=g?'select':'deselect',f,d;if((e||a.fireEvent('before'+h,a,c,b))!==!1&&j()!==!1){for(f=0;f '},selectByPosition:function(a,b){if(!a.isCellContext){a=(new Ext.grid.CellContext(this.view)).setPosition(a.row,a.column)}if(!this.checkOnly||a.column===this.column){Ext.selection.RowModel.prototype.selectByPosition.call(this,a,b)}},onSelectChange:function(){Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(!this.suspendChange){this.updateHeaderState()}},onStoreLoad:function(){Ext.selection.RowModel.prototype.onStoreLoad.apply(this,arguments);this.updateHeaderState()},onStoreAdd:function(){Ext.selection.RowModel.prototype.onStoreAdd.apply(this,arguments);this.updateHeaderState()},onStoreRemove:function(){Ext.selection.RowModel.prototype.onStoreRemove.apply(this,arguments);this.updateHeaderState()},onStoreRefresh:function(){Ext.selection.RowModel.prototype.onStoreRefresh.apply(this,arguments);this.updateHeaderState()},maybeFireSelectionChange:function(a){if(a&&!this.suspendChange){this.updateHeaderState()}Ext.selection.RowModel.prototype.maybeFireSelectionChange.apply(this,arguments)},resumeChanges:function(){Ext.selection.RowModel.prototype.resumeChanges.call(this);if(!this.suspendChange){this.updateHeaderState()}},updateHeaderState:function(){var a=this,e=a.store,g=e.getCount(),h=a.views,c=!1,f=0,d,i,b;if(!e.isBufferedStore&&g>0){d=a.selected;c=!0;for(b=0,i=d.getCount();b style="{bodyStyle}">{%this.renderContainer(out,values)%}',_reverseDockNames:{left:'right',right:'left'},_layoutAlign:{top:'end',right:'begin',bottom:'begin',left:'end'},initComponent:function(){var a=this,b=a.initialConfig.layout,d=b&&b.align,c=b&&b.overflowHandler;if(a.plain){a.addCls(a.baseCls+'-plain')}Ext.panel.Bar.prototype.initComponent.call(this);a.setLayout({align:d||(a.getTabStretchMax()?'stretchmax':a._layoutAlign[a.dock]),overflowHandler:c||'scroller'});a.on({click:a.onClick,element:'el',scope:a})},ensureTabVisible:function(a){var b=this,d=b.tabPanel,c=b.layout.overflowHandler;if(b.rendered&&c&&b.tooNarrow&&c.scrollToItem){if(a||a===0){if(!a.isTab){if(Ext.isNumber(a)){a=this.items.getAt(a)}else {if(a.isComponent&&d&&d.items.contains(a)){a=a.tab}}}}if(!a){a=b.activeTab}if(a){c.scrollToItem(a)}}},initRenderData:function(){var a=this;return Ext.apply(Ext.panel.Bar.prototype.initRenderData.call(this),{bodyCls:a.bodyCls,baseBodyCls:a._baseBodyCls,bodyTargetCls:a.bodyTargetCls,stripCls:a._stripCls,dock:a.dock})},setDock:function(f){var b=this,a=b.items,d=b.ownerCt,e,c,g;a=a&&a.items;if(a){for(c=0,g=a.length;c1){if(a&&a!==b&&!a.disabled){c=a}else {c=b.next('tab[disabled=false]')||b.prev('tab[disabled=false]')}}return c||d.activeTab},setActiveTab:function(b,c){var a=this;if(!b.disabled&&b!==a.activeTab){if(a.activeTab){if(a.activeTab.destroyed){a.previousTab=null}else {a.previousTab=a.activeTab;a.activeTab.deactivate();a.deactivateFocusable(a.activeTab)}}b.activate();a.activateFocusable(b);a.activeTab=b;a.needsScroll=!0;if(!c){a.fireEvent('change',a,b,b.card);a.updateLayout()}}},privates:{adjustTabPositions:function(){var g=this,f=g.items.items,h=f.length,a,b,e,c,d;if(!Ext.isIE8){d=g._getTabAdjustProp();while(h--){a=f[h];e=a.el;b=a.lastBox;c=a.isTab?a.getActualRotation():0;if(c===1&&a.isVisible()){e.setStyle(d,b.x+b.width+'px')}else {if(c===2&&a.isVisible()){e.setStyle(d,b.x-b.height+'px')}}}}},applyTargetCls:function(a){this.bodyTargetCls=a},_getTabAdjustProp:function(){return 'left'},getTargetEl:function(){return this.body||this.frameBody||this.el},onClick:function(c,g){var f=this,e,a,b,d;if(c.getTarget('.x-box-scroller')){return}if(Ext.isIE8&&f.vertical){d=f.getTabInfoFromPoint(c.getXY());a=d.tab;b=d.close}else {e=c.getTarget('.'+Ext.tab.Tab.prototype.baseCls);a=e&&Ext.getCmp(e.id);b=a&&a.closeEl&&g===a.closeEl.dom}if(b){c.preventDefault()}if(a&&a.isDisabled&&!a.isDisabled()){a.beforeClick(b);if(a.closable&&b){a.onCloseClick()}else {f.doActivateTab(a)}}},doActivateTab:function(a){var b=this.tabPanel;if(b){if(!a.disabled){b.setActiveTab(a.card)}}else {this.setActiveTab(a)}},onFocusableContainerFocus:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocus.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},onFocusableContainerFocusEnter:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocusEnter.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},focusChild:function(d,c){var b=this,e=b.mixins.focusablecontainer,a;a=e.focusChild.call(b,d,c);if(b.activateOnFocus&&a&&a.isTab){b.doActivateTab(a)}}}},0,['tabbar'],['component','box','container','tabbar'],{'component':!0,'box':!0,'container':!0,'tabbar':!0},['widget.tabbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.tab,'Bar'],0);Ext.cmd.derive('Ext.tab.Panel',Ext.panel.Panel,{alternateClassName:['Ext.TabPanel'],config:{tabBar:undefined,tabPosition:'top',tabRotation:'default',tabStretchMax:!0},removePanelHeader:!0,plain:!1,itemCls:'x-tabpanel-child',minTabWidth:undefined,maxTabWidth:undefined,deferredRender:!0,_defaultTabRotation:{top:0,right:1,bottom:0,left:2},initComponent:function(){var a=this,c=a.activeTab!==null?a.activeTab||0:null,d=a.dockedItems,b=a.header,f=a.tabBarHeaderPosition,e=a.getTabBar(),g;a.layout=new Ext.layout.container.Card(Ext.apply({owner:a,deferredRender:a.deferredRender,itemCls:a.itemCls,activeItem:c},a.layout));if(f!=null){b=a.header=Ext.apply({},b);g=b.items=b.items?b.items.slice():[];b.itemPosition=f;g.push(e);b.hasTabBar=!0}else {d=[].concat(a.dockedItems||[]);d.push(e);a.dockedItems=d}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);c=a.activeTab=a.getComponent(c);if(c){e.setActiveTab(c.tab,!0)}},onRender:function(){var b=this.items.items,c=b.length,a;Ext.panel.Panel.prototype.onRender.apply(this,arguments);for(a=0;a','
    lineempty" role="presentation">
    ','','
    -end-plus {expanderCls}" role="presentation">
    ','','
    {checkboxCls}-checked">
    ','
    ','',' role="presentation" class="{childCls} {baseIconCls} {customIconCls} ','{baseIconCls}-leafparent-expandedparent {iconCls}" ','style="background-image:url({icon})"/>>','','{value}','','{value}',''],uiFields:{checked:1,icon:1,iconCls:1},rowFields:{expanded:1,loaded:1,expandable:1,leaf:1,loading:1,qtip:1,qtitle:1,cls:1},initComponent:function(){var a=this;a.rendererScope=a.scope;a.setupRenderer();a.innerRenderer=a.renderer;a.renderer=a.treeRenderer;Ext.grid.column.Column.prototype.initComponent.call(this);a.scope=a;a.hasCustomRenderer=a.innerRenderer&&a.innerRenderer.length>1},treeRenderer:function(i,a,c,g,f,h,j){var e=this,d=c.get('cls'),b;if(a&&d){a.tdCls+=' '+d}b=e.initTemplateRendererData(i,a,c,g,f,h,j);return e.getTpl('cellTpl').apply(b)},initTemplateRendererData:function(j,i,d,m,l,n,k){var a=this,f=a.innerRenderer,b=d.data,c=d.parentNode,g=k.rootVisible,h=[],e;while(c&&(g||c.data.depth>0)){e=c.data;h[g?e.depth:e.depth-1]=e.isLast?0:1;c=c.parentNode}return {record:d,baseIconCls:a.iconCls,customIconCls:b.icon||b.iconCls?a.customIconCls:'',iconCls:b.iconCls,icon:b.icon,checkboxCls:a.checkboxCls,checked:b.checked,elbowCls:a.elbowCls,expanderCls:a.expanderCls,textCls:a.textCls,leaf:b.leaf,expandable:d.isExpandable(),expanded:b.expanded,isLast:d.isLastVisible(),blankUrl:Ext.BLANK_IMAGE_URL,href:b.href,hrefTarget:b.hrefTarget,lines:h,metaData:i,childCls:a.getChildCls?a.getChildCls()+' ':'',value:f?f.apply(a.rendererScope,arguments):j}},shouldUpdateCell:function(f,a){var e=this,c=0,d,b;if(a){d=a.length;for(;c1;Ext.grid.NavigationModel.prototype.initKeyNav.call(this,e);for(b=0,d=a.keyNav.length;b1},onCellClick:function(f,e,c,d,g,b,a){Ext.grid.NavigationModel.prototype.onCellClick.call(this,f,e,c,d,g,b,a);return !a.nodeToggled},onKeyLeft:function(b){var c=this,d=b.view,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyLeft.call(this,b)}if(b.position.column.isTreeColumn&&a.isExpanded()){d.collapse(a)}else {a=a.parentNode;if(a&&!(a.isRoot()&&!d.rootVisible)){c.setPosition(a,null,b)}}},onKeyRight:function(b){var c=this,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyRight.call(this,b)}if(!a.isLeaf()){if(b.position.column.isTreeColumn&&!a.isExpanded()){b.view.expand(a)}else {if(a.isExpanded()){a=a.childNodes[0];if(a){c.setPosition(a)}}}}},onKeyEnter:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeyEnter.call(this,a)}},onKeySpace:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeySpace.call(this,a)}},toggleCheck:function(a){this.view.onCheckChange(a)},onAsterisk:function(a){this.view.ownerCt.expandAll()}},0,0,0,0,['view.navigation.tree'],0,[Ext.tree,'NavigationModel'],0);Ext.cmd.derive('Ext.tree.View',Ext.view.Table,{config:{selectionModel:{type:'treemodel'}},isTreeView:!0,loadingCls:'x-grid-tree-loading',expandedCls:'x-grid-tree-node-expanded',leafCls:'x-grid-tree-node-leaf',expanderSelector:'.x-tree-expander',checkboxSelector:'.x-tree-checkbox',expanderIconOverCls:'x-tree-expander-over',nodeAnimWrapCls:'x-tree-animator-wrap',ariaRole:'tree',loadMask:!1,rootVisible:!0,expandDuration:250,collapseDuration:250,toggleOnDblClick:!0,stripeRows:!1,treeRowTpl:['{%','this.processRowValues(values);','this.nextTpl.applyOut(values, out, parent);','%}',{priority:10,processRowValues:function(a){var b=a.record,c=a.view;a.rowAttr['data-qtip']=b.get('qtip')||'';a.rowAttr['data-qtitle']=b.get('qtitle')||'';if(b.isExpanded()){a.rowClasses.push(c.expandedCls)}if(b.isLeaf()){a.rowClasses.push(c.leafCls)}if(b.isLoading()){a.rowClasses.push(c.loadingCls)}}}],initComponent:function(){var a=this;if(a.bufferedRenderer){a.animate=!1}else {if(a.initialConfig.animate===undefined){a.animate=Ext.enableFx}}a.store=a.panel.getStore();a.onRootChange(a.store.getRoot());a.animQueue={};a.animWraps={};Ext.view.Table.prototype.initComponent.call(this);a.store.setRootVisible(a.rootVisible);a.addRowTpl(Ext.XTemplate.getTpl(a,'treeRowTpl'))},onFillComplete:function(f,d,b){var a=this,e=a.store,c=e.indexOf(b[0]);d.triggerUIUpdate();if(!b.length||c===-1){return}a.onAdd(a.store,b,c);a.refreshPartner()},refreshPartner:function(){var a=this.lockingPartner;if(a){a.refresh()}},afterComponentLayout:function(e,d,c,b){var a=this.getScrollable();Ext.view.Table.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&!this.bufferedRenderer){a.refresh()}},processUIEvent:function(a){if(a.getTarget('.'+this.nodeAnimWrapCls,this.el)){return !1}return Ext.view.Table.prototype.processUIEvent.call(this,a)},setRootNode:function(a){this.node=a},getChecked:function(){var a=[];this.node.cascadeBy(function(b){if(b.get('checked')){a.push(b)}});return a},isItemChecked:function(a){return a.get('checked')},createAnimWrap:function(b,e){var d=this,c=d.getNode(b),a;a=Ext.fly(c).insertSibling({role:'presentation',tag:'div',cls:d.nodeAnimWrapCls},'after');return {record:b,node:c,el:a,expanding:!1,collapsing:!1,animateEl:a,targetEl:a}},getAnimWrap:function(a,d){if(!this.animate){return null}var c=this.animWraps,b=c[a.internalId];if(d!==!1){while(!b&&a){a=a.parentNode;if(a){b=c[a.internalId]}}}return b},doAdd:function(h,c){var d=this,l=h[0],i=l.parentNode,m=d.all,e,a=d.getAnimWrap(i),g,f,k,j,b;if(!a||!a.expanding){return Ext.view.Table.prototype.doAdd.call(this,h,c)}j=d.bufferRender(h,c,!0);b=j.children;i=a.record;g=a.targetEl;f=g.dom.childNodes;k=f.length;e=c-d.indexInStore(i)-1;if(!k||e>=k){g.appendChild(j.fragment,!0)}else {Ext.fly(f[e]).insertSibling(b,'before',!0)}m.insert(c,b);return b},onRemove:function(h,c,b){var a=this,g,d,e=a.hasListeners.remove,f;if(a.viewReady){g=a.store.getCount()===0;if(a.bufferedRenderer){return Ext.view.Table.prototype.onRemove.call(this,h,c,b)}if(e){f=this.all.slice(b,b+c.length)}if(g){a.refresh()}else {for(d=c.length-1,b+=d;d>=0;--d,--b){a.doRemove(c[d],b)}a.refreshSizePending=!0}if(e){a.fireEvent('itemremove',c,b,f,a)}}},doRemove:function(c,b){var g=this,f=g.all,a=g.getAnimWrap(c),d=f.item(b),e=d?d.dom:null;if(!e||!a||!a.collapsing){return Ext.view.Table.prototype.doRemove.call(this,c,b)}a.targetEl.dom.insertBefore(e,a.targetEl.dom.firstChild);f.removeElement(b)},onBeforeExpand:function(c,d,e){var b=this,a;if(b.rendered&&b.all.getCount()&&b.animate){if(b.getNode(c)){a=b.getAnimWrap(c,!1);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c);a.animateEl.setHeight(0)}else {if(a.collapsing){a.targetEl.select(b.itemSelector).destroy()}}a.expanding=!0;a.collapsing=!1}}},onExpand:function(b){var a=this,h=a.animQueue,i=b.getId(),f=a.getNode(b),g=f?a.indexOf(f):-1,c,d,e;if(a.singleExpand){a.ensureSingleExpand(b)}if(g===-1){return}c=a.getAnimWrap(b,!1);if(!c){b.isExpandingOrCollapsing=!1;a.fireEvent('afteritemexpand',b,g,f);return}d=c.animateEl;e=c.targetEl;d.stopAnimation();h[i]=!0;Ext.on('idle',function(){d.dom.style.height='0px'},null,{single:!0});d.animate({from:{height:0},to:{height:e.dom.scrollHeight},duration:a.expandDuration,listeners:{afteranimate:function(){var f=e.dom.childNodes,d=Ext.Element.getActiveElement();if(f.length){if(!e.contains(d)){d=null}c.el.insertSibling(f,'before',!0);if(d){Ext.fly(d).focus()}}c.el.destroy();a.animWraps[c.record.internalId]=h[i]=null}},callback:function(){b.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemexpand',b,g,f)}})},onBeforeCollapse:function(c,g,f,d,e){var b=this,a;if(b.rendered&&b.all.getCount()){if(b.animate){if(c.isVisible()){a=b.getAnimWrap(c);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c,f)}else {if(a.expanding){a.targetEl.select(this.itemSelector).destroy()}}a.expanding=!1;a.collapsing=!0;a.callback=d;a.scope=e}}else {b.onCollapseCallback=d;b.onCollapseScope=e}}},onCollapse:function(c){var a=this,g=a.animQueue,h=c.getId(),d=a.getNode(c),f=d?a.indexOf(d):-1,b=a.getAnimWrap(c),e;if(!a.all.getCount()||!c.isVisible()){return}if(!b){c.isExpandingOrCollapsing=!1;a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(a.onCollapseCallback,a.onCollapseScope);a.onCollapseCallback=a.onCollapseScope=null;return}e=b.animateEl;g[h]=!0;e.stopAnimation();e.animate({to:{height:0},duration:a.collapseDuration,listeners:{afteranimate:function(){b.el.destroy();a.animWraps[b.record.internalId]=g[h]=null}},callback:function(){c.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(b.callback,b.scope);b.callback=b.scope=null}})},isAnimating:function(a){return !!this.animQueue[a.getId()]},expand:function(a,f,d,e){var g=this,b=!!g.animate,c;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}Ext.suspendLayouts();c=a.expand(f,d,e);Ext.resumeLayouts(!0);return c}},collapse:function(a,e,c,d){var f=this,b=!!f.animate;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}return a.collapse(e,c,d)}},toggle:function(a,d,b,c){if(a.isExpanded()){this.collapse(a,d,b,c)}else {this.expand(a,d,b,c)}},onItemDblClick:function(a,e,d,f){var b=this,c=b.editingPlugin;Ext.view.Table.prototype.onItemDblClick.call(this,a,e,d,f);if(b.toggleOnDblClick&&a.isExpandable()&&!(c&&c.clicksToEdit===2)){b.toggle(a)}},onCellClick:function(d,g,c,i,h,a){var b=this,f=a.position.column,e;if(f.isTreeColumn){if(a.getTarget(b.checkboxSelector,d)&&Ext.isBoolean(e=c.get('checked'))&&b.fireEvent('beforecheckchange',c,e,a)!==!1){b.onCheckChange(a);if(f.stopSelection){a.stopSelection=!0}}else {if(a.getTarget(b.expanderSelector,d)&&c.isExpandable()){b.getNavigationModel().setPosition(a.position);b.toggle(c,a.ctrlKey);a.nodeToggled=!0}}return Ext.view.Table.prototype.onCellClick.call(this,d,g,c,i,h,a)}},onCheckChange:function(c){var a=c.record,b=!a.get('checked');a.set('checked',b);this.fireEvent('checkchange',a,b,c)},onItemMouseOver:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).addCls(this.expanderIconOverCls)}},onItemMouseOut:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).removeCls(this.expanderIconOverCls)}},getStoreListeners:function(){return Ext.apply(Ext.view.Table.prototype.getStoreListeners.call(this),{rootchange:this.onRootChange,fillcomplete:this.onFillComplete})},onBindStore:function(b,f,e,a){var d=a&&a.getRootNode(),c=b&&b.getRootNode();Ext.view.Table.prototype.onBindStore.call(this,b,f,e,a);if(c!==d){this.onRootChange(c,d)}},onRootChange:function(b,c){var a=this,d=a.grid;if(c){a.rootListeners.destroy();a.rootListeners=null}if(b){a.rootListeners=b.on({beforeexpand:a.onBeforeExpand,expand:a.onExpand,beforecollapse:a.onBeforeCollapse,collapse:a.onCollapse,destroyable:!0,scope:a});d.addRelayers(b)}},ensureSingleExpand:function(b){var a=b.parentNode;if(a){a.eachChild(function(a){if(a!==b&&a.isExpanded()){a.collapse()}})}}},0,['treeview'],['component','box','dataview','tableview','gridview','treeview'],{'component':!0,'box':!0,'dataview':!0,'tableview':!0,'gridview':!0,'treeview':!0},['widget.treeview'],0,[Ext.tree,'View'],0);Ext.cmd.derive('Ext.tree.Panel',Ext.panel.Table,{alternateClassName:['Ext.tree.TreePanel','Ext.TreePanel'],viewType:'treeview',treeCls:'x-tree-panel',rowLines:!1,lines:!0,useArrows:!1,singleExpand:!1,ddConfig:{enableDrag:!0,enableDrop:!0},rootVisible:!0,displayField:'text',root:null,normalCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible','scroll'],lockedCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible'],isTree:!0,arrowCls:'x-tree-arrows',linesCls:'x-tree-lines',noLinesCls:'x-tree-no-lines',autoWidthCls:'x-autowidth-table',constructor:function(a){a=a||{};if(a.animate===undefined){a.animate=Ext.isBoolean(this.animate)?this.animate:Ext.enableFx}this.enableAnimations=a.animate;delete a.animate;Ext.panel.Table.prototype.constructor.call(this,a)},initComponent:function(){var a=this,c=[a.treeCls],b,d;if(a.useArrows){c.push(a.arrowCls);a.lines=!1}if(a.lines){c.push(a.linesCls)}else {if(!a.useArrows){c.push(a.noLinesCls)}}b=a.applyStore(a.store);if(!b.getRoot()){b.setRoot({})}b.setRootVisible(a.rootVisible);a.viewConfig=Ext.apply({rootVisible:a.rootVisible,animate:a.enableAnimations,singleExpand:a.singleExpand,node:b.getRoot(),hideHeaders:a.hideHeaders,navigationModel:'tree'},a.viewConfig);if(!a.columns){if(a.initialConfig.hideHeaders===undefined){a.hideHeaders=!0}a.addCls(a.autoWidthCls);a.columns=[{xtype:'treecolumn',text:'Name',flex:1,dataIndex:a.displayField}]}if(a.cls){c.push(a.cls)}a.cls=c.join(' ');Ext.panel.Table.prototype.initComponent.call(this);d=a.getView();a.relayEvents(d,['beforecheckchange','checkchange','afteritemexpand','afteritemcollapse'])},applyStore:function(a){var b=this;if(Ext.isString(a)){a=b.store=Ext.StoreMgr.lookup(a)}else {if(!a||!a.isStore){a=Ext.apply({type:'tree',proxy:'memory'},a);if(b.root){a.root=b.root}if(b.fields){a.fields=b.fields}else {if(b.model){a.model=b.model}}if(b.folderSort){a.folderSort=b.folderSort}a=b.store=Ext.StoreMgr.lookup(a)}else {if(b.root){a=b.store=Ext.data.StoreManager.lookup(a);a.setRoot(b.root);if(b.folderSort!==undefined){a.folderSort=b.folderSort;a.sort()}}}}return a},setStore:function(a){var b=this;a=b.applyStore(a);if(!a.getRoot()){a.setRoot({})}a.setRootVisible(b.rootVisible);if(b.view){b.view.setRootNode(a.getRootNode())}b.bindStore(a)},bindStore:function(b,e){var a=this,c=b.getRoot(),d=a.bufferedRenderer;Ext.panel.Table.prototype.bindStore.apply(this,arguments);if(d){if(d.store){d.bindStore(b)}}b.singleExpand=a.singleExpand;a.storeListeners=a.mon(b,{destroyable:!0,rootchange:a.onRootChange,scope:a});a.storeRelayers=a.relayEvents(b,['beforeload','load']);if(!a.rootVisible&&!b.autoLoad&&!(c.isExpanded()||c.isLoading())){if(c.isLoaded()){c.data.expanded=!0;b.onNodeExpand(c,c.childNodes)}else {if(b.autoLoad!==!1){c.data.expanded=!1;c.expand()}}}b.ownerTree=a;if(!e){a.view.setRootNode(c)}},addRelayers:function(b){var a=this;if(a.rootRelayers){a.rootRelayers.destroy();a.rootRelayers=null}a.rootRelayers=a.mon(b,{destroyable:!0,append:a.createRelayer('itemappend'),remove:a.createRelayer('itemremove'),move:a.createRelayer('itemmove',[0,4]),insert:a.createRelayer('iteminsert'),beforeappend:a.createRelayer('beforeitemappend'),beforeremove:a.createRelayer('beforeitemremove'),beforemove:a.createRelayer('beforeitemmove'),beforeinsert:a.createRelayer('beforeiteminsert'),expand:a.createRelayer('itemexpand',[0,1]),collapse:a.createRelayer('itemcollapse',[0,1]),beforeexpand:a.createRelayer('beforeitemexpand',[0,1]),beforecollapse:a.createRelayer('beforeitemcollapse',[0,1]),scope:a})},unbindStore:function(){var a=this,b=a.store;if(b){Ext.panel.Table.prototype.unbindStore.call(this);Ext.destroy(a.storeListeners,a.storeRelayers,a.rootRelayers);delete b.ownerTree;b.singleExpand=null}},setRootNode:function(){return this.store.setRoot.apply(this.store,arguments)},getRootNode:function(){return this.store.getRoot()},onRootChange:function(a){this.view.setRootNode(a)},getChecked:function(){return this.getView().getChecked()},isItemChecked:function(a){return a.get('checked')},expandNode:function(b,d,a,c){return this.getView().expand(b,d,a,c||this)},collapseNode:function(b,d,a,c){return this.getView().collapse(b,d,a,c||this)},expandAll:function(c,d){var b=this,a=b.getRootNode();if(a){Ext.suspendLayouts();a.expand(!0,c,d||b);Ext.resumeLayouts(!0)}},collapseAll:function(d,a){var c=this,b=c.getRootNode(),e=c.getView();if(b){Ext.suspendLayouts();a=a||c;if(e.rootVisible){b.collapse(!0,d,a)}else {b.collapseChildren(!0,d,a)}Ext.resumeLayouts(!0)}},expandPath:function(p,a){var i=arguments,b=this,j=b.view,g=a&&a.field||b.store.model.idProperty,o,n,k=a&&a.separator||'/',c,e,d,h,f,m,l;if(a&&typeof a==='object'){g=a.field||b.store.model.idProperty;k=a.separator||'/';c=a.callback;e=a.scope;o=a.select;n=a.focus}else {g=i[1]||b.store.model.idProperty;k=i[2]||'/';c=i[3];e=i[4]}if(Ext.isEmpty(p)){return Ext.callback(c,e||b,[!1,null])}f=p.split(k);m=!f[0];if(m){d=b.getRootNode();h=1}else {d=b.store.findNode(g,f[0]);h=0}if(!d||m&&d.get(g)!==f[1]){return Ext.callback(c,e||b,[!1,d])}l=function(m){var d=this,q,k,i;if(++h===f.length){if(o){j.getSelectionModel().select(d)}if(n){j.getNavigationModel().setPosition(d,0)}return Ext.callback(c,e||b,[!0,d,j.getNode(d)])}for(k=0,q=m?m.length:0;k2?b[2]:null,e=a>3?b[3]:'/',d=a>4?b[4]:null,f=a>5?b[5]:!1;document.cookie=h+'='+escape(g)+(c===null?'':'; expires='+c.toUTCString())+(e===null?'':'; path='+e)+(d===null?'':'; domain='+d)+(f===!0?'; secure':'')},get:function(e){var d=document.cookie.split('; '),f=d.length,b,a,c;for(a=0;a'+this.removeRowText+''},beforeDestroy:function(){Ext.un({mousedown:'onDismissSearch',scope:this});Ext.grid.Panel.prototype.beforeDestroy.call(this)},privates:{onDismissSearch:function(b){var a=this.searchPopup;if(a&&!(a.owns(b.getTarget())||this.owns(b.getTarget()))){Ext.un({mousedown:'onDismissSearch',scope:this});a.hide()}},onShowSearch:function(d,e){var a=this,b=a.searchPopup,c=a.getStore();if(!b){b=Ext.merge({owner:a,field:a.fieldName,floating:!0},a.getSearch());a.searchPopup=b=a.add(b);if(c.getCount()){b.selectRecords(c.getRange())}}b.showBy(a,'tl-tr?');Ext.on({mousedown:'onDismissSearch',scope:a})}}},0,['multiselector'],['component','box','container','panel','tablepanel','gridpanel','grid','multiselector'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'multiselector':!0},['widget.multiselector'],0,[Ext.view,'MultiSelector'],0);Ext.cmd.derive('Ext.window.Toast',Ext.window.Window,{isToast:!0,cls:'x-toast',bodyPadding:10,autoClose:!0,plain:!1,draggable:!1,resizable:!1,shadow:!1,focus:Ext.emptyFn,anchor:null,useXAxis:!1,align:'br',animate:!0,spacing:6,paddingX:30,paddingY:10,slideInAnimation:'easeIn',slideBackAnimation:'bounceOut',slideInDuration:500,slideBackDuration:500,hideDuration:500,autoCloseDelay:3000,stickOnClick:!0,stickWhileHover:!0,closeOnMouseDown:!1,closable:!1,isHiding:!1,isFading:!1,destroyAfterHide:!1,closeOnMouseOut:!1,xPos:0,yPos:0,initComponent:function(){var a=this;if(a.autoClose&&!a.hasOwnProperty('closable')){a.closable=!1}a.updateAlignment(a.align);a.setAnchor(a.anchor);Ext.window.Window.prototype.initComponent.call(this)},onRender:function(){var a=this;Ext.window.Window.prototype.onRender.apply(this,arguments);a.el.hover(a.onMouseEnter,a.onMouseLeave,a);if(a.closeOnMouseDown){Ext.getDoc().on('mousedown',a.onDocumentMousedown,a)}},alignmentProps:{br:{paddingFactorX:-1,paddingFactorY:-1,siblingAlignment:'br-br',anchorAlign:'tr-br'},bl:{paddingFactorX:1,paddingFactorY:-1,siblingAlignment:'bl-bl',anchorAlign:'tl-bl'},tr:{paddingFactorX:-1,paddingFactorY:1,siblingAlignment:'tr-tr',anchorAlign:'br-tr'},tl:{paddingFactorX:1,paddingFactorY:1,siblingAlignment:'tl-tl',anchorAlign:'bl-tl'},b:{paddingFactorX:0,paddingFactorY:-1,siblingAlignment:'b-b',useXAxis:0,anchorAlign:'t-b'},t:{paddingFactorX:0,paddingFactorY:1,siblingAlignment:'t-t',useXAxis:0,anchorAlign:'b-t'},l:{paddingFactorX:1,paddingFactorY:0,siblingAlignment:'l-l',useXAxis:1,anchorAlign:'r-l'},r:{paddingFactorX:-1,paddingFactorY:0,siblingAlignment:'r-r',useXAxis:1,anchorAlign:'l-r'},x:{br:{anchorAlign:'bl-br'},bl:{anchorAlign:'br-bl'},tr:{anchorAlign:'tl-tr'},tl:{anchorAlign:'tr-tl'}}},updateAlignment:function(d){var a=this,b=a.alignmentProps,e=b[d],c=b.x[d];if(c&&a.useXAxis){Ext.applyIf(a,c)}Ext.applyIf(a,e)},getXposAlignedToAnchor:function(){var b=this,d=b.align,e=b.anchor,c=e&&e.el,f=b.el,a=0;if(c&&c.dom){if(!b.useXAxis){a=f.getLeft()}else {if(d==='br'||d==='tr'||d==='r'){a+=c.getAnchorXY('r')[0];a-=f.getWidth()+b.paddingX}else {a+=c.getAnchorXY('l')[0];a+=b.paddingX}}}return a},getYposAlignedToAnchor:function(){var b=this,d=b.align,e=b.anchor,c=e&&e.el,f=b.el,a=0;if(c&&c.dom){if(b.useXAxis){a=f.getTop()}else {if(d==='br'||d==='bl'||d==='b'){a+=c.getAnchorXY('b')[1];a-=f.getHeight()+b.paddingY}else {a+=c.getAnchorXY('t')[1];a+=b.paddingY}}}return a},getXposAlignedToSibling:function(a){var c=this,d=c.align,e=c.el,b;if(!c.useXAxis){b=e.getLeft()}else {if(d==='tl'||d==='bl'||d==='l'){b=a.xPos+a.el.getWidth()+a.spacing}else {b=a.xPos-e.getWidth()-c.spacing}}return b},getYposAlignedToSibling:function(a){var d=this,c=d.align,e=d.el,b;if(d.useXAxis){b=e.getTop()}else {if(c==='tr'||c==='tl'||c==='t'){b=a.yPos+a.el.getHeight()+a.spacing}else {b=a.yPos-e.getHeight()-a.spacing}}return b},getToasts:function(){var c=this.anchor,b=this.anchorAlign,a=c.activeToasts||(c.activeToasts={});return a[b]||(a[b]=[])},setAnchor:function(a){var c=this,b;c.anchor=a=typeof a==='string'?Ext.getCmp(a):a;if(!a){b=Ext.window.Toast;c.anchor=b.bodyAnchor||(b.bodyAnchor={el:Ext.getBody()})}},beforeShow:function(){var a=this;if(a.stickOnClick){a.body.on('click',function(){a.cancelAutoClose()})}if(a.autoClose){if(!a.closeTask){a.closeTask=new Ext.util.DelayedTask(a.doAutoClose,a)}}a.el.setX(-10000);a.el.setOpacity(1)},afterShow:function(){var a=this,d=a.el,c,b,e,f;Ext.window.Window.prototype.afterShow.apply(this,arguments);c=a.getToasts();e=c.length;b=e&&c[e-1];if(b){d.alignTo(b.el,a.siblingAlignment,[0,0]);a.xPos=a.getXposAlignedToSibling(b);a.yPos=a.getYposAlignedToSibling(b)}else {d.alignTo(a.anchor.el,a.anchorAlign,[a.paddingX*a.paddingFactorX,a.paddingY*a.paddingFactorY],!1);a.xPos=a.getXposAlignedToAnchor();a.yPos=a.getYposAlignedToAnchor()}Ext.Array.include(c,a);if(a.animate){f=d.getXY();d.animate({from:{x:f[0],y:f[1]},to:{x:a.xPos,y:a.yPos,opacity:1},easing:a.slideInAnimation,duration:a.slideInDuration,dynamic:!0,callback:a.afterPositioned,scope:a})}else {a.setLocalXY(a.xPos,a.yPos);a.afterPositioned()}},afterPositioned:function(){if(this.autoClose){this.closeTask.delay(this.autoCloseDelay)}},onDocumentMousedown:function(a){if(this.isVisible()&&!this.owns(a.getTarget())){this.hide()}},slideBack:function(){var a=this,f=a.anchor,e=f&&f.el,d=a.el,b=a.getToasts(),c=Ext.Array.indexOf(b,a);if(!a.isHiding&&d&&d.dom&&e&&e.isVisible()){if(c){a.xPos=a.getXposAlignedToSibling(b[c-1]);a.yPos=a.getYposAlignedToSibling(b[c-1])}else {a.xPos=a.getXposAlignedToAnchor();a.yPos=a.getYposAlignedToAnchor()}a.stopAnimation();if(a.animate){d.animate({to:{x:a.xPos,y:a.yPos},easing:a.slideBackAnimation,duration:a.slideBackDuration,dynamic:!0})}}},update:function(){var a=this;if(a.isVisible()){a.isHiding=!0;a.hide()}Ext.window.Window.prototype.update.apply(this,arguments);a.show()},cancelAutoClose:function(){var a=this.closeTask;if(a){a.cancel()}},doAutoClose:function(){var a=this;if(!(a.stickWhileHover&&a.mouseIsOver)){a.close()}else {a.closeOnMouseOut=!0}},onMouseEnter:function(){this.mouseIsOver=!0},onMouseLeave:function(){var a=this;a.mouseIsOver=!1;if(a.closeOnMouseOut){a.closeOnMouseOut=!1;a.close()}},removeFromAnchor:function(){var c=this,b,a;if(c.anchor){b=c.getToasts();a=Ext.Array.indexOf(b,c);if(a!==-1){Ext.Array.erase(b,a,1);for(;a'],childEls:['iframeEl'],initComponent:function(){Ext.Component.prototype.initComponent.call(this);this.frameName=this.frameName||this.id+'-frame'},initEvents:function(){var a=this;Ext.Component.prototype.initEvents.call(this);a.iframeEl.on('load',a.onLoad,a)},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{src:this.src,frameName:this.frameName})},getBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){try{return this.getWin().document}catch(b){return null}},getWin:function(){var a=this,b=a.frameName,c=Ext.isIE?a.iframeEl.dom.contentWindow:window.frames[b];return c},getFrame:function(){var a=this;return a.iframeEl.dom},beforeDestroy:function(){this.cleanupListeners(!0);Ext.Component.prototype.beforeDestroy.call(this)},cleanupListeners:function(c){var a,b;if(this.rendered){try{a=this.getDoc();if(a){Ext.get(a).un(this._docListeners);if(c){for(b in a){if(a.hasOwnProperty&&a.hasOwnProperty(b)){delete a[b]}}}}}catch(d){}}},onLoad:function(){var a=this,c=a.getDoc(),b=a.onRelayedEvent;if(c){try{Ext.get(c).on(a._docListeners={mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,scope:a})}catch(d){}Ext.get(this.getWin()).on('beforeunload',a.cleanupListeners,a);this.el.unmask();this.fireEvent('load',this)}else {if(a.src){this.el.unmask();this.fireEvent('error',this)}}},onRelayedEvent:function(a){var b=this.iframeEl,c=b.getTrueXY(),e=a.getXY(),d=a.getTrueXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},load:function(c){var a=this,b=a.loadMask,d=a.getFrame();if(a.fireEvent('beforeload',a,c)!==!1){if(b&&a.el){a.el.mask(b)}d.src=a.src=c||a.src}}},0,['uxiframe'],['component','box','uxiframe'],{'component':!0,'box':!0,'uxiframe':!0},['widget.uxiframe'],0,[Ext.ux,'IFrame'],0);Ext.cmd.derive('Ext.ux.PreviewPlugin',Ext.plugin.Abstract,{hideBodyCls:'x-grid-row-body-hidden',bodyField:'',previewExpanded:!0,setCmp:function(c){Ext.plugin.Abstract.prototype.setCmp.apply(this,arguments);var b=this,a=b.cmp=c.isXType('gridview')?c.grid:c,g=b.bodyField,f=b.hideBodyCls,e=Ext.create('Ext.grid.feature.RowBody',{grid:a,getAdditionalData:function(e,j,i,h){var b=Ext.grid.feature.RowBody.prototype.getAdditionalData,d={rowBody:e[g],rowBodyCls:a.getView().previewExpanded?'':f};if(Ext.isFunction(b)){Ext.apply(d,b.apply(this,arguments))}return d}}),d=function(d,a){a.previewExpanded=b.previewExpanded;a.featuresMC.add(e);e.init(d)};if(a.view){d(a,a.view)}else {a.on({viewcreated:d,single:!0})}},toggleExpanded:function(e){var c=this.getCmp(),a=c&&c.getView(),b=a.bufferedRenderer,d=a.scrollManager;if(c&&a&&e!==a.previewExpanded){this.previewExpanded=a.previewExpanded=!!e;a.refreshView();if(d){if(b){b.stretchView(a,b.getScrollHeight(!0))}else {d.refresh(!0)}}}}},0,0,0,0,['plugin.preview'],0,[Ext.ux,'PreviewPlugin'],0);Ext.cmd.derive('Ext.ux.colorpick.Selection',Ext.Base,{mixinId:'colorselection',config:{format:'hex6',value:'FF0000',color:null,previousColor:null},applyColor:function(b){var a=b;if(Ext.isString(a)){a=Ext.ux.colorpick.ColorUtils.parseColor(b)}return a},applyValue:function(a){var b=Ext.ux.colorpick.ColorUtils.parseColor(a);return this.formatColor(b)},formatColor:function(a){return Ext.ux.colorpick.ColorUtils.formats[this.getFormat()](a)},updateColor:function(b){var a=this;if(!a.syncing){a.syncing=!0;a.setValue(a.formatColor(b));a.syncing=!1}},updateValue:function(b,c){var a=this;if(!a.syncing){a.syncing=!0;a.setColor(b);a.syncing=!1}this.fireEvent('change',a,b,c)}},0,0,0,0,0,0,[Ext.ux.colorpick,'Selection'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorUtils',Ext.Base,function(a){var b=Ext.isIE&&Ext.ieVersion<10;return {singleton:!0,constructor:function(){a=this},backgroundTpl:b?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{alpha}{hex}', endColorstr='#{alpha}{hex}');":'background: {rgba};',setBackground:b?function(c,b){if(c){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={hex:a.rgb2hex(b.r,b.g,b.b),alpha:Math.floor(b.a*255).toString(16)},d=f.apply(e);c.applyStyles(d)}}:function(b,d){if(b){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={rgba:a.getRGBAString(d)},c=f.apply(e);b.applyStyles(c)}},formats:{HEX6:function(b){return a.rgb2hex(b.r,b.g,b.b)},HEX8:function(b){var c=a.rgb2hex(b.r,b.g,b.b),d=Math.round(b.a*255).toString(16);if(d.length<2){c+='0'}c+=d.toUpperCase();return c}},hexRe:/#?([0-9a-f]{3,8})/i,rgbaAltRe:/rgba\(\s*([\w#\d]+)\s*,\s*([\d\.]+)\s*\)/,rgbaRe:/rgba\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,rgbRe:/rgb\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,parseColor:function(d){if(!d){return null}var e=this,f=e.colorMap[d],b,c,g;if(f){c={r:f[0],g:f[1],b:f[2],a:1}}else {if(d==='transparent'){c={r:0,g:0,b:0,a:0}}else {b=e.hexRe.exec(d);if(b){b=b[1];switch(b.length){default:return null;case 3:c={r:parseInt(b[0]+b[0],16),g:parseInt(b[1]+b[1],16),b:parseInt(b[2]+b[2],16),a:1};break;case 6:case 8:c={r:parseInt(b.substr(0,2),16),g:parseInt(b.substr(2,2),16),b:parseInt(b.substr(4,2),16),a:parseInt(b.substr(6,2)||'ff',16)/255};break;}}else {b=e.rgbaRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:parseFloat(b[4])}}else {b=e.rgbaAltRe.exec(d);if(b){c=e.parseColor(b[1]);c.a=parseFloat(b[2]);return c}b=e.rgbRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:1}}else {return null}}}}}g=this.rgb2hsv(c.r,c.g,c.b);return Ext.apply(c,g)},getRGBAString:function(b){return 'rgba('+b.r+','+b.g+','+b.b+','+b.a+')'},getRGBString:function(b){return 'rgb('+b.r+','+b.g+','+b.b+')'},hsv2rgb:function(e,i,h){e=e*360;if(e===360){e=0}var c=h*i;var g=e/60;var d=c*(1-Math.abs(g%2-1));var b=[0,0,0];switch(Math.floor(g)){case 0:b=[c,d,0];break;case 1:b=[d,c,0];break;case 2:b=[0,c,d];break;case 3:b=[0,d,c];break;case 4:b=[d,0,c];break;case 5:b=[c,0,d];break;default:break;}var f=h-c;b[0]+=f;b[1]+=f;b[2]+=f;b[0]=Math.round(b[0]*255);b[1]=Math.round(b[1]*255);b[2]=Math.round(b[2]*255);return {r:b[0],g:b[1],b:b[2]}},rgb2hsv:function(e,d,c){e=e/255;d=d/255;c=c/255;var g=Math.max(e,d,c);var k=Math.min(e,d,c);var f=g-k;var h=0;if(f!==0){if(g===e){h=(d-c)/f%6}else {if(g===d){h=(c-e)/f+2}else {if(g===c){h=(e-d)/f+4}}}}var b=h*60;if(b===360){b=0}var j=g;var i=0;if(f!==0){i=f/j}b=b/360;if(b<0){b=b+1}return {h:b,s:i,v:j}},rgb2hex:function(d,c,b){d=d.toString(16);c=c.toString(16);b=b.toString(16);if(d.length<2){d='0'+d}if(c.length<2){c='0'+c}if(b.length<2){b='0'+b}return (d+c+b).toUpperCase()},colorMap:{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]}}},1,0,0,0,0,0,[Ext.ux.colorpick,'ColorUtils'],function(c){var a=c.formats,b={};a['#HEX6']=function(b){return '#'+a.HEX6(b)};a['#HEX8']=function(b){return '#'+a.HEX8(b)};Ext.Object.each(a,function(a,d){b[a.toLowerCase()]=function(b){var e=d(b);return e.toLowerCase()}});Ext.apply(a,b)});Ext.cmd.derive('Ext.ux.colorpick.ColorMapController',Ext.app.ViewController,{onFirstBoxReady:function(){var a=this,c=a.getView(),d=c.down('#dragHandle'),b=d.dd;b.constrain=!0;b.constrainTo=c.getEl();b.initialConstrainTo=b.constrainTo;b.on('drag',Ext.bind(a.onHandleDrag,a));a.mon(c.getEl(),{mousedown:a.onMouseDown,dragstart:a.onDragStart,scope:a})},onHandleDrag:function(k,l){var h=this,a=h.getView(),e=a.down('#dragHandle'),i=e.getX()-a.getX(),j=e.getY()-a.getY(),d=a.getEl(),g=d.getWidth(),f=d.getHeight(),b=i/g,c=j/f;if(b>0.99){b=1}if(c>0.99){c=1}a.fireEvent('handledrag',b,c)},onMouseDown:function(b){var c=this,d=c.getView(),a=d.down('#dragHandle');a.setY(b.getY());a.setX(b.getX());c.onHandleDrag();a.dd.onMouseDown(b,a.dd.el)},onDragStart:function(d){var c=this,b=c.getView(),a=b.down('#dragHandle');a.dd.onDragStart(d,a.dd.el)},onMapClick:function(h){var f=this,a=f.getView(),g=a.down('#dragHandle'),c=a.getXY(),d=h.getXY(),b,e;b=d[0]-c[0];e=d[1]-c[1];g.getEl().setStyle({left:b+'px',top:e+'px'});f.onHandleDrag()},onColorBindingChanged:function(n){var i=this,m=i.getViewModel(),a=m.get('selectedColor'),b,d=i.getView(),l=d.down('#dragHandle'),c=d.getEl(),k=c.getWidth(),j=c.getHeight(),e,f,g,h;b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);e=b.s;g=k*e;f=1-b.v;h=j*f;l.getEl().setStyle({left:g+'px',top:h+'px'})},onHueBindingChanged:function(d){var c=this,e=c.getViewModel(),a,b;a=Ext.ux.colorpick.ColorUtils.hsv2rgb(d,1,1);b=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);c.getView().getEl().applyStyles({'background-color':'#'+b})}},0,0,0,0,['controller.colorpickercolormapcontroller'],0,[Ext.ux.colorpick,'ColorMapController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorMap',Ext.container.Container,{controller:'colorpickercolormapcontroller',cls:'x-colorpicker-colormap',items:[{xtype:'component',cls:'x-colorpicker-colormap-draghandle-container',itemId:'dragHandle',width:1,height:1,draggable:!0,html:'
    '}],listeners:{boxready:{single:!0,fn:'onFirstBoxReady',scope:'controller'},colorbindingchanged:{fn:'onColorBindingChanged',scope:'controller'},huebindingchanged:{fn:'onHueBindingChanged',scope:'controller'}},afterRender:function(){var c=this,a=c.mapGradientUrl,b=c.el;Ext.container.Container.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.ColorMap.prototype.mapGradientUrl=a}b.setStyle('background-image','none');b=c.layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-colormap-blender',src:a})},setPosition:function(c){var b=this,a=b.down('#dragHandle');if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b.fireEvent('colorbindingchanged',c)},setHue:function(b){var a=this;if(!a.getEl()){return}a.fireEvent('huebindingchanged',b)}},0,['colorpickercolormap'],['component','box','container','colorpickercolormap'],{'component':!0,'box':!0,'container':!0,'colorpickercolormap':!0},['widget.colorpickercolormap'],0,[Ext.ux.colorpick,'ColorMap'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorModel',Ext.app.ViewModel,{data:{selectedColor:{r:255,g:255,b:255,h:0,s:1,v:1,a:1},previousColor:{r:0,g:0,b:0,h:0,s:1,v:1,a:1}},formulas:{hex:{get:function(a){var e=a('selectedColor.r').toString(16),d=a('selectedColor.g').toString(16),c=a('selectedColor.b').toString(16),b;b=Ext.ux.colorpick.ColorUtils.rgb2hex(e,d,c);return '#'+b},set:function(a){var b=Ext.ux.colorpick.ColorUtils.hex2rgb(a);this.changeRGB(b)}},red:{get:function(a){return a('selectedColor.r')},set:function(a){this.changeRGB({r:a})}},green:{get:function(a){return a('selectedColor.g')},set:function(a){this.changeRGB({g:a})}},blue:{get:function(a){return a('selectedColor.b')},set:function(a){this.changeRGB({b:a})}},hue:{get:function(a){return a('selectedColor.h')*360},set:function(a){this.changeHSV({h:a/360})}},saturation:{get:function(a){return a('selectedColor.s')*100},set:function(a){this.changeHSV({s:a/100})}},value:{get:function(a){var b=a('selectedColor.v');return b*100},set:function(a){this.changeHSV({v:a/100})}},alpha:{get:function(a){var b=a('selectedColor.a');return b*100},set:function(a){this.set('selectedColor',Ext.applyIf({a:a/100},this.data.selectedColor))}}},changeHSV:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);a.r=b.r;a.g=b.g;a.b=b.b;this.set('selectedColor',a)},changeRGB:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);a.h=b.h;a.s=b.s;a.v=b.v;this.set('selectedColor',a)}},0,0,0,0,['viewmodel.colorpick-selectormodel'],0,[Ext.ux.colorpick,'SelectorModel'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorController',Ext.app.ViewController,{initViewModel:function(){var b=this,a=b.getView();a.childViewModel.bind('{selectedColor}',function(b){a.setColor(b)})},destroy:function(){var c=this,b=c.getView(),a=b.childViewModel;if(a){a.destroy();b.childViewModel=null}Ext.app.ViewController.prototype.destroy.call(this)},changeHSV:function(a){var b=this.getView(),d=b.getColor(),c;Ext.applyIf(a,d);c=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);Ext.apply(a,c);b.setColor(a)},onColorMapHandleDrag:function(a,b){this.changeHSV({s:a,v:1-b})},onValueSliderHandleDrag:function(a){this.changeHSV({v:1-a})},onSaturationSliderHandleDrag:function(a){this.changeHSV({s:1-a})},onHueSliderHandleDrag:function(a){this.changeHSV({h:1-a})},onAlphaSliderHandleDrag:function(c){var a=this.getView(),d=a.getColor(),b=Ext.applyIf({a:1-c},d);a.setColor(b);a.el.repaint()},onPreviousColorSelected:function(c,a){var b=this.getView();b.setColor(a)},onOK:function(){var b=this,a=b.getView();a.fireEvent('ok',a,a.getValue())},onCancel:function(){this.fireViewEvent('cancel',this.getView())},onResize:function(){var c=this,h=c.getView(),b=h.childViewModel,a=c.getReferences(),d,f,g,e;if(!c.hasResizedOnce){c.hasResizedOnce=!0;return}d=b.get('hue');f=b.get('saturation');g=b.get('value');e=b.get('alpha');console.log('h='+d);a.colorMap.setPosition(b.getData());a.hueSlider.setHue(d);a.satSlider.setSaturation(f);a.valueSlider.setValue(g);a.alphaSlider.setAlpha(e)}},0,0,0,0,['controller.colorpick-selectorcontroller'],0,[Ext.ux.colorpick,'SelectorController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorPreview',Ext.Component,{style:'position: relative',html:'
    ',cls:'x-colorpreview',height:256,onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el.down('.btn'),'click',a.onClick,a)},onClick:function(){this.fireEvent('click',this,this.color)},setColor:function(b){var a=this,c=a.getEl();if(!c){return}a.color=b;a.applyBgStyle(b)},bgStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hexAlpha}{hex}', endColorstr='#{hexAlpha}{hex}');":'background: {rgba};'),applyBgStyle:function(a){var h=this,b=Ext.ux.colorpick.ColorUtils,g=h.getEl().down('.filter'),f,d,e,c;f=b.rgb2hex(a.r,a.g,a.b);d=Ext.util.Format.hex(Math.floor(a.a*255),2);e=b.getRGBAString(a);c=this.bgStyleTpl.apply({hex:f,hexAlpha:d,rgba:e});g.applyStyles(c)}},0,['colorpickercolorpreview'],['component','box','colorpickercolorpreview'],{'component':!0,'box':!0,'colorpickercolorpreview':!0},['widget.colorpickercolorpreview'],0,[Ext.ux.colorpick,'ColorPreview'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderController',Ext.app.ViewController,{boxReady:function(e){var b=this,d=b.getDragContainer(),c=b.getDragHandle(),a=c.dd;a.constrain=!0;a.constrainTo=d.getEl();a.initialConstrainTo=a.constrainTo;a.on('drag',b.onHandleDrag,b)},getDragHandle:function(){return this.view.lookupReference('dragHandle')},getDragContainer:function(){return this.view.lookupReference('dragHandleContainer')},onHandleDrag:function(i){var b=this,g=b.getView(),c=b.getDragContainer(),f=b.getDragHandle(),h=f.getY()-c.getY(),e=c.getEl(),d=e.getHeight(),a=h/d;if(a>0.99){a=1}g.fireEvent('handledrag',a)},onMouseDown:function(c){var b=this,a=b.getDragHandle(),d=c.getY();a.setY(d);b.onHandleDrag();a.el.repaint();a.dd.onMouseDown(c,a.dd.el)},onDragStart:function(c){var b=this,a=b.getDragHandle();a.dd.onDragStart(c,a.dd.el)},onMouseUp:function(){var a=this.getDragHandle();a.dd.dragEnded=!0}},0,0,0,0,['controller.colorpick-slidercontroller'],0,[Ext.ux.colorpick,'SliderController'],0);Ext.cmd.derive('Ext.ux.colorpick.Slider',Ext.container.Container,{controller:'colorpick-slidercontroller',baseCls:'x-colorpicker-slider',layout:'center',referenceHolder:!0,listeners:{element:'el',mousedown:'onMouseDown',mouseup:'onMouseUp',dragstart:'onDragStart'},items:{xtype:'container',cls:'x-colorpicker-draghandle-container',reference:'dragHandleContainer',height:'100%',items:{xtype:'component',cls:'x-colorpicker-draghandle-outer',reference:'dragHandle',width:'100%',height:1,draggable:!0,html:'
    '}},getDragHandle:function(){return this.lookupReference('dragHandle')},getDragContainer:function(){return this.lookupReference('dragHandleContainer')}},0,['colorpickerslider'],['component','box','container','colorpickerslider'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0},['widget.colorpickerslider'],0,[Ext.ux.colorpick,'Slider'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderAlpha',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-alpha',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#FF{hex}', endColorstr='#00{hex}');":'background: -mox-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -webkit-linear-gradient(top,rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -o-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -ms-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: linear-gradient(to bottom, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);'),setAlpha:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(1-h/100);c=a.getEl();c.setStyle({top:b})},setColor:function(a){var b=this,e=b.getDragContainer(),c,d;if(!b.getEl()){return}c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d=e.getEl().down('.x-autocontainer-innerCt');d.applyStyles(b.gradientStyleTpl.apply({hex:c,r:a.r,g:a.g,b:a.b}))}},0,['colorpickerslideralpha'],['component','box','container','colorpickerslider','colorpickerslideralpha'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslideralpha':!0},['widget.colorpickerslideralpha'],0,[Ext.ux.colorpick,'SliderAlpha'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderSaturation',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-saturation',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#ffffff');":'background: -mox-linear-gradient(top, #{hex} 0%, #ffffff 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -o-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -ms-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: linear-gradient(to bottom, #{hex} 0%,#ffffff 100%);'),setSaturation:function(g){var d=this,h=d.getDragContainer(),a=d.getDragHandle(),f=h.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-g/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidersaturation'],['component','box','container','colorpickerslider','colorpickerslidersaturation'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidersaturation':!0},['widget.colorpickerslidersaturation'],0,[Ext.ux.colorpick,'SliderSaturation'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderValue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-value',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#000000');":'background: -mox-linear-gradient(top, #{hex} 0%, #000000 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#000000 100%);background: -o-linear-gradient(top, #{hex} 0%,#000000 100%);background: -ms-linear-gradient(top, #{hex} 0%,#000000 100%);background: linear-gradient(to bottom, #{hex} 0%,#000000 100%);'),setValue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-h/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidervalue'],['component','box','container','colorpickerslider','colorpickerslidervalue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidervalue':!0},['widget.colorpickerslidervalue'],0,[Ext.ux.colorpick,'SliderValue'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderHue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-hue',afterRender:function(){var c=this,a=c.gradientUrl,b=c.el;Ext.ux.colorpick.Slider.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.SliderHue.prototype.gradientUrl=a}b.setStyle('background-image','none');b=c.getDragContainer().layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-hue-gradient',src:a})},setHue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(360-h)/360;c=a.getEl();c.setStyle({top:b+'px'})}},0,['colorpickersliderhue'],['component','box','container','colorpickerslider','colorpickersliderhue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickersliderhue':!0},['widget.colorpickersliderhue'],0,[Ext.ux.colorpick,'SliderHue'],0);Ext.cmd.derive('Ext.ux.colorpick.Selector',Ext.container.Container,{controller:'colorpick-selectorcontroller',width:580,height:337,cls:'x-colorpicker',padding:10,layout:{type:'hbox',align:'stretch'},defaultBindProperty:'value',twoWayBindable:['value'],fieldWidth:50,fieldPad:5,showPreviousColor:!1,showOkCancelButtons:!1,listeners:{resize:'onResize'},constructor:function(c){var a=this,b=Ext.Factory.viewModel('colorpick-selectormodel');a.childViewModel=b;a.items=[a.getMapAndHexRGBFields(b),a.getSliderAndHField(b),a.getSliderAndSField(b),a.getSliderAndVField(b),a.getSliderAndAField(b),a.getPreviewAndButtons(b,c)];Ext.container.Container.prototype.constructor.apply(this,arguments)},updateColor:function(b){var a=this;a.mixins.colorselection.updateColor.call(a,b);a.childViewModel.set('selectedColor',b)},updatePreviousColor:function(a){this.childViewModel.set('previousColor',a)},getMapAndHexRGBFields:function(d){var c=this,a={top:0,right:c.fieldPad,bottom:0,left:0},b=c.fieldWidth;return {xtype:'container',viewModel:d,cls:'x-colorpicker-escape-overflow',flex:1,layout:{type:'vbox',align:'stretch'},margin:'0 10 0 0',items:[{xtype:'colorpickercolormap',reference:'colorMap',flex:1,bind:{position:{bindTo:'{selectedColor}',deep:!0},hue:'{selectedColor.h}'},listeners:{handledrag:'onColorMapHandleDrag'}},{xtype:'container',layout:'hbox',defaults:{labelAlign:'top',labelSeparator:'',allowBlank:!1,onChange:function(){if(this.isValid()){Ext.form.field.Base.prototype.onChange.apply(this,arguments)}}},items:[{xtype:'textfield',fieldLabel:'HEX',flex:1,bind:'{hex}',margin:a,readOnly:!0},{xtype:'numberfield',fieldLabel:'R',bind:'{red}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'G',bind:'{green}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'B',bind:'{blue}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:0}]}]}},getSliderAndHField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickersliderhue',reference:'hueSlider',flex:1,bind:{hue:'{selectedColor.h}'},listeners:{handledrag:'onHueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'H',labelAlign:'top',width:a.fieldWidth,labelSeparator:'',bind:'{hue}',hideTrigger:!0,maxValue:360,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndSField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{right:a.fieldPad,left:a.fieldPad},items:[{xtype:'colorpickerslidersaturation',reference:'satSlider',flex:1,bind:{saturation:'{saturation}',hue:'{selectedColor.h}'},listeners:{handledrag:'onSaturationSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'S',labelAlign:'top',labelSeparator:'',bind:'{saturation}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndVField:function(a){var b=this;return {xtype:'container',viewModel:a,cls:'x-colorpicker-escape-overflow',width:b.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickerslidervalue',reference:'valueSlider',flex:1,bind:{value:'{value}',hue:'{selectedColor.h}'},listeners:{handledrag:'onValueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'V',labelAlign:'top',labelSeparator:'',bind:'{value}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndAField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{left:a.fieldPad},items:[{xtype:'colorpickerslideralpha',reference:'alphaSlider',flex:1,bind:{alpha:'{alpha}',color:{bindTo:'{selectedColor}',deep:!0}},listeners:{handledrag:'onAlphaSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'A',labelAlign:'top',labelSeparator:'',bind:'{alpha}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getPreviewAndButtons:function(c,b){var a=[{xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{selectedColor}',deep:!0}}}];if(b.showPreviousColor){a.push({xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{previousColor}',deep:!0}},listeners:{click:'onPreviousColorSelected'}})}if(b.showOkCancelButtons){a.push({xtype:'button',text:'OK',margin:'10 0 0 0',handler:'onOK'},{xtype:'button',text:'Cancel',margin:'10 0 0 0',handler:'onCancel'})}return {xtype:'container',viewModel:c,width:70,margin:'0 0 0 10',items:a,layout:{type:'vbox',align:'stretch'}}}},1,['colorselector'],['component','box','container','colorselector'],{'component':!0,'box':!0,'container':!0,'colorselector':!0},['widget.colorselector'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Selector'],0);Ext.cmd.derive('Ext.ux.colorpick.ButtonController',Ext.app.ViewController,{afterRender:function(a){a.updateColor(a.getColor())},destroy:function(){var a=this.getView(),b=a.colorPickerWindow;if(b){b.destroy();a.colorPickerWindow=a.colorPicker=null}Ext.app.ViewController.prototype.destroy.call(this)},getPopup:function(){var b=this.getView(),a=b.colorPickerWindow,c;if(!a){a=Ext.create(b.getPopup());b.colorPickerWindow=a;a.colorPicker=b.colorPicker=c=a.lookupReference('selector');c.setFormat(b.getFormat());c.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:this});a.on({close:'onColorPickerCancel',scope:this})}return a},onClick:function(){var e=this,d=e.getView(),b=d.getColor(),c=e.getPopup(),a=c.colorPicker;a.setColor(b);a.setPreviousColor(b);c.showBy(d,'tl-br?')},onColorPickerOK:function(b){var a=this.getView(),c=b.getColor(),d=a.colorPickerWindow;d.hide();a.setColor(c)},onColorPickerCancel:function(){var b=this.getView(),a=b.colorPickerWindow;a.hide()},syncColor:function(a){var b=this.getView();Ext.ux.colorpick.ColorUtils.setBackground(b.filterEl,a)}},0,0,0,0,['controller.colorpick-buttoncontroller'],0,[Ext.ux.colorpick,'ButtonController'],0);Ext.cmd.derive('Ext.ux.colorpick.Button',Ext.Component,{controller:'colorpick-buttoncontroller',baseCls:'x-colorpicker-button',width:20,height:20,childEls:['btnEl','filterEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},defaultBindProperty:'value',twoWayBindable:'value',renderTpl:'
    ',listeners:{click:'onClick',element:'btnEl'},updateColor:function(b){var a=this,c=a.colorPicker;a.mixins.colorselection.updateColor.call(a,b);Ext.ux.colorpick.ColorUtils.setBackground(a.filterEl,b);if(c){c.setColor(b)}},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}}},0,['colorbutton'],['component','box','colorbutton'],{'component':!0,'box':!0,'colorbutton':!0},['widget.colorbutton'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Button'],0);Ext.cmd.derive('Ext.ux.colorpick.Field',Ext.form.field.Picker,{editable:!1,matchFieldWidth:!1,beforeBodyEl:['
    '],cls:'x-colorpicker-field',childEls:['swatchEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},afterRender:function(){Ext.form.field.Picker.prototype.afterRender.call(this);this.updateValue(this.value)},createPicker:function(){var a=this,c=a.getPopup(),b;a.colorPickerWindow=c=Ext.create(c);a.colorPicker=b=c.lookupReference('selector');b.setFormat(a.getFormat());b.setColor(a.getColor());b.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:a});c.on({close:'onColorPickerCancel',scope:a});return a.colorPickerWindow},onColorPickerOK:function(a){this.setColor(a.getColor());this.collapse()},onColorPickerCancel:function(){this.collapse()},onExpand:function(){var a=this.getColor();this.colorPicker.setPreviousColor(a)},setValue:function(c){var a=this,b=a.applyValue(c);(arguments.callee.$previous||Ext.form.field.Picker.prototype.setValue).call(this,b);a.updateValue(b)},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}},updateValue:function(c){var a=this,b;if(!a.syncing){a.syncing=!0;a.setColor(c);a.syncing=!1}b=a.getColor();Ext.ux.colorpick.ColorUtils.setBackground(a.swatchEl,b);if(a.colorPicker){a.colorPicker.setColor(b)}}},0,['colorfield'],['component','box','field','textfield','pickerfield','colorfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'pickerfield':!0,'colorfield':!0},['widget.colorfield'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Field'],0);Ext.cmd.derive('Ext.ux.dd.CellFieldDropZone',Ext.dd.DropZone,{constructor:function(a){a=a||{};if(a.onCellDrop){this.onCellDrop=a.onCellDrop}if(a.ddGroup){this.ddGroup=a.ddGroup}},init:function(b){var a=this;if(b.rendered){a.grid=b;b.getView().on({render:function(c){a.view=c;Ext.ux.dd.CellFieldDropZone.superclass.constructor.call(a,a.view.el)},single:!0})}else {b.on('render',a.init,a,{single:!0})}},containerScroll:!0,getTargetFromEvent:function(f){var e=this,b=e.view;var a=f.getTarget(b.getCellSelector());if(a){var d=b.findItemByChild(a),c=a.cellIndex;if(d&&Ext.isDefined(c)){return {node:a,record:b.getRecord(d),fieldName:e.grid.getVisibleColumnManager().getColumns()[c].dataIndex}}}},onNodeEnter:function(a,e,f,d){delete this.dropOK;if(!a){return}var b=d.field;if(!b){return}var c=a.record.fieldsMap[a.fieldName];if(c.isNumeric){if(!b.isXType('numberfield')){return}}else {if(c.isDateField){if(!b.isXType('datefield')){return}}else {if(c.isBooleanField){if(!b.isXType('checkbox')){return}}}}this.dropOK=!0;Ext.fly(a.node).addCls('x-drop-target-active')},onNodeOver:function(b,c,d,a){return this.dropOK?this.dropAllowed:this.dropNotAllowed},onNodeOut:function(a,c,d,b){Ext.fly(a.node).removeCls('x-drop-target-active')},onNodeDrop:function(a,d,e,c){if(this.dropOK){var b=c.field.getValue();a.record.set(a.fieldName,b);this.onCellDrop(a.fieldName,b);return !0}},onCellDrop:Ext.emptyFn},1,0,0,0,0,0,[Ext.ux.dd,'CellFieldDropZone'],0);Ext.cmd.derive('Ext.ux.rating.Picker',Ext.Widget,{focusable:!0,cachedConfig:{family:'monospace',glyphs:'☆★',minimum:1,limit:5,overStyle:null,rounding:1,scale:'125%',selectedStyle:null,tooltip:null,trackOver:!0,value:null,tooltipText:null,trackingValue:null},config:{animate:null},element:{cls:'ux-rating-picker',reference:'element',children:[{reference:'innerEl',cls:'ux-rating-picker-inner',listeners:{click:'onClick',mousemove:'onMouseMove',mouseenter:'onMouseEnter',mouseleave:'onMouseLeave'},children:[{reference:'valueEl',cls:'ux-rating-picker-value'},{reference:'trackerEl',cls:'ux-rating-picker-tracker'}]}]},defaultBindProperty:'value',twoWayBindable:'value',overCls:'ux-rating-picker-over',trackOverCls:'ux-rating-picker-track-over',applyGlyphs:function(a){if(typeof a==='string'){a=[a.charAt(0),a.charAt(1)]}else {if(typeof a[0]==='number'){a=[String.fromCharCode(a[0]),String.fromCharCode(a[1])]}}return a},applyOverStyle:function(a){this.trackerEl.applyStyles(a)},applySelectedStyle:function(a){this.valueEl.applyStyles(a)},applyTooltip:function(a){if(a&&typeof a!=='function'){if(!a.isTemplate){a=new Ext.XTemplate(a)}a=a.apply.bind(a)}return a},applyTrackingValue:function(a){return this.applyValue(a)},applyValue:function(a){if(a!==null){var b=this.getRounding(),c=this.getLimit(),d=this.getMinimum();a=Math.round(Math.round(a/b)*b*1000)/1000;a=ac?c:a}return a},onClick:function(a){var b=this.valueFromEvent(a);this.setValue(b)},onMouseEnter:function(){this.element.addCls(this.overCls)},onMouseLeave:function(){this.element.removeCls(this.overCls)},onMouseMove:function(a){var b=this.valueFromEvent(a);this.setTrackingValue(b)},updateFamily:function(a){this.element.setStyle('fontFamily',"'"+a+"'")},updateGlyphs:function(){this.refreshGlyphs()},updateLimit:function(){this.refreshGlyphs()},updateScale:function(a){this.element.setStyle('fontSize',a)},updateTooltip:function(){this.refreshTooltip()},updateTooltipText:function(c){var e=this.innerEl,b=Ext.tip&&Ext.tip.QuickTipManager,d=b&&b.tip,a;if(b){e.dom.setAttribute('data-qtip',c);this.trackerEl.dom.setAttribute('data-qtip',c);a=d&&d.activeTarget;a=a&&a.el;if(a&&e.contains(a)){d.update(c)}}},updateTrackingValue:function(d){var a=this,b=a.trackerEl,c=a.valueToPercent(d);b.setStyle('width',c);a.refreshTooltip()},updateTrackOver:function(a){this.element[a?'addCls':'removeCls'](this.trackOverCls)},updateValue:function(e,g){var a=this,h=a.getAnimate(),c=a.valueEl,f=a.valueToPercent(e),b,d;if(a.isConfiguring||!h){c.setStyle('width',f)}else {c.stopAnimation();c.animate(Ext.merge({from:{width:a.valueToPercent(g)},to:{width:f}},h))}a.refreshTooltip();if(!a.isConfiguring){if(a.hasListeners.change){a.fireEvent('change',a,e,g)}b=a.getWidgetColumn&&a.getWidgetColumn();d=b&&a.getWidgetRecord&&a.getWidgetRecord();if(d&&b.dataIndex){d.set(b.dataIndex,e)}}},afterCachedConfig:function(){this.refresh();return Ext.Widget.prototype.afterCachedConfig.apply(this,arguments)},initConfig:function(a){this.isConfiguring=!0;this.callParent([a]);this.refresh()},setConfig:function(){var a=this;a.isReconfiguring=!0;a.callParent(arguments);a.isReconfiguring=!1;a.refresh();return a},destroy:function(){this.tip=Ext.destroy(this.tip);Ext.Widget.prototype.destroy.call(this)},privates:{getGlyphTextNode:function(b){var a=b.lastChild;if(!a||a.nodeType!==3){a=b.ownerDocument.createTextNode('');b.appendChild(a)}return a},getTooltipData:function(){var a=this;return {component:a,tracking:a.getTrackingValue(),trackOver:a.getTrackOver(),value:a.getValue()}},refresh:function(){var a=this;if(a.invalidGlyphs){a.refreshGlyphs(!0)}if(a.invalidTooltip){a.refreshTooltip(!0)}},refreshGlyphs:function(j){var a=this,g=!j&&(a.isConfiguring||a.isReconfiguring),i,c,h,b,d,e,f;if(!g){i=a.getGlyphTextNode(a.innerEl.dom);f=a.getGlyphTextNode(a.valueEl.dom);e=a.getGlyphTextNode(a.trackerEl.dom);c=a.getGlyphs();h=a.getLimit();for(b=d='';h--;){d+=c[0];b+=c[1]}i.nodeValue=d;f.nodeValue=b;e.nodeValue=b}a.invalidGlyphs=g},refreshTooltip:function(f){var a=this,c=!f&&(a.isConfiguring||a.isReconfiguring),b=a.getTooltip(),d,e;if(!c){b=a.getTooltip();if(b){d=a.getTooltipData();e=b(d);a.setTooltipText(e)}}a.invalidTooltip=c},valueFromEvent:function(g){var a=this,e=a.innerEl,j=g.getX(),d=a.getRounding(),i=e.getX(),c=j-i,f=e.getWidth(),h=a.getLimit(),b;if(a.getInherited().rtl){c=f-c}b=c/f*h;b=Math.ceil(b/d)*d;return b},valueToPercent:function(a){a=a/this.getLimit()*100;return a+'%'}}},0,['rating'],['widget','rating'],{'widget':!0,'rating':!0},['widget.rating'],0,[Ext.ux.rating,'Picker'],0);Ext.cmd.derive('common.SearchField',Ext.form.field.Text,{emptyText:'Search',submitEmptyText:!1,enableKeyEvents:!0,listeners:{specialkey:function(a,b){if(b.getKey()==b.ENTER){if(a.isValid()&&a.getValue()!==''){this.fireEvent('search',a.getValue(),this)}}},change:function(a){var b=a.getValue();if(b.length>0){a.getTrigger('clear').show();a.getTrigger('search').hide();if(this.getMinSearch()>0&&a.getValue().length>=this.getMinSearch()){if(a.isValid()&&a.getValue()!==''){this.fireEvent('search',a.getValue(),this)}}}else {a.getTrigger('clear').hide();a.getTrigger('search').show();this.fireEvent('cancel')}},buffer:500},triggers:{clear:{cls:'x-form-clear-trigger',handler:function(a){a.reset();this.getTrigger('clear').hide();this.getTrigger('search').show();this.fireEvent('cancel')},hidden:!0},search:{cls:'x-form-search-trigger',handler:function(){}}},config:{minSearch:null}},0,['common-searchfield'],['component','box','field','textfield','common-searchfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'common-searchfield':!0},['widget.common-searchfield'],0,[common,'SearchField'],0);Ext.cmd.derive('common.data.proxy.CrsfToken',Ext.Base,{singleton:!0,constructor:function(){Ext.Ajax.on('beforerequest',function(b,a){if(!(/^http:.*/.test(a.url)||/^https:.*/.test(a.url))){if(typeof a.headers=='undefined'){a.headers={'Accept':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')}}else {a.headers['Application']='application/json';a.headers['X-CSRFToken']=Ext.util.Cookies.get('csrftoken')}}},this)}},1,0,0,0,0,0,[common.data.proxy,'CrsfToken'],0);Ext.cmd.derive('common.data.proxy.Django',Ext.data.proxy.Rest,{headers:{'Accept':'application/json;'},startParam:'offset',sortParam:'ordering',reader:{type:'json',rootProperty:'results',totalProperty:'count'},writer:{},actionMethods:{create:'POST',read:'GET',update:'PATCH',destroy:'DELETE'},encodeSorters:function(b){var c=[],a,d;for(var e in b){a=b[e];d=(a.getDirection()=='DESC'?'-':'')+a.getProperty();c.push(d)}return c.join()},getParams:function(b){var a=Ext.data.proxy.Rest.prototype.getParams.apply(this,arguments);if(!b.isReadOperation){return a}var c=b.getFilters();delete a[this.getFilterParam()];Ext.each(c,function(f){var e=f.getProperty(),d=f.getValue(),c,g;switch(f.getOperator()){case '<':c=Ext.String.format('{0}__lt',e);a[c]=d;break;case '<=':c=Ext.String.format('{0}__lte',e);a[c]=d;break;case '>=':c=Ext.String.format('{0}__gte',e);a[c]=d;break;case '>':c=Ext.String.format('{0}__gt',e);a[c]=d;break;case '!=':c=Ext.String.format('{0}__ne',e);a[c]=d;break;case 'in':c=Ext.String.format('{0}__in',e);a[c]=d.join();break;case 'like':c=Ext.String.format('{0}__icontains',e);a[c]=d;break;case 'range':c=Ext.String.format('{0}__range',e);g=Ext.String.format('{0},{1}',d[0],d[1]);a[c]=g;break;default:a[e]=d;}});return a},buildUrl:function(c){var b=this,e=c.getOperation(),h=e.getRecords(),g=h?h[0]:null,i=b.getFormat(),a=b.getUrl(c),d,f;if(g&&!g.phantom){d=g.getId()}else {d=e.getId()}if(b.getAppendId()&&b.isValidId(d)||e.action==='update'){if(!a.match(b.slashRe)){a+='/'}a+=encodeURIComponent(d);f=c.getParams();if(f){delete f[b.getIdParam()]}a+='/'}if(i){if(!a.match(b.periodRe)){a+='.'}a+=i}c.setUrl(a);return Ext.data.RestProxy.superclass.buildUrl.apply(this,arguments)}},0,0,0,0,['proxy.django'],0,[common.data.proxy,'Django'],0);Ext.cmd.derive('common.store.MyStore',Ext.data.Store,{proxy:{type:'django'},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c;switch(a.status){case 403:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;case 408:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Maximum execution time exceeded.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});break;}}}}}},0,0,0,0,0,0,[common.store,'MyStore'],0);Ext.cmd.derive('common.store.CommentsObjects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,proxy:{type:'django',url:'/dri/api/objectscomments/'},sorters:[{property:'date',direction:'DESC'}]},0,0,0,0,['store.comments-objects'],0,[common.store,'CommentsObjects'],0);Ext.cmd.derive('common.model.CommentObject',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'catalog_id',type:'int'},{name:'object_id',type:'string'},{name:'comments',type:'string'},{name:'owner',type:'string',persist:!1},{name:'date',type:'date',persist:!1},{name:'is_owner',type:'boolean',persist:!1}]},0,0,0,0,0,0,[common.model,'CommentObject'],0);Ext.cmd.derive('common.comment.CommentsObjectModel',Ext.app.ViewModel,{data:{catalog_id:null,object_id:null},stores:{comments:{type:'comments-objects'}},links:{currentcomment:{type:'common.model.CommentObject',create:!0}}},0,0,0,0,['viewmodel.comment-object'],0,[common.comment,'CommentsObjectModel'],0);Ext.cmd.derive('common.comment.CommentsObjectController',Ext.app.ViewController,{loadComments:function(b,c){var f=this,e=f.getView(),a=e.getViewModel(),d=a.getStore('comments');a.set('catalog_id',b);a.set('object_id',c);d.filter([{property:'catalog_id',value:b},{property:'object_id',value:c}])},onNewComment:function(){var a=this,g=a.getView(),b=a.getViewModel(),f=b.getStore('comments'),d=a.lookup('txtComment'),e=d.getValue(),c;if(e){c=Ext.create('common.model.CommentObject',{catalog_id:b.get('catalog_id'),object_id:b.get('object_id'),comments:e});d.reset();f.add(c);a.applyChanges()}},onTxtCommentPressKey:function(d,a){var b=this,c=b.lookup('txtComment');if(a.keyCode==13){b.onNewComment()}else {if(a.keyCode==27){c.reset()}}},onClickUpdateComment:function(b){var f=this,e=f.lookup('GridComments'),a=e.findPlugin('rowediting'),c=b.up('button'),d=c.getWidgetRecord();a.startEdit(d)},updateComment:function(d,a){var c=this,b=a.record;b.set('comments',a.newValues['comments']);c.applyChanges()},onClickDeleteComment:function(b){var a=this,c=b.up('button');record=c.getWidgetRecord();Ext.MessageBox.confirm('Confirm','Are you sure you want to do that?',function(c){if(c==='yes'){a.deleteComment(record)}},a)},deleteComment:function(b){var a=this,d=a.getViewModel(),c=d.getStore('comments');c.remove(b);a.applyChanges()},applyChanges:function(){var c=this,b=c.getView(),d=c.getViewModel(),a=d.getStore('comments');b.setLoading(!0);a.sync({success:function(){a.load()},failure:function(){a.rejectChanges();c.onFailure()},callback:function(){b.setLoading(!1);b.fireEvent('changecomments',a,b)}})},onFailure:function(){Ext.Msg.show({title:'Sorry',msg:'There was a problem and it was not possible to create the new record, please try again in a few moments. If the problem persists please notify us via the help desk.',icon:Ext.Msg.WARNING,buttons:Ext.Msg.OK})}},0,0,0,0,['controller.comment-object'],0,[common.comment,'CommentsObjectController'],0);Ext.cmd.derive('common.comment.CommentsObject',Ext.Panel,{padding:'19',frame:!0,controller:'comment-object',viewModel:'comment-object',layout:{type:'vbox',pack:'start',align:'stretch'},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'container',layout:'hbox',align:'fit',items:[{xtype:'textfield',reference:'txtComment',name:'comments',margin:'0 6 0 0',flex:1,enableKeyEvents:!0,listeners:{specialkey:'onTxtCommentPressKey'}},{xtype:'button',text:'Post',itemId:'btnSaveComment',align:'stretch',handler:'onNewComment',iconCls:'x-fa fa-floppy-o'}]},{xtype:'grid',reference:'GridComments',flex:1,frame:!0,split:!0,hideHeaders:!0,bind:{store:'{comments}',selection:'{currentcomment}'},plugins:[{ptype:'rowediting',autoCancel:!1,listeners:{edit:'updateComment'}}],columns:[{text:'',dataIndex:'comments',renderer:a.formatUser,flex:2,menuDisabled:!0,editor:{xtype:'textfield',allowBlank:!1}},{xtype:'datecolumn',text:'Date',dataIndex:'date',hidden:!0},{text:'Button',width:50,xtype:'widgetcolumn',widget:{xtype:'button',iconCls:'x-fa fa-caret-down',arrowVisible:!1,menu:[{text:'Edit',iconCls:'x-fa fa-pencil',handler:'onClickUpdateComment'},{text:'Delete',iconCls:'x-fa fa-trash',handler:'onClickDeleteComment'}]},onWidgetAttach:function(b,a){if(a.getWidgetRecord().get('is_owner')){a.setDisabled(!1)}else {a.setDisabled(!0)}}}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},formatUser:function(b,e,a){var d=this,c='
    {0} comments on {1}
    {2}
    ';return Ext.String.format(c,a.get('owner'),a.get('date')||'Unknown',b)},setObject:function(a,b){var c=this,d=c.getViewModel(),e=c.getController();d.set('catalog_id',a);d.set('object_id',b);e.loadComments(a,b)}},0,['comments-object'],['component','box','container','panel','comments-object'],{'component':!0,'box':!0,'container':!0,'panel':!0,'comments-object':!0},['widget.comments-object'],0,[common.comment,'CommentsObject'],0);Ext.cmd.derive('common.model.CommentPosition',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'owner',type:'string'},{name:'pst_dataset',type:'int'},{name:'pst_filter',type:'int'},{name:'pst_ra',type:'float'},{name:'pst_dec',type:'float'},{name:'pst_date',type:'date'},{name:'pst_comment',type:'string'},{name:'is_owner',type:'boolean'},{name:'coordinates',type:'string'}]},0,0,0,0,0,0,[common.model,'CommentPosition'],0);Ext.cmd.derive('common.store.CommentsPosition',common.store.MyStore,{model:'common.model.CommentPosition',remoteFilter:!0,remoteSort:!0,autoLoad:!1,proxy:{type:'django',url:'/dri/api/comment/position/'},sorters:[{property:'date',direction:'DESC'}]},0,0,0,0,['store.comments-position'],0,[common.store,'CommentsPosition'],0);Ext.cmd.derive('common.comment.CommentsPositionModel',Ext.app.ViewModel,{data:{catalog_id:null,coordinates:null},stores:{comments:{type:'comments-position'}},links:{currentcomment:{type:'common.model.CommentPosition',create:!0}}},0,0,0,0,['viewmodel.comment-position'],0,[common.comment,'CommentsPositionModel'],0);Ext.cmd.derive('common.comment.CommentsPositionController',Ext.app.ViewController,{loadComments:function(c,g){var b=this.getView().getViewModel(),f=b.getStore('comments'),a=c.targetPosition,d=a?a.lat:c.latlng.lat,e=a?a.lng:c.latlng.lng;b.set('pst_dataset',g.id);b.set('pst_dec',d);b.set('pst_ra',e);f.filter([{property:'coordinates',value:'[['+e+','+d+'],['+e+','+d+']]'}])},onDeleteComment:function(e){var a=this,c=a.getView(),d=c.getViewModel(),b=d.get('currentcomment');Ext.MessageBox.confirm('Confirm','Are you sure you want to do that?',function(c){if(c==='yes'){a.deleteComment(b)}},this)},deleteComment:function(b){var d=this,a=d.getView(),e=a.getViewModel(),c=e.getStore('comments');a.setLoading(!0);c.remove(b);c.sync({success:function(){b.isCommentPosition=!0;a.fireEvent('changecomments',{type:'delete',comment:b,total:c.data.items.length});a.setLoading(!1)},failure:function(e,d){a.setLoading(!1);var c=d.request.proxy.reader.jsonData;if(c){Ext.Msg.alert('Status',c.msg)}else {Ext.MessageBox.show({title:'Server Side Failure',msg:c.status+' '+c.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})}}})},onSaveComment:function(f){var e=this,b=e.getView(),d=b.getViewModel(),a=d.getStore('comments');var c=d.get('currentcomment');if(c.get('comments')!=''){b.setLoading(!0);a.sync({success:function(){a.commitChanges();a.load({callback:function(){c.isCommentPosition=!0;b.fireEvent('changecomments',{type:'delete',comment:c,total:a.data.items.length})}});var e=Ext.create('common.model.CommentObject');d.set('currentcomment',e);b.setLoading(!1)},failure:function(c,d){b.setLoading(!1);Ext.Msg.show({title:'Sorry',msg:'Was not possible to change the comment.',icon:Ext.Msg.ERROR,buttons:Ext.Msg.OK});a.rejectChanges()}})}},onNewComment:function(c){var a=this.getView().getViewModel(),d=a.getStore('comments');var b=Ext.create('common.model.CommentPosition',{pst_ra:a.get('pst_ra'),pst_dec:a.get('pst_dec'),pst_comment:c,pst_dataset:a.get('pst_dataset')});d.insert(0,b);a.set('currentcomment',b)}},0,0,0,0,['controller.comment-position'],0,[common.comment,'CommentsPositionController'],0);Ext.cmd.derive('common.comment.CommentsPosition',Ext.Panel,{padding:'19',frame:!0,controller:'comment-position',viewModel:'comment-position',layout:{type:'vbox',pack:'start',align:'stretch'},initComponent:function(){var a=this;a.rowEditing=new Ext.grid.plugin.RowEditing({listeners:{edit:function(c,b){b.record.set('pst_comment',b.newValues['pst_comment']);a.getController().onSaveComment()},canceledit:function(a,b){}}});if(!a.contextMenu){a.contextMenu=new Ext.menu.Menu({items:[{text:'Edit',handler:function(e){var d=a.down('grid'),b=a.contextMenu.record,c=d.store.find('id',b.data.id);a.rowEditing.startEdit(c,0)}},{text:'Delete',handler:function(e){var b=a.down('grid'),c=a.contextMenu.record,d=b.store.find('id',c.data.id);b.getSelectionModel().select(d);a.getController().onDeleteComment(e)}}]})}Ext.apply(this,{items:[{xtype:'container',layout:'hbox',align:'fit',items:[{xtype:'textfield',name:'comments',margin:'0 6 0 0',flex:1,enableKeyEvents:!0,listeners:{change:function(c,d){var b=a.down('grid').store;if(b.getNewRecords().length==0){}},specialkey:function(d,b){var c=a.getController();if(b.keyCode==13&&this.value){c.onNewComment(this.value);c.onSaveComment();this.setValue('')}else {if(b.keyCode==27){this.setValue('')}}}}},{xtype:'button',text:'Post',itemId:'btnSaveComment',align:'stretch',handler:function(){var c=a.getController();var b=a.down('[name="comments"]');if(b.value){c.onNewComment(b.value);c.onSaveComment();b.setValue('')}},iconCls:'x-fa fa-floppy-o'}]},{xtype:'grid',flex:1,frame:!0,split:!0,hideHeaders:!0,cls:'comment-grid',bind:{store:'{comments}',selection:'{currentcomment}'},plugins:[a.rowEditing],columns:[{text:'',dataIndex:'pst_comment',renderer:this.formatUser,flex:2,menuDisabled:!0,editor:{xtype:'textfield',allowBlank:!1}},{xtype:'datecolumn',text:'Date',dataIndex:'date',hidden:!0}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},formatUser:function(c,f,a){var e=this,b=Ext.id(),d='
    {0} comments on {1}
    {3}
    ';Ext.defer(function(){Ext.widget('button',{renderTo:b,iconCls:'x-fa fa-caret-down',style:'padding:0;margin-left:20px',handler:function(h,b){var g={x:b.event.clientX,y:b.event.clientY},d=e.up('comments-position').contextMenu;d.record=a;d.showAt(g)}})},50);return Ext.String.format(d,a.get('owner'),a.get('date')||'Unknown',b,c)}},0,['comments-position'],['component','box','container','panel','comments-position'],{'component':!0,'box':!0,'container':!0,'panel':!0,'comments-position':!0},['widget.comments-position'],0,[common.comment,'CommentsPosition'],0);Ext.cmd.derive('common.contact.ContactController',Ext.app.ViewController,{onFormCancel:function(){this.getView().lookupReference('windowForm').getForm().reset();this.getView().close()},onFormSubmit:function(){var c=this.getView(),d=c.lookupReference('windowForm'),b=d.getForm(),a=b.getValues();a.current_url=window.location.href;a.current_user=window.sessionStorage.dri_username;if(b.isValid()){Ext.Ajax.request({url:'/dri/api/contact/',method:'POST',params:a,success:function(){c.close();Ext.MessageBox.alert('Thank you!','Your inquiry has been sent. We will respond as soon as possible.')},failure:function(a,b){Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Sorry, message was not sent.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this})}})}}},0,0,0,0,['controller.contact'],0,[common.contact,'ContactController'],0);Ext.cmd.derive('common.contact.Contact',Ext.window.Window,{reference:'contactWindow',title:'Contact Us',controller:'contact',width:400,height:500,minWidth:300,minHeight:380,layout:'fit',resizable:!0,modal:!0,defaultFocus:'firstName',closeAction:'destroy',items:[{xtype:'form',reference:'windowForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{margin:'0 0 20 0',xtype:'component',html:['Thank you for visiting our site! We welcome your feedback; ','please click the button below to send us a message. We will ','respond to your inquiry as quickly as possible.']},{xtype:'textfield',fieldLabel:'Name',name:'name',allowBlank:!1},{xtype:'textfield',fieldLabel:'Your Email Address',vtype:'email',name:'from',allowBlank:!1},{xtype:'textfield',fieldLabel:'Subject',name:'subject',allowBlank:!1},{xtype:'textareafield',fieldLabel:'How can we help?',labelAlign:'top',flex:1,margin:'0',name:'message',allowBlank:!1,emptyText:'Describe the problem or share your ideas.'}],buttons:[{text:'Cancel',handler:'onFormCancel'},{text:'Send',handler:'onFormSubmit'}]}]},0,['form-contact-window'],['component','box','container','panel','window','form-contact-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'form-contact-window':!0},['widget.form-contact-window'],0,[common.contact,'Contact'],0);Ext.cmd.derive('common.data.Settings',Ext.Base,{singleton:!0,alternateClassName:'Settings',url:'/dri/api/get_setting/',teste:'boo',getSetting:function(c,a,b){var d=this;Ext.Ajax.request({url:d.url,method:'GET',params:{name:c},success:function(e){var d=JSON.parse(e.responseText);Ext.callback(a,b,[d[c],d])},failure:function(d,e){console.warn('Server Side Failure getSetting');Ext.callback(a,b,[null])}})},getSettings:function(c,a,b){var d=this;Ext.Ajax.request({url:d.url,method:'GET',params:{names:c.join()},success:function(d){var e=JSON.parse(d.responseText);Ext.callback(a,b,[e])},failure:function(d,e){console.warn('Server Side Failure getSettings');Ext.callback(a,b,[null])}})},loadSettings:function(b){var a=this;a.getSettings(b,function(d){for(var c in d){a[c]=d[c]}},a)}},0,0,0,0,0,0,[common.data,'Settings',0,'Settings'],0);Ext.cmd.derive('common.footer.FooterController',Ext.app.ViewController,{onClickContact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()}},0,0,0,0,['controller.footer'],0,[common.footer,'FooterController'],0);Ext.cmd.derive('common.footer.Footer',Ext.toolbar.Toolbar,{controller:'footer',cls:'des-portal-footer',height:28,layout:{pack:'center',align:'middle'},viewModel:{data:{}},items:[{xtype:'tbtext',html:'Powered by LIneA | Dark Energy Survey | NCSA',cls:'des-portal-footer-text'}]},0,['dri-footer'],['component','box','container','toolbar','dri-footer'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-footer':!0},['widget.dri-footer'],0,[common.footer,'Footer'],0);Ext.cmd.derive('common.ToolbarController',Ext.app.ViewController,{listen:{component:{'dri-header':{afterrender:'onAfterRender'}}},logout:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/dri/api/api-auth/logout/?next=/dri/apps/',b,c);window.location.assign(a)},projectHome:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/',b,c);window.location.assign(a)},contact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()},about:function(){window.open('http://www.linea.gov.br')},onAfterRender:function(){var a=this;a.loadUsername();a.loaddTutorials()},loaddTutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');a.addFilter([{property:'app_name',value:c.get('internal_name')}]);a.load({scope:this,callback:b.onLoadTutorials})},onLoadTutorials:function(){var b=this,d=b.getViewModel(),c=d.getStore('tutorials'),a=b.lookupReference('headermenututorials');if(c.count()>0){a.enable()}else {a.disable()}},tutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');if(this.wincontact){this.wincontact=null}this.wintutorials=Ext.create('common.help.Tutorials',{store:a});this.wintutorials.show()},onClickHelp:function(){var e=this,f=e.getViewModel(),c=window.location.protocol,d=window.location.host,b=f.get('help_url'),a;a=Ext.String.format('{0}//{1}/{2}',c,d,b);window.open(a)},loadUsername:function(){var a=this,b=a.getViewModel();Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(c){var a=JSON.parse(c.responseText);b.set('username',a.username);window.dri_username=a.username}})}},0,0,0,0,['controller.toolbar'],0,[common,'ToolbarController'],0);Ext.cmd.derive('common.help.TutorialsController',Ext.app.ViewController,{onSelect:function(e,c){var d=this,b=d.lookupReference('video'),a;a=Ext.create('Ext.Component',{flex:1,html:''});b.removeAll();b.add(a)}},0,0,0,0,['controller.tutorials'],0,[common.help,'TutorialsController'],0);Ext.cmd.derive('common.help.Tutorials',Ext.window.Window,{title:'Tutorials',controller:'tutorials',config:{store:null},initComponent:function(){var a=this;Ext.apply(this,{layout:'border',width:700,height:400,minWidth:300,minHeight:280,resizable:!0,maximizable:!0,modal:!0,closeAction:'destroy',items:[{xtype:'grid',reference:'tutorials_grid',region:'west',split:!0,hideHeaders:!0,width:200,store:a.getStore(),columns:[{dataIndex:'ttr_title',flex:1}],listeners:{select:'onSelect'}},{xtype:'panel',region:'center',reference:'video',split:!0,layout:{type:'vbox',pack:'start',align:'stretch'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)}},0,['tutorials-window'],['component','box','container','panel','window','tutorials-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'tutorials-window':!0},['widget.tutorials-window'],0,[common.help,'Tutorials'],0);Ext.cmd.derive('common.header.Toolbar',Ext.toolbar.Toolbar,{controller:'toolbar',cls:'des-portal-headerbar toolbar-btn-shadow',layout:{type:'hbox',align:'middle'},viewModel:{data:{home:'',desPortalLogo:'resources/des-portal-logo.png',tooltip:'Home',username:''},stores:{tutorials:{fields:['id','application','application_display_name','ttr_title','ttr_src','ttr_description'],remoteSort:!0,remoteFilter:!0,autoLoad:!1,pageSize:0,proxy:{type:'django',url:'/dri/api/tutorial/'}}}},viewItems:function(){return [{xtype:'component',cls:'des-portal-logo',bind:{html:'Home'}},{xtype:'component',cls:'des-portal-appname',bind:{html:'{name}'},flex:1},'->',{xtype:'button',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',itemId:'btnusername',bind:{text:'{username}'}},{xtype:'button',iconCls:'x-fa fa-home',ui:'white-toolbar',cls:'delete-focus-bg',scale:'medium',handler:'projectHome',tooltip:'Home of the Science Server'},{xtype:'button',reference:'headermenu',iconCls:'x-fa fa-bars',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',arrowVisible:!1,menu:[{text:'About LIneA',handler:'about'},{text:'Contact Us',handler:'contact'},{text:'Tutorials',iconCls:'x-fa fa-question-circle',reference:'headermenututorials',disabled:!0,handler:'tutorials'},{text:'Help',iconCls:'x-fa fa-question',reference:'headermenuhelp',handler:'onClickHelp'},'-',{text:'Log out',iconCls:'x-fa fa-sign-out',handler:'logout'}]}]},initComponent:function(){this.items=this.viewItems();Ext.toolbar.Toolbar.prototype.initComponent.call(this)},afterRender:function(){var c=this,b=window.location.href,a;a=b.split('#')[0];c.getViewModel().set('home',a);Ext.toolbar.Toolbar.prototype.afterRender.apply(this,arguments)}},0,['dri-header'],['component','box','container','toolbar','dri-header'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-header':!0},['widget.dri-header'],0,[common.header,'Toolbar'],0);Ext.cmd.derive('common.model.Dataset',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'tag',type:'int'},{name:'tag_display_name',type:'string'},{name:'release',type:'int'},{name:'release_name',type:'string'},{name:'release_display_name',type:'string'},{name:'tite',type:'int'},{name:'run',type:'string'},{name:'date',type:'string'},{name:'tli_tilename',type:'string'},{name:'tli_ra',type:'float'},{name:'tli_ra',type:'float'},{name:'tli_dec',type:'float'},{name:'tli_urall',type:'float'},{name:'tli_udecll',type:'float'},{name:'tli_uraur',type:'float'},{name:'tli_udecur',type:'float'},{name:'release_tag',type:'string',convert:function(b,a){return Ext.String.format('{0} - {1}',a.get('release_display_name'),a.get('tag_display_name'))}},{name:'image_src_ptif',type:'string'},{name:'image_src_thumbnails',type:'string'},{name:'g',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'g',a.get('tli_tilename'))}},{name:'r',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'r',a.get('tli_tilename'))}},{name:'i',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'i',a.get('tli_tilename'))}},{name:'z',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'z',a.get('tli_tilename'))}},{name:'y',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'y',a.get('tli_tilename'))}},{name:'irg',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'irg',a.get('tli_tilename'))}}],isInsideTile:function(a,e){var d=this,a=parseFloat(a),e=parseFloat(e),b,c,f,g;if(a>180){a=a-360}b=d.get('tli_urall');c=d.get('tli_uraur');f=d.get('tli_udecll');g=d.get('tli_udecur');if(b>180){b=b-360}if(c>180){c=c-360}if(a>b&&af&&e180){a=a-360}b=f.get('tli_urall');c=f.get('tli_uraur');if(b>180){b=b-360}if(c>180){c=c-360}if(ba&&f.get('tli_udecur')>d){e=f;return !1}},this);return e}},0,0,0,0,['store.tiles'],0,[common.store,'Tiles'],0);Ext.cmd.derive('common.store.Datasets',common.store.Tiles,{model:'common.model.Dataset',remoteFilter:!0,remoteSort:!0,pageSize:100,proxy:{type:'django',timeout:90000,url:'/dri/api/dataset/'}},0,0,0,0,['store.datasets'],0,[common.store,'Datasets'],0);Ext.cmd.derive('common.store.MyTreeStore',Ext.data.TreeStore,{proxy:{type:'django',appendId:!1,reader:{type:'json',rootProperty:'children'}},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c=JSON.parse(a.response.responseText);switch(a.status){case 403:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;default:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this});}}}}}},0,0,0,0,0,0,[common.store,'MyTreeStore'],0);Ext.cmd.derive('common.store.Releases',common.store.MyStore,{model:'common.model.Release',autoLoad:!0,remoteSort:!0,remoteFilter:!1,proxy:{type:'django',url:'/dri/api/releases/'},sorters:[{property:'rls_date',direction:'DESC'},{property:'rls_display_name',direction:'ASC'}]},0,0,0,0,['store.releases'],0,[common.store,'Releases'],0);Ext.cmd.derive('common.store.Tags',common.store.MyStore,{model:'common.model.Tag',remoteFilter:!0,remoteSort:!0,proxy:{type:'django',url:'/dri/api/tags/'},sorters:[{property:'tag_display_name',direction:'ASC'}]},0,0,0,0,['store.tags'],0,[common.store,'Tags'],0);Ext.cmd.derive('common.store.UsersSameGroup',common.store.MyStore,{autoLoad:!1,remoteSort:!1,remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/users_same_group/'},sorters:[{property:'username',direction:'ASC'}],fields:['id','username']},0,0,0,0,['store.users_same_group'],0,[common.store,'UsersSameGroup'],0);Ext.cmd.derive('visiomatic.Interface',Ext.Base,{makeToolbar:function(){return Ext.create('Ext.toolbar.Toolbar',{items:[]})},makeToolbarButtons:function(){var a=this,c=a.getAuxTools(),b=[];if(a.getEnableShift()){b.push({xtype:'button',tooltip:'Switch between Visiomatic / Aladdin.',iconCls:'x-fa fa-exchange',scope:a,handler:a.onShift})}if(a.getEnableLink()){b.push({xtype:'button',tooltip:'Get link',iconCls:'x-fa fa-link',scope:a,handler:a.getLinkToPosition})}if(c.length>0){Ext.each(c,function(a){b.push(a)})}return b},makeMousePosition:function(){var a=this.getMap();return Ext.DomHelper.append(a._controlCorners['topright'],{tag:'div',cls:'leaflet-right leaflet-control leaflet-control-wcs-dialog visiomatic-mouse-position',html:'
    Mouse RA, Dec (0,0)
    '})}},0,0,0,0,0,0,[visiomatic,'Interface'],0);Ext.cmd.derive('visiomatic.VisiomaticModel',Ext.app.ViewModel,{data:{release:null,tag:null,dataset:null}},0,0,0,0,['viewmodel.visiomatic'],0,[visiomatic,'VisiomaticModel'],0);Ext.cmd.derive('visiomatic.VisiomaticController',Ext.app.ViewController,{},0,0,0,0,['controller.visiomatic'],0,[visiomatic,'VisiomaticController'],0);Ext.cmd.derive('visiomatic.catalog.Catalogs',Ext.tree.Panel,{initComponent:function(){var a=this;Ext.apply(this,{emptyText:'No data to display.',hideHeaders:!0,rootVisible:!1,useArrows:!0,selModel:{mode:'SINGLE'},columns:[{xtype:'treecolumn',text:'Name',flex:2,sortable:!0,dataIndex:'text',renderer:a.getTooltipName}],tbar:[{xtype:'textfield',emptyText:'Search by name',reference:'SearchField',flex:1,triggers:{clear:{cls:'x-form-clear-trigger',handler:'cancelFilter',hidden:!0},search:{cls:' x-form-search-trigger'}},listeners:{change:'filterCatalogByname',buffer:500}}]});Ext.tree.Panel.prototype.initComponent.apply(this,arguments)},getTooltipName:function(d,e,b){var f=this,c,a;if(b.get('leaf')){c=new Ext.XTemplate('
    ','{prd_display_name}','','


    {description}

    ','
    ','
    ');a=c.apply(b.data);e.tdAttr='data-qtip="'+a+'"'}return d}},0,['visiomatic-catalogs-tree'],['component','box','container','panel','tablepanel','treepanel','visiomatic-catalogs-tree'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'treepanel':!0,'visiomatic-catalogs-tree':!0},['widget.visiomatic-catalogs-tree'],0,[visiomatic.catalog,'Catalogs'],0);Ext.cmd.derive('visiomatic.model.CatalogTree',Ext.data.Model,{fields:[{name:'id'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'epr_name',type:'string'},{name:'epr_username',type:'string'},{name:'epr_start_date',type:'date'},{name:'epr_end_date',type:'date'},{name:'epr_readme',type:'string'},{name:'epr_comment',type:'string'},{name:'ctl_num_columns',type:'int'},{name:'ctl_num_tiles',type:'int'},{name:'ctl_num_objects',type:'int'},{name:'cds_source',type:'string'},{name:'cds_fieldnames',type:'string'},{name:'editable',type:'boolean',defaultValue:!1},{name:'markable',type:'boolean',defaultValue:!1},{name:'release_display_name',type:'string'},{name:'external_catalog',type:'boolean',defaultValue:!1}]},0,0,0,0,0,0,[visiomatic.model,'CatalogTree'],0);Ext.cmd.derive('visiomatic.store.CatalogsTree',common.store.MyTreeStore,{model:'visiomatic.model.CatalogTree',autoLoad:!1,remoteFilter:!0,proxy:{api:{read:'/dri/api/catalog/get_class_tree_by_group/'}}},0,0,0,0,['store.catalogs-overlay-tree'],0,[visiomatic.store,'CatalogsTree'],0);Ext.cmd.derive('visiomatic.store.Overlays',Ext.data.ArrayStore,{remoteFilter:!1,remoteSort:!1,autoLoad:!1,pageSize:0},0,0,0,0,['store.overlays'],0,[visiomatic.store,'Overlays'],0);Ext.cmd.derive('visiomatic.model.FilterCondition',Ext.data.Model,{fields:[{name:'id',type:'int','default':null,persist:!1},{name:'filterset',type:'int'},{name:'fcd_property',type:'int'},{name:'fcd_property_name',type:'string'},{name:'fcd_operation',type:'string'},{name:'fcd_value',type:'string'},{name:'operator_display_name',type:'string',persist:!1},{name:'property_display_name',type:'string',persist:!1,convert:function(a,c){var b=c.get('fcd_property_name');switch(b){case '_meta_rating':a='Rating';break;case '_meta_reject':a='Reject';break;}return a}}]},0,0,0,0,0,0,[visiomatic.model,'FilterCondition'],0);Ext.cmd.derive('visiomatic.store.FilterConditions',Ext.data.Store,{model:'visiomatic.model.FilterCondition',remoteFilter:!1,pageSize:0,sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.overlay-filter-conditions'],0,[visiomatic.store,'FilterConditions'],0);Ext.cmd.derive('visiomatic.catalog.CatalogViewModel',Ext.app.ViewModel,{stores:{catalogs:{type:'catalogs-overlay-tree'},overlays:{type:'overlays'}},data:{visiomatic:null,currentColor:'1dff00',currentFilters:null,pointType:0,pointSize:1},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0},dataset:{type:'common.model.Dataset',create:!0}}},0,0,0,0,['viewmodel.catalogoverlay'],0,[visiomatic.catalog,'CatalogViewModel'],0);Ext.cmd.derive('visiomatic.model.Object',Ext.data.Model,{idProperty:'_meta_id',fields:[{name:'_meta_id'},{name:'_meta_catalog_id',type:'int'},{name:'_meta_is_system',type:'boolean'},{name:'_meta_ra',type:'float'},{name:'_meta_dec',type:'float'},{name:'_meta_radius',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Object'],0);Ext.cmd.derive('visiomatic.store.Objects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,model:'visiomatic.model.Object',pageSize:5000,proxy:{type:'django',timeout:90000,api:{read:'/dri/api/catalogobjects/'}}},0,0,0,0,['store.overlay-objects'],0,[visiomatic.store,'Objects'],0);Ext.cmd.derive('visiomatic.store.ExternalObjects',common.store.MyStore,{remoteFilter:!0,remoteSort:!1,autoLoad:!1,model:'visiomatic.model.Object',pageSize:10000,proxy:{type:'django',timeout:60000,api:{read:'/dri/api/vizier/'}}},0,0,0,0,['store.overlay-external-objects'],0,[visiomatic.store,'ExternalObjects'],0);Ext.cmd.derive('visiomatic.model.Overlay',Ext.data.Model,{idProperty:'id',fields:[{name:'id',type:'int'},{name:'name',type:'string'},{name:'color',type:'string'},{name:'visible',type:'boolean'},{name:'status',type:'string'},{name:'status_message',type:'string'},{name:'count',type:'int'},{name:'total_count',type:'int'},{name:'excess',type:'int'},{name:'catalog'},{name:'layers'},{name:'objects'},{name:'filters'},{name:'objectUrl'},{name:'pointSize',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Overlay'],0);Ext.cmd.derive('visiomatic.filter.FiltersController',Ext.app.ViewController,{listen:{component:{'overlay-filters-window':{changecatalog:'onChangeCatalog'}}},onChangeCatalog:function(b){var a=this,d=a.getViewModel(),c=d.getStore('contents');a.clearImputs();c.addFilter({property:'pcn_product_id',value:b.get('id')})},onLoadContents:function(a){},onAddFilter:function(){var d=this,a=d.getViewModel(),b=a.get('content'),f=a.get('operator'),h=a.get('value'),g=a.getStore('filters'),e=a.get('afilters'),c;c=Ext.create('visiomatic.model.FilterCondition',{fcd_property:b.get('id'),fcd_property_name:b.get('column_name'),fcd_operation:f.get('name'),fcd_value:h,property_display_name:b.get('display_name'),operator_display_name:f.get('display_name')});e.push(c);g.add(c);a.set('afilters',e);d.clearImputs();d.checkHaveFilters()},onRemoveFilterClick:function(f,d,c,e,g,b){var a=this;Ext.MessageBox.confirm('','The Filter will be removed. Do you want continue?',function(h){if(h==='yes'){b.drop();a.createAFilters();a.checkHaveFilters()}},this)},createAFilters:function(){var c=this,e=c.getViewModel(),d=c.lookup('gridFilters'),b=d.getStore(),a=[];console.log(b);b.each(function(b){console.log(b);a.push(b)},this);e.set('afilters',a)},checkHaveFilters:function(){var b=this,a=b.getViewModel(),c=a.get('afilters'),d=b.lookup('BtnApply');if(c.length>0){a.set('haveFilters',!0)}else {a.set('haveFilters',!1)}},onSelectProperty:function(f,c){var a=this,b=a.getViewModel(),d=b.get('afilters'),e},onSelectOperator:function(b,a){},onCancelFilter:function(){this.getView().close()},onApplyFilter:function(){var a=this,e=a.getView(),c=a.getViewModel(),d=c.get('currentCatalog'),b=c.get('afilters');if(b.length>0){a.applyFilters(d,b)}},applyFilters:function(c,d){var b=this,a=b.getView();a.fireEvent('applyfilters',d,c,b);a.close()},clearImputs:function(){var e=this,a=e.getReferences(),c=a.cmbProperty,b=a.cmbOperator,d=a.txtValue;c.reset();b.reset();d.reset()}},0,0,0,0,['controller.overlay_filters'],0,[visiomatic.filter,'FiltersController'],0);Ext.cmd.derive('visiomatic.model.CatalogContent',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'product_id',type:'int'},{name:'setting_id',type:'int'},{name:'column_name',type:'string'},{name:'class_id',type:'int'},{name:'category',type:'string'},{name:'display_name',type:'string'},{name:'ucd',type:'string'},{name:'unit',type:'string'},{name:'reference',type:'string'},{name:'mandatory',type:'boolean'},{name:'content_setting',type:'int'},{name:'is_visible',type:'boolean'},{name:'order',type:'int'}]},0,0,0,0,0,0,[visiomatic.model,'CatalogContent'],0);Ext.cmd.derive('visiomatic.store.ProductDisplayContents',common.store.MyStore,{model:'visiomatic.model.CatalogContent',remoteFilter:!0,remoteSort:!1,pageSize:0,proxy:{url:'/dri/api/productcontent/get_display_content/'},sorters:[{property:'order',direction:'ASC'},{property:'display_name',direction:'ASC'}],ucds:['meta.id;meta.main','pos.eq.ra;meta.main','pos.eq.dec;meta.main'],check_ucds:function(){var a=this,b=[];a.each(function(c){if(a.ucds.indexOf(c.get('ucd'))!==-1){b.push(!0)}},a);if(b.length===a.ucds.length){return !0}else {return !1}}},0,0,0,0,['store.overlay-product-display-contents'],0,[visiomatic.store,'ProductDisplayContents'],0);Ext.cmd.derive('visiomatic.filter.FiltersModel',Ext.app.ViewModel,{stores:{contents:{type:'overlay-product-display-contents',storeId:'productContents',autoLoad:!1},filters:{type:'overlay-filter-conditions',storeId:'filterConditions',autoLoad:!1},operators:{fields:['name','display_name','type'],data:[{name:'=',display_name:'is equal to',type:'text'},{name:'!=',display_name:'is not equal to',type:'text'},{name:'>',display_name:'is greater than',type:'text'},{name:'>=',display_name:'is greater than or equal to',type:'text'},{name:'<',display_name:'is less than',type:'text'},{name:'<=',display_name:'is less than or equal to',type:'text'}]}},data:{operator:null,value:null,haveFilters:!1,afilters:[]},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0}}},0,0,0,0,['viewmodel.overlay_filters'],0,[visiomatic.filter,'FiltersModel'],0);Ext.cmd.derive('visiomatic.filter.FiltersWindow',Ext.window.Window,{title:'Filters',width:500,height:300,modal:!0,autoShow:!0,controller:'overlay_filters',viewModel:'overlay_filters',closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null},items:[{xtype:'form',reference:'filterForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'fieldset',title:'Add condition',items:[{xtype:'fieldcontainer',layout:'hbox',defaults:{flex:1},items:[{xtype:'combobox',emptyText:'Property',itemId:'cmbProperty',reference:'cmbProperty',publishes:'id',displayField:'display_name',bind:{store:'{contents}',selection:'{content}'},listeners:{select:'onSelectProperty'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,margin:'0 5 0 0'},{xtype:'combobox',itemId:'cmbOperator',reference:'cmbOperator',publishes:'name',displayField:'display_name',emptyText:'Operator',bind:{store:'{operators}',selection:'{operator}'},listeners:{select:'onSelectOperator'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,forceSelection:!0,margin:'0 5 0 0'},{xtype:'textfield',reference:'txtValue',emptyText:'Value',bind:{value:'{value}'},margin:'0 5 0 0',allowBlank:!1},{xtype:'button',iconCls:'x-fa fa-plus',width:40,flex:!1,handler:'onAddFilter'}]}]}]},{xtype:'grid',reference:'gridFilters',layout:'fit',border:!0,framed:!0,hideHeaders:!0,flex:1,bind:{store:'{filters}'},viewConfig:{markDirty:!1},columns:[{text:'Property',dataIndex:'property_display_name',flex:1},{text:'Operator',dataIndex:'operator_display_name',flex:1},{text:'Value',dataIndex:'fcd_value',flex:1},{xtype:'actioncolumn',width:60,sortable:!1,menuDisabled:!0,align:'center',items:[{iconCls:'x-fa fa-minus-circle color-soft-red',tooltip:'Remove condition',handler:'onRemoveFilterClick'}]}]}],buttons:[{text:'Cancel',handler:'onCancelFilter'},{text:'Ok',reference:'BtnApply',handler:'onApplyFilter',bind:{disabled:'{!haveFilters}'}}],setCurrentCatalog:function(a){var b=this;if(a&&a.get('id')>0){b.currentCatalog=a;b.getViewModel().set('currentCatalog',a);b.fireEvent('changecatalog',a)}},setFilterSet:function(a){var d=this,c=d.getViewModel(),b=c.getStore('filters'),e=d.lookup('btnDeleteFilterSet'),f=d.lookup('txtFilter');if(a&&a.get('id')>0){c.set('filterSet',a);c.set('filterName',a.get('fst_name'));f.setReadOnly(!0);e.enable();b.addFilter({property:'filterset',value:a.get('id')});b.load()}else {c.set('filterName',null);f.setReadOnly(!1);e.disable();b.clearFilter();b.removeAll(!0)}}},0,['overlay-filters-window'],['component','box','container','panel','window','overlay-filters-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'overlay-filters-window':!0},['widget.overlay-filters-window'],0,[visiomatic.filter,'FiltersWindow'],0);Ext.cmd.derive('visiomatic.catalog.CatalogController',Ext.app.ViewController,{listen:{component:{'visiomatic-catalog-overlay':{changedataset:'onChangeDataset'}}},baseFilters:[],winFilter:null,onChangeDataset:function(d){var a=this,c=a.getViewModel(),b=c.getStore('overlays');b.removeAll();a.loadCatalogs()},loadCatalogs:function(){var c=this,d=c.getViewModel(),b=d.getStore('catalogs'),a;a=[{property:'group',operator:'in',value:['objects_catalog','targets','value_added_catalogs','external_catalogs']}];c.baseFilters=a;b.addFilter(a);b.load()},onSelectCatalog:function(){var a=this,d=a.getViewModel(),b=d.get('currentFilters'),c=a.lookup('CatalogsTree'),f=c.selection,e=a.lookup('btnFilter');b=[]},filterCatalogByname:function(){var a=this,h=a.lookup('CatalogsTree'),b=a.lookup('SearchField'),c=h.getStore(),d=b.getValue(),e=[],f;if(d.length>0){b.getTrigger('clear').show();if(c.isLoading()){console.log('Store is Loading: %o',c.isLoading());var g=c.getProxy();g.abort();console.log('Store proxy abort')}f={property:'search',value:d};e.push(f);a.filterCatalogs(e)}else {b.getTrigger('clear').hide();a.filterCatalogs()}},filterCatalogs:function(a){var d=this,g=d.getViewModel(),b=g.getStore('catalogs'),f=d.baseFilters,e,c=Ext.clone(f);b.clearFilter(!0);b.removeAll();if(a&&Array.isArray(a)){for(index in a){e=a[index];c.push(e)}}b.filter(c)},cancelFilter:function(){var b=this,a=b.lookup('SearchField');a.reset();b.filterCatalogs();a.getTrigger('clear').hide()},onClickOverlay:function(){var b=this,c=b.getViewModel(),k=b.lookup('CatalogsTree'),d=k.selection,j=c.get('currentColor'),i=c.get('currentFilters'),h=c.getStore('overlays'),e=b.lookup('cmbPointType'),g=e.getValue(),f=c.get('pointSize')/1000,a;c.set('currentCatalog',d);a=Ext.create('visiomatic.model.Overlay',{name:d.get('prd_display_name'),catalog:d,color:Ext.String.format('#{0}',j),visible:!0,count:null,layers:null,pointType:g,pointSize:f,status:'loading',filters:null});h.add(a);if(!d.get('external_catalog')){a.set('objects',Ext.create('visiomatic.store.Objects',{}));a.set('filters',i);b.loadObjects(a)}else {a.set('objects',Ext.create('visiomatic.store.ExternalObjects',{}));a.set('objectUrl',!0);b.loadExternalCatalogObjects(a)}},loadExternalCatalogObjects:function(b){var d=this,f=d.getViewModel(),e=f.get('visiomatic'),c=b.get('objects'),a;a=e.getBounds();c.addFilter([{property:'cds_source',value:b.get('catalog').get('cds_source')},{property:'cds_fieldnames',value:b.get('catalog').get('cds_fieldnames')},{property:'lat',value:a.lat},{property:'lng',value:a.lng},{property:'dlat',value:a.dlat},{property:'dlng',value:a.dlng}]);c.load({callback:function(e,c,a){d.onLoadObjects(b,c,a)}})},loadObjects:function(a){var f=this,h=f.getViewModel(),g=h.get('visiomatic'),b=a.get('objects'),d=a.get('filters'),c=[],e;e=g.getBox();b.addFilter([{property:'product',value:a.get('catalog').get('id')},{property:'coordinates',value:JSON.stringify(e)}]);if(d!==null){Ext.each(d,function(b){c.push({property:b.get('fcd_property_name'),operator:b.get('fcd_operation'),value:b.get('fcd_value')})});b.addFilter(c)}b.load({callback:function(d,c,b){f.onLoadObjects(a,c,b)}})},onLoadObjects:function(a,c,g){var i=this,j=i.getViewModel(),h=j.get('visiomatic'),b=a.get('objects'),d,e;a.set('count',b.count());if(!g){var f=c.error.statusText;if(c.error.status==0){f='Communication Failure or Time out'}d=Ext.String.format('Sorry, there was a server error, and this operation can not be performed.
    Error: {0} - {1}',c.error.status,f);a.set('status','error');a.set('status_message',d);console.log('Server Side ERROR: %o - %o',c.error.status,c.error.statusText)}else {if(b.count()>0){if(b.totalCount>b.pageSize){e=b.totalCount-b.pageSize;d=Ext.String.format('The query returned more objects than the limit.
    {0} objects are not being displayed.
    Limit: {1}
    Query returned: {2}
    ',e,b.pageSize,b.totalCount);a.set('total_count',b.totalCount);a.set('excess',e);a.set('status','alert');a.set('status_message',d)}else {a.set('status','ok')}}else {a.set('status','warning')}layers=h.overlayCatalog(a.get('name'),b,{color:a.get('color'),objectUrl:a.get('objectUrl'),pointType:a.get('pointType'),pointSize:a.get('pointSize')});a.set('layers',layers)}},onRemoveOverlay:function(i,f,h){var g=this,c=g.getViewModel(),e=c.getStore('overlays'),d=c.get('visiomatic'),b=e.getAt(f),a=b.get('layers');if(a!==null){d.showHideLayer(a,!1)}b.erase()},onChangeVisibility:function(i,e,g){var h=this,b=h.getViewModel(),d=b.getStore('overlays'),c=b.get('visiomatic'),f=d.getAt(e),a=f.get('layers');if(a!==null){c.showHideLayer(a,g)}},onClickBtnFilter:function(){var a=this,d=a.getViewModel(),c=a.lookup('CatalogsTree'),b=c.selection;if(b&&b.get('id')>0){a.winFilter=Ext.create('visiomatic.filter.FiltersWindow',{listeners:{scope:a,applyfilters:'onApplyFilters'}});a.winFilter.setCurrentCatalog(b);a.winFilter.show()}},onApplyFilters:function(a,d){var b=this,c=b.getViewModel();if(a.length>0){c.set('currentFilters',a)}}},0,0,0,0,['controller.catalogoverlay'],0,[visiomatic.catalog,'CatalogController'],0);Ext.cmd.derive('visiomatic.catalog.Submit',Ext.form.Panel,{initComponent:function(){var a=this;Ext.apply(this,{bodyPadding:5,layout:{type:'vbox',align:'stretch'},items:[{xtype:'fieldset',flex:1,border:!1,items:[{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'tbtext',html:'Color:',width:45},{xtype:'colorbutton',bind:'{currentColor}',width:55,margin:'0 20 0 5',tooltip:'Choose a color. Click on the color and then on ok.'}]},{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'combobox',labelWidth:45,flex:1,reference:'cmbPointType',fieldLabel:'Marker',displayField:'name',valueField:'name',queryMode:'local',store:{fields:['name'],data:[{'name':'circle'},{'name':'ellipse'},{'name':'square'},{'name':'triangle'}]},value:'circle'},{xtype:'numberfield',name:'pointsize',fieldLabel:'Size',labelWidth:40,width:100,bind:'{pointSize}',minValue:1,maxValue:10,step:0.2,margin:'0 0 0 5'}]},{xtype:'button',iconCls:'x-fa fa-filter',text:'Filters',tooltip:'Filters',handler:'onClickBtnFilter',reference:'btnFilter',width:100}]}],buttons:[{text:'Apply',handler:'onClickOverlay'}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['visiomatic-catalogs-submit'],['component','box','container','panel','form','visiomatic-catalogs-submit'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'visiomatic-catalogs-submit':!0},['widget.visiomatic-catalogs-submit'],0,[visiomatic.catalog,'Submit'],0);Ext.cmd.derive('visiomatic.catalog.OverlayGrid',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{hideHeaders:!0,viewConfig:{markDirty:!1,listeners:{scope:a,render:a.addTooltipToColumnName,destroy:function(a){delete a.tip}}},columns:[{text:'Visible',xtype:'checkcolumn',dataIndex:'visible',width:30,listeners:{checkchange:'onChangeVisibility'},align:'center'},{text:'Color',dataIndex:'color',width:30,align:'center',renderer:a.renderColumnColor},{text:'Name',dataIndex:'name',tdCls:'nameTdCls',flex:2,renderer:a.renderColumnName},{menuDisabled:!0,xtype:'actioncolumn',width:30,items:[{iconCls:'x-fa fa-trash-o color-overlay-grid-icon',tooltip:'Remove',handler:'onRemoveOverlay'}]}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},addTooltipToColumnName:function(a){var b=this;a.tip=Ext.create('Ext.tip.ToolTip',{target:a.getId(),delegate:a.itemSelector+' .nameTdCls',trackMouse:!0,listeners:{beforeshow:function updateTipBody(c){var d=c.target.component;var e=d.getRecord(c.triggerElement);c.update(b.getTooltipName(e))}}})},getTooltipName:function(a){var f=this,b=a.get('filters'),d,e,c;if(a.get('status')!=='error'){d=Ext.String.format('{0}
    Entries: {1}',a.get('name'),a.get('count'));if(b!==null&&b.length>0){c='
    Filters:
    ';Ext.each(b,function(b){e=Ext.String.format('{0} {1} {2}
    ',b.get('fcd_property_name'),b.get('operator_display_name'),b.get('fcd_value'));c+=e});d+=c}return d}else {return a.get('status_message')}},renderColumnName:function(a,d,b){var c=16;if(a.length>c){a=a.substr(0,c);a=a+'...'}if(b.get('status')!=='loading'&&b.get('status')!=='error'){return Ext.String.format('{0} ({1} entries)',a,b.get('count'))}else {return a}},renderColumnColor:function(a,c,b){switch(b.get('status')){case 'loading':a='';break;case 'ok':a=Ext.String.format('',a);break;case 'alert':msg=b.get('status_message');a='';c.tdAttr='data-qtip= "'+msg+'"';break;case 'warning':a='';break;case 'error':msg=b.get('status_message');a='';break;}return a}},0,['visiomatic-catalogs-overlays-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','visiomatic-catalogs-overlays-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'visiomatic-catalogs-overlays-grid':!0},['widget.visiomatic-catalogs-overlays-grid'],0,[visiomatic.catalog,'OverlayGrid'],0);Ext.cmd.derive('visiomatic.catalog.CatalogOverlayWindow',Ext.window.Window,{controller:'catalogoverlay',viewModel:'catalogoverlay',config:{visiomatic:null,dataset:null},initComponent:function(){var a=this;Ext.apply(this,{title:'Catalog Overlay',width:600,height:450,closeAction:'hide',layout:{type:'hbox',align:'stretch'},items:[{xtype:'panel',split:!0,flex:1,framed:!0,layout:{type:'vbox',align:'stretch'},items:[{xtype:'visiomatic-catalogs-tree',reference:'CatalogsTree',flex:1,bind:{store:'{catalogs}'},listeners:{select:'onSelectCatalog'}},{xtype:'visiomatic-catalogs-submit',height:150,bind:{disabled:'{!CatalogsTree.selection.leaf}'}}]},{xtype:'visiomatic-catalogs-overlays-grid',split:!0,framed:!0,flex:1,bind:{store:'{overlays}'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setVisiomatic:function(a){this.visiomatic=a;this.getViewModel().set('visiomatic',a)},setDataset:function(c){var a=this,d=a.getDataset(),b=!1;if(d!==null&&d.get('id')>0){if(d.get('id')===c.get('id')){b=!1}else {b=!0}}else {b=!0}if(b){a.dataset=c;a.getViewModel().set('dataset',c);a.fireEvent('changedataset',c,a)}}},0,['visiomatic-catalog-overlay'],['component','box','container','panel','window','visiomatic-catalog-overlay'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'visiomatic-catalog-overlay':!0},['widget.visiomatic-catalog-overlay'],0,[visiomatic.catalog,'CatalogOverlayWindow'],0);Ext.cmd.derive('visiomatic.download.FitsController',Ext.app.ViewController,{listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},onChangeLoadFits:function(b,c){var f=this,e=f.getView(),a=e.getViewModel(),d=a.getStore('fitsFiles');a.set('tag',c);a.set('tilename',b);d.filter([{property:'tilename',value:b},{property:'tag',value:c}])}},0,0,0,0,['controller.fits-files'],0,[visiomatic.download,'FitsController'],0);Ext.cmd.derive('visiomatic.model.FitsFiles',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/get_fits_by_tilename'},fields:[{name:'filename',type:'string','default':null,persist:!1},{name:'filter',type:'string','default':null,persist:!1},{name:'order',type:'int','default':null,persist:!1},{name:'file_source',type:'string','default':null,persist:!1}]},0,0,0,0,0,0,[visiomatic.model,'FitsFiles'],0);Ext.cmd.derive('visiomatic.store.FitsFiles',common.store.MyStore,{model:'visiomatic.model.FitsFiles',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/get_fits_by_tilename'},sorters:[{property:'order',direction:'ASC'},{property:'filename',direction:'ASC'}]},0,0,0,0,['store.fits-files'],0,[visiomatic.store,'FitsFiles'],0);Ext.cmd.derive('visiomatic.download.FitsModel',Ext.app.ViewModel,{stores:{fitsFiles:{type:'fits-files'}}},0,0,0,0,['viewmodel.fits-files'],0,[visiomatic.download,'FitsModel'],0);Ext.cmd.derive('visiomatic.download.DescutDownloadWindow',Ext.window.Window,{viewModel:'fits-files',controller:'fits-files',title:'Download',width:600,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'vbox',align:'stretch'},initComponent:function(){var a=this;Ext.apply(this,{layout:'fit',items:[{xtype:'gridpanel',scrollable:!0,bind:{store:'{fitsFiles}'},columns:[{text:'Filename',dataIndex:'filename',flex:1},{text:'Filter',dataIndex:'filter'},{text:'URL',dataIndex:'file_source',renderer:function(a,b,c){return ' '}}]}],buttons:[{xtype:'label',text:'Right click "Save link as" to download files',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadFits:function(a,b){var c=this;this.loadFits=a;c.fireEvent('changeLoadFits',a,b)}},0,['target-download-descut'],['component','box','container','panel','window','target-download-descut'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-descut':!0},['widget.target-download-descut'],0,[visiomatic.download,'DescutDownloadWindow'],0);Ext.cmd.derive('visiomatic.Visiomatic',Ext.panel.Panel,{controller:'visiomatic',viewModel:'visiomatic',height:'100%',width:'100%',libL:null,config:{map:null,mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!0},prefix:null,enableSidebar:!0,enableSmallCrosshair:!1,enableCatalogs:!1,availableCatalogs:['GALEX_AIS','2MASS','AllWISE','SDSS','PPMXL','Abell','NVSS','FIRST','GAIA_DR1'],enableMiniMap:!1,miniMapOptions:{position:'topright',width:128,height:128,zoomLevelOffset:-6,nativeCelsys:!0},miniMap:null,enableWcs:!0,wcsUnits:[{label:'RA, Dec (Deg)',units:'deg'},{label:'RA, Dec (HMS)',units:'HMS'}],enableScale:!0,image:null,imageLayer:null,imageOptions:{credentials:!0,center:!1,fov:!1,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'},radiusOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',dashArray:'5, 5, 1, 5',interactive:!1},catalogOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',interactive:!0,pointType:'circle',pointSize:0.001},crosshairOptions:{color:'#FF4500',weight:2,smoothFactor:1,centerPadding:0.001,size:0.003},release:null,tag:null,dataset:null,currentDataset:null,enableTools:!0,auxTools:[],enableLink:!0,enableShift:!0,ready:!1,lradius:null,lcrosshair:null,showCrosshair:!1,enableContextMenu:!1,mlocate:'',showComments:!1},_winCatalogOverlay:null,bind:{release:'{release}',tag:'{tag}',dataset:'{dataset}'},initComponent:function(){var a=this,e=window.location.host,b,d,c;if(window.L){a.libL=window.L}else {console.log('window.L ainda nao esta carregada, incluir no app.json a biblioteca Leaflet')}this.cmpVisiomatic=c=Ext.create('Ext.Component',{id:a.getMapContainer(),width:'100%',height:'100%',listeners:{deactivate:a.onDeactivate}});if(a.getEnableTools()){b=a.makeToolbar();tools=a.makeToolbarButtons();b.add(tools);a.tbar=b}Ext.apply(this,{items:[c]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},afterRender:function(){var a=this,c=a.libL,d=a.getMapContainer(),e=a.getMapOptions(),b;Ext.panel.Panel.prototype.afterRender.apply(this,arguments);b=c.map(d,e);if(a.getPrefix()){b.attributionControl.setPrefix(a.getPrefix())}c.control.reticle().addTo(b);b.on('dblclick',a.onDblClick,a);b.on('contextmenu',a.onContextMenuClick,a);b.on('layeradd',a.onLayerAdd,a);b.on('move',a.onMove,a);b.on('mousemove',a.onMouseMove,a);b.on('overlaycatalog',a.showCatalogOverlayWindow,a);b.on('mouseup',a.savePreferences,a);b.on('keypress',a.savePreferences,a);a.setMap(b);if(a.getEnableSidebar()){a.createSidebar()}if(a.getEnableWcs()){a.addWcsController()}if(a.getEnableScale()){a.addScaleController()}a.cmpMousePosition=a.makeMousePosition()},savePreferences:function(){var c=this,a=c.getImageLayer();var b={credentials:!0,channelLabelMatch:'[ugrizY]',mixingMode:a.iipMode,contrast:a.iipContrast,gamma:a.iipGamma,invertCMap:a.iipInvertCMap,colorSat:a.iipColorSat,quality:a.iipQuality};localStorage.removeItem('imageOptions');localStorage.setItem('imageOptions',JSON.stringify(b))},onResize:function(){Ext.panel.Panel.prototype.onResize.apply(this,arguments);var a=this.getMap();if(a){a.invalidateSize()}},onDeactivate:function(){console.log('onDeactivate');var a=this;if(a._winCatalogOverlay){a._winCatalogOverlay.close()}},getMapContainer:function(){return this.getId()+'-placeholder'},createSidebar:function(){var c=this,b=c.libL,f=c.getMap(),e=c.getAvailableCatalogs(),a,d=[];a=b.control.sidebar().addTo(f);b.control.iip.channel().addTo(a);b.control.iip.image().addTo(a);if(c.getEnableCatalogs()){Ext.Array.each(e,function(a){d.push(b.Catalog[a])});b.control.iip.catalog(d).addTo(a)}b.control.iip.region([]).addTo(a);b.control.iip.profile().addTo(a);b.control.iip.snapshot().addTo(a);a.addTabList()},createSmallCrosshair:function(){var b=this,a=b.getRaDec(),c={color:'#90FA3A',weight:1,opacity:0.8,smoothFactor:1,centerPadding:5.0E-4,size:0.0015};b.drawSmallCrosshair(a.ra,a.dec,c)},addWcsController:function(){var a=this,c=a.libL,d=a.getMap(),b=a.getWcsUnits();c.control.wcs({coordinates:b,position:'topright'}).addTo(d)},addScaleController:function(){var a=this,b=a.libL,c=a.getMap();b.control.scale.wcs({pixels:!1}).addTo(c)},setCurrentDataset:function(a){var b=this;b.currentDataset=a},setImage:function(e,d){var a=this,i=a.libL,j=a.getMap(),h=a.getMiniMap(),b=a.getImageLayer(),c=a.getImageOptions(),f,k,g;a.setReady(!1);if(a._winCatalogOverlay!==null){a._winCatalogOverlay.close();a._winCatalogOverlay=null}a.removeImageLayer();d=d||{};if(b){c={credentials:c.credentials,channelLabelMatch:'[ugrizY]',mixingMode:b.iipMode,contrast:b.iipContrast,gamma:b.iipGamma,invertCMap:b.iipInvertCMap,colorSat:b.iipColorSat,quality:b.iipQuality}}f=Ext.Object.merge(c,d);a.image=e;if(!b){b=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(b)}else {a.removeImageLayer();g=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(g)}if(a.getEnableMiniMap()){if(h){h.remove()}a.createMiniMap()}},createMiniMap:function(){var a=this,e=a.libL,h=a.getMap(),g=a.getMiniMapOptions(),f=a.getImageOptions(),d=a.getImage(),c,b;if(d){b=e.tileLayer.iip(d,{credentials:f.credentials,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'});c=e.control.extraMap(b,g).addTo(h);a.setMiniMap(c)}},setView:function(c,b,h,f){var a=this,g=a.libL,e=a.getMap(),d;if(a.isReady()){c=parseFloat(parseFloat(c).toFixed(5));b=parseFloat(parseFloat(b).toFixed(5));d=g.latLng(b,c);e.setView(d,e.options.crs.fovToZoom(e,h,d));if(a.getShowCrosshair()){if(!f){a.drawCrosshair(c,b)}}}},onLayerAdd:function(b){var a=this;if(b.layer.type==='tilelayer'){a.setReady(!0);a.fireEvent('changeimage',a)}},onDblClick:function(b){var a=this;a.fireEvent('dblclick',b,a)},onContextMenuClick:function(b){var a=this,c=a.getMap();if(!a.isObjectContextMenu){a.showContextMenuImage(b)}a.isObjectContextMenu=!1},removeImageLayer:function(){var b=this,a=b.getMap();if(a!==null){a.eachLayer(function(b){a.removeLayer(b)})}},getRaDec:function(){var c=this,d=c.libL,b=c.getMap(),e=b.options.crs,a=b.getCenter();return {'ra':parseFloat(a.lng),'dec':parseFloat(a.lat)}},getBounds:function(){var m=this,j=m.libL,c=m.getMap(),b=c.options.crs,k=b.forceNativeCelsys&&!this.options.nativeCelsys,e=k?b.celsysToEq(c.getCenter()):c.getCenter(),n=Math.abs(Math.cos(e.lat*Math.PI/180)),d=c.getPixelBounds(),f=c.getZoom(),a,g,l,i,h,o;a=k?[b.celsysToEq(c.unproject(d.min,f)),b.celsysToEq(c.unproject(j.point(d.min.x,d.max.y),f)),b.celsysToEq(c.unproject(d.max,f)),b.celsysToEq(c.unproject(libLpoint(d.max.x,d.min.y),f))]:[c.unproject(d.min,f),c.unproject(j.point(d.min.x,d.max.y),f),c.unproject(d.max,f),c.unproject(j.point(d.max.x,d.min.y),f)];g=parseFloat(e.lng.toFixed(6));l=parseFloat(e.lat.toFixed(6));i=(Math.max(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e))-Math.min(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e)))*n;h=Math.max(a[0].lat,a[1].lat,a[2].lat,a[3].lat)-Math.min(a[0].lat,a[1].lat,a[2].lat,a[3].lat);if(h<1.0E-4){h=1.0E-4}if(i<1.0E-4){i=1.0E-4}if(g>360){g=g-360}return {lat:parseFloat(l.toFixed(6)),lng:parseFloat(g.toFixed(6)),dlat:parseFloat(h.toFixed(6)),dlng:parseFloat(i.toFixed(6))}},getBox:function(){var h=this,e,d,b,c,a,g,f;bounding=h.getBounds();if(bounding.lng>360){bounding.lng=bounding.lng-360}d=parseFloat(bounding.lng+bounding.dlng/2).toFixed(6);b=parseFloat(bounding.lat+bounding.dlat/2).toFixed(6);c=parseFloat(bounding.lng-bounding.dlng/2).toFixed(6);a=parseFloat(bounding.lat-bounding.dlat/2).toFixed(6);g=[d,b];f=[c,a];e=[g,f];return e},getFov:function(){var e=this,a=e.getMap(),d=a.options.crs,c=a.getCenter(),b;b=d.zoomToFov(a,a.getZoom(),c);return b},onMove:function(){var a=this,b=a.getRaDec(),c=a.getFov();a.fireEvent('changeposition',b,c,a)},onMouseMove:function(b){var d=String(b.latlng.lng.toFixed(5)+', '+b.latlng.lat.toFixed(5)),a=this,c=a.getMap();this.cmpMousePosition.children[0].innerHTML='Mouse RA, Dec: '+d;a.currentPosition={radec:[b.latlng.lng.toFixed(5),b.latlng.lat.toFixed(5)],container:[b.containerPoint.x,b.containerPoint.y]};if(a.cropInit&&a.cropInit==a.cropEnd&&a.isCropping){if(a.cropRectangle){c.removeLayer(a.cropRectangle)}a.cropRectangle=a.drawRectangle(a.cropInit['radec'],a.currentPosition['radec'])}if(a.getEnableSmallCrosshair()){a.createSmallCrosshair()}},getLinkToPosition:function(){var b=this,e=b.getMap(),a=b.getRaDec(),c=b.getFov(),d;if(a.dec>0){d=a.ra.toFixed(5).replace('.',',')+'+'+a.dec.toFixed(5).replace('.',',')}else {d=a.ra.toFixed(5).replace('.',',')+a.dec.toFixed(5).replace('.',',')}if(c){c=c.toFixed(2).replace('.',',')}b.fireEvent('link',encodeURIComponent(d),c,a,b)},onShift:function(){this.fireEvent('shift',this.getRaDec(),this)},isReady:function(){return this.getReady()},panTo:function(a){var b=this.getMap();this.coordinatesToLatLng(a,function(c){if(c){b.panTo(c)}})},coordinatesToLatLng:function(a,b){visiomatic.Visiomatic.coordinatesToLatLng(a,b)},hmsToLatLng:function(a,b){visiomatic.Visiomatic.hmsToLatLng(a,b)},drawRadius:function(g,e,d,n,l){var a=this,b=a.libL,f=a.getMap(),j=f.options.crs,h=a.getRadiusOptions(),o=g+'_'+e,i,c,m;if(a.getLradius()){f.removeLayer(a.getLradius());a.setLradius(null)}m=Ext.Object.merge(h,l);if(n==='arcmin'){d=d/60}var k={type:'FeatureCollection',features:[{type:'Feature',id:o,properties:{},geometry:{type:'Point',coordinates:[g,e]}}]};c=b.geoJson(k,{coordsToLatLng:function(a){if(j.forceNativeCelsys){var c=j.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(a,c){i=Ext.Object.merge(h,{majAxis:d,minAxis:d,posAngle:90});return b.ellipse(b.latLng(e,g),i)}});a.setLradius(c);f.addLayer(c);return c},showHideRadius:function(d){var c=this,b=c.getMap(),a=c.getLradius();if(a!==null){if(d){b.addLayer(a)}else {b.removeLayer(a)}}},overlayCatalog:function(l,j,k){var c=this,b=c.libL,g=c.getMap(),h=g.options.crs,i=c.getCatalogOptions(),a,d,f,e;a=Ext.Object.merge(i,k);d={type:'FeatureCollection',features:[]};j.each(function(a){if(c.isInsideTile(a.get('_meta_ra'),a.get('_meta_dec'))){f={type:'Feature',id:a.get('_meta_id'),title:l,properties:a.data,is_system:a.get('_meta_is_system'),geometry:{type:'Point',coordinates:[a.get('_meta_ra'),a.get('_meta_dec')]}};d.features.push(f)}},c);e=b.geoJson(d,{coordsToLatLng:function(a){if(h.forceNativeCelsys){var c=h.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(e,d){if(e.is_system){if(e.properties._meta_radius){radius=e.properties._meta_radius/60;opts=c.getRadiusOptions()}}if(a.pointType==='ellipse'){var q=0.001,r=0.001,m=90;try{var o=e.properties._meta_a_image,p=e.properties._meta_b_image,f=e.properties._meta_theta_image;if(typeof o=='number'&&typeof p=='number'&&typeof f=='number'){q=o/3600;r=p/3600;m=f}}catch(x){}a.majAxis=q,a.minAxis=r,a.posAngle=m;return b.ellipse(d,a)}else {if(a.pointType==='square'){var w=[[d.lat-a.pointSize,d.lng-a.pointSize],[d.lat+a.pointSize,d.lng+a.pointSize]];var v=b.rectangle(w,a);return v}else {if(a.pointType==='triangle'){var h,i,g,n,s,t,u;h=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat-a.pointSize,d.lng+a.pointSize)];g=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];i=[b.latLng(d.lat-a.pointSize,d.lng+a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];s=b.polyline(h,a);u=b.polyline(g,a);t=b.polyline(i,a);n=new b.LayerGroup([s,u,t]);return n}else {a.majAxis=a.pointSize;a.minAxis=a.pointSize;a.posAngle=90;circle=b.ellipse(d,a);return circle}}}}}).bindPopup(c.createOverlayPopup).on('dblclick',function(){alert('TODO: OPEN IN EXPLORER!')}).on('contextmenu',c.onLayerContextMenu,c);g.addLayer(e);c.redraw();return e},redraw:function(){var d=this,c=d.getMap(),a=$(c.getContainer()),b=a.width();if(b>0){a.css({width:b+2});c.invalidateSize();a.css({width:'initial'})}},createOverlayPopup:function(i){var a=i.feature,h=a.properties,j=['_meta_mag_auto_g','_meta_mag_auto_r','_meta_mag_auto_i','_meta_mag_auto_z','_meta_mag_auto_y'],e=[],d=[],c=a.properties._meta_id,g=['RAJ2000','DEJ2000'],b=[],f;Ext.each(j,function(a){try{mag_name=a.slice(-1);if(mag_name=='y'){mag_name='Y'}mag_value=h[a];if(mag_value){mag_value=parseFloat(mag_value);tag=''+mag_name+': '+mag_value.toFixed(2)+'';e.push(tag)}}catch(k){}});if(a.properties._meta_photo_z){photoz=parseFloat(a.properties._meta_photo_z);d.push('photo-z: '+photoz.toFixed(2)+'')}if(a.properties._meta_is_system){c=''+a.properties._meta_id+''}else {if(a.properties._meta_catalog_class=='coadd_objects'){c=''+a.properties._meta_id+''}else {if(a.properties._meta_object_url){c=''+a.properties._meta_id+'';for(property in a.properties){if(!property.startsWith('_meta_')&&g.indexOf(property)==-1){b.push(property)}}if(b.length<=15){for(key in b.sort()){property=b[key];d.push(''+property+': '+a.properties[property]+'')}}}else {}}}ra=parseFloat(a.properties._meta_ra);dec=parseFloat(a.properties._meta_dec);f=''+a.title+'
    '+e.join('')+d.join('')+'
    ID: '+c+'
    RA, Dec (deg): '+ra.toFixed(5)+', '+dec.toFixed(5)+'
    ';return f},onDblClickOverlay:function(){console.log('onDblClickOverlay(%o)',arguments)},showHideLayer:function(a,c){var d=this,b=d.getMap();if(a!==null){if(c){b.addLayer(a)}else {b.removeLayer(a)}}},showHideComments:function(a,b){},onLayerContextMenu:function(a){var b=this;b.isObjectContextMenu=!0;if(a.target.targetPosition){b.showContextMenuImage(a)}else {if(a.target.targetObjet){a.layer={feature:a.target.targetObjet.feature}}b.showContextMenuObject(a)}},createCommentIcon:function(d,c){var b=this,e,a;a=b.markPosition(d,'mapmaker-comment comment-maker').on('contextmenu',b.onLayerContextMenu,b);if(c){c.commentMaker=a;a.targetObjet=c}else {a.targetPosition=d}a.getElement().style.display=b.getShowComments()?'':'none'},updateComment:function(b,a,c){},markPosition:function(i,g,e){var h=this,c=h.libL,j=h.getMap(),b,a,f,d;if(arguments.length==2){b=i;e=g;d=[12,25]}else {b=c.latLng(g,i);d=[8,44]}if(e){f=c.divIcon({className:'visiomatic-marker-position',iconAnchor:d,html:''});a=c.marker(b,{icon:f})}else {a=c.marker(b)}a.addTo(j);return a},setShowCrosshair:function(c){var b=this,d=b.getMap(),a=b.lcrosshair;b.showCrosshair=c;if(a!==null){if(c){d.addLayer(a)}else {d.removeLayer(a)}}},onToggleCrosshair:function(c,a,d){var b=this;if(d.pressed){b.drawCrosshair(c,a)}else {b.removeCrosshair(c,a)}},drawCrosshair:function(e,d,m){var c=this,a=c.libL,l=c.getMap(),o=c.getCrosshairOptions(),n=null,b,f,g,p,k,h,j,i;b=Ext.Object.merge({},o);if(m){b=Ext.Object.merge(b,m)}if(c.lcrosshair){if(l.hasLayer(c.lcrosshair)){l.removeLayer(c.lcrosshair);c.lsmallcrosshair=null}}p=a.latLng(d,e);f=b.centerPadding?b.centerPadding:0.001;g=b.size?b.size:0.005;k=[a.latLng(d+f,e),a.latLng(d+g,e)];h=[a.latLng(d-f,e),a.latLng(d-g,e)];j=[a.latLng(d,e+f),a.latLng(d,e+g)];i=[a.latLng(d,e-f),a.latLng(d,e-g)];k=a.polyline(k,b);h=a.polyline(h,b);j=a.polyline(j,b);i=a.polyline(i,b);n=new a.LayerGroup([k,h,j,i]);c.lcrosshair=n;if(c.getShowCrosshair()){l.addLayer(c.lcrosshair)}return c.lcrosshair},removeCrosshair:function(){var a=this,b=a.getMap();if(a.lcrosshair){if(b.hasLayer(a.lcrosshair)){b.removeLayer(a.lcrosshair);a.lsmallcrosshair=null}}},drawSmallCrosshair:function(d,c,e){var b=this,a=b.libL,h=b.getMap(),n=b.getCrosshairOptions(),p=null,m,f,g,o,l,i,k,j;m=Ext.Object.merge({},n);if(e){m=Ext.Object.merge(m,e)}if(b.lsmallcrosshair){if(h.hasLayer(b.lsmallcrosshair)){h.removeLayer(b.lsmallcrosshair);b.lsmallcrosshair=null}}o=a.latLng(c,d);f=0.005/h._zoom;g=0.01/h._zoom;l=[a.latLng(c+f,d),a.latLng(c+g,d)];i=[a.latLng(c-f,d),a.latLng(c-g,d)];k=[a.latLng(c,d+f),a.latLng(c,d+g)];j=[a.latLng(c,d-f),a.latLng(c,d-g)];l=a.polyline(l,e);i=a.polyline(i,e);k=a.polyline(k,e);j=a.polyline(j,e);layerSmall=new a.LayerGroup([l,i,k,j]);b.lsmallcrosshair=layerSmall;if(b.getEnableSmallCrosshair()&&e){h.addLayer(b.lsmallcrosshair)}return b.lsmallcrosshair},showCatalogOverlayWindow:function(){var b=this,c=b.getCurrentDataset(),a=b._winCatalogOverlay;if(c!==null&&c.get('id')>0){if(a!=null){a.show()}else {a=Ext.create('visiomatic.catalog.CatalogOverlayWindow',{visiomatic:b});b.add(a);a.show();b._winCatalogOverlay=a}b._winCatalogOverlay.setDataset(c)}else {console.log('Dataset nao foi definido, a funcao overlay precisa de um dataset.');return !1}},showDownloadWindow:function(){var d=this,a=d.getCurrentDataset(),c;if(a.get('tli_tilename')){c=a.get('tli_tilename');tag=a.get('release_name');var b=Ext.create('visiomatic.download.DescutDownloadWindow');b.loadFits(c,tag);b.show()}else {alert('File not found.')}},showContextMenuImage:function(b){var a=this,c=b.target,d={x:b.originalEvent.clientX,y:b.originalEvent.clientY};if(!a.getEnableContextMenu()){return}if(b.originalEvent.target.classList.contains('comment-maker')&&!c.targetPosition){return a.showContextMenuObject(b)}if(!this.contextMenuImage){this.contextMenuImage=new Ext.menu.Menu({items:[{id:'comment-position',text:'Comment Position',handler:function(c){a.fireEvent('imageMenuItemClick',a.contextMenuImage.target,a.getCurrentDataset())}}]})}c.latlng=b.latlng;a.contextMenuImage.target=c;a.contextMenuImage.showAt(d)},initCrop:function(){var a=this,b=a.getMap();b.on('mousedown',a.startCrop,a);a.isCropping=!0;b.dragging.removeHooks()},startCrop:function(){var a=this,b=a.getMap();a.cropInit=a.currentPosition;a.cropEnd=a.cropInit;b.off('mousedown',a.startCrop,a);b.on('mouseup',a.endCrop,a)},endCrop:function(c){var a=this,b=a.getMap();a.cropEnd=a.currentPosition;b.off('mouseup',a.endCrop,a);a.downloadCrop(a.cropInit,a.cropEnd);if(a.cropRectangle){b.removeLayer(a.cropRectangle)}a.cropInit=null;a.isCropping=!1;b.dragging.addHooks()},downloadCrop:function(d,e){var i=this,p=i.libL,h=i.getMap(),g=document.createElement('a'),a=i.getImageLayer();var o=h.getCenter(),j=h.getPixelBounds(),c=h.getZoom(),b;if(c>a.iipMaxZoom){b=Math.pow(2,c-a.iipMaxZoom);c=a.iipMaxZoom}else {b=1}var l=a.iipImageSize[c].x*b,m=a.iipImageSize[c].y*b,f=Math.abs(d.container[0]-e.container[0]),n=Math.abs(d.container[1]-e.container[1]);var k={x:j.min.x+Math.min(d.container[0],e.container[0]),y:j.min.y+Math.min(d.container[1],e.container[1])};g.href=a.getTileUrl({x:1,y:1}).replace(/JTL\=\d+\,\d+/g,'RGN='+k.x/l+','+k.y/m+','+f/l+','+n/m+'&WID='+(this._snapType===0?Math.floor(f/b):Math.floor(f/b/a.wcs.scale(c)))+'&CVT=jpeg');g.download=a._title+'_'+p.IIPUtils.latLngToHMSDMS(o).replace(/[\s\:\.]/g,'')+'.jpg';var q=Ext.create('visiomatic.crop.CropWindow',{image:g,height:n+100,width:f+100})},showContextMenuObject:function(a){var c,b=this,d={x:a.originalEvent.clientX,y:a.originalEvent.clientY};if(!b.getEnableContextMenu()){return}if(!this.contextMenuObject){this.contextMenuObject=new Ext.menu.Menu({items:[{id:'comment-object',text:'Comment Object',handler:function(c){b.fireEvent('objectMenuItemClick',a,this.feature)}}]})}c=b.contextMenuObject.items.get('comment-object');c.feature=a.layer?a.layer.feature:null;b.contextMenuObject.showAt(d)},drawRectangle:function(h,j,q){var f=this,a=f.libL,r=f.getMap(),e=h[0],c=h[1],d=j[0],b=j[1],l,g,k,i,p,m,n,o;pathOptions=Ext.Object.merge(f.getCrosshairOptions(),q);l=[a.latLng(c,d),a.latLng(c,e)];g=[a.latLng(b,d),a.latLng(b,e)];k=[a.latLng(c,e),a.latLng(b,e)];i=[a.latLng(c,d),a.latLng(b,d)];p=a.polyline(l,pathOptions);m=a.polyline(g,pathOptions);n=a.polyline(k,pathOptions);o=a.polyline(i,pathOptions);layer=new a.LayerGroup([p,m,n,o]);r.addLayer(layer);return layer},isInsideTile:function(d,b){var c=this,a=c.getCurrentDataset();if(a!=null&&a.get('id')>0){return a.isInsideTile(d,b)}else {return !0}},statics:{coordinatesToLatLng:function(a,c){var d,b=visiomatic.Visiomatic.strToSystem(a);a=a.trim().replace(/( )+/g,' ');d=a.split(',');if(b&&b.system=='latlng'){return c(b.value)}else {if(b&&b.system=='HMS'){return visiomatic.Visiomatic.hmsToLatLng(a,c)}}c(null)},hmsToLatLng:function(b,a){var c='http://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame/-oI/A?'+b;$.get(c,function(c){var d=visiomatic.Visiomatic.parseCoords(c,!0);if(a){a(d)}})},latLngToHMSDMS:function(f){var c=(f.lng+360)/360;c=(c-Math.floor(c))*24;var e=Math.floor(c),d=(c-e)*60,a=Math.floor(d),b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}var j=(e<10?'0':'')+e.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(3),h=Math.abs(f.lat),i=f.lat<0?'-':'+',g=Math.floor(h);d=(h-g)*60;a=Math.floor(d);b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}return j+' '+i+(g<10?'0':'')+g.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(2)},strToSystem:function(a){var b;if(a){a=a.trim().replace(/( )+/g,' ');b=a.split(',');if(b.length==2&&a.split(':').length==1){return {value:{lng:Number(b[0]),lat:Number(b[1])},system:'latlng'}}b=a.split(' ');if(b.length==2&&a.split(':').length==5){return {value:a,system:'HMS'}}}return null},parseCoords:function(b){var a=/J\s(\d+\.?\d*)\s*,?\s*\+?(-?\d+\.?\d*)/g.exec(b);if(a&&a.length>=3){return L.latLng(Number(a[2]),Number(a[1]))}return null}}},0,['visiomatic'],['component','box','container','panel','visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0},['widget.visiomatic'],[['interface',visiomatic.Interface]],[visiomatic,'Visiomatic'],0);Ext.cmd.derive('visiomatic.crop.CropWindow',Ext.window.Window,{title:'Crop',width:400,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'hbox'},initComponent:function(){var a=this,b=a.image;Ext.apply(this,{layout:'ux.center',items:[{xtype:'image',src:b.href,alt:b.download,height:a.height-100,width:a.width-100}],buttons:[{xtype:'label',text:'Right click "Save image as" to download the image',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadImage:function(a){var b=this;this.image=a}},0,['target-download-crop'],['component','box','container','panel','window','target-download-crop'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-crop':!0},['widget.target-download-crop'],0,[visiomatic.crop,'CropWindow'],0);Ext.cmd.derive('Target.Application',Ext.app.Application,{name:'Target',defaultToken:'home',stores:[],init:function(){Ext.create('common.statistics.Events').init();var a=this},launch:function(){Ext.enableAriaButtons=!1;Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(a){var b=JSON.parse(a.responseText);if(window.ga){ga('set','userId',b.id)}Settings.loadSettings(['PRODUCT_REGISTER_DB_INTERFACE','PRODUCT_REGISTER_FOLDERS','PRODUCT_REGISTER_ENABLE_PUBLIC','DES_CUTOUT_SERVICE__AVAILABLE_RELEASES','DES_CUTOUT_SERVICE__MAX_OBJECTS'])},failure:function(e,f){var d=window.location.protocol,c=window.location.pathname,b=window.location.host,a;a=Ext.String.format('{0}//{1}/dri/api/api-auth/login/?next={2}',d,b,c);window.location.assign(a)}})},onAppUpdate:function(){window.location.reload()}},0,0,0,0,0,0,[Target,'Application'],0);Ext.cmd.derive('Target.model.Association',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'pca_product',type:'int'},{name:'pca_class_content',type:'int'},{name:'pca_product_content',type:'int'},{name:'pcc_ucd',type:'string'},{name:'pcn_column_name',type:'string'}],proxy:{type:'django',url:'/dri/api/association/'}},0,0,0,0,0,0,[Target.model,'Association'],0);Ext.cmd.derive('Target.model.Bookmarked',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/bookmarked/'},fields:[{name:'id',type:'int','default':null,persist:!1},{name:'catalog_id',type:'int'},{name:'owner',type:'string',persist:!1},{name:'is_starred',type:'bool','default':!0},{name:'is_owner',type:'bool',persist:!1}]},0,0,0,0,0,0,[Target.model,'Bookmarked'],0);Ext.cmd.derive('Target.model.Catalog',Ext.data.Model,{fields:[{name:'id'},{name:'owner',type:'string'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_flag_removed',type:'boolean'},{name:'prd_class',type:'int'},{name:'prd_date',type:'date'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'epr_name',type:'string'},{name:'epr_username',type:'string'},{name:'epr_start_date',type:'date'},{name:'epr_end_date',type:'date'},{name:'epr_readme',type:'string'},{name:'epr_comment',type:'string'},{name:'ctl_num_columns',type:'int'},{name:'ctl_num_tiles',type:'int'},{name:'ctl_num_objects',type:'int'},{name:'release_id',type:'int'},{name:'release_display_name',type:'string'},{name:'prd_is_public',type:'boolean',defaultValue:!1},{name:'editable',type:'boolean',defaultValue:!1},{name:'is_owner',type:'boolean',defaultValue:!1},{name:'bookmark'}]},0,0,0,0,0,0,[Target.model,'Catalog'],0);Ext.cmd.derive('Target.model.CatalogColumn',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'pcn_product_id',type:'int'},{name:'pcn_column_name',type:'string'},{name:'pca_product',type:'int'},{name:'pca_class_content',type:'int'},{name:'pca_product_content',type:'int'},{name:'pcc_category',type:'string'},{name:'pcc_display_name',type:'string'},{name:'pcc_ucd',type:'string'},{name:'pcc_unit',type:'string'},{name:'pcc_reference',type:'string'},{name:'pcc_mandatory',type:'boolean'},{name:'ucd',type:'string',convert:function(b,a){return a.get('pcc_ucd')}},{name:'reference',type:'string'},{name:'unit',type:'string'},{name:'property_name',type:'string',convert:function(b,a){return a.get('pcn_column_name')}},{name:'property_display_name',type:'string',convert:function(b,a){if(a.get('pcc_display_name')!=''){return a.get('pcc_display_name')}else {return a.get('pcn_column_name')}}}]},0,0,0,0,0,0,[Target.model,'CatalogColumn'],0);Ext.cmd.derive('Target.model.CatalogContent',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'product_id',type:'int'},{name:'setting_id',type:'int'},{name:'column_name',type:'string'},{name:'class_id',type:'int'},{name:'category',type:'string'},{name:'display_name',type:'string'},{name:'ucd',type:'string'},{name:'unit',type:'string'},{name:'reference',type:'string'},{name:'mandatory',type:'boolean'},{name:'content_setting',type:'int'},{name:'is_visible',type:'boolean'},{name:'order',type:'int'}]},0,0,0,0,0,0,[Target.model,'CatalogContent'],0);Ext.cmd.derive('Target.model.CatalogObject',Ext.data.Model,{fields:[{name:'coadd_objects_id',type:'int'},{name:'tag_id',type:'string'},{name:'name',type:'string'},{name:'field_id',type:'string'},{name:'field_name',type:'string'},{name:'display_name',type:'string'},{name:'tiletag_id',type:'string'},{name:'tile_id',type:'string'},{name:'tilename',type:'string'},{name:'schema',type:'string'},{name:'table',type:'string'},{name:'ra',type:'float'},{name:'dec',type:'float'},{name:'display_ra',convert:function(a,b){a=Ext.util.Format.number(b.get('ra'),'0.0000');return a}},{name:'display_dec',convert:function(a,b){a=Ext.util.Format.number(b.get('dec'),'0.0000');return a}},{name:'_meta_ra',convert:function(b,a){return a.get('ra')}},{name:'_meta_dec',convert:function(b,a){return a.get('dec')}},{name:'l',type:'float'},{name:'b',type:'float'},{name:'tile'},{name:'type',type:'string',defaultValue:'---'},{name:'photoz',type:'string',defaultValue:'---'},{name:'extinction',type:'string',defaultValue:'---'},{name:'a_image',type:'float',defaultValue:0},{name:'b_image',type:'float',defaultValue:0},{name:'theta_image',type:'float',defaultValue:0},{name:'e',type:'float',convert:function(e,a){var b=a.get('a_image');var c=a.get('b_image');var d=1-c/b;return Ext.util.Format.number(d,'0.00000')}},{name:'fluxplot',type:'string',defaultValue:''},{name:'spectra',type:'boolean',defaultValue:!1},{name:'id'},{name:'z',convert:function(a,b){return Ext.util.Format.number(a,'0.00000')}},{name:'z_err',convert:function(a,b){return Ext.util.Format.number(a,'0.000')}},{name:'flag',convert:function(a,b){return Ext.util.Format.number(a,'0.0')}},{name:'source',type:'string'},{name:'zoom_g',type:'string'},{name:'zoom_r',type:'string'},{name:'zoom_i',type:'string'},{name:'zoom_z',type:'string'},{name:'zoom_y',type:'string'},{name:'zoom_gri',type:'string'},{name:'zoom_riz',type:'string'},{name:'zoom_izy',type:'string'},{name:'zoom_rgb',type:'string'},{name:'mag_auto_g',convert:function(a,b){a=Ext.util.Format.number(a,'0.00');return a}},{name:'mag_auto_i',convert:function(a,b){a=Ext.util.Format.number(a,'0.00');return a}},{name:'mag_auto_r',convert:function(a,b){a=Ext.util.Format.number(a,'0.00');return a}},{name:'mag_auto_y',convert:function(a,b){a=Ext.util.Format.number(a,'0.00');return a}},{name:'mag_auto_z',convert:function(a,b){a=Ext.util.Format.number(a,'0.00');return a}},{name:'magerr_auto_g',convert:function(a,b){a=Ext.util.Format.number(a,'0.000');return a}},{name:'magerr_auto_i',convert:function(a,b){a=Ext.util.Format.number(a,'0.000');return a}},{name:'magerr_auto_r',convert:function(a,b){a=Ext.util.Format.number(a,'0.000');return a}},{name:'magerr_auto_y',convert:function(a,b){a=Ext.util.Format.number(a,'0.000');return a}},{name:'magerr_auto_z',convert:function(a,b){a=Ext.util.Format.number(a,'0.000');return a}},{name:'mag_auto_magerr_g',convert:function(b,a){if(a.get('mag_auto_g')&&a.get('magerr_auto_g')){return b=Ext.String.format('{0} +- {1}',a.get('mag_auto_g'),a.get('magerr_auto_g'))}else {return a.get('mag_auto_g')}}},{name:'mag_auto_magerr_i',convert:function(b,a){if(a.get('mag_auto_i')&&a.get('magerr_auto_i')){return b=Ext.String.format('{0} +- {1}',a.get('mag_auto_i'),a.get('magerr_auto_i'))}else {return a.get('mag_auto_i')}}},{name:'mag_auto_magerr_r',convert:function(b,a){if(a.get('mag_auto_r')&&a.get('magerr_auto_r')){return b=Ext.String.format('{0} +- {1}',a.get('mag_auto_r'),a.get('magerr_auto_r'))}else {return a.get('mag_auto_r')}}},{name:'mag_auto_magerr_y',convert:function(b,a){if(a.get('mag_auto_y')&&a.get('magerr_auto_y')){return b=Ext.String.format('{0} +- {1}',a.get('mag_auto_y'),a.get('magerr_auto_y'))}else {return a.get('mag_auto_y')}}},{name:'mag_auto_magerr_z',convert:function(b,a){if(a.get('mag_auto_z')&&a.get('magerr_auto_z')){return b=Ext.String.format('{0} +- {1}',a.get('mag_auto_z'),a.get('magerr_auto_z'))}else {return a.get('mag_auto_z')}}},{name:'postage_stamps',type:'string'},{name:'timestamp',type:'string',convert:function(){timestamp=(new Date()).getTime();randon=Math.random();return timestamp+randon}},{name:'comments',type:'int'},{name:'users',type:'int'},{name:'users_string',type:'string',convert:function(a,b){if(a){return a.replace(', ','
    ')}else {return a}}},{name:'comment_user',convert:function(b,a){if(a.get('comments')>0){return Ext.String.format('{0}/{1}',a.get('comments'),a.get('users'))}else {return ''}}}]},0,0,0,0,0,0,[Target.model,'CatalogObject'],0);Ext.cmd.derive('Target.model.CatalogTree',Ext.data.Model,{fields:[{name:'id'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'prd_date',type:'date'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'epr_name',type:'string'},{name:'epr_username',type:'string'},{name:'epr_start_date',type:'date'},{name:'epr_end_date',type:'date'},{name:'epr_readme',type:'string'},{name:'epr_comment',type:'string'},{name:'description',type:'string'},{name:'ctl_num_columns',type:'int'},{name:'ctl_num_tiles',type:'int'},{name:'ctl_num_objects',type:'int'},{name:'editable',type:'boolean',defaultValue:!1},{name:'markable',type:'boolean',defaultValue:!1},{name:'tableExist',type:'boolean',defaultValue:!1},{name:'release_display_name',type:'string'},{name:'tbl_size',type:'int',convert:function(a,b){if(a>0){return Ext.util.Format.fileSize(a)}else {return null}}}]},0,0,0,0,0,0,[Target.model,'CatalogTree'],0);Ext.cmd.derive('Target.model.ContentSetting',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'pcs_content',type:'int'},{name:'pcs_setting',type:'int'},{name:'pcs_is_visible',type:'boolean'},{name:'pcs_order',type:'int'},{name:'display_name',type:'string',persist:!1}]},0,0,0,0,0,0,[Target.model,'ContentSetting'],0);Ext.cmd.derive('Target.model.CurrentSetting',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'cst_product',type:'int'},{name:'cst_setting',type:'int'},{name:'editable',type:'boolean','default':!1,persist:!1}],proxy:{type:'django',url:'/dri/api/currentsetting/'}},0,0,0,0,0,0,[Target.model,'CurrentSetting'],0);Ext.cmd.derive('Target.model.Cutout',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'cjb_cutout_job',type:'int'},{name:'ctt_object_id',type:'int'},{name:'ctt_object_ra',type:'float'},{name:'ctt_object_dec',type:'float'},{name:'ctt_filter',type:'int'},{name:'ctt_thumbname',type:'string'},{name:'ctt_file_path',type:'string'},{name:'ctt_file_name',type:'string'},{name:'ctt_file_type',type:'string'},{name:'ctt_file_size',type:'string'},{name:'ctt_download_start_time',type:'date'},{name:'ctt_download_finish_time',type:'date'},{name:'ctt_file_source',type:'string'},{name:'timestamp',type:'string'}],getImageSource:function(b){var a=this;if(b){return Ext.String.format('{0}?_dc={1}',a.get('ctt_file_source'),a.get('timestamp'))}else {return a.get('ctt_file_source')}}},0,0,0,0,0,0,[Target.model,'Cutout'],0);Ext.cmd.derive('Target.model.CutoutJob',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/filterset/'},fields:[{name:'id',type:'int',persist:!1},{name:'cjb_product',type:'int'},{name:'cjb_display_name',type:'string'},{name:'cjb_xsize',type:'float'},{name:'cjb_ysize',type:'float'},{name:'cjb_job_type',type:'string'},{name:'cjb_tag',type:'string'},{name:'cjb_band',type:'string'},{name:'cjb_Blacklist',type:'boolean','default':!1},{name:'cjb_label_position',type:'string'},{name:'cjb_label_colors',type:'string','default':'#2eadf5'},{name:'cjb_label_properties',type:'string'},{name:'cjb_label_font_size',type:'int'},{name:'cjb_start_time',type:'date'},{name:'cjb_finish_time',type:'date'},{name:'cjb_description',type:'string'},{name:'cjb_status',type:'string','default':'st'},{name:'cjb_job_id',type:'string',persist:!1},{name:'owner',type:'string',persist:!1},{name:'is_owner',type:'boolean',persist:!1},{name:'execution_time',type:'string',persist:!1},{name:'count_files',type:'int',persist:!1},{name:'file_sizes',type:'string',persist:!1},{name:'ready_to_download',type:'boolean','default':!1,persist:!1,convert:function(b,a){if(a.get('cjb_status')==='ok'){return !0}else {return !1}}},{name:'status',type:'string',persist:!1,convert:function(c,b){var a='';switch(b.get('cjb_status')){case 'st':a='Start';break;case 'bs':a='Submit Job';break;case 'rn':a='Running';break;case 'ok':a='Done';break;case 'er':a='Error';break;case 'je':a='Job Error';break;case 'dl':a='Deleted';break;}return a}}]},0,0,0,0,0,0,[Target.model,'CutoutJob'],0);Ext.cmd.derive('Target.model.FilterCondition',Ext.data.Model,{fields:[{name:'id',type:'int','default':null,persist:!1},{name:'filterset',type:'int'},{name:'fcd_property',type:'int'},{name:'fcd_property_name',type:'string'},{name:'fcd_operation',type:'string'},{name:'fcd_value',type:'string'},{name:'operator_display_name',type:'string',persist:!1},{name:'property_display_name',type:'string',persist:!1,convert:function(a,c){var b=c.get('fcd_property_name');switch(b){case '_meta_rating':a='Rating';break;case '_meta_reject':a='Reject';break;}return a}}]},0,0,0,0,0,0,[Target.model,'FilterCondition'],0);Ext.cmd.derive('Target.model.FilterSet',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/filterset/'},fields:[{name:'id',type:'int','default':null,persist:!1},{name:'product',type:'int'},{name:'owner',type:'int',persist:!1},{name:'fst_name',type:'string'}]},0,0,0,0,0,0,[Target.model,'FilterSet'],0);Ext.cmd.derive('Target.model.Object',Ext.data.Model,{idProperty:'_meta_id',fields:[{name:'_meta_id',type:'string'},{name:'_meta_catalog_id',type:'int'},{name:'_meta_is_system',type:'boolean'},{name:'_meta_ra',type:'float'},{name:'_meta_dec',type:'float'},{name:'_meta_radius',type:'float'},{name:'_meta_rating_id',type:'int'},{name:'_meta_reject_id',type:'int'}]},0,0,0,0,0,0,[Target.model,'Object'],0);Ext.cmd.derive('Target.model.Permission',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'prm_product',type:'int'},{name:'prm_user','default':null},{name:'prm_workgroup','default':null}]},0,0,0,0,0,0,[Target.model,'Permission'],0);Ext.cmd.derive('Target.model.PermissionUser',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'prm_product',type:'int'},{name:'prm_user',type:'int'},{name:'username',type:'string',persist:!1}]},0,0,0,0,0,0,[Target.model,'PermissionUser'],0);Ext.cmd.derive('Target.model.PermissionWorkgroup',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'wgu_workgroup',type:'int'},{name:'wgu_user',type:'int'},{name:'workgroup',type:'string',persist:!1},{name:'username',type:'string',persist:!1}]},0,0,0,0,0,0,[Target.model,'PermissionWorkgroup'],0);Ext.cmd.derive('Target.model.Product',Ext.data.Model,{fields:[{name:'id'},{name:'owner',type:'string'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_user_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'prd_date',type:'date'},{name:'prd_is_public',type:'boolean',defaultValue:!1},{name:'is_owner',type:'boolean',defaultValue:!1}]},0,0,0,0,0,0,[Target.model,'Product'],0);Ext.cmd.derive('Target.model.ProductRelated',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'prl_product',type:'int'},{name:'prl_related',type:'int'},{name:'prl_cross_identification','default':null},{name:'prl_cross_name',persist:!1}]},0,0,0,0,0,0,[Target.model,'ProductRelated'],0);Ext.cmd.derive('Target.model.Rating',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/objectsrating/'},fields:[{name:'id',type:'int','default':null},{name:'catalog_id',type:'int'},{name:'owner',type:'int'},{name:'object_id',type:'string'},{name:'rating',type:'int'}]},0,0,0,0,0,0,[Target.model,'Rating'],0);Ext.cmd.derive('Target.model.Reject',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/objectsreject/'},fields:[{name:'id'},{name:'catalog_id',type:'int'},{name:'owner',type:'int'},{name:'object_id',type:'string'},{name:'reject',type:'boolean'}]},0,0,0,0,0,0,[Target.model,'Reject'],0);Ext.cmd.derive('Target.model.Setting',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'cst_product',type:'int'},{name:'cst_display_name',type:'string'},{name:'cst_description',type:'string'},{name:'cst_is_public',type:'boolean'},{name:'cst_is_editable',type:'boolean'},{name:'owner',type:'string'},{name:'editable',type:'boolean','default':!1,persist:!1}],proxy:{type:'django',url:'/dri/api/productsetting/'}},0,0,0,0,0,0,[Target.model,'Setting'],0);Ext.cmd.derive('Target.model.Workgroup',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'wgp_workgroup',type:'string'},{name:'owner',persist:!1}]},0,0,0,0,0,0,[Target.model,'Workgroup'],0);Ext.cmd.derive('Target.model.WorkgroupUser',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'wgu_workgroup',type:'int'},{name:'wgu_user',type:'int'},{name:'username',persist:!1}]},0,0,0,0,0,0,[Target.model,'WorkgroupUser'],0);Ext.cmd.derive('Target.store.Association',common.store.MyStore,{model:'Target.model.Association',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/association/'}},0,0,0,0,['store.association'],0,[Target.store,'Association'],0);Ext.cmd.derive('Target.store.Bookmarks',common.store.MyStore,{model:'Target.model.Bookmarked',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/bookmarked/'},sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.bookmarks'],0,[Target.store,'Bookmarks'],0);Ext.cmd.derive('Target.store.Catalogs',common.store.MyStore,{model:'Target.model.Catalog',autoLoad:!1,remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/catalog/'}},0,0,0,0,['store.catalogs'],0,[Target.store,'Catalogs'],0);Ext.cmd.derive('Target.store.CatalogsTree',common.store.MyTreeStore,{model:'Target.model.CatalogTree',autoLoad:!1,remoteFilter:!0,proxy:{api:{read:'/dri/api/catalog/get_class_tree_by_group/',create:'/dri/api/catalog/',update:'/dri/api/catalog/'}}},0,0,0,0,['store.catalogs-tree'],0,[Target.store,'CatalogsTree'],0);Ext.cmd.derive('Target.store.ClassContent',common.store.MyStore,{model:'Target.model.CatalogColumn',remoteFilter:!0,proxy:{url:'/dri/api/productclasscontent/'},sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.class-content'],0,[Target.store,'ClassContent'],0);Ext.cmd.derive('Target.store.ContentSettings',common.store.MyStore,{model:'Target.model.ContentSetting',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/contentsetting/'}},0,0,0,0,['store.content-settings'],0,[Target.store,'ContentSettings'],0);Ext.cmd.derive('Target.store.CurrentSettings',common.store.MyStore,{model:'Target.model.CurrentSetting',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/currentsetting/'}},0,0,0,0,['store.currentsettings'],0,[Target.store,'CurrentSettings'],0);Ext.cmd.derive('Target.store.CutoutJobs',common.store.MyStore,{model:'Target.model.CutoutJob',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/cutoutjob/'},sorters:[{property:'cjb_finish_time',direction:'DESC'}]},0,0,0,0,['store.cutoutjobs'],0,[Target.store,'CutoutJobs'],0);Ext.cmd.derive('Target.store.Cutouts',common.store.MyStore,{model:'Target.model.Cutout',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/cutouts/'},getImageSourceByObjectId:function(e,b,d){var c=this,a;if(!b){b='png'}c.each(function(c){if(parseInt(c.get('ctt_object_id'))===parseInt(e)){if(c.get('ctt_file_type').toLowerCase()===b.toLowerCase()){a=c;return !1}}},c);if(a&&a.get('ctt_file_source')!==null&&a.get('ctt_file_source')!==''){return a.getImageSource(d)}else {return null}}},0,0,0,0,['store.cutouts'],0,[Target.store,'Cutouts'],0);Ext.cmd.derive('Target.store.FilterConditions',common.store.MyStore,{model:'Target.model.FilterCondition',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/filtercondition/'},sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.target-filter-conditions'],0,[Target.store,'FilterConditions'],0);Ext.cmd.derive('Target.store.FilterSets',common.store.MyStore,{model:'Target.model.FilterSet',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/filterset/'},sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.target-filtersets'],0,[Target.store,'FilterSets'],0);Ext.cmd.derive('Target.store.Objects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,model:'Target.model.Object',pageSize:100,proxy:{type:'django',timeout:180000,api:{read:'/dri/api/target/'}}},0,0,0,0,['store.targets-objects'],0,[Target.store,'Objects'],0);Ext.cmd.derive('Target.store.PermissionUsers',common.store.MyStore,{model:'Target.model.PermissionUser',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/product_permission_user/'},sorters:[{property:'prm_user__username',direction:'ASC'}]},0,0,0,0,['store.permission_users'],0,[Target.store,'PermissionUsers'],0);Ext.cmd.derive('Target.store.PermissionWorkgroups',common.store.MyStore,{model:'Target.model.PermissionWorkgroup',remoteFilter:!0,remoteSorter:!1,pageSize:0,proxy:{url:'/dri/api/product_permission_workgroup_user/'},groupField:'workgroup',sorters:[{property:'username',direction:'ASC'}]},0,0,0,0,['store.permission_workgroups'],0,[Target.store,'PermissionWorkgroups'],0);Ext.cmd.derive('Target.store.Permissions',common.store.MyStore,{model:'Target.model.Permission',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/product_permission/'}},0,0,0,0,['store.permissions'],0,[Target.store,'Permissions'],0);Ext.cmd.derive('Target.store.ProductAssociation',common.store.MyStore,{model:'Target.model.CatalogColumn',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/productassociation/'}},0,0,0,0,['store.product-association'],0,[Target.store,'ProductAssociation'],0);Ext.cmd.derive('Target.store.ProductClass',common.store.MyStore,{autoLoad:!1,remoteFilter:!1,pageSize:0,proxy:{url:'/dri/api/productclass/'},fields:[{name:'id'},{name:'pcl_name',type:'string'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_name',type:'string'}]},0,0,0,0,['store.product_class'],0,[Target.store,'ProductClass'],0);Ext.cmd.derive('Target.store.ProductContent',common.store.MyStore,{model:'Target.model.CatalogColumn',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/productcontent/'}},0,0,0,0,['store.product-content'],0,[Target.store,'ProductContent'],0);Ext.cmd.derive('Target.store.ProductDisplayContents',common.store.MyStore,{model:'Target.model.CatalogContent',remoteFilter:!0,remoteSort:!1,pageSize:0,proxy:{url:'/dri/api/productcontent/get_display_content/'},autoSort:!0,ucds:['meta.id;meta.main','pos.eq.ra;meta.main','pos.eq.dec;meta.main'],check_ucds:function(){var a=this,b=[];a.each(function(c){if(a.ucds.indexOf(c.get('ucd'))!==-1){b.push(!0)}},a);if(b.length===a.ucds.length){return !0}else {return !1}}},0,0,0,0,['store.product-display-contents'],0,[Target.store,'ProductDisplayContents'],0);Ext.cmd.derive('Target.store.ProductRelateds',common.store.MyStore,{model:'Target.model.ProductRelated',autoLoad:!1,remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/productrelated/'}},0,0,0,0,['store.product_relateds'],0,[Target.store,'ProductRelateds'],0);Ext.cmd.derive('Target.store.Products',common.store.MyStore,{model:'Target.model.Product',autoLoad:!1,remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/product/'}},0,0,0,0,['store.products'],0,[Target.store,'Products'],0);Ext.cmd.derive('Target.store.Settings',common.store.MyStore,{model:'Target.model.Setting',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/productsetting/'},sorters:[{property:'id',direction:'DESC'}]},0,0,0,0,['store.settings'],0,[Target.store,'Settings'],0);Ext.cmd.derive('Target.store.WorkgroupUsers',common.store.MyStore,{model:'Target.model.WorkgroupUser',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/workgroup_users/'}},0,0,0,0,['store.workgroup_users'],0,[Target.store,'WorkgroupUsers'],0);Ext.cmd.derive('Target.store.Workgroups',common.store.MyStore,{model:'Target.model.Workgroup',remoteFilter:!1,pageSize:0,proxy:{url:'/dri/api/workgroup/'}},0,0,0,0,['store.workgroups'],0,[Target.store,'Workgroups'],0);Ext.cmd.derive('Target.view.association.AssociationController',Ext.app.ViewController,{listen:{component:{'targets-association':{changeproduct:'onChangeProduct',changeCatalog:'onChangeCatalog'}},store:{'#AuxCatalogs':{load:'onLoadCatalogs'},'#ClassContent':{load:'onLoadClassContent'},'#AuxProductContent':{load:'onLoadProductContent'},'#ProductAssociation':{load:'onLoadProductAssociation',datachanged:'onAssociationChange'}}},onChangeProduct:function(d){var e=this,b=e.getViewModel(),c=b.getStore('fakeassociation'),a=b.getStore('catalogs');c.removeAll();a.removeAll();a.clearFilter(!0);a.filter([{property:'id',value:d}])},onLoadCatalogs:function(b){var c=this,d=c.getViewModel(),a;if(b.count()===1){a=b.first();d.set('currentCatalog',a);c.loadClassContents()}},onChangeCatalog:function(b){var a=this,c=a.getViewModel();c.set('currentCatalog',b);a.loadClassContents()},loadClassContents:function(){var e=this,c=e.getViewModel(),d=c.get('currentCatalog'),b=c.getStore('classcontent'),a=c.getStore('auxclasscontent');b.removeAll();b.clearFilter(!0);b.filter([{property:'pcc_class',value:d.get('prd_class')}]);a.removeAll();a.clearFilter(!0);a.filter([{property:'pcc_class',value:d.get('prd_class')}])},onLoadClassContent:function(){var a=this;a.loadProductContent()},loadProductContent:function(){var a=this,b=a.getViewModel(),f=a.getReferences(),e=f.productcontentgrid,d=b.get('currentCatalog'),c=b.getStore('productcontent');e.setLoading(!0);c.filter([{property:'pcn_product_id',value:d.get('id')}])},onLoadProductContent:function(){var a=this;a.loadAssociations()},loadAssociations:function(){var d=this,a=d.getViewModel(),c=a.get('currentCatalog'),b=a.getStore('productassociation');b.filter([{property:'pca_product',value:c.get('id')}])},onLoadProductAssociation:function(){var b=this,i=b.getView(),h=b.getReferences(),g=h.productcontentgrid,a=b.getViewModel(),f=a.get('currentCatalog'),c=a.getStore('fakeassociation'),e=a.getStore('productcontent'),d=a.getStore('productassociation');c.removeAll();e.each(function(a){var b=d.findRecord('pca_product_content',a.get('id'));if(!b){b=Ext.create('Target.model.CatalogColumn',{'pca_product':f.get('id'),'pca_product_content':a.get('id'),'pcn_column_name':a.get('pcn_column_name')})}c.add(b)},this);g.setLoading(!1);i.checkFinish()},onSearchClassContent:function(b){var c=this,d=c.getViewModel(),e=d.get('currentCatalog'),a=d.getStore('auxclasscontent');if(b!==''){a.removeAll();a.clearFilter(!0);a.filter([{property:'pcc_class',value:e.get('prd_class')},{property:'search',value:b}])}else {c.onCancelClassContent()}},onCancelClassContent:function(){this.loadClassContents()},onSearchAssociation:function(b){var c=this,d=c.getViewModel(),a=d.getStore('fakeassociation');if(b!==''){a.clearFilter(!0);a.filter([{property:'pcn_column_name',value:b}])}else {c.onCancelAssociation()}},onCancelAssociation:function(){var b=this,c=b.getViewModel(),a=c.getStore('fakeassociation');a.clearFilter()},onCellDrop:function(e,c){var f=this,a=e.record,b=a.previousValues.pcc_display_name,d;if(b==''){d=Ext.create('Target.model.Association',{pca_product:a.get('pca_product'),pca_class_content:c.record.get('id'),pca_product_content:a.get('pca_product_content')});this.addAssociation(d,a)}else {if(b!=c.record.pcc_display_name){}}},addAssociation:function(b,a){var d=this,c=d.getView();b.save({callback:function(g,e,f){if(f){var d=Ext.decode(e.getResponse().responseText);a.set('id',d.id);a.set('pca_class_content',d.pca_class_content);a.commit(!0);c.checkFinish()}}})},onRemove:function(){var b=this,e=b.getReferences(),d=e.productcontentgrid,c=d.selection,a;a=Ext.create('Target.model.Association',{'id':c.get('id')});a.erase({callback:function(c,d,a){if(a){b.loadProductContent()}}})},onRemoveAll:function(){Ext.MessageBox.confirm('Confirm','Are you sure you want to do that?',function(a){if(a=='yes'){this.removeAll()}},this)},removeAll:function(){var b=this,d=b.getViewModel(),c=d.get('currentCatalog'),a;a=Ext.create('Target.store.Association',{filters:[{property:'pca_product',value:c.get('id')}]});a.load({scope:a,callback:function(){this.removeAll();this.sync({scope:b,callback:b.loadProductContent()})}});a=null},onAssociationChange:function(){var b=this,a=b.getView();a.checkFinish()}},0,0,0,0,['controller.association'],0,[Target.view.association,'AssociationController'],0);Ext.cmd.derive('Target.view.association.AssociationModel',Ext.app.ViewModel,{links:{currentCatalog:{type:'Target.model.Catalog',create:!0}},stores:{catalogs:{type:'catalogs',storeId:'AuxCatalogs'},classcontent:{type:'class-content',storeId:'ClassContent'},auxclasscontent:{type:'class-content',storeId:'AuxClassContent'},productcontent:{type:'product-content',storeId:'AuxProductContent'},productassociation:{type:'product-association',storeId:'ProductAssociation'},fakeassociation:{type:'product-association',remoteFilter:!1,remoteSorter:!1},displayContents:{type:'product-display-contents',autoLoad:!1}}},0,0,0,0,['viewmodel.association'],0,[Target.view.association,'AssociationModel'],0);Ext.cmd.derive('Target.view.association.CellDragDrop',Ext.ux.CellDragDrop,{onViewRender:function(b){var a=this,c;if(a.enableDrag){if(a.containerScroll){c=b.getEl()}a.dragZone=new Ext.view.DragZone({view:b,ddGroup:a.dragGroup||a.ddGroup,dragText:a.dragText,containerScroll:a.containerScroll,scrollEl:c,getDragData:function(d){var c=this.view,g=d.getTarget(c.getItemSelector()),h=c.getRecord(g),e=d.getTarget(c.getCellSelector()),a,f;if(g){a=document.createElement('div');a.className='x-form-text';a.appendChild(document.createTextNode(e.textContent||e.innerText));f=c.getHeaderByCell(e);return {event:new Ext.EventObjectImpl(d),ddel:a,item:d.target,columnName:f.dataIndex,record:h}}},onInitDrag:function(h,i){var a=this,e=a.dragData,g=a.view,c=g.getSelectionModel(),d=e.record,f=e.ddel;if(!c.isSelected(d)){c.select(d,!0)}Ext.fly(a.ddel).update(f.textContent||f.innerText);a.proxy.update(a.ddel);a.onStartDrag(h,i);return !0}})}if(a.enableDrop){a.dropZone=new Ext.dd.DropZone(b.el,{view:b,ddGroup:a.dropGroup||a.ddGroup,containerScroll:!0,getTargetFromEvent:function(g){var f=this,c=f.view,a=g.getTarget(c.cellSelector),e,d;if(a){e=c.findItemByChild(a);d=c.getHeaderByCell(a);if(e&&d){return {node:a,record:c.getRecord(e),columnName:d.dataIndex}}}},onNodeEnter:function(c,h,i,e){var d=this,g=c.record.getField(c.columnName).type.toUpperCase(),f=e.record.getField(e.columnName).type.toUpperCase();delete d.dropOK;if(!c||c.node===e.item.parentNode){return}if(a.enforceType&&g!==f){d.dropOK=!1;if(a.noDropCls){Ext.fly(c.node).addCls(a.noDropCls)}else {Ext.fly(c.node).applyStyles({backgroundColor:a.noDropBackgroundColor})}return !1}if(a.dropColumn&&a.dropColumn!==c.columnName){d.dropOK=!1;return !1}d.dropOK=!0;if(a.dropCls){Ext.fly(c.node).addCls(a.dropCls)}else {Ext.fly(c.node).applyStyles({backgroundColor:a.dropBackgroundColor})}},onNodeOver:function(c,d,e,a){return this.dropOK?this.dropAllowed:this.dropNotAllowed},onNodeOut:function(c,f,g,e){var d=this.dropOK?a.dropCls:a.noDropCls;if(d){Ext.fly(c.node).removeCls(d)}else {Ext.fly(c.node).applyStyles({backgroundColor:''})}},onNodeDrop:function(d,e,f,c){if(this.dropOK){d.record.set(d.columnName,c.record.get(c.columnName));if(a.applyEmptyText){c.record.set(c.columnName,a.emptyText)}b.fireEvent('celldrop',d,c,a);return !0}},onCellDrop:Ext.emptyFn})}}},0,0,0,0,['plugin.customcelldragdrop'],0,[Target.view.association,'CellDragDrop'],0);Ext.cmd.derive('Target.view.association.ClassContent',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{columns:[{text:'Properties available in this class',dataIndex:'pcc_display_name',flex:1,renderer:function(b,c,a){if(a.get('pcc_unit')!==''){return b+' ('+a.get('pcc_unit')+')'}else {return b}}}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-association-class-content'],['component','box','container','panel','tablepanel','gridpanel','grid','targets-association-class-content'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'targets-association-class-content':!0},['widget.targets-association-class-content'],0,[Target.view.association,'ClassContent'],0);Ext.cmd.derive('Target.view.association.ClassContentForm',Ext.form.Panel,{layout:'anchor',items:[{xtype:'fieldset',defaultType:'textfield',defaults:{anchor:'100%',readyOnly:!0},items:[{fieldLabel:'Name',bind:'{classcontentgrid.selection.pcc_display_name}'},{fieldLabel:'Unit',bind:'{classcontentgrid.selection.pcc_unit}'},{fieldLabel:'Reference',bind:'{classcontentgrid.selection.pcc_reference}'},{fieldLabel:'UCD',bind:'{classcontentgrid.selection.pcc_ucd}'},{fieldLabel:'Category',bind:'{classcontentgrid.selection.pcc_category}'}]}],setRecord:function(a){this.getForm().setRecord(a)},initComponent:function(){var a=this;Ext.apply(this,{});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-association-class-content-form'],['component','box','container','panel','form','targets-association-class-content-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'targets-association-class-content-form':!0},['widget.targets-association-class-content-form'],0,[Target.view.association,'ClassContentForm'],0);Ext.cmd.derive('Target.view.association.Grid',Ext.grid.Panel,{columns:[{text:'My properties',dataIndex:'pcn_column_name',flex:1},{text:'Class Properties',dataIndex:'pcc_display_name',flex:1,renderer:function(b,c,a){if(a.get('pcc_unit')!=''){return b+' ('+a.get('pcc_unit')+')'}else {return b}}}],initComponent:function(){var a=this;Ext.apply(this,{});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-association-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','targets-association-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'targets-association-grid':!0},['widget.targets-association-grid'],0,[Target.view.association,'Grid'],0);Ext.cmd.derive('Target.view.association.Panel',Ext.panel.Panel,{controller:'association',viewModel:'association',config:{product:null},layout:'border',initComponent:function(){var a=this,b=a.id+'group1',c=a.id+'group2';Ext.apply(this,{items:[{xtype:'panel',region:'north',height:80,bodyPadding:10,html:['

    The properties in your catalog must be associated with the available properties for the target class.
    It is necessary to make association for property ID, RA and Dec.

    ']},{xtype:'targets-association-grid',itemId:'grid1',bind:{store:'{fakeassociation}'},region:'center',reference:'productcontentgrid',viewConfig:{markDirty:!1,plugins:{ptype:'customcelldragdrop',ddGroup:b,containerScroll:!0,enableDrag:!1,enableDrop:!0,dropColumn:'pcc_display_name'},listeners:{celldrop:'onCellDrop'}},tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearchAssociation','cancel':'onCancelAssociation'},flex:1},{xtype:'button',text:'Remove',iconCls:'x-fa fa-minus-circle',tooltip:'Remove the selected association.',handler:'onRemove',bind:{disabled:'{!productcontentgrid.selection}'}},{xtype:'button',text:'Clear',iconCls:'x-fa fa-eraser',tooltip:'Removes all associations.',handler:'onRemoveAll'}]},{xtype:'panel',split:!0,resizable:!0,region:'east',width:400,layout:{type:'vbox',pack:'start',align:'stretch'},items:[{xtype:'targets-association-class-content',itemId:'grid2',reference:'classcontentgrid',bind:{store:'{auxclasscontent}'},flex:1,split:!0,viewConfig:{plugins:{ptype:'customcelldragdrop',applyEmptyText:!0,ddGroup:b,enableDrag:!0,enableDrop:!1}}},{xtype:'targets-association-class-content-form',reference:'classcontentform',split:!0,flex:1}],tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearchClassContent','cancel':'onCancelClassContent'},flex:1}]}],buttons:[{text:'Cancel',scope:a,handler:'onCancel'},{text:'OK',itemId:'AssociationBtnFinish',ui:'soft-green',scope:a,handler:'onFinish',hidden:!0}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setProduct:function(a){if(a){this.product=a;this.fireEvent('changeproduct',a,this)}},setCatalog:function(a){if(a){this.product=a.get('id');this.fireEvent('changeCatalog',a,this)}},getCatalog:function(){var b=this,c=b.getViewModel(),a=c.get('currentCatalog');return a},onFinish:function(){this.fireEvent('finish',this)},onCancel:function(){this.fireEvent('cancel',this)},checkFinish:function(){var a=this,d=a.getViewModel(),b=d.getStore('displayContents'),c=a.getProduct();b.addFilter([{'property':'pcn_product_id',value:c}]);b.load({callback:function(){if(this.check_ucds()){a.down('#AssociationBtnFinish').setVisible(!0)}else {a.down('#AssociationBtnFinish').setVisible(!1)}}})}},0,['targets-association'],['component','box','container','panel','targets-association'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-association':!0},['widget.targets-association'],0,[Target.view.association,'Panel'],0);Ext.cmd.derive('Target.view.catalog.CSVController',Ext.app.ViewController,{separator:',',baseProperties:['ra','dec'],addCatalog:function(){var g=this,h=g.getView(),f=h.getForm(),a,e,b,d,c,i;if(f.isValid()){a=f.getValues();b=a.displayName.split(' ').join('_');b=b.toLowerCase().trim();d=a.release!==''?[a.release]:[];c=a.isPublic==='on'?!0:!1;e={mime:'csv',type:'catalog','class':a.classname,name:b,displayName:a.displayName,releases:d,isPublic:c,description:a.description,csvData:a.csvData};g.importTargetList(e)}},importTargetList:function(b){var c=this,a=c.getView();a.setLoading(!0);Ext.Ajax.request({cors:!0,method:'POST',url:'/dri/api/import_target_list/',success:function(d){var c=JSON.parse(d.responseText);if(c.success){a.fireEvent('newproduct',c.product);a.setLoading(!1)}else {a.setLoading(!1);Ext.MessageBox.show({title:'Failure',icon:Ext.MessageBox.WARNING,msg:c.message,buttons:Ext.MessageBox.OK})}},failure:function(c,d){a.setLoading(!1);Ext.MessageBox.show({title:'Server Side Failure',msg:c.status+' '+c.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})},headers:{'Accept':'application/json','Application':'application/json','Content-Type':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')},params:Ext.util.JSON.encode(b)})},onCancelAddCatalog:function(){var d=this,a=d.getView(),b=a.getForm(),c=a.up('window');b.reset();c.close()}},0,0,0,0,['controller.csvform'],0,[Target.view.catalog,'CSVController'],0);Ext.cmd.derive('Target.view.catalog.CSVForm',Ext.form.Panel,{title:'Upload',controller:'csvform',viewModel:{stores:{productclass:{type:'product_class',autoLoad:!0,filters:[{property:'pgr_name',value:'targets'}]},releases:{type:'releases',autoLoad:!0}}},config:{enableFolder:!1,enablePublic:!1},initComponent:function(){var a=this;try{a.enableFolder=Settings.PRODUCT_REGISTER_FOLDERS}catch(b){console.warn('Setting PRODUCT_REGISTER_FOLDERS not loaded.')}try{a.enablePublic=Settings.PRODUCT_REGISTER_ENABLE_PUBLIC}catch(c){console.warn('Setting PRODUCT_REGISTER_ENABLE_PUBLIC not loaded.')}Ext.apply(this,{bodyPadding:20,submitEmptyText:!1,defaults:{anchor:'100%'},items:[{xtype:'textfield',name:'displayName',fieldLabel:'Name',minLength:3,maxLength:30,allowBlank:!1,regex:/^[a-z0-9-_\s]+$/i,regexText:"Please use only letters and numbers separated by spaces ' ', minus sign '-' or underscore '_'."},{xtype:'combobox',name:'classname',fieldLabel:'Folder',valueField:'pcl_name',displayField:'pcl_display_name',allowBlank:!1,editable:!1,hidden:!a.enableFolder,bind:{store:'{productclass}'},value:'objects'},{xtype:'combobox',name:'release',fieldLabel:'Release',displayField:'rls_display_name',valueField:'rls_name',bind:{store:'{releases}'}},{xtype:'checkbox',boxLabel:'Public',name:'isPublic',checked:!1,hidden:!a.enablePublic},{xtype:'textareafield',name:'csvData',fieldLabel:'Coordinates',height:200,labelAlign:'top',emptyText:'ra, dec',allowBlank:!1},{xtype:'textareafield',name:'description',labelAlign:'top',fieldLabel:'Description'}],buttons:['->',{xtype:'button',text:'Cancel',iconCls:'x-fa fa-close',handler:'onCancelAddCatalog'},{xtype:'button',text:'Submit',iconCls:'x-fa fa-check',ui:'soft-green',handler:'addCatalog'}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-catalog-csv-form'],['component','box','container','panel','form','targets-catalog-csv-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'targets-catalog-csv-form':!0},['widget.targets-catalog-csv-form'],0,[Target.view.catalog,'CSVForm'],0);Ext.cmd.derive('Target.view.catalog.DatabaseController',Ext.app.ViewController,{winAddCatalog:null,winAssociation:null,addCatalog:function(){var k=this,c=k.getView(),j=c.getForm(),a,i,b,f,e,d,g,h;if(j.isValid()){a=j.getValues();b=a.displayName.split(' ').join('_');b=b.toLowerCase().trim();f=a.release!==''?[a.release]:[];e=a.isPublic==='on'?!0:!1;d=a.tablename.split('.');g=d[0];h=d[1];i={products:[{'type':'catalog','class':a.classname,'name':b,'display_name':a.displayName,'database':a.database,'schema':g,'table':h,'releases':f,'is_public':e,'description':a.description}]};c.setLoading(!0);Ext.Ajax.request({cors:!0,method:'POST',url:'/dri/api/importexternalprocess/',success:function(){c.setLoading(!1);k.getAddedCatalog(b)},failure:function(a,b){c.setLoading(!1);Ext.MessageBox.show({title:'Server Side Failure',msg:a.status+' '+a.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})},headers:{'Accept':'application/json','Application':'application/json','Content-Type':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')},params:Ext.util.JSON.encode(i)})}},onCancelAddCatalog:function(){var c=this,a=c.getView(),b=a.down('form').getForm();b.reset();a.close()},getAddedCatalog:function(c){var d=this,a=Ext.create('Target.store.Catalogs',{}),b;a.filter({property:'prd_name',value:c});a.load({callback:function(e,g,f){if(f&&e.length==1){b=a.first();d.showAssociation(b)}}})},showAssociation:function(b){var a=this;a.winAssociation=Ext.create('Ext.window.Window',{title:'Association',layout:'fit',closable:!0,closeAction:'destroy',width:800,height:620,modal:!0,items:[{xtype:'targets-association',listeners:{scope:a,cancel:'onCloseAssociation',finish:'onFinishAssociation',close:'onCloseAssociation'}}]});a.winAssociation.down('targets-association').setCatalog(b);a.winAssociation.show()},onFinishAssociation:function(c){var a=this,d=a.getView(),b=c.getProduct(),e;d.fireEvent('newproduct',b);a.onCloseAssociation()},onCloseAssociation:function(){var a=this;if(a.winAssociation){a.winAssociation.close()}},onChangeType:function(d,b){console.log('onChangeType(%o)',b);var c=this,a=c.lookup('fldDatabase');console.log(a);if(b.type==='csv'){a.setVisible(!0)}else {}}},0,0,0,0,['controller.database'],0,[Target.view.catalog,'DatabaseController'],0);Ext.cmd.derive('Target.view.catalog.DatabaseForm',Ext.form.Panel,{title:'Database',controller:'database',viewModel:{stores:{productclass:{type:'product_class',autoLoad:!0,filters:[{property:'pgr_name',value:'targets'}]},releases:{type:'releases',autoLoad:!0}}},config:{enableFolder:!1,enablePublic:!1},initComponent:function(){var a=this;try{a.enableFolder=Settings.PRODUCT_REGISTER_FOLDERS}catch(b){console.warn('Setting PRODUCT_REGISTER_FOLDERS not loaded.')}try{a.enablePublic=Settings.PRODUCT_REGISTER_ENABLE_PUBLIC}catch(c){console.warn('Setting PRODUCT_REGISTER_ENABLE_PUBLIC not loaded.')}Ext.apply(this,{bodyPadding:10,submitEmptyText:!1,defaults:{anchor:'100%'},items:[{xtype:'textfield',name:'displayName',fieldLabel:'Name',maxLength:30,regex:/^[a-z0-9-_\s]+$/i,regexText:"Please use only letters and numbers separated by spaces ' ', minus sign '-' or underscore '_'."},{xtype:'combobox',name:'classname',fieldLabel:'Folder',valueField:'pcl_name',displayField:'pcl_display_name',allowBlank:!1,editable:!1,bind:{store:'{productclass}'},value:'objects',hidden:!a.enableFolder},{xtype:'combobox',name:'release',fieldLabel:'Release',displayField:'rls_display_name',valueField:'rls_name',bind:{store:'{releases}'}},{xtype:'textfield',name:'database',fieldLabel:'Database',maxLength:30,value:'dessci',readOnly:!0},{xtype:'textfield',name:'tablename',fieldLabel:'Table name',maxLength:61,emptyText:'schema.table',regex:/[/\S+/]+[\\.][/\S+/]+/gi,regexText:'Please use schema.table',allowBlank:!1},{xtype:'checkbox',boxLabel:'Public',name:'isPublic',checked:!1,hidden:!a.enablePublic},{xtype:'textareafield',name:'description',fieldLabel:'Description'}],buttons:['->',{xtype:'button',text:'Cancel',iconCls:'x-fa fa-close',handler:'onCancelAddCatalog'},{xtype:'button',text:'Submit',iconCls:'x-fa fa-check',ui:'soft-green',handler:'addCatalog'}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-catalog-database-form'],['component','box','container','panel','form','targets-catalog-database-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'targets-catalog-database-form':!0},['widget.targets-catalog-database-form'],0,[Target.view.catalog,'DatabaseForm'],0);Ext.cmd.derive('Target.view.catalog.RegisterWindow',Ext.window.Window,{title:'Add Target List',modal:!0,closeAction:'destroy',layout:'fit',config:{enableRegisterDB:!1},initComponent:function(){var a=this;try{a.enableRegisterDB=Settings.PRODUCT_REGISTER_DB_INTERFACE}catch(b){console.warn('Setting PRODUCT_REGISTER_DB_INTERFACE not loaded.')}Ext.apply(this,{items:[{xtype:'tabpanel',items:[{xtype:'targets-catalog-csv-form',listeners:{scope:a,newproduct:function(b){a.fireEvent('newproduct',b);a.close()}}},{xtype:'targets-catalog-database-form',listeners:{scope:a,newproduct:function(b){a.fireEvent('newproduct',b);a.close()}},disabled:!a.getEnableRegisterDB()}]}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)}},0,['targets-catalog-register-window'],['component','box','container','panel','window','targets-catalog-register-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'targets-catalog-register-window':!0},['widget.targets-catalog-register-window'],0,[Target.view.catalog,'RegisterWindow'],0);Ext.cmd.derive('Target.view.catalog.CatalogController',Ext.app.ViewController,{winAddCatalog:null,onAddCatalog:function(){var a=this;if(a.winAddCatalog!==null){a.winAddCatalog.destroy();a.winAddCatalog=null}a.winAddCatalog=Ext.create('Target.view.catalog.RegisterWindow',{width:400,height:550,listeners:{scope:a,newproduct:'onAddedProduct'}});a.winAddCatalog.show()},reloadCatalogs:function(){var b=this,c=b.getViewModel(),a=c.getStore('catalogs');a.load()},onAddedProduct:function(b){var a=this;a.reloadCatalogs();hash='cv/'+b;a.redirectTo(hash)},onRemoveCatalog:function(a){Ext.MessageBox.confirm('','The catalog will be removed. Do you want continue?',this.removeCatalog,this)},removeCatalog:function(f){var g=this,d=g.getView(),b=this.getViewModel(),c=b.getStore('products'),e=b.getStore('catalogs'),a=b.get('selectedCatalog');Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - delete_catalog');if(f==='no'){return !1}if(a.get('id')){d.setLoading(!0);c.addFilter([{property:'id',value:a.get('id')}]);c.load({callback:function(){var b=this.first();if(b&&b.get('id')==a.get('id')){this.remove(b);this.sync({callback:function(){e.load();d.setLoading(!1)}})}}})}},onStarredCatalog:function(){var e=this,c=e.getView(),a=c.getSelectedCatalog(),d,b;if(a&&Number.isInteger(a.get('id'))){c.setLoading(!0);b=c.getStore().findNode('id',a.get('id'));if(a.get('bookmark')>0&&a.get('starred')===!0){d=Ext.create('Target.model.Bookmarked',{'id':a.get('bookmark')});d.erase({callback:function(e,d,a){if(a){b.set('bookmark',null);b.set('iconCls','no-icon');c.setLoading(!1)}}});Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - delete_bookmark')}else {d=Ext.create('Target.model.Bookmarked',{'product':a.get('id'),'is_starred':!0});d.save({callback:function(f,a,d){if(d){var e=Ext.decode(a.getResponse().responseText);b.set('bookmark',e.id);b.set('iconCls','x-fa fa-star color-icon-starred');c.setLoading(!1)}}});Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - add_bookmark')}}},filterByStarred:function(b){var d=this,e=d.getViewModel(),a=e.getStore('catalogs'),c=a.filters.items.filter(function(a){return a._id==='bookmark'});if(c.length===0){b.setText('Show all');a.addFilter({property:'bookmark',value:!0})}else {b.setText('Show only bookmarked');a.removeFilter('bookmark')}a.load()}},0,0,0,0,['controller.catalog'],0,[Target.view.catalog,'CatalogController'],0);Ext.cmd.derive('Target.view.catalog.CatalogModel',Ext.app.ViewModel,{stores:{catalogs:{type:'catalogs-tree'},products:{type:'products'},bookmarks:{type:'bookmarks',autoLoad:!1}},links:{selectedCatalog:{type:'Target.model.Catalog',create:!0}}},0,0,0,0,['viewmodel.catalog'],0,[Target.view.catalog,'CatalogModel'],0);Ext.cmd.derive('Target.view.catalog.Tree',Ext.tree.Panel,{controller:'catalog',viewModel:'catalog',rootVisible:!1,useArrows:!0,selModel:{mode:'SINGLE'},layout:'fit',plugins:'gridfilters',bind:{store:'{catalogs}',selection:'{selectedCatalog}'},config:{bsfilters:null},emptyText:'No data to display.',initComponent:function(){var a=this;Ext.apply(this,{columns:[{xtype:'treecolumn',text:'Name',flex:2,sortable:!0,dataIndex:'text',renderer:a.getTooltipName},{text:'Owner',flex:1,dataIndex:'owner',sortable:!0,filter:{type:'string'}},{text:'Release',flex:1,dataIndex:'release_display_name',sortable:!0,filter:{type:'string'}},{xtype:'datecolumn',text:'Date',dataIndex:'prd_date',width:150,sortable:!0,format:'Y-m-d H:m:s',filter:{type:'date'}},{text:'Rows',dataIndex:'ctl_num_objects',sortable:!0,renderer:function(b,c,a){if(a.data.leaf){return b}}},{text:'Cols',dataIndex:'ctl_num_columns',sortable:!0,renderer:function(a,c,b){if(b.data.leaf&&a>0){return a}}}],listeners:{load:function(a){},rowdblclick:function(c,b){a.viewRecord(b)}},tbar:[{xtype:'splitbutton',tooltip:'Bookmark This Catalog',iconCls:'x-fa fa-bookmark',handler:'onStarredCatalog',width:60,enableToggle:!0,bind:{pressed:'{selectedCatalog.starred}'},menu:[{text:'Show only bookmarked',handler:'filterByStarred'}]},{xtype:'button',iconCls:'x-fa fa-plus',ui:'soft-green',tooltip:'Add a new list of targets.',handler:'onAddCatalog'},{tooltip:'Remove Target List',iconCls:'x-fa fa-trash',ui:'soft-red',handler:'onRemoveCatalog',disabled:!0,bind:{disabled:'{!selectedCatalog.editable}'}},{xtype:'textfield',reference:'searchByName',emptyText:'Search by name',width:250,triggers:{clear:{cls:'x-form-clear-trigger',scope:this,handler:this.cancelFilter,hidden:!0},search:{cls:' x-form-search-trigger'}},listeners:{scope:this,change:a.filterByname,buffer:500}},{tooltip:'Refresh and Clear filters',iconCls:'x-fa fa-refresh',scope:this,handler:a.refreshAndClear}]});Ext.tree.Panel.prototype.initComponent.apply(this,arguments)},selecteNodeTree:function(a){this.getSelectionModel().select(a)},getSelectedCatalog:function(){var a=this.getView().getChecked();if(a.length>0){return a[0]}else {var b=this.getSelectionModel();a=b.getSelection();return a[0]}},loadCatalogs:function(e){var c=this,f=c.getViewModel(),d=f.getStore('catalogs'),a=[],b=[];a.push({property:'group',value:e.toLowerCase()});b=Ext.clone(a);c.setBsfilters(b);d.filter(a)},onClickView:function(){var a=this,b=a.getSelectedCatalog();a.viewRecord(b)},onActionView:function(f,d,c,b,e,a){this.viewRecord(a)},viewRecord:function(a){if(a.get('tableExist')==!0&&a.get('leaf')==!0){this.fireEvent('selectcatalog',a,this)}else {if(a.get('leaf')==!0){Ext.MessageBox.alert('Warning','The table for this product is not currently available or does not exist')}}},filterByname:function(){var a=this,e=a.lookup('searchByName'),b=a.getStore(),c=e.getValue(),d=[],f;if(c.length>0){e.getTrigger('clear').show();if(b.isLoading()){console.log('Store is Loading: %o',b.isLoading());var g=b.getProxy();g.abort();console.log('Store proxy abort')}f={property:'search',value:c};d.push(f);a.filterCatalogs(d)}else {a.cancelFilter()}},filterCatalogs:function(a){var c=this,g=c.getViewModel(),b=g.getStore('catalogs'),f=c.getBsfilters(),e,d=Ext.clone(f);c.filters.clearFilters();b.clearFilter(!0);b.removeAll();if(a&&Array.isArray(a)){for(index in a){e=a[index];d.push(e)}}b.filter(d)},cancelFilter:function(){var b=this,a=b.lookup('searchByName');a.reset();a.getTrigger('clear').hide();b.filterCatalogs()},refreshAndClear:function(){var a=this;a.cancelFilter()},getTooltipName:function(d,e,a){var f=this,c,b;c=new Ext.XTemplate('
    ','','

    Description:{description}

    ','
    ','','

    Proccess: {epr_original_id}

    ','
    ',"",'

    Size: {tbl_size}

    ','
    ',"",'
    Warning: ','The table for this product is not currently available or does not exist.','
    ','
    ');b=c.apply(a.data);if(a.get('description')!==''||a.get('epr_original_id')!==''){if(a.get('leaf')){e.tdAttr='data-qtip="'+b+'"'}}return d}},0,['targets-catalog-tree'],['component','box','container','panel','tablepanel','treepanel','targets-catalog-tree'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'treepanel':!0,'targets-catalog-tree':!0},['widget.targets-catalog-tree'],0,[Target.view.catalog,'Tree'],0);Ext.cmd.derive('Target.view.home.HomeController',Ext.app.ViewController,{listen:{component:{'home':{loadpanel:'onLoadPanel'},'targets-catalog-tree':{selectcatalog:'onSelectCatalog'}}},onLoadPanel:function(b){var c=this,a=b.getCatalogTree();a.loadCatalogs('targets')},onUpdatePanel:function(){},onSelectCatalog:function(c,e){var a=this,d=a.getView(),f=d.getViewModel(),b=c.get('id');hash='cv/'+b;a.redirectTo(hash)}},0,0,0,0,['controller.home'],0,[Target.view.home,'HomeController'],0);Ext.cmd.derive('Target.view.home.HomeModel',Ext.app.ViewModel,{data:{release:0,field:0}},0,0,0,0,['viewmodel.home'],0,[Target.view.home,'HomeModel'],0);Ext.cmd.derive('Target.view.home.Home',Ext.panel.Panel,{controller:'home',viewModel:'home',layout:'fit',initComponent:function(){var a=this;Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - initHome');Ext.apply(this,{items:[{xtype:'targets-catalog-tree',reference:'CatalogTree'}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},loadPanel:function(b){var a=this,c=a.getReferences(),d=a.getViewModel();this.fireEvent('loadpanel',this)},updatePanel:function(a){},getCatalogTree:function(){var c=this,a=c.getReferences(),b=a.CatalogTree;return b}},0,['home'],['component','box','container','panel','home'],{'component':!0,'box':!0,'container':!0,'panel':!0,'home':!0},['widget.home'],0,[Target.view.home,'Home'],0);Ext.cmd.derive('Target.view.wizard.WizardController',Ext.app.ViewController,{listen:{component:{'targets-columns':{activate:'onActiveColumns',finish:'finishWizard'},'targets-association':{activate:'onActiveAssociation',finish:'finishWizard',cancel:'finishWizard'},'targets-system-members':{activate:'onActiveSystemMembers',finish:'finishWizard'},'targets-permission':{activate:'onActivePermission',finish:'finishWizard'}}},finishWizard:function(){var a=this;a.getView().fireEvent('finish',a)},onActiveColumns:function(){var a=this,e=a.getViewModel(),b=e.get('currentCatalog'),d=a.getView(),c=d.down('targets-columns');c.setCurrentCatalog(b)},onActiveAssociation:function(){var a=this,e=a.getViewModel(),b=e.get('currentCatalog'),d=a.getView(),c=d.down('targets-association');c.setCatalog(b)},onActiveSystemMembers:function(){var a=this,e=a.getViewModel(),b=e.get('currentCatalog'),d=a.getView(),c=d.down('targets-system-members');c.setCurrentCatalog(b)},onActivePermission:function(){var a=this,e=a.getViewModel(),b=e.get('currentCatalog'),d=a.getView(),c=d.down('targets-permission');c.setCurrentCatalog(b)}},0,0,0,0,['controller.wizard'],0,[Target.view.wizard,'WizardController'],0);Ext.cmd.derive('Target.view.wizard.WizardModel',Ext.app.ViewModel,{stores:{productcontent:{type:'product-content',storeId:'ProductContent'},productassociation:{type:'product-association',storeId:'ProductAssociation'}},links:{currentCatalog:{type:'Target.model.Catalog',create:!0},currentSetting:{type:'Target.model.CurrentSetting',create:!0}},data:{product:null}},0,0,0,0,['viewmodel.wizard'],0,[Target.view.wizard,'WizardModel'],0);Ext.cmd.derive('Target.view.settings.SettingsController',Ext.app.ViewController,{addSetting:function(){var c=this,d=c.getView(),b=c.lookup('settingForm').getForm(),a;if(b.isValid()){b.updateRecord();a=b.getRecord();a.save({callback:function(f,b,e){newRecord=JSON.parse(b.getResponse().responseText);a.set(newRecord);if(e){d.fireEvent('newsetting',a,c);d.close()}}})}},deleteSetting:function(){var a=this,c=a.getView(),d=a.lookup('settingForm').getForm(),b;b=d.getRecord();b.erase({callback:function(e,d,b){if(b){c.fireEvent('deletesetting',a);c.close()}}})},cancelSetting:function(){var a=this;a.lookupReference('settingForm').getForm().reset();a.getView().close()}},0,0,0,0,['controller.settings'],0,[Target.view.settings,'SettingsController'],0);Ext.cmd.derive('Target.view.settings.SettingWindow',Ext.window.Window,{controller:'settings',viewModel:{data:{isEdit:!1}},title:'Create or edit a setting',width:300,height:350,layout:'fit',modal:!0,closeAction:'destroy',config:{record:null},items:[{xtype:'form',reference:'settingForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'textfield',fieldLabel:'Name',name:'cst_display_name',itemId:'cst_display_name',allowBlank:!1,minLength:3,maxLength:128},{xtype:'checkbox',boxLabel:'Public',name:'cst_is_public',reference:'isPublic',listeners:{change:function(d,a){var c=this.up('form'),b=c.down('#isEditable');if(a===!1){b.setValue(a)}}}},{xtype:'checkbox',boxLabel:'Alow edition',name:'cst_is_editable',itemId:'isEditable',bind:{disabled:'{!isPublic.checked}'}},{xtype:'textareafield',fieldLabel:'Description',name:'cst_description',labelAlign:'top',flex:1,margin:'0',allowBlank:!0,maxLength:1024}]}],buttons:[{text:'Delete',itemId:'btnDeleteSetting',ui:'soft-red',handler:'deleteSetting',bind:{hidden:'{!isEdit}'}},'->',{text:'Cancel',handler:'cancelSetting'},{text:'Save',ui:'soft-green',handler:'addSetting'}],setRecord:function(a){var b=this,c=b.getViewModel(),d=b.lookup('settingForm');b.record=a;d.loadRecord(a);if(a.get('id')>0){c.set('isEdit',!0)}else {c.set('isEdit',!1)}}},0,0,['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},0,0,[Target.view.settings,'SettingWindow'],0);Ext.cmd.derive('Target.view.settings.ColumnsController',Ext.app.ViewController,{listen:{component:{'targets-columns':{changecatalog:'onChangeCatalog'}},store:{'#Available':{load:'checkAvailable'},'#Settings':{load:'onLoadSettings'}}},winSetting:null,onChangeCatalog:function(b){var c=this,d=c.getViewModel(),a=d.get('settings');a.addFilter([{property:'cst_product',value:b.get('id')}]);a.load()},onLoadSettings:function(f){var a=this,d=a.getViewModel(),e=d.get('currentCatalog'),b=d.getStore('currentSettings'),c=a.lookup('btnEditSetting');if(f.count()>0){c.enable();b.addFilter([{property:'cst_product',value:e.get('id')}]);b.load({scope:a,callback:a.onLoadCurrentSettings})}else {c.disable()}},onLoadCurrentSettings:function(){var e=this,a=e.getViewModel(),f=a.getStore('settings'),c=a.getStore('currentSettings'),g=e.lookup('cmbSetting'),b,d;if(c.count()>0){b=c.first();a.set('currentSetting',b);d=f.getById(b.get('cst_setting'));a.set('selectedSetting',d)}},onSelectSetting:function(e,c){var b=this,d=b.getViewModel(),a=d.get('currentSetting');if(c.get('id')>0){if(a&&a.get('id')>0){if(c.get('id')!=a.get('cst_setting')){a.erase({callback:function(f,d,a){if(a){b.setNewCurrentSetting()}}})}else {b.loadGrids()}}else {b.setNewCurrentSetting()}}},setNewCurrentSetting:function(){var c=this,a=c.getViewModel(),d=a.get('selectedSetting'),e=a.get('currentCatalog'),b;b=Ext.create('Target.model.CurrentSetting',{cst_product:e.get('id'),cst_setting:d.get('id')});b.save({callback:function(b,d,e){newRecord=JSON.parse(d.getResponse().responseText);b.set(newRecord);a.set('currentSetting',b);c.loadGrids()}})},loadGrids:function(){var b=this,a=b.getViewModel(),d=a.get('selectedSetting'),f=a.get('currentCatalog'),e=a.getStore('auxAvailableContents'),c=a.getStore('auxContentSettings');c.addFilter([{'property':'pcs_setting',value:d.get('id')}]);e.addFilter([{'property':'pcn_product_id',value:f.get('id')},{'property':'pca_setting',value:d.get('id')}]);e.load();c.load({callback:function(){b.loadAvailable()}});b.loadContentSettings()},loadAvailable:function(){var d=this,c=d.getViewModel(),a=c.getStore('availableContents'),b=c.get('currentSetting');a.clearFilter();a.addFilter([{'property':'pcn_product_id',value:b.get('cst_product')},{'property':'pca_setting',value:b.get('cst_setting')}]);a.load()},loadContentSettings:function(){var d=this,b=d.getViewModel(),c=b.get('selectedSetting'),a=b.getStore('contentSettings');a.addFilter([{'property':'pcs_setting',value:c.get('id')}]);a.load()},checkAvailable:function(){var e=this,c=e.getViewModel(),a=c.getStore('availableContents'),d=c.getStore('auxContentSettings'),b=[];a.each(function(a){if(d.find('display_name',a.get('display_name'))>-1){b.push(a)}},this);a.remove(b)},onDropGrid1:function(f,d){var a=this,e=a.getViewModel(),c=a.lookupReference('grid1'),b=e.getStore('auxContentSettings');c.setLoading(!0);Ext.each(d.records,function(a){b.remove(a)},a);b.sync({callback:function(){c.setLoading(!1);a.loadContentSettings();a.loadAvailable()}})},onDropGrid2:function(e,d){var b=this,c=b.getViewModel(),a=c.get('currentSetting');if(a&&a.get('id')>0){b.addColumnToCurrentSetting()}},addColumnToCurrentSetting:function(){var d=this,e=d.getViewModel(),h=e.get('currentSetting'),f=d.lookupReference('grid2'),a=e.getStore('auxContentSettings'),g=e.getStore('contentSettings'),b,c,i;f.setLoading(!0);g.each(function(d,e){c=a.find('display_name',d.get('display_name'));if(c>-1){b=a.getAt(c);b.set('pcs_order',e)}else {b=Ext.create('Target.model.ContentSetting',{'display_name':d.get('display_name'),'pcs_content':d.get('id'),'pcs_setting':h.get('cst_setting'),'pcs_is_visible':!0,'pcs_order':e})}a.add(b)});a.sync({callback:function(){f.setLoading(!1);a.load({callback:function(){d.loadContentSettings()}})}})},onSearch:function(a){var b=this,d=b.getViewModel(),c=d.getStore('availableContents');if(a!==''){c.filter([{property:'display_name',value:a}])}else {b.onSearchCancel()}},onSearchCancel:function(){this.loadAvailable()},onSearchDisplayed:function(e){var d=this,f=d.getViewModel(),a=f.getStore('contentSettings'),c=[],b;a.load({callback:function(){a.each(function(a){b=a.get('display_name').toLowerCase();if(b.indexOf(e.toLowerCase())===-1){c.push(a)}},d);a.remove(c)}})},onSearchCancelDisplayed:function(){this.loadContentSettings()},newSetting:function(){var b=this,d=b.getViewModel(),c=d.get('currentCatalog'),a;a=Ext.create('Target.model.Setting',{cst_product:c.get('id')});b.showSettingWindow(a)},editSetting:function(){var a=this,c=a.getViewModel(),b=c.get('selectedSetting');a.showSettingWindow(b)},showSettingWindow:function(b){var a=this,c=a.getViewModel(),d=c.get('currentCatalog'),f,e;if(a.winSetting){a.winSetting.close();a.winSetting=null}a.winSetting=Ext.create('Target.view.settings.SettingWindow',{listeners:{scope:a,'newsetting':'onAddSetting','deletesetting':'onDeleteSetting'}});a.winSetting.setRecord(b);a.winSetting.show()},onAddSetting:function(b){var d=this,a=d.getViewModel(),c=a.getStore('settings');a.set('selectedSetting',b);c.load()},onDeleteSetting:function(){var d=this,a=d.getViewModel(),c=a.getStore('settings'),b=a.get('currentCatalog');model=Ext.create('Target.model.Setting',{cst_product:b.get('id')});a.set('selectedSetting',model);a.set('currentSetting',null);c.load()}},0,0,0,0,['controller.columns'],0,[Target.view.settings,'ColumnsController'],0);Ext.cmd.derive('Target.view.settings.ColumnsModel',Ext.app.ViewModel,{links:{selectedSetting:{type:'Target.model.Setting',create:!0},currentSetting:{type:'Target.model.CurrentSetting',create:!0},currentCatalog:{type:'Target.model.Catalog',create:!0}},stores:{settings:{type:'settings',storeId:'Settings'},currentSettings:{type:'currentsettings',remoteFilter:!0},availableContents:{type:'product-display-contents',autoLoad:!1,storeId:'Available'},auxAvailableContents:{type:'product-display-contents',autoLoad:!1},contentSettings:{type:'content-settings',autoLoad:!1},auxContentSettings:{type:'content-settings',autoLoad:!1}}},0,0,0,0,['viewmodel.columns'],0,[Target.view.settings,'ColumnsModel'],0);Ext.cmd.derive('Target.view.settings.Columns',Ext.panel.Panel,{controller:'columns',viewModel:'columns',config:{currentSetting:null},initComponent:function(){var a=this;Ext.apply(this,{layout:{type:'vbox',align:'stretch'},items:[{xtype:'panel',height:80,bodyPadding:10,html:['

    Select which columns you want to display.
    Drag and drop from the left panel into the right. You can also choose the order of the parameters.
    Use the search form to ease your choice.

    ']},{xtype:'panel',height:60,bodyPadding:5,items:[{xtype:'fieldcontainer',layout:'hbox',fieldLabel:'Choose or create a Setting',labelAlign:'top',items:[{xtype:'combobox',itemId:'cmbSetting',reference:'cmbSetting',publishes:'id',displayField:'cst_display_name',bind:{store:'{settings}',selection:'{selectedSetting}'},listeners:{select:'onSelectSetting'},minChars:0,queryMode:'local',editable:!1,labelStyle:'font-weight:bold',readOnly:!1,width:300},{xtype:'button',iconCls:'x-fa fa-plus',handler:'newSetting',margin:'0 0 0 5',tooltip:'Add New Setting'},{xtype:'button',iconCls:'x-fa fa-pencil',handler:'editSetting',tooltip:'Edit Selected Setting',reference:'btnEditSetting',bind:{disabled:'{!selectedSetting.editable}'}}]}]},{xtype:'panel',flex:1,layout:{type:'hbox',align:'stretch'},bind:{disabled:'{!cmbSetting.selection}'},items:[{xtype:'grid',reference:'grid1',flex:1,multiSelect:!0,margin:'0 5 0 0',bind:{store:'{availableContents}'},selType:'checkboxmodel',viewConfig:{plugins:{ptype:'gridviewdragdrop',containerScroll:!0,ddGroup:'columns'},listeners:{drop:'onDropGrid1'}},columns:[{text:'Available Properties',dataIndex:'display_name',flex:1,renderer:function(b,c,a){if(a.get('unit')!==null&&a.get('unit')!==''){return b+' ('+a.get('unit')+')'}else {return b}}}],tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearch','cancel':'onSearchCancel'},flex:1}]},{xtype:'gridpanel',reference:'grid2',flex:1,scrollable:!0,split:!0,bind:{store:'{contentSettings}'},columns:[{text:'Displayed Properties',dataIndex:'display_name',flex:1,renderer:function(b,c,a){if(a.get('unit')!==null&&a.get('unit')!==''){return b+' ('+a.get('unit')+')'}else {return b}}}],viewConfig:{stripeRows:!1,markDirty:!1,plugins:{ptype:'gridviewdragdrop',containerScroll:!0,ddGroup:'columns'},listeners:{drop:'onDropGrid2'}},tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearchDisplayed','cancel':'onSearchCancelDisplayed'},flex:1}]}]}],buttons:[{text:'Cancel',scope:a,handler:function(){this.fireEvent('finish',this)}},{text:'Ok',ui:'soft-green',scope:a,handler:function(){this.fireEvent('finish',this)}}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(a){if(a&&a.get('id')>0){this.currentCatalog=a;this.getViewModel().set('currentCatalog',a);this.fireEvent('changecatalog',a)}},setCurrentSetting:function(a){this.currentSetting=a;this.getViewModel().set('currentSetting',a)}},0,['targets-columns'],['component','box','container','panel','targets-columns'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-columns':!0},['widget.targets-columns'],0,[Target.view.settings,'Columns'],0);Ext.cmd.derive('Target.view.settings.PermissionController',Ext.app.ViewController,{listen:{component:{'targets-permission':{changecatalog:'onChangeCatalog'}},store:{'#Users':{load:'onLoadUsers'},'#Workgroups':{load:'onLoadWorkgroups'},'#Users2':{load:'onLoadUsers2'},'#WorkgroupUsers':{load:'onLoadWorkgroupsUsers'}}},onChangeCatalog:function(a){var b=this,c=b.getViewModel(),e=c.getStore('permissionUsers'),d=c.getStore('permissionWorkgroups'),g=b.getReferences(),f=g.chkIsPlublic;c.set('currentCatalog',a);if(a.get('is_owner')){e.addFilter([{'property':'prm_product',value:a.get('id')}]);e.load();d.addFilter([{'property':'product',value:a.get('id')}]);d.load();if(a.get('prd_is_public')===!0){f.setValue(!0)}else {f.setValue(!1)}}b.disablePermissions()},disablePermissions:function(){var a=this,e=a.getViewModel().get('currentCatalog'),d=a.lookupReference('permissionUsersGrid'),b=a.lookupReference('permissionWorkgroupsGrid'),c=a.lookupReference('chkIsPlublic');if(e.get('is_owner')){c.enable();d.enable();b.enable()}else {c.disable();d.disable();b.disable()}},onChangeIsPublic:function(e,b){var a=this,d=a.getViewModel(),c=d.get('currentCatalog');if(b!=c.get('prd_is_public')){a.changePublic(b)}a.enableDisablePermissions()},enableDisablePermissions:function(){var d=this,f=d.getViewModel(),e=f.get('currentCatalog'),c=d.getReferences(),b=c.permissionUsersGrid,a=c.permissionWorkgroupsGrid;if(e.get('prd_is_public')){b.disable();a.disable()}else {b.enable();a.enable()}},changePublic:function(b){var d=this,e=d.getViewModel(),a=e.get('currentCatalog'),c;c={prd_is_public:b};Ext.Ajax.request({cors:!0,method:'PATCH',url:'/dri/api/product/'+a.get('id')+'/',success:function(){a.set('prd_is_public',b);d.enableDisablePermissions()},failure:function(a){Ext.MessageBox.show({title:'Server Side Failure',msg:a.status+' '+a.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})},headers:{'Accept':'application/json','Application':'application/json','Content-Type':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')},params:Ext.util.JSON.encode(c)})},onLoadUsers:function(a){var c=this,d=c.getViewModel(),b=d.getStore('permissionUsers');b.each(function(b){a.remove(a.getById(b.get('prm_user')))},this)},onAddUser:function(){var b=this,a;a=b.lookupReference('winPermissionUser');if(!a){a=Ext.create('Target.view.settings.PermissionUserWindow',{});b.getView().add(a)}a.show()},onCancelPermissionUser:function(){var a=this;a.lookupReference('permissionUserForm').getForm().reset();a.lookupReference('winPermissionUser').close()},onAddPermissionUser:function(){var c=this,h=c.getView(),a=c.getViewModel(),d=a.getStore('permissions'),j=a.get('currentCatalog'),f=a.getStore('users'),i=a.getStore('permissionUsers'),g=c.getReferences(),l=g.cmbPermissionUser,k=g.permissionUserForm,b=l.getValue(),e;h.setLoading(!0);if(b){e=Ext.create('Target.model.Permission',{prm_product:j.get('id'),prm_user:b,prm_workgroup:null});d.add(e);d.sync({callback:function(){i.load();f.remove(f.getById(b));k.reset();h.setLoading(!1)}})}},onRemoveUser:function(){var a=this;Ext.MessageBox.confirm('Confirm','Are you sure you want to remove this user?',this.onRemovePermissionUser,this)},onRemovePermissionUser:function(){var a=this,d=a.getView(),e=a.getViewModel(),b=e.getStore('permissions'),f=e.get('currentCatalog'),h=a.getReferences(),g=h.permissionUsersGrid,c=g.selection;if(c){d.setLoading(!0);b.addFilter([{'property':'prm_product',value:f.get('id')},{'property':'prm_user',value:c.get('prm_user')}]);b.load({callback:function(){if(this.count()===1){this.remove(this.first());this.sync({callback:function(){d.setLoading(!1);a.deleteSucces()}})}}})}},deleteSucces:function(){var d=this,b=d.getViewModel(),a=b.getStore('permissions'),c=b.getStore('permissionUsers');c.load();a.clearFilter(!0);a.removeAll()},onLoadWorkgroups:function(a){var c=this,d=c.getViewModel(),b=d.getStore('permissionWorkgroups');b.each(function(b){a.remove(a.getById(b.get('wgu_workgroup')))},this)},onAddWorkgroup:function(){var b=this,a;a=b.lookupReference('winPermissionWorkgroup');if(!a){a=Ext.create('Target.view.settings.PermissionWorkgroupWindow',{});b.getView().add(a)}a.show()},onCancelPermissionWorkgroup:function(){var a=this;a.lookupReference('permissionWorkgroupForm').getForm().reset();a.lookupReference('winPermissionWorkgroup').close()},onAddPermissionWorkgroup:function(){var b=this,h=b.getView(),a=b.getViewModel(),c=a.getStore('permissions'),j=a.get('currentCatalog'),d=a.getStore('workgroups'),i=a.getStore('permissionWorkgroups'),g=b.getReferences(),l=g.cmbPermissionWorkgroup,k=g.permissionWorkgroupForm,e=l.getValue(),f;h.setLoading(!0);f=Ext.create('Target.model.Permission',{prm_product:j.get('id'),prm_user:null,prm_workgroup:e});c.add(f);c.sync({callback:function(){i.load();d.remove(d.getById(e));k.reset();h.setLoading(!1)}})},onRemoveWorkgroup:function(){var a=this;Ext.MessageBox.confirm('Confirm','Are you sure you want to remove this Workgroup?',a.onRemovePermissionWorkgroup,a)},onRemovePermissionWorkgroup:function(){var a=this,d=a.getView(),e=a.getViewModel(),b=e.getStore('permissions'),f=e.get('currentCatalog'),h=a.getReferences(),g=h.permissionWorkgroupsGrid,c=g.selection;if(c){d.setLoading(!0);b.addFilter([{'property':'prm_product',value:f.get('id')},{'property':'prm_workgroup',value:c.get('wgu_workgroup')}]);b.load({callback:function(){if(this.count()===1){this.remove(this.first());this.sync({callback:function(){d.setLoading(!1);a.deleteWorkgroupSucces()}})}}})}},deleteWorkgroupSucces:function(){var d=this,b=d.getViewModel(),a=b.getStore('permissions'),c=b.getStore('permissionWorkgroups');c.load();a.clearFilter(!0);a.removeAll()},onCreateWorkgroup:function(){var b=this,a;a=Ext.create('Target.view.settings.AddWorkgroupWindow',{});b.getView().add(a);a.show()},onCancelCreateWorkgroup:function(){var a=this,b=a.getViewModel(),e=b.getStore('workgroupUsers'),c=b.getStore('workgroups'),d=b.get('newWorkgroup');if(d.get('id')>0&&e.count()===0){Ext.MessageBox.alert('','This workgroup has no associated users, it will be removed.',function(){c.remove(d);c.sync({callback:function(){a.closeWindowAddWorkgroup()}})},this)}else {a.closeWindowAddWorkgroup()}},closeWindowAddWorkgroup:function(){var a=this;a.lookupReference('createWorkgroupForm').getForm().reset();a.lookupReference('winAddWorkgroup').close()},onInsertWorkgroup:function(){var c=this,g=c.getView(),h=c.getViewModel(),b=h.getStore('workgroups'),i=c.lookupReference('txtWorkgroupName'),a=i.getValue(),f=!0,e,d;g.setLoading(!0);if(a!==null&&a!==''){b.each(function(b){if(a===b.get('wgp_workgroup')){f=!1}},this);if(f){e=Ext.create('Target.model.Workgroup',{wgp_workgroup:a});b.add(e);b.sync({callback:function(e,f,i){b.load({callback:function(){this.each(function(b){if(a===b.get('wgp_workgroup')){d=b;h.set('newWorkgroup',d);c.onSuccesCreateWorkgroup(d);g.setLoading(!1)}},this)}})}})}else {Ext.MessageBox.alert('','Workgroup already exists')}}},onSuccesCreateWorkgroup:function(g){var c=this,d=c.getViewModel(),h=d.get('newWorkgroup'),a=d.getStore('workgroupUsers'),b=c.getReferences(),e=b.cmbAddWorkgroupUser,f=b.btnCreateWorkgroup;a.addFilter([{'property':'wgu_workgroup',value:g.get('id')}]);a.load();e.enable();f.disable()},onAddUserInWorkgroup:function(){var c=this,g=c.getView(),d=c.getViewModel(),i=d.get('newWorkgroup'),a=d.getStore('workgroupUsers'),f=d.getStore('users2'),j=c.getReferences(),h=j.cmbAddWorkgroupUser,b=h.getValue(),e;g.setLoading(!0);if(b){e=Ext.create('Target.model.WorkgroupUser',{wgu_workgroup:i.get('id'),wgu_user:b});a.add(e);a.sync({callback:function(){a.load();f.remove(f.getById(b));h.setValue(null);g.setLoading(!1)}})}},onRemoveUserInWorkgroup:function(){console.log('onRemoveUserInWorkgroup');var b=this,d=b.getView(),e=b.getViewModel(),a=e.getStore('workgroupUsers'),f=e.getStore('users2'),h=b.getReferences(),g=h.WorkgroupUsersGrid,c=g.selection;d.setLoading(!0);if(c){a.remove(c);a.sync({callback:function(){a.load();f.load();d.setLoading(!1)}})}},onLoadUsers2:function(a){var c=this,d=c.getViewModel(),b=d.getStore('workgroupUsers');b.each(function(b){a.remove(a.getById(b.get('wgu_user')))},this)},onLoadWorkgroupsUsers:function(b){var c=this,a=c.lookupReference('btnCompleteInsertWorkgroup');if(b.count()===0){a.disable()}else {a.enable()}},onCompleteInsertWorkgroup:function(){var a=this,b=a.getViewModel(),c=b.getStore('workgroupUsers'),d=b.get('newWorkgroup');if(d.get('id')>0&&c.count()===0){Ext.MessageBox.alert('','No users added to workgroup')}else {a.closeWindowAddWorkgroup()}}},0,0,0,0,['controller.permission'],0,[Target.view.settings,'PermissionController'],0);Ext.cmd.derive('Target.view.settings.PermissionModel',Ext.app.ViewModel,{links:{currentCatalog:{type:'Target.model.Catalog',create:!0},newWorkgroup:{type:'Target.model.Workgroup',create:!0}},stores:{permissions:{type:'permissions'},permissionUsers:{type:'permission_users'},permissionWorkgroups:{type:'permission_workgroups'},users:{type:'users_same_group',storeId:'Users'},workgroups:{type:'workgroups',storeId:'Workgroups',autoLoad:!0},workgroupUsers:{type:'workgroup_users',storeId:'WorkgroupUsers'},users2:{type:'users_same_group',storeId:'Users2'}}},0,0,0,0,['viewmodel.permission'],0,[Target.view.settings,'PermissionModel'],0);Ext.cmd.derive('Target.view.settings.PermissionUserWindow',Ext.window.Window,{title:'Add a User',reference:'winPermissionUser',width:300,height:150,layout:'fit',modal:!0,closeAction:'hide',items:[{xtype:'form',reference:'permissionUserForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'combobox',name:'user',fieldLabel:'User',valueField:'id',reference:'cmbPermissionUser',displayField:'username',allowBlank:!1,editable:!1,bind:{store:'{users}'}}]}],buttons:['->',{text:'Cancel',handler:'onCancelPermissionUser'},{text:'Add',ui:'soft-green',handler:'onAddPermissionUser',bind:{disabled:'{!cmbPermissionUser.selection}'}}]},0,0,['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},0,0,[Target.view.settings,'PermissionUserWindow'],0);Ext.cmd.derive('Target.view.settings.PermissionWorkgroupWindow',Ext.window.Window,{title:'Add a Workgroup',reference:'winPermissionWorkgroup',width:300,height:150,layout:'fit',modal:!0,closeAction:'hide',items:[{xtype:'form',reference:'permissionWorkgroupForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'combobox',name:'user',fieldLabel:'Workgroup',valueField:'id',reference:'cmbPermissionWorkgroup',displayField:'wgp_workgroup',allowBlank:!1,editable:!1,flex:1,hideLabel:!0,forceSelection:!0,bind:{store:'{workgroups}'}},{xtype:'button',iconCls:'x-fa fa-plus',ui:'soft-green',tooltip:'Create Workgroup',handler:'onCreateWorkgroup'}]}]}],buttons:['->',{text:'Cancel',handler:'onCancelPermissionWorkgroup'},{text:'Add',ui:'soft-green',handler:'onAddPermissionWorkgroup',bind:{disabled:'{!cmbPermissionWorkgroup.selection}'}}]},0,0,['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},0,0,[Target.view.settings,'PermissionWorkgroupWindow'],0);Ext.cmd.derive('Target.view.settings.AddWorkgroupWindow',Ext.window.Window,{title:'Create a Workgroup',reference:'winAddWorkgroup',width:400,height:450,modal:!0,closeAction:'destroy',items:[{xtype:'form',reference:'createWorkgroupForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,flex:1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelStyle:'font-weight:bold'},items:[{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'textfield',fieldLabel:'Name',labelAlign:'left',name:'wgp_workgroup',allowBlank:!1,maxLength:60,reference:'txtWorkgroupName',labelWidth:70,flex:1},{xtype:'button',text:'Create',ui:'soft-green',handler:'onInsertWorkgroup',reference:'btnCreateWorkgroup'}]},{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'combobox',name:'user',fieldLabel:'Add Users',labelAlign:'left',labelWidth:70,valueField:'id',reference:'cmbAddWorkgroupUser',displayField:'username',editable:!1,bind:{store:'{users2}'},disabled:!0,flex:1},{xtype:'button',iconCls:'x-fa fa-plus',ui:'soft-green',handler:'onAddUserInWorkgroup',bind:{disabled:'{!cmbAddWorkgroupUser.selection}'}},{xtype:'button',iconCls:'x-fa fa-minus',ui:'soft-red',handler:'onRemoveUserInWorkgroup',bind:{disabled:'{!WorkgroupUsersGrid.selection}'}}]},{xtype:'grid',reference:'WorkgroupUsersGrid',columns:[{text:'Users',dataIndex:'username',flex:1}],bind:{store:'{workgroupUsers}'},flex:1}]}],buttons:['->',{text:'Cancel',handler:'onCancelCreateWorkgroup'},{text:'OK',ui:'soft-green',handler:'onCompleteInsertWorkgroup',reference:'btnCompleteInsertWorkgroup',disabled:!0}]},0,0,['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},0,0,[Target.view.settings,'AddWorkgroupWindow'],0);Ext.cmd.derive('Target.view.settings.Permission',Ext.panel.Panel,{controller:'permission',viewModel:'permission',config:{currentCatalog:null},initComponent:function(){var a=this;Ext.apply(this,{layout:{type:'vbox',align:'stretch'},items:[{xtype:'panel',height:80,bodyPadding:10,html:['You can choose which users or workgroups can access this list.
    The list can be public or private in this case only the users selected or who are part of a group can access it.
    You can create workgroups.']},{xtype:'panel',flex:1,layout:{type:'vbox',align:'stretch'},items:[{xtype:'checkbox',boxLabel:'Public',name:'is_public',reference:'chkIsPlublic',listeners:{change:'onChangeIsPublic'}},{xtype:'panel',flex:1,layout:{type:'hbox',align:'stretch'},items:[{xtype:'grid',title:'Users',reference:'permissionUsersGrid',flex:1,split:!0,frame:!0,bind:{store:'{permissionUsers}'},columns:[{text:'Username',dataIndex:'username',flex:1}],tools:[{type:'plus',handler:'onAddUser',tooltip:'Add User'},{type:'minus',handler:'onRemoveUser',tooltip:'Remove User',bind:{hidden:'{!permissionUsersGrid.selection}'}}]},{xtype:'grid',title:'Workgroups',reference:'permissionWorkgroupsGrid',flex:1,split:!0,frame:!0,bind:{store:'{permissionWorkgroups}'},columns:[{text:'Workgroup',dataIndex:'workgroup',flex:1},{text:'Username',dataIndex:'username',flex:1}],features:[{ftype:'grouping',startCollapsed:!0,groupHeaderTpl:'{name} ({rows.length} User{[values.rows.length > 1 ? "s" : ""]})'}],tools:[{type:'plus',handler:'onAddWorkgroup',tooltip:'Add Workgroup'},{type:'minus',handler:'onRemoveWorkgroup',tooltip:'Remove Workgroup',bind:{hidden:'{!permissionWorkgroupsGrid.selection}'}}]}]}]}],buttons:[{text:'Cancel',scope:a,handler:function(){this.fireEvent('finish',this)}},{text:'Ok',ui:'soft-green',scope:a,handler:function(){this.fireEvent('finish',this)}}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(b){var a=this;a.currentCatalog=b;a.fireEvent('changecatalog',b,a)}},0,['targets-permission'],['component','box','container','panel','targets-permission'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-permission':!0},['widget.targets-permission'],0,[Target.view.settings,'Permission'],0);Ext.cmd.derive('Target.view.settings.SystemMembersController',Ext.app.ViewController,{listen:{component:{'targets-system-members':{changecatalog:'onChangeCatalog'}}},onChangeCatalog:function(a){var c=this,d=c.getViewModel(),e=d.getStore('products'),b=d.getStore('productRelateds');if(a.get('pcl_is_system')){b.addFilter({property:'prl_product',value:a.get('id')});b.load({callback:function(){c.onLoadRelateds(this)}})}},onLoadRelateds:function(a){var c=this,d=c.getViewModel(),b;if(a.count()>0){b=a.first();d.set('productRelated',b)}c.loadAvailableMembersCatalog()},loadAvailableMembersCatalog:function(){var c=this,d=c.getViewModel(),b=d.get('currentCatalog'),a=d.getStore('products');a.addFilter({property:'class_name',value:'cluster_members'});if(b.get('epr_original_id')!==null){a.addFilter({property:'process',value:b.get('epr_original_id')})}a.load({callback:function(){c.onLoadAvailableMembersCatalog(this)}})},onLoadAvailableMembersCatalog:function(e){var b=this,h=b.getReferences(),f=h.cmbAvailableMembers,g=b.getViewModel(),d=g.get('currentCatalog'),c=g.get('productRelated'),a;if(c&&c.get('id')>0){a=e.getById(c.get('prl_related'))}else {if(d.get('epr_original_id')!==null){e.each(function(b){if(b.get('epr_original_id')==d.get('epr_original_id')){a=b;return !1}},b)}else {}}if(a.get('id')!==0){f.select(a);b.onSelectMembersCatalog(f,a)}},onSelectMembersCatalog:function(g,b){var d=this,e=d.getViewModel(),f=e.get('currentCatalog'),a=e.get('productRelated'),c=e.getStore('productRelateds');if(b!==null&&b.get('id')>0){e.set('memberCatalog',b);if(a.get('id')>0){if(a.get('prl_related')!=b.get('id')){a.set('prl_related',b.get('id'));c.add(a);c.sync({callback:function(){d.loadContents()}})}else {d.loadContents()}}else {a.set('prl_product',f.get('id'));a.set('prl_related',b.get('id'));a.set('prl_cross_identification',null);c.add(a);c.sync({callback:function(){d.loadContents()}})}}},loadContents:function(){var b=this,c=b.getViewModel(),a=c.getStore('availableContents'),d=c.get('memberCatalog');a.addFilter([{property:'pcn_product_id',value:d.get('id')}]);a.load({callback:function(){b.preSelectCrossIdentification(this)}})},preSelectCrossIdentification:function(d){var b=this,f=b.getReferences(),e=f.cmbMembersProperties,g=b.getViewModel(),c=g.get('productRelated'),a;d.each(function(b){if(b.get('ucd')==='meta.id.cross'){a=b;return !1}},b);if(c.get('id')>0){if(c.get('prl_cross_identification')>0){a=d.getById(c.get('prl_cross_identification'))}}if(a){e.select(a);b.onSelectCrossIdentification(e,a)}},onSelectCrossIdentification:function(f,a){var e=this,c=e.getViewModel(),b=c.get('productRelated'),d=c.getStore('productRelateds');if(a&&a.get('id')>0){c.set('crossIdentification',a);if(b.get('id')>0){if(b.get('prl_cross_identification')!==a.get('id')){console.log('TODO: UPDATE UM NOVO RELATED');b.set('prl_cross_identification',a.get('id'));d.add(b);d.sync()}}}}},0,0,0,0,['controller.system_members'],0,[Target.view.settings,'SystemMembersController'],0);Ext.cmd.derive('Target.view.settings.SystemMembersModel',Ext.app.ViewModel,{links:{currentCatalog:{type:'Target.model.Catalog',create:!0},productRelated:{type:'Target.model.ProductRelated',create:!0},membersCatalog:{type:'Target.model.Catalog',create:!0},crossIdentification:{type:'Target.model.CatalogContent',create:!0}},stores:{products:{type:'products',autoLoad:!1},productRelateds:{type:'product_relateds',autoLoad:!1},availableContents:{type:'product-display-contents',autoLoad:!1}}},0,0,0,0,['viewmodel.system_members'],0,[Target.view.settings,'SystemMembersModel'],0);Ext.cmd.derive('Target.view.settings.SystemMembers',Ext.panel.Panel,{controller:'system_members',viewModel:'system_members',config:{currentCatalog:null},initComponent:function(){var a=this;Ext.apply(this,{layout:{type:'vbox',align:'stretch'},items:[{xtype:'form',bodyPadding:10,layout:{type:'vbox',align:'stretch'},items:[{xtype:'fieldcontainer',items:[{xtype:'combobox',itemId:'cmbAvailableMembers',reference:'cmbAvailableMembers',publishes:'id',fieldLabel:'Available Cluster Members',displayField:'prd_display_name',bind:{store:'{products}',selection:'{membersCatalog}'},listeners:{select:'onSelectMembersCatalog'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,width:400,labelAlign:'top'},{xtype:'combobox',itemId:'cmbMembersProperties',reference:'cmbMembersProperties',publishes:'id',fieldLabel:'Choose the property that links members to their clusters',displayField:'display_name',bind:{store:'{availableContents}',selection:'{crossIdentification}'},listeners:{select:'onSelectCrossIdentification'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,width:400,labelAlign:'top'}]}]}],buttons:[{text:'Finish',ui:'soft-green',scope:a,handler:function(){this.fireEvent('finish',this)}}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(b){var a=this,c=a.getViewModel();a.currentCatalog=b;c.set('currentCatalog',b);a.fireEvent('changecatalog',b,a)}},0,['targets-system-members'],['component','box','container','panel','targets-system-members'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-system-members':!0},['widget.targets-system-members'],0,[Target.view.settings,'SystemMembers'],0);Ext.cmd.derive('Target.view.settings.CutoutController',Ext.app.ViewController,{listen:{component:{'targets-cutout':{changecatalog:'onChangeCatalog',deactivate:'onDeactive',beforedestroy:'onDeactive'}}},onChangeCatalog:function(b){var a=this,d=a.getViewModel(),c=d.getStore('cutoutjobs');d.set('currentCatalog',b);c.addFilter([{property:'cjb_product',value:b.get('id')},{property:'cjb_status',operator:'in',value:['st','bs','rn','ok','er','je']}]);c.load();a.taskReloadJobs=Ext.TaskManager.start({run:a.reloadJobs,interval:10000,scope:a})},reloadJobs:function(){var b=this,c=b.getViewModel(),a=c.getStore('cutoutjobs');a.load()},onClickCreate:function(){var c=this,d=c.getViewModel(),e=d.get('currentCatalog'),b=d.get('currentSetting'),a;a=c.lookupReference('winCutoutJobForm');if(!a){a=Ext.create('Target.view.settings.CutoutJobForm',{reference:'winCutoutJobForm',modal:!0,listeners:{close:'reloadJobs'}});c.getView().add(a)}a.setCurrentProduct(e);if(b&&b.get('id')>0){a.setCurrentSetting(b)}a.show()},onDeactive:function(){var a=this;if(a.taskReloadJobs){Ext.TaskManager.stop(a.taskReloadJobs)}},onCheckAllBands:function(d,c){var a=this,b=a.lookup('cbgBands');b.eachBox(function(a){a.setValue(c)},a)},onRemoveCutoutJob:function(){var a=this,d=a.lookup('cutoutJobsGrid'),c=a.getViewModel().getStore('cutoutjobs'),b=d.selection;a.startStopTask(!1);b.set('cjb_status','dl');c.sync({callback:function(){a.startStopTask(!0)}})},startStopTask:function(b){var a=this;if(a.taskReloadJobs){if(b){Ext.TaskManager.start(a.taskReloadJobs)}else {Ext.TaskManager.stop(a.taskReloadJobs)}}}},0,0,0,0,['controller.cutout'],0,[Target.view.settings,'CutoutController'],0);Ext.cmd.derive('Target.view.settings.CutoutModel',Ext.app.ViewModel,{links:{currentCatalog:{type:'Target.model.Catalog',create:!0},cutoutJob:{type:'Target.model.CutoutJob',create:!0},currentSetting:{type:'Target.model.CurrentSetting',create:!0}},stores:{cutoutjobs:{type:'cutoutjobs'}}},0,0,0,0,['viewmodel.cutout'],0,[Target.view.settings,'CutoutModel'],0);Ext.cmd.derive('Target.view.settings.CutoutJobs',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{markDirty:!1,columns:[{text:'Name',dataIndex:'cjb_display_name',flex:1},{text:'Owner',dataIndex:'owner'},{text:'Type',dataIndex:'cjb_job_type'},{text:'Filters',dataIndex:'cjb_band'},{text:'Release Tag',dataIndex:'cjb_tag',flex:1},{text:'Status',dataIndex:'status'}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-cutout-jobs'],['component','box','container','panel','tablepanel','gridpanel','grid','targets-cutout-jobs'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'targets-cutout-jobs':!0},['widget.targets-cutout-jobs'],0,[Target.view.settings,'CutoutJobs'],0);Ext.cmd.derive('Target.view.settings.CutoutJobController',Ext.app.ViewController,{listen:{component:{'target-cutoutjob-form':{changeproduct:'onChangeProduct',changesetting:'onChangeSetting'}},store:{'#Contents':{load:'onLoadContents'}}},onChangeProduct:function(b){var d=this,c=d.getViewModel(),a=c.getStore('contents');c.set('currentProduct',b);a.removeAll();a.clearFilter(!0);a.addFilter({property:'pcn_product_id',value:b.get('id')});a.load()},onChangeSetting:function(b){var e=this,a=e.getViewModel(),d=a.get('currentProduct'),c=a.getStore('contents');a.set('currentSetting',b);c.addFilter([{'property':'pcn_product_id',value:d.get('id')},{'property':'pca_setting',value:b.get('cst_setting')}])},onLoadContents:function(a){this.addContentsToField(a)},addContentsToField:function(a){var c=this,d=c.getViewModel(),b=d.get('auxcontents');a.each(function(c){if(c.get('is_visible')===!0){b.add(c)}},a)},onCancelAddJob:function(){var c=this,a=c.getView(),b=a.down('form');b.reset();a.close()},onSubmitJob:function(){var d=this,c=d.getView(),g=d.getViewModel(),e=g.getStore('cutoutjobs'),h=g.get('currentProduct'),f=c.down('form'),a,b;if(f.isValid()){c.setLoading(!0);a=f.getValues();b=Ext.create('Target.model.CutoutJob',{cjb_product:h.get('id'),cjb_display_name:a.job_name,cjb_job_type:a.job_type,cjb_xsize:parseFloat(a.xsize/60).toFixed(3),cjb_ysize:parseFloat(a.ysize/60).toFixed(3),cjb_Blacklist:!1,cjb_status:'st',cjb_description:a.cjb_description,cjb_image_formats:a.image_formats});if(a.job_type=='single'){if(a.band){try{b.set('cjb_band',a.band.join())}catch(i){b.set('cjb_band',a.band)}}if(a.no_blacklist){b.set('cjb_Blacklist',!0)}}else {if(a.tag&&a.tag!==''){b.set('cjb_tag',a.tag)}}if(a.label_properties&&a.label_properties.length>0){b.set('cjb_label_position',a.label_position);b.set('cjb_label_colors',a.label_color);b.set('cjb_label_font_size',a.label_font_size);b.set('cjb_label_properties',a.label_properties.join().toLowerCase())}e.add(b);e.sync({callback:function(){e.load();f.reset();c.setLoading(!1);c.fireEvent('submitedjob',d);Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - create_mosaic');d.afterSubmitJob(c)}})}},afterSubmitJob:function(a){var d=this,c=a.getObjectsCount(),b=a.getMaxObjects();a.close();if(c>b){Ext.MessageBox.alert('','The cutout tool has currently a limit of '+b+' objects. We are working to fix this limitation.
    The job will run in the background and you will be notified when it is finished.')}else {Ext.MessageBox.alert('','The job will run in the background and you will be notified when it is finished.')}},onDeactive:function(){var a=this;if(a.taskReloadJobs){Ext.TaskManager.stop(a.taskReloadJobs)}},onCheckAllBands:function(d,c){var a=this,b=a.lookup('cbgBands');b.eachBox(function(a){a.setValue(c)},a)}},0,0,0,0,['controller.cutoutjob'],0,[Target.view.settings,'CutoutJobController'],0);Ext.cmd.derive('Target.view.settings.CutoutJobModel',Ext.app.ViewModel,{data:{enableRelease:!1},links:{currentProduct:{type:'Target.model.Catalog',create:!0},cutoutJob:{type:'Target.model.CutoutJob',create:!0}},stores:{cutoutjobs:{type:'cutoutjobs'},tags:{fields:['name','displayName'],data:[{name:'y3a2_coadd',displayName:'Y3A2 COADD'},{name:'y3a1_coadd',displayName:'Y3A1 COADD'},{name:'y3a1_coadd_deep',displayName:'Y3A1 COADD DEEP'},{name:'y1a1_coadd',displayName:'Y1A1 COADD'},{name:'y1a1_coadd_d04',displayName:'Y1A1 COADD D04'},{name:'y1a1_coadd_d10',displayName:'Y1A1 COADD D10'},{name:'y1a1_coadd_dfull',displayName:'Y1A1 COADD DFULL'},{name:'sva1_coadd',displayName:'SVA1 COADD'}]},contents:{type:'product-display-contents',storeId:'Contents',autoLoad:!1},auxcontents:{type:'product-display-contents',autoLoad:!1}}},0,0,0,0,['viewmodel.cutoutjob'],0,[Target.view.settings,'CutoutJobModel'],0);Ext.cmd.derive('Target.view.settings.CutoutJobForm',Ext.window.Window,{title:'Create Mosaic',width:450,height:540,layout:'fit',modal:!0,controller:'cutoutjob',viewModel:'cutoutjob',closeAction:'hide',config:{currentProduct:null,currentSetting:null,availableReleases:null,objectsCount:null,maxObjects:300},initComponent:function(){var a=this,b=a.getViewModel(),c=b.getStore('tags');try{a.availableReleases=Settings.DES_CUTOUT_SERVICE__AVAILABLE_RELEASES}catch(d){console.warn('Setting DES_CUTOUT_SERVICE__AVAILABLE_RELEASES not loaded.')}try{a.maxObjects=Settings.DES_CUTOUT_SERVICE__MAX_OBJECTS}catch(e){console.warn('Setting DES_CUTOUT_SERVICE__MAX_OBJECTS not loaded.')}toBeRemoved=[];if(a.availableReleases!=null){b.set('enableRelease',!0);if(Array.isArray(a.availableReleases)&&a.availableReleases.length>0){c.each(function(b){if(a.availableReleases.indexOf(b.get('name'))==-1){toBeRemoved.push(b)}});c.remove(toBeRemoved)}}else {b.set('enableRelease',!1)}Ext.apply(this,{items:[{xtype:'form',bodyPadding:20,defaults:{labelWidth:125,anchor:'95%',margin:'0 0 10 0'},items:[{xtype:'textfield',fieldLabel:'Name',name:'job_name',allowBlank:!1,maxLength:40},{xtype:'radiogroup',fieldLabel:'Type',cls:'x-check-group-alt',name:'job_type',items:[{boxLabel:'Coadd Images',inputValue:'coadd',checked:!0},{boxLabel:'Single Epoch',inputValue:'single',reference:'rdSingleEpoch',disabled:!0}]},{xtype:'numberfield',fieldLabel:'X Size (arcsec)',value:60,name:'xsize',hideTrigger:!0},{xtype:'numberfield',fieldLabel:'Y Size (arcsec)',value:60,name:'ysize',hideTrigger:!0},{xtype:'combobox',reference:'CmbReleaseTag',name:'tag',fieldLabel:'Release TAG',emptyText:'Release tag for coadd cutouts',valueField:'name',displayField:'displayName',minChars:0,queryMode:'local',editable:!0,bind:{store:'{tags}',disabled:'{rdSingleEpoch.checked}'}},{xtype:'checkboxgroup',fieldLabel:'Filters',cls:'x-check-group-alt',reference:'cbgBands',items:[{boxLabel:'g',name:'band',inputValue:'g'},{boxLabel:'r',name:'band',inputValue:'r'},{boxLabel:'i',name:'band',inputValue:'i'},{boxLabel:'z',name:'band',inputValue:'z'},{boxLabel:'Y',name:'band',inputValue:'Y'},{boxLabel:'All',name:'band-all',reference:'cbAllBands',listeners:{change:'onCheckAllBands'}}],bind:{hidden:'{!rdSingleEpoch.checked}',disabled:'{!rdSingleEpoch.checked}'}},{xtype:'checkbox',boxLabel:'Exclude blacklisted ccds',name:'no_blacklist',inputValue:!0,bind:{hidden:'{!rdSingleEpoch.checked}',disabled:'{!rdSingleEpoch.checked}'}},{xtype:'radiogroup',fieldLabel:'Image Formats',cls:'x-check-group-alt',name:'image_formats',items:[{boxLabel:'only PNGs (fast)',inputValue:'png',checked:!0},{boxLabel:'PNGs and Fits',inputValue:'png,fits'}]},{xtype:'fieldset',title:'Labels',defaultType:'textfield',defaults:{anchor:'100%'},items:[{xtype:'radiogroup',fieldLabel:'Position',cls:'x-check-group-alt',name:'label_position',items:[{boxLabel:'Inside',inputValue:'inside',checked:!0},{boxLabel:'Outside',inputValue:'outside'}]},{xtype:'colorfield',fieldLabel:'Font Color',name:'label_color',value:'#2eadf5'},{xtype:'numberfield',fieldLabel:'Font Size',name:'label_font_size',value:10,minValue:6,maxValue:18},{xtype:'tagfield',name:'label_properties',fieldLabel:'Properties',displayField:'display_name',valueField:'column_name',queryMode:'local',allowBlank:!0,growMax:60,bind:{store:'{auxcontents}'}}]},{xtype:'textarea',labelAlign:'top',fieldLabel:'Comment',name:'cjb_description',maxLength:1024}]}],buttons:['->',{text:'Cancel',handler:'onCancelAddJob'},{text:'Submit',ui:'soft-green',handler:'onSubmitJob'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},afterRender:function(){console.log('afterRender');var a=this,d=a.getViewModel(),c=a.lookup('rdSingleEpoch'),b=a.lookup('CmbReleaseTag');Ext.window.Window.prototype.afterRender.apply(this,arguments);if(d.get('enableRelease')&&!c.checked){b.setVisible(!0)}else {b.setVisible(!1)}},setCurrentProduct:function(b){var a=this;a.currentProduct=b;a.fireEvent('changeproduct',b,a)},setCurrentSetting:function(b){var a=this;a.currentSetting=b;a.fireEvent('changesetting',b,a)}},0,['target-cutoutjob-form'],['component','box','container','panel','window','target-cutoutjob-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-cutoutjob-form':!0},['widget.target-cutoutjob-form'],0,[Target.view.settings,'CutoutJobForm'],0);Ext.cmd.derive('Target.view.settings.Cutout',Ext.panel.Panel,{controller:'cutout',viewModel:'cutout',config:{currentCatalog:null,currentSetting:null},initComponent:function(){var a=this;Ext.apply(this,{bodyPadding:20,layout:{type:'vbox',align:'stretch'},items:[{xtype:'targets-cutout-jobs',reference:'cutoutJobsGrid',flex:1,bind:{store:'{cutoutjobs}',selection:'{cutoutJob}'},tbar:[{text:'Create Cutout',iconCls:'x-fa fa-picture-o',ui:'soft-green',tooltip:'Create cutouts for this catalog',handler:'onClickCreate'},{text:'Download',iconCls:'x-fa fa-download ',tooltip:'Download list of files',handler:'onClickDownload',disabled:!0,bind:{}},{tooltip:'Remove Cutout Job',iconCls:'x-fa fa-trash',ui:'soft-red',handler:'onRemoveCutoutJob',disabled:!0,bind:{disabled:'{!cutoutJobsGrid.selection}'}}]}],buttons:[{text:'Finish',ui:'soft-green',scope:a,handler:function(){this.fireEvent('finish',this)}}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(b){var a=this,c=a.getViewModel();a.currentCatalog=b;c.set('currentCatalog',b);a.fireEvent('changecatalog',b,a)},setCurrentSetting:function(b){var a=this,c=a.getViewModel();a.currentSetting=b;a.getViewModel().set('currentSetting',b)}},0,['targets-cutout'],['component','box','container','panel','targets-cutout'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-cutout':!0},['widget.targets-cutout'],0,[Target.view.settings,'Cutout'],0);Ext.cmd.derive('Target.view.wizard.Wizard',Ext.tab.Panel,{controller:'wizard',viewModel:'wizard',defaultListenerScope:!0,config:{product:null,currentSetting:null,currentCatalog:null},ui:'navigation',tabPosition:'left',tabRotation:0,defaults:{textAlign:'left'},items:[{id:'card-1',xtype:'targets-columns',title:'Columns',iconCls:'x-fa fa-list'},{id:'card-2',xtype:'targets-association',title:'Association',iconCls:'x-fa fa-columns',disabled:!0},{id:'card-4',xtype:'targets-system-members',title:'System Members',iconCls:'x-fa fa-dot-circle-o'},{id:'card-5',xtype:'targets-permission',title:'Permission',iconCls:'x-fa fa-lock',disabled:!0}],setProduct:function(a){var b=this,c=b.getViewModel();this.product=a;c.set('product',a)},setCurrentCatalog:function(b){var a=this;a.currentCatalog=b;a.getViewModel().set('currentCatalog',b);a.enableTabsByPermission()},enableTabsByPermission:function(){var a=this,c=a.getViewModel(),b=c.get('currentCatalog');if(b.get('id')>0&&b.get('is_owner')){a.down('targets-association').enable();a.down('targets-permission').enable();a.down('targets-system-members').enable()}else {a.down('targets-association').disable();a.down('targets-permission').disable();a.down('targets-system-members').disable()}if(b.get('pcl_is_system')){a.down('targets-system-members').enable()}else {a.down('targets-system-members').disable()}}},0,['targets-wizard'],['component','box','container','panel','tabpanel','targets-wizard'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tabpanel':!0,'targets-wizard':!0},['widget.targets-wizard'],0,[Target.view.wizard,'Wizard'],0);Ext.cmd.derive('Target.view.objects.FiltersController',Ext.app.ViewController,{listen:{component:{'target-filters-window':{changecatalog:'onChangeCatalog'}},store:{'#productContents':{load:'onLoadContents'},'#filterConditions':{load:'onLoadFilterConditions'}}},onChangeCatalog:function(b){var c=this,a=c.getViewModel(),f=a.getStore('filters'),d=a.getStore('filterSets'),e=a.getStore('contents');f.loadData([]);c.clearInputs();d.filter('product',b.get('id'));e.addFilter({property:'pcn_product_id',value:b.get('id')})},onLoadContents:function(b){var a,c;a=Ext.create('Target.model.CatalogContent',{id:null,column_name:'_meta_rating',display_name:'Rating'});b.add(a)},onLoadFilterConditions:function(){var a=this,g=a.getViewModel(),e=a.getReferences(),f=g.getStore('filters'),d=[],b=!1,c;f.each(function(a){if(a.data.fcd_property_name=='_meta_reject'){b=!0;c=a.data.fcd_value}d.push(a.data)});a.arrayFilterConditions=d;e.chkRejected.setExpanded(b);if(b){e.chkRejected.query('radio').forEach(function(a){if(a.getReference()=='r'+c){a.setValue(!0)}})}a.viewRenderUIStatus()},onAddFilter:function(){var e=this,a=e.getViewModel(),b=a.get('content'),f=a.get('operator'),h=a.get('value'),c=a.get('filterSet'),g=a.getStore('filters'),d;if(!b){return}d=Ext.create('Target.model.FilterCondition',{fcd_property:b.get('id'),fcd_property_name:b.get('column_name'),fcd_operation:f.get('name'),fcd_value:h,property_display_name:b.get('display_name'),operator_display_name:f.get('display_name')});if(c&&c.get('id')>0){d.set('filterset',c.get('id'))}g.add(d);e.clearInputs();e.viewRenderUIStatus()},onRemoveFilterClick:function(f,d,c,e,g,a){var b=this;Ext.MessageBox.confirm('','The Filter will be removed. Do you want continue?',function(h){if(h==='yes'){a.drop();b.viewRenderUIStatus()}},this)},viewRenderUIStatus:function(){this.getView().renderUIStatus()},onSelectProperty:function(g,a){var d=this,e=d.getViewModel(),b=e.get('filterSet'),f=e.getStore('filters'),c;if(a.get('column_name')==='_meta_reject'){c=Ext.create('Target.model.FilterCondition',{fcd_property:a.get('id'),fcd_property_name:a.get('column_name'),fcd_operation:'=',fcd_value:!0,property_display_name:a.get('display_name'),operator_display_name:'is equal to'});if(b&&b.get('id')>0){c.set('filterset',b.get('id'))}f.add(c);d.clearInputs();d.viewRenderUIStatus()}},onSelectOperator:function(b,a){},onCancelFilter:function(){this.getView().close()},onSaveFilterSet:function(){this.saveFilterSet()},saveFilterSet:function(a){var g=this,m,l=g.getReferences(),c=g.getViewModel(),k=c.get('currentCatalog'),b=c.getStore('filters'),h=c.getStore('filterSets'),e=c.get('filterSet'),f=g.getView(),i=!1,j=e&&e.get('id')>0,d=l.cmbName.getValue();a=a||function(){};if(d!==''){h.each(function(b){if(b.data.fst_name==d&&(!j||b.data.id!=e.get('id'))){i=!0}});if(i){return Ext.MessageBox.alert('','This filter name already exists',function(){a(!0)})}f.setLoading(!0);if(j){doSave(e,!0)}else {doSave(Ext.create('Target.model.FilterSet',{product:k.get('id'),fst_name:d}))}}else {a()}function doSave(e,i){e.set('fst_name',d);e.save({callback:function(l,j,k){f.setLoading(!1);if(k){var d=Ext.decode(j.getResponse().responseText);e.set(d);if(!i){c.set('filterSet',e);b.each(function(b){b.set('filterset',e.get('id'))},g);h.add(d)}if(b.updating>0||b.removed.length>0||b.getNewRecords().length>0){f.setLoading(!0);b.save({callback:function(){f.setLoading(!1);a()}})}else {a()}}else {a()}}})}},updateFilterSet:function(b){var a=this.getViewModel().getStore('filters');a.sync({callback:b})},onDeleteFilterSet:function(){var a=this,e=a.getReferences(),c=a.getViewModel(),d=c.getStore('filters'),b=c.get('filterSet'),f=c.getStore('filterSets'),g=a.getView();Ext.MessageBox.confirm('','The Filter will be deleted. Do you want continue?',function(a){if(a==='yes'){doRemove()}},this);function doRemove(){if(b&&b.get('id')>0){b.erase({callback:function(c,h,b){if(b){e.cmbName.clearValue();d.loadData([]);f.remove(c);e.chkRejected.setExpanded(!1);d.loadData([]);a.viewRenderUIStatus();g.fireEvent('disapplyfilters',a)}}})}}},onApplyFilter:function(){var a=this,j=a.getView(),b=a.getViewModel(),e=a.getReferences(),f=b.get('currentCatalog'),h=b.get('filterSet'),g=b.getStore('filterSets'),c=b.getStore('filters'),d=e.cmbName.getValue(),i;if(c.count()==0){return}if(d){if(a.filterConditionsIsChanged()){a.saveFilterSet(function(b){if(!b){setTimeout(function(){a.applyFilters()},10)}})}else {a.applyFilters()}}else {a.applyFilters()}},onCreateFilterset:function(d,b){var a=this,c=a.getView();c.setLoading(!0);b.each(function(a){a.set('filterset',d.get('id'))},a);b.sync({callback:function(){a.applyFilters();c.setLoading(!1)}})},applyFilters:function(){var d=this,e=d.getView(),f=d.getViewModel(),c=d.getViewModel().getStore('filters'),b=f.get('filterSet'),a={};if(c.count()>0){if(b){a.id=b.get('id');a.fst_name=b.get('fst_name');a.modelFilterSet=b.get('product')>0?b:null}else {a.fst_name='Unsaved filter';a.modelFilterSet=null}a.conditions=[];a.storeFilters=c;c.getData().each(function(b){if(typeof b.data.id=='string'){delete b.data.id}a.conditions.push(b.data)});e.fireEvent('applyfilters',a)}e.close()},filterConditionsIsChanged:function(){var a=this,h=a.getView(),f=a.getViewModel(),g=a.getReferences(),c=f.getStore('filters'),b=f.get('filterSet'),d=g.cmbName.getValue(),e=!1;if(!b&&d){return !0}if(b&&d!==b.get('fst_name')){return !0}if(!a.arrayFilterConditions){return !1}if(c.count()!=a.arrayFilterConditions.length){return !0}c.each(function(d,b){var c=d.data;if(c.id!=a.arrayFilterConditions[b].id){e=!0}});return e},clearInputs:function(){var e=this,a=e.getReferences(),c=a.cmbProperty,b=a.cmbOperator,d=a.txtValue;c.reset();b.reset();d.reset()},onFilterWindow_SelectFilterSet:function(d,c){var e=this,b=c.get('id'),a=this.getViewModel().getStore('filters');this.arrayFilterConditions=null;if(b>0&&!a.isSyncing){a.filter('filterset',b);a.load()}},onFilterWindow_ChangeFilterSetValue:function(a,b){this.viewRenderUIStatus()},onFilterWindow_ClearFilterSet:function(){var a=this,d=a.getReferences(),b=a.getViewModel(),c=b.getStore('filters'),e=b.get('filterSet'),f=a.getView();d.cmbName.clearValue();c.loadData([]);a.viewRenderUIStatus()},onRemoveFilter:function(){var b=this,d=b.getViewModel(),c=d.get('filterSet'),a=b.getView();if(c&&a.activeAppliedFilter&&c.id==a.activeAppliedFilter.id){b.onFilterWindow_ClearFilterSet()}a.activeAppliedFilter=null;a.fireEvent('disapplyfilters',this);b.viewRenderUIStatus()},onFilterWindow_CheckboxRejectedChange:function(c){var d=this,e=d.getViewModel(),b=e.getStore('filters'),a;if(c.collapsed){a=b.find('fcd_property_name','_meta_reject');if(a>-1){b.removeAt(a)}c.query('radio').forEach(function(a){a.setValue(!1)})}},onFilterWindow_RadioRejectedChange:function(f){var e=this,h=e.getView(),g=e.getViewModel(),c=g.get('filterSet'),b=g.getStore('filters'),a,d;if(f.getValue()){d=b.find('fcd_property_name','_meta_reject');if(d>-1){b.removeAt(d)}a=Ext.create('Target.model.FilterCondition',{fcd_property:NaN,fcd_property_name:'_meta_reject',fcd_operation:'=',fcd_value:f.getReference()=='rtrue'?'true':'false'});if(c&&c.get('id')>0){a.set('filterset',c.get('id'))}b.add(a);setTimeout(function(){e.viewRenderUIStatus()},10)}},onFilterWindow_ButtonCopyClick:function(){var a=this,g=a.getView(),f=a.getViewModel(),e=a.getReferences(),b=a.getViewModel().getStore('filters'),c=f.get('filterSet'),d=[];if(b.count()>0&&c){b.getData().each(function(a){delete a.data.id;if(a.data.property_name=='_meta_rating'||a.data.property_name=='_meta_reject'){a.data.fcd_property=NaN}d.push(a.data)});a.onFilterWindow_ClearFilterSet();e.cmbName.setValue('Copy of '+c.get('fst_name'));b.setData(d);a.onLoadFilterConditions()}}},0,0,0,0,['controller.filters'],0,[Target.view.objects,'FiltersController'],0);Ext.cmd.derive('Target.view.objects.FiltersModel',Ext.app.ViewModel,{stores:{contents:{type:'product-display-contents',storeId:'productContents',autoLoad:!1},filterSets:{type:'target-filtersets',autoLoad:!1},filters:{type:'target-filter-conditions',storeId:'filterConditions',autoLoad:!1},operators:{fields:['name','display_name','type'],data:[{name:'=',display_name:'is equal to',type:'text'},{name:'!=',display_name:'is not equal to',type:'text'},{name:'>',display_name:'is greater than',type:'text'},{name:'>=',display_name:'is greater than or equal to',type:'text'},{name:'<',display_name:'is less than',type:'text'},{name:'<=',display_name:'is less than or equal to',type:'text'}]}},data:{operator:null,value:null,haveFilters:!1,filterName:null},links:{currentCatalog:{type:'Target.model.Catalog',create:!0},filterSet:{type:'Target.model.FilterSet',create:!0},content:{type:'Target.model.CatalogContent',create:!0}}},0,0,0,0,['viewmodel.filters'],0,[Target.view.objects,'FiltersModel'],0);Ext.cmd.derive('Target.view.objects.FiltersWindow',Ext.window.Window,{title:'Filters',width:600,height:400,modal:!0,autoShow:!0,controller:'filters',viewModel:'filters',closeAction:'destroy',bodyPadding:'6 20 6 20',layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null},items:[{xtype:'form',reference:'filterForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'container',items:[{xtype:'toolbar',padding:'0 0 8 0',items:[{xtype:'button',reference:'btnClear',iconCls:'x-fa fa-file-o',tooltip:'New',handler:'onFilterWindow_ClearFilterSet'},{xtype:'button',reference:'btnSave',iconCls:'x-fa fa-floppy-o',tooltip:'Save',handler:'onSaveFilterSet'},{xtype:'button',reference:'btnCopy',iconCls:'x-fa fa-files-o',handler:'onFilterWindow_ButtonCopyClick',tooltip:'Copy'},{xtype:'tbseparator'},{xtype:'button',reference:'btnDelete',iconCls:'x-fa fa-trash',tooltip:'Delete',handler:'onDeleteFilterSet'}]},{xtype:'combobox',reference:'cmbName',displayField:'fst_name',emptyText:'Unamed filter',publishes:'id',bind:{store:'{filterSets}',selection:'{filterSet}'},listeners:{select:'onFilterWindow_SelectFilterSet',keyup:'onFilterWindow_ChangeFilterSetValue'},enableKeyEvents:!0,minChars:1000,editable:!0,width:558},{xtype:'fieldset',checkboxToggle:!0,title:'Rejected',reference:'chkRejected',listeners:{collapse:'onFilterWindow_CheckboxRejectedChange',expand:'onFilterWindow_CheckboxRejectedChange'},items:[{layout:'hbox',items:[{xtype:'radio',boxLabel:'Yes',reference:'rtrue',name:'rejectGroup',checked:!1,listeners:{change:'onFilterWindow_RadioRejectedChange'}},{xtype:'radio',padding:'0 0 0 40',boxLabel:'No',reference:'rfalse',name:'rejectGroup',checked:!1,listeners:{change:'onFilterWindow_RadioRejectedChange'}}]}]}]},{xtype:'fieldset',title:'Add condition',items:[{xtype:'fieldcontainer',layout:'hbox',defaults:{flex:1},items:[{xtype:'combobox',emptyText:'Property',itemId:'cmbProperty',reference:'cmbProperty',publishes:'id',displayField:'display_name',bind:{store:'{contents}',selection:'{content}'},listeners:{select:'onSelectProperty'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,margin:'0 5 0 0'},{xtype:'combobox',itemId:'cmbOperator',reference:'cmbOperator',publishes:'name',displayField:'display_name',emptyText:'Operator',bind:{store:'{operators}',selection:'{operator}'},listeners:{select:'onSelectOperator'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,forceSelection:!0,margin:'0 5 0 0'},{xtype:'textfield',reference:'txtValue',emptyText:'Value',bind:{value:'{value}'},margin:'0 5 0 0',allowBlank:!1},{xtype:'button',iconCls:'x-fa fa-plus',width:40,flex:!1,handler:'onAddFilter'}]}]}]},{xtype:'grid',reference:'gridFilters',layout:'fit',border:!0,framed:!0,hideHeaders:!0,flex:1,bind:{store:'{filters}'},viewConfig:{markDirty:!1,getRowClass:function(a,b){if(a.get('fcd_property_name')=='_meta_reject'){return 'hide-row'}return 'row'}},columns:[{text:'Property',dataIndex:'property_display_name',flex:1},{text:'Operator',dataIndex:'operator_display_name',flex:1},{text:'Value',dataIndex:'fcd_value',flex:1},{xtype:'actioncolumn',width:60,sortable:!1,menuDisabled:!0,align:'center',items:[{iconCls:'x-fa fa-minus-circle color-soft-red',tooltip:'Remove condition',handler:'onRemoveFilterClick'}]}]}],buttons:[{text:'Cancel',handler:'onCancelFilter'},{text:'Reset',margin:'0 10 0 20',reference:'btnRemove',handler:'onRemoveFilter',tooltip:'Reset applied filter'},{text:'Apply',reference:'btnApply',ui:'soft-green',handler:'onApplyFilter',tooltip:'Apply defined filter'}],setCurrentCatalog:function(a){var b=this;if(a&&a.get('id')>0){b.currentCatalog=a;b.getViewModel().set('currentCatalog',a);b.fireEvent('changecatalog',a)}},setActiveFilter:function(a){var b=this,c=b.getViewModel(),d=c.getStore('filters');if(a){if(a.modelFilterSet){c.set('filterSet',a.modelFilterSet);c.set('filterName',a.modelFilterSet.get('fst_name'))}b.activeAppliedFilter=a;d.setData(a.conditions);b.getController().onLoadFilterConditions()}b.renderUIStatus()},renderUIStatus:function(){var a=this,g=a.getViewModel(),d=g.getStore('filters'),q=g.getStore('filterSets'),b=g.get('filterSet'),r=a.lookup('btnClear'),p=a.lookup('btnSave'),o=a.lookup('btnCopy'),l=a.lookup('btnDelete'),n=a.lookup('btnApply'),m=a.lookup('btnRemove'),k=a.lookup('chkRejected'),j=a.lookup('cmbName'),f,c,h,e,i;f=!1;d.each(function(a){if(a.get('fcd_property_name')=='_meta_reject'){f=!0}});k.setExpanded(f);c=d.count()>0;h=d.getModifiedRecords().length>0||d.getRemovedRecords().length>0;e=j.getValue()?!0:!1;i=b&&j.getValue()!=b.get('fst_name');p.setDisabled(!(c&&e&&(!b||b&&i||b&&h)));o.setDisabled(!(b&&b.get('fst_name')!=''&&e&&c));l.setDisabled(!(b&&b.get('fst_name')!=''));n.setDisabled(!c);m.setDisabled(!a.activeAppliedFilter)}},0,['target-filters-window'],['component','box','container','panel','window','target-filters-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-filters-window':!0},['widget.target-filters-window'],0,[Target.view.objects,'FiltersWindow'],0);Ext.cmd.derive('Target.view.objects.SaveCatalogController',Ext.app.ViewController,{listen:{component:{'target-savecatalog':{changecatalog:'onChangeCatalog'}}},onChangeCatalog:function(d,b){var c=this,a=c.getViewModel(),e=a.getStore('filterSets');a.set('activeFilter',b)},onSaveCatalog:function(){var c=this,f=c.getViewModel(),g=f.get('currentCatalog'),e=c.lookup('SaveAsForm').getForm(),b=f.get('activeFilter'),a,d;if(b&&b.id>0){d=b.id}if(e.isValid()){a=e.getValues();Ext.Ajax.request({url:'/dri/api/productsaveas/',scope:this,params:{'product':g.get('id'),'name':a.name,'filter':d,'description':a.description,'columns':a.columns},success:function(a){c.onCancel();Ext.MessageBox.alert('','The job will run in the background and you will be notified when it is finished.');Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - save_as')},failure:function(a,c){var b=a.status+' '+a.statusText;Ext.Msg.show({title:'Sorry',msg:b,icon:Ext.Msg.ERROR,buttons:Ext.Msg.OK})}})}},onCancel:function(){this.getView().close()}},0,0,0,0,['controller.savecatalog'],0,[Target.view.objects,'SaveCatalogController'],0);Ext.cmd.derive('Target.view.objects.SaveCatalogModel',Ext.app.ViewModel,{stores:{filterSets:{type:'target-filtersets',autoLoad:!1},contents:{type:'product-content',autoLoad:!1}},links:{currentCatalog:{type:'Target.model.Catalog',create:!0},filterSet:{type:'Target.model.FilterSet',create:!0}}},0,0,0,0,['viewmodel.savecatalog'],0,[Target.view.objects,'SaveCatalogModel'],0);Ext.cmd.derive('Target.view.objects.SaveCatalogWindow',Ext.window.Window,{title:'Save As',width:450,height:300,modal:!0,autoShow:!0,controller:'savecatalog',viewModel:'savecatalog',closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'form',reference:'SaveAsForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{labelStyle:'font-weight:bold'},items:[{xtype:'textfield',fieldLabel:'Name',name:'name',allowBlank:!1,maxLength:40,minLength:3,regex:/^[a-z0-9-_\s]+$/i,regexText:"Please use only letters and numbers separated by spaces ' ', minus sign '-' or underscore '_'."},{xtype:'textarea',fieldLabel:'Comment',name:'description',maxLength:2048}]}],buttons:[{text:'Cancel',handler:'onCancel'},{text:'Save',iconCls:'x-fa fa-floppy-o',ui:'soft-green',handler:'onSaveCatalog'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(a,c){var b=this;if(a&&a.get('id')>0){b.currentCatalog=a;b.getViewModel().set('currentCatalog',a);b.fireEvent('changecatalog',a,c)}}},0,['target-savecatalog'],['component','box','container','panel','window','target-savecatalog'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-savecatalog':!0},['widget.target-savecatalog'],0,[Target.view.objects,'SaveCatalogWindow'],0);Ext.cmd.derive('Target.view.objects.DownloadWindow',Ext.window.Window,{title:'Download',width:300,height:400,modal:!0,autoShow:!0,closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null,filter:null},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'form',reference:'DownloadForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100},items:[{xtype:'fieldset',title:'Table',defaults:{anchor:'100%'},items:[{xtype:'checkboxgroup',columns:1,items:[{boxLabel:'CSV',name:'table_format',inputValue:'csv',checked:!0},{boxLabel:'FITS',name:'table_format',inputValue:'fits'}]}]},{xtype:'combobox',itemId:'cmbCutoutJob',name:'cutouts',fieldLabel:'Mosaic',emptyText:'Choose Mosaic',displayField:'cjb_display_name',valueField:'id',store:{type:'cutoutjobs'},editable:!1,disabled:!0},{xtype:'fieldset',title:'Report',defaults:{anchor:'100%'},items:[{xtype:'checkboxgroup',disabled:!0,columns:1,items:[{boxLabel:'PDF',name:'report_format',inputValue:'pdf'}]}],margin:'10 0 0 0'}]}],buttons:[{text:'Cancel',scope:a,handler:'onCancel'},{text:'Download',scope:a,iconCls:'x-fa fa-download',ui:'soft-green',handler:'onDownload'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(a){var d=this,b=d.down('#cmbCutoutJob'),c=b.getStore();if(a&&a.get('id')>0){d.currentCatalog=a;c.addFilter([{property:'cjb_product',value:a.get('id')},{property:'cjb_status',value:'ok'}]);c.load({callback:function(){b.enable()}})}},onDownload:function(){var c=this,h=c.getCurrentCatalog(),d=c.getFilter(),g=c.down('form').getForm(),a,b=[],e=null,i=[],f=null;if(g.isValid()){a=g.getValues();if(a.table_format){b=a.table_format;if(Array.isArray(b)){b=b.join()}}if(a.cutouts){e=a.cutouts}if(a.report_format){i=a.report_format}if(d>0){f=d}Ext.Ajax.request({url:'/dri/api/productexport/',scope:this,params:{'product':h.get('id'),'filetypes':b,'cutout':e,'filter':f},success:function(a){c.onCancel();Ext.MessageBox.alert('','The job will run in the background and you will be notified when it is finished.');Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - download_catalogs')},failure:function(a,c){var b=a.status+' '+a.statusText;Ext.Msg.show({title:'Sorry',msg:b,icon:Ext.Msg.ERROR,buttons:Ext.Msg.OK})}})}},onCancel:function(){this.close()}},0,['target-download'],['component','box','container','panel','window','target-download'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download':!0},['widget.target-download'],0,[Target.view.objects,'DownloadWindow'],0);Ext.cmd.derive('Target.view.objects.CutoutJobDetailWindow',Ext.window.Window,{title:'Mosaic',modal:!0,autoShow:!0,closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{cutoutjob:null},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'form',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{labelWidth:100,readOnly:!0},items:[{xtype:'textfield',fieldLabel:'Release TAG',name:'cjb_tag'},{xtype:'textfield',fieldLabel:'Type',name:'cjb_type'},{xtype:'textfield',fieldLabel:'Owner',name:'owner'},{xtype:'datefield',fieldLabel:'Date',name:'cjb_start_time'},{xtype:'textfield',fieldLabel:'Execution Time',name:'execution_time'},{xtype:'textfield',fieldLabel:'Files',name:'count_files'},{xtype:'textfield',fieldLabel:'Size',name:'file_sizes'},{xtype:'textarea',labelAlign:'top',fieldLabel:'Comment',name:'cjb_description',maxLength:1024}]}],buttons:[{text:'Delete',tooltip:'Delete this Mosaic and remove all files',scope:a,iconCls:'x-fa fa-trash',ui:'soft-red',handler:'onDelete'},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setCutoutjob:function(a){var b=this,c=b.down('form').getForm();if(a&&a.get('id')>0){b.cutoutjob=a;c.loadRecord(b.cutoutjob)}},onDelete:function(){var a=this;Ext.MessageBox.confirm('','The mosaic and all its files will be removed. Do you want continue?',a.deleteCutoutJob,this)},deleteCutoutJob:function(c){var a=this,b=a.getCutoutjob();if(c==='no'){return !1}a.fireEvent('deletecutoutjob',b,a)},onCancel:function(){this.close()}},0,['target-cutoutjob-detail'],['component','box','container','panel','window','target-cutoutjob-detail'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-cutoutjob-detail':!0},['widget.target-cutoutjob-detail'],0,[Target.view.objects,'CutoutJobDetailWindow'],0);Ext.cmd.derive('Target.view.objects.ObjectsController',Ext.app.ViewController,{listen:{component:{'targets-objects-panel':{beforeLoadPanel:'onBeforeLoadPanel',beforeloadcatalog:'loadCurrentSetting',beforedeactivate:'onBeforeDeactivate'}},store:{'#Catalogs':{load:'onLoadCatalogs'},'#objects':{load:'onLoadObjects',update:'onUpdateObject'}}},winAlertSetting:null,winFilters:null,winSaveAs:null,wizard:null,winDownload:null,winCutout:null,winCutoutjobInfo:null,activeFilter:null,winComment:null,onBeforeLoadPanel:function(d,b){var f=this,g=b.getViewModel(),a=g.getStore('catalogs'),e=f.getReferences(),c=e.targetsObjectsGrid;c.setLoading(!0);a.removeAll();a.clearFilter(!0);a.filter([{property:'id',value:d}])},onLoadCatalogs:function(d){var a=this,e=a.getViewModel(),b,g=a.getReferences(),h=g.targetsObjectsGrid,i=e.getStore('filterSets'),f=a.lookup('cmbCutoutJob'),c=f.getStore();if(d.count()===1){b=d.first();e.set('currentCatalog',b);a.loadCurrentSetting();c.addFilter([{property:'cjb_product',value:b.get('id')},{property:'cjb_status',value:'ok'}]);c.load()}},loadCurrentSetting:function(){var a=this,b=a.getViewModel(),c=b.getStore('currentSettings'),d=b.get('currentCatalog'),e=a.getReferences(),f=e.targetsObjectsGrid;c.addFilter([{property:'cst_product',value:d.get('id')}]);c.load({callback:function(c,e,d){if(d&&c.length==1){b.set('currentSetting',c[0]);a.configurePanelBySettings()}else {if(d&&c.length>1){b.set('currentSetting',c[c.length-1]);a.configurePanelBySettings()}else {a.configurePanelWithoutSettings()}}}})},configurePanelBySettings:function(){var c=this,d=c.getViewModel(),a=d.getStore('displayContents'),b=d.get('currentSetting');a.addFilter([{'property':'pcn_product_id',value:b.get('cst_product')},{'property':'pca_setting',value:b.get('cst_setting')}]);a.load({callback:function(){c.onLoadProductContent(a)}})},configurePanelWithoutSettings:function(){var b=this,c=b.getViewModel(),d=c.get('currentCatalog'),a=c.getStore('displayContents');a.addFilter([{'property':'pcn_product_id',value:d.get('id')}]);a.load({callback:function(){b.onLoadProductContent(a)}})},onLoadProductContent:function(a){var b=this,d=b.getReferences(),c=d.targetsObjectsGrid;if(a.check_ucds()){c.reconfigureGrid(a)}else {if(!a.check_ucds()){Ext.MessageBox.show({header:!1,closable:!1,msg:'It is necessary to make association for property ID, RA and Dec.',buttons:Ext.MessageBox.OKCANCEL,fn:function(c){if(c==='ok'){b.showAssociation()}else {b.redirectTo('home')}}})}}},reloadAssociation:function(){var a=this;a.loadCurrentSetting()},onLoadAssociation:function(a){var b=this,d=b.getReferences(),c=d.targetsObjectsGrid;if(a.count()>0){c.setCatalogClassColumns(a)}else {if(!this.winAssociation){b.showAssociation()}}},onGridObjectsReady:function(){var b=this,c=this.getViewModel(),a=c.get('currentCatalog');b.loadObjects(a.get('id'))},loadObjects:function(c,a){var f=this,b=f.getViewModel(),g=b.get('currentCatalog'),d=b.getStore('objects'),h=f.getReferences(),i=h.targetsObjectsGrid,e=[];if(!c){c=g.get('id')}if(c>0){b.set('haveFilter',!1);d.clearFilter();d.getProxy().setExtraParam('product',c);if(!a){a=b.get('filters')}if(a&&a.count()>0){a.each(function(d){if(d.get('filterset')>0){b.set('haveFilter',!0)}e.push({property:d.get('fcd_property_name'),operator:d.get('fcd_operation'),value:d.get('fcd_value')})},f);if(e.length>0){d.addFilter(e)}}d.load()}},onLoadObjects:function(j,g,d,e){var a=this,b=a.getViewModel(),h=a.getReferences(),f=h.targetsPreviewPanel,c=a.lookup('targetsObjectsGrid');f.clear();c.setLoading(!1);if(!d){a.clearObjects();var i=e.getError();Ext.MessageBox.show({msg:'Sorry there was an error, and it was not possible to list the objects.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})}else {if(g.length>0){b.set('haveResults',!0)}else {b.set('haveResults',!1)}}},clearObjects:function(){var b=this.getViewModel(),a=b.getStore('objects');a.removeAll(!0);a.clearFilter(!0)},reloadObjects:function(){var a=this,c=a.getViewModel(),b=c.get('catalog');a.clearObjects();a.loadObjects(b)},onSelectObject:function(h,a){var b=this,g=b.getView(),c=g.getViewModel(),f=b.getReferences(),e=f.targetsPreviewPanel,d=c.get('currentCatalog');c.set('currentRecord',a);e.setCurrentRecord(a,d)},onUpdateObject:function(c,b,d,a){if(a){if(a.indexOf('_meta_reject')>=0){this.onRejectTarget(b,c)}if(a.indexOf('_meta_rating')>=0){this.onRatingTarget(b,c)}}},onRejectTarget:function(a,d){var e=this,c=e.getView().down('targets-objects-grid'),b;c.setLoading('Saving...');if(!a.get('_meta_reject_id')){b=Ext.create('Target.model.Reject',{'catalog_id':a.get('_meta_catalog_id'),'object_id':a.get('_meta_id'),'reject':!0});b.save({callback:function(g,b,e){if(e){var f=Ext.decode(b.getResponse().responseText);a.set('_meta_reject_id',f.id);d.commitChanges();c.setLoading(!1)}}})}else {b=Ext.create('Target.model.Reject',{'id':a.get('_meta_reject_id')});b.erase({callback:function(e,f,b){if(b){a.set('_meta_reject_id',null);d.commitChanges();c.setLoading(!1)}}})}},onRatingTarget:function(a,d){var e=this,c=e.getView().down('targets-objects-grid'),b;c.setLoading('Saving...');if(a.get('_meta_rating_id')>0){b=Ext.create('Target.model.Rating',{'id':a.get('_meta_rating_id')});if(a.get('_meta_rating')>0){b.set('rating',a.get('_meta_rating'));b.save({callback:function(g,b,e){if(e){var f=Ext.decode(b.getResponse().responseText);a.set('_meta_rating_id',f.id);d.commitChanges();c.setLoading(!1)}}})}else {b.erase({callback:function(e,f,b){if(b){a.set('_meta_rating_id',null);d.commitChanges();c.setLoading(!1)}}})}}else {b=Ext.create('Target.model.Rating',{'catalog_id':a.get('_meta_catalog_id'),'object_id':a.get('_meta_id'),'rating':a.get('_meta_rating')});b.save({callback:function(g,b,e){if(e){var f=Ext.decode(b.getResponse().responseText);a.set('_meta_rating_id',f.id);d.commitChanges();c.setLoading(!1)}}})}},onClickSettings:function(){var a=this;a.showWizard()},onChangeInObjects:function(){var a=this,b=a.getViewModel(),d=b.getStore('objects'),c=b.get('currentRecord'),e=a.lookup('targetsObjectsGrid');d.load({scope:this,callback:function(){e.selModel.select(c,!1)}})},showWizard:function(){var a=this,b=a.getViewModel(),e=b.get('catalog'),d=b.get('currentCatalog'),c=b.get('currentSetting');a.wizard=Ext.create('Ext.window.Window',{title:'Settings',layout:'fit',closable:!0,closeAction:'destroy',width:880,height:500,modal:!0,items:[{xtype:'targets-wizard',product:e,listeners:{scope:a,finish:'onFinishWizard',close:'onFinishWizard'}}]});if(c.get('id')>0){a.wizard.down('targets-wizard').setCurrentSetting(c)}a.wizard.down('targets-wizard').setCurrentCatalog(d);a.wizard.show()},onFinishWizard:function(){this.wizard.close();this.loadCurrentSetting()},showAssociation:function(){var a=this,b=a.getViewModel().get('currentCatalog');a.winAssociation=Ext.create('Ext.window.Window',{title:'Association',layout:'fit',closable:!0,closeAction:'destroy',width:800,height:620,modal:!0,items:[{xtype:'targets-association',listeners:{scope:a,finish:'onFinishAssociation',close:'onFinishAssociation',cancel:'onFinishAssociation'}}]});a.winAssociation.down('targets-association').setCatalog(b);a.winAssociation.show()},onFinishAssociation:function(){var a=this;a.onCloseAssociation();a.loadCurrentSetting()},onCloseAssociation:function(){var a=this;if(a.winAssociation){a.winAssociation.close()}},onBeforeDeactivate:function(){var a=this;if(a.winAlertSetting!==null){a.winAlertSetting.close();a.winAlertSetting=null}if(a.wizard!==null){a.wizard.close();a.wizard=null}if(a.winComment!==null){a.winComment.close();a.winComment=null}if(a.winFilters!==null){a.winFilters.close();a.winFilters=null}if(a.winSaveAs!==null){a.winSaveAs.close();a.winSaveAs=null}if(a.winDownload!==null){a.winDownload.close();a.winDownload=null}if(a.winCutout!==null){a.winCutout.close();a.winCutout=null}if(a.winCutoutjobInfo!==null){a.winCutoutjobInfo.close();a.winCutoutjobInfo=null}},onClickFilter:function(){var a=this,b=a.getViewModel(),d=b.get('filterSet'),e=b.get('filters'),f=b.getStore('objects'),c=b.get('currentCatalog');if(a.winFilters!==null){a.winFilters.close();a.winFilters=null}a.winFilters=Ext.create('Target.view.objects.FiltersWindow',{listeners:{scope:a,applyfilters:'onWindowApplyFilters',disapplyfilters:'onWindowDisapplyFilters'}});a.winFilters.setCurrentCatalog(c);a.winFilters.setActiveFilter(a.activeFilter);a.winFilters.show()},onWindowApplyFilters:function(a){var b=this,f=[],c=b.getViewModel(),e=b.lookup('txtFilterSet'),d=c.get('currentCatalog');b.activeFilter=a;e.setValue(a.fst_name);c.set('filters',a.storeFilters);b.loadObjects(d.get('id'),a.storeFilters)},onWindowDisapplyFilters:function(){var a=this,c=a.getViewModel(),d=a.lookup('txtFilterSet'),b;b=Ext.create('Target.model.FilterSet',{});d.reset();c.set('filterSet',b);c.set('filters',null);a.activeFilter=null;a.loadObjects()},onClickComment:function(){var a=this,c=a.getView(),d=c.getViewModel(),b=d.get('currentRecord');if(a.winComment!==null){a.winComment.close();a.winComment=null}if(b&&b.get('_meta_id')!==null){a.winComment=Ext.create('Ext.window.Window',{title:'Comments',iconCls:'x-fa fa-comments',layout:'fit',closeAction:'destroy',constrainHeader:!0,width:500,height:300,modal:!0,items:[{xtype:'comments-object',listeners:{scope:this,changecomments:'onChangeInObjects'}}]});a.winComment.down('comments-object').setObject(b.get('_meta_catalog_id'),b.get('_meta_id'));a.winComment.show()}},applyDisapplyFilter:function(){var a=this;a.loadObjects()},applyFilter:function(a){var c=this,b=c.getViewModel(),d=b.getStore('filterConditions');if(a&&a.get('id')>0){d.addFilter({property:'filterset',value:a.get('id')});d.load({callback:function(){b.set('filters',this);c.loadObjects()}})}else {a=Ext.create('Target.model.FilterSet',{});b.set('filterSet',a);b.set('filters',null);c.loadObjects()}},switchMosaicGrid:function(b,d){var e=this,c=e.lookup('ObjectCardPanel'),a=c.getLayout();if(d){b.setIconCls('x-fa fa-th-list');a.next()}else {b.setIconCls('x-fa fa-th-large');a.prev()}},onClickSaveAs:function(){var a=this,d=a.getViewModel(),b=d.get('currentCatalog'),c=a.activeFilter;if(a.winSaveAs!==null){a.winSaveAs.close();a.winSaveAs=null}a.winSaveAs=Ext.create('Target.view.objects.SaveCatalogWindow',{});a.winSaveAs.setCurrentCatalog(b,c);a.winSaveAs.show()},onClickCreateCutouts:function(){var a=this,c=a.getViewModel(),e=c.getStore('objects'),b=c.get('currentSetting'),d=c.get('currentCatalog');if(a.winCutout!==null){a.winCutout.close();a.winCutout=null}a.winCutout=Ext.create('Target.view.settings.CutoutJobForm',{modal:!0,objectsCount:e.getTotalCount()});a.winCutout.setCurrentProduct(d);if(b&&b.get('id')>0){a.winCutout.setCurrentSetting(b)}a.winCutout.show()},onClickDownload:function(){var a=this,d=a.getViewModel(),b=d.get('currentCatalog'),c=a.activeFilter;if(a.winDownload!==null){a.winDownload.close();a.winDownload=null}a.winDownload=Ext.create('Target.view.objects.DownloadWindow',{});a.winDownload.setCurrentCatalog(b);a.winDownload.setFilter(c.id);a.winDownload.show()},reloadCutoutJobs:function(){var a=this,d=a.getViewModel(),b=a.lookup('cmbCutoutJob'),c=b.getStore();c.load()},onSelectCutoutJob:function(e){var c=this,f=c.getViewModel(),a=e.selection,d=c.lookup('TargetMosaic'),b=f.getStore('cutouts');if(a&&a.get('id')>0){b.addFilter([{property:'cjb_cutout_job',value:a.get('id')},{property:'ctt_file_type',value:'png'}]);b.load({callback:function(){d.setCutoutJob(a,this)}})}},onClickInfoCutoutJob:function(){var a=this,c=a.lookup('cmbCutoutJob'),b=c.selection;if(b&&b.get('id')>0){if(a.winCutoutjobInfo!==null){a.winCutoutjobInfo.close();a.winCutoutjobInfo=null}a.winCutoutjobInfo=Ext.create('Target.view.objects.CutoutJobDetailWindow',{width:300,height:420,title:b.get('cjb_display_name'),listeners:{scope:a,deletecutoutjob:'onDeleteCutoutjob'}});a.winCutoutjobInfo.setCutoutjob(b);a.winCutoutjobInfo.show()}},onDeleteCutoutjob:function(f,a){var b=this,d=b.lookup('cmbCutoutJob'),e=d.getStore(),h=b.getViewModel(),c=h.getStore('cutouts'),g=b.lookup('TargetMosaic');a.setLoading(!0);e.remove(f);e.sync({callback:function(){a.close();c.removeAll();c.clearFilter(!0);g.removeAll(!0);d.reset();a.setLoading(!1)}})},onCutoutDblClick:function(c,a,b){url=a;window.open(url,'_blank')}},0,0,0,0,['controller.objects'],0,[Target.view.objects,'ObjectsController'],0);Ext.cmd.derive('Target.view.objects.ObjectsModel',Ext.app.ViewModel,{data:{tag_id:0,field_id:0,catalog:0,filters:null,mosaic_is_visible:!1,haveResults:!1,haveFilter:!1},stores:{catalogs:{type:'catalogs',storeId:'Catalogs',autoLoad:!1},objects:{type:'targets-objects',storeId:'objects',autoLoad:!1},currentSettings:{type:'currentsettings',autoLoad:!1},displayContents:{type:'product-display-contents',autoLoad:!1},filterSets:{type:'target-filtersets',autoLoad:!1},filterConditions:{type:'target-filter-conditions',autoLoad:!1},cutouts:{type:'cutouts',autoLoad:!1}},links:{currentCatalog:{type:'Target.model.Catalog',create:!0},currentSetting:{type:'Target.model.CurrentSetting',create:!0},filterSet:{type:'Target.model.FilterSet',create:!0},currentRecord:{type:'Target.model.Object',create:!0}}},0,0,0,0,['viewmodel.objects'],0,[Target.view.objects,'ObjectsModel'],0);Ext.cmd.derive('Target.view.objects.Mosaic',Ext.panel.Panel,{scrollable:!0,columns:[Ext.create('Ext.grid.RowNumberer'),{text:'Tilename',dataIndex:'tilename',flex:1},{text:'Count',dataIndex:'num_objects',width:60}],config:{store:null,ready:!0,cutoutJob:null,labelProperties:[],cutouts:null,imagesFormat:'png'},setStore:function(a){this.store=a},setCutoutJob:function(c,e){var a=this,d=[],b;if(c&&c.get('id')>0){a.cutoutJob=c;a.setCutouts(e);b=c.get('cjb_label_properties');if(b&&b!==''){d=b.split(',');if(d.length>0){a.setLabelProperties(d);a.createView()}}else {a.createView()}}},createView:function(){var a=this,i=a.getStore(),c=a.getLabelProperties(),h=a.getCutoutJob(),e='',d='',b,f;if(a._view){a.remove(a._view);a._view=null}if(c&&c.length>0){b=a.createLabels();if(h.get('cjb_label_position')==='inside'){e=b.toString()}else {d=b.toString()}}f='
    '+e+''+d+'
    ';var j=Ext.create('Ext.XTemplate',f.toString(),{getImageSource:a.getImageSource,formatNumber:a.formatNumber},this);var g=Ext.create('Ext.view.View',{tpl:j,store:i,itemSelector:'div.thumb-wrap',emptyText:'Choose a CutoutJob',multiSelect:!1,trackOver:!0,overItemCls:'x-item-over',listeners:{scope:a,select:function(b,c,d){a.fireEvent('select',b,c,d)},itemdblclick:function(d,b){var c=a.getImageSource(b.get('_meta_id'));a.fireEvent('itemdblclick',b,c,a)}}});a._view=g;a.add(g)},getSelectionModel:function(){if(this._view){return this._view.getSelectionModel()}else {return null}},createLabels:function(){var b=this,a=b.getCutoutJob(),i=b.getLabelProperties(),g=[],f,c,e,h='',d='mosaic-labels-outside';if(a.get('cjb_label_position')==='inside'){d='mosaic-labels-inside'}if(a.get('cjb_label_colors')!==null){h=Ext.String.format('style="color:#{0}; font-size:{1}px;"',a.get('cjb_label_colors'),a.get('cjb_label_font_size'))}f='{1}: {[this.formatNumber(values.{1})]}',Ext.each(i,function(a){c=Ext.String.format(f,h,a);g.push(c)},b);e=Ext.String.format('
    {1}
    ',d,g.join('
    '));return e},getImageSource:function(e){var b=this,d=b.getCutouts(),c=b.getImagesFormat(),a;a=d.getImageSourceByObjectId(e,c,!0);return a},formatNumber:function(a){var c=5,d,b;if(typeof a==='number'){if(a.toString().indexOf('.')!=-1){d=a.toString().split('.');b=d[1];if(b){if(b.length>c){a=a.toFixed(c)}}}}else {if(typeof a==='string'){if(a.indexOf('.')!=-1){if(parseFloat(a)!='NaN'){a=parseFloat(a);d=a.toString().split('.');b=d[1];if(b){if(b.length>c){a=a.toFixed(c)}}}}}}return a}},0,['targets-objects-mosaic'],['component','box','container','panel','targets-objects-mosaic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-objects-mosaic':!0},['widget.targets-objects-mosaic'],0,[Target.view.objects,'Mosaic'],0);Ext.cmd.derive('Target.view.objects.Grid',Ext.grid.Panel,{config:{ready:!1,columnRating:!0,columnAccept:!0,columnComments:!0},emptyText:'No data to display.',initComponent:function(){var a=this;Ext.apply(this,{enableLocking:!0,syncRowHeight:!0,columns:[Ext.create('Ext.grid.RowNumberer'),{text:'',dataIndex:'',width:50},{text:'',dataIndex:'',flex:!0}],viewConfig:{stripeRows:!0,markDirty:!1,getRowClass:function(a){return a.get('_meta_reject')===!0?'rejected-row':''}}});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},reconfigureGrid:function(d,e){var a=this,b=[],c;b.push(Ext.create('Ext.grid.RowNumberer',{width:50,resizable:!0,locked:!0}));if(d.count()>0){c=!1;d.each(function(g){if(g.get('is_visible')){var f={text:a.createColumnText(g),dataIndex:g.get('column_name').toLowerCase(),tooltip:a.createColumnTooltip(g),renderer:a.formatNumber,lockable:!0};if(g.get('ucd')=='meta.id;meta.main'){f.lockable=!0;f.renderer=null;c=!0}if(g.get('column_name').toLowerCase()=='tilename'){f.width=120}if(g.get('ucd')==='pos.eq.ra;meta.main'||g.get('ucd')==='pos.eq.dec;meta.main'){f.width=90;f.xtype='numbercolumn';f.format='0.00000';f.renderer=null;f.lockable=!0}if(g.get('ucd')==='phys.angSize;src'){f.width=80;f.xtype='numbercolumn';f.format='0.000';f.renderer=null;f.lockable=!0}b.push(f)}},this);if(a.getColumnRating()&&c===!0){b.push({xtype:'widgetcolumn',width:90,sortable:!0,text:'Rating',dataIndex:'_meta_rating',tooltip:'Rating',widget:{xtype:'rating',minimum:0,scale:'115%',selectedStyle:'color: rgb(96, 169, 23);',style:{'color':'#777777'}}})}if(a.getColumnAccept()&&c===!0){b.push({xtype:'checkcolumn',text:'Reject',dataIndex:'_meta_reject',tooltip:'Reject',sortable:!0,width:80})}if(a.getColumnComments()&&c===!0){b.push({text:'Comments',dataIndex:'_meta_comments',tooltip:'Comments',align:'center',flex:1,sortable:!1,minWidth:80,renderer:function(b,c,f){var a='';if(b>0){if(b==1){a=' '}else {a=''}}return a}})}}else {b.push({text:'Placeholder',dataIndex:'',hidden:!0})}a.reconfigure(null,b);if(!e){a.setReady(!0);this.fireEvent('ready',this)}},getTypeColumn:function(a){switch(a){case 'integer':case 'real':case 'double precision':case 'bigint':case 'smallint':return 'number';case 'text':return 'string';}},createColumnText:function(a){var c=a.get('unit'),b=a.get('display_name');var d=c!=''?Ext.String.format('{0} ( {1} )',b,c):b;return d},createColumnTooltip:function(a){var b=new Ext.XTemplate('
    ','

    {display_name}

    ','','

    Name: {column_name}

    ','
    ','','

    Unit: {unit}

    ','
    ','','

    ucd: {ucd}

    ','
    ','','

    Reference: {reference}

    ','
    ','
    ');return b.apply(a.data)},formatNumber:function(a){var b=3,d,c;if(typeof a==='number'){if(a>10000){if(a.toString().indexOf('.')!=-1){a=a.toExponential(1)}}else {if(a.toString().indexOf('.')!=-1){d=a.toString().split('.');c=d[1];if(c.length>b){a=a.toFixed(b)}}}}return a}},0,['targets-objects-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','targets-objects-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'targets-objects-grid':!0},['widget.targets-objects-grid'],0,[Target.view.objects,'Grid'],0);Ext.cmd.derive('Target.view.objects.TabPanel',Ext.panel.Panel,{config:{ready:!1},layout:'border',initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'targets-objects-grid',itemId:'CatalogPropertiesGrid',bind:{store:'{objects}'},listeners:{scope:this,ready:this.onItemReady,select:this.onSelectItem},hidden:!0}],bbar:Ext.create('Ext.PagingToolbar',{reference:'pagingtoolbar',bind:{store:'{objects}'},displayInfo:!0,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display'})});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setCatalogColumns:function(a){var b=this;grid=this.down('#CatalogPropertiesGrid');grid.reconfigureGrid(a)},setCatalogClassColumns:function(a){var b=this;grid=this.down('#CatalogClassGrid');grid.reconfigureGrid(a)},onItemReady:function(b){var a=this.isReady();if(a){this.setReady(a);this.fireEvent('ready',this)}},isReady:function(){var d=this,c=this.items,b=[],a=!0;c.each(function(a){b.push(a.getReady())});if(b.indexOf(!1)!=-1){a=!1}return a},showHideTilename:function(a){var b=this;b.down('#CatalogPropertiesGrid').showHideTilename(a);b.down('#CatalogClassGrid').showHideTilename(a)},onSelectItem:function(e,a,f){var g=this,d=this.down('#CatalogMosaic'),c=this.down('#CatalogClassGrid'),b=this.down('#CatalogPropertiesGrid');c.getSelectionModel().select(a,!1,!0);b.getSelectionModel().select(a,!1,!0);selmodelMosaic=d.getSelectionModel();if(selmodelMosaic){selmodelMosaic.select(a,!1,!0)}this.fireEvent('select',a,this)},onDbClickItem:function(b,a,c){this.fireEvent('rowdblclick',a,this)}},0,['targets-objects-tabpanel'],['component','box','container','panel','targets-objects-tabpanel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-objects-tabpanel':!0},['widget.targets-objects-tabpanel'],0,[Target.view.objects,'TabPanel'],0);Ext.cmd.derive('Target.view.preview.PreviewController',Ext.app.ViewController,{listen:{component:{'targets-preview':{changerecord:'onChangeRecord'},'targets-visiomatic':{changeimage:'showTarget'}},store:{'#datasets':{load:'onLoadDatasets'}}},onObjectMenuItemClickVisiomatic:function(b,a){this.onComment(b.latlng,a)},onImageMenuItemClickVisiomatic:function(b,a){this.onCommentPosition(b,a)},onChangeRecord:function(b){var g=this,e=g.getView(),c=e.getViewModel(),d=c.getStore('datasets'),h=b.get('_meta_ra'),f=b.get('_meta_dec'),a;c.set('overlayMembers',null);a=String(h)+','+String(f);d.addFilter([{property:'position',value:a}])},onLoadDatasets:function(c){var a=this,h=a.getView(),d=a.getReferences(),e=d.currentDataset,g=a.getViewModel(),f=g.get('currentCatalog'),b;if(c.count()==1){b=c.first();a.changeImage(b);e.select(b);e.setReadOnly(!0)}else {if(c.count()>1){if(f.get('release_id')>0){c.each(function(a){if(a.get('release')==f.get('release_id')){b=a;return !1}},this);if(b){a.changeImage(b);e.select(b)}else {a.changeImage(null)}}else {a.changeImage(c.first());e.select(c.first())}e.setReadOnly(!1)}else {a.changeImage(null)}}a.activeDataset=b;if(g.get('is_system')){d.btnRadius.setVisible(!0);d.btnMembers.setVisible(!0)}else {d.btnRadius.setVisible(!1);d.btnMembers.setVisible(!1)}},onChangeDataset:function(c){var b=this,d=b.getViewModel(),a=c.selection;d.set('currentDataset',a);b.changeImage(a)},changeImage:function(b){var e=this,a=e.lookupReference('visiomatic'),c,d;if(!a.imageLayer){d=JSON.parse(localStorage.getItem('imageOptions'))}if(b){if(a.getDataset()!=b.get('id')){a.setDataset(b.get('id'));a.setCurrentDataset(b);c=b.get('image_src_ptif');if(c!==''){a.setImage(c,d)}else {a.removeImageLayer()}}else {e.showTarget()}}else {a.removeImageLayer()}},showTarget:function(){var a=this,b=a.getViewModel(),d=b.get('currentRecord'),c=a.lookupReference('visiomatic');if(b.get('is_system')){a.targetIsSystem()}else {a.targetIsSingleObject()}},targetIsSingleObject:function(){var a=this,c=a.getViewModel(),e=c.get('currentRecord'),d=a.lookupReference('visiomatic'),b=a.lookup('BtnExplorer');a.onCenterTarget();b.disable()},targetIsSystem:function(){var a=this,h=a.getViewModel(),b=h.get('currentRecord'),c=a.lookupReference('visiomatic'),d=a.getReferences(),f=d.btnRadius,e=d.btnMembers;a.onCenterTarget();var g='arcmin';c.drawRadius(b.get('_meta_ra'),b.get('_meta_dec'),b.get('_meta_radius'),g);c.showHideRadius(f.pressed);if(e.pressed){a.loadSystemMembers()}},onCenterTarget:function(){var c=this,e=c.lookupReference('visiomatic'),d=c.getViewModel(),a=d.get('currentRecord'),b=0.05;if(d.get('is_system')){b=0.1}e.setView(a.get('_meta_ra'),a.get('_meta_dec'),b)},showHideRadius:function(f,c){var a=this,b=a.lookupReference('visiomatic'),d=a.getViewModel(),e=d.get('currentRecord'),g=0.05;b.showHideRadius(c)},onToggleCrosshair:function(d,f){var b=this,e=b.getViewModel(),a=e.get('currentRecord'),c=b.lookupReference('visiomatic');c.onToggleCrosshair(a.get('_meta_ra'),a.get('_meta_dec'),d)},onComment:function(h,a){var j=this,i=j.getView(),e=i.getViewModel(),d=e.get('currentRecord'),f=e.get('currentCatalog'),b,c;if(!d||!d.get('_meta_id')){return !1}if(a&&a.properties){c=a.properties._meta_catalog_id;b=a.id}else {c=f.get('id');b=d.get('_meta_id')}if(b>0){var g=Ext.create('Ext.window.Window',{title:'Comments',iconCls:'x-fa fa-comments',layout:'fit',closeAction:'destroy',constrainHeader:!0,width:500,height:300,autoShow:!0,onEsc:Ext.emptyFn,items:[{xtype:'comments-object',reference:'',listeners:{scope:this,changecomments:'onChangeComments'}}]});g.down('comments-object').getController().loadComments(c,b,h,a)}},onCommentPosition:function(c,b){var a=Ext.create('Ext.window.Window',{title:'Comments',iconCls:'x-fa fa-comments',layout:'fit',closeAction:'destroy',constrainHeader:!0,width:500,height:300,autoShow:!0,onEsc:Ext.emptyFn,items:[{xtype:'comments-position',listeners:{scope:this,changecomments:'onChangeComments'}}]});a.down('comments-position').getController().loadComments(c,b)},onChangeComments:function(a){var b=this,f=b.getView(),c=b.lookupReference('visiomatic'),e=b.getViewModel(),d=e.get('overlayMembers');if(a&&a.comment){c.updateComment(d,a.comment,a.total)}},loadSystemMembers:function(){var d=this,a=d.getViewModel(),f=a.get('currentCatalog'),i=a.get('currentRecord'),b=a.get('productRelated'),e=a.getStore('productRelateds'),c=a.getStore('members'),l=a.getStore('comments'),j=d.getReferences(),g=j.btnMembers,k,h=0;if(b.get('id')>0&&b.get('prl_product')===f.get('id')){c.clearFilter();c.removeAll(!0);c.getProxy().setExtraParam('product',b.get('prl_related'));if(b.get('prl_cross_identification')!==null&&b.get('prl_cross_identification')>0){g.setIconCls('x-fa fa-spinner fa-spin fa-fw');h++;c.addFilter({property:b.get('prl_cross_name'),value:i.get('_meta_id')});c.load({callback:function(){g.setIconCls('x-fa fa-dot-circle-o');d.onLoadSystemMembers(this)}})}}else {e.removeAll(!0);e.addFilter({property:'prl_product',value:f.get('id')});e.load({callback:function(){if(this.count()>0){a.set('productRelated',this.first());d.loadSystemMembers()}}})}},onLoadSystemMembers:function(d){var b=this,e=b.getViewModel(),c=b.lookupReference('visiomatic'),a;a=c.overlayCatalog('System Members',d);e.set('overlayMembers',a)},showHideMembers:function(f,d){var a=this,b=a.lookupReference('visiomatic'),e=a.getViewModel(),c=e.get('overlayMembers');b.showHideLayer(c,d)},showHideComments:function(b,a){},showHideCrop:function(d,c){var b=this,a=b.lookupReference('visiomatic');Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - crop');a.initCrop()},onExplorer:function(){var i=this,a=i.getViewModel(),f=a.get('currentCatalog'),g=a.get('currentRecord'),e=window.location.protocol,h=window.location.host,b,d,c;if(a.get('is_system')===!0){b=f.get('prd_name');d=g.get('_meta_id');c=Ext.String.format('{0}//{1}/dri/apps/explorer/#system/{2}/{3}',e,h,b,d);window.open(c,'_blank')}else {console.log('Explorer single object')}},onSave:function(){var b=this,a=b.lookupReference('visiomatic');Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - save_fits');a.showDownloadWindow()},onEvent:function(){Ext.GlobalEvents.fireEvent('eventregister','teste')}},0,0,0,0,['controller.preview'],0,[Target.view.preview,'PreviewController'],0);Ext.cmd.derive('Target.view.preview.PreviewModel',Ext.app.ViewModel,{data:{is_empty:!0,is_system:!1,overlayMembers:null},links:{currentRecord:{type:'Target.model.Object',create:!0},currentDataset:{type:'common.model.Dataset',create:!0},currentCatalog:{type:'Target.model.Catalog',create:!0},productRelated:{type:'Target.model.ProductRelated',create:!0}},stores:{releases:{type:'releases',storeId:'releases',autoLoad:!0},tags:{type:'tags',storeId:'tags',autoLoad:!0},datasets:{type:'datasets',storeId:'datasets'},members:{type:'targets-objects',autoLoad:!1,pageSize:0},productRelateds:{type:'product_relateds',autoLoad:!1},comments:{type:'comments-position',autoLoad:!1}}},0,0,0,0,['viewmodel.preview'],0,[Target.view.preview,'PreviewModel'],0);Ext.cmd.derive('Target.view.preview.Visiomatic',visiomatic.Visiomatic,{enableTools:!1,enableMiniMap:!0},0,['targets-visiomatic'],['component','box','container','panel','visiomatic','targets-visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0,'targets-visiomatic':!0},['widget.targets-visiomatic'],0,[Target.view.preview,'Visiomatic'],0);Ext.cmd.derive('Target.view.preview.Preview',Ext.panel.Panel,{controller:'preview',viewModel:'preview',config:{currentRecord:null},layout:'fit',items:[{xtype:'targets-visiomatic',reference:'visiomatic',bind:{showCrosshair:'{BtnCrosshair.pressed}',hidden:'{is_empty}'},listeners:{objectMenuItemClick:'onObjectMenuItemClickVisiomatic',imageMenuItemClick:'onImageMenuItemClickVisiomatic'}}],dockedItems:[{xtype:'toolbar',dock:'top',items:[{xtype:'combobox',reference:'currentDataset',publishes:'id',width:250,displayField:'release_tag',bind:{store:'{datasets}',disabled:'{!currentRecord._meta_id}'},queryMode:'local',listConfig:{itemTpl:['
    {release_display_name} - {tag_display_name}
    ']},listeners:{change:'onChangeDataset'}},{xtype:'textfield',width:120,readOnly:!0,bind:{value:'{currentDataset.tli_tilename}'}}]},{xtype:'toolbar',dock:'top',items:[{xtype:'checkboxfield',reference:'btnReject',hideLabel:!0,boxLabel:'Reject',bind:{value:'{currentRecord._meta_reject}',disabled:'{is_empty}'}},{xtype:'tbtext',html:'Rating'},{xtype:'numberfield',maxValue:5,minValue:0,width:50,bind:{value:'{currentRecord._meta_rating}',disabled:'{is_empty}'}},{xtype:'button',text:'Explorer',tooltip:'See more information about this object in Explorer app',ui:'soft-blue',iconCls:'x-fa fa-info-circle',handler:'onExplorer',reference:'BtnExplorer',bind:{disabled:'{is_empty}'}},'-',{xtype:'button',iconCls:'x-fa fa-arrows',tooltip:'Center',handler:'onCenterTarget',bind:{disabled:'{is_empty}'}},{xtype:'button',iconCls:'x-fa fa-crosshairs',tooltip:'Show/Hide Crosshair',enableToggle:!0,pressed:!0,handler:'onToggleCrosshair',reference:'BtnCrosshair',bind:{disabled:'{is_empty}'}},{xtype:'button',reference:'btnComments',iconCls:'x-fa fa-comments',enableToggle:!0,toggleHandler:'showHideComments',tooltip:'Show/Hide Comments',pressed:!0,hidden:!0,bind:{disabled:'{is_empty}'}},{xtype:'button',reference:'btnCrop',iconCls:'x-fa fa-crop',enableToggle:!0,toggleHandler:'showHideCrop',tooltip:'Crop',bind:{disabled:'{is_empty}'},pressed:!0},{xtype:'button',reference:'btnSave',iconCls:'x-fa fa-download',handler:'onSave',tooltip:'Download',bind:{disabled:'{is_empty}'}},{xtype:'button',reference:'btnEvent',iconCls:'x-fa fa-download',handler:'onEvent',tooltip:'Event',hidden:!0},'-',{xtype:'button',reference:'btnRadius',iconCls:'x-fa fa-circle-o',tooltip:'Show System Radius',enableToggle:!0,toggleHandler:'showHideRadius',pressed:!0,hidden:!0,bind:{disabled:'{is_empty}'}},{xtype:'button',reference:'btnMembers',iconCls:'x-fa fa-dot-circle-o',tooltip:'Show System Members',enableToggle:!0,toggleHandler:'showHideMembers',pressed:!0,hidden:!0,bind:{disabled:'{is_empty}'}}]}],setCurrentRecord:function(a,d){var b=this,c=b.getViewModel();if(a&&a.get('_meta_catalog_id')!=null){b.currentRecord=a;c.set('currentRecord',a);c.set('is_empty',!1);c.set('currentCatalog',d);c.set('is_system',d.get('pcl_is_system'));b.fireEvent('changerecord',a,b)}},clear:function(){var d=this,a=d.getViewModel(),f=d.getReferences(),e=a.getStore('datasets'),c=a.getStore('members'),b=a.getStore('comments');e.clearData();f.currentDataset.clearValue();record=Ext.create('Target.model.Object',{});a.set('currentRecord',record);a.set('is_empty',!0);c.removeAll();c.clearFilter(!0);b.removeAll();b.clearFilter(!0)}},0,['targets-preview'],['component','box','container','panel','targets-preview'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-preview':!0},['widget.targets-preview'],0,[Target.view.preview,'Preview'],0);Ext.cmd.derive('Target.view.objects.Panel',Ext.panel.Panel,{controller:'objects',viewModel:'objects',config:{catalog:null,currentCatalog:null},layout:{type:'hbox',pack:'start',align:'stretch'},bind:{currentCatalog:'{currentCatalog}'},items:[{xtype:'panel',layout:'card',reference:'ObjectCardPanel',flex:1,border:!0,frame:!0,dockedItems:[{dock:'top',xtype:'toolbar',overflowHandler:'scroller',items:[{xtype:'tbtext',reference:'txtTargetTitle',html:'Sample Text Item',cls:'tb-text-target-title'},'->',{xtype:'button',iconCls:'x-fa fa-floppy-o',tooltip:'Save As',handler:'onClickSaveAs',bind:{disabled:'{!haveFilter}'}},{iconCls:'x-fa fa-download',tooltip:'Download',handler:'onClickDownload',bind:{disabled:'{!haveResults}'}},{xtype:'button',iconCls:'x-fa fa-commenting',tooltip:'Open Comments',bind:{disabled:'{!targetsObjectsGrid.selection}'},handler:'onClickComment'},{iconCls:'x-fa fa-picture-o',tooltip:'Create Mosaic',handler:'onClickCreateCutouts'},{xtype:'button',reference:'BtnSwitchMosaic',iconCls:'x-fa fa-th-large',tooltip:'Switching between Mosaic and Data Grid',enableToggle:!0,toggleHandler:'switchMosaicGrid',bind:{pressed:'{mosaic_is_visible}'}},{xtype:'fieldcontainer',layout:'hbox',defaults:{flex:1},items:[{xtype:'textfield',reference:'txtFilterSet',emptyText:'No filter',editable:!1}]},{xtype:'button',iconCls:'x-fa fa-filter',tooltip:'Filters',handler:'onClickFilter'},{xtype:'button',iconCls:'x-fa fa-gear',tooltip:'Settings',handler:'onClickSettings'}]}],items:[{xtype:'targets-objects-grid',reference:'targetsObjectsGrid',bind:{store:'{objects}'},listeners:{ready:'onGridObjectsReady',select:'onSelectObject'}},{xtype:'targets-objects-mosaic',reference:'TargetMosaic',bind:{store:'{objects}'},listeners:{select:'onSelectObject',itemdblclick:'onCutoutDblClick'},tbar:[{xtype:'combobox',reference:'cmbCutoutJob',emptyText:'Choose Cutout',displayField:'cjb_display_name',store:{type:'cutoutjobs'},listeners:{select:'onSelectCutoutJob'},editable:!1},{xtype:'button',iconCls:'x-fa fa-info',tooltip:'Information about mosaic',handler:'onClickInfoCutoutJob',bind:{disabled:'{!cmbCutoutJob.selection}'}}]}],bbar:[{xtype:'pagingtoolbar',reference:'pagingtoolbar',bind:{store:'{objects}'},displayInfo:!0,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display'}]},{xtype:'targets-preview',reference:'targetsPreviewPanel',flex:1,border:!0,frame:!0,split:!0,listeners:{changeinobject:'onChangeInObjects',loadobjects:'onLoadObjects'}}],loadPanel:function(d){var a=this,c=this.getViewModel(),b=a.getCatalog();if(!b){console.log('Necessario um catalog id.');return !1}a.clearPanel();c.set('catalog',b);a.fireEvent('beforeLoadPanel',b,a)},updatePanel:function(e){var b=this,c=this.getViewModel(),g=c.get('catalog'),d=c.get('currentSetting'),f=c.get('currentCatalog'),a;if(e.length>=2){a=e[1];if(g!=a){b.clearPanel();c.set('catalog',a);b.fireEvent('beforeLoadPanel',a,b)}else {if(d&&d.get('id')>0){if(d.get('cst_product')!=f.get('id')){c.set('catalog',a);b.fireEvent('beforeLoadPanel',a,b)}}}}},setCurrentCatalog:function(a){var d=this,c=d.lookup('txtTargetTitle'),b='';if(a.get('id')>0){b=Ext.String.format('{0} - {1}',a.get('pcl_display_name'),a.get('prd_display_name'));if(b.length>30){b=a.get('prd_display_name')}c.setHtml(b)}},clearPanel:function(){var b=this,a=b.getViewModel(),i=b.down('targets-objects-grid'),m=b.lookup('ObjectCardPanel'),d=b.lookup('cmbCutoutJob'),l=b.lookup('BtnSwitchMosaic'),k=b.lookup('TargetMosaic'),e=d.getStore(),g=a.getStore('cutouts'),h=b.lookup('txtFilterSet'),c=a.getStore('displayContents'),j=b.lookup('targetsPreviewPanel'),f;a.getStore('catalogs').removeAll();a.getStore('catalogs').clearFilter(!0);a.getStore('objects').removeAll();a.getStore('objects').clearFilter(!0);a.getStore('currentSettings').removeAll();a.getStore('currentSettings').clearFilter(!0);c.removeAll();c.clearFilter(!0);i.reconfigureGrid(c,!0);e.removeAll();e.clearFilter(!0);g.removeAll();g.clearFilter(!0);k.removeAll(!0);if(d.selection!==null){d.reset()}l.setPressed(!1);f=Ext.create('Target.model.FilterSet',{});a.set('filterSet',f);a.set('filters',null);a.getStore('filterConditions').removeAll();a.getStore('filterConditions').clearFilter(!0);a.getStore('filterSets').removeAll();a.getStore('filterSets').clearFilter(!0);h.reset();b.activeFilter=null;j.clear()}},0,['targets-objects-panel'],['component','box','container','panel','targets-objects-panel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-objects-panel':!0},['widget.targets-objects-panel'],0,[Target.view.objects,'Panel'],0);Ext.cmd.derive('Target.view.main.MainController',Ext.app.ViewController,{routes:{'home':{action:'onHome'},'cv/:catalog':{action:'onCatalogViewByCatalogId'}},setActivePanel:function(e){var h=this,g=h.getReferences(),b=g.mainCardPanel,d=b.getLayout(),f=e.routeId,c=b.child('component[routeId='+f+']'),a=null;if(!c){a=b.add(e);a.loadPanel(arguments);d.setActiveItem(a)}else {a=c;a.updatePanel(arguments);d.setActiveItem(a)}},onHome:function(){var a=Ext.create('Target.view.home.Home',{hideMode:'offsets',routeId:'home',layout:'fit'});this.setActivePanel(a)},onCatalogViewByCatalogId:function(a){var b=Ext.create('Target.view.objects.Panel',{hideMode:'offsets',routeId:'cv',catalog:a});this.setActivePanel(b,a)}},0,0,0,0,['controller.main'],0,[Target.view.main,'MainController'],0);Ext.cmd.derive('Target.view.main.MainModel',Ext.app.ViewModel,{data:{name:'Target Viewer',internal_name:'target_viewer',help_url:'dri/apps/home/help/help-target-viewer/'}},0,0,0,0,['viewmodel.main'],0,[Target.view.main,'MainModel'],0);Ext.cmd.derive('Target.view.main.Main',Ext.container.Container,{controller:'main',viewModel:'main',plugins:'viewport',layout:{type:'vbox',align:'stretch'},items:[{xtype:'dri-header'},{xtype:'container',flex:1,reference:'mainCardPanel',layout:{type:'card',anchor:'100%'}},{xtype:'dri-footer'}]},0,['app-main'],['component','box','container','app-main'],{'component':!0,'box':!0,'container':!0,'app-main':!0},['widget.app-main'],0,[Target.view.main,'Main'],0);Ext.application({name:'Target',extend:Target.Application,mainView:'Target.view.main.Main'}); \ No newline at end of file +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.defineProperty=typeof Object.defineProperties=='function'?Object.defineProperty:function(b,c,a){a=a;if(b==Array.prototype||b==Object.prototype){return}b[c]=a.value};$jscomp.getGlobal=function(a){return typeof window!='undefined'&&window===a?a:typeof global!='undefined'&&global!=null?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(i,f,j,k){if(!f){return}var a=$jscomp.global;var b=i.split('.');for(var e=0;ec){if(--b in this){this[--d]=this[b]}else {delete this[d]}}}return this};return b},'es6-impl','es3');$jscomp.SYMBOL_PREFIX='jscomp_symbol_';$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};if(!$jscomp.global['Symbol']){$jscomp.global['Symbol']=$jscomp.Symbol}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||'')+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global['Symbol'].iterator;if(!a){a=$jscomp.global['Symbol'].iterator=$jscomp.global['Symbol']('iterator')}if(typeof Array.prototype[a]!='function'){$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}})}$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){if(bd){b=d}b=Number(b);if(b<0){b=Math.max(0,d+b)}for(var e=Number(c||0);e-0.25){var f=b;var g=1;var c=b;var d=0;var e=1;while(d!=c){f*=b;e*=-1;c=(d=c)+e*f/++g}return c}return Math.log(1+b)};return b},'es6-impl','es3');$jscomp.polyfill('Math.atanh',function(b){if(b){return b}var a=Math.log1p;var c=function(c){c=Number(c);return (a(c)-a(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.cbrt',function(a){if(a){return a}var b=function(b){if(b===0){return b}b=Number(b);var c=Math.pow(Math.abs(b),1/3);return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Math.clz32',function(a){if(a){return a}var b=function(b){b=Number(b)>>>0;if(b===0){return 32}var c=0;if((b&4.29490176E9)===0){b<<=16;c+=16}if((b&4.27819008E9)===0){b<<=8;c+=8}if((b&4.02653184E9)===0){b<<=4;c+=4}if((b&3.221225472E9)===0){b<<=2;c+=2}if((b&2.147483648E9)===0){c++}return c};return b},'es6-impl','es3');$jscomp.polyfill('Math.cosh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);return (b(c)+b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.expm1',function(a){if(a){return a}var b=function(b){b=Number(b);if(b<0.25&&b>-0.25){var e=b;var f=1;var c=b;var d=0;while(d!=c){e*=b/++f;c=(d=c)+e}return c}return Math.exp(b)-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.hypot',function(a){if(a){return a}var b=function(c,d,h){c=Number(c);d=Number(d);var b,g,f;var e=Math.max(Math.abs(c),Math.abs(d));for(b=2;b1.0E100||e<1.0E-100){c=c/e;d=d/e;f=c*c+d*d;for(b=2;b>>16&65535;var d=b&65535;var g=c>>>16&65535;var e=c&65535;var h=f*e+d*g<<16>>>0;return d*e+h|0};return b},'es6-impl','es3');$jscomp.polyfill('Math.log10',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN10};return b},'es6-impl','es3');$jscomp.polyfill('Math.log2',function(a){if(a){return a}var b=function(b){return Math.log(b)/Math.LN2};return b},'es6-impl','es3');$jscomp.polyfill('Math.sign',function(a){if(a){return a}var b=function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1};return b},'es6-impl','es3');$jscomp.polyfill('Math.sinh',function(a){if(a){return a}var b=Math.exp;var c=function(c){c=Number(c);if(c===0){return c}return (b(c)-b(-c))/2};return c},'es6-impl','es3');$jscomp.polyfill('Math.tanh',function(a){if(a){return a}var b=function(b){b=Number(b);if(b===0){return b}var c=Math.exp(-2*Math.abs(b));var d=(1-c)/(1+c);return b<0?-d:d};return b},'es6-impl','es3');$jscomp.polyfill('Math.trunc',function(a){if(a){return a}var b=function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0){return b}var c=Math.floor(Math.abs(b));return b<0?-c:c};return b},'es6-impl','es3');$jscomp.polyfill('Number.EPSILON',function(a){return Math.pow(2,-52)},'es6-impl','es3');$jscomp.polyfill('Number.MAX_SAFE_INTEGER',function(){return 9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.MIN_SAFE_INTEGER',function(){return -9.007199254740991E15},'es6-impl','es3');$jscomp.polyfill('Number.isFinite',function(a){if(a){return a}var b=function(b){if(typeof b!=='number'){return !1}return !isNaN(b)&&b!==Infinity&&b!==-Infinity};return b},'es6-impl','es3');$jscomp.polyfill('Number.isInteger',function(a){if(a){return a}var b=function(b){if(!Number.isFinite(b)){return !1}return b===Math.floor(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isNaN',function(a){if(a){return a}var b=function(b){return typeof b==='number'&&isNaN(b)};return b},'es6-impl','es3');$jscomp.polyfill('Number.isSafeInteger',function(a){if(a){return a}var b=function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER};return b},'es6-impl','es3');$jscomp.polyfill('Object.assign',function(a){if(a){return a}var b=function(e,f){for(var d=1;d3?f:b,e);return !0}else {if(c.writable&&!Object.isFrozen(b)){b[d]=e;return !0}}return !1};return b},'es6','es5');$jscomp.polyfill('Reflect.setPrototypeOf',function(a){if(a){return a}if(typeof ''.__proto__!='object'){return null}var b=function(b,c){try{b.__proto__=c;return b.__proto__===c}catch(d){return !1}};return b},'es6','es5');$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.polyfill('Set',function(b){var c=!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!b||!b.prototype.entries||typeof Object.seal!='function'){return !1}try{b=b;var d=Object.seal({x:4});var c=new b($jscomp.makeIterator([d]));if(!c.has(d)||c.size!=1||c.add(d)!=c||c.size!=1||c.add({x:4})!=c||c.size!=2){return !1}var e=c.entries();var a=e.next();if(a.done||a.value[0]!=d||a.value[1]!=d){return !1}a=e.next();if(a.done||a.value[0]==d||a.value[0].x!=4||a.value[1]!=a.value[0]){return !1}return e.next().done}catch(f){return !1}}();if(c){return b}$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=function(a){this.map_=new Map();if(a){var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}this.size=this.map_.size};a.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};a.prototype['delete']=function(c){var a=this.map_['delete'](c);this.size=this.map_.size;return a};a.prototype.clear=function(){this.map_.clear();this.size=0};a.prototype.has=function(a){return this.map_.has(a)};a.prototype.entries=function(){return this.map_.entries()};a.prototype.values=function(){return this.map_.values()};a.prototype.keys=a.prototype.values;$jscomp.initSymbol();$jscomp.initSymbolIterator();a.prototype[Symbol.iterator]=a.prototype.values;a.prototype.forEach=function(c,a){var d=this;this.map_.forEach(function(e){return c.call(a,e,e,d)})};return a},'es6-impl','es3');$jscomp.checkStringArgs=function(a,c,b){if(a==null){throw new TypeError("The 'this' value for String.prototype."+b+' must not be null or undefined')}if(c instanceof RegExp){throw new TypeError('First argument to String.prototype.'+b+' must not be a regular expression')}return a+''};$jscomp.polyfill('String.prototype.codePointAt',function(a){if(a){return a}var b=function(b){var e=$jscomp.checkStringArgs(this,null,'codePointAt');var f=e.length;b=Number(b)||0;if(!(b>=0&&b56319||b+1===f){return c}var d=e.charCodeAt(b+1);if(d<56320||d>57343){return c}return (c-55296)*1024+d+9216};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.endsWith',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'endsWith');b=b+'';if(c===void 0){c=d.length}var f=Math.max(0,Math.min(c|0,d.length));var e=b.length;while(e>0&&f>0){if(d[--f]!=b[--e]){return !1}}return e<=0};return b},'es6-impl','es3');$jscomp.polyfill('String.fromCodePoint',function(a){if(a){return a}var b=function(e){var c='';for(var d=0;d1114111||b!==Math.floor(b)){throw new RangeError('invalid_code_point '+b)}if(b<=65535){c+=String.fromCharCode(b)}else {b-=65536;c+=String.fromCharCode(b>>>10&1023|55296);c+=String.fromCharCode(b&1023|56320)}}return c};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.includes',function(a){if(a){return a}var b=function(b,c){var d=$jscomp.checkStringArgs(this,b,'includes');return d.indexOf(b,c||0)!==-1};return b},'es6-impl','es3');$jscomp.polyfill('String.prototype.repeat',function(a){if(a){return a}var b=function(b){var c=$jscomp.checkStringArgs(this,null,'repeat');if(b<0||b>1342177279){throw new RangeError('Invalid count value')}b=b|0;var d='';while(b){if(b&1){d+=c}if(b>>>=1){c+=c}}return d};return b},'es6-impl','es3');$jscomp.stringPadding=function(c,a){var b=c!==undefined?String(c):' ';if(!(a>0)||!b){return ''}var d=Math.ceil(a/b.length);return b.repeat(d).substring(0,a)};$jscomp.polyfill('String.prototype.padEnd',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return b+$jscomp.stringPadding(c,e)};return b},'es8','es3');$jscomp.polyfill('String.prototype.padStart',function(a){if(a){return a}var b=function(d,c){var b=$jscomp.checkStringArgs(this,null,'padStart');var e=d-b.length;return $jscomp.stringPadding(c,e)+b};return b},'es8','es3');$jscomp.polyfill('String.prototype.startsWith',function(a){if(a){return a}var b=function(b,g){var c=$jscomp.checkStringArgs(this,b,'startsWith');b=b+'';var h=c.length;var e=b.length;var f=Math.max(0,Math.min(g|0,c.length));var d=0;while(d=e};return b},'es6-impl','es3');$jscomp.arrayFromIterator=function(c){var b;var a=[];while(!(b=c.next()).done){a.push(b.value)}return a};$jscomp.arrayFromIterable=function(a){if(a instanceof Array){return a}else {return $jscomp.arrayFromIterator($jscomp.makeIterator(a))}};$jscomp.inherits=function(a,b){function tempCtor(){}tempCtor.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new tempCtor();a.prototype.constructor=a;for(var c in b){if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);if(d){Object.defineProperty(a,c,d)}}else {a[c]=b[c]}}};$jscomp.polyfill('WeakSet',function(b){function isConformant(){if(!b||!Object.seal){return !1}try{var c=Object.seal({});var d=Object.seal({});var a=new b([c]);if(!a.has(c)||a.has(d)){return !1}a['delete'](c);a.add(d);return !a.has(c)&&a.has(d)}catch(e){return !1}}if(isConformant()){return b}var a=function(a){this.map_=new WeakMap();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=$jscomp.makeIterator(a);var c;while(!(c=e.next()).done){var d=c.value;this.add(d)}}};a.prototype.add=function(a){this.map_.set(a,!0);return this};a.prototype.has=function(a){return this.map_.has(a)};a.prototype['delete']=function(a){return this.map_['delete'](a)};return a},'es6-impl','es3');try{if(Array.prototype.values.toString().indexOf('[native code]')==-1){delete Array.prototype.values}}catch(a){}var Ext=Ext||{};if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.app.bind){Ext.app.bind={}}if(!Ext.app.domain){Ext.app.domain={}}if(!Ext.app.route){Ext.app.route={}}if(!Ext.button){Ext.button={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}if(!Ext.data){Ext.data={}}if(!Ext.data.field){Ext.data.field={}}if(!Ext.data.flash){Ext.data.flash={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.matrix){Ext.data.matrix={}}if(!Ext.data.operation){Ext.data.operation={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.request){Ext.data.request={}}if(!Ext.data.schema){Ext.data.schema={}}if(!Ext.data.session){Ext.data.session={}}if(!Ext.data.validator){Ext.data.validator={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dd){Ext.dd={}}if(!Ext.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.form){Ext.form={}}if(!Ext.form.Action){Ext.form.Action={}}if(!Ext.form.action){Ext.form.action={}}if(!Ext.form.field){Ext.form.field={}}if(!Ext.form.trigger){Ext.form.trigger={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.fx.target){Ext.fx.target={}}if(!Ext.grid){Ext.grid={}}if(!Ext.grid.column){Ext.grid.column={}}if(!Ext.grid.feature){Ext.grid.feature={}}if(!Ext.grid.filters){Ext.grid.filters={}}if(!Ext.grid.filters.filter){Ext.grid.filters.filter={}}if(!Ext.grid.header){Ext.grid.header={}}if(!Ext.grid.locking){Ext.grid.locking={}}if(!Ext.grid.plugin){Ext.grid.plugin={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.boxOverflow){Ext.layout.boxOverflow={}}if(!Ext.layout.component){Ext.layout.component={}}if(!Ext.layout.component.field){Ext.layout.component.field={}}if(!Ext.layout.container){Ext.layout.container={}}if(!Ext.layout.container.border){Ext.layout.container.border={}}if(!Ext.layout.container.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.list){Ext.list={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.overrides){Ext.overrides={}}if(!Ext.overrides.app){Ext.overrides.app={}}if(!Ext.overrides.app.domain){Ext.overrides.app.domain={}}if(!Ext.overrides.dom){Ext.overrides.dom={}}if(!Ext.overrides.event){Ext.overrides.event={}}if(!Ext.overrides.event.publisher){Ext.overrides.event.publisher={}}if(!Ext.overrides.plugin){Ext.overrides.plugin={}}if(!Ext.overrides.util){Ext.overrides.util={}}if(!Ext.panel){Ext.panel={}}if(!Ext.perf){Ext.perf={}}if(!Ext.picker){Ext.picker={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.promise){Ext.promise={}}if(!Ext.resizer){Ext.resizer={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.selection){Ext.selection={}}if(!Ext.state){Ext.state={}}if(!Ext.tab){Ext.tab={}}if(!Ext.theme){Ext.theme={}}if(!Ext.theme.crisp){Ext.theme.crisp={}}if(!Ext.theme.crisp.view){Ext.theme.crisp.view={}}if(!Ext.theme.neptune){Ext.theme.neptune={}}if(!Ext.theme.neptune.form){Ext.theme.neptune.form={}}if(!Ext.theme.neptune.form.field){Ext.theme.neptune.form.field={}}if(!Ext.theme.neptune.grid){Ext.theme.neptune.grid={}}if(!Ext.theme.neptune.grid.column){Ext.theme.neptune.grid.column={}}if(!Ext.theme.neptune.layout){Ext.theme.neptune.layout={}}if(!Ext.theme.neptune.layout.component){Ext.theme.neptune.layout.component={}}if(!Ext.theme.neptune.menu){Ext.theme.neptune.menu={}}if(!Ext.theme.neptune.panel){Ext.theme.neptune.panel={}}if(!Ext.theme.neptune.picker){Ext.theme.neptune.picker={}}if(!Ext.theme.neptune.resizer){Ext.theme.neptune.resizer={}}if(!Ext.theme.neptune.toolbar){Ext.theme.neptune.toolbar={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}if(!Ext.tree){Ext.tree={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.ux){Ext.ux={}}if(!Ext.ux.colorpick){Ext.ux.colorpick={}}if(!Ext.ux.dd){Ext.ux.dd={}}if(!Ext.ux.layout){Ext.ux.layout={}}if(!Ext.ux.rating){Ext.ux.rating={}}if(!Ext.view){Ext.view={}}if(!Ext.window){Ext.window={}}var Settings=Settings||{};var Target=Target||{};if(!Target.model){Target.model={}}if(!Target.store){Target.store={}}if(!Target.view){Target.view={}}if(!Target.view.association){Target.view.association={}}if(!Target.view.catalog){Target.view.catalog={}}if(!Target.view.home){Target.view.home={}}if(!Target.view.main){Target.view.main={}}if(!Target.view.objects){Target.view.objects={}}if(!Target.view.preview){Target.view.preview={}}if(!Target.view.settings){Target.view.settings={}}if(!Target.view.wizard){Target.view.wizard={}}var common=common||{};if(!common.comment){common.comment={}}if(!common.contact){common.contact={}}if(!common.data){common.data={}}if(!common.data.proxy){common.data.proxy={}}if(!common.footer){common.footer={}}if(!common.header){common.header={}}if(!common.help){common.help={}}if(!common.model){common.model={}}if(!common.statistics){common.statistics={}}if(!common.store){common.store={}}var visiomatic=visiomatic||{};if(!visiomatic.catalog){visiomatic.catalog={}}if(!visiomatic.crop){visiomatic.crop={}}if(!visiomatic.download){visiomatic.download={}}if(!visiomatic.filter){visiomatic.filter={}}if(!visiomatic.model){visiomatic.model={}}if(!visiomatic.store){visiomatic.store={}}(function(q){var e,p=['constructor','toString','valueOf','toLocaleString'],n={},m={},k=0,l,j,a,b,o,f,c,d,g,h,i,t=function(){var s,t;j=Ext.Base;a=Ext.ClassManager;b=Ext.Class;for(s=p.length;s-->0;){t=1<0;){H=e[l];g[H]=j[H]}if(c.$isFunction){c=c(g)}v.data=c;x=c.statics;delete c.statics;c.$className=u;if('$className' in c){g.$className=c.$className}g.extend(Q);r=g.prototype;if(E){g.xtype=c.xtype=E[0];r.xtypes=E}r.xtypesChain=M;r.xtypesMap=O;c.alias=B;m.triggerExtended(g,c,v);if(c.onClassExtended){g.onExtended(c.onClassExtended,g);delete c.onClassExtended}if(c.privates&&h){h.call(b,g,c)}if(x){if(i){g.addStatics(x)}else {for(w in x){if(x.hasOwnProperty(w)){t=x[w];if(t&&t.$isFunction&&!t.$isClass&&t!==Ext.emptyFn&&t!==Ext.identityFn){g[w]=I=t;I.$owner=g;I.$name=w}g[w]=t}}}}if(c.inheritableStatics){g.addInheritableStatics(c.inheritableStatics);delete c.inheritableStatics}if(r.onClassExtended){m.onExtended(r.onClassExtended,m);delete r.onClassExtended}if(c.platformConfig&&d){d.call(b,g,c);delete c.platformConfig}if(c.config){o.call(b,g,c)}if(c.cachedConfig&&f){f.call(b,g,c);delete c.cachedConfig}v.onBeforeCreated(g,v.data,v);for(l=0,y=D&&D.length;l0){c--;a[c]='var Ext=window.'+Ext.name+';'+a[c]}}d=a.join('');b=e[d];if(!b){b=Function.prototype.constructor.apply(Function.prototype,a);e[d]=b}return b},functionFactory:function(){var b=Array.prototype.slice.call(arguments),a;if(Ext.isSandboxed){a=b.length;if(a>0){a--;b[a]='var Ext=window.'+Ext.name+';'+b[a]}}return Function.prototype.constructor.apply(Function.prototype,b)},Logger:{verbose:a,log:a,info:a,warn:a,error:function(a){throw new Error(a)},deprecate:a},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:function(){var a={};return function(e,c){if(!e){return []}else {if(!c){return [e]}}var g=a[c]||(a[c]=new RegExp('\\\\'+c,'g')),f=[],d,b;d=e.split(c);while((b=d.shift())!==undefined){while(b.charAt(b.length-1)==='\\'&&d.length>0){b=b+c+d.shift()}b=b.replace(g,c);f.push(b)}return f}}()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=!0})();Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=!0);(function(){function toString(){var d=this,b=d.sourceClass,a=d.sourceMethod,c=d.msg;if(a){if(c){a+='(): ';a+=c}else {a+='()'}}if(b){a=a?b+'.'+a:b}return a||c||''}Ext.Error=function(b){if(Ext.isString(b)){b={msg:b}}var a=new Error();Ext.apply(a,b);a.message=a.message||a.msg;a.toString=toString;return a};Ext.apply(Ext.Error,{ignore:!1,raise:function(a){a=a||{};if(Ext.isString(a)){a={msg:a}}var d=this,b=d.raise.caller,e,c;if(b===Ext.raise){b=b.caller}if(b){if(!a.sourceMethod&&(c=b.$name)){a.sourceMethod=c}if(!a.sourceClass&&(c=b.$owner)&&(c=c.$className)){a.sourceClass=c}}if(d.handle(a)!==!0){e=toString.call(a);throw new Ext.Error(a)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=function(){var c=Array.prototype,b=c.slice,f=function(){var a=[],b,c=20;if(!a.splice){return !1}while(c--){a.push('A')}a.splice(15,0,'F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F','F');b=a.length;a.splice(13,0,'XXX');if(b+1!==a.length){return !1}return !0}(),i='indexOf' in c,h=!0;function stableSort(b,e){var d=b.length,c=new Array(d),a;for(a=0;ac){for(b=l;b--;){a[h+b]=a[c+b]}}}if(e&&f===j){a.length=j;a.push.apply(a,d)}else {a.length=j+e;for(b=0;b>1;f=d(i,h[e]);if(f>=0){c=e+1}else {if(f<0){b=e-1}}}return c},defaultCompare:function(a,b){return ab?1:0},lexicalCompare:function(a,b){a=String(a);b=String(b);return ab?1:0},each:function(c,e,d,g){c=a.from(c);var b,f=c.length;if(g!==!0){for(b=0;b-1;b--){if(e.call(d||c[b],c[b],b,c)===!1){return b}}}return !0},forEach:'forEach' in c?function(a,c,b){return a.forEach(c,b)}:function(b,d,c){for(var a=0,e=b.length;a=0&&b>>0,c=e;if(arguments.length<3){while(!0){if(b in a){c=a[b++];break}if(++b>=d){throw new TypeError('Reduce of empty array with no initial value')}}}for(;bb){b=a}}}return b},mean:function(b){return b.length>0?a.sum(b)/b.length:undefined},sum:function(b){var d=0,a,e,c;for(a=0,e=b.length;ab?1:-1,a;for(a=b;a!=d;a+=e){c[a]=c[a+e]}c[d]=f},replace:j,splice:p,push:function(a){var d=arguments.length,c=1,b;if(a===undefined){a=[]}else {if(!Ext.isArray(a)){a=[a]}}for(;c=d){a=0}else {a=d-a}}if(a===0){b=c+b}else {if(a>=b.length){b+=c}else {b=b.substr(0,a)+c+b.substr(a)}}return b},startsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.lastIndexOf(a,0)===0}return c},endsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.indexOf(a,b.length-a.length)!==-1}return c},createVarName:function(a){return a.replace(l,'')},htmlEncode:function(a){return !a?a:String(a).replace(b,h)},htmlDecode:function(a){return !a?a:String(a).replace(d,g)},hasHtmlCharacters:function(a){return b.test(a)},addCharacterEntities:function(g){var i=[],h=[],e,f;for(e in g){f=g[e];a[e]=f;c[f]=e;i.push(f);h.push(e)}b=new RegExp('('+i.join('|')+')','g');d=new RegExp('('+h.join('|')+'|&#[0-9]{1,5};)','g')},resetCharacterEntities:function(){c={};a={};this.addCharacterEntities({'&':'&','>':'>','<':'<','"':'"',''':"'"})},urlAppend:function(a,b){if(!Ext.isEmpty(b)){return a+(a.indexOf('?')===-1?'?':'&')+b}return a},trim:function(a){if(a){a=a.replace(m,'')}return a||''},capitalize:function(a){if(a){a=a.charAt(0).toUpperCase()+a.substr(1)}return a||''},uncapitalize:function(a){if(a){a=a.charAt(0).toLowerCase()+a.substr(1)}return a||''},ellipsis:function(a,c,e){if(a&&a.length>c){if(e){var b=a.substr(0,c-2),d=Math.max(b.lastIndexOf(' '),b.lastIndexOf('.'),b.lastIndexOf('!'),b.lastIndexOf('?'));if(d!==-1&&d>=c-15){return b.substr(0,d)+'...'}}return a.substr(0,c-3)+'...'}return a},escapeRegex:function(a){return a.replace(i,'\\$1')},createRegex:function(b,d,e,c){var a=b;if(b!=null&&!b.exec){a=f.escapeRegex(String(b));if(d!==!1){a='^'+a}if(e!==!1){a+='$'}a=new RegExp(a,c!==!1?'i':'')}return a},escape:function(a){return a.replace(n,'\\$1')},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,d,b){var a=String(c);b=b||' ';while(a.length daysInMonth) {','d = daysInMonth;','}','}','h = from(h, from(def.h, dt.getHours()));','i = from(i, from(def.i, dt.getMinutes()));','s = from(s, from(def.s, dt.getSeconds()));','ms = from(ms, from(def.ms, dt.getMilliseconds()));','if(z >= 0 && y >= 0){','v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);','}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){','v = null;','}else{','if (W) {','year = y || (new Date()).getFullYear();','jan4 = new Date(year, 0, 4, 0, 0, 0);','d = jan4.getDay();','week1monday = new Date(jan4.getTime() - ((d === 0 ? 6 : d - 1) * 86400000));','v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));','} else {','v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);','}','}','}','}','if(v){','if(zz != null){','v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);','}else if(o){',"v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));",'}','}','return (v != null) ? v : null;'].join('\n');if(!Date.prototype.toISOString){Date.prototype.toISOString=function(){var a=this;return c(a.getUTCFullYear(),4,'0')+'-'+c(a.getUTCMonth()+1,2,'0')+'-'+c(a.getUTCDate(),2,'0')+'T'+c(a.getUTCHours(),2,'0')+':'+c(a.getUTCMinutes(),2,'0')+':'+c(a.getUTCSeconds(),2,'0')+'.'+c(a.getUTCMilliseconds(),3,'0')+'Z'}}function xf(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(e,function(d,c){return b[c]})}return a={now:b.now,toString:function(a){if(!a){a=new b()}return a.getFullYear()+'-'+c(a.getMonth()+1,2,'0')+'-'+c(a.getDate(),2,'0')+'T'+c(a.getHours(),2,'0')+':'+c(a.getMinutes(),2,'0')+':'+c(a.getSeconds(),2,'0')},getElapsed:function(b,c){return Math.abs(b-(c||a.now()))},useStrict:!1,formatCodeToRegex:function(c,d){var b=a.parseCodes[c];if(b){b=typeof b==='function'?b():b;a.parseCodes[c]=b}return b?Ext.applyIf({c:b.c?xf(b.c,d||'{0}'):b.c},b):{g:0,c:null,s:Ext.String.escapeRegex(c)}},parseFunctions:{'MS':function(c,d){var a=(c||'').match(f);return a?new b(((a[1]||'')+a[2])*1):null},'time':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a)}return null},'timestamp':function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a*1000)}return null}},parseRegexes:[],formatFunctions:{'MS':function(){return '\\/Date('+this.getTime()+')\\/'},'time':function(){return this.getTime().toString()},'timestamp':function(){return a.format(this,'U')}},y2kYear:50,MILLI:'ms',SECOND:'s',MINUTE:'mi',HOUR:'h',DAY:'d',MONTH:'mo',YEAR:'y',defaults:{},dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:'m/d/Y',getShortMonthName:function(b){return a.monthNames[b].substring(0,3)},getShortDayName:function(b){return a.dayNames[b].substring(0,3)},getMonthNumber:function(b){return a.monthNumbers[b.substring(0,1).toUpperCase()+b.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return h.test(a.replace(d,''))},formatContainsDateInfo:function(a){return g.test(a.replace(d,''))},unescapeFormat:function(a){return a.replace(i,'')},formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')",D:'Ext.Date.getShortDayName(m.getDay())',j:'m.getDate()',l:'Ext.Date.dayNames[m.getDay()]',N:'(m.getDay() ? m.getDay() : 7)',S:'Ext.Date.getSuffix(m)',w:'m.getDay()',z:'Ext.Date.getDayOfYear(m)',W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')",F:'Ext.Date.monthNames[m.getMonth()]',m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')",M:'Ext.Date.getShortMonthName(m.getMonth())',n:'(m.getMonth() + 1)',t:'Ext.Date.getDaysInMonth(m)',L:'(Ext.Date.isLeapYear(m) ? 1 : 0)',o:'(m.getFullYear() + (Ext.Date.getWeekOfYear(m) == 1 && m.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(m) >= 52 && m.getMonth() < 11 ? -1 : 0)))',Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')",y:"('' + m.getFullYear()).substring(2, 4)",a:"(m.getHours() < 12 ? 'am' : 'pm')",A:"(m.getHours() < 12 ? 'AM' : 'PM')",g:'((m.getHours() % 12) ? m.getHours() % 12 : 12)',G:'m.getHours()',h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(m.getHours(), 2, '0')",i:"Ext.String.leftPad(m.getMinutes(), 2, '0')",s:"Ext.String.leftPad(m.getSeconds(), 2, '0')",u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')",O:'Ext.Date.getGMTOffset(m)',P:'Ext.Date.getGMTOffset(m, true)',T:'Ext.Date.getTimezone(m)',Z:'(m.getTimezoneOffset() * -60)',c:function(){var e='Y-m-dTH:i:sP',d=[],b,f=e.length,c;for(b=0;b me.y2kYear ? 1900 + ty : 2000 + ty;\n',s:'(\\d{2})'},a:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(am|pm|AM|PM)',calcAtEnd:!0},A:{g:1,c:'if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}',s:'(AM|PM|am|pm)',calcAtEnd:!0},g:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|[0-9])'},G:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|1[0-9]|[0-9])'},h:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(1[0-2]|0[1-9])'},H:{g:1,c:'h = parseInt(results[{0}], 10);\n',s:'(2[0-3]|[0-1][0-9])'},i:{g:1,c:'i = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},s:{g:1,c:'s = parseInt(results[{0}], 10);\n',s:'([0-5][0-9])'},u:{g:1,c:'ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n',s:'(\\d+)'},O:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),','mn = o.substring(3,5) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{4})'},P:{g:1,c:['o = results[{0}];','var sn = o.substring(0,1),','hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),','mn = o.substring(4,6) % 60;',"o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'),s:'([+-]\\d{2}:\\d{2})'},T:{g:0,c:null,s:'[A-Z]{1,5}'},Z:{g:1,c:'zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n',s:'([+-]?\\d{1,5})'},c:function(){var d=[],b=[a.formatCodeToRegex('Y',1),a.formatCodeToRegex('m',2),a.formatCodeToRegex('d',3),a.formatCodeToRegex('H',4),a.formatCodeToRegex('i',5),a.formatCodeToRegex('s',6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:['if(results[8]) {',"if(results[8] == 'Z'){",'zz = 0;',"}else if (results[8].indexOf(':') > -1){",a.formatCodeToRegex('P',8).c,'}else{',a.formatCodeToRegex('O',8).c,'}','}'].join('\n')}],c,e;for(c=0,e=b.length;c0?'-':'+')+Ext.String.leftPad(Math.floor(Math.abs(a)/60),2,'0')+(b?':':'')+Ext.String.leftPad(Math.abs(a%60),2,'0')},getDayOfYear:function(c){var e=0,b=a.clone(c),f=c.getMonth(),d;for(d=0,b.setDate(1),b.setMonth(0);d28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.MONTH,c)).getDate())};b.setDate(d);b.setMonth(f.getMonth()+c);break;case a.YEAR:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.YEAR,c)).getDate())};b.setDate(d);b.setFullYear(f.getFullYear()+c);break;}}if(g){switch(h.toLowerCase()){case a.MILLI:e=1;break;case a.SECOND:e=1000;break;case a.MINUTE:e=1000*60;break;case a.HOUR:e=1000*60*60;break;case a.DAY:e=1000*60*60*24;break;case a.MONTH:d=a.getDaysInMonth(b);e=1000*60*60*24*d;break;case a.YEAR:d=a.isLeapYear(b)?366:365;e=1000*60*60*24*d;break;}if(e){b.setTime(b.getTime()+e*g)}}return b},subtract:function(d,b,c){return a.add(d,b,-c)},between:function(c,b,d){var a=c.getTime();return b.getTime()<=a&&a<=d.getTime()},compat:function(){var c,g=['useStrict','formatCodeToRegex','parseFunctions','parseRegexes','formatFunctions','y2kYear','MILLI','SECOND','MINUTE','HOUR','DAY','MONTH','YEAR','defaults','dayNames','monthNames','monthNumbers','getShortMonthName','getShortDayName','getMonthNumber','formatCodes','isValid','parseDate','getFormatCode','createFormat','createParser','parseCodes'],h=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],j=g.length,i=h.length,f,e,d;for(d=0;dd){return b-1};return b;case a.YEAR:b=d.getFullYear()-e.getFullYear();if(a.add(e,f,b)>d){return b-1}else {return b};}},align:function(e,f,d){var c=new b(+e);switch(f.toLowerCase()){case a.MILLI:return c;case a.SECOND:c.setUTCSeconds(c.getUTCSeconds()-c.getUTCSeconds()%d);c.setUTCMilliseconds(0);return c;case a.MINUTE:c.setUTCMinutes(c.getUTCMinutes()-c.getUTCMinutes()%d);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.HOUR:c.setUTCHours(c.getUTCHours()-c.getUTCHours()%d);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.DAY:if(d===7||d===14){c.setUTCDate(c.getUTCDate()-c.getUTCDay()+1)};c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.MONTH:c.setUTCMonth(c.getUTCMonth()-(c.getUTCMonth()-1)%d,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.YEAR:c.setUTCFullYear(c.getUTCFullYear()-c.getUTCFullYear()%d,1,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return e;}}}}();Ext.Function=function(){var i=0,f,c=[],l=[],m=0,e={},d=window,b=Ext.global,h=!!(b.setImmediate&&b.clearImmediate),k=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||function(c){var b=Ext.now(),a=Math.max(0,16-(b-i)),e=d.setTimeout(function(){c(b+a)},a);i=b+a;return e},g=function(){var h=c.length,g,d,a;f=null;for(d=0;d0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},b)}a();return 0},interval:function(a,c,d,e,b){a=Ext.Function.bind(a,d,e,b);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else {a()}},c)},createSequence:function(a,b,c){if(!b){return a}else {return function(){var d=a.apply(this,arguments);b.apply(c||this,arguments);return d}}},createBuffered:function(b,c,d,e){var a;return function(){var f=e||Array.prototype.slice.call(arguments,0),g=d||this;if(a){clearTimeout(a)}a=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b,g,f)}else {b.apply(g,f)}},c)}},createAnimationFrame:function(f,d,e,c){var b;c=c||3;return function(){var g=e||Array.prototype.slice.call(arguments,0);d=d||this;if(c===3&&b){a.cancelAnimationFrame(b)}if(c&1||!b){b=a.requestAnimationFrame(function(){b=null;f.apply(d,g)})}}},requestAnimationFrame:function(i,d,h){var a=++m,b=Array.prototype.slice.call(arguments,0);b[3]=a;e[a]=1;c.push(b);if(!f){f=k(Ext.elevateFunction?j:g)}return a},cancelAnimationFrame:function(a){delete e[a]},createThrottled:function(h,f,a){var e=0,d,c,b,g=function(){if(Ext.elevateFunction){Ext.elevateFunction(h,a,c)}else {h.apply(a,c)}e=Ext.now();b=null};return function(){if(!a){a=this}d=Ext.now()-e;c=arguments;if(d>=f){clearTimeout(b);g()}else {if(!b){b=Ext.defer(g,f-d)}}}},createBarrier:function(a,c,b){return function(){if(!--a){c.apply(b,arguments)}}},interceptBefore:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){var f=e.apply(d||this,arguments);c.apply(this,arguments);return f}},interceptAfter:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return b[a]=function(){c.apply(this,arguments);return e.apply(d||this,arguments)}},makeCallback:function(b,a){return function(){return a[b].apply(a,arguments)}},memoize:function(e,c,a){var b={},d=a&&Ext.isFunction(a);return function(g){var f=d?a.apply(c,arguments):g;if(!(f in b)){b[f]=e.apply(c,arguments)}return b[f]}}};Ext.asap=h?function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setImmediate(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}})}:function(b,d,c){if(d!=null||c!=null){b=a.bind(b,d,c)}return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else {b()}},0,!0)},Ext.asapCancel=h?function(a){clearImmediate(a)}:function(a){clearTimeout(a)};Ext.defer=a.defer;Ext.interval=a.interval;Ext.pass=a.pass;Ext.bind=a.bind;Ext.deferCallback=a.requestAnimationFrame;return a}();Ext.Number=new function(){var b=this,d=(0.9).toFixed()!=='1',c=Math,a={count:!1,inclusive:!1,wrap:!0};Ext.apply(b,{Clip:{DEFAULT:a,COUNT:Ext.applyIf({count:!0},a),INCLUSIVE:Ext.applyIf({inclusive:!0},a),NOWRAP:Ext.applyIf({wrap:!1},a)},clipIndices:function(d,c,f){f=f||a;var h=0,i=f.wrap,g,b,e;c=c||[];for(e=0;e<2;++e){g=b;b=c[e];if(b==null){b=h}else {if(e&&f.count){b+=g;b=b>d?d:b}else {if(i){b=b<0?d+b:b}if(e&&f.inclusive){++b}b=b<0?0:b>d?d:b}}h=d}c[0]=g;c[1]=ba?a:d},snap:function(a,c,e,f){var d;if(a===undefined||a=c){a+=c}else {if(d*2<-c){a-=c}}}}return b.constrain(a,e,f)},snapInRange:function(a,d,c,e){var f;c=c||0;if(a===undefined||a=d){a+=d}}if(e!==undefined){if(a>(e=b.snapInRange(e,d,c))){a=e}}return a},sign:function(a){a=+a;if(a===0||isNaN(a)){return a}return a>0?1:-1},toFixed:d?function(d,a){a=a||0;var b=c.pow(10,a);return (c.round(d*b)/b).toFixed(a)}:function(b,a){return b.toFixed(a)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(a,b){return c.floor(c.random()*(b-a+1)+a)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return b.from.apply(this,arguments)}}();(function(){var b=function(){},d=/^\?/,f=/(\[):?([^\]]*)\]/g,e=/^([^\[]+)/,c=/\+/g,a=Ext.Object={chain:Object.create||function(a){b.prototype=a;var c=new b();b.prototype=null;return c},clear:function(a){for(var b in a){delete a[b]}return a},freeze:Object.freeze?function(b,c){if(b&&typeof b==='object'&&!Object.isFrozen(b)){Object.freeze(b);if(c){for(var d in b){a.freeze(b[d],c)}}}return b}:Ext.identityFn,toQueryObjects:function(e,c,f){var g=a.toQueryObjects,d=[],b,h;if(Ext.isArray(c)){for(b=0,h=c.length;b0){o=q.split('=');a=o[0];a=a.replace(c,'%20');a=decodeURIComponent(a);g=o[1];if(g!==undefined){g=g.replace(c,'%20');g=decodeURIComponent(g)}else {g=''}if(!v){if(i.hasOwnProperty(a)){if(!Ext.isArray(i[a])){i[a]=[i[a]]}i[a].push(g)}else {i[a]=g}}else {m=a.match(f);r=a.match(e);a=r[0];k=[];if(m===null){i[a]=g;continue}for(h=0,l=m.length;h@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(b){var c=b,a;if(b&&b.charAt(0)==='<'){a=Ext._resourcePoolRe.exec(b);if(a){c=Ext.getResourcePath(a[3],a[1],a[2])}}return c},urlEncode:function(){var a=Ext.Array.from(arguments),b='';if(Ext.isString(a[1])){b=a[1]+'&';a[1]=!1}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(d){var b=Ext._scrollbarSize;if(d||!b){var c=document.body,a=document.createElement('div');a.style.width=a.style.height='100px';a.style.overflow='scroll';a.style.position='absolute';c.appendChild(a);Ext._scrollbarSize=b={width:a.offsetWidth-a.clientWidth,height:a.offsetHeight-a.clientHeight};c.removeChild(a)}return b},typeOf:function(){var a=/\S/,d=Object.prototype.toString,c={number:1,string:1,'boolean':1,'undefined':1},b={'[object Array]':'array','[object Date]':'date','[object Boolean]':'boolean','[object Number]':'number','[object RegExp]':'regexp'};return function(e){if(e===null){return 'null'}var f=typeof e,g,h;if(c[f]){return f}g=b[h=d.call(e)];if(g){return g}if(f==='function'){return 'function'}if(f==='object'){if(e.nodeType!==undefined){if(e.nodeType===3){return a.test(e.nodeValue)?'textnode':'whitespace'}else {return 'element'}}return 'object'}return h}}(),factory:function(a,f,b,d){var e=Ext.ClassManager,c;if(!a||a.isInstance){if(b&&b!==a){b.destroy()}return a}if(d){if(typeof a==='string'){return e.instantiateByAlias(d+'.'+a)}else {if(Ext.isObject(a)&&'type' in a){return e.instantiateByAlias(d+'.'+a.type,a)}}}if(a===!0){return b||Ext.create(f)}if('xtype' in a){c=e.instantiateByAlias('widget.'+a.xtype,a)}else {if('xclass' in a){c=Ext.create(a.xclass,a)}}if(c){if(b){b.destroy()}return c}if(b){return b.setConfig(a)}return Ext.create(f,a)},log:function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}()});(function(){var b=[''],c=/([^\d\.])/,f=/[^\d]/g,g=/[\-+]/g,h=/\s/g,e=/_/g,d={classic:1,modern:1},a;Ext.Version=a=function(k,p){var b=this,n=b.padModes,o,m,d,h,j,l,i;if(k.isVersion){k=k.version}b.version=i=String(k).toLowerCase().replace(e,'.').replace(g,'');o=i.charAt(0);if(o in n){i=i.substring(1);d=n[o]}else {d=p?n[p]:0}b.pad=d;l=i.search(c);b.shortVersion=i;if(l!==-1){b.release=j=i.substr(l,k.length);b.shortVersion=i.substr(0,l);j=a.releaseValueMap[j]||j}b.releaseValue=j||d;b.shortVersion=b.shortVersion.replace(f,'');b.parts=h=i.split('.');for(m=h.length;m--;){h[m]=parseInt(h[m],10)}if(d===Infinity){h.push(d)}b.major=h[0]||d;b.minor=h[1]||d;b.patch=h[2]||d;b.build=h[3]||d;return b};a.prototype={isVersion:!0,padModes:{'~':NaN,'^':Infinity},release:'',compareTo:function(f){var g=this,m=g.pad,j=g.parts,h=j.length,e=f.isVersion?f:new a(f),n=e.pad,k=e.parts,i=k.length,l=Math.max(h,i),b,c,d;for(b=0;bd){return 1}}c=g.releaseValue;d=e.releaseValue;if(cd){return 1}return 0},toString:function(){return this.version},valueOf:function(){return this.version},getMajor:function(){return this.major},getMinor:function(){return this.minor},getPatch:function(){return this.patch},getBuild:function(){return this.build},getRelease:function(){return this.release},getReleaseValue:function(){return this.releaseValue},isGreaterThan:function(a){return this.compareTo(a)>0},isGreaterThanOrEqual:function(a){return this.compareTo(a)>=0},isLessThan:function(a){return this.compareTo(a)<0},isLessThanOrEqual:function(a){return this.compareTo(a)<=0},equals:function(a){return this.compareTo(a)===0},match:function(a){a=String(a);return this.version.substr(0,a.length)===a},toArray:function(){var a=this;return [a.getMajor(),a.getMinor(),a.getPatch(),a.getBuild(),a.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(a){return this.compareTo(a)>0},lt:function(a){return this.compareTo(a)<0},gtEq:function(a){return this.compareTo(a)>=0},ltEq:function(a){return this.compareTo(a)<=0}};Ext.apply(a,{aliases:{from:{extjs:'ext',core:'core',touch:'modern'},to:{ext:['extjs'],'core':['core'],modern:['touch']}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,'#':-2,p:-1,pl:-1},getComponentValue:function(a){return !a?0:isNaN(a)?this.releaseValueMap[a]||a:parseInt(a,10)},compare:function(b,c){var d=b.isVersion?b:new a(b);return d.compareTo(c)},set:function(g,f,c){var b=a.aliases.to[f],d=c.isVersion?c:new a(c),e;g[f]=d;if(b){for(e=b.length;e-->0;){g[b[e]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,d;if(!b){d=c.ext||c.touch||c.core}else {d=c[a.aliases.from[b]||b]}return d||Ext.getVersion(b)},setCompatVersion:function(b,c){a.set(Ext.compatVersions,b,c)},setVersion:function(b,c){if(b in d){Ext.toolkit=b}Ext.lastRegisteredVersion=a.set(Ext.versions,b,c);return this},getVersion:function(c){var b=Ext.versions;if(!c){return b.ext||b.touch||b.core}return b[a.aliases.from[c]||c]},checkVersion:function(o,j){var p=Ext.isArray(o),s=a.aliases.from,q=p?o:b,t=q.length,n=Ext.versions,r=n.ext||n.touch,l,c,f,i,g,m,d,e,k;if(!p){b[0]=o}for(l=0;l=0){d=d.replace(h,'')}c=d.indexOf('@');if(c<0){e=d;k=r}else {m=d.substring(0,c);if(!(k=n[s[m]||m])){if(j){return !1}continue}e=d.substring(c+1)}c=e.indexOf('-');if(c<0){if(e.charAt(c=e.length-1)==='+'){i=e.substring(0,c);g=null}else {i=g=e}}else {if(c>0){i=e.substring(0,c);g=e.substring(c+1)}else {i=null;g=e.substring(c+1)}}f=!0;if(i){i=new a(i,'~');f=i.ltEq(k)}if(f&&g){g=new a(g,'~');f=g.gtEq(k)}}if(f){if(!j){return !0}}else {if(j){return !1}}}return !!j},deprecate:function(b,e,c,d){if(a.compare(Ext.getVersion(b),e)<1){c.call(d)}}})})();(function(c){var d=c&&c.packages||{},b=c&&c.compatibility,a,e;for(a in d){e=d[a];Ext.setVersion(a,e.version)}if(b){if(Ext.isString(b)){Ext.setCompatVersion('core',b)}else {for(a in b){Ext.setCompatVersion(a,b[a])}}}if(!d.ext&&!d.touch){Ext.setVersion('ext','6.0.1.250');Ext.setVersion('core','6.0.1.250')}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:'_'+b,initializing:'is'+a+'Initializing',apply:'apply'+a,update:'update'+a,get:'get'+a,set:'set'+a,initGet:'initGet'+a,changeEvent:b.toLowerCase()+'change'};c.root=c};Ext.Config.map={};Ext.Config.get=function(a){var b=Ext.Config.map,c=b[a]||(b[a]=new Ext.Config(a));return c};Ext.Config.prototype={self:Ext.Config,isConfig:!0,getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(b,d,f,e){var a,c;if(!d){a=b}else {if(!b){a=d}else {a=Ext.Object.chain(d);for(c in b){if(!e||!(c in a)){a[c]=b[c]}}}}return a},mergeSets:function(a,f,e){var b=f?Ext.Object.chain(f):{},c,d;if(a instanceof Array){for(c=a.length;c--;){d=a[c];if(!e||!(d in b)){b[d]=!0}}}else {if(a){if(a.constructor===Object){for(c in a){d=a[c];if(!e||!(c in b)){b[c]=d}}}else {if(!e||!(a in b)){b[a]=!0}}}}return b},makeGetter:function(){var b=this.name,a=this.names.internal;return function(){var c=this.$configPrefixed?a:b;return this[c]}},makeInitGetter:function(){var e=this.name,a=this.names,d=a.set,c=a.get,b=a.initializing;return function(){var a=this;a[b]=!0;delete a[c];a[d](a.config[e]);delete a[b];return a[c].apply(a,arguments)}},makeSetter:function(){var g=this.name,a=this.names,e=a.internal,f=a.get,d=a.apply,c=a.update,b;b=function(b){var a=this,h=a.$configPrefixed?e:g,i=a[h];delete a[f];if(!a[d]||(b=a[d](b,i))!==undefined){if(b!==(i=a[h])){a[h]=b;if(a[c]){a[c](b,i)}}}return a};b.$isDefault=!0;return b},makeEventedSetter:function(){var i=this.name,a=this.names,f=a.internal,h=a.get,d=a.apply,b=a.update,e=a.changeEvent,g=function(a,c,e,d){a[d]=c;if(a[b]){a[b](c,e)}},c;c=function(c){var a=this,k=a.$configPrefixed?f:i,j=a[k];delete a[h];if(!a[d]||(c=a[d](c,j))!==undefined){if(c!==(j=a[k])){if(a.isConfiguring){a[k]=c;if(a[b]){a[b](c,j)}}else {a.fireEventedAction(e,[a,c,j],g,a,[a,c,j,k])}}}return a};c.$isDefault=!0;return c}};(function(){var c=Ext.Config,b=c.map,a=Ext.Object;Ext.Configurator=function(d){var b=this,e=d.prototype,c=d.superclass?d.superclass.self.$config:null;b.cls=d;b.superCfg=c;if(c){b.configs=a.chain(c.configs);b.cachedConfigs=a.chain(c.cachedConfigs);b.initMap=a.chain(c.initMap);b.values=a.chain(c.values);b.needsFork=c.needsFork}else {b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}e.config=e.defaultConfig=b.values;d.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:!1,initList:null,add:function(t,l){var i=this,n=i.cls,k=i.configs,v=i.cachedConfigs,p=i.initMap,g=n.prototype,r=l&&l.$config.configs,u=i.values,m,f,s,h,b,j,e,q,o,d;for(e in t){d=t[e];m=d&&d.constructor===Object;f=m&&'$value' in d?d:null;if(f){s=!!f.cached;d=f.$value;m=d&&d.constructor===Object}h=f&&f.merge;b=k[e];if(b){if(l){h=b.merge;if(!h){continue}f=null}else {h=h||b.merge}j=u[e];if(h){d=h.call(b,d,j,n,l)}else {if(m){if(j&&j.constructor===Object){d=a.merge({},j,d)}}}}else {if(r){b=r[e];f=null}else {b=c.get(e)}k[e]=b;if(b.cached||s){v[e]=!0}q=b.names;if(!g[o=q.get]){g[o]=b.getter||b.getGetter()}if(!g[o=q.set]){g[o]=f&&f.evented?b.eventedSetter||b.getEventedSetter():b.setter||b.getSetter()}}if(f){if(b.owner!==n){k[e]=b=Ext.Object.chain(b);b.owner=n}Ext.apply(b,f);delete b.$value}if(!i.needsFork&&d&&(d.constructor===Object||d instanceof Array)){i.needsFork=!0}if(d!==null){p[e]=!0}else {if(g.$configPrefixed){g[k[e].names.internal]=null}else {g[k[e].name]=null}if(e in p){p[e]=!1}}u[e]=d}},configure:function(c,h){var k=this,u=k.configs,x=k.initMap,q=k.initListMap,o=k.initList,j=k.cls.prototype,i=k.values,r=0,v=!o,n,b,m,w,d,p,l,f,e,g,t,s,y;i=k.needsFork?a.fork(i):a.chain(i);c.isConfiguring=!0;if(v){k.initList=o=[];k.initListMap=q={};c.isFirstInstance=!0;for(e in x){w=x[e];b=u[e];t=b.cached;if(w){f=b.names;g=i[e];if(!j[f.set].$isDefault||j[f.apply]||j[f.update]||typeof g==='object'){if(t){(n||(n=[])).push(b)}else {o.push(b);q[e]=!0}c[f.get]=b.initGetter||b.getInitGetter()}else {j[b.getInternalName(j)]=g}}else {if(t){j[b.getInternalName(j)]=undefined}}}}l=n&&n.length;if(l){for(d=0;d0){for(a=0;ac.maxSize){c.unlinkEntry(f.prev,!0);--c.count}}return d.value},evict:Ext.emptyFn,linkEntry:function(c){var d=this.head,e=d.next;c.next=e;c.prev=d;d.next=c;e.prev=c},unlinkEntry:function(c,f){var d=c.next,e=c.prev;e.next=d;d.prev=e;if(f){this.evict(c.key,c.value)}}};a.destroy=a.clear})();(function(){var a,d=Ext.Base,b=d.$staticMembers,c=function(a,b){return a.length-b.length||(ab?1:0)};function makeCtor(a){function constructor(){return this.constructor.apply(this,arguments)||null}return constructor}Ext.Class=a=function(b,c,d){if(typeof b!='function'){d=c;c=b;b=null}if(!c){c={}}b=a.create(b,c);a.process(b,c,d);return b};Ext.apply(a,{makeCtor:makeCtor,onBeforeCreated:function(a,c,b){a.addMembers(c);b.onCreated.call(a,a)},create:function(a,f){var e=b.length,c;if(!a){a=makeCtor()}while(e--){c=b[e];a[c]=d[c]}return a},process:function(l,f,k){var j=f.preprocessors||a.defaultPreprocessors,o=this.preprocessors,e={onBeforeCreated:this.onBeforeCreated},d=[],b,c,g,n,h,m,i;delete f.preprocessors;l._classHooks=e;for(g=0,n=j.length;g0){b=h.test(c[d])}c=o[a];if(c&&!b){d=c.length;while(!b&&d-->0){b=h.test(c[d])}}}if(b){i[a]=1;l.push(a)}}}}}return l},getPath:function(a){var e=this,d=e.paths,b='',c;if(a in d){b=d[a]}else {c=e.getPrefix(a);if(c){a=a.substring(c.length+1);b=d[c];if(b){b+='/'}}b+=a.replace(e.dotRe,'/')+'.js'}return b},getPrefix:function(a){if(a in this.paths){return a}var d=this.getPrefixes(),e=d.length,b,c;while(e-->0){b=(c=d[e]).length;if(b0){b=i[d];f=c;c=b.value||c[b.name];if(!c&&h){f[b.name]=c={}}}return c},setNamespace:function(f,d){var b=a.getNamespaceEntry(f),c=Ext.global;if(b.parent){c=a.lookupName(b.parent,!0)}c[b.name]=d;return d},setXType:function(i,d){var f=i.$className,k=f?i:a.get(f=i),b=k.prototype,j=b.xtypes,c=b.xtypesChain,h=b.xtypesMap;if(!b.hasOwnProperty('xtypes')){b.xtypes=j=[];b.xtypesChain=c=c?c.slice(0):[];b.xtypesMap=h=Ext.apply({},h)}a.addAlias(f,'widget.'+d,!0);j.push(d);c.push(d);h[d]=!0},set:function(b,d){var c=a.getName(d);a.classes[b]=a.setNamespace(b,d);if(c&&c!==b){a.addAlternate(c,b)}return a},get:function(b){return a.classes[b]||a.lookupName(b,!1)},addNameAliasMappings:function(b){a.addAlias(b)},addNameAlternateMappings:function(b){a.addAlternate(b)},getByAlias:function(b){return a.get(a.getNameByAlias(b))},getByConfig:function(c,d){var f=c.xclass,b;if(f){b=f}else {b=c.xtype;if(b){d='widget.'}else {b=c.type}b=a.getNameByAlias(d+b)}return a.get(b)},getName:function(a){return a&&a.$className||''},getClass:function(a){return a&&a.self||null},create:function(c,b,f){var d=q(c);if(typeof b==='function'){b=b(d)}b.$className=c;return new n(d,b,function(){var m=b.postprocessors||a.defaultPostprocessors,s=a.postprocessors,i=[],d,j,q,k,p,h,l;delete b.postprocessors;for(j=0,q=m.length;j0;){c=a.lookupName(arguments[b],!0)}return c}});Ext.addRootNamespaces=a.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;n.registerPreprocessor('className',function(b,a){if('$className' in a){b.$className=a.$className}},!0,'first');n.registerPreprocessor('alias',function(q,d){var l=q.prototype,c=g(d.xtype),i=g(d.alias),j='widget.',p=j.length,k=Array.prototype.slice.call(l.xtypesChain||[]),h=Ext.merge({},l.xtypesMap||{}),a,f,m,b;for(a=0,f=i.length;a=d){Ext[o+'p']=!0}}}if(n.is.Opera&&parseInt(a,10)<=12){Ext.isOpera12m=!0}Ext.chromeVersion=Ext.isChrome?a:0;Ext.firefoxVersion=Ext.isFirefox?a:0;Ext.ieVersion=Ext.isIE?a:0;Ext.operaVersion=Ext.isOpera?a:0;Ext.safariVersion=Ext.isSafari?a:0;Ext.webKitVersion=Ext.isWebKit?a:0;this.setFlag(c+a,!0,r);this.setFlag(c+f.getShortVersion())}for(d in j){if(j.hasOwnProperty(d)){h=j[d];this.setFlag(h,c===h)}}this.setFlag(h);if(l){this.setFlag(g+(l.getMajor()||''));this.setFlag(g+l.getShortVersion())}for(d in k){if(k.hasOwnProperty(d)){h=k[d];this.setFlag(h,g===h,r)}}this.setFlag('Standalone',!!navigator.standalone);this.setFlag('Ripple',!!document.getElementById('tinyhippos-injected')&&!Ext.isEmpty(window.top.ripple));this.setFlag('WebWorks',!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){q=!0;this.setFlag('PhoneGap');this.setFlag('Cordova')}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(e)){q=!0}this.setFlag('WebView',q);this.isStrict=Ext.isStrict=document.compatMode==='CSS1Compat';this.isSecure=Ext.isSecure;this.identity=c+a+(this.isStrict?'Strict':'Quirks')};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{webkit:'WebKit',gecko:'Gecko',presto:'Presto',trident:'Trident',other:'Other'},enginePrefixes:{webkit:'AppleWebKit/',gecko:'Gecko/',presto:'Presto/',trident:'Trident/'},styleDashPrefixes:{WebKit:'-webkit-',Gecko:'-moz-',Trident:'-ms-',Presto:'-o-',Other:''},stylePrefixes:{WebKit:'Webkit',Gecko:'Moz',Trident:'ms',Presto:'O',Other:''},propertyPrefixes:{WebKit:'webkit',Gecko:'moz',Trident:'ms',Presto:'o',Other:''},is:function(a){return !!this.is[a]},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(b,a,c){if(a===undefined){a=!0}this.is[b]=a;this.is[b.toLowerCase()]=a;if(c){Ext['is'+b]=a}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(b){var a=this.propertyPrefixes[this.engineName];if(a.length>0){return a+Ext.String.capitalize(b)}return b},getPreferredTranslationMethod:function(a){if(typeof a==='object'&&'translationMethod' in a&&a.translationMethod!=='auto'){return a.translationMethod}else {return 'csstransform'}}};(function(a){Ext.browser=new Ext.env.Browser(a,!0);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":'about:blank'})(Ext.global.navigator.userAgent);Ext.env.OS=function(j,k,b){var n=this,g=Ext.Boot.osNames,h=Ext.Boot.osPrefixes,a,c='',m=n.is,d,l,f,i,e;b=b||Ext.browser;for(d in h){if(h.hasOwnProperty(d)){l=h[d];f=j.match(new RegExp('(?:'+l+')([^\\s;]+)'));if(f){a=g[d];e=f[1];if(e&&e==='HTC_'){c=new Ext.Version('2.3')}else {if(e&&e==='Silk/'){c=new Ext.Version('2.3')}else {c=new Ext.Version(f[f.length-1])}}break}}}if(!a){a=g[(j.toLowerCase().match(/mac|win|linux/)||['other'])[0]];c=new Ext.Version('')}this.name=a;this.version=c;if(k){this.setFlag(k.replace(/ simulator$/i,''))}this.setFlag(a);if(c){this.setFlag(a+(c.getMajor()||''));this.setFlag(a+c.getShortVersion())}for(d in g){if(g.hasOwnProperty(d)){i=g[d];if(!m.hasOwnProperty(a)){this.setFlag(i,a===i)}}}if(this.name==='iOS'&&window.screen.height===568){this.setFlag('iPhone5')}if(b.is.Safari||b.is.Silk){if(this.is.Android2||this.is.Android3||b.version.shortVersion===501){b.setFlag('AndroidStock')}if(this.is.Android4){b.setFlag('AndroidStock');b.setFlag('AndroidStock4')}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(b,a){if(a===undefined){a=!0}if(this.flags){this.flags[b]=a}this.is[b]=a;this.is[b.toLowerCase()]=a;return this}};(function(){var h=Ext.global.navigator,i=h.userAgent,e=Ext.env.OS,f=Ext.is||(Ext.is={}),a,c,b;e.prototype.flags=f;Ext.os=a=new e(i,h.platform);c=a.name;Ext['is'+c]=!0;Ext.isMac=f.Mac=f.MacOS;var d=window.location.search.match(/deviceType=(Tablet|Phone)/),g=window.deviceType;if(d&&d[1]){b=d[1]}else {if(g==='iPhone'){b='Phone'}else {if(g==='iPad'){b='Tablet'}else {if(!a.is.Android&&!a.is.iOS&&!a.is.WindowsPhone&&/Windows|Linux|MacOS/.test(c)){b='Desktop';Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else {if(a.is.iPad||a.is.RIMTablet||a.is.Android3||Ext.browser.is.Silk||a.is.Android&&i.search(/mobile/i)===-1){b='Tablet'}else {b='Phone'}}}}}a.setFlag(b,!0);a.deviceType=b;delete e.prototype.flags})();Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a='div'}else {if(typeof a!=='string'){return a}}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(a,d){var b=this.getTestElement(d).style,c=Ext.String.capitalize(a);if(typeof b[a]!=='undefined'||typeof b[Ext.browser.getStylePrefix(a)+c]!=='undefined'){return !0}return !1},isStyleSupportedWithoutPrefix:function(b,c){var a=this.getTestElement(c).style;if(typeof a[b]!=='undefined'){return !0}return !1},isEventSupported:function(e,d){if(d===undefined){d=window}var a=this.getTestElement(d),b='on'+e.toLowerCase(),c=b in a;if(!c){if(a.setAttribute&&a.removeAttribute){a.setAttribute(b,'');c=typeof a[b]==='function';if(typeof a[b]!=='undefined'){a[b]=undefined}a.removeAttribute(b)}}return c},getStyle:function(a,c){var b=a.ownerDocument.defaultView,d=b?b.getComputedStyle(a,null):a.currentStyle;return (d||a.style)[c]},getSupportedPropertyName:function(c,a){var b=Ext.browser.getVendorProperyName(a);if(b in c){return b}else {if(a in c){return a}}return null},detect:function(h){var c=this,g=document,m=c.toRun||c.tests,i=m.length,f=g.createElement('div'),k=[],j=Ext.supports,n=c.has,a,e,b,l,d;f.innerHTML='
    ';if(h){g.body.appendChild(f)}l=c.preDetected[Ext.browser.identity]||[];while(i--){b=m[i];d=l[i];a=b.name;e=b.names;if(d===undefined){if(!h&&b.ready){k.push(b);continue}d=b.fn.call(c,g,f)}if(a){j[a]=n[a]=d}else {if(e){while(e.length){a=e.pop();j[a]=n[a]=d}}}}if(h){g.body.removeChild(f)}c.toRun=k},report:function(){var b=[],c=this.tests.length,a;for(a=0;a
    ';b=a.childNodes.length===1;a.innerHTML='';return b}},{name:'touchScroll',fn:function(){var a=0;if(Ext.os.is.Desktop&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)){a=1}else {if(Ext.supports.Touch){a=2}}return a}},{name:'Touch',fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return Ext.supports.TouchEvents&&a!==1||a>1}else {return Ext.supports.TouchEvents||a>0}}},{name:'TouchEvents',fn:function(){return this.isEventSupported('touchend')}},{name:'PointerEvents',fn:function(){return navigator.pointerEnabled}},{name:'MSPointerEvents',fn:function(){return navigator.msPointerEnabled}},{name:'Orientation',fn:function(){return 'orientation' in window&&this.isEventSupported('orientationchange')}},{name:'OrientationChange',fn:function(){return this.isEventSupported('orientationchange')}},{name:'DeviceMotion',fn:function(){return this.isEventSupported('devicemotion')}},{names:['Geolocation','GeoLocation'],fn:function(){return 'geolocation' in window.navigator}},{name:'SqlDatabase',fn:function(){return 'openDatabase' in window}},{name:'WebSockets',fn:function(){return 'WebSocket' in window}},{name:'Range',fn:function(){return !!document.createRange}},{name:'CreateContextualFragment',fn:function(){var a=!!document.createRange?document.createRange():!1;return a&&!!a.createContextualFragment}},{name:'History',fn:function(){return 'history' in window&&'pushState' in window.history}},{name:'Css3dTransforms',fn:function(){return this.has('CssTransforms')&&this.isStyleSupported('perspective')}},{name:'CssTransforms',fn:function(){return this.isStyleSupported('transform')}},{name:'CssTransformNoPrefix',fn:function(){return this.isStyleSupportedWithoutPrefix('transform')}},{name:'CssAnimations',fn:function(){return this.isStyleSupported('animationName')}},{names:['CssTransitions','Transitions'],fn:function(){return this.isStyleSupported('transitionProperty')}},{names:['Audio','AudioTag'],fn:function(){return !!this.getTestElement('audio').canPlayType}},{name:'Video',fn:function(){return !!this.getTestElement('video').canPlayType}},{name:'LocalStorage',fn:function(){try{if('localStorage' in window&&window['localStorage']!==null){localStorage.setItem('sencha-localstorage-test','test success');localStorage.removeItem('sencha-localstorage-test');return !0}}catch(b){}return !1}},{name:'XHR2',fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&'withCredentials' in new XMLHttpRequest()}},{name:'XHRUploadProgress',fn:function(){if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){var a=new XMLHttpRequest();return a&&'upload' in a&&'onprogress' in a.upload}return !1}},{name:'NumericInputPlaceHolder',fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:'matchesSelector',fn:function(){var a=document.documentElement,d='matches',e='webkitMatchesSelector',b='msMatchesSelector',c='mozMatchesSelector';return a[d]?d:a[e]?e:a[b]?b:a[c]?c:null}},{name:'RightMargin',ready:!0,fn:function(c,b){var a=c.defaultView;return !(a&&a.getComputedStyle(b.firstChild.firstChild,null).marginRight!=='0px')}},{name:'DisplayChangeInputSelectionBug',fn:function(){var a=Ext.webKitVersion;return 0a';b=a.firstChild;a.innerHTML='
    b
    ';return b.innerHTML!=='a'}},{name:'IncludePaddingInWidthCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetWidth===210}},{name:'IncludePaddingInHeightCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetHeight===210}},{name:'TextAreaMaxLength',fn:function(a){return 'maxlength' in a.createElement('textarea')}},{name:'GetPositionPercentage',ready:!0,fn:function(b,a){return Ext.feature.getStyle(a.childNodes[2],'left')==='10%'}},{name:'PercentageHeightOverflowBug',ready:!0,fn:function(d){var c=!1,b,a;if(Ext.getScrollbarSize().height){a=this.getTestElement();b=a.style;b.height='50px';b.width='50px';b.overflow='auto';b.position='absolute';a.innerHTML=['
    ','
    ','
    '].join('');d.body.appendChild(a);if(a.firstChild.offsetHeight===50){c=!0}d.body.removeChild(a)}return c}},{name:'xOriginBug',ready:!0,fn:function(e,b){b.innerHTML='
    ';var a=document.getElementById('b1').getBoundingClientRect(),c=document.getElementById('b2').getBoundingClientRect(),d=document.getElementById('b3').getBoundingClientRect();return c.left!==a.left&&d.right!==a.right}},{name:'ScrollWidthInlinePaddingBug',ready:!0,fn:function(c){var d=!1,a,b;b=c.createElement('div');a=b.style;a.height='50px';a.width='50px';a.padding='10px';a.overflow='hidden';a.position='absolute';b.innerHTML='';c.body.appendChild(b);if(b.scrollWidth===70){d=!0}c.body.removeChild(b);return d}},{name:'rtlVertScrollbarOnRight',ready:!0,fn:function(d,c){c.innerHTML='
    ';var a=c.firstChild,b=a.firstChild;return b.offsetLeft+b.offsetWidth!==a.offsetLeft+a.offsetWidth}},{name:'rtlVertScrollbarOverflowBug',ready:!0,fn:function(c,b){b.innerHTML='
    ';var a=b.firstChild;return a.clientHeight===a.offsetHeight}},{identity:'defineProperty',fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return !1}return !0}},{identify:'nativeXhr',fn:function(){if(typeof XMLHttpRequest!=='undefined'){return !0}XMLHttpRequest=function(){try{return new ActiveXObject('MSXML2.XMLHTTP.3.0')}catch(b){return null}};return !1}},{name:'SpecialKeyDownRepeat',fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(Ext.isGecko&&!Ext.isWindows||Ext.isOpera&&Ext.operaVersion<12)}},{name:'EmulatedMouseOver',fn:function(){return Ext.os.is.iOS}},{name:'Hashchange',fn:function(){var a=document.documentMode;return 'onhashchange' in window&&(a===undefined||a>7)}},{name:'FixedTableWidthBug',ready:!0,fn:function(){if(Ext.isIE8){return !1}var a=document.createElement('div'),b=document.createElement('div'),c;a.setAttribute('style','display:table;table-layout:fixed;');b.setAttribute('style','display:table-cell;min-width:50px;');a.appendChild(b);document.body.appendChild(a);a.offsetWidth;a.style.width='25px';c=a.offsetWidth;document.body.removeChild(a);return c===50}},{name:'FocusinFocusoutEvents',fn:function(){return !Ext.isGecko}},{name:'AsyncFocusEvents',fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:'accessibility',ready:!0,fn:function(f){var g=f.body,b,c,a,e,d;function getColor(a){var c=[],e=0,g,b;if(a.indexOf('rgb(')!==-1){c=a.replace('rgb(','').replace(')','').split(', ')}else {if(a.indexOf('#')!==-1){g=a.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;b=a.match(g);if(b){c=['0x'+b[1],'0x'+b[2],'0x'+b[3]]}}}for(var d=0;d0};Ext.supports.HighContrastMode=!e.BackgroundImages;g.removeChild(b);b=c=null;return e}},0]};Ext.feature.tests.pop();Ext.supports={};Ext.feature.detect();Ext.env.Ready={blocks:(location.search||'').indexOf('ext-pauseReadyFire')>0?1:0,bound:0,delay:1,firing:!1,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==='complete'){a.onReadyEvent({type:b.readyState||'body'})}else {a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener('deviceready',a.onReadyEvent,!1)}b.addEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.addEventListener('load',a.onReadyEvent,!1)}}},block:function(){++this.blocks;Ext.isReady=!1},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=!0;a.state=1;Ext.feature.detect(!0);if(!a.delay){a.handleReady()}else {if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else {a.handleReadySoon()}}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(b){var a=this;if(!a.timer){a.timer=Ext.defer(function(){a.timer=null;a.handleReady()},b||a.delay)}},invoke:function(a){var b=a.delay;if(b){Ext.defer(a.fn,b,a.scope)}else {if(Ext.elevateFunction){Ext.elevateFunction(a.fn,a.scope)}else {a.fn.call(a.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else {this.doInvokeAll()}},doInvokeAll:function(){var a=this,b=a.listeners,c;if(!a.blocks){Ext.isReady=!0}a.firing=!0;while(b.length){if(a.sortGeneration!==a.generation){a.sortGeneration=a.generation;b.sort(a.sortFn)}c=b.pop();if(a.blocks&&!c.dom){b.push(c);break}a.invoke(c)}a.firing=!1},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:!1,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(e,d,c){var a=Ext.env.Ready,b=a.makeListener(e,d,c);if(a.state===2&&!a.firing&&(b.dom||!a.blocks)){a.invoke(b)}else {a.listeners.push(b);++a.generation;if(!a.bound){a.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else {a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(a,b){return -(a.phase-b.phase||b.priority-a.priority||a.id-b.id)},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener('deviceready',a.onReadyEvent,!1)}b.removeEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.removeEventListener('load',a.onReadyEvent,!1)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=!0;try{document.documentElement.doScroll('left')}catch(c){b=!1}if(b&&document.body){a.onReadyEvent({type:'doScroll'})}else {a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){if(a.bound){return}var b=document,c;try{c=window.frameElement===undefined}catch(d){}if(!c||!b.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else {if(a.pollScroll()){return}}if(b.readyState==='complete'){a.onReadyEvent({type:'already '+(b.readyState||'body')})}else {b.attachEvent('onreadystatechange',a.onReadyStateChange);window.attachEvent('onload',a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent('onreadystatechange',a.onReadyStateChange);window.detachEvent('onload',a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){clearTimeout(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:!0};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()})();Ext.Loader=new function(){var a=this,b=Ext.ClassManager,i=Ext.Boot,o=Ext.Class,c=Ext.env.Ready,k=Ext.Function.alias,h=['extend','mixins','requires'],j={},m=[],f=[],g=[],l={},d={},e={enabled:!0,scriptChainDelay:!1,disableCaching:!0,disableCachingParam:'_dc',paths:b.paths,preserveScripts:!0,scriptCharset:undefined},n={disableCaching:!0,disableCachingParam:!0,preserveScripts:!0,scriptChainDelay:'loadDelay'};Ext.apply(a,{isInHistory:j,isLoading:!1,history:m,config:e,readyListeners:f,optionalRequires:g,requiresMap:l,hasFileLoadError:!1,scriptsLoading:0,syncModeEnabled:!1,missingQueue:d,init:function(){var k=document.getElementsByTagName('script'),m=k[k.length-1].src,n=m.substring(0,m.lastIndexOf('/')+1),l=Ext._classPathMetadata,h=Ext.Microloader,g=Ext.manifest,d,i,j,e,f;if(!b.getPath('Ext')){b.setPath('Ext',n+'src')}if(l){Ext._classPathMetadata=null;a.addClassPathMappings(l)}if(g){d=g.loadOrder;i=Ext.Boot.baseUrl;if(d&&g.bootRelative){for(j=d.length,e=0;e1?'es':'')+': '+g.join(', '))}if(l.length){a.loadScripts({url:l,_classNames:g})}else {a.checkReady()}}else {if(c){c.call(k)}a.checkReady()}if(a.syncModeEnabled){if(m===1){return b.get(h[0])}}return a},makeLoadCallback:function(a,c){return function(){var e=[],d=a.length;while(d-->0){e[d]=b.get(a[d])}return c.apply(this,e)}},onLoadFailure:function(){var b=this,c=b.onError;a.hasFileLoadError=!0;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onLoadSuccess:function(){var b=this,c=b.onLoad;--a.scriptsLoading;if(c){c.call(b.userScope,b)}a.checkReady()},onReady:function(g,e,h,d){if(h){c.on(g,e,d)}else {var b=c.makeListener(g,e,d);if(a.isLoading){f.push(b)}else {c.invoke(b)}}},addUsedClasses:function(b){var c,d,e;if(b){b=typeof b==='string'?[b]:b;for(d=0,e=b.length;d0){a.loadScripts({url:b,sequential:!0})}}}if(h.uses){b=h.uses;a.addUsedClasses(b)}});b.onCreated(a.historyPush);a.init()}();Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}Ext.cmd.derive('Ext.Mixin',Ext.Base,function(a){return {statics:{addHook:function(e,c,d,h){var g=Ext.isFunction(e),b=function(){var b=arguments,i=g?e:h[e],f=this.callParent(b);i.apply(this,b);return f},f=c.hasOwnProperty(d)&&c[d];if(g){e.$previous=Ext.emptyFn}b.$name=d;b.$owner=c.self;if(f){b.$previous=f.$previous;f.$previous=b}else {c[d]=b}}},onClassExtended:function(k,c){var b=c.mixinConfig,d=c.xhooks,j=k.superclass,i=c.onClassMixedIn,h,f,g,e;if(d){delete c.xhooks;(b||(c.mixinConfig=b={})).on=d}if(b){h=j.mixinConfig;if(h){c.mixinConfig=b=Ext.merge({},h,b)}c.mixinId=b.id;f=b.before;g=b.after;d=b.on;e=b.extended}if(f||g||d||e){c.onClassMixedIn=function(b){var h=this.prototype,l=b.prototype,j;if(f){Ext.Object.each(f,function(e,d){b.addMember(e,function(){if(h[d].apply(this,arguments)!==!1){return this.callParent(arguments)}})})}if(g){Ext.Object.each(g,function(e,d){b.addMember(e,function(){var f=this.callParent(arguments);h[d].apply(this,arguments);return f})})}if(d){for(j in d){a.addHook(d[j],l,j,h)}}if(e){b.onExtended(function(){var d=Ext.Array.slice(arguments,0);d.unshift(b);return e.apply(this,d)},this)}if(i){i.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,'Mixin'],0);Ext.util=Ext.util||{};Ext.util.DelayedTask=function(e,c,d,b,g){var a=this,f,h=function(){var f=Ext.GlobalEvents;clearInterval(a.id);a.id=null;e.apply(c,d||[]);if(g!==!1&&f.hasListeners.idle){f.fireEvent('idle')}};b=typeof b==='boolean'?b:!0;a.id=null;a.delay=function(i,l,j,k){if(b){a.cancel()}if(typeof i==='number'){f=i}e=l||e;c=j||c;d=k||d;if(!a.id){a.id=Ext.interval(h,f)}};a.cancel=function(){if(a.id){clearInterval(a.id);a.id=null}}};Ext.cmd.derive('Ext.util.Event',Ext.Base,function(){var d=Array.prototype.slice,c=Ext.Array.insert,b=Ext.Array.toArray,a={};return {isEvent:!0,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(r,q,g,t,s){var a=this,p=!1,l=a.observable,o=a.name,d,m,i,h,f,k,j,b,e,n;if(a.findListener(r,q)===-1){m=a.createListener(r,q,g,t,s);if(a.firing){a.listeners=a.listeners.slice(0)}d=a.listeners;b=j=d.length;i=g&&g.priority;f=a._highestNegativePriorityIndex;k=f!==undefined;if(i){h=i<0;if(!h||k){for(e=h?f:0;e0},fireDelegated:function(a,b){this.firingObservable=a;return this.fire.apply(this,b)},fire:function(){var e=this,r=e.listeners,t=r.length,n=e.observable,i=n.isElement,w=n.isComponent,v=e.firingObservable,b,o,f,k,c,j,u,h,l,p,g,m,a,s,q;if(!e.suspended&&t>0){e.firing=!0;c=arguments.length?d.call(arguments,0):[];u=c.length;if(i){a=c[0]}for(k=0;k4?b:e;b=e;for(e in b){if(b.hasOwnProperty(e)){g=b[e];if(!h.$eventOptions[e]){f.addManagedListener(h,e,g.fn||g,g.scope||b.scope||i,g.fn?g:k,!0)}}}if(b&&b.destroyable){return new a(f,h,b)}}else {if(j!==d){h.doAddListener(e,j,i,b,null,f,f);if(!l&&b&&b.destroyable){return new a(f,h,e,j,i)}}}},removeManagedListener:function(h,a,k,j){var e=this,b,d,g,i,f;if(typeof a!=='string'){b=a;for(a in b){if(b.hasOwnProperty(a)){d=b[a];if(!h.$eventOptions[a]){e.removeManagedListener(h,a,d.fn||d,d.scope||b.scope||j)}}}}else {g=e.managedListeners?e.managedListeners.slice():[];a=Ext.canonicalEventName(a);for(f=0,i=g.length;f0,d=this.events;if(!b&&a&&d){a=d[a];if(a&&a.isEvent){return a.isSuspended()}}return b},suspendEvents:function(a){++this.eventsSuspended;if(a&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var e=this,f=e.events,g=arguments.length,d,b,a;for(d=0;d0){i.push(g)}d--;if(d===0){f.resolve(i)}return g};m=function(d){h--;if(h===0){f.reject(new Error('Too few Promises were resolved.'))}return d};for(g=j=0,n=e.length;j0){b.type=a.substring(0,e);b.defaultType=a.substring(e+1)}if(f){delete d.factoryConfig;Ext.apply(b,f)}g=Ext.Factory.define(b.type,b);if(c.create===Ext.Base.create){c.create=g}}},0,0,0,0,0,0,[Ext.mixin,'Factoryable'],0);Ext.cmd.derive('Ext.data.request.Base',Ext.Base,{factoryConfig:{type:'request',defaultType:'ajax'},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=!0}a.abort=Ext.emptyFn},createDeferred:function(){return this.deferred=new Ext.Deferred()},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var a=this,b=a.deferred,c=a.result;a.clearTimer();if(b){if(a.success){b.resolve(c)}else {b.reject(c)}}},onTimeout:function(){var a=this;a.timedout=!0;a.timer=null;a.abort(!0)},getTimeout:function(){return this.timeout},clearTimer:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var a=this,b;b={request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?'transaction aborted':'communication failure',getResponseHeader:a._getHeader,getAllResponseHeaders:a._getHeaders};if(a.aborted){b.aborted=!0}if(a.timedout){b.timedout=!0}return b},_getHeader:function(b){var a=this.headers;return a&&a[b.toLowerCase()]},_getHeaders:function(){return this.headers}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.request,'Base'],0);Ext.cmd.derive('Ext.data.flash.BinaryXhr',Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=!0;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById('ext-flash-polyfill');Ext.GlobalEvents.fireEvent('flashready')},flashPluginActive:!1,flashPluginInjected:!1,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(b,c,d){var a;a=this.liveConnections[Number(b)];if(a){a.onFlashStateChange(c,d)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var c=this,b,a;c.flashPolyfillEl=Ext.getBody().appendChild({id:'ext-flash-polyfill',cn:[{tag:'p',html:'To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed.'},{tag:'a',href:'http://www.adobe.com/go/getflashplayer',cn:[{tag:'img',src:window.location.protocol+'//www.adobe.com/images/shared/download_buttons/get_flash_player.gif',alt:'Get Adobe Flash player'}]}]});b=[Ext.Loader.getPath('Ext.data.Connection'),'../../../plugins/flash/swfobject.js'].join('/');a='/plugins/flash/FlashPlugin.swf';if(Ext.flashPluginPath){a=Ext.flashPluginPath}Ext.Loader.loadScript({url:b,onLoad:function(){var d='11.4.0';var e='playerProductInstall.swf';var f={};var b={};b.quality='high';b.bgcolor='#ffffff';b.allowscriptaccess='sameDomain';b.allowfullscreen='true';var c={};c.id='ext-flash-polyfill';c.name='polyfill';c.align='middle';swfobject.embedSWF(a,'ext-flash-polyfill','0','0',d,e,f,b,c)},onError:function(){},scope:c});Ext.data.flash.BinaryXhr.flashPluginInjected=!0}},readyState:0,status:0,statusText:'',responseBytes:null,javascriptId:null,constructor:function(b){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var a=this;Ext.apply(a,b);a.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=!0;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener('flashready',a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(c,b){a.push(c+': '+b)});return a.join('\r\n')},getResponseHeader:function(b){var a=this.responseHeaders;return a&&a[b]||null},open:function(c,f,d,e,b){var a=this;a.method=c;a.url=f;a.async=d!==!1;a.user=e;a.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(b){var a=this;a.body=b;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener('flashready',a.onFlashReady,a)}else {this.onFlashReady()}},onFlashReady:function(){var a=this,b,c;a.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(a);b={method:a.method,url:a.url,user:a.user,password:a.password,mimeType:a.mimeType,requestHeaders:a.requestHeaders,body:a.body,javascriptId:a.javascriptId};c=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(a,b){this.requestHeaders[a]=b},onreadystatechange:Ext.emptyFn,parseData:function(a){var b=this;this.status=a.status||0;b.responseHeaders={};if(b.mimeType){b.responseHeaders['content-type']=b.mimeType}if(a.reason=='complete'){this.responseBytes=a.data;b.responseHeaders['content-length']=a.data.length}else {if(a.reason=='error'||a.reason=='securityError'){this.statusText=a.text;b.responseHeaders['content-length']=0}}},onFlashStateChange:function(b,c){var a=this;if(b==4){a.parseData(c);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(b)}},1,0,0,0,0,0,[Ext.data.flash,'BinaryXhr'],0);Ext.cmd.derive('Ext.data.request.Ajax',Ext.data.request.Base,{statics:{parseStatus:function(a){a=a==1223?204:a;var c=a>=200&&a<300||a==304,b=!1;if(!c){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:b=!0;break;}}return {success:c,isException:b}}},start:function(f){var a=this,e=a.options,c=a.requestOptions,d=a.isXdr,b,g;b=a.xhr=a.openRequest(e,c,a.async,a.username,a.password);if(!d){g=a.setupHeaders(b,e,c.data,c.params)}if(a.async){if(!d){b.onreadystatechange=Ext.Function.bind(a.onStateChange,a)}}if(d){a.processXdrRequest(a,b)}Ext.data.request.Base.prototype.start.call(this,f);b.send(f);if(!a.async){return a.onComplete()}return a},abort:function(c){var a=this,b=a.xhr;if(c||a.isLoading()){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=Ext.emptyFn}b.abort();Ext.data.request.Base.prototype.abort.call(this,c);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var c=this,a=c.xhr,b=a&&a.readyState,d=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!a||c.aborted||c.timedout){return !1}if(d&&a instanceof d){return b!==4}return b!==0&&b!==4},openRequest:function(d,b,f,e,g){var c=this,a=c.newRequest(d);if(e){a.open(b.method,b.url,f,e,g)}else {if(c.isXdr){a.open(b.method,b.url)}else {a.open(b.method,b.url,f)}}if(d.binary||c.binary){if(window.Uint8Array){a.responseType='arraybuffer'}else {if(a.overrideMimeType){a.overrideMimeType('text/plain; charset=x-user-defined')}}}if(d.withCredentials||c.withCredentials){a.withCredentials=!0}return a},newRequest:function(c){var a=this,b;if(c.binaryData){if(window.Uint8Array){b=a.getXhrInstance()}else {b=new Ext.data.flash.BinaryXhr()}}else {if(a.cors&&Ext.isIE9m){b=a.getXdrInstance();a.isXdr=!0}else {b=a.getXhrInstance();a.isXdr=!1}}return b},setupHeaders:function(m,f,j,l){var d=this,a=Ext.apply({},f.headers||{},d.defaultHeaders),e=d.defaultPostHeader,h=f.jsonData,i=f.xmlData,b='Content-Type',k=d.useDefaultXhrHeader,c,g;if(!a.hasOwnProperty(b)&&(j||l)){if(j){if(f.rawData){e='text/plain'}else {if(i&&Ext.isDefined(i)){e='text/xml'}else {if(h&&Ext.isDefined(h)){e='application/json'}}}}a[b]=e}if(k&&!a['X-Requested-With']){a['X-Requested-With']=d.defaultXhrHeader}if(a[b]===undefined||a[b]===null){delete a[b]}try{for(c in a){if(a.hasOwnProperty(c)){g=a[c];m.setRequestHeader(c,g)}}}catch(n){d.owner.fireEvent('exception',c,g)}return a},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else {Ext.raise({msg:'Your browser does not support CORS'})}return a},getXhrInstance:function(){var c=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject('MSXML2.XMLHTTP.3.0')},function(){return new ActiveXObject('MSXML2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')}],b=0,d=c.length,a;for(;b=0){j=e.substr(0,c).toLowerCase();if(e.charAt(c+1)==' '){++c}f[j]=e.substr(c+1)}}b={request:d,requestId:d.id,status:a.status,statusText:a.statusText,getResponseHeader:function(b){return f[b.toLowerCase()]},getAllResponseHeaders:function(){return f}};if(h){d.processXdrResponse(b,a)}if(d.binary){b.responseBytes=d.getByteArray(a)}else {b.responseText=a.responseText;b.responseXML=a.responseXML}return b},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(b){var e=b.response,g=b.responseBody,h=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,d,f,c;if(b instanceof h){a=b.responseBytes}else {if(window.Uint8Array){a=e?new Uint8Array(e):[]}else {if(Ext.isIE9p){try{a=(new VBArray(g)).toArray()}catch(i){a=[]}}else {if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(b.responseBody,a=[])}else {a=[];d=b.responseText;f=d.length;for(c=0;c=500){this.run()}},run:function(){var a=this;if(!a.isRunning){return}var b=a.runningQueue,d=Ext.now(),c,e;a.lastRunTime=d;a.frameStartTime=d;b.push.apply(b,a.queue);for(c=0,e=b.length;c0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty('taskQueueTimer')){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var a=this.taskQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}}},1,0,0,0,0,0,[Ext,'AnimationQueue'],0);Ext.cmd.derive('Ext.ComponentManager',Ext.Base,{alternateClassName:'Ext.ComponentMgr',singleton:!0,count:0,typeName:'xtype',constructor:function(b){var a=this;Ext.apply(a,b||{});a.all={};a.references={};a.onAvailableCallbacks={}},create:function(a,b){if(typeof a==='string'){return Ext.widget(a)}if(a.isComponent){return a}if('xclass' in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(b){var a=this,e=a.all,d=b.getId(),c=a.onAvailableCallbacks;e[d]=b;if(b.getReference&&b.getReference()){a.references[d]=b}++a.count;if(!a.hasFocusListener){Ext.on('focus',a.onGlobalFocus,a);a.hasFocusListener=!0}c=c&&c[d];if(c&&c.length){a.notifyAvailable(b)}},unregister:function(b){var a=b.getId();if(b.getReference&&b.getReference()){this.references[a]=null;delete this.references[a]}this.all[a]=null;delete this.all[a];this.count--},markReferencesDirty:function(){this.referencesDirty=!0},fixReferences:function(){var c=this,a=c.references,b;if(c.referencesDirty){for(b in a){if(a.hasOwnProperty(b)){a[b].fixReference()}}c.referencesDirty=!1}},onAvailable:function(a,f,d){var g=this,b=g.onAvailableCallbacks,e=g.all,c;if(a in e){c=e[a];f.call(d||c,c)}else {if(a){if(!Ext.isArray(b[a])){b[a]=[]}b[a].push(function(b){f.call(d||b,b)})}}},notifyAvailable:function(a){var b=this.onAvailableCallbacks[a&&a.getId()]||[];while(b.length){b.shift()(a)}},each:function(b,a){return Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.fromElement(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(d){var h=this,g=d.toElement,f=d.fromElement,c=Ext.Component.fromElement(g),b=Ext.Component.fromElement(f),e,a;if(c===b){return}e=h.getCommonAncestor(b,c);if(b&&!(b.destroyed||b.destroying)){if(b.handleBlurEvent){b.handleBlurEvent(d)}for(a=b;a&&a!==e;a=a.getRefOwner()){if(!(a.destroyed||a.destroying)){a.onFocusLeave({event:d.event,type:'focusleave',target:f,relatedTarget:g,fromComponent:b,toComponent:c})}}}if(c&&!c.destroyed){if(c.handleFocusEvent){c.handleFocusEvent(d)}for(a=c;a&&a!==e;a=a.getRefOwner()){a.onFocusEnter({event:d.event,type:'focusenter',relatedTarget:f,target:g,fromComponent:b,toComponent:c})}}},getCommonAncestor:function(a,b){if(a===b){return a}while(a&&!(a.isAncestor(b)||a===b)){a=a.getRefOwner()}return a},privates:{clearAll:function(){this.all={};this.references={};this.onAvailableCallbacks={}},fromElement:function(i,b,e){var a=Ext.getDom(i),h=this.all,g=0,f,d,c;if(typeof b!=='number'){f=Ext.getDom(b);b=Number.MAX_VALUE}while(a&&a.nodeType===1&&g0){for(;a.first&&b;b--){a.removeAtKey(a.first.key)}}},destroy:function(){this.first=this.last=null;Ext.util.HashMap.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util,'LruCache'],0);Ext.cmd.derive('Ext.ComponentQuery',Ext.Base,{singleton:!0},0,0,0,0,0,0,[Ext,'ComponentQuery'],function(){var a=this,f=Ext.util.Operators,r=/(\d*)n\+?(\d*)/,q=/\D/,c=/^(\s)+/,b=/\\(.)/g,j=new Ext.util.LruCache({maxSize:100}),m=['var r = [],','i = 0,','it = items,','l = it.length,','c;','for (; i < l; i++) {','c = it[i];','if (c.{0}) {','r.push(c);','}','}','return r;'].join(''),d=function(b,a){return a.method.apply(this,[b].concat(a.args))},e=function(d,g){var b=[],c=0,e=d.length,a,f=g!=='>';for(;c\^])\s?|\s|$)/,o=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,k=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:g,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:l,argTransform:function(c){var g=c[0],f=c[1],e=c[2],a=c[4],d;if(a!==undefined){a=a.replace(b,'$1')}if(e==='/='){d=j.get(a);if(d){a=d}else {a=j.add(a,new RegExp(a))}}return [f,e,a]}},{re:/^#((?:\\\.|[\w\-])+)/,method:i},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:n,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(b,'$1')}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:m}];a.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(f){var c=this.operations,b=[],e,a,d;for(a=0,d=c.length;a=0;--c){g=l[c];b=g.mode;if(b){if(b==='^'){a=e(a,' ')}else {if(b==='>'){i=[];for(f=0,k=a.length;f1}});Ext.apply(a,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(d,f){var c=0,g=d.length,e=[],h=-1,b;for(;c0){b.push(a[0])}return b},last:function(a){var b=a.length,c=[];if(b>0){c.push(a[b-1])}return c},focusable:function(d){var e=d.length,c=[],b=0,a;for(;b=c.left&&(t=='t'&&v=='b'||t=='b'&&v=='t');o=f=c.top&&(s=='r'&&u=='l'||s=='l'&&u=='r');if(e+k>a.right){if(o){e=c.left-k;o=!1}else {e=a.right-k}}if(ea.bottom){if(p){f=c.top-j;p=!1}else {f=a.bottom-j}}if(fa.right){e=!0;d[0]=a.right-b.right}if(b.left+d[0]a.bottom){e=!0;d[1]=a.bottom-b.bottom}if(b.top+d[1]=b.x&&a.right<=b.right&&a.y>=b.y&&a.bottom<=b.bottom},intersect:function(a){var b=this,f=Math.max(b.y,a.y),e=Math.min(b.right,a.right),c=Math.min(b.bottom,a.bottom),d=Math.max(b.x,a.x);if(c>f&&e>d){return new this.self(f,e,c,d)}else {return !1}},union:function(a){var b=this,f=Math.min(b.y,a.y),e=Math.max(b.right,a.right),c=Math.max(b.bottom,a.bottom),d=Math.min(b.x,a.x);return new this.self(f,e,c,d)},constrainTo:function(b){var a=this,c=Ext.Number.constrain;a.top=a.y=c(a.top,b.y,b.bottom);a.bottom=c(a.bottom,b.y,b.bottom);a.left=a.x=c(a.left,b.x,b.right);a.right=c(a.right,b.x,b.right);return a},adjust:function(e,c,b,d){var a=this;a.top=a.y+=e;a.left=a.x+=d;a.right+=c;a.bottom+=b;return a},getOutOfBoundOffset:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.getOutOfBoundOffsetX(a)}else {return this.getOutOfBoundOffsetY(a)}}else {a=b;var c=new Ext.util.Offset();c.x=this.getOutOfBoundOffsetX(a.x);c.y=this.getOutOfBoundOffsetY(a.y);return c}},getOutOfBoundOffsetX:function(a){if(a<=this.x){return this.x-a}else {if(a>=this.right){return this.right-a}}return 0},getOutOfBoundOffsetY:function(a){if(a<=this.y){return this.y-a}else {if(a>=this.bottom){return this.bottom-a}}return 0},isOutOfBound:function(b,a){if(!Ext.isObject(b)){if(b=='x'){return this.isOutOfBoundX(a)}else {return this.isOutOfBoundY(a)}}else {a=b;return this.isOutOfBoundX(a.x)||this.isOutOfBoundY(a.y)}},isOutOfBoundX:function(a){return athis.right},isOutOfBoundY:function(a){return athis.bottom},restrict:function(d,a,b){if(Ext.isObject(d)){var c;b=a;a=d;if(a.copy){c=a.copy()}else {c={x:a.x,y:a.y}}c.x=this.restrictX(a.x,b);c.y=this.restrictY(a.y,b);return c}else {if(d=='x'){return this.restrictX(a,b)}else {return this.restrictY(a,b)}}},restrictX:function(a,b){if(!b){b=1}if(a<=this.x){a-=(a-this.x)*b}else {if(a>=this.right){a-=(a-this.right)*b}}return a},restrictY:function(a,b){if(!b){b=1}if(a<=this.y){a-=(a-this.y)*b}else {if(a>=this.bottom){a-=(a-this.bottom)*b}}return a},getSize:function(){return {width:this.right-this.x,height:this.bottom-this.y}},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(b){var a=this;a.top=a.y=a[1]=b.y;a.right=b.right;a.bottom=b.bottom;a.left=a.x=a[0]=b.x;return this},toString:function(){return 'Region['+this.top+','+this.right+','+this.bottom+','+this.left+']'},translateBy:function(b,c){if(arguments.length==1){c=b.y;b=b.x}var a=this;a.top=a.y+=c;a.right+=b;a.bottom+=c;a.left=a.x+=b;return a},round:function(){var a=this;a.top=a.y=Math.round(a.y);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);a.left=a.x=Math.round(a.x);return a},equals:function(a){return this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left}},3,0,0,0,0,0,[Ext.util,'Region'],0);Ext.cmd.derive('Ext.util.Point',Ext.util.Region,{radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(b){var a=b.changedTouches,c=a&&a.length>0?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}Ext.util.Region.prototype.constructor.call(this,b,a,b,a)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return 'Point['+this.x+','+this.y+']'},equals:function(a){return this.x===a.x&&this.y===a.y},isCloseTo:function(b,a){if(typeof a=='number'){return this.getDistanceTo(b)<=a}var e=b.x,f=b.y,c=a.x,d=a.y;return this.x<=e+c&&this.x>=e-c&&this.y<=f+d&&this.y>=f-d},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=='object'){a=this.origin}return Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y)},getDistanceTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.sqrt(b*b+c*c)},getAngleTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.atan2(c,b)*this.radianToDegreeConstant}},3,0,0,0,0,0,[Ext.util,'Point'],function(){this.prototype.translate=this.prototype.translateBy});Ext.cmd.derive('Ext.event.Event',Ext.Base,{alternateClassName:'Ext.EventObjectImpl',isStopped:!1,defaultPrevented:!1,isEvent:!0,statics:{resolveTextNode:function(a){return a&&a.nodeType===3?a.parentNode:a},pointerEvents:{pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerDown:1,MSPointerMove:1,MSPointerUp:1,MSPointerOver:1,MSPointerOut:1,MSPointerCancel:1,MSPointerEnter:1,MSPointerLeave:1},mouseEvents:{mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1,mouseenter:1,mouseleave:1},clickEvents:{click:1,dblclick:1},touchEvents:{touchstart:1,touchmove:1,touchend:1,touchcancel:1},focusEvents:{focus:1,blur:1,focusin:1,focusout:1,focusenter:1,focusleave:1},pointerTypes:{2:'touch',3:'pen',4:'mouse',touch:'touch',pen:'pen',mouse:'mouse'}},constructor:function(b){var a=this,c=a.self,h=a.self.resolveTextNode,i=b.changedTouches,g=i?i[0]:b,d=b.type,e,f;a.pageX=g.pageX;a.pageY=g.pageY;a.target=a.delegatedTarget=h(b.target);f=b.relatedTarget;if(f){a.relatedTarget=h(f)}a.browserEvent=a.event=b;a.type=d;a.button=b.button||0;a.shiftKey=b.shiftKey;a.ctrlKey=b.ctrlKey||b.metaKey||!1;a.altKey=b.altKey;a.charCode=b.charCode;a.keyCode=b.keyCode;a.buttons=b.buttons;if(a.button===0&&a.buttons===0){a.buttons=1}if(c.forwardTab!==undefined&&c.focusEvents[d]){a.forwardTab=c.forwardTab}if(c.mouseEvents[d]||c.clickEvents[d]){e='mouse'}else {if(c.pointerEvents[d]){e=c.pointerTypes[b.pointerType]}else {if(c.touchEvents[d]){e='touch'}}}if(e){a.pointerType=e}a.timeStamp=a.time=+(b.timeStamp||new Date())},chain:function(b){var a=Ext.Object.chain(this);a.parentEvent=this;return Ext.apply(a,b)},correctWheelDelta:function(a){var c=this.WHEEL_SCALE,b=Math.round(a/c);if(!b&&a){b=a<0?-1:1}return b},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.keyCodes[this.keyCode]},getPoint:function(){var a=this.getXY();return new Ext.util.Point(a[0],a[1])},getRelatedTarget:function(d,e,c){var a=this.relatedTarget,b=null;if(a){if(d){b=Ext.fly(a).findParent(d,e,c)}else {b=c?Ext.get(a):a}}return b},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):a?Ext.get(this.target):this.target},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var d=this,a=d.browserEvent,c=0,b=0;if(Ext.isDefined(a.wheelDeltaX)){c=a.wheelDeltaX;b=a.wheelDeltaY}else {if(a.wheelDelta){b=a.wheelDelta}else {if(a.detail){b=-a.detail;if(b>100){b=3}else {if(b<-100){b=-3}}if(Ext.isDefined(a.axis)&&a.axis===a.HORIZONTAL_AXIS){c=b;b=0}}}}return {x:d.correctWheelDelta(c),y:d.correctWheelDelta(b)}},getX:function(){return this.getXY()[0]},getXY:function(){var d=this,c=d.xy;if(!c){c=d.xy=[d.pageX,d.pageY];var g=c[0],e,f,a,b;if(!g&&g!==0){e=d.browserEvent;f=document;a=f.documentElement;b=f.body;c[0]=e.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);c[1]=e.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}}return c},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(c){var a=this,b=a.keyCode,d=a.type==='keypress';return (!d||Ext.isGecko)&&b>=33&&b<=40||!c&&(b===a.RETURN||b===a.TAB||b===a.ESC)},isSpecialKey:function(){var b=this,a=b.keyCode,d=Ext.isGecko,c=b.type==='keypress';return d&&c&&b.charCode===0||this.isNavKeyPress()||a===b.BACKSPACE||a===b.ENTER||a>=16&&a<=20||(!c||d)&&a>=44&&a<=46},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var a=this,b=a.parentEvent;a.defaultPrevented=!0;if(b){b.defaultPrevented=!0}a.browserEvent.preventDefault();return a},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var a=this,b=a.browserEvent,c=a.parentEvent;a.isStopped=!0;if(c){c.isStopped=!0}if(!b.stopPropagation){b.cancelBubble=!0;return a}b.stopPropagation();return a},within:function(b,d,c){var a;if(b){a=d?this.getRelatedTarget():this.getTarget()}return a?Ext.fly(b).contains(a)||!!(c&&a===Ext.getDom(b)):!1},deprecated:{'4.0':{methods:{getPageX:'getX',getPageY:'getY'}}}},1,0,0,0,0,0,[Ext.event,'Event',Ext,'EventObjectImpl'],function(f){var b=f.prototype,a={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,WHEEL_SCALE:function(){var a;if(Ext.isGecko){a=3}else {if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){a=120}else {a=12}a*=3}else {a=120}}return a}()},d={},c,e;Ext.apply(f,a);Ext.apply(b,a);delete a.WHEEL_SCALE;delete a.RETURN;for(c in a){e=a[c];d[e]=c}b.keyCodes=d;b.getTrueXY=b.getXY});Ext.define('Ext.overrides.event.Event',{override:'Ext.event.Event',mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:function(){var a,b={},c;if(!Ext.isIE9m&&document.createEvent){a={createHtmlEvent:function(e,d,c,b){var a=e.createEvent('HTMLEvents');a.initEvent(d,c,b);return a},createMouseEvent:function(d,n,h,f,m,b,c,i,k,g,j,l,e){var a=d.createEvent('MouseEvents'),o=d.defaultView||window;if(a.initMouseEvent){a.initMouseEvent(n,h,f,o,m,b,c,b,c,i,k,g,j,l,e)}else {a=d.createEvent('UIEvents');a.initEvent(n,h,f);a.view=o;a.detail=m;a.screenX=b;a.screenY=c;a.clientX=b;a.clientY=c;a.ctrlKey=i;a.altKey=k;a.metaKey=j;a.shiftKey=g;a.button=l;a.relatedTarget=e}return a},createUIEvent:function(b,f,d,c,e){var a=b.createEvent('UIEvents'),g=b.defaultView||window;a.initUIEvent(f,d,c,g,e);return a},fireEvent:function(a,c,b){a.dispatchEvent(b)}}}else {if(document.createEventObject){c={0:1,1:4,2:2};a={createHtmlEvent:function(d,e,c,b){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},createMouseEvent:function(n,o,i,g,m,b,d,j,l,h,k,e,f){var a=n.createEventObject();a.bubbles=i;a.cancelable=g;a.detail=m;a.screenX=b;a.screenY=d;a.clientX=b;a.clientY=d;a.ctrlKey=j;a.altKey=l;a.shiftKey=h;a.metaKey=k;a.button=c[e]||e;a.relatedTarget=f;return a},createUIEvent:function(d,f,c,b,e){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},fireEvent:function(a,c,b){a.fireEvent('on'+c,b)}}}}Ext.Object.each({load:[!1,!1],unload:[!1,!1],select:[!0,!1],change:[!0,!1],submit:[!0,!0],reset:[!0,!1],resize:[!0,!1],scroll:[!0,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createHtmlEvent(c,f,e);a.fireEvent(b,c,g)}});function createMouseEventDispatcher(b,d){var c=b!=='mousemove';return function(f,e){var g=e.getXY(),h=a.createMouseEvent(f.ownerDocument,b,!0,c,d,g[0],g[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget);a.fireEvent(f,b,h)}}Ext.each(['click','dblclick','mousedown','mouseup','mouseover','mousemove','mouseout'],function(a){b[a]=createMouseEventDispatcher(a,1)});Ext.Object.each({focusin:[!0,!1],focusout:[!0,!1],activate:[!0,!0],focus:[!1,!1],blur:[!1,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createUIEvent(b.ownerDocument,c,f,e,1);a.fireEvent(b,c,g)}});if(!a){b={};a={}}function cannotInject(b,a){}return function(a){var c=this,d=b[c.type]||cannotInject,e=a?a.dom||a:c.getTarget();d(e,c)}}(),preventDefault:function(){var c=this,a=c.browserEvent,e=c.parentEvent,d,b;if(typeof a.type!=='unknown'){c.defaultPrevented=!0;if(e){e.defaultPrevented=!0}if(a.preventDefault){a.preventDefault()}else {if(a.type==='mousedown'){b=a.target;d=b.getAttribute('unselectable');if(d!=='on'){b.setAttribute('unselectable','on');Ext.defer(function(){b.setAttribute('unselectable',d)},1)}}a.returnValue=!1;if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}}return c},stopPropagation:function(){var a=this,b=a.browserEvent;if(typeof b.type!=='unknown'){if(a.mousedownEvents[a.type]){Ext.GlobalEvents.fireMouseDown(a)}arguments.callee.$previous.call(this)}return a},deprecated:{'5.0':{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var c=this,d,a=function(a){if(a.keyCode===9){c.forwardTab=!a.shiftKey}},b=function(a){if(a.keyCode===9){delete c.forwardTab}};if(Ext.isIE9m){d={0:0,1:0,4:1,2:2};c.override({statics:{enableIEAsync:function(b){var a,c={};for(a in b){c[a]=b[a]}return c}},constructor:function(a,f,e,c){var b=this;b.callParent([a,f,e,c]);b.button=d[a.button];if(a.type==='contextmenu'){b.button=2}b.toElement=a.toElement;b.fromElement=a.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(a){this.browserEvent=this.self.enableIEAsync(a)},getRelatedTarget:function(f,d,e){var a=this,c,b;if(!a.relatedTarget){c=a.type;if(a.mouseLeaveRe.test(c)){b=a.toElement}else {if(a.mouseEnterRe.test(c)){b=a.fromElement}}if(b){a.relatedTarget=a.self.resolveTextNode(b)}}return a.callParent([f,d,e])}});document.attachEvent('onkeydown',a);document.attachEvent('onkeyup',b);window.attachEvent('onunload',function(){document.detachEvent('onkeydown',a);document.detachEvent('onkeyup',b)})}else {if(document.addEventListener){document.addEventListener('keydown',a,!0);document.addEventListener('keyup',b,!0)}}});Ext.cmd.derive('Ext.event.publisher.Dom',Ext.event.publisher.Publisher,{type:'dom',handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1,scroll:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var b=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=b.handledDomEvents,f=d.length,c=0,a;for(;cb?1:a1){e=[];for(d=0;d0){b.invokeRecognizers('onTouchMove',a)}}},onTouchEnd:function(b){var a=this;if(!a.isStarted){return}a.updateTouches(b,!0);a.invokeRecognizers(a.isCancelEvent[b.type]?'onTouchCancel':'onTouchEnd',b);if(!a.activeTouches.length){a.isStarted=!1;a.invokeRecognizers('onEnd',b);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else {this.doTargetTouchMove(a)}},doTargetTouchMove:function(a){if(!Ext.getBody().contains(a.target)){this.onTouchMove(new Ext.event.Event(a))}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else {this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var b=this,a=c.target;a.removeEventListener('touchmove',b.onTargetTouchMove);a.removeEventListener('touchend',b.onTargetTouchEnd);a.removeEventListener('touchcancel',b.onTargetTouchEnd);if(!Ext.getBody().contains(a)){b.onTouchEnd(new Ext.event.Event(c))}},updateAsync:function(a){this.handlers=a?this._asyncHandlers:this._handlers},reset:function(){var a=this,d=a.recognizers,e=d.length,b,c;a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.isStarted=!1;for(b=0;b=500){this.run()}},run:function(){this.pending=!1;var i=this.readQueue,h=this.writeQueue,c=null,d;if(this.mode){d=i;if(h.length>0){c=!1}}else {d=h;if(i.length>0){c=!0}}var g=d.slice(),f,j,b,a,e;d.length=0;for(f=0,j=g.length;f2){a.apply(e,b[2])}else {a.call(e)}}g.length=0;if(c!==null){this.request(c)}}},1,0,0,0,0,0,[Ext,'TaskQueue'],0);Ext.cmd.derive('Ext.util.sizemonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:0,height:0,contentWidth:0,contentHeight:0,constructor:function(a){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(a);this.bindListeners(!0)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer);a.addCls('x-size-monitored')},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.offsetWidth},getContentHeight:function(){return this.detectorsContainer.offsetHeight},refreshSize:function(){var b=this.getElement();if(!b||b.destroyed){return !1}var h=b.getWidth(),g=b.getHeight(),d=this.getContentWidth(),c=this.getContentHeight(),j=this.contentWidth,i=this.contentHeight,a=this.info,f=!1,e;this.width=h;this.height=g;this.contentWidth=d;this.contentHeight=c;e=(j!==d?1:0)+(i!==c?2:0);if(e>0){a.width=h;a.height=g;a.contentWidth=d;a.contentHeight=c;a.flag=e;f=!0;this.getCallback().apply(this.getScope(),this.getArgs())}return f},refresh:function(a){if(this.refreshSize()||a){Ext.TaskQueue.requestWrite('refreshMonitors',this)}},destroy:function(){var a=this,b=a.getElement();a.bindListeners(!1);if(b&&!b.destroyed){b.removeCls('x-size-monitored')}delete a._element;a.callParent()}},1,0,0,0,0,[[Ext.mixin.Templatable.prototype.mixinId||Ext.mixin.Templatable.$className,Ext.mixin.Templatable]],[Ext.util.sizemonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.sizemonitor.Scroll',Ext.util.sizemonitor.Abstract,{getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','scroll'],children:[{reference:'expandMonitor',className:'expand'},{reference:'shrinkMonitor',className:'shrink'}]}},constructor:function(a){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a]('scroll',this.onScroll,!0);this.shrinkMonitor[a]('scroll',this.onScroll,!0)},forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this,[!0])},onScroll:function(){Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){var a=this.expandMonitor,b=this.shrinkMonitor,c=1000000;if(a&&!a.destroyed){a.scrollLeft=c;a.scrollTop=c}if(b&&!b.destroyed){b.scrollLeft=c;b.scrollTop=c}}},1,0,0,0,0,0,[Ext.util.sizemonitor,'Scroll'],0);Ext.cmd.derive('Ext.util.sizemonitor.OverflowChange',Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=Ext.Function.bind(this.onExpand,this);this.onShrink=Ext.Function.bind(this.onShrink,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},getElementConfig:function(){return {reference:'detectorsContainer',classList:['x-size-monitors','overflowchanged'],children:[{reference:'expandMonitor',className:'expand',children:[{reference:'expandHelper'}]},{reference:'shrinkMonitor',className:'shrink',children:[{reference:'shrinkHelper'}]}]}},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a](Ext.browser.is.Firefox?'underflow':'overflowchanged',this.onExpand,!0);this.shrinkMonitor[a](Ext.browser.is.Firefox?'overflow':'overflowchanged',this.onShrink,!0)},onExpand:function(a){if(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},onShrink:function(a){if(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow){return}Ext.TaskQueue.requestRead('refresh',this)},refreshMonitors:function(){if(this.destroyed){return}var b=this.expandHelper,c=this.shrinkHelper,d=this.getContentBounds(),f=d.width,e=d.height,a;if(b&&!b.destroyed){a=b.style;a.width=f+1+'px';a.height=e+1+'px'}if(c&&!c.destroyed){a=c.style;a.width=f+'px';a.height=e+'px'}Ext.TaskQueue.requestRead('refresh',this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,'OverflowChange'],0);Ext.cmd.derive('Ext.util.SizeMonitor',Ext.Base,{constructor:function(b){var a=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new a.OverflowChange(b)}else {return new a.Scroll(b)}}},1,0,0,0,0,0,[Ext.util,'SizeMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementSize',Ext.event.publisher.Publisher,{type:'size',handledEvents:['resize'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(b){var a=b.id,c=this.subscribers,d=this.monitors;if(c[a]){++c[a]}else {c[a]=1;d[a]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on('painted','forceRefresh',d[a]);return !0},unsubscribe:function(e){var a=e.id,c=this.subscribers,d=this.monitors,b;if(c[a]&&!--c[a]){delete c[a];b=d[a];e.un('painted','forceRefresh',b);b.destroy();delete d[a]}},onElementResize:function(a,b){Ext.TaskQueue.requestRead('fire',this,[a,'resize',[a,b]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementSize'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.util.paintmonitor.Abstract',Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:'',monitorClass:'',constructor:function(a){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?'addEventListener':'removeEventListener'](this.eventName,this.onElementPainted,!0)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:['x-paint-monitor',this.monitorClass]},!0);a.appendChild(this.monitorElement);a.addCls('x-paint-monitored');this.bindListeners(!0)},onElementPainted:function(){},destroy:function(){var a=this,c=a.monitorElement,d=c.parentNode,b=a.getElement();a.bindListeners(!1);delete a.monitorElement;if(b&&!b.destroyed){b.removeCls('x-paint-monitored');delete a._element}if(d){d.removeChild(c)}a.callParent()}},1,0,0,0,0,0,[Ext.util.paintmonitor,'Abstract'],0);Ext.cmd.derive('Ext.util.paintmonitor.CssAnimation',Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.WebKit?'webkitAnimationEnd':'animationend',monitorClass:'cssanimation',onElementPainted:function(a){if(a.animationName==='x-paint-monitor-helper'){this.getCallback().apply(this.getScope(),this.getArgs())}}},0,0,0,0,0,0,[Ext.util.paintmonitor,'CssAnimation'],0);Ext.cmd.derive('Ext.util.PaintMonitor',Ext.Base,{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}},1,0,0,0,0,0,[Ext.util,'PaintMonitor'],0);Ext.cmd.derive('Ext.event.publisher.ElementPaint',Ext.event.publisher.Publisher,{type:'paint',handledEvents:['painted'],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(d){var b=this,a=d.id,c=b.subscribers;if(c[a]){++c[a]}else {c[a]=1;b.monitors[a]=new Ext.util.PaintMonitor({element:d,callback:b.onElementPainted,scope:b,args:[d]})}},unsubscribe:function(d){var a=d.id,b=this.subscribers,c=this.monitors;if(b[a]&&!--b[a]){delete b[a];c[a].destroy();delete c[a]}},onElementPainted:function(a){Ext.TaskQueue.requestRead('fire',this,[a,'painted',[a]])}},1,0,0,0,0,0,[Ext.event.publisher,'ElementPaint'],function(a){a.instance=new a()});Ext.cmd.derive('Ext.dom.Element',Ext.Base,function(a){var h=window,b=document,F='ext-window',D='ext-document',w='width',H='height',ac='min-width',_='min-height',ab='max-width',$='max-height',S='top',P='right',ag='bottom',R='left',aa='visibility',M='hidden',G='display',x='none',O='z-index',u='position',ad='relative',N='static',i='-',T=/\w/g,k=/\s+/,V=/[\s]+/,Y=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,U=/table-row|table-.*-group/,Q=/top/i,d={t:'border-top-width',r:'border-right-width',b:'border-bottom-width',l:'border-left-width'},f={t:'padding-top',r:'padding-right',b:'padding-bottom',l:'padding-left'},v={t:'margin-top',r:'margin-right',b:'margin-bottom',l:'margin-left'},Z=[f.l,f.r,f.t,f.b],B=[d.l,d.r,d.t,d.b],ae=/\d+$/,I=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,C='px',af=/(-[a-z])/gi,J=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,t=/^\d+(?:\.\d*)?px$/i,A={},y='originalDisplay',X=function(c,b){return b.charAt(1).toUpperCase()},E=function(d,e){var c,b,f;if(d.nodeType===1){d._extData=null;if(e){c=d.childNodes;for(b=0,f=c.length;bh.innerWidth?'portrait':'landscape'},getViewportHeight:function(){var c=a._viewportHeight;if(Ext.isIE9m){return b.documentElement.clientHeight}return c!=null?c:h.innerHeight},getViewportWidth:function(){var c=a._viewportWidth;if(Ext.isIE9m){return b.documentElement.clientWidth}return c!=null?c:h.innerWidth},getViewSize:function(){return {width:a.getViewportWidth(),height:a.getViewportHeight()}},normalize:function(b){return A[b]||(A[b]=b.replace(af,X))},_onWindowFocusChange:function(b){if(Ext.fly(b.target).is(a.editableSelector)){z=new Date();L=b.type==='focusin'||b.type==='pointerup'}},_onWindowResize:function(){var c=window.innerWidth,b=window.innerHeight,g=new Date(),f=1000,d,e;d=c-a._windowWidth;e=b-a._windowHeight;a._windowWidth=c;a._windowHeight=b;if(g-z=a.minKeyboardHeight){l=!1;K=new Date()}if(l){return}a._viewportWidth=c;a._viewportHeight=b},parseBox:function(c){c=c||0;var e=typeof c,b,d;if(e==='number'){return {top:c,right:c,bottom:c,left:c}}else {if(e!=='string'){return c}}b=c.split(' ');d=b.length;if(d===1){b[1]=b[2]=b[3]=b[0]}else {if(d===2){b[2]=b[0];b[3]=b[1]}else {if(d===3){b[3]=b[1]}}}return {top:parseFloat(b[0])||0,right:parseFloat(b[1])||0,bottom:parseFloat(b[2])||0,left:parseFloat(b[3])||0}},parseStyles:function(c){var d={},b;if(c){J.lastIndex=0;while(b=J.exec(c)){d[b[1]]=b[2]||''}}return d},select:function(d,c,e){return Ext.fly(e||b).select(d,c)},query:function(c,d,e){return Ext.fly(e||b).query(c,d)},unitizeBox:function(b,d){var c=this;b=c.parseBox(b);return c.addUnits(b.top,d)+' '+c.addUnits(b.right,d)+' '+c.addUnits(b.bottom,d)+' '+c.addUnits(b.left,d)},serializeForm:function(l){var m=l.elements||(b.forms[l]||Ext.getDom(l)).elements,n=!1,f=encodeURIComponent,g='',q=m.length,c,h,d,k,o,i,j,p,e;for(i=0;i0||b.scrollLeft!==0){e.push(b);g.push(c.attach(b).getScroll())}}return function(){var d,b,f;for(b=0,f=e.length;b '+d,!!c)},clone:function(c,d){var b=this.dom.cloneNode(c);if(Ext.supports.CloneNodeCopiesExpando){E(b,c)}return d?b:Ext.get(b)},constrainScrollLeft:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollWidth-b.clientWidth),0)},constrainScrollTop:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollHeight-b.clientHeight),0)},createChild:function(b,c,d){b=b||{tag:'div'};if(c){return Ext.DomHelper.insertBefore(c,b,d!==!0)}else {return Ext.DomHelper.append(this.dom,b,d!==!0)}},contains:function(b){if(!b){return !1}var d=this,c=Ext.getDom(b);return c===d.dom||d.isAncestor(c)},destroy:function(){var c=this,b=c.dom;if(b&&b.parentNode){b.parentNode.removeChild(b)}c.collect();if(!c.isFly){c.callParent()}},detach:function(){var b=this.dom;if(b&&b.parentNode&&b.tagName!=='BODY'){b.parentNode.removeChild(b)}return this},disableShadow:function(){var b=this.shadow;if(b){b.hide();b.disabled=!0}},disableShim:function(){var b=this.shim;if(b){b.hide();b.disabled=!0}},disableTouchContextMenu:function(){this._contextMenuListenerRemover=this.on({MSHoldVisual:function(b){b.preventDefault()},destroyable:!0,delegated:!1})},disableTouchScroll:function(){this.addCls(W);this.on({touchmove:function(b){b.preventDefault()},translate:!1})},doReplaceWith:function(c){var b=this.dom;b.parentNode.replaceChild(Ext.getDom(c),b)},doScrollIntoView:function(b,o,d,m,l,n){c=c||new Ext.dom.Fly();var e=this,k=e.dom,i=c.attach(b)[l](),j=b.scrollTop,h=e.getScrollIntoViewXY(b,i,j),f=h.x,g=h.y;if(m){if(d){d=Ext.apply({listeners:{afteranimate:function(){c.attach(k).highlight()}}},d)}else {c.attach(k).highlight()}}if(g!==j){c.attach(b).scrollTo('top',g,d)}if(o!==!1&&f!==i){c.attach(b)[n]('left',f,d)}return e},down:function(c,b){return this.selectNode(c,!!b)},enableShadow:function(f,e){var c=this,b=c.shadow||(c.shadow=new Ext.dom.Shadow(Ext.apply({target:c},f))),d=c.shim;if(d){d.offsets=b.outerOffsets;d.shadow=b;b.shim=d}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},enableShim:function(f,e){var c=this,b=c.shim||(c.shim=new Ext.dom.Shim(Ext.apply({target:c},f))),d=c.shadow;if(d){b.offsets=d.outerOffsets;b.shadow=d;d.shim=b}if(e===!0||e!==!1&&c.isVisible()){b.show()}else {b.hide()}b.disabled=!1},findParent:function(g,d,h){var i=this,c=i.dom,e=b.documentElement,f=0;if(d||d===0){if(typeof d!=='number'){e=Ext.getDom(d);d=Number.MAX_VALUE}}else {d=50}while(c&&c.nodeType===1&&f0&&d<0.5){b++}}}if(e){b-=c.getBorderWidth('tb')+c.getPadding('tb')}return b<0?0:b},getHtml:function(){return this.dom?this.dom.innerHTML:''},getLeft:function(b){return b?this.getLocalX():this.getX()},getLocalX:function(){var d=this,c,b=d.getStyle('left');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getX();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getX()}}}return b},getLocalXY:function(){var e=this,d,f=e.getStyle(['left','top']),b=f.left,c=f.top;if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=e.getX();d=e.dom.offsetParent;if(d){b-=Ext.fly(d).getX()}}}if(!c||c==='auto'){c=0}else {if(t.test(c)){c=parseFloat(c)}else {c=e.getY();d=e.dom.offsetParent;if(d){c-=Ext.fly(d).getY()}}}return [b,c]},getLocalY:function(){var d=this,c,b=d.getStyle('top');if(!b||b==='auto'){b=0}else {if(t.test(b)){b=parseFloat(b)}else {b=d.getY();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getY()}}}return b},getMargin:function(){var c={t:'top',l:'left',r:'right',b:'bottom'},b=['margin-top','margin-left','margin-right','margin-bottom'];return function(g){var h=this,e,f,d;if(!g){e=h.getStyle(b);d={};if(e&&typeof e==='object'){d={};for(f in v){d[f]=d[c[f]]=parseFloat(e[v[f]])||0}}}else {d=h.addStyles(g,v)}return d}}(),getPadding:function(b){return this.addStyles(b,f)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(b){return (b?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var h=this,d=h.dom,g=b.documentElement,e,f,c=document.body;if(d===b||d===c){e=g.scrollLeft||(c?c.scrollLeft:0);f=g.scrollTop||(c?c.scrollTop:0)}else {e=d.scrollLeft;f=d.scrollTop}return {left:e,top:f}},getScrollIntoViewXY:function(r,b,c){var p=this.dom,h=Ext.getDom(r),j=this.getOffsetsTo(h),o=p.offsetWidth,m=p.offsetHeight,f=j[0]+b,g=j[1]+c,l=g+m,n=f+o,d=h.clientHeight,e=h.clientWidth,i=b,k=c,q=k+d,s=i+e;if(m>d||gq){c=l-d}}if(o>e||fs){b=n-e}}return {x:b,y:c}},getScrollLeft:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().left}else {return c.scrollLeft}},getScrollTop:function(){var c=this.dom;if(c===b||c===document.body){return this.getScroll().top}else {return c.scrollTop}},getSize:function(b){return {width:this.getWidth(b),height:this.getHeight(b)}},getStyle:function(n,i){var k=this,e=k.dom,m=typeof n!=='string',p=k.styleHooks,b=n,j=b,q=1,h,o,f,d,g,c,l;if(m){f={};b=j[0];l=0;if(!(q=j.length)){return f}}if(!e||e.documentElement){return f||''}h=e.style;if(i){c=h}else {c=e.ownerDocument.defaultView.getComputedStyle(e,null);if(!c){i=!0;c=h}}do{d=p[b];if(!d){p[b]=d={name:a.normalize(b)}}if(d.get){g=d.get(e,k,i,c)}else {o=d.name;g=c[o]}if(!m){return g}f[b]=g;b=j[++l]}while(l0&&e<0.5){b++}}}if(h){b-=c.getBorderWidth('lr')+c.getPadding('lr')}return b<0?0:b},getX:function(){return this.getXY()[0]},getXY:function(){var h=Math.round,e=this.dom,f=0,g=0,c,d;if(e!==b&&e!==b.body){try{c=e.getBoundingClientRect()}catch(ah){c={left:0,top:0}}f=h(c.left);g=h(c.top);d=Ext.getDoc().getScroll();f+=d.left;g+=d.top}return [f,g]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle('z-index'),10)},hasCls:function(c){var b=this.getData();if(!b.isSynchronized){this.synchronize()}return b.classMap.hasOwnProperty(c)},hide:function(){this.setVisible(!1);return this},insertAfter:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b.nextSibling);return this},insertBefore:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b);return this},insertFirst:function(b,c){b=b||{};if(b.nodeType||b.dom||typeof b==='string'){b=Ext.getDom(b);this.dom.insertBefore(b,this.dom.firstChild);return !c?Ext.get(b):b}else {return this.createChild(b,this.dom.firstChild,c)}},insertHtml:function(d,e,c){var b=Ext.DomHelper.insertHtml(d,this.dom,e);return c?Ext.get(b):b},insertSibling:function(b,k,f){var d=this,j=Ext.DomHelper,h=(k||'before').toLowerCase()==='after',c,g,i,e;if(Ext.isIterable(b)){i=b.length;g=Ext.fly(document.createDocumentFragment());if(Ext.isArray(b)){for(e=0;eb.clientHeight||b.scrollWidth>b.clientWidth},isStyle:function(b,c){return this.getStyle(b)===c},isVisible:function(d){var b=this.dom,c;if(!b){return !1}if(!s){s=new Ext.dom.Fly()}for(c=b.ownerDocument.documentElement;b!==c;b=b.parentNode){if(!b||b.nodeType===11||s.attach(b).isStyle(aa,M)||s.isStyle(G,x)){return !1}if(!d){break}}return !0},last:function(c,b){return this.matchNode('previousSibling','lastChild',c,b)},maskIframes:function(){var b=document.getElementsByTagName('iframe');Ext.each(b,function(c){var b=Ext.fly(c.parentNode),d=b.mask();d.setStyle('background-color','transparent')})},matchNode:function(g,f,c,e){var d=this.dom,b;if(!d){return null}b=d[f];while(b){if(b.nodeType===1&&(!c||Ext.fly(b,'_matchNode').is(c))){return !e?Ext.get(b):b}b=b[g]}return null},next:function(c,b){return this.matchNode('nextSibling','nextSibling',c,b)},parent:function(c,b){return this.matchNode('parentNode','parentNode',c,b)},position:function(c,d,e,f){var b=this;if(b.dom.tagName!=='BODY'){if(!c&&b.isStyle(u,N)){b.setStyle(u,ad)}else {if(c){b.setStyle(u,c)}}if(d){b.setStyle(O,d)}if(e||f){b.setXY([e||!1,f||!1])}}},prev:function(c,b){return this.matchNode('previousSibling','previousSibling',c,b)},query:function(b,e,j){var i=this.dom,g,l,k,h,f,c,d;if(!i){return null}e=e!==!1;b=b.split(',');if(!j){g=[]}for(c=0,l=b.length;c0){b=i.className.split(V);for(c=0,j=b.length;c=':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>=a},'>':function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>a},'!=':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!=c},'!==':function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!==c},'in':function(b){var a=this._filterValue;return Ext.Array.contains(a,this.getCandidateValue(b,a))},notin:function(b){var a=this._filterValue;return !Ext.Array.contains(a,this.getCandidateValue(b,a))},like:function(b){var a=this._filterValue;return a&&this.getCandidateValue(b,a).toLowerCase().indexOf(a.toLowerCase())>-1}};a['==']=a['='];a.gt=a['>'];a.ge=a['>='];a.lt=a['<'];a.le=a['<='];a.eq=a['='];a.ne=a['!=']});Ext.cmd.derive('Ext.util.Observable',Ext.mixin.Observable,{$applyConfigs:!0},0,0,0,0,0,0,[Ext.util,'Observable'],function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe});Ext.cmd.derive('Ext.util.AbstractMixedCollection',Ext.Base,{isMixedCollection:!0,generation:0,indexGeneration:0,constructor:function(b,c){var a=this;if(arguments.length===1&&Ext.isObject(b)){a.initialConfig=b;Ext.apply(a,b)}else {a.allowFunctions=b===!0;if(c){a.getKey=c}a.initialConfig={allowFunctions:a.allowFunctions,getKey:a.getKey}}a.items=[];a.map={};a.keys=[];a.indexMap={};a.length=0;a.mixins.observable.constructor.call(a)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:!1,add:function(b,d){var c=this.length,a;if(arguments.length===1){a=this.insert(c,b)}else {a=this.insert(c,b,d)}return a},getKey:function(a){return a.id},replace:function(b,c){var a=this,d,e;if(arguments.length==1){c=arguments[0];b=a.getKey(c)}d=a.map[b];if(typeof b=='undefined'||b===null||typeof d=='undefined'){return a.add(b,c)}a.generation++;e=a.indexOfKey(b);a.items[e]=c;a.map[b]=c;if(a.hasListeners.replace){a.fireEvent('replace',b,d,c)}return c},reorder:function(e){var b=this,f=b.items,a=0,h=f.length,c=[],g=[],d;b.suspendEvents();for(d in e){c[e[d]]=f[d]}for(a=0;a-1){g=e[b];delete e[b];delete f[b];e[c]=g;f[c]=d;a.keys[d]=c;a.indexGeneration=++a.generation}},addAll:function(a){var c=this,b;if(arguments.length>1||Ext.isArray(a)){c.insert(c.length,arguments.length>1?arguments:a)}else {for(b in a){if(a.hasOwnProperty(b)){if(c.allowFunctions||typeof a[b]!='function'){c.add(b,a[b])}}}}},each:function(f,e){var c=Ext.Array.push([],this.items),a=0,d=c.length,b;for(;a2){a=this.doInsert(c,[b],[d])}else {a=this.doInsert(c,[b])}a=a[0]}return a},doInsert:function(f,e,d){var b=this,c,i,a,g=e.length,j=g,o=b.hasListeners.add,k,h={},l,n,m;if(d!=null){b.useLinearSearch=!0}else {d=e;e=new Array(g);for(a=0;a=0;--c){a.remove(b[c])}}else {while(a.length){a.removeAt(0)}}}else {a.length=a.items.length=a.keys.length=0;a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}},removeAt:function(b){var a=this,d,c;if(b=0){a.length--;d=a.items[b];Ext.Array.erase(a.items,b,1);c=a.keys[b];if(typeof c!='undefined'){delete a.map[c]}Ext.Array.erase(a.keys,b,1);if(a.hasListeners.remove){a.fireEvent('remove',d,c)}a.generation++;return d}return !1},removeRange:function(c,b){var a=this,i,f,d,e,g,h;if(c=0){if(!b){b=1}e=Math.min(c+b,a.length);b=e-c;h=e===a.length;g=h&&a.indexGeneration===a.generation;for(d=c;d=0;a--){if(c[a]==null){b.removeAt(a)}}}else {return b.removeAt(b.indexOfKey(d))}},getCount:function(){return this.length},indexOf:function(b){var a=this,c;if(b!=null){if(!a.useLinearSearch&&(c=a.getKey(b))){return this.indexOfKey(c)}return Ext.Array.indexOf(a.items,b)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var b=this,d=b.indexMap={},c=b.keys,e=c.length,a;for(a=0;aa){e=!0;g=b;b=a;a=g}if(b<0){b=0}if(a==null||a>=d){a=d-1}c=f.slice(b,a+1);if(e&&c.length){c.reverse()}return c},filter:function(a,e,d,c){var b=[];if(Ext.isString(a)){b.push(new Ext.util.Filter({property:a,value:e,anyMatch:d,caseSensitive:c}))}else {if(Ext.isArray(a)||a instanceof Ext.util.Filter){b=b.concat(a)}}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(h,g){var a=this,c=new a.self(a.initialConfig),e=a.keys,d=a.items,f=d.length,b;c.getKey=a.getKey;for(b=0;bb?1:a0){c.removeRange(b.multiSortLimit,g)};break;case 'prepend':c.insert(0,a);break;case 'append':c.addAll(a);break;case undefined:case null:case 'replace':c.clear();c.addAll(a);break;default:}}if(h!==!1){b.fireEvent('beforesort',b,a);b.onBeforeSort(a);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return a},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(b){if(!Ext.isArray(b)){if(b===undefined){b=[]}else {b=[b]}}var g=b.length,f=Ext.util.Sorter,e=this.getModel?this.getModel():this.model,d,a,c;for(c=0;c>1;c=d(h,f[a]);if(c>=0){b=a+1}else {if(c<0){e=a-1}}}return b},reorder:function(a){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,a);this.fireEvent('sort',this)},sortByKey:function(a,b){this._sort('key',a,b||function(e,f){var c=String(e).toUpperCase(),d=String(f).toUpperCase();return c>d?1:cf){k=f}}}if(c){b.tasks=c}b.firing=!1;if(b.tasks.length){b.startTimer(k-g,Ext.Date.now())}if(j!==!1&&l.hasListeners.idle){l.fireEvent('idle')}},startTimer:function(b,e){var a=this,d=e+b,c=a.timerId;if(c&&a.nextExpires-d>a.interval){clearTimeout(c);c=null}if(!c){if(b=a.duration,b,c;if(h){d=a.duration;e=!0}b=this.collectTargetData(a,d,f,e);if(f){a.target.setAttr(b.anims[a.id].attributes,!0);g.collectTargetData(a,a.duration,f,e);a.paused=!0;b=a.target.target;if(a.target.isComposite){b=a.target.target.last()}c={};c[Ext.supports.CSS3TransitionEnd]=a.lastFrame;c.scope=a;c.single=!0;b.on(c)}return b},jumpToEnd:function(d){var a=this,b,c;if(!a.targetArr){a.targetArr={};c=!0}b=a.runAnim(d,!0);a.applyAnimAttrs(b,b.anims[d.id]);if(c){a.targetArr=null}},collectTargetData:function(a,d,f,e){var c=a.target.getId(),b=this.targetArr[c];if(!b){b=this.targetArr[c]={id:c,el:a.target,anims:{}}}b.anims[a.id]={id:a.id,anim:a,elapsed:d,isLastFrame:e,attributes:[{duration:a.duration,easing:f&&a.reverse?a.easingFn.reverse().toCSS3():a.easing,attrs:a.runAnim(d)}]};return b},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var c=this.targetArr,b,d,a,f,e;for(d in c){if(c.hasOwnProperty(d)){b=c[d];for(e in b.anims){if(b.anims.hasOwnProperty(e)){a=b.anims[e];f=a.anim;if(a.attributes&&f.isRunning()){b.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){f.lastFrame()}}}}}}}},1,0,0,0,0,[['queue',Ext.fx.Queue]],[Ext.fx,'Manager'],0);Ext.cmd.derive('Ext.fx.Animator',Ext.Base,{isAnimator:!0,duration:250,delay:0,delayStart:0,dynamic:!1,easing:'ease',running:!1,paused:!1,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(b){var a=this;b=Ext.apply(a,b||{});a.config=b;a.id=Ext.id(null,'ext-animator-');a.mixins.observable.constructor.call(a,b);a.timeline=[];a.createTimeline(a.keyframes);if(a.target){a.applyAnimator(a.target);Ext.fx.Manager.addAnim(a)}},sorter:function(a,b){return a.pct-b.pct},createTimeline:function(e){var d=this,b=[],k=d.to||{},g=d.duration,h,j,c,i,a,f;for(a in e){if(e.hasOwnProperty(a)&&d.animKeyFramesRE.test(a)){f={attrs:Ext.apply(e[a],k)};if(a==='from'){a=0}else {if(a==='to'){a=100}}f.pct=parseInt(a,10);b.push(f)}}Ext.Array.sort(b,d.sorter);i=b.length;for(c=0;c0},isRunning:function(){return !1}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Animator'],0);Ext.cmd.derive('Ext.fx.CubicBezier',Ext.Base,{singleton:!0,cubicBezierAtTime:function(l,d,e,i,j,h){var a=3*d,b=3*(i-d)-a,f=1-a-b,c=3*e,g=3*(j-e)-c,k=1-c-g;function sampleCurveX(c){return ((f*c+b)*c+a)*c}function solve(f,b){var a=solveCurveX(f,b);return ((k*a+g)*a+c)*a}function solveCurveX(n,q){var g,k,c,m,o,p;for(c=n,p=0;p<8;p++){m=sampleCurveX(c)-n;if(Math.abs(m)k){return k}while(gm){g=c}else {k=c}c=(k-g)/2+g}return c}return solve(l,1/(200*h))},cubicBezier:function(b,d,c,e){var a=function(a){return Ext.fx.CubicBezier.cubicBezierAtTime(a,b,d,c,e,1)};a.toCSS3=function(){return 'cubic-bezier('+[b,d,c,e].join(',')+')'};a.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-c,1-e,1-b,1-d)};return a}},0,0,0,0,0,0,[Ext.fx,'CubicBezier'],0);Ext.cmd.derive('Ext.fx.Easing',Ext.Base,function(){var b=Math,g=b.PI,a=b.pow,f=b.sin,e=b.sqrt,d=b.abs,c=1.70158;return {singleton:!0,linear:Ext.identityFn,ease:function(k){var c=0.07813-k/2,f=e(0.0066+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.25;return a(1-b,2)*3*b*0.1+(1-b)*3*b*b+b*b*b},easeIn:function(b){return a(b,1.7)},easeOut:function(b){return a(b,0.48)},easeInOut:function(k){var c=0.48-k/1.04,f=e(0.1734+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.5;return (1-b)*3*b*b+b*b*b},backIn:function(a){return a*a*((c+1)*a-c)},backOut:function(a){a=a-1;return a*a*((c+1)*a+c)+1},elasticIn:function(b){if(b===0||b===1){return b}var c=0.3,d=c/4;return a(2,-10*b)*f((b-d)*(2*g)/c)+1},elasticOut:function(a){return 1-Ext.fx.Easing.elasticIn(1-a)},bounceIn:function(a){return 1-Ext.fx.Easing.bounceOut(1-a)},bounceOut:function(a){var d=7.5625,b=2.75,c;if(a<1/b){c=d*a*a}else {if(a<2/b){a-=1.5/b;c=d*a*a+0.75}else {if(a<2.5/b){a-=2.25/b;c=d*a*a+0.9375}else {a-=2.625/b;c=d*a*a+0.984375}}}return c}}},0,0,0,0,0,0,[Ext.fx,'Easing'],function(c){var b=c.self,a=b.prototype;b.addMembers({'back-in':a.backIn,'back-out':a.backOut,'ease-in':a.easeIn,'ease-out':a.easeOut,'elastic-in':a.elasticIn,'elastic-out':a.elasticOut,'bounce-in':a.bounceIn,'bounce-out':a.bounceOut,'ease-in-out':a.easeInOut})});Ext.cmd.derive('Ext.fx.DrawPath',Ext.Base,{singleton:!0,pathToStringRE:/,?([achlmqrstvxz]),?/gi,pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,stopsRE:/^(\d+%?)$/,radian:Math.PI/180,is:function(b,a){a=String(a).toLowerCase();return a=='object'&&b===Object(b)||a=='undefined'&&typeof b==a||a=='null'&&b===null||a=='array'&&Array.isArray&&Array.isArray(b)||Object.prototype.toString.call(b).toLowerCase().slice(8,-1)==a},path2string:function(){return this.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},pathToString:function(a){return a.join(',').replace(Ext.fx.DrawPath.pathToStringRE,'$1')},parsePathString:function(c){if(!c){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=[],b=this;if(b.is(c,'array')&&b.is(c[0],'array')){a=b.pathClone(c)}if(!a.length){String(c).replace(b.pathCommandRE,function(i,g,h){var e=[],f=g.toLowerCase();h.replace(b.pathValuesRE,function(b,a){if(a){e.push(+a)}});if(f=='m'&&e.length>2){a.push([g].concat(Ext.Array.splice(e,0,2)));f='l';g=g=='m'?'l':'L'}while(e.length>=d[f]){a.push([g].concat(Ext.Array.splice(e,0,d[f])));if(!d[f]){break}}})}a.toString=b.path2string;return a},pathClone:function(a){var d=[],c,f,b,e;if(!this.is(a,'array')||!this.is(a&&a[0],'array')){a=this.parsePathString(a)}for(b=0,e=a.length;b7){a[d].shift();var e=a[d];while(e.length){Ext.Array.splice(a,d++,0,['C'].concat(Ext.Array.splice(e,0,6)))}Ext.Array.erase(a,d,1);j=Math.max(c.length,b.length||0)}},m=function(d,f,e,g,a){if(d&&f&&d[a][0]=='M'&&f[a][0]!='M'){Ext.Array.splice(f,a,0,['M',g.x,g.y]);e.bx=0;e.by=0;e.x=d[a][1];e.y=d[a][2];j=Math.max(c.length,b.length||0)}},a,j,g,f,i,h;for(a=0,j=Math.max(c.length,b.length||0);a1){u=N(u);d=u*d;c=u*c}x=d*d;y=c*c;I=(X==v?-1:1)*N(R((x*y-x*j*j-y*i*i)/(x*j*j+y*i*i)));q=I*d*j/c+(m+e)/2;r=I*-c*i/d+(n+f)/2;b=M(((n-r)/c).toFixed(7));a=M(((f-r)/c).toFixed(7));b=ma){b=b-k*2}if(!v&&a>b){a=a-k*2}}else {b=o[0];a=o[1];q=o[2];r=o[3]}z=a-b;if(R(z)>Q){L=a;O=e;P=f;a=b+Q*(v&&a>b?1:-1);e=q+d*B(a);f=r+c*C(a);g=s.arc2curve(e,f,d,c,K,0,v,O,P,[a,L,q,r])}z=a-b;S=B(b);V=C(b);T=B(a);W=C(a);J=p.tan(z/4);D=4/3*d*J;E=4/3*c*J;F=[m,n];l=[m+D*V,n-E*S];G=[e+D*W,f-E*T];H=[e,f];l[0]=2*F[0]-l[0];l[1]=2*F[1]-l[1];if(o){return [l,G,H].concat(g)}else {g=[l,G,H].concat(g).join().split(',');A=[];U=g.length;for(h=0;h=d){b=d;f=!0}if(a.reverse){b=d-b}for(c in e){if(e.hasOwnProperty(c)){h=e[c];g=f?1:k(b/d);i[c]=j[c].set(h,g)}}a.frameCount++;return i},lastFrame:function(){var a=this,c=a.iterations,b=a.currentIteration;b++;if(b0},isRunning:function(){return this.paused===!1&&this.running===!0&&this.isAnimator!==!0}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Anim'],0);Ext.enableFx=!0;Ext.cmd.derive('Ext.util.Animate',Ext.Base,{mixinId:'animate',isAnimate:!0,animate:function(b){var a=this;if(Ext.fx.Manager.hasFxBlock(a.id)){return a}Ext.fx.Manager.queueFx(new Ext.fx.Anim(a.anim(b)));return this},anim:function(a){if(!Ext.isObject(a)){return a?{}:!1}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:!0},a)},getAnimationProps:function(){var b=this,a=b.layout;return a&&a.animate?a.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,'stopAnimation'),stopAnimation:function(){Ext.fx.Manager.stopAnimation(this.id);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!0});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!1});return this},hasActiveFx:Ext.Function.alias(Ext.util.Animate,'getActiveAnimation'),getActiveAnimation:function(){return Ext.fx.Manager.getActiveAnimation(this.id)}},0,0,0,0,0,0,[Ext.util,'Animate'],0);Ext.cmd.derive('Ext.dom.Fly',Ext.dom.Element,{alternateClassName:'Ext.dom.Element.Fly',validNodeTypes:{1:1,9:1,11:1},isFly:!0,constructor:function(a){this.dom=a;this.el=this},attach:function(b){var a=this;if(!b){return a.detach()}a.dom=b;if(!Ext.cache[b.id]){a.getData().isSynchronized=!1}return a},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,'Fly',Ext.dom.Element,'Fly'],function(b){var a={};b.cache=a;Ext.fly=function(c,e){var d=null,h=Ext.fly,f,g;e=e||h.caller&&h.caller.$name||'_global';c=Ext.getDom(c);if(c){f=c.nodeType;if(b.prototype.validNodeTypes[f]||!f&&c.window==c){d=Ext.cache[c.id];if(!d||d.dom!==c){d=a[e]||(a[e]=new b());d.dom=c;g=d.getData(!0);if(g){g.isSynchronized=!1}}}}return d}});Ext.cmd.derive('Ext.dom.CompositeElementLite',Ext.Base,{alternateClassName:['Ext.CompositeElementLite'],isComposite:!0,isLite:!0,statics:{importElementMethods:function(){var b=Ext.dom.Element,a=this.prototype;Ext.Object.each(b.prototype,function(b,c){if(typeof c==='function'&&!a[b]){a[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(a,b){if(b){this.elements=a||[]}else {this.elements=[];this.add(a)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(a,e){var d=this.elements,b,c;if(!a){return this}if(typeof a=='string'){a=Ext.fly(e||document).query(a)}else {if(a.isComposite){a=a.elements}else {if(!Ext.isIterable(a)){a=[a]}}}for(b=0,c=a.length;b-1){a=Ext.getDom(a);if(e){b=this.elements[c];b.parentNode.insertBefore(a,b);Ext.removeNode(b)}Ext.Array.splice(this.elements,c,1,a)}return this},clear:function(c){var d=this,b=d.elements,a=b.length-1;if(c){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(a,d){if(!a){return this}if(typeof a==='string'){a=Ext.dom.Element.selectorFunction(a,d)}var e=this.elements,c=a.length,b;for(b=0;b','','','',''].join(''),O=/(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,J=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,G=/\ssrc=([\'\"])(.*?)\1/i,v=/\S/,E=/\stype=([\'\"])(.*?)\1/i,I=/^-ms-/,B=/(-[a-z])/gi,L=function(b,a){return a.charAt(1).toUpperCase()},r='x-masked',k='x-masked-relative',m='x-mask-msg',D=/^body/i,l={},u=function(d){var c=d.getData(),b=c[q];if(b===undefined){c[q]=b=a.VISIBILITY}return b},f=b.createRange?b.createRange():null,z={INPUT:!0,TEXTAREA:!0};if(Ext.isIE8){var p=b.createElement('div'),c=[],M=Ext.Function.createBuffered(function(){var b=c.length,a;for(a=0;a"+Ext.String.format(y,a)+''));b.selectNode('.'+a+'-mc').appendChild(this.dom);return b},clean:function(g){var c=this,d=c.dom,e=c.getData(),a=d.firstChild,f=-1,b;if(e.isCleaned&&g!==!0){return c}while(a){b=a.nextSibling;if(a.nodeType===3){if(!v.test(a.nodeValue)){d.removeChild(a)}else {if(b&&b.nodeType===3){a.appendData(Ext.String.trim(b.data));d.removeChild(b);b=a.nextSibling;a.nodeIndex=++f}}}else {Ext.fly(a,'_clean').clean();a.nodeIndex=++f}a=b}e.isCleaned=!0;return c},empty:f?function(){var a=this.dom;if(a.firstChild){f.setStartBefore(a.firstChild);f.setEndAfter(a.lastChild);f.deleteContents()}}:function(){var a=this.dom;while(a.lastChild){a.removeChild(a.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(a){a=a||'';return this.setStyle({left:a,right:a,top:a,bottom:a,'z-index':'',position:'static'})},createProxy:function(b,e,f){b=typeof b==='object'?b:{tag:'div',role:'presentation',cls:b};var d=this,c=e?Ext.DomHelper.append(e,b,!0):Ext.DomHelper.insertBefore(d.dom,b,!0);c.setVisibilityMode(a.DISPLAY);c.hide();if(f&&d.setBox&&d.getBox){c.setBox(d.getBox())}return c},clearOpacity:function(){return this.setOpacity('')},clip:function(){var a=this,c=a.getData(),b;if(!c[g]){c[g]=!0;b=a.getStyle([j,h,i]);c[n]={o:b[j],x:b[h],y:b[i]};a.setStyle(j,e);a.setStyle(h,e);a.setStyle(i,e)}return a},destroy:function(){var b=this,a=b.dom,f=b.getData(),e,d;if(a&&b.isAnimate){b.stopAnimation()}arguments.callee.$previous.call(this);if(a&&Ext.isIE8&&a.window!=a&&a.nodeType!==9&&a.tagName!=='BODY'&&a.tagName!=='HTML'){c[c.length]=a;M()}if(f){e=f.maskEl;d=f.maskMsg;if(e){e.destroy()}if(d){d.destroy()}}},enableDisplayMode:function(c){var b=this;b.setVisibilityMode(a.DISPLAY);if(c!==undefined){b.getData()[K]=c}return b},fadeIn:function(c){var a=this,b=a.dom;a.animate(Ext.apply({},c,{opacity:1,internalListeners:{beforeanimate:function(d){var a=Ext.fly(b,'_anim');if(a.isStyle('display','none')){a.setDisplayed('')}else {a.show()}}}}));return this},fadeOut:function(a){var b=this,c=b.dom;a=Ext.apply({opacity:0,internalListeners:{afteranimate:function(d){if(c&&d.to.opacity===0){var b=Ext.fly(c,'_anim');if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}}}}},a);b.animate(a);return b},fixDisplay:function(){var a=this;if(a.isStyle(d,s)){a.setStyle(o,e);a.setStyle(d,a._getDisplay());if(a.isStyle(d,s)){a.setStyle(d,'block')}}},frame:function(b,c,a){var d=this,f=d.dom,e;b=b||'#C3DAF9';c=c||1;a=a||{};e=function(){var g=Ext.fly(f,'_anim'),i=this,d,e,h;g.show();d=g.getBox();e=Ext.getBody().createChild({role:'presentation',id:g.dom.id+'-anim-proxy',style:{position:'absolute','pointer-events':'none','z-index':35000,border:'0px solid '+b}});h=new Ext.fx.Anim({target:e,duration:a.duration||1000,iterations:c,from:{top:d.y,left:d.x,borderWidth:0,opacity:1,height:d.height,width:d.width},to:{top:d.y-20,left:d.x-20,borderWidth:10,opacity:0,height:d.height+40,width:d.width+40}});h.on('afteranimate',function(){e.destroy();i.end()})};d.animate({duration:Math.max(a.duration,500)*2||2000,listeners:{beforeanimate:{fn:e}},callback:a.callback,scope:a.scope});return d},getColor:function(h,f,c){var a=this.getStyle(h),b=c||c===''?c:'#',d,g,e=0;if(!a||/transparent|inherit/.test(a)){return f}if(/^r/.test(a)){a=a.slice(4,a.length-1).split(',');g=a.length;for(;e5?b.toLowerCase():f},getLoader:function(){var c=this,b=c.getData(),a=b.loader;if(!a){b.loader=a=new Ext.ElementLoader({target:c})}return a},getPositioning:function(c){var a=this.getStyle(['left','top','position','z-index']),b=this.dom;if(c){if(a.left==='auto'){a.left=b.offsetLeft+'px'}if(a.top==='auto'){a.top=b.offsetTop+'px'}}return a},ghost:function(a,e){var b=this,d=b.dom,c;a=a||'b';c=function(){var h=Ext.fly(d,'_anim'),g=h.getWidth(),f=h.getHeight(),c=h.getXY(),i=h.getPositioning(),b={opacity:0};switch(a){case 't':b.y=c[1]-f;break;case 'l':b.x=c[0]-g;break;case 'r':b.x=c[0]+g;break;case 'b':b.y=c[1]+f;break;case 'tl':b.x=c[0]-g;b.y=c[1]-f;break;case 'bl':b.x=c[0]-g;b.y=c[1]+f;break;case 'br':b.x=c[0]+g;b.y=c[1]+f;break;case 'tr':b.x=c[0]+g;b.y=c[1]-f;break;}this.to=b;this.on('afteranimate',function(){var b=Ext.fly(d,'_anim');if(b){b.hide();b.clearOpacity();b.setPositioning(i)}})};b.animate(Ext.applyIf(e||{},{duration:500,easing:'ease-out',listeners:{beforeanimate:c}}));return b},hide:function(a){if(typeof a==='string'){this.setVisible(!1,a);return this}this.setVisible(!1,this.anim(a));return this},highlight:function(k,b){var g=this,e=g.dom,j={},i,h,c,d,a,f;b=b||{};d=b.listeners||{};c=b.attr||'backgroundColor';j[c]=k||'ffff9c';if(!b.to){h={};h[c]=b.endColor||g.getColor(c,'ffffff','')}else {h=b.to}b.listeners=Ext.apply(Ext.apply({},d),{beforeanimate:function(){i=e.style[c];var g=Ext.fly(e,'_anim');g.clearOpacity();g.show();a=d.beforeanimate;if(a){f=a.fn||a;return f.apply(a.scope||d.scope||t,arguments)}},afteranimate:function(){if(e){e.style[c]=i}a=d.afteranimate;if(a){f=a.fn||a;f.apply(a.scope||d.scope||t,arguments)}}});g.animate(Ext.apply({},b,{duration:1000,easing:'ease-in',from:j,to:h}));return g},hover:function(d,e,c,b){var a=this;a.on('mouseenter',d,c||a.dom,b);a.on('mouseleave',e,c||a.dom,b);return a},initDD:function(c,b,a){var d=new Ext.dd.DD(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDProxy:function(c,b,a){var d=new Ext.dd.DDProxy(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDTarget:function(c,b,a){var d=new Ext.dd.DDTarget(Ext.id(this.dom),c,b);return Ext.apply(d,a)},isFocusable:function(){var a=this.dom,b=!1,c;if(a&&!a.disabled){c=a.nodeName;b=!!Ext.Element.naturallyFocusableTags[c]||(c==='A'||c==='LINK')&&!!a.href||a.getAttribute('tabIndex')!=null||a.contentEditable==='true';if(Ext.isIE8&&c==='INPUT'&&a.type==='hidden'){b=!1}b=b&&this.isVisible(!0)}return b},isInputField:function(){var a=this.dom,b=a.contentEditable;if(z[a.tagName]&&a.type!=='button'||(b===''||b==='true')){return !0}return !1},isTabbable:function(f){var c=this.dom,a=!1,e,d,b;if(c&&!c.disabled){e=c.nodeName;b=c.getAttribute('tabIndex');d=b!=null;b-=0;if(e==='A'||e==='LINK'){if(c.href){a=d&&b<0?!1:!0}else {if(c.contentEditable==='true'){a=!d||d&&b>=0?!0:!1}else {a=d&&b>=0?!0:!1}}}else {if(c.contentEditable==='true'||Ext.Element.naturallyTabbableTags[e]){a=d&&b<0?!1:!0}else {if(d&&b>=0){a=!0}}}if(Ext.isIE8&&e==='INPUT'&&c.type==='hidden'){a=!1}a=a&&(f||(!this.component||this.component.isVisible(!0))&&this.isVisible(!0))}return a},isMasked:function(g){var b=this,f=b.getData(),e=f.maskEl,d=f.maskMsg,c=!1,a;if(e&&e.isVisible()){if(d){d.center(b)}c=!0}else {if(g){a=b.findParentNode();if(a){return Ext.fly(a).isMasked(g)}}}return c},load:function(a){this.getLoader().load(a);return this},mask:function(h,f,i){var c=this,d=c.dom,g=c.getData(),a=g.maskEl,e;if(!(D.test(d.tagName)&&c.getStyle('position')==='static')){c.addCls(k)}if(a){a.destroy()}a=Ext.DomHelper.append(d,{role:'presentation',cls:'x-mask x-border-box',children:{role:'presentation',cls:f?m+' '+f:m,cn:{tag:'div',role:'presentation',cls:'x-mask-msg-inner',cn:{tag:'div',role:'presentation',cls:'x-mask-msg-text',html:h||''}}}},!0);e=Ext.get(a.dom.firstChild);g.maskEl=a;c.addCls(r);a.setDisplayed(!0);if(typeof h==='string'){e.setDisplayed(!0);e.center(c)}else {e.setDisplayed(!1)}if(d===b.body){a.addCls('x-mask-fixed')}c.saveTabbableState({skipSelf:d===b.body});if(Ext.isIE9m&&d!==b.body&&c.isStyle('height','auto')){a.setSize(undefined,i||c.getHeight())}return a},monitorMouseLeave:function(e,d,f){var c=this,b,a={mouseleave:function(a){if(Ext.isIE9m){a.enableIEAsync()}b=Ext.defer(d,e,f||c,[a])},mouseenter:function(){clearTimeout(b)}};c.on(a);return a},puff:function(a){var c=this,e=c.dom,d,b=c.getBox(),f=c.getStyle(['width','height','left','right','top','bottom','position','z-index','font-size','opacity'],!0);a=Ext.applyIf(a||{},{easing:'ease-out',duration:500,useDisplay:!1});d=function(){var c=Ext.fly(e,'_anim');c.clearOpacity();c.show();this.to={width:b.width*2,height:b.height*2,x:b.x-b.width/2,y:b.y-b.height/2,opacity:0,fontSize:'200%'};this.on('afteranimate',function(){var b=Ext.fly(e,'_anim');if(b){if(a.useDisplay){b.setDisplayed(!1)}else {b.hide()}b.setStyle(f);Ext.callback(a.callback,a.scope)}})};c.animate({duration:a.duration,easing:a.easing,listeners:{beforeanimate:{fn:d}}});return c},selectable:function(){var b=this;b.dom.unselectable='';b.removeCls(a.unselectableCls);b.addCls(a.selectableCls);return b},setCapture:function(){var a=this.dom;if(Ext.isIE9m&&a.setCapture){a.setCapture()}},setHeight:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{height:c}},a))}return b},setHorizontal:function(){var a=this,b=a.verticalCls;delete a.vertical;if(b){delete a.verticalCls;a.removeCls(b)}delete a.setWidth;delete a.setHeight;if(!Ext.isIE8){delete a.getWidth;delete a.getHeight}delete a.styleHooks},updateText:function(d){var e=this,c,a;if(c){a=c.firstChild;if(!a||(a.nodeType!==3||a.nextSibling)){a=b.createTextNode();e.empty();c.appendChild(a)}if(d){a.data=d}}},setHtml:function(c,i,g,d){var a=this,f,e,h;if(!a.dom){return a}c=c||'';e=a.dom;if(i!==!0){e.innerHTML=c;Ext.callback(g,a);return a}f=Ext.id();c+='';h=Ext.interval(function(){var o,e,l,k,j,n,m;if(!(n=b.getElementById(f))){return !1}clearInterval(h);Ext.removeNode(n);o=Ext.getHead().dom;while(e=O.exec(c)){l=e[1];k=l?l.match(G):!1;if(k&&k[2]){m=b.createElement('script');m.src=k[2];j=l.match(E);if(j&&j[2]){m.type=j[2]}o.appendChild(m)}else {if(e[2]&&e[2].length>0){if(d){Ext.functionFactory(e[2]).call(d)}else {Ext.globalEval(e[2])}}}}Ext.callback(g,d||a)},20);e.innerHTML=c.replace(J,'');return a},setOpacity:function(c,b){var a=this;if(!a.dom){return a}if(!b||!a.anim){a.setStyle('opacity',c)}else {if(typeof b!='object'){b={duration:350,easing:'ease-in'}}a.animate(Ext.applyIf({to:{opacity:c}},b))}return a},setPositioning:function(a){return this.setStyle(a)},setVertical:function(e,d){var b=this,c=a.prototype;b.vertical=!0;if(d){b.addCls(b.verticalCls=d)}b.setWidth=c.setHeight;b.setHeight=c.setWidth;if(!Ext.isIE8){b.getWidth=c.getHeight;b.getHeight=c.getWidth}b.styleHooks=e===270?c.verticalStyleHooks270:c.verticalStyleHooks90},setSize:function(c,e,d){var b=this;if(Ext.isObject(c)){d=e;e=c.height;c=c.width}if(!d||!b.anim){b.dom.style.width=a.addUnits(c);b.dom.style.height=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}}else {if(d===!0){d={}}b.animate(Ext.applyIf({to:{width:c,height:e}},d))}return b},setVisible:function(f,g){var b=this,h=b.dom,c=u(b);if(typeof g==='string'){switch(g){case d:c=a.DISPLAY;break;case o:c=a.VISIBILITY;break;case A:c=a.OFFSETS;break;case H:c=a.CLIP;break;}b.setVisibilityMode(c);g=!1}if(!g||!b.anim){if(c===a.DISPLAY){return b.setDisplayed(f)}else {if(c===a.OFFSETS){b[f?'removeCls':'addCls'](N)}else {if(c===a.CLIP){b[f?'removeCls':'addCls'](w)}else {if(c===a.VISIBILITY){b.fixDisplay();h.style.visibility=f?'':e}}}}}else {if(f){b.setOpacity(0.01);b.setVisible(!0)}if(!Ext.isObject(g)){g={duration:350,easing:'ease-in'}}b.animate(Ext.applyIf({callback:function(){if(!f){Ext.fly(h).setVisible(!1).setOpacity(1)}},to:{opacity:f?1:0}},g))}b.getData()[x]=f;if(b.shadow||b.shim){b.setUnderlaysVisible(f)}return b},setWidth:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{width:c}},a))}return b},setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(b,a){var c=this;if(!a||!c.anim){arguments.callee.$previous.call(this,b)}else {if(!Ext.isObject(a)){a={}}c.animate(Ext.applyIf({to:{x:b[0],y:b[1]}},a))}return this},setY:function(b,a){return this.setXY([this.getX(),b],a)},show:function(a){if(typeof a==='string'){this.setVisible(!0,a);return this}this.setVisible(!0,this.anim(a));return this},slideIn:function(a,c,d){var b=this,g=b.dom,h=g.style,j,e,f,i;a=a||'t';c=c||{};j=function(){var p=this,o=c.listeners,m=Ext.fly(g,'_anim'),j,n,l,k;if(!d){m.fixDisplay()}j=m.getBox();if((a=='t'||a=='b')&&j.height===0){j.height=g.scrollHeight}else {if((a=='l'||a=='r')&&j.width===0){j.width=g.scrollWidth}}n=m.getStyle(['width','height','left','right','top','bottom','position','z-index'],!0);m.setSize(j.width,j.height);if(c.preserveScroll){f=m.cacheScrollValues()}k=m.wrap({role:'presentation',id:Ext.id()+'-anim-wrap-for-'+m.dom.id,style:{visibility:d?'visible':'hidden'}});i=k.dom.parentNode;k.setPositioning(m.getPositioning());if(k.isStyle('position','static')){k.position('relative')}m.clearPositioning('auto');k.clip();if(f){f()}m.setStyle({visibility:'',position:'absolute'});if(d){k.setSize(j.width,j.height)}switch(a){case 't':l={from:{width:j.width+'px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';break;case 'l':l={from:{width:'0px',height:j.height+'px'},to:{width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'r':l={from:{x:j.x+j.width,width:'0px',height:j.height+'px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX(a);break;case 'b':l={from:{y:j.y+j.height,width:j.width+'px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};break;case 'tl':l={from:{x:j.x,y:j.y,width:'0px',height:'0px'},to:{width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('l');break;case 'bl':l={from:{y:j.y+j.height,width:'0px',height:'0px'},to:{y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('l');break;case 'br':l={from:{x:j.x+j.width,y:j.y+j.height,width:'0px',height:'0px'},to:{x:j.x,y:j.y,width:j.width+'px',height:j.height+'px'}};b.anchorAnimX('r');break;case 'tr':l={from:{x:j.x+j.width,width:'0px',height:'0px'},to:{x:j.x,width:j.width+'px',height:j.height+'px'}};h.bottom='0px';b.anchorAnimX('r');break;}k.show();e=Ext.apply({},c);delete e.listeners;e=new Ext.fx.Anim(Ext.applyIf(e,{target:k,duration:500,easing:'ease-out',from:d?l.to:l.from,to:d?l.from:l.to}));e.on('afteranimate',function(){var b=Ext.fly(g,'_anim');b.setStyle(n);if(d){if(c.useDisplay){b.setDisplayed(!1)}else {b.hide()}}if(k.dom){if(k.dom.parentNode){k.dom.parentNode.insertBefore(b.dom,k.dom)}else {i.appendChild(b.dom)}k.destroy()}if(f){f()}p.end()});if(o){e.on(o)}};b.animate({duration:c.duration?Math.max(c.duration,500)*2:1000,listeners:{beforeanimate:j}});return b},slideOut:function(a,b){return this.slideIn(a,b,!0)},swallowEvent:function(a,f){var b=this,c,d,e=function(b){b.stopPropagation();if(f){b.preventDefault()}};if(Ext.isArray(a)){d=a.length;for(c=0;c0){a.setAttribute(e,++f)}else {if(a.hasAttribute('tabIndex')){a.setAttribute(g,a.getAttribute('tabIndex'))}else {a.setAttribute(g,'none')}a.setAttribute('tabIndex','-1');a.setAttribute(e,'1')}}return c},restoreTabbableState:function(k,j){var g=this.dom,c=Ext.Element.tabbableSavedCounterAttribute,e=Ext.Element.tabbableSavedValueAttribute,b=[],h,f,b,a,d,i;if(!g){return this}if(!j){b=Ext.Array.from(g.querySelectorAll('['+c+']'))}if(!k){b.unshift(g)}for(d=0,i=b.length;d1){a.setAttribute(c,--f);continue}h=a.getAttribute(e);if(h==='none'){a.removeAttribute('tabIndex')}else {a.setAttribute('tabIndex',h)}a.removeAttribute(e);a.removeAttribute(c)}return b}},deprecated:{'4.0':{methods:{pause:function(b){var a=this;Ext.fx.Manager.setFxDefaults(a.id,{delay:b});return a},scale:function(c,a,b){this.animate(Ext.apply({},b,{width:c,height:a}));return this},shift:function(a){this.animate(a);return this}}},'4.2':{methods:{moveTo:function(b,c,a){return this.setXY([b,c],a)},setBounds:function(d,e,c,b,a){return this.setBox({x:d,y:e,width:c,height:b},a)},setLeftTop:function(d,e){var b=this,c=b.dom.style;c.left=a.addUnits(d);c.top=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocation:function(b,c,a){return this.setXY([b,c],a)}}},'5.0':{methods:{getAttributeNS:function(a,b){return this.getAttribute(b,a)},getCenterXY:function(){return this.getAlignToXY(b,'c-c')},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(C))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(F))||0},getStyleSize:function(){var d=this,e=this.dom,h=e===b||e===b.body,c,g,f;if(h){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}c=d.getStyle(['height','width'],!0);if(c.width&&c.width!=='auto'){g=parseFloat(c.width)}if(c.height&&c.height!=='auto'){f=parseFloat(c.height)}return {width:g||d.getWidth(!0),height:f||d.getHeight(!0)}},isBorderBox:function(){return !0},isDisplayed:function(){return !this.isStyle('display','none')},focusable:'isFocusable'}}}}}(),function(){var g=Ext.dom.Element,a=g.prototype,t=!Ext.isIE8,f=document,q=f.defaultView,p=/alpha\(opacity=(.*)\)/i,w=/^\s+|\s+$/g,d=a.styleHooks,e=Ext.supports,c,b,l,m,i,j,n;a._init(g);delete a._init;Ext.plainTableCls='x-table-plain';Ext.plainListCls='x-list-plain';if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!e.Opacity&&Ext.isIE){Ext.apply(d.opacity,{get:function(d){var c=d.style.filter,b,a;if(c.match){b=c.match(p);if(b){a=parseFloat(b[1]);if(!isNaN(a)){return a?a/100:0}}}return 1},set:function(d,a){var b=d.style,c=b.filter.replace(p,'').replace(w,'');b.zoom=1;if(typeof a==='number'&&a>=0&&a<1){a*=100;b.filter=c+(c.length?' ':'')+'alpha(opacity='+a+')'}else {b.filter=c}}})}if(!e.matchesSelector){var r=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,v=/\-/g,h,s=function(a,c){var b=new RegExp('(?:^|\\s+)'+c.replace(v,'\\-')+'(?:\\s+|$)');if(a&&a!=='*'){a=a.toUpperCase();return function(d){return d.tagName===a&&b.test(d.className)}}return function(d){return b.test(d.className)}},u=function(a){a=a.toUpperCase();return function(b){return b.tagName===a}},k={};a.matcherCache=k;a.is=function(a){if(!a){return !0}var b=this.dom,g,e,d,c,j,l,i;if(b.nodeType!==1){return !1}if(!(d=Ext.isFunction(a)?a:k[a])){if(!(e=a.match(r))){c=b.parentNode;if(!c){j=!0;c=h||(h=f.createDocumentFragment());h.appendChild(b)}l=Ext.Array.indexOf(Ext.fly(c,'_is').query(a),b)!==-1;if(j){h.removeChild(b)}return l}i=e[1];g=e[2];k[a]=d=g?s(i,g):u(i)}return d(b)}}if(!q||!q.getComputedStyle){a.getStyle=function(o,p){var j=this,e=j.dom,n=typeof o!=='string',a=o,i=a,r=1,m=p,l=j.styleHooks,q,h,d,c,f,b,k;if(n){d={};a=i[0];k=0;if(!(r=i.length)){return d}}if(!e||e.documentElement){return d||''}h=e.style;if(p){b=h}else {b=e.currentStyle;if(!b){m=!0;b=h}}do{c=l[a];if(!c){l[a]=c={name:g.normalize(a)}}if(c.get){f=c.get(e,j,m,b)}else {q=c.name;f=b[q]}if(!n){return f}d[a]=f;a=i[++k]}while(k=9)){a.getAttribute=function(a,c){var d=this.dom,b;if(c){b=typeof d[c+':'+a];if(b!=='undefined'&&b!=='unknown'){return d[c+':'+a]||null}return null}if(a==='for'){a='htmlFor'}return d[a]||null}}Ext.onInternalReady(function(){var o=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,h=[],p=a.setWidth,n=a.setHeight,m=a.setSize,q=/^\d+(?:\.\d*)?px$/i,i,l,k,j;if(e.FixedTableWidthBug){d.width={name:'width',set:function(c,e,f){var a=c.style,b=f._needsTableWidthFix,d=a.display;if(b){a.display='none'}a.width=e;if(b){c.scrollWidth;a.display=d}}};a.setWidth=function(g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}p.call(a,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a};a.setSize=function(h,g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}m.call(a,h,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a}}if(Ext.isIE8){d.height={name:'height',set:function(f,b,e){var a=e.component,d,c;if(a&&a._syncFrameHeight&&e===a.el){c=a.frameBody.dom.style;if(q.test(b)){d=a.getFrameInfo();if(d){c.height=parseInt(b,10)-d.height+'px'}}else {if(!b||b==='auto'){c.height=''}}}f.style.height=b}};a.setHeight=function(b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return n.call(this,b,e)};a.setSize=function(f,b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=b-d.height+'px'}}}return m.call(this,f,b,e)}}Ext.getDoc().on('selectstart',function(h,a){var e=g.selectableCls,d=g.unselectableCls,b=a&&a.tagName;b=b&&b.toLowerCase();if(b==='input'||b==='textarea'){return}while(a&&a.nodeType===1&&a!==f.documentElement){var c=Ext.fly(a);if(c.hasCls(e)){return}if(c.hasCls(d)){h.stopEvent();return}a=a.parentNode}});function fixTransparent(d,e,c,b){var a=b[this.name]||'';return o.test(a)?'transparent':a}function makeSelectionRestoreFn(a,b,c){return function(){a.selectionStart=b;a.selectionEnd=c}}function getRightMarginFixCleaner(i){var h=e.DisplayChangeInputSelectionBug,f=e.DisplayChangeTextAreaSelectionBug,a,d,b,c;if(h||f){a=g.getActiveElement();d=a&&a.tagName;if(f&&d==='TEXTAREA'||h&&d==='INPUT'&&a.type==='text'){if(Ext.fly(i).isAncestor(a)){b=a.selectionStart;c=a.selectionEnd;if(Ext.isNumber(b)&&Ext.isNumber(c)){return makeSelectionRestoreFn(a,b,c)}}}}return Ext.emptyFn}function fixRightMargin(c,g,f,e){var b=e.marginRight,a,d;if(b!=='0px'){a=c.style;d=a.display;a.display='inline-block';b=(f?e:c.ownerDocument.defaultView.getComputedStyle(c,null)).marginRight;a.display=d}return b}function fixRightMarginAndInputFocus(b,h,g,f){var c=f.marginRight,a,d,e;if(c!=='0px'){a=b.style;d=getRightMarginFixCleaner(b);e=a.display;a.display='inline-block';c=(g?f:b.ownerDocument.defaultView.getComputedStyle(b,'')).marginRight;a.display=e;d()}return c}if(!e.RightMargin){d.marginRight=d['margin-right']={name:'marginRight',get:e.DisplayChangeInputSelectionBug||e.DisplayChangeTextAreaSelectionBug?fixRightMarginAndInputFocus:fixRightMargin}}if(!e.TransparentColor){i=['background-color','border-color','color','outline-color'];for(l=i.length;l--;){k=i[l];j=g.normalize(k);d[k]=d[j]={name:j,get:fixTransparent}}}a.verticalStyleHooks90=c=Ext.Object.chain(d);a.verticalStyleHooks270=b=Ext.Object.chain(d);c.width=d.height||{name:'height'};c.height=d.width||{name:'width'};c['margin-top']={name:'marginLeft'};c['margin-right']={name:'marginTop'};c['margin-bottom']={name:'marginRight'};c['margin-left']={name:'marginBottom'};c['padding-top']={name:'paddingLeft'};c['padding-right']={name:'paddingTop'};c['padding-bottom']={name:'paddingRight'};c['padding-left']={name:'paddingBottom'};c['border-top']={name:'borderLeft'};c['border-right']={name:'borderTop'};c['border-bottom']={name:'borderRight'};c['border-left']={name:'borderBottom'};b.width=d.height||{name:'height'};b.height=d.width||{name:'width'};b['margin-top']={name:'marginRight'};b['margin-right']={name:'marginBottom'};b['margin-bottom']={name:'marginLeft'};b['margin-left']={name:'marginTop'};b['padding-top']={name:'paddingRight'};b['padding-right']={name:'paddingBottom'};b['padding-bottom']={name:'paddingLeft'};b['padding-left']={name:'paddingTop'};b['border-top']={name:'borderRight'};b['border-right']={name:'borderBottom'};b['border-bottom']={name:'borderLeft'};b['border-left']={name:'borderTop'};if(!Ext.scopeCss){h.push('x-body')}if(e.Touch){h.push('x-touch')}if(Ext.isIE&&Ext.isIE9m){h.push('x-ie','x-ie9m');h.push('x-ie8p');if(Ext.isIE8){h.push('x-ie8')}else {h.push('x-ie9','x-ie9p')}if(Ext.isIE8m){h.push('x-ie8m')}}if(Ext.isIE10){h.push('x-ie10')}if(Ext.isIE10p){h.push('x-ie10p')}if(Ext.isIE11){h.push('x-ie11')}if(Ext.isGecko){h.push('x-gecko')}if(Ext.isOpera){h.push('x-opera')}if(Ext.isOpera12m){h.push('x-opera12m')}if(Ext.isWebKit){h.push('x-webkit')}if(Ext.isSafari){h.push('x-safari')}if(Ext.isChrome){h.push('x-chrome')}if(Ext.isMac){h.push('x-mac')}if(Ext.isLinux){h.push('x-linux')}if(!e.CSS3BorderRadius){h.push('x-nbr')}if(!e.CSS3LinearGradient){h.push('x-nlg')}if(e.Touch){h.push('x-touch')}Ext.getBody().addCls(h)},null,{priority:1500})});Ext.cmd.derive('Ext.GlobalEvents',Ext.mixin.Observable,{alternateClassName:'Ext.globalEvents',observableType:'global',singleton:!0,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},attachListeners:function(){Ext.get(window).on('resize',this.fireResize,this,{buffer:this.resizeBuffer});Ext.getDoc().on('mousedown',this.fireMouseDown,this)},fireMouseDown:function(a){this.fireEvent('mousedown',a)},fireResize:function(){var a=this,d=Ext.Element,c=d.getViewportWidth(),b=d.getViewportHeight();if(a.curHeight!==b||a.curWidth!==c){a.curHeight=b;a.curWidth=c;a.fireEvent('resize',c,b)}}},1,0,0,0,0,0,[Ext,'GlobalEvents',Ext,'globalEvents'],function(a){Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)}});Ext.define('Ext.overrides.GlobalEvents',{override:'Ext.GlobalEvents',deprecated:{5:{methods:{addListener:function(a,d,i,f,h,g,e){var c,b;if(a==='ready'){b=d}else {if(typeof a!=='string'){for(c in a){if(c==='ready'){b=a[c]}}}}if(b){Ext.onReady(b)}this.callParent([a,d,i,f,h,g,e])}}}}});Ext.USE_NATIVE_JSON=!1;Ext.JSON=new function(){var me=this,hasNative=window.JSON&&JSON.toString()==='[object JSON]',useHasOwn=!!{}.hasOwnProperty,pad=function(a){return a<10?'0'+a:a},doDecode=function(json){return eval('('+json+')')},doEncode=function(a,b){if(a===null||a===undefined){return 'null'}else {if(Ext.isDate(a)){return me.encodeDate(a)}else {if(Ext.isString(a)){if(Ext.isMSDate(a)){return me.encodeMSDate(a)}else {return me.encodeString(a)}}else {if(typeof a==='number'){return isFinite(a)?String(a):'null'}else {if(Ext.isBoolean(a)){return String(a)}else {if(a.toJSON){return a.toJSON()}else {if(Ext.isArray(a)){return encodeArray(a,b)}else {if(Ext.isObject(a)){return encodeObject(a,b)}else {if(typeof a==='function'){return 'null'}}}}}}}}}return 'undefined'},m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\','\v':'\\u000b'},charToReplace=/[\\\"\x00-\x1f\x7f-\uffff]/g,encodeString=function(a){return '"'+a.replace(charToReplace,function(b){var c=m[b];return typeof c==='string'?c:'\\u'+('0000'+b.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(a){return '"'+a+'"'},encodeArrayPretty=function(e,d){var f=e.length,c=d+' ',g=','+c,a=['[',c],b;for(b=0;b0}}return c},onBindNotify:function(b,c,a){a.syncing=a.syncing+1||1;this[a._config.names.set](b);--a.syncing},removeBindings:function(){var c=this,a,d,b;if(!c.destroying){a=c.getBind();if(a&&typeof a!=='string'){for(d in a){b=a[d];b.destroy();b._config=b.getTemplateScope=null}}}c.setBind(null)},updateSession:function(a){var b=this.getInherited();if(a){b.session=a}else {delete b.session}},updateViewModel:function(a){var c=this.getInherited(),b=this.getController();if(a){c.viewModel=a;a.setView(this);if(b){b.initViewModel(a)}}else {delete c.viewModel}}}},0,0,0,0,0,0,[Ext.mixin,'Bindable'],0);Ext.cmd.derive('Ext.mixin.ComponentDelegation',Ext.Mixin,{mixinConfig:{id:'componentDelegation'},privates:{addDelegatedListener:function(c,k,j,a,d,i,h){var b=this,e,g,f;d=d||a.order;if(d){f=a&&a.priority;if(!f){a=a?Ext.Object.chain(a):{};a.priority=b.$orderToPriority[d]}}e=b.$delegatedEvents||(b.$delegatedEvents={});g=e[c]||(e[c]=new Ext.util.Event(b,c));if(g.addListener(k,j,a,i,h)){b.$hasDelegatedListeners._incr_(c)}},clearDelegatedListeners:function(){var e=this,a=e.$delegatedEvents,b,c,d;if(a){for(b in a){c=a[b];d=c.listeners.length;c.clearListeners();e.$hasDelegatedListeners._decr_(b,d);delete a[b]}}},doFireDelegatedEvent:function(f,g){var e=this,d=!0,a,b,c;if(e.$hasDelegatedListeners[f]){a=e.getRefOwner();while(a){b=a.$delegatedEvents;if(b){c=b[f];if(c){d=c.fireDelegated(e,g);if(d===!1){break}}}a=a.getRefOwner()}}return d},removeDelegatedListener:function(c,f,e){var d=this,b=d.$delegatedEvents,a;if(b){a=b[c];if(a&&a.removeListener(f,e)){d.$hasDelegatedListeners._decr_(c);if(a.listeners.length===0){delete b[c]}}}}},onClassMixedIn:function(a){function HasListeners(){}a.prototype.HasListeners=a.HasListeners=HasListeners;HasListeners.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,'ComponentDelegation'],function(a){function HasDelegatedListeners(){}a.HasDelegatedListeners=HasDelegatedListeners;HasDelegatedListeners.prototype=a.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()});Ext.cmd.derive('Ext.Widget',Ext.Evented,{isWidget:!0,element:{reference:'element'},observableType:'component',cachedConfig:{style:null},config:{userCls:null},eventedConfig:{width:null,height:null},template:[],constructor:function(c){var a=this,b;a.initId(c);a.initElement();a.mixins.observable.constructor.call(a,c);Ext.ComponentManager.register(a);b=a.getController();if(b){b.init(a)}},afterCachedConfig:function(){var c=this,j=c.self.prototype,f=c.referenceList,i=c.renderElement,d,h,a,b,g,e;j.renderTemplate=d=document.createDocumentFragment();d.appendChild(i.clone(!0,!0));e=d.querySelectorAll('[id]');for(a=0,b=e.length;a]+>/gi,stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},undef:function(a){return a!==undefined?a:''},defaultValue:function(a,b){return a!==undefined&&a!==''?a:b},substr:'ab'.substr(-1)!='b'?function(d,a,c){var b=String(d);return a<0?b.substr(Math.max(b.length+a,0),c):b.substr(a,c)}:function(c,b,a){return String(c).substr(b,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(b){return a.currency(b,'$',2)},currency:function(b,f,c,h){var d='',e=',0',g=0;b=b-0;if(b<0){b=-b;d='-'}c=Ext.isDefined(c)?c:a.currencyPrecision;e+=c>0?'.':'';for(;gb){a=a.substring(a.length-b)}}while(a.length2){}else {if(e.length===2){d=e[1].length;f=e[1].match(a.hashRe);if(f){m=f[0].length;l='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+m+'}$")'}}}b=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts'+(h?',thousandSeparator,thousands=[],j,n,i':'')+(i?',formatString="'+c+'",formatPattern=/[\\d,\\.#]+/':'')+',trailingZeroes;return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";neg=v<0;','absVal=Math.abs(v);','fnum=Ext.Number.toFixed(absVal, '+d+');',l,';'];if(h){if(d){b[b.length]='parts=fnum.split(".");';b[b.length]='fnum=parts[0];'}b[b.length]='if(absVal>=1000) {';b[b.length]='thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i')},capitalize:Ext.String.capitalize,uncapitalize:Ext.String.uncapitalize,ellipsis:Ext.String.ellipsis,escape:Ext.String.escape,escapeRegex:Ext.String.escapeRegex,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,toggle:Ext.String.toggle,trim:Ext.String.trim,parseBox:function(b){b=b||0;if(typeof b==='number'){return {top:b,right:b,bottom:b,left:b}}var a=b.split(' '),c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else {if(c===2){a[2]=a[0];a[3]=a[1]}else {if(c===3){a[3]=a[1]}}}return {top:parseInt(a[0],10)||0,right:parseInt(a[1],10)||0,bottom:parseInt(a[2],10)||0,left:parseInt(a[3],10)||0}}}},1,0,0,0,0,0,[Ext.util,'Format'],0);Ext.cmd.derive('Ext.Template',Ext.Base,{inheritableStatics:{from:function(a,b){a=Ext.getDom(a);return new this(a.value||a.innerHTML,b||'')}},useEval:Ext.isGecko,constructor:function(g){var d=this,c=arguments,f=[],e,b=c.length,a;d.initialConfig={};if(b===1&&Ext.isArray(g)){c=g;b=c.length}if(b>1){for(e=0;e]*)\>)|(?:<\/tpl>)/g,actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g,propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/,defaultRe:/^\s*default\s*$/,elseRe:/^\s*else\s*$/},1,0,0,0,0,0,[Ext.util,'XTemplateParser'],0);Ext.cmd.derive('Ext.util.XTemplateCompiler',Ext.util.XTemplateParser,{useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:!0,propNameRe:/^[\w\d\$]*$/,compile:function(c){var a=this,b=a.generate(c);return a.useEval?a.evalTpl(b):(new Function('Ext',b))(Ext)},generate:function(d){var a=this,b='var fm=Ext.util.Format,ts=Object.prototype.toString;',c;a.maxLevel=0;a.body=['var c0=values, a0='+a.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(a.definitions){if(typeof a.definitions==='string'){a.definitions=[a.definitions,b]}else {a.definitions.push(b)}}else {a.definitions=[b]}a.switches=[];a.parse(d);a.definitions.push((a.useEval?'$=':'return')+' function ('+a.fnArgs+') {',a.body.join(''),'}');c=a.definitions.join('\n');a.definitions.length=a.body.length=a.switches.length=0;delete a.definitions;delete a.body;delete a.switches;return c},doText:function(a){var b=this,c=b.body;a=a.replace(b.aposRe,"\\'").replace(b.newLineRe,'\\n');if(b.useIndex){c.push("out[out.length]='",a,"'\n")}else {c.push("out.push('",a,"')\n")}},doExpr:function(b){var a=this.body;a.push('if ((v='+b+') != null) out');if(this.useIndex){a.push("[out.length]=v+''\n")}else {a.push(".push(v+'')\n")}},doTag:function(b){var a=this.parseTag(b);if(a){this.doExpr(a)}else {this.doText('{'+b+'}')}},doElse:function(){this.body.push('} else {\n')},doEval:function(a){this.body.push(a,'\n')},doIf:function(b,c){var a=this;if(b==='.'){a.body.push('if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('if (',a.parseTag(b),') {\n')}else {a.body.push('if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==='.'){a.body.push('else if (values) {\n')}else {if(a.propNameRe.test(b)){a.body.push('} else if (',a.parseTag(b),') {\n')}else {a.body.push('} else if (',a.addFn(b),a.callFn,') {\n')}}if(c.exec){a.doExec(c.exec)}},doSwitch:function(b){var a=this,c;if(b==='.'||b==='#'){c=b==='.'?'values':'xindex';a.body.push('switch (',c,') {\n')}else {if(a.propNameRe.test(b)){a.body.push('switch (',a.parseTag(b),') {\n')}else {a.body.push('switch (',a.addFn(b),a.callFn,') {\n')}}a.switches.push(0)},doCase:function(e){var a=this,c=Ext.isArray(e)?e:[e],d=a.switches.length-1,f,b;if(a.switches[d]){a.body.push('break;\n')}else {a.switches[d]++}for(b=0,d=c.length;b1){ out.push("',d.between,'"); } \n')}},doForEach:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else {if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}}if(b.maxLevel1){ out.push("',d.between,'"); } \n')}},createArrayTest:'isArray' in Array?function(a){return 'Array.isArray(c'+a+')'}:function(a){return 'ts.call(c'+a+')==="[object Array]"'},doExec:function(d,e){var a=this,c='f'+a.definitions.length,b=a.guards[a.strict?0:1];a.definitions.push('function '+c+'('+a.fnArgs+') {',b.doTry,' var $v = values; with($v) {',' '+d,' }',b.doCatch,'}');a.body.push(c+a.callFn+'\n')},guards:[{doTry:'',doCatch:''},{doTry:'try { ',doCatch:' } catch(e) {\n}'}],addFn:function(c){var a=this,b='f'+a.definitions.length,d=a.guards[a.strict?0:1];if(c==='.'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return values','}')}else {if(c==='..'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return parent','}')}else {a.definitions.push('function '+b+'('+a.fnArgs+') {',d.doTry,' var $v = values; with($v) {',' return('+c+')',' }',d.doCatch,'}')}}return b},parseTag:function(h){var e=this,f=e.tagRe.exec(h),a,c,d,g,b;if(!f){return null}a=f[1];c=f[2];d=f[3];g=f[4];if(a=='.'){if(!e.validTypes){e.definitions.push('var validTypes={string:1,number:1,boolean:1};');e.validTypes=!0}b='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else {if(a=='#'){b='xindex'}else {if(a=='$'){b='xkey'}else {if(a.substr(0,7)=='parent.'){b=a}else {if(isNaN(a)&&a.indexOf('-')==-1&&a.indexOf('.')!=-1){b='values.'+a}else {b="values['"+a+"']"}}}}}if(g){b='('+b+g+')'}if(c&&e.useFormat){d=d?','+d:'';if(c.substr(0,5)!='this.'){c='fm.'+c+'('}else {c+='('}}else {return b}return c+b+d+')'},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},0,0,0,0,0,0,[Ext.util,'XTemplateCompiler'],function(){var a=this.prototype;a.fnArgs='out,values,parent,xindex,xcount,xkey';a.callFn='.call(this,'+a.fnArgs+')'});Ext.cmd.derive('Ext.XTemplate',Ext.Template,{isXTemplate:!0,emptyObj:{},fn:null,strict:!1,apply:function(b,a,d,c){return this.applyOut(b,[],a,d,c).join('')},applyOut:function(g,d,f,c,b){var a=this,e;if(!a.fn){e=new Ext.util.XTemplateCompiler({useFormat:a.disableFormats!==!0,definitions:a.definitions,strict:a.strict});a.fn=e.compile(a.html)}c=c||1;b=b||1;if(a.strict){a.fn(d,g,f||a.emptyObj,c,b)}else {try{a.fn(d,g,f||a.emptyObj,c,b)}catch(h){}}return d},compile:function(){return this},statics:{getTpl:function(c,d){var b=c[d],a;if(b&&!b.isTemplate){b=Ext.ClassManager.dynInstantiate('Ext.XTemplate',b);if(c.hasOwnProperty(d)){a=c}else {for(a=c.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=b;b.owner=a}return b||null}}},0,0,0,0,0,0,[Ext,'XTemplate'],0);Ext.cmd.derive('Ext.app.EventDomain',Ext.Base,{statics:{instances:{}},isEventDomain:!0,isInstance:!1,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(l,h,m){h=Ext.canonicalEventName(h);var j=this,n=j.bus,b=n[h],c,a,i,g,e,k,d,f;if(!b){return !0}for(c in b){if(b.hasOwnProperty(c)&&j.match(l,c,j.controller)){a=b[c];for(i in a){if(a.hasOwnProperty(i)){g=a[i];if(g.controller.isActive()){e=g.list;k=e.length;for(d=0;da.clientWidth}}if(e==='scroll'){h=!0}else {if(e){h=a.scrollHeight>a.clientHeight}}if(g){i=f.height}if(h){j=f.width}}}return {width:j,height:i}},getPosition:function(){return this.position},updateDirectionLock:Ext.emptyFn,updateDisabled:Ext.emptyFn,updateIndicators:Ext.emptyFn,updateMaxPosition:Ext.emptyFn,updateMaxUserPosition:Ext.emptyFn,updateMinPosition:Ext.emptyFn,updateMinUserPosition:Ext.emptyFn,updateMomenumEasing:Ext.emptyFn,updateX:Ext.emptyFn,updateY:Ext.emptyFn,onPartnerScrollStart:Ext.emptyFn,onPartnerScrollEnd:Ext.emptyFn,refresh:function(){this.fireEvent('refresh',this);return this},removePartner:function(c){var b=this._partners,a=c._partners;if(b){delete b[c.getId()]}if(a){delete a[this.getId()]}},scrollBy:function(a,b,c){var d=this.getPosition();if(a){if(a.length){c=b;b=a[1];a=a[0]}else {if(typeof a!=='number'){c=b;b=a.y;a=a.x}}}a=typeof a==='number'?a+d.x:null;b=typeof b==='number'?b+d.y:null;return this.doScrollTo(a,b,c)},scrollIntoView:function(d,i,h,e){var a=this,c=a.getPosition(),b,f,g,j=a.getElement();if(d){b=Ext.fly(d).getScrollIntoViewXY(j,c.x,c.y);f=i===!1?c.x:b.x;g=b.y;if(e){a.on({scrollend:'doHighlight',scope:a,single:!0,args:[d,e]})}a.doScrollTo(f,g,h)}},isInView:function(d){var f=this,c={x:!1,y:!1},b,e=f.getElement(),a;if(d&&e.contains(d)){a=e.getRegion();b=Ext.fly(d).getRegion();c.x=b.right>a.left&&b.lefta.top&&b.top0){b-=1}if(c>0){c-=1}e.setSpacerXY({x:b,y:c});d.show()}}},deprecated:{5:{methods:{getScroller:function(){return this}}},'5.1.0':{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}},privates:{getSpacer:function(){var b=this,a=b._spacer,c;if(!a){c=b.getElement();a=b._spacer=c.createChild({cls:b._spacerCls,role:'presentation'});a.setVisibilityMode(2);c.position()}return a},applySpacerXY:function(a,b){if(b&&a.x===b.x&&a.y===b.y){a=undefined}return a},updateSpacerXY:function(a){this.getSpacer().setLocalXY(a.x,a.y)},convertX:function(a){return a},doHighlight:function(b,a){if(a!==!0){Ext.fly(b).highlight(a)}else {Ext.fly(b).highlight()}},fireScrollStart:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollStart',b,c);if(a.hasListeners.scrollstart){a.fireEvent('scrollstart',a,b,c)}if(d&&d.onScrollStart){d.onScrollStart(b,c)}Ext.GlobalEvents.fireEvent('scrollstart',a,b,c)},fireScroll:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScroll',b,c);if(a.hasListeners.scroll){a.fireEvent('scroll',a,b,c)}if(d&&d.onScrollMove){d.onScrollMove(b,c)}Ext.GlobalEvents.fireEvent('scroll',a,b,c)},fireScrollEnd:function(b,c){var a=this,d=a.component;a.invokePartners('onPartnerScrollEnd',b,c);if(a.hasListeners.scrollend){a.fireEvent('scrollend',a,b,c)}if(d&&d.onScrollEnd){d.onScrollEnd(b,c)}Ext.GlobalEvents.fireEvent('scrollend',a,b,c)},initXStyle:function(){var b=this.getElement(),a=this.getX();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-x',a)}},initYStyle:function(){var b=this.getElement(),a=this.getY();if(b&&b.dom){if(!a){a='hidden'}else {if(a===!0){a='auto'}}b.setStyle('overflow-y',a)}},invokePartners:function(d,g,h){var b=this,c=b._partners,a,e,f=d==='onPartnerScrollEnd';if(!b.suspendSync&!b.isReflecting){for(e in c){a=c[e].scroller;a.isReflecting=!0;a[d](b,g,h);if(f){a.isReflecting=!1}}}},clearReflecting:function(){this.isReflecting=!1},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(){if(this.suspendSync){this.suspendSync--}},updateDomScrollPosition:function(){var a=this,d=a.getElement(),b,c=a.position;if(d&&!d.destroyed){b=a.getElementScroll(d);c.x=b.left;c.y=b.top}a.positionDirty=!1;return c},getElementScroll:function(a){return a.getScroll()},onDomScroll:function(){var a=this,b,d,e,c;if(a.isTouchScroller&&Ext.supports.touchScroll===2){c=a.getElement().dom;c.scrollTop=c.scrollLeft=0;return}b=a.updateDomScrollPosition();d=b.x;e=b.y;if(!a.isScrolling){a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(d,e)}a.fireScroll(d,e);a.onDomScrollEnd()},onDomScrollEnd:function(){var a=this,b=a.getPosition(),c=b.x,d=b.y;a.isScrolling=Ext.isScrolling=!1;a.trackingScrollLeft=c;a.trackingScrollTop=d;a.fireScrollEnd(c,d)},onPartnerScroll:function(d,b,c){var a=d._partners[this.getId()].axis;if(a){if(a==='x'){c=null}else {if(a==='y'){b=null}}}this.doScrollTo(b,c,!1,!0)},restoreState:function(){var a=this,c=a.getElement(),b;if(c){b=c.dom;if(a.trackingScrollTop!==undefined){b.scrollTop=a.trackingScrollTop;b.scrollLeft=a.trackingScrollLeft}}}}},1,0,0,0,['scroller.scroller'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.scroll,'Scroller'],0);Ext.cmd.derive('Ext.fx.easing.Abstract',Ext.Base,{config:{startTime:0,startValue:0},isEasing:!0,isEnded:!1,constructor:function(a){this.initConfig(a);return this},applyStartTime:function(a){if(!a){a=Ext.Date.now()}return a},updateStartTime:function(a){this.reset()},reset:function(){this.isEnded=!1},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,'Abstract'],0);Ext.cmd.derive('Ext.fx.easing.Momentum',Ext.fx.easing.Abstract,{config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(b){var a=Math.log(1-b/10);this.theta=a;this.alpha=a/this.getAcceleration()},updateStartVelocity:function(a){this.velocity=a*this.getAcceleration()},updateAcceleration:function(a){this.velocity=this.getStartVelocity()*a;this.alpha=this.theta/a},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var a=Ext.Date.now()-this.getStartTime();return Math.exp(a*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}},0,0,0,0,0,0,[Ext.fx.easing,'Momentum'],0);Ext.cmd.derive('Ext.fx.easing.Bounce',Ext.fx.easing.Abstract,{config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var b=Ext.Date.now()-this.getStartTime(),a=b/this.getAcceleration(),c=a*Math.pow(Math.E,-this.getSpringTension()*a);return this.getStartValue()+this.getStartVelocity()*c}},0,0,0,0,0,0,[Ext.fx.easing,'Bounce'],0);Ext.cmd.derive('Ext.fx.easing.BoundMomentum',Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(b,a){return Ext.factory(b,Ext.fx.easing.Momentum,a)},applyBounce:function(b,a){return Ext.factory(b,Ext.fx.easing.Bounce,a)},updateStartTime:function(a){this.getMomentum().setStartTime(a);Ext.fx.easing.Abstract.prototype.updateStartTime.apply(this,arguments)},updateStartVelocity:function(a){this.getMomentum().setStartVelocity(a)},updateStartValue:function(a){this.getMomentum().setStartValue(a)},reset:function(){this.lastValue=null;this.isBouncingBack=!1;this.isOutOfBound=!1;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var d=this.getMomentum(),j=this.getBounce(),f=d.getStartVelocity(),b=f>0?1:-1,i=this.getMinMomentumValue(),h=this.getMaxMomentumValue(),g=b==1?h:i,c=this.lastValue,a,e;if(f===0){return this.getStartValue()}if(!this.isOutOfBound){a=d.getValue();e=d.getVelocity();if(Math.abs(e)=i&&a<=h){return a}this.isOutOfBound=!0;j.setStartTime(Ext.Date.now()).setStartVelocity(e).setStartValue(g)}a=j.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(c!==null){if(b==1&&ac){this.isBouncingBack=!0}}}else {if(Math.round(a)==g){this.isEnded=!0}}}this.lastValue=a;return a}},0,0,0,0,0,0,[Ext.fx.easing,'BoundMomentum'],0);Ext.cmd.derive('Ext.fx.easing.Linear',Ext.fx.easing.Abstract,{config:{duration:0,endValue:0},updateStartValue:function(a){this.distance=this.getEndValue()-a},updateEndValue:function(a){this.distance=a-this.getStartValue()},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration();if(a>b){this.isEnded=!0;return this.getEndValue()}else {return this.getStartValue()+a/b*this.distance}}},0,0,0,0,['easing.linear'],0,[Ext.fx.easing,'Linear'],0);Ext.cmd.derive('Ext.fx.easing.EaseOut',Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,i=a/b,h=1-i,g=1-Math.pow(h,this.getExponent()),c=d+g*e;if(a>=b){this.isEnded=!0;return f}return c}},0,0,0,0,['easing.ease-out'],0,[Ext.fx.easing,'EaseOut'],0);Ext.cmd.derive('Ext.util.translatable.Abstract',Ext.Evented,{config:{useWrapper:null,easing:null,easingX:null,easingY:null},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:!1,isTranslatable:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,'easing')},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},doTranslate:Ext.emptyFn,translate:function(a,b,c){if(c){return this.translateAnimated(a,b,c)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a=='number'){this.x=a}if(!isNaN(b)&&typeof b=='number'){this.y=b}this.doTranslate(a,b)},translateAxis:function(e,a,d){var b,c;if(e=='x'){b=a}else {c=a}return this.translate(b,c,d)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(a,b){this.activeEasingX=a;this.activeEasingY=b;this.isAnimating=!0;this.lastX=null;this.lastY=null;Ext.AnimationQueue.start(this.doAnimationFrame,this);this.fireEvent('animationstart',this,this.x,this.y);return this},translateAnimated:function(g,h,a){var b=this;if(!Ext.isObject(a)){a={}}if(b.isAnimating){b.stopAnimation()}b.callback=a.callback;b.callbackScope=a.scope;var f=Ext.Date.now(),e=a.easing,c=typeof g=='number'?a.easingX||e||b.getEasingX()||!0:null,d=typeof h=='number'?a.easingY||e||b.getEasingY()||!0:null;if(c){c=b.factoryEasing(c);c.setStartTime(f);c.setStartValue(b.x);c.setEndValue(g);if('duration' in a){c.setDuration(a.duration)}}if(d){d=b.factoryEasing(d);d.setStartTime(f);d.setStartValue(b.y);d.setEndValue(h);if('duration' in a){d.setDuration(a.duration)}}return b.animate(c,d)},doAnimationFrame:function(){var a=this,d=a.activeEasingX,e=a.activeEasingY,f=Date.now(),b,c;if(!a.isAnimating){return}a.lastRun=f;if(d===null&&e===null){a.stopAnimation();return}if(d!==null){a.x=b=Math.round(d.getValue());if(d.isEnded){a.activeEasingX=null;a.fireEvent('axisanimationend',a,'x',b)}}else {b=a.x}if(e!==null){a.y=c=Math.round(e.getValue());if(e.isEnded){a.activeEasingY=null;a.fireEvent('axisanimationend',a,'y',c)}}else {c=a.y}if(a.lastX!==b||a.lastY!==c){a.doTranslate(b,c);a.lastX=b;a.lastY=c}a.fireEvent('animationframe',a,b,c)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=!1;Ext.AnimationQueue.stop(a.doAnimationFrame,a);a.fireEvent('animationend',a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){if(this.isAnimating){this.stopAnimation()}Ext.Evented.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.translatable,'Abstract'],0);Ext.cmd.derive('Ext.util.translatable.Dom',Ext.util.translatable.Abstract,{config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,'Dom'],0);Ext.cmd.derive('Ext.util.translatable.CssTransform',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement();if(!this.destroyed&&!a.destroyed){a.translate(b,c)}},destroy:function(){var a=this.getElement();if(a&&!a.destroyed){a.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssTransform'],0);Ext.cmd.derive('Ext.util.translatable.ScrollPosition',Ext.util.translatable.Dom,{type:'scrollposition',config:{useWrapper:!0},getWrapper:function(){var a=this.wrapper,c=this.getElement(),b;if(!a){b=c.getParent();if(!b){return null}if(b.hasCls('x-translatable-hboxfix')){b=b.getParent()}if(this.getUseWrapper()){a=c.wrap()}else {a=b}c.addCls('x-translatable');a.addCls('x-translatable-container');this.wrapper=a;a.on('painted',function(){if(!this.isAnimating){this.refresh()}},this);this.refresh()}return a},doTranslate:function(c,d){var b=this.getWrapper(),a;if(b){a=b.dom;if(typeof c=='number'){a.scrollLeft=500000-c}if(typeof d=='number'){a.scrollTop=500000-d}}},destroy:function(){var a=this,c=a.getElement(),b=a.wrapper;if(b){if(!c.destroyed){if(a.getUseWrapper()){b.doReplaceWith(c)}c.removeCls('x-translatable')}if(!b.destroyed){b.removeCls('x-translatable-container');b.un('painted','refresh',a)}delete a.wrapper;delete a._element}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollPosition'],0);Ext.cmd.derive('Ext.util.translatable.ScrollParent',Ext.util.translatable.Dom,{isScrollParent:!0,applyElement:function(b){var a=Ext.get(b);if(a){this.parent=a.parent()}return a},doTranslate:function(b,c){var a=this.parent;a.setScrollLeft(Math.round(-b));a.setScrollTop(Math.round(-c))},getPosition:function(){var c=this,a=c.position,b=c.parent;a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},0,0,0,0,0,0,[Ext.util.translatable,'ScrollParent'],0);Ext.cmd.derive('Ext.util.translatable.CssPosition',Ext.util.translatable.Dom,{doTranslate:function(b,c){var a=this.getElement().dom.style;if(typeof b=='number'){a.left=b+'px'}if(typeof c=='number'){a.top=c+'px'}},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,'CssPosition'],0);Ext.cmd.derive('Ext.util.Translatable',Ext.Base,{constructor:function(a){var b=Ext.util.translatable;switch(Ext.browser.getPreferredTranslationMethod(a)){case 'scrollposition':return new b.ScrollPosition(a);case 'scrollparent':return new b.ScrollParent(a);case 'csstransform':return new b.CssTransform(a);case 'cssposition':return new b.CssPosition(a);}}},1,0,0,0,0,0,[Ext.util,'Translatable'],0);Ext.cmd.derive('Ext.scroll.Indicator',Ext.Widget,{config:{axis:null,hideAnimation:!0,hideDelay:0,scroller:null,minLength:24},defaultHideAnimation:{to:{opacity:0},duration:300},names:{x:{side:'l',getSize:'getHeight',setLength:'setWidth',translate:'translateX'},y:{side:'t',getSize:'getWidth',setLength:'setHeight',translate:'translateY'}},oppositeAxis:{x:'y',y:'x'},cls:'x-scroll-indicator',applyHideAnimation:function(a){if(a){a=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,a)}return a},constructor:function(c){var a=this,b;Ext.Widget.prototype.constructor.call(this,c);b=a.getAxis();a.names=a.names[b];a.element.addCls(a.cls+' '+a.cls+'-'+b)},hide:function(){var a=this,b=a.getHideDelay();if(b){a._hideTimer=Ext.defer(a.doHide,b,a)}else {a.doHide()}},setValue:function(c){var a=this,o=a.element,l=a.names,m=a.getAxis(),k=a.getScroller(),f=k.getMaxUserPosition()[m],g=k.getElementSize()[m],b=a.length,j=a.getMinLength(),e=b,i=g-b-a.sizeAdjust,h=Math.round,n=Math.max,d;if(c<0){e=h(n(b+b*c/g,j));d=0}else {if(c>f){e=h(n(b-b*(c-f)/g,j));d=i+b-e}else {d=h(c/f*i)}}a[l.translate](d);o[l.setLength](e)},show:function(){var a=this,b=a.element,c=b.getActiveAnimation();if(c){c.end()}if(!a._inDom){a.getScroller().getElement().appendChild(b);a._inDom=!0;if(!a.size){a.cacheStyles()}}a.refreshLength();clearTimeout(a._hideTimer);b.setStyle('opacity','')},privates:{cacheStyles:function(){var a=this,c=a.element,b=a.names;a.size=c[b.getSize]();a.margin=c.getMargin(b.side)},doHide:function(){var a=this.getHideAnimation(),b=this.element;if(a){b.animate(a)}else {b.setStyle('opacity',0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle('opacity','0')},refreshLength:function(){var a=this,i=a.names,g=a.getAxis(),e=a.getScroller(),h=e.getSize()[g],c=e.getElementSize()[g],j=c/h,b=a.margin*2,d=a.hasOpposite()?b+a.size:b,f=Math.max(Math.round((c-d)*j),a.getMinLength());a.sizeAdjust=d;a.length=f;a.element[i.setLength](f)},translateX:function(a){this.element.translate(a)},translateY:function(a){this.element.translate(0,a)}}},1,['scrollindicator'],['widget','scrollindicator'],{'widget':!0,'scrollindicator':!0},['widget.scrollindicator'],0,[Ext.scroll,'Indicator'],0);Ext.cmd.derive('Ext.scroll.TouchScroller',Ext.scroll.Scroller,{isTouchScroller:!0,config:{autoRefresh:!0,bounceEasing:{duration:400},elementSize:undefined,indicators:!0,fps:'auto',maxAbsoluteVelocity:6,momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,innerElement:null,size:undefined,slotSnapEasing:{duration:150},slotSnapOffset:{x:0,y:0},startMomentumResetTime:300,translatable:{translationMethod:'auto',useWrapper:!1}},cls:'x-scroll-container',scrollerCls:'x-scroll-scroller',dragStartTime:0,dragEndTime:0,isDragging:!1,isAnimating:!1,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:'onTouchStart',touchmove:'onTouchMove',dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd'},refreshCounter:0,constructor:function(c){var a=this,b='onEvent';a.elementListeners={touchstart:b,touchmove:b,dragstart:b,drag:b,dragend:b,scope:a};a.minPosition={x:0,y:0};a.startPosition={x:0,y:0};a.velocity={x:0,y:0};a.isAxisEnabledFlags={x:!1,y:!1};a.flickStartPosition={x:0,y:0};a.flickStartTime={x:0,y:0};a.lastDragPosition={x:0,y:0};a.dragDirection={x:0,y:0};Ext.scroll.Scroller.prototype.constructor.call(this,c);a.refreshAxes();a.scheduleRefresh={idle:a.doRefresh,scope:a,single:!0,destroyable:!0}},applyBounceEasing:function(b){var a=Ext.fx.easing.EaseOut;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyElementSize:function(b){var e=this.getElement(),a,c,d;if(!e){return null}a=e.dom;if(!a){return}if(b==null){c=a.clientWidth;d=a.clientHeight}else {c=b.x;d=b.y}return {x:c,y:d}},applyIndicators:function(b,a){var g=this,c,d,e,f;if(b){if(b===!0){c=d={}}else {e=b.x;f=b.y;if(e||f){c=e==null||e===!0?{}:e;d=e==null||f===!0?{}:f}else {c=d=b}}if(a){if(c){a.x.setConfig(c)}else {a.x.destroy();a.x=null}if(d){a.y.setConfig(d)}else {a.y.destroy();a.y=null}b=a}else {b={x:null,y:null};if(c){b.x=new Ext.scroll.Indicator(Ext.applyIf({axis:'x',scroller:g},c))}if(d){b.y=new Ext.scroll.Indicator(Ext.applyIf({axis:'y',scroller:g},d))}}}else {if(a){if(a.x){a.x.destroy()}if(a.y){a.y.destroy()}a.x=a.y=null}}return b},applyMomentumEasing:function(b){var a=Ext.fx.easing.BoundMomentum;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyInnerElement:function(a){if(a&&!a.isElement){a=Ext.get(a)}return a},applyMaxPosition:function(a,c){if(c&&a.x===c.x&&a.y===c.y){return}var d=this.getTranslatable(),b;if(d.isAnimating){b=d.activeEasingY;if(b&&b.getStartVelocity&&b.getStartVelocity()<0&&a.yi){d=i}}if(l){c=a.convertX(c);d=a.convertX(d)}if(d!==null){f=a.getBounceEasing()[b];f.setConfig({startTime:j,startValue:-c,endValue:-d});return f}if(e===0){return null}if(e<-g){e=-g}else {if(e>g){e=g}}f=a.getMomentumEasing()[b];h={startTime:j,startValue:-c,startVelocity:e*1.5,minMomentumValue:-i,maxMomentumValue:0};if(l){a.convertEasingConfig(h)}f.setConfig(h);return f},getSnapPosition:function(d){var e=this,c=e.getSlotSnapSize()[d],f=null,b,h,g,a;if(c!==0&&e.isAxisEnabled(d)){b=e.position[d];h=e.getSlotSnapOffset()[d];g=e.getMaxUserPosition()[d];a=Math.floor((b-h)%c);if(a!==0){if(b!==g){if(Math.abs(a)>c/2){f=Math.min(g,b+(a>0?c-a:a-c))}else {f=b-a}}else {f=b-a}}}return f},hideIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.hide()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.hide()}}}},isAxisEnabled:function(a){this.getX();this.getY();return this.isAxisEnabledFlags[a]},onAnimationEnd:function(){this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(d,b,c){var a=this.position;a.x=this.convertX(-b);a.y=-c;this.onScroll()},onAxisDrag:function(a,k){if(k&&this.isAxisEnabled(a)){var b=this,o=b.flickStartPosition,g=b.flickStartTime,f=b.lastDragPosition,d=b.dragDirection,r=b.position[a],q=b.getMinUserPosition()[a],e=b.getMaxUserPosition()[a],p=b.startPosition[a],l=f[a],c=p-k,i=d[a],h=b.getOutOfBoundRestrictFactor(),n=b.getStartMomentumResetTime(),m=Ext.Date.now(),j;if(ce){j=c-e;c=e+j*h}}if(c>l){d[a]=1}else {if(cn){o[a]=r;g[a]=m}f[a]=c;return !0}},onDomScroll:function(){var c=this,b,a;if(c.getTranslatable().isScrollParent){b=c.getElement().dom;a=c.position;a.x=b.scrollLeft;a.y=b.scrollTop}Ext.scroll.Scroller.prototype.onDomScroll.call(this)},onDrag:function(c){var a=this,b=a.lastDragPosition;if(!a.isDragging){return}if(a.onAxisDrag('x',a.convertX(c.deltaX))|a.onAxisDrag('y',c.deltaY)){a.doScrollTo(b.x,b.y)}},onDragEnd:function(d){var a=this,b,c;if(!a.isDragging){return}a.dragEndTime=Ext.Date.now();a.onDrag(d);a.isDragging=!1;b=a.getAnimationEasing('x',d);c=a.getAnimationEasing('y',d);if(b||c){a.getTranslatable().animate(b,c)}else {a.onScrollEnd()}},onDragStart:function(d){var a=this,b=a.getDirection(),m=d.absDeltaX,n=d.absDeltaY,o=a.getDirectionLock(),l=a.startPosition,g=a.flickStartPosition,j=a.flickStartTime,h=a.lastDragPosition,i=a.position,k=a.dragDirection,e=i.x,f=i.y,c=Ext.Date.now();if(o&&b!=='both'){if(b==='horizontal'&&m>n||b==='vertical'&&n>m){d.stopPropagation()}else {return}}h.x=e;h.y=f;g.x=e;g.y=f;l.x=e;l.y=f;j.x=c;j.y=c;k.x=0;k.y=0;a.dragStartTime=c;a.isDragging=!0;if(!a.isScrolling){a.onScrollStart()}},onElementResize:function(b,a){this.refresh(!0,{elementSize:{x:a.contentWidth,y:a.contentHeight},size:this.getAutoRefresh()?null:this.getSize()})},onElementScroll:function(b,a){a.scrollTop=a.scrollLeft=0},onEvent:function(b){var a=this,c=b.browserEvent;if((!a.self.isTouching||a.isTouching)&&(!a.getTranslatable().isScrollParent||!a.isMouseEvent[c.type]&&c.pointerType!=='mouse')&&(a.getY()||a.getX())){a[a.listenerMap[b.type]](b)}},onInnerElementResize:function(b,a){this.refresh(!0,{size:{x:a.width,y:a.height}})},onMouseWheel:function(j){var a=this,g=j.getWheelDeltas(),c=-g.x,d=-g.y,b=a.position,e=a.getMaxUserPosition(),f=a.getMinUserPosition(),h=Math.max,i=Math.min,k=h(i(b.x+c,e.x),f.x),l=h(i(b.y+d,e.y),f.y);c=k-b.x;d=l-b.y;if(!c&&!d){return}j.stopEvent();a.onScrollStart();a.scrollBy(c,d);a.onScroll();a.onScrollEnd()},onPartnerScrollEnd:function(b,c){var a=this;if(!a.getTranslatable().isScrollParent){a.fireScrollEnd(b,c)}Ext.scroll.Scroller.prototype.onPartnerScrollEnd.call(this,b,c);a.isScrolling=!1;a.hideIndicators()},onPartnerScrollStart:function(b,c){var a=this;a.isScrolling=!0;if(!a.getTranslatable().isScrollParent){a.fireScrollStart(b,c)}a.showIndicators()},onScroll:function(){var a=this,e=a.position,f=e.x,g=e.y,b=a.getIndicators(),c,d;if(b){if(a.isAxisEnabled('x')){c=b.x;if(c){c.setValue(f)}}if(a.isAxisEnabled('y')){d=b.y;if(d){d.setValue(g)}}}a.fireScroll(f,g)},onScrollEnd:function(){var a=this,b=a.position;if(a.isScrolling&&!a.isTouching&&!a.snapToSlot()){a.hideIndicators();a.isScrolling=Ext.isScrolling=!1;a.fireScrollEnd(b.x,b.y)}},onScrollStart:function(){var a=this,b=a.position;if(!a.isScrolling){a.showIndicators();a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(b.x,b.y)}},onTouchEnd:function(){var a=this;a.isTouching=a.self.isTouching=!1;if(!a.isDragging&&a.snapToSlot()){a.onScrollStart()}},onTouchMove:function(a){a.preventDefault()},onTouchStart:function(){var a=this;a.isTouching=a.self.isTouching=!0;Ext.getDoc().on({touchend:'onTouchEnd',scope:a,single:!0});a.stopAnimation()},refreshAxes:function(){var a=this,b=a.isAxisEnabledFlags,k=a.getSize(),h=a.getElementSize(),e=a.getIndicators(),f,g,c,d,i,j;if(!k||!h){return}f=Math.max(0,k.x-h.x);g=Math.max(0,k.y-h.y);c=a.getX();d=a.getY();a.setMaxPosition({x:f,y:g});if(c===!0||c==='auto'){b.x=!!f}else {if(c===!1){b.x=!1;i=e&&e.x;if(i){i.hide()}}else {if(c==='scroll'){b.x=!0}}}if(d===!0||d==='auto'){b.y=!!g}else {if(d===!1){b.y=!1;j=e&&e.y;if(j){j.hide()}}else {if(d==='scroll'){b.y=!0}}}a.setMaxUserPosition({x:b.x?f:0,y:b.y?g:0});if(Ext.supports.touchScroll===1){a.initXStyle();a.initYStyle()}},showIndicators:function(){var d=this,a=d.getIndicators(),b,c;if(a){if(d.isAxisEnabled('x')){b=a.x;if(b){b.show()}}if(d.isAxisEnabled('y')){c=a.y;if(c){c.show()}}}},snapToBoundary:function(){var a=this,d=a.getPosition();if(a.isConfiguring||!(d.x||d.y)){return}var f=a.getMinUserPosition(),e=a.getMaxUserPosition(),i=f.x,j=f.y,g=e.x,h=e.y,b=Math.round(d.x),c=Math.round(d.y);if(bg){b=g}}if(ch){c=h}}a.doScrollTo(b,c)},snapToSlot:function(){var a=this,c=a.getSnapPosition('x'),d=a.getSnapPosition('y'),b=a.getSlotSnapEasing();if(c!==null||d!==null){a.doScrollTo(c,d,{easingX:b.x,easingY:b.y});return !0}return !1},stopAnimation:function(){this.getTranslatable().stopAnimation()},toggleResizeListeners:function(e){var c=this,f=c.getElement(),b,a,d;if(f){d=c.getInnerElement();if(e){b=a='on'}else {if(e===null){b='on';a='un'}else {b=a='un'}}f[b]('resize','onElementResize',c);d[a]('resize','onInnerElementResize',c)}},unwrapContent:function(){var a=this.getInnerElement().dom,c=this.getElement().dom,b;while(b=a.firstChild){c.insertBefore(b,a)}},wrapContent:function(d){var a=document.createElement('div'),c=d.dom,b;while(b=c.lastChild){a.insertBefore(b,a.firstChild)}c.appendChild(a);this.setInnerElement(a);this._isWrapped=!0;return this.getInnerElement()}}},1,0,0,0,['scroller.touch'],0,[Ext.scroll,'TouchScroller'],0);Ext.cmd.derive('Ext.scroll.DomScroller',Ext.scroll.Scroller,{isDomScroller:!0,getMaxPosition:function(){var b=this.getElement(),c=0,d=0,a;if(b&&!b.destroyed){a=b.dom;c=a.scrollWidth-a.clientWidth;d=a.scrollHeight-a.clientHeight}return {x:c,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),d=0,e=0,a;if(b&&!b.destroyed){a=b.dom;if(c.getX()){d=a.scrollWidth-a.clientWidth}if(c.getY()){e=a.scrollHeight-a.clientHeight}}return {x:d,y:e}},getPosition:function(){var a=this;if(a.positionDirty){a.updateDomScrollPosition()}return a.position},getSize:function(){var a=this.getElement(),b,c;if(a&&!a.destroyed){c=a.dom;b={x:c.scrollWidth,y:c.scrollHeight}}else {b={x:0,y:0}}return b},updateElement:function(b,a){this.initXStyle();this.initYStyle()},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},privates:{doScrollTo:function(a,b,j){var e=this,d=e.getElement(),f,c,i,g,h,k;if(d&&!d.destroyed){c=d.dom;g=a===Infinity;h=b===Infinity;if(g||h){f=e.getMaxPosition();if(g){a=f.x}if(h){b=f.y}}a=e.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}d.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(b!=null){c.scrollTop=b}if(a!=null){c.scrollLeft=a;if(Ext.isIE8){k=c.scrollLeft;c.scrollLeft=a}}}e.positionDirty=!0}},getElementScroll:function(a){return a.getScroll()},stopAnimation:function(){var a=this.getElement().getActiveAnimation();if(a){a.end()}}}},0,0,0,0,['scroller.dom'],0,[Ext.scroll,'DomScroller'],function(a){Ext.onDocumentReady(function(){a.document=new a({x:!0,y:!0,element:document.body})})});Ext.cmd.derive('Ext.util.Floating',Ext.Base,{mixinId:'floating',focusOnToFront:!0,shadow:'sides',animateShadow:!1,constrain:!1,config:{activeCounter:0,alwaysOnTop:!1},preventDefaultAlign:!1,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var a=this,e=a.el,d=a.shadow,c,b;if(d){b={mode:d===!0?'sides':d};c=a.shadowOffset;if(c){b.offset=c}b.animate=a.animateShadow;b.fixed=a.fixed;e.enableShadow(b,!1)}if(a.shim||Ext.useShims){e.enableShim({fixed:a.fixed},!1)}e.setVisibilityMode(a._visModeMap[a.hideMode]);a.el.on({mousedown:a.onMouseDown,scope:a,capture:!0});a.registerWithOwnerCt();a.initHierarchyEvents()},alignTo:function(b,d,f,e){var a=this,c;Ext.un('scroll',a.onAlignToScroll,a);if(b.isComponent){c=b.el}else {if(b.nodeType){c=Ext.fly(b)}else {c=b}}if(!c.contains(a.el)){Ext.on('scroll',a.onAlignToScroll,a)}a._lastAlignTarget=b;a._lastAlignToPos=d;a.mixins.positionable.alignTo.call(a,c,d,f,e)},initFloatConstrain:function(){var a=this,b=a.floatParent;if((a.constrain||a.constrainHeader)&&!a.constrainTo){a.constrainTo=b?b.getTargetEl():a.container}},initHierarchyEvents:function(){var b=this,a=this.syncHidden;if(!b.hasHierarchyEventListeners){b.mon(Ext.GlobalEvents,{hide:a,collapse:a,show:a,expand:a,added:a,scope:b});b.hasHierarchyEventListeners=!0}},registerWithOwnerCt:function(){var a=this,c=a.ownerCt,b=a.zIndexParent;if(b){b.unregisterFloatingItem(a)}b=a.zIndexParent=a.up('[floating]');a.floatParent=c||b;a.initFloatConstrain();delete a.ownerCt;if(b){b.registerFloatingItem(a)}else {Ext.WindowManager.register(a)}},onMouseDown:function(g){var b=this,f=b.focusTask,c=g.pointerType==='touch',a,d,e;if(b.floating&&(!f||!f.id)){a=g.target;d=b.el.dom;while(!c&&a&&a!==d){if(Ext.fly(a).isFocusable()){c=!0}a=a.parentNode}e=Ext.WindowManager.getActive()===b&&(a===d||c);if(!e){b.toFront(c)}}},onBeforeFloatLayout:function(){this.el.preventSync=!0},onAfterFloatLayout:function(){var a=this.el;if(a.shadow||a.shim){a.setUnderlaysVisible(!0);a.syncUnderlays()}},syncHidden:function(){var a=this,d=a.hidden||!a.rendered,c=a.hierarchicallyHidden=a.isHierarchicallyHidden(),b=a.pendingShow;if(d!==c){if(c){a.hide();a.pendingShow=!0}else {if(b){delete a.pendingShow;if(b.length){a.show.apply(a,b)}else {a.show()}}}}},setZIndex:function(a){var b=this;b.el.setZIndex(a);a+=10;if(b.floatingDescendants){a=Math.floor(b.floatingDescendants.setBase(a)/100)*100+10000}return a},doConstrain:function(c){var a=this,b=a.calculateConstrainedPosition(c,null,!0);if(b){a.setPosition(b)}},updateActiveCounter:function(b){var a=this.zIndexParent;if(a&&this.bringParentToFront!==!1){a.setActiveCounter(++Ext.ZIndexManager.activeCounter)}a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},updateAlwaysOnTop:function(b){var a=this.zIndexManager;if(a){a.onComponentUpdate(this)}},toFront:function(b){var a=this;if(a.zIndexManager.bringToFront(a,b||!a.focusOnToFront)){if(a.hasListeners.tofront){a.fireEvent('tofront',a,a.el.getZIndex())}}return a},setActive:function(d,c){var a=this,b;if(d){if(a.el.shadow&&!a.maximized){a.el.enableShadow(null,!0)}if(c){b=Ext.ComponentManager.getActiveComponent();if(!b||!b.up(a)){a.focus()}}a.fireEvent('activate',a)}else {a.fireEvent('deactivate',a)}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var a=this,b;if(a.isVisible()){b=a.getAlignToXY(a.container,'c-c');a.setPagePosition(b)}else {a.needsCenter=!0}return a},onFloatShow:function(){if(this.needsCenter){this.center()}delete this.needsCenter;if(this.toFrontOnShow){this.toFront()}},fitContainer:function(f){var d=this,c=d.floatParent,a=c?c.getTargetEl():d.container,b=a.getViewSize(),e=c||a.dom!==document.body?[0,0]:a.getXY();b.x=e[0];b.y=e[1];d.setBox(b,f)},privates:{onFloatDestroy:function(){this.clearAlignEl()},clearAlignEl:function(){var a=this;if(a._lastAlignTarget){Ext.un('scroll',a.onAlignToScroll,a);a._lastAlignPos=a._lastAlignTarget=null}},onAlignToScroll:function(e){var b=this,a=b._lastAlignTarget,f=a.isFloating,c,d;if(a){if(a.isComponent){c=a.destroyed;a=a.el}else {if(a.nodeType){a=Ext.fly(a)}d=a.dom;c=!d||Ext.isGarbage(d)}if(c){b.clearAlignEl()}else {if((e.getElement().contains(a)||f)&&!e.getElement().contains(b.el)){b.alignTo(a,b._lastAlignToPos)}}}}}},1,0,0,0,0,0,[Ext.util,'Floating'],0);Ext.cmd.derive('Ext.util.ElementContainer',Ext.Base,{mixinId:'elementCt',config:{childEls:{$value:{},cached:!0,lazy:!0,merge:function(d,f,g,e){var c=f?Ext.Object.chain(f):{},b,a;if(d instanceof Array){for(b=d.length;b--;){a=d[b];if(!e||!(a in c)){if(typeof a==='string'){c[a]={name:a,itemId:a}}else {c[a.name]=a}}}}else {if(d){if(d.constructor===Object){for(b in d){if(!e||!(b in c)){a=d[b];if(a===!0){c[b]={itemId:b}}else {if(typeof a==='string'){c[b]={itemId:a}}else {c[b]=a;if(!('itemId' in a)){a.itemId=b}}}c[b].name=b}}}else {if(!e||!(d in c)){c[d]={name:d,itemId:d}}}}}return c}}},destroy:function(){var c=this,d=c.getChildEls(),a,b;for(b in d){a=c[b];if(a){if(a.destroy){a.component=null;a.destroy()}c[b]=null}}},privates:{addChildEl:function(a){var c=this,b=c.getChildEls();if(!c.hasOwnProperty('childEls')){c.childEls=b=Ext.Object.chain(b)}if(typeof a==='string'){a={name:a,itemId:a}}b[a.name]=a},afterClassMixedIn:function(a){var c=a.prototype,b=c.childEls;if(b){delete c.childEls;a.getConfigurator().add({childEls:b})}},attachChildEls:function(h,n){var i=this,k=i.getChildEls(),e=n||i,m=e.id+'-',l=!e.frame,f,g,b,j,c,a,d;for(f in k){b=k[f];if(l&&b.frame){continue}c=b.select;if(c){a=h.select(c,!0)}else {if(!(c=b.selectNode)){if(!(d=b.id)){d=m+b.itemId;a=Ext.cache[d]}else {a=Ext.cache[d]||h.getById(d)}}else {a=h.selectNode(c,!1)}}if(a){if(a.isElement){a.component=e}else {if(a.isComposite&&!a.isLite){g=a.elements;for(j=g.length;j--;){g[j].component=e}}}}i[f]=a||null}}}},0,0,0,0,0,0,[Ext.util,'ElementContainer'],0);Ext.cmd.derive('Ext.util.Renderable',Ext.Base,{mixinId:'renderable',frameCls:'x-frame',frameIdRegex:/[\-]frame\d+[TMB][LCR]$/,frameElNames:['TL','TC','TR','ML','MC','MR','BL','BC','BR','Table'],frameTpl:['{%this.renderDockedItems(out,values,0);%}','','
    {parent.baseCls}-{parent.ui}-{.}-tl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-tc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','
    {parent.baseCls}-{parent.ui}-{.}-ml{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mr{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-mc{frameElCls}" role="presentation">','{%this.applyRenderTpl(out, values)%}','
    ','
    ','
    ','','
    {parent.baseCls}-{parent.ui}-{.}-bl{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-br{frameElCls}" role="presentation">','
    {parent.baseCls}-{parent.ui}-{.}-bc{frameElCls}" role="presentation">
    ','
    ','
    ','
    ','{%this.renderDockedItems(out,values,1);%}'],frameTableTpl:['{%this.renderDockedItems(out,values,0);%}','','','','','','','','','','','','','','','','','','','','','','{%this.renderDockedItems(out,values,1);%}'],_renderState:0,ariaEl:'el',_layerCls:'x-layer',_fixedLayerCls:'x-fixed-layer',ariaStaticRoles:{presentation:!0,article:!0,definition:!0,directory:!0,document:!0,img:!0,heading:!0,math:!0,note:!0,banner:!0,complementary:!0,contentinfo:!0,navigation:!0,search:!0,'undefined':!0,'null':!0},statics:{makeRenderSetter:function(c,b){var a=c.name;return function(g){var d=this,f=d.renderConfigs||(d.renderConfigs={}),e=f[b];if(d._renderState>=b){(c.setter||c.getSetter()).call(d,g)}else {if(!e){f[b]=e={}}if(!(a in e)){e[a]=d[a]}d[a]=g}return d}},processRenderConfig:function(g,e,c){var h=this.prototype,j=this.getConfigurator(),k=Ext.util.Renderable,l=k.makeRenderSetter,d=g[e],b,a,i,f;for(i in d){a=Ext.Config.get(i);if(!h[f=a.names.set]){b=a.renderSetter||(a.renderSetter={});h[f]=b[c]||(b[c]=l(a,c))}}delete g[e];j.add(d)}},onClassMixedIn:function(a){var e=a.override,c=this.processRenderConfig,d=function(b){if(b.beforeRenderConfig){this.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){this.processRenderConfig(b,'renderConfig',3)}e.call(this,b)},b=function(e,b){e.override=d;e.processRenderConfig=c;if(b.beforeRenderConfig){e.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){e.processRenderConfig(b,'renderConfig',3)}};b(a,a.prototype);a.onExtended(b)},afterRender:function(){var a=this,c={},i=a.protoEl,g=a.el,d,b,h,f,e;a.finishRenderChildren();a._renderState=4;if(a.contentEl){h='x-';f=h+'hidden-';e=a.contentEl=Ext.get(a.contentEl);e.component=a;e.removeCls([h+'hidden',f+'display',f+'offsets']);a.getContentTarget().appendChild(e.dom)}i.writeTo(c);b=c.removed;if(b){g.removeCls(b)}b=c.cls;if(b.length){g.addCls(b)}b=c.style;if(c.style){g.setStyle(b)}a.protoEl=null;if(!a.ownerCt&&!a.skipLayout){a.updateLayout()}if(!(a.x&&a.y)&&(a.pageX||a.pageY)){a.setPagePosition(a.pageX,a.pageY)}if(a.disableOnRender){a.onDisable()}d=a.controller;if(d&&d.afterRender){d.afterRender(a)}},afterFirstLayout:function(l,k){var a=this,g=a.x,h=a.y,j=a.defaultAlign,i=a.alignOffset,f,d,e,b,c;if(!a.ownerLayout){d=g!==undefined;e=h!==undefined}if(a.floating&&!a.preventDefaultAlign&&(!d||!e)){if(a.floatParent){b=a.floatParent.getTargetEl().getViewRegion();c=a.el.getAlignToXY(a.alignTarget||a.floatParent.getTargetEl(),j,i);b.x=c[0]-b.x;b.y=c[1]-b.y}else {c=a.el.getAlignToXY(a.alignTarget||a.container,j,i);b=a.el.translateXY(c[0],c[1])}g=d?g:b.x;h=e?h:b.y;d=e=!0}if(d||e){a.setPosition(g,h)}a.onBoxReady(l,k);f=a.controller;if(f&&f.boxReady){f.boxReady(a)}},beforeRender:function(){var a=this,d=a.floating,e=a.getComponentLayout(),b=a.userCls,c;a._renderState=1;a.ariaUsesMainElement=a.ariaEl==='el';c=a.controller;if(c&&c.beforeRender){c.beforeRender(a)}a.initBindable();if(a.renderConfigs){a.flushRenderConfigs()}if(a.reference){a.publishState()}if(b){a.addCls(b)}if(d){a.addCls(a.fixed?a._fixedLayerCls:a._layerCls);b=d.cls;if(b){a.addCls(b)}}a.frame=a.frame||a.alwaysFramed;if(!e.initialized){e.initLayout()}a.initOverflow();a.setUI(a.ui)},doApplyRenderTpl:function(d,a){var c=a.$comp,b;if(!c.rendered){b=c.initRenderTpl();b.applyOut(a.renderData,d)}},getElConfig:function(){var a=this,e=a.autoEl,c=a.getFrameInfo(),b={tag:'div',tpl:c?a.initFramingTpl(c.table):a.initRenderTpl()},g=a.layoutTargetCls,d=a.protoEl,f=a.ariaRole,h;a.initStyles(d);if(g&&!c){d.addCls(g)}d.writeTo(b);d.flush();if(e){if(Ext.isString(e)){b.tag=e}else {Ext.apply(b,e)}}if(f&&a.ariaUsesMainElement){b.role=f;if(!a.ariaStaticRoles[f]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}}b.id=a.id;if(b.tpl){if(c){b.tplData=h=a.getFrameRenderData();h.renderData=a.initRenderData()}else {b.tplData=a.initRenderData()}}a.ariaRenderAttributes=null;return b},getInsertPosition:function(a){if(a!==undefined){if(Ext.isNumber(a)){a=this.container.dom.childNodes[a]}else {a=Ext.getDom(a)}}return a},getRenderTree:function(){var a=this,b=null;if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a._renderState=1;a.beforeRender();a.rendering=!0;a._renderState=2;b=a.getElConfig();if(a.el){b.id=a.$pid=Ext.id(null,a.el.identifiablePrefix)}}return b},initRenderData:function(){var a=this,c=a.ariaRole,d,b;d=Ext.apply({$comp:a,id:a.id,ui:a.ui,uiCls:a.uiCls,baseCls:a.baseCls,componentCls:a.componentCls,frame:a.frame,renderScroller:a.touchScroll,scrollerCls:a.scrollerCls,childElCls:''},a.renderData);if(c&&!a.ariaUsesMainElement){b={role:c};if(!a.ariaStaticRoles[c]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}d.ariaAttributes=b}return d},onRender:function(i,h){var a=this,e=a.x,f=a.y,b=null,g=a.el,d,c;a.applyRenderSelectors();a.rendering=null;a.rendered=!0;a._renderState=3;if(a.renderConfigs){a.flushRenderConfigs()}if(e!=null){b={x:e}}if(f!=null){(b=b||{}).y=f}if(!a.getFrameInfo()){d=a.width;c=a.height;if(typeof d==='number'){b=b||{};b.width=d}if(typeof c==='number'){b=b||{};b.height=c}}if(a.touchScroll===1){a.getOverflowEl().disableTouchScroll()}a.lastBox=g.lastBox=b},render:function(c,g){var a=this,b=a.el,f=a.ownerLayout,h,d,e;if(b&&!b.isElement){a.wrapPrimaryEl(b);b=a.el}if(!a.skipLayout){Ext.suspendLayouts()}c=a.initContainer(c);e=a.getInsertPosition(g);if(!b){d=a.getRenderTree();if(f&&f.transformItemRenderTree){d=f.transformItemRenderTree(d)}if(d){if(e){b=Ext.DomHelper.insertBefore(e,d)}else {b=Ext.DomHelper.append(c,d)}a.wrapPrimaryEl(b);a.cacheRefEls(b)}}else {if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a.beforeRender();a.needsRenderTpl=a.rendering=!0;a._renderState=2;a.initStyles(b);if(a.allowDomMove!==!1){if(e){c.dom.insertBefore(b.dom,e)}else {c.dom.appendChild(b.dom)}}}else {h=!0}}if(b&&!h){a.finishRender(g)}if(!a.skipLayout){Ext.resumeLayouts(!a.hidden&&!c.isDetachedBody)}},ensureAttachedToBody:function(c){var a=this,b;while(a.ownerCt){a=a.ownerCt}if(a.container.isDetachedBody){a.container=b=Ext.getBody();b.appendChild(a.el.dom);if(c){a.updateLayout()}if(typeof a.x==='number'||typeof a.y==='number'){a.setPosition(a.x,a.y)}}},privates:{applyRenderSelectors:function(){var a=this,b=a.renderSelectors,e=a.el,d,c;a.attachChildEls(e);a.ariaEl=a[a.ariaEl]||a.el;if(b){for(c in b){d=b[c];if(d){a[c]=e.selectNode(d,!1)}}}},cacheRefEls:function(a){a=a||this.el;var e=Ext.cache,h=Ext.dom.Element,f=a.isElement?a.dom:a,d=f.querySelectorAll('[data-ref]'),g=d.length,c,b;for(b=0;b','
    ','','{%this.renderContent(out,values)%}','
    '],resizeHandles:'all',shrinkWrap:2,toFrontOnShow:!0,synthetic:!1,tplWriteMode:'overwrite',ui:'default',uiCls:[],userCls:null,weight:null,allowDomMove:!0,autoGenId:!1,borderBoxCls:'x-border-box',componentLayoutCounter:0,contentPaddingProperty:'padding',deferLayouts:!1,frameSize:null,horizontalPosProp:'left',isComponent:!0,_isLayoutRoot:!1,layoutSuspendCount:0,liquidLayout:!1,maskOnDisable:!0,offsetsCls:'x-hidden-offsets',rendered:!1,rootCls:'x-body',scrollerCls:'x-scroll-scroller',scrollerSelector:'.x-scroll-scroller',_scrollFlags:{auto:{auto:{overflowX:'auto',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'auto',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'auto',overflowY:'scroll',x:!0,y:!0,both:!0}},'false':{auto:{overflowX:'hidden',overflowY:'auto',x:!1,y:!0,both:!1},'false':{overflowX:'hidden',overflowY:'hidden',x:!1,y:!1,both:!1},scroll:{overflowX:'hidden',overflowY:'scroll',x:!1,y:!0,both:!1}},scroll:{auto:{overflowX:'scroll',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'scroll',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'scroll',overflowY:'scroll',x:!0,y:!0,both:!0}},none:{overflowX:'',overflowY:'',x:!1,y:!1,both:!1}},_scrollableCfg:{x:{x:!0,y:!1},y:{x:!1,y:!0},horizontal:{x:!0,y:!1},vertical:{x:!1,y:!0},both:{x:!0,y:!0},'true':{x:!0,y:!0}},validIdRe:Ext.validIdRe,constructor:function(b){var a=this,e,j,i,h,g,c,d,f;b=b||{};if(b.initialConfig){if(b.isAction){a.baseAction=b}b=b.initialConfig}else {if(b.tagName||b.dom||Ext.isString(b)){b={applyTo:b,id:b.id||b}}}a.initialConfig=b;a.getId();a.protoEl=new Ext.util.ProtoElement();a.initConfig(b);if(a.scrollable==null){g=a.autoScroll;if(g){f=!!g}else {c=a.overflowX;d=a.overflowY;if(c||d){f={x:c&&c!=='hidden'?c:!1,y:d&&d!=='hidden'?d:!1}}}if(f){a.setScrollable(f)}}i=a.xhooks;if(i){delete a.xhooks;Ext.override(a,i)}a.mixins.elementCt.constructor.call(a);a.setupProtoEl();if(a.cls){a.initialCls=a.cls;a.protoEl.addCls(a.cls)}if(a.style){a.initialStyle=a.style;a.protoEl.setStyle(a.style)}a.renderData=a.renderData||{};a.initComponent();if(!a.preventRegister){Ext.ComponentManager.register(a)}a.mixins.state.constructor.call(a);a.addStateEvents('resize');h=a.getController();if(h){h.init(a)}if(a.plugins){for(e=0,j=a.plugins.length;eh){o=j;f=!0}if(e&&k>i){p=k;f=!0}if(d||e){g=a.el.getStyle('overflow');if(g!=='hidden'){a.el.setStyle('overflow','hidden')}}if(f){r=!Ext.isNumber(a.width);q=!Ext.isNumber(a.height);a.setSize(p,o);a.el.setSize(i,h);if(r){delete a.width}if(q){delete a.height}}if(e){c.width=k}if(d){c.height=j}}n=a.constrain;l=a.constrainHeader;if(n||l){a.constrain=a.constrainHeader=!1;m=b.callback;b.callback=function(){a.constrain=n;a.constrainHeader=l;if(m){m.call(b.scope||a,arguments)}if(g!=='hidden'){a.el.setStyle('overflow',g)}}}return a.mixins.animate.animate.apply(a,arguments)},applyScrollable:function(a,c){var b=this,f=b.rendered,e,d;if(a){if(a===!0||typeof a==='string'){e=b._scrollableCfg[a];a=e}if(c){c.setConfig(a);a=c}else {a=Ext.Object.chain(a);if(f){a.element=b.getOverflowEl();d=b.getScrollerEl();if(d){a.innerElement=d}}a.autoRefresh=!1;if(Ext.supports.touchScroll===1){a.translatable={translationMethod:'scrollparent'};a.indicators=!1}a=Ext.scroll.Scroller.create(a);a.component=b}}else {if(c){c.setConfig({x:!1,y:!1});c.destroy();a=null}}if(b.rendered&&!b.destroying&&!b.destroyed){if(a){b.getOverflowStyle()}else {b.scrollFlags=b._scrollFlags.none}b.updateLayout()}return a},beforeComponentLayout:function(){return !0},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(a,b,f){var d=this,c=null,e,g,h,i;if(a){if(Ext.isNumber(e=a[0])){f=b;b=a[1];a=e}else {if((e=a.x)!==undefined){f=b;b=a.y;a=e}}}if(d.constrain||d.constrainHeader){c=d.calculateConstrainedPosition(null,[a,b],!0);if(c){a=c[0];b=c[1]}}g=a!==undefined;h=b!==undefined;if(g||h){d.x=a;d.y=b;i=d.adjustPosition(a,b);c={x:i.x,y:i.y,anim:f,hasX:g,hasY:h}}return c},beforeShow:Ext.emptyFn,bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.getBubbleTarget()}return this},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},cloneConfig:function(a){a=a||{};var d=a.id||Ext.id(),c=Ext.applyIf(a,this.initialConfig),b;c.id=d;b=Ext.getClass(this);return new b(c)},destroy:function(){var a=this,d=a.renderSelectors,f=a.getConfig('viewModel',!0),g=a.getConfig('session',!0),b,c,e;if(!a.hasListeners.beforedestroy||a.fireEvent('beforedestroy',a)!==!1){a.isDestroying=a.destroying=!0;c=a.floatParent||a.ownerCt;if(a.floating){delete a.floatParent;if(a.zIndexManager){a.zIndexManager.unregister(a);a.zIndexManager=null}}a.removeBindings();a.beforeDestroy();a.destroyBindable();if(c&&c.remove){c.remove(a,!1)}a.stopAnimation();a.onDestroy();Ext.destroy(a.plugins);if(a.rendered){Ext.Component.cancelLayout(a,!0)}a.componentLayout=null;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}if(!a.preventRegister){Ext.ComponentManager.unregister(a)}a.mixins.state.destroy.call(a);if(a.floating){a.onFloatDestroy()}a.clearListeners();if(a.rendered){if(!a.preserveElOnDestroy){a.el.destroy()}a.el.component=null;a.mixins.elementCt.destroy.call(a);if(d){for(b in d){if(d.hasOwnProperty(b)){e=a[b];if(e){delete a[b];e.destroy()}}}}a.data=a.el=a.frameBody=a.rendered=a.afterRenderEvents=null;a.tpl=a.renderTpl=a.renderData=null;a.focusableContainer=a.container=a.scrollable=null}a.isDestroying=a.destroying=!1;a.callParent()}},disable:function(e,d){var a=this,b=a.focusableContainer,c=a.getInherited();if(!d){c.disabled=!0;a.savedDisabled=!0}if(a.maskOnDisable){c.disableMask=!0}if(!a.disabled){if(b){b.beforeFocusableChildDisable(a)}a.addCls(a.disabledCls);if(a.rendered){a.onDisable()}else {a.disableOnRender=!0}a.disabled=!0;if(e!==!0){a.fireEvent('disable',a)}if(b){b.onFocusableChildDisable(a)}}return a},doFireEvent:function(c,d,e){var a=this,b=a.mixins.observable.doFireEvent.call(a,c,d,e);if(b!==!1){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,d)}return b},enable:function(e,c){var a=this,b=a.focusableContainer,d=a.getInherited();if(!c){delete a.getInherited().disabled;a.savedDisabled=!1}if(a.maskOnDisable){delete d.disableMask}if(a.disabled){if(!(c&&d.hasOwnProperty('disabled'))){if(b){b.beforeFocusableChildEnable(a)}a.disableOnRender=!1;a.removeCls(a.disabledCls);if(a.rendered){a.onEnable()}a.disabled=!1;if(e!==!0){a.fireEvent('enable',a)}if(b){b.onFocusableChildEnable(a)}}}return a},findParentBy:function(b){var a;for(a=this.getRefOwner();a&&!b(a,this);a=a.getRefOwner()){}return a||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.constructor===a}):this.up(a)},findPlugin:function(c){var a,b=this.plugins,d=b&&b.length;for(a=0;a-1;e--){b=g[e];if(b.query){a=b.query(c);a=a[a.length-1];if(a){return a}}if(b.is(c)){return b}}return f.previousNode(c,!0)}return null},previousSibling:function(c){var e=this.ownerCt,b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.getAt(--a)}}}}return null},registerFloatingItem:function(b){var a=this;if(!a.floatingDescendants){a.floatingDescendants=new Ext.ZIndexManager(a)}a.floatingDescendants.register(b)},removeCls:function(c){var a=this,b=a.rendered?a.el:a.protoEl;b.removeCls.apply(b,arguments);return a},removeClsWithUI:function(a,k){var b=this,d=[],e=0,g=Ext.Array,i=g.remove,j=b.uiCls=g.clone(b.uiCls),f=b.activeUI,h,c;if(typeof a==='string'){a=a.indexOf(' ')<0?[a]:Ext.String.splitWords(a)}h=a.length;for(e=0;e1){arguments[0]=null;a.pendingShow=arguments}else {a.pendingShow=!0}}else {if(b&&a.isVisible()){if(a.floating){a.onFloatShow()}}else {if(a.fireEvent('beforeshow',a)!==!1){a.hidden=!1;delete this.getInherited().hidden;Ext.suspendLayouts();if(!b&&(a.autoRender||a.floating)){a.doAutoRender();b=a.rendered}if(b){a.beforeShow();Ext.resumeLayouts();a.onShow.apply(a,arguments);a.afterShow.apply(a,arguments)}else {Ext.resumeLayouts(!0)}}else {a.onShowVeto()}}}return a},showAt:function(b,c,d){var a=this;if(!a.rendered&&(a.autoRender||a.floating)){a.x=b;a.y=c;return a.show()}if(a.floating){a.setPosition(b,c,d)}else {a.setPagePosition(b,c,d)}return a.show()},showBy:function(b,d,c){var a=this;if(a.floating&&b){a.alignTarget=b;if(d){a.defaultAlign=d}if(c){a.alignOffset=c}a.show();if(!a.hidden){a.alignTo(b,d||a.defaultAlign,c||a.alignOffset)}}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=!0}},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(!1)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){d++;if(c.isComponent){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},update:function(b,i,k,j){var a=this,h=a.tpl&&!Ext.isString(b),g=a.getScrollable(),f=a.focusableContainer,e,c,d;if(h){a.data=b&&b.isEntity?b.getData(!0):b}else {a.html=Ext.isObject(b)?Ext.DomHelper.markup(b):b}if(a.rendered){e=a.getSizeModel();c=e.width.shrinkWrap||e.height.shrinkWrap;if(a.isContainer){d=a.layout.getRenderTarget();c=c||a.items.items.length>0}else {d=a.touchScroll?a.getScrollerEl():a.getTargetEl()}if(h){a.tpl[a.tplWriteMode](d,a.data||{})}else {d.setHtml(a.html,i,k,j||a)}if(c){a.updateLayout()}if(g){g.refresh(!0)}if(f){f.onFocusableChildUpdate(a)}}},setHtml:function(c,a,b){this.update(c,a,null,b)},applyData:function(a){this.update(a)},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},_asLayoutRoot:{isRoot:!0},_notAsLayoutRoot:{isRoot:!1},updateLayout:function(b){var a=this,e,d=a.lastBox,c=b&&b.isRoot;if(d){d.invalid=!0}if(!a.rendered||a.layoutSuspendCount||a.suspendLayout){return}if(a.hidden){Ext.Component.cancelLayout(a)}else {if(typeof c!=='boolean'){c=a.isLayoutRoot()}}if(c||!a.ownerLayout||!a.ownerLayout.onContentChange(a)){if(!a.isLayoutSuspended()){e=b&&b.hasOwnProperty('defer')?b.defer:a.deferLayouts;Ext.Component.updateLayout(a,e)}}},updateMaxHeight:function(b,a){this.changeConstraint(b,a,'min','max-height','height')},updateMaxWidth:function(b,a){this.changeConstraint(b,a,'min','max-width','width')},updateMinHeight:function(b,a){this.changeConstraint(b,a,'max','min-height','height')},updateMinWidth:function(b,a){this.changeConstraint(b,a,'max','min-width','width')},getAnchorToXY:function(d,a,c,b){return d.getAnchorXY(a,c,b)},getBorderPadding:function(){return this.el.getBorderPadding()},getLocalX:function(){return this.el.getLocalX()},getLocalXY:function(){return this.el.getLocalXY()},getLocalY:function(){return this.el.getLocalY()},getX:function(){return this.el.getX()},getXY:function(){return this.el.getXY()},getY:function(){return this.el.getY()},setLocalX:function(a){this.el.setLocalX(a)},setLocalXY:function(a,b){this.el.setLocalXY(a,b)},setLocalY:function(a){this.el.setLocalY(a)},setX:function(b,a){this.el.setX(b,a)},setXY:function(b,a){this.el.setXY(b,a)},setY:function(b,a){this.el.setY(b,a)},privates:{addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},addUIToElement:function(){var a=this,d=a.baseCls+'-'+a.ui,e,c,f,b;a.addCls(d);if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){f=a[c];if(f){f.addCls(d+b)}}}}},changeConstraint:function(b,g,f,c,d){var a=this,e=a[d];if(b!=null&&typeof e==='number'){a[d]=Math[f](e,b)}if(a.liquidLayout){if(b!=null){a.setStyle(c,b+'px')}else {if(g){a.setStyle(c,'')}}}if(a.rendered){a.updateLayout()}},constructPlugin:function(a){var b=this;if(typeof a==='string'){a=Ext.PluginManager.create({},a,b)}else {a=Ext.PluginManager.create(a,null,b)}return a},constructPlugins:function(){var d=this,a=d.plugins,c,b,e;if(a){c=[];c.processed=!0;if(!Ext.isArray(a)){a=[a]}for(b=0,e=a.length;b=0){h=m[c].splitterDelta;if(e.getAt(d+h)!==b){e.remove(b);d=e.indexOf(a);if(h>0){++d}e.insert(d,b)}}}if(j){if(l){a.expand(!1)}i.remove(j);a.placeholder=null;if(l){a.collapse(null,!1)}}i.updateLayout();Ext.resumeLayouts(!0);a.fireEventArgs('changeregion',[a,g])}else {a.region=c}}return g},setWeight:function(b){var a=this,e=a.getOwningBorderContainer(),d=a.placeholder,c=a.weight;if(b!==c){if(a.fireEventArgs('beforechangeweight',[a,b])!==!1){a.weight=b;if(d){d.weight=b}if(e){e.updateLayout()}a.fireEventArgs('changeweight',[a,c])}}return c}},function(b){var a=b.prototype;a.setBorderRegion=a.setRegion;a.setRegionWeight=a.setWeight});Ext.define('Ext.theme.neptune.Component',{override:'Ext.Component',initComponent:function(){arguments.callee.$previous.call(this);if(this.dock&&this.border===undefined){this.border=!1}},privates:{initStyles:function(){var a=this,b=a.hasOwnProperty('border'),c=a.border;if(a.dock){a.border=null}arguments.callee.$previous.apply(this,arguments);if(b){a.border=c}else {delete a.border}}}},function(){Ext.namespace('Ext.theme.is').Neptune=!0;Ext.theme.name='Neptune'});Ext.define('Ext.theme.crisp.Component',{override:'Ext.Component'},function(){Ext.namespace('Ext.theme.is').Crisp=!0;Ext.theme.name='Crisp'});Ext.define('Ext.overrides.app.domain.Component',{override:'Ext.app.domain.Component'},function(a){a.monitor(Ext.Component)});Ext.cmd.derive('Ext.app.EventBus',Ext.Base,{singleton:!0,constructor:function(){var a=this,b=Ext.app.EventDomain.instances;a.callParent();a.domains=b;a.bus=b.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(b,c){var d=this.domains,a;for(a in b){if(b.hasOwnProperty(a)){d[a].listen(b[a],c)}}},unlisten:function(c){var a=Ext.app.EventDomain.instances,b;for(b in a){a[b].unlisten(c)}}},1,0,0,0,0,0,[Ext.app,'EventBus'],0);Ext.cmd.derive('Ext.app.domain.Global',Ext.app.EventDomain,{singleton:!0,type:'global',constructor:function(){var a=this;a.callParent();a.monitor(Ext.GlobalEvents)},listen:function(b,a){this.callParent([{global:b},a])},match:Ext.returnTrue},1,0,0,0,0,0,[Ext.app.domain,'Global'],0);Ext.cmd.derive('Ext.app.BaseController',Ext.Base,{isController:!0,config:{id:null,control:null,listen:null,routes:null,before:null},constructor:function(b){var a=this;Ext.apply(a,b);delete a.control;delete a.listen;a.eventbus=Ext.app.EventBus;a.mixins.observable.constructor.call(a,b);a.ensureId()},applyListen:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},applyControl:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},updateControl:function(a){this.ensureId();if(a){this.control(a)}},updateListen:function(a){this.ensureId();if(a){this.listen(a)}},updateRoutes:function(b){if(b){var e=this,f=e.getBefore()||{},g=Ext.app.route.Router,c,a,d;for(c in b){a=b[c];if(Ext.isString(a)){a={action:a}}d=a.action;if(!a.before){a.before=f[d]}g.connect(c,a,e)}}},isActive:function(){return !0},control:function(b,c,f){var e=this,d=f,a;if(Ext.isString(b)){a={};a[b]=c}else {a=b;d=c}e.eventbus.control(a,d||e)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var a=this,b=a.eventbus;Ext.app.route.Router.disconnectAll(a);if(b){b.unlisten(a);a.eventbus=null}a.callParent()},redirectTo:function(a,c){if(a.isModel){a=a.toUrl()}if(!c){var b=Ext.util.History.getToken();if(b===a){return !1}}else {Ext.app.route.Router.onStateChange(a)}Ext.util.History.add(a);return !0}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.app,'BaseController'],0);Ext.cmd.derive('Ext.app.Util',Ext.Base,{},0,0,0,0,0,0,[Ext.app,'Util'],function(){Ext.apply(Ext.app,{namespaces:{Ext:{}},addNamespaces:function(a){var d=Ext.app.namespaces,b,c;if(!Ext.isArray(a)){a=[a]}for(b=0,c=a.length;bb.length&&a+'.'===d.substring(0,a.length+1)){b=a}}return b===''?undefined:b},setupPaths:function(e,b,c){var a=Ext.manifest,d;if(e&&b!==null){a=a&&a.paths;if(!a||b!==undefined){Ext.Loader.setPath(e,b===undefined?'app':b)}}if(c){for(d in c){if(c.hasOwnProperty(d)){Ext.Loader.setPath(d,c[d])}}}}});Ext.getNamespace=Ext.app.getNamespace});Ext.cmd.derive('Ext.util.CollectionKey',Ext.Base,{isCollectionKey:!0,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:!0},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(i,b){var j=this.map||this.getMap(),c=j[i],e=this.getCollection(),h=e.length,d,a,f,g;if(!c){return -1}if(b===undefined){b=-1}if(c instanceof Array){f=c;a=h;for(g=f.length;g-->0;){d=e.indexOf(f[g]);if(db){a=d}}if(a===h){return -1}}else {a=e.indexOf(c)}return a>b?a:-1},updateKey:function(e,d){var f=this,c=f.map,a,b;if(c){a=c[d];if(a instanceof Array){b=Ext.Array.indexOf(a,e);if(b>=0){if(a.length>2){a.splice(b,1)}else {c[d]=a[1-b]}}}else {if(a){delete c[d]}}f.add([e])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(a,b){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(g,h){var a=this,f=a.map,d=h.items,c=d.length,b,i,e;if(f){if(a.getUnique()&&cb?1:a0&&a.getAutoSort(),r=a.getSource(),q=0,g=!1,o=!1,e,l,k,m,b,d;if(r&&!r.updating){r.itemChanged(c,p,f,u)}else {l=a.getKey(c);if(s){b=a.indexOfKey(j?f:l);o=b<0;g=a.isItemFiltered(c);n=o!==g}if(n){if(g){q=[c];d=-1}else {m=[c];d=a.length}}else {if(v&&!g){if(!s){b=a.indexOfKey(j?f:l)}k=a.getSortFn();if(b!==-1){if(b&&k(i[b-1],i[b])>0){h=-1;d=Ext.Array.binarySearch(i,c,0,b,k)}else {if(b0){h=1;d=Ext.Array.binarySearch(i,c,b+1,k)}}if(h){m=[c]}}}}e={item:c,key:l,index:d,filterChanged:n,keyChanged:j,indexChanged:!!h,filtered:g,oldIndex:b,newIndex:d,wasFiltered:o,meta:u};if(j){e.oldKey=f}if(p){e.modified=p}a.beginUpdate();a.notify('beforeitemchange',[e]);if(j){a.updateKey(c,f)}if(m||q){a.splice(d,q,m)}if(h>0){e.newIndex--}else {if(h<0){e.oldIndex++}}a.notify(g?'filtereditemchange':'itemchange',[e]);a.endUpdate()}},remove:function(d){var a=this,c=a.decodeRemoveItems(arguments,0),b=a.length;a.splice(0,c);return b-a.length},removeAll:function(){var a=this,b=a.length;if(a.generation&&b){a.splice(0,b)}return a},removeAt:function(j,f){var a=this,e=a.length,i=Ext.Number,g=i.clipIndices(e,[j,f===undefined?1:f],i.Clip.COUNT),c=g[0],d=g[1]-c,h=d===1&&a.getAt(c),b;a.splice(c,d);b=a.length-e;return h&&b?h:b},removeByKey:function(b){var a=this.getByKey(b);if(!a||!this.remove(a)){return !1}return a},replace:function(a){var b=this.indexOf(a);if(b===-1){this.add(a)}else {this.insert(b,a)}},splice:function(K,E,L){var b=this,D=b.sorted&&b.getAutoSort(),F=b.map,o=b.items,r=b.length,n=E instanceof Array?b.decodeRemoveItems(E):null,G=!n,J=Ext.Number,I=J.clipIndices(r,[K,G?E:0],J.Clip.COUNT),m=I[0],v=I[1],x=v-m,p=b.decodeItems(arguments,2),h=p?p.length:0,c,A,C,d=m,k=b.indices||(h||n?b.getIndices():null),e=null,i=x?[m]:null,l=null,t=b.getSource(),j,B,z,a,u,g,w,f,s,q,y,H,v;if(t&&!t.updating){if(G){n=[];for(a=0;a1){if(!c.$cloned){p=c=c.slice(0)}b.sortData(c)}}for(a=0;a0;){f=b.getKey(n[a]);if((g=k[f])!==undefined){(i||(i=[])).push(g)}}if(!e&&!i){return b}b.beginUpdate();if(i){j=null;z=[];C={};if(i.length>1){i.sort(Ext.Array.numericSortFn)}for(a=0,q=i.length;aj.at+B.length){z.push(j={at:g,items:B=[],keys:s=[],map:C,next:j,replacement:e});if(e){e.replaced=j}}B.push(C[f]=u);s.push(f);if(g1&&g===m){--x;i[a--]=++m}}if(e){e.at=d}for(w=z.length;w-->0;){j=z[w];a=j.at;q=j.items.length;if(a+q1&&r){b.spliceMerge(c,l)}else {if(D){if(h>1){d=0;b.indices=k=null}else {d=H.findInsertionIndex(e.items[0],o,b.getSortFn())}}if(d===r){v=d;for(a=c.length-1;a>=0;--a){o[v+a]=c[a]}k=b.indices;if(k){for(a=0;a-1){c=e[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(l,i){var a=this,j=i.atItem,d=i.items,h=a.requestedIndex,c,b,e,f,g,k;if(!a.sorted){if(h!==undefined){b=h}else {if(j){b=a.indexOf(j);if(b===-1){b=a.findInsertIndex(d[0])}else {++b}}else {b=0}}}if(a.getAutoFilter()&&a.filtered){for(f=0,k=d.length;fc)){c=a}}return [c,b]},count:function(a){return a.length},extremes:function(k,j,l,i,f){var e=null,d=null,c,b,g,h,a;for(c=j;ch)){h=a;d=b}}return [d,e]},max:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[1]},maxItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[1]},min:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[0]},minItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[0]},sum:function(g,f,h,e,c){for(var a,d=0,b=f;b1){Ext.Array.sort(a,b.prioritySortFn)}},prioritySortFn:function(a,b){var c=a.observerPriority||0,d=b.observerPriority||0;return c-d},applyExtraKeys:function(e,g){var d=this,f=g||{},b,c,a;for(c in e){a=e[c];if(!a.isCollectionKey){b={collection:d};if(Ext.isString(a)){b.property=a}else {b=Ext.apply(b,a)}a=new Ext.util.CollectionKey(b)}else {a.setCollection(d)}f[c]=d[c]=a;a.name=c}return f},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,'Ext.util.Grouper')}return a},decodeItems:function(e,d){var g=this,a=d===undefined?e:e[d],b,f,c;if(!a||!a.$cloned){b=e.length>d+1||!Ext.isIterable(a);if(b){a=Ext.Array.slice(e,d);if(a.length===1&&a[0]===undefined){a.length=0}}f=g.getDecoder();if(f){if(!b){a=a.slice(0);b=!0}for(c=a.length;c-->0;){if((a[c]=f.call(g,a[c]))===!1){a.splice(c,1)}}}if(b){a.$cloned=!0}}return a},getIndices:function(){var a=this,c=a.indices,d=a.items,f=d.length,b,e;if(!c){a.indices=c={};++a.indexRebuilds;for(b=0;b0;if(d||c){b.filtered=c;b.onFilterChange(a)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==!1){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(c,b,d){var a=this.getSorters();a.addSort.apply(a,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify('beforesort',[a.getSorters(!1)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify('sort')},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(c,b,a){if(!b){b=this.items}if(!a){a=this.getSortFn()}return Ext.Array.binarySearch(b,c,a)},applySorters:function(a,b){if(a==null||a&&a.isSorterCollection){return a}if(a){if(!b){b=this.getSorters()}b.splice(0,b.length,a)}return b},createSortFn:function(){var d=this,b=d.getGrouper(),c=d.getSorters(!1),a=c?c.getSortFn():null;if(!b){return a}return function(d,e){var c=b.sort(d,e);if(!c&&a){c=a(d,e)}return c}},updateGrouper:function(c){var a=this,b=a.getGroups(),e=a.getSorters(),d;a.onSorterChange();a.grouped=!!c;if(c){if(a.getTrackGroups()){if(!b){b=new Ext.util.GroupCollection({itemRoot:a.getRootProperty()});b.$groupable=a;a.setGroups(b)}b.setGrouper(c);d=!0}}else {if(b){a.removeObserver(b);b.destroy()}a.setGroups(null)}if(!e.updating){a.onEndUpdateSorters(e)}if(d){b.onCollectionRefresh(a)}},updateSorters:function(b,c){var a=this;if(c){c.un('endupdate','onEndUpdateSorters',a)}if(b){b.on({endupdate:'onEndUpdateSorters',scope:a,priority:a.$endUpdatePriority});b.$sortable=a}a.onSorterChange();a.onEndUpdateSorters(b)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(b){var a=this,d=a.sorted,c=a.grouped&&a.getAutoGroup()||b&&b.length>0;if(d||c){a.sorted=!!c;a.onSortChange(b)}},removeObserver:function(b){var a=this.observers;if(a){Ext.Array.remove(a,b)}},spliceMerge:function(i,q){var f=this,r=f.map,k=i.length,g=0,n=f.items,m=n.length,h=[],c=0,a=[],p=f.getSortFn(),l,j,d,b,o,e;f.items=a;for(e=0;e1){h[c-2].next=h[c-1]}for(;e1){h[c-2].next=h[c-1]}a.push(b);for(j=e+1;j=0){break}a.push(b);l.push(b)}}for(;g0)}e=j.createAssociationStore(i,f,b,h);e.$source=q;if(!b&&(j.autoLoad||a)){n=!0}f[m]=e}if(a){if(n||e.isLoading()){e.on('load',function(h,i,e,g){d=[h,g];c=c||a.scope||f;if(e){Ext.callback(a.success,c,d)}else {Ext.callback(a.failure,c,d)}d.push(e);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)},null,{single:!0})}else {d=[e,null];c=c||a.scope||f;Ext.callback(a.success,c,d);d.push(!0);Ext.callback(a,c,d);Ext.callback(a.callback,c,d)}}if(n&&!e.isLoading()){e.load()}return e},getAssociatedItem:function(b){var a=this.isMany?this.getStoreName():this.getInstanceName();return b[a]||null},onDrop:Ext.emptyFn,getReaderRoot:function(){var a=this;return a.associationKey||(a.associationKey=a.association.schema.getNamer().readerRoot(a.role))},getReader:function(){var b=this,a=b.reader,d=b.cls,c=!b.associationKey,e=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:e,useSimpleAccessors:c,type:b.defaultReaderType});a=b.reader=Ext.createByAlias('reader.'+a.type,a)}return a},getInstanceName:function(){var a=this;return a.instanceName||(a.instanceName=a.association.schema.getNamer().instanceName(a.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName='$old'+this.getInstanceName())},getStoreName:function(){var a=this;return a.storeName||(a.storeName=a.association.schema.getNamer().storeName(a.role))},constructReader:function(h){var b=this,a=b.getReader(),e=b.cls,g=!b.associationKey,f=b.getReaderRoot(),c,d;if(!a){d=e.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(f)}else {a=new h.self({model:e,useSimpleAccessors:g,rootProperty:f})}b.reader=a}return a},read:function(f,e,d,c){var a=this.constructReader(d),b=a.getRoot(e);if(b){return a.readRecords(b,c,this._internalReadOptions)}},getCallbackOptions:function(a,c,b){if(typeof a==='function'){a={callback:a,scope:c||b}}else {if(a){a=Ext.apply({},a);a.scope=c||a.scope||b}}return a},doGetFK:function(d,b,f){var i=this,l=i.cls,j=i.association.getFieldName(),h=i.getInstanceName(),a=d[h],m=b&&b.reload,e=a!==undefined&&!m,k=d.session,c,g;if(!e){if(k){c=d.get(j);if(c||c===0){e=k.peekRecord(l,c,!0)&&!m;a=k.getRecord(l,c,!1)}else {e=!0;d[h]=a=null}}else {if(j){c=d.get(j);if(!c&&c!==0){e=!0;d[h]=a=null}else {if(!a){a=l.createWithId(c)}}}else {e=!0}}}else {if(a){e=!a.isLoading()}}if(e){if(b){g=[a,null];f=f||b.scope||d;Ext.callback(b.success,f,g);g.push(!0);Ext.callback(b,f,g);Ext.callback(b.callback,f,g)}}else {d[h]=a;b=i.getCallbackOptions(b,f,d);a.load(b)}return a},doSetFK:function(a,c,e,l){var f=this,i=f.association.getFieldName(),h=f.getInstanceName(),b=a[h],d=f.inverse,j=d.setterName,m=a.session,k,g;if(c&&c.isEntity){if(b!==c){g=f.getOldInstanceName();a[g]=b;a[h]=c;if(b&&b.isEntity){b[d.getInstanceName()]=undefined}if(i){a.set(i,c.getId())}delete a[g];if(j){c[j](a)}}}else {k=a.changingKey&&!d.isMany||a.set(i,c);if(k&&b&&b.isEntity&&!b.isEqual(b.getId(),c)){a[h]=undefined;if(!d.isMany){b[d.getInstanceName()]=undefined}}}if(e){if(Ext.isFunction(e)){e={callback:e,scope:l||a}}return a.save(e)}}},1,0,0,0,0,0,[Ext.data.schema,'Role'],0);Ext.cmd.derive('Ext.data.schema.Association',Ext.Base,{isOneToOne:!1,isManyToOne:!1,isManyToMany:!1,owner:null,field:null,constructor:function(d){var a=this,c,b;Ext.apply(a,d);a.left=c=new a.Left(a,a.left);a.right=b=new a.Right(a,a.right);c.inverse=b;b.inverse=c},hasField:function(){return !!this.field},getFieldName:function(){var a=this.field;return a?a.name:''}},1,0,0,0,0,0,[Ext.data.schema,'Association'],0);Ext.cmd.derive('Ext.data.schema.OneToOne',Ext.data.schema.Association,{isOneToOne:!0,isToOne:!0,kind:'one-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',onDrop:function(a,c){var b=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(b){b[this.inverse.getInstanceName()]=null}},createGetter:function(){var a=this;return function(){return a.doGet(this)}},createSetter:function(){var a=this;return function(b){return a.doSet(this,b)}},doGet:function(a){var c=this.getInstanceName(),b=a[c],d=a.session;if(!b&&d){}return b||null},doSet:function(a,b){var d=this.getInstanceName(),e=a[d],c=this.inverse.setterName;if(e!==b){a[d]=b;if(c){b[c](a)}}return e},read:function(a,g,f,e){var c=this,d=c.callParent([a,g,f,e]),b;if(d){b=d[0];if(b){b[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=b;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(d,b,c){return a.doSetFK(this,d,b,c)}},onDrop:function(c,f){var b=this,e=b.association.field,a=b.getAssociatedItem(c),d;if(b.inverse.owner){if(f){d=c.get(e.name);if(d||d===0){a=f.getEntry(b.cls,d).record;if(a){a.drop()}}}else {if(a){a.drop()}}}if(e){c.set(e.name,null)}c[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(b,f,c){var a=this,e=b[a.getOldInstanceName()]||a.getAssociatedItem(b),h=c||c===0,d=a.getInstanceName(),g=a.cls;b.changingKey=!0;a.doSetFK(b,c);if(!h){b[d]=null}else {if(f&&g){b[d]=f.peekRecord(g,c)||undefined}}if(a.inverse.owner&&e){a.association.schema.queueKeyCheck(e,a)}b.changingKey=!1},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(a,o,n,m){var f=this,l=f.callParent([a,o,n,m]),b,d,g,c,k,h,j,i,e;if(l){b=l[0];d=f.association.field;if(d){g=d.name}c=a.session;e=a.data;if(b){if(c){k=c.getRefs(b,this.inverse,!0);i=k&&k[a.id]||e[g]===undefined}else {i=!0}if(i){if(d){j=e[g];h=b.id;if(j!==h){e[g]=h;if(c){c.updateReference(a,d,h,j)}}}b[f.inverse.getInstanceName()]=a;a[f.getInstanceName()]=b}delete e[f.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,'OneToOne'],0);Ext.cmd.derive('Ext.data.schema.ManyToOne',Ext.data.schema.Association,{isManyToOne:!0,isToOne:!0,kind:'many-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,onDrop:function(d,f){var b=this,e=b.getAssociatedItem(d),a,g,c,i,h;if(e){a=e.removeAll();if(a&&b.inverse.owner){for(c=0,g=a.length;c0){a=c[h];e=!a.isEqual(l,a.get(i));b=f?null:d;if(e!==f){a.changingKey=!0;a[k](b);a.changingKey=!1}else {a[j]=b}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',onDrop:function(a,c){var b=this.association.field;if(b){a.set(b.name,null)}a[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(c,b){var d=this.association.field,a;a=this.getSessionStore(c,b.get(d.name));if(a&&!a.contains(b)){a.add(b)}},onValueChange:function(b,f,d,l){var c=this,j=c.getInstanceName(),m=c.cls,i,g,a,h,n,e,k;if(!b.changingKey){i=d||d===0;if(!i){b[j]=null}if(f){a=c.getSessionStore(f,l);if(a){a.remove(b)}if(i){a=c.getSessionStore(f,d);if(a&&!a.isLoading()){a.add(b)}if(m){k=f.peekRecord(m,d)}b[j]=k||undefined}}else {g=b.joined;if(g){for(h=0,n=g.length;h=0){a.remove([b])}}else {if(b<0){d=a.getSession().getEntry(this.type,e);c=d&&d.record;if(c){a.add(c)}}}a.matrixUpdate=0}},adoptAssociated:function(e,d){var a=this.getAssociatedItem(e),c,b,f;if(a){a.setSession(d);this.onStoreCreate(a,d,e.getId());c=a.getData().items;for(b=0,f=c.length;b1){a[b]=this.apply('capitalize',a[b])}return a.join('')},getterName:function(a){var b=a.role;if(a&&a.isMany){return b}return 'get'+this.apply('capitalize',b)},inverseFieldRole:function(e,f,c,d){var a=this,b=a.apply(f?'uniRole':'multiRole',e),g=a.apply('pluralize',c),h=a.apply('undotted,pluralize',d);if(g.toLowerCase()!==h.toLowerCase()){b=c+a.apply('capitalize',b)}return b},manyToMany:function(c,e,d){var b=this,a=b.apply('undotted,capitalize,singularize',e)+b.apply('undotted,capitalize,pluralize',d);if(c){a=b.apply('capitalize',c+a)}return a},manyToOne:function(d,b,a,c){return this.apply('capitalize,singularize',a)+this.apply('capitalize',b)},matrixRole:function(a,c){var b=this.apply(a?'multiRole,capitalize':'multiRole',c);return a?a+b:b},oneToOne:function(d,b,a,c){return this.apply('undotted,capitalize,singularize',a)+this.apply('capitalize',b)},setterName:function(a){return 'set'+this.apply('capitalize',a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(b,c){var e=this,h=e.cache,i=h[c]||(h[c]={}),a=i[b],d,g,f;if(!a){if(b.indexOf(',')<0){a=e[b](c)}else {g=(f=b.split(',')).length;a=c;for(d=0;d=Math.max(a,b)},find:function(g,h,d,e,b,c){var a=!e,f=!!(a&&c);return this.getData().findIndex(g,h,d,a,f,!b)},findRecord:function(){var a=this,b=a.find.apply(a,arguments);return b!==-1?a.getAt(b):null},findExact:function(a,c,b){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(a),c)},this,b)},findBy:function(c,a,b){return this.getData().findIndexBy(c,a,b)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,a){var c=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==!1){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(c,a){var b;if(!a){a=this.createFiltersCollection();b=!0}a.add(c);if(b){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==!1){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(c,a){var b;if(!a){a=this.createSortersCollection();b=!0}a.add(c);if(b){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(a,c,b){if(Ext.isString(a)){a={property:a,value:c}}this.suppressNextFilter=!!b;this.getFilters().add(a);this.suppressNextFilter=!1},removeFilter:function(a,d){var b=this,c=b.getFilters();b.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){c.remove(a)}else {c.removeByKey(a)}b.suppressNextFilter=!1},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(!1),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(!1),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=!1},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(!1);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=!1},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(!1);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(b){if(b.getTransform()){return}var e=b.getProperty(),d=this.getModel(),c,a;if(d){c=d.getField(e);a=c?c.getSortType():null}if(a&&a!==Ext.identityFn){b.setTransform(a)}},beginUpdate:function(){if(!this.updating++){this.fireEvent('beginupdate')}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent('endupdate');this.onEndUpdate()}},getState:function(){var c=this,e=[],g=c.getFilters(),f=c.getGrouper(),a,d,b;c.getSorters().each(function(a){e[e.length]=a.getState();d=!0});if(c.statefulFilters&&c.saveStatefulFilters){d=!0;a=[];g.each(function(b){a[a.length]=b.getState()})}if(f){d=!0}if(d){b={};if(e.length){b.sorters=e}if(a){b.filters=a}if(f){b.grouper=f.getState()}}return b},applyState:function(b){var a=this,e=b.sorters,c=b.filters,d=b.grouper;if(e){a.getSorters().replaceAll(e)}if(c){a.saveStatefulFilters=!0;a.getFilters().replaceAll(c)}if(d){a.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.callParent();a.onDestroy()},sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else {a.forceLocalSort()}}else {a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(b,a){if(a){this.fireEvent('beforesort',this,a.getRange())}},onSorterEndUpdate:function(){var a=this,b;b=a.getSorters(!1);if(a.settingGroups||!b){return}b=b.getRange();if(b.length){if(a.getRemoteSort()){a.load({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('sort',a,b)}}else {a.fireEvent('sort',a,b)}},onFilterEndUpdate:function(){var a=this,b=a.suppressNextFilter;if(a.getRemoteFilter()){a.currentPage=1;if(!b){a.load()}}else {if(!b){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}if(a.trackStateChanges){a.saveStatefulFilters=!0}a.fireEvent('filterchange',a,a.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else {this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(b,d){var a=this,c=a.getSorters(!1),e=b||c&&c.length;if(b&&typeof b==='string'){b={property:b,direction:d||a.getGroupDir()}}a.settingGroups=!0;a.getData().setGrouper(b);delete a.settingGroups;if(e){if(a.getRemoteSort()){a.load({scope:a,callback:a.fireGroupChange})}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireGroupChange()}}else {a.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){this.fireEvent('groupchange',this,this.getGrouper())}},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b='';if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?'on':'un']('endupdate',this.onFilterEndUpdate,this)}},onRemoteSortSet:function(c,b){var a=this;if(c){c[b?'on':'un']('endupdate',a.onSorterEndUpdate,a);a.getData()[b?'un':'on']('beforesort',a.onBeforeCollectionSort,a)}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data,'AbstractStore'],0);Ext.cmd.derive('Ext.data.Error',Ext.Base,{isError:!0,$configPrefixed:!1,config:{field:null,message:''},constructor:function(a){this.initConfig(a);this.msg=this.message}},1,0,0,0,0,0,[Ext.data,'Error'],0);Ext.cmd.derive('Ext.data.ErrorCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.data.Errors',init:function(d){var b=this,h=d.fields,k=d.data,g,a,l,c,i,f,j,e;for(c=0,i=h.length;c]+>/gi,asText:function(a){return a!=null?String(a).replace(this.stripTagsRe,''):'\x00'},asUCText:function(a){return a!=null?String(a).toUpperCase().replace(this.stripTagsRe,''):'\x00'},asUCString:function(a){return a!=null?String(a).toUpperCase():'\x00'},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(b){var a=parseFloat(String(b).replace(this.stripCommasRe,''));return isNaN(a)?0:a},asInt:function(b){var a=parseInt(String(b).replace(this.stripCommasRe,''),10);return isNaN(a)?0:a}},0,0,0,0,0,0,[Ext.data,'SortTypes'],0);Ext.cmd.derive('Ext.data.validator.Validator',Ext.Base,{isValidator:!0,type:'base',statics:{all:{},register:function(a,c){var b=this.all;b[a.toUpperCase()]=b[a.toLowerCase()]=b[a]=c.prototype}},onClassExtended:function(b,a){if(a.type){Ext.data.validator.Validator.register(a.type,b)}},constructor:function(a){if(typeof a==='function'){this.fnOnly=!0;this.validate=a}else {this.initConfig(a)}},validate:function(){return !0},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},1,0,0,0,['data.validator.base'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.validator,'Validator'],function(){this.register(this.prototype.type,this)});Ext.cmd.derive('Ext.data.field.Field',Ext.Base,{alternateClassName:'Ext.data.Field',aliasPrefix:'data.field.',type:'auto',factoryConfig:{defaultProperty:'name'},isDataField:!0,isField:!0,allowBlank:!0,allowNull:!1,critical:!1,defaultInvalidMessage:'This field is invalid',defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,unique:!1,rank:null,stripRe:/[\$,%]/g,calculated:!1,evil:!1,identifier:!1,onClassExtended:function(f,d){var b=d.sortType,c=f.prototype,e=c.validators,a=d.validators;if(b&&Ext.isString(b)){c.sortType=Ext.data.SortTypes[b]}if(a){if(!Ext.isArray(a)){a=[a]}delete d.validators;if(e){a=e.concat(a)}c.validators=a}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var a=this,n=a.calculateRe,c,l,f,h,b,j,e,m,k,i,g;if(d){if(Ext.isString(d)){a.name=d}else {g=d.validators;if(g){delete d.validators;a.instanceValidators=g}Ext.apply(a,d)}}if(!a.allowNull){a.allowNull=!!a.reference}c=a.calculate;b=a.depends;if(c){a.convert=a.doCalculate;if(!b){if(!(b=c.$depends)){j={};k=c.toString();c.$depends=b=[];e=a.argumentNamesRe.exec(k);m=e?e[1]:'data';while(e=n.exec(k)){if(m===e[1]&&!j[i=e[2]]){j[i]=1;b.push(i)}}}a.depends=b}}f=a.defaultValue;if(a.convert){a.calculated=l=a.convert.length>1;a.evil=l&&!b}if(a.persist===null){a.persist=!c}h=a.sortType;if(!a.sortType){a.sortType=Ext.data.SortTypes.none}else {if(Ext.isString(h)){a.sortType=Ext.data.SortTypes[h]}}if(b&&typeof b==='string'){a.depends=[b]}a.cloneDefaultValue=f!==undefined&&(Ext.isDate(f)||Ext.isArray(f)||Ext.isObject(f))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},compileValidators:function(){var a=this;a._validators=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var d=a.length,e=this._validators,c,b;for(c=0;c0){(u=p[v]).dirty=!0;d=d?Math.min(d,u.rank):u.rank}if(!b||b.persist){if(f&&f.hasOwnProperty(c)){if(!y||o.isEqual(f[c],h)){delete f[c];a.dirty=-1}}else {if(y){if(!f){a.modified=f={}}a.dirty=!0;f[c]=j}}}if(c===a.idField.name){D=!0;z=j;s=h}}if(!d){break}b=l[d-1];b.dirty=!1;if(n){delete g[i]}else {g=a._singleProp;n=!0}i=b.name;g[i]=t[i];C=!0;for(;d0;){d=(b=g[i]).name;if(!(d in f)){c=h[d];if(j&&b.serialize){c=b.serialize(c,a)}f[d]=c}}}if(n){a.getAssociatedData(f,e)}return f},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(a){a=Ext.apply({},a);var b=this,d=a.scope||b,g=b.getProxy(),f=a.callback,c=b.loadOperation,h=b.getId(),e;if(c){e=c.extraCalls;if(!e){e=c.extraCalls=[]}e.push(a);return c}a.id=h;a.recordCreator=function(e,f,c){var d=b.session;if(c){c.recordCreator=d?d.recordCreator:null}b.set(e,b._commitOptions);return b};a.internalCallback=function(e){var h=e.wasSuccessful()&&e.getRecords().length>0,l=b.loadOperation,i=l.extraCalls,c=[b,e],j=[b,e,h],g,k;b.loadOperation=null;if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(f,d,j);if(i){for(g=0,k=i.length;g0;){b=i[a];if(b in e){delete e[b];delete j[b]}}for(a=0,h=f.length;a=a.getTotal()){a.setConfig({success:!1,records:[],total:0})}else {a.setRecords(Ext.Array.slice(d,e,e+i))}}b.setCompleted()}},clear:Ext.emptyFn},0,0,0,0,['proxy.memory'],0,[Ext.data.proxy,'Memory',Ext.data,'MemoryProxy'],0);Ext.cmd.derive('Ext.data.ProxyStore',Ext.data.AbstractStore,{config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:!1,batchUpdateMode:'operation',sortOnLoad:!0,trackRemoved:!0,asynchronousLoad:undefined},onClassExtended:function(e,d,b){var c=d.model,a;if(typeof c==='string'){a=b.onBeforeCreated;b.onBeforeCreated=function(){var g=this,f=arguments;Ext.require(c,function(){a.apply(g,f)})}}},implicitModel:'Ext.data.Model',autoSyncSuspended:0,constructor:function(b){var a=this;a.removed=[];Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(a.getAsynchronousLoad()===!1){a.flushLoad()}},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else {this.getFields();a=this.getModel()||this.createImplicitModel()}return a},applyProxy:function(a){var b=this.getModel();if(a!==null){if(a){if(a.isProxy){a.setModel(b)}else {if(Ext.isString(a)){a={type:a,model:b}}else {if(!a.model){a=Ext.apply({model:b},a)}}a=Ext.createByAlias('proxy.'+a.type,a);a.autoCreated=!0}}else {if(b){a=b.getProxy()}}if(!a){a=Ext.createByAlias('proxy.memory');a.autoCreated=!0}}return a},applyState:function(b){var a=this;Ext.data.AbstractStore.prototype.applyState.call(this,b);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(b,a){this.fireEvent('metachange',this,a)},create:function(f,a){var b=this,e=b.getModel(),d=new e(f),c;a=Ext.apply({},a);if(!a.records){a.records=[d]}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('create',a);return c.execute()},read:function(){return this.load.apply(this,arguments)},update:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getUpdatedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('update',a);return c.execute()},onProxyWrite:function(a){var b=this,c=a.wasSuccessful(),d=a.getRecords();switch(a.getAction()){case 'create':b.onCreateRecords(d,a,c);break;case 'update':b.onUpdateRecords(d,a,c);break;case 'destroy':b.onDestroyRecords(d,a,c);break;}if(c){b.fireEvent('write',b,a);b.fireEvent('datachanged',b)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(c,b,a){if(a){this.cleanRemoved()}},erase:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getRemovedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('destroy',a);return c.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(e,f){var a=this,c=e.operations,d=c.length,b;if(a.batchUpdateMode!=='operation'){a.suspendEvents();for(b=0;b0){b.create=f;c=!0}if(g.length>0){b.update=g;c=!0}if(e.length>0){b.destroy=e;c=!0}if(c&&a.fireEvent('beforesync',b)!==!1){a.isSyncing=!0;d=d||{};a.proxy.batch(Ext.apply(d,{operations:b,listeners:a.getBatchListeners()}))}return a},getBatchListeners:function(){var a=this,b={scope:a,exception:a.onBatchException,complete:a.onBatchComplete};if(a.batchUpdateMode==='operation'){b.operationcomplete=a.onBatchOperationComplete}return b},save:function(){return this.sync.apply(this,arguments)},load:function(b){var a=this;if(typeof b==='function'){b={callback:b}}else {b=b?Ext.Object.chain(b):{}}a.pendingLoadOptions=b;if(a.getAsynchronousLoad()){if(!a.loadTimer){a.loadTimer=Ext.asap(a.flushLoad,a)}}else {a.flushLoad()}return a},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b;a.clearLoadTask();if(!c){return}a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}b=Ext.apply({internalScope:a,internalCallback:a.onProxyLoad,scope:a},c);a.lastOptions=b;b=a.createOperation('read',b);if(a.fireEvent('beforeload',a,b)!==!1){a.onBeforeLoad(b);a.loading=!0;b.execute()}},reload:function(a){var b=Ext.apply({},a,this.lastOptions);return this.load(b)},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,onDestroy:function(){var a=this,b=a.getProxy();a.clearLoadTask();a.getData().destroy();a.data=null;a.setProxy(null);if(b.autoCreated){b.destroy()}a.setModel(null)},hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){Ext.asapCancel(this.loadTimer);this.pendingLoadOptions=this.loadTimer=null},cleanRemoved:function(){var a=this.getRawRemovedRecords(),c,b;if(a){for(b=0,c=a.length;b-1},each:function(f,e){var c=this.data.items,d=c.length,b,a;for(a=0;a0){if(u){f=0;if(d.length>1&&h){f=1}b[i]=d[f].getProperty();b[t]=d[f].getDirection()}else {b[i]=a.encodeSorters(d)}}if(l&&j&&j.length>0){b[l]=a.encodeFilters(j)}return b},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format('{0}={1}',b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(a){var b;if(a){b=a.getUrl()||this.getApi()[a.getAction()]}return b?b:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a){},afterRequest:Ext.emptyFn,destroy:function(){Ext.data.proxy.Proxy.prototype.destroy.call(this);Ext.destroy(this.getReader(),this.getWriter());this.reader=this.writer=null}},0,0,0,0,['proxy.server'],0,[Ext.data.proxy,'Server',Ext.data,'ServerProxy'],0);Ext.cmd.derive('Ext.data.proxy.Ajax',Ext.data.proxy.Server,{alternateClassName:['Ext.data.HttpProxy','Ext.data.AjaxProxy'],isAjaxProxy:!0,defaultActionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'},config:{binary:!1,headers:undefined,paramsAsJson:!1,withCredentials:!1,useDefaultXhrHeader:!0,username:null,password:null,actionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'}},doRequest:function(e){var a=this,g=a.getWriter(),b=a.buildRequest(e),f=a.getMethod(b),c,d;if(g&&e.allowWrite()){b=g.write(b)}b.setConfig({binary:a.getBinary(),headers:a.getHeaders(),timeout:a.getTimeout(),scope:a,callback:a.createRequestCallback(b,e),method:f,useDefaultXhrHeader:a.getUseDefaultXhrHeader(),disableCaching:!1});if(f.toUpperCase()!=='GET'&&a.getParamsAsJson()){d=b.getParams();if(d){c=b.getJsonData();if(c){c=Ext.Object.merge({},c,d)}else {c=d}b.setJsonData(c);b.setParams(undefined)}}if(a.getWithCredentials()){b.setWithCredentials(!0);b.setUsername(a.getUsername());b.setPassword(a.getPassword())}return a.sendRequest(b)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(d){var a=this.getActionMethods(),b=d.getAction(),c;if(a){c=a[b]}return c||this.defaultActionMethods[b]},createRequestCallback:function(b,c){var a=this;return function(f,e,d){if(b===a.lastRequest){a.lastRequest=null}a.processResponse(e,c,b,d)}},destroy:function(){this.lastRequest=null;Ext.data.proxy.Server.prototype.destroy.call(this)}},0,0,0,0,['proxy.ajax'],0,[Ext.data.proxy,'Ajax',Ext.data,'HttpProxy',Ext.data,'AjaxProxy'],0);Ext.cmd.derive('Ext.data.reader.Json',Ext.data.reader.Reader,{alternateClassName:'Ext.data.JsonReader',config:{record:null,metaProperty:'metaData',useSimpleAccessors:!1,preserveRawData:!1},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},readRecords:function(a,e,d){var b=this,c;if(b.getMeta){c=b.getMeta(a);if(c){b.onMetaChange(c)}}else {if(a.metaData){b.onMetaChange(a.metaData)}}return Ext.data.reader.Reader.prototype.readRecords.call(this,a,e,d)},getResponseData:function(b){var a;try{return Ext.decode(b.responseText)}catch(c){a=this.createReadError(c.message);Ext.Logger.warn('Unable to parse the JSON returned by the server');this.fireEvent('exception',this,b,a);return a}},buildExtractors:function(){var a=this,b,c;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){b=a.getMetaProperty();c=a.getRootProperty();if(c){a.getRoot=a.getAccessor(c)}else {a.getRoot=Ext.identityFn}if(b){a.getMeta=a.getAccessor(b)}}},extractData:function(a,f){var e=this.getRecord(),d=[],c,b;if(e){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b1||e&&!g){b+=d}else {if(k){i=!1;if(l){++e}else {if(g){--e;i=!0}}if(b){if(i){b='['+b+']'}else {b='.'+b}j+=b;m.push(''+j);b=''}}}}f=m.join(' && ');f=Ext.functionFactory('raw','return '+f)}return f}}(),createFieldAccessor:function(b){var e=this,a=b.mapping,c=a||a===0,d=c?a:b.name;if(c){if(typeof d==='function'){return function(a){return b.mapping(a,e)}}else {return e.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?'simple':'';return this.$className+a+b},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot}}},0,0,0,0,['reader.json'],0,[Ext.data.reader,'Json',Ext.data,'JsonReader'],0);Ext.cmd.derive('Ext.data.writer.Json',Ext.data.writer.Writer,{alternateClassName:'Ext.data.JsonWriter',config:{rootProperty:undefined,encode:!1,allowSingle:!0,expandData:!1},getExpandedData:function(f){var h=f.length,g=0,a,c,b,d,e,i=function(c,b){var a={};a[c]=b;return a};for(;g0){e=a[c];for(;d>0;d--){e=i(b[d],e)}a[b[0]]=a[b[0]]||{};Ext.Object.merge(a[b[0]],e);delete a[c]}}}}return f},writeRecords:function(b,a){var c=this,e=c.getRootProperty(),d,g,f;if(c.getExpandData()){a=c.getExpandedData(a)}if(c.getAllowSingle()&&a.length===1){a=a[0];g=!0}f=this.getTransform();if(f){a=f(a,b)}if(c.getEncode()){if(e){b.setParam(e,Ext.encode(a))}else {}}else {if(g||a&&a.length){d=b.getJsonData()||{};if(e){d[e]=a}else {d=a}b.setJsonData(d)}}return b}},0,0,0,0,['writer.json'],0,[Ext.data.writer,'Json',Ext.data,'JsonWriter'],0);Ext.cmd.derive('Ext.util.Group',Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001},0,0,0,0,0,0,[Ext.util,'Group'],0);Ext.cmd.derive('Ext.util.SorterCollection',Ext.util.Collection,{isSorterCollection:!0,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(b){var a=this;a.sortFn=Ext.util.Sorter.createComparator(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeSorter)},addSort:function(b,c,d){var a=this,f,j,k,g,h,i,e;if(!b){a.beginUpdate();a.endUpdate()}else {g=a.getOptions();if(b instanceof Array){e=b;d=c;c=null}else {if(Ext.isString(b)){if(!(i=a.get(b))){e=[{property:b,direction:c||g.getDefaultSortDirection()}]}else {e=[i]}}else {if(Ext.isFunction(b)){e=[{sorterFn:b,direction:c||g.getDefaultSortDirection()}]}else {e=[b];d=c;c=null}}}d=a._sortModes[d||'replace'];h=a.getAt(0);f=a.length;j=d.append?f:0;a.beginUpdate();a.splice(j,d.replace?f:0,e);if(d.multi){f=a.length;k=g.getMultiSortLimit();if(f>k){a.removeAt(k,f)}}if(i&&c){i.setDirection(c)}else {if(j===0&&h&&h===a.getAt(0)){h.toggle()}}a.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(d){var c=this.items,e=c.length,a,b;for(a=0;ad+1||!Ext.isIterable(b)){b=Ext.Array.slice(e,d)}var j=k.items,l=b.length,c=[],f,g,i,a,h;for(f=0;f0;){g=j[i];if(g.getSorterFn()===a){c.push(g)}}}}}}b=c;b.$cloned=!0}return b},getOptions:function(){return this.$sortable||this}},1,0,0,0,0,0,[Ext.util,'SorterCollection'],0);Ext.cmd.derive('Ext.util.FilterCollection',Ext.util.Collection,{isFilterCollection:!0,$filterable:null,filterFn:null,constructor:function(b){var a=this;a.filterFn=Ext.util.Filter.createFilterFn(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},decodeFilter:function(b){var d=this.getOptions(),c=d.getRootProperty(),a;if(b.isFilter){if(!b.getRoot()){b.setRoot(c)}}else {a={root:c};if(Ext.isFunction(b)){a.filterFn=b}else {a=Ext.apply(a,b);if(a.fn){a.filterFn=a.fn;delete a.fn}if(Ext.util.Filter.isInvalid(a)){return !1}}b=new Ext.util.Filter(a)}return b},decodeRemoveItems:function(f,e){var p=this,b=e===undefined?f:f[e];if(!b.$cloned){if(f.length>e+1||!Ext.isIterable(b)){b=Ext.Array.slice(f,e)}var k=p.items,o=b.length,h=[],a,g,l,n,m,c,d,j,i;for(g=0;g0;){c=k[j];d=!1;if(m){d=c.getProperty()===a}else {if(l){d=c.getFilterFn()===a}else {if(n){d=c.getProperty()===a.property&&c.getValue()===a.value}}}if(d){h.push(c)}}}}b=h;b.$cloned=!0}return b},getOptions:function(){return this.$filterable||this}},1,0,0,0,0,0,[Ext.util,'FilterCollection'],0);Ext.cmd.derive('Ext.util.GroupCollection',Ext.util.Collection,{isGroupCollection:!0,config:{grouper:null,itemRoot:null},observerPriority:-100,onCollectionAdd:function(b,a){this.addItemsToGroups(b,a.items)},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){var c=a.item;if(!a.indexChanged){this.syncItemGrouping(b,c,b.getKey(c),a.oldKey,a.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(a){this.removeAll();this.addItemsToGroups(a,a.items)},onCollectionRemove:function(k,j){var d=this,g=d.changeDetails,b,h,a,e,i,c,f;if(g){f=g.item;a=d.findGroupForItem(f);b=[];if(a){b.push({group:a,items:[f]})}}else {b=d.groupItems(k,j.items,!1)}for(e=0,i=b.length;e0&&i.getSorters().getCount()===0){k=i.indexOf(a.items[0]);if(o-1){b=[c];d=1}else {d=0}}else {b=[];for(g=0,d=c.length;g=0;a--){d=c[a];d.reject();if(!g){b.insert(d.removedFrom||0,d)}}if(g){h.setAutoSort(i);b.add(c)}c.length=0}b.endUpdate();Ext.resumeLayouts(!0)},onDestroy:function(){var a=this,c=a.loadTask,d=a.getData(),b=d.getSource();a.clearData();Ext.data.ProxyStore.prototype.onDestroy.call(this);a.setSession(null);a.observers=null;if(c){c.cancel();a.loadTask=null}if(b){b.destroy()}},privates:{fetch:function(a){a=Ext.apply({},a);this.setLoadOptions(a);var b=this.createOperation('read',a);b.execute()},onBeforeLoad:function(a){this.callObservers('BeforeLoad',[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,a,b)},onRemoteSortSet:function(b,a){var c=this.getData();if(b){c.setSorters(a?null:b)}c.setAutoGroup(!a);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,a)},isMoving:function(a,f){var c=this.moveMap,b=0,e,d;if(c){if(a){if(Ext.isArray(a)){for(d=0,e=a.length;d-1}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Store'],0);Ext.cmd.derive('Ext.app.route.Queue',Ext.Base,{queue:null,token:null,constructor:function(a){Ext.apply(this,a);this.queue=new Ext.util.MixedCollection()},queueAction:function(a,b){this.queue.add({route:a,args:b})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var c=this.queue,a=c.removeAt(0),b;if(a){b=a&&a.route;b.execute(this.token,a.args,this.onActionExecute,this)}},onActionExecute:function(a){if(a){this.clearQueue()}else {this.runQueue()}}},1,0,0,0,0,0,[Ext.app.route,'Queue'],0);Ext.cmd.derive('Ext.app.route.Route',Ext.Base,{action:null,conditions:null,controller:null,allowInactive:!1,url:null,before:null,caseInsensitive:!1,matcherRegex:null,paramMatchingRegex:null,paramsInMatchString:null,constructor:function(c){var a=this,b;Ext.apply(a,c,{conditions:{}});b=a.url;a.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);a.paramsInMatchString=b.match(a.paramMatchingRegex)||[];a.matcherRegex=a.createMatcherRegex(b)},recognize:function(b){var a=this,d=a.controller,e,c;if((a.allowInactive||d.isActive())&&a.recognizes(b)){e=a.matchesFor(b);c=b.match(a.matcherRegex);c.shift();return Ext.applyIf(e,{controller:d,action:a.action,historyUrl:b,args:c})}return !1},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(h,d,f,g){var e=d.args||[],a=this.before,c=this.controller,b=this.createCallback(d,f,g);if(a){e.push(b);if(Ext.isString(a)){a=this.before=c[a]}if(a){a.apply(c,e)}}else {b.resume()}},matchesFor:function(f){var b={},d=this.paramsInMatchString,c=f.match(this.matcherRegex),a=0,e=d.length;c.shift();for(;a0){c=a.substring(0,d);b=a.substring(d+1)+'.'+c}else {if(a.indexOf('.')>0&&(Ext.ClassManager.isCreated(a)||this.hasRegisteredPrefix(a))){b=a}else {if(f){b=f+'.'+g+'.'+(e?e+'.'+a:a);c=a}else {b=a}}}return {absoluteName:b,shortName:c}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:!0,moduleClassName:null},onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,i){var g=Ext.app.Controller,h=[],e,f;f=j.prototype;e=g.resolveNamespace(j,i);if(e){f.$namespace=e}g.processDependencies(f,h,e,'model',i.models);g.processDependencies(f,h,e,'view',i.views);g.processDependencies(f,h,e,'store',i.stores);g.processDependencies(f,h,e,'controller',i.controllers);Ext.require(h,Ext.Function.pass(b,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.apply(this,arguments)},normalizeRefs:function(a){var c=this,b=[];if(a){if(Ext.isObject(a)){Ext.Object.each(a,function(d,c){if(Ext.isString(c)){c={selector:c}}c.ref=d;b.push(c)})}else {if(Ext.isArray(a)){b=Ext.Array.merge(b,a)}}}a=c.refs;if(a){c.refs=null;a=c.normalizeRefs(a);if(a){b=Ext.Array.merge(b,a)}}return b},getRefMap:function(){var e=this,a=e._refMap,b,d,f,c;if(!a){b=e.getRefs();a=e._refMap={};if(b){for(c=0,f=b.length;c0){d=c[b];a.map[a.getKey(d)]=b}++a.generation}}},1,0,0,0,0,0,[Ext.util,'Bag'],0);Ext.cmd.derive('Ext.util.Scheduler',Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:!1,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var a=this,b=a.items;if(b===a.firing){a.items=b=b.clone()}c.id=c.id||++a.nextId;c.scheduler=a;b.add(c);if(!a.sortMap){a.orderedItems=null}},remove:function(c){var a=this,b=a.items;if(a.destroyed){return}if(b===a.firing){a.items=b=b.clone()}if(c.scheduled){a.unscheduleItem(c);c.scheduled=!1}b.remove(c);a.orderedItems=null},sort:function(){var a=this,b=a.items,f={},e=a.getPreSort(),c,d;a.orderedItems=[];a.sortMap=f;if(e){b.sort(e)}b=b.items;for(c=0;c0;){c[d].stub=b}}return b},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return !0}}return !1},onSchedule:function(){for(var c,e,b,a,d=this.parent;d;d=d.parent){a=d.bindings;if(a){for(c=0,e=a.length;c '+a.binding.getFullName()+')')},getDataObject:function(){var a=this.binding;return a&&a.getDataObject()},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isLoading:function(){var a=this.binding;return a?a.isLoading():!1},link:function(c,b){var a=this,d=a.binding;if(d){d.destroy()}b=a.target=b||a.owner;a.linkDescriptor=c;a.binding=b.bind(c,a.onChange,a);a.binding.deep=!0},onChange:function(){this.invalidate(!0)},react:function(){var a=this,b=a.owner.linkData;b[a.name]=a.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var c=this,b=Ext.app.bind.Stub.prototype.collect.call(this),a=c.binding?1:0;return b+a},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}},0,0,0,0,0,0,[Ext.app.bind,'LinkStub'],0);Ext.cmd.derive('Ext.app.bind.RootStub',Ext.app.bind.AbstractStub,{isRootStub:!0,depth:0,createRootChild:function(a,j){var e=this,d=e.owner,i=d.getData(),g=e.children,c=g&&g[a],f=c?null:e,h,b;if(j||i.hasOwnProperty(a)||!(h=d.getParent())){b=new Ext.app.bind.Stub(d,a,f)}else {b=new Ext.app.bind.LinkStub(d,a,c?null:f);b.link('{'+a+'}',h)}if(c){c.graft(b)}return b},createStubChild:function(a){return this.createRootChild(a,!0)},descend:function(a,g){var f=this,d=f.children,b=g||0,e=a[b++],c=d&&d[e]||f.createRootChild(e);if(b0;){if(a[b].isLoading()){return !0}}return !1},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var b=this.bindings,d=b.length,a,c;for(a=0;a-1}}}}return b}},1,0,0,0,0,0,[Ext.app.domain,'Controller'],0);Ext.cmd.derive('Ext.data.PageMap',Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:''},clear:function(b){var a=this;a.pageMapGeneration=(a.pageMapGeneration||0)+1;a.indexMap={};Ext.util.LruCache.prototype.clear.call(this,b)},forEach:function(k,f){var d=this,b=Ext.Object.getKeys(d.map),h=b.length,j=d.getPageSize(),a,c,e,g,i;for(a=0;ad},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(l,f){f--;if(!this.hasRange(l,f)){Ext.raise('PageMap asked for range which it does not have')}var c=this,k=Ext.Array,e=c.getPageSize(),g=c.getPageFromRecordIndex(l),h=c.getPageFromRecordIndex(f),m=(g-1)*e,n=h*e-1,a=g,j=[],d,i,b;for(;a<=h;a++){if(a===g){d=l-m;b=d>0}else {d=0;b=!1}if(a===h){i=e-(n-f);b=b||i=g){b=g-1;c=Math.max(b-h,0)}if(a.rangeCached(c,Math.min(b,a.totalCount))){a.loading=!1;f.un('pageadd',e);l=f.getRange(c,b+1);a.fireEvent('load',a,l,!0);a.fireEvent('refresh',a)}};h=Math.ceil((a.getLeadingBufferZone()+a.getTrailingBufferZone())/2);if(a.lastRequestStart&&a.preserveScrollOnReload){c=a.lastRequestStart;b=a.lastRequestEnd;i=a.getTotalCount()}else {c=d.start||0;b=c+(d.count||a.getPageSize())-1}f.clear(!0);delete a.totalCount;c=Math.max(c-h,0);b=Math.min(b+h,i);j=a.getPageFromRecordIndex(c);k=a.getPageFromRecordIndex(b);a.loading=!0;d.waitForReload=e;f.on('pageadd',e);for(g=j;g<=k;g++){a.prefetchPage(g,d)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},clearData:function(c){var b=this,a=b.getData();if(a){a.clear()}},getCount:function(){return this.totalCount||0},getRange:function(c,b,f){var a=this,k=a.totalCount-1,m=a.lastRequestStart,l=[],h=a.getData(),g,d,e,i,j;f=Ext.apply({prefetchStart:c,prefetchEnd:b},f);b=b>=a.totalCount?k:b;d=c===0?0:c-1;e=b===k?b:b+1;a.lastRequestStart=c;a.lastRequestEnd=b;if(a.rangeCached(d,e)){a.onRangeAvailable(f);l=h.getRange(c,b+1)}else {a.fireEvent('cachemiss',a,c,b);i=a.getPageFromRecordIndex(d);j=a.getPageFromRecordIndex(e);g=function(l,k,m){if(k>=i&&k<=j&&a.rangeCached(d,e)){a.fireEvent('cachefilled',a,c,b);h.un('pageadd',g);a.onRangeAvailable(f)}};h.on('pageadd',g);a.prefetchRange(c,b)}a.primeCache(c,b,c-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var a=this,c;if(b&&typeof b==='string'){c=a.grouper;if(!c){a.grouper=new Ext.util.Grouper({property:b,direction:d||'ASC',root:'data'})}else {if(d===undefined){c.toggle()}else {c.setDirection(d)}}}else {a.grouper=b?a.getSorters().decodeSorter(b,'Ext.util.Grouper'):null}a.getData().clear();a.loadPage(1,{callback:function(){a.fireEvent('groupchange',a,a.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(c){var a=this,b=a.getPurgePageCount();return b?Math.max(a.getData().getMaxSize()||0,Math.ceil((c+a.getTrailingBufferZone()+a.getLeadingBufferZone())/a.getPageSize())*2+b):0},loadToPrefetch:function(b){var a=this,f=b,h,d,i,e=b.start,k=b.start+b.limit-1,m=a.getViewSize()||b.limit,c=Math.min(k,b.start+m-1),p=a.getPageFromRecordIndex(Math.max(e-a.getTrailingBufferZone(),0)),q=a.getPageFromRecordIndex(k+a.getLeadingBufferZone()),g=a.getData(),j=function(){d=d||[];if(b.loadCallback){b.loadCallback.call(b.scope||a,d,o,!0)}if(b.callback){b.callback.call(b.scope||a,d,e||0,k||0,b)}},n=function(){a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('load',a,d,!0)},l=function(){if(a.rangeCached(e,c)){a.loading=!1;d=g.getRange(e,c+1);g.un('pageadd',l);if(a.hasListeners.guaranteedrange){a.guaranteeRange(e,c,b.callback,b.scope)}j();n()}},o;g.setMaxSize(a.calculatePageCacheSize(m));if(a.fireEvent('beforeload',a,b)!==!1){delete a.totalCount;a.loading=!0;if(b.callback){f=Ext.apply({},b);delete f.callback}a.on('prefetch',function(m,e,d,k){o=k;if(d){if(i=a.getTotalCount()){g.on('pageadd',l);c=Math.min(c,i-1);q=a.getPageFromRecordIndex(Math.min(c+a.getLeadingBufferZone(),i-1));for(h=p+1;h<=q;++h){a.prefetchPage(h,f)}}else {j();n()}}else {a.loading=!1;j();a.fireEvent('load',a,e,!1)}},null,{single:!0});a.prefetchPage(p,f)}},prefetch:function(b){var a=this,c=a.getPageSize(),d=a.getData(),e,f;if(c){if(a.lastPageSize&&c!=a.lastPageSize){Ext.raise('pageSize cannot be dynamically altered')}if(!d.getPageSize()){d.setPageSize(c)}}else {a.pageSize=d.setPageSize(c=b.limit)}a.lastPageSize=c;if(!b.page){b.page=a.getPageFromRecordIndex(b.start);b.start=(b.page-1)*c;b.limit=Math.ceil(b.limit/c)*c}f=a.pageRequests[b.page];if(!f||f.getOperation().pageMapGeneration!==d.pageMapGeneration){b=Ext.apply({action:'read',filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper(),internalCallback:a.onProxyPrefetch,internalScope:a},b);e=a.createOperation('read',b);e.pageMapGeneration=d.pageMapGeneration;if(a.fireEvent('beforeprefetch',a,e)!==!1){a.pageRequests[b.page]=e.execute();if(a.getProxy().isSynchronous){delete a.pageRequests[b.page]}}}return a},onPageMapClear:function(){var a=this,e=a.wasLoading,d=a.pageRequests,b=a.getData(),c;b.clearListeners();b.on('clear',a.onPageMapClear,a);a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.loading=!0;a.totalCount=0;for(c in d){if(d.hasOwnProperty(c)){d[c].getOperation().abort()}}a.fireEvent('clear',a);a.loading=e},prefetchPage:function(d,e){var a=this,b=a.getPageSize(),f=(d-1)*b,c=a.totalCount;if(c!==undefined&&a.data.getCount()===c){return}a.prefetch(Ext.applyIf({page:d,start:f,limit:b},e))},onProxyPrefetch:function(b){if(this.destroyed){return}var a=this,g=b.getResultSet(),e=b.getRecords(),d=b.wasSuccessful(),i=b.getPage(),c=b.waitForReload,k=a.totalCount,h=a.pageRequests,j,f;if(b.pageMapGeneration===a.getData().pageMapGeneration){if(g){a.totalCount=g.getTotal();if(a.totalCount!==k){a.fireEvent('totalcountchange',a.totalCount)}}if(i!==undefined){delete a.pageRequests[i]}a.loading=!1;a.fireEvent('prefetch',a,e,d,b);if(d){if(a.totalCount===0){if(c){for(j in h){f=h[j].getOperation();if(f.waitForReload===c){delete f.waitForReload}}a.getData().un('pageadd',c);a.fireEvent('load',a,[],!0);a.fireEvent('refresh',a)}}else {a.cachePage(e,b.getPage())}}Ext.callback(b.getCallback(),b.getScope()||a,[e,b,d])}},cachePage:function(b,d){var a=this,e=b.length,c;if(!Ext.isDefined(a.totalCount)){a.totalCount=b.length;a.fireEvent('totalcountchange',a.totalCount)}for(c=0;cf-1?f-1:a.prefetchEnd,d;b=Math.max(0,b);d=c.getData().getRange(e,b+1);if(a.fireEvent!==!1){c.fireEvent('guaranteedrange',d,e,b,a)}if(a.callback){a.callback.call(a.scope||c,d,e,b,a)}},guaranteeRange:function(d,e,b,c,a){a=Ext.apply({callback:b,scope:c},a);this.getRange(d,e+1,a)},prefetchRange:function(c,d){var a=this,e,f,b,g=a.getData();if(!a.rangeCached(c,d)){e=a.getPageFromRecordIndex(c);f=a.getPageFromRecordIndex(d);g.setMaxSize(a.calculatePageCacheSize(d-c+1));for(b=e;b<=f;b++){if(!a.pageCached(b)){a.prefetchPage(b)}}}},primeCache:function(a,b,g){var c=this,f=c.getLeadingBufferZone(),e=c.getTrailingBufferZone(),h=c.getPageSize(),d=c.totalCount;if(g===-1){a=Math.max(a-f,0);b=Math.min(b+e,d-1)}else {if(g===1){a=Math.max(Math.min(a-e,d-h),0);b=Math.min(b+f,d-1)}else {a=Math.min(Math.max(Math.floor(a-(f+e)/2),0),d-c.pageSize);b=Math.min(Math.max(Math.ceil(b+(f+e)/2),0),d-1)}}c.prefetchRange(a,b)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else {this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent('beforesort',a,b);a.clearAndLoad({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('sort',a,b)}},clearAndLoad:function(a){this.getData().clear();this.loadPage(1,a)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return !1}}},0,0,0,0,['store.buffered'],0,[Ext.data,'BufferedStore'],0);Ext.cmd.derive('Ext.data.NodeInterface',Ext.Base,{statics:{decorate:function(f){var a=Ext.data.schema.Schema.lookupEntity(f),e=a.prototype,c,b,d;if(!a.prototype.isObservable){a.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(e.isNode){return}c=e.idProperty;b=a.getField(c);d=b.type;a.override(this.getPrototypeBody());a.addFields([{name:'parentId',type:d,defaultValue:null,allowNull:b.allowNull},{name:'index',type:'int',defaultValue:-1,persist:!1,convert:null},{name:'depth',type:'int',defaultValue:0,persist:!1,convert:null},{name:'expanded',type:'bool',defaultValue:!1,persist:!1,convert:null},{name:'expandable',type:'bool',defaultValue:!0,persist:!1,convert:null},{name:'checked',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'leaf',type:'bool',defaultValue:!1},{name:'cls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'iconCls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'icon',type:'string',defaultValue:'',persist:!1,convert:null},{name:'root',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isLast',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isFirst',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'allowDrop',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'allowDrag',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'loaded',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'loading',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'href',type:'string',defaultValue:'',persist:!1,convert:null},{name:'hrefTarget',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtip',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtitle',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qshowDelay',type:'int',defaultValue:0,persist:!1,convert:null},{name:'children',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'visible',type:'boolean',defaultValue:!0,persist:!1},{name:'text',type:'string',persist:!1}])},getPrototypeBody:function(){var a={idchanged:!0,append:!0,remove:!0,move:!0,insert:!0,beforeappend:!0,beforeremove:!0,beforemove:!0,beforeinsert:!0,expand:!0,collapse:!0,beforeexpand:!0,beforecollapse:!0,sort:!0},b={silent:!0};return {isNode:!0,firstChild:null,lastChild:null,parentNode:null,previousSibling:null,nextSibling:null,constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.callParent(arguments);a.childNodes=[];return a},createNode:function(a){var b=this,j=b.childType,h,f,g,c,d,e,i=b.self;if(!a.isModel){if(j){i=b.schema.getEntity(j)}else {h=b.getTreeStore();f=h&&h.getProxy().getReader();g=b.getProxy();c=g?g.getReader():null;d=!f||c&&c.initialConfig.typeProperty?c:f;if(d){e=d.getTypeProperty();if(e){i=d.getChildType(b.schema,a,e)}}}a=new i(a)}if(!a.childNodes){a.firstChild=a.lastChild=a.parentNode=a.previousSibling=a.nextSibling=null;a.childNodes=[]}return a},isLeaf:function(){return this.get('leaf')===!0},setFirstChild:function(a){this.firstChild=a},setLastChild:function(a){this.lastChild=a},updateInfo:function(o,k){var a=this,i=a.data,r=i.depth,m={},n=a.childNodes,q=n.length,s=a.phantom,t=a.fields,c=a.modified||(a.modified={}),b,e,j,d,p,l=k.parentId,g,h,f;for(b in k){j=t[a.fieldOrdinals[b]];e=k[b];h=j&&j.persist;d=i[b];g=h&&b==='index'&&d!==-1&&(l&&l!==c.parentId);if(!g&&a.isEqual(d,e)){continue}i[b]=e;if(h){if(!g&&c.hasOwnProperty(b)){if(a.isEqual(c[b],e)){delete c[b];a.dirty=!1;for(p in c){if(c.hasOwnProperty(p)){a.dirty=!0;break}}}}else {a.dirty=!0;c[b]=d}}}if(o){a.commit();a.phantom=s}if(a.data.depth!==r){m={depth:a.data.depth+1};for(f=0;f0},isExpandable:function(){var a=this;if(a.get('expandable')){return !(a.isLeaf()||a.isLoaded()&&!a.phantom&&!a.hasChildNodes())}return !1},triggerUIUpdate:function(){this.callJoined('afterEdit',[])},appendChild:function(b,h,l){var a=this,j,m,c,e,f,k={isLast:!0,parentId:a.getId(),depth:(a.data.depth||0)+1},i,d=a.getTreeStore(),g=d&&d.bulkUpdate;Ext.suspendLayouts();if(Ext.isArray(b)){m=b.length;i=new Array(m);a.callTreeStore('beginFill');for(j=0;j0){if(!e){e=c.getTreeStore().getSortFn()}Ext.Array.sort(a,e);c.setFirstChild(a[0]);c.setLastChild(a[g-1]);for(b=0;b0){d.children=c=[];for(a=0;a1&&!a.getRemoteSort()&&a.getFolderSort()||j.length,e,h,c,d;if(a.needsLocalFilter()){d=a.getFilters().getFilterFn();b[0].set('visible',d(b[0]))}for(c=1;c')}else {b.push('>');if(c=a.tpl){c.applyOut(a.tplData,b)}if(c=a.html){b.push(c)}if(c=a.cn||a.children){e.generateMarkup(c,b)}h=e.closeTags;b.push(h[f]||(h[f]=''))}}}return b},generateStyles:function(c,d,f){var e=d||[],a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];a=this.decamelizeName(a);if(f&&Ext.String.hasHtmlCharacters(b)){b=Ext.String.htmlEncode(b)}e.push(a,':',b,';')}}return d||e.join('')},markup:function(a){if(typeof a==='string'){return a}var b=this.generateMarkup(a,[]);return b.join('')},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(e){var d=this.detachedDiv,b=document.createDocumentFragment(),c,a;d.innerHTML=e;a=d.childNodes;c=a.length;while(c--){b.appendChild(a[0])}return b},createDom:function(e,f){var c=this,d=c.markup(e),b=c.detachedDiv,a;b.innerHTML=d;a=b.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(!0):a},insertHtml:function(g,f,j){var o=this,l,k,n,m,i;g=g.toLowerCase();if(f.insertAdjacentHTML){if(o.ieInsertHtml){i=o.ieInsertHtml(g,f,j);if(i){return i}}l=h[g];if(l){f.insertAdjacentHTML(l[0],j);return f[l[1]]}}else {if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}k=Ext.supports.CreateContextualFragment?f.ownerDocument.createRange():undefined;m='setStart'+(this.endRe.test(g)?'After':'Before');if(e[g]){if(k){k[m](f);i=k.createContextualFragment(j)}else {i=this.createContextualFragment(j)}f.parentNode.insertBefore(i,g===a?f:f.nextSibling);return f[(g===a?'previous':'next')+'Sibling']}else {n=(g===b?'first':'last')+'Child';if(f.firstChild){if(k){try{k[m](f[n]);i=k.createContextualFragment(j)}catch(p){i=this.createContextualFragment(j)}}else {i=this.createContextualFragment(j)}if(g===b){f.insertBefore(i,f.firstChild)}else {f.appendChild(i)}}else {f.innerHTML=j}return f[n]}}},insertBefore:function(c,d,b){return this.doInsert(c,d,b,a)},insertAfter:function(b,c,a){return this.doInsert(b,c,a,d)},insertFirst:function(c,d,a){return this.doInsert(c,d,a,b)},append:function(b,d,a){return this.doInsert(b,d,a,c)},overwrite:function(b,c,e){var d=this,a;b=Ext.getDom(b);c=d.markup(c);if(d.ieOverwrite){a=d.ieOverwrite(b,c)}if(!a){b.innerHTML=c;a=b.firstChild}return e?Ext.get(a):a},doInsert:function(f,j,k,g){var i=this,h;f=f.dom||Ext.getDom(f);if('innerHTML' in f){h=i.insertHtml(g,f,i.markup(j))}else {h=i.createDom(j,null);if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}if(e[g]){f.parentNode.insertBefore(h,g===a?f:f.nextSibling)}else {if(f.firstChild&&g===b){f.insertBefore(h,f.firstChild)}else {f.appendChild(h)}}}return k?Ext.get(h):h},createTemplate:function(b){var a=this.markup(b);return new Ext.Template(a)},createHtml:function(a){return this.markup(a)}}},0,0,0,0,0,0,[Ext.dom,'Helper',Ext,'DomHelper',Ext.core,'DomHelper'],0);Ext.define('Ext.overrides.dom.Helper',function(){var a=/^(?:table|thead|tbody|tr|td)$/i,f=/td|tr|tbody|thead/i,e='',d='
    ',c=e+'',b=''+d,h=c+'',g=''+b;return {override:'Ext.dom.Helper',ieInsertHtml:function(d,b,e){var c=null;if(Ext.isIE9m&&a.test(b.tagName)){c=this.insertIntoTable(b.tagName.toLowerCase(),d,b,e)}return c},ieOverwrite:function(b,c){if(Ext.isIE9m&&a.test(b.tagName)){while(b.firstChild){b.removeChild(b.firstChild)}if(c){return this.insertHtml('afterbegin',b,c)}}},ieTable:function(g,f,e,d){var h=-1,a=this.detachedDiv,b,c;a.innerHTML=[f,e,d].join('');while(++ha.interval){a.collect()}a.timerId=Ext.interval(a.collect,a.interval)}},1,0,0,0,0,0,[Ext.dom,'GarbageCollector'],0);Ext.cmd.derive('Ext.event.gesture.Recognizer',Ext.Base,{priority:0,handledEvents:[],config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(a){this.initConfig(a);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:Ext.emptyFn,onTouchCancel:Ext.emptyFn,fail:function(){return !1},fire:function(){this.getOnRecognized().apply(this.getCallbackScope(),arguments)},reset:Ext.emptyFn},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.event.gesture,'Recognizer'],0);Ext.cmd.derive('Ext.event.gesture.SingleTouch',Ext.event.gesture.Recognizer,{inheritableStatics:{NOT_SINGLE_TOUCH:'Not Single Touch',TOUCH_MOVED:'Touch Moved',EVENT_CANCELED:'Event Canceled'},onTouchStart:function(a){if(a.touches.length>1){return this.fail(this.self.NOT_SINGLE_TOUCH)}},onTouchCancel:function(){return !1}},0,0,0,0,0,0,[Ext.event.gesture,'SingleTouch'],0);Ext.cmd.derive('Ext.event.gesture.DoubleTap',Ext.event.gesture.SingleTouch,{priority:300,inheritableStatics:{DIFFERENT_TARGET:'Different Target'},config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:['singletap','doubletap'],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(c){var a=this,b;if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}b=a.lastStartPoint=c.changedTouches[0].point;a.startPoint=a.startPoint||b;a.startTime=c.time;clearTimeout(a.singleTapTimer)},onTouchMove:function(c){var a=this,b=c.changedTouches[0].point;if(Math.abs(b.getDistanceTo(a.lastStartPoint))>=a.getMoveDistance()){a.startPoint=null;return a.fail(a.self.TOUCH_MOVED)}},onTouchEnd:function(b){var a=this,f=a.getMaxDuration(),d=b.time,g=b.target,e=a.lastTapTime,h=a.lastTarget,i=b.changedTouches[0].point,c;a.lastTapTime=d;a.lastTarget=g;if(e){c=d-e;if(c<=f&&Math.abs(i.getDistanceTo(a.startPoint))<=a.getTapDistance()){if(g!==h){return a.fail(a.self.DIFFERENT_TARGET)}a.lastTarget=null;a.lastTapTime=0;a.fire('doubletap',b,{touch:b.changedTouches[0],duration:c});a.startPoint=null;return}}if(d-a.startTime>f){a.fireSingleTap(b)}else {a.setSingleTapTimer(b)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fireSingleTap(b)},a.getMaxDuration())},fireSingleTap:function(b,a){this.fire('singletap',b,{touch:a});this.startPoint=null},reset:function(){var a=this;a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null}},0,0,0,0,0,0,[Ext.event.gesture,'DoubleTap'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)});Ext.cmd.derive('Ext.event.gesture.Drag',Ext.event.gesture.SingleTouch,{priority:100,isStarted:!1,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:['dragstart','drag','dragend','dragcancel'],config:{minDistance:8},constructor:function(){Ext.event.gesture.SingleTouch.prototype.constructor.apply(this,arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0}}},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){if(this.isStarted&&this.lastMoveEvent!==null){this.lastMoveEvent.isStopped=!1;this.onTouchEnd(this.lastMoveEvent)}return !1}this.startTime=a.time;this.startPoint=a.changedTouches[0].point},tryDragStart:function(a){var f=this.startPoint,b=a.changedTouches[0],c=b.point,e=this.getMinDistance(),d=this.info;if(Math.abs(c.getDistanceTo(f))>=e){this.isStarted=!0;this.previousPoint=this.lastPoint=c;this.resetInfo('x',a,b);this.resetInfo('y',a,b);d.time=a.time;this.fire('dragstart',a,d)}},onTouchMove:function(a){if(!this.isStarted){this.tryDragStart(a)}if(!this.isStarted){return}var b=a.changedTouches[0],c=b.point;if(this.lastPoint){this.previousPoint=this.lastPoint}this.lastPoint=c;this.lastMoveEvent=a;this.updateInfo('x',a,b);this.updateInfo('y',a,b);this.info.time=a.time;this.fire('drag',a,this.info)},onAxisDragEnd:function(b,a){var c=a.time-a.previousTime[b];if(c>0){a.flick.velocity[b]=(a[b]-a.previous[b])/c}},resetInfo:function(b,h,g){var f=this.lastPoint[b],d=this.startPoint[b],e=f-d,c=b.toUpperCase(),a=this.info;a.touch=g;a.delta[b]=e;a.absDelta[b]=Math.abs(e);a.previousTime[b]=this.startTime;a.previous[b]=d;a[b]=f;a.direction[b]=0;a['start'+c]=this.startPoint[b];a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=0;a.startTime=this.startTime},updateInfo:function(b,l,k){var e=this,d=e.lastPoint[b],g=e.previousPoint[b],f=e.startPoint[b],i=d-f,a=e.info,h=a.direction,c=b.toUpperCase(),j=a.previous[b];a.touch=k;a.delta[b]=i;a.absDelta[b]=Math.abs(i);if(d!==j&&d!==a[b]){a.previous[b]=a[b];a.previousTime[b]=a.time}a[b]=d;if(d>g){h[b]=1}else {if(dthis.getMaxDuration()){return this.fail(this.self.MAX_DURATION_EXCEEDED)}if(this.isHorizontal&&d>this.getMaxOffset()){this.isHorizontal=!1}if(this.isVertical&&c>this.getMaxOffset()){this.isVertical=!1}if(!this.isVertical||!this.isHorizontal){if(this.isHorizontal&&cj){this.isVertical=!1}if(this.isHorizontal&&i>j){this.isHorizontal=!1}if(this.isVertical&&this.isHorizontal){if(i>h){this.isHorizontal=!1}else {this.isVertical=!1}}if(this.isHorizontal){a=f<0?'left':'right';b=f}else {if(this.isVertical){a=g<0?'up':'down';b=g}}a=this.direction||(this.direction=a);if(a==='up'){b=g*-1}else {if(a==='left'){b=f*-1}}this.distance=b;if(!b){return this.fail(this.self.DISTANCE_NOT_ENOUGH)}if(!this.started){if(a==='right'&&this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='down'&&this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='left'&&o-this.startX>d){return this.fail(this.self.NOT_NEAR_EDGE)}else {if(a==='up'&&n-this.startY>d){return this.fail(this.self.NOT_NEAR_EDGE)}}}}this.started=!0;this.startTime=c.time;this.fire('edgeswipestart',c,{touch:e,direction:a,distance:b,duration:k})}else {this.fire('edgeswipe',c,{touch:e,direction:a,distance:b,duration:k})}},onTouchEnd:function(a){var b;if(this.onTouchMove(a)!==!1){b=a.time-this.startTime;this.fire('edgeswipeend',a,{touch:a.changedTouches[0],direction:this.direction,distance:this.distance,duration:b})}},onTouchCancel:function(a){this.fire('edgeswipecancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){var a=this;a.started=a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null}},0,0,0,0,0,0,[Ext.event.gesture,'EdgeSwipe'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)});Ext.cmd.derive('Ext.event.gesture.LongPress',Ext.event.gesture.SingleTouch,{priority:400,inheritableStatics:{DURATION_NOT_ENOUGH:'Duration Not Enough'},config:{moveDistance:8,minDuration:1000},handledEvents:['longpress','taphold'],fireLongPress:function(a){this.fire('longpress',a,{touch:a.changedTouches[0],duration:this.getMinDuration()});this.isLongPress=!0},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===!1){return !1}this.startPoint=a.changedTouches[0].point;this.isLongPress=!1;this.setLongPressTimer(a)},setLongPressTimer:function(b){var a=this;a.timer=Ext.defer(function(){a.fireLongPress(b)},a.getMinDuration())},onTouchMove:function(b){var a=b.changedTouches[0].point;if(Math.abs(a.getDistanceTo(this.startPoint))>=this.getMoveDistance()){return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(){if(!this.isLongPress){return this.fail(this.self.DURATION_NOT_ENOUGH)}},fail:function(){clearTimeout(this.timer);return Ext.event.gesture.SingleTouch.prototype.fail.apply(this,arguments)},reset:function(){this.isLongPress=this.startPoint=null},fire:function(b){if(b==='longpress'){var a=Array.prototype.slice.call(arguments);a[0]='taphold';this.fire.apply(this,a)}return Ext.event.gesture.SingleTouch.prototype.fire.apply(this,arguments)}},0,0,0,0,0,0,[Ext.event.gesture,'LongPress'],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)});Ext.cmd.derive('Ext.event.gesture.MultiTouch',Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:!1,isStarted:!1,onTouchStart:function(a){var b=this.requiredTouchesCount,d=a.touches,c=d.length;if(c===b){this.start(a)}else {if(c>b){this.end(a)}}},onTouchEnd:function(a){this.end(a)},onTouchCancel:function(a){this.end(a,!0);return !1},start:function(){if(!this.isTracking){this.isTracking=!0;this.isStarted=!1}},end:function(b,a){if(this.isTracking){this.isTracking=!1;if(this.isStarted){this.isStarted=!1;this[a?'fireCancel':'fireEnd'](b)}}},reset:function(){this.isTracking=this.isStarted=!1}},0,0,0,0,0,0,[Ext.event.gesture,'MultiTouch'],0);Ext.cmd.derive('Ext.event.gesture.Pinch',Ext.event.gesture.MultiTouch,{priority:600,handledEvents:['pinchstart','pinch','pinchend','pinchcancel'],startDistance:0,lastTouches:null,onTouchMove:function(c){if(!this.isTracking){return}var b=c.touches,e,d,a;e=b[0].point;d=b[1].point;a=e.getDistanceTo(d);if(a===0){return}if(!this.isStarted){this.isStarted=!0;this.startDistance=a;this.fire('pinchstart',c,{touches:b,distance:a,scale:1})}else {this.fire('pinch',c,{touches:b,distance:a,scale:a/this.startDistance})}},fireEnd:function(a){this.fire('pinchend',a)},fireCancel:function(a){this.fire('pinchcancel',a)},fail:function(){return Ext.event.gesture.MultiTouch.prototype.fail.apply(this,arguments)},reset:function(){this.lastTouches=null;this.startDistance=0;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Pinch'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.pinch)});Ext.cmd.derive('Ext.event.gesture.Rotate',Ext.event.gesture.MultiTouch,{priority:700,handledEvents:['rotatestart','rotate','rotateend','rotatecancel'],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(g){if(!this.isTracking){return}var b=g.touches,c=this.lastAngle,i,h,a,e,d,f;i=b[0].point;h=b[1].point;a=i.getAngleTo(h);if(c!==null){f=Math.abs(c-a);e=a+360;d=a-360;if(Math.abs(e-c)=this.getMoveDistance()){this.fire('tapcancel',b,{touch:a});return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(a){this.fire('tap',a,{touch:a.changedTouches[0]})},onTouchCancel:function(a){this.fire('tapcancel',a,{touch:a.changedTouches[0]});return !1},reset:function(){this.startPoint=null}},0,0,0,0,0,0,[Ext.event.gesture,'Tap'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)});Ext.cmd.derive('Ext.event.publisher.Focus',Ext.event.publisher.Dom,{type:'focus',handledEvents:['focusenter','focusleave','focusmove'],handledDomEvents:['focusin','focusout'],doDelegatedEvent:function(a,c){var d=this,b;a=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,a,!1);if(a){if(a.type==='focusout'){if(a.relatedTarget==null){d.processFocusIn(a,a.target,document.body,c)}}else {b=a.relatedTarget;d.processFocusIn(a,b==null||!b.tagName?document.body:b,a.target,c)}}},processFocusIn:function(i,d,e,l){var c=this,h,a,b=[],f,g,j,k;j=Ext.fly(d);k=Ext.fly(e);if(j&&j.isFocusSuspended()||k&&k.isFocusSuspended()){return}for(a=d,h=Ext.dom.Element.getCommonAncestor(e,d,!0);a&&a!==h;a=a.parentNode){b.push(a)}if(b.length){f=c.createSyntheticEvent('focusleave',i,d,e);c.publish('focusleave',b,f);if(f.isStopped){return}}b.length=0;for(a=e;a!==h;a=a.parentNode){b.push(a)}g=c.createSyntheticEvent('focusenter',i,e,d);if(b.length){c.publish('focusenter',b,g);if(g.isStopped){return}}b=c.getPropagatingTargets(h);if(b.length){f=c.createSyntheticEvent('focusmove',i,e,d);c.publish('focusmove',b,f);if(f.isStopped){return}}if(l){c.afterEvent(i)}Ext.GlobalEvents.fireEvent('focus',{event:g,toElement:e,fromElement:d})},createSyntheticEvent:function(d,c,e,b){var a=new Ext.event.Event(c);a.type=d;a.relatedTarget=b;a.target=e;return a}},0,0,0,0,0,0,[Ext.event.publisher,'Focus'],function(a){var b;a.instance=new a();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:['focus','blur'],doDelegatedEvent:function(c,e){var d=this;c=d.callSuper([c,!1]);if(c){clearTimeout(b);b=0;if(c.type==='blur'){var f=c.target===window?document.body:c.target;b=setTimeout(function(){b=0;d.processFocusIn(c,f,document.body,e);a.previousActiveElement=null},0);if(c.target===window||c.target===document){a.previousActiveElement=null}else {a.previousActiveElement=c.target}}else {d.processFocusIn(c,a.previousActiveElement||document.body,c.target===window?document.body:c.target,e)}}}})}});Ext.cmd.derive('Ext.fx.State',Ext.Base,{isAnimatable:{'background-color':!0,'background-image':!0,'background-position':!0,'border-bottom-color':!0,'border-bottom-width':!0,'border-color':!0,'border-left-color':!0,'border-left-width':!0,'border-right-color':!0,'border-right-width':!0,'border-spacing':!0,'border-top-color':!0,'border-top-width':!0,'border-width':!0,'bottom':!0,'color':!0,'crop':!0,'font-size':!0,'font-weight':!0,'height':!0,'left':!0,'letter-spacing':!0,'line-height':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'opacity':!0,'outline-color':!0,'outline-offset':!0,'outline-width':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'right':!0,'text-indent':!0,'text-shadow':!0,'top':!0,'vertical-align':!0,'visibility':!0,'width':!0,'word-spacing':!0,'z-index':!0,'zoom':!0,'transform':!0},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(d,a){var g=this.data,e=Ext.isArray(a),b=g.transform,c,f;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof d=='string'){switch(d){case 'translate':if(e){c=a.length;if(c==0){break}b.translateX=a[0];if(c==1){break}b.translateY=a[1];if(c==2){break}b.translateZ=a[2]}else {b.translateX=a};break;case 'rotate':if(e){c=a.length;if(c==0){break}b.rotateX=a[0];if(c==1){break}b.rotateY=a[1];if(c==2){break}b.rotateZ=a[2]}else {b.rotate=a};break;case 'scale':if(e){c=a.length;if(c==0){break}b.scaleX=a[0];if(c==1){break}b.scaleY=a[1];if(c==2){break}b.scaleZ=a[2]}else {b.scaleX=a;b.scaleY=a};break;case 'skew':if(e){c=a.length;if(c==0){break}b.skewX=a[0];if(c==1){break}b.skewY=a[1]}else {b.skewX=a};break;default:b[d]=a;}}else {for(f in d){if(d.hasOwnProperty(f)){a=d[f];this.setTransform(f,a)}}}},set:function(b,a){var d=this.data,c;if(typeof b!='string'){for(c in b){a=b[c];if(c==='transform'){this.setTransform(a)}else {d[c]=a}}}else {if(b==='transform'){this.setTransform(a)}else {d[b]=a}}return this},unset:function(b){var a=this.data;if(a.hasOwnProperty(b)){delete a[b]}return this},getData:function(){return this.data}},1,0,0,0,0,0,[Ext.fx,'State'],0);Ext.cmd.derive('Ext.fx.animation.Abstract',Ext.Evented,{isAnimation:!0,config:{name:'',element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:'linear',iteration:1,direction:'normal',delay:0,onBeforeStart:null,callback:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:!1,replacePrevious:!0},STATE_FROM:'0%',STATE_TO:'100%',DIRECTION_UP:'up',DIRECTION_DOWN:'down',DIRECTION_LEFT:'left',DIRECTION_RIGHT:'right',stateNameRegex:/^(?:[\d\.]+)%$/,constructor:function(){this.states={};Ext.Evented.prototype.constructor.apply(this,arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(b){var c=this.stateNameRegex,a;for(a in b){if(c.test(a)){this.setState(a,b[a])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent('stop',this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(c,d){var b=this.getStates(),a;a=Ext.factory(d,Ext.fx.State,b[c]);if(a){b[c]=a}return this},getState:function(a){return this.getStates()[a]},getData:function(){var a=this,b=a.getStates(),d={},e=a.getBefore(),f=a.getAfter(),k=b[a.STATE_FROM],l=b[a.STATE_TO],i=k.getData(),j=l.getData(),h,c,g;for(c in b){if(b.hasOwnProperty(c)){g=b[c];h=g.getData();d[c]=h}}return {before:e?e.getData():{},after:f?f.getData():{},states:d,from:i,to:j,duration:a.getDuration(),iteration:a.getIteration(),direction:a.getDirection(),easing:a.getEasing(),delay:a.getDelay(),onEnd:a.getOnEnd(),onBeforeEnd:a.getOnBeforeEnd(),onBeforeStart:a.getOnBeforeStart(),scope:a.getScope(),preserveEndState:a.getPreserveEndState(),replacePrevious:a.getReplacePrevious()}}},1,0,0,0,0,0,[Ext.fx.animation,'Abstract'],0);Ext.cmd.derive('Ext.fx.animation.Slide',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.SlideIn',config:{direction:'left',out:!1,offset:0,easing:'auto',containerBox:'auto',elementBox:'auto',isElementBoxFit:!0,useCssTransform:!0},reverseDirectionMap:{up:'down',down:'up',left:'right',right:'left'},applyEasing:function(a){if(a==='auto'){return 'ease-'+(this.getOut()?'in':'out')}return a},getContainerBox:function(){var a=this._containerBox;if(a==='auto'){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==='auto'){a=this.getElement().getBox()}return a},getData:function(){var o=this.getElementBox(),b=this.getContainerBox(),a=o?o:b,j=this.getFrom(),m=this.getTo(),d=this.getOut(),c=this.getOffset(),g=this.getDirection(),n=this.getUseCssTransform(),p=this.getReverse(),e=0,f=0,h,i,k,l;if(p){g=this.reverseDirectionMap[g]}switch(g){case this.DIRECTION_UP:if(d){f=b.top-a.top-a.height-c}else {f=b.bottom-a.bottom+a.height+c};break;case this.DIRECTION_DOWN:if(d){f=b.bottom-a.bottom+a.height+c}else {f=b.top-a.height-a.top-c};break;case this.DIRECTION_RIGHT:if(d){e=b.right-a.right+a.width+c}else {e=b.left-a.left-a.width-c};break;case this.DIRECTION_LEFT:if(d){e=b.left-a.left-a.width-c}else {e=b.right-a.right+a.width+c};break;}h=d?0:e;i=d?0:f;if(n){j.setTransform({translateX:h,translateY:i})}else {j.set('left',h);j.set('top',i)}k=d?e:0;l=d?f:0;if(n){m.setTransform({translateX:k,translateY:l})}else {m.set('left',k);m.set('top',l)}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.slide','animation.slideIn'],0,[Ext.fx.animation,'Slide',Ext.fx.animation,'SlideIn'],0);Ext.cmd.derive('Ext.fx.animation.SlideOut',Ext.fx.animation.Slide,{config:{out:!0}},0,0,0,0,['animation.slideOut'],0,[Ext.fx.animation,'SlideOut'],0);Ext.cmd.derive('Ext.fx.animation.Fade',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.FadeIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(c){var b=this.getTo(),a=this.getFrom();if(c){a.set('opacity',1);b.set('opacity',0)}else {a.set('opacity',0);b.set('opacity',1)}}},0,0,0,0,['animation.fade','animation.fadeIn'],0,[Ext.fx.animation,'Fade',Ext.fx.animation,'FadeIn'],0);Ext.cmd.derive('Ext.fx.animation.FadeOut',Ext.fx.animation.Fade,{config:{out:!0,before:{}}},0,0,0,0,['animation.fadeOut'],0,[Ext.fx.animation,'FadeOut'],0);Ext.cmd.derive('Ext.fx.animation.Flip',Ext.fx.animation.Abstract,{config:{easing:'ease-in',direction:'right',half:!1,out:null},getData:function(){var c=this,k=c.getFrom(),m=c.getTo(),j=c.getDirection(),b=c.getOut(),l=c.getHalf(),a=l?90:180,h=1,i=1,d=0,e=0,f=0,g=0;if(b){i=0.8}else {h=0.8}switch(j){case this.DIRECTION_UP:if(b){f=a}else {d=-a};break;case this.DIRECTION_DOWN:if(b){f=-a}else {d=a};break;case this.DIRECTION_RIGHT:if(b){g=a}else {e=-a};break;case this.DIRECTION_LEFT:if(b){g=-a}else {e=a};break;}k.setTransform({rotateX:d,rotateY:e,scale:h});m.setTransform({rotateX:f,rotateY:g,scale:i});return Ext.fx.animation.Abstract.prototype.getData.call(this)}},0,0,0,0,['animation.flip'],0,[Ext.fx.animation,'Flip'],0);Ext.cmd.derive('Ext.fx.animation.Pop',Ext.fx.animation.Abstract,{alternateClassName:'Ext.fx.animation.PopIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var b=this.getTo(),a=this.getFrom(),c=this.getOut();if(c){a.set('opacity',1);a.setTransform({scale:1});b.set('opacity',0);b.setTransform({scale:0})}else {a.set('opacity',0);a.setTransform({scale:0});b.set('opacity',1);b.setTransform({scale:1})}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,['animation.pop','animation.popIn'],0,[Ext.fx.animation,'Pop',Ext.fx.animation,'PopIn'],0);Ext.cmd.derive('Ext.fx.animation.PopOut',Ext.fx.animation.Pop,{config:{out:!0,before:{}}},0,0,0,0,['animation.popOut'],0,[Ext.fx.animation,'PopOut'],0);Ext.cmd.derive('Ext.fx.Animation',Ext.Base,{constructor:function(a){var c=Ext.fx.animation.Abstract,b;if(typeof a=='string'){b=a;a={}}else {if(a&&a.type){b=a.type}}if(b){c=Ext.ClassManager.getByAlias('animation.'+b)}return Ext.factory(a,c)}},1,0,0,0,0,0,[Ext.fx,'Animation'],0);Ext.cmd.derive('Ext.fx.runner.Css',Ext.Evented,{prefixedProperties:{'transform':!0,'transform-origin':!0,'perspective':!0,'transform-style':!0,'transition':!0,'transition-property':!0,'transition-duration':!0,'transition-timing-function':!0,'transition-delay':!0,'animation':!0,'animation-name':!0,'animation-duration':!0,'animation-iteration-count':!0,'animation-direction':!0,'animation-timing-function':!0,'animation-delay':!0},lengthProperties:{'top':!0,'right':!0,'bottom':!0,'left':!0,'width':!0,'height':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'border-bottom-width':!0,'border-left-width':!0,'border-right-width':!0,'border-spacing':!0,'border-top-width':!0,'border-width':!0,'outline-width':!0,'letter-spacing':!0,'line-height':!0,'text-indent':!0,'word-spacing':!0,'font-size':!0,'translate':!0,'translateX':!0,'translateY':!0,'translateZ':!0,'translate3d':!0},durationProperties:{'transition-duration':!0,'transition-delay':!0,'animation-duration':!0,'animation-delay':!0},angleProperties:{rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,skew:!0,skewX:!0,skewY:!0},lengthUnitRegex:/([a-z%]*)$/,DEFAULT_UNIT_LENGTH:'px',DEFAULT_UNIT_ANGLE:'deg',DEFAULT_UNIT_DURATION:'ms',formattedNameCache:{},transformMethods3d:['translateX','translateY','translateZ','rotate','rotateX','rotateY','rotateZ','skewX','skewY','scaleX','scaleY','scaleZ'],transformMethodsNo3d:['translateX','translateY','rotate','skewX','skewY','scaleX','scaleY'],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement('style');a.type='text/css';(document.head||document.getElementsByTagName('head')[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var i=this.getStyleSheet(),h=this.ruleStylesCache,k=i.cssRules,d,g,b,c,f,a,e;for(d in j){g=j[d];b=h[d];if(b===undefined){f=k.length;i.insertRule(d+'{}',f);b=h[d]=k.item(f).style}c=b.$cache;if(!c){c=b.$cache={}}for(a in g){e=this.formatValue(g[a],a);a=this.formatName(a);if(c[a]!==e){c[a]=e;if(e===null){b.removeProperty(a)}else {b.setProperty(a,e,'important')}}}}return this},applyStyles:function(f){var c,e,d,b,a,g;for(c in f){if(f.hasOwnProperty(c)){e=document.getElementById(c);if(!e){continue}d=e.style;b=f[c];for(a in b){if(b.hasOwnProperty(a)){g=this.formatValue(b[a],a);a=this.formatName(a);if(g===null){d.removeProperty(a)}else {d.setProperty(a,g,'important')}}}}}return this},formatName:function(b){var c=this.formattedNameCache,a=c[b];if(!a){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){a=this.vendorPrefix+b}else {a=b}c[b]=a}return a},formatValue:function(a,c){var j=typeof a,i=this.DEFAULT_UNIT_LENGTH,g,d,b,f,h,e,k;if(a===null){return ''}if(j=='string'){if(this.lengthProperties[c]){k=a.match(this.lengthUnitRegex)[1];if(k.length>0){}else {return a+i}}return a}else {if(j=='number'){if(a==0){return '0'}if(this.lengthProperties[c]){return a+i}if(this.angleProperties[c]){return a+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[c]){return a+this.DEFAULT_UNIT_DURATION}}else {if(c==='transform'){g=this.transformMethods;h=[];for(b=0,f=g.length;b0?e.join(', '):'none'}}}}return a}},1,0,0,0,0,0,[Ext.fx.runner,'Css'],0);Ext.cmd.derive('Ext.fx.runner.CssTransition',Ext.fx.runner.Css,{alternateClassName:'Ext.Animator',singleton:!0,listenersAttached:!1,constructor:function(){this.runningAnimationsData={};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=!0;Ext.getWin().on('transitionend','onTransitionEnd',this)},onTransitionEnd:function(c){var a=c.target,b=a.id;if(b&&this.runningAnimationsData.hasOwnProperty(b)){this.refreshRunningAnimationsData(Ext.get(a),[c.browserEvent.propertyName])}},onAnimationEnd:function(d,a,b,c,n){var l=d.getId(),j=this.runningAnimationsData[l],k={},h={},g,f,e,m,i;b.un('stop','onAnimationStop',this);if(j){g=j.nameMap}k[l]=h;if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,d,c)}b.fireEvent('animationbeforeend',b,d,c);this.fireEvent('animationbeforeend',this,b,d,c);if(n||!c&&!a.preserveEndState){f=a.toPropertyNames;for(e=0,m=f.length;e0},refreshRunningAnimationsData:function(i,m,f,g){var s=i.getId(),r=this.runningAnimationsData,e=r[s];if(!e){return}var o=e.nameMap,n=e.nameList,c=e.sessions,h,j,p,d,b,a,k,q,l=!1;f=Boolean(f);g=Boolean(g);if(!c){return this}h=c.length;if(h===0){return this}if(g){e.nameMap={};n.length=0;for(b=0;b');b.close();this.testElement=c=b.createElement('div');c.style.setProperty('position','absolute','important');b.body.appendChild(c);this.testElementComputedStyle=window.getComputedStyle(c)}return c},getCssStyleValue:function(b,a){var c=this.getTestElement(),e=this.testElementComputedStyle,d=c.style;d.setProperty(b,a);if(Ext.browser.is.Firefox){c.offsetHeight}a=e.getPropertyValue(b);d.removeProperty(b);return a},run:function(t){var a=this,H=a.lengthProperties,E={},j={},d={},i,f,m,k,F,g,e,u,v,s,r,w,x,G,c,o,y,C,h,b,l,D,n,z,q,p,A,B;if(!a.listenersAttached){a.attachListeners()}t=Ext.Array.from(t);for(w=0,G=t.length;w0){a.refreshRunningAnimationsData(i,Ext.Array.merge(g,e),!0,d.replacePrevious)}q=s.nameMap;p=s.nameList;y={};for(x=0;x0){g=Ext.Array.difference(p,g);e=Ext.Array.merge(g,e);r['transition-property']=g}E[f]=r;j[f]=Ext.apply({},k);j[f]['transition-property']=e;j[f]['transition-duration']=d.duration;j[f]['transition-timing-function']=d.easing;j[f]['transition-delay']=d.delay;c.startTime=Date.now()}v=a.$className;a.applyStyles(E);u=function(b){if(b.data===v&&b.source===window){window.removeEventListener('message',u,!1);a.applyStyles(j)}};if(window.requestAnimationFrame){window.requestAnimationFrame(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')})}else {Ext.defer(function(){window.addEventListener('message',u,!1);window.postMessage(v,'*')},1)}},onAnimationStop:function(h){var c=this.runningAnimationsData,e,f,d,b,g,a;for(e in c){if(c.hasOwnProperty(e)){f=c[e];d=f.sessions;for(b=0,g=d.length;b'){this.isParentReference=!0;a=a.substring(0,b)}return a}}},0,0,0,0,0,0,[Ext.mixin,'Container'],0);Ext.cmd.derive('Ext.mixin.Responsive',Ext.Mixin,function(a){return {mixinConfig:{id:'responsive',after:{destroy:'destroy'}},config:{responsiveConfig:{$value:undefined,merge:function(c,d,g,f){if(!c){return d}var e=d?Ext.Object.chain(d):{},b;for(b in c){if(!f||!(b in e)){e[b]={fn:null,config:c[b]}}}return e}},responsiveFormulas:{$value:0,merge:function(c,d,e,b){return this.mergeNew(c,d,e,b)}}},destroy:function(){a.unregister(this);this.callParent()},privates:{statics:{active:!1,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=!0;a.updateContext();Ext.on('resize',a.onResize,a)},deactivate:function(){a.active=!1;Ext.un('resize',a.onResize,a)},notify:function(){var b=a.all,e=a.context,d=Ext.GlobalEvents,f=a.timer,c;if(f){a.timer=null;Ext.Function.cancelAnimationFrame(f)}a.updateContext();Ext.suspendLayouts();d.fireEvent('beforeresponsiveupdate',e);for(c in b){b[c].setupResponsiveContext()}d.fireEvent('beginresponsiveupdate',e);for(c in b){b[c].updateResponsiveState()}d.fireEvent('responsiveupdate',e);Ext.resumeLayouts(!0)},onResize:function(){if(!a.timer){a.timer=Ext.Function.requestAnimationFrame(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(c,d,b){var g=d&&d[b],f=c.config,h,e;if(g){e=c.getConfigurator();h=e.configs[b];f[b]=h.merge(g,f[b],c)}},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),c=e.getViewportHeight(),b=a.context;b.width=d;b.height=c;b.tall=d','',' ({childCount} children)','','',' ({depth} deep)','','',', {type}: {[this.time(values.sum)]} msec (','avg={[this.time(values.sum / parent.count)]}',')','','
    '].join(''),{time:function(a){return Math.round(a*100)/100}})}var a=this.getData(b);a.name=this.name;a.pure.type='Pure';a.total.type='Total';a.times=[a.pure,a.total];return c.apply(a)},getData:function(b){var a=this;return {count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:setToJSON(a.count,a.childCount,b,a.pure),total:setToJSON(a.count,a.childCount,b,a.total)}},enter:function(){var c=this,d={accum:c,leave:leaveFrame,childTime:0,parent:b};++c.depth;if(c.maxDepth0){d=a==='this'?this:typeof a==='string'?this[a]:typeof a==='number'?arguments[a]:null;if(d){f=d.id}if(f!=null){console.log(b+' for '+f+': '+c+'ms')}else {console.log(b+' for unknown: '+c+'ms')}if(console.trace){console.trace()}}return h}}(b,d[b])}Ext.override(f,c)}}}}},1,0,0,0,0,0,[Ext.perf,'Monitor',Ext,'Perf'],0);Ext.cmd.derive('Ext.plugin.Abstract',Ext.Base,{alternateClassName:'Ext.AbstractPlugin',isPlugin:!0,constructor:function(a){if(a){this.pluginConfig=a;this.initConfig(a)}},clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},setCmp:function(a){this.cmp=a},getCmp:function(){return this.cmp},init:Ext.emptyFn,destroy:function(){this.cmp=this.pluginConfig=null;this.callParent()},onClassExtended:function(c,b,d){var a=b.alias;if(a&&!b.ptype){if(Ext.isArray(a)){a=a[0]}c.prototype.ptype=a.split('plugin.')[1]}},resolveListenerScope:function(b){var a=this,d=a.getCmp(),c;if(d){c=d.resolveSatelliteListenerScope(a,b)}return c||a.mixins.observable.resolveListenerScope.call(a,b)}},1,0,0,0,0,0,[Ext.plugin,'Abstract',Ext,'AbstractPlugin'],0);Ext.define('Ext.overrides.plugin.Abstract',{override:'Ext.plugin.Abstract',$configStrict:!1,$configPrefixed:!1,disabled:!1,getState:null,applyState:null,enable:function(){this.disabled=!1},disable:function(){this.disabled=!0}});Ext.cmd.derive('Ext.util.ItemCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.ItemCollection',getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}},0,0,0,0,0,0,[Ext.util,'ItemCollection',Ext,'ItemCollection'],0);Ext.cmd.derive('Ext.util.TaskManager',Ext.util.TaskRunner,{alternateClassName:['Ext.TaskManager'],singleton:!0},0,0,0,0,0,0,[Ext.util,'TaskManager',Ext,'TaskManager'],0);Ext.cmd.derive('Ext.util.TextMetrics',Ext.Base,{statics:{shared:null,measure:function(d,e,c){var b=this,a=b.shared;if(!a){a=b.shared=new b(d,c)}a.bind(d);a.setFixedWidth(c||'auto');return a.getSize(e)},destroy:function(){var a=this;Ext.destroy(a.shared);a.shared=null}},constructor:function(c,b){var d=this,a=Ext.getBody().createChild({role:'presentation',cls:'x-textmetrics'});a.setVisibilityMode(1);d.measure=a;if(c){d.bind(c)}a.position('absolute');a.setLocalXY(-1000,-1000);a.hide();if(b){a.setWidth(b)}},getSize:function(c){var a=this.measure,b;a.setHtml(c);b=a.getSize();a.setHtml('');return b},bind:function(b){var a=this;a.el=Ext.get(b);a.measure.setStyle(a.el.getStyle(['font-size','font-style','font-weight','font-family','line-height','text-transform','letter-spacing','word-break']))},setFixedWidth:function(a){this.measure.setWidth(a)},getWidth:function(a){this.measure.dom.style.width='auto';return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height},destroy:function(){var a=this;a.el=a.measure=Ext.destroy(a.measure);a.callParent()}},1,0,0,0,0,0,[Ext.util,'TextMetrics'],function(){Ext.Element.override({getTextWidth:function(a,c,b){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(a,this.dom.innerHTML,!0)).width,c||0,b||1000000)}})});Ext.define(null,{override:'Ext.event.publisher.Focus',compatibility:Ext.isIE10m,doDelegatedEvent:function(a,d){var c=document.body,b=Ext.synchronouslyFocusing;if(b&&(a.type==='focusout'&&a.srcElement===b&&a.toElement===c||a.type==='focusin'&&a.srcElement===c&&a.fromElement===b&&a.toElement===null)){return}return this.callParent([a,d])}});Ext.define(null,{override:'Ext.scroll.DomScroller',compatibility:Ext.isIE8,privates:{doScrollTo:function(a,b,j){var c=this,f=c.getElement(),e,d,i,g,h;if(f&&!f.destroyed){d=this.getElement().dom;g=a===Infinity;h=b===Infinity;if(g||h){e=c.getMaxPosition();if(g){a=e.x}if(h){b=e.y}}a=c.convertX(a);if(j){i={};if(b!=null){i.scrollTop=b}if(a!=null){i.scrollLeft=a}f.animate(Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},j))}else {if(a!=null&&b!=null){c.deferDomScroll=!0}if(b!=null){d.scrollTop=b}if(a!=null){d.scrollLeft=a}if(c.deferDomScroll){c.deferDomScroll=!1;+d.scrollLeft;d.scrollLeft=a}}c.positionDirty=!0}},onDomScroll:function(){var a=this;if(a.deferDomScroll){return}a.callParent()}}});Ext.cmd.derive('Ext.ElementLoader',Ext.Base,{statics:{Renderer:{Html:function(c,b,a){c.getTarget().setHtml(b.responseText,a.scripts===!0,a.rendererScope);return !0}}},url:null,params:null,baseParams:null,autoLoad:!1,target:null,loadMask:!1,ajaxOptions:null,scripts:!1,isLoader:!0,constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.setTarget(a.target);if(a.autoLoad){b=a.autoLoad;if(b===!0){b=null}a.load(b)}},setTarget:function(a){var b=this;a=Ext.get(a);if(b.target&&b.target!==a){b.abort()}b.target=a},getTarget:function(){return this.target||null},abort:function(){var a=this.active;if(a!==undefined){Ext.Ajax.abort(a.request);if(a.mask){this.removeMask()}delete this.active}},removeMask:function(){this.target.unmask()},addMask:function(a){this.target.mask(a===!0?null:a)},load:function(b){b=Ext.apply({},b);var a=this,d=Ext.isDefined(b.loadMask)?b.loadMask:a.loadMask,c=Ext.apply({},b.params),e=Ext.apply({},b.ajaxOptions),f=b.callback||a.callback,g=b.scope||a.scope||a;Ext.applyIf(e,a.ajaxOptions);Ext.applyIf(b,e);Ext.applyIf(c,a.params);Ext.apply(c,a.baseParams);Ext.applyIf(b,{url:a.url});Ext.apply(b,{scope:a,params:c,callback:a.onComplete});if(a.fireEvent('beforeload',a,b)===!1){return}if(d){a.addMask(d)}a.active={options:b,mask:d,scope:g,callback:f,success:b.success||a.success,failure:b.failure||a.failure,renderer:b.renderer||a.renderer,scripts:Ext.isDefined(b.scripts)?b.scripts:a.scripts};a.active.request=Ext.Ajax.request(b);a.setOptions(a.active,b)},setOptions:function(b,a){b.rendererScope=a.rendererScope||this.rendererScope||this},onComplete:function(d,e,c){var a=this,b=a.active,g,f;if(b){f=b.scope;g=b.rendererScope;if(e){e=a.getRenderer(b.renderer).call(g,a,c,b)!==!1}if(e){Ext.callback(b.success,f,[a,c,d]);a.fireEvent('load',a,c,d)}else {Ext.callback(b.failure,f,[a,c,d]);a.fireEvent('exception',a,c,d)}Ext.callback(b.callback,f,[a,e,c,d]);if(b.mask){a.removeMask()}}delete a.active},getRenderer:function(a){if(Ext.isFunction(a)){return a}return this.statics().Renderer.Html},startAutoRefresh:function(b,c){var a=this;a.stopAutoRefresh();a.autoRefresh=Ext.interval(function(){a.load(c)},b)},stopAutoRefresh:function(){clearInterval(this.autoRefresh);delete this.autoRefresh},isAutoRefreshing:function(){return Ext.isDefined(this.autoRefresh)},destroy:function(){var a=this;a.stopAutoRefresh();delete a.target;a.abort();a.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext,'ElementLoader'],0);Ext.cmd.derive('Ext.ComponentLoader',Ext.ElementLoader,{statics:{Renderer:{Data:function(c,b,d){var a=!0;try{c.getTarget().update(Ext.decode(b.responseText))}catch(e){a=!1}return a},Component:function(f,d,e){var b=!0,a=f.getTarget(),c=[];try{c=Ext.decode(d.responseText)}catch(g){b=!1}if(b){a.suspendLayouts();if(e.removeAll){a.removeAll()}a.add(c);a.resumeLayouts(!0)}return b}}},target:null,loadOnRender:!1,loadMask:!1,renderer:'html',setTarget:function(b){var a=this;if(Ext.isString(b)){b=Ext.getCmp(b)}if(a.target&&a.target!==b){a.abort()}a.target=b;if(b&&a.loadOnRender){if(b.rendered){a.doLoadOnRender()}else {a.mon(b,'render',a.doLoadOnRender,a)}}},doLoadOnRender:function(){var a=this.loadOnRender;this.load(Ext.isObject(a)?a:null)},removeMask:function(){this.target.setLoading(!1)},addMask:function(a){this.target.setLoading(a)},setOptions:function(b,a){b.removeAll=Ext.isDefined(a.removeAll)?a.removeAll:this.removeAll;b.rendererScope=a.rendererScope||this.rendererScope||this.target},getRenderer:function(a){if(Ext.isFunction(a)){return a}var b=this.statics().Renderer;switch(a){case 'component':return b.Component;case 'data':return b.Data;default:return Ext.ElementLoader.Renderer.Html;}}},0,0,0,0,0,0,[Ext,'ComponentLoader'],0);Ext.cmd.derive('Ext.layout.SizeModel',Ext.Base,{constructor:function(e){var a=this,b=a.self,d=b.sizeModelsArray,c;Ext.apply(a,e);a[c=a.name]=!0;a.fixed=!(a.auto=a.natural||a.shrinkWrap);d[a.ordinal=d.length]=b[c]=b.sizeModels[c]=a},statics:{sizeModelsArray:[],sizeModels:{}},calculated:!1,configured:!1,constrainedMax:!1,constrainedMin:!1,natural:!1,shrinkWrap:!1,calculatedFromConfigured:!1,calculatedFromNatural:!1,calculatedFromShrinkWrap:!1,names:null},1,0,0,0,0,0,[Ext.layout,'SizeModel'],function(){var a=this,d=a.sizeModelsArray,b,c,f,g,e;new a({name:'calculated'});new a({name:'configured',names:{width:'width',height:'height'}});new a({name:'natural'});new a({name:'shrinkWrap'});new a({name:'calculatedFromConfigured',configured:!0,calculatedFrom:!0,names:{width:'width',height:'height'}});new a({name:'calculatedFromNatural',natural:!0,calculatedFrom:!0});new a({name:'calculatedFromShrinkWrap',shrinkWrap:!0,calculatedFrom:!0});new a({name:'constrainedMax',configured:!0,constrained:!0,names:{width:'maxWidth',height:'maxHeight'}});new a({name:'constrainedMin',configured:!0,constrained:!0,names:{width:'minWidth',height:'minHeight'}});new a({name:'constrainedDock',configured:!0,constrained:!0,constrainedByMin:!0,names:{width:'dockConstrainedWidth',height:'dockConstrainedHeight'}});for(b=0,f=d.length;b-1&&e','
    role="presentation"','class="{innerCtCls}">','{%this.renderBody(out,values)%}','
    ',''],beginLayout:function(a){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(a)},beforeLayoutCycle:function(d){var a=this.owner,c=a.inheritedState,b=a.inheritedStateInner;if(!c||c.invalid){c=a.getInherited();b=a.inheritedStateInner}if(d.widthModel.shrinkWrap){b.inShrinkWrapTable=!0}else {delete b.inShrinkWrapTable}},beginLayoutCycle:function(e){var a=this,g=a.outerCt,l=a.lastOuterCtWidth||'',k=a.lastOuterCtHeight||'',j=a.lastOuterCtTableLayout||'',i=e.state,f,d,c,b,h;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);d=c=b='';if(!e.widthModel.shrinkWrap){d='100%';h=a.owner.inheritedStateInner;f=a.getOverflowXStyle(e);b=h.inShrinkWrapTable||f==='auto'||f==='scroll'?'':'fixed'}if(!e.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){c='100%'}if(d!==l||a.hasOuterCtPxWidth){g.setStyle('width',d);a.lastOuterCtWidth=d;a.hasOuterCtPxWidth=!1}if(b!==j){g.setStyle('table-layout',b);a.lastOuterCtTableLayout=b}if(c!==k||a.hasOuterCtPxHeight){g.setStyle('height',c);a.lastOuterCtHeight=c;a.hasOuterCtPxHeight=!1}if(a.hasInnerCtPxHeight){a.innerCt.setStyle('height','');a.hasInnerCtPxHeight=!1}i.overflowAdjust=i.overflowAdjust||a.lastOverflowAdjust},calculate:function(b){var a=this,d=b.state,c=a.getContainerSize(b,!0),e=d.calculatedItems||(d.calculatedItems=a.calculateItems?a.calculateItems(b,c):!0);a.setCtSizeIfNeeded(b,c);if(e&&b.hasDomProp('containerChildrenSizeDone')){a.calculateContentSize(b);if(c.gotAll){if(a.manageOverflow&&!b.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(b,c)}return}}a.done=!1},calculateContentSize:function(a){var b=this,f=(a.widthModel.shrinkWrap?1:0)|(a.heightModel.shrinkWrap?2:0),d=f&1||undefined,c=f&2||undefined,e=0,g=a.props;if(d){if(isNaN(g.contentWidth)){++e}else {d=undefined}}if(c){if(isNaN(g.contentHeight)){++e}else {c=undefined}}if(e){if(d&&!a.setContentWidth(b.measureContentWidth(a))){b.done=!1}if(c&&!a.setContentHeight(b.measureContentHeight(a))){b.done=!1}}},calculateOverflow:function(d){var c=this,g,f,e,a,h,i,b;h=c.getOverflowXStyle(d)==='auto';i=c.getOverflowYStyle(d)==='auto';if(h||i){e=Ext.getScrollbarSize();b=d.overflowContext.el.dom;a=0;if(b.scrollWidth>b.clientWidth){a|=1}if(b.scrollHeight>b.clientHeight){a|=2}g=i&&a&2?e.width:0;f=h&&a&1?e.height:0;if(g!==c.lastOverflowAdjust.width||f!==c.lastOverflowAdjust.height){c.done=!1;d.invalidate({state:{overflowAdjust:{width:g,height:f},overflowState:a,secondPass:!0}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(b,a){var c=a.$layout,d=Ext.XTemplate,e=c.beforeBodyTpl,f=c.afterBodyTpl;if(e){d.getTpl(c,'beforeBodyTpl').applyOut(a,b)}this.renderItems(b,a);this.renderContent(b,a);if(f){d.getTpl(c,'afterBodyTpl').applyOut(a,b)}},doRenderPadding:function(d,b){var e=b.$layout,a=b.$layout.owner,c=a[a.contentPaddingProperty];if(e.managePadding&&c){d.push('padding:',a.unitizeBox(c))}},finishedLayout:function(b){var a=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){a.repaint()}if(Ext.isOpera){a.setStyle('position','relative');a.dom.scrollWidth;a.setStyle('position','')}},getContainerSize:function(c,d){var b=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),a=c.state.overflowAdjust;if(a){b.width-=a.width;b.height-=a.height}return b},getRenderData:function(){var b=this,a=Ext.layout.container.Container.prototype.getRenderData.call(this);a.innerCtCls=b.innerCtCls;a.outerCtCls=b.outerCtCls;return a},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(a){return a.overflowXStyle||(a.overflowXStyle=this.owner.scrollFlags.overflowX||a.overflowContext.getStyle('overflow-x'))},getOverflowYStyle:function(a){return a.overflowYStyle||(a.overflowYStyle=this.owner.scrollFlags.overflowY||a.overflowContext.getStyle('overflow-y'))},initContextItems:function(a){var b=this,d=a.target,c=b.owner.getOverflowEl();a.outerCtContext=a.getEl('outerCt',b);a.innerCtContext=a.getEl('innerCt',b);a.overflowContext=c===a.el?a:a.getEl(c);if(d[d.contentPaddingProperty]!==undefined){a.paddingContext=a.innerCtContext}},initLayout:function(){var a=this,b=Ext.getScrollbarSize().width,c=a.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&a.manageOverflow&&!a.hasOwnProperty('lastOverflowAdjust')){if(c.scrollable||a.reserveScrollbar){a.lastOverflowAdjust={width:b,height:0}}}},measureContentHeight:function(b){var a=this.outerCt.getHeight(),c=b.target;if(this.managePadding&&c[c.contentPaddingProperty]===undefined){a+=b.targetContext.getPaddingInfo().height}return a},measureContentWidth:function(f){var a,b,e,c,d;if(this.chromeCellMeasureBug){a=this.innerCt.dom;b=a.style;e=b.display;if(e==='table-cell'){b.display='';a.offsetWidth;b.display=e}}if(Ext.isSafari){a=this.outerCt.dom;b=a.style;b.display='table-cell';a.offsetWidth;a.style.display=''}c=this.outerCt.getWidth();d=f.target;if(this.managePadding&&d[d.contentPaddingProperty]===undefined){c+=f.targetContext.getPaddingInfo().width}return c},setCtSizeIfNeeded:function(a,h){var c=this,b=h.height,k=a.paddingContext.getPaddingInfo(),g=c.getTarget(),f=c.getOverflowXStyle(a),j=f==='auto'||f==='scroll',i=Ext.getScrollbarSize(),e,d;if(b&&!a.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){e=!0}if(Ext.isIE8){d=!0}if((e||d)&&j&&g.dom.scrollWidth>g.dom.clientWidth){b=Math.max(b-i.height,0)}if(e){a.outerCtContext.setProp('height',b+k.height);c.hasOuterCtPxHeight=!0}if(d){a.innerCtContext.setProp('height',b);c.hasInnerCtPxHeight=!0}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt},getScrollerEl:function(){return this.outerCt}},0,0,0,0,['layout.auto','layout.autocontainer'],0,[Ext.layout.container,'Auto'],function(){this.prototype.chromeCellMeasureBug=Ext.isChrome&&Ext.chromeVersion>=26});Ext.cmd.derive('Ext.ZIndexManager',Ext.Base,{alternateClassName:'Ext.WindowGroup',statics:{zBase:9000,activeCounter:0},constructor:function(b){var a=this;a.id=Ext.id(null,'zindex-mgr-');a.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(c,d){var a=(c.alwaysOnTop||0)-(d.alwaysOnTop||0);if(!a){a=c.getActiveCounter()-d.getActiveCounter()}return a}},filters:{filterFn:function(a){return a.isVisible()}}});a.zIndexStack.addObserver(a);a.front=null;a.globalListeners=Ext.GlobalEvents.on({beforehide:a.onComponentShowHide,show:a.onComponentShowHide,scope:a,destroyable:!0});if(b){if(b.isContainer){b.on('resize',a.onContainerResize,a);a.zseed=Ext.Number.from(a.rendered?b.getEl().getStyle('zIndex'):undefined,a.getNextZSeed());a.targetEl=b.getTargetEl();a.container=b}else {Ext.on('resize',a.onContainerResize,a);a.zseed=a.getNextZSeed();a.targetEl=Ext.get(b)}}else {a.zseed=a.getNextZSeed();Ext.onInternalReady(function(){Ext.on('resize',a.onContainerResize,a);a.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return Ext.ZIndexManager.zBase+=10000},setBase:function(a){this.zseed=a;return this.onCollectionSort()},onCollectionSort:function(){var d=this,b=d.front,k=b&&b.containsFocus,g=d.zseed,i=d.zIndexStack.getRange(),j=i.length,e,c,f,a,h=!1;for(e=0;e0;){a=c[b];if(a.isComponent&&e.call(d||a,a)===!1){return}}},destroy:function(){var a=this,c=a.zIndexStack.getRange(),d=c.length,b;for(b=0;b1){b.refresh()}if(a.hasListeners.afterlayout){a.fireEvent('afterlayout',a,c)}},beforeDestroy:function(){var a=this,d=a.items,c=a.floatingItems,b;if(d){while(b=d.first()){a.doRemove(b,!0)}}if(c){while(b=c.first()){a.doRemove(b,!0)}}Ext.destroy(a.layout);Ext.Component.prototype.beforeDestroy.call(this)},destroy:function(){var a=this;Ext.Component.prototype.destroy.call(this);if(a.items){a.items.destroy()}if(a.floatingItems){a.floatingItems.destroy()}a.refs=a.items=a.floatingItems=a.layout=null},beforeRender:function(){var a=this,c=a.getLayout(),b;a.preventChildDisable=!0;Ext.Component.prototype.beforeRender.call(this);a.preventChildDisable=!1;if(!c.initialized){c.initLayout()}b=c.targetCls;if(b){a.applyTargetCls(b)}},cascade:function(f,e,d){var a=this,h=a.items?a.items.items:[],j=h.length,g=0,b,c=d?d.concat(a):[a],i=c.length-1;if(f.apply(e||a,c)!==!1){for(;g','
    ','
    {msg}
    ','
    ',''],maskOnDisable:!1,skipLayout:!0,constructor:function(c){var a=this,b;if(arguments.length===2){b=a.target=c;c=arguments[1]}else {b=c.target}Ext.Component.prototype.constructor.call(this,c);if(b.isComponent){a.ownerCt=b;a.hidden=!0;a.renderTo=a.getMaskTarget();a.external=a.renderTo===Ext.getBody();a.bindComponent(b)}else {b=Ext.get(b);a.isElement=!0;a.renderTo=a.target}a.render(a.renderTo);if(a.store){a.bindStore(a.store,!0)}},initRenderData:function(){var a=Ext.Component.prototype.initRenderData.apply(this,arguments);a.msg=this.msg||'';return a},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(b){var a=this,c={scope:this,resize:a.sizeMask};if(a.external){c.added=a.onComponentAdded;c.removed=a.onComponentRemoved;if(b.floating){c.move=a.sizeMask;a.activeOwner=b}else {if(b.ownerCt){a.onComponentAdded(b.ownerCt)}}}a.mon(b,c);if(a.external){a.mon(Ext.GlobalEvents,{show:a.onContainerShow,hide:a.onContainerHide,expand:a.onContainerExpand,collapse:a.onContainerCollapse,scope:a})}},onComponentAdded:function(b){var a=this;delete a.activeOwner;a.floatParent=b;if(!b.floating){b=b.up('[floating]')}if(b){a.activeOwner=b;a.mon(b,'move',a.sizeMask,a);a.mon(b,'tofront',a.onOwnerToFront,a)}else {a.preventBringToFront=!0}b=a.floatParent.ownerCt;if(a.rendered&&a.isVisible()&&b){a.floatOwner=b;a.mon(b,'afterlayout',a.sizeMask,a,{single:!0})}},onComponentRemoved:function(d){var a=this,b=a.activeOwner,c=a.floatOwner;if(b){a.mun(b,'move',a.sizeMask,a);a.mun(b,'tofront',a.onOwnerToFront,a)}if(c){a.mun(c,'afterlayout',a.sizeMask,a)}delete a.activeOwner;delete a.floatOwner},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){a.el.on('mousedown',a.onMouseDown,a)}this.el.skipGarbageCollection=!0},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(b,a){this.el.setStyle('zIndex',a+1)},onContainerShow:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var a=this;if(a.rendered&&a.isVisible()){a.hide();a.showNext=!0}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var a=this,b=a.activeOwner||a.target,c=a.external?a.getOwner().el:a.getMaskTarget();if(a.rendered&&a.isVisible()){if(a.external){if(!a.isElement&&b.floating){a.onOwnerToFront(b,b.el.getZIndex())}a.el.setSize(c.getSize()).alignTo(c,'tl-tl')}a.msgWrapEl.center(a.el)}},bindStore:function(a,c){var b=this;Ext.destroy(b.proxyListeners);b.mixins.storeholder.bindStore.apply(b,arguments);a=b.store;if(a){while(a.getSource){a=a.getSource()}if(!a.loadsSynchronously()){b.proxyListeners=a.getProxy().on({exception:b.onLoad,scope:b,destroyable:!0})}if(a.isLoading()){b.onBeforeLoad()}}},getStoreListeners:function(d){var c=this.onLoad,b=this.onBeforeLoad,a={cachemiss:b,cachefilled:{fn:c,buffer:100}};if(!d.loadsSynchronously()){a.beforeload=b;a.load=c}return a},onDisable:function(){Ext.Component.prototype.onDisable.apply(this,arguments);if(this.loading){this.onLoad()}},getOwner:function(){return this.ownerCt||this.ownerCmp||this.floatParent},getMaskTarget:function(){var a=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?a.getTargetEl():a.getMaskTarget()||Ext.getBody()},onBeforeLoad:function(){var b=this,a=b.getOwner(),c;if(!b.disabled){b.loading=!0;if(a.componentLayoutCounter){b.maybeShow()}else {c=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=c;c.apply(a,arguments);b.maybeShow()}}}},maybeShow:function(){var a=this,b=a.getOwner();if(!b.isVisible(!0)){a.showNext=!0}else {if(a.loading&&b.rendered){a.show()}}},hide:function(){var b=this,a=b.ownerCt;if(b.isElement){a.unmask();b.fireEvent('hide',this);return}if(a){a.enableTabbing();a.setMasked(!1)}delete b.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;if(a.isElement){a.ownerCt.mask(this.useMsg?this.msg:'',this.msgCls);a.fireEvent('show',this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var a=this,b=a.ownerCt;a.loading=!0;Ext.Component.prototype.afterShow.apply(this,arguments);b.disableTabbing();b.setMasked(!0);a.el.restoreTabbableState();a.syncMaskState()},syncMaskState:function(){var a=this,c=a.ownerCt,b=a.el;if(a.isVisible()){if(a.hasOwnProperty('msgWrapCls')){b.dom.className=a.msgWrapCls}if(a.useMsg){a.msgTextEl.setHtml(a.msg)}else {a.msgEl.hide()}if(a.shim||Ext.useShims){b.enableShim(null,!0)}else {b.disableShim()}if(c.el.contains(Ext.Element.getActiveElement())){a.focus()}a.sizeMask()}},onLoad:function(){this.loading=!1;this.hide()},beforeDestroy:function(){this.ownerCt=null;this.bindStore(null);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.onDestroy.call(this)}},1,['loadmask'],['component','box','loadmask'],{'component':!0,'box':!0,'loadmask':!0},['widget.loadmask'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext,'LoadMask'],0);Ext.cmd.derive('Ext.layout.component.Component',Ext.layout.Layout,{type:'component',isComponentLayout:!0,nullBox:{},usesContentHeight:!0,usesContentWidth:!0,usesHeight:!0,usesWidth:!0,widthCache:{},heightCache:{},beginLayoutCycle:function(a,j){var c=this,f=c.owner,p=a.ownerCtContext,g=a.heightModel,h=a.widthModel,o=f.el.dom===document.body,e=f.lastBox||c.nullBox,d=f.el.lastBox||c.nullBox,m=!o,k=a.isTopLevel,i,b,n,l;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,a,j);if(j){if(c.usesContentWidth){++a.consumersContentWidth}if(c.usesContentHeight){++a.consumersContentHeight}if(c.usesWidth){++a.consumersWidth}if(c.usesHeight){++a.consumersHeight}if(p&&!p.hasRawContent){i=f.ownerLayout;if(i){if(i.usesWidth){++a.consumersWidth}if(i.usesHeight){++a.consumersHeight}}}}if(h.configured){n=f[h.names.width];if(k&&h.calculatedFrom){n=e.width}if(!o){m=c.setWidthInDom||(j?n!==d.width:h.constrained)}a.setWidth(n,m)}else {if(k){if(h.calculated){b=e.width;a.setWidth(b,b!==d.width)}b=e.x;a.setProp('x',b,b!==d.x)}}if(g.configured){l=f[g.names.height];if(k&&g.calculatedFrom){l=e.height}if(!o){m=j?l!==d.height:g.constrained}a.setHeight(l,m)}else {if(k){if(g.calculated){b=e.height;a.setHeight(b,b!==d.height)}b=e.y;a.setProp('y',b,b!==d.y)}}},finishedLayout:function(c){var h=this,e=c.children,g=h.owner,i,d,f,a,b;if(e){i=e.length;for(d=0;d','
    {text}
    ','
    ',''],componentLayout:'progressbar',ariaRole:'progressbar',initRenderData:function(){var a=this,b=a.value||0;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{internalText:!a.hasOwnProperty('textEl'),text:a.text||' ',percentage:b*100})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.textEl){a.textEl=Ext.get(a.textEl);a.updateText(a.text)}else {a.textEl=a.el.select('.'+a.baseCls+'-text')}},updateValue:function(a){this.updateProgress(a,Math.round(a*100)+'%')},updateProgress:function(b,c,d){b=b||0;var a=this,f=a.value,e=a.getTextTpl();a.value=b||(b=0);if(c!=null){a.updateText(c)}else {if(e){a.updateText(e.apply({value:b,percent:b*100}))}}if(a.rendered&&!a.destroyed){if(d===!0||d!==!1&&a.animate){a.bar.stopAnimation();a.bar.animate(Ext.apply({from:{width:f*100+'%'},to:{width:b*100+'%'}},a.animate))}else {a.bar.setStyle('width',b*100+'%')}}a.fireEvent('update',a,b,c);return a},updateText:function(b){var a=this;a.text=b;if(a.rendered){a.textEl.setHtml(a.text)}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(a){var b=this,c;if(!b.waitTimer){c=b;a=a||{};b.updateText(a.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var c=a.increment||10;d-=1;b.updateProgress(((d+c)%c+1)*(100/c)*0.01,null,a.animate)},interval:a.interval||1000,duration:a.duration,onStop:function(){if(a.fn){a.fn.apply(a.scope||b)}b.reset()},scope:c})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(b){var a=this;a.updateProgress(0);a.clearTimer();if(b===!0){a.hide()}return a},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},onDestroy:function(){var a=this,b=a.bar;a.clearTimer();if(a.rendered){if(a.textEl.isComposite){a.textEl.clear()}Ext.destroyMembers(a,'textEl','progressBar');if(b&&a.animate){b.stopAnimation()}}Ext.Component.prototype.onDestroy.call(this)}},0,['progressbar'],['component','box','progressbar'],{'component':!0,'box':!0,'progressbar':!0},['widget.progressbar'],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,'ProgressBar'],0);Ext.cmd.derive('Ext.dom.ButtonElement',Ext.dom.Element,{setSize:function(b,a,e){var d=this,c=d.component;Ext.dom.Element.prototype.setSize.call(this,b,a,e);c.btnWrap.setStyle('table-layout',!b||b==='auto'?'':'fixed');c.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return d},setStyle:function(a,c){var f=this,e=f.component,d,b;Ext.dom.Element.prototype.setStyle.call(this,a,c);if(a){if(a==='width'||typeof a!=='string'&&'width' in a){d=c||a.width;e.btnWrap.setStyle('table-layout',!d||d==='auto'?'':'fixed')}if(a==='height'||typeof a!=='string'&&'height' in a){b=c||a.height;e.btnEl.setStyle('height',!b||b==='auto'?'':'auto')}}return f},setHeight:function(a,b){Ext.dom.Element.prototype.setHeight.call(this,a,b);this.component.btnEl.setStyle('height',!a||a==='auto'?'':'auto');return this},setWidth:function(a,b){Ext.dom.Element.prototype.setWidth.call(this,a,b);this.component.btnWrap.setStyle('table-layout',!a||a==='auto'?'':'fixed');return this}},0,0,0,0,0,0,[Ext.dom,'ButtonElement'],0);Ext.cmd.derive('Ext.button.Manager',Ext.Base,{singleton:!0,alternateClassName:'Ext.ButtonToggleManager',groups:{},pressedButton:null,init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a});a.initialized=!0}},onButtonMousedown:function(b,c){var a=this.pressedButton;if(a){a.onMouseUp(c)}this.pressedButton=b},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(c,e){if(e){var b=this.groups[c.toggleGroup],d=b.length,a;for(a=0;a{[values.$comp.renderIcon(values)]}{text}{[values.$comp.renderIcon(values)]}{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]} {closeText} tabindex="{tabIndex}" {$}="{.}">{arrowElText}
    ',iconTpl:'background-image:url({iconUrl});
    font-family:{glyphFontFamily};">&#{glyph};',scale:'small',allowedScales:['small','medium','large'],arrowAlign:'right',arrowCls:'arrow',maskOnDisable:!1,shrinkWrap:3,frame:!0,autoEl:{tag:'a',hidefocus:'on',unselectable:'on'},hasFrameTable:function(){return this.href&&this.frameTable},frameTableListener:function(){if(!this.disabled){this.doNavigate()}},doNavigate:function(){if(this.hrefTarget==='_blank'){window.open(this.getHref(),this.hrefTarget)}else {location.href=this.getHref()}},_triggerRegion:{},initComponent:function(){var a=this;a.addCls('x-unselectable');Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=!0;a.setMenu(a.menu,!1,!0)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty('preventDefault');if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=!1}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==''){a.enableToggle=!0}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var a=this,b=Ext.Component.prototype.getElConfig.call(this),d=a.getHref(),c=a.hrefTarget;if(b.tag==='a'){if(!a.disabled){b.tabIndex=a.tabIndex}if(d){if(!a.disabled){b.href=d;if(c){b.target=c}}}}if(!a.ariaStaticRoles[a.ariaRole]){if(a.menu&&!a.isSplitButton){b['aria-haspopup']=!0}if(a.enableToggle){b['aria-pressed']=!!a.pressed}}return b},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);if(this.pressed){this.addCls(this._pressedCls)}},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),this.getTemplateArgs())},getMenu:function(){return this.menu||null},setMenu:function(b,g,h){var a=this,e=a.menu,d=a.isSplitButton?a.arrowEl&&a.arrowEl.dom:a.ariaEl.dom,f,c;if(e&&!h){if(g!==!1&&a.destroyMenu){e.destroy()}e.ownerCmp=null}if(b){f=b.isMenu;b=Ext.menu.Manager.get(b,{ownerCmp:a});b.setOwnerCmp(a,f);b.menuClickBuffer=250;a.mon(b,{scope:a,show:a.onMenuShow,hide:a.onMenuHide});if(!e&&a.getArrowVisible()){a.split=!0;if(a.rendered){a._addSplitCls();a.updateLayout()}}a.menu=b;if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.isSplitButton?a.ariaArrowElAttributes||(a.ariaArrowElAttributes={}):a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {if(a.rendered){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns');a._removeSplitCls();a.updateLayout()}else {c=a.isSplitButton?a.ariaArrowElAttributes:a.ariaRenderAttributes;if(c){delete c['aria-haspopup'];delete c['aria-owns']}}a.split=!1;a.menu=null}},onRender:function(){var a=this,d,c,b;Ext.Component.prototype.onRender.apply(this,arguments);c=a.el;if(a.tooltip){a.setTooltip(a.tooltip,!0)}if(a.handleMouseEvents){b={scope:a,mouseover:a.onMouseOver,mouseout:a.onMouseOut,mousedown:a.onMouseDown};if(a.split){b.mousemove=a.onMouseMove}}else {b={scope:a}}if(Ext.supports.Touch){b.touchstart=a.onTouchStart}if(a.repeat){a.mon(new Ext.util.ClickRepeater(c,Ext.isObject(a.repeat)?a.repeat:{}),'click',a.onRepeatClick,a)}else {if(b[a.clickEvent]){d=!0}else {b[a.clickEvent]=a.onClick}}a.mon(c,b);if(a.hasFrameTable()){a.mon(a.frameTable,'click',a.frameTableListener,a)}if(d){a.mon(c,a.clickEvent,a.onClick,a)}Ext.button.Manager.register(a)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var a=this,i=a._btnCls,j=a._baseIconCls,d=a.getIconAlign(),b=a.glyph,f=Ext._glyphFontFamily,e=a.text,h=a._hasIcon(),g=a._hasIconCls,c;if(typeof b==='string'){c=b.split('@');b=c[0];f=c[1]}return {split:a.isSplitButton,innerCls:a._innerCls,splitCls:a.getArrowVisible()?a.getSplitCls():'',iconUrl:a.icon,iconCls:a.iconCls,glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:f,text:e||' ',closeText:a.closeText,textCls:e?a._textCls:'',noTextCls:e?'':a._noTextCls,hasIconCls:h?g:'',btnWrapCls:a._btnWrapCls,btnWrapStyle:a.width?'table-layout:fixed;':'',btnElStyle:a.height?'height:auto;':'',btnCls:i,baseIconCls:j,iconBeforeText:d==='left'||d==='top',iconAlignCls:h?g+'-'+d:'',textAlignCls:i+'-'+a.getTextAlign(),arrowElCls:a._arrowElCls,tabIndex:a.tabIndex}},renderIcon:function(a){return this.getTpl('iconTpl').apply(a)},setHref:function(c){var a=this,d=a.hrefTarget,b;a.href=c;if(!a.configuredWithPreventDefault){a.preventDefault=!c}if(a.rendered){b=a.el.dom;if(!c||a.disabled){b.removeAttribute('href');b.removeAttribute('hrefTarget')}else {b.href=a.getHref();if(d){b.target=d}}}},getHref:function(){var a=this,b=a.href;return b?Ext.urlAppend(b,Ext.Object.toQueryString(Ext.apply({},a.params,a.baseParams))):!1},setParams:function(c){var a=this,b;a.params=c;if(a.rendered){b=a.el.dom;if(a.disabled){b.removeAttribute('href')}else {b.href=a.getHref()||''}}},getSplitCls:function(){var a=this;return a.split?a.baseCls+'-'+a.arrowCls+' '+(a.baseCls+'-'+a.arrowCls+'-'+a.arrowAlign):''},setIcon:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.icon||'';a.icon=b;if(b!==c){if(d){d.setStyle('background-image',b?'url('+b+')':'');a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setIconCls:function(b){b=b||'';var a=this,d=a.btnIconEl,c=a.iconCls||'';a.iconCls=b;if(c!==b){if(d){d.removeCls(c);d.addCls(b);a._syncHasIconCls();if(a.didIconStateChange(c,b)){a.updateLayout()}}a.fireEvent('iconchange',a,c,b)}return a},setGlyph:function(b){b=b||0;var a=this,c=a.btnIconEl,f=a.glyph,g=a._glyphCls,d,e;a.glyph=b;if(c){if(typeof b==='string'){e=b.split('@');b=e[0];d=e[1]||Ext._glyphFontFamily}if(!b){c.dom.innerHTML='';c.removeCls(g)}else {if(f!==b){c.dom.innerHTML='&#'+b+';';c.addCls(g)}}if(d){c.setStyle('font-family',d)}a._syncHasIconCls();if(a.didIconStateChange(f,b)){a.updateLayout()}}a.fireEvent('glyphchange',a,a.glyph,f);return a},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c||!b){a.clearTip()}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.el.id},b));a.tooltip=b}else {a.el.dom.setAttribute(a.getTipAttr(),b)}}}else {a.tooltip=b}return a},updateIconAlign:function(e,f){var b=this,a,d,c;if(b.rendered){a=b.btnEl;d=b.btnIconEl;c=b._hasIconCls;if(f){a.removeCls(c+'-'+f)}a.addCls(c+'-'+e);if(e==='top'||e==='left'){a.insertFirst(d)}else {a.appendChild(d)}b.updateLayout()}},updateTextAlign:function(e,d){var a=this,c=a.btnEl,b=a._btnCls;if(a.rendered){c.removeCls(b+'-'+d);c.addCls(b+'-'+e)}},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},clearTip:function(){var a=this,b=a.el;if(Ext.quickTipsActive&&Ext.isObject(a.tooltip)){Ext.tip.QuickTipManager.unregister(b)}else {b.dom.removeAttribute(a.getTipAttr())}},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this,b=a.menu;if(a.rendered){Ext.destroy(a.keyMap);delete a.keyMap}if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.onDestroy.call(this)},setHandler:function(a,b){this.handler=a;if(arguments.length>1){this.scope=b}return this},updateText:function(b,c){b=b==null?'':String(b);c=c||'';var a=this,e=a.btnInnerEl,d=a.btnEl;if(a.rendered){e.setHtml(b||' ');d[b?'addCls':'removeCls'](a._textCls);d[b?'removeCls':'addCls'](a._noTextCls);a.updateLayout()}a.fireEvent('textchange',a,c,b)},didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},click:function(a){return this.onClick(a)},setPressed:function(a){return this.toggle(a!==!1)},toggle:function(b,d){var a=this,c=a.ariaEl.dom;b=b===undefined?!a.pressed:!!b;if(a.fireEvent('beforetoggle',a,b)!==!1){if(b!==a.pressed){a[b?'addCls':'removeCls'](a._pressedCls);a.pressed=b;if(c){c.setAttribute('aria-pressed',b)}if(!d){a.fireEvent('toggle',a,b);Ext.callback(a.toggleHandler,a.scope,[a,b],0,a);if(a.reference&&a.publishState){a.publishState('pressed',b)}}}}return a},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(c){var a=this,b=a.menu,d=!c||c.pointerType;if(b&&a.rendered){if(a.tooltip&&Ext.quickTipsActive&&a.getTipAttr()!=='title'){Ext.tip.QuickTipManager.getQuickTip().cancelShow(a.el)}if(b.isVisible()){if(d){b.hide()}else {b.focus()}}else {if(!c||a.showEmptyMenu||b.items.getCount()>0){b.autoFocus=!d;b.showBy(a.el,a.menuAlign)}}}return a},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(b,a){this.onClick(a)},onTouchStart:function(a){this.doPreventDefault(a)},onEnterKey:function(a){this.onClick(a);a.stopEvent();return !1},onClick:function(b){var a=this;a.doPreventDefault(b);if(b.type!=='keydown'&&b.button){return}if(!a.disabled){a.doToggle();a.maybeShowMenu(b);a.fireHandler(b)}},doPreventDefault:function(a){if(a&&(this.preventDefault||this.disabled&&this.getHref())){a.preventDefault()}},fireHandler:function(b){var a=this;if(a.fireEvent('click',a,b)!==!1&&!a.destroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},doToggle:function(){var a=this;if(a.enableToggle&&(a.allowDepress!==!1||!a.pressed)){a.toggle()}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,!0,!0)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,!0,!0)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(b){var a=this,c=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(b)){if(!c){a.onMenuTriggerOver(b)}}else {if(c){a.onMenuTriggerOut(b)}}}},isWithinTrigger:function(d){var a=this,e=a.el,c,b;c=a.arrowAlign==='right'?d.getX()-a.getX():d.getY()-e.getY();b=a.getTriggerRegion();return c>b.begin&&c{iconMarkup}
    role="{textElRole}">{text}
    {iconMarkup}',iconTpl:'',_textAlignClasses:{left:'x-title-align-left',center:'x-title-align-center',right:'x-title-align-right'},_iconAlignClasses:{top:'x-title-icon-top',right:'x-title-icon-right',bottom:'x-title-icon-bottom',left:'x-title-icon-left'},_rotationClasses:{0:'x-title-rotate-none',1:'x-title-rotate-right',2:'x-title-rotate-left'},_rotationAngles:{1:90,2:270},baseCls:'x-title',_titleSuffix:'-title',_glyphCls:'x-title-glyph',_iconWrapCls:'x-title-icon-wrap',_baseIconCls:'x-title-icon',_itemCls:'x-title-item',_textCls:'x-title-text',afterComponentLayout:function(){var b=this,c=b.getRotation(),a,d,e;if(c&&!Ext.isIE8){e=b.el;a=b.lastBox;d=a.x;e.setStyle(b._getVerticalAdjustDirection(),d+(c===1?a.width:-a.height)+'px')}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var a=this,b=a.getRotation(),c=a.el;Ext.Component.prototype.onRender.call(this);if(b){c.setVertical(a._rotationAngles[b])}if(Ext.supports.FixedTableWidthBug){c._needsTableWidthFix=!0}},applyText:function(a){if(!a){a=' '}return a},beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.addCls(a._rotationClasses[a.getRotation()]);a.addCls(a._textAlignClasses[a.getTextAlign()])},getIconMarkup:function(){return this.getTpl('iconTpl').apply(this.getIconRenderData())},getIconRenderData:function(){var a=this,g=a.getIcon(),f=a.getIconCls(),b=a.getGlyph(),d=Ext._glyphFontFamily,e=a.getIconAlign(),c;if(typeof b==='string'){c=b.split('@');b=c[0];d=c[1]}return {id:a.id,ui:a.ui,itemCls:a._itemCls,iconUrl:g,iconCls:f,iconWrapCls:a._iconWrapCls,baseIconCls:a._baseIconCls,iconAlignCls:a._iconAlignClasses[e],glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:d}},initRenderData:function(){var a=this,c,b;b=Ext.apply({text:a.getText(),textElRole:a.textElRole,id:a.id,ui:a.ui,itemCls:a._itemCls,textCls:a._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(a._hasIcon()){c=a.getIconAlign();b.iconMarkup=a.getIconMarkup();b.iconBeforeTitle=c==='top'||c==='left'}return b},onAdded:function(a,f,e){var d=this,c=d._titleSuffix,b=a.baseCls;d.addCls([b+c,b+c+'-'+a.ui]);Ext.Component.prototype.onAdded.call(this,a,f,e)},updateGlyph:function(a,g){a=a||0;var b=this,f=b._glyphCls,c,d,e;b.glyph=a;if(b.rendered){b._syncIconVisibility();c=b.iconEl;if(typeof a==='string'){e=a.split('@');a=e[0];d=e[1]||Ext._glyphFontFamily}if(!a){c.dom.innerHTML='';c.removeCls(f)}else {if(g!==a){c.dom.innerHTML='&#'+a+';';c.addCls(f)}}if(d){c.setStyle('font-family',d)}if(b._didIconStateChange(g,a)){b.updateLayout()}}},updateIcon:function(a,c){a=a||'';var b=this,d;if(b.rendered&&a!==c){b._syncIconVisibility();d=b.iconEl;d.setStyle('background-image',a?'url('+a+')':'');if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateIconAlign:function(d,f){var a=this,b=a.iconWrapEl,e,c;if(a.iconWrapEl){e=a.el;c=a._iconAlignClasses;if(f){b.removeCls(c[f])}b.addCls(c[d]);if(d==='top'||d==='left'){e.insertFirst(b)}else {e.appendChild(b)}a.updateLayout()}},updateIconCls:function(a,c){a=a||'';var b=this,d;if(b.rendered&&c!==a){b._syncIconVisibility();d=b.iconEl;if(c){d.removeCls(c)}d.addCls(a);if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateRotation:function(d,e){var a=this,b,c;if(a.rendered){b=a.el;c=a._rotationClasses;a.removeCls(c[e]);a.addCls(c[d]);b.setHorizontal();if(d){b.setVertical(a._rotationAngles[d])}b.setStyle({right:'',left:'',top:'',height:'',width:''});a.lastBox=null;a.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,c){var a=this,b=a._textAlignClasses;if(a.rendered){if(c){a.removeCls(b[c])}a.addCls(b[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return 'left'},_didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var a=this,f=a.el,e=a._hasIcon(),b=a.iconWrapEl,d,c;if(e&&!b){c=a.iconAlign;d=c==='left'||c==='top';f.dom.insertAdjacentHTML(d?'afterbegin':'beforeend',a.getIconMarkup());b=a.iconWrapEl=f[d?'first':'last']();a.iconEl=b.first()}if(b){b.setDisplayed(e)}}}},0,['title'],['component','box','title'],{'component':!0,'box':!0,'title':!0},['widget.title'],0,[Ext.panel,'Title'],0);Ext.cmd.derive('Ext.panel.Tool',Ext.Component,{isTool:!0,baseCls:'x-tool',disabledCls:'x-tool-disabled',toolPressedCls:'x-tool-pressed',toolOverCls:'x-tool-over',childEls:['toolEl'],renderTpl:[''],toolOwner:null,tooltipType:'qtip',stopEvent:!0,ariaRole:'button',focusable:!0,tabIndex:0,keyHandlers:{SPACE:'onClick',ENTER:'onClick'},cacheHeight:!0,cacheWidth:!0,initComponent:function(){var a=this;a.type=a.type||a.id;Ext.applyIf(a.renderData,{baseCls:a.baseCls,type:a.type});a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);a.el.on({click:a.onClick,mousedown:a.onMouseDown,mouseover:a.onMouseOver,mouseout:a.onMouseOut,scope:a});b=a.tooltip;if(b){a.setTooltip(b)}},tipAttrs:{qtip:'data-qtip'},setTooltip:function(b,d){var a=this,g=a.tooltip,f=a.tooltipType,h=a.id,e=a.el,c;if(g&&Ext.quickTipsActive&&Ext.isObject(g)){Ext.tip.QuickTipManager.unregister(h)}a.tooltip=b;if(d){a.tooltipType=d}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:h},b))}else {if(e){if(d&&f&&d!==f){c=a.tipAttrs[f]||'title';e.dom.removeAttribute(c)}c=a.tipAttrs[d||f]||'title';e.dom.setAttribute(c,b)}}if(c!=='title'&&a.ariaRole&&a.ariaRole!=='presentation'){if(e){e.dom.setAttribute('aria-label',b)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-label']=b}}}},setType:function(b){var a=this,c=a.type;a.type=b;if(a.rendered){if(c){a.toolEl.removeCls(a.baseCls+'-'+c)}a.toolEl.addCls(a.baseCls+'-'+b)}else {a.renderData.type=b}return a},onDestroy:function(){var a=this,b=a.keyMap;a.setTooltip(null);delete a.toolOwner;Ext.Component.prototype.onDestroy.call(this)},privates:{onClick:function(b,c){var a=this;if(a.disabled){return !1}if(b.type!=='keydown'){a.el.removeCls(a.toolPressedCls+' '+a.toolOverCls)}if(a.stopEvent!==!1){b.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[b,c,a.ownerCt,a],0,a)}else {if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,b],0,a)}}a.fireEvent('click',a,b,a.toolOwner||a.ownerCt);return !0},onMouseDown:function(a){a.preventDefault();if(this.disabled){return !1}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return !1}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)}}},0,['tool'],['component','box','tool'],{'component':!0,'box':!0,'tool':!0},['widget.tool'],0,[Ext.panel,'Tool'],0);Ext.cmd.derive('Ext.util.KeyMap',Ext.Base,{alternateClassName:'Ext.KeyMap',eventName:'keydown',constructor:function(b){var a=this;if(arguments.length!==1||typeof b==='string'||b.dom||b.tagName||b===document||b.isComponent){a.legacyConstructor.apply(a,arguments);return}Ext.apply(a,b);a.bindings=[];if(!a.target.isComponent){a.target=Ext.get(a.target)}if(a.binding){a.addBinding(a.binding)}else {if(b.key){a.addBinding(b)}}a.enable()},legacyConstructor:function(d,b,c){var a=this;Ext.apply(a,{target:Ext.get(d),eventName:c||a.eventName,bindings:[]});if(b){a.addBinding(b)}a.enable()},addBinding:function(b){var a=this,e=b.key,c,d;if(a.processing){a.bindings=a.bindings.slice(0)}if(Ext.isArray(b)){for(c=0,d=b.length;c=i){return a}}}if(!g){return}a=c.findNextFocusableChild({beforeRender:h,items:b,step:!0});if(a){c.activateFocusable(a)}return a},clearFocusables:function(){var d=this,c=d.getFocusables(),e=c.length,a,b;for(b=0;b0?d0?d+b:e-1;for(;;a+=b){if(d<0&&(a>=e||a<0)){return null}else {if(a>=e){a=-1;continue}else {if(a<0){a=e;continue}else {if(a===d){return null}}}}c=g[a];if(!c||!c.focusable||c.disabled){continue}if(i||c.isFocusable&&c.isFocusable()){return c}}return null},getFocusableContainerEl:function(){return this.el},onFocusableChildAdd:function(a){if(this.enableFocusableContainer){return this.doFocusableChildAdd(a)}},activateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:this.activeChildTabIndex})}},deactivateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();if(a){a.set({tabIndex:undefined})}},isFocusableContainerActive:function(){var e=this,d=!1,c,b,a;c=e.getFocusableContainerEl();if(c&&c.isTabbable&&c.isTabbable()){d=!0}else {b=e.lastFocusedChild;a=b&&b.getFocusEl&&b.getFocusEl();if(a&&a.isTabbable&&a.isTabbable()){d=!0}}return d},doFocusableChildAdd:function(a){if(a.focusable){a.focusableContainer=this}},onFocusableChildRemove:function(a){if(this.enableFocusableContainer){return this.doFocusableChildRemove(a)}a.focusableContainer=null},doFocusableChildRemove:function(a){if(a===this.lastFocusedChild){this.lastFocusedChild=null;this.activateFocusableContainerEl()}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);this.mousedownTimestamp=a===this?Ext.Date.now():0;if(a===this){c.preventDefault()}},onFocusEnter:function(f){var a=this,d=f.toComponent,c=a.mousedownTimestamp,e=50,b;if(!a.enableFocusableContainer){return null}a.mousedownTimestamp=0;if(d===a){if(!c||Ext.Date.now()-c>e){b=a.initDefaultFocusable();if(b){a.deactivateFocusableContainerEl();b.focus()}}}else {a.deactivateFocusableContainerEl()}return d},onFocusLeave:function(c){var a=this,b=a.lastFocusedChild;if(!a.enableFocusableContainer){return}if(!a.destroyed&&!a.destroying){a.clearFocusables();if(b&&!b.disabled){a.activateFocusable(b)}else {a.activateFocusableContainerEl()}}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.enableFocusableContainer){return}a.clearFocusables();a.activateFocusable(b);if(b.needArrowKeys){a.guardFocusableChild(b)}},guardFocusableChild:function(c){var b=this,d=b.activeChildTabIndex,a;a=b.findNextFocusableChild({child:c,step:-1});if(a){a.setTabIndex(d)}a=b.findNextFocusableChild({child:c,step:1});if(a){a.setTabIndex(d)}},afterFocusableChildFocus:function(a){if(!this.enableFocusableContainer){return}this.lastFocusedChild=a},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this;if(!a.enableFocusableContainer){return}if(b!==a.lastFocusedChild){a.deactivateFocusable(b);if(!a.isFocusableContainerActive()){a.activateFocusableContainerEl()}}},beforeFocusableChildDisable:function(c){var a=this,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(c.hasFocus){b=a.findNextFocusableChild({child:c})||c.findFocusTarget();if(b){b.focus()}}},onFocusableChildDisable:function(d){var a=this,c=a.lastFocusedChild,b;if(!a.enableFocusableContainer||a.destroying||a.destroyed){return}if(d===c){a.activateFocusableContainerEl()}b=a.findNextFocusableChild({step:1});if(!b){a.deactivateFocusableContainerEl()}},onFocusableChildShow:Ext.privateFn,onFocusableChildHide:Ext.privateFn,onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn}},0,0,0,0,0,0,[Ext.util,'FocusableContainer'],0);Ext.cmd.derive('Ext.panel.Header',Ext.panel.Bar,{isHeader:!0,defaultType:'tool',indicateDrag:!1,weight:-1,shrinkWrap:3,iconAlign:'left',titleAlign:'left',titlePosition:0,titleRotation:'default',autoEl:{role:'presentation'},beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{xtype:'title',flex:1},merge:function(a,b){if(typeof a!=='object'){a={text:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:'x-header',initComponent:function(){var a=this,b=a.items,d=a.itemPosition,c=[a.headerCls];a.tools=a.tools||[];a.items=b=b?b.slice():[];if(d!==undefined){a._userItems=b.slice();a.items=b=[]}a.indicateDragCls=a.headerCls+'-draggable';if(a.indicateDrag){c.push(a.indicateDragCls)}a.addCls(c);a.syncNoBorderCls();a.enableFocusableContainer=!a.isAccordionHeader&&a.tools.length>0;if(a.enableFocusableContainer){a.ariaRole='toolbar'}Ext.Array.push(b,a.tools);a.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);a.on({dblclick:a.onDblClick,click:a.onClick,element:'el',scope:a})},addTool:function(b){var a=this;a.add(Ext.ComponentManager.create(b,'tool'));if(!a.isAccordionHeader&&a.tools.length>0&&!a.enableFocusableContainer){a.enableFocusableContainer=!0;a.ariaRole='toolbar';if(a.rendered){a.ariaEl.dom.setAttribute('role','toolbar');a.initFocusableContainer(!0)}}},afterLayout:function(){var a=this,e,b,c,d;if(a.vertical){b=a.frameTR;if(b){e=a.frameBR;c=a.frameTL;d=a.getWidth()-b.getPadding('r')-(c?c.getPadding('l'):a.el.getBorderWidth('l'))+'px';e.setStyle('background-position-x',d);b.setStyle('background-position-x',d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(a,d){var b=this,c,e;a=a||'';c=typeof a==='string';if(c){a={text:a}}if(d){Ext.suspendLayouts();d.setConfig(a);Ext.resumeLayouts(!0);a=d}else {if(c){a.xtype='title'}a.ui=b.ui;e='rotation' in a;a.id=b.id+'-title';if(b.isAccordionHeader){a.ariaRole='tab';a.textElRole=null;a.focusable=!0}a=Ext.create(a);if(!e&&b.vertical&&b.titleRotation==='default'){a.rotation=1}}return a},applyTitlePosition:function(b){var a=this.items.getCount();if(this._titleInItems){--a}return Math.max(Math.min(b,a),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var a=this,b=a.itemPosition;a.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(b!==undefined){a.insert(b,a._userItems)}},getTools:function(){return this.tools.slice()},onAdd:function(a,c){var b=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,a,c);if(a.isTool){b.push(a);b[a.type]=a}},onAdded:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,a,c,b)},onRemoved:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,a,c,b)},setDock:function(e){var a=this,c=a.getTitle(),b=a.getTitleRotation(),d=c.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,e);if(b==='default'){b=a.vertical?1:0;if(b!==d){c.setRotation(b)}if(a.rendered){a.resetItemMargins()}}Ext.resumeLayouts(!0)},updateGlyph:function(a){this.getTitle().setGlyph(a)},updateIcon:function(a){this.getTitle().setIcon(a)},updateIconAlign:function(a,b){this.getTitle().setIconAlign(a)},updateIconCls:function(a){this.getTitle().setIconCls(a)},updateTitle:function(a,b){if(!b){this.insert(this.getTitlePosition(),a);this._titleInItems=!0}this.titleCmp=a},updateTitleAlign:function(a,b){this.getTitle().setTextAlign(a)},updateTitlePosition:function(a){this.insert(a,this.getTitle())},updateTitleRotation:function(a){if(a==='default'){a=this.vertical?1:0}this.getTitle().setRotation(a)},privates:{fireClickEvent:function(c,a){var b='.'+Ext.panel.Tool.prototype.baseCls;if(!a.getTarget(b)){this.fireEvent(c,this,a)}},getFramingInfoCls:function(){var a=this,c=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),b=a.ownerCt;if(!a.expanding&&b&&(b.collapsed||a.isCollapsedExpander)){c+='-'+b.collapsedCls}return c+'-'+a.dock},onClick:function(a){this.fireClickEvent('click',a)},onDblClick:function(a){this.fireClickEvent('dblclick',a)},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {this.mixins.focusablecontainer.onFocusableContainerMousedown.apply(this,arguments)}},syncBeforeAfterTitleClasses:function(l){var c=this,j=c.items,i=j.items,h=c.getTitlePosition(),k=i.length,g=j.generation,f=c.syncBeforeAfterGen,e,d,b,a;if(!l&&f===g){return}c.syncBeforeAfterGen=g;for(b=0;bh){if(f){a.removeCls(d)}a.addCls(e)}}}},syncNoBorderCls:function(){var a=this,b=this.ownerCt,c=a.headerCls+'-noborder';if(b?b.border===!1&&!b.frame:a.border===!1){a.addCls(c)}else {a.removeCls(c)}}}},0,['header'],['component','box','container','header'],{'component':!0,'box':!0,'container':!0,'header':!0},['widget.header'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.panel,'Header'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.None',Ext.Base,{alternateClassName:'Ext.layout.boxOverflow.None',factoryConfig:{defaultType:'none'},isBoxOverflowHandler:!0,$configPrefixed:!1,$configStrict:!1,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var c=this,d=b.state.boxPlan,a;if(d&&d.tooNarrow){a=c.handleOverflow(b);if(a){if(a.reservedSpace){c.layout.publishInnerCtSize(b,a.reservedSpace)}}}else {c.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(e){var b=this,d=b.layout.owner,c,a;if(d.hasListeners.overflowchange){c=d.query('>[hidden]');a=c.length;if(a!==b.lastHiddenCount){d.fireEvent('overflowchange',b.lastHiddenCount,a,c);b.lastHiddenCount=a}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(b){var a;if(b.isToolbar){a='toolbar'}else {if(b.isTabBar){a='tab-bar'}else {if(b.isMenu){a='menu'}else {if(b.isBreadcrumb){a='breadcrumb'}else {a=b.getXType()}}}}return a},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return ''},setVertical:function(){var b=this,a=b.layout,c=a.innerCt;c.removeCls(b.getOverflowCls(a.oppositeDirection));c.addCls(b.getOverflowCls(a.direction))}},1,0,0,0,['box.overflow.None','box.overflow.none'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout.container.boxOverflow,'None',Ext.layout.boxOverflow,'None'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Scroller',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Scroller',animateScroll:!1,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:'x-box-scroller',beforeSuffix:'-before-scroller',afterSuffix:'-after-scroller',constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.scrollPosition=0;a.scrollSize=0},getPrefixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.beforeSuffix,cls:this.createScrollerCls('beforeX'),style:'display:none'}},getSuffixConfig:function(){return {role:'presentation',id:this.layout.owner.id+this.afterSuffix,cls:this.createScrollerCls('afterX'),style:'display:none'}},createScrollerCls:function(g){var c=this,d=c.layout,b=d.owner,e=c.getOwnerType(b),a=c.scrollerCls,f=a+' '+a+'-'+d.names[g]+' '+a+'-'+e+' '+a+'-'+e+'-'+b.ui;if(b.plain){f+=' '+a+'-plain'}return f},getOverflowCls:function(a){return this.scrollerCls+'-body-'+a},beginLayout:function(a){a.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(a){var b=this,f=a.state.boxPlan,e=b.layout,d=e.names,g=Math.min(b.getMaxScrollPosition(),a.innerCtScrollPos),c;if(f&&f.tooNarrow){c=a.childItems[a.childItems.length-1].props;b.scrollSize=c[d.x]+c[d.width];b.updateScrollButtons();e.innerCt[d.setScrollLeft](g)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,a)},handleOverflow:function(i){var a=this,d=a.layout.names,h=d.getWidth,f=d.parallelMargins,g,e,b,c;a.showScrollers();b=a.getBeforeScroller();c=a.getAfterScroller();g=b[h]()+c[h]()+b.getMargin(f)+c.getMargin(f);e=i.targetContext.getPaddingInfo()[d.width];return {reservedSpace:Math.max(g-e,0)}},getBeforeScroller:function(){var a=this;return a._beforeScroller||(a._beforeScroller=a.createScroller(a.beforeSuffix,'beforeRepeater','scrollLeft'))},getAfterScroller:function(){var a=this;return a._afterScroller||(a._afterScroller=a.createScroller(a.afterSuffix,'afterRepeater','scrollRight'))},createScroller:function(g,f,e){var b=this,d=b.layout.owner,c=b.scrollerCls,a;a=d.el.getById(d.id+g);a.addClsOnOver(c+'-hover');a.addClsOnClick(c+'-pressed');a.setVisibilityMode(Ext.Element.DISPLAY);b[f]=new Ext.util.ClickRepeater(a,{interval:b.scrollRepeatInterval,handler:e,scope:b});return a},createWheelListener:function(){var a=this;a.wheelListener=a.layout.innerCt.on('mousewheel',a.onMouseWheel,a,{destroyable:!0})},onMouseWheel:function(a){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,!1)},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;if(!a.wheelListener){a.createWheelListener()}a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')},hideScrollers:function(){var a=this,b=a.getBeforeScroller(),c=a.getAfterScroller();if(b){b.hide();c.hide();a.layout.owner.removeClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')}},destroy:function(){Ext.destroyMembers(this,'beforeRepeater','afterRepeater','_beforeScroller','_afterScroller','wheelListener');this.callParent()},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getScrollAnim:function(){return {duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var a=this,c=a.getBeforeScroller(),d=a.getAfterScroller(),b;if(!c||!d){return}b=a.scrollerCls+'-disabled';c[a.atExtremeBefore()?'addCls':'removeCls'](b);d[a.atExtremeAfter()?'addCls':'removeCls'](b);a.scrolling=!1},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,!1)},scrollRight:function(){this.scrollBy(this.scrollIncrement,!1)},getScrollPosition:function(){var b=this,c=b.layout,a;if(isNaN(b.scrollPosition)){a=c.innerCt[c.names.getScrollLeft]()}else {a=b.scrollPosition}return a},getMaxScrollPosition:function(){var c=this,b=c.layout,a=c.scrollSize-b.innerCt.lastBox[b.names.width];return a<0?0:a},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var c=this,d=c.getBeforeScroller(),e=c.getAfterScroller(),b=c.layout.names,a=c.scrollerCls;d.removeCls(a+'-'+b.beforeY);e.removeCls(a+'-'+b.afterY);d.addCls(a+'-'+b.beforeX);e.addCls(a+'-'+b.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(g,b){var a=this,d=a.layout,e=d.names,f=a.getScrollPosition(),c=Ext.Number.constrain(g,0,a.getMaxScrollPosition());if(c!==f&&!a.scrolling){a.scrollPosition=NaN;if(b===undefined){b=a.animateScroll}d.innerCt[e.scrollTo](e.beforeScrollX,c,b?a.getScrollAnim():!1);if(b){a.scrolling=!0}else {a.updateScrollButtons()}a.fireEvent('scroll',a,c,b?a.getScrollAnim():!1)}},scrollToItem:function(a,i){var c=this,e=c.layout,h=e.owner,f=e.names,j=e.innerCt,d,g,b;a=c.getItem(a);if(a!==undefined){if(a===h.items.first()){b=0}else {if(a===h.items.last()){b=c.getMaxScrollPosition()}else {d=c.getItemVisibility(a);if(!d.fullyVisible){g=a.getBox(!1,!0);b=g[f.x];if(d.hiddenEnd){b-=j[f.getWidth]()-g[f.width]}}}}if(b!==undefined){c.scrollTo(b,i)}}},getItemVisibility:function(i){var d=this,h=d.getItem(i).getBox(!0,!0),g=d.layout,c=g.names,b=h[c.x],f=b+h[c.width],a=d.getScrollPosition(),e=a+g.innerCt[c.getWidth]();return {hiddenStart:be,fullyVisible:b>=a&&f<=e}}},1,0,0,0,['box.overflow.Scroller','box.overflow.scroller'],[['observable',Ext.mixin.Observable]],[Ext.layout.container.boxOverflow,'Scroller',Ext.layout.boxOverflow,'Scroller'],0);Ext.cmd.derive('Ext.dd.DragDropManager',Ext.Base,{singleton:!0,alternateClassName:['Ext.dd.DragDropMgr','Ext.dd.DDM'],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:!0,stopPropagation:!0,initialized:!1,locked:!1,init:function(){this.initialized=!0},POINT:0,INTERSECT:1,mode:0,notifyOccluded:!1,dragCls:'x-dd-drag-current',_execOnAll:function(f,g){var c=this.ids,d,e,b,a;for(d in c){if(c.hasOwnProperty(d)){a=c[d];for(e in a){if(a.hasOwnProperty(e)){b=a[e];if(!this.isTypeOfDD(b)){continue}b[f].apply(b,g)}}}}},addListeners:function(){var a=this;a.init();Ext.getDoc().on({mouseup:a.handleMouseUp,mousemove:{fn:a.handleMouseMove,capture:!1},dragstart:a.preventDrag,drag:a.preventDrag,dragend:a.preventDrag,capture:!0,scope:a});Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},preventDrag:function(a){if(this.isMouseDown){a.stopPropagation()}},_onResize:function(a){this._execOnAll('resetConstraints',[])},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isLocked:function(){return this.locked},locationCache:{},useCache:!0,clickPixelThresh:8,dragThreshMet:!1,clickTimeout:null,startX:0,startY:0,regDragDrop:function(b,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][b.id]=b},removeDDFromGroup:function(c,a){if(!this.ids[a]){this.ids[a]={}}var b=this.ids[a];if(b&&b[c.id]){delete b[c.id]}},_remove:function(b,f){var a=this,d=a.ids,e=b.groups,c;if(a.clearingAll){return}if(a.dragCurrent===b){a.dragCurrent=null}for(c in e){if(e.hasOwnProperty(c)){if(f){delete d[c]}else {if(d[c]){delete d[c][b.id]}}}}delete a.handleIds[b.id];delete a.locationCache[b.id]},regHandle:function(a,b){if(!this.handleIds[a]){this.handleIds[a]={}}this.handleIds[a][b]=b},isDragDrop:function(a){return this.getDDById(a)?!0:!1},getRelated:function(f,e){var b=[],c,d,a;for(c in f.groups){for(d in this.ids[c]){a=this.ids[c][d];if(!this.isTypeOfDD(a)){continue}if(!e||a.isTarget){b[b.length]=a}}}return b},isLegalTarget:function(e,d){var b=this.getRelated(e,!0),a,c;for(a=0,c=b.length;aa.clickPixelThresh||e>a.clickPixelThresh){a.startDrag(a.startX,a.startY)}}if(a.dragThreshMet){c.b4Drag(b);c.onDrag(b);if(!c.moveOnly){a.fireEvents(b,!1)}}a.stopEvent(b);return !0},fireEvents:function(e,t){var d=this,s=Ext.supports.Touch,c=d.dragCurrent,l=d.currentPoint,v=l.x,w=l.y,j=[],r=[],h=[],i=[],g=[],k=[],u=s?document.documentElement.clientWidth/window.innerWidth:1,p,b,o,q,a,f,n,m;if(!c||c.isLocked()){return}m=!(c.deltaX<0||c.deltaY<0);if(s||!d.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&m){p=c.getDragEl();if(m){p.style.visibility='hidden'}e.target=document.elementFromPoint(v/u,w/u);if(m){p.style.visibility='visible'}}for(a in d.dragOvers){b=d.dragOvers[a];delete d.dragOvers[a];if(!d.isTypeOfDD(b)||b.destroyed){continue}if(d.notifyOccluded){if(!this.isOverTarget(l,b,d.mode)){h.push(b)}}else {if(!e.within(b.getEl())){h.push(b)}}r[a]=!0}for(n in c.groups){if('string'!==typeof n){continue}for(a in d.ids[n]){b=d.ids[n][a];if(d.isTypeOfDD(b)&&(o=b.getEl())&&b.isTarget&&!b.isLocked()&&Ext.fly(o).isVisible(!0)&&(b!==c||c.ignoreSelf===!1)){if(d.notifyOccluded){if((b.zIndex=d.getZIndex(o))!==-1){q=!0}j.push(b)}else {if(e.within(b.getEl())){j.push(b);break}}}}}if(q){Ext.Array.sort(j,d.byZIndex)}for(a=0,f=j.length;a','',''],isSplitter:!0,baseCls:'x-splitter',collapsedClsInternal:'x-splitter-collapsed',canResize:!0,collapsible:null,collapseOnDblClick:!0,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:'next',horizontal:!1,vertical:!1,size:5,tracker:null,ariaRole:'separator',focusable:!0,tabIndex:0,getTrackerConfig:function(){return Ext.apply({xclass:'Ext.resizer.SplitterTracker',el:this.el,splitter:this},this.tracker)},beforeRender:function(){var a=this,c=a.getCollapseTarget(),b=a.collapsible,d;Ext.Component.prototype.beforeRender.call(this);if(c.collapsed){a.addCls(a.collapsedClsInternal)}if(!a.canResize){a.addCls(a.baseCls+'-noresize')}Ext.applyIf(a.renderData,{collapseDir:a.getCollapseDirection(),collapsible:b!==null?b:c.collapsible});a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-orientation']=a.orientation;a.protoEl.unselectable()},onRender:function(){var a=this,b;Ext.Component.prototype.onRender.apply(this,arguments);if(a.performCollapse!==!1){if(a.renderData.collapsible){a.mon(a.collapseEl,'click',a.toggleTargetCmp,a)}if(a.collapseOnDblClick){a.mon(a.el,'dblclick',a.toggleTargetCmp,a)}}a.getCollapseTarget().on({collapse:a.onTargetCollapse,expand:a.onTargetExpand,beforeexpand:a.onBeforeTargetExpand,beforecollapse:a.onBeforeTargetCollapse,scope:a});if(a.canResize){a.tracker=Ext.create(a.getTrackerConfig());a.relayEvents(a.tracker,['beforedragstart','dragstart','dragend'])}b=a.collapseEl;if(b){b.lastCollapseDirCls=a.collapseDirProps[a.collapseDirection].cls}},getCollapseDirection:function(){var b=this,a=b.collapseDirection,c,f,d,e;if(!a){c=b.collapseTarget;if(c.isComponent){a=c.collapseDirection}if(!a){e=b.ownerCt.layout.type;if(c.isComponent){d=b.ownerCt.items;f=Number(d.indexOf(c)===d.indexOf(b)-1)<<1|Number(e==='hbox')}else {f=Number(b.collapseTarget==='prev')<<1|Number(e==='hbox')}a=['bottom','right','top','left'][f]}b.collapseDirection=a}b.setOrientation(a==='top'||a==='bottom'?'horizontal':'vertical');return a},getCollapseTarget:function(){var a=this;return a.collapseTarget.isComponent?a.collapseTarget:a.collapseTarget==='prev'?a.previousSibling():a.nextSibling()},setCollapseEl:function(b){var a=this.collapseEl;if(a){a.setDisplayed(b)}},onBeforeTargetExpand:function(a){this.setCollapseEl('none')},onBeforeTargetCollapse:function(){this.setCollapseEl('none')},onTargetCollapse:function(b){var a=this;if(b===a.getCollapseTarget()&&b[a.orientation==='vertical'?'collapsedHorizontal':'collapsedVertical']()){a.el.addCls(a.collapsedClsInternal+' '+(a.collapsedCls||''))}a.setCollapseEl('')},onTargetExpand:function(b){var a=this;a.el.removeCls(a.collapsedClsInternal+' '+(a.collapsedCls||''));a.setCollapseEl('')},collapseDirProps:{top:{cls:'x-layout-split-top'},right:{cls:'x-layout-split-right'},bottom:{cls:'x-layout-split-bottom'},left:{cls:'x-layout-split-left'}},orientationProps:{horizontal:{opposite:'vertical',fixedAxis:'height',stretchedAxis:'width'},vertical:{opposite:'horizontal',fixedAxis:'width',stretchedAxis:'height'}},applyCollapseDirection:function(){var c=this,a=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],b;if(a){b=a.lastCollapseDirCls;if(b){a.removeCls(b)}a.addCls(a.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var a=this,e=a.orientation,b=a.orientationProps[e],f=a.size,d=b.fixedAxis,c=b.stretchedAxis,g=a.baseCls+'-';a[e]=!0;a[b.opposite]=!1;if(!a.hasOwnProperty(d)||a[d]==='100%'){a[d]=f}if(!a.hasOwnProperty(c)||a[c]===f){a[c]='100%'}a.removeCls(g+b.opposite);a.addCls(g+e)},setOrientation:function(b){var a=this;if(a.orientation!==b){a.orientation=b;a.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,e){var a=this.getCollapseTarget(),c=a.placeholder,b;if(Ext.isFunction(a.expand)&&Ext.isFunction(a.collapse)){if(c&&!c.hidden){b=!0}else {b=!a.hidden}if(b){if(a.collapsed){a.expand()}else {if(a.collapseDirection){a.collapse()}else {a.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},beforeDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.beforeDestroy.call(this)}},0,['splitter'],['component','box','splitter'],{'component':!0,'box':!0,'splitter':!0},['widget.splitter'],0,[Ext.resizer,'Splitter'],0);Ext.define('Ext.theme.neptune.resizer.Splitter',{override:'Ext.resizer.Splitter',size:8});Ext.cmd.derive('Ext.layout.container.Box',Ext.layout.container.Container,{alternateClassName:'Ext.layout.BoxLayout',type:'box',config:{align:'begin',constrainAlign:!1,enableSplitters:!0,overflowHandler:{$value:null,merge:function(a,b){if(typeof a==='string'){a={type:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},padding:0,pack:'start',stretchMaxPartner:undefined,vertical:!1,alignRoundingMethod:'round'},itemCls:'x-box-item',targetCls:'x-box-layout-ct',targetElCls:'x-box-target',innerCls:'x-box-inner',manageMargins:!0,createsInnerCt:!0,childEls:['innerCt','targetEl'],renderTpl:['{%var oc,l=values.$comp.layout,oh=l.overflowHandler;if (oh && oh.getPrefixConfig!==Ext.emptyFn) {if(oc=oh.getPrefixConfig())dh.generateMarkup(oc, out)}%}{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:!0,definitions:'var dh=Ext.DomHelper;'}],constructor:function(c){var a=this,b;Ext.layout.container.Container.prototype.constructor.apply(this,arguments);a.setVertical(a.vertical);a.flexSortFn=a.flexSort.bind(a);b=typeof a.padding;if(b==='string'||b==='number'){a.padding=Ext.util.Format.parseBox(a.padding);a.padding.height=a.padding.top+a.padding.bottom;a.padding.width=a.padding.left+a.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(h,b){var a=this,f=a.sizePolicy,g=a.align,p=h.flex,c=g,o=a.names,e=o.height,m=o.width,q=h[m],n=h[e],d=a._percentageRe,i=d.test(q),l=g==='stretch',j=g==='stretchmax',k=a.constrainAlign;if(!b&&(l||p||i||k&&!j)){b=a.owner.getSizeModel()}if(l){if(!d.test(n)&&b[e].shrinkWrap){c='stretchmax'}}else {if(!j){if(d.test(n)){c='stretch'}else {if(k&&!b[e].shrinkWrap){c='stretchmax'}else {c=''}}}}if(p||i){if(!b[m].shrinkWrap){f=f.flex}}return f[c]},flexSort:function(o,p){var k=this.names.maxWidth,l=this.names.minWidth,j=Infinity,c=o.target,d=p.target,m=c.flex,n=d.flex,a=0,g,i,f,h,e,b;f=c[k]||j;h=d[k]||j;g=c[l]||0;i=d[l]||0;e=isFinite(g)||isFinite(i);b=isFinite(f)||isFinite(h);if(e||b){if(b){a=f-h}if(a===0&&e){a=i-g}if(a===0){if(b){a=n-m}else {a=m-n}}}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(a){var b=this;if(b.direction==='vertical'&&a.collapsedVertical()){a.collapseMemento.capture(['flex']);delete a.flex}else {if(b.direction==='horizontal'&&a.collapsedHorizontal()){a.collapseMemento.capture(['flex']);delete a.flex}}},beginExpand:function(a){a.collapseMemento.restore(['flex'])},beginLayout:function(a){var c=this,f=c.owner,b=f.stretchMaxPartner,h=c.innerCt.dom.style,i=c.names,g=c.overflowHandler,e=f.getScrollable(),d;a.boxNames=i;if(g){g.beginLayout(a)}if(typeof b==='string'){b=Ext.getCmp(b)||f.query(b)[0]}a.stretchMaxPartner=b&&a.context.getCmp(b);Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);a.innerCtContext=a.getEl('innerCt',c);a.targetElContext=a.getEl('targetEl',c);if(e){a.ownerScrollable=e;d=e.getPosition();if(d.x||d.y){a.scrollRestore=d}}h.width=h.height=''},beginLayoutCycle:function(a,l){var c=this,i=a.state,g=a.ownerScrollable,b=c.align,e=a.boxNames,d=c.pack,k=c._centerRe,j=c.overflowHandler,m=a.state.canScroll,h,f;if(j){j.beginLayoutCycle(a,l)}Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);a.parallelSizeModel=h=a[e.widthModel];a.perpendicularSizeModel=f=a[e.heightModel];a.boxOptions={align:b={stretch:b==='stretch',stretchmax:b==='stretchmax',center:k.test(b),bottom:c._endRe.test(b)},pack:d={center:k.test(d),end:d==='end'}};if(g){if(!m){i.canScroll={parallel:!h.shrinkWrap&&g[e.getX](),perpendicular:!f.shrinkWrap&&g[e.getY]()}}if(!i.actualScroll){i.actualScroll={parallel:!1,perpendicular:!1}}}if(b.stretch&&f.shrinkWrap){b.stretchmax=!0;b.stretch=!1}b.nostretch=!(b.stretch||b.stretchmax);if(h.shrinkWrap){d.center=d.end=!1}c.cacheFlexes(a);c.targetEl.setWidth(20000)},cacheFlexes:function(a){var u=this,d=a.boxNames,x=d.widthModel,w=d.heightModel,z=a.boxOptions.align.nostretch,s=0,r=a.childItems,v=r.length,h=[],t=0,g=0,o=0,p=d.minWidth,y=d.minHeight,q=u._percentageRe,n=0,m=0,b,c,l,f,i,j,k,e;while(v--){c=r[v];b=c.target;j=c[x];if(j.calculated){c.flex=l=b.flex;if(l){s+=l;h.push(c);t+=b[p]||0}else {f=q.exec(b[d.width]);c.percentageParallel=parseFloat(f[1])/100;++n}}if(j.configured){k=b[d.width]}else {k=b[p]||0}o+=k;i=c[w];if(z&&i.calculated){f=q.exec(b[d.height]);c.percentagePerpendicular=parseFloat(f[1])/100;++m}if(i.configured){e=b[d.height]}else {e=b[y]||0}if(e>g){g=e}}a.flexedItems=h;a.flexedMinWidth=t;a.smallestWidth=o;a.smallestHeight=g;a.totalFlex=s;a.percentageWidths=n;a.percentageHeights=m;Ext.Array.sort(h,u.flexSortFn)},calculate:function(b){var c=this,f=b.boxNames,a=b.state,h=a.actualScroll,g=a.needsScroll,e=a.canScroll,d=a.boxPlan||(a.boxPlan={}),i=c.overflowHandler;d.targetSize=c.getContainerSize(b);if(e&&!g){a.needsScroll=g={parallel:e.parallel&&d.targetSize[f.width]j){a.invalidate({before:K,after:L,layout:l,childHeight:j,names:d});c.state.parallelDone=!1}if(isNaN(b=o(b,g+i,a.target[d.minHeight]||0))){return !1}}}if(v){b+=q;c[d.hasOverflowX]=!0;c.target.componentLayout[d.setHeightInDom]=!0;c[d.invalidateScrollX]=Ext.isIE8}p=c.stretchMaxPartner;if(p){c.setProp('maxChildHeight',b);w=p.childItems;if(w&&w.length){b=o(b,p.getProp('maxChildHeight'));if(isNaN(b)){return !1}}}c[d.setContentHeight](b+l.padding[e]+c.targetContext.getPaddingInfo()[e]);if(v){b-=q}if(b>y[e]&&H&&H.perpendicular){C.actualScroll.perpendicular=!0}t.maxSize=b;if(O){f=b}else {if(B||A||D){if(I){f=h?b:j}else {f=h?b:o(j,b)}f-=c.innerCtContext.getBorderInfo()[e]}}for(k=0;k0){n=u+Math[l.alignRoundingMethod](s/2)}}else {if(A){n=o(0,f-n-a.props[e])}}}a.setProp(M,n)}return !0},onBeforeConstrainInvalidateChild:function(b,c){var a=c.names.heightModel;if(!b[a].constrainedMin){b[a]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(a,c){var b=c.names;a.setProp(b.beforeY,0);if(a[b.heightModel].calculated){a[b.setHeight](c.childHeight)}},calculateStretchMax:function(k,c,o){var f=this,h=c.height,l=c.width,g=k.childItems,n=g.length,m=o.maxSize,i=f.onBeforeStretchMaxInvalidateChild,j=f.onAfterStretchMaxInvalidateChild,a,b,d,e;for(d=0;d':{xtype:'tbfill',height:0}},1:{'->':{xtype:'tbfill',width:0}}}},initComponent:function(){var a=this,b=a.layout,c=a.vertical;if(c===undefined){a.vertical=c=a.dock==='right'||a.dock==='left'}a.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:c?'vbox':'hbox',align:c?'stretchmax':'middle'});if(a.overflowHandler){b.overflowHandler=a.overflowHandler}else {if(a.enableOverflow){b.overflowHandler='menu'}}if(c){a.addClsWithUI('vertical')}if(a.ui==='footer'){a.ignoreBorderManagement=!0}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(d){var c=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),e=c.layout,a;if(d&&(c.enableOverflow||c.overflowHandler==='menu')){a=e.overflowHandler;if(a&&a.menu){b=b.concat(a.menu.getRefItems(d))}}return b},lookupComponent:function(a){var d=arguments,b,c;if(typeof a==='string'){c=Ext.toolbar.Toolbar;b=c.shortcutsHV[this.vertical?1:0][a]||c.shortcuts[a];if(typeof b==='string'){a={xtype:b}}else {if(b){a=Ext.apply({},b)}else {a={xtype:'tbtext',text:a}}}this.applyDefaults(a);d=[a]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(a){var b=this,d=b.ui==='footer',c=d?b.defaultFooterButtonUI:b.defaultButtonUI;if(a.isSegmentedButton){if(a.getDefaultUI()==='default'&&!a.config.hasOwnProperty('defaultUI')){a.setDefaultUI(c)}}else {if(a.ui==='default'&&!a.hasOwnProperty('ui')){if(a.isButton){a.ui=c}else {if(a.isFormField){a.ui=d?b.defaultFooterFieldUI:b.defaultFieldUI}}}}if(a instanceof Ext.toolbar.Separator){a.setUI(b.vertical?'vertical':'horizontal')}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(a){if(a.needArrowKeys&&this.enableFocusableContainer){this.enableFocusableContainer=!1}Ext.container.Container.prototype.onAdd.apply(this,arguments);this.trackMenu(a)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,!0)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(b,c){var a=this;if(a.trackMenus&&b.menu){b[c?'un':'on']({mouseover:a.onButtonOver,menushow:a.onButtonMenuShow,menuhide:a.onButtonMenuHide,scope:a})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(a,c){var b=this.activeMenuBtn;if(b&&b!==a){b.hideMenu();a.focus();a.showMenu(c);this.activeMenuBtn=a}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,['toolbar'],['component','box','container','toolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0},['widget.toolbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,'Toolbar',Ext,'Toolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Toolbar',{override:'Ext.toolbar.Toolbar',usePlainButtons:!1,border:!1});Ext.cmd.derive('Ext.dd.DragDrop',Ext.Base,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:!1,lock:function(){this.locked=!0},moveOnly:!1,unlock:function(){this.locked=!1},isTarget:!0,padding:null,_domRef:null,__ygDragDrop:!0,constrainX:!1,constrainY:!1,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:!1,xTicks:null,yTicks:null,primaryButtonOnly:!0,available:!1,hasOuterHandles:!1,triggerEvent:'mousedown',b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(b,a){},b4DragOver:function(a){},onDragOver:function(b,a){},b4DragOut:function(a){},onDragOut:function(b,a){},b4DragDrop:function(a){},onDragDrop:function(b,a){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(j,a,k){if(Ext.isNumber(a)){a={left:a,right:a,top:a,bottom:a}}a=a||this.defaultPadding;var c=Ext.get(this.getEl()).getBox(),e=Ext.get(j),i=e.getScroll(),b,d=e.dom,h,g,f;if(d===document.body){b={x:i.left,y:i.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else {h=e.getXY();b={x:h[0],y:h[1],width:d.clientWidth,height:d.clientHeight}}g=c.y-b.y;f=c.x-b.x;this.resetConstraints();this.setXConstraint(f-(a.left||0),b.width-f-c.width-(a.right||0),this.xTickSize);this.setYConstraint(g-(a.top||0),b.height-g-c.height-(a.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(b,d,c){var a=this;a.el=a.el||Ext.get(b);a.initTarget(b,d,c);Ext.get(a.id).on(a.triggerEvent,a.handleMouseDown,a)},initTarget:function(a,b,c){this.config=c||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof a!=='string'){a=Ext.id(a)}this.id=a;this.addToGroup(b?b:'default');this.handleElId=a;this.setDragElId(a);this.invalidHandleTypes={A:'A'};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=this.config.isTarget!==!1;this.maintainOffset=this.config.maintainOffset;this.primaryButtonOnly=this.config.primaryButtonOnly!==!1},handleOnAvailable:function(){this.available=!0;this.resetConstraints();this.onAvailable()},setPadding:function(a,b,c,d){if(!b&&0!==b){this.padding=[a,a,a,a]}else {if(!c&&0!==c){this.padding=[a,b,a,b]}else {this.padding=[a,b,c,d]}}},setInitPosition:function(e,f){var d=this.getEl(),b,c,a;if(!this.DDMInstance.verifyEl(d)){return}b=e||0;c=f||0;a=Ext.fly(d).getXY();this.initPageX=a[0]-b;this.initPageY=a[1]-c;this.lastPageX=a[0];this.lastPageY=a[1];this.setStartPosition(a)},setStartPosition:function(b){var a=b||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=a[0];this.startPageY=a[1]},addToGroup:function(a){this.groups[a]=!0;this.DDMInstance.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDMInstance.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.handleElId=a;this.DDMInstance.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=='string'){a=Ext.id(a)}Ext.get(a).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=!0},unreg:function(){var a=this,b;if(a._domRef){b=Ext.fly(a.id);if(b){b.un(a.triggerEvent,a.handleMouseDown,a)}}a._domRef=null;a.DDMInstance._remove(a,a.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return this.DDMInstance.isLocked()||this.locked},handleMouseDown:function(b,c){var a=this;if(a.primaryButtonOnly&&b.button||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(b.getPoint(),a)){if(a.clickValidator(b)){a.setStartPosition();a.b4MouseDown(b);a.onMouseDown(b);a.DDMInstance.handleMouseDown(b,a);a.DDMInstance.stopEvent(b)}}},clickValidator:function(b){var a=b.getTarget();return this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id))},addInvalidHandleType:function(b){var a=b.toUpperCase();this.invalidHandleTypes[a]=a},addInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){var b=a.toUpperCase();delete this.invalidHandleTypes[b]},removeInvalidHandleId:function(a){if(typeof a!=='string'){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(c){var b=this.invalidHandleClasses,d=b.length,a;for(a=0;a=this.minX;a=a-c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}for(a=this.initPageX;a<=this.maxX;a=a+c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,c){this.yTicks=[];this.yTickSize=c;var b={},a;for(a=this.initPageY;a>=this.minY;a=a-c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}for(a=this.initPageY;a<=this.maxY;a=a+c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(c,b,a){this.leftConstraint=c;this.rightConstraint=b;this.minX=this.initPageX-c;this.maxX=this.initPageX+b;if(a){this.setXTicks(this.initPageX,a)}this.constrainX=!0},clearConstraints:function(){this.constrainX=!1;this.constrainY=!1;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(c,b,a){this.topConstraint=c;this.bottomConstraint=b;this.minY=this.initPageY-c;this.maxY=this.initPageY+b;if(a){this.setYTicks(this.initPageY,a)}this.constrainY=!0},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var a=this.maintainOffset?this.lastPageX-this.initPageX:0,b=this.maintainOffset?this.lastPageY-this.initPageY:0;this.setInitPosition(a,b)}else {this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(d,a){if(!a){return d}else {if(a[0]>=d){return a[0]}else {var b,g,c,e,f;for(b=0,g=a.length;b=d){e=d-a[b];f=a[c]-d;return f>e?a[b]:a[c]}}return a[a.length-1]}}},toString:function(){return 'DragDrop '+this.id}},3,0,0,0,0,0,[Ext.dd,'DragDrop'],0);Ext.cmd.derive('Ext.dd.DD',Ext.dd.DragDrop,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},scroll:!0,autoOffset:function(a,b){var c=a-this.startPageX,d=b-this.startPageY;this.setDelta(c,d)},setDelta:function(a,b){this.deltaX=a;this.deltaY=b},setDragElPos:function(a,b){var c=this.getDragEl();this.alignElWithMouse(c,a,b)},alignElWithMouse:function(d,j,k){var a=this.getTargetCoord(j,k),c=d.dom?d:Ext.fly(d,'_dd'),e=c.getSize(),i=Ext.Element,b,g,f,h;if(!this.deltaSetXY){b=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};g=[Math.max(0,Math.min(a.x,b.width-e.width)),Math.max(0,Math.min(a.y,b.height-e.height))];c.setXY(g);f=this.getLocalX(c);h=c.getLocalY();this.deltaSetXY=[f-a.x,h-a.y]}else {b=this.cachedViewportSize;this.setLocalXY(c,Math.max(0,Math.min(a.x+this.deltaSetXY[0],b.width-e.width)),Math.max(0,Math.min(a.y+this.deltaSetXY[1],b.height-e.height)))}this.cachePosition(a.x,a.y);this.autoScroll(a.x,a.y,d.offsetHeight,d.offsetWidth);return a},cachePosition:function(b,c){if(b){this.lastPageX=b;this.lastPageY=c}else {var a=Ext.fly(this.getEl()).getXY();this.lastPageX=a[0];this.lastPageY=a[1]}},autoScroll:function(e,f,m,n){if(this.scroll){var g=Ext.Element.getViewportHeight(),h=Ext.Element.getViewportWidth(),b=this.DDMInstance.getScrollTop(),a=this.DDMInstance.getScrollLeft(),l=m+f,j=n+e,k=g+b-f-this.deltaY,i=h+a-e-this.deltaX,d=40,c=document.all?80:30;if(l>g&&k0&&f-bh&&i0&&e-athis.maxX){a=this.maxX}}if(this.constrainY){if(bthis.maxY){b=this.maxY}}a=this.getTick(a,this.xTicks);b=this.getTick(b,this.yTicks);return {x:a,y:b}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=this.config.scroll!==!1},b4MouseDown:function(b){var a=b.getXY();this.autoOffset(a[0],a[1])},b4Drag:function(b){var a=b.getXY();this.setDragElPos(a[0],a[1])},toString:function(){return 'DD '+this.id},getLocalX:function(a){return a.getLocalX()},setLocalXY:function(a,b,c){a.setLocalXY(b,c)}},3,0,0,0,0,0,[Ext.dd,'DD'],0);Ext.cmd.derive('Ext.dd.DDProxy',Ext.dd.DD,{statics:{dragElId:'ygddfdiv'},constructor:function(a,c,b){if(a){this.init(a,c,b);this.initFrame()}},resizeFrame:!0,centerFrame:!1,createFrame:function(){var d=this,c=document.body,a,b;if(!c||!c.firstChild){Ext.defer(function(){d.createFrame()},50);return}a=this.getDragEl();if(!a){a=document.createElement('div');a.id=this.dragElId;a.setAttribute('role','presentation');b=a.style;b.position='absolute';b.visibility='hidden';b.cursor='move';b.border='2px solid #aaa';b.zIndex=999;c.insertBefore(a,c.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=this.config.resizeFrame!==!1;this.centerFrame=this.config.centerFrame;this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(d,e){var a=this,b=a.getDragEl(),c=b.style;a._resizeProxy();if(a.centerFrame){a.setDelta(Math.round(parseInt(c.width,10)/2),Math.round(parseInt(c.height,10)/2))}a.setDragElPos(d,e);Ext.fly(b).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(d){var a=d.getXY(),b=a[0],c=a[1];this.autoOffset(b,c);this.setDragElPos(b,c)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl(),a=this.getDragEl();a.style.visibility='';this.beforeMove();b.style.visibility='hidden';Ext.dd.DDM.moveToEl(b,a);a.style.visibility='hidden';b.style.visibility='';this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return 'DDProxy '+this.id}},3,0,0,0,0,0,[Ext.dd,'DDProxy'],0);Ext.cmd.derive('Ext.dd.StatusProxy',Ext.Component,{animRepair:!1,childEls:['ghost'],renderTpl:[''],repairCls:'x-dd-drag-repair',ariaRole:'presentation',skipLayout:!0,constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:'visibility',hidden:!0,floating:!0,id:b.id||Ext.id(),cls:'x-dd-drag-proxy '+this.dropNotAllowed,shadow:a.shadow||!1,renderTo:Ext.getDetachedBody()});Ext.Component.prototype.constructor.apply(this,arguments);this.dropStatus=this.dropNotAllowed},dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',setStatus:function(a){a=a||this.dropNotAllowed;if(this.dropStatus!==a){this.el.replaceCls(this.dropStatus,a);this.dropStatus=a}},reset:function(c){var a=this,b='x-dd-drag-proxy ';a.el.replaceCls(b+a.dropAllowed,b+a.dropNotAllowed);a.dropStatus=a.dropNotAllowed;if(c){a.ghost.setHtml('')}},update:function(a){if(typeof a==='string'){this.ghost.setHtml(a)}else {this.ghost.setHtml('');a.style.margin='0';this.ghost.dom.appendChild(a)}var b=this.ghost.dom.firstChild;if(b){Ext.fly(b).setStyle('float','none')}},getGhost:function(){return this.ghost},hide:function(a){Ext.Component.prototype.hide.call(this);if(a){this.reset(!0)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(b,c,d){var a=this;a.callback=c;a.scope=d;if(b&&a.animRepair!==!1){a.el.addCls(a.repairCls);a.el.setUnderlaysVisible(!1);a.anim=a.el.animate({duration:a.repairDuration||500,easing:'ease-out',to:{x:b[0],y:b[1]},stopAnimation:!0,callback:a.afterRepair,scope:a})}else {a.afterRepair()}},afterRepair:function(){var a=this;a.hide(!0);a.el.removeCls(a.repairCls);if(typeof a.callback==='function'){a.callback.call(a.scope||a)}delete a.callback;delete a.scope}},1,0,['component','box'],{'component':!0,'box':!0},0,0,[Ext.dd,'StatusProxy'],0);Ext.cmd.derive('Ext.dd.DragSource',Ext.dd.DDProxy,{dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',animRepair:!0,repairHighlightColor:'c3daf9',constructor:function(b,a){this.el=Ext.get(b);if(!this.dragData){this.dragData={}}Ext.apply(this,a);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy({id:this.el.id+'-drag-status-proxy',animRepair:this.animRepair})}Ext.dd.DDProxy.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:!1,isTarget:!1,scroll:this.scroll===!0});this.dragging=!1},getDragData:function(a){return this.dragData},onDragEnter:function(c,b){var a=Ext.dd.DragDropManager.getDDById(b),d;this.cachedTarget=a;if(this.beforeDragEnter(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyEnter(this,c,this.dragData);this.proxy.setStatus(d)}else {this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(a,c,b)}}},beforeDragEnter:function(a,c,b){return !0},onDragOver:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b),d;if(this.beforeDragOver(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyOver(this,c,this.dragData);this.proxy.setStatus(d)}if(this.afterDragOver){this.afterDragOver(a,c,b)}}},beforeDragOver:function(a,c,b){return !0},onDragOut:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragOut(a,c,b)!==!1){if(a.isNotifyTarget){a.notifyOut(this,c,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,c,b)}}this.cachedTarget=null},beforeDragOut:function(a,c,b){return !0},onDragDrop:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragDrop(a,c,b)!==!1){if(a.isNotifyTarget){if(a.notifyDrop(this,c,this.dragData)!==!1){this.onValidDrop(a,c,b)}else {this.onInvalidDrop(a,c,b)}}else {this.onValidDrop(a,c,b)}if(this.afterDragDrop){this.afterDragDrop(a,c,b)}}delete this.cachedTarget},beforeDragDrop:function(a,c,b){return !0},onValidDrop:function(a,c,b){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(a,c,b)}},getRepairXY:function(b,a){return this.el.getXY()},onInvalidDrop:function(c,b,d){var a=this;if(!b){b=c;c=null;d=b.getTarget().id}if(a.beforeInvalidDrop(c,b,d)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}a.proxy.repair(a.getRepairXY(b,a.dragData),a.afterRepair,a);if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}},afterRepair:function(){var a=this;if(Ext.enableFx){a.el.highlight(a.repairHighlightColor)}a.dragging=!1},beforeInvalidDrop:function(a,c,b){return !0},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==!1){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return !0},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(!0);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=!1;this.dragging=!0;this.proxy.update('');this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(b,c){var a=this.el.dom.cloneNode(!0);a.id=Ext.id();this.proxy.update(a);this.onStartDrag(b,c);return !0},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(!0);this.dragging=!1},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)},b4EndDrag:function(a){},endDrag:function(a){this.onEndDrag(this.dragData,a)},onEndDrag:function(a,b){},autoOffset:function(a,b){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DDProxy.prototype.destroy.call(this);Ext.destroy(this.proxy)}},1,0,0,0,0,0,[Ext.dd,'DragSource'],0);Ext.cmd.derive('Ext.panel.Proxy',Ext.Base,{alternateClassName:'Ext.dd.PanelProxy',moveOnDrag:!0,constructor:function(c,b){var a=this;a.panel=c;a.id=a.panel.id+'-ddproxy';Ext.apply(a,b)},insertProxy:!0,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost.el},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){var a=this;if(a.ghost){if(a.proxy){a.proxy.destroy();delete a.proxy}a.panel.unghost(null,a.moveOnDrag);delete a.ghost}},show:function(){var a=this,b;if(!a.ghost){b=a.panel.getSize();a.panel.el.setVisibilityMode(Ext.Element.DISPLAY);a.ghost=a.panel.ghost();if(a.insertProxy){a.proxy=a.panel.el.insertSibling({role:'presentation',cls:'x-panel-dd-spacer'});a.proxy.setSize(b)}}},repair:function(c,a,b){this.hide();Ext.callback(a,b||this)},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}},1,0,0,0,0,0,[Ext.panel,'Proxy',Ext.dd,'PanelProxy'],0);Ext.cmd.derive('Ext.panel.DD',Ext.dd.DragSource,{constructor:function(b,c){var a=this;a.panel=b;a.dragData={panel:b};a.panelProxy=new Ext.panel.Proxy(b,c);a.proxy=a.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,c);a.setupEl(b)},setupEl:function(c){var a=this,b=c.header,d=c.body;if(b){a.setHandleElId(b.id);d=b.el}if(d){d.setStyle('cursor','move');a.scroll=!1}else {c.on('boxready',a.setupEl,a,{single:!0})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(b){var a=b.getXY(),c=a[0],d=a[1];this.autoOffset(c,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return !0},createFrame:Ext.emptyFn,getDragEl:function(b){var a=this.panelProxy.ghost;if(a){return a.el.dom}},endDrag:function(a){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)},onInvalidDrop:function(d,b,c){var a=this;if(a.beforeInvalidDrop(d,b,c)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,c)}}}},1,0,0,0,0,0,[Ext.panel,'DD'],0);Ext.cmd.derive('Ext.layout.component.Dock',Ext.layout.component.Component,{alternateClassName:'Ext.layout.component.AbstractDock',type:'dock',horzAxisProps:{name:'horz',oppositeName:'vert',dockBegin:'left',dockEnd:'right',horizontal:!0,marginBegin:'margin-left',maxSize:'maxWidth',minSize:'minWidth',pos:'x',setSize:'setWidth',shrinkWrapDock:'shrinkWrapDockWidth',size:'width',sizeModel:'widthModel'},vertAxisProps:{name:'vert',oppositeName:'horz',dockBegin:'top',dockEnd:'bottom',horizontal:!1,marginBegin:'margin-top',maxSize:'maxHeight',minSize:'minHeight',pos:'y',setSize:'setHeight',shrinkWrapDock:'shrinkWrapDockHeight',size:'height',sizeModel:'heightModel'},initializedBorders:-1,horizontalCollapsePolicy:{width:!0,x:!0},verticalCollapsePolicy:{height:!0,y:!0},finishRender:function(){var a=this,b,c;Ext.layout.component.Component.prototype.finishRender.call(this);b=a.getRenderTarget();c=a.getDockedItems();a.finishRenderItems(b,c)},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},noBorderClasses:['x-docked-noborder-top','x-docked-noborder-right','x-docked-noborder-bottom','x-docked-noborder-left'],noBorderClassesSides:{top:'x-docked-noborder-top',right:'x-docked-noborder-right',bottom:'x-docked-noborder-bottom',left:'x-docked-noborder-left'},borderWidthProps:{top:'border-top-width',right:'border-right-width',bottom:'border-bottom-width',left:'border-left-width'},_itemCls:'x-docked',handleItemBorders:function(){var c=this,b=c.owner,a,l,k=c.lastDockedItems,j=c.borders,m=b.dockedItems.generation,i=c.noBorderClassesSides,n=c.borderWidthProps,f,h,d,g,e,o=c.collapsed;if(c.initializedBorders===m||b.border&&!b.manageBodyBorders||b.collapsed&&b.collapseMode==='mini'){return}c.initializedBorders=m;c.collapsed=!1;c.lastDockedItems=l=c.getLayoutItems();c.collapsed=o;a={top:[],right:[],bottom:[],left:[]};for(f=0,h=l.length;fj){b=i.constrainedMax;m=j}else {if(hj){c=i.constrainedMax;l=j}else {if(h',addDocked:function(c,d){var b=this,k=b.rendered,f=0,g=b.dockedItems,i=g.getCount(),e,h,a,j;c=b.prepareItems(c);j=c.length;if(k){Ext.suspendLayouts()}if(d===undefined){d=i}else {d=Math.min(d,i)}for(;f','
    ','{headingText}','
    ','','{% this.renderDockedItems(out,values,0); %}','
    {bodyCls}',' {baseCls}-body-{ui}',' {parent.baseCls}-body-{parent.ui}-{.}','{childElCls}"','',' {$}="{.}"','',' role="presentation"','',' style="{bodyStyle}">','{%this.renderContainer(out,values);%}','
    ','{% this.renderDockedItems(out,values,1); %}'],headerPosition:'top',iconAlign:'left',titleAlign:'left',titleRotation:'default',beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titleRotation:null},animCollapse:Ext.enableFx,border:!0,closable:!1,closeAction:'destroy',closeToolText:'Close panel',collapsed:!1,collapsedCls:'collapsed',collapseFirst:!0,collapsible:undefined,collapseToolText:'Collapse panel',expandToolText:'Expand panel',constrain:!1,constrainHeader:!1,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:!0,frame:!1,frameHeader:!0,hideCollapseTool:!1,manageHeight:!0,maskElement:'el',minButtonWidth:75,preventHeader:!1,shrinkWrapDock:!1,titleCollapse:undefined,baseCls:'x-panel',bodyPosProps:{x:'x',y:'y'},componentLayout:'dock',contentPaddingProperty:'bodyPadding',emptyArray:[],isPanel:!0,defaultBindProperty:'title',addBodyCls:function(c){var a=this,b=a.rendered?a.body:a.getProtoBody();b.addCls(c);return a},addTool:function(b){if(!Ext.isArray(b)){b=[b]}var c=this,a=c.header,g=b.length,f=c.tools,e,d;if(!a||!a.isHeader){a=null;if(!f){c.tools=f=[]}}for(e=0;e0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(a.is(this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(e,b){var a=this,d=a.items,c=a.addHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.add(b)}}},onItemRemove:function(e,b){var a=this,d=a.items,c=a.removeHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.remove(b)}}},onContainerAdd:function(c,i){var a=this,d,e,h=a.handleAdd,g=a.handleRemove,b,f;if(c.isContainer){c.on('add',h,a);c.on('dockedadd',h,a);c.on('remove',g,a);c.on('dockedremove',g,a)}if(i!==!0){d=c.query(a.selector);for(b=0,e=d.length;bcontainer');for(b=0,e=d.length;ba.tolerance){a.triggerStart(b)}else {return}}if(a.fireEvent('mousemove',a,b)===!1){a.onMouseUp(b)}else {a.onDrag(b);a.fireEvent('drag',a,b)}},onMouseUp:function(b){var a=this;a.mouseIsDown=!1;if(a.mouseIsOut){a.mouseIsOut=!1;a.onMouseOut(b)}if(a.preventDefault!==!1){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent('mouseup',a,b);a.endDrag(b)},endDrag:function(b){var a=this,c=a.active;Ext.getDoc().un({mousemove:a.onMouseMove,mouseup:a.onMouseUp,selectstart:a.stopSelect,capture:!0,scope:a});a.clearStart();a.active=!1;if(c){a.dragEnded=!0;a.onEnd(b);a.fireEvent('dragend',a,b)}a._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=!0;a.onStart(b);a.fireEvent('dragstart',a,b)},clearStart:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return !1},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var a=this;if(a.constrainTo){if(a.constrainTo instanceof Ext.util.Region){return a.constrainTo}if(!a._constrainRegion){a._constrainRegion=Ext.fly(a.constrainTo).getViewRegion()}}else {if(!a._constrainRegion){a._constrainRegion=a.getDragCt().getViewRegion()}}return a._constrainRegion},getXY:function(a){return a?this.constrainModes[a](this,this.lastXY):this.lastXY},getOffset:function(c){var a=this.getXY(c),b=this.startXY;return [a[0]-b[0],a[1]-b[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(d,b){var a=d.dragRegion,c=d.getConstrainRegion();if(!c){return b}a.x=a.left=a[0]=a.right=b[0];a.y=a.top=a[1]=a.bottom=b[1];a.constrainTo(c);return [a.left,a.top]},dragTarget:function(e,c){var f=e.startXY,a=e.startRegion.copy(),b=e.getConstrainRegion(),d;if(!b){return c}a.translateBy(c[0]-f[0],c[1]-f[1]);if(a.right>b.right){c[0]+=d=b.right-a.right;a.left+=d}if(a.leftb.bottom){c[1]+=d=b.bottom-a.bottom;a.top+=d}if(a.top[flex]'),o=j.length,h=n==='vertical',i=0,d=h?'width':'height',m=0,g,a;for(;i',tabGuardIndex:0},tabGuardPositionAttribute:'data-tabguardposition',privates:{initTabGuards:function(){var a=this,f=a.tabGuardPositionAttribute,c=a.tabGuardBeforeEl,d=a.tabGuardAfterEl,e=a.tabGuardIndex,b;if(!a.rendered||!a.tabGuard){return}b=a.el.findTabbableElements({skipSelf:!0});if(b[0]&&b[0].hasAttribute(f)){b.shift()}if(b.length&&b[b.length-1].hasAttribute(f)){b.pop()}if(b.length){c.dom.setAttribute('tabIndex',e);c.on('focusenter',a.onTabGuardFocusEnter,a);d.dom.setAttribute('tabIndex',e);d.on('focusenter',a.onTabGuardFocusEnter,a)}else {c.dom.removeAttribute('tabIndex');c.un('focusenter',a.onTabGuardFocusEnter,a);d.dom.removeAttribute('tabIndex');d.un('focusenter',a.onTabGuardFocusEnter,a)}},onTabGuardFocusEnter:function(j,i){var h=this,e=h.el,g=h.tabGuardPositionAttribute,f=i.getAttribute(g),d=j.relatedTarget,a,c,b;if(!d.hasAttribute(g)&&d!==e.dom&&e.contains(d)){c=f==='before'?!1:!0}else {c=f==='before'?!0:!1}a=e.findTabbableElements({skipSelf:!0});a.shift();a.pop();b=c?a[0]:a[a.length-1];if(b){b.focus()}}}},0,0,0,0,0,0,[Ext.util,'FocusTrap'],0);Ext.cmd.derive('Ext.window.Window',Ext.panel.Panel,{alternateClassName:'Ext.Window',baseCls:'x-window',resizable:!0,draggable:!0,constrain:!1,constrainHeader:!1,plain:!1,minimizable:!1,maximizable:!1,minHeight:50,minWidth:50,expandOnShow:!0,collapsible:!1,closable:!0,hidden:!0,autoRender:!0,hideMode:'offsets',floating:!0,itemCls:'x-window-item',overlapHeader:!0,ignoreHeaderBorderManagement:!0,alwaysFramed:!0,isRootCfg:{isRoot:!0},isWindow:!0,ariaRole:'dialog',initComponent:function(){var a=this;a.frame=!1;Ext.panel.Panel.prototype.initComponent.call(this);if(a.plain){a.addClsWithUI('plain')}a.addStateEvents(['maximize','restore','resize','dragend'])},getElConfig:function(){var b=this,a;a=Ext.panel.Panel.prototype.getElConfig.call(this);a.tabIndex=-1;return a},getFocusEl:function(){return this.getDefaultFocus()||this.el},getState:function(){var a=this,e=Ext.panel.Panel.prototype.getState.call(this)||{},c=!!a.maximized,d=a.ghostBox,b;e.maximized=c;if(c){b=a.restorePos}else {if(d){b=[d.x,d.y]}else {b=a.getPosition()}}Ext.apply(e,{size:c?a.restoreSize:a.getSize(),pos:b});return e},applyState:function(a){var b=this;if(a){b.maximized=a.maximized;if(b.maximized){b.hasSavedRestore=!0;b.restoreSize=a.size;b.restorePos=a.pos}else {Ext.apply(b,{width:a.size.width,height:a.size.height,x:a.pos[0],y:a.pos[1]})}}},onRender:function(c,b){var a=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(a.header){a.header.on({scope:a,click:a.onHeaderClick})}if(a.maximizable){a.header.on({scope:a,dblclick:a.toggleMaximize})}},afterRender:function(){var a=this,c=a.header,b;if(a.maximized){a.maximized=!1;a.maximize();if(c){c.removeCls(c.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);if(a.closable){b=a.getKeyMap();b.on(27,a.onEsc,a)}else {b=a.keyMap}if(b&&a.hidden){b.disable()}},onEsc:function(b,a){a.stopEvent();this.close()},beforeDestroy:function(){var a=this;if(a.rendered){Ext.un('resize',a.onWindowResize,a);delete a.animateTarget;a.hide();Ext.destroy(a.keyMap)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},addTools:function(){var a=this,b=[];Ext.panel.Panel.prototype.addTools.call(this);if(a.minimizable){b.push({type:'minimize',handler:'minimize',scope:a})}if(a.maximizable){b.push({type:a.maximized?'restore':'maximize',handler:'toggleMaximize',scope:a})}if(b.length){a.addTool(b)}},onShow:function(){var a=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(a.expandOnShow){a.expand(!1)}a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.enable()}},doClose:function(){var a=this;if(a.hidden){a.fireEvent('close',a);if(a.closeAction==='destroy'){a.destroy()}}else {a.hide(a.animateTarget,a.doClose,a)}},afterHide:function(){var a=this;a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.disable()}Ext.panel.Panel.prototype.afterHide.apply(this,arguments)},onWindowResize:function(){var a=this,b;if(!a.destroyed){if(a.maximized){a.fitContainer()}else {b=a.getSizeModel();if(b.width.natural||b.height.natural){a.updateLayout()}a.doConstrain()}}},minimize:function(){this.fireEvent('minimize',this);return this},resumeHeaderLayout:function(a){this.header.resumeLayouts(a?this.isRootCfg:null)},afterCollapse:function(){var a=this,b=a.header,c=a.tools;if(b&&a.maximizable){b.suspendLayouts();c.maximize.hide();this.resumeHeaderLayout(!0)}if(a.resizer){a.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var a=this,c=a.header,d=a.tools,b;if(c){c.suspendLayouts();if(a.maximizable){d.maximize.show();b=!0}this.resumeHeaderLayout(b)}if(a.resizer){a.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(c){var a=this,b=a.header,f=a.tools,g=a.width,e=a.height,h,d;if(!a.maximized){a.expand(!1);if(!a.hasSavedRestore){h=a.restoreSize={width:g?g:null,height:e?e:null};a.restorePos=a.getPosition()}if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('restore')}if(a.collapseTool){a.collapseTool.hide();d=!0}a.resumeHeaderLayout(d)}a.el.disableShadow();if(a.dd){a.dd.disable();if(b){b.removeCls(b.indicateDragCls)}}if(a.resizer){a.resizer.disable()}a.el.addCls('x-window-maximized');a.container.addCls('x-window-maximized-ct');a.syncMonitorWindowResize();a.fitContainer(c=c||!!a.animateTarget?{callback:function(){a.maximized=!0;a.fireEvent('maximize',a)}}:null);if(!c){a.maximized=!0;a.fireEvent('maximize',a)}}return a},restore:function(c){var a=this,f=a.tools,b=a.header,d=a.restoreSize,e;if(a.maximized){a.hasSavedRestore=null;a.removeCls('x-window-maximized');if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('maximize')}if(a.collapseTool){a.collapseTool.show();e=!0}a.resumeHeaderLayout(e)}d.x=a.restorePos[0];d.y=a.restorePos[1];a.setBox(d,c=c||!!a.animateTarget?{callback:function(){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}:null);a.restorePos=a.restoreSize=null;if(a.dd){a.dd.enable();if(b){b.addCls(b.indicateDragCls)}}if(a.resizer){a.resizer.enable()}a.container.removeCls('x-window-maximized-ct');a.syncMonitorWindowResize();if(!c){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}return a},syncMonitorWindowResize:function(){var a=this,b=a._monitoringResize,d=a.monitorResize||a.constrain||a.constrainHeader||a.maximized,c=a.hidden||a.destroying||a.destroyed;if(d&&!c){if(!b){Ext.on('resize',a.onWindowResize,a,{buffer:1});a._monitoringResize=!0}}else {if(b){Ext.un('resize',a.onWindowResize,a);a._monitoringResize=!1}}},toggleMaximize:function(){return this[this.maximized?'restore':'maximize']()},createGhost:function(){var a=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);a.xtype='window';a.focusOnToFront=!1;return a},getDefaultFocus:function(){var d=this,b,a=d.defaultFocus,c;if(a!==undefined){if(Ext.isNumber(a)){b=d.query('button')[a]}else {if(Ext.isString(a)){c=a;if(Ext.validIdRe.test(c)){b=d.down(Ext.makeIdSelector(c))}if(!b){b=d.down(c)}}else {if(a.focus){b=a}}}}return b},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(b,c){var a;if(b.el.contains(c.getTarget())){a=this.getDefaultFocus();if(a){a.focus()}}},initResizable:function(){Ext.panel.Panel.prototype.initResizable.apply(this,arguments);if(this.maximized){this.resizer.disable()}}}},0,['window'],['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},['widget.window'],[[Ext.util.FocusTrap.prototype.mixinId||Ext.util.FocusTrap.$className,Ext.util.FocusTrap]],[Ext.window,'Window',Ext,'Window'],0);Ext.cmd.derive('Ext.form.Labelable',Ext.Mixin,{isLabelable:!0,mixinConfig:{id:'labelable',on:{beforeRender:'beforeLabelRender',onRender:'onLabelRender'}},config:{childEls:['labelEl','bodyEl','errorEl','errorWrapEl','ariaErrorEl']},labelableRenderTpl:['{beforeLabelTpl}','','{afterLabelTpl}','','','
    ','','
    ','
    ',{disableFormats:!0}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['','
      ','
    • {.}
    • ','
    ','
    '],plaintextActiveErrorsTpl:['','\n{.}',''],isFieldLabelable:!0,formItemCls:'x-form-item',labelCls:'x-form-item-label',topLabelCls:'x-form-item-label-top',rightLabelCls:'x-form-item-label-right',labelInnerCls:'x-form-item-label-inner',topLabelSideErrorCls:'x-form-item-label-top-side-error',errorMsgCls:'x-form-error-msg',errorWrapCls:'x-form-error-wrap',errorWrapSideCls:'x-form-error-wrap-side',errorWrapUnderCls:'x-form-error-wrap-under',errorWrapUnderSideLabelCls:'x-form-error-wrap-under-side-label',baseBodyCls:'x-form-item-body',invalidIconCls:'x-form-invalid-icon',invalidUnderCls:'x-form-invalid-under',noLabelCls:'x-form-item-no-label',fieldBodyCls:'',invalidCls:'x-form-invalid',fieldLabel:undefined,labelAlign:'left',labelWidth:100,labelPad:5,labelSeparator:':',hideLabel:!1,hideEmptyLabel:!0,preventMark:!1,autoFitErrors:!0,msgTarget:'qtip',msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:!0,labelableInsertions:['beforeBodyEl','afterBodyEl','beforeLabelTpl','afterLabelTpl','beforeSubTpl','afterSubTpl','beforeLabelTextTpl','afterLabelTextTpl','labelAttrTpl'],statics:{initTip:function(){var b=this.tip,a,c;if(b){return}a={id:'ext-form-error-tip',ui:'form-invalid'};if(Ext.supports.Touch){a.dismissDelay=0;a.anchor='top';a.showDelay=0;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.anchorTarget).getWidth()}}}b=this.tip=Ext.create('Ext.tip.QuickTip',a);c=Ext.apply({},b.tagConfig);c.attribute='errorqtip';b.setTagConfig(c)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var a=this,b=a.padding;if(b){a.padding=undefined;a.extraMargins=Ext.Element.parseBox(b)}if(Ext.isIE8){a.restoreDisplay=Ext.Function.createDelayed(a.doRestoreDisplay,0,a)}if(!a.activeErrorsTpl){if(a.msgTarget==='title'){a.activeErrorsTpl=a.plaintextActiveErrorsTpl}else {a.activeErrorsTpl=a.htmlActiveErrorsTpl}}a.addCls([a.formItemCls,a.formItemCls+'-'+a.ui]);a.lastActiveError='';a.enableBubble('errorchange')},trimLabelSeparator:function(){var b=this,c=b.labelSeparator,a=b.fieldLabel||'',d=a.substr(a.length-1);return d===c?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(b){b=b||'';var a=this,f=a.labelSeparator,h=a.labelEl,c=a.errorWrapEl,g=a.labelAlign!=='top',e=a.noLabelCls,d=a.errorWrapUnderSideLabelCls;a.fieldLabel=b;if(a.rendered){if(Ext.isEmpty(b)&&a.hideEmptyLabel){a.addCls(e);if(g&&c){c.removeCls(d)}}else {if(f){b=a.trimLabelSeparator()+f}h.dom.firstChild.innerHTML=b;a.removeCls(e);if(g&&c){c.addCls(d)}}a.updateLayout()}},setHideLabel:function(b){var a=this;if(b!==a.hideLabel){a.hideLabel=b;if(a.rendered){a[b?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},setHideEmptyLabel:function(b){var a=this,c;if(b!==a.hideEmptyLabel){a.hideEmptyLabel=b;if(a.rendered&&!a.hideLabel){c=b&&!a.getFieldLabel();a[c?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},getInsertionRenderData:function(c,d){var e=d.length,b,a;while(e--){b=d[e];a=this[b];if(a){if(typeof a!=='string'){if(!a.isTemplate){a=Ext.XTemplate.getTpl(this,b)}a=a.apply(c)}}c[b]=a||''}return c},getLabelableRenderData:function(){var a=this,l=a.labelAlign,o=l==='top',r=l==='right',c=a.msgTarget==='side',h=a.msgTarget==='under',q=a.errorMsgCls,b=a.labelPad,m=a.labelWidth,d=a.labelClsExtra||'',j=c?a.errorWrapSideCls:a.errorWrapUnderCls,g='',f='',p=a.hasVisibleLabel(),k=a.autoFitErrors,e=a.defaultBodyWidth,n,i;if(o){d+=' '+a.topLabelCls;if(b){f='padding-bottom:'+b+'px;'}if(c&&!k){d+=' '+a.topLabelSideErrorCls}}else {if(r){d+=' '+a.rightLabelCls}if(b){g+=a.getHorizontalPaddingStyle()+b+'px;'}g+='width:'+(m+(b?b:0))+'px;';f='width:'+m+'px'}if(p){if(!o&&h){j+=' '+a.errorWrapUnderSideLabelCls}}if(e){n='min-width:'+e+'px;max-width:'+e+'px;'}i={id:a.id,inputId:a.getInputId(),labelCls:a.labelCls,labelClsExtra:d,labelStyle:g+(a.labelStyle||''),labelInnerStyle:f,labelInnerCls:a.labelInnerCls,unselectableCls:Ext.Element.unselectableCls,bodyStyle:n,baseBodyCls:a.baseBodyCls,fieldBodyCls:a.fieldBodyCls,extraFieldBodyCls:a.extraFieldBodyCls,errorWrapCls:a.errorWrapCls,errorWrapExtraCls:j,renderError:c||h,invalidMsgCls:c?a.invalidIconCls:h?a.invalidUnderCls:'',errorMsgCls:q,growCls:a.grow?a.growCls:'',tipAnchorTarget:a.id+'-inputEl',errorWrapStyle:c&&!k?'visibility:hidden':'display:none',fieldLabel:a.getFieldLabel(),labelSeparator:a.labelSeparator};a.getInsertionRenderData(i,a.labelableInsertions);return i},getHorizontalPaddingStyle:function(){return 'padding-right:'},beforeLabelRender:function(){var a=this;a.setFieldDefaults(a.getInherited().fieldDefaults);if(a.ownerLayout){a.addCls('x-'+a.ownerLayout.type+'-form-item')}if(!a.hasVisibleLabel()){a.addCls(a.noLabelCls)}},onLabelRender:function(){var a=this,f={},e=Ext.Element,d=a.errorWrapEl,c,b;if(d){d.setVisibilityMode(a.msgTarget==='side'&&!a.autoFitErrors?e.VISIBILITY:e.DISPLAY)}if(a.extraMargins){c=a.el.getMargin();for(b in c){if(c.hasOwnProperty(b)){f['margin-'+b]=c[b]+a.extraMargins[b]+'px'}}a.el.setStyle(f)}},hasVisibleLabel:function(){if(this.hideLabel){return !1}return !(this.hideEmptyLabel&&!this.getFieldLabel())},getSubTplMarkup:function(){return ''},getInputId:function(){return ''},getActiveError:function(){return this.activeError||''},hasActiveError:function(){return !!this.getActiveError()},setActiveError:function(a){this.setActiveErrors(a)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(c){var a=this,h=a.errorWrapEl,b=a.msgTarget,g=b==='side',i=b==='qtip',e,d,j,f;c=Ext.Array.from(c);j=a.getTpl('activeErrorsTpl');a.activeErrors=c;d=a.activeError=j.apply({fieldLabel:a.fieldLabel,errors:c,listCls:'x-list-plain'});a.renderActiveError();if(a.rendered){e=a.getActionEl();if(g){a.errorEl.dom.setAttribute('data-errorqtip',d)}else {if(i){e.dom.setAttribute('data-errorqtip',d)}else {if(b==='title'){e.dom.setAttribute('title',d)}}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML=c.join('. ');e.dom.setAttribute('aria-describedby',a.ariaErrorEl.id)}if(g||i){Ext.form.Labelable.initTip()}if(!a.msgTargets[b]){f=Ext.get(b);if(f){f.dom.innerHTML=d}}}if(h){h.setVisible(c.length>0);if(g&&a.autoFitErrors){a.labelEl.addCls(a.topLabelSideErrorCls)}a.updateLayout()}},unsetActiveError:function(){var a=this,e=a.errorWrapEl,b=a.msgTarget,f=a.restoreDisplay,c,d;if(a.hasActiveError()){delete a.activeError;delete a.activeErrors;a.renderActiveError();if(a.rendered){c=a.getActionEl();if(b==='qtip'){c.dom.removeAttribute('data-errorqtip')}else {if(b==='title'){c.dom.removeAttribute('title')}}if(b!=='title'){a.ariaErrorEl.dom.innerHTML='';c.dom.removeAttribute('aria-describedby')}if(!a.msgTargets[b]){d=Ext.get(b);if(d){d.dom.innerHTML=''}}if(e){e.hide();if(b==='side'&&a.autoFitErrors){a.labelEl.removeCls(a.topLabelSideErrorCls)}a.updateLayout();if(f){a.el.dom.style.display='block';a.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=''}},renderActiveError:function(){var a=this,b=a.getActiveError(),c=!!b;if(b!==a.lastActiveError){a.lastActiveError=b;a.fireEvent('errorchange',a,b)}if(a.rendered&&!a.destroyed&&!a.preventMark){a.toggleInvalidCls(c);if(a.errorEl){a.errorEl.dom.innerHTML=b}}},toggleInvalidCls:function(a){this.el[a?'addCls':'removeCls'](this.invalidCls)},setFieldDefaults:function(b){var a;for(a in b){if(!this.hasOwnProperty(a)){this[a]=b[a]}}}},0,0,0,0,0,0,[Ext.form,'Labelable'],function(){if(Ext.supports.Touch){this.prototype.msgTarget='side'}});Ext.cmd.derive('Ext.form.field.Field',Ext.Base,{mixinId:'field',isFormField:!0,config:{validation:null,validationField:null},disabled:!1,submitValue:!0,validateOnChange:!0,valuePublishEvent:'change',suspendCheckChange:0,dirty:!1,initField:function(){var a=this,b=a.valuePublishEvent,d,c;a.initValue();if(Ext.isString(b)){a.on(b,a.publishValue,a)}else {for(c=0,d=b.length;c name="{name}"',' value="{[Ext.util.Format.htmlEncode(values.value)]}"',' placeholder="{placeholder}"','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}',' readonly="readonly"',' disabled="disabled"',' tabindex="{tabIdx}"',' style="{fieldStyle}"',' {$}="{.}"',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete="off"/>',{disableFormats:!0}],defaultBindProperty:'value',autoEl:{role:'presentation'},subTplInsertions:['inputAttrTpl'],childEls:['inputEl'],inputType:'text',isTextInput:!0,invalidText:'The value in this field is invalid',fieldCls:'x-form-field',focusCls:'form-focus',dirtyCls:'x-form-dirty',checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<=9)?['change','propertychange','keyup']:['change','input','textInput','keyup','dragdrop'],ignoreChangeRe:/data\-errorqtip|style\.|className/,checkChangeBuffer:50,liquidLayout:!0,readOnly:!1,readOnlyCls:'x-form-readonly',validateOnBlur:!0,hasFocus:!1,baseCls:'x-field',fieldBodyCls:'x-field-body',maskOnDisable:!1,stretchInputElFixed:!0,ariaEl:'inputEl',initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();a.initDefaultName();if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls('x-form-type-'+a.inputType)},initDefaultName:function(){var a=this;if(!a.name){a.name=a.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+'-inputEl')},getSubTplData:function(f){var a=this,e=a.inputType,d=a.getInputId(),b,c;b=Ext.apply({ui:a.ui,id:d,cmpId:a.id,name:a.name||d,disabled:a.disabled,readOnly:a.readOnly,value:a.getRawValue(),type:e,fieldCls:a.fieldCls,fieldStyle:a.getFieldStyle(),childElCls:f.childElCls,tabIdx:a.tabIndex,inputCls:a.inputCls,typeCls:'x-form-'+(a.isTextInput?'text':e)},a.subTplData);if(a.ariaRole){c={role:a.ariaRole,'aria-hidden':!!a.hidden,'aria-disabled':!!a.disabled,'aria-readonly':!!a.readOnly,'aria-invalid':!1};if(a.ariaLabel){c['aria-label']=a.ariaLabel}if(a.format&&a.formatText&&!b.title){c.title=Ext.String.formatEncode(a.formatText,a.format)}b.inputElAriaAttributes=Ext.apply(c,a.getAriaAttributes())}a.getInsertionRenderData(b,a.subTplInsertions);return b},getSubTplMarkup:function(f){var b=this,c=b.getSubTplData(f),e=b.getTpl('preSubTpl'),d=b.getTpl('postSubTpl'),a='';if(e){a+=e.apply(c)}a+=b.getTpl('fieldSubTpl').apply(c);if(d){a+=d.apply(c)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(b){var c=this,a=c.inputEl;if(a){a.applyStyles(b)}c.fieldStyle=b},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,!0):a||''},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==='file'},getSubmitData:function(){var a=this,b=null,c;if(!a.disabled&&a.submitValue){c=a.getSubmitValue();if(c!==null){b={};b[a.getName()]=c}}return b},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var a=this,b=a.inputEl?a.inputEl.getValue():Ext.valueFrom(a.rawValue,'');a.rawValue=b;return b},setRawValue:function(b){var a=this,c=a.rawValue;if(!a.transformRawValue.$nullFn){b=a.transformRawValue(b)}b=Ext.valueFrom(b,'');if(c===undefined||c!==b||a.valueContainsPlaceholder){a.rawValue=b;if(a.inputEl){a.bindChangeEvents(!1);a.inputEl.dom.value=b;a.bindChangeEvents(!0)}if(a.rendered&&a.reference){a.publishState('rawValue',b)}}return b},transformRawValue:Ext.identityFn,valueToRaw:function(a){return ''+Ext.valueFrom(a,'')},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var a=this,b=a.rawToValue(a.processRawValue(a.getRawValue()));a.value=b;return b},setValue:function(b){var a=this;a.setRawValue(a.valueToRaw(b));return a.mixins.field.setValue.call(a,b)},onBoxReady:function(){var a=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(a.setReadOnlyOnBoxReady){a.setReadOnly(a.readOnly)}},onDisable:function(){var a=this,b=a.inputEl;Ext.Component.prototype.onDisable.call(this);if(b){b.dom.disabled=!0;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=!0}}if(a.wasValid===!1){a.checkValidityChange(!0)}},onEnable:function(){var a=this,b=a.inputEl,d=a.preventMark,c;Ext.Component.prototype.onEnable.call(this);if(b){b.dom.disabled=!1}if(a.wasValid!==undefined){a.forceValidation=!0;a.preventMark=!a.hadErrorOnDisable;c=a.isValid();a.forceValidation=!1;a.preventMark=d;a.checkValidityChange(c)}delete a.hadErrorOnDisable},setReadOnly:function(b){var a=this,c=a.inputEl,d=a.readOnly;b=!!b;a[b?'addCls':'removeCls'](a.readOnlyCls);a.readOnly=b;if(c){c.dom.readOnly=b;a.ariaEl.dom.setAttribute('aria-readonly',b)}else {if(a.rendering){a.setReadOnlyOnBoxReady=!0}}if(b!==d){a.fireEvent('writeablechange',a,b)}},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent('specialkey',this,a)}},initEvents:function(){var a=this,d=a.inputEl,f=a.onFieldMutation,e=a.checkChangeEvents,g=e.length,c,b;if(d){a.mon(d,Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress',a.fireKey,a);for(c=0;c style="{triggerStyle}">','{[values.$trigger.renderBody(values)]}',''],statics:{weightComparator:function(a,b){return a.weight-b.weight}},constructor:function(c){var a=this,b;Ext.apply(a,c);if(a.compat4Mode){b=a.cls;a.focusCls=[a.focusCls,b+'-focus'];a.overCls=[a.overCls,b+'-over'];a.clickCls=[a.clickCls,b+'-click']}},afterFieldRender:function(){this.initEvents()},destroy:function(){var a=this;a.clickRepeater=a.el=Ext.destroy(a.clickRepeater,a.el);a.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=!0;if(a){a.hide()}},initEvents:function(){var a=this,b=a.isFieldEnabled,c=a.getStateEl(),d=a.el;c.addClsOnOver(a.overCls,b,a);c.addClsOnClick(a.clickCls,b,a);if(a.repeatClick){a.clickRepeater=new Ext.util.ClickRepeater(d,{preventDefault:!0,handler:a.onClick,listeners:{mousedown:a.onClickRepeaterMouseDown,scope:a},scope:a})}else {a.field.mon(d,{click:a.onClick,mousedown:a.onMouseDown,scope:a})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=!1;if(a.hidden||!c||!a.rendered||a.destroyed){b=!0}return !b},onClick:function(){var a=this,c=arguments,e=a.clickRepeater?c[1]:c[0],d=a.handler,b=a.field;if(d&&!b.readOnly&&a.isFieldEnabled()){Ext.callback(a.handler,a.scope,[b,a,e],0,b)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=='touch'&&!this.field.owns(Ext.Element.getActiveElement())){this.field.inputEl.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==='mousedown'){this.field.inputEl.focus()}a.preventDefault()},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var a=this,b=a.el=a.field.triggerWrap.selectNode('#'+a.domId,!1);b.setVisibilityMode(Ext.Element.DISPLAY);a.rendered=!0},renderBody:function(b){var a=this,c=a.bodyTpl;Ext.apply(b,a.getBodyRenderData());return c?Ext.XTemplate.getTpl(a,'bodyTpl').apply(b):''},renderTrigger:function(b){var a=this,d=a.width,c=a.hidden?'display:none;':'';if(d){c+='width:'+d}return Ext.XTemplate.getTpl(a,'renderTpl').apply({$trigger:a,fieldData:b,ui:b.ui,childElCls:b.childElCls,triggerId:a.domId=a.field.id+'-trigger-'+a.id,cls:a.cls,triggerStyle:c,extraCls:a.extraCls,baseCls:a.baseCls})},setHidden:function(a){if(a!==this.hidden){this[a?'hide':'show']()}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=!1;if(a){a.show()}}},1,0,0,0,['trigger.trigger'],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.form.trigger,'Trigger'],0);Ext.cmd.derive('Ext.form.field.Text',Ext.form.field.Base,{alternateClassName:['Ext.form.TextField','Ext.form.Text'],config:{hideTrigger:!1,triggers:undefined},renderConfig:{editable:!0},growMin:30,growMax:800,growAppend:'W',allowBlank:!0,validateBlank:!1,allowOnlyWhitespace:!0,minLength:0,maxLength:Number.MAX_VALUE,minLengthText:'The minimum length for this field is {0}',maxLengthText:'The maximum length for this field is {0}',blankText:'This field is required',regexText:'',emptyText:'',emptyCls:'x-form-empty-field',requiredCls:'x-form-required-field',valueContainsPlaceholder:!1,ariaRole:'textbox',repeatTriggerClick:!1,triggerWrapCls:'x-form-trigger-wrap',triggerWrapFocusCls:'x-form-trigger-wrap-focus',triggerWrapInvalidCls:'x-form-trigger-wrap-invalid',fieldBodyCls:'x-form-text-field-body',inputWrapCls:'x-form-text-wrap',inputWrapFocusCls:'x-form-text-wrap-focus',inputWrapInvalidCls:'x-form-text-wrap-invalid',growCls:'x-form-text-grow',needArrowKeys:!0,squashMouseUp:{mouseup:function(){},translate:!1,single:!0,preventDefault:!0},childEls:['triggerWrap','inputWrap'],preSubTpl:[''],initComponent:function(){var a=this,b=a.emptyCls;if(a.allowOnlyWhitespace===!1){a.allowBlank=!1}if(a.size){a.defaultBodyWidth=a.size*6.5+20}if(!a.onTrigger1Click){a.onTrigger1Click=a.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(a.readOnly){a.setReadOnly(a.readOnly)}a.fieldFocusCls=a.baseCls+'-focus';a.emptyUICls=b+' '+b+'-'+a.ui;a.addStateEvents('change')},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(a.selectOnFocus||a.emptyText){a.mon(b,'mousedown',a.onMouseDown,a)}if(a.maskRe||a.vtype&&a.disableKeyFilter!==!0&&(a.maskRe=Ext.form.field.VTypes[a.vtype+'Mask'])){a.mon(b,'keypress',a.filterKeys,a)}if(a.enableKeyEvents){a.mon(b,{scope:a,keyup:a.onKeyUp,keydown:a.onKeyDown,keypress:a.onKeyPress})}},isEqual:function(a,b){return this.isEqualAsString(a,b)},onChange:function(a,b){Ext.form.field.Base.prototype.onChange.apply(this,arguments);this.autoSize()},getSubTplData:function(h){var a=this,c=a.getRawValue(),g=a.emptyText&&c.length<1,b=a.maxLength,e,f,d;if(a.enforceMaxLength){if(b===Number.MAX_VALUE){b=undefined}}else {b=undefined}if(g){if(Ext.supports.Placeholder){e=a.emptyText}else {c=a.emptyText;a.valueContainsPlaceholder=!0}}f=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,h),{triggerWrapCls:a.triggerWrapCls,inputWrapCls:a.inputWrapCls,triggers:a.orderedTriggers,maxLength:b,readOnly:!a.editable||a.readOnly,placeholder:e,value:c,fieldCls:a.fieldCls+(g&&(e||c)?' '+a.emptyUICls:'')+(a.allowBlank?'':' '+a.requiredCls)});d=f.inputElAriaAttributes;if(d){d['aria-required']=!a.allowBlank}return f},onRender:function(){var a=this,b=a.getTriggers(),c=[],d,e;if(Ext.supports.FixedTableWidthBug){a.el._needsTableWidthFix=!0}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(b){this.invokeTriggers('onFieldRender');for(d in b){c.push(b[d].el)}e=a.triggerEl=a.triggerCell=new Ext.CompositeElement(c,!0)}a.inputCell=a.inputWrap},afterRender:function(){var a=this;a.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);a.invokeTriggers('afterFieldRender')},onMouseDown:function(){if(!this.hasFocus){Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(c){var a=this,j=a.getHideTrigger(),k=a.readOnly,f=a.orderedTriggers=[],i=a.repeatTriggerClick,e,b,h,g,d;if(!c){c={};if(a.triggerCls&&!a.trigger1Cls){a.trigger1Cls=a.triggerCls}for(d=1;g=a['trigger'+d+'Cls'];d++){c['trigger'+d]={cls:g,extraCls:'x-trigger-index-'+d,handler:'onTrigger'+d+'Click',compat4Mode:!0,scope:a}}}for(e in c){if(c.hasOwnProperty(e)){b=c[e];b.field=a;b.id=e;if(k&&b.hideOnReadOnly!==!1||j&&b.hidden!==!1){b.hidden=!0}if(i&&b.repeatClick!==!1){b.repeatClick=!0}h=c[e]=Ext.form.trigger.Trigger.create(b);f.push(h)}}Ext.Array.sort(f,Ext.form.trigger.Trigger.weightComparator);return c},invokeTriggers:function(d,e){var f=this,a=f.getTriggers(),c,b;if(a){for(c in a){if(a.hasOwnProperty(c)){b=a[c];b[d].apply(b,e||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateHideTrigger:function(a){this.invokeTriggers(a?'hide':'show')},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(a){var b=this,d=b.getTriggers(),f=b.getHideTrigger(),c,e;a=!!a;Ext.form.field.Base.prototype.setReadOnly.call(this,a);if(b.rendered){b.setReadOnlyAttr(a||!b.editable)}if(d){for(e in d){c=d[e];if(c.hideOnReadOnly===!0||c.hideOnReadOnly!==!1&&!f){c.setVisible(!a)}}}},setReadOnlyAttr:function(c){var b=this,a='readonly',d=b.inputEl.dom;if(c){d.setAttribute(a,a)}else {d.removeAttribute(a)}if(b.ariaRole){b.ariaEl.dom.setAttribute('aria-readonly',!!c)}},processRawValue:function(c){var e=this,a=e.stripCharsRe,d,b;if(a){if(!a.global){d='g';d+=a.ignoreCase?'i':'';d+=a.multiline?'m':'';a=new RegExp(a.source,d)}b=c.replace(a,'');if(b!==c){e.setRawValue(b);c=b}}return c},onDisable:function(){Ext.form.field.Base.prototype.onDisable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable='on'}},onEnable:function(){Ext.form.field.Base.prototype.onEnable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable=''}},onKeyDown:function(a){this.fireEvent('keydown',this,a)},onKeyUp:function(a){this.fireEvent('keyup',this,a)},onKeyPress:function(a){this.fireEvent('keypress',this,a)},reset:function(){Ext.form.field.Base.prototype.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){var a=this,b=a.emptyText,c;if(a.rendered&&b){c=a.getRawValue().length<1&&!a.hasFocus;if(Ext.supports.Placeholder){a.inputEl.dom.placeholder=b}else {if(c){a.setRawValue(b);a.valueContainsPlaceholder=!0}}if(c){a.inputEl.addCls(a.emptyUICls)}else {a.inputEl.removeCls(a.emptyUICls)}a.autoSize()}},getEmptyText:function(){return this.emptyText},setEmptyText:function(e){var a=this,c=a.inputEl,b=c&&c.dom,d=e||'';if(e){a.emptyText=d;a.applyEmptyText()}else {if(b){if(Ext.supports.Placeholder){b.removeAttribute('placeholder')}else {if(b.value!==a.getRawValue()){b.value='';c.removeCls(a.emptyUICls)}}a.valueContainsPlaceholder=!1}}a.emptyText=d;return a},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var a=this.inputEl;if(a){a.dom.unselectable='on'}}},toggleInvalidCls:function(b){var a=b?'addCls':'removeCls';Ext.form.field.Base.prototype.toggleInvalidCls.call(this);this.triggerWrap[a](this.triggerWrapInvalidCls);this.inputWrap[a](this.inputWrapInvalidCls)},beforeFocus:function(){var a=this,b=a.inputEl,c=a.emptyText,d;Ext.form.field.Base.prototype.beforeFocus.apply(this,arguments);if(c&&!Ext.supports.Placeholder&&(b.dom.value===a.emptyText&&a.valueContainsPlaceholder)){a.setRawValue('');d=!0;b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}else {if(Ext.supports.Placeholder){b.removeCls(a.emptyUICls)}}},onFocus:function(b){var a=this;Ext.form.field.Base.prototype.onFocus.apply(this,arguments);if(a.selectOnFocus){a.inputEl.dom.select()}if(a.emptyText){a.autoSize()}a.addCls(a.fieldFocusCls);a.triggerWrap.addCls(a.triggerWrapFocusCls);a.inputWrap.addCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldFocus',[b])},onBlur:function(b){var a=this;Ext.form.field.Base.prototype.onBlur.apply(this,arguments);a.removeCls(a.fieldFocusCls);a.triggerWrap.removeCls(a.triggerWrapFocusCls);a.inputWrap.removeCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldBlur',[b])},completeEdit:function(a){Ext.form.field.Base.prototype.completeEdit.call(this,a);this.applyEmptyText()},filterKeys:function(a){if(a.ctrlKey&&!a.altKey||a.isSpecialKey()){return}var b=String.fromCharCode(a.getCharCode());if(!this.maskRe.test(b)){a.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),'value')},applyState:function(a){Ext.form.field.Base.prototype.applyState.apply(this,arguments);if(a.hasOwnProperty('value')){this.setValue(a.value)}},getRawValue:function(){var b=this,a=Ext.form.field.Base.prototype.getRawValue.call(this);if(a===b.emptyText&&b.valueContainsPlaceholder){a=''}return a},setValue:function(c){var a=this,b=a.inputEl;if(b&&a.emptyText&&!Ext.isEmpty(c)){b.removeCls(a.emptyUICls);a.valueContainsPlaceholder=!1}Ext.form.field.Base.prototype.setValue.apply(this,arguments);a.applyEmptyText();return a},getErrors:function(b){b=arguments.length?b==null?'':b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Base.prototype.getErrors.call(this,b),f=a.validator,d=a.vtype,j=Ext.form.field.VTypes,k=a.regex,i=Ext.String.format,e,h,g;if(Ext.isFunction(f)){e=f.call(a,b);if(e!==!0){c.push(e)}}h=a.allowOnlyWhitespace?b:Ext.String.trim(b);if(h.length<1||b===a.emptyText&&a.valueContainsPlaceholder){if(!a.allowBlank){c.push(a.blankText)}if(!a.validateBlank){return c}g=!0}if(!g&&b.lengtha.maxLength){c.push(i(a.maxLengthText,a.maxLength))}if(d){if(!j[d](b,a)){c.push(a.vtypeText||j[d+'Text'])}}if(k&&!k.test(b)){c.push(a.regexText||a.invalidText)}return c},selectText:function(a,b){var f=this,g=f.getRawValue(),c=g.length,e=f.inputEl.dom,d;if(c>0){a=a===undefined?0:Math.min(a,c);b=b===undefined?c:Math.min(b,c);if(e.setSelectionRange){e.setSelectionRange(a,b)}else {if(e.createTextRange){d=e.createTextRange();d.moveStart('character',a);d.moveEnd('character',b-c);d.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var a=this,d,f,c,g,b,e;if(a.grow&&a.rendered&&a.getSizeModel().width.auto){g=a.inputEl;d=a.getTriggers();c=0;e=Ext.util.Format.htmlEncode(a.getGrowWidth()||(a.hasFocus?'':a.emptyText)||'');e+=a.growAppend;for(f in d){c+=d[f].el.getWidth()}b=g.getTextWidth(e)+c+a.inputWrap.getBorderWidth('lr')+a.triggerWrap.getBorderWidth('lr');b=Math.min(Math.max(b,a.growMin),a.growMax);a.bodyEl.setWidth(b);a.updateLayout();a.fireEvent('autosize',a,b)}},onDestroy:function(){var a=this;a.invokeTriggers('destroy');Ext.destroy(a.triggerRepeater);Ext.form.field.Base.prototype.onDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return 'textfield'}},deprecated:{5:{methods:{getTriggerWidth:function(){var a=this.getTriggers(),c=0,b;if(a&&this.rendered){for(b in a){if(a.hasOwnProperty(b)){c+=a[b].el.getWidth()}}}return c}}}}},0,['textfield'],['component','box','field','textfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0},['widget.textfield'],0,[Ext.form.field,'Text',Ext.form,'TextField',Ext.form,'Text'],0);Ext.cmd.derive('Ext.form.field.TextArea',Ext.form.field.Text,{alternateClassName:'Ext.form.TextArea',fieldSubTpl:['',{disableFormats:!0}],growMin:60,growMax:1000,growAppend:'\n-',enterIsSpecial:!1,preventScrollbars:!1,returnRe:/\r/g,inputCls:'x-form-textarea',extraFieldBodyCls:'x-form-textarea-body',ariaAttributes:{'aria-multiline':!0},getSubTplData:function(d){var a=this,c=a.getFieldStyle(),b=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(a.grow){if(a.preventScrollbars){b.fieldStyle=(c||'')+';overflow:hidden;height:'+a.growMin+'px'}}return b},afterRender:function(){var a=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);a.needsMaxCheck=a.enforceMaxLength&&a.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(a.needsMaxCheck){a.inputEl.on('paste',a.onPaste,a)}},transformRawValue:function(a){return this.stripReturns(a)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(a){a=this.stripReturns(a);return Ext.form.field.Text.prototype.valueToRaw.call(this,a)},stripReturns:function(a){if(a&&typeof a==='string'){a=a.replace(this.returnRe,'')}return a},onPaste:function(){var a=this;if(!a.pasteTask){a.pasteTask=new Ext.util.DelayedTask(a.pasteCheck,a)}a.pasteTask.delay(1)},pasteCheck:function(){var b=this,a=b.getValue(),c=b.maxLength;if(a.length>c){a=a.substr(0,c);b.setValue(a)}},fireKey:function(a){var b=this,c=a.getKey(),d;if(a.isSpecialKey()&&(b.enterIsSpecial||(c!==a.ENTER||a.hasModifier()))){b.fireEvent('specialkey',b,a)}if(b.needsMaxCheck&&c!==a.BACKSPACE&&c!==a.DELETE&&!a.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(a,c)){d=b.getValue();if(d.length>=b.maxLength){a.stopEvent()}}},isCutCopyPasteSelectAll:function(a,b){if(a.ctrlKey){return b===a.A||b===a.C||b===a.V||b===a.X}return !1},autoSize:function(){var a=this,b,c,e,d;if(a.grow&&a.rendered&&a.getSizeModel().height.auto){b=a.inputEl;e=b.getWidth(!0);d=Ext.util.Format.htmlEncode(b.dom.value)||' ';d+=a.growAppend;d=d.replace(/\n/g,'
    ');c=Ext.util.TextMetrics.measure(b,d,e).height+b.getPadding('tb')+a.inputWrap.getBorderWidth('tb')+a.triggerWrap.getBorderWidth('tb');c=Math.min(Math.max(c,a.growMin),a.growMax);a.bodyEl.setHeight(c);a.updateLayout();a.fireEvent('autosize',a,c)}},beforeDestroy:function(){var a=this.pasteTask;if(a){a.cancel();this.pasteTask=null}Ext.form.field.Text.prototype.beforeDestroy.call(this)}},0,['textarea','textareafield'],['component','box','field','textfield','textareafield','textarea'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'textareafield':!0,'textarea':!0},['widget.textarea','widget.textareafield'],0,[Ext.form.field,'TextArea',Ext.form,'TextArea'],0);Ext.cmd.derive('Ext.window.MessageBox',Ext.window.Window,{OK:1,YES:2,NO:4,CANCEL:8,OKCANCEL:9,YESNO:6,YESNOCANCEL:14,INFO:'x-message-box-info',WARNING:'x-message-box-warning',QUESTION:'x-message-box-question',ERROR:'x-message-box-error',hideMode:'offsets',closeAction:'hide',resizable:!1,scrollable:!0,title:' ',defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:!0,cls:['x-message-box','x-hidden-offsets'],layout:{type:'vbox',align:'stretch'},shrinkWrapDock:!0,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:'OK',yes:'Yes',no:'No',cancel:'Cancel'},buttonIds:['ok','yes','no','cancel'],titleText:{confirm:'Confirm',prompt:'Prompt',wait:'Loading...',alert:'Attention'},baseIconCls:'x-message-box-icon',ariaRole:'alertdialog',makeButton:function(b){var a=this.buttonIds[b];return new Ext.button.Button({handler:this.btnCallback,itemId:a,scope:this,text:this.buttonText[a],minWidth:75})},btnCallback:function(e,b){var a=this,d,c;if(b&&b.type==='keydown'&&!b.isSpecialKey()){b.getTarget(null,null,!0).on({keyup:function(c){a.btnCallback(e,c)},single:!0});return}if(a.cfg.prompt||a.cfg.multiline){if(a.cfg.multiline){c=a.textArea}else {c=a.textField}d=c.getValue();c.reset()}a.hide();a.userCallback(e.itemId,d,a.cfg)},hide:function(){var a=this,b=a.cfg?a.cfg.cls:'';a.progressBar.reset();if(b){a.removeCls(b)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(b){var a=this;Ext.window.Window.prototype.constructor.apply(this,arguments);a.minWidth=a.defaultMinWidth=a.minWidth||a.defaultMinWidth;a.maxWidth=a.defaultMaxWidth=a.maxWidth||a.defaultMaxWidth;a.minHeight=a.defaultMinHeight=a.minHeight||a.defaultMinHeight;a.maxHeight=a.defaultMaxHeight=a.maxHeight||a.defaultMaxHeight},initComponent:function(e){var a=this,b=a.id,d,c;a.title=a.title||' ';a.iconCls=a.iconCls||'';a.topContainer=new Ext.container.Container({layout:'hbox',padding:10,style:{overflow:'hidden'},items:[a.iconComponent=new Ext.Component({cls:a.baseIconCls}),a.promptContainer=new Ext.container.Container({flex:1,layout:{type:'vbox',align:'stretch'},items:[a.msg=new Ext.Component({id:b+'-msg',cls:a.baseCls+'-text'}),a.textField=new Ext.form.field.Text({id:b+'-textfield',enableKeyEvents:!0,listeners:{keydown:a.onPromptKey,scope:a}}),a.textArea=new Ext.form.field.TextArea({id:b+'-textarea',height:75})]})]});a.progressBar=new Ext.ProgressBar({id:b+'-progressbar',margin:'0 10 10 10'});a.items=[a.topContainer,a.progressBar];a.msgButtons=[];for(d=0;d<4;d++){c=a.makeButton(d);a.msgButtons[c.itemId]=c;a.msgButtons.push(c)}a.bottomTb=new Ext.toolbar.Toolbar({id:b+'-toolbar',ui:'footer',dock:'bottom',layout:{pack:'center'},items:[a.msgButtons[0],a.msgButtons[1],a.msgButtons[2],a.msgButtons[3]]});a.dockedItems=[a.bottomTb];a.on('close',a.onClose,a);Ext.window.Window.prototype.initComponent.call(this)},onClose:function(){var a=this.header.child('[type=close]');if(a){a.itemId='cancel';this.btnCallback(a);delete a.itemId}},onPromptKey:function(c,b){var a=this;if(b.keyCode===b.RETURN||b.keyCode===10){if(a.msgButtons.ok.isVisible()){a.msgButtons.ok.handler.call(a,a.msgButtons.ok)}else {if(a.msgButtons.yes.isVisible()){a.msgButtons.yes.handler.call(a,a.msgButtons.yes)}}}},reconfigure:function(b){var a=this,j=0,q=!0,t=a.buttonText,g=a.resizer,c=a.header,r=c&&!c.isHeader,s=b&&(b.message||b.msg),i,n,m,e,d,f,o,k,l,h,p;a.updateButtonText();a.cfg=b=b||{};h=b.wait;if(b.width){n=b.width}if(b.height){m=b.height}a.minWidth=b.minWidth||a.defaultMinWidth;a.maxWidth=b.maxWidth||a.defaultMaxWidth;a.minHeight=b.minHeight||a.defaultMinHeight;a.maxHeight=b.maxHeight||a.defaultMaxHeight;if(g){i=g.resizeTracker;g.minWidth=i.minWidth=a.minWidth;g.maxWidth=i.maxWidth=a.maxWidth;g.minHeight=i.minHeight=a.minHeight;g.maxHeight=i.maxHeight=a.maxHeight}delete a.defaultFocus;if(b.defaultFocus){a.defaultFocus=b.defaultFocus}a.animateTarget=b.animateTarget||undefined;a.modal=b.modal!==!1;a.setTitle(b.title||r&&c.title||a.title);a.setIconCls(b.iconCls||r&&c.iconCls||a.iconCls);if(Ext.isObject(b.buttons)){a.buttonText=b.buttons;j=0}else {a.buttonText=b.buttonText||a.buttonText;j=Ext.isNumber(b.buttons)?b.buttons:0}j=j|a.updateButtonText();a.buttonText=t;Ext.suspendLayouts();a.width=a.height=null;if(n||m){if(n){a.setWidth(n)}if(m){a.setHeight(m)}}a.hidden=!1;if(!a.rendered){a.render(Ext.getBody())}a.closable=b.closable!==!1&&!h;c=a.header;if(c){p=c.child('[type=close]');if(p){p.setVisible(a.closable)}if(!b.title&&!a.closable&&!b.iconCls){c.hide()}else {c.show()}}a.liveDrag=!b.proxyDrag;a.userCallback=Ext.Function.bindCallback(b.callback||b.fn||Ext.emptyFn,b.scope||Ext.global);a.setIcon(b.icon);o=a.msg;if(s){o.setHtml(s);o.show()}else {o.hide()}d=a.textArea;f=a.textField;if(b.prompt||b.multiline){a.multiline=b.multiline;if(b.multiline){d.setValue(b.value);d.setHeight(b.defaultTextHeight||a.defaultTextHeight);d.show();f.hide();a.defaultFocus=d}else {f.setValue(b.value);d.hide();f.show();a.defaultFocus=f}}else {d.hide();f.hide()}k=a.progressBar;if(b.progress||h){k.show();a.updateProgress(0,b.progressText);if(h){k.wait(h===!0?b.waitConfig:h)}}else {k.hide()}l=a.msgButtons;for(e=0;e<4;e++){if(j&Math.pow(2,e)){if(!a.defaultFocus){a.defaultFocus=l[e]}l[e].show();q=!1}else {l[e].hide()}}if(q){a.bottomTb.hide()}else {a.bottomTb.show()}Ext.resumeLayouts(!0)},updateButtonText:function(){var b=this,c=b.buttonText,e=0,a,d;for(a in c){if(c.hasOwnProperty(a)){d=b.msgButtons[a];if(d){if(b.cfg&&b.cfg.buttonText){e=e|Math.pow(2,Ext.Array.indexOf(b.buttonIds,a))}if(d.text!==c[a]){d.setText(c[a])}}}}return e},show:function(b){var a=this,c;b=b||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){a.show(b)},single:!0});return a}a.reconfigure(b);if(b.cls){a.addCls(b.cls)}c=a.query('textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])');a.preventFocusOnActivate=!c.length;a.hidden=!0;Ext.window.Window.prototype.show.call(this);return a},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(e,d,c){var b=this,a=b.iconComponent,f=b.messageIconCls;if(f){a.removeCls(f)}if(e){a.show();if(d||c){a.setSize(d||a.getWidth(),c||a.getHeight())}a.addCls('x-dlg-icon');a.addCls(b.messageIconCls=e)}else {a.removeCls('x-dlg-icon');a.hide()}return b},updateProgress:function(c,b,a){this.progressBar.updateProgress(c,b);if(a){this.updateText(a)}return this},onEsc:function(){if(this.closable!==!1){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,b,d,c){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:b,buttons:this.YESNO,callback:d,scope:c}}return this.show(a)},prompt:function(a,c,f,d,b,e){if(Ext.isString(a)){a={prompt:!0,title:a,minWidth:this.minPromptWidth,message:c,buttons:this.OKCANCEL,callback:f,scope:d,multiline:b,value:e}}return this.show(a)},wait:function(a,c,b){if(Ext.isString(a)){a={title:c,message:a,closable:!1,wait:!0,modal:!0,minWidth:this.minProgressWidth,waitConfig:b}}return this.show(a)},alert:function(a,b,d,c){if(Ext.isString(a)){a={title:a,message:b,buttons:this.OK,fn:d,scope:c,minWidth:this.minWidth}}return this.show(a)},progress:function(a,c,b){if(Ext.isString(a)){a={title:a,message:c,progress:!0,progressText:b}}return this.show(a)}},1,['messagebox'],['component','box','container','panel','window','messagebox'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'messagebox':!0},['widget.messagebox'],0,[Ext.window,'MessageBox'],function(a){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new a()})});Ext.cmd.derive('Ext.form.Basic',Ext.util.Observable,{alternateClassName:'Ext.form.BasicForm',taskDelay:10,constructor:function(c,d){var a=this,b;a.owner=c;a.fieldMonitors={validitychange:a.checkValidityDelay,enable:a.checkValidityDelay,disable:a.checkValidityDelay,dirtychange:a.checkDirtyDelay,errorchange:a.checkErrorDelay,scope:a};a.checkValidityTask=new Ext.util.DelayedTask(a.checkValidity,a);a.checkDirtyTask=new Ext.util.DelayedTask(a.checkDirty,a);a.checkErrorTask=new Ext.util.DelayedTask(a.checkError,a);a.monitor=new Ext.container.Monitor({selector:'[isFormField]:not([excludeForm])',scope:a,addHandler:a.onFieldAdd,removeHandler:a.onFieldRemove,invalidateHandler:a.onMonitorInvalidate});a.monitor.bind(c);Ext.apply(a,d);if(Ext.isString(a.paramOrder)){a.paramOrder=a.paramOrder.split(/[\s,|]/)}b=a.reader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.reader=Ext.createByAlias('reader.'+b.type,b)}b=a.errorReader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.errorReader=Ext.createByAlias('reader.'+b.type,b)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=!0;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:!1,waitTitle:'Please Wait...',trackResetOnLoad:!1,wasDirty:!1,destroy:function(){var a=this,b=a.monitor;if(b){b.unbind();a.monitor=null}a.clearListeners();a.checkValidityTask.cancel();a.checkDirtyTask.cancel();a.checkErrorTask.cancel();a.checkValidityTask=a.checkDirtyTask=a.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},onFieldAdd:function(a){a.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(a){a.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var a=this._boundItems;if(!a||a.getCount()===0){a=this._boundItems=new Ext.util.MixedCollection();a.addAll(this.owner.query('[formBind]'))}return a},hasInvalidField:function(){return !!this.getFields().findBy(function(a){var c=a.preventMark,b;a.preventMark=!0;b=a.isValid();a.preventMark=c;return !b})},isValid:function(){var b=this,a;Ext.suspendLayouts();a=b.getFields().filterBy(function(a){return !a.validate()});Ext.resumeLayouts(!0);return a.length<1},checkValidity:function(){var a=this,b;if(a.destroyed){return}b=!a.hasInvalidField();if(b!==a.wasValid){a.onValidityChange(b);a.fireEvent('validitychange',a,b);a.wasValid=b}},checkValidityDelay:function(){var a=this.taskDelay;if(a){this.checkValidityTask.delay(a)}else {this.checkValidity()}},checkError:function(){this.fireEvent('errorchange',this)},checkErrorDelay:function(){var a=this.taskDelay;if(a){this.checkErrorTask.delay(a)}else {this.checkError()}},onValidityChange:function(e){var d=this.getBoundItems(),b,a,f,c;if(d){b=d.items;f=b.length;for(a=0;a',' {$}="{.}"','',' role="presentation"','','>','{%this.renderContainer(out,values)%}',''],initComponent:function(){var a=this;a.initLabelable();a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.initMonitor()},onAdd:function(b){var a=this;if(b.isLabelable&&Ext.isGecko&&Ext.firefoxVersion<37&&a.layout.type==='absolute'&&!a.hideLabel&&a.labelAlign!=='top'){b.x+=a.labelWidth+a.labelPad}Ext.container.Container.prototype.onAdd.apply(this,arguments);if(b.isLabelable&&a.combineLabels){b.oldHideLabel=b.hideLabel;b.hideLabel=!0}a.updateLabel()},onRemove:function(a,c){var b=this;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!c){if(a.isLabelable&&b.combineLabels){a.hideLabel=a.oldHideLabel}b.updateLabel()}},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.containerElCls=b.containerElCls;a=Ext.applyIf(a,b.getLabelableRenderData());a.tipAnchorTarget=b.id+'-containerEl';return a},getFieldLabel:function(){var a=this.fieldLabel||'';if(!a&&this.combineLabels){a=Ext.Array.map(this.query('[isFieldLabelable]'),function(a){return a.getFieldLabel()}).join(this.labelConnector)}return a},getSubTplData:function(){var a=this.initRenderData();Ext.apply(a,this.subTplData);return a},getSubTplMarkup:function(d){var b=this,a=b.getTpl('fieldSubTpl'),c;if(!a.renderContent){b.setupRenderTpl(a)}c=a.apply(b.getSubTplData(d));return c},updateLabel:function(){var a=this,b=a.labelEl;if(b){a.setFieldLabel(a.getFieldLabel())}},onFieldErrorChange:function(){if(this.combineErrors){var a=this,d=a.getActiveError(),c=Ext.Array.filter(a.query('[isFormField]'),function(a){return a.hasActiveError()}),b=a.getCombinedErrors(c);if(b){a.setActiveErrors(b)}else {a.unsetActiveError()}if(d!==a.getActiveError()){a.updateLayout()}}},getCombinedErrors:function(f){var g=[],b,j=f.length,d,c,a,i,h,e;for(b=0;b','','','{% this.renderColumn(out,parent,xindex-1) %}','','',''],lastOwnerItemsGeneration:null,beginLayout:function(i){var d=this,h,e,a,c,f,j=0,g=0,k=d.autoFlex,b=d.innerCt.dom.style;Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);h=d.columnNodes;i.innerCtContext=i.getEl('innerCt',d);if(!i.widthModel.shrinkWrap){e=h.length;if(d.columnsArray){for(a=0;ad){b=c-d;e=f.rowEl;for(a=0;a','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','',' tabindex="{tabIdx}"',' disabled="disabled"',' style="{fieldStyle}"',' class="{checkboxCls} {clipCls}" autocomplete="off" hidefocus="true" ',' {$}="{.}"','/>','','','{beforeBoxLabelTpl}','','{afterBoxLabelTpl}','','',{disableFormats:!0,compiled:!0}],publishes:{checked:1},subTplInsertions:['beforeBoxLabelTpl','afterBoxLabelTpl','beforeBoxLabelTextTpl','afterBoxLabelTextTpl','boxLabelAttrTpl','inputAttrTpl'],isCheckbox:!0,focusCls:'form-checkbox-focus',fieldBodyCls:'x-form-cb-wrap',checked:!1,checkedCls:'x-form-cb-checked',boxLabelCls:'x-form-cb-label',boxLabelAlign:'after',afterLabelCls:'x-form-cb-after',wrapInnerCls:'x-form-cb-wrap-inner',noBoxLabelCls:'x-form-cb-no-box-label',inputValue:'on',checkChangeEvents:[],inputType:'checkbox',isTextInput:!1,ariaRole:'checkbox',onRe:/^on$/i,inputCls:'x-form-cb',_checkboxCls:'x-form-cb-input',_clipCls:'x-hidden-clip',initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);a.getManager().add(a)},initDefaultName:Ext.emptyFn,initValue:function(){var a=this,b=!!a.checked;a.originalValue=a.lastValue=b;a.setValue(b)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}return Ext.form.field.Base.prototype.getElConfig.call(this)},getSubTplData:function(g){var a=this,f=a.boxLabel,e=a.boxLabelAlign,d=e==='before',c,b;c=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,g),{clipCls:a._clipCls,checkboxCls:a._checkboxCls,disabled:a.readOnly||a.disabled,wrapInnerCls:a.wrapInnerCls,boxLabel:f,boxLabelCls:a.boxLabelCls,boxLabelAlign:e,labelAlignedBefore:d,afterLabelCls:d?a.afterLabelCls:'',noBoxLabelCls:!f?a.noBoxLabelCls:'',inputName:a.name||a.id});b=c.inputElAriaAttributes;if(b){b['aria-checked']=!!a.checked;b['aria-labelledby']=a.id+'-boxLabelEl'}return c},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.inputEl.on({click:'onBoxClick',scope:a,translate:!1});a.displayEl.on({click:'onBoxClick',mousedown:'_onDisplayElMouseDown',scope:a})},setBoxLabel:function(b){var a=this;a.boxLabel=b;if(a.rendered){a.boxLabelEl.setHtml(b);a.boxLabelEl[b?'removeCls':'addCls'](a.noBoxLabelCls);a.updateLayout()}},onBoxClick:function(){var a=this;if(!a.disabled&&!a.readOnly){a.setValue(!a.checked)}},getRawValue:function(){return this.checked},getValue:function(){return this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.checked?this.inputValue:b},isChecked:function(a,b){return a===!0||a==='true'||a==='1'||a===1||((Ext.isString(a)||Ext.isNumber(a))&&b?a==b:this.onRe.test(a))},setRawValue:function(e){var a=this,d=a.inputEl,c=a.displayEl,b=a.isChecked(e,a.inputValue);if(d){a[b?'addCls':'removeCls'](a.checkedCls);if(a.ariaRole){a.ariaEl.dom.setAttribute('aria-checked',b)}}if(Ext.isIE8&&c&&b!==a.lastValue){c.repaint()}a.checked=a.rawValue=b;if(!a.duringSetValue){a.lastValue=b}return b},setValue:function(e){var a=this,c,b,f,d;if(Ext.isArray(e)){c=a.getManager().getByName(a.name,a.getFormId()).items;f=c.length;for(b=0;b style="{bodyStyle}">','{%this.renderContainer(out,values);%}',''],stateEvents:['collapse','expand'],maskOnDisable:!1,beforeDestroy:function(){var b=this,a=b.legend;if(a){delete a.ownerCt;a.destroy();b.legend=null}Ext.container.Container.prototype.beforeDestroy.call(this)},initComponent:function(){var a=this,b=a.baseCls;if(a.ariaRole&&!a.ariaLabel){a.ariaLabel=Ext.String.formatEncode(a.descriptionText,a.title||'')}a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!a.collapsed;a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.layout.managePadding=a.layout.manageOverflow=!1;if(a.collapsed){a.addCls(b+'-collapsed');a.collapse()}if(a.title||a.checkboxToggle||a.collapsible){a.addTitleClasses();a.legend=a.createLegendCt()}a.initMonitor()},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.bodyTargetCls=b.bodyTargetCls;b.protoBody.writeTo(a);delete b.protoBody;return a},getState:function(){var a=Ext.container.Container.prototype.getState.call(this);a=this.addPropertyToState(a,'collapsed');return a},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn,collapsedHorizontal:function(){return !0},collapsedVertical:function(){return !0},createLegendCt:function(){var a=this,c=[],d={baseCls:a.baseCls+'-header',layout:'container',ui:a.ui,id:a.id+'-legend',autoEl:'legend',ariaRole:null,items:c,ownerCt:a,shrinkWrap:!0,ownerLayout:a.componentLayout},b;if(a.checkboxToggle){c.push(a.createCheckboxCmp())}else {if(a.collapsible){c.push(a.createToggleCmp())}}c.push(a.createTitleCmp());b=new Ext.container.Container(d);b.collapseImmune=!0;b.getInherited().collapseImmune=!0;return b},createTitleCmp:function(){var a=this,b={html:a.title,ui:a.ui,cls:a.baseCls+'-header-text',id:a.id+'-legendTitle',ariaRole:'presentation'};if(a.collapsible&&a.toggleOnTitleClick){b.listeners={click:{element:'el',scope:a,fn:a.toggle}};b.cls+=' '+a.baseCls+'-header-text-collapsible'}a.titleCmp=new Ext.Component(b);return a.titleCmp},createCheckboxCmp:function(){var a=this,d='-checkbox',b=a.baseCls+'-header'+d,c;b+=' '+b+'-'+a.ui;a.checkboxCmp=c=new Ext.form.field.Checkbox({hideEmptyLabel:!0,name:a.checkboxName||a.id+d,cls:b,id:a.id+'-legendChk',ui:a.checkboxUI,checked:!a.collapsed,msgTarget:'none',listeners:{change:a.onCheckChange,scope:a},ariaLabel:a.expandText});return c},createToggleCmp:function(){var a=this,b;a.toggleCmp=b=new Ext.panel.Tool({cacheHeight:!1,cls:a.baseCls+'-header-tool-'+a.ui,type:'toggle',handler:a.toggle,id:a.id+'-legendToggle',scope:a,ariaRole:'checkbox',ariaLabel:a.expandText,ariaRenderAttributes:{'aria-checked':!a.collapsed}});return b},doRenderLegend:function(d,c){var e=c.$comp,a=e.legend,b;if(a){a.ownerLayout.configureItem(a);b=a.getRenderTree();Ext.DomHelper.generateMarkup(b,d)}},getCollapsed:function(){return this.collapsed?'top':!1},getCollapsedDockedItems:function(){var a=this.legend;return a?[a]:[]},setTitle:function(c){var a=this,b=a.legend;a.title=c;a.ariaLabel=Ext.String.formatEncode(a.descriptionText,c||'');if(a.rendered){if(!b){a.legend=b=a.createLegendCt();a.addTitleClasses();b.ownerLayout.configureItem(b);b.render(a.el,0)}a.titleCmp.update(c);a.ariaEl.dom.setAttribute('aria-label',a.ariaLabel)}else {if(b){a.titleCmp.update(c)}else {a.addTitleClasses();a.legend=a.createLegendCt()}}return a},addTitleClasses:function(){var a=this,c=a.title,b=a.baseCls;if(c){a.addCls(b+'-with-title')}if(c||a.checkboxToggle||a.collapsible){a.addCls(b+'-with-legend')}},expand:function(){return this.setExpanded(!0)},collapse:function(){return this.setExpanded(!1)},setExpanded:function(b){var a=this,d=a.checkboxCmp,c=a.toggleCmp,e=b?'expand':'collapse';if(!a.rendered||a.fireEvent('before'+e,a)!==!1){b=!!b;if(d){d.setValue(b)}else {if(c&&c.ariaEl.dom){c.ariaEl.dom.setAttribute('aria-checked',b)}}if(b){a.removeCls(a.baseCls+'-collapsed')}else {a.addCls(a.baseCls+'-collapsed')}if(a.ariaEl.dom){a.ariaEl.dom.setAttribute('aria-expanded',!!b)}a.collapsed=!b;if(b){delete a.getInherited().collapsed}else {a.getInherited().collapsed=!0}if(a.rendered){a.updateLayout({isRoot:!1});a.fireEvent(e,a)}}return a},getRefItems:function(c){var a=Ext.container.Container.prototype.getRefItems.apply(this,arguments),b=this.legend;if(b){a.unshift(b);if(c){a.unshift.apply(a,b.getRefItems(!0))}}return a},toggle:function(){this.setExpanded(!!this.collapsed)},privates:{applyTargetCls:function(a){this.bodyTargetCls=a},finishRender:function(){var a=this.legend;Ext.container.Container.prototype.finishRender.call(this);if(a){a.finishRender()}},getProtoBody:function(){var b=this,a=b.protoBody;if(!a){b.protoBody=a=new Ext.util.ProtoElement({styleProp:'bodyStyle',styleIsText:!0})}return a},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){return this.body||this.frameBody||this.el},initPadding:function(d){var b=this,e=b.getProtoBody(),a=b.padding,c;if(a!==undefined){if(Ext.isIE8){a=b.parseBox(a);c=Ext.Element.parseBox(0);c.top=a.top;a.top=0;e.setStyle('padding',b.unitizeBox(c))}d.setStyle('padding',b.unitizeBox(a))}},onCheckChange:function(b,a){this.setExpanded(a)},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderLegend=this.doRenderLegend}}},0,['fieldset'],['component','box','container','fieldset'],{'component':!0,'box':!0,'container':!0,'fieldset':!0},['widget.fieldset'],[['fieldAncestor',Ext.form.FieldAncestor]],[Ext.form,'FieldSet'],0);Ext.cmd.derive('Ext.form.Label',Ext.Component,{autoEl:'label',maskOnDisable:!1,getElConfig:function(){var a=this;a.html=a.text?Ext.util.Format.htmlEncode(a.text):a.html||'';return Ext.apply(Ext.Component.prototype.getElConfig.call(this),{htmlFor:a.forId||''})},setText:function(c,b){var a=this;b=b!==!1;if(b){a.text=c;delete a.html}else {a.html=c;delete a.text}if(a.rendered){a.el.dom.innerHTML=b!==!1?Ext.util.Format.htmlEncode(c):c;a.updateLayout()}return a}},0,['label'],['component','box','label'],{'component':!0,'box':!0,'label':!0},['widget.label'],0,[Ext.form,'Label'],0);Ext.cmd.derive('Ext.form.Panel',Ext.panel.Panel,{alternateClassName:['Ext.FormPanel','Ext.form.FormPanel'],layout:'anchor',bodyAriaRole:'form',basicFormConfigs:['api','baseParams','errorReader','jsonSubmit','method','paramOrder','paramsAsHash','reader','standardSubmit','timeout','trackResetOnLoad','url','waitMsgTarget','waitTitle'],initComponent:function(){var a=this;if(a.frame){a.border=!1}a.initFieldAncestor();Ext.panel.Panel.prototype.initComponent.call(this);a.relayEvents(a.form,['beforeaction','actionfailed','actioncomplete','validitychange','dirtychange']);if(a.pollForChanges){a.startPolling(a.pollInterval||500)}},initItems:function(){Ext.panel.Panel.prototype.initItems.call(this);this.initMonitor();this.form=this.createForm()},afterFirstLayout:function(){Ext.panel.Panel.prototype.afterFirstLayout.apply(this,arguments);this.form.initialize()},createForm:function(){var d={},c=this.basicFormConfigs,e=c.length,b=0,a;for(;b150){delete a.lastDownArrow}if(!a.isExpanded){b.stopEvent();a.onTriggerClick();a.lastDownArrow=b.time}else {if(!b.isStopped&&b.time-a.lastDownArrow<150){delete a.lastDownArrow}}},expand:function(){var a=this,d,c,b,e;if(a.rendered&&!a.isExpanded&&!a.destroyed){d=a.bodyEl;b=a.getPicker();e=Ext.getDoc();b.setMaxHeight(b.initialConfig.maxHeight);if(a.matchFieldWidth){b.setWidth(a.bodyEl.getWidth())}b.show();a.isExpanded=!0;a.alignPicker();d.addCls(a.openCls);if(a.ariaRole){c=a.ariaEl.dom;c.setAttribute('aria-owns',b.listEl?b.listEl.id:b.el.id);c.setAttribute('aria-expanded',!0)}a.touchListeners=e.on({translate:!1,touchstart:a.collapseIf,scope:a,delegated:!1,destroyable:!0});a.scrollListeners=Ext.on({scroll:a.onGlobalScroll,scope:a,destroyable:!0});Ext.on('resize',a.alignPicker,a,{buffer:1});a.fireEvent('expand',a);a.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){if(!this.destroyed){var a=this.getPicker();if(a.isVisible()&&a.isFloating()){this.doAlign()}}},doAlign:function(){var a=this,c=a.picker,d='-above',b;a.picker.alignTo(a.triggerWrap,a.pickerAlign,a.pickerOffset);b=c.el.getY()=g){a.deselectRange(j,g-1)}else {if(h!==c){a.selectRange(h,c,f)}}}a.lastSelected=c}else {if(e){if(!f){a.doSelect(c,!1)}}else {a.selectWithEvent(c,b)}}}};break;case 'SIMPLE':if(e===b.A&&f){a.selected.beginUpdate();a.selectRange(0,a.store.getCount()-1);a.selected.endUpdate()}else {if(k){a.doDeselect(c)}else {a.doSelect(c,!0)}};break;case 'SINGLE':if(!f){if(i){a.doSelect(c,!1)}else {if(m||!e){a.selectWithEvent(c,b)}}};}if(!b.shiftKey&&!a.destroyed&&a.isSelected(c)){a.selectionStart=c;a.selectionStartIdx=g}},selectRange:function(d,f,m){var b=this,i=b.store,l=b.selected.items,h,a,g,e,c,j,k;if(b.isLocked()){return}h=b.normalizeRowRange(d,f);d=h[0];f=h[1];e=[];for(a=d;a<=f;a++){if(!b.isSelected(i.getAt(a))){e.push(i.getAt(a))}}if(!m){c=[];b.suspendChanges();for(a=0,g=l.length;af){c.push(k)}}for(a=0,g=c.length;a0)}}}},deselectRange:function(d,e){var a=this,h=a.store,g,c,b,f;if(a.isLocked()){return}g=a.normalizeRowRange(d,e);d=g[0];e=g[1];b=[];for(c=d;c<=e;c++){f=h.getAt(c);if(a.isSelected(f)){b.push(f)}}if(b.length){a.doDeselect(b)}},normalizeRowRange:function(a,b){var c=this.store,d;if(!Ext.isNumber(a)){a=c.indexOf(a)}a=Math.max(0,a);if(!Ext.isNumber(b)){b=c.indexOf(b)}b=Math.min(b,c.getCount()-1);if(a>b){d=b;b=a;a=d}return [a,b]},select:function(a,c,b){if(Ext.isDefined(a)&&!(Ext.isArray(a)&&!a.length)){this.doSelect(a,c,b)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(a,e,d){var b=this,c;if(b.locked||a==null){return}if(typeof a==='number'){c=b.store.getAt(a);if(!c){return}a=[c]}if(b.selectionMode==='SINGLE'){if(a.isModel){a=[a]}if(a.length){b.doSingleSelect(a[0],d)}}else {b.doMultiSelect(a,e,d)}},doMultiSelect:function(b,k,d){var a=this,g=a.selected,h=!1,e,f,j,c,i;if(a.locked){return}b=!Ext.isArray(b)?[b]:b;j=b.length;if(!k&&g.getCount()>0){e=a.deselectDuringSelect(b,d);if(a.destroyed){return}if(e[0]){a.maybeFireSelectionChange(e[1]>0&&!d);return}else {h=e[1]>0}}i=function(){if(!g.getCount()){a.selectionStart=c}g.add(c);h=!0};for(f=0;f0&&!f);return d===g},doSingleSelect:function(b,c){var a=this,e=!1,d=a.selected,f;if(a.locked){return}if(a.isSelected(b)){return}f=function(){if(d.getCount()){a.suspendChanges();var f=a.deselectDuringSelect([b],c);if(a.destroyed){return}a.resumeChanges();if(f[0]){return !1}}a.lastSelected=b;if(!d.getCount()){a.selectionStart=b}d.add(b);e=!0};a.onSelectChange(b,!0,c,f);if(e&&!a.destroyed){a.maybeFireSelectionChange(!c)}},maybeFireSelectionChange:function(b){var a=this;if(b&&!a.suspendChange){a.fireEvent('selectionchange',a,a.getSelection())}},getLastSelected:function(){return this.lastSelected},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(a){a=a?a.toUpperCase():'SINGLE';this.selectionMode=this.modes[a]?a:'SINGLE'},isLocked:function(){return this.locked},setLocked:function(a){this.locked=!!a},isRangeSelected:function(b,c){var e=this,f=e.store,a,d;d=e.normalizeRowRange(b,c);b=d[0];c=d[1];for(a=b;a<=c;a++){if(!e.isSelected(f.getAt(a))){return !1}}return !0},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected.contains(a)},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var a=this,l=a.store,e=[],c=[],k=a.getSelection(),m=k.length,b=a.getSelected(),h,j,d,g,i,f;if(!l||!(b.isCollection||b.isRows)||!b.getCount()){return}d=l.getData();if(d.getSource){j=d.getSource();if(j){d=j}}a.refreshing=!0;b.beginUpdate();a.suspendChanges();for(f=0;f0);if(i){a.fireEvent('lastselectedchanged',a,a.getSelection(),a.lastSelected)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(d,e,b,f){var a=this,c=e?'select':'deselect';if((b||a.fireEvent('before'+c,a,d))!==!1&&f()!==!1){if(!b){a.fireEvent(c,a,d)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(a){var c=this.view,b;if(c){b=c.resolveSatelliteListenerScope(this,a)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,a)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,selectWithEventMulti:function(b,l,e){var a=this,g=l.shiftKey,c=l.ctrlKey,j=g?a.getSelectionStart():null,i=a.getSelection(),k=i.length,f,d,h;if(g&&j){a.selectRange(j,b,c)}else {if(c&&e){if(a.allowDeselect){a.doDeselect(b,!1)}}else {if(c){a.doSelect(b,!0,!1)}else {if(e&&!g&&!c&&k>1){if(a.allowDeselect){f=[];for(d=0;dthis.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyRight:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyLeft:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(a){this.setPosition(0,a)},onKeyEnd:function(a){this.setPosition(this.view.all.getCount()-1,a)},onKeySpace:function(a){this.fireNavigateEvent(a)},onKeyEnter:function(a){a.stopEvent();a.view.fireEvent('itemclick',a.view,a.record,a.item,a.recordIndex,a)},onSelectAllKeyPress:function(a){this.fireNavigateEvent(a)},fireNavigateEvent:function(b){var a=this;a.fireEvent('navigate',{navigationModel:a,keyEvent:b,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,recordIndex:a.recordIndex,record:a.record,item:a.item})},destroy:function(){var a=this;a.setStore(null);Ext.destroy(a.viewListeners,a.keyNav);a.keyNav=a.viewListeners=a.dataSource=a.lastFocused=null;a.callParent()}},1,0,0,0,['view.navigation.default'],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,'NavigationModel'],0);Ext.cmd.derive('Ext.view.AbstractView',Ext.Component,{inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},defaultBindProperty:'store',renderBuffer:document.createElement('div'),statics:{updateDelay:200,queueRecordChange:function(n,o,d,m,f){var a=this,g=a.changeQueue||(a.changeQueue={}),i=d.internalId,h,b,l,e,c,j,k;h=g[i]||(g[i]={operation:m,record:d,data:{},views:[]});b=h.data;Ext.Array.include(h.views,n);if(f&&(l=f.length)){for(e=0;e
    {1}
    ',a.itemCls,b,a.itemAriaRole);a.tpl=new Ext.XTemplate(b,c)}Ext.Component.prototype.initComponent.call(this);a.tpl=a.getTpl('tpl');if(a.overItemCls){a.trackOver=!0}a.addCmpEvents();d=a.store=Ext.data.StoreManager.lookup(a.store||'ext-empty-store');if(!a.dataSource){a.dataSource=d}a.bindStore(d,!0);a.getNavigationModel().bindComponent(this);if(!a.all){a.all=new Ext.CompositeElementLite()}a.scrollState={top:0,left:0};a.savedTabIndexAttribute='data-savedtabindex-'+a.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(){var a=this.loadMask;Ext.Component.prototype.onRender.apply(this,arguments);if(a){this.createMask(a)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.apply(this,arguments);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refresh()}else {a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var a=this,b=a.loadingHeight;if(b&&b>a.getHeight()){a.hasLoadingHeight=!0;a.oldMinHeight=a.minHeight;a.minHeight=b;a.updateLayout()}},onMaskHide:function(){var a=this;if(!a.destroying&&a.hasLoadingHeight){a.minHeight=a.oldMinHeight;a.updateLayout();delete a.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.apply(this,arguments);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.apply(this,arguments);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var a=this.loadMask,b=[];if(a&&a.isComponent){b.push(a)}return b},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},applySelectionModel:function(b,e){var a=this,g=a.grid,c,f,d;if(e){e.un({scope:a,selectionchange:a.updateBindSelection,lastselectedchanged:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});Ext.destroy(a.selModelRelayer);b=Ext.Factory.selection(b)}else {if(b&&b.isSelectionModel){b.locked=a.disableSelection}else {if(a.simpleSelect){c='SIMPLE'}else {if(a.multiSelect){c='MULTI'}else {c='SINGLE'}}if(typeof b==='string'){b={type:b}}b=Ext.Factory.selection(Ext.apply({allowDeselect:a.allowDeselect||a.multiSelect,mode:c,locked:a.disableSelection},b))}}if(b.mode!=='SINGLE'){d=(g||a).ariaEl.dom;if(d){d.setAttribute('aria-multiselectable',!0)}else {if(!g){f=a.ariaRenderAttributes||(a.ariaRenderAttributes={});f['aria-multiselectable']=!0}}}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection,select:a.ariaSelect,deselect:a.ariaDeselect});return b},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(d){var a=this,b=a.getNavigationModel(),c;a.toggleChildrenTabbability(!1);if(!a.itemFocused&&a.all.getCount()){c=b.getLastFocused();b.setPosition(c||0,d.event,null,!c);a.itemFocused=b.getPosition()!=null}if(a.itemFocused){this.el.dom.setAttribute('tabIndex','-1')}Ext.Component.prototype.onFocusEnter.call(this,d)},onFocusLeave:function(b){var a=this;if(a.itemFocused&&!a.refreshing){a.getNavigationModel().setPosition(null,b.event,null,!0);a.itemFocused=!1;a.el.dom.setAttribute('tabIndex',0)}Ext.Component.prototype.onFocusLeave.call(this,b)},ariaSelect:function(c,b){var a=this.getNode(b);if(a){a.setAttribute('aria-selected',!0)}},ariaDeselect:function(c,b){var a=this.getNode(b);if(a){a.removeAttribute('aria-selected')}},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);if(!a){this.onFocusLeave({})}},refresh:function(){var a=this,c=a.all,i=c.getCount(),g=a.refreshCounter,e,k,f,j=a.getSelectionModel(),h,d=g&&c.getCount()&&a.preserveScrollOnRefresh&&a.getScrollable(),b;if(!a.rendered||a.destroyed){return}if(!a.hasListeners.beforerefresh||a.fireEvent('beforerefresh',a)!==!1){a.refreshing=!0;h=a.saveFocusState();e=a.getTargetEl();f=a.getViewRange();k=e.dom;if(d){b=d.getPosition();if(!(b.x||b.y)){b=null}}if(g){a.clearViewEl();a.refreshCounter++}else {a.refreshCounter=1}a.tpl.append(e,a.collectData(f,c.startIndex||0));if(f.length<1){a.addEmptyText();c.clear()}else {a.collectNodes(e.dom);a.updateIndexes(0)}h();if(a.refreshSelmodelOnRefresh!==!1){j.refresh()}a.refreshNeeded=!1;a.refreshSize(c.getCount()!==i);a.fireEvent('refresh',a,f);if(d){d.scrollTo(b)}if(!a.viewReady){a.viewReady=!0;a.fireEvent('viewready',a)}a.refreshing=!1;a.refreshScroll();a.cleanupData()}},addEmptyText:function(){var a=this,b=a.getStore();if(a.emptyText&&!b.isLoading()&&(!a.deferEmptyText||a.refreshCounter>1||b.isLoaded())){a.emptyEl=Ext.core.DomHelper.insertHtml('beforeEnd',a.getTargetEl().dom,a.emptyText)}},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(d){var a=this,b=a.getSizeModel(),c=a.getScrollable();if(b.height.shrinkWrap||b.width.shrinkWrap||d){a.updateLayout()}else {if(a.touchScroll&&!a.bufferedRenderer){if(c){c.refresh()}else {a.on({boxready:a.refreshScroll,scope:a,single:!0})}}}},afterFirstLayout:function(d,c){var a=this,b=a.getScrollable();if(b){b.on({scroll:a.onViewScroll,scrollend:a.onViewScrollEnd,scope:a,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,d,c)},clearViewEl:function(){var a=this,c=a.getTargetEl(),b=a.getNodeContainer()===c;a.clearEmptyEl();a.all.clear(!b);if(b){c.dom.innerHTML=''}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(c,a,b){this.fireEvent('scroll',this,a,b)},onViewScrollEnd:function(c,a,b){this.fireEvent('scrollend',this,a,b)},saveScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){b.left=a.getScrollX();b.top=a.getScrollY()}},restoreScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){a.setScrollX(b.left);a.setScrollY(b.top)}},prepareData:function(c,f,e){var a,b,d;if(e){a=e.getAssociatedData();for(b in a){if(a.hasOwnProperty(b)){if(!d){c=Ext.Object.chain(c);d=!0}c[b]=a[b]}}}return c},collectData:function(c,e){var d=[],a=0,f=c.length,b;for(;a-1){if(a.getNode(b)){d=a.bufferRender([b],c).children[0];a.all.replaceElement(c,d,!0);a.updateIndexes(c,c);e.onUpdate(b);a.refreshSizePending=!0;if(e.isSelected(b)){a.onItemSelect(b)}if(a.hasListeners.itemupdate){a.fireEvent('itemupdate',b,c,d)}return d}}}},onReplace:function(o,b,e,d){var a=this,c=a.all,n=a.getSelectionModel(),j=b,h,m,g,f,l,k,i;if(a.rendered){h=a.bufferRender(d,b,!0);g=h.fragment;f=h.children;m=c.item(b);if(m){c.item(b).insertSibling(g,'before',!0)}else {a.appendNodes(g)}c.insert(b,f);if(e.length){i=a.saveFocusState()}b+=d.length;k=b+e.length-1;l=c.removeRange(b,k,!0);if(a.refreshSelmodelOnRefresh!==!1){n.refresh()}a.updateIndexes(b);if(a.hasListeners.itemremove){a.fireEvent('itemremove',e,j,l,a)}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,j,f)}i();a.refreshSize()}},onAdd:function(f,d,b){var a=this,c,e=a.getSelectionModel();if(a.rendered){if(a.all.getCount()===0){a.refresh();c=a.all.slice()}else {c=a.doAdd(d,b);if(a.refreshSelmodelOnRefresh!==!1){e.refresh()}a.updateIndexes(b);a.refreshSizePending=!0}if(a.hasListeners.itemadd){a.fireEvent('itemadd',d,b,c)}}},appendNodes:function(a){var b=this.all,c=b.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(a)}else {b.item(c-1).insertSibling(a,'after')}},doAdd:function(j,b){var d=this,g=d.bufferRender(j,b,!0),f=g.fragment,c=g.children,a=d.all,h=a.getCount(),e=a.startIndex||0,i=a.endIndex||h-1;if(h===0||b>i){d.appendNodes(f)}else {if(b<=e){a.item(e).insertSibling(f,'before',!0)}else {a.item(b).insertSibling(c,'before',!0)}}a.insert(b,c);return c},onRemove:function(l,d,b){var a=this,i=a.all,g=a.hasListeners.itemremove,e,c,k,f,h,j;if(i.getCount()){if(a.dataSource.getCount()===0){if(g){a.fireEvent('itemremove',d,b,a.getNodes(b,b+d.length-1))}a.refresh()}else {j=a.saveFocusState();if(g){f=[]}for(c=d.length-1;c>=0;--c){k=d[c];e=b+c;if(f){h=i.item(e);f[c]=h?h.dom:undefined}if(i.item(e)){a.doRemove(k,e)}}if(g){a.fireEvent('itemremove',d,b,f,a)}j();a.updateIndexes(b)}a.refreshSizePending=!0}},doRemove:function(b,a){this.all.removeElement(a,!0)},saveFocusState:function(){var a=this,e=a.dataSource||a.store,c=a.getNavigationModel(),b=c.recordIndex,d=c.record;if(a.el.contains(Ext.Element.getActiveElement())){a.el.dom.focus();return function(){if(e.getCount()){b=Math.min(b,a.all.getCount()-1);c.setPosition(e.contains(d)?d:b,null,null,!0)}}}return Ext.emptyFn},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(d,b){var e=this.all.elements,c,f=this.getViewRange(),a,g=this.id;d=d||0;b=b||(b===0?0:e.length-1);for(a=d;a<=b;a++){c=e[a];c.setAttribute('data-recordIndex',a);c.setAttribute('data-recordId',f[a].internalId);c.setAttribute('data-boundView',g)}},bindStore:function(b,e){var a=this,c=a.getSelectionModel(),d=a.getNavigationModel();c.bindStore(b);c.bindComponent(b?a:null);a.mixins.storeholder.bindStore.apply(a,arguments);d.setStore(b);if(b&&a.componentLayoutCounter){a.doFirstRefresh(b,!e)}},doFirstRefresh:function(b,c){var a=this;if(a.deferInitialRefresh&&!c){Ext.defer(a.doFirstRefresh,1,a,[b,!0])}else {if(b&&!b.isLoading()){a.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(c,b){var a=this;if(a.store.isBufferedStore){a.store.preserveScrollOnReload=a.preserveScrollOnReload}if(b&&b.isBufferedStore){delete b.preserveScrollOnReload}a.setMaskBind(c);if(!a.dataSource){a.dataSource=c}},setMaskBind:function(b){var a=this.loadMask;if(this.rendered&&a&&b&&!a.bindStore){a=this.createMask()}if(a&&a.bindStore){a.bindStore(b)}},getStoreListeners:function(){var a=this;return {refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var a=this;if(a.updateSuspendCounter){--a.updateSuspendCounter}Ext.resumeLayouts(!0);if(a.refreshSizePending){a.refreshSize(!0);a.refreshSizePending=!1}},onDataRefresh:function(b){var a=this,c=a.preserveScrollOnRefresh;if(b.loadCount>a.lastRefreshLoadCount){a.preserveScrollOnRefresh=a.preserveScrollOnReLoad}a.refreshView();a.preserveScrollOnRefresh=c;a.lastRefreshLoadCount=b.loadCount},refreshView:function(){var a=this,b=a.blockRefresh||!a.rendered||a.up('[collapsed],[isCollapsingOrExpanding],[hidden]');if(b){a.refreshNeeded=!0}else {if(a.bufferedRenderer){a.bufferedRenderer.refreshView()}else {a.refresh()}}},findItemByChild:function(a){return Ext.fly(a).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(a){return a.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var c=[],b=this.getSelectionModel().getSelection(),d=b.length,a=0;for(;aa.bottom){d=b.bottom-a.bottom}}if(b.lefta.right){c=b.right-a.right}}if(c||d){g.scrollBy(c,d,!1)}e.set({tabIndex:-1});e.focus()}},privates:{repaintBorder:function(b){var a=this.getNode(b);if(a){a.className=a.className}}}},0,['dataview'],['component','box','dataview'],{'component':!0,'box':!0,'dataview':!0},['widget.dataview'],0,[Ext.view,'View',Ext,'DataView'],0);Ext.cmd.derive('Ext.view.BoundListKeyNav',Ext.view.NavigationModel,{navigateOnSpace:!0,initKeyNav:function(c){var a=this,b=c.pickerField;if(!a.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,c);a.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:a.onKeyEsc,scope:a})}if(!b){return}if(!b.rendered){b.on('render',Ext.Function.bind(a.initKeyNav,a,[c],0),a,{single:!0});return}a.fieldKeyNav=new Ext.util.KeyNav({disabled:!0,target:b.inputEl,forceKeyDown:!0,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,tab:a.onKeyTab,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1001,scope:a})},processViewEvent:function(b,c,e,d,a){if(a.within(b.listWrap)){return a}if(a.getKey()===a.ESC){if(Ext.fly(a.target).isInputField()){a.target=a.target.parentNode}return a}},enable:function(){this.fieldKeyNav.enable();Ext.view.NavigationModel.prototype.enable.call(this)},disable:function(){this.fieldKeyNav.disable();Ext.view.NavigationModel.prototype.disable.call(this)},onItemMouseDown:function(e,b,d,c,a){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,e,b,d,c,a);a.preventDefault()},onKeyUp:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b>0?b-1:f.getCount()-1;d.setPosition(e);g.preventDefault()},onKeyDown:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b
    ',destroy:function(){var a=this;if(a.spinnerEl){a.spinnerEl.destroy();a.spinnerEl=a.upEl=a.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var a=this;return {vertical:a.vertical,upDisabledCls:a.upEnabled?'':a.spinnerUpCls+'-disabled',downDisabledCls:a.downEnabled?'':a.spinnerDownCls+'-disabled',spinnerCls:a.spinnerCls,spinnerUpCls:a.spinnerUpCls,spinnerDownCls:a.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var a=this,d=arguments,c=a.clickRepeater?d[1]:d[0],b=a.field;if(!b.readOnly&&!b.disabled){if(a.upEl.contains(c.target)){Ext.callback(a.upHandler,a.scope,[b,a,c],0,b)}else {if(a.downEl.contains(c.target)){Ext.callback(a.downHandler,a.scope,[b,a,c],0,b)}}}b.inputEl.focus()},onFieldRender:function(){var a=this,d=a.vertical,c,b;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);c=a.spinnerEl=a.el.select('.'+a.spinnerCls,!0);b=c.elements;a.upEl=d?b[0]:b[1];a.downEl=d?b[1]:b[0]},setUpEnabled:function(a){this.upEl[a?'removeCls':'addCls'](this.spinnerUpCls+'-disabled')},setDownEnabled:function(a){this.downEl[a?'removeCls':'addCls'](this.spinnerDownCls+'-disabled')}},0,0,0,0,['trigger.spinner'],0,[Ext.form.trigger,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Spinner',Ext.form.field.Text,{alternateClassName:'Ext.form.Spinner',config:{triggers:{spinner:{type:'spinner',upHandler:'onSpinnerUpClick',downHandler:'onSpinnerDownClick',scope:'this'}}},spinUpEnabled:!0,spinDownEnabled:!0,keyNavEnabled:!0,mouseWheelEnabled:!0,repeatTriggerClick:!0,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:'spinbutton',applyTriggers:function(b){var c=this,a=b.spinner;a.upEnabled=c.spinUpEnabled;a.downEnabled=c.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},onRender:function(){var a=this,b=a.getTrigger('spinner');(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(a.keyNavEnabled){a.spinnerKeyNav=new Ext.util.KeyNav(a.inputEl,{scope:a,up:a.spinUp,down:a.spinDown})}if(a.mouseWheelEnabled){a.mon(a.bodyEl,'mousewheel',a.onMouseWheel,a)}a.spinUpEl=b.upEl;a.spinDownEl=b.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var a=this;if(a.spinUpEnabled&&!a.disabled){a.fireEvent('spin',a,'up');a.fireEvent('spinup',a);a.onSpinUp()}},spinDown:function(){var a=this;if(a.spinDownEnabled&&!a.disabled){a.fireEvent('spin',a,'down');a.fireEvent('spindown',a);a.onSpinDown()}},setSpinUpEnabled:function(b){var a=this,c=a.spinUpEnabled;a.spinUpEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setUpEnabled(b)}},setSpinDownEnabled:function(b){var a=this,c=a.spinDownEnabled;a.spinDownEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setDownEnabled(b)}},onMouseWheel:function(c){var b=this,a;if(b.hasFocus){a=c.getWheelDelta();if(a>0){b.spinUp()}else {if(a<0){b.spinDown()}}c.stopEvent()}},onDestroy:function(){Ext.destroyMembers(this,'spinnerKeyNav');Ext.form.field.Text.prototype.onDestroy.call(this)}},0,['spinnerfield'],['component','box','field','textfield','spinnerfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0},['widget.spinnerfield'],0,[Ext.form.field,'Spinner',Ext.form,'Spinner'],0);Ext.cmd.derive('Ext.form.field.Number',Ext.form.field.Spinner,{alternateClassName:['Ext.form.NumberField','Ext.form.Number'],allowExponential:!0,allowDecimals:!0,decimalSeparator:null,submitLocaleSeparator:!0,decimalPrecision:2,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,step:1,minText:'The minimum value for this field is {0}',maxText:'The maximum value for this field is {0}',nanText:'{0} is not a valid number',negativeText:'The value cannot be negative',baseChars:'0123456789',autoStripChars:!1,initComponent:function(){var a=this;if(a.decimalSeparator===null){a.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);a.setMinValue(a.minValue);a.setMaxValue(a.maxValue)},getSubTplData:function(g){var f=this,e=f.minValue,d=f.maxValue,c,a,b;c=Ext.form.field.Spinner.prototype.getSubTplData.call(this,g);a=c.inputElAriaAttributes;if(a){if(e>Number.NEGATIVE_INFINITY){a['aria-valuemin']=e}if(d=e&&b<=d){a['aria-valuenow']=b}}return c},setValue:function(d){var a=this,c,b;if(a.hasFocus){c=a.getBind();b=c&&c.value;if(b&&b.syncing&&d===a.value){return a}}return Ext.form.field.Spinner.prototype.setValue.call(this,d)},getErrors:function(b){b=arguments.length>0?b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Spinner.prototype.getErrors.call(this,b),e=Ext.String.format,d;if(b.length<1){return c}b=String(b).replace(a.decimalSeparator,'.');if(isNaN(b)){c.push(e(a.nanText,b))}d=a.parseValue(b);if(a.minValue===0&&d<0){c.push(this.negativeText)}else {if(da.maxValue){c.push(e(a.maxText,a.maxValue))}return c},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(a){var b=this,c=b.decimalSeparator;a=b.parseValue(a);a=b.fixPrecision(a);a=Ext.isNumber(a)?a:parseFloat(String(a).replace(c,'.'));a=isNaN(a)?'':String(a).replace('.',c);return a},getSubmitValue:function(){var b=this,a=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!b.submitLocaleSeparator){a=a.replace(b.decimalSeparator,'.')}return a},onChange:function(a){var b=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(b){if(Ext.isNumber(a)&&isFinite(a)){b.setAttribute('aria-valuenow',a)}else {b.removeAttribute('aria-valuenow')}}},toggleSpinners:function(){var a=this,c=a.getValue(),d=c===null,b;if(a.spinUpEnabled||a.spinUpDisabledByToggle){b=d||ca.minValue;a.setSpinDownEnabled(b,!0)}},setMinValue:function(e){var a=this,c=a.ariaEl.dom,d,b,c;a.minValue=d=Ext.Number.from(e,Number.NEGATIVE_INFINITY);a.toggleSpinners();if(c){if(d>Number.NEGATIVE_INFINITY){c.setAttribute('aria-valuemin',d)}else {c.removeAttribute('aria-valuemin')}}if(a.disableKeyFilter!==!0){b=a.baseChars+'';if(a.allowExponential){b+=a.decimalSeparator+'e+-'}else {if(a.allowDecimals){b+=a.decimalSeparator}if(a.minValue<0){b+='-'}}b=Ext.String.escapeRegex(b);a.maskRe=new RegExp('['+b+']');if(a.autoStripChars){a.stripCharsRe=new RegExp('[^'+b+']','gi')}}},setMaxValue:function(c){var b=this.ariaEl.dom,a;this.maxValue=a=Ext.Number.from(c,Number.MAX_VALUE);if(b){if(aa.maxLength){return}}a.setValue(b)}},0,['numberfield'],['component','box','field','textfield','spinnerfield','numberfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'spinnerfield':!0,'numberfield':!0},['widget.numberfield'],0,[Ext.form.field,'Number',Ext.form,'NumberField',Ext.form,'Number'],0);Ext.cmd.derive('Ext.toolbar.Paging',Ext.toolbar.Toolbar,{alternateClassName:'Ext.PagingToolbar',displayInfo:!1,prependButtons:!1,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display',beforePageText:'Page',afterPageText:'of {0}',firstText:'First Page',prevText:'Previous Page',nextText:'Next Page',lastText:'Last Page',refreshText:'Refresh',inputItemWidth:30,emptyPageData:{total:0,currentPage:0,pageCount:0,toRecord:0,fromRecord:0},defaultBindProperty:'store',getPagingItems:function(){var a=this,b={scope:a,blur:a.onPagingBlur};b[Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress']=a.onPagingKeyDown;return [{itemId:'first',tooltip:a.firstText,overflowText:a.firstText,iconCls:'x-tbar-page-first',disabled:!0,handler:a.moveFirst,scope:a},{itemId:'prev',tooltip:a.prevText,overflowText:a.prevText,iconCls:'x-tbar-page-prev',disabled:!0,handler:a.movePrevious,scope:a},'-',a.beforePageText,{xtype:'numberfield',itemId:'inputItem',name:'inputItem',cls:'x-tbar-page-number',allowDecimals:!1,minValue:1,hideTrigger:!0,enableKeyEvents:!0,keyNavEnabled:!1,selectOnFocus:!0,submitValue:!1,isFormField:!1,width:a.inputItemWidth,margin:'-1 2 3 2',listeners:b},{xtype:'tbtext',itemId:'afterTextItem',html:Ext.String.format(a.afterPageText,1)},'-',{itemId:'next',tooltip:a.nextText,overflowText:a.nextText,iconCls:'x-tbar-page-next',disabled:!0,handler:a.moveNext,scope:a},{itemId:'last',tooltip:a.lastText,overflowText:a.lastText,iconCls:'x-tbar-page-last',disabled:!0,handler:a.moveLast,scope:a},'-',{itemId:'refresh',tooltip:a.refreshText,overflowText:a.refreshText,iconCls:'x-tbar-loading',disabled:a.store.isLoading(),handler:a.doRefresh,scope:a}]},initComponent:function(){var a=this,c=a.items||a.buttons||[],b;a.bindStore(a.store||'ext-empty-store',!0);b=a.getPagingItems();if(a.prependButtons){a.items=c.concat(b)}else {a.items=b.concat(c)}delete a.buttons;if(a.displayInfo){a.items.push('->');a.items.push({xtype:'tbtext',itemId:'displayItem'})}Ext.toolbar.Toolbar.prototype.initComponent.call(this)},beforeRender:function(){Ext.toolbar.Toolbar.prototype.beforeRender.apply(this,arguments);this.updateBarInfo()},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=!0;a.onLoad();a.calledInternal=!1}},updateInfo:function(){var a=this,d=a.child('#displayItem'),f=a.store,b=a.getPageData(),e,c;if(d){e=f.getCount();if(e===0){c=a.emptyMsg}else {c=Ext.String.format(a.displayMsg,b.fromRecord,b.toRecord,b.total)}d.setText(c)}},onLoad:function(){var a=this,f,c,b,g,h,d,e;h=a.store.getCount();d=h===0;if(!d){f=a.getPageData();c=f.currentPage;b=f.pageCount;if(c>b){if(b>0){a.store.loadPage(b)}else {a.getInputItem().reset()}return}g=Ext.String.format(a.afterPageText,isNaN(b)?1:b)}else {c=0;b=0;g=Ext.String.format(a.afterPageText,0)}Ext.suspendLayouts();e=a.child('#afterTextItem');if(e){e.update(g)}e=a.getInputItem();if(e){e.setDisabled(d).setValue(c)}a.setChildDisabled('#first',c===1||d);a.setChildDisabled('#prev',c===1||d);a.setChildDisabled('#next',c===b||d);a.setChildDisabled('#last',c===b||d);a.setChildDisabled('#refresh',!1);a.updateInfo();Ext.resumeLayouts(!0);if(!a.calledInternal){a.fireEvent('change',a,f||a.emptyPageData)}},setChildDisabled:function(c,b){var a=this.child(c);if(a){a.setDisabled(b)}},getPageData:function(){var a=this.store,b=a.getTotalCount();return {total:b,currentPage:a.currentPage,pageCount:Math.ceil(b/a.pageSize),fromRecord:(a.currentPage-1)*a.pageSize+1,toRecord:Math.min(a.currentPage*a.pageSize,b)}},onLoadError:function(){this.setChildDisabled('#refresh',!1)},getInputItem:function(){return this.child('#inputItem')},readPageFromInput:function(d){var a=this.getInputItem(),b=!1,c;if(a){c=a.getValue();b=parseInt(c,10);if(!c||isNaN(b)){a.setValue(d.currentPage);return !1}}return b},onPagingBlur:function(c){var a=this.getInputItem(),b;if(a){b=this.getPageData().currentPage;a.setValue(b)}},onPagingKeyDown:function(a,b){this.processKeyEvent(a,b)},processKeyEvent:function(g,b){var e=this,c=b.getKey(),d=e.getPageData(),f=b.shiftKey?10:1,a;if(c===b.RETURN){b.stopEvent();a=e.readPageFromInput(d);if(a!==!1){a=Math.min(Math.max(1,a),d.pageCount);if(a!==d.currentPage&&e.fireEvent('beforechange',e,a)!==!1){e.store.loadPage(a)}}}else {if(c===b.HOME||c===b.END){b.stopEvent();a=c===b.HOME?1:d.pageCount;g.setValue(a)}else {if(c===b.UP||c===b.PAGE_UP||c===b.DOWN||c===b.PAGE_DOWN){b.stopEvent();a=e.readPageFromInput(d);if(a){if(c===b.DOWN||c===b.PAGE_DOWN){f*=-1}a+=f;if(a>=1&&a<=d.pageCount){g.setValue(a)}}}}}},beforeLoad:function(){this.setChildDisabled('#refresh',!0)},moveFirst:function(){if(this.fireEvent('beforechange',this,1)!==!1){this.store.loadPage(1);return !0}return !1},movePrevious:function(){var a=this,b=a.store,c=b.currentPage-1;if(c>0){if(a.fireEvent('beforechange',a,c)!==!1){b.previousPage();return !0}}return !1},moveNext:function(){var a=this,b=a.store,d=a.getPageData().pageCount,c=b.currentPage+1;if(c<=d){if(a.fireEvent('beforechange',a,c)!==!1){b.nextPage();return !0}}return !1},moveLast:function(){var a=this,b=a.getPageData().pageCount;if(a.fireEvent('beforechange',a,b)!==!1){a.store.loadPage(b);return !0}return !1},doRefresh:function(){var a=this,c=a.store,b=c.currentPage;if(a.fireEvent('beforechange',a,b)!==!1){c.loadPage(b);return !0}return !1},getStoreListeners:function(){return {beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},onDestroy:function(){this.bindStore(null);Ext.toolbar.Toolbar.prototype.onDestroy.call(this)}},0,['pagingtoolbar'],['component','box','container','toolbar','pagingtoolbar'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'pagingtoolbar':!0},['widget.pagingtoolbar'],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.toolbar,'Paging',Ext,'PagingToolbar'],0);Ext.define('Ext.theme.neptune.toolbar.Paging',{override:'Ext.toolbar.Paging',defaultButtonUI:'plain-toolbar',inputItemWidth:40});Ext.cmd.derive('Ext.view.BoundList',Ext.view.View,{alternateClassName:'Ext.BoundList',pageSize:0,baseCls:'x-boundlist',itemCls:'x-boundlist-item',listItemCls:'',shadow:!1,trackOver:!0,preserveScrollOnRefresh:!0,enableInitialSelection:!1,refreshSelmodelOnRefresh:!0,componentLayout:'boundlist',navigationModel:'boundlist',scrollable:!0,ariaEl:'listEl',tabIndex:-1,childEls:['listWrap','listEl'],renderTpl:['
    ','
      {$}="{.}"','>','
    ','
    ','{%','var pagingToolbar=values.$comp.pagingToolbar;','if (pagingToolbar) {','Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);','}','%}',{disableFormats:!0}],focusOnToFront:!1,initComponent:function(){var a=this,b=a.baseCls,c=a.itemCls;a.selectedItemCls=b+'-selected';if(a.trackOver){a.overItemCls=b+'-item-over'}a.itemSelector='.'+c;a.scrollerSelector='ul.x-list-plain';if(a.floating){a.addCls(b+'-floating')}if(!a.tpl){a.tpl=new Ext.XTemplate('','
  • '+a.getInnerTpl(a.displayField)+'
  • ','
    ')}else {if(!a.tpl.isTemplate){a.tpl=new Ext.XTemplate(a.tpl)}}if(a.pageSize){a.pagingToolbar=a.createPagingToolbar()}Ext.view.View.prototype.initComponent.call(this)},getRefOwner:function(){return this.pickerField||Ext.view.View.prototype.getRefOwner.call(this)},getRefItems:function(){var b=Ext.view.View.prototype.getRefItems.call(this),a=this.pagingToolbar;if(a){b.push(a)}return b},createPagingToolbar:function(){return Ext.widget('pagingtoolbar',{id:this.id+'-paging-toolbar',pageSize:this.pageSize,store:this.dataSource,border:!1,ownerCt:this,ownerLayout:this.getComponentLayout()})},getNodeContainer:function(){return this.listEl},refresh:function(){var b=this,a=b.tpl;a.field=b.pickerField;a.store=b.store;Ext.view.View.prototype.refresh.call(this);a.field=a.store=null},bindStore:function(c,b){var a=this.pagingToolbar;Ext.view.View.prototype.bindStore.apply(this,arguments);if(a){a.bindStore(c,b)}},getInnerTpl:function(a){return '{'+a+'}'},onShow:function(){var a=this.pickerField;Ext.view.View.prototype.onShow.call(this);if(a&&a.rendered&&!a.hasFocus){a.focus()}},afterComponentLayout:function(e,d,c,b){var a=this.pickerField;Ext.view.View.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&a.alignPicker){a.alignPicker()}},onItemClick:function(e){var d=this,b=d.pickerField,c,a;if(!b){return}c=b.valueField;a=d.getSelectionModel().getSelection();if(!b.multiSelect&&a.length){a=a[0];if(a&&b.isEqual(e.get(c),a.get(c))&&b.collapse){b.collapse()}}},onContainerClick:function(b){var a=this.pagingToolbar;if(a&&a.rendered&&b.within(a.el)){return !1}},onDestroy:function(){Ext.view.View.prototype.onDestroy.call(this);Ext.destroyMembers(this,'pagingToolbar','listWrap','listEl')},privates:{getTargetEl:function(){return this.listEl},getOverflowEl:function(){return this.listWrap},finishRenderChildren:function(){var a=this.pagingToolbar;Ext.view.View.prototype.finishRenderChildren.apply(this,arguments);if(a){a.finishRender()}}}},0,['boundlist'],['component','box','dataview','boundlist'],{'component':!0,'box':!0,'dataview':!0,'boundlist':!0},['widget.boundlist'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,'BoundList',Ext,'BoundList'],0);Ext.cmd.derive('Ext.form.field.ComboBox',Ext.form.field.Picker,{alternateClassName:'Ext.form.ComboBox',config:{filters:null,selection:null,valueNotFoundText:null,displayTpl:!1,delimiter:', ',displayField:'text'},publishes:['selection'],twoWayBindable:['selection'],triggerCls:'x-form-arrow-trigger',hiddenName:'',collapseOnSelect:!1,hiddenDataCls:'x-hidden-display x-form-data-hidden',ariaRole:'combobox',childEls:{'hiddenDataEl':!0},filtered:!1,afterRender:function(){var a=this;Ext.form.field.Picker.prototype.afterRender.apply(this,arguments);a.setHiddenValue(a.value)},multiSelect:!1,triggerAction:'all',allQuery:'',queryParam:'query',queryMode:'remote',queryCaching:!0,autoLoadOnValue:!1,pageSize:0,anyMatch:!1,caseSensitive:!1,autoSelect:!0,typeAhead:!1,typeAheadDelay:250,selectOnTab:!0,forceSelection:!1,growToLongestValue:!0,clearFilterOnBlur:!0,defaultListConfig:{loadingHeight:70,minWidth:70,maxHeight:300,shadow:'sides'},transformInPlace:!0,clearValueOnEmpty:!0,getGrowWidth:function(){var a=this,i=a.inputEl.dom.value,h,e,g,c,b,f,d;if(a.growToLongestValue){h=a.displayField;e=a.store;g=e.data.length;c=0;for(b=0;bc){c=d;i=f}}}return i},initComponent:function(){var a=this,d=Ext.isDefined,f=a.store,e=a.transform,b,c;if('pinList' in a){a.collapseOnSelect=!a.pinList}if(e){b=Ext.getDom(e);if(b){if(!a.store){f=Ext.Array.map(Ext.Array.from(b.options),function(a){return [a.value,a.text]})}if(!a.name){a.name=b.name}if(!('value' in a)){a.value=b.value}}}a.bindStore(f||'ext-empty-store',!0,!0);c=a.queryMode==='local';if(!d(a.queryDelay)){a.queryDelay=c?10:500}if(!d(a.minChars)){a.minChars=c?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);a.doQueryTask=new Ext.util.DelayedTask(a.doRawQuery,a);if(b){if(a.transformInPlace){a.render(b.parentNode,b);delete a.renderTo}Ext.removeNode(b)}},getSubTplData:function(c){var b,a;b=Ext.form.field.Picker.prototype.getSubTplData.call(this,c);a=b.inputElAriaAttributes;if(a){a['aria-autocomplete']='list'}return b},getSubTplMarkup:function(c){var b=this,a='',d=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(b.hiddenName){a=''}return a+d},applyDisplayTpl:function(a){var b=this;if(!a){a=new Ext.XTemplate('{[typeof values === "string" ? values : values["'+b.getDisplayField()+'"]]}'+b.getDelimiter()+'');a.auto=!0}else {if(!a.isTemplate){a=new Ext.XTemplate(a)}}return a},applyFilters:function(b,a){var c=this;if(b===null||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.beginUpdate();a.splice(0,a.length,b);a.each(function(d){d.ownerId=c.id});a.endUpdate()}return a},applyValueNotFoundText:function(b){var a=this,c=a.valueNotFoundRecord||(a.valueNotFoundRecord=new Ext.data.Model());c.set(a.displayField,b);if(a.valueField&&a.displayField!==a.valueField){c.set(a.valueField,b)}return b},getFilters:function(b){var a=this.filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,c){var b=this;if(c){c.un('endupdate','onEndUpdateFilters',b)}if(a){a.on('endupdate','onEndUpdateFilters',b)}b.onEndUpdateFilters(a)},onEndUpdateFilters:function(a){var b=this,f=b.filtered,e=!!a&&a.length>0,d,c;if(f||e){b.filtered=e;d=[];c=b.store.getFilters();c.each(function(c){if(c.ownerId===b.id&&!a.contains(c)){d.push(c)}});c.splice(0,d,a.items)}},completeEdit:function(c){var a=this,b=a.queryFilter;Ext.form.field.Picker.prototype.completeEdit.call(this,c);a.doQueryTask.cancel();a.assertValue();if(b&&a.queryMode==='local'&&a.clearFilterOnBlur){a.getStore().getFilters().remove(b)}},onFocus:function(b){var a=this;Ext.form.field.Picker.prototype.onFocus.call(this,b);if(a.triggerAction!=='all'&&a.queryFilter&&a.queryMode==='local'&&a.clearFilterOnBlur){delete a.lastQuery;a.doRawQuery()}},assertValue:function(){var a=this,e=a.getRawValue(),c=a.getDisplayValue(),d=a.lastSelectedRecords,b;if(a.forceSelection){if(a.multiSelect){if(e!==c){a.setRawValue(c)}}else {b=a.findRecordByDisplay(e);if(b){if(a.getDisplayValue([a.getRecordDisplayData(b)])!==c){a.select(b,!0)}}else {if(d&&(!a.allowBlank||a.rawValue)){a.setValue(d)}else {if(d){delete a.lastSelectedRecords}a.setRawValue('')}}}}a.collapse()},onTypeAhead:function(){var a=this,e=a.displayField,d=a.store.findRecord(e,a.getRawValue()),f=a.getPicker(),b,g,c;if(d){b=d.get(e);g=b.length;c=a.getRawValue().length;f.highlightItem(f.getNode(d));if(c!==0&&c!==g){a.setRawValue(b);a.selectText(c,b.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){var a=this.queryFilter;Ext.form.field.Picker.prototype.beforeReset.call(this);if(a){this.getStore().getFilters().remove(a)}},onUnbindStore:function(){var a=this,c=a.picker,b=a.queryFilter;if(b&&!a.store.destroyed){a.changingFilters=!0;a.getStore().removeFilter(b,!0);a.changingFilters=!1}a.pickerSelectionModel.destroy();if(c){c.bindStore(null)}},onBindStore:function(b,f){var a=this,d=a.picker,c,e;if(b){if(b.autoCreated){a.queryMode='local';a.valueField=a.displayField='field1';if(!b.expanded){a.displayField='field2'}if(a.getDisplayTpl().auto){a.setDisplayTpl(null)}}if(!Ext.isDefined(a.valueField)){a.valueField=a.displayField}c={byValue:{rootProperty:'data',unique:!1}};c.byValue.property=a.valueField;b.setExtraKeys(c);if(a.displayField===a.valueField){b.byText=b.byValue}else {c.byText={rootProperty:'data',unique:!1};c.byText.property=a.displayField;b.setExtraKeys(c)}e={rootProperty:'data',extraKeys:{byInternalId:{property:'internalId'},byValue:{property:a.valueField,rootProperty:'data'}},listeners:{beginupdate:a.onValueCollectionBeginUpdate,endupdate:a.onValueCollectionEndUpdate,scope:a}};a.valueCollection=new Ext.util.Collection(e);a.pickerSelectionModel=new Ext.selection.DataViewModel({mode:a.multiSelect?'SIMPLE':'SINGLE',deselectOnContainerClick:!1,enableInitialSelection:!1,pruneRemoved:!1,selected:a.valueCollection,store:b,listeners:{scope:a,lastselectedchanged:a.updateBindSelection}});if(!f){a.resetToDefault()}if(d){d.setSelectionModel(a.pickerSelectionModel);if(d.getStore()!==b){d.bindStore(b)}}}},bindStore:function(a,e,c){var b=this,d=b.queryFilter;b.mixins.storeholder.bindStore.call(b,a,c);a=b.getStore();if(a&&d&&!e){a.getFilters().add(d)}if(!c&&a&&!a.isEmptyStore){b.setValueOnData()}},getStoreListeners:function(c){if(!c.isEmptyStore){var a=this,b={datachanged:a.onDataChanged,load:a.onLoad,exception:a.onException,update:a.onStoreUpdate,remove:a.checkValueOnChange};if(!c.getRemoteFilter()){b.filterchange=a.checkValueOnChange}return b}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var a=this;if(!a.destroying&&a.getStore().isLoaded()){if(a.multiSelect){}else {if(a.forceSelection&&!a.changingFilters&&!a.findRecordByValue(a.value)){a.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.collapse()},onLoad:function(b,e,d){var a=this,c=!a.valueCollection.byValue.get(a.value);if(d&&c&&!(b.lastOptions&&'rawQuery' in b.lastOptions)){a.setValueOnData()}a.checkValueOnChange()},setValueOnData:function(){var a=this;a.setValue(a.value);if(a.isExpanded&&a.getStore().getCount()){a.doAutoSelect()}},doRawQuery:function(){var a=this,b=a.inputEl.dom.value;if(a.multiSelect){b=b.split(a.delimiter).pop()}a.doQuery(b,!1,!0)},doQuery:function(c,f,g){var a=this,d=a.getStore(),e=d.filters&&!d.filters.length&&!!c,b=a.beforeQuery({query:c||'',rawQuery:g,forceAll:f,combo:a,cancel:!1});if(b!==!1&&!b.cancel){if(a.queryCaching&&!e&&b.query===a.lastQuery){a.getPicker().refresh();a.expand()}else {a.lastQuery=b.query;if(a.queryMode==='local'){a.doLocalQuery(b)}else {a.doRemoteQuery(b)}}}return !0},beforeQuery:function(a){var b=this;if(b.fireEvent('beforequery',a)===!1){a.cancel=!0}else {if(!a.cancel){if(a.query.length0){a=b.picker.getSelectionModel();if(a.lastSelected&&a.selected.length){c=a.lastSelected}d.getNavigationModel().setPosition(c)}},doTypeAhead:function(){var a=this,b=Ext.event.Event;if(!a.typeAheadTask){a.typeAheadTask=new Ext.util.DelayedTask(a.onTypeAhead,a)}if(a.lastKey!==b.BACKSPACE&&a.lastKey!==b.DELETE){a.typeAheadTask.delay(a.typeAheadDelay)}},onTriggerClick:function(){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else {if(a.triggerAction==='all'){a.doQuery(a.allQuery,!0)}else {if(a.triggerAction==='last'){a.doQuery(a.lastQuery,!0)}else {a.doQuery(a.getRawValue(),!1,!0)}}}}},onFieldMutation:function(b){var a=this,c=b.getKey(),d=c===b.BACKSPACE||c===b.DELETE,e=a.inputEl.dom.value,f=e.length;if(!a.readOnly&&(e!==a.lastMutatedValue||d)&&c!==b.TAB){a.lastMutatedValue=e;a.lastKey=c;if(f&&(b.type!=='keyup'||(!b.isSpecialKey()||d))){a.doQueryTask.delay(a.queryDelay)}else {if(!f&&(!c||d)){++a.suspendCheckChange;if(!a.multiSelect){a.value=null;a.displayTplData=undefined}if(a.clearValueOnEmpty){a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.removeAll();a.valueCollection.endUpdate()}a.collapse();if(a.queryFilter){a.changingFilters=!0;a.store.removeFilter(a.queryFilter,!0);a.changingFilters=!1}--a.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,b)}}},onDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);a.valueCollection=Ext.destroy(a.valueCollection);Ext.form.field.Picker.prototype.onDestroy.call(this)},onAdded:function(){var a=this;Ext.form.field.Picker.prototype.onAdded.apply(this,arguments);if(a.picker){a.picker.ownerCt=a.up('[floating]');a.picker.registerWithOwnerCt()}},createPicker:function(){var a=this,b,c=Ext.apply({xtype:'boundlist',id:a.pickerId,pickerField:a,selectionModel:a.pickerSelectionModel,floating:!0,hidden:!0,store:a.getPickerStore(),displayField:a.displayField,preserveScrollOnRefresh:!0,pageSize:a.pageSize,tpl:a.tpl},a.listConfig,a.defaultListConfig);b=a.picker=Ext.widget(c);if(a.pageSize){b.pagingToolbar.on('beforechange',a.onPageChange,a)}if(!b.initialConfig.maxHeight){b.on({beforeshow:a.onBeforePickerShow,scope:a})}b.getSelectionModel().on({beforeselect:a.onBeforeSelect,beforedeselect:a.onBeforeDeselect,focuschange:a.onFocusChange,scope:a});b.getNavigationModel().navigateOnSpace=!1;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(d){var b=this,a=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-a-b.getHeight();d.maxHeight=Math.max(a,c)-5},onBeforeSelect:function(c,b,a){return this.fireEvent('beforeselect',this,b,a)},onBeforeDeselect:function(c,b,a){return this.fireEvent('beforedeselect',this,b,a)},onFocusChange:function(e,d,b){var c=this.picker,a;if(b){a=Ext.get(c.getNodeByRecord(b));if(a){this.ariaEl.dom.setAttribute('aria-activedescendant',a.id)}}},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getPicker().getSelectionModel();if(c){b.select(c);a.hasHadSelection=!0}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var a=this,e=a.store,b=a.valueCollection.getRange(),d=b[0],c=b.length;a.updateBindSelection(a.pickerSelectionModel,b);if(a.isSelectionUpdating()){return}Ext.suspendLayouts();a.lastSelection=b;if(c){a.lastSelectedRecords=b}a.updateValue();if(c&&(!a.multiSelect&&e.contains(d)||a.collapseOnSelect||!e.getCount())){a.updatingValue=!0;a.collapse();a.updatingValue=!1}Ext.resumeLayouts(!0);if(c&&!a.suspendCheckChange){if(!a.multiSelect){b=d}a.fireEvent('select',a,b)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var a=this.getPicker().getNavigationModel();if(a){a.enable()}this.doAutoSelect()},onCollapse:function(){var a=this.getPicker().getNavigationModel();if(a){a.disable()}if(this.updatingValue){this.doQueryTask.cancel()}},select:function(b,e){var a=this,d=a.picker,c;if(b&&b.isModel&&e===!0&&d){c=!d.getSelectionModel().isSelected(b)}if(!c){a.suspendEvent('select')}a.setValue(b);a.resumeEvent('select')},findRecord:function(c,d){var b=this.store,a=b.findExact(c,d);return a!==-1?b.getAt(a):!1},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=!1;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=!1;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,!0)}},setValue:function(b){var a=this;if(b!=null){return a.doSetValue(b)}else {a.suspendEvent('select');a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.endUpdate();a.lastSelectedRecords=null;a.resumeEvent('select')}},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(c,p){var a=this,f=a.getStore(),v=f.getModel(),e=[],u=[],r=a.autoLoadOnValue,m=f.getCount()>0||f.isLoaded(),l=f.hasPendingLoad(),o=r&&!m&&!l,t=a.forceSelection,n=a.pickerSelectionModel,s=a.displayField===a.valueField,j=f.isEmptyStore,k=a.lastSelection,d,h,b,i,g,q;if(l||o||!m||j){if(!c.isModel){if(p){a.value=Ext.Array.from(a.value).concat(c)}else {a.value=c}a.setHiddenValue(a.value);a.setRawValue(s?c:'')}if(o&&!j){f.load()}if(!c.isModel||j){return a}}c=p?Ext.Array.from(a.value).concat(c):Ext.Array.from(c);for(d=0,h=c.length;d0){h.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:'input',type:'hidden',name:i}));a=1;g=d.firstChild}while(a>c){d.removeChild(b[0]);--a}while(a','
    ','','
    ','{.}','
    ','
    ','
    ','
    ','
    ','
    ','','
    ','
    ','','
    ','
    ','','
    ','{.}','
    ','
    ','
    ','
    ','','
    {%','var me=values.$comp, okBtn=me.okBtn, cancelBtn=me.cancelBtn;','okBtn.ownerLayout = cancelBtn.ownerLayout = me.componentLayout;','okBtn.ownerCt = cancelBtn.ownerCt = me;','Ext.DomHelper.generateMarkup(okBtn.getRenderTree(), out);','Ext.DomHelper.generateMarkup(cancelBtn.getRenderTree(), out);','%}
    ','
    ',''],okText:'OK',cancelText:'Cancel',baseCls:'x-monthpicker',showButtons:!0,footerButtonUI:'default',measureWidth:35,measureMaxHeight:20,smallCls:'x-monthpicker-small',totalYears:10,yearOffset:5,monthOffset:6,initComponent:function(){var a=this;a.selectedCls=a.baseCls+'-selected';if(a.small){a.addCls(a.smallCls)}a.setValue(a.value);a.activeYear=a.getYear((new Date()).getFullYear()-4,-4);if(a.showButtons){a.okBtn=new Ext.button.Button({ui:a.footerButtonUI,text:a.okText,handler:a.onOkClick,scope:a});a.cancelBtn=new Ext.button.Button({ui:a.footerButtonUI,text:a.cancelText,handler:a.onCancelClick,scope:a})}Ext.Component.prototype.initComponent.call(this)},beforeRender:function(){var a=this,b=0,f=[],c=Ext.Date.getShortMonthName,d=a.monthOffset,e=a.monthMargin,g='';if(a.padding&&!a.width){a.cacheWidth()}Ext.Component.prototype.beforeRender.call(this);for(;bb.measureMaxHeight){--a;c.setStyle('margin','0 '+a+'px')}return a},getLargest:function(b){var a=0;this.months.each(function(d){var c=d.getHeight();if(c>a){a=c}});return a},setValue:function(b){var a=this,d=a.activeYear,c;if(!b){a.value=[null,null]}else {if(Ext.isDate(b)){a.value=[b.getMonth(),b.getFullYear()]}else {a.value=[b[0],b[1]]}}if(a.rendered){c=a.value[1];if(c!==null){if(cd+a.yearOffset){a.activeYear=c-a.yearOffset+1}}a.updateBody()}return a},getValue:function(){return this.value},hasSelection:function(){var a=this.value;return a[0]!==null&&a[1]!==null},getYears:function(){var e=this,b=e.yearOffset,c=e.activeYear,f=c+b,a=c,d=[];for(;a','
    ','','
    {%this.renderMonthBtn(values, out)%}
    ','','
    ','','','','','','','','','','','','{#:this.isEndOfWeek}','','','','','
    ','','
    ','
    ','
    ','','','','
    {todayText}.
    ','
    {ariaMinText}.
    ','
    {ariaMaxText}.
    ','
    {ariaDisabledDaysText}.
    ','
    {ariaDisabledDatesText}.
    ','',{firstInitial:function(a){return Ext.picker.Date.prototype.getDayInitial(a)},isEndOfWeek:function(a){a--;var b=a%7===0&&a!==0;return b?'':''},renderTodayBtn:function(a,b){Ext.DomHelper.generateMarkup(a.$comp.todayBtn.getRenderTree(),b)},renderMonthBtn:function(a,b){Ext.DomHelper.generateMarkup(a.$comp.monthBtn.getRenderTree(),b)}}],initHour:12,numDays:42,initComponent:function(){var a=this,b=Ext.Date.clearTime;a.selectedCls=a.baseCls+'-selected';a.disabledCellCls=a.baseCls+'-disabled';a.prevCls=a.baseCls+'-prevday';a.activeCls=a.baseCls+'-active';a.cellCls=a.baseCls+'-cell';a.nextCls=a.baseCls+'-prevday';a.todayCls=a.baseCls+'-today';if(!a.format){a.format=Ext.Date.defaultFormat}if(!a.dayNames){a.dayNames=Ext.Date.dayNames}a.dayNames=a.dayNames.slice(a.startDay).concat(a.dayNames.slice(0,a.startDay));Ext.Component.prototype.initComponent.call(this);a.value=a.value?b(a.value,!0):b(new Date());a.initDisabledDays()},getRefOwner:function(){return this.pickerField||Ext.Component.prototype.getRefOwner.call(this)},getRefItems:function(){var a=[],b=this.monthBtn,c=this.todayBtn;if(b){a.push(b)}if(c){a.push(c)}return a},beforeRender:function(){var a=this,b=Ext.String.htmlEncode,d=new Array(a.numDays),c=Ext.Date.format(new Date(),a.format);if(a.padding&&!a.width){a.cacheWidth()}a.monthBtn=new Ext.button.Split({ownerCt:a,ownerLayout:a.getComponentLayout(),text:'',tooltip:a.monthYearText,tabIndex:-1,ariaRole:'presentation',listeners:{click:a.doShowMonthPicker,arrowclick:a.doShowMonthPicker,scope:a}});if(a.showToday){a.todayBtn=new Ext.button.Button({ui:a.footerButtonUI,ownerCt:a,ownerLayout:a.getComponentLayout(),text:Ext.String.format(a.todayText,c),tooltip:Ext.String.format(a.todayTip,c),tooltipType:'title',tabIndex:-1,ariaRole:'presentation',handler:a.selectToday,scope:a})}Ext.Component.prototype.beforeRender.call(this);Ext.applyIf(a,{renderData:{}});Ext.apply(a.renderData,{dayNames:a.dayNames,showToday:a.showToday,prevText:b(a.prevText),nextText:b(a.nextText),todayText:b(a.todayText),ariaMinText:b(a.ariaMinText),ariaMaxText:b(a.ariaMaxText),ariaDisabledDaysText:b(a.ariaDisabledDaysText),ariaDisabledDatesText:b(a.ariaDisabledDatesText),days:d});a.protoEl.unselectable()},cacheWidth:function(){var a=this,b=a.parseBox(a.padding),c=Ext.getBody().createChild({cls:a.baseCls+' '+a.borderBoxCls,style:'position:absolute;top:-1000px;left:-1000px;'});a.self.prototype.width=c.getWidth()+b.left+b.right;c.destroy()},onRender:function(b,c){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);a.cells=a.eventEl.select('tbody td');a.textNodes=a.eventEl.query('tbody td div');a.eventEl.set({'aria-labelledby':a.monthBtn.id});a.mon(a.eventEl,{scope:a,mousewheel:a.handleMouseWheel,click:{fn:a.handleDateClick,delegate:'div.'+a.baseCls+'-date'}})},initEvents:function(){var a=this,c=a.pickerField,b=Ext.Date,d=b.DAY;Ext.Component.prototype.initEvents.call(this);if(c){a.el.on('mousedown',a.onMouseDown,a)}a.monthBtn.el.on('mousedown',a.onMouseDown,a);a.prevRepeater=new Ext.util.ClickRepeater(a.prevEl,{handler:a.showPrevMonth,scope:a,mousedownStopEvent:!0});a.nextRepeater=new Ext.util.ClickRepeater(a.nextEl,{handler:a.showNextMonth,scope:a,mousedownStopEvent:!0});a.keyNav=new Ext.util.KeyNav(a.eventEl,Ext.apply({scope:a,left:function(c){if(c.ctrlKey){c.preventDefault();a.showPrevMonth()}else {a.update(b.add(a.activeDate,d,-1))}},right:function(c){if(c.ctrlKey){c.preventDefault();a.showNextMonth()}else {a.update(b.add(a.activeDate,d,1))}},up:function(c){if(c.ctrlKey){a.showNextYear()}else {a.update(b.add(a.activeDate,d,-7))}},down:function(c){if(c.ctrlKey){a.showPrevYear()}else {a.update(b.add(a.activeDate,d,7))}},pageUp:function(b){if(b.ctrlKey){a.showPrevYear()}else {a.showPrevMonth()}},pageDown:function(b){if(b.ctrlKey){a.showNextYear()}else {a.showNextMonth()}},tab:function(b){a.handleTabKey(b);return !0},enter:function(b){a.handleDateClick(b,a.activeCell.firstChild)},space:function(){a.setValue(new Date(a.activeCell.firstChild.dateValue));var d=a.startValue,e=a.value,b;if(c){b=c.getValue();if(b&&d&&b.getTime()===e.getTime()){c.setValue(d)}else {c.setValue(e)}}},home:function(c){a.update(b.getFirstDateOfMonth(a.activeDate))},end:function(c){a.update(b.getLastDateOfMonth(a.activeDate))}},a.keyNavConfig));if(a.disabled){a.syncDisabled(!0)}a.update(a.value)},onMouseDown:function(a){a.preventDefault()},handleTabKey:function(d){var a=this,b=a.getSelectedDate(a.activeDate),c=a.handler;if(!a.disabled&&b.dateValue&&!Ext.fly(b.parentNode).hasCls(a.disabledCellCls)){a.setValue(new Date(b.dateValue));a.fireEvent('select',a,a.value);if(c){c.call(a.scope||a,a,a.value)}a.onSelect()}else {a.fireEventArgs('tabout',[a])}},getSelectedDate:function(g){var e=this,i=g.getTime(),d=e.cells,h=e.selectedCls,c=d.elements,f=c.length,b,a;d.removeCls(h);for(a=0;a0){this.showPrevMonth()}else {if(a<0){this.showNextMonth()}}}},handleDateClick:function(d,b){var a=this,c=a.handler;d.stopEvent();if(!a.disabled&&b.dateValue&&!Ext.fly(b.parentNode).hasCls(a.disabledCellCls)){a.setValue(new Date(b.dateValue));a.fireEvent('select',a,a.value);if(c){c.call(a.scope||a,a,a.value)}a.onSelect()}},onSelect:function(){if(this.hideOnSelect){this.hide()}},selectToday:function(){var a=this,c=a.todayBtn,b=a.handler;if(c&&!c.disabled){a.setValue(Ext.Date.clearTime(new Date()));a.fireEvent('select',a,a.value);if(b){b.call(a.scope||a,a,a.value)}a.onSelect()}return a},selectedUpdate:function(g){var b=this,h=g.getTime(),d=b.cells,e=b.selectedCls,c,f=d.getCount(),a;b.eventEl.dom.setAttribute('aria-busy','true');a=b.activeCell;if(a){Ext.fly(a).removeCls(e);a.setAttribute('aria-selected',!1)}for(c=0;cu||j&&k&&j.test(b.dateFormat(g,k))||l&&l.indexOf(g.getDay())!==-1;if(!a.disabled){a.todayBtn.setDisabled(r)}}s=function(m,g){var d=z[m],e=[];if(!d.hasAttribute('id')){d.setAttribute('id',a.id+'-cell-'+m)}f=+b.clearTime(c,!0);d.firstChild.dateValue=f;d.setAttribute('aria-label',b.format(c,B));d.removeAttribute('aria-describedby');d.removeAttribute('data-qtip');if(f===A){g+=' '+a.todayCls;e.push(a.id+'-todayText')}if(f===x){a.activeCell=d;a.eventEl.dom.setAttribute('aria-activedescendant',d.id);d.setAttribute('aria-selected',!0);g+=' '+a.selectedCls;a.fireEvent('highlightitem',a,d)}else {d.setAttribute('aria-selected',!1)}if(fu){g+=' '+i;e.push(a.id+'-ariaMaxText');d.setAttribute('data-qtip',a.maxText)}else {if(l&&l.indexOf(c.getDay())!==-1){d.setAttribute('data-qtip',D);e.push(a.id+'-ariaDisabledDaysText');g+=' '+i}else {if(j&&k){p=b.dateFormat(c,k);if(j.test(p)){d.setAttribute('data-qtip',y.replace('%0',p));e.push(a.id+'-ariaDisabledDatesText');g+=' '+i}}}}}if(e.length){d.setAttribute('aria-describedby',e.join(' '))}d.className=g+' '+a.cellCls};a.eventEl.dom.setAttribute('aria-busy','true');for(;d=t){m=++E;n=a.nextCls}else {m=d-e+1;n=a.activeCls}}w[d].innerHTML=m;c.setDate(c.getDate()+1);s(d,n)}a.eventEl.dom.removeAttribute('aria-busy');a.monthBtn.setText(Ext.Date.format(h,a.monthYearFormat))},update:function(c,d){var a=this,b=a.activeDate;if(a.rendered){a.activeDate=c;if(!d&&b&&a.el&&b.getMonth()===c.getMonth()&&b.getFullYear()===c.getFullYear()){a.selectedUpdate(c,b)}else {a.fullUpdate(c,b)}}return a},beforeDestroy:function(){var a=this;if(a.rendered){Ext.destroy(a.keyNav,a.monthPicker,a.monthBtn,a.nextRepeater,a.prevRepeater,a.todayBtn,a.todayElSpan);delete a.textNodes;delete a.cells.elements}Ext.Component.prototype.beforeDestroy.call(this)},privates:{finishRenderChildren:function(){var a=this;Ext.Component.prototype.finishRenderChildren.call(this);a.monthBtn.finishRender();if(a.showToday){a.todayBtn.finishRender()}},getFocusEl:function(){return this.eventEl},syncDisabled:function(b){var a=this,c=a.keyNav;if(c){c.setDisabled(b);a.prevRepeater.setDisabled(b);a.nextRepeater.setDisabled(b);if(a.todayBtn){a.todayBtn.setDisabled(b)}}}}},0,['datepicker'],['component','box','datepicker'],{'component':!0,'box':!0,'datepicker':!0},['widget.datepicker'],0,[Ext.picker,'Date',Ext,'DatePicker'],0);Ext.cmd.derive('Ext.form.field.Date',Ext.form.field.Picker,{alternateClassName:['Ext.form.DateField','Ext.form.Date'],format:'m/d/Y',ariaFormat:'M j Y',altFormats:'m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j',disabledDaysText:'Disabled',ariaDisabledDaysText:'This day of week is disabled',disabledDatesText:'Disabled',ariaDisabledDatesText:'This date cannot be selected',minText:'The date in this field must be equal to or after {0}',ariaMinText:'The date must be equal to or after {0}',maxText:'The date in this field must be equal to or before {0}',ariaMaxText:'The date must be equal to or before {0}',invalidText:'{0} is not a valid date - it must be in the format {1}',formatText:'Expected date format: {0}',triggerCls:'x-form-date-trigger',showToday:!0,useStrict:undefined,initTime:'12',initTimeFormat:'H',matchFieldWidth:!1,startDay:0,valuePublishEvent:['select','blur'],ariaRole:'combobox',initComponent:function(){var a=this,d=Ext.isString,c,b;c=a.minValue;b=a.maxValue;if(d(c)){a.minValue=a.parseDate(c)}if(d(b)){a.maxValue=a.parseDate(b)}a.disabledDatesRE=null;a.initDisabledDays();Ext.form.field.Picker.prototype.initComponent.call(this)},initValue:function(){var a=this,b=a.value;if(Ext.isString(b)){a.value=a.rawToValue(b)}Ext.form.field.Picker.prototype.initValue.call(this)},initDisabledDays:function(){if(this.disabledDates){var c=this.disabledDates,f=c.length-1,d='(?:',a,e=c.length,b;for(a=0;a0?b:this.formatDate(this.processRawValue(this.getRawValue()));var a=this,e=Ext.String.format,l=Ext.Date.clearTime,c=Ext.form.field.Picker.prototype.getErrors.call(this,b),d=a.disabledDays,k=a.disabledDatesRE,g=a.minValue,f=a.maxValue,o=d?d.length:0,j=0,m,h,n,i;if(b===null||b.length<1){return c}m=b;b=a.parseDate(b);if(!b){c.push(e(a.invalidText,m,Ext.Date.unescapeFormat(a.format)));return c}i=b.getTime();if(g&&il(f).getTime()){c.push(e(a.maxText,a.formatDate(f)))}if(d){n=b.getDay();for(;j style="{fieldStyle}"',' class="{fieldCls} {fieldCls}-{ui}">{value}',{compiled:!0,disableFormats:!0}],ariaRole:undefined,focusable:!1,readOnly:!0,fieldCls:'x-form-display-field',fieldBodyCls:'x-form-display-field-body',htmlEncode:!1,noWrap:!1,validateOnChange:!1,initEvents:Ext.emptyFn,submitValue:!1,getValue:function(){return this.value},valueToRaw:function(a){if(a||a===0||a===!1){return a}else {return ''}},isDirty:function(){return !1},isValid:Ext.returnTrue,validate:Ext.returnTrue,getRawValue:function(){return this.rawValue},setRawValue:function(b){var a=this;b=Ext.valueFrom(b,'');a.rawValue=b;if(a.rendered){a.inputEl.dom.innerHTML=a.getDisplayValue();a.updateLayout()}return b},getDisplayValue:function(){var a=this,c=this.getRawValue(),b;if(a.renderer){b=a.renderer.call(a.scope||a,c,a)}else {b=a.htmlEncode?Ext.util.Format.htmlEncode(c):c}return b},getSubTplData:function(b){var a=Ext.form.field.Base.prototype.getSubTplData.apply(this,arguments);a.value=this.getDisplayValue();return a}},0,['displayfield'],['component','box','field','displayfield'],{'component':!0,'box':!0,'field':!0,'displayfield':!0},['widget.displayfield'],0,[Ext.form.field,'Display',Ext.form,'DisplayField',Ext.form,'Display'],0);Ext.cmd.derive('Ext.tip.Tip',Ext.panel.Panel,{alternateClassName:'Ext.Tip',minWidth:40,maxWidth:500,shadow:'sides',defaultAlign:'tl-bl?',constrainPosition:!0,autoRender:!0,hidden:!0,baseCls:'x-tip',focusOnToFront:!1,maskOnDisable:!1,closeAction:'hide',alwaysFramed:!0,frameHeader:!1,initComponent:function(){var a=this;a.floating=Ext.apply({},{shadow:a.shadow,constrain:a.constrainPosition},a.self.prototype.floating);Ext.panel.Panel.prototype.initComponent.apply(this,arguments);a.constrain=a.constrain||a.constrainPosition},showAt:function(b){var a=this;Ext.panel.Panel.prototype.showAt.apply(this,arguments);if(a.isVisible()){a.setPagePosition(b[0],b[1]);if(a.constrainPosition||a.constrain){a.doConstrain()}a.toFront(!0)}},privates:{initDraggable:function(){var a=this;a.draggable={el:a.getDragEl(),delegate:a.header.el,constrain:a,constrainTo:a.el.dom.parentNode};Ext.Component.prototype.initDraggable.call(a)}},ghost:undefined,unghost:undefined},0,['tip'],['component','box','container','panel','tip'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tip':!0},['widget.tip'],0,[Ext.tip,'Tip',Ext,'Tip'],0);Ext.cmd.derive('Ext.tip.ToolTip',Ext.tip.Tip,{alternateClassName:'Ext.ToolTip',autoHide:!0,showDelay:500,hideDelay:200,dismissDelay:5000,trackMouse:!1,anchorToTarget:!0,anchorOffset:0,targetCounter:0,quickShowInterval:250,hideAction:'hide',fadeOutDuration:1000,ariaRole:'tooltip',initComponent:function(){var a=this;Ext.tip.Tip.prototype.initComponent.apply(this,arguments);a.lastActive=new Date();a.setTarget(a.target);a.origAnchor=a.anchor},onRender:function(c,b){var a=this;Ext.tip.Tip.prototype.onRender.apply(this,arguments);a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl=a.el.createChild({role:'presentation',cls:'x-tip-anchor '+a.anchorCls})},setTarget:function(d){var a=this,b=Ext.get(d),c;if(a.target){c=Ext.get(a.target);if(Ext.supports.Touch){a.mun(c,'tap',a.onTargetOver,a)}else {a.mun(c,{mouseover:a.onTargetOver,mouseout:a.onTargetOut,mousemove:a.onMouseMove,scope:a})}}a.target=b;if(b){if(Ext.supports.Touch){a.mon(b,{tap:a.onTargetOver,scope:a})}else {a.mon(b,{mouseover:a.onTargetOver,mouseout:a.onTargetOut,mousemove:a.onMouseMove,scope:a})}}if(a.anchor){a.anchorTarget=a.target}},onMouseMove:function(c){var a=this,d,b;if(!a.target||a.target.contains(c.target)){d=a.delegate?c.getTarget(a.delegate):a.triggerElement=!0;if(d){a.targetXY=c.getXY();if(d===a.triggerElement){if(!a.hidden&&a.trackMouse){b=a.getTargetXY();if(a.constrainPosition){b=a.el.adjustForConstraints(b,a.el.parent())}a.setPagePosition(b)}}else {a.hide();a.lastActive=new Date(0);a.onTargetOver(c)}}else {if(!a.closable&&a.isVisible()&&a.autoHide!==!1){a.delayHide()}}}},getTargetXY:function(){var a=this,c,d,h,m,l,f,e,j,k,b,g,i;if(a.delegate){a.anchorTarget=a.triggerElement}if(a.anchor){a.targetCounter++;d=a.getOffsets();h=a.anchorToTarget&&!a.trackMouse?a.getAlignToXY(a.anchorTarget,a.getAnchorAlign()):a.targetXY;m=Ext.Element.getViewportWidth()-5;l=Ext.Element.getViewportHeight()-5;f=document.documentElement;e=document.body;j=(f.scrollLeft||e.scrollLeft||0)+5;k=(f.scrollTop||e.scrollTop||0)+5;b=[h[0]+d[0],h[1]+d[1]];g=a.getSize();i=a.constrainPosition;a.anchorEl.removeCls(a.anchorCls);if(a.targetCounter<2&&i){if(b[0]m){if(a.anchorToTarget){a.defaultAlign='r-l';if(a.mouseOffset){a.mouseOffset[0]*=-1}}a.anchor='right';return a.getTargetXY()}if(b[1]l){if(a.anchorToTarget){a.defaultAlign='b-t';if(a.mouseOffset){a.mouseOffset[1]*=-1}}a.anchor='bottom';return a.getTargetXY()}}a.anchorCls='x-tip-anchor-'+a.getAnchorPosition();a.anchorEl.addCls(a.anchorCls);a.targetCounter=0;return b}else {c=a.getMouseOffset();return a.targetXY?[a.targetXY[0]+c[0],a.targetXY[1]+c[1]]:c}},calculateConstrainedPosition:function(e){var a=this,d,b,c;if(!e&&a.isContainedFloater()){d=a.isVisible();if(!d){a.el.show()}b=a.getTargetXY();if(!d){a.el.hide()}c=a.floatParent.getTargetEl().getViewRegion();b[0]-=c.left;b[1]-=c.top}else {b=a.callOverridden(arguments)}return b},getMouseOffset:function(){var a=this,b=a.anchor?[0,0]:[15,18];if(a.mouseOffset){b[0]+=a.mouseOffset[0];b[1]+=a.mouseOffset[1]}return b},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity('')}})},getAnchorPosition:function(){var a=this,b;if(a.anchor){a.tipAnchor=a.anchor.charAt(0)}else {b=a.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);a.tipAnchor=b[1].charAt(0)}switch(a.tipAnchor){case 't':return 'top';case 'b':return 'bottom';case 'r':return 'right';}return 'left'},getAnchorAlign:function(){switch(this.anchor){case 'top':return 'tl-bl';case 'left':return 'tl-tr';case 'right':return 'tr-tl';default:return 'bl-tl';}},getOffsets:function(){var b=this,c,a,d=b.getAnchorPosition().charAt(0);if(b.anchorToTarget&&!b.trackMouse){switch(d){case 't':a=[0,9];break;case 'b':a=[0,-13];break;case 'r':a=[-13,0];break;default:a=[9,0];break;}}else {switch(d){case 't':a=[-15-b.anchorOffset,30];break;case 'b':a=[-19-b.anchorOffset,-13-b.el.dom.offsetHeight];break;case 'r':a=[-15-b.el.dom.offsetWidth,-13-b.anchorOffset];break;default:a=[25,-13-b.anchorOffset];break;}}c=b.getMouseOffset();a[0]+=c[0];a[1]+=c[1];return a},onTargetOver:function(b){var a=this,d=a.delegate,c;if(a.disabled||b.within(a.target.dom,!0)){return}c=d?b.getTarget(d):!0;if(c){a.triggerElement=c;a.triggerEvent=b;a.clearTimer('hide');a.targetXY=b.getXY();a.delayShow()}},delayShow:function(c){var a=this,b=a.el&&(c===!1||!a.trackMouse)&&a.getTargetXY();if(a.hidden&&!a.showTimer){if(Ext.Date.getElapsed(a.lastActive)','',' ','',''],initComponent:function(){var a=this;Ext.Component.prototype.initComponent.apply(this,arguments);if(a.handler){a.on('select',a.handler,a.scope,!0)}},initRenderData:function(){var a=this;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{itemCls:a.itemCls,colors:a.colors})},onRender:function(){var a=this,b=a.clickEvent;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el,b,a.handleClick,a,{delegate:'a'});if(b!=='click'){a.mon(a.el,'click',Ext.emptyFn,a,{delegate:'a',stopEvent:!0})}},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);if(a.value){b=a.value;a.value=null;a.select(b,!0)}},handleClick:function(c){var a=this,b;c.stopEvent();if(!a.disabled){b=c.currentTarget.className.match(a.colorRe)[1];a.select(b.toUpperCase())}},select:function(b,g){var a=this,e=a.selectedCls,f=a.value,d,c;b=b.replace('#','');if(!a.rendered){a.value=b;return}if(b!==f||a.allowReselect){d=a.el;if(a.value){c=d.down('a.color-'+f,!0);Ext.fly(c).removeCls(e)}c=d.down('a.color-'+b,!0);Ext.fly(c).addCls(e);a.value=b;if(g!==!0){a.fireEvent('select',a,b)}}},clear:function(){var a=this,b=a.value,c;if(b&&a.rendered){c=a.el.down('a.color-'+b,!0);Ext.fly(c).removeCls(a.selectedCls)}a.value=null},getValue:function(){return this.value||null}},0,['colorpicker'],['component','box','colorpicker'],{'component':!0,'box':!0,'colorpicker':!0},['widget.colorpicker'],0,[Ext.picker,'Color',Ext,'ColorPalette'],0);Ext.cmd.derive('Ext.layout.component.field.HtmlEditor',Ext.layout.component.field.FieldContainer,{type:'htmleditor',naturalHeight:150,naturalWidth:300,beginLayout:function(a){var b=this.owner,c;if(Ext.isGecko){c=b.textareaEl.dom;this.lastValue=c.value;c.value=''}Ext.layout.component.field.FieldContainer.prototype.beginLayout.apply(this,arguments);a.toolbarContext=a.context.getCmp(b.toolbar);a.inputCmpContext=a.context.getCmp(b.inputCmp);a.bodyCellContext=a.getEl('bodyEl');a.textAreaContext=a.getEl('textareaEl');a.iframeContext=a.getEl('iframeEl')},beginLayoutCycle:function(a){var b=this,e=a.widthModel,c=a.heightModel,h=b.owner,f=h.iframeEl,d=h.textareaEl,g=c.natural||c.shrinkWrap?b.naturalHeight:'';Ext.layout.component.field.FieldContainer.prototype.beginLayoutCycle.apply(this,arguments);if(e.shrinkWrap){f.setStyle('width','');d.setStyle('width','')}else {if(e.natural){a.bodyCellContext.setWidth(b.naturalWidth)}}f.setStyle('height',g);d.setStyle('height',g)},finishedLayout:function(){var a=this.owner;Ext.layout.component.field.FieldContainer.prototype.finishedLayout.apply(this,arguments);if(Ext.isGecko){a.textareaEl.dom.value=this.lastValue}}},0,0,0,0,['layout.htmleditor'],0,[Ext.layout.component.field,'HtmlEditor'],0);Ext.cmd.derive('Ext.toolbar.Separator',Ext.toolbar.Item,{alternateClassName:'Ext.Toolbar.Separator',baseCls:'x-toolbar-separator',ariaRole:'separator'},0,['tbseparator'],['component','box','tbitem','tbseparator'],{'component':!0,'box':!0,'tbitem':!0,'tbseparator':!0},['widget.tbseparator'],0,[Ext.toolbar,'Separator',Ext.Toolbar,'Separator'],0);Ext.cmd.derive('Ext.layout.container.boxOverflow.Menu',Ext.layout.container.boxOverflow.None,{alternateClassName:'Ext.layout.boxOverflow.Menu',noItemsMenuText:'',menuCls:'x-box-menu',constructor:function(a){var b=this;Ext.layout.container.boxOverflow.None.prototype.constructor.call(this,a);b.menuItems=[]},beginLayout:function(a){Ext.layout.container.boxOverflow.None.prototype.beginLayout.call(this,a);this.clearOverflow(a)},beginLayoutCycle:function(a,b){Ext.layout.container.boxOverflow.None.prototype.beginLayoutCycle.call(this,a,b);if(!b){this.clearOverflow(a);this.layout.cacheChildItems(a)}},onRemove:function(a){Ext.Array.remove(this.menuItems,a)},clearItem:function(a){var b=a.menu;if(a.isButton&&b){a.setMenu(b,!1)}},getSuffixConfig:function(){var a=this,c=a.layout,b=c.owner,d=b.id;a.menu=new Ext.menu.Menu({listeners:{scope:a,beforeshow:a.beforeMenuShow}});a.menuTrigger=new Ext.button.Button({id:d+'-menu-trigger',cls:a.menuCls+'-after x-toolbar-item',plain:b.usePlainButtons,ownerCt:b,ownerLayout:c,iconCls:'x-'+a.getOwnerType(b)+'-more-icon',ui:b.defaultButtonUI||'default',menu:a.menu,showEmptyMenu:!0,getSplitCls:function(){return ''}});return a.menuTrigger.getRenderTree()},getOverflowCls:function(a){return this.menuCls+'-body-'+a},handleOverflow:function(b){var a=this,c=a.layout;a.showTrigger(b);if(c.direction!=='vertical'){a.menuTrigger.setLocalY((b.state.boxPlan.maxSize-a.menuTrigger[c.names.getHeight]())/2)}return {reservedSpace:a.triggerTotalWidth}},captureChildElements:function(){var b=this,a=b.menuTrigger,c=b.layout.names;if(a.rendering){a.finishRender();b.triggerTotalWidth=a[c.getWidth]()+a.el.getMargin(c.parallelMargins)}},clearOverflow:function(h){var b=this,d=b.menuItems,g=d.length,e=b.layout.owner,f=e._asLayoutRoot,a,c;e.suspendLayouts();b.captureChildElements();b.hideTrigger();e.resumeLayouts();for(c=0;ck){h=d.target;b.menuItems.push(h);h.hide()}}o.resumeLayouts()},hideTrigger:function(){var a=this.menuTrigger;if(a){a.hide()}},beforeMenuShow:function(a){var e=this,g=e.menuItems,d=0,h=g.length,b,c,f=function(b,c){return b.isXType('buttongroup')&&!(c instanceof Ext.toolbar.Separator)};a.suspendLayouts();a.removeAll(!1);for(;d','{[Ext.util.Format.htmlEncode(values.value)]}','','{afterTextAreaTpl}','{beforeIFrameTpl}','','{afterIFrameTpl}',{disableFormats:!0}],stretchInputElFixed:!0,subTplInsertions:['beforeTextAreaTpl','afterTextAreaTpl','beforeIFrameTpl','afterIFrameTpl','iframeAttrTpl','inputAttrTpl'],enableFormat:!0,enableFontSize:!0,enableColors:!0,enableAlignments:!0,enableLists:!0,enableSourceEdit:!0,enableLinks:!0,enableFont:!0,createLinkText:'Please enter the URL for the link:',defaultLinkValue:'http://',fontFamilies:['Arial','Courier New','Tahoma','Times New Roman','Verdana'],defaultValue:Ext.isOpera?' ':'​',extraFieldBodyCls:'x-html-editor-wrap',defaultButtonUI:'default-toolbar',initialized:!1,activated:!1,sourceEditMode:!1,iframePad:3,hideMode:'offsets',maskOnDisable:!0,containerElCls:'x-html-editor-container',reStripQuotes:/^['"]*|['"]*$/g,textAlignRE:/text-align:(.*?);/i,safariNonsenseRE:/\sclass="(?:Apple-style-span|Apple-tab-span|khtml-block-placeholder)"/gi,nonDigitsRE:/\D/g,initComponent:function(){var a=this;a.items=[a.createToolbar(),a.createInputCmp()];a.layout={type:'vbox',align:'stretch'};if(a.value==null){a.value=''}Ext.form.FieldContainer.prototype.initComponent.apply(this,arguments);a.initField()},createInputCmp:function(){this.inputCmp=Ext.widget(this.getInputCmpCfg());return this.inputCmp},getInputCmpCfg:function(){var a=this,c=a.id+'-inputCmp',b={id:c,name:a.name,textareaCls:a.textareaCls+' x-hidden',value:a.value,iframeName:Ext.id(),iframeSrc:Ext.SSL_SECURE_URL,iframeCls:'x-htmleditor-iframe'};a.getInsertionRenderData(b,a.subTplInsertions);return {flex:1,xtype:'component',tpl:a.getTpl('componentTpl'),childEls:['iframeEl','textareaEl'],id:c,cls:'x-html-editor-input',data:b}},createToolbar:function(){this.toolbar=Ext.widget(this.getToolbarCfg());return this.toolbar},getToolbarCfg:function(){var a=this,b=[],e,f=Ext.quickTipsActive&&Ext.tip.QuickTipManager.isEnabled(),c='x-',g,d;function btn(b,g,e){return {itemId:b,cls:c+'btn-icon',iconCls:c+'edit-'+b,enableToggle:g!==!1,scope:a,handler:e||a.relayBtnCmd,clickEvent:'mousedown',tooltip:f?a.buttonTips[b]||d:d,overflowText:a.buttonTips[b].title||d,tabIndex:-1}}if(a.enableFont&&!Ext.isSafari2){g=Ext.widget('component',{itemId:'fontSelect',renderTpl:[''],childEls:['selectEl'],afterRender:function(){a.fontSelect=this.selectEl;Ext.Component.prototype.afterRender.apply(this,arguments)},onDisable:function(){var a=this.selectEl;if(a){a.dom.disabled=!0}Ext.Component.prototype.onDisable.apply(this,arguments)},onEnable:function(){var a=this.selectEl;if(a){a.dom.disabled=!1}Ext.Component.prototype.onEnable.apply(this,arguments)},listeners:{change:function(){a.win.focus();a.relayCmd('fontName',a.fontSelect.dom.value);a.deferFocus()},element:'selectEl'}});b.push(g,'-')}if(a.enableFormat){b.push(btn('bold'),btn('italic'),btn('underline'))}if(a.enableFontSize){b.push('-',btn('increasefontsize',!1,a.adjustFont),btn('decreasefontsize',!1,a.adjustFont))}if(a.enableColors){b.push('-',{itemId:'forecolor',cls:c+'btn-icon',iconCls:c+'edit-forecolor',overflowText:a.buttonTips.forecolor.title,tooltip:f?a.buttonTips.forecolor||d:d,tabIndex:-1,menu:Ext.widget('menu',{plain:!0,items:[{xtype:'colorpicker',allowReselect:!0,focus:Ext.emptyFn,value:'000000',plain:!0,clickEvent:'mousedown',handler:function(c,b){a.relayCmd('forecolor',Ext.isWebKit||Ext.isIE?'#'+b:b);this.up('menu').hide()}}]})},{itemId:'backcolor',cls:c+'btn-icon',iconCls:c+'edit-backcolor',overflowText:a.buttonTips.backcolor.title,tooltip:f?a.buttonTips.backcolor||d:d,tabIndex:-1,menu:Ext.widget('menu',{plain:!0,items:[{xtype:'colorpicker',focus:Ext.emptyFn,value:'FFFFFF',plain:!0,allowReselect:!0,clickEvent:'mousedown',handler:function(c,b){if(Ext.isGecko){a.execCmd('useCSS',!1);a.execCmd('hilitecolor','#'+b);a.execCmd('useCSS',!0);a.deferFocus()}else {a.relayCmd(Ext.isOpera?'hilitecolor':'backcolor',Ext.isWebKit||Ext.isIE||Ext.isOpera?'#'+b:b)}this.up('menu').hide()}}]})})}if(a.enableAlignments){b.push('-',btn('justifyleft'),btn('justifycenter'),btn('justifyright'))}if(!Ext.isSafari2){if(a.enableLinks){b.push('-',btn('createlink',!1,a.createLink))}if(a.enableLists){b.push('-',btn('insertorderedlist'),btn('insertunorderedlist'))}if(a.enableSourceEdit){b.push('-',btn('sourceedit',!0,function(){a.toggleSourceEdit(!a.sourceEditMode)}))}}for(e=0;e',a.iframePad,b,a.defaultFont)},getEditorBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){return this.iframeEl.dom.contentDocument||this.getWin().document},getWin:function(){return this.iframeEl.dom.contentWindow||window.frames[this.iframeEl.dom.name]},initDefaultFont:function(){var b=this,h=0,c,a,f,e,d,i,g;if(!b.defaultFont){a=b.textareaEl.getStyle('font-family');a=Ext.String.capitalize(a.split(',')[0]);c=Ext.Array.clone(b.fontFamilies);Ext.Array.include(c,a);c.sort();b.defaultFont=a;f=b.down('#fontSelect').selectEl.dom;for(d=0,i=c.length;d'+a+''}}a=b.cleanHtml(a);if(b.fireEvent('beforesync',b,a)!==!1){if(Ext.isGecko&&c.value===''&&a==='
    '){a=''}if(c.value!==a){c.value=a;g=!0}b.fireEvent('sync',b,a);if(g){b.checkChange()}}}},getValue:function(){var a=this,b;if(!a.sourceEditMode){a.syncValue()}b=a.rendered?a.textareaEl.dom.value:a.value;a.value=b;return b},pushValue:function(){var a=this,b;if(a.initialized){b=a.textareaEl.dom.value||'';if(!a.activated&&b.length<1){b=a.defaultValue}if(a.fireEvent('beforepush',a,b)!==!1){a.getEditorBody().innerHTML=b;if(Ext.isGecko){a.setDesignMode(!1);a.setDesignMode(!0)}a.fireEvent('push',a,b)}}},focus:function(e,c){var a=this,d,b;if(c){if(!a.focusTask){a.focusTask=new Ext.util.DelayedTask(a.focus)}a.focusTask.delay(Ext.isNumber(c)?c:10,null,a,[e,!1])}else {if(e){if(a.textareaEl&&a.textareaEl.dom){d=a.textareaEl.dom.value}if(d&&d.length){a.execCmd('selectall',!0)}}b=a.getFocusEl();if(b&&b.focus){b.focus()}}return a},initEditor:function(){var a=this,e,f,d,c,b;if(a.destroying||a.destroyed){return}e=a.getEditorBody();if(!e){setTimeout(function(){a.initEditor()},10);return}f=a.textareaEl.getStyle(['font-size','font-family','background-image','background-repeat','background-color','color']);f['background-attachment']='fixed';e.bgProperties='fixed';Ext.DomHelper.applyStyles(e,f);d=a.getDoc();c=Ext.get(d);if(c){try{c.clearListeners()}catch(g){}b=a.onEditorEvent.bind(a);c.on({mousedown:b,dblclick:b,click:b,keyup:b,delegated:!1,buffer:100});b=a.onRelayedEvent;c.on({mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,delegated:!1,scope:a});if(Ext.isGecko){c.on('keypress',a.applyCommand,a)}if(a.fixKeys){c.on('keydown',a.fixKeys,a,{delegated:!1})}if(a.fixKeysAfter){c.on('keyup',a.fixKeysAfter,a,{delegated:!1})}if(Ext.isIE9){Ext.get(d.documentElement).on('focus',a.focus,a)}if(Ext.isIE8){c.on('focusout',function(){a.savedSelection=d.selection.type!=='None'?d.selection.createRange():null},a);c.on('focusin',function(){if(a.savedSelection){a.savedSelection.select()}},a)}Ext.getWin().on('beforeunload',a.beforeDestroy,a);d.editorInitialized=!0;a.initialized=!0;a.pushValue();a.setReadOnly(a.readOnly);a.fireEvent('initialize',a)}},beforeDestroy:function(){var a=this,d=a.monitorTask,b,c;if(d){Ext.TaskManager.stop(d)}if(a.rendered){Ext.getWin().un(a.beforeDestroy,a);b=a.getDoc();if(b){Ext.get(b).destroy();if(b.hasOwnProperty){for(c in b){try{if(b.hasOwnProperty(c)){delete b[c]}}catch(e){}}}}delete a.iframeEl;delete a.textareaEl;delete a.toolbar;delete a.inputCmp}Ext.form.FieldContainer.prototype.beforeDestroy.call(this)},onRelayedEvent:function(a){var b=this.iframeEl,c=Ext.fly(b).getTrueXY(),e=a.getXY(),d=a.getXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},onFirstFocus:function(){var a=this,b,c;a.activated=!0;a.disableItems(a.readOnly);if(Ext.isGecko){a.win.focus();b=a.win.getSelection();if(b.focusNode&&!a.getValue().length){c=b.getRangeAt(0);c.selectNodeContents(a.getEditorBody());c.collapse(!0);a.deferFocus()}try{a.execCmd('useCSS',!0);a.execCmd('styleWithCSS',!1)}catch(d){}}a.fireEvent('activate',a)},adjustFont:function(e){var b=e.getItemId()==='increasefontsize'?1:-1,a=this.getDoc().queryCommandValue('FontSize')||'2',d=Ext.isString(a)&&a.indexOf('px')!==-1,c;a=parseInt(a,10);if(d){if(a<=10){a=1+b}else {if(a<=13){a=2+b}else {if(a<=16){a=3+b}else {if(a<=18){a=4+b}else {if(a<=24){a=5+b}else {a=6+b}}}}}a=Ext.Number.constrain(a,1,6)}else {c=Ext.isSafari;if(c){b*=2}a=Math.max(1,a+b)+(c?'px':0)}this.relayCmd('FontSize',a)},onEditorEvent:function(){this.updateToolbar()},updateToolbar:function(){var a=this,c,i,h,g,b,d,f,e;if(a.readOnly){return}if(!a.activated){a.onFirstFocus();return}h=a.getToolbar().items.map;g=a.getDoc();if(a.enableFont&&!Ext.isSafari2){d=g.queryCommandValue('fontName');b=(d?d.split(',')[0].replace(a.reStripQuotes,''):a.defaultFont).toLowerCase();f=a.fontSelect.dom;if(b!==f.value||b!==d){f.value=b}}function updateButtons(){var a;for(c=0,i=arguments.length,b;c0){b=String.fromCharCode(b);switch(b){case 'b':a='bold';break;case 'i':a='italic';break;case 'u':a='underline';break;}if(a){c.win.focus();c.execCmd(a);c.deferFocus();d.preventDefault()}}}},insertAtCursor:function(j){var e=this,g=e.getWin(),d=e.getDoc(),b,a,h,c,i,f,k;if(e.activated){g.focus();if(g.getSelection){b=g.getSelection();if(b.getRangeAt&&b.rangeCount){a=b.getRangeAt(0);a.deleteContents();h=d.createElement('div');h.innerHTML=j;c=d.createDocumentFragment();while(i=h.firstChild){f=c.appendChild(i)}k=c.firstChild;a.insertNode(c);if(f){a=a.cloneRange();a.setStartAfter(f);a.collapse(!0);b.removeAllRanges();b.addRange(a)}}}else {if(d.selection&&b.type!=='Control'){b=d.selection;a=b.createRange();a.collapse(!0);b.createRange().pasteHTML(j)}}e.deferFocus()}},fixKeys:function(){var a;if(Ext.isIE10m){return function(c){var b=this,f=c.getKey(),e=b.getDoc(),d=b.readOnly,a,g;if(f===c.TAB){c.stopEvent();if(!d){a=e.selection.createRange();if(a){if(a.collapse){a.collapse(!0);a.pasteHTML('    ')}b.deferFocus()}}}}}if(Ext.isOpera){return function(b){var a=this,d=b.getKey(),c=a.readOnly;if(d===b.TAB){b.stopEvent();if(!c){a.win.focus();a.execCmd('InsertHTML','    ');a.deferFocus()}}}}return null}(),fixKeysAfter:function(){if(Ext.isIE){return function(b){var d=this,e=b.getKey(),c=d.getDoc(),f=d.readOnly,a;if(!f&&(e===b.BACKSPACE||e===b.DELETE)){a=c.body.innerHTML;if(a==='

     

    '||a==='

     

    '){c.body.innerHTML=''}}}}return null}(),getToolbar:function(){return this.toolbar},buttonTips:{bold:{title:'Bold (Ctrl+B)',text:'Make the selected text bold.',cls:'x-html-editor-tip'},italic:{title:'Italic (Ctrl+I)',text:'Make the selected text italic.',cls:'x-html-editor-tip'},underline:{title:'Underline (Ctrl+U)',text:'Underline the selected text.',cls:'x-html-editor-tip'},increasefontsize:{title:'Grow Text',text:'Increase the font size.',cls:'x-html-editor-tip'},decreasefontsize:{title:'Shrink Text',text:'Decrease the font size.',cls:'x-html-editor-tip'},backcolor:{title:'Text Highlight Color',text:'Change the background color of the selected text.',cls:'x-html-editor-tip'},forecolor:{title:'Font Color',text:'Change the color of the selected text.',cls:'x-html-editor-tip'},justifyleft:{title:'Align Text Left',text:'Align text to the left.',cls:'x-html-editor-tip'},justifycenter:{title:'Center Text',text:'Center text in the editor.',cls:'x-html-editor-tip'},justifyright:{title:'Align Text Right',text:'Align text to the right.',cls:'x-html-editor-tip'},insertunorderedlist:{title:'Bullet List',text:'Start a bulleted list.',cls:'x-html-editor-tip'},insertorderedlist:{title:'Numbered List',text:'Start a numbered list.',cls:'x-html-editor-tip'},createlink:{title:'Hyperlink',text:'Make the selected text a hyperlink.',cls:'x-html-editor-tip'},sourceedit:{title:'Source Edit',text:'Switch to source editing mode.',cls:'x-html-editor-tip'}},privates:{deferFocus:function(){this.focus(!1,!0)},getFocusEl:function(){return this.sourceEditMode?this.textareaEl:this.iframeEl}}},0,['htmleditor'],['component','box','container','fieldcontainer','htmleditor'],{'component':!0,'box':!0,'container':!0,'fieldcontainer':!0,'htmleditor':!0},['widget.htmleditor'],[['field',Ext.form.field.Field]],[Ext.form.field,'HtmlEditor',Ext.form,'HtmlEditor'],0);Ext.define('Ext.theme.neptune.form.field.HtmlEditor',{override:'Ext.form.field.HtmlEditor',defaultButtonUI:'plain-toolbar'});Ext.cmd.derive('Ext.form.field.Tag',Ext.form.field.ComboBox,{noWrap:!1,multiSelect:!0,delimiter:',',tipTpl:undefined,forceSelection:!0,createNewOnEnter:!1,createNewOnBlur:!1,encodeSubmitValue:!1,triggerOnClick:!0,stacked:!1,filterPickList:!1,grow:!0,growMin:!1,growMax:!1,selectOnFocus:!0,fieldSubTpl:['
    ','
      ','
    • ','
      {emptyText}
      ','name="{name}" ',' value="{[Ext.util.Format.htmlEncode(values.value)]}"','size="{size}" ','tabindex="{tabIdx}" ',' disabled="disabled"','class="x-tagfield-input-field {inputElCls}" autocomplete="off">','
    • ','
    ','
    ',{disableFormats:!0}],extraFieldBodyCls:'x-tagfield-body',childEls:['listWrapper','itemList','inputEl','inputElCt','emptyEl'],emptyInputCls:'x-tagfield-emptyinput',clearValueOnEmpty:!1,tagItemCls:'x-tagfield-item',tagItemTextCls:'x-tagfield-item-text',tagItemCloseCls:'x-tagfield-item-close',tagItemSelector:'.x-tagfield-item',tagItemCloseSelector:'.x-tagfield-item-close',tagSelectedCls:'x-tagfield-item-selected',initComponent:function(){var a=this,c=a.typeAhead,b=a.delimiter;if(a.createNewOnEnter||a.createNewOnBlur){a.forceSelection=!1}a.typeAhead=!1;if(a.value==null){a.value=[]}a.selectionModel=new Ext.selection.Model({mode:'MULTI',onSelectChange:function(d,c,b,a){a()},listeners:{scope:a,selectionchange:a.onSelectionChange,focuschange:a.onFocusChange}});Ext.form.field.ComboBox.prototype.initComponent.call(this);a.typeAhead=c;if(b&&a.multiSelect){a.delimiterRegexp=new RegExp(Ext.String.escapeRegex(b))}},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.ComboBox.prototype.initEvents.apply(this,arguments);if(!a.enableKeyEvents){b.on('keydown',a.onKeyDown,a);b.on('keyup',a.onKeyUp,a)}a.listWrapper.on({scope:a,click:a.onItemListClick,mousedown:a.onItemMouseDown})},isValid:function(){var a=this,b=a.disabled,c=a.forceValidation||!b;return c?a.validateValue(a.getValue()):b},onBindStore:function(b){var a=this;Ext.form.field.ComboBox.prototype.onBindStore.call(this,b);if(b){a.valueStore=new Ext.data.Store({model:b.getModel(),useModelWarning:!1});a.selectionModel.bindStore(a.valueStore);if(a.filterPickList){a.listFilter=new Ext.util.Filter({scope:a,filterFn:a.filterPicked});a.changingFilters=!0;b.filter(a.listFilter);a.changingFilters=!1}}},filterPicked:function(a){return !this.valueCollection.contains(a)},onUnbindStore:function(d){var a=this,b=a.valueStore,c=a.picker;if(c){c.bindStore(null)}if(b){b.destroy();a.valueStore=null}if(a.filterPickList&&!d.destroyed){a.changingFilters=!0;d.removeFilter(a.listFilter);a.changingFilters=!1}Ext.form.field.ComboBox.prototype.onUnbindStore.apply(this,arguments)},onValueCollectionEndUpdate:function(){var a=this,c=a.valueCollection.items,b=a.valueStore;if(a.isSelectionUpdating()){return}if(a.filterPickList){a.changingFilters=!0;a.store.filter(a.listFilter);a.changingFilters=!1}Ext.form.field.ComboBox.prototype.onValueCollectionEndUpdate.call(this);Ext.suspendLayouts();if(b){b.suspendEvents();b.loadRecords(c);b.resumeEvents()}Ext.resumeLayouts(!0);a.alignPicker()},checkValueOnDataChange:Ext.emptyFn,onSelectionChange:function(b,a){this.applyMultiselectItemMarkup();this.fireEvent('valueselectionchange',this,a)},onFocusChange:function(c,b,a){this.fireEvent('valuefocuschange',this,b,a)},onDestroy:function(){this.selectionModel=Ext.destroy(this.selectionModel);Ext.form.field.ComboBox.prototype.onDestroy.apply(this,arguments)},getSubTplData:function(i){var b=this,a=Ext.form.field.ComboBox.prototype.getSubTplData.apply(this,arguments),h=b.emptyText,g=b.emptyInputCls,f=h&&a.value.length<1,e=b.growMin,d=b.growMax,c='';a.value='';a.emptyText=f?h:'';a.emptyCls=f?b.emptyCls:g;a.inputElCls=f?g:'';a.itemListCls='';if(b.grow){if(Ext.isNumber(e)&&e>0){c+='min-height:'+e+'px;'}if(Ext.isNumber(d)&&d>0){c+='max-height:'+d+'px;'}}a.wrapperStyle=c;if(b.stacked===!0){a.itemListCls+=' x-tagfield-stacked'}if(!b.multiSelect){a.itemListCls+=' x-tagfield-singleselect'}return a},afterRender:function(){var a=this,b=a.inputEl,c=a.emptyText;if(c){if(Ext.supports.Placeholder&&b){b.dom.removeAttribute('placeholder')}else {a.applyEmptyText()}}a.applyMultiselectItemMarkup();Ext.form.field.ComboBox.prototype.afterRender.apply(this,arguments)},findRecord:function(b,c){var a=this.getStore().queryRecords(b,c);return a.length?a[0]:!1},getCursorPosition:function(){var a;if(document.selection){a=document.selection.createRange();a.collapse(!0);a.moveStart('character',-this.inputEl.dom.value.length);a=a.text.length}else {a=this.inputEl.dom.selectionStart}return a},hasSelectedText:function(){var a=this.inputEl.dom,c,b;if(document.selection){c=document.selection;b=c.createRange();return b.parentElement()===a}else {return a.selectionStart!==a.selectionEnd}},onKeyDown:function(a){var c=this,f=a.getKey(),i=c.inputEl,h=i.dom.value,e=c.valueCollection,b=c.selectionModel,g=!1,d;if(c.readOnly||c.disabled||!c.editable){return}if(e.getCount()>0&&(h===''||c.getCursorPosition()===0&&!c.hasSelectedText())){d=b.getCount()>0?e.indexOf(b.getLastSelected()):-1;if(f===a.BACKSPACE||f===a.DELETE){if(d>-1){if(b.getCount()>1){d=-1}e.remove(b.getSelection())}else {e.remove(e.last())}b.clearSelections();if(d>0){b.select(d-1)}else {if(e.getCount()){b.select(e.last())}}g=!0}else {if(f===a.RIGHT||f===a.LEFT){if(d===-1&&f===a.LEFT){b.select(e.last());g=!0}else {if(d>-1){if(f===a.RIGHT){if(d0){b.select(d-1,a.shiftKey);g=!0}}}}}else {if(f===a.A&&a.ctrlKey){b.selectAll();g=a.A}}}}if(g){c.preventKeyUpEvent=g;a.stopEvent();return}if(c.isExpanded&&f===a.ENTER&&c.picker.highlightedItem){c.preventKeyUpEvent=!0}if(c.enableKeyEvents){Ext.form.field.ComboBox.prototype.onKeyDown.apply(this,arguments)}if(!a.isSpecialKey()&&!a.hasModifier()){b.deselectAll()}},onKeyUp:function(b,f){var a=this,d=a.inputEl,c=d.dom.value,e=a.preventKeyUpEvent;if(a.preventKeyUpEvent){b.stopEvent();if(e===!0||b.getKey()===e){delete a.preventKeyUpEvent}return}if(a.multiSelect&&a.delimiterRegexp&&a.delimiterRegexp.test(c)||a.createNewOnEnter&&b.getKey()===b.ENTER){c=Ext.Array.clean(c.split(a.delimiterRegexp));d.dom.value='';a.setValue(a.valueStore.getRange().concat(c));d.focus()}Ext.form.field.ComboBox.prototype.onKeyUp.call(this,b,f)},onTypeAhead:function(){var a=this,f=a.displayField,d=a.inputEl.dom,g=a.getPicker(),e=a.getStore().findRecord(f,d.value),b,h,c;if(e){b=e.get(f);h=b.length;c=d.value.length;g.highlightItem(g.getNode(e));if(c!==0&&c!==h){d.value=b;a.selectText(c,b.length)}}},onItemListClick:function(c){var a=this,d=a.selectionModel,b=c.getTarget(a.tagItemSelector),e=b?c.getTarget(a.tagItemCloseSelector):!1;if(a.readOnly||a.disabled){return}c.stopPropagation();if(b){if(e){a.removeByListItemNode(b);if(a.valueStore.getCount()>0){a.fireEvent('select',a,a.valueStore.getRange())}}else {a.toggleSelectionByListItemNode(b,c.shiftKey)}if(!Ext.supports.TouchEvents){a.inputEl.focus()}}else {if(d.getCount()>0){d.deselectAll()}a.inputEl.focus();if(a.triggerOnClick){a.onTriggerClick()}}},onItemMouseDown:function(a){a.preventDefault()},getMultiSelectItemMarkup:function(){var a=this,b=a._getChildElCls&&a._getChildElCls()||'';if(!a.multiSelectItemTpl){if(!a.labelTpl){a.labelTpl='{'+a.displayField+'}'}a.labelTpl=a.getTpl('labelTpl');if(a.tipTpl){a.tipTpl=a.getTpl('tipTpl')}a.multiSelectItemTpl=new Ext.XTemplate(['','
  • ',' '+a.tagSelectedCls,'','{%','values = values.data;','%}',a.tipTpl?'" data-qtip="{[this.getTip(values)]}">':'">','
    {[this.getItemLabel(values)]}
    ','
    ','
  • ','
    ',{isSelected:function(b){return a.selectionModel.isSelected(b)},getItemLabel:function(b){return Ext.String.htmlEncode(a.labelTpl.apply(b))},getTip:function(b){return Ext.String.htmlEncode(a.tipTpl.apply(b))},strict:!0}])}if(!a.multiSelectItemTpl.isTemplate){a.multiSelectItemTpl=this.getTpl('multiSelectItemTpl')}return a.multiSelectItemTpl.apply(a.valueCollection.getRange())},applyMultiselectItemMarkup:function(){var a=this,b=a.itemList;if(b){b.select('.x-tagfield-item').destroy();a.inputElCt.insertHtml('beforeBegin',a.getMultiSelectItemMarkup());a.autoSize()}},getRecordByListItemNode:function(a){return this.valueCollection.items[Number(a.getAttribute('data-selectionIndex'))]},toggleSelectionByListItemNode:function(e,d){var c=this,a=c.getRecordByListItemNode(e),b=c.selectionModel;if(a){if(b.isSelected(a)){b.deselect(a)}else {b.select(a,d)}}},removeByListItemNode:function(c){var b=this,a=b.getRecordByListItemNode(c);if(a){b.pickerSelectionModel.deselect(a)}},getDisplayValue:function(){return this.getRawValue()},getRawValue:function(){var e=this,b=e.getValueRecords(),c=[],a,d;for(a=0,d=b.length;a0||f.isLoaded(),o=f.hasPendingLoad(),r=n&&!p&&!o,e,m,d,c,l,h;if(Ext.isEmpty(a)){a=null}else {if(Ext.isString(a)&&b.multiSelect){a=a.split(b.delimiter)}else {a=Ext.Array.from(a,!0)}}if(a&&b.queryMode==='remote'&&!f.isEmptyStore&&q!==!0&&r){for(d=0,m=a.length;d-1){a[d]=j.getAt(c)}else {c=b.findRecord(i,e);if(!c){if(b.forceSelection){g.push(e)}else {c={};c[b.valueField]=e;c[b.displayField]=e;l=b.valueStore.getModel();c=new l(c)}}if(c){a[d]=c}}}}if(g.length){h={};h[b.valueParam||b.valueField]=g.join(b.delimiter);f.load({params:h,callback:function(){b.setValue(a,k,!0);b.autoSize();b.lastQuery=!1}});return !1}}if(!b.multiSelect&&a.length>0){for(d=a.length-1;d>=0;d--){if(a[d].isModel){a=a[d];break}}if(Ext.isArray(a)){a=a[a.length-1]}}return Ext.form.field.ComboBox.prototype.setValue.call(this,a,k)},updateValue:function(){var a=this,b=a.valueCollection.getRange(),d=b.length,c;for(c=0;c=b.length){a.colIdx=0}else {a.colIdx++}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;}}},statics:{compare:function(a,b){return a.rowIdx-b.rowIdx||a.colIdx-b.colIdx}}},1,0,0,0,0,0,[Ext.grid,'CellContext'],0);Ext.cmd.derive('Ext.grid.ColumnComponentLayout',Ext.layout.component.Auto,{type:'columncomponent',setWidthInDom:!0,_paddingReset:{paddingTop:'',paddingBottom:''},columnAutoCls:'x-column-header-text-container-auto',beginLayout:function(a){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);a.titleContext=a.getEl('titleEl')},beginLayoutCycle:function(d){var b=this,a=b.owner,c=d.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(c){a.el.setWidth('')}a.textContainerEl[c&&!a.isGroupHeader?'addCls':'removeCls'](b.columnAutoCls);a.titleEl.setStyle(b._paddingReset)},publishInnerHeight:function(a,e){var d=this,b=d.owner,c;if(b.getRootHeaderCt().hiddenHeaders){a.setProp('innerHeight',0);return}if(!a.hasRawContent){if(b.headerWrap&&!a.hasDomProp('width')){d.done=!1;return}c=e-a.getBorderInfo().height;a.setProp('innerHeight',c-b.titleEl.getHeight(),!1)}},measureContentHeight:function(a){return a.el.dom.offsetHeight},publishInnerWidth:function(a,b){if(!a.hasRawContent){a.setProp('innerWidth',b-a.getBorderInfo().width,!1)}},calculateOwnerHeightFromContentHeight:function(a,c){var d=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),b=this.owner;if(!a.hasRawContent){if(!b.headerWrap||a.hasDomProp('width')){return c+b.titleEl.getHeight()+a.getBorderInfo().height}return null}return d},calculateOwnerWidthFromContentWidth:function(a,d){var c=this.owner,f=a.getPaddingInfo().width,e=this.getTriggerOffset(c,a),b;if(c.isGroupHeader){b=d}else {b=Math.max(d,c.textEl.getWidth()+a.titleContext.getPaddingInfo().width)}return b+f+e},getTriggerOffset:function(a,c){var b=0;if(c.widthModel.shrinkWrap&&!a.menuDisabled){if(a.query('>:not([hidden])').length===0){b=a.getTriggerElWidth()}}return b}},0,0,0,0,['layout.columncomponent'],0,[Ext.grid,'ColumnComponentLayout'],0);Ext.cmd.derive('Ext.layout.container.Fit',Ext.layout.container.Container,{alternateClassName:'Ext.layout.FitLayout',itemCls:'x-fit-item',type:'fit',manageMargins:!0,sizePolicies:{0:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},1:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},2:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},3:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}},getItemSizePolicy:function(d,b){var a=b||this.owner.getSizeModel(),c=(a.width.shrinkWrap?0:1)|(a.height.shrinkWrap?0:2);return this.sizePolicies[c]},beginLayoutCycle:function(a,p){var f=this,j=f.lastHeightModel&&f.lastHeightModel.calculated,m=f.lastWidthModel&&f.lastWidthModel.calculated,l=m||j,h=0,i=0,b,k,g,e,q,n,c,d,o,r;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(l&&a.targetContext.el.dom.tagName.toUpperCase()!=='TD'){l=m=j=!1}k=a.childItems;q=k.length;for(g=0;g0){for(g=0;g'+a.view.emptyText+''}a.view.getComponentLayout().headerCt=a.headerCt;a.mon(a.view,{uievent:a.processEvent,scope:a});a.headerCt.view=a.view;if(a.hasListeners.viewcreated){a.fireEvent('viewcreated',a,a.view)}}return a.view},getColumnManager:function(){return this.columnManager},getVisibleColumnManager:function(){return this.visibleColumnManager},getTopLevelColumnManager:function(){return this.ownerGrid.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},setAutoScroll:Ext.emptyFn,applyScrollable:function(a){if(this.view){this.view.setScrollable(a)}return a},getScrollable:function(){return null},processEvent:function(g,h,f,c,d,b,e,i){var a=b.position.column;if(a){return a.processEvent.apply(a,arguments)}},ensureVisible:function(b,a){this.doEnsureVisible(b,a)},scrollByDeltaY:function(b,a){this.getView().scrollBy(0,b,a)},scrollByDeltaX:function(b,a){this.getView().scrollBy(b,0,a)},afterCollapse:function(){this.saveScrollPos();Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){Ext.panel.Panel.prototype.afterExpand.apply(this,arguments);this.restoreScrollPos()},saveScrollPos:Ext.emptyFn,restoreScrollPos:Ext.emptyFn,onHeaderResize:function(){var a=this.view.getScrollable(),b;if(a&&a.isTouchScroller){b=a.getSize();if(b){a.setSize({x:this.headerCt.getTableWidth(),y:b.y})}}},onHeaderMove:function(e,f,b,c,d){var a=this;if(a.optimizedColumnMove===!1){a.view.refreshView()}else {a.view.moveColumn(c,d,b)}a.delayScroll()},onHeaderHide:function(b,c){var a=this.view;if(!b.childHideCount&&a.refreshCounter){a.refreshView()}},onHeaderShow:function(b,c){var a=this.view;if(a.refreshCounter){a.refreshView()}},onHeadersChanged:function(b,c){var a=this;if(a.rendered&&!a.reconfiguring){a.view.refreshView();a.delayScroll()}},delayScroll:function(){var a=this.view;if(a){this.scrollTask.delay(10,null,null,[a])}},onViewReady:function(){this.fireEvent('viewready',this)},onRestoreHorzScroll:function(){var a=this,b=a.scrollXPos;if(b){a.syncHorizontalScroll(a,!0)}},getScrollerOwner:function(){var a=this;if(!this.scrollerOwner){a=this.up('[scrollerOwner]')}return a},getLhsMarker:function(){var a=this;return a.lhsMarker||(a.lhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getRhsMarker:function(){var a=this;return a.rhsMarker||(a.rhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getSelectionModel();if(c){b.select(c)}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},updateHeaderBorders:function(a){this[a?'removeCls':'addCls'](this.noHeaderBordersCls)},getNavigationModel:function(){return this.getView().getNavigationModel()},getSelectionModel:function(){return this.getView().getSelectionModel()},getScrollTarget:function(){var a=this.getScrollerOwner().query('tableview');return a[a.length-1]},syncHorizontalScroll:function(e,b){var a=this,c=a.view.getScrollX(),d;b=b===!0;if(a.rendered&&(b||c!==a.scrollXPos)){if(b){d=a.getScrollTarget();d.setScrollX(c)}a.headerCt.setScrollX(c);a.scrollXPos=c}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(b,d){var a=this,c=a.getView();if(b){a.store=b;if(c.store!==b){c.bindStore(b,!1)}a.mon(b,{load:a.onStoreLoad,scope:a});a.storeRelayers=a.relayEvents(b,['filterchange','groupchange'])}else {a.unbindStore()}},unbindStore:function(){var a=this,b=a.store,c;if(b){b.trackStateChanges=!1;a.store=null;a.mun(b,{load:a.onStoreLoad,scope:a});Ext.destroy(a.storeRelayers);c=a.view;if(c.store){c.bindStore(null)}}},setColumns:function(a){if(a.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,a)}},setStore:function(a){this.reconfigure(a);if(this.autoLoad&&!a.isEmptyStore&&!(a.loading||a.isLoaded())){a.load()}},reconfigure:function(b,c){var a=this,f=a.store,e=a.headerCt,i=a.lockable,h=e?e.items.getRange():a.columns,d=a.getView(),j,g;if(arguments.length===1&&Ext.isArray(b)){c=b;b=null}if(c){c=Ext.Array.slice(c)}a.reconfiguring=!0;if(b){b=Ext.StoreManager.lookup(b)}a.fireEvent('beforereconfigure',a,b,c,f,h);Ext.suspendLayouts();if(i){a.reconfigureLockable(b,c)}else {j=d.blockRefresh;d.blockRefresh=!0;if(b&&b!==f){a.unbindStore();a.bindStore(b)}if(c){delete a.scrollXPos;e.removeAll();e.add(c)}d.blockRefresh=j;g=d.refreshCounter}Ext.resumeLayouts(!0);if(i){a.afterReconfigureLockable()}else {if(d.refreshCounter===g){d.refreshView()}}a.fireEvent('reconfigure',a,b,c,f,h);delete a.reconfiguring},beforeDestroy:function(){var a=this,b=a.scrollTask;if(b){b.cancel();a.scrollTask=null}Ext.destroy(a.focusEnterLeaveListeners);Ext.panel.Panel.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.lockable){a.destroyLockable()}a.unbindStore();Ext.panel.Panel.prototype.onDestroy.call(this);a.columns=a.storeRelayers=a.columnManager=a.visibleColumnManager=null},destroy:function(){var a=this;Ext.panel.Panel.prototype.destroy.call(this);if(a.destroyed){a.view=a.selModel=a.headerCt=null}},privates:{initFocusableElement:function(){},doEnsureVisible:function(a,c){if(this.lockable){return this.ensureLockedVisible(a,c)}if(typeof a!=='number'&&!a.isEntity){a=this.store.getById(a)}var b=this,d=b.getView(),f=d.getNode(a),g,h,k,j,m,l,i,e,n;if(c){g=c.callback;h=c.scope;k=c.animate;j=c.highlight;m=c.select;l=c.focus;e=c.column}if(b.deferredEnsureVisible){b.deferredEnsureVisible.destroy()}if(!d.componentLayoutCounter){b.deferredEnsureVisible=d.on({resize:b.doEnsureVisible,args:Ext.Array.slice(arguments),scope:b,single:!0,destroyable:!0});return}if(typeof e==='number'){e=b.ownerGrid.getVisibleColumnManager().getColumns()[e]}if(f){i=d.getScrollable();if(e){n=Ext.fly(f).selectNode(e.getCellSelector())}if(i){i.scrollIntoView(n||f,!!e,k,j)}if(!a.isEntity){a=d.getRecord(f)}if(m){d.getSelectionModel().select(a)}if(l){d.getNavigationModel().setPosition(a,0)}Ext.callback(g,h||b,[!0,a,f])}else {if(d.bufferedRenderer){d.bufferedRenderer.scrollTo(a,{animate:k,highlight:j,select:m,focus:l,column:e,callback:function(f,e,d){Ext.callback(g,h||b,[!0,e,d])}})}else {Ext.callback(g,h||b,[!1,null])}}},getFocusEl:function(){return this.getView().getFocusEl()},setActionableMode:function(b,c){var a=this.ownerGrid;if(!a.destroying&&a.view.setActionableMode(b,c)!==!1){a.fireEvent('actionablemodechange',b);a[b?'addCls':'removeCls'](a.actionableModeCls);return !0}}}},1,['tablepanel'],['component','box','container','panel','tablepanel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0},['widget.tablepanel'],0,[Ext.panel,'Table'],0);Ext.define('Ext.theme.neptune.panel.Table',{override:'Ext.panel.Table',lockableBodyBorder:!0,initComponent:function(){var a=this;(arguments.callee.$previous||Ext.panel.Panel.prototype.initComponent).call(this);if(!a.hasOwnProperty('bodyBorder')&&!a.hideHeaders&&(a.lockableBodyBorder||!a.lockable)){a.bodyBorder=!0}}});Ext.cmd.derive('Ext.grid.ColumnLayout',Ext.layout.container.HBox,{type:'gridcolumn',firstHeaderCls:'x-column-header-first',lastHeaderCls:'x-column-header-last',initLayout:function(){Ext.layout.container.HBox.prototype.initLayout.call(this);if(this.scrollbarWidth===undefined){this.self.prototype.scrollbarWidth=Ext.getScrollbarSize().width}},beginLayout:function(d){var b=this,j=b.owner,e=b.firstHeaderCls,f=b.lastHeaderCls,h=[e,f],i=b.getVisibleItems(),g=i.length,c,a;Ext.layout.container.HBox.prototype.beginLayout.call(this,d);for(c=0;c0){b=this.getColumns()[a-1]}return b},getNextSibling:function(c){var a=this.getHeaderIndex(c),b;if(a!==-1){b=this.getColumns()[a+1]}return b||null},getFirst:function(){var a=this.getColumns();return a.length>0?a[0]:null},getLast:function(){var a=this.getColumns(),b=a.length;return b>0?a[b-1]:null},getHeaderByDataIndex:function(d){var c=this.getColumns(),e=c.length,a,b;for(a=0;a=d.left&&e=n.getMaxPosition().y-c.all.last(!0).offsetHeight){b.rowIdx--}e=Math.min(b.rowIdx,h.getCount()-1);f=Math.min(f,j.getColumns().length);d=h.getAt(e);i=j.getColumns()[f]}}else {if(k){d=e=null}else {if(g==null){g=a.lastFocused?a.lastFocused.column:0}if(typeof b==='number'){e=Math.max(Math.min(b,h.getCount()-1),0);d=h.getAt(b)}else {if(b.isEntity){d=b;e=h.indexOf(d)}else {if(b.tagName){d=c.getRecord(b);e=h.indexOf(d);if(e===-1){d=null}}else {if(p){return}k=!0;d=e=null}}}}if(d){if(e===-1){a.recordIndex=-1;d=h.getAt(0);e=0;g=null}if(g==null){if(!(i=a.column)){f=0;i=j.getColumns()[0]}}else {if(typeof g==='number'){i=j.getColumns()[g];f=g}else {i=g;f=j.indexOf(g)}}}else {k=!0;i=f=null}}if(e===a.recordIndex&&f===a.columnIndex&&c===a.position.view){return a.focusPosition(a.position)}if(a.cell){a.cell.removeCls(a.focusCls)}a.previousRecordIndex=a.recordIndex;a.previousRecord=a.record;a.previousItem=a.item;a.previousCell=a.cell;a.previousColumn=a.column;a.previousColumnIndex=a.columnIndex;a.previousPosition=a.position.clone();a.selectionStart=m.selectionStart;a.position.setAll(c,a.recordIndex=e,a.columnIndex=f,a.record=d,a.column=i);if(k){a.item=a.cell=null}else {a.focusPosition(a.position,o)}if(!q){m.fireEvent('focuschange',m,a.previousRecord,a.record);c.fireEvent('rowfocus',a.record,a.item,a.recordIndex);c.fireEvent('cellfocus',a.record,a.cell,a.position)}if(l&&!o&&a.cell!==a.previousCell){a.fireNavigateEvent(l)}},focusPosition:function(b){var a=this,c,d;a.item=a.cell=null;if(b&&b.record&&b.column){c=b.view;if(b.rowElement){d=a.item=b.rowElement}else {d=c.getRowByRecord(b.record)}if(d){a.cell=b.cellElement||Ext.fly(d).down(b.column.getCellSelector(),!0);if(a.cell){a.cell=new Ext.dom.Fly(a.cell);c.lastFocused=a.lastFocused=a.position.clone();a.focusItem(a.cell);c.focusEl=a.cell}else {a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null}}else {d=c.dataSource.indexOf(b.record);a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null;if(d!==-1&&c.bufferedRenderer){a.lastKeyEvent=null;c.bufferedRenderer.scrollTo(d,!1,a.afterBufferedScrollTo,a)}}}},focusItem:function(a){a.addCls(this.focusCls);a.focus()},getCell:function(){return this.cell},getPosition:function(f){var c=this,a=c.position,b,e,d;if(a.record&&a.column){if(f){return a}e=a.view;d=e.dataSource;b=d.indexOf(a.record);if(b===-1){b=a.rowIdx;if(!(a.record=d.getAt(b))){b=-1}}if(b===-1||e.getVisibleColumnManager().indexOf(a.column)===-1){a.setAll();c.record=c.column=c.recordIndex=c.columnIndex=null}else {return a}}return null},getLastFocused:function(){var c=this,b,a=c.lastFocused;if(a&&a.record&&a.column){b=a.view;if(b.dataSource.indexOf(a.record)!==-1&&b.getVisibleColumnManager().indexOf(a.column)!==-1){return a}}},onKeyTab:function(a){var e=!a.shiftKey,d=a.position.clone(),g=d.view,f=a.position.cellElement,b=Ext.fly(f).findTabbableElements(),c,i=g.ownerGrid.actionables,j=i.length,h;a.preventDefault();c=b[Ext.Array.indexOf(b,a.target)+(e?1:-1)];while(!c&&(f=f[e?'nextSibling':'previousSibling'])){d.setColumn(g.getHeaderByCell(f));for(h=0;hj.height}a.setProp('viewOverflowY',i)}},measureContentHeight:function(e){var d=this.owner,b=d.body.dom,c=d.emptyEl,a=0;if(c){a+=c.offsetHeight}if(b){a+=b.offsetHeight}if(e.headerContext.state.boxPlan.tooNarrow){a+=Ext.getScrollbarSize().height}return a},flushColumnWidths:function(){var a=this,i=a.layout,d=a.ownerContext,g=a.columnsChanged,h=d.target,j=g.length,b,c,e,f;if(d.state.columnFlusher!==a){return}for(c=0;c0){h+=b;Ext.fly(f[c].el).setHeight(a)}else {g-=b}}a=i.rowHeight+g;if(Ext.isIE9&&d.view.ownerGrid.rowLines){a--}if(d.rowHeight+h=c+d;a--){e[a]=e[a-d];e[a].setAttribute('data-recordIndex',a)}}b.endIndex=b.endIndex+d}else {b.startIndex=c;b.endIndex=c+d-1}for(a=0;ab.endIndex){delete d[a]}}while(a!==f);delete d[a]},getCount:function(){return this.count},slice:function(e,a){var d=this.elements,c=[],b;if(!a){a=this.endIndex}else {a=Math.min(this.endIndex,a-1)}for(b=e||this.startIndex;b<=a;b++){c.push(d[b])}return c},replaceElement:function(a,b,d){var e=this.elements,c=typeof a==='number'?a:this.indexOf(a);if(c>-1){b=Ext.getDom(b);if(d){a=e[c];a.parentNode.insertBefore(b,a);Ext.removeNode(a);b.setAttribute('data-recordIndex',c)}this.elements[c]=b}return this},indexOf:function(b){var c=this.elements,a;b=Ext.getDom(b);for(a=this.startIndex;a<=this.endIndex;a++){if(c[a]===b){return a}}return -1},removeRange:function(g,c,j){var a=this,e=a.elements,i=[],d,b,h,f;if(c==null){c=a.endIndex+1}else {c=Math.min(a.endIndex+1,c+1)}if(g==null){g=a.startIndex}h=c-g;for(b=g,f=c;b<=a.endIndex;b++,f++){d=e[b];if(b=b.startIndex&&f<=b.endIndex){a[a.length]=f}}Ext.Array.sort(a);e=a.length}else {if(ab.endIndex){return}e=1;a=[a]}for(d=g=a[0],c=0;d<=b.endIndex;d++,g++){if(c=b.startIndex){j=h[d]=h[g];j.setAttribute('data-recordIndex',d)}else {delete h[d]}}b.endIndex-=e;b.count-=e},scroll:function(i,t,m){var b=this,e=b.view,p=e.store,c=b.elements,r=i.length,q=e.getNodeContainer(),k=e.hasListeners.itemremove,s=e.hasListeners.itemadd,h=b.statics().range,a,d,o,j,l,n,f,g;if(!i.length){return}if(t===-1){if(m){if(k){f=[];g=[]}n=b.endIndex-m+1;if(h){h.setStartBefore(c[n]);h.setEndAfter(c[b.endIndex]);h.deleteContents();for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}else {for(a=n;a<=b.endIndex;a++){d=c[a];delete c[a];Ext.removeNode(d);if(k){f.push(p.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}}e.fireEvent('itemremove',f,n,g,e);b.endIndex-=m}if(i.length){l=e.bufferRender(i,b.startIndex-=r);j=l.children;for(a=0;a','{[view.renderTHead(values, out, parent)]}','{%','view.renderRows(values.rows, values.columns, values.viewStartIndex, out);','%}','{[view.renderTFoot(values, out, parent)]}','','{% ','view = columns = column = null;','%}',{definitions:'var view, tableCls, columns, i, len, column;',priority:0}],outerRowTpl:['','{%','this.nextTpl.applyOut(values, out, parent)','%}','',{priority:9999}],rowTpl:['{%','var dataRowCls = values.recordIndex === -1 ? "" : " x-grid-row";','%}','','{%','parent.view.renderCell(values, parent.record, parent.recordIndex, parent.rowIndex, xindex - 1, out, parent)','%}','','',{priority:0}],cellTpl:['{tdStyle}"',' tabindex="-1" data-columnid="{[values.column.getItemId()]}">','
    {style}" ','{cellInnerAttr:attributes}>{value}
    ','',{priority:0}],refreshSelmodelOnRefresh:!1,tableValues:{},rowValues:{itemClasses:[],rowClasses:[]},cellValues:{classes:['x-grid-cell x-grid-td']},constructor:function(a){if(a.grid.isTree){a.baseCls='x-tree-view'}Ext.view.View.prototype.constructor.call(this,a)},hasVariableRowHeight:function(b){var a=this;return a.variableRowHeight||a.store.isGrouped()||a.getVisibleColumnManager().hasVariableRowHeight()||!b&&a.lockingPartner&&a.lockingPartner.hasVariableRowHeight(!0)},initComponent:function(){var a=this;if(a.columnLines){a.addCls(a.grid.colLinesCls)}if(a.rowLines){a.addCls(a.grid.rowLinesCls)}a.body=new Ext.dom.Fly();a.body.id=a.id+'gridBody';if(!a.trackOver){a.overItemCls=null}a.headerCt.view=a;a.grid.view=a;a.initFeatures(a.grid);a.itemSelector=a.getItemSelector();a.all=new Ext.view.NodeCache(a);Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(a,f){var d=this,b=d.ownerGrid,e=a.type,c=d.disableSelection||b.disableSelection;if(!f){if(!(a&&a.isSelectionModel)){a=b.selModel||a}}if(a){if(a.isSelectionModel){a.allowDeselect=b.allowDeselect||a.selectionMode!=='SINGLE';a.locked=c}else {if(typeof a==='string'){a={type:a}}else {a.type=b.selType||a.selType||a.type||e}if(!a.mode){if(b.simpleSelect){a.mode='SIMPLE'}else {if(b.multiSelect){a.mode='MULTI'}}}a=Ext.Factory.selection(Ext.apply({allowDeselect:b.allowDeselect,locked:c},a))}}return a},updateSelectionModel:function(b,c){var a=this;if(c){c.un({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});Ext.destroy(a.selModelRelayer)}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});a.selModel=b},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(c,h,j){var b=this,m=j>1,e=m&&document.createRange?document.createRange():null,g=m&&!e?document.createDocumentFragment():null,l=h,p=b.getGridColumns().length,k=p-1,r=(b.firstCls||b.lastCls)&&(h===0||h===p||c===0||c===k),f,i,q,n,d,a,o;if(b.rendered&&h!==c){q=b.el.query(b.rowSelector);for(f=0,n=q.length;f=(a-1)*b&&d.endIndex<=a*b-1){c.get(a);return !1}},onViewScroll:function(a,b,c){if(!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,a,b,c)}},createRowElement:function(e,f,d){var a=this,c=a.renderBuffer,b=a.collectData([e],f);b.columns=d;a.tpl.overwrite(c,b);a.cleanupData();return Ext.fly(c).down(a.getNodeContainerSelector(),!0).firstChild},bufferRender:function(e,f){var c=this,a=c.renderBuffer,b,d=document.createRange?document.createRange():null;c.tpl.overwrite(a,c.collectData(e,f));c.cleanupData();Ext.fly(a).saveTabbableState({skipSelf:!0,includeHidden:!0});a=Ext.fly(a).down(c.getNodeContainerSelector(),!0);if(d){d.selectNodeContents(a);b=d.extractContents()}else {b=document.createDocumentFragment();while(a.firstChild){b.appendChild(a.firstChild)}}return {fragment:b,children:Ext.Array.toArray(b.childNodes)}},collectData:function(c,b){var a=this;a.rowValues.view=a;a.tableValues.view=a;a.tableValues.rows=c;a.tableValues.columns=null;a.tableValues.viewStartIndex=b;a.tableValues.touchScroll=a.touchScroll;a.tableValues.tableStyle='width:'+a.headerCt.getTableWidth()+'px';return a.tableValues},cleanupData:function(){var a=this.tableValues;a.view=a.columns=a.rows=this.rowValues.view=null},refreshSize:function(c){var a=this,b=a.getBodySelector();if(b){a.body.attach(a.el.down(b,!0))}if(!a.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.apply(this,arguments);if(c||a.hasVariableRowHeight()&&a.dataSource.getCount()){a.grid.updateLayout()}Ext.resumeLayouts(!0)}},clearViewEl:function(g){var a=this,b=a.all,i=a.getStore(),d,c,f,h=b.slice(),e=[];if(a.hasListeners.itemremove){for(d=b.startIndex;d<=b.endIndex;d++){e.push(i.getByInternalId(b.item(d,!0).getAttribute('data-recordId')))}}a.fireEvent('itemremove',e,b.startIndex,h,a);Ext.view.View.prototype.clearViewEl.call(this);c=Ext.fly(a.getNodeContainer());if(c&&!g){f=a.getTargetEl();if(f.dom!==c.dom){c.destroy()}}},getMaskTarget:function(){return this.ownerCt.body},statics:{getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},getRecord:function(a){if(this.store.destroyed){return}if(a.isModel){return a}a=this.getNode(a);if(a){return this.dataSource.getByInternalId(a.getAttribute('data-recordId'))}},indexOf:function(a){a=this.getNode(a);if(!a&&a!==0){return -1}return this.all.indexOf(a)},indexInStore:function(a){return a?this.dataSource.indexOf(this.getRecord(a)):-1},indexOfRow:function(a){var c=this.dataSource,b;if(a.isCollapsedPlaceholder){b=c.indexOfPlaceholder(a)}else {b=c.indexOf(a)}return b},renderRows:function(e,g,d,h){var b=this,a=b.rowValues,f=e.length,c;a.view=b;a.columns=g;a.rowRole=b.rowAriaRole;b.cellValues.cellRole=b.cellAriaRole;for(c=0;c');for(a=0;a')}d.push('')},renderRow:function(c,e,j){var a=this,k=e===-1,h=a.selectionModel,b=a.rowValues,d=b.itemClasses,g=b.rowClasses,l=a.itemCls,f,i=a.rowTpl;b.rowAttr={};b.record=c;b.recordId=c.internalId;b.recordIndex=a.store.indexOf(c);b.rowIndex=e;b.rowId=a.getRowId(c);b.itemCls=b.rowCls='';if(!b.columns){b.columns=a.ownerCt.getVisibleColumnManager().getColumns()}d.length=g.length=0;if(!k){d[0]=l;if(!a.ownerCt.disableSelection&&h.isRowSelected){if(h.isRowSelected(c)){d.push(a.selectedItemCls)}}if(a.stripeRows&&e%2!==0){d.push(a.altRowCls)}if(a.getRowClass){f=a.getRowClass(c,e,null,a.dataSource);if(f){g.push(f)}}}if(j){i.applyOut(b,j,a.tableValues)}else {return i.apply(b,a.tableValues)}},renderCell:function(b,f,j,n,m,p){var c=this,l,h=c.selectionModel,a=c.cellValues,d=a.classes,k=f.data[b.dataIndex],o=c.cellTpl,g,e,i=c.navigationModel.getPosition();a.record=f;a.column=b;a.recordIndex=j;a.rowIndex=n;a.columnIndex=a.cellIndex=m;a.align=b.align;a.innerCls=b.innerCls;a.tdCls=a.tdStyle=a.tdAttr=a.style='';a.unselectableAttr=c.enableTextSelection?'':'unselectable="on"';d[1]=b.getCellId();e=2;if(b.renderer&&b.renderer.call){l=c.ownerCt.columnManager.getHeaderIndex(b);g=b.renderer.call(b.usingDefaultRenderer?b:b.scope||c.ownerCt,k,a,f,j,l,c.dataSource,c);if(a.css){f.cssWarning=!0;a.tdCls+=' '+a.css;a.css=null}if(a.tdCls){d[e++]=a.tdCls}}else {g=k}a.value=g==null||g===''?b.emptyCellText:g;if(b.tdCls){d[e++]=b.tdCls}if(c.markDirty&&f.dirty&&f.isModified(b.dataIndex)){d[e++]=c.dirtyCls}if(b.isFirstVisible){d[e++]=c.firstCls}if(b.isLastVisible){d[e++]=c.lastCls}if(!c.enableTextSelection){d[e++]=c.unselectableCls}if(h&&(h.isCellModel||h.isSpreadsheetModel)&&h.isCellSelected(c,j,b)){d[e++]=c.selectedCellCls}if(i&&i.record.id===f.id&&i.column===b){d[e++]=c.focusedItemCls}d.length=e;a.tdCls=d.join(' ');o.applyOut(a,p);a.column=a.record=null},getRow:function(a){var b;if(!a&&a!==0||!this.rendered){return null}if(a.target){a=a.target}if(Ext.isString(a)){return Ext.fly(a).down(this.rowSelector,!0)}if(Ext.isNumber(a)){b=this.all.item(a);return b&&b.down(this.rowSelector,!0)}if(a.isModel){return this.getRowByRecord(a)}b=Ext.fly(a);if(b.is(this.itemSelector)){return this.getRowFromItem(b)}return b.findParent(this.rowSelector,this.getTargetEl())},getRowId:function(a){return this.id+'-record-'+a.internalId},constructRowId:function(a){return this.id+'-record-'+a},getNodeById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!1)},getRowById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!0)},getNodeByRecord:function(a){return this.retrieveNode(this.getRowId(a),!1)},getRowByRecord:function(a){return this.retrieveNode(this.getRowId(a),!0)},getRowFromItem:function(c){var b=Ext.getDom(c).tBodies[0].childNodes,d=b.length,a;for(a=0;a1){A=c._extData;j=a.createRowElement(d,a.indexOfRow(d),f);if(Ext.fly(c,'_internal').hasCls(u)){Ext.fly(j).addCls(u)}if(Ext.isIE9m&&c.mergeAttributes){c.mergeAttributes(j,!0)}else {o=j.attributes;H=o.length;for(l=0;l0){if(Ext.supports.ScrollWidthInlinePaddingBug){e+=c.getCellPaddingAfter(d[0])}if(c.columnLines){e+=Ext.fly(d[0].parentNode).getBorderWidth('lr')}}g.setWidth(1);b.textEl.setStyle({'text-overflow':'clip',display:'table-cell'});a=b.textEl.dom.offsetWidth+b.titleEl.getPadding('lr');b.textEl.setStyle({'text-overflow':'',display:''});for(;fh){return !1}if(d){b.view=d}b.setPosition(a,0)}else {b.navigate(+1)};break;case 'left':if(e.isFirstColumn()){a=d&&c.isNormalView?a:a-1;if(a<0){return !1}if(d){b.view=d;f=d.getVisibleColumnManager().getColumns()}b.setPosition(a,f[f.length-1])}else {b.navigate(-1)};break;case 'up':if(a===0){return !1}else {b.setRow(a-1)};break;case 'down':if(a===h){return !1}else {b.setRow(a+1)};break;}if(g&&g.call(j||c,b)!==!0){return !1}return b},walkRows:function(f,e){var i=this,j=i.dataSource,g=0,d=f,h,b=e<0?0:j.getCount()-1,c=b?1:-1,a=f;do{if(b?a>=b:a<=b){return d||b}a+=c;if((h=Ext.fly(i.getRow(a)))&&h.isVisible(!0)){g+=c;d=a}}while(g!==e);return a},walkRecs:function(h,g){var k=this,a=k.dataSource,i=0,e=h,j,c=g<0?0:(a.isBufferedStore?a.getTotalCount():a.getCount())-1,f=c?1:-1,b=a.indexOf(h),d;do{if(c?b>=c:b<=c){return e}b+=f;d=a.getAt(b);if(!d.isCollapsedPlaceholder&&(j=Ext.fly(k.getNodeByRecord(d)))&&j.isVisible(!0)){i+=f;e=d}}while(i!==g);return e},getFirstVisibleRowIndex:function(){var a=this,c=a.dataSource.isBufferedStore?a.dataSource.getTotalCount():a.dataSource.getCount(),b=a.indexOf(a.all.first())-1;do{b+=1;if(b===c){return}}while(!Ext.fly(a.getRow(b)).isVisible(!0));return b},getLastVisibleRowIndex:function(){var b=this,a=b.indexOf(b.all.last());do{a-=1;if(a===-1){return}}while(!Ext.fly(b.getRow(a)).isVisible(!0));return a},getHeaderCt:function(){return this.headerCt},getPosition:function(b,a){return (new Ext.grid.CellContext(this)).setPosition(b,a)},onDestroy:function(){var a=this,c=a.featuresMC,d,b;if(c){for(b=0,d=c.getCount();b=a.viewSize)){a.onReplace(e,d,[],c)}else {Ext.view.View.prototype.onAdd.apply(this,arguments)}b.setPendingStripe(d)},onRemove:function(f,d,e){var a=this,b=a.bufferedRenderer,c;if(a.rendered&&b&&a.dataSource.getCount()+d.length>=b.viewSize){c=a.saveFocusState();b.onReplace(f,e,d,[]);c()}else {Ext.view.View.prototype.onRemove.apply(this,arguments)}a.setPendingStripe(e)},saveFocusState:function(){var b=this,g=b.dataSource,c=b.actionableMode,d=b.getNavigationModel(),a=c?b.actionPosition:d.getPosition(!0),f,e;if(a){a=a.clone();if(c){b.ownerGrid.setActionableMode(!1)}b.el.dom.focus();d.setPosition();return function(){if(g.getCount()){f=Math.min(a.rowIdx,b.all.getCount()-1);e=Math.min(a.colIdx,b.getVisibleColumnManager().getColumns().length-1);a=(new Ext.grid.CellContext(b)).setPosition(g.contains(a.record)?a.record:f,e);if(c){b.ownerGrid.setActionableMode(!0,a)}else {b.cellFocused=!0;d.setPosition(a,null,null,null,!0)}}else {a.column.focus()}}}return Ext.emptyFn},onDataRefresh:function(c){var b=this,a=b.ownerCt;if(a&&a.isCollapsingOrExpanding===2){a.on('expand',b.onDataRefresh,b,{single:!0});return}Ext.view.View.prototype.onDataRefresh.call(this,c)},getViewRange:function(){var a=this;if(a.bufferedRenderer){return a.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(b){var a=this.stripeOnUpdate;if(a===null){a=b}else {a=Math.min(a,b)}this.stripeOnUpdate=a},onEndUpdate:function(){var b=this,a=b.stripeOnUpdate,c=b.all.startIndex;if(b.rendered&&(a||a===0)){if(a-1)&&!g;b=b+(c?1:-1)){o=n[b];e.setColumn(o);k=Ext.fly(d).down(e.column.getCellSelector());for(h=0;hj;e=f?1:0;d=a.getGridColumns();for(c=0,i=d.length;c=0&&b<=a.view.dataSource.getCount()){if(e){c=a.down(':focusable:not([isButton]):first');d.column.getView().getScrollable().scrollIntoView(d.ownerCt.child(':focusable').el)}else {c=a.down(':focusable:not([isButton]):last')}a.editingPlugin.startEdit(b,c.column)}}}},destroyColumnEditor:function(a){var b;if(a.hasEditor()&&(b=a.getEditor())){b.destroy()}},getFloatingButtons:function(){var a=this,b=a.floatingButtons;if(!b){a.floatingButtons=b=new Ext.grid.RowEditorButtons({ownerCmp:a,rowEditor:a})}return b},repositionIfVisible:function(b){var a=this,c=a.view;if(b&&(b===a||!b.el.isAncestor(c.el))){return}if(a.isVisible()&&c.isVisible(!0)){a.reposition()}},isLayoutChild:function(a){return !1},getRefOwner:function(){return this.editingPlugin.grid},getRefItems:function(c){var b=this,a;if(b.lockable){a=[b.lockedColumnContainer];a.push.apply(a,b.lockedColumnContainer.getRefItems(c));a.push(b.normalColumnContainer);a.push.apply(a,b.normalColumnContainer.getRefItems(c))}else {a=Ext.form.Panel.prototype.getRefItems.apply(this,arguments)}a.push.apply(a,b.getFloatingButtons().getRefItems(c));return a},reposition:function(c,j){var a=this,d=a.context,g=d&&d.row,i=a.wrapEl,h,f,e,b;if(g&&Ext.isElement(g)){e=a.syncButtonPosition(a.getScrollDelta());h=a.calculateLocalRowTop(g);f=a.calculateEditorTop(h);if(!j){b=function(){if(e){a.scrollingViewEl.scrollBy(0,e,!0)}a.focusColumnField(d.column)}}a.syncEditorClip();if(c){i.animate(Ext.applyIf({to:{top:f},duration:c.duration||125,callback:b},c))}else {i.setLocalY(f);if(b){b()}}}},getScrollDelta:function(){var b=this,d=b.scrollingViewEl.dom,e=b.context,c=b.body,a=0;if(e){a=Ext.fly(e.row).getOffsetsTo(d)[1];if(a<0){a-=c.getBorderPadding().beforeY}else {if(a>0){a=Math.max(a+b.getHeight()+b.floatingButtons.getHeight()-d.clientHeight-c.getBorderWidth('b'),0);if(a>0){a-=c.getBorderPadding().afterY}}}}return a},calculateLocalRowTop:function(b){var a=this.editingPlugin.grid;return Ext.fly(b).getOffsetsTo(a)[1]-a.el.getBorderWidth('t')+this.lastScrollTop},calculateEditorTop:function(a){return a-this.body.getBorderPadding().beforeY-this.lastScrollTop},getClientWidth:function(){var c=this,b=c.editingPlugin.grid,a;if(c.lockable){a=b.lockedGrid.getWidth()+b.normalGrid.view.el.dom.clientWidth}else {a=b.view.el.dom.clientWidth}return a},getEditor:function(a){var b=this;if(Ext.isNumber(a)){return b.query('[isEditorComponent]')[a]}else {if(a.isHeader&&!a.isGroupHeader){return a.getEditor()}}},addFieldsForColumn:function(a,e){var b=this,d,f,c;if(Ext.isArray(a)){for(d=0,f=a.length;ddisplayfield');d=e.length;for(a=0;a0){if(!a._buttonsOnTop){b.setButtonPosition('top');a._buttonsOnTop=!0}d=0}else {if(a._buttonsOnTop!==!1){b.setButtonPosition('bottom');a._buttonsOnTop=!1}else {b.setButtonPosition(b.position)}}return d},syncEditorClip:function(){var a=this,b=a.getScrollDelta(),h=a.el,i=a.floatingButtons,c=i.el,g=Math.max,f,e,d;if(b){a.isOverflowing=!0;f=a.body;e=i.getHeight();d=a.getHeight();g=Math.max;if(b>0){if(a._buttonsOnTop){b-=e-f.getBorderWidth('b');a.clipBottom(h,g(d-b),0);b-=d-f.getBorderWidth('t');if(b>0){a.clipBottom(c,g(e-b,0))}else {a.clearClip(c)}}else {a.clipBottom(c,g(e-b,0));b-=e-f.getBorderWidth('b');if(b>0){a.clipBottom(h,g(d-b,0))}else {a.clearClip(h)}}}else {if(b<0){b=Math.abs(b);a.clipTop(h,b);b-=d-f.getBorderWidth('b');if(b>0){a.clipTop(c,b)}else {a.clearClip(c)}}}}else {if(a.isOverflowing){a.clearClip(c);a.clearClip(h);a.isOverflowing=!1}}},focusColumnField:function(a){var b,c;if(a&&!a.destroyed){if(a.isVisible()){b=this.getEditor(a);if(b&&b.isFocusable(!0)){c=!0;b.focus()}}if(!c){this.focusColumnField(a.next())}}},cancelEdit:function(){var b=this,d=b.getForm(),f=d.getFields(),c=f.items,e=c.length,a;if(b._cachedNode){b.clearCache()}b.hide();d.clearInvalid();for(a=0;ae&&f[isFormField]'),g=f.length,c,d,e;for(c=0;c'+b.join('')+''},createErrorListItem:function(a,b){a=b?b+': '+a:a;return '
  • '+a+'
  • '},beforeDestroy:function(){Ext.destroy(this.floatingButtons,this.tooltip);Ext.form.Panel.prototype.beforeDestroy.call(this)},clipBottom:function(b,a){b.setStyle('clip','rect(0 auto '+a+'px 0)')},clipTop:function(b,a){b.setStyle('clip','rect('+a+'px, auto, auto, 0)')},clearClip:function(a){a.setStyle('clip',Ext.isIE8?'rect(-1000px auto 1000px auto)':'auto')}},0,['roweditor'],['component','box','container','panel','form','roweditor'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'roweditor':!0},['widget.roweditor'],0,[Ext.grid,'RowEditor'],0);Ext.define('Ext.theme.neptune.grid.RowEditor',{override:'Ext.grid.RowEditor',buttonUI:'default-toolbar'});Ext.cmd.derive('Ext.view.DropZone',Ext.dd.DropZone,{indicatorCls:'x-grid-drop-indicator',indicatorHtml:['',''].join(''),constructor:function(b){var a=this;Ext.apply(a,b);if(!a.ddGroup){a.ddGroup='view-dd-zone-'+a.view.id}Ext.dd.DropZone.prototype.constructor.call(this,a.view.el)},fireViewEvent:function(){var a=this,b;a.lock();b=a.view.fireEvent.apply(a.view,arguments);a.unlock();return b},getTargetFromEvent:function(h){var e=h.getTarget(this.view.getItemSelector()),d,b,c,a,g,f;if(!e){d=h.getY();for(a=0,b=this.view.getNodes(),g=b.length;a=(a.bottom-a.top)/2){b='before'}else {b='after'}return b},containsRecordAtOffset:function(f,d,g){if(!d){return !1}var a=this.view,e=a.indexOf(d),c=a.getNode(e+g),b=c?a.getRecord(c):null;return b&&Ext.Array.contains(f,b)},positionIndicator:function(f,h,i){var a=this,c=a.view,d=a.getPosition(i,f),b=c.getRecord(f),g=h.records,e;if(!Ext.Array.contains(g,b)&&(d==='before'&&!a.containsRecordAtOffset(g,b,-1)||d==='after'&&!a.containsRecordAtOffset(g,b,1))){a.valid=!0;if(a.overRecord!==b||a.currentPosition!==d){e=Ext.fly(f).getY()-c.el.getY()-1;if(d==='after'){e+=Ext.fly(f).getHeight()}if(c.touchScroll===2){e+=c.getScrollY()}a.getIndicator().setWidth(Ext.fly(c.el).getWidth()).showAt(0,e);a.overRecord=b;a.currentPosition=d}}else {a.invalidateDrop()}},invalidateDrop:function(){if(this.valid){this.valid=!1;this.getIndicator().hide()}},onNodeOver:function(c,e,d,b){var a=this;if(!Ext.Array.contains(b.records,a.view.getRecord(c))){a.positionIndicator(c,b,d)}return a.valid?a.dropAllowed:a.dropNotAllowed},notifyOut:function(d,b,e,c){var a=this;Ext.dd.DropZone.prototype.notifyOut.apply(this,arguments);a.overRecord=a.currentPosition=null;a.valid=!1;if(a.indicator){a.indicator.hide()}},onContainerOver:function(f,e,d){var a=this,b=a.view,c=b.dataSource.getCount();if(c){a.positionIndicator(b.all.last(),d,e)}else {a.overRecord=a.currentPosition=null;a.getIndicator().setWidth(Ext.fly(b.el).getWidth()).showAt(0,0);a.valid=!0}return a.dropAllowed},onContainerDrop:function(b,c,a){return this.onNodeDrop(b,null,c,a)},onNodeDrop:function(f,g,h,e){var a=this,d=!1,c={wait:!1,processDrop:function(){a.invalidateDrop();a.handleNodeDrop(e,a.overRecord,a.currentPosition);d=!0;a.fireViewEvent('drop',f,e,a.overRecord,a.currentPosition)},cancelDrop:function(){a.invalidateDrop();d=!0}},b=!1;if(a.valid){b=a.fireViewEvent('beforedrop',f,e,a.overRecord,a.currentPosition,c);if(c.wait){return}if(b!==!1){if(!d){c.processDrop()}}}return b},destroy:function(){this.indicator=Ext.destroy(this.indicator);Ext.dd.DropZone.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.view,'DropZone'],0);Ext.cmd.derive('Ext.grid.ViewDropZone',Ext.view.DropZone,{indicatorHtml:'',indicatorCls:'x-grid-drop-indicator',handleNodeDrop:function(a,h,g){var b=this.view,f=b.getStore(),e,d,c,i;if(a.copy){d=a.records;a.records=[];for(c=0,i=d.length;c=0&&!(b.isGroupHeader&&(!b.items||!b.items.length))&&h!==c){i=a.isGroupHeader?a.query(':not([hidden]):not([isGroupHeader])').length:1;if(h<=c&&i>1){c-=i}d.getRootHeaderCt().grid.view.moveColumn(h,c,i)}p.fireEvent('columnmove',e,a,h,c);e.isDDMoveInGrid=d.isDDMoveInGrid=!1;if(d.isGroupHeader&&!e.isGroupHeader){if(e!==d){a.savedFlex=a.flex;delete a.flex;a.width=o}}else {if(!e.isGroupHeader){if(a.savedFlex){a.flex=a.savedFlex;delete a.width}}}Ext.resumeLayouts(!0)}}},1,0,0,0,0,0,[Ext.grid.header,'DropZone'],0);Ext.cmd.derive('Ext.grid.plugin.HeaderReorderer',Ext.plugin.Abstract,{init:function(a){this.headerCt=a;a.on({boxready:this.onHeaderCtRender,single:!0,scope:this})},destroy:function(){var a=this;a.headerCt.un('boxready',a.onHeaderCtRender,a);Ext.destroy(a.dragZone,a.dropZone);a.headerCt=a.dragZone=a.dropZone=null;Ext.plugin.Abstract.prototype.destroy.call(this)},onHeaderCtRender:function(){var a=this;a.dragZone=new Ext.grid.header.DragZone(a.headerCt);a.dropZone=new Ext.grid.header.DropZone(a.headerCt);if(a.disabled){a.dragZone.disable()}},enable:function(){this.disabled=!1;if(this.dragZone){this.dragZone.enable()}},disable:function(){this.disabled=!0;if(this.dragZone){this.dragZone.disable()}}},0,0,0,0,['plugin.gridheaderreorderer'],0,[Ext.grid.plugin,'HeaderReorderer'],0);Ext.cmd.derive('Ext.grid.header.Container',Ext.container.Container,{border:!0,baseCls:'x-grid-header-ct',dock:'top',weight:100,defaultType:'gridcolumn',detachOnRemove:!1,defaultWidth:100,sortAscText:'Sort Ascending',sortDescText:'Sort Descending',sortClearText:'Clear Sort',columnsText:'Columns',headerOpenCls:'x-column-header-open',menuSortAscCls:'x-hmenu-sort-asc',menuSortDescCls:'x-hmenu-sort-desc',menuColsIcon:'x-cols-icon',blockEvents:!1,dragging:!1,sortOnClick:!0,enableFocusableContainer:!1,childHideCount:0,sortable:!0,enableColumnHide:!0,initComponent:function(){var a=this;a.plugins=a.plugins||[];a.defaults=a.defaults||{};if(!a.isColumn){if(a.enableColumnResize){a.resizer=new Ext.grid.plugin.HeaderResizer();a.plugins.push(a.resizer)}if(a.enableColumnMove){a.reorderer=new Ext.grid.plugin.HeaderReorderer();a.plugins.push(a.reorderer)}}if(a.isColumn&&!a.isGroupHeader){if(!a.items||a.items.length===0){a.isContainer=a.isFocusableContainer=!1;a.focusable=!0;a.layout={type:'container',calculate:Ext.emptyFn}}}else {a.layout=Ext.apply({type:'gridcolumn',align:'stretch'},a.initialConfig.layout);a.defaults.columnLines=a.columnLines;if(!a.isGroupHeader){a.isRootHeader=!0;if(!a.hiddenHeaders){a.enableFocusableContainer=!0;a.ariaRole='rowgroup'}a.columnManager=new Ext.grid.ColumnManager(!1,a);a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);if(a.grid){a.grid.columnManager=a.columnManager;a.grid.visibleColumnManager=a.visibleColumnManager}}else {a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);a.columnManager=new Ext.grid.ColumnManager(!1,a)}}a.menuTask=new Ext.util.DelayedTask(a.updateMenuDisabledState,a);Ext.container.Container.prototype.initComponent.call(this)},insertNestedHeader:function(d){var b=this,e=d.ownerCt,f=b.ownerCt,c=f.layout.owner,a;if(e){if(b.isGroupHeader&&!f.isNestedParent){a=c.items.indexOf(b)}e.remove(d,!1)}if(a===undefined){a=c.items.indexOf(b)}c.insert(a,d)},isNested:function(){return !!this.getRootHeaderCt().down('[isNestedParent]')},isNestedGroupHeader:function(){var a=this,b=a.getRefOwner().query('>:not([hidden])');return b.length===1&&b[0]===a},maybeShowNestedGroupHeader:function(){var a=this.items,b;if(a&&a.length===1&&(b=a.getAt(0))&&b.hidden){b.show()}},setNestedParent:function(a){a.isNestedParent=!1;a.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&a.ownerCt.items.length===1)},initEvents:function(){var a=this,b,c;Ext.container.Container.prototype.initEvents.call(this);if(!a.isColumn&&!a.isGroupHeader){b=a.onHeaderCtEvent;c={click:b,dblclick:b,contextmenu:b,mouseover:a.onHeaderCtMouseOver,mouseout:a.onHeaderCtMouseOut,scope:a};if(Ext.supports.Touch){c.longpress=a.onHeaderCtLongPress}a.mon(a.el,c)}},onHeaderCtEvent:function(a,g){var c=this,f=c.getHeaderElByEvent(a),b,e,d;if(c.longPressFired){c.longPressFired=!1;return}if(f&&!c.blockEvents){b=Ext.getCmp(f.id);if(b){e=b[b.clickTargetName];if(!b.isGroupHeader&&!b.isContainer||a.within(e)){if(a.type==='click'||a.type==='tap'){d=b.onTitleElClick(a,e,c.sortOnClick);if(d){c.onHeaderTriggerClick(d,a,a.pointerType==='touch'?d.el:d.triggerEl)}else {c.onHeaderClick(b,a,g)}}else {if(a.type==='contextmenu'){c.onHeaderContextMenu(b,a,g)}else {if(a.type==='dblclick'&&b.resizable){b.onTitleElDblClick(a,e.dom)}}}}}}},blockNextEvent:function(){this.blockEvents=!0;Ext.asap(this.unblockEvents,this)},unblockEvents:function(){this.blockEvents=!1},onHeaderCtMouseOver:function(b,e){var c,a,d;if(!b.within(this.el,!0)){c=b.getTarget('.'+Ext.grid.column.Column.prototype.baseCls);a=c&&Ext.getCmp(c.id);if(a){d=a[a.clickTargetName];if(b.within(d)){a.onTitleMouseOver(b,d.dom)}}}},onHeaderCtMouseOut:function(c,g){var f='.'+Ext.grid.column.Column.prototype.baseCls,d=c.getTarget(f),e=c.getRelatedTarget(f),a,b;if(d!==e){if(d){a=Ext.getCmp(d.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOut(c,b.dom)}}if(e){a=Ext.getCmp(e.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOver(c,b.dom)}}}},onHeaderCtLongPress:function(d){var a=this,b=a.getHeaderElByEvent(d),c=Ext.getCmp(b.id);if(!c.menuDisabled){a.longPressFired=!0;a.showMenuBy(d,b,c)}},getHeaderElByEvent:function(a){return a.getTarget('.'+Ext.grid.column.Column.prototype.baseCls)},isLayoutRoot:function(){if(this.hiddenHeaders){return !1}return Ext.container.Container.prototype.isLayoutRoot.call(this)},getRootHeaderCt:function(){var a=this;return a.isRootHeader?a:a.up('[isRootHeader]')},onDestroy:function(){var a=this;if(a.menu){a.menu.un('hide',a.onMenuHide,a)}a.menuTask.cancel();Ext.container.Container.prototype.onDestroy.call(this);Ext.destroy(a.visibleColumnManager,a.columnManager,a.menu);a.columnManager=a.visibleColumnManager=null},applyColumnsState:function(h,n){if(!h||!h.length){return}var f=this,m=f.items.items,o=m.length,b=0,i=h.length,g,e,a,d,k=!1,c=[],l={},j=[];for(g=0;g=a.visibleFromIdx){b++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(a.isGroupHeader){c=a.visibleColumnManager.getColumns().length}d.onHeaderMoved(a,c,a.visibleFromIdx,b)},maybeContinueRemove:function(){var a=this;return a.isGroupHeader&&!a.applyingState&&!a.isNestedParent&&a.ownerCt&&!a.items.getCount()},onRemove:function(b,c){var a=this,d=a.ownerCt,e=b.lastHiddenHeader;Ext.container.Container.prototype.onRemove.call(this,b,c);if(!a.destroying){if(!a.isDDMoveInGrid){a.onHeadersChanged(b,!1)}if(a.maybeContinueRemove()){if(b.rendered){a.detachComponent(b)}Ext.suspendLayouts();d.remove(a);Ext.resumeLayouts(!0)}}},onHeadersChanged:function(c,d){var b,a=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(a){a.onColumnsChanged();if(!c.isGroupHeader){b=a.ownerCt;if(b&&!d){b.onHeadersChanged(a,c)}}}},onHeaderMoved:function(d,f,c,e){var a=this,b=a.ownerCt;if(a.rendered){if(b&&b.onHeaderMove){b.onHeaderMove(a,d,f,c,e)}a.fireEvent('columnmove',a,d,c,e)}},onColumnsChanged:function(){var a=this,b=a.menu,c,d;if(a.rendered){a.fireEvent('columnschanged',a);if(b&&(c=b.child('#columnItemSeparator'))){d=b.child('#columnItem');c.destroy();d.destroy()}}},lookupComponent:function(b){var a=Ext.container.Container.prototype.lookupComponent.apply(this,arguments);if(!a.isGroupHeader&&a.width===undefined&&!a.flex){a.width=this.defaultWidth}return a},setSortState:function(){var e=this.up('[store]').store,d=this.visibleColumnManager.getColumns(),f=d.length,c,b,a;for(c=0;cgridcolumn[hideable]'),g=e.length,d;for(;cj.el.dom.clientHeight?Ext.getScrollbarSize().width:0),n=0,e=k.getVisibleGridColumns(),o=b.hidden,f,c,a,g,d;function getTotalFlex(){for(c=0,f=e.length;cg){b.width=g;l=!0}else {b.width=d;h-=d+m;getTotalFlex()}applyWidth();Ext.resumeLayouts(!0)},autoSizeColumn:function(a){var b=this.view;if(b){b.autoSizeColumn(a);if(this.forceFit){this.applyForceFit(a)}}},getRefItems:function(b){var a=Ext.container.Container.prototype.getRefItems.call(this,b);if(this.menu){a.push(this.menu)}return a},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},createFocusableContainerKeyNav:function(b){var a=this;return new Ext.util.KeyNav(b,{scope:a,down:a.showHeaderMenu,left:a.onFocusableContainerLeftKey,right:a.onFocusableContainerRightKey,home:a.onHomeKey,end:a.onEndKey,space:a.onHeaderActivate,enter:a.onHeaderActivate})},onHomeKey:function(a){return this.focusChild(null,!0,a)},onEndKey:function(a){return this.focusChild(null,!1,a)},showHeaderMenu:function(b){var a=this.getFocusableFromEvent(b);if(a&&a.isColumn&&a.triggerEl){this.onHeaderTriggerClick(a,b,a.triggerEl)}},onHeaderActivate:function(d){var a=this.getFocusableFromEvent(d),c,b;if(a&&a.isColumn){c=a.getView();if(a.sortable&&this.sortOnClick){b=c.getNavigationModel().getLastFocused();a.toggleSortState();if(b){c.ownerCt.ensureVisible(b.record)}}this.onHeaderClick(a,d,a.el)}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else {a.focus()}}}},0,['headercontainer'],['component','box','container','headercontainer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0},['widget.headercontainer'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.grid.header,'Container'],0);Ext.cmd.derive('Ext.grid.column.Column',Ext.grid.header.Container,{alternateClassName:'Ext.grid.Column',config:{triggerVisible:!1,sorter:null},baseCls:'x-column-header',hoverCls:'x-column-header-over',ariaRole:'columnheader',enableFocusableContainer:!1,sortState:null,possibleSortStates:['ASC','DESC'],ariaSortStates:{ASC:'ascending',DESC:'descending'},childEls:['titleEl','triggerEl','textEl','textContainerEl'],headerWrap:!1,renderTpl:['','{%this.renderContainer(out,values)%}'],dataIndex:null,text:' ',menuText:null,emptyCellText:' ',sortable:!0,resizable:!0,hideable:!0,menuDisabled:!1,renderer:!1,align:'left',draggable:!0,tooltipType:'qtip',initDraggable:Ext.emptyFn,tdCls:'',producesHTML:!0,ignoreExport:!1,isHeader:!0,isColumn:!0,tabIndex:-1,ascSortCls:'x-column-header-sort-ASC',descSortCls:'x-column-header-sort-DESC',componentLayout:'columncomponent',groupSubHeaderCls:'x-group-sub-header',groupHeaderCls:'x-group-header',clickTargetName:'titleEl',detachOnRemove:!0,initResizable:Ext.emptyFn,rendererNames:{column:'renderer',edit:'editRenderer',summary:'summaryRenderer'},formatterNames:{column:'formatter',edit:'editFormatter',summary:'summaryFormatter'},initComponent:function(){var a=this;if(!a.rendererScope){a.rendererScope=a.scope}if(a.header!=null){a.text=a.header;a.header=null}if(a.cellWrap){a.tdCls=(a.tdCls||'')+' x-wrap-cell'}if(a.columns!=null){a.isGroupHeader=!0;a.ariaRole='presentation';a.items=a.columns;a.columns=a.flex=a.width=null;a.cls=(a.cls||'')+' '+a.groupHeaderCls;a.sortable=a.resizable=!1;a.align='center'}else {if(a.flex){a.minWidth=a.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}a.addCls('x-column-header-align-'+a.align);a.setupRenderer();a.setupRenderer('edit');a.setupRenderer('summary');Ext.grid.header.Container.prototype.initComponent.apply(this,arguments)},onAdded:function(e,g,f){var a=this,c,d,b;Ext.grid.header.Container.prototype.onAdded.call(this,e,g,f);if(!a.headerId){d=a.up('tablepanel');b=d?d.ownerGrid:a.getRootHeaderCt();b.headerCounter=(b.headerCounter||0)+1;a.headerId='h'+b.headerCounter}if(!a.stateId){a.stateId=a.initialConfig.id||a.headerId}c=a.getSorter();if(c&&!c.initialConfig.id){c.setId((a.dataIndex||a.stateId)+'-sorter')}},applySorter:function(a){return this.getRootHeaderCt().up('tablepanel').store.getData().getSorters().decodeSorter(a)},bindFormatter:function(a){var b=this;return function(c){return a.format(c,a.scope||b.rendererScope||b.resolveListenerScope())}},bindRenderer:function(b){var a=this;a.hasCustomRenderer=!0;return function(){return Ext.callback(b,a.rendererScope,arguments,0,a)}},setupRenderer:function(c){c=c||'column';var a=this,b=a[a.formatterNames[c]],d=a[a.rendererNames[c]],f=c==='column',e,g;if(!b){if(d){if(typeof d==='string'){d=a[a.rendererNames[c]]=a.bindRenderer(d);g=!0}if(f){a.hasCustomRenderer=g||d.length>1}}else {if(f&&a.defaultRenderer){a.renderer=a.defaultRenderer;a.usingDefaultRenderer=!0}}}else {e=b.indexOf('this.')===0;if(e){b=b.substring(5)}b=Ext.app.bind.Template.prototype.parseFormat(b);a[a.formatterNames[c]]=null;if(e){b.scope=null}a[a.rendererNames[c]]=a.bindFormatter(b)}},getView:function(){var a=this.getRootHeaderCt();if(a){return a.view}},onFocusLeave:function(a){Ext.grid.header.Container.prototype.onFocusLeave.call(this,a);if(this.activeMenu){this.activeMenu.hide()}},initItems:function(){var a=this;Ext.grid.header.Container.prototype.initItems.apply(this,arguments);if(a.isGroupHeader){if(a.config.hidden||!a.hasVisibleChildColumns()){a.hide()}}},hasVisibleChildColumns:function(){var c=this.items.items,d=c.length,a,b;for(a=0;agridcolumn:not([hidden]):not([menuDisabled])');c=a.length;if(Ext.Array.contains(a,b.hideCandidate)){c--}if(c){return !1}b.hideCandidate=this},isLockable:function(){var a={result:this.lockable!==!1};if(a.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[a])}return a.result},isLocked:function(){return this.locked||!!this.up('[isColumn][locked]','[isRootHeader]')},hasMultipleVisibleChildren:function(a){if(!this.isXType('headercontainer')){a.result=!1;return !1}if(this.query('>gridcolumn:not([hidden])').length>1){return !1}},hide:function(){var a=this,b=a.getRootHeaderCt(),c=a.getRefOwner();if(c.constructing){Ext.grid.header.Container.prototype.hide.call(this);return a}if(a.rendered&&!a.isVisible()){return a}if(b.forceFit){a.visibleSiblingCount=b.getVisibleGridColumns().length-1;if(a.flex){a.savedWidth=a.getWidth();a.flex=null}}b.beginChildHide();Ext.suspendLayouts();if(c.isGroupHeader){if(a.isNestedGroupHeader()){c.hide()}if(a.isSubHeader&&!a.isGroupHeader&&c.query('>gridcolumn:not([hidden])').length===1){c.lastHiddenHeader=a}}Ext.grid.header.Container.prototype.hide.call(this);b.endChildHide();b.onHeaderHide(a);Ext.resumeLayouts(!0);return a},show:function(){var a=this,c=a.getRootHeaderCt(),b=a.getRefOwner();if(a.isVisible()){return a}if(b.isGroupHeader){b.lastHiddenHeader=null}if(a.rendered){if(c.forceFit){c.applyForceFit(a)}}Ext.suspendLayouts();if(a.isSubHeader&&b.hidden){b.show(!1,!0)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(a.isGroupHeader){a.maybeShowNestedGroupHeader()}b=a.getRootHeaderCt();if(b){b.onHeaderShow(a)}Ext.resumeLayouts(!0);return a},shouldUpdateCell:function(d,b){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(b){var e=b.length,a,c;for(a=0;aActions',ignoreExport:!0,sortable:!1,innerCls:'x-grid-cell-inner-action-col',actionIconCls:'x-action-col-icon',constructor:function(g){var a=this,b=Ext.apply({},g),d=b.items||a.items||[a],e,c,f;a.origRenderer=b.renderer||a.renderer;a.origScope=b.scope||a.scope;a.renderer=a.scope=b.renderer=b.scope=null;b.items=null;Ext.grid.column.Column.prototype.constructor.call(this,b);a.items=d;for(c=0,f=d.length;c':'>')}return h},updater:function(e,d,c,f,b){var a={};Ext.fly(e).addCls(a.tdCls).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(d,a,c,null,null,b,f)},enableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!1;b.up('tablepanel').el.select('.x-action-col-'+a).removeCls(b.disabledCls);if(!c){b.fireEvent('enable',b)}},disableAction:function(a,c){var b=this;if(!a){a=0}else {if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}}b.items[a].disabled=!0;b.up('tablepanel').el.select('.x-action-col-'+a).addCls(b.disabledCls);if(!c){b.fireEvent('disable',b)}},beforeDestroy:function(){this.renderer=this.items=null;return Ext.grid.column.Column.prototype.beforeDestroy.apply(this,arguments)},processEvent:function(f,g,n,h,i,d,l,o){var b=this,c=d.getTarget(),e=f==='keydown'&&d.getKey(),m,a,j,k=Ext.fly(n);d.stopSelection=!e&&b.stopSelection;if(e&&(c===n||!k.contains(c))){c=k.query('.'+b.actionIconCls,!0);if(c.length===1){c=c[0]}else {return}}if(c&&(m=c.className.match(b.actionIdRe))){a=b.items[parseInt(m[1],10)];j=a.disabled||(a.isDisabled?a.isDisabled.call(a.scope||b.origScope||b,g,h,i,a,l):!1);if(a&&!j){if(f==='mousedown'&&!b.getView().actionableMode){d.preventDefault()}else {if(f==='click'||(e===d.ENTER||e===d.SPACE)){Ext.callback(a.handler||b.handler,a.scope||b.origScope,[g,h,i,a,d,l,o],undefined,b);if(!g.el.contains(Ext.Element.getActiveElement())){return !1}}}}}return Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)},cascade:function(b,a){b.call(a||this,this)},getRefItems:function(){return []},privates:{getFocusables:function(){return []},shouldUpdateCell:function(){return 2}}},1,['actioncolumn'],['component','box','container','headercontainer','gridcolumn','actioncolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'actioncolumn':!0},['widget.actioncolumn'],0,[Ext.grid.column,'Action',Ext.grid,'ActionColumn'],0);Ext.cmd.derive('Ext.grid.column.Check',Ext.grid.column.Column,{alternateClassName:['Ext.ux.CheckColumn','Ext.grid.column.CheckColumn'],align:'center',ignoreExport:!0,stopSelection:!0,tdCls:'x-grid-cell-checkcolumn',innerCls:'x-grid-cell-inner-checkcolumn',clickTargetName:'el',defaultFilterType:'boolean',constructor:function(){this.scope=this;Ext.grid.column.Column.prototype.constructor.apply(this,arguments)},processEvent:function(h,n,k,e,m,b,g,l){var a=this,d=h==='keydown'&&b.getKey(),f=h==='mousedown',j=a.disabled,i,c;b.stopSelection=!d&&a.stopSelection;if(!j&&(f||(d===b.ENTER||d===b.SPACE))){c=!a.isRecordChecked(g);if(a.fireEvent('beforecheckchange',a,e,c)!==!1){a.setRecordCheck(g,c,k,l,b);a.fireEvent('checkchange',a,e,c);if(f&&!a.getView().actionableMode){b.preventDefault()}}}else {i=Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)}return i},onEnable:function(){Ext.grid.column.Column.prototype.onEnable.apply(this,arguments);this._setDisabled(!1)},onDisable:function(){this._setDisabled(!0)},_setDisabled:function(d){var b=this,c=b.disabledCls,a;a=b.up('tablepanel').el.select(b.getCellSelector());if(d){a.addCls(c)}else {a.removeCls(c)}},defaultRenderer:function(d,c){var a='x-',b=a+'grid-checkcolumn';if(this.disabled){c.tdCls+=' '+this.disabledCls}if(d){b+=' '+a+'grid-checkcolumn-checked'}return '
    '},isRecordChecked:function(a){var b=this.property;if(b){return a[b]}return a.get(this.dataIndex)},setRecordCheck:function(c,a,e,f,g){var b=this,d=b.property;if(d){c[d]=a;b.updater(e,a)}else {c.set(b.dataIndex,a)}},updater:function(a,b){a=Ext.fly(a);a[this.disabled?'addCls':'removeCls'](this.disabledCls);Ext.fly(a.down(this.getView().innerSelector,!0).firstChild)[b?'addCls':'removeCls']('x-grid-checkcolumn-checked')}},1,['checkcolumn'],['component','box','container','headercontainer','gridcolumn','checkcolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'checkcolumn':!0},['widget.checkcolumn'],0,[Ext.grid.column,'Check',Ext.ux,'CheckColumn',Ext.grid.column,'CheckColumn'],0);Ext.cmd.derive('Ext.grid.column.Date',Ext.grid.column.Column,{alternateClassName:'Ext.grid.DateColumn',isDateColumn:!0,defaultFilterType:'date',producesHTML:!1,initComponent:function(){if(!this.format){this.format=Ext.Date.defaultFormat}Ext.grid.column.Column.prototype.initComponent.apply(this,arguments)},defaultRenderer:function(a){return Ext.util.Format.date(a,this.format)},updater:function(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Date.prototype.defaultRenderer.call(this,a)}},0,['datecolumn'],['component','box','container','headercontainer','gridcolumn','datecolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'datecolumn':!0},['widget.datecolumn'],0,[Ext.grid.column,'Date',Ext.grid,'DateColumn'],0);Ext.cmd.derive('Ext.grid.column.Number',Ext.grid.column.Column,{alternateClassName:'Ext.grid.NumberColumn',defaultFilterType:'number',format:'0,000.00',producesHTML:!1,defaultRenderer:function(a){return Ext.util.Format.number(a,this.format)},updater:function(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Number.prototype.defaultRenderer.call(this,a)}},0,['numbercolumn'],['component','box','container','headercontainer','gridcolumn','numbercolumn'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'numbercolumn':!0},['widget.numbercolumn'],0,[Ext.grid.column,'Number',Ext.grid,'NumberColumn'],0);Ext.cmd.derive('Ext.grid.column.RowNumberer',Ext.grid.column.Column,{alternateClassName:'Ext.grid.RowNumberer',isRowNumberer:!0,text:' ',width:23,sortable:!1,draggable:!1,autoLock:!0,lockable:!1,align:'right',producesHTML:!1,ignoreExport:!0,constructor:function(b){var a=this;a.width=a.width;Ext.grid.column.Column.prototype.constructor.apply(this,arguments);a.sortable=!1;a.scope=a},resizable:!1,hideable:!1,menuDisabled:!0,dataIndex:'',cls:'x-row-numberer',tdCls:'x-grid-cell-row-numberer x-grid-cell-special',innerCls:'x-grid-cell-inner-row-numberer',rowspan:undefined,defaultRenderer:function(j,b,f,i,h,a,g){var c=this.rowspan,e=a.currentPage,d=g.store.indexOf(f);if(b&&c){b.tdAttr='rowspan="'+c+'"'}if(e>1){d+=(e-1)*a.pageSize}return d+1},updater:function(d,c,b,e,a){Ext.fly(d).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(c,null,b,null,null,a,e)}},1,['rownumberer'],['component','box','container','headercontainer','gridcolumn','rownumberer'],{'component':!0,'box':!0,'container':!0,'headercontainer':!0,'gridcolumn':!0,'rownumberer':!0},['widget.rownumberer'],0,[Ext.grid.column,'RowNumberer',Ext.grid,'RowNumberer'],0);Ext.define('Ext.theme.neptune.grid.column.RowNumberer',{override:'Ext.grid.column.RowNumberer',width:25});Ext.cmd.derive('Ext.grid.column.Widget',Ext.grid.column.Column,{config:{defaultWidgetUI:{}},ignoreExport:!0,sortable:!1,onWidgetAttach:null,preventUpdate:!0,stopSelection:!0,initComponent:function(){var b=this,a;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments);a=b.widget;b.widget=a=Ext.apply({},a);if(!a.ui){a.ui=b.getDefaultWidgetUI()[a.xtype]||'default'}b.isFixedSize=Ext.isNumber(a.width)},processEvent:function(c,d,h,e,f,b,g,i){var a;if(this.stopSelection&&c==='click'){a=b.getTarget(d.innerSelector);if(a&&a!==b.target){b.stopSelection=!0}}},beforeRender:function(){var a=this,b=a.tdCls,c;a.listenerScopeFn=function(b){if(b==='this'){return this}return a.resolveListenerScope(b)};a.liveWidgets={};a.cachedStyles={};a.freeWidgetStack=[c=a.getFreeWidget()];b=b?b+' ':'';a.tdCls=b+c.getTdCls();a.setupViewListeners(a.getView());Ext.grid.column.Column.prototype.beforeRender.call(this)},afterRender:function(){var a=this.getView();Ext.grid.column.Column.prototype.afterRender.call(this);if(a&&a.viewReady&&!a.ownerGrid.reconfiguring){this.onViewRefresh(a,a.getViewRange())}},defaultRenderer:Ext.emptyFn,updater:function(c,b,a){this.updateWidget(a)},onResize:function(e){var a=this,d=a.liveWidgets,c=a.getView(),f,b;if(!a.isFixedSize&&a.rendered&&c&&c.viewReady){b=c.getEl().down(a.getCellInnerSelector());if(b){e-=parseInt(a.getCachedStyle(b,'padding-left'),10)+parseInt(a.getCachedStyle(b,'padding-right'),10);for(f in d){d[f].setWidth(e)}}}},onAdded:function(){var b=this,a;Ext.grid.column.Column.prototype.onAdded.apply(this,arguments);a=b.getView();if(a){b.setupViewListeners(a);if(a&&a.viewReady&&b.rendered&&a.getEl().down(b.getCellSelector())){b.onViewRefresh(a,a.getViewRange())}}},onRemoved:function(e){var a=this,c=a.liveWidgets,b=a.viewListeners,d;if(a.rendered){a.viewListeners=b&&Ext.destroy(b);if(!e){for(d in c){c[d].detachFromBody()}}}Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments)},onDestroy:function(){var b=this,e=b.liveWidgets,d=b.freeWidgetStack,g,a,c,f;if(b.rendered){for(g in e){a=e[g];a.$widgetRecord=a.$widgetColumn=null;delete a.getWidgetRecord;delete a.getWidgetColumn;a.destroy()}for(c=0,f=d.length;c0){v=d.getModel();for(b=0;b-1},indexOfPlaceholder:function(a){return this.data.indexOf(a)},indexOfId:function(a){return this.data.indexOfKey(a)},indexOfTotal:function(a){return this.store.indexOf(a)},onAdd:function(b){var a=this;a.processStore(a.store);a.fireEvent('refresh',a);return !1},onClear:function(d,c,b){var a=this;a.processStore(a.store);a.fireEvent('clear',a)},onIdChanged:function(d,b,a,c){this.data.updateKey(b,a)},onRefresh:function(){this.processStore(this.store);this.fireEvent('refresh',this)},onRemove:function(){var a=this;a.processStore(a.store);a.fireEvent('refresh',a);return !1},onUpdate:function(k,b,j,c){var a=this,g=a.groupingFeature,f,i,d,e,h;if(k.isGrouped()){f=b.group=g.getGroup(b);if(f){i=g.getMetaGroup(b);if(c&&Ext.Array.contains(c,g.getGroupField())){return a.onRefresh(a.store)}if(i.isCollapsed){a.fireEvent('update',a,i.placeholder)}else {Ext.suspendLayouts();a.fireEvent('update',a,b,j,c);h=f.items;d=h[0];e=h[h.length-1];if(d!==b){d.group=f;a.fireEvent('update',a,d,'edit',c);delete d.group}if(e!==b&&e!==d&&g.showSummaryRow){e.group=f;a.fireEvent('update',a,e,'edit',c);delete e.group}Ext.resumeLayouts(!0)}}delete b.group}else {a.fireEvent('update',a,b,j,c)}},onGroupChange:function(b,a){if(!a){this.processStore(b)}this.fireEvent('groupchange',b,a)},destroy:function(){var a=this;a.bindStore(null);Ext.destroyMembers(a,'data','groupingFeature');Ext.util.Observable.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.grid.feature,'GroupStore'],0);Ext.cmd.derive('Ext.grid.feature.Grouping',Ext.grid.feature.Feature,{eventPrefix:'group',eventSelector:'.x-grid-group-hd',refreshData:{},wrapsItem:!0,groupHeaderTpl:'{columnName}: {name}',depthToIndent:17,collapsedCls:'x-grid-group-collapsed',hdCollapsedCls:'x-grid-group-hd-collapsed',hdNotCollapsibleCls:'x-grid-group-hd-not-collapsible',collapsibleCls:'x-grid-group-hd-collapsible',ctCls:'x-group-hd-container',groupByText:'Group by this field',showGroupsText:'Show in groups',hideGroupedHeader:!1,startCollapsed:!1,enableGroupingMenu:!0,enableNoGroups:!0,collapsible:!0,groupers:null,expandTip:'Click to expand. CTRL key collapses all others',collapseTip:'Click to collapse. CTRL/click collapses all others',showSummaryRow:!1,outerTpl:['{%','if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {','this.groupingFeature.setup(values.rows, values.view.rowValues);','}','this.nextTpl.applyOut(values, out, parent);','if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {','this.groupingFeature.cleanup(values.rows, values.view.rowValues);','}','%}',{priority:200}],groupRowTpl:['{%','var me = this.groupingFeature,','colspan = "colspan=" + values.columns.length;','if (me.disabled || parent.rows.length === 1 && parent.rows[0].isSummary) {','values.needsWrap = false;','} else {','me.setupRowData(values.record, values.rowIndex, values);','}','%}','','','{% values.view.renderColumnSizer(values, out); %}','','','{%','var groupTitleStyle = (!values.view.lockingPartner || (values.view.ownerCt === values.view.ownerCt.ownerLockable.lockedGrid) || (values.view.lockingPartner.headerCt.getVisibleGridColumns().length === 0)) ? "" : "visibility:hidden";','%}','
    ','
    ','{[values.groupHeaderTpl.apply(values.metaGroupCache, parent) || " "]}','
    ','
    ','','','
    ','','{%','values.itemClasses.length = 0;','this.nextTpl.applyOut(values, out, parent);','%}','','','{%me.outputSummaryRecord(values.summaryRecord, values, out, parent);%}','','','{%this.nextTpl.applyOut(values, out, parent);%}','',{priority:200,beginRowSync:function(b){var a=this.groupingFeature;b.add('header',a.eventSelector);b.add('summary',a.summaryRowSelector)},syncContent:function(c,b,f){c=Ext.fly(c,'syncDest');b=Ext.fly(b,'syncSrc');var a=this.groupingFeature,h=c.down(a.eventSelector,!0),g=b.down(a.eventSelector,!0),e=c.down(a.summaryRowSelector,!0),d=b.down(a.summaryRowSelector,!0);if(h&&g){Ext.fly(h).syncContent(g)}if(e&&d){if(f){this.groupingFeature.view.updateColumns(e,d,f)}else {Ext.fly(e).syncContent(d)}}}}],init:function(c){var a=this,b=a.view,f=a.getGridStore(),d,e;b.isGrouping=f.isGrouped();a.mixins.summary.init.call(a);Ext.grid.feature.Feature.prototype.init.call(this,c);b.headerCt.on({columnhide:a.onColumnHideShow,columnshow:a.onColumnHideShow,columnmove:a.onColumnMove,scope:a});b.addTpl(Ext.XTemplate.getTpl(a,'outerTpl')).groupingFeature=a;b.addRowTpl(Ext.XTemplate.getTpl(a,'groupRowTpl')).groupingFeature=a;b.preserveScrollOnRefresh=!0;if(f.isBufferedStore){a.collapsible=!1}else {d=a.lockingPartner;if(d&&d.dataSource){a.dataSource=b.dataSource=e=d.dataSource}else {a.dataSource=b.dataSource=e=new Ext.grid.feature.GroupStore(a,f)}}c=c.ownerLockable||c;c.on('beforereconfigure',a.beforeReconfigure,a);b.on({afterrender:a.afterViewRender,scope:a,single:!0});if(e){e.on('groupchange',a.onGroupChange,a)}else {a.setupStoreListeners(f)}a.mixins.summary.bindStore.call(a,c,c.getStore())},getGridStore:function(){return this.view.getStore()},indexOf:function(a){return this.dataSource.indexOf(a)},indexOfPlaceholder:function(a){return this.dataSource.indexOfPlaceholder(a)},isInCollapsedGroup:function(d){var c=this,e=c.getGridStore(),b=!1,a;if(e.isGrouped()&&(a=c.getMetaGroup(d))){b=!!(a&&a.isCollapsed)}return b},createCache:function(){var a=this.metaGroupCache={},b=this.lockingPartner;if(b){b.metaGroupCache=a}a.map={};return a},getCache:function(){return this.metaGroupCache||this.createCache()},invalidateCache:function(){var a=this.lockingPartner;this.metaGroupCache=null;if(a){a.metaGroupCache=null}},vetoEvent:function(c,d,b,a){if(a.type!=='mouseover'&&a.type!=='mouseout'&&a.type!=='mouseenter'&&a.type!=='mouseleave'&&a.getTarget(this.eventSelector)){return !1}},enable:function(){var a=this,c=a.view,e=a.getGridStore(),d=a.hideGroupedHeader&&a.getGroupedHeader(),b;c.isGrouping=!0;if(c.lockingPartner){c.lockingPartner.isGrouping=!0}Ext.grid.feature.Feature.prototype.enable.call(this);if(a.lastGrouper){e.group(a.lastGrouper);a.lastGrouper=null}if(d){d.hide()}b=a.view.headerCt.getMenu().down('#groupToggleMenuItem');if(b){b.setChecked(!0,!0)}},disable:function(){var a=this,c=a.view,f=a.getGridStore(),d=a.hideGroupedHeader&&a.getGroupedHeader(),e=f.getGrouper(),b;c.isGrouping=!1;if(c.lockingPartner){c.lockingPartner.isGrouping=!1}Ext.grid.feature.Feature.prototype.disable.call(this);if(e){a.lastGrouper=e;f.clearGrouping()}if(d){d.show()}b=a.view.headerCt.getMenu().down('#groupToggleMenuItem');if(b){b.setChecked(!1,!0);b.disable()}},afterViewRender:function(){var a=this,b=a.view;b.on({scope:a,groupclick:a.onGroupClick});if(a.enableGroupingMenu){a.injectGroupingMenu()}a.pruneGroupedHeader();a.lastGrouper=a.getGridStore().getGrouper();if(a.disabled){a.disable()}},injectGroupingMenu:function(){var a=this,b=a.view.headerCt;b.showMenuBy=a.showMenuBy;b.getMenuItems=a.getMenuItems()},onColumnHideShow:function(l,m){var a=this,e=a.view,k=e.headerCt,i=k.getMenu(),c=i.activeHeader,f=i.down('#groupMenuItem'),g,h=a.grid.getVisibleColumnManager().getColumns().length,d,j,b;if(c&&f){g=c.groupable===!1||!c.dataIndex||a.view.headerCt.getVisibleGridColumns().length<2?'disable':'enable';f[g]()}if(e.rendered&&h){d=e.el.query('.'+a.ctCls);for(b=0,j=d.length;b','','
    {rowBody}
    ','','','{%','if(this.rowBody.bodyBefore) {','this.nextTpl.applyOut(values, out, parent);','}','%}',{priority:100,beginRowSync:function(a){a.add('rowBody',this.owner.eventSelector)},syncContent:function(e,d,f){var c=this.owner,b=Ext.fly(e).down(c.eventSelector,!0),a;if(b&&(a=Ext.fly(d).down(c.eventSelector,!0))){Ext.fly(b).syncContent(a)}}}],init:function(c){var a=this,b=a.view=c.getView();c.variableRowHeight=b.variableRowHeight=!0;b.rowBodyFeature=a;c.mon(b,{element:'el',click:a.onClick,scope:a});b.headerCt.on({columnschanged:a.onColumnsChanged,scope:a});b.addTpl(a.outerTpl).rowBody=a;b.addRowTpl(Ext.XTemplate.getTpl(this,'extraRowTpl')).rowBody=a;Ext.grid.feature.Feature.prototype.init.apply(this,arguments)},onClick:function(c){var b=this,a=c.getTarget(b.eventSelector);if(a&&Ext.fly(a=a.previousSibling||a.nextSibling).is(b.view.rowSelector)){c.target=a;b.view.handleEvent(c)}},getSelectedRow:function(c,b){var a=c.getNode(b);if(a){return Ext.fly(a).down(this.eventSelector)}return null},onColumnsChanged:function(c){var b=this.view.el.query(this.rowBodyTdSelector),d=c.getVisibleGridColumns().length,e=b.length,a;for(a=0;a{text} {linkHrefCls}{childElCls}" href="{href}" target="{hrefTarget}" hidefocus="true" unselectable="on" tabindex="{tabIndex}" {$}="{.}">{text}
    ',maskOnDisable:!1,iconAlign:'left',initComponent:function(){var a=this,b=a.cls?[a.cls]:[],c;if(a.hasOwnProperty('canActivate')){a.focusable=a.canActivate}if(a.plain){b.push('x-menu-item-plain')}if(b.length){a.cls=b.join(' ')}if(a.menu){c=a.menu;a.menu=null;a.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==!1&&!a.destroying&&!a.destroyed&&a.isVisible(!0)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.disabled){if(!a.plain){a.addCls(a.activeCls)}a.activated=!0;if(a.hasListeners.activate){a.fireEvent('activate',a)}}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(a.activated){if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=!1;if(a.hasListeners.deactivate){a.fireEvent('deactivate',a)}}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){for(var a=this.getRefOwner();a&&(a.isMenu&&a.floating||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},expandMenu:function(c,b){var a=this;if(a.activated&&a.menu){a.hideOnClick=!1;a.cancelDeferHide();b=b==null?a.menuExpandDelay:b;if(b===0){a.doExpandMenu(c)}else {a.cancelDeferExpand();a.expandMenuTimer=Ext.defer(a.doExpandMenu,b,a,[c])}}},doExpandMenu:function(c){var b=this,a=b.menu;if(!a.isVisible()){b.parentMenu.activeChild=a;a.ownerCmp=b;a.parentMenu=b.parentMenu;a.constrainTo=document.body;a.autoFocus=!c||!c.pointerType;a.showBy(b,b.menuAlign)}},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},getValue:function(){return this.value},hideMenu:function(b){var a=this;if(a.menu){a.cancelDeferExpand();a.hideMenuTimer=Ext.defer(a.doHideMenu,Ext.isNumber(b)?b:a.menuHideDelay,a)}},onClick:function(b){var a=this,e=a.clickHideDelay,f=b.browserEvent,d,c;if(!a.href||a.disabled){b.stopEvent();if(a.disabled){return !1}}if(a.disabled||a.handlingClick){return}if(a.hideOnClick){if(!e){a.deferHideParentMenus()}else {a.deferHideParentMenusTimer=Ext.defer(a.deferHideParentMenus,e,a)}}d=a.fireEvent('click',a,b);if(a.destroyed){return}if(d!==!1&&a.handler){Ext.callback(a.handler,a.scope,[a,b],0,a)}if(Ext.isIE9m){c=f.returnValue===!1?!0:!1}else {c=!!f.defaultPrevented}if(a.href&&b.type!=='click'&&!c){a.handlingClick=!0;a.itemEl.dom.click();a.handlingClick=!1}if(!a.hideOnClick){a.focus()}return d},onRemoved:function(){var a=this;if(a.activated&&a.parentMenu.activeItem===a){a.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);a.parentMenu=a.ownerCmp=null},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;a.cancelDeferExpand();a.cancelDeferHide();clearTimeout(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.onDestroy.apply(this,arguments)},beforeRender:function(){var a=this,c=a.glyph,j=Ext._glyphFontFamily,b=!!(a.icon||a.iconCls||c),f=!!a.menu,i=a.iconAlign==='right'&&!f,e=a.isMenuCheckItem,d=[],k=a.ownerCt,g=k.plain,h;if(a.plain){a.ariaEl='el'}Ext.Component.prototype.beforeRender.call(this);if(b){if(f&&a.showCheckbox){b=!1}}if(typeof c==='string'){h=c.split('@');c=h[0];j=h[1]}if(!g||b&&!i||e){if(k.showSeparator&&!g){d.push(a.indentCls)}else {d.push(a.indentNoSeparatorCls)}}if(f){d.push(a.indentRightArrowCls)}else {if(b&&(i||e)){d.push(a.indentRightIconCls)}}Ext.applyIf(a.renderData,{hasHref:!!a.href,href:a.href||'#',hrefTarget:a.hrefTarget,icon:a.icon,iconCls:a.iconCls,glyph:c,glyphCls:c?'x-menu-item-glyph':undefined,glyphFontFamily:j,hasIcon:b,hasMenu:f,indent:!g||b||e,isCheckItem:e,rightIcon:i,plain:a.plain,text:a.text,arrowCls:a.arrowCls,baseIconCls:a.baseIconCls,textCls:a.textCls,indentCls:d.join(' '),linkCls:a.linkCls,linkHrefCls:a.linkHrefCls,groupCls:a.group?a.groupCls:'',tabIndex:a.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,!0)}},getMenu:function(){return this.menu||null},setMenu:function(b,f){var a=this,e=a.menu,h=a.arrowEl,d=a.ariaEl.dom,c,g;if(e){e.ownerCmp=e.parentMenu=null;if(f===!0||f!==!1&&a.destroyMenu){Ext.destroy(e)}if(d){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns')}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});delete c['aria-haspopup'];delete c['aria-owns']}}if(b){g=b.isMenu;b=a.menu=Ext.menu.Manager.get(b,{ownerCmp:a,focusOnToFront:!1});b.setOwnerCmp(a,g);if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {b=a.menu=null}if(b&&a.rendered&&!a.destroying&&h){h[b?'addCls':'removeCls'](a.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(a){var b=this.iconEl,c=this.icon;if(b){b.src=a||Ext.BLANK_IMAGE_URL}this.icon=a;this.fireEvent('iconchange',this,c,a)},setIconCls:function(b){var a=this,c=a.iconEl,d=a.iconCls;if(c){if(a.iconCls){c.removeCls(a.iconCls)}if(b){c.addCls(b)}}a.iconCls=b;a.fireEvent('iconchange',a,d,b)},setText:function(b){var a=this,d=a.textEl||a.el,c=a.text;a.text=b;if(a.rendered){d.setHtml(b||'');a.updateLayout()}a.fireEvent('textchange',a,c,b)},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},clearTip:function(){if(Ext.quickTipsActive&&Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.itemEl)}},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c){a.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.itemEl.id},b));a.tooltip=b}else {a.itemEl.dom.setAttribute(a.getTipAttr(),b)}}else {a.tooltip=b}return a},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)},getFocusEl:function(){return this.plain?this.el:this.itemEl}}},0,['menuitem'],['component','box','menuitem'],{'component':!0,'box':!0,'menuitem':!0},['widget.menuitem'],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.menu,'Item',Ext.menu,'TextItem'],0);Ext.cmd.derive('Ext.menu.CheckItem',Ext.menu.Item,{checkedCls:'x-menu-item-checked',uncheckedCls:'x-menu-item-unchecked',groupCls:'x-menu-group-icon',hideOnClick:!1,checkChangeDisabled:!1,submenuText:'{0} submenu',ariaRole:'menuitemcheckbox',childEls:['checkEl'],showCheckbox:!0,isMenuCheckItem:!0,checkboxCls:'x-menu-item-checkbox',initComponent:function(){var a=this;a.checked=!!a.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==!1){a.hideOnClick=!0}}},beforeRender:function(){var a=this,b;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(a.renderData,{checkboxCls:a.checkboxCls,showCheckbox:a.showCheckbox});b=a.ariaRenderAttributes||(a.ariaRenderAttributes={});b['aria-checked']=a.menu?'mixed':a.checked;if(a.menu){b['aria-label']=Ext.String.formatEncode(a.submenuText,a.text)}},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.setChecked(!a.checked,!0);if(a.checkChangeDisabled){a.disableCheckChange()}if(Ext.isGecko&&a.checkEl){a.checkEl.on('mousedown',a.onMouseDownCheck)}},disableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.addCls(a.disabledCls)}if(Ext.isIE8&&a.rendered){a.el.repaint()}a.checkChangeDisabled=!0},enableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.removeCls(a.disabledCls)}a.checkChangeDisabled=!1},onMouseDownCheck:function(a){a.preventDefault()},onClick:function(b){var a=this;if(!(a.disabled||a.checkChangeDisabled||a.checked&&a.group||a.menu&&'touch'===b.pointerType&&!a.checkEl.contains(b.target))){a.setChecked(!a.checked);if(b.type==='keydown'&&a.menu){return !1}}Ext.menu.Item.prototype.onClick.call(this,b)},onDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.onDestroy.apply(this,arguments)},setText:function(c){var a=this,b=a.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,c);if(b&&a.menu){b.setAttribute('aria-label',Ext.String.formatEncode(a.submenuText,c))}},setChecked:function(b,d){var a=this,f=a.checkedCls,e=a.uncheckedCls,c=a.el,g=a.ariaEl.dom;if(a.checked!==b&&(d||a.fireEvent('beforecheckchange',a,b)!==!1)){if(c){if(b){c.addCls(f);c.removeCls(e)}else {c.addCls(e);c.removeCls(f)}}if(g){g.setAttribute('aria-checked',a.menu?'mixed':!!b)}a.checked=b;Ext.menu.Manager.onCheckChange(a,b);if(!d){Ext.callback(a.checkHandler,a.scope,[a,b],0,a);a.fireEvent('checkchange',a,b)}}}},0,['menucheckitem'],['component','box','menuitem','menucheckitem'],{'component':!0,'box':!0,'menuitem':!0,'menucheckitem':!0},['widget.menucheckitem'],0,[Ext.menu,'CheckItem'],0);Ext.cmd.derive('Ext.menu.Separator',Ext.menu.Item,{focusable:!1,canActivate:!1,hideOnClick:!1,plain:!0,separatorCls:'x-menu-item-separator',text:' ',ariaRole:'separator',beforeRender:function(){this.addCls(this.separatorCls);Ext.menu.Item.prototype.beforeRender.call(this)}},0,['menuseparator'],['component','box','menuitem','menuseparator'],{'component':!0,'box':!0,'menuitem':!0,'menuseparator':!0},['widget.menuseparator'],0,[Ext.menu,'Separator'],0);Ext.define('Ext.theme.neptune.menu.Separator',{override:'Ext.menu.Separator',border:!0});Ext.cmd.derive('Ext.menu.Menu',Ext.panel.Panel,{enableKeyNav:!0,allowOtherMenus:!1,ariaRole:'menu',floating:!0,constrain:!0,hidden:!0,hideMode:'visibility',ignoreParentClicks:!1,isMenu:!0,showSeparator:!0,minWidth:undefined,defaultMinWidth:120,defaultAlign:'tl-bl?',focusOnToFront:!1,bringParentToFront:!1,defaultFocus:':focusable',menuClickBuffer:0,baseCls:'x-menu',_iconSeparatorCls:'x-menu-icon-separator',_itemCmpCls:'x-menu-item-cmp',layout:{type:'vbox',align:'stretchmax',overflowHandler:'Scroller'},initComponent:function(){var a=this,d=['x-menu'],c=a.bodyCls?[a.bodyCls]:[],e=a.floating!==!1,b={element:'el',click:a.onClick,mouseover:a.onMouseOver,scope:a};if(Ext.supports.Touch){b.pointerdown=a.onMouseOver}a.on(b);a.on({beforeshow:a.onBeforeShow,scope:a});if(a.plain){d.push('x-menu-plain')}a.cls=d.join(' ');c.push('x-menu-body',Ext.dom.Element.unselectableCls);a.bodyCls=c.join(' ');if(e){if(a.minWidth===undefined){a.minWidth=a.defaultMinWidth}}else {a.hidden=!!a.initialConfig.hidden;a.constrain=!1}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(a.getLayout(),{configureItem:a.configureItem})},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);a.hidden=this.hidden;return a},beforeRender:function(){var a=this;Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!a.getSizeModel().width.shrinkWrap){a.layout.align='stretch'}if(a.floating){a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!!a.autoShow}},onBoxReady:function(){var a=this,c=a._iconSeparatorCls,b=a.focusableKeyNav;if(b){b.map.processEventScope=a;b.map.processEvent=function(a){if(a.keyCode===a.ESC){a.target=this.el.dom}return a};b.map.addBinding([{key:Ext.event.Event.ESC,handler:a.onEscapeKey,scope:a},{key:/[\w]/,handler:a.onShortcutKey,scope:a,shift:!1,ctrl:!1,alt:!1}])}else {a.escapeKeyNav=new Ext.util.KeyNav(a.el,{eventName:'keydown',scope:a,esc:a.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(a.showSeparator){a.iconSepEl=a.body.insertFirst({role:'presentation',cls:c+' '+c+'-'+a.ui,html:' '})}if(Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){a.el.on({scope:a,click:a.preventClick,translate:!1})}a.mouseMonitor=a.el.monitorMouseLeave(100,a.onMouseLeave,a)},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var b=this,a=b.lastFocusedChild;if(a){a.blur()}},getItemFromEvent:function(d){var c=this,b=c.layout.getRenderTarget().dom,a=d.getTarget();while(a.parentNode!==b){a=a.parentNode;if(!a){return}}return Ext.getCmp(a.id)},lookupComponent:function(a){var b=this;if(typeof a==='string'){a=b.lookupItemFromString(a)}else {if(Ext.isObject(a)){a=b.lookupItemFromObject(a)}}if(!a.dock){a.minWidth=a.minWidth||b.minWidth}return a},lookupItemFromObject:function(a){var b=this;if(!a.isComponent){if(!a.xtype){a=Ext.create('Ext.menu.'+(Ext.isBoolean(a.checked)?'Check':'')+'Item',a)}else {a=Ext.ComponentManager.create(a,a.xtype)}}if(a.isMenuItem){a.parentMenu=b}return a},lookupItemFromString:function(a){return a==='separator'||a==='-'?new Ext.menu.Separator():new Ext.menu.Item({canActivate:!1,hideOnClick:!1,plain:!0,text:a})},configureItem:function(a){var c=this.owner,f='x-',e=c.ui,b,d;if(a.isMenuItem){a.setUI(e)}else {if(c.items.getCount()>1&&!a.rendered&&!a.dock){d=c._itemCmpCls;b=[d+' '+d+'-'+e];if(!c.plain&&(a.indent!==!1||a.iconCls==='no-icon')){b.push(f+'menu-item-indent-'+e)}if(a.rendered){a.el.addCls(b)}else {a.cls=(a.cls||'')+' '+b.join(' ')}a.$extraMenuCls=b}}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.destroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(b){var c=this,f=b.type,a,d,e=f==='keydown';if(c.disabled){b.stopEvent();return}a=c.getItemFromEvent(b);if(a&&a.isMenuItem){if(!a.menu||!c.ignoreParentClicks){d=a.onClick(b)}else {b.stopEvent()}if(a.menu&&d!==!1&&e){a.expandMenu(b,0)}}if(!a||a.disabled){a=undefined}c.fireEvent('click',c,a,b)},onDestroy:function(){var a=this;if(a.escapeKeyNav){a.escapeKeyNav.destroy()}a.parentMenu=a.ownerCmp=a.escapeKeyNav=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.menu.Manager.onHide(a);Ext.panel.Panel.prototype.onDestroy.apply(this,arguments)},onMouseLeave:function(a){if(this.disabled){return}this.fireEvent('mouseleave',this,a)},onMouseOver:function(c){var a=this,g=c.getRelatedTarget(),e=!a.el.contains(g),b=a.getItemFromEvent(c),d=a.parentMenu,f=a.ownerCmp;if(e&&d){d.setActiveItem(f);f.cancelDeferHide();d.mouseMonitor.mouseenter()}if(a.disabled){return}if(b){if(!b.containsFocus){b.focus()}if(b.expandMenu){b.expandMenu(c)}}if(e){a.fireEvent('mouseenter',a,c)}a.fireEvent('mouseover',a,b,c)},setActiveItem:function(a){var b=this;if(a&&a!==b.lastFocusedChild){b.focusChild(a,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(h,g){var e=String.fromCharCode(g.getCharCode()),c=this.query('>[text]'),f=c.length,a=this.lastFocusedChild,d=Ext.Array.indexOf(c,a),b=d;for(;;){if(++b===f){b=0}a=c[b];if(b===d){return}if(a.text&&a.text[0].toUpperCase()===e){a.focus();return}}},onFocusableContainerTabKey:function(a){if(this.floating){this.hide()}},onFocusableContainerEnterKey:function(a){this.onClick(a)},onFocusableContainerSpaceKey:function(a){this.onClick(a)},onFocusableContainerLeftKey:function(a){a.preventDefault();if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(b){var c=this,a=c.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)+f){c.up('menuitem').setChecked(!1,!0);if(h.gt.getValue()!=null){e.gt=null}}}}e[a.filterKey]=f;g.setValue(e);i.up('menu').hide()}},0,0,0,0,['grid.filter.date'],0,[Ext.grid.filters.filter,'Date'],0);Ext.cmd.derive('Ext.grid.filters.filter.List',Ext.grid.filters.filter.SingleFilter,{type:'list',operator:'in',itemDefaults:{checked:!1,hideOnClick:!1},idField:'id',labelField:'text',labelIndex:null,loadingText:'Loading...',loadOnShow:!0,single:!1,plain:!0,constructor:function(c){var a=this,b;Ext.grid.filters.filter.SingleFilter.prototype.constructor.call(this,c);a.labelIndex=a.labelIndex||a.column.dataIndex;if(!a.options&&a.value!=null&&a.active){b=a.getGridStore();if(!b.isEmptyStore){b.on(a.getGridStoreListeners())}a.grid.on('reconfigure',a.onReconfigure,a);a.inferOptionsFromGridStore=!0}},destroy:function(){var a=this,b=a.store,d=a.autoStore,c=a.gridStoreListeners;if(b){if(d||b.autoDestroy){b.destroy()}else {b.un('load',a.bindMenuStore,a)}a.store=null}if(a.inferOptionsFromGridStore){a.grid.un('reconfigure',a.onReconfigure,a)}if(c){a.getGridStore().un(c);a.gridStoreListeners=null}Ext.grid.filters.filter.SingleFilter.prototype.destroy.call(this)},activateMenu:function(){var f=this,d=f.filter.getValue(),c,a,e,b;if(!d||!d.length){return}c=f.menu.items;for(a=0,e=c.length;a-1){b.setChecked(!0,!0)}}},bindMenuStore:function(b){var a=this;if(a.grid.destroyed||a.preventFilterRemoval){return}a.createListStore(b);a.createMenuItems(a.store);a.loaded=!0},createListStore:function(d){var a=this,e=a.store,l=d.isStore,j=a.idField,i=a.labelField,h=!1,c,g,f,k,b;if(l){if(d!==a.getGridStore()){h=!0;e=a.store=d}else {a.autoStore=!0;c=a.getOptionsFromStore(d)}}else {c=[];for(f=0,k=d.length;ftablepanel:not(hidden)>tableview');if(a){a.focus()}},focusRow:function(c){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;b.focusRow(c)},focusCell:function(a){a.view.focusCell(a)},onRowFocus:function(){this.relayFn('onRowFocus',arguments)},isVisible:function(a){return this.ownerGrid.isVisible(a)},getFocusEl:function(){var b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;return b.getFocusEl()},getCellInclusive:function(a,c){var d=a.column,b=this.lockedGrid.getColumnManager().getColumns().length;if(d>=b){a=Ext.apply({},a);a.column-=b;return this.normalView.getCellInclusive(a,c)}else {return this.lockedView.getCellInclusive(a,c)}},getHeaderByCell:function(a){if(a){return this.getVisibleColumnManager().getHeaderById(a.getAttribute('data-columnId'))}return !1},onRowSelect:function(){this.relayFn('onRowSelect',arguments)},onRowDeselect:function(){this.relayFn('onRowDeselect',arguments)},onCellSelect:function(a){a.column.getView().onCellSelect({record:a.record,column:a.column})},onCellDeselect:function(a){a.column.getView().onCellDeselect({record:a.record,column:a.column})},getCellByPosition:function(a,c){var e=this,b=a.view,d=a.column;if(b===e){a=(new Ext.grid.CellContext(d.getView())).setPosition(a.record,a.column)}return b.getCellByPosition(a,c)},getRecord:function(b){var a=this.lockedView.getRecord(b);if(!a){a=this.normalView.getRecord(b)}return a},scrollBy:function(){var a=this.normalView;a.scrollBy.apply(a,arguments)},ensureVisible:function(){var a=this.normalView;a.ensureVisible.apply(a,arguments)},disable:function(){this.relayFn('disable',arguments)},enable:function(){this.relayFn('enable',arguments)},addElListener:function(){this.relayFn('addElListener',arguments)},refreshNode:function(){this.relayFn('refreshNode',arguments)},addRowCls:function(){this.relayFn('addRowCls',arguments)},removeRowCls:function(){this.relayFn('removeRowCls',arguments)},destroy:function(){var a=this;a.rendered=!1;a.bindStore(null,!1,'dataSource');Ext.destroy(a.lockedViewEventRelayers,a.normalViewEventRelayers);a.lockedViewEventRelayers=a.normalViewEventRelayers=null;a.callParent();Ext.destroy(a.loadMask,a.navigationModel,a.selModel);a.lockedView.lockingPartner=a.normalView.lockingPartner=null;a.lockedGrid=a.lockedView=a.normalGrid=a.normalView=null;a.loadMask=a.navigationModel=a.selModel=a.headerCt=null;a.ownerGrid=a.storeListeners=null}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable]],[Ext.grid.locking,'View',Ext.grid,'LockingView'],function(){this.borrow(Ext.Component,['up']);this.borrow(Ext.view.AbstractView,['doFirstRefresh','applyFirstRefresh']);this.borrow(Ext.view.Table,['cellSelector','selectedCellCls','selectedItemCls'])});Ext.cmd.derive('Ext.grid.locking.Lockable',Ext.Base,{alternateClassName:'Ext.grid.Lockable',syncRowHeight:!0,headerCounter:0,scrollDelta:40,lockedGridCls:'x-grid-inner-locked',normalGridCls:'x-grid-inner-normal',lockingBodyCls:'x-grid-locking-body',unlockText:'Unlock',lockText:'Lock',bothCfgCopy:['hideHeaders','enableColumnHide','enableColumnMove','enableColumnResize','sortableColumns','multiColumnSort','columnLines','rowLines','variableRowHeight','numFromEdge','trailingBufferZone','leadingBufferZone','scrollToLoadBuffer','syncRowHeight'],normalCfgCopy:['scroll'],lockedCfgCopy:[],determineXTypeToCreate:function(g){var f=this,a,b,d,e,c;if(f.subGridXType){a=f.subGridXType}else {if(!g){return 'gridpanel'}b=this.getXTypes().split('/');d=b.length;e=b[d-1];c=b[d-2];if(c!=='tablepanel'){a=c}else {a=e}}return a},injectLockable:function(){this.focusable=!1;this.lockable=!0;this.hasView=!0;var a=this,q=Ext.getScrollbarSize(),l=q.width,o=a.store=Ext.StoreManager.lookup(a.store),d=a.lockedViewConfig,g=a.normalViewConfig,s=Ext.Object,m,i,b,c,e,n,f,h,j=a.viewConfig,r=j&&j.loadMask,u=r!==undefined?r:a.loadMask,p=a.bufferedRenderer,k=l>0&&Ext.supports.touchScroll!==2,t=a.getInherited().rtl;m=a.constructLockableFeatures();a.features=null;i=a.constructLockablePlugins();a.plugins=i.topPlugins;b={id:a.id+'-locked',$initParent:a,isLocked:!0,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(!0),store:o,reserveScrollbar:k,scrollable:{indicators:{x:!0,y:!1}},scrollerOwner:!1,animate:!1,border:!1,cls:a.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.normalGrid.floatedFromCollapse},features:m.lockedFeatures,plugins:i.lockedPlugins};c={id:a.id+'-normal',$initParent:a,isLocked:!1,bufferedRenderer:p,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(),store:o,reserveScrollbar:a.reserveScrollbar,scrollerOwner:!1,border:!1,cls:a.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||a.lockedGrid.floatedFromCollapse},features:m.normalFeatures,plugins:i.normalPlugins};a.addCls('x-grid-locked');Ext.copy(c,a,a.bothCfgCopy,!0);Ext.copy(b,a,a.bothCfgCopy,!0);Ext.copy(c,a,a.normalCfgCopy,!0);Ext.copy(b,a,a.lockedCfgCopy,!0);Ext.apply(c,a.normalGridConfig);Ext.apply(b,a.lockedGridConfig);for(e=0;e>#normalHeaderCt',items:e},j={itemId:'normalHeaderCt',stretchMaxPartner:'^^>>#lockedHeaderCt',items:f},l={locked:i,normal:j},g;if(Ext.isObject(b)){Ext.applyIf(i,b);Ext.applyIf(j,b);g=Ext.apply({},b);delete g.items;Ext.apply(c,g);b=b.items}c.constructing=!0;for(d=0,k=b.length;d0&&f){h.stopEvent();a+=e;d.setScrollY(a);b.normalGrid.getView().setScrollY(a);b.onNormalViewScroll()}}},onLockedViewScroll:function(){var f=this,e=f.lockedGrid.getView(),a=f.normalGrid.getView(),c=e.getScrollY(),g=a.getScrollY(),b,d;if(g!==c){a.setScrollY(c);if(a.bufferedRenderer){d=e.body.dom;b=a.body.dom;b.style.position='absolute';b.style.top=d.style.top}}},onNormalViewScroll:function(){var e=this,b=e.lockedGrid.getView(),c=e.normalGrid.getView(),f=b.getScrollY(),d=c.getScrollY(),a;if(d!==f){b.setScrollY(d);if(c.bufferedRenderer){a=b.body;if(a.dom){a.dom.style.position='absolute';a.translate(null,c.bufferedRenderer.bodyTop)}}}},syncRowHeights:function(){if(!this.destroyed){var f=this,b=f.normalGrid.getView(),a=f.lockedGrid.getView(),d=b.syncRowHeightBegin(),c=a.syncRowHeightBegin(),e;b.syncRowHeightMeasure(d);a.syncRowHeightMeasure(c);b.syncRowHeightFinish(d,c);a.syncRowHeightFinish(c,d);e=b.getScrollY();a.setScrollY(e)}},modifyHeaderCt:function(){var a=this;a.lockedGrid.headerCt.getMenuItems=a.getMenuItems(a.lockedGrid.headerCt.getMenuItems,!0);a.normalGrid.headerCt.getMenuItems=a.getMenuItems(a.normalGrid.headerCt.getMenuItems,!1);a.lockedGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.lockedGrid.headerCt.showMenuBy,a.showMenuBy);a.normalGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.normalGrid.headerCt.showMenuBy,a.showMenuBy)},onUnlockMenuClick:function(){this.unlock()},onLockMenuClick:function(){this.lock()},showMenuBy:function(f,g,c){var d=this.getMenu(),a=d.down('#unlockItem'),b=d.down('#lockItem'),e=a.prev();if(c.lockable===!1){e.hide();a.hide();b.hide()}else {e.show();a.show();b.show();if(!a.initialConfig.disabled){a.setDisabled(c.lockable===!1)}if(!b.initialConfig.disabled){b.setDisabled(!c.isLockable())}}},getMenuItems:function(d,b){var a=this,f=a.unlockText,h=a.lockText,g='x-hmenu-unlock',i='x-hmenu-lock',c=a.onUnlockMenuClick.bind(a),e=a.onLockMenuClick.bind(a);return function(){var a=d.call(this);a.push('-',{itemId:'unlockItem',iconCls:g,text:f,handler:c,disabled:!b});a.push({itemId:'lockItem',iconCls:i,text:h,handler:e,disabled:b});return a}},delaySyncLockedWidth:function(){var a=this,b=a.syncLockedWidthTask;if(!a.view.all.getCount()){return}if(!b){b=a.syncLockedWidthTask=new Ext.util.DelayedTask(a.syncLockedWidth,a)}b.delay(1)},syncLockedWidth:function(){var b=this,c=b.rendered,a=b.lockedGrid,g=a.view,d=b.normalGrid,e=a.getVisibleColumnManager().getColumns().length,f=d.getVisibleColumnManager().getColumns().length,h=b.syncLockedWidthTask;if(h){h.cancel()}Ext.suspendLayouts();if(f){d.show();if(e){if(c&&a.shrinkWrapColumns&&!a.headerCt.forceFit){delete a.flex;a.setWidth(a.headerCt.getTableWidth()+a.gridPanelBorderWidth)}a.addCls(b.lockedGridCls);a.show();if(a.split){b.child('splitter').show();b.addCls('x-grid-locked-split')}}else {if(c){a.getView().clearViewEl(!0)}a.hide();if(a.split){b.child('splitter').hide();b.removeCls('x-grid-locked-split')}}if(Ext.supports.touchScroll!==2&&Ext.Component.pendingLayouts){g.getScrollable().setX(!0)}if(c){b.ignoreMousewheel=g.scrollFlags.y}}else {d.hide();a.flex=1;delete a.width;a.removeCls(b.lockedGridCls);a.show();b.ignoreMousewheel=!0}Ext.resumeLayouts(!0);return [e,f]},onLockedHeaderSortChange:Ext.emptyFn,onNormalHeaderSortChange:Ext.emptyFn,lock:function(a,l,g){var e=this,i=e.normalGrid,b=e.lockedGrid,d=i.view,c=b.view,m=i.headerCt,h,k,j,f;a=a||m.getMenu().activeHeader;j=a.hasFocus;g=g||b.headerCt;k=a.ownerCt;if(!a.isLockable()){return}if(a.flex&&b.shrinkWrapColumns){a.width=a.getWidth();a.flex=null}Ext.suspendLayouts();if(b.hidden){if(!b.componentLayoutCounter){if(c.bufferedRenderer){c.bufferedRenderer.onViewResize(c,0,d.getHeight())}f=d.getScrollY()}b.show()}d.blockRefresh=c.blockRefresh=!0;a.ownerCmp=a.ownerCt;k.remove(a,!1);a.locked=!0;if(Ext.isDefined(l)){g.insert(l,a)}else {g.add(a)}d.blockRefresh=c.blockRefresh=!1;a.ownerCmp=null;h=e.syncLockedWidth();if(h[0]){b.getView().refreshView()}if(h[1]){i.getView().refreshView()}e.fireEvent('lockcolumn',e,a);Ext.resumeLayouts(!0);if(f){c.setScrollY(f);d.setScrollY(f)}if(j){a.focus()}},unlock:function(a,f,g){var b=this,e=b.normalGrid,d=b.lockedGrid,i=e.view,h=d.view,k=d.headerCt,c,j;if(!Ext.isDefined(f)){f=0}a=a||k.getMenu().activeHeader;j=a.hasFocus;g=g||e.headerCt;Ext.suspendLayouts();i.blockRefresh=h.blockRefresh=!0;a.ownerCmp=a.ownerCt;a.ownerCt.remove(a,!1);a.locked=!1;g.insert(f,a);i.blockRefresh=h.blockRefresh=!1;a.ownerCmp=null;c=b.syncLockedWidth();if(c[0]){d.getView().refreshView()}if(c[1]){e.getView().refreshView()}b.fireEvent('unlockcolumn',b,a);Ext.resumeLayouts(!0);if(j){a.focus()}},reconfigureLockable:function(a,f){var d=this,h=d.store,c=d.lockedGrid,e=d.normalGrid,b,g;if(a&&a!==h){a=Ext.data.StoreManager.lookup(a);d.store=a;c.view.blockRefresh=e.view.blockRefresh=!0;c.bindStore(a);b=c.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}e.bindStore(a);b=e.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}d.view.store=a;g=d.view.loadMask;if(g&&g.isLoadMask){g.bindStore(a)}d.view.bindStore(e.view.dataSource,!1,'dataSource');c.view.blockRefresh=e.view.blockRefresh=!1}if(f){c.reconfiguring=e.reconfiguring=!0;c.headerCt.removeAll();e.headerCt.removeAll();f=d.processColumns(f,c);c.headerCt.add(f.locked.items);e.headerCt.add(f.normal.items);c.reconfiguring=e.reconfiguring=!1;d.syncLockedWidth()}d.refreshCounter=c.view.refreshCounter},afterReconfigureLockable:function(){var a=this.lockedGrid.getView();if(this.refreshCounter===a.refreshCounter){this.view.refresh()}},constructLockableFeatures:function(){var b=this.features,a,e,c,d,f=0,g;if(b){if(!Ext.isArray(b)){b=[b]}c=[];d=[];g=b.length;for(;f0){a.onViewResize(b,null,e);if(c&&d.getCount()!==c.length){c.length=0;c.push.apply(c,a.store.getRange(d.startIndex,d.endIndex))}}}},beforeTableLayout:function(b){var a=this.view.body.dom;if(a){b.bodyHeight=a.offsetHeight;b.bodyWidth=a.offsetWidth}},afterTableLayout:function(d){var a=this,b=a.view,c;if(d.bodyHeight&&b.body.dom){delete a.rowHeight;a.refreshSize();c=b.body.dom.offsetHeight;if(c!==d.bodyHeight){a.onViewResize(b,null,b.el.lastBox.height);if(c=a.store.getCount()){a.setBodyTop(0)}else {if(a.bodyTop>a.scrollTop||a.bodyTop+cb){a.position=a.scrollTop=Math.max(b-a.bodyHeight,0);c.setScrollY(a.scrollTop)}if(a.bodyTop>b){c.body.translate(null,a.bodyTop=a.position)}if(c.getScrollable()){a.refreshScroller(c,b)}},refreshScroller:function(b,c){var a=b.getScrollable();if(a){if(a.setElementSize){a.setElementSize()}a.setSize({x:b.headerCt.getTableWidth(),y:c})}},setViewSize:function(c,o){var a=this,h=a.store,g=a.view,d=g.all,j=d.getCount(),e,f,b=a.view.lockingPartner&&a.view.lockingPartner.bufferedRenderer,i=j-c,n,m,l,k;if(b&&!o&&b.view.componentLayoutCounter){if(b.viewSize>c){c=b.viewSize}else {b.setViewSize(c,!0)}}i=j-c;if(i){a.scrollTop=g.getScrollY();a.viewSize=c;if(h.isBufferedStore){h.setViewSize(c)}if(j){k=h.getCount();e=d.startIndex;f=Math.min(e+c-1,k-1);if(e===d.startIndex&&f===d.endIndex){if(i<0){a.handleViewScroll(-1)}}else {if(b){b.disable()}if(i<0){if(k>j){h.getRange(d.endIndex+1,f,{callback:function(b,d){l=g.doAdd(b,d);g.fireEvent('itemadd',b,d,l);a.setBodyTop(a.bodyTop)}})}else {a.refreshView(0)}}else {e=d.endIndex-(i-1);f=d.endIndex;m=d.slice(e,f+1);d.removeRange(e,f,!0);if(g.hasListeners.itemremove){n=h.getRange(e,f);g.fireEvent('itemremove',n,e,m)}a.setBodyTop(a.bodyTop)}if(b){b.enable()}}}}return c},getViewRange:function(){var d=this,c=d.view.all,a=d.store,b=0;if(c.getCount()){b=c.startIndex}else {if(a.isBufferedStore){if(!a.currentPage){a.currentPage=1}b=c.startIndex=(a.currentPage-1)*(a.pageSize||1);a.currentPage=1}}if(a.data.getCount()){return a.getRange(b,b+(d.viewSize||a.defaultViewSize)-1)}else {return []}},onReplace:function(l,d,j,k){var a=this,c=a.view,b=c.all,i,g=b.getCount(),h=d+j.length-1,e=k.length-j.length,f=e*a.rowHeight;if(d>=b.startIndex+a.viewSize){a.refreshSize();return}if(g&&h=a.viewSize){b.moveBlock(e);a.refreshSize();i=b.startIndex;if(e>0){a.doNotMirror=!0;a.handleViewScroll(-1);a.doNotMirror=!1}if(b.startIndex===i){if(b.startIndex){a.setBodyTop(a.bodyTop+=f);c.suspendEvent('scroll');c.scrollBy(0,f);c.resumeEvent('scroll');a.position=a.scrollTop=c.getScrollY()}}else {c.suspendEvent('scroll');c.scrollBy(0,(i-b.startIndex)*a.rowHeight);c.resumeEvent('scroll')}c.refreshSize(b.getCount()!==g);return}if(g&&d>b.endIndex){a.refreshSize();if(e>0){a.onRangeFetched(null,b.startIndex,Math.min(l.getCount(),b.startIndex+a.viewSize)-1,null,!0)}c.refreshSize(b.getCount()!==g);return}if(d0?1:-1;if(Math.abs(c)>=20||b!==a.lastScrollDirection){a.lastScrollDirection=b;a.handleViewScroll(a.lastScrollDirection)}}},onViewScrollEnd:function(){if(this.needsPointerEventsFix){this.view.body.dom.style.pointerEvents=''}},handleViewScroll:function(h){var a=this,d=a.view.all,g=a.store,f=a.viewSize,e=g.getCount()-1,b,c;if(h===-1){if(d.startIndex){if(a.topOfViewCloseToEdge()){b=Math.max(0,a.getLastVisibleRowIndex()+a.trailingBufferZone-f)}}}else {if(d.endIndexa.scrollTop-a.numFromEdge*a.rowHeight}else {return a.getFirstVisibleRowIndex()-a.view.all.startIndexd){a=c-d+1}}}if(a===0&&c===0&&e===0){b.doRefreshView([],0,0)}else {g.getRange(a,c,{callback:b.doRefreshView,scope:b})}},doRefreshView:function(i,h,p,q){var a=this,b=a.view,c=b.all,l=c.startIndex,m=c.endIndex,e,f,n=c.getCount(),o,k=h!==c.startIndex,g,d,j;if(b.refreshCounter){if(b.hasListeners.beforerefresh&&b.fireEvent('beforerefresh',b)===!1){return}b.refreshing=a.refreshing=!0;j=b.saveFocusState();b.clearViewEl(!0);b.refreshCounter++;if(i.length){o=b.doAdd(i,h);if(k){e=c.item(l,!0);f=c.item(m,!0);if(e){d=-e.offsetTop}else {if(f){d=c.last(!0).offsetTop-f.offsetTop}}if(d){a.bodyTop=Math.max(a.bodyTop+d,0);a.scrollTop=a.bodyTop?a.scrollTop+d:0}else {a.bodyTop=g=h*a.rowHeight;a.scrollTop=Math.max(g-a.rowHeight*(gc.endIndex){r=c.startIndex-e;b.clearViewEl(!0);g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g);for(o=0;oc.endIndex||jp){d=a.scrollTop-a.rowHeight*p}}b.clearViewEl(!0);a.teleported=!1}if(!c.getCount()){g=b.doAdd(h,e);b.fireEvent('itemadd',h,e,g)}else {if(j>c.endIndex){l=Math.max(e-c.startIndex,0);if(k){i=c.item(c.startIndex+l,!0).offsetTop}g=c.scroll(Ext.Array.slice(h,c.endIndex+1-e),1,l);if(k){d=a.bodyTop+i}else {d=m}}else {l=Math.max(c.endIndex-j,0);u=c.startIndex;g=c.scroll(Ext.Array.slice(h,0,c.startIndex-e),-1,l);if(k){d=a.bodyTop-c.item(u,!0).offsetTop;if(!c.startIndex){if(d){b.setScrollY(a.position=a.scrollTop-=d);d=0}}else {if(d<0){i=c.startIndex*a.rowHeight;b.setScrollY(a.position=a.scrollTop+=i);d=a.bodyTop+i}}}else {d=m}}}a.position=a.scrollTop}if(t&&!v.contains(q)){n=b.actionableMode?b.actionPosition:b.lastFocused;if(n&&n.column){b.onFocusLeave({});n.column.focus()}}d=Math.max(Math.floor(d),0);if(b.positionBody){a.setBodyTop(d)}if(g&&f&&!f.disabled){f.scrollTop=f.position=a.scrollTop;if(f.view.ownerCt.isVisible()){s=f.onRangeFetched(null,e,j,x,!0);if(b.ownerGrid.syncRowHeight||f.variableRowHeight!==k){a.syncRowHeights(g,s);a.bodyHeight=b.body.dom.offsetHeight}}if(f.bodyTop!==d){f.setBodyTop(d)}f.view.setScrollY(a.scrollTop)}return g},syncRowHeights:function(b,e){var d=this,c=0,f=1,i=[],h=[],j=Ext.grid.locking.RowSynchronizer,a,g;if(b&&e){c=b.length;f=e.length}if(c!==f){b=d.view.all.slice();e=d.view.lockingPartner.all.slice();c=f=b.length}for(a=0;ae||i+a.bodyHeightc||j+a.bodyHeightc){return a.getLastVisibleRowIndex(f,b-1,e,c)}k=i+l[b].offsetHeight;if(k>=c){return b}else {if(b!==d){return a.getLastVisibleRowIndex(b+1,d,e,c)}}}return a.getFirstVisibleRowIndex()+Math.ceil(h/a.rowHeight)},getScrollHeight:function(){var a=this,j=a.view,d=j.all,i=a.store,c=i.getCount(),g=d.getCount(),h,f,e,b;if(!c){return 0}if(!a.hasOwnProperty('rowHeight')){if(g){if(a.variableRowHeight){a.rowHeight=Math.floor(a.bodyHeight/g)}else {h=d.first();f=h.getHeight();if(Ext.isIE8){e=h.getBorderWidth('b');if(e>0){f-=e}}a.rowHeight=f}}else {delete a.rowHeight}}if(a.variableRowHeight){if(d.endIndex===c-1){b=a.bodyTop+a.bodyHeight-1}else {b=Math.floor((c-g)*a.rowHeight)+a.bodyHeight;b+=a.bodyTop-d.startIndex*a.rowHeight}}else {b=Math.floor(c*a.rowHeight)}return a.scrollHeight=b},attemptLoad:function(b,c){var a=this;if(a.scrollToLoadBuffer){if(!a.loadTask){a.loadTask=new Ext.util.DelayedTask(a.doAttemptLoad,a,[])}a.loadTask.delay(a.scrollToLoadBuffer,a.doAttemptLoad,a,[b,c])}else {a.doAttemptLoad(b,c)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(b,c){var a=this;if(!a.destroyed){a.store.getRange(b,c,{loadId:++a.loadId,callback:function(e,f,g,d){if(d.loadId===a.loadId){a.onRangeFetched(e,f,g,d)}},fireEvent:!1})}},destroy:function(){var a=this,b=a.view;a.cancelLoad();if(b&&b.el){b.un('scroll',a.onViewScroll,a)}if(a.store){a.unbindStore()}a.viewListeners=a.gridListeners=a.view=a.grid=Ext.destroy(a.viewListeners,a.stretcher,a.gridListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,['plugin.bufferedrenderer'],0,[Ext.grid.plugin,'BufferedRenderer'],function(a){if(Ext.supports.Touch){a.prototype.leadingBufferZone=a.prototype.trailingBufferZone=2;a.prototype.numFromEdge=1}});Ext.cmd.derive('Ext.grid.plugin.Editing',Ext.plugin.Abstract,{clicksToEdit:2,triggerEvent:undefined,relayedEvents:['beforeedit','edit','validateedit','canceledit'],defaultFieldUI:'default',defaultFieldXType:'textfield',editStyle:'',constructor:function(b){var a=this;Ext.plugin.Abstract.prototype.constructor.call(this,b);a.mixins.observable.constructor.call(a);a.on('edit',function(c,d){a.fireEvent('afteredit',c,d)})},init:function(b){var a=this,c=b.ownerLockable;a.grid=b;a.view=b.view;a.initEvents();if(b.rendered){a.setup()}else {a.mon(b,{beforereconfigure:a.onBeforeReconfigure,reconfigure:a.onReconfigure,scope:a,beforerender:{fn:a.onBeforeRender,single:!0,scope:a}})}b.editorEventRelayers=b.relayEvents(a,a.relayedEvents);if(c){c.editorEventRelayers=c.relayEvents(a,a.relayedEvents)}b.isEditable=!0;b.editingPlugin=b.view.editingPlugin=a},onBeforeReconfigure:function(){this.reconfiguring=!0},onReconfigure:function(){this.setup();delete this.reconfiguring},onBeforeRender:function(){this.setup()},setup:function(){this.initFieldAccessors(this.grid.getTopLevelColumnManager().getColumns())},destroy:function(){var b=this,a=b.grid;Ext.destroy(b.keyNav);b.clearListeners();if(a){if(a.ownerLockable){Ext.destroy(a.ownerLockable.editorEventRelayers);a.ownerLockable.editorEventRelayers=null}Ext.destroy(a.editorEventRelayers);a.editorEventRelayers=null;a.editingPlugin=a.view.editingPlugin=b.grid=b.view=b.editor=b.keyNav=null}Ext.plugin.Abstract.prototype.destroy.call(this)},getEditStyle:function(){return this.editStyle},initFieldAccessors:function(a){if(a.isGroupHeader){a=a.getGridColumns()}else {if(!Ext.isArray(a)){a=[a]}}var d=this,c,h=a.length,e=function(c,b){return d.getColumnField(this,b)},f=function(){return d.hasColumnField(this)},g=function(b){d.setColumnField(this,b)},b;for(c=0;c[isFormField]'),j=g.length,b,a,c;for(b=0;b0);if(r){a.widthModel=a.heightModel=null;k=d.getSizeModel(b&&b.widthModel.pairsByHeightOrdinal[b.heightModel.ordinal]);if(j){a.sizeModel=k}a.widthModel=k.width;a.heightModel=k.height;if(b&&!a.isComponentChild){if(h.needsItemSize||!d.liquidLayout){b.remainingChildDimensions+=2}else {if(a.widthModel.calculated){++b.remainingChildDimensions}if(a.heightModel.calculated){++b.remainingChildDimensions}}}}else {if(c){a.recoverProp('x',c,e);a.recoverProp('y',c,e);if(a.widthModel.calculated){a.recoverProp('width',c,e)}else {if('width' in c){++m}}if(a.heightModel.calculated){a.recoverProp('height',c,e)}else {if('height' in c){++m}}if(b&&!a.isComponentChild){b.remainingChildDimensions+=m}}}if(c&&h&&h.manageMargins){a.recoverProp('margin-top',c,e);a.recoverProp('margin-right',c,e);a.recoverProp('margin-bottom',c,e);a.recoverProp('margin-left',c,e)}if(i){f=i.heightModel;g=i.widthModel;if(g&&f&&p&&o){if(p.shrinkWrap&&o.shrinkWrap){if(g.constrainedMax&&f.constrainedMin){f=null}}}if(g){a.widthModel=g}if(f){a.heightModel=f}if(i.state){Ext.apply(a.state,i.state)}}return s},initContinue:function(f){var b=this,a=b.ownerCtContext,g=b.target,c=b.widthModel,e=g.getInherited(),d;if(c.fixed){e.inShrinkWrapTable=!1}else {delete e.inShrinkWrapTable}if(f){if(a&&c.shrinkWrap){d=a.isBoxParent?a:a.boxParent;if(d){d.addBoxChild(b)}}else {if(c.natural){b.boxParent=a}}}return f},initDone:function(d){var a=this,b=a.props,c=a.state;if(a.remainingChildDimensions===0){b.containerChildrenSizeDone=!0}if(d){b.containerLayoutDone=!0}if(a.boxChildren&&a.boxChildren.length&&a.widthModel.shrinkWrap){a.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var a=this,b=a.target,c=a.ownerCtContext;if(c&&c.isTopLevel){a.animatePolicy=b.ownerLayout.getAnimatePolicy(a)}else {if(!c&&b.isCollapsingOrExpanding&&b.animCollapse){a.animatePolicy=b.componentLayout.getAnimatePolicy(a)}}if(a.animatePolicy){a.context.queueAnimation(a)}},addBlock:function(f,a,e){var b=this,d=b[f]||(b[f]={}),c=d[e]||(d[e]={});if(!c[a.id]){c[a.id]=a;++a.blockCount;++b.context.blockCount}},addBoxChild:function(a){var d=this,b,c=a.widthModel;a.boxParent=this;a.measuresBox=c.shrinkWrap?a.hasRawContent:c.natural;if(a.measuresBox){b=d.boxChildren;if(b){b.push(a)}else {d.boxChildren=[a]}}},addPositionStyles:function(b,c){var d=c.x,e=c.y,a=0;if(d!==undefined){b.left=d+'px';++a}if(e!==undefined){b.top=e+'px';++a}return a},addTrigger:function(c,e){var b=this,h=e?'domTriggers':'triggers',f=b[h]||(b[h]={}),g=b.context,a=g.currentLayout,d=f[c]||(f[c]={});if(!d[a.id]){d[a.id]=a;++a.triggerCount;d=g.triggers[e?'dom':'data'];(d[a.id]||(d[a.id]=[])).push({item:this,prop:c});if(b.props[c]!==undefined){if(!e||!(b.dirty&&c in b.dirty)){++a.firedTriggers}}}},boxChildMeasured:function(){var a=this,b=a.state,c=b.boxesMeasured=(b.boxesMeasured||0)+1;if(c===a.boxChildren.length){b.clearBoxWidth=1;++a.context.progressCount;a.markDirty()}},borderNames:['border-top-width','border-right-width','border-bottom-width','border-left-width'],marginNames:['margin-top','margin-right','margin-bottom','margin-left'],paddingNames:['padding-top','padding-right','padding-bottom','padding-left'],trblNames:['top','right','bottom','left'],cacheMissHandlers:{borderInfo:function(b){var a=b.getStyles(b.borderNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},marginInfo:function(b){var a=b.getStyles(b.marginNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},paddingInfo:function(b){var c=b.frameBodyContext||b,a=c.getStyles(b.paddingNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(c){var a=this[c],b;if(a){for(b in a){this.clearBlocks(c,b)}}},clearBlocks:function(g,f){var c=this[g],b=c&&c[f],d,a,e;if(b){delete c[f];d=this.context;for(e in b){a=b[e];--d.blockCount;if(!--a.blockCount&&!a.pending&&!a.done){d.queueLayout(a)}}}},block:function(b,a){this.addBlock('blocks',b,a)},domBlock:function(b,a){this.addBlock('domBlocks',b,a)},fireTriggers:function(g,e){var c=this[g],b=c&&c[e],f=this.context,a,d;if(b){for(d in b){a=b[d];++a.firedTriggers;if(!a.done&&!a.blockCount&&!a.pending){f.queueLayout(a)}}}},flush:function(){var a=this,d=a.dirty,b=a.state,c=a.el;a.dirtyCount=0;if('attributes' in a){c.set(a.attributes);delete a.attributes}if('innerHTML' in a){c.innerHTML=a.innerHTML;delete a.innerHTML}if(b&&b.clearBoxWidth){b.clearBoxWidth=0;a.el.setStyle('width',null);if(!--b.blocks){a.context.queueItemLayouts(a)}}if(d){delete a.dirty;a.writeProps(d,!0)}},flushAnimations:function(){var b=this,k=b.previousSize,a,h,l,f,d,g,e,m,c,j,i;if(k){a=b.target;h=a.getAnimationProps();l=h.duration;f=Ext.Object.getKeys(b.animatePolicy);d=Ext.apply({},{from:{},to:{},duration:l||Ext.fx.Anim.prototype.duration},h);for(g=0,e=0,m=f.length;e0},runLayout:function(a){var b=this,c=b.getCmp(a.owner);a.pending=!1;if(c.state.blocks){return}a.done=!0;++a.calcCount;++b.calcCount;a.calculate(c);if(a.done){b.layoutDone(a);if(a.completeLayout){b.queueCompletion(a)}if(a.finalizeLayout){b.queueFinalize(a)}}else {if(!a.pending&&!a.invalid&&!(a.blockCount+a.triggerCount-a.firedTriggers)){b.queueLayout(a)}}},setItemSize:function(a,g,f){var b=a,c=1,e,d;if(a.isComposite){b=a.elements;c=b.length;a=b[0]}else {if(!a.dom&&!a.el){c=b.length;a=b[0]}}for(d=0;da){a=d.weight}}},this);return a},getSplitterTarget:function(b){var a=b.collapseTarget;if(a&&a.collapsed){return a.placeholder||a}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},insertSplitter:function(a,f,e,d){var c=a.region,b=Ext.apply({xtype:'bordersplitter',collapseTarget:a,id:a.id+'-splitter',hidden:e,canResize:a.splitterResize!==!1,splitterFor:a,synthetic:!0},d),g=f+(c==='south'||c==='east'?0:1);if(a.collapseMode==='mini'){b.collapsedCls=a.collapsedCls}a.splitter=this.owner.add(g,b)},getMoveAfterIndex:function(b){var a=Ext.layout.container.Container.prototype.getMoveAfterIndex.apply(this,arguments);if(b.splitter){a++}return a},moveItemBefore:function(c,a){var b;if(a&&a.splitter){b=a.region;if(b==='south'||b==='east'){a=a.splitter}}return Ext.layout.container.Container.prototype.moveItemBefore.call(this,c,a)},onAdd:function(a,i){var b=this,d=a.placeholderFor,f=a.region,e,c,g,h;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(f){Ext.apply(a,b.regionFlags[f]);if(b.owner.isViewport){a.isViewportBorderChild=!0}if(a.initBorderRegion){a.initBorderRegion()}e=f==='center';if(e){b.centerRegion=a}else {c=a.split;g=!!a.hidden;if(typeof c==='object'){h=c;c=!0}if((a.isHorz||a.isVert)&&(c||a.collapseMode==='mini')){b.insertSplitter(a,i,g||!c,h)}}if(!e&&!a.hasOwnProperty('collapseMode')){a.collapseMode=b.panelCollapseMode}if(!a.hasOwnProperty('animCollapse')){if(a.collapseMode!=='placeholder'){a.animCollapse=!1}else {a.animCollapse=b.panelCollapseAnimate}}}else {if(d){Ext.apply(a,b.regionFlags[d.region]);a.region=d.region;a.weight=d.weight}}},onDestroy:function(){this.centerRegion=null;Ext.layout.container.Container.prototype.onDestroy.call(this)},onRemove:function(a,f){var d=this,h=a.region,e=a.splitter,c=d.owner,g=c.destroying,b;if(h){if(a.isCenter){d.centerRegion=null}delete a.isCenter;delete a.isHorz;delete a.isVert;if(e&&!c.destroying){c.doRemove(e,!0)}delete a.splitter}Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(!g&&!f&&a.rendered){b=a.getEl();if(b){b.setStyle('top','');b.setStyle(d.horzPositionProp,'')}}},regionMeta:{center:{splitterDelta:0},north:{splitterDelta:1},south:{splitterDelta:-1},west:{splitterDelta:1},east:{splitterDelta:-1}},regionFlags:{center:{isCenter:!0,isHorz:!1,isVert:!1},north:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'top'},south:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'bottom'},west:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'left'},east:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'right'}},setupSplitterNeighbors:function(l){var i={},m=l.length,k=this.touchedRegions,h,b,j,g,d,a,f,e,c;for(h=0;h{%this.renderBody(out, values)%}'],targetElCls:'x-center-target',beginLayout:function(b){var h=this,f=h.percentRe,e,g,d,c,a,j,i;Ext.layout.container.Fit.prototype.beginLayout.call(this,b);e=b.childItems;for(d=0,g=e.length;dm){a=m}}if(a-d<2){return null}c=new Ext.util.Region(v,t,s,u);i.constraintAdjusters[i.getCollapseDirection()](c,d,a,e);i.dragInfo={minRange:d,maxRange:a,targetSize:q};return c},constraintAdjusters:{left:function(a,c,b,d){a[0]=a.x=a.left=a.right+c;a.right+=b+d.getWidth()},top:function(a,c,b,d){a[1]=a.y=a.top=a.bottom+c;a.bottom+=b+d.getHeight()},bottom:function(a,c,b,d){a.bottom=a.top-c;a.top-=b+d.getHeight()},right:function(a,c,b,d){a.right=a.left-c;a[0]=a.x=a.left=a.x-b+d.getWidth()}},onBeforeStart:function(h){var c=this,f=c.splitter,d=f.collapseTarget,e=f.neighbors,g=e.length,a,b;if(d.collapsed){return !1}for(a=0;ad){a.minWidth=a.el.getWidth()*c}else {a.minHeight=a.el.getHeight()*d}}if(a.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)},a.throttle);a.resize=function(f,d,c){if(c){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)}else {e.apply(null,arguments)}}}},onBeforeStart:function(a){this.startBox=this.target.getBox()},getProxy:function(){var a=this;if(!a.dynamic&&!a.proxy){a.proxy=a.createProxy(a.target||a.el);a.hideProxy=!0}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(a){var b,c=this.proxyCls;if(a.isComponent){b=a.getProxy().addCls(c)}else {b=a.createProxy({tag:'div',role:'presentation',cls:c,id:a.id+'-rzproxy'},Ext.getBody())}b.removeCls('x-proxy-el');return b},onStart:function(a){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(c,b){var a=Ext.fly(b.parentNode);Ext.dd.DragTracker.prototype.onMouseDown.apply(this,arguments);if(a&&a.shim){a.maskIframes()}},onMouseUp:function(b){var a=Ext.fly(this.dragTarget.parentNode);Ext.dd.DragTracker.prototype.onMouseUp.apply(this,arguments);if(a&&a.shim){a.unmaskIframes()}},onDrag:function(a){if(this.dynamic||this.proxy){this.updateDimensions(a)}},updateDimensions:function(s,r){var c=this,h=c.activeResizeHandle.region,d=c.getOffset(c.constrainTo?'dragTarget':null),b=c.startBox,n,f=0,e=0,k,j,l=0,m=0,q,i,g,a,o,p;h=c.convertRegionName(h);switch(h){case 'south':e=d[1];g=2;break;case 'north':e=-d[1];m=-e;g=2;break;case 'east':f=d[0];g=1;break;case 'west':f=-d[0];l=-f;g=1;break;case 'northeast':e=-d[1];m=-e;f=d[0];i=[b.x,b.y+b.height];g=3;break;case 'southeast':e=d[1];f=d[0];i=[b.x,b.y];g=3;break;case 'southwest':f=-d[0];l=-f;e=d[1];i=[b.x+b.width,b.y];g=3;break;case 'northwest':e=-d[1];m=-e;f=-d[0];l=-f;i=[b.x+b.width,b.y+b.height];g=3;break;}a={width:b.width+f,height:b.height+e,x:b.x+l,y:b.y+m};k=Ext.Number.snap(a.width,c.widthIncrement);j=Ext.Number.snap(a.height,c.heightIncrement);if(k!==a.width||j!==a.height){switch(h){case 'northeast':a.y-=j-a.height;break;case 'north':a.y-=j-a.height;break;case 'southwest':a.x-=k-a.width;break;case 'west':a.x-=k-a.width;break;case 'northwest':a.x-=k-a.width;a.y-=j-a.height;}a.width=k;a.height=j}if(a.widthc.maxWidth){a.width=Ext.Number.constrain(a.width,c.minWidth,c.maxWidth);if(l){a.x=b.x+(b.width-a.width)}}else {c.lastX=a.x}if(a.heightc.maxHeight){a.height=Ext.Number.constrain(a.height,c.minHeight,c.maxHeight);if(m){a.y=b.y+(b.height-a.height)}}else {c.lastY=a.y}if(c.preserveRatio||s.shiftKey){n=c.startBox.width/c.startBox.height;o=Math.min(Math.max(c.minHeight,a.width/n),c.maxHeight);p=Math.min(Math.max(c.minWidth,a.height*n),c.maxWidth);if(g===1){a.height=o}else {if(g===2){a.width=p}else {q=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(q>n){a.height=o}else {a.width=p}if(h==='northeast'){a.y=b.y-(a.height-b.height)}else {if(h==='northwest'){a.y=b.y-(a.height-b.height);a.x=b.x-(a.width-b.width)}else {if(h==='southwest'){a.x=b.x-(a.width-b.width)}}}}}}c.setPosition=a.x!==c.startBox.x||a.y!==c.startBox.y;c.resize(a,r)},resize:function(b,e){var a=this,c,d=a.setPosition;if(a.dynamic||!a.dynamic&&e){if(d){a.target.setBox(b)}else {a.target.setSize(b.width,b.height)}}if(!e){c=a.getProxy();if(c&&c!==a.target){if(d||a.hideProxy){c.setBox(b)}else {c.setSize(b.width,b.height)}}}},onEnd:function(a){this.updateDimensions(a,!0);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,'ResizeTracker'],0);Ext.cmd.derive('Ext.resizer.Resizer',Ext.Base,{alternateClassName:'Ext.Resizable',handleCls:'x-resizable-handle',overCls:'x-resizable-handle-over',pinnedCls:'x-resizable-pinned',wrapCls:'x-resizable-wrap',wrappedCls:'x-resizable-wrapped',delimiterRe:/(?:\s*[,;]\s*)|\s+/,dynamic:!0,handles:'s e se',height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:!1,preserveRatio:!1,transparent:!1,possiblePositions:{n:'north',s:'south',e:'east',w:'west',se:'southeast',sw:'southwest',nw:'northwest',ne:'northeast'},ariaRole:'presentation',constructor:function(e){var a=this,d=a.handles,q=Ext.dom.Element.unselectableCls,h=[],b,k,i,m,p,c,f,n,l,g,o,j;if(Ext.isString(e)||Ext.isElement(e)||e.dom){b=e;e=arguments[1]||{};e.target=b}a.mixins.observable.constructor.call(a,e);b=a.target;if(b){if(b.isComponent){b.addClsWithUI('resizable');if(b.minWidth){a.minWidth=b.minWidth}if(b.minHeight){a.minHeight=b.minHeight}if(b.maxWidth){a.maxWidth=b.maxWidth}if(b.maxHeight){a.maxHeight=b.maxHeight}if(b.floating){if(!a.hasOwnProperty('handles')){a.handles='n ne e se s sw w nw'}}a.el=b.getEl()}else {b=a.el=a.target=Ext.get(b)}}else {b=a.target=a.el=Ext.get(a.el)}a.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(a.width)){a.width=Ext.Number.constrain(a.width,a.minWidth,a.maxWidth)}if(Ext.isNumber(a.height)){a.height=Ext.Number.constrain(a.height,a.minHeight,a.maxHeight)}if(a.width!==null||a.height!==null){a.target.setSize(a.width,a.height)}m=a.el.dom.tagName.toUpperCase();if(m==='TEXTAREA'||m==='IMG'||m==='TABLE'){a.originalTarget=a.target;g=b.isComponent?b.getEl():b;a.el.addCls(a.wrappedCls);a.target=a.el=a.el.wrap({role:'presentation',cls:a.wrapCls,id:a.el.id+'-rzwrap',style:g.getStyle(['margin-top','margin-bottom'])});o=g.getPositioning();a.el.setPositioning(o);g.clearPositioning();l=g.getBox();if(o.position!=='absolute'){l.x=0;l.y=0}a.el.setBox(l);g.setStyle('position','absolute');a.isTargetWrapped=!0}a.el.position();if(a.pinned){a.el.addCls(a.pinnedCls)}a.resizeTracker=new Ext.resizer.ResizeTracker({disabled:a.disabled,target:b,el:a.el,constrainTo:a.constrainTo,handleCls:a.handleCls,overCls:a.overCls,throttle:a.throttle,proxy:a.originalTarget?a.el:null,dynamic:a.originalTarget?!0:a.dynamic,originalTarget:a.originalTarget,delegate:'.'+a.handleCls,preserveRatio:a.preserveRatio,heightIncrement:a.heightIncrement,widthIncrement:a.widthIncrement,minHeight:a.minHeight,maxHeight:a.maxHeight,minWidth:a.minWidth,maxWidth:a.maxWidth});a.resizeTracker.on({mousedown:a.onBeforeResize,drag:a.onResize,dragend:a.onResizeEnd,scope:a});if(a.handles==='all'){a.handles='n s e w ne nw se sw'}d=a.handles=a.handles.split(a.delimiterRe);i=a.possiblePositions;p=d.length;k=a.handleCls+' '+a.handleCls+'-{0}';if(a.target.isComponent){j=a.target.baseCls;k+=' '+j+'-handle '+j+'-handle-{0}';if(Ext.supports.CSS3BorderRadius){k+=' '+j+'-handle-{0}-br'}}for(c=0;c')}}Ext.DomHelper.append(a.el,h.join(''));h.length=0;for(c=0;c-1){this.doSelect(a.record,!1,b)}},onCellDeselect:function(a,b){if(a&&a.rowIdx!==undefined){this.doDeselect(a.record,b)}},onSelectChange:function(g,f,e,h){var b=this,a,c,d;if(f){a=b.nextSelection;c='select'}else {a=b.selection;c='deselect'}d=a.view||b.primaryView;if((e||b.fireEvent('before'+c,b,g,a.rowIdx,a.colIdx))!==!1&&h()!==!1){if(f){d.onCellSelect(a)}else {d.onCellDeselect(a);delete b.selection}if(!e){b.fireEvent(c,b,g,a.rowIdx,a.colIdx)}}},refresh:function(){var b=this.getPosition(),a;if(b&&(a=this.store.indexOf(this.selected.last()))!==-1){b.rowIdx=a}},onColumnMove:function(b,d,c,e){var a=b.up('tablepanel');if(a){this.onViewRefresh(a.view)}},onUpdate:function(c){var a=this,b;if(a.isSelected(c)){b=a.selecting?a.nextSelection:a.selection;a.view.onCellSelect(b)}},onViewRefresh:function(d){var f=this,b=f.getPosition(),g,c=d.headerCt,e,a;if(b&&b.view===d){e=b.record;a=b.column;if(!a.isDescendantOf(c)){a=c.queryById(a.id)||c.down('[text="'+a.text+'"]')||c.down('[dataIndex="'+a.dataIndex+'"]')}if(b.record){if(a&&d.store.indexOfId(e.getId())!==-1){g=(new Ext.grid.CellContext(d)).setPosition({row:e,column:a});f.setPosition(g)}}else {f.selection=null}}},selectByPosition:function(b,a){this.setPosition(b,a)}},0,0,0,0,['selection.cellmodel'],0,[Ext.selection,'CellModel'],0);Ext.cmd.derive('Ext.selection.RowModel',Ext.selection.DataViewModel,{enableKeyNav:!0,isRowModel:!0,deselectOnContainerClick:!1,onUpdate:function(b){var d=this,a=d.view,c;if(a&&d.isSelected(b)){c=a.indexOf(b);a.onRowSelect(c);if(b===d.lastFocused){a.onRowFocus(c,!0)}}},onSelectChange:function(c,g,e,j){var a=this,i=a.views||[a.view],k=i.length,b=a.store.indexOf(c),h=g?'select':'deselect',f,d;if((e||a.fireEvent('before'+h,a,c,b))!==!1&&j()!==!1){for(f=0;f '},selectByPosition:function(a,b){if(!a.isCellContext){a=(new Ext.grid.CellContext(this.view)).setPosition(a.row,a.column)}if(!this.checkOnly||a.column===this.column){Ext.selection.RowModel.prototype.selectByPosition.call(this,a,b)}},onSelectChange:function(){Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(!this.suspendChange){this.updateHeaderState()}},onStoreLoad:function(){Ext.selection.RowModel.prototype.onStoreLoad.apply(this,arguments);this.updateHeaderState()},onStoreAdd:function(){Ext.selection.RowModel.prototype.onStoreAdd.apply(this,arguments);this.updateHeaderState()},onStoreRemove:function(){Ext.selection.RowModel.prototype.onStoreRemove.apply(this,arguments);this.updateHeaderState()},onStoreRefresh:function(){Ext.selection.RowModel.prototype.onStoreRefresh.apply(this,arguments);this.updateHeaderState()},maybeFireSelectionChange:function(a){if(a&&!this.suspendChange){this.updateHeaderState()}Ext.selection.RowModel.prototype.maybeFireSelectionChange.apply(this,arguments)},resumeChanges:function(){Ext.selection.RowModel.prototype.resumeChanges.call(this);if(!this.suspendChange){this.updateHeaderState()}},updateHeaderState:function(){var a=this,e=a.store,g=e.getCount(),h=a.views,c=!1,f=0,d,i,b;if(!e.isBufferedStore&&g>0){d=a.selected;c=!0;for(b=0,i=d.getCount();b style="{bodyStyle}">{%this.renderContainer(out,values)%}',_reverseDockNames:{left:'right',right:'left'},_layoutAlign:{top:'end',right:'begin',bottom:'begin',left:'end'},initComponent:function(){var a=this,b=a.initialConfig.layout,d=b&&b.align,c=b&&b.overflowHandler;if(a.plain){a.addCls(a.baseCls+'-plain')}Ext.panel.Bar.prototype.initComponent.call(this);a.setLayout({align:d||(a.getTabStretchMax()?'stretchmax':a._layoutAlign[a.dock]),overflowHandler:c||'scroller'});a.on({click:a.onClick,element:'el',scope:a})},ensureTabVisible:function(a){var b=this,d=b.tabPanel,c=b.layout.overflowHandler;if(b.rendered&&c&&b.tooNarrow&&c.scrollToItem){if(a||a===0){if(!a.isTab){if(Ext.isNumber(a)){a=this.items.getAt(a)}else {if(a.isComponent&&d&&d.items.contains(a)){a=a.tab}}}}if(!a){a=b.activeTab}if(a){c.scrollToItem(a)}}},initRenderData:function(){var a=this;return Ext.apply(Ext.panel.Bar.prototype.initRenderData.call(this),{bodyCls:a.bodyCls,baseBodyCls:a._baseBodyCls,bodyTargetCls:a.bodyTargetCls,stripCls:a._stripCls,dock:a.dock})},setDock:function(f){var b=this,a=b.items,d=b.ownerCt,e,c,g;a=a&&a.items;if(a){for(c=0,g=a.length;c1){if(a&&a!==b&&!a.disabled){c=a}else {c=b.next('tab[disabled=false]')||b.prev('tab[disabled=false]')}}return c||d.activeTab},setActiveTab:function(b,c){var a=this;if(!b.disabled&&b!==a.activeTab){if(a.activeTab){if(a.activeTab.destroyed){a.previousTab=null}else {a.previousTab=a.activeTab;a.activeTab.deactivate();a.deactivateFocusable(a.activeTab)}}b.activate();a.activateFocusable(b);a.activeTab=b;a.needsScroll=!0;if(!c){a.fireEvent('change',a,b,b.card);a.updateLayout()}}},privates:{adjustTabPositions:function(){var g=this,f=g.items.items,h=f.length,a,b,e,c,d;if(!Ext.isIE8){d=g._getTabAdjustProp();while(h--){a=f[h];e=a.el;b=a.lastBox;c=a.isTab?a.getActualRotation():0;if(c===1&&a.isVisible()){e.setStyle(d,b.x+b.width+'px')}else {if(c===2&&a.isVisible()){e.setStyle(d,b.x-b.height+'px')}}}}},applyTargetCls:function(a){this.bodyTargetCls=a},_getTabAdjustProp:function(){return 'left'},getTargetEl:function(){return this.body||this.frameBody||this.el},onClick:function(c,g){var f=this,e,a,b,d;if(c.getTarget('.x-box-scroller')){return}if(Ext.isIE8&&f.vertical){d=f.getTabInfoFromPoint(c.getXY());a=d.tab;b=d.close}else {e=c.getTarget('.'+Ext.tab.Tab.prototype.baseCls);a=e&&Ext.getCmp(e.id);b=a&&a.closeEl&&g===a.closeEl.dom}if(b){c.preventDefault()}if(a&&a.isDisabled&&!a.isDisabled()){a.beforeClick(b);if(a.closable&&b){a.onCloseClick()}else {f.doActivateTab(a)}}},doActivateTab:function(a){var b=this.tabPanel;if(b){if(!a.disabled){b.setActiveTab(a.card)}}else {this.setActiveTab(a)}},onFocusableContainerFocus:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocus.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},onFocusableContainerFocusEnter:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocusEnter.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},focusChild:function(d,c){var b=this,e=b.mixins.focusablecontainer,a;a=e.focusChild.call(b,d,c);if(b.activateOnFocus&&a&&a.isTab){b.doActivateTab(a)}}}},0,['tabbar'],['component','box','container','tabbar'],{'component':!0,'box':!0,'container':!0,'tabbar':!0},['widget.tabbar'],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.tab,'Bar'],0);Ext.cmd.derive('Ext.tab.Panel',Ext.panel.Panel,{alternateClassName:['Ext.TabPanel'],config:{tabBar:undefined,tabPosition:'top',tabRotation:'default',tabStretchMax:!0},removePanelHeader:!0,plain:!1,itemCls:'x-tabpanel-child',minTabWidth:undefined,maxTabWidth:undefined,deferredRender:!0,_defaultTabRotation:{top:0,right:1,bottom:0,left:2},initComponent:function(){var a=this,c=a.activeTab!==null?a.activeTab||0:null,d=a.dockedItems,b=a.header,f=a.tabBarHeaderPosition,e=a.getTabBar(),g;a.layout=new Ext.layout.container.Card(Ext.apply({owner:a,deferredRender:a.deferredRender,itemCls:a.itemCls,activeItem:c},a.layout));if(f!=null){b=a.header=Ext.apply({},b);g=b.items=b.items?b.items.slice():[];b.itemPosition=f;g.push(e);b.hasTabBar=!0}else {d=[].concat(a.dockedItems||[]);d.push(e);a.dockedItems=d}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);c=a.activeTab=a.getComponent(c);if(c){e.setActiveTab(c.tab,!0)}},onRender:function(){var b=this.items.items,c=b.length,a;Ext.panel.Panel.prototype.onRender.apply(this,arguments);for(a=0;a','
    lineempty" role="presentation">
    ','','
    -end-plus {expanderCls}" role="presentation">
    ','','
    {checkboxCls}-checked">
    ','
    ','',' role="presentation" class="{childCls} {baseIconCls} {customIconCls} ','{baseIconCls}-leafparent-expandedparent {iconCls}" ','style="background-image:url({icon})"/>>','','{value}','','{value}',''],uiFields:{checked:1,icon:1,iconCls:1},rowFields:{expanded:1,loaded:1,expandable:1,leaf:1,loading:1,qtip:1,qtitle:1,cls:1},initComponent:function(){var a=this;a.rendererScope=a.scope;a.setupRenderer();a.innerRenderer=a.renderer;a.renderer=a.treeRenderer;Ext.grid.column.Column.prototype.initComponent.call(this);a.scope=a;a.hasCustomRenderer=a.innerRenderer&&a.innerRenderer.length>1},treeRenderer:function(i,a,c,g,f,h,j){var e=this,d=c.get('cls'),b;if(a&&d){a.tdCls+=' '+d}b=e.initTemplateRendererData(i,a,c,g,f,h,j);return e.getTpl('cellTpl').apply(b)},initTemplateRendererData:function(j,i,d,m,l,n,k){var a=this,f=a.innerRenderer,b=d.data,c=d.parentNode,g=k.rootVisible,h=[],e;while(c&&(g||c.data.depth>0)){e=c.data;h[g?e.depth:e.depth-1]=e.isLast?0:1;c=c.parentNode}return {record:d,baseIconCls:a.iconCls,customIconCls:b.icon||b.iconCls?a.customIconCls:'',iconCls:b.iconCls,icon:b.icon,checkboxCls:a.checkboxCls,checked:b.checked,elbowCls:a.elbowCls,expanderCls:a.expanderCls,textCls:a.textCls,leaf:b.leaf,expandable:d.isExpandable(),expanded:b.expanded,isLast:d.isLastVisible(),blankUrl:Ext.BLANK_IMAGE_URL,href:b.href,hrefTarget:b.hrefTarget,lines:h,metaData:i,childCls:a.getChildCls?a.getChildCls()+' ':'',value:f?f.apply(a.rendererScope,arguments):j}},shouldUpdateCell:function(f,a){var e=this,c=0,d,b;if(a){d=a.length;for(;c1;Ext.grid.NavigationModel.prototype.initKeyNav.call(this,e);for(b=0,d=a.keyNav.length;b1},onCellClick:function(f,e,c,d,g,b,a){Ext.grid.NavigationModel.prototype.onCellClick.call(this,f,e,c,d,g,b,a);return !a.nodeToggled},onKeyLeft:function(b){var c=this,d=b.view,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyLeft.call(this,b)}if(b.position.column.isTreeColumn&&a.isExpanded()){d.collapse(a)}else {a=a.parentNode;if(a&&!(a.isRoot()&&!d.rootVisible)){c.setPosition(a,null,b)}}},onKeyRight:function(b){var c=this,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyRight.call(this,b)}if(!a.isLeaf()){if(b.position.column.isTreeColumn&&!a.isExpanded()){b.view.expand(a)}else {if(a.isExpanded()){a=a.childNodes[0];if(a){c.setPosition(a)}}}}},onKeyEnter:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeyEnter.call(this,a)}},onKeySpace:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else {Ext.grid.NavigationModel.prototype.onKeySpace.call(this,a)}},toggleCheck:function(a){this.view.onCheckChange(a)},onAsterisk:function(a){this.view.ownerCt.expandAll()}},0,0,0,0,['view.navigation.tree'],0,[Ext.tree,'NavigationModel'],0);Ext.cmd.derive('Ext.tree.View',Ext.view.Table,{config:{selectionModel:{type:'treemodel'}},isTreeView:!0,loadingCls:'x-grid-tree-loading',expandedCls:'x-grid-tree-node-expanded',leafCls:'x-grid-tree-node-leaf',expanderSelector:'.x-tree-expander',checkboxSelector:'.x-tree-checkbox',expanderIconOverCls:'x-tree-expander-over',nodeAnimWrapCls:'x-tree-animator-wrap',ariaRole:'tree',loadMask:!1,rootVisible:!0,expandDuration:250,collapseDuration:250,toggleOnDblClick:!0,stripeRows:!1,treeRowTpl:['{%','this.processRowValues(values);','this.nextTpl.applyOut(values, out, parent);','%}',{priority:10,processRowValues:function(a){var b=a.record,c=a.view;a.rowAttr['data-qtip']=b.get('qtip')||'';a.rowAttr['data-qtitle']=b.get('qtitle')||'';if(b.isExpanded()){a.rowClasses.push(c.expandedCls)}if(b.isLeaf()){a.rowClasses.push(c.leafCls)}if(b.isLoading()){a.rowClasses.push(c.loadingCls)}}}],initComponent:function(){var a=this;if(a.bufferedRenderer){a.animate=!1}else {if(a.initialConfig.animate===undefined){a.animate=Ext.enableFx}}a.store=a.panel.getStore();a.onRootChange(a.store.getRoot());a.animQueue={};a.animWraps={};Ext.view.Table.prototype.initComponent.call(this);a.store.setRootVisible(a.rootVisible);a.addRowTpl(Ext.XTemplate.getTpl(a,'treeRowTpl'))},onFillComplete:function(f,d,b){var a=this,e=a.store,c=e.indexOf(b[0]);d.triggerUIUpdate();if(!b.length||c===-1){return}a.onAdd(a.store,b,c);a.refreshPartner()},refreshPartner:function(){var a=this.lockingPartner;if(a){a.refresh()}},afterComponentLayout:function(e,d,c,b){var a=this.getScrollable();Ext.view.Table.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&!this.bufferedRenderer){a.refresh()}},processUIEvent:function(a){if(a.getTarget('.'+this.nodeAnimWrapCls,this.el)){return !1}return Ext.view.Table.prototype.processUIEvent.call(this,a)},setRootNode:function(a){this.node=a},getChecked:function(){var a=[];this.node.cascadeBy(function(b){if(b.get('checked')){a.push(b)}});return a},isItemChecked:function(a){return a.get('checked')},createAnimWrap:function(b,e){var d=this,c=d.getNode(b),a;a=Ext.fly(c).insertSibling({role:'presentation',tag:'div',cls:d.nodeAnimWrapCls},'after');return {record:b,node:c,el:a,expanding:!1,collapsing:!1,animateEl:a,targetEl:a}},getAnimWrap:function(a,d){if(!this.animate){return null}var c=this.animWraps,b=c[a.internalId];if(d!==!1){while(!b&&a){a=a.parentNode;if(a){b=c[a.internalId]}}}return b},doAdd:function(h,c){var d=this,l=h[0],i=l.parentNode,m=d.all,e,a=d.getAnimWrap(i),g,f,k,j,b;if(!a||!a.expanding){return Ext.view.Table.prototype.doAdd.call(this,h,c)}j=d.bufferRender(h,c,!0);b=j.children;i=a.record;g=a.targetEl;f=g.dom.childNodes;k=f.length;e=c-d.indexInStore(i)-1;if(!k||e>=k){g.appendChild(j.fragment,!0)}else {Ext.fly(f[e]).insertSibling(b,'before',!0)}m.insert(c,b);return b},onRemove:function(h,c,b){var a=this,g,d,e=a.hasListeners.remove,f;if(a.viewReady){g=a.store.getCount()===0;if(a.bufferedRenderer){return Ext.view.Table.prototype.onRemove.call(this,h,c,b)}if(e){f=this.all.slice(b,b+c.length)}if(g){a.refresh()}else {for(d=c.length-1,b+=d;d>=0;--d,--b){a.doRemove(c[d],b)}a.refreshSizePending=!0}if(e){a.fireEvent('itemremove',c,b,f,a)}}},doRemove:function(c,b){var g=this,f=g.all,a=g.getAnimWrap(c),d=f.item(b),e=d?d.dom:null;if(!e||!a||!a.collapsing){return Ext.view.Table.prototype.doRemove.call(this,c,b)}a.targetEl.dom.insertBefore(e,a.targetEl.dom.firstChild);f.removeElement(b)},onBeforeExpand:function(c,d,e){var b=this,a;if(b.rendered&&b.all.getCount()&&b.animate){if(b.getNode(c)){a=b.getAnimWrap(c,!1);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c);a.animateEl.setHeight(0)}else {if(a.collapsing){a.targetEl.select(b.itemSelector).destroy()}}a.expanding=!0;a.collapsing=!1}}},onExpand:function(b){var a=this,h=a.animQueue,i=b.getId(),f=a.getNode(b),g=f?a.indexOf(f):-1,c,d,e;if(a.singleExpand){a.ensureSingleExpand(b)}if(g===-1){return}c=a.getAnimWrap(b,!1);if(!c){b.isExpandingOrCollapsing=!1;a.fireEvent('afteritemexpand',b,g,f);return}d=c.animateEl;e=c.targetEl;d.stopAnimation();h[i]=!0;Ext.on('idle',function(){d.dom.style.height='0px'},null,{single:!0});d.animate({from:{height:0},to:{height:e.dom.scrollHeight},duration:a.expandDuration,listeners:{afteranimate:function(){var f=e.dom.childNodes,d=Ext.Element.getActiveElement();if(f.length){if(!e.contains(d)){d=null}c.el.insertSibling(f,'before',!0);if(d){Ext.fly(d).focus()}}c.el.destroy();a.animWraps[c.record.internalId]=h[i]=null}},callback:function(){b.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemexpand',b,g,f)}})},onBeforeCollapse:function(c,g,f,d,e){var b=this,a;if(b.rendered&&b.all.getCount()){if(b.animate){if(c.isVisible()){a=b.getAnimWrap(c);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c,f)}else {if(a.expanding){a.targetEl.select(this.itemSelector).destroy()}}a.expanding=!1;a.collapsing=!0;a.callback=d;a.scope=e}}else {b.onCollapseCallback=d;b.onCollapseScope=e}}},onCollapse:function(c){var a=this,g=a.animQueue,h=c.getId(),d=a.getNode(c),f=d?a.indexOf(d):-1,b=a.getAnimWrap(c),e;if(!a.all.getCount()||!c.isVisible()){return}if(!b){c.isExpandingOrCollapsing=!1;a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(a.onCollapseCallback,a.onCollapseScope);a.onCollapseCallback=a.onCollapseScope=null;return}e=b.animateEl;g[h]=!0;e.stopAnimation();e.animate({to:{height:0},duration:a.collapseDuration,listeners:{afteranimate:function(){b.el.destroy();a.animWraps[b.record.internalId]=g[h]=null}},callback:function(){c.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(b.callback,b.scope);b.callback=b.scope=null}})},isAnimating:function(a){return !!this.animQueue[a.getId()]},expand:function(a,f,d,e){var g=this,b=!!g.animate,c;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}Ext.suspendLayouts();c=a.expand(f,d,e);Ext.resumeLayouts(!0);return c}},collapse:function(a,e,c,d){var f=this,b=!!f.animate;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}return a.collapse(e,c,d)}},toggle:function(a,d,b,c){if(a.isExpanded()){this.collapse(a,d,b,c)}else {this.expand(a,d,b,c)}},onItemDblClick:function(a,e,d,f){var b=this,c=b.editingPlugin;Ext.view.Table.prototype.onItemDblClick.call(this,a,e,d,f);if(b.toggleOnDblClick&&a.isExpandable()&&!(c&&c.clicksToEdit===2)){b.toggle(a)}},onCellClick:function(d,g,c,i,h,a){var b=this,f=a.position.column,e;if(f.isTreeColumn){if(a.getTarget(b.checkboxSelector,d)&&Ext.isBoolean(e=c.get('checked'))&&b.fireEvent('beforecheckchange',c,e,a)!==!1){b.onCheckChange(a);if(f.stopSelection){a.stopSelection=!0}}else {if(a.getTarget(b.expanderSelector,d)&&c.isExpandable()){b.getNavigationModel().setPosition(a.position);b.toggle(c,a.ctrlKey);a.nodeToggled=!0}}return Ext.view.Table.prototype.onCellClick.call(this,d,g,c,i,h,a)}},onCheckChange:function(c){var a=c.record,b=!a.get('checked');a.set('checked',b);this.fireEvent('checkchange',a,b,c)},onItemMouseOver:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).addCls(this.expanderIconOverCls)}},onItemMouseOut:function(c,b,d,a){if(a.getTarget(this.expanderSelector,b)){a.getTarget(this.cellSelector,null,!0).removeCls(this.expanderIconOverCls)}},getStoreListeners:function(){return Ext.apply(Ext.view.Table.prototype.getStoreListeners.call(this),{rootchange:this.onRootChange,fillcomplete:this.onFillComplete})},onBindStore:function(b,f,e,a){var d=a&&a.getRootNode(),c=b&&b.getRootNode();Ext.view.Table.prototype.onBindStore.call(this,b,f,e,a);if(c!==d){this.onRootChange(c,d)}},onRootChange:function(b,c){var a=this,d=a.grid;if(c){a.rootListeners.destroy();a.rootListeners=null}if(b){a.rootListeners=b.on({beforeexpand:a.onBeforeExpand,expand:a.onExpand,beforecollapse:a.onBeforeCollapse,collapse:a.onCollapse,destroyable:!0,scope:a});d.addRelayers(b)}},ensureSingleExpand:function(b){var a=b.parentNode;if(a){a.eachChild(function(a){if(a!==b&&a.isExpanded()){a.collapse()}})}}},0,['treeview'],['component','box','dataview','tableview','gridview','treeview'],{'component':!0,'box':!0,'dataview':!0,'tableview':!0,'gridview':!0,'treeview':!0},['widget.treeview'],0,[Ext.tree,'View'],0);Ext.cmd.derive('Ext.tree.Panel',Ext.panel.Table,{alternateClassName:['Ext.tree.TreePanel','Ext.TreePanel'],viewType:'treeview',treeCls:'x-tree-panel',rowLines:!1,lines:!0,useArrows:!1,singleExpand:!1,ddConfig:{enableDrag:!0,enableDrop:!0},rootVisible:!0,displayField:'text',root:null,normalCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible','scroll'],lockedCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible'],isTree:!0,arrowCls:'x-tree-arrows',linesCls:'x-tree-lines',noLinesCls:'x-tree-no-lines',autoWidthCls:'x-autowidth-table',constructor:function(a){a=a||{};if(a.animate===undefined){a.animate=Ext.isBoolean(this.animate)?this.animate:Ext.enableFx}this.enableAnimations=a.animate;delete a.animate;Ext.panel.Table.prototype.constructor.call(this,a)},initComponent:function(){var a=this,c=[a.treeCls],b,d;if(a.useArrows){c.push(a.arrowCls);a.lines=!1}if(a.lines){c.push(a.linesCls)}else {if(!a.useArrows){c.push(a.noLinesCls)}}b=a.applyStore(a.store);if(!b.getRoot()){b.setRoot({})}b.setRootVisible(a.rootVisible);a.viewConfig=Ext.apply({rootVisible:a.rootVisible,animate:a.enableAnimations,singleExpand:a.singleExpand,node:b.getRoot(),hideHeaders:a.hideHeaders,navigationModel:'tree'},a.viewConfig);if(!a.columns){if(a.initialConfig.hideHeaders===undefined){a.hideHeaders=!0}a.addCls(a.autoWidthCls);a.columns=[{xtype:'treecolumn',text:'Name',flex:1,dataIndex:a.displayField}]}if(a.cls){c.push(a.cls)}a.cls=c.join(' ');Ext.panel.Table.prototype.initComponent.call(this);d=a.getView();a.relayEvents(d,['beforecheckchange','checkchange','afteritemexpand','afteritemcollapse'])},applyStore:function(a){var b=this;if(Ext.isString(a)){a=b.store=Ext.StoreMgr.lookup(a)}else {if(!a||!a.isStore){a=Ext.apply({type:'tree',proxy:'memory'},a);if(b.root){a.root=b.root}if(b.fields){a.fields=b.fields}else {if(b.model){a.model=b.model}}if(b.folderSort){a.folderSort=b.folderSort}a=b.store=Ext.StoreMgr.lookup(a)}else {if(b.root){a=b.store=Ext.data.StoreManager.lookup(a);a.setRoot(b.root);if(b.folderSort!==undefined){a.folderSort=b.folderSort;a.sort()}}}}return a},setStore:function(a){var b=this;a=b.applyStore(a);if(!a.getRoot()){a.setRoot({})}a.setRootVisible(b.rootVisible);if(b.view){b.view.setRootNode(a.getRootNode())}b.bindStore(a)},bindStore:function(b,e){var a=this,c=b.getRoot(),d=a.bufferedRenderer;Ext.panel.Table.prototype.bindStore.apply(this,arguments);if(d){if(d.store){d.bindStore(b)}}b.singleExpand=a.singleExpand;a.storeListeners=a.mon(b,{destroyable:!0,rootchange:a.onRootChange,scope:a});a.storeRelayers=a.relayEvents(b,['beforeload','load']);if(!a.rootVisible&&!b.autoLoad&&!(c.isExpanded()||c.isLoading())){if(c.isLoaded()){c.data.expanded=!0;b.onNodeExpand(c,c.childNodes)}else {if(b.autoLoad!==!1){c.data.expanded=!1;c.expand()}}}b.ownerTree=a;if(!e){a.view.setRootNode(c)}},addRelayers:function(b){var a=this;if(a.rootRelayers){a.rootRelayers.destroy();a.rootRelayers=null}a.rootRelayers=a.mon(b,{destroyable:!0,append:a.createRelayer('itemappend'),remove:a.createRelayer('itemremove'),move:a.createRelayer('itemmove',[0,4]),insert:a.createRelayer('iteminsert'),beforeappend:a.createRelayer('beforeitemappend'),beforeremove:a.createRelayer('beforeitemremove'),beforemove:a.createRelayer('beforeitemmove'),beforeinsert:a.createRelayer('beforeiteminsert'),expand:a.createRelayer('itemexpand',[0,1]),collapse:a.createRelayer('itemcollapse',[0,1]),beforeexpand:a.createRelayer('beforeitemexpand',[0,1]),beforecollapse:a.createRelayer('beforeitemcollapse',[0,1]),scope:a})},unbindStore:function(){var a=this,b=a.store;if(b){Ext.panel.Table.prototype.unbindStore.call(this);Ext.destroy(a.storeListeners,a.storeRelayers,a.rootRelayers);delete b.ownerTree;b.singleExpand=null}},setRootNode:function(){return this.store.setRoot.apply(this.store,arguments)},getRootNode:function(){return this.store.getRoot()},onRootChange:function(a){this.view.setRootNode(a)},getChecked:function(){return this.getView().getChecked()},isItemChecked:function(a){return a.get('checked')},expandNode:function(b,d,a,c){return this.getView().expand(b,d,a,c||this)},collapseNode:function(b,d,a,c){return this.getView().collapse(b,d,a,c||this)},expandAll:function(c,d){var b=this,a=b.getRootNode();if(a){Ext.suspendLayouts();a.expand(!0,c,d||b);Ext.resumeLayouts(!0)}},collapseAll:function(d,a){var c=this,b=c.getRootNode(),e=c.getView();if(b){Ext.suspendLayouts();a=a||c;if(e.rootVisible){b.collapse(!0,d,a)}else {b.collapseChildren(!0,d,a)}Ext.resumeLayouts(!0)}},expandPath:function(p,a){var i=arguments,b=this,j=b.view,g=a&&a.field||b.store.model.idProperty,o,n,k=a&&a.separator||'/',c,e,d,h,f,m,l;if(a&&typeof a==='object'){g=a.field||b.store.model.idProperty;k=a.separator||'/';c=a.callback;e=a.scope;o=a.select;n=a.focus}else {g=i[1]||b.store.model.idProperty;k=i[2]||'/';c=i[3];e=i[4]}if(Ext.isEmpty(p)){return Ext.callback(c,e||b,[!1,null])}f=p.split(k);m=!f[0];if(m){d=b.getRootNode();h=1}else {d=b.store.findNode(g,f[0]);h=0}if(!d||m&&d.get(g)!==f[1]){return Ext.callback(c,e||b,[!1,d])}l=function(m){var d=this,q,k,i;if(++h===f.length){if(o){j.getSelectionModel().select(d)}if(n){j.getNavigationModel().setPosition(d,0)}return Ext.callback(c,e||b,[!0,d,j.getNode(d)])}for(k=0,q=m?m.length:0;k2?b[2]:null,e=a>3?b[3]:'/',d=a>4?b[4]:null,f=a>5?b[5]:!1;document.cookie=h+'='+escape(g)+(c===null?'':'; expires='+c.toUTCString())+(e===null?'':'; path='+e)+(d===null?'':'; domain='+d)+(f===!0?'; secure':'')},get:function(e){var d=document.cookie.split('; '),f=d.length,b,a,c;for(a=0;a'+this.removeRowText+''},beforeDestroy:function(){Ext.un({mousedown:'onDismissSearch',scope:this});Ext.grid.Panel.prototype.beforeDestroy.call(this)},privates:{onDismissSearch:function(b){var a=this.searchPopup;if(a&&!(a.owns(b.getTarget())||this.owns(b.getTarget()))){Ext.un({mousedown:'onDismissSearch',scope:this});a.hide()}},onShowSearch:function(d,e){var a=this,b=a.searchPopup,c=a.getStore();if(!b){b=Ext.merge({owner:a,field:a.fieldName,floating:!0},a.getSearch());a.searchPopup=b=a.add(b);if(c.getCount()){b.selectRecords(c.getRange())}}b.showBy(a,'tl-tr?');Ext.on({mousedown:'onDismissSearch',scope:a})}}},0,['multiselector'],['component','box','container','panel','tablepanel','gridpanel','grid','multiselector'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'multiselector':!0},['widget.multiselector'],0,[Ext.view,'MultiSelector'],0);Ext.cmd.derive('Ext.window.Toast',Ext.window.Window,{isToast:!0,cls:'x-toast',bodyPadding:10,autoClose:!0,plain:!1,draggable:!1,resizable:!1,shadow:!1,focus:Ext.emptyFn,anchor:null,useXAxis:!1,align:'br',animate:!0,spacing:6,paddingX:30,paddingY:10,slideInAnimation:'easeIn',slideBackAnimation:'bounceOut',slideInDuration:500,slideBackDuration:500,hideDuration:500,autoCloseDelay:3000,stickOnClick:!0,stickWhileHover:!0,closeOnMouseDown:!1,closable:!1,isHiding:!1,isFading:!1,destroyAfterHide:!1,closeOnMouseOut:!1,xPos:0,yPos:0,initComponent:function(){var a=this;if(a.autoClose&&!a.hasOwnProperty('closable')){a.closable=!1}a.updateAlignment(a.align);a.setAnchor(a.anchor);Ext.window.Window.prototype.initComponent.call(this)},onRender:function(){var a=this;Ext.window.Window.prototype.onRender.apply(this,arguments);a.el.hover(a.onMouseEnter,a.onMouseLeave,a);if(a.closeOnMouseDown){Ext.getDoc().on('mousedown',a.onDocumentMousedown,a)}},alignmentProps:{br:{paddingFactorX:-1,paddingFactorY:-1,siblingAlignment:'br-br',anchorAlign:'tr-br'},bl:{paddingFactorX:1,paddingFactorY:-1,siblingAlignment:'bl-bl',anchorAlign:'tl-bl'},tr:{paddingFactorX:-1,paddingFactorY:1,siblingAlignment:'tr-tr',anchorAlign:'br-tr'},tl:{paddingFactorX:1,paddingFactorY:1,siblingAlignment:'tl-tl',anchorAlign:'bl-tl'},b:{paddingFactorX:0,paddingFactorY:-1,siblingAlignment:'b-b',useXAxis:0,anchorAlign:'t-b'},t:{paddingFactorX:0,paddingFactorY:1,siblingAlignment:'t-t',useXAxis:0,anchorAlign:'b-t'},l:{paddingFactorX:1,paddingFactorY:0,siblingAlignment:'l-l',useXAxis:1,anchorAlign:'r-l'},r:{paddingFactorX:-1,paddingFactorY:0,siblingAlignment:'r-r',useXAxis:1,anchorAlign:'l-r'},x:{br:{anchorAlign:'bl-br'},bl:{anchorAlign:'br-bl'},tr:{anchorAlign:'tl-tr'},tl:{anchorAlign:'tr-tl'}}},updateAlignment:function(d){var a=this,b=a.alignmentProps,e=b[d],c=b.x[d];if(c&&a.useXAxis){Ext.applyIf(a,c)}Ext.applyIf(a,e)},getXposAlignedToAnchor:function(){var b=this,d=b.align,e=b.anchor,c=e&&e.el,f=b.el,a=0;if(c&&c.dom){if(!b.useXAxis){a=f.getLeft()}else {if(d==='br'||d==='tr'||d==='r'){a+=c.getAnchorXY('r')[0];a-=f.getWidth()+b.paddingX}else {a+=c.getAnchorXY('l')[0];a+=b.paddingX}}}return a},getYposAlignedToAnchor:function(){var b=this,d=b.align,e=b.anchor,c=e&&e.el,f=b.el,a=0;if(c&&c.dom){if(b.useXAxis){a=f.getTop()}else {if(d==='br'||d==='bl'||d==='b'){a+=c.getAnchorXY('b')[1];a-=f.getHeight()+b.paddingY}else {a+=c.getAnchorXY('t')[1];a+=b.paddingY}}}return a},getXposAlignedToSibling:function(a){var c=this,d=c.align,e=c.el,b;if(!c.useXAxis){b=e.getLeft()}else {if(d==='tl'||d==='bl'||d==='l'){b=a.xPos+a.el.getWidth()+a.spacing}else {b=a.xPos-e.getWidth()-c.spacing}}return b},getYposAlignedToSibling:function(a){var d=this,c=d.align,e=d.el,b;if(d.useXAxis){b=e.getTop()}else {if(c==='tr'||c==='tl'||c==='t'){b=a.yPos+a.el.getHeight()+a.spacing}else {b=a.yPos-e.getHeight()-a.spacing}}return b},getToasts:function(){var c=this.anchor,b=this.anchorAlign,a=c.activeToasts||(c.activeToasts={});return a[b]||(a[b]=[])},setAnchor:function(a){var c=this,b;c.anchor=a=typeof a==='string'?Ext.getCmp(a):a;if(!a){b=Ext.window.Toast;c.anchor=b.bodyAnchor||(b.bodyAnchor={el:Ext.getBody()})}},beforeShow:function(){var a=this;if(a.stickOnClick){a.body.on('click',function(){a.cancelAutoClose()})}if(a.autoClose){if(!a.closeTask){a.closeTask=new Ext.util.DelayedTask(a.doAutoClose,a)}}a.el.setX(-10000);a.el.setOpacity(1)},afterShow:function(){var a=this,d=a.el,c,b,e,f;Ext.window.Window.prototype.afterShow.apply(this,arguments);c=a.getToasts();e=c.length;b=e&&c[e-1];if(b){d.alignTo(b.el,a.siblingAlignment,[0,0]);a.xPos=a.getXposAlignedToSibling(b);a.yPos=a.getYposAlignedToSibling(b)}else {d.alignTo(a.anchor.el,a.anchorAlign,[a.paddingX*a.paddingFactorX,a.paddingY*a.paddingFactorY],!1);a.xPos=a.getXposAlignedToAnchor();a.yPos=a.getYposAlignedToAnchor()}Ext.Array.include(c,a);if(a.animate){f=d.getXY();d.animate({from:{x:f[0],y:f[1]},to:{x:a.xPos,y:a.yPos,opacity:1},easing:a.slideInAnimation,duration:a.slideInDuration,dynamic:!0,callback:a.afterPositioned,scope:a})}else {a.setLocalXY(a.xPos,a.yPos);a.afterPositioned()}},afterPositioned:function(){if(this.autoClose){this.closeTask.delay(this.autoCloseDelay)}},onDocumentMousedown:function(a){if(this.isVisible()&&!this.owns(a.getTarget())){this.hide()}},slideBack:function(){var a=this,f=a.anchor,e=f&&f.el,d=a.el,b=a.getToasts(),c=Ext.Array.indexOf(b,a);if(!a.isHiding&&d&&d.dom&&e&&e.isVisible()){if(c){a.xPos=a.getXposAlignedToSibling(b[c-1]);a.yPos=a.getYposAlignedToSibling(b[c-1])}else {a.xPos=a.getXposAlignedToAnchor();a.yPos=a.getYposAlignedToAnchor()}a.stopAnimation();if(a.animate){d.animate({to:{x:a.xPos,y:a.yPos},easing:a.slideBackAnimation,duration:a.slideBackDuration,dynamic:!0})}}},update:function(){var a=this;if(a.isVisible()){a.isHiding=!0;a.hide()}Ext.window.Window.prototype.update.apply(this,arguments);a.show()},cancelAutoClose:function(){var a=this.closeTask;if(a){a.cancel()}},doAutoClose:function(){var a=this;if(!(a.stickWhileHover&&a.mouseIsOver)){a.close()}else {a.closeOnMouseOut=!0}},onMouseEnter:function(){this.mouseIsOver=!0},onMouseLeave:function(){var a=this;a.mouseIsOver=!1;if(a.closeOnMouseOut){a.closeOnMouseOut=!1;a.close()}},removeFromAnchor:function(){var c=this,b,a;if(c.anchor){b=c.getToasts();a=Ext.Array.indexOf(b,c);if(a!==-1){Ext.Array.erase(b,a,1);for(;a'],childEls:['iframeEl'],initComponent:function(){Ext.Component.prototype.initComponent.call(this);this.frameName=this.frameName||this.id+'-frame'},initEvents:function(){var a=this;Ext.Component.prototype.initEvents.call(this);a.iframeEl.on('load',a.onLoad,a)},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{src:this.src,frameName:this.frameName})},getBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){try{return this.getWin().document}catch(b){return null}},getWin:function(){var a=this,b=a.frameName,c=Ext.isIE?a.iframeEl.dom.contentWindow:window.frames[b];return c},getFrame:function(){var a=this;return a.iframeEl.dom},beforeDestroy:function(){this.cleanupListeners(!0);Ext.Component.prototype.beforeDestroy.call(this)},cleanupListeners:function(c){var a,b;if(this.rendered){try{a=this.getDoc();if(a){Ext.get(a).un(this._docListeners);if(c){for(b in a){if(a.hasOwnProperty&&a.hasOwnProperty(b)){delete a[b]}}}}}catch(d){}}},onLoad:function(){var a=this,c=a.getDoc(),b=a.onRelayedEvent;if(c){try{Ext.get(c).on(a._docListeners={mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,scope:a})}catch(d){}Ext.get(this.getWin()).on('beforeunload',a.cleanupListeners,a);this.el.unmask();this.fireEvent('load',this)}else {if(a.src){this.el.unmask();this.fireEvent('error',this)}}},onRelayedEvent:function(a){var b=this.iframeEl,c=b.getTrueXY(),e=a.getXY(),d=a.getTrueXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},load:function(c){var a=this,b=a.loadMask,d=a.getFrame();if(a.fireEvent('beforeload',a,c)!==!1){if(b&&a.el){a.el.mask(b)}d.src=a.src=c||a.src}}},0,['uxiframe'],['component','box','uxiframe'],{'component':!0,'box':!0,'uxiframe':!0},['widget.uxiframe'],0,[Ext.ux,'IFrame'],0);Ext.cmd.derive('Ext.ux.PreviewPlugin',Ext.plugin.Abstract,{hideBodyCls:'x-grid-row-body-hidden',bodyField:'',previewExpanded:!0,setCmp:function(c){Ext.plugin.Abstract.prototype.setCmp.apply(this,arguments);var b=this,a=b.cmp=c.isXType('gridview')?c.grid:c,g=b.bodyField,f=b.hideBodyCls,e=Ext.create('Ext.grid.feature.RowBody',{grid:a,getAdditionalData:function(e,j,i,h){var b=Ext.grid.feature.RowBody.prototype.getAdditionalData,d={rowBody:e[g],rowBodyCls:a.getView().previewExpanded?'':f};if(Ext.isFunction(b)){Ext.apply(d,b.apply(this,arguments))}return d}}),d=function(d,a){a.previewExpanded=b.previewExpanded;a.featuresMC.add(e);e.init(d)};if(a.view){d(a,a.view)}else {a.on({viewcreated:d,single:!0})}},toggleExpanded:function(e){var c=this.getCmp(),a=c&&c.getView(),b=a.bufferedRenderer,d=a.scrollManager;if(c&&a&&e!==a.previewExpanded){this.previewExpanded=a.previewExpanded=!!e;a.refreshView();if(d){if(b){b.stretchView(a,b.getScrollHeight(!0))}else {d.refresh(!0)}}}}},0,0,0,0,['plugin.preview'],0,[Ext.ux,'PreviewPlugin'],0);Ext.cmd.derive('Ext.ux.colorpick.Selection',Ext.Base,{mixinId:'colorselection',config:{format:'hex6',value:'FF0000',color:null,previousColor:null},applyColor:function(b){var a=b;if(Ext.isString(a)){a=Ext.ux.colorpick.ColorUtils.parseColor(b)}return a},applyValue:function(a){var b=Ext.ux.colorpick.ColorUtils.parseColor(a);return this.formatColor(b)},formatColor:function(a){return Ext.ux.colorpick.ColorUtils.formats[this.getFormat()](a)},updateColor:function(b){var a=this;if(!a.syncing){a.syncing=!0;a.setValue(a.formatColor(b));a.syncing=!1}},updateValue:function(b,c){var a=this;if(!a.syncing){a.syncing=!0;a.setColor(b);a.syncing=!1}this.fireEvent('change',a,b,c)}},0,0,0,0,0,0,[Ext.ux.colorpick,'Selection'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorUtils',Ext.Base,function(a){var b=Ext.isIE&&Ext.ieVersion<10;return {singleton:!0,constructor:function(){a=this},backgroundTpl:b?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{alpha}{hex}', endColorstr='#{alpha}{hex}');":'background: {rgba};',setBackground:b?function(c,b){if(c){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={hex:a.rgb2hex(b.r,b.g,b.b),alpha:Math.floor(b.a*255).toString(16)},d=f.apply(e);c.applyStyles(d)}}:function(b,d){if(b){var f=Ext.XTemplate.getTpl(a,'backgroundTpl'),e={rgba:a.getRGBAString(d)},c=f.apply(e);b.applyStyles(c)}},formats:{HEX6:function(b){return a.rgb2hex(b.r,b.g,b.b)},HEX8:function(b){var c=a.rgb2hex(b.r,b.g,b.b),d=Math.round(b.a*255).toString(16);if(d.length<2){c+='0'}c+=d.toUpperCase();return c}},hexRe:/#?([0-9a-f]{3,8})/i,rgbaAltRe:/rgba\(\s*([\w#\d]+)\s*,\s*([\d\.]+)\s*\)/,rgbaRe:/rgba\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,rgbRe:/rgb\(\s*([\d\.]+)\s*,\s*([\d\.]+)\s*,\s*([\d\.]+)\s*\)/,parseColor:function(d){if(!d){return null}var e=this,f=e.colorMap[d],b,c,g;if(f){c={r:f[0],g:f[1],b:f[2],a:1}}else {if(d==='transparent'){c={r:0,g:0,b:0,a:0}}else {b=e.hexRe.exec(d);if(b){b=b[1];switch(b.length){default:return null;case 3:c={r:parseInt(b[0]+b[0],16),g:parseInt(b[1]+b[1],16),b:parseInt(b[2]+b[2],16),a:1};break;case 6:case 8:c={r:parseInt(b.substr(0,2),16),g:parseInt(b.substr(2,2),16),b:parseInt(b.substr(4,2),16),a:parseInt(b.substr(6,2)||'ff',16)/255};break;}}else {b=e.rgbaRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:parseFloat(b[4])}}else {b=e.rgbaAltRe.exec(d);if(b){c=e.parseColor(b[1]);c.a=parseFloat(b[2]);return c}b=e.rgbRe.exec(d);if(b){c={r:parseFloat(b[1]),g:parseFloat(b[2]),b:parseFloat(b[3]),a:1}}else {return null}}}}}g=this.rgb2hsv(c.r,c.g,c.b);return Ext.apply(c,g)},getRGBAString:function(b){return 'rgba('+b.r+','+b.g+','+b.b+','+b.a+')'},getRGBString:function(b){return 'rgb('+b.r+','+b.g+','+b.b+')'},hsv2rgb:function(e,i,h){e=e*360;if(e===360){e=0}var c=h*i;var g=e/60;var d=c*(1-Math.abs(g%2-1));var b=[0,0,0];switch(Math.floor(g)){case 0:b=[c,d,0];break;case 1:b=[d,c,0];break;case 2:b=[0,c,d];break;case 3:b=[0,d,c];break;case 4:b=[d,0,c];break;case 5:b=[c,0,d];break;default:break;}var f=h-c;b[0]+=f;b[1]+=f;b[2]+=f;b[0]=Math.round(b[0]*255);b[1]=Math.round(b[1]*255);b[2]=Math.round(b[2]*255);return {r:b[0],g:b[1],b:b[2]}},rgb2hsv:function(e,d,c){e=e/255;d=d/255;c=c/255;var g=Math.max(e,d,c);var k=Math.min(e,d,c);var f=g-k;var h=0;if(f!==0){if(g===e){h=(d-c)/f%6}else {if(g===d){h=(c-e)/f+2}else {if(g===c){h=(e-d)/f+4}}}}var b=h*60;if(b===360){b=0}var j=g;var i=0;if(f!==0){i=f/j}b=b/360;if(b<0){b=b+1}return {h:b,s:i,v:j}},rgb2hex:function(d,c,b){d=d.toString(16);c=c.toString(16);b=b.toString(16);if(d.length<2){d='0'+d}if(c.length<2){c='0'+c}if(b.length<2){b='0'+b}return (d+c+b).toUpperCase()},colorMap:{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]}}},1,0,0,0,0,0,[Ext.ux.colorpick,'ColorUtils'],function(c){var a=c.formats,b={};a['#HEX6']=function(b){return '#'+a.HEX6(b)};a['#HEX8']=function(b){return '#'+a.HEX8(b)};Ext.Object.each(a,function(a,d){b[a.toLowerCase()]=function(b){var e=d(b);return e.toLowerCase()}});Ext.apply(a,b)});Ext.cmd.derive('Ext.ux.colorpick.ColorMapController',Ext.app.ViewController,{onFirstBoxReady:function(){var a=this,c=a.getView(),d=c.down('#dragHandle'),b=d.dd;b.constrain=!0;b.constrainTo=c.getEl();b.initialConstrainTo=b.constrainTo;b.on('drag',Ext.bind(a.onHandleDrag,a));a.mon(c.getEl(),{mousedown:a.onMouseDown,dragstart:a.onDragStart,scope:a})},onHandleDrag:function(k,l){var h=this,a=h.getView(),e=a.down('#dragHandle'),i=e.getX()-a.getX(),j=e.getY()-a.getY(),d=a.getEl(),g=d.getWidth(),f=d.getHeight(),b=i/g,c=j/f;if(b>0.99){b=1}if(c>0.99){c=1}a.fireEvent('handledrag',b,c)},onMouseDown:function(b){var c=this,d=c.getView(),a=d.down('#dragHandle');a.setY(b.getY());a.setX(b.getX());c.onHandleDrag();a.dd.onMouseDown(b,a.dd.el)},onDragStart:function(d){var c=this,b=c.getView(),a=b.down('#dragHandle');a.dd.onDragStart(d,a.dd.el)},onMapClick:function(h){var f=this,a=f.getView(),g=a.down('#dragHandle'),c=a.getXY(),d=h.getXY(),b,e;b=d[0]-c[0];e=d[1]-c[1];g.getEl().setStyle({left:b+'px',top:e+'px'});f.onHandleDrag()},onColorBindingChanged:function(n){var i=this,m=i.getViewModel(),a=m.get('selectedColor'),b,d=i.getView(),l=d.down('#dragHandle'),c=d.getEl(),k=c.getWidth(),j=c.getHeight(),e,f,g,h;b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);e=b.s;g=k*e;f=1-b.v;h=j*f;l.getEl().setStyle({left:g+'px',top:h+'px'})},onHueBindingChanged:function(d){var c=this,e=c.getViewModel(),a,b;a=Ext.ux.colorpick.ColorUtils.hsv2rgb(d,1,1);b=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);c.getView().getEl().applyStyles({'background-color':'#'+b})}},0,0,0,0,['controller.colorpickercolormapcontroller'],0,[Ext.ux.colorpick,'ColorMapController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorMap',Ext.container.Container,{controller:'colorpickercolormapcontroller',cls:'x-colorpicker-colormap',items:[{xtype:'component',cls:'x-colorpicker-colormap-draghandle-container',itemId:'dragHandle',width:1,height:1,draggable:!0,html:'
    '}],listeners:{boxready:{single:!0,fn:'onFirstBoxReady',scope:'controller'},colorbindingchanged:{fn:'onColorBindingChanged',scope:'controller'},huebindingchanged:{fn:'onHueBindingChanged',scope:'controller'}},afterRender:function(){var c=this,a=c.mapGradientUrl,b=c.el;Ext.container.Container.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.ColorMap.prototype.mapGradientUrl=a}b.setStyle('background-image','none');b=c.layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-colormap-blender',src:a})},setPosition:function(c){var b=this,a=b.down('#dragHandle');if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b.fireEvent('colorbindingchanged',c)},setHue:function(b){var a=this;if(!a.getEl()){return}a.fireEvent('huebindingchanged',b)}},0,['colorpickercolormap'],['component','box','container','colorpickercolormap'],{'component':!0,'box':!0,'container':!0,'colorpickercolormap':!0},['widget.colorpickercolormap'],0,[Ext.ux.colorpick,'ColorMap'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorModel',Ext.app.ViewModel,{data:{selectedColor:{r:255,g:255,b:255,h:0,s:1,v:1,a:1},previousColor:{r:0,g:0,b:0,h:0,s:1,v:1,a:1}},formulas:{hex:{get:function(a){var e=a('selectedColor.r').toString(16),d=a('selectedColor.g').toString(16),c=a('selectedColor.b').toString(16),b;b=Ext.ux.colorpick.ColorUtils.rgb2hex(e,d,c);return '#'+b},set:function(a){var b=Ext.ux.colorpick.ColorUtils.hex2rgb(a);this.changeRGB(b)}},red:{get:function(a){return a('selectedColor.r')},set:function(a){this.changeRGB({r:a})}},green:{get:function(a){return a('selectedColor.g')},set:function(a){this.changeRGB({g:a})}},blue:{get:function(a){return a('selectedColor.b')},set:function(a){this.changeRGB({b:a})}},hue:{get:function(a){return a('selectedColor.h')*360},set:function(a){this.changeHSV({h:a/360})}},saturation:{get:function(a){return a('selectedColor.s')*100},set:function(a){this.changeHSV({s:a/100})}},value:{get:function(a){var b=a('selectedColor.v');return b*100},set:function(a){this.changeHSV({v:a/100})}},alpha:{get:function(a){var b=a('selectedColor.a');return b*100},set:function(a){this.set('selectedColor',Ext.applyIf({a:a/100},this.data.selectedColor))}}},changeHSV:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);a.r=b.r;a.g=b.g;a.b=b.b;this.set('selectedColor',a)},changeRGB:function(a){Ext.applyIf(a,this.data.selectedColor);var b=Ext.ux.colorpick.ColorUtils.rgb2hsv(a.r,a.g,a.b);a.h=b.h;a.s=b.s;a.v=b.v;this.set('selectedColor',a)}},0,0,0,0,['viewmodel.colorpick-selectormodel'],0,[Ext.ux.colorpick,'SelectorModel'],0);Ext.cmd.derive('Ext.ux.colorpick.SelectorController',Ext.app.ViewController,{initViewModel:function(){var b=this,a=b.getView();a.childViewModel.bind('{selectedColor}',function(b){a.setColor(b)})},destroy:function(){var c=this,b=c.getView(),a=b.childViewModel;if(a){a.destroy();b.childViewModel=null}Ext.app.ViewController.prototype.destroy.call(this)},changeHSV:function(a){var b=this.getView(),d=b.getColor(),c;Ext.applyIf(a,d);c=Ext.ux.colorpick.ColorUtils.hsv2rgb(a.h,a.s,a.v);Ext.apply(a,c);b.setColor(a)},onColorMapHandleDrag:function(a,b){this.changeHSV({s:a,v:1-b})},onValueSliderHandleDrag:function(a){this.changeHSV({v:1-a})},onSaturationSliderHandleDrag:function(a){this.changeHSV({s:1-a})},onHueSliderHandleDrag:function(a){this.changeHSV({h:1-a})},onAlphaSliderHandleDrag:function(c){var a=this.getView(),d=a.getColor(),b=Ext.applyIf({a:1-c},d);a.setColor(b);a.el.repaint()},onPreviousColorSelected:function(c,a){var b=this.getView();b.setColor(a)},onOK:function(){var b=this,a=b.getView();a.fireEvent('ok',a,a.getValue())},onCancel:function(){this.fireViewEvent('cancel',this.getView())},onResize:function(){var c=this,h=c.getView(),b=h.childViewModel,a=c.getReferences(),d,f,g,e;if(!c.hasResizedOnce){c.hasResizedOnce=!0;return}d=b.get('hue');f=b.get('saturation');g=b.get('value');e=b.get('alpha');console.log('h='+d);a.colorMap.setPosition(b.getData());a.hueSlider.setHue(d);a.satSlider.setSaturation(f);a.valueSlider.setValue(g);a.alphaSlider.setAlpha(e)}},0,0,0,0,['controller.colorpick-selectorcontroller'],0,[Ext.ux.colorpick,'SelectorController'],0);Ext.cmd.derive('Ext.ux.colorpick.ColorPreview',Ext.Component,{style:'position: relative',html:'
    ',cls:'x-colorpreview',height:256,onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el.down('.btn'),'click',a.onClick,a)},onClick:function(){this.fireEvent('click',this,this.color)},setColor:function(b){var a=this,c=a.getEl();if(!c){return}a.color=b;a.applyBgStyle(b)},bgStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hexAlpha}{hex}', endColorstr='#{hexAlpha}{hex}');":'background: {rgba};'),applyBgStyle:function(a){var h=this,b=Ext.ux.colorpick.ColorUtils,g=h.getEl().down('.filter'),f,d,e,c;f=b.rgb2hex(a.r,a.g,a.b);d=Ext.util.Format.hex(Math.floor(a.a*255),2);e=b.getRGBAString(a);c=this.bgStyleTpl.apply({hex:f,hexAlpha:d,rgba:e});g.applyStyles(c)}},0,['colorpickercolorpreview'],['component','box','colorpickercolorpreview'],{'component':!0,'box':!0,'colorpickercolorpreview':!0},['widget.colorpickercolorpreview'],0,[Ext.ux.colorpick,'ColorPreview'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderController',Ext.app.ViewController,{boxReady:function(e){var b=this,d=b.getDragContainer(),c=b.getDragHandle(),a=c.dd;a.constrain=!0;a.constrainTo=d.getEl();a.initialConstrainTo=a.constrainTo;a.on('drag',b.onHandleDrag,b)},getDragHandle:function(){return this.view.lookupReference('dragHandle')},getDragContainer:function(){return this.view.lookupReference('dragHandleContainer')},onHandleDrag:function(i){var b=this,g=b.getView(),c=b.getDragContainer(),f=b.getDragHandle(),h=f.getY()-c.getY(),e=c.getEl(),d=e.getHeight(),a=h/d;if(a>0.99){a=1}g.fireEvent('handledrag',a)},onMouseDown:function(c){var b=this,a=b.getDragHandle(),d=c.getY();a.setY(d);b.onHandleDrag();a.el.repaint();a.dd.onMouseDown(c,a.dd.el)},onDragStart:function(c){var b=this,a=b.getDragHandle();a.dd.onDragStart(c,a.dd.el)},onMouseUp:function(){var a=this.getDragHandle();a.dd.dragEnded=!0}},0,0,0,0,['controller.colorpick-slidercontroller'],0,[Ext.ux.colorpick,'SliderController'],0);Ext.cmd.derive('Ext.ux.colorpick.Slider',Ext.container.Container,{controller:'colorpick-slidercontroller',baseCls:'x-colorpicker-slider',layout:'center',referenceHolder:!0,listeners:{element:'el',mousedown:'onMouseDown',mouseup:'onMouseUp',dragstart:'onDragStart'},items:{xtype:'container',cls:'x-colorpicker-draghandle-container',reference:'dragHandleContainer',height:'100%',items:{xtype:'component',cls:'x-colorpicker-draghandle-outer',reference:'dragHandle',width:'100%',height:1,draggable:!0,html:'
    '}},getDragHandle:function(){return this.lookupReference('dragHandle')},getDragContainer:function(){return this.lookupReference('dragHandleContainer')}},0,['colorpickerslider'],['component','box','container','colorpickerslider'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0},['widget.colorpickerslider'],0,[Ext.ux.colorpick,'Slider'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderAlpha',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-alpha',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#FF{hex}', endColorstr='#00{hex}');":'background: -mox-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -webkit-linear-gradient(top,rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -o-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: -ms-linear-gradient(top, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);background: linear-gradient(to bottom, rgba({r}, {g}, {b}, 1) 0%, rgba({r}, {g}, {b}, 0) 100%);'),setAlpha:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(1-h/100);c=a.getEl();c.setStyle({top:b})},setColor:function(a){var b=this,e=b.getDragContainer(),c,d;if(!b.getEl()){return}c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d=e.getEl().down('.x-autocontainer-innerCt');d.applyStyles(b.gradientStyleTpl.apply({hex:c,r:a.r,g:a.g,b:a.b}))}},0,['colorpickerslideralpha'],['component','box','container','colorpickerslider','colorpickerslideralpha'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslideralpha':!0},['widget.colorpickerslideralpha'],0,[Ext.ux.colorpick,'SliderAlpha'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderSaturation',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-saturation',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#ffffff');":'background: -mox-linear-gradient(top, #{hex} 0%, #ffffff 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -o-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: -ms-linear-gradient(top, #{hex} 0%,#ffffff 100%);background: linear-gradient(to bottom, #{hex} 0%,#ffffff 100%);'),setSaturation:function(g){var d=this,h=d.getDragContainer(),a=d.getDragHandle(),f=h.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-g/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidersaturation'],['component','box','container','colorpickerslider','colorpickerslidersaturation'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidersaturation':!0},['widget.colorpickerslidersaturation'],0,[Ext.ux.colorpick,'SliderSaturation'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderValue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-value',gradientStyleTpl:Ext.create('Ext.XTemplate',Ext.isIE&&Ext.ieVersion<10?"filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#{hex}', endColorstr='#000000');":'background: -mox-linear-gradient(top, #{hex} 0%, #000000 100%);background: -webkit-linear-gradient(top, #{hex} 0%,#000000 100%);background: -o-linear-gradient(top, #{hex} 0%,#000000 100%);background: -ms-linear-gradient(top, #{hex} 0%,#000000 100%);background: linear-gradient(to bottom, #{hex} 0%,#000000 100%);'),setValue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),b,c;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=1-h/100;c=e*b;a.getEl().setStyle({top:c+'px'})},setHue:function(e){var b=this,d=b.getDragContainer(),a,c;if(!b.getEl()){return}a=Ext.ux.colorpick.ColorUtils.hsv2rgb(e,1,1);c=Ext.ux.colorpick.ColorUtils.rgb2hex(a.r,a.g,a.b);d.getEl().applyStyles(b.gradientStyleTpl.apply({hex:c}))}},0,['colorpickerslidervalue'],['component','box','container','colorpickerslider','colorpickerslidervalue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickerslidervalue':!0},['widget.colorpickerslidervalue'],0,[Ext.ux.colorpick,'SliderValue'],0);Ext.cmd.derive('Ext.ux.colorpick.SliderHue',Ext.ux.colorpick.Slider,{cls:'x-colorpicker-hue',afterRender:function(){var c=this,a=c.gradientUrl,b=c.el;Ext.ux.colorpick.Slider.prototype.afterRender.call(this);if(!a){a=b.getStyle('background-image');a=a.substring(4,a.length-1);if(a.indexOf('"')===0){a=a.substring(1,a.length-1)}Ext.ux.colorpick.SliderHue.prototype.gradientUrl=a}b.setStyle('background-image','none');b=c.getDragContainer().layout.getElementTarget();b.createChild({tag:'img',cls:'x-colorpicker-hue-gradient',src:a})},setHue:function(h){var d=this,g=d.getDragContainer(),a=d.getDragHandle(),f=g.getEl(),e=f.getHeight(),c,b;if(!a.dd||!a.dd.constrain){return}if(typeof a.dd.dragEnded!=='undefined'&&!a.dd.dragEnded){return}b=e*(360-h)/360;c=a.getEl();c.setStyle({top:b+'px'})}},0,['colorpickersliderhue'],['component','box','container','colorpickerslider','colorpickersliderhue'],{'component':!0,'box':!0,'container':!0,'colorpickerslider':!0,'colorpickersliderhue':!0},['widget.colorpickersliderhue'],0,[Ext.ux.colorpick,'SliderHue'],0);Ext.cmd.derive('Ext.ux.colorpick.Selector',Ext.container.Container,{controller:'colorpick-selectorcontroller',width:580,height:337,cls:'x-colorpicker',padding:10,layout:{type:'hbox',align:'stretch'},defaultBindProperty:'value',twoWayBindable:['value'],fieldWidth:50,fieldPad:5,showPreviousColor:!1,showOkCancelButtons:!1,listeners:{resize:'onResize'},constructor:function(c){var a=this,b=Ext.Factory.viewModel('colorpick-selectormodel');a.childViewModel=b;a.items=[a.getMapAndHexRGBFields(b),a.getSliderAndHField(b),a.getSliderAndSField(b),a.getSliderAndVField(b),a.getSliderAndAField(b),a.getPreviewAndButtons(b,c)];Ext.container.Container.prototype.constructor.apply(this,arguments)},updateColor:function(b){var a=this;a.mixins.colorselection.updateColor.call(a,b);a.childViewModel.set('selectedColor',b)},updatePreviousColor:function(a){this.childViewModel.set('previousColor',a)},getMapAndHexRGBFields:function(d){var c=this,a={top:0,right:c.fieldPad,bottom:0,left:0},b=c.fieldWidth;return {xtype:'container',viewModel:d,cls:'x-colorpicker-escape-overflow',flex:1,layout:{type:'vbox',align:'stretch'},margin:'0 10 0 0',items:[{xtype:'colorpickercolormap',reference:'colorMap',flex:1,bind:{position:{bindTo:'{selectedColor}',deep:!0},hue:'{selectedColor.h}'},listeners:{handledrag:'onColorMapHandleDrag'}},{xtype:'container',layout:'hbox',defaults:{labelAlign:'top',labelSeparator:'',allowBlank:!1,onChange:function(){if(this.isValid()){Ext.form.field.Base.prototype.onChange.apply(this,arguments)}}},items:[{xtype:'textfield',fieldLabel:'HEX',flex:1,bind:'{hex}',margin:a,readOnly:!0},{xtype:'numberfield',fieldLabel:'R',bind:'{red}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'G',bind:'{green}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:a},{xtype:'numberfield',fieldLabel:'B',bind:'{blue}',width:b,hideTrigger:!0,maxValue:255,minValue:0,margin:0}]}]}},getSliderAndHField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickersliderhue',reference:'hueSlider',flex:1,bind:{hue:'{selectedColor.h}'},listeners:{handledrag:'onHueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'H',labelAlign:'top',width:a.fieldWidth,labelSeparator:'',bind:'{hue}',hideTrigger:!0,maxValue:360,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndSField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{right:a.fieldPad,left:a.fieldPad},items:[{xtype:'colorpickerslidersaturation',reference:'satSlider',flex:1,bind:{saturation:'{saturation}',hue:'{selectedColor.h}'},listeners:{handledrag:'onSaturationSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'S',labelAlign:'top',labelSeparator:'',bind:'{saturation}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndVField:function(a){var b=this;return {xtype:'container',viewModel:a,cls:'x-colorpicker-escape-overflow',width:b.fieldWidth,layout:{type:'vbox',align:'stretch'},items:[{xtype:'colorpickerslidervalue',reference:'valueSlider',flex:1,bind:{value:'{value}',hue:'{selectedColor.h}'},listeners:{handledrag:'onValueSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'V',labelAlign:'top',labelSeparator:'',bind:'{value}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getSliderAndAField:function(b){var a=this;return {xtype:'container',viewModel:b,cls:'x-colorpicker-escape-overflow',width:a.fieldWidth,layout:{type:'vbox',align:'stretch'},margin:{left:a.fieldPad},items:[{xtype:'colorpickerslideralpha',reference:'alphaSlider',flex:1,bind:{alpha:'{alpha}',color:{bindTo:'{selectedColor}',deep:!0}},listeners:{handledrag:'onAlphaSliderHandleDrag'}},{xtype:'numberfield',fieldLabel:'A',labelAlign:'top',labelSeparator:'',bind:'{alpha}',hideTrigger:!0,maxValue:100,minValue:0,allowBlank:!1,margin:0}]}},getPreviewAndButtons:function(c,b){var a=[{xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{selectedColor}',deep:!0}}}];if(b.showPreviousColor){a.push({xtype:'colorpickercolorpreview',flex:1,bind:{color:{bindTo:'{previousColor}',deep:!0}},listeners:{click:'onPreviousColorSelected'}})}if(b.showOkCancelButtons){a.push({xtype:'button',text:'OK',margin:'10 0 0 0',handler:'onOK'},{xtype:'button',text:'Cancel',margin:'10 0 0 0',handler:'onCancel'})}return {xtype:'container',viewModel:c,width:70,margin:'0 0 0 10',items:a,layout:{type:'vbox',align:'stretch'}}}},1,['colorselector'],['component','box','container','colorselector'],{'component':!0,'box':!0,'container':!0,'colorselector':!0},['widget.colorselector'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Selector'],0);Ext.cmd.derive('Ext.ux.colorpick.ButtonController',Ext.app.ViewController,{afterRender:function(a){a.updateColor(a.getColor())},destroy:function(){var a=this.getView(),b=a.colorPickerWindow;if(b){b.destroy();a.colorPickerWindow=a.colorPicker=null}Ext.app.ViewController.prototype.destroy.call(this)},getPopup:function(){var b=this.getView(),a=b.colorPickerWindow,c;if(!a){a=Ext.create(b.getPopup());b.colorPickerWindow=a;a.colorPicker=b.colorPicker=c=a.lookupReference('selector');c.setFormat(b.getFormat());c.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:this});a.on({close:'onColorPickerCancel',scope:this})}return a},onClick:function(){var e=this,d=e.getView(),b=d.getColor(),c=e.getPopup(),a=c.colorPicker;a.setColor(b);a.setPreviousColor(b);c.showBy(d,'tl-br?')},onColorPickerOK:function(b){var a=this.getView(),c=b.getColor(),d=a.colorPickerWindow;d.hide();a.setColor(c)},onColorPickerCancel:function(){var b=this.getView(),a=b.colorPickerWindow;a.hide()},syncColor:function(a){var b=this.getView();Ext.ux.colorpick.ColorUtils.setBackground(b.filterEl,a)}},0,0,0,0,['controller.colorpick-buttoncontroller'],0,[Ext.ux.colorpick,'ButtonController'],0);Ext.cmd.derive('Ext.ux.colorpick.Button',Ext.Component,{controller:'colorpick-buttoncontroller',baseCls:'x-colorpicker-button',width:20,height:20,childEls:['btnEl','filterEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},defaultBindProperty:'value',twoWayBindable:'value',renderTpl:'
    ',listeners:{click:'onClick',element:'btnEl'},updateColor:function(b){var a=this,c=a.colorPicker;a.mixins.colorselection.updateColor.call(a,b);Ext.ux.colorpick.ColorUtils.setBackground(a.filterEl,b);if(c){c.setColor(b)}},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}}},0,['colorbutton'],['component','box','colorbutton'],{'component':!0,'box':!0,'colorbutton':!0},['widget.colorbutton'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Button'],0);Ext.cmd.derive('Ext.ux.colorpick.Field',Ext.form.field.Picker,{editable:!1,matchFieldWidth:!1,beforeBodyEl:['
    '],cls:'x-colorpicker-field',childEls:['swatchEl'],config:{popup:{lazy:!0,$value:{xtype:'window',closeAction:'hide',referenceHolder:!0,minWidth:540,minHeight:200,layout:'fit',header:!1,resizable:!0,items:{xtype:'colorselector',reference:'selector',showPreviousColor:!0,showOkCancelButtons:!0}}}},afterRender:function(){Ext.form.field.Picker.prototype.afterRender.call(this);this.updateValue(this.value)},createPicker:function(){var a=this,c=a.getPopup(),b;a.colorPickerWindow=c=Ext.create(c);a.colorPicker=b=c.lookupReference('selector');b.setFormat(a.getFormat());b.setColor(a.getColor());b.on({ok:'onColorPickerOK',cancel:'onColorPickerCancel',scope:a});c.on({close:'onColorPickerCancel',scope:a});return a.colorPickerWindow},onColorPickerOK:function(a){this.setColor(a.getColor());this.collapse()},onColorPickerCancel:function(){this.collapse()},onExpand:function(){var a=this.getColor();this.colorPicker.setPreviousColor(a)},setValue:function(c){var a=this,b=a.applyValue(c);(arguments.callee.$previous||Ext.form.field.Picker.prototype.setValue).call(this,b);a.updateValue(b)},updateFormat:function(b){var a=this.colorPicker;if(a){a.setFormat(b)}},updateValue:function(c){var a=this,b;if(!a.syncing){a.syncing=!0;a.setColor(c);a.syncing=!1}b=a.getColor();Ext.ux.colorpick.ColorUtils.setBackground(a.swatchEl,b);if(a.colorPicker){a.colorPicker.setColor(b)}}},0,['colorfield'],['component','box','field','textfield','pickerfield','colorfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'pickerfield':!0,'colorfield':!0},['widget.colorfield'],[[Ext.ux.colorpick.Selection.prototype.mixinId||Ext.ux.colorpick.Selection.$className,Ext.ux.colorpick.Selection]],[Ext.ux.colorpick,'Field'],0);Ext.cmd.derive('Ext.ux.dd.CellFieldDropZone',Ext.dd.DropZone,{constructor:function(a){a=a||{};if(a.onCellDrop){this.onCellDrop=a.onCellDrop}if(a.ddGroup){this.ddGroup=a.ddGroup}},init:function(b){var a=this;if(b.rendered){a.grid=b;b.getView().on({render:function(c){a.view=c;Ext.ux.dd.CellFieldDropZone.superclass.constructor.call(a,a.view.el)},single:!0})}else {b.on('render',a.init,a,{single:!0})}},containerScroll:!0,getTargetFromEvent:function(f){var e=this,b=e.view;var a=f.getTarget(b.getCellSelector());if(a){var d=b.findItemByChild(a),c=a.cellIndex;if(d&&Ext.isDefined(c)){return {node:a,record:b.getRecord(d),fieldName:e.grid.getVisibleColumnManager().getColumns()[c].dataIndex}}}},onNodeEnter:function(a,e,f,d){delete this.dropOK;if(!a){return}var b=d.field;if(!b){return}var c=a.record.fieldsMap[a.fieldName];if(c.isNumeric){if(!b.isXType('numberfield')){return}}else {if(c.isDateField){if(!b.isXType('datefield')){return}}else {if(c.isBooleanField){if(!b.isXType('checkbox')){return}}}}this.dropOK=!0;Ext.fly(a.node).addCls('x-drop-target-active')},onNodeOver:function(b,c,d,a){return this.dropOK?this.dropAllowed:this.dropNotAllowed},onNodeOut:function(a,c,d,b){Ext.fly(a.node).removeCls('x-drop-target-active')},onNodeDrop:function(a,d,e,c){if(this.dropOK){var b=c.field.getValue();a.record.set(a.fieldName,b);this.onCellDrop(a.fieldName,b);return !0}},onCellDrop:Ext.emptyFn},1,0,0,0,0,0,[Ext.ux.dd,'CellFieldDropZone'],0);Ext.cmd.derive('Ext.ux.rating.Picker',Ext.Widget,{focusable:!0,cachedConfig:{family:'monospace',glyphs:'☆★',minimum:1,limit:5,overStyle:null,rounding:1,scale:'125%',selectedStyle:null,tooltip:null,trackOver:!0,value:null,tooltipText:null,trackingValue:null},config:{animate:null},element:{cls:'ux-rating-picker',reference:'element',children:[{reference:'innerEl',cls:'ux-rating-picker-inner',listeners:{click:'onClick',mousemove:'onMouseMove',mouseenter:'onMouseEnter',mouseleave:'onMouseLeave'},children:[{reference:'valueEl',cls:'ux-rating-picker-value'},{reference:'trackerEl',cls:'ux-rating-picker-tracker'}]}]},defaultBindProperty:'value',twoWayBindable:'value',overCls:'ux-rating-picker-over',trackOverCls:'ux-rating-picker-track-over',applyGlyphs:function(a){if(typeof a==='string'){a=[a.charAt(0),a.charAt(1)]}else {if(typeof a[0]==='number'){a=[String.fromCharCode(a[0]),String.fromCharCode(a[1])]}}return a},applyOverStyle:function(a){this.trackerEl.applyStyles(a)},applySelectedStyle:function(a){this.valueEl.applyStyles(a)},applyTooltip:function(a){if(a&&typeof a!=='function'){if(!a.isTemplate){a=new Ext.XTemplate(a)}a=a.apply.bind(a)}return a},applyTrackingValue:function(a){return this.applyValue(a)},applyValue:function(a){if(a!==null){var b=this.getRounding(),c=this.getLimit(),d=this.getMinimum();a=Math.round(Math.round(a/b)*b*1000)/1000;a=ac?c:a}return a},onClick:function(a){var b=this.valueFromEvent(a);this.setValue(b)},onMouseEnter:function(){this.element.addCls(this.overCls)},onMouseLeave:function(){this.element.removeCls(this.overCls)},onMouseMove:function(a){var b=this.valueFromEvent(a);this.setTrackingValue(b)},updateFamily:function(a){this.element.setStyle('fontFamily',"'"+a+"'")},updateGlyphs:function(){this.refreshGlyphs()},updateLimit:function(){this.refreshGlyphs()},updateScale:function(a){this.element.setStyle('fontSize',a)},updateTooltip:function(){this.refreshTooltip()},updateTooltipText:function(c){var e=this.innerEl,b=Ext.tip&&Ext.tip.QuickTipManager,d=b&&b.tip,a;if(b){e.dom.setAttribute('data-qtip',c);this.trackerEl.dom.setAttribute('data-qtip',c);a=d&&d.activeTarget;a=a&&a.el;if(a&&e.contains(a)){d.update(c)}}},updateTrackingValue:function(d){var a=this,b=a.trackerEl,c=a.valueToPercent(d);b.setStyle('width',c);a.refreshTooltip()},updateTrackOver:function(a){this.element[a?'addCls':'removeCls'](this.trackOverCls)},updateValue:function(e,g){var a=this,h=a.getAnimate(),c=a.valueEl,f=a.valueToPercent(e),b,d;if(a.isConfiguring||!h){c.setStyle('width',f)}else {c.stopAnimation();c.animate(Ext.merge({from:{width:a.valueToPercent(g)},to:{width:f}},h))}a.refreshTooltip();if(!a.isConfiguring){if(a.hasListeners.change){a.fireEvent('change',a,e,g)}b=a.getWidgetColumn&&a.getWidgetColumn();d=b&&a.getWidgetRecord&&a.getWidgetRecord();if(d&&b.dataIndex){d.set(b.dataIndex,e)}}},afterCachedConfig:function(){this.refresh();return Ext.Widget.prototype.afterCachedConfig.apply(this,arguments)},initConfig:function(a){this.isConfiguring=!0;this.callParent([a]);this.refresh()},setConfig:function(){var a=this;a.isReconfiguring=!0;a.callParent(arguments);a.isReconfiguring=!1;a.refresh();return a},destroy:function(){this.tip=Ext.destroy(this.tip);Ext.Widget.prototype.destroy.call(this)},privates:{getGlyphTextNode:function(b){var a=b.lastChild;if(!a||a.nodeType!==3){a=b.ownerDocument.createTextNode('');b.appendChild(a)}return a},getTooltipData:function(){var a=this;return {component:a,tracking:a.getTrackingValue(),trackOver:a.getTrackOver(),value:a.getValue()}},refresh:function(){var a=this;if(a.invalidGlyphs){a.refreshGlyphs(!0)}if(a.invalidTooltip){a.refreshTooltip(!0)}},refreshGlyphs:function(j){var a=this,g=!j&&(a.isConfiguring||a.isReconfiguring),i,c,h,b,d,e,f;if(!g){i=a.getGlyphTextNode(a.innerEl.dom);f=a.getGlyphTextNode(a.valueEl.dom);e=a.getGlyphTextNode(a.trackerEl.dom);c=a.getGlyphs();h=a.getLimit();for(b=d='';h--;){d+=c[0];b+=c[1]}i.nodeValue=d;f.nodeValue=b;e.nodeValue=b}a.invalidGlyphs=g},refreshTooltip:function(f){var a=this,c=!f&&(a.isConfiguring||a.isReconfiguring),b=a.getTooltip(),d,e;if(!c){b=a.getTooltip();if(b){d=a.getTooltipData();e=b(d);a.setTooltipText(e)}}a.invalidTooltip=c},valueFromEvent:function(g){var a=this,e=a.innerEl,j=g.getX(),d=a.getRounding(),i=e.getX(),c=j-i,f=e.getWidth(),h=a.getLimit(),b;if(a.getInherited().rtl){c=f-c}b=c/f*h;b=Math.ceil(b/d)*d;return b},valueToPercent:function(a){a=a/this.getLimit()*100;return a+'%'}}},0,['rating'],['widget','rating'],{'widget':!0,'rating':!0},['widget.rating'],0,[Ext.ux.rating,'Picker'],0);Ext.cmd.derive('common.SearchField',Ext.form.field.Text,{emptyText:'Search',submitEmptyText:!1,enableKeyEvents:!0,listeners:{specialkey:function(a,b){if(b.getKey()==b.ENTER){if(a.isValid()&&a.getValue()!==''){this.fireEvent('search',a.getValue(),this)}}},change:function(a){var b=a.getValue();if(b.length>0){a.getTrigger('clear').show();a.getTrigger('search').hide();if(this.getMinSearch()>0&&a.getValue().length>=this.getMinSearch()){if(a.isValid()&&a.getValue()!==''){this.fireEvent('search',a.getValue(),this)}}}else {a.getTrigger('clear').hide();a.getTrigger('search').show();this.fireEvent('cancel')}},buffer:500},triggers:{clear:{cls:'x-form-clear-trigger',handler:function(a){a.reset();this.getTrigger('clear').hide();this.getTrigger('search').show();this.fireEvent('cancel')},hidden:!0},search:{cls:'x-form-search-trigger',handler:function(){}}},config:{minSearch:null}},0,['common-searchfield'],['component','box','field','textfield','common-searchfield'],{'component':!0,'box':!0,'field':!0,'textfield':!0,'common-searchfield':!0},['widget.common-searchfield'],0,[common,'SearchField'],0);Ext.cmd.derive('common.data.proxy.CrsfToken',Ext.Base,{singleton:!0,constructor:function(){Ext.Ajax.on('beforerequest',function(b,a){if(!(/^http:.*/.test(a.url)||/^https:.*/.test(a.url))){if(typeof a.headers=='undefined'){a.headers={'Accept':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')}}else {a.headers['Application']='application/json';a.headers['X-CSRFToken']=Ext.util.Cookies.get('csrftoken')}}},this)}},1,0,0,0,0,0,[common.data.proxy,'CrsfToken'],0);Ext.cmd.derive('common.data.proxy.Django',Ext.data.proxy.Rest,{headers:{'Accept':'application/json;'},startParam:'offset',sortParam:'ordering',reader:{type:'json',rootProperty:'results',totalProperty:'count'},writer:{},actionMethods:{create:'POST',read:'GET',update:'PATCH',destroy:'DELETE'},encodeSorters:function(b){var c=[],a,d;for(var e in b){a=b[e];d=(a.getDirection()=='DESC'?'-':'')+a.getProperty();c.push(d)}return c.join()},getParams:function(b){var a=Ext.data.proxy.Rest.prototype.getParams.apply(this,arguments);if(!b.isReadOperation){return a}var c=b.getFilters();delete a[this.getFilterParam()];Ext.each(c,function(f){var e=f.getProperty(),d=f.getValue(),c,g;switch(f.getOperator()){case '<':c=Ext.String.format('{0}__lt',e);a[c]=d;break;case '<=':c=Ext.String.format('{0}__lte',e);a[c]=d;break;case '>=':c=Ext.String.format('{0}__gte',e);a[c]=d;break;case '>':c=Ext.String.format('{0}__gt',e);a[c]=d;break;case '!=':c=Ext.String.format('{0}__ne',e);a[c]=d;break;case 'in':c=Ext.String.format('{0}__in',e);a[c]=d.join();break;case 'like':c=Ext.String.format('{0}__icontains',e);a[c]=d;break;case 'range':c=Ext.String.format('{0}__range',e);g=Ext.String.format('{0},{1}',d[0],d[1]);a[c]=g;break;default:a[e]=d;}});return a},buildUrl:function(c){var b=this,e=c.getOperation(),h=e.getRecords(),g=h?h[0]:null,i=b.getFormat(),a=b.getUrl(c),d,f;if(g&&!g.phantom){d=g.getId()}else {d=e.getId()}if(b.getAppendId()&&b.isValidId(d)||e.action==='update'){if(!a.match(b.slashRe)){a+='/'}a+=encodeURIComponent(d);f=c.getParams();if(f){delete f[b.getIdParam()]}a+='/'}if(i){if(!a.match(b.periodRe)){a+='.'}a+=i}c.setUrl(a);return Ext.data.RestProxy.superclass.buildUrl.apply(this,arguments)}},0,0,0,0,['proxy.django'],0,[common.data.proxy,'Django'],0);Ext.cmd.derive('common.store.MyStore',Ext.data.Store,{proxy:{type:'django'},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c;switch(a.status){case 403:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;case 408:c=JSON.parse(a.response.responseText);Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Maximum execution time exceeded.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING});break;}}}}}},0,0,0,0,0,0,[common.store,'MyStore'],0);Ext.cmd.derive('common.store.CommentsObjects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,proxy:{type:'django',url:'/dri/api/objectscomments/'},sorters:[{property:'date',direction:'DESC'}]},0,0,0,0,['store.comments-objects'],0,[common.store,'CommentsObjects'],0);Ext.cmd.derive('common.model.CommentObject',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'catalog_id',type:'int'},{name:'object_id',type:'string'},{name:'comments',type:'string'},{name:'owner',type:'string',persist:!1},{name:'date',type:'date',persist:!1},{name:'is_owner',type:'boolean',persist:!1}]},0,0,0,0,0,0,[common.model,'CommentObject'],0);Ext.cmd.derive('common.comment.CommentsObjectModel',Ext.app.ViewModel,{data:{catalog_id:null,object_id:null},stores:{comments:{type:'comments-objects'}},links:{currentcomment:{type:'common.model.CommentObject',create:!0}}},0,0,0,0,['viewmodel.comment-object'],0,[common.comment,'CommentsObjectModel'],0);Ext.cmd.derive('common.comment.CommentsObjectController',Ext.app.ViewController,{loadComments:function(b,c){var f=this,e=f.getView(),a=e.getViewModel(),d=a.getStore('comments');a.set('catalog_id',b);a.set('object_id',c);d.filter([{property:'catalog_id',value:b},{property:'object_id',value:c}])},onNewComment:function(){var a=this,g=a.getView(),b=a.getViewModel(),f=b.getStore('comments'),d=a.lookup('txtComment'),e=d.getValue(),c;if(e){c=Ext.create('common.model.CommentObject',{catalog_id:b.get('catalog_id'),object_id:b.get('object_id'),comments:e});d.reset();f.add(c);a.applyChanges()}},onTxtCommentPressKey:function(d,a){var b=this,c=b.lookup('txtComment');if(a.keyCode==13){b.onNewComment()}else {if(a.keyCode==27){c.reset()}}},onClickUpdateComment:function(b){var f=this,e=f.lookup('GridComments'),a=e.findPlugin('rowediting'),c=b.up('button'),d=c.getWidgetRecord();a.startEdit(d)},updateComment:function(d,a){var c=this,b=a.record;b.set('comments',a.newValues['comments']);c.applyChanges()},onClickDeleteComment:function(b){var a=this,c=b.up('button');record=c.getWidgetRecord();Ext.MessageBox.confirm('Confirm','Are you sure you want to do that?',function(c){if(c==='yes'){a.deleteComment(record)}},a)},deleteComment:function(b){var a=this,d=a.getViewModel(),c=d.getStore('comments');c.remove(b);a.applyChanges()},applyChanges:function(){var c=this,b=c.getView(),d=c.getViewModel(),a=d.getStore('comments');b.setLoading(!0);a.sync({success:function(){a.load()},failure:function(){a.rejectChanges();c.onFailure()},callback:function(){b.setLoading(!1);b.fireEvent('changecomments',a,b)}})},onFailure:function(){Ext.Msg.show({title:'Sorry',msg:'There was a problem and it was not possible to create the new record, please try again in a few moments. If the problem persists please notify us via the help desk.',icon:Ext.Msg.WARNING,buttons:Ext.Msg.OK})}},0,0,0,0,['controller.comment-object'],0,[common.comment,'CommentsObjectController'],0);Ext.cmd.derive('common.comment.CommentsObject',Ext.Panel,{padding:'19',frame:!0,controller:'comment-object',viewModel:'comment-object',layout:{type:'vbox',pack:'start',align:'stretch'},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'container',layout:'hbox',align:'fit',items:[{xtype:'textfield',reference:'txtComment',name:'comments',margin:'0 6 0 0',flex:1,enableKeyEvents:!0,listeners:{specialkey:'onTxtCommentPressKey'}},{xtype:'button',text:'Post',itemId:'btnSaveComment',align:'stretch',handler:'onNewComment',iconCls:'x-fa fa-floppy-o'}]},{xtype:'grid',reference:'GridComments',flex:1,frame:!0,split:!0,hideHeaders:!0,bind:{store:'{comments}',selection:'{currentcomment}'},plugins:[{ptype:'rowediting',autoCancel:!1,listeners:{edit:'updateComment'}}],columns:[{text:'',dataIndex:'comments',renderer:a.formatUser,flex:2,menuDisabled:!0,editor:{xtype:'textfield',allowBlank:!1}},{xtype:'datecolumn',text:'Date',dataIndex:'date',hidden:!0},{text:'Button',width:50,xtype:'widgetcolumn',widget:{xtype:'button',iconCls:'x-fa fa-caret-down',arrowVisible:!1,menu:[{text:'Edit',iconCls:'x-fa fa-pencil',handler:'onClickUpdateComment'},{text:'Delete',iconCls:'x-fa fa-trash',handler:'onClickDeleteComment'}]},onWidgetAttach:function(b,a){if(a.getWidgetRecord().get('is_owner')){a.setDisabled(!1)}else {a.setDisabled(!0)}}}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},formatUser:function(b,e,a){var d=this,c='
    {0} comments on {1}
    {2}
    ';return Ext.String.format(c,a.get('owner'),a.get('date')||'Unknown',b)},setObject:function(a,b){var c=this,d=c.getViewModel(),e=c.getController();d.set('catalog_id',a);d.set('object_id',b);e.loadComments(a,b)}},0,['comments-object'],['component','box','container','panel','comments-object'],{'component':!0,'box':!0,'container':!0,'panel':!0,'comments-object':!0},['widget.comments-object'],0,[common.comment,'CommentsObject'],0);Ext.cmd.derive('common.model.CommentPosition',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'owner',type:'string'},{name:'pst_dataset',type:'int'},{name:'pst_filter',type:'int'},{name:'pst_ra',type:'float'},{name:'pst_dec',type:'float'},{name:'pst_date',type:'date'},{name:'pst_comment',type:'string'},{name:'is_owner',type:'boolean'},{name:'coordinates',type:'string'}]},0,0,0,0,0,0,[common.model,'CommentPosition'],0);Ext.cmd.derive('common.store.CommentsPosition',common.store.MyStore,{model:'common.model.CommentPosition',remoteFilter:!0,remoteSort:!0,autoLoad:!1,proxy:{type:'django',url:'/dri/api/comment/position/'},sorters:[{property:'date',direction:'DESC'}]},0,0,0,0,['store.comments-position'],0,[common.store,'CommentsPosition'],0);Ext.cmd.derive('common.comment.CommentsPositionModel',Ext.app.ViewModel,{data:{catalog_id:null,coordinates:null},stores:{comments:{type:'comments-position'}},links:{currentcomment:{type:'common.model.CommentPosition',create:!0}}},0,0,0,0,['viewmodel.comment-position'],0,[common.comment,'CommentsPositionModel'],0);Ext.cmd.derive('common.comment.CommentsPositionController',Ext.app.ViewController,{loadComments:function(c,g){var b=this.getView().getViewModel(),f=b.getStore('comments'),a=c.targetPosition,d=a?a.lat:c.latlng.lat,e=a?a.lng:c.latlng.lng;b.set('pst_dataset',g.id);b.set('pst_dec',d);b.set('pst_ra',e);f.filter([{property:'coordinates',value:'[['+e+','+d+'],['+e+','+d+']]'}])},onDeleteComment:function(e){var a=this,c=a.getView(),d=c.getViewModel(),b=d.get('currentcomment');Ext.MessageBox.confirm('Confirm','Are you sure you want to do that?',function(c){if(c==='yes'){a.deleteComment(b)}},this)},deleteComment:function(b){var d=this,a=d.getView(),e=a.getViewModel(),c=e.getStore('comments');a.setLoading(!0);c.remove(b);c.sync({success:function(){b.isCommentPosition=!0;a.fireEvent('changecomments',{type:'delete',comment:b,total:c.data.items.length});a.setLoading(!1)},failure:function(e,d){a.setLoading(!1);var c=d.request.proxy.reader.jsonData;if(c){Ext.Msg.alert('Status',c.msg)}else {Ext.MessageBox.show({title:'Server Side Failure',msg:c.status+' '+c.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})}}})},onSaveComment:function(f){var e=this,b=e.getView(),d=b.getViewModel(),a=d.getStore('comments');var c=d.get('currentcomment');if(c.get('comments')!=''){b.setLoading(!0);a.sync({success:function(){a.commitChanges();a.load({callback:function(){c.isCommentPosition=!0;b.fireEvent('changecomments',{type:'delete',comment:c,total:a.data.items.length})}});var e=Ext.create('common.model.CommentObject');d.set('currentcomment',e);b.setLoading(!1)},failure:function(c,d){b.setLoading(!1);Ext.Msg.show({title:'Sorry',msg:'Was not possible to change the comment.',icon:Ext.Msg.ERROR,buttons:Ext.Msg.OK});a.rejectChanges()}})}},onNewComment:function(c){var a=this.getView().getViewModel(),d=a.getStore('comments');var b=Ext.create('common.model.CommentPosition',{pst_ra:a.get('pst_ra'),pst_dec:a.get('pst_dec'),pst_comment:c,pst_dataset:a.get('pst_dataset')});d.insert(0,b);a.set('currentcomment',b)}},0,0,0,0,['controller.comment-position'],0,[common.comment,'CommentsPositionController'],0);Ext.cmd.derive('common.comment.CommentsPosition',Ext.Panel,{padding:'19',frame:!0,controller:'comment-position',viewModel:'comment-position',layout:{type:'vbox',pack:'start',align:'stretch'},initComponent:function(){var a=this;a.rowEditing=new Ext.grid.plugin.RowEditing({listeners:{edit:function(c,b){b.record.set('pst_comment',b.newValues['pst_comment']);a.getController().onSaveComment()},canceledit:function(a,b){}}});if(!a.contextMenu){a.contextMenu=new Ext.menu.Menu({items:[{text:'Edit',handler:function(e){var d=a.down('grid'),b=a.contextMenu.record,c=d.store.find('id',b.data.id);a.rowEditing.startEdit(c,0)}},{text:'Delete',handler:function(e){var b=a.down('grid'),c=a.contextMenu.record,d=b.store.find('id',c.data.id);b.getSelectionModel().select(d);a.getController().onDeleteComment(e)}}]})}Ext.apply(this,{items:[{xtype:'container',layout:'hbox',align:'fit',items:[{xtype:'textfield',name:'comments',margin:'0 6 0 0',flex:1,enableKeyEvents:!0,listeners:{change:function(c,d){var b=a.down('grid').store;if(b.getNewRecords().length==0){}},specialkey:function(d,b){var c=a.getController();if(b.keyCode==13&&this.value){c.onNewComment(this.value);c.onSaveComment();this.setValue('')}else {if(b.keyCode==27){this.setValue('')}}}}},{xtype:'button',text:'Post',itemId:'btnSaveComment',align:'stretch',handler:function(){var c=a.getController();var b=a.down('[name="comments"]');if(b.value){c.onNewComment(b.value);c.onSaveComment();b.setValue('')}},iconCls:'x-fa fa-floppy-o'}]},{xtype:'grid',flex:1,frame:!0,split:!0,hideHeaders:!0,cls:'comment-grid',bind:{store:'{comments}',selection:'{currentcomment}'},plugins:[a.rowEditing],columns:[{text:'',dataIndex:'pst_comment',renderer:this.formatUser,flex:2,menuDisabled:!0,editor:{xtype:'textfield',allowBlank:!1}},{xtype:'datecolumn',text:'Date',dataIndex:'date',hidden:!0}]}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},formatUser:function(c,f,a){var e=this,b=Ext.id(),d='
    {0} comments on {1}
    {3}
    ';Ext.defer(function(){Ext.widget('button',{renderTo:b,iconCls:'x-fa fa-caret-down',style:'padding:0;margin-left:20px',handler:function(h,b){var g={x:b.event.clientX,y:b.event.clientY},d=e.up('comments-position').contextMenu;d.record=a;d.showAt(g)}})},50);return Ext.String.format(d,a.get('owner'),a.get('date')||'Unknown',b,c)}},0,['comments-position'],['component','box','container','panel','comments-position'],{'component':!0,'box':!0,'container':!0,'panel':!0,'comments-position':!0},['widget.comments-position'],0,[common.comment,'CommentsPosition'],0);Ext.cmd.derive('common.contact.ContactController',Ext.app.ViewController,{onFormCancel:function(){this.getView().lookupReference('windowForm').getForm().reset();this.getView().close()},onFormSubmit:function(){var c=this.getView(),d=c.lookupReference('windowForm'),b=d.getForm(),a=b.getValues();a.current_url=window.location.href;a.current_user=window.sessionStorage.dri_username;if(b.isValid()){Ext.Ajax.request({url:'/dri/api/contact/',method:'POST',params:a,success:function(){c.close();Ext.MessageBox.alert('Thank you!','Your inquiry has been sent. We will respond as soon as possible.')},failure:function(a,b){Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:'Sorry, message was not sent.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this})}})}}},0,0,0,0,['controller.contact'],0,[common.contact,'ContactController'],0);Ext.cmd.derive('common.contact.Contact',Ext.window.Window,{reference:'contactWindow',title:'Contact Us',controller:'contact',width:400,height:500,minWidth:300,minHeight:380,layout:'fit',resizable:!0,modal:!0,defaultFocus:'firstName',closeAction:'destroy',items:[{xtype:'form',reference:'windowForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{margin:'0 0 20 0',xtype:'component',html:['Thank you for visiting our site! We welcome your feedback; ','please click the button below to send us a message. We will ','respond to your inquiry as quickly as possible.']},{xtype:'textfield',fieldLabel:'Name',name:'name',allowBlank:!1},{xtype:'textfield',fieldLabel:'Your Email Address',vtype:'email',name:'from',allowBlank:!1},{xtype:'textfield',fieldLabel:'Subject',name:'subject',allowBlank:!1},{xtype:'textareafield',fieldLabel:'How can we help?',labelAlign:'top',flex:1,margin:'0',name:'message',allowBlank:!1,emptyText:'Describe the problem or share your ideas.'}],buttons:[{text:'Cancel',handler:'onFormCancel'},{text:'Send',handler:'onFormSubmit'}]}]},0,['form-contact-window'],['component','box','container','panel','window','form-contact-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'form-contact-window':!0},['widget.form-contact-window'],0,[common.contact,'Contact'],0);Ext.cmd.derive('common.data.Settings',Ext.Base,{singleton:!0,alternateClassName:'Settings',url:'/dri/api/get_setting/',teste:'boo',getSetting:function(c,a,b){var d=this;Ext.Ajax.request({url:d.url,method:'GET',params:{name:c},success:function(e){var d=JSON.parse(e.responseText);Ext.callback(a,b,[d[c],d])},failure:function(d,e){console.warn('Server Side Failure getSetting');Ext.callback(a,b,[null])}})},getSettings:function(c,a,b){var d=this;Ext.Ajax.request({url:d.url,method:'GET',params:{names:c.join()},success:function(d){var e=JSON.parse(d.responseText);Ext.callback(a,b,[e])},failure:function(d,e){console.warn('Server Side Failure getSettings');Ext.callback(a,b,[null])}})},loadSettings:function(b){var a=this;a.getSettings(b,function(d){for(var c in d){a[c]=d[c]}},a)}},0,0,0,0,0,0,[common.data,'Settings',0,'Settings'],0);Ext.cmd.derive('common.footer.FooterController',Ext.app.ViewController,{onClickContact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()}},0,0,0,0,['controller.footer'],0,[common.footer,'FooterController'],0);Ext.cmd.derive('common.footer.Footer',Ext.toolbar.Toolbar,{controller:'footer',cls:'des-portal-footer',height:28,layout:{pack:'center',align:'middle'},viewModel:{data:{}},items:[{xtype:'tbtext',html:'Powered by LIneA | Dark Energy Survey | NCSA',cls:'des-portal-footer-text'}]},0,['dri-footer'],['component','box','container','toolbar','dri-footer'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-footer':!0},['widget.dri-footer'],0,[common.footer,'Footer'],0);Ext.cmd.derive('common.ToolbarController',Ext.app.ViewController,{listen:{component:{'dri-header':{afterrender:'onAfterRender'}}},logout:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/dri/api/api-auth/logout/?next=/dri/apps/',b,c);window.location.assign(a)},projectHome:function(){var b=window.location.protocol,c=window.location.host,a=Ext.String.format('{0}//{1}/',b,c);window.location.assign(a)},contact:function(){if(this.wincontact){this.wincontact=null}this.wincontact=Ext.create('common.contact.Contact',{});this.wincontact.show()},about:function(){window.open('http://www.linea.gov.br')},onAfterRender:function(){var a=this;a.loadUsername();a.loaddTutorials()},loaddTutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');a.addFilter([{property:'app_name',value:c.get('internal_name')}]);a.load({scope:this,callback:b.onLoadTutorials})},onLoadTutorials:function(){var b=this,d=b.getViewModel(),c=d.getStore('tutorials'),a=b.lookupReference('headermenututorials');if(c.count()>0){a.enable()}else {a.disable()}},tutorials:function(){var b=this,c=b.getViewModel(),a=c.getStore('tutorials');if(this.wincontact){this.wincontact=null}this.wintutorials=Ext.create('common.help.Tutorials',{store:a});this.wintutorials.show()},onClickHelp:function(){var e=this,f=e.getViewModel(),c=window.location.protocol,d=window.location.host,b=f.get('help_url'),a;a=Ext.String.format('{0}//{1}/{2}',c,d,b);window.open(a)},loadUsername:function(){var a=this,b=a.getViewModel();Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(c){var a=JSON.parse(c.responseText);b.set('username',a.username);window.dri_username=a.username}})}},0,0,0,0,['controller.toolbar'],0,[common,'ToolbarController'],0);Ext.cmd.derive('common.help.TutorialsController',Ext.app.ViewController,{onSelect:function(e,c){var d=this,b=d.lookupReference('video'),a;a=Ext.create('Ext.Component',{flex:1,html:''});b.removeAll();b.add(a)}},0,0,0,0,['controller.tutorials'],0,[common.help,'TutorialsController'],0);Ext.cmd.derive('common.help.Tutorials',Ext.window.Window,{title:'Tutorials',controller:'tutorials',config:{store:null},initComponent:function(){var a=this;Ext.apply(this,{layout:'border',width:700,height:400,minWidth:300,minHeight:280,resizable:!0,maximizable:!0,modal:!0,closeAction:'destroy',items:[{xtype:'grid',reference:'tutorials_grid',region:'west',split:!0,hideHeaders:!0,width:200,store:a.getStore(),columns:[{dataIndex:'ttr_title',flex:1}],listeners:{select:'onSelect'}},{xtype:'panel',region:'center',reference:'video',split:!0,layout:{type:'vbox',pack:'start',align:'stretch'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)}},0,['tutorials-window'],['component','box','container','panel','window','tutorials-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'tutorials-window':!0},['widget.tutorials-window'],0,[common.help,'Tutorials'],0);Ext.cmd.derive('common.header.Toolbar',Ext.toolbar.Toolbar,{controller:'toolbar',cls:'des-portal-headerbar toolbar-btn-shadow',layout:{type:'hbox',align:'middle'},viewModel:{data:{home:'',desPortalLogo:'resources/des-portal-logo.png',tooltip:'Home',username:''},stores:{tutorials:{fields:['id','application','application_display_name','ttr_title','ttr_src','ttr_description'],remoteSort:!0,remoteFilter:!0,autoLoad:!1,pageSize:0,proxy:{type:'django',url:'/dri/api/tutorial/'}}}},viewItems:function(){return [{xtype:'component',cls:'des-portal-logo',bind:{html:'Home'}},{xtype:'component',cls:'des-portal-appname',bind:{html:'{name}'},flex:1},'->',{xtype:'button',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',itemId:'btnusername',bind:{text:'{username}'}},{xtype:'button',iconCls:'x-fa fa-home',ui:'white-toolbar',cls:'delete-focus-bg',scale:'medium',handler:'projectHome',tooltip:'Home of the Science Server'},{xtype:'button',reference:'headermenu',iconCls:'x-fa fa-bars',cls:'delete-focus-bg',ui:'white-toolbar',scale:'medium',arrowVisible:!1,menu:[{text:'About LIneA',handler:'about'},{text:'Contact Us',handler:'contact'},{text:'Tutorials',iconCls:'x-fa fa-question-circle',reference:'headermenututorials',disabled:!0,handler:'tutorials'},{text:'Help',iconCls:'x-fa fa-question',reference:'headermenuhelp',handler:'onClickHelp'},'-',{text:'Log out',iconCls:'x-fa fa-sign-out',handler:'logout'}]}]},initComponent:function(){this.items=this.viewItems();Ext.toolbar.Toolbar.prototype.initComponent.call(this)},afterRender:function(){var c=this,b=window.location.href,a;a=b.split('#')[0];c.getViewModel().set('home',a);Ext.toolbar.Toolbar.prototype.afterRender.apply(this,arguments)}},0,['dri-header'],['component','box','container','toolbar','dri-header'],{'component':!0,'box':!0,'container':!0,'toolbar':!0,'dri-header':!0},['widget.dri-header'],0,[common.header,'Toolbar'],0);Ext.cmd.derive('common.model.Dataset',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'tag',type:'int'},{name:'tag_display_name',type:'string'},{name:'release',type:'int'},{name:'release_name',type:'string'},{name:'release_display_name',type:'string'},{name:'tite',type:'int'},{name:'run',type:'string'},{name:'date',type:'string'},{name:'tli_tilename',type:'string'},{name:'tli_ra',type:'float'},{name:'tli_ra',type:'float'},{name:'tli_dec',type:'float'},{name:'tli_urall',type:'float'},{name:'tli_udecll',type:'float'},{name:'tli_uraur',type:'float'},{name:'tli_udecur',type:'float'},{name:'release_tag',type:'string',convert:function(b,a){return Ext.String.format('{0} - {1}',a.get('release_display_name'),a.get('tag_display_name'))}},{name:'image_src_ptif',type:'string'},{name:'image_src_thumbnails',type:'string'},{name:'g',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'g',a.get('tli_tilename'))}},{name:'r',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'r',a.get('tli_tilename'))}},{name:'i',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'i',a.get('tli_tilename'))}},{name:'z',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'z',a.get('tli_tilename'))}},{name:'y',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'y',a.get('tli_tilename'))}},{name:'irg',type:'string',convert:function(b,a){return Ext.String.format('{0}/{1}/{2}.png',a.get('image_src_thumbnails'),'irg',a.get('tli_tilename'))}}],isInsideTile:function(a,e){var d=this,a=parseFloat(a),e=parseFloat(e),b,c,f,g;if(a>180){a=a-360}b=d.get('tli_urall');c=d.get('tli_uraur');f=d.get('tli_udecll');g=d.get('tli_udecur');if(b>180){b=b-360}if(c>180){c=c-360}if(a>b&&af&&e180){a=a-360}b=f.get('tli_urall');c=f.get('tli_uraur');if(b>180){b=b-360}if(c>180){c=c-360}if(ba&&f.get('tli_udecur')>d){e=f;return !1}},this);return e}},0,0,0,0,['store.tiles'],0,[common.store,'Tiles'],0);Ext.cmd.derive('common.store.Datasets',common.store.Tiles,{model:'common.model.Dataset',remoteFilter:!0,remoteSort:!0,pageSize:100,proxy:{type:'django',timeout:90000,url:'/dri/api/dataset/'}},0,0,0,0,['store.datasets'],0,[common.store,'Datasets'],0);Ext.cmd.derive('common.store.MyTreeStore',Ext.data.TreeStore,{proxy:{type:'django',appendId:!1,reader:{type:'json',rootProperty:'children'}},listeners:{load:function(h,i,e,f){if(e===!1){var g=h.proxy;var d=g.reader;if(d.jsonData){var b=d.jsonData;if(b!='undefined'){console.log('Load Failure: %o',b);Ext.Msg.alert('Status',b.msg)}}else {var a=f.getError(),c=JSON.parse(a.response.responseText);switch(a.status){case 403:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,closable:!1,scope:this,fn:function(){var c=window.location.pathname,b=window.location.hostname,a;a=Ext.String.format('http://{0}/dri/api/api-auth/login/?next={1}',b,c);window.location.assign(a)}});break;default:Ext.MessageBox.show({title:a.status+' - '+a.statusText,msg:c.detail,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING,scope:this});}}}}}},0,0,0,0,0,0,[common.store,'MyTreeStore'],0);Ext.cmd.derive('common.store.Releases',common.store.MyStore,{model:'common.model.Release',autoLoad:!0,remoteSort:!0,remoteFilter:!1,proxy:{type:'django',url:'/dri/api/releases/'},sorters:[{property:'rls_date',direction:'DESC'},{property:'rls_display_name',direction:'ASC'}]},0,0,0,0,['store.releases'],0,[common.store,'Releases'],0);Ext.cmd.derive('common.store.Tags',common.store.MyStore,{model:'common.model.Tag',remoteFilter:!0,remoteSort:!0,proxy:{type:'django',url:'/dri/api/tags/'},sorters:[{property:'tag_display_name',direction:'ASC'}]},0,0,0,0,['store.tags'],0,[common.store,'Tags'],0);Ext.cmd.derive('common.store.UsersSameGroup',common.store.MyStore,{autoLoad:!1,remoteSort:!1,remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/users_same_group/'},sorters:[{property:'username',direction:'ASC'}],fields:['id','username']},0,0,0,0,['store.users_same_group'],0,[common.store,'UsersSameGroup'],0);Ext.cmd.derive('visiomatic.Interface',Ext.Base,{makeToolbar:function(){return Ext.create('Ext.toolbar.Toolbar',{items:[]})},makeToolbarButtons:function(){var a=this,c=a.getAuxTools(),b=[];if(a.getEnableShift()){b.push({xtype:'button',tooltip:'Switch between Visiomatic / Aladdin.',iconCls:'x-fa fa-exchange',scope:a,handler:a.onShift})}if(a.getEnableLink()){b.push({xtype:'button',tooltip:'Get link',iconCls:'x-fa fa-link',scope:a,handler:a.getLinkToPosition})}if(c.length>0){Ext.each(c,function(a){b.push(a)})}return b},makeMousePosition:function(){var a=this.getMap();return Ext.DomHelper.append(a._controlCorners['topright'],{tag:'div',cls:'leaflet-right leaflet-control leaflet-control-wcs-dialog visiomatic-mouse-position',html:'
    Mouse RA, Dec (0,0)
    '})}},0,0,0,0,0,0,[visiomatic,'Interface'],0);Ext.cmd.derive('visiomatic.VisiomaticModel',Ext.app.ViewModel,{data:{release:null,tag:null,dataset:null}},0,0,0,0,['viewmodel.visiomatic'],0,[visiomatic,'VisiomaticModel'],0);Ext.cmd.derive('visiomatic.VisiomaticController',Ext.app.ViewController,{},0,0,0,0,['controller.visiomatic'],0,[visiomatic,'VisiomaticController'],0);Ext.cmd.derive('visiomatic.catalog.Catalogs',Ext.tree.Panel,{initComponent:function(){var a=this;Ext.apply(this,{emptyText:'No data to display.',hideHeaders:!0,rootVisible:!1,useArrows:!0,selModel:{mode:'SINGLE'},columns:[{xtype:'treecolumn',text:'Name',flex:2,sortable:!0,dataIndex:'text',renderer:a.getTooltipName}],tbar:[{xtype:'textfield',emptyText:'Search by name',reference:'SearchField',flex:1,triggers:{clear:{cls:'x-form-clear-trigger',handler:'cancelFilter',hidden:!0},search:{cls:' x-form-search-trigger'}},listeners:{change:'filterCatalogByname',buffer:500}}]});Ext.tree.Panel.prototype.initComponent.apply(this,arguments)},getTooltipName:function(d,e,b){var f=this,c,a;if(b.get('leaf')){c=new Ext.XTemplate('
    ','{prd_display_name}','','


    {description}

    ','
    ','
    ');a=c.apply(b.data);e.tdAttr='data-qtip="'+a+'"'}return d}},0,['visiomatic-catalogs-tree'],['component','box','container','panel','tablepanel','treepanel','visiomatic-catalogs-tree'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'treepanel':!0,'visiomatic-catalogs-tree':!0},['widget.visiomatic-catalogs-tree'],0,[visiomatic.catalog,'Catalogs'],0);Ext.cmd.derive('visiomatic.model.CatalogTree',Ext.data.Model,{fields:[{name:'id'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'epr_name',type:'string'},{name:'epr_username',type:'string'},{name:'epr_start_date',type:'date'},{name:'epr_end_date',type:'date'},{name:'epr_readme',type:'string'},{name:'epr_comment',type:'string'},{name:'ctl_num_columns',type:'int'},{name:'ctl_num_tiles',type:'int'},{name:'ctl_num_objects',type:'int'},{name:'cds_source',type:'string'},{name:'cds_fieldnames',type:'string'},{name:'editable',type:'boolean',defaultValue:!1},{name:'markable',type:'boolean',defaultValue:!1},{name:'release_display_name',type:'string'},{name:'external_catalog',type:'boolean',defaultValue:!1}]},0,0,0,0,0,0,[visiomatic.model,'CatalogTree'],0);Ext.cmd.derive('visiomatic.store.CatalogsTree',common.store.MyTreeStore,{model:'visiomatic.model.CatalogTree',autoLoad:!1,remoteFilter:!0,proxy:{api:{read:'/dri/api/catalog/get_class_tree_by_group/'}}},0,0,0,0,['store.catalogs-overlay-tree'],0,[visiomatic.store,'CatalogsTree'],0);Ext.cmd.derive('visiomatic.store.Overlays',Ext.data.ArrayStore,{remoteFilter:!1,remoteSort:!1,autoLoad:!1,pageSize:0},0,0,0,0,['store.overlays'],0,[visiomatic.store,'Overlays'],0);Ext.cmd.derive('visiomatic.model.FilterCondition',Ext.data.Model,{fields:[{name:'id',type:'int','default':null,persist:!1},{name:'filterset',type:'int'},{name:'fcd_property',type:'int'},{name:'fcd_property_name',type:'string'},{name:'fcd_operation',type:'string'},{name:'fcd_value',type:'string'},{name:'operator_display_name',type:'string',persist:!1},{name:'property_display_name',type:'string',persist:!1,convert:function(a,c){var b=c.get('fcd_property_name');switch(b){case '_meta_rating':a='Rating';break;case '_meta_reject':a='Reject';break;}return a}}]},0,0,0,0,0,0,[visiomatic.model,'FilterCondition'],0);Ext.cmd.derive('visiomatic.store.FilterConditions',Ext.data.Store,{model:'visiomatic.model.FilterCondition',remoteFilter:!1,pageSize:0,sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.overlay-filter-conditions'],0,[visiomatic.store,'FilterConditions'],0);Ext.cmd.derive('visiomatic.catalog.CatalogViewModel',Ext.app.ViewModel,{stores:{catalogs:{type:'catalogs-overlay-tree'},overlays:{type:'overlays'}},data:{visiomatic:null,currentColor:'1dff00',currentFilters:null,pointType:0,pointSize:1},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0},dataset:{type:'common.model.Dataset',create:!0}}},0,0,0,0,['viewmodel.catalogoverlay'],0,[visiomatic.catalog,'CatalogViewModel'],0);Ext.cmd.derive('visiomatic.model.Object',Ext.data.Model,{idProperty:'_meta_id',fields:[{name:'_meta_id'},{name:'_meta_catalog_id',type:'int'},{name:'_meta_is_system',type:'boolean'},{name:'_meta_ra',type:'float'},{name:'_meta_dec',type:'float'},{name:'_meta_radius',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Object'],0);Ext.cmd.derive('visiomatic.store.Objects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,model:'visiomatic.model.Object',pageSize:5000,proxy:{type:'django',timeout:90000,api:{read:'/dri/api/catalogobjects/'}}},0,0,0,0,['store.overlay-objects'],0,[visiomatic.store,'Objects'],0);Ext.cmd.derive('visiomatic.store.ExternalObjects',common.store.MyStore,{remoteFilter:!0,remoteSort:!1,autoLoad:!1,model:'visiomatic.model.Object',pageSize:10000,proxy:{type:'django',timeout:60000,api:{read:'/dri/api/vizier/'}}},0,0,0,0,['store.overlay-external-objects'],0,[visiomatic.store,'ExternalObjects'],0);Ext.cmd.derive('visiomatic.model.Overlay',Ext.data.Model,{idProperty:'id',fields:[{name:'id',type:'int'},{name:'name',type:'string'},{name:'color',type:'string'},{name:'visible',type:'boolean'},{name:'status',type:'string'},{name:'status_message',type:'string'},{name:'count',type:'int'},{name:'total_count',type:'int'},{name:'excess',type:'int'},{name:'catalog'},{name:'layers'},{name:'objects'},{name:'filters'},{name:'objectUrl'},{name:'pointSize',type:'float'}]},0,0,0,0,0,0,[visiomatic.model,'Overlay'],0);Ext.cmd.derive('visiomatic.filter.FiltersController',Ext.app.ViewController,{listen:{component:{'overlay-filters-window':{changecatalog:'onChangeCatalog'}}},onChangeCatalog:function(b){var a=this,d=a.getViewModel(),c=d.getStore('contents');a.clearImputs();c.addFilter({property:'pcn_product_id',value:b.get('id')})},onLoadContents:function(a){},onAddFilter:function(){var d=this,a=d.getViewModel(),b=a.get('content'),f=a.get('operator'),h=a.get('value'),g=a.getStore('filters'),e=a.get('afilters'),c;c=Ext.create('visiomatic.model.FilterCondition',{fcd_property:b.get('id'),fcd_property_name:b.get('column_name'),fcd_operation:f.get('name'),fcd_value:h,property_display_name:b.get('display_name'),operator_display_name:f.get('display_name')});e.push(c);g.add(c);a.set('afilters',e);d.clearImputs();d.checkHaveFilters()},onRemoveFilterClick:function(f,d,c,e,g,b){var a=this;Ext.MessageBox.confirm('','The Filter will be removed. Do you want continue?',function(h){if(h==='yes'){b.drop();a.createAFilters();a.checkHaveFilters()}},this)},createAFilters:function(){var c=this,e=c.getViewModel(),d=c.lookup('gridFilters'),b=d.getStore(),a=[];console.log(b);b.each(function(b){console.log(b);a.push(b)},this);e.set('afilters',a)},checkHaveFilters:function(){var b=this,a=b.getViewModel(),c=a.get('afilters'),d=b.lookup('BtnApply');if(c.length>0){a.set('haveFilters',!0)}else {a.set('haveFilters',!1)}},onSelectProperty:function(f,c){var a=this,b=a.getViewModel(),d=b.get('afilters'),e},onSelectOperator:function(b,a){},onCancelFilter:function(){this.getView().close()},onApplyFilter:function(){var a=this,e=a.getView(),c=a.getViewModel(),d=c.get('currentCatalog'),b=c.get('afilters');if(b.length>0){a.applyFilters(d,b)}},applyFilters:function(c,d){var b=this,a=b.getView();a.fireEvent('applyfilters',d,c,b);a.close()},clearImputs:function(){var e=this,a=e.getReferences(),c=a.cmbProperty,b=a.cmbOperator,d=a.txtValue;c.reset();b.reset();d.reset()}},0,0,0,0,['controller.overlay_filters'],0,[visiomatic.filter,'FiltersController'],0);Ext.cmd.derive('visiomatic.model.CatalogContent',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'product_id',type:'int'},{name:'setting_id',type:'int'},{name:'column_name',type:'string'},{name:'class_id',type:'int'},{name:'category',type:'string'},{name:'display_name',type:'string'},{name:'ucd',type:'string'},{name:'unit',type:'string'},{name:'reference',type:'string'},{name:'mandatory',type:'boolean'},{name:'content_setting',type:'int'},{name:'is_visible',type:'boolean'},{name:'order',type:'int'}]},0,0,0,0,0,0,[visiomatic.model,'CatalogContent'],0);Ext.cmd.derive('visiomatic.store.ProductDisplayContents',common.store.MyStore,{model:'visiomatic.model.CatalogContent',remoteFilter:!0,remoteSort:!1,pageSize:0,proxy:{url:'/dri/api/productcontent/get_display_content/'},sorters:[{property:'order',direction:'ASC'},{property:'display_name',direction:'ASC'}],ucds:['meta.id;meta.main','pos.eq.ra;meta.main','pos.eq.dec;meta.main'],check_ucds:function(){var a=this,b=[];a.each(function(c){if(a.ucds.indexOf(c.get('ucd'))!==-1){b.push(!0)}},a);if(b.length===a.ucds.length){return !0}else {return !1}}},0,0,0,0,['store.overlay-product-display-contents'],0,[visiomatic.store,'ProductDisplayContents'],0);Ext.cmd.derive('visiomatic.filter.FiltersModel',Ext.app.ViewModel,{stores:{contents:{type:'overlay-product-display-contents',storeId:'productContents',autoLoad:!1},filters:{type:'overlay-filter-conditions',storeId:'filterConditions',autoLoad:!1},operators:{fields:['name','display_name','type'],data:[{name:'=',display_name:'is equal to',type:'text'},{name:'!=',display_name:'is not equal to',type:'text'},{name:'>',display_name:'is greater than',type:'text'},{name:'>=',display_name:'is greater than or equal to',type:'text'},{name:'<',display_name:'is less than',type:'text'},{name:'<=',display_name:'is less than or equal to',type:'text'}]}},data:{operator:null,value:null,haveFilters:!1,afilters:[]},links:{currentCatalog:{type:'visiomatic.model.CatalogTree',create:!0}}},0,0,0,0,['viewmodel.overlay_filters'],0,[visiomatic.filter,'FiltersModel'],0);Ext.cmd.derive('visiomatic.filter.FiltersWindow',Ext.window.Window,{title:'Filters',width:500,height:300,modal:!0,autoShow:!0,controller:'overlay_filters',viewModel:'overlay_filters',closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null},items:[{xtype:'form',reference:'filterForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'fieldset',title:'Add condition',items:[{xtype:'fieldcontainer',layout:'hbox',defaults:{flex:1},items:[{xtype:'combobox',emptyText:'Property',itemId:'cmbProperty',reference:'cmbProperty',publishes:'id',displayField:'display_name',bind:{store:'{contents}',selection:'{content}'},listeners:{select:'onSelectProperty'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,margin:'0 5 0 0'},{xtype:'combobox',itemId:'cmbOperator',reference:'cmbOperator',publishes:'name',displayField:'display_name',emptyText:'Operator',bind:{store:'{operators}',selection:'{operator}'},listeners:{select:'onSelectOperator'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,forceSelection:!0,margin:'0 5 0 0'},{xtype:'textfield',reference:'txtValue',emptyText:'Value',bind:{value:'{value}'},margin:'0 5 0 0',allowBlank:!1},{xtype:'button',iconCls:'x-fa fa-plus',width:40,flex:!1,handler:'onAddFilter'}]}]}]},{xtype:'grid',reference:'gridFilters',layout:'fit',border:!0,framed:!0,hideHeaders:!0,flex:1,bind:{store:'{filters}'},viewConfig:{markDirty:!1},columns:[{text:'Property',dataIndex:'property_display_name',flex:1},{text:'Operator',dataIndex:'operator_display_name',flex:1},{text:'Value',dataIndex:'fcd_value',flex:1},{xtype:'actioncolumn',width:60,sortable:!1,menuDisabled:!0,align:'center',items:[{iconCls:'x-fa fa-minus-circle color-soft-red',tooltip:'Remove condition',handler:'onRemoveFilterClick'}]}]}],buttons:[{text:'Cancel',handler:'onCancelFilter'},{text:'Ok',reference:'BtnApply',handler:'onApplyFilter',bind:{disabled:'{!haveFilters}'}}],setCurrentCatalog:function(a){var b=this;if(a&&a.get('id')>0){b.currentCatalog=a;b.getViewModel().set('currentCatalog',a);b.fireEvent('changecatalog',a)}},setFilterSet:function(a){var d=this,c=d.getViewModel(),b=c.getStore('filters'),e=d.lookup('btnDeleteFilterSet'),f=d.lookup('txtFilter');if(a&&a.get('id')>0){c.set('filterSet',a);c.set('filterName',a.get('fst_name'));f.setReadOnly(!0);e.enable();b.addFilter({property:'filterset',value:a.get('id')});b.load()}else {c.set('filterName',null);f.setReadOnly(!1);e.disable();b.clearFilter();b.removeAll(!0)}}},0,['overlay-filters-window'],['component','box','container','panel','window','overlay-filters-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'overlay-filters-window':!0},['widget.overlay-filters-window'],0,[visiomatic.filter,'FiltersWindow'],0);Ext.cmd.derive('visiomatic.catalog.CatalogController',Ext.app.ViewController,{listen:{component:{'visiomatic-catalog-overlay':{changedataset:'onChangeDataset'}}},baseFilters:[],winFilter:null,onChangeDataset:function(d){var a=this,c=a.getViewModel(),b=c.getStore('overlays');b.removeAll();a.loadCatalogs()},loadCatalogs:function(){var c=this,d=c.getViewModel(),b=d.getStore('catalogs'),a;a=[{property:'group',operator:'in',value:['objects_catalog','targets','value_added_catalogs','external_catalogs']}];c.baseFilters=a;b.addFilter(a);b.load()},onSelectCatalog:function(){var a=this,d=a.getViewModel(),b=d.get('currentFilters'),c=a.lookup('CatalogsTree'),f=c.selection,e=a.lookup('btnFilter');b=[]},filterCatalogByname:function(){var a=this,h=a.lookup('CatalogsTree'),b=a.lookup('SearchField'),c=h.getStore(),d=b.getValue(),e=[],f;if(d.length>0){b.getTrigger('clear').show();if(c.isLoading()){console.log('Store is Loading: %o',c.isLoading());var g=c.getProxy();g.abort();console.log('Store proxy abort')}f={property:'search',value:d};e.push(f);a.filterCatalogs(e)}else {b.getTrigger('clear').hide();a.filterCatalogs()}},filterCatalogs:function(a){var d=this,g=d.getViewModel(),b=g.getStore('catalogs'),f=d.baseFilters,e,c=Ext.clone(f);b.clearFilter(!0);b.removeAll();if(a&&Array.isArray(a)){for(index in a){e=a[index];c.push(e)}}b.filter(c)},cancelFilter:function(){var b=this,a=b.lookup('SearchField');a.reset();b.filterCatalogs();a.getTrigger('clear').hide()},onClickOverlay:function(){var b=this,c=b.getViewModel(),k=b.lookup('CatalogsTree'),d=k.selection,j=c.get('currentColor'),i=c.get('currentFilters'),h=c.getStore('overlays'),e=b.lookup('cmbPointType'),g=e.getValue(),f=c.get('pointSize')/1000,a;c.set('currentCatalog',d);a=Ext.create('visiomatic.model.Overlay',{name:d.get('prd_display_name'),catalog:d,color:Ext.String.format('#{0}',j),visible:!0,count:null,layers:null,pointType:g,pointSize:f,status:'loading',filters:null});h.add(a);if(!d.get('external_catalog')){a.set('objects',Ext.create('visiomatic.store.Objects',{}));a.set('filters',i);b.loadObjects(a)}else {a.set('objects',Ext.create('visiomatic.store.ExternalObjects',{}));a.set('objectUrl',!0);b.loadExternalCatalogObjects(a)}},loadExternalCatalogObjects:function(b){var d=this,f=d.getViewModel(),e=f.get('visiomatic'),c=b.get('objects'),a;a=e.getBounds();c.addFilter([{property:'cds_source',value:b.get('catalog').get('cds_source')},{property:'cds_fieldnames',value:b.get('catalog').get('cds_fieldnames')},{property:'lat',value:a.lat},{property:'lng',value:a.lng},{property:'dlat',value:a.dlat},{property:'dlng',value:a.dlng}]);c.load({callback:function(e,c,a){d.onLoadObjects(b,c,a)}})},loadObjects:function(a){var f=this,h=f.getViewModel(),g=h.get('visiomatic'),b=a.get('objects'),d=a.get('filters'),c=[],e;e=g.getBox();b.addFilter([{property:'product',value:a.get('catalog').get('id')},{property:'coordinates',value:JSON.stringify(e)}]);if(d!==null){Ext.each(d,function(b){c.push({property:b.get('fcd_property_name'),operator:b.get('fcd_operation'),value:b.get('fcd_value')})});b.addFilter(c)}b.load({callback:function(d,c,b){f.onLoadObjects(a,c,b)}})},onLoadObjects:function(a,c,g){var i=this,j=i.getViewModel(),h=j.get('visiomatic'),b=a.get('objects'),d,e;a.set('count',b.count());if(!g){var f=c.error.statusText;if(c.error.status==0){f='Communication Failure or Time out'}d=Ext.String.format('Sorry, there was a server error, and this operation can not be performed.
    Error: {0} - {1}',c.error.status,f);a.set('status','error');a.set('status_message',d);console.log('Server Side ERROR: %o - %o',c.error.status,c.error.statusText)}else {if(b.count()>0){if(b.totalCount>b.pageSize){e=b.totalCount-b.pageSize;d=Ext.String.format('The query returned more objects than the limit.
    {0} objects are not being displayed.
    Limit: {1}
    Query returned: {2}
    ',e,b.pageSize,b.totalCount);a.set('total_count',b.totalCount);a.set('excess',e);a.set('status','alert');a.set('status_message',d)}else {a.set('status','ok')}}else {a.set('status','warning')}layers=h.overlayCatalog(a.get('name'),b,{color:a.get('color'),objectUrl:a.get('objectUrl'),pointType:a.get('pointType'),pointSize:a.get('pointSize')});a.set('layers',layers)}},onRemoveOverlay:function(j,g,i){var h=this,d=h.getViewModel(),f=d.getStore('overlays'),e=d.get('visiomatic'),a=f.getAt(g),b=a.get('layers'),c=a.get('objects');if(c.loading){c.getProxy().abort()}if(b!==null){e.showHideLayer(b,!1)}a.erase()},onChangeVisibility:function(i,e,g){var h=this,b=h.getViewModel(),d=b.getStore('overlays'),c=b.get('visiomatic'),f=d.getAt(e),a=f.get('layers');if(a!==null){c.showHideLayer(a,g)}},onClickBtnFilter:function(){var a=this,d=a.getViewModel(),c=a.lookup('CatalogsTree'),b=c.selection;if(b&&b.get('id')>0){a.winFilter=Ext.create('visiomatic.filter.FiltersWindow',{listeners:{scope:a,applyfilters:'onApplyFilters'}});a.winFilter.setCurrentCatalog(b);a.winFilter.show()}},onApplyFilters:function(a,d){var b=this,c=b.getViewModel();if(a.length>0){c.set('currentFilters',a)}}},0,0,0,0,['controller.catalogoverlay'],0,[visiomatic.catalog,'CatalogController'],0);Ext.cmd.derive('visiomatic.catalog.Submit',Ext.form.Panel,{initComponent:function(){var a=this;Ext.apply(this,{bodyPadding:5,layout:{type:'vbox',align:'stretch'},items:[{xtype:'fieldset',flex:1,border:!1,items:[{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'tbtext',html:'Color:',width:45},{xtype:'colorbutton',bind:'{currentColor}',width:55,margin:'0 20 0 5',tooltip:'Choose a color. Click on the color and then on ok.'}]},{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'combobox',labelWidth:45,flex:1,reference:'cmbPointType',fieldLabel:'Marker',displayField:'name',valueField:'name',queryMode:'local',store:{fields:['name'],data:[{'name':'circle'},{'name':'ellipse'},{'name':'square'},{'name':'triangle'}]},value:'circle'},{xtype:'numberfield',name:'pointsize',fieldLabel:'Size',labelWidth:40,width:100,bind:'{pointSize}',minValue:1,maxValue:10,step:0.2,margin:'0 0 0 5'}]},{xtype:'button',iconCls:'x-fa fa-filter',text:'Filters',tooltip:'Filters',handler:'onClickBtnFilter',reference:'btnFilter',width:100}]}],buttons:[{text:'Apply',handler:'onClickOverlay'}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['visiomatic-catalogs-submit'],['component','box','container','panel','form','visiomatic-catalogs-submit'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'visiomatic-catalogs-submit':!0},['widget.visiomatic-catalogs-submit'],0,[visiomatic.catalog,'Submit'],0);Ext.cmd.derive('visiomatic.catalog.OverlayGrid',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{hideHeaders:!0,viewConfig:{markDirty:!1,listeners:{scope:a,render:a.addTooltipToColumnName,destroy:function(a){delete a.tip}}},columns:[{text:'Visible',xtype:'checkcolumn',dataIndex:'visible',width:30,listeners:{checkchange:'onChangeVisibility'},align:'center'},{text:'Color',dataIndex:'color',width:30,align:'center',renderer:a.renderColumnColor},{text:'Name',dataIndex:'name',tdCls:'nameTdCls',flex:2,renderer:a.renderColumnName},{menuDisabled:!0,xtype:'actioncolumn',width:30,items:[{iconCls:'x-fa fa-trash-o color-overlay-grid-icon',tooltip:'Remove',handler:'onRemoveOverlay'}]}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},addTooltipToColumnName:function(a){var b=this;a.tip=Ext.create('Ext.tip.ToolTip',{target:a.getId(),delegate:a.itemSelector+' .nameTdCls',trackMouse:!0,listeners:{beforeshow:function updateTipBody(c){var d=c.target.component;var e=d.getRecord(c.triggerElement);c.update(b.getTooltipName(e))}}})},getTooltipName:function(a){var f=this,b=a.get('filters'),d,e,c;if(a.get('status')!=='error'){d=Ext.String.format('{0}
    Entries: {1}',a.get('name'),a.get('count'));if(b!==null&&b.length>0){c='
    Filters:
    ';Ext.each(b,function(b){e=Ext.String.format('{0} {1} {2}
    ',b.get('fcd_property_name'),b.get('operator_display_name'),b.get('fcd_value'));c+=e});d+=c}return d}else {return a.get('status_message')}},renderColumnName:function(a,d,b){var c=16;if(a.length>c){a=a.substr(0,c);a=a+'...'}if(b.get('status')!=='loading'&&b.get('status')!=='error'){return Ext.String.format('{0} ({1} entries)',a,b.get('count'))}else {return a}},renderColumnColor:function(a,c,b){switch(b.get('status')){case 'loading':a='';break;case 'ok':a=Ext.String.format('',a);break;case 'alert':msg=b.get('status_message');a='';c.tdAttr='data-qtip= "'+msg+'"';break;case 'warning':a='';break;case 'error':msg=b.get('status_message');a='';break;}return a}},0,['visiomatic-catalogs-overlays-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','visiomatic-catalogs-overlays-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'visiomatic-catalogs-overlays-grid':!0},['widget.visiomatic-catalogs-overlays-grid'],0,[visiomatic.catalog,'OverlayGrid'],0);Ext.cmd.derive('visiomatic.catalog.CatalogOverlayWindow',Ext.window.Window,{controller:'catalogoverlay',viewModel:'catalogoverlay',config:{visiomatic:null,dataset:null},initComponent:function(){var a=this;Ext.apply(this,{title:'Catalog Overlay',width:600,height:450,closeAction:'hide',layout:{type:'hbox',align:'stretch'},items:[{xtype:'panel',split:!0,flex:1,framed:!0,layout:{type:'vbox',align:'stretch'},items:[{xtype:'visiomatic-catalogs-tree',reference:'CatalogsTree',flex:1,bind:{store:'{catalogs}'},listeners:{select:'onSelectCatalog'}},{xtype:'visiomatic-catalogs-submit',height:150,bind:{disabled:'{!CatalogsTree.selection.leaf}'}}]},{xtype:'visiomatic-catalogs-overlays-grid',split:!0,framed:!0,flex:1,bind:{store:'{overlays}'}}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setVisiomatic:function(a){this.visiomatic=a;this.getViewModel().set('visiomatic',a)},setDataset:function(c){var a=this,d=a.getDataset(),b=!1;if(d!==null&&d.get('id')>0){if(d.get('id')===c.get('id')){b=!1}else {b=!0}}else {b=!0}if(b){a.dataset=c;a.getViewModel().set('dataset',c);a.fireEvent('changedataset',c,a)}}},0,['visiomatic-catalog-overlay'],['component','box','container','panel','window','visiomatic-catalog-overlay'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'visiomatic-catalog-overlay':!0},['widget.visiomatic-catalog-overlay'],0,[visiomatic.catalog,'CatalogOverlayWindow'],0);Ext.cmd.derive('visiomatic.download.FitsController',Ext.app.ViewController,{listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},listen:{component:{'target-download-descut':{changeLoadFits:'onChangeLoadFits'}}},onChangeLoadFits:function(b,c){var f=this,e=f.getView(),a=e.getViewModel(),d=a.getStore('fitsFiles');a.set('tag',c);a.set('tilename',b);d.filter([{property:'tilename',value:b},{property:'tag',value:c}])}},0,0,0,0,['controller.fits-files'],0,[visiomatic.download,'FitsController'],0);Ext.cmd.derive('visiomatic.model.FitsFiles',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/get_fits_by_tilename'},fields:[{name:'filename',type:'string','default':null,persist:!1},{name:'filter',type:'string','default':null,persist:!1},{name:'order',type:'int','default':null,persist:!1},{name:'file_source',type:'string','default':null,persist:!1}]},0,0,0,0,0,0,[visiomatic.model,'FitsFiles'],0);Ext.cmd.derive('visiomatic.store.FitsFiles',common.store.MyStore,{model:'visiomatic.model.FitsFiles',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/get_fits_by_tilename'},sorters:[{property:'order',direction:'ASC'},{property:'filename',direction:'ASC'}]},0,0,0,0,['store.fits-files'],0,[visiomatic.store,'FitsFiles'],0);Ext.cmd.derive('visiomatic.download.FitsModel',Ext.app.ViewModel,{stores:{fitsFiles:{type:'fits-files'}}},0,0,0,0,['viewmodel.fits-files'],0,[visiomatic.download,'FitsModel'],0);Ext.cmd.derive('visiomatic.download.DescutDownloadWindow',Ext.window.Window,{viewModel:'fits-files',controller:'fits-files',title:'Download',width:600,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'vbox',align:'stretch'},initComponent:function(){var a=this;Ext.apply(this,{layout:'fit',items:[{xtype:'gridpanel',scrollable:!0,bind:{store:'{fitsFiles}'},columns:[{text:'Filename',dataIndex:'filename',flex:1},{text:'Filter',dataIndex:'filter'},{text:'URL',dataIndex:'file_source',renderer:function(a,b,c){return ' '}}]}],buttons:[{xtype:'label',text:'Right click "Save link as" to download files',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadFits:function(a,b){var c=this;this.loadFits=a;c.fireEvent('changeLoadFits',a,b)}},0,['target-download-descut'],['component','box','container','panel','window','target-download-descut'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-descut':!0},['widget.target-download-descut'],0,[visiomatic.download,'DescutDownloadWindow'],0);Ext.cmd.derive('visiomatic.Visiomatic',Ext.panel.Panel,{controller:'visiomatic',viewModel:'visiomatic',height:'100%',width:'100%',libL:null,config:{map:null,mapOptions:{fullscreenControl:!0,zoom:1,enableLineaOverlay:!0},prefix:null,enableSidebar:!0,enableSmallCrosshair:!1,enableCatalogs:!1,availableCatalogs:['GALEX_AIS','2MASS','AllWISE','SDSS','PPMXL','Abell','NVSS','FIRST','GAIA_DR1'],enableMiniMap:!1,miniMapOptions:{position:'topright',width:128,height:128,zoomLevelOffset:-6,nativeCelsys:!0},miniMap:null,enableWcs:!0,wcsUnits:[{label:'RA, Dec (Deg)',units:'deg'},{label:'RA, Dec (HMS)',units:'HMS'}],enableScale:!0,image:null,imageLayer:null,imageOptions:{credentials:!0,center:!1,fov:!1,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'},radiusOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',dashArray:'5, 5, 1, 5',interactive:!1},catalogOptions:{weight:2,opacity:0.8,fillOpacity:0.01,color:'#2db92d',interactive:!0,pointType:'circle',pointSize:0.001},crosshairOptions:{color:'#FF4500',weight:2,smoothFactor:1,centerPadding:0.001,size:0.003},release:null,tag:null,dataset:null,currentDataset:null,enableTools:!0,auxTools:[],enableLink:!0,enableShift:!0,ready:!1,lradius:null,lcrosshair:null,showCrosshair:!1,enableContextMenu:!1,mlocate:'',showComments:!1},_winCatalogOverlay:null,bind:{release:'{release}',tag:'{tag}',dataset:'{dataset}'},initComponent:function(){var a=this,e=window.location.host,b,d,c;if(window.L){a.libL=window.L}else {console.log('window.L ainda nao esta carregada, incluir no app.json a biblioteca Leaflet')}this.cmpVisiomatic=c=Ext.create('Ext.Component',{id:a.getMapContainer(),width:'100%',height:'100%',listeners:{deactivate:a.onDeactivate}});if(a.getEnableTools()){b=a.makeToolbar();tools=a.makeToolbarButtons();b.add(tools);a.tbar=b}Ext.apply(this,{items:[c]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},afterRender:function(){var a=this,c=a.libL,d=a.getMapContainer(),e=a.getMapOptions(),b;Ext.panel.Panel.prototype.afterRender.apply(this,arguments);b=c.map(d,e);if(a.getPrefix()){b.attributionControl.setPrefix(a.getPrefix())}c.control.reticle().addTo(b);b.on('dblclick',a.onDblClick,a);b.on('contextmenu',a.onContextMenuClick,a);b.on('layeradd',a.onLayerAdd,a);b.on('move',a.onMove,a);b.on('mousemove',a.onMouseMove,a);b.on('overlaycatalog',a.showCatalogOverlayWindow,a);b.on('mouseup',a.savePreferences,a);b.on('keypress',a.savePreferences,a);a.setMap(b);if(a.getEnableSidebar()){a.createSidebar()}if(a.getEnableWcs()){a.addWcsController()}if(a.getEnableScale()){a.addScaleController()}a.cmpMousePosition=a.makeMousePosition()},savePreferences:function(){var c=this,a=c.getImageLayer();var b={credentials:!0,channelLabelMatch:'[ugrizY]',mixingMode:a.iipMode,contrast:a.iipContrast,gamma:a.iipGamma,invertCMap:a.iipInvertCMap,colorSat:a.iipColorSat,quality:a.iipQuality};localStorage.removeItem('imageOptions');localStorage.setItem('imageOptions',JSON.stringify(b))},onResize:function(){Ext.panel.Panel.prototype.onResize.apply(this,arguments);var a=this.getMap();if(a){a.invalidateSize()}},onDeactivate:function(){console.log('onDeactivate');var a=this;if(a._winCatalogOverlay){a._winCatalogOverlay.close()}},getMapContainer:function(){return this.getId()+'-placeholder'},createSidebar:function(){var c=this,b=c.libL,f=c.getMap(),e=c.getAvailableCatalogs(),a,d=[];a=b.control.sidebar().addTo(f);b.control.iip.channel().addTo(a);b.control.iip.image().addTo(a);if(c.getEnableCatalogs()){Ext.Array.each(e,function(a){d.push(b.Catalog[a])});b.control.iip.catalog(d).addTo(a)}b.control.iip.region([]).addTo(a);b.control.iip.profile().addTo(a);b.control.iip.snapshot().addTo(a);a.addTabList()},createSmallCrosshair:function(){var b=this,a=b.getRaDec(),c={color:'#90FA3A',weight:1,opacity:0.8,smoothFactor:1,centerPadding:5.0E-4,size:0.0015};b.drawSmallCrosshair(a.ra,a.dec,c)},addWcsController:function(){var a=this,c=a.libL,d=a.getMap(),b=a.getWcsUnits();c.control.wcs({coordinates:b,position:'topright'}).addTo(d)},addScaleController:function(){var a=this,b=a.libL,c=a.getMap();b.control.scale.wcs({pixels:!1}).addTo(c)},setCurrentDataset:function(a){var b=this;b.currentDataset=a},setImage:function(e,d){var a=this,i=a.libL,j=a.getMap(),h=a.getMiniMap(),b=a.getImageLayer(),c=a.getImageOptions(),f,k,g;a.setReady(!1);if(a._winCatalogOverlay!==null){a._winCatalogOverlay.close();a._winCatalogOverlay=null}a.removeImageLayer();d=d||{};if(b){c={credentials:c.credentials,channelLabelMatch:'[ugrizY]',mixingMode:b.iipMode,contrast:b.iipContrast,gamma:b.iipGamma,invertCMap:b.iipInvertCMap,colorSat:b.iipColorSat,quality:b.iipQuality}}f=Ext.Object.merge(c,d);a.image=e;if(!b){b=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(b)}else {a.removeImageLayer();g=i.tileLayer.iip(e,f).addTo(j);a.setImageLayer(g)}if(a.getEnableMiniMap()){if(h){h.remove()}a.createMiniMap()}},createMiniMap:function(){var a=this,e=a.libL,h=a.getMap(),g=a.getMiniMapOptions(),f=a.getImageOptions(),d=a.getImage(),c,b;if(d){b=e.tileLayer.iip(d,{credentials:f.credentials,mixingMode:'color',defaultChannel:2,contrast:0.7,gamma:2.8,colorSat:2,channelLabelMatch:'[ugrizY]'});c=e.control.extraMap(b,g).addTo(h);a.setMiniMap(c)}},setView:function(c,b,h,f){var a=this,g=a.libL,e=a.getMap(),d;if(a.isReady()){c=parseFloat(parseFloat(c).toFixed(5));b=parseFloat(parseFloat(b).toFixed(5));d=g.latLng(b,c);e.setView(d,e.options.crs.fovToZoom(e,h,d));if(a.getShowCrosshair()){if(!f){a.drawCrosshair(c,b)}}}},onLayerAdd:function(b){var a=this;if(b.layer.type==='tilelayer'){a.setReady(!0);a.fireEvent('changeimage',a)}},onDblClick:function(b){var a=this;a.fireEvent('dblclick',b,a)},onContextMenuClick:function(b){var a=this,c=a.getMap();if(!a.isObjectContextMenu){a.showContextMenuImage(b)}a.isObjectContextMenu=!1},removeImageLayer:function(){var b=this,a=b.getMap();if(a!==null){a.eachLayer(function(b){a.removeLayer(b)})}},getRaDec:function(){var c=this,d=c.libL,b=c.getMap(),e=b.options.crs,a=b.getCenter();return {'ra':parseFloat(a.lng),'dec':parseFloat(a.lat)}},getBounds:function(){var m=this,j=m.libL,c=m.getMap(),b=c.options.crs,k=b.forceNativeCelsys&&!this.options.nativeCelsys,e=k?b.celsysToEq(c.getCenter()):c.getCenter(),n=Math.abs(Math.cos(e.lat*Math.PI/180)),d=c.getPixelBounds(),f=c.getZoom(),a,g,l,i,h,o;a=k?[b.celsysToEq(c.unproject(d.min,f)),b.celsysToEq(c.unproject(j.point(d.min.x,d.max.y),f)),b.celsysToEq(c.unproject(d.max,f)),b.celsysToEq(c.unproject(libLpoint(d.max.x,d.min.y),f))]:[c.unproject(d.min,f),c.unproject(j.point(d.min.x,d.max.y),f),c.unproject(d.max,f),c.unproject(j.point(d.max.x,d.min.y),f)];g=parseFloat(e.lng.toFixed(6));l=parseFloat(e.lat.toFixed(6));i=(Math.max(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e))-Math.min(b._deltaLng(a[0],e),b._deltaLng(a[1],e),b._deltaLng(a[2],e),b._deltaLng(a[3],e)))*n;h=Math.max(a[0].lat,a[1].lat,a[2].lat,a[3].lat)-Math.min(a[0].lat,a[1].lat,a[2].lat,a[3].lat);if(h<1.0E-4){h=1.0E-4}if(i<1.0E-4){i=1.0E-4}if(g>360){g=g-360}return {lat:parseFloat(l),lng:parseFloat(g),dlat:parseFloat(h),dlng:parseFloat(i)}},getBox:function(){var j=this,g,f,d,e,c,i,h,a,b;bounding=j.getBounds();if(bounding.lng>360){bounding.lng=bounding.lng-360}b=bounding.dlng/2;a=bounding.dlat/2;e=parseFloat(bounding.lng-b);c=parseFloat(bounding.lat-a*Math.cos(bounding.lat*Math.PI/180));f=parseFloat(bounding.lng+b);d=parseFloat(bounding.lat+a*Math.cos(bounding.lat*Math.PI/180));i=[f,d];h=[e,c];g=[i,h];return g},getFov:function(){var e=this,a=e.getMap(),d=a.options.crs,c=a.getCenter(),b;b=d.zoomToFov(a,a.getZoom(),c);return b},onMove:function(){var a=this,b=a.getRaDec(),c=a.getFov();a.fireEvent('changeposition',b,c,a)},onMouseMove:function(b){var d=String(b.latlng.lng.toFixed(5)+', '+b.latlng.lat.toFixed(5)),a=this,c=a.getMap();this.cmpMousePosition.children[0].innerHTML='Mouse RA, Dec: '+d;a.currentPosition={radec:[b.latlng.lng.toFixed(5),b.latlng.lat.toFixed(5)],container:[b.containerPoint.x,b.containerPoint.y]};if(a.cropInit&&a.cropInit==a.cropEnd&&a.isCropping){if(a.cropRectangle){c.removeLayer(a.cropRectangle)}a.cropRectangle=a.drawRectangle(a.cropInit['radec'],a.currentPosition['radec'])}if(a.getEnableSmallCrosshair()){a.createSmallCrosshair()}},getLinkToPosition:function(){var b=this,e=b.getMap(),a=b.getRaDec(),c=b.getFov(),d;if(a.dec>0){d=a.ra.toFixed(5).replace('.',',')+'+'+a.dec.toFixed(5).replace('.',',')}else {d=a.ra.toFixed(5).replace('.',',')+a.dec.toFixed(5).replace('.',',')}if(c){c=c.toFixed(2).replace('.',',')}b.fireEvent('link',encodeURIComponent(d),c,a,b)},onShift:function(){this.fireEvent('shift',this.getRaDec(),this)},isReady:function(){return this.getReady()},panTo:function(a){var b=this.getMap();this.coordinatesToLatLng(a,function(c){if(c){b.panTo(c)}})},coordinatesToLatLng:function(a,b){visiomatic.Visiomatic.coordinatesToLatLng(a,b)},hmsToLatLng:function(a,b){visiomatic.Visiomatic.hmsToLatLng(a,b)},drawRadius:function(g,e,d,n,l){var a=this,b=a.libL,f=a.getMap(),j=f.options.crs,h=a.getRadiusOptions(),o=g+'_'+e,i,c,m;if(a.getLradius()){f.removeLayer(a.getLradius());a.setLradius(null)}m=Ext.Object.merge(h,l);if(n==='arcmin'){d=d/60}var k={type:'FeatureCollection',features:[{type:'Feature',id:o,properties:{},geometry:{type:'Point',coordinates:[g,e]}}]};c=b.geoJson(k,{coordsToLatLng:function(a){if(j.forceNativeCelsys){var c=j.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(a,c){i=Ext.Object.merge(h,{majAxis:d,minAxis:d,posAngle:90});return b.ellipse(b.latLng(e,g),i)}});a.setLradius(c);f.addLayer(c);return c},showHideRadius:function(d){var c=this,b=c.getMap(),a=c.getLradius();if(a!==null){if(d){b.addLayer(a)}else {b.removeLayer(a)}}},overlayCatalog:function(l,j,k){var c=this,b=c.libL,g=c.getMap(),h=g.options.crs,i=c.getCatalogOptions(),a,d,f,e;a=Ext.Object.merge(i,k);d={type:'FeatureCollection',features:[]};j.each(function(a){if(c.isInsideTile(a.get('_meta_ra'),a.get('_meta_dec'))){f={type:'Feature',id:a.get('_meta_id'),title:l,properties:a.data,is_system:a.get('_meta_is_system'),geometry:{type:'Point',coordinates:[a.get('_meta_ra'),a.get('_meta_dec')]}};d.features.push(f)}},c);e=b.geoJson(d,{coordsToLatLng:function(a){if(h.forceNativeCelsys){var c=h.eqToCelsys(b.latLng(a[1],a[0]));return new b.LatLng(c.lat,c.lng,a[2])}else {return new b.LatLng(a[1],a[0],a[2])}},pointToLayer:function(e,d){if(e.is_system){if(e.properties._meta_radius){radius=e.properties._meta_radius/60;opts=c.getRadiusOptions()}}if(a.pointType==='ellipse'){var q=0.001,r=0.001,m=90;try{var o=e.properties._meta_a_image,p=e.properties._meta_b_image,f=e.properties._meta_theta_image;if(typeof o=='number'&&typeof p=='number'&&typeof f=='number'){q=o/3600;r=p/3600;m=f}}catch(x){}a.majAxis=q,a.minAxis=r,a.posAngle=m;return b.ellipse(d,a)}else {if(a.pointType==='square'){var w=[[d.lat-a.pointSize,d.lng-a.pointSize],[d.lat+a.pointSize,d.lng+a.pointSize]];var v=b.rectangle(w,a);return v}else {if(a.pointType==='triangle'){var h,i,g,n,s,t,u;h=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat-a.pointSize,d.lng+a.pointSize)];g=[b.latLng(d.lat-a.pointSize,d.lng-a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];i=[b.latLng(d.lat-a.pointSize,d.lng+a.pointSize),b.latLng(d.lat+a.pointSize,d.lng)];s=b.polyline(h,a);u=b.polyline(g,a);t=b.polyline(i,a);n=new b.LayerGroup([s,u,t]);return n}else {a.majAxis=a.pointSize;a.minAxis=a.pointSize;a.posAngle=90;circle=b.ellipse(d,a);return circle}}}}}).bindPopup(c.createOverlayPopup).on('dblclick',function(){alert('TODO: OPEN IN EXPLORER!')}).on('contextmenu',c.onLayerContextMenu,c);g.addLayer(e);c.redraw();return e},redraw:function(){var d=this,c=d.getMap(),a=$(c.getContainer()),b=a.width();if(b>0){a.css({width:b+2});c.invalidateSize();a.css({width:'initial'})}},createOverlayPopup:function(i){var a=i.feature,h=a.properties,j=['_meta_mag_auto_g','_meta_mag_auto_r','_meta_mag_auto_i','_meta_mag_auto_z','_meta_mag_auto_y'],e=[],d=[],c=a.properties._meta_id,g=['RAJ2000','DEJ2000'],b=[],f;Ext.each(j,function(a){try{mag_name=a.slice(-1);if(mag_name=='y'){mag_name='Y'}mag_value=h[a];if(mag_value){mag_value=parseFloat(mag_value);tag=''+mag_name+': '+mag_value.toFixed(2)+'';e.push(tag)}}catch(k){}});if(a.properties._meta_photo_z){photoz=parseFloat(a.properties._meta_photo_z);d.push('photo-z: '+photoz.toFixed(2)+'')}if(a.properties._meta_is_system){c=''+a.properties._meta_id+''}else {if(a.properties._meta_catalog_class=='coadd_objects'){c=''+a.properties._meta_id+''}else {if(a.properties._meta_object_url){c=''+a.properties._meta_id+'';for(property in a.properties){if(!property.startsWith('_meta_')&&g.indexOf(property)==-1){b.push(property)}}if(b.length<=15){for(key in b.sort()){property=b[key];d.push(''+property+': '+a.properties[property]+'')}}}else {}}}ra=parseFloat(a.properties._meta_ra);dec=parseFloat(a.properties._meta_dec);f=''+a.title+'
    '+e.join('')+d.join('')+'
    ID: '+c+'
    RA, Dec (deg): '+ra.toFixed(5)+', '+dec.toFixed(5)+'
    ';return f},onDblClickOverlay:function(){console.log('onDblClickOverlay(%o)',arguments)},showHideLayer:function(a,c){var d=this,b=d.getMap();if(a!==null){if(c){b.addLayer(a)}else {b.removeLayer(a)}}},showHideComments:function(a,b){},onLayerContextMenu:function(a){var b=this;b.isObjectContextMenu=!0;if(a.target.targetPosition){b.showContextMenuImage(a)}else {if(a.target.targetObjet){a.layer={feature:a.target.targetObjet.feature}}b.showContextMenuObject(a)}},createCommentIcon:function(d,c){var b=this,e,a;a=b.markPosition(d,'mapmaker-comment comment-maker').on('contextmenu',b.onLayerContextMenu,b);if(c){c.commentMaker=a;a.targetObjet=c}else {a.targetPosition=d}a.getElement().style.display=b.getShowComments()?'':'none'},updateComment:function(b,a,c){},markPosition:function(i,g,e){var h=this,c=h.libL,j=h.getMap(),b,a,f,d;if(arguments.length==2){b=i;e=g;d=[12,25]}else {b=c.latLng(g,i);d=[8,44]}if(e){f=c.divIcon({className:'visiomatic-marker-position',iconAnchor:d,html:''});a=c.marker(b,{icon:f})}else {a=c.marker(b)}a.addTo(j);return a},setShowCrosshair:function(c){var b=this,d=b.getMap(),a=b.lcrosshair;b.showCrosshair=c;if(a!==null){if(c){d.addLayer(a)}else {d.removeLayer(a)}}},onToggleCrosshair:function(c,a,d){var b=this;if(d.pressed){b.drawCrosshair(c,a)}else {b.removeCrosshair(c,a)}},drawCrosshair:function(e,d,m){var c=this,a=c.libL,l=c.getMap(),o=c.getCrosshairOptions(),n=null,b,f,g,p,k,h,j,i;b=Ext.Object.merge({},o);if(m){b=Ext.Object.merge(b,m)}if(c.lcrosshair){if(l.hasLayer(c.lcrosshair)){l.removeLayer(c.lcrosshair);c.lsmallcrosshair=null}}p=a.latLng(d,e);f=b.centerPadding?b.centerPadding:0.001;g=b.size?b.size:0.005;k=[a.latLng(d+f,e),a.latLng(d+g,e)];h=[a.latLng(d-f,e),a.latLng(d-g,e)];j=[a.latLng(d,e+f),a.latLng(d,e+g)];i=[a.latLng(d,e-f),a.latLng(d,e-g)];k=a.polyline(k,b);h=a.polyline(h,b);j=a.polyline(j,b);i=a.polyline(i,b);n=new a.LayerGroup([k,h,j,i]);c.lcrosshair=n;if(c.getShowCrosshair()){l.addLayer(c.lcrosshair)}return c.lcrosshair},removeCrosshair:function(){var a=this,b=a.getMap();if(a.lcrosshair){if(b.hasLayer(a.lcrosshair)){b.removeLayer(a.lcrosshair);a.lsmallcrosshair=null}}},drawSmallCrosshair:function(d,c,e){var b=this,a=b.libL,h=b.getMap(),n=b.getCrosshairOptions(),p=null,m,f,g,o,l,i,k,j;m=Ext.Object.merge({},n);if(e){m=Ext.Object.merge(m,e)}if(b.lsmallcrosshair){if(h.hasLayer(b.lsmallcrosshair)){h.removeLayer(b.lsmallcrosshair);b.lsmallcrosshair=null}}o=a.latLng(c,d);f=0.005/h._zoom;g=0.01/h._zoom;l=[a.latLng(c+f,d),a.latLng(c+g,d)];i=[a.latLng(c-f,d),a.latLng(c-g,d)];k=[a.latLng(c,d+f),a.latLng(c,d+g)];j=[a.latLng(c,d-f),a.latLng(c,d-g)];l=a.polyline(l,e);i=a.polyline(i,e);k=a.polyline(k,e);j=a.polyline(j,e);layerSmall=new a.LayerGroup([l,i,k,j]);b.lsmallcrosshair=layerSmall;if(b.getEnableSmallCrosshair()&&e){h.addLayer(b.lsmallcrosshair)}return b.lsmallcrosshair},showCatalogOverlayWindow:function(){var b=this,c=b.getCurrentDataset(),a=b._winCatalogOverlay;if(c!==null&&c.get('id')>0){if(a!=null){a.show()}else {a=Ext.create('visiomatic.catalog.CatalogOverlayWindow',{visiomatic:b});b.add(a);a.show();b._winCatalogOverlay=a}b._winCatalogOverlay.setDataset(c)}else {console.log('Dataset nao foi definido, a funcao overlay precisa de um dataset.');return !1}},showDownloadWindow:function(){var d=this,a=d.getCurrentDataset(),c;if(a.get('tli_tilename')){c=a.get('tli_tilename');tag=a.get('release_name');var b=Ext.create('visiomatic.download.DescutDownloadWindow');b.loadFits(c,tag);b.show()}else {alert('File not found.')}},showContextMenuImage:function(b){var a=this,c=b.target,d={x:b.originalEvent.clientX,y:b.originalEvent.clientY};if(!a.getEnableContextMenu()){return}if(b.originalEvent.target.classList.contains('comment-maker')&&!c.targetPosition){return a.showContextMenuObject(b)}if(!this.contextMenuImage){this.contextMenuImage=new Ext.menu.Menu({items:[{id:'comment-position',text:'Comment Position',handler:function(c){a.fireEvent('imageMenuItemClick',a.contextMenuImage.target,a.getCurrentDataset())}}]})}c.latlng=b.latlng;a.contextMenuImage.target=c;a.contextMenuImage.showAt(d)},initCrop:function(){var a=this,b=a.getMap();b.on('mousedown',a.startCrop,a);a.isCropping=!0;b.dragging.removeHooks()},startCrop:function(){var a=this,b=a.getMap();a.cropInit=a.currentPosition;a.cropEnd=a.cropInit;b.off('mousedown',a.startCrop,a);b.on('mouseup',a.endCrop,a)},endCrop:function(c){var a=this,b=a.getMap();a.cropEnd=a.currentPosition;b.off('mouseup',a.endCrop,a);a.downloadCrop(a.cropInit,a.cropEnd);if(a.cropRectangle){b.removeLayer(a.cropRectangle)}a.cropInit=null;a.isCropping=!1;b.dragging.addHooks()},downloadCrop:function(d,e){var i=this,p=i.libL,h=i.getMap(),g=document.createElement('a'),a=i.getImageLayer();var o=h.getCenter(),j=h.getPixelBounds(),c=h.getZoom(),b;if(c>a.iipMaxZoom){b=Math.pow(2,c-a.iipMaxZoom);c=a.iipMaxZoom}else {b=1}var l=a.iipImageSize[c].x*b,m=a.iipImageSize[c].y*b,f=Math.abs(d.container[0]-e.container[0]),n=Math.abs(d.container[1]-e.container[1]);var k={x:j.min.x+Math.min(d.container[0],e.container[0]),y:j.min.y+Math.min(d.container[1],e.container[1])};g.href=a.getTileUrl({x:1,y:1}).replace(/JTL\=\d+\,\d+/g,'RGN='+k.x/l+','+k.y/m+','+f/l+','+n/m+'&WID='+(this._snapType===0?Math.floor(f/b):Math.floor(f/b/a.wcs.scale(c)))+'&CVT=jpeg');g.download=a._title+'_'+p.IIPUtils.latLngToHMSDMS(o).replace(/[\s\:\.]/g,'')+'.jpg';var q=Ext.create('visiomatic.crop.CropWindow',{image:g,height:n+100,width:f+100})},showContextMenuObject:function(a){var c,b=this,d={x:a.originalEvent.clientX,y:a.originalEvent.clientY};if(!b.getEnableContextMenu()){return}if(!this.contextMenuObject){this.contextMenuObject=new Ext.menu.Menu({items:[{id:'comment-object',text:'Comment Object',handler:function(c){b.fireEvent('objectMenuItemClick',a,this.feature)}}]})}c=b.contextMenuObject.items.get('comment-object');c.feature=a.layer?a.layer.feature:null;b.contextMenuObject.showAt(d)},drawRectangle:function(h,j,q){var f=this,a=f.libL,r=f.getMap(),e=h[0],c=h[1],d=j[0],b=j[1],l,g,k,i,p,m,n,o;pathOptions=Ext.Object.merge(f.getCrosshairOptions(),q);l=[a.latLng(c,d),a.latLng(c,e)];g=[a.latLng(b,d),a.latLng(b,e)];k=[a.latLng(c,e),a.latLng(b,e)];i=[a.latLng(c,d),a.latLng(b,d)];p=a.polyline(l,pathOptions);m=a.polyline(g,pathOptions);n=a.polyline(k,pathOptions);o=a.polyline(i,pathOptions);layer=new a.LayerGroup([p,m,n,o]);r.addLayer(layer);return layer},isInsideTile:function(d,b){var c=this,a=c.getCurrentDataset();if(a!=null&&a.get('id')>0){return a.isInsideTile(d,b)}else {return !0}},statics:{coordinatesToLatLng:function(a,c){var d,b=visiomatic.Visiomatic.strToSystem(a);a=a.trim().replace(/( )+/g,' ');d=a.split(',');if(b&&b.system=='latlng'){return c(b.value)}else {if(b&&b.system=='HMS'){return visiomatic.Visiomatic.hmsToLatLng(a,c)}}c(null)},hmsToLatLng:function(b,a){var c='http://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame/-oI/A?'+b;$.get(c,function(c){var d=visiomatic.Visiomatic.parseCoords(c,!0);if(a){a(d)}})},latLngToHMSDMS:function(f){var c=(f.lng+360)/360;c=(c-Math.floor(c))*24;var e=Math.floor(c),d=(c-e)*60,a=Math.floor(d),b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}var j=(e<10?'0':'')+e.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(3),h=Math.abs(f.lat),i=f.lat<0?'-':'+',g=Math.floor(h);d=(h-g)*60;a=Math.floor(d);b=(d-a)*60;if(b>=60){a++;b=0}if(a===60){e++;a=0}return j+' '+i+(g<10?'0':'')+g.toString()+':'+(a<10?'0':'')+a.toString()+':'+(b<10?'0':'')+b.toFixed(2)},strToSystem:function(a){var b;if(a){a=a.trim().replace(/( )+/g,' ');b=a.split(',');if(b.length==2&&a.split(':').length==1){return {value:{lng:Number(b[0]),lat:Number(b[1])},system:'latlng'}}b=a.split(' ');if(b.length==2&&a.split(':').length==5){return {value:a,system:'HMS'}}}return null},parseCoords:function(b){var a=/J\s(\d+\.?\d*)\s*,?\s*\+?(-?\d+\.?\d*)/g.exec(b);if(a&&a.length>=3){return L.latLng(Number(a[2]),Number(a[1]))}return null}}},0,['visiomatic'],['component','box','container','panel','visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0},['widget.visiomatic'],[['interface',visiomatic.Interface]],[visiomatic,'Visiomatic'],0);Ext.cmd.derive('visiomatic.crop.CropWindow',Ext.window.Window,{title:'Crop',width:400,height:400,modal:!0,autoShow:!0,closeAction:'destroy',layout:{type:'hbox'},initComponent:function(){var a=this,b=a.image;Ext.apply(this,{layout:'ux.center',items:[{xtype:'image',src:b.href,alt:b.download,height:a.height-100,width:a.width-100}],buttons:[{xtype:'label',text:'Right click "Save image as" to download the image',flex:1},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},onCancel:function(){this.close()},loadImage:function(a){var b=this;this.image=a}},0,['target-download-crop'],['component','box','container','panel','window','target-download-crop'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download-crop':!0},['widget.target-download-crop'],0,[visiomatic.crop,'CropWindow'],0);Ext.cmd.derive('Target.Application',Ext.app.Application,{name:'Target',defaultToken:'home',stores:[],init:function(){Ext.create('common.statistics.Events').init();var a=this},launch:function(){Ext.enableAriaButtons=!1;Ext.Ajax.request({url:'/dri/api/logged/get_logged/?format=json',success:function(a){var b=JSON.parse(a.responseText);if(window.ga){ga('set','userId',b.id)}Settings.loadSettings(['PRODUCT_REGISTER_DB_INTERFACE','PRODUCT_REGISTER_FOLDERS','PRODUCT_REGISTER_ENABLE_PUBLIC','DES_CUTOUT_SERVICE__AVAILABLE_RELEASES','DES_CUTOUT_SERVICE__MAX_OBJECTS'])},failure:function(e,f){var d=window.location.protocol,c=window.location.pathname,b=window.location.host,a;a=Ext.String.format('{0}//{1}/dri/api/api-auth/login/?next={2}',d,b,c);window.location.assign(a)}})},onAppUpdate:function(){window.location.reload()}},0,0,0,0,0,0,[Target,'Application'],0);Ext.cmd.derive('Target.model.Association',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'pca_product',type:'int'},{name:'pca_class_content',type:'int'},{name:'pca_product_content',type:'int'},{name:'pcc_ucd',type:'string'},{name:'pcn_column_name',type:'string'}],proxy:{type:'django',url:'/dri/api/association/'}},0,0,0,0,0,0,[Target.model,'Association'],0);Ext.cmd.derive('Target.model.Bookmarked',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/bookmarked/'},fields:[{name:'id',type:'int','default':null,persist:!1},{name:'catalog_id',type:'int'},{name:'owner',type:'string',persist:!1},{name:'is_starred',type:'bool','default':!0},{name:'is_owner',type:'bool',persist:!1}]},0,0,0,0,0,0,[Target.model,'Bookmarked'],0);Ext.cmd.derive('Target.model.Catalog',Ext.data.Model,{fields:[{name:'id'},{name:'owner',type:'string'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_flag_removed',type:'boolean'},{name:'prd_class',type:'int'},{name:'prd_date',type:'date'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'epr_name',type:'string'},{name:'epr_username',type:'string'},{name:'epr_start_date',type:'date'},{name:'epr_end_date',type:'date'},{name:'epr_readme',type:'string'},{name:'epr_comment',type:'string'},{name:'ctl_num_columns',type:'int'},{name:'ctl_num_tiles',type:'int'},{name:'ctl_num_objects',type:'int'},{name:'release_id',type:'int'},{name:'release_display_name',type:'string'},{name:'prd_is_public',type:'boolean',defaultValue:!1},{name:'editable',type:'boolean',defaultValue:!1},{name:'is_owner',type:'boolean',defaultValue:!1},{name:'bookmark'}]},0,0,0,0,0,0,[Target.model,'Catalog'],0);Ext.cmd.derive('Target.model.CatalogColumn',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'pcn_product_id',type:'int'},{name:'pcn_column_name',type:'string'},{name:'pca_product',type:'int'},{name:'pca_class_content',type:'int'},{name:'pca_product_content',type:'int'},{name:'pcc_category',type:'string'},{name:'pcc_display_name',type:'string'},{name:'pcc_ucd',type:'string'},{name:'pcc_unit',type:'string'},{name:'pcc_reference',type:'string'},{name:'pcc_mandatory',type:'boolean'},{name:'ucd',type:'string',convert:function(b,a){return a.get('pcc_ucd')}},{name:'reference',type:'string'},{name:'unit',type:'string'},{name:'property_name',type:'string',convert:function(b,a){return a.get('pcn_column_name')}},{name:'property_display_name',type:'string',convert:function(b,a){if(a.get('pcc_display_name')!=''){return a.get('pcc_display_name')}else {return a.get('pcn_column_name')}}}]},0,0,0,0,0,0,[Target.model,'CatalogColumn'],0);Ext.cmd.derive('Target.model.CatalogContent',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'product_id',type:'int'},{name:'setting_id',type:'int'},{name:'column_name',type:'string'},{name:'class_id',type:'int'},{name:'category',type:'string'},{name:'display_name',type:'string'},{name:'ucd',type:'string'},{name:'unit',type:'string'},{name:'reference',type:'string'},{name:'mandatory',type:'boolean'},{name:'content_setting',type:'int'},{name:'is_visible',type:'boolean'},{name:'order',type:'int'}]},0,0,0,0,0,0,[Target.model,'CatalogContent'],0);Ext.cmd.derive('Target.model.CatalogObject',Ext.data.Model,{fields:[{name:'coadd_objects_id',type:'int'},{name:'tag_id',type:'string'},{name:'name',type:'string'},{name:'field_id',type:'string'},{name:'field_name',type:'string'},{name:'display_name',type:'string'},{name:'tiletag_id',type:'string'},{name:'tile_id',type:'string'},{name:'tilename',type:'string'},{name:'schema',type:'string'},{name:'table',type:'string'},{name:'ra',type:'float'},{name:'dec',type:'float'},{name:'display_ra',convert:function(a,b){a=Ext.util.Format.number(b.get('ra'),'0.0000');return a}},{name:'display_dec',convert:function(a,b){a=Ext.util.Format.number(b.get('dec'),'0.0000');return a}},{name:'_meta_ra',convert:function(b,a){return a.get('ra')}},{name:'_meta_dec',convert:function(b,a){return a.get('dec')}},{name:'l',type:'float'},{name:'b',type:'float'},{name:'tile'},{name:'type',type:'string',defaultValue:'---'},{name:'photoz',type:'string',defaultValue:'---'},{name:'extinction',type:'string',defaultValue:'---'},{name:'a_image',type:'float',defaultValue:0},{name:'b_image',type:'float',defaultValue:0},{name:'theta_image',type:'float',defaultValue:0},{name:'e',type:'float',convert:function(e,a){var b=a.get('a_image');var c=a.get('b_image');var d=1-c/b;return Ext.util.Format.number(d,'0.00000')}},{name:'fluxplot',type:'string',defaultValue:''},{name:'spectra',type:'boolean',defaultValue:!1},{name:'id'},{name:'z',convert:function(a,b){return Ext.util.Format.number(a,'0.00000')}},{name:'z_err',convert:function(a,b){return Ext.util.Format.number(a,'0.000')}},{name:'flag',convert:function(a,b){return Ext.util.Format.number(a,'0.0')}},{name:'source',type:'string'},{name:'zoom_g',type:'string'},{name:'zoom_r',type:'string'},{name:'zoom_i',type:'string'},{name:'zoom_z',type:'string'},{name:'zoom_y',type:'string'},{name:'zoom_gri',type:'string'},{name:'zoom_riz',type:'string'},{name:'zoom_izy',type:'string'},{name:'zoom_rgb',type:'string'},{name:'mag_auto_g',convert:function(a,b){a=Ext.util.Format.number(a,'0.00');return a}},{name:'mag_auto_i',convert:function(a,b){a=Ext.util.Format.number(a,'0.00');return a}},{name:'mag_auto_r',convert:function(a,b){a=Ext.util.Format.number(a,'0.00');return a}},{name:'mag_auto_y',convert:function(a,b){a=Ext.util.Format.number(a,'0.00');return a}},{name:'mag_auto_z',convert:function(a,b){a=Ext.util.Format.number(a,'0.00');return a}},{name:'magerr_auto_g',convert:function(a,b){a=Ext.util.Format.number(a,'0.000');return a}},{name:'magerr_auto_i',convert:function(a,b){a=Ext.util.Format.number(a,'0.000');return a}},{name:'magerr_auto_r',convert:function(a,b){a=Ext.util.Format.number(a,'0.000');return a}},{name:'magerr_auto_y',convert:function(a,b){a=Ext.util.Format.number(a,'0.000');return a}},{name:'magerr_auto_z',convert:function(a,b){a=Ext.util.Format.number(a,'0.000');return a}},{name:'mag_auto_magerr_g',convert:function(b,a){if(a.get('mag_auto_g')&&a.get('magerr_auto_g')){return b=Ext.String.format('{0} +- {1}',a.get('mag_auto_g'),a.get('magerr_auto_g'))}else {return a.get('mag_auto_g')}}},{name:'mag_auto_magerr_i',convert:function(b,a){if(a.get('mag_auto_i')&&a.get('magerr_auto_i')){return b=Ext.String.format('{0} +- {1}',a.get('mag_auto_i'),a.get('magerr_auto_i'))}else {return a.get('mag_auto_i')}}},{name:'mag_auto_magerr_r',convert:function(b,a){if(a.get('mag_auto_r')&&a.get('magerr_auto_r')){return b=Ext.String.format('{0} +- {1}',a.get('mag_auto_r'),a.get('magerr_auto_r'))}else {return a.get('mag_auto_r')}}},{name:'mag_auto_magerr_y',convert:function(b,a){if(a.get('mag_auto_y')&&a.get('magerr_auto_y')){return b=Ext.String.format('{0} +- {1}',a.get('mag_auto_y'),a.get('magerr_auto_y'))}else {return a.get('mag_auto_y')}}},{name:'mag_auto_magerr_z',convert:function(b,a){if(a.get('mag_auto_z')&&a.get('magerr_auto_z')){return b=Ext.String.format('{0} +- {1}',a.get('mag_auto_z'),a.get('magerr_auto_z'))}else {return a.get('mag_auto_z')}}},{name:'postage_stamps',type:'string'},{name:'timestamp',type:'string',convert:function(){timestamp=(new Date()).getTime();randon=Math.random();return timestamp+randon}},{name:'comments',type:'int'},{name:'users',type:'int'},{name:'users_string',type:'string',convert:function(a,b){if(a){return a.replace(', ','
    ')}else {return a}}},{name:'comment_user',convert:function(b,a){if(a.get('comments')>0){return Ext.String.format('{0}/{1}',a.get('comments'),a.get('users'))}else {return ''}}}]},0,0,0,0,0,0,[Target.model,'CatalogObject'],0);Ext.cmd.derive('Target.model.CatalogTree',Ext.data.Model,{fields:[{name:'id'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'prd_date',type:'date'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_group',type:'int'},{name:'pgr_display_name',type:'string'},{name:'epr_original_id',type:'string'},{name:'epr_name',type:'string'},{name:'epr_username',type:'string'},{name:'epr_start_date',type:'date'},{name:'epr_end_date',type:'date'},{name:'epr_readme',type:'string'},{name:'epr_comment',type:'string'},{name:'description',type:'string'},{name:'ctl_num_columns',type:'int'},{name:'ctl_num_tiles',type:'int'},{name:'ctl_num_objects',type:'int'},{name:'editable',type:'boolean',defaultValue:!1},{name:'markable',type:'boolean',defaultValue:!1},{name:'tableExist',type:'boolean',defaultValue:!1},{name:'release_display_name',type:'string'},{name:'tbl_size',type:'int',convert:function(a,b){if(a>0){return Ext.util.Format.fileSize(a)}else {return null}}}]},0,0,0,0,0,0,[Target.model,'CatalogTree'],0);Ext.cmd.derive('Target.model.ContentSetting',Ext.data.Model,{fields:[{name:'id',type:'int'},{name:'pcs_content',type:'int'},{name:'pcs_setting',type:'int'},{name:'pcs_is_visible',type:'boolean'},{name:'pcs_order',type:'int'},{name:'display_name',type:'string',persist:!1}]},0,0,0,0,0,0,[Target.model,'ContentSetting'],0);Ext.cmd.derive('Target.model.CurrentSetting',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'cst_product',type:'int'},{name:'cst_setting',type:'int'},{name:'editable',type:'boolean','default':!1,persist:!1}],proxy:{type:'django',url:'/dri/api/currentsetting/'}},0,0,0,0,0,0,[Target.model,'CurrentSetting'],0);Ext.cmd.derive('Target.model.Cutout',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'cjb_cutout_job',type:'int'},{name:'ctt_object_id',type:'int'},{name:'ctt_object_ra',type:'float'},{name:'ctt_object_dec',type:'float'},{name:'ctt_filter',type:'int'},{name:'ctt_thumbname',type:'string'},{name:'ctt_file_path',type:'string'},{name:'ctt_file_name',type:'string'},{name:'ctt_file_type',type:'string'},{name:'ctt_file_size',type:'string'},{name:'ctt_download_start_time',type:'date'},{name:'ctt_download_finish_time',type:'date'},{name:'ctt_file_source',type:'string'},{name:'timestamp',type:'string'}],getImageSource:function(b){var a=this;if(b){return Ext.String.format('{0}?_dc={1}',a.get('ctt_file_source'),a.get('timestamp'))}else {return a.get('ctt_file_source')}}},0,0,0,0,0,0,[Target.model,'Cutout'],0);Ext.cmd.derive('Target.model.CutoutJob',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/filterset/'},fields:[{name:'id',type:'int',persist:!1},{name:'cjb_product',type:'int'},{name:'cjb_display_name',type:'string'},{name:'cjb_xsize',type:'float'},{name:'cjb_ysize',type:'float'},{name:'cjb_job_type',type:'string'},{name:'cjb_tag',type:'string'},{name:'cjb_band',type:'string'},{name:'cjb_Blacklist',type:'boolean','default':!1},{name:'cjb_label_position',type:'string'},{name:'cjb_label_colors',type:'string','default':'#2eadf5'},{name:'cjb_label_properties',type:'string'},{name:'cjb_label_font_size',type:'int'},{name:'cjb_start_time',type:'date'},{name:'cjb_finish_time',type:'date'},{name:'cjb_description',type:'string'},{name:'cjb_status',type:'string','default':'st'},{name:'cjb_job_id',type:'string',persist:!1},{name:'owner',type:'string',persist:!1},{name:'is_owner',type:'boolean',persist:!1},{name:'execution_time',type:'string',persist:!1},{name:'count_files',type:'int',persist:!1},{name:'file_sizes',type:'string',persist:!1},{name:'ready_to_download',type:'boolean','default':!1,persist:!1,convert:function(b,a){if(a.get('cjb_status')==='ok'){return !0}else {return !1}}},{name:'status',type:'string',persist:!1,convert:function(c,b){var a='';switch(b.get('cjb_status')){case 'st':a='Start';break;case 'bs':a='Submit Job';break;case 'rn':a='Running';break;case 'ok':a='Done';break;case 'er':a='Error';break;case 'je':a='Job Error';break;case 'dl':a='Deleted';break;}return a}}]},0,0,0,0,0,0,[Target.model,'CutoutJob'],0);Ext.cmd.derive('Target.model.FilterCondition',Ext.data.Model,{fields:[{name:'id',type:'int','default':null,persist:!1},{name:'filterset',type:'int'},{name:'fcd_property',type:'int'},{name:'fcd_property_name',type:'string'},{name:'fcd_operation',type:'string'},{name:'fcd_value',type:'string'},{name:'operator_display_name',type:'string',persist:!1},{name:'property_display_name',type:'string',persist:!1,convert:function(a,c){var b=c.get('fcd_property_name');switch(b){case '_meta_rating':a='Rating';break;case '_meta_reject':a='Reject';break;}return a}}]},0,0,0,0,0,0,[Target.model,'FilterCondition'],0);Ext.cmd.derive('Target.model.FilterSet',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/filterset/'},fields:[{name:'id',type:'int','default':null,persist:!1},{name:'product',type:'int'},{name:'owner',type:'int',persist:!1},{name:'fst_name',type:'string'}]},0,0,0,0,0,0,[Target.model,'FilterSet'],0);Ext.cmd.derive('Target.model.Object',Ext.data.Model,{idProperty:'_meta_id',fields:[{name:'_meta_id',type:'string'},{name:'_meta_catalog_id',type:'int'},{name:'_meta_is_system',type:'boolean'},{name:'_meta_ra',type:'float'},{name:'_meta_dec',type:'float'},{name:'_meta_radius',type:'float'},{name:'_meta_rating_id',type:'int'},{name:'_meta_reject_id',type:'int'}]},0,0,0,0,0,0,[Target.model,'Object'],0);Ext.cmd.derive('Target.model.Permission',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'prm_product',type:'int'},{name:'prm_user','default':null},{name:'prm_workgroup','default':null}]},0,0,0,0,0,0,[Target.model,'Permission'],0);Ext.cmd.derive('Target.model.PermissionUser',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'prm_product',type:'int'},{name:'prm_user',type:'int'},{name:'username',type:'string',persist:!1}]},0,0,0,0,0,0,[Target.model,'PermissionUser'],0);Ext.cmd.derive('Target.model.PermissionWorkgroup',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'wgu_workgroup',type:'int'},{name:'wgu_user',type:'int'},{name:'workgroup',type:'string',persist:!1},{name:'username',type:'string',persist:!1}]},0,0,0,0,0,0,[Target.model,'PermissionWorkgroup'],0);Ext.cmd.derive('Target.model.Product',Ext.data.Model,{fields:[{name:'id'},{name:'owner',type:'string'},{name:'prd_name',type:'string'},{name:'prd_display_name',type:'string'},{name:'prd_user_display_name',type:'string'},{name:'prd_class',type:'int'},{name:'prd_date',type:'date'},{name:'prd_is_public',type:'boolean',defaultValue:!1},{name:'is_owner',type:'boolean',defaultValue:!1}]},0,0,0,0,0,0,[Target.model,'Product'],0);Ext.cmd.derive('Target.model.ProductRelated',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'prl_product',type:'int'},{name:'prl_related',type:'int'},{name:'prl_relation_type',type:'string'},{name:'prl_cross_identification','default':null},{name:'prl_cross_name',persist:!1}]},0,0,0,0,0,0,[Target.model,'ProductRelated'],0);Ext.cmd.derive('Target.model.Rating',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/objectsrating/'},fields:[{name:'id',type:'int','default':null},{name:'catalog_id',type:'int'},{name:'owner',type:'int'},{name:'object_id',type:'string'},{name:'rating',type:'int'}]},0,0,0,0,0,0,[Target.model,'Rating'],0);Ext.cmd.derive('Target.model.Reject',Ext.data.Model,{proxy:{type:'django',url:'/dri/api/objectsreject/'},fields:[{name:'id'},{name:'catalog_id',type:'int'},{name:'owner',type:'int'},{name:'object_id',type:'string'},{name:'reject',type:'boolean'}]},0,0,0,0,0,0,[Target.model,'Reject'],0);Ext.cmd.derive('Target.model.Setting',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'cst_product',type:'int'},{name:'cst_display_name',type:'string'},{name:'cst_description',type:'string'},{name:'cst_is_public',type:'boolean'},{name:'cst_is_editable',type:'boolean'},{name:'owner',type:'string'},{name:'editable',type:'boolean','default':!1,persist:!1}],proxy:{type:'django',url:'/dri/api/productsetting/'}},0,0,0,0,0,0,[Target.model,'Setting'],0);Ext.cmd.derive('Target.model.Workgroup',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'wgp_workgroup',type:'string'},{name:'owner',persist:!1}]},0,0,0,0,0,0,[Target.model,'Workgroup'],0);Ext.cmd.derive('Target.model.WorkgroupUser',Ext.data.Model,{fields:[{name:'id',type:'int',persist:!1},{name:'wgu_workgroup',type:'int'},{name:'wgu_user',type:'int'},{name:'username',persist:!1}]},0,0,0,0,0,0,[Target.model,'WorkgroupUser'],0);Ext.cmd.derive('Target.store.Association',common.store.MyStore,{model:'Target.model.Association',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/association/'}},0,0,0,0,['store.association'],0,[Target.store,'Association'],0);Ext.cmd.derive('Target.store.Bookmarks',common.store.MyStore,{model:'Target.model.Bookmarked',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/bookmarked/'},sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.bookmarks'],0,[Target.store,'Bookmarks'],0);Ext.cmd.derive('Target.store.Catalogs',common.store.MyStore,{model:'Target.model.Catalog',autoLoad:!1,remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/catalog/'}},0,0,0,0,['store.catalogs'],0,[Target.store,'Catalogs'],0);Ext.cmd.derive('Target.store.CatalogsTree',common.store.MyTreeStore,{model:'Target.model.CatalogTree',autoLoad:!1,remoteFilter:!0,proxy:{api:{read:'/dri/api/catalog/get_class_tree_by_group/',create:'/dri/api/catalog/',update:'/dri/api/catalog/'}}},0,0,0,0,['store.catalogs-tree'],0,[Target.store,'CatalogsTree'],0);Ext.cmd.derive('Target.store.ClassContent',common.store.MyStore,{model:'Target.model.CatalogColumn',remoteFilter:!0,proxy:{url:'/dri/api/productclasscontent/'},sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.class-content'],0,[Target.store,'ClassContent'],0);Ext.cmd.derive('Target.store.ContentSettings',common.store.MyStore,{model:'Target.model.ContentSetting',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/contentsetting/'}},0,0,0,0,['store.content-settings'],0,[Target.store,'ContentSettings'],0);Ext.cmd.derive('Target.store.CurrentSettings',common.store.MyStore,{model:'Target.model.CurrentSetting',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/currentsetting/'}},0,0,0,0,['store.currentsettings'],0,[Target.store,'CurrentSettings'],0);Ext.cmd.derive('Target.store.CutoutJobs',common.store.MyStore,{model:'Target.model.CutoutJob',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/cutoutjob/'},sorters:[{property:'cjb_finish_time',direction:'DESC'}]},0,0,0,0,['store.cutoutjobs'],0,[Target.store,'CutoutJobs'],0);Ext.cmd.derive('Target.store.Cutouts',common.store.MyStore,{model:'Target.model.Cutout',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/cutouts/'},getImageSourceByObjectId:function(e,b,d){var c=this,a;if(!b){b='png'}c.each(function(c){if(parseInt(c.get('ctt_object_id'))===parseInt(e)){if(c.get('ctt_file_type').toLowerCase()===b.toLowerCase()){a=c;return !1}}},c);if(a&&a.get('ctt_file_source')!==null&&a.get('ctt_file_source')!==''){return a.getImageSource(d)}else {return null}}},0,0,0,0,['store.cutouts'],0,[Target.store,'Cutouts'],0);Ext.cmd.derive('Target.store.FilterConditions',common.store.MyStore,{model:'Target.model.FilterCondition',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/filtercondition/'},sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.target-filter-conditions'],0,[Target.store,'FilterConditions'],0);Ext.cmd.derive('Target.store.FilterSets',common.store.MyStore,{model:'Target.model.FilterSet',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/filterset/'},sorters:[{property:'id',direction:'ASC'}]},0,0,0,0,['store.target-filtersets'],0,[Target.store,'FilterSets'],0);Ext.cmd.derive('Target.store.Objects',common.store.MyStore,{remoteFilter:!0,remoteSort:!0,autoLoad:!1,model:'Target.model.Object',pageSize:100,proxy:{type:'django',timeout:180000,api:{read:'/dri/api/target/'}}},0,0,0,0,['store.targets-objects'],0,[Target.store,'Objects'],0);Ext.cmd.derive('Target.store.PermissionUsers',common.store.MyStore,{model:'Target.model.PermissionUser',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/product_permission_user/'},sorters:[{property:'prm_user__username',direction:'ASC'}]},0,0,0,0,['store.permission_users'],0,[Target.store,'PermissionUsers'],0);Ext.cmd.derive('Target.store.PermissionWorkgroups',common.store.MyStore,{model:'Target.model.PermissionWorkgroup',remoteFilter:!0,remoteSorter:!1,pageSize:0,proxy:{url:'/dri/api/product_permission_workgroup_user/'},groupField:'workgroup',sorters:[{property:'username',direction:'ASC'}]},0,0,0,0,['store.permission_workgroups'],0,[Target.store,'PermissionWorkgroups'],0);Ext.cmd.derive('Target.store.Permissions',common.store.MyStore,{model:'Target.model.Permission',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/product_permission/'}},0,0,0,0,['store.permissions'],0,[Target.store,'Permissions'],0);Ext.cmd.derive('Target.store.ProductAssociation',common.store.MyStore,{model:'Target.model.CatalogColumn',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/productassociation/'}},0,0,0,0,['store.product-association'],0,[Target.store,'ProductAssociation'],0);Ext.cmd.derive('Target.store.ProductClass',common.store.MyStore,{autoLoad:!1,remoteFilter:!1,pageSize:0,proxy:{url:'/dri/api/productclass/'},fields:[{name:'id'},{name:'pcl_name',type:'string'},{name:'pcl_display_name',type:'string'},{name:'pcl_is_system',type:'boolean'},{name:'pgr_name',type:'string'}]},0,0,0,0,['store.product_class'],0,[Target.store,'ProductClass'],0);Ext.cmd.derive('Target.store.ProductContent',common.store.MyStore,{model:'Target.model.CatalogColumn',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/productcontent/'}},0,0,0,0,['store.product-content'],0,[Target.store,'ProductContent'],0);Ext.cmd.derive('Target.store.ProductDisplayContents',common.store.MyStore,{model:'Target.model.CatalogContent',remoteFilter:!0,remoteSort:!1,pageSize:0,proxy:{url:'/dri/api/productcontent/get_display_content/'},autoSort:!0,ucds:['meta.id;meta.main','pos.eq.ra;meta.main','pos.eq.dec;meta.main'],check_ucds:function(){var a=this,b=[];a.each(function(c){if(a.ucds.indexOf(c.get('ucd'))!==-1){b.push(!0)}},a);if(b.length===a.ucds.length){return !0}else {return !1}}},0,0,0,0,['store.product-display-contents'],0,[Target.store,'ProductDisplayContents'],0);Ext.cmd.derive('Target.store.ProductRelateds',common.store.MyStore,{model:'Target.model.ProductRelated',autoLoad:!1,remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/productrelated/'}},0,0,0,0,['store.product_relateds'],0,[Target.store,'ProductRelateds'],0);Ext.cmd.derive('Target.store.Products',common.store.MyStore,{model:'Target.model.Product',autoLoad:!1,remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/product/'}},0,0,0,0,['store.products'],0,[Target.store,'Products'],0);Ext.cmd.derive('Target.store.Settings',common.store.MyStore,{model:'Target.model.Setting',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/productsetting/'},sorters:[{property:'id',direction:'DESC'}]},0,0,0,0,['store.settings'],0,[Target.store,'Settings'],0);Ext.cmd.derive('Target.store.WorkgroupUsers',common.store.MyStore,{model:'Target.model.WorkgroupUser',remoteFilter:!0,pageSize:0,proxy:{url:'/dri/api/workgroup_users/'}},0,0,0,0,['store.workgroup_users'],0,[Target.store,'WorkgroupUsers'],0);Ext.cmd.derive('Target.store.Workgroups',common.store.MyStore,{model:'Target.model.Workgroup',remoteFilter:!1,pageSize:0,proxy:{url:'/dri/api/workgroup/'}},0,0,0,0,['store.workgroups'],0,[Target.store,'Workgroups'],0);Ext.cmd.derive('Target.view.association.AssociationController',Ext.app.ViewController,{listen:{component:{'targets-association':{changeproduct:'onChangeProduct',changeCatalog:'onChangeCatalog'}},store:{'#AuxCatalogs':{load:'onLoadCatalogs'},'#ClassContent':{load:'onLoadClassContent'},'#AuxProductContent':{load:'onLoadProductContent'},'#ProductAssociation':{load:'onLoadProductAssociation',datachanged:'onAssociationChange'}}},onChangeProduct:function(d){var e=this,b=e.getViewModel(),c=b.getStore('fakeassociation'),a=b.getStore('catalogs');c.removeAll();a.removeAll();a.clearFilter(!0);a.filter([{property:'id',value:d}])},onLoadCatalogs:function(b){var c=this,d=c.getViewModel(),a;if(b.count()===1){a=b.first();d.set('currentCatalog',a);c.loadClassContents()}},onChangeCatalog:function(b){var a=this,c=a.getViewModel();c.set('currentCatalog',b);a.loadClassContents()},loadClassContents:function(){var e=this,c=e.getViewModel(),d=c.get('currentCatalog'),b=c.getStore('classcontent'),a=c.getStore('auxclasscontent');b.removeAll();b.clearFilter(!0);b.filter([{property:'pcc_class',value:d.get('prd_class')}]);a.removeAll();a.clearFilter(!0);a.filter([{property:'pcc_class',value:d.get('prd_class')}])},onLoadClassContent:function(){var a=this;a.loadProductContent()},loadProductContent:function(){var a=this,b=a.getViewModel(),f=a.getReferences(),e=f.productcontentgrid,d=b.get('currentCatalog'),c=b.getStore('productcontent');e.setLoading(!0);c.filter([{property:'pcn_product_id',value:d.get('id')}])},onLoadProductContent:function(){var a=this;a.loadAssociations()},loadAssociations:function(){var d=this,a=d.getViewModel(),c=a.get('currentCatalog'),b=a.getStore('productassociation');b.filter([{property:'pca_product',value:c.get('id')}])},onLoadProductAssociation:function(){var b=this,i=b.getView(),h=b.getReferences(),g=h.productcontentgrid,a=b.getViewModel(),f=a.get('currentCatalog'),c=a.getStore('fakeassociation'),e=a.getStore('productcontent'),d=a.getStore('productassociation');c.removeAll();e.each(function(a){var b=d.findRecord('pca_product_content',a.get('id'));if(!b){b=Ext.create('Target.model.CatalogColumn',{'pca_product':f.get('id'),'pca_product_content':a.get('id'),'pcn_column_name':a.get('pcn_column_name')})}c.add(b)},this);g.setLoading(!1);i.checkFinish()},onSearchClassContent:function(b){var c=this,d=c.getViewModel(),e=d.get('currentCatalog'),a=d.getStore('auxclasscontent');if(b!==''){a.removeAll();a.clearFilter(!0);a.filter([{property:'pcc_class',value:e.get('prd_class')},{property:'search',value:b}])}else {c.onCancelClassContent()}},onCancelClassContent:function(){this.loadClassContents()},onSearchAssociation:function(b){var c=this,d=c.getViewModel(),a=d.getStore('fakeassociation');if(b!==''){a.clearFilter(!0);a.filter([{property:'pcn_column_name',value:b}])}else {c.onCancelAssociation()}},onCancelAssociation:function(){var b=this,c=b.getViewModel(),a=c.getStore('fakeassociation');a.clearFilter()},onCellDrop:function(e,c){var f=this,a=e.record,b=a.previousValues.pcc_display_name,d;if(b==''){d=Ext.create('Target.model.Association',{pca_product:a.get('pca_product'),pca_class_content:c.record.get('id'),pca_product_content:a.get('pca_product_content')});this.addAssociation(d,a)}else {if(b!=c.record.pcc_display_name){}}},addAssociation:function(b,a){var d=this,c=d.getView();b.save({callback:function(g,e,f){if(f){var d=Ext.decode(e.getResponse().responseText);a.set('id',d.id);a.set('pca_class_content',d.pca_class_content);a.commit(!0);c.checkFinish()}}})},onRemove:function(){var b=this,e=b.getReferences(),d=e.productcontentgrid,c=d.selection,a;a=Ext.create('Target.model.Association',{'id':c.get('id')});a.erase({callback:function(c,d,a){if(a){b.loadProductContent()}}})},onRemoveAll:function(){Ext.MessageBox.confirm('Confirm','Are you sure you want to do that?',function(a){if(a=='yes'){this.removeAll()}},this)},removeAll:function(){var b=this,d=b.getViewModel(),c=d.get('currentCatalog'),a;a=Ext.create('Target.store.Association',{filters:[{property:'pca_product',value:c.get('id')}]});a.load({scope:a,callback:function(){this.removeAll();this.sync({scope:b,callback:b.loadProductContent()})}});a=null},onAssociationChange:function(){var b=this,a=b.getView();a.checkFinish()}},0,0,0,0,['controller.association'],0,[Target.view.association,'AssociationController'],0);Ext.cmd.derive('Target.view.association.AssociationModel',Ext.app.ViewModel,{links:{currentCatalog:{type:'Target.model.Catalog',create:!0}},stores:{catalogs:{type:'catalogs',storeId:'AuxCatalogs'},classcontent:{type:'class-content',storeId:'ClassContent'},auxclasscontent:{type:'class-content',storeId:'AuxClassContent'},productcontent:{type:'product-content',storeId:'AuxProductContent'},productassociation:{type:'product-association',storeId:'ProductAssociation'},fakeassociation:{type:'product-association',remoteFilter:!1,remoteSorter:!1},displayContents:{type:'product-display-contents',autoLoad:!1}}},0,0,0,0,['viewmodel.association'],0,[Target.view.association,'AssociationModel'],0);Ext.cmd.derive('Target.view.association.CellDragDrop',Ext.ux.CellDragDrop,{onViewRender:function(b){var a=this,c;if(a.enableDrag){if(a.containerScroll){c=b.getEl()}a.dragZone=new Ext.view.DragZone({view:b,ddGroup:a.dragGroup||a.ddGroup,dragText:a.dragText,containerScroll:a.containerScroll,scrollEl:c,getDragData:function(d){var c=this.view,g=d.getTarget(c.getItemSelector()),h=c.getRecord(g),e=d.getTarget(c.getCellSelector()),a,f;if(g){a=document.createElement('div');a.className='x-form-text';a.appendChild(document.createTextNode(e.textContent||e.innerText));f=c.getHeaderByCell(e);return {event:new Ext.EventObjectImpl(d),ddel:a,item:d.target,columnName:f.dataIndex,record:h}}},onInitDrag:function(h,i){var a=this,e=a.dragData,g=a.view,c=g.getSelectionModel(),d=e.record,f=e.ddel;if(!c.isSelected(d)){c.select(d,!0)}Ext.fly(a.ddel).update(f.textContent||f.innerText);a.proxy.update(a.ddel);a.onStartDrag(h,i);return !0}})}if(a.enableDrop){a.dropZone=new Ext.dd.DropZone(b.el,{view:b,ddGroup:a.dropGroup||a.ddGroup,containerScroll:!0,getTargetFromEvent:function(g){var f=this,c=f.view,a=g.getTarget(c.cellSelector),e,d;if(a){e=c.findItemByChild(a);d=c.getHeaderByCell(a);if(e&&d){return {node:a,record:c.getRecord(e),columnName:d.dataIndex}}}},onNodeEnter:function(c,h,i,e){var d=this,g=c.record.getField(c.columnName).type.toUpperCase(),f=e.record.getField(e.columnName).type.toUpperCase();delete d.dropOK;if(!c||c.node===e.item.parentNode){return}if(a.enforceType&&g!==f){d.dropOK=!1;if(a.noDropCls){Ext.fly(c.node).addCls(a.noDropCls)}else {Ext.fly(c.node).applyStyles({backgroundColor:a.noDropBackgroundColor})}return !1}if(a.dropColumn&&a.dropColumn!==c.columnName){d.dropOK=!1;return !1}d.dropOK=!0;if(a.dropCls){Ext.fly(c.node).addCls(a.dropCls)}else {Ext.fly(c.node).applyStyles({backgroundColor:a.dropBackgroundColor})}},onNodeOver:function(c,d,e,a){return this.dropOK?this.dropAllowed:this.dropNotAllowed},onNodeOut:function(c,f,g,e){var d=this.dropOK?a.dropCls:a.noDropCls;if(d){Ext.fly(c.node).removeCls(d)}else {Ext.fly(c.node).applyStyles({backgroundColor:''})}},onNodeDrop:function(d,e,f,c){if(this.dropOK){d.record.set(d.columnName,c.record.get(c.columnName));if(a.applyEmptyText){c.record.set(c.columnName,a.emptyText)}b.fireEvent('celldrop',d,c,a);return !0}},onCellDrop:Ext.emptyFn})}}},0,0,0,0,['plugin.customcelldragdrop'],0,[Target.view.association,'CellDragDrop'],0);Ext.cmd.derive('Target.view.association.ClassContent',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{columns:[{text:'Properties available in this class',dataIndex:'pcc_display_name',flex:1,renderer:function(b,c,a){if(a.get('pcc_unit')!==''){return b+' ('+a.get('pcc_unit')+')'}else {return b}}}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-association-class-content'],['component','box','container','panel','tablepanel','gridpanel','grid','targets-association-class-content'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'targets-association-class-content':!0},['widget.targets-association-class-content'],0,[Target.view.association,'ClassContent'],0);Ext.cmd.derive('Target.view.association.ClassContentForm',Ext.form.Panel,{layout:'anchor',items:[{xtype:'fieldset',defaultType:'textfield',defaults:{anchor:'100%',readyOnly:!0},items:[{fieldLabel:'Name',bind:'{classcontentgrid.selection.pcc_display_name}'},{fieldLabel:'Unit',bind:'{classcontentgrid.selection.pcc_unit}'},{fieldLabel:'Reference',bind:'{classcontentgrid.selection.pcc_reference}'},{fieldLabel:'UCD',bind:'{classcontentgrid.selection.pcc_ucd}'},{fieldLabel:'Category',bind:'{classcontentgrid.selection.pcc_category}'}]}],setRecord:function(a){this.getForm().setRecord(a)},initComponent:function(){var a=this;Ext.apply(this,{});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-association-class-content-form'],['component','box','container','panel','form','targets-association-class-content-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'targets-association-class-content-form':!0},['widget.targets-association-class-content-form'],0,[Target.view.association,'ClassContentForm'],0);Ext.cmd.derive('Target.view.association.Grid',Ext.grid.Panel,{columns:[{text:'My properties',dataIndex:'pcn_column_name',flex:1},{text:'Class Properties',dataIndex:'pcc_display_name',flex:1,renderer:function(b,c,a){if(a.get('pcc_unit')!=''){return b+' ('+a.get('pcc_unit')+')'}else {return b}}}],initComponent:function(){var a=this;Ext.apply(this,{});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-association-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','targets-association-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'targets-association-grid':!0},['widget.targets-association-grid'],0,[Target.view.association,'Grid'],0);Ext.cmd.derive('Target.view.association.Panel',Ext.panel.Panel,{controller:'association',viewModel:'association',config:{product:null},layout:'border',initComponent:function(){var a=this,b=a.id+'group1',c=a.id+'group2';Ext.apply(this,{items:[{xtype:'panel',region:'north',height:80,bodyPadding:10,html:['

    The properties in your catalog must be associated with the available properties for the target class.
    It is necessary to make association for property ID, RA and Dec.

    ']},{xtype:'targets-association-grid',itemId:'grid1',bind:{store:'{fakeassociation}'},region:'center',reference:'productcontentgrid',viewConfig:{markDirty:!1,plugins:{ptype:'customcelldragdrop',ddGroup:b,containerScroll:!0,enableDrag:!1,enableDrop:!0,dropColumn:'pcc_display_name'},listeners:{celldrop:'onCellDrop'}},tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearchAssociation','cancel':'onCancelAssociation'},flex:1},{xtype:'button',text:'Remove',iconCls:'x-fa fa-minus-circle',tooltip:'Remove the selected association.',handler:'onRemove',bind:{disabled:'{!productcontentgrid.selection}'}},{xtype:'button',text:'Clear',iconCls:'x-fa fa-eraser',tooltip:'Removes all associations.',handler:'onRemoveAll'}]},{xtype:'panel',split:!0,resizable:!0,region:'east',width:400,layout:{type:'vbox',pack:'start',align:'stretch'},items:[{xtype:'targets-association-class-content',itemId:'grid2',reference:'classcontentgrid',bind:{store:'{auxclasscontent}'},flex:1,split:!0,viewConfig:{plugins:{ptype:'customcelldragdrop',applyEmptyText:!0,ddGroup:b,enableDrag:!0,enableDrop:!1}}},{xtype:'targets-association-class-content-form',reference:'classcontentform',split:!0,flex:1}],tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearchClassContent','cancel':'onCancelClassContent'},flex:1}]}],buttons:[{text:'Cancel',scope:a,handler:'onCancel'},{text:'OK',itemId:'AssociationBtnFinish',ui:'soft-green',scope:a,handler:'onFinish',hidden:!0}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setProduct:function(a){if(a){this.product=a;this.fireEvent('changeproduct',a,this)}},setCatalog:function(a){if(a){this.product=a.get('id');this.fireEvent('changeCatalog',a,this)}},getCatalog:function(){var b=this,c=b.getViewModel(),a=c.get('currentCatalog');return a},onFinish:function(){this.fireEvent('finish',this)},onCancel:function(){this.fireEvent('cancel',this)},checkFinish:function(){var a=this,d=a.getViewModel(),b=d.getStore('displayContents'),c=a.getProduct();b.addFilter([{'property':'pcn_product_id',value:c}]);b.load({callback:function(){if(this.check_ucds()){a.down('#AssociationBtnFinish').setVisible(!0)}else {a.down('#AssociationBtnFinish').setVisible(!1)}}})}},0,['targets-association'],['component','box','container','panel','targets-association'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-association':!0},['widget.targets-association'],0,[Target.view.association,'Panel'],0);Ext.cmd.derive('Target.view.catalog.CSVController',Ext.app.ViewController,{separator:',',baseProperties:['ra','dec'],addCatalog:function(){var g=this,h=g.getView(),f=h.getForm(),a,e,b,d,c,i;if(f.isValid()){a=f.getValues();b=a.displayName.split(' ').join('_');b=b.toLowerCase().trim();d=a.release!==''?[a.release]:[];c=a.isPublic==='on'?!0:!1;e={mime:'csv',type:'catalog','class':a.classname,name:b,displayName:a.displayName,releases:d,isPublic:c,description:a.description,csvData:a.csvData};g.importTargetList(e)}},importTargetList:function(b){var c=this,a=c.getView();a.setLoading(!0);Ext.Ajax.request({cors:!0,method:'POST',url:'/dri/api/import_target_list/',success:function(d){var c=JSON.parse(d.responseText);if(c.success){a.fireEvent('newproduct',c.product);a.setLoading(!1)}else {a.setLoading(!1);Ext.MessageBox.show({title:'Failure',icon:Ext.MessageBox.WARNING,msg:c.message,buttons:Ext.MessageBox.OK})}},failure:function(c,d){a.setLoading(!1);Ext.MessageBox.show({title:'Server Side Failure',msg:c.status+' '+c.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})},headers:{'Accept':'application/json','Application':'application/json','Content-Type':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')},params:Ext.util.JSON.encode(b)})},onCancelAddCatalog:function(){var d=this,a=d.getView(),b=a.getForm(),c=a.up('window');b.reset();c.close()}},0,0,0,0,['controller.csvform'],0,[Target.view.catalog,'CSVController'],0);Ext.cmd.derive('Target.view.catalog.CSVForm',Ext.form.Panel,{title:'Upload',controller:'csvform',viewModel:{stores:{productclass:{type:'product_class',autoLoad:!0,filters:[{property:'pgr_name',value:'targets'}]},releases:{type:'releases',autoLoad:!0}}},config:{enableFolder:!1,enablePublic:!1},initComponent:function(){var a=this;try{a.enableFolder=Settings.PRODUCT_REGISTER_FOLDERS}catch(b){console.warn('Setting PRODUCT_REGISTER_FOLDERS not loaded.')}try{a.enablePublic=Settings.PRODUCT_REGISTER_ENABLE_PUBLIC}catch(c){console.warn('Setting PRODUCT_REGISTER_ENABLE_PUBLIC not loaded.')}Ext.apply(this,{bodyPadding:20,submitEmptyText:!1,defaults:{anchor:'100%'},items:[{xtype:'textfield',name:'displayName',fieldLabel:'Name',minLength:3,maxLength:30,allowBlank:!1,regex:/^[a-z0-9-_\s]+$/i,regexText:"Please use only letters and numbers separated by spaces ' ', minus sign '-' or underscore '_'."},{xtype:'combobox',name:'classname',fieldLabel:'Folder',valueField:'pcl_name',displayField:'pcl_display_name',allowBlank:!1,editable:!1,hidden:!a.enableFolder,bind:{store:'{productclass}'},value:'objects'},{xtype:'combobox',name:'release',fieldLabel:'Release',displayField:'rls_display_name',valueField:'rls_name',bind:{store:'{releases}'}},{xtype:'checkbox',boxLabel:'Public',name:'isPublic',checked:!1,hidden:!a.enablePublic},{xtype:'textareafield',name:'csvData',fieldLabel:'Coordinates',height:200,labelAlign:'top',emptyText:'ra, dec',allowBlank:!1},{xtype:'textareafield',name:'description',labelAlign:'top',fieldLabel:'Description'}],buttons:['->',{xtype:'button',text:'Cancel',iconCls:'x-fa fa-close',handler:'onCancelAddCatalog'},{xtype:'button',text:'Submit',iconCls:'x-fa fa-check',ui:'soft-green',handler:'addCatalog'}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-catalog-csv-form'],['component','box','container','panel','form','targets-catalog-csv-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'targets-catalog-csv-form':!0},['widget.targets-catalog-csv-form'],0,[Target.view.catalog,'CSVForm'],0);Ext.cmd.derive('Target.view.catalog.DatabaseController',Ext.app.ViewController,{winAddCatalog:null,winAssociation:null,addCatalog:function(){var k=this,c=k.getView(),j=c.getForm(),a,i,b,f,e,d,g,h;if(j.isValid()){a=j.getValues();b=a.displayName.split(' ').join('_');b=b.toLowerCase().trim();f=a.release!==''?[a.release]:[];e=a.isPublic==='on'?!0:!1;d=a.tablename.split('.');g=d[0];h=d[1];i={products:[{'type':'catalog','class':a.classname,'name':b,'display_name':a.displayName,'database':a.database,'schema':g,'table':h,'releases':f,'is_public':e,'description':a.description}]};c.setLoading(!0);Ext.Ajax.request({cors:!0,method:'POST',url:'/dri/api/importexternalprocess/',success:function(){c.setLoading(!1);k.getAddedCatalog(b)},failure:function(a,b){c.setLoading(!1);Ext.MessageBox.show({title:'Server Side Failure',msg:a.status+' '+a.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})},headers:{'Accept':'application/json','Application':'application/json','Content-Type':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')},params:Ext.util.JSON.encode(i)})}},onCancelAddCatalog:function(){var c=this,a=c.getView(),b=a.down('form').getForm();b.reset();a.close()},getAddedCatalog:function(c){var d=this,a=Ext.create('Target.store.Catalogs',{}),b;a.filter({property:'prd_name',value:c});a.load({callback:function(e,g,f){if(f&&e.length==1){b=a.first();d.showAssociation(b)}}})},showAssociation:function(b){var a=this;a.winAssociation=Ext.create('Ext.window.Window',{title:'Association',layout:'fit',closable:!0,closeAction:'destroy',width:800,height:620,modal:!0,items:[{xtype:'targets-association',listeners:{scope:a,cancel:'onCloseAssociation',finish:'onFinishAssociation',close:'onCloseAssociation'}}]});a.winAssociation.down('targets-association').setCatalog(b);a.winAssociation.show()},onFinishAssociation:function(c){var a=this,d=a.getView(),b=c.getProduct(),e;d.fireEvent('newproduct',b);a.onCloseAssociation()},onCloseAssociation:function(){var a=this;if(a.winAssociation){a.winAssociation.close()}},onChangeType:function(d,b){console.log('onChangeType(%o)',b);var c=this,a=c.lookup('fldDatabase');console.log(a);if(b.type==='csv'){a.setVisible(!0)}else {}}},0,0,0,0,['controller.database'],0,[Target.view.catalog,'DatabaseController'],0);Ext.cmd.derive('Target.view.catalog.DatabaseForm',Ext.form.Panel,{title:'Database',controller:'database',viewModel:{stores:{productclass:{type:'product_class',autoLoad:!0,filters:[{property:'pgr_name',value:'targets'}]},releases:{type:'releases',autoLoad:!0}}},config:{enableFolder:!1,enablePublic:!1},initComponent:function(){var a=this;try{a.enableFolder=Settings.PRODUCT_REGISTER_FOLDERS}catch(b){console.warn('Setting PRODUCT_REGISTER_FOLDERS not loaded.')}try{a.enablePublic=Settings.PRODUCT_REGISTER_ENABLE_PUBLIC}catch(c){console.warn('Setting PRODUCT_REGISTER_ENABLE_PUBLIC not loaded.')}Ext.apply(this,{bodyPadding:10,submitEmptyText:!1,defaults:{anchor:'100%'},items:[{xtype:'textfield',name:'displayName',fieldLabel:'Name',maxLength:30,regex:/^[a-z0-9-_\s]+$/i,regexText:"Please use only letters and numbers separated by spaces ' ', minus sign '-' or underscore '_'."},{xtype:'combobox',name:'classname',fieldLabel:'Folder',valueField:'pcl_name',displayField:'pcl_display_name',allowBlank:!1,editable:!1,bind:{store:'{productclass}'},value:'objects',hidden:!a.enableFolder},{xtype:'combobox',name:'release',fieldLabel:'Release',displayField:'rls_display_name',valueField:'rls_name',bind:{store:'{releases}'}},{xtype:'textfield',name:'database',fieldLabel:'Database',maxLength:30,value:'dessci',readOnly:!0},{xtype:'textfield',name:'tablename',fieldLabel:'Table name',maxLength:61,emptyText:'schema.table',regex:/[/\S+/]+[\\.][/\S+/]+/gi,regexText:'Please use schema.table',allowBlank:!1},{xtype:'checkbox',boxLabel:'Public',name:'isPublic',checked:!1,hidden:!a.enablePublic},{xtype:'textareafield',name:'description',fieldLabel:'Description'}],buttons:['->',{xtype:'button',text:'Cancel',iconCls:'x-fa fa-close',handler:'onCancelAddCatalog'},{xtype:'button',text:'Submit',iconCls:'x-fa fa-check',ui:'soft-green',handler:'addCatalog'}]});Ext.form.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-catalog-database-form'],['component','box','container','panel','form','targets-catalog-database-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'form':!0,'targets-catalog-database-form':!0},['widget.targets-catalog-database-form'],0,[Target.view.catalog,'DatabaseForm'],0);Ext.cmd.derive('Target.view.catalog.RegisterWindow',Ext.window.Window,{title:'Add Target List',modal:!0,closeAction:'destroy',layout:'fit',config:{enableRegisterDB:!1},initComponent:function(){var a=this;try{a.enableRegisterDB=Settings.PRODUCT_REGISTER_DB_INTERFACE}catch(b){console.warn('Setting PRODUCT_REGISTER_DB_INTERFACE not loaded.')}Ext.apply(this,{items:[{xtype:'tabpanel',items:[{xtype:'targets-catalog-csv-form',listeners:{scope:a,newproduct:function(b){a.fireEvent('newproduct',b);a.close()}}},{xtype:'targets-catalog-database-form',listeners:{scope:a,newproduct:function(b){a.fireEvent('newproduct',b);a.close()}},disabled:!a.getEnableRegisterDB()}]}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)}},0,['targets-catalog-register-window'],['component','box','container','panel','window','targets-catalog-register-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'targets-catalog-register-window':!0},['widget.targets-catalog-register-window'],0,[Target.view.catalog,'RegisterWindow'],0);Ext.cmd.derive('Target.view.catalog.CatalogController',Ext.app.ViewController,{winAddCatalog:null,onAddCatalog:function(){var a=this;if(a.winAddCatalog!==null){a.winAddCatalog.destroy();a.winAddCatalog=null}a.winAddCatalog=Ext.create('Target.view.catalog.RegisterWindow',{width:400,height:550,listeners:{scope:a,newproduct:'onAddedProduct'}});a.winAddCatalog.show()},reloadCatalogs:function(){var b=this,c=b.getViewModel(),a=c.getStore('catalogs');a.load()},onAddedProduct:function(b){var a=this;a.reloadCatalogs();hash='cv/'+b;a.redirectTo(hash)},onRemoveCatalog:function(a){Ext.MessageBox.confirm('','The catalog will be removed. Do you want continue?',this.removeCatalog,this)},removeCatalog:function(f){var g=this,d=g.getView(),b=this.getViewModel(),c=b.getStore('products'),e=b.getStore('catalogs'),a=b.get('selectedCatalog');Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - delete_catalog');if(f==='no'){return !1}if(a.get('id')){d.setLoading(!0);c.addFilter([{property:'id',value:a.get('id')}]);c.load({callback:function(){var b=this.first();if(b&&b.get('id')==a.get('id')){this.remove(b);this.sync({callback:function(){e.load();d.setLoading(!1)}})}}})}},onStarredCatalog:function(){var e=this,c=e.getView(),a=c.getSelectedCatalog(),d,b;if(a&&Number.isInteger(a.get('id'))){c.setLoading(!0);b=c.getStore().findNode('id',a.get('id'));if(a.get('bookmark')>0&&a.get('starred')===!0){d=Ext.create('Target.model.Bookmarked',{'id':a.get('bookmark')});d.erase({callback:function(e,d,a){if(a){b.set('bookmark',null);b.set('iconCls','no-icon');c.setLoading(!1)}}});Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - delete_bookmark')}else {d=Ext.create('Target.model.Bookmarked',{'product':a.get('id'),'is_starred':!0});d.save({callback:function(f,a,d){if(d){var e=Ext.decode(a.getResponse().responseText);b.set('bookmark',e.id);b.set('iconCls','x-fa fa-star color-icon-starred');c.setLoading(!1)}}});Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - add_bookmark')}}},filterByStarred:function(b){var d=this,e=d.getViewModel(),a=e.getStore('catalogs'),c=a.filters.items.filter(function(a){return a._id==='bookmark'});if(c.length===0){b.setText('Show all');a.addFilter({property:'bookmark',value:!0})}else {b.setText('Show only bookmarked');a.removeFilter('bookmark')}a.load()}},0,0,0,0,['controller.catalog'],0,[Target.view.catalog,'CatalogController'],0);Ext.cmd.derive('Target.view.catalog.CatalogModel',Ext.app.ViewModel,{stores:{catalogs:{type:'catalogs-tree'},products:{type:'products'},bookmarks:{type:'bookmarks',autoLoad:!1}},links:{selectedCatalog:{type:'Target.model.Catalog',create:!0}}},0,0,0,0,['viewmodel.catalog'],0,[Target.view.catalog,'CatalogModel'],0);Ext.cmd.derive('Target.view.catalog.Tree',Ext.tree.Panel,{controller:'catalog',viewModel:'catalog',rootVisible:!1,useArrows:!0,selModel:{mode:'SINGLE'},layout:'fit',plugins:'gridfilters',bind:{store:'{catalogs}',selection:'{selectedCatalog}'},config:{bsfilters:null},emptyText:'No data to display.',initComponent:function(){var a=this;Ext.apply(this,{columns:[{xtype:'treecolumn',text:'Name',flex:2,sortable:!0,dataIndex:'text',renderer:a.getTooltipName},{text:'Owner',flex:1,dataIndex:'owner',sortable:!0,filter:{type:'string'}},{text:'Release',flex:1,dataIndex:'release_display_name',sortable:!0,filter:{type:'string'}},{xtype:'datecolumn',text:'Date',dataIndex:'prd_date',width:150,sortable:!0,format:'Y-m-d H:m:s',filter:{type:'date'}},{text:'Rows',dataIndex:'ctl_num_objects',sortable:!0,renderer:function(b,c,a){if(a.data.leaf){return b}}},{text:'Cols',dataIndex:'ctl_num_columns',sortable:!0,renderer:function(a,c,b){if(b.data.leaf&&a>0){return a}}}],listeners:{load:function(a){},rowdblclick:function(c,b){a.viewRecord(b)}},tbar:[{xtype:'splitbutton',tooltip:'Bookmark This Catalog',iconCls:'x-fa fa-bookmark',handler:'onStarredCatalog',width:60,enableToggle:!0,bind:{pressed:'{selectedCatalog.starred}'},menu:[{text:'Show only bookmarked',handler:'filterByStarred'}]},{xtype:'button',iconCls:'x-fa fa-plus',ui:'soft-green',tooltip:'Add a new list of targets.',handler:'onAddCatalog'},{tooltip:'Remove Target List',iconCls:'x-fa fa-trash',ui:'soft-red',handler:'onRemoveCatalog',disabled:!0,bind:{disabled:'{!selectedCatalog.editable}'}},{xtype:'textfield',reference:'searchByName',emptyText:'Search by name',width:250,triggers:{clear:{cls:'x-form-clear-trigger',scope:this,handler:this.cancelFilter,hidden:!0},search:{cls:' x-form-search-trigger'}},listeners:{scope:this,change:a.filterByname,buffer:500}},{tooltip:'Refresh and Clear filters',iconCls:'x-fa fa-refresh',scope:this,handler:a.refreshAndClear}]});Ext.tree.Panel.prototype.initComponent.apply(this,arguments)},selecteNodeTree:function(a){this.getSelectionModel().select(a)},getSelectedCatalog:function(){var a=this.getView().getChecked();if(a.length>0){return a[0]}else {var b=this.getSelectionModel();a=b.getSelection();return a[0]}},loadCatalogs:function(e){var c=this,f=c.getViewModel(),d=f.getStore('catalogs'),a=[],b=[];a.push({property:'group',value:e.toLowerCase()});b=Ext.clone(a);c.setBsfilters(b);d.filter(a)},onClickView:function(){var a=this,b=a.getSelectedCatalog();a.viewRecord(b)},onActionView:function(f,d,c,b,e,a){this.viewRecord(a)},viewRecord:function(a){if(a.get('tableExist')==!0&&a.get('leaf')==!0){this.fireEvent('selectcatalog',a,this)}else {if(a.get('leaf')==!0){Ext.MessageBox.alert('Warning','The table for this product is not currently available or does not exist')}}},filterByname:function(){var a=this,e=a.lookup('searchByName'),b=a.getStore(),c=e.getValue(),d=[],f;if(c.length>0){e.getTrigger('clear').show();if(b.isLoading()){console.log('Store is Loading: %o',b.isLoading());var g=b.getProxy();g.abort();console.log('Store proxy abort')}f={property:'search',value:c};d.push(f);a.filterCatalogs(d)}else {a.cancelFilter()}},filterCatalogs:function(a){var c=this,g=c.getViewModel(),b=g.getStore('catalogs'),f=c.getBsfilters(),e,d=Ext.clone(f);c.filters.clearFilters();b.clearFilter(!0);b.removeAll();if(a&&Array.isArray(a)){for(index in a){e=a[index];d.push(e)}}b.filter(d)},cancelFilter:function(){var b=this,a=b.lookup('searchByName');a.reset();a.getTrigger('clear').hide();b.filterCatalogs()},refreshAndClear:function(){var a=this;a.cancelFilter()},getTooltipName:function(d,e,a){var f=this,c,b;c=new Ext.XTemplate('
    ','','

    Description:{description}

    ','
    ','','

    Proccess: {epr_original_id}

    ','
    ',"",'

    Size: {tbl_size}

    ','
    ',"",'
    Warning: ','The table for this product is not currently available or does not exist.','
    ','
    ');b=c.apply(a.data);if(a.get('description')!==''||a.get('epr_original_id')!==''){if(a.get('leaf')){e.tdAttr='data-qtip="'+b+'"'}}return d}},0,['targets-catalog-tree'],['component','box','container','panel','tablepanel','treepanel','targets-catalog-tree'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'treepanel':!0,'targets-catalog-tree':!0},['widget.targets-catalog-tree'],0,[Target.view.catalog,'Tree'],0);Ext.cmd.derive('Target.view.home.HomeController',Ext.app.ViewController,{listen:{component:{'home':{loadpanel:'onLoadPanel'},'targets-catalog-tree':{selectcatalog:'onSelectCatalog'}}},onLoadPanel:function(b){var c=this,a=b.getCatalogTree();a.loadCatalogs('targets')},onUpdatePanel:function(){},onSelectCatalog:function(c,e){var a=this,d=a.getView(),f=d.getViewModel(),b=c.get('id');hash='cv/'+b;a.redirectTo(hash)}},0,0,0,0,['controller.home'],0,[Target.view.home,'HomeController'],0);Ext.cmd.derive('Target.view.home.HomeModel',Ext.app.ViewModel,{data:{release:0,field:0}},0,0,0,0,['viewmodel.home'],0,[Target.view.home,'HomeModel'],0);Ext.cmd.derive('Target.view.home.Home',Ext.panel.Panel,{controller:'home',viewModel:'home',layout:'fit',initComponent:function(){var a=this;Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - initHome');Ext.apply(this,{items:[{xtype:'targets-catalog-tree',reference:'CatalogTree'}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},loadPanel:function(b){var a=this,c=a.getReferences(),d=a.getViewModel();this.fireEvent('loadpanel',this)},updatePanel:function(a){},getCatalogTree:function(){var c=this,a=c.getReferences(),b=a.CatalogTree;return b}},0,['home'],['component','box','container','panel','home'],{'component':!0,'box':!0,'container':!0,'panel':!0,'home':!0},['widget.home'],0,[Target.view.home,'Home'],0);Ext.cmd.derive('Target.view.wizard.WizardController',Ext.app.ViewController,{listen:{component:{'targets-columns':{activate:'onActiveColumns',finish:'finishWizard'},'targets-association':{activate:'onActiveAssociation',finish:'finishWizard',cancel:'finishWizard'},'targets-system-members':{activate:'onActiveSystemMembers',finish:'finishWizard'},'targets-permission':{activate:'onActivePermission',finish:'finishWizard'}}},finishWizard:function(){var a=this;a.getView().fireEvent('finish',a)},onActiveColumns:function(){var a=this,e=a.getViewModel(),b=e.get('currentCatalog'),d=a.getView(),c=d.down('targets-columns');c.setCurrentCatalog(b)},onActiveAssociation:function(){var a=this,e=a.getViewModel(),b=e.get('currentCatalog'),d=a.getView(),c=d.down('targets-association');c.setCatalog(b)},onActiveSystemMembers:function(){var a=this,e=a.getViewModel(),b=e.get('currentCatalog'),d=a.getView(),c=d.down('targets-system-members');c.setCurrentCatalog(b)},onActivePermission:function(){var a=this,e=a.getViewModel(),b=e.get('currentCatalog'),d=a.getView(),c=d.down('targets-permission');c.setCurrentCatalog(b)}},0,0,0,0,['controller.wizard'],0,[Target.view.wizard,'WizardController'],0);Ext.cmd.derive('Target.view.wizard.WizardModel',Ext.app.ViewModel,{stores:{productcontent:{type:'product-content',storeId:'ProductContent'},productassociation:{type:'product-association',storeId:'ProductAssociation'}},links:{currentCatalog:{type:'Target.model.Catalog',create:!0},currentSetting:{type:'Target.model.CurrentSetting',create:!0}},data:{product:null}},0,0,0,0,['viewmodel.wizard'],0,[Target.view.wizard,'WizardModel'],0);Ext.cmd.derive('Target.view.settings.SettingsController',Ext.app.ViewController,{addSetting:function(){var c=this,d=c.getView(),b=c.lookup('settingForm').getForm(),a;if(b.isValid()){b.updateRecord();a=b.getRecord();a.save({callback:function(f,b,e){newRecord=JSON.parse(b.getResponse().responseText);a.set(newRecord);if(e){d.fireEvent('newsetting',a,c);d.close()}}})}},deleteSetting:function(){var a=this,c=a.getView(),d=a.lookup('settingForm').getForm(),b;b=d.getRecord();b.erase({callback:function(e,d,b){if(b){c.fireEvent('deletesetting',a);c.close()}}})},cancelSetting:function(){var a=this;a.lookupReference('settingForm').getForm().reset();a.getView().close()}},0,0,0,0,['controller.settings'],0,[Target.view.settings,'SettingsController'],0);Ext.cmd.derive('Target.view.settings.SettingWindow',Ext.window.Window,{controller:'settings',viewModel:{data:{isEdit:!1}},title:'Create or edit a setting',width:300,height:350,layout:'fit',modal:!0,closeAction:'destroy',config:{record:null},items:[{xtype:'form',reference:'settingForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'textfield',fieldLabel:'Name',name:'cst_display_name',itemId:'cst_display_name',allowBlank:!1,minLength:3,maxLength:128},{xtype:'checkbox',boxLabel:'Public',name:'cst_is_public',reference:'isPublic',listeners:{change:function(d,a){var c=this.up('form'),b=c.down('#isEditable');if(a===!1){b.setValue(a)}}}},{xtype:'checkbox',boxLabel:'Alow edition',name:'cst_is_editable',itemId:'isEditable',bind:{disabled:'{!isPublic.checked}'}},{xtype:'textareafield',fieldLabel:'Description',name:'cst_description',labelAlign:'top',flex:1,margin:'0',allowBlank:!0,maxLength:1024}]}],buttons:[{text:'Delete',itemId:'btnDeleteSetting',ui:'soft-red',handler:'deleteSetting',bind:{hidden:'{!isEdit}'}},'->',{text:'Cancel',handler:'cancelSetting'},{text:'Save',ui:'soft-green',handler:'addSetting'}],setRecord:function(a){var b=this,c=b.getViewModel(),d=b.lookup('settingForm');b.record=a;d.loadRecord(a);if(a.get('id')>0){c.set('isEdit',!0)}else {c.set('isEdit',!1)}}},0,0,['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},0,0,[Target.view.settings,'SettingWindow'],0);Ext.cmd.derive('Target.view.settings.ColumnsController',Ext.app.ViewController,{listen:{component:{'targets-columns':{changecatalog:'onChangeCatalog'}},store:{'#Available':{load:'checkAvailable'},'#Settings':{load:'onLoadSettings'}}},winSetting:null,onChangeCatalog:function(b){var c=this,d=c.getViewModel(),a=d.get('settings');a.addFilter([{property:'cst_product',value:b.get('id')}]);a.load()},onLoadSettings:function(f){var a=this,d=a.getViewModel(),e=d.get('currentCatalog'),b=d.getStore('currentSettings'),c=a.lookup('btnEditSetting');if(f.count()>0){c.enable();b.addFilter([{property:'cst_product',value:e.get('id')}]);b.load({scope:a,callback:a.onLoadCurrentSettings})}else {c.disable()}},onLoadCurrentSettings:function(){var e=this,a=e.getViewModel(),f=a.getStore('settings'),c=a.getStore('currentSettings'),g=e.lookup('cmbSetting'),b,d;if(c.count()>0){b=c.first();a.set('currentSetting',b);d=f.getById(b.get('cst_setting'));a.set('selectedSetting',d)}},onSelectSetting:function(e,c){var b=this,d=b.getViewModel(),a=d.get('currentSetting');if(c.get('id')>0){if(a&&a.get('id')>0){if(c.get('id')!=a.get('cst_setting')){a.erase({callback:function(f,d,a){if(a){b.setNewCurrentSetting()}}})}else {b.loadGrids()}}else {b.setNewCurrentSetting()}}},setNewCurrentSetting:function(){var c=this,a=c.getViewModel(),d=a.get('selectedSetting'),e=a.get('currentCatalog'),b;b=Ext.create('Target.model.CurrentSetting',{cst_product:e.get('id'),cst_setting:d.get('id')});b.save({callback:function(b,d,e){newRecord=JSON.parse(d.getResponse().responseText);b.set(newRecord);a.set('currentSetting',b);c.loadGrids()}})},loadGrids:function(){var b=this,a=b.getViewModel(),d=a.get('selectedSetting'),f=a.get('currentCatalog'),e=a.getStore('auxAvailableContents'),c=a.getStore('auxContentSettings');c.addFilter([{'property':'pcs_setting',value:d.get('id')}]);e.addFilter([{'property':'pcn_product_id',value:f.get('id')},{'property':'pca_setting',value:d.get('id')}]);e.load();c.load({callback:function(){b.loadAvailable()}});b.loadContentSettings()},loadAvailable:function(){var d=this,c=d.getViewModel(),a=c.getStore('availableContents'),b=c.get('currentSetting');a.clearFilter();a.addFilter([{'property':'pcn_product_id',value:b.get('cst_product')},{'property':'pca_setting',value:b.get('cst_setting')}]);a.load()},loadContentSettings:function(){var d=this,b=d.getViewModel(),c=b.get('selectedSetting'),a=b.getStore('contentSettings');a.addFilter([{'property':'pcs_setting',value:c.get('id')}]);a.load()},checkAvailable:function(){var e=this,c=e.getViewModel(),a=c.getStore('availableContents'),d=c.getStore('auxContentSettings'),b=[];a.each(function(a){if(d.find('display_name',a.get('display_name'))>-1){b.push(a)}},this);a.remove(b)},onDropGrid1:function(f,d){var a=this,e=a.getViewModel(),c=a.lookupReference('grid1'),b=e.getStore('auxContentSettings');c.setLoading(!0);Ext.each(d.records,function(a){b.remove(a)},a);b.sync({callback:function(){c.setLoading(!1);a.loadContentSettings();a.loadAvailable()}})},onDropGrid2:function(e,d){var b=this,c=b.getViewModel(),a=c.get('currentSetting');if(a&&a.get('id')>0){b.addColumnToCurrentSetting()}},addColumnToCurrentSetting:function(){var d=this,e=d.getViewModel(),h=e.get('currentSetting'),f=d.lookupReference('grid2'),a=e.getStore('auxContentSettings'),g=e.getStore('contentSettings'),b,c,i;f.setLoading(!0);g.each(function(d,e){c=a.find('display_name',d.get('display_name'));if(c>-1){b=a.getAt(c);b.set('pcs_order',e)}else {b=Ext.create('Target.model.ContentSetting',{'display_name':d.get('display_name'),'pcs_content':d.get('id'),'pcs_setting':h.get('cst_setting'),'pcs_is_visible':!0,'pcs_order':e})}a.add(b)});a.sync({callback:function(){f.setLoading(!1);a.load({callback:function(){d.loadContentSettings()}})}})},onSearch:function(a){var b=this,d=b.getViewModel(),c=d.getStore('availableContents');if(a!==''){c.filter([{property:'display_name',value:a}])}else {b.onSearchCancel()}},onSearchCancel:function(){this.loadAvailable()},onSearchDisplayed:function(e){var d=this,f=d.getViewModel(),a=f.getStore('contentSettings'),c=[],b;a.load({callback:function(){a.each(function(a){b=a.get('display_name').toLowerCase();if(b.indexOf(e.toLowerCase())===-1){c.push(a)}},d);a.remove(c)}})},onSearchCancelDisplayed:function(){this.loadContentSettings()},newSetting:function(){var b=this,d=b.getViewModel(),c=d.get('currentCatalog'),a;a=Ext.create('Target.model.Setting',{cst_product:c.get('id')});b.showSettingWindow(a)},editSetting:function(){var a=this,c=a.getViewModel(),b=c.get('selectedSetting');a.showSettingWindow(b)},showSettingWindow:function(b){var a=this,c=a.getViewModel(),d=c.get('currentCatalog'),f,e;if(a.winSetting){a.winSetting.close();a.winSetting=null}a.winSetting=Ext.create('Target.view.settings.SettingWindow',{listeners:{scope:a,'newsetting':'onAddSetting','deletesetting':'onDeleteSetting'}});a.winSetting.setRecord(b);a.winSetting.show()},onAddSetting:function(b){var d=this,a=d.getViewModel(),c=a.getStore('settings');a.set('selectedSetting',b);c.load()},onDeleteSetting:function(){var d=this,a=d.getViewModel(),c=a.getStore('settings'),b=a.get('currentCatalog');model=Ext.create('Target.model.Setting',{cst_product:b.get('id')});a.set('selectedSetting',model);a.set('currentSetting',null);c.load()}},0,0,0,0,['controller.columns'],0,[Target.view.settings,'ColumnsController'],0);Ext.cmd.derive('Target.view.settings.ColumnsModel',Ext.app.ViewModel,{links:{selectedSetting:{type:'Target.model.Setting',create:!0},currentSetting:{type:'Target.model.CurrentSetting',create:!0},currentCatalog:{type:'Target.model.Catalog',create:!0}},stores:{settings:{type:'settings',storeId:'Settings'},currentSettings:{type:'currentsettings',remoteFilter:!0},availableContents:{type:'product-display-contents',autoLoad:!1,storeId:'Available'},auxAvailableContents:{type:'product-display-contents',autoLoad:!1},contentSettings:{type:'content-settings',autoLoad:!1},auxContentSettings:{type:'content-settings',autoLoad:!1}}},0,0,0,0,['viewmodel.columns'],0,[Target.view.settings,'ColumnsModel'],0);Ext.cmd.derive('Target.view.settings.Columns',Ext.panel.Panel,{controller:'columns',viewModel:'columns',config:{currentSetting:null},initComponent:function(){var a=this;Ext.apply(this,{layout:{type:'vbox',align:'stretch'},items:[{xtype:'panel',height:80,bodyPadding:10,html:['

    Select which columns you want to display.
    Drag and drop from the left panel into the right. You can also choose the order of the parameters.
    Use the search form to ease your choice.

    ']},{xtype:'panel',height:60,bodyPadding:5,items:[{xtype:'fieldcontainer',layout:'hbox',fieldLabel:'Choose or create a Setting',labelAlign:'top',items:[{xtype:'combobox',itemId:'cmbSetting',reference:'cmbSetting',publishes:'id',displayField:'cst_display_name',bind:{store:'{settings}',selection:'{selectedSetting}'},listeners:{select:'onSelectSetting'},minChars:0,queryMode:'local',editable:!1,labelStyle:'font-weight:bold',readOnly:!1,width:300},{xtype:'button',iconCls:'x-fa fa-plus',handler:'newSetting',margin:'0 0 0 5',tooltip:'Add New Setting'},{xtype:'button',iconCls:'x-fa fa-pencil',handler:'editSetting',tooltip:'Edit Selected Setting',reference:'btnEditSetting',bind:{disabled:'{!selectedSetting.editable}'}}]}]},{xtype:'panel',flex:1,layout:{type:'hbox',align:'stretch'},bind:{disabled:'{!cmbSetting.selection}'},items:[{xtype:'grid',reference:'grid1',flex:1,multiSelect:!0,margin:'0 5 0 0',bind:{store:'{availableContents}'},selType:'checkboxmodel',viewConfig:{plugins:{ptype:'gridviewdragdrop',containerScroll:!0,ddGroup:'columns'},listeners:{drop:'onDropGrid1'}},columns:[{text:'Available Properties',dataIndex:'display_name',flex:1,renderer:function(b,c,a){if(a.get('unit')!==null&&a.get('unit')!==''){return b+' ('+a.get('unit')+')'}else {return b}}}],tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearch','cancel':'onSearchCancel'},flex:1}]},{xtype:'gridpanel',reference:'grid2',flex:1,scrollable:!0,split:!0,bind:{store:'{contentSettings}'},columns:[{text:'Displayed Properties',dataIndex:'display_name',flex:1,renderer:function(b,c,a){if(a.get('unit')!==null&&a.get('unit')!==''){return b+' ('+a.get('unit')+')'}else {return b}}}],viewConfig:{stripeRows:!1,markDirty:!1,plugins:{ptype:'gridviewdragdrop',containerScroll:!0,ddGroup:'columns'},listeners:{drop:'onDropGrid2'}},tbar:[{xtype:'common-searchfield',minSearch:1,listeners:{'search':'onSearchDisplayed','cancel':'onSearchCancelDisplayed'},flex:1}]}]}],buttons:[{text:'Cancel',scope:a,handler:function(){this.fireEvent('finish',this)}},{text:'Ok',ui:'soft-green',scope:a,handler:function(){this.fireEvent('finish',this)}}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(a){if(a&&a.get('id')>0){this.currentCatalog=a;this.getViewModel().set('currentCatalog',a);this.fireEvent('changecatalog',a)}},setCurrentSetting:function(a){this.currentSetting=a;this.getViewModel().set('currentSetting',a)}},0,['targets-columns'],['component','box','container','panel','targets-columns'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-columns':!0},['widget.targets-columns'],0,[Target.view.settings,'Columns'],0);Ext.cmd.derive('Target.view.settings.PermissionController',Ext.app.ViewController,{listen:{component:{'targets-permission':{changecatalog:'onChangeCatalog'}},store:{'#Users':{load:'onLoadUsers'},'#Workgroups':{load:'onLoadWorkgroups'},'#Users2':{load:'onLoadUsers2'},'#WorkgroupUsers':{load:'onLoadWorkgroupsUsers'}}},onChangeCatalog:function(a){var b=this,c=b.getViewModel(),e=c.getStore('permissionUsers'),d=c.getStore('permissionWorkgroups'),g=b.getReferences(),f=g.chkIsPlublic;c.set('currentCatalog',a);if(a.get('is_owner')){e.addFilter([{'property':'prm_product',value:a.get('id')}]);e.load();d.addFilter([{'property':'product',value:a.get('id')}]);d.load();if(a.get('prd_is_public')===!0){f.setValue(!0)}else {f.setValue(!1)}}b.disablePermissions()},disablePermissions:function(){var a=this,e=a.getViewModel().get('currentCatalog'),d=a.lookupReference('permissionUsersGrid'),b=a.lookupReference('permissionWorkgroupsGrid'),c=a.lookupReference('chkIsPlublic');if(e.get('is_owner')){c.enable();d.enable();b.enable()}else {c.disable();d.disable();b.disable()}},onChangeIsPublic:function(e,b){var a=this,d=a.getViewModel(),c=d.get('currentCatalog');if(b!=c.get('prd_is_public')){a.changePublic(b)}a.enableDisablePermissions()},enableDisablePermissions:function(){var d=this,f=d.getViewModel(),e=f.get('currentCatalog'),c=d.getReferences(),b=c.permissionUsersGrid,a=c.permissionWorkgroupsGrid;if(e.get('prd_is_public')){b.disable();a.disable()}else {b.enable();a.enable()}},changePublic:function(b){var d=this,e=d.getViewModel(),a=e.get('currentCatalog'),c;c={prd_is_public:b};Ext.Ajax.request({cors:!0,method:'PATCH',url:'/dri/api/product/'+a.get('id')+'/',success:function(){a.set('prd_is_public',b);d.enableDisablePermissions()},failure:function(a){Ext.MessageBox.show({title:'Server Side Failure',msg:a.status+' '+a.statusText,buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})},headers:{'Accept':'application/json','Application':'application/json','Content-Type':'application/json','X-CSRFToken':Ext.util.Cookies.get('csrftoken')},params:Ext.util.JSON.encode(c)})},onLoadUsers:function(a){var c=this,d=c.getViewModel(),b=d.getStore('permissionUsers');b.each(function(b){a.remove(a.getById(b.get('prm_user')))},this)},onAddUser:function(){var b=this,a;a=b.lookupReference('winPermissionUser');if(!a){a=Ext.create('Target.view.settings.PermissionUserWindow',{});b.getView().add(a)}a.show()},onCancelPermissionUser:function(){var a=this;a.lookupReference('permissionUserForm').getForm().reset();a.lookupReference('winPermissionUser').close()},onAddPermissionUser:function(){var c=this,h=c.getView(),a=c.getViewModel(),d=a.getStore('permissions'),j=a.get('currentCatalog'),f=a.getStore('users'),i=a.getStore('permissionUsers'),g=c.getReferences(),l=g.cmbPermissionUser,k=g.permissionUserForm,b=l.getValue(),e;h.setLoading(!0);if(b){e=Ext.create('Target.model.Permission',{prm_product:j.get('id'),prm_user:b,prm_workgroup:null});d.add(e);d.sync({callback:function(){i.load();f.remove(f.getById(b));k.reset();h.setLoading(!1)}})}},onRemoveUser:function(){var a=this;Ext.MessageBox.confirm('Confirm','Are you sure you want to remove this user?',this.onRemovePermissionUser,this)},onRemovePermissionUser:function(){var a=this,d=a.getView(),e=a.getViewModel(),b=e.getStore('permissions'),f=e.get('currentCatalog'),h=a.getReferences(),g=h.permissionUsersGrid,c=g.selection;if(c){d.setLoading(!0);b.addFilter([{'property':'prm_product',value:f.get('id')},{'property':'prm_user',value:c.get('prm_user')}]);b.load({callback:function(){if(this.count()===1){this.remove(this.first());this.sync({callback:function(){d.setLoading(!1);a.deleteSucces()}})}}})}},deleteSucces:function(){var d=this,b=d.getViewModel(),a=b.getStore('permissions'),c=b.getStore('permissionUsers');c.load();a.clearFilter(!0);a.removeAll()},onLoadWorkgroups:function(a){var c=this,d=c.getViewModel(),b=d.getStore('permissionWorkgroups');b.each(function(b){a.remove(a.getById(b.get('wgu_workgroup')))},this)},onAddWorkgroup:function(){var b=this,a;a=b.lookupReference('winPermissionWorkgroup');if(!a){a=Ext.create('Target.view.settings.PermissionWorkgroupWindow',{});b.getView().add(a)}a.show()},onCancelPermissionWorkgroup:function(){var a=this;a.lookupReference('permissionWorkgroupForm').getForm().reset();a.lookupReference('winPermissionWorkgroup').close()},onAddPermissionWorkgroup:function(){var b=this,h=b.getView(),a=b.getViewModel(),c=a.getStore('permissions'),j=a.get('currentCatalog'),d=a.getStore('workgroups'),i=a.getStore('permissionWorkgroups'),g=b.getReferences(),l=g.cmbPermissionWorkgroup,k=g.permissionWorkgroupForm,e=l.getValue(),f;h.setLoading(!0);f=Ext.create('Target.model.Permission',{prm_product:j.get('id'),prm_user:null,prm_workgroup:e});c.add(f);c.sync({callback:function(){i.load();d.remove(d.getById(e));k.reset();h.setLoading(!1)}})},onRemoveWorkgroup:function(){var a=this;Ext.MessageBox.confirm('Confirm','Are you sure you want to remove this Workgroup?',a.onRemovePermissionWorkgroup,a)},onRemovePermissionWorkgroup:function(){var a=this,d=a.getView(),e=a.getViewModel(),b=e.getStore('permissions'),f=e.get('currentCatalog'),h=a.getReferences(),g=h.permissionWorkgroupsGrid,c=g.selection;if(c){d.setLoading(!0);b.addFilter([{'property':'prm_product',value:f.get('id')},{'property':'prm_workgroup',value:c.get('wgu_workgroup')}]);b.load({callback:function(){if(this.count()===1){this.remove(this.first());this.sync({callback:function(){d.setLoading(!1);a.deleteWorkgroupSucces()}})}}})}},deleteWorkgroupSucces:function(){var d=this,b=d.getViewModel(),a=b.getStore('permissions'),c=b.getStore('permissionWorkgroups');c.load();a.clearFilter(!0);a.removeAll()},onCreateWorkgroup:function(){var b=this,a;a=Ext.create('Target.view.settings.AddWorkgroupWindow',{});b.getView().add(a);a.show()},onCancelCreateWorkgroup:function(){var a=this,b=a.getViewModel(),e=b.getStore('workgroupUsers'),c=b.getStore('workgroups'),d=b.get('newWorkgroup');if(d.get('id')>0&&e.count()===0){Ext.MessageBox.alert('','This workgroup has no associated users, it will be removed.',function(){c.remove(d);c.sync({callback:function(){a.closeWindowAddWorkgroup()}})},this)}else {a.closeWindowAddWorkgroup()}},closeWindowAddWorkgroup:function(){var a=this;a.lookupReference('createWorkgroupForm').getForm().reset();a.lookupReference('winAddWorkgroup').close()},onInsertWorkgroup:function(){var c=this,g=c.getView(),h=c.getViewModel(),b=h.getStore('workgroups'),i=c.lookupReference('txtWorkgroupName'),a=i.getValue(),f=!0,e,d;g.setLoading(!0);if(a!==null&&a!==''){b.each(function(b){if(a===b.get('wgp_workgroup')){f=!1}},this);if(f){e=Ext.create('Target.model.Workgroup',{wgp_workgroup:a});b.add(e);b.sync({callback:function(e,f,i){b.load({callback:function(){this.each(function(b){if(a===b.get('wgp_workgroup')){d=b;h.set('newWorkgroup',d);c.onSuccesCreateWorkgroup(d);g.setLoading(!1)}},this)}})}})}else {Ext.MessageBox.alert('','Workgroup already exists')}}},onSuccesCreateWorkgroup:function(g){var c=this,d=c.getViewModel(),h=d.get('newWorkgroup'),a=d.getStore('workgroupUsers'),b=c.getReferences(),e=b.cmbAddWorkgroupUser,f=b.btnCreateWorkgroup;a.addFilter([{'property':'wgu_workgroup',value:g.get('id')}]);a.load();e.enable();f.disable()},onAddUserInWorkgroup:function(){var c=this,g=c.getView(),d=c.getViewModel(),i=d.get('newWorkgroup'),a=d.getStore('workgroupUsers'),f=d.getStore('users2'),j=c.getReferences(),h=j.cmbAddWorkgroupUser,b=h.getValue(),e;g.setLoading(!0);if(b){e=Ext.create('Target.model.WorkgroupUser',{wgu_workgroup:i.get('id'),wgu_user:b});a.add(e);a.sync({callback:function(){a.load();f.remove(f.getById(b));h.setValue(null);g.setLoading(!1)}})}},onRemoveUserInWorkgroup:function(){console.log('onRemoveUserInWorkgroup');var b=this,d=b.getView(),e=b.getViewModel(),a=e.getStore('workgroupUsers'),f=e.getStore('users2'),h=b.getReferences(),g=h.WorkgroupUsersGrid,c=g.selection;d.setLoading(!0);if(c){a.remove(c);a.sync({callback:function(){a.load();f.load();d.setLoading(!1)}})}},onLoadUsers2:function(a){var c=this,d=c.getViewModel(),b=d.getStore('workgroupUsers');b.each(function(b){a.remove(a.getById(b.get('wgu_user')))},this)},onLoadWorkgroupsUsers:function(b){var c=this,a=c.lookupReference('btnCompleteInsertWorkgroup');if(b.count()===0){a.disable()}else {a.enable()}},onCompleteInsertWorkgroup:function(){var a=this,b=a.getViewModel(),c=b.getStore('workgroupUsers'),d=b.get('newWorkgroup');if(d.get('id')>0&&c.count()===0){Ext.MessageBox.alert('','No users added to workgroup')}else {a.closeWindowAddWorkgroup()}}},0,0,0,0,['controller.permission'],0,[Target.view.settings,'PermissionController'],0);Ext.cmd.derive('Target.view.settings.PermissionModel',Ext.app.ViewModel,{links:{currentCatalog:{type:'Target.model.Catalog',create:!0},newWorkgroup:{type:'Target.model.Workgroup',create:!0}},stores:{permissions:{type:'permissions'},permissionUsers:{type:'permission_users'},permissionWorkgroups:{type:'permission_workgroups'},users:{type:'users_same_group',storeId:'Users'},workgroups:{type:'workgroups',storeId:'Workgroups',autoLoad:!0},workgroupUsers:{type:'workgroup_users',storeId:'WorkgroupUsers'},users2:{type:'users_same_group',storeId:'Users2'}}},0,0,0,0,['viewmodel.permission'],0,[Target.view.settings,'PermissionModel'],0);Ext.cmd.derive('Target.view.settings.PermissionUserWindow',Ext.window.Window,{title:'Add a User',reference:'winPermissionUser',width:300,height:150,layout:'fit',modal:!0,closeAction:'hide',items:[{xtype:'form',reference:'permissionUserForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'combobox',name:'user',fieldLabel:'User',valueField:'id',reference:'cmbPermissionUser',displayField:'username',allowBlank:!1,editable:!1,bind:{store:'{users}'}}]}],buttons:['->',{text:'Cancel',handler:'onCancelPermissionUser'},{text:'Add',ui:'soft-green',handler:'onAddPermissionUser',bind:{disabled:'{!cmbPermissionUser.selection}'}}]},0,0,['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},0,0,[Target.view.settings,'PermissionUserWindow'],0);Ext.cmd.derive('Target.view.settings.PermissionWorkgroupWindow',Ext.window.Window,{title:'Add a Workgroup',reference:'winPermissionWorkgroup',width:300,height:150,layout:'fit',modal:!0,closeAction:'hide',items:[{xtype:'form',reference:'permissionWorkgroupForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'combobox',name:'user',fieldLabel:'Workgroup',valueField:'id',reference:'cmbPermissionWorkgroup',displayField:'wgp_workgroup',allowBlank:!1,editable:!1,flex:1,hideLabel:!0,forceSelection:!0,bind:{store:'{workgroups}'}},{xtype:'button',iconCls:'x-fa fa-plus',ui:'soft-green',tooltip:'Create Workgroup',handler:'onCreateWorkgroup'}]}]}],buttons:['->',{text:'Cancel',handler:'onCancelPermissionWorkgroup'},{text:'Add',ui:'soft-green',handler:'onAddPermissionWorkgroup',bind:{disabled:'{!cmbPermissionWorkgroup.selection}'}}]},0,0,['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},0,0,[Target.view.settings,'PermissionWorkgroupWindow'],0);Ext.cmd.derive('Target.view.settings.AddWorkgroupWindow',Ext.window.Window,{title:'Create a Workgroup',reference:'winAddWorkgroup',width:400,height:450,modal:!0,closeAction:'destroy',items:[{xtype:'form',reference:'createWorkgroupForm',layout:{type:'vbox',align:'stretch'},border:!1,bodyPadding:10,flex:1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelStyle:'font-weight:bold'},items:[{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'textfield',fieldLabel:'Name',labelAlign:'left',name:'wgp_workgroup',allowBlank:!1,maxLength:60,reference:'txtWorkgroupName',labelWidth:70,flex:1},{xtype:'button',text:'Create',ui:'soft-green',handler:'onInsertWorkgroup',reference:'btnCreateWorkgroup'}]},{xtype:'fieldcontainer',layout:'hbox',items:[{xtype:'combobox',name:'user',fieldLabel:'Add Users',labelAlign:'left',labelWidth:70,valueField:'id',reference:'cmbAddWorkgroupUser',displayField:'username',editable:!1,bind:{store:'{users2}'},disabled:!0,flex:1},{xtype:'button',iconCls:'x-fa fa-plus',ui:'soft-green',handler:'onAddUserInWorkgroup',bind:{disabled:'{!cmbAddWorkgroupUser.selection}'}},{xtype:'button',iconCls:'x-fa fa-minus',ui:'soft-red',handler:'onRemoveUserInWorkgroup',bind:{disabled:'{!WorkgroupUsersGrid.selection}'}}]},{xtype:'grid',reference:'WorkgroupUsersGrid',columns:[{text:'Users',dataIndex:'username',flex:1}],bind:{store:'{workgroupUsers}'},flex:1}]}],buttons:['->',{text:'Cancel',handler:'onCancelCreateWorkgroup'},{text:'OK',ui:'soft-green',handler:'onCompleteInsertWorkgroup',reference:'btnCompleteInsertWorkgroup',disabled:!0}]},0,0,['component','box','container','panel','window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0},0,0,[Target.view.settings,'AddWorkgroupWindow'],0);Ext.cmd.derive('Target.view.settings.Permission',Ext.panel.Panel,{controller:'permission',viewModel:'permission',config:{currentCatalog:null},initComponent:function(){var a=this;Ext.apply(this,{layout:{type:'vbox',align:'stretch'},items:[{xtype:'panel',height:80,bodyPadding:10,html:['You can choose which users or workgroups can access this list.
    The list can be public or private in this case only the users selected or who are part of a group can access it.
    You can create workgroups.']},{xtype:'panel',flex:1,layout:{type:'vbox',align:'stretch'},items:[{xtype:'checkbox',boxLabel:'Public',name:'is_public',reference:'chkIsPlublic',listeners:{change:'onChangeIsPublic'}},{xtype:'panel',flex:1,layout:{type:'hbox',align:'stretch'},items:[{xtype:'grid',title:'Users',reference:'permissionUsersGrid',flex:1,split:!0,frame:!0,bind:{store:'{permissionUsers}'},columns:[{text:'Username',dataIndex:'username',flex:1}],tools:[{type:'plus',handler:'onAddUser',tooltip:'Add User'},{type:'minus',handler:'onRemoveUser',tooltip:'Remove User',bind:{hidden:'{!permissionUsersGrid.selection}'}}]},{xtype:'grid',title:'Workgroups',reference:'permissionWorkgroupsGrid',flex:1,split:!0,frame:!0,bind:{store:'{permissionWorkgroups}'},columns:[{text:'Workgroup',dataIndex:'workgroup',flex:1},{text:'Username',dataIndex:'username',flex:1}],features:[{ftype:'grouping',startCollapsed:!0,groupHeaderTpl:'{name} ({rows.length} User{[values.rows.length > 1 ? "s" : ""]})'}],tools:[{type:'plus',handler:'onAddWorkgroup',tooltip:'Add Workgroup'},{type:'minus',handler:'onRemoveWorkgroup',tooltip:'Remove Workgroup',bind:{hidden:'{!permissionWorkgroupsGrid.selection}'}}]}]}]}],buttons:[{text:'Cancel',scope:a,handler:function(){this.fireEvent('finish',this)}},{text:'Ok',ui:'soft-green',scope:a,handler:function(){this.fireEvent('finish',this)}}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(b){var a=this;a.currentCatalog=b;a.fireEvent('changecatalog',b,a)}},0,['targets-permission'],['component','box','container','panel','targets-permission'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-permission':!0},['widget.targets-permission'],0,[Target.view.settings,'Permission'],0);Ext.cmd.derive('Target.view.settings.SystemMembersController',Ext.app.ViewController,{listen:{component:{'targets-system-members':{changecatalog:'onChangeCatalog'}}},onChangeCatalog:function(a){var c=this,d=c.getViewModel(),e=d.getStore('products'),b=d.getStore('productRelateds');if(a.get('pcl_is_system')){b.addFilter([{property:'prl_product',value:a.get('id')},{property:'prl_relation_type',value:'join'}]);b.load({callback:function(){c.onLoadRelateds(this)}})}},onLoadRelateds:function(a){var c=this,d=c.getViewModel(),b;if(a.count()>0){b=a.first();d.set('productRelated',b)}c.loadAvailableMembersCatalog()},loadAvailableMembersCatalog:function(){var c=this,d=c.getViewModel(),b=d.get('currentCatalog'),a=d.getStore('products');a.addFilter({property:'class_name',value:'cluster_members'});if(b.get('epr_original_id')!==null){a.addFilter({property:'process',value:b.get('epr_original_id')})}a.load({callback:function(){c.onLoadAvailableMembersCatalog(this)}})},onLoadAvailableMembersCatalog:function(e){var b=this,h=b.getReferences(),f=h.cmbAvailableMembers,g=b.getViewModel(),d=g.get('currentCatalog'),c=g.get('productRelated'),a;if(c&&c.get('id')>0){a=e.getById(c.get('prl_related'))}else {if(d.get('epr_original_id')!==null){e.each(function(b){if(b.get('epr_original_id')==d.get('epr_original_id')){a=b;return !1}},b)}else {}}if(a.get('id')!==0){f.select(a);b.onSelectMembersCatalog(f,a)}},onSelectMembersCatalog:function(g,b){var d=this,e=d.getViewModel(),f=e.get('currentCatalog'),a=e.get('productRelated'),c=e.getStore('productRelateds');if(b!==null&&b.get('id')>0){e.set('memberCatalog',b);if(a.get('id')>0){if(a.get('prl_related')!=b.get('id')){a.set('prl_related',b.get('id'));c.add(a);c.sync({callback:function(){d.loadContents()}})}else {d.loadContents()}}else {a.set('prl_product',f.get('id'));a.set('prl_related',b.get('id'));a.set('prl_cross_identification',null);c.add(a);c.sync({callback:function(){d.loadContents()}})}}},loadContents:function(){var b=this,c=b.getViewModel(),a=c.getStore('availableContents'),d=c.get('memberCatalog');a.addFilter([{property:'pcn_product_id',value:d.get('id')}]);a.load({callback:function(){b.preSelectCrossIdentification(this)}})},preSelectCrossIdentification:function(d){var b=this,f=b.getReferences(),e=f.cmbMembersProperties,g=b.getViewModel(),c=g.get('productRelated'),a;d.each(function(b){if(b.get('ucd')==='meta.id.cross'){a=b;return !1}},b);if(c.get('id')>0){if(c.get('prl_cross_identification')>0){a=d.getById(c.get('prl_cross_identification'))}}if(a){e.select(a);b.onSelectCrossIdentification(e,a)}},onSelectCrossIdentification:function(f,a){var e=this,c=e.getViewModel(),b=c.get('productRelated'),d=c.getStore('productRelateds');if(a&&a.get('id')>0){c.set('crossIdentification',a);if(b.get('id')>0){if(b.get('prl_cross_identification')!==a.get('id')){console.log('TODO: UPDATE UM NOVO RELATED');b.set('prl_cross_identification',a.get('id'));d.add(b);d.sync()}}}}},0,0,0,0,['controller.system_members'],0,[Target.view.settings,'SystemMembersController'],0);Ext.cmd.derive('Target.view.settings.SystemMembersModel',Ext.app.ViewModel,{links:{currentCatalog:{type:'Target.model.Catalog',create:!0},productRelated:{type:'Target.model.ProductRelated',create:!0},membersCatalog:{type:'Target.model.Catalog',create:!0},crossIdentification:{type:'Target.model.CatalogContent',create:!0}},stores:{products:{type:'products',autoLoad:!1},productRelateds:{type:'product_relateds',autoLoad:!1},availableContents:{type:'product-display-contents',autoLoad:!1}}},0,0,0,0,['viewmodel.system_members'],0,[Target.view.settings,'SystemMembersModel'],0);Ext.cmd.derive('Target.view.settings.SystemMembers',Ext.panel.Panel,{controller:'system_members',viewModel:'system_members',config:{currentCatalog:null},initComponent:function(){var a=this;Ext.apply(this,{layout:{type:'vbox',align:'stretch'},items:[{xtype:'form',bodyPadding:10,layout:{type:'vbox',align:'stretch'},items:[{xtype:'fieldcontainer',items:[{xtype:'combobox',itemId:'cmbAvailableMembers',reference:'cmbAvailableMembers',publishes:'id',fieldLabel:'Available Cluster Members',displayField:'prd_display_name',bind:{store:'{products}',selection:'{membersCatalog}'},listeners:{select:'onSelectMembersCatalog'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,width:400,labelAlign:'top'},{xtype:'combobox',itemId:'cmbMembersProperties',reference:'cmbMembersProperties',publishes:'id',fieldLabel:'Choose the property that links members to their clusters',displayField:'display_name',bind:{store:'{availableContents}',selection:'{crossIdentification}'},listeners:{select:'onSelectCrossIdentification'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,width:400,labelAlign:'top'}]}]}],buttons:[{text:'Finish',ui:'soft-green',scope:a,handler:function(){this.fireEvent('finish',this)}}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(b){var a=this,c=a.getViewModel();a.currentCatalog=b;c.set('currentCatalog',b);a.fireEvent('changecatalog',b,a)}},0,['targets-system-members'],['component','box','container','panel','targets-system-members'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-system-members':!0},['widget.targets-system-members'],0,[Target.view.settings,'SystemMembers'],0);Ext.cmd.derive('Target.view.settings.CutoutController',Ext.app.ViewController,{listen:{component:{'targets-cutout':{changecatalog:'onChangeCatalog',deactivate:'onDeactive',beforedestroy:'onDeactive'}}},onChangeCatalog:function(b){var a=this,d=a.getViewModel(),c=d.getStore('cutoutjobs');d.set('currentCatalog',b);c.addFilter([{property:'cjb_product',value:b.get('id')},{property:'cjb_status',operator:'in',value:['st','bs','rn','ok','er','je']}]);c.load();a.taskReloadJobs=Ext.TaskManager.start({run:a.reloadJobs,interval:10000,scope:a})},reloadJobs:function(){var b=this,c=b.getViewModel(),a=c.getStore('cutoutjobs');a.load()},onClickCreate:function(){var c=this,d=c.getViewModel(),e=d.get('currentCatalog'),b=d.get('currentSetting'),a;a=c.lookupReference('winCutoutJobForm');if(!a){a=Ext.create('Target.view.settings.CutoutJobForm',{reference:'winCutoutJobForm',modal:!0,listeners:{close:'reloadJobs'}});c.getView().add(a)}a.setCurrentProduct(e);if(b&&b.get('id')>0){a.setCurrentSetting(b)}a.show()},onDeactive:function(){var a=this;if(a.taskReloadJobs){Ext.TaskManager.stop(a.taskReloadJobs)}},onCheckAllBands:function(d,c){var a=this,b=a.lookup('cbgBands');b.eachBox(function(a){a.setValue(c)},a)},onRemoveCutoutJob:function(){var a=this,d=a.lookup('cutoutJobsGrid'),c=a.getViewModel().getStore('cutoutjobs'),b=d.selection;a.startStopTask(!1);b.set('cjb_status','dl');c.sync({callback:function(){a.startStopTask(!0)}})},startStopTask:function(b){var a=this;if(a.taskReloadJobs){if(b){Ext.TaskManager.start(a.taskReloadJobs)}else {Ext.TaskManager.stop(a.taskReloadJobs)}}}},0,0,0,0,['controller.cutout'],0,[Target.view.settings,'CutoutController'],0);Ext.cmd.derive('Target.view.settings.CutoutModel',Ext.app.ViewModel,{links:{currentCatalog:{type:'Target.model.Catalog',create:!0},cutoutJob:{type:'Target.model.CutoutJob',create:!0},currentSetting:{type:'Target.model.CurrentSetting',create:!0}},stores:{cutoutjobs:{type:'cutoutjobs'}}},0,0,0,0,['viewmodel.cutout'],0,[Target.view.settings,'CutoutModel'],0);Ext.cmd.derive('Target.view.settings.CutoutJobs',Ext.grid.Panel,{initComponent:function(){var a=this;Ext.apply(this,{markDirty:!1,columns:[{text:'Name',dataIndex:'cjb_display_name',flex:1},{text:'Owner',dataIndex:'owner'},{text:'Type',dataIndex:'cjb_job_type'},{text:'Filters',dataIndex:'cjb_band'},{text:'Release Tag',dataIndex:'cjb_tag',flex:1},{text:'Status',dataIndex:'status'}]});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)}},0,['targets-cutout-jobs'],['component','box','container','panel','tablepanel','gridpanel','grid','targets-cutout-jobs'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'targets-cutout-jobs':!0},['widget.targets-cutout-jobs'],0,[Target.view.settings,'CutoutJobs'],0);Ext.cmd.derive('Target.view.settings.CutoutJobController',Ext.app.ViewController,{listen:{component:{'target-cutoutjob-form':{changeproduct:'onChangeProduct',changesetting:'onChangeSetting'}},store:{'#Contents':{load:'onLoadContents'}}},onChangeProduct:function(b){var d=this,c=d.getViewModel(),a=c.getStore('contents');c.set('currentProduct',b);a.removeAll();a.clearFilter(!0);a.addFilter({property:'pcn_product_id',value:b.get('id')});a.load()},onChangeSetting:function(b){var e=this,a=e.getViewModel(),d=a.get('currentProduct'),c=a.getStore('contents');a.set('currentSetting',b);c.addFilter([{'property':'pcn_product_id',value:d.get('id')},{'property':'pca_setting',value:b.get('cst_setting')}])},onLoadContents:function(a){this.addContentsToField(a)},addContentsToField:function(a){var c=this,d=c.getViewModel(),b=d.get('auxcontents');a.each(function(c){if(c.get('is_visible')===!0){b.add(c)}},a)},onCancelAddJob:function(){var c=this,a=c.getView(),b=a.down('form');b.reset();a.close()},onSubmitJob:function(){var d=this,c=d.getView(),g=d.getViewModel(),e=g.getStore('cutoutjobs'),h=g.get('currentProduct'),f=c.down('form'),a,b;if(f.isValid()){c.setLoading(!0);a=f.getValues();b=Ext.create('Target.model.CutoutJob',{cjb_product:h.get('id'),cjb_display_name:a.job_name,cjb_job_type:a.job_type,cjb_xsize:parseFloat(a.xsize/60).toFixed(3),cjb_ysize:parseFloat(a.ysize/60).toFixed(3),cjb_Blacklist:!1,cjb_status:'st',cjb_description:a.cjb_description,cjb_image_formats:a.image_formats});if(a.job_type=='single'){if(a.band){try{b.set('cjb_band',a.band.join())}catch(i){b.set('cjb_band',a.band)}}if(a.no_blacklist){b.set('cjb_Blacklist',!0)}}else {if(a.tag&&a.tag!==''){b.set('cjb_tag',a.tag)}}if(a.label_properties&&a.label_properties.length>0){b.set('cjb_label_position',a.label_position);b.set('cjb_label_colors',a.label_color);b.set('cjb_label_font_size',a.label_font_size);b.set('cjb_label_properties',a.label_properties.join().toLowerCase())}e.add(b);e.sync({callback:function(){e.load();f.reset();c.setLoading(!1);c.fireEvent('submitedjob',d);Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - create_mosaic');d.afterSubmitJob(c)}})}},afterSubmitJob:function(a){var d=this,c=a.getObjectsCount(),b=a.getMaxObjects();a.close();if(c>b){Ext.MessageBox.alert('','The cutout tool has currently a limit of '+b+' objects. We are working to fix this limitation.
    The job will run in the background and you will be notified when it is finished.')}else {Ext.MessageBox.alert('','The job will run in the background and you will be notified when it is finished.')}},onDeactive:function(){var a=this;if(a.taskReloadJobs){Ext.TaskManager.stop(a.taskReloadJobs)}},onCheckAllBands:function(d,c){var a=this,b=a.lookup('cbgBands');b.eachBox(function(a){a.setValue(c)},a)}},0,0,0,0,['controller.cutoutjob'],0,[Target.view.settings,'CutoutJobController'],0);Ext.cmd.derive('Target.view.settings.CutoutJobModel',Ext.app.ViewModel,{data:{enableRelease:!1},links:{currentProduct:{type:'Target.model.Catalog',create:!0},cutoutJob:{type:'Target.model.CutoutJob',create:!0}},stores:{cutoutjobs:{type:'cutoutjobs'},tags:{fields:['name','displayName'],data:[{name:'y3a2_coadd',displayName:'Y3A2 COADD'},{name:'y3a1_coadd',displayName:'Y3A1 COADD'},{name:'y3a1_coadd_deep',displayName:'Y3A1 COADD DEEP'},{name:'y1a1_coadd',displayName:'Y1A1 COADD'},{name:'y1a1_coadd_d04',displayName:'Y1A1 COADD D04'},{name:'y1a1_coadd_d10',displayName:'Y1A1 COADD D10'},{name:'y1a1_coadd_dfull',displayName:'Y1A1 COADD DFULL'},{name:'sva1_coadd',displayName:'SVA1 COADD'}]},contents:{type:'product-display-contents',storeId:'Contents',autoLoad:!1},auxcontents:{type:'product-display-contents',autoLoad:!1}}},0,0,0,0,['viewmodel.cutoutjob'],0,[Target.view.settings,'CutoutJobModel'],0);Ext.cmd.derive('Target.view.settings.CutoutJobForm',Ext.window.Window,{title:'Create Mosaic',width:450,height:540,layout:'fit',modal:!0,controller:'cutoutjob',viewModel:'cutoutjob',closeAction:'hide',config:{currentProduct:null,currentSetting:null,availableReleases:null,objectsCount:null,maxObjects:300},initComponent:function(){var a=this,b=a.getViewModel(),c=b.getStore('tags');try{a.availableReleases=Settings.DES_CUTOUT_SERVICE__AVAILABLE_RELEASES}catch(d){console.warn('Setting DES_CUTOUT_SERVICE__AVAILABLE_RELEASES not loaded.')}try{a.maxObjects=Settings.DES_CUTOUT_SERVICE__MAX_OBJECTS}catch(e){console.warn('Setting DES_CUTOUT_SERVICE__MAX_OBJECTS not loaded.')}toBeRemoved=[];if(a.availableReleases!=null){b.set('enableRelease',!0);if(Array.isArray(a.availableReleases)&&a.availableReleases.length>0){c.each(function(b){if(a.availableReleases.indexOf(b.get('name'))==-1){toBeRemoved.push(b)}});c.remove(toBeRemoved)}}else {b.set('enableRelease',!1)}Ext.apply(this,{items:[{xtype:'form',bodyPadding:20,defaults:{labelWidth:125,anchor:'95%',margin:'0 0 10 0'},items:[{xtype:'textfield',fieldLabel:'Name',name:'job_name',allowBlank:!1,maxLength:40},{xtype:'radiogroup',fieldLabel:'Type',cls:'x-check-group-alt',name:'job_type',items:[{boxLabel:'Coadd Images',inputValue:'coadd',checked:!0},{boxLabel:'Single Epoch',inputValue:'single',reference:'rdSingleEpoch',disabled:!0}]},{xtype:'numberfield',fieldLabel:'X Size (arcsec)',value:60,name:'xsize',hideTrigger:!0},{xtype:'numberfield',fieldLabel:'Y Size (arcsec)',value:60,name:'ysize',hideTrigger:!0},{xtype:'combobox',reference:'CmbReleaseTag',name:'tag',fieldLabel:'Release TAG',emptyText:'Release tag for coadd cutouts',valueField:'name',displayField:'displayName',minChars:0,queryMode:'local',editable:!0,bind:{store:'{tags}',disabled:'{rdSingleEpoch.checked}'}},{xtype:'checkboxgroup',fieldLabel:'Filters',cls:'x-check-group-alt',reference:'cbgBands',items:[{boxLabel:'g',name:'band',inputValue:'g'},{boxLabel:'r',name:'band',inputValue:'r'},{boxLabel:'i',name:'band',inputValue:'i'},{boxLabel:'z',name:'band',inputValue:'z'},{boxLabel:'Y',name:'band',inputValue:'Y'},{boxLabel:'All',name:'band-all',reference:'cbAllBands',listeners:{change:'onCheckAllBands'}}],bind:{hidden:'{!rdSingleEpoch.checked}',disabled:'{!rdSingleEpoch.checked}'}},{xtype:'checkbox',boxLabel:'Exclude blacklisted ccds',name:'no_blacklist',inputValue:!0,bind:{hidden:'{!rdSingleEpoch.checked}',disabled:'{!rdSingleEpoch.checked}'}},{xtype:'radiogroup',fieldLabel:'Image Formats',cls:'x-check-group-alt',name:'image_formats',items:[{boxLabel:'only PNGs (fast)',inputValue:'png',checked:!0},{boxLabel:'PNGs and Fits',inputValue:'png,fits'}]},{xtype:'fieldset',title:'Labels',defaultType:'textfield',defaults:{anchor:'100%'},items:[{xtype:'radiogroup',fieldLabel:'Position',cls:'x-check-group-alt',name:'label_position',items:[{boxLabel:'Inside',inputValue:'inside',checked:!0},{boxLabel:'Outside',inputValue:'outside'}]},{xtype:'colorfield',fieldLabel:'Font Color',name:'label_color',value:'#2eadf5'},{xtype:'numberfield',fieldLabel:'Font Size',name:'label_font_size',value:10,minValue:6,maxValue:18},{xtype:'tagfield',name:'label_properties',fieldLabel:'Properties',displayField:'display_name',valueField:'column_name',queryMode:'local',allowBlank:!0,growMax:60,bind:{store:'{auxcontents}'}}]},{xtype:'textarea',labelAlign:'top',fieldLabel:'Comment',name:'cjb_description',maxLength:1024}]}],buttons:['->',{text:'Cancel',handler:'onCancelAddJob'},{text:'Submit',ui:'soft-green',handler:'onSubmitJob'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},afterRender:function(){console.log('afterRender');var a=this,d=a.getViewModel(),c=a.lookup('rdSingleEpoch'),b=a.lookup('CmbReleaseTag');Ext.window.Window.prototype.afterRender.apply(this,arguments);if(d.get('enableRelease')&&!c.checked){b.setVisible(!0)}else {b.setVisible(!1)}},setCurrentProduct:function(b){var a=this;a.currentProduct=b;a.fireEvent('changeproduct',b,a)},setCurrentSetting:function(b){var a=this;a.currentSetting=b;a.fireEvent('changesetting',b,a)}},0,['target-cutoutjob-form'],['component','box','container','panel','window','target-cutoutjob-form'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-cutoutjob-form':!0},['widget.target-cutoutjob-form'],0,[Target.view.settings,'CutoutJobForm'],0);Ext.cmd.derive('Target.view.settings.Cutout',Ext.panel.Panel,{controller:'cutout',viewModel:'cutout',config:{currentCatalog:null,currentSetting:null},initComponent:function(){var a=this;Ext.apply(this,{bodyPadding:20,layout:{type:'vbox',align:'stretch'},items:[{xtype:'targets-cutout-jobs',reference:'cutoutJobsGrid',flex:1,bind:{store:'{cutoutjobs}',selection:'{cutoutJob}'},tbar:[{text:'Create Cutout',iconCls:'x-fa fa-picture-o',ui:'soft-green',tooltip:'Create cutouts for this catalog',handler:'onClickCreate'},{text:'Download',iconCls:'x-fa fa-download ',tooltip:'Download list of files',handler:'onClickDownload',disabled:!0,bind:{}},{tooltip:'Remove Cutout Job',iconCls:'x-fa fa-trash',ui:'soft-red',handler:'onRemoveCutoutJob',disabled:!0,bind:{disabled:'{!cutoutJobsGrid.selection}'}}]}],buttons:[{text:'Finish',ui:'soft-green',scope:a,handler:function(){this.fireEvent('finish',this)}}]});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(b){var a=this,c=a.getViewModel();a.currentCatalog=b;c.set('currentCatalog',b);a.fireEvent('changecatalog',b,a)},setCurrentSetting:function(b){var a=this,c=a.getViewModel();a.currentSetting=b;a.getViewModel().set('currentSetting',b)}},0,['targets-cutout'],['component','box','container','panel','targets-cutout'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-cutout':!0},['widget.targets-cutout'],0,[Target.view.settings,'Cutout'],0);Ext.cmd.derive('Target.view.wizard.Wizard',Ext.tab.Panel,{controller:'wizard',viewModel:'wizard',defaultListenerScope:!0,config:{product:null,currentSetting:null,currentCatalog:null},ui:'navigation',tabPosition:'left',tabRotation:0,defaults:{textAlign:'left'},items:[{id:'card-1',xtype:'targets-columns',title:'Columns',iconCls:'x-fa fa-list'},{id:'card-2',xtype:'targets-association',title:'Association',iconCls:'x-fa fa-columns',disabled:!0},{id:'card-4',xtype:'targets-system-members',title:'System Members',iconCls:'x-fa fa-dot-circle-o'},{id:'card-5',xtype:'targets-permission',title:'Permission',iconCls:'x-fa fa-lock',disabled:!0}],setProduct:function(a){var b=this,c=b.getViewModel();this.product=a;c.set('product',a)},setCurrentCatalog:function(b){var a=this;a.currentCatalog=b;a.getViewModel().set('currentCatalog',b);a.enableTabsByPermission()},enableTabsByPermission:function(){var a=this,c=a.getViewModel(),b=c.get('currentCatalog');if(b.get('id')>0&&b.get('is_owner')){a.down('targets-association').enable();a.down('targets-permission').enable();a.down('targets-system-members').enable()}else {a.down('targets-association').disable();a.down('targets-permission').disable();a.down('targets-system-members').disable()}if(b.get('pcl_is_system')){a.down('targets-system-members').enable()}else {a.down('targets-system-members').disable()}}},0,['targets-wizard'],['component','box','container','panel','tabpanel','targets-wizard'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tabpanel':!0,'targets-wizard':!0},['widget.targets-wizard'],0,[Target.view.wizard,'Wizard'],0);Ext.cmd.derive('Target.view.objects.FiltersController',Ext.app.ViewController,{listen:{component:{'target-filters-window':{changecatalog:'onChangeCatalog'}},store:{'#productContents':{load:'onLoadContents'},'#filterConditions':{load:'onLoadFilterConditions'}}},onChangeCatalog:function(b){var c=this,a=c.getViewModel(),f=a.getStore('filters'),d=a.getStore('filterSets'),e=a.getStore('contents');f.loadData([]);c.clearInputs();d.filter('product',b.get('id'));e.addFilter({property:'pcn_product_id',value:b.get('id')})},onLoadContents:function(b){var a,c;a=Ext.create('Target.model.CatalogContent',{id:null,column_name:'_meta_rating',display_name:'Rating'});b.add(a)},onLoadFilterConditions:function(){var a=this,g=a.getViewModel(),e=a.getReferences(),f=g.getStore('filters'),d=[],b=!1,c;f.each(function(a){if(a.data.fcd_property_name=='_meta_reject'){b=!0;c=a.data.fcd_value}d.push(a.data)});a.arrayFilterConditions=d;e.chkRejected.setExpanded(b);if(b){e.chkRejected.query('radio').forEach(function(a){if(a.getReference()=='r'+c){a.setValue(!0)}})}a.viewRenderUIStatus()},onAddFilter:function(){var e=this,a=e.getViewModel(),b=a.get('content'),f=a.get('operator'),h=a.get('value'),c=a.get('filterSet'),g=a.getStore('filters'),d;if(!b){return}d=Ext.create('Target.model.FilterCondition',{fcd_property:b.get('id'),fcd_property_name:b.get('column_name'),fcd_operation:f.get('name'),fcd_value:h,property_display_name:b.get('display_name'),operator_display_name:f.get('display_name')});if(c&&c.get('id')>0){d.set('filterset',c.get('id'))}g.add(d);e.clearInputs();e.viewRenderUIStatus()},onRemoveFilterClick:function(f,d,c,e,g,a){var b=this;Ext.MessageBox.confirm('','The Filter will be removed. Do you want continue?',function(h){if(h==='yes'){a.drop();b.viewRenderUIStatus()}},this)},viewRenderUIStatus:function(){this.getView().renderUIStatus()},onSelectProperty:function(g,a){var d=this,e=d.getViewModel(),b=e.get('filterSet'),f=e.getStore('filters'),c;if(a.get('column_name')==='_meta_reject'){c=Ext.create('Target.model.FilterCondition',{fcd_property:a.get('id'),fcd_property_name:a.get('column_name'),fcd_operation:'=',fcd_value:!0,property_display_name:a.get('display_name'),operator_display_name:'is equal to'});if(b&&b.get('id')>0){c.set('filterset',b.get('id'))}f.add(c);d.clearInputs();d.viewRenderUIStatus()}},onSelectOperator:function(b,a){},onCancelFilter:function(){this.getView().close()},onSaveFilterSet:function(){this.saveFilterSet()},saveFilterSet:function(a){var g=this,m,l=g.getReferences(),c=g.getViewModel(),k=c.get('currentCatalog'),b=c.getStore('filters'),h=c.getStore('filterSets'),e=c.get('filterSet'),f=g.getView(),i=!1,j=e&&e.get('id')>0,d=l.cmbName.getValue();a=a||function(){};if(d!==''){h.each(function(b){if(b.data.fst_name==d&&(!j||b.data.id!=e.get('id'))){i=!0}});if(i){return Ext.MessageBox.alert('','This filter name already exists',function(){a(!0)})}f.setLoading(!0);if(j){doSave(e,!0)}else {doSave(Ext.create('Target.model.FilterSet',{product:k.get('id'),fst_name:d}))}}else {a()}function doSave(e,i){e.set('fst_name',d);e.save({callback:function(l,j,k){f.setLoading(!1);if(k){var d=Ext.decode(j.getResponse().responseText);e.set(d);if(!i){c.set('filterSet',e);b.each(function(b){b.set('filterset',e.get('id'))},g);h.add(d)}if(b.updating>0||b.removed.length>0||b.getNewRecords().length>0){f.setLoading(!0);b.save({callback:function(){f.setLoading(!1);a()}})}else {a()}}else {a()}}})}},updateFilterSet:function(b){var a=this.getViewModel().getStore('filters');a.sync({callback:b})},onDeleteFilterSet:function(){var a=this,e=a.getReferences(),c=a.getViewModel(),d=c.getStore('filters'),b=c.get('filterSet'),f=c.getStore('filterSets'),g=a.getView();Ext.MessageBox.confirm('','The Filter will be deleted. Do you want continue?',function(a){if(a==='yes'){doRemove()}},this);function doRemove(){if(b&&b.get('id')>0){b.erase({callback:function(c,h,b){if(b){e.cmbName.clearValue();d.loadData([]);f.remove(c);e.chkRejected.setExpanded(!1);d.loadData([]);a.viewRenderUIStatus();g.fireEvent('disapplyfilters',a)}}})}}},onApplyFilter:function(){var a=this,j=a.getView(),b=a.getViewModel(),e=a.getReferences(),f=b.get('currentCatalog'),h=b.get('filterSet'),g=b.getStore('filterSets'),c=b.getStore('filters'),d=e.cmbName.getValue(),i;if(c.count()==0){return}if(d){if(a.filterConditionsIsChanged()){a.saveFilterSet(function(b){if(!b){setTimeout(function(){a.applyFilters()},10)}})}else {a.applyFilters()}}else {a.applyFilters()}},onCreateFilterset:function(d,b){var a=this,c=a.getView();c.setLoading(!0);b.each(function(a){a.set('filterset',d.get('id'))},a);b.sync({callback:function(){a.applyFilters();c.setLoading(!1)}})},applyFilters:function(){var d=this,e=d.getView(),f=d.getViewModel(),c=d.getViewModel().getStore('filters'),b=f.get('filterSet'),a={};if(c.count()>0){if(b){a.id=b.get('id');a.fst_name=b.get('fst_name');a.modelFilterSet=b.get('product')>0?b:null}else {a.fst_name='Unsaved filter';a.modelFilterSet=null}a.conditions=[];a.storeFilters=c;c.getData().each(function(b){if(typeof b.data.id=='string'){delete b.data.id}a.conditions.push(b.data)});e.fireEvent('applyfilters',a)}e.close()},filterConditionsIsChanged:function(){var a=this,h=a.getView(),f=a.getViewModel(),g=a.getReferences(),c=f.getStore('filters'),b=f.get('filterSet'),d=g.cmbName.getValue(),e=!1;if(!b&&d){return !0}if(b&&d!==b.get('fst_name')){return !0}if(!a.arrayFilterConditions){return !1}if(c.count()!=a.arrayFilterConditions.length){return !0}c.each(function(d,b){var c=d.data;if(c.id!=a.arrayFilterConditions[b].id){e=!0}});return e},clearInputs:function(){var e=this,a=e.getReferences(),c=a.cmbProperty,b=a.cmbOperator,d=a.txtValue;c.reset();b.reset();d.reset()},onFilterWindow_SelectFilterSet:function(d,c){var e=this,b=c.get('id'),a=this.getViewModel().getStore('filters');this.arrayFilterConditions=null;if(b>0&&!a.isSyncing){a.filter('filterset',b);a.load()}},onFilterWindow_ChangeFilterSetValue:function(a,b){this.viewRenderUIStatus()},onFilterWindow_ClearFilterSet:function(){var a=this,d=a.getReferences(),b=a.getViewModel(),c=b.getStore('filters'),e=b.get('filterSet'),f=a.getView();d.cmbName.clearValue();c.loadData([]);a.viewRenderUIStatus()},onRemoveFilter:function(){var b=this,d=b.getViewModel(),c=d.get('filterSet'),a=b.getView();if(c&&a.activeAppliedFilter&&c.id==a.activeAppliedFilter.id){b.onFilterWindow_ClearFilterSet()}a.activeAppliedFilter=null;a.fireEvent('disapplyfilters',this);b.viewRenderUIStatus()},onFilterWindow_CheckboxRejectedChange:function(c){var d=this,e=d.getViewModel(),b=e.getStore('filters'),a;if(c.collapsed){a=b.find('fcd_property_name','_meta_reject');if(a>-1){b.removeAt(a)}c.query('radio').forEach(function(a){a.setValue(!1)})}},onFilterWindow_RadioRejectedChange:function(f){var e=this,h=e.getView(),g=e.getViewModel(),c=g.get('filterSet'),b=g.getStore('filters'),a,d;if(f.getValue()){d=b.find('fcd_property_name','_meta_reject');if(d>-1){b.removeAt(d)}a=Ext.create('Target.model.FilterCondition',{fcd_property:NaN,fcd_property_name:'_meta_reject',fcd_operation:'=',fcd_value:f.getReference()=='rtrue'?'true':'false'});if(c&&c.get('id')>0){a.set('filterset',c.get('id'))}b.add(a);setTimeout(function(){e.viewRenderUIStatus()},10)}},onFilterWindow_ButtonCopyClick:function(){var a=this,g=a.getView(),f=a.getViewModel(),e=a.getReferences(),b=a.getViewModel().getStore('filters'),c=f.get('filterSet'),d=[];if(b.count()>0&&c){b.getData().each(function(a){delete a.data.id;if(a.data.property_name=='_meta_rating'||a.data.property_name=='_meta_reject'){a.data.fcd_property=NaN}d.push(a.data)});a.onFilterWindow_ClearFilterSet();e.cmbName.setValue('Copy of '+c.get('fst_name'));b.setData(d);a.onLoadFilterConditions()}}},0,0,0,0,['controller.filters'],0,[Target.view.objects,'FiltersController'],0);Ext.cmd.derive('Target.view.objects.FiltersModel',Ext.app.ViewModel,{stores:{contents:{type:'product-display-contents',storeId:'productContents',autoLoad:!1},filterSets:{type:'target-filtersets',autoLoad:!1},filters:{type:'target-filter-conditions',storeId:'filterConditions',autoLoad:!1},operators:{fields:['name','display_name','type'],data:[{name:'=',display_name:'is equal to',type:'text'},{name:'!=',display_name:'is not equal to',type:'text'},{name:'>',display_name:'is greater than',type:'text'},{name:'>=',display_name:'is greater than or equal to',type:'text'},{name:'<',display_name:'is less than',type:'text'},{name:'<=',display_name:'is less than or equal to',type:'text'}]}},data:{operator:null,value:null,haveFilters:!1,filterName:null},links:{currentCatalog:{type:'Target.model.Catalog',create:!0},filterSet:{type:'Target.model.FilterSet',create:!0},content:{type:'Target.model.CatalogContent',create:!0}}},0,0,0,0,['viewmodel.filters'],0,[Target.view.objects,'FiltersModel'],0);Ext.cmd.derive('Target.view.objects.FiltersWindow',Ext.window.Window,{title:'Filters',width:600,height:400,modal:!0,autoShow:!0,controller:'filters',viewModel:'filters',closeAction:'destroy',bodyPadding:'6 20 6 20',layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null},items:[{xtype:'form',reference:'filterForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100,labelStyle:'font-weight:bold'},items:[{xtype:'container',items:[{xtype:'toolbar',padding:'0 0 8 0',items:[{xtype:'button',reference:'btnClear',iconCls:'x-fa fa-file-o',tooltip:'New',handler:'onFilterWindow_ClearFilterSet'},{xtype:'button',reference:'btnSave',iconCls:'x-fa fa-floppy-o',tooltip:'Save',handler:'onSaveFilterSet'},{xtype:'button',reference:'btnCopy',iconCls:'x-fa fa-files-o',handler:'onFilterWindow_ButtonCopyClick',tooltip:'Copy'},{xtype:'tbseparator'},{xtype:'button',reference:'btnDelete',iconCls:'x-fa fa-trash',tooltip:'Delete',handler:'onDeleteFilterSet'}]},{xtype:'combobox',reference:'cmbName',displayField:'fst_name',emptyText:'Unamed filter',publishes:'id',bind:{store:'{filterSets}',selection:'{filterSet}'},listeners:{select:'onFilterWindow_SelectFilterSet',keyup:'onFilterWindow_ChangeFilterSetValue'},enableKeyEvents:!0,minChars:1000,editable:!0,width:558},{xtype:'fieldset',checkboxToggle:!0,title:'Rejected',reference:'chkRejected',listeners:{collapse:'onFilterWindow_CheckboxRejectedChange',expand:'onFilterWindow_CheckboxRejectedChange'},items:[{layout:'hbox',items:[{xtype:'radio',boxLabel:'Yes',reference:'rtrue',name:'rejectGroup',checked:!1,listeners:{change:'onFilterWindow_RadioRejectedChange'}},{xtype:'radio',padding:'0 0 0 40',boxLabel:'No',reference:'rfalse',name:'rejectGroup',checked:!1,listeners:{change:'onFilterWindow_RadioRejectedChange'}}]}]}]},{xtype:'fieldset',title:'Add condition',items:[{xtype:'fieldcontainer',layout:'hbox',defaults:{flex:1},items:[{xtype:'combobox',emptyText:'Property',itemId:'cmbProperty',reference:'cmbProperty',publishes:'id',displayField:'display_name',bind:{store:'{contents}',selection:'{content}'},listeners:{select:'onSelectProperty'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,margin:'0 5 0 0'},{xtype:'combobox',itemId:'cmbOperator',reference:'cmbOperator',publishes:'name',displayField:'display_name',emptyText:'Operator',bind:{store:'{operators}',selection:'{operator}'},listeners:{select:'onSelectOperator'},minChars:0,queryMode:'local',editable:!1,readOnly:!1,forceSelection:!0,margin:'0 5 0 0'},{xtype:'textfield',reference:'txtValue',emptyText:'Value',bind:{value:'{value}'},margin:'0 5 0 0',allowBlank:!1},{xtype:'button',iconCls:'x-fa fa-plus',width:40,flex:!1,handler:'onAddFilter'}]}]}]},{xtype:'grid',reference:'gridFilters',layout:'fit',border:!0,framed:!0,hideHeaders:!0,flex:1,bind:{store:'{filters}'},viewConfig:{markDirty:!1,getRowClass:function(a,b){if(a.get('fcd_property_name')=='_meta_reject'){return 'hide-row'}return 'row'}},columns:[{text:'Property',dataIndex:'property_display_name',flex:1},{text:'Operator',dataIndex:'operator_display_name',flex:1},{text:'Value',dataIndex:'fcd_value',flex:1},{xtype:'actioncolumn',width:60,sortable:!1,menuDisabled:!0,align:'center',items:[{iconCls:'x-fa fa-minus-circle color-soft-red',tooltip:'Remove condition',handler:'onRemoveFilterClick'}]}]}],buttons:[{text:'Cancel',handler:'onCancelFilter'},{text:'Reset',margin:'0 10 0 20',reference:'btnRemove',handler:'onRemoveFilter',tooltip:'Reset applied filter'},{text:'Apply',reference:'btnApply',ui:'soft-green',handler:'onApplyFilter',tooltip:'Apply defined filter'}],setCurrentCatalog:function(a){var b=this;if(a&&a.get('id')>0){b.currentCatalog=a;b.getViewModel().set('currentCatalog',a);b.fireEvent('changecatalog',a)}},setActiveFilter:function(a){var b=this,c=b.getViewModel(),d=c.getStore('filters');if(a){if(a.modelFilterSet){c.set('filterSet',a.modelFilterSet);c.set('filterName',a.modelFilterSet.get('fst_name'))}b.activeAppliedFilter=a;d.setData(a.conditions);b.getController().onLoadFilterConditions()}b.renderUIStatus()},renderUIStatus:function(){var a=this,g=a.getViewModel(),d=g.getStore('filters'),q=g.getStore('filterSets'),b=g.get('filterSet'),r=a.lookup('btnClear'),p=a.lookup('btnSave'),o=a.lookup('btnCopy'),l=a.lookup('btnDelete'),n=a.lookup('btnApply'),m=a.lookup('btnRemove'),k=a.lookup('chkRejected'),j=a.lookup('cmbName'),f,c,h,e,i;f=!1;d.each(function(a){if(a.get('fcd_property_name')=='_meta_reject'){f=!0}});k.setExpanded(f);c=d.count()>0;h=d.getModifiedRecords().length>0||d.getRemovedRecords().length>0;e=j.getValue()?!0:!1;i=b&&j.getValue()!=b.get('fst_name');p.setDisabled(!(c&&e&&(!b||b&&i||b&&h)));o.setDisabled(!(b&&b.get('fst_name')!=''&&e&&c));l.setDisabled(!(b&&b.get('fst_name')!=''));n.setDisabled(!c);m.setDisabled(!a.activeAppliedFilter)}},0,['target-filters-window'],['component','box','container','panel','window','target-filters-window'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-filters-window':!0},['widget.target-filters-window'],0,[Target.view.objects,'FiltersWindow'],0);Ext.cmd.derive('Target.view.objects.SaveCatalogController',Ext.app.ViewController,{listen:{component:{'target-savecatalog':{changecatalog:'onChangeCatalog'}}},onChangeCatalog:function(d,b){var c=this,a=c.getViewModel(),e=a.getStore('filterSets');a.set('activeFilter',b)},onSaveCatalog:function(){var c=this,f=c.getViewModel(),g=f.get('currentCatalog'),e=c.lookup('SaveAsForm').getForm(),b=f.get('activeFilter'),a,d;if(b&&b.id>0){d=b.id}if(e.isValid()){a=e.getValues();Ext.Ajax.request({url:'/dri/api/productsaveas/',scope:this,params:{'product':g.get('id'),'name':a.name,'filter':d,'description':a.description,'columns':a.columns},success:function(a){c.onCancel();Ext.MessageBox.alert('','The job will run in the background and you will be notified when it is finished.');Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - save_as')},failure:function(a,c){var b=a.status+' '+a.statusText;Ext.Msg.show({title:'Sorry',msg:b,icon:Ext.Msg.ERROR,buttons:Ext.Msg.OK})}})}},onCancel:function(){this.getView().close()}},0,0,0,0,['controller.savecatalog'],0,[Target.view.objects,'SaveCatalogController'],0);Ext.cmd.derive('Target.view.objects.SaveCatalogModel',Ext.app.ViewModel,{stores:{filterSets:{type:'target-filtersets',autoLoad:!1},contents:{type:'product-content',autoLoad:!1}},links:{currentCatalog:{type:'Target.model.Catalog',create:!0},filterSet:{type:'Target.model.FilterSet',create:!0}}},0,0,0,0,['viewmodel.savecatalog'],0,[Target.view.objects,'SaveCatalogModel'],0);Ext.cmd.derive('Target.view.objects.SaveCatalogWindow',Ext.window.Window,{title:'Save As',width:450,height:300,modal:!0,autoShow:!0,controller:'savecatalog',viewModel:'savecatalog',closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'form',reference:'SaveAsForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{labelStyle:'font-weight:bold'},items:[{xtype:'textfield',fieldLabel:'Name',name:'name',allowBlank:!1,maxLength:40,minLength:3,regex:/^[a-z0-9-_\s]+$/i,regexText:"Please use only letters and numbers separated by spaces ' ', minus sign '-' or underscore '_'."},{xtype:'textarea',fieldLabel:'Comment',name:'description',maxLength:2048}]}],buttons:[{text:'Cancel',handler:'onCancel'},{text:'Save',iconCls:'x-fa fa-floppy-o',ui:'soft-green',handler:'onSaveCatalog'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(a,c){var b=this;if(a&&a.get('id')>0){b.currentCatalog=a;b.getViewModel().set('currentCatalog',a);b.fireEvent('changecatalog',a,c)}}},0,['target-savecatalog'],['component','box','container','panel','window','target-savecatalog'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-savecatalog':!0},['widget.target-savecatalog'],0,[Target.view.objects,'SaveCatalogWindow'],0);Ext.cmd.derive('Target.view.objects.DownloadWindow',Ext.window.Window,{title:'Download',width:300,height:400,modal:!0,autoShow:!0,closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{currentCatalog:null,filter:null},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'form',reference:'DownloadForm',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{msgTarget:'side',labelAlign:'top',labelWidth:100},items:[{xtype:'fieldset',title:'Table',defaults:{anchor:'100%'},items:[{xtype:'checkboxgroup',columns:1,items:[{boxLabel:'CSV',name:'table_format',inputValue:'csv',checked:!0},{boxLabel:'FITS',name:'table_format',inputValue:'fits'}]}]},{xtype:'combobox',itemId:'cmbCutoutJob',name:'cutouts',fieldLabel:'Mosaic',emptyText:'Choose Mosaic',displayField:'cjb_display_name',valueField:'id',store:{type:'cutoutjobs'},editable:!1,disabled:!0},{xtype:'fieldset',title:'Report',defaults:{anchor:'100%'},items:[{xtype:'checkboxgroup',disabled:!0,columns:1,items:[{boxLabel:'PDF',name:'report_format',inputValue:'pdf'}]}],margin:'10 0 0 0'}]}],buttons:[{text:'Cancel',scope:a,handler:'onCancel'},{text:'Download',scope:a,iconCls:'x-fa fa-download',ui:'soft-green',handler:'onDownload'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setCurrentCatalog:function(a){var d=this,b=d.down('#cmbCutoutJob'),c=b.getStore();if(a&&a.get('id')>0){d.currentCatalog=a;c.addFilter([{property:'cjb_product',value:a.get('id')},{property:'cjb_status',value:'ok'}]);c.load({callback:function(){b.enable()}})}},onDownload:function(){var c=this,h=c.getCurrentCatalog(),d=c.getFilter(),g=c.down('form').getForm(),a,b=[],e=null,i=[],f=null;if(g.isValid()){a=g.getValues();if(a.table_format){b=a.table_format;if(Array.isArray(b)){b=b.join()}}if(a.cutouts){e=a.cutouts}if(a.report_format){i=a.report_format}if(d>0){f=d}Ext.Ajax.request({url:'/dri/api/productexport/',scope:this,params:{'product':h.get('id'),'filetypes':b,'cutout':e,'filter':f},success:function(a){c.onCancel();Ext.MessageBox.alert('','The job will run in the background and you will be notified when it is finished.');Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - download_catalogs')},failure:function(a,c){var b=a.status+' '+a.statusText;Ext.Msg.show({title:'Sorry',msg:b,icon:Ext.Msg.ERROR,buttons:Ext.Msg.OK})}})}},onCancel:function(){this.close()}},0,['target-download'],['component','box','container','panel','window','target-download'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-download':!0},['widget.target-download'],0,[Target.view.objects,'DownloadWindow'],0);Ext.cmd.derive('Target.view.objects.CutoutJobDetailWindow',Ext.window.Window,{title:'Mosaic',modal:!0,autoShow:!0,closeAction:'destroy',bodyPadding:20,layout:{type:'vbox',align:'stretch'},config:{cutoutjob:null},initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'form',layout:{type:'vbox',align:'stretch'},border:!1,fieldDefaults:{labelWidth:100,readOnly:!0},items:[{xtype:'textfield',fieldLabel:'Release TAG',name:'cjb_tag'},{xtype:'textfield',fieldLabel:'Type',name:'cjb_type'},{xtype:'textfield',fieldLabel:'Owner',name:'owner'},{xtype:'datefield',fieldLabel:'Date',name:'cjb_start_time'},{xtype:'textfield',fieldLabel:'Execution Time',name:'execution_time'},{xtype:'textfield',fieldLabel:'Files',name:'count_files'},{xtype:'textfield',fieldLabel:'Size',name:'file_sizes'},{xtype:'textarea',labelAlign:'top',fieldLabel:'Comment',name:'cjb_description',maxLength:1024}]}],buttons:[{text:'Delete',tooltip:'Delete this Mosaic and remove all files',scope:a,iconCls:'x-fa fa-trash',ui:'soft-red',handler:'onDelete'},{text:'Cancel',scope:a,handler:'onCancel'}]});Ext.window.Window.prototype.initComponent.apply(this,arguments)},setCutoutjob:function(a){var b=this,c=b.down('form').getForm();if(a&&a.get('id')>0){b.cutoutjob=a;c.loadRecord(b.cutoutjob)}},onDelete:function(){var a=this;Ext.MessageBox.confirm('','The mosaic and all its files will be removed. Do you want continue?',a.deleteCutoutJob,this)},deleteCutoutJob:function(c){var a=this,b=a.getCutoutjob();if(c==='no'){return !1}a.fireEvent('deletecutoutjob',b,a)},onCancel:function(){this.close()}},0,['target-cutoutjob-detail'],['component','box','container','panel','window','target-cutoutjob-detail'],{'component':!0,'box':!0,'container':!0,'panel':!0,'window':!0,'target-cutoutjob-detail':!0},['widget.target-cutoutjob-detail'],0,[Target.view.objects,'CutoutJobDetailWindow'],0);Ext.cmd.derive('Target.view.objects.ObjectsController',Ext.app.ViewController,{listen:{component:{'targets-objects-panel':{beforeLoadPanel:'onBeforeLoadPanel',beforeloadcatalog:'loadCurrentSetting',beforedeactivate:'onBeforeDeactivate'}},store:{'#Catalogs':{load:'onLoadCatalogs'},'#objects':{load:'onLoadObjects',update:'onUpdateObject'}}},winAlertSetting:null,winFilters:null,winSaveAs:null,wizard:null,winDownload:null,winCutout:null,winCutoutjobInfo:null,activeFilter:null,winComment:null,onBeforeLoadPanel:function(d,b){var f=this,g=b.getViewModel(),a=g.getStore('catalogs'),e=f.getReferences(),c=e.targetsObjectsGrid;c.setLoading(!0);a.removeAll();a.clearFilter(!0);a.filter([{property:'id',value:d}])},onLoadCatalogs:function(d){var a=this,e=a.getViewModel(),b,g=a.getReferences(),h=g.targetsObjectsGrid,i=e.getStore('filterSets'),f=a.lookup('cmbCutoutJob'),c=f.getStore();if(d.count()===1){b=d.first();e.set('currentCatalog',b);a.loadCurrentSetting();c.addFilter([{property:'cjb_product',value:b.get('id')},{property:'cjb_status',value:'ok'}]);c.load()}},loadCurrentSetting:function(){var a=this,b=a.getViewModel(),c=b.getStore('currentSettings'),d=b.get('currentCatalog'),e=a.getReferences(),f=e.targetsObjectsGrid;c.addFilter([{property:'cst_product',value:d.get('id')}]);c.load({callback:function(c,e,d){if(d&&c.length==1){b.set('currentSetting',c[0]);a.configurePanelBySettings()}else {if(d&&c.length>1){b.set('currentSetting',c[c.length-1]);a.configurePanelBySettings()}else {a.configurePanelWithoutSettings()}}}})},configurePanelBySettings:function(){var c=this,d=c.getViewModel(),a=d.getStore('displayContents'),b=d.get('currentSetting');a.addFilter([{'property':'pcn_product_id',value:b.get('cst_product')},{'property':'pca_setting',value:b.get('cst_setting')}]);a.load({callback:function(){c.onLoadProductContent(a)}})},configurePanelWithoutSettings:function(){var b=this,c=b.getViewModel(),d=c.get('currentCatalog'),a=c.getStore('displayContents');a.addFilter([{'property':'pcn_product_id',value:d.get('id')}]);a.load({callback:function(){b.onLoadProductContent(a)}})},onLoadProductContent:function(a){var b=this,d=b.getReferences(),c=d.targetsObjectsGrid;if(a.check_ucds()){c.reconfigureGrid(a)}else {if(!a.check_ucds()){Ext.MessageBox.show({header:!1,closable:!1,msg:'It is necessary to make association for property ID, RA and Dec.',buttons:Ext.MessageBox.OKCANCEL,fn:function(c){if(c==='ok'){b.showAssociation()}else {b.redirectTo('home')}}})}}},reloadAssociation:function(){var a=this;a.loadCurrentSetting()},onLoadAssociation:function(a){var b=this,d=b.getReferences(),c=d.targetsObjectsGrid;if(a.count()>0){c.setCatalogClassColumns(a)}else {if(!this.winAssociation){b.showAssociation()}}},onGridObjectsReady:function(){var b=this,c=this.getViewModel(),a=c.get('currentCatalog');b.loadObjects(a.get('id'))},loadObjects:function(c,a){var f=this,b=f.getViewModel(),g=b.get('currentCatalog'),d=b.getStore('objects'),h=f.getReferences(),i=h.targetsObjectsGrid,e=[];if(!c){c=g.get('id')}if(c>0){b.set('haveFilter',!1);d.clearFilter();d.getProxy().setExtraParam('product',c);if(!a){a=b.get('filters')}if(a&&a.count()>0){a.each(function(d){if(d.get('filterset')>0){b.set('haveFilter',!0)}e.push({property:d.get('fcd_property_name'),operator:d.get('fcd_operation'),value:d.get('fcd_value')})},f);if(e.length>0){d.addFilter(e)}}d.load()}},onLoadObjects:function(j,g,d,e){var a=this,b=a.getViewModel(),h=a.getReferences(),f=h.targetsPreviewPanel,c=a.lookup('targetsObjectsGrid');f.clear();c.setLoading(!1);if(!d){a.clearObjects();var i=e.getError();Ext.MessageBox.show({msg:'Sorry there was an error, and it was not possible to list the objects.',buttons:Ext.MessageBox.OK,icon:Ext.MessageBox.WARNING})}else {if(g.length>0){b.set('haveResults',!0)}else {b.set('haveResults',!1)}}},clearObjects:function(){var b=this.getViewModel(),a=b.getStore('objects');a.removeAll(!0);a.clearFilter(!0)},reloadObjects:function(){var a=this,c=a.getViewModel(),b=c.get('catalog');a.clearObjects();a.loadObjects(b)},onSelectObject:function(h,a){var b=this,g=b.getView(),c=g.getViewModel(),f=b.getReferences(),e=f.targetsPreviewPanel,d=c.get('currentCatalog');c.set('currentRecord',a);e.setCurrentRecord(a,d)},onUpdateObject:function(c,b,d,a){if(a){if(a.indexOf('_meta_reject')>=0){this.onRejectTarget(b,c)}if(a.indexOf('_meta_rating')>=0){this.onRatingTarget(b,c)}}},onRejectTarget:function(a,d){var e=this,c=e.getView().down('targets-objects-grid'),b;c.setLoading('Saving...');if(!a.get('_meta_reject_id')){b=Ext.create('Target.model.Reject',{'catalog_id':a.get('_meta_catalog_id'),'object_id':a.get('_meta_id'),'reject':!0});b.save({callback:function(g,b,e){if(e){var f=Ext.decode(b.getResponse().responseText);a.set('_meta_reject_id',f.id);d.commitChanges();c.setLoading(!1)}}})}else {b=Ext.create('Target.model.Reject',{'id':a.get('_meta_reject_id')});b.erase({callback:function(e,f,b){if(b){a.set('_meta_reject_id',null);d.commitChanges();c.setLoading(!1)}}})}},onRatingTarget:function(a,d){var e=this,c=e.getView().down('targets-objects-grid'),b;c.setLoading('Saving...');if(a.get('_meta_rating_id')>0){b=Ext.create('Target.model.Rating',{'id':a.get('_meta_rating_id')});if(a.get('_meta_rating')>0){b.set('rating',a.get('_meta_rating'));b.save({callback:function(g,b,e){if(e){var f=Ext.decode(b.getResponse().responseText);a.set('_meta_rating_id',f.id);d.commitChanges();c.setLoading(!1)}}})}else {b.erase({callback:function(e,f,b){if(b){a.set('_meta_rating_id',null);d.commitChanges();c.setLoading(!1)}}})}}else {b=Ext.create('Target.model.Rating',{'catalog_id':a.get('_meta_catalog_id'),'object_id':a.get('_meta_id'),'rating':a.get('_meta_rating')});b.save({callback:function(g,b,e){if(e){var f=Ext.decode(b.getResponse().responseText);a.set('_meta_rating_id',f.id);d.commitChanges();c.setLoading(!1)}}})}},onClickSettings:function(){var a=this;a.showWizard()},onChangeInObjects:function(){var a=this,b=a.getViewModel(),d=b.getStore('objects'),c=b.get('currentRecord'),e=a.lookup('targetsObjectsGrid');d.load({scope:this,callback:function(){e.selModel.select(c,!1)}})},showWizard:function(){var a=this,b=a.getViewModel(),e=b.get('catalog'),d=b.get('currentCatalog'),c=b.get('currentSetting');a.wizard=Ext.create('Ext.window.Window',{title:'Settings',layout:'fit',closable:!0,closeAction:'destroy',width:880,height:500,modal:!0,items:[{xtype:'targets-wizard',product:e,listeners:{scope:a,finish:'onFinishWizard',close:'onFinishWizard'}}]});if(c.get('id')>0){a.wizard.down('targets-wizard').setCurrentSetting(c)}a.wizard.down('targets-wizard').setCurrentCatalog(d);a.wizard.show()},onFinishWizard:function(){this.wizard.close();this.loadCurrentSetting()},showAssociation:function(){var a=this,b=a.getViewModel().get('currentCatalog');a.winAssociation=Ext.create('Ext.window.Window',{title:'Association',layout:'fit',closable:!0,closeAction:'destroy',width:800,height:620,modal:!0,items:[{xtype:'targets-association',listeners:{scope:a,finish:'onFinishAssociation',close:'onFinishAssociation',cancel:'onFinishAssociation'}}]});a.winAssociation.down('targets-association').setCatalog(b);a.winAssociation.show()},onFinishAssociation:function(){var a=this;a.onCloseAssociation();a.loadCurrentSetting()},onCloseAssociation:function(){var a=this;if(a.winAssociation){a.winAssociation.close()}},onBeforeDeactivate:function(){var a=this;if(a.winAlertSetting!==null){a.winAlertSetting.close();a.winAlertSetting=null}if(a.wizard!==null){a.wizard.close();a.wizard=null}if(a.winComment!==null){a.winComment.close();a.winComment=null}if(a.winFilters!==null){a.winFilters.close();a.winFilters=null}if(a.winSaveAs!==null){a.winSaveAs.close();a.winSaveAs=null}if(a.winDownload!==null){a.winDownload.close();a.winDownload=null}if(a.winCutout!==null){a.winCutout.close();a.winCutout=null}if(a.winCutoutjobInfo!==null){a.winCutoutjobInfo.close();a.winCutoutjobInfo=null}},onClickFilter:function(){var a=this,b=a.getViewModel(),d=b.get('filterSet'),e=b.get('filters'),f=b.getStore('objects'),c=b.get('currentCatalog');if(a.winFilters!==null){a.winFilters.close();a.winFilters=null}a.winFilters=Ext.create('Target.view.objects.FiltersWindow',{listeners:{scope:a,applyfilters:'onWindowApplyFilters',disapplyfilters:'onWindowDisapplyFilters'}});a.winFilters.setCurrentCatalog(c);a.winFilters.setActiveFilter(a.activeFilter);a.winFilters.show()},onWindowApplyFilters:function(a){var b=this,f=[],c=b.getViewModel(),e=b.lookup('txtFilterSet'),d=c.get('currentCatalog');b.activeFilter=a;e.setValue(a.fst_name);c.set('filters',a.storeFilters);b.loadObjects(d.get('id'),a.storeFilters)},onWindowDisapplyFilters:function(){var a=this,c=a.getViewModel(),d=a.lookup('txtFilterSet'),b;b=Ext.create('Target.model.FilterSet',{});d.reset();c.set('filterSet',b);c.set('filters',null);a.activeFilter=null;a.loadObjects()},onClickComment:function(){var a=this,c=a.getView(),d=c.getViewModel(),b=d.get('currentRecord');if(a.winComment!==null){a.winComment.close();a.winComment=null}if(b&&b.get('_meta_id')!==null){a.winComment=Ext.create('Ext.window.Window',{title:'Comments',iconCls:'x-fa fa-comments',layout:'fit',closeAction:'destroy',constrainHeader:!0,width:500,height:300,modal:!0,items:[{xtype:'comments-object',listeners:{scope:this,changecomments:'onChangeInObjects'}}]});a.winComment.down('comments-object').setObject(b.get('_meta_catalog_id'),b.get('_meta_id'));a.winComment.show()}},applyDisapplyFilter:function(){var a=this;a.loadObjects()},applyFilter:function(a){var c=this,b=c.getViewModel(),d=b.getStore('filterConditions');if(a&&a.get('id')>0){d.addFilter({property:'filterset',value:a.get('id')});d.load({callback:function(){b.set('filters',this);c.loadObjects()}})}else {a=Ext.create('Target.model.FilterSet',{});b.set('filterSet',a);b.set('filters',null);c.loadObjects()}},switchMosaicGrid:function(b,d){var e=this,c=e.lookup('ObjectCardPanel'),a=c.getLayout();if(d){b.setIconCls('x-fa fa-th-list');a.next()}else {b.setIconCls('x-fa fa-th-large');a.prev()}},onClickSaveAs:function(){var a=this,d=a.getViewModel(),b=d.get('currentCatalog'),c=a.activeFilter;if(a.winSaveAs!==null){a.winSaveAs.close();a.winSaveAs=null}a.winSaveAs=Ext.create('Target.view.objects.SaveCatalogWindow',{});a.winSaveAs.setCurrentCatalog(b,c);a.winSaveAs.show()},onClickCreateCutouts:function(){var a=this,c=a.getViewModel(),e=c.getStore('objects'),b=c.get('currentSetting'),d=c.get('currentCatalog');if(a.winCutout!==null){a.winCutout.close();a.winCutout=null}a.winCutout=Ext.create('Target.view.settings.CutoutJobForm',{modal:!0,objectsCount:e.getTotalCount()});a.winCutout.setCurrentProduct(d);if(b&&b.get('id')>0){a.winCutout.setCurrentSetting(b)}a.winCutout.show()},onClickDownload:function(){var a=this,d=a.getViewModel(),b=d.get('currentCatalog'),c=a.activeFilter;if(a.winDownload!==null){a.winDownload.close();a.winDownload=null}a.winDownload=Ext.create('Target.view.objects.DownloadWindow',{});a.winDownload.setCurrentCatalog(b);a.winDownload.setFilter(c.id);a.winDownload.show()},reloadCutoutJobs:function(){var a=this,d=a.getViewModel(),b=a.lookup('cmbCutoutJob'),c=b.getStore();c.load()},onSelectCutoutJob:function(e){var c=this,f=c.getViewModel(),a=e.selection,d=c.lookup('TargetMosaic'),b=f.getStore('cutouts');if(a&&a.get('id')>0){b.addFilter([{property:'cjb_cutout_job',value:a.get('id')},{property:'ctt_file_type',value:'png'}]);b.load({callback:function(){d.setCutoutJob(a,this)}})}},onClickInfoCutoutJob:function(){var a=this,c=a.lookup('cmbCutoutJob'),b=c.selection;if(b&&b.get('id')>0){if(a.winCutoutjobInfo!==null){a.winCutoutjobInfo.close();a.winCutoutjobInfo=null}a.winCutoutjobInfo=Ext.create('Target.view.objects.CutoutJobDetailWindow',{width:300,height:420,title:b.get('cjb_display_name'),listeners:{scope:a,deletecutoutjob:'onDeleteCutoutjob'}});a.winCutoutjobInfo.setCutoutjob(b);a.winCutoutjobInfo.show()}},onDeleteCutoutjob:function(f,a){var b=this,d=b.lookup('cmbCutoutJob'),e=d.getStore(),h=b.getViewModel(),c=h.getStore('cutouts'),g=b.lookup('TargetMosaic');a.setLoading(!0);e.remove(f);e.sync({callback:function(){a.close();c.removeAll();c.clearFilter(!0);g.removeAll(!0);d.reset();a.setLoading(!1)}})},onCutoutDblClick:function(c,a,b){url=a;window.open(url,'_blank')}},0,0,0,0,['controller.objects'],0,[Target.view.objects,'ObjectsController'],0);Ext.cmd.derive('Target.view.objects.ObjectsModel',Ext.app.ViewModel,{data:{tag_id:0,field_id:0,catalog:0,filters:null,mosaic_is_visible:!1,haveResults:!1,haveFilter:!1},stores:{catalogs:{type:'catalogs',storeId:'Catalogs',autoLoad:!1},objects:{type:'targets-objects',storeId:'objects',autoLoad:!1},currentSettings:{type:'currentsettings',autoLoad:!1},displayContents:{type:'product-display-contents',autoLoad:!1},filterSets:{type:'target-filtersets',autoLoad:!1},filterConditions:{type:'target-filter-conditions',autoLoad:!1},cutouts:{type:'cutouts',autoLoad:!1}},links:{currentCatalog:{type:'Target.model.Catalog',create:!0},currentSetting:{type:'Target.model.CurrentSetting',create:!0},filterSet:{type:'Target.model.FilterSet',create:!0},currentRecord:{type:'Target.model.Object',create:!0}}},0,0,0,0,['viewmodel.objects'],0,[Target.view.objects,'ObjectsModel'],0);Ext.cmd.derive('Target.view.objects.Mosaic',Ext.panel.Panel,{scrollable:!0,columns:[Ext.create('Ext.grid.RowNumberer'),{text:'Tilename',dataIndex:'tilename',flex:1},{text:'Count',dataIndex:'num_objects',width:60}],config:{store:null,ready:!0,cutoutJob:null,labelProperties:[],cutouts:null,imagesFormat:'png'},setStore:function(a){this.store=a},setCutoutJob:function(c,e){var a=this,d=[],b;if(c&&c.get('id')>0){a.cutoutJob=c;a.setCutouts(e);b=c.get('cjb_label_properties');if(b&&b!==''){d=b.split(',');if(d.length>0){a.setLabelProperties(d);a.createView()}}else {a.createView()}}},createView:function(){var a=this,i=a.getStore(),c=a.getLabelProperties(),h=a.getCutoutJob(),e='',d='',b,f;if(a._view){a.remove(a._view);a._view=null}if(c&&c.length>0){b=a.createLabels();if(h.get('cjb_label_position')==='inside'){e=b.toString()}else {d=b.toString()}}f='
    '+e+''+d+'
    ';var j=Ext.create('Ext.XTemplate',f.toString(),{getImageSource:a.getImageSource,formatNumber:a.formatNumber},this);var g=Ext.create('Ext.view.View',{tpl:j,store:i,itemSelector:'div.thumb-wrap',emptyText:'Choose a CutoutJob',multiSelect:!1,trackOver:!0,overItemCls:'x-item-over',listeners:{scope:a,select:function(b,c,d){a.fireEvent('select',b,c,d)},itemdblclick:function(d,b){var c=a.getImageSource(b.get('_meta_id'));a.fireEvent('itemdblclick',b,c,a)}}});a._view=g;a.add(g)},getSelectionModel:function(){if(this._view){return this._view.getSelectionModel()}else {return null}},createLabels:function(){var b=this,a=b.getCutoutJob(),i=b.getLabelProperties(),g=[],f,c,e,h='',d='mosaic-labels-outside';if(a.get('cjb_label_position')==='inside'){d='mosaic-labels-inside'}if(a.get('cjb_label_colors')!==null){h=Ext.String.format('style="color:#{0}; font-size:{1}px;"',a.get('cjb_label_colors'),a.get('cjb_label_font_size'))}f='{1}: {[this.formatNumber(values.{1})]}',Ext.each(i,function(a){c=Ext.String.format(f,h,a);g.push(c)},b);e=Ext.String.format('
    {1}
    ',d,g.join('
    '));return e},getImageSource:function(e){var b=this,d=b.getCutouts(),c=b.getImagesFormat(),a;a=d.getImageSourceByObjectId(e,c,!0);return a},formatNumber:function(a){var c=5,d,b;if(typeof a==='number'){if(a.toString().indexOf('.')!=-1){d=a.toString().split('.');b=d[1];if(b){if(b.length>c){a=a.toFixed(c)}}}}else {if(typeof a==='string'){if(a.indexOf('.')!=-1){if(parseFloat(a)!='NaN'){a=parseFloat(a);d=a.toString().split('.');b=d[1];if(b){if(b.length>c){a=a.toFixed(c)}}}}}}return a}},0,['targets-objects-mosaic'],['component','box','container','panel','targets-objects-mosaic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-objects-mosaic':!0},['widget.targets-objects-mosaic'],0,[Target.view.objects,'Mosaic'],0);Ext.cmd.derive('Target.view.objects.Grid',Ext.grid.Panel,{config:{ready:!1,columnRating:!0,columnAccept:!0,columnComments:!0},emptyText:'No data to display.',initComponent:function(){var a=this;Ext.apply(this,{enableLocking:!0,syncRowHeight:!0,columns:[Ext.create('Ext.grid.RowNumberer'),{text:'',dataIndex:'',width:50},{text:'',dataIndex:'',flex:!0}],viewConfig:{stripeRows:!0,markDirty:!1,getRowClass:function(a){return a.get('_meta_reject')===!0?'rejected-row':''}}});Ext.grid.Panel.prototype.initComponent.apply(this,arguments)},reconfigureGrid:function(d,e){var a=this,b=[],c;b.push(Ext.create('Ext.grid.RowNumberer',{width:50,resizable:!0,locked:!0}));if(d.count()>0){c=!1;d.each(function(g){if(g.get('is_visible')){var f={text:a.createColumnText(g),dataIndex:g.get('column_name').toLowerCase(),tooltip:a.createColumnTooltip(g),renderer:a.formatNumber,lockable:!0};if(g.get('ucd')=='meta.id;meta.main'){f.lockable=!0;f.renderer=null;c=!0}if(g.get('column_name').toLowerCase()=='tilename'){f.width=120}if(g.get('ucd')==='pos.eq.ra;meta.main'||g.get('ucd')==='pos.eq.dec;meta.main'){f.width=90;f.xtype='numbercolumn';f.format='0.00000';f.renderer=null;f.lockable=!0}if(g.get('ucd')==='phys.angSize;src'){f.width=80;f.xtype='numbercolumn';f.format='0.000';f.renderer=null;f.lockable=!0}b.push(f)}},this);if(a.getColumnRating()&&c===!0){b.push({xtype:'widgetcolumn',width:90,sortable:!0,text:'Rating',dataIndex:'_meta_rating',tooltip:'Rating',widget:{xtype:'rating',minimum:0,scale:'115%',selectedStyle:'color: rgb(96, 169, 23);',style:{'color':'#777777'}}})}if(a.getColumnAccept()&&c===!0){b.push({xtype:'checkcolumn',text:'Reject',dataIndex:'_meta_reject',tooltip:'Reject',sortable:!0,width:80})}if(a.getColumnComments()&&c===!0){b.push({text:'Comments',dataIndex:'_meta_comments',tooltip:'Comments',align:'center',flex:1,sortable:!1,minWidth:80,renderer:function(b,c,f){var a='';if(b>0){if(b==1){a=' '}else {a=''}}return a}})}}else {b.push({text:'Placeholder',dataIndex:'',hidden:!0})}a.reconfigure(null,b);if(!e){a.setReady(!0);this.fireEvent('ready',this)}},getTypeColumn:function(a){switch(a){case 'integer':case 'real':case 'double precision':case 'bigint':case 'smallint':return 'number';case 'text':return 'string';}},createColumnText:function(a){var c=a.get('unit'),b=a.get('display_name');var d=c!=''?Ext.String.format('{0} ( {1} )',b,c):b;return d},createColumnTooltip:function(a){var b=new Ext.XTemplate('
    ','

    {display_name}

    ','','

    Name: {column_name}

    ','
    ','','

    Unit: {unit}

    ','
    ','','

    ucd: {ucd}

    ','
    ','','

    Reference: {reference}

    ','
    ','
    ');return b.apply(a.data)},formatNumber:function(a){var b=3,d,c;if(typeof a==='number'){if(a>10000){if(a.toString().indexOf('.')!=-1){a=a.toExponential(1)}}else {if(a.toString().indexOf('.')!=-1){d=a.toString().split('.');c=d[1];if(c.length>b){a=a.toFixed(b)}}}}return a}},0,['targets-objects-grid'],['component','box','container','panel','tablepanel','gridpanel','grid','targets-objects-grid'],{'component':!0,'box':!0,'container':!0,'panel':!0,'tablepanel':!0,'gridpanel':!0,'grid':!0,'targets-objects-grid':!0},['widget.targets-objects-grid'],0,[Target.view.objects,'Grid'],0);Ext.cmd.derive('Target.view.objects.TabPanel',Ext.panel.Panel,{config:{ready:!1},layout:'border',initComponent:function(){var a=this;Ext.apply(this,{items:[{xtype:'targets-objects-grid',itemId:'CatalogPropertiesGrid',bind:{store:'{objects}'},listeners:{scope:this,ready:this.onItemReady,select:this.onSelectItem},hidden:!0}],bbar:Ext.create('Ext.PagingToolbar',{reference:'pagingtoolbar',bind:{store:'{objects}'},displayInfo:!0,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display'})});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},setCatalogColumns:function(a){var b=this;grid=this.down('#CatalogPropertiesGrid');grid.reconfigureGrid(a)},setCatalogClassColumns:function(a){var b=this;grid=this.down('#CatalogClassGrid');grid.reconfigureGrid(a)},onItemReady:function(b){var a=this.isReady();if(a){this.setReady(a);this.fireEvent('ready',this)}},isReady:function(){var d=this,c=this.items,b=[],a=!0;c.each(function(a){b.push(a.getReady())});if(b.indexOf(!1)!=-1){a=!1}return a},showHideTilename:function(a){var b=this;b.down('#CatalogPropertiesGrid').showHideTilename(a);b.down('#CatalogClassGrid').showHideTilename(a)},onSelectItem:function(e,a,f){var g=this,d=this.down('#CatalogMosaic'),c=this.down('#CatalogClassGrid'),b=this.down('#CatalogPropertiesGrid');c.getSelectionModel().select(a,!1,!0);b.getSelectionModel().select(a,!1,!0);selmodelMosaic=d.getSelectionModel();if(selmodelMosaic){selmodelMosaic.select(a,!1,!0)}this.fireEvent('select',a,this)},onDbClickItem:function(b,a,c){this.fireEvent('rowdblclick',a,this)}},0,['targets-objects-tabpanel'],['component','box','container','panel','targets-objects-tabpanel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-objects-tabpanel':!0},['widget.targets-objects-tabpanel'],0,[Target.view.objects,'TabPanel'],0);Ext.cmd.derive('Target.view.preview.PreviewController',Ext.app.ViewController,{listen:{component:{'targets-preview':{changerecord:'onChangeRecord'},'targets-visiomatic':{changeimage:'showTarget'}},store:{'#datasets':{load:'onLoadDatasets'}}},onObjectMenuItemClickVisiomatic:function(b,a){this.onComment(b.latlng,a)},onImageMenuItemClickVisiomatic:function(b,a){this.onCommentPosition(b,a)},onChangeRecord:function(b){var g=this,e=g.getView(),c=e.getViewModel(),d=c.getStore('datasets'),h=b.get('_meta_ra'),f=b.get('_meta_dec'),a;c.set('overlayMembers',null);a=String(h)+','+String(f);d.addFilter([{property:'position',value:a}])},onLoadDatasets:function(c){var a=this,h=a.getView(),d=a.getReferences(),e=d.currentDataset,g=a.getViewModel(),f=g.get('currentCatalog'),b;if(c.count()==1){b=c.first();a.changeImage(b);e.select(b);e.setReadOnly(!0)}else {if(c.count()>1){if(f.get('release_id')>0){c.each(function(a){if(a.get('release')==f.get('release_id')){b=a;return !1}},this);if(b){a.changeImage(b);e.select(b)}else {a.changeImage(null)}}else {a.changeImage(c.first());e.select(c.first())}e.setReadOnly(!1)}else {a.changeImage(null)}}a.activeDataset=b;if(g.get('is_system')){d.btnRadius.setVisible(!0);d.btnMembers.setVisible(!0)}else {d.btnRadius.setVisible(!1);d.btnMembers.setVisible(!1)}},onChangeDataset:function(c){var b=this,d=b.getViewModel(),a=c.selection;d.set('currentDataset',a);b.changeImage(a)},changeImage:function(b){var e=this,a=e.lookupReference('visiomatic'),c,d;if(!a.imageLayer){d=JSON.parse(localStorage.getItem('imageOptions'))}if(b){if(a.getDataset()!=b.get('id')){a.setDataset(b.get('id'));a.setCurrentDataset(b);c=b.get('image_src_ptif');if(c!==''){a.setImage(c,d)}else {a.removeImageLayer()}}else {e.showTarget()}}else {a.removeImageLayer()}},showTarget:function(){var a=this,b=a.getViewModel(),d=b.get('currentRecord'),c=a.lookupReference('visiomatic');if(b.get('is_system')){a.targetIsSystem()}else {a.targetIsSingleObject()}},targetIsSingleObject:function(){var a=this,c=a.getViewModel(),e=c.get('currentRecord'),d=a.lookupReference('visiomatic'),b=a.lookup('BtnExplorer');a.onCenterTarget();b.disable()},targetIsSystem:function(){var a=this,h=a.getViewModel(),b=h.get('currentRecord'),c=a.lookupReference('visiomatic'),d=a.getReferences(),f=d.btnRadius,e=d.btnMembers;a.onCenterTarget();var g='arcmin';c.drawRadius(b.get('_meta_ra'),b.get('_meta_dec'),b.get('_meta_radius'),g);c.showHideRadius(f.pressed);if(e.pressed){a.loadSystemMembers()}},onCenterTarget:function(){var c=this,e=c.lookupReference('visiomatic'),d=c.getViewModel(),a=d.get('currentRecord'),b=0.05;if(d.get('is_system')){b=0.1}e.setView(a.get('_meta_ra'),a.get('_meta_dec'),b)},showHideRadius:function(f,c){var a=this,b=a.lookupReference('visiomatic'),d=a.getViewModel(),e=d.get('currentRecord'),g=0.05;b.showHideRadius(c)},onToggleCrosshair:function(d,f){var b=this,e=b.getViewModel(),a=e.get('currentRecord'),c=b.lookupReference('visiomatic');c.onToggleCrosshair(a.get('_meta_ra'),a.get('_meta_dec'),d)},onComment:function(h,a){var j=this,i=j.getView(),e=i.getViewModel(),d=e.get('currentRecord'),f=e.get('currentCatalog'),b,c;if(!d||!d.get('_meta_id')){return !1}if(a&&a.properties){c=a.properties._meta_catalog_id;b=a.id}else {c=f.get('id');b=d.get('_meta_id')}if(b>0){var g=Ext.create('Ext.window.Window',{title:'Comments',iconCls:'x-fa fa-comments',layout:'fit',closeAction:'destroy',constrainHeader:!0,width:500,height:300,autoShow:!0,onEsc:Ext.emptyFn,items:[{xtype:'comments-object',reference:'',listeners:{scope:this,changecomments:'onChangeComments'}}]});g.down('comments-object').getController().loadComments(c,b,h,a)}},onCommentPosition:function(c,b){var a=Ext.create('Ext.window.Window',{title:'Comments',iconCls:'x-fa fa-comments',layout:'fit',closeAction:'destroy',constrainHeader:!0,width:500,height:300,autoShow:!0,onEsc:Ext.emptyFn,items:[{xtype:'comments-position',listeners:{scope:this,changecomments:'onChangeComments'}}]});a.down('comments-position').getController().loadComments(c,b)},onChangeComments:function(a){var b=this,f=b.getView(),c=b.lookupReference('visiomatic'),e=b.getViewModel(),d=e.get('overlayMembers');if(a&&a.comment){c.updateComment(d,a.comment,a.total)}},loadSystemMembers:function(){var d=this,a=d.getViewModel(),f=a.get('currentCatalog'),i=a.get('currentRecord'),b=a.get('productRelated'),e=a.getStore('productRelateds'),c=a.getStore('members'),l=a.getStore('comments'),j=d.getReferences(),g=j.btnMembers,k,h=0;if(b.get('id')>0&&b.get('prl_product')===f.get('id')){c.clearFilter();c.removeAll(!0);c.getProxy().setExtraParam('product',b.get('prl_related'));if(b.get('prl_cross_identification')!==null&&b.get('prl_cross_identification')>0){g.setIconCls('x-fa fa-spinner fa-spin fa-fw');h++;c.addFilter({property:b.get('prl_cross_name'),value:i.get('_meta_id')});c.load({callback:function(){g.setIconCls('x-fa fa-dot-circle-o');d.onLoadSystemMembers(this)}})}}else {e.removeAll(!0);e.addFilter([{property:'prl_product',value:f.get('id')},{property:'prl_relation_type',value:'join'}]);e.load({callback:function(){if(this.count()>0){a.set('productRelated',this.first());d.loadSystemMembers()}}})}},onLoadSystemMembers:function(d){var b=this,e=b.getViewModel(),c=b.lookupReference('visiomatic'),a;a=c.overlayCatalog('System Members',d);e.set('overlayMembers',a)},showHideMembers:function(f,d){var a=this,b=a.lookupReference('visiomatic'),e=a.getViewModel(),c=e.get('overlayMembers');b.showHideLayer(c,d)},showHideComments:function(b,a){},showHideCrop:function(d,c){var b=this,a=b.lookupReference('visiomatic');Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - crop');a.initCrop()},onExplorer:function(){var i=this,a=i.getViewModel(),f=a.get('currentCatalog'),g=a.get('currentRecord'),e=window.location.protocol,h=window.location.host,b,d,c;if(a.get('is_system')===!0){b=f.get('prd_name');d=g.get('_meta_id');c=Ext.String.format('{0}//{1}/dri/apps/explorer/#system/{2}/{3}',e,h,b,d);window.open(c,'_blank')}else {console.log('Explorer single object')}},onSave:function(){var b=this,a=b.lookupReference('visiomatic');Ext.GlobalEvents.fireEvent('eventregister','TargetViewer - save_fits');a.showDownloadWindow()},onEvent:function(){Ext.GlobalEvents.fireEvent('eventregister','teste')}},0,0,0,0,['controller.preview'],0,[Target.view.preview,'PreviewController'],0);Ext.cmd.derive('Target.view.preview.PreviewModel',Ext.app.ViewModel,{data:{is_empty:!0,is_system:!1,overlayMembers:null},links:{currentRecord:{type:'Target.model.Object',create:!0},currentDataset:{type:'common.model.Dataset',create:!0},currentCatalog:{type:'Target.model.Catalog',create:!0},productRelated:{type:'Target.model.ProductRelated',create:!0}},stores:{releases:{type:'releases',storeId:'releases',autoLoad:!0},tags:{type:'tags',storeId:'tags',autoLoad:!0},datasets:{type:'datasets',storeId:'datasets'},members:{type:'targets-objects',autoLoad:!1,pageSize:0},productRelateds:{type:'product_relateds',autoLoad:!1},comments:{type:'comments-position',autoLoad:!1}}},0,0,0,0,['viewmodel.preview'],0,[Target.view.preview,'PreviewModel'],0);Ext.cmd.derive('Target.view.preview.Visiomatic',visiomatic.Visiomatic,{enableTools:!1,enableMiniMap:!0},0,['targets-visiomatic'],['component','box','container','panel','visiomatic','targets-visiomatic'],{'component':!0,'box':!0,'container':!0,'panel':!0,'visiomatic':!0,'targets-visiomatic':!0},['widget.targets-visiomatic'],0,[Target.view.preview,'Visiomatic'],0);Ext.cmd.derive('Target.view.preview.Preview',Ext.panel.Panel,{controller:'preview',viewModel:'preview',config:{currentRecord:null},layout:'fit',items:[{xtype:'targets-visiomatic',reference:'visiomatic',bind:{showCrosshair:'{BtnCrosshair.pressed}',hidden:'{is_empty}'},listeners:{objectMenuItemClick:'onObjectMenuItemClickVisiomatic',imageMenuItemClick:'onImageMenuItemClickVisiomatic'}}],dockedItems:[{xtype:'toolbar',dock:'top',items:[{xtype:'combobox',reference:'currentDataset',publishes:'id',width:250,displayField:'release_tag',bind:{store:'{datasets}',disabled:'{!currentRecord._meta_id}'},queryMode:'local',listConfig:{itemTpl:['
    {release_display_name} - {tag_display_name}
    ']},listeners:{change:'onChangeDataset'}},{xtype:'textfield',width:120,readOnly:!0,bind:{value:'{currentDataset.tli_tilename}'}}]},{xtype:'toolbar',dock:'top',items:[{xtype:'checkboxfield',reference:'btnReject',hideLabel:!0,boxLabel:'Reject',bind:{value:'{currentRecord._meta_reject}',disabled:'{is_empty}'}},{xtype:'tbtext',html:'Rating'},{xtype:'numberfield',maxValue:5,minValue:0,width:50,bind:{value:'{currentRecord._meta_rating}',disabled:'{is_empty}'}},{xtype:'button',text:'Explorer',tooltip:'See more information about this object in Explorer app',ui:'soft-blue',iconCls:'x-fa fa-info-circle',handler:'onExplorer',reference:'BtnExplorer',bind:{disabled:'{is_empty}'}},'-',{xtype:'button',iconCls:'x-fa fa-arrows',tooltip:'Center',handler:'onCenterTarget',bind:{disabled:'{is_empty}'}},{xtype:'button',iconCls:'x-fa fa-crosshairs',tooltip:'Show/Hide Crosshair',enableToggle:!0,pressed:!0,handler:'onToggleCrosshair',reference:'BtnCrosshair',bind:{disabled:'{is_empty}'}},{xtype:'button',reference:'btnComments',iconCls:'x-fa fa-comments',enableToggle:!0,toggleHandler:'showHideComments',tooltip:'Show/Hide Comments',pressed:!0,hidden:!0,bind:{disabled:'{is_empty}'}},{xtype:'button',reference:'btnCrop',iconCls:'x-fa fa-crop',enableToggle:!0,toggleHandler:'showHideCrop',tooltip:'Crop',bind:{disabled:'{is_empty}'},pressed:!0},{xtype:'button',reference:'btnSave',iconCls:'x-fa fa-download',handler:'onSave',tooltip:'Download',bind:{disabled:'{is_empty}'}},{xtype:'button',reference:'btnEvent',iconCls:'x-fa fa-download',handler:'onEvent',tooltip:'Event',hidden:!0},'-',{xtype:'button',reference:'btnRadius',iconCls:'x-fa fa-circle-o',tooltip:'Show System Radius',enableToggle:!0,toggleHandler:'showHideRadius',pressed:!0,hidden:!0,bind:{disabled:'{is_empty}'}},{xtype:'button',reference:'btnMembers',iconCls:'x-fa fa-dot-circle-o',tooltip:'Show System Members',enableToggle:!0,toggleHandler:'showHideMembers',pressed:!0,hidden:!0,bind:{disabled:'{is_empty}'}}]}],setCurrentRecord:function(a,d){var b=this,c=b.getViewModel();if(a&&a.get('_meta_catalog_id')!=null){b.currentRecord=a;c.set('currentRecord',a);c.set('is_empty',!1);c.set('currentCatalog',d);c.set('is_system',d.get('pcl_is_system'));b.fireEvent('changerecord',a,b)}},clear:function(){var d=this,a=d.getViewModel(),f=d.getReferences(),e=a.getStore('datasets'),c=a.getStore('members'),b=a.getStore('comments');e.clearData();f.currentDataset.clearValue();record=Ext.create('Target.model.Object',{});a.set('currentRecord',record);a.set('is_empty',!0);c.removeAll();c.clearFilter(!0);b.removeAll();b.clearFilter(!0)}},0,['targets-preview'],['component','box','container','panel','targets-preview'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-preview':!0},['widget.targets-preview'],0,[Target.view.preview,'Preview'],0);Ext.cmd.derive('Target.view.objects.Panel',Ext.panel.Panel,{controller:'objects',viewModel:'objects',config:{catalog:null,currentCatalog:null},layout:{type:'hbox',pack:'start',align:'stretch'},bind:{currentCatalog:'{currentCatalog}'},items:[{xtype:'panel',layout:'card',reference:'ObjectCardPanel',flex:1,border:!0,frame:!0,dockedItems:[{dock:'top',xtype:'toolbar',overflowHandler:'scroller',items:[{xtype:'tbtext',reference:'txtTargetTitle',html:'Sample Text Item',cls:'tb-text-target-title'},'->',{xtype:'button',iconCls:'x-fa fa-floppy-o',tooltip:'Save As',handler:'onClickSaveAs',bind:{disabled:'{!haveFilter}'}},{iconCls:'x-fa fa-download',tooltip:'Download',handler:'onClickDownload',bind:{disabled:'{!haveResults}'}},{xtype:'button',iconCls:'x-fa fa-commenting',tooltip:'Open Comments',bind:{disabled:'{!targetsObjectsGrid.selection}'},handler:'onClickComment'},{iconCls:'x-fa fa-picture-o',tooltip:'Create Mosaic',handler:'onClickCreateCutouts'},{xtype:'button',reference:'BtnSwitchMosaic',iconCls:'x-fa fa-th-large',tooltip:'Switching between Mosaic and Data Grid',enableToggle:!0,toggleHandler:'switchMosaicGrid',bind:{pressed:'{mosaic_is_visible}'}},{xtype:'fieldcontainer',layout:'hbox',defaults:{flex:1},items:[{xtype:'textfield',reference:'txtFilterSet',emptyText:'No filter',editable:!1}]},{xtype:'button',iconCls:'x-fa fa-filter',tooltip:'Filters',handler:'onClickFilter'},{xtype:'button',iconCls:'x-fa fa-gear',tooltip:'Settings',handler:'onClickSettings'}]}],items:[{xtype:'targets-objects-grid',reference:'targetsObjectsGrid',bind:{store:'{objects}'},listeners:{ready:'onGridObjectsReady',select:'onSelectObject'}},{xtype:'targets-objects-mosaic',reference:'TargetMosaic',bind:{store:'{objects}'},listeners:{select:'onSelectObject',itemdblclick:'onCutoutDblClick'},tbar:[{xtype:'combobox',reference:'cmbCutoutJob',emptyText:'Choose Cutout',displayField:'cjb_display_name',store:{type:'cutoutjobs'},listeners:{select:'onSelectCutoutJob'},editable:!1},{xtype:'button',iconCls:'x-fa fa-info',tooltip:'Information about mosaic',handler:'onClickInfoCutoutJob',bind:{disabled:'{!cmbCutoutJob.selection}'}}]}],bbar:[{xtype:'pagingtoolbar',reference:'pagingtoolbar',bind:{store:'{objects}'},displayInfo:!0,displayMsg:'Displaying {0} - {1} of {2}',emptyMsg:'No data to display'}]},{xtype:'targets-preview',reference:'targetsPreviewPanel',flex:1,border:!0,frame:!0,split:!0,listeners:{changeinobject:'onChangeInObjects',loadobjects:'onLoadObjects'}}],loadPanel:function(d){var a=this,c=this.getViewModel(),b=a.getCatalog();if(!b){console.log('Necessario um catalog id.');return !1}a.clearPanel();c.set('catalog',b);a.fireEvent('beforeLoadPanel',b,a)},updatePanel:function(e){var b=this,c=this.getViewModel(),g=c.get('catalog'),d=c.get('currentSetting'),f=c.get('currentCatalog'),a;if(e.length>=2){a=e[1];if(g!=a){b.clearPanel();c.set('catalog',a);b.fireEvent('beforeLoadPanel',a,b)}else {if(d&&d.get('id')>0){if(d.get('cst_product')!=f.get('id')){c.set('catalog',a);b.fireEvent('beforeLoadPanel',a,b)}}}}},setCurrentCatalog:function(a){var d=this,c=d.lookup('txtTargetTitle'),b='';if(a.get('id')>0){b=Ext.String.format('{0} - {1}',a.get('pcl_display_name'),a.get('prd_display_name'));if(b.length>30){b=a.get('prd_display_name')}c.setHtml(b)}},clearPanel:function(){var b=this,a=b.getViewModel(),i=b.down('targets-objects-grid'),m=b.lookup('ObjectCardPanel'),d=b.lookup('cmbCutoutJob'),l=b.lookup('BtnSwitchMosaic'),k=b.lookup('TargetMosaic'),e=d.getStore(),g=a.getStore('cutouts'),h=b.lookup('txtFilterSet'),c=a.getStore('displayContents'),j=b.lookup('targetsPreviewPanel'),f;a.getStore('catalogs').removeAll();a.getStore('catalogs').clearFilter(!0);a.getStore('objects').removeAll();a.getStore('objects').clearFilter(!0);a.getStore('currentSettings').removeAll();a.getStore('currentSettings').clearFilter(!0);c.removeAll();c.clearFilter(!0);i.reconfigureGrid(c,!0);e.removeAll();e.clearFilter(!0);g.removeAll();g.clearFilter(!0);k.removeAll(!0);if(d.selection!==null){d.reset()}l.setPressed(!1);f=Ext.create('Target.model.FilterSet',{});a.set('filterSet',f);a.set('filters',null);a.getStore('filterConditions').removeAll();a.getStore('filterConditions').clearFilter(!0);a.getStore('filterSets').removeAll();a.getStore('filterSets').clearFilter(!0);h.reset();b.activeFilter=null;j.clear()}},0,['targets-objects-panel'],['component','box','container','panel','targets-objects-panel'],{'component':!0,'box':!0,'container':!0,'panel':!0,'targets-objects-panel':!0},['widget.targets-objects-panel'],0,[Target.view.objects,'Panel'],0);Ext.cmd.derive('Target.view.main.MainController',Ext.app.ViewController,{routes:{'home':{action:'onHome'},'cv/:catalog':{action:'onCatalogViewByCatalogId'}},setActivePanel:function(e){var h=this,g=h.getReferences(),b=g.mainCardPanel,d=b.getLayout(),f=e.routeId,c=b.child('component[routeId='+f+']'),a=null;if(!c){a=b.add(e);a.loadPanel(arguments);d.setActiveItem(a)}else {a=c;a.updatePanel(arguments);d.setActiveItem(a)}},onHome:function(){var a=Ext.create('Target.view.home.Home',{hideMode:'offsets',routeId:'home',layout:'fit'});this.setActivePanel(a)},onCatalogViewByCatalogId:function(a){var b=Ext.create('Target.view.objects.Panel',{hideMode:'offsets',routeId:'cv',catalog:a});this.setActivePanel(b,a)}},0,0,0,0,['controller.main'],0,[Target.view.main,'MainController'],0);Ext.cmd.derive('Target.view.main.MainModel',Ext.app.ViewModel,{data:{name:'Target Viewer',internal_name:'target_viewer',help_url:'dri/apps/home/help/help-target-viewer/'}},0,0,0,0,['viewmodel.main'],0,[Target.view.main,'MainModel'],0);Ext.cmd.derive('Target.view.main.Main',Ext.container.Container,{controller:'main',viewModel:'main',plugins:'viewport',layout:{type:'vbox',align:'stretch'},items:[{xtype:'dri-header'},{xtype:'container',flex:1,reference:'mainCardPanel',layout:{type:'card',anchor:'100%'}},{xtype:'dri-footer'}]},0,['app-main'],['component','box','container','app-main'],{'component':!0,'box':!0,'container':!0,'app-main':!0},['widget.app-main'],0,[Target.view.main,'Main'],0);Ext.application({name:'Target',extend:Target.Application,mainView:'Target.view.main.Main'}); \ No newline at end of file diff --git a/frontend/build/production/Target/app.json b/frontend/build/production/Target/app.json index 87f119874..a304edfc6 100644 --- a/frontend/build/production/Target/app.json +++ b/frontend/build/production/Target/app.json @@ -1 +1 @@ -{"packages":{"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"visiomatic":{"css":true,"included":true,"namespace":"visiomatic","required":true,"requires":["ext","core","classic"],"version":"1.0.0"}},"js":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jquery-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic-src.js"},{"path":"app.js"}],"css":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot.css"},{"exclude":["fashion"],"path":"resources/Target-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"Target","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180129111124","cacheParam":"_dc"},"id":"85a0e2c2-ad9b-4f4a-84ed-649bd3f711fd","hash":"70f50cdc3765e798e3688dd28c68430a8779717f","profile":"","resources":{"path":"resources"}} \ No newline at end of file +{"packages":{"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"visiomatic":{"css":true,"included":true,"namespace":"visiomatic","required":true,"requires":["ext","core","classic"],"version":"1.0.0"}},"js":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jquery-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic-src.js"},{"path":"app.js"}],"css":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot.css"},{"exclude":["fashion"],"path":"resources/Target-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"Target","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180315162947","cacheParam":"_dc"},"id":"85a0e2c2-ad9b-4f4a-84ed-649bd3f711fd","hash":"81aada18b1b74d7bfc44c6effa88f1e82bcf6b50","profile":"","resources":{"path":"resources"}} \ No newline at end of file diff --git a/frontend/build/production/Target/app.jsonp b/frontend/build/production/Target/app.jsonp index 56730b140..6e4ba527b 100644 --- a/frontend/build/production/Target/app.jsonp +++ b/frontend/build/production/Target/app.jsonp @@ -1 +1 @@ -Ext.Microloader.setManifest({"packages":{"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"visiomatic":{"css":true,"included":true,"namespace":"visiomatic","required":true,"requires":["ext","core","classic"],"version":"1.0.0"}},"js":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jquery-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic-src.js"},{"path":"app.js"}],"css":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot.css"},{"exclude":["fashion"],"path":"resources/Target-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"Target","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180129111124","cacheParam":"_dc"},"id":"85a0e2c2-ad9b-4f4a-84ed-649bd3f711fd","hash":"70f50cdc3765e798e3688dd28c68430a8779717f","profile":"","resources":{"path":"resources"}}); \ No newline at end of file +Ext.Microloader.setManifest({"packages":{"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"common":{"css":true,"included":true,"required":true,"requires":["ext","core","classic","ux"],"version":"1.0.0"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-crisp":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"ux":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"visiomatic":{"css":true,"included":true,"namespace":"visiomatic","required":true,"requires":["ext","core","classic"],"version":"1.0.0"}},"js":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jquery-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot-min.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.js"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic-src.js"},{"path":"app.js"}],"css":[{"path":"packages/local/visiomatic/src/Leaflet/dist/leaflet.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/visiomatic.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/spectrum.css"},{"path":"packages/local/visiomatic/src/visiomatic/dist/jqplot.css"},{"exclude":["fashion"],"path":"resources/Target-all.css"}],"cache":{"enable":true,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"Target","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-crisp","loader":{"cache":"20180315162947","cacheParam":"_dc"},"id":"85a0e2c2-ad9b-4f4a-84ed-649bd3f711fd","hash":"81aada18b1b74d7bfc44c6effa88f1e82bcf6b50","profile":"","resources":{"path":"resources"}}); \ No newline at end of file diff --git a/frontend/build/testing/DynamicForm/app.js b/frontend/build/testing/DynamicForm/app.js new file mode 100644 index 000000000..ff214edf2 --- /dev/null +++ b/frontend/build/testing/DynamicForm/app.js @@ -0,0 +1,64313 @@ +var $jscomp = $jscomp || {}; +$jscomp.scope = {}; +$jscomp.defineProperty = typeof Object.defineProperties == 'function' ? Object.defineProperty : function(target, property, descriptor) { + descriptor = (descriptor); + if (target == Array.prototype || target == Object.prototype) { + return; + } + target[property] = descriptor.value; +}; +$jscomp.getGlobal = function(maybeGlobal) { + return typeof window != 'undefined' && window === maybeGlobal ? maybeGlobal : typeof global != 'undefined' && global != null ? global : maybeGlobal; +}; +$jscomp.global = $jscomp.getGlobal(this); +$jscomp.polyfill = function(target, polyfill, fromLang, toLang) { + if (!polyfill) { + return; + } + var obj = $jscomp.global; + var split = target.split('.'); + for (var i = 0; i < split.length - 1; i++) { + var key = split[i]; + if (!(key in obj)) { + obj[key] = {}; + } + obj = obj[key]; + } + var property = split[split.length - 1]; + var orig = obj[property]; + var impl = polyfill(orig); + if (impl == orig || impl == null) { + return; + } + $jscomp.defineProperty(obj, property, {configurable:true, writable:true, value:impl}); +}; +$jscomp.polyfill('Array.prototype.copyWithin', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(target, start, opt_end) { + var len = this.length; + target = Number(target); + start = Number(start); + opt_end = Number(opt_end != null ? opt_end : len); + if (target < start) { + opt_end = Math.min(opt_end, len); + while (start < opt_end) { + if (start in this) { + this[target++] = this[start++]; + } else { + delete this[target++]; + start++; + } + } + } else { + opt_end = Math.min(opt_end, len + start - target); + target += opt_end - start; + while (opt_end > start) { + if (--opt_end in this) { + this[--target] = this[opt_end]; + } else { + delete this[target]; + } + } + } + return this; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.SYMBOL_PREFIX = 'jscomp_symbol_'; +$jscomp.initSymbol = function() { + $jscomp.initSymbol = function() { + }; + if (!$jscomp.global['Symbol']) { + $jscomp.global['Symbol'] = $jscomp.Symbol; + } +}; +$jscomp.symbolCounter_ = 0; +$jscomp.Symbol = function(opt_description) { + return ($jscomp.SYMBOL_PREFIX + (opt_description || '') + $jscomp.symbolCounter_++); +}; +$jscomp.initSymbolIterator = function() { + $jscomp.initSymbol(); + var symbolIterator = $jscomp.global['Symbol'].iterator; + if (!symbolIterator) { + symbolIterator = $jscomp.global['Symbol'].iterator = $jscomp.global['Symbol']('iterator'); + } + if (typeof Array.prototype[symbolIterator] != 'function') { + $jscomp.defineProperty(Array.prototype, symbolIterator, {configurable:true, writable:true, value:function() { + return $jscomp.arrayIterator(this); + }}); + } + $jscomp.initSymbolIterator = function() { + }; +}; +$jscomp.arrayIterator = function(array) { + var index = 0; + return $jscomp.iteratorPrototype(function() { + if (index < array.length) { + return {done:false, value:array[index++]}; + } else { + return {done:true}; + } + }); +}; +$jscomp.iteratorPrototype = function(next) { + $jscomp.initSymbolIterator(); + var iterator = {next:next}; + iterator[$jscomp.global['Symbol'].iterator] = function() { + return this; + }; + return (iterator); +}; +$jscomp.iteratorFromArray = function(array, transform) { + $jscomp.initSymbolIterator(); + if (array instanceof String) { + array = array + ''; + } + var i = 0; + var iter = {next:function() { + if (i < array.length) { + var index = i++; + return {value:transform(index, array[index]), done:false}; + } + iter.next = function() { + return {done:true, value:void 0}; + }; + return iter.next(); + }}; + iter[Symbol.iterator] = function() { + return iter; + }; + return iter; +}; +$jscomp.polyfill('Array.prototype.entries', function(orig) { + if (orig) { + return orig; + } + var polyfill = function() { + return $jscomp.iteratorFromArray(this, function(i, v) { + return [i, v]; + }); + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Array.prototype.fill', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(value, opt_start, opt_end) { + var length = this.length || 0; + if (opt_start < 0) { + opt_start = Math.max(0, length + (opt_start)); + } + if (opt_end == null || opt_end > length) { + opt_end = length; + } + opt_end = Number(opt_end); + if (opt_end < 0) { + opt_end = Math.max(0, length + opt_end); + } + for (var i = Number(opt_start || 0); i < opt_end; i++) { + this[i] = value; + } + return this; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.findInternal = function(array, callback, thisArg) { + if (array instanceof String) { + array = (String(array)); + } + var len = array.length; + for (var i = 0; i < len; i++) { + var value = array[i]; + if (callback.call(thisArg, value, i, array)) { + return {i:i, v:value}; + } + } + return {i:-1, v:void 0}; +}; +$jscomp.polyfill('Array.prototype.find', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(callback, opt_thisArg) { + return $jscomp.findInternal(this, callback, opt_thisArg).v; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Array.prototype.findIndex', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(callback, opt_thisArg) { + return $jscomp.findInternal(this, callback, opt_thisArg).i; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Array.from', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(arrayLike, opt_mapFn, opt_thisArg) { + $jscomp.initSymbolIterator(); + opt_mapFn = opt_mapFn != null ? opt_mapFn : function(x) { + return x; + }; + var result = []; + var iteratorFunction = (arrayLike)[Symbol.iterator]; + if (typeof iteratorFunction == 'function') { + arrayLike = iteratorFunction.call(arrayLike); + var next; + while (!(next = arrayLike.next()).done) { + result.push(opt_mapFn.call((opt_thisArg), next.value)); + } + } else { + var len = arrayLike.length; + for (var i = 0; i < len; i++) { + result.push(opt_mapFn.call((opt_thisArg), arrayLike[i])); + } + } + return result; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Object.is', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(left, right) { + if (left === right) { + return left !== 0 || 1 / left === 1 / (right); + } else { + return left !== left && right !== right; + } + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Array.prototype.includes', function(orig) { + if (orig) { + return orig; + } + var includes = function(searchElement, opt_fromIndex) { + var array = this; + if (array instanceof String) { + array = (String(array)); + } + var len = array.length; + for (var i = opt_fromIndex || 0; i < len; i++) { + if (array[i] == searchElement || Object.is(array[i], searchElement)) { + return true; + } + } + return false; + }; + return includes; +}, 'es7', 'es3'); +$jscomp.polyfill('Array.prototype.keys', function(orig) { + if (orig) { + return orig; + } + var polyfill = function() { + return $jscomp.iteratorFromArray(this, function(i) { + return i; + }); + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Array.of', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(var_args) { + return Array.from(arguments); + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Array.prototype.values', function(orig) { + if (orig) { + return orig; + } + var polyfill = function() { + return $jscomp.iteratorFromArray(this, function(k, v) { + return v; + }); + }; + return polyfill; +}, 'es6', 'es3'); +$jscomp.makeIterator = function(iterable) { + $jscomp.initSymbolIterator(); + var iteratorFunction = (iterable)[Symbol.iterator]; + return iteratorFunction ? iteratorFunction.call(iterable) : $jscomp.arrayIterator((iterable)); +}; +$jscomp.EXPOSE_ASYNC_EXECUTOR = true; +$jscomp.FORCE_POLYFILL_PROMISE = false; +$jscomp.polyfill('Promise', function(NativePromise) { + if (NativePromise && !$jscomp.FORCE_POLYFILL_PROMISE) { + return NativePromise; + } + function AsyncExecutor() { + this.batch_ = null; + } + AsyncExecutor.prototype.asyncExecute = function(f) { + if (this.batch_ == null) { + this.batch_ = []; + this.asyncExecuteBatch_(); + } + this.batch_.push(f); + return this; + }; + AsyncExecutor.prototype.asyncExecuteBatch_ = function() { + var self = this; + this.asyncExecuteFunction(function() { + self.executeBatch_(); + }); + }; + var nativeSetTimeout = $jscomp.global['setTimeout']; + AsyncExecutor.prototype.asyncExecuteFunction = function(f) { + nativeSetTimeout(f, 0); + }; + AsyncExecutor.prototype.executeBatch_ = function() { + while (this.batch_ && this.batch_.length) { + var executingBatch = this.batch_; + this.batch_ = []; + for (var i = 0; i < executingBatch.length; ++i) { + var f = executingBatch[i]; + delete executingBatch[i]; + try { + f(); + } catch (error) { + this.asyncThrow_(error); + } + } + } + this.batch_ = null; + }; + AsyncExecutor.prototype.asyncThrow_ = function(exception) { + this.asyncExecuteFunction(function() { + throw exception; + }); + }; + var PromiseState = {PENDING:0, FULFILLED:1, REJECTED:2}; + var PolyfillPromise = function(executor) { + this.state_ = PromiseState.PENDING; + this.result_ = undefined; + this.onSettledCallbacks_ = []; + var resolveAndReject = this.createResolveAndReject_(); + try { + executor(resolveAndReject.resolve, resolveAndReject.reject); + } catch (e) { + resolveAndReject.reject(e); + } + }; + PolyfillPromise.prototype.createResolveAndReject_ = function() { + var thisPromise = this; + var alreadyCalled = false; + function firstCallWins(method) { + return function(x) { + if (!alreadyCalled) { + alreadyCalled = true; + method.call(thisPromise, x); + } + }; + } + return {resolve:firstCallWins(this.resolveTo_), reject:firstCallWins(this.reject_)}; + }; + PolyfillPromise.prototype.resolveTo_ = function(value) { + if (value === this) { + this.reject_(new TypeError('A Promise cannot resolve to itself')); + } else { + if (value instanceof PolyfillPromise) { + this.settleSameAsPromise_((value)); + } else { + if (isObject(value)) { + this.resolveToNonPromiseObj_((value)); + } else { + this.fulfill_(value); + } + } + } + }; + PolyfillPromise.prototype.resolveToNonPromiseObj_ = function(obj) { + var thenMethod = undefined; + try { + thenMethod = obj.then; + } catch (error) { + this.reject_(error); + return; + } + if (typeof thenMethod == 'function') { + this.settleSameAsThenable_(thenMethod, (obj)); + } else { + this.fulfill_(obj); + } + }; + function isObject(value) { + switch(typeof value) { + case 'object': + return value != null; + case 'function': + return true; + default: + return false; + } + } + PolyfillPromise.prototype.reject_ = function(reason) { + this.settle_(PromiseState.REJECTED, reason); + }; + PolyfillPromise.prototype.fulfill_ = function(value) { + this.settle_(PromiseState.FULFILLED, value); + }; + PolyfillPromise.prototype.settle_ = function(settledState, valueOrReason) { + if (this.state_ != PromiseState.PENDING) { + throw new Error('Cannot settle(' + settledState + ', ' + valueOrReason | '): Promise already settled in state' + this.state_); + } + this.state_ = settledState; + this.result_ = valueOrReason; + this.executeOnSettledCallbacks_(); + }; + PolyfillPromise.prototype.executeOnSettledCallbacks_ = function() { + if (this.onSettledCallbacks_ != null) { + var callbacks = this.onSettledCallbacks_; + for (var i = 0; i < callbacks.length; ++i) { + (callbacks[i]).call(); + callbacks[i] = null; + } + this.onSettledCallbacks_ = null; + } + }; + var asyncExecutor = new AsyncExecutor; + PolyfillPromise.prototype.settleSameAsPromise_ = function(promise) { + var methods = this.createResolveAndReject_(); + promise.callWhenSettled_(methods.resolve, methods.reject); + }; + PolyfillPromise.prototype.settleSameAsThenable_ = function(thenMethod, thenable) { + var methods = this.createResolveAndReject_(); + try { + thenMethod.call(thenable, methods.resolve, methods.reject); + } catch (error) { + methods.reject(error); + } + }; + PolyfillPromise.prototype.then = function(onFulfilled, onRejected) { + var resolveChild; + var rejectChild; + var childPromise = new PolyfillPromise(function(resolve, reject) { + resolveChild = resolve; + rejectChild = reject; + }); + function createCallback(paramF, defaultF) { + if (typeof paramF == 'function') { + return function(x) { + try { + resolveChild(paramF(x)); + } catch (error) { + rejectChild(error); + } + }; + } else { + return defaultF; + } + } + this.callWhenSettled_(createCallback(onFulfilled, resolveChild), createCallback(onRejected, rejectChild)); + return childPromise; + }; + PolyfillPromise.prototype['catch'] = function(onRejected) { + return this.then(undefined, onRejected); + }; + PolyfillPromise.prototype.callWhenSettled_ = function(onFulfilled, onRejected) { + var thisPromise = this; + function callback() { + switch(thisPromise.state_) { + case PromiseState.FULFILLED: + onFulfilled(thisPromise.result_); + break; + case PromiseState.REJECTED: + onRejected(thisPromise.result_); + break; + default: + throw new Error('Unexpected state: ' + thisPromise.state_); + } + } + if (this.onSettledCallbacks_ == null) { + asyncExecutor.asyncExecute(callback); + } else { + this.onSettledCallbacks_.push(function() { + asyncExecutor.asyncExecute(callback); + }); + } + }; + PolyfillPromise.resolve = function(opt_value) { + if (opt_value instanceof PolyfillPromise) { + return opt_value; + } else { + return new PolyfillPromise(function(resolve, reject) { + resolve(opt_value); + }); + } + }; + PolyfillPromise.reject = function(opt_reason) { + return new PolyfillPromise(function(resolve, reject) { + reject(opt_reason); + }); + }; + PolyfillPromise.race = function(thenablesOrValues) { + return new PolyfillPromise(function(resolve, reject) { + var iterator = $jscomp.makeIterator(thenablesOrValues); + for (var iterRec = iterator.next(); !iterRec.done; iterRec = iterator.next()) { + PolyfillPromise.resolve(iterRec.value).callWhenSettled_(resolve, reject); + } + }); + }; + PolyfillPromise.all = function(thenablesOrValues) { + var iterator = $jscomp.makeIterator(thenablesOrValues); + var iterRec = iterator.next(); + if (iterRec.done) { + return PolyfillPromise.resolve([]); + } else { + return new PolyfillPromise(function(resolveAll, rejectAll) { + var resultsArray = []; + var unresolvedCount = 0; + function onFulfilled(i) { + return function(ithResult) { + resultsArray[i] = ithResult; + unresolvedCount--; + if (unresolvedCount == 0) { + resolveAll(resultsArray); + } + }; + } + do { + resultsArray.push(undefined); + unresolvedCount++; + PolyfillPromise.resolve(iterRec.value).callWhenSettled_(onFulfilled(resultsArray.length - 1), rejectAll); + iterRec = iterator.next(); + } while (!iterRec.done); + }); + } + }; + if ($jscomp.EXPOSE_ASYNC_EXECUTOR) { + PolyfillPromise['$jscomp$new$AsyncExecutor'] = function() { + return new AsyncExecutor; + }; + } + return PolyfillPromise; +}, 'es6-impl', 'es3'); +$jscomp.executeAsyncGenerator = function(generator) { + function passValueToGenerator(value) { + return generator.next(value); + } + function passErrorToGenerator(error) { + return generator['throw'](error); + } + return new Promise(function(resolve, reject) { + function handleGeneratorRecord(genRec) { + if (genRec.done) { + resolve(genRec.value); + } else { + Promise.resolve(genRec.value).then(passValueToGenerator, passErrorToGenerator).then(handleGeneratorRecord, reject); + } + } + handleGeneratorRecord(generator.next()); + }); +}; +$jscomp.owns = function(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); +}; +$jscomp.polyfill('WeakMap', function(NativeWeakMap) { + function isConformant() { + if (!NativeWeakMap || !Object.seal) { + return false; + } + try { + var x = Object.seal({}); + var y = Object.seal({}); + var map = new (NativeWeakMap)([[x, 2], [y, 3]]); + if (map.get(x) != 2 || map.get(y) != 3) { + return false; + } + map['delete'](x); + map.set(y, 4); + return !map.has(x) && map.get(y) == 4; + } catch (err) { + return false; + } + } + if (isConformant()) { + return NativeWeakMap; + } + var prop = '$jscomp_hidden_' + Math.random().toString().substring(2); + function insert(target) { + if (!$jscomp.owns(target, prop)) { + var obj = {}; + $jscomp.defineProperty(target, prop, {value:obj}); + } + } + function patch(name) { + var prev = Object[name]; + if (prev) { + Object[name] = function(target) { + insert(target); + return prev(target); + }; + } + } + patch('freeze'); + patch('preventExtensions'); + patch('seal'); + var index = 0; + var PolyfillWeakMap = function(opt_iterable) { + this.id_ = (index += Math.random() + 1).toString(); + if (opt_iterable) { + $jscomp.initSymbol(); + $jscomp.initSymbolIterator(); + var iter = $jscomp.makeIterator(opt_iterable); + var entry; + while (!(entry = iter.next()).done) { + var item = entry.value; + this.set((item[0]), (item[1])); + } + } + }; + PolyfillWeakMap.prototype.set = function(key, value) { + insert(key); + if (!$jscomp.owns(key, prop)) { + throw new Error('WeakMap key fail: ' + key); + } + key[prop][this.id_] = value; + return this; + }; + PolyfillWeakMap.prototype.get = function(key) { + return $jscomp.owns(key, prop) ? key[prop][this.id_] : undefined; + }; + PolyfillWeakMap.prototype.has = function(key) { + return $jscomp.owns(key, prop) && $jscomp.owns(key[prop], this.id_); + }; + PolyfillWeakMap.prototype['delete'] = function(key) { + if (!$jscomp.owns(key, prop) || !$jscomp.owns(key[prop], this.id_)) { + return false; + } + return delete key[prop][this.id_]; + }; + return PolyfillWeakMap; +}, 'es6-impl', 'es3'); +$jscomp.MapEntry = function() { + this.previous; + this.next; + this.head; + this.key; + this.value; +}; +$jscomp.ASSUME_NO_NATIVE_MAP = false; +$jscomp.polyfill('Map', function(NativeMap) { + var isConformant = !$jscomp.ASSUME_NO_NATIVE_MAP && function() { + if (!NativeMap || !NativeMap.prototype.entries || typeof Object.seal != 'function') { + return false; + } + try { + NativeMap = (NativeMap); + var key = Object.seal({x:4}); + var map = new NativeMap($jscomp.makeIterator([[key, 's']])); + if (map.get(key) != 's' || map.size != 1 || map.get({x:4}) || map.set({x:4}, 't') != map || map.size != 2) { + return false; + } + var iter = map.entries(); + var item = iter.next(); + if (item.done || item.value[0] != key || item.value[1] != 's') { + return false; + } + item = iter.next(); + if (item.done || item.value[0].x != 4 || item.value[1] != 't' || !iter.next().done) { + return false; + } + return true; + } catch (err) { + return false; + } + }(); + if (isConformant) { + return NativeMap; + } + $jscomp.initSymbol(); + $jscomp.initSymbolIterator(); + var idMap = new WeakMap; + var PolyfillMap = function(opt_iterable) { + this.data_ = {}; + this.head_ = createHead(); + this.size = 0; + if (opt_iterable) { + var iter = $jscomp.makeIterator(opt_iterable); + var entry; + while (!(entry = iter.next()).done) { + var item = (entry).value; + this.set((item[0]), (item[1])); + } + } + }; + PolyfillMap.prototype.set = function(key, value) { + var r = maybeGetEntry(this, key); + if (!r.list) { + r.list = this.data_[r.id] = []; + } + if (!r.entry) { + r.entry = {next:this.head_, previous:this.head_.previous, head:this.head_, key:key, value:value}; + r.list.push(r.entry); + this.head_.previous.next = r.entry; + this.head_.previous = r.entry; + this.size++; + } else { + r.entry.value = value; + } + return this; + }; + PolyfillMap.prototype['delete'] = function(key) { + var r = maybeGetEntry(this, key); + if (r.entry && r.list) { + r.list.splice(r.index, 1); + if (!r.list.length) { + delete this.data_[r.id]; + } + r.entry.previous.next = r.entry.next; + r.entry.next.previous = r.entry.previous; + r.entry.head = null; + this.size--; + return true; + } + return false; + }; + PolyfillMap.prototype.clear = function() { + this.data_ = {}; + this.head_ = this.head_.previous = createHead(); + this.size = 0; + }; + PolyfillMap.prototype.has = function(key) { + return !!maybeGetEntry(this, key).entry; + }; + PolyfillMap.prototype.get = function(key) { + var entry = maybeGetEntry(this, key).entry; + return (entry && (entry.value)); + }; + PolyfillMap.prototype.entries = function() { + return makeIterator(this, function(entry) { + return [entry.key, entry.value]; + }); + }; + PolyfillMap.prototype.keys = function() { + return makeIterator(this, function(entry) { + return entry.key; + }); + }; + PolyfillMap.prototype.values = function() { + return makeIterator(this, function(entry) { + return entry.value; + }); + }; + PolyfillMap.prototype.forEach = function(callback, opt_thisArg) { + var iter = this.entries(); + var item; + while (!(item = iter.next()).done) { + var entry = item.value; + callback.call((opt_thisArg), (entry[1]), (entry[0]), this); + } + }; + (PolyfillMap.prototype)[Symbol.iterator] = PolyfillMap.prototype.entries; + var maybeGetEntry = function(map, key) { + var id = getId(key); + var list = map.data_[id]; + if (list && $jscomp.owns(map.data_, id)) { + for (var index = 0; index < list.length; index++) { + var entry = list[index]; + if (key !== key && entry.key !== entry.key || key === entry.key) { + return {id:id, list:list, index:index, entry:entry}; + } + } + } + return {id:id, list:list, index:-1, entry:undefined}; + }; + var makeIterator = function(map, func) { + var entry = map.head_; + return $jscomp.iteratorPrototype(function() { + if (entry) { + while (entry.head != map.head_) { + entry = entry.previous; + } + while (entry.next != entry.head) { + entry = entry.next; + return {done:false, value:func(entry)}; + } + entry = null; + } + return {done:true, value:void 0}; + }); + }; + var createHead = function() { + var head = {}; + head.previous = head.next = head.head = head; + return head; + }; + var mapIndex = 0; + var getId = function(obj) { + var type = obj && typeof obj; + if (type == 'object' || type == 'function') { + obj = (obj); + if (!idMap.has(obj)) { + var id = '' + ++mapIndex; + idMap.set(obj, id); + return id; + } + return idMap.get(obj); + } + return 'p_' + obj; + }; + return PolyfillMap; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.acosh', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + x = Number(x); + return Math.log(x + Math.sqrt(x * x - 1)); + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.asinh', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + x = Number(x); + if (x === 0) { + return x; + } + var y = Math.log(Math.abs(x) + Math.sqrt(x * x + 1)); + return x < 0 ? -y : y; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.log1p', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + x = Number(x); + if (x < 0.25 && x > -0.25) { + var y = x; + var d = 1; + var z = x; + var zPrev = 0; + var s = 1; + while (zPrev != z) { + y *= x; + s *= -1; + z = (zPrev = z) + s * y / ++d; + } + return z; + } + return Math.log(1 + x); + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.atanh', function(orig) { + if (orig) { + return orig; + } + var log1p = Math.log1p; + var polyfill = function(x) { + x = Number(x); + return (log1p(x) - log1p(-x)) / 2; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.cbrt', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + if (x === 0) { + return x; + } + x = Number(x); + var y = Math.pow(Math.abs(x), 1 / 3); + return x < 0 ? -y : y; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.clz32', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + x = Number(x) >>> 0; + if (x === 0) { + return 32; + } + var result = 0; + if ((x & 4294901760) === 0) { + x <<= 16; + result += 16; + } + if ((x & 4278190080) === 0) { + x <<= 8; + result += 8; + } + if ((x & 4026531840) === 0) { + x <<= 4; + result += 4; + } + if ((x & 3221225472) === 0) { + x <<= 2; + result += 2; + } + if ((x & 2147483648) === 0) { + result++; + } + return result; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.cosh', function(orig) { + if (orig) { + return orig; + } + var exp = Math.exp; + var polyfill = function(x) { + x = Number(x); + return (exp(x) + exp(-x)) / 2; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.expm1', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + x = Number(x); + if (x < .25 && x > -.25) { + var y = x; + var d = 1; + var z = x; + var zPrev = 0; + while (zPrev != z) { + y *= x / ++d; + z = (zPrev = z) + y; + } + return z; + } + return Math.exp(x) - 1; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.hypot', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x, y, var_args) { + x = Number(x); + y = Number(y); + var i, z, sum; + var max = Math.max(Math.abs(x), Math.abs(y)); + for (i = 2; i < arguments.length; i++) { + max = Math.max(max, Math.abs(arguments[i])); + } + if (max > 1e100 || max < 1e-100) { + x = x / max; + y = y / max; + sum = x * x + y * y; + for (i = 2; i < arguments.length; i++) { + z = Number(arguments[i]) / max; + sum += z * z; + } + return Math.sqrt(sum) * max; + } else { + sum = x * x + y * y; + for (i = 2; i < arguments.length; i++) { + z = Number(arguments[i]); + sum += z * z; + } + return Math.sqrt(sum); + } + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.imul', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(a, b) { + a = Number(a); + b = Number(b); + var ah = a >>> 16 & 65535; + var al = a & 65535; + var bh = b >>> 16 & 65535; + var bl = b & 65535; + var lh = ah * bl + al * bh << 16 >>> 0; + return al * bl + lh | 0; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.log10', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + return Math.log(x) / Math.LN10; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.log2', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + return Math.log(x) / Math.LN2; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.sign', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + x = Number(x); + return x === 0 || isNaN(x) ? x : x > 0 ? 1 : -1; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.sinh', function(orig) { + if (orig) { + return orig; + } + var exp = Math.exp; + var polyfill = function(x) { + x = Number(x); + if (x === 0) { + return x; + } + return (exp(x) - exp(-x)) / 2; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.tanh', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + x = Number(x); + if (x === 0) { + return x; + } + var y = Math.exp(-2 * Math.abs(x)); + var z = (1 - y) / (1 + y); + return x < 0 ? -z : z; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Math.trunc', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + x = Number(x); + if (isNaN(x) || x === Infinity || x === -Infinity || x === 0) { + return x; + } + var y = Math.floor(Math.abs(x)); + return x < 0 ? -y : y; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Number.EPSILON', function(orig) { + return Math.pow(2, -52); +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Number.MAX_SAFE_INTEGER', function() { + return 9007199254740991; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Number.MIN_SAFE_INTEGER', function() { + return -9007199254740991; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Number.isFinite', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + if (typeof x !== 'number') { + return false; + } + return !isNaN(x) && x !== Infinity && x !== -Infinity; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Number.isInteger', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + if (!Number.isFinite(x)) { + return false; + } + return x === Math.floor(x); + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Number.isNaN', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + return typeof x === 'number' && isNaN(x); + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Number.isSafeInteger', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(x) { + return Number.isInteger(x) && Math.abs(x) <= Number.MAX_SAFE_INTEGER; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Object.assign', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(target, var_args) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + if (!source) { + continue; + } + for (var key in source) { + if ($jscomp.owns(source, key)) { + target[key] = source[key]; + } + } + } + return target; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('Object.entries', function(orig) { + if (orig) { + return orig; + } + var entries = function(obj) { + var result = []; + for (var key in obj) { + if ($jscomp.owns(obj, key)) { + result.push([key, obj[key]]); + } + } + return result; + }; + return entries; +}, 'es8', 'es3'); +$jscomp.polyfill('Object.getOwnPropertySymbols', function(orig) { + if (orig) { + return orig; + } + return function() { + return []; + }; +}, 'es6-impl', 'es5'); +$jscomp.polyfill('Reflect.ownKeys', function(orig) { + if (orig) { + return orig; + } + var symbolPrefix = 'jscomp_symbol_'; + function isSymbol(key) { + return key.substring(0, symbolPrefix.length) == symbolPrefix; + } + var polyfill = function(target) { + var keys = []; + var names = Object.getOwnPropertyNames(target); + var symbols = Object.getOwnPropertySymbols(target); + for (var i = 0; i < names.length; i++) { + (isSymbol(names[i]) ? symbols : keys).push(names[i]); + } + return keys.concat(symbols); + }; + return polyfill; +}, 'es6', 'es5'); +$jscomp.polyfill('Object.getOwnPropertyDescriptors', function(orig) { + if (orig) { + return orig; + } + var getOwnPropertyDescriptors = function(obj) { + var result = {}; + var keys = Reflect.ownKeys(obj); + for (var i = 0; i < keys.length; i++) { + result[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]); + } + return result; + }; + return getOwnPropertyDescriptors; +}, 'es8', 'es5'); +$jscomp.polyfill('Object.setPrototypeOf', function(orig) { + if (orig) { + return orig; + } + if (typeof ''.__proto__ != 'object') { + return null; + } + var polyfill = function(target, proto) { + target.__proto__ = proto; + if (target.__proto__ !== proto) { + throw new TypeError(target + ' is not extensible'); + } + return target; + }; + return polyfill; +}, 'es6', 'es5'); +$jscomp.polyfill('Object.values', function(orig) { + if (orig) { + return orig; + } + var values = function(obj) { + var result = []; + for (var key in obj) { + if ($jscomp.owns(obj, key)) { + result.push(obj[key]); + } + } + return result; + }; + return values; +}, 'es8', 'es3'); +$jscomp.polyfill('Reflect.apply', function(orig) { + if (orig) { + return orig; + } + var apply = Function.prototype.apply; + var polyfill = function(target, thisArg, argList) { + return apply.call(target, thisArg, argList); + }; + return polyfill; +}, 'es6', 'es3'); +$jscomp.polyfill('Reflect.construct', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(target, argList, opt_newTarget) { + if (opt_newTarget === undefined) { + opt_newTarget = target; + } + var proto = opt_newTarget.prototype || Object.prototype; + var obj = Object.create(proto); + var out = Reflect.apply(target, obj, argList); + return out || obj; + }; + return polyfill; +}, 'es6', 'es5'); +$jscomp.polyfill('Reflect.defineProperty', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(target, propertyKey, attributes) { + try { + Object.defineProperty(target, propertyKey, attributes); + var desc = Object.getOwnPropertyDescriptor(target, propertyKey); + if (!desc) { + return false; + } + return desc.configurable === (attributes.configurable || false) && desc.enumerable === (attributes.enumerable || false) && ('value' in desc ? desc.value === attributes.value && desc.writable === (attributes.writable || false) : desc.get === attributes.get && desc.set === attributes.set); + } catch (err) { + return false; + } + }; + return polyfill; +}, 'es6', 'es5'); +$jscomp.polyfill('Reflect.deleteProperty', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(target, propertyKey) { + if (!$jscomp.owns(target, propertyKey)) { + return true; + } + try { + return delete target[propertyKey]; + } catch (err) { + return false; + } + }; + return polyfill; +}, 'es6', 'es3'); +$jscomp.polyfill('Reflect.getOwnPropertyDescriptor', function(orig) { + return orig || Object.getOwnPropertyDescriptor; +}, 'es6', 'es5'); +$jscomp.polyfill('Reflect.getPrototypeOf', function(orig) { + return orig || Object.getPrototypeOf; +}, 'es6', 'es5'); +$jscomp.findDescriptor = function(target, propertyKey) { + var obj = target; + while (obj) { + var property = Reflect.getOwnPropertyDescriptor(obj, propertyKey); + if (property) { + return property; + } + obj = Reflect.getPrototypeOf(obj); + } + return undefined; +}; +$jscomp.polyfill('Reflect.get', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(target, propertyKey, opt_receiver) { + if (arguments.length <= 2) { + return target[propertyKey]; + } + var property = $jscomp.findDescriptor(target, propertyKey); + if (property) { + return property.get ? property.get.call(opt_receiver) : property.value; + } + return undefined; + }; + return polyfill; +}, 'es6', 'es5'); +$jscomp.polyfill('Reflect.has', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(target, propertyKey) { + return propertyKey in target; + }; + return polyfill; +}, 'es6', 'es3'); +$jscomp.polyfill('Reflect.isExtensible', function(orig) { + if (orig) { + return orig; + } + if (typeof Object.isExtensible == 'function') { + return Object.isExtensible; + } + return function() { + return true; + }; +}, 'es6', 'es3'); +$jscomp.polyfill('Reflect.preventExtensions', function(orig) { + if (orig) { + return orig; + } + if (typeof Object.preventExtensions != 'function') { + return function() { + return false; + }; + } + var polyfill = function(target) { + Object.preventExtensions(target); + return !Object.isExtensible(target); + }; + return polyfill; +}, 'es6', 'es3'); +$jscomp.polyfill('Reflect.set', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(target, propertyKey, value, opt_receiver) { + var property = $jscomp.findDescriptor(target, propertyKey); + if (!property) { + if (Reflect.isExtensible(target)) { + target[propertyKey] = value; + return true; + } + return false; + } + if (property.set) { + property.set.call(arguments.length > 3 ? opt_receiver : target, value); + return true; + } else { + if (property.writable && !Object.isFrozen(target)) { + target[propertyKey] = value; + return true; + } + } + return false; + }; + return polyfill; +}, 'es6', 'es5'); +$jscomp.polyfill('Reflect.setPrototypeOf', function(orig) { + if (orig) { + return orig; + } + if (typeof ''.__proto__ != 'object') { + return null; + } + var polyfill = function(target, proto) { + try { + target.__proto__ = proto; + return target.__proto__ === proto; + } catch (err) { + return false; + } + }; + return polyfill; +}, 'es6', 'es5'); +$jscomp.ASSUME_NO_NATIVE_SET = false; +$jscomp.polyfill('Set', function(NativeSet) { + var isConformant = !$jscomp.ASSUME_NO_NATIVE_SET && function() { + if (!NativeSet || !NativeSet.prototype.entries || typeof Object.seal != 'function') { + return false; + } + try { + NativeSet = (NativeSet); + var value = Object.seal({x:4}); + var set = new NativeSet($jscomp.makeIterator([value])); + if (!set.has(value) || set.size != 1 || set.add(value) != set || set.size != 1 || set.add({x:4}) != set || set.size != 2) { + return false; + } + var iter = set.entries(); + var item = iter.next(); + if (item.done || item.value[0] != value || item.value[1] != value) { + return false; + } + item = iter.next(); + if (item.done || item.value[0] == value || item.value[0].x != 4 || item.value[1] != item.value[0]) { + return false; + } + return iter.next().done; + } catch (err) { + return false; + } + }(); + if (isConformant) { + return NativeSet; + } + $jscomp.initSymbol(); + $jscomp.initSymbolIterator(); + var PolyfillSet = function(opt_iterable) { + this.map_ = new Map; + if (opt_iterable) { + var iter = $jscomp.makeIterator(opt_iterable); + var entry; + while (!(entry = iter.next()).done) { + var item = (entry).value; + this.add(item); + } + } + this.size = this.map_.size; + }; + PolyfillSet.prototype.add = function(value) { + this.map_.set(value, value); + this.size = this.map_.size; + return this; + }; + PolyfillSet.prototype['delete'] = function(value) { + var result = this.map_['delete'](value); + this.size = this.map_.size; + return result; + }; + PolyfillSet.prototype.clear = function() { + this.map_.clear(); + this.size = 0; + }; + PolyfillSet.prototype.has = function(value) { + return this.map_.has(value); + }; + PolyfillSet.prototype.entries = function() { + return this.map_.entries(); + }; + PolyfillSet.prototype.values = function() { + return this.map_.values(); + }; + PolyfillSet.prototype.keys = PolyfillSet.prototype.values; + (PolyfillSet.prototype)[Symbol.iterator] = PolyfillSet.prototype.values; + PolyfillSet.prototype.forEach = function(callback, opt_thisArg) { + var set = this; + this.map_.forEach(function(value) { + return callback.call((opt_thisArg), value, value, set); + }); + }; + return PolyfillSet; +}, 'es6-impl', 'es3'); +$jscomp.checkStringArgs = function(thisArg, arg, func) { + if (thisArg == null) { + throw new TypeError("The 'this' value for String.prototype." + func + ' must not be null or undefined'); + } + if (arg instanceof RegExp) { + throw new TypeError('First argument to String.prototype.' + func + ' must not be a regular expression'); + } + return thisArg + ''; +}; +$jscomp.polyfill('String.prototype.codePointAt', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(position) { + var string = $jscomp.checkStringArgs(this, null, 'codePointAt'); + var size = string.length; + position = Number(position) || 0; + if (!(position >= 0 && position < size)) { + return void 0; + } + position = position | 0; + var first = string.charCodeAt(position); + if (first < 55296 || first > 56319 || position + 1 === size) { + return first; + } + var second = string.charCodeAt(position + 1); + if (second < 56320 || second > 57343) { + return first; + } + return (first - 55296) * 1024 + second + 9216; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('String.prototype.endsWith', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(searchString, opt_position) { + var string = $jscomp.checkStringArgs(this, searchString, 'endsWith'); + searchString = searchString + ''; + if (opt_position === void 0) { + opt_position = string.length; + } + var i = Math.max(0, Math.min(opt_position | 0, string.length)); + var j = searchString.length; + while (j > 0 && i > 0) { + if (string[--i] != searchString[--j]) { + return false; + } + } + return j <= 0; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('String.fromCodePoint', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(var_args) { + var result = ''; + for (var i = 0; i < arguments.length; i++) { + var code = Number(arguments[i]); + if (code < 0 || code > 1114111 || code !== Math.floor(code)) { + throw new RangeError('invalid_code_point ' + code); + } + if (code <= 65535) { + result += String.fromCharCode(code); + } else { + code -= 65536; + result += String.fromCharCode(code >>> 10 & 1023 | 55296); + result += String.fromCharCode(code & 1023 | 56320); + } + } + return result; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('String.prototype.includes', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(searchString, opt_position) { + var string = $jscomp.checkStringArgs(this, searchString, 'includes'); + return string.indexOf(searchString, opt_position || 0) !== -1; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.polyfill('String.prototype.repeat', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(copies) { + var string = $jscomp.checkStringArgs(this, null, 'repeat'); + if (copies < 0 || copies > 1342177279) { + throw new RangeError('Invalid count value'); + } + copies = copies | 0; + var result = ''; + while (copies) { + if (copies & 1) { + result += string; + } + if (copies >>>= 1) { + string += string; + } + } + return result; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.stringPadding = function(padString, padLength) { + var padding = padString !== undefined ? String(padString) : ' '; + if (!(padLength > 0) || !padding) { + return ''; + } + var repeats = Math.ceil(padLength / padding.length); + return padding.repeat(repeats).substring(0, padLength); +}; +$jscomp.polyfill('String.prototype.padEnd', function(orig) { + if (orig) { + return orig; + } + var padEnd = function(targetLength, opt_padString) { + var string = $jscomp.checkStringArgs(this, null, 'padStart'); + var padLength = targetLength - string.length; + return string + $jscomp.stringPadding(opt_padString, padLength); + }; + return padEnd; +}, 'es8', 'es3'); +$jscomp.polyfill('String.prototype.padStart', function(orig) { + if (orig) { + return orig; + } + var padStart = function(targetLength, opt_padString) { + var string = $jscomp.checkStringArgs(this, null, 'padStart'); + var padLength = targetLength - string.length; + return $jscomp.stringPadding(opt_padString, padLength) + string; + }; + return padStart; +}, 'es8', 'es3'); +$jscomp.polyfill('String.prototype.startsWith', function(orig) { + if (orig) { + return orig; + } + var polyfill = function(searchString, opt_position) { + var string = $jscomp.checkStringArgs(this, searchString, 'startsWith'); + searchString = searchString + ''; + var strLen = string.length; + var searchLen = searchString.length; + var i = Math.max(0, Math.min((opt_position) | 0, string.length)); + var j = 0; + while (j < searchLen && i < strLen) { + if (string[i++] != searchString[j++]) { + return false; + } + } + return j >= searchLen; + }; + return polyfill; +}, 'es6-impl', 'es3'); +$jscomp.arrayFromIterator = function(iterator) { + var i; + var arr = []; + while (!(i = iterator.next()).done) { + arr.push(i.value); + } + return arr; +}; +$jscomp.arrayFromIterable = function(iterable) { + if (iterable instanceof Array) { + return iterable; + } else { + return $jscomp.arrayFromIterator($jscomp.makeIterator(iterable)); + } +}; +$jscomp.inherits = function(childCtor, parentCtor) { + function tempCtor() { + } + tempCtor.prototype = parentCtor.prototype; + childCtor.superClass_ = parentCtor.prototype; + childCtor.prototype = new tempCtor; + childCtor.prototype.constructor = childCtor; + for (var p in parentCtor) { + if (Object.defineProperties) { + var descriptor = Object.getOwnPropertyDescriptor(parentCtor, p); + if (descriptor) { + Object.defineProperty(childCtor, p, descriptor); + } + } else { + childCtor[p] = parentCtor[p]; + } + } +}; +$jscomp.polyfill('WeakSet', function(NativeWeakSet) { + function isConformant() { + if (!NativeWeakSet || !Object.seal) { + return false; + } + try { + var x = Object.seal({}); + var y = Object.seal({}); + var set = new (NativeWeakSet)([x]); + if (!set.has(x) || set.has(y)) { + return false; + } + set['delete'](x); + set.add(y); + return !set.has(x) && set.has(y); + } catch (err) { + return false; + } + } + if (isConformant()) { + return NativeWeakSet; + } + var PolyfillWeakSet = function(opt_iterable) { + this.map_ = new WeakMap; + if (opt_iterable) { + $jscomp.initSymbol(); + $jscomp.initSymbolIterator(); + var iter = $jscomp.makeIterator(opt_iterable); + var entry; + while (!(entry = iter.next()).done) { + var item = entry.value; + this.add(item); + } + } + }; + PolyfillWeakSet.prototype.add = function(elem) { + this.map_.set(elem, true); + return this; + }; + PolyfillWeakSet.prototype.has = function(elem) { + return this.map_.has(elem); + }; + PolyfillWeakSet.prototype['delete'] = function(elem) { + return this.map_['delete'](elem); + }; + return PolyfillWeakSet; +}, 'es6-impl', 'es3'); +try { + if (Array.prototype.values.toString().indexOf('[native code]') == -1) { + delete Array.prototype.values; + } +} catch (e) { +} +var Ext = Ext || {}; +(function() { + var global = this, objectPrototype = Object.prototype, toString = objectPrototype.toString, enumerables = ['valueOf', 'toLocaleString', 'toString', 'constructor'], emptyFn = function() { + }, privateFn = function() { + }, identityFn = function(o) { + return o; + }, callOverrideParent = function() { + var method = callOverrideParent.caller.caller; + return method.$owner.prototype[method.$name].apply(this, arguments); + }, manifest = Ext.manifest || {}, i, iterableRe = /\[object\s*(?:Array|Arguments|\w*Collection|\w*List|HTML\s+document\.all\s+class)\]/, MSDateRe = /^\\?\/Date\(([-+])?(\d+)(?:[+-]\d{4})?\)\\?\/$/; + Ext.global = global; + Ext.now = Date.now || (Date.now = function() { + return +new Date; + }); + Ext.ticks = global.performance && global.performance.now ? function() { + return performance.now(); + } : Ext.now; + Ext._startTime = Ext.ticks(); + emptyFn.$nullFn = identityFn.$nullFn = emptyFn.$emptyFn = identityFn.$identityFn = privateFn.$nullFn = true; + privateFn.$privacy = 'framework'; + Ext['suspendLayouts'] = Ext['resumeLayouts'] = emptyFn; + for (i in{toString:1}) { + enumerables = null; + } + Ext.enumerables = enumerables; + Ext.apply = function(object, config, defaults) { + if (defaults) { + Ext.apply(object, defaults); + } + if (object && config && typeof config === 'object') { + var i, j, k; + for (i in config) { + object[i] = config[i]; + } + if (enumerables) { + for (j = enumerables.length; j--;) { + k = enumerables[j]; + if (config.hasOwnProperty(k)) { + object[k] = config[k]; + } + } + } + } + return object; + }; + function addInstanceOverrides(target, owner, overrides) { + var name, value; + for (name in overrides) { + if (overrides.hasOwnProperty(name)) { + value = overrides[name]; + if (typeof value === 'function') { + if (owner.$className) { + value.name = owner.$className + '#' + name; + } + value.$name = name; + value.$owner = owner; + value.$previous = target.hasOwnProperty(name) ? target[name] : callOverrideParent; + } + target[name] = value; + } + } + } + Ext.buildSettings = Ext.apply({baseCSSPrefix:'x-'}, Ext.buildSettings || {}); + Ext.apply(Ext, {idSeed:0, idPrefix:'ext-', isSecure:/^https/i.test(window.location.protocol), enableGarbageCollector:false, enableListenerCollection:true, name:Ext.sandboxName || 'Ext', privateFn:privateFn, emptyFn:emptyFn, identityFn:identityFn, frameStartTime:Ext.now(), manifest:manifest, debugConfig:Ext.debugConfig || manifest.debug || {hooks:{'*':true}}, enableAria:true, enableAriaButtons:true, enableAriaPanels:true, startsWithHashRe:/^#/, validIdRe:/^[a-z_][a-z0-9\-_]*$/i, BLANK_IMAGE_URL:'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw\x3d\x3d', + makeIdSelector:function(id) { + if (!Ext.validIdRe.test(id)) { + Ext.raise('Invalid id selector: "' + id + '"'); + } + return '#' + id; + }, id:function(o, prefix) { + if (o && o.id) { + return o.id; + } + var id = (prefix || Ext.idPrefix) + ++Ext.idSeed; + if (o) { + o.id = id; + } + return id; + }, returnId:function(o) { + return o.getId(); + }, returnTrue:function() { + return true; + }, emptyString:new String, baseCSSPrefix:Ext.buildSettings.baseCSSPrefix, $eventNameMap:{}, $vendorEventRe:/^(Moz.+|MS.+|webkit.+)/, canonicalEventName:function(name) { + return Ext.$eventNameMap[name] || (Ext.$eventNameMap[name] = Ext.$vendorEventRe.test(name) ? name : name.toLowerCase()); + }, applyIf:function(object, config) { + var property; + if (object) { + for (property in config) { + if (object[property] === undefined) { + object[property] = config[property]; + } + } + } + return object; + }, destroy:function() { + var ln = arguments.length, i, arg; + for (i = 0; i < ln; i++) { + arg = arguments[i]; + if (arg) { + if (Ext.isArray(arg)) { + this.destroy.apply(this, arg); + } else { + if (Ext.isFunction(arg.destroy)) { + arg.destroy(); + } + } + } + } + return null; + }, destroyMembers:function(object) { + for (var ref, name, i = 1, a = arguments, len = a.length; i < len; i++) { + ref = object[name = a[i]]; + if (ref != null) { + object[name] = Ext.destroy(ref); + } + } + }, override:function(target, overrides) { + if (target.$isClass) { + target.override(overrides); + } else { + if (typeof target === 'function') { + Ext.apply(target.prototype, overrides); + } else { + var owner = target.self, privates; + if (owner && owner.$isClass) { + privates = overrides.privates; + if (privates) { + overrides = Ext.apply({}, overrides); + delete overrides.privates; + addInstanceOverrides(target, owner, privates); + } + addInstanceOverrides(target, owner, overrides); + } else { + Ext.apply(target, overrides); + } + } + } + return target; + }, valueFrom:function(value, defaultValue, allowBlank) { + return Ext.isEmpty(value, allowBlank) ? defaultValue : value; + }, isEmpty:function(value, allowEmptyString) { + return value == null || (!allowEmptyString ? value === '' : false) || Ext.isArray(value) && value.length === 0; + }, isArray:'isArray' in Array ? Array.isArray : function(value) { + return toString.call(value) === '[object Array]'; + }, isDate:function(value) { + return toString.call(value) === '[object Date]'; + }, isMSDate:function(value) { + if (!Ext.isString(value)) { + return false; + } + return MSDateRe.test(value); + }, isObject:toString.call(null) === '[object Object]' ? function(value) { + return value !== null && value !== undefined && toString.call(value) === '[object Object]' && value.ownerDocument === undefined; + } : function(value) { + return toString.call(value) === '[object Object]'; + }, isSimpleObject:function(value) { + return value instanceof Object && value.constructor === Object; + }, isPrimitive:function(value) { + var type = typeof value; + return type === 'string' || type === 'number' || type === 'boolean'; + }, isFunction:typeof document !== 'undefined' && typeof document.getElementsByTagName('body') === 'function' ? function(value) { + return !!value && toString.call(value) === '[object Function]'; + } : function(value) { + return !!value && typeof value === 'function'; + }, isNumber:function(value) { + return typeof value === 'number' && isFinite(value); + }, isNumeric:function(value) { + return !isNaN(parseFloat(value)) && isFinite(value); + }, isString:function(value) { + return typeof value === 'string'; + }, isBoolean:function(value) { + return typeof value === 'boolean'; + }, isElement:function(value) { + return value ? value.nodeType === 1 : false; + }, isTextNode:function(value) { + return value ? value.nodeName === '#text' : false; + }, isDefined:function(value) { + return typeof value !== 'undefined'; + }, isIterable:function(value) { + if (!value || typeof value.length !== 'number' || typeof value === 'string' || Ext.isFunction(value)) { + return false; + } + if (!value.propertyIsEnumerable) { + return !!value.item; + } + if (value.hasOwnProperty('length') && !value.propertyIsEnumerable('length')) { + return true; + } + return iterableRe.test(toString.call(value)); + }, isDebugEnabled:function(className, defaultEnabled) { + var debugConfig = Ext.debugConfig.hooks; + if (debugConfig.hasOwnProperty(className)) { + return debugConfig[className]; + } + var enabled = debugConfig['*'], prefixLength = 0; + if (defaultEnabled !== undefined) { + enabled = defaultEnabled; + } + if (!className) { + return enabled; + } + for (var prefix in debugConfig) { + var value = debugConfig[prefix]; + if (className.charAt(prefix.length) === '.') { + if (className.substring(0, prefix.length) === prefix) { + if (prefixLength < prefix.length) { + prefixLength = prefix.length; + enabled = value; + } + } + } + } + return enabled; + } || emptyFn, clone:function(item) { + if (item === null || item === undefined) { + return item; + } + if (item.nodeType && item.cloneNode) { + return item.cloneNode(true); + } + var type = toString.call(item), i, j, k, clone, key; + if (type === '[object Date]') { + return new Date(item.getTime()); + } + if (type === '[object Array]') { + i = item.length; + clone = []; + while (i--) { + clone[i] = Ext.clone(item[i]); + } + } else { + if (type === '[object Object]' && item.constructor === Object) { + clone = {}; + for (key in item) { + clone[key] = Ext.clone(item[key]); + } + if (enumerables) { + for (j = enumerables.length; j--;) { + k = enumerables[j]; + if (item.hasOwnProperty(k)) { + clone[k] = item[k]; + } + } + } + } + } + return clone || item; + }, getUniqueGlobalNamespace:function() { + var uniqueGlobalNamespace = this.uniqueGlobalNamespace, i; + if (uniqueGlobalNamespace === undefined) { + i = 0; + do { + uniqueGlobalNamespace = 'ExtBox' + ++i; + } while (global[uniqueGlobalNamespace] !== undefined); + global[uniqueGlobalNamespace] = Ext; + this.uniqueGlobalNamespace = uniqueGlobalNamespace; + } + return uniqueGlobalNamespace; + }, functionFactoryCache:{}, cacheableFunctionFactory:function() { + var me = this, args = Array.prototype.slice.call(arguments), cache = me.functionFactoryCache, idx, fn, ln; + if (Ext.isSandboxed) { + ln = args.length; + if (ln > 0) { + ln--; + args[ln] = 'var Ext\x3dwindow.' + Ext.name + ';' + args[ln]; + } + } + idx = args.join(''); + fn = cache[idx]; + if (!fn) { + fn = Function.prototype.constructor.apply(Function.prototype, args); + cache[idx] = fn; + } + return fn; + }, functionFactory:function() { + var args = Array.prototype.slice.call(arguments), ln; + if (Ext.isSandboxed) { + ln = args.length; + if (ln > 0) { + ln--; + args[ln] = 'var Ext\x3dwindow.' + Ext.name + ';' + args[ln]; + } + } + return Function.prototype.constructor.apply(Function.prototype, args); + }, Logger:{log:function(message, priority) { + if (message && global.console) { + if (!priority || !(priority in global.console)) { + priority = 'log'; + } + message = '[' + priority.toUpperCase() + '] ' + message; + global.console[priority](message); + } + }, verbose:function(message) { + this.log(message, 'verbose'); + }, info:function(message) { + this.log(message, 'info'); + }, warn:function(message) { + this.log(message, 'warn'); + }, error:function(message) { + throw new Error(message); + }, deprecate:function(message) { + this.log(message, 'warn'); + }} || {verbose:emptyFn, log:emptyFn, info:emptyFn, warn:emptyFn, error:function(message) { + throw new Error(message); + }, deprecate:emptyFn}, getElementById:function(id) { + return document.getElementById(id); + }, splitAndUnescape:function() { + var cache = {}; + return function(origin, delimiter) { + if (!origin) { + return []; + } else { + if (!delimiter) { + return [origin]; + } + } + var replaceRe = cache[delimiter] || (cache[delimiter] = new RegExp('\\\\' + delimiter, 'g')), result = [], parts, part; + parts = origin.split(delimiter); + while ((part = parts.shift()) !== undefined) { + while (part.charAt(part.length - 1) === '\\' && parts.length > 0) { + part = part + delimiter + parts.shift(); + } + part = part.replace(replaceRe, delimiter); + result.push(part); + } + return result; + }; + }()}); + Ext.returnTrue.$nullFn = Ext.returnId.$nullFn = true; +})(); +Ext.platformTags.modern = !(Ext.platformTags.classic = Ext.isClassic = true); +(function() { + function toString() { + var me = this, cls = me.sourceClass, method = me.sourceMethod, msg = me.msg; + if (method) { + if (msg) { + method += '(): '; + method += msg; + } else { + method += '()'; + } + } + if (cls) { + method = method ? cls + '.' + method : cls; + } + return method || msg || ''; + } + Ext.Error = function(config) { + if (Ext.isString(config)) { + config = {msg:config}; + } + var error = new Error; + Ext.apply(error, config); + error.message = error.message || error.msg; + error.toString = toString; + return error; + }; + Ext.apply(Ext.Error, {ignore:false, raise:function(err) { + err = err || {}; + if (Ext.isString(err)) { + err = {msg:err}; + } + var me = this, method = me.raise.caller, msg, name; + if (method === Ext.raise) { + method = method.caller; + } + if (method) { + if (!err.sourceMethod && (name = method.$name)) { + err.sourceMethod = name; + } + if (!err.sourceClass && (name = method.$owner) && (name = name.$className)) { + err.sourceClass = name; + } + } + if (me.handle(err) !== true) { + msg = toString.call(err); + Ext.log({msg:msg, level:'error', dump:err, stack:true}); + throw new Ext.Error(err); + } + }, handle:function() { + return this.ignore; + }}); +})(); +Ext.deprecated = function(suggestion) { + if (!suggestion) { + suggestion = ''; + } + function fail() { + Ext.raise('The method "' + fail.$owner.$className + '.' + fail.$name + '" has been removed. ' + suggestion); + } + return fail; + return Ext.emptyFn; +}; +Ext.raise = function() { + Ext.Error.raise.apply(Ext.Error, arguments); +}; +(function() { + if (typeof window === 'undefined') { + return; + } + var last = 0, notify = function() { + var cnt = Ext.log && Ext.log.counters, n = cnt && cnt.error + cnt.warn + cnt.info + cnt.log, msg; + if (n && last !== n) { + msg = []; + if (cnt.error) { + msg.push('Errors: ' + cnt.error); + } + if (cnt.warn) { + msg.push('Warnings: ' + cnt.warn); + } + if (cnt.info) { + msg.push('Info: ' + cnt.info); + } + if (cnt.log) { + msg.push('Log: ' + cnt.log); + } + window.status = '*** ' + msg.join(' -- '); + last = n; + } + }; + setInterval(notify, 1000); +})(); +Ext.Array = function() { + var arrayPrototype = Array.prototype, slice = arrayPrototype.slice, supportsSplice = function() { + var array = [], lengthBefore, j = 20; + if (!array.splice) { + return false; + } + while (j--) { + array.push('A'); + } + array.splice(15, 0, 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F', 'F'); + lengthBefore = array.length; + array.splice(13, 0, 'XXX'); + if (lengthBefore + 1 !== array.length) { + return false; + } + return true; + }(), supportsIndexOf = 'indexOf' in arrayPrototype, supportsSliceOnNodeList = true; + function stableSort(array, userComparator) { + var len = array.length, indices = new Array(len), i; + for (i = 0; i < len; i++) { + indices[i] = i; + } + indices.sort(function(index1, index2) { + return userComparator(array[index1], array[index2]) || index1 - index2; + }); + for (i = 0; i < len; i++) { + indices[i] = array[indices[i]]; + } + for (i = 0; i < len; i++) { + array[i] = indices[i]; + } + return array; + } + try { + if (typeof document !== 'undefined') { + slice.call(document.getElementsByTagName('body')); + } + } catch (e$0) { + supportsSliceOnNodeList = false; + } + var fixArrayIndex = function(array, index) { + return index < 0 ? Math.max(0, array.length + index) : Math.min(array.length, index); + }, replaceSim = function(array, index, removeCount, insert) { + var add = insert ? insert.length : 0, length = array.length, pos = fixArrayIndex(array, index); + if (pos === length) { + if (add) { + array.push.apply(array, insert); + } + } else { + var remove = Math.min(removeCount, length - pos), tailOldPos = pos + remove, tailNewPos = tailOldPos + add - remove, tailCount = length - tailOldPos, lengthAfterRemove = length - remove, i; + if (tailNewPos < tailOldPos) { + for (i = 0; i < tailCount; ++i) { + array[tailNewPos + i] = array[tailOldPos + i]; + } + } else { + if (tailNewPos > tailOldPos) { + for (i = tailCount; i--;) { + array[tailNewPos + i] = array[tailOldPos + i]; + } + } + } + if (add && pos === lengthAfterRemove) { + array.length = lengthAfterRemove; + array.push.apply(array, insert); + } else { + array.length = lengthAfterRemove + add; + for (i = 0; i < add; ++i) { + array[pos + i] = insert[i]; + } + } + } + return array; + }, replaceNative = function(array, index, removeCount, insert) { + if (insert && insert.length) { + if (index === 0 && !removeCount) { + array.unshift.apply(array, insert); + } else { + if (index < array.length) { + array.splice.apply(array, [index, removeCount].concat(insert)); + } else { + array.push.apply(array, insert); + } + } + } else { + array.splice(index, removeCount); + } + return array; + }, eraseSim = function(array, index, removeCount) { + return replaceSim(array, index, removeCount); + }, eraseNative = function(array, index, removeCount) { + array.splice(index, removeCount); + return array; + }, spliceSim = function(array, index, removeCount) { + var pos = fixArrayIndex(array, index), removed = array.slice(index, fixArrayIndex(array, pos + removeCount)); + if (arguments.length < 4) { + replaceSim(array, pos, removeCount); + } else { + replaceSim(array, pos, removeCount, slice.call(arguments, 3)); + } + return removed; + }, spliceNative = function(array) { + return array.splice.apply(array, slice.call(arguments, 1)); + }, erase = supportsSplice ? eraseNative : eraseSim, replace = supportsSplice ? replaceNative : replaceSim, splice = supportsSplice ? spliceNative : spliceSim, ExtArray = {binarySearch:function(array, item, begin, end, compareFn) { + var length = array.length, middle, comparison; + if (begin instanceof Function) { + compareFn = begin; + begin = 0; + end = length; + } else { + if (end instanceof Function) { + compareFn = end; + end = length; + } else { + if (begin === undefined) { + begin = 0; + } + if (end === undefined) { + end = length; + } + compareFn = compareFn || ExtArray.lexicalCompare; + } + } + --end; + while (begin <= end) { + middle = begin + end >> 1; + comparison = compareFn(item, array[middle]); + if (comparison >= 0) { + begin = middle + 1; + } else { + if (comparison < 0) { + end = middle - 1; + } + } + } + return begin; + }, defaultCompare:function(lhs, rhs) { + return lhs < rhs ? -1 : lhs > rhs ? 1 : 0; + }, lexicalCompare:function(lhs, rhs) { + lhs = String(lhs); + rhs = String(rhs); + return lhs < rhs ? -1 : lhs > rhs ? 1 : 0; + }, each:function(array, fn, scope, reverse) { + array = ExtArray.from(array); + var i, ln = array.length; + if (reverse !== true) { + for (i = 0; i < ln; i++) { + if (fn.call(scope || array[i], array[i], i, array) === false) { + return i; + } + } + } else { + for (i = ln - 1; i > -1; i--) { + if (fn.call(scope || array[i], array[i], i, array) === false) { + return i; + } + } + } + return true; + }, forEach:'forEach' in arrayPrototype ? function(array, fn, scope) { + return array.forEach(fn, scope); + } : function(array, fn, scope) { + for (var i = 0, ln = array.length; i < ln; i++) { + fn.call(scope, array[i], i, array); + } + }, indexOf:supportsIndexOf ? function(array, item, from) { + return arrayPrototype.indexOf.call(array, item, from); + } : function(array, item, from) { + var i, length = array.length; + for (i = from < 0 ? Math.max(0, length + from) : from || 0; i < length; i++) { + if (array[i] === item) { + return i; + } + } + return -1; + }, contains:supportsIndexOf ? function(array, item) { + return arrayPrototype.indexOf.call(array, item) !== -1; + } : function(array, item) { + var i, ln; + for (i = 0, ln = array.length; i < ln; i++) { + if (array[i] === item) { + return true; + } + } + return false; + }, toArray:function(iterable, start, end) { + if (!iterable || !iterable.length) { + return []; + } + if (typeof iterable === 'string') { + iterable = iterable.split(''); + } + if (supportsSliceOnNodeList) { + return slice.call(iterable, start || 0, end || iterable.length); + } + var array = [], i; + start = start || 0; + end = end ? end < 0 ? iterable.length + end : end : iterable.length; + for (i = start; i < end; i++) { + array.push(iterable[i]); + } + return array; + }, pluck:function(array, propertyName) { + var ret = [], i, ln, item; + for (i = 0, ln = array.length; i < ln; i++) { + item = array[i]; + ret.push(item[propertyName]); + } + return ret; + }, map:'map' in arrayPrototype ? function(array, fn, scope) { + Ext.Assert.isFunction(fn, 'Ext.Array.map must have a callback function passed as second argument.'); + return array.map(fn, scope); + } : function(array, fn, scope) { + Ext.Assert.isFunction(fn, 'Ext.Array.map must have a callback function passed as second argument.'); + var results = [], len = array.length, i; + for (i = 0; i < len; i++) { + results[i] = fn.call(scope, array[i], i, array); + } + return results; + }, every:'every' in arrayPrototype ? function(array, fn, scope) { + Ext.Assert.isFunction(fn, 'Ext.Array.every must have a callback function passed as second argument.'); + return array.every(fn, scope); + } : function(array, fn, scope) { + Ext.Assert.isFunction(fn, 'Ext.Array.every must have a callback function passed as second argument.'); + var i = 0, ln = array.length; + for (; i < ln; ++i) { + if (!fn.call(scope, array[i], i, array)) { + return false; + } + } + return true; + }, some:'some' in arrayPrototype ? function(array, fn, scope) { + Ext.Assert.isFunction(fn, 'Ext.Array.some must have a callback function passed as second argument.'); + return array.some(fn, scope); + } : function(array, fn, scope) { + Ext.Assert.isFunction(fn, 'Ext.Array.some must have a callback function passed as second argument.'); + var i = 0, ln = array.length; + for (; i < ln; ++i) { + if (fn.call(scope, array[i], i, array)) { + return true; + } + } + return false; + }, equals:function(array1, array2) { + var len1 = array1.length, len2 = array2.length, i; + if (array1 === array2) { + return true; + } + if (len1 !== len2) { + return false; + } + for (i = 0; i < len1; ++i) { + if (array1[i] !== array2[i]) { + return false; + } + } + return true; + }, clean:function(array) { + var results = [], i = 0, ln = array.length, item; + for (; i < ln; i++) { + item = array[i]; + if (!Ext.isEmpty(item)) { + results.push(item); + } + } + return results; + }, unique:function(array) { + var clone = [], i = 0, ln = array.length, item; + for (; i < ln; i++) { + item = array[i]; + if (ExtArray.indexOf(clone, item) === -1) { + clone.push(item); + } + } + return clone; + }, filter:'filter' in arrayPrototype ? function(array, fn, scope) { + Ext.Assert.isFunction(fn, 'Ext.Array.filter must have a filter function passed as second argument.'); + return array.filter(fn, scope); + } : function(array, fn, scope) { + Ext.Assert.isFunction(fn, 'Ext.Array.filter must have a filter function passed as second argument.'); + var results = [], i = 0, ln = array.length; + for (; i < ln; i++) { + if (fn.call(scope, array[i], i, array)) { + results.push(array[i]); + } + } + return results; + }, findBy:function(array, fn, scope) { + var i = 0, len = array.length; + for (; i < len; i++) { + if (fn.call(scope || array, array[i], i)) { + return array[i]; + } + } + return null; + }, from:function(value, newReference) { + if (value === undefined || value === null) { + return []; + } + if (Ext.isArray(value)) { + return newReference ? slice.call(value) : value; + } + var type = typeof value; + if (value && value.length !== undefined && type !== 'string' && (type !== 'function' || !value.apply)) { + return ExtArray.toArray(value); + } + return [value]; + }, remove:function(array, item) { + var index = ExtArray.indexOf(array, item); + if (index !== -1) { + erase(array, index, 1); + } + return array; + }, removeAt:function(array, index, count) { + var len = array.length; + if (index >= 0 && index < len) { + count = count || 1; + count = Math.min(count, len - index); + erase(array, index, count); + } + return array; + }, include:function(array, item) { + if (!ExtArray.contains(array, item)) { + array.push(item); + } + }, clone:function(array) { + return slice.call(array); + }, merge:function() { + var args = slice.call(arguments), array = [], i, ln; + for (i = 0, ln = args.length; i < ln; i++) { + array = array.concat(args[i]); + } + return ExtArray.unique(array); + }, intersect:function() { + var intersection = [], arrays = slice.call(arguments), arraysLength, array, arrayLength, minArray, minArrayIndex, minArrayCandidate, minArrayLength, element, elementCandidate, elementCount, i, j, k; + if (!arrays.length) { + return intersection; + } + arraysLength = arrays.length; + for (i = minArrayIndex = 0; i < arraysLength; i++) { + minArrayCandidate = arrays[i]; + if (!minArray || minArrayCandidate.length < minArray.length) { + minArray = minArrayCandidate; + minArrayIndex = i; + } + } + minArray = ExtArray.unique(minArray); + erase(arrays, minArrayIndex, 1); + minArrayLength = minArray.length; + arraysLength = arrays.length; + for (i = 0; i < minArrayLength; i++) { + element = minArray[i]; + elementCount = 0; + for (j = 0; j < arraysLength; j++) { + array = arrays[j]; + arrayLength = array.length; + for (k = 0; k < arrayLength; k++) { + elementCandidate = array[k]; + if (element === elementCandidate) { + elementCount++; + break; + } + } + } + if (elementCount === arraysLength) { + intersection.push(element); + } + } + return intersection; + }, difference:function(arrayA, arrayB) { + var clone = slice.call(arrayA), ln = clone.length, i, j, lnB; + for (i = 0, lnB = arrayB.length; i < lnB; i++) { + for (j = 0; j < ln; j++) { + if (clone[j] === arrayB[i]) { + erase(clone, j, 1); + j--; + ln--; + } + } + } + return clone; + }, reduce:Array.prototype.reduce ? function(array, reduceFn, initialValue) { + if (arguments.length === 3) { + return Array.prototype.reduce.call(array, reduceFn, initialValue); + } + return Array.prototype.reduce.call(array, reduceFn); + } : function(array, reduceFn, initialValue) { + array = Object(array); + if (!Ext.isFunction(reduceFn)) { + Ext.raise('Invalid parameter: expected a function.'); + } + var index = 0, length = array.length >>> 0, reduced = initialValue; + if (arguments.length < 3) { + while (true) { + if (index in array) { + reduced = array[index++]; + break; + } + if (++index >= length) { + throw new TypeError('Reduce of empty array with no initial value'); + } + } + } + for (; index < length; ++index) { + if (index in array) { + reduced = reduceFn(reduced, array[index], index, array); + } + } + return reduced; + }, slice:[1, 2].slice(1, undefined).length ? function(array, begin, end) { + return slice.call(array, begin, end); + } : function(array, begin, end) { + if (typeof begin === 'undefined') { + return slice.call(array); + } + if (typeof end === 'undefined') { + return slice.call(array, begin); + } + return slice.call(array, begin, end); + }, sort:function(array, sortFn) { + return stableSort(array, sortFn || ExtArray.lexicalCompare); + }, flatten:function(array) { + var worker = []; + function rFlatten(a) { + var i, ln, v; + for (i = 0, ln = a.length; i < ln; i++) { + v = a[i]; + if (Ext.isArray(v)) { + rFlatten(v); + } else { + worker.push(v); + } + } + return worker; + } + return rFlatten(array); + }, min:function(array, comparisonFn) { + var min = array[0], i, ln, item; + for (i = 0, ln = array.length; i < ln; i++) { + item = array[i]; + if (comparisonFn) { + if (comparisonFn(min, item) === 1) { + min = item; + } + } else { + if (item < min) { + min = item; + } + } + } + return min; + }, max:function(array, comparisonFn) { + var max = array[0], i, ln, item; + for (i = 0, ln = array.length; i < ln; i++) { + item = array[i]; + if (comparisonFn) { + if (comparisonFn(max, item) === -1) { + max = item; + } + } else { + if (item > max) { + max = item; + } + } + } + return max; + }, mean:function(array) { + return array.length > 0 ? ExtArray.sum(array) / array.length : undefined; + }, sum:function(array) { + var sum = 0, i, ln, item; + for (i = 0, ln = array.length; i < ln; i++) { + item = array[i]; + sum += item; + } + return sum; + }, toMap:function(array, getKey, scope) { + var map = {}, i = array.length; + if (!getKey) { + while (i--) { + map[array[i]] = i + 1; + } + } else { + if (typeof getKey === 'string') { + while (i--) { + map[array[i][getKey]] = i + 1; + } + } else { + while (i--) { + map[getKey.call(scope, array[i])] = i + 1; + } + } + } + return map; + }, toValueMap:function(array, getKey, scope, arrayify) { + var map = {}, i = array.length, autoArray, alwaysArray, entry, fn, key, value; + if (!getKey) { + while (i--) { + value = array[i]; + map[value] = value; + } + } else { + if (!(fn = typeof getKey !== 'string')) { + arrayify = scope; + } + alwaysArray = arrayify === 1; + autoArray = arrayify === 2; + while (i--) { + value = array[i]; + key = fn ? getKey.call(scope, value) : value[getKey]; + if (alwaysArray) { + if (key in map) { + map[key].push(value); + } else { + map[key] = [value]; + } + } else { + if (autoArray && key in map) { + if ((entry = map[key]) instanceof Array) { + entry.push(value); + } else { + map[key] = [entry, value]; + } + } else { + map[key] = value; + } + } + } + } + return map; + }, _replaceSim:replaceSim, _spliceSim:spliceSim, erase:erase, insert:function(array, index, items) { + return replace(array, index, 0, items); + }, move:function(array, fromIdx, toIdx) { + if (toIdx === fromIdx) { + return; + } + var item = array[fromIdx], incr = toIdx > fromIdx ? 1 : -1, i; + for (i = fromIdx; i != toIdx; i += incr) { + array[i] = array[i + incr]; + } + array[toIdx] = item; + }, replace:replace, splice:splice, push:function(target) { + var len = arguments.length, i = 1, newItem; + if (target === undefined) { + target = []; + } else { + if (!Ext.isArray(target)) { + target = [target]; + } + } + for (; i < len; i++) { + newItem = arguments[i]; + Array.prototype.push[Ext.isIterable(newItem) ? 'apply' : 'call'](target, newItem); + } + return target; + }, numericSortFn:function(a, b) { + return a - b; + }}; + Ext.each = ExtArray.each; + ExtArray.union = ExtArray.merge; + Ext.min = ExtArray.min; + Ext.max = ExtArray.max; + Ext.sum = ExtArray.sum; + Ext.mean = ExtArray.mean; + Ext.flatten = ExtArray.flatten; + Ext.clean = ExtArray.clean; + Ext.unique = ExtArray.unique; + Ext.pluck = ExtArray.pluck; + Ext.toArray = function() { + return ExtArray.toArray.apply(ExtArray, arguments); + }; + return ExtArray; +}(); +Ext.Assert = {falsey:function(b, msg) { + if (b) { + Ext.raise(msg || 'Expected a falsey value but was ' + b); + } +}, falseyProp:function(object, property) { + Ext.Assert.truthy(object); + var b = object[property]; + if (b) { + if (object.$className) { + property = object.$className + '#' + property; + } + Ext.raise('Expected a falsey value for ' + property + ' but was ' + b); + } +}, truthy:function(b, msg) { + if (!b) { + Ext.raise(msg || 'Expected a truthy value but was ' + typeof b); + } +}, truthyProp:function(object, property) { + Ext.Assert.truthy(object); + var b = object[property]; + if (!b) { + if (object.$className) { + property = object.$className + '#' + property; + } + Ext.raise('Expected a truthy value for ' + property + ' but was ' + typeof b); + } +}}; +(function() { + function makeAssert(name, kind) { + var testFn = Ext[name], def; + return function(value, msg) { + if (!testFn(value)) { + Ext.raise(msg || def || (def = 'Expected value to be ' + kind)); + } + }; + } + function makeAssertProp(name, kind) { + var testFn = Ext[name], def; + return function(object, prop) { + Ext.Assert.truthy(object); + if (!testFn(object[prop])) { + Ext.raise(def || (def = 'Expected ' + (object.$className ? object.$className + '#' : '') + prop + ' to be ' + kind)); + } + }; + } + function makeNotAssert(name, kind) { + var testFn = Ext[name], def; + return function(value, msg) { + if (testFn(value)) { + Ext.raise(msg || def || (def = 'Expected value to NOT be ' + kind)); + } + }; + } + function makeNotAssertProp(name, kind) { + var testFn = Ext[name], def; + return function(object, prop) { + Ext.Assert.truthy(object); + if (testFn(object[prop])) { + Ext.raise(def || (def = 'Expected ' + (object.$className ? object.$className + '#' : '') + prop + ' to NOT be ' + kind)); + } + }; + } + for (var name in Ext) { + if (name.substring(0, 2) == 'is' && Ext.isFunction(Ext[name])) { + var kind = name.substring(2); + Ext.Assert[name] = makeAssert(name, kind); + Ext.Assert[name + 'Prop'] = makeAssertProp(name, kind); + Ext.Assert['isNot' + kind] = makeNotAssert(name, kind); + Ext.Assert['isNot' + kind + 'Prop'] = makeNotAssertProp(name, kind); + } + } +})(); +Ext.String = function() { + var trimRegex = /^[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+|[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+$/g, escapeRe = /('|\\)/g, escapeRegexRe = /([-.*+?\^${}()|\[\]\/\\])/g, basicTrimRe = /^\s+|\s+$/g, whitespaceRe = /\s+/, varReplace = /(^[^a-z]*|[^\w])/gi, charToEntity, entityToChar, charToEntityRegex, + entityToCharRegex, htmlEncodeReplaceFn = function(match, capture) { + return charToEntity[capture]; + }, htmlDecodeReplaceFn = function(match, capture) { + return capture in entityToChar ? entityToChar[capture] : String.fromCharCode(parseInt(capture.substr(2), 10)); + }, boundsCheck = function(s, other) { + if (s === null || s === undefined || other === null || other === undefined) { + return false; + } + return other.length <= s.length; + }, ExtString; + return ExtString = {insert:function(s, value, index) { + if (!s) { + return value; + } + if (!value) { + return s; + } + var len = s.length; + if (!index && index !== 0) { + index = len; + } + if (index < 0) { + index *= -1; + if (index >= len) { + index = 0; + } else { + index = len - index; + } + } + if (index === 0) { + s = value + s; + } else { + if (index >= s.length) { + s += value; + } else { + s = s.substr(0, index) + value + s.substr(index); + } + } + return s; + }, startsWith:function(s, start, ignoreCase) { + var result = boundsCheck(s, start); + if (result) { + if (ignoreCase) { + s = s.toLowerCase(); + start = start.toLowerCase(); + } + result = s.lastIndexOf(start, 0) === 0; + } + return result; + }, endsWith:function(s, end, ignoreCase) { + var result = boundsCheck(s, end); + if (result) { + if (ignoreCase) { + s = s.toLowerCase(); + end = end.toLowerCase(); + } + result = s.indexOf(end, s.length - end.length) !== -1; + } + return result; + }, createVarName:function(s) { + return s.replace(varReplace, ''); + }, htmlEncode:function(value) { + return !value ? value : String(value).replace(charToEntityRegex, htmlEncodeReplaceFn); + }, htmlDecode:function(value) { + return !value ? value : String(value).replace(entityToCharRegex, htmlDecodeReplaceFn); + }, hasHtmlCharacters:function(s) { + return charToEntityRegex.test(s); + }, addCharacterEntities:function(newEntities) { + var charKeys = [], entityKeys = [], key, echar; + for (key in newEntities) { + echar = newEntities[key]; + entityToChar[key] = echar; + charToEntity[echar] = key; + charKeys.push(echar); + entityKeys.push(key); + } + charToEntityRegex = new RegExp('(' + charKeys.join('|') + ')', 'g'); + entityToCharRegex = new RegExp('(' + entityKeys.join('|') + '|\x26#[0-9]{1,5};' + ')', 'g'); + }, resetCharacterEntities:function() { + charToEntity = {}; + entityToChar = {}; + this.addCharacterEntities({'\x26amp;':'\x26', '\x26gt;':'\x3e', '\x26lt;':'\x3c', '\x26quot;':'"', '\x26#39;':"'"}); + }, urlAppend:function(url, string) { + if (!Ext.isEmpty(string)) { + return url + (url.indexOf('?') === -1 ? '?' : '\x26') + string; + } + return url; + }, trim:function(string) { + if (string) { + string = string.replace(trimRegex, ''); + } + return string || ''; + }, capitalize:function(string) { + if (string) { + string = string.charAt(0).toUpperCase() + string.substr(1); + } + return string || ''; + }, uncapitalize:function(string) { + if (string) { + string = string.charAt(0).toLowerCase() + string.substr(1); + } + return string || ''; + }, ellipsis:function(value, length, word) { + if (value && value.length > length) { + if (word) { + var vs = value.substr(0, length - 2), index = Math.max(vs.lastIndexOf(' '), vs.lastIndexOf('.'), vs.lastIndexOf('!'), vs.lastIndexOf('?')); + if (index !== -1 && index >= length - 15) { + return vs.substr(0, index) + '...'; + } + } + return value.substr(0, length - 3) + '...'; + } + return value; + }, escapeRegex:function(string) { + return string.replace(escapeRegexRe, '\\$1'); + }, createRegex:function(value, startsWith, endsWith, ignoreCase) { + var ret = value; + if (value != null && !value.exec) { + ret = ExtString.escapeRegex(String(value)); + if (startsWith !== false) { + ret = '^' + ret; + } + if (endsWith !== false) { + ret += '$'; + } + ret = new RegExp(ret, ignoreCase !== false ? 'i' : ''); + } + return ret; + }, escape:function(string) { + return string.replace(escapeRe, '\\$1'); + }, toggle:function(string, value, other) { + return string === value ? other : value; + }, leftPad:function(string, size, character) { + var result = String(string); + character = character || ' '; + while (result.length < size) { + result = character + result; + } + return result; + }, repeat:function(pattern, count, sep) { + if (count < 1) { + count = 0; + } + for (var buf = [], i = count; i--;) { + buf.push(pattern); + } + return buf.join(sep || ''); + }, splitWords:function(words) { + if (words && typeof words == 'string') { + return words.replace(basicTrimRe, '').split(whitespaceRe); + } + return words || []; + }}; +}(); +Ext.String.resetCharacterEntities(); +Ext.htmlEncode = Ext.String.htmlEncode; +Ext.htmlDecode = Ext.String.htmlDecode; +Ext.urlAppend = Ext.String.urlAppend; +Ext.Date = function() { + var utilDate, nativeDate = Date, stripEscapeRe = /(\\.)/g, hourInfoRe = /([gGhHisucUOPZ]|MS)/, dateInfoRe = /([djzmnYycU]|MS)/, slashRe = /\\/gi, numberTokenRe = /\{(\d+)\}/g, MSFormatRe = new RegExp('\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/'), pad = Ext.String.leftPad, code = ['var me \x3d this, dt, y, m, d, h, i, s, ms, o, O, z, zz, u, v, W, year, jan4, week1monday, daysInMonth, dayMatched,', 'def \x3d me.defaults,', 'from \x3d Ext.Number.from,', 'results \x3d String(input).match(me.parseRegexes[{0}]);', + 'if(results){', '{1}', 'if(u !\x3d null){', 'v \x3d new Date(u * 1000);', '}else{', 'dt \x3d me.clearTime(new Date);', 'y \x3d from(y, from(def.y, dt.getFullYear()));', 'm \x3d from(m, from(def.m - 1, dt.getMonth()));', 'dayMatched \x3d d !\x3d\x3d undefined;', 'd \x3d from(d, from(def.d, dt.getDate()));', 'if (!dayMatched) {', 'dt.setDate(1);', 'dt.setMonth(m);', 'dt.setFullYear(y);', 'daysInMonth \x3d me.getDaysInMonth(dt);', 'if (d \x3e daysInMonth) {', 'd \x3d daysInMonth;', '}', '}', 'h \x3d from(h, from(def.h, dt.getHours()));', + 'i \x3d from(i, from(def.i, dt.getMinutes()));', 's \x3d from(s, from(def.s, dt.getSeconds()));', 'ms \x3d from(ms, from(def.ms, dt.getMilliseconds()));', 'if(z \x3e\x3d 0 \x26\x26 y \x3e\x3d 0){', 'v \x3d me.add(new Date(y \x3c 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y \x3c 100 ? y - 100 : 0);', 'v \x3d !strict? v : (strict \x3d\x3d\x3d true \x26\x26 (z \x3c\x3d 364 || (me.isLeapYear(v) \x26\x26 z \x3c\x3d 365))? me.add(v, me.DAY, z) : null);', '}else if(strict \x3d\x3d\x3d true \x26\x26 !me.isValid(y, m + 1, d, h, i, s, ms)){', + 'v \x3d null;', '}else{', 'if (W) {', 'year \x3d y || (new Date()).getFullYear();', 'jan4 \x3d new Date(year, 0, 4, 0, 0, 0);', 'd \x3d jan4.getDay();', 'week1monday \x3d new Date(jan4.getTime() - ((d \x3d\x3d\x3d 0 ? 6 : d - 1) * 86400000));', 'v \x3d Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));', '} else {', 'v \x3d me.add(new Date(y \x3c 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y \x3c 100 ? y - 100 : 0);', '}', '}', '}', '}', 'if(v){', 'if(zz !\x3d null){', + 'v \x3d me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);', '}else if(o){', "v \x3d me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn \x3d\x3d '+'? -1 : 1) * (hr * 60 + mn));", '}', '}', 'return (v !\x3d null) ? v : null;'].join('\n'); + if (!Date.prototype.toISOString) { + Date.prototype.toISOString = function() { + var me = this; + return pad(me.getUTCFullYear(), 4, '0') + '-' + pad(me.getUTCMonth() + 1, 2, '0') + '-' + pad(me.getUTCDate(), 2, '0') + 'T' + pad(me.getUTCHours(), 2, '0') + ':' + pad(me.getUTCMinutes(), 2, '0') + ':' + pad(me.getUTCSeconds(), 2, '0') + '.' + pad(me.getUTCMilliseconds(), 3, '0') + 'Z'; + }; + } + function xf(format) { + var args = Array.prototype.slice.call(arguments, 1); + return format.replace(numberTokenRe, function(m, i) { + return args[i]; + }); + } + return utilDate = {now:nativeDate.now, toString:function(date) { + if (!date) { + date = new nativeDate; + } + return date.getFullYear() + '-' + pad(date.getMonth() + 1, 2, '0') + '-' + pad(date.getDate(), 2, '0') + 'T' + pad(date.getHours(), 2, '0') + ':' + pad(date.getMinutes(), 2, '0') + ':' + pad(date.getSeconds(), 2, '0'); + }, getElapsed:function(dateA, dateB) { + return Math.abs(dateA - (dateB || utilDate.now())); + }, useStrict:false, formatCodeToRegex:function(character, currentGroup) { + var p = utilDate.parseCodes[character]; + if (p) { + p = typeof p === 'function' ? p() : p; + utilDate.parseCodes[character] = p; + } + return p ? Ext.applyIf({c:p.c ? xf(p.c, currentGroup || '{0}') : p.c}, p) : {g:0, c:null, s:Ext.String.escapeRegex(character)}; + }, parseFunctions:{'MS':function(input, strict) { + var r = (input || '').match(MSFormatRe); + return r ? new nativeDate(((r[1] || '') + r[2]) * 1) : null; + }, 'time':function(input, strict) { + var num = parseInt(input, 10); + if (num || num === 0) { + return new nativeDate(num); + } + return null; + }, 'timestamp':function(input, strict) { + var num = parseInt(input, 10); + if (num || num === 0) { + return new nativeDate(num * 1000); + } + return null; + }}, parseRegexes:[], formatFunctions:{'MS':function() { + return '\\/Date(' + this.getTime() + ')\\/'; + }, 'time':function() { + return this.getTime().toString(); + }, 'timestamp':function() { + return utilDate.format(this, 'U'); + }}, y2kYear:50, MILLI:'ms', SECOND:'s', MINUTE:'mi', HOUR:'h', DAY:'d', MONTH:'mo', YEAR:'y', defaults:{}, dayNames:['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], monthNames:['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], monthNumbers:{January:0, Jan:0, February:1, Feb:1, March:2, Mar:2, April:3, Apr:3, May:4, June:5, Jun:5, July:6, Jul:6, August:7, Aug:7, September:8, Sep:8, October:9, + Oct:9, November:10, Nov:10, December:11, Dec:11}, defaultFormat:'m/d/Y', getShortMonthName:function(month) { + return utilDate.monthNames[month].substring(0, 3); + }, getShortDayName:function(day) { + return utilDate.dayNames[day].substring(0, 3); + }, getMonthNumber:function(name) { + return utilDate.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()]; + }, formatContainsHourInfo:function(format) { + return hourInfoRe.test(format.replace(stripEscapeRe, '')); + }, formatContainsDateInfo:function(format) { + return dateInfoRe.test(format.replace(stripEscapeRe, '')); + }, unescapeFormat:function(format) { + return format.replace(slashRe, ''); + }, formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')", D:'Ext.Date.getShortDayName(m.getDay())', j:'m.getDate()', l:'Ext.Date.dayNames[m.getDay()]', N:'(m.getDay() ? m.getDay() : 7)', S:'Ext.Date.getSuffix(m)', w:'m.getDay()', z:'Ext.Date.getDayOfYear(m)', W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')", F:'Ext.Date.monthNames[m.getMonth()]', m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')", M:'Ext.Date.getShortMonthName(m.getMonth())', n:'(m.getMonth() + 1)', t:'Ext.Date.getDaysInMonth(m)', + L:'(Ext.Date.isLeapYear(m) ? 1 : 0)', o:'(m.getFullYear() + (Ext.Date.getWeekOfYear(m) \x3d\x3d 1 \x26\x26 m.getMonth() \x3e 0 ? +1 : (Ext.Date.getWeekOfYear(m) \x3e\x3d 52 \x26\x26 m.getMonth() \x3c 11 ? -1 : 0)))', Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')", y:"('' + m.getFullYear()).substring(2, 4)", a:"(m.getHours() \x3c 12 ? 'am' : 'pm')", A:"(m.getHours() \x3c 12 ? 'AM' : 'PM')", g:'((m.getHours() % 12) ? m.getHours() % 12 : 12)', G:'m.getHours()', h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')", + H:"Ext.String.leftPad(m.getHours(), 2, '0')", i:"Ext.String.leftPad(m.getMinutes(), 2, '0')", s:"Ext.String.leftPad(m.getSeconds(), 2, '0')", u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')", O:'Ext.Date.getGMTOffset(m)', P:'Ext.Date.getGMTOffset(m, true)', T:'Ext.Date.getTimezone(m)', Z:'(m.getTimezoneOffset() * -60)', c:function() { + var c = 'Y-m-dTH:i:sP', code = [], i, l = c.length, e; + for (i = 0; i < l; ++i) { + e = c.charAt(i); + code.push(e === 'T' ? "'T'" : utilDate.getFormatCode(e)); + } + return code.join(' + '); + }, C:function() { + return 'm.toISOString()'; + }, U:'Math.round(m.getTime() / 1000)'}, isValid:function(y, m, d, h, i, s, ms) { + h = h || 0; + i = i || 0; + s = s || 0; + ms = ms || 0; + var dt = utilDate.add(new nativeDate(y < 100 ? 100 : y, m - 1, d, h, i, s, ms), utilDate.YEAR, y < 100 ? y - 100 : 0); + return y === dt.getFullYear() && m === dt.getMonth() + 1 && d === dt.getDate() && h === dt.getHours() && i === dt.getMinutes() && s === dt.getSeconds() && ms === dt.getMilliseconds(); + }, parse:function(input, format, strict) { + var p = utilDate.parseFunctions; + if (p[format] == null) { + utilDate.createParser(format); + } + return p[format].call(utilDate, input, Ext.isDefined(strict) ? strict : utilDate.useStrict); + }, parseDate:function(input, format, strict) { + return utilDate.parse(input, format, strict); + }, getFormatCode:function(character) { + var f = utilDate.formatCodes[character]; + if (f) { + f = typeof f === 'function' ? f() : f; + utilDate.formatCodes[character] = f; + } + return f || "'" + Ext.String.escape(character) + "'"; + }, createFormat:function(format) { + var code = [], special = false, ch = '', i; + for (i = 0; i < format.length; ++i) { + ch = format.charAt(i); + if (!special && ch === '\\') { + special = true; + } else { + if (special) { + special = false; + code.push("'" + Ext.String.escape(ch) + "'"); + } else { + if (ch === '\n') { + code.push("'\\n'"); + } else { + code.push(utilDate.getFormatCode(ch)); + } + } + } + } + utilDate.formatFunctions[format] = Ext.functionFactory('var m\x3dthis;return ' + code.join('+')); + }, createParser:function(format) { + var regexNum = utilDate.parseRegexes.length, currentGroup = 1, calc = [], regex = [], special = false, ch = '', i = 0, len = format.length, atEnd = [], obj; + for (; i < len; ++i) { + ch = format.charAt(i); + if (!special && ch === '\\') { + special = true; + } else { + if (special) { + special = false; + regex.push(Ext.String.escape(ch)); + } else { + obj = utilDate.formatCodeToRegex(ch, currentGroup); + currentGroup += obj.g; + regex.push(obj.s); + if (obj.g && obj.c) { + if (obj.calcAtEnd) { + atEnd.push(obj.c); + } else { + calc.push(obj.c); + } + } + } + } + } + calc = calc.concat(atEnd); + utilDate.parseRegexes[regexNum] = new RegExp('^' + regex.join('') + '$', 'i'); + utilDate.parseFunctions[format] = Ext.functionFactory('input', 'strict', xf(code, regexNum, calc.join(''))); + }, parseCodes:{d:{g:1, c:'d \x3d parseInt(results[{0}], 10);\n', s:'(3[0-1]|[1-2][0-9]|0[1-9])'}, j:{g:1, c:'d \x3d parseInt(results[{0}], 10);\n', s:'(3[0-1]|[1-2][0-9]|[1-9])'}, D:function() { + for (var a = [], i = 0; i < 7; a.push(utilDate.getShortDayName(i)), ++i) { + } + return {g:0, c:null, s:'(?:' + a.join('|') + ')'}; + }, l:function() { + return {g:0, c:null, s:'(?:' + utilDate.dayNames.join('|') + ')'}; + }, N:{g:0, c:null, s:'[1-7]'}, S:{g:0, c:null, s:'(?:st|nd|rd|th)'}, w:{g:0, c:null, s:'[0-6]'}, z:{g:1, c:'z \x3d parseInt(results[{0}], 10);\n', s:'(\\d{1,3})'}, W:{g:1, c:'W \x3d parseInt(results[{0}], 10);\n', s:'(\\d{2})'}, F:function() { + return {g:1, c:'m \x3d parseInt(me.getMonthNumber(results[{0}]), 10);\n', s:'(' + utilDate.monthNames.join('|') + ')'}; + }, M:function() { + for (var a = [], i = 0; i < 12; a.push(utilDate.getShortMonthName(i)), ++i) { + } + return Ext.applyIf({s:'(' + a.join('|') + ')'}, utilDate.formatCodeToRegex('F')); + }, m:{g:1, c:'m \x3d parseInt(results[{0}], 10) - 1;\n', s:'(1[0-2]|0[1-9])'}, n:{g:1, c:'m \x3d parseInt(results[{0}], 10) - 1;\n', s:'(1[0-2]|[1-9])'}, t:{g:0, c:null, s:'(?:\\d{2})'}, L:{g:0, c:null, s:'(?:1|0)'}, o:{g:1, c:'y \x3d parseInt(results[{0}], 10);\n', s:'(\\d{4})'}, Y:{g:1, c:'y \x3d parseInt(results[{0}], 10);\n', s:'(\\d{4})'}, y:{g:1, c:'var ty \x3d parseInt(results[{0}], 10);\n' + 'y \x3d ty \x3e me.y2kYear ? 1900 + ty : 2000 + ty;\n', s:'(\\d{2})'}, a:{g:1, c:'if (/(am)/i.test(results[{0}])) {\n' + + 'if (!h || h \x3d\x3d 12) { h \x3d 0; }\n' + '} else { if (!h || h \x3c 12) { h \x3d (h || 0) + 12; }}', s:'(am|pm|AM|PM)', calcAtEnd:true}, A:{g:1, c:'if (/(am)/i.test(results[{0}])) {\n' + 'if (!h || h \x3d\x3d 12) { h \x3d 0; }\n' + '} else { if (!h || h \x3c 12) { h \x3d (h || 0) + 12; }}', s:'(AM|PM|am|pm)', calcAtEnd:true}, g:{g:1, c:'h \x3d parseInt(results[{0}], 10);\n', s:'(1[0-2]|[0-9])'}, G:{g:1, c:'h \x3d parseInt(results[{0}], 10);\n', s:'(2[0-3]|1[0-9]|[0-9])'}, h:{g:1, c:'h \x3d parseInt(results[{0}], 10);\n', + s:'(1[0-2]|0[1-9])'}, H:{g:1, c:'h \x3d parseInt(results[{0}], 10);\n', s:'(2[0-3]|[0-1][0-9])'}, i:{g:1, c:'i \x3d parseInt(results[{0}], 10);\n', s:'([0-5][0-9])'}, s:{g:1, c:'s \x3d parseInt(results[{0}], 10);\n', s:'([0-5][0-9])'}, u:{g:1, c:'ms \x3d results[{0}]; ms \x3d parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n', s:'(\\d+)'}, O:{g:1, c:['o \x3d results[{0}];', 'var sn \x3d o.substring(0,1),', 'hr \x3d o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),', 'mn \x3d o.substring(3,5) % 60;', + "o \x3d ((-12 \x3c\x3d (hr*60 + mn)/60) \x26\x26 ((hr*60 + mn)/60 \x3c\x3d 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'), s:'([+-]\\d{4})'}, P:{g:1, c:['o \x3d results[{0}];', 'var sn \x3d o.substring(0,1),', 'hr \x3d o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),', 'mn \x3d o.substring(4,6) % 60;', "o \x3d ((-12 \x3c\x3d (hr*60 + mn)/60) \x26\x26 ((hr*60 + mn)/60 \x3c\x3d 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join('\n'), + s:'([+-]\\d{2}:\\d{2})'}, T:{g:0, c:null, s:'[A-Z]{1,5}'}, Z:{g:1, c:'zz \x3d results[{0}] * 1;\n' + 'zz \x3d (-43200 \x3c\x3d zz \x26\x26 zz \x3c\x3d 50400)? zz : null;\n', s:'([+-]?\\d{1,5})'}, c:function() { + var calc = [], arr = [utilDate.formatCodeToRegex('Y', 1), utilDate.formatCodeToRegex('m', 2), utilDate.formatCodeToRegex('d', 3), utilDate.formatCodeToRegex('H', 4), utilDate.formatCodeToRegex('i', 5), utilDate.formatCodeToRegex('s', 6), {c:"ms \x3d results[7] || '0'; ms \x3d parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"}, {c:['if(results[8]) {', "if(results[8] \x3d\x3d 'Z'){", 'zz \x3d 0;', "}else if (results[8].indexOf(':') \x3e -1){", utilDate.formatCodeToRegex('P', 8).c, '}else{', utilDate.formatCodeToRegex('O', + 8).c, '}', '}'].join('\n')}], i, l; + for (i = 0, l = arr.length; i < l; ++i) { + calc.push(arr[i].c); + } + return {g:1, c:calc.join(''), s:[arr[0].s, '(?:', '-', arr[1].s, '(?:', '-', arr[2].s, '(?:', '(?:T| )?', arr[3].s, ':', arr[4].s, '(?::', arr[5].s, ')?', '(?:(?:\\.|,)(\\d+))?', '(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?', ')?', ')?', ')?'].join('')}; + }, U:{g:1, c:'u \x3d parseInt(results[{0}], 10);\n', s:'(-?\\d+)'}}, dateFormat:function(date, format) { + return utilDate.format(date, format); + }, isEqual:function(date1, date2) { + if (date1 && date2) { + return date1.getTime() === date2.getTime(); + } + return !(date1 || date2); + }, format:function(date, format) { + var formatFunctions = utilDate.formatFunctions; + if (!Ext.isDate(date)) { + return ''; + } + if (formatFunctions[format] == null) { + utilDate.createFormat(format); + } + return formatFunctions[format].call(date) + ''; + }, getTimezone:function(date) { + return date.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,5})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/, '$1$2').replace(/[^A-Z]/g, ''); + }, getGMTOffset:function(date, colon) { + var offset = date.getTimezoneOffset(); + return (offset > 0 ? '-' : '+') + Ext.String.leftPad(Math.floor(Math.abs(offset) / 60), 2, '0') + (colon ? ':' : '') + Ext.String.leftPad(Math.abs(offset % 60), 2, '0'); + }, getDayOfYear:function(date) { + var num = 0, d = utilDate.clone(date), m = date.getMonth(), i; + for (i = 0, d.setDate(1), d.setMonth(0); i < m; d.setMonth(++i)) { + num += utilDate.getDaysInMonth(d); + } + return num + date.getDate() - 1; + }, getWeekOfYear:function() { + var ms1d = 86400000, ms7d = 7 * ms1d; + return function(date) { + var DC3 = nativeDate.UTC(date.getFullYear(), date.getMonth(), date.getDate() + 3) / ms1d, AWN = Math.floor(DC3 / 7), Wyr = (new nativeDate(AWN * ms7d)).getUTCFullYear(); + return AWN - Math.floor(nativeDate.UTC(Wyr, 0, 7) / ms7d) + 1; + }; + }(), isLeapYear:function(date) { + var year = date.getFullYear(); + return !!((year & 3) === 0 && (year % 100 || year % 400 === 0 && year)); + }, getFirstDayOfMonth:function(date) { + var day = (date.getDay() - (date.getDate() - 1)) % 7; + return day < 0 ? day + 7 : day; + }, getLastDayOfMonth:function(date) { + return utilDate.getLastDateOfMonth(date).getDay(); + }, getFirstDateOfMonth:function(date) { + return new nativeDate(date.getFullYear(), date.getMonth(), 1); + }, getLastDateOfMonth:function(date) { + return new nativeDate(date.getFullYear(), date.getMonth(), utilDate.getDaysInMonth(date)); + }, getDaysInMonth:function() { + var daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + return function(date) { + var m = date.getMonth(); + return m === 1 && utilDate.isLeapYear(date) ? 29 : daysInMonth[m]; + }; + }(), getSuffix:function(date) { + switch(date.getDate()) { + case 1: + case 21: + case 31: + return 'st'; + case 2: + case 22: + return 'nd'; + case 3: + case 23: + return 'rd'; + default: + return 'th'; + } + }, clone:function(date) { + return new nativeDate(date.getTime()); + }, isDST:function(date) { + return (new nativeDate(date.getFullYear(), 0, 1)).getTimezoneOffset() !== date.getTimezoneOffset(); + }, clearTime:function(date, clone) { + if (isNaN(date.getTime())) { + return date; + } + if (clone) { + return utilDate.clearTime(utilDate.clone(date)); + } + var d = date.getDate(), hr, c; + date.setHours(0); + date.setMinutes(0); + date.setSeconds(0); + date.setMilliseconds(0); + if (date.getDate() !== d) { + for (hr = 1, c = utilDate.add(date, utilDate.HOUR, hr); c.getDate() !== d; hr++, c = utilDate.add(date, utilDate.HOUR, hr)) { + } + date.setDate(d); + date.setHours(c.getHours()); + } + return date; + }, add:function(date, interval, value) { + var d = utilDate.clone(date), day, decimalValue, base = 0; + if (!interval || value === 0) { + return d; + } + decimalValue = value - parseInt(value, 10); + value = parseInt(value, 10); + if (value) { + switch(interval.toLowerCase()) { + case utilDate.MILLI: + d.setTime(d.getTime() + value); + break; + case utilDate.SECOND: + d.setTime(d.getTime() + value * 1000); + break; + case utilDate.MINUTE: + d.setTime(d.getTime() + value * 60 * 1000); + break; + case utilDate.HOUR: + d.setTime(d.getTime() + value * 60 * 60 * 1000); + break; + case utilDate.DAY: + d.setDate(d.getDate() + value); + break; + case utilDate.MONTH: + day = date.getDate(); + if (day > 28) { + day = Math.min(day, utilDate.getLastDateOfMonth(utilDate.add(utilDate.getFirstDateOfMonth(date), utilDate.MONTH, value)).getDate()); + } + d.setDate(day); + d.setMonth(date.getMonth() + value); + break; + case utilDate.YEAR: + day = date.getDate(); + if (day > 28) { + day = Math.min(day, utilDate.getLastDateOfMonth(utilDate.add(utilDate.getFirstDateOfMonth(date), utilDate.YEAR, value)).getDate()); + } + d.setDate(day); + d.setFullYear(date.getFullYear() + value); + break; + } + } + if (decimalValue) { + switch(interval.toLowerCase()) { + case utilDate.MILLI: + base = 1; + break; + case utilDate.SECOND: + base = 1000; + break; + case utilDate.MINUTE: + base = 1000 * 60; + break; + case utilDate.HOUR: + base = 1000 * 60 * 60; + break; + case utilDate.DAY: + base = 1000 * 60 * 60 * 24; + break; + case utilDate.MONTH: + day = utilDate.getDaysInMonth(d); + base = 1000 * 60 * 60 * 24 * day; + break; + case utilDate.YEAR: + day = utilDate.isLeapYear(d) ? 366 : 365; + base = 1000 * 60 * 60 * 24 * day; + break; + } + if (base) { + d.setTime(d.getTime() + base * decimalValue); + } + } + return d; + }, subtract:function(date, interval, value) { + return utilDate.add(date, interval, -value); + }, between:function(date, start, end) { + var t = date.getTime(); + return start.getTime() <= t && t <= end.getTime(); + }, compat:function() { + var p, statics = ['useStrict', 'formatCodeToRegex', 'parseFunctions', 'parseRegexes', 'formatFunctions', 'y2kYear', 'MILLI', 'SECOND', 'MINUTE', 'HOUR', 'DAY', 'MONTH', 'YEAR', 'defaults', 'dayNames', 'monthNames', 'monthNumbers', 'getShortMonthName', 'getShortDayName', 'getMonthNumber', 'formatCodes', 'isValid', 'parseDate', 'getFormatCode', 'createFormat', 'createParser', 'parseCodes'], proto = ['dateFormat', 'format', 'getTimezone', 'getGMTOffset', 'getDayOfYear', 'getWeekOfYear', 'isLeapYear', + 'getFirstDayOfMonth', 'getLastDayOfMonth', 'getDaysInMonth', 'getSuffix', 'clone', 'isDST', 'clearTime', 'add', 'between'], sLen = statics.length, pLen = proto.length, stat, prot, s; + for (s = 0; s < sLen; s++) { + stat = statics[s]; + nativeDate[stat] = utilDate[stat]; + } + for (p = 0; p < pLen; p++) { + prot = proto[p]; + nativeDate.prototype[prot] = function() { + var args = Array.prototype.slice.call(arguments); + args.unshift(this); + return utilDate[prot].apply(utilDate, args); + }; + } + }, diff:function(min, max, unit) { + var est, diff = +max - min; + switch(unit) { + case utilDate.MILLI: + return diff; + case utilDate.SECOND: + return Math.floor(diff / 1000); + case utilDate.MINUTE: + return Math.floor(diff / 60000); + case utilDate.HOUR: + return Math.floor(diff / 3600000); + case utilDate.DAY: + return Math.floor(diff / 86400000); + case 'w': + return Math.floor(diff / 604800000); + case utilDate.MONTH: + est = max.getFullYear() * 12 + max.getMonth() - (min.getFullYear() * 12 + min.getMonth()); + if (utilDate.add(min, unit, est) > max) { + return est - 1; + } + return est; + case utilDate.YEAR: + est = max.getFullYear() - min.getFullYear(); + if (utilDate.add(min, unit, est) > max) { + return est - 1; + } else { + return est; + } + } + }, align:function(date, unit, step) { + var num = new nativeDate(+date); + switch(unit.toLowerCase()) { + case utilDate.MILLI: + return num; + case utilDate.SECOND: + num.setUTCSeconds(num.getUTCSeconds() - num.getUTCSeconds() % step); + num.setUTCMilliseconds(0); + return num; + case utilDate.MINUTE: + num.setUTCMinutes(num.getUTCMinutes() - num.getUTCMinutes() % step); + num.setUTCSeconds(0); + num.setUTCMilliseconds(0); + return num; + case utilDate.HOUR: + num.setUTCHours(num.getUTCHours() - num.getUTCHours() % step); + num.setUTCMinutes(0); + num.setUTCSeconds(0); + num.setUTCMilliseconds(0); + return num; + case utilDate.DAY: + if (step === 7 || step === 14) { + num.setUTCDate(num.getUTCDate() - num.getUTCDay() + 1); + } + num.setUTCHours(0); + num.setUTCMinutes(0); + num.setUTCSeconds(0); + num.setUTCMilliseconds(0); + return num; + case utilDate.MONTH: + num.setUTCMonth(num.getUTCMonth() - (num.getUTCMonth() - 1) % step, 1); + num.setUTCHours(0); + num.setUTCMinutes(0); + num.setUTCSeconds(0); + num.setUTCMilliseconds(0); + return num; + case utilDate.YEAR: + num.setUTCFullYear(num.getUTCFullYear() - num.getUTCFullYear() % step, 1, 1); + num.setUTCHours(0); + num.setUTCMinutes(0); + num.setUTCSeconds(0); + num.setUTCMilliseconds(0); + return date; + } + }}; +}(); +Ext.Function = function() { + var lastTime = 0, animFrameId, animFrameHandlers = [], animFrameNoArgs = [], idSource = 0, animFrameMap = {}, win = window, global = Ext.global, hasImmediate = !!(global.setImmediate && global.clearImmediate), requestAnimFrame = win.requestAnimationFrame || win.webkitRequestAnimationFrame || win.mozRequestAnimationFrame || win.oRequestAnimationFrame || function(callback) { + var currTime = Ext.now(), timeToCall = Math.max(0, 16 - (currTime - lastTime)), id = win.setTimeout(function() { + callback(currTime + timeToCall); + }, timeToCall); + lastTime = currTime + timeToCall; + return id; + }, fireHandlers = function() { + var len = animFrameHandlers.length, id, i, handler; + animFrameId = null; + for (i = 0; i < len; i++) { + handler = animFrameHandlers[i]; + id = handler[3]; + if (animFrameMap[id]) { + handler[0].apply(handler[1] || global, handler[2] || animFrameNoArgs); + delete animFrameMap[id]; + } + } + animFrameHandlers = animFrameHandlers.slice(len); + }, fireElevatedHandlers = function() { + Ext.elevateFunction(fireHandlers); + }, ExtFunction = {flexSetter:function(setter) { + return function(name, value) { + var k, i; + if (name !== null) { + if (typeof name !== 'string') { + for (k in name) { + if (name.hasOwnProperty(k)) { + setter.call(this, k, name[k]); + } + } + if (Ext.enumerables) { + for (i = Ext.enumerables.length; i--;) { + k = Ext.enumerables[i]; + if (name.hasOwnProperty(k)) { + setter.call(this, k, name[k]); + } + } + } + } else { + setter.call(this, name, value); + } + } + return this; + }; + }, bind:function(fn, scope, args, appendArgs) { + if (arguments.length === 2) { + return function() { + return fn.apply(scope, arguments); + }; + } + var method = fn, slice = Array.prototype.slice; + return function() { + var callArgs = args || arguments; + if (appendArgs === true) { + callArgs = slice.call(arguments, 0); + callArgs = callArgs.concat(args); + } else { + if (typeof appendArgs === 'number') { + callArgs = slice.call(arguments, 0); + Ext.Array.insert(callArgs, appendArgs, args); + } + } + return method.apply(scope || global, callArgs); + }; + }, bindCallback:function(callback, scope, args, delay, caller) { + return function() { + var a = Ext.Array.slice(arguments); + return Ext.callback(callback, scope, args ? args.concat(a) : a, delay, caller); + }; + }, pass:function(fn, args, scope) { + if (!Ext.isArray(args)) { + if (Ext.isIterable(args)) { + args = Ext.Array.clone(args); + } else { + args = args !== undefined ? [args] : []; + } + } + return function() { + var fnArgs = args.slice(); + fnArgs.push.apply(fnArgs, arguments); + return fn.apply(scope || this, fnArgs); + }; + }, alias:function(object, methodName) { + return function() { + return object[methodName].apply(object, arguments); + }; + }, clone:function(method) { + return function() { + return method.apply(this, arguments); + }; + }, createInterceptor:function(origFn, newFn, scope, returnValue) { + if (!Ext.isFunction(newFn)) { + return origFn; + } else { + returnValue = Ext.isDefined(returnValue) ? returnValue : null; + return function() { + var me = this, args = arguments; + return newFn.apply(scope || me || global, args) !== false ? origFn.apply(me || global, args) : returnValue; + }; + } + }, createDelayed:function(fn, delay, scope, args, appendArgs) { + if (scope || args) { + fn = Ext.Function.bind(fn, scope, args, appendArgs); + } + return function() { + var me = this, args = Array.prototype.slice.call(arguments); + setTimeout(function() { + if (Ext.elevateFunction) { + Ext.elevateFunction(fn, me, args); + } else { + fn.apply(me, args); + } + }, delay); + }; + }, defer:function(fn, millis, scope, args, appendArgs) { + fn = Ext.Function.bind(fn, scope, args, appendArgs); + if (millis > 0) { + return setTimeout(function() { + if (Ext.elevateFunction) { + Ext.elevateFunction(fn); + } else { + fn(); + } + }, millis); + } + fn(); + return 0; + }, interval:function(fn, millis, scope, args, appendArgs) { + fn = Ext.Function.bind(fn, scope, args, appendArgs); + return setInterval(function() { + if (Ext.elevateFunction) { + Ext.elevateFunction(fn); + } else { + fn(); + } + }, millis); + }, createSequence:function(originalFn, newFn, scope) { + if (!newFn) { + return originalFn; + } else { + return function() { + var result = originalFn.apply(this, arguments); + newFn.apply(scope || this, arguments); + return result; + }; + } + }, createBuffered:function(fn, buffer, scope, args) { + var timerId; + return function() { + var callArgs = args || Array.prototype.slice.call(arguments, 0), me = scope || this; + if (timerId) { + clearTimeout(timerId); + } + timerId = setTimeout(function() { + if (Ext.elevateFunction) { + Ext.elevateFunction(fn, me, callArgs); + } else { + fn.apply(me, callArgs); + } + }, buffer); + }; + }, createAnimationFrame:function(fn, scope, args, queueStrategy) { + var timerId; + queueStrategy = queueStrategy || 3; + return function() { + var callArgs = args || Array.prototype.slice.call(arguments, 0); + scope = scope || this; + if (queueStrategy === 3 && timerId) { + ExtFunction.cancelAnimationFrame(timerId); + } + if (queueStrategy & 1 || !timerId) { + timerId = ExtFunction.requestAnimationFrame(function() { + timerId = null; + fn.apply(scope, callArgs); + }); + } + }; + }, requestAnimationFrame:function(fn, scope, args) { + var id = ++idSource, handler = Array.prototype.slice.call(arguments, 0); + handler[3] = id; + animFrameMap[id] = 1; + animFrameHandlers.push(handler); + if (!animFrameId) { + animFrameId = requestAnimFrame(Ext.elevateFunction ? fireElevatedHandlers : fireHandlers); + } + return id; + }, cancelAnimationFrame:function(id) { + delete animFrameMap[id]; + }, createThrottled:function(fn, interval, scope) { + var lastCallTime = 0, elapsed, lastArgs, timer, execute = function() { + if (Ext.elevateFunction) { + Ext.elevateFunction(fn, scope, lastArgs); + } else { + fn.apply(scope, lastArgs); + } + lastCallTime = Ext.now(); + timer = null; + }; + return function() { + if (!scope) { + scope = this; + } + elapsed = Ext.now() - lastCallTime; + lastArgs = arguments; + if (elapsed >= interval) { + clearTimeout(timer); + execute(); + } else { + if (!timer) { + timer = Ext.defer(execute, interval - elapsed); + } + } + }; + }, createBarrier:function(count, fn, scope) { + return function() { + if (!--count) { + fn.apply(scope, arguments); + } + }; + }, interceptBefore:function(object, methodName, fn, scope) { + var method = object[methodName] || Ext.emptyFn; + return object[methodName] = function() { + var ret = fn.apply(scope || this, arguments); + method.apply(this, arguments); + return ret; + }; + }, interceptAfter:function(object, methodName, fn, scope) { + var method = object[methodName] || Ext.emptyFn; + return object[methodName] = function() { + method.apply(this, arguments); + return fn.apply(scope || this, arguments); + }; + }, makeCallback:function(callback, scope) { + if (!scope[callback]) { + if (scope.$className) { + Ext.raise('No method "' + callback + '" on ' + scope.$className); + } + Ext.raise('No method "' + callback + '"'); + } + return function() { + return scope[callback].apply(scope, arguments); + }; + }, memoize:function(fn, scope, hashFn) { + var memo = {}, isFunc = hashFn && Ext.isFunction(hashFn); + return function(value) { + var key = isFunc ? hashFn.apply(scope, arguments) : value; + if (!(key in memo)) { + memo[key] = fn.apply(scope, arguments); + } + return memo[key]; + }; + }}; + Ext.asap = hasImmediate ? function(fn, scope, parameters) { + if (scope != null || parameters != null) { + fn = ExtFunction.bind(fn, scope, parameters); + } + return setImmediate(function() { + if (Ext.elevateFunction) { + Ext.elevateFunction(fn); + } else { + fn(); + } + }); + } : function(fn, scope, parameters) { + if (scope != null || parameters != null) { + fn = ExtFunction.bind(fn, scope, parameters); + } + return setTimeout(function() { + if (Ext.elevateFunction) { + Ext.elevateFunction(fn); + } else { + fn(); + } + }, 0, true); + }, Ext.asapCancel = hasImmediate ? function(id) { + clearImmediate(id); + } : function(id) { + clearTimeout(id); + }; + Ext.defer = ExtFunction.defer; + Ext.interval = ExtFunction.interval; + Ext.pass = ExtFunction.pass; + Ext.bind = ExtFunction.bind; + Ext.deferCallback = ExtFunction.requestAnimationFrame; + return ExtFunction; +}(); +Ext.Number = new function() { + var ExtNumber = this, isToFixedBroken = (0.9).toFixed() !== '1', math = Math, ClipDefault = {count:false, inclusive:false, wrap:true}; + Ext.apply(ExtNumber, {Clip:{DEFAULT:ClipDefault, COUNT:Ext.applyIf({count:true}, ClipDefault), INCLUSIVE:Ext.applyIf({inclusive:true}, ClipDefault), NOWRAP:Ext.applyIf({wrap:false}, ClipDefault)}, clipIndices:function(length, indices, options) { + options = options || ClipDefault; + var defaultValue = 0, wrap = options.wrap, begin, end, i; + indices = indices || []; + for (i = 0; i < 2; ++i) { + begin = end; + end = indices[i]; + if (end == null) { + end = defaultValue; + } else { + if (i && options.count) { + end += begin; + end = end > length ? length : end; + } else { + if (wrap) { + end = end < 0 ? length + end : end; + } + if (i && options.inclusive) { + ++end; + } + end = end < 0 ? 0 : end > length ? length : end; + } + } + defaultValue = length; + } + indices[0] = begin; + indices[1] = end < begin ? begin : end; + return indices; + }, constrain:function(number, min, max) { + var x = parseFloat(number); + if (min === null) { + min = number; + } + if (max === null) { + max = number; + } + return x < min ? min : x > max ? max : x; + }, snap:function(value, increment, minValue, maxValue) { + var m; + if (value === undefined || value < minValue) { + return minValue || 0; + } + if (increment) { + m = value % increment; + if (m !== 0) { + value -= m; + if (m * 2 >= increment) { + value += increment; + } else { + if (m * 2 < -increment) { + value -= increment; + } + } + } + } + return ExtNumber.constrain(value, minValue, maxValue); + }, snapInRange:function(value, increment, minValue, maxValue) { + var tween; + minValue = minValue || 0; + if (value === undefined || value < minValue) { + return minValue; + } + if (increment && (tween = (value - minValue) % increment)) { + value -= tween; + tween *= 2; + if (tween >= increment) { + value += increment; + } + } + if (maxValue !== undefined) { + if (value > (maxValue = ExtNumber.snapInRange(maxValue, increment, minValue))) { + value = maxValue; + } + } + return value; + }, sign:function(x) { + x = +x; + if (x === 0 || isNaN(x)) { + return x; + } + return x > 0 ? 1 : -1; + }, toFixed:isToFixedBroken ? function(value, precision) { + precision = precision || 0; + var pow = math.pow(10, precision); + return (math.round(value * pow) / pow).toFixed(precision); + } : function(value, precision) { + return value.toFixed(precision); + }, from:function(value, defaultValue) { + if (isFinite(value)) { + value = parseFloat(value); + } + return !isNaN(value) ? value : defaultValue; + }, randomInt:function(from, to) { + return math.floor(math.random() * (to - from + 1) + from); + }, correctFloat:function(n) { + return parseFloat(n.toPrecision(14)); + }}); + Ext.num = function() { + return ExtNumber.from.apply(this, arguments); + }; +}; +(function() { + var TemplateClass = function() { + }, queryRe = /^\?/, keyRe = /(\[):?([^\]]*)\]/g, nameRe = /^([^\[]+)/, plusRe = /\+/g, ExtObject = Ext.Object = {chain:Object.create || function(object) { + TemplateClass.prototype = object; + var result = new TemplateClass; + TemplateClass.prototype = null; + return result; + }, clear:function(object) { + for (var key in object) { + delete object[key]; + } + return object; + }, freeze:Object.freeze ? function(obj, deep) { + if (obj && typeof obj === 'object' && !Object.isFrozen(obj)) { + Object.freeze(obj); + if (deep) { + for (var name in obj) { + ExtObject.freeze(obj[name], deep); + } + } + } + return obj; + } : Ext.identityFn, toQueryObjects:function(name, value, recursive) { + var self = ExtObject.toQueryObjects, objects = [], i, ln; + if (Ext.isArray(value)) { + for (i = 0, ln = value.length; i < ln; i++) { + if (recursive) { + objects = objects.concat(self(name + '[' + i + ']', value[i], true)); + } else { + objects.push({name:name, value:value[i]}); + } + } + } else { + if (Ext.isObject(value)) { + for (i in value) { + if (value.hasOwnProperty(i)) { + if (recursive) { + objects = objects.concat(self(name + '[' + i + ']', value[i], true)); + } else { + objects.push({name:name, value:value[i]}); + } + } + } + } else { + objects.push({name:name, value:value}); + } + } + return objects; + }, toQueryString:function(object, recursive) { + var paramObjects = [], params = [], i, j, ln, paramObject, value; + for (i in object) { + if (object.hasOwnProperty(i)) { + paramObjects = paramObjects.concat(ExtObject.toQueryObjects(i, object[i], recursive)); + } + } + for (j = 0, ln = paramObjects.length; j < ln; j++) { + paramObject = paramObjects[j]; + value = paramObject.value; + if (Ext.isEmpty(value)) { + value = ''; + } else { + if (Ext.isDate(value)) { + value = Ext.Date.toString(value); + } + } + params.push(encodeURIComponent(paramObject.name) + '\x3d' + encodeURIComponent(String(value))); + } + return params.join('\x26'); + }, fromQueryString:function(queryString, recursive) { + var parts = queryString.replace(queryRe, '').split('\x26'), object = {}, temp, components, name, value, i, ln, part, j, subLn, matchedKeys, matchedName, keys, key, nextKey; + for (i = 0, ln = parts.length; i < ln; i++) { + part = parts[i]; + if (part.length > 0) { + components = part.split('\x3d'); + name = components[0]; + name = name.replace(plusRe, '%20'); + name = decodeURIComponent(name); + value = components[1]; + if (value !== undefined) { + value = value.replace(plusRe, '%20'); + value = decodeURIComponent(value); + } else { + value = ''; + } + if (!recursive) { + if (object.hasOwnProperty(name)) { + if (!Ext.isArray(object[name])) { + object[name] = [object[name]]; + } + object[name].push(value); + } else { + object[name] = value; + } + } else { + matchedKeys = name.match(keyRe); + matchedName = name.match(nameRe); + if (!matchedName) { + throw new Error('[Ext.Object.fromQueryString] Malformed query string given, failed parsing name from "' + part + '"'); + } + name = matchedName[0]; + keys = []; + if (matchedKeys === null) { + object[name] = value; + continue; + } + for (j = 0, subLn = matchedKeys.length; j < subLn; j++) { + key = matchedKeys[j]; + key = key.length === 2 ? '' : key.substring(1, key.length - 1); + keys.push(key); + } + keys.unshift(name); + temp = object; + for (j = 0, subLn = keys.length; j < subLn; j++) { + key = keys[j]; + if (j === subLn - 1) { + if (Ext.isArray(temp) && key === '') { + temp.push(value); + } else { + temp[key] = value; + } + } else { + if (temp[key] === undefined || typeof temp[key] === 'string') { + nextKey = keys[j + 1]; + temp[key] = Ext.isNumeric(nextKey) || nextKey === '' ? [] : {}; + } + temp = temp[key]; + } + } + } + } + } + return object; + }, each:function(object, fn, scope) { + var enumerables = Ext.enumerables, i, property; + if (object) { + scope = scope || object; + for (property in object) { + if (object.hasOwnProperty(property)) { + if (fn.call(scope, property, object[property], object) === false) { + return; + } + } + } + if (enumerables) { + for (i = enumerables.length; i--;) { + if (object.hasOwnProperty(property = enumerables[i])) { + if (fn.call(scope, property, object[property], object) === false) { + return; + } + } + } + } + } + }, eachValue:function(object, fn, scope) { + var enumerables = Ext.enumerables, i, property; + scope = scope || object; + for (property in object) { + if (object.hasOwnProperty(property)) { + if (fn.call(scope, object[property]) === false) { + return; + } + } + } + if (enumerables) { + for (i = enumerables.length; i--;) { + if (object.hasOwnProperty(property = enumerables[i])) { + if (fn.call(scope, object[property]) === false) { + return; + } + } + } + } + }, merge:function(destination) { + var i = 1, ln = arguments.length, mergeFn = ExtObject.merge, cloneFn = Ext.clone, object, key, value, sourceKey; + for (; i < ln; i++) { + object = arguments[i]; + for (key in object) { + value = object[key]; + if (value && value.constructor === Object) { + sourceKey = destination[key]; + if (sourceKey && sourceKey.constructor === Object) { + mergeFn(sourceKey, value); + } else { + destination[key] = cloneFn(value); + } + } else { + destination[key] = value; + } + } + } + return destination; + }, mergeIf:function(destination) { + var i = 1, ln = arguments.length, cloneFn = Ext.clone, object, key, value; + for (; i < ln; i++) { + object = arguments[i]; + for (key in object) { + if (!(key in destination)) { + value = object[key]; + if (value && value.constructor === Object) { + destination[key] = cloneFn(value); + } else { + destination[key] = value; + } + } + } + } + return destination; + }, getAllKeys:function(object) { + var keys = [], property; + for (property in object) { + keys.push(property); + } + return keys; + }, getKey:function(object, value) { + for (var property in object) { + if (object.hasOwnProperty(property) && object[property] === value) { + return property; + } + } + return null; + }, getValues:function(object) { + var values = [], property; + for (property in object) { + if (object.hasOwnProperty(property)) { + values.push(object[property]); + } + } + return values; + }, getKeys:typeof Object.keys == 'function' ? function(object) { + if (!object) { + return []; + } + return Object.keys(object); + } : function(object) { + var keys = [], property; + for (property in object) { + if (object.hasOwnProperty(property)) { + keys.push(property); + } + } + return keys; + }, getSize:function(object) { + var size = 0, property; + for (property in object) { + if (object.hasOwnProperty(property)) { + size++; + } + } + return size; + }, isEmpty:function(object) { + for (var key in object) { + if (object.hasOwnProperty(key)) { + return false; + } + } + return true; + }, equals:function() { + var check = function(o1, o2) { + var key; + for (key in o1) { + if (o1.hasOwnProperty(key)) { + if (o1[key] !== o2[key]) { + return false; + } + } + } + return true; + }; + return function(object1, object2) { + if (object1 === object2) { + return true; + } + if (object1 && object2) { + return check(object1, object2) && check(object2, object1); + } else { + if (!object1 && !object2) { + return object1 === object2; + } else { + return false; + } + } + }; + }(), fork:function(obj) { + var ret, key, value; + if (obj && obj.constructor === Object) { + ret = ExtObject.chain(obj); + for (key in obj) { + value = obj[key]; + if (value) { + if (value.constructor === Object) { + ret[key] = ExtObject.fork(value); + } else { + if (value instanceof Array) { + ret[key] = Ext.Array.clone(value); + } + } + } + } + } else { + ret = obj; + } + return ret; + }, defineProperty:'defineProperty' in Object ? Object.defineProperty : function(object, name, descriptor) { + if (!Object.prototype.__defineGetter__) { + return; + } + if (descriptor.get) { + object.__defineGetter__(name, descriptor.get); + } + if (descriptor.set) { + object.__defineSetter__(name, descriptor.set); + } + }, classify:function(object) { + var prototype = object, objectProperties = [], propertyClassesMap = {}, objectClass = function() { + var i = 0, ln = objectProperties.length, property; + for (; i < ln; i++) { + property = objectProperties[i]; + this[property] = new propertyClassesMap[property]; + } + }, key, value; + for (key in object) { + if (object.hasOwnProperty(key)) { + value = object[key]; + if (value && value.constructor === Object) { + objectProperties.push(key); + propertyClassesMap[key] = ExtObject.classify(value); + } + } + } + objectClass.prototype = prototype; + return objectClass; + }}; + Ext.merge = Ext.Object.merge; + Ext.mergeIf = Ext.Object.mergeIf; +})(); +Ext.apply(Ext, {_namedScopes:{'this':{isThis:1}, controller:{isController:1}, self:{isSelf:1}, 'self.controller':{isSelf:1, isController:1}}, escapeId:function() { + var validIdRe = /^[a-zA-Z_][a-zA-Z0-9_\-]*$/i, escapeRx = /([\W]{1})/g, leadingNumRx = /^(\d)/g, escapeFn = function(match, capture) { + return '\\' + capture; + }, numEscapeFn = function(match, capture) { + return '\\00' + capture.charCodeAt(0).toString(16) + ' '; + }; + return function(id) { + return validIdRe.test(id) ? id : id.replace(escapeRx, escapeFn).replace(leadingNumRx, numEscapeFn); + }; +}(), callback:function(callback, scope, args, delay, caller, defaultScope) { + if (!callback) { + return; + } + var namedScope = scope in Ext._namedScopes; + if (callback.charAt) { + if ((!scope || namedScope) && caller) { + scope = caller.resolveListenerScope(namedScope ? scope : defaultScope); + } + if (!scope || !Ext.isObject(scope)) { + Ext.raise('Named method "' + callback + '" requires a scope object'); + } + if (!Ext.isFunction(scope[callback])) { + Ext.raise('No method named "' + callback + '" on ' + (scope.$className || 'scope object')); + } + callback = scope[callback]; + } else { + if (namedScope) { + scope = defaultScope || caller; + } else { + if (!scope) { + scope = caller; + } + } + } + var ret; + if (callback && Ext.isFunction(callback)) { + scope = scope || Ext.global; + if (delay) { + Ext.defer(callback, delay, scope, args); + } else { + if (Ext.elevateFunction) { + ret = Ext.elevateFunction(callback, scope, args); + } else { + if (args) { + ret = callback.apply(scope, args); + } else { + ret = callback.call(scope); + } + } + } + } + return ret; +}, coerce:function(from, to) { + var fromType = Ext.typeOf(from), toType = Ext.typeOf(to), isString = typeof from === 'string'; + if (fromType !== toType) { + switch(toType) { + case 'string': + return String(from); + case 'number': + return Number(from); + case 'boolean': + return isString && (!from || from === 'false') ? false : Boolean(from); + case 'null': + return isString && (!from || from === 'null') ? null : from; + case 'undefined': + return isString && (!from || from === 'undefined') ? undefined : from; + case 'date': + return isString && isNaN(from) ? Ext.Date.parse(from, Ext.Date.defaultFormat) : Date(Number(from)); + } + } + return from; +}, copyTo:function(dest, source, names, usePrototypeKeys) { + if (typeof names === 'string') { + names = names.split(Ext.propertyNameSplitRe); + } + for (var name, i = 0, n = names ? names.length : 0; i < n; i++) { + name = names[i]; + if (usePrototypeKeys || source.hasOwnProperty(name)) { + dest[name] = source[name]; + } + } + return dest; +}, copy:function(dest, source, names, usePrototypeKeys) { + if (typeof names === 'string') { + names = names.split(Ext.propertyNameSplitRe); + } + for (var name, i = 0, n = names ? names.length : 0; i < n; i++) { + name = names[i]; + if (source.hasOwnProperty(name) || usePrototypeKeys && name in source) { + dest[name] = source[name]; + } + } + return dest; +}, propertyNameSplitRe:/[,;\s]+/, copyToIf:function(destination, source, names) { + if (typeof names === 'string') { + names = names.split(Ext.propertyNameSplitRe); + } + for (var name, i = 0, n = names ? names.length : 0; i < n; i++) { + name = names[i]; + if (destination[name] === undefined) { + destination[name] = source[name]; + } + } + return destination; +}, copyIf:function(destination, source, names) { + if (typeof names === 'string') { + names = names.split(Ext.propertyNameSplitRe); + } + for (var name, i = 0, n = names ? names.length : 0; i < n; i++) { + name = names[i]; + if (!(name in destination) && name in source) { + destination[name] = source[name]; + } + } + return destination; +}, extend:function() { + var objectConstructor = Object.prototype.constructor, inlineOverrides = function(o) { + for (var m in o) { + if (!o.hasOwnProperty(m)) { + continue; + } + this[m] = o[m]; + } + }; + return function(subclass, superclass, overrides) { + if (Ext.isObject(superclass)) { + overrides = superclass; + superclass = subclass; + subclass = overrides.constructor !== objectConstructor ? overrides.constructor : function() { + superclass.apply(this, arguments); + }; + } + if (!superclass) { + Ext.raise({sourceClass:'Ext', sourceMethod:'extend', msg:'Attempting to extend from a class which has not been loaded on the page.'}); + } + var F = function() { + }, subclassProto, superclassProto = superclass.prototype; + F.prototype = superclassProto; + subclassProto = subclass.prototype = new F; + subclassProto.constructor = subclass; + subclass.superclass = superclassProto; + if (superclassProto.constructor === objectConstructor) { + superclassProto.constructor = superclass; + } + subclass.override = function(overrides) { + Ext.override(subclass, overrides); + }; + subclassProto.override = inlineOverrides; + subclassProto.proto = subclassProto; + subclass.override(overrides); + subclass.extend = function(o) { + return Ext.extend(subclass, o); + }; + return subclass; + }; +}(), iterate:function(object, fn, scope) { + if (Ext.isEmpty(object)) { + return; + } + if (scope === undefined) { + scope = object; + } + if (Ext.isIterable(object)) { + Ext.Array.each.call(Ext.Array, object, fn, scope); + } else { + Ext.Object.each.call(Ext.Object, object, fn, scope); + } +}, _resourcePoolRe:/^[<]([^<>@:]*)(?:[@]([^<>@:]+))?[>](.+)$/, resolveResource:function(url) { + var ret = url, m; + if (url && url.charAt(0) === '\x3c') { + m = Ext._resourcePoolRe.exec(url); + if (m) { + ret = Ext.getResourcePath(m[3], m[1], m[2]); + } + } + return ret; +}, urlEncode:function() { + var args = Ext.Array.from(arguments), prefix = ''; + if (Ext.isString(args[1])) { + prefix = args[1] + '\x26'; + args[1] = false; + } + return prefix + Ext.Object.toQueryString.apply(Ext.Object, args); +}, urlDecode:function() { + return Ext.Object.fromQueryString.apply(Ext.Object, arguments); +}, getScrollbarSize:function(force) { + if (!Ext.isDomReady) { + Ext.raise('getScrollbarSize called before DomReady'); + } + var scrollbarSize = Ext._scrollbarSize; + if (force || !scrollbarSize) { + var db = document.body, div = document.createElement('div'); + div.style.width = div.style.height = '100px'; + div.style.overflow = 'scroll'; + div.style.position = 'absolute'; + db.appendChild(div); + Ext._scrollbarSize = scrollbarSize = {width:div.offsetWidth - div.clientWidth, height:div.offsetHeight - div.clientHeight}; + db.removeChild(div); + } + return scrollbarSize; +}, typeOf:function() { + var nonWhitespaceRe = /\S/, toString = Object.prototype.toString, typeofTypes = {number:1, string:1, 'boolean':1, 'undefined':1}, toStringTypes = {'[object Array]':'array', '[object Date]':'date', '[object Boolean]':'boolean', '[object Number]':'number', '[object RegExp]':'regexp'}; + return function(value) { + if (value === null) { + return 'null'; + } + var type = typeof value, ret, typeToString; + if (typeofTypes[type]) { + return type; + } + ret = toStringTypes[typeToString = toString.call(value)]; + if (ret) { + return ret; + } + if (type === 'function') { + return 'function'; + } + if (type === 'object') { + if (value.nodeType !== undefined) { + if (value.nodeType === 3) { + return nonWhitespaceRe.test(value.nodeValue) ? 'textnode' : 'whitespace'; + } else { + return 'element'; + } + } + return 'object'; + } + Ext.raise({sourceClass:'Ext', sourceMethod:'typeOf', msg:'Failed to determine the type of "' + value + '".'}); + return typeToString; + }; +}(), factory:function(config, classReference, instance, aliasNamespace) { + var manager = Ext.ClassManager, newInstance; + if (!config || config.isInstance) { + if (instance && instance !== config) { + instance.destroy(); + } + return config; + } + if (aliasNamespace) { + if (typeof config === 'string') { + return manager.instantiateByAlias(aliasNamespace + '.' + config); + } else { + if (Ext.isObject(config) && 'type' in config) { + return manager.instantiateByAlias(aliasNamespace + '.' + config.type, config); + } + } + } + if (config === true) { + if (!instance && !classReference) { + Ext.raise('[Ext.factory] Cannot determine type of class to create'); + } + return instance || Ext.create(classReference); + } + if (!Ext.isObject(config)) { + Ext.raise('Invalid config, must be a valid config object'); + } + if ('xtype' in config) { + newInstance = manager.instantiateByAlias('widget.' + config.xtype, config); + } else { + if ('xclass' in config) { + newInstance = Ext.create(config.xclass, config); + } + } + if (newInstance) { + if (instance) { + instance.destroy(); + } + return newInstance; + } + if (instance) { + return instance.setConfig(config); + } + return Ext.create(classReference, config); +}, log:function() { + var primitiveRe = /string|number|boolean/; + function dumpObject(object, level, maxLevel, withFunctions) { + var member, type, value, name, prefix, suffix, members = []; + if (Ext.isArray(object)) { + prefix = '['; + suffix = ']'; + } else { + if (Ext.isObject(object)) { + prefix = '{'; + suffix = '}'; + } + } + if (!maxLevel) { + maxLevel = 3; + } + if (level > maxLevel) { + return prefix + '...' + suffix; + } + level = level || 1; + var spacer = (new Array(level)).join(' '); + for (name in object) { + if (object.hasOwnProperty(name)) { + value = object[name]; + type = typeof value; + if (type === 'function') { + if (!withFunctions) { + continue; + } + member = type; + } else { + if (type === 'undefined') { + member = type; + } else { + if (value === null || primitiveRe.test(type) || Ext.isDate(value)) { + member = Ext.encode(value); + } else { + if (Ext.isArray(value)) { + member = dumpObject(value, level + 1, maxLevel, withFunctions); + } else { + if (Ext.isObject(value)) { + member = dumpObject(value, level + 1, maxLevel, withFunctions); + } else { + member = type; + } + } + } + } + } + members.push(spacer + name + ': ' + member); + } + } + if (members.length) { + return prefix + '\n ' + members.join(',\n ') + '\n' + spacer + suffix; + } + return prefix + suffix; + } + function log(message) { + var options, dump, con = Ext.global.console, level = 'log', indent = log.indent || 0, prefix, stack, fn, out, max; + log.indent = indent; + if (typeof message !== 'string') { + options = message; + message = options.msg || ''; + level = options.level || level; + dump = options.dump; + stack = options.stack; + prefix = options.prefix; + fn = options.fn; + if (options.indent) { + ++log.indent; + } else { + if (options.outdent) { + log.indent = indent = Math.max(indent - 1, 0); + } + } + if (dump && !(con && con.dir)) { + message += dumpObject(dump); + dump = null; + } + } + if (arguments.length > 1) { + message += Array.prototype.slice.call(arguments, 1).join(''); + } + if (prefix) { + message = prefix + ' - ' + message; + } + message = indent ? Ext.String.repeat(' ', log.indentSize * indent) + message : message; + if (level !== 'log') { + message = '[' + level.charAt(0).toUpperCase() + '] ' + message; + } + if (fn) { + message += '\nCaller: ' + fn.toString(); + } + if (con) { + if (con[level]) { + con[level](message); + } else { + con.log(message); + } + if (dump) { + con.dir(dump); + } + if (stack && con.trace) { + if (!con.firebug || level !== 'error') { + con.trace(); + } + } + } else { + if (Ext.isOpera) { + opera.postError(message); + } else { + out = log.out; + max = log.max; + if (out.length >= max) { + Ext.Array.erase(out, 0, out.length - 3 * Math.floor(max / 4)); + } + out.push(message); + } + } + ++log.count; + ++log.counters[level]; + } + function logx(level, args) { + if (typeof args[0] === 'string') { + args.unshift({}); + } + args[0].level = level; + log.apply(this, args); + } + log.error = function() { + logx('error', Array.prototype.slice.call(arguments)); + }; + log.info = function() { + logx('info', Array.prototype.slice.call(arguments)); + }; + log.warn = function() { + logx('warn', Array.prototype.slice.call(arguments)); + }; + log.count = 0; + log.counters = {error:0, warn:0, info:0, log:0}; + log.indentSize = 2; + log.out = []; + log.max = 750; + return log; +}() || function() { + var nullLog = function() { + }; + nullLog.info = nullLog.warn = nullLog.error = Ext.emptyFn; + return nullLog; +}()}); +(function() { + var checkVerTemp = [''], endOfVersionRe = /([^\d\.])/, notDigitsRe = /[^\d]/g, plusMinusRe = /[\-+]/g, stripRe = /\s/g, underscoreRe = /_/g, toolkitNames = {classic:1, modern:1}, Version; + Ext.Version = Version = function(version, defaultMode) { + var me = this, padModes = me.padModes, ch, i, pad, parts, release, releaseStartIndex, ver; + if (version.isVersion) { + version = version.version; + } + me.version = ver = String(version).toLowerCase().replace(underscoreRe, '.').replace(plusMinusRe, ''); + ch = ver.charAt(0); + if (ch in padModes) { + ver = ver.substring(1); + pad = padModes[ch]; + } else { + pad = defaultMode ? padModes[defaultMode] : 0; + } + me.pad = pad; + releaseStartIndex = ver.search(endOfVersionRe); + me.shortVersion = ver; + if (releaseStartIndex !== -1) { + me.release = release = ver.substr(releaseStartIndex, version.length); + me.shortVersion = ver.substr(0, releaseStartIndex); + release = Version.releaseValueMap[release] || release; + } + me.releaseValue = release || pad; + me.shortVersion = me.shortVersion.replace(notDigitsRe, ''); + me.parts = parts = ver.split('.'); + for (i = parts.length; i--;) { + parts[i] = parseInt(parts[i], 10); + } + if (pad === Infinity) { + parts.push(pad); + } + me.major = parts[0] || pad; + me.minor = parts[1] || pad; + me.patch = parts[2] || pad; + me.build = parts[3] || pad; + return me; + }; + Version.prototype = {isVersion:true, padModes:{'~':NaN, '^':Infinity}, release:'', compareTo:function(other) { + var me = this, lhsPad = me.pad, lhsParts = me.parts, lhsLength = lhsParts.length, rhsVersion = other.isVersion ? other : new Version(other), rhsPad = rhsVersion.pad, rhsParts = rhsVersion.parts, rhsLength = rhsParts.length, length = Math.max(lhsLength, rhsLength), i, lhs, rhs; + for (i = 0; i < length; i++) { + lhs = i < lhsLength ? lhsParts[i] : lhsPad; + rhs = i < rhsLength ? rhsParts[i] : rhsPad; + if (lhs < rhs) { + return -1; + } + if (lhs > rhs) { + return 1; + } + } + lhs = me.releaseValue; + rhs = rhsVersion.releaseValue; + if (lhs < rhs) { + return -1; + } + if (lhs > rhs) { + return 1; + } + return 0; + }, toString:function() { + return this.version; + }, valueOf:function() { + return this.version; + }, getMajor:function() { + return this.major; + }, getMinor:function() { + return this.minor; + }, getPatch:function() { + return this.patch; + }, getBuild:function() { + return this.build; + }, getRelease:function() { + return this.release; + }, getReleaseValue:function() { + return this.releaseValue; + }, isGreaterThan:function(target) { + return this.compareTo(target) > 0; + }, isGreaterThanOrEqual:function(target) { + return this.compareTo(target) >= 0; + }, isLessThan:function(target) { + return this.compareTo(target) < 0; + }, isLessThanOrEqual:function(target) { + return this.compareTo(target) <= 0; + }, equals:function(target) { + return this.compareTo(target) === 0; + }, match:function(target) { + target = String(target); + return this.version.substr(0, target.length) === target; + }, toArray:function() { + var me = this; + return [me.getMajor(), me.getMinor(), me.getPatch(), me.getBuild(), me.getRelease()]; + }, getShortVersion:function() { + return this.shortVersion; + }, gt:function(target) { + return this.compareTo(target) > 0; + }, lt:function(target) { + return this.compareTo(target) < 0; + }, gtEq:function(target) { + return this.compareTo(target) >= 0; + }, ltEq:function(target) { + return this.compareTo(target) <= 0; + }}; + Ext.apply(Version, {aliases:{from:{extjs:'ext', core:'core', touch:'modern'}, to:{ext:['extjs'], 'core':['core'], modern:['touch']}}, releaseValueMap:{dev:-6, alpha:-5, a:-5, beta:-4, b:-4, rc:-3, '#':-2, p:-1, pl:-1}, getComponentValue:function(value) { + return !value ? 0 : isNaN(value) ? this.releaseValueMap[value] || value : parseInt(value, 10); + }, compare:function(current, target) { + var ver = current.isVersion ? current : new Version(current); + return ver.compareTo(target); + }, set:function(collection, packageName, version) { + var aliases = Version.aliases.to[packageName], ver = version.isVersion ? version : new Version(version), i; + collection[packageName] = ver; + if (aliases) { + for (i = aliases.length; i-- > 0;) { + collection[aliases[i]] = ver; + } + } + return ver; + }}); + Ext.apply(Ext, {compatVersions:{}, versions:{}, lastRegisteredVersion:null, getCompatVersion:function(packageName) { + var versions = Ext.compatVersions, compat; + if (!packageName) { + compat = versions.ext || versions.touch || versions.core; + } else { + compat = versions[Version.aliases.from[packageName] || packageName]; + } + return compat || Ext.getVersion(packageName); + }, setCompatVersion:function(packageName, version) { + Version.set(Ext.compatVersions, packageName, version); + }, setVersion:function(packageName, version) { + if (packageName in toolkitNames) { + Ext.toolkit = packageName; + } + Ext.lastRegisteredVersion = Version.set(Ext.versions, packageName, version); + return this; + }, getVersion:function(packageName) { + var versions = Ext.versions; + if (!packageName) { + return versions.ext || versions.touch || versions.core; + } + return versions[Version.aliases.from[packageName] || packageName]; + }, checkVersion:function(specs, matchAll) { + var isArray = Ext.isArray(specs), aliases = Version.aliases.from, compat = isArray ? specs : checkVerTemp, length = compat.length, versions = Ext.versions, frameworkVer = versions.ext || versions.touch, i, index, matches, minVer, maxVer, packageName, spec, range, ver; + if (!isArray) { + checkVerTemp[0] = specs; + } + for (i = 0; i < length; ++i) { + if (!Ext.isString(spec = compat[i])) { + matches = Ext.checkVersion(spec.and || spec.or, !spec.or); + if (spec.not) { + matches = !matches; + } + } else { + if (spec.indexOf(' ') >= 0) { + spec = spec.replace(stripRe, ''); + } + index = spec.indexOf('@'); + if (index < 0) { + range = spec; + ver = frameworkVer; + } else { + packageName = spec.substring(0, index); + if (!(ver = versions[aliases[packageName] || packageName])) { + if (matchAll) { + return false; + } + continue; + } + range = spec.substring(index + 1); + } + index = range.indexOf('-'); + if (index < 0) { + if (range.charAt(index = range.length - 1) === '+') { + minVer = range.substring(0, index); + maxVer = null; + } else { + minVer = maxVer = range; + } + } else { + if (index > 0) { + minVer = range.substring(0, index); + maxVer = range.substring(index + 1); + } else { + minVer = null; + maxVer = range.substring(index + 1); + } + } + matches = true; + if (minVer) { + minVer = new Version(minVer, '~'); + matches = minVer.ltEq(ver); + } + if (matches && maxVer) { + maxVer = new Version(maxVer, '~'); + matches = maxVer.gtEq(ver); + } + } + if (matches) { + if (!matchAll) { + return true; + } + } else { + if (matchAll) { + return false; + } + } + } + return !!matchAll; + }, deprecate:function(packageName, since, closure, scope) { + if (Version.compare(Ext.getVersion(packageName), since) < 1) { + closure.call(scope); + } + }}); +})(); +(function(manifest) { + var packages = manifest && manifest.packages || {}, compat = manifest && manifest.compatibility, name, pkg; + for (name in packages) { + pkg = packages[name]; + Ext.setVersion(name, pkg.version); + } + if (compat) { + if (Ext.isString(compat)) { + Ext.setCompatVersion('core', compat); + } else { + for (name in compat) { + Ext.setCompatVersion(name, compat[name]); + } + } + } + if (!packages.ext && !packages.touch) { + Ext.setVersion('ext', '6.0.1.250'); + Ext.setVersion('core', '6.0.1.250'); + } +})(Ext.manifest); +Ext.Config = function(name) { + var me = this, capitalizedName = name.charAt(0).toUpperCase() + name.substr(1); + me.name = name; + me.names = {internal:'_' + name, initializing:'is' + capitalizedName + 'Initializing', apply:'apply' + capitalizedName, update:'update' + capitalizedName, get:'get' + capitalizedName, set:'set' + capitalizedName, initGet:'initGet' + capitalizedName, changeEvent:name.toLowerCase() + 'change'}; + me.root = me; +}; +Ext.Config.map = {}; +Ext.Config.get = function(name) { + var map = Ext.Config.map, ret = map[name] || (map[name] = new Ext.Config(name)); + return ret; +}; +Ext.Config.prototype = {self:Ext.Config, isConfig:true, getGetter:function() { + return this.getter || (this.root.getter = this.makeGetter()); +}, getInitGetter:function() { + return this.initGetter || (this.root.initGetter = this.makeInitGetter()); +}, getSetter:function() { + return this.setter || (this.root.setter = this.makeSetter()); +}, getEventedSetter:function() { + return this.eventedSetter || (this.root.eventedSetter = this.makeEventedSetter()); +}, getInternalName:function(target) { + return target.$configPrefixed ? this.names.internal : this.name; +}, mergeNew:function(newValue, oldValue, target, mixinClass) { + var ret, key; + if (!oldValue) { + ret = newValue; + } else { + if (!newValue) { + ret = oldValue; + } else { + ret = Ext.Object.chain(oldValue); + for (key in newValue) { + if (!mixinClass || !(key in ret)) { + ret[key] = newValue[key]; + } + } + } + } + return ret; +}, mergeSets:function(newValue, oldValue, preserveExisting) { + var ret = oldValue ? Ext.Object.chain(oldValue) : {}, i, val; + if (newValue instanceof Array) { + for (i = newValue.length; i--;) { + val = newValue[i]; + if (!preserveExisting || !(val in ret)) { + ret[val] = true; + } + } + } else { + if (newValue) { + if (newValue.constructor === Object) { + for (i in newValue) { + val = newValue[i]; + if (!preserveExisting || !(i in ret)) { + ret[i] = val; + } + } + } else { + if (!preserveExisting || !(newValue in ret)) { + ret[newValue] = true; + } + } + } + } + return ret; +}, makeGetter:function() { + var name = this.name, prefixedName = this.names.internal; + return function() { + var internalName = this.$configPrefixed ? prefixedName : name; + return this[internalName]; + }; +}, makeInitGetter:function() { + var name = this.name, names = this.names, setName = names.set, getName = names.get, initializingName = names.initializing; + return function() { + var me = this; + me[initializingName] = true; + delete me[getName]; + me[setName](me.config[name]); + delete me[initializingName]; + return me[getName].apply(me, arguments); + }; +}, makeSetter:function() { + var name = this.name, names = this.names, prefixedName = names.internal, getName = names.get, applyName = names.apply, updateName = names.update, setter; + setter = function(value) { + var me = this, internalName = me.$configPrefixed ? prefixedName : name, oldValue = me[internalName]; + delete me[getName]; + if (!me[applyName] || (value = me[applyName](value, oldValue)) !== undefined) { + if (value !== (oldValue = me[internalName])) { + me[internalName] = value; + if (me[updateName]) { + me[updateName](value, oldValue); + } + } + } + return me; + }; + setter.$isDefault = true; + return setter; +}, makeEventedSetter:function() { + var name = this.name, names = this.names, prefixedName = names.internal, getName = names.get, applyName = names.apply, updateName = names.update, changeEventName = names.changeEvent, updateFn = function(me, value, oldValue, internalName) { + me[internalName] = value; + if (me[updateName]) { + me[updateName](value, oldValue); + } + }, setter; + setter = function(value) { + var me = this, internalName = me.$configPrefixed ? prefixedName : name, oldValue = me[internalName]; + delete me[getName]; + if (!me[applyName] || (value = me[applyName](value, oldValue)) !== undefined) { + if (value !== (oldValue = me[internalName])) { + if (me.isConfiguring) { + me[internalName] = value; + if (me[updateName]) { + me[updateName](value, oldValue); + } + } else { + me.fireEventedAction(changeEventName, [me, value, oldValue], updateFn, me, [me, value, oldValue, internalName]); + } + } + } + return me; + }; + setter.$isDefault = true; + return setter; +}}; +(function() { + var ExtConfig = Ext.Config, configPropMap = ExtConfig.map, ExtObject = Ext.Object; + Ext.Configurator = function(cls) { + var me = this, prototype = cls.prototype, superCfg = cls.superclass ? cls.superclass.self.$config : null; + me.cls = cls; + me.superCfg = superCfg; + if (superCfg) { + me.configs = ExtObject.chain(superCfg.configs); + me.cachedConfigs = ExtObject.chain(superCfg.cachedConfigs); + me.initMap = ExtObject.chain(superCfg.initMap); + me.values = ExtObject.chain(superCfg.values); + me.needsFork = superCfg.needsFork; + me.deprecations = ExtObject.chain(superCfg.deprecations); + } else { + me.configs = {}; + me.cachedConfigs = {}; + me.initMap = {}; + me.values = {}; + me.deprecations = {}; + } + prototype.config = prototype.defaultConfig = me.values; + cls.$config = me; + }; + Ext.Configurator.prototype = {self:Ext.Configurator, needsFork:false, initList:null, add:function(config, mixinClass) { + var me = this, Cls = me.cls, configs = me.configs, cachedConfigs = me.cachedConfigs, initMap = me.initMap, prototype = Cls.prototype, mixinConfigs = mixinClass && mixinClass.$config.configs, values = me.values, isObject, meta, isCached, merge, cfg, currentValue, name, names, s, value; + for (name in config) { + value = config[name]; + isObject = value && value.constructor === Object; + meta = isObject && '$value' in value ? value : null; + if (meta) { + isCached = !!meta.cached; + value = meta.$value; + isObject = value && value.constructor === Object; + } + merge = meta && meta.merge; + cfg = configs[name]; + if (cfg) { + if (mixinClass) { + merge = cfg.merge; + if (!merge) { + continue; + } + meta = null; + } else { + merge = merge || cfg.merge; + } + if (!mixinClass && isCached && !cachedConfigs[name]) { + Ext.raise('Redefining config as cached: ' + name + ' in class: ' + Cls.$className); + } + currentValue = values[name]; + if (merge) { + value = merge.call(cfg, value, currentValue, Cls, mixinClass); + } else { + if (isObject) { + if (currentValue && currentValue.constructor === Object) { + value = ExtObject.merge({}, currentValue, value); + } + } + } + } else { + if (mixinConfigs) { + cfg = mixinConfigs[name]; + meta = null; + } else { + cfg = ExtConfig.get(name); + } + configs[name] = cfg; + if (cfg.cached || isCached) { + cachedConfigs[name] = true; + } + names = cfg.names; + if (!prototype[s = names.get]) { + prototype[s] = cfg.getter || cfg.getGetter(); + } + if (!prototype[s = names.set]) { + prototype[s] = meta && meta.evented ? cfg.eventedSetter || cfg.getEventedSetter() : cfg.setter || cfg.getSetter(); + } + } + if (meta) { + if (cfg.owner !== Cls) { + configs[name] = cfg = Ext.Object.chain(cfg); + cfg.owner = Cls; + } + Ext.apply(cfg, meta); + delete cfg.$value; + } + if (!me.needsFork && value && (value.constructor === Object || value instanceof Array)) { + me.needsFork = true; + } + if (value !== null) { + initMap[name] = true; + } else { + if (prototype.$configPrefixed) { + prototype[configs[name].names.internal] = null; + } else { + prototype[configs[name].name] = null; + } + if (name in initMap) { + initMap[name] = false; + } + } + values[name] = value; + } + }, addDeprecations:function(configs) { + var me = this, deprecations = me.deprecations, className = (me.cls.$className || '') + '#', message, newName, oldName; + for (oldName in configs) { + newName = configs[oldName]; + if (!newName) { + message = 'This config has been removed.'; + } else { + if (!(message = newName.message)) { + message = 'This config has been renamed to "' + newName + '"'; + } + } + deprecations[oldName] = className + oldName + ': ' + message; + } + }, configure:function(instance, instanceConfig) { + var me = this, configs = me.configs, deprecations = me.deprecations, initMap = me.initMap, initListMap = me.initListMap, initList = me.initList, prototype = me.cls.prototype, values = me.values, remaining = 0, firstInstance = !initList, cachedInitList, cfg, getter, needsInit, i, internalName, ln, names, name, value, isCached, valuesKey, field; + values = me.needsFork ? ExtObject.fork(values) : ExtObject.chain(values); + instance.isConfiguring = true; + if (firstInstance) { + me.initList = initList = []; + me.initListMap = initListMap = {}; + instance.isFirstInstance = true; + for (name in initMap) { + needsInit = initMap[name]; + cfg = configs[name]; + isCached = cfg.cached; + if (needsInit) { + names = cfg.names; + value = values[name]; + if (!prototype[names.set].$isDefault || prototype[names.apply] || prototype[names.update] || typeof value === 'object') { + if (isCached) { + (cachedInitList || (cachedInitList = [])).push(cfg); + } else { + initList.push(cfg); + initListMap[name] = true; + } + instance[names.get] = cfg.initGetter || cfg.getInitGetter(); + } else { + prototype[cfg.getInternalName(prototype)] = value; + } + } else { + if (isCached) { + prototype[cfg.getInternalName(prototype)] = undefined; + } + } + } + } + ln = cachedInitList && cachedInitList.length; + if (ln) { + for (i = 0; i < ln; ++i) { + internalName = cachedInitList[i].getInternalName(prototype); + instance[internalName] = null; + } + for (i = 0; i < ln; ++i) { + names = (cfg = cachedInitList[i]).names; + getter = names.get; + if (instance.hasOwnProperty(getter)) { + instance[names.set](values[cfg.name]); + delete instance[getter]; + } + } + for (i = 0; i < ln; ++i) { + internalName = cachedInitList[i].getInternalName(prototype); + prototype[internalName] = instance[internalName]; + delete instance[internalName]; + } + } + if (instanceConfig && instanceConfig.platformConfig) { + instanceConfig = me.resolvePlatformConfig(instance, instanceConfig); + } + if (firstInstance) { + if (instance.afterCachedConfig && !instance.afterCachedConfig.$nullFn) { + instance.afterCachedConfig(instanceConfig); + } + } + instance.config = values; + for (i = 0, ln = initList.length; i < ln; ++i) { + cfg = initList[i]; + instance[cfg.names.get] = cfg.initGetter || cfg.getInitGetter(); + } + if (instance.transformInstanceConfig) { + instanceConfig = instance.transformInstanceConfig(instanceConfig); + } + if (instanceConfig) { + for (name in instanceConfig) { + value = instanceConfig[name]; + cfg = configs[name]; + if (deprecations[name]) { + Ext.log.warn(deprecations[name]); + if (!cfg) { + continue; + } + } + if (!cfg) { + field = instance.self.prototype[name]; + if (instance.$configStrict && typeof field === 'function' && !field.$nullFn) { + Ext.raise('Cannot override method ' + name + ' on ' + instance.$className + ' instance.'); + } + instance[name] = value; + } else { + if (!cfg.lazy) { + ++remaining; + } + if (!initListMap[name]) { + instance[cfg.names.get] = cfg.initGetter || cfg.getInitGetter(); + } + if (cfg.merge) { + value = cfg.merge(value, values[name], instance); + } else { + if (value && value.constructor === Object) { + valuesKey = values[name]; + if (valuesKey && valuesKey.constructor === Object) { + value = ExtObject.merge(values[name], value); + } else { + value = Ext.clone(value); + } + } + } + } + values[name] = value; + } + } + if (instance.beforeInitConfig && !instance.beforeInitConfig.$nullFn) { + if (instance.beforeInitConfig(instanceConfig) === false) { + return; + } + } + if (instanceConfig) { + for (name in instanceConfig) { + if (!remaining) { + break; + } + cfg = configs[name]; + if (cfg && !cfg.lazy) { + --remaining; + names = cfg.names; + getter = names.get; + if (instance.hasOwnProperty(getter)) { + instance[names.set](values[name]); + delete instance[names.get]; + } + } + } + } + for (i = 0, ln = initList.length; i < ln; ++i) { + cfg = initList[i]; + names = cfg.names; + getter = names.get; + if (!cfg.lazy && instance.hasOwnProperty(getter)) { + instance[names.set](values[cfg.name]); + delete instance[getter]; + } + } + delete instance.isConfiguring; + }, getCurrentConfig:function(instance) { + var defaultConfig = instance.defaultConfig, config = {}, name; + for (name in defaultConfig) { + config[name] = instance[configPropMap[name].names.get](); + } + return config; + }, merge:function(instance, baseConfig, config) { + var configs = this.configs, name, value, baseValue, cfg; + for (name in config) { + value = config[name]; + cfg = configs[name]; + if (cfg) { + if (cfg.merge) { + value = cfg.merge(value, baseConfig[name], instance); + } else { + if (value && value.constructor === Object) { + baseValue = baseConfig[name]; + if (baseValue && baseValue.constructor === Object) { + value = Ext.Object.merge(baseValue, value); + } else { + value = Ext.clone(value); + } + } + } + } + baseConfig[name] = value; + } + return baseConfig; + }, reconfigure:function(instance, instanceConfig, options) { + var currentConfig = instance.config, configList = [], strict = instance.$configStrict && !(options && options.strict === false), configs = this.configs, defaults = options && options.defaults, cfg, getter, i, len, name, names, prop; + for (name in instanceConfig) { + if (defaults && instance.hasOwnProperty(name)) { + continue; + } + currentConfig[name] = instanceConfig[name]; + cfg = configs[name]; + if (this.deprecations[name]) { + Ext.log.warn(this.deprecations[name]); + if (!cfg) { + continue; + } + } + if (cfg) { + instance[cfg.names.get] = cfg.initGetter || cfg.getInitGetter(); + } else { + prop = instance.self.prototype[name]; + if (strict) { + if (typeof prop === 'function' && !prop.$nullFn) { + Ext.Error.raise('Cannot override method ' + name + ' on ' + instance.$className + ' instance.'); + continue; + } else { + if (name !== 'type') { + Ext.log.warn('No such config "' + name + '" for class ' + instance.$className); + } + } + } + } + configList.push(name); + } + for (i = 0, len = configList.length; i < len; i++) { + name = configList[i]; + cfg = configs[name]; + if (cfg) { + names = cfg.names; + getter = names.get; + if (instance.hasOwnProperty(getter)) { + instance[names.set](instanceConfig[name]); + delete instance[getter]; + } + } else { + cfg = configPropMap[name] || Ext.Config.get(name); + names = cfg.names; + if (instance[names.set]) { + instance[names.set](instanceConfig[name]); + } else { + instance[name] = instanceConfig[name]; + } + } + } + }, resolvePlatformConfig:function(instance, instanceConfig) { + var platformConfig = instanceConfig && instanceConfig.platformConfig, ret = instanceConfig, i, keys, n; + if (platformConfig) { + keys = Ext.getPlatformConfigKeys(platformConfig); + n = keys.length; + if (n) { + ret = Ext.merge({}, ret); + for (i = 0, n = keys.length; i < n; ++i) { + this.merge(instance, ret, platformConfig[keys[i]]); + } + } + } + return ret; + }}; +})(); +Ext.Base = function(flexSetter) { + var noArgs = [], baseStaticMember, baseStaticMembers = [], getConfig = function(name, peek) { + var me = this, ret, cfg, getterName; + if (name) { + cfg = Ext.Config.map[name]; + if (!cfg) { + Ext.Logger.error("Invalid property name for getter: '" + name + "' for '" + me.$className + "'."); + } + getterName = cfg.names.get; + if (peek && me.hasOwnProperty(getterName)) { + ret = me.config[name]; + } else { + ret = me[getterName](); + } + } else { + ret = me.getCurrentConfig(); + } + return ret; + }, makeDeprecatedMethod = function(oldName, newName, msg) { + var message = '"' + oldName + '" is deprecated.'; + if (msg) { + message += ' ' + msg; + } else { + if (newName) { + message += ' Please use "' + newName + '" instead.'; + } + } + return function() { + Ext.raise(message); + }; + }, addDeprecatedProperty = function(object, oldName, newName, message) { + if (!message) { + message = '"' + oldName + '" is deprecated.'; + } + if (newName) { + message += ' Please use "' + newName + '" instead.'; + } + if (message) { + Ext.Object.defineProperty(object, oldName, {get:function() { + Ext.raise(message); + }, set:function(value) { + Ext.raise(message); + }, configurable:true}); + } + }, makeAliasFn = function(name) { + return function() { + return this[name].apply(this, arguments); + }; + }, Version = Ext.Version, leadingDigitRe = /^\d/, oneMember = {}, aliasOneMember = {}, Base = function() { + }, BasePrototype = Base.prototype; + Ext.apply(Base, {$className:'Ext.Base', $isClass:true, create:function() { + return Ext.create.apply(Ext, [this].concat(Array.prototype.slice.call(arguments, 0))); + }, addDeprecations:function(deprecations) { + var me = this, all = [], compatVersion = Ext.getCompatVersion(deprecations.name), configurator = me.getConfigurator(), displayName = (me.$className || '') + '#', deprecate, versionSpec, index, message, target, enabled, existing, fn, names, oldName, newName, member, statics, version; + for (versionSpec in deprecations) { + if (leadingDigitRe.test(versionSpec)) { + version = new Ext.Version(versionSpec); + version.deprecations = deprecations[versionSpec]; + all.push(version); + } + } + all.sort(Version.compare); + for (index = all.length; index--;) { + deprecate = (version = all[index]).deprecations; + target = me.prototype; + statics = deprecate.statics; + enabled = compatVersion && compatVersion.lt(version); + if (!enabled) { + } else { + if (!enabled) { + break; + } + } + while (deprecate) { + names = deprecate.methods; + if (names) { + for (oldName in names) { + member = names[oldName]; + fn = null; + if (!member) { + Ext.Assert.isNotDefinedProp(target, oldName); + fn = makeDeprecatedMethod(displayName + oldName); + } else { + if (Ext.isString(member)) { + Ext.Assert.isNotDefinedProp(target, oldName); + Ext.Assert.isDefinedProp(target, member); + if (enabled) { + fn = makeAliasFn(member); + } else { + fn = makeDeprecatedMethod(displayName + oldName, member); + } + } else { + message = ''; + if (member.message || member.fn) { + message = member.message; + member = member.fn; + } + existing = target.hasOwnProperty(oldName) && target[oldName]; + if (enabled && member) { + member.$owner = me; + member.$name = oldName; + member.name = displayName + oldName; + if (existing) { + member.$previous = existing; + } + fn = member; + } else { + if (!existing) { + fn = makeDeprecatedMethod(displayName + oldName, null, message); + } + } + } + } + if (fn) { + target[oldName] = fn; + } + } + } + names = deprecate.configs; + if (names) { + configurator.addDeprecations(names); + } + names = deprecate.properties; + if (names && !enabled) { + for (oldName in names) { + newName = names[oldName]; + if (Ext.isString(newName)) { + addDeprecatedProperty(target, displayName + oldName, newName); + } else { + if (newName && newName.message) { + addDeprecatedProperty(target, displayName + oldName, null, newName.message); + } else { + addDeprecatedProperty(target, displayName + oldName); + } + } + } + } + deprecate = statics; + statics = null; + target = me; + } + } + }, extend:function(parent) { + var me = this, parentPrototype = parent.prototype, prototype, i, ln, name, statics; + prototype = me.prototype = Ext.Object.chain(parentPrototype); + prototype.self = me; + me.superclass = prototype.superclass = parentPrototype; + if (!parent.$isClass) { + for (i in BasePrototype) { + if (i in prototype) { + prototype[i] = BasePrototype[i]; + } + } + } + statics = parentPrototype.$inheritableStatics; + if (statics) { + for (i = 0, ln = statics.length; i < ln; i++) { + name = statics[i]; + if (!me.hasOwnProperty(name)) { + me[name] = parent[name]; + } + } + } + if (parent.$onExtended) { + me.$onExtended = parent.$onExtended.slice(); + } + me.getConfigurator(); + }, $onExtended:[], triggerExtended:function() { + Ext.classSystemMonitor && Ext.classSystemMonitor(this, 'Ext.Base#triggerExtended', arguments); + var callbacks = this.$onExtended, ln = callbacks.length, i, callback; + if (ln > 0) { + for (i = 0; i < ln; i++) { + callback = callbacks[i]; + callback.fn.apply(callback.scope || this, arguments); + } + } + }, onExtended:function(fn, scope) { + this.$onExtended.push({fn:fn, scope:scope}); + return this; + }, addStatics:function(members) { + this.addMembers(members, true); + return this; + }, addInheritableStatics:function(members) { + var inheritableStatics, hasInheritableStatics, prototype = this.prototype, name, member; + inheritableStatics = prototype.$inheritableStatics; + hasInheritableStatics = prototype.$hasInheritableStatics; + if (!inheritableStatics) { + inheritableStatics = prototype.$inheritableStatics = []; + hasInheritableStatics = prototype.$hasInheritableStatics = {}; + } + var className = Ext.getClassName(this) + '.'; + for (name in members) { + if (members.hasOwnProperty(name)) { + member = members[name]; + if (typeof member == 'function') { + member.name = className + name; + } + this[name] = member; + if (!hasInheritableStatics[name]) { + hasInheritableStatics[name] = true; + inheritableStatics.push(name); + } + } + } + return this; + }, addMembers:function(members, isStatic, privacy) { + var me = this, cloneFunction = Ext.Function.clone, target = isStatic ? me : me.prototype, defaultConfig = !isStatic && target.defaultConfig, enumerables = Ext.enumerables, privates = members.privates, configs, i, ln, member, name, subPrivacy, privateStatics; + var displayName = (me.$className || '') + '#'; + if (privates) { + delete members.privates; + if (!isStatic) { + privateStatics = privates.statics; + delete privates.statics; + } + subPrivacy = privates.privacy || privacy || 'framework'; + me.addMembers(privates, isStatic, subPrivacy); + if (privateStatics) { + me.addMembers(privateStatics, true, subPrivacy); + } + } + for (name in members) { + if (members.hasOwnProperty(name)) { + member = members[name]; + if (privacy === true) { + privacy = 'framework'; + } + if (member && member.$nullFn && privacy !== member.$privacy) { + Ext.raise('Cannot use stock function for private method ' + (me.$className ? me.$className + '#' : '') + name); + } + if (typeof member === 'function' && !member.$isClass && !member.$nullFn) { + if (member.$owner) { + member = cloneFunction(member); + } + if (target.hasOwnProperty(name)) { + member.$previous = target[name]; + } + member.$owner = me; + member.$name = name; + member.name = displayName + name; + var existing = target[name]; + if (privacy) { + member.$privacy = privacy; + if (existing && existing.$privacy && existing.$privacy !== privacy) { + Ext.privacyViolation(me, existing, member, isStatic); + } + } else { + if (existing && existing.$privacy) { + Ext.privacyViolation(me, existing, member, isStatic); + } + } + } else { + if (defaultConfig && name in defaultConfig && !target.config.hasOwnProperty(name)) { + (configs || (configs = {}))[name] = member; + continue; + } + } + target[name] = member; + } + } + if (configs) { + me.addConfig(configs); + } + if (enumerables) { + for (i = 0, ln = enumerables.length; i < ln; ++i) { + if (members.hasOwnProperty(name = enumerables[i])) { + member = members[name]; + if (member && !member.$nullFn) { + if (member.$owner) { + member = cloneFunction(member); + } + member.$owner = me; + member.$name = name; + member.name = displayName + name; + if (target.hasOwnProperty(name)) { + member.$previous = target[name]; + } + } + target[name] = member; + } + } + } + return this; + }, addMember:function(name, member) { + oneMember[name] = member; + this.addMembers(oneMember); + delete oneMember[name]; + return this; + }, borrow:function(fromClass, members) { + Ext.classSystemMonitor && Ext.classSystemMonitor(this, 'Ext.Base#borrow', arguments); + var prototype = fromClass.prototype, membersObj = {}, i, ln, name; + members = Ext.Array.from(members); + for (i = 0, ln = members.length; i < ln; i++) { + name = members[i]; + membersObj[name] = prototype[name]; + } + return this.addMembers(membersObj); + }, override:function(members) { + var me = this, statics = members.statics, inheritableStatics = members.inheritableStatics, config = members.config, mixins = members.mixins, cachedConfig = members.cachedConfig; + if (statics || inheritableStatics || config) { + members = Ext.apply({}, members); + } + if (statics) { + me.addMembers(statics, true); + delete members.statics; + } + if (inheritableStatics) { + me.addInheritableStatics(inheritableStatics); + delete members.inheritableStatics; + } + if (config) { + me.addConfig(config); + delete members.config; + } + if (cachedConfig) { + me.addCachedConfig(cachedConfig); + delete members.cachedConfig; + } + delete members.mixins; + me.addMembers(members); + if (mixins) { + me.mixin(mixins); + } + return me; + }, callParent:function(args) { + var method; + return (method = this.callParent.caller) && (method.$previous || (method = method.$owner ? method : method.caller) && method.$owner.superclass.self[method.$name]).apply(this, args || noArgs); + }, callSuper:function(args) { + var method; + return (method = this.callSuper.caller) && ((method = method.$owner ? method : method.caller) && method.$owner.superclass.self[method.$name]).apply(this, args || noArgs); + }, mixin:function(name, mixinClass) { + var me = this, mixin, prototype, key, statics, i, ln, staticName, mixinValue, mixins; + if (typeof name !== 'string') { + mixins = name; + if (mixins instanceof Array) { + for (i = 0, ln = mixins.length; i < ln; i++) { + mixin = mixins[i]; + me.mixin(mixin.prototype.mixinId || mixin.$className, mixin); + } + } else { + for (var mixinName in mixins) { + me.mixin(mixinName, mixins[mixinName]); + } + } + return; + } + mixin = mixinClass.prototype; + prototype = me.prototype; + if (mixin.onClassMixedIn) { + mixin.onClassMixedIn.call(mixinClass, me); + } + if (!prototype.hasOwnProperty('mixins')) { + if ('mixins' in prototype) { + prototype.mixins = Ext.Object.chain(prototype.mixins); + } else { + prototype.mixins = {}; + } + } + for (key in mixin) { + mixinValue = mixin[key]; + if (key === 'mixins') { + Ext.applyIf(prototype.mixins, mixinValue); + } else { + if (!(key === 'mixinId' || key === 'config') && prototype[key] === undefined) { + prototype[key] = mixinValue; + } + } + } + statics = mixin.$inheritableStatics; + if (statics) { + for (i = 0, ln = statics.length; i < ln; i++) { + staticName = statics[i]; + if (!me.hasOwnProperty(staticName)) { + me[staticName] = mixinClass[staticName]; + } + } + } + if ('config' in mixin) { + me.addConfig(mixin.config, mixinClass); + } + prototype.mixins[name] = mixin; + if (mixin.afterClassMixedIn) { + mixin.afterClassMixedIn.call(mixinClass, me); + } + return me; + }, addConfig:function(config, mixinClass) { + var cfg = this.$config || this.getConfigurator(); + cfg.add(config, mixinClass); + }, addCachedConfig:function(config, isMixin) { + var cached = {}, key; + for (key in config) { + cached[key] = {cached:true, $value:config[key]}; + } + this.addConfig(cached, isMixin); + }, getConfigurator:function() { + return this.$config || new Ext.Configurator(this); + }, getName:function() { + return Ext.getClassName(this); + }, createAlias:flexSetter(function(alias, origin) { + aliasOneMember[alias] = function() { + return this[origin].apply(this, arguments); + }; + this.override(aliasOneMember); + delete aliasOneMember[alias]; + })}); + for (baseStaticMember in Base) { + if (Base.hasOwnProperty(baseStaticMember)) { + baseStaticMembers.push(baseStaticMember); + } + } + Base.$staticMembers = baseStaticMembers; + Base.getConfigurator(); + Base.addMembers({$className:'Ext.Base', isInstance:true, $configPrefixed:true, $configStrict:true, isConfiguring:false, isFirstInstance:false, destroyed:false, statics:function() { + var method = this.statics.caller, self = this.self; + if (!method) { + return self; + } + return method.$owner; + }, callParent:function(args) { + var method, superMethod = (method = this.callParent.caller) && (method.$previous || (method = method.$owner ? method : method.caller) && method.$owner.superclass[method.$name]); + if (!superMethod) { + method = this.callParent.caller; + var parentClass, methodName; + if (!method.$owner) { + if (!method.caller) { + throw new Error('Attempting to call a protected method from the public scope, which is not allowed'); + } + method = method.caller; + } + parentClass = method.$owner.superclass; + methodName = method.$name; + if (!(methodName in parentClass)) { + throw new Error("this.callParent() was called but there's no such method (" + methodName + ') found in the parent class (' + (Ext.getClassName(parentClass) || 'Object') + ')'); + } + } + return superMethod.apply(this, args || noArgs); + }, callSuper:function(args) { + var method, superMethod = (method = this.callSuper.caller) && ((method = method.$owner ? method : method.caller) && method.$owner.superclass[method.$name]); + if (!superMethod) { + method = this.callSuper.caller; + var parentClass, methodName; + if (!method.$owner) { + if (!method.caller) { + throw new Error('Attempting to call a protected method from the public scope, which is not allowed'); + } + method = method.caller; + } + parentClass = method.$owner.superclass; + methodName = method.$name; + if (!(methodName in parentClass)) { + throw new Error("this.callSuper() was called but there's no such method (" + methodName + ') found in the parent class (' + (Ext.getClassName(parentClass) || 'Object') + ')'); + } + } + return superMethod.apply(this, args || noArgs); + }, self:Base, constructor:function() { + return this; + }, getConfigurator:function() { + return this.$config || this.self.getConfigurator(); + }, initConfig:function(instanceConfig) { + var me = this, cfg = me.getConfigurator(); + me.initConfig = Ext.emptyFn; + me.initialConfig = instanceConfig || {}; + cfg.configure(me, instanceConfig); + return me; + }, beforeInitConfig:Ext.emptyFn, getConfig:getConfig, setConfig:function(name, value, options) { + var me = this, config; + if (name) { + if (typeof name === 'string') { + config = {}; + config[name] = value; + } else { + config = name; + } + me.getConfigurator().reconfigure(me, config, options); + } + return me; + }, getCurrentConfig:function() { + var cfg = this.getConfigurator(); + return cfg.getCurrentConfig(this); + }, hasConfig:function(name) { + return name in this.defaultConfig; + }, getInitialConfig:function(name) { + var config = this.config; + if (!name) { + return config; + } + return config[name]; + }, $links:null, link:function(name, value) { + var me = this, links = me.$links || (me.$links = {}); + links[name] = true; + me[name] = value; + return value; + }, unlink:function(names) { + var me = this, i, ln, link, value; + if (!Ext.isArray(names)) { + Ext.raise('Invalid argument - expected array of strings'); + } + for (i = 0, ln = names.length; i < ln; i++) { + link = names[i]; + value = me[link]; + if (value) { + if (value.isInstance && !value.destroyed) { + value.destroy(); + } else { + if (value.parentNode && 'nodeType' in value) { + value.parentNode.removeChild(value); + } + } + } + me[link] = null; + } + return me; + }, destroy:function() { + var me = this, links = me.$links; + me.initialConfig = me.config = null; + me.destroy = Ext.emptyFn; + me.isDestroyed = me.destroyed = true; + if (links) { + me.$links = null; + me.unlink(Ext.Object.getKeys(links)); + } + }}); + BasePrototype.callOverridden = BasePrototype.callParent; + Ext.privacyViolation = function(cls, existing, member, isStatic) { + var name = member.$name, conflictCls = existing.$owner && existing.$owner.$className, s = isStatic ? 'static ' : '', msg = member.$privacy ? 'Private ' + s + member.$privacy + ' method "' + name + '"' : 'Public ' + s + 'method "' + name + '"'; + if (cls.$className) { + msg = cls.$className + ': ' + msg; + } + if (!existing.$privacy) { + msg += conflictCls ? ' hides public method inherited from ' + conflictCls : ' hides inherited public method.'; + } else { + msg += conflictCls ? ' conflicts with private ' + existing.$privacy + ' method declared by ' + conflictCls : ' conflicts with inherited private ' + existing.$privacy + ' method.'; + } + var compat = Ext.getCompatVersion(); + var ver = Ext.getVersion(); + if (ver && compat && compat.lt(ver)) { + Ext.log.error(msg); + } else { + Ext.raise(msg); + } + }; + return Base; +}(Ext.Function.flexSetter); +(function(Cache, prototype) { + (Ext.util || (Ext.util = {})).Cache = Cache = function(config) { + var me = this, head; + if (config) { + Ext.apply(me, config); + } + me.head = head = {id:me.seed = 0, key:null, value:null}; + me.map = {}; + head.next = head.prev = head; + }; + Cache.prototype = prototype = {maxSize:100, count:0, clear:function() { + var me = this, head = me.head, entry = head.next; + head.next = head.prev = head; + if (!me.evict.$nullFn) { + for (; entry !== head; entry = entry.next) { + me.evict(entry.key, entry.value); + } + } + me.count = 0; + }, each:function(fn, scope) { + scope = scope || this; + for (var head = this.head, ent = head.next; ent !== head; ent = ent.next) { + if (fn.call(scope, ent.key, ent.value)) { + break; + } + } + }, get:function(key) { + var me = this, head = me.head, map = me.map, entry = map[key]; + if (entry) { + if (entry.prev !== head) { + me.unlinkEntry(entry); + me.linkEntry(entry); + } + } else { + map[key] = entry = {id:++me.seed, key:key, value:me.miss.apply(me, arguments)}; + me.linkEntry(entry); + ++me.count; + while (me.count > me.maxSize) { + me.unlinkEntry(head.prev, true); + --me.count; + } + } + return entry.value; + }, evict:Ext.emptyFn, linkEntry:function(entry) { + var head = this.head, first = head.next; + entry.next = first; + entry.prev = head; + head.next = entry; + first.prev = entry; + }, unlinkEntry:function(entry, evicted) { + var next = entry.next, prev = entry.prev; + prev.next = next; + next.prev = prev; + if (evicted) { + this.evict(entry.key, entry.value); + } + }}; + prototype.destroy = prototype.clear; +})(); +(function() { + var ExtClass, Base = Ext.Base, baseStaticMembers = Base.$staticMembers, ruleKeySortFn = function(a, b) { + return a.length - b.length || (a < b ? -1 : a > b ? 1 : 0); + }; + function makeCtor(className) { + function constructor() { + return this.constructor.apply(this, arguments) || null; + } + if (className) { + constructor.name = className; + } + return constructor; + } + Ext.Class = ExtClass = function(Class, data, onCreated) { + if (typeof Class != 'function') { + onCreated = data; + data = Class; + Class = null; + } + if (!data) { + data = {}; + } + Class = ExtClass.create(Class, data); + ExtClass.process(Class, data, onCreated); + return Class; + }; + Ext.apply(ExtClass, {makeCtor:makeCtor, onBeforeCreated:function(Class, data, hooks) { + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, '\x3e\x3e Ext.Class#onBeforeCreated', arguments); + Class.addMembers(data); + hooks.onCreated.call(Class, Class); + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, '\x3c\x3c Ext.Class#onBeforeCreated', arguments); + }, create:function(Class, data) { + var i = baseStaticMembers.length, name; + if (!Class) { + Class = makeCtor(data.$className); + } + while (i--) { + name = baseStaticMembers[i]; + Class[name] = Base[name]; + } + return Class; + }, process:function(Class, data, onCreated) { + var preprocessorStack = data.preprocessors || ExtClass.defaultPreprocessors, registeredPreprocessors = this.preprocessors, hooks = {onBeforeCreated:this.onBeforeCreated}, preprocessors = [], preprocessor, preprocessorsProperties, i, ln, j, subLn, preprocessorProperty; + delete data.preprocessors; + Class._classHooks = hooks; + for (i = 0, ln = preprocessorStack.length; i < ln; i++) { + preprocessor = preprocessorStack[i]; + if (typeof preprocessor == 'string') { + preprocessor = registeredPreprocessors[preprocessor]; + preprocessorsProperties = preprocessor.properties; + if (preprocessorsProperties === true) { + preprocessors.push(preprocessor.fn); + } else { + if (preprocessorsProperties) { + for (j = 0, subLn = preprocessorsProperties.length; j < subLn; j++) { + preprocessorProperty = preprocessorsProperties[j]; + if (data.hasOwnProperty(preprocessorProperty)) { + preprocessors.push(preprocessor.fn); + break; + } + } + } + } + } else { + preprocessors.push(preprocessor); + } + } + hooks.onCreated = onCreated ? onCreated : Ext.emptyFn; + hooks.preprocessors = preprocessors; + this.doProcess(Class, data, hooks); + }, doProcess:function(Class, data, hooks) { + var me = this, preprocessors = hooks.preprocessors, preprocessor = preprocessors.shift(), doProcess = me.doProcess; + for (; preprocessor; preprocessor = preprocessors.shift()) { + if (preprocessor.call(me, Class, data, hooks, doProcess) === false) { + return; + } + } + hooks.onBeforeCreated.apply(me, arguments); + }, preprocessors:{}, registerPreprocessor:function(name, fn, properties, position, relativeTo) { + if (!position) { + position = 'last'; + } + if (!properties) { + properties = [name]; + } + this.preprocessors[name] = {name:name, properties:properties || false, fn:fn}; + this.setDefaultPreprocessorPosition(name, position, relativeTo); + return this; + }, getPreprocessor:function(name) { + return this.preprocessors[name]; + }, getPreprocessors:function() { + return this.preprocessors; + }, defaultPreprocessors:[], getDefaultPreprocessors:function() { + return this.defaultPreprocessors; + }, setDefaultPreprocessors:function(preprocessors) { + this.defaultPreprocessors = Ext.Array.from(preprocessors); + return this; + }, setDefaultPreprocessorPosition:function(name, offset, relativeName) { + var defaultPreprocessors = this.defaultPreprocessors, index; + if (typeof offset == 'string') { + if (offset === 'first') { + defaultPreprocessors.unshift(name); + return this; + } else { + if (offset === 'last') { + defaultPreprocessors.push(name); + return this; + } + } + offset = offset === 'after' ? 1 : -1; + } + index = Ext.Array.indexOf(defaultPreprocessors, relativeName); + if (index !== -1) { + Ext.Array.splice(defaultPreprocessors, Math.max(0, index + offset), 0, name); + } + return this; + }}); + ExtClass.registerPreprocessor('extend', function(Class, data, hooks) { + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, 'Ext.Class#extendPreProcessor', arguments); + var Base = Ext.Base, basePrototype = Base.prototype, extend = data.extend, Parent, parentPrototype, i; + delete data.extend; + if (extend && extend !== Object) { + Parent = extend; + } else { + Parent = Base; + } + parentPrototype = Parent.prototype; + if (!Parent.$isClass) { + for (i in basePrototype) { + if (!parentPrototype[i]) { + parentPrototype[i] = basePrototype[i]; + } + } + } + Class.extend(Parent); + Class.triggerExtended.apply(Class, arguments); + if (data.onClassExtended) { + Class.onExtended(data.onClassExtended, Class); + delete data.onClassExtended; + } + }, true); + ExtClass.registerPreprocessor('privates', function(Class, data) { + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, 'Ext.Class#privatePreprocessor', arguments); + var privates = data.privates, statics = privates.statics, privacy = privates.privacy || true; + delete data.privates; + delete privates.statics; + Class.addMembers(privates, false, privacy); + if (statics) { + Class.addMembers(statics, true, privacy); + } + }); + ExtClass.registerPreprocessor('statics', function(Class, data) { + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, 'Ext.Class#staticsPreprocessor', arguments); + Class.addStatics(data.statics); + delete data.statics; + }); + ExtClass.registerPreprocessor('inheritableStatics', function(Class, data) { + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, 'Ext.Class#inheritableStaticsPreprocessor', arguments); + Class.addInheritableStatics(data.inheritableStatics); + delete data.inheritableStatics; + }); + Ext.createRuleFn = function(code) { + return new Function('$c', 'with($c) { return (' + code + '); }'); + }; + Ext.expressionCache = new Ext.util.Cache({miss:Ext.createRuleFn}); + Ext.ruleKeySortFn = ruleKeySortFn; + Ext.getPlatformConfigKeys = function(platformConfig) { + var ret = [], platform, rule; + for (platform in platformConfig) { + rule = Ext.expressionCache.get(platform); + if (rule(Ext.platformTags)) { + ret.push(platform); + } + } + ret.sort(ruleKeySortFn); + return ret; + }; + ExtClass.registerPreprocessor('platformConfig', function(Class, data, hooks) { + var platformConfigs = data.platformConfig, config = data.config, added, classConfigs, configs, configurator, hoisted, keys, name, value, i, ln; + delete data.platformConfig; + if (platformConfigs instanceof Array) { + throw new Error('platformConfigs must be specified as an object.'); + } + configurator = Class.getConfigurator(); + classConfigs = configurator.configs; + keys = Ext.getPlatformConfigKeys(platformConfigs); + for (i = 0, ln = keys.length; i < ln; ++i) { + configs = platformConfigs[keys[i]]; + hoisted = added = null; + for (name in configs) { + value = configs[name]; + if (config && name in config) { + (added || (added = {}))[name] = value; + (hoisted || (hoisted = {}))[name] = config[name]; + delete config[name]; + } else { + if (name in classConfigs) { + (added || (added = {}))[name] = value; + } else { + data[name] = value; + } + } + } + if (hoisted) { + configurator.add(hoisted); + } + if (added) { + configurator.add(added); + } + } + }); + ExtClass.registerPreprocessor('config', function(Class, data) { + if (data.hasOwnProperty('$configPrefixed')) { + Class.prototype.$configPrefixed = data.$configPrefixed; + } + Class.addConfig(data.config); + delete data.config; + }); + ExtClass.registerPreprocessor('cachedConfig', function(Class, data) { + if (data.hasOwnProperty('$configPrefixed')) { + Class.prototype.$configPrefixed = data.$configPrefixed; + } + Class.addCachedConfig(data.cachedConfig); + delete data.cachedConfig; + }); + ExtClass.registerPreprocessor('mixins', function(Class, data, hooks) { + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, 'Ext.Class#mixinsPreprocessor', arguments); + var mixins = data.mixins, onCreated = hooks.onCreated; + delete data.mixins; + hooks.onCreated = function() { + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, 'Ext.Class#mixinsPreprocessor#beforeCreated', arguments); + hooks.onCreated = onCreated; + Class.mixin(mixins); + return hooks.onCreated.apply(this, arguments); + }; + }); + Ext.extend = function(Class, Parent, members) { + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, 'Ext.Class#extend-backwards-compatible', arguments); + if (arguments.length === 2 && Ext.isObject(Parent)) { + members = Parent; + Parent = Class; + Class = null; + } + var cls; + if (!Parent) { + throw new Error('[Ext.extend] Attempting to extend from a class which has not been loaded on the page.'); + } + members.extend = Parent; + members.preprocessors = ['extend', 'statics', 'inheritableStatics', 'mixins', 'platformConfig', 'config']; + if (Class) { + cls = new ExtClass(Class, members); + cls.prototype.constructor = Class; + } else { + cls = new ExtClass(members); + } + cls.prototype.override = function(o) { + for (var m in o) { + if (o.hasOwnProperty(m)) { + this[m] = o[m]; + } + } + }; + return cls; + }; +})(); +Ext.Inventory = function() { + var me = this; + me.names = []; + me.paths = {}; + me.alternateToName = {}; + me.aliasToName = {}; + me.nameToAliases = {}; + me.nameToAlternates = {}; +}; +Ext.Inventory.prototype = {_array1:[0], prefixes:null, dotRe:/\./g, wildcardRe:/\*/g, addAlias:function(className, alias, update) { + return this.addMapping(className, alias, this.aliasToName, this.nameToAliases, update); +}, addAlternate:function(className, alternate) { + return this.addMapping(className, alternate, this.alternateToName, this.nameToAlternates); +}, addMapping:function(className, alternate, toName, nameTo, update) { + var name = className.$className || className, mappings = name, array = this._array1, a, aliases, cls, i, length, nameMapping; + if (Ext.isString(name)) { + mappings = {}; + mappings[name] = alternate; + } + for (cls in mappings) { + aliases = mappings[cls]; + if (Ext.isString(aliases)) { + array[0] = aliases; + aliases = array; + } + length = aliases.length; + nameMapping = nameTo[cls] || (nameTo[cls] = []); + for (i = 0; i < length; ++i) { + if (!(a = aliases[i])) { + continue; + } + if (toName[a] !== cls) { + if (!update && toName[a]) { + Ext.log.warn("Overriding existing mapping: '" + a + "' From '" + toName[a] + "' to '" + cls + "'. Is this intentional?"); + } + toName[a] = cls; + nameMapping.push(a); + } + } + } +}, getAliasesByName:function(name) { + return this.nameToAliases[name] || null; +}, getAlternatesByName:function(name) { + return this.nameToAlternates[name] || null; +}, getNameByAlias:function(alias) { + return this.aliasToName[alias] || ''; +}, getNameByAlternate:function(alternate) { + return this.alternateToName[alternate] || ''; +}, getNamesByExpression:function(expression, exclude, accumulate) { + var me = this, aliasToName = me.aliasToName, alternateToName = me.alternateToName, nameToAliases = me.nameToAliases, nameToAlternates = me.nameToAlternates, map = accumulate ? exclude : {}, names = [], expressions = Ext.isString(expression) ? [expression] : expression, length = expressions.length, wildcardRe = me.wildcardRe, expr, i, list, match, n, name, regex; + for (i = 0; i < length; ++i) { + if ((expr = expressions[i]).indexOf('*') < 0) { + if (!(name = aliasToName[expr])) { + if (!(name = alternateToName[expr])) { + name = expr; + } + } + if (!(name in map) && !(exclude && name in exclude)) { + map[name] = 1; + names.push(name); + } + } else { + regex = new RegExp('^' + expr.replace(wildcardRe, '(.*?)') + '$'); + for (name in nameToAliases) { + if (!(name in map) && !(exclude && name in exclude)) { + if (!(match = regex.test(name))) { + n = (list = nameToAliases[name]).length; + while (!match && n-- > 0) { + match = regex.test(list[n]); + } + list = nameToAlternates[name]; + if (list && !match) { + n = list.length; + while (!match && n-- > 0) { + match = regex.test(list[n]); + } + } + } + if (match) { + map[name] = 1; + names.push(name); + } + } + } + } + } + return names; +}, getPath:function(className) { + var me = this, paths = me.paths, ret = '', prefix; + if (className in paths) { + ret = paths[className]; + } else { + prefix = me.getPrefix(className); + if (prefix) { + className = className.substring(prefix.length + 1); + ret = paths[prefix]; + if (ret) { + ret += '/'; + } + } + ret += className.replace(me.dotRe, '/') + '.js'; + } + return ret; +}, getPrefix:function(className) { + if (className in this.paths) { + return className; + } + var prefixes = this.getPrefixes(), i = prefixes.length, length, prefix; + while (i-- > 0) { + length = (prefix = prefixes[i]).length; + if (length < className.length && className.charAt(length) === '.' && prefix === className.substring(0, length)) { + return prefix; + } + } + return ''; +}, getPrefixes:function() { + var me = this, prefixes = me.prefixes; + if (!prefixes) { + me.prefixes = prefixes = me.names.slice(0); + prefixes.sort(me._compareNames); + } + return prefixes; +}, removeName:function(name) { + var me = this, aliasToName = me.aliasToName, alternateToName = me.alternateToName, nameToAliases = me.nameToAliases, nameToAlternates = me.nameToAlternates, aliases = nameToAliases[name], alternates = nameToAlternates[name], i, a; + delete nameToAliases[name]; + delete nameToAlternates[name]; + if (aliases) { + for (i = aliases.length; i--;) { + if (name === (a = aliases[i])) { + delete aliasToName[a]; + } + } + } + if (alternates) { + for (i = alternates.length; i--;) { + if (name === (a = alternates[i])) { + delete alternateToName[a]; + } + } + } +}, resolveName:function(name) { + var me = this, trueName; + if (!(name in me.nameToAliases)) { + if (!(trueName = me.aliasToName[name])) { + trueName = me.alternateToName[name]; + } + } + return trueName || name; +}, select:function(receiver, scope) { + var me = this, excludes = {}, ret = {excludes:excludes, exclude:function() { + me.getNamesByExpression(arguments, excludes, true); + return this; + }}, name; + for (name in receiver) { + ret[name] = me.selectMethod(excludes, receiver[name], scope || receiver); + } + return ret; +}, selectMethod:function(excludes, fn, scope) { + var me = this; + return function(include) { + var args = Ext.Array.slice(arguments, 1); + args.unshift(me.getNamesByExpression(include, excludes)); + return fn.apply(scope, args); + }; +}, setPath:Ext.Function.flexSetter(function(name, path) { + var me = this; + me.paths[name] = path; + me.names.push(name); + me.prefixes = null; + return me; +}), _compareNames:function(lhs, rhs) { + var cmp = lhs.length - rhs.length; + if (!cmp) { + cmp = lhs < rhs ? -1 : 1; + } + return cmp; +}}; +Ext.ClassManager = function(Class, alias, arraySlice, arrayFrom, global) { + var makeCtor = Ext.Class.makeCtor, nameLookupStack = [], namespaceCache = {Ext:{name:'Ext', value:Ext}}, Manager = Ext.apply(new Ext.Inventory, {classes:{}, classState:{}, existCache:{}, instantiators:[], isCreated:function(className) { + if (typeof className !== 'string' || className.length < 1) { + throw new Error('[Ext.ClassManager] Invalid classname, must be a string and must not be empty'); + } + if (Manager.classes[className] || Manager.existCache[className]) { + return true; + } + if (!Manager.lookupName(className, false)) { + return false; + } + Manager.triggerCreated(className); + return true; + }, createdListeners:[], nameCreatedListeners:{}, existsListeners:[], nameExistsListeners:{}, overrideMap:{}, triggerCreated:function(className, state) { + Manager.existCache[className] = state || 1; + Manager.classState[className] += 40; + Manager.notify(className, Manager.createdListeners, Manager.nameCreatedListeners); + }, onCreated:function(fn, scope, className) { + Manager.addListener(fn, scope, className, Manager.createdListeners, Manager.nameCreatedListeners); + }, notify:function(className, listeners, nameListeners) { + var alternateNames = Manager.getAlternatesByName(className), names = [className], i, ln, j, subLn, listener, name; + for (i = 0, ln = listeners.length; i < ln; i++) { + listener = listeners[i]; + listener.fn.call(listener.scope, className); + } + while (names) { + for (i = 0, ln = names.length; i < ln; i++) { + name = names[i]; + listeners = nameListeners[name]; + if (listeners) { + for (j = 0, subLn = listeners.length; j < subLn; j++) { + listener = listeners[j]; + listener.fn.call(listener.scope, name); + } + delete nameListeners[name]; + } + } + names = alternateNames; + alternateNames = null; + } + }, addListener:function(fn, scope, className, listeners, nameListeners) { + if (Ext.isArray(className)) { + fn = Ext.Function.createBarrier(className.length, fn, scope); + for (i = 0; i < className.length; i++) { + this.addListener(fn, null, className[i], listeners, nameListeners); + } + return; + } + var i, listener = {fn:fn, scope:scope}; + if (className) { + if (this.isCreated(className)) { + fn.call(scope, className); + return; + } + if (!nameListeners[className]) { + nameListeners[className] = []; + } + nameListeners[className].push(listener); + } else { + listeners.push(listener); + } + }, $namespaceCache:namespaceCache, addRootNamespaces:function(namespaces) { + for (var name in namespaces) { + namespaceCache[name] = {name:name, value:namespaces[name]}; + } + }, clearNamespaceCache:function() { + nameLookupStack.length = 0; + for (var name in namespaceCache) { + if (!namespaceCache[name].value) { + delete namespaceCache[name]; + } + } + }, getNamespaceEntry:function(namespace) { + if (typeof namespace !== 'string') { + return namespace; + } + var entry = namespaceCache[namespace], i; + if (!entry) { + i = namespace.lastIndexOf('.'); + if (i < 0) { + entry = {name:namespace}; + } else { + entry = {name:namespace.substring(i + 1), parent:Manager.getNamespaceEntry(namespace.substring(0, i))}; + } + namespaceCache[namespace] = entry; + } + return entry; + }, lookupName:function(namespace, autoCreate) { + var entry = Manager.getNamespaceEntry(namespace), scope = Ext.global, i = 0, e, parent; + for (e = entry; e; e = e.parent) { + nameLookupStack[i++] = e; + } + while (scope && i-- > 0) { + e = nameLookupStack[i]; + parent = scope; + scope = e.value || scope[e.name]; + if (!scope && autoCreate) { + parent[e.name] = scope = {}; + } + } + return scope; + }, setNamespace:function(namespace, value) { + var entry = Manager.getNamespaceEntry(namespace), scope = Ext.global; + if (entry.parent) { + scope = Manager.lookupName(entry.parent, true); + } + scope[entry.name] = value; + return value; + }, setXType:function(cls, xtype) { + var className = cls.$className, C = className ? cls : Manager.get(className = cls), proto = C.prototype, xtypes = proto.xtypes, xtypesChain = proto.xtypesChain, xtypesMap = proto.xtypesMap; + if (!proto.hasOwnProperty('xtypes')) { + proto.xtypes = xtypes = []; + proto.xtypesChain = xtypesChain = xtypesChain ? xtypesChain.slice(0) : []; + proto.xtypesMap = xtypesMap = Ext.apply({}, xtypesMap); + } + Manager.addAlias(className, 'widget.' + xtype, true); + xtypes.push(xtype); + xtypesChain.push(xtype); + xtypesMap[xtype] = true; + }, set:function(name, value) { + var targetName = Manager.getName(value); + Manager.classes[name] = Manager.setNamespace(name, value); + if (targetName && targetName !== name) { + Manager.addAlternate(targetName, name); + } + return Manager; + }, get:function(name) { + return Manager.classes[name] || Manager.lookupName(name, false); + }, addNameAliasMappings:function(aliases) { + Manager.addAlias(aliases); + }, addNameAlternateMappings:function(alternates) { + Manager.addAlternate(alternates); + }, getByAlias:function(alias) { + return Manager.get(Manager.getNameByAlias(alias)); + }, getByConfig:function(config, aliasPrefix) { + var xclass = config.xclass, name; + if (xclass) { + name = xclass; + } else { + name = config.xtype; + if (name) { + aliasPrefix = 'widget.'; + } else { + name = config.type; + } + name = Manager.getNameByAlias(aliasPrefix + name); + } + return Manager.get(name); + }, getName:function(object) { + return object && object.$className || ''; + }, getClass:function(object) { + return object && object.self || null; + }, create:function(className, data, createdFn) { + if (className != null && typeof className !== 'string') { + throw new Error("[Ext.define] Invalid class name '" + className + "' specified, must be a non-empty string"); + } + var ctor = makeCtor(className); + if (typeof data === 'function') { + data = data(ctor); + } + if (className) { + if (Manager.classes[className]) { + Ext.log.warn("[Ext.define] Duplicate class name '" + className + "' specified, must be a non-empty string"); + } + ctor.name = className; + } + data.$className = className; + return new Class(ctor, data, function() { + var postprocessorStack = data.postprocessors || Manager.defaultPostprocessors, registeredPostprocessors = Manager.postprocessors, postprocessors = [], postprocessor, i, ln, j, subLn, postprocessorProperties, postprocessorProperty; + delete data.postprocessors; + for (i = 0, ln = postprocessorStack.length; i < ln; i++) { + postprocessor = postprocessorStack[i]; + if (typeof postprocessor === 'string') { + postprocessor = registeredPostprocessors[postprocessor]; + postprocessorProperties = postprocessor.properties; + if (postprocessorProperties === true) { + postprocessors.push(postprocessor.fn); + } else { + if (postprocessorProperties) { + for (j = 0, subLn = postprocessorProperties.length; j < subLn; j++) { + postprocessorProperty = postprocessorProperties[j]; + if (data.hasOwnProperty(postprocessorProperty)) { + postprocessors.push(postprocessor.fn); + break; + } + } + } + } + } else { + postprocessors.push(postprocessor); + } + } + data.postprocessors = postprocessors; + data.createdFn = createdFn; + Manager.processCreate(className, this, data); + }); + }, processCreate:function(className, cls, clsData) { + var me = this, postprocessor = clsData.postprocessors.shift(), createdFn = clsData.createdFn; + if (!postprocessor) { + Ext.classSystemMonitor && Ext.classSystemMonitor(className, 'Ext.ClassManager#classCreated', arguments); + if (className) { + me.set(className, cls); + } + delete cls._classHooks; + if (createdFn) { + createdFn.call(cls, cls); + } + if (className) { + me.triggerCreated(className); + } + return; + } + if (postprocessor.call(me, className, cls, clsData, me.processCreate) !== false) { + me.processCreate(className, cls, clsData); + } + }, createOverride:function(className, data, createdFn) { + var me = this, overriddenClassName = data.override, requires = data.requires, uses = data.uses, mixins = data.mixins, mixinsIsArray, compat = 1, depedenciesLoaded, classReady = function() { + var cls, dependencies, i, key, temp; + if (!depedenciesLoaded) { + dependencies = requires ? requires.slice(0) : []; + if (mixins) { + if (!(mixinsIsArray = mixins instanceof Array)) { + for (key in mixins) { + if (Ext.isString(cls = mixins[key])) { + dependencies.push(cls); + } + } + } else { + for (i = 0, temp = mixins.length; i < temp; ++i) { + if (Ext.isString(cls = mixins[i])) { + dependencies.push(cls); + } + } + } + } + depedenciesLoaded = true; + if (dependencies.length) { + Ext.require(dependencies, classReady); + return; + } + } + if (mixinsIsArray) { + for (i = 0, temp = mixins.length; i < temp; ++i) { + if (Ext.isString(cls = mixins[i])) { + mixins[i] = Ext.ClassManager.get(cls); + } + } + } else { + if (mixins) { + for (key in mixins) { + if (Ext.isString(cls = mixins[key])) { + mixins[key] = Ext.ClassManager.get(cls); + } + } + } + } + cls = me.get(overriddenClassName); + delete data.override; + delete data.compatibility; + delete data.requires; + delete data.uses; + Ext.override(cls, data); + Ext.Loader.history.push(className); + if (uses) { + Ext['Loader'].addUsedClasses(uses); + } + if (createdFn) { + createdFn.call(cls, cls); + } + }; + Manager.overrideMap[className] = true; + if ('compatibility' in data && Ext.isString(compat = data.compatibility)) { + compat = Ext.checkVersion(compat); + } + if (compat) { + me.onCreated(classReady, me, overriddenClassName); + } + me.triggerCreated(className, 2); + return me; + }, instantiateByAlias:function() { + var alias = arguments[0], args = arraySlice.call(arguments), className = this.getNameByAlias(alias); + if (!className) { + throw new Error('[Ext.createByAlias] Unrecognized alias: ' + alias); + } + args[0] = className; + return Ext.create.apply(Ext, args); + }, instantiate:function() { + Ext.log.warn('Ext.ClassManager.instantiate() is deprecated. Use Ext.create() instead.'); + return Ext.create.apply(Ext, arguments); + }, dynInstantiate:function(name, args) { + args = arrayFrom(args, true); + args.unshift(name); + return Ext.create.apply(Ext, args); + }, getInstantiator:function(length) { + var instantiators = this.instantiators, instantiator, i, args; + instantiator = instantiators[length]; + if (!instantiator) { + i = length; + args = []; + for (i = 0; i < length; i++) { + args.push('a[' + i + ']'); + } + instantiator = instantiators[length] = new Function('c', 'a', 'return new c(' + args.join(',') + ')'); + instantiator.name = 'Ext.create' + length; + } + return instantiator; + }, postprocessors:{}, defaultPostprocessors:[], registerPostprocessor:function(name, fn, properties, position, relativeTo) { + if (!position) { + position = 'last'; + } + if (!properties) { + properties = [name]; + } + this.postprocessors[name] = {name:name, properties:properties || false, fn:fn}; + this.setDefaultPostprocessorPosition(name, position, relativeTo); + return this; + }, setDefaultPostprocessors:function(postprocessors) { + this.defaultPostprocessors = arrayFrom(postprocessors); + return this; + }, setDefaultPostprocessorPosition:function(name, offset, relativeName) { + var defaultPostprocessors = this.defaultPostprocessors, index; + if (typeof offset === 'string') { + if (offset === 'first') { + defaultPostprocessors.unshift(name); + return this; + } else { + if (offset === 'last') { + defaultPostprocessors.push(name); + return this; + } + } + offset = offset === 'after' ? 1 : -1; + } + index = Ext.Array.indexOf(defaultPostprocessors, relativeName); + if (index !== -1) { + Ext.Array.splice(defaultPostprocessors, Math.max(0, index + offset), 0, name); + } + return this; + }}); + Manager.registerPostprocessor('alias', function(name, cls, data) { + Ext.classSystemMonitor && Ext.classSystemMonitor(name, 'Ext.ClassManager#aliasPostProcessor', arguments); + var aliases = Ext.Array.from(data.alias), i, ln; + for (i = 0, ln = aliases.length; i < ln; i++) { + alias = aliases[i]; + this.addAlias(cls, alias); + } + }, ['xtype', 'alias']); + Manager.registerPostprocessor('singleton', function(name, cls, data, fn) { + Ext.classSystemMonitor && Ext.classSystemMonitor(name, 'Ext.ClassManager#singletonPostProcessor', arguments); + if (data.singleton) { + fn.call(this, name, new cls, data); + } else { + return true; + } + return false; + }); + Manager.registerPostprocessor('alternateClassName', function(name, cls, data) { + Ext.classSystemMonitor && Ext.classSystemMonitor(name, 'Ext.ClassManager#alternateClassNamePostprocessor', arguments); + var alternates = data.alternateClassName, i, ln, alternate; + if (!(alternates instanceof Array)) { + alternates = [alternates]; + } + for (i = 0, ln = alternates.length; i < ln; i++) { + alternate = alternates[i]; + if (typeof alternate !== 'string') { + throw new Error("[Ext.define] Invalid alternate of: '" + alternate + "' for class: '" + name + "'; must be a valid string"); + } + this.set(alternate, cls); + } + }); + Manager.registerPostprocessor('debugHooks', function(name, Class, data) { + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, 'Ext.Class#debugHooks', arguments); + if (Ext.isDebugEnabled(Class.$className, data.debugHooks.$enabled)) { + delete data.debugHooks.$enabled; + Ext.override(Class, data.debugHooks); + } + var target = Class.isInstance ? Class.self : Class; + delete target.prototype.debugHooks; + }); + Manager.registerPostprocessor('deprecated', function(name, Class, data) { + Ext.classSystemMonitor && Ext.classSystemMonitor(Class, 'Ext.Class#deprecated', arguments); + var target = Class.isInstance ? Class.self : Class; + target.addDeprecations(data.deprecated); + delete target.prototype.deprecated; + }); + Ext.apply(Ext, {create:function() { + var name = arguments[0], nameType = typeof name, args = arraySlice.call(arguments, 1), cls; + if (nameType === 'function') { + cls = name; + } else { + if (nameType !== 'string' && args.length === 0) { + args = [name]; + if (!(name = name.xclass)) { + name = args[0].xtype; + if (name) { + name = 'widget.' + name; + } + } + } + if (typeof name !== 'string' || name.length < 1) { + throw new Error("[Ext.create] Invalid class name or alias '" + name + "' specified, must be a non-empty string"); + } + name = Manager.resolveName(name); + cls = Manager.get(name); + } + if (!cls) { + Ext.log.warn("[Ext.Loader] Synchronously loading '" + name + "'; consider adding " + "Ext.require('" + name + "') above Ext.onReady"); + Ext.syncRequire(name); + cls = Manager.get(name); + } + if (!cls) { + throw new Error('[Ext.create] Unrecognized class name / alias: ' + name); + } + if (typeof cls !== 'function') { + throw new Error("[Ext.create] Singleton '" + name + "' cannot be instantiated."); + } + return Manager.getInstantiator(args.length)(cls, args); + }, widget:function(name, config) { + var xtype = name, alias, className, T; + if (typeof xtype !== 'string') { + config = name; + xtype = config.xtype; + className = config.xclass; + } else { + config = config || {}; + } + if (config.isComponent) { + return config; + } + if (!className) { + alias = 'widget.' + xtype; + className = Manager.getNameByAlias(alias); + } + if (className) { + T = Manager.get(className); + } + if (!T) { + return Ext.create(className || alias, config); + } + return new T(config); + }, createByAlias:alias(Manager, 'instantiateByAlias'), define:function(className, data, createdFn) { + Ext.classSystemMonitor && Ext.classSystemMonitor(className, 'ClassManager#define', arguments); + if (data.override) { + Manager.classState[className] = 20; + return Manager.createOverride.apply(Manager, arguments); + } + Manager.classState[className] = 10; + return Manager.create.apply(Manager, arguments); + }, undefine:function(className) { + Ext.classSystemMonitor && Ext.classSystemMonitor(className, 'Ext.ClassManager#undefine', arguments); + var classes = Manager.classes; + delete classes[className]; + delete Manager.existCache[className]; + delete Manager.classState[className]; + Manager.removeName(className); + var entry = Manager.getNamespaceEntry(className), scope = entry.parent ? Manager.lookupName(entry.parent, false) : Ext.global; + if (scope) { + try { + delete scope[entry.name]; + } catch (e$1) { + scope[entry.name] = undefined; + } + } + }, getClassName:alias(Manager, 'getName'), getDisplayName:function(object) { + if (object) { + if (object.displayName) { + return object.displayName; + } + if (object.$name && object.$class) { + return Ext.getClassName(object.$class) + '#' + object.$name; + } + if (object.$className) { + return object.$className; + } + } + return 'Anonymous'; + }, getClass:alias(Manager, 'getClass'), namespace:function() { + var root = global, i; + for (i = arguments.length; i-- > 0;) { + root = Manager.lookupName(arguments[i], true); + } + return root; + }}); + Ext.addRootNamespaces = Manager.addRootNamespaces; + Ext.createWidget = Ext.widget; + Ext.ns = Ext.namespace; + Class.registerPreprocessor('className', function(cls, data) { + if ('$className' in data) { + cls.$className = data.$className; + cls.displayName = cls.$className; + } + Ext.classSystemMonitor && Ext.classSystemMonitor(cls, 'Ext.ClassManager#classNamePreprocessor', arguments); + }, true, 'first'); + Class.registerPreprocessor('alias', function(cls, data) { + Ext.classSystemMonitor && Ext.classSystemMonitor(cls, 'Ext.ClassManager#aliasPreprocessor', arguments); + var prototype = cls.prototype, xtypes = arrayFrom(data.xtype), aliases = arrayFrom(data.alias), widgetPrefix = 'widget.', widgetPrefixLength = widgetPrefix.length, xtypesChain = Array.prototype.slice.call(prototype.xtypesChain || []), xtypesMap = Ext.merge({}, prototype.xtypesMap || {}), i, ln, alias, xtype; + for (i = 0, ln = aliases.length; i < ln; i++) { + alias = aliases[i]; + if (typeof alias !== 'string' || alias.length < 1) { + throw new Error("[Ext.define] Invalid alias of: '" + alias + "' for class: '" + name + "'; must be a valid string"); + } + if (alias.substring(0, widgetPrefixLength) === widgetPrefix) { + xtype = alias.substring(widgetPrefixLength); + Ext.Array.include(xtypes, xtype); + } + } + cls.xtype = data.xtype = xtypes[0]; + data.xtypes = xtypes; + for (i = 0, ln = xtypes.length; i < ln; i++) { + xtype = xtypes[i]; + if (!xtypesMap[xtype]) { + xtypesMap[xtype] = true; + xtypesChain.push(xtype); + } + } + data.xtypesChain = xtypesChain; + data.xtypesMap = xtypesMap; + Ext.Function.interceptAfter(data, 'onClassCreated', function() { + Ext.classSystemMonitor && Ext.classSystemMonitor(cls, 'Ext.ClassManager#aliasPreprocessor#afterClassCreated', arguments); + var mixins = prototype.mixins, key, mixin; + for (key in mixins) { + if (mixins.hasOwnProperty(key)) { + mixin = mixins[key]; + xtypes = mixin.xtypes; + if (xtypes) { + for (i = 0, ln = xtypes.length; i < ln; i++) { + xtype = xtypes[i]; + if (!xtypesMap[xtype]) { + xtypesMap[xtype] = true; + xtypesChain.push(xtype); + } + } + } + } + } + }); + for (i = 0, ln = xtypes.length; i < ln; i++) { + xtype = xtypes[i]; + if (typeof xtype !== 'string' || xtype.length < 1) { + throw new Error("[Ext.define] Invalid xtype of: '" + xtype + "' for class: '" + name + "'; must be a valid non-empty string"); + } + Ext.Array.include(aliases, widgetPrefix + xtype); + } + data.alias = aliases; + }, ['xtype', 'alias']); + if (Ext.manifest) { + var manifest = Ext.manifest, classes = manifest.classes, paths = manifest.paths, aliases = {}, alternates = {}, className, obj, name, path, baseUrl; + if (paths) { + if (manifest.bootRelative) { + baseUrl = Ext.Boot.baseUrl; + for (path in paths) { + if (paths.hasOwnProperty(path)) { + paths[path] = baseUrl + paths[path]; + } + } + } + Manager.setPath(paths); + } + if (classes) { + for (className in classes) { + alternates[className] = []; + aliases[className] = []; + obj = classes[className]; + if (obj.alias) { + aliases[className] = obj.alias; + } + if (obj.alternates) { + alternates[className] = obj.alternates; + } + } + } + Manager.addAlias(aliases); + Manager.addAlternate(alternates); + } + return Manager; +}(Ext.Class, Ext.Function.alias, Array.prototype.slice, Ext.Array.from, Ext.global); +(Ext.env || (Ext.env = {})).Browser = function(userAgent, publish) { + var me = this, browserPrefixes = Ext.Boot.browserPrefixes, browserNames = Ext.Boot.browserNames, enginePrefixes = me.enginePrefixes, engineNames = me.engineNames, browserMatch = userAgent.match(new RegExp('((?:' + Ext.Object.getValues(browserPrefixes).join(')|(?:') + '))([\\w\\._]+)')), engineMatch = userAgent.match(new RegExp('((?:' + Ext.Object.getValues(enginePrefixes).join(')|(?:') + '))([\\w\\._]+)')), browserName = browserNames.other, engineName = engineNames.other, browserVersion = '', engineVersion = + '', majorVer = '', isWebView = false, i, prefix, mode, name, maxIEVersion; + me.userAgent = userAgent; + if (/Edge\//.test(userAgent)) { + browserMatch = userAgent.match(/(Edge\/)([\w.]+)/); + } + if (browserMatch) { + browserName = browserNames[Ext.Object.getKey(browserPrefixes, browserMatch[1])]; + if (browserName === 'Safari' && /^Opera/.test(userAgent)) { + browserName = 'Opera'; + } + browserVersion = new Ext.Version(browserMatch[2]); + } + if (engineMatch) { + engineName = engineNames[Ext.Object.getKey(enginePrefixes, engineMatch[1])]; + engineVersion = new Ext.Version(engineMatch[2]); + } + if (engineName === 'Trident' && browserName !== 'IE') { + browserName = 'IE'; + var version = userAgent.match(/.*rv:(\d+.\d+)/); + if (version && version.length) { + version = version[1]; + browserVersion = new Ext.Version(version); + } + } + if (browserName && browserVersion) { + Ext.setVersion(browserName, browserVersion); + } + if (userAgent.match(/FB/) && browserName === 'Other') { + browserName = browserNames.safari; + engineName = engineNames.webkit; + } + if (userAgent.match(/Android.*Chrome/g)) { + browserName = 'ChromeMobile'; + } + if (userAgent.match(/OPR/)) { + browserName = 'Opera'; + browserMatch = userAgent.match(/OPR\/(\d+.\d+)/); + browserVersion = new Ext.Version(browserMatch[1]); + } + Ext.apply(this, {engineName:engineName, engineVersion:engineVersion, name:browserName, version:browserVersion}); + this.setFlag(browserName, true, publish); + if (browserVersion) { + majorVer = browserVersion.getMajor() || ''; + if (me.is.IE) { + majorVer = parseInt(majorVer, 10); + mode = document.documentMode; + if (mode === 7 || majorVer === 7 && mode !== 8 && mode !== 9 && mode !== 10) { + majorVer = 7; + } else { + if (mode === 8 || majorVer === 8 && mode !== 8 && mode !== 9 && mode !== 10) { + majorVer = 8; + } else { + if (mode === 9 || majorVer === 9 && mode !== 7 && mode !== 8 && mode !== 10) { + majorVer = 9; + } else { + if (mode === 10 || majorVer === 10 && mode !== 7 && mode !== 8 && mode !== 9) { + majorVer = 10; + } else { + if (mode === 11 || majorVer === 11 && mode !== 7 && mode !== 8 && mode !== 9 && mode !== 10) { + majorVer = 11; + } + } + } + } + } + maxIEVersion = Math.max(majorVer, Ext.Boot.maxIEVersion); + for (i = 7; i <= maxIEVersion; ++i) { + prefix = 'isIE' + i; + if (majorVer <= i) { + Ext[prefix + 'm'] = true; + } + if (majorVer === i) { + Ext[prefix] = true; + } + if (majorVer >= i) { + Ext[prefix + 'p'] = true; + } + } + } + if (me.is.Opera && parseInt(majorVer, 10) <= 12) { + Ext.isOpera12m = true; + } + Ext.chromeVersion = Ext.isChrome ? majorVer : 0; + Ext.firefoxVersion = Ext.isFirefox ? majorVer : 0; + Ext.ieVersion = Ext.isIE ? majorVer : 0; + Ext.operaVersion = Ext.isOpera ? majorVer : 0; + Ext.safariVersion = Ext.isSafari ? majorVer : 0; + Ext.webKitVersion = Ext.isWebKit ? majorVer : 0; + this.setFlag(browserName + majorVer, true, publish); + this.setFlag(browserName + browserVersion.getShortVersion()); + } + for (i in browserNames) { + if (browserNames.hasOwnProperty(i)) { + name = browserNames[i]; + this.setFlag(name, browserName === name); + } + } + this.setFlag(name); + if (engineVersion) { + this.setFlag(engineName + (engineVersion.getMajor() || '')); + this.setFlag(engineName + engineVersion.getShortVersion()); + } + for (i in engineNames) { + if (engineNames.hasOwnProperty(i)) { + name = engineNames[i]; + this.setFlag(name, engineName === name, publish); + } + } + this.setFlag('Standalone', !!navigator.standalone); + this.setFlag('Ripple', !!document.getElementById('tinyhippos-injected') && !Ext.isEmpty(window.top.ripple)); + this.setFlag('WebWorks', !!window.blackberry); + if (window.PhoneGap !== undefined || window.Cordova !== undefined || window.cordova !== undefined) { + isWebView = true; + this.setFlag('PhoneGap'); + this.setFlag('Cordova'); + } + if (/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(userAgent)) { + isWebView = true; + } + this.setFlag('WebView', isWebView); + this.isStrict = Ext.isStrict = document.compatMode === 'CSS1Compat'; + this.isSecure = Ext.isSecure; + this.identity = browserName + majorVer + (this.isStrict ? 'Strict' : 'Quirks'); +}; +Ext.env.Browser.prototype = {constructor:Ext.env.Browser, engineNames:{webkit:'WebKit', gecko:'Gecko', presto:'Presto', trident:'Trident', other:'Other'}, enginePrefixes:{webkit:'AppleWebKit/', gecko:'Gecko/', presto:'Presto/', trident:'Trident/'}, styleDashPrefixes:{WebKit:'-webkit-', Gecko:'-moz-', Trident:'-ms-', Presto:'-o-', Other:''}, stylePrefixes:{WebKit:'Webkit', Gecko:'Moz', Trident:'ms', Presto:'O', Other:''}, propertyPrefixes:{WebKit:'webkit', Gecko:'moz', Trident:'ms', Presto:'o', Other:''}, +is:function(name) { + return !!this.is[name]; +}, name:null, version:null, engineName:null, engineVersion:null, setFlag:function(name, value, publish) { + if (value === undefined) { + value = true; + } + this.is[name] = value; + this.is[name.toLowerCase()] = value; + if (publish) { + Ext['is' + name] = value; + } + return this; +}, getStyleDashPrefix:function() { + return this.styleDashPrefixes[this.engineName]; +}, getStylePrefix:function() { + return this.stylePrefixes[this.engineName]; +}, getVendorProperyName:function(name) { + var prefix = this.propertyPrefixes[this.engineName]; + if (prefix.length > 0) { + return prefix + Ext.String.capitalize(name); + } + return name; +}, getPreferredTranslationMethod:function(config) { + if (typeof config === 'object' && 'translationMethod' in config && config.translationMethod !== 'auto') { + return config.translationMethod; + } else { + return 'csstransform'; + } +}}; +(function(userAgent) { + Ext.browser = new Ext.env.Browser(userAgent, true); + Ext.userAgent = userAgent.toLowerCase(); + Ext.SSL_SECURE_URL = Ext.isSecure && Ext.isIE ? "javascript:''" : 'about:blank'; +})(Ext.global.navigator.userAgent); +Ext.env.OS = function(userAgent, platform, browserScope) { + var me = this, names = Ext.Boot.osNames, prefixes = Ext.Boot.osPrefixes, name, version = '', is = me.is, i, prefix, match, item, match1; + browserScope = browserScope || Ext.browser; + for (i in prefixes) { + if (prefixes.hasOwnProperty(i)) { + prefix = prefixes[i]; + match = userAgent.match(new RegExp('(?:' + prefix + ')([^\\s;]+)')); + if (match) { + name = names[i]; + match1 = match[1]; + if (match1 && match1 === 'HTC_') { + version = new Ext.Version('2.3'); + } else { + if (match1 && match1 === 'Silk/') { + version = new Ext.Version('2.3'); + } else { + version = new Ext.Version(match[match.length - 1]); + } + } + break; + } + } + } + if (!name) { + name = names[(userAgent.toLowerCase().match(/mac|win|linux/) || ['other'])[0]]; + version = new Ext.Version(''); + } + this.name = name; + this.version = version; + if (platform) { + this.setFlag(platform.replace(/ simulator$/i, '')); + } + this.setFlag(name); + if (version) { + this.setFlag(name + (version.getMajor() || '')); + this.setFlag(name + version.getShortVersion()); + } + for (i in names) { + if (names.hasOwnProperty(i)) { + item = names[i]; + if (!is.hasOwnProperty(name)) { + this.setFlag(item, name === item); + } + } + } + if (this.name === 'iOS' && window.screen.height === 568) { + this.setFlag('iPhone5'); + } + if (browserScope.is.Safari || browserScope.is.Silk) { + if (this.is.Android2 || this.is.Android3 || browserScope.version.shortVersion === 501) { + browserScope.setFlag('AndroidStock'); + } + if (this.is.Android4) { + browserScope.setFlag('AndroidStock'); + browserScope.setFlag('AndroidStock4'); + } + } +}; +Ext.env.OS.prototype = {constructor:Ext.env.OS, is:function(name) { + return !!this[name]; +}, name:null, version:null, setFlag:function(name, value) { + if (value === undefined) { + value = true; + } + if (this.flags) { + this.flags[name] = value; + } + this.is[name] = value; + this.is[name.toLowerCase()] = value; + return this; +}}; +(function() { + var navigation = Ext.global.navigator, userAgent = navigation.userAgent, OS = Ext.env.OS, is = Ext.is || (Ext.is = {}), osEnv, osName, deviceType; + OS.prototype.flags = is; + Ext.os = osEnv = new OS(userAgent, navigation.platform); + osName = osEnv.name; + Ext['is' + osName] = true; + Ext.isMac = is.Mac = is.MacOS; + var search = window.location.search.match(/deviceType=(Tablet|Phone)/), nativeDeviceType = window.deviceType; + if (search && search[1]) { + deviceType = search[1]; + } else { + if (nativeDeviceType === 'iPhone') { + deviceType = 'Phone'; + } else { + if (nativeDeviceType === 'iPad') { + deviceType = 'Tablet'; + } else { + if (!osEnv.is.Android && !osEnv.is.iOS && !osEnv.is.WindowsPhone && /Windows|Linux|MacOS/.test(osName)) { + deviceType = 'Desktop'; + Ext.browser.is.WebView = !!Ext.browser.is.Ripple; + } else { + if (osEnv.is.iPad || osEnv.is.RIMTablet || osEnv.is.Android3 || Ext.browser.is.Silk || osEnv.is.Android && userAgent.search(/mobile/i) === -1) { + deviceType = 'Tablet'; + } else { + deviceType = 'Phone'; + } + } + } + } + } + osEnv.setFlag(deviceType, true); + osEnv.deviceType = deviceType; + delete OS.prototype.flags; +})(); +Ext.feature = {has:function(name) { + return !!this.has[name]; +}, testElements:{}, getTestElement:function(tag, createNew) { + if (tag === undefined) { + tag = 'div'; + } else { + if (typeof tag !== 'string') { + return tag; + } + } + if (createNew) { + return document.createElement(tag); + } + if (!this.testElements[tag]) { + this.testElements[tag] = document.createElement(tag); + } + return this.testElements[tag]; +}, isStyleSupported:function(name, tag) { + var elementStyle = this.getTestElement(tag).style, cName = Ext.String.capitalize(name); + if (typeof elementStyle[name] !== 'undefined' || typeof elementStyle[Ext.browser.getStylePrefix(name) + cName] !== 'undefined') { + return true; + } + return false; +}, isStyleSupportedWithoutPrefix:function(name, tag) { + var elementStyle = this.getTestElement(tag).style; + if (typeof elementStyle[name] !== 'undefined') { + return true; + } + return false; +}, isEventSupported:function(name, tag) { + if (tag === undefined) { + tag = window; + } + var element = this.getTestElement(tag), eventName = 'on' + name.toLowerCase(), isSupported = eventName in element; + if (!isSupported) { + if (element.setAttribute && element.removeAttribute) { + element.setAttribute(eventName, ''); + isSupported = typeof element[eventName] === 'function'; + if (typeof element[eventName] !== 'undefined') { + element[eventName] = undefined; + } + element.removeAttribute(eventName); + } + } + return isSupported; +}, getStyle:function(element, styleName) { + var view = element.ownerDocument.defaultView, style = view ? view.getComputedStyle(element, null) : element.currentStyle; + return (style || element.style)[styleName]; +}, getSupportedPropertyName:function(object, name) { + var vendorName = Ext.browser.getVendorProperyName(name); + if (vendorName in object) { + return vendorName; + } else { + if (name in object) { + return name; + } + } + return null; +}, detect:function(isReady) { + var me = this, doc = document, toRun = me.toRun || me.tests, n = toRun.length, div = doc.createElement('div'), notRun = [], supports = Ext.supports, has = me.has, name, names, test, vector, value; + div.innerHTML = '\x3cdiv style\x3d"height:30px;width:50px;"\x3e' + '\x3cdiv style\x3d"height:20px;width:20px;"\x3e\x3c/div\x3e' + '\x3c/div\x3e' + '\x3cdiv style\x3d"width: 200px; height: 200px; position: relative; padding: 5px;"\x3e' + '\x3cdiv style\x3d"position: absolute; top: 0; left: 0; width: 100%; height: 100%;"\x3e\x3c/div\x3e' + '\x3c/div\x3e' + '\x3cdiv style\x3d"position: absolute; left: 10%; top: 10%;"\x3e\x3c/div\x3e' + '\x3cdiv style\x3d"float:left; background-color:transparent;"\x3e\x3c/div\x3e'; + if (isReady) { + doc.body.appendChild(div); + } + vector = me.preDetected[Ext.browser.identity] || []; + while (n--) { + test = toRun[n]; + value = vector[n]; + name = test.name; + names = test.names; + if (value === undefined) { + if (!isReady && test.ready) { + notRun.push(test); + continue; + } + value = test.fn.call(me, doc, div); + } + if (name) { + supports[name] = has[name] = value; + } else { + if (names) { + while (names.length) { + name = names.pop(); + supports[name] = has[name] = value; + } + } + } + } + if (isReady) { + doc.body.removeChild(div); + } + me.toRun = notRun; +}, report:function() { + var values = [], len = this.tests.length, i; + for (i = 0; i < len; ++i) { + values.push(this.has[this.tests[i].name] ? 1 : 0); + } + Ext.log(Ext.browser.identity + ': [' + values.join(',') + ']'); +}, preDetected:{}, tests:[{name:'CloneNodeCopiesExpando', fn:function() { + var el = document.createElement('div'); + el.expandoProp = {}; + return el.cloneNode().expandoProp === el.expandoProp; +}}, {name:'CSSPointerEvents', fn:function(doc) { + return 'pointerEvents' in doc.documentElement.style; +}}, {name:'CSS3BoxShadow', fn:function(doc) { + return 'boxShadow' in doc.documentElement.style || 'WebkitBoxShadow' in doc.documentElement.style || 'MozBoxShadow' in doc.documentElement.style; +}}, {name:'CSS3NegationSelector', fn:function(doc) { + try { + doc.querySelectorAll('foo:not(bar)'); + } catch (e$2) { + return false; + } + return true; +}}, {name:'ClassList', fn:function(doc) { + return !!doc.documentElement.classList; +}}, {name:'Canvas', fn:function() { + var element = this.getTestElement('canvas'); + return !!(element && element.getContext && element.getContext('2d')); +}}, {name:'Svg', fn:function(doc) { + return !!(doc.createElementNS && !!doc.createElementNS('http:/' + '/www.w3.org/2000/svg', 'svg').createSVGRect); +}}, {name:'Vml', fn:function() { + var element = this.getTestElement(), ret = false; + element.innerHTML = '\x3c!--[if vml]\x3e\x3cbr\x3e\x3c![endif]--\x3e'; + ret = element.childNodes.length === 1; + element.innerHTML = ''; + return ret; +}}, {name:'touchScroll', fn:function() { + var touchScroll = 0; + if (Ext.os.is.Desktop && (navigator.maxTouchPoints || navigator.msMaxTouchPoints)) { + touchScroll = 1; + } else { + if (Ext.supports.Touch) { + touchScroll = 2; + } + } + return touchScroll; +}}, {name:'Touch', fn:function() { + var maxTouchPoints = navigator.msMaxTouchPoints || navigator.maxTouchPoints; + if (Ext.browser.is.Chrome && Ext.browser.version.isLessThanOrEqual(39)) { + return Ext.supports.TouchEvents && maxTouchPoints !== 1 || maxTouchPoints > 1; + } else { + return Ext.supports.TouchEvents || maxTouchPoints > 0; + } +}}, {name:'TouchEvents', fn:function() { + return this.isEventSupported('touchend'); +}}, {name:'PointerEvents', fn:function() { + return navigator.pointerEnabled; +}}, {name:'MSPointerEvents', fn:function() { + return navigator.msPointerEnabled; +}}, {name:'Orientation', fn:function() { + return 'orientation' in window && this.isEventSupported('orientationchange'); +}}, {name:'OrientationChange', fn:function() { + return this.isEventSupported('orientationchange'); +}}, {name:'DeviceMotion', fn:function() { + return this.isEventSupported('devicemotion'); +}}, {names:['Geolocation', 'GeoLocation'], fn:function() { + return 'geolocation' in window.navigator; +}}, {name:'SqlDatabase', fn:function() { + return 'openDatabase' in window; +}}, {name:'WebSockets', fn:function() { + return 'WebSocket' in window; +}}, {name:'Range', fn:function() { + return !!document.createRange; +}}, {name:'CreateContextualFragment', fn:function() { + var range = !!document.createRange ? document.createRange() : false; + return range && !!range.createContextualFragment; +}}, {name:'History', fn:function() { + return 'history' in window && 'pushState' in window.history; +}}, {name:'Css3dTransforms', fn:function() { + return this.has('CssTransforms') && this.isStyleSupported('perspective'); +}}, {name:'CssTransforms', fn:function() { + return this.isStyleSupported('transform'); +}}, {name:'CssTransformNoPrefix', fn:function() { + return this.isStyleSupportedWithoutPrefix('transform'); +}}, {name:'CssAnimations', fn:function() { + return this.isStyleSupported('animationName'); +}}, {names:['CssTransitions', 'Transitions'], fn:function() { + return this.isStyleSupported('transitionProperty'); +}}, {names:['Audio', 'AudioTag'], fn:function() { + return !!this.getTestElement('audio').canPlayType; +}}, {name:'Video', fn:function() { + return !!this.getTestElement('video').canPlayType; +}}, {name:'LocalStorage', fn:function() { + try { + if ('localStorage' in window && window['localStorage'] !== null) { + localStorage.setItem('sencha-localstorage-test', 'test success'); + localStorage.removeItem('sencha-localstorage-test'); + return true; + } + } catch (e$3) { + } + return false; +}}, {name:'XHR2', fn:function() { + return window.ProgressEvent && window.FormData && window.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest; +}}, {name:'XHRUploadProgress', fn:function() { + if (window.XMLHttpRequest && !Ext.browser.is.AndroidStock) { + var xhr = new XMLHttpRequest; + return xhr && 'upload' in xhr && 'onprogress' in xhr.upload; + } + return false; +}}, {name:'NumericInputPlaceHolder', fn:function() { + return !(Ext.browser.is.AndroidStock4 && Ext.os.version.getMinor() < 2); +}}, {name:'matchesSelector', fn:function() { + var el = document.documentElement, w3 = 'matches', wk = 'webkitMatchesSelector', ms = 'msMatchesSelector', mz = 'mozMatchesSelector'; + return el[w3] ? w3 : el[wk] ? wk : el[ms] ? ms : el[mz] ? mz : null; +}}, {name:'RightMargin', ready:true, fn:function(doc, div) { + var view = doc.defaultView; + return !(view && view.getComputedStyle(div.firstChild.firstChild, null).marginRight !== '0px'); +}}, {name:'DisplayChangeInputSelectionBug', fn:function() { + var webKitVersion = Ext.webKitVersion; + return 0 < webKitVersion && webKitVersion < 533; +}}, {name:'DisplayChangeTextAreaSelectionBug', fn:function() { + var webKitVersion = Ext.webKitVersion; + return 0 < webKitVersion && webKitVersion < 534.24; +}}, {name:'TransparentColor', ready:true, fn:function(doc, div, view) { + view = doc.defaultView; + return !(view && view.getComputedStyle(div.lastChild, null).backgroundColor !== 'transparent'); +}}, {name:'ComputedStyle', ready:true, fn:function(doc, div, view) { + view = doc.defaultView; + return view && view.getComputedStyle; +}}, {name:'Float', fn:function(doc) { + return 'cssFloat' in doc.documentElement.style; +}}, {name:'CSS3BorderRadius', ready:true, fn:function(doc) { + var domPrefixes = ['borderRadius', 'BorderRadius', 'MozBorderRadius', 'WebkitBorderRadius', 'OBorderRadius', 'KhtmlBorderRadius'], pass = false, i; + for (i = 0; i < domPrefixes.length; i++) { + if (doc.documentElement.style[domPrefixes[i]] !== undefined) { + pass = true; + } + } + return pass && !Ext.isIE9; +}}, {name:'CSS3LinearGradient', fn:function(doc, div) { + var property = 'background-image:', webkit = '-webkit-gradient(linear, left top, right bottom, from(black), to(white))', w3c = 'linear-gradient(left top, black, white)', moz = '-moz-' + w3c, ms = '-ms-' + w3c, opera = '-o-' + w3c, options = [property + webkit, property + w3c, property + moz, property + ms, property + opera]; + div.style.cssText = options.join(';'); + return ('' + div.style.backgroundImage).indexOf('gradient') !== -1 && !Ext.isIE9; +}}, {name:'MouseEnterLeave', fn:function(doc) { + return 'onmouseenter' in doc.documentElement && 'onmouseleave' in doc.documentElement; +}}, {name:'MouseWheel', fn:function(doc) { + return 'onmousewheel' in doc.documentElement; +}}, {name:'Opacity', fn:function(doc, div) { + if (Ext.isIE8) { + return false; + } + div.firstChild.style.cssText = 'opacity:0.73'; + return div.firstChild.style.opacity == '0.73'; +}}, {name:'Placeholder', fn:function(doc) { + return 'placeholder' in doc.createElement('input'); +}}, {name:'Direct2DBug', fn:function(doc) { + return Ext.isString(doc.documentElement.style.msTransformOrigin) && Ext.isIE9m; +}}, {name:'BoundingClientRect', fn:function(doc) { + return 'getBoundingClientRect' in doc.documentElement; +}}, {name:'RotatedBoundingClientRect', ready:true, fn:function(doc) { + var body = doc.body, supports = false, el = doc.createElement('div'), style = el.style; + if (el.getBoundingClientRect) { + style.position = 'absolute'; + style.top = '0'; + style.WebkitTransform = style.MozTransform = style.msTransform = style.OTransform = style.transform = 'rotate(90deg)'; + style.width = '100px'; + style.height = '30px'; + body.appendChild(el); + supports = el.getBoundingClientRect().height !== 100; + body.removeChild(el); + } + return supports; +}}, {name:'ChildContentClearedWhenSettingInnerHTML', ready:true, fn:function() { + var el = this.getTestElement(), child; + el.innerHTML = '\x3cdiv\x3ea\x3c/div\x3e'; + child = el.firstChild; + el.innerHTML = '\x3cdiv\x3eb\x3c/div\x3e'; + return child.innerHTML !== 'a'; +}}, {name:'IncludePaddingInWidthCalculation', ready:true, fn:function(doc, div) { + return div.childNodes[1].firstChild.offsetWidth === 210; +}}, {name:'IncludePaddingInHeightCalculation', ready:true, fn:function(doc, div) { + return div.childNodes[1].firstChild.offsetHeight === 210; +}}, {name:'TextAreaMaxLength', fn:function(doc) { + return 'maxlength' in doc.createElement('textarea'); +}}, {name:'GetPositionPercentage', ready:true, fn:function(doc, div) { + return Ext.feature.getStyle(div.childNodes[2], 'left') === '10%'; +}}, {name:'PercentageHeightOverflowBug', ready:true, fn:function(doc) { + var hasBug = false, style, el; + if (Ext.getScrollbarSize().height) { + el = this.getTestElement(); + style = el.style; + style.height = '50px'; + style.width = '50px'; + style.overflow = 'auto'; + style.position = 'absolute'; + el.innerHTML = ['\x3cdiv style\x3d"display:table;height:100%;"\x3e', '\x3cdiv style\x3d"width:51px;"\x3e\x3c/div\x3e', '\x3c/div\x3e'].join(''); + doc.body.appendChild(el); + if (el.firstChild.offsetHeight === 50) { + hasBug = true; + } + doc.body.removeChild(el); + } + return hasBug; +}}, {name:'xOriginBug', ready:true, fn:function(doc, div) { + div.innerHTML = '\x3cdiv id\x3d"b1" style\x3d"height:100px;width:100px;direction:rtl;position:relative;overflow:scroll"\x3e' + '\x3cdiv id\x3d"b2" style\x3d"position:relative;width:100%;height:20px;"\x3e\x3c/div\x3e' + '\x3cdiv id\x3d"b3" style\x3d"position:absolute;width:20px;height:20px;top:0px;right:0px"\x3e\x3c/div\x3e' + '\x3c/div\x3e'; + var outerBox = document.getElementById('b1').getBoundingClientRect(), b2 = document.getElementById('b2').getBoundingClientRect(), b3 = document.getElementById('b3').getBoundingClientRect(); + return b2.left !== outerBox.left && b3.right !== outerBox.right; +}}, {name:'ScrollWidthInlinePaddingBug', ready:true, fn:function(doc) { + var hasBug = false, style, el; + el = doc.createElement('div'); + style = el.style; + style.height = '50px'; + style.width = '50px'; + style.padding = '10px'; + style.overflow = 'hidden'; + style.position = 'absolute'; + el.innerHTML = '\x3cspan style\x3d"display:inline-block;zoom:1;height:60px;width:60px;"\x3e\x3c/span\x3e'; + doc.body.appendChild(el); + if (el.scrollWidth === 70) { + hasBug = true; + } + doc.body.removeChild(el); + return hasBug; +}}, {name:'rtlVertScrollbarOnRight', ready:true, fn:function(doc, div) { + div.innerHTML = '\x3cdiv style\x3d"height:100px;width:100px;direction:rtl;overflow:scroll"\x3e' + '\x3cdiv style\x3d"width:20px;height:200px;"\x3e\x3c/div\x3e' + '\x3c/div\x3e'; + var outerBox = div.firstChild, innerBox = outerBox.firstChild; + return innerBox.offsetLeft + innerBox.offsetWidth !== outerBox.offsetLeft + outerBox.offsetWidth; +}}, {name:'rtlVertScrollbarOverflowBug', ready:true, fn:function(doc, div) { + div.innerHTML = '\x3cdiv style\x3d"height:100px;width:100px;direction:rtl;overflow:auto"\x3e' + '\x3cdiv style\x3d"width:95px;height:200px;"\x3e\x3c/div\x3e' + '\x3c/div\x3e'; + var outerBox = div.firstChild; + return outerBox.clientHeight === outerBox.offsetHeight; +}}, {identity:'defineProperty', fn:function() { + if (Ext.isIE8m) { + Ext.Object.defineProperty = Ext.emptyFn; + return false; + } + return true; +}}, {identify:'nativeXhr', fn:function() { + if (typeof XMLHttpRequest !== 'undefined') { + return true; + } + XMLHttpRequest = function() { + try { + return new ActiveXObject('MSXML2.XMLHTTP.3.0'); + } catch (ex) { + return null; + } + }; + return false; +}}, {name:'SpecialKeyDownRepeat', fn:function() { + return Ext.isWebKit ? parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1], 10) >= 525 : !(Ext.isGecko && !Ext.isWindows || Ext.isOpera && Ext.operaVersion < 12); +}}, {name:'EmulatedMouseOver', fn:function() { + return Ext.os.is.iOS; +}}, {name:'Hashchange', fn:function() { + var docMode = document.documentMode; + return 'onhashchange' in window && (docMode === undefined || docMode > 7); +}}, {name:'FixedTableWidthBug', ready:true, fn:function() { + if (Ext.isIE8) { + return false; + } + var outer = document.createElement('div'), inner = document.createElement('div'), width; + outer.setAttribute('style', 'display:table;table-layout:fixed;'); + inner.setAttribute('style', 'display:table-cell;min-width:50px;'); + outer.appendChild(inner); + document.body.appendChild(outer); + outer.offsetWidth; + outer.style.width = '25px'; + width = outer.offsetWidth; + document.body.removeChild(outer); + return width === 50; +}}, {name:'FocusinFocusoutEvents', fn:function() { + return !Ext.isGecko; +}}, {name:'AsyncFocusEvents', fn:function() { + return Ext.asyncFocus = !!Ext.isIE; +}}, {name:'accessibility', ready:true, fn:function(doc) { + var body = doc.body, div, img, style, supports, bgImg; + function getColor(colorTxt) { + var values = [], colorValue = 0, regex, match; + if (colorTxt.indexOf('rgb(') !== -1) { + values = colorTxt.replace('rgb(', '').replace(')', '').split(', '); + } else { + if (colorTxt.indexOf('#') !== -1) { + regex = colorTxt.length === 7 ? /^#(\S\S)(\S\S)(\S\S)$/ : /^#(\S)(\S)(\S)$/; + match = colorTxt.match(regex); + if (match) { + values = ['0x' + match[1], '0x' + match[2], '0x' + match[3]]; + } + } + } + for (var i = 0; i < values.length; i++) { + colorValue += parseInt(values[i]); + } + return colorValue; + } + div = doc.createElement('div'); + img = doc.createElement('img'); + style = div.style; + Ext.apply(style, {width:'2px', position:'absolute', clip:'rect(1px,1px,1px,1px)', borderWidth:'1px', borderStyle:'solid', borderTopTolor:'#f00', borderRightColor:'#ff0', backgroundColor:'#fff', backgroundImage:'url(' + Ext.BLANK_IMAGE_URL + ')'}); + img.alt = ''; + img.src = Ext.BLANK_IMAGE_URL; + div.appendChild(img); + body.appendChild(div); + style = div.currentStyle || div.style; + bgImg = style.backgroundImage; + supports = {Images:img.offsetWidth === 1 && img.readyState !== 'uninitialized', BackgroundImages:!(bgImg !== null && (bgImg === 'none' || bgImg === 'url(invalid-url:)')), BorderColors:style.borderTopColor !== style.borderRightColor, LightOnDark:getColor(style.color) - getColor(style.backgroundColor) > 0}; + Ext.supports.HighContrastMode = !supports.BackgroundImages; + body.removeChild(div); + div = img = null; + return supports; +}}, 0]}; +Ext.feature.tests.pop(); +Ext.supports = {}; +Ext.feature.detect(); +Ext.env.Ready = {blocks:(location.search || '').indexOf('ext-pauseReadyFire') > 0 ? 1 : 0, bound:0, delay:1, events:[], firing:false, generation:0, listeners:[], nextId:0, sortGeneration:0, state:0, timer:null, bind:function() { + var me = Ext.env.Ready, doc = document; + if (!me.bound) { + if (doc.readyState === 'complete') { + me.onReadyEvent({type:doc.readyState || 'body'}); + } else { + me.bound = 1; + if (Ext.browser.is.PhoneGap && !Ext.os.is.Desktop) { + me.bound = 2; + doc.addEventListener('deviceready', me.onReadyEvent, false); + } + doc.addEventListener('DOMContentLoaded', me.onReadyEvent, false); + window.addEventListener('load', me.onReadyEvent, false); + } + } +}, block:function() { + ++this.blocks; + Ext.isReady = false; +}, fireReady:function() { + var me = Ext.env.Ready; + if (!me.state) { + Ext._readyTime = Ext.ticks(); + Ext.isDomReady = true; + me.state = 1; + Ext.feature.detect(true); + if (!me.delay) { + me.handleReady(); + } else { + if (navigator.standalone) { + me.timer = Ext.defer(function() { + me.timer = null; + me.handleReadySoon(); + }, 1); + } else { + me.handleReadySoon(); + } + } + } +}, handleReady:function() { + var me = this; + if (me.state === 1) { + me.state = 2; + Ext._beforeReadyTime = Ext.ticks(); + me.invokeAll(); + Ext._afterReadyTime = Ext.ticks(); + } +}, handleReadySoon:function(delay) { + var me = this; + if (!me.timer) { + me.timer = Ext.defer(function() { + me.timer = null; + me.handleReady(); + }, delay || me.delay); + } +}, invoke:function(listener) { + var delay = listener.delay; + if (delay) { + Ext.defer(listener.fn, delay, listener.scope); + } else { + if (Ext.elevateFunction) { + Ext.elevateFunction(listener.fn, listener.scope); + } else { + listener.fn.call(listener.scope); + } + } +}, invokeAll:function() { + if (Ext.elevateFunction) { + Ext.elevateFunction(this.doInvokeAll, this); + } else { + this.doInvokeAll(); + } +}, doInvokeAll:function() { + var me = this, listeners = me.listeners, listener; + if (!me.blocks) { + Ext.isReady = true; + } + me.firing = true; + while (listeners.length) { + if (me.sortGeneration !== me.generation) { + me.sortGeneration = me.generation; + listeners.sort(me.sortFn); + } + listener = listeners.pop(); + if (me.blocks && !listener.dom) { + listeners.push(listener); + break; + } + me.invoke(listener); + } + me.firing = false; +}, makeListener:function(fn, scope, options) { + var ret = {fn:fn, id:++this.nextId, scope:scope, dom:false, priority:0}; + if (options) { + Ext.apply(ret, options); + } + ret.phase = ret.dom ? 0 : 1; + return ret; +}, on:function(fn, scope, options) { + var me = Ext.env.Ready, listener = me.makeListener(fn, scope, options); + if (me.state === 2 && !me.firing && (listener.dom || !me.blocks)) { + me.invoke(listener); + } else { + me.listeners.push(listener); + ++me.generation; + if (!me.bound) { + me.bind(); + } + } +}, onReadyEvent:function(ev) { + var me = Ext.env.Ready; + if (Ext.elevateFunction) { + Ext.elevateFunction(me.doReadyEvent, me, arguments); + } else { + me.doReadyEvent(ev); + } +}, doReadyEvent:function(ev) { + var me = this; + if (ev && ev.type) { + me.events.push(ev); + } + if (me.bound > 0) { + me.unbind(); + me.bound = -1; + } + if (!me.state) { + me.fireReady(); + } +}, sortFn:function(a, b) { + return -(a.phase - b.phase || b.priority - a.priority || a.id - b.id); +}, unblock:function() { + var me = this; + if (me.blocks) { + if (!--me.blocks) { + if (me.state === 2 && !me.firing) { + me.invokeAll(); + } + } + } +}, unbind:function() { + var me = this, doc = document; + if (me.bound > 1) { + doc.removeEventListener('deviceready', me.onReadyEvent, false); + } + doc.removeEventListener('DOMContentLoaded', me.onReadyEvent, false); + window.removeEventListener('load', me.onReadyEvent, false); +}}; +(function() { + var Ready = Ext.env.Ready; + if (Ext.isIE9m) { + Ext.apply(Ready, {scrollTimer:null, readyStatesRe:/complete/i, pollScroll:function() { + var scrollable = true; + try { + document.documentElement.doScroll('left'); + } catch (e$4) { + scrollable = false; + } + if (scrollable && document.body) { + Ready.onReadyEvent({type:'doScroll'}); + } else { + Ready.scrollTimer = Ext.defer(Ready.pollScroll, 20); + } + return scrollable; + }, bind:function() { + if (Ready.bound) { + return; + } + var doc = document, topContext; + try { + topContext = window.frameElement === undefined; + } catch (e$5) { + } + if (!topContext || !doc.documentElement.doScroll) { + Ready.pollScroll = Ext.emptyFn; + } else { + if (Ready.pollScroll()) { + return; + } + } + if (doc.readyState === 'complete') { + Ready.onReadyEvent({type:'already ' + (doc.readyState || 'body')}); + } else { + doc.attachEvent('onreadystatechange', Ready.onReadyStateChange); + window.attachEvent('onload', Ready.onReadyEvent); + Ready.bound = 1; + } + }, unbind:function() { + document.detachEvent('onreadystatechange', Ready.onReadyStateChange); + window.detachEvent('onload', Ready.onReadyEvent); + if (Ext.isNumber(Ready.scrollTimer)) { + clearTimeout(Ready.scrollTimer); + Ready.scrollTimer = null; + } + }, onReadyStateChange:function() { + var state = document.readyState; + if (Ready.readyStatesRe.test(state)) { + Ready.onReadyEvent({type:state}); + } + }}); + } + Ext.onDocumentReady = function(fn, scope, options) { + var opt = {dom:true}; + if (options) { + Ext.apply(opt, options); + } + Ready.on(fn, scope, opt); + }; + Ext.onReady = function(fn, scope, options) { + Ready.on(fn, scope, options); + }; + Ext.onInternalReady = function(fn, scope, options) { + Ready.on(fn, scope, Ext.apply({priority:1000}, options)); + }; + Ready.bind(); +})(); +Ext.Loader = new function() { + var Loader = this, Manager = Ext.ClassManager, Boot = Ext.Boot, Class = Ext.Class, Ready = Ext.env.Ready, alias = Ext.Function.alias, dependencyProperties = ['extend', 'mixins', 'requires'], isInHistory = {}, history = [], readyListeners = [], usedClasses = [], _requiresMap = {}, _missingQueue = {}, _config = {enabled:true, scriptChainDelay:false, disableCaching:true, disableCachingParam:'_dc', paths:Manager.paths, preserveScripts:true, scriptCharset:undefined}, delegatedConfigs = {disableCaching:true, + disableCachingParam:true, preserveScripts:true, scriptChainDelay:'loadDelay'}; + Ext.apply(Loader, {isInHistory:isInHistory, isLoading:false, history:history, config:_config, readyListeners:readyListeners, optionalRequires:usedClasses, requiresMap:_requiresMap, hasFileLoadError:false, scriptsLoading:0, classesLoading:[], syncModeEnabled:false, missingQueue:_missingQueue, init:function() { + var scripts = document.getElementsByTagName('script'), src = scripts[scripts.length - 1].src, path = src.substring(0, src.lastIndexOf('/') + 1), meta = Ext._classPathMetadata, microloader = Ext.Microloader, manifest = Ext.manifest, loadOrder, baseUrl, loadlen, l, loadItem; + if (src.indexOf('packages/core/src/') !== -1) { + path = path + '../../'; + } else { + if (src.indexOf('/core/src/class/') !== -1) { + path = path + '../../../'; + } + } + if (!Manager.getPath('Ext')) { + Manager.setPath('Ext', path + 'src'); + } + if (meta) { + Ext._classPathMetadata = null; + Loader.addClassPathMappings(meta); + } + if (manifest) { + loadOrder = manifest.loadOrder; + baseUrl = Ext.Boot.baseUrl; + if (loadOrder && manifest.bootRelative) { + for (loadlen = loadOrder.length, l = 0; l < loadlen; l++) { + loadItem = loadOrder[l]; + loadItem.path = baseUrl + loadItem.path; + } + } + } + if (microloader) { + Ready.block(); + microloader.onMicroloaderReady(function() { + Ready.unblock(); + }); + } + }, setConfig:Ext.Function.flexSetter(function(name, value) { + if (name === 'paths') { + Loader.setPath(value); + } else { + _config[name] = value; + var delegated = delegatedConfigs[name]; + if (delegated) { + Boot.setConfig(delegated === true ? name : delegated, value); + } + } + return Loader; + }), getConfig:function(name) { + return name ? _config[name] : _config; + }, setPath:function() { + Manager.setPath.apply(Manager, arguments); + return Loader; + }, addClassPathMappings:function(paths) { + Manager.setPath(paths); + return Loader; + }, addBaseUrlClassPathMappings:function(pathConfig) { + for (var name in pathConfig) { + pathConfig[name] = Boot.baseUrl + pathConfig[name]; + } + Ext.Loader.addClassPathMappings(pathConfig); + }, getPath:function(className) { + return Manager.getPath(className); + }, require:function(expressions, fn, scope, excludes) { + if (excludes) { + return Loader.exclude(excludes).require(expressions, fn, scope); + } + var classNames = Manager.getNamesByExpression(expressions); + return Loader.load(classNames, fn, scope); + }, syncRequire:function() { + var wasEnabled = Loader.syncModeEnabled; + Loader.syncModeEnabled = true; + var ret = Loader.require.apply(Loader, arguments); + Loader.syncModeEnabled = wasEnabled; + return ret; + }, exclude:function(excludes) { + var selector = Manager.select({require:function(classNames, fn, scope) { + return Loader.load(classNames, fn, scope); + }, syncRequire:function(classNames, fn, scope) { + var wasEnabled = Loader.syncModeEnabled; + Loader.syncModeEnabled = true; + var ret = Loader.load(classNames, fn, scope); + Loader.syncModeEnabled = wasEnabled; + return ret; + }}); + selector.exclude(excludes); + return selector; + }, load:function(classNames, callback, scope) { + if (callback) { + if (callback.length) { + callback = Loader.makeLoadCallback(classNames, callback); + } + callback = callback.bind(scope || Ext.global); + } + var missingClassNames = [], numClasses = classNames.length, className, i, numMissing, urls = [], state = Manager.classState; + for (i = 0; i < numClasses; ++i) { + className = Manager.resolveName(classNames[i]); + if (!Manager.isCreated(className)) { + missingClassNames.push(className); + _missingQueue[className] = Loader.getPath(className); + if (!state[className]) { + urls.push(_missingQueue[className]); + } + } + } + numMissing = missingClassNames.length; + if (numMissing) { + Loader.missingCount += numMissing; + Ext.Array.push(Loader.classesLoading, missingClassNames); + Manager.onCreated(function() { + Ext.Array.remove(Loader.classesLoading, missingClassNames); + Ext.each(missingClassNames, function(name) { + Ext.Array.remove(Loader.classesLoading, name); + }); + if (callback) { + Ext.callback(callback, scope, arguments); + } + Loader.checkReady(); + }, Loader, missingClassNames); + if (!_config.enabled) { + Ext.raise('Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. ' + 'Missing required class' + (missingClassNames.length > 1 ? 'es' : '') + ': ' + missingClassNames.join(', ')); + } + if (urls.length) { + Loader.loadScripts({url:urls, _classNames:missingClassNames}); + } else { + Loader.checkReady(); + } + } else { + if (callback) { + callback.call(scope); + } + Loader.checkReady(); + } + if (Loader.syncModeEnabled) { + if (numClasses === 1) { + return Manager.get(classNames[0]); + } + } + return Loader; + }, makeLoadCallback:function(classNames, callback) { + return function() { + var classes = [], i = classNames.length; + while (i-- > 0) { + classes[i] = Manager.get(classNames[i]); + } + return callback.apply(this, classes); + }; + }, onLoadFailure:function() { + var options = this, onError = options.onError; + Loader.hasFileLoadError = true; + --Loader.scriptsLoading; + if (onError) { + onError.call(options.userScope, options); + } else { + Ext.log.error('[Ext.Loader] Some requested files failed to load.'); + } + Loader.checkReady(); + }, onLoadSuccess:function() { + var options = this, onLoad = options.onLoad; + --Loader.scriptsLoading; + if (onLoad) { + onLoad.call(options.userScope, options); + } + Loader.checkReady(); + }, reportMissingClasses:function() { + if (!Loader.syncModeEnabled && !Loader.scriptsLoading && Loader.isLoading && !Loader.hasFileLoadError) { + var missingClasses = [], missingPaths = []; + for (var missingClassName in _missingQueue) { + missingClasses.push(missingClassName); + missingPaths.push(_missingQueue[missingClassName]); + } + if (missingClasses.length) { + throw new Error('The following classes are not declared even if their files have been ' + "loaded: '" + missingClasses.join("', '") + "'. Please check the source code of their " + "corresponding files for possible typos: '" + missingPaths.join("', '")); + } + } + }, onReady:function(fn, scope, withDomReady, options) { + if (withDomReady) { + Ready.on(fn, scope, options); + } else { + var listener = Ready.makeListener(fn, scope, options); + if (Loader.isLoading) { + readyListeners.push(listener); + } else { + Ready.invoke(listener); + } + } + }, addUsedClasses:function(classes) { + var cls, i, ln; + if (classes) { + classes = typeof classes === 'string' ? [classes] : classes; + for (i = 0, ln = classes.length; i < ln; i++) { + cls = classes[i]; + if (typeof cls === 'string' && !Ext.Array.contains(usedClasses, cls)) { + usedClasses.push(cls); + } + } + } + return Loader; + }, triggerReady:function() { + var listener, refClasses = usedClasses; + if (Loader.isLoading && refClasses.length) { + usedClasses = []; + Loader.require(refClasses); + } else { + Loader.isLoading = false; + readyListeners.sort(Ready.sortFn); + while (readyListeners.length && !Loader.isLoading) { + listener = readyListeners.pop(); + Ready.invoke(listener); + } + Ready.unblock(); + } + }, historyPush:function(className) { + if (className && !isInHistory[className] && !Manager.overrideMap[className]) { + isInHistory[className] = true; + history.push(className); + } + return Loader; + }, loadScripts:function(params) { + var manifest = Ext.manifest, loadOrder = manifest && manifest.loadOrder, loadOrderMap = manifest && manifest.loadOrderMap, options; + ++Loader.scriptsLoading; + if (loadOrder && !loadOrderMap) { + manifest.loadOrderMap = loadOrderMap = Boot.createLoadOrderMap(loadOrder); + } + Loader.checkReady(); + options = Ext.apply({loadOrder:loadOrder, loadOrderMap:loadOrderMap, charset:_config.scriptCharset, success:Loader.onLoadSuccess, failure:Loader.onLoadFailure, sync:Loader.syncModeEnabled, _classNames:[]}, params); + options.userScope = options.scope; + options.scope = options; + Boot.load(options); + }, loadScriptsSync:function(urls) { + var syncwas = Loader.syncModeEnabled; + Loader.syncModeEnabled = true; + Loader.loadScripts({url:urls}); + Loader.syncModeEnabled = syncwas; + }, loadScriptsSyncBasePrefix:function(urls) { + var syncwas = Loader.syncModeEnabled; + Loader.syncModeEnabled = true; + Loader.loadScripts({url:urls, prependBaseUrl:true}); + Loader.syncModeEnabled = syncwas; + }, loadScript:function(options) { + var isString = typeof options === 'string', isArray = options instanceof Array, isObject = !isArray && !isString, url = isObject ? options.url : options, onError = isObject && options.onError, onLoad = isObject && options.onLoad, scope = isObject && options.scope, request = {url:url, scope:scope, onLoad:onLoad, onError:onError, _classNames:[]}; + Loader.loadScripts(request); + }, flushMissingQueue:function() { + var name, val, missingwas = 0, missing = 0; + for (name in _missingQueue) { + missingwas++; + val = _missingQueue[name]; + if (Manager.isCreated(name)) { + delete _missingQueue[name]; + } else { + if (Manager.existCache[name] === 2) { + delete _missingQueue[name]; + } else { + ++missing; + } + } + } + this.missingCount = missing; + }, checkReady:function() { + var wasLoading = Loader.isLoading, isLoading; + Loader.flushMissingQueue(); + isLoading = Loader.missingCount + Loader.scriptsLoading; + if (isLoading && !wasLoading) { + Ready.block(); + Loader.isLoading = !!isLoading; + } else { + if (!isLoading && wasLoading) { + Loader.triggerReady(); + } + } + if (!Loader.scriptsLoading && Loader.missingCount) { + Ext.defer(function() { + if (!Loader.scriptsLoading && Loader.missingCount) { + Ext.log.error('[Loader] The following classes failed to load:'); + for (var name in Loader.missingQueue) { + Ext.log.error('[Loader] ' + name + ' from ' + Loader.missingQueue[name]); + } + } + }, 1000); + } + }}); + Ext.require = alias(Loader, 'require'); + Ext.syncRequire = alias(Loader, 'syncRequire'); + Ext.exclude = alias(Loader, 'exclude'); + Class.registerPreprocessor('loader', function(cls, data, hooks, continueFn) { + Ext.classSystemMonitor && Ext.classSystemMonitor(cls, 'Ext.Loader#loaderPreprocessor', arguments); + var me = this, dependencies = [], dependency, className = Manager.getName(cls), i, j, ln, subLn, value, propertyName, propertyValue, requiredMap; + for (i = 0, ln = dependencyProperties.length; i < ln; i++) { + propertyName = dependencyProperties[i]; + if (data.hasOwnProperty(propertyName)) { + propertyValue = data[propertyName]; + if (typeof propertyValue === 'string') { + dependencies.push(propertyValue); + } else { + if (propertyValue instanceof Array) { + for (j = 0, subLn = propertyValue.length; j < subLn; j++) { + value = propertyValue[j]; + if (typeof value === 'string') { + dependencies.push(value); + } + } + } else { + if (typeof propertyValue !== 'function') { + for (j in propertyValue) { + if (propertyValue.hasOwnProperty(j)) { + value = propertyValue[j]; + if (typeof value === 'string') { + dependencies.push(value); + } + } + } + } + } + } + } + } + if (dependencies.length === 0) { + return; + } + if (className) { + _requiresMap[className] = dependencies; + } + var deadlockPath = [], detectDeadlock; + if (className) { + requiredMap = Loader.requiredByMap || (Loader.requiredByMap = {}); + for (i = 0, ln = dependencies.length; i < ln; i++) { + dependency = dependencies[i]; + (requiredMap[dependency] || (requiredMap[dependency] = [])).push(className); + } + detectDeadlock = function(cls) { + deadlockPath.push(cls); + if (_requiresMap[cls]) { + if (Ext.Array.contains(_requiresMap[cls], className)) { + Ext.raise("Circular requirement detected! '" + className + "' and '" + deadlockPath[1] + "' mutually require each other. Path: " + deadlockPath.join(' -\x3e ') + ' -\x3e ' + deadlockPath[0]); + } + for (i = 0, ln = _requiresMap[cls].length; i < ln; i++) { + detectDeadlock(_requiresMap[cls][i]); + } + } + }; + detectDeadlock(className); + } + (className ? Loader.exclude(className) : Loader).require(dependencies, function() { + for (i = 0, ln = dependencyProperties.length; i < ln; i++) { + propertyName = dependencyProperties[i]; + if (data.hasOwnProperty(propertyName)) { + propertyValue = data[propertyName]; + if (typeof propertyValue === 'string') { + data[propertyName] = Manager.get(propertyValue); + } else { + if (propertyValue instanceof Array) { + for (j = 0, subLn = propertyValue.length; j < subLn; j++) { + value = propertyValue[j]; + if (typeof value === 'string') { + data[propertyName][j] = Manager.get(value); + } + } + } else { + if (typeof propertyValue !== 'function') { + for (var k in propertyValue) { + if (propertyValue.hasOwnProperty(k)) { + value = propertyValue[k]; + if (typeof value === 'string') { + data[propertyName][k] = Manager.get(value); + } + } + } + } + } + } + } + } + continueFn.call(me, cls, data, hooks); + }); + return false; + }, true, 'after', 'className'); + Manager.registerPostprocessor('uses', function(name, cls, data) { + Ext.classSystemMonitor && Ext.classSystemMonitor(cls, 'Ext.Loader#usesPostprocessor', arguments); + var manifest = Ext.manifest, loadOrder = manifest && manifest.loadOrder, classes = manifest && manifest.classes, uses, clazz, item, len, i, indexMap; + if (loadOrder) { + clazz = classes[name]; + if (clazz && !isNaN(i = clazz.idx)) { + item = loadOrder[i]; + uses = item.uses; + indexMap = {}; + for (len = uses.length, i = 0; i < len; i++) { + indexMap[uses[i]] = true; + } + uses = Ext.Boot.getPathsFromIndexes(indexMap, loadOrder, true); + if (uses.length > 0) { + Loader.loadScripts({url:uses, sequential:true}); + } + } + } + if (data.uses) { + uses = data.uses; + Loader.addUsedClasses(uses); + } + }); + Manager.onCreated(Loader.historyPush); + Loader.init(); +}; +Ext._endTime = Ext.ticks(); +if (Ext._beforereadyhandler) { + Ext._beforereadyhandler(); +} +Ext.define('Ext.Mixin', function(Mixin) { + return {statics:{addHook:function(hookFn, targetClass, methodName, mixinClassPrototype) { + var isFunc = Ext.isFunction(hookFn), hook = function() { + var a = arguments, fn = isFunc ? hookFn : mixinClassPrototype[hookFn], result = this.callParent(a); + fn.apply(this, a); + return result; + }, existingFn = targetClass.hasOwnProperty(methodName) && targetClass[methodName]; + if (isFunc) { + hookFn.$previous = Ext.emptyFn; + } + hook.$name = methodName; + hook.$owner = targetClass.self; + if (existingFn) { + hook.$previous = existingFn.$previous; + existingFn.$previous = hook; + } else { + targetClass[methodName] = hook; + } + }}, onClassExtended:function(cls, data) { + var mixinConfig = data.mixinConfig, hooks = data.xhooks, superclass = cls.superclass, onClassMixedIn = data.onClassMixedIn, parentMixinConfig, befores, afters, extended; + if (hooks) { + delete data.xhooks; + (mixinConfig || (data.mixinConfig = mixinConfig = {})).on = hooks; + } + if (mixinConfig) { + parentMixinConfig = superclass.mixinConfig; + if (parentMixinConfig) { + data.mixinConfig = mixinConfig = Ext.merge({}, parentMixinConfig, mixinConfig); + } + data.mixinId = mixinConfig.id; + if (mixinConfig.beforeHooks) { + Ext.raise('Use of "beforeHooks" is deprecated - use "before" instead'); + } + if (mixinConfig.hooks) { + Ext.raise('Use of "hooks" is deprecated - use "after" instead'); + } + if (mixinConfig.afterHooks) { + Ext.raise('Use of "afterHooks" is deprecated - use "after" instead'); + } + befores = mixinConfig.before; + afters = mixinConfig.after; + hooks = mixinConfig.on; + extended = mixinConfig.extended; + } + if (befores || afters || hooks || extended) { + data.onClassMixedIn = function(targetClass) { + var mixin = this.prototype, targetProto = targetClass.prototype, key; + if (befores) { + Ext.Object.each(befores, function(key, value) { + targetClass.addMember(key, function() { + if (mixin[value].apply(this, arguments) !== false) { + return this.callParent(arguments); + } + }); + }); + } + if (afters) { + Ext.Object.each(afters, function(key, value) { + targetClass.addMember(key, function() { + var ret = this.callParent(arguments); + mixin[value].apply(this, arguments); + return ret; + }); + }); + } + if (hooks) { + for (key in hooks) { + Mixin.addHook(hooks[key], targetProto, key, mixin); + } + } + if (extended) { + targetClass.onExtended(function() { + var args = Ext.Array.slice(arguments, 0); + args.unshift(targetClass); + return extended.apply(this, args); + }, this); + } + if (onClassMixedIn) { + onClassMixedIn.apply(this, arguments); + } + }; + } + }}; +}); +Ext.util = Ext.util || {}; +Ext.util.DelayedTask = function(fn, scope, args, cancelOnDelay, fireIdleEvent) { + var me = this, delay, call = function() { + var globalEvents = Ext.GlobalEvents; + clearInterval(me.id); + me.id = null; + fn.apply(scope, args || []); + if (fireIdleEvent !== false && globalEvents.hasListeners.idle) { + globalEvents.fireEvent('idle'); + } + }; + cancelOnDelay = typeof cancelOnDelay === 'boolean' ? cancelOnDelay : true; + me.id = null; + me.delay = function(newDelay, newFn, newScope, newArgs) { + if (cancelOnDelay) { + me.cancel(); + } + if (typeof newDelay === 'number') { + delay = newDelay; + } + fn = newFn || fn; + scope = newScope || scope; + args = newArgs || args; + if (!me.id) { + me.id = Ext.interval(call, delay); + } + }; + me.cancel = function() { + if (me.id) { + clearInterval(me.id); + me.id = null; + } + }; +}; +Ext.define('Ext.util.Event', function() { + var arraySlice = Array.prototype.slice, arrayInsert = Ext.Array.insert, toArray = Ext.Array.toArray, fireArgs = {}; + return {isEvent:true, suspended:0, noOptions:{}, constructor:function(observable, name) { + this.name = name; + this.observable = observable; + this.listeners = []; + }, addListener:function(fn, scope, options, caller, manager) { + var me = this, added = false, observable = me.observable, eventName = me.name, listeners, listener, priority, isNegativePriority, highestNegativePriorityIndex, hasNegativePriorityIndex, length, index, i, listenerPriority; + if (scope && !Ext._namedScopes[scope] && typeof fn === 'string' && typeof scope[fn] !== 'function') { + Ext.raise("No method named '" + fn + "' found on scope object"); + } + if (me.findListener(fn, scope) === -1) { + listener = me.createListener(fn, scope, options, caller, manager); + if (me.firing) { + me.listeners = me.listeners.slice(0); + } + listeners = me.listeners; + index = length = listeners.length; + priority = options && options.priority; + highestNegativePriorityIndex = me._highestNegativePriorityIndex; + hasNegativePriorityIndex = highestNegativePriorityIndex !== undefined; + if (priority) { + isNegativePriority = priority < 0; + if (!isNegativePriority || hasNegativePriorityIndex) { + for (i = isNegativePriority ? highestNegativePriorityIndex : 0; i < length; i++) { + listenerPriority = listeners[i].o ? listeners[i].o.priority || 0 : 0; + if (listenerPriority < priority) { + index = i; + break; + } + } + } else { + me._highestNegativePriorityIndex = index; + } + } else { + if (hasNegativePriorityIndex) { + index = highestNegativePriorityIndex; + } + } + if (!isNegativePriority && index <= highestNegativePriorityIndex) { + me._highestNegativePriorityIndex++; + } + if (index === length) { + listeners[length] = listener; + } else { + arrayInsert(listeners, index, [listener]); + } + if (observable.isElement) { + observable._getPublisher(eventName).subscribe(observable, eventName, options.delegated !== false, options.capture); + } + added = true; + } + return added; + }, createListener:function(fn, scope, o, caller, manager) { + var me = this, namedScope = Ext._namedScopes[scope], listener = {fn:fn, scope:scope, ev:me, caller:caller, manager:manager, namedScope:namedScope, defaultScope:namedScope ? scope || me.observable : undefined, lateBound:typeof fn === 'string'}, handler = fn, wrapped = false, type; + if (o) { + listener.o = o; + if (o.single) { + handler = me.createSingle(handler, listener, o, scope); + wrapped = true; + } + if (o.target) { + handler = me.createTargeted(handler, listener, o, scope, wrapped); + wrapped = true; + } + if (o.delay) { + handler = me.createDelayed(handler, listener, o, scope, wrapped); + wrapped = true; + } + if (o.buffer) { + handler = me.createBuffered(handler, listener, o, scope, wrapped); + wrapped = true; + } + if (me.observable.isElement) { + type = o.type; + if (type) { + listener.type = type; + } + } + } + listener.fireFn = handler; + listener.wrapped = wrapped; + return listener; + }, findListener:function(fn, scope) { + var listeners = this.listeners, i = listeners.length, listener; + while (i--) { + listener = listeners[i]; + if (listener) { + if (listener.fn === fn && listener.scope == scope) { + return i; + } + } + } + return -1; + }, removeListener:function(fn, scope, index) { + var me = this, removed = false, observable = me.observable, eventName = me.name, listener, highestNegativePriorityIndex, options, k, manager, managedListeners, managedListener, i; + index = index || me.findListener(fn, scope); + if (index != -1) { + listener = me.listeners[index]; + options = listener.o; + highestNegativePriorityIndex = me._highestNegativePriorityIndex; + if (me.firing) { + me.listeners = me.listeners.slice(0); + } + if (listener.task) { + listener.task.cancel(); + delete listener.task; + } + k = listener.tasks && listener.tasks.length; + if (k) { + while (k--) { + listener.tasks[k].cancel(); + } + delete listener.tasks; + } + me.listeners.splice(index, 1); + manager = listener.manager; + if (manager) { + managedListeners = manager.managedListeners; + if (managedListeners) { + for (i = managedListeners.length; i--;) { + managedListener = managedListeners[i]; + if (managedListener.item === me.observable && managedListener.ename === eventName && managedListener.fn === fn && managedListener.scope === scope) { + managedListeners.splice(i, 1); + } + } + } + } + if (highestNegativePriorityIndex) { + if (index < highestNegativePriorityIndex) { + me._highestNegativePriorityIndex--; + } else { + if (index === highestNegativePriorityIndex && index === me.listeners.length) { + delete me._highestNegativePriorityIndex; + } + } + } + if (observable.isElement) { + observable._getPublisher(eventName).unsubscribe(observable, eventName, options.delegated !== false, options.capture); + } + removed = true; + } + return removed; + }, clearListeners:function() { + var listeners = this.listeners, i = listeners.length, listener; + while (i--) { + listener = listeners[i]; + this.removeListener(listener.fn, listener.scope); + } + }, suspend:function() { + ++this.suspended; + }, resume:function() { + if (this.suspended) { + --this.suspended; + } + }, isSuspended:function() { + return this.suspended > 0; + }, fireDelegated:function(firingObservable, args) { + this.firingObservable = firingObservable; + return this.fire.apply(this, args); + }, fire:function() { + var me = this, listeners = me.listeners, count = listeners.length, observable = me.observable, isElement = observable.isElement, isComponent = observable.isComponent, firingObservable = me.firingObservable, options, delegate, fireInfo, i, args, listener, len, delegateEl, currentTarget, type, chained, firingArgs, e, fireFn, fireScope; + if (!me.suspended && count > 0) { + me.firing = true; + args = arguments.length ? arraySlice.call(arguments, 0) : []; + len = args.length; + if (isElement) { + e = args[0]; + } + for (i = 0; i < count; i++) { + listener = listeners[i]; + options = listener.o; + if (isElement) { + if (currentTarget) { + e.setCurrentTarget(currentTarget); + } + type = listener.type; + if (type) { + chained = e; + e = args[0] = chained.chain({type:type}); + } + Ext.EventObject = e; + } + firingArgs = args; + if (options) { + delegate = options.delegate; + if (delegate) { + if (isElement) { + delegateEl = e.getTarget('#' + e.currentTarget.id + ' ' + delegate); + if (delegateEl) { + args[1] = delegateEl; + currentTarget = e.currentTarget; + e.setCurrentTarget(delegateEl); + } else { + continue; + } + } else { + if (isComponent && !firingObservable.is('#' + observable.id + ' ' + options.delegate)) { + continue; + } + } + } + if (isElement) { + if (options.preventDefault) { + e.preventDefault(); + } + if (options.stopPropagation) { + e.stopPropagation(); + } + if (options.stopEvent) { + e.stopEvent(); + } + } + args[len] = options; + if (options.args) { + firingArgs = options.args.concat(args); + } + } + fireInfo = me.getFireInfo(listener); + fireFn = fireInfo.fn; + fireScope = fireInfo.scope; + fireInfo.fn = fireInfo.scope = null; + if (fireFn.apply(fireScope, firingArgs) === false) { + Ext.EventObject = null; + return me.firing = false; + } + if (chained) { + e = args[0] = chained; + chained = null; + } + Ext.EventObject = null; + } + } + me.firing = false; + return true; + }, getFireInfo:function(listener, fromWrapped) { + var observable = this.observable, fireFn = listener.fireFn, scope = listener.scope, namedScope = listener.namedScope, fn; + if (!fromWrapped && listener.wrapped) { + fireArgs.fn = fireFn; + return fireArgs; + } + fn = fromWrapped ? listener.fn : fireFn; + var name = fn; + if (listener.lateBound) { + if (!scope || namedScope) { + scope = (listener.caller || observable).resolveListenerScope(listener.defaultScope); + } + if (!scope) { + Ext.raise('Unable to dynamically resolve scope for "' + listener.ev.name + '" listener on ' + this.observable.id); + } + if (!Ext.isFunction(scope[fn])) { + Ext.raise('No method named "' + fn + '" on ' + (scope.$className || 'scope object.')); + } + fn = scope[fn]; + } else { + if (namedScope && namedScope.isController) { + scope = (listener.caller || observable).resolveListenerScope(listener.defaultScope); + if (!scope) { + Ext.raise('Unable to dynamically resolve scope for "' + listener.ev.name + '" listener on ' + this.observable.id); + } + } else { + if (!scope || namedScope) { + scope = observable; + } + } + } + fireArgs.fn = fn; + fireArgs.scope = scope; + if (!fn) { + Ext.raise('Unable to dynamically resolve method "' + name + '" on ' + this.observable.$className); + } + return fireArgs; + }, createTargeted:function(handler, listener, o, scope, wrapped) { + return function() { + if (o.target === arguments[0]) { + var fireInfo; + if (!wrapped) { + fireInfo = listener.ev.getFireInfo(listener, true); + handler = fireInfo.fn; + scope = fireInfo.scope; + fireInfo.fn = fireInfo.scope = null; + } + return handler.apply(scope, arguments); + } + }; + }, createBuffered:function(handler, listener, o, scope, wrapped) { + listener.task = new Ext.util.DelayedTask; + return function() { + var fireInfo; + if (!wrapped) { + fireInfo = listener.ev.getFireInfo(listener, true); + handler = fireInfo.fn; + scope = fireInfo.scope; + fireInfo.fn = fireInfo.scope = null; + } + listener.task.delay(o.buffer, handler, scope, toArray(arguments)); + }; + }, createDelayed:function(handler, listener, o, scope, wrapped) { + return function() { + var task = new Ext.util.DelayedTask, fireInfo; + if (!wrapped) { + fireInfo = listener.ev.getFireInfo(listener, true); + handler = fireInfo.fn; + scope = fireInfo.scope; + fireInfo.fn = fireInfo.scope = null; + } + if (!listener.tasks) { + listener.tasks = []; + } + listener.tasks.push(task); + task.delay(o.delay || 10, handler, scope, toArray(arguments)); + }; + }, createSingle:function(handler, listener, o, scope, wrapped) { + return function() { + var event = listener.ev, fireInfo; + if (event.removeListener(listener.fn, scope) && event.observable) { + event.observable.hasListeners[event.name]--; + } + if (!wrapped) { + fireInfo = event.getFireInfo(listener, true); + handler = fireInfo.fn; + scope = fireInfo.scope; + fireInfo.fn = fireInfo.scope = null; + } + return handler.apply(scope, arguments); + }; + }}; +}); +Ext.define('Ext.mixin.Identifiable', {statics:{uniqueIds:{}}, isIdentifiable:true, mixinId:'identifiable', idCleanRegex:/\.|[^\w\-]/g, defaultIdPrefix:'ext-', defaultIdSeparator:'-', getOptimizedId:function() { + return this.id; +}, getUniqueId:function() { + var id = this.id, prototype, separator, xtype, uniqueIds, prefix; + if (!(id || id === 0)) { + prototype = this.self.prototype; + separator = this.defaultIdSeparator; + uniqueIds = Ext.mixin.Identifiable.uniqueIds; + if (!prototype.hasOwnProperty('identifiablePrefix')) { + xtype = this.xtype; + if (xtype) { + prefix = this.defaultIdPrefix + xtype.replace(this.idCleanRegex, separator) + separator; + } else { + if (!(prefix = prototype.$className)) { + prefix = this.defaultIdPrefix + 'anonymous' + separator; + } else { + prefix = prefix.replace(this.idCleanRegex, separator).toLowerCase() + separator; + } + } + prototype.identifiablePrefix = prefix; + } + prefix = this.identifiablePrefix; + if (!uniqueIds.hasOwnProperty(prefix)) { + uniqueIds[prefix] = 0; + } + id = this.id = this.id = prefix + ++uniqueIds[prefix]; + } + this.getUniqueId = this.getOptimizedId; + return id; +}, setId:function(id) { + this.id = this.id = id; +}, getId:function() { + var id = this.id; + if (!id) { + id = this.getUniqueId(); + } + this.getId = this.getOptimizedId; + return id; +}}); +Ext.define('Ext.mixin.Observable', function(Observable) { + var emptyFn = Ext.emptyFn, emptyArray = [], arrayProto = Array.prototype, arraySlice = arrayProto.slice, ListenerRemover = function(observable) { + if (observable instanceof ListenerRemover) { + return observable; + } + this.observable = observable; + if (arguments[1].isObservable) { + this.managedListeners = true; + } + this.args = arraySlice.call(arguments, 1); + }; + ListenerRemover.prototype.destroy = function() { + this.destroy = Ext.emptyFn; + var observable = this.observable; + observable[this.managedListeners ? 'mun' : 'un'].apply(observable, this.args); + }; + return {extend:Ext.Mixin, mixinConfig:{id:'observable', after:{destroy:'clearListeners'}}, mixins:[Ext.mixin.Identifiable], statics:{releaseCapture:function(o) { + o.fireEventArgs = this.prototype.fireEventArgs; + }, capture:function(o, fn, scope) { + var newFn = function(eventName, args) { + return fn.apply(scope, [eventName].concat(args)); + }; + this.captureArgs(o, newFn, scope); + }, captureArgs:function(o, fn, scope) { + o.fireEventArgs = Ext.Function.createInterceptor(o.fireEventArgs, fn, scope); + }, observe:function(cls, listeners) { + if (cls) { + if (!cls.isObservable) { + Ext.applyIf(cls, new this); + this.captureArgs(cls.prototype, cls.fireEventArgs, cls); + } + if (Ext.isObject(listeners)) { + cls.on(listeners); + } + } + return cls; + }, prepareClass:function(T, mixin, data) { + var listeners = T.listeners = [], target = data || T.prototype, targetListeners = target.listeners, superListeners = mixin ? mixin.listeners : T.superclass.self.listeners, name, scope, namedScope; + if (superListeners) { + listeners.push(superListeners); + } + if (targetListeners) { + scope = targetListeners.scope; + if (!scope) { + targetListeners.scope = 'self'; + } else { + namedScope = Ext._namedScopes[scope]; + if (namedScope && namedScope.isController) { + targetListeners.scope = 'self.controller'; + } + } + listeners.push(targetListeners); + target.listeners = null; + } + if (!T.HasListeners) { + var HasListeners = function() { + }, SuperHL = T.superclass.HasListeners || mixin && mixin.HasListeners || Observable.HasListeners; + T.prototype.HasListeners = T.HasListeners = HasListeners; + HasListeners.prototype = T.hasListeners = new SuperHL; + } + }}, isObservable:true, eventsSuspended:0, constructor:function(config) { + var me = this, self = me.self, declaredListeners, listeners, bubbleEvents, len, i; + if (me.$observableInitialized) { + return; + } + me.$observableInitialized = true; + me.hasListeners = new me.HasListeners; + me.eventedBeforeEventNames = {}; + me.events = me.events || {}; + declaredListeners = self.listeners; + if (declaredListeners && !me._addDeclaredListeners(declaredListeners)) { + self.listeners = null; + } + listeners = config && config.listeners || me.listeners; + if (listeners) { + if (listeners instanceof Array) { + for (i = 0, len = listeners.length; i < len; ++i) { + me.addListener(listeners[i]); + } + } else { + me.addListener(listeners); + } + } + bubbleEvents = config && config.bubbleEvents || me.bubbleEvents; + if (bubbleEvents) { + me.enableBubble(bubbleEvents); + } + if (me.$applyConfigs) { + if (config) { + Ext.apply(me, config); + } + } else { + me.initConfig(config); + } + if (listeners) { + me.listeners = null; + } + }, onClassExtended:function(T, data) { + if (!T.HasListeners) { + Observable.prepareClass(T, T.prototype.$observableMixedIn ? undefined : data); + } + }, $eventOptions:{scope:1, delay:1, buffer:1, onFrame:1, single:1, args:1, destroyable:1, priority:1, order:1}, $orderToPriority:{before:100, current:0, after:-100}, _addDeclaredListeners:function(listeners) { + var me = this; + if (listeners instanceof Array) { + Ext.each(listeners, me._addDeclaredListeners, me); + } else { + me._addedDeclaredListeners = true; + me.addListener(listeners); + } + return me._addedDeclaredListeners; + }, addManagedListener:function(item, ename, fn, scope, options, noDestroy) { + var me = this, managedListeners = me.managedListeners = me.managedListeners || [], config, passedOptions; + if (typeof ename !== 'string') { + passedOptions = arguments.length > 4 ? options : ename; + options = ename; + for (ename in options) { + if (options.hasOwnProperty(ename)) { + config = options[ename]; + if (!item.$eventOptions[ename]) { + me.addManagedListener(item, ename, config.fn || config, config.scope || options.scope || scope, config.fn ? config : passedOptions, true); + } + } + } + if (options && options.destroyable) { + return new ListenerRemover(me, item, options); + } + } else { + if (fn !== emptyFn) { + item.doAddListener(ename, fn, scope, options, null, me, me); + if (!noDestroy && options && options.destroyable) { + return new ListenerRemover(me, item, ename, fn, scope); + } + } + } + }, removeManagedListener:function(item, ename, fn, scope) { + var me = this, options, config, managedListeners, length, i; + if (typeof ename !== 'string') { + options = ename; + for (ename in options) { + if (options.hasOwnProperty(ename)) { + config = options[ename]; + if (!item.$eventOptions[ename]) { + me.removeManagedListener(item, ename, config.fn || config, config.scope || options.scope || scope); + } + } + } + } else { + managedListeners = me.managedListeners ? me.managedListeners.slice() : []; + ename = Ext.canonicalEventName(ename); + for (i = 0, length = managedListeners.length; i < length; i++) { + me.removeManagedListenerItem(false, managedListeners[i], item, ename, fn, scope); + } + } + }, fireEvent:function(eventName) { + return this.fireEventArgs(eventName, arraySlice.call(arguments, 1)); + }, resolveListenerScope:function(defaultScope) { + var namedScope = Ext._namedScopes[defaultScope]; + if (namedScope) { + if (namedScope.isController) { + Ext.raise('scope: "controller" can only be specified on classes that derive from Ext.Component or Ext.Widget'); + } + if (namedScope.isSelf || namedScope.isThis) { + defaultScope = null; + } + } + return defaultScope || this; + }, fireEventArgs:function(eventName, args) { + eventName = Ext.canonicalEventName(eventName); + var me = this, events = me.events, event = events && events[eventName], ret = true; + if (me.hasListeners[eventName]) { + ret = me.doFireEvent(eventName, args || emptyArray, event ? event.bubble : false); + } + return ret; + }, fireAction:function(eventName, args, fn, scope, options, order) { + if (typeof fn === 'string' && !scope) { + fn = this[fn]; + } + options = options ? Ext.Object.chain(options) : {}; + options.single = true; + options.priority = order === 'after' ? -99.5 : 99.5; + this.doAddListener(eventName, fn, scope, options); + this.fireEventArgs(eventName, args); + }, $eventedController:{_paused:1, pause:function() { + ++this._paused; + }, resume:function() { + var me = this, fn = me.fn, scope = me.scope, fnArgs = me.fnArgs, owner = me.owner, args, ret; + if (!--me._paused) { + if (fn) { + args = Ext.Array.slice(fnArgs || me.args); + if (fnArgs === false) { + args.shift(); + } + me.fn = null; + args.push(me); + if (Ext.isFunction(fn)) { + ret = fn.apply(scope, args); + } else { + if (scope && Ext.isString(fn) && Ext.isFunction(scope[fn])) { + ret = scope[fn].apply(scope, args); + } + } + if (ret === false) { + return false; + } + } + if (!me._paused) { + return me.owner.fireEventArgs(me.eventName, me.args); + } + } + }}, fireEventedAction:function(eventName, args, fn, scope, fnArgs) { + var me = this, eventedBeforeEventNames = me.eventedBeforeEventNames, beforeEventName = eventedBeforeEventNames[eventName] || (eventedBeforeEventNames[eventName] = 'before' + eventName), controller = Ext.apply({owner:me, eventName:eventName, fn:fn, scope:scope, fnArgs:fnArgs, args:args}, me.$eventedController), value; + args.push(controller); + value = me.fireEventArgs(beforeEventName, args); + args.pop(); + if (value === false) { + return false; + } + return controller.resume(); + }, doFireEvent:function(eventName, args, bubbles) { + var target = this, queue, event, ret = true; + do { + if (target.eventsSuspended) { + if (queue = target.eventQueue) { + queue.push([eventName, args]); + } + return ret; + } else { + event = target.events && target.events[eventName]; + if (event && event !== true) { + if ((ret = event.fire.apply(event, args)) === false) { + break; + } + } + } + } while (bubbles && (target = target.getBubbleParent())); + return ret; + }, getBubbleParent:function() { + var me = this, parent = me.getBubbleTarget && me.getBubbleTarget(); + if (parent && parent.isObservable) { + return parent; + } + return null; + }, addListener:function(ename, fn, scope, options, order, caller) { + var me = this, namedScopes = Ext._namedScopes, config, namedScope, isClassListener, innerScope, eventOptions; + if (typeof ename !== 'string') { + options = ename; + scope = options.scope; + namedScope = scope && namedScopes[scope]; + isClassListener = namedScope && namedScope.isSelf; + eventOptions = (me.isComponent || me.isWidget) && options.element ? me.$elementEventOptions : me.$eventOptions; + for (ename in options) { + config = options[ename]; + if (!eventOptions[ename]) { + innerScope = config.scope; + if (innerScope && isClassListener) { + namedScope = namedScopes[innerScope]; + if (namedScope && namedScope.isController) { + innerScope = 'self.controller'; + } + } + me.doAddListener(ename, config.fn || config, innerScope || scope, config.fn ? config : options, order, caller); + } + } + if (options && options.destroyable) { + return new ListenerRemover(me, options); + } + } else { + me.doAddListener(ename, fn, scope, options, order, caller); + if (options && options.destroyable) { + return new ListenerRemover(me, ename, fn, scope, options); + } + } + return me; + }, removeListener:function(ename, fn, scope, eventOptions) { + var me = this, config, options; + if (typeof ename !== 'string') { + options = ename; + eventOptions = eventOptions || me.$eventOptions; + for (ename in options) { + if (options.hasOwnProperty(ename)) { + config = options[ename]; + if (!me.$eventOptions[ename]) { + me.doRemoveListener(ename, config.fn || config, config.scope || options.scope); + } + } + } + } else { + me.doRemoveListener(ename, fn, scope); + } + return me; + }, onBefore:function(eventName, fn, scope, options) { + return this.addListener(eventName, fn, scope, options, 'before'); + }, onAfter:function(eventName, fn, scope, options) { + return this.addListener(eventName, fn, scope, options, 'after'); + }, unBefore:function(eventName, fn, scope, options) { + return this.removeListener(eventName, fn, scope, options, 'before'); + }, unAfter:function(eventName, fn, scope, options) { + return this.removeListener(eventName, fn, scope, options, 'after'); + }, addBeforeListener:function() { + return this.onBefore.apply(this, arguments); + }, addAfterListener:function() { + return this.onAfter.apply(this, arguments); + }, removeBeforeListener:function() { + return this.unBefore.apply(this, arguments); + }, removeAfterListener:function() { + return this.unAfter.apply(this, arguments); + }, clearListeners:function() { + var me = this, events = me.events, hasListeners = me.hasListeners, event, key; + if (events) { + for (key in events) { + if (events.hasOwnProperty(key)) { + event = events[key]; + if (event.isEvent) { + delete hasListeners[key]; + event.clearListeners(); + } + } + } + me.events = null; + } + me.clearManagedListeners(); + }, purgeListeners:function() { + if (Ext.global.console) { + Ext.global.console.warn('Observable: purgeListeners has been deprecated. Please use clearListeners.'); + } + return this.clearListeners.apply(this, arguments); + }, clearManagedListeners:function() { + var me = this, managedListeners = me.managedListeners ? me.managedListeners.slice() : [], i = 0, len = managedListeners.length; + for (; i < len; i++) { + me.removeManagedListenerItem(true, managedListeners[i]); + } + me.managedListeners = []; + }, removeManagedListenerItem:function(isClear, managedListener, item, ename, fn, scope) { + if (isClear || managedListener.item === item && managedListener.ename === ename && (!fn || managedListener.fn === fn) && (!scope || managedListener.scope === scope)) { + managedListener.item.doRemoveListener(managedListener.ename, managedListener.fn, managedListener.scope, managedListener.options); + if (!isClear) { + Ext.Array.remove(this.managedListeners, managedListener); + } + } + }, purgeManagedListeners:function() { + if (Ext.global.console) { + Ext.global.console.warn('Observable: purgeManagedListeners has been deprecated. Please use clearManagedListeners.'); + } + return this.clearManagedListeners.apply(this, arguments); + }, hasListener:function(ename) { + ename = Ext.canonicalEventName(ename); + return !!this.hasListeners[ename]; + }, isSuspended:function(event) { + var suspended = this.eventsSuspended > 0, events = this.events; + if (!suspended && event && events) { + event = events[event]; + if (event && event.isEvent) { + return event.isSuspended(); + } + } + return suspended; + }, suspendEvents:function(queueSuspended) { + ++this.eventsSuspended; + if (queueSuspended && !this.eventQueue) { + this.eventQueue = []; + } + }, suspendEvent:function() { + var me = this, events = me.events, len = arguments.length, i, event, ename; + for (i = 0; i < len; i++) { + ename = arguments[i]; + ename = Ext.canonicalEventName(ename); + event = events[ename]; + if (!event || !event.isEvent) { + event = me._initEvent(ename); + } + event.suspend(); + } + }, resumeEvent:function() { + var events = this.events || 0, len = events && arguments.length, i, event; + for (i = 0; i < len; i++) { + event = events[arguments[i]]; + if (event && event.resume) { + event.resume(); + } + } + }, resumeEvents:function(discardQueue) { + var me = this, queued = me.eventQueue, qLen, q; + if (me.eventsSuspended && !--me.eventsSuspended) { + delete me.eventQueue; + if (!discardQueue && queued) { + qLen = queued.length; + for (q = 0; q < qLen; q++) { + me.fireEventArgs.apply(me, queued[q]); + } + } + } + }, relayEvents:function(origin, events, prefix) { + var me = this, len = events.length, i = 0, oldName, newName, relayers = {}; + if (Ext.isObject(events)) { + for (i in events) { + newName = events[i]; + relayers[i] = me.createRelayer(newName); + } + } else { + for (; i < len; i++) { + oldName = events[i]; + relayers[oldName] = me.createRelayer(prefix ? prefix + oldName : oldName); + } + } + me.mon(origin, relayers, null, null, undefined); + return new ListenerRemover(me, origin, relayers); + }, createRelayer:function(newName, beginEnd) { + var me = this; + return function() { + return me.fireEventArgs.call(me, newName, beginEnd ? arraySlice.apply(arguments, beginEnd) : arguments); + }; + }, enableBubble:function(eventNames) { + if (eventNames) { + var me = this, names = typeof eventNames == 'string' ? arguments : eventNames, events = me.events, length = events && names.length, ename, event, i; + for (i = 0; i < length; ++i) { + ename = names[i]; + ename = Ext.canonicalEventName(ename); + event = events[ename]; + if (!event || !event.isEvent) { + event = me._initEvent(ename); + } + me.hasListeners._incr_(ename); + event.bubble = true; + } + } + }, destroy:function() { + this.clearListeners(); + this.callParent(); + }, privates:{doAddListener:function(ename, fn, scope, options, order, caller, manager) { + var me = this, event, managedListeners, priority; + order = order || options && options.order; + if (order) { + priority = options && options.priority; + if (!priority) { + options = options ? Ext.Object.chain(options) : {}; + options.priority = me.$orderToPriority[order]; + } + } + ename = Ext.canonicalEventName(ename); + if (!fn) { + Ext.raise("Cannot add '" + ename + "' listener to " + me.$className + ' instance. No function specified.'); + } + if (!manager && (scope && scope.isObservable && scope !== me)) { + manager = scope; + } + if (manager) { + managedListeners = manager.managedListeners = manager.managedListeners || []; + managedListeners.push({item:me, ename:ename, fn:fn, scope:scope, options:options}); + } + event = (me.events || (me.events = {}))[ename]; + if (!event || !event.isEvent) { + event = me._initEvent(ename); + } + if (fn !== emptyFn) { + if (event.addListener(fn, scope, options, caller, manager)) { + me.hasListeners._incr_(ename); + } + } + }, doRemoveListener:function(ename, fn, scope) { + var me = this, events = me.events, event; + ename = Ext.canonicalEventName(ename); + event = events && events[ename]; + if (!fn) { + Ext.raise("Cannot remove '" + ename + "' listener to " + me.$className + ' instance. No function specified.'); + } + if (event && event.isEvent) { + if (event.removeListener(fn, scope)) { + me.hasListeners._decr_(ename); + } + } + }, _initEvent:function(eventName) { + return this.events[eventName] = new Ext.util.Event(this, eventName); + }}, deprecated:{'5.0':{methods:{addEvents:null}}}}; +}, function() { + var Observable = this, proto = Observable.prototype, HasListeners = function() { + }, prepareMixin = function(T) { + if (!T.HasListeners) { + var proto = T.prototype; + proto.$observableMixedIn = 1; + Observable.prepareClass(T, this); + T.onExtended(function(U, data) { + Ext.classSystemMonitor && Ext.classSystemMonitor('extend mixin', arguments); + Observable.prepareClass(U, null, data); + }); + if (proto.onClassMixedIn) { + Ext.override(T, {onClassMixedIn:function(U) { + prepareMixin.call(this, U); + this.callParent(arguments); + }}); + } else { + proto.onClassMixedIn = function(U) { + prepareMixin.call(this, U); + }; + } + } + superOnClassMixedIn.call(this, T); + }, superOnClassMixedIn = proto.onClassMixedIn; + HasListeners.prototype = {_decr_:function(ev, count) { + if (count == null) { + count = 1; + } + if (!(this[ev] -= count)) { + delete this[ev]; + } + }, _incr_:function(ev) { + if (this.hasOwnProperty(ev)) { + ++this[ev]; + } else { + this[ev] = 1; + } + }}; + proto.HasListeners = Observable.HasListeners = HasListeners; + Observable.createAlias({on:'addListener', un:'removeListener', mon:'addManagedListener', mun:'removeManagedListener', setListeners:'addListener'}); + Observable.observeClass = Observable.observe; + function getMethodEvent(method) { + var e = (this.methodEvents = this.methodEvents || {})[method], returnValue, v, cancel, obj = this, makeCall; + if (!e) { + this.methodEvents[method] = e = {}; + e.originalFn = this[method]; + e.methodName = method; + e.before = []; + e.after = []; + makeCall = function(fn, scope, args) { + if ((v = fn.apply(scope || obj, args)) !== undefined) { + if (typeof v == 'object') { + if (v.returnValue !== undefined) { + returnValue = v.returnValue; + } else { + returnValue = v; + } + cancel = !!v.cancel; + } else { + if (v === false) { + cancel = true; + } else { + returnValue = v; + } + } + } + }; + this[method] = function() { + var args = Array.prototype.slice.call(arguments, 0), b, i, len; + returnValue = v = undefined; + cancel = false; + for (i = 0, len = e.before.length; i < len; i++) { + b = e.before[i]; + makeCall(b.fn, b.scope, args); + if (cancel) { + return returnValue; + } + } + if ((v = e.originalFn.apply(obj, args)) !== undefined) { + returnValue = v; + } + for (i = 0, len = e.after.length; i < len; i++) { + b = e.after[i]; + makeCall(b.fn, b.scope, args); + if (cancel) { + return returnValue; + } + } + return returnValue; + }; + } + return e; + } + Ext.apply(proto, {onClassMixedIn:prepareMixin, beforeMethod:function(method, fn, scope) { + getMethodEvent.call(this, method).before.push({fn:fn, scope:scope}); + }, afterMethod:function(method, fn, scope) { + getMethodEvent.call(this, method).after.push({fn:fn, scope:scope}); + }, removeMethodListener:function(method, fn, scope) { + var e = this.getMethodEvent(method), i, len; + for (i = 0, len = e.before.length; i < len; i++) { + if (e.before[i].fn == fn && e.before[i].scope == scope) { + Ext.Array.erase(e.before, i, 1); + return; + } + } + for (i = 0, len = e.after.length; i < len; i++) { + if (e.after[i].fn == fn && e.after[i].scope == scope) { + Ext.Array.erase(e.after, i, 1); + return; + } + } + }, toggleEventLogging:function(toggle) { + Ext.util.Observable[toggle ? 'capture' : 'releaseCapture'](this, function(en) { + if (Ext.isDefined(Ext.global.console)) { + Ext.global.console.log(en, arguments); + } + }); + }}); +}); +Ext.define('Ext.util.HashMap', {mixins:[Ext.mixin.Observable], generation:0, config:{keyFn:null}, constructor:function(config) { + var me = this, fn; + me.mixins.observable.constructor.call(me, config); + me.clear(true); + fn = me.getKeyFn(); + if (fn) { + me.getKey = fn; + } +}, getCount:function() { + return this.length; +}, getData:function(key, value) { + if (value === undefined) { + value = key; + key = this.getKey(value); + } + return [key, value]; +}, getKey:function(o) { + return o.id; +}, add:function(key, value) { + var me = this; + if (arguments.length === 1) { + value = key; + key = me.getKey(value); + } + if (me.containsKey(key)) { + return me.replace(key, value); + } + me.map[key] = value; + ++me.length; + me.generation++; + if (me.hasListeners.add) { + me.fireEvent('add', me, key, value); + } + return value; +}, replace:function(key, value) { + var me = this, map = me.map, old; + if (arguments.length === 1) { + value = key; + key = me.getKey(value); + } + if (!me.containsKey(key)) { + me.add(key, value); + } + old = map[key]; + map[key] = value; + me.generation++; + if (me.hasListeners.replace) { + me.fireEvent('replace', me, key, value, old); + } + return value; +}, remove:function(o) { + var key = this.findKey(o); + if (key !== undefined) { + return this.removeAtKey(key); + } + return false; +}, removeAtKey:function(key) { + var me = this, value; + if (me.containsKey(key)) { + value = me.map[key]; + delete me.map[key]; + --me.length; + me.generation++; + if (me.hasListeners.remove) { + me.fireEvent('remove', me, key, value); + } + return true; + } + return false; +}, get:function(key) { + var map = this.map; + return map.hasOwnProperty(key) ? map[key] : undefined; +}, clear:function(initial) { + var me = this; + if (initial || me.generation) { + me.map = {}; + me.length = 0; + me.generation = initial ? 0 : me.generation + 1; + } + if (initial !== true && me.hasListeners.clear) { + me.fireEvent('clear', me); + } + return me; +}, containsKey:function(key) { + var map = this.map; + return map.hasOwnProperty(key) && map[key] !== undefined; +}, contains:function(value) { + return this.containsKey(this.findKey(value)); +}, getKeys:function() { + return this.getArray(true); +}, getValues:function() { + return this.getArray(false); +}, getArray:function(isKey) { + var arr = [], key, map = this.map; + for (key in map) { + if (map.hasOwnProperty(key)) { + arr.push(isKey ? key : map[key]); + } + } + return arr; +}, each:function(fn, scope) { + var items = Ext.apply({}, this.map), key, length = this.length; + scope = scope || this; + for (key in items) { + if (items.hasOwnProperty(key)) { + if (fn.call(scope, key, items[key], length) === false) { + break; + } + } + } + return this; +}, clone:function() { + var hash = new this.self(this.initialConfig), map = this.map, key; + hash.suspendEvents(); + for (key in map) { + if (map.hasOwnProperty(key)) { + hash.add(key, map[key]); + } + } + hash.resumeEvents(); + return hash; +}, findKey:function(value) { + var key, map = this.map; + for (key in map) { + if (map.hasOwnProperty(key) && map[key] === value) { + return key; + } + } + return undefined; +}, destroy:function() { + this.callParent(); + this.map = null; +}}, function(HashMap) { + var prototype = HashMap.prototype; + prototype.removeByKey = prototype.removeAtKey; +}); +Ext.define('Ext.promise.Consequence', function(Consequence) { + return {promise:null, deferred:null, onFulfilled:null, onRejected:null, onProgress:null, constructor:function(onFulfilled, onRejected, onProgress) { + var me = this; + me.onFulfilled = onFulfilled; + me.onRejected = onRejected; + me.onProgress = onProgress; + me.deferred = new Ext.promise.Deferred; + me.promise = me.deferred.promise; + }, trigger:function(action, value) { + var me = this, deferred = me.deferred; + switch(action) { + case 'fulfill': + me.propagate(value, me.onFulfilled, deferred, deferred.resolve); + break; + case 'reject': + me.propagate(value, me.onRejected, deferred, deferred.reject); + break; + } + }, update:function(progress) { + if (Ext.isFunction(this.onProgress)) { + progress = this.onProgress(progress); + } + this.deferred.update(progress); + }, propagate:function(value, callback, deferred, deferredMethod) { + if (Ext.isFunction(callback)) { + this.schedule(function() { + try { + deferred.resolve(callback(value)); + } catch (e$6) { + deferred.reject(e$6); + } + }); + } else { + deferredMethod.call(this.deferred, value); + } + }, schedule:function(callback) { + var n = Consequence.queueSize++; + Consequence.queue[n] = callback; + if (!n) { + Ext.asap(Consequence.dispatch); + } + }, statics:{queue:new Array(10000), queueSize:0, dispatch:function() { + var queue = Consequence.queue, fn, i; + for (i = 0; i < Consequence.queueSize; ++i) { + fn = queue[i]; + queue[i] = null; + fn(); + } + Consequence.queueSize = 0; + }}}; +}); +Ext.define('Ext.promise.Deferred', {promise:null, consequences:[], completed:false, completionAction:null, completionValue:null, constructor:function() { + var me = this; + me.promise = new Ext.promise.Promise(me); + me.consequences = []; + me.completed = false; + me.completionAction = null; + me.completionValue = null; +}, then:function(onFulfilled, onRejected, onProgress) { + var me = this, consequence = new Ext.promise.Consequence(onFulfilled, onRejected, onProgress); + if (me.completed) { + consequence.trigger(me.completionAction, me.completionValue); + } else { + me.consequences.push(consequence); + } + return consequence.promise; +}, resolve:function(value) { + var me = this, isHandled, thenFn; + if (me.completed) { + return; + } + try { + if (value === me.promise) { + throw new TypeError('A Promise cannot be resolved with itself.'); + } + if ((Ext.isObject(value) || Ext.isFunction(value)) && Ext.isFunction(thenFn = value.then)) { + isHandled = false; + try { + thenFn.call(value, function(value) { + if (!isHandled) { + isHandled = true; + me.resolve(value); + } + }, function(error) { + if (!isHandled) { + isHandled = true; + me.reject(error); + } + }); + } catch (e$7) { + if (!isHandled) { + me.reject(e$7); + } + } + } else { + me.complete('fulfill', value); + } + } catch (e$8) { + me.reject(e$8); + } +}, reject:function(reason) { + if (this.completed) { + return; + } + this.complete('reject', reason); +}, update:function(progress) { + var consequences = this.consequences, consequence, i, len; + if (this.completed) { + return; + } + for (i = 0, len = consequences.length; i < len; i++) { + consequence = consequences[i]; + consequence.update(progress); + } +}, complete:function(action, value) { + var me = this, consequences = me.consequences, consequence, i, len; + me.completionAction = action; + me.completionValue = value; + me.completed = true; + for (i = 0, len = consequences.length; i < len; i++) { + consequence = consequences[i]; + consequence.trigger(me.completionAction, me.completionValue); + } + me.consequences = null; +}}); +Ext.define('Ext.promise.Promise', function(ExtPromise) { + var Deferred; + return {statics:{CancellationError:Ext.global.CancellationError || Error, _ready:function() { + Deferred = Ext.promise.Deferred; + }, all:function(promisesOrValues) { + if (!(Ext.isArray(promisesOrValues) || ExtPromise.is(promisesOrValues))) { + Ext.raise('Invalid parameter: expected an Array or Promise of an Array.'); + } + return ExtPromise.when(promisesOrValues).then(function(promisesOrValues) { + var deferred = new Deferred, remainingToResolve = promisesOrValues.length, results = new Array(remainingToResolve), index, promiseOrValue, resolve, i, len; + if (!remainingToResolve) { + deferred.resolve(results); + } else { + resolve = function(item, index) { + return ExtPromise.when(item).then(function(value) { + results[index] = value; + if (!--remainingToResolve) { + deferred.resolve(results); + } + return value; + }, function(reason) { + return deferred.reject(reason); + }); + }; + for (index = i = 0, len = promisesOrValues.length; i < len; index = ++i) { + promiseOrValue = promisesOrValues[index]; + if (index in promisesOrValues) { + resolve(promiseOrValue, index); + } else { + remainingToResolve--; + } + } + } + return deferred.promise; + }); + }, is:function(value) { + return (Ext.isObject(value) || Ext.isFunction(value)) && Ext.isFunction(value.then); + }, rethrowError:function(error) { + Ext.asap(function() { + throw error; + }); + }, when:function(value) { + var deferred = new Ext.promise.Deferred; + deferred.resolve(value); + return deferred.promise; + }}, owner:null, constructor:function(owner) { + this.owner = owner; + }, then:function(onFulfilled, onRejected, onProgress, scope) { + var ref; + if (arguments.length === 1 && Ext.isObject(arguments[0])) { + ref = arguments[0]; + onFulfilled = ref.success; + onRejected = ref.failure; + onProgress = ref.progress; + scope = ref.scope; + } + if (scope) { + if (onFulfilled) { + onFulfilled = Ext.Function.bind(onFulfilled, scope); + } + if (onRejected) { + onRejected = Ext.Function.bind(onRejected, scope); + } + if (onProgress) { + onProgress = Ext.Function.bind(onProgress, scope); + } + } + return this.owner.then(onFulfilled, onRejected, onProgress); + }, otherwise:function(onRejected, scope) { + var ref; + if (arguments.length === 1 && Ext.isObject(arguments[0])) { + ref = arguments[0]; + onRejected = ref.fn; + scope = ref.scope; + } + if (scope != null) { + onRejected = Ext.Function.bind(onRejected, scope); + } + return this.owner.then(null, onRejected); + }, always:function(onCompleted, scope) { + var ref; + if (arguments.length === 1 && Ext.isObject(arguments[0])) { + ref = arguments[0]; + onCompleted = ref.fn; + scope = ref.scope; + } + if (scope != null) { + onCompleted = Ext.Function.bind(onCompleted, scope); + } + return this.owner.then(function(value) { + try { + onCompleted(); + } catch (e$9) { + ExtPromise.rethrowError(e$9); + } + return value; + }, function(reason) { + try { + onCompleted(); + } catch (e$10) { + ExtPromise.rethrowError(e$10); + } + throw reason; + }); + }, done:function() { + this.owner.then(null, ExtPromise.rethrowError); + }, cancel:function(reason) { + if (reason == null) { + reason = null; + } + this.owner.reject(new this.self.CancellationError(reason)); + }, log:function(identifier) { + if (identifier == null) { + identifier = ''; + } + return this._owner.then(function(value) { + Ext.log('' + (identifier || 'Promise') + ' resolved with value: ' + value); + return value; + }, function(reason) { + Ext.log('' + (identifier || 'Promise') + ' rejected with reason: ' + reason); + throw reason; + }); + }}; +}, function(ExtPromise) { + ExtPromise._ready(); +}); +Ext.define('Ext.Promise', function() { + var Polyfiller; + return {statics:{_ready:function() { + Polyfiller = Ext.promise.Promise; + }, all:function() { + return Polyfiller.all.apply(Polyfiller, arguments); + }, race:function() { + Ext.raise('Not implemented'); + }, reject:function(reason) { + var deferred = new Ext.promise.Deferred; + deferred.reject(reason); + return deferred.promise; + }, resolve:function(value) { + var deferred = new Ext.promise.Deferred; + deferred.resolve(value); + return deferred.promise; + }}, constructor:function(action) { + var deferred = new Ext.promise.Deferred; + action(deferred.resolve.bind(deferred), deferred.reject.bind(deferred)); + return deferred.promise; + }}; +}, function(ExtPromise) { + var P = Ext.global.Promise; + if (P && P.resolve) { + Ext.Promise = P; + } else { + ExtPromise._ready(); + } +}); +Ext.define('Ext.Deferred', function(Deferred) { + var ExtPromise, when; + return {extend:Ext.promise.Deferred, statics:{_ready:function() { + ExtPromise = Ext.promise.Promise; + when = Ext.Promise.resolve; + }, all:function() { + return ExtPromise.all.apply(ExtPromise, arguments); + }, any:function(promisesOrValues) { + if (!(Ext.isArray(promisesOrValues) || ExtPromise.is(promisesOrValues))) { + Ext.raise('Invalid parameter: expected an Array or Promise of an Array.'); + } + return Deferred.some(promisesOrValues, 1).then(function(array) { + return array[0]; + }, function(error) { + if (error instanceof Error && error.message === 'Too few Promises were resolved.') { + Ext.raise('No Promises were resolved.'); + } else { + throw error; + } + }); + }, delay:function(promiseOrValue, milliseconds) { + var deferred; + if (arguments.length === 1) { + milliseconds = promiseOrValue; + promiseOrValue = undefined; + } + milliseconds = Math.max(milliseconds, 0); + deferred = new Deferred; + setTimeout(function() { + deferred.resolve(promiseOrValue); + }, milliseconds); + return deferred.promise; + }, map:function(promisesOrValues, mapFn) { + if (!(Ext.isArray(promisesOrValues) || ExtPromise.is(promisesOrValues))) { + Ext.raise('Invalid parameter: expected an Array or Promise of an Array.'); + } + if (!Ext.isFunction(mapFn)) { + Ext.raise('Invalid parameter: expected a function.'); + } + return Deferred.resolved(promisesOrValues).then(function(promisesOrValues) { + var deferred, index, promiseOrValue, remainingToResolve, resolve, results, i, len; + remainingToResolve = promisesOrValues.length; + results = new Array(promisesOrValues.length); + deferred = new Deferred; + if (!remainingToResolve) { + deferred.resolve(results); + } else { + resolve = function(item, index) { + return Deferred.resolved(item).then(function(value) { + return mapFn(value, index, results); + }).then(function(value) { + results[index] = value; + if (!--remainingToResolve) { + deferred.resolve(results); + } + return value; + }, function(reason) { + return deferred.reject(reason); + }); + }; + for (index = i = 0, len = promisesOrValues.length; i < len; index = ++i) { + promiseOrValue = promisesOrValues[index]; + if (index in promisesOrValues) { + resolve(promiseOrValue, index); + } else { + remainingToResolve--; + } + } + } + return deferred.promise; + }); + }, memoize:function(fn, scope, hashFn) { + var memoizedFn = Ext.Function.memoize(fn, scope, hashFn); + return function() { + return Deferred.all(Ext.Array.slice(arguments)).then(function(values) { + return memoizedFn.apply(scope, values); + }); + }; + }, parallel:function(fns, scope) { + if (scope == null) { + scope = null; + } + var args = Ext.Array.slice(arguments, 2); + return Deferred.map(fns, function(fn) { + if (!Ext.isFunction(fn)) { + throw new Error('Invalid parameter: expected a function.'); + } + return fn.apply(scope, args); + }); + }, pipeline:function(fns, initialValue, scope) { + if (scope == null) { + scope = null; + } + return Deferred.reduce(fns, function(value, fn) { + if (!Ext.isFunction(fn)) { + throw new Error('Invalid parameter: expected a function.'); + } + return fn.call(scope, value); + }, initialValue); + }, reduce:function(values, reduceFn, initialValue) { + if (!(Ext.isArray(values) || ExtPromise.is(values))) { + Ext.raise('Invalid parameter: expected an Array or Promise of an Array.'); + } + if (!Ext.isFunction(reduceFn)) { + Ext.raise('Invalid parameter: expected a function.'); + } + var initialValueSpecified = arguments.length === 3; + return Deferred.resolved(values).then(function(promisesOrValues) { + var reduceArguments = [promisesOrValues, function(previousValueOrPromise, currentValueOrPromise, currentIndex) { + return Deferred.resolved(previousValueOrPromise).then(function(previousValue) { + return Deferred.resolved(currentValueOrPromise).then(function(currentValue) { + return reduceFn(previousValue, currentValue, currentIndex, promisesOrValues); + }); + }); + }]; + if (initialValueSpecified) { + reduceArguments.push(initialValue); + } + return Ext.Array.reduce.apply(Ext.Array, reduceArguments); + }); + }, rejected:function(reason) { + var deferred = new Ext.Deferred; + deferred.reject(reason); + return deferred.promise; + }, resolved:function(value) { + var deferred = new Ext.Deferred; + deferred.resolve(value); + return deferred.promise; + }, sequence:function(fns, scope) { + if (scope == null) { + scope = null; + } + var args = Ext.Array.slice(arguments, 2); + return Deferred.reduce(fns, function(results, fn) { + if (!Ext.isFunction(fn)) { + throw new Error('Invalid parameter: expected a function.'); + } + return Deferred.resolved(fn.apply(scope, args)).then(function(result) { + results.push(result); + return results; + }); + }, []); + }, some:function(promisesOrValues, howMany) { + if (!(Ext.isArray(promisesOrValues) || ExtPromise.is(promisesOrValues))) { + Ext.raise('Invalid parameter: expected an Array or Promise of an Array.'); + } + if (!Ext.isNumeric(howMany) || howMany <= 0) { + Ext.raise('Invalid parameter: expected a positive integer.'); + } + return Deferred.resolved(promisesOrValues).then(function(promisesOrValues) { + var deferred, index, onReject, onResolve, promiseOrValue, remainingToReject, remainingToResolve, values, i, len; + values = []; + remainingToResolve = howMany; + remainingToReject = promisesOrValues.length - remainingToResolve + 1; + deferred = new Deferred; + if (promisesOrValues.length < howMany) { + deferred.reject(new Error('Too few Promises were resolved.')); + } else { + onResolve = function(value) { + if (remainingToResolve > 0) { + values.push(value); + } + remainingToResolve--; + if (remainingToResolve === 0) { + deferred.resolve(values); + } + return value; + }; + onReject = function(reason) { + remainingToReject--; + if (remainingToReject === 0) { + deferred.reject(new Error('Too few Promises were resolved.')); + } + return reason; + }; + for (index = i = 0, len = promisesOrValues.length; i < len; index = ++i) { + promiseOrValue = promisesOrValues[index]; + if (index in promisesOrValues) { + Deferred.resolved(promiseOrValue).then(onResolve, onReject); + } + } + } + return deferred.promise; + }); + }, timeout:function(promiseOrValue, milliseconds) { + var deferred = new Deferred, timeoutId; + timeoutId = setTimeout(function() { + if (timeoutId) { + deferred.reject(new Error('Promise timed out.')); + } + }, milliseconds); + Deferred.resolved(promiseOrValue).then(function(value) { + clearTimeout(timeoutId); + timeoutId = null; + deferred.resolve(value); + }, function(reason) { + clearTimeout(timeoutId); + timeoutId = null; + deferred.reject(reason); + }); + return deferred.promise; + }}}; +}, function(Deferred) { + Deferred._ready(); +}); +Ext.Factory = function(type) { + var me = this; + me.aliasPrefix = type + '.'; + me.cache = {}; + me.name = type.replace(me.fixNameRe, me.fixNameFn); + me.type = type; +}; +Ext.Factory.prototype = {defaultProperty:'type', instanceProp:'isInstance', create:function(config, defaultType) { + var me = this, Manager = Ext.ClassManager, cache = me.cache, alias, className, klass, suffix; + if (config) { + if (config[me.instanceProp]) { + return config; + } + if (typeof config === 'string') { + suffix = config; + config = {}; + config[me.defaultProperty] = suffix; + } + className = config.xclass; + suffix = config.type; + } + if (className) { + if (!(klass = Manager.get(className))) { + return Manager.instantiate(className, config); + } + } else { + if (!(suffix = suffix || defaultType || me.defaultType)) { + klass = me.defaultClass; + } + if (!suffix && !klass) { + Ext.raise('No type specified for ' + me.type + '.create'); + } + if (!klass && !(klass = cache[suffix])) { + alias = me.aliasPrefix + suffix; + className = Manager.getNameByAlias(alias); + if (!(klass = className && Manager.get(className))) { + return Manager.instantiateByAlias(alias, config); + } + cache[suffix] = klass; + } + } + return klass.isInstance ? klass : new klass(config); +}, fixNameRe:/\.[a-z]/ig, fixNameFn:function(match) { + return match.substring(1).toUpperCase(); +}, clearCache:function() { + this.cache = {}; +}}; +Ext.Factory.define = function(type, config) { + var Factory = Ext.Factory, defaultClass, factory, fn; + if (type.constructor === Object) { + Ext.Object.each(type, Factory.define, Factory); + } else { + factory = new Ext.Factory(type); + if (config) { + if (config.constructor === Object) { + Ext.apply(factory, config); + if (typeof(defaultClass = factory.xclass) === 'string') { + factory.defaultClass = Ext.ClassManager.get(defaultClass); + } + } else { + factory.defaultType = config; + } + } + Factory[factory.name] = fn = factory.create.bind(factory); + fn.instance = factory; + } + return fn; +}; +Ext.define('Ext.mixin.Factoryable', {mixinId:'factoryable', onClassMixedIn:function(targetClass) { + var proto = targetClass.prototype, factoryConfig = proto.factoryConfig, alias = proto.alias, config = {}, dot, createFn; + alias = alias && alias.length && alias[0]; + if (alias && (dot = alias.lastIndexOf('.')) > 0) { + config.type = alias.substring(0, dot); + config.defaultType = alias.substring(dot + 1); + } + if (factoryConfig) { + delete proto.factoryConfig; + Ext.apply(config, factoryConfig); + } + createFn = Ext.Factory.define(config.type, config); + if (targetClass.create === Ext.Base.create) { + targetClass.create = createFn; + } +}}); +Ext.define('Ext.data.request.Base', {mixins:[Ext.mixin.Factoryable], factoryConfig:{type:'request', defaultType:'ajax'}, result:null, success:null, timer:null, constructor:function(config) { + var me = this; + Ext.apply(me, config.options || {}, config.ownerConfig); + me.id = ++Ext.data.Connection.requestId; + me.owner = config.owner; + me.options = config.options; + me.requestOptions = config.requestOptions; +}, start:function() { + var me = this, timeout = me.getTimeout(); + if (timeout && me.async) { + me.timer = Ext.defer(me.onTimeout, timeout, me); + } +}, abort:function() { + var me = this; + me.clearTimer(); + if (!me.timedout) { + me.aborted = true; + } + me.abort = Ext.emptyFn; +}, createDeferred:function() { + return this.deferred = new Ext.Deferred; +}, getDeferred:function() { + return this.deferred || this.createDeferred(); +}, getPromise:function() { + return this.getDeferred().promise; +}, then:function() { + var promise = this.getPromise(); + return promise.then.apply(promise, arguments); +}, onComplete:function() { + var me = this, deferred = me.deferred, result = me.result; + me.clearTimer(); + if (deferred) { + if (me.success) { + deferred.resolve(result); + } else { + deferred.reject(result); + } + } +}, onTimeout:function() { + var me = this; + me.timedout = true; + me.timer = null; + me.abort(true); +}, getTimeout:function() { + return this.timeout; +}, clearTimer:function() { + var timer = this.timer; + if (timer) { + clearTimeout(timer); + this.timer = null; + } +}, destroy:function() { + var me = this; + me.abort(); + me.owner = me.options = me.requestOptions = me.result = null; + me.callParent(); +}, privates:{createException:function() { + var me = this, result; + result = {request:me, requestId:me.id, status:me.aborted ? -1 : 0, statusText:me.aborted ? 'transaction aborted' : 'communication failure', getResponseHeader:me._getHeader, getAllResponseHeaders:me._getHeaders}; + if (me.aborted) { + result.aborted = true; + } + if (me.timedout) { + result.timedout = true; + } + return result; +}, _getHeader:function(name) { + var headers = this.headers; + return headers && headers[name.toLowerCase()]; +}, _getHeaders:function() { + return this.headers; +}}}); +Ext.define('Ext.data.flash.BinaryXhr', {statics:{flashPluginActivated:function() { + Ext.data.flash.BinaryXhr.flashPluginActive = true; + Ext.data.flash.BinaryXhr.flashPlugin = document.getElementById('ext-flash-polyfill'); + Ext.GlobalEvents.fireEvent('flashready'); +}, flashPluginActive:false, flashPluginInjected:false, connectionIndex:1, liveConnections:{}, flashPlugin:null, onFlashStateChange:function(javascriptId, state, data) { + var connection; + connection = this.liveConnections[Number(javascriptId)]; + if (connection) { + connection.onFlashStateChange(state, data); + } else { + Ext.warn.log('onFlashStateChange for unknown connection ID: ' + javascriptId); + } +}, registerConnection:function(conn) { + var i = this.connectionIndex; + this.conectionIndex = this.connectionIndex + 1; + this.liveConnections[i] = conn; + return i; +}, injectFlashPlugin:function() { + var me = this, flashLoaderPath, flashObjectPath; + me.flashPolyfillEl = Ext.getBody().appendChild({id:'ext-flash-polyfill', cn:[{tag:'p', html:'To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed.'}, {tag:'a', href:'http://www.adobe.com/go/getflashplayer', cn:[{tag:'img', src:window.location.protocol + '//www.adobe.com/images/shared/download_buttons/get_flash_player.gif', alt:'Get Adobe Flash player'}]}]}); + flashLoaderPath = [Ext.Loader.getPath('Ext.data.Connection'), '../../../plugins/flash/swfobject.js'].join('/'); + flashObjectPath = '/plugins/flash/FlashPlugin.swf'; + flashObjectPath = [Ext.Loader.getPath('Ext.data.Connection'), '../../plugins/flash/FlashPlugin.swf'].join('/'); + if (Ext.flashPluginPath) { + flashObjectPath = Ext.flashPluginPath; + } + Ext.Loader.loadScript({url:flashLoaderPath, onLoad:function() { + var swfVersionStr = '11.4.0'; + var xiSwfUrlStr = 'playerProductInstall.swf'; + var flashvars = {}; + var params = {}; + params.quality = 'high'; + params.bgcolor = '#ffffff'; + params.allowscriptaccess = 'sameDomain'; + params.allowfullscreen = 'true'; + var attributes = {}; + attributes.id = 'ext-flash-polyfill'; + attributes.name = 'polyfill'; + attributes.align = 'middle'; + swfobject.embedSWF(flashObjectPath, 'ext-flash-polyfill', '0', '0', swfVersionStr, xiSwfUrlStr, flashvars, params, attributes); + }, onError:function() { + Ext.raise('Could not load flash-loader file swfobject.js from ' + flashLoader); + }, scope:me}); + Ext.data.flash.BinaryXhr.flashPluginInjected = true; +}}, readyState:0, status:0, statusText:'', responseBytes:null, javascriptId:null, constructor:function(config) { + if (!Ext.data.flash.BinaryXhr.flashPluginInjected) { + Ext.data.flash.BinaryXhr.injectFlashPlugin(); + } + var me = this; + Ext.apply(me, config); + me.requestHeaders = {}; +}, abort:function() { + var me = this; + if (me.readyState == 4) { + Ext.warn.log("Aborting a connection that's completed its transfer: " + this.url); + return; + } + me.aborted = true; + if (!Ext.data.flash.BinaryXhr.flashPluginActive) { + Ext.GlobalEvents.removeListener('flashready', me.onFlashReady, me); + return; + } + Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(me.javascriptId); + delete Ext.data.flash.BinaryXhr.liveConnections[me.javascriptId]; +}, getAllResponseHeaders:function() { + var headers = []; + Ext.Object.each(this.responseHeaders, function(name, value) { + headers.push(name + ': ' + value); + }); + return headers.join('\r\n'); +}, getResponseHeader:function(header) { + var headers = this.responseHeaders; + return headers && headers[header] || null; +}, open:function(method, url, async, user, password) { + var me = this; + me.method = method; + me.url = url; + me.async = async !== false; + me.user = user; + me.password = password; + if (!me.async) { + Ext.raise('Binary posts are only supported in async mode: ' + url); + } + if (me.method != 'POST') { + Ext.log.warn('Binary data can only be sent as a POST request: ' + url); + } +}, overrideMimeType:function(mimeType) { + this.mimeType = mimeType; +}, send:function(body) { + var me = this; + me.body = body; + if (!Ext.data.flash.BinaryXhr.flashPluginActive) { + Ext.GlobalEvents.addListener('flashready', me.onFlashReady, me); + } else { + this.onFlashReady(); + } +}, onFlashReady:function() { + var me = this, req, status; + me.javascriptId = Ext.data.flash.BinaryXhr.registerConnection(me); + req = {method:me.method, url:me.url, user:me.user, password:me.password, mimeType:me.mimeType, requestHeaders:me.requestHeaders, body:me.body, javascriptId:me.javascriptId}; + status = Ext.data.flash.BinaryXhr.flashPlugin.postBinary(req); +}, setReadyState:function(state) { + var me = this; + if (me.readyState != state) { + me.readyState = state; + me.onreadystatechange(); + } +}, setRequestHeader:function(header, value) { + this.requestHeaders[header] = value; +}, onreadystatechange:Ext.emptyFn, parseData:function(data) { + var me = this; + this.status = data.status || 0; + me.responseHeaders = {}; + if (me.mimeType) { + me.responseHeaders['content-type'] = me.mimeType; + } + if (data.reason == 'complete') { + this.responseBytes = data.data; + me.responseHeaders['content-length'] = data.data.length; + } else { + if (data.reason == 'error' || data.reason == 'securityError') { + this.statusText = data.text; + me.responseHeaders['content-length'] = 0; + } else { + Ext.raise('Unkown reason code in data: ' + data.reason); + } + } +}, onFlashStateChange:function(state, data) { + var me = this; + if (state == 4) { + me.parseData(data); + delete Ext.data.flash.BinaryXhr.liveConnections[me.javascriptId]; + } + me.setReadyState(state); +}}); +Ext.define('Ext.data.request.Ajax', {extend:Ext.data.request.Base, alias:'request.ajax', statics:{parseStatus:function(status) { + status = status == 1223 ? 204 : status; + var success = status >= 200 && status < 300 || status == 304, isException = false; + if (!success) { + switch(status) { + case 12002: + case 12029: + case 12030: + case 12031: + case 12152: + case 13030: + isException = true; + break; + } + } + return {success:success, isException:isException}; +}}, start:function(data) { + var me = this, options = me.options, requestOptions = me.requestOptions, isXdr = me.isXdr, xhr, headers; + xhr = me.xhr = me.openRequest(options, requestOptions, me.async, me.username, me.password); + if (!isXdr) { + headers = me.setupHeaders(xhr, options, requestOptions.data, requestOptions.params); + } + if (me.async) { + if (!isXdr) { + xhr.onreadystatechange = Ext.Function.bind(me.onStateChange, me); + } + } + if (isXdr) { + me.processXdrRequest(me, xhr); + } + me.callParent([data]); + xhr.send(data); + if (!me.async) { + return me.onComplete(); + } + return me; +}, abort:function(force) { + var me = this, xhr = me.xhr; + if (force || me.isLoading()) { + try { + xhr.onreadystatechange = null; + } catch (e$11) { + xhr.onreadystatechange = Ext.emptyFn; + } + xhr.abort(); + me.callParent([force]); + me.onComplete(); + me.cleanup(); + } +}, cleanup:function() { + this.xhr = null; + delete this.xhr; +}, isLoading:function() { + var me = this, xhr = me.xhr, state = xhr && xhr.readyState, C = Ext.data.flash && Ext.data.flash.BinaryXhr; + if (!xhr || me.aborted || me.timedout) { + return false; + } + if (C && xhr instanceof C) { + return state !== 4; + } + return state !== 0 && state !== 4; +}, openRequest:function(options, requestOptions, async, username, password) { + var me = this, xhr = me.newRequest(options); + if (username) { + xhr.open(requestOptions.method, requestOptions.url, async, username, password); + } else { + if (me.isXdr) { + xhr.open(requestOptions.method, requestOptions.url); + } else { + xhr.open(requestOptions.method, requestOptions.url, async); + } + } + if (options.binary || me.binary) { + if (window.Uint8Array) { + xhr.responseType = 'arraybuffer'; + } else { + if (xhr.overrideMimeType) { + xhr.overrideMimeType('text/plain; charset\x3dx-user-defined'); + } else { + if (!Ext.isIE) { + Ext.log.warn('Your browser does not support loading binary data using Ajax.'); + } + } + } + } + if (options.withCredentials || me.withCredentials) { + xhr.withCredentials = true; + } + return xhr; +}, newRequest:function(options) { + var me = this, xhr; + if (options.binaryData) { + if (window.Uint8Array) { + xhr = me.getXhrInstance(); + } else { + xhr = new Ext.data.flash.BinaryXhr; + } + } else { + if (me.cors && Ext.isIE9m) { + xhr = me.getXdrInstance(); + me.isXdr = true; + } else { + xhr = me.getXhrInstance(); + me.isXdr = false; + } + } + return xhr; +}, setupHeaders:function(xhr, options, data, params) { + var me = this, headers = Ext.apply({}, options.headers || {}, me.defaultHeaders), contentType = me.defaultPostHeader, jsonData = options.jsonData, xmlData = options.xmlData, type = 'Content-Type', useHeader = me.useDefaultXhrHeader, key, header; + if (!headers.hasOwnProperty(type) && (data || params)) { + if (data) { + if (options.rawData) { + contentType = 'text/plain'; + } else { + if (xmlData && Ext.isDefined(xmlData)) { + contentType = 'text/xml'; + } else { + if (jsonData && Ext.isDefined(jsonData)) { + contentType = 'application/json'; + } + } + } + } + headers[type] = contentType; + } + if (useHeader && !headers['X-Requested-With']) { + headers['X-Requested-With'] = me.defaultXhrHeader; + } + if (headers[type] === undefined || headers[type] === null) { + delete headers[type]; + } + try { + for (key in headers) { + if (headers.hasOwnProperty(key)) { + header = headers[key]; + xhr.setRequestHeader(key, header); + } + } + } catch (e$12) { + me.owner.fireEvent('exception', key, header); + } + return headers; +}, getXdrInstance:function() { + var xdr; + if (Ext.ieVersion >= 8) { + xdr = new XDomainRequest; + } else { + Ext.raise({msg:'Your browser does not support CORS'}); + } + return xdr; +}, getXhrInstance:function() { + var options = [function() { + return new XMLHttpRequest; + }, function() { + return new ActiveXObject('MSXML2.XMLHTTP.3.0'); + }, function() { + return new ActiveXObject('MSXML2.XMLHTTP'); + }, function() { + return new ActiveXObject('Microsoft.XMLHTTP'); + }], i = 0, len = options.length, xhr; + for (; i < len; ++i) { + try { + xhr = options[i]; + xhr(); + break; + } catch (e$13) { + } + } + return xhr; +}(), processXdrRequest:function(request, xhr) { + var me = this; + delete request.headers; + request.contentType = request.options.contentType || me.defaultXdrContentType; + xhr.onload = Ext.Function.bind(me.onStateChange, me, [true]); + xhr.onerror = xhr.ontimeout = Ext.Function.bind(me.onStateChange, me, [false]); +}, processXdrResponse:function(response, xhr) { + response.getAllResponseHeaders = function() { + return []; + }; + response.getResponseHeader = function() { + return ''; + }; + response.contentType = xhr.contentType || this.defaultXdrContentType; +}, onStateChange:function(xdrResult) { + var me = this, xhr = me.xhr, globalEvents = Ext.GlobalEvents; + if (xhr && xhr.readyState == 4 || me.isXdr) { + me.clearTimer(); + me.onComplete(xdrResult); + me.cleanup(); + if (globalEvents.hasListeners.idle) { + globalEvents.fireEvent('idle'); + } + } +}, onComplete:function(xdrResult) { + var me = this, owner = me.owner, options = me.options, xhr = me.xhr, failure = {success:false, isException:false}, result, success, response; + if (!xhr || me.destroyed) { + return me.result = failure; + } + try { + result = Ext.data.request.Ajax.parseStatus(xhr.status); + if (result.success) { + result.success = xhr.readyState === 4; + } + } catch (e$14) { + result = failure; + } + success = me.success = me.isXdr ? xdrResult : result.success; + if (success) { + response = me.createResponse(xhr); + owner.fireEvent('requestcomplete', owner, response, options); + Ext.callback(options.success, options.scope, [response, options]); + } else { + if (result.isException || me.aborted || me.timedout) { + response = me.createException(xhr); + } else { + response = me.createResponse(xhr); + } + owner.fireEvent('requestexception', owner, response, options); + Ext.callback(options.failure, options.scope, [response, options]); + } + me.result = response; + Ext.callback(options.callback, options.scope, [options, success, response]); + owner.onRequestComplete(me); + me.callParent([xdrResult]); + return response; +}, createResponse:function(xhr) { + var me = this, isXdr = me.isXdr, headers = {}, lines = isXdr ? [] : xhr.getAllResponseHeaders().replace(/\r\n/g, '\n').split('\n'), count = lines.length, line, index, key, response, byteArray; + while (count--) { + line = lines[count]; + index = line.indexOf(':'); + if (index >= 0) { + key = line.substr(0, index).toLowerCase(); + if (line.charAt(index + 1) == ' ') { + ++index; + } + headers[key] = line.substr(index + 1); + } + } + response = {request:me, requestId:me.id, status:xhr.status, statusText:xhr.statusText, getResponseHeader:function(header) { + return headers[header.toLowerCase()]; + }, getAllResponseHeaders:function() { + return headers; + }}; + if (isXdr) { + me.processXdrResponse(response, xhr); + } + if (me.binary) { + response.responseBytes = me.getByteArray(xhr); + } else { + response.responseText = xhr.responseText; + response.responseXML = xhr.responseXML; + } + return response; +}, destroy:function() { + this.xhr = null; + this.callParent(); +}, privates:{getByteArray:function(xhr) { + var response = xhr.response, responseBody = xhr.responseBody, Cls = Ext.data.flash && Ext.data.flash.BinaryXhr, byteArray, responseText, len, i; + if (xhr instanceof Cls) { + byteArray = xhr.responseBytes; + } else { + if (window.Uint8Array) { + byteArray = response ? new Uint8Array(response) : []; + } else { + if (Ext.isIE9p) { + try { + byteArray = (new VBArray(responseBody)).toArray(); + } catch (e$15) { + byteArray = []; + } + } else { + if (Ext.isIE) { + if (!this.self.vbScriptInjected) { + this.injectVBScript(); + } + getIEByteArray(xhr.responseBody, byteArray = []); + } else { + byteArray = []; + responseText = xhr.responseText; + len = responseText.length; + for (i = 0; i < len; i++) { + byteArray.push(responseText.charCodeAt(i) & 255); + } + } + } + } + } + return byteArray; +}, injectVBScript:function() { + var scriptTag = document.createElement('script'); + scriptTag.type = 'text/vbscript'; + scriptTag.text = ['Function getIEByteArray(byteArray, out)', 'Dim len, i', 'len \x3d LenB(byteArray)', 'For i \x3d 1 to len', 'out.push(AscB(MidB(byteArray, i, 1)))', 'Next', 'End Function'].join('\n'); + Ext.getHead().dom.appendChild(scriptTag); + this.self.vbScriptInjected = true; +}}}); +Ext.define('Ext.data.request.Form', {extend:Ext.data.request.Base, alias:'request.form', start:function(data) { + var me = this, options = me.options, requestOptions = me.requestOptions; + me.callParent([data]); + me.form = me.upload(options.form, requestOptions.url, requestOptions.data, options); + return me; +}, abort:function(force) { + var me = this, frame; + if (me.isLoading()) { + try { + frame = me.frame.dom; + if (frame.stop) { + frame.stop(); + } else { + frame.document.execCommand('Stop'); + } + } catch (e$16) { + } + } + me.callParent([force]); + me.onComplete(); + me.cleanup(); +}, cleanup:function() { + var me = this, frame = me.frame; + if (frame) { + frame.un('load', me.onComplete, me); + Ext.removeNode(frame); + } + me.frame = me.form = null; +}, isLoading:function() { + return !!this.frame; +}, upload:function(form, url, params, options) { + form = Ext.getDom(form); + options = options || {}; + var frameDom = document.createElement('iframe'), frame = Ext.get(frameDom), id = frame.id, hiddens = [], encoding = 'multipart/form-data', buf = {target:form.target, method:form.method, encoding:form.encoding, enctype:form.enctype, action:form.action}, addField = function(name, value) { + hiddenItem = document.createElement('input'); + Ext.fly(hiddenItem).set({type:'hidden', value:value, name:name}); + form.appendChild(hiddenItem); + hiddens.push(hiddenItem); + }, hiddenItem, obj, value, name, vLen, v, hLen, h, request; + frame.set({name:id, cls:Ext.baseCSSPrefix + 'hidden-display', src:Ext.SSL_SECURE_URL, tabIndex:-1}); + document.body.appendChild(frameDom); + if (document.frames) { + document.frames[id].name = id; + } + Ext.fly(form).set({target:id, method:'POST', enctype:encoding, encoding:encoding, action:url || buf.action}); + if (params) { + obj = Ext.Object.fromQueryString(params) || {}; + for (name in obj) { + if (obj.hasOwnProperty(name)) { + value = obj[name]; + if (Ext.isArray(value)) { + vLen = value.length; + for (v = 0; v < vLen; v++) { + addField(name, value[v]); + } + } else { + addField(name, value); + } + } + } + } + this.frame = frame; + frame.on({load:this.onComplete, scope:this, single:!Ext.isOpera}); + form.submit(); + Ext.fly(form).set(buf); + for (hLen = hiddens.length, h = 0; h < hLen; h++) { + Ext.removeNode(hiddens[h]); + } + return form; +}, getDoc:function() { + var frame = this.frame.dom; + return frame && (frame.contentWindow.document || frame.contentDocument) || (window.frames[frame.id] || {}).document; +}, getTimeout:function() { + return this.options.timeout; +}, onComplete:function() { + var me = this, frame = me.frame, owner = me.owner, options = me.options, callback, doc, success, contentNode, response; + if (!frame) { + return; + } + if (me.aborted || me.timedout) { + me.result = response = me.createException(); + response.responseXML = null; + response.responseText = '{success:false,message:"' + Ext.String.trim(response.statusText) + '"}'; + callback = options.failure; + success = false; + } else { + try { + doc = me.getDoc(); + me.result = response = {responseText:'', responseXML:null}; + if (doc) { + if (Ext.isOpera && doc.location == Ext.SSL_SECURE_URL) { + return; + } + if (doc.body) { + if ((contentNode = doc.body.firstChild) && /pre/i.test(contentNode.tagName)) { + response.responseText = contentNode.textContent || contentNode.innerText; + } else { + if (contentNode = doc.getElementsByTagName('textarea')[0]) { + response.responseText = contentNode.value; + } else { + response.responseText = doc.body.textContent || doc.body.innerText; + } + } + } + response.responseXML = doc.XMLDocument || doc; + callback = options.success; + success = true; + response.status = 200; + } else { + Ext.raise('Could not acquire a suitable connection for the file upload service.'); + } + } catch (e$17) { + me.result = response = me.createException(); + response.status = 400; + response.statusText = (e$17.message || e$17.description) + ''; + response.responseText = '{success:false,message:"' + Ext.String.trim(response.statusText) + '"}'; + response.responseXML = null; + callback = options.failure; + success = false; + } + } + me.frame = null; + me.success = success; + owner.fireEvent(success ? 'requestcomplete' : 'requestexception', owner, response, options); + Ext.callback(callback, options.scope, [response, options]); + Ext.callback(options.callback, options.scope, [options, success, response]); + owner.onRequestComplete(me); + Ext.asap(frame.destroy, frame); + me.callParent(); +}, destroy:function() { + this.cleanup(); + this.callParent(); +}}); +Ext.define('Ext.data.Connection', {mixins:{observable:Ext.mixin.Observable}, statics:{requestId:0}, enctypeRe:/multipart\/form-data/i, config:{url:null, async:true, username:'', password:'', disableCaching:true, withCredentials:false, binary:false, cors:false, isXdr:false, defaultXdrContentType:'text/plain', disableCachingParam:'_dc', timeout:30000, extraParams:null, autoAbort:false, method:null, defaultHeaders:null, defaultPostHeader:'application/x-www-form-urlencoded; charset\x3dUTF-8', useDefaultXhrHeader:true, +defaultXhrHeader:'XMLHttpRequest'}, constructor:function(config) { + this.mixins.observable.constructor.call(this, config); + this.requests = {}; +}, request:function(options) { + options = options || {}; + var me = this, requestOptions, request; + if (me.fireEvent('beforerequest', me, options) !== false) { + requestOptions = me.setOptions(options, options.scope || Ext.global); + request = me.createRequest(options, requestOptions); + return request.start(requestOptions.data); + } + Ext.callback(options.callback, options.scope, [options, undefined, undefined]); + return Ext.Deferred.rejected([options, undefined, undefined]); +}, createRequest:function(options, requestOptions) { + var me = this, type = options.type || requestOptions.type, request; + if (!type) { + type = me.isFormUpload(options) ? 'form' : 'ajax'; + } + if (options.autoAbort || me.getAutoAbort()) { + me.abort(); + } + request = Ext.Factory.request({type:type, owner:me, options:options, requestOptions:requestOptions, ownerConfig:me.getConfig()}); + me.requests[request.id] = request; + me.latestId = request.id; + return request; +}, isFormUpload:function(options) { + var form = this.getForm(options); + if (form) { + return options.isUpload || this.enctypeRe.test(form.getAttribute('enctype')); + } + return false; +}, getForm:function(options) { + return Ext.getDom(options.form); +}, setOptions:function(options, scope) { + var me = this, params = options.params || {}, extraParams = me.getExtraParams(), urlParams = options.urlParams, url = options.url || me.getUrl(), cors = options.cors, jsonData = options.jsonData, method, disableCache, data; + if (cors !== undefined) { + me.setCors(cors); + } + if (Ext.isFunction(params)) { + params = params.call(scope, options); + } + if (Ext.isFunction(url)) { + url = url.call(scope, options); + } + url = this.setupUrl(options, url); + if (!url) { + Ext.raise({options:options, msg:'No URL specified'}); + } + data = options.rawData || options.binaryData || options.xmlData || jsonData || null; + if (jsonData && !Ext.isPrimitive(jsonData)) { + data = Ext.encode(data); + } + if (options.binaryData) { + if (!Ext.isArray(options.binaryData)) { + Ext.log.warn('Binary submission data must be an array of byte values! Instead got ' + typeof options.binaryData); + } + if (me.nativeBinaryPostSupport()) { + data = new Uint8Array(options.binaryData); + if (Ext.isChrome && Ext.chromeVersion < 22 || Ext.isSafari || Ext.isGecko) { + data = data.buffer; + } + } + } + if (Ext.isObject(params)) { + params = Ext.Object.toQueryString(params); + } + if (Ext.isObject(extraParams)) { + extraParams = Ext.Object.toQueryString(extraParams); + } + params = params + (extraParams ? (params ? '\x26' : '') + extraParams : ''); + urlParams = Ext.isObject(urlParams) ? Ext.Object.toQueryString(urlParams) : urlParams; + params = this.setupParams(options, params); + method = (options.method || me.getMethod() || (params || data ? 'POST' : 'GET')).toUpperCase(); + this.setupMethod(options, method); + disableCache = options.disableCaching !== false ? options.disableCaching || me.getDisableCaching() : false; + if (method === 'GET' && disableCache) { + url = Ext.urlAppend(url, (options.disableCachingParam || me.getDisableCachingParam()) + '\x3d' + (new Date).getTime()); + } + if ((method == 'GET' || data) && params) { + url = Ext.urlAppend(url, params); + params = null; + } + if (urlParams) { + url = Ext.urlAppend(url, urlParams); + } + return {url:url, method:method, data:data || params || null}; +}, setupUrl:function(options, url) { + var form = this.getForm(options); + if (form) { + url = url || form.action; + } + return url; +}, setupParams:function(options, params) { + var form = this.getForm(options), serializedForm; + if (form && !this.isFormUpload(options)) { + serializedForm = Ext.Element.serializeForm(form); + params = params ? params + '\x26' + serializedForm : serializedForm; + } + return params; +}, setupMethod:function(options, method) { + if (this.isFormUpload(options)) { + return 'POST'; + } + return method; +}, isLoading:function(request) { + if (!request) { + request = this.getLatest(); + } + return request ? request.isLoading() : false; +}, abort:function(request) { + if (!request) { + request = this.getLatest(); + } + if (request && request.isLoading()) { + request.abort(); + } +}, abortAll:function() { + var requests = this.requests, id; + for (id in requests) { + this.abort(requests[id]); + } +}, getLatest:function() { + var id = this.latestId, request; + if (id) { + request = this.requests[id]; + } + return request || null; +}, clearTimeout:function(request) { + if (!request) { + request = this.getLatest(); + } + if (request) { + request.clearTimer(); + } +}, onRequestComplete:function(request) { + delete this.requests[request.id]; +}, nativeBinaryPostSupport:function() { + return Ext.isChrome || Ext.isSafari && Ext.isDefined(window.Uint8Array) || Ext.isGecko && Ext.isDefined(window.Uint8Array); +}}); +Ext.define('Ext.Ajax', {extend:Ext.data.Connection, singleton:true, autoAbort:false}); +Ext.define('Ext.AnimationQueue', {singleton:true, constructor:function() { + var me = this; + me.queue = []; + me.taskQueue = []; + me.runningQueue = []; + me.idleQueue = []; + me.isRunning = false; + me.isIdle = true; + me.run = Ext.Function.bind(me.run, me); + if (Ext.os.is.iOS) { + Ext.interval(me.watch, 500, me); + } +}, start:function(fn, scope, args) { + var me = this; + me.queue.push(arguments); + if (!me.isRunning) { + if (me.hasOwnProperty('idleTimer')) { + clearTimeout(me.idleTimer); + delete me.idleTimer; + } + if (me.hasOwnProperty('idleQueueTimer')) { + clearTimeout(me.idleQueueTimer); + delete me.idleQueueTimer; + } + me.isIdle = false; + me.isRunning = true; + me.startCountTime = Ext.now(); + me.count = 0; + me.doStart(); + } +}, watch:function() { + if (this.isRunning && Ext.now() - this.lastRunTime >= 500) { + this.run(); + } +}, run:function() { + var me = this; + if (!me.isRunning) { + return; + } + var queue = me.runningQueue, now = Ext.now(), i, ln; + me.lastRunTime = now; + me.frameStartTime = now; + queue.push.apply(queue, me.queue); + for (i = 0, ln = queue.length; i < ln; i++) { + me.invoke(queue[i]); + } + queue.length = 0; + var elapse = me.frameStartTime - me.startCountTime, count = ++me.count; + if (elapse >= 200) { + me.onFpsChanged(count * 1000 / elapse, count, elapse); + me.startCountTime = me.frameStartTime; + me.count = 0; + } + me.doIterate(); +}, onFpsChanged:Ext.emptyFn, onStop:Ext.emptyFn, doStart:function() { + this.animationFrameId = Ext.Function.requestAnimationFrame(this.run); + this.lastRunTime = Ext.now(); +}, doIterate:function() { + this.animationFrameId = Ext.Function.requestAnimationFrame(this.run); +}, doStop:function() { + Ext.Function.cancelAnimationFrame(this.animationFrameId); +}, stop:function(fn, scope, args) { + var me = this; + if (!me.isRunning) { + return; + } + var queue = me.queue, ln = queue.length, i, item; + for (i = 0; i < ln; i++) { + item = queue[i]; + if (item[0] === fn && item[1] === scope && item[2] === args) { + queue.splice(i, 1); + i--; + ln--; + } + } + if (ln === 0) { + me.doStop(); + me.onStop(); + me.isRunning = false; + me.idleTimer = Ext.defer(me.whenIdle, 100, me); + } +}, onIdle:function(fn, scope, args) { + var listeners = this.idleQueue, i, ln, listener; + for (i = 0, ln = listeners.length; i < ln; i++) { + listener = listeners[i]; + if (fn === listener[0] && scope === listener[1] && args === listener[2]) { + return; + } + } + listeners.push(arguments); + if (this.isIdle) { + this.processIdleQueue(); + } +}, unIdle:function(fn, scope, args) { + var listeners = this.idleQueue, i, ln, listener; + for (i = 0, ln = listeners.length; i < ln; i++) { + listener = listeners[i]; + if (fn === listener[0] && scope === listener[1] && args === listener[2]) { + listeners.splice(i, 1); + return true; + } + } + return false; +}, queueTask:function(fn, scope, args) { + this.taskQueue.push(arguments); + this.processTaskQueue(); +}, dequeueTask:function(fn, scope, args) { + var listeners = this.taskQueue, i, ln, listener; + for (i = 0, ln = listeners.length; i < ln; i++) { + listener = listeners[i]; + if (fn === listener[0] && scope === listener[1] && args === listener[2]) { + listeners.splice(i, 1); + i--; + ln--; + } + } +}, invoke:function(listener) { + var fn = listener[0], scope = listener[1], args = listener[2]; + fn = typeof fn == 'string' ? scope[fn] : fn; + if (Ext.isArray(args)) { + fn.apply(scope, args); + } else { + fn.call(scope, args); + } +}, whenIdle:function() { + this.isIdle = true; + this.processIdleQueue(); +}, processIdleQueue:function() { + if (!this.hasOwnProperty('idleQueueTimer')) { + this.idleQueueTimer = Ext.defer(this.processIdleQueueItem, 1, this); + } +}, processIdleQueueItem:function() { + delete this.idleQueueTimer; + if (!this.isIdle) { + return; + } + var listeners = this.idleQueue, listener; + if (listeners.length > 0) { + listener = listeners.shift(); + this.invoke(listener); + this.processIdleQueue(); + } +}, processTaskQueue:function() { + if (!this.hasOwnProperty('taskQueueTimer')) { + this.taskQueueTimer = Ext.defer(this.processTaskQueueItem, 15, this); + } +}, processTaskQueueItem:function() { + delete this.taskQueueTimer; + var listeners = this.taskQueue, listener; + if (listeners.length > 0) { + listener = listeners.shift(); + this.invoke(listener); + this.processTaskQueue(); + } +}, showFps:function() { + var styleTpl = {color:'white', 'background-color':'black', 'text-align':'center', 'font-family':'sans-serif', 'font-size':'8px', 'font-weight':'normal', 'font-style':'normal', 'line-height':'20px', '-webkit-font-smoothing':'antialiased', 'zIndex':100000, position:'absolute'}; + Ext.getBody().append([{style:Ext.applyIf({bottom:'50px', left:0, width:'50px', height:'20px'}, styleTpl), html:'Average'}, {style:Ext.applyIf({'background-color':'red', 'font-size':'18px', 'line-height':'50px', bottom:0, left:0, width:'50px', height:'50px'}, styleTpl), id:'__averageFps', html:'0'}, {style:Ext.applyIf({bottom:'50px', left:'50px', width:'50px', height:'20px'}, styleTpl), html:'Min (Last 1k)'}, {style:Ext.applyIf({'background-color':'orange', 'font-size':'18px', 'line-height':'50px', + bottom:0, left:'50px', width:'50px', height:'50px'}, styleTpl), id:'__minFps', html:'0'}, {style:Ext.applyIf({bottom:'50px', left:'100px', width:'50px', height:'20px'}, styleTpl), html:'Max (Last 1k)'}, {style:Ext.applyIf({'background-color':'maroon', 'font-size':'18px', 'line-height':'50px', bottom:0, left:'100px', width:'50px', height:'50px'}, styleTpl), id:'__maxFps', html:'0'}, {style:Ext.applyIf({bottom:'50px', left:'150px', width:'50px', height:'20px'}, styleTpl), html:'Current'}, {style:Ext.applyIf({'background-color':'green', + 'font-size':'18px', 'line-height':'50px', bottom:0, left:'150px', width:'50px', height:'50px'}, styleTpl), id:'__currentFps', html:'0'}]); + Ext.AnimationQueue.resetFps(); +}, resetFps:function() { + var currentFps = Ext.get('__currentFps'), averageFps = Ext.get('__averageFps'), minFps = Ext.get('__minFps'), maxFps = Ext.get('__maxFps'), min = 1000, max = 0, count = 0, sum = 0; + if (!currentFps) { + return; + } + Ext.AnimationQueue.onFpsChanged = function(fps) { + count++; + if (!(count % 10)) { + min = 1000; + max = 0; + } + sum += fps; + min = Math.min(min, fps); + max = Math.max(max, fps); + currentFps.setHtml(Math.round(fps)); + averageFps.setHtml(Math.round(sum / count)); + minFps.setHtml(Math.round(min)); + maxFps.setHtml(Math.round(max)); + }; +}}, function() { + var paramsString = window.location.search.substr(1), paramsArray = paramsString.split('\x26'); + if (Ext.Array.contains(paramsArray, 'showfps')) { + Ext.onReady(Ext.Function.bind(this.showFps, this)); + } +}); +Ext.define('Ext.ComponentManager', {alternateClassName:'Ext.ComponentMgr', singleton:true, count:0, typeName:'xtype', constructor:function(config) { + var me = this; + Ext.apply(me, config || {}); + me.all = {}; + me.references = {}; + me.onAvailableCallbacks = {}; +}, create:function(config, defaultType) { + if (typeof config === 'string') { + return Ext.widget(config); + } + if (config.isComponent) { + return config; + } + if ('xclass' in config) { + return Ext.create(config.xclass, config); + } + return Ext.widget(config.xtype || defaultType, config); +}, get:function(id) { + return this.all[id]; +}, register:function(component) { + var me = this, all = me.all, key = component.getId(), onAvailableCallbacks = me.onAvailableCallbacks; + if (key === undefined) { + Ext.raise('Component id is undefined. Please ensure the component has an id.'); + } + if (key in all) { + Ext.raise('Registering duplicate component id "' + key + '"'); + } + all[key] = component; + if (component.getReference && component.getReference()) { + me.references[key] = component; + } + ++me.count; + if (!me.hasFocusListener) { + Ext.on('focus', me.onGlobalFocus, me); + me.hasFocusListener = true; + } + onAvailableCallbacks = onAvailableCallbacks && onAvailableCallbacks[key]; + if (onAvailableCallbacks && onAvailableCallbacks.length) { + me.notifyAvailable(component); + } +}, unregister:function(component) { + var id = component.getId(); + if (component.getReference && component.getReference()) { + this.references[id] = null; + delete this.references[id]; + } + this.all[id] = null; + delete this.all[id]; + this.count--; +}, markReferencesDirty:function() { + this.referencesDirty = true; +}, fixReferences:function() { + var me = this, references = me.references, key; + if (me.referencesDirty) { + for (key in references) { + if (references.hasOwnProperty(key)) { + references[key].fixReference(); + } + } + me.referencesDirty = false; + } +}, onAvailable:function(id, fn, scope) { + var me = this, callbacks = me.onAvailableCallbacks, all = me.all, item; + if (id in all) { + item = all[id]; + fn.call(scope || item, item); + } else { + if (id) { + if (!Ext.isArray(callbacks[id])) { + callbacks[id] = []; + } + callbacks[id].push(function(item) { + fn.call(scope || item, item); + }); + } + } +}, notifyAvailable:function(item) { + var callbacks = this.onAvailableCallbacks[item && item.getId()] || []; + while (callbacks.length) { + callbacks.shift()(item); + } +}, each:function(fn, scope) { + return Ext.Object.each(this.all, fn, scope); +}, getCount:function() { + return this.count; +}, getAll:function() { + return Ext.Object.getValues(this.all); +}, getActiveComponent:function() { + return Ext.Component.fromElement(Ext.dom.Element.getActiveElement()); +}, onGlobalFocus:function(e) { + var me = this, toElement = e.toElement, fromElement = e.fromElement, toComponent = Ext.Component.fromElement(toElement), fromComponent = Ext.Component.fromElement(fromElement), commonAncestor, targetComponent; + if (toComponent === fromComponent) { + return; + } + commonAncestor = me.getCommonAncestor(fromComponent, toComponent); + if (fromComponent && !(fromComponent.destroyed || fromComponent.destroying)) { + if (fromComponent.handleBlurEvent) { + fromComponent.handleBlurEvent(e); + } + for (targetComponent = fromComponent; targetComponent && targetComponent !== commonAncestor; targetComponent = targetComponent.getRefOwner()) { + if (!(targetComponent.destroyed || targetComponent.destroying)) { + targetComponent.onFocusLeave({event:e.event, type:'focusleave', target:fromElement, relatedTarget:toElement, fromComponent:fromComponent, toComponent:toComponent}); + } + } + } + if (toComponent && !toComponent.destroyed) { + if (toComponent.handleFocusEvent) { + toComponent.handleFocusEvent(e); + } + for (targetComponent = toComponent; targetComponent && targetComponent !== commonAncestor; targetComponent = targetComponent.getRefOwner()) { + targetComponent.onFocusEnter({event:e.event, type:'focusenter', relatedTarget:fromElement, target:toElement, fromComponent:fromComponent, toComponent:toComponent}); + } + } +}, getCommonAncestor:function(compA, compB) { + if (compA === compB) { + return compA; + } + while (compA && !(compA.isAncestor(compB) || compA === compB)) { + compA = compA.getRefOwner(); + } + return compA; +}, privates:{clearAll:function() { + this.all = {}; + this.references = {}; + this.onAvailableCallbacks = {}; +}, fromElement:function(node, limit, selector) { + var target = Ext.getDom(node), cache = this.all, depth = 0, topmost, cmpId, cmp; + if (typeof limit !== 'number') { + topmost = Ext.getDom(limit); + limit = Number.MAX_VALUE; + } + while (target && target.nodeType === 1 && depth < limit && target !== topmost) { + cmpId = target.getAttribute('data-componentid') || target.id; + if (cmpId) { + cmp = cache[cmpId]; + if (cmp && (!selector || Ext.ComponentQuery.is(cmp, selector))) { + return cmp; + } + depth++; + } + target = target.parentNode; + } + return null; +}}, deprecated:{5:{methods:{isRegistered:null, registerType:null}}}}, function() { + Ext.getCmp = function(id) { + return Ext.ComponentManager.get(id); + }; +}); +Ext.ns('Ext.util').Operators = {'\x3d':function(a, v) { + return a == v; +}, '!\x3d':function(a, v) { + return a != v; +}, '^\x3d':function(a, v) { + return a && a.substr(0, v.length) == v; +}, '$\x3d':function(a, v) { + return a && a.substr(a.length - v.length) == v; +}, '*\x3d':function(a, v) { + return a && a.indexOf(v) !== -1; +}, '%\x3d':function(a, v) { + return a % v === 0; +}, '|\x3d':function(a, v) { + return a && (a == v || a.substr(0, v.length + 1) == v + '-'); +}, '~\x3d':function(a, v) { + return a && (' ' + a + ' ').indexOf(' ' + v + ' ') != -1; +}}; +Ext.define('Ext.util.LruCache', {extend:Ext.util.HashMap, config:{maxSize:null}, add:function(key, newValue) { + var me = this, entry, last; + me.removeAtKey(key); + last = me.last; + entry = {prev:last, next:null, key:key, value:newValue}; + if (last) { + last.next = entry; + } else { + me.first = entry; + } + me.last = entry; + me.callParent([key, entry]); + me.prune(); + return newValue; +}, insertBefore:function(key, newValue, sibling) { + var me = this, existingKey, entry; + if (sibling = this.map[this.findKey(sibling)]) { + existingKey = me.findKey(newValue); + if (existingKey) { + me.unlinkEntry(entry = me.map[existingKey]); + } else { + entry = {prev:sibling.prev, next:sibling, key:key, value:newValue}; + } + if (sibling.prev) { + entry.prev.next = entry; + } else { + me.first = entry; + } + entry.next = sibling; + sibling.prev = entry; + me.prune(); + return newValue; + } else { + return me.add(key, newValue); + } +}, get:function(key) { + var entry = this.map[key]; + if (entry) { + if (entry.next) { + this.moveToEnd(entry); + } + return entry.value; + } +}, removeAtKey:function(key) { + this.unlinkEntry(this.map[key]); + return this.callParent(arguments); +}, clear:function(initial) { + this.first = this.last = null; + return this.callParent([initial]); +}, unlinkEntry:function(entry) { + if (entry) { + if (entry.next) { + entry.next.prev = entry.prev; + } else { + this.last = entry.prev; + } + if (entry.prev) { + entry.prev.next = entry.next; + } else { + this.first = entry.next; + } + entry.prev = entry.next = null; + } +}, moveToEnd:function(entry) { + this.unlinkEntry(entry); + if (entry.prev = this.last) { + this.last.next = entry; + } else { + this.first = entry; + } + this.last = entry; +}, getArray:function(isKey) { + var arr = [], entry = this.first; + while (entry) { + arr.push(isKey ? entry.key : entry.value); + entry = entry.next; + } + return arr; +}, each:function(fn, scope, reverse) { + var me = this, entry = reverse ? me.last : me.first, length = me.length; + scope = scope || me; + while (entry) { + if (fn.call(scope, entry.key, entry.value, length) === false) { + break; + } + entry = reverse ? entry.prev : entry.next; + } + return me; +}, findKey:function(value) { + var key, map = this.map; + for (key in map) { + if (map.hasOwnProperty(key) && map[key].value === value) { + return key; + } + } + return undefined; +}, clone:function() { + var newCache = new this.self(this.initialConfig), map = this.map, key; + newCache.suspendEvents(); + for (key in map) { + if (map.hasOwnProperty(key)) { + newCache.add(key, map[key].value); + } + } + newCache.resumeEvents(); + return newCache; +}, prune:function() { + var me = this, max = me.getMaxSize(), purgeCount = max ? me.length - max : 0; + if (purgeCount > 0) { + for (; me.first && purgeCount; purgeCount--) { + me.removeAtKey(me.first.key); + } + } +}, destroy:function() { + this.first = this.last = null; + this.callParent(); +}}); +Ext.define('Ext.ComponentQuery', {singleton:true}, function() { + var cq = this, queryOperators = Ext.util.Operators, nthRe = /(\d*)n\+?(\d*)/, nthRe2 = /\D/, stripLeadingSpaceRe = /^(\s)+/, unescapeRe = /\\(.)/g, regexCache = new Ext.util.LruCache({maxSize:100}), filterFnPattern = ['var r \x3d [],', 'i \x3d 0,', 'it \x3d items,', 'l \x3d it.length,', 'c;', 'for (; i \x3c l; i++) {', 'c \x3d it[i];', 'if (c.{0}) {', 'r.push(c);', '}', '}', 'return r;'].join(''), filterItems = function(items, operation) { + return operation.method.apply(this, [items].concat(operation.args)); + }, getItems = function(items, mode) { + var result = [], i = 0, length = items.length, candidate, deep = mode !== '\x3e'; + for (; i < length; i++) { + candidate = items[i]; + if (candidate.getRefItems) { + result = result.concat(candidate.getRefItems(deep)); + } + } + return result; + }, getAncestors = function(items) { + var result = [], i = 0, length = items.length, candidate; + for (; i < length; i++) { + candidate = items[i]; + while (!!(candidate = candidate.getRefOwner())) { + result.push(candidate); + } + } + return result; + }, filterByXType = function(items, xtype, shallow) { + if (xtype === '*') { + return items.slice(); + } else { + var result = [], i = 0, length = items.length, candidate; + for (; i < length; i++) { + candidate = items[i]; + if (candidate.isXType(xtype, shallow)) { + result.push(candidate); + } + } + return result; + } + }, filterByAttribute = function(items, property, operator, compareTo) { + var result = [], i = 0, length = items.length, mustBeOwnProperty, presenceOnly, candidate, propValue, j, propLen, config; + if (property.charAt(0) === '@') { + mustBeOwnProperty = true; + property = property.substr(1); + } + if (property.charAt(0) === '?') { + mustBeOwnProperty = true; + presenceOnly = true; + property = property.substr(1); + } + for (; i < length; i++) { + candidate = items[i]; + config = candidate.getConfigurator && candidate.self.$config.configs[property]; + if (config) { + propValue = candidate[config.names.get](); + } else { + if (mustBeOwnProperty && !candidate.hasOwnProperty(property)) { + continue; + } else { + propValue = candidate[property]; + } + } + if (presenceOnly) { + result.push(candidate); + } else { + if (operator === '~\x3d') { + if (propValue) { + if (!Ext.isArray(propValue)) { + propValue = propValue.split(' '); + } + for (j = 0, propLen = propValue.length; j < propLen; j++) { + if (queryOperators[operator](Ext.coerce(propValue[j], compareTo), compareTo)) { + result.push(candidate); + break; + } + } + } + } else { + if (operator === '/\x3d') { + if (propValue != null && compareTo.test(propValue)) { + result.push(candidate); + } + } else { + if (!compareTo ? !!candidate[property] : queryOperators[operator](Ext.coerce(propValue, compareTo), compareTo)) { + result.push(candidate); + } + } + } + } + } + return result; + }, filterById = function(items, id) { + var result = [], i = 0, length = items.length, candidate; + for (; i < length; i++) { + candidate = items[i]; + if (candidate.getItemId() === id) { + result.push(candidate); + } + } + return result; + }, filterByPseudo = function(items, name, value) { + return cq.pseudos[name](items, value); + }, modeRe = /^(\s?([>\^])\s?|\s|$)/, tokenRe = /^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/, matchers = [{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/, method:filterByXType, argTransform:function(args) { + var selector = args[0]; + Ext.log.warn('"' + selector + '" ComponentQuery selector style is deprecated,' + ' use "' + selector.replace(/^\./, '') + '" without the leading dot instead'); + if (args[1] !== undefined) { + args[1] = args[1].replace(unescapeRe, '$1'); + } + return args.slice(1); + }}, {re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/, method:filterByAttribute, argTransform:function(args) { + var selector = args[0], property = args[1], operator = args[2], compareTo = args[4], compareRe; + if (compareTo !== undefined) { + compareTo = compareTo.replace(unescapeRe, '$1'); + var format = Ext.String.format, msg = "ComponentQuery selector '{0}' has an unescaped ({1}) character at the {2} " + 'of the attribute value pattern. Usually that indicates an error ' + 'where the opening quote is not followed by the closing quote. ' + 'If you need to match a ({1}) character at the {2} of the attribute ' + 'value, escape the quote character in your pattern: (\\{1})', match; + if (match = /^(['"]).*?[^'"]$/.exec(compareTo)) { + Ext.log.warn(format(msg, selector, match[1], 'beginning')); + } else { + if (match = /^[^'"].*?(['"])$/.exec(compareTo)) { + Ext.log.warn(format(msg, selector, match[1], 'end')); + } + } + } + if (operator === '/\x3d') { + compareRe = regexCache.get(compareTo); + if (compareRe) { + compareTo = compareRe; + } else { + compareTo = regexCache.add(compareTo, new RegExp(compareTo)); + } + } + return [property, operator, compareTo]; + }}, {re:/^#((?:\\\.|[\w\-])+)/, method:filterById}, {re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/, method:filterByPseudo, argTransform:function(args) { + if (args[2] !== undefined) { + args[2] = args[2].replace(unescapeRe, '$1'); + } + return args.slice(1); + }}, {re:/^(?:\{([^\}]+)\})/, method:filterFnPattern}]; + cq.Query = Ext.extend(Object, {constructor:function(cfg) { + cfg = cfg || {}; + Ext.apply(this, cfg); + }, execute:function(root) { + var operations = this.operations, result = [], op, i, len; + for (i = 0, len = operations.length; i < len; i++) { + op = operations[i]; + result = result.concat(this._execute(root, op)); + } + return result; + }, _execute:function(root, operations) { + var i = 0, length = operations.length, operation, workingItems; + if (!root) { + workingItems = Ext.ComponentManager.getAll(); + } else { + if (Ext.isIterable(root)) { + workingItems = root; + } else { + if (root.isMixedCollection) { + workingItems = root.items; + } + } + } + for (; i < length; i++) { + operation = operations[i]; + if (operation.mode === '^') { + workingItems = getAncestors(workingItems || [root]); + } else { + if (operation.mode) { + workingItems = getItems(workingItems || [root], operation.mode); + } else { + workingItems = filterItems(workingItems || getItems([root]), operation); + } + } + if (i === length - 1) { + return workingItems; + } + } + return []; + }, is:function(component) { + var operations = this.operations, result = false, len = operations.length, op, i; + if (len === 0) { + return true; + } + for (i = 0; i < len; i++) { + op = operations[i]; + result = this._is(component, op); + if (result) { + return result; + } + } + return false; + }, _is:function(component, operations) { + var len = operations.length, active = [component], operation, i, j, mode, items, item; + for (i = len - 1; i >= 0; --i) { + operation = operations[i]; + mode = operation.mode; + if (mode) { + if (mode === '^') { + active = getItems(active, ' '); + } else { + if (mode === '\x3e') { + items = []; + for (j = 0, len = active.length; j < len; ++j) { + item = active[j].getRefOwner(); + if (item) { + items.push(item); + } + } + active = items; + } else { + active = getAncestors(active); + } + } + if (active.length === 0) { + return false; + } + } else { + active = filterItems(active, operation); + if (active.length === 0) { + return false; + } + } + } + return true; + }, getMatches:function(components, operations) { + var len = operations.length, i; + for (i = 0; i < len; ++i) { + components = filterItems(components, operations[i]); + if (components.length === 0) { + break; + } + } + return components; + }, isMultiMatch:function() { + return this.operations.length > 1; + }}); + Ext.apply(cq, {cache:new Ext.util.LruCache({maxSize:100}), pseudos:{not:function(components, selector) { + var i = 0, length = components.length, results = [], index = -1, component; + for (; i < length; ++i) { + component = components[i]; + if (!cq.is(component, selector)) { + results[++index] = component; + } + } + return results; + }, first:function(components) { + var ret = []; + if (components.length > 0) { + ret.push(components[0]); + } + return ret; + }, last:function(components) { + var len = components.length, ret = []; + if (len > 0) { + ret.push(components[len - 1]); + } + return ret; + }, focusable:function(cmps) { + var len = cmps.length, results = [], i = 0, c; + for (; i < len; i++) { + c = cmps[i]; + if (c.isFocusable && c.isFocusable()) { + results.push(c); + } + } + return results; + }, 'nth-child':function(c, a) { + var result = [], m = nthRe.exec(a === 'even' && '2n' || a === 'odd' && '2n+1' || !nthRe2.test(a) && 'n+' + a || a), f = (m[1] || 1) - 0, len = m[2] - 0, i, n, nodeIndex; + for (i = 0; n = c[i]; i++) { + nodeIndex = i + 1; + if (f === 1) { + if (len === 0 || nodeIndex === len) { + result.push(n); + } + } else { + if ((nodeIndex + len) % f === 0) { + result.push(n); + } + } + } + return result; + }, scrollable:function(cmps) { + var len = cmps.length, results = [], i = 0, c; + for (; i < len; i++) { + c = cmps[i]; + if (c.scrollable || c._scrollable) { + results.push(c); + } + } + return results; + }}, query:function(selector, root) { + if (!selector) { + return Ext.ComponentManager.all.getArray(); + } + var results = [], noDupResults = [], dupMatcher = {}, query = cq.cache.get(selector), resultsLn, cmp, i; + if (!query) { + query = cq.cache.add(selector, cq.parse(selector)); + } + results = query.execute(root); + if (query.isMultiMatch()) { + resultsLn = results.length; + for (i = 0; i < resultsLn; i++) { + cmp = results[i]; + if (!dupMatcher[cmp.id]) { + noDupResults.push(cmp); + dupMatcher[cmp.id] = true; + } + } + results = noDupResults; + } + return results; + }, visitPreOrder:function(selector, root, fn, scope, extraArgs) { + cq._visit(true, selector, root, fn, scope, extraArgs); + }, visitPostOrder:function(selector, root, fn, scope, extraArgs) { + cq._visit(false, selector, root, fn, scope, extraArgs); + }, _visit:function(preOrder, selector, root, fn, scope, extraArgs) { + var query = cq.cache.get(selector), callArgs = [root], children, len = 0, i, rootMatch; + if (!query) { + query = cq.cache.add(selector, cq.parse(selector)); + } + rootMatch = query.is(root); + if (root.getRefItems) { + children = root.getRefItems(); + len = children.length; + } + if (extraArgs) { + Ext.Array.push(callArgs, extraArgs); + } + if (preOrder) { + if (rootMatch) { + if (fn.apply(scope || root, callArgs) === false) { + return false; + } + } + } + for (i = 0; i < len; i++) { + if (cq._visit.call(cq, preOrder, selector, children[i], fn, scope, extraArgs) === false) { + return false; + } + } + if (!preOrder) { + if (rootMatch) { + if (fn.apply(scope || root, callArgs) === false) { + return false; + } + } + } + }, is:function(component, selector) { + if (!selector) { + return true; + } + var query = cq.cache.get(selector); + if (!query) { + query = cq.cache.add(selector, cq.parse(selector)); + } + return query.is(component); + }, parse:function(selector) { + var operations = [], selectors, sel, i, len; + selectors = Ext.splitAndUnescape(selector, ','); + for (i = 0, len = selectors.length; i < len; i++) { + sel = Ext.String.trim(selectors[i]); + if (sel === '') { + Ext.raise('Invalid ComponentQuery selector: ""'); + } + operations.push(cq._parse(sel)); + } + return new cq.Query({operations:operations}); + }, _parse:function(selector) { + var operations = [], trim = Ext.String.trim, length = matchers.length, lastSelector, tokenMatch, token, matchedChar, modeMatch, selectorMatch, transform, i, matcher, method, args; + while (selector && lastSelector !== selector) { + lastSelector = selector; + tokenMatch = selector.match(tokenRe); + if (tokenMatch) { + matchedChar = tokenMatch[1]; + token = trim(tokenMatch[2]).replace(unescapeRe, '$1'); + if (matchedChar === '#') { + operations.push({method:filterById, args:[token]}); + } else { + operations.push({method:filterByXType, args:[token, Boolean(tokenMatch[3])]}); + } + selector = selector.replace(tokenMatch[0], '').replace(stripLeadingSpaceRe, '$1'); + } + while (!(modeMatch = selector.match(modeRe))) { + for (i = 0; selector && i < length; i++) { + matcher = matchers[i]; + selectorMatch = selector.match(matcher.re); + method = matcher.method; + transform = matcher.argTransform; + if (selectorMatch) { + if (transform) { + args = transform(selectorMatch); + } else { + args = selectorMatch.slice(1); + } + operations.push({method:Ext.isString(matcher.method) ? Ext.functionFactory('items', Ext.String.format.apply(Ext.String, [method].concat(selectorMatch.slice(1)))) : matcher.method, args:args}); + selector = selector.replace(selectorMatch[0], '').replace(stripLeadingSpaceRe, '$1'); + break; + } + if (i === length - 1) { + Ext.raise('Invalid ComponentQuery selector: "' + arguments[0] + '"'); + } + } + } + if (modeMatch[1]) { + operations.push({mode:modeMatch[2] || modeMatch[1]}); + selector = selector.replace(modeMatch[0], '').replace(stripLeadingSpaceRe, ''); + } + } + return operations; + }}); + Ext.all = function() { + return cq.query.apply(cq, arguments); + }; + Ext.first = function() { + var matches = cq.query.apply(cq, arguments); + return matches && matches[0] || null; + }; +}); +Ext.define('Ext.Evented', {alternateClassName:'Ext.EventedBase', mixins:[Ext.mixin.Observable], initialized:false, constructor:function(config) { + this.mixins.observable.constructor.call(this, config); + this.initialized = true; +}, onClassExtended:function(cls, data) { + if (!data.hasOwnProperty('eventedConfig')) { + return; + } + var config = data.config, eventedConfig = data.eventedConfig, name, cfg; + if (config) { + Ext.applyIf(config, eventedConfig); + } else { + cls.addConfig(eventedConfig); + } + for (name in eventedConfig) { + if (eventedConfig.hasOwnProperty(name)) { + cfg = Ext.Config.get(name); + data[cfg.names.set] = cfg.eventedSetter || cfg.getEventedSetter(); + } + } +}}); +Ext.define('Ext.util.Positionable', {mixinId:'positionable', _positionTopLeft:['position', 'top', 'left'], _alignRe:/^([a-z]+)-([a-z]+)([?!])?$/, afterSetPosition:Ext.emptyFn, getAnchorToXY:function() { + Ext.raise('getAnchorToXY is not implemented in ' + this.$className); +}, getBorderPadding:function() { + Ext.raise('getBorderPadding is not implemented in ' + this.$className); +}, getLocalX:function() { + Ext.raise('getLocalX is not implemented in ' + this.$className); +}, getLocalXY:function() { + Ext.raise('getLocalXY is not implemented in ' + this.$className); +}, getLocalY:function() { + Ext.raise('getLocalY is not implemented in ' + this.$className); +}, getX:function() { + Ext.raise('getX is not implemented in ' + this.$className); +}, getXY:function() { + Ext.raise('getXY is not implemented in ' + this.$className); +}, getY:function() { + Ext.raise('getY is not implemented in ' + this.$className); +}, setLocalX:function() { + Ext.raise('setLocalX is not implemented in ' + this.$className); +}, setLocalXY:function() { + Ext.raise('setLocalXY is not implemented in ' + this.$className); +}, setLocalY:function() { + Ext.raise('setLocalY is not implemented in ' + this.$className); +}, setX:function() { + Ext.raise('setX is not implemented in ' + this.$className); +}, setXY:function() { + Ext.raise('setXY is not implemented in ' + this.$className); +}, setY:function() { + Ext.raise('setY is not implemented in ' + this.$className); +}, adjustForConstraints:function(xy, parent) { + var vector = this.getConstrainVector(parent, xy); + if (vector) { + xy[0] += vector[0]; + xy[1] += vector[1]; + } + return xy; +}, alignTo:function(element, position, offsets, animate) { + var me = this, el = me.el; + return me.setXY(me.getAlignToXY(element, position, offsets), el.anim && !!animate ? el.anim(animate) : false); +}, calculateAnchorXY:function(anchor, extraX, extraY, mySize) { + var me = this, el = me.el, doc = document, isViewport = el.dom === doc.body || el.dom === doc, round = Math.round, xy, myWidth, myHeight; + anchor = (anchor || 'tl').toLowerCase(); + mySize = mySize || {}; + myWidth = mySize.width || (isViewport ? Ext.Element.getViewportWidth() : me.getWidth()); + myHeight = mySize.height || (isViewport ? Ext.Element.getViewportHeight() : me.getHeight()); + switch(anchor) { + case 'tl': + xy = [0, 0]; + break; + case 'bl': + xy = [0, myHeight]; + break; + case 'tr': + xy = [myWidth, 0]; + break; + case 'c': + xy = [round(myWidth * 0.5), round(myHeight * 0.5)]; + break; + case 't': + xy = [round(myWidth * 0.5), 0]; + break; + case 'l': + xy = [0, round(myHeight * 0.5)]; + break; + case 'r': + xy = [myWidth, round(myHeight * 0.5)]; + break; + case 'b': + xy = [round(myWidth * 0.5), myHeight]; + break; + case 'tc': + xy = [round(myWidth * 0.5), 0]; + break; + case 'bc': + xy = [round(myWidth * 0.5), myHeight]; + break; + case 'br': + xy = [myWidth, myHeight]; + } + return [xy[0] + extraX, xy[1] + extraY]; +}, convertPositionSpec:Ext.identityFn, getAlignToXY:function(alignToEl, posSpec, offset) { + var me = this, constrainToEl, constrainTo, alignMatch, myPosition, alignToElPosition, myWidth, myHeight, alignToElRegion, swapY, swapX, constrain, align1, align2, p1y, p1x, p2y, p2x, x, y; + alignToEl = Ext.get(alignToEl.el || alignToEl); + if (!alignToEl || !alignToEl.dom) { + Ext.raise({sourceClass:'Ext.util.Positionable', sourceMethod:'getAlignToXY', msg:"Attempted to align an element that doesn't exist"}); + } + offset = offset || [0, 0]; + posSpec = (!posSpec || posSpec === '?' ? 'tl-bl?' : !/-/.test(posSpec) && posSpec !== '' ? 'tl-' + posSpec : posSpec || 'tl-bl').toLowerCase(); + posSpec = me.convertPositionSpec(posSpec); + alignMatch = posSpec.match(me._alignRe); + if (!alignMatch) { + Ext.raise({sourceClass:'Ext.util.Positionable', sourceMethod:'getAlignToXY', el:alignToEl, position:posSpec, offset:offset, msg:'Attemmpted to align an element with an invalid position: "' + posSpec + '"'}); + } + align1 = alignMatch[1]; + align2 = alignMatch[2]; + constrain = !!alignMatch[3]; + myPosition = me.getAnchorXY(align1, true); + alignToElPosition = me.getAnchorToXY(alignToEl, align2, false); + x = alignToElPosition[0] - myPosition[0] + offset[0]; + y = alignToElPosition[1] - myPosition[1] + offset[1]; + if (constrain) { + if (alignMatch[3] === '!') { + constrainToEl = alignToEl; + } else { + constrainToEl = me.constrainTo || me.container || me.el.parent(); + } + constrainToEl = Ext.get(constrainToEl.el || constrainToEl); + constrainTo = constrainToEl.getConstrainRegion(); + constrainTo.right = constrainTo.left + constrainToEl.el.dom.clientWidth; + myWidth = me.getWidth(); + myHeight = me.getHeight(); + alignToElRegion = alignToEl.getRegion(); + p1y = align1.charAt(0); + p1x = align1.charAt(align1.length - 1); + p2y = align2.charAt(0); + p2x = align2.charAt(align2.length - 1); + swapY = x < alignToElRegion.right && x + myWidth >= alignToElRegion.left && (p1y == 't' && p2y == 'b' || p1y == 'b' && p2y == 't'); + swapX = y < alignToElRegion.bottom && y + myHeight >= alignToElRegion.top && (p1x == 'r' && p2x == 'l' || p1x == 'l' && p2x == 'r'); + if (x + myWidth > constrainTo.right) { + if (swapX) { + x = alignToElRegion.left - myWidth; + swapX = false; + } else { + x = constrainTo.right - myWidth; + } + } + if (x < constrainTo.left) { + x = swapX ? alignToElRegion.right : constrainTo.left; + } + if (y + myHeight > constrainTo.bottom) { + if (swapY) { + y = alignToElRegion.top - myHeight; + swapY = false; + } else { + y = constrainTo.bottom - myHeight; + } + } + if (y < constrainTo.top) { + y = swapY ? alignToElRegion.bottom : constrainTo.top; + } + } + return [x, y]; +}, getAnchorXY:function(anchor, local, mySize) { + var me = this, myPos = me.getXY(), el = me.el, doc = document, isViewport = el.dom == doc.body || el.dom == doc, scroll = el.getScroll(), extraX = isViewport ? scroll.left : local ? 0 : myPos[0], extraY = isViewport ? scroll.top : local ? 0 : myPos[1]; + return me.calculateAnchorXY(anchor, extraX, extraY, mySize); +}, getBox:function(contentBox, local) { + var me = this, xy = local ? me.getLocalXY() : me.getXY(), x = xy[0], y = xy[1], w = me.getWidth(), h = me.getHeight(), borderPadding, beforeX, beforeY; + if (contentBox) { + borderPadding = me.getBorderPadding(); + beforeX = borderPadding.beforeX; + beforeY = borderPadding.beforeY; + x += beforeX; + y += beforeY; + w -= beforeX + borderPadding.afterX; + h -= beforeY + borderPadding.afterY; + } + return {x:x, left:x, 0:x, y:y, top:y, 1:y, width:w, height:h, right:x + w, bottom:y + h}; +}, calculateConstrainedPosition:function(constrainTo, proposedPosition, local, proposedSize) { + var me = this, vector, fp = me.floatParent, parentNode = fp ? fp.getTargetEl() : null, parentOffset, borderPadding, proposedConstrainPosition, xy = false, localXY; + if (local && fp) { + parentOffset = parentNode.getXY(); + borderPadding = parentNode.getBorderPadding(); + parentOffset[0] += borderPadding.beforeX; + parentOffset[1] += borderPadding.beforeY; + if (proposedPosition) { + proposedConstrainPosition = [proposedPosition[0] + parentOffset[0], proposedPosition[1] + parentOffset[1]]; + } + } else { + proposedConstrainPosition = proposedPosition; + } + constrainTo = constrainTo || me.constrainTo || parentNode || me.container || me.el.parent(); + if (local && proposedConstrainPosition) { + proposedConstrainPosition = me.reverseTranslateXY(proposedConstrainPosition); + } + vector = (me.constrainHeader && me.header.rendered ? me.header : me).getConstrainVector(constrainTo, proposedConstrainPosition, proposedSize); + if (vector) { + xy = proposedPosition || me.getPosition(local); + xy[0] += vector[0]; + xy[1] += vector[1]; + } + return xy; +}, getConstrainRegion:function() { + var me = this, el = me.el, isBody = el.dom.nodeName === 'BODY', dom = el.dom, borders = el.getBorders(), pos = el.getXY(), left = pos[0] + borders.beforeX, top = pos[1] + borders.beforeY, scroll, width, height; + if (isBody) { + scroll = el.getScroll(); + left = scroll.left; + top = scroll.top; + width = Ext.Element.getViewportWidth(); + height = Ext.Element.getViewportHeight(); + } else { + width = dom.clientWidth; + height = dom.clientHeight; + } + return new Ext.util.Region(top, left + width, top + height, left); +}, getConstrainVector:function(constrainTo, proposedPosition, proposedSize) { + var thisRegion = this.getRegion(), vector = [0, 0], shadowSize = this.shadow && this.constrainShadow && !this.shadowDisabled ? this.shadow.getShadowSize() : undefined, overflowed = false, constrainSize, constraintInsets = this.constraintInsets; + if (!(constrainTo instanceof Ext.util.Region)) { + constrainTo = Ext.get(constrainTo.el || constrainTo); + constrainSize = constrainTo.getViewSize(); + constrainTo = constrainTo.getConstrainRegion(); + constrainTo.right = constrainTo.left + constrainSize.width; + constrainTo.bottom = constrainTo.top + constrainSize.height; + } + if (constraintInsets) { + constraintInsets = Ext.isObject(constraintInsets) ? constraintInsets : Ext.Element.parseBox(constraintInsets); + constrainTo.adjust(constraintInsets.top, constraintInsets.right, constraintInsets.bottom, constraintInsets.left); + } + if (proposedPosition) { + thisRegion.translateBy(proposedPosition[0] - thisRegion.x, proposedPosition[1] - thisRegion.y); + } + if (proposedSize) { + thisRegion.right = thisRegion.left + proposedSize[0]; + thisRegion.bottom = thisRegion.top + proposedSize[1]; + } + if (shadowSize) { + constrainTo.adjust(shadowSize[0], -shadowSize[1], -shadowSize[2], shadowSize[3]); + } + if (thisRegion.right > constrainTo.right) { + overflowed = true; + vector[0] = constrainTo.right - thisRegion.right; + } + if (thisRegion.left + vector[0] < constrainTo.left) { + overflowed = true; + vector[0] = constrainTo.left - thisRegion.left; + } + if (thisRegion.bottom > constrainTo.bottom) { + overflowed = true; + vector[1] = constrainTo.bottom - thisRegion.bottom; + } + if (thisRegion.top + vector[1] < constrainTo.top) { + overflowed = true; + vector[1] = constrainTo.top - thisRegion.top; + } + return overflowed ? vector : false; +}, getOffsetsTo:function(offsetsTo) { + var o = this.getXY(), e = Ext.fly(offsetsTo.el || offsetsTo).getXY(); + return [o[0] - e[0], o[1] - e[1]]; +}, getRegion:function() { + var box = this.getBox(); + return new Ext.util.Region(box.top, box.right, box.bottom, box.left); +}, getClientRegion:function() { + var me = this, scrollbarSize, viewContentBox = me.getBox(), myDom = me.dom; + scrollbarSize = myDom.offsetWidth - myDom.clientWidth; + if (scrollbarSize) { + if (me.getStyle('direction') === 'rtl') { + viewContentBox.left += scrollbarSize; + } else { + viewContentBox.right -= scrollbarSize; + } + } + scrollbarSize = myDom.offsetHeight - myDom.clientHeight; + if (scrollbarSize) { + viewContentBox.bottom -= scrollbarSize; + } + return new Ext.util.Region(viewContentBox.top, viewContentBox.right, viewContentBox.bottom, viewContentBox.left); +}, getViewRegion:function() { + var me = this, el = me.el, isBody = el.dom.nodeName === 'BODY', borderPadding, scroll, pos, top, left, width, height; + if (isBody) { + scroll = el.getScroll(); + left = scroll.left; + top = scroll.top; + width = Ext.Element.getViewportWidth(); + height = Ext.Element.getViewportHeight(); + } else { + borderPadding = me.getBorderPadding(); + pos = me.getXY(); + left = pos[0] + borderPadding.beforeX; + top = pos[1] + borderPadding.beforeY; + width = me.getWidth(true); + height = me.getHeight(true); + } + return new Ext.util.Region(top, left + width, top + height, left); +}, move:function(direction, distance, animate) { + var me = this, xy = me.getXY(), x = xy[0], y = xy[1], left = [x - distance, y], right = [x + distance, y], top = [x, y - distance], bottom = [x, y + distance], hash = {l:left, left:left, r:right, right:right, t:top, top:top, up:top, b:bottom, bottom:bottom, down:bottom}; + direction = direction.toLowerCase(); + me.setXY([hash[direction][0], hash[direction][1]], animate); +}, setBox:function(box) { + var me = this, x, y; + if (box.isRegion) { + box = {x:box.left, y:box.top, width:box.right - box.left, height:box.bottom - box.top}; + } + me.constrainBox(box); + x = box.x; + y = box.y; + me.setXY([x, y]); + me.setSize(box.width, box.height); + me.afterSetPosition(x, y); + return me; +}, constrainBox:function(box) { + var me = this, constrainedPos, x, y; + if (me.constrain || me.constrainHeader) { + x = 'x' in box ? box.x : box.left; + y = 'y' in box ? box.y : box.top; + constrainedPos = me.calculateConstrainedPosition(null, [x, y], false, [box.width, box.height]); + if (constrainedPos) { + box.x = constrainedPos[0]; + box.y = constrainedPos[1]; + } + } +}, translatePoints:function(x, y) { + var pos = this.translateXY(x, y); + return {left:pos.x, top:pos.y}; +}, translateXY:function(x, y) { + var me = this, el = me.el, styles = el.getStyle(me._positionTopLeft), relative = styles.position === 'relative', left = parseFloat(styles.left), top = parseFloat(styles.top), xy = me.getXY(); + if (Ext.isArray(x)) { + y = x[1]; + x = x[0]; + } + if (isNaN(left)) { + left = relative ? 0 : el.dom.offsetLeft; + } + if (isNaN(top)) { + top = relative ? 0 : el.dom.offsetTop; + } + left = typeof x === 'number' ? x - xy[0] + left : undefined; + top = typeof y === 'number' ? y - xy[1] + top : undefined; + return {x:left, y:top}; +}, reverseTranslateXY:function(xy) { + var coords = xy, el = this.el, translatedXY = [], dom = el.dom, offsetParent = dom.offsetParent, relative, offsetParentXY, x, y; + if (offsetParent) { + relative = el.isStyle('position', 'relative'), offsetParentXY = Ext.fly(offsetParent).getXY(), x = xy[0] + offsetParentXY[0] + offsetParent.clientLeft; + y = xy[1] + offsetParentXY[1] + offsetParent.clientTop; + if (relative) { + x += el.getPadding('l'); + y += el.getPadding('t'); + } + coords = [x, y]; + } + return coords; +}}); +Ext.define('Ext.overrides.util.Positionable', {override:'Ext.util.Positionable', anchorTo:function(anchorToEl, alignment, offsets, animate, monitorScroll, callback) { + var me = this, scroll = !Ext.isEmpty(monitorScroll), action = function() { + me.alignTo(anchorToEl, alignment, offsets, animate); + Ext.callback(callback, me); + }, anchor = me.getAnchor(); + me.removeAnchor(); + Ext.apply(anchor, {fn:action, scroll:scroll}); + Ext.on('resize', action, null); + if (scroll) { + Ext.getWin().on('scroll', action, null, {buffer:!isNaN(monitorScroll) ? monitorScroll : 50}); + } + action(); + return me; +}, getAnchor:function() { + var el = this.el, data, anchor; + if (!el.dom) { + return; + } + data = el.getData(); + anchor = data._anchor; + if (!anchor) { + anchor = data._anchor = {}; + } + return anchor; +}, removeAnchor:function() { + var anchor = this.getAnchor(); + if (anchor && anchor.fn) { + Ext.un('resize', anchor.fn); + if (anchor.scroll) { + Ext.getWin().on('scroll', anchor.fn); + } + delete anchor.fn; + } + return this; +}, setBox:function(box, animate) { + var me = this; + if (box.isRegion) { + box = {x:box.left, y:box.top, width:box.right - box.left, height:box.bottom - box.top}; + } + if (animate) { + me.constrainBox(box); + me.animate(Ext.applyIf({to:box, listeners:{afteranimate:Ext.Function.bind(me.afterSetPosition, me, [box.x, box.y])}}, animate)); + } else { + me.callParent([box]); + } + return me; +}}); +Ext.define('Ext.dom.UnderlayPool', {constructor:function(elementConfig) { + this.elementConfig = elementConfig; + this.cache = []; +}, checkOut:function() { + var el = this.cache.shift(); + if (!el) { + el = Ext.Element.create(this.elementConfig); + el.setVisibilityMode(2); + el.dom.setAttribute('data-sticky', true); + } + return el; +}, checkIn:function(el) { + this.cache.push(el); +}, reset:function() { + var cache = this.cache, i = cache.length; + while (i--) { + cache[i].destroy(); + } + this.cache = []; +}}); +Ext.define('Ext.dom.Underlay', {constructor:function(config) { + Ext.apply(this, config); +}, beforeShow:Ext.emptyFn, getInsertionTarget:function() { + return this.target; +}, getPool:function() { + return this.pool || (this.self.prototype.pool = new Ext.dom.UnderlayPool(this.elementConfig)); +}, hide:function() { + var me = this, el = me.el; + if (el) { + el.hide(); + me.getPool().checkIn(el); + me.el = null; + me.hidden = true; + } +}, realign:function(x, y, width, height) { + var me = this, el = me.el, target = me.target, offsets = me.offsets, max = Math.max; + if (el) { + if (x == null) { + x = target.getX(); + } + if (y == null) { + y = target.getY(); + } + if (width == null) { + width = target.getWidth(); + } + if (height == null) { + height = target.getHeight(); + } + if (offsets) { + x = x + offsets.x; + y = y + offsets.y; + width = max(width + offsets.w, 0); + height = max(height + offsets.h, 0); + } + el.setXY([x, y]); + el.setSize(width, height); + } +}, setZIndex:function(zIndex) { + this.zIndex = zIndex; + if (this.el) { + this.el.setStyle('z-index', zIndex); + } +}, show:function() { + var me = this, target = me.target, zIndex = me.zIndex, el = me.el, insertionTarget = me.getInsertionTarget().dom, dom; + if (!el) { + el = me.el = me.getPool().checkOut(); + } + me.beforeShow(); + if (zIndex == null) { + zIndex = parseInt(target.getStyle('z-index'), 10); + } + if (zIndex) { + el.setStyle('z-index', zIndex); + } + el.setStyle('position', me.fixed ? 'fixed' : ''); + dom = el.dom; + if (dom.nextSibling !== insertionTarget) { + target.dom.parentNode.insertBefore(dom, insertionTarget); + } + el.show(); + me.realign(); + me.hidden = false; +}}); +Ext.define('Ext.dom.Shadow', {extend:Ext.dom.Underlay, alternateClassName:'Ext.Shadow', mode:'drop', offset:4, cls:Ext.baseCSSPrefix + (!Ext.supports.CSS3BoxShadow ? 'ie' : 'css') + '-shadow', constructor:function(config) { + var me = this, outerOffsets, offsets, offset, rad; + me.callParent([config]); + me.elementConfig = {cls:me.cls, role:'presentation'}; + offset = me.offset; + rad = Math.floor(offset / 2); + me.opacity = 50; + switch(me.mode.toLowerCase()) { + case 'drop': + outerOffsets = {x:0, y:0, w:offset, h:offset}; + if (Ext.supports.CSS3BoxShadow) { + offsets = {x:offset, y:offset, h:-offset, w:-offset}; + } else { + offsets = {x:-rad, y:-rad, h:-rad, w:-rad}; + } + break; + case 'sides': + outerOffsets = {x:-offset, y:0, w:offset * 2, h:offset}; + if (Ext.supports.CSS3BoxShadow) { + offsets = {x:0, y:offset, h:-offset, w:0}; + } else { + offsets = {x:1 + rad - 2 * offset, y:-(1 + rad), h:-1, w:rad - 1}; + } + break; + case 'frame': + outerOffsets = {x:-offset, y:-offset, w:offset * 2, h:offset * 2}; + if (Ext.supports.CSS3BoxShadow) { + offsets = {x:0, y:0, h:0, w:0}; + } else { + offsets = {x:1 + rad - 2 * offset, y:1 + rad - 2 * offset, h:offset - rad - 1, w:offset - rad - 1}; + } + break; + case 'bottom': + outerOffsets = {x:-offset, y:0, w:offset * 2, h:offset}; + if (Ext.supports.CSS3BoxShadow) { + offsets = {x:0, y:offset, h:-offset, w:0}; + } else { + offsets = {x:0, y:offset, h:0, w:0}; + } + break; + } + me.offsets = offsets; + me.outerOffsets = outerOffsets; +}, getShadowSize:function() { + var me = this, offset = me.el ? me.offset : 0, result = [offset, offset, offset, offset], mode = me.mode.toLowerCase(); + if (me.el && mode !== 'frame') { + result[0] = 0; + if (mode == 'drop') { + result[3] = 0; + } + } + return result; +}, boxShadowProperty:function() { + var property = 'boxShadow', style = document.documentElement.style; + if (!('boxShadow' in style)) { + if ('WebkitBoxShadow' in style) { + property = 'WebkitBoxShadow'; + } else { + if ('MozBoxShadow' in style) { + property = 'MozBoxShadow'; + } + } + } + return property; +}(), beforeShow:function() { + var me = this, style = me.el.dom.style, shim = me.shim; + if (Ext.supports.CSS3BoxShadow) { + style[me.boxShadowProperty] = '0 0 ' + (me.offset + 2) + 'px #888'; + } else { + style.filter = 'progid:DXImageTransform.Microsoft.alpha(opacity\x3d' + me.opacity + ') progid:DXImageTransform.Microsoft.Blur(pixelradius\x3d' + me.offset + ')'; + } + if (shim) { + shim.realign(); + } +}, setOpacity:function(opacity) { + var el = this.el; + if (el) { + if (Ext.isIE && !Ext.supports.CSS3BoxShadow) { + opacity = Math.floor(opacity * 100 / 2) / 100; + } + this.opacity = opacity; + el.setOpacity(opacity); + } +}}); +Ext.define('Ext.dom.Shim', {extend:Ext.dom.Underlay, cls:Ext.baseCSSPrefix + 'shim', constructor:function(config) { + this.callParent([config]); + this.elementConfig = {tag:'iframe', cls:this.cls, role:'presentation', frameBorder:'0', src:Ext.SSL_SECURE_URL, tabindex:'-1'}; +}, getInsertionTarget:function() { + var shadow = this.shadow; + return shadow && shadow.el || this.target; +}}); +Ext.define('Ext.dom.ElementEvent', {extend:Ext.util.Event, addListener:function(fn, scope, options, caller, manager) { + var me = this, added = false, name = me.name, captures, directs, directCaptures; + options = options || {}; + if (options.delegated === false || Ext.event.publisher.Dom.instance.directEvents[name]) { + if (options.capture) { + directCaptures = me.directCaptures || (me.directCaptures = new Ext.util.Event(me.observable, name)); + added = directCaptures.addListener(fn, scope, options, caller, manager); + } else { + directs = me.directs || (me.directs = new Ext.util.Event(me.observable, name)); + added = directs.addListener(fn, scope, options, caller, manager); + } + } else { + if (options.capture) { + captures = me.captures || (me.captures = new Ext.util.Event(me.observable, name)); + added = captures.addListener(fn, scope, options, caller, manager); + } else { + added = me.callParent([fn, scope, options, caller, manager]); + } + } + return added; +}, removeListener:function(fn, scope) { + var me = this, captures = me.captures, directs = me.directs, directCaptures = me.directCaptures, removed = false, index = me.findListener(fn, scope); + if (index !== -1) { + removed = me.callParent([fn, scope, index]); + } else { + if (directs) { + index = directs.findListener(fn, scope); + } + if (index !== -1) { + removed = directs.removeListener(fn, scope, index); + } else { + if (captures) { + index = captures.findListener(fn, scope); + } + if (index !== -1) { + removed = captures.removeListener(fn, scope, index); + } else { + if (directCaptures) { + index = directCaptures.findListener(fn, scope); + if (index !== -1) { + removed = directCaptures.removeListener(fn, scope, index); + } + } + } + } + } + return removed; +}, clearListeners:function() { + var me = this, directCaptures = me.directCaptures, directs = me.directs, captures = me.captures; + if (directCaptures) { + directCaptures.clearListeners(); + } + if (directs) { + directs.clearListeners(); + } + if (captures) { + captures.clearListeners(); + } + me.callParent(); +}, suspend:function() { + var me = this, directCaptures = me.directCaptures, directs = me.directs, captures = me.captures; + if (directCaptures) { + directCaptures.suspend(); + } + if (directs) { + directs.suspend(); + } + if (captures) { + captures.suspend(); + } + me.callParent(); +}, resume:function() { + var me = this, directCaptures = me.directCaptures, directs = me.directs, captures = me.captures; + if (directCaptures) { + directCaptures.resume(); + } + if (directs) { + directs.resume(); + } + if (captures) { + captures.resume(); + } + me.callParent(); +}}); +Ext.define('Ext.event.publisher.Publisher', {handledEvents:[], statics:{publishers:{}, publishersByEvent:{}}, constructor:function() { + var me = this, type = me.type; + me.handles = {}; + if (!type) { + Ext.raise("Event publisher '" + me.$className + "' defined without a 'type' property."); + } + if (me.self.instance) { + Ext.raise("Cannot create multiple instances of '" + me.$className + "'. " + "Use '" + me.$className + ".instance' to retrieve the singleton instance."); + } + me.registerEvents(); + Ext.event.publisher.Publisher.publishers[type] = me; +}, registerEvents:function(events) { + var me = this, publishersByEvent = Ext.event.publisher.Publisher.publishersByEvent, handledEvents = events || me.handledEvents, ln = handledEvents.length, eventName, i; + for (i = 0; i < ln; i++) { + eventName = handledEvents[i]; + me.handles[eventName] = 1; + publishersByEvent[eventName] = me; + } +}, subscribe:function() { + Ext.raise("Ext.event.publisher.Publisher subclass '" + this.$className + '" has no subscribe method.'); +}, unsubscribe:function() { + Ext.raise("Ext.event.publisher.Publisher subclass '" + this.$className + '" has no unsubscribe method.'); +}, fire:function(element, eventName, args) { + var event; + if (element.hasListeners[eventName]) { + event = element.events[eventName]; + if (event) { + event.fire.apply(event, args); + } + } +}}); +Ext.define('Ext.util.Offset', {statics:{fromObject:function(obj) { + return new this(obj.x, obj.y); +}}, constructor:function(x, y) { + this.x = x != null && !isNaN(x) ? x : 0; + this.y = y != null && !isNaN(y) ? y : 0; + return this; +}, copy:function() { + return new Ext.util.Offset(this.x, this.y); +}, copyFrom:function(p) { + this.x = p.x; + this.y = p.y; +}, toString:function() { + return 'Offset[' + this.x + ',' + this.y + ']'; +}, equals:function(offset) { + if (!(offset instanceof this.statics())) { + Ext.raise('Offset must be an instance of Ext.util.Offset'); + } + return this.x == offset.x && this.y == offset.y; +}, round:function(to) { + if (!isNaN(to)) { + var factor = Math.pow(10, to); + this.x = Math.round(this.x * factor) / factor; + this.y = Math.round(this.y * factor) / factor; + } else { + this.x = Math.round(this.x); + this.y = Math.round(this.y); + } +}, isZero:function() { + return this.x == 0 && this.y == 0; +}}); +Ext.define('Ext.util.Region', {isRegion:true, statics:{getRegion:function(el) { + return Ext.fly(el).getRegion(); +}, from:function(o) { + return new this(o.top, o.right, o.bottom, o.left); +}}, constructor:function(top, right, bottom, left) { + var me = this; + me.y = me.top = me[1] = top; + me.right = right; + me.bottom = bottom; + me.x = me.left = me[0] = left; +}, contains:function(region) { + var me = this; + return region.x >= me.x && region.right <= me.right && region.y >= me.y && region.bottom <= me.bottom; +}, intersect:function(region) { + var me = this, t = Math.max(me.y, region.y), r = Math.min(me.right, region.right), b = Math.min(me.bottom, region.bottom), l = Math.max(me.x, region.x); + if (b > t && r > l) { + return new this.self(t, r, b, l); + } else { + return false; + } +}, union:function(region) { + var me = this, t = Math.min(me.y, region.y), r = Math.max(me.right, region.right), b = Math.max(me.bottom, region.bottom), l = Math.min(me.x, region.x); + return new this.self(t, r, b, l); +}, constrainTo:function(r) { + var me = this, constrain = Ext.Number.constrain; + me.top = me.y = constrain(me.top, r.y, r.bottom); + me.bottom = constrain(me.bottom, r.y, r.bottom); + me.left = me.x = constrain(me.left, r.x, r.right); + me.right = constrain(me.right, r.x, r.right); + return me; +}, adjust:function(top, right, bottom, left) { + var me = this; + me.top = me.y += top; + me.left = me.x += left; + me.right += right; + me.bottom += bottom; + return me; +}, getOutOfBoundOffset:function(axis, p) { + if (!Ext.isObject(axis)) { + if (axis == 'x') { + return this.getOutOfBoundOffsetX(p); + } else { + return this.getOutOfBoundOffsetY(p); + } + } else { + p = axis; + var d = new Ext.util.Offset; + d.x = this.getOutOfBoundOffsetX(p.x); + d.y = this.getOutOfBoundOffsetY(p.y); + return d; + } +}, getOutOfBoundOffsetX:function(p) { + if (p <= this.x) { + return this.x - p; + } else { + if (p >= this.right) { + return this.right - p; + } + } + return 0; +}, getOutOfBoundOffsetY:function(p) { + if (p <= this.y) { + return this.y - p; + } else { + if (p >= this.bottom) { + return this.bottom - p; + } + } + return 0; +}, isOutOfBound:function(axis, p) { + if (!Ext.isObject(axis)) { + if (axis == 'x') { + return this.isOutOfBoundX(p); + } else { + return this.isOutOfBoundY(p); + } + } else { + p = axis; + return this.isOutOfBoundX(p.x) || this.isOutOfBoundY(p.y); + } +}, isOutOfBoundX:function(p) { + return p < this.x || p > this.right; +}, isOutOfBoundY:function(p) { + return p < this.y || p > this.bottom; +}, restrict:function(axis, p, factor) { + if (Ext.isObject(axis)) { + var newP; + factor = p; + p = axis; + if (p.copy) { + newP = p.copy(); + } else { + newP = {x:p.x, y:p.y}; + } + newP.x = this.restrictX(p.x, factor); + newP.y = this.restrictY(p.y, factor); + return newP; + } else { + if (axis == 'x') { + return this.restrictX(p, factor); + } else { + return this.restrictY(p, factor); + } + } +}, restrictX:function(p, factor) { + if (!factor) { + factor = 1; + } + if (p <= this.x) { + p -= (p - this.x) * factor; + } else { + if (p >= this.right) { + p -= (p - this.right) * factor; + } + } + return p; +}, restrictY:function(p, factor) { + if (!factor) { + factor = 1; + } + if (p <= this.y) { + p -= (p - this.y) * factor; + } else { + if (p >= this.bottom) { + p -= (p - this.bottom) * factor; + } + } + return p; +}, getSize:function() { + return {width:this.right - this.x, height:this.bottom - this.y}; +}, copy:function() { + return new this.self(this.y, this.right, this.bottom, this.x); +}, copyFrom:function(p) { + var me = this; + me.top = me.y = me[1] = p.y; + me.right = p.right; + me.bottom = p.bottom; + me.left = me.x = me[0] = p.x; + return this; +}, toString:function() { + return 'Region[' + this.top + ',' + this.right + ',' + this.bottom + ',' + this.left + ']'; +}, translateBy:function(x, y) { + if (arguments.length == 1) { + y = x.y; + x = x.x; + } + var me = this; + me.top = me.y += y; + me.right += x; + me.bottom += y; + me.left = me.x += x; + return me; +}, round:function() { + var me = this; + me.top = me.y = Math.round(me.y); + me.right = Math.round(me.right); + me.bottom = Math.round(me.bottom); + me.left = me.x = Math.round(me.x); + return me; +}, equals:function(region) { + return this.top === region.top && this.right === region.right && this.bottom === region.bottom && this.left === region.left; +}}); +Ext.define('Ext.util.Point', {extend:Ext.util.Region, radianToDegreeConstant:180 / Math.PI, origin:{x:0, y:0}, statics:{fromEvent:function(e) { + var changedTouches = e.changedTouches, touch = changedTouches && changedTouches.length > 0 ? changedTouches[0] : e; + return this.fromTouch(touch); +}, fromTouch:function(touch) { + return new this(touch.pageX, touch.pageY); +}, from:function(object) { + if (!object) { + return new this(0, 0); + } + if (!(object instanceof this)) { + return new this(object.x, object.y); + } + return object; +}}, constructor:function(x, y) { + if (x == null) { + x = 0; + } + if (y == null) { + y = 0; + } + this.callParent([y, x, y, x]); +}, clone:function() { + return new this.self(this.x, this.y); +}, copy:function() { + return this.clone.apply(this, arguments); +}, copyFrom:function(point) { + this.x = point.x; + this.y = point.y; + return this; +}, toString:function() { + return 'Point[' + this.x + ',' + this.y + ']'; +}, equals:function(point) { + return this.x === point.x && this.y === point.y; +}, isCloseTo:function(point, threshold) { + if (typeof threshold == 'number') { + return this.getDistanceTo(point) <= threshold; + } + var x = point.x, y = point.y, thresholdX = threshold.x, thresholdY = threshold.y; + return this.x <= x + thresholdX && this.x >= x - thresholdX && this.y <= y + thresholdY && this.y >= y - thresholdY; +}, isWithin:function() { + return this.isCloseTo.apply(this, arguments); +}, isContainedBy:function(region) { + if (!(region instanceof Ext.util.Region)) { + region = Ext.get(region.el || region).getRegion(); + } + return region.contains(this); +}, roundedEquals:function(point) { + if (!point || typeof point !== 'object') { + point = this.origin; + } + return Math.round(this.x) === Math.round(point.x) && Math.round(this.y) === Math.round(point.y); +}, getDistanceTo:function(point) { + if (!point || typeof point !== 'object') { + point = this.origin; + } + var deltaX = this.x - point.x, deltaY = this.y - point.y; + return Math.sqrt(deltaX * deltaX + deltaY * deltaY); +}, getAngleTo:function(point) { + if (!point || typeof point !== 'object') { + point = this.origin; + } + var deltaX = this.x - point.x, deltaY = this.y - point.y; + return Math.atan2(deltaY, deltaX) * this.radianToDegreeConstant; +}}, function() { + this.prototype.translate = this.prototype.translateBy; +}); +Ext.define('Ext.event.Event', {alternateClassName:'Ext.EventObjectImpl', isStopped:false, defaultPrevented:false, isEvent:true, statics:{resolveTextNode:function(node) { + return node && node.nodeType === 3 ? node.parentNode : node; +}, pointerEvents:{pointerdown:1, pointermove:1, pointerup:1, pointercancel:1, pointerover:1, pointerout:1, pointerenter:1, pointerleave:1, MSPointerDown:1, MSPointerMove:1, MSPointerUp:1, MSPointerOver:1, MSPointerOut:1, MSPointerCancel:1, MSPointerEnter:1, MSPointerLeave:1}, mouseEvents:{mousedown:1, mousemove:1, mouseup:1, mouseover:1, mouseout:1, mouseenter:1, mouseleave:1}, clickEvents:{click:1, dblclick:1}, touchEvents:{touchstart:1, touchmove:1, touchend:1, touchcancel:1}, focusEvents:{focus:1, +blur:1, focusin:1, focusout:1, focusenter:1, focusleave:1}, pointerTypes:{2:'touch', 3:'pen', 4:'mouse', touch:'touch', pen:'pen', mouse:'mouse'}}, constructor:function(event) { + var me = this, self = me.self, resolveTextNode = me.self.resolveTextNode, changedTouches = event.changedTouches, coordinateOwner = changedTouches ? changedTouches[0] : event, type = event.type, pointerType, relatedTarget; + me.pageX = coordinateOwner.pageX; + me.pageY = coordinateOwner.pageY; + me.target = me.delegatedTarget = resolveTextNode(event.target); + relatedTarget = event.relatedTarget; + if (relatedTarget) { + me.relatedTarget = resolveTextNode(relatedTarget); + } + me.browserEvent = me.event = event; + me.type = type; + me.button = event.button || 0; + me.shiftKey = event.shiftKey; + me.ctrlKey = event.ctrlKey || event.metaKey || false; + me.altKey = event.altKey; + me.charCode = event.charCode; + me.keyCode = event.keyCode; + me.buttons = event.buttons; + if (me.button === 0 && me.buttons === 0) { + me.buttons = 1; + } + if (self.forwardTab !== undefined && self.focusEvents[type]) { + me.forwardTab = self.forwardTab; + } + if (self.mouseEvents[type] || self.clickEvents[type]) { + pointerType = 'mouse'; + } else { + if (self.pointerEvents[type]) { + pointerType = self.pointerTypes[event.pointerType]; + } else { + if (self.touchEvents[type]) { + pointerType = 'touch'; + } + } + } + if (pointerType) { + me.pointerType = pointerType; + } + me.timeStamp = me.time = +(event.timeStamp || new Date); +}, chain:function(props) { + var e = Ext.Object.chain(this); + e.parentEvent = this; + return Ext.apply(e, props); +}, correctWheelDelta:function(delta) { + var scale = this.WHEEL_SCALE, ret = Math.round(delta / scale); + if (!ret && delta) { + ret = delta < 0 ? -1 : 1; + } + return ret; +}, getCharCode:function() { + return this.charCode || this.keyCode; +}, getKey:function() { + return this.keyCode || this.charCode; +}, getKeyName:function() { + return this.keyCodes[this.keyCode]; +}, getPoint:function() { + var xy = this.getXY(); + return new Ext.util.Point(xy[0], xy[1]); +}, getRelatedTarget:function(selector, maxDepth, returnEl) { + var relatedTarget = this.relatedTarget, target = null; + if (relatedTarget) { + if (selector) { + target = Ext.fly(relatedTarget).findParent(selector, maxDepth, returnEl); + } else { + target = returnEl ? Ext.get(relatedTarget) : relatedTarget; + } + } + return target; +}, getTarget:function(selector, maxDepth, returnEl) { + return selector ? Ext.fly(this.target).findParent(selector, maxDepth, returnEl) : returnEl ? Ext.get(this.target) : this.target; +}, getTime:function() { + return this.time; +}, getWheelDelta:function() { + var deltas = this.getWheelDeltas(); + return deltas.y; +}, getWheelDeltas:function() { + var me = this, event = me.browserEvent, dx = 0, dy = 0; + if (Ext.isDefined(event.wheelDeltaX)) { + dx = event.wheelDeltaX; + dy = event.wheelDeltaY; + } else { + if (event.wheelDelta) { + dy = event.wheelDelta; + } else { + if (event.detail) { + dy = -event.detail; + if (dy > 100) { + dy = 3; + } else { + if (dy < -100) { + dy = -3; + } + } + if (Ext.isDefined(event.axis) && event.axis === event.HORIZONTAL_AXIS) { + dx = dy; + dy = 0; + } + } + } + } + return {x:me.correctWheelDelta(dx), y:me.correctWheelDelta(dy)}; +}, getX:function() { + return this.getXY()[0]; +}, getXY:function() { + var me = this, xy = me.xy; + if (!xy) { + xy = me.xy = [me.pageX, me.pageY]; + var x = xy[0], browserEvent, doc, docEl, body; + if (!x && x !== 0) { + browserEvent = me.browserEvent; + doc = document; + docEl = doc.documentElement; + body = doc.body; + xy[0] = browserEvent.clientX + (docEl && docEl.scrollLeft || body && body.scrollLeft || 0) - (docEl && docEl.clientLeft || body && body.clientLeft || 0); + xy[1] = browserEvent.clientY + (docEl && docEl.scrollTop || body && body.scrollTop || 0) - (docEl && docEl.clientTop || body && body.clientTop || 0); + } + } + return xy; +}, getY:function() { + return this.getXY()[1]; +}, hasModifier:function() { + var me = this; + return !!(me.ctrlKey || me.altKey || me.shiftKey || me.metaKey); +}, isNavKeyPress:function(scrollableOnly) { + var me = this, k = me.keyCode, isKeyPress = me.type === 'keypress'; + return (!isKeyPress || Ext.isGecko) && k >= 33 && k <= 40 || !scrollableOnly && (k === me.RETURN || k === me.TAB || k === me.ESC); +}, isSpecialKey:function() { + var me = this, k = me.keyCode, isGecko = Ext.isGecko, isKeyPress = me.type === 'keypress'; + return isGecko && isKeyPress && me.charCode === 0 || this.isNavKeyPress() || k === me.BACKSPACE || k === me.ENTER || k >= 16 && k <= 20 || (!isKeyPress || isGecko) && k >= 44 && k <= 46; +}, makeUnpreventable:function() { + this.browserEvent.preventDefault = Ext.emptyFn; +}, preventDefault:function() { + var me = this, parentEvent = me.parentEvent; + me.defaultPrevented = true; + if (parentEvent) { + parentEvent.defaultPrevented = true; + } + me.browserEvent.preventDefault(); + return me; +}, setCurrentTarget:function(target) { + this.currentTarget = this.delegatedTarget = target; +}, stopEvent:function() { + return this.preventDefault().stopPropagation(); +}, stopPropagation:function() { + var me = this, browserEvent = me.browserEvent, parentEvent = me.parentEvent; + me.isStopped = true; + if (parentEvent) { + parentEvent.isStopped = true; + } + if (!browserEvent.stopPropagation) { + browserEvent.cancelBubble = true; + return me; + } + browserEvent.stopPropagation(); + return me; +}, within:function(el, related, allowEl) { + var t; + if (el) { + t = related ? this.getRelatedTarget() : this.getTarget(); + } + return t ? Ext.fly(el).contains(t) || !!(allowEl && t === Ext.getDom(el)) : false; +}, deprecated:{'4.0':{methods:{getPageX:'getX', getPageY:'getY'}}}}, function(Event) { + var prototype = Event.prototype, constants = {BACKSPACE:8, TAB:9, NUM_CENTER:12, ENTER:13, RETURN:13, SHIFT:16, CTRL:17, ALT:18, PAUSE:19, CAPS_LOCK:20, ESC:27, SPACE:32, PAGE_UP:33, PAGE_DOWN:34, END:35, HOME:36, LEFT:37, UP:38, RIGHT:39, DOWN:40, PRINT_SCREEN:44, INSERT:45, DELETE:46, ZERO:48, ONE:49, TWO:50, THREE:51, FOUR:52, FIVE:53, SIX:54, SEVEN:55, EIGHT:56, NINE:57, A:65, B:66, C:67, D:68, E:69, F:70, G:71, H:72, I:73, J:74, K:75, L:76, M:77, N:78, O:79, P:80, Q:81, R:82, S:83, T:84, U:85, + V:86, W:87, X:88, Y:89, Z:90, CONTEXT_MENU:93, NUM_ZERO:96, NUM_ONE:97, NUM_TWO:98, NUM_THREE:99, NUM_FOUR:100, NUM_FIVE:101, NUM_SIX:102, NUM_SEVEN:103, NUM_EIGHT:104, NUM_NINE:105, NUM_MULTIPLY:106, NUM_PLUS:107, NUM_MINUS:109, NUM_PERIOD:110, NUM_DIVISION:111, F1:112, F2:113, F3:114, F4:115, F5:116, F6:117, F7:118, F8:119, F9:120, F10:121, F11:122, F12:123, WHEEL_SCALE:function() { + var scale; + if (Ext.isGecko) { + scale = 3; + } else { + if (Ext.isMac) { + if (Ext.isSafari && Ext.webKitVersion >= 532) { + scale = 120; + } else { + scale = 12; + } + scale *= 3; + } else { + scale = 120; + } + } + return scale; + }()}, keyCodes = {}, keyName, keyCode; + Ext.apply(Event, constants); + Ext.apply(prototype, constants); + delete constants.WHEEL_SCALE; + delete constants.RETURN; + for (keyName in constants) { + keyCode = constants[keyName]; + keyCodes[keyCode] = keyName; + } + prototype.keyCodes = keyCodes; + prototype.getTrueXY = prototype.getXY; +}); +Ext.define('Ext.overrides.event.Event', {override:'Ext.event.Event', mousedownEvents:{mousedown:1, pointerdown:1, touchstart:1}, injectEvent:function() { + var API, dispatchers = {}, crazyIEButtons; + if (!Ext.isIE9m && document.createEvent) { + API = {createHtmlEvent:function(doc, type, bubbles, cancelable) { + var event = doc.createEvent('HTMLEvents'); + event.initEvent(type, bubbles, cancelable); + return event; + }, createMouseEvent:function(doc, type, bubbles, cancelable, detail, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) { + var event = doc.createEvent('MouseEvents'), view = doc.defaultView || window; + if (event.initMouseEvent) { + event.initMouseEvent(type, bubbles, cancelable, view, detail, clientX, clientY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget); + } else { + event = doc.createEvent('UIEvents'); + event.initEvent(type, bubbles, cancelable); + event.view = view; + event.detail = detail; + event.screenX = clientX; + event.screenY = clientY; + event.clientX = clientX; + event.clientY = clientY; + event.ctrlKey = ctrlKey; + event.altKey = altKey; + event.metaKey = metaKey; + event.shiftKey = shiftKey; + event.button = button; + event.relatedTarget = relatedTarget; + } + return event; + }, createUIEvent:function(doc, type, bubbles, cancelable, detail) { + var event = doc.createEvent('UIEvents'), view = doc.defaultView || window; + event.initUIEvent(type, bubbles, cancelable, view, detail); + return event; + }, fireEvent:function(target, type, event) { + target.dispatchEvent(event); + }}; + } else { + if (document.createEventObject) { + crazyIEButtons = {0:1, 1:4, 2:2}; + API = {createHtmlEvent:function(doc, type, bubbles, cancelable) { + var event = doc.createEventObject(); + event.bubbles = bubbles; + event.cancelable = cancelable; + return event; + }, createMouseEvent:function(doc, type, bubbles, cancelable, detail, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) { + var event = doc.createEventObject(); + event.bubbles = bubbles; + event.cancelable = cancelable; + event.detail = detail; + event.screenX = clientX; + event.screenY = clientY; + event.clientX = clientX; + event.clientY = clientY; + event.ctrlKey = ctrlKey; + event.altKey = altKey; + event.shiftKey = shiftKey; + event.metaKey = metaKey; + event.button = crazyIEButtons[button] || button; + event.relatedTarget = relatedTarget; + return event; + }, createUIEvent:function(doc, type, bubbles, cancelable, detail) { + var event = doc.createEventObject(); + event.bubbles = bubbles; + event.cancelable = cancelable; + return event; + }, fireEvent:function(target, type, event) { + target.fireEvent('on' + type, event); + }}; + } + } + Ext.Object.each({load:[false, false], unload:[false, false], select:[true, false], change:[true, false], submit:[true, true], reset:[true, false], resize:[true, false], scroll:[true, false]}, function(name, value) { + var bubbles = value[0], cancelable = value[1]; + dispatchers[name] = function(targetEl, srcEvent) { + var e = API.createHtmlEvent(name, bubbles, cancelable); + API.fireEvent(targetEl, name, e); + }; + }); + function createMouseEventDispatcher(type, detail) { + var cancelable = type !== 'mousemove'; + return function(targetEl, srcEvent) { + var xy = srcEvent.getXY(), e = API.createMouseEvent(targetEl.ownerDocument, type, true, cancelable, detail, xy[0], xy[1], srcEvent.ctrlKey, srcEvent.altKey, srcEvent.shiftKey, srcEvent.metaKey, srcEvent.button, srcEvent.relatedTarget); + API.fireEvent(targetEl, type, e); + }; + } + Ext.each(['click', 'dblclick', 'mousedown', 'mouseup', 'mouseover', 'mousemove', 'mouseout'], function(eventName) { + dispatchers[eventName] = createMouseEventDispatcher(eventName, 1); + }); + Ext.Object.each({focusin:[true, false], focusout:[true, false], activate:[true, true], focus:[false, false], blur:[false, false]}, function(name, value) { + var bubbles = value[0], cancelable = value[1]; + dispatchers[name] = function(targetEl, srcEvent) { + var e = API.createUIEvent(targetEl.ownerDocument, name, bubbles, cancelable, 1); + API.fireEvent(targetEl, name, e); + }; + }); + if (!API) { + dispatchers = {}; + API = {}; + } + function cannotInject(target, srcEvent) { + } + return function(target) { + var me = this, dispatcher = dispatchers[me.type] || cannotInject, t = target ? target.dom || target : me.getTarget(); + dispatcher(t, me); + }; +}(), preventDefault:function() { + var me = this, event = me.browserEvent, parentEvent = me.parentEvent, unselectable, target; + if (typeof event.type !== 'unknown') { + me.defaultPrevented = true; + if (parentEvent) { + parentEvent.defaultPrevented = true; + } + if (event.preventDefault) { + event.preventDefault(); + } else { + if (event.type === 'mousedown') { + target = event.target; + unselectable = target.getAttribute('unselectable'); + if (unselectable !== 'on') { + target.setAttribute('unselectable', 'on'); + Ext.defer(function() { + target.setAttribute('unselectable', unselectable); + }, 1); + } + } + event.returnValue = false; + if (event.ctrlKey || event.keyCode > 111 && event.keyCode < 124) { + event.keyCode = -1; + } + } + } + return me; +}, stopPropagation:function() { + var me = this, event = me.browserEvent; + if (typeof event.type !== 'unknown') { + if (me.mousedownEvents[me.type]) { + Ext.GlobalEvents.fireMouseDown(me); + } + me.callParent(); + } + return me; +}, deprecated:{'5.0':{methods:{clone:function() { + return new this.self(this.browserEvent, this); +}}}}}, function() { + var Event = this, btnMap, onKeyDown = function(e) { + if (e.keyCode === 9) { + Event.forwardTab = !e.shiftKey; + } + }, onKeyUp = function(e) { + if (e.keyCode === 9) { + delete Event.forwardTab; + } + }; + if (Ext.isIE9m) { + btnMap = {0:0, 1:0, 4:1, 2:2}; + Event.override({statics:{enableIEAsync:function(browserEvent) { + var name, fakeEvent = {}; + for (name in browserEvent) { + fakeEvent[name] = browserEvent[name]; + } + return fakeEvent; + }}, constructor:function(event, info, touchesMap, identifiers) { + var me = this; + me.callParent([event, info, touchesMap, identifiers]); + me.button = btnMap[event.button]; + if (event.type === 'contextmenu') { + me.button = 2; + } + me.toElement = event.toElement; + me.fromElement = event.fromElement; + }, mouseLeaveRe:/(mouseout|mouseleave)/, mouseEnterRe:/(mouseover|mouseenter)/, enableIEAsync:function(browserEvent) { + this.browserEvent = this.self.enableIEAsync(browserEvent); + }, getRelatedTarget:function(selector, maxDepth, returnEl) { + var me = this, type, target; + if (!me.relatedTarget) { + type = me.type; + if (me.mouseLeaveRe.test(type)) { + target = me.toElement; + } else { + if (me.mouseEnterRe.test(type)) { + target = me.fromElement; + } + } + if (target) { + me.relatedTarget = me.self.resolveTextNode(target); + } + } + return me.callParent([selector, maxDepth, returnEl]); + }}); + document.attachEvent('onkeydown', onKeyDown); + document.attachEvent('onkeyup', onKeyUp); + window.attachEvent('onunload', function() { + document.detachEvent('onkeydown', onKeyDown); + document.detachEvent('onkeyup', onKeyUp); + }); + } else { + if (document.addEventListener) { + document.addEventListener('keydown', onKeyDown, true); + document.addEventListener('keyup', onKeyUp, true); + } + } +}); +Ext.define('Ext.event.publisher.Dom', {extend:Ext.event.publisher.Publisher, type:'dom', handledDomEvents:[], reEnterCount:0, captureEvents:{animationstart:1, animationend:1, resize:1, focus:1, blur:1, scroll:1}, directEvents:{mouseenter:1, mouseleave:1, pointerenter:1, pointerleave:1, MSPointerEnter:1, MSPointerLeave:1, load:1, unload:1, beforeunload:1, error:1, DOMContentLoaded:1, DOMFrameContentLoaded:1, hashchange:1}, blockedPointerEvents:{pointerover:1, pointerout:1, pointerenter:1, pointerleave:1, +MSPointerOver:1, MSPointerOut:1, MSPointerEnter:1, MSPointerLeave:1}, blockedCompatibilityMouseEvents:{mouseenter:1, mouseleave:1}, constructor:function() { + var me = this; + me.bubbleSubscribers = {}; + me.captureSubscribers = {}; + me.directSubscribers = {}; + me.directCaptureSubscribers = {}; + me.delegatedListeners = {}; + me.initHandlers(); + Ext.onInternalReady(me.onReady, me); + me.callParent(); +}, registerEvents:function() { + var me = this, publishersByEvent = Ext.event.publisher.Publisher.publishersByEvent, domEvents = me.handledDomEvents, ln = domEvents.length, i = 0, eventName; + for (; i < ln; i++) { + eventName = domEvents[i]; + me.handles[eventName] = 1; + publishersByEvent[eventName] = me; + } + this.callParent(); +}, onReady:function() { + var me = this, domEvents = me.handledDomEvents, ln, i; + if (domEvents) { + for (i = 0, ln = domEvents.length; i < ln; i++) { + me.addDelegatedListener(domEvents[i]); + } + } + Ext.getWin().on('unload', me.destroy, me); +}, initHandlers:function() { + var me = this; + me.onDelegatedEvent = Ext.bind(me.onDelegatedEvent, me); + me.onDirectEvent = Ext.bind(me.onDirectEvent, me); + me.onDirectCaptureEvent = Ext.bind(me.onDirectCaptureEvent, me); +}, addDelegatedListener:function(eventName) { + this.delegatedListeners[eventName] = 1; + this.target.addEventListener(eventName, this.onDelegatedEvent, !!this.captureEvents[eventName]); +}, removeDelegatedListener:function(eventName) { + delete this.delegatedListeners[eventName]; + this.target.removeEventListener(eventName, this.onDelegatedEvent, !!this.captureEvents[eventName]); +}, addDirectListener:function(eventName, element, capture) { + element.dom.addEventListener(eventName, capture ? this.onDirectCaptureEvent : this.onDirectEvent, capture); +}, removeDirectListener:function(eventName, element, capture) { + element.dom.removeEventListener(eventName, capture ? this.onDirectCaptureEvent : this.onDirectEvent, capture); +}, subscribe:function(element, eventName, delegated, capture) { + var me = this, subscribers, id; + if (delegated && !me.directEvents[eventName]) { + subscribers = capture ? me.captureSubscribers : me.bubbleSubscribers; + if (!me.handles[eventName] && !me.delegatedListeners[eventName]) { + me.addDelegatedListener(eventName); + } + if (subscribers[eventName]) { + ++subscribers[eventName]; + } else { + subscribers[eventName] = 1; + } + } else { + subscribers = capture ? me.directCaptureSubscribers : me.directSubscribers; + id = element.id; + subscribers = subscribers[eventName] || (subscribers[eventName] = {}); + if (subscribers[id]) { + ++subscribers[id]; + } else { + subscribers[id] = 1; + me.addDirectListener(eventName, element, capture); + } + } +}, unsubscribe:function(element, eventName, delegated, capture) { + var me = this, captureSubscribers, bubbleSubscribers, subscribers, id; + if (delegated && !me.directEvents[eventName]) { + captureSubscribers = me.captureSubscribers; + bubbleSubscribers = me.bubbleSubscribers; + subscribers = capture ? captureSubscribers : bubbleSubscribers; + if (subscribers[eventName]) { + --subscribers[eventName]; + } + if (!me.handles[eventName] && !bubbleSubscribers[eventName] && !captureSubscribers[eventName]) { + this.removeDelegatedListener(eventName); + } + } else { + subscribers = capture ? me.directCaptureSubscribers : me.directSubscribers; + id = element.id; + subscribers = subscribers[eventName]; + if (subscribers[id]) { + --subscribers[id]; + } + if (!subscribers[id]) { + delete subscribers[id]; + me.removeDirectListener(eventName, element, capture); + } + } +}, getPropagatingTargets:function(target) { + var currentNode = target, targets = [], parentNode; + while (currentNode) { + targets.push(currentNode); + parentNode = currentNode.parentNode; + if (!parentNode) { + parentNode = currentNode.defaultView; + } + currentNode = parentNode; + } + return targets; +}, publish:function(eventName, target, e) { + var me = this, targets, el, i, ln; + if (Ext.isArray(target)) { + targets = target; + } else { + if (me.captureEvents[eventName]) { + el = Ext.cache[target.id]; + targets = el ? [el] : []; + } else { + targets = me.getPropagatingTargets(target); + } + } + ln = targets.length; + if (me.captureSubscribers[eventName]) { + for (i = ln; i--;) { + el = Ext.cache[targets[i].id]; + if (el) { + me.fire(el, eventName, e, false, true); + if (e.isStopped) { + break; + } + } + } + } + if (!e.isStopped && me.bubbleSubscribers[eventName]) { + for (i = 0; i < ln; i++) { + el = Ext.cache[targets[i].id]; + if (el) { + me.fire(el, eventName, e, false, false); + if (e.isStopped) { + break; + } + } + } + } +}, fire:function(element, eventName, e, direct, capture) { + var event; + if (element.hasListeners[eventName]) { + event = element.events[eventName]; + if (event) { + if (capture && direct) { + event = event.directCaptures; + } else { + if (capture) { + event = event.captures; + } else { + if (direct) { + event = event.directs; + } + } + } + if (event) { + e.setCurrentTarget(element.dom); + event.fire(e, e.target); + } + } + } +}, onDelegatedEvent:function(e) { + if (Ext.elevateFunction) { + Ext.elevateFunction(this.doDelegatedEvent, this, [e]); + } else { + this.doDelegatedEvent(e); + } +}, doDelegatedEvent:function(e, invokeAfter) { + var me = this, timeStamp = e.timeStamp; + e = new Ext.event.Event(e); + if (me.isEventBlocked(e)) { + return false; + } + me.beforeEvent(e); + Ext.frameStartTime = timeStamp; + me.reEnterCount++; + me.publish(e.type, e.target, e); + me.reEnterCount--; + if (invokeAfter !== false) { + me.afterEvent(e); + } + return e; +}, onDirectEvent:function(e) { + if (Ext.elevateFunction) { + Ext.elevateFunction(this.doDirectEvent, this, [e, false]); + } else { + this.doDirectEvent(e, false); + } +}, onDirectCaptureEvent:function(e) { + if (Ext.elevateFunction) { + Ext.elevateFunction(this.doDirectEvent, this, [e, true]); + } else { + this.doDirectEvent(e, true); + } +}, doDirectEvent:function(e, capture) { + var me = this, currentTarget = e.currentTarget, timeStamp = e.timeStamp, el; + e = new Ext.event.Event(e); + if (me.isEventBlocked(e)) { + return; + } + me.beforeEvent(e); + Ext.frameStartTime = timeStamp; + el = Ext.cache[currentTarget.id]; + if (el) { + me.reEnterCount++; + me.fire(el, e.type, e, true, capture); + me.reEnterCount--; + } + me.afterEvent(e); +}, beforeEvent:function(e) { + var browserEvent = e.browserEvent, self = Ext.event.publisher.Dom, touches, touch; + if (browserEvent.type === 'touchstart') { + touches = browserEvent.touches; + if (touches.length === 1) { + touch = touches[0]; + self.lastTouchStartX = touch.pageX; + self.lastTouchStartY = touch.pageY; + } + } +}, afterEvent:function(e) { + var browserEvent = e.browserEvent, type = browserEvent.type, self = Ext.event.publisher.Dom, GlobalEvents = Ext.GlobalEvents; + if (e.self.pointerEvents[type] && e.pointerType !== 'mouse') { + self.lastScreenPointerEventTime = Ext.now(); + } + if (type === 'touchend') { + self.lastTouchEndTime = Ext.now(); + } + if (!this.reEnterCount && GlobalEvents.hasListeners.idle && !GlobalEvents.idleEventMask[type]) { + GlobalEvents.fireEvent('idle'); + } +}, isEventBlocked:function(e) { + var me = this, type = e.type, self = Ext.event.publisher.Dom, now = Ext.now(); + if (Ext.isGecko && e.type === 'click' && e.button === 2) { + return true; + } + return me.blockedPointerEvents[type] && e.pointerType !== 'mouse' || me.blockedCompatibilityMouseEvents[type] && now - self.lastScreenPointerEventTime < 1000 || Ext.supports.TouchEvents && e.self.mouseEvents[e.type] && Math.abs(e.pageX - self.lastTouchStartX) < 15 && Math.abs(e.pageY - self.lastTouchStartY) < 15 && Ext.now() - self.lastTouchEndTime < 1000; +}, destroy:function() { + var eventName; + for (eventName in this.delegatedListeners) { + this.removeDelegatedListener(eventName); + } + this.callParent(); +}, reset:function() { + var self = Ext.event.publisher.Dom; + self.lastScreenPointerEventTime = self.lastTouchEndTime = self.lastTouchStartX = self.lastTouchStartY = undefined; +}}, function(Dom) { + var doc = document, defaultView = doc.defaultView, prototype = Dom.prototype; + if (Ext.os.is.iOS && Ext.os.version.getMajor() < 5 || Ext.browser.is.AndroidStock || !(defaultView && defaultView.addEventListener)) { + prototype.target = doc; + } else { + prototype.target = defaultView; + } + Dom.instance = new Dom; +}); +Ext.define('Ext.overrides.event.publisher.Dom', {override:'Ext.event.publisher.Dom'}, function(DomPublisher) { + if (Ext.isIE9m) { + var docElement = document.documentElement, docBody = document.body, prototype = DomPublisher.prototype, onDirectEvent, onDirectCaptureEvent; + prototype.target = document; + prototype.directBoundListeners = {}; + onDirectEvent = function(e, publisher, capture) { + e.target = e.srcElement || window; + e.currentTarget = this; + if (capture) { + publisher.onDirectCaptureEvent(e); + } else { + publisher.onDirectEvent(e); + } + }; + onDirectCaptureEvent = function(e, publisher) { + e.target = e.srcElement || window; + e.currentTarget = this; + publisher.onDirectCaptureEvent(e); + }; + DomPublisher.override({addDelegatedListener:function(eventName) { + this.delegatedListeners[eventName] = 1; + this.target.attachEvent('on' + eventName, this.onDelegatedEvent); + }, removeDelegatedListener:function(eventName) { + delete this.delegatedListeners[eventName]; + this.target.detachEvent('on' + eventName, this.onDelegatedEvent); + }, addDirectListener:function(eventName, element, capture) { + var me = this, dom = element.dom, boundFn = Ext.Function.bind(onDirectEvent, dom, [me, capture], true), directBoundListeners = me.directBoundListeners, handlers = directBoundListeners[eventName] || (directBoundListeners[eventName] = {}); + handlers[dom.id] = boundFn; + if (dom.attachEvent) { + dom.attachEvent('on' + eventName, boundFn); + } else { + me.callParent(arguments); + } + }, removeDirectListener:function(eventName, element) { + var dom = element.dom; + if (dom.detachEvent) { + dom.detachEvent('on' + eventName, this.directBoundListeners[eventName][dom.id]); + } else { + this.callParent(arguments); + } + }, doDelegatedEvent:function(e, invokeAfter) { + e.target = e.srcElement || window; + if (e.type === 'focusin') { + e.relatedTarget = e.fromElement === docBody || e.fromElement === docElement ? null : e.fromElement; + } else { + if (e.type === 'focusout') { + e.relatedTarget = e.toElement === docBody || e.toElement === docElement ? null : e.toElement; + } + } + return this.callParent([e, invokeAfter]); + }}); + Ext.apply(prototype.directEvents, prototype.captureEvents); + Ext.apply(prototype.directEvents, {change:1, input:1, paste:1}); + prototype.captureEvents = {}; + } +}); +Ext.define('Ext.event.publisher.Gesture', {extend:Ext.event.publisher.Dom, type:'gesture', config:{async:true}, isCancelEvent:{touchcancel:1, pointercancel:1, MSPointerCancel:1}, handledEvents:[], handledDomEvents:[], constructor:function(config) { + var me = this, handledDomEvents = me.handledDomEvents, supports = Ext.supports, supportsTouchEvents = supports.TouchEvents, Fn = Ext.Function, onTouchStart = me.onTouchStart, onTouchMove = me.onTouchMove, onTouchEnd = me.onTouchEnd, asyncTouchStart = Fn.createAnimationFrame(me.onTouchStart, me, null, 1), asyncTouchMove = Fn.createAnimationFrame(me.onTouchMove, me), asyncTouchEnd = Fn.createAnimationFrame(me.onTouchEnd, me, null, 1); + me._handlers = {touchstart:onTouchStart, touchmove:onTouchMove, touchend:onTouchEnd, touchcancel:onTouchEnd, pointerdown:onTouchStart, pointermove:onTouchMove, pointerup:onTouchEnd, pointercancel:onTouchEnd, MSPointerDown:onTouchStart, MSPointerMove:onTouchMove, MSPointerUp:onTouchEnd, MSPointerCancel:onTouchEnd, mousedown:onTouchStart, mousemove:onTouchMove, mouseup:onTouchEnd}; + me._asyncHandlers = {touchstart:asyncTouchStart, touchmove:asyncTouchMove, touchend:asyncTouchEnd, touchcancel:asyncTouchEnd, pointerdown:asyncTouchStart, pointermove:asyncTouchMove, pointerup:asyncTouchEnd, pointercancel:asyncTouchEnd, MSPointerDown:asyncTouchStart, MSPointerMove:asyncTouchMove, MSPointerUp:asyncTouchEnd, MSPointerCancel:asyncTouchEnd, mousedown:asyncTouchStart, mousemove:asyncTouchMove, mouseup:asyncTouchEnd}; + me.activeTouchesMap = {}; + me.activeTouches = []; + me.changedTouches = []; + me.recognizers = []; + if (supportsTouchEvents) { + me.onTargetTouchMove = me.onTargetTouchMove.bind(me); + me.onTargetTouchEnd = me.onTargetTouchEnd.bind(me); + } + if (supports.PointerEvents) { + handledDomEvents.push('pointerdown', 'pointermove', 'pointerup', 'pointercancel'); + me.mousePointerType = 'mouse'; + } else { + if (supports.MSPointerEvents) { + handledDomEvents.push('MSPointerDown', 'MSPointerMove', 'MSPointerUp', 'MSPointerCancel'); + me.mousePointerType = 4; + } else { + if (supportsTouchEvents) { + handledDomEvents.push('touchstart', 'touchmove', 'touchend', 'touchcancel'); + } + } + } + if (!handledDomEvents.length || supportsTouchEvents && Ext.isWebKit && Ext.os.is.Desktop) { + handledDomEvents.push('mousedown', 'mousemove', 'mouseup'); + } + me.initConfig(config); + return me.callParent(); +}, onReady:function() { + this.callParent(); + Ext.Array.sort(this.recognizers, function(recognizerA, recognizerB) { + var a = recognizerA.priority, b = recognizerB.priority; + return a > b ? 1 : a < b ? -1 : 0; + }); +}, registerRecognizer:function(recognizer) { + var me = this, handledEvents = recognizer.handledEvents, ln = handledEvents.length, i; + recognizer.setOnRecognized(me.onRecognized); + recognizer.setCallbackScope(me); + for (i = 0; i < ln; i++) { + me.handledEvents.push(handledEvents[i]); + } + me.registerEvents(handledEvents); + me.recognizers.push(recognizer); +}, onRecognized:function(eventName, e, info) { + var me = this, changedTouches = e.changedTouches, ln = changedTouches.length, targetGroups, targets, i, touch; + info = info || {}; + info.type = eventName; + info.target = changedTouches[0].target; + info.isStopped = false; + e = e.chain(info); + if (ln > 1) { + targetGroups = []; + for (i = 0; i < ln; i++) { + touch = changedTouches[i]; + targetGroups.push(touch.targets); + } + targets = me.getCommonTargets(targetGroups); + } else { + targets = changedTouches[0].targets; + } + me.publish(eventName, targets, e); +}, getCommonTargets:function(targetGroups) { + var firstTargetGroup = targetGroups[0], ln = targetGroups.length; + if (ln === 1) { + return firstTargetGroup; + } + var commonTargets = [], i = 1, target, targets, j; + while (true) { + target = firstTargetGroup[firstTargetGroup.length - i]; + if (!target) { + return commonTargets; + } + for (j = 1; j < ln; j++) { + targets = targetGroups[j]; + if (targets[targets.length - i] !== target) { + return commonTargets; + } + } + commonTargets.unshift(target); + i++; + } + return commonTargets; +}, invokeRecognizers:function(methodName, e) { + var recognizers = this.recognizers, ln = recognizers.length, i, recognizer; + if (methodName === 'onStart') { + for (i = 0; i < ln; i++) { + recognizers[i].isActive = true; + } + } + for (i = 0; i < ln; i++) { + recognizer = recognizers[i]; + if (recognizer.isActive && recognizer[methodName].call(recognizer, e) === false) { + recognizer.isActive = false; + } + } +}, updateTouches:function(e, isEnd) { + var me = this, browserEvent = e.browserEvent, touchSources = browserEvent.changedTouches || [browserEvent], activeTouches = me.activeTouches, activeTouchesMap = me.activeTouchesMap, changedTouches = [], touchSource, identifier, touch, target, i, ln, x, y; + for (i = 0, ln = touchSources.length; i < ln; i++) { + touchSource = touchSources[i]; + if ('identifier' in touchSource) { + identifier = touchSource.identifier; + } else { + if ('pointerId' in touchSource) { + identifier = touchSource.pointerId; + } else { + identifier = 1; + } + } + touch = activeTouchesMap[identifier]; + if (!touch) { + target = Ext.event.Event.resolveTextNode(touchSource.target); + touch = activeTouchesMap[identifier] = {identifier:identifier, target:target, targets:me.getPropagatingTargets(target)}; + activeTouches.push(touch); + } + if (isEnd) { + delete activeTouchesMap[identifier]; + Ext.Array.remove(activeTouches, touch); + } + x = touchSource.pageX; + y = touchSource.pageY; + touch.pageX = x; + touch.pageY = y; + touch.point = new Ext.util.Point(x, y); + changedTouches.push(touch); + } + e.touches = Ext.Array.clone(activeTouches); + e.changedTouches = changedTouches; +}, doDelegatedEvent:function(e) { + var me = this; + e = me.callParent([e, false]); + if (e) { + if (!e.button || e.button < 1) { + me.handlers[e.type].call(me, e); + } + me.afterEvent(e); + } +}, onTouchStart:function(e) { + var me = this, target = e.target, touches = e.browserEvent.touches; + if (e.browserEvent.type === 'touchstart') { + target.addEventListener('touchmove', me.onTargetTouchMove); + target.addEventListener('touchend', me.onTargetTouchEnd); + target.addEventListener('touchcancel', me.onTargetTouchEnd); + } + if (touches && touches.length <= me.activeTouches.length) { + me.removeGhostTouches(touches); + } + me.updateTouches(e); + if (!me.isStarted) { + me.isStarted = true; + me.invokeRecognizers('onStart', e); + if (Ext.enableGarbageCollector) { + Ext.dom.GarbageCollector.pause(); + } + } + me.invokeRecognizers('onTouchStart', e); +}, onTouchMove:function(e) { + var me = this, mousePointerType = me.mousePointerType; + if (me.isStarted) { + if (mousePointerType && e.browserEvent.pointerType === mousePointerType && e.buttons === 0) { + e.type = Ext.dom.Element.prototype.eventMap.touchend; + e.button = 0; + me.onTouchEnd(e); + return; + } + me.updateTouches(e); + if (e.changedTouches.length > 0) { + me.invokeRecognizers('onTouchMove', e); + } + } +}, onTouchEnd:function(e) { + var me = this; + if (!me.isStarted) { + return; + } + me.updateTouches(e, true); + me.invokeRecognizers(me.isCancelEvent[e.type] ? 'onTouchCancel' : 'onTouchEnd', e); + if (!me.activeTouches.length) { + me.isStarted = false; + me.invokeRecognizers('onEnd', e); + if (Ext.enableGarbageCollector) { + Ext.dom.GarbageCollector.resume(); + } + } +}, onTargetTouchMove:function(e) { + if (Ext.elevateFunction) { + Ext.elevateFunction(this.doTargetTouchMove, this, [e]); + } else { + this.doTargetTouchMove(e); + } +}, doTargetTouchMove:function(e) { + if (!Ext.getBody().contains(e.target)) { + this.onTouchMove(new Ext.event.Event(e)); + } +}, onTargetTouchEnd:function(e) { + if (Ext.elevateFunction) { + Ext.elevateFunction(this.doTargetTouchEnd, this, [e]); + } else { + this.doTargetTouchEnd(e); + } +}, doTargetTouchEnd:function(e) { + var me = this, target = e.target; + target.removeEventListener('touchmove', me.onTargetTouchMove); + target.removeEventListener('touchend', me.onTargetTouchEnd); + target.removeEventListener('touchcancel', me.onTargetTouchEnd); + if (!Ext.getBody().contains(target)) { + me.onTouchEnd(new Ext.event.Event(e)); + } +}, updateAsync:function(async) { + this.handlers = async ? this._asyncHandlers : this._handlers; +}, reset:function() { + var me = this, recognizers = me.recognizers, ln = recognizers.length, i, recognizer; + me.activeTouchesMap = {}; + me.activeTouches = []; + me.changedTouches = []; + me.isStarted = false; + for (i = 0; i < ln; i++) { + recognizer = recognizers[i]; + recognizer.reset(); + recognizer.isActive = false; + } + this.callParent(); +}, privates:{removeGhostTouches:function(touches) { + var ids = {}, len = touches.length, activeTouches = this.activeTouches, map = this.activeTouchesMap, i, id, touch; + for (i = 0; i < len; ++i) { + ids[touches[i].identifier] = true; + } + i = activeTouches.length; + while (i--) { + touch = activeTouches[i]; + id = touch.identifier; + if (!touches[id]) { + Ext.Array.remove(activeTouches, touch); + delete map[id]; + } + } +}}}, function(Gesture) { + Gesture.instance = new Gesture; +}); +Ext.define('Ext.overrides.event.publisher.Gesture', {override:'Ext.event.publisher.Gesture'}, function() { + if (Ext.isIE9m) { + this.override({updateTouches:function(e, isEnd) { + var browserEvent = e.browserEvent, xy = e.getXY(); + browserEvent.pageX = xy[0]; + browserEvent.pageY = xy[1]; + this.callParent([e, isEnd]); + }, doDelegatedEvent:function(e) { + this.callParent([Ext.event.Event.enableIEAsync(e)]); + }}); + } +}); +Ext.define('Ext.mixin.Templatable', {extend:Ext.Mixin, mixinConfig:{id:'templatable'}, referenceAttributeName:'reference', referenceSelector:'[reference]', getElementConfig:function() { + return {reference:'element'}; +}, getElementTemplate:function() { + var elementTemplate = document.createDocumentFragment(); + elementTemplate.appendChild(Ext.Element.create(this.getElementConfig(), true)); + return elementTemplate; +}, initElement:function() { + var prototype = this.self.prototype; + prototype.elementTemplate = this.getElementTemplate(); + prototype.initElement = prototype.doInitElement; + this.initElement.apply(this, arguments); +}, linkElement:function(reference, node) { + this.link(reference, node); +}, doInitElement:function() { + var referenceAttributeName = this.referenceAttributeName, renderElement, referenceNodes, i, ln, referenceNode, reference; + renderElement = this.elementTemplate.cloneNode(true); + referenceNodes = renderElement.querySelectorAll(this.referenceSelector); + for (i = 0, ln = referenceNodes.length; i < ln; i++) { + referenceNode = referenceNodes[i]; + reference = referenceNode.getAttribute(referenceAttributeName); + referenceNode.removeAttribute(referenceAttributeName); + this.linkElement(reference, referenceNode); + } +}}); +Ext.define('Ext.TaskQueue', {singleton:true, pending:false, mode:true, constructor:function() { + this.readQueue = []; + this.writeQueue = []; + this.run = Ext.Function.bind(this.run, this); + if (Ext.os.is.iOS) { + Ext.interval(this.watch, 500, this); + } +}, requestRead:function(fn, scope, args) { + this.request(true); + this.readQueue.push(arguments); +}, requestWrite:function(fn, scope, args) { + this.request(false); + this.writeQueue.push(arguments); +}, request:function(mode) { + if (!this.pending) { + this.pendingTime = Date.now(); + this.pending = true; + this.mode = mode; + if (mode) { + Ext.defer(this.run, 1, this); + } else { + Ext.Function.requestAnimationFrame(this.run); + } + } +}, watch:function() { + if (this.pending && Date.now() - this.pendingTime >= 500) { + this.run(); + } +}, run:function() { + this.pending = false; + var readQueue = this.readQueue, writeQueue = this.writeQueue, request = null, queue; + if (this.mode) { + queue = readQueue; + if (writeQueue.length > 0) { + request = false; + } + } else { + queue = writeQueue; + if (readQueue.length > 0) { + request = true; + } + } + var tasks = queue.slice(), i, ln, task, fn, scope; + queue.length = 0; + for (i = 0, ln = tasks.length; i < ln; i++) { + task = tasks[i]; + fn = task[0]; + scope = task[1]; + if (typeof fn === 'string') { + fn = scope[fn]; + } + if (task.length > 2) { + fn.apply(scope, task[2]); + } else { + fn.call(scope); + } + } + tasks.length = 0; + if (request !== null) { + this.request(request); + } +}, privates:{flush:function() { + while (this.readQueue.length || this.writeQueue.length) { + this.run(); + } +}}}); +Ext.define('Ext.util.sizemonitor.Abstract', {mixins:[Ext.mixin.Templatable], config:{element:null, callback:Ext.emptyFn, scope:null, args:[]}, width:0, height:0, contentWidth:0, contentHeight:0, constructor:function(config) { + this.refresh = Ext.Function.bind(this.refresh, this); + this.info = {width:0, height:0, contentWidth:0, contentHeight:0, flag:0}; + this.initElement(); + this.initConfig(config); + this.bindListeners(true); +}, bindListeners:Ext.emptyFn, applyElement:function(element) { + if (element) { + return Ext.get(element); + } +}, updateElement:function(element) { + element.append(this.detectorsContainer); + element.addCls(Ext.baseCSSPrefix + 'size-monitored'); +}, applyArgs:function(args) { + return args.concat([this.info]); +}, refreshMonitors:Ext.emptyFn, forceRefresh:function() { + Ext.TaskQueue.requestRead('refresh', this); +}, getContentBounds:function() { + return this.detectorsContainer.getBoundingClientRect(); +}, getContentWidth:function() { + return this.detectorsContainer.offsetWidth; +}, getContentHeight:function() { + return this.detectorsContainer.offsetHeight; +}, refreshSize:function() { + var element = this.getElement(); + if (!element || element.destroyed) { + return false; + } + var width = element.getWidth(), height = element.getHeight(), contentWidth = this.getContentWidth(), contentHeight = this.getContentHeight(), currentContentWidth = this.contentWidth, currentContentHeight = this.contentHeight, info = this.info, resized = false, flag; + this.width = width; + this.height = height; + this.contentWidth = contentWidth; + this.contentHeight = contentHeight; + flag = (currentContentWidth !== contentWidth ? 1 : 0) + (currentContentHeight !== contentHeight ? 2 : 0); + if (flag > 0) { + info.width = width; + info.height = height; + info.contentWidth = contentWidth; + info.contentHeight = contentHeight; + info.flag = flag; + resized = true; + this.getCallback().apply(this.getScope(), this.getArgs()); + } + return resized; +}, refresh:function(force) { + if (this.refreshSize() || force) { + Ext.TaskQueue.requestWrite('refreshMonitors', this); + } +}, destroy:function() { + var me = this, element = me.getElement(); + me.bindListeners(false); + if (element && !element.destroyed) { + element.removeCls(Ext.baseCSSPrefix + 'size-monitored'); + } + delete me._element; + me.callParent(); +}}); +Ext.define('Ext.util.sizemonitor.Scroll', {extend:Ext.util.sizemonitor.Abstract, getElementConfig:function() { + return {reference:'detectorsContainer', classList:[Ext.baseCSSPrefix + 'size-monitors', 'scroll'], children:[{reference:'expandMonitor', className:'expand'}, {reference:'shrinkMonitor', className:'shrink'}]}; +}, constructor:function(config) { + this.onScroll = Ext.Function.bind(this.onScroll, this); + this.callParent(arguments); +}, bindListeners:function(bind) { + var method = bind ? 'addEventListener' : 'removeEventListener'; + this.expandMonitor[method]('scroll', this.onScroll, true); + this.shrinkMonitor[method]('scroll', this.onScroll, true); +}, forceRefresh:function() { + Ext.TaskQueue.requestRead('refresh', this, [true]); +}, onScroll:function() { + Ext.TaskQueue.requestRead('refresh', this); +}, refreshMonitors:function() { + var expandMonitor = this.expandMonitor, shrinkMonitor = this.shrinkMonitor, end = 1000000; + if (expandMonitor && !expandMonitor.destroyed) { + expandMonitor.scrollLeft = end; + expandMonitor.scrollTop = end; + } + if (shrinkMonitor && !shrinkMonitor.destroyed) { + shrinkMonitor.scrollLeft = end; + shrinkMonitor.scrollTop = end; + } +}}); +Ext.define('Ext.util.sizemonitor.OverflowChange', {extend:Ext.util.sizemonitor.Abstract, constructor:function(config) { + this.onExpand = Ext.Function.bind(this.onExpand, this); + this.onShrink = Ext.Function.bind(this.onShrink, this); + this.callParent(arguments); +}, getElementConfig:function() { + return {reference:'detectorsContainer', classList:[Ext.baseCSSPrefix + 'size-monitors', 'overflowchanged'], children:[{reference:'expandMonitor', className:'expand', children:[{reference:'expandHelper'}]}, {reference:'shrinkMonitor', className:'shrink', children:[{reference:'shrinkHelper'}]}]}; +}, bindListeners:function(bind) { + var method = bind ? 'addEventListener' : 'removeEventListener'; + this.expandMonitor[method](Ext.browser.is.Firefox ? 'underflow' : 'overflowchanged', this.onExpand, true); + this.shrinkMonitor[method](Ext.browser.is.Firefox ? 'overflow' : 'overflowchanged', this.onShrink, true); +}, onExpand:function(e) { + if (Ext.browser.is.Webkit && e.horizontalOverflow && e.verticalOverflow) { + return; + } + Ext.TaskQueue.requestRead('refresh', this); +}, onShrink:function(e) { + if (Ext.browser.is.Webkit && !e.horizontalOverflow && !e.verticalOverflow) { + return; + } + Ext.TaskQueue.requestRead('refresh', this); +}, refreshMonitors:function() { + if (this.destroyed) { + return; + } + var expandHelper = this.expandHelper, shrinkHelper = this.shrinkHelper, contentBounds = this.getContentBounds(), width = contentBounds.width, height = contentBounds.height, style; + if (expandHelper && !expandHelper.destroyed) { + style = expandHelper.style; + style.width = width + 1 + 'px'; + style.height = height + 1 + 'px'; + } + if (shrinkHelper && !shrinkHelper.destroyed) { + style = shrinkHelper.style; + style.width = width + 'px'; + style.height = height + 'px'; + } + Ext.TaskQueue.requestRead('refresh', this); +}}); +Ext.define('Ext.util.SizeMonitor', {constructor:function(config) { + var namespace = Ext.util.sizemonitor; + if (Ext.browser.is.Firefox) { + return new namespace.OverflowChange(config); + } else { + return new namespace.Scroll(config); + } +}}); +Ext.define('Ext.event.publisher.ElementSize', {extend:Ext.event.publisher.Publisher, type:'size', handledEvents:['resize'], constructor:function() { + this.monitors = {}; + this.subscribers = {}; + this.callParent(arguments); +}, subscribe:function(element) { + var id = element.id, subscribers = this.subscribers, monitors = this.monitors; + if (subscribers[id]) { + ++subscribers[id]; + } else { + subscribers[id] = 1; + monitors[id] = new Ext.util.SizeMonitor({element:element, callback:this.onElementResize, scope:this, args:[element]}); + } + element.on('painted', 'forceRefresh', monitors[id]); + return true; +}, unsubscribe:function(element) { + var id = element.id, subscribers = this.subscribers, monitors = this.monitors, sizeMonitor; + if (subscribers[id] && !--subscribers[id]) { + delete subscribers[id]; + sizeMonitor = monitors[id]; + element.un('painted', 'forceRefresh', sizeMonitor); + sizeMonitor.destroy(); + delete monitors[id]; + } +}, onElementResize:function(element, info) { + Ext.TaskQueue.requestRead('fire', this, [element, 'resize', [element, info]]); +}, privates:{syncRefresh:function(elements) { + elements = Ext.Array.from(elements); + var len = elements.length, i = 0, el, monitor; + for (i = 0; i < len; ++i) { + el = elements[i]; + if (typeof el !== 'string') { + el = el.id; + } + monitor = this.monitors[el]; + if (monitor) { + monitor.forceRefresh(); + } + } + Ext.TaskQueue.flush(); +}}}, function(ElementSize) { + ElementSize.instance = new ElementSize; +}); +Ext.define('Ext.util.paintmonitor.Abstract', {config:{element:null, callback:Ext.emptyFn, scope:null, args:[]}, eventName:'', monitorClass:'', constructor:function(config) { + this.onElementPainted = Ext.Function.bind(this.onElementPainted, this); + this.initConfig(config); +}, bindListeners:function(bind) { + this.monitorElement[bind ? 'addEventListener' : 'removeEventListener'](this.eventName, this.onElementPainted, true); +}, applyElement:function(element) { + if (element) { + return Ext.get(element); + } +}, updateElement:function(element) { + this.monitorElement = Ext.Element.create({classList:[Ext.baseCSSPrefix + 'paint-monitor', this.monitorClass]}, true); + element.appendChild(this.monitorElement); + element.addCls(Ext.baseCSSPrefix + 'paint-monitored'); + this.bindListeners(true); +}, onElementPainted:function() { +}, destroy:function() { + var me = this, monitorElement = me.monitorElement, parentNode = monitorElement.parentNode, element = me.getElement(); + me.bindListeners(false); + delete me.monitorElement; + if (element && !element.destroyed) { + element.removeCls(Ext.baseCSSPrefix + 'paint-monitored'); + delete me._element; + } + if (parentNode) { + parentNode.removeChild(monitorElement); + } + me.callParent(); +}}); +Ext.define('Ext.util.paintmonitor.CssAnimation', {extend:Ext.util.paintmonitor.Abstract, eventName:Ext.browser.is.WebKit ? 'webkitAnimationEnd' : 'animationend', monitorClass:'cssanimation', onElementPainted:function(e) { + if (e.animationName === Ext.baseCSSPrefix + 'paint-monitor-helper') { + this.getCallback().apply(this.getScope(), this.getArgs()); + } +}}); +Ext.define('Ext.util.PaintMonitor', {constructor:function(config) { + return new Ext.util.paintmonitor.CssAnimation(config); +}}); +Ext.define('Ext.event.publisher.ElementPaint', {extend:Ext.event.publisher.Publisher, type:'paint', handledEvents:['painted'], constructor:function() { + this.monitors = {}; + this.subscribers = {}; + this.callParent(arguments); +}, subscribe:function(element) { + var me = this, id = element.id, subscribers = me.subscribers; + if (subscribers[id]) { + ++subscribers[id]; + } else { + subscribers[id] = 1; + me.monitors[id] = new Ext.util.PaintMonitor({element:element, callback:me.onElementPainted, scope:me, args:[element]}); + } +}, unsubscribe:function(element) { + var id = element.id, subscribers = this.subscribers, monitors = this.monitors; + if (subscribers[id] && !--subscribers[id]) { + delete subscribers[id]; + monitors[id].destroy(); + delete monitors[id]; + } +}, onElementPainted:function(element) { + Ext.TaskQueue.requestRead('fire', this, [element, 'painted', [element]]); +}}, function(ElementPaint) { + ElementPaint.instance = new ElementPaint; +}); +Ext.define('Ext.dom.Element', function(Element) { + var WIN = window, DOC = document, windowId = 'ext-window', documentId = 'ext-document', WIDTH = 'width', HEIGHT = 'height', MIN_WIDTH = 'min-width', MIN_HEIGHT = 'min-height', MAX_WIDTH = 'max-width', MAX_HEIGHT = 'max-height', TOP = 'top', RIGHT = 'right', BOTTOM = 'bottom', LEFT = 'left', VISIBILITY = 'visibility', HIDDEN = 'hidden', DISPLAY = 'display', NONE = 'none', ZINDEX = 'z-index', POSITION = 'position', RELATIVE = 'relative', STATIC = 'static', SEPARATOR = '-', wordsRe = /\w/g, spacesRe = + /\s+/, classNameSplitRegex = /[\s]+/, transparentRe = /^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i, adjustDirect2DTableRe = /table-row|table-.*-group/, topRe = /top/i, borders = {t:'border-top-width', r:'border-right-width', b:'border-bottom-width', l:'border-left-width'}, paddings = {t:'padding-top', r:'padding-right', b:'padding-bottom', l:'padding-left'}, margins = {t:'margin-top', r:'margin-right', b:'margin-bottom', l:'margin-left'}, paddingsTLRB = [paddings.l, paddings.r, + paddings.t, paddings.b], bordersTLRB = [borders.l, borders.r, borders.t, borders.b], numberRe = /\d+$/, unitRe = /\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i, defaultUnit = 'px', camelRe = /(-[a-z])/gi, cssRe = /([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi, pxRe = /^\d+(?:\.\d*)?px$/i, propertyCache = {}, ORIGINALDISPLAY = 'originalDisplay', camelReplaceFn = function(m, a) { + return a.charAt(1).toUpperCase(); + }, clearData = function(node, deep) { + var childNodes, i, len; + if (node.nodeType === 1) { + node._extData = null; + if (deep) { + childNodes = node.childNodes; + for (i = 0, len = childNodes.length; i < len; ++i) { + clearData(childNodes[i], deep); + } + } + } + }, visibilityCls = Ext.baseCSSPrefix + 'hidden-visibility', displayCls = Ext.baseCSSPrefix + 'hidden-display', offsetsCls = Ext.baseCSSPrefix + 'hidden-offsets', clipCls = Ext.baseCSSPrefix + 'hidden-clip', sizedCls = Ext.baseCSSPrefix + 'sized', unsizedCls = Ext.baseCSSPrefix + 'unsized', stretchedCls = Ext.baseCSSPrefix + 'stretched', noTouchScrollCls = Ext.baseCSSPrefix + 'no-touch-scroll', CREATE_ATTRIBUTES = {style:'style', className:'className', cls:'cls', classList:'classList', text:'text', + hidden:'hidden', html:'html', children:'children'}, lastFocusChange = 0, lastKeyboardClose = 0, editableHasFocus = false, isVirtualKeyboardOpen = false, visFly, scrollFly, caFly; + return {alternateClassName:['Ext.Element'], mixins:[Ext.util.Positionable, Ext.mixin.Observable], observableType:'element', isElement:true, skipGarbageCollection:true, $applyConfigs:true, identifiablePrefix:'ext-element-', styleHooks:{}, validIdRe:Ext.validIdRe, blockedEvents:Ext.supports.EmulatedMouseOver ? {mouseover:1} : {}, longpressEvents:{longpress:1, taphold:1}, constructor:function(dom) { + var me = this, id; + if (typeof dom === 'string') { + dom = DOC.getElementById(dom); + } + if (!dom) { + Ext.raise('Invalid domNode reference or an id of an existing domNode: ' + dom); + return null; + } + if (Ext.cache[dom.id]) { + Ext.raise("Element cache already contains an entry for id '" + dom.id + "'. Use Ext.get() to create or retrieve Element instances."); + } + me.dom = dom; + id = dom.id; + if (id) { + me.id = id; + } else { + id = dom.id = me.getUniqueId(); + } + if (!me.validIdRe.test(me.id)) { + Ext.raise('Invalid Element "id": "' + me.id + '"'); + } + me.el = me; + Ext.cache[id] = me; + me.mixins.observable.constructor.call(me); + }, inheritableStatics:{cache:Ext.cache = {}, editableSelector:'input,textarea,[contenteditable\x3d"true"]', VISIBILITY:1, DISPLAY:2, OFFSETS:3, CLIP:4, minKeyboardHeight:100, unitRe:unitRe, useDelegatedEvents:true, validNodeTypes:{1:1, 9:1}, addUnits:function(size, units) { + if (typeof size === 'number') { + return size + (units || defaultUnit); + } + if (size === '' || size === 'auto' || size == null) { + return size || ''; + } + if (numberRe.test(size)) { + return size + (units || defaultUnit); + } + if (!unitRe.test(size)) { + Ext.Logger.warn('Warning, size detected (' + size + ') not a valid property value on Element.addUnits.'); + return size || ''; + } + return size; + }, create:function(attributes, domNode) { + var me = this, hidden = CREATE_ATTRIBUTES.hidden, element, elementStyle, tag, value, name, i, ln, className; + if (!attributes) { + attributes = {}; + } + if (attributes.isElement) { + return domNode ? attributes.dom : attributes; + } else { + if ('nodeType' in attributes) { + return domNode ? attributes : Ext.get(attributes); + } + } + if (typeof attributes === 'string') { + return DOC.createTextNode(attributes); + } + tag = attributes.tag; + if (!tag) { + tag = 'div'; + } + if (attributes.namespace) { + element = DOC.createElementNS(attributes.namespace, tag); + } else { + element = DOC.createElement(tag); + } + elementStyle = element.style; + if (attributes[hidden]) { + className = attributes.className; + className = className == null ? '' : className + ' '; + attributes.className = className + displayCls; + delete attributes[hidden]; + } + for (name in attributes) { + if (name !== 'tag') { + value = attributes[name]; + switch(name) { + case CREATE_ATTRIBUTES.style: + if (typeof value === 'string') { + element.setAttribute(name, value); + } else { + for (i in value) { + if (value.hasOwnProperty(i)) { + elementStyle[i] = value[i]; + } + } + } + break; + case CREATE_ATTRIBUTES.className: + case CREATE_ATTRIBUTES.cls: + element.className = value; + break; + case CREATE_ATTRIBUTES.classList: + element.className = value.join(' '); + break; + case CREATE_ATTRIBUTES.text: + element.textContent = value; + break; + case CREATE_ATTRIBUTES.html: + element.innerHTML = value; + break; + case CREATE_ATTRIBUTES.children: + for (i = 0, ln = value.length; i < ln; i++) { + element.appendChild(me.create(value[i], true)); + } + break; + default: + if (value != null) { + element.setAttribute(name, value); + } + } + } + } + if (domNode) { + return element; + } else { + return me.get(element); + } + }, detach:function() { + var dom = this.dom; + if (dom && dom.parentNode && dom.tagName !== 'BODY') { + dom.parentNode.removeChild(dom); + } + return this; + }, fly:function(dom, named) { + return Ext.fly(dom, named); + }, fromPoint:function(x, y) { + return Ext.get(DOC.elementFromPoint(x, y)); + }, get:function(el) { + var me = this, cache = Ext.cache, nodeType, dom, id, entry, isDoc, isWin, isValidNodeType; + if (!el) { + return null; + } + function warnDuplicate(id) { + Ext.raise('DOM element with id ' + id + ' in Element cache is not the same as element in the DOM. ' + 'Make sure to clean up Element instances using destroy()'); + } + if (el.isFly) { + el = el.dom; + } + if (typeof el === 'string') { + id = el; + if (cache.hasOwnProperty(id)) { + entry = cache[id]; + if (entry.skipGarbageCollection || !Ext.isGarbage(entry.dom)) { + dom = Ext.getElementById ? Ext.getElementById(id) : DOC.getElementById(id); + if (dom && dom !== entry.dom) { + warnDuplicate(id); + } + return entry; + } else { + entry.destroy(); + } + } + if (id === windowId) { + return Element.get(WIN); + } else { + if (id === documentId) { + return Element.get(DOC); + } + } + dom = Ext.getElementById ? Ext.getElementById(id) : DOC.getElementById(id); + if (dom) { + return new Element(dom); + } + } + nodeType = el.nodeType; + if (nodeType) { + isDoc = nodeType === 9; + isValidNodeType = me.validNodeTypes[nodeType]; + } else { + isWin = el.window == el; + } + if (isValidNodeType || isWin) { + id = el.id; + if (cache.hasOwnProperty(id)) { + entry = cache[id]; + if (entry.skipGarbageCollection || el === entry.dom || !Ext.isGarbage(entry.dom)) { + if (el !== entry.dom) { + warnDuplicate(id); + } + return entry; + } else { + entry.destroy(); + } + } + if (el === DOC) { + el.id = documentId; + } + if (el == WIN) { + el.id = windowId; + } + el = new Element(el); + if (isWin || isDoc) { + el.skipGarbageCollection = true; + } + return el; + } + if (el.isElement) { + return el; + } + if (el.isComposite) { + return el; + } + if (Ext.isIterable(el)) { + return me.select(el); + } + return null; + }, getActiveElement:function(asElement) { + var active = DOC.activeElement; + if (!active || !active.focus) { + active = DOC.body; + } + return asElement ? Ext.get(active) : active; + }, getDocumentHeight:function() { + return Math.max(!Ext.isStrict ? DOC.body.scrollHeight : DOC.documentElement.scrollHeight, this.getViewportHeight()); + }, getDocumentWidth:function() { + return Math.max(!Ext.isStrict ? DOC.body.scrollWidth : DOC.documentElement.scrollWidth, this.getViewportWidth()); + }, getOrientation:function() { + if (Ext.supports.OrientationChange) { + return WIN.orientation == 0 ? 'portrait' : 'landscape'; + } + return WIN.innerHeight > WIN.innerWidth ? 'portrait' : 'landscape'; + }, getViewportHeight:function() { + var viewportHeight = Element._viewportHeight; + if (Ext.isIE9m) { + return DOC.documentElement.clientHeight; + } + return viewportHeight != null ? viewportHeight : WIN.innerHeight; + }, getViewportWidth:function() { + var viewportWidth = Element._viewportWidth; + if (Ext.isIE9m) { + return DOC.documentElement.clientWidth; + } + return viewportWidth != null ? viewportWidth : WIN.innerWidth; + }, getViewSize:function() { + return {width:Element.getViewportWidth(), height:Element.getViewportHeight()}; + }, normalize:function(prop) { + return propertyCache[prop] || (propertyCache[prop] = prop.replace(camelRe, camelReplaceFn)); + }, _onWindowFocusChange:function(e) { + if (Ext.fly(e.target).is(Element.editableSelector)) { + lastFocusChange = new Date; + editableHasFocus = e.type === 'focusin' || e.type === 'pointerup'; + } + }, _onWindowResize:function() { + var windowWidth = window.innerWidth, windowHeight = window.innerHeight, now = new Date, threshold = 1000, deltaX, deltaY; + deltaX = windowWidth - Element._windowWidth; + deltaY = windowHeight - Element._windowHeight; + Element._windowWidth = windowWidth; + Element._windowHeight = windowHeight; + if (now - lastFocusChange < threshold || now - lastKeyboardClose < threshold) { + if (deltaX === 0 && (editableHasFocus && deltaY <= -Element.minKeyboardHeight)) { + isVirtualKeyboardOpen = true; + return; + } + } + if (isVirtualKeyboardOpen && deltaX === 0 && deltaY >= Element.minKeyboardHeight) { + isVirtualKeyboardOpen = false; + lastKeyboardClose = new Date; + } + if (isVirtualKeyboardOpen) { + return; + } + Element._viewportWidth = windowWidth; + Element._viewportHeight = windowHeight; + }, parseBox:function(box) { + box = box || 0; + var type = typeof box, parts, ln; + if (type === 'number') { + return {top:box, right:box, bottom:box, left:box}; + } else { + if (type !== 'string') { + return box; + } + } + parts = box.split(' '); + ln = parts.length; + if (ln === 1) { + parts[1] = parts[2] = parts[3] = parts[0]; + } else { + if (ln === 2) { + parts[2] = parts[0]; + parts[3] = parts[1]; + } else { + if (ln === 3) { + parts[3] = parts[1]; + } + } + } + return {top:parseFloat(parts[0]) || 0, right:parseFloat(parts[1]) || 0, bottom:parseFloat(parts[2]) || 0, left:parseFloat(parts[3]) || 0}; + }, parseStyles:function(styles) { + var out = {}, matches; + if (styles) { + cssRe.lastIndex = 0; + while (matches = cssRe.exec(styles)) { + out[matches[1]] = matches[2] || ''; + } + } + return out; + }, select:function(selector, composite, root) { + return Ext.fly(root || DOC).select(selector, composite); + }, query:function(selector, asDom, root) { + return Ext.fly(root || DOC).query(selector, asDom); + }, unitizeBox:function(box, units) { + var me = this; + box = me.parseBox(box); + return me.addUnits(box.top, units) + ' ' + me.addUnits(box.right, units) + ' ' + me.addUnits(box.bottom, units) + ' ' + me.addUnits(box.left, units); + }, serializeForm:function(form) { + var fElements = form.elements || (DOC.forms[form] || Ext.getDom(form)).elements, hasSubmit = false, encoder = encodeURIComponent, data = '', eLen = fElements.length, element, name, type, options, hasValue, e, o, oLen, opt; + for (e = 0; e < eLen; e++) { + element = fElements[e]; + name = element.name; + type = element.type; + options = element.options; + if (!element.disabled && name) { + if (/select-(one|multiple)/i.test(type)) { + oLen = options.length; + for (o = 0; o < oLen; o++) { + opt = options[o]; + if (opt.selected) { + hasValue = opt.hasAttribute('value'); + data += Ext.String.format('{0}\x3d{1}\x26', encoder(name), encoder(hasValue ? opt.value : opt.text)); + } + } + } else { + if (!/file|undefined|reset|button/i.test(type)) { + if (!(/radio|checkbox/i.test(type) && !element.checked) && !(type == 'submit' && hasSubmit)) { + data += encoder(name) + '\x3d' + encoder(element.value) + '\x26'; + hasSubmit = /submit/i.test(type); + } + } + } + } + } + return data.substr(0, data.length - 1); + }, getCommonAncestor:function(nodeA, nodeB, returnDom) { + caFly = caFly || new Ext.dom.Fly; + caFly.attach(Ext.getDom(nodeA)); + while (!caFly.isAncestor(nodeB)) { + if (caFly.dom.parentNode) { + caFly.attach(caFly.dom.parentNode); + } else { + caFly.attach(document.body); + break; + } + } + return returnDom ? caFly.dom : Ext.get(caFly); + }}, addCls:function(names, prefix, suffix) { + var me = this, elementData = me.getData(), hasNewCls, dom, map, classList, i, ln, name; + if (!names) { + return me; + } + if (!elementData.isSynchronized) { + me.synchronize(); + } + dom = me.dom; + map = elementData.classMap; + classList = elementData.classList; + prefix = prefix ? prefix + SEPARATOR : ''; + suffix = suffix ? SEPARATOR + suffix : ''; + if (typeof names === 'string') { + names = names.split(spacesRe); + } + for (i = 0, ln = names.length; i < ln; i++) { + name = names[i]; + if (name) { + name = prefix + name + suffix; + if (!map[name]) { + map[name] = true; + classList.push(name); + hasNewCls = true; + } + } + } + if (hasNewCls) { + dom.className = classList.join(' '); + } + return me; + }, addStyles:function(sides, styles) { + var totalSize = 0, sidesArr = (sides || '').match(wordsRe), i, len = sidesArr.length, side, styleSides = []; + if (len === 1) { + totalSize = Math.abs(parseFloat(this.getStyle(styles[sidesArr[0]])) || 0); + } else { + if (len) { + for (i = 0; i < len; i++) { + side = sidesArr[i]; + styleSides.push(styles[side]); + } + styleSides = this.getStyle(styleSides); + for (i = 0; i < len; i++) { + side = sidesArr[i]; + totalSize += parseFloat(styleSides[styles[side]]) || 0; + } + } + } + return totalSize; + }, addUnits:function(size, units) { + return Element.addUnits(size, units); + }, adjustDirect2DDimension:function(dimension) { + var me = this, dom = me.dom, display = me.getStyle('display'), inlineDisplay = dom.style.display, inlinePosition = dom.style.position, originIndex = dimension === WIDTH ? 0 : 1, currentStyle = dom.currentStyle, floating; + if (display === 'inline') { + dom.style.display = 'inline-block'; + } + dom.style.position = display.match(adjustDirect2DTableRe) ? 'absolute' : 'static'; + floating = (parseFloat(currentStyle[dimension]) || parseFloat(currentStyle.msTransformOrigin.split(' ')[originIndex]) * 2) % 1; + dom.style.position = inlinePosition; + if (display === 'inline') { + dom.style.display = inlineDisplay; + } + return floating; + }, animate:function(animation) { + animation = new Ext.fx.Animation(animation); + animation.setElement(this); + this._activeAnimation = animation; + animation.on({animationend:this._onAnimationEnd}); + Ext.Animator.run(animation); + return animation; + }, _onAnimationEnd:function() { + this._activeAnimation = null; + }, getActiveAnimation:function() { + return this._activeAnimation; + }, append:function() { + this.appendChild.apply(this, arguments); + }, appendChild:function(el, returnDom) { + var me = this, insertEl, eLen, e; + if (el.nodeType || el.dom || typeof el === 'string') { + el = Ext.getDom(el); + me.dom.appendChild(el); + return !returnDom ? Ext.get(el) : el; + } else { + if (el.length) { + insertEl = Ext.fly(document.createDocumentFragment()); + eLen = el.length; + for (e = 0; e < eLen; e++) { + insertEl.appendChild(el[e], returnDom); + } + me.dom.appendChild(insertEl.dom); + return returnDom ? insertEl.dom : insertEl; + } else { + return me.createChild(el, null, returnDom); + } + } + }, appendTo:function(el) { + Ext.getDom(el).appendChild(this.dom); + return this; + }, applyStyles:function(styles) { + if (styles) { + if (typeof styles === 'function') { + styles = styles.call(); + } + if (typeof styles === 'string') { + styles = Element.parseStyles(styles); + } + if (typeof styles === 'object') { + this.setStyle(styles); + } + } + return this; + }, blur:function() { + var me = this, dom = me.dom; + if (dom !== DOC.body) { + try { + dom.blur(); + } catch (e$18) { + } + return me; + } else { + return me.focus(undefined, dom); + } + }, cacheScrollValues:function() { + var me = this, scrollValues = [], scrolledDescendants = [], descendants, descendant, i, len; + scrollFly = scrollFly || new Ext.dom.Fly; + descendants = me.query('*'); + for (i = 0, len = descendants.length; i < len; i++) { + descendant = descendants[i]; + if (descendant.scrollTop > 0 || descendant.scrollLeft !== 0) { + scrolledDescendants.push(descendant); + scrollValues.push(scrollFly.attach(descendant).getScroll()); + } + } + return function() { + var scroll, i, len; + for (i = 0, len = scrolledDescendants.length; i < len; i++) { + scroll = scrollValues[i]; + scrollFly.attach(scrolledDescendants[i]); + scrollFly.setScrollLeft(scroll.left); + scrollFly.setScrollTop(scroll.top); + } + }; + }, center:function(centerIn) { + return this.alignTo(centerIn || DOC, 'c-c'); + }, child:function(selector, returnDom) { + var me = this, id = Ext.get(me).id; + return me.selectNode(Ext.makeIdSelector(id) + ' \x3e ' + selector, !!returnDom); + }, clone:function(deep, returnDom) { + var clone = this.dom.cloneNode(deep); + if (Ext.supports.CloneNodeCopiesExpando) { + clearData(clone, deep); + } + return returnDom ? clone : Ext.get(clone); + }, constrainScrollLeft:function(left) { + var dom = this.dom; + return Math.max(Math.min(left, dom.scrollWidth - dom.clientWidth), 0); + }, constrainScrollTop:function(top) { + var dom = this.dom; + return Math.max(Math.min(top, dom.scrollHeight - dom.clientHeight), 0); + }, createChild:function(config, insertBefore, returnDom) { + config = config || {tag:'div'}; + if (insertBefore) { + return Ext.DomHelper.insertBefore(insertBefore, config, returnDom !== true); + } else { + return Ext.DomHelper.append(this.dom, config, returnDom !== true); + } + }, contains:function(element) { + if (!element) { + return false; + } + var me = this, dom = Ext.getDom(element); + return dom === me.dom || me.isAncestor(dom); + }, destroy:function() { + var me = this, dom = me.dom; + if (me.destroyed) { + Ext.Logger.warn('Cannot destroy Element "' + me.id + '". Already destroyed.'); + return; + } + if (dom) { + if (dom === DOC.body) { + Ext.raise('Cannot destroy body element.'); + } else { + if (dom === DOC) { + Ext.raise('Cannot destroy document object.'); + } else { + if (dom === WIN) { + Ext.raise('Cannot destroy window object'); + } + } + } + } + if (dom && dom.parentNode) { + dom.parentNode.removeChild(dom); + } + me.collect(); + if (!me.isFly) { + me.callParent(); + } + }, detach:function() { + var dom = this.dom; + if (dom && dom.parentNode && dom.tagName !== 'BODY') { + dom.parentNode.removeChild(dom); + } + return this; + }, disableShadow:function() { + var shadow = this.shadow; + if (shadow) { + shadow.hide(); + shadow.disabled = true; + } + }, disableShim:function() { + var shim = this.shim; + if (shim) { + shim.hide(); + shim.disabled = true; + } + }, disableTouchContextMenu:function() { + this._contextMenuListenerRemover = this.on({MSHoldVisual:function(e) { + e.preventDefault(); + }, destroyable:true, delegated:false}); + }, disableTouchScroll:function() { + this.addCls(noTouchScrollCls); + this.on({touchmove:function(e) { + e.preventDefault(); + }, translate:false}); + }, doReplaceWith:function(element) { + var dom = this.dom; + dom.parentNode.replaceChild(Ext.getDom(element), dom); + }, doScrollIntoView:function(container, hscroll, animate, highlight, getScrollX, scrollTo) { + scrollFly = scrollFly || new Ext.dom.Fly; + var me = this, dom = me.dom, scrollX = scrollFly.attach(container)[getScrollX](), scrollY = container.scrollTop, position = me.getScrollIntoViewXY(container, scrollX, scrollY), newScrollX = position.x, newScrollY = position.y; + if (highlight) { + if (animate) { + animate = Ext.apply({listeners:{afteranimate:function() { + scrollFly.attach(dom).highlight(); + }}}, animate); + } else { + scrollFly.attach(dom).highlight(); + } + } + if (newScrollY !== scrollY) { + scrollFly.attach(container).scrollTo('top', newScrollY, animate); + } + if (hscroll !== false && newScrollX !== scrollX) { + scrollFly.attach(container)[scrollTo]('left', newScrollX, animate); + } + return me; + }, down:function(selector, returnDom) { + return this.selectNode(selector, !!returnDom); + }, enableShadow:function(options, isVisible) { + var me = this, shadow = me.shadow || (me.shadow = new Ext.dom.Shadow(Ext.apply({target:me}, options))), shim = me.shim; + if (shim) { + shim.offsets = shadow.outerOffsets; + shim.shadow = shadow; + shadow.shim = shim; + } + if (isVisible === true || isVisible !== false && me.isVisible()) { + shadow.show(); + } else { + shadow.hide(); + } + shadow.disabled = false; + }, enableShim:function(options, isVisible) { + var me = this, shim = me.shim || (me.shim = new Ext.dom.Shim(Ext.apply({target:me}, options))), shadow = me.shadow; + if (shadow) { + shim.offsets = shadow.outerOffsets; + shim.shadow = shadow; + shadow.shim = shim; + } + if (isVisible === true || isVisible !== false && me.isVisible()) { + shim.show(); + } else { + shim.hide(); + } + shim.disabled = false; + }, findParent:function(simpleSelector, limit, returnEl) { + var me = this, target = me.dom, topmost = DOC.documentElement, depth = 0; + if (limit || limit === 0) { + if (typeof limit !== 'number') { + topmost = Ext.getDom(limit); + limit = Number.MAX_VALUE; + } + } else { + limit = 50; + } + while (target && target.nodeType === 1 && depth < limit && target !== topmost) { + if (Ext.fly(target).is(simpleSelector)) { + return returnEl ? Ext.get(target) : target; + } + depth++; + target = target.parentNode; + } + return null; + }, findParentNode:function(simpleSelector, limit, returnEl) { + var p = Ext.fly(this.dom.parentNode); + return p ? p.findParent(simpleSelector, limit, returnEl) : null; + }, first:function(selector, returnDom) { + return this.matchNode('nextSibling', 'firstChild', selector, returnDom); + }, focus:function(defer, dom) { + var me = this; + dom = dom || me.dom; + if (Number(defer)) { + Ext.defer(me.focus, defer, me, [null, dom]); + } else { + Ext.GlobalEvents.fireEvent('beforefocus', dom); + dom.focus(); + } + return me; + }, collect:function() { + var me = this, dom = me.dom, shadow = me.shadow, shim = me.shim; + if (!me.isFly) { + me.mixins.observable.destroy.call(me); + delete Ext.cache[me.id]; + me.destroyed = true; + me.el = null; + } + if (dom) { + dom._extData = me.dom = null; + } + if (shadow) { + shadow.hide(); + me.shadow = null; + } + if (shim) { + shim.hide(); + me.shim = null; + } + }, getAnchorToXY:function(el, anchor, local, mySize) { + return el.getAnchorXY(anchor, local, mySize); + }, getAttribute:function(name, namespace) { + var dom = this.dom; + return namespace ? dom.getAttributeNS(namespace, name) || dom.getAttribute(namespace + ':' + name) : dom.getAttribute(name) || dom[name] || null; + }, getAttributes:function() { + var attributes = this.dom.attributes, result = {}, attr, i, len; + for (i = 0, len = attributes.length; i < len; i++) { + attr = attributes[i]; + result[attr.name] = attr.value; + } + return result; + }, getBottom:function(local) { + return (local ? this.getLocalY() : this.getY()) + this.getHeight(); + }, getById:function(id, asDom) { + var dom = DOC.getElementById(id) || this.dom.querySelector(Ext.makeIdSelector(id)); + return asDom ? dom : dom ? Ext.get(dom) : null; + }, getBorderPadding:function() { + var paddingWidth = this.getStyle(paddingsTLRB), bordersWidth = this.getStyle(bordersTLRB); + return {beforeX:(parseFloat(bordersWidth[borders.l]) || 0) + (parseFloat(paddingWidth[paddings.l]) || 0), afterX:(parseFloat(bordersWidth[borders.r]) || 0) + (parseFloat(paddingWidth[paddings.r]) || 0), beforeY:(parseFloat(bordersWidth[borders.t]) || 0) + (parseFloat(paddingWidth[paddings.t]) || 0), afterY:(parseFloat(bordersWidth[borders.b]) || 0) + (parseFloat(paddingWidth[paddings.b]) || 0)}; + }, getBorders:function() { + var bordersWidth = this.getStyle(bordersTLRB); + return {beforeX:parseFloat(bordersWidth[borders.l]) || 0, afterX:parseFloat(bordersWidth[borders.r]) || 0, beforeY:parseFloat(bordersWidth[borders.t]) || 0, afterY:parseFloat(bordersWidth[borders.b]) || 0}; + }, getBorderWidth:function(side) { + return this.addStyles(side, borders); + }, getData:function(preventCreate) { + var dom = this.dom, data; + if (dom) { + data = dom._extData; + if (!data && !preventCreate) { + dom._extData = data = {}; + } + } + return data; + }, getFirstChild:function() { + return Ext.get(this.dom.firstElementChild); + }, getHeight:function(contentHeight, preciseHeight) { + var me = this, hidden = me.isStyle('display', 'none'), height, floating; + if (hidden) { + return 0; + } + height = me.dom.offsetHeight; + if (Ext.supports.Direct2DBug) { + floating = me.adjustDirect2DDimension(HEIGHT); + if (preciseHeight) { + height += floating; + } else { + if (floating > 0 && floating < 0.5) { + height++; + } + } + } + if (contentHeight) { + height -= me.getBorderWidth('tb') + me.getPadding('tb'); + } + return height < 0 ? 0 : height; + }, getHtml:function() { + return this.dom ? this.dom.innerHTML : ''; + }, getLeft:function(local) { + return local ? this.getLocalX() : this.getX(); + }, getLocalX:function() { + var me = this, offsetParent, x = me.getStyle('left'); + if (!x || x === 'auto') { + x = 0; + } else { + if (pxRe.test(x)) { + x = parseFloat(x); + } else { + x = me.getX(); + offsetParent = me.dom.offsetParent; + if (offsetParent) { + x -= Ext.fly(offsetParent).getX(); + } + } + } + return x; + }, getLocalXY:function() { + var me = this, offsetParent, style = me.getStyle(['left', 'top']), x = style.left, y = style.top; + if (!x || x === 'auto') { + x = 0; + } else { + if (pxRe.test(x)) { + x = parseFloat(x); + } else { + x = me.getX(); + offsetParent = me.dom.offsetParent; + if (offsetParent) { + x -= Ext.fly(offsetParent).getX(); + } + } + } + if (!y || y === 'auto') { + y = 0; + } else { + if (pxRe.test(y)) { + y = parseFloat(y); + } else { + y = me.getY(); + offsetParent = me.dom.offsetParent; + if (offsetParent) { + y -= Ext.fly(offsetParent).getY(); + } + } + } + return [x, y]; + }, getLocalY:function() { + var me = this, offsetParent, y = me.getStyle('top'); + if (!y || y === 'auto') { + y = 0; + } else { + if (pxRe.test(y)) { + y = parseFloat(y); + } else { + y = me.getY(); + offsetParent = me.dom.offsetParent; + if (offsetParent) { + y -= Ext.fly(offsetParent).getY(); + } + } + } + return y; + }, getMargin:function() { + var hash = {t:'top', l:'left', r:'right', b:'bottom'}, allMargins = ['margin-top', 'margin-left', 'margin-right', 'margin-bottom']; + return function(side) { + var me = this, style, key, o; + if (!side) { + style = me.getStyle(allMargins); + o = {}; + if (style && typeof style === 'object') { + o = {}; + for (key in margins) { + o[key] = o[hash[key]] = parseFloat(style[margins[key]]) || 0; + } + } + } else { + o = me.addStyles(side, margins); + } + return o; + }; + }(), getPadding:function(side) { + return this.addStyles(side, paddings); + }, getParent:function() { + return Ext.get(this.dom.parentNode); + }, getRight:function(local) { + return (local ? this.getLocalX() : this.getX()) + this.getWidth(); + }, getScroll:function() { + var me = this, dom = me.dom, docElement = DOC.documentElement, left, top, body = document.body; + if (dom === DOC || dom === body) { + left = docElement.scrollLeft || (body ? body.scrollLeft : 0); + top = docElement.scrollTop || (body ? body.scrollTop : 0); + } else { + left = dom.scrollLeft; + top = dom.scrollTop; + } + return {left:left, top:top}; + }, getScrollIntoViewXY:function(container, scrollX, scrollY) { + var dom = this.dom, ct = Ext.getDom(container), offsets = this.getOffsetsTo(ct), width = dom.offsetWidth, height = dom.offsetHeight, left = offsets[0] + scrollX, top = offsets[1] + scrollY, bottom = top + height, right = left + width, viewHeight = ct.clientHeight, viewWidth = ct.clientWidth, viewLeft = scrollX, viewTop = scrollY, viewBottom = viewTop + viewHeight, viewRight = viewLeft + viewWidth; + if (height > viewHeight || top < viewTop) { + scrollY = top; + } else { + if (bottom > viewBottom) { + scrollY = bottom - viewHeight; + } + } + if (width > viewWidth || left < viewLeft) { + scrollX = left; + } else { + if (right > viewRight) { + scrollX = right - viewWidth; + } + } + return {x:scrollX, y:scrollY}; + }, getScrollLeft:function() { + var dom = this.dom; + if (dom === DOC || dom === document.body) { + return this.getScroll().left; + } else { + return dom.scrollLeft; + } + }, getScrollTop:function() { + var dom = this.dom; + if (dom === DOC || dom === document.body) { + return this.getScroll().top; + } else { + return dom.scrollTop; + } + }, getSize:function(contentSize) { + return {width:this.getWidth(contentSize), height:this.getHeight(contentSize)}; + }, getStyle:function(property, inline) { + var me = this, dom = me.dom, multiple = typeof property !== 'string', hooks = me.styleHooks, prop = property, props = prop, len = 1, domStyle, camel, values, hook, out, style, i; + if (multiple) { + values = {}; + prop = props[0]; + i = 0; + if (!(len = props.length)) { + return values; + } + } + if (!dom || dom.documentElement) { + return values || ''; + } + domStyle = dom.style; + if (inline) { + style = domStyle; + } else { + style = dom.ownerDocument.defaultView.getComputedStyle(dom, null); + if (!style) { + inline = true; + style = domStyle; + } + } + do { + hook = hooks[prop]; + if (!hook) { + hooks[prop] = hook = {name:Element.normalize(prop)}; + } + if (hook.get) { + out = hook.get(dom, me, inline, style); + } else { + camel = hook.name; + out = style[camel]; + } + if (!multiple) { + return out; + } + values[prop] = out; + prop = props[++i]; + } while (i < len); + return values; + }, getStyleValue:function(name) { + return this.dom.style.getPropertyValue(name); + }, getTop:function(local) { + return local ? this.getLocalY() : this.getY(); + }, getValue:function(asNumber) { + var value = this.dom.value; + return asNumber ? parseInt(value, 10) : value; + }, getViewSize:function() { + var dom = this.dom; + if (dom === DOC || dom === DOC.body) { + return {width:Element.getViewportWidth(), height:Element.getViewportHeight()}; + } else { + return {width:dom.clientWidth, height:dom.clientHeight}; + } + }, getVisibilityMode:function() { + var me = this, data = me.getData(), mode = data.visibilityMode; + if (mode === undefined) { + data.visibilityMode = mode = Element.DISPLAY; + } + return mode; + }, getWidth:function(contentWidth, preciseWidth) { + var me = this, dom = me.dom, hidden = me.isStyle('display', 'none'), rect, width, floating; + if (hidden) { + return 0; + } + if (Ext.supports.BoundingClientRect) { + rect = dom.getBoundingClientRect(); + width = me.vertical && !Ext.supports.RotatedBoundingClientRect ? rect.bottom - rect.top : rect.right - rect.left; + width = preciseWidth ? width : Math.ceil(width); + } else { + width = dom.offsetWidth; + } + if (Ext.supports.Direct2DBug && !me.vertical) { + floating = me.adjustDirect2DDimension(WIDTH); + if (preciseWidth) { + width += floating; + } else { + if (floating > 0 && floating < 0.5) { + width++; + } + } + } + if (contentWidth) { + width -= me.getBorderWidth('lr') + me.getPadding('lr'); + } + return width < 0 ? 0 : width; + }, getX:function() { + return this.getXY()[0]; + }, getXY:function() { + var round = Math.round, dom = this.dom, x = 0, y = 0, box, scroll; + if (dom !== DOC && dom !== DOC.body) { + try { + box = dom.getBoundingClientRect(); + } catch (ex) { + box = {left:0, top:0}; + } + x = round(box.left); + y = round(box.top); + scroll = Ext.getDoc().getScroll(); + x += scroll.left; + y += scroll.top; + } + return [x, y]; + }, getY:function() { + return this.getXY()[1]; + }, getZIndex:function() { + return parseInt(this.getStyle('z-index'), 10); + }, hasCls:function(name) { + var elementData = this.getData(); + if (!elementData.isSynchronized) { + this.synchronize(); + } + return elementData.classMap.hasOwnProperty(name); + }, hide:function() { + this.setVisible(false); + return this; + }, insertAfter:function(el) { + el = Ext.getDom(el); + el.parentNode.insertBefore(this.dom, el.nextSibling); + return this; + }, insertBefore:function(el) { + el = Ext.getDom(el); + el.parentNode.insertBefore(this.dom, el); + return this; + }, insertFirst:function(el, returnDom) { + el = el || {}; + if (el.nodeType || el.dom || typeof el === 'string') { + el = Ext.getDom(el); + this.dom.insertBefore(el, this.dom.firstChild); + return !returnDom ? Ext.get(el) : el; + } else { + return this.createChild(el, this.dom.firstChild, returnDom); + } + }, insertHtml:function(where, html, returnEl) { + var el = Ext.DomHelper.insertHtml(where, this.dom, html); + return returnEl ? Ext.get(el) : el; + }, insertSibling:function(el, where, returnDom) { + var me = this, DomHelper = Ext.DomHelper, isAfter = (where || 'before').toLowerCase() === 'after', rt, insertEl, eLen, e; + if (Ext.isIterable(el)) { + eLen = el.length; + insertEl = Ext.fly(document.createDocumentFragment()); + if (Ext.isArray(el)) { + for (e = 0; e < eLen; e++) { + rt = insertEl.appendChild(el[e], returnDom); + } + } else { + for (e = 0; e < eLen; e++) { + insertEl.dom.appendChild(rt = el[0]); + } + if (returnDom === false) { + rt = Ext.get(rt); + } + } + me.dom.parentNode.insertBefore(insertEl.dom, isAfter ? me.dom.nextSibling : me.dom); + return rt; + } + el = el || {}; + if (el.nodeType || el.dom) { + rt = me.dom.parentNode.insertBefore(Ext.getDom(el), isAfter ? me.dom.nextSibling : me.dom); + if (!returnDom) { + rt = Ext.get(rt); + } + } else { + if (isAfter && !me.dom.nextSibling) { + rt = DomHelper.append(me.dom.parentNode, el, !returnDom); + } else { + rt = DomHelper[isAfter ? 'insertAfter' : 'insertBefore'](me.dom, el, !returnDom); + } + } + return rt; + }, is:function(selector) { + var dom = this.dom, is; + if (!selector) { + is = true; + } else { + if (!dom.tagName) { + is = false; + } else { + if (Ext.isFunction(selector)) { + is = selector(dom); + } else { + is = dom[Ext.supports.matchesSelector](selector); + } + } + } + return is; + }, isAncestor:function(el) { + var ret = false, dom = this.dom, child = Ext.getDom(el); + if (dom && child) { + if (dom.contains) { + return dom.contains(child); + } else { + if (dom.compareDocumentPosition) { + return !!(dom.compareDocumentPosition(child) & 16); + } else { + while (child = child.parentNode) { + ret = child === dom || ret; + } + } + } + } + return ret; + }, isPainted:function() { + return !Ext.browser.is.IE ? function() { + var dom = this.dom; + return Boolean(dom && dom.offsetParent); + } : function() { + var dom = this.dom; + return Boolean(dom && (dom.offsetHeight !== 0 && dom.offsetWidth !== 0)); + }; + }(), isScrollable:function() { + var dom = this.dom; + return dom.scrollHeight > dom.clientHeight || dom.scrollWidth > dom.clientWidth; + }, isStyle:function(style, val) { + return this.getStyle(style) === val; + }, isVisible:function(deep) { + var dom = this.dom, end; + if (!dom) { + return false; + } + if (!visFly) { + visFly = new Ext.dom.Fly; + } + for (end = dom.ownerDocument.documentElement; dom !== end; dom = dom.parentNode) { + if (!dom || dom.nodeType === 11 || visFly.attach(dom).isStyle(VISIBILITY, HIDDEN) || visFly.isStyle(DISPLAY, NONE)) { + return false; + } + if (!deep) { + break; + } + } + return true; + }, last:function(selector, returnDom) { + return this.matchNode('previousSibling', 'lastChild', selector, returnDom); + }, maskIframes:function() { + var iframes = document.getElementsByTagName('iframe'); + Ext.each(iframes, function(iframe) { + var iframeParent = Ext.fly(iframe.parentNode), myMask = iframeParent.mask(); + myMask.setStyle('background-color', 'transparent'); + }); + }, matchNode:function(dir, start, selector, returnDom) { + var dom = this.dom, n; + if (!dom) { + return null; + } + n = dom[start]; + while (n) { + if (n.nodeType === 1 && (!selector || Ext.fly(n, '_matchNode').is(selector))) { + return !returnDom ? Ext.get(n) : n; + } + n = n[dir]; + } + return null; + }, next:function(selector, returnDom) { + return this.matchNode('nextSibling', 'nextSibling', selector, returnDom); + }, parent:function(selector, returnDom) { + return this.matchNode('parentNode', 'parentNode', selector, returnDom); + }, position:function(pos, zIndex, x, y) { + var me = this; + if (me.dom.tagName !== 'BODY') { + if (!pos && me.isStyle(POSITION, STATIC)) { + me.setStyle(POSITION, RELATIVE); + } else { + if (pos) { + me.setStyle(POSITION, pos); + } + } + if (zIndex) { + me.setStyle(ZINDEX, zIndex); + } + if (x || y) { + me.setXY([x || false, y || false]); + } + } + }, prev:function(selector, returnDom) { + return this.matchNode('previousSibling', 'previousSibling', selector, returnDom); + }, query:function(selector, asDom, single) { + var dom = this.dom, results, len, nlen, node, nodes, i, j; + if (!dom) { + return null; + } + asDom = asDom !== false; + selector = selector.split(','); + if (!single) { + results = []; + } + for (i = 0, len = selector.length; i < len; i++) { + if (typeof selector[i] === 'string') { + if (single) { + node = dom.querySelector(selector[i]); + return asDom ? node : Ext.get(node); + } + nodes = dom.querySelectorAll(selector[i]); + for (j = 0, nlen = nodes.length; j < nlen; j++) { + results.push(asDom ? nodes[j] : Ext.get(nodes[j])); + } + } + } + return results; + }, radioCls:function(className) { + var cn = this.dom.parentNode.childNodes, v; + className = Ext.isArray(className) ? className : [className]; + for (var i = 0, len = cn.length; i < len; i++) { + v = cn[i]; + if (v && v.nodeType === 1) { + Ext.fly(v).removeCls(className); + } + } + return this.addCls(className); + }, redraw:function() { + var dom = this.dom, domStyle = dom.style; + domStyle.display = 'none'; + dom.offsetHeight; + domStyle.display = ''; + }, remove:function() { + this.destroy(); + }, removeChild:function(element) { + this.dom.removeChild(Ext.getDom(element)); + return this; + }, removeCls:function(names, prefix, suffix) { + var me = this, elementData = me.getData(), hasNewCls, dom, map, classList, i, ln, name; + if (!names) { + return me; + } + if (!elementData.isSynchronized) { + me.synchronize(); + } + dom = me.dom; + map = elementData.classMap; + classList = elementData.classList; + prefix = prefix ? prefix + SEPARATOR : ''; + suffix = suffix ? SEPARATOR + suffix : ''; + if (typeof names === 'string') { + names = names.split(spacesRe); + } + for (i = 0, ln = names.length; i < ln; i++) { + name = names[i]; + if (name) { + name = prefix + name + suffix; + if (map[name]) { + delete map[name]; + Ext.Array.remove(classList, name); + hasNewCls = true; + } + } + } + if (hasNewCls) { + dom.className = classList.join(' '); + } + return me; + }, repaint:function() { + var me = this; + me.addCls(Ext.baseCSSPrefix + 'repaint'); + Ext.defer(function() { + if (me.dom) { + Ext.fly(me.dom).removeCls(Ext.baseCSSPrefix + 'repaint'); + } + }, 1); + return me; + }, replace:function(el, destroy) { + el = Ext.getDom(el); + var parentNode = el.parentNode, id = el.id, dom = this.dom; + if (!parentNode) { + Ext.raise('Cannot replace element "' + id + '". It is not attached to a parent node.'); + } + if (destroy !== false && id && Ext.cache[id]) { + parentNode.insertBefore(dom, el); + Ext.get(el).destroy(); + } else { + parentNode.replaceChild(dom, el); + } + return this; + }, replaceCls:function(oldName, newName, prefix, suffix) { + var me = this, dom, map, classList, i, ln, name, elementData = me.getData(), change; + if (!oldName && !newName) { + return me; + } + oldName = oldName || []; + newName = newName || []; + if (!elementData.isSynchronized) { + me.synchronize(); + } + if (!suffix) { + suffix = ''; + } + dom = me.dom; + map = elementData.classMap; + classList = elementData.classList; + prefix = prefix ? prefix + SEPARATOR : ''; + suffix = suffix ? SEPARATOR + suffix : ''; + if (typeof oldName === 'string') { + oldName = oldName.split(spacesRe); + } + if (typeof newName === 'string') { + newName = newName.split(spacesRe); + } + for (i = 0, ln = oldName.length; i < ln; i++) { + name = prefix + oldName[i] + suffix; + if (map[name]) { + delete map[name]; + change = true; + } + } + for (i = 0, ln = newName.length; i < ln; i++) { + name = prefix + newName[i] + suffix; + if (!map[name]) { + map[name] = true; + change = true; + } + } + if (change) { + elementData.classList = classList = Ext.Object.getKeys(map); + dom.className = classList.join(' '); + } + return me; + }, replaceWith:function(el) { + var me = this, dom = me.dom, parent = dom.parentNode, cache = Ext.cache, newDom; + me.clearListeners(); + if (el.nodeType || el.dom || typeof el === 'string') { + el = Ext.get(el); + newDom = parent.insertBefore(el.dom, dom); + } else { + newDom = Ext.DomHelper.insertBefore(dom, el); + } + parent.removeChild(dom); + me.dom = newDom; + if (!me.isFly) { + delete cache[me.id]; + cache[me.id = Ext.id(newDom)] = me; + } + return me; + }, resolveListenerScope:function(defaultScope) { + var component = this.component; + return component ? component.resolveListenerScope(defaultScope) : this; + }, scroll:function(direction, distance, animate) { + if (!this.isScrollable()) { + return false; + } + direction = direction.charAt(0); + var me = this, dom = me.dom, side = direction === 'r' || direction === 'l' ? 'left' : 'top', scrolled = false, currentScroll, constrainedScroll; + if (direction === 'l' || direction === 't' || direction === 'u') { + distance = -distance; + } + if (side === 'left') { + currentScroll = dom.scrollLeft; + constrainedScroll = me.constrainScrollLeft(currentScroll + distance); + } else { + currentScroll = dom.scrollTop; + constrainedScroll = me.constrainScrollTop(currentScroll + distance); + } + if (constrainedScroll !== currentScroll) { + this.scrollTo(side, constrainedScroll, animate); + scrolled = true; + } + return scrolled; + }, scrollBy:function(deltaX, deltaY, animate) { + var me = this, dom = me.dom; + if (deltaX.length) { + animate = deltaY; + deltaY = deltaX[1]; + deltaX = deltaX[0]; + } else { + if (typeof deltaX != 'number') { + animate = deltaY; + deltaY = deltaX.y; + deltaX = deltaX.x; + } + } + if (deltaX) { + me.scrollTo('left', me.constrainScrollLeft(dom.scrollLeft + deltaX), animate); + } + if (deltaY) { + me.scrollTo('top', me.constrainScrollTop(dom.scrollTop + deltaY), animate); + } + return me; + }, scrollChildIntoView:function(child, hscroll) { + Ext.fly(child).scrollIntoView(this, hscroll); + }, scrollIntoView:function(container, hscroll, animate, highlight) { + container = Ext.getDom(container) || Ext.getBody().dom; + return this.doScrollIntoView(container, hscroll, animate, highlight, 'getScrollLeft', 'scrollTo'); + }, scrollTo:function(side, value, animate) { + var top = topRe.test(side), me = this, prop = top ? 'scrollTop' : 'scrollLeft', dom = me.dom, animCfg; + if (!animate || !me.anim) { + dom[prop] = value; + dom[prop] = value; + } else { + animCfg = {to:{}}; + animCfg.to[prop] = value; + if (Ext.isObject(animate)) { + Ext.applyIf(animCfg, animate); + } + me.animate(animCfg); + } + return me; + }, select:function(selector, composite) { + var isElementArray, elements; + if (typeof selector === 'string') { + elements = this.query(selector, !composite); + } else { + if (selector.length === undefined) { + Ext.raise('Invalid selector specified: ' + selector); + } else { + elements = selector; + isElementArray = true; + } + } + return composite ? new Ext.CompositeElement(elements, !isElementArray) : new Ext.CompositeElementLite(elements, true); + }, selectNode:function(selector, asDom) { + return this.query(selector, asDom, true); + }, set:function(attributes, useSet) { + var me = this, dom = me.dom, attribute, value; + for (attribute in attributes) { + if (attributes.hasOwnProperty(attribute)) { + value = attributes[attribute]; + if (attribute === 'style') { + me.applyStyles(value); + } else { + if (attribute === 'cls') { + dom.className = value; + } else { + if (useSet !== false) { + if (value === undefined) { + dom.removeAttribute(attribute); + } else { + dom.setAttribute(attribute, value); + } + } else { + dom[attribute] = value; + } + } + } + } + } + return me; + }, setBottom:function(bottom) { + this.dom.style[BOTTOM] = Element.addUnits(bottom); + return this; + }, setCls:function(className) { + var me = this, elementData = me.getData(), i, ln, name, map, classList; + if (!elementData.isSynchronized) { + me.synchronize(); + } + if (typeof className === 'string') { + className = className.split(spacesRe); + } + elementData.classList = classList = className.slice(); + elementData.classMap = map = {}; + for (i = 0, ln = classList.length; i < ln; i++) { + map[classList[i]] = true; + } + me.dom.className = classList.join(' '); + }, setDisplayed:function(value) { + var me = this; + if (typeof value === 'boolean') { + value = value ? me._getDisplay() : NONE; + } + me.setStyle(DISPLAY, value); + if (me.shadow || me.shim) { + me.setUnderlaysVisible(value !== NONE); + } + return me; + }, setHeight:function(height) { + var me = this; + me.dom.style[HEIGHT] = Element.addUnits(height); + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + return me; + }, setHtml:function(html) { + if (this.dom) { + this.dom.innerHTML = html; + } + return this; + }, setId:function(id) { + var me = this, currentId = me.id, cache = Ext.cache; + if (currentId) { + delete cache[currentId]; + } + me.dom.id = id; + me.id = id; + cache[id] = me; + return me; + }, setLeft:function(left) { + var me = this; + me.dom.style[LEFT] = Element.addUnits(left); + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + return me; + }, setLocalX:function(x) { + var me = this, style = me.dom.style; + style.right = 'auto'; + style.left = x === null ? 'auto' : x + 'px'; + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + return me; + }, setLocalXY:function(x, y) { + var me = this, style = me.dom.style; + style.right = 'auto'; + if (x && x.length) { + y = x[1]; + x = x[0]; + } + if (x === null) { + style.left = 'auto'; + } else { + if (x !== undefined) { + style.left = x + 'px'; + } + } + if (y === null) { + style.top = 'auto'; + } else { + if (y !== undefined) { + style.top = y + 'px'; + } + } + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + return me; + }, setLocalY:function(y) { + var me = this; + me.dom.style.top = y === null ? 'auto' : y + 'px'; + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + return me; + }, setMargin:function(margin) { + var me = this, domStyle = me.dom.style; + if (margin || margin === 0) { + margin = me.self.unitizeBox(margin === true ? 5 : margin); + domStyle.setProperty('margin', margin, 'important'); + } else { + domStyle.removeProperty('margin-top'); + domStyle.removeProperty('margin-right'); + domStyle.removeProperty('margin-bottom'); + domStyle.removeProperty('margin-left'); + } + }, setMaxHeight:function(height) { + this.dom.style[MAX_HEIGHT] = Element.addUnits(height); + return this; + }, setMaxWidth:function(width) { + this.dom.style[MAX_WIDTH] = Element.addUnits(width); + return this; + }, setMinHeight:function(height) { + this.dom.style[MIN_HEIGHT] = Element.addUnits(height); + return this; + }, setMinWidth:function(width) { + this.dom.style[MIN_WIDTH] = Element.addUnits(width); + return this; + }, setOpacity:function(opacity) { + var me = this; + if (me.dom) { + me.setStyle('opacity', opacity); + } + return me; + }, setPadding:function(padding) { + var me = this, domStyle = me.dom.style; + if (padding || padding === 0) { + padding = me.self.unitizeBox(padding === true ? 5 : padding); + domStyle.setProperty('padding', padding, 'important'); + } else { + domStyle.removeProperty('padding-top'); + domStyle.removeProperty('padding-right'); + domStyle.removeProperty('padding-bottom'); + domStyle.removeProperty('padding-left'); + } + }, setRight:function(right) { + this.dom.style[RIGHT] = Element.addUnits(right); + return this; + }, setScrollLeft:function(left) { + this.dom.scrollLeft = left; + return this; + }, setScrollTop:function(top) { + this.dom.scrollTop = top; + return this; + }, setSize:function(width, height) { + var me = this, style = me.dom.style; + if (Ext.isObject(width)) { + height = width.height; + width = width.width; + } + style.width = Element.addUnits(width); + style.height = Element.addUnits(height); + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + return me; + }, setSizeState:function(state) { + var me = this, add, remove; + if (state === true) { + add = sizedCls; + remove = [unsizedCls, stretchedCls]; + } else { + if (state === false) { + add = unsizedCls; + remove = [sizedCls, stretchedCls]; + } else { + if (state === null) { + add = stretchedCls; + remove = [sizedCls, unsizedCls]; + } else { + remove = [sizedCls, unsizedCls, stretchedCls]; + } + } + } + if (add) { + me.addCls(add); + } + me.removeCls(remove); + return me; + }, setStyle:function(prop, value) { + var me = this, dom = me.dom, hooks = me.styleHooks, style = dom.style, name = prop, hook; + if (typeof name === 'string') { + hook = hooks[name]; + if (!hook) { + hooks[name] = hook = {name:Element.normalize(name)}; + } + value = value == null ? '' : value; + if (hook.set) { + hook.set(dom, value, me); + } else { + style[hook.name] = value; + } + if (hook.afterSet) { + hook.afterSet(dom, value, me); + } + } else { + for (name in prop) { + if (prop.hasOwnProperty(name)) { + hook = hooks[name]; + if (!hook) { + hooks[name] = hook = {name:Element.normalize(name)}; + } + value = prop[name]; + value = value == null ? '' : value; + if (hook.set) { + hook.set(dom, value, me); + } else { + style[hook.name] = value; + } + if (hook.afterSet) { + hook.afterSet(dom, value, me); + } + } + } + } + return me; + }, setText:function(text) { + this.dom.textContent = text; + }, setTop:function(top) { + var me = this; + me.dom.style[TOP] = Element.addUnits(top); + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + return me; + }, setUnderlaysVisible:function(visible) { + var shadow = this.shadow, shim = this.shim; + if (shadow && !shadow.disabled) { + if (visible) { + shadow.show(); + } else { + shadow.hide(); + } + } + if (shim && !shim.disabled) { + if (visible) { + shim.show(); + } else { + shim.hide(); + } + } + }, setVisibility:function(isVisible) { + var domStyle = this.dom.style; + if (isVisible) { + domStyle.removeProperty('visibility'); + } else { + domStyle.setProperty('visibility', 'hidden', 'important'); + } + }, setVisibilityMode:function(mode) { + if (mode !== 1 && mode !== 2 && mode !== 3 && mode !== 4) { + Ext.raise('visibilityMode must be one of the following: ' + 'Ext.Element.DISPLAY, Ext.Element.VISIBILITY, Ext.Element.OFFSETS, ' + 'or Ext.Element.CLIP'); + } + this.getData().visibilityMode = mode; + return this; + }, setVisible:function(visible) { + var me = this, mode = me.getVisibilityMode(), addOrRemove = visible ? 'removeCls' : 'addCls'; + switch(mode) { + case Element.DISPLAY: + me.removeCls([visibilityCls, offsetsCls, clipCls]); + me[addOrRemove](displayCls); + break; + case Element.VISIBILITY: + me.removeCls([displayCls, offsetsCls, clipCls]); + me[addOrRemove](visibilityCls); + break; + case Element.OFFSETS: + me.removeCls([visibilityCls, displayCls, clipCls]); + me[addOrRemove](offsetsCls); + break; + case Element.CLIP: + me.removeCls([visibilityCls, displayCls, offsetsCls]); + me[addOrRemove](clipCls); + break; + } + if (me.shadow || me.shim) { + me.setUnderlaysVisible(visible); + } + return me; + }, setWidth:function(width) { + var me = this; + me.dom.style[WIDTH] = Element.addUnits(width); + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + return me; + }, setX:function(x) { + return this.setXY([x, false]); + }, setXY:function(xy) { + var me = this, pts = me.translatePoints(xy), style = me.dom.style, pos; + me.position(); + style.right = 'auto'; + for (pos in pts) { + if (!isNaN(pts[pos])) { + style[pos] = pts[pos] + 'px'; + } + } + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + return me; + }, setY:function(y) { + return this.setXY([false, y]); + }, setZIndex:function(zindex) { + var me = this; + if (me.shadow) { + me.shadow.setZIndex(zindex); + } + if (me.shim) { + me.shim.setZIndex(zindex); + } + return me.setStyle('z-index', zindex); + }, show:function() { + this.setVisible(true); + return this; + }, swapCls:function(firstClass, secondClass, flag, prefix) { + if (flag === undefined) { + flag = true; + } + var me = this, addedClass = flag ? firstClass : secondClass, removedClass = flag ? secondClass : firstClass; + if (removedClass) { + me.removeCls(prefix ? prefix + '-' + removedClass : removedClass); + } + if (addedClass) { + me.addCls(prefix ? prefix + '-' + addedClass : addedClass); + } + return me; + }, synchronize:function() { + var me = this, dom = me.dom, hasClassMap = {}, className = dom.className, classList, i, ln, name, elementData = me.getData(); + if (className && className.length > 0) { + classList = dom.className.split(classNameSplitRegex); + for (i = 0, ln = classList.length; i < ln; i++) { + name = classList[i]; + hasClassMap[name] = true; + } + } else { + classList = []; + } + elementData.classList = classList; + elementData.classMap = hasClassMap; + elementData.isSynchronized = true; + return me; + }, syncUnderlays:function() { + var me = this, shadow = me.shadow, shim = me.shim, dom = me.dom, xy, x, y, w, h; + if (me.isVisible()) { + xy = me.getXY(); + x = xy[0]; + y = xy[1]; + w = dom.offsetWidth; + h = dom.offsetHeight; + if (shadow && !shadow.hidden) { + shadow.realign(x, y, w, h); + } + if (shim && !shim.hidden) { + shim.realign(x, y, w, h); + } + } + }, toggleCls:function(className, state) { + if (typeof state !== 'boolean') { + state = !this.hasCls(className); + } + return state ? this.addCls(className) : this.removeCls(className); + }, toggle:function() { + this.setVisible(!this.isVisible()); + return this; + }, translate:function() { + var transformStyleName = 'webkitTransform' in DOC.createElement('div').style ? 'webkitTransform' : 'transform'; + return function(x, y, z) { + this.dom.style[transformStyleName] = 'translate3d(' + (x || 0) + 'px, ' + (y || 0) + 'px, ' + (z || 0) + 'px)'; + }; + }(), unmaskIframes:function() { + var iframes = document.getElementsByTagName('iframe'); + Ext.each(iframes, function(iframe) { + var iframeParent = Ext.fly(iframe.parentNode); + iframeParent.unmask(); + }); + }, unwrap:function() { + var dom = this.dom, parentNode = dom.parentNode, grandparentNode, activeElement = Ext.fly(Ext.Element.getActiveElement()), cached, resumeFocus, grannyFly, tabIndex; + cached = Ext.cache[activeElement.id]; + if (cached) { + activeElement = cached; + } + if (this.contains(activeElement)) { + if (cached) { + cached.suspendFocusEvents(); + } + resumeFocus = true; + } + if (parentNode) { + grandparentNode = parentNode.parentNode; + if (resumeFocus) { + tabIndex = grandparentNode.getAttribute('tabIndex'); + grannyFly = Ext.fly(grandparentNode); + grannyFly.set({tabIndex:-1}); + grannyFly.suspendFocusEvents(); + grannyFly.focus(); + } + grandparentNode.insertBefore(dom, parentNode); + grandparentNode.removeChild(parentNode); + } else { + grandparentNode = document.createDocumentFragment(); + grandparentNode.appendChild(dom); + } + if (resumeFocus) { + if (cached) { + cached.focus(); + cached.resumeFocusEvents(); + } else { + Ext.fly(activeElement).focus(); + } + if (grannyFly) { + grannyFly.resumeFocusEvents(); + grannyFly.set({tabIndex:tabIndex}); + } + } + return this; + }, up:function(simpleSelector, limit, returnDom) { + return this.findParentNode(simpleSelector, limit, !returnDom); + }, update:function(html) { + return this.setHtml(html); + }, wrap:function(config, returnDom, selector) { + var me = this, dom = me.dom, newEl = Ext.DomHelper.insertBefore(dom, config || {tag:'div'}, !returnDom), target = newEl, activeElement = Ext.Element.getActiveElement(), cached, resumeFocus, tabIndex; + cached = Ext.cache[activeElement.id]; + if (cached) { + activeElement = cached; + } + if (selector) { + target = newEl.selectNode(selector, returnDom); + } + if (me.contains(activeElement)) { + if (cached) { + cached.suspendFocusEvents(); + } + tabIndex = newEl.dom.getAttribute('tabIndex'); + newEl.set({tabIndex:-1}); + newEl.suspendFocusEvents(); + newEl.focus(); + resumeFocus = true; + } + target.appendChild(dom); + if (resumeFocus) { + if (cached) { + cached.focus(); + cached.resumeFocusEvents(); + } else { + Ext.fly(activeElement).focus(); + } + newEl.resumeFocusEvents(); + newEl.set({tabIndex:tabIndex}); + } + return newEl; + }, privates:{doAddListener:function(eventName, fn, scope, options, order, caller, manager) { + var me = this, observableDoAddListener, additiveEventName, translatedEventName; + eventName = Ext.canonicalEventName(eventName); + if (!me.blockedEvents[eventName]) { + observableDoAddListener = me.mixins.observable.doAddListener; + options = options || {}; + if (me.longpressEvents[eventName]) { + me.disableTouchContextMenu(); + } + if (Element.useDelegatedEvents === false) { + options.delegated = options.delegated || false; + } + if (options.translate !== false) { + additiveEventName = me.additiveEvents[eventName]; + if (additiveEventName) { + options.type = eventName; + eventName = additiveEventName; + observableDoAddListener.call(me, eventName, fn, scope, options, order, caller, manager); + } + translatedEventName = me.eventMap[eventName]; + if (translatedEventName) { + options.type = options.type || eventName; + eventName = translatedEventName; + } + } + observableDoAddListener.call(me, eventName, fn, scope, options, order, caller, manager); + delete options.type; + } + }, doRemoveListener:function(eventName, fn, scope) { + var me = this, observableDoRemoveListener, translatedEventName, additiveEventName, contextMenuListenerRemover; + if (!me.blockedEvents[eventName]) { + observableDoRemoveListener = me.mixins.observable.doRemoveListener; + if (me.longpressEvents[eventName]) { + contextMenuListenerRemover = this._contextMenuListenerRemover; + if (contextMenuListenerRemover) { + contextMenuListenerRemover.destroy(); + } + } + additiveEventName = me.additiveEvents[eventName]; + if (additiveEventName) { + eventName = additiveEventName; + observableDoRemoveListener.call(me, eventName, fn, scope); + } + translatedEventName = me.eventMap[eventName]; + if (translatedEventName) { + observableDoRemoveListener.call(me, translatedEventName, fn, scope); + } + observableDoRemoveListener.call(me, eventName, fn, scope); + } + }, _initEvent:function(eventName) { + return this.events[eventName] = new Ext.dom.ElementEvent(this, eventName); + }, _getDisplay:function() { + var data = this.getData(), display = data[ORIGINALDISPLAY]; + if (display === undefined) { + data[ORIGINALDISPLAY] = display = ''; + } + return display; + }, _getPublisher:function(eventName) { + var Publisher = Ext.event.publisher.Publisher, publisher = Publisher.publishersByEvent[eventName]; + if (!publisher || this.dom === window && eventName === 'resize') { + publisher = Publisher.publishers.dom; + } + return publisher; + }, isFocusSuspended:function() { + return !!this.getData().suspendFocusEvents; + }, suspendFocusEvents:function() { + if (!this.isFly) { + this.suspendEvent('focus', 'blur'); + } + this.getData().suspendFocusEvents = true; + }, resumeFocusEvents:function() { + function resumeFn() { + var data; + if (!this.destroyed) { + data = this.getData(); + if (data) { + data.suspendFocusEvents = false; + } + if (!this.isFly) { + this.resumeEvent('focus', 'blur'); + } + } + } + if (!this.destroyed && this.getData().suspendFocusEvents) { + if (Ext.isIE) { + Ext.asap(resumeFn, this); + } else { + resumeFn.call(this); + } + } + }}, deprecated:{'5.0':{methods:{cssTranslate:null, getHTML:'getHtml', getOuterHeight:null, getOuterWidth:null, getPageBox:function(getRegion) { + var me = this, dom = me.dom, isDoc = dom.nodeName === 'BODY', w = isDoc ? Element.getViewportWidth() : dom.offsetWidth, h = isDoc ? Element.getViewportHeight() : dom.offsetHeight, xy = me.getXY(), t = xy[1], r = xy[0] + w, b = xy[1] + h, l = xy[0]; + if (getRegion) { + return new Ext.util.Region(t, r, b, l); + } else { + return {left:l, top:t, width:w, height:h, right:r, bottom:b}; + } + }, getScrollParent:null, isDescendent:null, isTransparent:function(prop) { + var value = this.getStyle(prop); + return value ? transparentRe.test(value) : false; + }, purgeAllListeners:'clearListeners', removeAllListeners:'clearListeners', setHTML:'setHtml', setTopLeft:null}}}}; +}, function(Element) { + var DOC = document, prototype = Element.prototype, supports = Ext.supports, pointerdown = 'pointerdown', pointermove = 'pointermove', pointerup = 'pointerup', pointercancel = 'pointercancel', MSPointerDown = 'MSPointerDown', MSPointerMove = 'MSPointerMove', MSPointerUp = 'MSPointerUp', MSPointerCancel = 'MSPointerCancel', mousedown = 'mousedown', mousemove = 'mousemove', mouseup = 'mouseup', mouseover = 'mouseover', mouseout = 'mouseout', mouseenter = 'mouseenter', mouseleave = 'mouseleave', touchstart = + 'touchstart', touchmove = 'touchmove', touchend = 'touchend', touchcancel = 'touchcancel', click = 'click', dblclick = 'dblclick', tap = 'tap', doubletap = 'doubletap', eventMap = prototype.eventMap = {}, additiveEvents = prototype.additiveEvents = {}, oldId = Ext.id, eventOptions; + Ext.id = function(obj, prefix) { + var el = Ext.getDom(obj, true), sandboxPrefix, id; + if (!el) { + id = oldId(obj, prefix); + } else { + if (!(id = el.id)) { + id = oldId(null, prefix || Element.prototype.identifiablePrefix); + if (Ext.isSandboxed) { + sandboxPrefix = Ext.sandboxPrefix || (Ext.sandboxPrefix = Ext.sandboxName.toLowerCase() + '-'); + id = sandboxPrefix + id; + } + el.id = id; + } + } + return id; + }; + if (supports.PointerEvents) { + eventMap[mousedown] = pointerdown; + eventMap[mousemove] = pointermove; + eventMap[mouseup] = pointerup; + eventMap[touchstart] = pointerdown; + eventMap[touchmove] = pointermove; + eventMap[touchend] = pointerup; + eventMap[touchcancel] = pointercancel; + eventMap[click] = tap; + eventMap[dblclick] = doubletap; + eventMap[mouseover] = 'pointerover'; + eventMap[mouseout] = 'pointerout'; + eventMap[mouseenter] = 'pointerenter'; + eventMap[mouseleave] = 'pointerleave'; + } else { + if (supports.MSPointerEvents) { + eventMap[pointerdown] = MSPointerDown; + eventMap[pointermove] = MSPointerMove; + eventMap[pointerup] = MSPointerUp; + eventMap[pointercancel] = MSPointerCancel; + eventMap[mousedown] = MSPointerDown; + eventMap[mousemove] = MSPointerMove; + eventMap[mouseup] = MSPointerUp; + eventMap[touchstart] = MSPointerDown; + eventMap[touchmove] = MSPointerMove; + eventMap[touchend] = MSPointerUp; + eventMap[touchcancel] = MSPointerCancel; + eventMap[click] = tap; + eventMap[dblclick] = doubletap; + eventMap[mouseover] = 'MSPointerOver'; + eventMap[mouseout] = 'MSPointerOut'; + } else { + if (supports.TouchEvents) { + eventMap[pointerdown] = touchstart; + eventMap[pointermove] = touchmove; + eventMap[pointerup] = touchend; + eventMap[pointercancel] = touchcancel; + eventMap[mousedown] = touchstart; + eventMap[mousemove] = touchmove; + eventMap[mouseup] = touchend; + eventMap[click] = tap; + eventMap[dblclick] = doubletap; + if (Ext.isWebKit && Ext.os.is.Desktop) { + eventMap[touchstart] = mousedown; + eventMap[touchmove] = mousemove; + eventMap[touchend] = mouseup; + eventMap[touchcancel] = mouseup; + additiveEvents[mousedown] = mousedown; + additiveEvents[mousemove] = mousemove; + additiveEvents[mouseup] = mouseup; + additiveEvents[touchstart] = touchstart; + additiveEvents[touchmove] = touchmove; + additiveEvents[touchend] = touchend; + additiveEvents[touchcancel] = touchcancel; + additiveEvents[pointerdown] = mousedown; + additiveEvents[pointermove] = mousemove; + additiveEvents[pointerup] = mouseup; + additiveEvents[pointercancel] = mouseup; + } + } else { + eventMap[pointerdown] = mousedown; + eventMap[pointermove] = mousemove; + eventMap[pointerup] = mouseup; + eventMap[pointercancel] = mouseup; + eventMap[touchstart] = mousedown; + eventMap[touchmove] = mousemove; + eventMap[touchend] = mouseup; + eventMap[touchcancel] = mouseup; + } + } + } + if (Ext.isWebKit) { + eventMap.transitionend = Ext.browser.getVendorProperyName('transitionEnd'); + eventMap.animationstart = Ext.browser.getVendorProperyName('animationStart'); + eventMap.animationend = Ext.browser.getVendorProperyName('animationEnd'); + } + if (!Ext.supports.MouseWheel && !Ext.isOpera) { + eventMap.mousewheel = 'DOMMouseScroll'; + } + eventOptions = prototype.$eventOptions = Ext.Object.chain(prototype.$eventOptions); + eventOptions.translate = eventOptions.capture = eventOptions.delegate = eventOptions.delegated = eventOptions.stopEvent = eventOptions.preventDefault = eventOptions.stopPropagation = eventOptions.element = 1; + prototype.styleHooks.opacity = {name:'opacity', afterSet:function(dom, value, el) { + var shadow = el.shadow; + if (shadow) { + shadow.setOpacity(value); + } + }}; + prototype.getTrueXY = prototype.getXY; + Ext.select = Element.select; + Ext.query = Element.query; + Ext.apply(Ext, {get:function(element) { + return Element.get(element); + }, getDom:function(el) { + if (!el || !DOC) { + return null; + } + return typeof el === 'string' ? Ext.getElementById(el) : 'dom' in el ? el.dom : el; + }, getBody:function() { + if (!Ext._bodyEl) { + if (!DOC.body) { + throw new Error('[Ext.getBody] document.body does not yet exist'); + } + Ext._bodyEl = Ext.get(DOC.body); + } + return Ext._bodyEl; + }, getHead:function() { + if (!Ext._headEl) { + Ext._headEl = Ext.get(DOC.head || DOC.getElementsByTagName('head')[0]); + } + return Ext._headEl; + }, getDoc:function() { + if (!Ext._docEl) { + Ext._docEl = Ext.get(DOC); + } + return Ext._docEl; + }, getWin:function() { + if (!Ext._winEl) { + Ext._winEl = Ext.get(window); + } + return Ext._winEl; + }, removeNode:function(node) { + node = node.dom || node; + var id = node && node.id, el = Ext.cache[id], parent; + if (el) { + el.destroy(); + } else { + if (node && (node.nodeType === 3 || node.tagName.toUpperCase() !== 'BODY')) { + parent = node.parentNode; + if (parent) { + parent.removeChild(node); + } + } + } + }}); + Ext.isGarbage = function(dom) { + return dom && dom.nodeType === 1 && dom.tagName !== 'BODY' && dom.tagName !== 'HTML' && (!dom.parentNode || !dom.offsetParent && (Ext.isIE8 ? DOC.all[dom.id] : DOC.getElementById(dom.id)) !== dom && !(Ext.detachedBodyEl && Ext.detachedBodyEl.isAncestor(dom))); + }; + if (Ext.os.is.Android || Ext.os.is.Windows && Ext.supports.Touch) { + Ext.onReady(function() { + var win = Ext.getWin(); + Element._windowWidth = Element._viewportWidth = window.innerWidth; + Element._windowHeight = Element._viewportHeight = window.innerHeight; + win.on({focusin:'_onWindowFocusChange', focusout:'_onWindowFocusChange', pointerup:'_onWindowFocusChange', capture:true, delegated:false, delay:1, scope:Element}); + win.on({resize:'_onWindowResize', priority:2000, scope:Element}); + }); + } +}); +Ext.define('Ext.util.Filter', {isFilter:true, config:{property:null, value:null, filterFn:null, id:null, anyMatch:false, exactMatch:false, caseSensitive:false, disabled:false, disableOnEmpty:false, operator:null, root:null, serializer:null, convert:null}, scope:null, $configStrict:false, statics:{createFilterFn:function(filters) { + if (!filters) { + return Ext.returnTrue; + } + return function(candidate) { + var items = filters.isCollection ? filters.items : filters, length = items.length, match = true, i, filter; + for (i = 0; match && i < length; i++) { + filter = items[i]; + if (!filter.getDisabled()) { + match = filter.filter(candidate); + } + } + return match; + }; +}, isInvalid:function(cfg) { + if (!cfg.filterFn) { + if (!cfg.property) { + return 'A Filter requires either a property or a filterFn to be set'; + } + if (!cfg.hasOwnProperty('value') && !cfg.operator) { + return 'A Filter requires either a property and value, or a filterFn to be set'; + } + } + return false; +}}, constructor:function(config) { + var warn = Ext.util.Filter.isInvalid(config); + if (warn) { + Ext.log.warn(warn); + } + this.initConfig(config); +}, preventConvert:{'in':1, notin:1}, filter:function(item) { + var me = this, filterFn = me._filterFn || me.getFilterFn(), convert = me.getConvert(), value = me._value; + me._filterValue = value; + me.isDateValue = Ext.isDate(value); + if (me.isDateValue) { + me.dateValue = value.getTime(); + } + if (convert && !me.preventConvert[me.getOperator()]) { + me._filterValue = convert.call(me.scope || me, value); + } + return filterFn.call(me.scope || me, item); +}, getId:function() { + var id = this._id; + if (!id) { + id = this.getProperty(); + if (!id) { + id = Ext.id(null, 'ext-filter-'); + } + this._id = id; + } + return id; +}, getFilterFn:function() { + var me = this, filterFn = me._filterFn, operator; + if (!filterFn) { + operator = me.getOperator(); + if (operator) { + filterFn = me.operatorFns[operator]; + } else { + filterFn = me.createRegexFilter(); + } + me._filterFn = filterFn; + } + return filterFn; +}, createRegexFilter:function() { + var me = this, anyMatch = !!me.getAnyMatch(), exact = !!me.getExactMatch(), value = me.getValue(), matcher = Ext.String.createRegex(value, !anyMatch, !anyMatch && exact, !me.getCaseSensitive()); + return function(item) { + var val = me.getPropertyValue(item); + return matcher ? matcher.test(val) : val == null; + }; +}, getPropertyValue:function(item) { + var root = this._root, value = root == null ? item : item[root]; + return value[this._property]; +}, getState:function() { + var config = this.getInitialConfig(), result = {}, name; + for (name in config) { + if (config.hasOwnProperty(name)) { + result[name] = config[name]; + } + } + delete result.root; + result.value = this.getValue(); + return result; +}, getScope:function() { + return this.scope; +}, serialize:function() { + var result = this.getState(), serializer = this.getSerializer(); + delete result.id; + delete result.serializer; + if (serializer) { + serializer.call(this, result); + } + return result; +}, updateOperator:function() { + this._filterFn = null; +}, updateValue:function(value) { + this._filterFn = null; + if (this.getDisableOnEmpty()) { + this.setDisabled(Ext.isEmpty(value)); + } +}, updateDisableOnEmpty:function(disableOnEmpty) { + var disabled = false; + if (disableOnEmpty) { + disabled = Ext.isEmpty(this.getValue()); + } + this.setDisabled(disabled); +}, privates:{getCandidateValue:function(candidate, v, preventCoerce) { + var me = this, convert = me._convert, result = me.getPropertyValue(candidate); + if (convert) { + result = convert.call(me.scope || me, result); + } else { + if (!preventCoerce) { + result = Ext.coerce(result, v); + } + } + return result; +}}}, function() { + var prototype = this.prototype, operatorFns = prototype.operatorFns = {'\x3c':function(candidate) { + var v = this._filterValue; + return this.getCandidateValue(candidate, v) < v; + }, '\x3c\x3d':function(candidate) { + var v = this._filterValue; + return this.getCandidateValue(candidate, v) <= v; + }, '\x3d':function(candidate) { + var me = this, v = me._filterValue; + candidate = me.getCandidateValue(candidate, v); + if (me.isDateValue && candidate instanceof Date) { + candidate = candidate.getTime(); + v = me.dateValue; + } + return candidate == v; + }, '\x3d\x3d\x3d':function(candidate) { + var me = this, v = me._filterValue; + candidate = me.getCandidateValue(candidate, v, true); + if (me.isDateValue && candidate instanceof Date) { + candidate = candidate.getTime(); + v = me.dateValue; + } + return candidate === v; + }, '\x3e\x3d':function(candidate) { + var v = this._filterValue; + return this.getCandidateValue(candidate, v) >= v; + }, '\x3e':function(candidate) { + var v = this._filterValue; + return this.getCandidateValue(candidate, v) > v; + }, '!\x3d':function(candidate) { + var me = this, v = me._filterValue; + candidate = me.getCandidateValue(candidate, v); + if (me.isDateValue && candidate instanceof Date) { + candidate = candidate.getTime(); + v = me.dateValue; + } + return candidate != v; + }, '!\x3d\x3d':function(candidate) { + var me = this, v = me._filterValue; + candidate = me.getCandidateValue(candidate, v, true); + if (me.isDateValue && candidate instanceof Date) { + candidate = candidate.getTime(); + v = me.dateValue; + } + return candidate !== v; + }, 'in':function(candidate) { + var v = this._filterValue; + return Ext.Array.contains(v, this.getCandidateValue(candidate, v)); + }, notin:function(candidate) { + var v = this._filterValue; + return !Ext.Array.contains(v, this.getCandidateValue(candidate, v)); + }, like:function(candidate) { + var v = this._filterValue; + return v && this.getCandidateValue(candidate, v).toLowerCase().indexOf(v.toLowerCase()) > -1; + }}; + operatorFns['\x3d\x3d'] = operatorFns['\x3d']; + operatorFns.gt = operatorFns['\x3e']; + operatorFns.ge = operatorFns['\x3e\x3d']; + operatorFns.lt = operatorFns['\x3c']; + operatorFns.le = operatorFns['\x3c\x3d']; + operatorFns.eq = operatorFns['\x3d']; + operatorFns.ne = operatorFns['!\x3d']; +}); +Ext.define('Ext.util.Observable', {extend:Ext.mixin.Observable, $applyConfigs:true}, function(Observable) { + var Super = Ext.mixin.Observable; + Observable.releaseCapture = Super.releaseCapture; + Observable.capture = Super.capture; + Observable.captureArgs = Super.captureArgs; + Observable.observe = Observable.observeClass = Super.observe; +}); +Ext.define('Ext.util.AbstractMixedCollection', {mixins:{observable:Ext.util.Observable}, isMixedCollection:true, generation:0, indexGeneration:0, constructor:function(allowFunctions, keyFn) { + var me = this; + if (arguments.length === 1 && Ext.isObject(allowFunctions)) { + me.initialConfig = allowFunctions; + Ext.apply(me, allowFunctions); + } else { + me.allowFunctions = allowFunctions === true; + if (keyFn) { + me.getKey = keyFn; + } + me.initialConfig = {allowFunctions:me.allowFunctions, getKey:me.getKey}; + } + me.items = []; + me.map = {}; + me.keys = []; + me.indexMap = {}; + me.length = 0; + me.mixins.observable.constructor.call(me); +}, destroy:function() { + var me = this; + me.items = me.map = me.keys = me.indexMap = null; + me.callParent(); +}, allowFunctions:false, add:function(key, obj) { + var len = this.length, out; + if (arguments.length === 1) { + out = this.insert(len, key); + } else { + out = this.insert(len, key, obj); + } + return out; +}, getKey:function(o) { + return o.id; +}, replace:function(key, o) { + var me = this, old, index; + if (arguments.length == 1) { + o = arguments[0]; + key = me.getKey(o); + } + old = me.map[key]; + if (typeof key == 'undefined' || key === null || typeof old == 'undefined') { + return me.add(key, o); + } + me.generation++; + index = me.indexOfKey(key); + me.items[index] = o; + me.map[key] = o; + if (me.hasListeners.replace) { + me.fireEvent('replace', key, old, o); + } + return o; +}, reorder:function(mapping) { + var me = this, items = me.items, index = 0, length = items.length, order = [], remaining = [], oldIndex; + me.suspendEvents(); + for (oldIndex in mapping) { + order[mapping[oldIndex]] = items[oldIndex]; + } + for (index = 0; index < length; index++) { + if (mapping[index] == undefined) { + remaining.push(items[index]); + } + } + for (index = 0; index < length; index++) { + if (order[index] == undefined) { + order[index] = remaining.shift(); + } + } + me.clear(); + me.addAll(order); + me.resumeEvents(); +}, updateKey:function(oldKey, newKey) { + var me = this, map = me.map, index = me.indexOfKey(oldKey), indexMap = me.indexMap, item; + if (index > -1) { + item = map[oldKey]; + delete map[oldKey]; + delete indexMap[oldKey]; + map[newKey] = item; + indexMap[newKey] = index; + me.keys[index] = newKey; + me.indexGeneration = ++me.generation; + } +}, addAll:function(objs) { + var me = this, key; + if (arguments.length > 1 || Ext.isArray(objs)) { + me.insert(me.length, arguments.length > 1 ? arguments : objs); + } else { + for (key in objs) { + if (objs.hasOwnProperty(key)) { + if (me.allowFunctions || typeof objs[key] != 'function') { + me.add(key, objs[key]); + } + } + } + } +}, each:function(fn, scope) { + var items = Ext.Array.push([], this.items), i = 0, len = items.length, item; + for (; i < len; i++) { + item = items[i]; + if (fn.call(scope || item, item, i, len) === false) { + break; + } + } +}, eachKey:function(fn, scope) { + var keys = this.keys, items = this.items, i = 0, len = keys.length; + for (; i < len; i++) { + fn.call(scope || window, keys[i], items[i], i, len); + } +}, findBy:function(fn, scope) { + var keys = this.keys, items = this.items, i = 0, len = items.length; + for (; i < len; i++) { + if (fn.call(scope || window, items[i], keys[i])) { + return items[i]; + } + } + return null; +}, insert:function(index, key, obj) { + var out; + if (Ext.isIterable(key)) { + out = this.doInsert(index, key, obj); + } else { + if (arguments.length > 2) { + out = this.doInsert(index, [key], [obj]); + } else { + out = this.doInsert(index, [key]); + } + out = out[0]; + } + return out; +}, doInsert:function(index, keys, objects) { + var me = this, itemKey, removeIndex, i, len = keys.length, deDupedLen = len, fireAdd = me.hasListeners.add, syncIndices, newKeys = {}, passedDuplicates, oldKeys, oldObjects; + if (objects != null) { + me.useLinearSearch = true; + } else { + objects = keys; + keys = new Array(len); + for (i = 0; i < len; i++) { + keys[i] = this.getKey(objects[i]); + } + } + me.suspendEvents(); + for (i = 0; i < len; i++) { + itemKey = keys[i]; + removeIndex = me.indexOfKey(itemKey); + if (removeIndex !== -1) { + if (removeIndex < index) { + index--; + } + me.removeAt(removeIndex); + } + if (itemKey != null) { + if (newKeys[itemKey] != null) { + passedDuplicates = true; + deDupedLen--; + } + newKeys[itemKey] = i; + } + } + me.resumeEvents(); + if (passedDuplicates) { + oldKeys = keys; + oldObjects = objects; + keys = new Array(deDupedLen); + objects = new Array(deDupedLen); + i = 0; + for (itemKey in newKeys) { + keys[i] = oldKeys[newKeys[itemKey]]; + objects[i] = oldObjects[newKeys[itemKey]]; + i++; + } + len = deDupedLen; + } + syncIndices = index === me.length && me.indexGeneration === me.generation; + Ext.Array.insert(me.items, index, objects); + Ext.Array.insert(me.keys, index, keys); + me.length += len; + me.generation++; + if (syncIndices) { + me.indexGeneration = me.generation; + } + for (i = 0; i < len; i++, index++) { + itemKey = keys[i]; + if (itemKey != null) { + me.map[itemKey] = objects[i]; + if (syncIndices) { + me.indexMap[itemKey] = index; + } + } + if (fireAdd) { + me.fireEvent('add', index, objects[i], itemKey); + } + } + return objects; +}, remove:function(o) { + var me = this, removeKey, index; + if (!me.useLinearSearch && (removeKey = me.getKey(o))) { + index = me.indexOfKey(removeKey); + } else { + index = Ext.Array.indexOf(me.items, o); + } + return index === -1 ? false : me.removeAt(index); +}, removeAll:function(items) { + var me = this, i; + if (items || me.hasListeners.remove) { + if (items) { + for (i = items.length - 1; i >= 0; --i) { + me.remove(items[i]); + } + } else { + while (me.length) { + me.removeAt(0); + } + } + } else { + me.length = me.items.length = me.keys.length = 0; + me.map = {}; + me.indexMap = {}; + me.generation++; + me.indexGeneration = me.generation; + } +}, removeAt:function(index) { + var me = this, o, key; + if (index < me.length && index >= 0) { + me.length--; + o = me.items[index]; + Ext.Array.erase(me.items, index, 1); + key = me.keys[index]; + if (typeof key != 'undefined') { + delete me.map[key]; + } + Ext.Array.erase(me.keys, index, 1); + if (me.hasListeners.remove) { + me.fireEvent('remove', o, key); + } + me.generation++; + return o; + } + return false; +}, removeRange:function(index, removeCount) { + var me = this, o, key, i, limit, syncIndices, trimming; + if (index < me.length && index >= 0) { + if (!removeCount) { + removeCount = 1; + } + limit = Math.min(index + removeCount, me.length); + removeCount = limit - index; + trimming = limit === me.length; + syncIndices = trimming && me.indexGeneration === me.generation; + for (i = index; i < limit; i++) { + key = me.keys[i]; + if (key != null) { + delete me.map[key]; + if (syncIndices) { + delete me.indexMap[key]; + } + } + } + o = me.items[i - 1]; + me.length -= removeCount; + me.generation++; + if (syncIndices) { + me.indexGeneration = me.generation; + } + if (trimming) { + me.items.length = me.keys.length = me.length; + } else { + me.items.splice(index, removeCount); + me.keys.splice(index, removeCount); + } + return o; + } + return false; +}, removeAtKey:function(key) { + var me = this, keys = me.keys, i; + if (key == null) { + for (i = keys.length - 1; i >= 0; i--) { + if (keys[i] == null) { + me.removeAt(i); + } + } + } else { + return me.removeAt(me.indexOfKey(key)); + } +}, getCount:function() { + return this.length; +}, indexOf:function(o) { + var me = this, key; + if (o != null) { + if (!me.useLinearSearch && (key = me.getKey(o))) { + return this.indexOfKey(key); + } + return Ext.Array.indexOf(me.items, o); + } + return -1; +}, indexOfKey:function(key) { + if (!this.map.hasOwnProperty(key)) { + return -1; + } + if (this.indexGeneration !== this.generation) { + this.rebuildIndexMap(); + } + return this.indexMap[key]; +}, rebuildIndexMap:function() { + var me = this, indexMap = me.indexMap = {}, keys = me.keys, len = keys.length, i; + for (i = 0; i < len; i++) { + indexMap[keys[i]] = i; + } + me.indexGeneration = me.generation; +}, get:function(key) { + var me = this, mk = me.map[key], item = mk !== undefined ? mk : typeof key == 'number' ? me.items[key] : undefined; + return typeof item != 'function' || me.allowFunctions ? item : null; +}, getAt:function(index) { + return this.items[index]; +}, getByKey:function(key) { + return this.map[key]; +}, contains:function(o) { + var me = this, key; + if (o != null) { + if (!me.useLinearSearch && (key = me.getKey(o))) { + return this.map[key] != null; + } + return Ext.Array.indexOf(this.items, o) !== -1; + } + return false; +}, containsKey:function(key) { + return this.map.hasOwnProperty(key); +}, clear:function() { + var me = this; + if (me.generation) { + me.length = 0; + me.items = []; + me.keys = []; + me.map = {}; + me.indexMap = {}; + me.generation++; + me.indexGeneration = me.generation; + } + if (me.hasListeners.clear) { + me.fireEvent('clear'); + } +}, first:function() { + return this.items[0]; +}, last:function() { + return this.items[this.length - 1]; +}, sum:function(property, root, start, end) { + var values = this.extractValues(property, root), length = values.length, sum = 0, i; + start = start || 0; + end = end || end === 0 ? end : length - 1; + for (i = start; i <= end; i++) { + sum += values[i]; + } + return sum; +}, collect:function(property, root, allowNull) { + var values = this.extractValues(property, root), length = values.length, hits = {}, unique = [], value, strValue, i; + for (i = 0; i < length; i++) { + value = values[i]; + strValue = String(value); + if ((allowNull || !Ext.isEmpty(value)) && !hits[strValue]) { + hits[strValue] = true; + unique.push(value); + } + } + return unique; +}, extractValues:function(property, root) { + var values = this.items; + if (root) { + values = Ext.Array.pluck(values, root); + } + return Ext.Array.pluck(values, property); +}, hasRange:function(start, end) { + return end < this.length; +}, getRange:function(start, end) { + var me = this, items = me.items, range = [], len = items.length, tmp, reverse; + if (len < 1) { + return range; + } + if (start > end) { + reverse = true; + tmp = start; + start = end; + end = tmp; + } + if (start < 0) { + start = 0; + } + if (end == null || end >= len) { + end = len - 1; + } + range = items.slice(start, end + 1); + if (reverse && range.length) { + range.reverse(); + } + return range; +}, filter:function(property, value, anyMatch, caseSensitive) { + var filters = []; + if (Ext.isString(property)) { + filters.push(new Ext.util.Filter({property:property, value:value, anyMatch:anyMatch, caseSensitive:caseSensitive})); + } else { + if (Ext.isArray(property) || property instanceof Ext.util.Filter) { + filters = filters.concat(property); + } + } + return this.filterBy(Ext.util.Filter.createFilterFn(filters)); +}, filterBy:function(fn, scope) { + var me = this, newMC = new me.self(me.initialConfig), keys = me.keys, items = me.items, length = items.length, i; + newMC.getKey = me.getKey; + for (i = 0; i < length; i++) { + if (fn.call(scope || me, items[i], keys[i])) { + newMC.add(keys[i], items[i]); + } + } + newMC.useLinearSearch = me.useLinearSearch; + return newMC; +}, findIndex:function(property, value, start, anyMatch, caseSensitive) { + if (Ext.isEmpty(value, false)) { + return -1; + } + value = this.createValueMatcher(value, anyMatch, caseSensitive); + return this.findIndexBy(function(o) { + return o && value.test(o[property]); + }, null, start); +}, findIndexBy:function(fn, scope, start) { + var me = this, keys = me.keys, items = me.items, i = start || 0, len = items.length; + for (; i < len; i++) { + if (fn.call(scope || me, items[i], keys[i])) { + return i; + } + } + return -1; +}, createValueMatcher:function(value, anyMatch, caseSensitive, exactMatch) { + if (!value.exec) { + var er = Ext.String.escapeRegex; + value = String(value); + if (anyMatch === true) { + value = er(value); + } else { + value = '^' + er(value); + if (exactMatch === true) { + value += '$'; + } + } + value = new RegExp(value, caseSensitive ? '' : 'i'); + } + return value; +}, clone:function() { + var me = this, copy = new me.self(me.initialConfig); + copy.add(me.keys, me.items); + copy.useLinearSearch = me.useLinearSearch; + return copy; +}}); +Ext.define('Ext.util.Sorter', {isSorter:true, config:{property:null, sorterFn:null, root:null, transform:null, direction:'ASC', id:undefined}, statics:{createComparator:function(sorters, nextFn) { + nextFn = nextFn || 0; + return function(lhs, rhs) { + var items = sorters.isCollection ? sorters.items : sorters, n = items.length, comp, i; + for (i = 0; i < n; ++i) { + comp = items[i].sort(lhs, rhs); + if (comp) { + return comp; + } + } + return nextFn && nextFn(lhs, rhs); + }; +}}, multiplier:1, constructor:function(config) { + if (config && !this.isGrouper) { + if (!config.property === !config.sorterFn) { + Ext.raise('A Sorter requires either a property or a sorterFn.'); + } + } + this.initConfig(config); +}, getId:function() { + var id = this._id; + if (!id) { + id = this.getProperty(); + if (!id) { + id = Ext.id(null, 'ext-sorter-'); + } + this._id = id; + } + return id; +}, sort:function(lhs, rhs) { + return this.multiplier * this.sortFn(lhs, rhs); +}, sortFn:function(item1, item2) { + var me = this, transform = me._transform, root = me._root, property = me._property, lhs, rhs; + if (root) { + item1 = item1[root]; + item2 = item2[root]; + } + lhs = item1[property]; + rhs = item2[property]; + if (transform) { + lhs = transform(lhs); + rhs = transform(rhs); + } + return lhs > rhs ? 1 : lhs < rhs ? -1 : 0; +}, applyDirection:function(direction) { + return direction ? direction : 'ASC'; +}, updateDirection:function(direction) { + this.multiplier = direction.toUpperCase() === 'DESC' ? -1 : 1; +}, updateProperty:function(property) { + if (property) { + delete this.sortFn; + } +}, updateSorterFn:function(sorterFn) { + this.sortFn = sorterFn; +}, toggle:function() { + this.setDirection(Ext.String.toggle(this.getDirection(), 'ASC', 'DESC')); +}, getState:function() { + var me = this, result = {root:me.getRoot(), property:me.getProperty(), direction:me.getDirection()}; + if (me._id) { + result.id = me._id; + } + return result; +}, serialize:function() { + return {property:this.getProperty(), direction:this.getDirection()}; +}}); +Ext.define('Ext.util.Sortable', {isSortable:true, $configPrefixed:false, $configStrict:false, config:{sorters:null}, defaultSortDirection:'ASC', multiSortLimit:3, statics:{createComparator:function(sorters) { + return sorters && sorters.length ? function(r1, r2) { + var result = sorters[0].sort(r1, r2), length = sorters.length, i = 1; + for (; !result && i < length; i++) { + result = sorters[i].sort.call(sorters[i], r1, r2); + } + return result; + } : function() { + return 0; + }; +}}, applySorters:function(sorters) { + var me = this, sortersCollection = me.getSorters() || new Ext.util.MixedCollection(false, Ext.returnId); + if (sorters) { + sortersCollection.addAll(me.decodeSorters(sorters)); + } + return sortersCollection; +}, sort:function(sorters, direction, insertionPosition, doSort) { + var me = this, sorter, overFlow, currentSorters = me.getSorters(); + if (!currentSorters) { + me.setSorters(null); + currentSorters = me.getSorters(); + } + if (Ext.isArray(sorters)) { + doSort = insertionPosition; + insertionPosition = direction; + } else { + if (Ext.isObject(sorters)) { + sorters = [sorters]; + doSort = insertionPosition; + insertionPosition = direction; + } else { + if (Ext.isString(sorters)) { + sorter = currentSorters.get(sorters); + if (!sorter) { + sorter = {property:sorters, direction:direction}; + } else { + if (direction == null) { + sorter.toggle(); + } else { + sorter.setDirection(direction); + } + } + sorters = [sorter]; + } + } + } + if (sorters && sorters.length) { + sorters = me.decodeSorters(sorters); + switch(insertionPosition) { + case 'multi': + currentSorters.insert(0, sorters[0]); + overFlow = currentSorters.getCount() - me.multiSortLimit; + if (overFlow > 0) { + currentSorters.removeRange(me.multiSortLimit, overFlow); + } + break; + case 'prepend': + currentSorters.insert(0, sorters); + break; + case 'append': + currentSorters.addAll(sorters); + break; + case undefined: + case null: + case 'replace': + currentSorters.clear(); + currentSorters.addAll(sorters); + break; + default: + Ext.raise('Sorter insertion point must be "multi", "prepend", "append" or "replace"'); + } + } + if (doSort !== false) { + me.fireEvent('beforesort', me, sorters); + me.onBeforeSort(sorters); + if (me.getSorterCount()) { + me.doSort(me.generateComparator()); + } + } + return sorters; +}, getSorterCount:function() { + return this.getSorters().items.length; +}, generateComparator:function() { + var sorters = this.getSorters().getRange(); + return sorters.length ? this.createComparator(sorters) : this.emptyComparator; +}, emptyComparator:function() { + return 0; +}, onBeforeSort:Ext.emptyFn, decodeSorters:function(sorters) { + if (!Ext.isArray(sorters)) { + if (sorters === undefined) { + sorters = []; + } else { + sorters = [sorters]; + } + } + var length = sorters.length, Sorter = Ext.util.Sorter, model = this.getModel ? this.getModel() : this.model, field, config, i; + for (i = 0; i < length; i++) { + config = sorters[i]; + if (!(config instanceof Sorter)) { + if (Ext.isString(config)) { + config = {property:config}; + } + Ext.applyIf(config, {root:this.sortRoot, direction:'ASC'}); + if (config.fn) { + config.sorterFn = config.fn; + } + if (typeof config == 'function') { + config = {sorterFn:config}; + } + if (model && !config.transform) { + field = model.getField(config.property); + config.transform = field && field.sortType !== Ext.identityFn ? field.sortType : undefined; + } + sorters[i] = new Ext.util.Sorter(config); + } + } + return sorters; +}, getFirstSorter:function() { + var sorters = this.getSorters().items, len = sorters.length, i = 0, sorter; + for (; i < len; ++i) { + sorter = sorters[i]; + if (!sorter.isGrouper) { + return sorter; + } + } + return null; +}}, function() { + this.prototype.createComparator = this.createComparator; +}); +Ext.define('Ext.util.MixedCollection', {extend:Ext.util.AbstractMixedCollection, mixins:{sortable:Ext.util.Sortable}, constructor:function() { + this.initConfig(); + this.callParent(arguments); +}, doSort:function(sorterFn) { + this.sortBy(sorterFn); +}, _sort:function(property, dir, fn) { + var me = this, i, len, dsc = String(dir).toUpperCase() == 'DESC' ? -1 : 1, c = [], keys = me.keys, items = me.items, o; + fn = fn || function(a, b) { + return a - b; + }; + for (i = 0, len = items.length; i < len; i++) { + c[c.length] = {key:keys[i], value:items[i], index:i}; + } + Ext.Array.sort(c, function(a, b) { + return fn(a[property], b[property]) * dsc || (a.index < b.index ? -1 : 1); + }); + for (i = 0, len = c.length; i < len; i++) { + o = c[i]; + items[i] = o.value; + keys[i] = o.key; + me.indexMap[o.key] = i; + } + me.generation++; + me.indexGeneration = me.generation; + me.fireEvent('sort', me); +}, sortBy:function(sorterFn) { + var me = this, items = me.items, item, keys = me.keys, key, length = items.length, i; + for (i = 0; i < length; i++) { + items[i].$extCollectionIndex = i; + } + Ext.Array.sort(items, function(a, b) { + return sorterFn(a, b) || (a.$extCollectionIndex < b.$extCollectionIndex ? -1 : 1); + }); + for (i = 0; i < length; i++) { + item = items[i]; + key = me.getKey(item); + keys[i] = key; + me.indexMap[key] = i; + delete items.$extCollectionIndex; + } + me.generation++; + me.indexGeneration = me.generation; + me.fireEvent('sort', me, items, keys); +}, findInsertionIndex:function(newItem, sorterFn) { + var me = this, items = me.items, start = 0, end = items.length - 1, middle, comparison; + if (!sorterFn) { + sorterFn = me.generateComparator(); + } + while (start <= end) { + middle = start + end >> 1; + comparison = sorterFn(newItem, items[middle]); + if (comparison >= 0) { + start = middle + 1; + } else { + if (comparison < 0) { + end = middle - 1; + } + } + } + return start; +}, reorder:function(mapping) { + this.callParent([mapping]); + this.fireEvent('sort', this); +}, sortByKey:function(dir, fn) { + this._sort('key', dir, fn || function(a, b) { + var v1 = String(a).toUpperCase(), v2 = String(b).toUpperCase(); + return v1 > v2 ? 1 : v1 < v2 ? -1 : 0; + }); +}}); +Ext.define('Ext.util.TaskRunner', {interval:10, timerId:null, constructor:function(interval) { + var me = this; + if (typeof interval == 'number') { + me.interval = interval; + } else { + if (interval) { + Ext.apply(me, interval); + } + } + me.tasks = []; + me.timerFn = Ext.Function.bind(me.onTick, me); +}, newTask:function(config) { + var task = new Ext.util.TaskRunner.Task(config); + task.manager = this; + return task; +}, start:function(task) { + var me = this, now = Ext.Date.now(); + if (!task.pending) { + me.tasks.push(task); + task.pending = true; + } + task.stopped = false; + task.taskStartTime = now; + task.taskRunTime = task.fireOnStart !== false ? 0 : task.taskStartTime; + task.taskRunCount = 0; + if (!me.firing) { + if (task.fireOnStart !== false) { + me.startTimer(0, now); + } else { + me.startTimer(task.interval, now); + } + } + return task; +}, stop:function(task) { + if (!task.stopped) { + task.stopped = true; + if (task.onStop) { + task.onStop.call(task.scope || task, task); + } + } + return task; +}, stopAll:function() { + Ext.each(this.tasks, this.stop, this); +}, firing:false, nextExpires:1.0E99, onTick:function() { + var me = this, tasks = me.tasks, now = Ext.Date.now(), nextExpires = 1.0E99, len = tasks.length, globalEvents = Ext.GlobalEvents, expires, newTasks, i, task, rt, remove, fireIdleEvent; + me.timerId = null; + me.firing = true; + for (i = 0; i < len || i < (len = tasks.length); ++i) { + task = tasks[i]; + if (!(remove = task.stopped)) { + expires = task.taskRunTime + task.interval; + if (expires <= now) { + rt = 1; + if (task.hasOwnProperty('fireIdleEvent')) { + fireIdleEvent = task.fireIdleEvent; + } else { + fireIdleEvent = me.fireIdleEvent; + } + try { + rt = task.run.apply(task.scope || task, task.args || [++task.taskRunCount]); + } catch (taskError) { + try { + Ext.log({fn:task.run, prefix:'Error while running task', stack:taskError.stack, msg:taskError, level:'error'}); + if (task.onError) { + rt = task.onError.call(task.scope || task, task, taskError); + } + } catch (ignore) { + } + } + task.taskRunTime = now; + if (rt === false || task.taskRunCount === task.repeat) { + me.stop(task); + remove = true; + } else { + remove = task.stopped; + expires = now + task.interval; + } + } + if (!remove && task.duration && task.duration <= now - task.taskStartTime) { + me.stop(task); + remove = true; + } + } + if (remove) { + task.pending = false; + if (!newTasks) { + newTasks = tasks.slice(0, i); + } + } else { + if (newTasks) { + newTasks.push(task); + } + if (nextExpires > expires) { + nextExpires = expires; + } + } + } + if (newTasks) { + me.tasks = newTasks; + } + me.firing = false; + if (me.tasks.length) { + me.startTimer(nextExpires - now, Ext.Date.now()); + } + if (fireIdleEvent !== false && globalEvents.hasListeners.idle) { + globalEvents.fireEvent('idle'); + } +}, startTimer:function(timeout, now) { + var me = this, expires = now + timeout, timerId = me.timerId; + if (timerId && me.nextExpires - expires > me.interval) { + clearTimeout(timerId); + timerId = null; + } + if (!timerId) { + if (timeout < me.interval) { + timeout = me.interval; + } + me.timerId = Ext.defer(me.timerFn, timeout); + me.nextExpires = expires; + } +}}, function() { + var me = this, proto = me.prototype; + proto.destroy = proto.stopAll; + me.Task = new Ext.Class({isTask:true, stopped:true, fireOnStart:false, constructor:function(config) { + Ext.apply(this, config); + }, restart:function(interval) { + if (interval !== undefined) { + this.interval = interval; + } + this.manager.start(this); + }, start:function(interval) { + if (this.stopped) { + this.restart(interval); + } + }, stop:function() { + this.manager.stop(this); + }}); + proto = me.Task.prototype; + proto.destroy = proto.stop; +}); +Ext.define('Ext.fx.target.Target', {isAnimTarget:true, constructor:function(target) { + this.target = target; + this.id = this.getId(); +}, getId:function() { + return this.target.id; +}, remove:function() { + Ext.destroy(this.target); +}}); +Ext.define('Ext.fx.target.Element', {extend:Ext.fx.target.Target, type:'element', getElVal:function(el, attr, val) { + if (val === undefined) { + if (attr === 'x') { + val = el.getX(); + } else { + if (attr === 'y') { + val = el.getY(); + } else { + if (attr === 'scrollTop') { + val = el.getScroll().top; + } else { + if (attr === 'scrollLeft') { + val = el.getScroll().left; + } else { + if (attr === 'height') { + val = el.getHeight(); + } else { + if (attr === 'width') { + val = el.getWidth(); + } else { + val = el.getStyle(attr); + } + } + } + } + } + } + } + return val; +}, getAttr:function(attr, val) { + var el = this.target; + return [[el, this.getElVal(el, attr, val)]]; +}, setAttr:function(targetData) { + var ln = targetData.length, attrs, attr, o, i, j, ln2; + for (i = 0; i < ln; i++) { + attrs = targetData[i].attrs; + for (attr in attrs) { + if (attrs.hasOwnProperty(attr)) { + ln2 = attrs[attr].length; + for (j = 0; j < ln2; j++) { + o = attrs[attr][j]; + this.setElVal(o[0], attr, o[1]); + } + } + } + } +}, setElVal:function(element, attr, value) { + if (attr === 'x') { + element.setX(value); + } else { + if (attr === 'y') { + element.setY(value); + } else { + if (attr === 'scrollTop') { + element.scrollTo('top', value); + } else { + if (attr === 'scrollLeft') { + element.scrollTo('left', value); + } else { + if (attr === 'width') { + element.setWidth(value); + } else { + if (attr === 'height') { + element.setHeight(value); + } else { + element.setStyle(attr, value); + } + } + } + } + } + } +}}); +Ext.define('Ext.fx.target.ElementCSS', {extend:Ext.fx.target.Element, setAttr:function(targetData, isFirstFrame) { + var cssArr = {attrs:[], duration:[], easing:[]}, ln = targetData.length, cleanerFn = function() { + this.setStyle(Ext.supports.CSS3Prefix + 'TransitionProperty', null); + this.setStyle(Ext.supports.CSS3Prefix + 'TransitionDuration', null); + this.setStyle(Ext.supports.CSS3Prefix + 'TransitionTimingFunction', null); + }, single = {single:true}, attributes, attrs, attr, easing, duration, o, i, j, ln2; + for (i = 0; i < ln; i++) { + attrs = targetData[i]; + duration = attrs.duration; + easing = attrs.easing; + attrs = attrs.attrs; + for (attr in attrs) { + if (Ext.Array.indexOf(cssArr.attrs, attr) == -1) { + cssArr.attrs.push(attr.replace(/[A-Z]/g, function(v) { + return '-' + v.toLowerCase(); + })); + cssArr.duration.push(duration + 'ms'); + cssArr.easing.push(easing); + } + } + } + attributes = cssArr.attrs.join(','); + duration = cssArr.duration.join(','); + easing = cssArr.easing.join(', '); + for (i = 0; i < ln; i++) { + attrs = targetData[i].attrs; + for (attr in attrs) { + ln2 = attrs[attr].length; + for (j = 0; j < ln2; j++) { + o = attrs[attr][j]; + o[0].setStyle(Ext.supports.CSS3Prefix + 'TransitionProperty', isFirstFrame ? '' : attributes); + o[0].setStyle(Ext.supports.CSS3Prefix + 'TransitionDuration', isFirstFrame ? '' : duration); + o[0].setStyle(Ext.supports.CSS3Prefix + 'TransitionTimingFunction', isFirstFrame ? '' : easing); + o[0].setStyle(attr, o[1]); + if (isFirstFrame) { + o = o[0].dom.offsetWidth; + } else { + o[0].on(Ext.supports.CSS3TransitionEnd, cleanerFn, o[0], single); + } + } + } + } +}}); +Ext.define('Ext.fx.target.CompositeElement', {extend:Ext.fx.target.Element, isComposite:true, constructor:function(target) { + target.id = target.id || Ext.id(null, 'ext-composite-'); + this.callParent([target]); +}, getAttr:function(attr, val) { + var out = [], target = this.target, elements = target.elements, length = elements.length, i, el; + for (i = 0; i < length; i++) { + el = elements[i]; + if (el) { + el = target.getElement(el); + out.push([el, this.getElVal(el, attr, val)]); + } + } + return out; +}, setAttr:function(targetData) { + var target = this.target, ln = targetData.length, elements = target.elements, ln3 = elements.length, value, k, attrs, attr, el, i, j, ln2; + for (i = 0; i < ln; i++) { + attrs = targetData[i].attrs; + for (attr in attrs) { + if (attrs.hasOwnProperty(attr)) { + ln2 = attrs[attr].length; + for (j = 0; j < ln2; j++) { + value = attrs[attr][j][1]; + for (k = 0; k < ln3; ++k) { + el = elements[k]; + if (el) { + el = target.getElement(el); + this.setElVal(el, attr, value); + } + } + } + } + } + } +}, remove:function() { + this.target.destroy(); +}}); +Ext.define('Ext.fx.target.CompositeElementCSS', {extend:Ext.fx.target.CompositeElement, setAttr:function() { + return Ext.fx.target.ElementCSS.prototype.setAttr.apply(this, arguments); +}}); +Ext.define('Ext.fx.target.Sprite', {extend:Ext.fx.target.Target, type:'draw', getFromPrim:function(sprite, attr) { + var obj; + switch(attr) { + case 'rotate': + case 'rotation': + obj = sprite.attr.rotation; + return {x:obj.x || 0, y:obj.y || 0, degrees:obj.degrees || 0}; + case 'scale': + case 'scaling': + obj = sprite.attr.scaling; + return {x:obj.x || 1, y:obj.y || 1, cx:obj.cx || 0, cy:obj.cy || 0}; + case 'translate': + case 'translation': + obj = sprite.attr.translation; + return {x:obj.x || 0, y:obj.y || 0}; + default: + return sprite.attr[attr]; + } +}, getAttr:function(attr, val) { + return [[this.target, val !== undefined ? val : this.getFromPrim(this.target, attr)]]; +}, setAttr:function(targetData) { + var ln = targetData.length, spriteArr = [], attrsConf, attr, attrArr, attrs, sprite, idx, value, i, j, x, y, ln2; + for (i = 0; i < ln; i++) { + attrsConf = targetData[i].attrs; + for (attr in attrsConf) { + attrArr = attrsConf[attr]; + ln2 = attrArr.length; + for (j = 0; j < ln2; j++) { + sprite = attrArr[j][0]; + attrs = attrArr[j][1]; + if (attr === 'translate' || attr === 'translation') { + value = {x:attrs.x, y:attrs.y}; + } else { + if (attr === 'rotate' || attr === 'rotation') { + x = attrs.x; + if (isNaN(x)) { + x = null; + } + y = attrs.y; + if (isNaN(y)) { + y = null; + } + value = {degrees:attrs.degrees, x:x, y:y}; + } else { + if (attr === 'scale' || attr === 'scaling') { + x = attrs.x; + if (isNaN(x)) { + x = null; + } + y = attrs.y; + if (isNaN(y)) { + y = null; + } + value = {x:x, y:y, cx:attrs.cx, cy:attrs.cy}; + } else { + if (attr === 'width' || attr === 'height' || attr === 'x' || attr === 'y') { + value = parseFloat(attrs); + } else { + value = attrs; + } + } + } + } + idx = Ext.Array.indexOf(spriteArr, sprite); + if (idx === -1) { + spriteArr.push([sprite, {}]); + idx = spriteArr.length - 1; + } + spriteArr[idx][1][attr] = value; + } + } + } + ln = spriteArr.length; + for (i = 0; i < ln; i++) { + spriteArr[i][0].setAttributes(spriteArr[i][1]); + } + this.target.redraw(); +}}); +Ext.define('Ext.fx.target.CompositeSprite', {extend:Ext.fx.target.Sprite, getAttr:function(attr, val) { + var out = [], sprites = [].concat(this.target.items), length = sprites.length, i, sprite; + for (i = 0; i < length; i++) { + sprite = sprites[i]; + out.push([sprite, val !== undefined ? val : this.getFromPrim(sprite, attr)]); + } + return out; +}}); +Ext.define('Ext.fx.target.Component', {extend:Ext.fx.target.Target, type:'component', getPropMethod:{top:function() { + return this.getPosition(true)[1]; +}, left:function() { + return this.getPosition(true)[0]; +}, x:function() { + return this.getPosition()[0]; +}, y:function() { + return this.getPosition()[1]; +}, height:function() { + return this.getHeight(); +}, width:function() { + return this.getWidth(); +}, opacity:function() { + return this.el.getStyle('opacity'); +}}, setMethods:{top:'setPosition', left:'setPosition', x:'setPagePosition', y:'setPagePosition', height:'setSize', width:'setSize', opacity:'setOpacity'}, getAttr:function(attr, val) { + return [[this.target, val !== undefined ? val : this.getPropMethod[attr].call(this.target)]]; +}, setAttr:function(targetData, isFirstFrame, isLastFrame) { + var me = this, ln = targetData.length, attrs, attr, o, i, j, targets, left, top, w, h, methodsToCall = {}, methodProps; + for (i = 0; i < ln; i++) { + attrs = targetData[i].attrs; + for (attr in attrs) { + targets = attrs[attr].length; + for (j = 0; j < targets; j++) { + o = attrs[attr][j]; + methodProps = methodsToCall[me.setMethods[attr]] || (methodsToCall[me.setMethods[attr]] = {}); + methodProps.target = o[0]; + methodProps[attr] = o[1]; + } + } + if (methodsToCall.setPosition) { + o = methodsToCall.setPosition; + left = o.left === undefined ? undefined : parseFloat(o.left); + top = o.top === undefined ? undefined : parseFloat(o.top); + o.target.setPosition(left, top); + } + if (methodsToCall.setPagePosition) { + o = methodsToCall.setPagePosition; + o.target.setPagePosition(o.x, o.y); + } + if (methodsToCall.setSize) { + o = methodsToCall.setSize; + w = o.width === undefined ? o.target.getWidth() : parseFloat(o.width); + h = o.height === undefined ? o.target.getHeight() : parseFloat(o.height); + o.target.el.setSize(w, h); + if (isLastFrame || me.dynamic) { + Ext.GlobalEvents.on({idle:Ext.Function.bind(o.target.setSize, o.target, [w, h]), single:true}); + } + } + if (methodsToCall.setOpacity) { + o = methodsToCall.setOpacity; + o.target.el.setStyle('opacity', o.opacity); + } + } +}}); +Ext.define('Ext.fx.Queue', {constructor:function() { + this.targets = new Ext.util.HashMap; + this.fxQueue = {}; +}, getFxDefaults:function(targetId) { + var target = this.targets.get(targetId); + if (target) { + return target.fxDefaults; + } + return {}; +}, setFxDefaults:function(targetId, obj) { + var target = this.targets.get(targetId); + if (target) { + target.fxDefaults = Ext.apply(target.fxDefaults || {}, obj); + } +}, stopAnimation:function(targetId) { + var me = this, queue = me.getFxQueue(targetId), ln = queue.length, item; + while (ln) { + item = queue[ln - 1]; + if (item) { + item.end(); + } + ln--; + } +}, getActiveAnimation:function(targetId) { + var queue = this.getFxQueue(targetId); + return queue && !!queue.length ? queue[0] : false; +}, hasFxBlock:function(targetId) { + var queue = this.getFxQueue(targetId); + return queue && queue[0] && queue[0].block; +}, getFxQueue:function(targetId) { + if (!targetId) { + return false; + } + var me = this, queue = me.fxQueue[targetId], target = me.targets.get(targetId); + if (!target) { + return false; + } + if (!queue) { + me.fxQueue[targetId] = []; + if (target.type !== 'element') { + target.target.on('destroy', function() { + me.fxQueue[targetId] = []; + }); + } + } + return me.fxQueue[targetId]; +}, queueFx:function(anim) { + var me = this, target = anim.target, queue, ln; + if (!target) { + return; + } + queue = me.getFxQueue(target.getId()); + ln = queue.length; + if (ln) { + if (anim.concurrent) { + anim.paused = false; + } else { + queue[ln - 1].on('afteranimate', function() { + anim.paused = false; + }); + } + } else { + anim.paused = false; + } + anim.on('afteranimate', function() { + Ext.Array.remove(queue, anim); + if (queue.length === 0) { + me.targets.remove(anim.target); + } + if (anim.remove) { + if (target.type === 'element') { + var el = Ext.get(target.id); + if (el) { + el.destroy(); + } + } + } + }, me, {single:true}); + queue.push(anim); +}}); +Ext.define('Ext.fx.Manager', {singleton:true, mixins:{queue:Ext.fx.Queue}, constructor:function() { + var me = this; + me.items = new Ext.util.MixedCollection; + me.targetArr = {}; + me.mixins.queue.constructor.call(me); + me.taskRunner = new Ext.util.TaskRunner; +}, interval:16, forceJS:true, createTarget:function(target) { + var me = this, useCSS3 = !me.forceJS && Ext.supports.Transitions, targetObj; + me.useCSS3 = useCSS3; + if (target) { + if (target.tagName || Ext.isString(target) || target.isFly) { + target = Ext.get(target); + targetObj = new Ext.fx.target['Element' + (useCSS3 ? 'CSS' : '')](target); + } else { + if (target.dom) { + targetObj = new Ext.fx.target['Element' + (useCSS3 ? 'CSS' : '')](target); + } else { + if (target.isComposite) { + targetObj = new Ext.fx.target['CompositeElement' + (useCSS3 ? 'CSS' : '')](target); + } else { + if (target.isSprite) { + targetObj = new Ext.fx.target.Sprite(target); + } else { + if (target.isCompositeSprite) { + targetObj = new Ext.fx.target.CompositeSprite(target); + } else { + if (target.isComponent) { + targetObj = new Ext.fx.target.Component(target); + } else { + if (target.isAnimTarget) { + return target; + } else { + return null; + } + } + } + } + } + } + } + me.targets.add(targetObj); + return targetObj; + } else { + return null; + } +}, addAnim:function(anim) { + var me = this, items = me.items, task = me.task; + items.add(anim.id, anim); + if (!task && items.length) { + task = me.task = {run:me.runner, interval:me.interval, scope:me}; + me.taskRunner.start(task); + } +}, removeAnim:function(anim) { + var me = this, items = me.items, task = me.task; + items.removeAtKey(anim.id); + if (task && !items.length) { + me.taskRunner.stop(task); + delete me.task; + } +}, runner:function() { + var me = this, items = me.items.getRange(), i = 0, len = items.length, anim; + me.targetArr = {}; + me.timestamp = new Date; + for (; i < len; i++) { + anim = items[i]; + if (anim.isReady()) { + me.startAnim(anim); + } + } + for (i = 0; i < len; i++) { + anim = items[i]; + if (anim.isRunning()) { + me.runAnim(anim); + } + } + me.applyPendingAttrs(); + me.targetArr = null; +}, startAnim:function(anim) { + anim.start(this.timestamp); +}, runAnim:function(anim, forceEnd) { + if (!anim) { + return; + } + var me = this, useCSS3 = me.useCSS3 && anim.target.type === 'element', elapsedTime = me.timestamp - anim.startTime, lastFrame = elapsedTime >= anim.duration, target, o; + if (forceEnd) { + elapsedTime = anim.duration; + lastFrame = true; + } + target = this.collectTargetData(anim, elapsedTime, useCSS3, lastFrame); + if (useCSS3) { + anim.target.setAttr(target.anims[anim.id].attributes, true); + me.collectTargetData(anim, anim.duration, useCSS3, lastFrame); + anim.paused = true; + target = anim.target.target; + if (anim.target.isComposite) { + target = anim.target.target.last(); + } + o = {}; + o[Ext.supports.CSS3TransitionEnd] = anim.lastFrame; + o.scope = anim; + o.single = true; + target.on(o); + } + return target; +}, jumpToEnd:function(anim) { + var me = this, target, clear; + if (!me.targetArr) { + me.targetArr = {}; + clear = true; + } + target = me.runAnim(anim, true); + me.applyAnimAttrs(target, target.anims[anim.id]); + if (clear) { + me.targetArr = null; + } +}, collectTargetData:function(anim, elapsedTime, useCSS3, isLastFrame) { + var targetId = anim.target.getId(), target = this.targetArr[targetId]; + if (!target) { + target = this.targetArr[targetId] = {id:targetId, el:anim.target, anims:{}}; + } + target.anims[anim.id] = {id:anim.id, anim:anim, elapsed:elapsedTime, isLastFrame:isLastFrame, attributes:[{duration:anim.duration, easing:useCSS3 && anim.reverse ? anim.easingFn.reverse().toCSS3() : anim.easing, attrs:anim.runAnim(elapsedTime)}]}; + return target; +}, applyAnimAttrs:function(target, animWrap) { + var anim = animWrap.anim; + if (animWrap.attributes && anim.isRunning()) { + target.el.setAttr(animWrap.attributes, false, animWrap.isLastFrame); + if (animWrap.isLastFrame) { + anim.lastFrame(); + } + } +}, applyPendingAttrs:function() { + var targetArr = this.targetArr, target, targetId, animWrap, anim, animId; + for (targetId in targetArr) { + if (targetArr.hasOwnProperty(targetId)) { + target = targetArr[targetId]; + for (animId in target.anims) { + if (target.anims.hasOwnProperty(animId)) { + animWrap = target.anims[animId]; + anim = animWrap.anim; + if (animWrap.attributes && anim.isRunning()) { + target.el.setAttr(animWrap.attributes, false, animWrap.isLastFrame); + if (animWrap.isLastFrame) { + anim.lastFrame(); + } + } + } + } + } + } +}}); +Ext.define('Ext.fx.Animator', {mixins:{observable:Ext.util.Observable}, isAnimator:true, duration:250, delay:0, delayStart:0, dynamic:false, easing:'ease', running:false, paused:false, damper:1, iterations:1, currentIteration:0, keyframeStep:0, animKeyFramesRE:/^(from|to|\d+%?)$/, constructor:function(config) { + var me = this; + config = Ext.apply(me, config || {}); + me.config = config; + me.id = Ext.id(null, 'ext-animator-'); + me.mixins.observable.constructor.call(me, config); + me.timeline = []; + me.createTimeline(me.keyframes); + if (me.target) { + me.applyAnimator(me.target); + Ext.fx.Manager.addAnim(me); + } +}, sorter:function(a, b) { + return a.pct - b.pct; +}, createTimeline:function(keyframes) { + var me = this, attrs = [], to = me.to || {}, duration = me.duration, prevMs, ms, i, ln, pct, attr; + for (pct in keyframes) { + if (keyframes.hasOwnProperty(pct) && me.animKeyFramesRE.test(pct)) { + attr = {attrs:Ext.apply(keyframes[pct], to)}; + if (pct === 'from') { + pct = 0; + } else { + if (pct === 'to') { + pct = 100; + } + } + attr.pct = parseInt(pct, 10); + attrs.push(attr); + } + } + Ext.Array.sort(attrs, me.sorter); + ln = attrs.length; + for (i = 0; i < ln; i++) { + prevMs = attrs[i - 1] ? duration * (attrs[i - 1].pct / 100) : 0; + ms = duration * (attrs[i].pct / 100); + me.timeline.push({duration:ms - prevMs, attrs:attrs[i].attrs}); + } +}, applyAnimator:function(target) { + var me = this, anims = [], timeline = me.timeline, ln = timeline.length, anim, easing, damper, attrs, i; + if (me.fireEvent('beforeanimate', me) !== false) { + for (i = 0; i < ln; i++) { + anim = timeline[i]; + attrs = anim.attrs; + easing = attrs.easing || me.easing; + damper = attrs.damper || me.damper; + delete attrs.easing; + delete attrs.damper; + anim = new Ext.fx.Anim({target:target, easing:easing, damper:damper, duration:anim.duration, paused:true, to:attrs}); + anims.push(anim); + } + me.animations = anims; + me.target = anim.target; + for (i = 0; i < ln - 1; i++) { + anim = anims[i]; + anim.nextAnim = anims[i + 1]; + anim.on('afteranimate', function() { + this.nextAnim.paused = false; + }); + anim.on('afteranimate', function() { + this.fireEvent('keyframe', this, ++this.keyframeStep); + }, me); + } + anims[ln - 1].on('afteranimate', function() { + this.lastFrame(); + }, me); + } +}, start:function(startTime) { + var me = this, delay = me.delay, delayStart = me.delayStart, delayDelta; + if (delay) { + if (!delayStart) { + me.delayStart = startTime; + return; + } else { + delayDelta = startTime - delayStart; + if (delayDelta < delay) { + return; + } else { + startTime = new Date(delayStart.getTime() + delay); + } + } + } + if (me.fireEvent('beforeanimate', me) !== false) { + me.startTime = startTime; + me.running = true; + me.animations[me.keyframeStep].paused = false; + } +}, lastFrame:function() { + var me = this, iter = me.iterations, iterCount = me.currentIteration; + iterCount++; + if (iterCount < iter) { + me.startTime = new Date; + me.currentIteration = iterCount; + me.keyframeStep = 0; + me.applyAnimator(me.target); + me.animations[me.keyframeStep].paused = false; + } else { + me.currentIteration = 0; + me.end(); + } +}, end:function() { + var me = this; + me.fireEvent('afteranimate', me, me.startTime, new Date - me.startTime); +}, isReady:function() { + return this.paused === false && this.running === false && this.iterations > 0; +}, isRunning:function() { + return false; +}}); +Ext.define('Ext.fx.CubicBezier', {singleton:true, cubicBezierAtTime:function(t, p1x, p1y, p2x, p2y, duration) { + var cx = 3 * p1x, bx = 3 * (p2x - p1x) - cx, ax = 1 - cx - bx, cy = 3 * p1y, by = 3 * (p2y - p1y) - cy, ay = 1 - cy - by; + function sampleCurveX(t) { + return ((ax * t + bx) * t + cx) * t; + } + function solve(x, epsilon) { + var t = solveCurveX(x, epsilon); + return ((ay * t + by) * t + cy) * t; + } + function solveCurveX(x, epsilon) { + var t0, t1, t2, x2, d2, i; + for (t2 = x, i = 0; i < 8; i++) { + x2 = sampleCurveX(t2) - x; + if (Math.abs(x2) < epsilon) { + return t2; + } + d2 = (3 * ax * t2 + 2 * bx) * t2 + cx; + if (Math.abs(d2) < 1.0E-6) { + break; + } + t2 = t2 - x2 / d2; + } + t0 = 0; + t1 = 1; + t2 = x; + if (t2 < t0) { + return t0; + } + if (t2 > t1) { + return t1; + } + while (t0 < t1) { + x2 = sampleCurveX(t2); + if (Math.abs(x2 - x) < epsilon) { + return t2; + } + if (x > x2) { + t0 = t2; + } else { + t1 = t2; + } + t2 = (t1 - t0) / 2 + t0; + } + return t2; + } + return solve(t, 1 / (200 * duration)); +}, cubicBezier:function(x1, y1, x2, y2) { + var fn = function(pos) { + return Ext.fx.CubicBezier.cubicBezierAtTime(pos, x1, y1, x2, y2, 1); + }; + fn.toCSS3 = function() { + return 'cubic-bezier(' + [x1, y1, x2, y2].join(',') + ')'; + }; + fn.reverse = function() { + return Ext.fx.CubicBezier.cubicBezier(1 - x2, 1 - y2, 1 - x1, 1 - y1); + }; + return fn; +}}); +Ext.define('Ext.fx.Easing', function() { + var math = Math, pi = math.PI, pow = math.pow, sin = math.sin, sqrt = math.sqrt, abs = math.abs, backInSeed = 1.70158; + return {singleton:true, linear:Ext.identityFn, ease:function(n) { + var q = 0.07813 - n / 2, Q = sqrt(0.0066 + q * q), x = Q - q, X = pow(abs(x), 1 / 3) * (x < 0 ? -1 : 1), y = -Q - q, Y = pow(abs(y), 1 / 3) * (y < 0 ? -1 : 1), t = X + Y + 0.25; + return pow(1 - t, 2) * 3 * t * 0.1 + (1 - t) * 3 * t * t + t * t * t; + }, easeIn:function(n) { + return pow(n, 1.7); + }, easeOut:function(n) { + return pow(n, 0.48); + }, easeInOut:function(n) { + var q = 0.48 - n / 1.04, Q = sqrt(0.1734 + q * q), x = Q - q, X = pow(abs(x), 1 / 3) * (x < 0 ? -1 : 1), y = -Q - q, Y = pow(abs(y), 1 / 3) * (y < 0 ? -1 : 1), t = X + Y + 0.5; + return (1 - t) * 3 * t * t + t * t * t; + }, backIn:function(n) { + return n * n * ((backInSeed + 1) * n - backInSeed); + }, backOut:function(n) { + n = n - 1; + return n * n * ((backInSeed + 1) * n + backInSeed) + 1; + }, elasticIn:function(n) { + if (n === 0 || n === 1) { + return n; + } + var p = 0.3, s = p / 4; + return pow(2, -10 * n) * sin((n - s) * (2 * pi) / p) + 1; + }, elasticOut:function(n) { + return 1 - Ext.fx.Easing.elasticIn(1 - n); + }, bounceIn:function(n) { + return 1 - Ext.fx.Easing.bounceOut(1 - n); + }, bounceOut:function(n) { + var s = 7.5625, p = 2.75, l; + if (n < 1 / p) { + l = s * n * n; + } else { + if (n < 2 / p) { + n -= 1.5 / p; + l = s * n * n + 0.75; + } else { + if (n < 2.5 / p) { + n -= 2.25 / p; + l = s * n * n + 0.9375; + } else { + n -= 2.625 / p; + l = s * n * n + 0.984375; + } + } + } + return l; + }}; +}, function(me) { + var Easing = me.self, proto = Easing.prototype; + Easing.addMembers({'back-in':proto.backIn, 'back-out':proto.backOut, 'ease-in':proto.easeIn, 'ease-out':proto.easeOut, 'elastic-in':proto.elasticIn, 'elastic-out':proto.elasticOut, 'bounce-in':proto.bounceIn, 'bounce-out':proto.bounceOut, 'ease-in-out':proto.easeInOut}); +}); +Ext.define('Ext.fx.DrawPath', {singleton:true, pathToStringRE:/,?([achlmqrstvxz]),?/gi, pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig, pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig, stopsRE:/^(\d+%?)$/, radian:Math.PI / 180, is:function(o, type) { + type = String(type).toLowerCase(); + return type == 'object' && o === Object(o) || type == 'undefined' && typeof o == type || type == 'null' && o === null || type == 'array' && Array.isArray && Array.isArray(o) || Object.prototype.toString.call(o).toLowerCase().slice(8, -1) == type; +}, path2string:function() { + return this.join(',').replace(Ext.fx.DrawPath.pathToStringRE, '$1'); +}, pathToString:function(arrayPath) { + return arrayPath.join(',').replace(Ext.fx.DrawPath.pathToStringRE, '$1'); +}, parsePathString:function(pathString) { + if (!pathString) { + return null; + } + var paramCounts = {a:7, c:6, h:1, l:2, m:2, q:4, s:4, t:2, v:1, z:0}, data = [], me = this; + if (me.is(pathString, 'array') && me.is(pathString[0], 'array')) { + data = me.pathClone(pathString); + } + if (!data.length) { + String(pathString).replace(me.pathCommandRE, function(a, b, c) { + var params = [], name = b.toLowerCase(); + c.replace(me.pathValuesRE, function(a, b) { + if (b) { + params.push(+b); + } + }); + if (name == 'm' && params.length > 2) { + data.push([b].concat(Ext.Array.splice(params, 0, 2))); + name = 'l'; + b = b == 'm' ? 'l' : 'L'; + } + while (params.length >= paramCounts[name]) { + data.push([b].concat(Ext.Array.splice(params, 0, paramCounts[name]))); + if (!paramCounts[name]) { + break; + } + } + }); + } + data.toString = me.path2string; + return data; +}, pathClone:function(pathArray) { + var res = [], j, jj, i, ii; + if (!this.is(pathArray, 'array') || !this.is(pathArray && pathArray[0], 'array')) { + pathArray = this.parsePathString(pathArray); + } + for (i = 0, ii = pathArray.length; i < ii; i++) { + res[i] = []; + for (j = 0, jj = pathArray[i].length; j < jj; j++) { + res[i][j] = pathArray[i][j]; + } + } + res.toString = this.path2string; + return res; +}, pathToAbsolute:function(pathArray) { + if (!this.is(pathArray, 'array') || !this.is(pathArray && pathArray[0], 'array')) { + pathArray = this.parsePathString(pathArray); + } + var res = [], x = 0, y = 0, mx = 0, my = 0, i = 0, ln = pathArray.length, r, pathSegment, j, ln2; + if (ln && pathArray[0][0] == 'M') { + x = +pathArray[0][1]; + y = +pathArray[0][2]; + mx = x; + my = y; + i++; + res[0] = ['M', x, y]; + } + for (; i < ln; i++) { + r = res[i] = []; + pathSegment = pathArray[i]; + if (pathSegment[0] != pathSegment[0].toUpperCase()) { + r[0] = pathSegment[0].toUpperCase(); + switch(r[0]) { + case 'A': + r[1] = pathSegment[1]; + r[2] = pathSegment[2]; + r[3] = pathSegment[3]; + r[4] = pathSegment[4]; + r[5] = pathSegment[5]; + r[6] = +(pathSegment[6] + x); + r[7] = +(pathSegment[7] + y); + break; + case 'V': + r[1] = +pathSegment[1] + y; + break; + case 'H': + r[1] = +pathSegment[1] + x; + break; + case 'M': + mx = +pathSegment[1] + x; + my = +pathSegment[2] + y; + default: + j = 1; + ln2 = pathSegment.length; + for (; j < ln2; j++) { + r[j] = +pathSegment[j] + (j % 2 ? x : y); + } + } + } else { + j = 0; + ln2 = pathSegment.length; + for (; j < ln2; j++) { + res[i][j] = pathSegment[j]; + } + } + switch(r[0]) { + case 'Z': + x = mx; + y = my; + break; + case 'H': + x = r[1]; + break; + case 'V': + y = r[1]; + break; + case 'M': + pathSegment = res[i]; + ln2 = pathSegment.length; + mx = pathSegment[ln2 - 2]; + my = pathSegment[ln2 - 1]; + default: + pathSegment = res[i]; + ln2 = pathSegment.length; + x = pathSegment[ln2 - 2]; + y = pathSegment[ln2 - 1]; + } + } + res.toString = this.path2string; + return res; +}, interpolatePaths:function(path, path2) { + var me = this, p = me.pathToAbsolute(path), p2 = me.pathToAbsolute(path2), attrs = {x:0, y:0, bx:0, by:0, X:0, Y:0, qx:null, qy:null}, attrs2 = {x:0, y:0, bx:0, by:0, X:0, Y:0, qx:null, qy:null}, fixArc = function(pp, i) { + if (pp[i].length > 7) { + pp[i].shift(); + var pi = pp[i]; + while (pi.length) { + Ext.Array.splice(pp, i++, 0, ['C'].concat(Ext.Array.splice(pi, 0, 6))); + } + Ext.Array.erase(pp, i, 1); + ii = Math.max(p.length, p2.length || 0); + } + }, fixM = function(path1, path2, a1, a2, i) { + if (path1 && path2 && path1[i][0] == 'M' && path2[i][0] != 'M') { + Ext.Array.splice(path2, i, 0, ['M', a2.x, a2.y]); + a1.bx = 0; + a1.by = 0; + a1.x = path1[i][1]; + a1.y = path1[i][2]; + ii = Math.max(p.length, p2.length || 0); + } + }, i, ii, seg, seg2, seglen, seg2len; + for (i = 0, ii = Math.max(p.length, p2.length || 0); i < ii; i++) { + p[i] = me.command2curve(p[i], attrs); + fixArc(p, i); + p2[i] = me.command2curve(p2[i], attrs2); + fixArc(p2, i); + fixM(p, p2, attrs, attrs2, i); + fixM(p2, p, attrs2, attrs, i); + seg = p[i]; + seg2 = p2[i]; + seglen = seg.length; + seg2len = seg2.length; + attrs.x = seg[seglen - 2]; + attrs.y = seg[seglen - 1]; + attrs.bx = parseFloat(seg[seglen - 4]) || attrs.x; + attrs.by = parseFloat(seg[seglen - 3]) || attrs.y; + attrs2.bx = parseFloat(seg2[seg2len - 4]) || attrs2.x; + attrs2.by = parseFloat(seg2[seg2len - 3]) || attrs2.y; + attrs2.x = seg2[seg2len - 2]; + attrs2.y = seg2[seg2len - 1]; + } + return [p, p2]; +}, command2curve:function(pathCommand, d) { + var me = this; + if (!pathCommand) { + return ['C', d.x, d.y, d.x, d.y, d.x, d.y]; + } + if (pathCommand[0] != 'T' && pathCommand[0] != 'Q') { + d.qx = d.qy = null; + } + switch(pathCommand[0]) { + case 'M': + d.X = pathCommand[1]; + d.Y = pathCommand[2]; + break; + case 'A': + pathCommand = ['C'].concat(me.arc2curve.apply(me, [d.x, d.y].concat(pathCommand.slice(1)))); + break; + case 'S': + pathCommand = ['C', d.x + (d.x - (d.bx || d.x)), d.y + (d.y - (d.by || d.y))].concat(pathCommand.slice(1)); + break; + case 'T': + d.qx = d.x + (d.x - (d.qx || d.x)); + d.qy = d.y + (d.y - (d.qy || d.y)); + pathCommand = ['C'].concat(me.quadratic2curve(d.x, d.y, d.qx, d.qy, pathCommand[1], pathCommand[2])); + break; + case 'Q': + d.qx = pathCommand[1]; + d.qy = pathCommand[2]; + pathCommand = ['C'].concat(me.quadratic2curve(d.x, d.y, pathCommand[1], pathCommand[2], pathCommand[3], pathCommand[4])); + break; + case 'L': + pathCommand = ['C'].concat(d.x, d.y, pathCommand[1], pathCommand[2], pathCommand[1], pathCommand[2]); + break; + case 'H': + pathCommand = ['C'].concat(d.x, d.y, pathCommand[1], d.y, pathCommand[1], d.y); + break; + case 'V': + pathCommand = ['C'].concat(d.x, d.y, d.x, pathCommand[1], d.x, pathCommand[1]); + break; + case 'Z': + pathCommand = ['C'].concat(d.x, d.y, d.X, d.Y, d.X, d.Y); + break; + } + return pathCommand; +}, quadratic2curve:function(x1, y1, ax, ay, x2, y2) { + var _13 = 1 / 3, _23 = 2 / 3; + return [_13 * x1 + _23 * ax, _13 * y1 + _23 * ay, _13 * x2 + _23 * ax, _13 * y2 + _23 * ay, x2, y2]; +}, rotate:function(x, y, rad) { + var cos = Math.cos(rad), sin = Math.sin(rad), X = x * cos - y * sin, Y = x * sin + y * cos; + return {x:X, y:Y}; +}, arc2curve:function(x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) { + var me = this, PI = Math.PI, radian = me.radian, _120 = PI * 120 / 180, rad = radian * (+angle || 0), res = [], math = Math, mcos = math.cos, msin = math.sin, msqrt = math.sqrt, mabs = math.abs, masin = math.asin, xy, x, y, h, rx2, ry2, k, cx, cy, f1, f2, df, c1, s1, c2, s2, t, hx, hy, m1, m2, m3, m4, newres, i, ln, f2old, x2old, y2old; + if (!recursive) { + xy = me.rotate(x1, y1, -rad); + x1 = xy.x; + y1 = xy.y; + xy = me.rotate(x2, y2, -rad); + x2 = xy.x; + y2 = xy.y; + x = (x1 - x2) / 2; + y = (y1 - y2) / 2; + h = x * x / (rx * rx) + y * y / (ry * ry); + if (h > 1) { + h = msqrt(h); + rx = h * rx; + ry = h * ry; + } + rx2 = rx * rx; + ry2 = ry * ry; + k = (large_arc_flag == sweep_flag ? -1 : 1) * msqrt(mabs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x))); + cx = k * rx * y / ry + (x1 + x2) / 2; + cy = k * -ry * x / rx + (y1 + y2) / 2; + f1 = masin(((y1 - cy) / ry).toFixed(7)); + f2 = masin(((y2 - cy) / ry).toFixed(7)); + f1 = x1 < cx ? PI - f1 : f1; + f2 = x2 < cx ? PI - f2 : f2; + if (f1 < 0) { + f1 = PI * 2 + f1; + } + if (f2 < 0) { + f2 = PI * 2 + f2; + } + if (sweep_flag && f1 > f2) { + f1 = f1 - PI * 2; + } + if (!sweep_flag && f2 > f1) { + f2 = f2 - PI * 2; + } + } else { + f1 = recursive[0]; + f2 = recursive[1]; + cx = recursive[2]; + cy = recursive[3]; + } + df = f2 - f1; + if (mabs(df) > _120) { + f2old = f2; + x2old = x2; + y2old = y2; + f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1); + x2 = cx + rx * mcos(f2); + y2 = cy + ry * msin(f2); + res = me.arc2curve(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy]); + } + df = f2 - f1; + c1 = mcos(f1); + s1 = msin(f1); + c2 = mcos(f2); + s2 = msin(f2); + t = math.tan(df / 4); + hx = 4 / 3 * rx * t; + hy = 4 / 3 * ry * t; + m1 = [x1, y1]; + m2 = [x1 + hx * s1, y1 - hy * c1]; + m3 = [x2 + hx * s2, y2 - hy * c2]; + m4 = [x2, y2]; + m2[0] = 2 * m1[0] - m2[0]; + m2[1] = 2 * m1[1] - m2[1]; + if (recursive) { + return [m2, m3, m4].concat(res); + } else { + res = [m2, m3, m4].concat(res).join().split(','); + newres = []; + ln = res.length; + for (i = 0; i < ln; i++) { + newres[i] = i % 2 ? me.rotate(res[i - 1], res[i], rad).y : me.rotate(res[i], res[i + 1], rad).x; + } + return newres; + } +}}); +Ext.define('Ext.fx.PropertyHandler', {statics:{defaultHandler:{pixelDefaultsRE:/width|height|top$|bottom$|left$|right$/i, unitRE:/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/, scrollRE:/^scroll/i, computeDelta:function(from, end, damper, initial, attr) { + damper = typeof damper == 'number' ? damper : 1; + var unitRE = this.unitRE, match = unitRE.exec(from), start, units; + if (match) { + from = match[1]; + units = match[2]; + if (!this.scrollRE.test(attr) && !units && this.pixelDefaultsRE.test(attr)) { + units = 'px'; + } + } + from = +from || 0; + match = unitRE.exec(end); + if (match) { + end = match[1]; + units = match[2] || units; + } + end = +end || 0; + start = initial != null ? initial : from; + return {from:from, delta:(end - start) * damper, units:units}; +}, get:function(from, end, damper, initialFrom, attr) { + var ln = from.length, out = [], i, initial, res, j, len; + for (i = 0; i < ln; i++) { + if (initialFrom) { + initial = initialFrom[i][1].from; + } + if (Ext.isArray(from[i][1]) && Ext.isArray(end)) { + res = []; + j = 0; + len = from[i][1].length; + for (; j < len; j++) { + res.push(this.computeDelta(from[i][1][j], end[j], damper, initial, attr)); + } + out.push([from[i][0], res]); + } else { + out.push([from[i][0], this.computeDelta(from[i][1], end, damper, initial, attr)]); + } + } + return out; +}, set:function(values, easing) { + var ln = values.length, out = [], i, val, res, len, j; + for (i = 0; i < ln; i++) { + val = values[i][1]; + if (Ext.isArray(val)) { + res = []; + j = 0; + len = val.length; + for (; j < len; j++) { + res.push(val[j].from + val[j].delta * easing + (val[j].units || 0)); + } + out.push([values[i][0], res]); + } else { + out.push([values[i][0], val.from + val.delta * easing + (val.units || 0)]); + } + } + return out; +}}, stringHandler:{computeDelta:function(from, end, damper, initial, attr) { + return {from:from, delta:end}; +}, get:function(from, end, damper, initialFrom, attr) { + var ln = from.length, out = [], i, initial; + for (i = 0; i < ln; i++) { + out.push([from[i][0], this.computeDelta(from[i][1], end, damper, initial, attr)]); + } + return out; +}, set:function(values, easing) { + var ln = values.length, out = [], i, val; + for (i = 0; i < ln; i++) { + val = values[i][1]; + out.push([values[i][0], val.delta]); + } + return out; +}}, color:{rgbRE:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i, hexRE:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i, hex3RE:/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i, parseColor:function(color, damper) { + damper = typeof damper == 'number' ? damper : 1; + var out = false, reList = [this.hexRE, this.rgbRE, this.hex3RE], length = reList.length, match, base, re, i; + for (i = 0; i < length; i++) { + re = reList[i]; + base = i % 2 === 0 ? 16 : 10; + match = re.exec(color); + if (match && match.length === 4) { + if (i === 2) { + match[1] += match[1]; + match[2] += match[2]; + match[3] += match[3]; + } + out = {red:parseInt(match[1], base), green:parseInt(match[2], base), blue:parseInt(match[3], base)}; + break; + } + } + return out || color; +}, computeDelta:function(from, end, damper, initial) { + from = this.parseColor(from); + end = this.parseColor(end, damper); + var start = initial ? initial : from, tfrom = typeof start, tend = typeof end; + if (tfrom === 'string' || tfrom === 'undefined' || tend === 'string' || tend === 'undefined') { + return end || start; + } + return {from:from, delta:{red:Math.round((end.red - start.red) * damper), green:Math.round((end.green - start.green) * damper), blue:Math.round((end.blue - start.blue) * damper)}}; +}, get:function(start, end, damper, initialFrom) { + var ln = start.length, out = [], i, initial; + for (i = 0; i < ln; i++) { + if (initialFrom) { + initial = initialFrom[i][1].from; + } + out.push([start[i][0], this.computeDelta(start[i][1], end, damper, initial)]); + } + return out; +}, set:function(values, easing) { + var ln = values.length, out = [], i, val, parsedString, from, delta; + for (i = 0; i < ln; i++) { + val = values[i][1]; + if (val) { + from = val.from; + delta = val.delta; + val = typeof val === 'object' && 'red' in val ? 'rgb(' + val.red + ', ' + val.green + ', ' + val.blue + ')' : val; + val = typeof val === 'object' && val.length ? val[0] : val; + if (typeof val === 'undefined') { + return []; + } + parsedString = typeof val === 'string' ? val : 'rgb(' + [(from.red + Math.round(delta.red * easing)) % 256, (from.green + Math.round(delta.green * easing)) % 256, (from.blue + Math.round(delta.blue * easing)) % 256].join(',') + ')'; + out.push([values[i][0], parsedString]); + } + } + return out; +}}, object:{interpolate:function(prop, damper) { + damper = typeof damper === 'number' ? damper : 1; + var out = {}, p; + for (p in prop) { + out[p] = parseFloat(prop[p]) * damper; + } + return out; +}, computeDelta:function(from, end, damper, initial) { + from = this.interpolate(from); + end = this.interpolate(end, damper); + var start = initial ? initial : from, delta = {}, p; + for (p in end) { + delta[p] = end[p] - start[p]; + } + return {from:from, delta:delta}; +}, get:function(start, end, damper, initialFrom) { + var ln = start.length, out = [], i, initial; + for (i = 0; i < ln; i++) { + if (initialFrom) { + initial = initialFrom[i][1].from; + } + out.push([start[i][0], this.computeDelta(start[i][1], end, damper, initial)]); + } + return out; +}, set:function(values, easing) { + var ln = values.length, out = [], outObject = {}, i, from, delta, val, p; + for (i = 0; i < ln; i++) { + val = values[i][1]; + from = val.from; + delta = val.delta; + for (p in from) { + outObject[p] = from[p] + delta[p] * easing; + } + out.push([values[i][0], outObject]); + } + return out; +}}, path:{computeDelta:function(from, end, damper, initial) { + damper = typeof damper === 'number' ? damper : 1; + var start; + from = +from || 0; + end = +end || 0; + start = initial != null ? initial : from; + return {from:from, delta:(end - start) * damper}; +}, forcePath:function(path) { + if (!Ext.isArray(path) && !Ext.isArray(path[0])) { + path = Ext.fx.DrawPath.parsePathString(path); + } + return path; +}, get:function(start, end, damper, initialFrom) { + var endPath = this.forcePath(end), out = [], startLn = start.length, startPathLn, pointsLn, i, deltaPath, initial, j, k, path, startPath; + for (i = 0; i < startLn; i++) { + startPath = this.forcePath(start[i][1]); + deltaPath = Ext.fx.DrawPath.interpolatePaths(startPath, endPath); + startPath = deltaPath[0]; + endPath = deltaPath[1]; + startPathLn = startPath.length; + path = []; + for (j = 0; j < startPathLn; j++) { + deltaPath = [startPath[j][0]]; + pointsLn = startPath[j].length; + for (k = 1; k < pointsLn; k++) { + initial = initialFrom && initialFrom[0][1][j][k].from; + deltaPath.push(this.computeDelta(startPath[j][k], endPath[j][k], damper, initial)); + } + path.push(deltaPath); + } + out.push([start[i][0], path]); + } + return out; +}, set:function(values, easing) { + var ln = values.length, out = [], i, j, k, newPath, calcPath, deltaPath, deltaPathLn, pointsLn; + for (i = 0; i < ln; i++) { + deltaPath = values[i][1]; + newPath = []; + deltaPathLn = deltaPath.length; + for (j = 0; j < deltaPathLn; j++) { + calcPath = [deltaPath[j][0]]; + pointsLn = deltaPath[j].length; + for (k = 1; k < pointsLn; k++) { + calcPath.push(deltaPath[j][k].from + deltaPath[j][k].delta * easing); + } + newPath.push(calcPath.join(',')); + } + out.push([values[i][0], newPath.join(',')]); + } + return out; +}}}}, function() { + var props = ['outlineColor', 'backgroundColor', 'borderColor', 'borderTopColor', 'borderRightColor', 'borderBottomColor', 'borderLeftColor', 'fill', 'stroke'], length = props.length, i = 0, prop; + for (; i < length; i++) { + prop = props[i]; + this[prop] = this.color; + } + props = ['cursor']; + length = props.length; + i = 0; + for (; i < length; i++) { + prop = props[i]; + this[prop] = this.stringHandler; + } +}); +Ext.define('Ext.fx.Anim', {mixins:{observable:Ext.util.Observable}, isAnimation:true, duration:250, delay:0, delayStart:0, dynamic:false, easing:'ease', damper:1, bezierRE:/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/, reverse:false, running:false, paused:false, iterations:1, autoEnd:false, alternate:false, currentIteration:0, startTime:0, frameCount:0, constructor:function(config) { + var me = this, curve; + config = config || {}; + if (config.keyframes) { + return new Ext.fx.Animator(config); + } + Ext.apply(me, config); + if (me.from === undefined) { + me.from = {}; + } + me.propHandlers = {}; + me.config = config; + me.target = Ext.fx.Manager.createTarget(me.target); + me.easingFn = Ext.fx.Easing[me.easing]; + me.target.dynamic = me.dynamic; + if (!me.easingFn) { + me.easingFn = String(me.easing).match(me.bezierRE); + if (me.easingFn && me.easingFn.length === 5) { + curve = me.easingFn; + me.easingFn = Ext.fx.CubicBezier.cubicBezier(+curve[1], +curve[2], +curve[3], +curve[4]); + } + } + me.id = Ext.id(null, 'ext-anim-'); + me.mixins.observable.constructor.call(me); + Ext.fx.Manager.addAnim(me); + if (config.autoEnd) { + me.running = true; + me.jumpToEnd(); + } +}, setAttr:function(attr, value) { + return Ext.fx.Manager.items.get(this.id).setAttr(this.target, attr, value); +}, initAttrs:function() { + var me = this, from = me.from, to = me.to, initialFrom = me.initialFrom || {}, out = {}, start, end, propHandler, attr; + for (attr in to) { + if (to.hasOwnProperty(attr)) { + start = me.target.getAttr(attr, from[attr]); + end = to[attr]; + if (!Ext.fx.PropertyHandler[attr]) { + if (Ext.isObject(end)) { + propHandler = me.propHandlers[attr] = Ext.fx.PropertyHandler.object; + } else { + propHandler = me.propHandlers[attr] = Ext.fx.PropertyHandler.defaultHandler; + } + } else { + propHandler = me.propHandlers[attr] = Ext.fx.PropertyHandler[attr]; + } + out[attr] = propHandler.get(start, end, me.damper, initialFrom[attr], attr); + } + } + me.currentAttrs = out; +}, start:function(startTime) { + var me = this, delay = me.delay, delayStart = me.delayStart, delayDelta; + if (delay) { + if (!delayStart) { + me.delayStart = startTime; + return; + } else { + delayDelta = startTime - delayStart; + if (delayDelta < delay) { + return; + } else { + startTime = new Date(delayStart.getTime() + delay); + } + } + } + if (me.fireEvent('beforeanimate', me) !== false) { + me.startTime = startTime; + if (!me.paused && !me.currentAttrs) { + me.initAttrs(); + } + me.running = true; + me.frameCount = 0; + } +}, jumpToEnd:function() { + var me = this; + if (!me.endWasCalled) { + if (!me.currentAttrs) { + me.initAttrs(); + } + Ext.fx.Manager.jumpToEnd(me); + me.end(); + } +}, runAnim:function(elapsedTime) { + var me = this, attrs = me.currentAttrs, duration = me.duration, easingFn = me.easingFn, propHandlers = me.propHandlers, ret = {}, easing, values, attr, lastFrame; + if (elapsedTime >= duration) { + elapsedTime = duration; + lastFrame = true; + } + if (me.reverse) { + elapsedTime = duration - elapsedTime; + } + for (attr in attrs) { + if (attrs.hasOwnProperty(attr)) { + values = attrs[attr]; + easing = lastFrame ? 1 : easingFn(elapsedTime / duration); + ret[attr] = propHandlers[attr].set(values, easing); + } + } + me.frameCount++; + return ret; +}, lastFrame:function() { + var me = this, iter = me.iterations, iterCount = me.currentIteration; + iterCount++; + if (iterCount < iter) { + if (me.alternate) { + me.reverse = !me.reverse; + } + me.startTime = new Date; + me.currentIteration = iterCount; + me.paused = false; + } else { + me.currentIteration = 0; + me.end(); + me.fireEvent('lastframe', me, me.startTime); + } +}, endWasCalled:0, end:function() { + var me = this; + if (me.endWasCalled++) { + return; + } + me.startTime = 0; + me.paused = false; + me.running = false; + Ext.fx.Manager.removeAnim(me); + me.fireEvent('afteranimate', me, me.startTime); + Ext.callback(me.callback, me.scope, [me, me.startTime]); + if (me.remove) { + me.target.destroy(); + } +}, isReady:function() { + return this.paused === false && this.running === false && this.iterations > 0; +}, isRunning:function() { + return this.paused === false && this.running === true && this.isAnimator !== true; +}}); +Ext.enableFx = true; +Ext.define('Ext.util.Animate', {mixinId:'animate', isAnimate:true, animate:function(animObj) { + var me = this; + if (Ext.fx.Manager.hasFxBlock(me.id)) { + return me; + } + Ext.fx.Manager.queueFx(new Ext.fx.Anim(me.anim(animObj))); + return this; +}, anim:function(config) { + if (!Ext.isObject(config)) { + return config ? {} : false; + } + var me = this; + if (config.stopAnimation) { + me.stopAnimation(); + } + Ext.applyIf(config, Ext.fx.Manager.getFxDefaults(me.id)); + return Ext.apply({target:me, paused:true}, config); +}, getAnimationProps:function() { + var me = this, layout = me.layout; + return layout && layout.animate ? layout.animate : {}; +}, stopFx:Ext.Function.alias(Ext.util.Animate, 'stopAnimation'), stopAnimation:function() { + Ext.fx.Manager.stopAnimation(this.id); + return this; +}, syncFx:function() { + Ext.fx.Manager.setFxDefaults(this.id, {concurrent:true}); + return this; +}, sequenceFx:function() { + Ext.fx.Manager.setFxDefaults(this.id, {concurrent:false}); + return this; +}, hasActiveFx:Ext.Function.alias(Ext.util.Animate, 'getActiveAnimation'), getActiveAnimation:function() { + return Ext.fx.Manager.getActiveAnimation(this.id); +}}); +Ext.define('Ext.dom.Fly', {extend:Ext.dom.Element, alternateClassName:'Ext.dom.Element.Fly', validNodeTypes:{1:1, 9:1, 11:1}, isFly:true, constructor:function(dom) { + this.dom = dom; + this.el = this; +}, attach:function(dom) { + var me = this; + if (!dom) { + return me.detach(); + } + me.dom = dom; + if (!Ext.cache[dom.id]) { + me.getData().isSynchronized = false; + } + return me; +}, detach:function() { + this.dom = null; +}, addListener:function() { + Ext.raise('Cannot use addListener() on Ext.dom.Fly instances. ' + 'Please use Ext.get() to retrieve an Ext.dom.Element instance instead.'); +} || null, removeListener:function() { + Ext.raise('Cannot use removeListener() on Ext.dom.Fly instances. ' + 'Please use Ext.get() to retrieve an Ext.dom.Element instance instead.'); +} || null}, function(Fly) { + var flyweights = {}; + Fly.cache = flyweights; + Ext.fly = function(dom, named) { + var fly = null, fn = Ext.fly, nodeType, data; + named = named || fn.caller && fn.caller.$name || '_global'; + dom = Ext.getDom(dom); + if (dom) { + nodeType = dom.nodeType; + if (Fly.prototype.validNodeTypes[nodeType] || !nodeType && dom.window == dom) { + fly = Ext.cache[dom.id]; + if (!fly || fly.dom !== dom) { + fly = flyweights[named] || (flyweights[named] = new Fly); + fly.dom = dom; + data = fly.getData(true); + if (data) { + data.isSynchronized = false; + } + } + } + } + return fly; + }; +}); +Ext.define('Ext.dom.CompositeElementLite', {alternateClassName:['Ext.CompositeElementLite'], isComposite:true, isLite:true, statics:{importElementMethods:function() { + var Element = Ext.dom.Element, prototype = this.prototype; + Ext.Object.each(Element.prototype, function(name, member) { + if (typeof member === 'function' && !prototype[name]) { + prototype[name] = function() { + return this.invoke(name, arguments); + }; + } + }); +}}, constructor:function(elements, skipValidation) { + if (skipValidation) { + this.elements = elements || []; + } else { + this.elements = []; + this.add(elements); + } +}, getElement:function(el) { + var fly = this._fly || (this._fly = new Ext.dom.Fly); + return fly.attach(el); +}, transformElement:function(el) { + return Ext.getDom(el); +}, getCount:function() { + return this.elements.length; +}, add:function(els, root) { + var elements = this.elements, i, ln; + if (!els) { + return this; + } + if (typeof els == 'string') { + els = Ext.fly(root || document).query(els); + } else { + if (els.isComposite) { + els = els.elements; + } else { + if (!Ext.isIterable(els)) { + els = [els]; + } + } + } + for (i = 0, ln = els.length; i < ln; ++i) { + elements.push(this.transformElement(els[i])); + } + return this; +}, invoke:function(fn, args) { + var me = this, elements = me.elements, ln = elements.length, prototype, element, i; + if (i !== 0) { + prototype = (me.isLite ? Ext.dom.Fly : Ext.dom.Element).prototype; + for (i = 0; i < ln; i++) { + element = elements[i]; + if (element) { + prototype[fn].apply(me.getElement(element), args); + } + } + } + return me; +}, item:function(index) { + var el = this.elements[index], out = null; + if (el) { + out = this.getElement(el); + } + return out; +}, slice:function(start, end) { + return Ext.Array.slice(this.elements, start, end); +}, each:function(fn, scope) { + var me = this, els = me.elements, len = els.length, i, e; + for (i = 0; i < len; i++) { + e = els[i]; + if (e) { + e = this.getElement(e); + if (fn.call(scope || e, e, me, i) === false) { + break; + } + } + } + return me; +}, fill:function(els) { + var me = this; + me.elements = []; + me.add(els); + return me; +}, insert:function(index, nodes) { + Ext.Array.insert(this.elements, index, nodes); +}, filter:function(selector) { + var me = this, els = me.elements, len = els.length, out = [], i = 0, isFunc = typeof selector == 'function', add, el; + for (; i < len; i++) { + el = els[i]; + add = false; + if (el) { + el = me.getElement(el); + if (isFunc) { + add = selector.call(el, el, me, i) !== false; + } else { + add = el.is(selector); + } + if (add) { + out.push(me.transformElement(el)); + } + } + } + me.elements = out; + return me; +}, indexOf:function(el) { + return Ext.Array.indexOf(this.elements, this.transformElement(el)); +}, replaceElement:function(el, replacement, domReplace) { + var index = !isNaN(el) ? el : this.indexOf(el), d; + if (index > -1) { + replacement = Ext.getDom(replacement); + if (domReplace) { + d = this.elements[index]; + d.parentNode.insertBefore(replacement, d); + Ext.removeNode(d); + } + Ext.Array.splice(this.elements, index, 1, replacement); + } + return this; +}, clear:function(removeDom) { + var me = this, els = me.elements, i = els.length - 1; + if (removeDom) { + for (; i >= 0; i--) { + Ext.removeNode(els[i]); + } + } + this.elements = []; +}, addElements:function(els, root) { + if (!els) { + return this; + } + if (typeof els === 'string') { + els = Ext.dom.Element.selectorFunction(els, root); + } + var yels = this.elements, eLen = els.length, e; + for (e = 0; e < eLen; e++) { + yels.push(Ext.get(els[e])); + } + return this; +}, first:function() { + return this.item(0); +}, last:function() { + return this.item(this.getCount() - 1); +}, contains:function(el) { + return this.indexOf(el) != -1; +}, removeElement:function(keys, removeDom) { + keys = [].concat(keys); + var me = this, elements = me.elements, kLen = keys.length, val, el, k; + for (k = 0; k < kLen; k++) { + val = keys[k]; + if (el = elements[val] || elements[val = me.indexOf(val)]) { + if (removeDom) { + if (el.dom) { + el.destroy(); + } else { + Ext.removeNode(el); + } + } + Ext.Array.erase(elements, val, 1); + } + } + return me; +}, destroy:function() { + return this.invoke('destroy', arguments); + this.callParent(); +}}, function(CompositeElementLite) { + var prototype = CompositeElementLite.prototype; + CompositeElementLite.importElementMethods(); + prototype.on = prototype.addListener; +}); +Ext.define('Ext.overrides.dom.Element', function() { + var Element, WIN = window, DOC = document, HIDDEN = 'hidden', ISCLIPPED = 'isClipped', OVERFLOW = 'overflow', OVERFLOWX = 'overflow-x', OVERFLOWY = 'overflow-y', ORIGINALCLIP = 'originalClip', HEIGHT = 'height', WIDTH = 'width', VISIBILITY = 'visibility', DISPLAY = 'display', NONE = 'none', OFFSETS = 'offsets', CLIP = 'clip', ORIGINALDISPLAY = 'originalDisplay', VISMODE = 'visibilityMode', ISVISIBLE = 'isVisible', OFFSETCLASS = Ext.baseCSSPrefix + 'hidden-offsets', CLIPCLASS = Ext.baseCSSPrefix + + 'hidden-clip', boxMarkup = ['\x3cdiv class\x3d"{0}-tl" role\x3d"presentation"\x3e', '\x3cdiv class\x3d"{0}-tr" role\x3d"presentation"\x3e', '\x3cdiv class\x3d"{0}-tc" role\x3d"presentation"\x3e\x3c/div\x3e', '\x3c/div\x3e', '\x3c/div\x3e', '\x3cdiv class\x3d"{0}-ml" role\x3d"presentation"\x3e', '\x3cdiv class\x3d"{0}-mr" role\x3d"presentation"\x3e', '\x3cdiv class\x3d"{0}-mc" role\x3d"presentation"\x3e\x3c/div\x3e', '\x3c/div\x3e', '\x3c/div\x3e', '\x3cdiv class\x3d"{0}-bl" role\x3d"presentation"\x3e', + '\x3cdiv class\x3d"{0}-br" role\x3d"presentation"\x3e', '\x3cdiv class\x3d"{0}-bc" role\x3d"presentation"\x3e\x3c/div\x3e', '\x3c/div\x3e', '\x3c/div\x3e'].join(''), scriptTagRe = /(?:]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig, replaceScriptTagRe = /(?:)((\n|\r|.)*?)(?:<\/script>)/ig, srcRe = /\ssrc=([\'\"])(.*?)\1/i, nonSpaceRe = /\S/, typeRe = /\stype=([\'\"])(.*?)\1/i, msRe = /^-ms-/, camelRe = /(-[a-z])/gi, camelReplaceFn = function(m, a) { + return a.charAt(1).toUpperCase(); + }, XMASKED = Ext.baseCSSPrefix + 'masked', XMASKEDRELATIVE = Ext.baseCSSPrefix + 'masked-relative', EXTELMASKMSG = Ext.baseCSSPrefix + 'mask-msg', bodyRe = /^body/i, propertyCache = {}, getVisMode = function(el) { + var data = el.getData(), visMode = data[VISMODE]; + if (visMode === undefined) { + data[VISMODE] = visMode = Element.VISIBILITY; + } + return visMode; + }, emptyRange = DOC.createRange ? DOC.createRange() : null, inputTags = {INPUT:true, TEXTAREA:true}; + if (Ext.isIE8) { + var garbageBin = DOC.createElement('div'), destroyQueue = [], clearGarbage = Ext.Function.createBuffered(function() { + var len = destroyQueue.length, i; + for (i = 0; i < len; i++) { + garbageBin.appendChild(destroyQueue[i]); + } + garbageBin.innerHTML = ''; + destroyQueue.length = 0; + }, 10); + } + return {override:'Ext.dom.Element', mixins:[Ext.util.Animate], skipGarbageCollection:false, _init:function(E) { + Element = E; + if (WIN.__UNIT_TESTING__) { + E.destroyQueue = destroyQueue; + } + E.tabbableSelector += ',[' + E.tabbableSavedCounterAttribute + ']'; + }, statics:{selectableCls:Ext.baseCSSPrefix + 'selectable', unselectableCls:Ext.baseCSSPrefix + 'unselectable', tabbableSelector:Ext.supports.CSS3NegationSelector ? 'a[href],button,iframe,input,select,textarea,[tabindex]:not([tabindex\x3d"-1"]),[contenteditable\x3d"true"]' : 'a[href],button,iframe,input,select,textarea,[tabindex],[contenteditable\x3d"true"]', naturallyFocusableTags:{BUTTON:true, IFRAME:true, EMBED:true, INPUT:true, OBJECT:true, SELECT:true, TEXTAREA:true, HTML:Ext.isIE ? true : + false}, naturallyTabbableTags:{BUTTON:true, IFRAME:true, INPUT:true, SELECT:true, TEXTAREA:true, OBJECT:Ext.isIE8m ? true : false}, tabbableSavedCounterAttribute:'data-tabindex-counter', tabbableSavedValueAttribute:'data-tabindex-value', normalize:function(prop) { + if (prop === 'float') { + prop = Ext.supports.Float ? 'cssFloat' : 'styleFloat'; + } + return propertyCache[prop] || (propertyCache[prop] = prop.replace(msRe, 'ms-').replace(camelRe, camelReplaceFn)); + }}, addClsOnClick:function(className, testFn, scope) { + var me = this, dom = me.dom, hasTest = Ext.isFunction(testFn); + me.on('mousedown', function() { + if (hasTest && testFn.call(scope || me, me) === false) { + return false; + } + Ext.fly(dom).addCls(className); + var d = Ext.getDoc(), fn = function() { + Ext.fly(dom).removeCls(className); + d.removeListener('mouseup', fn); + }; + d.on('mouseup', fn); + }); + return me; + }, addClsOnFocus:function(className, testFn, scope) { + var me = this, dom = me.dom, hasTest = Ext.isFunction(testFn); + me.on('focus', function() { + if (hasTest && testFn.call(scope || me, me) === false) { + return false; + } + Ext.fly(dom).addCls(className); + }); + me.on('blur', function() { + Ext.fly(dom).removeCls(className); + }); + return me; + }, addClsOnOver:function(className, testFn, scope) { + var me = this, dom = me.dom, hasTest = Ext.isFunction(testFn); + me.hover(function() { + if (hasTest && testFn.call(scope || me, me) === false) { + return; + } + Ext.fly(dom).addCls(className); + }, function() { + Ext.fly(dom).removeCls(className); + }); + return me; + }, addKeyListener:function(key, fn, scope) { + var config; + if (typeof key !== 'object' || Ext.isArray(key)) { + config = {target:this, key:key, fn:fn, scope:scope}; + } else { + config = {target:this, key:key.key, shift:key.shift, ctrl:key.ctrl, alt:key.alt, fn:fn, scope:scope}; + } + return new Ext.util.KeyMap(config); + }, addKeyMap:function(config) { + return new Ext.util.KeyMap(Ext.apply({target:this}, config)); + }, afterAnimate:function() { + var shadow = this.shadow; + if (shadow && !shadow.disabled && !shadow.animate) { + shadow.show(); + } + }, anchorAnimX:function(anchor) { + var xName = anchor === 'l' ? 'right' : 'left'; + this.dom.style[xName] = '0px'; + }, anim:function(config) { + if (!Ext.isObject(config)) { + return config ? {} : false; + } + var me = this, duration = config.duration || Ext.fx.Anim.prototype.duration, easing = config.easing || 'ease', animConfig; + if (config.stopAnimation) { + me.stopAnimation(); + } + Ext.applyIf(config, Ext.fx.Manager.getFxDefaults(me.id)); + Ext.fx.Manager.setFxDefaults(me.id, {delay:0}); + animConfig = {target:me.dom, remove:config.remove, alternate:config.alternate || false, duration:duration, easing:easing, callback:config.callback, listeners:config.listeners, iterations:config.iterations || 1, scope:config.scope, block:config.block, concurrent:config.concurrent, delay:config.delay || 0, paused:true, keyframes:config.keyframes, from:config.from || {}, to:Ext.apply({}, config), userConfig:config}; + Ext.apply(animConfig.to, config.to); + delete animConfig.to.to; + delete animConfig.to.from; + delete animConfig.to.remove; + delete animConfig.to.alternate; + delete animConfig.to.keyframes; + delete animConfig.to.iterations; + delete animConfig.to.listeners; + delete animConfig.to.target; + delete animConfig.to.paused; + delete animConfig.to.callback; + delete animConfig.to.scope; + delete animConfig.to.duration; + delete animConfig.to.easing; + delete animConfig.to.concurrent; + delete animConfig.to.block; + delete animConfig.to.stopAnimation; + delete animConfig.to.delay; + return animConfig; + }, animate:function(config) { + this.addAnimation(config); + return this; + }, addAnimation:function(config) { + var me = this, animId = me.dom.id || Ext.id(me.dom), listeners, anim, end; + if (!Ext.fx.Manager.hasFxBlock(animId)) { + if (config.listeners) { + listeners = config.listeners; + delete config.listeners; + } + if (config.internalListeners) { + config.listeners = config.internalListeners; + delete config.internalListeners; + } + end = config.autoEnd; + delete config.autoEnd; + anim = new Ext.fx.Anim(me.anim(config)); + anim.on({afteranimate:'afterAnimate', beforeanimate:'beforeAnimate', scope:me, single:true}); + if (listeners) { + anim.on(listeners); + } + Ext.fx.Manager.queueFx(anim); + if (end) { + anim.jumpToEnd(); + } + } + return anim; + }, beforeAnimate:function() { + var shadow = this.shadow; + if (shadow && !shadow.disabled && !shadow.animate) { + shadow.hide(); + } + }, boxWrap:function(cls) { + cls = cls || Ext.baseCSSPrefix + 'box'; + var el = Ext.get(this.insertHtml('beforeBegin', "\x3cdiv class\x3d'" + cls + "' role\x3d'presentation'\x3e" + Ext.String.format(boxMarkup, cls) + '\x3c/div\x3e')); + el.selectNode('.' + cls + '-mc').appendChild(this.dom); + return el; + }, clean:function(forceReclean) { + var me = this, dom = me.dom, data = me.getData(), n = dom.firstChild, ni = -1, nx; + if (data.isCleaned && forceReclean !== true) { + return me; + } + while (n) { + nx = n.nextSibling; + if (n.nodeType === 3) { + if (!nonSpaceRe.test(n.nodeValue)) { + dom.removeChild(n); + } else { + if (nx && nx.nodeType === 3) { + n.appendData(Ext.String.trim(nx.data)); + dom.removeChild(nx); + nx = n.nextSibling; + n.nodeIndex = ++ni; + } + } + } else { + Ext.fly(n, '_clean').clean(); + n.nodeIndex = ++ni; + } + n = nx; + } + data.isCleaned = true; + return me; + }, empty:emptyRange ? function() { + var dom = this.dom; + if (dom.firstChild) { + emptyRange.setStartBefore(dom.firstChild); + emptyRange.setEndAfter(dom.lastChild); + emptyRange.deleteContents(); + } + } : function() { + var dom = this.dom; + while (dom.lastChild) { + dom.removeChild(dom.lastChild); + } + }, clearListeners:function() { + this.removeAnchor(); + this.callParent(); + }, clearPositioning:function(value) { + value = value || ''; + return this.setStyle({left:value, right:value, top:value, bottom:value, 'z-index':'', position:'static'}); + }, createProxy:function(config, renderTo, matchBox) { + config = typeof config === 'object' ? config : {tag:'div', role:'presentation', cls:config}; + var me = this, proxy = renderTo ? Ext.DomHelper.append(renderTo, config, true) : Ext.DomHelper.insertBefore(me.dom, config, true); + proxy.setVisibilityMode(Element.DISPLAY); + proxy.hide(); + if (matchBox && me.setBox && me.getBox) { + proxy.setBox(me.getBox()); + } + return proxy; + }, clearOpacity:function() { + return this.setOpacity(''); + }, clip:function() { + var me = this, data = me.getData(), style; + if (!data[ISCLIPPED]) { + data[ISCLIPPED] = true; + style = me.getStyle([OVERFLOW, OVERFLOWX, OVERFLOWY]); + data[ORIGINALCLIP] = {o:style[OVERFLOW], x:style[OVERFLOWX], y:style[OVERFLOWY]}; + me.setStyle(OVERFLOW, HIDDEN); + me.setStyle(OVERFLOWX, HIDDEN); + me.setStyle(OVERFLOWY, HIDDEN); + } + return me; + }, destroy:function() { + var me = this, dom = me.dom, data = me.getData(), maskEl, maskMsg; + if (dom && me.isAnimate) { + me.stopAnimation(); + } + me.callParent(); + if (dom && Ext.isIE8 && dom.window != dom && dom.nodeType !== 9 && dom.tagName !== 'BODY' && dom.tagName !== 'HTML') { + destroyQueue[destroyQueue.length] = dom; + clearGarbage(); + } + if (data) { + maskEl = data.maskEl; + maskMsg = data.maskMsg; + if (maskEl) { + maskEl.destroy(); + } + if (maskMsg) { + maskMsg.destroy(); + } + } + }, enableDisplayMode:function(display) { + var me = this; + me.setVisibilityMode(Element.DISPLAY); + if (display !== undefined) { + me.getData()[ORIGINALDISPLAY] = display; + } + return me; + }, fadeIn:function(o) { + var me = this, dom = me.dom; + me.animate(Ext.apply({}, o, {opacity:1, internalListeners:{beforeanimate:function(anim) { + var el = Ext.fly(dom, '_anim'); + if (el.isStyle('display', 'none')) { + el.setDisplayed(''); + } else { + el.show(); + } + }}})); + return this; + }, fadeOut:function(o) { + var me = this, dom = me.dom; + o = Ext.apply({opacity:0, internalListeners:{afteranimate:function(anim) { + if (dom && anim.to.opacity === 0) { + var el = Ext.fly(dom, '_anim'); + if (o.useDisplay) { + el.setDisplayed(false); + } else { + el.hide(); + } + } + }}}, o); + me.animate(o); + return me; + }, fixDisplay:function() { + var me = this; + if (me.isStyle(DISPLAY, NONE)) { + me.setStyle(VISIBILITY, HIDDEN); + me.setStyle(DISPLAY, me._getDisplay()); + if (me.isStyle(DISPLAY, NONE)) { + me.setStyle(DISPLAY, 'block'); + } + } + }, frame:function(color, count, obj) { + var me = this, dom = me.dom, beforeAnim; + color = color || '#C3DAF9'; + count = count || 1; + obj = obj || {}; + beforeAnim = function() { + var el = Ext.fly(dom, '_anim'), animScope = this, box, proxy, proxyAnim; + el.show(); + box = el.getBox(); + proxy = Ext.getBody().createChild({role:'presentation', id:el.dom.id + '-anim-proxy', style:{position:'absolute', 'pointer-events':'none', 'z-index':35000, border:'0px solid ' + color}}); + proxyAnim = new Ext.fx.Anim({target:proxy, duration:obj.duration || 1000, iterations:count, from:{top:box.y, left:box.x, borderWidth:0, opacity:1, height:box.height, width:box.width}, to:{top:box.y - 20, left:box.x - 20, borderWidth:10, opacity:0, height:box.height + 40, width:box.width + 40}}); + proxyAnim.on('afteranimate', function() { + proxy.destroy(); + animScope.end(); + }); + }; + me.animate({duration:Math.max(obj.duration, 500) * 2 || 2000, listeners:{beforeanimate:{fn:beforeAnim}}, callback:obj.callback, scope:obj.scope}); + return me; + }, getColor:function(attr, defaultValue, prefix) { + var v = this.getStyle(attr), color = prefix || prefix === '' ? prefix : '#', h, len, i = 0; + if (!v || /transparent|inherit/.test(v)) { + return defaultValue; + } + if (/^r/.test(v)) { + v = v.slice(4, v.length - 1).split(','); + len = v.length; + for (; i < len; i++) { + h = parseInt(v[i], 10); + color += (h < 16 ? '0' : '') + h.toString(16); + } + } else { + v = v.replace('#', ''); + color += v.length === 3 ? v.replace(/^(\w)(\w)(\w)$/, '$1$1$2$2$3$3') : v; + } + return color.length > 5 ? color.toLowerCase() : defaultValue; + }, getLoader:function() { + var me = this, data = me.getData(), loader = data.loader; + if (!loader) { + data.loader = loader = new Ext.ElementLoader({target:me}); + } + return loader; + }, getPositioning:function(autoPx) { + var styles = this.getStyle(['left', 'top', 'position', 'z-index']), dom = this.dom; + if (autoPx) { + if (styles.left === 'auto') { + styles.left = dom.offsetLeft + 'px'; + } + if (styles.top === 'auto') { + styles.top = dom.offsetTop + 'px'; + } + } + return styles; + }, ghost:function(anchor, obj) { + var me = this, dom = me.dom, beforeAnim; + anchor = anchor || 'b'; + beforeAnim = function() { + var el = Ext.fly(dom, '_anim'), width = el.getWidth(), height = el.getHeight(), xy = el.getXY(), position = el.getPositioning(), to = {opacity:0}; + switch(anchor) { + case 't': + to.y = xy[1] - height; + break; + case 'l': + to.x = xy[0] - width; + break; + case 'r': + to.x = xy[0] + width; + break; + case 'b': + to.y = xy[1] + height; + break; + case 'tl': + to.x = xy[0] - width; + to.y = xy[1] - height; + break; + case 'bl': + to.x = xy[0] - width; + to.y = xy[1] + height; + break; + case 'br': + to.x = xy[0] + width; + to.y = xy[1] + height; + break; + case 'tr': + to.x = xy[0] + width; + to.y = xy[1] - height; + break; + } + this.to = to; + this.on('afteranimate', function() { + var el = Ext.fly(dom, '_anim'); + if (el) { + el.hide(); + el.clearOpacity(); + el.setPositioning(position); + } + }); + }; + me.animate(Ext.applyIf(obj || {}, {duration:500, easing:'ease-out', listeners:{beforeanimate:beforeAnim}})); + return me; + }, hide:function(animate) { + if (typeof animate === 'string') { + this.setVisible(false, animate); + return this; + } + this.setVisible(false, this.anim(animate)); + return this; + }, highlight:function(color, o) { + var me = this, dom = me.dom, from = {}, restore, to, attr, lns, event, fn; + o = o || {}; + lns = o.listeners || {}; + attr = o.attr || 'backgroundColor'; + from[attr] = color || 'ffff9c'; + if (!o.to) { + to = {}; + to[attr] = o.endColor || me.getColor(attr, 'ffffff', ''); + } else { + to = o.to; + } + o.listeners = Ext.apply(Ext.apply({}, lns), {beforeanimate:function() { + restore = dom.style[attr]; + var el = Ext.fly(dom, '_anim'); + el.clearOpacity(); + el.show(); + event = lns.beforeanimate; + if (event) { + fn = event.fn || event; + return fn.apply(event.scope || lns.scope || WIN, arguments); + } + }, afteranimate:function() { + if (dom) { + dom.style[attr] = restore; + } + event = lns.afteranimate; + if (event) { + fn = event.fn || event; + fn.apply(event.scope || lns.scope || WIN, arguments); + } + }}); + me.animate(Ext.apply({}, o, {duration:1000, easing:'ease-in', from:from, to:to})); + return me; + }, hover:function(overFn, outFn, scope, options) { + var me = this; + me.on('mouseenter', overFn, scope || me.dom, options); + me.on('mouseleave', outFn, scope || me.dom, options); + return me; + }, initDD:function(group, config, overrides) { + var dd = new Ext.dd.DD(Ext.id(this.dom), group, config); + return Ext.apply(dd, overrides); + }, initDDProxy:function(group, config, overrides) { + var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config); + return Ext.apply(dd, overrides); + }, initDDTarget:function(group, config, overrides) { + var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config); + return Ext.apply(dd, overrides); + }, isFocusable:function() { + var dom = this.dom, focusable = false, nodeName; + if (dom && !dom.disabled) { + nodeName = dom.nodeName; + focusable = !!Ext.Element.naturallyFocusableTags[nodeName] || (nodeName === 'A' || nodeName === 'LINK') && !!dom.href || dom.getAttribute('tabIndex') != null || dom.contentEditable === 'true'; + if (Ext.isIE8 && nodeName === 'INPUT' && dom.type === 'hidden') { + focusable = false; + } + focusable = focusable && this.isVisible(true); + } + return focusable; + }, isInputField:function() { + var dom = this.dom, contentEditable = dom.contentEditable; + if (inputTags[dom.tagName] && dom.type !== 'button' || (contentEditable === '' || contentEditable === 'true')) { + return true; + } + return false; + }, isTabbable:function(includeHidden) { + var dom = this.dom, tabbable = false, nodeName, hasIndex, tabIndex; + if (dom && !dom.disabled) { + nodeName = dom.nodeName; + tabIndex = dom.getAttribute('tabIndex'); + hasIndex = tabIndex != null; + tabIndex -= 0; + if (nodeName === 'A' || nodeName === 'LINK') { + if (dom.href) { + tabbable = hasIndex && tabIndex < 0 ? false : true; + } else { + if (dom.contentEditable === 'true') { + tabbable = !hasIndex || hasIndex && tabIndex >= 0 ? true : false; + } else { + tabbable = hasIndex && tabIndex >= 0 ? true : false; + } + } + } else { + if (dom.contentEditable === 'true' || Ext.Element.naturallyTabbableTags[nodeName]) { + tabbable = hasIndex && tabIndex < 0 ? false : true; + } else { + if (hasIndex && tabIndex >= 0) { + tabbable = true; + } + } + } + if (Ext.isIE8 && nodeName === 'INPUT' && dom.type === 'hidden') { + tabbable = false; + } + tabbable = tabbable && (includeHidden || (!this.component || this.component.isVisible(true)) && this.isVisible(true)); + } + return tabbable; + }, isMasked:function(deep) { + var me = this, data = me.getData(), maskEl = data.maskEl, maskMsg = data.maskMsg, hasMask = false, parent; + if (maskEl && maskEl.isVisible()) { + if (maskMsg) { + maskMsg.center(me); + } + hasMask = true; + } else { + if (deep) { + parent = me.findParentNode(); + if (parent) { + return Ext.fly(parent).isMasked(deep); + } + } + } + return hasMask; + }, load:function(options) { + this.getLoader().load(options); + return this; + }, mask:function(msg, msgCls, elHeight) { + var me = this, dom = me.dom, data = me.getData(), maskEl = data.maskEl, maskMsg; + if (!(bodyRe.test(dom.tagName) && me.getStyle('position') === 'static')) { + me.addCls(XMASKEDRELATIVE); + } + if (maskEl) { + maskEl.destroy(); + } + maskEl = Ext.DomHelper.append(dom, {role:'presentation', cls:Ext.baseCSSPrefix + 'mask ' + Ext.baseCSSPrefix + 'border-box', children:{role:'presentation', cls:msgCls ? EXTELMASKMSG + ' ' + msgCls : EXTELMASKMSG, cn:{tag:'div', role:'presentation', cls:Ext.baseCSSPrefix + 'mask-msg-inner', cn:{tag:'div', role:'presentation', cls:Ext.baseCSSPrefix + 'mask-msg-text', html:msg || ''}}}}, true); + maskMsg = Ext.get(maskEl.dom.firstChild); + data.maskEl = maskEl; + me.addCls(XMASKED); + maskEl.setDisplayed(true); + if (typeof msg === 'string') { + maskMsg.setDisplayed(true); + maskMsg.center(me); + } else { + maskMsg.setDisplayed(false); + } + if (dom === DOC.body) { + maskEl.addCls(Ext.baseCSSPrefix + 'mask-fixed'); + } + me.saveTabbableState({skipSelf:dom === DOC.body}); + if (Ext.isIE9m && dom !== DOC.body && me.isStyle('height', 'auto')) { + maskEl.setSize(undefined, elHeight || me.getHeight()); + } + return maskEl; + }, monitorMouseLeave:function(delay, handler, scope) { + var me = this, timer, listeners = {mouseleave:function(e) { + if (Ext.isIE9m) { + e.enableIEAsync(); + } + timer = Ext.defer(handler, delay, scope || me, [e]); + }, mouseenter:function() { + clearTimeout(timer); + }}; + me.on(listeners); + return listeners; + }, puff:function(obj) { + var me = this, dom = me.dom, beforeAnim, box = me.getBox(), originalStyles = me.getStyle(['width', 'height', 'left', 'right', 'top', 'bottom', 'position', 'z-index', 'font-size', 'opacity'], true); + obj = Ext.applyIf(obj || {}, {easing:'ease-out', duration:500, useDisplay:false}); + beforeAnim = function() { + var el = Ext.fly(dom, '_anim'); + el.clearOpacity(); + el.show(); + this.to = {width:box.width * 2, height:box.height * 2, x:box.x - box.width / 2, y:box.y - box.height / 2, opacity:0, fontSize:'200%'}; + this.on('afteranimate', function() { + var el = Ext.fly(dom, '_anim'); + if (el) { + if (obj.useDisplay) { + el.setDisplayed(false); + } else { + el.hide(); + } + el.setStyle(originalStyles); + Ext.callback(obj.callback, obj.scope); + } + }); + }; + me.animate({duration:obj.duration, easing:obj.easing, listeners:{beforeanimate:{fn:beforeAnim}}}); + return me; + }, selectable:function() { + var me = this; + me.dom.unselectable = ''; + me.removeCls(Element.unselectableCls); + me.addCls(Element.selectableCls); + return me; + }, setCapture:function() { + var dom = this.dom; + if (Ext.isIE9m && dom.setCapture) { + dom.setCapture(); + } + }, setHeight:function(height, animate) { + var me = this; + if (!animate || !me.anim) { + me.callParent(arguments); + } else { + if (!Ext.isObject(animate)) { + animate = {}; + } + me.animate(Ext.applyIf({to:{height:height}}, animate)); + } + return me; + }, setHorizontal:function() { + var me = this, cls = me.verticalCls; + delete me.vertical; + if (cls) { + delete me.verticalCls; + me.removeCls(cls); + } + delete me.setWidth; + delete me.setHeight; + if (!Ext.isIE8) { + delete me.getWidth; + delete me.getHeight; + } + delete me.styleHooks; + }, updateText:function(text) { + var me = this, dom, textNode; + if (dom) { + textNode = dom.firstChild; + if (!textNode || (textNode.nodeType !== 3 || textNode.nextSibling)) { + textNode = DOC.createTextNode(); + me.empty(); + dom.appendChild(textNode); + } + if (text) { + textNode.data = text; + } + } + }, setHtml:function(html, loadScripts, callback, scope) { + var me = this, id, dom, interval; + if (!me.dom) { + return me; + } + html = html || ''; + dom = me.dom; + if (loadScripts !== true) { + dom.innerHTML = html; + Ext.callback(callback, me); + return me; + } + id = Ext.id(); + html += '\x3cspan id\x3d"' + id + '" role\x3d"presentation"\x3e\x3c/span\x3e'; + interval = Ext.interval(function() { + var hd, match, attrs, srcMatch, typeMatch, el, s; + if (!(el = DOC.getElementById(id))) { + return false; + } + clearInterval(interval); + Ext.removeNode(el); + hd = Ext.getHead().dom; + while (match = scriptTagRe.exec(html)) { + attrs = match[1]; + srcMatch = attrs ? attrs.match(srcRe) : false; + if (srcMatch && srcMatch[2]) { + s = DOC.createElement('script'); + s.src = srcMatch[2]; + typeMatch = attrs.match(typeRe); + if (typeMatch && typeMatch[2]) { + s.type = typeMatch[2]; + } + hd.appendChild(s); + } else { + if (match[2] && match[2].length > 0) { + if (scope) { + Ext.functionFactory(match[2]).call(scope); + } else { + Ext.globalEval(match[2]); + } + } + } + } + Ext.callback(callback, scope || me); + }, 20); + dom.innerHTML = html.replace(replaceScriptTagRe, ''); + return me; + }, setOpacity:function(opacity, animate) { + var me = this; + if (!me.dom) { + return me; + } + if (!animate || !me.anim) { + me.setStyle('opacity', opacity); + } else { + if (typeof animate != 'object') { + animate = {duration:350, easing:'ease-in'}; + } + me.animate(Ext.applyIf({to:{opacity:opacity}}, animate)); + } + return me; + }, setPositioning:function(pc) { + return this.setStyle(pc); + }, setVertical:function(angle, cls) { + var me = this, proto = Element.prototype; + me.vertical = true; + if (cls) { + me.addCls(me.verticalCls = cls); + } + me.setWidth = proto.setHeight; + me.setHeight = proto.setWidth; + if (!Ext.isIE8) { + me.getWidth = proto.getHeight; + me.getHeight = proto.getWidth; + } + me.styleHooks = angle === 270 ? proto.verticalStyleHooks270 : proto.verticalStyleHooks90; + }, setSize:function(width, height, animate) { + var me = this; + if (Ext.isObject(width)) { + animate = height; + height = width.height; + width = width.width; + } + if (!animate || !me.anim) { + me.dom.style.width = Element.addUnits(width); + me.dom.style.height = Element.addUnits(height); + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + } else { + if (animate === true) { + animate = {}; + } + me.animate(Ext.applyIf({to:{width:width, height:height}}, animate)); + } + return me; + }, setVisible:function(visible, animate) { + var me = this, dom = me.dom, visMode = getVisMode(me); + if (typeof animate === 'string') { + switch(animate) { + case DISPLAY: + visMode = Element.DISPLAY; + break; + case VISIBILITY: + visMode = Element.VISIBILITY; + break; + case OFFSETS: + visMode = Element.OFFSETS; + break; + case CLIP: + visMode = Element.CLIP; + break; + } + me.setVisibilityMode(visMode); + animate = false; + } + if (!animate || !me.anim) { + if (visMode === Element.DISPLAY) { + return me.setDisplayed(visible); + } else { + if (visMode === Element.OFFSETS) { + me[visible ? 'removeCls' : 'addCls'](OFFSETCLASS); + } else { + if (visMode === Element.CLIP) { + me[visible ? 'removeCls' : 'addCls'](CLIPCLASS); + } else { + if (visMode === Element.VISIBILITY) { + me.fixDisplay(); + dom.style.visibility = visible ? '' : HIDDEN; + } + } + } + } + } else { + if (visible) { + me.setOpacity(0.01); + me.setVisible(true); + } + if (!Ext.isObject(animate)) { + animate = {duration:350, easing:'ease-in'}; + } + me.animate(Ext.applyIf({callback:function() { + if (!visible) { + Ext.fly(dom).setVisible(false).setOpacity(1); + } + }, to:{opacity:visible ? 1 : 0}}, animate)); + } + me.getData()[ISVISIBLE] = visible; + if (me.shadow || me.shim) { + me.setUnderlaysVisible(visible); + } + return me; + }, setWidth:function(width, animate) { + var me = this; + if (!animate || !me.anim) { + me.callParent(arguments); + } else { + if (!Ext.isObject(animate)) { + animate = {}; + } + me.animate(Ext.applyIf({to:{width:width}}, animate)); + } + return me; + }, setX:function(x, animate) { + return this.setXY([x, this.getY()], animate); + }, setXY:function(xy, animate) { + var me = this; + if (!animate || !me.anim) { + me.callParent([xy]); + } else { + if (!Ext.isObject(animate)) { + animate = {}; + } + me.animate(Ext.applyIf({to:{x:xy[0], y:xy[1]}}, animate)); + } + return this; + }, setY:function(y, animate) { + return this.setXY([this.getX(), y], animate); + }, show:function(animate) { + if (typeof animate === 'string') { + this.setVisible(true, animate); + return this; + } + this.setVisible(true, this.anim(animate)); + return this; + }, slideIn:function(anchor, obj, slideOut) { + var me = this, dom = me.dom, elStyle = dom.style, beforeAnim, wrapAnim, restoreScroll, wrapDomParentNode; + anchor = anchor || 't'; + obj = obj || {}; + beforeAnim = function() { + var animScope = this, listeners = obj.listeners, el = Ext.fly(dom, '_anim'), box, originalStyles, anim, wrap; + if (!slideOut) { + el.fixDisplay(); + } + box = el.getBox(); + if ((anchor == 't' || anchor == 'b') && box.height === 0) { + box.height = dom.scrollHeight; + } else { + if ((anchor == 'l' || anchor == 'r') && box.width === 0) { + box.width = dom.scrollWidth; + } + } + originalStyles = el.getStyle(['width', 'height', 'left', 'right', 'top', 'bottom', 'position', 'z-index'], true); + el.setSize(box.width, box.height); + if (obj.preserveScroll) { + restoreScroll = el.cacheScrollValues(); + } + wrap = el.wrap({role:'presentation', id:Ext.id() + '-anim-wrap-for-' + el.dom.id, style:{visibility:slideOut ? 'visible' : 'hidden'}}); + wrapDomParentNode = wrap.dom.parentNode; + wrap.setPositioning(el.getPositioning()); + if (wrap.isStyle('position', 'static')) { + wrap.position('relative'); + } + el.clearPositioning('auto'); + wrap.clip(); + if (restoreScroll) { + restoreScroll(); + } + el.setStyle({visibility:'', position:'absolute'}); + if (slideOut) { + wrap.setSize(box.width, box.height); + } + switch(anchor) { + case 't': + anim = {from:{width:box.width + 'px', height:'0px'}, to:{width:box.width + 'px', height:box.height + 'px'}}; + elStyle.bottom = '0px'; + break; + case 'l': + anim = {from:{width:'0px', height:box.height + 'px'}, to:{width:box.width + 'px', height:box.height + 'px'}}; + me.anchorAnimX(anchor); + break; + case 'r': + anim = {from:{x:box.x + box.width, width:'0px', height:box.height + 'px'}, to:{x:box.x, width:box.width + 'px', height:box.height + 'px'}}; + me.anchorAnimX(anchor); + break; + case 'b': + anim = {from:{y:box.y + box.height, width:box.width + 'px', height:'0px'}, to:{y:box.y, width:box.width + 'px', height:box.height + 'px'}}; + break; + case 'tl': + anim = {from:{x:box.x, y:box.y, width:'0px', height:'0px'}, to:{width:box.width + 'px', height:box.height + 'px'}}; + elStyle.bottom = '0px'; + me.anchorAnimX('l'); + break; + case 'bl': + anim = {from:{y:box.y + box.height, width:'0px', height:'0px'}, to:{y:box.y, width:box.width + 'px', height:box.height + 'px'}}; + me.anchorAnimX('l'); + break; + case 'br': + anim = {from:{x:box.x + box.width, y:box.y + box.height, width:'0px', height:'0px'}, to:{x:box.x, y:box.y, width:box.width + 'px', height:box.height + 'px'}}; + me.anchorAnimX('r'); + break; + case 'tr': + anim = {from:{x:box.x + box.width, width:'0px', height:'0px'}, to:{x:box.x, width:box.width + 'px', height:box.height + 'px'}}; + elStyle.bottom = '0px'; + me.anchorAnimX('r'); + break; + } + wrap.show(); + wrapAnim = Ext.apply({}, obj); + delete wrapAnim.listeners; + wrapAnim = new Ext.fx.Anim(Ext.applyIf(wrapAnim, {target:wrap, duration:500, easing:'ease-out', from:slideOut ? anim.to : anim.from, to:slideOut ? anim.from : anim.to})); + wrapAnim.on('afteranimate', function() { + var el = Ext.fly(dom, '_anim'); + el.setStyle(originalStyles); + if (slideOut) { + if (obj.useDisplay) { + el.setDisplayed(false); + } else { + el.hide(); + } + } + if (wrap.dom) { + if (wrap.dom.parentNode) { + wrap.dom.parentNode.insertBefore(el.dom, wrap.dom); + } else { + wrapDomParentNode.appendChild(el.dom); + } + wrap.destroy(); + } + if (restoreScroll) { + restoreScroll(); + } + animScope.end(); + }); + if (listeners) { + wrapAnim.on(listeners); + } + }; + me.animate({duration:obj.duration ? Math.max(obj.duration, 500) * 2 : 1000, listeners:{beforeanimate:beforeAnim}}); + return me; + }, slideOut:function(anchor, o) { + return this.slideIn(anchor, o, true); + }, swallowEvent:function(eventName, preventDefault) { + var me = this, e, eLen, fn = function(e) { + e.stopPropagation(); + if (preventDefault) { + e.preventDefault(); + } + }; + if (Ext.isArray(eventName)) { + eLen = eventName.length; + for (e = 0; e < eLen; e++) { + me.on(eventName[e], fn); + } + return me; + } + me.on(eventName, fn); + return me; + }, switchOff:function(obj) { + var me = this, dom = me.dom, beforeAnim; + obj = Ext.applyIf(obj || {}, {easing:'ease-in', duration:500, remove:false, useDisplay:false}); + beforeAnim = function() { + var el = Ext.fly(dom, '_anim'), animScope = this, size = el.getSize(), xy = el.getXY(), keyframe, position; + el.clearOpacity(); + el.clip(); + position = el.getPositioning(); + keyframe = new Ext.fx.Animator({target:dom, duration:obj.duration, easing:obj.easing, keyframes:{33:{opacity:0.3}, 66:{height:1, y:xy[1] + size.height / 2}, 100:{width:1, x:xy[0] + size.width / 2}}}); + keyframe.on('afteranimate', function() { + var el = Ext.fly(dom, '_anim'); + if (obj.useDisplay) { + el.setDisplayed(false); + } else { + el.hide(); + } + el.clearOpacity(); + el.setPositioning(position); + el.setSize(size); + animScope.end(); + }); + }; + me.animate({duration:Math.max(obj.duration, 500) * 2, listeners:{beforeanimate:{fn:beforeAnim}}, callback:obj.callback, scope:obj.scope}); + return me; + }, syncContent:function(source) { + source = Ext.getDom(source); + var sourceNodes = source.childNodes, sourceLen = sourceNodes.length, dest = this.dom, destNodes = dest.childNodes, destLen = destNodes.length, i, destNode, sourceNode, nodeType, newAttrs, attLen, attName, elData = dest._extData; + if (Ext.isIE9m && dest.mergeAttributes) { + dest.mergeAttributes(source, true); + dest.src = source.src; + } else { + newAttrs = source.attributes; + attLen = newAttrs.length; + for (i = 0; i < attLen; i++) { + attName = newAttrs[i].name; + if (attName !== 'id') { + dest.setAttribute(attName, newAttrs[i].value); + } + } + } + if (elData) { + elData.isSynchronized = false; + } + if (sourceLen !== destLen) { + dest.innerHTML = source.innerHTML; + return; + } + for (i = 0; i < sourceLen; i++) { + sourceNode = sourceNodes[i]; + destNode = destNodes[i]; + nodeType = sourceNode.nodeType; + if (nodeType !== destNode.nodeType || nodeType === 1 && sourceNode.tagName !== destNode.tagName) { + dest.innerHTML = source.innerHTML; + return; + } + if (nodeType === 3) { + destNode.data = sourceNode.data; + } else { + if (sourceNode.id && destNode.id !== sourceNode.id) { + destNode.id = sourceNode.id; + } + destNode.style.cssText = sourceNode.style.cssText; + destNode.className = sourceNode.className; + Ext.fly(destNode, '_syncContent').syncContent(sourceNode); + } + } + }, toggle:function(animate) { + var me = this; + me.setVisible(!me.isVisible(), me.anim(animate)); + return me; + }, unmask:function() { + var me = this, data = me.getData(), maskEl = data.maskEl, style; + if (maskEl) { + style = maskEl.dom.style; + if (style.clearExpression) { + style.clearExpression('width'); + style.clearExpression('height'); + } + if (maskEl) { + maskEl.destroy(); + delete data.maskEl; + } + me.removeCls([XMASKED, XMASKEDRELATIVE]); + } + me.restoreTabbableState(me.dom === DOC.body); + }, unclip:function() { + var me = this, data = me.getData(), clip; + if (data[ISCLIPPED]) { + data[ISCLIPPED] = false; + clip = data[ORIGINALCLIP]; + if (clip.o) { + me.setStyle(OVERFLOW, clip.o); + } + if (clip.x) { + me.setStyle(OVERFLOWX, clip.x); + } + if (clip.y) { + me.setStyle(OVERFLOWY, clip.y); + } + } + return me; + }, translate:function(x, y, z) { + if (Ext.supports.CssTransforms && !Ext.isIE9m) { + this.callParent(arguments); + } else { + if (x != null) { + this.dom.style.left = x + 'px'; + } + if (y != null) { + this.dom.style.top = y + 'px'; + } + } + }, unselectable:function() { + var me = this; + if (Ext.isOpera) { + me.dom.unselectable = 'on'; + } + me.removeCls(Element.selectableCls); + me.addCls(Element.unselectableCls); + return me; + }, privates:{findTabbableElements:function(options) { + var skipSelf, skipChildren, excludeRoot, includeSaved, includeHidden, dom = this.dom, cAttr = Ext.Element.tabbableSavedCounterAttribute, selection = [], idx = 0, nodes, node, fly, i, len, tabIndex; + if (!dom) { + return selection; + } + if (options) { + skipSelf = options.skipSelf; + skipChildren = options.skipChildren; + excludeRoot = options.excludeRoot; + includeSaved = options.includeSaved; + includeHidden = options.includeHidden; + } + excludeRoot = excludeRoot && Ext.getDom(excludeRoot); + if (excludeRoot && excludeRoot.contains(dom)) { + return selection; + } + if (!skipSelf && (includeSaved && dom.hasAttribute(cAttr) || this.isTabbable(includeHidden))) { + selection[idx++] = dom; + } + if (skipChildren) { + return selection; + } + nodes = dom.querySelectorAll(Ext.Element.tabbableSelector); + len = nodes.length; + if (!len) { + return selection; + } + fly = new Ext.dom.Fly; + for (i = 0; i < len; i++) { + node = nodes[i]; + tabIndex = +node.getAttribute('tabIndex'); + if ((includeSaved && node.hasAttribute(cAttr) || !(tabIndex < 0) && fly.attach(node).isTabbable(includeHidden)) && !(excludeRoot && (excludeRoot === node || excludeRoot.contains(node)))) { + selection[idx++] = node; + } + } + return selection; + }, saveTabbableState:function(options) { + var counterAttr = Ext.Element.tabbableSavedCounterAttribute, savedAttr = Ext.Element.tabbableSavedValueAttribute, counter, nodes, node, i, len; + if (!options || options.includeSaved == null) { + options = Ext.Object.chain(options || null); + options.includeSaved = true; + } + nodes = this.findTabbableElements(options); + for (i = 0, len = nodes.length; i < len; i++) { + node = nodes[i]; + counter = +node.getAttribute(counterAttr); + if (counter > 0) { + node.setAttribute(counterAttr, ++counter); + } else { + if (node.hasAttribute('tabIndex')) { + node.setAttribute(savedAttr, node.getAttribute('tabIndex')); + } else { + node.setAttribute(savedAttr, 'none'); + } + node.setAttribute('tabIndex', '-1'); + node.setAttribute(counterAttr, '1'); + } + } + return nodes; + }, restoreTabbableState:function(skipSelf, skipChildren) { + var dom = this.dom, counterAttr = Ext.Element.tabbableSavedCounterAttribute, savedAttr = Ext.Element.tabbableSavedValueAttribute, nodes = [], idx, counter, nodes, node, i, len; + if (!dom) { + return this; + } + if (!skipChildren) { + nodes = Ext.Array.from(dom.querySelectorAll('[' + counterAttr + ']')); + } + if (!skipSelf) { + nodes.unshift(dom); + } + for (i = 0, len = nodes.length; i < len; i++) { + node = nodes[i]; + if (!node.hasAttribute(counterAttr) || !node.hasAttribute(savedAttr)) { + continue; + } + counter = +node.getAttribute(counterAttr); + if (counter > 1) { + node.setAttribute(counterAttr, --counter); + continue; + } + idx = node.getAttribute(savedAttr); + if (idx === 'none') { + node.removeAttribute('tabIndex'); + } else { + node.setAttribute('tabIndex', idx); + } + node.removeAttribute(savedAttr); + node.removeAttribute(counterAttr); + } + return nodes; + }}, deprecated:{'4.0':{methods:{pause:function(ms) { + var me = this; + Ext.fx.Manager.setFxDefaults(me.id, {delay:ms}); + return me; + }, scale:function(w, h, o) { + this.animate(Ext.apply({}, o, {width:w, height:h})); + return this; + }, shift:function(config) { + this.animate(config); + return this; + }}}, '4.2':{methods:{moveTo:function(x, y, animate) { + return this.setXY([x, y], animate); + }, setBounds:function(x, y, width, height, animate) { + return this.setBox({x:x, y:y, width:width, height:height}, animate); + }, setLeftTop:function(left, top) { + var me = this, style = me.dom.style; + style.left = Element.addUnits(left); + style.top = Element.addUnits(top); + if (me.shadow || me.shim) { + me.syncUnderlays(); + } + return me; + }, setLocation:function(x, y, animate) { + return this.setXY([x, y], animate); + }}}, '5.0':{methods:{getAttributeNS:function(namespace, name) { + return this.getAttribute(name, namespace); + }, getCenterXY:function() { + return this.getAlignToXY(DOC, 'c-c'); + }, getComputedHeight:function() { + return Math.max(this.dom.offsetHeight, this.dom.clientHeight) || parseFloat(this.getStyle(HEIGHT)) || 0; + }, getComputedWidth:function() { + return Math.max(this.dom.offsetWidth, this.dom.clientWidth) || parseFloat(this.getStyle(WIDTH)) || 0; + }, getStyleSize:function() { + var me = this, d = this.dom, isDoc = d === DOC || d === DOC.body, s, w, h; + if (isDoc) { + return {width:Element.getViewportWidth(), height:Element.getViewportHeight()}; + } + s = me.getStyle(['height', 'width'], true); + if (s.width && s.width !== 'auto') { + w = parseFloat(s.width); + } + if (s.height && s.height !== 'auto') { + h = parseFloat(s.height); + } + return {width:w || me.getWidth(true), height:h || me.getHeight(true)}; + }, isBorderBox:function() { + return true; + }, isDisplayed:function() { + return !this.isStyle('display', 'none'); + }, focusable:'isFocusable'}}}}; +}(), function() { + var Element = Ext.dom.Element, proto = Element.prototype, useDocForId = !Ext.isIE8, DOC = document, view = DOC.defaultView, opacityRe = /alpha\(opacity=(.*)\)/i, trimRe = /^\s+|\s+$/g, styleHooks = proto.styleHooks, supports = Ext.supports, verticalStyleHooks90, verticalStyleHooks270, edges, k, edge, borderWidth, getBorderWidth; + proto._init(Element); + delete proto._init; + Ext.plainTableCls = Ext.baseCSSPrefix + 'table-plain'; + Ext.plainListCls = Ext.baseCSSPrefix + 'list-plain'; + if (Ext.CompositeElementLite) { + Ext.CompositeElementLite.importElementMethods(); + } + if (!supports.Opacity && Ext.isIE) { + Ext.apply(styleHooks.opacity, {get:function(dom) { + var filter = dom.style.filter, match, opacity; + if (filter.match) { + match = filter.match(opacityRe); + if (match) { + opacity = parseFloat(match[1]); + if (!isNaN(opacity)) { + return opacity ? opacity / 100 : 0; + } + } + } + return 1; + }, set:function(dom, value) { + var style = dom.style, val = style.filter.replace(opacityRe, '').replace(trimRe, ''); + style.zoom = 1; + if (typeof value === 'number' && value >= 0 && value < 1) { + value *= 100; + style.filter = val + (val.length ? ' ' : '') + 'alpha(opacity\x3d' + value + ')'; + } else { + style.filter = val; + } + }}); + } + if (!supports.matchesSelector) { + var simpleSelectorRe = /^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i, dashRe = /\-/g, fragment, classMatcher = function(tag, cls) { + var classRe = new RegExp('(?:^|\\s+)' + cls.replace(dashRe, '\\-') + '(?:\\s+|$)'); + if (tag && tag !== '*') { + tag = tag.toUpperCase(); + return function(el) { + return el.tagName === tag && classRe.test(el.className); + }; + } + return function(el) { + return classRe.test(el.className); + }; + }, tagMatcher = function(tag) { + tag = tag.toUpperCase(); + return function(el) { + return el.tagName === tag; + }; + }, cache = {}; + proto.matcherCache = cache; + proto.is = function(selector) { + if (!selector) { + return true; + } + var dom = this.dom, cls, match, testFn, root, isOrphan, is, tag; + if (dom.nodeType !== 1) { + return false; + } + if (!(testFn = Ext.isFunction(selector) ? selector : cache[selector])) { + if (!(match = selector.match(simpleSelectorRe))) { + root = dom.parentNode; + if (!root) { + isOrphan = true; + root = fragment || (fragment = DOC.createDocumentFragment()); + fragment.appendChild(dom); + } + is = Ext.Array.indexOf(Ext.fly(root, '_is').query(selector), dom) !== -1; + if (isOrphan) { + fragment.removeChild(dom); + } + return is; + } + tag = match[1]; + cls = match[2]; + cache[selector] = testFn = cls ? classMatcher(tag, cls) : tagMatcher(tag); + } + return testFn(dom); + }; + } + if (!view || !view.getComputedStyle) { + proto.getStyle = function(property, inline) { + var me = this, dom = me.dom, multiple = typeof property !== 'string', prop = property, props = prop, len = 1, isInline = inline, styleHooks = me.styleHooks, camel, domStyle, values, hook, out, style, i; + if (multiple) { + values = {}; + prop = props[0]; + i = 0; + if (!(len = props.length)) { + return values; + } + } + if (!dom || dom.documentElement) { + return values || ''; + } + domStyle = dom.style; + if (inline) { + style = domStyle; + } else { + style = dom.currentStyle; + if (!style) { + isInline = true; + style = domStyle; + } + } + do { + hook = styleHooks[prop]; + if (!hook) { + styleHooks[prop] = hook = {name:Element.normalize(prop)}; + } + if (hook.get) { + out = hook.get(dom, me, isInline, style); + } else { + camel = hook.name; + out = style[camel]; + } + if (!multiple) { + return out; + } + values[prop] = out; + prop = props[++i]; + } while (i < len); + return values; + }; + } + if (Ext.isIE8) { + getBorderWidth = function(dom, el, inline, style) { + if (style[this.styleName] === 'none') { + return '0px'; + } + return style[this.name]; + }; + edges = ['Top', 'Right', 'Bottom', 'Left']; + k = edges.length; + while (k--) { + edge = edges[k]; + borderWidth = 'border' + edge + 'Width'; + styleHooks['border-' + edge.toLowerCase() + '-width'] = styleHooks[borderWidth] = {name:borderWidth, styleName:'border' + edge + 'Style', get:getBorderWidth}; + } + var syncRepaintCls = Ext.baseCSSPrefix + 'sync-repaint'; + proto.syncRepaint = function() { + this.addCls(syncRepaintCls); + this.getWidth(); + this.removeCls(syncRepaintCls); + }; + } + if (Ext.isIE10m) { + Ext.override(Element, {focus:function(defer, dom) { + var me = this, ex; + dom = dom || me.dom; + if (Number(defer)) { + Ext.defer(me.focus, defer, me, [null, dom]); + } else { + Ext.GlobalEvents.fireEvent('beforefocus', dom); + if (dom && (dom.tagName === 'INPUT' || dom.tagname === 'TEXTAREA')) { + Ext.synchronouslyFocusing = document.activeElement; + } + try { + dom.focus(); + } catch (xcpt) { + ex = xcpt; + } + if (Ext.synchronouslyFocusing && document.activeElement !== dom && !ex) { + dom.focus(); + } + Ext.synchronouslyFocusing = null; + } + return me; + }}); + } + Ext.apply(Ext, {enableGarbageCollector:true, isBorderBox:true, useShims:false, getDetachedBody:function() { + var detachedEl = Ext.detachedBodyEl; + if (!detachedEl) { + detachedEl = DOC.createElement('div'); + Ext.detachedBodyEl = detachedEl = new Ext.dom.Fly(detachedEl); + detachedEl.isDetachedBody = true; + } + return detachedEl; + }, getElementById:function(id) { + var el = DOC.getElementById(id), detachedBodyEl; + if (!el && (detachedBodyEl = Ext.detachedBodyEl)) { + el = detachedBodyEl.dom.querySelector(Ext.makeIdSelector(id)); + } + return el; + }, addBehaviors:function(o) { + if (!Ext.isReady) { + Ext.onInternalReady(function() { + Ext.addBehaviors(o); + }); + } else { + var cache = {}, parts, b, s; + for (b in o) { + if ((parts = b.split('@'))[1]) { + s = parts[0]; + if (!cache[s]) { + cache[s] = Ext.fly(document).select(s, true); + } + cache[s].on(parts[1], o[b]); + } + } + cache = null; + } + }}); + if (Ext.isIE9m) { + Ext.getElementById = function(id) { + var el = DOC.getElementById(id), detachedBodyEl; + if (!el && (detachedBodyEl = Ext.detachedBodyEl)) { + el = detachedBodyEl.dom.all[id]; + } + return el; + }; + proto.getById = function(id, asDom) { + var dom = this.dom, ret = null, entry, el; + if (dom) { + el = useDocForId && DOC.getElementById(id) || dom.all[id]; + if (el) { + if (asDom) { + ret = el; + } else { + entry = Ext.cache[id]; + if (entry) { + if (entry.skipGarbageCollection || !Ext.isGarbage(entry.dom)) { + ret = entry; + } else { + Ext.raise("Stale Element with id '" + el.id + "' found in Element cache. " + 'Make sure to clean up Element instances using destroy()'); + entry.destroy(); + } + } + ret = ret || new Ext.Element(el); + } + } + } + return ret; + }; + } else { + if (!DOC.querySelector) { + Ext.getDetachedBody = Ext.getBody; + Ext.getElementById = function(id) { + return DOC.getElementById(id); + }; + proto.getById = function(id, asDom) { + var dom = DOC.getElementById(id); + return asDom ? dom : dom ? Ext.get(dom) : null; + }; + } + } + if (Ext.isIE && !(Ext.isIE9p && DOC.documentMode >= 9)) { + proto.getAttribute = function(name, ns) { + var d = this.dom, type; + if (ns) { + type = typeof d[ns + ':' + name]; + if (type !== 'undefined' && type !== 'unknown') { + return d[ns + ':' + name] || null; + } + return null; + } + if (name === 'for') { + name = 'htmlFor'; + } + return d[name] || null; + }; + } + Ext.onInternalReady(function() { + var transparentRe = /^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i, bodyCls = [], origSetWidth = proto.setWidth, origSetHeight = proto.setHeight, origSetSize = proto.setSize, pxRe = /^\d+(?:\.\d*)?px$/i, colorStyles, i, name, camel; + if (supports.FixedTableWidthBug) { + styleHooks.width = {name:'width', set:function(dom, value, el) { + var style = dom.style, needsFix = el._needsTableWidthFix, origDisplay = style.display; + if (needsFix) { + style.display = 'none'; + } + style.width = value; + if (needsFix) { + dom.scrollWidth; + style.display = origDisplay; + } + }}; + proto.setWidth = function(width, animate) { + var me = this, dom = me.dom, style = dom.style, needsFix = me._needsTableWidthFix, origDisplay = style.display; + if (needsFix && !animate) { + style.display = 'none'; + } + origSetWidth.call(me, width, animate); + if (needsFix && !animate) { + dom.scrollWidth; + style.display = origDisplay; + } + return me; + }; + proto.setSize = function(width, height, animate) { + var me = this, dom = me.dom, style = dom.style, needsFix = me._needsTableWidthFix, origDisplay = style.display; + if (needsFix && !animate) { + style.display = 'none'; + } + origSetSize.call(me, width, height, animate); + if (needsFix && !animate) { + dom.scrollWidth; + style.display = origDisplay; + } + return me; + }; + } + if (Ext.isIE8) { + styleHooks.height = {name:'height', set:function(dom, value, el) { + var component = el.component, frameInfo, frameBodyStyle; + if (component && component._syncFrameHeight && el === component.el) { + frameBodyStyle = component.frameBody.dom.style; + if (pxRe.test(value)) { + frameInfo = component.getFrameInfo(); + if (frameInfo) { + frameBodyStyle.height = parseInt(value, 10) - frameInfo.height + 'px'; + } + } else { + if (!value || value === 'auto') { + frameBodyStyle.height = ''; + } + } + } + dom.style.height = value; + }}; + proto.setHeight = function(height, animate) { + var component = this.component, frameInfo, frameBodyStyle; + if (component && component._syncFrameHeight && this === component.el) { + frameBodyStyle = component.frameBody.dom.style; + if (!height || height === 'auto') { + frameBodyStyle.height = ''; + } else { + frameInfo = component.getFrameInfo(); + if (frameInfo) { + frameBodyStyle.height = height - frameInfo.height + 'px'; + } + } + } + return origSetHeight.call(this, height, animate); + }; + proto.setSize = function(width, height, animate) { + var component = this.component, frameInfo, frameBodyStyle; + if (component && component._syncFrameHeight && this === component.el) { + frameBodyStyle = component.frameBody.dom.style; + if (!height || height === 'auto') { + frameBodyStyle.height = ''; + } else { + frameInfo = component.getFrameInfo(); + if (frameInfo) { + frameBodyStyle.height = height - frameInfo.height + 'px'; + } + } + } + return origSetSize.call(this, width, height, animate); + }; + } + Ext.getDoc().on('selectstart', function(ev, dom) { + var selectableCls = Element.selectableCls, unselectableCls = Element.unselectableCls, tagName = dom && dom.tagName; + tagName = tagName && tagName.toLowerCase(); + if (tagName === 'input' || tagName === 'textarea') { + return; + } + while (dom && dom.nodeType === 1 && dom !== DOC.documentElement) { + var el = Ext.fly(dom); + if (el.hasCls(selectableCls)) { + return; + } + if (el.hasCls(unselectableCls)) { + ev.stopEvent(); + return; + } + dom = dom.parentNode; + } + }); + function fixTransparent(dom, el, inline, style) { + var value = style[this.name] || ''; + return transparentRe.test(value) ? 'transparent' : value; + } + function makeSelectionRestoreFn(activeEl, start, end) { + return function() { + activeEl.selectionStart = start; + activeEl.selectionEnd = end; + }; + } + function getRightMarginFixCleaner(target) { + var hasInputBug = supports.DisplayChangeInputSelectionBug, hasTextAreaBug = supports.DisplayChangeTextAreaSelectionBug, activeEl, tag, start, end; + if (hasInputBug || hasTextAreaBug) { + activeEl = Element.getActiveElement(); + tag = activeEl && activeEl.tagName; + if (hasTextAreaBug && tag === 'TEXTAREA' || hasInputBug && tag === 'INPUT' && activeEl.type === 'text') { + if (Ext.fly(target).isAncestor(activeEl)) { + start = activeEl.selectionStart; + end = activeEl.selectionEnd; + if (Ext.isNumber(start) && Ext.isNumber(end)) { + return makeSelectionRestoreFn(activeEl, start, end); + } + } + } + } + return Ext.emptyFn; + } + function fixRightMargin(dom, el, inline, style) { + var result = style.marginRight, domStyle, display; + if (result !== '0px') { + domStyle = dom.style; + display = domStyle.display; + domStyle.display = 'inline-block'; + result = (inline ? style : dom.ownerDocument.defaultView.getComputedStyle(dom, null)).marginRight; + domStyle.display = display; + } + return result; + } + function fixRightMarginAndInputFocus(dom, el, inline, style) { + var result = style.marginRight, domStyle, cleaner, display; + if (result !== '0px') { + domStyle = dom.style; + cleaner = getRightMarginFixCleaner(dom); + display = domStyle.display; + domStyle.display = 'inline-block'; + result = (inline ? style : dom.ownerDocument.defaultView.getComputedStyle(dom, '')).marginRight; + domStyle.display = display; + cleaner(); + } + return result; + } + if (!supports.RightMargin) { + styleHooks.marginRight = styleHooks['margin-right'] = {name:'marginRight', get:supports.DisplayChangeInputSelectionBug || supports.DisplayChangeTextAreaSelectionBug ? fixRightMarginAndInputFocus : fixRightMargin}; + } + if (!supports.TransparentColor) { + colorStyles = ['background-color', 'border-color', 'color', 'outline-color']; + for (i = colorStyles.length; i--;) { + name = colorStyles[i]; + camel = Element.normalize(name); + styleHooks[name] = styleHooks[camel] = {name:camel, get:fixTransparent}; + } + } + proto.verticalStyleHooks90 = verticalStyleHooks90 = Ext.Object.chain(styleHooks); + proto.verticalStyleHooks270 = verticalStyleHooks270 = Ext.Object.chain(styleHooks); + verticalStyleHooks90.width = styleHooks.height || {name:'height'}; + verticalStyleHooks90.height = styleHooks.width || {name:'width'}; + verticalStyleHooks90['margin-top'] = {name:'marginLeft'}; + verticalStyleHooks90['margin-right'] = {name:'marginTop'}; + verticalStyleHooks90['margin-bottom'] = {name:'marginRight'}; + verticalStyleHooks90['margin-left'] = {name:'marginBottom'}; + verticalStyleHooks90['padding-top'] = {name:'paddingLeft'}; + verticalStyleHooks90['padding-right'] = {name:'paddingTop'}; + verticalStyleHooks90['padding-bottom'] = {name:'paddingRight'}; + verticalStyleHooks90['padding-left'] = {name:'paddingBottom'}; + verticalStyleHooks90['border-top'] = {name:'borderLeft'}; + verticalStyleHooks90['border-right'] = {name:'borderTop'}; + verticalStyleHooks90['border-bottom'] = {name:'borderRight'}; + verticalStyleHooks90['border-left'] = {name:'borderBottom'}; + verticalStyleHooks270.width = styleHooks.height || {name:'height'}; + verticalStyleHooks270.height = styleHooks.width || {name:'width'}; + verticalStyleHooks270['margin-top'] = {name:'marginRight'}; + verticalStyleHooks270['margin-right'] = {name:'marginBottom'}; + verticalStyleHooks270['margin-bottom'] = {name:'marginLeft'}; + verticalStyleHooks270['margin-left'] = {name:'marginTop'}; + verticalStyleHooks270['padding-top'] = {name:'paddingRight'}; + verticalStyleHooks270['padding-right'] = {name:'paddingBottom'}; + verticalStyleHooks270['padding-bottom'] = {name:'paddingLeft'}; + verticalStyleHooks270['padding-left'] = {name:'paddingTop'}; + verticalStyleHooks270['border-top'] = {name:'borderRight'}; + verticalStyleHooks270['border-right'] = {name:'borderBottom'}; + verticalStyleHooks270['border-bottom'] = {name:'borderLeft'}; + verticalStyleHooks270['border-left'] = {name:'borderTop'}; + if (!Ext.scopeCss) { + bodyCls.push(Ext.baseCSSPrefix + 'body'); + } + if (supports.Touch) { + bodyCls.push(Ext.baseCSSPrefix + 'touch'); + } + if (Ext.isIE && Ext.isIE9m) { + bodyCls.push(Ext.baseCSSPrefix + 'ie', Ext.baseCSSPrefix + 'ie9m'); + bodyCls.push(Ext.baseCSSPrefix + 'ie8p'); + if (Ext.isIE8) { + bodyCls.push(Ext.baseCSSPrefix + 'ie8'); + } else { + bodyCls.push(Ext.baseCSSPrefix + 'ie9', Ext.baseCSSPrefix + 'ie9p'); + } + if (Ext.isIE8m) { + bodyCls.push(Ext.baseCSSPrefix + 'ie8m'); + } + } + if (Ext.isIE10) { + bodyCls.push(Ext.baseCSSPrefix + 'ie10'); + } + if (Ext.isIE10p) { + bodyCls.push(Ext.baseCSSPrefix + 'ie10p'); + } + if (Ext.isIE11) { + bodyCls.push(Ext.baseCSSPrefix + 'ie11'); + } + if (Ext.isGecko) { + bodyCls.push(Ext.baseCSSPrefix + 'gecko'); + } + if (Ext.isOpera) { + bodyCls.push(Ext.baseCSSPrefix + 'opera'); + } + if (Ext.isOpera12m) { + bodyCls.push(Ext.baseCSSPrefix + 'opera12m'); + } + if (Ext.isWebKit) { + bodyCls.push(Ext.baseCSSPrefix + 'webkit'); + } + if (Ext.isSafari) { + bodyCls.push(Ext.baseCSSPrefix + 'safari'); + } + if (Ext.isChrome) { + bodyCls.push(Ext.baseCSSPrefix + 'chrome'); + } + if (Ext.isMac) { + bodyCls.push(Ext.baseCSSPrefix + 'mac'); + } + if (Ext.isLinux) { + bodyCls.push(Ext.baseCSSPrefix + 'linux'); + } + if (!supports.CSS3BorderRadius) { + bodyCls.push(Ext.baseCSSPrefix + 'nbr'); + } + if (!supports.CSS3LinearGradient) { + bodyCls.push(Ext.baseCSSPrefix + 'nlg'); + } + if (supports.Touch) { + bodyCls.push(Ext.baseCSSPrefix + 'touch'); + } + Ext.getBody().addCls(bodyCls); + }, null, {priority:1500}); +}); +Ext.define('Ext.GlobalEvents', {extend:Ext.mixin.Observable, alternateClassName:'Ext.globalEvents', observableType:'global', singleton:true, resizeBuffer:100, idleEventMask:{mousemove:1, touchmove:1, pointermove:1, MSPointerMove:1, unload:1}, constructor:function() { + var me = this; + me.callParent(); + Ext.onInternalReady(function() { + me.attachListeners(); + }); +}, attachListeners:function() { + Ext.get(window).on('resize', this.fireResize, this, {buffer:this.resizeBuffer}); + Ext.getDoc().on('mousedown', this.fireMouseDown, this); +}, fireMouseDown:function(e) { + this.fireEvent('mousedown', e); +}, fireResize:function() { + var me = this, Element = Ext.Element, w = Element.getViewportWidth(), h = Element.getViewportHeight(); + if (me.curHeight !== h || me.curWidth !== w) { + me.curHeight = h; + me.curWidth = w; + me.fireEvent('resize', w, h); + } +}}, function(GlobalEvents) { + Ext.on = function() { + return GlobalEvents.addListener.apply(GlobalEvents, arguments); + }; + Ext.un = function() { + return GlobalEvents.removeListener.apply(GlobalEvents, arguments); + }; +}); +Ext.define('Ext.overrides.GlobalEvents', {override:'Ext.GlobalEvents', deprecated:{5:{methods:{addListener:function(ename, fn, scope, options, order, caller, eventOptions) { + var name, readyFn; + if (ename === 'ready') { + readyFn = fn; + } else { + if (typeof ename !== 'string') { + for (name in ename) { + if (name === 'ready') { + readyFn = ename[name]; + } + } + } + } + if (readyFn) { + Ext.log.warn("Ext.on('ready', fn) is deprecated. Please use Ext.onReady(fn) instead."); + Ext.onReady(readyFn); + } + this.callParent([ename, fn, scope, options, order, caller, eventOptions]); +}}}}}); +Ext.USE_NATIVE_JSON = false; +Ext.JSON = new function() { + var me = this, hasNative = window.JSON && JSON.toString() === '[object JSON]', useHasOwn = !!{}.hasOwnProperty, pad = function(n) { + return n < 10 ? '0' + n : n; + }, doDecode = function(json) { + return eval('(' + json + ')'); + }, doEncode = function(o, newline) { + if (o === null || o === undefined) { + return 'null'; + } else { + if (Ext.isDate(o)) { + return me.encodeDate(o); + } else { + if (Ext.isString(o)) { + if (Ext.isMSDate(o)) { + return me.encodeMSDate(o); + } else { + return me.encodeString(o); + } + } else { + if (typeof o === 'number') { + return isFinite(o) ? String(o) : 'null'; + } else { + if (Ext.isBoolean(o)) { + return String(o); + } else { + if (o.toJSON) { + return o.toJSON(); + } else { + if (Ext.isArray(o)) { + return encodeArray(o, newline); + } else { + if (Ext.isObject(o)) { + return encodeObject(o, newline); + } else { + if (typeof o === 'function') { + return 'null'; + } + } + } + } + } + } + } + } + } + return 'undefined'; + }, m = {'\b':'\\b', '\t':'\\t', '\n':'\\n', '\f':'\\f', '\r':'\\r', '"':'\\"', '\\':'\\\\', '\x0B':'\\u000b'}, charToReplace = /[\\\"\x00-\x1f\x7f-\uffff]/g, encodeString = function(s) { + return '"' + s.replace(charToReplace, function(a) { + var c = m[a]; + return typeof c === 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }) + '"'; + }, encodeMSDate = function(o) { + return '"' + o + '"'; + }, encodeArrayPretty = function(o, newline) { + var len = o.length, cnewline = newline + ' ', sep = ',' + cnewline, a = ['[', cnewline], i; + for (i = 0; i < len; i += 1) { + a.push(me.encodeValue(o[i], cnewline), sep); + } + a[a.length - 1] = newline + ']'; + return a.join(''); + }, encodeObjectPretty = function(o, newline) { + var cnewline = newline + ' ', sep = ',' + cnewline, a = ['{', cnewline], i, val; + for (i in o) { + val = o[i]; + if (!useHasOwn || o.hasOwnProperty(i)) { + if (typeof val === 'function' || val === undefined) { + continue; + } + a.push(me.encodeValue(i) + ': ' + me.encodeValue(val, cnewline), sep); + } + } + a[a.length - 1] = newline + '}'; + return a.join(''); + }, encodeArray = function(o, newline) { + if (newline) { + return encodeArrayPretty(o, newline); + } + var a = ['[', ''], len = o.length, i; + for (i = 0; i < len; i += 1) { + a.push(me.encodeValue(o[i]), ','); + } + a[a.length - 1] = ']'; + return a.join(''); + }, encodeObject = function(o, newline) { + if (newline) { + return encodeObjectPretty(o, newline); + } + var a = ['{', ''], i, val; + for (i in o) { + val = o[i]; + if (!useHasOwn || o.hasOwnProperty(i)) { + if (typeof val === 'function' || val === undefined) { + continue; + } + a.push(me.encodeValue(i), ':', me.encodeValue(val), ','); + } + } + a[a.length - 1] = '}'; + return a.join(''); + }; + me.encodeString = encodeString; + me.encodeValue = doEncode; + me.encodeDate = function(o) { + return '"' + o.getFullYear() + '-' + pad(o.getMonth() + 1) + '-' + pad(o.getDate()) + 'T' + pad(o.getHours()) + ':' + pad(o.getMinutes()) + ':' + pad(o.getSeconds()) + '"'; + }; + me.encode = function(o) { + if (hasNative && Ext.USE_NATIVE_JSON) { + return JSON.stringify(o); + } + return me.encodeValue(o); + }; + me.decode = function(json, safe) { + try { + if (hasNative && Ext.USE_NATIVE_JSON) { + return JSON.parse(json); + } + return doDecode(json); + } catch (e$19) { + if (safe) { + return null; + } + Ext.raise({sourceClass:'Ext.JSON', sourceMethod:'decode', msg:"You're trying to decode an invalid JSON String: " + json}); + } + }; + me.encodeMSDate = encodeMSDate; + if (!Ext.util) { + Ext.util = {}; + } + Ext.util.JSON = me; + Ext.encode = me.encode; + Ext.decode = me.decode; +}; +Ext.define('Ext.mixin.Inheritable', {extend:Ext.Mixin, mixinConfig:{id:'inheritable'}, getInherited:function(inner) { + var me = this, inheritedState = inner && me.inheritedStateInner || me.inheritedState, ownerCt = me.getRefOwner(), isContainer = me.isContainer, parent, inheritedStateInner, getInner, ownerLayout; + if (!inheritedState || inheritedState.invalid) { + parent = me.getRefOwner(); + ownerLayout = me.ownerLayout; + if (ownerCt) { + getInner = ownerLayout ? ownerLayout === ownerCt.layout : true; + } + me.inheritedState = inheritedState = Ext.Object.chain(parent ? parent.getInherited(getInner) : Ext.rootInheritedState); + if (isContainer) { + me.inheritedStateInner = inheritedStateInner = Ext.Object.chain(inheritedState); + } + me.initInheritedState(inheritedState, inheritedStateInner); + inheritedState = isContainer && inner ? me.inheritedStateInner : me.inheritedState; + } + return inheritedState; +}, getInheritedConfig:function(property, skipThis) { + var state = this.inheritedState, old, ret; + if (!state || state.invalid) { + state = this.getInherited(); + } + ret = state[property]; + if (skipThis && state.hasOwnProperty(property)) { + old = ret; + delete state[property]; + ret = state[property]; + state[property] = old; + } + return ret; +}, resolveListenerScope:function(defaultScope, skipThis) { + var me = this, hasSkipThis = typeof skipThis === 'boolean', namedScope = Ext._namedScopes[defaultScope], ret; + if (!namedScope) { + ret = me.getInheritedConfig('defaultListenerScope', hasSkipThis ? skipThis : true) || defaultScope || me; + } else { + if (namedScope.isController) { + ret = me.getInheritedConfig('controller', hasSkipThis ? skipThis : !namedScope.isSelf); + } else { + if (namedScope.isSelf) { + ret = me.getInheritedConfig('defaultListenerScope', hasSkipThis && skipThis) || me; + } else { + if (namedScope.isThis) { + ret = me; + } + } + } + } + return ret || null; +}, resolveSatelliteListenerScope:function(satellite, defaultScope) { + var me = this, namedScope = Ext._namedScopes[defaultScope], ret; + if (!namedScope) { + ret = me.getInheritedConfig('defaultListenerScope') || defaultScope || me; + } else { + if (namedScope.isController) { + ret = me.getInheritedConfig('controller'); + } else { + if (namedScope.isSelf) { + ret = me.getInheritedConfig('defaultListenerScope') || satellite; + } else { + if (namedScope.isThis) { + ret = satellite; + } + } + } + } + return ret || null; +}, lookupReferenceHolder:function(skipThis) { + return this.getInheritedConfig('referenceHolder', skipThis !== false) || null; +}, getRefOwner:function() { + var me = this; + return me.ownerCt || me.parent || me.$initParent || me.ownerCmp || me.floatParent; +}, invalidateInheritedState:function() { + var inheritedState = this.inheritedState; + if (inheritedState) { + inheritedState.invalid = true; + delete this.inheritedState; + } +}, privates:{fixReference:function() { + var me = this, refHolder; + if (me.getReference()) { + refHolder = me.lookupReferenceHolder(); + if (refHolder) { + refHolder.attachReference(me); + } + } +}, onInheritedAdd:function(parent, instanced) { + var me = this; + if (me.inheritedState && instanced) { + me.invalidateInheritedState(); + } + if (me.getReference()) { + Ext.ComponentManager.markReferencesDirty(); + } +}, onInheritedRemove:function(destroying) { + var me = this, refHolder; + if (me.getReference()) { + refHolder = me.lookupReferenceHolder(); + if (refHolder) { + refHolder.clearReference(me); + } + } + if (me.inheritedState && !destroying) { + me.invalidateInheritedState(); + } +}}}, function() { + Ext.rootInheritedState = {}; +}); +Ext.define('Ext.mixin.Bindable', {mixinId:'bindable', config:{bind:{$value:null, lazy:true}, controller:null, defaultListenerScope:false, publishes:{$value:null, lazy:true, merge:function(newValue, oldValue) { + return this.mergeSets(newValue, oldValue); +}}, reference:null, session:{$value:null, lazy:true}, twoWayBindable:{$value:null, lazy:true, merge:function(newValue, oldValue) { + return this.mergeSets(newValue, oldValue); +}}, viewModel:{$value:null, lazy:true}}, defaultBindProperty:null, validRefRe:/^[a-z_][a-z0-9_]*$/i, initInheritedState:function(inheritedState) { + var me = this, reference = me.getReference(), controller = me.getController(), viewModel = me.getConfig('viewModel', true), session = me.getConfig('session', true), defaultListenerScope = me.getDefaultListenerScope(); + if (controller) { + inheritedState.controller = controller; + } + if (defaultListenerScope) { + inheritedState.defaultListenerScope = me; + } else { + if (controller) { + inheritedState.defaultListenerScope = controller; + } + } + if (viewModel) { + if (!viewModel.isViewModel) { + viewModel = me; + } + inheritedState.viewModel = viewModel; + } + if (session) { + if (!session.isSession) { + session = me; + } + inheritedState.session = session; + } + if (reference) { + me.referenceKey = (inheritedState.referencePath || '') + reference; + me.viewModelKey = (inheritedState.viewModelPath || '') + reference; + } +}, lookupController:function(skipThis) { + return this.getInheritedConfig('controller', skipThis) || null; +}, lookupSession:function(skipThis) { + var ret = skipThis ? null : this.getSession(); + if (!ret) { + ret = this.getInheritedConfig('session', skipThis); + if (ret && !ret.isSession) { + ret = ret.getInherited().session = ret.getSession(); + } + } + return ret || null; +}, lookupViewModel:function(skipThis) { + var ret = skipThis ? null : this.getViewModel(); + if (!ret) { + ret = this.getInheritedConfig('viewModel', skipThis); + if (ret && !ret.isViewModel) { + ret = ret.getInherited().viewModel = ret.getViewModel(); + } + } + return ret || null; +}, publishState:function(property, value) { + var me = this, state = me.publishedState, binds = me.getBind(), binding = binds && property && binds[property], count = 0, name, publishes, vm, path; + if (binding && !binding.syncing && !binding.isReadOnly()) { + if (!(binding.calls === 0 && (value == null || value === me.getInitialConfig()[property]))) { + binding.setValue(value); + } + } + if (!(publishes = me.getPublishes())) { + return; + } + if (!(vm = me.lookupViewModel())) { + return; + } + if (!(path = me.viewModelKey)) { + return; + } + if (property && state) { + if (!publishes[property]) { + return; + } + if (!(value && value.constructor === Object) && !(value instanceof Array)) { + if (state[property] === value) { + return; + } + } + path += '.'; + path += property; + } else { + state = state || (me.publishedState = {}); + for (name in publishes) { + ++count; + if (name === property) { + state[name] = value; + } else { + state[name] = me[name]; + } + } + if (!count) { + return; + } + value = state; + } + vm.set(path, value); +}, privates:{addBindableUpdater:function(property) { + var me = this, configs = me.self.$config.configs, cfg = configs[property], updateName; + if (cfg && !me.hasOwnProperty(updateName = cfg.names.update)) { + me[updateName] = cfg.bindableUpdater || (cfg.root.bindableUpdater = me.makeBindableUpdater(cfg)); + } +}, applyBind:function(binds, currentBindings) { + if (!binds) { + return binds; + } + var me = this, viewModel = me.lookupViewModel(), twoWayable = me.getTwoWayBindable(), getBindTemplateScope = me._getBindTemplateScope, b, property, descriptor; + if (!currentBindings || typeof currentBindings === 'string') { + currentBindings = {}; + } + if (!viewModel) { + Ext.raise('Cannot use bind config without a viewModel'); + } + if (Ext.isString(binds)) { + if (!me.defaultBindProperty) { + Ext.raise(me.$className + ' has no defaultBindProperty - ' + 'Please specify a bind object'); + } + b = binds; + binds = {}; + binds[me.defaultBindProperty] = b; + } + for (property in binds) { + descriptor = binds[property]; + b = currentBindings[property]; + if (b && typeof b !== 'string') { + b.destroy(); + b = null; + } + if (descriptor) { + b = viewModel.bind(descriptor, me.onBindNotify, me); + b._config = Ext.Config.get(property); + b.getTemplateScope = getBindTemplateScope; + if (!me[b._config.names.set]) { + Ext.raise('Cannot bind ' + property + ' on ' + me.$className + ' - missing a ' + b._config.names.set + ' method.'); + } + } + currentBindings[property] = b; + if (twoWayable && twoWayable[property] && !b.isReadOnly()) { + me.addBindableUpdater(property); + } + } + return currentBindings; +}, applyController:function(controller) { + if (controller) { + controller = Ext.Factory.controller(controller); + controller.setView(this); + } + return controller; +}, applyPublishes:function(all) { + if (this.lookupViewModel()) { + for (var property in all) { + this.addBindableUpdater(property); + } + } + return all; +}, applyReference:function(reference) { + var validIdRe = this.validRefRe || Ext.validIdRe; + if (reference && !validIdRe.test(reference)) { + Ext.raise('Invalid reference "' + reference + '" for ' + this.getId() + ' - not a valid identifier'); + } + return reference; +}, applySession:function(session) { + if (!session) { + return null; + } + if (!session.isSession) { + var parentSession = this.lookupSession(true), config = session === true ? {} : session; + if (parentSession) { + session = parentSession.spawn(config); + } else { + session = new Ext.data['Session'](config); + } + } + return session; +}, applyViewModel:function(viewModel) { + var me = this, config, session; + if (!viewModel) { + return null; + } + if (!viewModel.isViewModel) { + config = {parent:me.lookupViewModel(true)}; + config.session = me.getSession(); + if (!session && !config.parent) { + config.session = me.lookupSession(); + } + if (viewModel) { + if (viewModel.constructor === Object) { + Ext.apply(config, viewModel); + } else { + if (typeof viewModel === 'string') { + config.type = viewModel; + } + } + } + viewModel = Ext.Factory.viewModel(config); + } + return viewModel; +}, _getBindTemplateScope:function() { + return this.scope.resolveListenerScope(); +}, destroyBindable:function() { + var me = this, viewModel = me.getConfig('viewModel', true), session = me.getConfig('session', true), controller = me.getController(); + if (viewModel && viewModel.isViewModel) { + viewModel.destroy(); + me.setViewModel(null); + } + if (session && session.isSession) { + if (session.getAutoDestroy()) { + session.destroy(); + } + me.setSession(null); + } + if (controller) { + me.setController(null); + controller.destroy(); + } +}, initBindable:function() { + this.initBindable = Ext.emptyFn; + this.getBind(); + this.getPublishes(); +}, makeBindableUpdater:function(cfg) { + var updateName = cfg.names.update; + return function(newValue, oldValue) { + var me = this, updater = me.self.prototype[updateName]; + if (updater) { + updater.call(me, newValue, oldValue); + } + me.publishState(cfg.name, newValue); + }; +}, isSyncing:function(name) { + var bindings = this.getBind(), ret = false, binding; + if (bindings) { + binding = bindings[name]; + if (binding) { + ret = binding.syncing > 0; + } + } + return ret; +}, onBindNotify:function(value, oldValue, binding) { + binding.syncing = binding.syncing + 1 || 1; + this[binding._config.names.set](value); + --binding.syncing; +}, removeBindings:function() { + var me = this, bindings, key, binding; + if (!me.destroying) { + bindings = me.getBind(); + if (bindings && typeof bindings !== 'string') { + for (key in bindings) { + binding = bindings[key]; + binding.destroy(); + binding._config = binding.getTemplateScope = null; + } + } + } + me.setBind(null); +}, updateSession:function(session) { + var state = this.getInherited(); + if (session) { + state.session = session; + } else { + delete state.session; + } +}, updateViewModel:function(viewModel) { + var state = this.getInherited(), controller = this.getController(); + if (viewModel) { + state.viewModel = viewModel; + viewModel.setView(this); + if (controller) { + controller.initViewModel(viewModel); + } + } else { + delete state.viewModel; + } +}}}); +Ext.define('Ext.mixin.ComponentDelegation', {extend:Ext.Mixin, mixinConfig:{id:'componentDelegation'}, privates:{addDelegatedListener:function(eventName, fn, scope, options, order, caller, manager) { + var me = this, delegatedEvents, event, priority; + order = order || options.order; + if (order) { + priority = options && options.priority; + if (!priority) { + options = options ? Ext.Object.chain(options) : {}; + options.priority = me.$orderToPriority[order]; + } + } + if (options.target) { + Ext.raise("Cannot add '" + eventName + "' listener to component: '" + me.id + "' - 'delegate' and 'target' event options are incompatible."); + } + delegatedEvents = me.$delegatedEvents || (me.$delegatedEvents = {}); + event = delegatedEvents[eventName] || (delegatedEvents[eventName] = new Ext.util.Event(me, eventName)); + if (event.addListener(fn, scope, options, caller, manager)) { + me.$hasDelegatedListeners._incr_(eventName); + } +}, clearDelegatedListeners:function() { + var me = this, delegatedEvents = me.$delegatedEvents, eventName, event, listenerCount; + if (delegatedEvents) { + for (eventName in delegatedEvents) { + event = delegatedEvents[eventName]; + listenerCount = event.listeners.length; + event.clearListeners(); + me.$hasDelegatedListeners._decr_(eventName, listenerCount); + delete delegatedEvents[eventName]; + } + } +}, doFireDelegatedEvent:function(eventName, args) { + var me = this, ret = true, owner, delegatedEvents, event; + if (me.$hasDelegatedListeners[eventName]) { + owner = me.getRefOwner(); + while (owner) { + delegatedEvents = owner.$delegatedEvents; + if (delegatedEvents) { + event = delegatedEvents[eventName]; + if (event) { + ret = event.fireDelegated(me, args); + if (ret === false) { + break; + } + } + } + owner = owner.getRefOwner(); + } + } + return ret; +}, removeDelegatedListener:function(eventName, fn, scope) { + var me = this, delegatedEvents = me.$delegatedEvents, event; + if (delegatedEvents) { + event = delegatedEvents[eventName]; + if (event && event.removeListener(fn, scope)) { + me.$hasDelegatedListeners._decr_(eventName); + if (event.listeners.length === 0) { + delete delegatedEvents[eventName]; + } + } + } +}}, onClassMixedIn:function(T) { + function HasListeners() { + } + T.prototype.HasListeners = T.HasListeners = HasListeners; + HasListeners.prototype = T.hasListeners = new Ext.mixin.ComponentDelegation.HasDelegatedListeners; +}}, function(ComponentDelegation) { + function HasDelegatedListeners() { + } + ComponentDelegation.HasDelegatedListeners = HasDelegatedListeners; + HasDelegatedListeners.prototype = ComponentDelegation.prototype.$hasDelegatedListeners = new Ext.mixin.Observable.HasListeners; +}); +Ext.define('Ext.Widget', {extend:Ext.Evented, xtype:'widget', mixins:[Ext.mixin.Inheritable, Ext.mixin.Bindable, Ext.mixin.ComponentDelegation], isWidget:true, element:{reference:'element'}, observableType:'component', cachedConfig:{style:null}, config:{userCls:null}, eventedConfig:{width:null, height:null}, template:[], constructor:function(config) { + var me = this, controller; + me.initId(config); + me.initElement(); + me.mixins.observable.constructor.call(me, config); + Ext.ComponentManager.register(me); + controller = me.getController(); + if (controller) { + controller.init(me); + } +}, afterCachedConfig:function() { + var me = this, prototype = me.self.prototype, referenceList = me.referenceList, renderElement = me.renderElement, renderTemplate, element, i, ln, reference, elements; + prototype.renderTemplate = renderTemplate = document.createDocumentFragment(); + renderTemplate.appendChild(renderElement.clone(true, true)); + elements = renderTemplate.querySelectorAll('[id]'); + for (i = 0, ln = elements.length; i < ln; i++) { + element = elements[i]; + element.removeAttribute('id'); + } + for (i = 0, ln = referenceList.length; i < ln; i++) { + reference = referenceList[i]; + me[reference].dom.removeAttribute('reference'); + } +}, addCls:function(cls) { + this.el.addCls(cls); +}, applyWidth:function(width) { + return this.filterLengthValue(width); +}, applyHeight:function(height) { + return this.filterLengthValue(height); +}, clearListeners:function() { + var me = this; + me.mixins.observable.clearListeners.call(me); + me.mixins.componentDelegation.clearDelegatedListeners.call(me); +}, destroy:function() { + var me = this, referenceList = me.referenceList, i, ln, reference; + for (i = 0, ln = referenceList.length; i < ln; i++) { + reference = referenceList[i]; + if (me.hasOwnProperty(reference)) { + me[reference].destroy(); + me[reference] = null; + } + } + me.destroyBindable(); + me.callParent(); + Ext.ComponentManager.unregister(me); +}, doFireEvent:function(eventName, args, bubbles) { + var me = this, ret = me.mixins.observable.doFireEvent.call(me, eventName, args, bubbles); + if (ret !== false) { + ret = me.mixins.componentDelegation.doFireDelegatedEvent.call(me, eventName, args); + } + return ret; +}, getElementConfig:function() { + var me = this, el = me.element; + if (!('children' in el)) { + el = Ext.apply({children:me.getTemplate()}, el); + } + return el; +}, getSize:function() { + return {width:this.getWidth(), height:this.getHeight()}; +}, getTemplate:function() { + return this.template; +}, initElement:function() { + var me = this, prototype = me.self.prototype, id = me.getId(), referenceList = me.referenceList = me.referenceList = [], cleanAttributes = true, renderTemplate, renderElement, element, referenceNodes, i, ln, referenceNode, reference; + if (prototype.hasOwnProperty('renderTemplate')) { + renderTemplate = me.renderTemplate.cloneNode(true); + renderElement = renderTemplate.firstChild; + } else { + cleanAttributes = false; + renderTemplate = document.createDocumentFragment(); + renderElement = Ext.Element.create(me.processElementConfig.call(prototype), true); + renderTemplate.appendChild(renderElement); + } + referenceNodes = renderTemplate.querySelectorAll('[reference]'); + for (i = 0, ln = referenceNodes.length; i < ln; i++) { + referenceNode = referenceNodes[i]; + reference = referenceNode.getAttribute('reference'); + if (cleanAttributes) { + referenceNode.removeAttribute('reference'); + } + if (reference === 'element') { + if (element) { + Ext.raise("Duplicate 'element' reference detected in '" + me.$className + "' template."); + } + referenceNode.id = id; + element = me.el = me.addElementReference(reference, referenceNode); + element.dom.setAttribute('data-componentid', id); + } else { + me.addElementReferenceOnDemand(reference, referenceNode); + } + referenceList.push(reference); + } + if (!element) { + Ext.raise("No 'element' reference found in '" + me.$className + "' template."); + } + if (renderElement === element.dom) { + me.renderElement = element; + } else { + me.addElementReferenceOnDemand('renderElement', renderElement); + } +}, is:function(selector) { + return Ext.ComponentQuery.is(this, selector); +}, isXType:function(xtype, shallow) { + return shallow ? Ext.Array.indexOf(this.xtypes, xtype) !== -1 : !!this.xtypesMap[xtype]; +}, removeCls:function(cls) { + this.el.removeCls(cls); +}, toggleCls:function(cls, state) { + this.element.toggleCls(cls, state); +}, resolveListenerScope:function(defaultScope, skipThis) { + return this.mixins.inheritable.resolveListenerScope.call(this, defaultScope, skipThis); +}, setSize:function(width, height) { + if (width !== undefined) { + this.setWidth(width); + } + if (height !== undefined) { + this.setHeight(height); + } +}, applyStyle:function(style, oldStyle) { + if (oldStyle && style === oldStyle && Ext.isObject(oldStyle)) { + style = Ext.apply({}, style); + } + return style; +}, updateStyle:function(style) { + this.element.applyStyles(style); +}, updateWidth:function(width) { + this.element.setWidth(width); +}, updateHeight:function(height) { + this.element.setHeight(height); +}, onFocusEnter:Ext.emptyFn, onFocusLeave:Ext.emptyFn, isAncestor:function() { + return false; +}, privates:{addElementReferenceOnDemand:function(name, domNode) { + if (this._elementListeners[name]) { + this.addElementReference(name, domNode); + } else { + Ext.Object.defineProperty(this, name, {get:function() { + delete this[name]; + return this.addElementReference(name, domNode); + }, configurable:true}); + } +}, addElementReference:function(name, domNode) { + var me = this, referenceEl = me[name] = Ext.get(domNode), listeners = me._elementListeners[name], eventName, listener; + referenceEl.skipGarbageCollection = true; + referenceEl.component = me; + if (listeners) { + listeners = Ext.clone(listeners); + for (eventName in listeners) { + listener = listeners[eventName]; + if (typeof listener === 'object') { + listener.scope = me; + } + } + listeners.scope = me; + referenceEl.on(listeners); + } + return referenceEl; +}, detachFromBody:function() { + Ext.getDetachedBody().appendChild(this.element); + this.isDetached = true; +}, doAddListener:function(name, fn, scope, options, order, caller, manager) { + var me = this, delegate; + if (options && 'element' in options) { + if (me.referenceList.indexOf(options.element) === -1) { + Ext.Logger.error("Adding event listener with an invalid element reference of '" + options.element + "' for this component. Available values are: '" + me.referenceList.join("', '") + "'", me); + } + me[options.element].doAddListener(name, fn, scope || me, options, order); + } + if (options) { + delegate = options.delegate; + if (delegate) { + me.mixins.componentDelegation.addDelegatedListener.call(me, name, fn, scope, options, order, caller, manager); + return; + } + } + me.callParent([name, fn, scope, options, order, caller, manager]); +}, doRemoveListener:function(eventName, fn, scope) { + var me = this; + me.mixins.observable.doRemoveListener.call(me, eventName, fn, scope); + me.mixins.componentDelegation.removeDelegatedListener.call(me, eventName, fn, scope); +}, filterLengthValue:function(value) { + if (value === 'auto' || !value && value !== 0) { + return null; + } + return value; +}, getFocusEl:function() { + return this.element; +}, initElementListeners:function(elementConfig) { + var prototype = this, superPrototype = prototype.self.superclass, superElementListeners = superPrototype._elementListeners, reference = elementConfig.reference, children = elementConfig.children, elementListeners, listeners, superListeners, ln, i; + if (prototype.hasOwnProperty('_elementListeners')) { + elementListeners = prototype._elementListeners; + } else { + elementListeners = prototype._elementListeners = superElementListeners ? Ext.Object.chain(superElementListeners) : {}; + } + if (reference) { + listeners = elementConfig.listeners; + if (listeners) { + if (superElementListeners) { + superListeners = superElementListeners[reference]; + if (superListeners) { + listeners = Ext.Object.chain(superListeners); + Ext.apply(listeners, elementConfig.listeners); + } + } + elementListeners[reference] = listeners; + elementConfig.listeners = null; + } + } + if (children) { + for (i = 0, ln = children.length; i < ln; i++) { + prototype.initElementListeners(children[i]); + } + } +}, initId:function(config) { + var me = this, defaultConfig = me.config, id = config && config.id || defaultConfig && defaultConfig.id; + if (id) { + me.setId(id); + me.id = id; + } else { + me.getId(); + } +}, processElementConfig:function() { + var prototype = this, superPrototype = prototype.self.superclass, elementConfig; + if (prototype.hasOwnProperty('_elementConfig')) { + elementConfig = prototype._elementConfig; + } else { + elementConfig = prototype._elementConfig = prototype.getElementConfig(); + if (superPrototype.isWidget) { + prototype.processElementConfig.call(superPrototype); + } + prototype.initElementListeners(elementConfig); + } + return elementConfig; +}, reattachToBody:function() { + this.isDetached = false; +}, updateUserCls:function(newCls, oldCls) { + this.element.replaceCls(oldCls, newCls); +}}}, function(Widget) { + var prototype = Widget.prototype; + (prototype.$elementEventOptions = Ext.Object.chain(Ext.Element.prototype.$eventOptions)).element = 1; + (prototype.$eventOptions = Ext.Object.chain(prototype.$eventOptions)).delegate = 1; +}); +Ext.define('Ext.overrides.Widget', {override:'Ext.Widget', $configStrict:false, isComponent:true, liquidLayout:true, rendered:true, rendering:true, config:{renderTo:null}, cachedConfig:{baseCls:Ext.baseCSSPrefix + 'widget'}, constructor:function(config) { + var me = this, renderTo; + me.callParent([config]); + me.getComponentLayout(); + renderTo = me.getRenderTo(); + if (renderTo) { + me.render(renderTo); + } +}, addClsWithUI:function(cls) { + this.el.addCls(cls); +}, afterComponentLayout:Ext.emptyFn, updateLayout:function() { + var owner = this.getRefOwner(); + if (owner) { + owner.updateLayout(); + } +}, destroy:function() { + var me = this, ownerCt = me.ownerCt; + if (ownerCt && ownerCt.remove) { + ownerCt.remove(me, false); + } + me.callParent(); +}, finishRender:function() { + this.rendering = false; + this.initBindable(); +}, getAnimationProps:function() { + return {}; +}, getComponentLayout:function() { + var me = this, layout = me.componentLayout; + if (!layout) { + layout = me.componentLayout = new Ext.layout.component.Auto; + layout.setOwner(me); + } + return layout; +}, getEl:function() { + return this.element; +}, getTdCls:function() { + return Ext.baseCSSPrefix + this.getTdType() + '-' + (this.ui || 'default') + '-cell'; +}, getTdType:function() { + return this.xtype; +}, getItemId:function() { + return this.itemId || this.id; +}, getSizeModel:function() { + return Ext.Component.prototype.getSizeModel.apply(this, arguments); +}, onAdded:function(container, pos, instanced) { + var me = this, inheritedState = me.inheritedState; + me.ownerCt = container; + me.onInheritedAdd(me, instanced); +}, onRemoved:function(destroying) { + var me = this; + if (!destroying) { + me.removeBindings(); + } + me.onInheritedRemove(destroying); + me.ownerCt = me.ownerLayout = null; +}, parseBox:function(box) { + return Ext.Element.parseBox(box); +}, removeClsWithUI:function(cls) { + this.el.removeCls(cls); +}, render:function(container, position) { + var me = this, element = me.element, proto = Ext.Component.prototype, nextSibling; + if (!me.ownerCt || me.floating) { + if (Ext.scopeCss) { + element.addCls(proto.rootCls); + } + element.addCls(proto.borderBoxCls); + } + if (position) { + nextSibling = container.childNodes[position]; + if (nextSibling) { + Ext.fly(container).insertBefore(element, nextSibling); + return; + } + } + Ext.fly(container).appendChild(element); +}, setPosition:function(x, y) { + this.el.setLocalXY(x, y); +}, up:function() { + return Ext.Component.prototype.up.apply(this, arguments); +}, isAncestor:function() { + return Ext.Component.prototype.isAncestor.apply(this, arguments); +}, onFocusEnter:function() { + return Ext.Component.prototype.onFocusEnter.apply(this, arguments); +}, onFocusLeave:function() { + return Ext.Component.prototype.onFocusLeave.apply(this, arguments); +}, isLayoutChild:function(candidate) { + var ownerCt = this.ownerCt; + return ownerCt ? ownerCt === candidate || ownerCt.isLayoutChild(candidate) : false; +}}, function(Cls) { + var prototype = Cls.prototype; + if (Ext.isIE9m) { + prototype.addElementReferenceOnDemand = prototype.addElementReference; + } +}); +Ext.define('Ext.ProgressBase', {mixinId:'progressbase', config:{value:0, textTpl:null}, applyTextTpl:function(textTpl) { + if (!textTpl.isTemplate) { + textTpl = new Ext.XTemplate(textTpl); + } + return textTpl; +}, applyValue:function(value) { + return value || 0; +}}); +Ext.define('Ext.util.Format', function() { + var me; + return {singleton:true, defaultDateFormat:'m/d/Y', thousandSeparator:',', decimalSeparator:'.', currencyPrecision:2, currencySign:'$', percentSign:'%', currencyAtEnd:false, stripTagsRe:/<\/?[^>]+>/gi, stripScriptsRe:/(?:)((\n|\r|.)*?)(?:<\/script>)/ig, nl2brRe:/\r?\n/g, hashRe:/#+$/, allHashes:/^#+$/, formatPattern:/[\d,\.#]+/, formatCleanRe:/[^\d\.#]/g, I18NFormatCleanRe:null, formatFns:{}, constructor:function() { + me = this; + }, undef:function(value) { + return value !== undefined ? value : ''; + }, defaultValue:function(value, defaultValue) { + return value !== undefined && value !== '' ? value : defaultValue; + }, substr:'ab'.substr(-1) != 'b' ? function(value, start, length) { + var str = String(value); + return start < 0 ? str.substr(Math.max(str.length + start, 0), length) : str.substr(start, length); + } : function(value, start, length) { + return String(value).substr(start, length); + }, lowercase:function(value) { + return String(value).toLowerCase(); + }, uppercase:function(value) { + return String(value).toUpperCase(); + }, usMoney:function(v) { + return me.currency(v, '$', 2); + }, currency:function(v, currencySign, decimals, end) { + var negativeSign = '', format = ',0', i = 0; + v = v - 0; + if (v < 0) { + v = -v; + negativeSign = '-'; + } + decimals = Ext.isDefined(decimals) ? decimals : me.currencyPrecision; + format += decimals > 0 ? '.' : ''; + for (; i < decimals; i++) { + format += '0'; + } + v = me.number(v, format); + if ((end || me.currencyAtEnd) === true) { + return Ext.String.format('{0}{1}{2}', negativeSign, v, currencySign || me.currencySign); + } else { + return Ext.String.format('{0}{1}{2}', negativeSign, currencySign || me.currencySign, v); + } + }, date:function(v, format) { + if (!v) { + return ''; + } + if (!Ext.isDate(v)) { + v = new Date(Date.parse(v)); + } + return Ext.Date.dateFormat(v, format || Ext.Date.defaultFormat); + }, dateRenderer:function(format) { + return function(v) { + return me.date(v, format); + }; + }, hex:function(value, digits) { + var s = parseInt(value || 0, 10).toString(16); + if (digits) { + if (digits < 0) { + digits = -digits; + if (s.length > digits) { + s = s.substring(s.length - digits); + } + } + while (s.length < digits) { + s = '0' + s; + } + } + return s; + }, or:function(value, orValue) { + return value || orValue; + }, pick:function(value, firstValue, secondValue) { + if (Ext.isNumber(value)) { + var ret = arguments[value + 1]; + if (ret) { + return ret; + } + } + return value ? secondValue : firstValue; + }, stripTags:function(v) { + return !v ? v : String(v).replace(me.stripTagsRe, ''); + }, stripScripts:function(v) { + return !v ? v : String(v).replace(me.stripScriptsRe, ''); + }, fileSize:function() { + var byteLimit = 1024, kbLimit = 1048576, mbLimit = 1073741824; + return function(size) { + var out; + if (size < byteLimit) { + if (size === 1) { + out = '1 byte'; + } else { + out = size + ' bytes'; + } + } else { + if (size < kbLimit) { + out = Math.round(size * 10 / byteLimit) / 10 + ' KB'; + } else { + if (size < mbLimit) { + out = Math.round(size * 10 / kbLimit) / 10 + ' MB'; + } else { + out = Math.round(size * 10 / mbLimit) / 10 + ' GB'; + } + } + } + return out; + }; + }(), math:function() { + var fns = {}; + return function(v, a) { + if (!fns[a]) { + fns[a] = Ext.functionFactory('v', 'return v ' + a + ';'); + } + return fns[a](v); + }; + }(), round:function(value, precision) { + var result = Number(value); + if (typeof precision === 'number') { + precision = Math.pow(10, precision); + result = Math.round(value * precision) / precision; + } else { + if (precision === undefined) { + result = Math.round(result); + } + } + return result; + }, number:function(v, formatString) { + if (!formatString) { + return v; + } + if (isNaN(v)) { + return ''; + } + var formatFn = me.formatFns[formatString]; + if (!formatFn) { + var originalFormatString = formatString, comma = me.thousandSeparator, decimalSeparator = me.decimalSeparator, precision = 0, trimPart = '', hasComma, splitFormat, extraChars, trimTrailingZeroes, code, len; + if (formatString.substr(formatString.length - 2) === '/i') { + if (!me.I18NFormatCleanRe || me.lastDecimalSeparator !== decimalSeparator) { + me.I18NFormatCleanRe = new RegExp('[^\\d\\' + decimalSeparator + '#]', 'g'); + me.lastDecimalSeparator = decimalSeparator; + } + formatString = formatString.substr(0, formatString.length - 2); + hasComma = formatString.indexOf(comma) !== -1; + splitFormat = formatString.replace(me.I18NFormatCleanRe, '').split(decimalSeparator); + } else { + hasComma = formatString.indexOf(',') !== -1; + splitFormat = formatString.replace(me.formatCleanRe, '').split('.'); + } + extraChars = formatString.replace(me.formatPattern, ''); + if (splitFormat.length > 2) { + Ext.raise({sourceClass:'Ext.util.Format', sourceMethod:'number', value:v, formatString:formatString, msg:'Invalid number format, should have no more than 1 decimal'}); + } else { + if (splitFormat.length === 2) { + precision = splitFormat[1].length; + trimTrailingZeroes = splitFormat[1].match(me.hashRe); + if (trimTrailingZeroes) { + len = trimTrailingZeroes[0].length; + trimPart = 'trailingZeroes\x3dnew RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,' + len + '}$")'; + } + } + } + code = ['var utilFormat\x3dExt.util.Format,extNumber\x3dExt.Number,neg,absVal,fnum,parts' + (hasComma ? ',thousandSeparator,thousands\x3d[],j,n,i' : '') + (extraChars ? ',formatString\x3d"' + formatString + '",formatPattern\x3d/[\\d,\\.#]+/' : '') + ',trailingZeroes;' + 'return function(v){' + 'if(typeof v!\x3d\x3d"number"\x26\x26isNaN(v\x3dextNumber.from(v,NaN)))return"";' + 'neg\x3dv\x3c0;', 'absVal\x3dMath.abs(v);', 'fnum\x3dExt.Number.toFixed(absVal, ' + precision + ');', trimPart, ';']; + if (hasComma) { + if (precision) { + code[code.length] = 'parts\x3dfnum.split(".");'; + code[code.length] = 'fnum\x3dparts[0];'; + } + code[code.length] = 'if(absVal\x3e\x3d1000) {'; + code[code.length] = 'thousandSeparator\x3dutilFormat.thousandSeparator;' + 'thousands.length\x3d0;' + 'j\x3dfnum.length;' + 'n\x3dfnum.length%3||3;' + 'for(i\x3d0;i\x3cj;i+\x3dn){' + 'if(i!\x3d\x3d0){' + 'n\x3d3;' + '}' + 'thousands[thousands.length]\x3dfnum.substr(i,n);' + '}' + 'fnum\x3dthousands.join(thousandSeparator);' + '}'; + if (precision) { + code[code.length] = 'fnum +\x3d utilFormat.decimalSeparator+parts[1];'; + } + } else { + if (precision) { + code[code.length] = 'if(utilFormat.decimalSeparator!\x3d\x3d"."){' + 'parts\x3dfnum.split(".");' + 'fnum\x3dparts[0]+utilFormat.decimalSeparator+parts[1];' + '}'; + } + } + code[code.length] = 'if(neg\x26\x26fnum!\x3d\x3d"' + (precision ? '0.' + Ext.String.repeat('0', precision) : '0') + '") { fnum\x3d"-"+fnum; }'; + if (trimTrailingZeroes) { + code[code.length] = 'fnum\x3dfnum.replace(trailingZeroes,"");'; + } + code[code.length] = 'return '; + if (extraChars) { + code[code.length] = 'formatString.replace(formatPattern, fnum);'; + } else { + code[code.length] = 'fnum;'; + } + code[code.length] = '};'; + formatFn = me.formatFns[originalFormatString] = Ext.functionFactory('Ext', code.join(''))(Ext); + } + return formatFn(v); + }, numberRenderer:function(format) { + return function(v) { + return me.number(v, format); + }; + }, percent:function(value, formatString) { + return me.number(value * 100, formatString || '0') + me.percentSign; + }, attributes:function(attributes) { + if (typeof attributes === 'object') { + var result = [], name; + for (name in attributes) { + if (attributes.hasOwnProperty(name)) { + result.push(name, '\x3d"', name === 'style' ? Ext.DomHelper.generateStyles(attributes[name], null, true) : Ext.htmlEncode(attributes[name]), '" '); + } + } + attributes = result.join(''); + } + return attributes || ''; + }, plural:function(v, s, p) { + return v + ' ' + (v === 1 ? s : p ? p : s + 's'); + }, nl2br:function(v) { + return Ext.isEmpty(v) ? '' : v.replace(me.nl2brRe, '\x3cbr/\x3e'); + }, capitalize:Ext.String.capitalize, uncapitalize:Ext.String.uncapitalize, ellipsis:Ext.String.ellipsis, escape:Ext.String.escape, escapeRegex:Ext.String.escapeRegex, htmlDecode:Ext.String.htmlDecode, htmlEncode:Ext.String.htmlEncode, leftPad:Ext.String.leftPad, toggle:Ext.String.toggle, trim:Ext.String.trim, parseBox:function(box) { + box = box || 0; + if (typeof box === 'number') { + return {top:box, right:box, bottom:box, left:box}; + } + var parts = box.split(' '), ln = parts.length; + if (ln === 1) { + parts[1] = parts[2] = parts[3] = parts[0]; + } else { + if (ln === 2) { + parts[2] = parts[0]; + parts[3] = parts[1]; + } else { + if (ln === 3) { + parts[3] = parts[1]; + } + } + } + return {top:parseInt(parts[0], 10) || 0, right:parseInt(parts[1], 10) || 0, bottom:parseInt(parts[2], 10) || 0, left:parseInt(parts[3], 10) || 0}; + }}; +}); +Ext.define('Ext.Template', {inheritableStatics:{from:function(el, config) { + el = Ext.getDom(el); + return new this(el.value || el.innerHTML, config || ''); +}}, useEval:Ext.isGecko, constructor:function(html) { + var me = this, args = arguments, buffer = [], i, length = args.length, value; + me.initialConfig = {}; + if (length === 1 && Ext.isArray(html)) { + args = html; + length = args.length; + } + if (length > 1) { + for (i = 0; i < length; i++) { + value = args[i]; + if (typeof value === 'object') { + Ext.apply(me.initialConfig, value); + Ext.apply(me, value); + } else { + buffer.push(value); + } + } + } else { + buffer.push(html); + } + me.html = buffer.join(''); +}, isTemplate:true, disableFormats:false, tokenRe:/\{(?:(?:(\d+)|([a-z_][\w\-]*))(?::([a-z_\.]+)(?:\(([^\)]*?)?\))?)?)\}/gi, apply:function(values) { + var me = this; + if (me.compiled) { + if (!me.fn) { + me.compile(); + } + return me.fn(values).join(''); + } + return me.evaluate(values); +}, evaluate:function(values) { + var me = this, useFormat = !me.disableFormats, fm = Ext.util.Format, tpl = me; + function fn(match, index, name, formatFn, args) { + if (name == null || name === '') { + name = index; + } + if (formatFn && useFormat) { + if (args) { + args = [values[name]].concat(Ext.functionFactory('return [' + args + '];')()); + } else { + args = [values[name]]; + } + if (formatFn.substr(0, 5) === 'this.') { + return tpl[formatFn.substr(5)].apply(tpl, args); + } else { + if (fm[formatFn]) { + return fm[formatFn].apply(fm, args); + } else { + return match; + } + } + } else { + return values[name] !== undefined ? values[name] : ''; + } + } + return me.html.replace(me.tokenRe, fn); +}, applyOut:function(values, out) { + var me = this; + if (me.compiled) { + if (!me.fn) { + me.compile(); + } + out.push.apply(out, me.fn(values)); + } else { + out.push(me.apply(values)); + } + return out; +}, applyTemplate:function() { + return this.apply.apply(this, arguments); +}, set:function(html, compile) { + var me = this; + me.html = html; + me.compiled = !!compile; + me.fn = null; + return me; +}, compileARe:/\\/g, compileBRe:/(\r\n|\n)/g, compileCRe:/'/g, compile:function() { + var me = this, code; + code = me.html.replace(me.compileARe, '\\\\').replace(me.compileBRe, '\\n').replace(me.compileCRe, "\\'").replace(me.tokenRe, me.regexReplaceFn.bind(me)); + code = (this.disableFormats !== true ? 'var fm\x3dExt.util.Format;' : '') + (me.useEval ? '$\x3d' : 'return') + " function(v){return ['" + code + "'];};"; + me.fn = me.useEval ? me.evalCompiled(code) : (new Function('Ext', code))(Ext); + me.compiled = true; + return me; +}, evalCompiled:function($) { + eval($); + return $; +}, regexReplaceFn:function(match, index, name, formatFn, args) { + if (index == null || index === '') { + index = '"' + name + '"'; + } else { + if (this.stringFormat) { + index = parseInt(index) + 1; + } + } + if (formatFn && this.disableFormats !== true) { + args = args ? ',' + args : ''; + if (formatFn.substr(0, 5) === 'this.') { + formatFn = formatFn + '('; + } else { + if (Ext.util.Format[formatFn]) { + formatFn = 'fm.' + formatFn + '('; + } else { + return match; + } + } + return "'," + formatFn + 'v[' + index + ']' + args + "),'"; + } else { + return "',v[" + index + "] \x3d\x3d undefined ? '' : v[" + index + "],'"; + } +}, insertFirst:function(el, values, returnElement) { + return this.doInsert('afterBegin', el, values, returnElement); +}, insertBefore:function(el, values, returnElement) { + return this.doInsert('beforeBegin', el, values, returnElement); +}, insertAfter:function(el, values, returnElement) { + return this.doInsert('afterEnd', el, values, returnElement); +}, append:function(el, values, returnElement) { + return this.doInsert('beforeEnd', el, values, returnElement); +}, doInsert:function(where, el, values, returnElement) { + var newNode = Ext.DomHelper.insertHtml(where, Ext.getDom(el), this.apply(values)); + return returnElement ? Ext.get(newNode) : newNode; +}, overwrite:function(el, values, returnElement) { + var newNode = Ext.DomHelper.overwrite(Ext.getDom(el), this.apply(values)); + return returnElement ? Ext.get(newNode) : newNode; +}}, function(Template) { + var formatRe = /\{\d+\}/, generateFormatFn = function(format) { + if (formatRe.test(format)) { + format = new Template(format, formatTplConfig); + return function() { + return format.apply(arguments); + }; + } else { + return function() { + return format; + }; + } + }, formatTplConfig = {useFormat:false, compiled:true, stringFormat:true}, formatFns = {}; + Ext.String.format = Ext.util.Format.format = function(format) { + var formatFn = formatFns[format] || (formatFns[format] = generateFormatFn(format)); + return formatFn.apply(this, arguments); + }; + Ext.String.formatEncode = function() { + return Ext.String.htmlEncode(Ext.String.format.apply(this, arguments)); + }; +}); +Ext.define('Ext.util.XTemplateParser', {constructor:function(config) { + Ext.apply(this, config); +}, doTpl:Ext.emptyFn, parse:function(str) { + var me = this, len = str.length, aliases = {elseif:'elif'}, topRe = me.topRe, actionsRe = me.actionsRe, index, stack, s, m, t, prev, frame, subMatch, begin, end, actions, prop, expectTplNext; + me.level = 0; + me.stack = stack = []; + for (index = 0; index < len; index = end) { + topRe.lastIndex = index; + m = topRe.exec(str); + if (!m) { + me.doText(str.substring(index, len)); + break; + } + begin = m.index; + end = topRe.lastIndex; + if (index < begin) { + s = str.substring(index, begin); + if (!(expectTplNext && Ext.String.trim(s) === '')) { + me.doText(s); + } + } + expectTplNext = false; + if (m[1]) { + end = str.indexOf('%}', begin + 2); + me.doEval(str.substring(begin + 2, end)); + end += 2; + } else { + if (m[2]) { + end = str.indexOf(']}', begin + 2); + me.doExpr(str.substring(begin + 2, end)); + end += 2; + } else { + if (m[3]) { + me.doTag(m[3]); + } else { + if (m[4]) { + actions = null; + while ((subMatch = actionsRe.exec(m[4])) !== null) { + s = subMatch[2] || subMatch[3]; + if (s) { + s = Ext.String.htmlDecode(s); + t = subMatch[1]; + t = aliases[t] || t; + actions = actions || {}; + prev = actions[t]; + if (typeof prev == 'string') { + actions[t] = [prev, s]; + } else { + if (prev) { + actions[t].push(s); + } else { + actions[t] = s; + } + } + } + } + if (!actions) { + if (me.elseRe.test(m[4])) { + me.doElse(); + } else { + if (me.defaultRe.test(m[4])) { + me.doDefault(); + } else { + me.doTpl(); + stack.push({type:'tpl'}); + } + } + } else { + if (actions['if']) { + me.doIf(actions['if'], actions); + stack.push({type:'if'}); + } else { + if (actions['switch']) { + me.doSwitch(actions['switch'], actions); + stack.push({type:'switch'}); + expectTplNext = true; + } else { + if (actions['case']) { + me.doCase(actions['case'], actions); + } else { + if (actions['elif']) { + me.doElseIf(actions['elif'], actions); + } else { + if (actions['for']) { + ++me.level; + if (prop = me.propRe.exec(m[4])) { + actions.propName = prop[1] || prop[2]; + } + me.doFor(actions['for'], actions); + stack.push({type:'for', actions:actions}); + } else { + if (actions['foreach']) { + ++me.level; + if (prop = me.propRe.exec(m[4])) { + actions.propName = prop[1] || prop[2]; + } + me.doForEach(actions['foreach'], actions); + stack.push({type:'foreach', actions:actions}); + } else { + if (actions.exec) { + me.doExec(actions.exec, actions); + stack.push({type:'exec', actions:actions}); + } + } + } + } + } + } + } + } + } else { + if (m[0].length === 5) { + stack.push({type:'tpl'}); + } else { + frame = stack.pop(); + me.doEnd(frame.type, frame.actions); + if (frame.type == 'for' || frame.type == 'foreach') { + --me.level; + } + } + } + } + } + } + } +}, topRe:/(?:(\{\%)|(\{\[)|\{([^{}]+)\})|(?:]*)\>)|(?:<\/tpl>)/g, actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g, propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/, defaultRe:/^\s*default\s*$/, elseRe:/^\s*else\s*$/}); +Ext.define('Ext.util.XTemplateCompiler', {extend:Ext.util.XTemplateParser, useEval:Ext.isGecko, useIndex:Ext.isIE8m, useFormat:true, propNameRe:/^[\w\d\$]*$/, compile:function(tpl) { + var me = this, code = me.generate(tpl); + return me.useEval ? me.evalTpl(code) : (new Function('Ext', code))(Ext); +}, generate:function(tpl) { + var me = this, definitions = 'var fm\x3dExt.util.Format,ts\x3dObject.prototype.toString;', code; + me.maxLevel = 0; + me.body = ['var c0\x3dvalues, a0\x3d' + me.createArrayTest(0) + ', p0\x3dparent, n0\x3dxcount, i0\x3dxindex, k0, v;\n']; + if (me.definitions) { + if (typeof me.definitions === 'string') { + me.definitions = [me.definitions, definitions]; + } else { + me.definitions.push(definitions); + } + } else { + me.definitions = [definitions]; + } + me.switches = []; + me.parse(tpl); + me.definitions.push((me.useEval ? '$\x3d' : 'return') + ' function (' + me.fnArgs + ') {', me.body.join(''), '}'); + code = me.definitions.join('\n'); + me.definitions.length = me.body.length = me.switches.length = 0; + delete me.definitions; + delete me.body; + delete me.switches; + return code; +}, doText:function(text) { + var me = this, out = me.body; + text = text.replace(me.aposRe, "\\'").replace(me.newLineRe, '\\n'); + if (me.useIndex) { + out.push("out[out.length]\x3d'", text, "'\n"); + } else { + out.push("out.push('", text, "')\n"); + } +}, doExpr:function(expr) { + var out = this.body; + out.push('if ((v\x3d' + expr + ') !\x3d null) out'); + if (this.useIndex) { + out.push("[out.length]\x3dv+''\n"); + } else { + out.push(".push(v+'')\n"); + } +}, doTag:function(tag) { + var expr = this.parseTag(tag); + if (expr) { + this.doExpr(expr); + } else { + this.doText('{' + tag + '}'); + } +}, doElse:function() { + this.body.push('} else {\n'); +}, doEval:function(text) { + this.body.push(text, '\n'); +}, doIf:function(action, actions) { + var me = this; + if (action === '.') { + me.body.push('if (values) {\n'); + } else { + if (me.propNameRe.test(action)) { + me.body.push('if (', me.parseTag(action), ') {\n'); + } else { + me.body.push('if (', me.addFn(action), me.callFn, ') {\n'); + } + } + if (actions.exec) { + me.doExec(actions.exec); + } +}, doElseIf:function(action, actions) { + var me = this; + if (action === '.') { + me.body.push('else if (values) {\n'); + } else { + if (me.propNameRe.test(action)) { + me.body.push('} else if (', me.parseTag(action), ') {\n'); + } else { + me.body.push('} else if (', me.addFn(action), me.callFn, ') {\n'); + } + } + if (actions.exec) { + me.doExec(actions.exec); + } +}, doSwitch:function(action) { + var me = this, key; + if (action === '.' || action === '#') { + key = action === '.' ? 'values' : 'xindex'; + me.body.push('switch (', key, ') {\n'); + } else { + if (me.propNameRe.test(action)) { + me.body.push('switch (', me.parseTag(action), ') {\n'); + } else { + me.body.push('switch (', me.addFn(action), me.callFn, ') {\n'); + } + } + me.switches.push(0); +}, doCase:function(action) { + var me = this, cases = Ext.isArray(action) ? action : [action], n = me.switches.length - 1, match, i; + if (me.switches[n]) { + me.body.push('break;\n'); + } else { + me.switches[n]++; + } + for (i = 0, n = cases.length; i < n; ++i) { + match = me.intRe.exec(cases[i]); + cases[i] = match ? match[1] : "'" + cases[i].replace(me.aposRe, "\\'") + "'"; + } + me.body.push('case ', cases.join(': case '), ':\n'); +}, doDefault:function() { + var me = this, n = me.switches.length - 1; + if (me.switches[n]) { + me.body.push('break;\n'); + } else { + me.switches[n]++; + } + me.body.push('default:\n'); +}, doEnd:function(type, actions) { + var me = this, L = me.level - 1; + if (type == 'for' || type == 'foreach') { + if (actions.exec) { + me.doExec(actions.exec); + } + me.body.push('}\n'); + me.body.push('parent\x3dp', L, ';values\x3dr', L + 1, ';xcount\x3dn' + L + ';xindex\x3di', L, '+1;xkey\x3dk', L, ';\n'); + } else { + if (type == 'if' || type == 'switch') { + me.body.push('}\n'); + } + } +}, doFor:function(action, actions) { + var me = this, s, L = me.level, up = L - 1, parentAssignment; + if (action === '.') { + s = 'values'; + } else { + if (me.propNameRe.test(action)) { + s = me.parseTag(action); + } else { + s = me.addFn(action) + me.callFn; + } + } + if (me.maxLevel < L) { + me.maxLevel = L; + me.body.push('var '); + } + if (action == '.') { + parentAssignment = 'c' + L; + } else { + parentAssignment = 'a' + up + '?c' + up + '[i' + up + ']:c' + up; + } + me.body.push('i', L, '\x3d0,n', L, '\x3d0,c', L, '\x3d', s, ',a', L, '\x3d', me.createArrayTest(L), ',r', L, '\x3dvalues,p', L, ',k', L, ';\n', 'p', L, '\x3dparent\x3d', parentAssignment, '\n', 'if (c', L, '){if(a', L, '){n', L, '\x3dc', L, '.length;}else if (c', L, '.isMixedCollection){c', L, '\x3dc', L, '.items;n', L, '\x3dc', L, '.length;}else if(c', L, '.isStore){c', L, '\x3dc', L, '.data.items;n', L, '\x3dc', L, '.length;}else{c', L, '\x3d[c', L, '];n', L, '\x3d1;}}\n', 'for (xcount\x3dn', + L, ';i', L, '\x3cn' + L + ';++i', L, '){\n', 'values\x3dc', L, '[i', L, ']'); + if (actions.propName) { + me.body.push('.', actions.propName); + } + me.body.push('\n', 'xindex\x3di', L, '+1\n'); + if (actions.between) { + me.body.push('if(xindex\x3e1){ out.push("', actions.between, '"); } \n'); + } +}, doForEach:function(action, actions) { + var me = this, s, L = me.level, up = L - 1, parentAssignment; + if (action === '.') { + s = 'values'; + } else { + if (me.propNameRe.test(action)) { + s = me.parseTag(action); + } else { + s = me.addFn(action) + me.callFn; + } + } + if (me.maxLevel < L) { + me.maxLevel = L; + me.body.push('var '); + } + if (action == '.') { + parentAssignment = 'c' + L; + } else { + parentAssignment = 'a' + up + '?c' + up + '[i' + up + ']:c' + up; + } + me.body.push('i', L, '\x3d-1,n', L, '\x3d0,c', L, '\x3d', s, ',a', L, '\x3d', me.createArrayTest(L), ',r', L, '\x3dvalues,p', L, ',k', L, ';\n', 'p', L, '\x3dparent\x3d', parentAssignment, '\n', 'for(k', L, ' in c', L, '){\n', 'xindex\x3d++i', L, '+1;\n', 'xkey\x3dk', L, ';\n', 'values\x3dc', L, '[k', L, '];'); + if (actions.propName) { + me.body.push('.', actions.propName); + } + if (actions.between) { + me.body.push('if(xindex\x3e1){ out.push("', actions.between, '"); } \n'); + } +}, createArrayTest:'isArray' in Array ? function(L) { + return 'Array.isArray(c' + L + ')'; +} : function(L) { + return 'ts.call(c' + L + ')\x3d\x3d\x3d"[object Array]"'; +}, doExec:function(action, actions) { + var me = this, name = 'f' + me.definitions.length, guards = me.guards[me.strict ? 0 : 1]; + me.definitions.push('function ' + name + '(' + me.fnArgs + ') {', guards.doTry, ' var $v \x3d values; with($v) {', ' ' + action, ' }', guards.doCatch, '}'); + me.body.push(name + me.callFn + '\n'); +}, guards:[{doTry:'', doCatch:''}, {doTry:'try { ', doCatch:' } catch(e) {\n' + 'Ext.log.warn("XTemplate evaluation exception: " + e.message);\n' + '}'}], addFn:function(body) { + var me = this, name = 'f' + me.definitions.length, guards = me.guards[me.strict ? 0 : 1]; + if (body === '.') { + me.definitions.push('function ' + name + '(' + me.fnArgs + ') {', ' return values', '}'); + } else { + if (body === '..') { + me.definitions.push('function ' + name + '(' + me.fnArgs + ') {', ' return parent', '}'); + } else { + me.definitions.push('function ' + name + '(' + me.fnArgs + ') {', guards.doTry, ' var $v \x3d values; with($v) {', ' return(' + body + ')', ' }', guards.doCatch, '}'); + } + } + return name; +}, parseTag:function(tag) { + var me = this, m = me.tagRe.exec(tag), name, format, args, math, v; + if (!m) { + return null; + } + name = m[1]; + format = m[2]; + args = m[3]; + math = m[4]; + if (name == '.') { + if (!me.validTypes) { + me.definitions.push('var validTypes\x3d{string:1,number:1,boolean:1};'); + me.validTypes = true; + } + v = 'validTypes[typeof values] || ts.call(values) \x3d\x3d\x3d "[object Date]" ? values : ""'; + } else { + if (name == '#') { + v = 'xindex'; + } else { + if (name == '$') { + v = 'xkey'; + } else { + if (name.substr(0, 7) == 'parent.') { + v = name; + } else { + if (isNaN(name) && name.indexOf('-') == -1 && name.indexOf('.') != -1) { + v = 'values.' + name; + } else { + v = "values['" + name + "']"; + } + } + } + } + } + if (math) { + v = '(' + v + math + ')'; + } + if (format && me.useFormat) { + args = args ? ',' + args : ''; + if (format.substr(0, 5) != 'this.') { + format = 'fm.' + format + '('; + } else { + format += '('; + } + } else { + return v; + } + return format + v + args + ')'; +}, evalTpl:function($) { + eval($); + return $; +}, newLineRe:/\r\n|\r|\n/g, aposRe:/[']/g, intRe:/^\s*(\d+)\s*$/, tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/}, function() { + var proto = this.prototype; + proto.fnArgs = 'out,values,parent,xindex,xcount,xkey'; + proto.callFn = '.call(this,' + proto.fnArgs + ')'; +}); +Ext.define('Ext.XTemplate', {extend:Ext.Template, isXTemplate:true, emptyObj:{}, fn:null, strict:false, apply:function(values, parent, xindex, xcount) { + return this.applyOut(values, [], parent, xindex, xcount).join(''); +}, applyOut:function(values, out, parent, xindex, xcount) { + var me = this, compiler; + if (!me.fn) { + compiler = new Ext.util.XTemplateCompiler({useFormat:me.disableFormats !== true, definitions:me.definitions, strict:me.strict}); + me.fn = compiler.compile(me.html); + } + xindex = xindex || 1; + xcount = xcount || 1; + if (me.strict) { + me.fn(out, values, parent || me.emptyObj, xindex, xcount); + } else { + try { + me.fn(out, values, parent || me.emptyObj, xindex, xcount); + } catch (e$20) { + Ext.log.warn('XTemplate evaluation exception: ' + e$20.message); + } + } + return out; +}, compile:function() { + return this; +}, statics:{getTpl:function(instance, name) { + var tpl = instance[name], owner; + if (tpl && !tpl.isTemplate) { + tpl = Ext.ClassManager.dynInstantiate('Ext.XTemplate', tpl); + if (instance.hasOwnProperty(name)) { + owner = instance; + } else { + for (owner = instance.self.prototype; owner && !owner.hasOwnProperty(name); owner = owner.superclass) { + } + } + owner[name] = tpl; + tpl.owner = owner; + } + return tpl || null; +}}}); +Ext.define('Ext.app.EventDomain', {statics:{instances:{}}, isEventDomain:true, isInstance:false, constructor:function() { + var me = this; + if (!me.isInstance) { + Ext.app.EventDomain.instances[me.type] = me; + } + me.bus = {}; + me.monitoredClasses = []; +}, dispatch:function(target, ev, args) { + ev = Ext.canonicalEventName(ev); + var me = this, bus = me.bus, selectors = bus[ev], selector, controllers, id, info, events, len, i, event; + if (!selectors) { + return true; + } + for (selector in selectors) { + if (selectors.hasOwnProperty(selector) && me.match(target, selector, me.controller)) { + controllers = selectors[selector]; + for (id in controllers) { + if (controllers.hasOwnProperty(id)) { + info = controllers[id]; + if (info.controller.isActive()) { + events = info.list; + len = events.length; + for (i = 0; i < len; i++) { + event = events[i]; + if (event.fire.apply(event, args) === false) { + return false; + } + } + } + } + } + } + } + return true; +}, listen:function(selectors, controller) { + var me = this, bus = me.bus, idProperty = me.idProperty, monitoredClasses = me.monitoredClasses, monitoredClassesCount = monitoredClasses.length, controllerId = controller.getId(), isComponentDomain = me.type === 'component', refMap = isComponentDomain ? controller.getRefMap() : null, i, tree, info, selector, options, listener, scope, event, listeners, ev, classHasListeners; + for (selector in selectors) { + listeners = selectors[selector]; + if (isComponentDomain) { + selector = refMap[selector] || selector; + } + if (listeners) { + if (idProperty) { + if (!/^[*#]/.test(selector)) { + Ext.raise('Selectors containing id should begin with #'); + } + selector = selector === '*' ? selector : selector.substring(1); + } + for (ev in listeners) { + options = null; + listener = listeners[ev]; + scope = controller; + ev = Ext.canonicalEventName(ev); + event = new Ext.util.Event(controller, ev); + if (Ext.isObject(listener)) { + options = listener; + listener = options.fn; + scope = options.scope || controller; + delete options.fn; + delete options.scope; + } + if ((!options || !options.scope) && typeof listener === 'string') { + if (!scope[listener]) { + Ext.raise('Cannot resolve "' + listener + '" on controller.'); + } + scope = null; + } else { + if (typeof listener === 'string') { + listener = scope[listener]; + } + } + event.addListener(listener, scope, options); + for (i = 0; i < monitoredClassesCount; ++i) { + classHasListeners = monitoredClasses[i].hasListeners; + if (classHasListeners) { + classHasListeners._incr_(ev); + } + } + tree = bus[ev] || (bus[ev] = {}); + tree = tree[selector] || (tree[selector] = {}); + info = tree[controllerId] || (tree[controllerId] = {controller:controller, list:[]}); + info.list.push(event); + } + } + } +}, match:function(target, selector) { + var idProperty = this.idProperty; + if (idProperty) { + return selector === '*' || target[idProperty] === selector; + } + return false; +}, monitor:function(observable) { + var domain = this, prototype = observable.isInstance ? observable : observable.prototype, doFireEvent = prototype.doFireEvent; + domain.monitoredClasses.push(observable); + prototype.doFireEvent = function(ev, args) { + var ret = doFireEvent.apply(this, arguments); + if (ret !== false && !this.isSuspended(ev)) { + ret = domain.dispatch(this, ev, args); + } + return ret; + }; +}, unlisten:function(controllerId) { + var bus = this.bus, id = controllerId, monitoredClasses = this.monitoredClasses, monitoredClassesCount = monitoredClasses.length, controllers, ev, events, len, item, selector, selectors, i, j, info, classHasListeners; + if (controllerId.isController) { + id = controllerId.getId(); + } + for (ev in bus) { + ev = Ext.canonicalEventName(ev); + if (bus.hasOwnProperty(ev) && (selectors = bus[ev])) { + for (selector in selectors) { + controllers = selectors[selector]; + info = controllers[id]; + if (info) { + events = info.list; + if (events) { + for (i = 0, len = events.length; i < len; ++i) { + item = events[i]; + item.clearListeners(); + for (j = 0; j < monitoredClassesCount; ++j) { + classHasListeners = monitoredClasses[j].hasListeners; + if (classHasListeners) { + classHasListeners._decr_(item.name); + } + } + } + delete controllers[id]; + } + } + } + } + } +}, destroy:function() { + this.monitoredClasses = this.bus = null; + this.callParent(); +}}); +Ext.define('Ext.app.domain.Component', {extend:Ext.app.EventDomain, singleton:true, type:'component', constructor:function() { + this.callParent(); + this.monitor(Ext.Widget); +}, dispatch:function(target, ev, args) { + var controller = target.lookupController(false), domain, view; + while (controller) { + domain = controller.compDomain; + if (domain) { + if (domain.dispatch(target, ev, args) === false) { + return false; + } + } + view = controller.getView(); + controller = view ? view.lookupController(true) : null; + } + return this.callParent(arguments); +}, match:function(target, selector) { + return target.is(selector); +}}); +Ext.define('Ext.util.ProtoElement', function() { + var splitWords = Ext.String.splitWords, toMap = Ext.Array.toMap; + return {isProtoEl:true, clsProp:'cls', styleProp:'style', removedProp:'removed', styleIsText:false, constructor:function(config) { + var me = this, cls, style; + if (config) { + Ext.apply(me, config); + cls = me.cls; + style = me.style; + delete me.cls; + } + me.classList = cls ? splitWords(cls) : []; + me.classMap = cls ? toMap(me.classList) : {}; + if (style) { + if (typeof style === 'string') { + me.style = Ext.Element.parseStyles(style); + } else { + if (Ext.isFunction(style)) { + me.styleFn = style; + delete me.style; + } else { + me.style = Ext.apply({}, style); + } + } + } + }, flush:function() { + this.flushClassList = []; + this.removedClasses = {}; + delete this.style; + delete this.unselectableAttr; + }, addCls:function(cls) { + if (!cls) { + return this; + } + var me = this, add = typeof cls === 'string' ? splitWords(cls) : cls, length = add.length, list = me.classList, map = me.classMap, flushList = me.flushClassList, i = 0, c; + for (; i < length; ++i) { + c = add[i]; + if (!map[c]) { + map[c] = true; + list.push(c); + if (flushList) { + flushList.push(c); + delete me.removedClasses[c]; + } + } + } + return me; + }, hasCls:function(cls) { + return cls in this.classMap; + }, removeCls:function(cls) { + var me = this, list = me.classList, newList = me.classList = [], remove = toMap(splitWords(cls)), length = list.length, map = me.classMap, removedClasses = me.removedClasses, i, c; + for (i = 0; i < length; ++i) { + c = list[i]; + if (remove[c]) { + if (removedClasses) { + if (map[c]) { + removedClasses[c] = true; + Ext.Array.remove(me.flushClassList, c); + } + } + delete map[c]; + } else { + newList.push(c); + } + } + return me; + }, setStyle:function(prop, value) { + var me = this, style = me.style || (me.style = {}); + if (typeof prop === 'string') { + if (arguments.length === 1) { + me.setStyle(Ext.Element.parseStyles(prop)); + } else { + style[prop] = value; + } + } else { + Ext.apply(style, prop); + } + return me; + }, unselectable:function() { + this.addCls(Ext.dom.Element.unselectableCls); + if (Ext.isOpera) { + this.unselectableAttr = true; + } + }, writeTo:function(to) { + var me = this, classList = me.flushClassList || me.classList, removedClasses = me.removedClasses, style; + if (me.styleFn) { + style = Ext.apply({}, me.styleFn()); + Ext.apply(style, me.style); + } else { + style = me.style; + } + to[me.clsProp] = classList.join(' '); + if (style) { + to[me.styleProp] = me.styleIsText ? Ext.DomHelper.generateStyles(style, null, true) : style; + } + if (removedClasses) { + removedClasses = Ext.Object.getKeys(removedClasses); + if (removedClasses.length) { + to[me.removedProp] = removedClasses.join(' '); + } + } + if (me.unselectableAttr) { + to.unselectable = 'on'; + } + return to; + }}; +}); +Ext.define('Ext.dom.CompositeElement', {alternateClassName:'Ext.CompositeElement', extend:Ext.dom.CompositeElementLite, isLite:false, getElement:function(el) { + return el; +}, transformElement:function(el) { + return Ext.get(el); +}}); +Ext.define('Ext.scroll.Scroller', {extend:Ext.Evented, alias:'scroller.scroller', mixins:[Ext.mixin.Factoryable], factoryConfig:{defaultType:'dom'}, isScroller:true, _spacerCls:Ext.baseCSSPrefix + 'domscroller-spacer', config:{direction:undefined, directionLock:false, disabled:null, element:undefined, indicators:null, maxPosition:{x:0, y:0}, maxUserPosition:{x:0, y:0}, minPosition:{x:0, y:0}, minUserPosition:{x:0, y:0}, momentumEasing:null, size:null, slotSnapSize:{x:0, y:0}, x:true, y:true, spacerXY:null}, +statics:{create:function(config) { + return Ext.Factory.scroller(config, Ext.supports.Touch ? 'touch' : 'dom'); +}}, constructor:function(config) { + var me = this; + me.position = {x:0, y:0}; + me.callParent([config]); + me.onDomScrollEnd = Ext.Function.createBuffered(me.onDomScrollEnd, 100, me); +}, destroy:function() { + var me = this; + me.setX(Ext.emptyString); + me.setY(Ext.emptyString); + me.setElement(null); + me.onDomScrollEnd = me._partners = me.component = null; + me.callParent(); +}, addPartner:function(partner, axis) { + var me = this, partners = me._partners || (me._partners = {}), otherPartners = partner._partners || (partner._partners = {}); + partners[partner.getId()] = {scroller:partner, axis:axis}; + otherPartners[me.getId()] = {scroller:me, axis:axis}; +}, applyElement:function(element, oldElement) { + var me = this, el, eventSource; + if (oldElement) { + me.scrollListener.destroy(); + } + if (element) { + if (element.isElement) { + el = element; + } else { + el = Ext.get(element); + if (!el && typeof element === 'string') { + Ext.raise('Cannot create Ext.scroll.Scroller instance. ' + "Element with id '" + element + "' not found."); + } + } + if (el.dom === document.body) { + el = Ext.get(document.scrollingElement || (Ext.isWebKit ? document.body : document.documentElement)); + eventSource = Ext.get(Ext.isIE9m ? window : document); + } else { + eventSource = el; + } + me.scrollListener = eventSource.on({scroll:me.onDomScroll, scope:me, destroyable:true}); + return el; + } +}, getClientSize:function() { + var dom = this.getElement().dom; + return {x:dom.clientWidth, y:dom.clientHeight}; +}, getScrollbarSize:function() { + var me = this, width = 0, height = 0, element, dom, x, y, hasXScroll, hasYScroll, scrollbarSize; + if (me.isDomScroller || Ext.supports.touchScroll === 1) { + element = me.getElement(); + if (element && !element.destroyed) { + x = me.getX(); + y = me.getY(); + dom = element.dom; + if (x || y) { + scrollbarSize = Ext.getScrollbarSize(); + } + if (x === 'scroll') { + hasXScroll = true; + } else { + if (x) { + hasXScroll = dom.scrollWidth > dom.clientWidth; + } + } + if (y === 'scroll') { + hasYScroll = true; + } else { + if (y) { + hasYScroll = dom.scrollHeight > dom.clientHeight; + } + } + if (hasXScroll) { + height = scrollbarSize.height; + } + if (hasYScroll) { + width = scrollbarSize.width; + } + } + } + return {width:width, height:height}; +}, getPosition:function() { + return this.position; +}, updateDirectionLock:Ext.emptyFn, updateDisabled:Ext.emptyFn, updateIndicators:Ext.emptyFn, updateMaxPosition:Ext.emptyFn, updateMaxUserPosition:Ext.emptyFn, updateMinPosition:Ext.emptyFn, updateMinUserPosition:Ext.emptyFn, updateMomenumEasing:Ext.emptyFn, updateX:Ext.emptyFn, updateY:Ext.emptyFn, onPartnerScrollStart:Ext.emptyFn, onPartnerScrollEnd:Ext.emptyFn, refresh:function() { + this.fireEvent('refresh', this); + return this; +}, removePartner:function(partner) { + var partners = this._partners, otherPartners = partner._partners; + if (partners) { + delete partners[partner.getId()]; + } + if (otherPartners) { + delete otherPartners[this.getId()]; + } +}, scrollBy:function(deltaX, deltaY, animate) { + var position = this.getPosition(); + if (deltaX) { + if (deltaX.length) { + animate = deltaY; + deltaY = deltaX[1]; + deltaX = deltaX[0]; + } else { + if (typeof deltaX !== 'number') { + animate = deltaY; + deltaY = deltaX.y; + deltaX = deltaX.x; + } + } + } + deltaX = typeof deltaX === 'number' ? deltaX + position.x : null; + deltaY = typeof deltaY === 'number' ? deltaY + position.y : null; + return this.doScrollTo(deltaX, deltaY, animate); +}, scrollIntoView:function(el, hscroll, animate, highlight) { + var me = this, position = me.getPosition(), newPosition, newX, newY, myEl = me.getElement(); + if (el) { + newPosition = Ext.fly(el).getScrollIntoViewXY(myEl, position.x, position.y); + newX = hscroll === false ? position.x : newPosition.x; + newY = newPosition.y; + if (highlight) { + me.on({scrollend:'doHighlight', scope:me, single:true, args:[el, highlight]}); + } + me.doScrollTo(newX, newY, animate); + } +}, isInView:function(el) { + var me = this, result = {x:false, y:false}, elRegion, myEl = me.getElement(), myElRegion; + if (el && myEl.contains(el)) { + myElRegion = myEl.getRegion(); + elRegion = Ext.fly(el).getRegion(); + result.x = elRegion.right > myElRegion.left && elRegion.left < myElRegion.right; + result.y = elRegion.bottom > myElRegion.top && elRegion.top < myElRegion.bottom; + } + return result; +}, scrollTo:function(x, y, animate) { + var maxPosition; + if (x) { + if (x.length) { + animate = y; + y = x[1]; + x = x[0]; + } else { + if (typeof x !== 'number') { + animate = y; + y = x.y; + x = x.x; + } + } + } + if (x < 0 || y < 0) { + maxPosition = this.getMaxPosition(); + if (x < 0) { + x += maxPosition.x; + } + if (y < 0) { + y += maxPosition.y; + } + } + this.doScrollTo(x, y, animate); +}, updateDirection:function(direction) { + var me = this, x, y; + if (!direction) { + x = me.getX(); + y = me.getY(); + if (x && y) { + direction = y === 'scroll' && x === 'scroll' ? 'both' : 'auto'; + } else { + if (y) { + direction = 'vertical'; + } else { + if (x) { + direction = 'horizontal'; + } + } + } + me._direction = direction; + } else { + if (direction === 'auto') { + x = true; + y = true; + } else { + if (direction === 'vertical') { + x = false; + y = true; + } else { + if (direction === 'horizontal') { + x = true; + y = false; + } else { + if (direction === 'both') { + x = 'scroll'; + y = 'scroll'; + } + } + } + } + me.setX(x); + me.setY(y); + } +}, updateSize:function(size) { + var me = this, element = me.getElement(), spacer, x, y; + if (element) { + spacer = me.getSpacer(); + if (size == null) { + spacer.hide(); + } else { + if (typeof size === 'number') { + x = size; + y = size; + } else { + x = size.x || 0; + y = size.y || 0; + } + if (x > 0) { + x -= 1; + } + if (y > 0) { + y -= 1; + } + me.setSpacerXY({x:x, y:y}); + spacer.show(); + } + } +}, deprecated:{5:{methods:{getScroller:function() { + return this; +}}}, '5.1.0':{methods:{scrollToTop:function(animate) { + return this.scrollTo(0, 0, animate); +}, scrollToEnd:function(animate) { + return this.scrollTo(Infinity, Infinity, animate); +}}}}, privates:{getSpacer:function() { + var me = this, spacer = me._spacer, element; + if (!spacer) { + element = me.getElement(); + spacer = me._spacer = element.createChild({cls:me._spacerCls, role:'presentation'}); + spacer.setVisibilityMode(2); + element.position(); + } + return spacer; +}, applySpacerXY:function(pos, oldPos) { + if (oldPos && pos.x === oldPos.x && pos.y === oldPos.y) { + pos = undefined; + } + return pos; +}, updateSpacerXY:function(pos) { + this.getSpacer().setLocalXY(pos.x, pos.y); +}, convertX:function(x) { + return x; +}, doHighlight:function(el, highlight) { + if (highlight !== true) { + Ext.fly(el).highlight(highlight); + } else { + Ext.fly(el).highlight(); + } +}, fireScrollStart:function(x, y) { + var me = this, component = me.component; + me.invokePartners('onPartnerScrollStart', x, y); + if (me.hasListeners.scrollstart) { + me.fireEvent('scrollstart', me, x, y); + } + if (component && component.onScrollStart) { + component.onScrollStart(x, y); + } + Ext.GlobalEvents.fireEvent('scrollstart', me, x, y); +}, fireScroll:function(x, y) { + var me = this, component = me.component; + me.invokePartners('onPartnerScroll', x, y); + if (me.hasListeners.scroll) { + me.fireEvent('scroll', me, x, y); + } + if (component && component.onScrollMove) { + component.onScrollMove(x, y); + } + Ext.GlobalEvents.fireEvent('scroll', me, x, y); +}, fireScrollEnd:function(x, y) { + var me = this, component = me.component; + me.invokePartners('onPartnerScrollEnd', x, y); + if (me.hasListeners.scrollend) { + me.fireEvent('scrollend', me, x, y); + } + if (component && component.onScrollEnd) { + component.onScrollEnd(x, y); + } + Ext.GlobalEvents.fireEvent('scrollend', me, x, y); +}, initXStyle:function() { + var element = this.getElement(), x = this.getX(); + if (element && element.dom) { + if (!x) { + x = 'hidden'; + } else { + if (x === true) { + x = 'auto'; + } + } + element.setStyle('overflow-x', x); + } +}, initYStyle:function() { + var element = this.getElement(), y = this.getY(); + if (element && element.dom) { + if (!y) { + y = 'hidden'; + } else { + if (y === true) { + y = 'auto'; + } + } + element.setStyle('overflow-y', y); + } +}, invokePartners:function(method, x, y) { + var me = this, partners = me._partners, partner, id, isEnd = method === 'onPartnerScrollEnd'; + if (!me.suspendSync & !me.isReflecting) { + for (id in partners) { + partner = partners[id].scroller; + partner.isReflecting = true; + partner[method](me, x, y); + if (isEnd) { + partner.isReflecting = false; + } + } + } +}, clearReflecting:function() { + this.isReflecting = false; +}, suspendPartnerSync:function() { + this.suspendSync = (this.suspendSync || 0) + 1; +}, resumePartnerSync:function() { + if (this.suspendSync) { + this.suspendSync--; + } +}, updateDomScrollPosition:function() { + var me = this, element = me.getElement(), elScroll, position = me.position; + if (element && !element.destroyed) { + elScroll = me.getElementScroll(element); + position.x = elScroll.left; + position.y = elScroll.top; + } + me.positionDirty = false; + return position; +}, getElementScroll:function(element) { + return element.getScroll(); +}, onDomScroll:function() { + var me = this, position, x, y, el; + if (me.isTouchScroller && Ext.supports.touchScroll === 2) { + el = me.getElement().dom; + el.scrollTop = el.scrollLeft = 0; + return; + } + position = me.updateDomScrollPosition(); + x = position.x; + y = position.y; + if (!me.isScrolling) { + me.isScrolling = Ext.isScrolling = true; + me.fireScrollStart(x, y); + } + me.fireScroll(x, y); + me.onDomScrollEnd(); +}, onDomScrollEnd:function() { + var me = this, position = me.getPosition(), x = position.x, y = position.y; + me.isScrolling = Ext.isScrolling = false; + me.trackingScrollLeft = x; + me.trackingScrollTop = y; + me.fireScrollEnd(x, y); +}, onPartnerScroll:function(partner, x, y) { + var axis = partner._partners[this.getId()].axis; + if (axis) { + if (axis === 'x') { + y = null; + } else { + if (axis === 'y') { + x = null; + } + } + } + this.doScrollTo(x, y, false, true); +}, restoreState:function() { + var me = this, el = me.getElement(), dom; + if (el) { + dom = el.dom; + if (me.trackingScrollTop !== undefined) { + dom.scrollTop = me.trackingScrollTop; + dom.scrollLeft = me.trackingScrollLeft; + } + } +}}}); +Ext.define('Ext.fx.easing.Abstract', {config:{startTime:0, startValue:0}, isEasing:true, isEnded:false, constructor:function(config) { + this.initConfig(config); + return this; +}, applyStartTime:function(startTime) { + if (!startTime) { + startTime = Ext.Date.now(); + } + return startTime; +}, updateStartTime:function(startTime) { + this.reset(); +}, reset:function() { + this.isEnded = false; +}, getValue:Ext.emptyFn}); +Ext.define('Ext.fx.easing.Momentum', {extend:Ext.fx.easing.Abstract, config:{acceleration:30, friction:0, startVelocity:0}, alpha:0, updateFriction:function(friction) { + var theta = Math.log(1 - friction / 10); + this.theta = theta; + this.alpha = theta / this.getAcceleration(); +}, updateStartVelocity:function(velocity) { + this.velocity = velocity * this.getAcceleration(); +}, updateAcceleration:function(acceleration) { + this.velocity = this.getStartVelocity() * acceleration; + this.alpha = this.theta / acceleration; +}, getValue:function() { + return this.getStartValue() - this.velocity * (1 - this.getFrictionFactor()) / this.theta; +}, getFrictionFactor:function() { + var deltaTime = Ext.Date.now() - this.getStartTime(); + return Math.exp(deltaTime * this.alpha); +}, getVelocity:function() { + return this.getFrictionFactor() * this.velocity; +}}); +Ext.define('Ext.fx.easing.Bounce', {extend:Ext.fx.easing.Abstract, config:{springTension:0.3, acceleration:30, startVelocity:0}, getValue:function() { + var deltaTime = Ext.Date.now() - this.getStartTime(), theta = deltaTime / this.getAcceleration(), powTime = theta * Math.pow(Math.E, -this.getSpringTension() * theta); + return this.getStartValue() + this.getStartVelocity() * powTime; +}}); +Ext.define('Ext.fx.easing.BoundMomentum', {extend:Ext.fx.easing.Abstract, config:{momentum:null, bounce:null, minMomentumValue:0, maxMomentumValue:0, minVelocity:0.01, startVelocity:0}, applyMomentum:function(config, currentEasing) { + return Ext.factory(config, Ext.fx.easing.Momentum, currentEasing); +}, applyBounce:function(config, currentEasing) { + return Ext.factory(config, Ext.fx.easing.Bounce, currentEasing); +}, updateStartTime:function(startTime) { + this.getMomentum().setStartTime(startTime); + this.callParent(arguments); +}, updateStartVelocity:function(startVelocity) { + this.getMomentum().setStartVelocity(startVelocity); +}, updateStartValue:function(startValue) { + this.getMomentum().setStartValue(startValue); +}, reset:function() { + this.lastValue = null; + this.isBouncingBack = false; + this.isOutOfBound = false; + return this.callParent(arguments); +}, getValue:function() { + var momentum = this.getMomentum(), bounce = this.getBounce(), startVelocity = momentum.getStartVelocity(), direction = startVelocity > 0 ? 1 : -1, minValue = this.getMinMomentumValue(), maxValue = this.getMaxMomentumValue(), boundedValue = direction == 1 ? maxValue : minValue, lastValue = this.lastValue, value, velocity; + if (startVelocity === 0) { + return this.getStartValue(); + } + if (!this.isOutOfBound) { + value = momentum.getValue(); + velocity = momentum.getVelocity(); + if (Math.abs(velocity) < this.getMinVelocity()) { + this.isEnded = true; + } + if (value >= minValue && value <= maxValue) { + return value; + } + this.isOutOfBound = true; + bounce.setStartTime(Ext.Date.now()).setStartVelocity(velocity).setStartValue(boundedValue); + } + value = bounce.getValue(); + if (!this.isEnded) { + if (!this.isBouncingBack) { + if (lastValue !== null) { + if (direction == 1 && value < lastValue || direction == -1 && value > lastValue) { + this.isBouncingBack = true; + } + } + } else { + if (Math.round(value) == boundedValue) { + this.isEnded = true; + } + } + } + this.lastValue = value; + return value; +}}); +Ext.define('Ext.fx.easing.Linear', {extend:Ext.fx.easing.Abstract, alias:'easing.linear', config:{duration:0, endValue:0}, updateStartValue:function(startValue) { + this.distance = this.getEndValue() - startValue; +}, updateEndValue:function(endValue) { + this.distance = endValue - this.getStartValue(); +}, getValue:function() { + var deltaTime = Ext.Date.now() - this.getStartTime(), duration = this.getDuration(); + if (deltaTime > duration) { + this.isEnded = true; + return this.getEndValue(); + } else { + return this.getStartValue() + deltaTime / duration * this.distance; + } +}}); +Ext.define('Ext.fx.easing.EaseOut', {extend:Ext.fx.easing.Linear, alias:'easing.ease-out', config:{exponent:4, duration:1500}, getValue:function() { + var deltaTime = Ext.Date.now() - this.getStartTime(), duration = this.getDuration(), startValue = this.getStartValue(), endValue = this.getEndValue(), distance = this.distance, theta = deltaTime / duration, thetaC = 1 - theta, thetaEnd = 1 - Math.pow(thetaC, this.getExponent()), currentValue = startValue + thetaEnd * distance; + if (deltaTime >= duration) { + this.isEnded = true; + return endValue; + } + return currentValue; +}}); +Ext.define('Ext.util.translatable.Abstract', {extend:Ext.Evented, config:{useWrapper:null, easing:null, easingX:null, easingY:null}, x:0, y:0, activeEasingX:null, activeEasingY:null, isAnimating:false, isTranslatable:true, constructor:function(config) { + this.mixins.observable.constructor.call(this, config); + this.position = {x:0, y:0}; +}, factoryEasing:function(easing) { + return Ext.factory(easing, Ext.fx.easing.Linear, null, 'easing'); +}, applyEasing:function(easing) { + if (!this.getEasingX()) { + this.setEasingX(this.factoryEasing(easing)); + } + if (!this.getEasingY()) { + this.setEasingY(this.factoryEasing(easing)); + } +}, applyEasingX:function(easing) { + return this.factoryEasing(easing); +}, applyEasingY:function(easing) { + return this.factoryEasing(easing); +}, doTranslate:Ext.emptyFn, translate:function(x, y, animation) { + if (animation) { + return this.translateAnimated(x, y, animation); + } + if (this.isAnimating) { + this.stopAnimation(); + } + if (!isNaN(x) && typeof x == 'number') { + this.x = x; + } + if (!isNaN(y) && typeof y == 'number') { + this.y = y; + } + this.doTranslate(x, y); +}, translateAxis:function(axis, value, animation) { + var x, y; + if (axis == 'x') { + x = value; + } else { + y = value; + } + return this.translate(x, y, animation); +}, getPosition:function() { + var me = this, position = me.position; + position.x = -me.x; + position.y = -me.y; + return position; +}, animate:function(easingX, easingY) { + this.activeEasingX = easingX; + this.activeEasingY = easingY; + this.isAnimating = true; + this.lastX = null; + this.lastY = null; + Ext.AnimationQueue.start(this.doAnimationFrame, this); + this.fireEvent('animationstart', this, this.x, this.y); + return this; +}, translateAnimated:function(x, y, animation) { + var me = this; + if (!Ext.isObject(animation)) { + animation = {}; + } + if (me.isAnimating) { + me.stopAnimation(); + } + me.callback = animation.callback; + me.callbackScope = animation.scope; + var now = Ext.Date.now(), easing = animation.easing, easingX = typeof x == 'number' ? animation.easingX || easing || me.getEasingX() || true : null, easingY = typeof y == 'number' ? animation.easingY || easing || me.getEasingY() || true : null; + if (easingX) { + easingX = me.factoryEasing(easingX); + easingX.setStartTime(now); + easingX.setStartValue(me.x); + easingX.setEndValue(x); + if ('duration' in animation) { + easingX.setDuration(animation.duration); + } + } + if (easingY) { + easingY = me.factoryEasing(easingY); + easingY.setStartTime(now); + easingY.setStartValue(me.y); + easingY.setEndValue(y); + if ('duration' in animation) { + easingY.setDuration(animation.duration); + } + } + return me.animate(easingX, easingY); +}, doAnimationFrame:function() { + var me = this, easingX = me.activeEasingX, easingY = me.activeEasingY, now = Date.now(), x, y; + if (!me.isAnimating) { + return; + } + me.lastRun = now; + if (easingX === null && easingY === null) { + me.stopAnimation(); + return; + } + if (easingX !== null) { + me.x = x = Math.round(easingX.getValue()); + if (easingX.isEnded) { + me.activeEasingX = null; + me.fireEvent('axisanimationend', me, 'x', x); + } + } else { + x = me.x; + } + if (easingY !== null) { + me.y = y = Math.round(easingY.getValue()); + if (easingY.isEnded) { + me.activeEasingY = null; + me.fireEvent('axisanimationend', me, 'y', y); + } + } else { + y = me.y; + } + if (me.lastX !== x || me.lastY !== y) { + me.doTranslate(x, y); + me.lastX = x; + me.lastY = y; + } + me.fireEvent('animationframe', me, x, y); +}, stopAnimation:function() { + var me = this; + if (!me.isAnimating) { + return; + } + me.activeEasingX = null; + me.activeEasingY = null; + me.isAnimating = false; + Ext.AnimationQueue.stop(me.doAnimationFrame, me); + me.fireEvent('animationend', me, me.x, me.y); + if (me.callback) { + me.callback.call(me.callbackScope); + me.callback = null; + } +}, refresh:function() { + this.translate(this.x, this.y); +}, destroy:function() { + if (this.isAnimating) { + this.stopAnimation(); + } + this.callParent(); +}}); +Ext.define('Ext.util.translatable.Dom', {extend:Ext.util.translatable.Abstract, config:{element:null}, applyElement:function(element) { + if (!element) { + return; + } + return Ext.get(element); +}, updateElement:function() { + this.refresh(); +}}); +Ext.define('Ext.util.translatable.CssTransform', {extend:Ext.util.translatable.Dom, doTranslate:function(x, y) { + var element = this.getElement(); + if (!this.destroyed && !element.destroyed) { + element.translate(x, y); + } +}, destroy:function() { + var element = this.getElement(); + if (element && !element.destroyed) { + element.dom.style.webkitTransform = null; + } + this.callParent(); +}}); +Ext.define('Ext.util.translatable.ScrollPosition', {extend:Ext.util.translatable.Dom, type:'scrollposition', config:{useWrapper:true}, getWrapper:function() { + var wrapper = this.wrapper, element = this.getElement(), container; + if (!wrapper) { + container = element.getParent(); + if (!container) { + return null; + } + if (container.hasCls(Ext.baseCSSPrefix + 'translatable-hboxfix')) { + container = container.getParent(); + } + if (this.getUseWrapper()) { + wrapper = element.wrap(); + } else { + wrapper = container; + } + element.addCls(Ext.baseCSSPrefix + 'translatable'); + wrapper.addCls(Ext.baseCSSPrefix + 'translatable-container'); + this.wrapper = wrapper; + wrapper.on('painted', function() { + if (!this.isAnimating) { + this.refresh(); + } + }, this); + this.refresh(); + } + return wrapper; +}, doTranslate:function(x, y) { + var wrapper = this.getWrapper(), dom; + if (wrapper) { + dom = wrapper.dom; + if (typeof x == 'number') { + dom.scrollLeft = 500000 - x; + } + if (typeof y == 'number') { + dom.scrollTop = 500000 - y; + } + } +}, destroy:function() { + var me = this, element = me.getElement(), wrapper = me.wrapper; + if (wrapper) { + if (!element.destroyed) { + if (me.getUseWrapper()) { + wrapper.doReplaceWith(element); + } + element.removeCls(Ext.baseCSSPrefix + 'translatable'); + } + if (!wrapper.destroyed) { + wrapper.removeCls(Ext.baseCSSPrefix + 'translatable-container'); + wrapper.un('painted', 'refresh', me); + } + delete me.wrapper; + delete me._element; + } + me.callParent(); +}}); +Ext.define('Ext.util.translatable.ScrollParent', {extend:Ext.util.translatable.Dom, isScrollParent:true, applyElement:function(element) { + var el = Ext.get(element); + if (el) { + this.parent = el.parent(); + } + return el; +}, doTranslate:function(x, y) { + var parent = this.parent; + parent.setScrollLeft(Math.round(-x)); + parent.setScrollTop(Math.round(-y)); +}, getPosition:function() { + var me = this, position = me.position, parent = me.parent; + position.x = parent.getScrollLeft(); + position.y = parent.getScrollTop(); + return position; +}}); +Ext.define('Ext.util.translatable.CssPosition', {extend:Ext.util.translatable.Dom, doTranslate:function(x, y) { + var domStyle = this.getElement().dom.style; + if (typeof x == 'number') { + domStyle.left = x + 'px'; + } + if (typeof y == 'number') { + domStyle.top = y + 'px'; + } +}, destroy:function() { + var domStyle = this.getElement().dom.style; + domStyle.left = null; + domStyle.top = null; + this.callParent(); +}}); +Ext.define('Ext.util.Translatable', {constructor:function(config) { + var namespace = Ext.util.translatable; + switch(Ext.browser.getPreferredTranslationMethod(config)) { + case 'scrollposition': + return new namespace.ScrollPosition(config); + case 'scrollparent': + return new namespace.ScrollParent(config); + case 'csstransform': + return new namespace.CssTransform(config); + case 'cssposition': + return new namespace.CssPosition(config); + } +}}); +Ext.define('Ext.scroll.Indicator', {extend:Ext.Widget, xtype:'scrollindicator', config:{axis:null, hideAnimation:true, hideDelay:0, scroller:null, minLength:24}, defaultHideAnimation:{to:{opacity:0}, duration:300}, names:{x:{side:'l', getSize:'getHeight', setLength:'setWidth', translate:'translateX'}, y:{side:'t', getSize:'getWidth', setLength:'setHeight', translate:'translateY'}}, oppositeAxis:{x:'y', y:'x'}, cls:Ext.baseCSSPrefix + 'scroll-indicator', applyHideAnimation:function(hideAnimation) { + if (hideAnimation) { + hideAnimation = Ext.mergeIf({onEnd:this.onHideAnimationEnd, scope:this}, this.defaultHideAnimation, hideAnimation); + } + return hideAnimation; +}, constructor:function(config) { + var me = this, axis; + me.callParent([config]); + axis = me.getAxis(); + me.names = me.names[axis]; + me.element.addCls(me.cls + ' ' + me.cls + '-' + axis); +}, hide:function() { + var me = this, delay = me.getHideDelay(); + if (delay) { + me._hideTimer = Ext.defer(me.doHide, delay, me); + } else { + me.doHide(); + } +}, setValue:function(value) { + var me = this, el = me.element, names = me.names, axis = me.getAxis(), scroller = me.getScroller(), maxScrollPosition = scroller.getMaxUserPosition()[axis], elementSize = scroller.getElementSize()[axis], baseLength = me.length, minLength = me.getMinLength(), length = baseLength, maxPosition = elementSize - baseLength - me.sizeAdjust, round = Math.round, max = Math.max, position; + if (value < 0) { + length = round(max(baseLength + baseLength * value / elementSize, minLength)); + position = 0; + } else { + if (value > maxScrollPosition) { + length = round(max(baseLength - baseLength * (value - maxScrollPosition) / elementSize, minLength)); + position = maxPosition + baseLength - length; + } else { + position = round(value / maxScrollPosition * maxPosition); + } + } + me[names.translate](position); + el[names.setLength](length); +}, show:function() { + var me = this, el = me.element, anim = el.getActiveAnimation(); + if (anim) { + anim.end(); + } + if (!me._inDom) { + me.getScroller().getElement().appendChild(el); + me._inDom = true; + if (!me.size) { + me.cacheStyles(); + } + } + me.refreshLength(); + clearTimeout(me._hideTimer); + el.setStyle('opacity', ''); +}, privates:{cacheStyles:function() { + var me = this, el = me.element, names = me.names; + me.size = el[names.getSize](); + me.margin = el.getMargin(names.side); +}, doHide:function() { + var animation = this.getHideAnimation(), el = this.element; + if (animation) { + el.animate(animation); + } else { + el.setStyle('opacity', 0); + } +}, hasOpposite:function() { + return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()]); +}, onHideAnimationEnd:function() { + this.element.setStyle('opacity', '0'); +}, refreshLength:function() { + var me = this, names = me.names, axis = me.getAxis(), scroller = me.getScroller(), scrollSize = scroller.getSize()[axis], elementSize = scroller.getElementSize()[axis], ratio = elementSize / scrollSize, baseSizeAdjust = me.margin * 2, sizeAdjust = me.hasOpposite() ? baseSizeAdjust + me.size : baseSizeAdjust, length = Math.max(Math.round((elementSize - sizeAdjust) * ratio), me.getMinLength()); + me.sizeAdjust = sizeAdjust; + me.length = length; + me.element[names.setLength](length); +}, translateX:function(value) { + this.element.translate(value); +}, translateY:function(value) { + this.element.translate(0, value); +}}}); +Ext.define('Ext.scroll.TouchScroller', {extend:Ext.scroll.Scroller, alias:'scroller.touch', isTouchScroller:true, config:{autoRefresh:true, bounceEasing:{duration:400}, elementSize:undefined, indicators:true, fps:'auto', maxAbsoluteVelocity:6, momentumEasing:{momentum:{acceleration:30, friction:0.5}, bounce:{acceleration:30, springTension:0.3}, minVelocity:1}, outOfBoundRestrictFactor:0.5, innerElement:null, size:undefined, slotSnapEasing:{duration:150}, slotSnapOffset:{x:0, y:0}, startMomentumResetTime:300, +translatable:{translationMethod:'auto', useWrapper:false}}, cls:Ext.baseCSSPrefix + 'scroll-container', scrollerCls:Ext.baseCSSPrefix + 'scroll-scroller', dragStartTime:0, dragEndTime:0, isDragging:false, isAnimating:false, isMouseEvent:{mousedown:1, mousemove:1, mouseup:1}, listenerMap:{touchstart:'onTouchStart', touchmove:'onTouchMove', dragstart:'onDragStart', drag:'onDrag', dragend:'onDragEnd'}, refreshCounter:0, constructor:function(config) { + var me = this, onEvent = 'onEvent'; + me.elementListeners = {touchstart:onEvent, touchmove:onEvent, dragstart:onEvent, drag:onEvent, dragend:onEvent, scope:me}; + me.minPosition = {x:0, y:0}; + me.startPosition = {x:0, y:0}; + me.velocity = {x:0, y:0}; + me.isAxisEnabledFlags = {x:false, y:false}; + me.flickStartPosition = {x:0, y:0}; + me.flickStartTime = {x:0, y:0}; + me.lastDragPosition = {x:0, y:0}; + me.dragDirection = {x:0, y:0}; + me.callParent([config]); + me.refreshAxes(); + me.scheduleRefresh = {idle:me.doRefresh, scope:me, single:true, destroyable:true}; +}, applyBounceEasing:function(easing) { + var defaultClass = Ext.fx.easing.EaseOut; + return {x:Ext.factory(easing, defaultClass), y:Ext.factory(easing, defaultClass)}; +}, applyElementSize:function(size) { + var el = this.getElement(), dom, x, y; + if (!el) { + return null; + } + dom = el.dom; + if (!dom) { + return; + } + if (size == null) { + x = dom.clientWidth; + y = dom.clientHeight; + } else { + x = size.x; + y = size.y; + } + return {x:x, y:y}; +}, applyIndicators:function(indicators, oldIndicators) { + var me = this, xIndicator, yIndicator, x, y; + if (indicators) { + if (indicators === true) { + xIndicator = yIndicator = {}; + } else { + x = indicators.x; + y = indicators.y; + if (x || y) { + xIndicator = x == null || x === true ? {} : x; + yIndicator = x == null || y === true ? {} : y; + } else { + xIndicator = yIndicator = indicators; + } + } + if (oldIndicators) { + if (xIndicator) { + oldIndicators.x.setConfig(xIndicator); + } else { + oldIndicators.x.destroy(); + oldIndicators.x = null; + } + if (yIndicator) { + oldIndicators.y.setConfig(yIndicator); + } else { + oldIndicators.y.destroy(); + oldIndicators.y = null; + } + indicators = oldIndicators; + } else { + indicators = {x:null, y:null}; + if (xIndicator) { + indicators.x = new Ext.scroll.Indicator(Ext.applyIf({axis:'x', scroller:me}, xIndicator)); + } + if (yIndicator) { + indicators.y = new Ext.scroll.Indicator(Ext.applyIf({axis:'y', scroller:me}, yIndicator)); + } + } + } else { + if (oldIndicators) { + if (oldIndicators.x) { + oldIndicators.x.destroy(); + } + if (oldIndicators.y) { + oldIndicators.y.destroy(); + } + oldIndicators.x = oldIndicators.y = null; + } + } + return indicators; +}, applyMomentumEasing:function(easing) { + var defaultClass = Ext.fx.easing.BoundMomentum; + return {x:Ext.factory(easing, defaultClass), y:Ext.factory(easing, defaultClass)}; +}, applyInnerElement:function(innerElement) { + if (innerElement && !innerElement.isElement) { + innerElement = Ext.get(innerElement); + } + if (this.isConfiguring && !innerElement) { + Ext.raise('Cannot create Ext.scroll.TouchScroller instance with null innerElement'); + } + return innerElement; +}, applyMaxPosition:function(maxPosition, oldMaxPosition) { + if (oldMaxPosition && maxPosition.x === oldMaxPosition.x && maxPosition.y === oldMaxPosition.y) { + return; + } + var translatable = this.getTranslatable(), yEasing; + if (translatable.isAnimating) { + yEasing = translatable.activeEasingY; + if (yEasing && yEasing.getStartVelocity && yEasing.getStartVelocity() < 0 && maxPosition.y < oldMaxPosition.y) { + yEasing.setMinMomentumValue(-maxPosition.y); + } + } + return maxPosition; +}, applyMaxUserPosition:function(maxUserPosition, oldMaxUserPosition) { + if (oldMaxUserPosition && maxUserPosition.x === oldMaxUserPosition.x && maxUserPosition.y === oldMaxUserPosition.y) { + return; + } + return maxUserPosition; +}, applySize:function(size) { + var el = this.getElement(), dom, scrollerDom, x, y; + if (typeof size === 'number') { + x = size; + y = size; + } else { + if (size) { + x = size.x; + y = size.y; + } + } + if (el && (x == null || y == null)) { + dom = el.dom; + scrollerDom = this.getInnerElement().dom; + if (x == null) { + x = Math.max(scrollerDom.scrollWidth, dom.clientWidth); + } + if (y == null) { + y = Math.max(scrollerDom.scrollHeight, dom.clientHeight); + } + } + return {x:x, y:y}; +}, applySlotSnapOffset:function(snapOffset) { + if (typeof snapOffset === 'number') { + snapOffset = {x:snapOffset, y:snapOffset}; + } + return snapOffset; +}, applySlotSnapSize:function(snapSize) { + if (typeof snapSize === 'number') { + snapSize = {x:snapSize, y:snapSize}; + } + return snapSize; +}, applySlotSnapEasing:function(easing) { + var defaultClass = Ext.fx.easing.EaseOut; + return {x:Ext.factory(easing, defaultClass), y:Ext.factory(easing, defaultClass)}; +}, applyTranslatable:function(config, translatable) { + return Ext.factory(config, Ext.util.Translatable, translatable); +}, destroy:function() { + var me = this, element = me.getElement(), innerElement = me.getInnerElement(), sizeMonitors = me.sizeMonitors; + if (sizeMonitors) { + sizeMonitors.element.destroy(); + sizeMonitors.container.destroy(); + } + if (element && !element.destroyed) { + element.removeCls(me.cls); + } + if (innerElement && !innerElement.destroyed) { + innerElement.removeCls(me.scrollerCls); + } + if (me._isWrapped) { + if (!element.destroyed) { + me.unwrapContent(); + } + innerElement.destroy(); + } + me.setElement(null); + me.setInnerElement(null); + me.setIndicators(null); + Ext.destroy(me.getTranslatable()); + me.callParent(); +}, refresh:function(immediate, options) { + var me = this; + ++me.refreshCounter; + if (immediate) { + me.doRefresh(options); + } else { + if (!me.refreshScheduled) { + me.scheduleRefresh.args = [options]; + me.refreshScheduled = Ext.on(me.scheduleRefresh); + } + } +}, updateAutoRefresh:function(autoRefresh) { + this.toggleResizeListeners(autoRefresh); +}, updateBounceEasing:function(easing) { + this.getTranslatable().setEasingX(easing.x).setEasingY(easing.y); +}, updateElementSize:function() { + if (!this.isConfiguring) { + this.refreshAxes(); + } +}, updateDisabled:function(disabled) { + if (!this.isConfiguring) { + if (disabled) { + this.detachListeners(); + } else { + this.attachListeners(); + } + } +}, updateElement:function(element, oldElement) { + var me = this, innerElement = me.getInnerElement(), listeners, autoRefresh; + if (!innerElement) { + innerElement = element.dom.firstChild; + if (!innerElement || innerElement.nodeType !== 1 || !Ext.fly(innerElement).hasCls(me.scrollerCls)) { + innerElement = me.wrapContent(element); + } + me.setInnerElement(innerElement); + } + element.addCls(me.cls); + if (me.isConfiguring) { + if (!me.getTranslatable().isScrollParent) { + element.dom.style.overflowX = element.dom.style.overflowY = ''; + listeners = me.elementListeners; + listeners.mousewheel = 'onMouseWheel'; + listeners.scroll = {fn:'onElementScroll', delegated:false, scope:me}; + } + } + if (!me.getDisabled()) { + me.attachListeners(); + } + if (!me.isConfiguring) { + autoRefresh = me.getAutoRefresh(); + if (autoRefresh !== false) { + me.toggleResizeListeners(autoRefresh); + if (autoRefresh) { + me.refresh(); + } else { + if (autoRefresh === null) { + me.setElementSize(null); + } + } + } + } +}, updateFps:function(fps) { + if (fps !== 'auto') { + this.getTranslatable().setFps(fps); + } +}, updateMaxUserPosition:function() { + this.snapToBoundary(); +}, updateMinUserPosition:function() { + this.snapToBoundary(); +}, updateInnerElement:function(innerElement) { + if (innerElement) { + innerElement.addCls(this.scrollerCls); + } + this.getTranslatable().setElement(innerElement); +}, updateSize:function(size) { + if (!this.isConfiguring) { + if (Ext.supports.touchScroll === 1) { + this.callParent([size]); + } + this.refreshAxes(); + } +}, updateTranslatable:function(translatable) { + translatable.setElement(this.getInnerElement()); + if (!translatable.isScrollParent) { + translatable.on({animationframe:'onAnimationFrame', animationend:'onAnimationEnd', scope:this}); + } +}, updateX:function() { + if (!this.isConfiguring) { + this.refreshAxes(); + } +}, updateY:function() { + if (!this.isConfiguring) { + this.refreshAxes(); + } +}, privates:{attachListeners:function() { + this.getElement().on(this.elementListeners); +}, constrainX:function(x) { + return Math.min(this.getMaxPosition().x, Math.max(x, 0)); +}, constrainY:function(y) { + return Math.min(this.getMaxPosition().y, Math.max(y, 0)); +}, convertEasingConfig:function(config) { + return config; +}, detachListeners:function() { + this.getElement().un(this.elementListeners); +}, doRefresh:function(options) { + var me = this, size, elementSize; + if (me.refreshScheduled) { + me.refreshScheduled = me.refreshScheduled.destroy(); + } + if (me.refreshCounter && me.getElement()) { + me.stopAnimation(); + me.getTranslatable().refresh(); + if (options) { + size = options.size; + elementSize = options.elementSize; + } + me.setSize(size); + me.setElementSize(elementSize); + me.fireEvent('refresh', me); + me.refreshCounter = 0; + } +}, doScrollTo:function(x, y, animation, allowOverscroll) { + var me = this, isDragging = me.isDragging, DOMScrolling = me.getTranslatable().isScrollParent, fireStartEnd = !me.isReflecting && !DOMScrolling; + if (me.destroyed || !me.getElement()) { + return me; + } + allowOverscroll = allowOverscroll || me.isDragging; + var translatable = me.getTranslatable(), position = me.position, positionChanged = false, translationX, translationY; + if (!isDragging || me.isAxisEnabled('x')) { + if (isNaN(x) || typeof x !== 'number') { + x = position.x; + } else { + if (!allowOverscroll) { + x = me.constrainX(x); + } + if (position.x !== x) { + position.x = x; + positionChanged = true; + } + } + translationX = me.convertX(-x); + } + if (!isDragging || me.isAxisEnabled('y')) { + if (isNaN(y) || typeof y !== 'number') { + y = position.y; + } else { + if (!allowOverscroll) { + y = me.constrainY(y); + } + if (position.y !== y) { + position.y = y; + positionChanged = true; + } + } + translationY = -y; + } + if (positionChanged) { + if (fireStartEnd) { + me.onScrollStart(); + } + if (animation) { + translatable.translateAnimated(translationX, translationY, animation); + } else { + if (!DOMScrolling) { + me.onScroll(); + } + translatable.translate(translationX, translationY); + if (fireStartEnd) { + me.onScrollEnd(); + } + } + } else { + if (animation && animation.callback) { + animation.callback(); + } + } + return me; +}, getAnimationEasing:function(axis, e) { + if (!this.isAxisEnabled(axis)) { + return null; + } + var me = this, currentPosition = me.position[axis], minPosition = me.getMinUserPosition()[axis], maxPosition = me.getMaxUserPosition()[axis], maxAbsVelocity = me.getMaxAbsoluteVelocity(), boundValue = null, dragEndTime = me.dragEndTime, velocity = e.flick.velocity[axis], isX = axis === 'x', easingConfig, easing; + if (currentPosition < minPosition) { + boundValue = minPosition; + } else { + if (currentPosition > maxPosition) { + boundValue = maxPosition; + } + } + if (isX) { + currentPosition = me.convertX(currentPosition); + boundValue = me.convertX(boundValue); + } + if (boundValue !== null) { + easing = me.getBounceEasing()[axis]; + easing.setConfig({startTime:dragEndTime, startValue:-currentPosition, endValue:-boundValue}); + return easing; + } + if (velocity === 0) { + return null; + } + if (velocity < -maxAbsVelocity) { + velocity = -maxAbsVelocity; + } else { + if (velocity > maxAbsVelocity) { + velocity = maxAbsVelocity; + } + } + easing = me.getMomentumEasing()[axis]; + easingConfig = {startTime:dragEndTime, startValue:-currentPosition, startVelocity:velocity * 1.5, minMomentumValue:-maxPosition, maxMomentumValue:0}; + if (isX) { + me.convertEasingConfig(easingConfig); + } + easing.setConfig(easingConfig); + return easing; +}, getSnapPosition:function(axis) { + var me = this, snapSize = me.getSlotSnapSize()[axis], snapPosition = null, position, snapOffset, maxPosition, mod; + if (snapSize !== 0 && me.isAxisEnabled(axis)) { + position = me.position[axis]; + snapOffset = me.getSlotSnapOffset()[axis]; + maxPosition = me.getMaxUserPosition()[axis]; + mod = Math.floor((position - snapOffset) % snapSize); + if (mod !== 0) { + if (position !== maxPosition) { + if (Math.abs(mod) > snapSize / 2) { + snapPosition = Math.min(maxPosition, position + (mod > 0 ? snapSize - mod : mod - snapSize)); + } else { + snapPosition = position - mod; + } + } else { + snapPosition = position - mod; + } + } + } + return snapPosition; +}, hideIndicators:function() { + var me = this, indicators = me.getIndicators(), xIndicator, yIndicator; + if (indicators) { + if (me.isAxisEnabled('x')) { + xIndicator = indicators.x; + if (xIndicator) { + xIndicator.hide(); + } + } + if (me.isAxisEnabled('y')) { + yIndicator = indicators.y; + if (yIndicator) { + yIndicator.hide(); + } + } + } +}, isAxisEnabled:function(axis) { + this.getX(); + this.getY(); + return this.isAxisEnabledFlags[axis]; +}, onAnimationEnd:function() { + this.snapToBoundary(); + this.onScrollEnd(); +}, onAnimationFrame:function(translatable, x, y) { + var position = this.position; + position.x = this.convertX(-x); + position.y = -y; + this.onScroll(); +}, onAxisDrag:function(axis, delta) { + if (delta && this.isAxisEnabled(axis)) { + var me = this, flickStartPosition = me.flickStartPosition, flickStartTime = me.flickStartTime, lastDragPosition = me.lastDragPosition, dragDirection = me.dragDirection, old = me.position[axis], min = me.getMinUserPosition()[axis], max = me.getMaxUserPosition()[axis], start = me.startPosition[axis], last = lastDragPosition[axis], current = start - delta, lastDirection = dragDirection[axis], restrictFactor = me.getOutOfBoundRestrictFactor(), startMomentumResetTime = me.getStartMomentumResetTime(), + now = Ext.Date.now(), distance; + if (current < min) { + current *= restrictFactor; + } else { + if (current > max) { + distance = current - max; + current = max + distance * restrictFactor; + } + } + if (current > last) { + dragDirection[axis] = 1; + } else { + if (current < last) { + dragDirection[axis] = -1; + } + } + if (lastDirection !== 0 && dragDirection[axis] !== lastDirection || now - flickStartTime[axis] > startMomentumResetTime) { + flickStartPosition[axis] = old; + flickStartTime[axis] = now; + } + lastDragPosition[axis] = current; + return true; + } +}, onDomScroll:function() { + var me = this, dom, position; + if (me.getTranslatable().isScrollParent) { + dom = me.getElement().dom; + position = me.position; + position.x = dom.scrollLeft; + position.y = dom.scrollTop; + } + me.callParent(); +}, onDrag:function(e) { + var me = this, lastDragPosition = me.lastDragPosition; + if (!me.isDragging) { + return; + } + if (me.onAxisDrag('x', me.convertX(e.deltaX)) | me.onAxisDrag('y', e.deltaY)) { + me.doScrollTo(lastDragPosition.x, lastDragPosition.y); + } +}, onDragEnd:function(e) { + var me = this, easingX, easingY; + if (!me.isDragging) { + return; + } + me.dragEndTime = Ext.Date.now(); + me.onDrag(e); + me.isDragging = false; + easingX = me.getAnimationEasing('x', e); + easingY = me.getAnimationEasing('y', e); + if (easingX || easingY) { + me.getTranslatable().animate(easingX, easingY); + } else { + me.onScrollEnd(); + } +}, onDragStart:function(e) { + var me = this, direction = me.getDirection(), absDeltaX = e.absDeltaX, absDeltaY = e.absDeltaY, directionLock = me.getDirectionLock(), startPosition = me.startPosition, flickStartPosition = me.flickStartPosition, flickStartTime = me.flickStartTime, lastDragPosition = me.lastDragPosition, currentPosition = me.position, dragDirection = me.dragDirection, x = currentPosition.x, y = currentPosition.y, now = Ext.Date.now(); + if (directionLock && direction !== 'both') { + if (direction === 'horizontal' && absDeltaX > absDeltaY || direction === 'vertical' && absDeltaY > absDeltaX) { + e.stopPropagation(); + } else { + return; + } + } + lastDragPosition.x = x; + lastDragPosition.y = y; + flickStartPosition.x = x; + flickStartPosition.y = y; + startPosition.x = x; + startPosition.y = y; + flickStartTime.x = now; + flickStartTime.y = now; + dragDirection.x = 0; + dragDirection.y = 0; + me.dragStartTime = now; + me.isDragging = true; + if (!me.isScrolling) { + me.onScrollStart(); + } +}, onElementResize:function(element, info) { + this.refresh(true, {elementSize:{x:info.contentWidth, y:info.contentHeight}, size:this.getAutoRefresh() ? null : this.getSize()}); +}, onElementScroll:function(event, targetEl) { + targetEl.scrollTop = targetEl.scrollLeft = 0; +}, onEvent:function(e) { + var me = this, browserEvent = e.browserEvent; + if ((!me.self.isTouching || me.isTouching) && (!me.getTranslatable().isScrollParent || !me.isMouseEvent[browserEvent.type] && browserEvent.pointerType !== 'mouse') && (me.getY() || me.getX())) { + me[me.listenerMap[e.type]](e); + } +}, onInnerElementResize:function(element, info) { + this.refresh(true, {size:{x:info.width, y:info.height}}); +}, onMouseWheel:function(e) { + var me = this, delta = e.getWheelDeltas(), deltaX = -delta.x, deltaY = -delta.y, position = me.position, maxPosition = me.getMaxUserPosition(), minPosition = me.getMinUserPosition(), max = Math.max, min = Math.min, positionX = max(min(position.x + deltaX, maxPosition.x), minPosition.x), positionY = max(min(position.y + deltaY, maxPosition.y), minPosition.y); + deltaX = positionX - position.x; + deltaY = positionY - position.y; + if (!deltaX && !deltaY) { + return; + } + e.stopEvent(); + me.onScrollStart(); + me.scrollBy(deltaX, deltaY); + me.onScroll(); + me.onScrollEnd(); +}, onPartnerScrollEnd:function(x, y) { + var me = this; + if (!me.getTranslatable().isScrollParent) { + me.fireScrollEnd(x, y); + } + me.callParent([x, y]); + me.isScrolling = false; + me.hideIndicators(); +}, onPartnerScrollStart:function(x, y) { + var me = this; + me.isScrolling = true; + if (!me.getTranslatable().isScrollParent) { + me.fireScrollStart(x, y); + } + me.showIndicators(); +}, onScroll:function() { + var me = this, position = me.position, x = position.x, y = position.y, indicators = me.getIndicators(), xIndicator, yIndicator; + if (indicators) { + if (me.isAxisEnabled('x')) { + xIndicator = indicators.x; + if (xIndicator) { + xIndicator.setValue(x); + } + } + if (me.isAxisEnabled('y')) { + yIndicator = indicators.y; + if (yIndicator) { + yIndicator.setValue(y); + } + } + } + me.fireScroll(x, y); +}, onScrollEnd:function() { + var me = this, position = me.position; + if (me.isScrolling && !me.isTouching && !me.snapToSlot()) { + me.hideIndicators(); + me.isScrolling = Ext.isScrolling = false; + me.fireScrollEnd(position.x, position.y); + } +}, onScrollStart:function() { + var me = this, position = me.position; + if (!me.isScrolling) { + me.showIndicators(); + me.isScrolling = Ext.isScrolling = true; + me.fireScrollStart(position.x, position.y); + } +}, onTouchEnd:function() { + var me = this; + me.isTouching = me.self.isTouching = false; + if (!me.isDragging && me.snapToSlot()) { + me.onScrollStart(); + } +}, onTouchMove:function(e) { + e.preventDefault(); +}, onTouchStart:function() { + var me = this; + me.isTouching = me.self.isTouching = true; + Ext.getDoc().on({touchend:'onTouchEnd', scope:me, single:true}); + me.stopAnimation(); +}, refreshAxes:function() { + var me = this, flags = me.isAxisEnabledFlags, size = me.getSize(), elementSize = me.getElementSize(), indicators = me.getIndicators(), maxX, maxY, x, y, xIndicator, yIndicator; + if (!size || !elementSize) { + return; + } + maxX = Math.max(0, size.x - elementSize.x); + maxY = Math.max(0, size.y - elementSize.y); + x = me.getX(); + y = me.getY(); + me.setMaxPosition({x:maxX, y:maxY}); + if (x === true || x === 'auto') { + flags.x = !!maxX; + } else { + if (x === false) { + flags.x = false; + xIndicator = indicators && indicators.x; + if (xIndicator) { + xIndicator.hide(); + } + } else { + if (x === 'scroll') { + flags.x = true; + } + } + } + if (y === true || y === 'auto') { + flags.y = !!maxY; + } else { + if (y === false) { + flags.y = false; + yIndicator = indicators && indicators.y; + if (yIndicator) { + yIndicator.hide(); + } + } else { + if (y === 'scroll') { + flags.y = true; + } + } + } + me.setMaxUserPosition({x:flags.x ? maxX : 0, y:flags.y ? maxY : 0}); + if (Ext.supports.touchScroll === 1) { + me.initXStyle(); + me.initYStyle(); + } +}, showIndicators:function() { + var me = this, indicators = me.getIndicators(), xIndicator, yIndicator; + if (indicators) { + if (me.isAxisEnabled('x')) { + xIndicator = indicators.x; + if (xIndicator) { + xIndicator.show(); + } + } + if (me.isAxisEnabled('y')) { + yIndicator = indicators.y; + if (yIndicator) { + yIndicator.show(); + } + } + } +}, snapToBoundary:function() { + var me = this, position = me.getPosition(); + if (me.isConfiguring || !(position.x || position.y)) { + return; + } + var minPosition = me.getMinUserPosition(), maxPosition = me.getMaxUserPosition(), minX = minPosition.x, minY = minPosition.y, maxX = maxPosition.x, maxY = maxPosition.y, x = Math.round(position.x), y = Math.round(position.y); + if (x < minX) { + x = minX; + } else { + if (x > maxX) { + x = maxX; + } + } + if (y < minY) { + y = minY; + } else { + if (y > maxY) { + y = maxY; + } + } + me.doScrollTo(x, y); +}, snapToSlot:function() { + var me = this, snapX = me.getSnapPosition('x'), snapY = me.getSnapPosition('y'), easing = me.getSlotSnapEasing(); + if (snapX !== null || snapY !== null) { + me.doScrollTo(snapX, snapY, {easingX:easing.x, easingY:easing.y}); + return true; + } + return false; +}, stopAnimation:function() { + this.getTranslatable().stopAnimation(); +}, toggleResizeListeners:function(autoRefresh) { + var me = this, element = me.getElement(), method, innerMethod, innerElement; + if (element) { + innerElement = me.getInnerElement(); + if (autoRefresh) { + method = innerMethod = 'on'; + } else { + if (autoRefresh === null) { + method = 'on'; + innerMethod = 'un'; + } else { + method = innerMethod = 'un'; + } + } + element[method]('resize', 'onElementResize', me); + innerElement[innerMethod]('resize', 'onInnerElementResize', me); + } +}, unwrapContent:function() { + var innerDom = this.getInnerElement().dom, dom = this.getElement().dom, child; + while (child = innerDom.firstChild) { + dom.insertBefore(child, innerDom); + } +}, wrapContent:function(element) { + var wrap = document.createElement('div'), dom = element.dom, child; + while (child = dom.lastChild) { + wrap.insertBefore(child, wrap.firstChild); + } + dom.appendChild(wrap); + this.setInnerElement(wrap); + this._isWrapped = true; + return this.getInnerElement(); +}}}); +Ext.define('Ext.scroll.DomScroller', {extend:Ext.scroll.Scroller, alias:'scroller.dom', isDomScroller:true, getMaxPosition:function() { + var element = this.getElement(), x = 0, y = 0, dom; + if (element && !element.destroyed) { + dom = element.dom; + x = dom.scrollWidth - dom.clientWidth; + y = dom.scrollHeight - dom.clientHeight; + } + return {x:x, y:y}; +}, getMaxUserPosition:function() { + var me = this, element = me.getElement(), x = 0, y = 0, dom; + if (element && !element.destroyed) { + dom = element.dom; + if (me.getX()) { + x = dom.scrollWidth - dom.clientWidth; + } + if (me.getY()) { + y = dom.scrollHeight - dom.clientHeight; + } + } + return {x:x, y:y}; +}, getPosition:function() { + var me = this; + if (me.positionDirty) { + me.updateDomScrollPosition(); + } + return me.position; +}, getSize:function() { + var element = this.getElement(), size, dom; + if (element && !element.destroyed) { + dom = element.dom; + size = {x:dom.scrollWidth, y:dom.scrollHeight}; + } else { + size = {x:0, y:0}; + } + return size; +}, updateElement:function(element, oldElement) { + this.initXStyle(); + this.initYStyle(); +}, updateX:function(x) { + this.initXStyle(); +}, updateY:function(y) { + this.initYStyle(); +}, privates:{doScrollTo:function(x, y, animate) { + var me = this, element = me.getElement(), maxPosition, dom, to, xInf, yInf, i; + if (element && !element.destroyed) { + dom = element.dom; + xInf = x === Infinity; + yInf = y === Infinity; + if (xInf || yInf) { + maxPosition = me.getMaxPosition(); + if (xInf) { + x = maxPosition.x; + } + if (yInf) { + y = maxPosition.y; + } + } + x = me.convertX(x); + if (animate) { + to = {}; + if (y != null) { + to.scrollTop = y; + } + if (x != null) { + to.scrollLeft = x; + } + element.animate(Ext.mergeIf({to:{scrollTop:y, scrollLeft:x}}, animate)); + } else { + if (y != null) { + dom.scrollTop = y; + } + if (x != null) { + dom.scrollLeft = x; + if (Ext.isIE8) { + i = dom.scrollLeft; + dom.scrollLeft = x; + } + } + } + me.positionDirty = true; + } +}, getElementScroll:function(element) { + return element.getScroll(); +}, stopAnimation:function() { + var anim = this.getElement().getActiveAnimation(); + if (anim) { + anim.end(); + } +}}}, function(DomScroller) { + Ext.onDocumentReady(function() { + DomScroller.document = new DomScroller({x:true, y:true, element:document.body}); + }); +}); +Ext.define('Ext.util.Floating', {mixinId:'floating', focusOnToFront:true, shadow:'sides', animateShadow:false, constrain:false, config:{activeCounter:0, alwaysOnTop:false}, preventDefaultAlign:false, _visModeMap:{visibility:1, display:2, offsets:3}, constructor:function() { + var me = this, el = me.el, shadow = me.shadow, shadowOffset, shadowConfig; + if (shadow) { + shadowConfig = {mode:shadow === true ? 'sides' : shadow}; + shadowOffset = me.shadowOffset; + if (shadowOffset) { + shadowConfig.offset = shadowOffset; + } + shadowConfig.animate = me.animateShadow; + shadowConfig.fixed = me.fixed; + el.enableShadow(shadowConfig, false); + } + if (me.shim || Ext.useShims) { + el.enableShim({fixed:me.fixed}, false); + } + el.setVisibilityMode(me._visModeMap[me.hideMode]); + me.el.on({mousedown:me.onMouseDown, scope:me, capture:true}); + me.registerWithOwnerCt(); + me.initHierarchyEvents(); +}, alignTo:function(alignTarget, position, offsets, animate) { + var me = this, alignEl; + Ext.un('scroll', me.onAlignToScroll, me); + if (alignTarget.isComponent) { + alignEl = alignTarget.el; + } else { + if (alignTarget.nodeType) { + alignEl = Ext.fly(alignTarget); + } else { + alignEl = alignTarget; + } + } + if (!alignEl.contains(me.el)) { + Ext.on('scroll', me.onAlignToScroll, me); + } + me._lastAlignTarget = alignTarget; + me._lastAlignToPos = position; + me.mixins.positionable.alignTo.call(me, alignEl, position, offsets, animate); +}, initFloatConstrain:function() { + var me = this, floatParent = me.floatParent; + if ((me.constrain || me.constrainHeader) && !me.constrainTo) { + me.constrainTo = floatParent ? floatParent.getTargetEl() : me.container; + } +}, initHierarchyEvents:function() { + var me = this, syncHidden = this.syncHidden; + if (!me.hasHierarchyEventListeners) { + me.mon(Ext.GlobalEvents, {hide:syncHidden, collapse:syncHidden, show:syncHidden, expand:syncHidden, added:syncHidden, scope:me}); + me.hasHierarchyEventListeners = true; + } +}, registerWithOwnerCt:function() { + var me = this, ownerCt = me.ownerCt, zip = me.zIndexParent; + if (zip) { + zip.unregisterFloatingItem(me); + } + zip = me.zIndexParent = me.up('[floating]'); + me.floatParent = ownerCt || zip; + me.initFloatConstrain(); + delete me.ownerCt; + if (zip) { + zip.registerFloatingItem(me); + } else { + Ext.WindowManager.register(me); + } +}, onMouseDown:function(e) { + var me = this, focusTask = me.focusTask, preventFocus = e.pointerType === 'touch', target, dom, skipFronting; + if (me.floating && (!focusTask || !focusTask.id)) { + target = e.target; + dom = me.el.dom; + while (!preventFocus && target && target !== dom) { + if (Ext.fly(target).isFocusable()) { + preventFocus = true; + } + target = target.parentNode; + } + skipFronting = Ext.WindowManager.getActive() === me && (target === dom || preventFocus); + if (!skipFronting) { + me.toFront(preventFocus); + } + } +}, onBeforeFloatLayout:function() { + this.el.preventSync = true; +}, onAfterFloatLayout:function() { + var el = this.el; + if (el.shadow || el.shim) { + el.setUnderlaysVisible(true); + el.syncUnderlays(); + } +}, syncHidden:function() { + var me = this, hidden = me.hidden || !me.rendered, hierarchicallyHidden = me.hierarchicallyHidden = me.isHierarchicallyHidden(), pendingShow = me.pendingShow; + if (hidden !== hierarchicallyHidden) { + if (hierarchicallyHidden) { + me.hide(); + me.pendingShow = true; + } else { + if (pendingShow) { + delete me.pendingShow; + if (pendingShow.length) { + me.show.apply(me, pendingShow); + } else { + me.show(); + } + } + } + } +}, setZIndex:function(index) { + var me = this; + me.el.setZIndex(index); + index += 10; + if (me.floatingDescendants) { + index = Math.floor(me.floatingDescendants.setBase(index) / 100) * 100 + 10000; + } + return index; +}, doConstrain:function(constrainTo) { + var me = this, xy = me.calculateConstrainedPosition(constrainTo, null, true); + if (xy) { + me.setPosition(xy); + } +}, updateActiveCounter:function(activeCounter) { + var zim = this.zIndexParent; + if (zim && this.bringParentToFront !== false) { + zim.setActiveCounter(++Ext.ZIndexManager.activeCounter); + } + zim = this.zIndexManager; + if (zim) { + zim.onComponentUpdate(this); + } +}, updateAlwaysOnTop:function(alwaysOnTop) { + var z = this.zIndexManager; + if (z) { + z.onComponentUpdate(this); + } +}, toFront:function(preventFocus) { + var me = this; + if (me.zIndexManager.bringToFront(me, preventFocus || !me.focusOnToFront)) { + if (me.hasListeners.tofront) { + me.fireEvent('tofront', me, me.el.getZIndex()); + } + } + return me; +}, setActive:function(active, doFocus) { + var me = this, activeCmp; + if (active) { + if (me.el.shadow && !me.maximized) { + me.el.enableShadow(null, true); + } + if (doFocus) { + activeCmp = Ext.ComponentManager.getActiveComponent(); + if (!activeCmp || !activeCmp.up(me)) { + me.focus(); + } + } + me.fireEvent('activate', me); + } else { + me.fireEvent('deactivate', me); + } +}, toBack:function() { + this.zIndexManager.sendToBack(this); + return this; +}, center:function() { + var me = this, xy; + if (me.isVisible()) { + xy = me.getAlignToXY(me.container, 'c-c'); + me.setPagePosition(xy); + } else { + me.needsCenter = true; + } + return me; +}, onFloatShow:function() { + if (this.needsCenter) { + this.center(); + } + delete this.needsCenter; + if (this.toFrontOnShow) { + this.toFront(); + } +}, fitContainer:function(animate) { + var me = this, parent = me.floatParent, container = parent ? parent.getTargetEl() : me.container, newBox = container.getViewSize(), newPosition = parent || container.dom !== document.body ? [0, 0] : container.getXY(); + newBox.x = newPosition[0]; + newBox.y = newPosition[1]; + me.setBox(newBox, animate); +}, privates:{onFloatDestroy:function() { + this.clearAlignEl(); +}, clearAlignEl:function() { + var me = this; + if (me._lastAlignTarget) { + Ext.un('scroll', me.onAlignToScroll, me); + me._lastAlignPos = me._lastAlignTarget = null; + } +}, onAlignToScroll:function(scroller) { + var me = this, alignEl = me._lastAlignTarget, alignedToFloater = alignEl.isFloating, destroyed, dom; + if (alignEl) { + if (alignEl.isComponent) { + destroyed = alignEl.destroyed; + alignEl = alignEl.el; + } else { + if (alignEl.nodeType) { + alignEl = Ext.fly(alignEl); + } + dom = alignEl.dom; + destroyed = !dom || Ext.isGarbage(dom); + } + if (destroyed) { + me.clearAlignEl(); + } else { + if ((scroller.getElement().contains(alignEl) || alignedToFloater) && !scroller.getElement().contains(me.el)) { + me.alignTo(alignEl, me._lastAlignToPos); + } + } + } +}}}); +Ext.define('Ext.util.ElementContainer', {mixinId:'elementCt', config:{childEls:{$value:{}, cached:true, lazy:true, merge:function(newValue, oldValue, target, mixinClass) { + var childEls = oldValue ? Ext.Object.chain(oldValue) : {}, i, val; + if (newValue instanceof Array) { + for (i = newValue.length; i--;) { + val = newValue[i]; + if (!mixinClass || !(val in childEls)) { + if (typeof val === 'string') { + childEls[val] = {name:val, itemId:val}; + } else { + childEls[val.name] = val; + } + } + } + } else { + if (newValue) { + if (newValue.constructor === Object) { + for (i in newValue) { + if (!mixinClass || !(i in childEls)) { + val = newValue[i]; + if (val === true) { + childEls[i] = {itemId:i}; + } else { + if (typeof val === 'string') { + childEls[i] = {itemId:val}; + } else { + childEls[i] = val; + if (!('itemId' in val)) { + val.itemId = i; + } + } + } + childEls[i].name = i; + } + } + } else { + if (!mixinClass || !(newValue in childEls)) { + childEls[newValue] = {name:newValue, itemId:newValue}; + } + } + } + } + return childEls; +}}}, destroy:function() { + var me = this, childEls = me.getChildEls(), child, childName; + for (childName in childEls) { + child = me[childName]; + if (child) { + if (child.destroy) { + child.component = null; + child.destroy(); + } + me[childName] = null; + } + } +}, privates:{addChildEl:function(childEl) { + var me = this, childEls = me.getChildEls(); + if (!me.hasOwnProperty('childEls')) { + me.childEls = childEls = Ext.Object.chain(childEls); + } + if (typeof childEl === 'string') { + childEl = {name:childEl, itemId:childEl}; + } + childEls[childEl.name] = childEl; +}, afterClassMixedIn:function(targetClass) { + var proto = targetClass.prototype, childEls = proto.childEls; + if (childEls) { + delete proto.childEls; + targetClass.getConfigurator().add({childEls:childEls}); + } +}, attachChildEls:function(el, owner) { + var me = this, childEls = me.getChildEls(), comp = owner || me, baseId = comp.id + '-', unframed = !comp.frame, childName, elements, entry, k, selector, value, id; + for (childName in childEls) { + entry = childEls[childName]; + if (unframed && entry.frame) { + continue; + } + selector = entry.select; + if (selector) { + value = el.select(selector, true); + } else { + if (!(selector = entry.selectNode)) { + if (!(id = entry.id)) { + id = baseId + entry.itemId; + value = Ext.cache[id]; + } else { + value = Ext.cache[id] || el.getById(id); + } + } else { + value = el.selectNode(selector, false); + } + } + if (value) { + if (value.isElement) { + value.component = comp; + } else { + if (value.isComposite && !value.isLite) { + elements = value.elements; + for (k = elements.length; k--;) { + elements[k].component = comp; + } + } + } + } + me[childName] = value || null; + } +}}}); +Ext.define('Ext.util.Renderable', {mixinId:'renderable', frameCls:Ext.baseCSSPrefix + 'frame', frameIdRegex:/[\-]frame\d+[TMB][LCR]$/, frameElNames:['TL', 'TC', 'TR', 'ML', 'MC', 'MR', 'BL', 'BC', 'BR', 'Table'], frameTpl:['{%this.renderDockedItems(out,values,0);%}', '\x3ctpl if\x3d"top"\x3e', '\x3ctpl if\x3d"left"\x3e\x3cdiv id\x3d"{fgid}TL" data-ref\x3d"frameTL" class\x3d"{frameCls}-tl {baseCls}-tl {baseCls}-{ui}-tl\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-tl\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/tpl\x3e', +'\x3ctpl if\x3d"right"\x3e\x3cdiv id\x3d"{fgid}TR" data-ref\x3d"frameTR" class\x3d"{frameCls}-tr {baseCls}-tr {baseCls}-{ui}-tr\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-tr\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/tpl\x3e', '\x3cdiv id\x3d"{fgid}TC" data-ref\x3d"frameTC" class\x3d"{frameCls}-tc {baseCls}-tc {baseCls}-{ui}-tc\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-tc\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/div\x3e', '\x3ctpl if\x3d"right"\x3e\x3c/div\x3e\x3c/tpl\x3e', +'\x3ctpl if\x3d"left"\x3e\x3c/div\x3e\x3c/tpl\x3e', '\x3c/tpl\x3e', '\x3ctpl if\x3d"left"\x3e\x3cdiv id\x3d"{fgid}ML" data-ref\x3d"frameML" class\x3d"{frameCls}-ml {baseCls}-ml {baseCls}-{ui}-ml\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-ml\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/tpl\x3e', '\x3ctpl if\x3d"right"\x3e\x3cdiv id\x3d"{fgid}MR" data-ref\x3d"frameMR" class\x3d"{frameCls}-mr {baseCls}-mr {baseCls}-{ui}-mr\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-mr\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/tpl\x3e', +'\x3cdiv id\x3d"{fgid}Body" data-ref\x3d"frameBody" class\x3d"{frameBodyCls} {frameCls}-mc {baseCls}-mc {baseCls}-{ui}-mc\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-mc\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e', '{%this.applyRenderTpl(out, values)%}', '\x3c/div\x3e', '\x3ctpl if\x3d"right"\x3e\x3c/div\x3e\x3c/tpl\x3e', '\x3ctpl if\x3d"left"\x3e\x3c/div\x3e\x3c/tpl\x3e', '\x3ctpl if\x3d"bottom"\x3e', '\x3ctpl if\x3d"left"\x3e\x3cdiv id\x3d"{fgid}BL" data-ref\x3d"frameBL" class\x3d"{frameCls}-bl {baseCls}-bl {baseCls}-{ui}-bl\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-bl\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/tpl\x3e', +'\x3ctpl if\x3d"right"\x3e\x3cdiv id\x3d"{fgid}BR" data-ref\x3d"frameBR" class\x3d"{frameCls}-br {baseCls}-br {baseCls}-{ui}-br\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-br\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/tpl\x3e', '\x3cdiv id\x3d"{fgid}BC" data-ref\x3d"frameBC" class\x3d"{frameCls}-bc {baseCls}-bc {baseCls}-{ui}-bc\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-bc\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/div\x3e', '\x3ctpl if\x3d"right"\x3e\x3c/div\x3e\x3c/tpl\x3e', +'\x3ctpl if\x3d"left"\x3e\x3c/div\x3e\x3c/tpl\x3e', '\x3c/tpl\x3e', '{%this.renderDockedItems(out,values,1);%}'], frameTableTpl:['{%this.renderDockedItems(out,values,0);%}', '\x3ctable id\x3d"{fgid}Table" data-ref\x3d"frameTable" class\x3d"{frameCls} ', Ext.baseCSSPrefix + 'table-plain" cellpadding\x3d"0" role\x3d"presentation"\x3e', '\x3ctpl if\x3d"top"\x3e', '\x3ctr role\x3d"presentation"\x3e', '\x3ctpl if\x3d"left"\x3e\x3ctd id\x3d"{fgid}TL" data-ref\x3d"frameTL" class\x3d"{frameCls}-tl {baseCls}-tl {baseCls}-{ui}-tl\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-tl\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tpl\x3e', +'\x3ctd id\x3d"{fgid}TC" data-ref\x3d"frameTC" class\x3d"{frameCls}-tc {baseCls}-tc {baseCls}-{ui}-tc\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-tc\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/td\x3e', '\x3ctpl if\x3d"right"\x3e\x3ctd id\x3d"{fgid}TR" data-ref\x3d"frameTR" class\x3d"{frameCls}-tr {baseCls}-tr {baseCls}-{ui}-tr\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-tr\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tpl\x3e', '\x3c/tr\x3e', +'\x3c/tpl\x3e', '\x3ctr role\x3d"presentation"\x3e', '\x3ctpl if\x3d"left"\x3e\x3ctd id\x3d"{fgid}ML" data-ref\x3d"frameML" class\x3d"{frameCls}-ml {baseCls}-ml {baseCls}-{ui}-ml\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-ml\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tpl\x3e', '\x3ctd id\x3d"{fgid}Body" data-ref\x3d"frameBody" class\x3d"{frameBodyCls} {frameCls}-mc {baseCls}-mc {baseCls}-{ui}-mc\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-mc\x3c/tpl\x3e{frameElCls}" style\x3d"{mcStyle}" role\x3d"presentation"\x3e', +'{%this.applyRenderTpl(out, values)%}', '\x3c/td\x3e', '\x3ctpl if\x3d"right"\x3e\x3ctd id\x3d"{fgid}MR" data-ref\x3d"frameMR" class\x3d"{frameCls}-mr {baseCls}-mr {baseCls}-{ui}-mr\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-mr\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tpl\x3e', '\x3c/tr\x3e', '\x3ctpl if\x3d"bottom"\x3e', '\x3ctr role\x3d"presentation"\x3e', '\x3ctpl if\x3d"left"\x3e\x3ctd id\x3d"{fgid}BL" data-ref\x3d"frameBL" class\x3d"{frameCls}-bl {baseCls}-bl {baseCls}-{ui}-bl\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-bl\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tpl\x3e', +'\x3ctd id\x3d"{fgid}BC" data-ref\x3d"frameBC" class\x3d"{frameCls}-bc {baseCls}-bc {baseCls}-{ui}-bc\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-bc\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/td\x3e', '\x3ctpl if\x3d"right"\x3e\x3ctd id\x3d"{fgid}BR" data-ref\x3d"frameBR" class\x3d"{frameCls}-br {baseCls}-br {baseCls}-{ui}-br\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-{parent.ui}-{.}-br\x3c/tpl\x3e{frameElCls}" role\x3d"presentation"\x3e\x3c/td\x3e\x3c/tpl\x3e', '\x3c/tr\x3e', +'\x3c/tpl\x3e', '\x3c/table\x3e', '{%this.renderDockedItems(out,values,1);%}'], _renderState:0, ariaEl:'el', _layerCls:Ext.baseCSSPrefix + 'layer', _fixedLayerCls:Ext.baseCSSPrefix + 'fixed-layer', ariaStaticRoles:{presentation:true, article:true, definition:true, directory:true, document:true, img:true, heading:true, math:true, note:true, banner:true, complementary:true, contentinfo:true, navigation:true, search:true, 'undefined':true, 'null':true}, statics:{makeRenderSetter:function(cfg, renderState) { + var name = cfg.name; + return function(value) { + var me = this, bucket = me.renderConfigs || (me.renderConfigs = {}), pending = bucket[renderState]; + if (me._renderState >= renderState) { + (cfg.setter || cfg.getSetter()).call(me, value); + } else { + if (!pending) { + bucket[renderState] = pending = {}; + } + if (!(name in pending)) { + pending[name] = me[name]; + } + me[name] = value; + } + return me; + }; +}, processRenderConfig:function(source, configName, state) { + var proto = this.prototype, configurator = this.getConfigurator(), Renderable = Ext.util.Renderable, makeSetter = Renderable.makeRenderSetter, renderConfig = source[configName], cachedSetter, cfg, name, setterName; + for (name in renderConfig) { + cfg = Ext.Config.get(name); + if (!proto[setterName = cfg.names.set]) { + cachedSetter = cfg.renderSetter || (cfg.renderSetter = {}); + proto[setterName] = cachedSetter[state] || (cachedSetter[state] = makeSetter(cfg, state)); + } + } + delete source[configName]; + configurator.add(renderConfig); +}}, onClassMixedIn:function(targetClass) { + var override = targetClass.override, processRenderConfig = this.processRenderConfig, processOverride = function(body) { + if (body.beforeRenderConfig) { + this.processRenderConfig(body, 'beforeRenderConfig', 1); + } + if (body.renderConfig) { + this.processRenderConfig(body, 'renderConfig', 3); + } + override.call(this, body); + }, processClass = function(theClass, classBody) { + theClass.override = processOverride; + theClass.processRenderConfig = processRenderConfig; + if (classBody.beforeRenderConfig) { + theClass.processRenderConfig(classBody, 'beforeRenderConfig', 1); + } + if (classBody.renderConfig) { + theClass.processRenderConfig(classBody, 'renderConfig', 3); + } + }; + processClass(targetClass, targetClass.prototype); + targetClass.onExtended(processClass); +}, afterRender:function() { + var me = this, data = {}, protoEl = me.protoEl, target = me.el, controller, item, pre, hidden, contentEl; + me.finishRenderChildren(); + me._renderState = 4; + if (me.contentEl) { + pre = Ext.baseCSSPrefix; + hidden = pre + 'hidden-'; + contentEl = me.contentEl = Ext.get(me.contentEl); + contentEl.component = me; + contentEl.removeCls([pre + 'hidden', hidden + 'display', hidden + 'offsets']); + me.getContentTarget().appendChild(contentEl.dom); + } + protoEl.writeTo(data); + item = data.removed; + if (item) { + target.removeCls(item); + } + item = data.cls; + if (item.length) { + target.addCls(item); + } + item = data.style; + if (data.style) { + target.setStyle(item); + } + me.protoEl = null; + if (!me.ownerCt && !me.skipLayout) { + me.updateLayout(); + } + if (!(me.x && me.y) && (me.pageX || me.pageY)) { + me.setPagePosition(me.pageX, me.pageY); + } + if (me.disableOnRender) { + me.onDisable(); + } + controller = me.controller; + if (controller && controller.afterRender) { + controller.afterRender(me); + } +}, afterFirstLayout:function(width, height) { + var me = this, x = me.x, y = me.y, alignSpec = me.defaultAlign, alignOffset = me.alignOffset, controller, hasX, hasY, pos, xy; + if (!me.ownerLayout) { + hasX = x !== undefined; + hasY = y !== undefined; + } + if (me.floating && !me.preventDefaultAlign && (!hasX || !hasY)) { + if (me.floatParent) { + pos = me.floatParent.getTargetEl().getViewRegion(); + xy = me.el.getAlignToXY(me.alignTarget || me.floatParent.getTargetEl(), alignSpec, alignOffset); + pos.x = xy[0] - pos.x; + pos.y = xy[1] - pos.y; + } else { + xy = me.el.getAlignToXY(me.alignTarget || me.container, alignSpec, alignOffset); + pos = me.el.translateXY(xy[0], xy[1]); + } + x = hasX ? x : pos.x; + y = hasY ? y : pos.y; + hasX = hasY = true; + } + if (hasX || hasY) { + me.setPosition(x, y); + } + me.onBoxReady(width, height); + controller = me.controller; + if (controller && controller.boxReady) { + controller.boxReady(me); + } +}, beforeRender:function() { + var me = this, floating = me.floating, layout = me.getComponentLayout(), cls = me.userCls, controller; + me._renderState = 1; + me.ariaUsesMainElement = me.ariaEl === 'el'; + controller = me.controller; + if (controller && controller.beforeRender) { + controller.beforeRender(me); + } + me.initBindable(); + if (me.renderConfigs) { + me.flushRenderConfigs(); + } + if (me.reference) { + me.publishState(); + } + if (cls) { + me.addCls(cls); + } + if (floating) { + me.addCls(me.fixed ? me._fixedLayerCls : me._layerCls); + cls = floating.cls; + if (cls) { + me.addCls(cls); + } + } + me.frame = me.frame || me.alwaysFramed; + if (!layout.initialized) { + layout.initLayout(); + } + me.initOverflow(); + me.setUI(me.ui); +}, doApplyRenderTpl:function(out, values) { + var me = values.$comp, tpl; + if (!me.rendered) { + tpl = me.initRenderTpl(); + tpl.applyOut(values.renderData, out); + } +}, getElConfig:function() { + var me = this, autoEl = me.autoEl, frameInfo = me.getFrameInfo(), config = {tag:'div', tpl:frameInfo ? me.initFramingTpl(frameInfo.table) : me.initRenderTpl()}, layoutTargetCls = me.layoutTargetCls, protoEl = me.protoEl, ariaRole = me.ariaRole, frameData; + me.initStyles(protoEl); + if (layoutTargetCls && !frameInfo) { + protoEl.addCls(layoutTargetCls); + } + protoEl.writeTo(config); + protoEl.flush(); + if (autoEl) { + if (Ext.isString(autoEl)) { + config.tag = autoEl; + } else { + Ext.apply(config, autoEl); + } + } + if (ariaRole && me.ariaUsesMainElement) { + config.role = ariaRole; + if (!me.ariaStaticRoles[ariaRole]) { + config['aria-hidden'] = !!me.hidden; + config['aria-disabled'] = !!me.disabled; + if (me.ariaLabel && !me.ariaLabelledBy) { + config['aria-label'] = me.ariaLabel; + } + if (me.collapsible) { + config['aria-expanded'] = !me.collapsed; + } + if (me.ariaRenderAttributes) { + Ext.apply(config, me.ariaRenderAttributes); + } + if (me.config.ariaAttributes) { + Ext.apply(config, me.getAriaAttributes()); + } + } + } + config.id = me.id; + if (config.tpl) { + if (frameInfo) { + config.tplData = frameData = me.getFrameRenderData(); + frameData.renderData = me.initRenderData(); + } else { + config.tplData = me.initRenderData(); + } + } + me.ariaRenderAttributes = null; + return config; +}, getInsertPosition:function(position) { + if (position !== undefined) { + if (Ext.isNumber(position)) { + position = this.container.dom.childNodes[position]; + } else { + position = Ext.getDom(position); + } + } + return position; +}, getRenderTree:function() { + var me = this, ret = null; + if (!me.hasListeners.beforerender || me.fireEvent('beforerender', me) !== false) { + me._renderState = 1; + me.beforeRender(); + me.rendering = true; + me._renderState = 2; + ret = me.getElConfig(); + if (me.el) { + ret.id = me.$pid = Ext.id(null, me.el.identifiablePrefix); + } + } + return ret; +}, initRenderData:function() { + var me = this, ariaRole = me.ariaRole, data, ariaAttr; + data = Ext.apply({$comp:me, id:me.id, ui:me.ui, uiCls:me.uiCls, baseCls:me.baseCls, componentCls:me.componentCls, frame:me.frame, renderScroller:me.touchScroll, scrollerCls:me.scrollerCls, childElCls:''}, me.renderData); + if (ariaRole && !me.ariaUsesMainElement) { + ariaAttr = {role:ariaRole}; + if (!me.ariaStaticRoles[ariaRole]) { + ariaAttr['aria-hidden'] = !!me.hidden; + ariaAttr['aria-disabled'] = !!me.disabled; + if (me.ariaLabel && !me.ariaLabelledBy) { + ariaAttr['aria-label'] = me.ariaLabel; + } + if (me.collapsible) { + ariaAttr['aria-expanded'] = !me.collapsed; + } + if (me.ariaRenderAttributes) { + Ext.apply(ariaAttr, me.ariaRenderAttributes); + } + if (me.config.ariaAttributes) { + Ext.apply(ariaAttr, me.getAriaAttributes()); + } + } + data.ariaAttributes = ariaAttr; + } + return data; +}, onRender:function(parentNode, containerIdx) { + var me = this, x = me.x, y = me.y, lastBox = null, el = me.el, width, height; + me.applyRenderSelectors(); + me.rendering = null; + me.rendered = true; + me._renderState = 3; + if (me.renderConfigs) { + me.flushRenderConfigs(); + } + if (x != null) { + lastBox = {x:x}; + } + if (y != null) { + (lastBox = lastBox || {}).y = y; + } + if (!me.getFrameInfo()) { + width = me.width; + height = me.height; + if (typeof width === 'number') { + lastBox = lastBox || {}; + lastBox.width = width; + } + if (typeof height === 'number') { + lastBox = lastBox || {}; + lastBox.height = height; + } + } + if (me.touchScroll === 1) { + me.getOverflowEl().disableTouchScroll(); + } + me.lastBox = el.lastBox = lastBox; +}, render:function(container, position) { + var me = this, el = me.el, ownerLayout = me.ownerLayout, vetoed, tree, nextSibling; + if (el && !el.isElement) { + me.wrapPrimaryEl(el); + el = me.el; + } + if (!me.skipLayout) { + Ext.suspendLayouts(); + } + container = me.initContainer(container); + nextSibling = me.getInsertPosition(position); + if (!el) { + tree = me.getRenderTree(); + if (ownerLayout && ownerLayout.transformItemRenderTree) { + tree = ownerLayout.transformItemRenderTree(tree); + } + if (tree) { + if (nextSibling) { + el = Ext.DomHelper.insertBefore(nextSibling, tree); + } else { + el = Ext.DomHelper.append(container, tree); + } + me.wrapPrimaryEl(el); + me.cacheRefEls(el); + } + } else { + if (!me.hasListeners.beforerender || me.fireEvent('beforerender', me) !== false) { + me.beforeRender(); + me.needsRenderTpl = me.rendering = true; + me._renderState = 2; + me.initStyles(el); + if (me.allowDomMove !== false) { + if (nextSibling) { + container.dom.insertBefore(el.dom, nextSibling); + } else { + container.dom.appendChild(el.dom); + } + } + } else { + vetoed = true; + } + } + if (el && !vetoed) { + me.finishRender(position); + } + if (!me.skipLayout) { + Ext.resumeLayouts(!me.hidden && !container.isDetachedBody); + } +}, ensureAttachedToBody:function(runLayout) { + var comp = this, body; + while (comp.ownerCt) { + comp = comp.ownerCt; + } + if (comp.container.isDetachedBody) { + comp.container = body = Ext.getBody(); + body.appendChild(comp.el.dom); + if (runLayout) { + comp.updateLayout(); + } + if (typeof comp.x === 'number' || typeof comp.y === 'number') { + comp.setPosition(comp.x, comp.y); + } + } +}, privates:{applyRenderSelectors:function() { + var me = this, selectors = me.renderSelectors, el = me.el, query, selector; + me.attachChildEls(el); + me.ariaEl = me[me.ariaEl] || me.el; + if (selectors) { + for (selector in selectors) { + query = selectors[selector]; + if (query) { + me[selector] = el.selectNode(query, false); + } + } + } +}, cacheRefEls:function(el) { + el = el || this.el; + var cache = Ext.cache, El = Ext.dom.Element, dom = el.isElement ? el.dom : el, refs = dom.querySelectorAll('[data-ref]'), len = refs.length, ref, i; + for (i = 0; i < len; i++) { + ref = refs[i]; + if (!cache[ref.id]) { + new El(ref); + } + } +}, doAutoRender:function() { + var me = this; + if (!me.rendered) { + if (me.floating) { + me.render(me.renderTo || document.body); + } else { + me.render(Ext.isBoolean(me.autoRender) ? Ext.getBody() : me.autoRender); + } + } +}, doRenderContent:function(out, renderData) { + var me = renderData.$comp, data = me.data; + if (me.html) { + Ext.DomHelper.generateMarkup(me.html, out); + delete me.html; + } + if (me.tpl) { + if (!me.tpl.isTemplate) { + me.tpl = new Ext.XTemplate(me.tpl); + } + if (data) { + me.data = data = data.isEntity ? data.getData(true) : data; + me.tpl.applyOut(data, out); + } + } +}, doRenderFramingDockedItems:function(out, renderData, after) { + var me = renderData.$comp; + if (!me.rendered && me.doRenderDockedItems) { + renderData.renderData.$skipDockedItems = true; + me.doRenderDockedItems.call(this, out, renderData, after); + } +}, flushRenderConfigs:function() { + var me = this, configs = me.renderConfigs, state = me._renderState, bucket, i, name, newConfigs, value; + if (configs) { + for (i = 0; i <= state; ++i) { + bucket = configs[i]; + if (bucket) { + configs[i] = null; + for (name in bucket) { + value = bucket[name]; + (newConfigs || (newConfigs = {}))[name] = me[name]; + me[name] = value; + } + } + } + if (newConfigs) { + me.setConfig(newConfigs); + } + } +}, finishRender:function(containerIdx) { + var me = this, cache = Ext.cache, proxy, first, id, tpl, data, dom, el; + if (!me.el || me.$pid) { + if (me.container) { + el = cache[me.id]; + dom = el ? el.dom : me.container.getById(me.id, true); + } else { + id = me.$pid || me.id; + el = cache[id]; + dom = el ? el.dom : Ext.getDom(id); + } + if (!me.el) { + me.wrapPrimaryEl(dom); + } else { + delete me.$pid; + if (!me.el.dom) { + me.wrapPrimaryEl(me.el); + } + dom.parentNode.insertBefore(me.el.dom, dom); + proxy = dom; + dom = me.el.dom; + first = dom.firstChild; + while (proxy.firstChild) { + dom.insertBefore(proxy.firstChild, first); + } + me.el.addCls(proxy.className); + Ext.removeNode(proxy); + } + } else { + if (me.needsRenderTpl) { + tpl = me.initRenderTpl(); + if (tpl) { + data = me.initRenderData(); + tpl.insertFirst(me.getTargetEl(), data); + } + me.cacheRefEls(); + } + } + me.el.component = me; + if (!me.container) { + me.container = Ext.get(me.el.dom.parentNode); + } + if (me.ctCls) { + me.container.addCls(me.ctCls); + } + me.onRender(me.container, containerIdx); + if (!me.overflowInited) { + me.initOverflow(); + } + me.el.setVisibilityMode(Ext.Element[me.hideMode.toUpperCase()]); + if (me.overCls) { + me.el.hover(me.addOverCls, me.removeOverCls, me); + } + if (me.hasListeners.render) { + me.fireEvent('render', me); + } + me.afterRender(); + if (me.hasListeners.afterrender) { + me.fireEvent('afterrender', me); + } + me.initEvents(); + if (me.hidden) { + me.el.hide(); + } +}, finishRenderChildren:function() { + var layout = this.getComponentLayout(); + layout.finishRender(); +}, getFrameRenderData:function() { + var me = this, frameInfo = me.frameSize, mcStyle = ''; + if (me._syncFrameHeight && me.height) { + mcStyle = 'height:' + (me.height - frameInfo.height) + 'px'; + } + return {$comp:me, id:me.id, fgid:me.id + '-frame', ui:me.ui, uiCls:me.uiCls, frameCls:me.frameCls, frameBodyCls:me.layoutTargetCls || '', baseCls:me.baseCls, top:!!frameInfo.top, left:!!frameInfo.left, right:!!frameInfo.right, bottom:!!frameInfo.bottom, mcStyle:mcStyle, frameElCls:''}; +}, getFrameInfo:function() { + if (Ext.supports.CSS3BorderRadius || !this.frame) { + return false; + } + var me = this, frameInfoCache = me.frameInfoCache, cls = me.getFramingInfoCls() + '-frameInfo', frameInfo = frameInfoCache[cls], styleEl, info, frameTop, frameRight, frameBottom, frameLeft, borderTopWidth, borderRightWidth, borderBottomWidth, borderLeftWidth, paddingTop, paddingRight, paddingBottom, paddingLeft; + if (frameInfo == null) { + styleEl = Ext.fly(me.getStyleProxy(cls), 'frame-style-el'); + info = styleEl.getStyle('font-family'); + if (info) { + info = info.split('-'); + frameTop = parseInt(info[1], 10); + frameRight = parseInt(info[2], 10); + frameBottom = parseInt(info[3], 10); + frameLeft = parseInt(info[4], 10); + borderTopWidth = parseInt(info[5], 10); + borderRightWidth = parseInt(info[6], 10); + borderBottomWidth = parseInt(info[7], 10); + borderLeftWidth = parseInt(info[8], 10); + paddingTop = parseInt(info[9], 10); + paddingRight = parseInt(info[10], 10); + paddingBottom = parseInt(info[11], 10); + paddingLeft = parseInt(info[12], 10); + frameInfo = {table:info[0].charAt(0) === 't', vertical:info[0].charAt(1) === 'v', top:frameTop, right:frameRight, bottom:frameBottom, left:frameLeft, width:frameLeft + frameRight, height:frameTop + frameBottom, border:{top:borderTopWidth, right:borderRightWidth, bottom:borderBottomWidth, left:borderLeftWidth, width:borderLeftWidth + borderRightWidth, height:borderTopWidth + borderBottomWidth}, padding:{top:paddingTop, right:paddingRight, bottom:paddingBottom, left:paddingLeft, width:paddingLeft + + paddingRight, height:paddingTop + paddingBottom}}; + } else { + frameInfo = false; + } + if (me.frame === true && !frameInfo) { + Ext.log.error('You have set frame: true explicity on this component (' + me.getXType() + ') and it ' + 'does not have any framing defined in the CSS template. In this case IE cannot figure out ' + 'what sizes to use and thus framing on this component will be disabled.'); + } + frameInfoCache[cls] = frameInfo; + } + me.frame = !!frameInfo; + me.frameSize = frameInfo; + return frameInfo; +}, getFramingInfoCls:function() { + return this.baseCls + '-' + this.ui; +}, getStyleProxy:function(cls) { + var result = this.styleProxyEl || (Ext.Component.prototype.styleProxyEl = Ext.getBody().createChild({'data-sticky':true, role:'presentation', style:{position:'absolute', top:'-10000px'}}, null, true)); + result.className = cls; + return result; +}, getFrameTpl:function(table) { + return this.getTpl(table ? 'frameTableTpl' : 'frameTpl'); +}, initContainer:function(container) { + var me = this; + if (!container && me.el) { + container = me.el.dom.parentNode; + me.allowDomMove = false; + } + me.container = container.dom ? container : Ext.get(container); + return me.container; +}, initOverflow:function() { + var me = this, overflowStyle = me.getOverflowStyle(), scrollFlags = me.scrollFlags, overflowEl = me.getOverflowEl(), hasOverflow = scrollFlags.y || scrollFlags.x, touchScroll = me.touchScroll = hasOverflow && Ext.supports.touchScroll; + if (!hasOverflow || !overflowEl || !overflowEl.isElement) { + return; + } + me.overflowInited = true; + if (touchScroll === 2) { + overflowEl.setStyle('overflow', 'hidden'); + } else { + overflowEl.setStyle(overflowStyle); + } +}, doRenderPadding:function(out, renderData) { + var me = renderData.$comp; + if (me.touchScroll) { + out.push('padding:', me.unitizeBox(me.padding)); + } +}, initFramingTpl:function(table) { + var tpl = this.getFrameTpl(table); + if (tpl && !tpl.applyRenderTpl) { + this.setupFramingTpl(tpl); + } + return tpl; +}, initRenderTpl:function() { + var tpl = this.getTpl('renderTpl'); + if (tpl && !tpl.renderContent) { + this.setupRenderTpl(tpl); + } + return tpl; +}, setupFramingTpl:function(frameTpl) { + frameTpl.applyRenderTpl = this.doApplyRenderTpl; + frameTpl.renderDockedItems = this.doRenderFramingDockedItems; +}, setupRenderTpl:function(renderTpl) { + renderTpl.renderBody = renderTpl.renderContent = this.doRenderContent; + renderTpl.renderPadding = this.doRenderPadding; +}, updateFrame:function() { + if (Ext.supports.CSS3BorderRadius || !this.frame) { + return; + } + var me = this, dom = me.el.dom, frameTable = me.frameTable, oldFrameBody = me.frameBody, oldFrameBodyDom = oldFrameBody.dom, frameInfo = me.getFrameInfo(), childEls, childElName, div, el, first, frameData, frameDom, frameTpl, i, newBody, newFrameEls; + div = document.createElement('div'); + frameData = me.getFrameRenderData(); + frameTpl = me.getFrameTpl(frameInfo.table); + frameTpl.insertFirst(div, frameData); + newFrameEls = div.querySelectorAll('[data-ref]'); + newBody = div.querySelector('[data-ref\x3d"frameBody"]'); + for (first = oldFrameBodyDom; first.parentNode !== dom;) { + first = first.parentNode; + } + while (div.firstChild) { + dom.insertBefore(div.firstChild, first); + } + newBody.parentNode.replaceChild(oldFrameBodyDom, newBody); + oldFrameBodyDom.className = newBody.className; + oldFrameBody.setSize(); + childEls = me.getChildEls(); + if (frameTable) { + frameTable.destroy(); + me.frameTable = null; + } + for (childElName in childEls) { + if (childEls[childElName].frame) { + el = me[childElName]; + if (el && el !== oldFrameBody) { + el.destroy(); + me[childElName] = null; + } + } + } + for (i = newFrameEls.length; i--;) { + childElName = (frameDom = newFrameEls[i]).getAttribute('data-ref'); + if (childElName !== 'frameBody') { + me[childElName] = new Ext.dom.Element(frameDom); + } + } +}, frameInfoCache:{}}}); +Ext.define('Ext.state.Provider', {mixins:{observable:Ext.util.Observable}, prefix:'ext-', constructor:function(config) { + var me = this; + Ext.apply(me, config); + me.state = {}; + me.mixins.observable.constructor.call(me); +}, get:function(name, defaultValue) { + var ret = this.state[name]; + return ret === undefined ? defaultValue : ret; +}, clear:function(name) { + var me = this; + delete me.state[name]; + me.fireEvent('statechange', me, name, null); +}, set:function(name, value) { + var me = this; + me.state[name] = value; + me.fireEvent('statechange', me, name, value); +}, decodeValue:function(value) { + var me = this, re = /^(a|n|d|b|s|o|e)\:(.*)$/, matches = re.exec(unescape(value)), all, type, keyValue, values, vLen, v; + if (!matches || !matches[1]) { + return; + } + type = matches[1]; + value = matches[2]; + switch(type) { + case 'e': + return null; + case 'n': + return parseFloat(value); + case 'd': + return new Date(Date.parse(value)); + case 'b': + return value === '1'; + case 'a': + all = []; + if (value) { + values = value.split('^'); + vLen = values.length; + for (v = 0; v < vLen; v++) { + value = values[v]; + all.push(me.decodeValue(value)); + } + } + return all; + case 'o': + all = {}; + if (value) { + values = value.split('^'); + vLen = values.length; + for (v = 0; v < vLen; v++) { + value = values[v]; + keyValue = value.split('\x3d'); + all[keyValue[0]] = me.decodeValue(keyValue[1]); + } + } + return all; + default: + return value; + } +}, encodeValue:function(value) { + var flat = '', i = 0, enc, len, key; + if (value == null) { + return 'e:1'; + } else { + if (typeof value === 'number') { + enc = 'n:' + value; + } else { + if (typeof value === 'boolean') { + enc = 'b:' + (value ? '1' : '0'); + } else { + if (Ext.isDate(value)) { + enc = 'd:' + value.toUTCString(); + } else { + if (Ext.isArray(value)) { + for (len = value.length; i < len; i++) { + flat += this.encodeValue(value[i]); + if (i !== len - 1) { + flat += '^'; + } + } + enc = 'a:' + flat; + } else { + if (typeof value === 'object') { + for (key in value) { + if (typeof value[key] !== 'function' && value[key] !== undefined) { + flat += key + '\x3d' + this.encodeValue(value[key]) + '^'; + } + } + enc = 'o:' + flat.substring(0, flat.length - 1); + } else { + enc = 's:' + value; + } + } + } + } + } + } + return escape(enc); +}}); +Ext.define('Ext.state.Manager', {singleton:true, constructor:function() { + this.provider = new Ext.state.Provider; +}, setProvider:function(stateProvider) { + this.provider = stateProvider; +}, get:function(key, defaultValue) { + return this.provider.get(key, defaultValue); +}, set:function(key, value) { + this.provider.set(key, value); +}, clear:function(key) { + this.provider.clear(key); +}, getProvider:function() { + return this.provider; +}}); +Ext.define('Ext.state.Stateful', {mixinId:'state', stateful:false, saveDelay:100, constructor:function() { + var me = this; + if (!me.stateEvents) { + me.stateEvents = []; + } + if (me.stateful !== false) { + me.addStateEvents(me.stateEvents); + me.initState(); + } +}, addStateEvents:function(events) { + var me = this, i, event, stateEventsByName, eventArray; + if (me.stateful && me.getStateId()) { + eventArray = typeof events === 'string' ? arguments : events; + stateEventsByName = me.stateEventsByName || (me.stateEventsByName = {}); + for (i = eventArray.length; i--;) { + event = eventArray[i]; + if (event && !stateEventsByName[event]) { + stateEventsByName[event] = 1; + me.on(event, me.onStateChange, me); + } + } + } +}, onStateChange:function() { + var me = this, delay = me.saveDelay, statics, runner; + if (!me.stateful) { + return; + } + if (delay) { + if (!me.stateTask) { + statics = Ext.state.Stateful; + runner = statics.runner || (statics.runner = new Ext.util.TaskRunner); + me.stateTask = runner.newTask({run:me.saveState, scope:me, interval:delay, repeat:1, fireIdleEvent:false}); + } + me.stateTask.start(); + } else { + me.saveState(); + } +}, saveState:function() { + var me = this, id = me.stateful && me.getStateId(), hasListeners = me.hasListeners, plugins, plugin, i, len, state, pluginState; + if (id) { + state = me.getState() || {}; + plugins = me.getPlugins() || []; + for (i = 0, len = plugins.length; i < len; i++) { + plugin = plugins[i]; + if (plugin && plugin.getState) { + pluginState = plugin.getState(state); + if (pluginState && !state[plugin.ptype]) { + state[plugin.ptype] = pluginState; + } + } + } + if (!hasListeners.beforestatesave || me.fireEvent('beforestatesave', me, state) !== false) { + Ext.state.Manager.set(id, state); + if (hasListeners.statesave) { + me.fireEvent('statesave', me, state); + } + } + } +}, getState:function() { + return null; +}, applyState:function(state) { + if (state) { + Ext.apply(this, state); + } +}, getStateId:function() { + var me = this; + return me.stateId || (me.autoGenId ? null : me.id); +}, initState:function() { + var me = this, id = me.stateful && me.getStateId(), hasListeners = me.hasListeners, state, combinedState, i, len, plugins, plugin, pluginType; + if (id) { + combinedState = Ext.state.Manager.get(id); + if (combinedState) { + state = Ext.apply({}, combinedState); + if (!hasListeners.beforestaterestore || me.fireEvent('beforestaterestore', me, combinedState) !== false) { + plugins = me.getPlugins() || []; + for (i = 0, len = plugins.length; i < len; i++) { + plugin = plugins[i]; + if (plugin) { + pluginType = plugin.ptype; + if (plugin.applyState) { + plugin.applyState(state[pluginType], combinedState); + } + delete state[pluginType]; + } + } + me.applyState(state); + if (hasListeners.staterestore) { + me.fireEvent('staterestore', me, combinedState); + } + } + } + } +}, savePropToState:function(propName, state, stateName) { + var me = this, value = me[propName], config = me.initialConfig; + if (me.hasOwnProperty(propName)) { + if (!config || config[propName] !== value) { + if (state) { + state[stateName || propName] = value; + } + return true; + } + } + return false; +}, savePropsToState:function(propNames, state) { + var me = this, i, n; + if (typeof propNames === 'string') { + me.savePropToState(propNames, state); + } else { + for (i = 0, n = propNames.length; i < n; ++i) { + me.savePropToState(propNames[i], state); + } + } + return state; +}, destroy:function() { + var me = this, task = me.stateTask; + if (task) { + task.destroy(); + me.stateTask = null; + } + me.clearListeners(); +}}); +Ext.define('Ext.util.Focusable', {mixinId:'focusable', hasFocus:false, focusable:false, focusCls:'focus', initFocusable:Ext.emptyFn, initFocusableEvents:function() { + this.initFocusableElement(); +}, getFocusClsEl:function() { + return this.getFocusEl(); +}, getFocusEl:function() { + return this.element || this.el; +}, destroyFocusable:function() { + var me = this; + Ext.destroy(me.focusListeners); + me.focusListeners = me.focusEnterEvent = me.focusTask = null; + me.focusEl = me.ariaEl = null; +}, enableFocusable:Ext.emptyFn, disableFocusable:function() { + var me = this, focusTarget, focusCls = me.focusCls, focusClsEl; + if (me.hasFocus) { + focusTarget = me.findFocusTarget(); + if (focusTarget) { + focusTarget.focus(); + } + } + focusClsEl = me.getFocusClsEl(); + if (focusCls && focusClsEl) { + focusClsEl.removeCls(me.removeClsWithUI(focusCls, true)); + } +}, isFocusable:function(deep) { + var me = this, focusEl; + if (!me.focusable && (!me.isContainer || !deep)) { + return false; + } + focusEl = me.getFocusEl(); + if (focusEl && me.canFocus()) { + return focusEl.isFocusable(deep); + } + return false; +}, canFocus:function(skipVisibility, includeFocusTarget) { + var me = this, canFocus; + canFocus = (me.isContainer || me.focusable) && me.rendered && !me.destroying && !me.destroyed && !me.disabled && (skipVisibility || me.isVisible(true)); + return canFocus || includeFocusTarget && !!me.findFocusTarget(); +}, focus:function(selectText, delay, callback, scope) { + var me = this, focusTarget, focusElDom, containerScrollTop; + if (!me.focusable && !me.isContainer || me.destroyed || me.destroying) { + return; + } + if (delay) { + me.getFocusTask().delay(Ext.isNumber(delay) ? delay : 10, me.focus, me, [selectText, false, callback, scope]); + return me; + } + me.cancelFocus(); + if (me.canFocus()) { + if (focusTarget = me.getFocusEl()) { + if (focusTarget.isComponent) { + return focusTarget.focus(selectText, delay, callback, scope); + } + focusElDom = focusTarget.dom; + if (focusElDom) { + if (me.floating) { + containerScrollTop = me.container.dom.scrollTop; + } + focusTarget.focus(); + if (selectText) { + if (Ext.isArray(selectText)) { + if (me.selectText) { + me.selectText.apply(me, selectText); + } + } else { + if (focusElDom.select) { + focusElDom.select(); + } else { + if (me.selectText) { + me.selectText(); + } + } + } + } + Ext.callback(callback, scope); + } + if (me.floating) { + if (containerScrollTop !== undefined) { + me.container.dom.scrollTop = containerScrollTop; + } + } + } + } else { + focusTarget = me.findFocusTarget(); + if (focusTarget) { + return focusTarget.focus(selectText, delay, callback, scope); + } + } + return me; +}, cancelFocus:function() { + var task = this.getFocusTask(); + if (task) { + task.cancel(); + } +}, beforeBlur:Ext.emptyFn, onBlur:function(e) { + var me = this, container = me.focusableContainer, focusCls = me.focusCls, focusClsEl; + if (!me.focusable || me.destroying) { + return; + } + me.beforeBlur(e); + if (container) { + container.beforeFocusableChildBlur(me, e); + } + focusClsEl = me.getFocusClsEl(); + if (focusCls && focusClsEl) { + focusClsEl.removeCls(me.removeClsWithUI(focusCls, true)); + } + if (me.validateOnBlur) { + me.validate(); + } + me.hasFocus = false; + me.fireEvent('blur', me, e); + me.postBlur(e); + if (container) { + container.afterFocusableChildBlur(me, e); + } +}, postBlur:Ext.emptyFn, beforeFocus:Ext.emptyFn, onFocus:function(e) { + var me = this, container = me.focusableContainer, focusCls = me.focusCls, focusClsEl; + if (!me.focusable) { + return; + } + if (me.canFocus()) { + me.beforeFocus(e); + if (container) { + container.beforeFocusableChildFocus(me, e); + } + focusClsEl = me.getFocusClsEl(); + if (focusCls && focusClsEl) { + focusClsEl.addCls(me.addClsWithUI(focusCls, true)); + } + if (!me.hasFocus) { + me.hasFocus = true; + me.fireEvent('focus', me, e); + } + me.postFocus(e); + if (container) { + container.afterFocusableChildFocus(me, e); + } + } +}, postFocus:Ext.emptyFn, getTabIndex:function() { + var me = this, el, index; + if (!me.focusable) { + return; + } + el = me.rendered && me.getFocusEl(); + if (el) { + if (el.isComponent) { + index = el.getTabIndex(); + } else { + if (el.isElement) { + index = el.getAttribute('tabIndex'); + } else { + return; + } + } + me.tabIndex = index; + } else { + index = me.tabIndex; + } + return index - 0; +}, setTabIndex:function(newTabIndex, focusEl) { + var me = this, el; + if (!me.focusable) { + return; + } + me.tabIndex = newTabIndex; + if (!me.rendered) { + return; + } + el = focusEl || me.getFocusEl(); + if (el) { + if (el.isComponent) { + el.setTabIndex(newTabIndex); + } else { + if (el.isElement) { + el.set({tabIndex:newTabIndex}); + } + } + } +}, onFocusEnter:function(e) { + var me = this; + if (me.floating && me !== me.zIndexManager.getActive()) { + me.toFront(true); + } + me.focusEnterEvent = e; + me.containsFocus = true; + me.fireEvent('focusenter', me, e); +}, onFocusLeave:function(e) { + var me = this; + me.focusEnterEvent = null; + me.containsFocus = false; + me.fireEvent('focusleave', me, e); +}, privates:{revertFocus:function() { + var me = this, previousFocus = me.previousFocus, focusEvent = me.focusEnterEvent, focusTarget; + me.previousFocus = null; + if (me.preventRefocus || !me.el.contains(Ext.Element.getActiveElement())) { + return; + } + focusTarget = previousFocus || focusEvent && focusEvent.fromComponent; + if (focusTarget) { + if (focusTarget.canFocus && focusTarget.canFocus(false, true)) { + focusTarget.focus(); + return; + } else { + if (focusTarget.nodeType) { + focusTarget = Ext.fly(focusTarget); + } + if (focusTarget.isFocusable && focusTarget.isFocusable()) { + focusTarget.focus(); + return; + } + } + } + if (focusEvent) { + focusTarget = Ext.fly(focusEvent.relatedTarget); + if (Ext.isIE8 || focusTarget.isFocusable && focusTarget.isFocusable()) { + focusTarget.focus(); + } + } +}, findFocusTarget:function() { + var me = this, owner, focusTargets; + for (owner = me.up(':not([disabled])'); owner; owner = owner.up(':not([disabled])')) { + focusTargets = Ext.ComponentQuery.query(':focusable:not([hasFocus])', owner); + if (focusTargets.length) { + return focusTargets[0]; + } + if (owner.isFocusable && owner.isFocusable()) { + return owner; + } + } +}, initFocusableElement:function() { + var me = this, tabIndex = me.tabIndex, focusEl = me.getFocusEl(); + if (focusEl && !focusEl.isComponent) { + me.focusEl = focusEl; + if (tabIndex != null && me.canFocus(true)) { + me.setTabIndex(tabIndex, focusEl); + } + focusEl.dom.setAttribute('data-componentid', me.id); + if (me.config.keyHandlers) { + me.initKeyHandlers(focusEl); + } + } +}, getFocusTask:function() { + if (!this.focusTask) { + this.focusTask = Ext.focusTask; + } + return this.focusTask; +}, handleFocusEvent:function(e) { + var event; + if (this.isFocusing(e)) { + event = new Ext.event.Event(e.event); + event.type = 'focus'; + event.relatedTarget = e.fromElement; + event.target = e.toElement; + this.onFocus(event); + } +}, handleBlurEvent:function(e) { + var event; + if (this.isBlurring(e)) { + event = new Ext.event.Event(e.event); + event.type = 'blur'; + event.target = e.fromElement; + event.relatedTarget = e.toElement; + this.onBlur(event); + } +}, isFocusing:function(e) { + var from = e.fromElement, to = e.toElement, focusEl; + if (this.focusable) { + focusEl = this.getFocusEl(); + if (focusEl) { + if (focusEl.isComponent) { + return focusEl.isFocusing(from, to); + } else { + return to === focusEl.dom && from !== to; + } + } + } + return false; +}, isBlurring:function(e) { + var from = e.fromElement, to = e.toElement, focusEl; + if (this.focusable) { + focusEl = this.getFocusEl(); + if (focusEl) { + if (focusEl.isComponent) { + return focusEl.isBlurring(from, to); + } else { + return from === focusEl.dom && from !== to; + } + } + } + return false; +}, blur:function() { + var me = this, focusEl; + if (!me.focusable || !me.canFocus()) { + return; + } + focusEl = me.getFocusEl(); + if (focusEl) { + me.blurring = true; + focusEl.blur(); + delete me.blurring; + } + return me; +}, disableTabbing:function() { + var me = this, el = me.el, focusEl; + if (el) { + el.saveTabbableState(); + } + focusEl = me.getFocusEl(); + if (focusEl) { + if (focusEl.isComponent) { + focusEl.disableTabbing(); + } else { + if (focusEl.isElement && el && !el.contains(focusEl)) { + focusEl.saveTabbableState(); + } + } + } +}, enableTabbing:function() { + var me = this, el = me.el, focusEl; + focusEl = me.getFocusEl(); + if (focusEl) { + if (focusEl.isComponent) { + focusEl.enableTabbing(); + } else { + if (focusEl.isElement && el && !el.contains(focusEl)) { + focusEl.restoreTabbableState(); + } + } + } + if (el) { + el.restoreTabbableState(); + } +}}}, function() { + if (!Ext.focusTask) { + Ext.focusTask = new Ext.util.DelayedTask; + } +}); +Ext.define('Ext.mixin.Accessible', {extend:Ext.Mixin, mixinConfig:{id:'accessible'}, config:{ariaAttributes:{$value:null, lazy:true}}, privates:{getAriaLabelEl:function(selector) { + var ids = [], refHolder, i, len, cmp, result; + if (selector) { + if (Ext.isFunction(selector)) { + return selector.call(this); + } else { + if (!Ext.isArray(selector)) { + selector = [selector]; + } + refHolder = this.lookupReferenceHolder(); + if (refHolder) { + for (i = 0, len = selector.length; i < len; i++) { + cmp = refHolder.lookupReference(selector[i]); + if (cmp) { + ids.push(cmp.ariaEl.id); + } + } + } + } + } + return ids.length ? ids.join(' ') : null; +}}}); +Ext.define('Ext.util.KeyboardInteractive', {extend:Ext.Mixin, mixinConfig:{id:'keyboardinteractive'}, config:{keyHandlers:{$value:null, lazy:true}}, initKeyHandlers:function(focusEl) { + var me = this, handlers = me.getKeyHandlers(), handler; + for (handler in handlers) { + focusEl.on('keydown', me.handleKeydown, me); + me.keydownListenerAttached = true; + break; + } +}, applyKeyHandlers:function(config) { + var me = this, handlers = {}, focusEl, keyName, keyCode, handlerName, handlerFn; + if (config) { + for (keyName in config) { + handlerName = config[keyName]; + keyCode = Ext.event.Event[keyName]; + if (keyCode === undefined) { + Ext.raise('Unknown key: ' + keyName + ' in keyHandlers config for ' + me.id + '. Key names should be in ' + 'UPPER CASE.'); + } + if (typeof handlerName === 'function') { + handlers[keyName] = handlerName; + } else { + handlers[keyName] = me[handlerName]; + } + if (typeof handlers[keyName] !== 'function') { + Ext.log.warn('Undefined binding ' + handlerName + ' for ' + keyName + ' key in ' + 'keyHandlers config for ' + me.id); + } + } + if (me.focusable && me.rendered && !me.destroyed && !me.destroying) { + focusEl = me.getFocusEl(); + if (focusEl && !me.keydownListenerAttached) { + focusEl.on('keydown', me.handleKeydown, me); + me.keydownListenerAttached = true; + } + } + } + return handlers; +}, handleKeydown:function(e) { + var me = this, keyName, handlerFn; + keyName = e.getKeyName(); + if (keyName) { + handlerFn = me.getKeyHandlers()[keyName]; + if (handlerFn) { + handlerFn.call(me, e); + } + } +}}); +Ext.define('Ext.Component', {alternateClassName:'Ext.AbstractComponent', xtype:['component', 'box'], mixins:[Ext.mixin.Inheritable, Ext.util.Floating, Ext.util.Positionable, Ext.util.Observable, Ext.mixin.ComponentDelegation, Ext.mixin.Bindable, Ext.util.Animate, Ext.util.ElementContainer, Ext.util.Renderable, Ext.state.Stateful, Ext.util.Focusable, Ext.mixin.Accessible, Ext.util.KeyboardInteractive], statics:{AUTO_ID:1000, pendingLayouts:null, layoutSuspendCount:0, DIRECTION_TOP:'top', DIRECTION_RIGHT:'right', +DIRECTION_BOTTOM:'bottom', DIRECTION_LEFT:'left', VERTICAL_DIRECTION_Re:/^(?:top|bottom)$/, INVALID_ID_CHARS_Re:/[\.,\s]/g, ariaHighContrastModeCls:Ext.baseCSSPrefix + 'aria-highcontrast', cancelLayout:function(comp, isDestroying) { + var context = this.runningLayoutContext || this.pendingLayouts; + if (context) { + context.cancelComponent(comp, false, isDestroying); + } +}, fromElement:function(node, limit, selector) { + return Ext.ComponentManager.fromElement(node, limit, selector); +}, flushLayouts:function() { + var me = this, context = me.pendingLayouts; + if (context && context.invalidQueue.length) { + me.pendingLayouts = null; + me.runningLayoutContext = context; + Ext.override(context, {runComplete:function() { + me.runningLayoutContext = null; + var result = this.callParent(); + if (Ext.GlobalEvents.hasListeners.afterlayout) { + Ext.GlobalEvents.fireEvent('afterlayout'); + } + return result; + }}); + context.run(); + } +}, resumeLayouts:function(flush) { + if (this.layoutSuspendCount && !--this.layoutSuspendCount) { + if (flush) { + this.flushLayouts(); + } + if (Ext.GlobalEvents.hasListeners.resumelayouts) { + Ext.GlobalEvents.fireEvent('resumelayouts'); + } + } +}, suspendLayouts:function() { + ++this.layoutSuspendCount; +}, updateLayout:function(comp, defer) { + var me = this, running = me.runningLayoutContext, pending; + if (running) { + running.queueInvalidate(comp); + } else { + pending = me.pendingLayouts || (me.pendingLayouts = new Ext.layout.Context); + pending.queueInvalidate(comp); + if (!defer && !me.layoutSuspendCount && !comp.isLayoutSuspended()) { + me.flushLayouts(); + } + } +}}, $configPrefixed:false, $configStrict:false, config:{data:null, maxHeight:null, maxWidth:null, minHeight:null, minWidth:null, scrollable:null}, defaultBindProperty:'html', alignTarget:null, autoRender:false, autoShow:false, baseCls:Ext.baseCSSPrefix + 'component', childEls:{frameTable:{frame:true}, frameTL:{frame:'tl'}, frameTC:{frame:'tc'}, frameTR:{frame:'tr'}, frameML:{frame:'ml'}, frameBody:{frame:'mc'}, frameMR:{frame:'mr'}, frameBL:{frame:'bl'}, frameBC:{frame:'bc'}, frameBR:{frame:'br'}}, +componentLayout:'autocomponent', defaultAlign:'c-c', disabled:false, disabledRe:/^(?:button|input|select|textarea|optgroup|option|fieldset)$/i, nonMaskableRe:function() { + var re = ['input', 'select', 'textarea', 'optgroup', 'option', 'table']; + if (Ext.isIE9m && !(Ext.isIE9 && !Ext.isIEQuirks)) { + re.push('p'); + } + return new RegExp('^(?:' + re.join('|') + ')$', 'i'); +}(), disabledCls:Ext.baseCSSPrefix + 'item-disabled', draggable:false, floating:false, hidden:false, hideMode:'display', maskElement:null, renderTpl:['\x3ctpl if\x3d"renderScroller"\x3e', '\x3cdiv class\x3d"{scrollerCls}" style\x3d"{%this.renderPadding(out, values)%}"\x3e', '\x3c/tpl\x3e', '{%this.renderContent(out,values)%}', '\x3ctpl if\x3d"renderScroller"\x3e\x3c/div\x3e\x3c/tpl\x3e'], resizeHandles:'all', shrinkWrap:2, toFrontOnShow:true, synthetic:false, tplWriteMode:'overwrite', ui:'default', +uiCls:[], userCls:null, weight:null, allowDomMove:true, autoGenId:false, borderBoxCls:Ext.baseCSSPrefix + 'border-box', componentLayoutCounter:0, contentPaddingProperty:'padding', deferLayouts:false, frameSize:null, horizontalPosProp:'left', isComponent:true, _isLayoutRoot:false, layoutSuspendCount:0, liquidLayout:false, maskOnDisable:true, offsetsCls:Ext.baseCSSPrefix + 'hidden-offsets', rendered:false, rootCls:Ext.baseCSSPrefix + 'body', scrollerCls:Ext.baseCSSPrefix + 'scroll-scroller', scrollerSelector:'.' + +Ext.baseCSSPrefix + 'scroll-scroller', _scrollFlags:{auto:{auto:{overflowX:'auto', overflowY:'auto', x:true, y:true, both:true}, 'false':{overflowX:'auto', overflowY:'hidden', x:true, y:false, both:false}, scroll:{overflowX:'auto', overflowY:'scroll', x:true, y:true, both:true}}, 'false':{auto:{overflowX:'hidden', overflowY:'auto', x:false, y:true, both:false}, 'false':{overflowX:'hidden', overflowY:'hidden', x:false, y:false, both:false}, scroll:{overflowX:'hidden', overflowY:'scroll', x:false, +y:true, both:false}}, scroll:{auto:{overflowX:'scroll', overflowY:'auto', x:true, y:true, both:true}, 'false':{overflowX:'scroll', overflowY:'hidden', x:true, y:false, both:false}, scroll:{overflowX:'scroll', overflowY:'scroll', x:true, y:true, both:true}}, none:{overflowX:'', overflowY:'', x:false, y:false, both:false}}, _scrollableCfg:{x:{x:true, y:false}, y:{x:false, y:true}, horizontal:{x:true, y:false}, vertical:{x:false, y:true}, both:{x:true, y:true}, 'true':{x:true, y:true}}, validIdRe:Ext.validIdRe, +constructor:function(config) { + var me = this, i, len, xhooks, controller, autoScroll, overflowX, overflowY, scrollable; + config = config || {}; + if (config.initialConfig) { + if (config.isAction) { + me.baseAction = config; + } + config = config.initialConfig; + } else { + if (config.tagName || config.dom || Ext.isString(config)) { + config = {applyTo:config, id:config.id || config}; + } + } + me.initialConfig = config; + me.getId(); + me.protoEl = new Ext.util.ProtoElement; + me.$calledInitConfig = true; + me.initConfig(config); + delete me.$calledInitConfig; + if (me.scrollable == null) { + autoScroll = me.autoScroll; + if (autoScroll) { + scrollable = !!autoScroll; + } else { + overflowX = me.overflowX; + overflowY = me.overflowY; + if (overflowX || overflowY) { + scrollable = {x:overflowX && overflowX !== 'hidden' ? overflowX : false, y:overflowY && overflowY !== 'hidden' ? overflowY : false}; + } + } + if (scrollable) { + me.setScrollable(scrollable); + } + } + xhooks = me.xhooks; + if (xhooks) { + delete me.xhooks; + Ext.override(me, xhooks); + } + me.mixins.elementCt.constructor.call(me); + if (!me.validIdRe.test(me.id)) { + Ext.raise('Invalid component "id": "' + me.id + '"'); + } + if (!me.validIdRe.test(me.itemId)) { + Ext.raise('Invalid component "itemId": "' + me.itemId + '"'); + } + me.setupProtoEl(); + if (me.cls) { + me.initialCls = me.cls; + me.protoEl.addCls(me.cls); + } + if (me.style) { + me.initialStyle = me.style; + me.protoEl.setStyle(me.style); + } + me.renderData = me.renderData || {}; + me.initComponent(); + if (!me.preventRegister) { + Ext.ComponentManager.register(me); + } + me.mixins.state.constructor.call(me); + me.addStateEvents('resize'); + controller = me.getController(); + if (controller) { + controller.init(me); + } + if (me.plugins) { + for (i = 0, len = me.plugins.length; i < len; i++) { + me.plugins[i] = me.initPlugin(me.plugins[i]); + } + } + me.loader = me.getLoader(); + if (me.disabled) { + me.disabled = false; + me.disable(true); + } + if (me.renderTo) { + me.render(me.renderTo); + } + if (me.autoShow && !me.$initParent) { + me.show(); + } + if (Ext.isDefined(me.disabledClass)) { + if (Ext.isDefined(Ext.global.console)) { + Ext.global.console.warn('Ext.Component: disabledClass has been deprecated. Please use disabledCls.'); + } + me.disabledCls = me.disabledClass; + delete me.disabledClass; + } + if (me.baseAction) { + me.baseAction.addComponent(me); + } +}, beforeInitConfig:function() { + if (!this.$calledInitConfig) { + Ext.raise('initConfig should not be called by subclasses, it will be called by Ext.Component'); + } + this.mixins.observable.constructor.call(this); +}, addCls:function(cls) { + var me = this, el = me.rendered ? me.el : me.protoEl; + el.addCls.apply(el, arguments); + return me; +}, addClsWithUI:function(classes, skip) { + var me = this, clsArray = [], i = 0, uiCls = me.uiCls = Ext.Array.clone(me.uiCls), activeUI = me.activeUI, length, cls; + if (typeof classes === 'string') { + classes = classes.indexOf(' ') < 0 ? [classes] : Ext.String.splitWords(classes); + } + length = classes.length; + for (; i < length; i++) { + cls = classes[i]; + if (cls && !me.hasUICls(cls)) { + uiCls.push(cls); + if (activeUI) { + clsArray = clsArray.concat(me.addUIClsToElement(cls)); + } + } + } + if (skip !== true && activeUI) { + me.addCls(clsArray); + } + return clsArray; +}, afterComponentLayout:function(width, height, oldWidth, oldHeight) { + var me = this, scroller; + if (++me.componentLayoutCounter === 1) { + scroller = me.scrollable; + if (scroller) { + if (me.touchScroll && scroller.isTouchScroller) { + scroller.setInnerElement(me.getScrollerEl()); + } + scroller.setElement(me.getOverflowEl()); + if (Ext.isIE) { + Ext.on('show', me.onGlobalShow, me); + } + } + me.afterFirstLayout(width, height); + } + if (width !== oldWidth || height !== oldHeight) { + me.onResize(width, height, oldWidth, oldHeight); + } + if (me.floating) { + me.onAfterFloatLayout(); + } +}, addPlugin:function(plugin) { + var me = this; + plugin = me.constructPlugin(plugin); + if (me.plugins) { + me.plugins.push(plugin); + } else { + me.plugins = [plugin]; + } + if (me.pluginsInitialized) { + me.initPlugin(plugin); + } + return plugin; +}, addPropertyToState:function(state, propName, value) { + var me = this, len = arguments.length; + if (len === 3 || me.hasOwnProperty(propName)) { + if (len < 3) { + value = me[propName]; + } + if (value !== me.initialConfig[propName]) { + (state || (state = {}))[propName] = value; + } + } + return state; +}, addUIClsToElement:function(uiCls) { + var me = this, baseClsUI = me.baseCls + '-' + me.ui + '-' + uiCls, result = [Ext.baseCSSPrefix + uiCls, me.baseCls + '-' + uiCls, baseClsUI], childEls, childElName, el, suffix; + if (me.rendered && me.frame && !Ext.supports.CSS3BorderRadius) { + baseClsUI += '-'; + childEls = me.getChildEls(); + for (childElName in childEls) { + suffix = childEls[childElName].frame; + if (suffix && suffix !== true) { + el = me[childElName]; + if (el) { + el.addCls(baseClsUI + suffix); + } + } + } + } + return result; +}, removeUIClsFromElement:function(uiCls) { + var me = this, baseClsUI = me.baseCls + '-' + me.ui + '-' + uiCls, result = [Ext.baseCSSPrefix + uiCls, me.baseCls + '-' + uiCls, baseClsUI], childEls, childElName, el, suffix; + if (me.rendered && me.frame && !Ext.supports.CSS3BorderRadius) { + baseClsUI += '-'; + childEls = me.getChildEls(); + for (childElName in childEls) { + suffix = childEls[childElName].frame; + if (suffix && suffix !== true) { + el = me[childElName]; + if (el) { + el.removeCls(baseClsUI + suffix); + } + } + } + } + return result; +}, adjustPosition:function(x, y) { + var me = this, floatParentBox; + if (me.isContainedFloater()) { + floatParentBox = me.floatParent.getTargetEl().getViewRegion(); + x += floatParentBox.left; + y += floatParentBox.top; + } + return {x:x, y:y}; +}, afterHide:function(cb, scope) { + var me = this, container = me.focusableContainer; + me.hiddenByLayout = null; + if (this.ownerLayout) { + this.updateLayout({isRoot:false}); + } + Ext.callback(cb, scope || me); + me.fireHierarchyEvent('hide'); + me.fireEvent('hide', me); + if (container) { + container.onFocusableChildHide(me); + } +}, afterSetPosition:function(x, y) { + var me = this; + me.onPosition(x, y); + if (me.hasListeners.move) { + me.fireEvent('move', me, x, y); + } +}, afterShow:function(animateTarget, cb, scope) { + var me = this, myEl = me.el, fromBox, toBox, ghostPanel; + animateTarget = me.getAnimateTarget(animateTarget); + if (!me.ghost) { + animateTarget = null; + } + if (animateTarget) { + toBox = {x:myEl.getX(), y:myEl.getY(), width:myEl.dom.offsetWidth, height:myEl.dom.offsetHeight}; + fromBox = {x:animateTarget.getX(), y:animateTarget.getY(), width:animateTarget.dom.offsetWidth, height:animateTarget.dom.offsetHeight}; + myEl.addCls(me.offsetsCls); + ghostPanel = me.ghost(); + ghostPanel.el.stopAnimation(); + ghostPanel.setX(-10000); + me.ghostBox = toBox; + ghostPanel.el.animate({from:fromBox, to:toBox, listeners:{afteranimate:function() { + delete ghostPanel.componentLayout.lastComponentSize; + me.unghost(); + delete me.ghostBox; + myEl.removeCls(me.offsetsCls); + me.onShowComplete(cb, scope); + }}}); + } else { + me.onShowComplete(cb, scope); + } + me.fireHierarchyEvent('show'); +}, animate:function(animObj) { + var me = this, hasToWidth, hasToHeight, toHeight, toWidth, to, clearWidth, clearHeight, curWidth, w, curHeight, h, isExpanding, wasConstrained, wasConstrainedHeader, passedCallback, oldOverflow; + animObj = animObj || {}; + to = animObj.to || {}; + if (Ext.fx.Manager.hasFxBlock(me.id)) { + return me; + } + hasToWidth = Ext.isDefined(to.width); + if (hasToWidth) { + toWidth = Ext.Number.constrain(to.width, me.minWidth, me.maxWidth); + } + hasToHeight = Ext.isDefined(to.height); + if (hasToHeight) { + toHeight = Ext.Number.constrain(to.height, me.minHeight, me.maxHeight); + } + if (!animObj.dynamic && (hasToWidth || hasToHeight)) { + curWidth = (animObj.from ? animObj.from.width : undefined) || me.getWidth(); + w = curWidth; + curHeight = (animObj.from ? animObj.from.height : undefined) || me.getHeight(); + h = curHeight; + isExpanding = false; + if (hasToHeight && toHeight > curHeight) { + h = toHeight; + isExpanding = true; + } + if (hasToWidth && toWidth > curWidth) { + w = toWidth; + isExpanding = true; + } + if (hasToHeight || hasToWidth) { + oldOverflow = me.el.getStyle('overflow'); + if (oldOverflow !== 'hidden') { + me.el.setStyle('overflow', 'hidden'); + } + } + if (isExpanding) { + clearWidth = !Ext.isNumber(me.width); + clearHeight = !Ext.isNumber(me.height); + me.setSize(w, h); + me.el.setSize(curWidth, curHeight); + if (clearWidth) { + delete me.width; + } + if (clearHeight) { + delete me.height; + } + } + if (hasToWidth) { + to.width = toWidth; + } + if (hasToHeight) { + to.height = toHeight; + } + } + wasConstrained = me.constrain; + wasConstrainedHeader = me.constrainHeader; + if (wasConstrained || wasConstrainedHeader) { + me.constrain = me.constrainHeader = false; + passedCallback = animObj.callback; + animObj.callback = function() { + me.constrain = wasConstrained; + me.constrainHeader = wasConstrainedHeader; + if (passedCallback) { + passedCallback.call(animObj.scope || me, arguments); + } + if (oldOverflow !== 'hidden') { + me.el.setStyle('overflow', oldOverflow); + } + }; + } + return me.mixins.animate.animate.apply(me, arguments); +}, applyScrollable:function(scrollable, oldScrollable) { + var me = this, rendered = me.rendered, scrollableCfg, innerEl; + if (scrollable) { + if (scrollable === true || typeof scrollable === 'string') { + scrollableCfg = me._scrollableCfg[scrollable]; + if (!scrollableCfg) { + Ext.raise("'" + scrollable + "' is not a valid value for 'scrollable'"); + } + scrollable = scrollableCfg; + } + if (oldScrollable) { + oldScrollable.setConfig(scrollable); + scrollable = oldScrollable; + } else { + scrollable = Ext.Object.chain(scrollable); + if (rendered) { + scrollable.element = me.getOverflowEl(); + innerEl = me.getScrollerEl(); + if (innerEl) { + scrollable.innerElement = innerEl; + } + } + scrollable.autoRefresh = false; + if (Ext.supports.touchScroll === 1) { + scrollable.translatable = {translationMethod:'scrollparent'}; + scrollable.indicators = false; + } + scrollable = Ext.scroll.Scroller.create(scrollable); + scrollable.component = me; + } + } else { + if (oldScrollable) { + oldScrollable.setConfig({x:false, y:false}); + oldScrollable.destroy(); + scrollable = null; + } + } + if (me.rendered && !me.destroying && !me.destroyed) { + if (scrollable) { + me.getOverflowStyle(); + } else { + me.scrollFlags = me._scrollFlags.none; + } + me.updateLayout(); + } + return scrollable; +}, beforeComponentLayout:function() { + return true; +}, beforeDestroy:Ext.emptyFn, beforeLayout:function() { + if (this.floating) { + this.onBeforeFloatLayout(); + } +}, beforeSetPosition:function(x, y, animate) { + var me = this, pos = null, x0, hasX, hasY, adj; + if (x) { + if (Ext.isNumber(x0 = x[0])) { + animate = y; + y = x[1]; + x = x0; + } else { + if ((x0 = x.x) !== undefined) { + animate = y; + y = x.y; + x = x0; + } + } + } + if (me.constrain || me.constrainHeader) { + pos = me.calculateConstrainedPosition(null, [x, y], true); + if (pos) { + x = pos[0]; + y = pos[1]; + } + } + hasX = x !== undefined; + hasY = y !== undefined; + if (hasX || hasY) { + me.x = x; + me.y = y; + adj = me.adjustPosition(x, y); + pos = {x:adj.x, y:adj.y, anim:animate, hasX:hasX, hasY:hasY}; + } + return pos; +}, beforeShow:Ext.emptyFn, bubble:function(fn, scope, args) { + var p = this; + while (p) { + if (fn.apply(scope || p, args || [p]) === false) { + break; + } + p = p.getBubbleTarget(); + } + return this; +}, clearListeners:function() { + var me = this; + me.mixins.observable.clearListeners.call(me); + me.mixins.componentDelegation.clearDelegatedListeners.call(me); +}, cloneConfig:function(overrides) { + overrides = overrides || {}; + var id = overrides.id || Ext.id(), cfg = Ext.applyIf(overrides, this.initialConfig), self; + cfg.id = id; + self = Ext.getClass(this); + return new self(cfg); +}, destroy:function() { + var me = this, selectors = me.renderSelectors, viewModel = me.getConfig('viewModel', true), session = me.getConfig('session', true), selector, ownerCt, el; + if (!me.hasListeners.beforedestroy || me.fireEvent('beforedestroy', me) !== false) { + me.isDestroying = me.destroying = true; + ownerCt = me.floatParent || me.ownerCt; + if (me.floating) { + delete me.floatParent; + if (me.zIndexManager) { + me.zIndexManager.unregister(me); + me.zIndexManager = null; + } + } + me.removeBindings(); + me.beforeDestroy(); + me.destroyBindable(); + if (ownerCt && ownerCt.remove) { + ownerCt.remove(me, false); + } + me.stopAnimation(); + me.onDestroy(); + Ext.destroy(me.plugins); + if (me.rendered) { + Ext.Component.cancelLayout(me, true); + } + me.componentLayout = null; + if (me.hasListeners.destroy) { + me.fireEvent('destroy', me); + } + if (!me.preventRegister) { + Ext.ComponentManager.unregister(me); + } + me.mixins.state.destroy.call(me); + if (me.floating) { + me.onFloatDestroy(); + } + me.clearListeners(); + if (me.rendered) { + if (!me.preserveElOnDestroy) { + me.el.destroy(); + } + me.el.component = null; + me.mixins.elementCt.destroy.call(me); + if (selectors) { + for (selector in selectors) { + if (selectors.hasOwnProperty(selector)) { + el = me[selector]; + if (el) { + delete me[selector]; + el.destroy(); + } + } + } + } + me.data = me.el = me.frameBody = me.rendered = me.afterRenderEvents = null; + me.tpl = me.renderTpl = me.renderData = null; + me.focusableContainer = me.container = me.scrollable = null; + } + me.isDestroying = me.destroying = false; + me.callParent(); + } +}, disable:function(silent, fromParent) { + var me = this, container = me.focusableContainer, inherited = me.getInherited(); + if (!fromParent) { + inherited.disabled = true; + me.savedDisabled = true; + } + if (me.maskOnDisable) { + inherited.disableMask = true; + } + if (!me.disabled) { + if (container) { + container.beforeFocusableChildDisable(me); + } + me.addCls(me.disabledCls); + if (me.rendered) { + me.onDisable(); + } else { + me.disableOnRender = true; + } + me.disabled = true; + if (silent !== true) { + me.fireEvent('disable', me); + } + if (container) { + container.onFocusableChildDisable(me); + } + } + return me; +}, doFireEvent:function(eventName, args, bubbles) { + var me = this, ret = me.mixins.observable.doFireEvent.call(me, eventName, args, bubbles); + if (ret !== false) { + ret = me.mixins.componentDelegation.doFireDelegatedEvent.call(me, eventName, args); + } + return ret; +}, enable:function(silent, fromParent) { + var me = this, container = me.focusableContainer, inherited = me.getInherited(); + if (!fromParent) { + delete me.getInherited().disabled; + me.savedDisabled = false; + } + if (me.maskOnDisable) { + delete inherited.disableMask; + } + if (me.disabled) { + if (!(fromParent && inherited.hasOwnProperty('disabled'))) { + if (container) { + container.beforeFocusableChildEnable(me); + } + me.disableOnRender = false; + me.removeCls(me.disabledCls); + if (me.rendered) { + me.onEnable(); + } + me.disabled = false; + if (silent !== true) { + me.fireEvent('enable', me); + } + if (container) { + container.onFocusableChildEnable(me); + } + } + } + return me; +}, findParentBy:function(fn) { + var p; + for (p = this.getRefOwner(); p && !fn(p, this); p = p.getRefOwner()) { + } + return p || null; +}, findParentByType:function(xtype) { + return Ext.isFunction(xtype) ? this.findParentBy(function(p) { + return p.constructor === xtype; + }) : this.up(xtype); +}, findPlugin:function(ptype) { + var i, plugins = this.plugins, ln = plugins && plugins.length; + for (i = 0; i < ln; i++) { + if (plugins[i].ptype === ptype) { + return plugins[i]; + } + } +}, getAnimateTarget:function(target) { + target = target || this.animateTarget; + if (target) { + target = target.isComponent ? target.getEl() : Ext.get(target); + } + return target || null; +}, getBubbleTarget:function() { + return this.getRefOwner(); +}, getComponentLayout:function() { + var me = this; + if (!me.componentLayout || !me.componentLayout.isLayout) { + me.setComponentLayout(Ext.layout.Layout.create(me.componentLayout, 'autocomponent')); + } + return me.componentLayout; +}, getEl:function() { + return this.el; +}, getHeight:function() { + return this.el.getHeight(); +}, initInheritedState:function(inheritedState) { + var me = this, layout = me.componentLayout; + if (me.hidden) { + inheritedState.hidden = true; + } + if (me.collapseImmune) { + inheritedState.collapseImmune = true; + } + if (me.modelValidation !== undefined) { + inheritedState.modelValidation = me.modelValidation; + } + if (me.savedDisabled) { + inheritedState.disabled = true; + } + me.mixins.bindable.initInheritedState.call(me, inheritedState); + if (layout && layout.initInheritedState) { + layout.initInheritedState(inheritedState); + } +}, getId:function() { + var me = this, xtype; + if (!(me.id || (me.id = me.initialConfig.id))) { + xtype = me.getXType(); + if (xtype) { + xtype = xtype.replace(Ext.Component.INVALID_ID_CHARS_Re, '-'); + } else { + xtype = Ext.name.toLowerCase() + '-comp'; + } + me.id = xtype + '-' + me.getAutoId(); + } + return me.id; +}, getItemId:function() { + return this.itemId || this.id; +}, getLoader:function() { + var me = this, loader = me.loader; + if (loader) { + if (!loader.isLoader) { + me.loader = new Ext.ComponentLoader(Ext.apply({target:me}, loader)); + } else { + loader.setTarget(me); + } + return me.loader; + } + return null; +}, getMaskTarget:function() { + return this.maskElement ? this[this.maskElement] : null; +}, getPlugin:function(pluginId) { + var i, plugins = this.plugins, ln = plugins && plugins.length; + for (i = 0; i < ln; i++) { + if (plugins[i].pluginId === pluginId) { + return plugins[i]; + } + } + return null; +}, getPosition:function(local) { + var me = this, xy, isContainedFloater = me.isContainedFloater(), floatParentBox; + if (local === true && !isContainedFloater) { + return [me.getLocalX(), me.getLocalY()]; + } + xy = me.getXY(); + if (local === true && isContainedFloater) { + floatParentBox = me.floatParent.getTargetEl().getViewRegion(); + xy[0] -= floatParentBox.left; + xy[1] -= floatParentBox.top; + } + return xy; +}, getScrollX:function() { + var scroller = this.getScrollable(); + return scroller ? scroller.getPosition().x : 0; +}, getScrollY:function() { + var scroller = this.getScrollable(); + return scroller ? scroller.getPosition().y : 0; +}, getSize:function(contentSize) { + return this.el.getSize(contentSize); +}, getSizeModel:function(ownerCtSizeModel) { + var me = this, models = Ext.layout.SizeModel, ownerContext = me.componentLayout.ownerContext, width = me.width, height = me.height, typeofWidth, typeofHeight, hasPixelWidth, hasPixelHeight, heightModel, ownerLayout, policy, shrinkWrap, topLevel, widthModel, isFloating = me.floating || me.floated; + if (ownerContext) { + widthModel = ownerContext.widthModel; + heightModel = ownerContext.heightModel; + } + if (!widthModel || !heightModel) { + hasPixelWidth = (typeofWidth = typeof width) === 'number'; + hasPixelHeight = (typeofHeight = typeof height) === 'number'; + topLevel = isFloating || !(ownerLayout = me.ownerLayout); + if (topLevel) { + policy = Ext.layout.Layout.prototype.autoSizePolicy; + shrinkWrap = isFloating ? 3 : me.shrinkWrap; + if (hasPixelWidth) { + widthModel = models.configured; + } + if (hasPixelHeight) { + heightModel = models.configured; + } + } else { + policy = ownerLayout.getItemSizePolicy(me, ownerCtSizeModel); + shrinkWrap = ownerLayout.isItemShrinkWrap(me); + } + if (ownerContext) { + ownerContext.ownerSizePolicy = policy; + } + shrinkWrap = shrinkWrap === true ? 3 : shrinkWrap || 0; + if (topLevel && shrinkWrap) { + if (width && typeofWidth === 'string') { + shrinkWrap &= 2; + } + if (height && typeofHeight === 'string') { + shrinkWrap &= 1; + } + } + if (shrinkWrap !== 3) { + if (!ownerCtSizeModel) { + ownerCtSizeModel = me.ownerCt && me.ownerCt.getSizeModel(); + } + if (ownerCtSizeModel) { + shrinkWrap |= (ownerCtSizeModel.width.shrinkWrap ? 1 : 0) | (ownerCtSizeModel.height.shrinkWrap ? 2 : 0); + } + } + if (!widthModel) { + if (!policy.setsWidth) { + if (hasPixelWidth) { + widthModel = models.configured; + } else { + widthModel = shrinkWrap & 1 ? models.shrinkWrap : models.natural; + } + } else { + if (policy.readsWidth) { + if (hasPixelWidth) { + widthModel = models.calculatedFromConfigured; + } else { + widthModel = shrinkWrap & 1 ? models.calculatedFromShrinkWrap : models.calculatedFromNatural; + } + } else { + widthModel = models.calculated; + } + } + } + if (!heightModel) { + if (!policy.setsHeight) { + if (hasPixelHeight) { + heightModel = models.configured; + } else { + heightModel = shrinkWrap & 2 ? models.shrinkWrap : models.natural; + } + } else { + if (policy.readsHeight) { + if (hasPixelHeight) { + heightModel = models.calculatedFromConfigured; + } else { + heightModel = shrinkWrap & 2 ? models.calculatedFromShrinkWrap : models.calculatedFromNatural; + } + } else { + heightModel = models.calculated; + } + } + } + } + return widthModel.pairsByHeightOrdinal[heightModel.ordinal]; +}, getState:function() { + var me = this, state = null, sizeModel = me.getSizeModel(); + if (sizeModel.width.configured) { + state = me.addPropertyToState(state, 'width'); + } + if (sizeModel.height.configured) { + state = me.addPropertyToState(state, 'height'); + } + return state; +}, getUserCls:function() { + return this.userCls; +}, setUserCls:function(cls) { + var me = this, was = me.userCls; + if (cls !== was) { + me.userCls = cls; + if (me.rendered) { + me.el.replaceCls(was, cls); + } + } + return was; +}, getWidth:function() { + return this.el.getWidth(); +}, getXType:function() { + return this.self.xtype; +}, getXTypes:function() { + var self = this.self, xtypes, parentPrototype, parentXtypes; + if (!self.xtypes) { + xtypes = []; + parentPrototype = this; + while (parentPrototype) { + parentXtypes = parentPrototype.xtypes; + if (parentXtypes !== undefined) { + xtypes.unshift.apply(xtypes, parentXtypes); + } + parentPrototype = parentPrototype.superclass; + } + self.xtypeChain = xtypes; + self.xtypes = xtypes.join('/'); + } + return self.xtypes; +}, hasCls:function(cls) { + var el = this.rendered ? this.el : this.protoEl; + return el.hasCls.apply(el, arguments); +}, hasUICls:function(cls) { + var me = this, uiCls = me.uiCls || []; + return Ext.Array.contains(uiCls, cls); +}, hide:function(animateTarget, cb, scope) { + var me = this; + if (me.pendingShow) { + me.pendingShow = false; + } + if (!(me.rendered && !me.isVisible())) { + if (!me.hasListeners.beforehide || me.fireEvent('beforehide', me) !== false || me.hierarchicallyHidden) { + me.getInherited().hidden = me.hidden = true; + me.fireHierarchyEvent('beforehide'); + if (me.rendered) { + me.onHide.apply(me, arguments); + } + } + } + return me; +}, initComponent:function() { + var me = this, width = me.width, height = me.height; + if (me.plugins && !me.plugins.processed) { + me.plugins = me.constructPlugins(); + } + me.pluginsInitialized = true; + if (width != null || height != null) { + me.setSize(width, height); + } + if (me.listeners) { + me.on(me.listeners); + me.listeners = null; + } + if (me.focusable) { + me.initFocusable(); + } +}, initEvents:function() { + var me = this, afterRenderEvents = me.afterRenderEvents, afterRenderEvent, el, property, index, len; + if (afterRenderEvents) { + for (property in afterRenderEvents) { + el = me[property]; + if (el && el.on) { + afterRenderEvent = afterRenderEvents[property]; + for (index = 0, len = afterRenderEvent.length; index < len; ++index) { + me.mon(el, afterRenderEvent[index]); + } + } + } + } + if (me.focusable) { + me.initFocusableEvents(); + } +}, is:function(selector) { + return Ext.ComponentQuery.is(this, selector); +}, isDescendantOf:function(ancestor) { + var p; + for (p = this.getRefOwner(); p && p !== ancestor; p = p.getRefOwner()) { + } + return p || null; +}, isAncestor:function(possibleDescendant) { + while (possibleDescendant) { + if (possibleDescendant.getRefOwner() === this) { + return true; + } + possibleDescendant = possibleDescendant.getRefOwner(); + } +}, isDisabled:function() { + return this.disabled; +}, isDraggable:function() { + return !!this.draggable; +}, isDroppable:function() { + return !!this.droppable; +}, isFloating:function() { + return this.floating; +}, isHidden:function() { + return this.hidden; +}, isHierarchicallyHidden:function() { + var child = this, hidden = false, parent, parentInheritedState; + for (; parent = child.ownerCt || child.floatParent; child = parent) { + parentInheritedState = parent.getInherited(); + if (parentInheritedState.hidden) { + hidden = true; + break; + } + if (child.getInherited().collapseImmune) { + if (parent.collapsed && !child.collapseImmune) { + hidden = true; + break; + } + } else { + hidden = !!parentInheritedState.collapsed; + break; + } + } + return hidden; +}, isLayoutChild:function(ownerCandidate) { + return !this.floating && !!this.up(ownerCandidate); +}, isLayoutRoot:function() { + var me = this, ownerLayout = me.ownerLayout; + if (!ownerLayout || me._isLayoutRoot || me.floating) { + return true; + } + return ownerLayout.isItemLayoutRoot(me); +}, isLayoutSuspended:function() { + var comp = this, ownerLayout; + while (comp) { + if (comp.layoutSuspendCount || comp.suspendLayout) { + return true; + } + ownerLayout = comp.ownerLayout; + if (!ownerLayout) { + break; + } + comp = ownerLayout.owner; + } + return false; +}, isVisible:function(deep) { + var me = this, hidden; + if (me.hidden || !me.rendered || me.destroyed) { + hidden = true; + } else { + if (deep) { + hidden = me.isHierarchicallyHidden(); + } + } + return !hidden; +}, isXType:function(xtype, shallow) { + return shallow ? Ext.Array.indexOf(this.xtypes, xtype) !== -1 : !!this.xtypesMap[xtype]; +}, isMasked:function(deep) { + var me = this; + return !!(me.masked || me.loadMask && me.loadMask.isVisible() || deep && me.getInherited().masked); +}, setMasked:function(isMasked) { + var me = this, container = me.focusableContainer; + if (isMasked) { + me.masked = true; + me.getInherited().masked = isMasked; + } else { + me.masked = false; + delete me.getInherited().masked; + } + if (container) { + container.onFocusableChildMasked(me, isMasked); + } + return me; +}, mask:function(msg, msgCls, elHeight) { + var box = this.lastBox, target = this.getMaskTarget() || this.el; + if (box) { + elHeight = box.height; + } + target.mask(msg, msgCls, elHeight); + this.setMasked(true); +}, nextNode:function(selector, includeSelf) { + var node = this, ownerCt = node.ownerCt, result, it, len, i, sib; + if (includeSelf && node.is(selector)) { + return node; + } + if (ownerCt) { + for (it = ownerCt.items.items, i = Ext.Array.indexOf(it, node) + 1, len = it.length; i < len; i++) { + sib = it[i]; + if (sib.is(selector)) { + return sib; + } + if (sib.down) { + result = sib.down(selector); + if (result) { + return result; + } + } + } + return ownerCt.nextNode(selector); + } + return null; +}, nextSibling:function(selector) { + var o = this.ownerCt, it, last, idx, c; + if (o) { + it = o.items; + idx = it.indexOf(this) + 1; + if (idx) { + if (selector) { + for (last = it.getCount(); idx < last; idx++) { + if ((c = it.getAt(idx)).is(selector)) { + return c; + } + } + } else { + if (idx < it.getCount()) { + return it.getAt(idx); + } + } + } + } + return null; +}, onAdded:function(container, pos, instanced) { + var me = this; + me.ownerCt = container; + me.onInheritedAdd(me, instanced); + if (me.hasListeners && me.hasListeners.added) { + me.fireEvent('added', me, container, pos); + } + if (Ext.GlobalEvents.hasListeners.added) { + me.fireHierarchyEvent('added'); + } +}, onRemoved:function(destroying) { + var me = this, refHolder; + if (Ext.GlobalEvents.hasListeners.removed) { + me.fireHierarchyEvent('removed'); + } + if (me.hasListeners.removed) { + me.fireEvent('removed', me, me.ownerCt); + } + if (!destroying) { + me.removeBindings(); + } + me.onInheritedRemove(destroying); + me.ownerCt = me.ownerLayout = null; +}, onBoxReady:function(width, height) { + var me = this, label; + if (me.ariaLabelledBy || me.ariaDescribedBy) { + if (me.ariaLabelledBy) { + label = me.getAriaLabelEl(me.ariaLabelledBy); + if (label) { + me.ariaEl.dom.setAttribute('aria-labelledby', label); + } + } + if (me.ariaDescribedBy) { + label = me.getAriaLabelEl(me.ariaDescribedBy); + if (label) { + me.ariaEl.dom.setAttribute('aria-describedby', label); + } + } + } + if (me.resizable) { + me.initResizable(me.resizable); + } + if (me.draggable) { + me.initDraggable(); + } + if (me.hasListeners.boxready) { + me.fireEvent('boxready', me, width, height); + } +}, onDestroy:function() { + var me = this, container = me.focusableContainer; + if (me.rendered) { + Ext.destroy(me.dd, me.resizer, me.proxy, me.proxyWrap, me.resizerComponent, me.scrollable, me.contentEl); + } + if (container) { + container.onFocusableChildDestroy(me); + } + if (me.focusable) { + me.destroyFocusable(); + } + Ext.destroy(me.componentLayout, me.loadMask, me.floatingDescendants); +}, onDisable:function() { + var me = this, dom, nodeName; + if (me.focusable) { + me.disableFocusable(); + } + if (!me.ariaStaticRoles[me.ariaRole]) { + me.ariaEl.dom.setAttribute('aria-disabled', true); + } + if (me.maskOnDisable && !me.getInheritedConfig('disableMask', true)) { + dom = me.el.dom; + nodeName = dom.nodeName; + if (me.disabledRe.test(nodeName)) { + dom.disabled = true; + } + if (!me.nonMaskableRe.test(nodeName)) { + me.mask(); + } + } +}, onEnable:function() { + var me = this, dom, nodeName; + if (me.focusable) { + me.enableFocusable(); + } + if (!me.ariaStaticRoles[me.ariaRole]) { + me.ariaEl.dom.setAttribute('aria-disabled', false); + } + if (me.maskOnDisable && me.getInherited().hasOwnProperty('masked')) { + dom = me.el.dom; + nodeName = dom.nodeName; + if (me.disabledRe.test(nodeName)) { + dom.disabled = false; + } + if (!me.nonMaskableRe.test(nodeName)) { + me.unmask(); + } + } +}, onGlobalShow:function(c) { + if (this.up(c)) { + this.getScrollable().restoreState(); + } +}, onHide:function(animateTarget, cb, scope) { + var me = this, ghostPanel, fromSize, toBox; + if (!me.ariaStaticRoles[me.ariaRole]) { + me.ariaEl.dom.setAttribute('aria-hidden', true); + } + me.revertFocus(); + animateTarget = me.getAnimateTarget(animateTarget); + if (!me.ghost) { + animateTarget = null; + } + if (animateTarget) { + toBox = {x:animateTarget.getX(), y:animateTarget.getY(), width:animateTarget.dom.offsetWidth, height:animateTarget.dom.offsetHeight}; + ghostPanel = me.ghost(); + ghostPanel.el.stopAnimation(); + fromSize = me.getSize(); + ghostPanel.el.animate({to:toBox, listeners:{afteranimate:function() { + delete ghostPanel.componentLayout.lastComponentSize; + ghostPanel.el.hide(); + ghostPanel.setHiddenState(true); + ghostPanel.el.setSize(fromSize); + me.afterHide(cb, scope); + }}}); + } + me.el.hide(); + if (!animateTarget) { + me.afterHide(cb, scope); + } +}, onPosition:Ext.emptyFn, onResize:function(width, height, oldWidth, oldHeight) { + var me = this; + if (me.floating && me.constrain) { + me.doConstrain(); + } + me.refreshScroll(); + if (me.hasListeners.resize) { + me.fireEvent('resize', me, width, height, oldWidth, oldHeight); + } +}, onShow:function() { + var me = this; + if (!me.ariaStaticRoles[me.ariaRole]) { + me.ariaEl.dom.setAttribute('aria-hidden', false); + } + me.el.show(); + me.updateLayout({isRoot:false}); + if (me.floating) { + if (me.maximized) { + me.fitContainer(); + } else { + if (me.constrain) { + me.doConstrain(); + } + } + } +}, onShowComplete:function(cb, scope) { + var me = this, container = me.focusableContainer; + if (me.floating) { + me.onFloatShow(); + } + Ext.callback(cb, scope || me); + me.fireEvent('show', me); + if (container) { + container.onFocusableChildShow(me); + } + delete me.hiddenByLayout; +}, onShowVeto:Ext.emptyFn, previousNode:function(selector, includeSelf) { + var node = this, ownerCt = node.ownerCt, result, it, i, sib; + if (includeSelf && node.is(selector)) { + return node; + } + if (ownerCt) { + for (it = ownerCt.items.items, i = Ext.Array.indexOf(it, node) - 1; i > -1; i--) { + sib = it[i]; + if (sib.query) { + result = sib.query(selector); + result = result[result.length - 1]; + if (result) { + return result; + } + } + if (sib.is(selector)) { + return sib; + } + } + return ownerCt.previousNode(selector, true); + } + return null; +}, previousSibling:function(selector) { + var o = this.ownerCt, it, idx, c; + if (o) { + it = o.items; + idx = it.indexOf(this); + if (idx !== -1) { + if (selector) { + for (--idx; idx >= 0; idx--) { + if ((c = it.getAt(idx)).is(selector)) { + return c; + } + } + } else { + if (idx) { + return it.getAt(--idx); + } + } + } + } + return null; +}, registerFloatingItem:function(cmp) { + var me = this; + if (!me.floatingDescendants) { + me.floatingDescendants = new Ext.ZIndexManager(me); + } + me.floatingDescendants.register(cmp); +}, removeCls:function(cls) { + var me = this, el = me.rendered ? me.el : me.protoEl; + el.removeCls.apply(el, arguments); + return me; +}, removeClsWithUI:function(classes, skip) { + var me = this, clsArray = [], i = 0, extArray = Ext.Array, remove = extArray.remove, uiCls = me.uiCls = extArray.clone(me.uiCls), activeUI = me.activeUI, length, cls; + if (typeof classes === 'string') { + classes = classes.indexOf(' ') < 0 ? [classes] : Ext.String.splitWords(classes); + } + length = classes.length; + for (i = 0; i < length; i++) { + cls = classes[i]; + if (cls && me.hasUICls(cls)) { + remove(uiCls, cls); + if (activeUI) { + clsArray = clsArray.concat(me.removeUIClsFromElement(cls)); + } + } + } + if (skip !== true && activeUI) { + me.removeCls(clsArray); + } + return clsArray; +}, resumeLayouts:function(flushOptions) { + var me = this; + if (!me.rendered) { + return; + } + if (!me.layoutSuspendCount) { + Ext.log.warn('Mismatched call to resumeLayouts - layouts are currently not suspended.'); + } + if (me.layoutSuspendCount && !--me.layoutSuspendCount) { + me.suspendLayout = false; + if (flushOptions && !me.isLayoutSuspended()) { + me.updateLayout(flushOptions); + } + } +}, scrollBy:function(deltaX, deltaY, animate) { + var scroller = this.getScrollable(); + if (scroller) { + scroller.scrollBy(deltaX, deltaY, animate); + } +}, scrollTo:function(x, y, animate) { + var scroller = this.getScrollable(); + if (scroller) { + scroller.scrollTo(x, y, animate); + } +}, setAutoScroll:function(scroll) { + this.setScrollable(!!scroll); + return this; +}, setBorder:function(border, targetEl) { + var me = this, initial = !!targetEl; + if (me.rendered || initial) { + if (!initial) { + targetEl = me.el; + } + if (!border) { + border = 0; + } else { + if (border === true) { + border = '1px'; + } else { + border = this.unitizeBox(border); + } + } + targetEl.setStyle('border-width', border); + if (!initial) { + me.updateLayout(); + } + } + me.border = border; +}, setDock:function(dock) { + var me = this, ownerCt = me.ownerCt; + if (dock !== me.dock) { + if (ownerCt && ownerCt.moveDocked) { + ownerCt.moveDocked(me, dock); + } else { + me.dock = dock; + } + } + return me; +}, setDisabled:function(disabled) { + return this[disabled ? 'disable' : 'enable'](); +}, setFlex:function(flex) { + this.flex = flex; +}, setHeight:function(height) { + return this.setSize(undefined, height); +}, setLoading:function(load, targetEl) { + var me = this, config = {target:me}; + if (me.rendered) { + if (load !== false) { + if (Ext.isString(load)) { + config.msg = load; + } else { + Ext.apply(config, load); + } + if (!me.loadMask || !me.loadMask.isLoadMask) { + if (targetEl && config.useTargetEl == null) { + config.useTargetEl = true; + } + me.loadMask = new Ext.LoadMask(config); + } else { + Ext.apply(me.loadMask, config); + } + if (me.loadMask.isVisible()) { + me.loadMask.syncMaskState(); + } else { + me.loadMask.show(); + } + } else { + if (me.loadMask && me.loadMask.isLoadMask) { + me.loadMask.hide(); + } + } + } + return me.loadMask; +}, setMargin:function(margin, preventLayout) { + var me = this; + if (me.rendered) { + if (!margin && margin !== 0) { + margin = ''; + } else { + if (margin === true) { + margin = 5; + } + margin = this.unitizeBox(margin); + } + me.margin = margin; + me.margin$ = null; + me.getEl().setStyle('margin', margin); + if (!preventLayout) { + me.updateLayout(me._notAsLayoutRoot); + } + } else { + me.margin = margin; + } +}, setOverflowXY:function(overflowX, overflowY) { + this.setScrollable({x:overflowX && overflowX !== 'hidden' ? overflowX : false, y:overflowY && overflowY !== 'hidden' ? overflowY : false}); + return this; +}, setPagePosition:function(x, y, animate) { + var me = this, p, floatParentBox; + if (Ext.isArray(x)) { + y = x[1]; + x = x[0]; + } + me.pageX = x; + me.pageY = y; + if (me.floating) { + if (me.isContainedFloater()) { + floatParentBox = me.floatParent.getTargetEl().getViewRegion(); + if (Ext.isNumber(x) && Ext.isNumber(floatParentBox.left)) { + x -= floatParentBox.left; + } + if (Ext.isNumber(y) && Ext.isNumber(floatParentBox.top)) { + y -= floatParentBox.top; + } + } else { + p = me.el.translateXY(x, y); + x = p.x; + y = p.y; + } + me.setPosition(x, y, animate); + } else { + p = me.el.translateXY(x, y); + me.setPosition(p.x, p.y, animate); + } + return me; +}, setPosition:function(x, y, animate) { + var me = this, pos = me.beforeSetPosition.apply(me, arguments); + if (pos && me.rendered) { + x = pos.x; + y = pos.y; + if (animate) { + if (x !== me.getLocalX() || y !== me.getLocalY()) { + me.stopAnimation(); + me.animate(Ext.apply({duration:1000, listeners:{afteranimate:Ext.Function.bind(me.afterSetPosition, me, [x, y])}, to:{left:x, top:y}}, animate)); + } + } else { + me.setLocalXY(x, y); + me.afterSetPosition(x, y); + } + } + return me; +}, setScrollX:function(x, animate) { + var scroller = this.getScrollable(); + if (scroller) { + scroller.scrollTo(x, null, animate); + } +}, setScrollY:function(y, animate) { + var scroller = this.getScrollable(); + if (scroller) { + scroller.scrollTo(null, y, animate); + } +}, setSize:function(width, height) { + var me = this, oldWidth = me.width, oldHeight = me.height, widthIsString, heightIsString; + if (width && typeof width === 'object') { + height = width.height; + width = width.width; + } + if (typeof width === 'number') { + me.width = Ext.Number.constrain(width, me.minWidth, me.maxWidth); + } else { + if (width === null) { + delete me.width; + } else { + if (typeof width === 'string') { + widthIsString = true; + me.width = width; + } + } + } + if (typeof height === 'number') { + me.height = Ext.Number.constrain(height, me.minHeight, me.maxHeight); + } else { + if (height === null) { + delete me.height; + } else { + if (typeof height === 'string') { + heightIsString = true; + me.height = height; + } + } + } + if (me.rendered && me.isVisible()) { + if (oldWidth !== me.width || oldHeight !== me.height) { + if (me.liquidLayout || widthIsString || heightIsString) { + me.el.setSize(me.width, me.height); + } + me.updateLayout(me._notAsLayoutRoot); + } + } + return me; +}, setStyle:function(prop, value) { + var el = this.el || this.protoEl; + el.setStyle(prop, value); + return this; +}, setUI:function(ui) { + var me = this, uiCls = me.uiCls, activeUI = me.activeUI, classes; + if (ui === activeUI) { + return; + } + if (activeUI) { + classes = me.removeClsWithUI(uiCls, true); + if (classes.length) { + me.removeCls(classes); + } + me.removeUIFromElement(); + } else { + me.uiCls = []; + } + me.ui = ui; + me.activeUI = ui; + me.addUIToElement(); + classes = me.addClsWithUI(uiCls, true); + if (classes.length) { + me.addCls(classes); + } + if (me.rendered) { + me.updateLayout(); + } +}, setVisible:function(visible) { + return this[visible ? 'show' : 'hide'](); +}, setHidden:function(hidden) { + return this.setVisible(!hidden); +}, setWidth:function(width) { + return this.setSize(width); +}, show:function(animateTarget, cb, scope) { + var me = this, rendered = me.rendered; + if (me.hierarchicallyHidden || me.floating && !rendered && me.isHierarchicallyHidden()) { + if (!rendered) { + me.initHierarchyEvents(); + } + if (arguments.length > 1) { + arguments[0] = null; + me.pendingShow = arguments; + } else { + me.pendingShow = true; + } + } else { + if (rendered && me.isVisible()) { + if (me.floating) { + me.onFloatShow(); + } + } else { + if (me.fireEvent('beforeshow', me) !== false) { + me.hidden = false; + delete this.getInherited().hidden; + Ext.suspendLayouts(); + if (!rendered && (me.autoRender || me.floating)) { + me.doAutoRender(); + rendered = me.rendered; + } + if (rendered) { + me.beforeShow(); + Ext.resumeLayouts(); + me.onShow.apply(me, arguments); + me.afterShow.apply(me, arguments); + } else { + Ext.resumeLayouts(true); + } + } else { + me.onShowVeto(); + } + } + } + return me; +}, showAt:function(x, y, animate) { + var me = this; + if (!me.rendered && (me.autoRender || me.floating)) { + me.x = x; + me.y = y; + return me.show(); + } + if (me.floating) { + me.setPosition(x, y, animate); + } else { + me.setPagePosition(x, y, animate); + } + return me.show(); +}, showBy:function(cmp, pos, off) { + var me = this; + if (!me.floating) { + Ext.log.warn('Using showBy on a non-floating component'); + } + if (me.floating && cmp) { + me.alignTarget = cmp; + if (pos) { + me.defaultAlign = pos; + } + if (off) { + me.alignOffset = off; + } + me.show(); + if (!me.hidden) { + me.alignTo(cmp, pos || me.defaultAlign, off || me.alignOffset); + } + } + return me; +}, suspendLayouts:function() { + var me = this; + if (!me.rendered) { + return; + } + if (++me.layoutSuspendCount === 1) { + me.suspendLayout = true; + } +}, unitizeBox:function(box) { + return Ext.Element.unitizeBox(box); +}, unmask:function() { + (this.getMaskTarget() || this.el).unmask(); + this.setMasked(false); +}, unregisterFloatingItem:function(cmp) { + var me = this; + if (me.floatingDescendants) { + me.floatingDescendants.unregister(cmp); + } +}, up:function(selector, limit) { + var result = this.getRefOwner(), limitSelector = typeof limit === 'string', limitCount = typeof limit === 'number', limitComponent = limit && limit.isComponent, steps = 0; + if (selector) { + for (; result; result = result.getRefOwner()) { + steps++; + if (selector.isComponent) { + if (result === selector) { + return result; + } + } else { + if (Ext.ComponentQuery.is(result, selector)) { + return result; + } + } + if (limitSelector && result.is(limit)) { + return; + } + if (limitCount && steps === limit) { + return; + } + if (limitComponent && result === limit) { + return; + } + } + } + return result; +}, update:function(htmlOrData, loadScripts, callback, scriptScope) { + var me = this, isData = me.tpl && !Ext.isString(htmlOrData), scroller = me.getScrollable(), container = me.focusableContainer, sizeModel, doLayout, el; + if (isData) { + me.data = htmlOrData && htmlOrData.isEntity ? htmlOrData.getData(true) : htmlOrData; + } else { + me.html = Ext.isObject(htmlOrData) ? Ext.DomHelper.markup(htmlOrData) : htmlOrData; + } + if (me.rendered) { + sizeModel = me.getSizeModel(); + doLayout = sizeModel.width.shrinkWrap || sizeModel.height.shrinkWrap; + if (me.isContainer) { + el = me.layout.getRenderTarget(); + doLayout = doLayout || me.items.items.length > 0; + } else { + el = me.touchScroll ? me.getScrollerEl() : me.getTargetEl(); + } + if (isData) { + me.tpl[me.tplWriteMode](el, me.data || {}); + } else { + el.setHtml(me.html, loadScripts, callback, scriptScope || me); + } + if (doLayout) { + me.updateLayout(); + } + if (scroller) { + scroller.refresh(true); + } + if (container) { + container.onFocusableChildUpdate(me); + } + } +}, setHtml:function(html, loadScripts, scriptScope) { + this.update(html, loadScripts, null, scriptScope); +}, applyData:function(data) { + this.update(data); +}, updateBox:function(box) { + this.setSize(box.width, box.height); + this.setPagePosition(box.x, box.y); + return this; +}, _asLayoutRoot:{isRoot:true}, _notAsLayoutRoot:{isRoot:false}, updateLayout:function(options) { + var me = this, defer, lastBox = me.lastBox, isRoot = options && options.isRoot; + if (lastBox) { + lastBox.invalid = true; + } + if (!me.rendered || me.layoutSuspendCount || me.suspendLayout) { + return; + } + if (me.hidden) { + Ext.Component.cancelLayout(me); + } else { + if (typeof isRoot !== 'boolean') { + isRoot = me.isLayoutRoot(); + } + } + if (isRoot || !me.ownerLayout || !me.ownerLayout.onContentChange(me)) { + if (!me.isLayoutSuspended()) { + defer = options && options.hasOwnProperty('defer') ? options.defer : me.deferLayouts; + Ext.Component.updateLayout(me, defer); + } + } +}, updateMaxHeight:function(maxHeight, oldMaxHeight) { + this.changeConstraint(maxHeight, oldMaxHeight, 'min', 'max-height', 'height'); +}, updateMaxWidth:function(maxWidth, oldMaxWidth) { + this.changeConstraint(maxWidth, oldMaxWidth, 'min', 'max-width', 'width'); +}, updateMinHeight:function(minHeight, oldMinHeight) { + this.changeConstraint(minHeight, oldMinHeight, 'max', 'min-height', 'height'); +}, updateMinWidth:function(minWidth, oldMinWidth) { + this.changeConstraint(minWidth, oldMinWidth, 'max', 'min-width', 'width'); +}, getAnchorToXY:function(el, anchor, local, mySize) { + return el.getAnchorXY(anchor, local, mySize); +}, getBorderPadding:function() { + return this.el.getBorderPadding(); +}, getLocalX:function() { + return this.el.getLocalX(); +}, getLocalXY:function() { + return this.el.getLocalXY(); +}, getLocalY:function() { + return this.el.getLocalY(); +}, getX:function() { + return this.el.getX(); +}, getXY:function() { + return this.el.getXY(); +}, getY:function() { + return this.el.getY(); +}, setLocalX:function(x) { + this.el.setLocalX(x); +}, setLocalXY:function(x, y) { + this.el.setLocalXY(x, y); +}, setLocalY:function(y) { + this.el.setLocalY(y); +}, setX:function(x, animate) { + this.el.setX(x, animate); +}, setXY:function(xy, animate) { + this.el.setXY(xy, animate); +}, setY:function(y, animate) { + this.el.setY(y, animate); +}, privates:{addOverCls:function() { + var me = this; + if (!me.disabled) { + me.el.addCls(me.overCls); + } +}, addUIToElement:function() { + var me = this, baseClsUI = me.baseCls + '-' + me.ui, childEls, childElName, el, suffix; + me.addCls(baseClsUI); + if (me.rendered && me.frame && !Ext.supports.CSS3BorderRadius) { + baseClsUI += '-'; + childEls = me.getChildEls(); + for (childElName in childEls) { + suffix = childEls[childElName].frame; + if (suffix && suffix !== true) { + el = me[childElName]; + if (el) { + el.addCls(baseClsUI + suffix); + } + } + } + } +}, changeConstraint:function(newValue, oldValue, constrainMethod, styleName, sizeName) { + var me = this, size = me[sizeName]; + if (newValue != null && typeof size === 'number') { + me[sizeName] = Math[constrainMethod](size, newValue); + } + if (me.liquidLayout) { + if (newValue != null) { + me.setStyle(styleName, newValue + 'px'); + } else { + if (oldValue) { + me.setStyle(styleName, ''); + } + } + } + if (me.rendered) { + me.updateLayout(); + } +}, constructPlugin:function(plugin) { + var me = this; + if (typeof plugin === 'string') { + plugin = Ext.PluginManager.create({}, plugin, me); + } else { + plugin = Ext.PluginManager.create(plugin, null, me); + } + return plugin; +}, constructPlugins:function() { + var me = this, plugins = me.plugins, result, i, len; + if (plugins) { + result = []; + result.processed = true; + if (!Ext.isArray(plugins)) { + plugins = [plugins]; + } + for (i = 0, len = plugins.length; i < len; i++) { + result[i] = me.constructPlugin(plugins[i]); + } + } + me.pluginsInitialized = true; + return result; +}, detachFromBody:function() { + Ext.getDetachedBody().appendChild(this.el); + Ext.Component.cancelLayout(this); + this.isDetached = true; +}, doAddListener:function(ename, fn, scope, options, order, caller, manager) { + var me = this, listeners, option, eventOptions, elementName, element, delegate; + if (Ext.isObject(fn) || options && options.element) { + if (options.element) { + elementName = options.element; + listeners = {}; + listeners[ename] = fn; + if (scope) { + listeners.scope = scope; + } + eventOptions = me.$elementEventOptions; + for (option in options) { + if (eventOptions[option]) { + listeners[option] = options[option]; + } + } + } else { + listeners = fn; + elementName = ename; + } + element = me[elementName]; + if (element && element.isObservable) { + me.mon(element, listeners); + } else { + me.afterRenderEvents = me.afterRenderEvents || {}; + if (!me.afterRenderEvents[elementName]) { + me.afterRenderEvents[elementName] = []; + } + me.afterRenderEvents[elementName].push(listeners); + } + return; + } + if (options) { + delegate = options.delegate; + if (delegate) { + me.mixins.componentDelegation.addDelegatedListener.call(me, ename, fn, scope, options, order, caller, manager); + return; + } + } + me.mixins.observable.doAddListener.call(me, ename, fn, scope, options, order, caller, manager); +}, doRemoveListener:function(eventName, fn, scope) { + var me = this; + me.mixins.observable.doRemoveListener.call(me, eventName, fn, scope); + me.mixins.componentDelegation.removeDelegatedListener.call(me, eventName, fn, scope); +}, fireHierarchyEvent:function(eventName) { + var globalEvents = Ext.GlobalEvents; + if (globalEvents.hasListeners[eventName]) { + globalEvents.fireEvent(eventName, this); + } +}, getActionEl:function() { + return this.el; +}, getAutoId:function() { + this.autoGenId = true; + return ++Ext.Component.AUTO_ID; +}, getContentTarget:function() { + return this.el; +}, getDragEl:function() { + return this.el; +}, getOverflowEl:function() { + return this.getTargetEl(); +}, getOverflowStyle:function() { + var me = this, scroller = me.getScrollable(), flags = me._scrollFlags, x, y, scrollFlags; + if (scroller) { + x = scroller.getX(); + if (x === true) { + x = 'auto'; + } + y = scroller.getY(); + if (y === true) { + y = 'auto'; + } + scrollFlags = flags[x][y]; + } else { + scrollFlags = flags.none; + } + me.scrollFlags = scrollFlags; + return {overflowX:scrollFlags.overflowX, overflowY:scrollFlags.overflowY}; +}, getPlugins:function() { + var plugins = this.plugins; + plugins = plugins && plugins.processed ? plugins : this.constructPlugins(); + return plugins || null; +}, getProxy:function() { + var me = this, target; + if (!me.proxy) { + target = Ext.getBody(); + me.proxy = me.el.createProxy(Ext.baseCSSPrefix + 'proxy-el', target, true); + } + return me.proxy; +}, getScrollerEl:function() { + var me = this; + return me.scrollerEl || (me.scrollerEl = me.componentLayout.getScrollerEl() || me.getOverflowEl().child(me.scrollerSelector)); +}, getTargetEl:function() { + return this.frameBody || this.el; +}, getTdCls:function() { + return Ext.baseCSSPrefix + this.getTdType() + '-' + this.ui + '-cell'; +}, getTdType:function() { + return this.xtype; +}, getTpl:function(name) { + return Ext.XTemplate.getTpl(this, name); +}, initCls:function() { + var me = this, cls = [me.baseCls], targetCls = me.getComponentLayout().targetCls; + if (targetCls) { + cls.push(targetCls); + } + if (me.componentCls) { + cls.push(me.componentCls); + } else { + me.componentCls = me.baseCls; + } + return cls; +}, initDraggable:function() { + var me = this, dragTarget = me.resizer && me.resizer.el !== me.el ? me.resizerComponent = new Ext.Component({el:me.resizer.el, rendered:true, container:me.container}) : me, ddConfig = Ext.applyIf({el:dragTarget.getDragEl(), constrainTo:me.constrain || me.draggable.constrain ? me.constrainTo || (me.floatParent ? me.floatParent.getTargetEl() : me.container) : undefined}, me.draggable); + if (me.constrain || me.constrainDelegate) { + ddConfig.constrain = me.constrain; + ddConfig.constrainDelegate = me.constrainDelegate; + } + me.dd = new Ext.util.ComponentDragger(dragTarget, ddConfig); +}, initPadding:function(targetEl) { + var me = this, padding = me.padding; + if (padding != null) { + if (me.touchScroll || me.layout && me.layout.managePadding && me.contentPaddingProperty === 'padding') { + targetEl.setStyle('padding', 0); + } else { + targetEl.setStyle('padding', this.unitizeBox(padding === true ? 5 : padding)); + } + } +}, initPlugin:function(plugin) { + plugin.init(this); + return plugin; +}, initResizable:function(resizable) { + var me = this; + resizable = Ext.apply({target:me, dynamic:false, constrainTo:me.constrain || resizable && resizable.constrain ? me.constrainTo || (me.floatParent ? me.floatParent.getTargetEl() : me.container) : undefined, handles:me.resizeHandles}, resizable); + resizable.target = me; + me.resizer = new Ext.resizer.Resizer(resizable); +}, initStyles:function(targetEl) { + var me = this, margin = me.margin, border = me.border, cls = me.cls, style = me.style, x = me.x, y = me.y, liquidLayout = me.liquidLayout, width, height; + me.initPadding(targetEl); + if (margin != null) { + targetEl.setStyle('margin', this.unitizeBox(margin === true ? 5 : margin)); + } + if (border != null) { + me.setBorder(border, targetEl); + } + if (cls && cls !== me.initialCls) { + targetEl.addCls(cls); + me.cls = me.initialCls = null; + } + if (style && style !== me.initialStyle) { + targetEl.setStyle(style); + me.style = me.initialStyle = null; + } + if (x != null) { + targetEl.setStyle(me.horizontalPosProp, typeof x === 'number' ? x + 'px' : x); + } + if (y != null) { + targetEl.setStyle('top', typeof y === 'number' ? y + 'px' : y); + } + if (!me.ownerCt || me.floating) { + if (Ext.scopeCss) { + targetEl.addCls(me.rootCls); + } + targetEl.addCls(me.borderBoxCls); + } + if (liquidLayout || !me.getFrameInfo()) { + width = me.width; + height = me.height; + if (width != null) { + if (typeof width === 'number') { + targetEl.setStyle('width', width + 'px'); + } else { + targetEl.setStyle('width', width); + } + } + if (height != null) { + if (typeof height === 'number') { + targetEl.setStyle('height', height + 'px'); + } else { + targetEl.setStyle('height', height); + } + } + } +}, isContainedFloater:function() { + return this.floating && this.floatParent; +}, isDescendant:function(ancestor) { + if (ancestor.isContainer) { + for (var c = this.ownerCt; c; c = c.ownerCt) { + if (c === ancestor) { + return true; + } + } + } + return false; +}, owns:function(element) { + var result = false, cmp; + if (element.isEvent) { + element = element.target; + } else { + if (element.isElement) { + element = element.dom; + } + } + cmp = Ext.Component.fromElement(element); + if (cmp) { + result = cmp === this || !!cmp.up(this); + } + return result; +}, parseBox:function(box) { + return Ext.Element.parseBox(box); +}, reattachToBody:function() { + this.isDetached = false; +}, refreshScroll:function() { + var scroller = this.getScrollable(); + if (scroller) { + scroller.refresh(); + } +}, removeManagedListenerItem:function(isClear, managedListener, item, ename, fn, scope) { + var me = this, element = managedListener.options ? managedListener.options.element : null; + if (element) { + element = me[element]; + if (element && element.un) { + if (isClear || managedListener.item === item && managedListener.ename === ename && (!fn || managedListener.fn === fn) && (!scope || managedListener.scope === scope)) { + element.un(managedListener.ename, managedListener.fn, managedListener.scope); + if (!isClear) { + Ext.Array.remove(me.managedListeners, managedListener); + } + } + } + } else { + return me.mixins.observable.removeManagedListenerItem.apply(me, arguments); + } +}, removeOverCls:function() { + this.el.removeCls(this.overCls); +}, removePlugin:function(plugin) { + Ext.Array.remove(this.plugins, plugin); + plugin.destroy(); +}, removeUIFromElement:function() { + var me = this, baseClsUI = me.baseCls + '-' + me.ui, childEls, childElName, el, suffix; + me.removeCls(baseClsUI); + if (me.rendered && me.frame && !Ext.supports.CSS3BorderRadius) { + baseClsUI += '-'; + childEls = me.getChildEls(); + for (childElName in childEls) { + suffix = childEls[childElName].frame; + if (suffix && suffix !== true) { + el = me[childElName]; + if (el) { + el.removeCls(baseClsUI + suffix); + } + } + } + } +}, setComponentLayout:function(layout) { + var currentLayout = this.componentLayout; + if (currentLayout && currentLayout.isLayout && currentLayout !== layout) { + currentLayout.setOwner(null); + } + this.componentLayout = layout; + layout.setOwner(this); +}, setHiddenState:function(hidden) { + var me = this, inheritedState = me.getInherited(), zIndexManager = me.zIndexManager; + me.hidden = hidden; + if (hidden) { + inheritedState.hidden = true; + } else { + delete inheritedState.hidden; + } + if (zIndexManager) { + zIndexManager.onComponentShowHide(me); + } +}, setupProtoEl:function() { + var cls = this.initCls(); + this.protoEl.addCls(cls); +}, wrapPrimaryEl:function(dom) { + var me = this, el = me.el; + if (!el || !el.isElement) { + me.el = Ext.get(dom); + } + if (me.floating) { + this.mixins.floating.constructor.call(this); + } +}}, deprecated:{5:{methods:{addClass:'addCls', doComponentLayout:function() { + this.updateLayout(); + return this; +}, removeClass:'removeCls', forceComponentLayout:'updateLayout', setDocked:'setDock'}}}}, function(Component) { + var prototype = Component.prototype; + (prototype.$elementEventOptions = Ext.Object.chain(Ext.Element.prototype.$eventOptions)).element = 1; + (prototype.$eventOptions = Ext.Object.chain(prototype.$eventOptions)).delegate = 1; + Component.createAlias({on:'addListener', prev:'previousSibling', next:'nextSibling'}); + Ext.resumeLayouts = function(flush) { + Component.resumeLayouts(flush); + }; + Ext.suspendLayouts = function() { + Component.suspendLayouts(); + }; + Ext.batchLayouts = function(fn, scope) { + Component.suspendLayouts(); + fn.call(scope); + Component.resumeLayouts(true); + }; + Ext.setGlyphFontFamily = function(fontFamily) { + Ext._glyphFontFamily = fontFamily; + }; + Component.hierarchyEventSource = prototype.hierarchyEventSource = Ext.GlobalEvents; + Ext.onReady(function() { + if (Ext.supports.HighContrastMode) { + Ext.getBody().addCls(Component.ariaHighContrastModeCls); + } + }); + var metaTags = document.getElementsByTagName('head')[0].getElementsByTagName('meta'), len = metaTags.length, i, hasViewport; + for (i = 0; i < len; i++) { + if (metaTags[i].name === 'viewport') { + hasViewport = true; + } + } + if (!hasViewport) { + Ext.log.warn('Ext JS requires a viewport meta tag in order to function correctly on mobile devices. Please add the following tag to the \x3chead\x3e of your html page: \n \x3cmeta name\x3d"viewport" content\x3d"width\x3ddevice-width, initial-scale\x3d1, maximum-scale\x3d1, user-scalable\x3dno"\x3e'); + } +}); +Ext.define('Ext.theme.neptune.Component', {override:'Ext.Component', initComponent:function() { + this.callParent(); + if (this.dock && this.border === undefined) { + this.border = false; + } +}, privates:{initStyles:function() { + var me = this, hasOwnBorder = me.hasOwnProperty('border'), border = me.border; + if (me.dock) { + me.border = null; + } + me.callParent(arguments); + if (hasOwnBorder) { + me.border = border; + } else { + delete me.border; + } +}}}, function() { + Ext.namespace('Ext.theme.is').Neptune = true; + Ext.theme.name = 'Neptune'; +}); +Ext.define('Ext.theme.triton.Component', {override:'Ext.Component'}, function() { + Ext.namespace('Ext.theme.is').Triton = true; + Ext.theme.name = 'Triton'; +}); +Ext.define('Ext.overrides.app.domain.Component', {override:'Ext.app.domain.Component'}, function(ComponentDomain) { + ComponentDomain.monitor(Ext.Component); +}); +Ext.define('Ext.app.EventBus', {singleton:true, constructor:function() { + var me = this, domains = Ext.app.EventDomain.instances; + me.callParent(); + me.domains = domains; + me.bus = domains.component.bus; +}, control:function(selectors, controller) { + return this.domains.component.listen(selectors, controller); +}, listen:function(to, controller) { + var domains = this.domains, domain; + for (domain in to) { + if (to.hasOwnProperty(domain)) { + domains[domain].listen(to[domain], controller); + } + } +}, unlisten:function(controllerId) { + var domains = Ext.app.EventDomain.instances, domain; + for (domain in domains) { + domains[domain].unlisten(controllerId); + } +}}); +Ext.define('Ext.app.domain.Global', {extend:Ext.app.EventDomain, singleton:true, type:'global', constructor:function() { + var me = this; + me.callParent(); + me.monitor(Ext.GlobalEvents); +}, listen:function(listeners, controller) { + this.callParent([{global:listeners}, controller]); +}, match:Ext.returnTrue}); +Ext.define('Ext.app.BaseController', {mixins:[Ext.mixin.Observable], isController:true, config:{id:null, control:null, listen:null, routes:null, before:null}, constructor:function(config) { + var me = this; + Ext.apply(me, config); + delete me.control; + delete me.listen; + me.eventbus = Ext.app.EventBus; + me.mixins.observable.constructor.call(me, config); + me.ensureId(); +}, applyListen:function(listen) { + if (Ext.isObject(listen)) { + listen = Ext.clone(listen); + } + return listen; +}, applyControl:function(control) { + if (Ext.isObject(control)) { + control = Ext.clone(control); + } + return control; +}, updateControl:function(control) { + this.ensureId(); + if (control) { + this.control(control); + } +}, updateListen:function(listen) { + this.ensureId(); + if (listen) { + this.listen(listen); + } +}, updateRoutes:function(routes) { + if (routes) { + var me = this, befores = me.getBefore() || {}, Router = Ext.app.route.Router, url, config, method; + for (url in routes) { + config = routes[url]; + if (Ext.isString(config)) { + config = {action:config}; + } + method = config.action; + if (!config.before) { + config.before = befores[method]; + } else { + if (befores[method]) { + Ext.log.warn('You have a before method configured on a route ("' + url + '") and in the before object property also in the "' + me.self.getName() + '" controller. Will use the before method in the route and disregard the one in the before property.'); + } + } + Router.connect(url, config, me); + } + } +}, isActive:function() { + return true; +}, control:function(selectors, listeners, controller) { + var me = this, ctrl = controller, obj; + if (Ext.isString(selectors)) { + obj = {}; + obj[selectors] = listeners; + } else { + obj = selectors; + ctrl = listeners; + } + me.eventbus.control(obj, ctrl || me); +}, listen:function(to, controller) { + this.eventbus.listen(to, controller || this); +}, destroy:function() { + var me = this, bus = me.eventbus; + Ext.app.route.Router.disconnectAll(me); + if (bus) { + bus.unlisten(me); + me.eventbus = null; + } + me.callParent(); +}, redirectTo:function(token, force) { + if (token.isModel) { + token = token.toUrl(); + } + if (!force) { + var currentToken = Ext.util.History.getToken(); + if (currentToken === token) { + return false; + } + } else { + Ext.app.route.Router.onStateChange(token); + } + Ext.util.History.add(token); + return true; +}}); +Ext.define('Ext.app.Util', {}, function() { + Ext.apply(Ext.app, {namespaces:{Ext:{}}, addNamespaces:function(namespace) { + var namespaces = Ext.app.namespaces, i, l; + if (!Ext.isArray(namespace)) { + namespace = [namespace]; + } + for (i = 0, l = namespace.length; i < l; i++) { + namespaces[namespace[i]] = true; + } + }, clearNamespaces:function() { + Ext.app.namespaces = {}; + }, getNamespace:function(className) { + var namespaces = Ext.apply({}, Ext.ClassManager.paths, Ext.app.namespaces), deepestPrefix = '', prefix; + for (prefix in namespaces) { + if (namespaces.hasOwnProperty(prefix) && prefix.length > deepestPrefix.length && prefix + '.' === className.substring(0, prefix.length + 1)) { + deepestPrefix = prefix; + } + } + return deepestPrefix === '' ? undefined : deepestPrefix; + }, setupPaths:function(appName, appFolder, paths) { + var manifestPaths = Ext.manifest, ns; + if (appName && appFolder !== null) { + manifestPaths = manifestPaths && manifestPaths.paths; + if (!manifestPaths || appFolder !== undefined) { + Ext.Loader.setPath(appName, appFolder === undefined ? 'app' : appFolder); + } + } + if (paths) { + for (ns in paths) { + if (paths.hasOwnProperty(ns)) { + Ext.Loader.setPath(ns, paths[ns]); + } + } + } + }}); + Ext.getNamespace = Ext.app.getNamespace; +}); +Ext.define('Ext.util.CollectionKey', {mixins:[Ext.mixin.Identifiable], isCollectionKey:true, observerPriority:-200, config:{collection:null, keyFn:null, property:null, rootProperty:null, unique:true}, generation:0, map:null, mapRebuilds:0, constructor:function(config) { + this.initConfig(config); + if (!Ext.isFunction(this.getKey)) { + Ext.raise('CollectionKey requires a keyFn or property config'); + } +}, get:function(key) { + var map = this.map || this.getMap(); + return map[key] || null; +}, clear:function() { + this.map = null; +}, getRootProperty:function() { + var me = this, root = this.callParent(); + return root !== null ? root : me.getCollection().getRootProperty(); +}, indexOf:function(key, startAt) { + var map = this.map || this.getMap(), item = map[key], collection = this.getCollection(), length = collection.length, i, index, items, n; + if (!item) { + return -1; + } + if (startAt === undefined) { + startAt = -1; + } + if (item instanceof Array) { + items = item; + index = length; + for (n = items.length; n-- > 0;) { + i = collection.indexOf(items[n]); + if (i < index && i > startAt) { + index = i; + } + } + if (index === length) { + return -1; + } + } else { + index = collection.indexOf(item); + } + return index > startAt ? index : -1; +}, updateKey:function(item, oldKey) { + var me = this, map = me.map, bucket, index; + if (map) { + bucket = map[oldKey]; + if (bucket instanceof Array) { + index = Ext.Array.indexOf(bucket, item); + if (index >= 0) { + if (bucket.length > 2) { + bucket.splice(index, 1); + } else { + map[oldKey] = bucket[1 - index]; + } + } + } else { + if (bucket) { + if (me.getUnique() && bucket !== item) { + Ext.raise('Incorrect oldKey "' + oldKey + '" for item with newKey "' + me.getKey(item) + '"'); + } + delete map[oldKey]; + } + } + me.add([item]); + } +}, onCollectionAdd:function(collection, add) { + if (this.map) { + this.add(add.items); + } +}, onCollectionItemChange:function(collection, details) { + this.map = null; +}, onCollectionRefresh:function() { + this.map = null; +}, onCollectionRemove:function(collection, remove) { + var me = this, map = me.map, items = remove.items, length = items.length, i, item, key; + if (map) { + if (me.getUnique() && length < collection.length / 2) { + for (i = 0; i < length; ++i) { + key = me.getKey(item = items[i]); + delete map[key]; + } + } else { + me.map = null; + } + } +}, add:function(items) { + var me = this, map = me.map, bucket, i, item, key, length, unique; + length = items.length; + unique = me.getUnique(); + for (i = 0; i < length; ++i) { + key = me.getKey(item = items[i]); + if (unique || !(key in map)) { + map[key] = item; + } else { + if (!((bucket = map[key]) instanceof Array)) { + map[key] = bucket = [bucket]; + } + bucket.push(item); + } + } +}, applyKeyFn:function(keyFn) { + if (Ext.isString(keyFn)) { + this.getKey = function(item) { + return item[keyFn](); + }; + } else { + this.getKey = keyFn; + } +}, updateProperty:function(property) { + var root = this.getRootProperty(); + this.getKey = function(item) { + return (root ? item[root] : item)[property]; + }; +}, getMap:function() { + var me = this, map = me.map; + if (!map) { + me.map = map = {}; + me.keysByItemKey = {}; + ++me.mapRebuilds; + me.add(me.getCollection().items); + } + return map; +}, updateCollection:function(collection) { + collection.addObserver(this); +}, clone:function() { + return new Ext.util.CollectionKey(this.getCurrentConfig()); +}}); +Ext.define('Ext.util.Grouper', {extend:Ext.util.Sorter, isGrouper:true, config:{groupFn:null, sortProperty:null}, constructor:function(config) { + if (config) { + if (config.getGroupString) { + Ext.raise('Cannot set getGroupString - use groupFn instead'); + } + } + this.callParent(arguments); +}, getGroupString:function(item) { + var group = this._groupFn(item); + return group != null ? String(group) : ''; +}, sortFn:function(item1, item2) { + var me = this, lhs = me._groupFn(item1), rhs = me._groupFn(item2), property = me._sortProperty, root = me._root, sorterFn = me._sorterFn, transform = me._transform; + if (lhs === rhs) { + return 0; + } + if (property || sorterFn) { + if (sorterFn) { + return sorterFn.call(this, item1, item2); + } + if (root) { + item1 = item1[root]; + item2 = item2[root]; + } + lhs = item1[property]; + rhs = item2[property]; + if (transform) { + lhs = transform(lhs); + rhs = transform(rhs); + } + } + return lhs > rhs ? 1 : lhs < rhs ? -1 : 0; +}, standardGroupFn:function(item) { + var root = this._root; + return (root ? item[root] : item)[this._property]; +}, updateSorterFn:function() { +}, updateProperty:function() { + if (!this.getGroupFn()) { + this.setGroupFn(this.standardGroupFn); + } +}}); +Ext.define('Ext.util.Collection', {mixins:[Ext.mixin.Observable], isCollection:true, config:{autoFilter:true, autoSort:true, autoGroup:true, decoder:null, extraKeys:null, filters:null, grouper:null, groups:null, rootProperty:null, sorters:null, multiSortLimit:3, defaultSortDirection:'ASC', source:null, trackGroups:true}, generation:0, indices:null, indexRebuilds:0, updating:0, grouped:false, sorted:false, filtered:false, $endUpdatePriority:1001, constructor:function(config) { + var me = this; + me.items = []; + me.map = {}; + me.length = 0; + if (config && config.keyFn) { + me.getKey = config.keyFn; + } + me.mixins.observable.constructor.call(me, config); +}, destroy:function() { + var me = this, filters = me._filters, sorters = me._sorters, groups = me._groups; + if (filters) { + filters.destroy(); + me._filters = null; + } + if (sorters) { + sorters.destroy(); + me._sorters = null; + } + if (groups) { + groups.destroy(); + me._groups = null; + } + me.setSource(null); + me.observers = me.items = me.map = null; + me.callParent(); +}, add:function(item) { + var me = this, items = me.decodeItems(arguments, 0), ret = items; + if (items.length) { + me.requestedIndex = me.length; + me.splice(me.length, 0, items); + delete me.requestedIndex; + ret = items.length === 1 ? items[0] : items; + } + return ret; +}, replaceAll:function() { + var me = this, ret, items; + items = me.decodeItems(arguments, 0); + ret = items; + if (items.length) { + me.splice(0, me.length, items); + ret = items.length === 1 ? items[0] : items; + } else { + me.removeAll(); + } + return ret; +}, aggregate:function(property, operation, begin, end, scope) { + var me = this, args = Ext.Array.slice(arguments); + args.unshift(me.items); + return me.aggregateItems.apply(me, args); +}, aggregateByGroup:function(property, operation, scope) { + var groups = this.getGroups(); + return this.aggregateGroups(groups, property, operation, scope); +}, aggregateItems:function(items, property, operation, begin, end, scope) { + var me = this, range = Ext.Number.clipIndices(items.length, [begin, end]), subsetRequested = begin !== 0 && end !== items.length, i, j, rangeLen, root, value, values, valueItems; + begin = range[0]; + end = range[1]; + if (!Ext.isFunction(operation)) { + operation = me._aggregators[operation]; + return operation.call(me, items, begin, end, property, me.getRootProperty()); + } + root = me.getRootProperty(); + values = new Array(rangeLen); + valueItems = subsetRequested ? new Array(rangeLen) : items; + for (i = begin, j = 0; i < end; ++i, j++) { + if (subsetRequested) { + valueItems[j] = value = items[i]; + } + values[j] = (root ? value[root] : value)[property]; + } + return operation.call(scope || me, items, values, 0); +}, aggregateGroups:function(groups, property, operation, scope) { + var items = groups.items, len = items.length, callDirect = !Ext.isFunction(operation), out = {}, i, group, result; + for (i = 0; i < len; ++i) { + group = items[i]; + if (!callDirect) { + result = this.aggregateItems(group.items, property, operation, null, null, scope); + } else { + result = group[operation](property); + } + out[group.getGroupKey()] = result; + } + return out; +}, beginUpdate:function() { + if (!this.updating++) { + this.notify('beginupdate'); + } +}, clear:function() { + var me = this, generation = me.generation, ret = generation ? me.items : [], extraKeys, indexName; + if (generation) { + me.items = []; + me.length = 0; + me.map = {}; + me.indices = {}; + me.generation++; + extraKeys = me.getExtraKeys(); + if (extraKeys) { + for (indexName in extraKeys) { + extraKeys[indexName].clear(); + } + } + } + return ret; +}, clone:function() { + var me = this, copy = new me.self(me.initialConfig); + copy.add(me.items); + return copy; +}, collect:function(property, root, allowNull) { + var items = this.items, length = items.length, map = {}, ret = [], i, strValue, value; + for (i = 0; i < length; ++i) { + value = items[i]; + value = (root ? value[root] : value)[property]; + strValue = String(value); + if ((allowNull || !Ext.isEmpty(value)) && !map[strValue]) { + map[strValue] = 1; + ret.push(value); + } + } + return ret; +}, contains:function(item) { + var ret = false, key; + if (item != null) { + key = this.getKey(item); + ret = this.map[key] === item; + } + return ret; +}, containsKey:function(key) { + return key in this.map; +}, createFiltered:function(property, value, anyMatch, caseSensitive, exactMatch) { + var me = this, ret = new me.self(me.initialConfig), root = me.getRootProperty(), items = me.items, length, i, filters, fn, scope; + if (Ext.isFunction(property)) { + fn = property; + scope = value; + } else { + if (Ext.isString(property)) { + filters = [new Ext.util.Filter({property:property, value:value, root:root, anyMatch:anyMatch, caseSensitive:caseSensitive, exactMatch:exactMatch})]; + } else { + if (property instanceof Ext.util.Filter) { + filters = [property]; + property.setRoot(root); + } else { + if (Ext.isArray(property)) { + filters = property.slice(0); + for (i = 0, length = filters.length; i < length; ++i) { + filters[i].setRoot(root); + } + } + } + } + fn = Ext.util.Filter.createFilterFn(filters); + } + scope = scope || me; + for (i = 0, length = items.length; i < length; i++) { + if (fn.call(scope, items[i])) { + ret.add(items[i]); + } + } + return ret; +}, filterBy:function(fn, scope) { + return this.createFiltered(fn, scope); +}, each:function(fn, scope) { + var items = this.items, len = items.length, i, ret; + if (len) { + scope = scope || this; + items = items.slice(0); + for (i = 0; i < len; i++) { + ret = fn.call(scope, items[i], i, len); + if (ret === false) { + break; + } + } + } + return ret; +}, eachKey:function(fn, scope) { + var me = this, items = me.items, len = items.length, i, item, key, ret; + if (len) { + scope = scope || me; + items = items.slice(0); + for (i = 0; i < len; i++) { + key = me.getKey(item = items[i]); + ret = fn.call(scope, key, item, i, len); + if (ret === false) { + break; + } + } + } + return ret; +}, endUpdate:function() { + if (!--this.updating) { + this.notify('endupdate'); + } +}, find:function(property, value, start, startsWith, endsWith, ignoreCase) { + if (Ext.isEmpty(value, false)) { + return null; + } + var regex = Ext.String.createRegex(value, startsWith, endsWith, ignoreCase), root = this.getRootProperty(); + return this.findBy(function(item) { + return item && regex.test((root ? item[root] : item)[property]); + }, null, start); +}, findBy:function(fn, scope, start) { + var me = this, items = me.items, len = items.length, i, item, key; + scope = scope || me; + for (i = start || 0; i < len; i++) { + key = me.getKey(item = items[i]); + if (fn.call(scope, item, key)) { + return items[i]; + } + } + return null; +}, findIndex:function(property, value, start, startsWith, endsWith, ignoreCase) { + var item = this.find(property, value, start, startsWith, endsWith, ignoreCase); + return item ? this.indexOf(item) : -1; +}, findIndexBy:function(fn, scope, start) { + var item = this.findBy(fn, scope, start); + return item ? this.indexOf(item) : -1; +}, first:function(grouped) { + var groups = grouped ? this.getGroups() : undefined; + return groups ? this.aggregateGroups(groups, null, 'first') : this.items[0]; +}, last:function(grouped) { + var groups = grouped ? this.getGroups() : undefined; + return groups ? this.aggregateGroups(groups, null, 'last') : this.items[this.length - 1]; +}, get:function(key) { + return this.map[key]; +}, getAt:function(index) { + return this.items[index]; +}, getByKey:function(key) { + return this.map[key]; +}, getCount:function() { + return this.length; +}, getKey:function(item) { + var id = item.id; + return id === 0 || id ? id : (id = item._id) === 0 || id ? id : item.getId(); +}, getRange:function(begin, end) { + var items = this.items, length = items.length, range; + if (begin > end) { + Ext.raise('Inverted range passed to Collection.getRange: [' + begin + ',' + end + ']'); + } + if (!length) { + range = []; + } else { + range = Ext.Number.clipIndices(length, [begin, end]); + range = items.slice(range[0], range[1]); + } + return range; +}, getValues:function(property, root, start, end) { + var items = this.items, range = Ext.Number.clipIndices(items.length, [start, end]), ret = [], i, value; + for (i = range[0], end = range[1]; i < end; ++i) { + value = items[i]; + value = (root ? value[root] : value)[property]; + ret.push(value); + } + return ret; +}, indexOf:function(item) { + if (!item) { + return -1; + } + var key = this.getKey(item); + return this.indexOfKey(key); +}, indexOfKey:function(key) { + var me = this, indices = me.indices; + if (key in me.map) { + if (!indices) { + indices = me.getIndices(); + } + return indices[key]; + } + return -1; +}, insert:function(index, item) { + var me = this, items = me.decodeItems(arguments, 1), ret = items; + if (items.length) { + me.requestedIndex = index; + me.splice(index, 0, items); + delete me.requestedIndex; + ret = items.length === 1 ? items[0] : items; + } + return ret; +}, itemChanged:function(item, modified, oldKey, meta) { + var me = this, keyChanged = oldKey === 0 || !!oldKey, filtered = me.filtered && me.getAutoFilter(), filterChanged = false, itemMovement = 0, items = me.items, last = me.length - 1, sorted = me.sorted && last > 0 && me.getAutoSort(), source = me.getSource(), toRemove = 0, itemFiltered = false, wasFiltered = false, details, newKey, sortFn, toAdd, index, newIndex; + if (source && !source.updating) { + source.itemChanged(item, modified, oldKey, meta); + } else { + newKey = me.getKey(item); + if (filtered) { + index = me.indexOfKey(keyChanged ? oldKey : newKey); + wasFiltered = index < 0; + itemFiltered = me.isItemFiltered(item); + filterChanged = wasFiltered !== itemFiltered; + } + if (filterChanged) { + if (itemFiltered) { + toRemove = [item]; + newIndex = -1; + } else { + toAdd = [item]; + newIndex = me.length; + } + } else { + if (sorted && !itemFiltered) { + if (!filtered) { + index = me.indexOfKey(keyChanged ? oldKey : newKey); + } + sortFn = me.getSortFn(); + if (index !== -1) { + if (index && sortFn(items[index - 1], items[index]) > 0) { + itemMovement = -1; + newIndex = Ext.Array.binarySearch(items, item, 0, index, sortFn); + } else { + if (index < last && sortFn(items[index], items[index + 1]) > 0) { + itemMovement = 1; + newIndex = Ext.Array.binarySearch(items, item, index + 1, sortFn); + } + } + if (itemMovement) { + toAdd = [item]; + } + } + } + } + details = {item:item, key:newKey, index:newIndex, filterChanged:filterChanged, keyChanged:keyChanged, indexChanged:!!itemMovement, filtered:itemFiltered, oldIndex:index, newIndex:newIndex, wasFiltered:wasFiltered, meta:meta}; + if (keyChanged) { + details.oldKey = oldKey; + } + if (modified) { + details.modified = modified; + } + me.beginUpdate(); + me.notify('beforeitemchange', [details]); + if (keyChanged) { + me.updateKey(item, oldKey); + } + if (toAdd || toRemove) { + me.splice(newIndex, toRemove, toAdd); + } + if (itemMovement > 0) { + details.newIndex--; + } else { + if (itemMovement < 0) { + details.oldIndex++; + } + } + me.notify(itemFiltered ? 'filtereditemchange' : 'itemchange', [details]); + me.endUpdate(); + } +}, remove:function(item) { + var me = this, items = me.decodeRemoveItems(arguments, 0), length = me.length; + me.splice(0, items); + return length - me.length; +}, removeAll:function() { + var me = this, length = me.length; + if (me.generation && length) { + me.splice(0, length); + } + return me; +}, removeAt:function(index, count) { + var me = this, length = me.length, Num = Ext.Number, range = Num.clipIndices(length, [index, count === undefined ? 1 : count], Num.Clip.COUNT), n = range[0], removeCount = range[1] - n, item = removeCount === 1 && me.getAt(n), removed; + me.splice(n, removeCount); + removed = me.length - length; + return item && removed ? item : removed; +}, removeByKey:function(key) { + var item = this.getByKey(key); + if (!item || !this.remove(item)) { + return false; + } + return item; +}, replace:function(item) { + var index = this.indexOf(item); + if (index === -1) { + this.add(item); + } else { + this.insert(index, item); + } +}, splice:function(index, toRemove, toAdd) { + var me = this, autoSort = me.sorted && me.getAutoSort(), map = me.map, items = me.items, length = me.length, removeItems = toRemove instanceof Array ? me.decodeRemoveItems(toRemove) : null, isRemoveCount = !removeItems, Num = Ext.Number, range = Num.clipIndices(length, [index, isRemoveCount ? toRemove : 0], Num.Clip.COUNT), begin = range[0], end = range[1], removeCount = end - begin, newItems = me.decodeItems(arguments, 2), newCount = newItems ? newItems.length : 0, addItems, newItemsMap, removeMap, + insertAt = begin, indices = me.indices || (newCount || removeItems ? me.getIndices() : null), adds = null, removes = removeCount ? [begin] : null, newKeys = null, source = me.getSource(), chunk, chunkItems, chunks, i, item, itemIndex, k, key, keys, n, duplicates, sorters, end; + if (source && !source.updating) { + if (isRemoveCount) { + removeItems = []; + for (i = 0; i < removeCount; ++i) { + removeItems.push(items[begin + i]); + } + } + if (begin < length) { + i = source.indexOf(items[begin]); + } else { + i = source.length; + } + source.splice(i, removeItems, newItems); + return me; + } + if (newCount) { + addItems = newItems; + newKeys = []; + newItemsMap = {}; + if (autoSort) { + sorters = me.getSorters(); + if (newCount > 1) { + if (!addItems.$cloned) { + newItems = addItems = addItems.slice(0); + } + me.sortData(addItems); + } + } + for (i = 0; i < newCount; ++i) { + key = me.getKey(item = newItems[i]); + if ((k = newItemsMap[key]) !== undefined) { + (duplicates || (duplicates = {}))[k] = 1; + } else { + itemIndex = indices[key]; + if (itemIndex < begin || end <= itemIndex) { + (removes || (removes = [])).push(itemIndex); + } + } + newItemsMap[key] = i; + newKeys.push(key); + } + if (duplicates) { + keys = newKeys; + addItems = []; + newKeys = []; + addItems.$cloned = true; + for (i = 0; i < newCount; ++i) { + if (!duplicates[i]) { + item = newItems[i]; + addItems.push(item); + newKeys.push(keys[i]); + } + } + newCount = addItems.length; + } + adds = {items:addItems, keys:newKeys}; + } + for (i = removeItems ? removeItems.length : 0; i-- > 0;) { + key = me.getKey(removeItems[i]); + if ((itemIndex = indices[key]) !== undefined) { + (removes || (removes = [])).push(itemIndex); + } + } + if (!adds && !removes) { + return me; + } + me.beginUpdate(); + if (removes) { + chunk = null; + chunks = []; + removeMap = {}; + if (removes.length > 1) { + removes.sort(Ext.Array.numericSortFn); + } + for (i = 0, n = removes.length; i < n; ++i) { + key = me.getKey(item = items[itemIndex = removes[i]]); + if (!(key in map)) { + continue; + } + delete map[key]; + if (!chunk || itemIndex > chunk.at + chunkItems.length) { + chunks.push(chunk = {at:itemIndex, items:chunkItems = [], keys:keys = [], map:removeMap, next:chunk, replacement:adds}); + if (adds) { + adds.replaced = chunk; + } + } + chunkItems.push(removeMap[key] = item); + keys.push(key); + if (itemIndex < insertAt) { + --insertAt; + } + if (removeCount > 1 && itemIndex === begin) { + --removeCount; + removes[i--] = ++begin; + } + } + if (adds) { + adds.at = insertAt; + } + for (k = chunks.length; k-- > 0;) { + chunk = chunks[k]; + i = chunk.at; + n = chunk.items.length; + if (i + n < length) { + me.indices = indices = null; + } + me.length = length -= n; + items.splice(i, n); + if (indices) { + keys = chunk.keys; + for (i = 0; i < n; ++i) { + delete indices[keys[i]]; + } + } + ++me.generation; + me.notify('remove', [chunk]); + } + } + if (adds) { + if (autoSort && newCount > 1 && length) { + me.spliceMerge(addItems, newKeys); + } else { + if (autoSort) { + if (newCount > 1) { + insertAt = 0; + me.indices = indices = null; + } else { + insertAt = sorters.findInsertionIndex(adds.items[0], items, me.getSortFn()); + } + } + if (insertAt === length) { + end = insertAt; + for (i = addItems.length - 1; i >= 0; --i) { + items[end + i] = addItems[i]; + } + indices = me.indices; + if (indices) { + for (i = 0; i < newCount; ++i) { + indices[newKeys[i]] = insertAt + i; + } + } + } else { + me.indices = null; + Ext.Array.insert(items, insertAt, addItems); + } + for (i = 0; i < newCount; ++i) { + map[newKeys[i]] = addItems[i]; + } + me.length += newCount; + adds.at = insertAt; + adds.atItem = insertAt === 0 ? null : items[insertAt - 1]; + ++me.generation; + me.notify('add', [adds]); + } + } + me.endUpdate(); + return me; +}, update:function(fn, scope) { + var me = this; + me.beginUpdate(); + try { + return fn.call(scope || me, me); + } catch (e$21) { + Ext.log.error(this.$className + ': Unhandled Exception: ', e$21.description || e$21.message); + throw e$21; + } finally { + me.endUpdate(); + } +}, updateKey:function(item, oldKey) { + var me = this, map = me.map, indices = me.indices, source = me.getSource(), newKey; + if (source && !source.updating) { + source.updateKey(item, oldKey); + } else { + if ((newKey = me.getKey(item)) !== oldKey) { + if (map[oldKey] === item && !(newKey in map)) { + delete map[oldKey]; + me.updating++; + me.generation++; + map[newKey] = item; + if (indices) { + indices[newKey] = indices[oldKey]; + delete indices[oldKey]; + } + me.notify('updatekey', [{item:item, newKey:newKey, oldKey:oldKey}]); + me.updating--; + } else { + if (newKey in map && map[newKey] !== item) { + Ext.raise('Duplicate newKey "' + newKey + '" for item with oldKey "' + oldKey + '"'); + } + if (oldKey in map && map[oldKey] !== item) { + Ext.raise('Incorrect oldKey "' + oldKey + '" for item with newKey "' + newKey + '"'); + } + } + } + } +}, findInsertIndex:function(item) { + var source = this.getSource(), sourceItems = source.items, i = source.indexOf(item) - 1, sourceItem, index; + while (i > -1) { + sourceItem = sourceItems[i]; + index = this.indexOf(sourceItem); + if (index > -1) { + return index + 1; + } + --i; + } + return 0; +}, onCollectionAdd:function(source, details) { + var me = this, atItem = details.atItem, items = details.items, requestedIndex = me.requestedIndex, filtered, index, copy, i, item, n; + if (!me.sorted) { + if (requestedIndex !== undefined) { + index = requestedIndex; + } else { + if (atItem) { + index = me.indexOf(atItem); + if (index === -1) { + index = me.findInsertIndex(items[0]); + } else { + ++index; + } + } else { + index = 0; + } + } + } + if (me.getAutoFilter() && me.filtered) { + for (i = 0, n = items.length; i < n; ++i) { + item = items[i]; + if (me.isItemFiltered(item)) { + if (!copy) { + copy = items.slice(0, i); + } + if (!filtered) { + filtered = []; + } + filtered.push(item); + } else { + if (copy) { + copy.push(item); + } + } + } + } + me.splice(index < 0 ? me.length : index, 0, copy || items); + if (filtered) { + me.notify('filteradd', [filtered]); + } +}, onCollectionBeforeItemChange:function(source, details) { + this.onCollectionUpdateKey = null; +}, onCollectionBeginUpdate:function() { + this.beginUpdate(); +}, onCollectionEndUpdate:function() { + this.endUpdate(); +}, onCollectionItemChange:function(source, details) { + delete this.onCollectionUpdateKey; + this.itemChanged(details.item, details.modified, details.oldKey, details.meta); +}, onCollectionFilteredItemChange:null, onCollectionRefresh:function(source) { + var me = this, map = {}, indices = {}, i, item, items, key, length; + items = source.items; + items = me.filtered && me.getAutoFilter() ? Ext.Array.filter(items, me.getFilterFn()) : items.slice(0); + if (me.sorted) { + me.sortData(items); + } + me.items = items; + me.length = length = items.length; + me.map = map; + me.indices = indices; + for (i = 0; i < length; ++i) { + key = me.getKey(item = items[i]); + map[key] = item; + indices[key] = i; + } + me.notify('refresh'); +}, onCollectionRemove:function(source, details) { + this.splice(0, details.items); +}, onCollectionUpdateKey:function(source, details) { + this.updateKey(details.item, details.oldKey); +}, _aggregators:{average:function(items, begin, end, property, root) { + var n = end - begin; + return n && this._aggregators.sum.call(this, items, begin, end, property, root) / n; +}, bounds:function(items, begin, end, property, root) { + for (var value, max, min, i = begin; i < end; ++i) { + value = items[i]; + value = (root ? value[root] : value)[property]; + if (!(value < max)) { + max = value; + } + if (!(value > min)) { + min = value; + } + } + return [min, max]; +}, count:function(items) { + return items.length; +}, extremes:function(items, begin, end, property, root) { + var most = null, least = null, i, item, max, min, value; + for (i = begin; i < end; ++i) { + item = items[i]; + value = (root ? item[root] : item)[property]; + if (!(value < max)) { + max = value; + most = item; + } + if (!(value > min)) { + min = value; + least = item; + } + } + return [least, most]; +}, max:function(items, begin, end, property, root) { + var b = this._aggregators.bounds.call(this, items, begin, end, property, root); + return b[1]; +}, maxItem:function(items, begin, end, property, root) { + var b = this._aggregators.extremes.call(this, items, begin, end, property, root); + return b[1]; +}, min:function(items, begin, end, property, root) { + var b = this._aggregators.bounds.call(this, items, begin, end, property, root); + return b[0]; +}, minItem:function(items, begin, end, property, root) { + var b = this._aggregators.extremes.call(this, items, begin, end, property, root); + return b[0]; +}, sum:function(items, begin, end, property, root) { + for (var value, sum = 0, i = begin; i < end; ++i) { + value = items[i]; + value = (root ? value[root] : value)[property]; + sum += value; + } + return sum; +}}, _eventToMethodMap:{add:'onCollectionAdd', beforeitemchange:'onCollectionBeforeItemChange', beginupdate:'onCollectionBeginUpdate', endupdate:'onCollectionEndUpdate', itemchange:'onCollectionItemChange', filtereditemchange:'onCollectionFilteredItemChange', refresh:'onCollectionRefresh', remove:'onCollectionRemove', beforesort:'beforeCollectionSort', sort:'onCollectionSort', filter:'onCollectionFilter', filteradd:'onCollectionFilterAdd', updatekey:'onCollectionUpdateKey'}, addObserver:function(observer) { + var me = this, observers = me.observers; + if (!observers) { + me.observers = observers = []; + } + if (Ext.Array.contains(observers, observer)) { + Ext.Error.raise('Observer already added'); + } + observers.push(observer); + if (observers.length > 1) { + Ext.Array.sort(observers, me.prioritySortFn); + } +}, prioritySortFn:function(o1, o2) { + var a = o1.observerPriority || 0, b = o2.observerPriority || 0; + return a - b; +}, applyExtraKeys:function(extraKeys, oldExtraKeys) { + var me = this, ret = oldExtraKeys || {}, config, name, value; + for (name in extraKeys) { + value = extraKeys[name]; + if (!value.isCollectionKey) { + config = {collection:me}; + if (Ext.isString(value)) { + config.property = value; + } else { + config = Ext.apply(config, value); + } + value = new Ext.util.CollectionKey(config); + } else { + value.setCollection(me); + } + ret[name] = me[name] = value; + value.name = name; + } + return ret; +}, applyGrouper:function(grouper) { + if (grouper) { + grouper = this.getSorters().decodeSorter(grouper, 'Ext.util.Grouper'); + } + return grouper; +}, decodeItems:function(args, index) { + var me = this, ret = index === undefined ? args : args[index], cloned, decoder, i; + if (!ret || !ret.$cloned) { + cloned = args.length > index + 1 || !Ext.isIterable(ret); + if (cloned) { + ret = Ext.Array.slice(args, index); + if (ret.length === 1 && ret[0] === undefined) { + ret.length = 0; + } + } + decoder = me.getDecoder(); + if (decoder) { + if (!cloned) { + ret = ret.slice(0); + cloned = true; + } + for (i = ret.length; i-- > 0;) { + if ((ret[i] = decoder.call(me, ret[i])) === false) { + ret.splice(i, 1); + } + } + } + if (cloned) { + ret.$cloned = true; + } + } + return ret; +}, getIndices:function() { + var me = this, indices = me.indices, items = me.items, n = items.length, i, key; + if (!indices) { + me.indices = indices = {}; + ++me.indexRebuilds; + for (i = 0; i < n; ++i) { + key = me.getKey(items[i]); + indices[key] = i; + } + } + return indices; +}, notify:function(eventName, args) { + var me = this, observers = me.observers, methodName = me._eventToMethodMap[eventName], added = 0, index, length, method, observer; + args = args || []; + if (observers && methodName) { + for (index = 0, length = observers.length; index < length; ++index) { + method = (observer = observers[index])[methodName]; + if (method) { + if (!added++) { + args.unshift(me); + } + method.apply(observer, args); + } + } + } + if (!me.hasListeners) { + return; + } + if (me.hasListeners[eventName]) { + if (!added) { + args.unshift(me); + } + me.fireEventArgs(eventName, args); + } +}, getFilterFn:function() { + return this.getFilters().getFilterFn(); +}, getFilters:function(autoCreate) { + var ret = this._filters; + if (!ret && autoCreate !== false) { + ret = new Ext.util.FilterCollection; + this.setFilters(ret); + } + return ret; +}, isItemFiltered:function(item) { + return !this.getFilters().filterFn(item); +}, onFilterChange:function(filters) { + var me = this, source = me.getSource(), extraKeys, newKeys, key; + if (!source) { + extraKeys = me.getExtraKeys(); + if (extraKeys) { + newKeys = {}; + for (key in extraKeys) { + newKeys[key] = extraKeys[key].clone(me); + } + } + source = new Ext.util.Collection({keyFn:me.getKey, extraKeys:newKeys, rootProperty:me.getRootProperty()}); + if (me.length) { + source.add(me.items); + } + me.setSource(source); + me.autoSource = source; + } else { + if (source.length || me.length) { + me.onCollectionRefresh(source); + } + } + me.notify('filter'); +}, applyFilters:function(filters, collection) { + if (filters == null || filters && filters.isFilterCollection) { + return filters; + } + if (filters) { + if (!collection) { + collection = this.getFilters(); + } + collection.splice(0, collection.length, filters); + } + return collection; +}, updateFilters:function(newFilters, oldFilters) { + var me = this; + if (oldFilters) { + oldFilters.un('endupdate', 'onEndUpdateFilters', me); + } + if (newFilters) { + newFilters.on({endupdate:'onEndUpdateFilters', scope:me, priority:me.$endUpdatePriority}); + newFilters.$filterable = me; + } + me.onEndUpdateFilters(newFilters); +}, onEndUpdateFilters:function(filters) { + var me = this, was = me.filtered, is = !!filters && filters.length > 0; + if (was || is) { + me.filtered = is; + me.onFilterChange(filters); + } +}, getSortFn:function() { + return this._sortFn || this.createSortFn(); +}, getSorters:function(autoCreate) { + var ret = this._sorters; + if (!ret && autoCreate !== false) { + ret = new Ext.util.SorterCollection; + this.setSorters(ret); + } + return ret; +}, onSortChange:function() { + if (this.sorted) { + this.sortItems(); + } +}, sort:function(property, direction, mode) { + var sorters = this.getSorters(); + sorters.addSort.apply(sorters, arguments); + return this; +}, sortData:function(data) { + Ext.Array.sort(data, this.getSortFn()); + return data; +}, sortItems:function(sortFn) { + var me = this; + if (me.sorted) { + if (sortFn) { + Ext.raise('Collections with sorters cannot resorted'); + } + sortFn = me.getSortFn(); + } + me.indices = null; + me.notify('beforesort', [me.getSorters(false)]); + if (me.length) { + Ext.Array.sort(me.items, sortFn); + } + me.notify('sort'); +}, sortBy:function(sortFn) { + return this.sortItems(sortFn); +}, findInsertionIndex:function(item, items, comparatorFn) { + if (!items) { + items = this.items; + } + if (!comparatorFn) { + comparatorFn = this.getSortFn(); + } + return Ext.Array.binarySearch(items, item, comparatorFn); +}, applySorters:function(sorters, collection) { + if (sorters == null || sorters && sorters.isSorterCollection) { + return sorters; + } + if (sorters) { + if (!collection) { + collection = this.getSorters(); + } + collection.splice(0, collection.length, sorters); + } + return collection; +}, createSortFn:function() { + var me = this, grouper = me.getGrouper(), sorters = me.getSorters(false), sorterFn = sorters ? sorters.getSortFn() : null; + if (!grouper) { + return sorterFn; + } + return function(lhs, rhs) { + var ret = grouper.sort(lhs, rhs); + if (!ret && sorterFn) { + ret = sorterFn(lhs, rhs); + } + return ret; + }; +}, updateGrouper:function(grouper) { + var me = this, groups = me.getGroups(), sorters = me.getSorters(), populate; + me.onSorterChange(); + me.grouped = !!grouper; + if (grouper) { + if (me.getTrackGroups()) { + if (!groups) { + groups = new Ext.util.GroupCollection({itemRoot:me.getRootProperty()}); + groups.$groupable = me; + me.setGroups(groups); + } + groups.setGrouper(grouper); + populate = true; + } + } else { + if (groups) { + me.removeObserver(groups); + groups.destroy(); + } + me.setGroups(null); + } + if (!sorters.updating) { + me.onEndUpdateSorters(sorters); + } + if (populate) { + groups.onCollectionRefresh(me); + } +}, updateSorters:function(newSorters, oldSorters) { + var me = this; + if (oldSorters) { + oldSorters.un('endupdate', 'onEndUpdateSorters', me); + } + if (newSorters) { + newSorters.on({endupdate:'onEndUpdateSorters', scope:me, priority:me.$endUpdatePriority}); + newSorters.$sortable = me; + } + me.onSorterChange(); + me.onEndUpdateSorters(newSorters); +}, onSorterChange:function() { + this._sortFn = null; +}, onEndUpdateSorters:function(sorters) { + var me = this, was = me.sorted, is = me.grouped && me.getAutoGroup() || sorters && sorters.length > 0; + if (was || is) { + me.sorted = !!is; + me.onSortChange(sorters); + } +}, removeObserver:function(observer) { + var observers = this.observers; + if (observers) { + Ext.Array.remove(observers, observer); + } +}, spliceMerge:function(newItems, newKeys) { + var me = this, map = me.map, newLength = newItems.length, oldIndex = 0, oldItems = me.items, oldLength = oldItems.length, adds = [], count = 0, items = [], sortFn = me.getSortFn(), addItems, end, i, newItem, oldItem, newIndex; + me.items = items; + for (newIndex = 0; newIndex < newLength; newIndex = end) { + newItem = newItems[newIndex]; + for (; oldIndex < oldLength; ++oldIndex) { + if (sortFn(newItem, oldItem = oldItems[oldIndex]) < 0) { + break; + } + items.push(oldItem); + } + if (oldIndex === oldLength) { + adds[count++] = {at:items.length, itemAt:items[items.length - 1], items:addItems = []}; + if (count > 1) { + adds[count - 2].next = adds[count - 1]; + } + for (; newIndex < newLength; ++newIndex) { + addItems.push(newItem = newItems[newIndex]); + items.push(newItem); + } + break; + } + adds[count++] = {at:items.length, itemAt:items[items.length - 1], items:addItems = [newItem]}; + if (count > 1) { + adds[count - 2].next = adds[count - 1]; + } + items.push(newItem); + for (end = newIndex + 1; end < newLength; ++end) { + if (sortFn(newItem = newItems[end], oldItem) >= 0) { + break; + } + items.push(newItem); + addItems.push(newItem); + } + } + for (; oldIndex < oldLength; ++oldIndex) { + items.push(oldItems[oldIndex]); + } + for (i = 0; i < newLength; ++i) { + map[newKeys[i]] = newItems[i]; + } + me.length = items.length; + ++me.generation; + me.indices = null; + for (i = 0; i < count; ++i) { + me.notify('add', [adds[i]]); + } +}, getGroups:function() { + return this.callParent() || null; +}, updateAutoGroup:function(autoGroup) { + var groups = this.getGroups(); + if (groups) { + groups.setAutoGroup(autoGroup); + } + this.onEndUpdateSorters(this._sorters); +}, updateGroups:function(newGroups, oldGroups) { + if (oldGroups) { + this.removeObserver(oldGroups); + } + if (newGroups) { + this.addObserver(newGroups); + } +}, updateSource:function(newSource, oldSource) { + var auto = this.autoSource; + if (oldSource) { + oldSource.removeObserver(this); + if (oldSource === auto) { + auto.destroy(); + this.autoSource = null; + } + } + if (newSource) { + newSource.addObserver(this); + if (newSource.length || this.length) { + this.onCollectionRefresh(newSource); + } + } +}}, function() { + var prototype = this.prototype; + prototype.removeAtKey = prototype.removeByKey; + prototype.decodeRemoveItems = prototype.decodeItems; + Ext.Object.each(prototype._aggregators, function(name) { + prototype[name] = function(property, begin, end) { + return this.aggregate(property, name, begin, end); + }; + prototype[name + 'ByGroup'] = function(property) { + return this.aggregateByGroup(property, name); + }; + }); +}); +Ext.define('Ext.util.ObjectTemplate', {isObjectTemplate:true, excludeProperties:{}, valueRe:/^[{][a-z\.]+[}]$/i, statics:{create:function(template, options) { + if (!Ext.isObject(template)) { + Ext.raise('The template is not an Object'); + } + return template.isObjectTemplate ? template : new Ext.util.ObjectTemplate(template, options); +}}, constructor:function(template, options) { + Ext.apply(this, options); + this.template = template; +}, apply:function(context) { + var me = this; + delete me.apply; + me.apply = me.compile(me.template); + return me.apply(context); +}, privates:{compile:function(template) { + var me = this, exclude = me.excludeProperties, compiled, i, len, fn; + if (Ext.isString(template)) { + if (template.indexOf('{') < 0) { + fn = function() { + return template; + }; + } else { + if (me.valueRe.test(template)) { + template = template.substring(1, template.length - 1).split('.'); + fn = function(context) { + for (var v = context, i = 0; v && i < template.length; ++i) { + v = v[template[i]]; + } + return v; + }; + } else { + template = new Ext.XTemplate(template); + fn = function(context) { + return template.apply(context); + }; + } + } + } else { + if (!template || Ext.isPrimitive(template) || Ext.isFunction(template)) { + fn = function() { + return template; + }; + } else { + if (template instanceof Array) { + compiled = []; + for (i = 0, len = template.length; i < len; ++i) { + compiled[i] = me.compile(template[i]); + } + fn = function(context) { + var ret = [], i; + for (i = 0; i < len; ++i) { + ret[i] = compiled[i](context); + } + return ret; + }; + } else { + compiled = {}; + for (i in template) { + if (!exclude[i]) { + compiled[i] = me.compile(template[i]); + } + } + fn = function(context) { + var ret = {}, i, v; + for (i in template) { + v = exclude[i] ? template[i] : compiled[i](context); + if (v !== undefined) { + ret[i] = v; + } + } + return ret; + }; + } + } + } + return fn; +}}}); +Ext.define('Ext.data.schema.Role', {isRole:true, left:true, owner:false, side:'left', isMany:false, defaultReaderType:'json', _internalReadOptions:{recordsOnly:true, asRoot:true}, constructor:function(association, config) { + var me = this, extra = config.extra; + Ext.apply(me, config); + if (extra) { + delete extra.type; + Ext.apply(me, extra); + delete me.extra; + } + me.association = association; + if (association.owner === me.side) { + association.owner = me; + me.owner = true; + } +}, processUpdate:function() { + Ext.raise('Only the "many" for an association may be processed. "' + this.role + '" is not valid.'); +}, processLoad:function(store, associatedEntity, records, session) { + return records; +}, checkMembership:Ext.emptyFn, adoptAssociated:function(record, session) { + var other = this.getAssociatedItem(record); + if (other) { + session.adopt(other); + } +}, createAssociationStore:function(session, from, records, isComplete) { + var me = this, association = me.association, foreignKeyName = association.getFieldName(), isMany = association.isManyToMany, storeConfig = me.storeConfig, id = from.getId(), config = {asynchronousLoad:false, model:me.cls, role:me, session:session, associatedEntity:from, disableMetaChangeEvent:true, pageSize:null, remoteFilter:true, trackRemoved:!session}, store; + if (isMany) { + config.filters = [{property:me.inverse.field, value:id, exactMatch:true}]; + } else { + if (foreignKeyName) { + config.filters = [{property:foreignKeyName, value:id, exactMatch:true}]; + config.foreignKeyName = foreignKeyName; + } + } + if (storeConfig) { + Ext.apply(config, storeConfig); + } + store = Ext.Factory.store(config); + me.onStoreCreate(store, session, id); + if (foreignKeyName || isMany && session) { + store.on({scope:me, add:'onAddToMany', remove:'onRemoveFromMany', clear:'onRemoveFromMany'}); + } + if (records) { + store.loadData(records); + store.complete = !!isComplete; + } + return store; +}, onStoreCreate:Ext.emptyFn, getAssociatedStore:function(inverseRecord, options, scope, records, allowInfer) { + var me = this, storeName = me.getStoreName(), store = inverseRecord[storeName], session = inverseRecord.session, load = options && options.reload, source = inverseRecord.$source, isComplete = false, hadSource, args, i, len, raw, rec, sourceStore, hadRecords; + if (!store) { + if (session) { + if (!records && source) { + source = source[storeName]; + if (source && !source.isLoading()) { + sourceStore = source; + records = []; + raw = source.getData().items; + for (i = 0, len = raw.length; i < len; ++i) { + rec = raw[i]; + records.push(session.getRecord(rec.self, rec.id)); + } + isComplete = !!source.complete; + hadSource = true; + } + } + if (!hadSource) { + hadRecords = !!records; + records = me.findRecords(session, inverseRecord, records, allowInfer); + if (!hadRecords && (!records || !records.length)) { + records = null; + } + isComplete = hadRecords; + } + } else { + isComplete = !!(records && records.length > 0); + } + store = me.createAssociationStore(session, inverseRecord, records, isComplete); + store.$source = sourceStore; + if (!records && (me.autoLoad || options)) { + load = true; + } + inverseRecord[storeName] = store; + } + if (options) { + if (load || store.isLoading()) { + store.on('load', function(store, records, success, operation) { + args = [store, operation]; + scope = scope || options.scope || inverseRecord; + if (success) { + Ext.callback(options.success, scope, args); + } else { + Ext.callback(options.failure, scope, args); + } + args.push(success); + Ext.callback(options, scope, args); + Ext.callback(options.callback, scope, args); + }, null, {single:true}); + } else { + args = [store, null]; + scope = scope || options.scope || inverseRecord; + Ext.callback(options.success, scope, args); + args.push(true); + Ext.callback(options, scope, args); + Ext.callback(options.callback, scope, args); + } + } + if (load && !store.isLoading()) { + store.load(); + } + return store; +}, getAssociatedItem:function(rec) { + var key = this.isMany ? this.getStoreName() : this.getInstanceName(); + return rec[key] || null; +}, onDrop:Ext.emptyFn, getReaderRoot:function() { + var me = this; + return me.associationKey || (me.associationKey = me.association.schema.getNamer().readerRoot(me.role)); +}, getReader:function() { + var me = this, reader = me.reader, Model = me.cls, useSimpleAccessors = !me.associationKey, root = this.getReaderRoot(); + if (reader && !reader.isReader) { + if (Ext.isString(reader)) { + reader = {type:reader}; + } + Ext.applyIf(reader, {model:Model, rootProperty:root, useSimpleAccessors:useSimpleAccessors, type:me.defaultReaderType}); + reader = me.reader = Ext.createByAlias('reader.' + reader.type, reader); + } + return reader; +}, getInstanceName:function() { + var me = this; + return me.instanceName || (me.instanceName = me.association.schema.getNamer().instanceName(me.role)); +}, getOldInstanceName:function() { + return this.oldInstanceName || (this.oldInstanceName = '$old' + this.getInstanceName()); +}, getStoreName:function() { + var me = this; + return me.storeName || (me.storeName = me.association.schema.getNamer().storeName(me.role)); +}, constructReader:function(fromReader) { + var me = this, reader = me.getReader(), Model = me.cls, useSimpleAccessors = !me.associationKey, root = me.getReaderRoot(), proxyReader, proxy; + if (!reader) { + proxy = Model.getProxy(); + if (proxy) { + proxyReader = proxy.getReader(); + reader = new proxyReader.self; + reader.copyFrom(proxyReader); + reader.setRootProperty(root); + } else { + reader = new fromReader.self({model:Model, useSimpleAccessors:useSimpleAccessors, rootProperty:root}); + } + me.reader = reader; + } + return reader; +}, read:function(record, data, fromReader, readOptions) { + var reader = this.constructReader(fromReader), root = reader.getRoot(data); + if (root) { + return reader.readRecords(root, readOptions, this._internalReadOptions); + } +}, getCallbackOptions:function(options, scope, defaultScope) { + if (typeof options === 'function') { + options = {callback:options, scope:scope || defaultScope}; + } else { + if (options) { + options = Ext.apply({}, options); + options.scope = scope || options.scope || defaultScope; + } + } + return options; +}, doGetFK:function(leftRecord, options, scope) { + var me = this, cls = me.cls, foreignKey = me.association.getFieldName(), instanceName = me.getInstanceName(), rightRecord = leftRecord[instanceName], reload = options && options.reload, done = rightRecord !== undefined && !reload, session = leftRecord.session, foreignKeyId, args; + if (!done) { + if (session) { + foreignKeyId = leftRecord.get(foreignKey); + if (foreignKeyId || foreignKeyId === 0) { + done = session.peekRecord(cls, foreignKeyId, true) && !reload; + rightRecord = session.getRecord(cls, foreignKeyId, false); + } else { + done = true; + leftRecord[instanceName] = rightRecord = null; + } + } else { + if (foreignKey) { + foreignKeyId = leftRecord.get(foreignKey); + if (!foreignKeyId && foreignKeyId !== 0) { + done = true; + leftRecord[instanceName] = rightRecord = null; + } else { + if (!rightRecord) { + rightRecord = cls.createWithId(foreignKeyId); + } + } + } else { + done = true; + } + } + } else { + if (rightRecord) { + done = !rightRecord.isLoading(); + } + } + if (done) { + if (options) { + args = [rightRecord, null]; + scope = scope || options.scope || leftRecord; + Ext.callback(options.success, scope, args); + args.push(true); + Ext.callback(options, scope, args); + Ext.callback(options.callback, scope, args); + } + } else { + leftRecord[instanceName] = rightRecord; + options = me.getCallbackOptions(options, scope, leftRecord); + rightRecord.load(options); + } + return rightRecord; +}, doSetFK:function(leftRecord, rightRecord, options, scope) { + var me = this, foreignKey = me.association.getFieldName(), instanceName = me.getInstanceName(), current = leftRecord[instanceName], inverse = me.inverse, inverseSetter = inverse.setterName, session = leftRecord.session, modified, oldInstanceName; + if (rightRecord && rightRecord.isEntity) { + if (current !== rightRecord) { + oldInstanceName = me.getOldInstanceName(); + leftRecord[oldInstanceName] = current; + leftRecord[instanceName] = rightRecord; + if (current && current.isEntity) { + current[inverse.getInstanceName()] = undefined; + } + if (foreignKey) { + leftRecord.set(foreignKey, rightRecord.getId()); + } + delete leftRecord[oldInstanceName]; + if (inverseSetter) { + rightRecord[inverseSetter](leftRecord); + } + } + } else { + if (!foreignKey) { + Ext.raise('No foreignKey specified for "' + me.association.left.role + '" by ' + leftRecord.$className); + } + modified = leftRecord.changingKey && !inverse.isMany || leftRecord.set(foreignKey, rightRecord); + if (modified && current && current.isEntity && !current.isEqual(current.getId(), rightRecord)) { + leftRecord[instanceName] = undefined; + if (!inverse.isMany) { + current[inverse.getInstanceName()] = undefined; + } + } + } + if (options) { + if (Ext.isFunction(options)) { + options = {callback:options, scope:scope || leftRecord}; + } + return leftRecord.save(options); + } +}}); +Ext.define('Ext.data.schema.Association', {isOneToOne:false, isManyToOne:false, isManyToMany:false, owner:null, field:null, constructor:function(config) { + var me = this, left, right; + Ext.apply(me, config); + me.left = left = new me.Left(me, me.left); + me.right = right = new me.Right(me, me.right); + left.inverse = right; + right.inverse = left; +}, hasField:function() { + return !!this.field; +}, getFieldName:function() { + var field = this.field; + return field ? field.name : ''; +}}); +Ext.define('Ext.data.schema.OneToOne', {extend:Ext.data.schema.Association, isOneToOne:true, isToOne:true, kind:'one-to-one', Left:Ext.define(null, {extend:'Ext.data.schema.Role', onDrop:function(rightRecord, session) { + var leftRecord = this.getAssociatedItem(rightRecord); + rightRecord[this.getInstanceName()] = null; + if (leftRecord) { + leftRecord[this.inverse.getInstanceName()] = null; + } +}, createGetter:function() { + var me = this; + return function() { + return me.doGet(this); + }; +}, createSetter:function() { + var me = this; + return function(value) { + return me.doSet(this, value); + }; +}, doGet:function(rightRecord) { + var instanceName = this.getInstanceName(), ret = rightRecord[instanceName], session = rightRecord.session; + if (!ret && session) { + } + return ret || null; +}, doSet:function(rightRecord, leftRecord) { + var instanceName = this.getInstanceName(), ret = rightRecord[instanceName], inverseSetter = this.inverse.setterName; + if (ret !== leftRecord) { + rightRecord[instanceName] = leftRecord; + if (inverseSetter) { + leftRecord[inverseSetter](rightRecord); + } + } + return ret; +}, read:function(rightRecord, node, fromReader, readOptions) { + var me = this, leftRecords = me.callParent([rightRecord, node, fromReader, readOptions]), leftRecord; + if (leftRecords) { + leftRecord = leftRecords[0]; + if (leftRecord) { + leftRecord[me.inverse.getInstanceName()] = rightRecord; + rightRecord[me.getInstanceName()] = leftRecord; + delete rightRecord.data[me.role]; + } + } +}}), Right:Ext.define(null, {extend:'Ext.data.schema.Role', left:false, side:'right', createGetter:function() { + var me = this; + return function(options, scope) { + return me.doGetFK(this, options, scope); + }; +}, createSetter:function() { + var me = this; + return function(value, options, scope) { + return me.doSetFK(this, value, options, scope); + }; +}, onDrop:function(leftRecord, session) { + var me = this, field = me.association.field, rightRecord = me.getAssociatedItem(leftRecord), id; + if (me.inverse.owner) { + if (session) { + id = leftRecord.get(field.name); + if (id || id === 0) { + rightRecord = session.getEntry(me.cls, id).record; + if (rightRecord) { + rightRecord.drop(); + } + } + } else { + if (rightRecord) { + rightRecord.drop(); + } + } + } + if (field) { + leftRecord.set(field.name, null); + } + leftRecord[me.getInstanceName()] = null; + if (rightRecord) { + rightRecord[me.inverse.getInstanceName()] = null; + } +}, onValueChange:function(leftRecord, session, newValue) { + var me = this, rightRecord = leftRecord[me.getOldInstanceName()] || me.getAssociatedItem(leftRecord), hasNewValue = newValue || newValue === 0, instanceName = me.getInstanceName(), cls = me.cls; + leftRecord.changingKey = true; + me.doSetFK(leftRecord, newValue); + if (!hasNewValue) { + leftRecord[instanceName] = null; + } else { + if (session && cls) { + leftRecord[instanceName] = session.peekRecord(cls, newValue) || undefined; + } + } + if (me.inverse.owner && rightRecord) { + me.association.schema.queueKeyCheck(rightRecord, me); + } + leftRecord.changingKey = false; +}, checkKeyForDrop:function(rightRecord) { + var leftRecord = this.inverse.getAssociatedItem(rightRecord); + if (!leftRecord) { + rightRecord.drop(); + } +}, read:function(leftRecord, node, fromReader, readOptions) { + var me = this, rightRecords = me.callParent([leftRecord, node, fromReader, readOptions]), rightRecord, field, fieldName, session, refs, id, oldId, setKey, data; + if (rightRecords) { + rightRecord = rightRecords[0]; + field = me.association.field; + if (field) { + fieldName = field.name; + } + session = leftRecord.session; + data = leftRecord.data; + if (rightRecord) { + if (session) { + refs = session.getRefs(rightRecord, this.inverse, true); + setKey = refs && refs[leftRecord.id] || data[fieldName] === undefined; + } else { + setKey = true; + } + if (setKey) { + if (field) { + oldId = data[fieldName]; + id = rightRecord.id; + if (oldId !== id) { + data[fieldName] = id; + if (session) { + session.updateReference(leftRecord, field, id, oldId); + } + } + } + rightRecord[me.inverse.getInstanceName()] = leftRecord; + leftRecord[me.getInstanceName()] = rightRecord; + } + delete data[me.role]; + } + } +}})}); +Ext.define('Ext.data.schema.ManyToOne', {extend:Ext.data.schema.Association, isManyToOne:true, isToOne:true, kind:'many-to-one', Left:Ext.define(null, {extend:'Ext.data.schema.Role', isMany:true, onDrop:function(rightRecord, session) { + var me = this, store = me.getAssociatedItem(rightRecord), leftRecords, len, i, refs, id; + if (store) { + leftRecords = store.removeAll(); + if (leftRecords && me.inverse.owner) { + for (i = 0, len = leftRecords.length; i < len; ++i) { + leftRecords[i].drop(); + } + } + store.destroy(); + rightRecord[me.getStoreName()] = null; + } else { + if (session) { + leftRecords = session.getRefs(rightRecord, me); + if (leftRecords) { + for (id in leftRecords) { + leftRecords[id].drop(); + } + } + } + } +}, processUpdate:function(session, associationData) { + var me = this, entityType = me.inverse.cls, items = associationData.R, id, rightRecord, store, leftRecords; + if (items) { + for (id in items) { + rightRecord = session.peekRecord(entityType, id); + if (rightRecord) { + leftRecords = session.getEntityList(me.cls, items[id]); + store = me.getAssociatedItem(rightRecord); + if (store) { + store.loadData(leftRecords); + store.complete = true; + } else { + rightRecord[me.getterName](null, null, leftRecords); + } + } else { + session.onInvalidAssociationEntity(entityType, id); + } + } + } +}, findRecords:function(session, rightRecord, leftRecords, allowInfer) { + var ret = leftRecords, refs = session.getRefs(rightRecord, this, true), field = this.association.field, fieldName = field.name, leftRecord, id, i, len, seen; + if (!rightRecord.phantom) { + ret = []; + if (refs || allowInfer) { + if (leftRecords) { + seen = {}; + for (i = 0, len = leftRecords.length; i < len; ++i) { + leftRecord = leftRecords[i]; + id = leftRecord.id; + if (refs && refs[id]) { + ret.push(leftRecord); + } else { + if (allowInfer && leftRecord.data[fieldName] === undefined) { + ret.push(leftRecord); + leftRecord.data[fieldName] = rightRecord.id; + session.updateReference(leftRecord, field, rightRecord.id, undefined); + } + } + seen[id] = true; + } + } + if (refs) { + for (id in refs) { + if (!seen || !seen[id]) { + ret.push(refs[id]); + } + } + } + } + } + return ret; +}, processLoad:function(store, rightRecord, leftRecords, session) { + var ret = leftRecords; + if (session) { + ret = this.findRecords(session, rightRecord, leftRecords, true); + } + this.onLoadMany(rightRecord, ret, session); + return ret; +}, adoptAssociated:function(rightRecord, session) { + var store = this.getAssociatedItem(rightRecord), leftRecords, i, len; + if (store) { + store.setSession(session); + leftRecords = store.getData().items; + for (i = 0, len = leftRecords.length; i < len; ++i) { + session.adopt(leftRecords[i]); + } + } +}, createGetter:function() { + var me = this; + return function(options, scope, leftRecords) { + return me.getAssociatedStore(this, options, scope, leftRecords, me, true); + }; +}, createSetter:null, onAddToMany:function(store, leftRecords) { + this.syncFK(leftRecords, store.getAssociatedEntity(), false); +}, onLoadMany:function(rightRecord, leftRecords, session) { + var instanceName = this.inverse.getInstanceName(), id = rightRecord.getId(), field = this.association.field, i, len, leftRecord, oldId, data, name; + if (field) { + for (i = 0, len = leftRecords.length; i < len; ++i) { + leftRecord = leftRecords[i]; + leftRecord[instanceName] = rightRecord; + if (field) { + name = field.name; + data = leftRecord.data; + oldId = data[name]; + if (oldId !== id) { + data[name] = id; + if (session) { + session.updateReference(leftRecord, field, id, oldId); + } + } + } + } + } +}, onRemoveFromMany:function(store, leftRecords) { + this.syncFK(leftRecords, store.getAssociatedEntity(), true); +}, read:function(rightRecord, node, fromReader, readOptions) { + var me = this, instanceName = me.inverse.getInstanceName(), leftRecords = me.callParent([rightRecord, node, fromReader, readOptions]), store, len, i; + if (leftRecords) { + store = rightRecord[me.getterName](null, null, leftRecords); + delete rightRecord.data[me.role]; + leftRecords = store.getData().items; + for (i = 0, len = leftRecords.length; i < len; ++i) { + leftRecords[i][instanceName] = rightRecord; + } + } +}, syncFK:function(leftRecords, rightRecord, clearing) { + var foreignKeyName = this.association.getFieldName(), inverse = this.inverse, setter = inverse.setterName, instanceName = inverse.getInstanceName(), i = leftRecords.length, id = rightRecord.getId(), different, leftRecord, val; + while (i-- > 0) { + leftRecord = leftRecords[i]; + different = !leftRecord.isEqual(id, leftRecord.get(foreignKeyName)); + val = clearing ? null : rightRecord; + if (different !== clearing) { + leftRecord.changingKey = true; + leftRecord[setter](val); + leftRecord.changingKey = false; + } else { + leftRecord[instanceName] = val; + } + } +}}), Right:Ext.define(null, {extend:'Ext.data.schema.Role', left:false, side:'right', onDrop:function(leftRecord, session) { + var field = this.association.field; + if (field) { + leftRecord.set(field.name, null); + } + leftRecord[this.getInstanceName()] = null; +}, createGetter:function() { + var me = this; + return function(options, scope) { + return me.doGetFK(this, options, scope); + }; +}, createSetter:function() { + var me = this; + return function(rightRecord, options, scope) { + return me.doSetFK(this, rightRecord, options, scope); + }; +}, checkMembership:function(session, leftRecord) { + var field = this.association.field, store; + store = this.getSessionStore(session, leftRecord.get(field.name)); + if (store && !store.contains(leftRecord)) { + store.add(leftRecord); + } +}, onValueChange:function(leftRecord, session, newValue, oldValue) { + var me = this, instanceName = me.getInstanceName(), cls = me.cls, hasNewValue, joined, store, i, len, associated, rightRecord; + if (!leftRecord.changingKey) { + hasNewValue = newValue || newValue === 0; + if (!hasNewValue) { + leftRecord[instanceName] = null; + } + if (session) { + store = me.getSessionStore(session, oldValue); + if (store) { + store.remove(leftRecord); + } + if (hasNewValue) { + store = me.getSessionStore(session, newValue); + if (store && !store.isLoading()) { + store.add(leftRecord); + } + if (cls) { + rightRecord = session.peekRecord(cls, newValue); + } + leftRecord[instanceName] = rightRecord || undefined; + } + } else { + joined = leftRecord.joined; + if (joined) { + for (i = 0, len = joined.length; i < len; ++i) { + store = joined[i]; + if (store.isStore) { + associated = store.getAssociatedEntity(); + if (associated && associated.self === me.cls && associated.getId() === oldValue) { + store.remove(leftRecord); + } + } + } + } + } + } + if (me.owner && newValue === null) { + me.association.schema.queueKeyCheck(leftRecord, me); + } +}, checkKeyForDrop:function(leftRecord) { + var field = this.association.field; + if (leftRecord.get(field.name) === null) { + leftRecord.drop(); + } +}, getSessionStore:function(session, value) { + var cls = this.cls, rec; + if (cls) { + rec = session.peekRecord(cls, value); + if (rec) { + return this.inverse.getAssociatedItem(rec); + } + } +}, read:function(leftRecord, node, fromReader, readOptions) { + var rightRecords = this.callParent([leftRecord, node, fromReader, readOptions]), rightRecord; + if (rightRecords) { + rightRecord = rightRecords[0]; + if (rightRecord) { + leftRecord[this.getInstanceName()] = rightRecord; + delete leftRecord.data[this.role]; + } + } +}})}); +Ext.define('Ext.data.schema.ManyToMany', {extend:Ext.data.schema.Association, isManyToMany:true, isToMany:true, kind:'many-to-many', Left:Ext.define(null, {extend:'Ext.data.schema.Role', isMany:true, digitRe:/^\d+$/, findRecords:function(session, rightRecord, leftRecords) { + var slice = session.getMatrixSlice(this.inverse, rightRecord.id), members = slice.members, ret = [], cls = this.cls, seen, i, len, id, member, leftRecord; + if (leftRecords) { + seen = {}; + for (i = 0, len = leftRecords.length; i < len; ++i) { + leftRecord = leftRecords[i]; + id = leftRecord.id; + member = members[id]; + if (!(member && member[2] === -1)) { + ret.push(leftRecord); + } + seen[id] = true; + } + } + for (id in members) { + member = members[id]; + if (!seen || !seen[id] && (member && member[2] !== -1)) { + leftRecord = session.peekRecord(cls, id); + if (leftRecord) { + ret.push(leftRecord); + } + } + } + return ret; +}, processLoad:function(store, rightRecord, leftRecords, session) { + var ret = leftRecords; + if (session) { + ret = this.findRecords(session, rightRecord, leftRecords); + this.onAddToMany(store, ret, true); + } + return ret; +}, processUpdate:function(session, associationData) { + var me = this, entityType = me.inverse.cls, items = associationData.R, id, rightRecord, store, leftRecords; + if (items) { + for (id in items) { + rightRecord = session.peekRecord(entityType, id); + if (rightRecord) { + leftRecords = session.getEntityList(me.cls, items[id]); + store = me.getAssociatedItem(rightRecord); + if (store) { + store.loadData(leftRecords); + store.complete = true; + } else { + rightRecord[me.getterName](null, null, leftRecords); + } + } else { + session.onInvalidAssociationEntity(entityType, id); + } + } + } + me.processMatrixBlock(session, associationData.C, 1); + me.processMatrixBlock(session, associationData.D, -1); +}, checkMembership:function(session, rightRecord) { + var matrix = session.getMatrix(this.association, true), side, entityType, inverse, slice, slices, id, members, member, leftRecord, store; + if (!matrix) { + return; + } + side = this.left ? matrix.right : matrix.left; + entityType = side.inverse.role.cls; + inverse = this.inverse; + slices = side.slices; + if (slices) { + slice = slices[rightRecord.id]; + if (slice) { + members = slice.members; + for (id in members) { + member = members[id]; + if (member[2] !== -1) { + leftRecord = session.peekRecord(entityType, id); + if (leftRecord) { + store = inverse.getAssociatedItem(leftRecord); + if (store) { + store.matrixUpdate = 1; + store.add(rightRecord); + store.matrixUpdate = 0; + } + } + } + } + } + } +}, onStoreCreate:function(store, session, id) { + var me = this, matrix; + if (session) { + matrix = session.getMatrixSlice(me.inverse, id); + matrix.attach(store); + matrix.notify = me.onMatrixUpdate; + matrix.scope = me; + } +}, processMatrixBlock:function(session, leftKeys, state) { + var inverse = this.inverse, digitRe = this.digitRe, slice, id; + if (leftKeys) { + for (id in leftKeys) { + if (digitRe.test(id)) { + id = parseInt(id, 10); + } + slice = session.getMatrixSlice(inverse, id); + slice.update(leftKeys[id], state); + } + } +}, createGetter:function() { + var me = this; + return function(options, scope, leftRecords) { + return me.getAssociatedStore(this, options, scope, leftRecords, false); + }; +}, onAddToMany:function(store, leftRecords, load) { + if (!store.matrixUpdate) { + store.matrixUpdate = 1; + store.matrix.update(leftRecords, load === true ? 0 : 1); + store.matrixUpdate = 0; + } +}, onRemoveFromMany:function(store, records) { + if (!store.matrixUpdate) { + store.matrixUpdate = 1; + store.matrix.update(records, -1); + store.matrixUpdate = 0; + } +}, read:function(rightRecord, node, fromReader, readOptions) { + var me = this, leftRecords = me.callParent([rightRecord, node, fromReader, readOptions]); + if (leftRecords) { + rightRecord[me.getterName](null, null, leftRecords); + delete rightRecord.data[me.role]; + } +}, onMatrixUpdate:function(matrixSlice, id, state) { + var store = matrixSlice.store, index, leftRecord, entry; + if (store && !store.loading && !store.matrixUpdate) { + store.matrixUpdate = 1; + index = store.indexOfId(id); + if (state < 0) { + if (index >= 0) { + store.remove([index]); + } + } else { + if (index < 0) { + entry = store.getSession().getEntry(this.type, id); + leftRecord = entry && entry.record; + if (leftRecord) { + store.add(leftRecord); + } + } + } + store.matrixUpdate = 0; + } +}, adoptAssociated:function(record, session) { + var store = this.getAssociatedItem(record), records, i, len; + if (store) { + store.setSession(session); + this.onStoreCreate(store, session, record.getId()); + records = store.getData().items; + for (i = 0, len = records.length; i < len; ++i) { + session.adopt(records[i]); + } + } +}}, function() { + var Left = this; + Ext.ClassManager.onCreated(function() { + Ext.data.schema.ManyToMany.prototype.Right = Ext.define(null, {extend:Left, left:false, side:'right'}); + }, null, 'Ext.data.schema.ManyToMany'); +})}); +Ext.define('Ext.util.Inflector', {singleton:true, plurals:[[/(quiz)$/i, '$1zes'], [/^(ox)$/i, '$1en'], [/([m|l])ouse$/i, '$1ice'], [/(matr|vert|ind)ix|ex$/i, '$1ices'], [/(x|ch|ss|sh)$/i, '$1es'], [/([^aeiouy]|qu)y$/i, '$1ies'], [/(hive)$/i, '$1s'], [/(?:([^f])fe|([lr])f)$/i, '$1$2ves'], [/sis$/i, 'ses'], [/([ti])um$/i, '$1a'], [/(buffal|tomat|potat)o$/i, '$1oes'], [/(bu)s$/i, '$1ses'], [/(alias|status|sex)$/i, '$1es'], [/(octop|vir)us$/i, '$1i'], [/(ax|test)is$/i, '$1es'], [/^(p)erson$/i, '$1eople'], +[/^(m)an$/i, '$1en'], [/(.*)(child)(ren)?$/i, '$1$2ren'], [/s$/i, 's'], [/$/, 's']], singulars:[[/(address)$/i, '$1'], [/(quiz)zes$/i, '$1'], [/(matr)ices$/i, '$1ix'], [/(vert|ind)ices$/i, '$1ex'], [/^(ox)en/i, '$1'], [/(alias|status)es$/i, '$1'], [/(octop|vir)i$/i, '$1us'], [/(cris|ax|test)es$/i, '$1is'], [/(shoe)s$/i, '$1'], [/(o)es$/i, '$1'], [/(bus)es$/i, '$1'], [/([m|l])ice$/i, '$1ouse'], [/(x|ch|ss|sh)es$/i, '$1'], [/(m)ovies$/i, '$1ovie'], [/(s)eries$/i, '$1eries'], [/([^aeiouy]|qu)ies$/i, +'$1y'], [/([lr])ves$/i, '$1f'], [/(tive)s$/i, '$1'], [/(hive)s$/i, '$1'], [/([^f])ves$/i, '$1fe'], [/(^analy)ses$/i, '$1sis'], [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i, '$1$2sis'], [/([ti])a$/i, '$1um'], [/(n)ews$/i, '$1ews'], [/(p)eople$/i, '$1erson'], [/s$/i, '']], uncountable:['sheep', 'fish', 'series', 'species', 'money', 'rice', 'information', 'equipment', 'grass', 'mud', 'offspring', 'deer', 'means'], singular:function(matcher, replacer) { + this.singulars.unshift([matcher, replacer]); +}, plural:function(matcher, replacer) { + this.plurals.unshift([matcher, replacer]); +}, clearSingulars:function() { + this.singulars = []; +}, clearPlurals:function() { + this.plurals = []; +}, isTransnumeral:function(word) { + return Ext.Array.indexOf(this.uncountable, word) != -1; +}, pluralize:function(word) { + if (this.isTransnumeral(word)) { + return word; + } + var plurals = this.plurals, length = plurals.length, tuple, regex, i; + for (i = 0; i < length; i++) { + tuple = plurals[i]; + regex = tuple[0]; + if (regex == word || regex.test && regex.test(word)) { + return word.replace(regex, tuple[1]); + } + } + return word; +}, singularize:function(word) { + if (this.isTransnumeral(word)) { + return word; + } + var singulars = this.singulars, length = singulars.length, tuple, regex, i; + for (i = 0; i < length; i++) { + tuple = singulars[i]; + regex = tuple[0]; + if (regex == word || regex.test && regex.test(word)) { + return word.replace(regex, tuple[1]); + } + } + return word; +}, classify:function(word) { + return Ext.String.capitalize(this.singularize(word)); +}, ordinalize:function(number) { + var parsed = parseInt(number, 10), mod10 = parsed % 10, mod100 = parsed % 100; + if (11 <= mod100 && mod100 <= 13) { + return number + 'th'; + } else { + switch(mod10) { + case 1: + return number + 'st'; + case 2: + return number + 'nd'; + case 3: + return number + 'rd'; + default: + return number + 'th'; + } + } +}}, function() { + var irregulars = {alumnus:'alumni', cactus:'cacti', focus:'foci', nucleus:'nuclei', radius:'radii', stimulus:'stimuli', ellipsis:'ellipses', paralysis:'paralyses', oasis:'oases', appendix:'appendices', index:'indexes', beau:'beaux', bureau:'bureaux', tableau:'tableaux', woman:'women', child:'children', man:'men', corpus:'corpora', criterion:'criteria', curriculum:'curricula', genus:'genera', memorandum:'memoranda', phenomenon:'phenomena', foot:'feet', goose:'geese', tooth:'teeth', antenna:'antennae', + formula:'formulae', nebula:'nebulae', vertebra:'vertebrae', vita:'vitae'}, singular; + for (singular in irregulars) { + if (irregulars.hasOwnProperty(singular)) { + this.plural(singular, irregulars[singular]); + this.singular(irregulars[singular], singular); + } + } +}); +Ext.define('Ext.data.schema.Namer', {mixins:[Ext.mixin.Factoryable], alias:'namer.default', isNamer:true, capitalize:function(name) { + return Ext.String.capitalize(name); +}, fieldRole:function(name) { + var match = name.match(this.endsWithIdRe, ''); + if (match) { + name = name.substr(0, name.length - (match[1] || match[2]).length); + } + return this.apply('uncapitalize', name); +}, idField:function(name) { + return this.apply('uncapitalize,singularize', name) + 'Id'; +}, instanceName:function(roleName) { + return this.apply('underscore', roleName); +}, multiRole:function(name) { + return this.apply('undotted,uncapitalize,pluralize', name); +}, pluralize:function(name) { + return Ext.util.Inflector.pluralize(name); +}, readerRoot:function(roleName) { + return this.apply('uncapitalize', roleName); +}, singularize:function(name) { + return Ext.util.Inflector.singularize(name); +}, storeName:function(roleName) { + return this.apply('underscore', roleName); +}, uncapitalize:function(name) { + return Ext.String.uncapitalize(name); +}, underscore:function(name) { + return '_' + name; +}, uniRole:function(name) { + return this.apply('undotted,uncapitalize,singularize', name); +}, undotted:function(name) { + if (name.indexOf('.') < 0) { + return name; + } + var parts = name.split('.'), index = parts.length; + while (index-- > 1) { + parts[index] = this.apply('capitalize', parts[index]); + } + return parts.join(''); +}, getterName:function(role) { + var name = role.role; + if (role && role.isMany) { + return name; + } + return 'get' + this.apply('capitalize', name); +}, inverseFieldRole:function(leftType, unique, rightRole, rightType) { + var me = this, leftRole = me.apply(unique ? 'uniRole' : 'multiRole', leftType), s1 = me.apply('pluralize', rightRole), s2 = me.apply('undotted,pluralize', rightType); + if (s1.toLowerCase() !== s2.toLowerCase()) { + leftRole = rightRole + me.apply('capitalize', leftRole); + } + return leftRole; +}, manyToMany:function(relation, leftType, rightType) { + var me = this, ret = me.apply('undotted,capitalize,singularize', leftType) + me.apply('undotted,capitalize,pluralize', rightType); + if (relation) { + ret = me.apply('capitalize', relation + ret); + } + return ret; +}, manyToOne:function(leftType, leftRole, rightType, rightRole) { + return this.apply('capitalize,singularize', rightType) + this.apply('capitalize', leftRole); +}, matrixRole:function(relation, entityType) { + var ret = this.apply(relation ? 'multiRole,capitalize' : 'multiRole', entityType); + return relation ? relation + ret : ret; +}, oneToOne:function(leftType, leftRole, rightType, rightRole) { + return this.apply('undotted,capitalize,singularize', rightType) + this.apply('capitalize', leftRole); +}, setterName:function(role) { + return 'set' + this.apply('capitalize', role.role); +}, endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/, cache:{}, apply:function(operation, name) { + var me = this, cache = me.cache, entry = cache[name] || (cache[name] = {}), ret = entry[operation], i, length, operations; + if (!ret) { + if (operation.indexOf(',') < 0) { + ret = me[operation](name); + } else { + length = (operations = operation.split(',')).length; + ret = name; + for (i = 0; i < length; ++i) { + ret = me.apply(operations[i], ret); + } + } + entry[operation] = ret; + } + return ret; +}}); +Ext.define('Ext.data.schema.Schema', {mixins:[Ext.mixin.Factoryable], alias:'schema.default', aliasPrefix:'schema.', isSchema:true, type:'default', statics:{instances:{}, get:function(config) { + var Schema = this, cache = Schema.instances, id = 'default', isString = config && Ext.isString(config), instance, newConfig; + if (config) { + if (config.isSchema) { + return config; + } + id = isString ? config : config.id || id; + } + if (!(instance = cache[id])) { + cache[id] = instance = Schema.create(config); + instance.id = id; + } else { + if (config && !isString) { + if (id !== 'default') { + Ext.raise('Only the default Schema instance can be reconfigured'); + } + newConfig = Ext.merge({}, instance.config); + Ext.merge(newConfig, config); + instance.setConfig(newConfig); + instance.config = newConfig; + instance.setConfig = function() { + Ext.raise('The schema can only be reconfigured once'); + }; + } + } + return instance; +}, lookupEntity:function(entity) { + var ret = null, instances = this.instances, match, name, schema; + if (entity) { + if (entity.isEntity) { + ret = entity.self; + } else { + if (Ext.isFunction(entity)) { + ret = entity; + } else { + if (Ext.isString(entity)) { + ret = Ext.ClassManager.get(entity); + if (ret && (!ret.prototype || !ret.prototype.isEntity)) { + ret = null; + } + if (!ret) { + for (name in instances) { + schema = instances[name]; + match = schema.getEntity(entity); + if (match) { + if (ret) { + Ext.raise('Ambiguous entity name "' + entity + '". Defined by schema "' + ret.schema.type + '" and "' + name + '"'); + } + ret = match; + } + } + } + if (!ret) { + Ext.raise('No such Entity "' + entity + '".'); + } + } + } + } + } + return ret; +}}, assocCount:0, entityCount:0, config:{defaultIdentifier:null, keyCheckDelay:10, namer:'default', namespace:null, proxy:{type:'ajax', url:'{prefix}/{entityName}'}, urlPrefix:''}, onClassExtended:function(cls, data) { + var alias = data.alias; + if (alias && !data.type) { + if (!Ext.isString(alias)) { + alias = alias[0]; + } + cls.prototype.type = alias.substring(this.prototype.aliasPrefix.length); + } +}, constructor:function(config) { + this.initConfig(config); + this.clear(); +}, applyDefaultIdentifier:function(identifier) { + return identifier && Ext.Factory.dataIdentifier(identifier); +}, applyNamer:function(namer) { + var ret = Ext.data.schema.Namer.create(namer); + ret.schema = this; + return ret; +}, applyNamespace:function(namespace) { + if (namespace) { + var end = namespace.length - 1; + if (namespace.charAt(end) !== '.') { + namespace += '.'; + } + } + return namespace; +}, applyProxy:function(proxy) { + return Ext.util.ObjectTemplate.create(proxy); +}, eachAssociation:function(fn, scope) { + var associations = this.associations, name; + for (name in associations) { + if (associations.hasOwnProperty(name)) { + if (fn.call(scope, name, associations[name]) === false) { + break; + } + } + } +}, eachEntity:function(fn, scope) { + var entities = this.entities, name; + for (name in entities) { + if (entities.hasOwnProperty(name)) { + if (fn.call(scope, name, entities[name].cls) === false) { + break; + } + } + } +}, getAssociation:function(name) { + var entry = this.associations[name]; + return entry || null; +}, getEntity:function(name) { + var entry = this.entityClasses[name] || this.entities[name]; + return entry && entry.cls || null; +}, getEntityName:function(cls) { + var ns = this.getNamespace(), index, name; + if (typeof cls === 'string') { + name = cls; + } else { + name = cls.$className || null; + } + if (name) { + if (ns) { + index = ns.length; + if (name.substring(0, index) !== ns) { + return name; + } + } + if (index) { + name = name.substring(index); + } + } + return name; +}, hasAssociations:function(name) { + name = name.entityName || name; + return !!this.associationEntityMap[name]; +}, hasEntity:function(entity) { + var name = this.getEntityName(entity); + return !!(this.entities[name] || this.entityClasses[name]); +}, addMatrix:function(entityType, matrixName, relation, left, right) { + var me = this, namer = me.getNamer(), associations = me.associations, entities = me.entities, leftType = left.type, rightType = right.type, leftField = left.field || namer.apply('idField', leftType), rightField = right.field || namer.apply('idField', rightType), leftRole = left.role || namer.matrixRole(relation, leftType), rightRole = right.role || namer.matrixRole(relation, rightType), matrix, leftEntry, rightEntry; + leftEntry = entities[leftType] || (entities[leftType] = {cls:null, name:leftType, associations:{}}); + rightEntry = entities[rightType] || (entities[rightType] = {cls:null, name:rightType, associations:{}}); + ++me.assocCount; + associations[matrixName] = matrix = new Ext.data.schema.ManyToMany({name:matrixName, schema:me, definedBy:entityType, left:{cls:leftEntry.cls, type:leftType, role:leftRole, field:leftField, associationKey:left.associationKey}, right:{cls:rightEntry.cls, type:rightType, role:rightRole, field:rightField, associationKey:right.associationKey}}); + leftEntry.associations[matrix.right.role] = matrix.right; + rightEntry.associations[matrix.left.role] = matrix.left; + if (leftEntry.cls) { + me.associationEntityMap[leftEntry.cls.entityName] = true; + } + if (rightEntry.cls) { + me.associationEntityMap[rightEntry.cls.entityName] = true; + } + me.decorateModel(matrix); +}, addReference:function(entityType, referenceField, descr, unique) { + var me = this, namer = me.getNamer(), entities = me.entities, associations = me.associations, entityName = entityType.entityName, association = descr.association, legacy = !!descr.legacy, child = descr.child, parent = descr.parent, rightRole = descr.role, rightType = descr.type || parent || child, leftVal = descr.inverse, left = Ext.isString(leftVal) ? {role:leftVal} : leftVal, leftRole = left && left.role, entry, T; + if (!rightRole) { + if (legacy) { + rightRole = namer.apply('uncapitalize', rightType); + } else { + rightRole = namer.apply('fieldRole', referenceField.name); + } + } + if (!leftRole) { + leftRole = namer.inverseFieldRole(entityName, unique, rightRole, rightType); + } + if (!association) { + if (unique) { + association = namer.oneToOne(entityType, leftRole, rightType, rightRole); + } else { + association = namer.manyToOne(entityType, leftRole, rightType, rightRole); + } + } + if (association in associations) { + Ext.raise('Duplicate association: "' + association + '" declared by ' + entityName + (referenceField ? '.' + referenceField.name : '') + ' (collides with ' + associations[association].definedBy.entityName + ')'); + } + if (referenceField && referenceField.definedBy === entities[rightType]) { + Ext.raise('ForeignKey reference should not be owned by the target model'); + } + entry = entities[rightType] || (entities[rightType] = {cls:null, name:rightType, associations:{}}); + T = unique ? Ext.data.schema.OneToOne : Ext.data.schema.ManyToOne; + association = new T({name:association, owner:child ? 'left' : parent ? 'right' : null, definedBy:entityType, schema:me, field:referenceField, nullable:referenceField ? !!referenceField.allowBlank : true, legacy:descr.legacy, left:{cls:entityType, type:entityName, role:leftRole, extra:left}, right:{cls:entry.cls, type:rightType, role:rightRole, extra:descr}}); + entityType.associations[rightRole] = association.right; + entry.associations[leftRole] = association.left; + if (referenceField) { + referenceField.reference = association.right; + entityType.references.push(referenceField); + } + ++me.assocCount; + me.associationEntityMap[entityName] = true; + if (entry.cls) { + me.associationEntityMap[entry.cls.entityName] = true; + } + associations[association.name] = association; + if (association.right.cls) { + me.decorateModel(association); + } +}, privates:{addEntity:function(entityType) { + var me = this, entities = me.entities, entityName = entityType.entityName, entry = entities[entityName], fields = entityType.fields, associations, field, i, length, name; + if (!entry) { + entities[entityName] = entry = {name:entityName, associations:{}}; + } else { + if (entry.cls) { + Ext.raise('Duplicate entity name "' + entityName + '": ' + entry.cls.$className + ' and ' + entityType.$className); + } else { + associations = entry.associations; + for (name in associations) { + associations[name].inverse.cls = entityType; + me.associationEntityMap[entityName] = true; + me.decorateModel(associations[name].association); + } + } + } + entry.cls = entityType; + entityType.prototype.associations = entityType.associations = entry.associations; + me.entityClasses[entityType.$className] = entry; + ++me.entityCount; + for (i = 0, length = fields.length; i < length; ++i) { + field = fields[i]; + if (field.reference) { + me.addReferenceDescr(entityType, field); + } + } +}, addMatrices:function(entityType, matrices) { + var me = this, i, length, matrixName; + if (Ext.isString(matrices)) { + me.addMatrixDescr(entityType, null, matrices); + } else { + if (matrices[0]) { + for (i = 0, length = matrices.length; i < length; ++i) { + me.addMatrixDescr(entityType, null, matrices[i]); + } + } else { + for (matrixName in matrices) { + me.addMatrixDescr(entityType, matrixName, matrices[matrixName]); + } + } + } +}, addMatrixDescr:function(entityType, matrixName, matrixDef) { + var me = this, entityName = entityType.entityName, associations = me.associations, namer = me.getNamer(), left = matrixDef.left, right = matrixDef.right, last, relation; + if (Ext.isString(matrixDef)) { + if (matrixDef.charAt(0) === '#') { + left = {type:entityName}; + right = {type:matrixDef.substring(1)}; + } else { + if (matrixDef.charAt(last = matrixDef.length - 1) === '#') { + left = {type:matrixDef.substring(0, last)}; + right = {type:entityName}; + } else { + if (namer.apply('multiRole', entityName) < namer.apply('multiRole', matrixDef)) { + left = {type:entityName}; + right = {type:matrixDef}; + } else { + left = {type:matrixDef}; + right = {type:entityName}; + } + } + } + } else { + Ext.Assert.isString(matrixDef.type, 'No "type" for manyToMany in ' + entityName); + relation = matrixDef.relation; + if (left || !right && namer.apply('multiRole', entityName) < namer.apply('multiRole', matrixDef.type)) { + if (!left || left === true) { + left = {type:entityName}; + } else { + left = Ext.apply({type:entityName}, left); + } + right = matrixDef; + } else { + if (!right || right === true) { + right = {type:entityName}; + } else { + right = Ext.apply({type:entityName}, right); + } + left = matrixDef; + } + } + if (!matrixName) { + matrixName = namer.manyToMany(relation, left.type, right.type); + } + if (!(matrixName in associations)) { + me.addMatrix(entityType, matrixName, relation, left, right); + } else { + var entry = associations[matrixName], before = [entry.kind, entry.left.type, entry.left.role, entry.left.field, entry.right.type, entry.right.role, entry.right.field].join('|'); + delete associations[matrixName]; + me.addMatrix(entityType, matrixName, relation, left, right); + var after = associations[matrixName]; + associations[matrixName] = entry; + entry.left.cls.associations[entry.right.role] = entry.right; + entry.right.cls.associations[entry.left.role] = entry.left; + --me.assocCount; + after = [after.kind, after.left.type, after.left.role, after.left.field, after.right.type, after.right.role, after.right.field].join('|'); + if (before != after) { + Ext.log.warn(matrixName + '(' + entry.definedBy.entityName + '): ' + before); + Ext.log.warn(matrixName + '(' + entityName + '): ' + after); + Ext.raise('Conflicting association: "' + matrixName + '" declared by ' + entityName + ' was previously declared by ' + entry.definedBy.entityName); + } + } +}, addReferenceDescr:function(entityType, referenceField) { + var me = this, descr = referenceField.$reference; + if (Ext.isString(descr)) { + descr = {type:descr}; + } else { + descr = Ext.apply({}, descr); + } + if (descr.legacy) { + if (descr.single) { + me.addLegacySingle(entityType, descr); + } else { + me.addLegacyHasMany(entityType, descr); + } + } else { + me.addReference(entityType, referenceField, descr, referenceField.unique); + } +}, addPending:function(name, entityType, assoc, type) { + var pending = this.pending; + if (!pending[name]) { + pending[name] = []; + } + pending[name].push([entityType, assoc, type]); +}, addLegacyBelongsTo:function(entityType, assoc) { + this.addLegacySingle(entityType, assoc); +}, addLegacyHasOne:function(entityType, assoc) { + this.addLegacySingle(entityType, assoc); +}, addLegacySingle:function(entityType, assoc) { + var foreignKey, name, referenceField; + assoc = this.constructLegacyAssociation(entityType, assoc); + assoc.single = true; + name = assoc.type; + foreignKey = assoc.foreignKey || name.toLowerCase() + '_id'; + referenceField = entityType.getField(foreignKey); + if (referenceField) { + referenceField.$reference = assoc; + } + this.addReference(entityType, referenceField, assoc, true); +}, addLegacyHasMany:function(entityType, assoc) { + var me = this, entities = me.entities, pending = me.pending, associationKey = assoc.associationKey, cls, name, referenceField, target, foreignKey, assocName; + assoc = this.constructLegacyAssociation(entityType, assoc); + name = assoc.type; + target = entities[name]; + if (target && target.cls) { + assoc.type = entityType.entityName; + foreignKey = assoc.foreignKey || assoc.type.toLowerCase() + '_id'; + cls = target.cls; + referenceField = cls.getField(foreignKey); + assoc.inverse = assoc || {}; + assocName = assoc.name; + if (assocName || associationKey) { + if (assocName) { + assoc.inverse.role = assocName; + } + if (associationKey) { + assoc.inverse.associationKey = associationKey; + } + } + if (referenceField) { + referenceField.$reference = assoc; + } + me.addReference(cls, referenceField, assoc, false); + } else { + if (!pending[name]) { + pending[name] = []; + } + pending[name].push([entityType, assoc]); + } +}, constructLegacyAssociation:function(entityType, assoc) { + if (Ext.isString(assoc)) { + assoc = {model:assoc}; + } + assoc.legacy = true; + assoc.type = this.getEntityName(assoc.model); + var name = assoc.associatedName || assoc.name; + if (name) { + assoc.role = name; + } + return assoc; +}, afterLegacyAssociations:function(cls) { + var pending = this.pending, name = cls.entityName, mine = pending[name], i, len; + if (mine) { + for (i = 0, len = mine.length; i < len; ++i) { + this.addLegacyHasMany.apply(this, mine[i]); + } + delete pending[name]; + } +}, clear:function(clearNamespace) { + var me = this, timer = me.timer; + delete me.setConfig; + if (timer) { + window.clearTimeout(timer); + me.timer = null; + } + me.associations = {}; + me.associationEntityMap = {}; + me.entities = {}; + me.entityClasses = {}; + me.pending = {}; + me.assocCount = me.entityCount = 0; + if (clearNamespace) { + me.setNamespace(null); + } +}, constructProxy:function(Model) { + var me = this, data = Ext.Object.chain(Model), proxy = me.getProxy(); + data.schema = me; + data.prefix = me.getUrlPrefix(); + return proxy.apply(data); +}, applyDecoration:function(role) { + var me = this, cls = role.inverse.cls, namer = me.getNamer(), getterName, setterName, proto; + if (cls && !role.decorated) { + role.decorated = true; + proto = cls.prototype; + if (!(getterName = role.getterName)) { + role.getterName = getterName = namer.getterName(role); + } + proto[getterName] = role.createGetter(); + if (role.createSetter) { + if (!(setterName = role.setterName)) { + role.setterName = setterName = namer.setterName(role); + } + proto[setterName] = role.createSetter(); + } + } +}, decorateModel:function(association) { + this.applyDecoration(association.left); + this.applyDecoration(association.right); +}, processKeyChecks:function(processAll) { + var me = this, keyCheckQueue = me.keyCheckQueue, timer = me.timer, len, i, item; + if (timer) { + window.clearTimeout(timer); + me.timer = null; + } + if (!keyCheckQueue) { + return; + } + do { + keyCheckQueue = me.keyCheckQueue; + me.keyCheckQueue = []; + for (i = 0, len = keyCheckQueue.length; i < len; ++i) { + item = keyCheckQueue[i]; + item.role.checkKeyForDrop(item.record); + } + } while (processAll && me.keyCheckQueue.length); +}, queueKeyCheck:function(record, role) { + var me = this, keyCheckQueue = me.keyCheckQueue, timer = me.timer; + if (!keyCheckQueue) { + me.keyCheckQueue = keyCheckQueue = []; + } + keyCheckQueue.push({record:record, role:role}); + if (!timer) { + me.timer = timer = Ext.Function.defer(me.processKeyChecks, me.getKeyCheckDelay(), me); + } +}, rankEntities:function() { + var me = this, entities = me.entities, entityNames = Ext.Object.getKeys(entities), length = entityNames.length, entityType, i; + me.nextRank = 1; + entityNames.sort(); + for (i = 0; i < length; ++i) { + entityType = entities[entityNames[i]].cls; + if (!entityType.rank) { + me.rankEntity(entityType); + } + } + me.topoStack = null; +}, rankEntity:function(entityType) { + var associations = entityType.associations, associatedType, role, roleName; + var topoStack = this.topoStack || (this.topoStack = []), entityName = entityType.entityName; + topoStack.push(entityName); + if (entityType.rank === 0) { + Ext.raise(entityName + ' has circular foreign-key references: ' + topoStack.join(' --\x3e ')); + } + entityType.rank = 0; + for (roleName in associations) { + role = associations[roleName]; + if (!role.left && role.association.field) { + associatedType = role.cls; + if (!associatedType.rank) { + this.rankEntity(associatedType); + } + } + } + entityType.rank = this.nextRank++; + topoStack.pop(); +}}}); +Ext.define('Ext.data.AbstractStore', {mixins:[Ext.mixin.Observable, Ext.mixin.Factoryable], factoryConfig:{defaultType:'store', type:'store'}, $configPrefixed:false, $configStrict:false, config:{filters:null, autoDestroy:undefined, storeId:null, statefulFilters:false, sorters:null, remoteSort:{lazy:true, $value:false}, remoteFilter:{lazy:true, $value:false}, groupField:undefined, groupDir:'ASC', grouper:null, pageSize:25}, currentPage:1, loading:false, isStore:true, updating:0, constructor:function(config) { + var me = this, storeId; + me.isInitializing = true; + me.mixins.observable.constructor.call(me, config); + me.isInitializing = false; + storeId = me.getStoreId(); + if (!storeId && (config && config.id)) { + me.setStoreId(storeId = config.id); + } + if (storeId) { + Ext.data.StoreManager.register(me); + } +}, getCount:function() { + return this.getData().getCount(); +}, rangeCached:function(start, end) { + return this.getData().getCount() >= Math.max(start, end); +}, find:function(property, value, startIndex, anyMatch, caseSensitive, exactMatch) { + var startsWith = !anyMatch, endsWith = !!(startsWith && exactMatch); + return this.getData().findIndex(property, value, startIndex, startsWith, endsWith, !caseSensitive); +}, findRecord:function() { + var me = this, index = me.find.apply(me, arguments); + return index !== -1 ? me.getAt(index) : null; +}, findExact:function(property, value, start) { + return this.getData().findIndexBy(function(rec) { + return rec.isEqual(rec.get(property), value); + }, this, start); +}, findBy:function(fn, scope, start) { + return this.getData().findIndexBy(fn, scope, start); +}, getAt:function(index) { + return this.getData().getAt(index) || null; +}, getRange:function(start, end, options) { + var result = this.getData().getRange(start, Ext.isNumber(end) ? end + 1 : end); + if (options && options.callback) { + options.callback.call(options.scope || this, result, start, end, options); + } + return result; +}, getFilters:function(autoCreate) { + var result = this.callParent(); + if (!result && autoCreate !== false) { + this.setFilters([]); + result = this.callParent(); + } + return result; +}, applyFilters:function(filters, filtersCollection) { + var created; + if (!filtersCollection) { + filtersCollection = this.createFiltersCollection(); + created = true; + } + filtersCollection.add(filters); + if (created) { + this.onRemoteFilterSet(filtersCollection, this.getRemoteFilter()); + } + return filtersCollection; +}, getSorters:function(autoCreate) { + var result = this.callParent(); + if (!result && autoCreate !== false) { + this.setSorters([]); + result = this.callParent(); + } + return result; +}, applySorters:function(sorters, sortersCollection) { + var created; + if (!sortersCollection) { + sortersCollection = this.createSortersCollection(); + created = true; + } + sortersCollection.add(sorters); + if (created) { + this.onRemoteSortSet(sortersCollection, this.getRemoteSort()); + } + return sortersCollection; +}, filter:function(filters, value, supressEvent) { + if (Ext.isString(filters)) { + filters = {property:filters, value:value}; + } + this.suppressNextFilter = !!supressEvent; + this.getFilters().add(filters); + this.suppressNextFilter = false; +}, removeFilter:function(filter, supressEvent) { + var me = this, filters = me.getFilters(); + me.suppressNextFilter = !!supressEvent; + if (filter instanceof Ext.util.Filter) { + filters.remove(filter); + } else { + filters.removeByKey(filter); + } + me.suppressNextFilter = false; +}, updateRemoteSort:function(remoteSort) { + this.onRemoteSortSet(this.getSorters(false), remoteSort); +}, updateRemoteFilter:function(remoteFilter) { + this.onRemoteFilterSet(this.getFilters(false), remoteFilter); +}, addFilter:function(filters, supressEvent) { + this.suppressNextFilter = !!supressEvent; + this.getFilters().add(filters); + this.suppressNextFilter = false; +}, filterBy:function(fn, scope) { + this.getFilters().add({filterFn:fn, scope:scope || this}); +}, clearFilter:function(supressEvent) { + var me = this, filters = me.getFilters(false); + if (!filters || filters.getCount() === 0) { + return; + } + me.suppressNextFilter = !!supressEvent; + filters.removeAll(); + me.suppressNextFilter = false; +}, isFiltered:function() { + return this.getFilters().getCount() > 0; +}, isSorted:function() { + var sorters = this.getSorters(false); + return !!(sorters && sorters.length > 0) || this.isGrouped(); +}, addFieldTransform:function(sorter) { + if (sorter.getTransform()) { + return; + } + var fieldName = sorter.getProperty(), Model = this.getModel(), field, sortType; + if (Model) { + field = Model.getField(fieldName); + sortType = field ? field.getSortType() : null; + } + if (sortType && sortType !== Ext.identityFn) { + sorter.setTransform(sortType); + } +}, beginUpdate:function() { + if (!this.updating++) { + this.fireEvent('beginupdate'); + } +}, endUpdate:function() { + if (this.updating && !--this.updating) { + this.fireEvent('endupdate'); + this.onEndUpdate(); + } +}, getState:function() { + var me = this, sorters = [], filters = me.getFilters(), grouper = me.getGrouper(), filterState, hasState, result; + me.getSorters().each(function(s) { + sorters[sorters.length] = s.getState(); + hasState = true; + }); + if (me.statefulFilters && me.saveStatefulFilters) { + hasState = true; + filterState = []; + filters.each(function(f) { + filterState[filterState.length] = f.getState(); + }); + } + if (grouper) { + hasState = true; + } + if (hasState) { + result = {}; + if (sorters.length) { + result.sorters = sorters; + } + if (filterState) { + result.filters = filterState; + } + if (grouper) { + result.grouper = grouper.getState(); + } + } + return result; +}, applyState:function(state) { + var me = this, stateSorters = state.sorters, stateFilters = state.filters, stateGrouper = state.grouper; + if (stateSorters) { + me.getSorters().replaceAll(stateSorters); + } + if (stateFilters) { + me.saveStatefulFilters = true; + me.getFilters().replaceAll(stateFilters); + } + if (stateGrouper) { + me.setGrouper(stateGrouper); + } +}, hasPendingLoad:Ext.emptyFn, isLoaded:Ext.emptyFn, isLoading:Ext.emptyFn, destroy:function() { + var me = this; + if (me.getStoreId()) { + Ext.data.StoreManager.unregister(me); + } + me.callParent(); + me.onDestroy(); +}, sort:function(field, direction, mode) { + var me = this; + if (arguments.length === 0) { + if (me.getRemoteSort()) { + me.load(); + } else { + me.forceLocalSort(); + } + } else { + me.getSorters().addSort(field, direction, mode); + } +}, onBeforeCollectionSort:function(store, sorters) { + if (sorters) { + this.fireEvent('beforesort', this, sorters.getRange()); + } +}, onSorterEndUpdate:function() { + var me = this, sorters; + sorters = me.getSorters(false); + if (me.settingGroups || !sorters) { + return; + } + sorters = sorters.getRange(); + if (sorters.length) { + if (me.getRemoteSort()) { + me.load({callback:function() { + me.fireEvent('sort', me, sorters); + }}); + } else { + me.fireEvent('datachanged', me); + me.fireEvent('refresh', me); + me.fireEvent('sort', me, sorters); + } + } else { + me.fireEvent('sort', me, sorters); + } +}, onFilterEndUpdate:function() { + var me = this, suppressNext = me.suppressNextFilter; + if (me.getRemoteFilter()) { + me.getFilters().each(function(filter) { + if (filter.getInitialConfig().filterFn) { + Ext.raise('Unable to use a filtering function in conjunction with remote filtering.'); + } + }); + me.currentPage = 1; + if (!suppressNext) { + me.load(); + } + } else { + if (!suppressNext) { + me.fireEvent('datachanged', me); + me.fireEvent('refresh', me); + } + } + if (me.trackStateChanges) { + me.saveStatefulFilters = true; + } + me.fireEvent('filterchange', me, me.getFilters().getRange()); +}, updateGroupField:function(field) { + if (field) { + this.setGrouper({property:field, direction:this.getGroupDir()}); + } else { + this.setGrouper(null); + } +}, getGrouper:function() { + return this.getData().getGrouper(); +}, group:function(grouper, direction) { + var me = this, sorters = me.getSorters(false), change = grouper || sorters && sorters.length; + if (grouper && typeof grouper === 'string') { + grouper = {property:grouper, direction:direction || me.getGroupDir()}; + } + me.settingGroups = true; + me.getData().setGrouper(grouper); + delete me.settingGroups; + if (change) { + if (me.getRemoteSort()) { + me.load({scope:me, callback:me.fireGroupChange}); + } else { + me.fireEvent('datachanged', me); + me.fireEvent('refresh', me); + me.fireGroupChange(); + } + } else { + me.fireGroupChange(); + } +}, fireGroupChange:function() { + if (!this.destroyed) { + this.fireEvent('groupchange', this, this.getGrouper()); + } +}, clearGrouping:function() { + this.group(null); +}, getGroupField:function() { + var grouper = this.getGrouper(), group = ''; + if (grouper) { + group = grouper.getProperty(); + } + return group; +}, isGrouped:function() { + return !!this.getGrouper(); +}, applyGrouper:function(grouper) { + this.group(grouper); + return this.getData().getGrouper(); +}, getGroups:function() { + return this.getData().getGroups(); +}, onEndUpdate:Ext.emptyFn, privates:{loadsSynchronously:Ext.privateFn, onRemoteFilterSet:function(filters, remoteFilter) { + if (filters) { + filters[remoteFilter ? 'on' : 'un']('endupdate', this.onFilterEndUpdate, this); + } +}, onRemoteSortSet:function(sorters, remoteSort) { + var me = this; + if (sorters) { + sorters[remoteSort ? 'on' : 'un']('endupdate', me.onSorterEndUpdate, me); + me.getData()[remoteSort ? 'un' : 'on']('beforesort', me.onBeforeCollectionSort, me); + } +}}, deprecated:{5:{methods:{destroyStore:function() { + this.destroy(); +}}}}}); +Ext.define('Ext.data.Error', {isError:true, $configPrefixed:false, config:{field:null, message:''}, constructor:function(config) { + this.initConfig(config); + this.msg = this.message; +}}); +Ext.define('Ext.data.ErrorCollection', {extend:Ext.util.MixedCollection, alternateClassName:'Ext.data.Errors', init:function(record) { + var me = this, fields = record.fields, data = record.data, before, field, item, i, len, msg, val, name; + for (i = 0, len = fields.length; i < len; ++i) { + field = fields[i]; + name = field.name; + val = data[name]; + if (field.validate && !field.validate.$nullFn) { + before = me.length; + msg = field.validate(val, null, me, record); + if (before === me.length && msg !== true) { + me.add(name, msg); + } + } + } + return me; +}, add:function(key, value) { + var me = this, defaultMessage = Ext.data.field.Field.defaultInvalidMessage, obj = key, current; + if (Ext.isString(key)) { + obj = new Ext.data.Error({field:key, message:value || defaultMessage}); + } else { + if (!obj.isError) { + obj = new Ext.data.Error({field:obj.field || obj.name, message:obj.error || obj.message || obj.msg || defaultMessage}); + } + key = obj.field; + } + current = me.get(key); + if (current) { + if (Ext.isArray(current)) { + current.push(obj); + return current; + } + me.removeAtKey(key); + obj = [current, obj]; + obj.field = key; + obj = [obj]; + } + return me.callParent([obj]); +}, getKey:function(item) { + return item.field; +}, isValid:function() { + return this.length === 0; +}, getByField:function(fieldName) { + var values = this.get(fieldName); + if (values && !Ext.isArray(values)) { + values = [values]; + } + return values || []; +}}); +Ext.define('Ext.data.operation.Operation', {alternateClassName:'Ext.data.Operation', isOperation:true, config:{synchronous:false, url:'', params:undefined, callback:undefined, scope:undefined, resultSet:null, response:null, request:null, records:null, id:undefined, proxy:null, batch:null, recordCreator:null, internalCallback:null, internalScope:null}, order:0, foreignKeyDirection:1, started:false, running:false, complete:false, success:undefined, exception:false, error:undefined, idPrefix:'ext-operation-', +constructor:function(config) { + var scope = config && config.scope; + this.initConfig(config); + if (config) { + config.scope = scope; + } + if (scope) { + this.setScope(scope); + this.initialConfig.scope = scope; + } + this._internalId = Ext.id(this, this.idPrefix); +}, getAction:function() { + return this.action; +}, execute:function() { + var me = this, request; + delete me.error; + delete me.success; + me.complete = me.exception = false; + me.setStarted(); + me.request = request = me.doExecute(); + if (request) { + request.setOperation(me); + } + return request; +}, doExecute:Ext.emptyFn, abort:function() { + var me = this, request = me.request; + if (me.running && request) { + me.getProxy().abort(request); + me.request = null; + } +}, process:function(resultSet, request, response, autoComplete) { + var me = this; + autoComplete = autoComplete !== false; + me.setResponse(response); + me.setResultSet(resultSet); + if (resultSet.getSuccess()) { + me.doProcess(resultSet, request, response); + me.setSuccessful(autoComplete); + } else { + if (autoComplete) { + me.setException(resultSet.getMessage()); + } + } +}, _commitSetOptions:{convert:true, commit:true}, doProcess:function(resultSet, request, response) { + var me = this, commitSetOptions = me._commitSetOptions, clientRecords = me.getRecords(), clientLen = clientRecords.length, clientIdProperty = clientRecords[0].clientIdProperty, serverRecords = resultSet.getRecords(), serverLen = serverRecords ? serverRecords.length : 0, clientMap, serverRecord, clientRecord, i; + if (serverLen && clientIdProperty) { + clientMap = Ext.Array.toValueMap(clientRecords, 'id'); + for (i = 0; i < serverLen; ++i) { + serverRecord = serverRecords[i]; + clientRecord = clientMap[serverRecord[clientIdProperty]]; + if (clientRecord) { + delete clientMap[clientRecord.id]; + delete serverRecord[clientIdProperty]; + clientRecord.set(serverRecord, commitSetOptions); + } else { + Ext.log.warn('Ignoring server record: ' + Ext.encode(serverRecord)); + } + } + for (i in clientMap) { + clientMap[i].commit(); + } + } else { + for (i = 0; i < clientLen; ++i) { + clientRecord = clientRecords[i]; + if (serverLen === 0 || !(serverRecord = serverRecords[i])) { + clientRecord.commit(); + } else { + clientRecord.set(serverRecord, commitSetOptions); + } + } + } +}, setStarted:function() { + this.started = this.running = true; +}, setCompleted:function() { + var me = this, proxy = me.getProxy(); + me.complete = true; + me.running = false; + me.triggerCallbacks(); + if (proxy) { + proxy.completeOperation(me); + } +}, setSuccessful:function(complete) { + this.success = true; + if (complete) { + this.setCompleted(); + } +}, setException:function(error) { + var me = this; + me.exception = true; + me.success = me.running = false; + me.error = error; + me.setCompleted(); +}, triggerCallbacks:function() { + var me = this, callback = me.getInternalCallback(); + if (callback) { + callback.call(me.getInternalScope() || me, me); + me.setInternalCallback(null); + me.setInternalScope(null); + } + if (callback = me.getCallback()) { + callback.call(me.getScope() || me, me.getRecords(), me, me.wasSuccessful()); + me.setCallback(null); + me.setScope(null); + } +}, hasException:function() { + return this.exception; +}, getError:function() { + return this.error; +}, getRecords:function() { + var resultSet; + return this._records || ((resultSet = this.getResultSet()) ? resultSet.getRecords() : null); +}, isStarted:function() { + return this.started; +}, isRunning:function() { + return this.running; +}, isComplete:function() { + return this.complete; +}, wasSuccessful:function() { + return this.isComplete() && this.success === true; +}, allowWrite:function() { + return true; +}}); +Ext.define('Ext.data.operation.Create', {extend:Ext.data.operation.Operation, alias:'data.operation.create', action:'create', isCreateOperation:true, order:10, config:{recordCreator:Ext.identityFn}, doExecute:function() { + return this.getProxy().create(this); +}}); +Ext.define('Ext.data.operation.Destroy', {extend:Ext.data.operation.Operation, alias:'data.operation.destroy', action:'destroy', isDestroyOperation:true, order:30, foreignKeyDirection:-1, doProcess:function() { + var clientRecords = this.getRecords(), clientLen = clientRecords.length, i; + for (i = 0; i < clientLen; ++i) { + clientRecords[i].setErased(); + } +}, doExecute:function() { + return this.getProxy().erase(this); +}, getRecordData:function(record, operation) { + var data = {}, idField = record.idField, nameProperty = this.getNameProperty() || 'name'; + data[idField[nameProperty]] = record.id; + return data; +}}); +Ext.define('Ext.data.operation.Read', {extend:Ext.data.operation.Operation, alias:'data.operation.read', action:'read', isReadOperation:true, config:{filters:undefined, sorters:undefined, grouper:undefined, start:undefined, limit:undefined, page:undefined, addRecords:false}, doExecute:function() { + return this.getProxy().read(this); +}, doProcess:Ext.emptyFn, allowWrite:function() { + return false; +}}); +Ext.define('Ext.data.operation.Update', {extend:Ext.data.operation.Operation, alias:'data.operation.update', action:'update', isUpdateOperation:true, order:20, config:{recordCreator:Ext.identityFn}, doExecute:function() { + return this.getProxy().update(this); +}}); +Ext.define('Ext.data.SortTypes', {singleton:true, none:Ext.identityFn, stripCommasRe:/,/g, stripTagsRE:/<\/?[^>]+>/gi, asText:function(s) { + return s != null ? String(s).replace(this.stripTagsRe, '') : '\x00'; +}, asUCText:function(s) { + return s != null ? String(s).toUpperCase().replace(this.stripTagsRe, '') : '\x00'; +}, asUCString:function(s) { + return s != null ? String(s).toUpperCase() : '\x00'; +}, asDate:function(s) { + if (!s) { + return 0; + } + if (Ext.isDate(s)) { + return s.getTime(); + } + return Date.parse(String(s)); +}, asFloat:function(s) { + var val = parseFloat(String(s).replace(this.stripCommasRe, '')); + return isNaN(val) ? 0 : val; +}, asInt:function(s) { + var val = parseInt(String(s).replace(this.stripCommasRe, ''), 10); + return isNaN(val) ? 0 : val; +}}); +Ext.define('Ext.data.validator.Validator', {mixins:[Ext.mixin.Factoryable], alias:'data.validator.base', isValidator:true, type:'base', statics:{all:{}, register:function(name, cls) { + var all = this.all; + all[name.toUpperCase()] = all[name.toLowerCase()] = all[name] = cls.prototype; +}}, onClassExtended:function(cls, data) { + if (data.type) { + Ext.data.validator.Validator.register(data.type, cls); + } +}, constructor:function(config) { + if (typeof config === 'function') { + this.fnOnly = true; + this.validate = config; + } else { + this.initConfig(config); + } +}, validate:function() { + return true; +}, clone:function() { + var me = this; + if (me.fnOnly) { + return new Ext.data.validator.Validator(me.validate); + } + return new me.self(me.getCurrentConfig()); +}}, function() { + this.register(this.prototype.type, this); +}); +Ext.define('Ext.data.field.Field', {mixins:[Ext.mixin.Factoryable], alternateClassName:'Ext.data.Field', alias:'data.field.auto', aliasPrefix:'data.field.', type:'auto', factoryConfig:{defaultProperty:'name'}, isDataField:true, isField:true, allowBlank:true, allowNull:false, critical:false, defaultInvalidMessage:'This field is invalid', defaultValue:undefined, definedBy:null, depends:null, dependents:null, mapping:null, name:null, ordinal:undefined, persist:null, reference:null, unique:false, rank:null, +stripRe:/[\$,%]/g, calculated:false, evil:false, identifier:false, onClassExtended:function(cls, data) { + var sortType = data.sortType, proto = cls.prototype, superValidators = proto.validators, validators = data.validators; + if (sortType && Ext.isString(sortType)) { + proto.sortType = Ext.data.SortTypes[sortType]; + } + if (validators) { + if (!Ext.isArray(validators)) { + validators = [validators]; + } + delete data.validators; + if (superValidators) { + validators = superValidators.concat(validators); + } + proto.validators = validators; + } +}, argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/, calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi, constructor:function(config) { + var me = this, calculateRe = me.calculateRe, calculate, calculated, defaultValue, sortType, depends, map, match, dataProp, str, fld, validators; + if (config) { + if (Ext.isString(config)) { + me.name = config; + } else { + validators = config.validators; + if (validators) { + delete config.validators; + me.instanceValidators = validators; + } + Ext.apply(me, config); + } + } + if (!me.allowNull) { + me.allowNull = !!me.reference; + } + calculate = me.calculate; + depends = me.depends; + if (calculate) { + me.convert = me.doCalculate; + if (!depends) { + if (!(depends = calculate.$depends)) { + map = {}; + str = calculate.toString(); + calculate.$depends = depends = []; + match = me.argumentNamesRe.exec(str); + dataProp = match ? match[1] : 'data'; + while (match = calculateRe.exec(str)) { + if (dataProp === match[1] && !map[fld = match[2]]) { + map[fld] = 1; + depends.push(fld); + } + } + } + me.depends = depends; + } + } + defaultValue = me.defaultValue; + if (me.convert) { + me.calculated = calculated = me.convert.length > 1; + me.evil = calculated && !depends; + } + if (me.persist === null) { + me.persist = !calculate; + } + sortType = me.sortType; + if (!me.sortType) { + me.sortType = Ext.data.SortTypes.none; + } else { + if (Ext.isString(sortType)) { + me.sortType = Ext.data.SortTypes[sortType]; + } + } + if (depends && typeof depends === 'string') { + me.depends = [depends]; + } + me.cloneDefaultValue = defaultValue !== undefined && (Ext.isDate(defaultValue) || Ext.isArray(defaultValue) || Ext.isObject(defaultValue)); +}, setModelValidators:function(modelValidators) { + this._validators = null; + this.modelValidators = modelValidators; +}, compileValidators:function() { + var me = this; + me._validators = []; + me.constructValidators(me.validators); + me.constructValidators(me.modelValidators); + me.constructValidators(me.instanceValidators); +}, constructValidators:function(validators) { + if (validators) { + if (!(validators instanceof Array)) { + validators = [validators]; + } + var length = validators.length, all = this._validators, i, item; + for (i = 0; i < length; ++i) { + item = validators[i]; + if (item.fn) { + item = item.fn; + } + all.push(Ext.Factory.dataValidator(item)); + } + } +}, collate:function(value1, value2) { + var me = this, lhs = value1, rhs = value2; + if (me.sortType) { + lhs = me.sortType(lhs); + rhs = me.sortType(rhs); + } + return lhs === rhs ? 0 : lhs < rhs ? -1 : 1; +}, compare:function(value1, value2) { + return value1 === value2 ? 0 : value1 < value2 ? -1 : 1; +}, isEqual:function(value1, value2) { + return this.compare(value1, value2) === 0; +}, convert:null, serialize:null, validate:function(value, separator, errors, record) { + var me = this, ret = '', result, validator, validators, length, i; + if (!me._validators) { + me.compileValidators(); + } + validators = me._validators; + for (i = 0, length = validators.length; i < length; ++i) { + validator = validators[i]; + result = validator.validate(value, record); + if (result !== true) { + result = result || me.defaultInvalidMessage; + if (errors) { + errors.add(me.name, result); + ret = ret || result; + } else { + if (separator) { + if (ret) { + ret += separator; + } + ret += result; + } else { + ret = result; + break; + } + } + } + } + return ret || true; +}, doCalculate:function(v, rec) { + return rec ? this.calculate(rec.data) : v; +}, getName:function() { + return this.name; +}, getAllowBlank:function() { + return this.allowBlank; +}, getAllowNull:function() { + return this.allowNull; +}, getConvert:function() { + return this.convert; +}, getDefaultValue:function() { + return this.defaultValue; +}, getDepends:function() { + return this.depends; +}, getMapping:function() { + return this.mapping; +}, hasMapping:function() { + var map = this.mapping; + return !!(map || map === 0); +}, getPersist:function() { + return this.persist; +}, getSortType:function() { + return this.sortType; +}, getType:function() { + return 'auto'; +}, deprecated:{'5.1':{methods:{getSortDir:function() { + return this.sortDir; +}}}}}); +Ext.define('Ext.data.field.Boolean', {extend:Ext.data.field.Field, alias:['data.field.bool', 'data.field.boolean'], isBooleanField:true, trueRe:/^\s*(?:true|yes|on|1)\s*$/i, convert:function(v) { + if (typeof v === 'boolean') { + return v; + } + if (this.allowNull && (v === undefined || v === null || v === '')) { + return null; + } + return this.trueRe.test(String(v)); +}, getType:function() { + return 'bool'; +}}); +Ext.define('Ext.data.field.Date', {extend:Ext.data.field.Field, alias:'data.field.date', sortType:'asDate', isDateField:true, dateFormat:null, dateReadFormat:null, dateWriteFormat:null, compare:function(lhs, rhs) { + var lhsIsDate = lhs instanceof Date, rhsIsDate = rhs instanceof Date, result; + if (rhsIsDate && lhsIsDate) { + result = lhs.getTime() - rhs.getTime(); + if (result === 0) { + result = 0; + } else { + result = result < 0 ? -1 : 1; + } + } else { + if (lhsIsDate === rhsIsDate) { + result = 0; + } else { + result = lhsIsDate ? 1 : -1; + } + } + return result; +}, convert:function(v) { + if (!v) { + return null; + } + if (v instanceof Date) { + return v; + } + var dateFormat = this.dateReadFormat || this.dateFormat, parsed; + if (dateFormat) { + return Ext.Date.parse(v, dateFormat); + } + parsed = Date.parse(v); + return parsed ? new Date(parsed) : null; +}, serialize:function(value) { + var result = null, format; + if (Ext.isDate(value)) { + format = this.getDateWriteFormat(); + result = format ? Ext.Date.format(value, format) : value; + } + return result; +}, getDateFormat:function() { + return this.dateFormat; +}, getDateReadFormat:function() { + return this.dateReadFormat; +}, getDateWriteFormat:function() { + var me = this; + if (me.hasOwnProperty('dateWriteFormat')) { + return me.dateWriteFormat; + } + if (me.hasOwnProperty('dateFormat')) { + return me.dateFormat; + } + return me.dateWriteFormat || me.dateFormat || 'timestamp'; +}, getType:function() { + return 'date'; +}}); +Ext.define('Ext.data.field.Integer', {extend:Ext.data.field.Field, alias:['data.field.int', 'data.field.integer'], isNumeric:true, isIntegerField:true, numericType:'int', convert:function(v) { + if (typeof v === 'number') { + return this.getNumber(v); + } + var empty = v === undefined || v === null || v === '', allowNull = this.allowNull, out; + if (empty) { + out = allowNull ? null : 0; + } else { + out = this.parse(v); + if (allowNull && isNaN(out)) { + out = null; + } + } + return out; +}, getNumber:function(v) { + return parseInt(v, 10); +}, getType:function() { + return this.numericType; +}, parse:function(v) { + return parseInt(String(v).replace(this.stripRe, ''), 10); +}, sortType:function(s) { + if (s == null) { + s = Infinity; + } + return s; +}}); +Ext.define('Ext.data.field.Number', {extend:Ext.data.field.Integer, alias:['data.field.float', 'data.field.number'], isIntegerField:false, isNumberField:true, numericType:'float', getNumber:Ext.identityFn, parse:function(v) { + return parseFloat(String(v).replace(this.stripRe, '')); +}}); +Ext.define('Ext.data.field.String', {extend:Ext.data.field.Field, alias:'data.field.string', sortType:'asUCString', isStringField:true, convert:function(v) { + var defaultValue = this.allowNull ? null : ''; + return v === undefined || v === null ? defaultValue : String(v); +}, getType:function() { + return 'string'; +}}); +Ext.define('Ext.data.identifier.Generator', {'abstract':true, mixins:[Ext.mixin.Factoryable], alias:'data.identifier.default', factoryConfig:{defaultType:'sequential'}, isGenerator:true, config:{id:null}, constructor:function(config) { + var me = this, cache, id; + me.initConfig(config); + id = me.getId(); + if (id) { + cache = config && config.cache || Ext.data.identifier.Generator.all; + cache[id] = me; + } +}, privates:{clone:function(config) { + var cfg = this.getInitialConfig(); + cfg = config ? Ext.apply({}, config, cfg) : cfg; + return new this.self(cfg); +}, statics:{all:{}}}}, function() { + var Generator = this, Factory = Ext.Factory, factory = Factory.dataIdentifier; + Factory.dataIdentifier = function(config) { + var id = Ext.isString(config) ? config : config && config.id, existing = id && (config && config.cache || Generator.all)[id]; + return existing || factory(config); + }; +}); +Ext.define('Ext.data.identifier.Sequential', {extend:Ext.data.identifier.Generator, alias:'data.identifier.sequential', config:{increment:1, prefix:null, seed:1}, generate:function() { + var me = this, seed = me._seed, prefix = me._prefix; + me._seed += me._increment; + return prefix !== null ? prefix + seed : seed; +}}); +Ext.define('Ext.data.Model', {alternateClassName:'Ext.data.Record', isEntity:true, isModel:true, validIdRe:null, erasing:false, observableType:'record', constructor:function(data, session) { + var me = this, cls = me.self, identifier = cls.identifier, Model = Ext.data.Model, modelIdentifier = Model.identifier, idProperty = me.idField.name, array, id, initializeFn, internalId, len, i, fields; + me.data = me.data = data || (data = {}); + me.session = session || null; + me.internalId = internalId = modelIdentifier.generate(); + var dataId = data[idProperty]; + if (session && !session.isSession) { + Ext.raise('Bad Model constructor argument 2 - "session" is not a Session'); + } + if ((array = data) instanceof Array) { + me.data = data = {}; + fields = me.getFields(); + len = Math.min(fields.length, array.length); + for (i = 0; i < len; ++i) { + data[fields[i].name] = array[i]; + } + } + if (!(initializeFn = cls.initializeFn)) { + cls.initializeFn = initializeFn = Model.makeInitializeFn(cls); + } + if (!initializeFn.$nullFn) { + cls.initializeFn(me); + } + if (!(me.id = id = data[idProperty]) && id !== 0) { + if (dataId) { + Ext.raise('The model ID configured in data ("' + dataId + '") has been rejected by the ' + me.fieldsMap[idProperty].type + ' field converter for the ' + idProperty + ' field'); + } + if (session) { + identifier = session.getIdentifier(cls); + id = identifier.generate(); + } else { + if (modelIdentifier === identifier) { + id = internalId; + } else { + id = identifier.generate(); + } + } + data[idProperty] = me.id = id; + me.phantom = true; + } + if (session) { + session.add(me); + } + if (me.init && Ext.isFunction(me.init)) { + me.init(); + } +}, editing:false, dirty:false, session:null, dropped:false, erased:false, clientIdProperty:null, evented:false, phantom:false, idProperty:'id', manyToMany:null, identifier:null, previousValues:undefined, proxy:undefined, schema:'default', versionProperty:null, generation:1, validationSeparator:null, convertOnSet:true, beginEdit:function() { + var me = this, modified = me.modified, previousValues = me.previousValues; + if (!me.editing) { + me.editing = true; + me.editMemento = {dirty:me.dirty, data:Ext.apply({}, me.data), generation:me.generation, modified:modified && Ext.apply({}, modified), previousValues:previousValues && Ext.apply({}, previousValues)}; + } +}, cancelEdit:function() { + var me = this, editMemento = me.editMemento; + if (editMemento) { + me.editing = false; + Ext.apply(me, editMemento); + me.editMemento = null; + } +}, endEdit:function(silent, modifiedFieldNames) { + var me = this, editMemento = me.editMemento; + if (editMemento) { + me.editing = false; + me.editMemento = null; + me.previousValues = editMemento.previousValues; + if (!silent) { + if (!modifiedFieldNames) { + modifiedFieldNames = me.getModifiedFieldNames(editMemento.data); + } + if (me.dirty || modifiedFieldNames && modifiedFieldNames.length) { + me.callJoined('afterEdit', [modifiedFieldNames]); + } + } + } +}, getField:function(name) { + return this.self.getField(name); +}, getFields:function() { + return this.self.getFields(); +}, getFieldsMap:function() { + return this.fieldsMap; +}, getIdProperty:function() { + return this.idProperty; +}, getId:function() { + return this.id; +}, getObservableId:function() { + return this.internalId; +}, setId:function(id, options) { + this.set(this.idProperty, id, options); +}, getPrevious:function(fieldName) { + var previousValues = this.previousValues; + return previousValues && previousValues[fieldName]; +}, isModified:function(fieldName) { + var modified = this.modified; + return !!(modified && modified.hasOwnProperty(fieldName)); +}, getModified:function(fieldName) { + var out; + if (this.isModified(fieldName)) { + out = this.modified[fieldName]; + } + return out; +}, get:function(fieldName) { + return this.data[fieldName]; +}, _singleProp:{}, _rejectOptions:{convert:false, silent:true}, set:function(fieldName, newValue, options) { + var me = this, cls = me.self, data = me.data, modified = me.modified, prevVals = me.previousValues, session = me.session, single = Ext.isString(fieldName), opt = single ? options : newValue, convertOnSet = opt ? opt.convert !== false : me.convertOnSet, fieldsMap = me.fieldsMap, silent = opt && opt.silent, commit = opt && opt.commit, updateRefs = !(opt && opt.refs === false) && session, dirty = !(opt && opt.dirty === false && !commit), modifiedFieldNames = null, currentValue, field, idChanged, key, + name, oldId, comparator, dep, dependents, i, dirtyRank = 0, numFields, newId, rankedFields, reference, value, values; + if (single) { + values = me._singleProp; + values[fieldName] = newValue; + } else { + values = fieldName; + } + if (!(rankedFields = cls.rankedFields)) { + rankedFields = cls.rankFields(); + } + numFields = rankedFields.length; + do { + for (name in values) { + value = values[name]; + currentValue = data[name]; + comparator = me; + field = fieldsMap[name]; + if (field) { + if (convertOnSet && field.convert) { + value = field.convert(value, me); + } + comparator = field; + reference = field.reference; + } else { + reference = null; + } + if (comparator.isEqual(currentValue, value)) { + continue; + } + data[name] = value; + (modifiedFieldNames || (modifiedFieldNames = [])).push(name); + (prevVals || (me.previousValues = prevVals = {}))[name] = currentValue; + if (reference && reference.cls) { + if (updateRefs) { + session.updateReference(me, field, value, currentValue); + } + reference.onValueChange(me, session, value, currentValue); + } + i = (dependents = field && field.dependents) && dependents.length; + while (i-- > 0) { + (dep = dependents[i]).dirty = true; + dirtyRank = dirtyRank ? Math.min(dirtyRank, dep.rank) : dep.rank; + } + if (!field || field.persist) { + if (modified && modified.hasOwnProperty(name)) { + if (!dirty || comparator.isEqual(modified[name], value)) { + delete modified[name]; + me.dirty = -1; + } + } else { + if (dirty) { + if (!modified) { + me.modified = modified = {}; + } + me.dirty = true; + modified[name] = currentValue; + } + } + } + if (name === me.idField.name) { + idChanged = true; + oldId = currentValue; + newId = value; + } + } + if (!dirtyRank) { + break; + } + field = rankedFields[dirtyRank - 1]; + field.dirty = false; + if (single) { + delete values[fieldName]; + } else { + values = me._singleProp; + single = true; + } + fieldName = field.name; + values[fieldName] = data[fieldName]; + convertOnSet = true; + for (; dirtyRank < numFields; ++dirtyRank) { + if (rankedFields[dirtyRank].dirty) { + break; + } + } + if (dirtyRank < numFields) { + ++dirtyRank; + } else { + dirtyRank = 0; + } + } while (1); + if (me.dirty < 0) { + me.dirty = false; + for (key in modified) { + if (modified.hasOwnProperty(key)) { + me.dirty = true; + break; + } + } + } + if (single) { + delete values[fieldName]; + } + ++me.generation; + if (idChanged) { + me.id = newId; + me.callJoined('onIdChanged', [oldId, newId]); + } + if (commit) { + me.commit(silent, modifiedFieldNames); + } else { + if (!silent && !me.editing && modifiedFieldNames) { + me.callJoined('afterEdit', [modifiedFieldNames]); + } + } + return modifiedFieldNames; +}, reject:function(silent) { + var me = this, modified = me.modified; + if (me.erased) { + Ext.raise('Cannot reject once a record has been erased.'); + } + if (modified) { + me.set(modified, me._rejectOptions); + } + me.dropped = false; + me.clearState(); + if (!silent) { + me.callJoined('afterReject'); + } +}, commit:function(silent, modifiedFieldNames) { + var me = this, versionProperty = me.versionProperty, data = me.data, erased; + me.clearState(); + if (versionProperty && !me.phantom && !isNaN(data[versionProperty])) { + ++data[versionProperty]; + } + me.phantom = false; + if (me.dropped) { + me.erased = erased = true; + } + if (!silent) { + if (erased) { + me.callJoined('afterErase'); + } else { + me.callJoined('afterCommit', [modifiedFieldNames]); + } + } +}, clearState:function() { + var me = this; + me.dirty = me.editing = false; + me.editMemento = me.modified = null; +}, drop:function(cascade) { + var me = this, associations = me.associations, session = me.session, roleName; + if (me.erased || me.dropped) { + return; + } + me.dropped = true; + if (associations && cascade !== false) { + for (roleName in associations) { + associations[roleName].onDrop(me, session); + } + } + me.callJoined('afterDrop'); + if (me.phantom) { + me.setErased(); + } +}, join:function(item) { + var me = this, joined = me.joined; + if (!joined) { + joined = me.joined = [item]; + } else { + if (!joined.length) { + joined[0] = item; + } else { + Ext.Array.include(joined, item); + } + } + if (item.isStore && !me.store) { + me.store = item; + } +}, unjoin:function(item) { + var me = this, joined = me.joined, len = joined && joined.length, store = me.store, i; + if (len === 1 && joined[0] === item) { + joined.length = 0; + } else { + if (len) { + Ext.Array.remove(joined, item); + } + } + if (store === item) { + store = null; + if (joined) { + for (i = 0, len = joined.length; i < len; ++i) { + item = joined[i]; + if (item.isStore) { + store = item; + break; + } + } + } + me.store = store; + } +}, clone:function(session) { + var me = this, modified = me.modified, ret = me.copy(me.id, session); + if (modified) { + ret.modified = Ext.apply({}, modified); + } + ret.dirty = me.dirty; + ret.dropped = me.dropped; + ret.phantom = me.phantom; + return ret; +}, copy:function(newId, session) { + var me = this, data = Ext.apply({}, me.data), idProperty = me.idProperty, T = me.self; + if (newId || newId === 0) { + data[idProperty] = newId; + } else { + if (newId === null) { + delete data[idProperty]; + } + } + return new T(data, session); +}, getProxy:function() { + return this.self.getProxy(); +}, getValidation:function(refresh) { + var me = this, ret = me.validation; + if (!ret) { + me.validation = ret = new Ext.data.Validation; + ret.attach(me); + } + if (refresh === true || refresh !== false && ret.syncGeneration !== me.generation) { + ret.refresh(refresh); + } + return ret; +}, validate:function() { + return (new Ext.data.ErrorCollection).init(this); +}, isValid:function() { + return this.getValidation().isValid(); +}, toUrl:function() { + var pieces = this.$className.split('.'), name = pieces[pieces.length - 1].toLowerCase(); + return name + '/' + this.getId(); +}, erase:function(options) { + var me = this; + me.erasing = true; + me.drop(); + me.erasing = false; + return me.save(options); +}, setErased:function() { + this.erased = true; + this.callJoined('afterErase'); +}, getChanges:function() { + return this.getData(this._getChangesOptions); +}, getCriticalFields:function() { + var cls = this.self, ret = cls.criticalFields; + if (!ret) { + cls.rankFields(); + ret = cls.criticalFields; + } + return ret; +}, getAssociatedData:function(result, options) { + var me = this, associations = me.associations, deep, i, item, items, itemData, length, record, role, roleName, opts, clear, associated; + result = result || {}; + me.$gathering = 1; + if (options) { + options = Ext.Object.chain(options); + } + for (roleName in associations) { + role = associations[roleName]; + item = role.getAssociatedItem(me); + if (!item || item.$gathering) { + continue; + } + if (item.isStore) { + item.$gathering = 1; + items = item.getData().items; + length = items.length; + itemData = []; + for (i = 0; i < length; ++i) { + record = items[i]; + deep = !record.$gathering; + record.$gathering = 1; + if (options) { + associated = options.associated; + if (associated === undefined) { + options.associated = deep; + clear = true; + } else { + if (!deep) { + options.associated = false; + clear = true; + } + } + opts = options; + } else { + opts = deep ? me._getAssociatedOptions : me._getNotAssociatedOptions; + } + itemData.push(record.getData(opts)); + if (clear) { + options.associated = associated; + clear = false; + } + delete record.$gathering; + } + delete item.$gathering; + } else { + opts = options || me._getAssociatedOptions; + if (options && options.associated === undefined) { + opts.associated = true; + } + itemData = item.getData(opts); + } + result[roleName] = itemData; + } + delete me.$gathering; + return result; +}, getData:function(options) { + var me = this, ret = {}, opts = options === true ? me._getAssociatedOptions : options || ret, data = me.data, associated = opts.associated, changes = opts.changes, critical = changes && opts.critical, content = changes ? me.modified : data, fieldsMap = me.fieldsMap, persist = opts.persist, serialize = opts.serialize, criticalFields, field, n, name, value; + if (content) { + for (name in content) { + value = data[name]; + field = fieldsMap[name]; + if (field) { + if (persist && !field.persist) { + continue; + } + if (serialize && field.serialize) { + value = field.serialize(value, me); + } + } + ret[name] = value; + } + } + if (critical) { + criticalFields = me.self.criticalFields || me.getCriticalFields(); + for (n = criticalFields.length; n-- > 0;) { + name = (field = criticalFields[n]).name; + if (!(name in ret)) { + value = data[name]; + if (serialize && field.serialize) { + value = field.serialize(value, me); + } + ret[name] = value; + } + } + } + if (associated) { + me.getAssociatedData(ret, opts); + } + return ret; +}, getTransientFields:function() { + var cls = this.self, ret = cls.transientFields; + if (!ret) { + cls.rankFields(); + ret = cls.transientFields; + } + return ret; +}, isLoading:function() { + return !!this.loadOperation; +}, abort:function() { + var operation = this.loadOperation; + if (operation) { + operation.abort(); + } +}, load:function(options) { + options = Ext.apply({}, options); + var me = this, scope = options.scope || me, proxy = me.getProxy(), callback = options.callback, operation = me.loadOperation, id = me.getId(), extras; + if (operation) { + extras = operation.extraCalls; + if (!extras) { + extras = operation.extraCalls = []; + } + extras.push(options); + return operation; + } + var doIdCheck = true; + if (me.phantom) { + doIdCheck = false; + } + options.id = id; + options.recordCreator = function(data, type, readOptions) { + var session = me.session; + if (readOptions) { + readOptions.recordCreator = session ? session.recordCreator : null; + } + me.set(data, me._commitOptions); + if (doIdCheck && me.getId() !== id) { + Ext.raise('Invalid record id returned for ' + id + '@' + me.entityName); + } + return me; + }; + options.internalCallback = function(operation) { + var success = operation.wasSuccessful() && operation.getRecords().length > 0, op = me.loadOperation, extras = op.extraCalls, successFailArgs = [me, operation], callbackArgs = [me, operation, success], i, len; + me.loadOperation = null; + if (success) { + Ext.callback(options.success, scope, successFailArgs); + } else { + Ext.callback(options.failure, scope, successFailArgs); + } + Ext.callback(callback, scope, callbackArgs); + if (extras) { + for (i = 0, len = extras.length; i < len; ++i) { + options = extras[i]; + if (success) { + Ext.callback(options.success, scope, successFailArgs); + } else { + Ext.callback(options.failure, scope, successFailArgs); + } + Ext.callback(options.callback, scope, callbackArgs); + } + } + me.callJoined('afterLoad'); + }; + delete options.callback; + me.loadOperation = operation = proxy.createOperation('read', options); + operation.execute(); + return operation; +}, save:function(options) { + options = Ext.apply({}, options); + var me = this, phantom = me.phantom, dropped = me.dropped, action = dropped ? 'destroy' : phantom ? 'create' : 'update', scope = options.scope || me, callback = options.callback, proxy = me.getProxy(), operation; + options.records = [me]; + options.internalCallback = function(operation) { + var args = [me, operation], success = operation.wasSuccessful(); + if (success) { + Ext.callback(options.success, scope, args); + } else { + Ext.callback(options.failure, scope, args); + } + args.push(success); + Ext.callback(callback, scope, args); + }; + delete options.callback; + operation = proxy.createOperation(action, options); + if (dropped && phantom) { + operation.setResultSet(Ext.data.reader.Reader.prototype.nullResultSet); + me.setErased(); + operation.setSuccessful(true); + } else { + operation.execute(); + } + return operation; +}, inheritableStatics:{addFields:function(newFields) { + this.replaceFields(newFields); +}, replaceFields:function(newFields, removeFields) { + var me = this, proto = me.prototype, Field = Ext.data.field.Field, fields = me.fields, fieldsMap = me.fieldsMap, ordinals = me.fieldOrdinals, field, i, idField, len, name, ordinal; + if (removeFields === true) { + fields.length = 0; + me.fieldsMap = fieldsMap = {}; + me.fieldOrdinals = ordinals = {}; + } else { + if (removeFields) { + for (i = removeFields.length; i-- > 0;) { + name = removeFields[i]; + if (name in ordinals) { + delete ordinals[name]; + delete fieldsMap[name]; + } + } + for (i = 0, len = fields.length; i < len; ++i) { + name = (field = fields[i]).name; + if (name in ordinals) { + ordinals[name] = i; + } else { + fields.splice(i, 1); + --i; + --len; + } + } + } + } + for (i = 0, len = newFields ? newFields.length : 0; i < len; i++) { + name = (field = newFields[i]).name; + if (!(name in ordinals)) { + ordinals[name] = ordinal = fields.length; + fields.push(field = Field.create(field)); + fieldsMap[name] = field; + field.ordinal = ordinal; + field.definedBy = field.owner = this; + } + } + me.idField = proto.idField = idField = fieldsMap[proto.idProperty]; + idField.allowNull = idField.critical = idField.identifier = true; + idField.defaultValue = null; + me.initializeFn = me.rankedFields = me.transientFields = me.criticalFields = null; +}, removeFields:function(removeFields) { + this.replaceFields(null, removeFields); +}, getIdFromData:function(data) { + var T = this, idField = T.idField, id = idField.calculated ? (new T(data)).id : data[idField.name]; + return id; +}, createWithId:function(id, data, session) { + var d = data, T = this; + if (id || id === 0) { + d = {}; + if (data) { + Ext.apply(d, data); + } + d[T.idField.name] = id; + } + return new T(d, session); +}, getFields:function() { + return this.fields; +}, getFieldsMap:function() { + return this.fieldsMap; +}, getField:function(name) { + return this.fieldsMap[name] || null; +}, getProxy:function() { + var me = this, proxy = me.proxy, defaultProxy = me.defaultProxy, defaults; + if (!proxy) { + proxy = me.proxyConfig; + if (!proxy && defaultProxy) { + proxy = defaultProxy; + } + if (!proxy || !proxy.isProxy) { + if (typeof proxy === 'string') { + proxy = {type:proxy}; + } + defaults = me.schema.constructProxy(me); + proxy = proxy ? Ext.merge(defaults, proxy) : defaults; + } + proxy = me.setProxy(proxy); + } + return proxy; +}, setProxy:function(proxy) { + var me = this, model; + if (proxy) { + if (!proxy.isProxy) { + proxy = Ext.Factory.proxy(proxy); + } else { + model = proxy.getModel(); + if (model && model !== me) { + proxy = proxy.clone(); + } + } + proxy.setModel(me); + } + return me.prototype.proxy = me.proxy = proxy; +}, load:function(id, options, session) { + var data = {}, rec; + data[this.prototype.idProperty] = id; + rec = new this(data, session); + rec.load(options); + return rec; +}}, deprecated:{5:{methods:{hasId:null, markDirty:null, setDirty:null, eachStore:function(callback, scope) { + var me = this, stores = me.stores, len = stores.length, i; + for (i = 0; i < len; ++i) { + callback.call(scope, stores[i]); + } +}, join:function(item) { + var me = this, stores = me.stores, joined = me.joined; + if (!joined) { + joined = me.joined = [item]; + } else { + joined.push(item); + } + if (item.isStore) { + me.store = me.store || item; + if (!stores) { + stores = me.stores = []; + } + stores.push(item); + } +}, unjoin:function(item) { + var me = this, stores = me.stores, joined = me.joined; + if (joined.length === 1) { + joined.length = 0; + } else { + Ext.Array.remove(joined, item); + } + if (item.isStore) { + Ext.Array.remove(stores, item); + me.store = stores[0] || null; + } +}}, properties:{persistenceProperty:null}, inheritableStatics:{methods:{setFields:null}}}}, privates:{_commitOptions:{commit:true}, _getChangesOptions:{changes:true}, _getAssociatedOptions:{associated:true}, _getNotAssociatedOptions:{associated:false}, copyFrom:function(sourceRecord) { + var me = this, fields = me.fields, fieldCount = fields.length, modifiedFieldNames = [], field, i = 0, myData, sourceData, idProperty = me.idProperty, name, value; + if (sourceRecord) { + myData = me.data; + sourceData = sourceRecord.data; + for (; i < fieldCount; i++) { + field = fields[i]; + name = field.name; + if (name !== idProperty) { + value = sourceData[name]; + if (value !== undefined && !me.isEqual(myData[name], value)) { + myData[name] = value; + modifiedFieldNames.push(name); + } + } + } + if (me.phantom && !sourceRecord.phantom) { + me.beginEdit(); + me.setId(sourceRecord.getId()); + me.endEdit(true); + me.commit(true); + } + } + return modifiedFieldNames; +}, callJoined:function(funcName, args) { + var me = this, joined = me.joined, session = me.session, i, len, fn, item; + if (!joined && !session) { + return; + } + if (args) { + args.unshift(me); + } else { + args = [me]; + } + if (joined) { + for (i = 0, len = joined.length; i < len; ++i) { + item = joined[i]; + if (item && (fn = item[funcName])) { + fn.apply(item, args); + } + } + } + fn = session && session[funcName]; + if (fn) { + fn.apply(session, args); + } +}, setSession:function(session) { + if (session) { + if (this.session) { + Ext.raise('This model already belongs to a session.'); + } + if (!this.id) { + Ext.raise('The model must have an id to participate in a session.'); + } + } + this.session = session; + if (session) { + session.add(this); + } +}, getModifiedFieldNames:function(old) { + var me = this, data = me.data, modified = [], oldData = old || me.editMemento.data, key; + for (key in data) { + if (data.hasOwnProperty(key)) { + if (!me.isEqual(data[key], oldData[key], key)) { + modified.push(key); + } + } + } + return modified; +}, isEqual:function(lhs, rhs, field) { + var f; + if (field) { + f = field.isField ? field : this.fieldsMap[field]; + if (f) { + return f.isEqual(lhs, rhs); + } + } + if (lhs instanceof Date && rhs instanceof Date) { + return lhs.getTime() === rhs.getTime(); + } + return lhs === rhs; +}, statics:{EDIT:'edit', REJECT:'reject', COMMIT:'commit', defaultProxy:'memory', rankFields:function() { + var cls = this, prototype = cls.prototype, fields = cls.fields, length = fields.length, rankedFields = [], criticalFields = [], transientFields = [], evilFields, field, i; + cls.rankedFields = prototype.rankedFields = rankedFields; + cls.criticalFields = prototype.criticalFields = criticalFields; + cls.transientFields = prototype.transientFields = transientFields; + for (i = 0; i < length; ++i) { + field = fields[i]; + if (field.critical) { + criticalFields.push(field); + } + if (!field.persist) { + transientFields.push(field); + } + if (field.evil) { + (evilFields || (evilFields = [])).push(field); + } else { + if (!field.depends) { + rankedFields.push(field); + field.rank = rankedFields.length; + } + } + } + for (i = 0; i < length; ++i) { + if (!(field = fields[i]).rank && !field.evil) { + cls.topoAdd(field); + } + } + if (evilFields) { + for (i = 0, length = evilFields.length; i < length; ++i) { + rankedFields.push(field = evilFields[i]); + field.rank = rankedFields.length; + } + } + cls.topoStack = null; + return rankedFields; +}, topoAdd:function(field) { + var cls = this, dep = field.depends, dependsLength = dep ? dep.length : 0, rankedFields = cls.rankedFields, i, targetField; + var topoStack = cls.topoStack || (cls.topoStack = []); + topoStack.push(field.name); + if (field.rank === 0) { + Ext.raise(cls.$className + ' has circular field dependencies: ' + topoStack.join(' --\x3e ')); + } + if (topoStack.length && field.evil) { + Ext.raise(cls.$className + ': Field ' + topoStack[topoStack.length - 1] + ' cannot depend on depends-less field ' + field.name); + } + field.rank = 0; + for (i = 0; i < dependsLength; ++i) { + targetField = cls.fieldsMap[dep[i]]; + if (!targetField) { + Ext.raise(cls.$className + ': Field ' + field.name + ' depends on undefined field ' + dep[i]); + } + (targetField.dependents || (targetField.dependents = [])).push(field); + if (!targetField.rank) { + cls.topoAdd(targetField); + } + } + rankedFields.push(field); + field.rank = rankedFields.length; + topoStack.pop(); +}, initFields:function(data, cls, proto) { + var Field = Ext.data.field.Field, fieldDefs = data.fields, fields = [], fieldOrdinals = {}, fieldsMap = {}, references = [], superFields = proto.fields, versionProperty = data.versionProperty || proto.versionProperty, idProperty = cls.idProperty, idField, field, i, length, name, ordinal, reference, superIdField, superIdFieldName, idDeclared; + cls.fields = proto.fields = fields; + cls.fieldOrdinals = proto.fieldOrdinals = fieldOrdinals; + cls.fieldsMap = proto.fieldsMap = fieldsMap; + cls.references = proto.references = references; + if (superFields) { + for (i = 0, length = superFields.length; i < length; ++i) { + fields[i] = field = Ext.Object.chain(superFields[i]); + field.dependents = null; + field.owner = cls; + fieldOrdinals[name = field.name] = i; + fieldsMap[name] = field; + field.rank = null; + if (field.generated) { + superIdField = field; + superIdFieldName = field.name; + } + } + } + if (fieldDefs) { + delete data.fields; + for (i = 0, length = fieldDefs.length; i < length; ++i) { + field = fieldDefs[i]; + reference = field.reference; + if (reference && typeof reference !== 'string') { + reference = Ext.merge({}, reference); + } + field.$reference = reference; + field = Field.create(fieldDefs[i]); + name = field.name; + ordinal = fieldOrdinals[name]; + if (ordinal === undefined) { + fieldOrdinals[name] = ordinal = fields.length; + } + fieldsMap[name] = field; + fields[ordinal] = field; + field.definedBy = field.owner = cls; + field.ordinal = ordinal; + if (name === idProperty) { + idDeclared = field; + } + } + } + idField = fieldsMap[idProperty]; + if (!idField) { + if (superIdField && superIdField.generated) { + ordinal = superIdField.ordinal; + } else { + ordinal = fields.length; + } + delete fieldsMap[superIdFieldName]; + delete fieldOrdinals[superIdFieldName]; + idField = new Field(idProperty); + fields[ordinal] = idField; + fieldOrdinals[idProperty] = ordinal; + fieldsMap[idProperty] = idField; + idField.definedBy = cls; + idField.ordinal = ordinal; + idField.generated = true; + } else { + if (idDeclared && superIdField && superIdField.generated) { + Ext.Array.remove(fields, superIdField); + delete fieldsMap[superIdFieldName]; + delete fieldOrdinals[superIdFieldName]; + fieldsMap[idProperty] = idDeclared; + for (i = 0, length = fields.length; i < length; ++i) { + field = fields[i]; + fields.ordinal = i; + fieldOrdinals[field.name] = i; + } + } + } + idField.allowNull = idField.critical = idField.identifier = true; + idField.defaultValue = null; + cls.idField = proto.idField = idField; + if (versionProperty) { + field = fieldsMap[versionProperty]; + if (!field) { + ordinal = fields.length; + field = new Field({name:versionProperty, type:'int'}); + fields[ordinal] = field; + fieldOrdinals[versionProperty] = ordinal; + fieldsMap[versionProperty] = field; + field.definedBy = cls; + field.ordinal = ordinal; + field.generated = true; + } + field.defaultValue = 1; + field.critical = true; + } +}, initValidators:function(data, cls, proto) { + var superValidators = proto.validators, validators, field, copy, validatorDefs, i, length, fieldValidator, name, validator, item; + if (superValidators) { + validators = {}; + for (field in superValidators) { + validators[field] = Ext.Array.clone(superValidators[field]); + } + } + validatorDefs = data.validators || data.validations; + if (data.validations) { + delete data.validations; + Ext.log.warn((cls.$className || 'Ext.data.Model') + ': validations has been deprecated. Please use validators instead.'); + } + if (validatorDefs) { + delete data.validators; + validators = validators || {}; + if (Ext.isArray(validatorDefs)) { + copy = {}; + for (i = 0, length = validatorDefs.length; i < length; ++i) { + item = validatorDefs[i]; + name = item.field; + if (!copy[name]) { + copy[name] = []; + } + item = item.fn || item; + copy[name].push(item); + } + validatorDefs = copy; + } + for (name in validatorDefs) { + fieldValidator = validatorDefs[name]; + if (!Ext.isArray(fieldValidator)) { + fieldValidator = [fieldValidator]; + } + validator = validators[name]; + if (validators[name]) { + Ext.Array.push(validator, fieldValidator); + } else { + validators[name] = fieldValidator; + } + } + } + if (validators) { + for (name in validators) { + field = cls.getField(name); + if (field) { + field.setModelValidators(validators[name]); + } + } + } + cls.validators = proto.validators = validators; +}, initAssociations:function(schema, data, cls) { + var associations = data.associations, belongsTo = data.belongsTo, hasMany = data.hasMany, hasOne = data.hasOne, matrices = data.manyToMany, i, length, assoc; + if (data.belongsTo) { + Ext.log.warn('Use of "belongsTo" is obsolete' + (cls.$className ? ' in ' + cls.$className : '')); + delete data.belongsTo; + } + delete data.manyToMany; + if (matrices) { + schema.addMatrices(cls, matrices); + } + delete data.associations; + delete data.belongsTo; + delete data.hasMany; + delete data.hasOne; + if (associations) { + associations = Ext.isArray(associations) ? associations : [associations]; + for (i = 0, length = associations.length; i < length; ++i) { + assoc = associations[i]; + switch(assoc.type) { + case 'belongsTo': + schema.addLegacyBelongsTo(cls, assoc); + break; + case 'hasMany': + schema.addLegacyHasMany(cls, assoc); + break; + case 'hasOne': + schema.addLegacyHasOne(cls, assoc); + break; + default: + Ext.raise('Invalid association type: "' + assoc.type + '"'); + } + } + } + if (belongsTo) { + belongsTo = Ext.isArray(belongsTo) ? belongsTo : [belongsTo]; + for (i = 0, length = belongsTo.length; i < length; ++i) { + schema.addLegacyBelongsTo(cls, belongsTo[i]); + } + } + if (hasMany) { + hasMany = Ext.isArray(hasMany) ? hasMany : [hasMany]; + for (i = 0, length = hasMany.length; i < length; ++i) { + schema.addLegacyHasMany(cls, hasMany[i]); + } + } + if (hasOne) { + hasOne = Ext.isArray(hasOne) ? hasOne : [hasOne]; + for (i = 0, length = hasOne.length; i < length; ++i) { + schema.addLegacyHasOne(cls, hasOne[i]); + } + } + schema.afterLegacyAssociations(cls); +}, initIdentifier:function(data, cls, proto) { + var identifier = data.identifier || data.idgen, superIdent = proto.identifier || cls.schema._defaultIdentifier, generatorPrefix; + if (data.idgen) { + Ext.log.warn('Ext.data.Model: idgen has been deprecated. Please use identifier instead.'); + } + if (identifier) { + delete data.identifier; + delete data.idgen; + identifier = Ext.Factory.dataIdentifier(identifier); + } else { + if (superIdent) { + if (superIdent.clone && !superIdent.getId()) { + identifier = superIdent.clone(); + } else { + if (superIdent.isGenerator) { + identifier = superIdent; + } else { + identifier = Ext.Factory.dataIdentifier(superIdent); + } + } + } + } + cls.identifier = proto.identifier = identifier; + if (!identifier) { + generatorPrefix = cls.entityName; + if (!generatorPrefix) { + generatorPrefix = Ext.id(null, 'extModel'); + } + cls.identifier = Ext.Factory.dataIdentifier({type:'sequential', prefix:generatorPrefix + '-'}); + } +}, findValidator:function(validators, name, cfg) { + var type = cfg.type || cfg, field = validators[name], len, i, item; + if (field) { + for (i = 0, len = field.length; i < len; ++i) { + item = field[i]; + if (item.type === type) { + return item; + } + } + } + return null; +}, makeInitializeFn:function(cls) { + var code = ['var '], body = ['\nreturn function (e) {\n var data \x3d e.data, v;\n'], fieldVars = [], work = 0, bc, ec, convert, expr, factory, field, fields, fs, hasDefValue, i, length; + if (!(fields = cls.rankedFields)) { + fields = cls.rankFields(); + } + for (i = 0, length = fields.length; i < length; ++i) { + field = fields[i]; + fieldVars[i] = fs = 'f' + i; + convert = field.convert; + if (i) { + code.push(', \n '); + } + code.push(fs, ' \x3d $fields[' + i + ']'); + code.push(' /* ', field.name, ' */'); + if ((hasDefValue = field.defaultValue !== undefined) || convert) { + expr = 'data["' + field.name + '"]'; + ++work; + bc = ec = ''; + if (field.cloneDefaultValue) { + bc = 'Ext.clone('; + ec = ')'; + } + body.push('\n'); + if (convert && hasDefValue) { + body.push(' v \x3d ', expr, ';\n' + ' if (v !\x3d\x3d undefined) {\n' + ' v \x3d ', fs, '.convert(v, e);\n' + ' }\n' + ' if (v \x3d\x3d\x3d undefined) {\n' + ' v \x3d ', bc, fs, '.defaultValue', ec, ';\n' + ' }\n' + ' ', expr, ' \x3d v;'); + } else { + if (convert) { + body.push(' v \x3d ', fs, '.convert(', expr, ',e);\n' + ' if (v !\x3d\x3d undefined) {\n' + ' ', expr, ' \x3d v;\n' + ' }\n'); + } else { + if (hasDefValue) { + body.push(' if (', expr, ' \x3d\x3d\x3d undefined) {\n' + ' ', expr, ' \x3d ', bc, fs, '.defaultValue', ec, ';\n' + ' }\n'); + } + } + } + } + } + if (!work) { + return Ext.emptyFn; + } + code.push(';\n'); + code.push.apply(code, body); + code.push('}'); + code = code.join(''); + factory = new Function('$fields', 'Ext', code); + return factory(fields, Ext); +}}}}, function() { + var Model = this, proto = Model.prototype, Schema = Ext.data.schema.Schema, defaultSchema; + Model.proxyConfig = proto.proxy; + delete proto.proxy; + Model.fields = []; + Model.fieldsMap = proto.fieldsMap = {}; + Model.schema = proto.schema = Schema.get(proto.schema); + proto.idField = new Ext.data.field.Field(proto.idProperty); + Model.identifier = new Ext.data.identifier.Sequential; + Model.onExtended(function(cls, data) { + var proto = cls.prototype, schemaName = data.schema, superCls = proto.superclass.self, schema, entityName, proxy; + cls.idProperty = data.idProperty || proto.idProperty; + if (schemaName) { + delete data.schema; + schema = Schema.get(schemaName); + } else { + if (!(schema = proto.schema)) { + schema = defaultSchema || (defaultSchema = Schema.get('default')); + } + } + cls.rankFields = Model.rankFields; + cls.topoAdd = Model.topoAdd; + proto.schema = cls.schema = schema; + if (!(entityName = data.entityName)) { + proto.entityName = entityName = schema.getEntityName(cls); + if (!entityName) { + if (data.associations) { + Ext.raise('Anonymous entities cannot specify "associations"'); + } + if (data.belongsTo) { + Ext.raise('Anonymous entities cannot specify "belongsTo"'); + } + if (data.hasMany) { + Ext.raise('Anonymous entities cannot specify "hasMany"'); + } + if (data.hasOne) { + Ext.raise('Anonymous entities cannot specify "hasOne"'); + } + if (data.matrices) { + Ext.raise('Anonymous entities cannot specify "manyToMany"'); + } + } + } + cls.entityName = entityName; + cls.fieldExtractors = {}; + Model.initIdentifier(data, cls, proto); + Model.initFields(data, cls, proto); + Model.initValidators(data, cls, proto); + cls.fields.items = cls.fields; + if (entityName) { + schema.addEntity(cls); + Model.initAssociations(schema, data, cls); + } + proxy = data.proxy; + if (proxy) { + delete data.proxy; + } else { + if (superCls !== Model) { + proxy = superCls.proxyConfig || superCls.proxy; + } + } + cls.proxyConfig = proxy; + }); +}); +Ext.define('Ext.data.ResultSet', {isResultSet:true, $configPrefixed:false, config:{loaded:true, count:null, total:null, success:false, records:null, message:null}, constructor:function(config) { + this.initConfig(config); +}, getCount:function() { + var count = this.callParent(), records; + if (!count) { + records = this.getRecords(); + if (records) { + count = records.length; + } + } + return count; +}}); +Ext.define('Ext.data.reader.Reader', {alternateClassName:['Ext.data.Reader', 'Ext.data.DataReader'], mixins:[Ext.mixin.Observable, Ext.mixin.Factoryable], alias:'reader.base', factoryConfig:{defaultType:null}, config:{totalProperty:'total', successProperty:'success', rootProperty:'', messageProperty:'', typeProperty:'', implicitIncludes:true, readRecordsOnFailure:true, model:null, proxy:null, transform:null, keepRawData:null}, isReader:true, constructor:function(config) { + if (config && config.hasOwnProperty('root')) { + config = Ext.apply({}, config); + config.rootProperty = config.root; + delete config.root; + Ext.log.error('Ext.data.reader.Reader: Using the deprecated "root" configuration. Use "rootProperty" instead.'); + } + var me = this; + me.duringInit = 1; + me.mixins.observable.constructor.call(me, config); + --me.duringInit; + me.buildExtractors(); +}, applyModel:function(model) { + return Ext.data.schema.Schema.lookupEntity(model); +}, applyTransform:function(transform) { + if (transform) { + if (Ext.isFunction(transform)) { + transform = {fn:transform}; + } else { + if (transform.charAt) { + transform = {fn:this[transform]}; + } + } + return transform.fn.bind(transform.scope || this); + } + return transform; +}, forceBuildExtractors:function() { + if (!this.duringInit) { + this.buildExtractors(true); + } +}, updateTotalProperty:function() { + this.forceBuildExtractors(); +}, updateMessageProperty:function() { + this.forceBuildExtractors(); +}, updateSuccessProperty:function() { + this.forceBuildExtractors(); +}, read:function(response, readOptions) { + var data, result; + if (response) { + if (response.responseText) { + result = this.getResponseData(response); + if (result && result.__$isError) { + return new Ext.data.ResultSet({total:0, count:0, records:[], success:false, message:result.msg}); + } else { + data = this.readRecords(result, readOptions); + } + } else { + data = this.readRecords(response, readOptions); + } + } + return data || this.nullResultSet; +}, getNullResultSet:function() { + return this.nullResultSet; +}, createReadError:function(msg) { + return {__$isError:true, msg:msg}; +}, readRecords:function(data, readOptions, internalReadOptions) { + var me = this, recordsOnly = internalReadOptions && internalReadOptions.recordsOnly, asRoot = internalReadOptions && internalReadOptions.asRoot, success, recordCount, records, root, total, value, message, transform; + transform = this.getTransform(); + if (transform) { + data = transform(data); + } + me.buildExtractors(); + if (me.getKeepRawData()) { + me.rawData = data; + } + if (me.hasListeners.rawdata) { + me.fireEventArgs('rawdata', [data]); + } + data = me.getData(data); + success = true; + recordCount = 0; + records = []; + if (me.getSuccessProperty()) { + value = me.getSuccess(data); + if (value === false || value === 'false') { + success = false; + } + } + if (me.getMessageProperty()) { + message = me.getMessage(data); + } + if (success || me.getReadRecordsOnFailure()) { + root = asRoot || Ext.isArray(data) ? data : me.getRoot(data); + if (root) { + total = root.length; + } + if (me.getTotalProperty()) { + value = parseInt(me.getTotal(data), 10); + if (!isNaN(value)) { + total = value; + } + } + if (root) { + records = me.extractData(root, readOptions); + recordCount = records.length; + } + } + return recordsOnly ? records : new Ext.data.ResultSet({total:total || recordCount, count:recordCount, records:records, success:success, message:message}); +}, extractData:function(root, readOptions) { + var me = this, entityType = readOptions && readOptions.model ? Ext.data.schema.Schema.lookupEntity(readOptions.model) : me.getModel(), schema = entityType.schema, includes = schema.hasAssociations(entityType) && me.getImplicitIncludes(), fieldExtractorInfo = me.getFieldExtractorInfo(entityType.fieldExtractors), length = root.length, records = new Array(length), typeProperty = me.getTypeProperty(), reader, node, nodeType, record, i; + if (!length && Ext.isObject(root)) { + root = [root]; + length = 1; + } + for (i = 0; i < length; i++) { + record = root[i]; + if (!record.isModel) { + node = record; + if (typeProperty && (nodeType = me.getChildType(schema, node, typeProperty))) { + reader = nodeType.getProxy().getReader(); + record = reader.extractRecord(node, readOptions, nodeType, schema.hasAssociations(nodeType) && reader.getImplicitIncludes(), reader.getFieldExtractorInfo(nodeType.fieldExtractors)); + } else { + record = me.extractRecord(node, readOptions, entityType, includes, fieldExtractorInfo); + } + if (record.isModel && record.isNode) { + record.raw = node; + } + } + if (record.onLoad) { + record.onLoad(); + } + records[i] = record; + } + return records; +}, getChildType:function(schema, rawNode, typeProperty) { + var namespace; + switch(typeof typeProperty) { + case 'string': + return schema.getEntity(rawNode[typeProperty]); + case 'object': + namespace = typeProperty.namespace; + return schema.getEntity((namespace ? namespace + '.' : '') + rawNode[typeProperty.name]); + case 'function': + return schema.getEntity(typeProperty(rawNode)); + } +}, extractRecordData:function(node, readOptions) { + var entityType = readOptions && readOptions.model ? Ext.data.schema.Schema.lookupEntity(readOptions.model) : this.getModel(), fieldExtractorInfo = this.getFieldExtractorInfo(entityType.fieldExtractors); + return this.extractRecord(node, readOptions, entityType, false, fieldExtractorInfo); +}, extractRecord:function(node, readOptions, entityType, includes, fieldExtractorInfo) { + var me = this, creatorFn = readOptions && readOptions.recordCreator || me.defaultRecordCreator, modelData, record; + modelData = me.extractModelData(node, fieldExtractorInfo); + record = creatorFn.call(me, modelData, entityType || me.getModel(), readOptions); + if (includes && record.isModel) { + me.readAssociated(record, node, readOptions); + } + return record; +}, getFieldExtractorInfo:function(extractors) { + if (!extractors) { + return; + } + var type = this.$className, extractor = extractors[type]; + if (extractor === undefined) { + extractors[type] = extractor = this.buildFieldExtractors(); + } + return extractor; +}, buildFieldExtractors:function() { + var fields = this.getFields(), len = fields.length, buffer = [], extractors = [], out = null, cnt = 0, field, name, i, extractor; + for (i = 0; i < len; ++i) { + field = fields[i]; + extractor = this.createFieldAccessor(field); + if (extractor) { + name = field.name; + buffer.push('val \x3d extractors[' + cnt + "](raw); if (val !\x3d\x3d undefined) { data['" + name + "'] \x3d val; }"); + extractors.push(extractor); + ++cnt; + } + } + if (buffer.length) { + out = {extractors:extractors, fn:new Function('raw', 'data', 'extractors', 'var val;' + buffer.join(''))}; + } + return out; +}, defaultRecordCreator:function(data, Model) { + var record = new Model(data); + record.phantom = false; + return record; +}, getModelData:function(raw) { + return {}; +}, extractModelData:function(raw, fieldExtractorInfo) { + var data = this.getModelData(raw), fn; + if (fieldExtractorInfo) { + fn = fieldExtractorInfo.fn; + fn(raw, data, fieldExtractorInfo.extractors); + } + return data; +}, readAssociated:function(record, data, readOptions) { + var roles = record.associations, key, role; + for (key in roles) { + if (roles.hasOwnProperty(key)) { + role = roles[key]; + if (role.cls) { + role.read(record, data, this, readOptions); + } + } + } +}, getFields:function() { + return this.getModel().fields; +}, getData:Ext.identityFn, getRoot:Ext.identityFn, getResponseData:function(response) { + Ext.raise('getResponseData must be implemented in the Ext.data.reader.Reader subclass'); +}, onMetaChange:function(meta) { + var me = this, fields = meta.fields, model, newModel, clientIdProperty, proxy; + me.metaData = meta; + if (meta.root) { + me.setRootProperty(meta.root); + } + if (meta.totalProperty) { + me.setTotalProperty(meta.totalProperty); + } + if (meta.successProperty) { + me.setSuccessProperty(meta.successProperty); + } + if (meta.messageProperty) { + me.setMessageProperty(meta.messageProperty); + } + clientIdProperty = meta.clientIdProperty; + if (fields) { + newModel = Ext.define(null, {extend:'Ext.data.Model', fields:fields, clientIdProperty:clientIdProperty}); + me.setModel(newModel); + proxy = me.getProxy(); + if (proxy) { + proxy.setModel(newModel); + } + } else { + if (clientIdProperty) { + model = me.getModel(); + if (model) { + model.self.prototype.clientIdProperty = clientIdProperty; + } + } + } +}, buildExtractors:function(force) { + var me = this, totalProp, successProp, messageProp; + if (force || !me.hasExtractors) { + totalProp = me.getTotalProperty(); + successProp = me.getSuccessProperty(); + messageProp = me.getMessageProperty(); + if (totalProp) { + me.getTotal = me.getAccessor(totalProp); + } + if (successProp) { + me.getSuccess = me.getAccessor(successProp); + } + if (messageProp) { + me.getMessage = me.getAccessor(messageProp); + } + me.hasExtractors = true; + return true; + } +}, getAccessor:function(prop) { + var me = this, cache = me.extractorCache, ret, key; + if (typeof prop === 'string') { + key = me.getAccessorKey(prop); + ret = cache.get(key); + if (!ret) { + ret = me.createAccessor(prop); + cache.add(key, ret); + } + } else { + ret = me.createAccessor(prop); + } + return ret; +}, getAccessorKey:function(prop) { + return this.$className + prop; +}, createAccessor:Ext.emptyFn, createFieldAccessor:Ext.emptyFn, destroy:function() { + var me = this; + me.model = me.getTotal = me.getSuccess = me.getMessage = me.rawData = null; + me.onMetaChange = null; + me.transform = null; + me.callParent(); +}, privates:{copyFrom:function(reader) { + var me = this; + reader.buildExtractors(); + me.getTotal = reader.getTotal; + me.getSuccess = reader.getSuccess; + me.getMessage = reader.getMessage; + ++me.duringInit; + me.setConfig(reader.getConfig()); + --me.duringInit; + me.hasExtractors = true; +}}}, function(Cls) { + var proto = Cls.prototype; + Ext.apply(proto, {nullResultSet:new Ext.data.ResultSet({total:0, count:0, records:[], success:true, message:''})}); + proto.extractorCache = new Ext.util.LruCache; +}); +Ext.define('Ext.data.writer.Writer', {mixins:[Ext.mixin.Factoryable], alias:'writer.base', factoryConfig:{defaultType:null}, alternateClassName:['Ext.data.DataWriter', 'Ext.data.Writer'], config:{clientIdProperty:null, allDataOptions:{persist:true}, partialDataOptions:{changes:true, critical:true}, writeAllFields:false, dateFormat:null, nameProperty:'name', writeRecordId:true, transform:null}, isWriter:true, constructor:function(config) { + this.initConfig(config); +}, applyTransform:function(transform) { + if (transform) { + if (Ext.isFunction(transform)) { + transform = {fn:transform}; + } + return transform.fn.bind(transform.scope || this); + } + return transform; +}, write:function(request) { + var operation = request.getOperation(), records = operation.getRecords() || [], len = records.length, data = [], i; + for (i = 0; i < len; i++) { + data.push(this.getRecordData(records[i], operation)); + } + return this.writeRecords(request, data); +}, writeRecords:Ext.emptyFn, getRecordData:function(record, operation) { + var me = this, nameProperty = me.getNameProperty(), mapping = nameProperty !== 'name', idField = record.self.idField, key = idField[nameProperty] || idField.name, value = record.id, writeAll = me.getWriteAllFields(), ret, dateFormat, phantom, options, clientIdProperty, fieldsMap, data, field; + if (idField.serialize) { + value = idField.serialize(value); + } + if (!writeAll && operation && operation.isDestroyOperation) { + ret = {}; + ret[key] = value; + } else { + dateFormat = me.getDateFormat(); + phantom = record.phantom; + options = phantom || writeAll ? me.getAllDataOptions() : me.getPartialDataOptions(); + clientIdProperty = phantom && me.getClientIdProperty(); + fieldsMap = record.getFieldsMap(); + options.serialize = false; + data = record.getData(options); + ret = mapping ? {} : data; + if (clientIdProperty) { + ret[clientIdProperty] = value; + delete data[key]; + } else { + if (!me.getWriteRecordId()) { + delete data[key]; + } + } + for (key in data) { + value = data[key]; + if (!(field = fieldsMap[key])) { + if (mapping) { + ret[key] = value; + } + } else { + if (field.isDateField && dateFormat && Ext.isDate(value)) { + value = Ext.Date.format(value, dateFormat); + } else { + if (field.serialize) { + value = field.serialize(value, record); + } + } + if (mapping) { + key = field[nameProperty] || key; + } + ret[key] = value; + } + } + } + return ret; +}}); +Ext.define('Ext.data.proxy.Proxy', {mixins:[Ext.mixin.Factoryable, Ext.mixin.Observable], $configPrefixed:false, alias:'proxy.proxy', alternateClassName:['Ext.data.DataProxy', 'Ext.data.Proxy'], config:{batchOrder:'create,update,destroy', batchActions:true, model:undefined, reader:{type:'json'}, writer:{type:'json'}}, isProxy:true, isSynchronous:false, constructor:function(config) { + this.mixins.observable.constructor.call(this, config); + this.pendingOperations = {}; +}, applyModel:function(model) { + return Ext.data.schema.Schema.lookupEntity(model); +}, updateModel:function(model) { + if (model) { + var reader = this.getReader(); + if (reader && !reader.getModel()) { + reader.setModel(model); + } + } +}, applyReader:function(reader) { + if (this.isSynchronous) { + reader = reader || {}; + reader.keepRawData = true; + } + return Ext.Factory.reader(reader); +}, updateReader:function(reader) { + if (reader) { + var me = this, model = me.getModel(); + if (!model) { + model = reader.getModel(); + if (model) { + me.setModel(model); + } + } else { + reader.setModel(model); + } + if (reader.onMetaChange) { + reader.onMetaChange = Ext.Function.createSequence(reader.onMetaChange, me.onMetaChange, me); + } + } +}, applyWriter:function(writer) { + var reader = this.getReader(); + writer = Ext.Factory.writer(writer); + if (writer.getRecord && !writer.getRecord() && reader && reader.getRecord) { + reader = reader.getRecord(); + if (reader) { + writer.setRecord(reader); + } + } + return writer; +}, abort:Ext.emptyFn, onMetaChange:function(meta) { + this.fireEvent('metachange', this, meta); +}, create:Ext.emptyFn, read:Ext.emptyFn, update:Ext.emptyFn, erase:Ext.emptyFn, batch:function(options, listeners) { + var me = this, useBatch = me.getBatchActions(), batch, records, actions, aLen, action, a, r, rLen, record; + if (options.operations === undefined) { + options = {operations:options, listeners:listeners}; + } + if (options.batch) { + if (Ext.isDefined(options.batch.runOperation)) { + batch = Ext.applyIf(options.batch, {proxy:me, listeners:{}}); + } + } else { + options.batch = {proxy:me, listeners:options.listeners || {}}; + } + if (!batch) { + batch = new Ext.data.Batch(options.batch); + } + batch.on('complete', Ext.bind(me.onBatchComplete, me, [options], 0)); + actions = me.getBatchOrder().split(','); + aLen = actions.length; + for (a = 0; a < aLen; a++) { + action = actions[a]; + records = options.operations[action]; + if (records) { + if (useBatch) { + batch.add(me.createOperation(action, {records:records, params:options.params})); + } else { + rLen = records.length; + for (r = 0; r < rLen; r++) { + record = records[r]; + batch.add(me.createOperation(action, {records:[record], params:options.params})); + } + } + } + } + batch.start(); + return batch; +}, onBatchComplete:function(batchOptions, batch) { + var scope = batchOptions.scope || this; + if (batch.hasException()) { + if (Ext.isFunction(batchOptions.failure)) { + Ext.callback(batchOptions.failure, scope, [batch, batchOptions]); + } + } else { + if (Ext.isFunction(batchOptions.success)) { + Ext.callback(batchOptions.success, scope, [batch, batchOptions]); + } + } + if (Ext.isFunction(batchOptions.callback)) { + Ext.callback(batchOptions.callback, scope, [batch, batchOptions]); + } +}, createOperation:function(action, config) { + var operation = Ext.createByAlias('data.operation.' + action, config); + operation.setProxy(this); + this.pendingOperations[operation._internalId] = operation; + return operation; +}, completeOperation:function(operation) { + delete this.pendingOperations[operation._internalId]; +}, clone:function() { + return new this.self(this.getInitialConfig()); +}, destroy:function() { + var ops = this.pendingOperations, opId, op; + for (opId in ops) { + op = ops[opId]; + if (op && op.isRunning()) { + op.abort(); + } + } + this.pendingOperations = null; +}}); +Ext.define('Ext.data.proxy.Client', {extend:Ext.data.proxy.Proxy, alternateClassName:'Ext.data.ClientProxy', isSynchronous:true, clear:function() { + Ext.raise("The Ext.data.proxy.Client subclass that you are using has not defined a 'clear' function. See src/data/ClientProxy.js for details."); +}}); +Ext.define('Ext.data.proxy.Memory', {extend:Ext.data.proxy.Client, alias:'proxy.memory', alternateClassName:'Ext.data.MemoryProxy', isMemoryProxy:true, config:{enablePaging:false, data:{$value:null, merge:function(newValue, currentValue, target, mixinClass) { + if (Ext.isArray(newValue)) { + return Ext.Array.clone(newValue); + } else { + return Ext.clone(newValue); + } +}}}, finishOperation:function(operation) { + var i = 0, recs = operation.getRecords(), len = recs.length; + for (i; i < len; i++) { + recs[i].commit(); + } + operation.setSuccessful(true); +}, create:function(operation) { + this.finishOperation(operation); +}, update:function(operation) { + this.finishOperation(operation); +}, erase:function(operation) { + this.finishOperation(operation); +}, read:function(operation) { + var me = this, resultSet = me.getReader().read(me.getData()), records = resultSet.getRecords(), sorters = operation.getSorters(), grouper = operation.getGrouper(), filters = operation.getFilters(), start = operation.getStart(), limit = operation.getLimit(); + if (operation.process(resultSet, null, null, false) !== false) { + if (filters && filters.length) { + resultSet.setRecords(records = Ext.Array.filter(records, Ext.util.Filter.createFilterFn(filters))); + resultSet.setTotal(records.length); + } + if (grouper) { + sorters = sorters ? sorters.concat(grouper) : sorters; + } + if (sorters && sorters.length) { + resultSet.setRecords(records = Ext.Array.sort(records, Ext.util.Sortable.createComparator(sorters))); + } + if (me.getEnablePaging() && start !== undefined && limit !== undefined) { + if (start >= resultSet.getTotal()) { + resultSet.setConfig({success:false, records:[], total:0}); + } else { + resultSet.setRecords(Ext.Array.slice(records, start, start + limit)); + } + } + operation.setCompleted(); + } +}, clear:Ext.emptyFn}); +Ext.define('Ext.data.ProxyStore', {extend:Ext.data.AbstractStore, config:{model:undefined, fields:null, proxy:undefined, autoLoad:undefined, autoSync:false, batchUpdateMode:'operation', sortOnLoad:true, trackRemoved:true, asynchronousLoad:undefined}, onClassExtended:function(cls, data, hooks) { + var model = data.model, onBeforeClassCreated; + if (typeof model === 'string') { + onBeforeClassCreated = hooks.onBeforeCreated; + hooks.onBeforeCreated = function() { + var me = this, args = arguments; + Ext.require(model, function() { + onBeforeClassCreated.apply(me, args); + }); + }; + } +}, implicitModel:'Ext.data.Model', autoSyncSuspended:0, constructor:function(config) { + var me = this; + var configModel = me.model; + me.removed = []; + me.callParent(arguments); + if (me.getAsynchronousLoad() === false) { + me.flushLoad(); + } + if (!me.getModel() && me.useModelWarning !== false && me.getStoreId() !== 'ext-empty-store') { + var logMsg = [Ext.getClassName(me) || 'Store', ' created with no model.']; + if (typeof configModel === 'string') { + logMsg.push(" The name '", configModel, "'", ' does not correspond to a valid model.'); + } + Ext.log.warn(logMsg.join('')); + } +}, applyAsynchronousLoad:function(asynchronousLoad) { + if (asynchronousLoad == null) { + asynchronousLoad = !this.loadsSynchronously(); + } + return asynchronousLoad; +}, updateAutoLoad:function(autoLoad) { + this.getData(); + if (autoLoad) { + this.load(Ext.isObject(autoLoad) ? autoLoad : undefined); + } +}, getTotalCount:function() { + return this.totalCount || 0; +}, applyFields:function(fields) { + if (fields) { + this.createImplicitModel(fields); + } +}, applyModel:function(model) { + if (model) { + model = Ext.data.schema.Schema.lookupEntity(model); + } else { + this.getFields(); + model = this.getModel() || this.createImplicitModel(); + } + return model; +}, applyProxy:function(proxy) { + var model = this.getModel(); + if (proxy !== null) { + if (proxy) { + if (proxy.isProxy) { + proxy.setModel(model); + } else { + if (Ext.isString(proxy)) { + proxy = {type:proxy, model:model}; + } else { + if (!proxy.model) { + proxy = Ext.apply({model:model}, proxy); + } + } + proxy = Ext.createByAlias('proxy.' + proxy.type, proxy); + proxy.autoCreated = true; + } + } else { + if (model) { + proxy = model.getProxy(); + } + } + if (!proxy) { + proxy = Ext.createByAlias('proxy.memory'); + proxy.autoCreated = true; + } + } + return proxy; +}, applyState:function(state) { + var me = this; + me.callParent([state]); + if (me.getAutoLoad() || me.isLoaded()) { + me.load(); + } +}, updateProxy:function(proxy, oldProxy) { + this.proxyListeners = Ext.destroy(this.proxyListeners); +}, updateTrackRemoved:function(track) { + this.cleanRemoved(); + this.removed = track ? [] : null; +}, onMetaChange:function(proxy, meta) { + this.fireEvent('metachange', this, meta); +}, create:function(data, options) { + var me = this, Model = me.getModel(), instance = new Model(data), operation; + options = Ext.apply({}, options); + if (!options.records) { + options.records = [instance]; + } + options.internalScope = me; + options.internalCallback = me.onProxyWrite; + operation = me.createOperation('create', options); + return operation.execute(); +}, read:function() { + return this.load.apply(this, arguments); +}, update:function(options) { + var me = this, operation; + options = Ext.apply({}, options); + if (!options.records) { + options.records = me.getUpdatedRecords(); + } + options.internalScope = me; + options.internalCallback = me.onProxyWrite; + operation = me.createOperation('update', options); + return operation.execute(); +}, onProxyWrite:function(operation) { + var me = this, success = operation.wasSuccessful(), records = operation.getRecords(); + switch(operation.getAction()) { + case 'create': + me.onCreateRecords(records, operation, success); + break; + case 'update': + me.onUpdateRecords(records, operation, success); + break; + case 'destroy': + me.onDestroyRecords(records, operation, success); + break; + } + if (success) { + me.fireEvent('write', me, operation); + me.fireEvent('datachanged', me); + } +}, onCreateRecords:Ext.emptyFn, onUpdateRecords:Ext.emptyFn, onDestroyRecords:function(records, operation, success) { + if (success) { + this.cleanRemoved(); + } +}, erase:function(options) { + var me = this, operation; + options = Ext.apply({}, options); + if (!options.records) { + options.records = me.getRemovedRecords(); + } + options.internalScope = me; + options.internalCallback = me.onProxyWrite; + operation = me.createOperation('destroy', options); + return operation.execute(); +}, onBatchOperationComplete:function(batch, operation) { + return this.onProxyWrite(operation); +}, onBatchComplete:function(batch, operation) { + var me = this, operations = batch.operations, length = operations.length, i; + if (me.batchUpdateMode !== 'operation') { + me.suspendEvents(); + for (i = 0; i < length; i++) { + me.onProxyWrite(operations[i]); + } + me.resumeEvents(); + } + me.isSyncing = false; + me.fireEvent('datachanged', me); +}, onBatchException:function(batch, operation) { +}, filterNew:function(item) { + return item.phantom === true && item.isValid(); +}, getNewRecords:function() { + return []; +}, getUpdatedRecords:function() { + return []; +}, getModifiedRecords:function() { + return [].concat(this.getNewRecords(), this.getUpdatedRecords()); +}, filterUpdated:function(item) { + return item.dirty === true && item.phantom !== true && item.isValid(); +}, getRemovedRecords:function() { + var removed = this.getRawRemovedRecords(); + return removed ? Ext.Array.clone(removed) : removed; +}, sync:function(options) { + var me = this, operations = {}, toCreate = me.getNewRecords(), toUpdate = me.getUpdatedRecords(), toDestroy = me.getRemovedRecords(), needsSync = false; + if (me.isSyncing) { + Ext.log.warn('Sync called while a sync operation is in progress. Consider configuring autoSync as false.'); + } + me.needsSync = false; + if (toCreate.length > 0) { + operations.create = toCreate; + needsSync = true; + } + if (toUpdate.length > 0) { + operations.update = toUpdate; + needsSync = true; + } + if (toDestroy.length > 0) { + operations.destroy = toDestroy; + needsSync = true; + } + if (needsSync && me.fireEvent('beforesync', operations) !== false) { + me.isSyncing = true; + options = options || {}; + me.proxy.batch(Ext.apply(options, {operations:operations, listeners:me.getBatchListeners()})); + } + return me; +}, getBatchListeners:function() { + var me = this, listeners = {scope:me, exception:me.onBatchException, complete:me.onBatchComplete}; + if (me.batchUpdateMode === 'operation') { + listeners.operationcomplete = me.onBatchOperationComplete; + } + return listeners; +}, save:function() { + return this.sync.apply(this, arguments); +}, load:function(options) { + var me = this; + if (typeof options === 'function') { + options = {callback:options}; + } else { + options = options ? Ext.Object.chain(options) : {}; + } + me.pendingLoadOptions = options; + if (me.getAsynchronousLoad()) { + if (!me.loadTimer) { + me.loadTimer = Ext.asap(me.flushLoad, me); + } + } else { + me.flushLoad(); + } + return me; +}, flushLoad:function() { + var me = this, options = me.pendingLoadOptions, operation; + me.clearLoadTask(); + if (!options) { + return; + } + me.setLoadOptions(options); + if (me.getRemoteSort() && options.sorters) { + me.fireEvent('beforesort', me, options.sorters); + } + operation = Ext.apply({internalScope:me, internalCallback:me.onProxyLoad, scope:me}, options); + me.lastOptions = operation; + operation = me.createOperation('read', operation); + if (me.fireEvent('beforeload', me, operation) !== false) { + me.onBeforeLoad(operation); + me.loading = true; + operation.execute(); + } +}, reload:function(options) { + var o = Ext.apply({}, options, this.lastOptions); + return this.load(o); +}, onEndUpdate:function() { + var me = this; + if (me.needsSync && me.autoSync && !me.autoSyncSuspended) { + me.sync(); + } +}, afterReject:function(record) { + var me = this; + if (me.contains(record)) { + me.onUpdate(record, Ext.data.Model.REJECT, null); + me.fireEvent('update', me, record, Ext.data.Model.REJECT, null); + } +}, afterCommit:function(record, modifiedFieldNames) { + var me = this; + if (!modifiedFieldNames) { + modifiedFieldNames = null; + } + if (me.contains(record)) { + me.onUpdate(record, Ext.data.Model.COMMIT, modifiedFieldNames); + me.fireEvent('update', me, record, Ext.data.Model.COMMIT, modifiedFieldNames); + } +}, afterErase:function(record) { + this.onErase(record); +}, onErase:Ext.emptyFn, onUpdate:Ext.emptyFn, onDestroy:function() { + var me = this, proxy = me.getProxy(); + me.clearLoadTask(); + me.getData().destroy(); + me.data = null; + me.setProxy(null); + if (proxy.autoCreated) { + proxy.destroy(); + } + me.setModel(null); +}, hasPendingLoad:function() { + return !!this.pendingLoadOptions || this.isLoading(); +}, isLoading:function() { + return !!this.loading; +}, isLoaded:function() { + return this.loadCount > 0; +}, suspendAutoSync:function() { + ++this.autoSyncSuspended; +}, resumeAutoSync:function(syncNow) { + var me = this; + if (!me.autoSyncSuspended) { + Ext.log.warn('Mismatched call to resumeAutoSync - auto synchronization is currently not suspended.'); + } + if (me.autoSyncSuspended && !--me.autoSyncSuspended) { + if (syncNow) { + me.sync(); + } + } +}, removeAll:Ext.emptyFn, clearData:Ext.emptyFn, privates:{getRawRemovedRecords:function() { + return this.removed; +}, onExtraParamsChanged:function() { +}, clearLoadTask:function() { + Ext.asapCancel(this.loadTimer); + this.pendingLoadOptions = this.loadTimer = null; +}, cleanRemoved:function() { + var removed = this.getRawRemovedRecords(), len, i; + if (removed) { + for (i = 0, len = removed.length; i < len; ++i) { + removed[i].unjoin(this); + } + removed.length = 0; + } +}, createOperation:function(type, options) { + var me = this, proxy = me.getProxy(), listeners; + if (!me.proxyListeners) { + listeners = {scope:me, destroyable:true, beginprocessresponse:me.beginUpdate, endprocessresponse:me.endUpdate}; + if (!me.disableMetaChangeEvent) { + listeners.metachange = me.onMetaChange; + } + me.proxyListeners = proxy.on(listeners); + } + return proxy.createOperation(type, options); +}, createImplicitModel:function(fields) { + var me = this, modelCfg = {extend:me.implicitModel, statics:{defaultProxy:'memory'}}, proxy, model; + if (fields) { + modelCfg.fields = fields; + } + model = Ext.define(null, modelCfg); + me.setModel(model); + proxy = me.getProxy(); + if (proxy) { + model.setProxy(proxy); + } else { + me.setProxy(model.getProxy()); + } +}, loadsSynchronously:function() { + return this.getProxy().isSynchronous; +}, onBeforeLoad:Ext.privateFn, removeFromRemoved:function(record) { + var removed = this.getRawRemovedRecords(); + if (removed) { + Ext.Array.remove(removed, record); + record.unjoin(this); + } +}, setLoadOptions:function(options) { + var me = this, filters, sorters; + if (me.getRemoteFilter()) { + filters = me.getFilters(false); + if (filters && filters.getCount()) { + options.filters = filters.getRange(); + } + } + if (me.getRemoteSort()) { + sorters = me.getSorters(false); + if (sorters && sorters.getCount()) { + options.sorters = sorters.getRange(); + } + } +}}}); +Ext.define('Ext.data.LocalStore', {extend:Ext.Mixin, mixinConfig:{id:'localstore'}, config:{extraKeys:null}, applyExtraKeys:function(extraKeys) { + var indexName, data = this.getData(); + data.setExtraKeys(extraKeys); + extraKeys = data.getExtraKeys(); + for (indexName in extraKeys) { + this[indexName] = extraKeys[indexName]; + } +}, add:function(arg) { + return this.insert(this.getCount(), arguments.length === 1 ? arg : arguments); +}, constructDataCollection:function() { + return new Ext.util.Collection({rootProperty:'data'}); +}, createModel:function(record) { + var session = this.getSession(), Model; + if (!record.isModel) { + Model = this.getModel(); + record = new Model(record, session); + } + return record; +}, createFiltersCollection:function() { + return this.getData().getFilters(); +}, createSortersCollection:function() { + var sorters = this.getData().getSorters(); + sorters.setSorterConfigure(this.addFieldTransform, this); + return sorters; +}, onCollectionSort:function() { + this.onSorterEndUpdate(); +}, onCollectionFilter:function() { + this.onFilterEndUpdate(); +}, notifySorterChange:function() { + this.getData().onSorterChange(); +}, forceLocalSort:function() { + this.getData().onSortChange(); +}, contains:function(record) { + return this.indexOf(record) > -1; +}, each:function(fn, scope) { + var data = this.data.items, len = data.length, record, i; + for (i = 0; i < len; ++i) { + record = data[i]; + if (fn.call(scope || record, record, i, len) === false) { + break; + } + } +}, collect:function(dataIndex, allowNull, bypassFilter) { + var me = this, data = me.getData(); + if (bypassFilter === true && data.filtered) { + data = data.getSource(); + } + return data.collect(dataIndex, 'data', allowNull); +}, getById:function(id) { + var data = this.getData(); + if (data.filtered) { + data = data.getSource(); + } + return data.get(id) || null; +}, getByInternalId:function(internalId) { + var data = this.getData(), keyCfg; + if (data.filtered) { + if (!data.$hasExtraKeys) { + keyCfg = this.makeInternalKeyCfg(); + data.setExtraKeys(keyCfg); + data.$hasExtraKeys = true; + } + data = data.getSource(); + } + if (!data.$hasExtraKeys) { + data.setExtraKeys(keyCfg || this.makeInternalKeyCfg()); + data.$hasExtraKeys = true; + } + return data.byInternalId.get(internalId) || null; +}, getDataSource:function() { + var data = this.getData(); + return data.getSource() || data; +}, indexOf:function(record) { + return this.getData().indexOf(record); +}, indexOfId:function(id) { + return this.indexOf(this.getById(id)); +}, insert:function(index, records) { + var me = this, len, i; + if (records) { + if (!Ext.isIterable(records)) { + records = [records]; + } else { + records = Ext.Array.clone(records); + } + len = records.length; + } + if (!len) { + return []; + } + for (i = 0; i < len; ++i) { + records[i] = me.createModel(records[i]); + } + me.getData().insert(index, records); + return records; +}, queryBy:function(fn, scope) { + var data = this.getData(); + return (data.getSource() || data).createFiltered(fn, scope); +}, query:function(property, value, anyMatch, caseSensitive, exactMatch) { + var data = this.getData(); + return (data.getSource() || data).createFiltered(property, value, anyMatch, caseSensitive, exactMatch); +}, first:function(grouped) { + return this.getData().first(grouped) || null; +}, last:function(grouped) { + return this.getData().last(grouped) || null; +}, sum:function(field, grouped) { + var data = this.getData(); + return grouped && this.isGrouped() ? data.sumByGroup(field) : data.sum(field); +}, count:function(grouped) { + var data = this.getData(); + return grouped && this.isGrouped() ? data.countByGroup() : data.count(); +}, min:function(field, grouped) { + var data = this.getData(); + return grouped && this.isGrouped() ? data.minByGroup(field) : data.min(field); +}, max:function(field, grouped) { + var data = this.getData(); + return grouped && this.isGrouped() ? data.maxByGroup(field) : data.max(field); +}, average:function(field, grouped) { + var data = this.getData(); + return grouped && this.isGrouped() ? data.averageByGroup(field) : data.average(field); +}, aggregate:function(fn, scope, grouped, field) { + var me = this, groups, len, out, group, i; + if (grouped && me.isGrouped()) { + groups = me.getGroups().items; + len = groups.length; + out = {}; + for (i = 0; i < len; ++i) { + group = groups[i]; + out[group.getGroupKey()] = me.getAggregate(fn, scope || me, group.items, field); + } + return out; + } else { + return me.getAggregate(fn, scope, me.getData().items, field); + } +}, getAggregate:function(fn, scope, records, field) { + var values = [], len = records.length, i; + for (i = 0; i < len; ++i) { + values[i] = records[i].get(field); + } + return fn.call(scope || this, records, values); +}, addObserver:function(observer) { + var observers = this.observers; + if (!observers) { + this.observers = observers = new Ext.util.Collection; + } + observers.add(observer); +}, removeObserver:function(observer) { + var observers = this.observers; + if (observers) { + observers.remove(observer); + } +}, callObservers:function(action, args) { + var observers = this.observers, len, items, i, methodName, item; + if (observers) { + items = observers.items; + if (args) { + args.unshift(this); + } else { + args = [this]; + } + for (i = 0, len = items.length; i < len; ++i) { + item = items[i]; + methodName = 'onSource' + action; + if (item[methodName]) { + item[methodName].apply(item, args); + } + } + } +}, queryRecordsBy:function(fn, scope) { + var data = this.getData(), matches = [], len, i, record; + data = (data.getSource() || data).items; + scope = scope || this; + for (i = 0, len = data.length; i < len; ++i) { + record = data[i]; + if (fn.call(scope, record) === true) { + matches.push(record); + } + } + return matches; +}, queryRecords:function(field, value) { + var data = this.getData(), matches = [], len, i, record; + data = (data.getSource() || data).items; + for (i = 0, len = data.length; i < len; ++i) { + record = data[i]; + if (record.get(field) === value) { + matches.push(record); + } + } + return matches; +}, privates:{isLast:function(record) { + return record === this.last(); +}, makeInternalKeyCfg:function() { + return {byInternalId:{property:'internalId', rootProperty:''}}; +}}}); +Ext.define('Ext.data.proxy.Server', {extend:Ext.data.proxy.Proxy, alias:'proxy.server', alternateClassName:'Ext.data.ServerProxy', isRemote:true, config:{url:'', pageParam:'page', startParam:'start', limitParam:'limit', groupParam:'group', groupDirectionParam:'groupDir', sortParam:'sort', filterParam:'filter', directionParam:'dir', idParam:'id', simpleSortMode:false, simpleGroupMode:false, noCache:true, cacheString:'_dc', timeout:30000, api:{create:undefined, read:undefined, update:undefined, destroy:undefined}, +extraParams:{}}, create:function() { + return this.doRequest.apply(this, arguments); +}, read:function() { + return this.doRequest.apply(this, arguments); +}, update:function() { + return this.doRequest.apply(this, arguments); +}, erase:function() { + return this.doRequest.apply(this, arguments); +}, setExtraParam:function(name, value) { + var extraParams = this.getExtraParams(); + extraParams[name] = value; + this.fireEvent('extraparamschanged', extraParams); +}, updateExtraParams:function(newExtraParams, oldExtraParams) { + this.fireEvent('extraparamschanged', newExtraParams); +}, buildRequest:function(operation) { + var me = this, initialParams = Ext.apply({}, operation.getParams()), params = Ext.applyIf(initialParams, me.getExtraParams() || {}), request, operationId, idParam; + Ext.applyIf(params, me.getParams(operation)); + operationId = operation.getId(); + idParam = me.getIdParam(); + if (operationId !== undefined && params[idParam] === undefined) { + params[idParam] = operationId; + } + request = new Ext.data.Request({params:params, action:operation.getAction(), records:operation.getRecords(), url:operation.getUrl(), operation:operation, proxy:me}); + request.setUrl(me.buildUrl(request)); + operation.setRequest(request); + return request; +}, processResponse:function(success, operation, request, response) { + var me = this, exception, reader, resultSet; + me.fireEvent('beginprocessresponse', me, response, operation); + if (success === true) { + reader = me.getReader(); + if (response.status === 204) { + resultSet = reader.getNullResultSet(); + } else { + resultSet = reader.read(me.extractResponseData(response), {recordCreator:operation.getRecordCreator()}); + } + operation.process(resultSet, request, response); + exception = !operation.wasSuccessful(); + } else { + me.setException(operation, response); + exception = true; + } + if (exception) { + me.fireEvent('exception', me, response, operation); + } + me.afterRequest(request, success); + me.fireEvent('endprocessresponse', me, response, operation); +}, setException:function(operation, response) { + operation.setException({status:response.status, statusText:response.statusText, response:response}); +}, extractResponseData:Ext.identityFn, applyEncoding:function(value) { + return Ext.encode(value); +}, encodeSorters:function(sorters, preventArray) { + var out = [], length = sorters.length, i; + for (i = 0; i < length; i++) { + out[i] = sorters[i].serialize(); + } + return this.applyEncoding(preventArray ? out[0] : out); +}, encodeFilters:function(filters) { + var out = [], length = filters.length, i, op; + for (i = 0; i < length; i++) { + out[i] = filters[i].serialize(); + } + return this.applyEncoding(out); +}, getParams:function(operation) { + if (!operation.isReadOperation) { + return {}; + } + var me = this, params = {}, grouper = operation.getGrouper(), sorters = operation.getSorters(), filters = operation.getFilters(), page = operation.getPage(), start = operation.getStart(), limit = operation.getLimit(), simpleSortMode = me.getSimpleSortMode(), simpleGroupMode = me.getSimpleGroupMode(), pageParam = me.getPageParam(), startParam = me.getStartParam(), limitParam = me.getLimitParam(), groupParam = me.getGroupParam(), groupDirectionParam = me.getGroupDirectionParam(), sortParam = me.getSortParam(), + filterParam = me.getFilterParam(), directionParam = me.getDirectionParam(), hasGroups, index; + if (pageParam && page) { + params[pageParam] = page; + } + if (startParam && (start || start === 0)) { + params[startParam] = start; + } + if (limitParam && limit) { + params[limitParam] = limit; + } + hasGroups = groupParam && grouper; + if (hasGroups) { + if (simpleGroupMode) { + params[groupParam] = grouper.getProperty(); + params[groupDirectionParam] = grouper.getDirection(); + } else { + params[groupParam] = me.encodeSorters([grouper], true); + } + } + if (sortParam && sorters && sorters.length > 0) { + if (simpleSortMode) { + index = 0; + if (sorters.length > 1 && hasGroups) { + index = 1; + } + params[sortParam] = sorters[index].getProperty(); + params[directionParam] = sorters[index].getDirection(); + } else { + params[sortParam] = me.encodeSorters(sorters); + } + } + if (filterParam && filters && filters.length > 0) { + params[filterParam] = me.encodeFilters(filters); + } + return params; +}, buildUrl:function(request) { + var me = this, url = me.getUrl(request); + if (!url) { + Ext.raise('You are using a ServerProxy but have not supplied it with a url.'); + } + if (me.getNoCache()) { + url = Ext.urlAppend(url, Ext.String.format('{0}\x3d{1}', me.getCacheString(), Ext.Date.now())); + } + return url; +}, getUrl:function(request) { + var url; + if (request) { + url = request.getUrl() || this.getApi()[request.getAction()]; + } + return url ? url : this.callParent(); +}, doRequest:function(operation) { + Ext.raise('The doRequest function has not been implemented on your Ext.data.proxy.Server subclass. See src/data/ServerProxy.js for details'); +}, afterRequest:Ext.emptyFn, destroy:function() { + this.callParent(); + Ext.destroy(this.getReader(), this.getWriter()); + this.reader = this.writer = null; +}}); +Ext.define('Ext.data.proxy.Ajax', {extend:Ext.data.proxy.Server, alias:'proxy.ajax', alternateClassName:['Ext.data.HttpProxy', 'Ext.data.AjaxProxy'], isAjaxProxy:true, defaultActionMethods:{create:'POST', read:'GET', update:'POST', destroy:'POST'}, config:{binary:false, headers:undefined, paramsAsJson:false, withCredentials:false, useDefaultXhrHeader:true, username:null, password:null, actionMethods:{create:'POST', read:'GET', update:'POST', destroy:'POST'}}, doRequest:function(operation) { + var me = this, writer = me.getWriter(), request = me.buildRequest(operation), method = me.getMethod(request), jsonData, params; + if (writer && operation.allowWrite()) { + request = writer.write(request); + } + request.setConfig({binary:me.getBinary(), headers:me.getHeaders(), timeout:me.getTimeout(), scope:me, callback:me.createRequestCallback(request, operation), method:method, useDefaultXhrHeader:me.getUseDefaultXhrHeader(), disableCaching:false}); + if (method.toUpperCase() !== 'GET' && me.getParamsAsJson()) { + params = request.getParams(); + if (params) { + jsonData = request.getJsonData(); + if (jsonData) { + jsonData = Ext.Object.merge({}, jsonData, params); + } else { + jsonData = params; + } + request.setJsonData(jsonData); + request.setParams(undefined); + } + } + if (me.getWithCredentials()) { + request.setWithCredentials(true); + request.setUsername(me.getUsername()); + request.setPassword(me.getPassword()); + } + return me.sendRequest(request); +}, sendRequest:function(request) { + request.setRawRequest(Ext.Ajax.request(request.getCurrentConfig())); + this.lastRequest = request; + return request; +}, abort:function(request) { + request = request || this.lastRequest; + if (request) { + Ext.Ajax.abort(request.getRawRequest()); + } +}, getMethod:function(request) { + var actions = this.getActionMethods(), action = request.getAction(), method; + if (actions) { + method = actions[action]; + } + return method || this.defaultActionMethods[action]; +}, createRequestCallback:function(request, operation) { + var me = this; + return function(options, success, response) { + if (request === me.lastRequest) { + me.lastRequest = null; + } + me.processResponse(success, operation, request, response); + }; +}, destroy:function() { + this.lastRequest = null; + this.callParent(); +}}); +Ext.define('Ext.data.reader.Json', {extend:Ext.data.reader.Reader, alternateClassName:'Ext.data.JsonReader', alias:'reader.json', config:{record:null, metaProperty:'metaData', useSimpleAccessors:false, preserveRawData:false}, updateRootProperty:function() { + this.forceBuildExtractors(); +}, updateMetaProperty:function() { + this.forceBuildExtractors(); +}, readRecords:function(data, readOptions, internalReadOptions) { + var me = this, meta; + if (me.getMeta) { + meta = me.getMeta(data); + if (meta) { + me.onMetaChange(meta); + } + } else { + if (data.metaData) { + me.onMetaChange(data.metaData); + } + } + return me.callParent([data, readOptions, internalReadOptions]); +}, getResponseData:function(response) { + var error; + try { + return Ext.decode(response.responseText); + } catch (ex) { + error = this.createReadError(ex.message); + Ext.Logger.warn('Unable to parse the JSON returned by the server'); + this.fireEvent('exception', this, response, error); + return error; + } +}, buildExtractors:function() { + var me = this, metaProp, rootProp; + if (me.callParent(arguments)) { + metaProp = me.getMetaProperty(); + rootProp = me.getRootProperty(); + if (rootProp) { + me.getRoot = me.getAccessor(rootProp); + } else { + me.getRoot = Ext.identityFn; + } + if (metaProp) { + me.getMeta = me.getAccessor(metaProp); + } + } +}, extractData:function(root, readOptions) { + var recordName = this.getRecord(), data = [], length, i; + if (recordName) { + length = root.length; + if (!length && Ext.isObject(root)) { + length = 1; + root = [root]; + } + for (i = 0; i < length; i++) { + data[i] = root[i][recordName]; + } + } else { + data = root; + } + return this.callParent([data, readOptions]); +}, getModelData:function(raw) { + return this.getPreserveRawData() ? Ext.apply({}, raw) : raw; +}, createAccessor:function() { + var re = /[\[\.]/; + return function(expr) { + var me = this, simple = me.getUseSimpleAccessors(), operatorIndex, result, current, parts, part, inExpr, isDot, isLeft, isRight, special, c, i, bracketed, len; + if (!(expr || expr === 0)) { + return; + } + if (typeof expr === 'function') { + return expr; + } + if (!simple) { + operatorIndex = String(expr).search(re); + } + if (simple === true || operatorIndex < 0) { + result = function(raw) { + return raw[expr]; + }; + } else { + current = 'raw'; + parts = []; + part = ''; + inExpr = 0; + len = expr.length; + for (i = 0; i <= len; ++i) { + c = expr[i]; + isDot = c === '.'; + isLeft = c === '['; + isRight = c === ']'; + special = isDot || isLeft || isRight || !c; + if (!special || inExpr > 1 || inExpr && !isRight) { + part += c; + } else { + if (special) { + bracketed = false; + if (isLeft) { + ++inExpr; + } else { + if (isRight) { + --inExpr; + bracketed = true; + } + } + if (part) { + if (bracketed) { + part = '[' + part + ']'; + } else { + part = '.' + part; + } + current += part; + parts.push('' + current); + part = ''; + } + } + } + } + result = parts.join(' \x26\x26 '); + result = Ext.functionFactory('raw', 'return ' + result); + } + return result; + }; +}(), createFieldAccessor:function(field) { + var me = this, mapping = field.mapping, hasMap = mapping || mapping === 0, map = hasMap ? mapping : field.name; + if (hasMap) { + if (typeof map === 'function') { + return function(raw) { + return field.mapping(raw, me); + }; + } else { + return me.createAccessor(map); + } + } +}, getAccessorKey:function(prop) { + var simple = this.getUseSimpleAccessors() ? 'simple' : ''; + return this.$className + simple + prop; +}, privates:{copyFrom:function(reader) { + this.callParent([reader]); + this.getRoot = reader.getRoot; +}}}); +Ext.define('Ext.data.writer.Json', {extend:Ext.data.writer.Writer, alternateClassName:'Ext.data.JsonWriter', alias:'writer.json', config:{rootProperty:undefined, encode:false, allowSingle:true, expandData:false}, constructor:function(config) { + if (config && config.hasOwnProperty('root')) { + config = Ext.apply({}, config); + config.rootProperty = config.root; + delete config.root; + Ext.log.warn('Ext.data.writer.Json: Using the deprecated "root" configuration. Use "rootProperty" instead.'); + } + this.callParent([config]); +}, getExpandedData:function(data) { + var dataLength = data.length, i = 0, item, prop, nameParts, j, tempObj, toObject = function(name, value) { + var o = {}; + o[name] = value; + return o; + }; + for (; i < dataLength; i++) { + item = data[i]; + for (prop in item) { + if (item.hasOwnProperty(prop)) { + nameParts = prop.split('.'); + j = nameParts.length - 1; + if (j > 0) { + tempObj = item[prop]; + for (; j > 0; j--) { + tempObj = toObject(nameParts[j], tempObj); + } + item[nameParts[0]] = item[nameParts[0]] || {}; + Ext.Object.merge(item[nameParts[0]], tempObj); + delete item[prop]; + } + } + } + } + return data; +}, writeRecords:function(request, data) { + var me = this, root = me.getRootProperty(), json, single, transform; + if (me.getExpandData()) { + data = me.getExpandedData(data); + } + if (me.getAllowSingle() && data.length === 1) { + data = data[0]; + single = true; + } + transform = this.getTransform(); + if (transform) { + data = transform(data, request); + } + if (me.getEncode()) { + if (root) { + request.setParam(root, Ext.encode(data)); + } else { + Ext.raise('Must specify a root when using encode'); + } + } else { + if (single || data && data.length) { + json = request.getJsonData() || {}; + if (root) { + json[root] = data; + } else { + json = data; + } + request.setJsonData(json); + } + } + return request; +}}); +Ext.define('Ext.util.Group', {extend:Ext.util.Collection, config:{groupKey:null}, $endUpdatePriority:2001}); +Ext.define('Ext.util.SorterCollection', {extend:Ext.util.Collection, isSorterCollection:true, $sortable:null, sortFn:null, config:{sorterOptionsFn:null, sorterOptionsScope:null}, constructor:function(config) { + var me = this; + me.sortFn = Ext.util.Sorter.createComparator(me); + me.callParent([config]); + me.setDecoder(me.decodeSorter); +}, addSort:function(property, direction, mode) { + var me = this, count, index, limit, options, primary, sorter, sorters; + if (!property) { + me.beginUpdate(); + me.endUpdate(); + } else { + options = me.getOptions(); + if (property instanceof Array) { + sorters = property; + mode = direction; + direction = null; + } else { + if (Ext.isString(property)) { + if (!(sorter = me.get(property))) { + sorters = [{property:property, direction:direction || options.getDefaultSortDirection()}]; + } else { + sorters = [sorter]; + } + } else { + if (Ext.isFunction(property)) { + sorters = [{sorterFn:property, direction:direction || options.getDefaultSortDirection()}]; + } else { + if (!Ext.isObject(property)) { + Ext.raise('Invalid sort descriptor: ' + property); + } + sorters = [property]; + mode = direction; + direction = null; + } + } + } + if (mode && !me._sortModes[mode]) { + Ext.raise('Sort mode should be "multi", "append", "prepend" or "replace", not "' + mode + '"'); + } + mode = me._sortModes[mode || 'replace']; + primary = me.getAt(0); + count = me.length; + index = mode.append ? count : 0; + me.beginUpdate(); + me.splice(index, mode.replace ? count : 0, sorters); + if (mode.multi) { + count = me.length; + limit = options.getMultiSortLimit(); + if (count > limit) { + me.removeAt(limit, count); + } + } + if (sorter && direction) { + sorter.setDirection(direction); + } else { + if (index === 0 && primary && primary === me.getAt(0)) { + primary.toggle(); + } + } + me.endUpdate(); + } +}, clear:function() { + this.beginUpdate(); + this.callParent(); + this.endUpdate(this.items); +}, getSortFn:function() { + return this.sortFn; +}, getByProperty:function(prop) { + var items = this.items, len = items.length, i, item; + for (i = 0; i < len; ++i) { + item = items[i]; + if (item.getProperty() === prop) { + return item; + } + } + return null; +}, _sortModes:{append:{append:1}, multi:{multi:1}, prepend:{prepend:1}, replace:{replace:1}}, decodeSorter:function(sorter, xclass) { + var me = this, options = me.getOptions(), root = options.getRootProperty(), sorterOptionsFn = me.getSorterOptionsFn(), currentSorter, sorterConfig, type; + if (sorter.isSorter) { + if (!sorter.getRoot()) { + sorter.setRoot(root); + } + } else { + sorterConfig = {direction:options.getDefaultSortDirection(), root:root}; + type = typeof sorter; + if (type === 'string') { + currentSorter = me.get(sorter); + if (currentSorter) { + return currentSorter; + } + sorterConfig.property = sorter; + } else { + if (type === 'function') { + sorterConfig.sorterFn = sorter; + } else { + if (!Ext.isObject(sorter)) { + Ext.raise('Invalid sorter specified: ' + sorter); + } + sorterConfig = Ext.apply(sorterConfig, sorter); + if (sorterConfig.fn) { + sorterConfig.sorterFn = sorterConfig.fn; + delete sorterConfig.fn; + } + } + } + sorter = Ext.create(xclass || 'Ext.util.Sorter', sorterConfig); + } + if (sorterOptionsFn) { + sorterOptionsFn.call(me.getSorterOptionsScope() || me, sorter); + } + return sorter; +}, setSorterConfigure:function(fn, scope) { + this.setSorterOptionsFn(fn); + this.setSorterOptionsScope(scope); +}, decodeRemoveItems:function(args, index) { + var me = this, ret = index === undefined ? args : args[index]; + if (!ret || !ret.$cloned) { + if (args.length > index + 1 || !Ext.isIterable(ret)) { + ret = Ext.Array.slice(args, index); + } + var currentSorters = me.items, ln = ret.length, remove = [], i, item, n, sorter, type; + for (i = 0; i < ln; i++) { + sorter = ret[i]; + if (sorter && sorter.isSorter) { + remove.push(sorter); + } else { + type = typeof sorter; + if (type === 'string') { + sorter = me.get(sorter); + if (sorter) { + remove.push(sorter); + } + } else { + if (type === 'function') { + for (n = currentSorters.length; n-- > 0;) { + item = currentSorters[n]; + if (item.getSorterFn() === sorter) { + remove.push(item); + } + } + } else { + Ext.raise('Invalid sorter specification: ' + sorter); + } + } + } + } + ret = remove; + ret.$cloned = true; + } + return ret; +}, getOptions:function() { + return this.$sortable || this; +}}); +Ext.define('Ext.util.FilterCollection', {extend:Ext.util.Collection, isFilterCollection:true, $filterable:null, filterFn:null, constructor:function(config) { + var me = this; + me.filterFn = Ext.util.Filter.createFilterFn(me); + me.callParent([config]); + me.setDecoder(me.decodeFilter); +}, filterData:function(data) { + return this.filtered ? Ext.Array.filter(data, this.filterFn) : data; +}, getFilterFn:function() { + return this.filterFn; +}, isItemFiltered:function(item) { + return !this.filterFn(item); +}, decodeFilter:function(filter) { + var options = this.getOptions(), filterRoot = options.getRootProperty(), filterConfig; + if (filter.isFilter) { + if (!filter.getRoot()) { + filter.setRoot(filterRoot); + } + } else { + filterConfig = {root:filterRoot}; + if (Ext.isFunction(filter)) { + filterConfig.filterFn = filter; + } else { + if (!Ext.isObject(filter)) { + Ext.raise('Invalid filter specified: ' + filter); + } + filterConfig = Ext.apply(filterConfig, filter); + if (filterConfig.fn) { + filterConfig.filterFn = filterConfig.fn; + delete filterConfig.fn; + } + if (Ext.util.Filter.isInvalid(filterConfig)) { + return false; + } + } + filter = new Ext.util.Filter(filterConfig); + } + return filter; +}, decodeRemoveItems:function(args, index) { + var me = this, ret = index === undefined ? args : args[index]; + if (!ret.$cloned) { + if (args.length > index + 1 || !Ext.isIterable(ret)) { + ret = Ext.Array.slice(args, index); + } + var currentFilters = me.items, ln = ret.length, remove = [], filter, i, isFunction, isProp, isString, item, match, n, type; + for (i = 0; i < ln; i++) { + filter = ret[i]; + if (filter && filter.isFilter) { + remove.push(filter); + } else { + type = typeof filter; + isFunction = type === 'function'; + isProp = filter.property !== undefined && filter.value !== undefined; + isString = type === 'string'; + if (!isFunction && !isProp && !isString) { + Ext.raise('Invalid filter specification: ' + filter); + } + for (n = currentFilters.length; n-- > 0;) { + item = currentFilters[n]; + match = false; + if (isString) { + match = item.getProperty() === filter; + } else { + if (isFunction) { + match = item.getFilterFn() === filter; + } else { + if (isProp) { + match = item.getProperty() === filter.property && item.getValue() === filter.value; + } + } + } + if (match) { + remove.push(item); + } + } + } + } + ret = remove; + ret.$cloned = true; + } + return ret; +}, getOptions:function() { + return this.$filterable || this; +}}); +Ext.define('Ext.util.GroupCollection', {extend:Ext.util.Collection, isGroupCollection:true, config:{grouper:null, itemRoot:null}, observerPriority:-100, onCollectionAdd:function(source, details) { + this.addItemsToGroups(source, details.items); +}, onCollectionBeforeItemChange:function(source, details) { + this.changeDetails = details; +}, onCollectionBeginUpdate:function() { + this.beginUpdate(); +}, onCollectionEndUpdate:function() { + this.endUpdate(); +}, onCollectionItemChange:function(source, details) { + var item = details.item; + if (!details.indexChanged) { + this.syncItemGrouping(source, item, source.getKey(item), details.oldKey, details.oldIndex); + } + this.changeDetails = null; +}, onCollectionRefresh:function(source) { + this.removeAll(); + this.addItemsToGroups(source, source.items); +}, onCollectionRemove:function(source, details) { + var me = this, changeDetails = me.changeDetails, entries, entry, group, i, n, removeGroups, item; + if (changeDetails) { + item = changeDetails.item; + group = me.findGroupForItem(item); + entries = []; + if (group) { + entries.push({group:group, items:[item]}); + } + } else { + entries = me.groupItems(source, details.items, false); + } + for (i = 0, n = entries.length; i < n; ++i) { + group = (entry = entries[i]).group; + if (group) { + group.remove(entry.items); + if (!group.length) { + (removeGroups || (removeGroups = [])).push(group); + } + } + } + if (removeGroups) { + me.remove(removeGroups); + } +}, onCollectionSort:function(source) { + var me = this, sorters = source.getSorters(false), items, length, i, group; + if (sorters) { + items = me.items; + length = me.length; + for (i = 0; i < length; ++i) { + group = items[i]; + if (group.getSorters() !== sorters) { + group.setSorters(sorters); + } + } + } +}, onCollectionUpdateKey:function(source, details) { + var index = details.index, item = details.item; + if (!details.indexChanged) { + index = source.indexOf(item); + this.syncItemGrouping(source, item, details.newKey, details.oldKey, index); + } +}, addItemsToGroups:function(source, items) { + this.groupItems(source, items, true); +}, groupItems:function(source, items, adding) { + var me = this, byGroup = {}, entries = [], grouper = source.getGrouper(), groupKeys = me.itemGroupKeys, entry, group, groupKey, i, item, itemKey, len, newGroups; + for (i = 0, len = items.length; i < len; ++i) { + groupKey = grouper.getGroupString(item = items[i]); + itemKey = source.getKey(item); + if (adding) { + (groupKeys || (me.itemGroupKeys = groupKeys = {}))[itemKey] = groupKey; + } else { + if (groupKeys) { + delete groupKeys[itemKey]; + } + } + if (!(entry = byGroup[groupKey])) { + if (!(group = me.getByKey(groupKey)) && adding) { + (newGroups || (newGroups = [])).push(group = me.createGroup(source, groupKey)); + } + entries.push(byGroup[groupKey] = entry = {group:group, items:[]}); + } + entry.items.push(item); + } + for (i = 0, len = entries.length; i < len; ++i) { + entry = entries[i]; + entry.group.add(entry.items); + } + if (newGroups) { + me.add(newGroups); + } + return entries; +}, syncItemGrouping:function(source, item, itemKey, oldKey, itemIndex) { + var me = this, itemGroupKeys = me.itemGroupKeys || (me.itemGroupKeys = {}), grouper = source.getGrouper(), groupKey = grouper.getGroupString(item), removeGroups = 0, index = -1, addGroups, group, oldGroup, oldGroupKey, firstIndex; + if (oldKey) { + oldGroupKey = itemGroupKeys[oldKey]; + delete itemGroupKeys[oldKey]; + } else { + oldGroupKey = itemGroupKeys[itemKey]; + } + itemGroupKeys[itemKey] = groupKey; + if (!(group = me.get(groupKey))) { + group = me.createGroup(source, groupKey); + addGroups = [group]; + } + if (group.get(itemKey) !== item) { + if (group.getCount() > 0 && source.getSorters().getCount() === 0) { + firstIndex = source.indexOf(group.items[0]); + if (itemIndex < firstIndex) { + index = 0; + } else { + index = itemIndex - firstIndex; + } + } + if (index === -1) { + group.add(item); + } else { + group.insert(index, item); + } + } else { + group.itemChanged(item); + } + if (groupKey !== oldGroupKey && (oldGroupKey === 0 || oldGroupKey)) { + oldGroup = me.get(oldGroupKey); + if (oldGroup) { + oldGroup.remove(item); + if (!oldGroup.length) { + removeGroups = [oldGroup]; + } + } + } + if (addGroups) { + me.splice(0, removeGroups, addGroups); + } else { + if (removeGroups) { + me.splice(0, removeGroups); + } + } +}, createGroup:function(source, key) { + var group = new Ext.util.Group({groupKey:key, rootProperty:this.getItemRoot(), sorters:source.getSorters()}); + return group; +}, getKey:function(item) { + return item.getGroupKey(); +}, createSortFn:function() { + var me = this, grouper = me.getGrouper(), sorterFn = me.getSorters().getSortFn(); + if (!grouper) { + return sorterFn; + } + return function(lhs, rhs) { + return grouper.sort(lhs.items[0], rhs.items[0]) || sorterFn(lhs, rhs); + }; +}, updateGrouper:function(grouper) { + var me = this; + me.grouped = !!(grouper && me.$groupable.getAutoGroup()); + me.onSorterChange(); + me.onEndUpdateSorters(me.getSorters()); +}, destroy:function() { + this.$groupable = null; + this.callParent(); +}, privates:{findGroupForItem:function(item) { + var items = this.items, len = items.length, i, group; + for (i = 0; i < len; ++i) { + group = items[i]; + if (group.contains(item)) { + return group; + } + } +}}}); +Ext.define('Ext.data.Store', {extend:Ext.data.ProxyStore, alias:'store.store', mixins:[Ext.data.LocalStore], config:{data:0, clearRemovedOnLoad:true, clearOnPageLoad:true, associatedEntity:null, role:null, session:null}, addRecordsOptions:{addRecords:true}, loadCount:0, complete:false, moveMapCount:0, constructor:function(config) { + var me = this, data; + if (config) { + if (config.buffered) { + if (this.self !== Ext.data.Store) { + Ext.raise('buffered config not supported on derived Store classes. ' + 'Please derive from Ext.data.BufferedStore.'); + } + return new Ext.data.BufferedStore(config); + } + if (config.remoteGroup) { + Ext.log.warn('Ext.data.Store: remoteGroup has been removed. Use remoteSort instead.'); + } + } + me.callParent([config]); + me.getData().addObserver(me); + data = me.inlineData; + if (data) { + delete me.inlineData; + me.loadInlineData(data); + } +}, onCollectionBeginUpdate:function() { + this.beginUpdate(); +}, onCollectionEndUpdate:function() { + this.endUpdate(); +}, applyData:function(data, dataCollection) { + var me = this; + me.getFields(); + me.getModel(); + if (data && data.isCollection) { + dataCollection = data; + } else { + if (!dataCollection) { + dataCollection = me.constructDataCollection(); + } + if (data) { + if (me.isInitializing) { + me.inlineData = data; + } else { + me.loadData(data); + } + } + } + return dataCollection; +}, loadInlineData:function(data) { + var me = this, proxy = me.getProxy(); + if (proxy && proxy.isMemoryProxy) { + proxy.setData(data); + me.suspendEvents(); + me.read(); + me.resumeEvents(); + } else { + me.removeAll(true); + me.suspendEvents(); + me.loadData(data); + me.resumeEvents(); + } +}, onCollectionAdd:function(collection, info) { + this.onCollectionAddItems(collection, info.items, info); +}, onCollectionFilterAdd:function(collection, items) { + this.onCollectionAddItems(collection, items); +}, onCollectionAddItems:function(collection, records, info) { + var me = this, len = records.length, lastChunk = info ? !info.next : false, removed = me.removed, ignoreAdd = me.ignoreCollectionAdd, session = me.getSession(), replaced = info && info.replaced, i, sync, record, replacedItems; + for (i = 0; i < len; ++i) { + record = records[i]; + if (session) { + session.adopt(record); + } + if (!ignoreAdd) { + record.join(me); + if (removed && removed.length) { + Ext.Array.remove(removed, record); + } + sync = sync || record.phantom || record.dirty; + } + } + if (ignoreAdd) { + return; + } + if (replaced) { + replacedItems = []; + do { + Ext.Array.push(replacedItems, replaced.items); + replaced = replaced.next; + } while (replaced); + me.setMoving(replacedItems, true); + } + if (info) { + if (info.replaced) { + if (lastChunk) { + me.fireEvent('refresh', me); + } + } else { + me.fireEvent('add', me, records, info.at); + if (lastChunk) { + me.fireEvent('datachanged', me); + } + } + } + if (replacedItems) { + me.setMoving(replacedItems, false); + } + me.needsSync = me.needsSync || sync; +}, onCollectionFilteredItemChange:function() { + this.onCollectionItemChange.apply(this, arguments); +}, onCollectionItemChange:function(collection, info) { + var me = this, record = info.item, modifiedFieldNames = info.modified || null, type = info.meta; + if (me.fireChangeEvent(record)) { + me.onUpdate(record, type, modifiedFieldNames, info); + me.fireEvent('update', me, record, type, modifiedFieldNames, info); + } +}, fireChangeEvent:function(record) { + return this.getDataSource().contains(record); +}, afterChange:function(record, modifiedFieldNames, type) { + this.getData().itemChanged(record, modifiedFieldNames || null, undefined, type); +}, afterCommit:function(record, modifiedFieldNames) { + this.afterChange(record, modifiedFieldNames, Ext.data.Model.COMMIT); +}, afterEdit:function(record, modifiedFieldNames) { + this.needsSync = this.needsSync || record.dirty; + this.afterChange(record, modifiedFieldNames, Ext.data.Model.EDIT); +}, afterReject:function(record) { + this.afterChange(record, null, Ext.data.Model.REJECT); +}, afterDrop:function(record) { + this.getData().remove(record); +}, afterErase:function(record) { + this.removeFromRemoved(record); +}, addSorted:function(record) { + var me = this, remote = me.getRemoteSort(), data = me.getData(), index; + if (remote) { + data.setSorters(me.getSorters()); + } + index = data.findInsertionIndex(record); + if (remote) { + data.setSorters(null); + } + return me.insert(index, record); +}, remove:function(records, isMove, silent) { + var me = this, data = me.getDataSource(), len, i, toRemove, record; + if (records) { + if (records.isModel) { + if (data.indexOf(records) > -1) { + toRemove = [records]; + len = 1; + } else { + len = 0; + } + } else { + toRemove = []; + for (i = 0, len = records.length; i < len; ++i) { + record = records[i]; + if (record && record.isEntity) { + if (!data.contains(record)) { + continue; + } + } else { + if (!(record = data.getAt(record))) { + continue; + } + } + toRemove.push(record); + } + len = toRemove.length; + } + } + if (!len) { + return []; + } + me.removeIsMove = isMove === true; + me.removeIsSilent = silent; + data.remove(toRemove); + me.removeIsSilent = false; + return toRemove; +}, onCollectionRemove:function(collection, info) { + var me = this, removed = me.removed, records = info.items, len = records.length, index = info.at, replacement = info.replacement, isMove = me.removeIsMove || replacement && Ext.Array.equals(records, replacement.items), silent = me.removeIsSilent, lastChunk = !info.next, data = me.getDataSource(), i, record; + if (me.ignoreCollectionRemove) { + return; + } + if (replacement) { + me.setMoving(replacement.items, true); + } + for (i = 0; i < len; ++i) { + record = records[i]; + if (!data.contains(record)) { + if (removed && !isMove && !record.phantom && !record.erasing) { + record.removedFrom = index + i; + removed.push(record); + me.needsSync = true; + } else { + record.unjoin(me); + } + } + } + if (!silent) { + if (!replacement || !replacement.items.length) { + me.fireEvent('remove', me, records, index, isMove); + if (lastChunk) { + me.fireEvent('datachanged', me); + } + } + } + if (replacement) { + me.setMoving(replacement.items, false); + } +}, onFilterEndUpdate:function() { + this.callParent(arguments); + this.callObservers('Filter'); +}, removeAt:function(index, count) { + var data = this.getData(); + index = Math.max(index, 0); + if (index < data.length) { + if (arguments.length === 1) { + count = 1; + } else { + if (!count) { + return; + } + } + data.removeAt(index, count); + } +}, removeAll:function(silent) { + var me = this, data = me.getData(), hasClear = me.hasListeners.clear, records = data.getRange(); + if (data.length) { + me.removeIsSilent = true; + me.callObservers('BeforeRemoveAll'); + data.removeAll(); + me.removeIsSilent = false; + if (!silent) { + me.fireEvent('clear', me, records); + me.fireEvent('datachanged', me); + } + me.callObservers('AfterRemoveAll', [!!silent]); + } + return records; +}, setRecords:function(records) { + var count = this.getCount(); + ++this.loadCount; + if (count) { + this.getData().splice(0, count, records); + } else { + this.add(records); + } +}, splice:function(index, toRemove, toAdd) { + return this.getData().splice(index, toRemove, toAdd); +}, onProxyLoad:function(operation) { + var me = this, resultSet = operation.getResultSet(), records = operation.getRecords(), successful = operation.wasSuccessful(); + if (me.destroyed) { + return; + } + if (resultSet) { + me.totalCount = resultSet.getTotal(); + } + if (successful) { + records = me.processAssociation(records); + me.loadRecords(records, operation.getAddRecords() ? {addRecords:true} : undefined); + } else { + me.loading = false; + } + if (me.hasListeners.load) { + me.fireEvent('load', me, records, successful, operation); + } + me.callObservers('AfterLoad', [records, successful, operation]); +}, filterDataSource:function(fn) { + var source = this.getDataSource(), items = source.items, len = items.length, ret = [], i; + for (i = 0; i < len; i++) { + if (fn.call(source, items[i])) { + ret.push(items[i]); + } + } + return ret; +}, getNewRecords:function() { + return this.filterDataSource(this.filterNew); +}, getRejectRecords:function() { + return this.filterDataSource(this.filterRejects); +}, getUpdatedRecords:function() { + return this.filterDataSource(this.filterUpdated); +}, loadData:function(data, append) { + var me = this, length = data.length, newData = [], i; + for (i = 0; i < length; i++) { + newData.push(me.createModel(data[i])); + } + newData = me.processAssociation(newData); + me.loadRecords(newData, append ? me.addRecordsOptions : undefined); +}, loadRawData:function(data, append) { + var me = this, session = me.getSession(), result = me.getProxy().getReader().read(data, session ? {recordCreator:session.recordCreator} : undefined), records = result.getRecords(), success = result.getSuccess(); + if (success) { + me.totalCount = result.getTotal(); + me.loadRecords(records, append ? me.addRecordsOptions : undefined); + } + return success; +}, loadRecords:function(records, options) { + var me = this, length = records.length, data = me.getData(), addRecords, i, skipSort; + if (options) { + addRecords = options.addRecords; + } + if (!me.getRemoteSort() && !me.getSortOnLoad()) { + skipSort = true; + data.setAutoSort(false); + } + if (!addRecords) { + me.clearData(true); + } + me.loading = false; + me.ignoreCollectionAdd = true; + me.callObservers('BeforePopulate'); + data.add(records); + me.ignoreCollectionAdd = false; + if (skipSort) { + data.setAutoSort(true); + } + for (i = 0; i < length; i++) { + records[i].join(me); + } + ++me.loadCount; + me.complete = true; + me.fireEvent('datachanged', me); + me.fireEvent('refresh', me); + me.callObservers('AfterPopulate'); +}, loadPage:function(page, options) { + var me = this, size = me.getPageSize(); + me.currentPage = page; + options = Ext.apply({page:page, start:(page - 1) * size, limit:size, addRecords:!me.getClearOnPageLoad()}, options); + me.read(options); +}, nextPage:function(options) { + this.loadPage(this.currentPage + 1, options); +}, previousPage:function(options) { + this.loadPage(this.currentPage - 1, options); +}, clearData:function(isLoad) { + var me = this, removed = me.removed, data = me.getDataSource(), clearRemovedOnLoad = me.getClearRemovedOnLoad(), needsUnjoinCheck = removed && isLoad && !clearRemovedOnLoad, records, record, i, len; + if (data) { + records = data.items; + for (i = 0, len = records.length; i < len; ++i) { + record = records[i]; + if (needsUnjoinCheck && Ext.Array.contains(removed, record)) { + continue; + } + record.unjoin(me); + } + me.ignoreCollectionRemove = true; + me.callObservers('BeforeClear'); + data.removeAll(); + me.ignoreCollectionRemove = false; + me.callObservers('AfterClear'); + } + if (removed && (!isLoad || clearRemovedOnLoad)) { + removed.length = 0; + } +}, onIdChanged:function(rec, oldId, newId) { + this.getData().updateKey(rec, oldId); + this.fireEvent('idchanged', this, rec, oldId, newId); +}, commitChanges:function() { + var me = this, recs = me.getModifiedRecords(), len = recs.length, i = 0; + Ext.suspendLayouts(); + me.beginUpdate(); + for (; i < len; i++) { + recs[i].commit(); + } + me.cleanRemoved(); + me.endUpdate(); + Ext.resumeLayouts(true); +}, filterNewOnly:function(item) { + return item.phantom === true; +}, filterRejects:function(item) { + return item.phantom || item.dirty; +}, rejectChanges:function() { + var me = this, recs = me.getRejectRecords(), len = recs.length, i, rec, toRemove, sorted, data, currentAutoSort; + Ext.suspendLayouts(); + me.beginUpdate(); + for (i = 0; i < len; i++) { + rec = recs[i]; + if (rec.phantom) { + toRemove = toRemove || []; + toRemove.push(rec); + } else { + rec.reject(); + } + } + if (toRemove) { + me.remove(toRemove); + for (i = 0, len = toRemove.length; i < len; ++i) { + toRemove[i].reject(); + } + } + recs = me.getRawRemovedRecords(); + if (recs) { + len = recs.length; + sorted = !me.getRemoteSort() && me.isSorted(); + if (sorted) { + data = me.getData(); + currentAutoSort = data.getAutoSort(); + data.setAutoSort(false); + } + for (i = len - 1; i >= 0; i--) { + rec = recs[i]; + rec.reject(); + if (!sorted) { + me.insert(rec.removedFrom || 0, rec); + } + } + if (sorted) { + data.setAutoSort(currentAutoSort); + me.add(recs); + } + recs.length = 0; + } + me.endUpdate(); + Ext.resumeLayouts(true); +}, onDestroy:function() { + var me = this, task = me.loadTask, data = me.getData(), source = data.getSource(); + me.clearData(); + me.callParent(); + me.setSession(null); + me.observers = null; + if (task) { + task.cancel(); + me.loadTask = null; + } + if (source) { + source.destroy(); + } +}, privates:{fetch:function(options) { + options = Ext.apply({}, options); + this.setLoadOptions(options); + var operation = this.createOperation('read', options); + operation.execute(); +}, onBeforeLoad:function(operation) { + this.callObservers('BeforeLoad', [operation]); +}, onRemoteFilterSet:function(filters, remoteFilter) { + if (filters) { + this.getData().setFilters(remoteFilter ? null : filters); + } + this.callParent([filters, remoteFilter]); +}, onRemoteSortSet:function(sorters, remoteSort) { + var data = this.getData(); + if (sorters) { + data.setSorters(remoteSort ? null : sorters); + } + data.setAutoGroup(!remoteSort); + this.callParent([sorters, remoteSort]); +}, isMoving:function(records, getMap) { + var map = this.moveMap, moving = 0, len, i; + if (map) { + if (records) { + if (Ext.isArray(records)) { + for (i = 0, len = records.length; i < len; ++i) { + moving += map[records[i].id] ? 1 : 0; + } + } else { + if (map[records.id]) { + ++moving; + } + } + } else { + moving = getMap ? map : this.moveMapCount; + } + } + return moving; +}, setLoadOptions:function(options) { + var me = this, pageSize = me.getPageSize(), session, grouper; + if (me.getRemoteSort() && !options.grouper) { + grouper = me.getGrouper(); + if (grouper) { + options.grouper = grouper; + } + } + if (pageSize || 'start' in options || 'limit' in options || 'page' in options) { + options.page = options.page != null ? options.page : me.currentPage; + options.start = options.start !== undefined ? options.start : (options.page - 1) * pageSize; + options.limit = options.limit != null ? options.limit : pageSize; + me.currentPage = options.page; + } + options.addRecords = options.addRecords || false; + if (!options.recordCreator) { + session = me.getSession(); + if (session) { + options.recordCreator = session.recordCreator; + } + } + me.callParent([options]); +}, setMoving:function(records, isMoving) { + var me = this, map = me.moveMap || (me.moveMap = {}), len = records.length, i, id; + for (i = 0; i < len; ++i) { + id = records[i].id; + if (isMoving) { + if (map[id]) { + ++map[id]; + } else { + map[id] = 1; + ++me.moveMapCount; + } + } else { + if (--map[id] === 0) { + delete map[id]; + --me.moveMapCount; + } + } + } + if (me.moveMapCount === 0) { + me.moveMap = null; + } +}, processAssociation:function(records) { + var me = this, associatedEntity = me.getAssociatedEntity(); + if (associatedEntity) { + records = me.getRole().processLoad(me, associatedEntity, records, me.getSession()); + } + return records; +}}}); +Ext.define('Ext.data.reader.Array', {extend:Ext.data.reader.Json, alternateClassName:'Ext.data.ArrayReader', alias:'reader.array', config:{totalProperty:undefined, successProperty:undefined}, createFieldAccessor:function(field) { + var oldMap = field.mapping, index = field.hasMapping() ? oldMap : field.ordinal, result; + field.mapping = index; + result = this.callParent(arguments); + field.mapping = oldMap; + return result; +}, getModelData:function(raw) { + return {}; +}}); +Ext.define('Ext.data.ArrayStore', {extend:Ext.data.Store, alias:'store.array', alternateClassName:['Ext.data.SimpleStore'], config:{proxy:{type:'memory', reader:'array'}}, loadData:function(data, append) { + if (this.expandData) { + var r = [], i = 0, ln = data.length; + for (; i < ln; i++) { + r[r.length] = [data[i]]; + } + data = r; + } + this.callParent([data, append]); +}}); +Ext.define('Ext.data.StoreManager', {extend:Ext.util.MixedCollection, alternateClassName:['Ext.StoreMgr', 'Ext.data.StoreMgr', 'Ext.StoreManager'], singleton:true, register:function() { + for (var i = 0, s; s = arguments[i]; i++) { + this.add(s); + } +}, unregister:function() { + for (var i = 0, s; s = arguments[i]; i++) { + this.remove(this.lookup(s)); + } +}, lookup:function(store, defaultType) { + if (Ext.isArray(store)) { + var fields = ['field1'], expand = !Ext.isArray(store[0]), data = store, i, len; + if (expand) { + data = []; + for (i = 0, len = store.length; i < len; ++i) { + data.push([store[i]]); + } + } else { + for (i = 2, len = store[0].length; i <= len; ++i) { + fields.push('field' + i); + } + } + return new Ext.data.ArrayStore({data:data, fields:fields, autoDestroy:true, autoCreated:true, expanded:expand}); + } + if (Ext.isString(store)) { + return this.get(store); + } else { + return Ext.Factory.store(store, defaultType); + } +}, getKey:function(o) { + return o.storeId; +}}, function() { + Ext.regStore = function(name, config) { + var store; + if (Ext.isObject(name)) { + config = name; + } else { + if (Ext.data.StoreManager.containsKey(name)) { + return Ext.data.StoreManager.lookup(name); + } + config.storeId = name; + } + if (config instanceof Ext.data.Store) { + store = config; + } else { + store = new Ext.data.Store(config); + } + Ext.data.StoreManager.register(store); + return store; + }; + Ext.getStore = function(name) { + return Ext.data.StoreManager.lookup(name); + }; + var emptyStore = Ext.regStore('ext-empty-store', {proxy:'memory', useModelWarning:false}); + emptyStore.isEmptyStore = true; + emptyStore.add = emptyStore.remove = emptyStore.insert = emptyStore.loadData = function() { + Ext.raise('Cannot modify ext-empty-store'); + }; +}); +Ext.define('Ext.app.domain.Store', {extend:Ext.app.EventDomain, singleton:true, type:'store', prefix:'store.', idMatchRe:/^\#/, constructor:function() { + var me = this; + me.callParent(); + me.monitor(Ext.data.AbstractStore); +}, match:function(target, selector) { + var result = false, alias = target.alias; + if (selector === '*') { + result = true; + } else { + if (this.idMatchRe.test(selector)) { + result = target.getStoreId() === selector.substring(1); + } else { + if (alias) { + result = Ext.Array.indexOf(alias, this.prefix + selector) > -1; + } + } + } + return result; +}}); +Ext.define('Ext.app.route.Queue', {queue:null, token:null, constructor:function(config) { + Ext.apply(this, config); + this.queue = new Ext.util.MixedCollection; +}, queueAction:function(route, args) { + this.queue.add({route:route, args:args}); +}, clearQueue:function() { + this.queue.removeAll(); +}, runQueue:function() { + var queue = this.queue, action = queue.removeAt(0), route; + if (action) { + route = action && action.route; + route.execute(this.token, action.args, this.onActionExecute, this); + } +}, onActionExecute:function(clearQueue) { + if (clearQueue) { + this.clearQueue(); + } else { + this.runQueue(); + } +}}); +Ext.define('Ext.app.route.Route', {action:null, conditions:null, controller:null, allowInactive:false, url:null, before:null, caseInsensitive:false, matcherRegex:null, paramMatchingRegex:null, paramsInMatchString:null, constructor:function(config) { + var me = this, url; + Ext.apply(me, config, {conditions:{}}); + url = me.url; + me.paramMatchingRegex = new RegExp(/:([0-9A-Za-z\_]*)/g); + me.paramsInMatchString = url.match(me.paramMatchingRegex) || []; + me.matcherRegex = me.createMatcherRegex(url); +}, recognize:function(url) { + var me = this, controller = me.controller, matches, args; + if ((me.allowInactive || controller.isActive()) && me.recognizes(url)) { + matches = me.matchesFor(url); + args = url.match(me.matcherRegex); + args.shift(); + return Ext.applyIf(matches, {controller:controller, action:me.action, historyUrl:url, args:args}); + } + return false; +}, recognizes:function(url) { + return this.matcherRegex.test(url); +}, execute:function(token, argConfig, callback, scope) { + var args = argConfig.args || [], before = this.before, controller = this.controller, beforeCallback = this.createCallback(argConfig, callback, scope); + if (before) { + args.push(beforeCallback); + if (Ext.isString(before)) { + before = this.before = controller[before]; + } + if (before) { + before.apply(controller, args); + } else { + Ext.log.warn('The before action: ' + this.before + ' was not found on the controller. The action method will not be executed.'); + } + } else { + beforeCallback.resume(); + } +}, matchesFor:function(url) { + var params = {}, keys = this.paramsInMatchString, values = url.match(this.matcherRegex), i = 0, len = keys.length; + values.shift(); + for (; i < len; i++) { + params[keys[i].replace(':', '')] = values[i]; + } + return params; +}, createMatcherRegex:function(url) { + var paramsInMatchString = this.paramsInMatchString, conditions = this.conditions, i = 0, len = paramsInMatchString.length, format = Ext.util.Format.format, modifiers = this.caseInsensitive ? 'i' : '', params, cond, matcher; + for (; i < len; i++) { + params = paramsInMatchString[i]; + cond = conditions[params]; + matcher = format('{0}', cond || '([%a-zA-Z0-9\\-\\_\\s,]+)'); + url = url.replace(new RegExp(params), matcher); + } + return new RegExp('^' + url + '$', modifiers); +}, createCallback:function(args, callback, scope) { + var me = this; + scope = scope || me; + return {resume:function() { + var controller = me.controller, action = me.action, resume; + if (Ext.isString(action)) { + action = controller[action]; + } + args = args && args.args ? args.args : []; + resume = args.pop(); + if (resume && !Ext.isObject(resume)) { + args.push(resume); + } + if (action) { + me.action = action; + action.apply(controller, args); + } else { + Ext.log.warn('The action: ' + me.action + ' was not found on the controller.'); + } + if (callback) { + callback.call(scope); + } + }, stop:function(all) { + if (callback) { + callback.call(scope, all); + } + }}; +}}); +Ext.define('Ext.util.History', {singleton:true, alternateClassName:'Ext.History', mixins:{observable:Ext.util.Observable}, useTopWindow:false, constructor:function() { + var me = this; + me.hiddenField = null; + me.ready = false; + me.currentToken = null; + me.mixins.observable.constructor.call(me); +}, getHash:function() { + return this.win.location.hash.substr(1); +}, setHash:function(hash) { + try { + this.win.location.hash = hash; + this.currentToken = hash; + } catch (e$22) { + } +}, handleStateChange:function(token) { + this.currentToken = token; + this.fireEvent('change', token); +}, startUp:function() { + var me = this; + me.currentToken = me.getHash(); + if (Ext.supports.Hashchange) { + Ext.get(me.win).on('hashchange', me.onHashChange, me); + } else { + Ext.TaskManager.start({fireIdleEvent:false, run:me.onHashChange, interval:50, scope:me}); + } + me.ready = true; + me.fireEvent('ready', me); +}, onHashChange:function() { + var me = this, newHash = me.getHash(); + if (newHash !== me.hash) { + me.hash = newHash; + me.handleStateChange(newHash); + } +}, init:function(onReady, scope) { + var me = this; + if (me.ready) { + Ext.callback(onReady, scope, [me]); + return; + } + if (!Ext.isReady) { + Ext.onInternalReady(function() { + me.init(onReady, scope); + }); + return; + } + me.win = me.useTopWindow ? window.top : window; + me.hash = me.getHash(); + if (onReady) { + me.on('ready', onReady, scope, {single:true}); + } + me.startUp(); +}, add:function(token, preventDuplicates) { + var me = this, set = false; + if (preventDuplicates === false || me.getToken() !== token) { + me.setHash(token); + set = true; + } + return set; +}, back:function() { + var win = this.useTopWindow ? window.top : window; + win.history.go(-1); +}, forward:function() { + var win = this.useTopWindow ? window.top : window; + win.history.go(1); +}, getToken:function() { + return this.ready ? this.currentToken : this.getHash(); +}}); +Ext.define('Ext.app.route.Router', {singleton:true, multipleToken:'|', queueRoutes:true, constructor:function() { + var History = Ext.util.History; + if (!History.ready) { + History.init(); + } + History.on('change', this.onStateChange, this); + this.clear(); +}, onStateChange:function(token) { + var me = this, app = me.application, routes = me.routes, len = routes.length, queueRoutes = me.queueRoutes, tokens = token.split(me.multipleToken), t = 0, length = tokens.length, i, queue, route, args, matched; + for (; t < length; t++) { + token = tokens[t]; + matched = false; + if (queueRoutes) { + queue = new Ext.app.route.Queue({token:token}); + } + for (i = 0; i < len; i++) { + route = routes[i]; + args = route.recognize(token); + if (args) { + matched = true; + if (queueRoutes) { + queue.queueAction(route, args); + } else { + route.execute(token, args); + } + } + } + if (queueRoutes) { + queue.runQueue(); + } + if (!matched && app) { + app.fireEvent('unmatchedroute', token); + } + } +}, connect:function(url, action, controller) { + var config = {url:url, action:action, controller:controller}; + if (Ext.isObject(action)) { + Ext.merge(config, action); + } + this.routes.push(new Ext.app.route.Route(config)); +}, disconnectAll:function(controller) { + var routes = this.routes, len = routes.length, newRoutes = [], i, route; + for (i = 0; i < len; ++i) { + route = routes[i]; + if (route.controller !== controller) { + newRoutes.push(route); + } + } + this.routes = newRoutes; +}, recognize:function(url) { + var routes = this.routes || [], i = 0, len = routes.length, route, args; + for (; i < len; i++) { + route = routes[i]; + args = route.recognize(url); + if (args) { + return {route:route, args:args}; + } + } + return false; +}, draw:function(fn) { + fn.call(this, this); +}, clear:function() { + this.routes = []; +}}); +Ext.define('Ext.app.Controller', {extend:Ext.app.BaseController, statics:{strings:{model:{getter:'getModel', upper:'Model'}, view:{getter:'getView', upper:'View'}, controller:{getter:'getController', upper:'Controller'}, store:{getter:'getStore', upper:'Store'}, profile:{getter:'getProfile', upper:'Profiles'}}, controllerRegex:/^(.*)\.controller\./, profileRegex:/^(.*)\.profile\./, createGetter:function(baseGetter, name) { + return function() { + return this[baseGetter](name); + }; +}, getGetterName:function(name, kindUpper) { + var fn = 'get', parts = name.split('.'), numParts = parts.length, index; + for (index = 0; index < numParts; index++) { + fn += Ext.String.capitalize(parts[index]); + } + fn += kindUpper; + return fn; +}, resolveNamespace:function(cls, data) { + var Controller = Ext.app.Controller, namespaceRe = cls.prototype.isProfile ? Controller.profileRegex : Controller.controllerRegex, className, namespace, match; + className = Ext.getClassName(cls); + namespace = data.$namespace || data.namespace || Ext.app.getNamespace(className) || (match = namespaceRe.exec(className)) && match[1]; + if (!namespace) { + Ext.log.warn('Missing namespace for ' + className + ', please define it ' + 'in namespaces property of your Application class.'); + } + return namespace; +}, processDependencies:function(cls, requires, namespace, kind, names, profileName) { + if (!names || !names.length) { + return; + } + var me = this, strings = me.strings[kind], o, absoluteName, shortName, name, j, subLn, getterName, getter; + if (!Ext.isArray(names)) { + names = [names]; + } + for (j = 0, subLn = names.length; j < subLn; j++) { + name = names[j]; + o = me.getFullName(name, kind, namespace, profileName); + names[j] = absoluteName = o.absoluteName; + shortName = o.shortName; + requires.push(absoluteName); + getterName = me.getGetterName(shortName, strings.upper); + if (!cls[getterName]) { + cls[getterName] = getter = me.createGetter(strings.getter, name); + } else { + if (getterName === 'getMainView') { + Ext.log.warn("Cannot have a view named 'Main' - getter conflicts with mainView config."); + } + } + if (getter && kind !== 'controller') { + getter['Ext.app.getter'] = true; + } + } +}, getFullName:function(name, kind, namespace, profileName) { + var shortName = name, sep, absoluteName; + if ((sep = name.indexOf('@')) > 0) { + shortName = name.substring(0, sep); + absoluteName = name.substring(sep + 1) + '.' + shortName; + } else { + if (name.indexOf('.') > 0 && (Ext.ClassManager.isCreated(name) || this.hasRegisteredPrefix(name))) { + absoluteName = name; + } else { + if (!namespace) { + Ext.log.warn('Cannot find namespace for ' + kind + ' ' + name + ', ' + 'assuming it is fully qualified class name'); + } + if (namespace) { + absoluteName = namespace + '.' + kind + '.' + (profileName ? profileName + '.' + name : name); + shortName = name; + } else { + absoluteName = name; + } + } + } + return {absoluteName:absoluteName, shortName:shortName}; +}, hasRegisteredPrefix:function(className) { + var inventory = Ext.ClassManager, prefix = inventory.getPrefix(className); + return prefix && prefix !== className; +}}, models:null, views:null, stores:null, controllers:null, config:{application:null, refs:null, active:true, moduleClassName:null}, onClassExtended:function(cls, data, hooks) { + var onBeforeClassCreated = hooks.onBeforeCreated; + hooks.onBeforeCreated = function(cls, data) { + var Controller = Ext.app.Controller, requires = [], namespace, proto; + proto = cls.prototype; + namespace = Controller.resolveNamespace(cls, data); + if (namespace) { + proto.$namespace = namespace; + } + Controller.processDependencies(proto, requires, namespace, 'model', data.models); + Controller.processDependencies(proto, requires, namespace, 'view', data.views); + Controller.processDependencies(proto, requires, namespace, 'store', data.stores); + Controller.processDependencies(proto, requires, namespace, 'controller', data.controllers); + Ext.require(requires, Ext.Function.pass(onBeforeClassCreated, arguments, this)); + }; +}, constructor:function(config) { + this.initAutoGetters(); + this.callParent(arguments); +}, normalizeRefs:function(refs) { + var me = this, newRefs = []; + if (refs) { + if (Ext.isObject(refs)) { + Ext.Object.each(refs, function(key, value) { + if (Ext.isString(value)) { + value = {selector:value}; + } + value.ref = key; + newRefs.push(value); + }); + } else { + if (Ext.isArray(refs)) { + newRefs = Ext.Array.merge(newRefs, refs); + } + } + } + refs = me.refs; + if (refs) { + me.refs = null; + refs = me.normalizeRefs(refs); + if (refs) { + newRefs = Ext.Array.merge(newRefs, refs); + } + } + return newRefs; +}, getRefMap:function() { + var me = this, refMap = me._refMap, refs, ref, ln, i; + if (!refMap) { + refs = me.getRefs(); + refMap = me._refMap = {}; + if (refs) { + for (i = 0, ln = refs.length; i < ln; i++) { + ref = refs[i]; + refMap[ref.ref] = ref.selector; + } + } + } + return refMap; +}, applyRefs:function(refs) { + return this.normalizeRefs(Ext.clone(refs)); +}, updateRefs:function(refs) { + if (refs) { + this.ref(refs); + } +}, initAutoGetters:function() { + var proto = this.self.prototype, prop, fn; + for (prop in proto) { + fn = proto[prop]; + if (fn && fn['Ext.app.getter']) { + fn.call(this); + } + } +}, doInit:function(app) { + var me = this; + if (!me._initialized) { + me.init(app); + me._initialized = true; + } +}, finishInit:function(app) { + var me = this, controllers = me.controllers, controller, i, l; + if (me._initialized && controllers && controllers.length) { + for (i = 0, l = controllers.length; i < l; i++) { + controller = me.getController(controllers[i]); + controller.finishInit(app); + } + } +}, init:Ext.emptyFn, onLaunch:Ext.emptyFn, activate:function() { + this.setActive(true); +}, deactivate:function() { + this.setActive(false); +}, isActive:function() { + return this.getActive(); +}, ref:function(refs) { + var me = this, i = 0, length = refs.length, info, ref, fn; + refs = Ext.Array.from(refs); + me.references = me.references || []; + for (; i < length; i++) { + info = refs[i]; + ref = info.ref; + fn = 'get' + Ext.String.capitalize(ref); + if (!me[fn]) { + me[fn] = Ext.Function.pass(me.getRef, [ref, info], me); + } + me.references.push(ref.toLowerCase()); + } +}, addRef:function(refs) { + this.ref(refs); +}, getRef:function(ref, info, config) { + var me = this, refCache = me.refCache || (me.refCache = {}), cached = refCache[ref]; + info = info || {}; + config = config || {}; + Ext.apply(info, config); + if (info.forceCreate) { + return Ext.ComponentManager.create(info, 'component'); + } + if (!cached) { + if (info.selector) { + refCache[ref] = cached = Ext.ComponentQuery.query(info.selector)[0]; + } + if (!cached && info.autoCreate) { + refCache[ref] = cached = Ext.ComponentManager.create(info, 'component'); + } + if (cached) { + cached.on('beforedestroy', function() { + refCache[ref] = null; + }); + } + } + return cached; +}, hasRef:function(ref) { + var references = this.references; + return references && Ext.Array.indexOf(references, ref.toLowerCase()) !== -1; +}, getController:function(id) { + var app = this.getApplication(); + if (id === this.getId()) { + return this; + } + return app && app.getController(id); +}, getStore:function(name) { + var storeId, store; + storeId = name.indexOf('@') === -1 ? name : name.split('@')[0]; + store = Ext.StoreManager.get(storeId); + if (!store) { + name = Ext.app.Controller.getFullName(name, 'store', this.$namespace); + if (name) { + store = Ext.create(name.absoluteName, {id:storeId}); + } + } + return store; +}, getModel:function(model) { + var name = Ext.app.Controller.getFullName(model, 'model', this.$namespace), ret = Ext.ClassManager.get(name.absoluteName); + if (!ret) { + ret = Ext.data.schema.Schema.lookupEntity(model); + } + return ret; +}, getProfile:function(name) { + name = Ext.app.Controller.getFullName(name, 'profile', this.$namespace); + return name; +}, getView:function(view) { + var name = Ext.app.Controller.getFullName(view, 'view', this.$namespace); + return name && Ext.ClassManager.get(name.absoluteName); +}, ensureId:function() { + var id = this.getId(); + if (!id) { + this.setId(this.getModuleClassName(this.$className, 'controller')); + } +}, destroy:function(destroyRefs, fromApp) { + var me = this, app = me.application, refCache, ref; + if (!fromApp && app) { + app.unregister(me); + } + me.application = null; + if (destroyRefs) { + refCache = me.refCache; + for (ref in refCache) { + if (refCache.hasOwnProperty(ref)) { + Ext.destroy(refCache[ref]); + } + } + } + me.callParent(); +}}); +Ext.define('Ext.app.Application', {extend:Ext.app.Controller, isApplication:true, scope:undefined, namespaces:[], paths:null, config:{name:'', appProperty:'app', profiles:[], currentProfile:null, mainView:{$value:null, lazy:true}, defaultToken:null, glyphFontFamily:null}, onClassExtended:function(cls, data, hooks) { + var Controller = Ext.app.Controller, proto = cls.prototype, requires = [], onBeforeClassCreated, paths, namespace, ns; + namespace = data.name || cls.superclass.name; + if (namespace) { + data.$namespace = namespace; + Ext.app.addNamespaces(namespace); + } + if (data.namespaces) { + Ext.app.addNamespaces(data.namespaces); + } + if (data['paths processed']) { + delete data['paths processed']; + } else { + Ext.app.setupPaths(namespace, 'appFolder' in data ? data.appFolder : cls.superclass.appFolder, data.paths); + } + Controller.processDependencies(proto, requires, namespace, 'profile', data.profiles); + proto.getDependencies(cls, data, requires); + if (requires.length) { + onBeforeClassCreated = hooks.onBeforeCreated; + hooks.onBeforeCreated = function(cls, data) { + var args = Ext.Array.clone(arguments); + Ext.require(requires, function() { + return onBeforeClassCreated.apply(this, args); + }); + }; + } +}, getDependencies:Ext.emptyFn, constructor:function(config) { + var me = this; + Ext.app.route.Router.application = me; + me.callParent(arguments); + if (Ext.isEmpty(me.getName())) { + Ext.raise('[Ext.app.Application] Name property is required'); + } + me.doInit(me); + me.initNamespace(); + Ext.on('appupdate', me.onAppUpdate, me, {single:true}); + Ext.Loader.setConfig({enabled:true}); + this.onProfilesReady(); +}, onAppUpdate:Ext.emptyFn, onProfilesReady:function() { + var me = this, profiles = me.getProfiles(), length = profiles.length, current, i, instance; + for (i = 0; i < length; i++) { + instance = Ext.create(profiles[i], {application:me}); + if (instance.isActive() && !current) { + current = instance; + me.setCurrentProfile(current); + } + } + if (current) { + current.init(); + } + me.initControllers(); + me.onBeforeLaunch(); + me.finishInitControllers(); +}, initNamespace:function() { + var me = this, appProperty = me.getAppProperty(), ns; + ns = Ext.namespace(me.getName()); + if (ns) { + ns.getApplication = function() { + return me; + }; + if (appProperty) { + if (!ns[appProperty]) { + ns[appProperty] = me; + } else { + if (ns[appProperty] !== me) { + Ext.log.warn('An existing reference is being overwritten for ' + name + '.' + appProperty + '. See the appProperty config.'); + } + } + } + } +}, initControllers:function() { + var me = this, controllers = Ext.Array.from(me.controllers), profile = me.getCurrentProfile(), i, ln; + me.controllers = new Ext.util.MixedCollection; + for (i = 0, ln = controllers.length; i < ln; i++) { + me.getController(controllers[i]); + } + if (profile) { + controllers = profile.getControllers(); + for (i = 0, ln = controllers.length; i < ln; i++) { + me.getController(controllers[i]); + } + } +}, finishInitControllers:function() { + var me = this, controllers, i, l; + controllers = me.controllers.getRange(); + for (i = 0, l = controllers.length; i < l; i++) { + controllers[i].finishInit(me); + } +}, launch:Ext.emptyFn, onBeforeLaunch:function() { + var me = this, History = Ext.util.History, defaultToken = me.getDefaultToken(), currentProfile = me.getCurrentProfile(), controllers, c, cLen, controller, token; + me.initMainView(); + if (currentProfile) { + currentProfile.launch(); + } + me.launch.call(me.scope || me); + me.launched = true; + me.fireEvent('launch', me); + controllers = me.controllers.items; + cLen = controllers.length; + for (c = 0; c < cLen; c++) { + controller = controllers[c]; + controller.onLaunch(me); + } + if (!History.ready) { + History.init(); + } + token = History.getToken(); + if (token || token === defaultToken) { + Ext.app.route.Router.onStateChange(token); + } else { + if (defaultToken) { + History.add(defaultToken); + } + } + if (Ext.Microloader && Ext.Microloader.appUpdate && Ext.Microloader.appUpdate.updated) { + Ext.Microloader.fireAppUpdate(); + } + Ext.defer(Ext.ClassManager.clearNamespaceCache, 2000, Ext.ClassManager); +}, getModuleClassName:function(name, kind) { + return Ext.app.Controller.getFullName(name, kind, this.getName()).absoluteName; +}, initMainView:function() { + var me = this, currentProfile = me.getCurrentProfile(), mainView; + if (currentProfile) { + mainView = currentProfile.getMainView(); + } + if (mainView) { + me.setMainView(mainView); + } else { + me.getMainView(); + } +}, applyMainView:function(value) { + var view = this.getView(value); + return view.create(); +}, createController:function(name) { + return this.getController(name); +}, destroyController:function(controller) { + if (typeof controller === 'string') { + controller = this.getController(controller, true); + } + Ext.destroy(controller); +}, getController:function(name, preventCreate) { + var me = this, controllers = me.controllers, className, controller, len, i, c, all; + controller = controllers.get(name); + if (!controller) { + all = controllers.items; + for (i = 0, len = all.length; i < len; ++i) { + c = all[i]; + className = c.getModuleClassName(); + if (className && className === name) { + controller = c; + break; + } + } + } + if (!controller && !preventCreate) { + className = me.getModuleClassName(name, 'controller'); + controller = Ext.create(className, {application:me, moduleClassName:name}); + controllers.add(controller); + if (me._initialized) { + controller.doInit(me); + } + } + return controller; +}, unregister:function(controller) { + this.controllers.remove(controller); +}, getApplication:function() { + return this; +}, destroy:function(destroyRefs) { + var me = this, controllers = me.controllers, ns = Ext.namespace(me.getName()), appProp = me.getAppProperty(); + Ext.destroy(me.viewport); + if (controllers) { + controllers.each(function(controller) { + controller.destroy(destroyRefs, true); + }); + } + me.controllers = null; + me.callParent([destroyRefs, true]); + if (ns && ns[appProp] === me) { + delete ns[appProp]; + } +}, updateGlyphFontFamily:function(fontFamily) { + Ext.setGlyphFontFamily(fontFamily); +}, applyProfiles:function(profiles) { + var me = this; + return Ext.Array.map(profiles, function(profile) { + return me.getModuleClassName(profile, 'profile'); + }); +}}); +Ext.application = function(config) { + var createApp = function(App) { + Ext.onReady(function() { + var Viewport = Ext.viewport; + Viewport = Viewport && Viewport['Viewport']; + if (Viewport && Viewport.setup) { + Viewport.setup(App.prototype.config.viewport); + } + Ext.app.Application.instance = new App; + }); + }; + if (typeof config === 'string') { + Ext.require(config, function() { + createApp(Ext.ClassManager.get(config)); + }); + } else { + config = Ext.apply({extend:'Ext.app.Application'}, config); + Ext.app.setupPaths(config.name, config.appFolder, config.paths); + config['paths processed'] = true; + Ext.define(config.name + '.$application', config, function() { + createApp(this); + }); + } +}; +Ext.define('Ext.overrides.app.Application', {override:'Ext.app.Application', autoCreateViewport:false, config:{enableQuickTips:true}, applyMainView:function(mainView) { + var view, proto, config, plugins; + if (typeof mainView === 'string') { + view = this.getView(mainView); + } else { + view = Ext.ClassManager.getByConfig(mainView); + } + proto = view.prototype; + if (!proto.isViewport) { + plugins = proto.plugins; + plugins = ['viewport'].concat(plugins ? Ext.Array.from(plugins, true) : []); + config = {plugins:plugins}; + } + return view.create(config); +}, getDependencies:function(cls, data, requires) { + var Controller = Ext.app.Controller, proto = cls.prototype, namespace = data.$namespace, viewportClass = data.autoCreateViewport; + if (viewportClass) { + if (!namespace) { + Ext.raise("[Ext.app.Application] Can't resolve namespace for " + data.$className + ", did you forget to specify 'name' property?"); + } + if (viewportClass === true) { + viewportClass = 'Viewport'; + } else { + requires.push('Ext.plugin.Viewport'); + } + Controller.processDependencies(proto, requires, namespace, 'view', viewportClass); + } +}, onBeforeLaunch:function() { + var me = this, autoCreateViewport = me.autoCreateViewport; + if (me.getEnableQuickTips()) { + me.initQuickTips(); + } + if (autoCreateViewport) { + me.initViewport(); + } + this.callParent(arguments); +}, getViewportName:function() { + var name = null, autoCreate = this.autoCreateViewport; + if (autoCreate) { + name = autoCreate === true ? 'Viewport' : autoCreate; + } + return name; +}, initViewport:function() { + this.setMainView(this.getViewportName()); +}, initQuickTips:function() { + Ext.tip.QuickTipManager.init(); +}}); +Ext.define('Ext.app.domain.View', {extend:Ext.app.EventDomain, isInstance:true, constructor:function(controller) { + this.callParent(arguments); + this.controller = controller; + this.monitoredClasses = [Ext.Component]; +}, match:function(target, selector, controller) { + var out = false; + if (selector === '#') { + out = controller === target.getController(); + } else { + out = target.is(selector); + } + return out; +}, destroy:function() { + this.controller = null; + this.callParent(); +}}); +Ext.define('Ext.app.ViewController', {extend:Ext.app.BaseController, mixins:[Ext.mixin.Factoryable], isViewController:true, factoryConfig:{type:'controller'}, config:{closeViewAction:'destroy'}, view:null, constructor:function() { + this.compDomain = new Ext.app.domain.View(this); + this.callParent(arguments); +}, beforeInit:Ext.emptyFn, init:Ext.emptyFn, initViewModel:Ext.emptyFn, destroy:function() { + var me = this, domain = me.compDomain; + if (domain) { + domain.unlisten(me); + domain.destroy(); + } + me.compDomain = me.view = null; + me.callParent(); +}, closeView:function() { + var view = this.getView(), action; + if (view) { + action = this.getCloseViewAction(); + view[action](); + } +}, control:function(selectors, listeners) { + var obj = selectors; + if (Ext.isString(selectors)) { + obj = {}; + obj[selectors] = listeners; + } + this.compDomain.listen(obj, this); +}, listen:function(to, controller) { + var component = to.component; + if (component) { + to = Ext.apply({}, to); + delete to.component; + this.control(component); + } + this.callParent([to, controller]); +}, getReferences:function() { + var view = this.view; + return view && view.getReferences(); +}, getView:function() { + return this.view; +}, lookup:function(key) { + var view = this.view; + return view && view.lookup(key); +}, lookupReference:function(key) { + return this.lookup(key); +}, getSession:function() { + var view = this.view; + return view && view.lookupSession(); +}, getViewModel:function() { + var view = this.view; + return view && view.lookupViewModel(); +}, getStore:function(name) { + var viewModel = this.getViewModel(); + return viewModel ? viewModel.getStore(name) : null; +}, fireViewEvent:function(eventName, firstArg) { + var view = this.view, result = false, args = arguments; + if (view) { + if (view !== firstArg) { + args = Ext.Array.slice(args); + args.splice(1, 0, view); + } + result = view.fireEvent.apply(view, args); + } + return result; +}, privates:{view:null, ensureId:function() { + var id = this.getId(); + if (!id) { + this.setId(Ext.id(null, 'controller-')); + } +}, attachReference:function(component) { + var view = this.view; + if (view) { + view.attachReference(component); + } +}, clearReference:function(ref) { + var view = this.view; + if (view) { + view.clearReference(ref); + } +}, clearReferences:function() { + var view = this.view; + if (view) { + view.clearReferences(); + } +}, setView:function(view) { + this.view = view; + if (!this.beforeInit.$nullFn) { + this.beforeInit(view); + } +}}}); +Ext.define('Ext.util.Bag', {isBag:true, constructor:function() { + this.items = []; + this.map = {}; +}, generation:0, length:0, add:function(item) { + var me = this, id = me.getKey(item), map = me.map, items = me.items, idx = map[id], old; + if (idx === undefined) { + items.push(item); + map[id] = me.length++; + old = item; + } else { + old = items[idx]; + items[idx] = item; + } + ++me.generation; + return old; +}, clear:function() { + var me = this, needsClear = me.generation || me.length, ret = needsClear ? me.items : []; + if (needsClear) { + me.items = []; + me.length = 0; + me.map = {}; + ++me.generation; + } + return ret; +}, clone:function() { + var me = this, ret = new me.self, len = me.length; + if (len) { + Ext.apply(ret.map, me.map); + ret.items = me.items.slice(); + ret.length = me.length; + } + return ret; +}, contains:function(item) { + var ret = false, map = this.map, key; + if (item != null) { + key = this.getKey(item); + if (key in map) { + ret = this.items[map[key]] === item; + } + } + return ret; +}, containsKey:function(key) { + return key in this.map; +}, destroy:function() { + this.items = this.map = null; + this.callParent(); +}, getAt:function(index) { + var out = null; + if (index < this.length) { + out = this.items[index]; + } + return out; +}, getByKey:function(key) { + var map = this.map, ret = null; + if (key in map) { + ret = this.items[map[key]]; + } + return ret; +}, getCount:function() { + return this.length; +}, getKey:function(item) { + return item.id || item.getId(); +}, remove:function(item) { + var me = this, map = me.map, items = me.items, old = null, idx, id, last; + if (me.length) { + idx = map[id = me.getKey(item)]; + if (idx !== undefined) { + delete map[id]; + old = items[idx]; + last = items.pop(); + if (idx < --me.length) { + items[idx] = last; + map[me.getKey(last)] = idx; + } + ++me.generation; + } + } + return old; +}, removeByKey:function(key) { + var item = this.getByKey(key); + if (item) { + this.remove(item); + } + return item || null; +}, sort:function(fn) { + var me = this, items = me.items, n = items.length, item; + if (n) { + Ext.Array.sort(items, fn); + me.map = {}; + while (n-- > 0) { + item = items[n]; + me.map[me.getKey(item)] = n; + } + ++me.generation; + } +}}); +Ext.define('Ext.util.Scheduler', {mixins:[Ext.mixin.Observable], busyCounter:0, lastBusyCounter:0, destroyed:false, firing:null, notifyIndex:-1, nextId:0, orderedItems:null, passes:0, scheduledCount:0, validIdRe:null, config:{cycleLimit:5, preSort:null, tickDelay:5}, suspendOnNotify:true, constructor:function(config) { + if (Ext.util.Scheduler.instances) { + Ext.util.Scheduler.instances.push(this); + } else { + Ext.util.Scheduler.instances = [this]; + } + this.id = Ext.util.Scheduler.count = (Ext.util.Scheduler.count || 0) + 1; + this.mixins.observable.constructor.call(this, config); + this.items = new Ext.util.Bag; +}, destroy:function() { + var me = this, timer = me.timer; + if (timer) { + window.clearTimeout(timer); + me.timer = null; + } + me.items.destroy(); + me.items = me.orderedItems = null; + me.callParent(); + Ext.Array.remove(Ext.util.Scheduler.instances, this); +}, add:function(item) { + var me = this, items = me.items; + if (items === me.firing) { + me.items = items = items.clone(); + } + item.id = item.id || ++me.nextId; + item.scheduler = me; + items.add(item); + if (!me.sortMap) { + me.orderedItems = null; + } +}, remove:function(item) { + var me = this, items = me.items; + if (me.destroyed) { + return; + } + if (me.sortMap) { + Ext.raise('Items cannot be removed during sort'); + } + if (items === me.firing) { + me.items = items = items.clone(); + } + if (item.scheduled) { + me.unscheduleItem(item); + item.scheduled = false; + } + items.remove(item); + me.orderedItems = null; +}, sort:function() { + var me = this, items = me.items, sortMap = {}, preSort = me.getPreSort(), i, item; + me.orderedItems = []; + me.sortMap = sortMap; + me.sortStack = []; + if (preSort) { + items.sort(preSort); + } + items = items.items; + for (i = 0; i < items.length; ++i) { + item = items[i]; + if (!sortMap[item.id]) { + me.sortItem(item); + } + } + me.sortMap = null; + me.sortStack = null; +}, sortItem:function(item) { + var me = this, sortMap = me.sortMap, orderedItems = me.orderedItems, itemId; + if (!item.scheduler) { + me.add(item); + } + itemId = item.id; + if (item.scheduler !== me) { + Ext.raise('Item ' + itemId + ' belongs to another Scheduler'); + } + me.sortStack.push(item); + if (sortMap[itemId] === 0) { + for (var cycle = [], i = 0; i < me.sortStack.length; ++i) { + cycle[i] = me.sortStack[i].getFullName(); + } + Ext.raise('Dependency cycle detected: ' + cycle.join('\n --\x3e ')); + } + if (!(itemId in sortMap)) { + sortMap[itemId] = 0; + if (!item.sort.$nullFn) { + item.sort(); + } + sortMap[itemId] = 1; + item.order = me.orderedItems.length; + orderedItems.push(item); + } + me.sortStack.pop(); + return me; +}, sortItems:function(items) { + var me = this, sortItem = me.sortItem; + if (items) { + if (items instanceof Array) { + Ext.each(items, sortItem, me); + } else { + Ext.Object.eachValue(items, sortItem, me); + } + } + return me; +}, applyPreSort:function(preSort) { + if (typeof preSort === 'function') { + return preSort; + } + var parts = preSort.split(','), direction = [], length = parts.length, c, i, s; + for (i = 0; i < length; ++i) { + direction[i] = 1; + s = parts[i]; + if ((c = s.charAt(0)) === '-') { + direction[i] = -1; + } else { + if (c !== '+') { + c = 0; + } + } + if (c) { + parts[i] = s.substring(1); + } + } + return function(lhs, rhs) { + var ret = 0, i, prop, v1, v2; + for (i = 0; !ret && i < length; ++i) { + prop = parts[i]; + v1 = lhs[prop]; + v2 = rhs[prop]; + ret = direction[i] * (v1 < v2 ? -1 : v2 < v1 ? 1 : 0); + } + return ret; + }; +}, notify:function() { + var me = this, timer = me.timer, cyclesLeft = me.getCycleLimit(), globalEvents = Ext.GlobalEvents, suspend = me.suspendOnNotify, busyCounter, i, item, len, queue, firedEvent; + if (timer) { + window.clearTimeout(timer); + me.timer = null; + } + if (me.firing) { + Ext.raise('Notify cannot be called recursively'); + } + if (suspend) { + Ext.suspendLayouts(); + } + while (me.scheduledCount) { + if (cyclesLeft) { + --cyclesLeft; + } else { + me.firing = null; + if (me.onCycleLimitExceeded) { + me.onCycleLimitExceeded(); + } + break; + } + if (!firedEvent) { + firedEvent = true; + if (globalEvents.hasListeners.beforebindnotify) { + globalEvents.fireEvent('beforebindnotify', me); + } + } + ++me.passes; + if (!(queue = me.orderedItems)) { + me.sort(); + queue = me.orderedItems; + } + len = queue.length; + if (len) { + me.firing = me.items; + for (i = 0; i < len; ++i) { + item = queue[i]; + if (item.scheduled) { + item.scheduled = false; + --me.scheduledCount; + me.notifyIndex = i; + item.react(); + if (!me.scheduledCount) { + break; + } + } + } + } + } + me.firing = null; + me.notifyIndex = -1; + if (suspend) { + Ext.resumeLayouts(true); + } + if ((busyCounter = me.busyCounter) !== me.lastBusyCounter) { + if (!(me.lastBusyCounter = busyCounter)) { + me.fireEvent('idle', me); + } + } +}, onTick:function() { + this.timer = null; + this.notify(); +}, scheduleItem:function(item) { + var me = this; + ++me.scheduledCount; + if (!me.timer && !me.firing) { + me.scheduleTick(); + } +}, scheduleTick:function() { + var me = this; + if (!me.destroyed && !me.timer) { + me.timer = Ext.Function.defer(me.onTick, me.getTickDelay(), me); + } +}, unscheduleItem:function(item) { + if (this.scheduledCount) { + --this.scheduledCount; + } +}, adjustBusy:function(adjustment) { + var me = this, busyCounter = me.busyCounter + adjustment; + me.busyCounter = busyCounter; + if (busyCounter) { + if (!me.lastBusyCounter) { + me.lastBusyCounter = busyCounter; + me.fireEvent('busy', me); + } + } else { + if (me.lastBusyCounter && !me.timer) { + me.scheduleTick(); + } + } +}, isBusy:function() { + return !this.isIdle(); +}, isIdle:function() { + return !(this.busyCounter + this.lastBusyCounter); +}, debugHooks:{$enabled:false, onCycleLimitExceeded:function() { + Ext.raise('Exceeded cycleLimit ' + this.getCycleLimit()); +}, scheduleItem:function(item) { + if (!item) { + Ext.raise('scheduleItem: Invalid argument'); + } + Ext.log('Schedule item: ' + item.getFullName() + ' - ' + (this.scheduledCount + 1)); + if (item.order <= this.notifyIndex) { + Ext.log.warn('Suboptimal order: ' + item.order + ' \x3c ' + this.notifyIndex); + } + this.callParent([item]); +}, unscheduleItem:function(item) { + if (!this.scheduledCount) { + Ext.raise('Invalid scheduleCount'); + } + this.callParent([item]); + Ext.log('Unschedule item: ' + item.getFullName() + ' - ' + this.scheduledCount); +}}}); +Ext.define('Ext.data.Batch', {mixins:{observable:Ext.mixin.Observable}, config:{pauseOnException:false}, current:-1, total:0, running:false, complete:false, exception:false, constructor:function(config) { + var me = this; + me.mixins.observable.constructor.call(me, config); + me.operations = []; + me.exceptions = []; +}, add:function(operation) { + var me = this, i, len; + if (Ext.isArray(operation)) { + for (i = 0, len = operation.length; i < len; ++i) { + me.add(operation[i]); + } + } else { + me.total++; + operation.setBatch(me); + me.operations.push(operation); + } + return me; +}, sort:function() { + this.operations.sort(this.sortFn); +}, sortFn:function(operation1, operation2) { + var ret = operation1.order - operation2.order; + if (ret) { + return ret; + } + var entityType1 = operation1.entityType, entityType2 = operation2.entityType, rank; + if (!entityType1 || !entityType2) { + return 0; + } + if (!(rank = entityType1.rank)) { + entityType1.schema.rankEntities(); + rank = entityType1.rank; + } + return (rank - entityType2.rank) * operation1.foreignKeyDirection; +}, start:function(index) { + var me = this; + if (!me.operations.length || me.running) { + return me; + } + me.exceptions.length = 0; + me.exception = false; + me.running = true; + return me.runOperation(Ext.isDefined(index) ? index : me.current + 1); +}, retry:function() { + return this.start(this.current); +}, runNextOperation:function() { + var me = this; + if (me.running) { + me.runOperation(me.current + 1); + } + return me; +}, pause:function() { + this.running = false; + return this; +}, getOperations:function() { + return this.operations; +}, getExceptions:function() { + return this.exceptions; +}, getCurrent:function() { + var out = null, current = this.current; + if (!(current === -1 || this.complete)) { + out = this.operations[current]; + } + return out; +}, getTotal:function() { + return this.total; +}, isRunning:function() { + return this.running; +}, isComplete:function() { + return this.complete; +}, hasException:function() { + return this.exception; +}, runOperation:function(index) { + var me = this, operations = me.operations, operation = operations[index]; + if (operation === undefined) { + me.running = false; + me.complete = true; + me.fireEvent('complete', me, operations[operations.length - 1]); + } else { + me.current = index; + operation.setInternalCallback(me.onOperationComplete); + operation.setInternalScope(me); + operation.execute(); + } + return me; +}, onOperationComplete:function(operation) { + var me = this, exception = operation.hasException(); + if (exception) { + me.exception = true; + me.exceptions.push(operation); + me.fireEvent('exception', me, operation); + } + if (exception && me.getPauseOnException()) { + me.pause(); + } else { + me.fireEvent('operationcomplete', me, operation); + me.runNextOperation(); + } +}}); +Ext.define('Ext.data.matrix.Slice', {constructor:function(side, id) { + this.id = id; + this.side = side; + this.members = {}; +}, attach:function(store) { + var me = this; + Ext.Assert.falsey(me.store, 'Store is already attached'); + me.store = store; + store.matrix = me; + store.on('load', me.onStoreLoad, me, {single:true}); +}, commit:function() { + var members = this.members, id; + for (id in members) { + members[id][2] = 0; + } +}, onStoreLoad:function(store) { + this.update(store.getData().items, 0); +}, update:function(recordsOrIds, state) { + if (!(recordsOrIds instanceof Array)) { + Ext.raise('Only array of records or record ids are supported'); + } + var me = this, MatrixSlice = Ext.data.matrix.Slice, side = me.side, assocIndex = side.index, length = recordsOrIds.length, id = me.id, members = me.members, otherSide = side.inverse, otherSlices = otherSide.slices, assoc, call, i, item, otherId, otherSlice, record; + for (i = 0; i < length; ++i) { + call = record = null; + item = recordsOrIds[i]; + otherId = item.isEntity ? (record = item).id : item; + assoc = members[otherId]; + if (state < 0 && assoc && assoc[2] === 1) { + delete members[otherId]; + otherSlice = otherSlices[otherId]; + if (otherSlice) { + delete otherSlice.members[id]; + } + call = 1; + } else { + if (!assoc) { + assoc = [otherId, otherId, state]; + assoc[assocIndex] = id; + members[otherId] = assoc; + otherSlice = otherSlices[otherId]; + if (!otherSlice) { + otherSlices[otherId] = otherSlice = new MatrixSlice(otherSide, otherId); + } + otherSlice.members[id] = assoc; + call = 1; + } else { + if (state !== assoc[2] && state !== 0) { + assoc[2] = state; + otherSlice = otherSlices[otherId]; + call = 1; + } + } + } + if (call) { + if (me.notify) { + me.notify.call(me.scope, me, otherId, state); + } + if (otherSlice && otherSlice.notify) { + otherSlice.notify.call(otherSlice.scope, otherSlice, id, state); + } + } + } +}, updateId:function(newId) { + var me = this, oldId = me.id, side = me.side, slices = side.slices, slice = slices[oldId], members = slice.members, index = side.index, otherSlices = side.inverse.slices, assoc, otherId, otherMembers; + me.id = newId; + slices[newId] = slice; + delete slices[oldId]; + for (otherId in members) { + assoc = members[otherId]; + assoc[index] = newId; + otherMembers = otherSlices[otherId].members; + otherMembers[newId] = otherMembers[oldId]; + delete otherMembers[oldId]; + } +}, destroy:function() { + var me = this, store = me.store; + if (store) { + store.matrix = null; + store.un('load', me.onStoreLoad, me); + } + me.notify = me.scope = me.store = me.side = me.members = null; + me.callParent(); +}}); +Ext.define('Ext.data.matrix.Side', {constructor:function(matrix, index, role) { + var me = this; + me.matrix = matrix; + me.index = index; + me.role = role; + me.slices = {}; +}, commit:function() { + var slices = this.slices, id; + for (id in slices) { + slices[id].commit(); + } +}, get:function(id1, id2) { + var me = this, slices = me.slices, slice = slices[id1] || (slices[id1] = new Ext.data.matrix.Slice(me, id1)); + return id2 || id2 === 0 ? slice.members[id2] : slice; +}, update:function(id1, id2, state) { + var slice = this.get(id1); + return slice.update(id2, state); +}, updateId:function(oldId, newId) { + var slice = this.get(oldId); + if (slice) { + slice.updateId(newId); + } +}, destroy:function() { + var me = this, slices = me.slices, id; + for (id in slices) { + slices[id].destroy(); + } + me.inverse = me.matrix = me.role = me.slices = null; + me.callParent(); +}}); +Ext.define('Ext.data.matrix.Matrix', {constructor:function(session, matrix) { + var me = this, association = matrix.isManyToMany ? matrix : session.getSchema().getAssociation(matrix), Side = Ext.data.matrix.Side, left = new Side(me, 0, association.left), right = new Side(me, 1, association.right); + Ext.Assert.truthy(association.isManyToMany, 'Association is not many-to-many'); + me.association = association; + me.session = session; + me.left = left; + me.right = right; + left.inverse = right; + right.inverse = left; +}, commit:function() { + this.left.commit(); + this.right.commit(); +}, update:function(id1, id2, state) { + return this.left.update(id1, id2, state); +}, updateId:function(record, oldId, newId) { + var Type = record.self, left = this.left, right = this.right, matchSide; + if (Type === left.role.cls) { + matchSide = left; + } + if (Type === right.role.cls) { + matchSide = right; + } + if (matchSide) { + matchSide.updateId(oldId, newId); + } +}, destroy:function() { + var me = this; + me.left.destroy(); + me.right.destroy(); + me.association = me.session = me.left = me.right = null; + me.callParent(); +}}); +Ext.define('Ext.data.session.ChangesVisitor', {constructor:function(session) { + var me = this, crud; + me.session = session; + crud = session.getCrudProperties(); + me.result = null; + me.writerOptions = {}; + me.createKey = crud.create; + me.readKey = crud.read; + me.updateKey = crud.update; + me.dropKey = crud.drop; +}, onDirtyRecord:function(record) { + var me = this, crud = me.crud, created = record.phantom, dropped = record.dropped, updated = !created && !dropped, type = record.$className, prop = created || dropped ? 'allDataOptions' : 'partialDataOptions', writerOptions = me.writerOptions, name = record.entityName, options, bucket, entry, result; + if (created && dropped) { + return false; + } + crud = created ? me.createKey : dropped ? me.dropKey : me.updateKey; + writerOptions = writerOptions[type] || (writerOptions[type] = {}); + if (dropped) { + if (!(options = writerOptions.drop)) { + writerOptions.drop = options = {all:record.getProxy().getWriter().getWriteAllFields()}; + } + if (!options.all) { + entry = record.id; + } + } + if (!entry) { + if (!(options = writerOptions[prop])) { + options = record.getProxy().getWriter().getConfig(prop); + writerOptions[prop] = options = Ext.Object.chain(options); + me.setupOptions(options); + } + entry = record.getData(options); + } + result = me.result || (me.result = {}); + bucket = result[name] || (result[name] = {}); + bucket = bucket[crud] || (bucket[crud] = []); + bucket.push(entry); +}, setupOptions:function(options) { + options.serialize = true; +}, onMatrixChange:function(association, id1, id2, state) { + var me = this, name = association.left.type, assocName = association.right.role, operation = state < 0 ? me.dropKey : me.createKey, bucket, result; + result = me.result || (me.result = {}); + bucket = result[name] || (result[name] = {}); + bucket = bucket[assocName] || (bucket[assocName] = {}); + bucket = bucket[operation] || (bucket[operation] = {}); + bucket = bucket[id1] || (bucket[id1] = []); + bucket.push(id2); +}}); +Ext.define('Ext.data.session.ChildChangesVisitor', {extend:Ext.data.session.ChangesVisitor, constructor:function() { + this.seen = {}; + this.callParent(arguments); +}, setupOptions:function(options) { + this.callParent([options]); + options.serialize = false; +}, onDirtyRecord:function(record) { + if (this.callParent(arguments) !== false) { + if (!record.$source && (record.dropped || !record.phantom)) { + this.readEntity(record); + } + } +}, readEntity:function(record) { + var me = this, readKey = me.readKey, name = record.entityName, id = record.id, seen = me.seen, seenKey = name + id, result, bucket; + if (seen[seenKey]) { + return; + } + seen[seenKey] = true; + result = me.result || (me.result = {}); + bucket = result[name] || (result[name] = {}); + bucket = bucket[readKey] || (bucket[readKey] = []); + bucket.push(Ext.apply({}, record.modified, record.data)); +}}); +Ext.define('Ext.data.session.BatchVisitor', {map:null, constructor:function(batch) { + this.batch = batch; +}, getBatch:function(sort) { + var map = this.map, batch = this.batch, bucket, entity, name, operation, proxy; + if (map) { + if (!batch) { + batch = new Ext.data.Batch; + } + for (name in map) { + bucket = map[name]; + entity = bucket.entity; + proxy = entity.getProxy(); + delete bucket.entity; + for (operation in bucket) { + operation = proxy.createOperation(operation, {records:bucket[operation]}); + operation.entityType = entity; + batch.add(operation); + } + } + } + if (batch && sort !== false) { + batch.sort(); + } + return batch; +}, onDirtyRecord:function(record) { + var me = this, operation = record.phantom ? 'create' : record.dropped ? 'destroy' : 'update', name = record.$className, map = me.map || (me.map = {}), bucket = map[name] || (map[name] = {entity:record.self}); + bucket = bucket[operation] || (bucket[operation] = []); + bucket.push(record); +}}); +Ext.define('Ext.data.Session', {isSession:true, config:{schema:'default', parent:null, autoDestroy:true, crudProperties:{create:'C', read:'R', update:'U', drop:'D'}}, destroyed:false, crudOperations:[{type:'R', entityMethod:'readEntities'}, {type:'C', entityMethod:'createEntities'}, {type:'U', entityMethod:'updateEntities'}, {type:'D', entityMethod:'dropEntities'}], crudKeys:{C:1, R:1, U:1, D:1}, constructor:function(config) { + var me = this; + me.data = {}; + me.matrices = {}; + me.identifierCache = {}; + me.recordCreator = me.recordCreator.bind(me); + me.initConfig(config); +}, destroy:function() { + var me = this, matrices = me.matrices, data = me.data, entityName, entities, record, id; + for (id in matrices) { + matrices[id].destroy(); + } + for (entityName in data) { + entities = data[entityName]; + for (id in entities) { + record = entities[id].record; + if (record) { + record.$source = record.session = null; + } + } + } + me.recordCreator = me.matrices = me.data = null; + me.setSchema(null); + me.callParent(); +}, adopt:function(record) { + var me = this, associations = record.associations, roleName; + me.checkModelType(record.self); + if (record.session && record.session !== me) { + Ext.raise('Record already belongs to an existing session'); + } + if (record.session !== me) { + record.session = me; + me.add(record); + if (associations) { + for (roleName in associations) { + associations[roleName].adoptAssociated(record, me); + } + } + } +}, commit:function() { + var data = this.data, matrices = this.matrices, entityName, entities, id, record; + for (entityName in data) { + entities = data[entityName]; + for (id in entities) { + record = entities[id].record; + if (record) { + record.commit(); + } + } + } + for (id in matrices) { + matrices[id].commit(); + } +}, createRecord:function(type, data) { + this.checkModelType(type); + var Model = type.$isClass ? type : this.getSchema().getEntity(type), parent = this.getParent(), id; + if (data && parent) { + id = Model.getIdFromData(data); + if (parent.peekRecord(Model, id)) { + Ext.raise('A parent session already contains an entry for ' + Model.entityName + ': ' + id); + } + } + return new Model(data, this); +}, getChanges:function() { + var visitor = new Ext.data.session.ChangesVisitor(this); + this.visitData(visitor); + return visitor.result; +}, getChangesForParent:function() { + var visitor = new Ext.data.session.ChildChangesVisitor(this); + this.visitData(visitor); + return visitor.result; +}, getRecord:function(type, id, autoLoad) { + var me = this, wasInstance = type.isModel, record, Model, parent, parentRec; + if (wasInstance) { + wasInstance = type; + id = type.id; + type = type.self; + } + record = me.peekRecord(type, id); + if (!record) { + Model = type.$isClass ? type : me.getSchema().getEntity(type); + parent = me.getParent(); + if (parent) { + parentRec = parent.peekRecord(Model, id); + } + if (parentRec) { + if (parentRec.isLoading()) { + wasInstance = false; + } else { + record = parentRec.copy(undefined, me); + record.$source = parentRec; + } + } + if (!record) { + if (wasInstance) { + record = wasInstance; + me.adopt(record); + } else { + record = Model.createWithId(id, null, me); + if (autoLoad !== false) { + record.load(Ext.isObject(autoLoad) ? autoLoad : undefined); + } + } + } + } + return record; +}, getSaveBatch:function(sort) { + var visitor = new Ext.data.session.BatchVisitor; + this.visitData(visitor); + return visitor.getBatch(sort); +}, onInvalidAssociationEntity:function(entityType, id) { + Ext.raise('Unable to read association entity: ' + this.getModelIdentifier(entityType, id)); +}, onInvalidEntityCreate:function(entityType, id) { + Ext.raise('Cannot create, record already not exists: ' + this.getModelIdentifier(entityType, id)); +}, onInvalidEntityDrop:function(entityType, id) { + Ext.raise('Cannot drop, record does not exist: ' + this.getModelIdentifier(entityType, id)); +}, onInvalidEntityRead:function(entityType, id) { + Ext.raise('Cannot read, record already not exists: ' + this.getModelIdentifier(entityType, id)); +}, onInvalidEntityUpdate:function(entityType, id, dropped) { + if (dropped) { + Ext.raise('Cannot update, record dropped: ' + this.getModelIdentifier(entityType, id)); + } else { + Ext.raise('Cannot update, record does not exist: ' + this.getModelIdentifier(entityType, id)); + } +}, peekRecord:function(type, id, deep) { + this.checkModelType(type); + var entityType = type.$isClass ? type : this.getSchema().getEntity(type), entityName = entityType.entityName, entry = this.data[entityName], ret, parent; + entry = entry && entry[id]; + ret = entry && entry.record; + if (!ret && deep) { + parent = this.getParent(); + ret = parent && parent.peekRecord(type, id, deep); + } + return ret || null; +}, save:function() { + if (!this.getParent()) { + Ext.raise('Cannot commit session, no parent exists'); + } + var visitor = new Ext.data.session.ChildChangesVisitor(this); + this.visitData(visitor); + this.getParent().update(visitor.result); +}, spawn:function() { + return new this.self({schema:this.getSchema(), parent:this}); +}, update:function(data) { + var me = this, schema = me.getSchema(), crudOperations = me.crudOperations, len = crudOperations.length, crudKeys = me.crudKeys, entityName, entityType, entityInfo, i, operation, item, associations, key, role, associationData; + me.getSchema().processKeyChecks(true); + for (entityName in data) { + entityType = schema.getEntity(entityName); + if (!entityType) { + Ext.raise('Invalid entity type: ' + entityName); + } + entityInfo = data[entityName]; + for (i = 0; i < len; ++i) { + operation = crudOperations[i]; + item = entityInfo[operation.type]; + if (item) { + me[operation.entityMethod](entityType, item); + } + } + } + for (entityName in data) { + entityType = schema.getEntity(entityName); + associations = entityType.associations; + entityInfo = data[entityName]; + for (key in entityInfo) { + if (crudKeys[key]) { + continue; + } + role = associations[key]; + if (!role) { + Ext.raise('Invalid association key for ' + entityName + ', "' + key + '"'); + } + associationData = entityInfo[role.role]; + role.processUpdate(me, associationData); + } + } +}, privates:{add:function(record) { + var me = this, id = record.id, entry = me.getEntry(record.self, id), associations, roleName; + if (entry.record) { + Ext.raise('Duplicate id ' + record.id + ' for ' + record.entityName); + } + entry.record = record; + me.registerReferences(record); + associations = record.associations; + for (roleName in associations) { + associations[roleName].checkMembership(me, record); + } +}, afterErase:function(record) { + this.evict(record); +}, applySchema:function(schema) { + return Ext.data.schema.Schema.get(schema); +}, checkModelType:function(name) { + if (name.$isClass) { + name = name.entityName; + } + if (!name) { + Ext.raise('Unable to use anonymous models in a Session'); + } else { + if (!this.getSchema().getEntity(name)) { + Ext.raise('Unknown entity type ' + name); + } + } +}, createEntities:function(entityType, items) { + var len = items.length, i, data, rec, id; + for (i = 0; i < len; ++i) { + data = items[i]; + id = entityType.getIdFromData(data); + rec = this.peekRecord(entityType, id); + if (!rec) { + rec = this.createRecord(entityType, data); + } else { + this.onInvalidEntityCreate(entityType, id); + } + rec.phantom = true; + } +}, dropEntities:function(entityType, ids) { + var len = ids.length, i, rec, id, extractId; + if (len) { + extractId = Ext.isObject(ids[0]); + } + for (i = 0; i < len; ++i) { + id = ids[i]; + if (extractId) { + id = entityType.getIdFromData(id); + } + rec = this.peekRecord(entityType, id); + if (rec) { + rec.drop(); + } else { + this.onInvalidEntityDrop(entityType, id); + } + } +}, evict:function(record) { + var entityName = record.entityName, entities = this.data[entityName], id = record.id, entry; + if (entities) { + delete entities[id]; + } +}, getEntityList:function(entityType, ids) { + var len = ids.length, i, id, rec, invalid; + for (i = 0; i < len; ++i) { + id = ids[i]; + rec = this.peekRecord(entityType, id); + if (rec) { + ids[i] = rec; + } else { + invalid = true; + ids[i] = null; + this.onInvalidAssociationEntity(entityType, id); + } + } + if (invalid) { + ids = Ext.Array.clean(ids); + } + return ids; +}, getEntry:function(type, id) { + if (type.isModel) { + id = type.getId(); + type = type.self; + } + var entityType = type.$isClass ? type : this.getSchema().getEntity(type), entityName = entityType.entityName, data = this.data, entry; + entry = data[entityName] || (data[entityName] = {}); + entry = entry[id] || (entry[id] = {}); + return entry; +}, getRefs:function(record, role, includeParent) { + var entry = this.getEntry(record), refs = entry && entry.refs && entry.refs[role.role], parent = includeParent && this.getParent(), parentRefs, id, rec; + if (parent) { + parentRefs = parent.getRefs(record, role); + if (parentRefs) { + for (id in parentRefs) { + rec = parentRefs[id]; + if (!refs || !refs[id]) { + this.getRecord(rec.self, rec.id); + } + } + refs = entry && entry.refs && entry.refs[role.role]; + } + } + return refs || null; +}, getIdentifier:function(entityType) { + var parent = this.getParent(), cache, identifier, key, ret; + if (parent) { + ret = parent.getIdentifier(entityType); + } else { + cache = this.identifierCache; + identifier = entityType.identifier; + key = identifier.id || entityType.entityName; + ret = cache[key]; + if (!ret) { + if (identifier.clone) { + ret = identifier.clone({cache:cache}); + } else { + ret = identifier; + } + cache[key] = ret; + } + } + return ret; +}, getMatrix:function(matrix, preventCreate) { + var name = matrix.isManyToMany ? matrix.name : matrix, matrices = this.matrices, ret; + ret = matrices[name]; + if (!ret && !preventCreate) { + ret = matrices[name] = new Ext.data.matrix.Matrix(this, matrix); + } + return ret || null; +}, getMatrixSlice:function(role, id) { + var matrix = this.getMatrix(role.association), side = matrix[role.side]; + return side.get(id); +}, getModelIdentifier:function(entityType, id) { + return id + '@' + entityType.entityName; +}, onIdChanged:function(record, oldId, newId) { + var me = this, matrices = me.matrices, entityName = record.entityName, id = record.id, bucket = me.data[entityName], entry = bucket[oldId], associations = record.associations, refs = entry.refs, setNoRefs = me._setNoRefs, association, fieldName, matrix, refId, role, roleName, roleRefs, key; + if (bucket[newId]) { + Ext.raise('Cannot change ' + entityName + ' id from ' + oldId + ' to ' + newId + ' id already exists'); + } + delete bucket[oldId]; + bucket[newId] = entry; + for (key in matrices) { + matrices[key].updateId(record, oldId, newId); + } + if (refs) { + for (roleName in refs) { + roleRefs = refs[roleName]; + role = associations[roleName]; + association = role.association; + if (!association.isManyToMany) { + fieldName = association.field.name; + for (refId in roleRefs) { + roleRefs[refId].set(fieldName, id, setNoRefs); + } + } + } + } + me.registerReferences(record, oldId); +}, processManyBlock:function(entityType, role, items, processor) { + var me = this, id, record, records, store; + if (items) { + for (id in items) { + record = me.peekRecord(entityType, id); + if (record) { + records = me.getEntityList(role.cls, items[id]); + store = role.getAssociatedItem(record); + me[processor](role, store, record, records); + } else { + me.onInvalidAssociationEntity(entityType, id); + } + } + } +}, processManyCreate:function(role, store, record, records) { + if (store) { + store.add(records); + } else { + record[role.getterName](null, null, records); + } +}, processManyDrop:function(role, store, record, records) { + if (store) { + store.remove(records); + } +}, processManyRead:function(role, store, record, records) { + if (store) { + store.setRecords(records); + } else { + record[role.getterName](null, null, records); + } +}, readEntities:function(entityType, items) { + var len = items.length, i, data, rec, id; + for (i = 0; i < len; ++i) { + data = items[i]; + id = entityType.getIdFromData(data); + rec = this.peekRecord(entityType, id); + if (!rec) { + rec = this.createRecord(entityType, data); + } else { + this.onInvalidEntityRead(entityType, id); + } + rec.phantom = false; + } +}, recordCreator:function(data, Model) { + var me = this, id = Model.getIdFromData(data), record = me.peekRecord(Model, id, true); + if (!record) { + record = new Model(data, me); + } else { + record = me.getRecord(Model, id); + } + return record; +}, registerReferences:function(record, oldId) { + var entityName = record.entityName, id = record.id, recordData = record.data, remove = oldId || oldId === 0, entry, i, fk, len, reference, references, refs, roleName; + len = (references = record.references).length; + for (i = 0; i < len; ++i) { + reference = references[i]; + fk = recordData[reference.name]; + if (fk || fk === 0) { + reference = reference.reference; + entityName = reference.type; + roleName = reference.inverse.role; + entry = this.getEntry(reference.cls, fk); + refs = entry.refs || (entry.refs = {}); + refs = refs[roleName] || (refs[roleName] = {}); + refs[id] = record; + if (remove) { + delete refs[oldId]; + } + } + } +}, updateEntities:function(entityType, items) { + var len = items.length, i, data, rec, id, modified; + if (Ext.isArray(items)) { + for (i = 0; i < len; ++i) { + data = items[i]; + id = entityType.getIdFromData(data); + rec = this.peekRecord(entityType, id); + if (rec) { + rec.set(data); + } else { + this.onInvalidEntityUpdate(entityType, id); + } + } + } else { + for (id in items) { + data = items[id]; + rec = this.peekRecord(entityType, id); + if (rec && !rec.dropped) { + modified = rec.set(data); + } else { + this.onInvalidEntityUpdate(entityType, id, !!rec); + } + } + } +}, updateReference:function(record, field, newValue, oldValue) { + var reference = field.reference, entityName = reference.type, roleName = reference.inverse.role, id = record.id, entry, refs; + if (oldValue || oldValue === 0) { + refs = this.getEntry(entityName, oldValue).refs[roleName]; + delete refs[id]; + } + if (newValue || newValue === 0) { + entry = this.getEntry(entityName, newValue); + refs = entry.refs || (entry.refs = {}); + refs = refs[roleName] || (refs[roleName] = {}); + refs[id] = record; + } +}, visitData:function(visitor) { + var me = this, data = me.data, matrices = me.matrices, all, assoc, id, id2, matrix, members, name, record, slice, slices, state; + me.getSchema().processKeyChecks(true); + for (name in data) { + all = data[name]; + for (id in all) { + record = all[id].record; + if (record) { + if (record.phantom || record.dirty || record.dropped) { + if (visitor.onDirtyRecord) { + visitor.onDirtyRecord(record); + } + } else { + if (visitor.onCleanRecord) { + visitor.onCleanRecord(record); + } + } + } + } + } + if (visitor.onMatrixChange) { + for (name in matrices) { + matrix = matrices[name].left; + slices = matrix.slices; + assoc = matrix.role.association; + for (id in slices) { + slice = slices[id]; + members = slice.members; + for (id2 in members) { + state = (record = members[id2])[2]; + if (state) { + visitor.onMatrixChange(assoc, record[0], record[1], state); + } + } + } + } + } + return visitor; +}, _setNoRefs:{refs:false}}}); +Ext.define('Ext.util.Schedulable', {'abstract':true, isSchedulable:true, scheduled:false, constructor:function() { + this.getScheduler().add(this); +}, destroy:function() { + var me = this, scheduler = me.getScheduler(); + if (scheduler) { + scheduler.remove(me); + } + me.scheduler = null; + me.schedule = me.react = Ext.emptyFn; + me.callParent(); +}, getFullName:function() { + return this.name || this.id; +}, privates:{getScheduler:function() { + return this.scheduler; +}, schedule:function() { + var me = this, scheduler; + if (!me.scheduled) { + scheduler = me.getScheduler(); + if (scheduler) { + me.scheduled = true; + if (me.onSchedule) { + me.onSchedule(); + } + scheduler.scheduleItem(me); + } + } +}, unschedule:function() { + var me = this, scheduler; + if (me.scheduled) { + scheduler = me.getScheduler(); + if (scheduler) { + scheduler.unscheduleItem(me); + } + me.scheduled = false; + } +}, sort:function() { +}}}); +Ext.define('Ext.app.bind.BaseBinding', {extend:Ext.util.Schedulable, calls:0, kind:20, defaultOptions:{}, lastValue:undefined, constructor:function(owner, callback, scope, options) { + var me = this; + me.options = options; + me.owner = owner; + me.scope = scope; + me.callback = callback; + if (!callback) { + Ext.raise('Callback is required'); + } + me.lateBound = Ext.isString(callback); + if (options && options.deep) { + me.deep = true; + } + me.callParent(); +}, destroy:function() { + var me = this, owner = me.owner; + me.callParent(); + if (owner) { + owner.onBindDestroy(me); + } + me.scope = me.callback = me.owner = null; +}, isReadOnly:function() { + return true; +}, privates:{getScheduler:function() { + var owner = this.owner; + return owner && owner.getScheduler(); +}, getSession:function() { + var owner = this.owner; + return owner.isSession ? owner : owner.getSession(); +}, notify:function(value) { + var me = this, options = me.options || me.defaultOptions, previous = me.lastValue; + if (!me.calls || me.deep || previous !== value || Ext.isArray(value)) { + ++me.calls; + me.lastValue = value; + if (me.lateBound) { + me.scope[me.callback](value, previous, me); + } else { + me.callback.call(me.scope, value, previous, me); + } + if (options.single) { + me.destroy(); + } + } +}}}); +Ext.define('Ext.app.bind.Binding', {extend:Ext.app.bind.BaseBinding, constructor:function(stub, callback, scope, options) { + var me = this; + me.callParent([stub.owner, callback, scope, options]); + me.stub = stub; + me.depth = stub.depth; + if (!stub.isLoading() && !stub.scheduled) { + me.schedule(); + } +}, destroy:function(fromParent) { + var me = this, stub = me.stub; + if (stub && !fromParent) { + stub.unbind(me); + me.stub = null; + } + me.callParent(); +}, bindValidation:function(callback, scope) { + var stub = this.stub; + return stub && stub.bindValidation(callback, scope); +}, bindValidationField:function(callback, scope) { + var stub = this.stub; + return stub && stub.bindValidationField(callback, scope); +}, getFullName:function() { + return this.fullName || (this.fullName = '@(' + this.stub.getFullName() + ')'); +}, getValue:function() { + var me = this, stub = me.stub, ret = stub && stub.getValue(); + if (me.transform) { + ret = me.transform(ret); + } + return ret; +}, isLoading:function() { + var stub = this.stub; + return stub && stub.isLoading(); +}, isReadOnly:function() { + var stub = this.stub, options = this.options; + if (!(options && options.twoWay === false)) { + if (stub) { + return stub.isReadOnly(); + } + } + return true; +}, refresh:function() { +}, setValue:function(value) { + if (this.isReadOnly()) { + Ext.raise('Cannot setValue on a readonly binding'); + } + this.stub.set(value); +}, privates:{getDataObject:function() { + var stub = this.stub; + return stub && stub.getDataObject(); +}, getRawValue:function() { + var me = this, stub = me.stub, ret = stub && stub.getRawValue(); + if (me.transform) { + ret = me.transform(ret); + } + return ret; +}, isDescendantOf:function(item) { + var stub = this.stub; + return stub ? item === stub || stub.isDescendantOf(item) : false; +}, react:function() { + this.notify(this.getValue()); +}, schedule:function() { + if (!this.stub.scheduled) { + this.callParent(); + } +}, sort:function() { + var stub = this.stub; + stub.scheduler.sortItem(stub); +}}}); +Ext.define('Ext.app.bind.AbstractStub', {extend:Ext.util.Schedulable, children:null, depth:0, generation:1, kind:10, parent:null, constructor:function(owner, name) { + var me = this; + me.owner = owner; + me.name = name; + me.callParent(); +}, destroy:function() { + var me = this, children = me.children, bindings = me.bindings, len, i, key; + if (bindings) { + for (i = 0, len = bindings.length; i < len; ++i) { + bindings[i].destroy(true); + } + } + for (key in children) { + children[key].destroy(); + } + me.callParent(); + me.bindings = me.children = me.owner = null; +}, add:function(child) { + var me = this; + (me.children || (me.children = {}))[child.name] = child; + child.depth = me.depth + 1; + child.parent = me; +}, getChild:function(path) { + var pathArray = Ext.isString(path) ? path.split('.') : path; + if (pathArray && pathArray.length) { + return this.descend(pathArray, 0); + } + return this; +}, getFullName:function() { + var me = this, name = me.fullName, parent = me.parent, s; + if (!name) { + name = me.name || me.id; + if (parent && (s = parent.getFullName())) { + name = (s.charAt(s.length - 1) !== ':' ? s + '.' : s) + name; + } + me.fullName = name; + } + return name; +}, getSession:function() { + var owner = this.owner; + return owner.isSession ? owner : owner.getSession(); +}, bind:function(callback, scope, options) { + var me = this, binding = new Ext.app.bind.Binding(me, callback, scope, options), bindings = me.bindings || (me.bindings = []); + binding.depth = me.depth; + bindings.push(binding); + return binding; +}, getValue:function() { + return this.isLoading() ? null : this.getRawValue(); +}, graft:function(replacement) { + var me = this, bindings = me.bindings, name = me.name, i; + me.parent = me.bindings = null; + me.destroy(); + replacement.depth = me.depth; + replacement.bindings = bindings; + replacement.generation = me.generation + 1; + replacement.name = name; + replacement.id = me.id; + replacement.path = me.path; + if (bindings) { + for (i = bindings.length; i-- > 0;) { + bindings[i].stub = replacement; + } + } + return replacement; +}, isDescendantOf:function(item) { + for (var parent = this; parent = parent.parent;) { + if (parent === item) { + return true; + } + } + return false; +}, onSchedule:function() { + for (var i, len, binding, bindings, p = this.parent; p; p = p.parent) { + bindings = p.bindings; + if (bindings) { + for (i = 0, len = bindings.length; i < len; ++i) { + binding = bindings[i]; + if (binding.deep && !binding.scheduled) { + binding.schedule(); + } + } + } + } +}, react:function() { + var bindings = this.bindings, binding, i, len; + if (bindings) { + for (i = 0, len = bindings.length; i < len; ++i) { + binding = bindings[i]; + if (!binding.scheduled) { + binding.schedule(); + } + } + } +}, unbind:function(binding) { + var bindings = this.bindings; + if (bindings && bindings.length) { + Ext.Array.remove(bindings, binding); + } +}, privates:{collect:function() { + var children = this.children, bindings = this.bindings, totalCount = 0, count = 0, child, key; + if (children) { + for (key in children) { + child = children[key]; + count = child.collect(); + if (count === 0) { + child.destroy(); + delete children[key]; + } + totalCount += count; + } + } + if (bindings) { + totalCount += bindings.length; + } + return totalCount; +}, getScheduler:function() { + var owner = this.owner; + return owner && owner.getScheduler(); +}, sort:function() { + var parent = this.parent; + if (parent) { + this.scheduler.sortItem(parent); + } +}}}); +Ext.define('Ext.app.bind.Stub', {extend:Ext.app.bind.AbstractStub, isStub:true, dirty:true, formula:null, validationKey:'validation', statics:{trackHadValue:function(value, owner, path, stub) { + var children = stub && stub.children, child, key, hadValue; + hadValue = value !== undefined; + if (!owner.hadValue[path]) { + owner.hadValue[path] = hadValue; + } + if (stub) { + stub.hadValue = hadValue; + } + if (value && (value.constructor === Object || value.isModel)) { + if (value.isModel) { + value = value.data; + } + for (key in value) { + Ext.app.bind.Stub.trackHadValue(value[key], owner, path + '.' + key, children && children[key]); + } + } +}}, constructor:function(owner, name, parent) { + var me = this, path = name; + me.callParent([owner, name]); + me.boundValue = null; + if (parent) { + parent.add(me); + if (!parent.isRootStub) { + path = parent.path + '.' + name; + } + } + me.hadValue = owner.hadValue[path]; + me.path = path; +}, destroy:function() { + var me = this, formula = me.formula, parent = me.parent, storeBinding = me.storeBinding; + if (formula) { + formula.destroy(); + } + if (storeBinding) { + storeBinding.destroy(); + } + me.detachBound(); + me.parentValue = me.formula = me.storeBinding = null; + me.callParent(); +}, bindValidation:function(callback, scope) { + var parent = this.parent; + return parent && parent.descend([this.validationKey, this.name]).bind(callback, scope); +}, bindValidationField:function(callback, scope) { + var parent = this.parent, name = this.name, lateBound = typeof callback === 'string', ret; + if (parent) { + ret = parent.bind(function(value) { + var field = null; + if (value && value.isModel) { + field = value.getField(name); + } + if (lateBound) { + scope[callback](field, null, this); + } else { + callback.call(scope, field, null, this); + } + }); + } + return ret || null; +}, descend:function(path, index) { + var me = this, children = me.children || (me.children = {}), pos = index || 0, name = path[pos++], ret; + if (!(ret = children[name])) { + ret = new Ext.app.bind.Stub(me.owner, name, me); + } + if (pos < path.length) { + ret = ret.descend(path, pos); + } + return ret; +}, getChildValue:function(parentData) { + var me = this, name = me.name, ret; + if (!parentData && !Ext.isString(parentData)) { + ret = me.hadValue ? null : undefined; + } else { + ret = me.inspectValue(parentData); + if (!ret) { + if (parentData.isEntity) { + ret = parentData.data[name]; + } else { + ret = parentData[name]; + } + } + } + return ret; +}, getDataObject:function() { + var me = this, parentData = me.parent.getDataObject(), name = me.name, ret = parentData ? parentData[name] : null, associations, association; + if (!ret && parentData && parentData.isEntity) { + associations = parentData.associations; + if (associations && name in associations) { + ret = parentData[associations[name].getterName](); + } + } + if (!ret || !(ret.$className || Ext.isObject(ret))) { + parentData[name] = ret = {}; + me.hadValue = me.owner.hadValue[me.path] = true; + me.invalidate(true, true); + } + return ret; +}, getRawValue:function() { + return this.getChildValue(this.getParentValue()); +}, graft:function(replacement) { + var me = this, parent = me.parent, children = me.children, name = me.name, i; + replacement.parent = parent; + replacement.children = children; + if (parent) { + parent.children[name] = replacement; + } + if (children) { + for (i in children) { + children[i].parent = replacement; + } + } + me.children = null; + return me.callParent([replacement]); +}, isLoading:function() { + var me = this, parent = me.parent, loading = false, associations, parentValue, value, loadSet; + if (parent && !(loading = parent.isLoading())) { + parentValue = me.getParentValue(); + value = me.inspectValue(parentValue); + if (value) { + loading = value.isLoading(); + } else { + if (parentValue && parentValue.isModel) { + associations = parentValue.associations; + if (!(associations && me.name in associations)) { + loading = false; + loadSet = true; + } + } + if (!loadSet) { + loading = !me.hadValue && me.getRawValue() === undefined; + } + } + } + return loading; +}, invalidate:function(deep, dirtyOnly) { + var me = this, children = me.children, name; + me.dirty = true; + if (!dirtyOnly && !me.isLoading()) { + if (!me.scheduled) { + me.schedule(); + } + } + if (deep && children) { + for (name in children) { + children[name].invalidate(deep, dirtyOnly); + } + } +}, isReadOnly:function() { + var formula = this.formula; + return !!(formula && !formula.set); +}, set:function(value) { + var me = this, parent = me.parent, name = me.name, formula = me.formula, parentData, associations, association, formulaStub; + if (formula && !formula.settingValue && formula.set) { + formula.setValue(value); + return; + } else { + if (me.isLinkStub) { + formulaStub = me.getLinkFormulaStub(); + formula = formulaStub ? formulaStub.formula : null; + if (formula) { + if (formulaStub.isReadOnly()) { + Ext.raise('Cannot setValue on a readonly formula'); + } + formula.setValue(value); + return; + } + } + } + parentData = parent.getDataObject(); + if (parentData.isEntity) { + associations = parentData.associations; + if (associations && name in associations) { + association = associations[name]; + parentData[association.setterName](value); + me.invalidate(true); + } else { + parentData.set(name, value); + } + } else { + if (value && value.constructor === Object || value !== parentData[name]) { + if (!me.setByLink(value)) { + if (value === undefined) { + delete parentData[name]; + } else { + parentData[name] = value; + Ext.app.bind.Stub.trackHadValue(value, me.owner, me.path, me); + } + me.inspectValue(parentData); + me.invalidate(true); + } + } + } +}, onStoreLoad:function() { + this.invalidate(true); +}, afterLoad:function(record) { + this.invalidate(true); +}, afterCommit:function(record) { + this.afterEdit(record, null); +}, afterEdit:function(record, modifiedFieldNames) { + var children = this.children, len = modifiedFieldNames && modifiedFieldNames.length, associations = record.associations, key, i, child, scheduled; + if (children) { + if (len) { + for (i = 0; i < len; ++i) { + child = children[modifiedFieldNames[i]]; + if (child) { + child.invalidate(); + } + } + } else { + for (key in children) { + if (!(associations && key in associations)) { + children[key].invalidate(); + } + } + } + } + this.invalidate(); +}, afterReject:function(record) { + this.afterEdit(record, null); +}, setByLink:function(value) { + var me = this, n = 0, i, link, path, stub; + for (stub = me; stub; stub = stub.parent) { + if (stub.isLinkStub) { + link = stub; + if (n) { + for (path = [], i = 0, stub = me; stub !== link; stub = stub.parent) { + ++i; + path[n - i] = stub.name; + } + } + break; + } + ++n; + } + if (!link || !(stub = link.getTargetStub())) { + return false; + } + if (path) { + stub = stub.descend(path); + } + stub.set(value); + return true; +}, setFormula:function(formula) { + var me = this, oldFormula = me.formula; + if (oldFormula) { + oldFormula.destroy(); + } + me.formula = new Ext.app.bind.Formula(me, formula); +}, react:function() { + var me = this, bound = this.boundValue, children = me.children, generation; + if (bound) { + if (bound.isValidation) { + bound.refresh(); + generation = bound.generation; + if (me.lastValidationGeneration === generation) { + return; + } + me.lastValidationGeneration = generation; + } else { + if (bound.isModel) { + if (children && children[me.validationKey]) { + bound.isValid(); + } + } else { + if (bound.isStore) { + if (bound.isLoading() && !bound.loadCount) { + return; + } + } + } + } + } + this.callParent(); +}, privates:{collect:function() { + var me = this, result = me.callParent(), storeBinding = me.storeBinding ? 1 : 0, formula = me.formula ? 1 : 0; + return result + storeBinding + formula; +}, getLinkFormulaStub:function() { + var stub = this; + while (stub.isLinkStub) { + stub = stub.binding.stub; + } + return stub.formula ? stub : null; +}, getParentValue:function() { + var me = this; + if (me.dirty) { + me.parentValue = me.parent.getValue(); + me.dirty = false; + } + return me.parentValue; +}, setStore:function(storeBinding) { + this.storeBinding = storeBinding; +}, inspectValue:function(parentData) { + var me = this, name = me.name, current = me.boundValue, boundValue = null, associations, raw, changed, associatedEntity; + if (parentData && parentData.isEntity) { + associations = parentData.associations; + if (associations && name in associations) { + boundValue = parentData[associations[name].getterName](); + if (boundValue && boundValue.isStore) { + boundValue.$associatedStore = true; + } + } else { + if (name === me.validationKey) { + boundValue = parentData.getValidation(); + me.lastValidationGeneration = null; + } + } + } else { + if (parentData) { + raw = parentData[name]; + if (raw && (raw.isModel || raw.isStore)) { + boundValue = raw; + } + } + } + changed = current !== boundValue; + if (changed) { + if (current) { + me.detachBound(); + } + if (boundValue) { + if (boundValue.isModel) { + boundValue.join(me); + } else { + associatedEntity = boundValue.associatedEntity; + if (associatedEntity && !associatedEntity.phantom && !boundValue.complete && !boundValue.hasPendingLoad()) { + boundValue.load(); + } + boundValue.on('load', me.onStoreLoad, me, {single:true}); + } + } + me.boundValue = boundValue; + } + return boundValue; +}, detachBound:function() { + var me = this, current = me.boundValue; + if (current) { + if (current.isModel) { + current.unjoin(me); + } else { + current.un('load', me.onStoreLoad, me); + } + } +}, sort:function() { + var me = this, formula = me.formula, scheduler = me.scheduler, storeBinding = me.storeBinding; + me.callParent(); + if (storeBinding) { + scheduler.sortItem(storeBinding); + } + if (formula) { + scheduler.sortItem(formula); + } +}}}); +Ext.define('Ext.app.bind.LinkStub', {extend:Ext.app.bind.Stub, isLinkStub:true, binding:null, destroy:function() { + var me = this, binding = me.binding, owner = me.owner; + if (binding) { + me.binding = null; + binding.destroy(); + if (owner) { + delete owner.linkData[me.name]; + } + } + me.target = null; + me.callParent(); +}, getFullName:function() { + var me = this; + return me.fullName || (me.fullName = '(' + me.callParent() + ' -\x3e ' + me.binding.getFullName() + ')'); +}, getDataObject:function() { + var binding = this.binding; + return binding && binding.getDataObject(); +}, getRawValue:function() { + var binding = this.binding; + return binding && binding.getRawValue(); +}, getValue:function() { + var binding = this.binding; + return binding && binding.getValue(); +}, getTargetStub:function() { + var binding = this.binding; + return binding && binding.stub; +}, isLoading:function() { + var binding = this.binding; + return binding ? binding.isLoading() : false; +}, link:function(bindDescriptor, target) { + var me = this, binding = me.binding; + if (binding) { + binding.destroy(); + } + target = me.target = target || me.owner; + me.linkDescriptor = bindDescriptor; + me.binding = target.bind(bindDescriptor, me.onChange, me); + me.binding.deep = true; +}, onChange:function() { + this.invalidate(true); +}, react:function() { + var me = this, linkData = me.owner.linkData; + linkData[me.name] = me.getValue(); + me.callParent(); +}, privates:{collect:function() { + var me = this, result = me.callParent(), binding = me.binding ? 1 : 0; + return result + binding; +}, sort:function() { + var binding = this.binding; + if (binding) { + this.scheduler.sortItem(binding); + } +}}}); +Ext.define('Ext.app.bind.RootStub', {extend:Ext.app.bind.AbstractStub, isRootStub:true, depth:0, createRootChild:function(name, direct) { + var me = this, owner = me.owner, ownerData = owner.getData(), children = me.children, previous = children && children[name], parentStub = previous ? null : me, parentVM, stub; + if (direct || ownerData.hasOwnProperty(name) || !(parentVM = owner.getParent())) { + stub = new Ext.app.bind.Stub(owner, name, parentStub); + } else { + stub = new Ext.app.bind.LinkStub(owner, name, previous ? null : parentStub); + stub.link('{' + name + '}', parentVM); + } + if (previous) { + previous.graft(stub); + } + return stub; +}, createStubChild:function(name) { + return this.createRootChild(name, true); +}, descend:function(path, index) { + var me = this, children = me.children, pos = index || 0, name = path[pos++], ret = children && children[name] || me.createRootChild(name); + if (pos < path.length) { + ret = ret.descend(path, pos); + } + return ret; +}, getFullName:function() { + return this.fullName || (this.fullName = this.owner.id + ':'); +}, getDataObject:function() { + return this.owner.data; +}, getRawValue:function() { + return this.owner.data; +}, getValue:function() { + return this.owner.data; +}, isDescendantOf:function() { + return false; +}, isLoading:function() { + return false; +}, set:function(value) { + if (!value || value.constructor !== Object) { + Ext.raise('Only an object can be set at the root'); + } + var me = this, children = me.children || (me.children = {}), owner = me.owner, data = owner.data, parentVM = owner.getParent(), linkStub, stub, v, key; + for (key in value) { + if (key.indexOf('.') >= 0) { + Ext.raise('Value names cannot contain dots'); + } + if ((v = value[key]) !== undefined) { + if (!(stub = children[key])) { + stub = new Ext.app.bind.Stub(owner, key, me); + } else { + if (stub.isLinkStub) { + if (!stub.getLinkFormulaStub()) { + linkStub = stub; + stub = new Ext.app.bind.Stub(owner, key); + linkStub.graft(stub); + } + } + } + stub.set(v); + } else { + if (data.hasOwnProperty(key)) { + delete data[key]; + stub = children[key]; + if (stub && !stub.isLinkStub && parentVM) { + stub = me.createRootChild(key); + } + stub.invalidate(true); + } + } + } +}, schedule:Ext.emptyFn, unschedule:Ext.emptyFn}); +Ext.define('Ext.app.bind.Multi', {extend:Ext.app.bind.BaseBinding, isMultiBinding:true, missing:1, deep:true, constructor:function(descriptor, owner, callback, scope, options) { + var me = this, trackStatics = options && options.trackStatics; + me.callParent([owner, callback, scope, options]); + me.bindings = []; + me.literal = descriptor.$literal; + if (descriptor.constructor === Object) { + if (trackStatics) { + me.staticKeys = []; + } + me.addObject(descriptor, me.lastValue = {}, me.staticKeys); + } else { + me.addArray(descriptor, me.lastValue = []); + } + if (!--me.missing && !me.scheduled) { + me.schedule(); + } +}, destroy:function() { + var me = this; + me.bindings = Ext.destroy(me.bindings); + me.callParent(); +}, add:function(descriptor, data, property) { + var me = this, owner = me.owner, bindings = me.bindings, method = me.literal ? descriptor.reference ? 'bindEntity' : 'bindExpression' : 'bind', binding, depth; + ++me.missing; + binding = owner[method](descriptor, function(value) { + data[property] = value; + if (binding.calls === 1) { + --me.missing; + } + if (!me.missing && !me.scheduled) { + me.schedule(); + } + }, me, null); + depth = binding.depth; + if (!bindings.length || depth < me.depth) { + me.depth = depth; + } + bindings.push(binding); + return !this.isBindingStatic(binding); +}, addArray:function(multiBindDescr, array) { + var me = this, n = multiBindDescr.length, hasDynamic = false, dynamic, b, i; + for (i = 0; i < n; ++i) { + b = multiBindDescr[i]; + if (b && (b.reference || Ext.isString(b))) { + dynamic = me.add(b, array, i); + } else { + if (Ext.isArray(b)) { + dynamic = me.addArray(b, array[i] = []); + } else { + if (b && b.constructor === Object) { + dynamic = me.addObject(b, array[i] = {}); + } else { + array[i] = b; + dynamic = false; + } + } + } + hasDynamic = hasDynamic || dynamic; + } + return hasDynamic; +}, addObject:function(multiBindDescr, object, staticKeys) { + var me = this, hasDynamic = false, dynamic, b, name; + for (name in multiBindDescr) { + b = multiBindDescr[name]; + if (b && (b.reference || Ext.isString(b))) { + dynamic = me.add(b, object, name); + } else { + if (Ext.isArray(b)) { + dynamic = me.addArray(b, object[name] = []); + } else { + if (b && b.constructor === Object) { + dynamic = me.addObject(b, object[name] = {}); + } else { + object[name] = b; + dynamic = false; + } + } + } + if (staticKeys && !dynamic) { + staticKeys.push(name); + } + hasDynamic = hasDynamic || dynamic; + } + return hasDynamic; +}, getFullName:function() { + var me = this, fullName = me.fullName, bindings = me.bindings, length = bindings.length, i; + if (!fullName) { + fullName = '@['; + for (i = 0; i < length; ++i) { + if (i) { + fullName += ','; + } + fullName += bindings[i].getFullName(); + } + fullName += ']'; + me.fullName = fullName; + } + return fullName; +}, getRawValue:function() { + return this.lastValue; +}, isDescendantOf:function() { + return false; +}, isLoading:function() { + for (var bindings = this.bindings, n = bindings.length; n-- > 0;) { + if (bindings[n].isLoading()) { + return true; + } + } + return false; +}, isBindingStatic:function(binding) { + return binding.isTemplateBinding && binding.isStatic; +}, isStatic:function() { + var bindings = this.bindings, len = bindings.length, i, binding; + for (i = 0; i < len; ++i) { + binding = bindings[i]; + if (!this.isBindingStatic(binding)) { + return false; + } + } + return true; +}, pruneStaticKeys:function() { + var value = Ext.apply({}, this.lastValue), keys = this.staticKeys, len = keys.length, i; + for (i = 0; i < len; ++i) { + delete value[keys[i]]; + } + return value; +}, react:function() { + this.notify(this.lastValue); +}, refresh:function() { +}, privates:{sort:function() { + this.scheduler.sortItems(this.bindings); +}}}); +Ext.define('Ext.app.bind.Formula', {extend:Ext.util.Schedulable, statics:{getFormulaParser:function(name) { + var cache = this.formulaCache, parser, s; + if (!cache) { + cache = this.formulaCache = new Ext.util.LruCache({maxSize:20}); + } + parser = cache.get(name); + if (!parser) { + s = '[^\\.a-z0-9_]' + name + '\\(\\s*([\'"])(.*?)\\1\\s*\\)'; + parser = new RegExp(s, 'gi'); + cache.add(name, parser); + } + return parser; +}}, isFormula:true, calculation:null, explicit:false, set:null, single:false, argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/, constructor:function(stub, formula) { + var me = this, owner = stub.owner, bindTo, expressions, getter, options; + me.owner = owner; + me.stub = stub; + me.callParent(); + if (formula instanceof Function) { + me.get = getter = formula; + } else { + me.get = getter = formula.get; + me.set = formula.set; + expressions = formula.bind; + if (formula.single) { + me.single = formula.single; + } + if (expressions) { + bindTo = expressions.bindTo; + if (bindTo) { + options = Ext.apply({}, expressions); + delete options.bindTo; + expressions = bindTo; + } + } + } + if (!getter) { + Ext.raise('Must specify a getter method for a formula'); + } + if (expressions) { + me.explicit = true; + } else { + expressions = getter.$expressions || me.parseFormula(getter); + } + me.binding = owner.bind(expressions, me.onChange, me, options); +}, destroy:function() { + var me = this, binding = me.binding, stub = me.stub; + if (binding) { + binding.destroy(); + me.binding = null; + } + if (stub) { + stub.formula = null; + } + me.callParent(); + me.getterFn = me.owner = null; +}, getFullName:function() { + return this.fullName || (this.fullName = this.stub.getFullName() + '\x3d' + this.callParent() + ')'); +}, getRawValue:function() { + return this.calculation; +}, onChange:function() { + if (!this.scheduled) { + this.schedule(); + } +}, parseFormula:function(formula) { + var str = formula.toString(), expressions = {$literal:true}, match, getterProp, formulaRe, expr; + match = this.argumentNamesRe.exec(str); + getterProp = match ? match[1] : 'get'; + formulaRe = Ext.app.bind.Formula.getFormulaParser(getterProp); + while (match = formulaRe.exec(str)) { + expr = match[2]; + expressions[expr] = expr; + } + expressions.$literal = true; + formula.$expressions = expressions; + return expressions; +}, react:function() { + var me = this, owner = me.owner, data = me.binding.lastValue, getterFn = me.getterFn, arg; + if (me.explicit) { + arg = data; + } else { + arg = owner.getFormulaFn(data); + } + me.settingValue = true; + me.stub.set(me.calculation = me.get.call(owner, arg)); + me.settingValue = false; + if (me.single) { + me.destroy(); + } +}, setValue:function(value) { + this.set.call(this.stub.owner, value); +}, privates:{getScheduler:function() { + var owner = this.owner; + return owner && owner.getScheduler(); +}, sort:function() { + var me = this, binding = me.binding; + if (!binding.destroyed) { + me.scheduler.sortItem(binding); + } +}}}); +Ext.define('Ext.app.bind.Template', {numberRe:/^(?:\d+(?:\.\d*)?)$/, stringRe:/^(?:["][^"]*["])$/, tokenRe:/\{[!]?(?:(?:(\d+)|([a-z_][\w\-\.]*))(?::([a-z_\.]+)(?:\(([^\)]*?)?\))?)?)\}/gi, formatRe:/^([a-z_]+)(?:\(([^\)]*?)?\))?$/i, buffer:null, slots:null, tokens:null, constructor:function(text) { + var me = this, initters = me._initters, name; + me.text = text; + for (name in initters) { + me[name] = initters[name]; + } +}, _initters:{apply:function(values, scope) { + return this.parse().apply(values, scope); +}, getTokens:function() { + return this.parse().getTokens(); +}}, apply:function(values, scope) { + var me = this, slots = me.slots, buffer = me.buffer, length = slots.length, i, slot, value; + for (i = 0; i < length; ++i) { + slot = slots[i]; + if (slot) { + if ((value = values[slot.pos]) == null) { + value = ''; + } + if (slot.not) { + value = !value; + } + if (slot.format) { + value = slot.format(value, scope); + } + buffer[i] = value; + } + } + return buffer.join(''); +}, getTokens:function() { + return this.tokens; +}, parse:function() { + var me = this, text = me.text, buffer = [], slots = [], tokens = [], tokenMap = {}, last = 0, tokenRe = me.tokenRe, pos = 0, fmt, i, length, match, s, slot, token; + for (i in me._initters) { + delete me[i]; + } + me.buffer = buffer; + me.slots = slots; + me.tokens = tokens; + while (match = tokenRe.exec(text)) { + length = match.index - last; + if (length) { + buffer[pos++] = text.substring(last, last + length); + last += length; + } + last += (s = match[0]).length; + slot = {fmt:fmt = match[3] || null, index:match[1] ? parseInt(match[1], 10) : null, not:s.charAt(1) === '!', token:match[2] || null}; + token = slot.token || String(slot.index); + if (token in tokenMap) { + slot.pos = tokenMap[token]; + } else { + tokenMap[token] = slot.pos = tokens.length; + tokens.push(token); + } + if (fmt) { + if (fmt.substring(0, 5) === 'this.') { + slot.fmt = fmt.substring(5); + } else { + if (!(fmt in Ext.util.Format)) { + Ext.raise('Invalid format specified: "' + fmt + '"'); + } + slot.scope = Ext.util.Format; + } + me.parseArgs(match[4], slot); + } + slots[pos++] = slot; + } + if (last < text.length) { + buffer[pos++] = text.substring(last); + } + return me; +}, parseArgs:function(argsString, slot) { + var me = this, numberRe = me.numberRe, stringRe = me.stringRe, arg, args, i, length; + if (!argsString) { + args = []; + } else { + if (argsString.indexOf(',') < 0) { + args = [argsString]; + } else { + args = argsString.split(','); + } + } + slot = slot || {}; + length = args.length; + slot.args = args; + for (i = 0; i < length; ++i) { + arg = args[i]; + if (arg === 'true') { + args[i] = true; + } else { + if (arg === 'false') { + args[i] = false; + } else { + if (arg === 'null') { + args[i] = null; + } else { + if (numberRe.test(arg)) { + args[i] = parseFloat(arg); + } else { + if (stringRe.test(arg)) { + args[i] = arg.substring(1, arg.length - 1); + } else { + slot.fn = Ext.functionFactory('return [' + argsString + '];'); + slot.format = me._formatEval; + break; + } + } + } + } + } + } + if (!slot.format) { + args.unshift(0); + slot.format = me._formatArgs; + } + return slot; +}, parseFormat:function(fmt) { + var me = this, match = me.formatRe.exec(fmt), slot = {fmt:fmt, scope:Ext.util.Format}, args; + if (!match) { + Ext.raise('Invalid format syntax: "' + slot + '"'); + } + args = match[2]; + if (args) { + slot.fmt = match[1]; + me.parseArgs(args, slot); + } else { + slot.args = [0]; + slot.format = me._formatArgs; + } + return slot; +}, _formatArgs:function(value, scope) { + scope = this.scope || scope; + this.args[0] = value; + return scope[this.fmt].apply(scope, this.args); +}, _formatEval:function(value, scope) { + var args = this.fn(); + args.unshift(value); + scope = this.scope || scope; + return scope[this.fmt].apply(scope, args); +}}); +Ext.define('Ext.app.bind.TemplateBinding', {extend:Ext.app.bind.BaseBinding, isTemplateBinding:true, lastValue:undefined, value:undefined, constructor:function(template, owner, callback, scope, options) { + var me = this, tpl = new Ext.app.bind.Template(template), tokens = tpl.getTokens(); + me.callParent([owner, callback, scope, options]); + me.tpl = tpl; + me.tokens = tokens; + tokens.$literal = true; + if (tokens.length) { + me.multiBinding = new Ext.app.bind.Multi(tokens, owner, me.onBindData, me); + } else { + me.isStatic = true; + me.onData(tpl.text); + } +}, destroy:function() { + var me = this; + Ext.destroy(me.multiBinding); + me.tpl = me.multiBinding = null; + me.callParent(); +}, getFullName:function() { + var multi = this.multiBinding; + return this.fullName || (this.fullName = '$' + (multi ? multi.getFullName() : this.callParent())); +}, getRawValue:function() { + return this.value; +}, getTemplateScope:function() { + return null; +}, isDescendantOf:function() { + return false; +}, isLoading:function() { + var multi = this.multiBinding; + return multi ? multi.isLoading() : false; +}, onBindData:function(data) { + this.onData(this.tpl.apply(data, this.getTemplateScope())); +}, onData:function(value) { + var me = this, lastValue = me.value; + if (lastValue !== (me.value = value)) { + me.lastValue = lastValue; + me.schedule(); + } +}, react:function() { + this.notify(this.value); +}, refresh:function() { + var multi = this.multiBinding; + if (multi) { + multi.refresh(); + } +}, privates:{sort:function() { + var multi = this.multiBinding; + if (multi) { + this.scheduler.sortItem(multi); + } +}}}); +Ext.define('Ext.data.ChainedStore', {extend:Ext.data.AbstractStore, alias:'store.chained', config:{source:null, remoteFilter:false, remoteSort:false}, mixins:[Ext.data.LocalStore], constructor:function() { + this.callParent(arguments); + this.getData().addObserver(this); +}, updateRemoteFilter:function(remoteFilter, oldRemoteFilter) { + if (remoteFilter) { + Ext.raise('Remote filtering cannot be used with chained stores.'); + } + this.callParent([remoteFilter, oldRemoteFilter]); +}, updateRemoteSort:function(remoteSort, oldRemoteSort) { + if (remoteSort) { + Ext.raise('Remote sorting cannot be used with chained stores.'); + } + this.callParent([remoteSort, oldRemoteSort]); +}, remove:function() { + var source = this.getSource(); + return source.remove.apply(source, arguments); +}, removeAll:function() { + var source = this.getSource(); + return source.removeAll(); +}, getData:function() { + var me = this, data = me.data; + if (!data) { + me.data = data = me.constructDataCollection(); + } + return data; +}, getSession:function() { + return this.getSource().getSession(); +}, applySource:function(source) { + if (source) { + var original = source, s; + source = Ext.data.StoreManager.lookup(source); + if (!source) { + s = 'Invalid source {0}specified for Ext.data.ChainedStore'; + s = Ext.String.format(s, typeof original === 'string' ? '"' + original + '" ' : ''); + Ext.raise(s); + } + } + return source; +}, updateSource:function(source, oldSource) { + var me = this, data; + if (oldSource) { + oldSource.removeObserver(me); + } + if (source) { + data = me.getData(); + data.setSource(source.getData()); + if (!me.isInitializing) { + me.fireEvent('refresh', me); + me.fireEvent('datachanged', me); + } + source.addObserver(me); + } +}, getModel:function() { + return this.getSource().getModel(); +}, getProxy:function() { + return null; +}, onCollectionAdd:function(collection, info) { + var me = this, records = info.items, lastChunk = !info.next; + if (me.ignoreCollectionAdd) { + return; + } + me.fireEvent('add', me, records, info.at); + if (lastChunk) { + me.fireEvent('datachanged', me); + } +}, onCollectionItemChange:function(collection, info) { + var me = this, record = info.item, modifiedFieldNames = info.modified || null, type = info.meta; + me.onUpdate(record, type, modifiedFieldNames, info); + me.fireEvent('update', me, record, type, modifiedFieldNames, info); +}, onUpdate:Ext.emptyFn, onCollectionRemove:function(collection, info) { + var me = this, records = info.items, lastChunk = !info.next; + if (me.ignoreCollectionRemove) { + return; + } + me.fireEvent('remove', me, records, info.at, false); + if (lastChunk) { + me.fireEvent('datachanged', me); + } +}, onSourceBeforeLoad:function(source, operation) { + this.fireEvent('beforeload', this, operation); +}, onSourceAfterLoad:function(source, records, successful, operation) { + this.fireEvent('load', this, records, successful, operation); +}, onFilterEndUpdate:function() { + this.callParent(arguments); + this.callObservers('Filter'); +}, onSourceBeforePopulate:function() { + this.ignoreCollectionAdd = true; + this.callObservers('BeforePopulate'); +}, onSourceAfterPopulate:function() { + var me = this; + me.ignoreCollectionAdd = false; + me.fireEvent('datachanged', me); + me.fireEvent('refresh', me); + this.callObservers('AfterPopulate'); +}, onSourceBeforeClear:function() { + this.ignoreCollectionRemove = true; + this.callObservers('BeforeClear'); +}, onSourceAfterClear:function() { + this.ignoreCollectionRemove = false; + this.callObservers('AfterClear'); +}, onSourceBeforeRemoveAll:function() { + this.ignoreCollectionRemove = true; + this.callObservers('BeforeRemoveAll'); +}, onSourceAfterRemoveAll:function(source, silent) { + var me = this; + me.ignoreCollectionRemove = false; + if (!silent) { + me.fireEvent('clear', me); + me.fireEvent('datachanged', me); + } + this.callObservers('AfterRemoveAll', [silent]); +}, onSourceFilter:function() { + var me = this; + me.fireEvent('refresh', me); + me.fireEvent('datachanged', me); +}, hasPendingLoad:function() { + return this.getSource().hasPendingLoad(); +}, isLoaded:function() { + return this.getSource().isLoaded(); +}, isLoading:function() { + return this.getSource().isLoading(); +}, onDestroy:function() { + var me = this; + me.observers = null; + me.setSource(null); + me.getData().destroy(true); + me.data = null; +}, privates:{isMoving:function() { + var source = this.getSource(); + return source.isMoving ? source.isMoving.apply(source, arguments) : false; +}, loadsSynchronously:function() { + return this.getSource().loadsSynchronously(); +}}}); +Ext.define('Ext.app.ViewModel', {mixins:[Ext.mixin.Factoryable, Ext.mixin.Identifiable], alias:'viewmodel.default', isViewModel:true, factoryConfig:{name:'viewModel'}, collectTimeout:100, expressionRe:/^(?:\{[!]?(?:(\d+)|([a-z_][\w\-\.]*))\})$/i, $configStrict:false, config:{data:true, formulas:{$value:null, merge:function(newValue, currentValue, target, mixinClass) { + return this.mergeNew(newValue, currentValue, target, mixinClass); +}}, links:null, parent:null, root:true, scheduler:null, schema:'default', session:null, stores:null, view:null}, constructor:function(config) { + this.hadValue = {}; + this.bindings = {}; + this.initConfig(config); +}, destroy:function() { + var me = this, scheduler = me._scheduler, stores = me.storeInfo, parent = me.getParent(), task = me.collectTask, children = me.children, bindings = me.bindings, key, store, autoDestroy; + me.destroying = true; + if (task) { + task.cancel(); + me.collectTask = null; + } + if (children) { + for (key in children) { + children[key].destroy(); + } + } + if (stores) { + for (key in stores) { + store = stores[key]; + autoDestroy = store.autoDestroy; + if (autoDestroy || !store.$wasInstance && autoDestroy !== false) { + store.destroy(); + } + Ext.destroy(store.$binding); + } + } + if (parent) { + parent.unregisterChild(me); + } + me.getRoot().destroy(); + for (key in bindings) { + bindings[key].destroy(); + } + if (scheduler && scheduler.$owner === me) { + scheduler.$owner = null; + scheduler.destroy(); + } + me.hadValue = me.children = me.storeInfo = me._session = me._view = me._scheduler = me.bindings = me._root = me._parent = me.formulaFn = me.$formulaData = null; + me.destroying = false; + me.callParent(); +}, bind:function(descriptor, callback, scope, options) { + var me = this, binding, track; + scope = scope || me; + if (!options && descriptor.bindTo !== undefined && !Ext.isString(descriptor)) { + options = descriptor; + descriptor = options.bindTo; + } + if (!Ext.isString(descriptor)) { + binding = new Ext.app.bind.Multi(descriptor, me, callback, scope, options); + track = true; + } else { + if (me.expressionRe.test(descriptor)) { + descriptor = descriptor.substring(1, descriptor.length - 1); + binding = me.bindExpression(descriptor, callback, scope, options); + } else { + binding = new Ext.app.bind.TemplateBinding(descriptor, me, callback, scope, options); + track = true; + } + } + if (track) { + me.bindings[binding.id] = binding; + } + return binding; +}, getSession:function() { + var me = this, session = me._session, parent; + if (!session && (parent = me.getParent())) { + me.setSession(session = parent.getSession()); + } + return session || null; +}, getStore:function(key) { + var storeInfo = this.storeInfo, store; + if (storeInfo) { + store = storeInfo[key]; + } + return store || null; +}, linkTo:function(key, reference) { + var me = this, stub, create, id, modelType, linkStub, rec; + if (key.indexOf('.') > -1) { + Ext.raise('Links can only be at the top-level: "' + key + '"'); + } + if (reference.isModel) { + reference = {type:reference.entityName, id:reference.id}; + } + modelType = reference.type || reference.reference; + create = reference.create; + if (modelType) { + id = reference.id; + if (!reference.create && Ext.isEmpty(id)) { + Ext.raise('No id specified. To create a phantom model, specify "create: true" as part of the reference.'); + } + if (create) { + id = undefined; + } + rec = me.getRecord(modelType, id); + if (Ext.isObject(create)) { + rec.set(create); + rec.commit(); + rec.phantom = true; + } + stub = me.getRoot().createStubChild(key); + stub.set(rec); + } else { + stub = me.getStub(key); + if (!stub.isLinkStub) { + linkStub = new Ext.app.bind.LinkStub(me, stub.name); + stub.graft(linkStub); + stub = linkStub; + } + stub.link(reference); + } +}, notify:function() { + this.getScheduler().notify(); +}, get:function(path) { + return this.getStub(path).getValue(); +}, set:function(path, value) { + var me = this, obj, stub; + me.getData(); + if (value === undefined && path && path.constructor === Object) { + stub = me.getRoot(); + value = path; + } else { + if (path && path.indexOf('.') < 0) { + obj = {}; + obj[path] = value; + value = obj; + stub = me.getRoot(); + } else { + stub = me.getStub(path); + } + } + stub.set(value); +}, privates:{registerChild:function(child) { + var children = this.children; + if (!children) { + this.children = children = {}; + } + children[child.getId()] = child; +}, unregisterChild:function(child) { + var children = this.children; + if (!this.destroying && children) { + delete children[child.getId()]; + } +}, getRecord:function(type, id) { + var session = this.getSession(), Model = type, hasId = id !== undefined, record; + if (session) { + if (hasId) { + record = session.getRecord(type, id); + } else { + record = session.createRecord(type); + } + } else { + if (!Model.$isClass) { + Model = this.getSchema().getEntity(Model); + if (!Model) { + Ext.raise('Invalid model name: ' + type); + } + } + if (hasId) { + record = Model.createWithId(id); + record.load(); + } else { + record = new Model; + } + } + return record; +}, notFn:function(v) { + return !v; +}, bindExpression:function(descriptor, callback, scope, options) { + var ch = descriptor.charAt(0), not = ch === '!', path = not ? descriptor.substring(1) : descriptor, stub = this.getStub(path), binding; + binding = stub.bind(callback, scope, options); + if (not) { + binding.transform = this.notFn; + } + return binding; +}, applyScheduler:function(scheduler) { + if (scheduler && !scheduler.isInstance) { + scheduler = new Ext.util.Scheduler(scheduler); + scheduler.$owner = this; + } + return scheduler; +}, getScheduler:function() { + var me = this, scheduler = me._scheduler, parent; + if (!scheduler) { + if (!(parent = me.getParent())) { + scheduler = new Ext.util.Scheduler({preSort:'kind,-depth'}); + scheduler.$owner = me; + } else { + scheduler = parent.getScheduler(); + } + me.setScheduler(scheduler); + } + return scheduler; +}, getStub:function(bindDescr) { + var root = this.getRoot(); + return bindDescr ? root.getChild(bindDescr) : root; +}, collect:function() { + var me = this, parent = me.getParent(), task = me.collectTask; + if (parent) { + parent.collect(); + return; + } + if (!task) { + task = me.collectTask = new Ext.util.DelayedTask(me.doCollect, me); + } + if (me.collectTimeout === 0) { + me.doCollect(); + } else { + task.delay(me.collectTimeout); + } +}, doCollect:function() { + var children = this.children, key; + if (children) { + for (key in children) { + children[key].doCollect(); + } + } + this.getRoot().collect(); +}, onBindDestroy:function(binding, fromChild) { + var me = this, parent; + if (me.destroying) { + return; + } + if (!fromChild) { + delete me.bindings[binding.id]; + } + parent = me.getParent(); + if (parent) { + parent.onBindDestroy(binding, true); + } else { + me.collect(); + } +}, applyData:function(newData, data) { + var me = this, linkData, parent; + me.getSession(); + if (!data) { + parent = me.getParent(); + me.linkData = linkData = parent ? Ext.Object.chain(parent.getData()) : {}; + me.data = me._data = Ext.Object.chain(linkData); + } + if (newData && newData.constructor === Object) { + me.getRoot().set(newData); + } +}, applyParent:function(parent) { + if (parent) { + parent.registerChild(this); + } + return parent; +}, applyStores:function(stores) { + var me = this, root = me.getRoot(), key, cfg, storeBind, stub, listeners, isStatic; + me.storeInfo = {}; + me.listenerScopeFn = function() { + return me.getView().getInheritedConfig('defaultListenerScope'); + }; + for (key in stores) { + cfg = stores[key]; + if (cfg.isStore) { + cfg.$wasInstance = true; + me.setupStore(cfg, key); + continue; + } else { + if (Ext.isString(cfg)) { + cfg = {source:cfg}; + } else { + cfg = Ext.apply({}, cfg); + } + } + listeners = cfg.listeners; + delete cfg.listeners; + storeBind = me.bind(cfg, me.onStoreBind, me, {trackStatics:true}); + if (storeBind.isStatic()) { + storeBind.destroy(); + me.createStore(key, cfg, listeners); + } else { + storeBind.$storeKey = key; + storeBind.$listeners = listeners; + stub = root.createStubChild(key); + stub.setStore(storeBind); + } + } +}, onStoreBind:function(cfg, oldValue, binding) { + var info = this.storeInfo, key = binding.$storeKey, store = info[key], proxy; + if (!store) { + this.createStore(key, cfg, binding.$listeners, binding); + } else { + cfg = Ext.merge({}, binding.pruneStaticKeys()); + proxy = cfg.proxy; + delete cfg.type; + delete cfg.model; + delete cfg.fields; + delete cfg.proxy; + delete cfg.listeners; + if (proxy) { + delete proxy.reader; + delete proxy.writer; + store.getProxy().setConfig(proxy); + } + store.setConfig(cfg); + } +}, createStore:function(key, cfg, listeners, binding) { + var session = this.getSession(), store; + cfg = Ext.apply({}, cfg); + if (cfg.session) { + cfg.session = session; + } + if (cfg.source) { + cfg.type = cfg.type || 'chained'; + } + cfg.listeners = listeners; + store = Ext.Factory.store(cfg); + store.$binding = binding; + this.setupStore(store, key); +}, setupStore:function(store, key) { + store.resolveListenerScope = this.listenerScopeFn; + this.storeInfo[key] = store; + this.set(key, store); +}, applyFormulas:function(formulas) { + var me = this, root = me.getRoot(), name, stub; + me.getData(); + for (name in formulas) { + if (name.indexOf('.') >= 0) { + Ext.raise('Formula names cannot contain dots: ' + name); + } + root.createStubChild(name); + stub = me.getStub(name); + stub.setFormula(formulas[name]); + } + return formulas; +}, applyLinks:function(links) { + for (var link in links) { + this.linkTo(link, links[link]); + } +}, applySchema:function(schema) { + return Ext.data.schema.Schema.get(schema); +}, applyRoot:function() { + var root = new Ext.app.bind.RootStub(this), parent = this.getParent(); + if (parent) { + root.depth = parent.getRoot().depth - 1000; + } + return root; +}, getFormulaFn:function(data) { + var me = this, fn = me.formulaFn; + if (!fn) { + fn = me.formulaFn = function(name) { + return me.$formulaData[name]; + }; + } + me.$formulaData = data; + return fn; +}}}); +Ext.define('Ext.app.domain.Controller', {extend:Ext.app.EventDomain, singleton:true, type:'controller', prefix:'controller.', idMatchRe:/^\#/, constructor:function() { + var me = this; + me.callParent(); + me.monitor(Ext.app.BaseController); +}, match:function(target, selector) { + var result = false, alias = target.alias; + if (selector === '*') { + result = true; + } else { + if (selector === '#') { + result = !!target.isApplication; + } else { + if (this.idMatchRe.test(selector)) { + result = target.getId() === selector.substring(1); + } else { + if (alias) { + result = Ext.Array.indexOf(alias, this.prefix + selector) > -1; + } + } + } + } + return result; +}}); +Ext.define('Ext.data.PageMap', {extend:Ext.util.LruCache, config:{store:null, pageSize:0, rootProperty:''}, clear:function(initial) { + var me = this; + me.pageMapGeneration = (me.pageMapGeneration || 0) + 1; + me.indexMap = {}; + me.callParent([initial]); +}, updatePageSize:function(value, oldValue) { + if (oldValue != null) { + throw 'pageMap page size may not be changed'; + } +}, forEach:function(fn, scope) { + var me = this, pageNumbers = Ext.Object.getKeys(me.map), pageCount = pageNumbers.length, pageSize = me.getPageSize(), i, j, pageNumber, page, len; + for (i = 0; i < pageCount; i++) { + pageNumbers[i] = +pageNumbers[i]; + } + Ext.Array.sort(pageNumbers, Ext.Array.numericSortFn); + scope = scope || me; + for (i = 0; i < pageCount; i++) { + pageNumber = pageNumbers[i]; + page = me.getPage(pageNumber); + len = page.length; + for (j = 0; j < len; j++) { + if (fn.call(scope, page[j], (pageNumber - 1) * pageSize + j) === false) { + return; + } + } + } +}, findBy:function(fn, scope) { + var me = this, result = null; + scope = scope || me; + me.forEach(function(rec, index) { + if (fn.call(scope, rec, index)) { + result = rec; + return false; + } + }); + return result; +}, findIndexBy:function(fn, scope) { + var me = this, result = -1; + scope = scope || me; + me.forEach(function(rec, index) { + if (fn.call(scope, rec)) { + result = index; + return false; + } + }); + return result; +}, find:function(property, value, start, startsWith, endsWith, ignoreCase) { + if (Ext.isEmpty(value, false)) { + return null; + } + var regex = Ext.String.createRegex(value, startsWith, endsWith, ignoreCase), root = this.getRootProperty(); + return this.findBy(function(item) { + return item && regex.test((root ? item[root] : item)[property]); + }, null, start); +}, findIndex:function(property, value, start, startsWith, endsWith, ignoreCase) { + if (Ext.isEmpty(value, false)) { + return null; + } + var regex = Ext.String.createRegex(value, startsWith, endsWith, ignoreCase), root = this.getRootProperty(); + return this.findIndexBy(function(item) { + return item && regex.test((root ? item[root] : item)[property]); + }, null, start); +}, getPageFromRecordIndex:function(index) { + return Math.floor(index / this.getPageSize()) + 1; +}, addAll:function(records) { + if (this.getCount()) { + Ext.raise('Cannot addAll to a non-empty PageMap'); + } + this.addPage(1, records); +}, addPage:function(pageNumber, records) { + var me = this, pageSize = me.getPageSize(), lastPage = pageNumber + Math.floor((records.length - 1) / pageSize), storeIndex = (pageNumber - 1) * pageSize, indexMap = me.indexMap, page, i, len, startIdx; + for (startIdx = 0; pageNumber <= lastPage; pageNumber++, startIdx += pageSize) { + page = Ext.Array.slice(records, startIdx, startIdx + pageSize); + for (i = 0, len = page.length; i < len; i++) { + indexMap[page[i].internalId] = storeIndex++; + } + me.add(pageNumber, page); + me.fireEvent('pageadd', me, pageNumber, page); + } +}, getCount:function() { + var result = this.callParent(); + if (result) { + result = (result - 1) * this.getPageSize() + this.last.value.length; + } + return result; +}, getByInternalId:function(internalId) { + var index = this.indexMap[internalId]; + if (index != null) { + return this.getAt(index); + } +}, indexOf:function(record) { + var result = -1; + if (record) { + result = this.indexMap[record.internalId]; + if (result == null) { + result = -1; + } + } + return result; +}, insert:function() { + Ext.raise('insert operation not suppported into buffered Store'); +}, remove:function() { + Ext.raise('remove operation not suppported from buffered Store'); +}, removeAt:function() { + Ext.raise('removeAt operation not suppported from buffered Store'); +}, removeAtKey:function(page) { + var me = this, thePage = me.getPage(page), len, i, result; + if (thePage) { + if (me.fireEvent('beforepageremove', me, page, thePage) !== false) { + len = thePage.length; + for (i = 0; i < len; i++) { + delete me.indexMap[thePage[i].internalId]; + } + result = me.callParent(arguments); + me.fireEvent('pageremove', me, page, thePage); + thePage.length = 0; + } + } + return result; +}, getPage:function(pageNumber) { + return this.get(pageNumber); +}, hasRange:function(start, end) { + var me = this, pageNumber = me.getPageFromRecordIndex(start), endPageNumber = me.getPageFromRecordIndex(end); + for (; pageNumber <= endPageNumber; pageNumber++) { + if (!me.hasPage(pageNumber)) { + return false; + } + } + return (endPageNumber - 1) * me._pageSize + me.getPage(endPageNumber).length > end; +}, hasPage:function(pageNumber) { + return !!this.get(pageNumber); +}, peekPage:function(pageNumber) { + return this.map[pageNumber]; +}, getAt:function(index) { + return this.getRange(index, index + 1)[0]; +}, getRange:function(start, end) { + end--; + if (!this.hasRange(start, end)) { + Ext.raise('PageMap asked for range which it does not have'); + } + var me = this, Array = Ext.Array, pageSize = me.getPageSize(), startPageNumber = me.getPageFromRecordIndex(start), endPageNumber = me.getPageFromRecordIndex(end), dataStart = (startPageNumber - 1) * pageSize, dataEnd = endPageNumber * pageSize - 1, pageNumber = startPageNumber, result = [], sliceBegin, sliceEnd, doSlice; + for (; pageNumber <= endPageNumber; pageNumber++) { + if (pageNumber === startPageNumber) { + sliceBegin = start - dataStart; + doSlice = sliceBegin > 0; + } else { + sliceBegin = 0; + doSlice = false; + } + if (pageNumber === endPageNumber) { + sliceEnd = pageSize - (dataEnd - end); + doSlice = doSlice || sliceEnd < pageSize; + } + if (doSlice) { + Array.push(result, Array.slice(me.getPage(pageNumber), sliceBegin, sliceEnd)); + } else { + Array.push(result, me.getPage(pageNumber)); + } + } + return result; +}, destroy:function() { + this.callParent(); + this.indexMap = {}; +}}); +Ext.define('Ext.data.BufferedStore', {extend:Ext.data.ProxyStore, alias:'store.buffered', isBufferedStore:true, buffered:true, config:{data:0, pageSize:25, remoteSort:true, remoteFilter:true, sortOnLoad:false, purgePageCount:5, trailingBufferZone:25, leadingBufferZone:200, defaultViewSize:100, viewSize:0, trackRemoved:false}, applyData:function(data) { + var dataCollection = this.data || (this.data = this.createDataCollection()); + if (data && data !== true) { + Ext.raise('Cannot load a buffered store with local data - the store is a map of remote data'); + } + return dataCollection; +}, applyProxy:function(proxy) { + proxy = this.callParent([proxy]); + if (proxy && proxy.setEnablePaging) { + proxy.setEnablePaging(true); + } + return proxy; +}, createFiltersCollection:function() { + return new Ext.util.FilterCollection; +}, createSortersCollection:function() { + return new Ext.util.SorterCollection; +}, updateRemoteFilter:function(remoteFilter, oldRemoteFilter) { + if (remoteFilter === false) { + Ext.raise('Buffered stores are always remotely filtered.'); + } + this.callParent([remoteFilter, oldRemoteFilter]); +}, updateRemoteSort:function(remoteSort, oldRemoteSort) { + if (remoteSort === false) { + Ext.raise('Buffered stores are always remotely sorted.'); + } + this.callParent([remoteSort, oldRemoteSort]); +}, updateTrackRemoved:function(value) { + if (value !== false) { + Ext.raise('Cannot use trackRemoved with a buffered store.'); + } + this.callParent(arguments); +}, updateGroupField:function(field) { + this.group(field); +}, getGrouper:function() { + return this.grouper; +}, isGrouped:function() { + return !!this.grouper; +}, createDataCollection:function() { + var me = this, result = new Ext.data.PageMap({store:me, rootProperty:'data', pageSize:me.getPageSize(), maxSize:me.getPurgePageCount(), listeners:{clear:me.onPageMapClear, scope:me}}); + me.relayEvents(result, ['beforepageremove', 'pageadd', 'pageremove']); + me.pageRequests = {}; + return result; +}, add:function() { + Ext.raise('add method may not be called on a buffered store - the store is a map of remote data'); +}, insert:function() { + Ext.raise('insert method may not be called on a buffered store - the store is a map of remote data'); +}, removeAll:function(silent) { + var me = this, data = me.getData(); + if (data) { + if (silent) { + me.suspendEvent('clear'); + } + data.clear(); + if (silent) { + me.resumeEvent('clear'); + } + } +}, flushLoad:function() { + var me = this, options = me.pendingLoadOptions; + me.clearLoadTask(); + if (!options) { + return; + } + me.getData().clear(); + options.page = 1; + options.start = 0; + options.limit = me.getViewSize() || me.getDefaultViewSize(); + options.loadCallback = options.callback; + options.callback = null; + return me.loadToPrefetch(options); +}, reload:function(options) { + var me = this, data = me.getData(), lastTotal = Number.MAX_VALUE, startIdx, endIdx, startPage, endPage, i, waitForReload, bufferZone, records; + if (!options) { + options = {}; + } + if (me.loading || me.fireEvent('beforeload', me, options) === false) { + return; + } + waitForReload = function() { + var newCount = me.totalCount, oldRequestSize = endIdx - startIdx; + if (endIdx >= newCount) { + endIdx = newCount - 1; + startIdx = Math.max(endIdx - oldRequestSize, 0); + } + if (me.rangeCached(startIdx, Math.min(endIdx, me.totalCount))) { + me.loading = false; + data.un('pageadd', waitForReload); + records = data.getRange(startIdx, endIdx + 1); + me.fireEvent('load', me, records, true); + me.fireEvent('refresh', me); + } + }; + bufferZone = Math.ceil((me.getLeadingBufferZone() + me.getTrailingBufferZone()) / 2); + if (me.lastRequestStart && me.preserveScrollOnReload) { + startIdx = me.lastRequestStart; + endIdx = me.lastRequestEnd; + lastTotal = me.getTotalCount(); + } else { + startIdx = options.start || 0; + endIdx = startIdx + (options.count || me.getPageSize()) - 1; + } + data.clear(true); + delete me.totalCount; + startIdx = Math.max(startIdx - bufferZone, 0); + endIdx = Math.min(endIdx + bufferZone, lastTotal); + startPage = me.getPageFromRecordIndex(startIdx); + endPage = me.getPageFromRecordIndex(endIdx); + me.loading = true; + options.waitForReload = waitForReload; + data.on('pageadd', waitForReload); + for (i = startPage; i <= endPage; i++) { + me.prefetchPage(i, options); + } +}, filter:function() { + if (!this.getRemoteFilter()) { + Ext.raise('Local filtering may not be used on a buffered store - the store is a map of remote data'); + } + this.callParent(arguments); +}, filterBy:function(fn, scope) { + Ext.raise('Local filtering may not be used on a buffered store - the store is a map of remote data'); +}, loadData:function(data, append) { + Ext.raise('LoadData may not be used on a buffered store - the store is a map of remote data'); +}, loadPage:function(page, options) { + var me = this; + options = options || {}; + options.page = me.currentPage = page; + options.start = (page - 1) * me.getPageSize(); + options.limit = me.getViewSize() || me.getDefaultViewSize(); + options.loadCallback = options.callback; + options.callback = null; + return me.loadToPrefetch(options); +}, clearData:function(isLoad) { + var me = this, data = me.getData(); + if (data) { + data.clear(); + } +}, getCount:function() { + return this.totalCount || 0; +}, getRange:function(start, end, options) { + var me = this, maxIndex = me.totalCount - 1, lastRequestStart = me.lastRequestStart, result = [], data = me.getData(), pageAddHandler, requiredStart, requiredEnd, requiredStartPage, requiredEndPage; + options = Ext.apply({prefetchStart:start, prefetchEnd:end}, options); + end = end >= me.totalCount ? maxIndex : end; + requiredStart = start === 0 ? 0 : start - 1; + requiredEnd = end === maxIndex ? end : end + 1; + me.lastRequestStart = start; + me.lastRequestEnd = end; + if (me.rangeCached(requiredStart, requiredEnd)) { + me.onRangeAvailable(options); + result = data.getRange(start, end + 1); + } else { + me.fireEvent('cachemiss', me, start, end); + requiredStartPage = me.getPageFromRecordIndex(requiredStart); + requiredEndPage = me.getPageFromRecordIndex(requiredEnd); + pageAddHandler = function(pageMap, page, records) { + if (page >= requiredStartPage && page <= requiredEndPage && me.rangeCached(requiredStart, requiredEnd)) { + me.fireEvent('cachefilled', me, start, end); + data.un('pageadd', pageAddHandler); + me.onRangeAvailable(options); + } + }; + data.on('pageadd', pageAddHandler); + me.prefetchRange(start, end); + } + me.primeCache(start, end, start < lastRequestStart ? -1 : 1); + return result; +}, getById:function(id) { + var result = this.data.findBy(function(record) { + return record.getId() === id; + }); + return result; +}, getAt:function(index) { + var data = this.getData(); + if (data.hasRange(index, index)) { + return data.getAt(index); + } +}, getByInternalId:function(internalId) { + return this.data.getByInternalId(internalId); +}, contains:function(record) { + return this.indexOf(record) > -1; +}, indexOf:function(record) { + return this.getData().indexOf(record); +}, indexOfId:function(id) { + return this.indexOf(this.getById(id)); +}, group:function(grouper, direction) { + var me = this, oldGrouper; + if (grouper && typeof grouper === 'string') { + oldGrouper = me.grouper; + if (!oldGrouper) { + me.grouper = new Ext.util.Grouper({property:grouper, direction:direction || 'ASC', root:'data'}); + } else { + if (direction === undefined) { + oldGrouper.toggle(); + } else { + oldGrouper.setDirection(direction); + } + } + } else { + me.grouper = grouper ? me.getSorters().decodeSorter(grouper, 'Ext.util.Grouper') : null; + } + me.getData().clear(); + me.loadPage(1, {callback:function() { + me.fireEvent('groupchange', me, me.getGrouper()); + }}); +}, getPageFromRecordIndex:function(index) { + return Math.floor(index / this.getPageSize()) + 1; +}, calculatePageCacheSize:function(rangeSizeRequested) { + var me = this, purgePageCount = me.getPurgePageCount(); + return purgePageCount ? Math.max(me.getData().getMaxSize() || 0, Math.ceil((rangeSizeRequested + me.getTrailingBufferZone() + me.getLeadingBufferZone()) / me.getPageSize()) * 2 + purgePageCount) : 0; +}, loadToPrefetch:function(options) { + var me = this, prefetchOptions = options, i, records, dataSetSize, startIdx = options.start, endIdx = options.start + options.limit - 1, rangeSizeRequested = me.getViewSize() || options.limit, loadEndIdx = Math.min(endIdx, options.start + rangeSizeRequested - 1), startPage = me.getPageFromRecordIndex(Math.max(startIdx - me.getTrailingBufferZone(), 0)), endPage = me.getPageFromRecordIndex(endIdx + me.getLeadingBufferZone()), data = me.getData(), callbackFn = function() { + records = records || []; + if (options.loadCallback) { + options.loadCallback.call(options.scope || me, records, operation, true); + } + if (options.callback) { + options.callback.call(options.scope || me, records, startIdx || 0, endIdx || 0, options); + } + }, fireEventsFn = function() { + me.fireEvent('datachanged', me); + me.fireEvent('refresh', me); + me.fireEvent('load', me, records, true); + }, waitForRequestedRange = function() { + if (me.rangeCached(startIdx, loadEndIdx)) { + me.loading = false; + records = data.getRange(startIdx, loadEndIdx + 1); + data.un('pageadd', waitForRequestedRange); + if (me.hasListeners.guaranteedrange) { + me.guaranteeRange(startIdx, loadEndIdx, options.callback, options.scope); + } + callbackFn(); + fireEventsFn(); + } + }, operation; + if (isNaN(me.pageSize) || !me.pageSize) { + Ext.raise('Buffered store configured without a pageSize', me); + } + data.setMaxSize(me.calculatePageCacheSize(rangeSizeRequested)); + if (me.fireEvent('beforeload', me, options) !== false) { + delete me.totalCount; + me.loading = true; + if (options.callback) { + prefetchOptions = Ext.apply({}, options); + delete prefetchOptions.callback; + } + me.on('prefetch', function(store, records, successful, op) { + operation = op; + if (successful) { + if (dataSetSize = me.getTotalCount()) { + data.on('pageadd', waitForRequestedRange); + loadEndIdx = Math.min(loadEndIdx, dataSetSize - 1); + endPage = me.getPageFromRecordIndex(Math.min(loadEndIdx + me.getLeadingBufferZone(), dataSetSize - 1)); + for (i = startPage + 1; i <= endPage; ++i) { + me.prefetchPage(i, prefetchOptions); + } + } else { + callbackFn(); + fireEventsFn(); + } + } else { + me.loading = false; + callbackFn(); + me.fireEvent('load', me, records, false); + } + }, null, {single:true}); + me.prefetchPage(startPage, prefetchOptions); + } +}, prefetch:function(options) { + var me = this, pageSize = me.getPageSize(), data = me.getData(), operation, existingPageRequest; + if (pageSize) { + if (me.lastPageSize && pageSize != me.lastPageSize) { + Ext.raise('pageSize cannot be dynamically altered'); + } + if (!data.getPageSize()) { + data.setPageSize(pageSize); + } + } else { + me.pageSize = data.setPageSize(pageSize = options.limit); + } + me.lastPageSize = pageSize; + if (!options.page) { + options.page = me.getPageFromRecordIndex(options.start); + options.start = (options.page - 1) * pageSize; + options.limit = Math.ceil(options.limit / pageSize) * pageSize; + } + existingPageRequest = me.pageRequests[options.page]; + if (!existingPageRequest || existingPageRequest.getOperation().pageMapGeneration !== data.pageMapGeneration) { + options = Ext.apply({action:'read', filters:me.getFilters().items, sorters:me.getSorters().items, grouper:me.getGrouper(), internalCallback:me.onProxyPrefetch, internalScope:me}, options); + operation = me.createOperation('read', options); + operation.pageMapGeneration = data.pageMapGeneration; + if (me.fireEvent('beforeprefetch', me, operation) !== false) { + me.pageRequests[options.page] = operation.execute(); + if (me.getProxy().isSynchronous) { + delete me.pageRequests[options.page]; + } + } + } + return me; +}, onPageMapClear:function() { + var me = this, loadingFlag = me.wasLoading, reqs = me.pageRequests, data = me.getData(), page; + data.clearListeners(); + data.on('clear', me.onPageMapClear, me); + me.relayEvents(data, ['beforepageremove', 'pageadd', 'pageremove']); + me.loading = true; + me.totalCount = 0; + for (page in reqs) { + if (reqs.hasOwnProperty(page)) { + reqs[page].getOperation().abort(); + } + } + me.fireEvent('clear', me); + me.loading = loadingFlag; +}, prefetchPage:function(page, options) { + var me = this, pageSize = me.getPageSize(), start = (page - 1) * pageSize, total = me.totalCount; + if (total !== undefined && me.data.getCount() === total) { + return; + } + me.prefetch(Ext.applyIf({page:page, start:start, limit:pageSize}, options)); +}, onProxyPrefetch:function(operation) { + if (this.destroyed) { + return; + } + var me = this, resultSet = operation.getResultSet(), records = operation.getRecords(), successful = operation.wasSuccessful(), page = operation.getPage(), waitForReload = operation.waitForReload, oldTotal = me.totalCount, requests = me.pageRequests, key, op; + if (operation.pageMapGeneration === me.getData().pageMapGeneration) { + if (resultSet) { + me.totalCount = resultSet.getTotal(); + if (me.totalCount !== oldTotal) { + me.fireEvent('totalcountchange', me.totalCount); + } + } + if (page !== undefined) { + delete me.pageRequests[page]; + } + me.loading = false; + me.fireEvent('prefetch', me, records, successful, operation); + if (successful) { + if (me.totalCount === 0) { + if (waitForReload) { + for (key in requests) { + op = requests[key].getOperation(); + if (op.waitForReload === waitForReload) { + delete op.waitForReload; + } + } + me.getData().un('pageadd', waitForReload); + me.fireEvent('load', me, [], true); + me.fireEvent('refresh', me); + } + } else { + me.cachePage(records, operation.getPage()); + } + } + Ext.callback(operation.getCallback(), operation.getScope() || me, [records, operation, successful]); + } +}, cachePage:function(records, page) { + var me = this, len = records.length, i; + if (!Ext.isDefined(me.totalCount)) { + me.totalCount = records.length; + me.fireEvent('totalcountchange', me.totalCount); + } + for (i = 0; i < len; i++) { + records[i].join(me); + } + me.getData().addPage(page, records); +}, rangeCached:function(start, end) { + return this.getData().hasRange(start, end); +}, pageCached:function(page) { + return this.getData().hasPage(page); +}, pagePending:function(page) { + return !!this.pageRequests[page]; +}, rangeSatisfied:function(start, end) { + return this.rangeCached(start, end); +}, onRangeAvailable:function(options) { + var me = this, totalCount = me.getTotalCount(), start = options.prefetchStart, end = options.prefetchEnd > totalCount - 1 ? totalCount - 1 : options.prefetchEnd, range; + end = Math.max(0, end); + if (start > end) { + Ext.log({level:'warn', msg:'Start (' + start + ') was greater than end (' + end + ') for the range of records requested (' + start + '-' + options.prefetchEnd + ')' + (this.storeId ? ' from store "' + this.storeId + '"' : '')}); + } + range = me.getData().getRange(start, end + 1); + if (options.fireEvent !== false) { + me.fireEvent('guaranteedrange', range, start, end, options); + } + if (options.callback) { + options.callback.call(options.scope || me, range, start, end, options); + } +}, guaranteeRange:function(start, end, callback, scope, options) { + options = Ext.apply({callback:callback, scope:scope}, options); + this.getRange(start, end + 1, options); +}, prefetchRange:function(start, end) { + var me = this, startPage, endPage, page, data = me.getData(); + if (!me.rangeCached(start, end)) { + startPage = me.getPageFromRecordIndex(start); + endPage = me.getPageFromRecordIndex(end); + data.setMaxSize(me.calculatePageCacheSize(end - start + 1)); + for (page = startPage; page <= endPage; page++) { + if (!me.pageCached(page)) { + me.prefetchPage(page); + } + } + } +}, primeCache:function(start, end, direction) { + var me = this, leadingBufferZone = me.getLeadingBufferZone(), trailingBufferZone = me.getTrailingBufferZone(), pageSize = me.getPageSize(), totalCount = me.totalCount; + if (direction === -1) { + start = Math.max(start - leadingBufferZone, 0); + end = Math.min(end + trailingBufferZone, totalCount - 1); + } else { + if (direction === 1) { + start = Math.max(Math.min(start - trailingBufferZone, totalCount - pageSize), 0); + end = Math.min(end + leadingBufferZone, totalCount - 1); + } else { + start = Math.min(Math.max(Math.floor(start - (leadingBufferZone + trailingBufferZone) / 2), 0), totalCount - me.pageSize); + end = Math.min(Math.max(Math.ceil(end + (leadingBufferZone + trailingBufferZone) / 2), 0), totalCount - 1); + } + } + me.prefetchRange(start, end); +}, sort:function(field, direction, mode) { + if (arguments.length === 0) { + this.clearAndLoad(); + } else { + this.getSorters().addSort(field, direction, mode); + } +}, onSorterEndUpdate:function() { + var me = this, sorters = me.getSorters().getRange(); + if (sorters.length) { + me.fireEvent('beforesort', me, sorters); + me.clearAndLoad({callback:function() { + me.fireEvent('sort', me, sorters); + }}); + } else { + me.fireEvent('sort', me, sorters); + } +}, clearAndLoad:function(options) { + this.getData().clear(); + this.loadPage(1, options); +}, privates:{isLast:function(record) { + return this.indexOf(record) === this.getTotalCount() - 1; +}, isMoving:function() { + return false; +}}}); +Ext.define('Ext.mixin.Queryable', {mixinId:'queryable', isQueryable:true, query:function(selector) { + selector = selector || '*'; + return Ext.ComponentQuery.query(selector, this.getQueryRoot()); +}, queryBy:function(fn, scope) { + var out = [], items = this.getQueryRoot().getRefItems(true), i = 0, len = items.length, item; + for (; i < len; ++i) { + item = items[i]; + if (fn.call(scope || item, item) !== false) { + out.push(item); + } + } + return out; +}, queryById:function(id) { + return this.down(Ext.makeIdSelector(id)); +}, child:function(selector) { + var children = this.getQueryRoot().getRefItems(); + if (selector && selector.isComponent) { + return this.matchById(children, selector.getItemId()); + } + if (selector) { + children = Ext.ComponentQuery.query(selector, children); + } + if (children.length) { + return children[0]; + } + return null; +}, down:function(selector) { + if (selector && selector.isComponent) { + return this.matchById(this.getRefItems(true), selector.getItemId()); + } + selector = selector || ''; + return this.query(selector)[0] || null; +}, visitPreOrder:function(selector, fn, scope, extraArgs) { + Ext.ComponentQuery._visit(true, selector, this.getQueryRoot(), fn, scope, extraArgs); +}, visitPostOrder:function(selector, fn, scope, extraArgs) { + Ext.ComponentQuery._visit(false, selector, this.getQueryRoot(), fn, scope, extraArgs); +}, getRefItems:function() { + return []; +}, getQueryRoot:function() { + return this; +}, privates:{matchById:function(items, id) { + var len = items.length, i, item; + for (i = 0; i < len; ++i) { + item = items[i]; + if (item.getItemId() === id) { + return item; + } + } + return null; +}}}); +Ext.define('Ext.data.Request', {config:{action:undefined, params:undefined, method:'GET', url:null, operation:null, proxy:null, disableCaching:false, headers:{}, callbackKey:null, rawRequest:null, jsonData:undefined, xmlData:undefined, withCredentials:false, username:null, password:null, binary:false, callback:null, scope:null, timeout:30000, records:null, directFn:null, args:null, useDefaultXhrHeader:null}, constructor:function(config) { + this.initConfig(config); +}, getParam:function(key) { + var params = this.getParams(), val; + if (params) { + return params[key]; + } + return val; +}, setParam:function(key, value) { + var params = this.getParams() || {}; + params[key] = value; + this.setParams(params); +}}); +Ext.define('Ext.data.Validation', {extend:Ext.data.Model, isValidation:true, syncGeneration:0, attach:function(record) { + this.record = record; + delete this.data.id; +}, getValidation:function() { + return null; +}, isValid:function() { + var me = this; + if (me.syncGeneration !== me.record.generation) { + me.refresh(); + } + return !me.dirty; +}, refresh:function(force) { + var me = this, data = me.data, record = me.record, fields = record.fields, generation = record.generation, recordData = record.data, sep = record.validationSeparator, values = null, defaultMessage, currentValue, error, field, item, i, j, jLen, len, msg, val, name; + if (force || me.syncGeneration !== generation) { + me.syncGeneration = generation; + for (i = 0, len = fields.length; i < len; ++i) { + field = fields[i]; + name = field.name; + val = recordData[name]; + defaultMessage = field.defaultInvalidMessage; + error = 0; + if (!(name in data)) { + data[name] = currentValue = true; + } else { + currentValue = data[name]; + } + if (field.validate !== Ext.emptyFn) { + msg = field.validate(val, sep, null, record); + if (msg !== true) { + error = msg || defaultMessage; + } + } + if (!error) { + error = true; + } + if (error !== currentValue) { + (values || (values = {}))[name] = error; + } + } + if (values) { + me.set(values); + } + } +}}); +Ext.define('Ext.dom.Helper', function() { + var afterbegin = 'afterbegin', afterend = 'afterend', beforebegin = 'beforebegin', beforeend = 'beforeend', bbValues = ['BeforeBegin', 'previousSibling'], aeValues = ['AfterEnd', 'nextSibling'], bb_ae_PositionHash = {beforebegin:bbValues, afterend:aeValues}, fullPositionHash = {beforebegin:bbValues, afterend:aeValues, afterbegin:['AfterBegin', 'firstChild'], beforeend:['BeforeEnd', 'lastChild']}; + return {singleton:true, alternateClassName:['Ext.DomHelper', 'Ext.core.DomHelper'], emptyTags:/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i, confRe:/^(?:tag|children|cn|html|tpl|tplData)$/i, endRe:/end/i, attributeTransform:{cls:'class', htmlFor:'for'}, closeTags:{}, detachedDiv:document.createElement('div'), decamelizeName:function() { + var camelCaseRe = /([a-z])([A-Z])/g, cache = {}; + function decamel(match, p1, p2) { + return p1 + '-' + p2.toLowerCase(); + } + return function(s) { + return cache[s] || (cache[s] = s.replace(camelCaseRe, decamel)); + }; + }(), generateMarkup:function(spec, buffer) { + var me = this, specType = typeof spec, attr, val, tag, i, closeTags; + if (specType === 'string' || specType === 'number') { + buffer.push(spec); + } else { + if (Ext.isArray(spec)) { + for (i = 0; i < spec.length; i++) { + if (spec[i]) { + me.generateMarkup(spec[i], buffer); + } + } + } else { + tag = spec.tag || 'div'; + buffer.push('\x3c', tag); + for (attr in spec) { + if (spec.hasOwnProperty(attr)) { + val = spec[attr]; + if (val !== undefined && !me.confRe.test(attr)) { + if (typeof val === 'object') { + buffer.push(' ', attr, '\x3d"'); + me.generateStyles(val, buffer, true).push('"'); + } else { + buffer.push(' ', me.attributeTransform[attr] || attr, '\x3d"', val, '"'); + } + } + } + } + if (me.emptyTags.test(tag)) { + buffer.push('/\x3e'); + } else { + buffer.push('\x3e'); + if (val = spec.tpl) { + val.applyOut(spec.tplData, buffer); + } + if (val = spec.html) { + buffer.push(val); + } + if (val = spec.cn || spec.children) { + me.generateMarkup(val, buffer); + } + closeTags = me.closeTags; + buffer.push(closeTags[tag] || (closeTags[tag] = '\x3c/' + tag + '\x3e')); + } + } + } + return buffer; + }, generateStyles:function(styles, buffer, encode) { + var a = buffer || [], name, val; + for (name in styles) { + if (styles.hasOwnProperty(name)) { + val = styles[name]; + name = this.decamelizeName(name); + if (encode && Ext.String.hasHtmlCharacters(val)) { + val = Ext.String.htmlEncode(val); + } + a.push(name, ':', val, ';'); + } + } + return buffer || a.join(''); + }, markup:function(spec) { + if (typeof spec === 'string') { + return spec; + } + var buf = this.generateMarkup(spec, []); + return buf.join(''); + }, applyStyles:function(el, styles) { + Ext.fly(el).applyStyles(styles); + }, createContextualFragment:function(html) { + var div = this.detachedDiv, fragment = document.createDocumentFragment(), length, childNodes; + div.innerHTML = html; + childNodes = div.childNodes; + length = childNodes.length; + while (length--) { + fragment.appendChild(childNodes[0]); + } + return fragment; + }, createDom:function(o, parentNode) { + var me = this, markup = me.markup(o), div = me.detachedDiv, child; + div.innerHTML = markup; + child = div.firstChild; + return Ext.supports.ChildContentClearedWhenSettingInnerHTML ? child.cloneNode(true) : child; + }, insertHtml:function(where, el, html) { + var me = this, hashVal, range, rangeEl, setStart, frag; + where = where.toLowerCase(); + if (el.insertAdjacentHTML) { + if (me.ieInsertHtml) { + frag = me.ieInsertHtml(where, el, html); + if (frag) { + return frag; + } + } + hashVal = fullPositionHash[where]; + if (hashVal) { + el.insertAdjacentHTML(hashVal[0], html); + return el[hashVal[1]]; + } + } else { + if (el.nodeType === 3) { + where = where === afterbegin ? beforebegin : where; + where = where === beforeend ? afterend : where; + } + range = Ext.supports.CreateContextualFragment ? el.ownerDocument.createRange() : undefined; + setStart = 'setStart' + (this.endRe.test(where) ? 'After' : 'Before'); + if (bb_ae_PositionHash[where]) { + if (range) { + range[setStart](el); + frag = range.createContextualFragment(html); + } else { + frag = this.createContextualFragment(html); + } + el.parentNode.insertBefore(frag, where === beforebegin ? el : el.nextSibling); + return el[(where === beforebegin ? 'previous' : 'next') + 'Sibling']; + } else { + rangeEl = (where === afterbegin ? 'first' : 'last') + 'Child'; + if (el.firstChild) { + if (range) { + try { + range[setStart](el[rangeEl]); + frag = range.createContextualFragment(html); + } catch (e$23) { + frag = this.createContextualFragment(html); + } + } else { + frag = this.createContextualFragment(html); + } + if (where === afterbegin) { + el.insertBefore(frag, el.firstChild); + } else { + el.appendChild(frag); + } + } else { + el.innerHTML = html; + } + return el[rangeEl]; + } + } + Ext.raise({sourceClass:'Ext.DomHelper', sourceMethod:'insertHtml', htmlToInsert:html, targetElement:el, msg:'Illegal insertion point reached: "' + where + '"'}); + }, insertBefore:function(el, o, returnElement) { + return this.doInsert(el, o, returnElement, beforebegin); + }, insertAfter:function(el, o, returnElement) { + return this.doInsert(el, o, returnElement, afterend); + }, insertFirst:function(el, o, returnElement) { + return this.doInsert(el, o, returnElement, afterbegin); + }, append:function(el, o, returnElement) { + return this.doInsert(el, o, returnElement, beforeend); + }, overwrite:function(el, html, returnElement) { + var me = this, newNode; + el = Ext.getDom(el); + html = me.markup(html); + if (me.ieOverwrite) { + newNode = me.ieOverwrite(el, html); + } + if (!newNode) { + el.innerHTML = html; + newNode = el.firstChild; + } + return returnElement ? Ext.get(newNode) : newNode; + }, doInsert:function(el, o, returnElement, where) { + var me = this, newNode; + el = el.dom || Ext.getDom(el); + if ('innerHTML' in el) { + newNode = me.insertHtml(where, el, me.markup(o)); + } else { + newNode = me.createDom(o, null); + if (el.nodeType === 3) { + where = where === afterbegin ? beforebegin : where; + where = where === beforeend ? afterend : where; + } + if (bb_ae_PositionHash[where]) { + el.parentNode.insertBefore(newNode, where === beforebegin ? el : el.nextSibling); + } else { + if (el.firstChild && where === afterbegin) { + el.insertBefore(newNode, el.firstChild); + } else { + el.appendChild(newNode); + } + } + } + return returnElement ? Ext.get(newNode) : newNode; + }, createTemplate:function(o) { + var html = this.markup(o); + return new Ext.Template(html); + }, createHtml:function(spec) { + return this.markup(spec); + }}; +}); +Ext.define('Ext.overrides.dom.Helper', function() { + var tableRe = /^(?:table|thead|tbody|tr|td)$/i, tableElRe = /td|tr|tbody|thead/i, ts = '\x3ctable\x3e', te = '\x3c/table\x3e', tbs = ts + '\x3ctbody\x3e', tbe = '\x3c/tbody\x3e' + te, trs = tbs + '\x3ctr\x3e', tre = '\x3c/tr\x3e' + tbe; + return {override:'Ext.dom.Helper', ieInsertHtml:function(where, el, html) { + var frag = null; + if (Ext.isIE9m && tableRe.test(el.tagName)) { + frag = this.insertIntoTable(el.tagName.toLowerCase(), where, el, html); + } + return frag; + }, ieOverwrite:function(el, html) { + if (Ext.isIE9m && tableRe.test(el.tagName)) { + while (el.firstChild) { + el.removeChild(el.firstChild); + } + if (html) { + return this.insertHtml('afterbegin', el, html); + } + } + }, ieTable:function(depth, openingTags, htmlContent, closingTags) { + var i = -1, el = this.detachedDiv, ns, nx; + el.innerHTML = [openingTags, htmlContent, closingTags].join(''); + while (++i < depth) { + el = el.firstChild; + } + ns = el.nextSibling; + if (ns) { + ns = el; + el = document.createDocumentFragment(); + while (ns) { + nx = ns.nextSibling; + el.appendChild(ns); + ns = nx; + } + } + return el; + }, insertIntoTable:function(tag, where, destinationEl, html) { + var node, before, bb = where === 'beforebegin', ab = where === 'afterbegin', be = where === 'beforeend', ae = where === 'afterend'; + if (tag === 'td' && (ab || be) || !tableElRe.test(tag) && (bb || ae)) { + return null; + } + before = bb ? destinationEl : ae ? destinationEl.nextSibling : ab ? destinationEl.firstChild : null; + if (bb || ae) { + destinationEl = destinationEl.parentNode; + } + if (tag === 'td' || tag === 'tr' && (be || ab)) { + node = this.ieTable(4, trs, html, tre); + } else { + if ((tag === 'tbody' || tag === 'thead') && (be || ab) || tag === 'tr' && (bb || ae)) { + node = this.ieTable(3, tbs, html, tbe); + } else { + node = this.ieTable(2, ts, html, te); + } + } + destinationEl.insertBefore(node, before); + return node; + }}; +}()); +Ext.define('Ext.dom.GarbageCollector', {singleton:true, interval:30000, constructor:function() { + var me = this; + me.collect = Ext.Function.bind(me.collect, me); + me.lastTime = Ext.now(); + me.resume(); +}, collect:function() { + var me = this, cache = Ext.cache, eid, dom, el, t, isGarbage, tagName; + var collectedIds = []; + for (eid in cache) { + if (!cache.hasOwnProperty(eid)) { + continue; + } + el = cache[eid]; + if (el.skipGarbageCollection) { + continue; + } + dom = el.dom; + if (!dom) { + Ext.raise('Missing DOM node in element garbage collection: ' + eid); + } + try { + isGarbage = Ext.isGarbage(dom); + } catch (e$24) { + delete cache[eid]; + collectedIds.push('#' + el.id); + continue; + } + if (isGarbage) { + if (el && el.dom) { + tagName = el.dom.tagName; + el.collect(); + collectedIds.push((tagName ? tagName : '') + '#' + el.id); + } + } + } + if (Ext.isIE9m) { + t = {}; + for (eid in cache) { + if (cache.hasOwnProperty(eid)) { + t[eid] = cache[eid]; + } + } + Ext.cache = Ext.dom.Element.cache = t; + } + me.lastTime = Ext.now(); + return collectedIds; +}, pause:function() { + clearTimeout(this.timerId); +}, resume:function() { + var me = this, lastTime = me.lastTime; + if (Ext.enableGarbageCollector && Ext.now() - lastTime > me.interval) { + me.collect(); + } + me.timerId = Ext.interval(me.collect, me.interval); +}}); +Ext.define('Ext.event.gesture.Recognizer', {mixins:[Ext.mixin.Identifiable], priority:0, handledEvents:[], config:{onRecognized:Ext.emptyFn, callbackScope:null}, constructor:function(config) { + this.initConfig(config); + Ext.event.publisher.Gesture.instance.registerRecognizer(this); +}, onStart:Ext.emptyFn, onEnd:Ext.emptyFn, onTouchStart:Ext.emptyFn, onTouchMove:Ext.emptyFn, onTouchEnd:Ext.emptyFn, onTouchCancel:Ext.emptyFn, fail:function() { + return false; +}, fire:function() { + this.getOnRecognized().apply(this.getCallbackScope(), arguments); +}, reset:Ext.emptyFn, debugHooks:{$enabled:false, fail:function(msg) { + Ext.log.info(this.$className + ' Gesture Failed: ' + msg); + return false; +}}}); +Ext.define('Ext.event.gesture.SingleTouch', {extend:Ext.event.gesture.Recognizer, inheritableStatics:{NOT_SINGLE_TOUCH:'Not Single Touch', TOUCH_MOVED:'Touch Moved', EVENT_CANCELED:'Event Canceled'}, onTouchStart:function(e) { + if (e.touches.length > 1) { + return this.fail(this.self.NOT_SINGLE_TOUCH); + } +}, onTouchCancel:function() { + return false; +}}); +Ext.define('Ext.event.gesture.DoubleTap', {extend:Ext.event.gesture.SingleTouch, priority:300, inheritableStatics:{DIFFERENT_TARGET:'Different Target'}, config:{moveDistance:8, tapDistance:24, maxDuration:300}, handledEvents:['singletap', 'doubletap'], singleTapTimer:null, startTime:0, lastTapTime:0, onTouchStart:function(e) { + var me = this, lastStartPoint; + if (me.callParent(arguments) === false) { + return false; + } + lastStartPoint = me.lastStartPoint = e.changedTouches[0].point; + me.startPoint = me.startPoint || lastStartPoint; + me.startTime = e.time; + clearTimeout(me.singleTapTimer); +}, onTouchMove:function(e) { + var me = this, point = e.changedTouches[0].point; + if (Math.abs(point.getDistanceTo(me.lastStartPoint)) >= me.getMoveDistance()) { + me.startPoint = null; + return me.fail(me.self.TOUCH_MOVED); + } +}, onTouchEnd:function(e) { + var me = this, maxDuration = me.getMaxDuration(), time = e.time, target = e.target, lastTapTime = me.lastTapTime, lastTarget = me.lastTarget, point = e.changedTouches[0].point, duration; + me.lastTapTime = time; + me.lastTarget = target; + if (lastTapTime) { + duration = time - lastTapTime; + if (duration <= maxDuration && Math.abs(point.getDistanceTo(me.startPoint)) <= me.getTapDistance()) { + if (target !== lastTarget) { + return me.fail(me.self.DIFFERENT_TARGET); + } + me.lastTarget = null; + me.lastTapTime = 0; + me.fire('doubletap', e, {touch:e.changedTouches[0], duration:duration}); + me.startPoint = null; + return; + } + } + if (time - me.startTime > maxDuration) { + me.fireSingleTap(e); + } else { + me.setSingleTapTimer(e); + } +}, setSingleTapTimer:function(e) { + var me = this; + me.singleTapTimer = Ext.defer(function() { + me.fireSingleTap(e); + }, me.getMaxDuration()); +}, fireSingleTap:function(e, touch) { + this.fire('singletap', e, {touch:touch}); + this.startPoint = null; +}, reset:function() { + var me = this; + me.startTime = me.lastTapTime = 0; + me.lastStartPoint = me.startPoint = me.singleTapTimer = null; +}}, function(DoubleTap) { + var gestures = Ext.manifest.gestures; + DoubleTap.instance = new DoubleTap(gestures && gestures.doubleTap); +}); +Ext.define('Ext.event.gesture.Drag', {extend:Ext.event.gesture.SingleTouch, priority:100, isStarted:false, startPoint:null, previousPoint:null, lastPoint:null, handledEvents:['dragstart', 'drag', 'dragend', 'dragcancel'], config:{minDistance:8}, constructor:function() { + this.callParent(arguments); + this.initInfo(); +}, initInfo:function() { + this.info = {touch:null, previous:{x:0, y:0}, x:0, y:0, delta:{x:0, y:0}, absDelta:{x:0, y:0}, flick:{velocity:{x:0, y:0}}, direction:{x:0, y:0}, time:0, previousTime:{x:0, y:0}}; +}, onTouchStart:function(e) { + if (this.callParent(arguments) === false) { + if (this.isStarted && this.lastMoveEvent !== null) { + this.lastMoveEvent.isStopped = false; + this.onTouchEnd(this.lastMoveEvent); + } + return false; + } + this.startTime = e.time; + this.startPoint = e.changedTouches[0].point; +}, tryDragStart:function(e) { + var startPoint = this.startPoint, touch = e.changedTouches[0], point = touch.point, minDistance = this.getMinDistance(), info = this.info; + if (Math.abs(point.getDistanceTo(startPoint)) >= minDistance) { + this.isStarted = true; + this.previousPoint = this.lastPoint = point; + this.resetInfo('x', e, touch); + this.resetInfo('y', e, touch); + info.time = e.time; + this.fire('dragstart', e, info); + } +}, onTouchMove:function(e) { + if (!this.isStarted) { + this.tryDragStart(e); + } + if (!this.isStarted) { + return; + } + var touch = e.changedTouches[0], point = touch.point; + if (this.lastPoint) { + this.previousPoint = this.lastPoint; + } + this.lastPoint = point; + this.lastMoveEvent = e; + this.updateInfo('x', e, touch); + this.updateInfo('y', e, touch); + this.info.time = e.time; + this.fire('drag', e, this.info); +}, onAxisDragEnd:function(axis, info) { + var duration = info.time - info.previousTime[axis]; + if (duration > 0) { + info.flick.velocity[axis] = (info[axis] - info.previous[axis]) / duration; + } +}, resetInfo:function(axis, e, touch) { + var value = this.lastPoint[axis], startValue = this.startPoint[axis], delta = value - startValue, capAxis = axis.toUpperCase(), info = this.info; + info.touch = touch; + info.delta[axis] = delta; + info.absDelta[axis] = Math.abs(delta); + info.previousTime[axis] = this.startTime; + info.previous[axis] = startValue; + info[axis] = value; + info.direction[axis] = 0; + info['start' + capAxis] = this.startPoint[axis]; + info['previous' + capAxis] = info.previous[axis]; + info['page' + capAxis] = info[axis]; + info['delta' + capAxis] = info.delta[axis]; + info['absDelta' + capAxis] = info.absDelta[axis]; + info['previousDelta' + capAxis] = 0; + info.startTime = this.startTime; +}, updateInfo:function(axis, e, touch) { + var me = this, value = me.lastPoint[axis], previousValue = me.previousPoint[axis], startValue = me.startPoint[axis], delta = value - startValue, info = me.info, direction = info.direction, capAxis = axis.toUpperCase(), previousFlick = info.previous[axis]; + info.touch = touch; + info.delta[axis] = delta; + info.absDelta[axis] = Math.abs(delta); + if (value !== previousFlick && value !== info[axis]) { + info.previous[axis] = info[axis]; + info.previousTime[axis] = info.time; + } + info[axis] = value; + if (value > previousValue) { + direction[axis] = 1; + } else { + if (value < previousValue) { + direction[axis] = -1; + } + } + info['start' + capAxis] = startValue; + info['previous' + capAxis] = info.previous[axis]; + info['page' + capAxis] = info[axis]; + info['delta' + capAxis] = info.delta[axis]; + info['absDelta' + capAxis] = info.absDelta[axis]; + info['previousDelta' + capAxis] = info.previous[axis] - startValue; + info.startTime = me.startTime; +}, onTouchEnd:function(e) { + this.doEnd(e); +}, onTouchCancel:function(e) { + this.doEnd(e, true); + return false; +}, doEnd:function(e, isCancel) { + if (!this.isStarted) { + this.tryDragStart(e); + } + if (this.isStarted) { + var touch = e.changedTouches[0], point = touch.point, info = this.info; + this.isStarted = false; + this.lastPoint = point; + this.updateInfo('x', e, touch); + this.updateInfo('y', e, touch); + info.time = e.time; + this.onAxisDragEnd('x', info); + this.onAxisDragEnd('y', info); + this.fire(isCancel ? 'dragcancel' : 'dragend', e, info); + this.startPoint = null; + this.previousPoint = null; + this.lastPoint = null; + this.lastMoveEvent = null; + } +}, reset:function() { + var me = this; + me.isStarted = me.lastPoint = me.startPoint = me.previousPoint = me.lastPoint = me.lastMoveEvent = null; + me.initInfo(); +}}, function(Drag) { + var gestures = Ext.manifest.gestures; + Drag.instance = new Drag(gestures && gestures.drag); +}); +Ext.define('Ext.event.gesture.Swipe', {extend:Ext.event.gesture.SingleTouch, priority:500, handledEvents:['swipestart', 'swipe', 'swipecancel'], inheritableStatics:{MAX_OFFSET_EXCEEDED:'Max Offset Exceeded', MAX_DURATION_EXCEEDED:'Max Duration Exceeded', DISTANCE_NOT_ENOUGH:'Distance Not Enough'}, config:{minDistance:80, maxOffset:35, maxDuration:1000}, onTouchStart:function(e) { + if (this.callParent(arguments) === false) { + return false; + } + var touch = e.changedTouches[0]; + this.startTime = e.time; + this.isHorizontal = true; + this.isVertical = true; + this.startX = touch.pageX; + this.startY = touch.pageY; +}, onTouchMove:function(e) { + var touch = e.changedTouches[0], x = touch.pageX, y = touch.pageY, deltaX = x - this.startX, deltaY = y - this.startY, absDeltaX = Math.abs(x - this.startX), absDeltaY = Math.abs(y - this.startY), duration = e.time - this.startTime, minDistance = this.getMinDistance(), time = e.time, direction, distance; + if (time - this.startTime > this.getMaxDuration()) { + return this.fail(this.self.MAX_DURATION_EXCEEDED); + } + if (this.isHorizontal && absDeltaY > this.getMaxOffset()) { + this.isHorizontal = false; + } + if (this.isVertical && absDeltaX > this.getMaxOffset()) { + this.isVertical = false; + } + if (!this.isVertical || !this.isHorizontal) { + if (this.isHorizontal && absDeltaX < minDistance) { + direction = deltaX < 0 ? 'left' : 'right'; + distance = absDeltaX; + } else { + if (this.isVertical && absDeltaY < minDistance) { + direction = deltaY < 0 ? 'up' : 'down'; + distance = absDeltaY; + } + } + } + if (direction && !this.started) { + this.started = true; + this.fire('swipestart', e, {touch:touch, direction:direction, distance:distance, duration:duration}); + } + if (!this.isHorizontal && !this.isVertical) { + return this.fail(this.self.MAX_OFFSET_EXCEEDED); + } +}, onTouchEnd:function(e) { + if (this.onTouchMove(e) === false) { + return false; + } + var touch = e.changedTouches[0], x = touch.pageX, y = touch.pageY, deltaX = x - this.startX, deltaY = y - this.startY, absDeltaX = Math.abs(deltaX), absDeltaY = Math.abs(deltaY), minDistance = this.getMinDistance(), duration = e.time - this.startTime, direction, distance; + if (this.isVertical && absDeltaY < minDistance) { + this.isVertical = false; + } + if (this.isHorizontal && absDeltaX < minDistance) { + this.isHorizontal = false; + } + if (this.isHorizontal) { + direction = deltaX < 0 ? 'left' : 'right'; + distance = absDeltaX; + } else { + if (this.isVertical) { + direction = deltaY < 0 ? 'up' : 'down'; + distance = absDeltaY; + } else { + return this.fail(this.self.DISTANCE_NOT_ENOUGH); + } + } + this.started = false; + this.fire('swipe', e, {touch:touch, direction:direction, distance:distance, duration:duration}); +}, onTouchCancel:function(e) { + this.fire('swipecancel', e); + return false; +}, reset:function() { + var me = this; + me.startTime = me.isHorizontal = me.isVertical = me.startX = me.startY = null; +}}, function(Swipe) { + var gestures = Ext.manifest.gestures; + Swipe.instance = new Swipe(gestures && gestures.swipe); +}); +Ext.define('Ext.event.gesture.EdgeSwipe', {extend:Ext.event.gesture.Swipe, priority:800, handledEvents:['edgeswipe', 'edgeswipestart', 'edgeswipeend', 'edgeswipecancel'], inheritableStatics:{NOT_NEAR_EDGE:'Not Near Edge'}, config:{minDistance:60}, onTouchStart:function(e) { + if (this.callParent(arguments) === false) { + return false; + } + var touch = e.changedTouches[0]; + this.started = false; + this.direction = null; + this.isHorizontal = true; + this.isVertical = true; + this.startX = touch.pageX; + this.startY = touch.pageY; +}, onTouchMove:function(e) { + var touch = e.changedTouches[0], x = touch.pageX, y = touch.pageY, deltaX = x - this.startX, deltaY = y - this.startY, absDeltaY = Math.abs(y - this.startY), absDeltaX = Math.abs(x - this.startX), minDistance = this.getMinDistance(), maxOffset = this.getMaxOffset(), duration = e.time - this.startTime, elementWidth = Ext.Viewport && Ext.Element.getViewportWidth(), elementHeight = Ext.Viewport && Ext.Element.getViewportHeight(), direction, distance; + if (this.isVertical && absDeltaX > maxOffset) { + this.isVertical = false; + } + if (this.isHorizontal && absDeltaY > maxOffset) { + this.isHorizontal = false; + } + if (this.isVertical && this.isHorizontal) { + if (absDeltaY > absDeltaX) { + this.isHorizontal = false; + } else { + this.isVertical = false; + } + } + if (this.isHorizontal) { + direction = deltaX < 0 ? 'left' : 'right'; + distance = deltaX; + } else { + if (this.isVertical) { + direction = deltaY < 0 ? 'up' : 'down'; + distance = deltaY; + } + } + direction = this.direction || (this.direction = direction); + if (direction === 'up') { + distance = deltaY * -1; + } else { + if (direction === 'left') { + distance = deltaX * -1; + } + } + this.distance = distance; + if (!distance) { + return this.fail(this.self.DISTANCE_NOT_ENOUGH); + } + if (!this.started) { + if (direction === 'right' && this.startX > minDistance) { + return this.fail(this.self.NOT_NEAR_EDGE); + } else { + if (direction === 'down' && this.startY > minDistance) { + return this.fail(this.self.NOT_NEAR_EDGE); + } else { + if (direction === 'left' && elementWidth - this.startX > minDistance) { + return this.fail(this.self.NOT_NEAR_EDGE); + } else { + if (direction === 'up' && elementHeight - this.startY > minDistance) { + return this.fail(this.self.NOT_NEAR_EDGE); + } + } + } + } + this.started = true; + this.startTime = e.time; + this.fire('edgeswipestart', e, {touch:touch, direction:direction, distance:distance, duration:duration}); + } else { + this.fire('edgeswipe', e, {touch:touch, direction:direction, distance:distance, duration:duration}); + } +}, onTouchEnd:function(e) { + var duration; + if (this.onTouchMove(e) !== false) { + duration = e.time - this.startTime; + this.fire('edgeswipeend', e, {touch:e.changedTouches[0], direction:this.direction, distance:this.distance, duration:duration}); + } +}, onTouchCancel:function(e) { + this.fire('edgeswipecancel', e, {touch:e.changedTouches[0]}); + return false; +}, reset:function() { + var me = this; + me.started = me.direction = me.isHorizontal = me.isVertical = me.startX = me.startY = me.startTime = me.distance = null; +}}, function(EdgeSwipe) { + var gestures = Ext.manifest.gestures; + EdgeSwipe.instance = new EdgeSwipe(gestures && gestures.edgeSwipe); +}); +Ext.define('Ext.event.gesture.LongPress', {extend:Ext.event.gesture.SingleTouch, priority:400, inheritableStatics:{DURATION_NOT_ENOUGH:'Duration Not Enough'}, config:{moveDistance:8, minDuration:1000}, handledEvents:['longpress', 'taphold'], fireLongPress:function(e) { + this.fire('longpress', e, {touch:e.changedTouches[0], duration:this.getMinDuration()}); + this.isLongPress = true; +}, onTouchStart:function(e) { + if (this.callParent(arguments) === false) { + return false; + } + this.startPoint = e.changedTouches[0].point; + this.isLongPress = false; + this.setLongPressTimer(e); +}, setLongPressTimer:function(e) { + var me = this; + me.timer = Ext.defer(function() { + me.fireLongPress(e); + }, me.getMinDuration()); +}, onTouchMove:function(e) { + var point = e.changedTouches[0].point; + if (Math.abs(point.getDistanceTo(this.startPoint)) >= this.getMoveDistance()) { + return this.fail(this.self.TOUCH_MOVED); + } +}, onTouchEnd:function() { + if (!this.isLongPress) { + return this.fail(this.self.DURATION_NOT_ENOUGH); + } +}, fail:function() { + clearTimeout(this.timer); + return this.callParent(arguments); +}, reset:function() { + this.isLongPress = this.startPoint = null; +}, fire:function(eventName) { + if (eventName === 'longpress') { + var args = Array.prototype.slice.call(arguments); + args[0] = 'taphold'; + this.fire.apply(this, args); + } + return this.callParent(arguments); +}}, function(LongPress) { + var gestures = Ext.manifest.gestures; + LongPress.instance = new LongPress(gestures && gestures.longPress); +}); +Ext.define('Ext.event.gesture.MultiTouch', {extend:Ext.event.gesture.Recognizer, requiredTouchesCount:2, isTracking:false, isStarted:false, onTouchStart:function(e) { + var requiredTouchesCount = this.requiredTouchesCount, touches = e.touches, touchesCount = touches.length; + if (touchesCount === requiredTouchesCount) { + this.start(e); + } else { + if (touchesCount > requiredTouchesCount) { + this.end(e); + } + } +}, onTouchEnd:function(e) { + this.end(e); +}, onTouchCancel:function(e) { + this.end(e, true); + return false; +}, start:function() { + if (!this.isTracking) { + this.isTracking = true; + this.isStarted = false; + } +}, end:function(e, isCancel) { + if (this.isTracking) { + this.isTracking = false; + if (this.isStarted) { + this.isStarted = false; + this[isCancel ? 'fireCancel' : 'fireEnd'](e); + } + } +}, reset:function() { + this.isTracking = this.isStarted = false; +}}); +Ext.define('Ext.event.gesture.Pinch', {extend:Ext.event.gesture.MultiTouch, priority:600, handledEvents:['pinchstart', 'pinch', 'pinchend', 'pinchcancel'], startDistance:0, lastTouches:null, onTouchMove:function(e) { + if (!this.isTracking) { + return; + } + var touches = e.touches, firstPoint, secondPoint, distance; + firstPoint = touches[0].point; + secondPoint = touches[1].point; + distance = firstPoint.getDistanceTo(secondPoint); + if (distance === 0) { + return; + } + if (!this.isStarted) { + this.isStarted = true; + this.startDistance = distance; + this.fire('pinchstart', e, {touches:touches, distance:distance, scale:1}); + } else { + this.fire('pinch', e, {touches:touches, distance:distance, scale:distance / this.startDistance}); + } +}, fireEnd:function(e) { + this.fire('pinchend', e); +}, fireCancel:function(e) { + this.fire('pinchcancel', e); +}, fail:function() { + return this.callParent(arguments); +}, reset:function() { + this.lastTouches = null; + this.startDistance = 0; + this.callParent(); +}}, function(Pinch) { + var gestures = Ext.manifest.gestures; + Pinch.instance = new Pinch(gestures && gestures.pinch); +}); +Ext.define('Ext.event.gesture.Rotate', {extend:Ext.event.gesture.MultiTouch, priority:700, handledEvents:['rotatestart', 'rotate', 'rotateend', 'rotatecancel'], startAngle:0, lastTouches:null, lastAngle:null, onTouchMove:function(e) { + if (!this.isTracking) { + return; + } + var touches = e.touches, lastAngle = this.lastAngle, firstPoint, secondPoint, angle, nextAngle, previousAngle, diff; + firstPoint = touches[0].point; + secondPoint = touches[1].point; + angle = firstPoint.getAngleTo(secondPoint); + if (lastAngle !== null) { + diff = Math.abs(lastAngle - angle); + nextAngle = angle + 360; + previousAngle = angle - 360; + if (Math.abs(nextAngle - lastAngle) < diff) { + angle = nextAngle; + } else { + if (Math.abs(previousAngle - lastAngle) < diff) { + angle = previousAngle; + } + } + } + this.lastAngle = angle; + if (!this.isStarted) { + this.isStarted = true; + this.startAngle = angle; + this.fire('rotatestart', e, {touches:touches, angle:angle, rotation:0}); + } else { + this.fire('rotate', e, {touches:touches, angle:angle, rotation:angle - this.startAngle}); + } + this.lastTouches = Ext.Array.clone(touches); +}, fireEnd:function(e) { + this.lastAngle = null; + this.fire('rotateend', e); +}, fireCancel:function(e) { + this.lastAngle = null; + this.fire('rotatecancel', e); +}, reset:function() { + var me = this; + me.lastTouches = me.lastAngle = me.startAngle = null; + this.callParent(); +}}, function(Rotate) { + var gestures = Ext.manifest.gestures; + Rotate.instance = new Rotate(gestures && gestures.rotate); +}); +Ext.define('Ext.event.gesture.Tap', {extend:Ext.event.gesture.SingleTouch, priority:200, handledEvents:['tap', 'tapcancel'], config:{moveDistance:8}, onTouchStart:function(e) { + if (this.callParent([e]) === false) { + return false; + } + this.startPoint = e.changedTouches[0].point; +}, onTouchMove:function(e) { + var touch = e.changedTouches[0], point = touch.point; + if (Math.abs(point.getDistanceTo(this.startPoint)) >= this.getMoveDistance()) { + this.fire('tapcancel', e, {touch:touch}); + return this.fail(this.self.TOUCH_MOVED); + } +}, onTouchEnd:function(e) { + this.fire('tap', e, {touch:e.changedTouches[0]}); +}, onTouchCancel:function(e) { + this.fire('tapcancel', e, {touch:e.changedTouches[0]}); + return false; +}, reset:function() { + this.startPoint = null; +}}, function(Tap) { + var gestures = Ext.manifest.gestures; + Tap.instance = new Tap(gestures && gestures.tap); +}); +Ext.define('Ext.event.publisher.Focus', {extend:Ext.event.publisher.Dom, type:'focus', handledEvents:['focusenter', 'focusleave', 'focusmove'], handledDomEvents:['focusin', 'focusout'], doDelegatedEvent:function(e, invokeAfter) { + var me = this, relatedTarget; + e = me.callParent([e, false]); + if (e) { + if (e.type === 'focusout') { + if (e.relatedTarget == null) { + me.processFocusIn(e, e.target, document.body, invokeAfter); + } + } else { + relatedTarget = e.relatedTarget; + me.processFocusIn(e, relatedTarget == null || !relatedTarget.tagName ? document.body : relatedTarget, e.target, invokeAfter); + } + } +}, processFocusIn:function(e, fromElement, toElement, invokeAfter) { + var me = this, commonAncestor, node, targets = [], event, focusEnterEvent, fromFly, toFly; + fromFly = Ext.fly(fromElement); + toFly = Ext.fly(toElement); + if (fromFly && fromFly.isFocusSuspended() || toFly && toFly.isFocusSuspended()) { + return; + } + for (node = fromElement, commonAncestor = Ext.dom.Element.getCommonAncestor(toElement, fromElement, true); node && node !== commonAncestor; node = node.parentNode) { + targets.push(node); + } + if (targets.length) { + event = me.createSyntheticEvent('focusleave', e, fromElement, toElement); + me.publish('focusleave', targets, event); + if (event.isStopped) { + return; + } + } + targets.length = 0; + for (node = toElement; node !== commonAncestor; node = node.parentNode) { + targets.push(node); + } + focusEnterEvent = me.createSyntheticEvent('focusenter', e, toElement, fromElement); + if (targets.length) { + me.publish('focusenter', targets, focusEnterEvent); + if (focusEnterEvent.isStopped) { + return; + } + } + targets = me.getPropagatingTargets(commonAncestor); + if (targets.length) { + event = me.createSyntheticEvent('focusmove', e, toElement, fromElement); + me.publish('focusmove', targets, event); + if (event.isStopped) { + return; + } + } + if (invokeAfter) { + me.afterEvent(e); + } + Ext.GlobalEvents.fireEvent('focus', {event:focusEnterEvent, toElement:toElement, fromElement:fromElement}); +}, createSyntheticEvent:function(eventName, browserEvent, target, relatedTarget) { + var event = new Ext.event.Event(browserEvent); + event.type = eventName; + event.relatedTarget = relatedTarget; + event.target = target; + return event; +}}, function(Focus) { + var focusTimeout; + Focus.instance = new Focus; + if (!Ext.supports.FocusinFocusoutEvents) { + this.override({handledDomEvents:['focus', 'blur'], doDelegatedEvent:function(e, invokeAfter) { + var me = this; + e = me.callSuper([e, false]); + if (e) { + clearTimeout(focusTimeout); + focusTimeout = 0; + if (e.type === 'blur') { + var blurredEl = e.target === window ? document.body : e.target; + focusTimeout = setTimeout(function() { + focusTimeout = 0; + me.processFocusIn(e, blurredEl, document.body, invokeAfter); + Focus.previousActiveElement = null; + }, 0); + if (e.target === window || e.target === document) { + Focus.previousActiveElement = null; + } else { + Focus.previousActiveElement = e.target; + } + } else { + me.processFocusIn(e, Focus.previousActiveElement || document.body, e.target === window ? document.body : e.target, invokeAfter); + } + } + }}); + } +}); +Ext.define('Ext.fx.State', {isAnimatable:{'background-color':true, 'background-image':true, 'background-position':true, 'border-bottom-color':true, 'border-bottom-width':true, 'border-color':true, 'border-left-color':true, 'border-left-width':true, 'border-right-color':true, 'border-right-width':true, 'border-spacing':true, 'border-top-color':true, 'border-top-width':true, 'border-width':true, 'bottom':true, 'color':true, 'crop':true, 'font-size':true, 'font-weight':true, 'height':true, 'left':true, +'letter-spacing':true, 'line-height':true, 'margin-bottom':true, 'margin-left':true, 'margin-right':true, 'margin-top':true, 'max-height':true, 'max-width':true, 'min-height':true, 'min-width':true, 'opacity':true, 'outline-color':true, 'outline-offset':true, 'outline-width':true, 'padding-bottom':true, 'padding-left':true, 'padding-right':true, 'padding-top':true, 'right':true, 'text-indent':true, 'text-shadow':true, 'top':true, 'vertical-align':true, 'visibility':true, 'width':true, 'word-spacing':true, +'z-index':true, 'zoom':true, 'transform':true}, constructor:function(data) { + this.data = {}; + this.set(data); +}, setConfig:function(data) { + this.set(data); + return this; +}, setRaw:function(data) { + this.data = data; + return this; +}, clear:function() { + return this.setRaw({}); +}, setTransform:function(name, value) { + var data = this.data, isArray = Ext.isArray(value), transform = data.transform, ln, key; + if (!transform) { + transform = data.transform = {translateX:0, translateY:0, translateZ:0, scaleX:1, scaleY:1, scaleZ:1, rotate:0, rotateX:0, rotateY:0, rotateZ:0, skewX:0, skewY:0}; + } + if (typeof name == 'string') { + switch(name) { + case 'translate': + if (isArray) { + ln = value.length; + if (ln == 0) { + break; + } + transform.translateX = value[0]; + if (ln == 1) { + break; + } + transform.translateY = value[1]; + if (ln == 2) { + break; + } + transform.translateZ = value[2]; + } else { + transform.translateX = value; + } + break; + case 'rotate': + if (isArray) { + ln = value.length; + if (ln == 0) { + break; + } + transform.rotateX = value[0]; + if (ln == 1) { + break; + } + transform.rotateY = value[1]; + if (ln == 2) { + break; + } + transform.rotateZ = value[2]; + } else { + transform.rotate = value; + } + break; + case 'scale': + if (isArray) { + ln = value.length; + if (ln == 0) { + break; + } + transform.scaleX = value[0]; + if (ln == 1) { + break; + } + transform.scaleY = value[1]; + if (ln == 2) { + break; + } + transform.scaleZ = value[2]; + } else { + transform.scaleX = value; + transform.scaleY = value; + } + break; + case 'skew': + if (isArray) { + ln = value.length; + if (ln == 0) { + break; + } + transform.skewX = value[0]; + if (ln == 1) { + break; + } + transform.skewY = value[1]; + } else { + transform.skewX = value; + } + break; + default: + transform[name] = value; + } + } else { + for (key in name) { + if (name.hasOwnProperty(key)) { + value = name[key]; + this.setTransform(key, value); + } + } + } +}, set:function(name, value) { + var data = this.data, key; + if (typeof name != 'string') { + for (key in name) { + value = name[key]; + if (key === 'transform') { + this.setTransform(value); + } else { + data[key] = value; + } + } + } else { + if (name === 'transform') { + this.setTransform(value); + } else { + data[name] = value; + } + } + return this; +}, unset:function(name) { + var data = this.data; + if (data.hasOwnProperty(name)) { + delete data[name]; + } + return this; +}, getData:function() { + return this.data; +}}); +Ext.define('Ext.fx.animation.Abstract', {extend:Ext.Evented, isAnimation:true, config:{name:'', element:null, before:null, from:{}, to:{}, after:null, states:{}, duration:300, easing:'linear', iteration:1, direction:'normal', delay:0, onBeforeStart:null, callback:null, onEnd:null, onBeforeEnd:null, scope:null, reverse:null, preserveEndState:false, replacePrevious:true}, STATE_FROM:'0%', STATE_TO:'100%', DIRECTION_UP:'up', DIRECTION_DOWN:'down', DIRECTION_LEFT:'left', DIRECTION_RIGHT:'right', stateNameRegex:/^(?:[\d\.]+)%$/, +constructor:function() { + this.states = {}; + this.callParent(arguments); + return this; +}, applyElement:function(element) { + return Ext.get(element); +}, applyBefore:function(before, current) { + if (before) { + return Ext.factory(before, Ext.fx.State, current); + } +}, applyAfter:function(after, current) { + if (after) { + return Ext.factory(after, Ext.fx.State, current); + } +}, setFrom:function(from) { + return this.setState(this.STATE_FROM, from); +}, setTo:function(to) { + return this.setState(this.STATE_TO, to); +}, getFrom:function() { + return this.getState(this.STATE_FROM); +}, getTo:function() { + return this.getState(this.STATE_TO); +}, setStates:function(states) { + var validNameRegex = this.stateNameRegex, name; + for (name in states) { + if (validNameRegex.test(name)) { + this.setState(name, states[name]); + } + } + return this; +}, getStates:function() { + return this.states; +}, updateCallback:function(callback) { + if (callback) { + this.setOnEnd(callback); + } +}, end:function() { + this.stop(); +}, stop:function() { + this.fireEvent('stop', this); +}, destroy:function() { + this.stop(); + this.callParent(); +}, setState:function(name, state) { + var states = this.getStates(), stateInstance; + stateInstance = Ext.factory(state, Ext.fx.State, states[name]); + if (stateInstance) { + states[name] = stateInstance; + } else { + if (name === this.STATE_TO) { + Ext.Logger.error("Setting and invalid '100%' / 'to' state of: " + state); + } + } + return this; +}, getState:function(name) { + return this.getStates()[name]; +}, getData:function() { + var me = this, states = me.getStates(), statesData = {}, before = me.getBefore(), after = me.getAfter(), from = states[me.STATE_FROM], to = states[me.STATE_TO], fromData = from.getData(), toData = to.getData(), data, name, state; + for (name in states) { + if (states.hasOwnProperty(name)) { + state = states[name]; + data = state.getData(); + statesData[name] = data; + } + } + return {before:before ? before.getData() : {}, after:after ? after.getData() : {}, states:statesData, from:fromData, to:toData, duration:me.getDuration(), iteration:me.getIteration(), direction:me.getDirection(), easing:me.getEasing(), delay:me.getDelay(), onEnd:me.getOnEnd(), onBeforeEnd:me.getOnBeforeEnd(), onBeforeStart:me.getOnBeforeStart(), scope:me.getScope(), preserveEndState:me.getPreserveEndState(), replacePrevious:me.getReplacePrevious()}; +}}); +Ext.define('Ext.fx.animation.Slide', {extend:Ext.fx.animation.Abstract, alternateClassName:'Ext.fx.animation.SlideIn', alias:['animation.slide', 'animation.slideIn'], config:{direction:'left', out:false, offset:0, easing:'auto', containerBox:'auto', elementBox:'auto', isElementBoxFit:true, useCssTransform:true}, reverseDirectionMap:{up:'down', down:'up', left:'right', right:'left'}, applyEasing:function(easing) { + if (easing === 'auto') { + return 'ease-' + (this.getOut() ? 'in' : 'out'); + } + return easing; +}, getContainerBox:function() { + var box = this._containerBox; + if (box === 'auto') { + box = this.getElement().getParent().getBox(); + } + return box; +}, getElementBox:function() { + var box = this._elementBox; + if (this.getIsElementBoxFit()) { + return this.getContainerBox(); + } + if (box === 'auto') { + box = this.getElement().getBox(); + } + return box; +}, getData:function() { + var elementBox = this.getElementBox(), containerBox = this.getContainerBox(), box = elementBox ? elementBox : containerBox, from = this.getFrom(), to = this.getTo(), out = this.getOut(), offset = this.getOffset(), direction = this.getDirection(), useCssTransform = this.getUseCssTransform(), reverse = this.getReverse(), translateX = 0, translateY = 0, fromX, fromY, toX, toY; + if (reverse) { + direction = this.reverseDirectionMap[direction]; + } + switch(direction) { + case this.DIRECTION_UP: + if (out) { + translateY = containerBox.top - box.top - box.height - offset; + } else { + translateY = containerBox.bottom - box.bottom + box.height + offset; + } + break; + case this.DIRECTION_DOWN: + if (out) { + translateY = containerBox.bottom - box.bottom + box.height + offset; + } else { + translateY = containerBox.top - box.height - box.top - offset; + } + break; + case this.DIRECTION_RIGHT: + if (out) { + translateX = containerBox.right - box.right + box.width + offset; + } else { + translateX = containerBox.left - box.left - box.width - offset; + } + break; + case this.DIRECTION_LEFT: + if (out) { + translateX = containerBox.left - box.left - box.width - offset; + } else { + translateX = containerBox.right - box.right + box.width + offset; + } + break; + } + fromX = out ? 0 : translateX; + fromY = out ? 0 : translateY; + if (useCssTransform) { + from.setTransform({translateX:fromX, translateY:fromY}); + } else { + from.set('left', fromX); + from.set('top', fromY); + } + toX = out ? translateX : 0; + toY = out ? translateY : 0; + if (useCssTransform) { + to.setTransform({translateX:toX, translateY:toY}); + } else { + to.set('left', toX); + to.set('top', toY); + } + return this.callParent(arguments); +}}); +Ext.define('Ext.fx.animation.SlideOut', {extend:Ext.fx.animation.Slide, alias:['animation.slideOut'], config:{out:true}}); +Ext.define('Ext.fx.animation.Fade', {extend:Ext.fx.animation.Abstract, alternateClassName:'Ext.fx.animation.FadeIn', alias:['animation.fade', 'animation.fadeIn'], config:{out:false, before:{display:null, opacity:0}, after:{opacity:null}, reverse:null}, updateOut:function(newOut) { + var to = this.getTo(), from = this.getFrom(); + if (newOut) { + from.set('opacity', 1); + to.set('opacity', 0); + } else { + from.set('opacity', 0); + to.set('opacity', 1); + } +}}); +Ext.define('Ext.fx.animation.FadeOut', {extend:Ext.fx.animation.Fade, alias:'animation.fadeOut', config:{out:true, before:{}}}); +Ext.define('Ext.fx.animation.Flip', {extend:Ext.fx.animation.Abstract, alias:'animation.flip', config:{easing:'ease-in', direction:'right', half:false, out:null}, getData:function() { + var me = this, from = me.getFrom(), to = me.getTo(), direction = me.getDirection(), out = me.getOut(), half = me.getHalf(), rotate = half ? 90 : 180, fromScale = 1, toScale = 1, fromRotateX = 0, fromRotateY = 0, toRotateX = 0, toRotateY = 0; + if (out) { + toScale = 0.8; + } else { + fromScale = 0.8; + } + switch(direction) { + case this.DIRECTION_UP: + if (out) { + toRotateX = rotate; + } else { + fromRotateX = -rotate; + } + break; + case this.DIRECTION_DOWN: + if (out) { + toRotateX = -rotate; + } else { + fromRotateX = rotate; + } + break; + case this.DIRECTION_RIGHT: + if (out) { + toRotateY = rotate; + } else { + fromRotateY = -rotate; + } + break; + case this.DIRECTION_LEFT: + if (out) { + toRotateY = -rotate; + } else { + fromRotateY = rotate; + } + break; + } + from.setTransform({rotateX:fromRotateX, rotateY:fromRotateY, scale:fromScale}); + to.setTransform({rotateX:toRotateX, rotateY:toRotateY, scale:toScale}); + return this.callParent(); +}}); +Ext.define('Ext.fx.animation.Pop', {extend:Ext.fx.animation.Abstract, alias:['animation.pop', 'animation.popIn'], alternateClassName:'Ext.fx.animation.PopIn', config:{out:false, before:{display:null, opacity:0}, after:{opacity:null}}, getData:function() { + var to = this.getTo(), from = this.getFrom(), out = this.getOut(); + if (out) { + from.set('opacity', 1); + from.setTransform({scale:1}); + to.set('opacity', 0); + to.setTransform({scale:0}); + } else { + from.set('opacity', 0); + from.setTransform({scale:0}); + to.set('opacity', 1); + to.setTransform({scale:1}); + } + return this.callParent(arguments); +}}); +Ext.define('Ext.fx.animation.PopOut', {extend:Ext.fx.animation.Pop, alias:'animation.popOut', config:{out:true, before:{}}}); +Ext.define('Ext.fx.Animation', {constructor:function(config) { + var defaultClass = Ext.fx.animation.Abstract, type; + if (typeof config == 'string') { + type = config; + config = {}; + } else { + if (config && config.type) { + type = config.type; + } + } + if (type) { + defaultClass = Ext.ClassManager.getByAlias('animation.' + type); + if (!defaultClass) { + Ext.Logger.error("Invalid animation type of: '" + type + "'"); + } + } + return Ext.factory(config, defaultClass); +}}); +Ext.define('Ext.fx.runner.Css', {extend:Ext.Evented, prefixedProperties:{'transform':true, 'transform-origin':true, 'perspective':true, 'transform-style':true, 'transition':true, 'transition-property':true, 'transition-duration':true, 'transition-timing-function':true, 'transition-delay':true, 'animation':true, 'animation-name':true, 'animation-duration':true, 'animation-iteration-count':true, 'animation-direction':true, 'animation-timing-function':true, 'animation-delay':true}, lengthProperties:{'top':true, +'right':true, 'bottom':true, 'left':true, 'width':true, 'height':true, 'max-height':true, 'max-width':true, 'min-height':true, 'min-width':true, 'margin-bottom':true, 'margin-left':true, 'margin-right':true, 'margin-top':true, 'padding-bottom':true, 'padding-left':true, 'padding-right':true, 'padding-top':true, 'border-bottom-width':true, 'border-left-width':true, 'border-right-width':true, 'border-spacing':true, 'border-top-width':true, 'border-width':true, 'outline-width':true, 'letter-spacing':true, +'line-height':true, 'text-indent':true, 'word-spacing':true, 'font-size':true, 'translate':true, 'translateX':true, 'translateY':true, 'translateZ':true, 'translate3d':true}, durationProperties:{'transition-duration':true, 'transition-delay':true, 'animation-duration':true, 'animation-delay':true}, angleProperties:{rotate:true, rotateX:true, rotateY:true, rotateZ:true, skew:true, skewX:true, skewY:true}, lengthUnitRegex:/([a-z%]*)$/, DEFAULT_UNIT_LENGTH:'px', DEFAULT_UNIT_ANGLE:'deg', DEFAULT_UNIT_DURATION:'ms', +formattedNameCache:{}, transformMethods3d:['translateX', 'translateY', 'translateZ', 'rotate', 'rotateX', 'rotateY', 'rotateZ', 'skewX', 'skewY', 'scaleX', 'scaleY', 'scaleZ'], transformMethodsNo3d:['translateX', 'translateY', 'rotate', 'skewX', 'skewY', 'scaleX', 'scaleY'], constructor:function() { + var me = this; + me.transformMethods = Ext.feature.has.Css3dTransforms ? me.transformMethods3d : me.transformMethodsNo3d; + me.vendorPrefix = Ext.browser.getStyleDashPrefix(); + me.ruleStylesCache = {}; + me.callParent(); +}, getStyleSheet:function() { + var styleSheet = this.styleSheet, styleElement, styleSheets; + if (!styleSheet) { + styleElement = document.createElement('style'); + styleElement.type = 'text/css'; + (document.head || document.getElementsByTagName('head')[0]).appendChild(styleElement); + styleSheets = document.styleSheets; + this.styleSheet = styleSheet = styleSheets[styleSheets.length - 1]; + } + return styleSheet; +}, applyRules:function(selectors) { + var styleSheet = this.getStyleSheet(), ruleStylesCache = this.ruleStylesCache, rules = styleSheet.cssRules, selector, properties, ruleStyle, ruleStyleCache, rulesLength, name, value; + for (selector in selectors) { + properties = selectors[selector]; + ruleStyle = ruleStylesCache[selector]; + if (ruleStyle === undefined) { + rulesLength = rules.length; + styleSheet.insertRule(selector + '{}', rulesLength); + ruleStyle = ruleStylesCache[selector] = rules.item(rulesLength).style; + } + ruleStyleCache = ruleStyle.$cache; + if (!ruleStyleCache) { + ruleStyleCache = ruleStyle.$cache = {}; + } + for (name in properties) { + value = this.formatValue(properties[name], name); + name = this.formatName(name); + if (ruleStyleCache[name] !== value) { + ruleStyleCache[name] = value; + if (value === null) { + ruleStyle.removeProperty(name); + } else { + ruleStyle.setProperty(name, value, 'important'); + } + } + } + } + return this; +}, applyStyles:function(styles) { + var id, element, elementStyle, properties, name, value; + for (id in styles) { + if (styles.hasOwnProperty(id)) { + element = document.getElementById(id); + if (!element) { + continue; + } + elementStyle = element.style; + properties = styles[id]; + for (name in properties) { + if (properties.hasOwnProperty(name)) { + value = this.formatValue(properties[name], name); + name = this.formatName(name); + if (value === null) { + elementStyle.removeProperty(name); + } else { + elementStyle.setProperty(name, value, 'important'); + } + } + } + } + } + return this; +}, formatName:function(name) { + var cache = this.formattedNameCache, formattedName = cache[name]; + if (!formattedName) { + if ((Ext.os.is.Tizen || !Ext.feature.has.CssTransformNoPrefix) && this.prefixedProperties[name]) { + formattedName = this.vendorPrefix + name; + } else { + formattedName = name; + } + cache[name] = formattedName; + } + return formattedName; +}, formatValue:function(value, name) { + var type = typeof value, lengthUnit = this.DEFAULT_UNIT_LENGTH, transformMethods, method, i, ln, transformValues, values, unit; + if (value === null) { + return ''; + } + if (type == 'string') { + if (this.lengthProperties[name]) { + unit = value.match(this.lengthUnitRegex)[1]; + if (unit.length > 0) { + if (unit !== lengthUnit) { + Ext.Logger.error("Length unit: '" + unit + "' in value: '" + value + "' of property: '" + name + "' is not " + "valid for animation. Only 'px' is allowed"); + } + } else { + return value + lengthUnit; + } + } + return value; + } else { + if (type == 'number') { + if (value == 0) { + return '0'; + } + if (this.lengthProperties[name]) { + return value + lengthUnit; + } + if (this.angleProperties[name]) { + return value + this.DEFAULT_UNIT_ANGLE; + } + if (this.durationProperties[name]) { + return value + this.DEFAULT_UNIT_DURATION; + } + } else { + if (name === 'transform') { + transformMethods = this.transformMethods; + transformValues = []; + for (i = 0, ln = transformMethods.length; i < ln; i++) { + method = transformMethods[i]; + transformValues.push(method + '(' + this.formatValue(value[method], method) + ')'); + } + return transformValues.join(' '); + } else { + if (Ext.isArray(value)) { + values = []; + for (i = 0, ln = value.length; i < ln; i++) { + values.push(this.formatValue(value[i], name)); + } + return values.length > 0 ? values.join(', ') : 'none'; + } + } + } + } + return value; +}}); +Ext.define('Ext.fx.runner.CssTransition', {extend:Ext.fx.runner.Css, alternateClassName:'Ext.Animator', singleton:true, listenersAttached:false, constructor:function() { + this.runningAnimationsData = {}; + return this.callParent(arguments); +}, attachListeners:function() { + this.listenersAttached = true; + Ext.getWin().on('transitionend', 'onTransitionEnd', this); +}, onTransitionEnd:function(e) { + var target = e.target, id = target.id; + if (id && this.runningAnimationsData.hasOwnProperty(id)) { + this.refreshRunningAnimationsData(Ext.get(target), [e.browserEvent.propertyName]); + } +}, onAnimationEnd:function(element, data, animation, isInterrupted, isReplaced) { + var id = element.getId(), runningData = this.runningAnimationsData[id], endRules = {}, endData = {}, runningNameMap, toPropertyNames, i, ln, name; + animation.un('stop', 'onAnimationStop', this); + if (runningData) { + runningNameMap = runningData.nameMap; + } + endRules[id] = endData; + if (data.onBeforeEnd) { + data.onBeforeEnd.call(data.scope || this, element, isInterrupted); + } + animation.fireEvent('animationbeforeend', animation, element, isInterrupted); + this.fireEvent('animationbeforeend', this, animation, element, isInterrupted); + if (isReplaced || !isInterrupted && !data.preserveEndState) { + toPropertyNames = data.toPropertyNames; + for (i = 0, ln = toPropertyNames.length; i < ln; i++) { + name = toPropertyNames[i]; + if (runningNameMap && !runningNameMap.hasOwnProperty(name)) { + endData[name] = null; + } + } + } + if (data.after) { + Ext.merge(endData, data.after); + } + this.applyStyles(endRules); + if (data.onEnd) { + data.onEnd.call(data.scope || this, element, isInterrupted); + } + animation.fireEvent('animationend', animation, element, isInterrupted); + this.fireEvent('animationend', this, animation, element, isInterrupted); + Ext.AnimationQueue.stop(Ext.emptyFn, animation); +}, onAllAnimationsEnd:function(element) { + var id = element.getId(), endRules = {}; + delete this.runningAnimationsData[id]; + endRules[id] = {'transition-property':null, 'transition-duration':null, 'transition-timing-function':null, 'transition-delay':null}; + this.applyStyles(endRules); + this.fireEvent('animationallend', this, element); +}, hasRunningAnimations:function(element) { + var id = element.getId(), runningAnimationsData = this.runningAnimationsData; + return runningAnimationsData.hasOwnProperty(id) && runningAnimationsData[id].sessions.length > 0; +}, refreshRunningAnimationsData:function(element, propertyNames, interrupt, replace) { + var id = element.getId(), runningAnimationsData = this.runningAnimationsData, runningData = runningAnimationsData[id]; + if (!runningData) { + return; + } + var nameMap = runningData.nameMap, nameList = runningData.nameList, sessions = runningData.sessions, ln, j, subLn, name, i, session, map, list, hasCompletedSession = false; + interrupt = Boolean(interrupt); + replace = Boolean(replace); + if (!sessions) { + return this; + } + ln = sessions.length; + if (ln === 0) { + return this; + } + if (replace) { + runningData.nameMap = {}; + nameList.length = 0; + for (i = 0; i < ln; i++) { + session = sessions[i]; + this.onAnimationEnd(element, session.data, session.animation, interrupt, replace); + } + sessions.length = 0; + } else { + for (i = 0; i < ln; i++) { + session = sessions[i]; + map = session.map; + list = session.list; + for (j = 0, subLn = propertyNames.length; j < subLn; j++) { + name = propertyNames[j]; + if (map[name]) { + delete map[name]; + Ext.Array.remove(list, name); + session.length--; + if (--nameMap[name] == 0) { + delete nameMap[name]; + Ext.Array.remove(nameList, name); + } + } + } + if (session.length == 0) { + sessions.splice(i, 1); + i--; + ln--; + hasCompletedSession = true; + this.onAnimationEnd(element, session.data, session.animation, interrupt); + } + } + } + if (!replace && !interrupt && sessions.length == 0 && hasCompletedSession) { + this.onAllAnimationsEnd(element); + } +}, getRunningData:function(id) { + var runningAnimationsData = this.runningAnimationsData; + if (!runningAnimationsData.hasOwnProperty(id)) { + runningAnimationsData[id] = {nameMap:{}, nameList:[], sessions:[]}; + } + return runningAnimationsData[id]; +}, getTestElement:function() { + var testElement = this.testElement, iframe, iframeDocument, iframeStyle; + if (!testElement) { + iframe = document.createElement('iframe'); + iframe.setAttribute('data-sticky', true); + iframe.setAttribute('tabIndex', -1); + iframeStyle = iframe.style; + iframeStyle.setProperty('visibility', 'hidden', 'important'); + iframeStyle.setProperty('width', '0px', 'important'); + iframeStyle.setProperty('height', '0px', 'important'); + iframeStyle.setProperty('position', 'absolute', 'important'); + iframeStyle.setProperty('border', '0px', 'important'); + iframeStyle.setProperty('zIndex', '-1000', 'important'); + document.body.appendChild(iframe); + iframeDocument = iframe.contentDocument; + iframeDocument.open(); + iframeDocument.writeln('\x3c/body\x3e'); + iframeDocument.close(); + this.testElement = testElement = iframeDocument.createElement('div'); + testElement.style.setProperty('position', 'absolute', 'important'); + iframeDocument.body.appendChild(testElement); + this.testElementComputedStyle = window.getComputedStyle(testElement); + } + return testElement; +}, getCssStyleValue:function(name, value) { + var testElement = this.getTestElement(), computedStyle = this.testElementComputedStyle, style = testElement.style; + style.setProperty(name, value); + if (Ext.browser.is.Firefox) { + testElement.offsetHeight; + } + value = computedStyle.getPropertyValue(name); + style.removeProperty(name); + return value; +}, run:function(animations) { + var me = this, isLengthPropertyMap = me.lengthProperties, fromData = {}, toData = {}, data = {}, element, elementId, from, to, before, fromPropertyNames, toPropertyNames, doApplyTo, message, runningData, elementData, i, j, ln, animation, propertiesLength, sessionNameMap, computedStyle, formattedName, name, toFormattedValue, computedValue, fromFormattedValue, isLengthProperty, runningNameMap, runningNameList, runningSessions, runningSession; + if (!me.listenersAttached) { + me.attachListeners(); + } + animations = Ext.Array.from(animations); + for (i = 0, ln = animations.length; i < ln; i++) { + animation = animations[i]; + animation = Ext.factory(animation, Ext.fx.Animation); + element = animation.getElement(); + Ext.AnimationQueue.start(Ext.emptyFn, animation); + computedStyle = window.getComputedStyle(element.dom); + elementId = element.getId(); + data = Ext.merge({}, animation.getData()); + if (animation.onBeforeStart) { + animation.onBeforeStart.call(animation.scope || me, element); + } + animation.fireEvent('animationstart', animation); + me.fireEvent('animationstart', me, animation); + data[elementId] = data; + before = data.before; + from = data.from; + to = data.to; + data.fromPropertyNames = fromPropertyNames = []; + data.toPropertyNames = toPropertyNames = []; + for (name in to) { + if (to.hasOwnProperty(name)) { + to[name] = toFormattedValue = me.formatValue(to[name], name); + formattedName = me.formatName(name); + isLengthProperty = isLengthPropertyMap.hasOwnProperty(name); + if (!isLengthProperty) { + toFormattedValue = me.getCssStyleValue(formattedName, toFormattedValue); + } + if (from.hasOwnProperty(name)) { + from[name] = fromFormattedValue = me.formatValue(from[name], name); + if (!isLengthProperty) { + fromFormattedValue = me.getCssStyleValue(formattedName, fromFormattedValue); + } + if (toFormattedValue !== fromFormattedValue) { + fromPropertyNames.push(formattedName); + toPropertyNames.push(formattedName); + } + } else { + computedValue = computedStyle.getPropertyValue(formattedName); + if (toFormattedValue !== computedValue) { + toPropertyNames.push(formattedName); + } + } + } + } + propertiesLength = toPropertyNames.length; + if (propertiesLength === 0) { + me.onAnimationEnd(element, data, animation); + continue; + } + runningData = me.getRunningData(elementId); + runningSessions = runningData.sessions; + if (runningSessions.length > 0) { + me.refreshRunningAnimationsData(element, Ext.Array.merge(fromPropertyNames, toPropertyNames), true, data.replacePrevious); + } + runningNameMap = runningData.nameMap; + runningNameList = runningData.nameList; + sessionNameMap = {}; + for (j = 0; j < propertiesLength; j++) { + name = toPropertyNames[j]; + sessionNameMap[name] = true; + if (!runningNameMap.hasOwnProperty(name)) { + runningNameMap[name] = 1; + runningNameList.push(name); + } else { + runningNameMap[name]++; + } + } + runningSession = {element:element, map:sessionNameMap, list:toPropertyNames.slice(), length:propertiesLength, data:data, animation:animation}; + runningSessions.push(runningSession); + animation.on('stop', 'onAnimationStop', me); + elementData = Ext.apply({}, before); + Ext.apply(elementData, from); + if (runningNameList.length > 0) { + fromPropertyNames = Ext.Array.difference(runningNameList, fromPropertyNames); + toPropertyNames = Ext.Array.merge(fromPropertyNames, toPropertyNames); + elementData['transition-property'] = fromPropertyNames; + } + fromData[elementId] = elementData; + toData[elementId] = Ext.apply({}, to); + toData[elementId]['transition-property'] = toPropertyNames; + toData[elementId]['transition-duration'] = data.duration; + toData[elementId]['transition-timing-function'] = data.easing; + toData[elementId]['transition-delay'] = data.delay; + animation.startTime = Date.now(); + } + message = me.$className; + me.applyStyles(fromData); + doApplyTo = function(e) { + if (e.data === message && e.source === window) { + window.removeEventListener('message', doApplyTo, false); + me.applyStyles(toData); + } + }; + if (window.requestAnimationFrame) { + window.requestAnimationFrame(function() { + window.addEventListener('message', doApplyTo, false); + window.postMessage(message, '*'); + }); + } else { + Ext.defer(function() { + window.addEventListener('message', doApplyTo, false); + window.postMessage(message, '*'); + }, 1); + } +}, onAnimationStop:function(animation) { + var runningAnimationsData = this.runningAnimationsData, id, runningData, sessions, i, ln, session; + for (id in runningAnimationsData) { + if (runningAnimationsData.hasOwnProperty(id)) { + runningData = runningAnimationsData[id]; + sessions = runningData.sessions; + for (i = 0, ln = sessions.length; i < ln; i++) { + session = sessions[i]; + if (session.animation === animation) { + this.refreshRunningAnimationsData(session.element, session.list.slice(), false); + } + } + } + } +}}); +Ext.define('Ext.mixin.Container', {extend:Ext.Mixin, mixinConfig:{id:'container'}, isContainer:true, config:{referenceHolder:false}, getReferences:function() { + Ext.ComponentManager.fixReferences(); + return this.refs || null; +}, lookup:function(key) { + var refs = this.getReferences(); + return refs && refs[key] || null; +}, lookupReference:function(key) { + return this.lookup(key); +}, privates:{attachReference:function(component) { + var me = this, key, refs; + if (me.destroying || me.destroyed) { + return; + } + refs = me.refs || (me.refs = {}); + key = component.referenceKey; + if (refs[key] && refs[key] !== component) { + Ext.log.warn('Duplicate reference: "' + key + '" on ' + me.id); + } + refs[key] = component; +}, clearReference:function(component) { + var refs = this.refs, key = component.referenceKey; + if (refs && key) { + component.viewModelKey = component.referenceKey = refs[key] = null; + } +}, containerOnAdded:function(component, instanced) { + if (instanced) { + Ext.ComponentManager.markReferencesDirty(); + } +}, containerOnRemoved:function(destroying) { + var refHolder; + if (!destroying) { + refHolder = this.lookupReferenceHolder(); + if (refHolder) { + Ext.ComponentManager.markReferencesDirty(); + refHolder.clearReferences(); + } + } +}, clearReferences:function() { + this.refs = null; +}, initContainerInheritedState:function(inheritedState, inheritedStateInner) { + var me = this, controller = me.getController(), session = me.getSession(), viewModel = me.getConfig('viewModel', true), reference = me.getReference(), referenceHolder = me.getReferenceHolder(); + if (controller) { + inheritedState.referenceHolder = controller; + referenceHolder = true; + } else { + if (referenceHolder) { + inheritedState.referenceHolder = me; + } + } + if (referenceHolder) { + inheritedState.referencePath = ''; + } else { + if (reference && me.isParentReference) { + inheritedState.referencePath = me.referenceKey + '.'; + } + } + if (session) { + inheritedState.session = session; + } + if (viewModel) { + inheritedState.viewModelPath = ''; + } else { + if (reference && me.isParentReference) { + inheritedState.viewModelPath = me.viewModelKey + '.'; + } + } +}, setupReference:function(reference) { + var len; + if (reference && reference.charAt(len = reference.length - 1) === '\x3e') { + this.isParentReference = true; + reference = reference.substring(0, len); + } + if (reference && !Ext.validIdRe.test(reference)) { + Ext.Error.raise('Invalid reference "' + reference + '" for ' + this.getId() + ' - not a valid identifier'); + } + return reference; +}}}); +Ext.define('Ext.mixin.Responsive', function(Responsive) { + return {extend:Ext.Mixin, mixinConfig:{id:'responsive', after:{destroy:'destroy'}}, config:{responsiveConfig:{$value:undefined, merge:function(newValue, oldValue, target, mixinClass) { + if (!newValue) { + return oldValue; + } + var ret = oldValue ? Ext.Object.chain(oldValue) : {}, rule; + for (rule in newValue) { + if (!mixinClass || !(rule in ret)) { + ret[rule] = {fn:null, config:newValue[rule]}; + } + } + return ret; + }}, responsiveFormulas:{$value:0, merge:function(newValue, oldValue, target, mixinClass) { + return this.mergeNew(newValue, oldValue, target, mixinClass); + }}}, destroy:function() { + Responsive.unregister(this); + this.callParent(); + }, privates:{statics:{active:false, all:{}, context:Ext.Object.chain(Ext.platformTags), count:0, nextId:0, activate:function() { + Responsive.active = true; + Responsive.updateContext(); + Ext.on('resize', Responsive.onResize, Responsive); + }, deactivate:function() { + Responsive.active = false; + Ext.un('resize', Responsive.onResize, Responsive); + }, notify:function() { + var all = Responsive.all, context = Responsive.context, globalEvents = Ext.GlobalEvents, timer = Responsive.timer, id; + if (timer) { + Responsive.timer = null; + Ext.Function.cancelAnimationFrame(timer); + } + Responsive.updateContext(); + Ext.suspendLayouts(); + globalEvents.fireEvent('beforeresponsiveupdate', context); + for (id in all) { + all[id].setupResponsiveContext(); + } + globalEvents.fireEvent('beginresponsiveupdate', context); + for (id in all) { + all[id].updateResponsiveState(); + } + globalEvents.fireEvent('responsiveupdate', context); + Ext.resumeLayouts(true); + }, onResize:function() { + if (!Responsive.timer) { + Responsive.timer = Ext.Function.requestAnimationFrame(Responsive.onTimer); + } + }, onTimer:function() { + Responsive.timer = null; + Responsive.notify(); + }, processConfig:function(instance, instanceConfig, name) { + var value = instanceConfig && instanceConfig[name], config = instance.config, cfg, configurator; + if (value) { + configurator = instance.getConfigurator(); + cfg = configurator.configs[name]; + config[name] = cfg.merge(value, config[name], instance); + } + }, register:function(responder) { + var id = responder.$responsiveId; + if (!id) { + responder.$responsiveId = id = ++Responsive.nextId; + Responsive.all[id] = responder; + if (++Responsive.count === 1) { + Responsive.activate(); + } + } + }, unregister:function(responder) { + var id = responder.$responsiveId; + if (id in Responsive.all) { + responder.$responsiveId = null; + delete Responsive.all[id]; + if (--Responsive.count === 0) { + Responsive.deactivate(); + } + } + }, updateContext:function() { + var El = Ext.Element, width = El.getViewportWidth(), height = El.getViewportHeight(), context = Responsive.context; + context.width = width; + context.height = height; + context.tall = width < height; + context.wide = !context.tall; + context.landscape = context.portrait = false; + if (!context.platform) { + context.platform = Ext.platformTags; + } + context[Ext.dom.Element.getOrientation()] = true; + }}, afterClassMixedIn:function(targetClass) { + var proto = targetClass.prototype, responsiveConfig = proto.responsiveConfig, responsiveFormulas = proto.responsiveFormulas, config; + if (responsiveConfig || responsiveFormulas) { + config = {}; + if (responsiveConfig) { + delete proto.responsiveConfig; + config.responsiveConfig = responsiveConfig; + } + if (responsiveFormulas) { + delete proto.responsiveFormulas; + config.responsiveFormulas = responsiveFormulas; + } + targetClass.getConfigurator().add(config); + } + }, applyResponsiveConfig:function(rules) { + for (var rule in rules) { + rules[rule].fn = Ext.createRuleFn(rule); + } + return rules; + }, applyResponsiveFormulas:function(formulas) { + var ret = {}, fn, name; + if (formulas) { + for (name in formulas) { + if (Ext.isString(fn = formulas[name])) { + fn = Ext.createRuleFn(fn); + } + ret[name] = fn; + } + } + return ret; + }, getResponsiveState:function() { + var context = Responsive.context, rules = this.getResponsiveConfig(), ret = {}, entry, rule; + if (rules) { + for (rule in rules) { + entry = rules[rule]; + if (entry.fn.call(this, context)) { + Ext.merge(ret, entry.config); + } + } + } + return ret; + }, setupResponsiveContext:function() { + var formulas = this.getResponsiveFormulas(), context = Responsive.context, name; + if (formulas) { + for (name in formulas) { + context[name] = formulas[name].call(this, context); + } + } + }, transformInstanceConfig:function(instanceConfig) { + var me = this, ret; + Responsive.register(me); + if (instanceConfig) { + Responsive.processConfig(me, instanceConfig, 'responsiveConfig'); + Responsive.processConfig(me, instanceConfig, 'responsiveFormulas'); + } + me.setupResponsiveContext(); + ret = me.getResponsiveState(); + if (instanceConfig) { + ret = Ext.merge({}, instanceConfig, ret); + delete ret.responsiveConfig; + delete ret.responsiveFormulas; + } + return ret; + }, updateResponsiveState:function() { + var config = this.getResponsiveState(); + this.setConfig(config); + }}}; +}); +Ext.define('Ext.perf.Accumulator', function() { + var currentFrame = null, khrome = Ext.global['chrome'], formatTpl, getTimestamp = function() { + getTimestamp = Ext.now; + var interval, toolbox; + if (Ext.isChrome && khrome && khrome.Interval) { + interval = new khrome.Interval; + interval.start(); + getTimestamp = function() { + return interval.microseconds() / 1000; + }; + } else { + if (window.ActiveXObject) { + try { + toolbox = new ActiveXObject('SenchaToolbox.Toolbox'); + Ext.senchaToolbox = toolbox; + getTimestamp = function() { + return toolbox.milliseconds; + }; + } catch (e$25) { + } + } + } + Ext.perf.getTimestamp = Ext.perf.Accumulator.getTimestamp = getTimestamp; + return getTimestamp(); + }; + function adjustSet(set, time) { + set.sum += time; + set.min = Math.min(set.min, time); + set.max = Math.max(set.max, time); + } + function leaveFrame(time) { + var totalTime = time ? time : getTimestamp() - this.time, me = this, accum = me.accum; + ++accum.count; + if (!--accum.depth) { + adjustSet(accum.total, totalTime); + } + adjustSet(accum.pure, totalTime - me.childTime); + currentFrame = me.parent; + if (currentFrame) { + ++currentFrame.accum.childCount; + currentFrame.childTime += totalTime; + } + } + function makeSet() { + return {min:Number.MAX_VALUE, max:0, sum:0}; + } + function makeTap(me, fn) { + return function() { + var frame = me.enter(), ret = fn.apply(this, arguments); + frame.leave(); + return ret; + }; + } + function setToJSON(count, childCount, calibration, set) { + var data = {avg:0, min:set.min, max:set.max, sum:0}; + if (count) { + calibration = calibration || 0; + data.sum = set.sum - childCount * calibration; + data.avg = data.sum / count; + } + return data; + } + return {constructor:function(name) { + var me = this; + me.count = me.childCount = me.depth = me.maxDepth = 0; + me.pure = makeSet(); + me.total = makeSet(); + me.name = name; + }, statics:{getTimestamp:getTimestamp}, format:function(calibration) { + if (!formatTpl) { + formatTpl = new Ext.XTemplate(['{name} - {count} call(s)', '\x3ctpl if\x3d"count"\x3e', '\x3ctpl if\x3d"childCount"\x3e', ' ({childCount} children)', '\x3c/tpl\x3e', '\x3ctpl if\x3d"depth - 1"\x3e', ' ({depth} deep)', '\x3c/tpl\x3e', '\x3ctpl for\x3d"times"\x3e', ', {type}: {[this.time(values.sum)]} msec (', 'avg\x3d{[this.time(values.sum / parent.count)]}', ')', '\x3c/tpl\x3e', '\x3c/tpl\x3e'].join(''), {time:function(t) { + return Math.round(t * 100) / 100; + }}); + } + var data = this.getData(calibration); + data.name = this.name; + data.pure.type = 'Pure'; + data.total.type = 'Total'; + data.times = [data.pure, data.total]; + return formatTpl.apply(data); + }, getData:function(calibration) { + var me = this; + return {count:me.count, childCount:me.childCount, depth:me.maxDepth, pure:setToJSON(me.count, me.childCount, calibration, me.pure), total:setToJSON(me.count, me.childCount, calibration, me.total)}; + }, enter:function() { + var me = this, frame = {accum:me, leave:leaveFrame, childTime:0, parent:currentFrame}; + ++me.depth; + if (me.maxDepth < me.depth) { + me.maxDepth = me.depth; + } + currentFrame = frame; + frame.time = getTimestamp(); + return frame; + }, monitor:function(fn, scope, args) { + var frame = this.enter(); + if (args) { + fn.apply(scope, args); + } else { + fn.call(scope); + } + frame.leave(); + }, report:function() { + Ext.log(this.format()); + }, tap:function(className, methodName) { + var me = this, methods = typeof methodName === 'string' ? [methodName] : methodName, klass, statik, i, parts, length, name, src, tapFunc; + tapFunc = function() { + if (typeof className === 'string') { + klass = Ext.global; + parts = className.split('.'); + for (i = 0, length = parts.length; i < length; ++i) { + klass = klass[parts[i]]; + } + } else { + klass = className; + } + for (i = 0, length = methods.length; i < length; ++i) { + name = methods[i]; + statik = name.charAt(0) === '!'; + if (statik) { + name = name.substring(1); + } else { + statik = !(name in klass.prototype); + } + src = statik ? klass : klass.prototype; + src[name] = makeTap(me, src[name]); + } + }; + Ext.ClassManager.onCreated(tapFunc, me, className); + return me; + }}; +}, function() { + Ext.perf.getTimestamp = this.getTimestamp; +}); +Ext.define('Ext.perf.Monitor', {singleton:true, alternateClassName:'Ext.Perf', constructor:function() { + this.accumulators = []; + this.accumulatorsByName = {}; +}, calibrate:function() { + var accum = new Ext.perf.Accumulator('$'), total = accum.total, getTimestamp = Ext.perf.Accumulator.getTimestamp, count = 0, frame, endTime, startTime; + startTime = getTimestamp(); + do { + frame = accum.enter(); + frame.leave(); + ++count; + } while (total.sum < 100); + endTime = getTimestamp(); + return (endTime - startTime) / count; +}, get:function(name) { + var me = this, accum = me.accumulatorsByName[name]; + if (!accum) { + me.accumulatorsByName[name] = accum = new Ext.perf.Accumulator(name); + me.accumulators.push(accum); + } + return accum; +}, enter:function(name) { + return this.get(name).enter(); +}, monitor:function(name, fn, scope) { + this.get(name).monitor(fn, scope); +}, report:function() { + var me = this, accumulators = me.accumulators, calibration = me.calibrate(); + accumulators.sort(function(a, b) { + return a.name < b.name ? -1 : b.name < a.name ? 1 : 0; + }); + me.updateGC(); + Ext.log('Calibration: ' + Math.round(calibration * 100) / 100 + ' msec/sample'); + Ext.each(accumulators, function(accum) { + Ext.log(accum.format(calibration)); + }); +}, getData:function(all) { + var ret = {}, accumulators = this.accumulators; + Ext.each(accumulators, function(accum) { + if (all || accum.count) { + ret[accum.name] = accum.getData(); + } + }); + return ret; +}, reset:function() { + Ext.each(this.accumulators, function(accum) { + var me = accum; + me.count = me.childCount = me.depth = me.maxDepth = 0; + me.pure = {min:Number.MAX_VALUE, max:0, sum:0}; + me.total = {min:Number.MAX_VALUE, max:0, sum:0}; + }); +}, updateGC:function() { + var accumGC = this.accumulatorsByName.GC, toolbox = Ext.senchaToolbox, bucket; + if (accumGC) { + accumGC.count = toolbox.garbageCollectionCounter || 0; + if (accumGC.count) { + bucket = accumGC.pure; + accumGC.total.sum = bucket.sum = toolbox.garbageCollectionMilliseconds; + bucket.min = bucket.max = bucket.sum / accumGC.count; + bucket = accumGC.total; + bucket.min = bucket.max = bucket.sum / accumGC.count; + } + } +}, watchGC:function() { + Ext.perf.getTimestamp(); + var toolbox = Ext.senchaToolbox; + if (toolbox) { + this.get('GC'); + toolbox.watchGarbageCollector(false); + } +}, setup:function(config) { + if (!config) { + config = {render:{'Ext.Component':'render'}, layout:{'Ext.layout.Context':'run'}}; + } + this.currentConfig = config; + var key, prop, accum, className, methods; + for (key in config) { + if (config.hasOwnProperty(key)) { + prop = config[key]; + accum = Ext.Perf.get(key); + for (className in prop) { + if (prop.hasOwnProperty(className)) { + methods = prop[className]; + accum.tap(className, methods); + } + } + } + } + this.watchGC(); +}, setupLog:function(config) { + var className, cls, methods, method, override; + for (className in config) { + if (config.hasOwnProperty(className)) { + cls = Ext.ClassManager.get(className); + if (cls) { + methods = config[className]; + override = {}; + for (method in methods) { + override[method] = function(methodName, idProp) { + return function() { + var before, diff, id, idHolder, ret; + before = +Date.now(); + ret = this.callParent(arguments); + diff = +Date.now() - before; + if (window.console && diff > 0) { + idHolder = idProp === 'this' ? this : typeof idProp === 'string' ? this[idProp] : typeof idProp === 'number' ? arguments[idProp] : null; + if (idHolder) { + id = idHolder.id; + } + if (id != null) { + console.log(methodName + ' for ' + id + ': ' + diff + 'ms'); + } else { + console.log(methodName + ' for unknown: ' + diff + 'ms'); + } + if (console.trace) { + console.trace(); + } + } + return ret; + }; + }(method, methods[method]); + } + Ext.override(cls, override); + } + } + } +}}); +Ext.define('Ext.util.ItemCollection', {extend:Ext.util.MixedCollection, alternateClassName:'Ext.ItemCollection', getKey:function(item) { + return item.getItemId && item.getItemId(); +}, has:function(item) { + return this.map.hasOwnProperty(item.getId()); +}}); +Ext.define('Ext.util.TaskManager', {extend:Ext.util.TaskRunner, alternateClassName:['Ext.TaskManager'], singleton:true}); +Ext.define('Ext.util.TextMetrics', {statics:{shared:null, measure:function(el, text, fixedWidth) { + var me = this, shared = me.shared; + if (!shared) { + shared = me.shared = new me(el, fixedWidth); + } + shared.bind(el); + shared.setFixedWidth(fixedWidth || 'auto'); + return shared.getSize(text); +}, destroy:function() { + var me = this; + Ext.destroy(me.shared); + me.shared = null; +}}, constructor:function(bindTo, fixedWidth) { + var me = this, measure = Ext.getBody().createChild({'data-sticky':true, role:'presentation', cls:Ext.baseCSSPrefix + 'textmetrics'}); + measure.setVisibilityMode(1); + me.measure = measure; + if (bindTo) { + me.bind(bindTo); + } + measure.position('absolute'); + measure.setLocalXY(-1000, -1000); + measure.hide(); + if (fixedWidth) { + measure.setWidth(fixedWidth); + } +}, getSize:function(text) { + var measure = this.measure, size; + measure.setHtml(text); + size = measure.getSize(); + measure.setHtml(''); + return size; +}, bind:function(el) { + var me = this; + me.el = Ext.get(el); + me.measure.setStyle(me.el.getStyle(['font-size', 'font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing', 'word-break'])); +}, setFixedWidth:function(width) { + this.measure.setWidth(width); +}, getWidth:function(text) { + this.measure.dom.style.width = 'auto'; + return this.getSize(text).width; +}, getHeight:function(text) { + return this.getSize(text).height; +}, destroy:function() { + var me = this; + me.el = me.measure = Ext.destroy(me.measure); + me.callParent(); +}}, function() { + Ext.Element.override({getTextWidth:function(text, min, max) { + return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom, Ext.valueFrom(text, this.dom.innerHTML, true)).width, min || 0, max || 1000000); + }}); +}); +Ext.define(null, {override:'Ext.event.publisher.Focus', compatibility:Ext.isIE10m, doDelegatedEvent:function(e, invokeAfter) { + var body = document.body, el = Ext.synchronouslyFocusing; + if (el && (e.type === 'focusout' && e.srcElement === el && e.toElement === body || e.type === 'focusin' && e.srcElement === body && e.fromElement === el && e.toElement === null)) { + return; + } + return this.callParent([e, invokeAfter]); +}}); +Ext.define(null, {override:'Ext.scroll.DomScroller', compatibility:Ext.isIE8, privates:{doScrollTo:function(x, y, animate) { + var me = this, element = me.getElement(), maxPosition, dom, to, xInf, yInf; + if (element && !element.destroyed) { + dom = this.getElement().dom; + xInf = x === Infinity; + yInf = y === Infinity; + if (xInf || yInf) { + maxPosition = me.getMaxPosition(); + if (xInf) { + x = maxPosition.x; + } + if (yInf) { + y = maxPosition.y; + } + } + x = me.convertX(x); + if (animate) { + to = {}; + if (y != null) { + to.scrollTop = y; + } + if (x != null) { + to.scrollLeft = x; + } + element.animate(Ext.mergeIf({to:{scrollTop:y, scrollLeft:x}}, animate)); + } else { + if (x != null && y != null) { + me.deferDomScroll = true; + } + if (y != null) { + dom.scrollTop = y; + } + if (x != null) { + dom.scrollLeft = x; + } + if (me.deferDomScroll) { + me.deferDomScroll = false; + +dom.scrollLeft; + dom.scrollLeft = x; + } + } + me.positionDirty = true; + } +}, onDomScroll:function() { + var me = this; + if (me.deferDomScroll) { + return; + } + me.callParent(); +}}}); +Ext.define('Ext.ElementLoader', {mixins:[Ext.util.Observable], statics:{Renderer:{Html:function(loader, response, active) { + loader.getTarget().setHtml(response.responseText, active.scripts === true, active.rendererScope); + return true; +}}}, url:null, params:null, baseParams:null, autoLoad:false, target:null, loadMask:false, ajaxOptions:null, scripts:false, isLoader:true, constructor:function(config) { + var me = this, autoLoad; + me.mixins.observable.constructor.call(me, config); + me.setTarget(me.target); + if (me.autoLoad) { + autoLoad = me.autoLoad; + if (autoLoad === true) { + autoLoad = null; + } + me.load(autoLoad); + } +}, setTarget:function(target) { + var me = this; + target = Ext.get(target); + if (me.target && me.target !== target) { + me.abort(); + } + me.target = target; +}, getTarget:function() { + return this.target || null; +}, abort:function() { + var active = this.active; + if (active !== undefined) { + Ext.Ajax.abort(active.request); + if (active.mask) { + this.removeMask(); + } + delete this.active; + } +}, removeMask:function() { + this.target.unmask(); +}, addMask:function(mask) { + this.target.mask(mask === true ? null : mask); +}, load:function(options) { + if (!this.target) { + Ext.raise('A valid target is required when loading content'); + } + options = Ext.apply({}, options); + var me = this, mask = Ext.isDefined(options.loadMask) ? options.loadMask : me.loadMask, params = Ext.apply({}, options.params), ajaxOptions = Ext.apply({}, options.ajaxOptions), callback = options.callback || me.callback, scope = options.scope || me.scope || me; + Ext.applyIf(ajaxOptions, me.ajaxOptions); + Ext.applyIf(options, ajaxOptions); + Ext.applyIf(params, me.params); + Ext.apply(params, me.baseParams); + Ext.applyIf(options, {url:me.url}); + if (!options.url) { + Ext.raise('You must specify the URL from which content should be loaded'); + } + Ext.apply(options, {scope:me, params:params, callback:me.onComplete}); + if (me.fireEvent('beforeload', me, options) === false) { + return; + } + if (mask) { + me.addMask(mask); + } + me.active = {options:options, mask:mask, scope:scope, callback:callback, success:options.success || me.success, failure:options.failure || me.failure, renderer:options.renderer || me.renderer, scripts:Ext.isDefined(options.scripts) ? options.scripts : me.scripts}; + me.active.request = Ext.Ajax.request(options); + me.setOptions(me.active, options); +}, setOptions:function(active, options) { + active.rendererScope = options.rendererScope || this.rendererScope || this; +}, onComplete:function(options, success, response) { + var me = this, active = me.active, rendererScope, scope; + if (active) { + scope = active.scope; + rendererScope = active.rendererScope; + if (success) { + success = me.getRenderer(active.renderer).call(rendererScope, me, response, active) !== false; + } + if (success) { + Ext.callback(active.success, scope, [me, response, options]); + me.fireEvent('load', me, response, options); + } else { + Ext.callback(active.failure, scope, [me, response, options]); + me.fireEvent('exception', me, response, options); + } + Ext.callback(active.callback, scope, [me, success, response, options]); + if (active.mask) { + me.removeMask(); + } + } + delete me.active; +}, getRenderer:function(renderer) { + if (Ext.isFunction(renderer)) { + return renderer; + } + return this.statics().Renderer.Html; +}, startAutoRefresh:function(interval, options) { + var me = this; + me.stopAutoRefresh(); + me.autoRefresh = Ext.interval(function() { + me.load(options); + }, interval); +}, stopAutoRefresh:function() { + clearInterval(this.autoRefresh); + delete this.autoRefresh; +}, isAutoRefreshing:function() { + return Ext.isDefined(this.autoRefresh); +}, destroy:function() { + var me = this; + me.stopAutoRefresh(); + delete me.target; + me.abort(); + me.callParent(); +}}); +Ext.define('Ext.ComponentLoader', {extend:Ext.ElementLoader, statics:{Renderer:{Data:function(loader, response, active) { + var success = true; + try { + loader.getTarget().update(Ext.decode(response.responseText)); + } catch (e$26) { + success = false; + } + return success; +}, Component:function(loader, response, active) { + var success = true, target = loader.getTarget(), items = []; + if (!target.isContainer) { + Ext.raise({target:target, msg:'Components can only be loaded into a container'}); + } + try { + items = Ext.decode(response.responseText); + } catch (e$27) { + success = false; + } + if (success) { + target.suspendLayouts(); + if (active.removeAll) { + target.removeAll(); + } + target.add(items); + target.resumeLayouts(true); + } + return success; +}}}, target:null, loadOnRender:false, loadMask:false, renderer:'html', setTarget:function(target) { + var me = this; + if (Ext.isString(target)) { + target = Ext.getCmp(target); + } + if (me.target && me.target !== target) { + me.abort(); + } + me.target = target; + if (target && me.loadOnRender) { + if (target.rendered) { + me.doLoadOnRender(); + } else { + me.mon(target, 'render', me.doLoadOnRender, me); + } + } +}, doLoadOnRender:function() { + var loadOnRender = this.loadOnRender; + this.load(Ext.isObject(loadOnRender) ? loadOnRender : null); +}, removeMask:function() { + this.target.setLoading(false); +}, addMask:function(mask) { + this.target.setLoading(mask); +}, setOptions:function(active, options) { + active.removeAll = Ext.isDefined(options.removeAll) ? options.removeAll : this.removeAll; + active.rendererScope = options.rendererScope || this.rendererScope || this.target; +}, getRenderer:function(renderer) { + if (Ext.isFunction(renderer)) { + return renderer; + } + var renderers = this.statics().Renderer; + switch(renderer) { + case 'component': + return renderers.Component; + case 'data': + return renderers.Data; + default: + return Ext.ElementLoader.Renderer.Html; + } +}}); +Ext.define('Ext.layout.SizeModel', {constructor:function(config) { + var me = this, SizeModel = me.self, sizeModelsArray = SizeModel.sizeModelsArray, name; + Ext.apply(me, config); + me[name = me.name] = true; + me.fixed = !(me.auto = me.natural || me.shrinkWrap); + sizeModelsArray[me.ordinal = sizeModelsArray.length] = SizeModel[name] = SizeModel.sizeModels[name] = me; +}, statics:{sizeModelsArray:[], sizeModels:{}}, calculated:false, configured:false, constrainedMax:false, constrainedMin:false, natural:false, shrinkWrap:false, calculatedFromConfigured:false, calculatedFromNatural:false, calculatedFromShrinkWrap:false, names:null}, function() { + var SizeModel = this, sizeModelsArray = SizeModel.sizeModelsArray, i, j, n, pairs, sizeModel; + new SizeModel({name:'calculated'}); + new SizeModel({name:'configured', names:{width:'width', height:'height'}}); + new SizeModel({name:'natural'}); + new SizeModel({name:'shrinkWrap'}); + new SizeModel({name:'calculatedFromConfigured', configured:true, calculatedFrom:true, names:{width:'width', height:'height'}}); + new SizeModel({name:'calculatedFromNatural', natural:true, calculatedFrom:true}); + new SizeModel({name:'calculatedFromShrinkWrap', shrinkWrap:true, calculatedFrom:true}); + new SizeModel({name:'constrainedMax', configured:true, constrained:true, names:{width:'maxWidth', height:'maxHeight'}}); + new SizeModel({name:'constrainedMin', configured:true, constrained:true, names:{width:'minWidth', height:'minHeight'}}); + new SizeModel({name:'constrainedDock', configured:true, constrained:true, constrainedByMin:true, names:{width:'dockConstrainedWidth', height:'dockConstrainedHeight'}}); + for (i = 0, n = sizeModelsArray.length; i < n; ++i) { + sizeModel = sizeModelsArray[i]; + sizeModel.pairsByHeightOrdinal = pairs = []; + for (j = 0; j < n; ++j) { + pairs.push({width:sizeModel, height:sizeModelsArray[j]}); + } + } +}); +Ext.define('Ext.layout.Layout', {mixins:[Ext.mixin.Factoryable], factoryConfig:{type:'layout'}, isLayout:true, initialized:false, running:false, needsItemSize:true, setsItemSize:true, autoSizePolicy:{readsWidth:1, readsHeight:1, setsWidth:0, setsHeight:0}, $configPrefixed:false, $configStrict:false, constructor:function(config) { + var me = this; + me.id = Ext.id(null, me.type + '-'); + me.initConfig(config); + delete me.type; + me.layoutCount = 0; +}, beginLayout:Ext.emptyFn, beginLayoutCycle:function(ownerContext) { + var me = this, context = me.context, changed; + if (me.lastWidthModel !== ownerContext.widthModel) { + if (me.lastWidthModel) { + changed = true; + } + me.lastWidthModel = ownerContext.widthModel; + } + if (me.lastHeightModel !== ownerContext.heightModel) { + if (me.lastWidthModel) { + changed = true; + } + me.lastHeightModel = ownerContext.heightModel; + } + if (changed) { + (context = ownerContext.context).clearTriggers(me, false); + context.clearTriggers(me, true); + me.triggerCount = 0; + } +}, finishedLayout:function(ownerContext) { + this.lastWidthModel = ownerContext.widthModel; + this.lastHeightModel = ownerContext.heightModel; + this.ownerContext = null; +}, redoLayout:Ext.emptyFn, undoLayout:Ext.emptyFn, getAnimatePolicy:function() { + return this.animatePolicy; +}, getItemSizePolicy:function(item) { + return this.autoSizePolicy; +}, getScrollerEl:Ext.emptyFn, isItemBoxParent:function(itemContext) { + return false; +}, isItemLayoutRoot:function(item) { + var sizeModel = item.getSizeModel(), width = sizeModel.width, height = sizeModel.height; + if (!item.componentLayout.lastComponentSize && (width.calculated || height.calculated)) { + return false; + } + return !width.shrinkWrap && !height.shrinkWrap; +}, isItemShrinkWrap:function(item) { + return item.shrinkWrap; +}, isRunning:function() { + return !!this.ownerContext; +}, getItemsRenderTree:function(items, renderCfgs) { + var length = items.length, i, item, itemConfig, result; + if (length) { + result = []; + for (i = 0; i < length; ++i) { + item = items[i]; + if (!item.rendered) { + if (renderCfgs && renderCfgs[item.id] !== undefined) { + itemConfig = renderCfgs[item.id]; + } else { + this.configureItem(item); + itemConfig = item.getRenderTree(); + if (renderCfgs) { + renderCfgs[item.id] = itemConfig; + } + } + if (itemConfig) { + result.push(itemConfig); + } + } + } + } + return result; +}, finishRender:Ext.emptyFn, finishRenderItems:function(target, items) { + var length = items.length, i, item; + for (i = 0; i < length; i++) { + item = items[i]; + if (item.rendering) { + item.finishRender(i); + } + } +}, renderChildren:function() { + var me = this, items = me.getLayoutItems(), target = me.getRenderTarget(); + me.renderItems(items, target); +}, renderItems:function(items, target) { + var me = this, ln = items.length, i = 0, item; + if (ln) { + Ext.suspendLayouts(); + for (; i < ln; i++) { + item = items[i]; + if (item && !item.rendered) { + me.renderItem(item, target, i); + } else { + if (!me.isValidParent(item, target, i)) { + me.moveItem(item, target, i); + } else { + me.configureItem(item); + } + } + } + Ext.resumeLayouts(true); + } +}, isValidParent:function(item, target, position) { + var targetDom = target && target.dom || target, itemDom = this.getItemLayoutEl(item); + if (itemDom && targetDom) { + if (typeof position === 'number') { + position = this.getPositionOffset(position); + return itemDom === targetDom.childNodes[position]; + } + return itemDom.parentNode === targetDom; + } + return false; +}, getItemLayoutEl:function(item) { + var dom = item.el ? item.el.dom : Ext.getDom(item), parentNode = dom.parentNode, className; + if (parentNode) { + className = parentNode.className; + if (className && className.indexOf(Ext.baseCSSPrefix + 'resizable-wrap') !== -1) { + dom = dom.parentNode; + } + } + return dom; +}, getPositionOffset:function(position) { + return position; +}, configureItem:function(item) { + item.ownerLayout = this; +}, renderItem:function(item, target, position) { + var me = this; + if (!item.rendered) { + me.configureItem(item); + item.render(target, position); + } +}, moveItem:function(item, target, position) { + target = target.dom || target; + if (typeof position === 'number') { + position = target.childNodes[position]; + } + target.insertBefore(item.el.dom, position || null); + item.container = Ext.get(target); + this.configureItem(item); +}, onContentChange:function() { + this.owner.updateLayout(); + return true; +}, initLayout:function() { + this.initialized = true; +}, setOwner:function(owner) { + this.owner = owner; +}, getLayoutItems:function() { + return []; +}, onAdd:function(item) { + item.ownerLayout = this; +}, onRemove:Ext.emptyFn, onDestroy:Ext.emptyFn, afterRemove:function(item) { + var me = this, el = item.el, owner = me.owner, removeClasses; + if (item.rendered) { + removeClasses = [].concat(me.itemCls || []); + if (owner.itemCls) { + removeClasses = Ext.Array.push(removeClasses, owner.itemCls); + } + if (removeClasses.length) { + el.removeCls(removeClasses); + } + } + delete item.ownerLayout; +}, afterCollapse:function(owner, animated) { + if (animated) { + this.onContentChange(owner); + } +}, afterExpand:function(owner, animated) { + if (animated) { + this.onContentChange(owner); + } +}, destroy:function() { + var me = this, target; + if (me.targetCls) { + target = me.getTarget(); + if (target) { + target.removeCls(me.targetCls); + } + } + me.onDestroy(); + me.callParent(); +}, sortWeightedItems:function(items, reverseProp) { + for (var i = 0, length = items.length; i < length; ++i) { + items[i].$i = i; + } + Ext.Array.sort(items, function(item1, item2) { + var ret = item2.weight - item1.weight; + if (!ret) { + ret = item1.$i - item2.$i; + if (item1[reverseProp]) { + ret = -ret; + } + } + return ret; + }); + for (i = 0; i < length; ++i) { + delete items[i].$i; + } +}}, function() { + var Layout = this; + Layout.prototype.sizeModels = Layout.sizeModels = Ext.layout.SizeModel.sizeModels; +}); +Ext.define('Ext.layout.container.Container', {extend:Ext.layout.Layout, alias:'layout.container', alternateClassName:'Ext.layout.ContainerLayout', mixins:[Ext.util.ElementContainer], type:'container', beginCollapse:Ext.emptyFn, beginExpand:Ext.emptyFn, animatePolicy:null, activeItemCount:0, renderTpl:['{%this.renderBody(out,values)%}'], usesContainerHeight:true, usesContainerWidth:true, usesHeight:true, usesWidth:true, constructor:function() { + this.callParent(arguments); + this.mixins.elementCt.constructor.call(this); +}, destroy:function() { + this.callParent(); + this.mixins.elementCt.destroy.call(this); +}, beginLayout:function(ownerContext) { + this.callParent(arguments); + ownerContext.targetContext = ownerContext.paddingContext = ownerContext.getEl('getTarget', this); + this.cacheChildItems(ownerContext); +}, beginLayoutCycle:function(ownerContext, firstCycle) { + var me = this; + me.callParent(arguments); + if (firstCycle) { + if (me.usesContainerHeight) { + ++ownerContext.consumersContainerHeight; + } + if (me.usesContainerWidth) { + ++ownerContext.consumersContainerWidth; + } + } +}, cacheChildItems:function(ownerContext) { + var me = this, context, childItems, items, length, i; + if (me.needsItemSize || me.setsItemSize) { + context = ownerContext.context; + childItems = ownerContext.childItems = []; + items = ownerContext.visibleItems = me.getVisibleItems(); + length = items.length; + for (i = 0; i < length; ++i) { + childItems.push(context.getCmp(items[i])); + } + } +}, cacheElements:function() { + var owner = this.owner; + this.attachChildEls(owner.el, owner); +}, calculate:function(ownerContext) { + var props = ownerContext.props, el = ownerContext.el; + if (ownerContext.widthModel.shrinkWrap && isNaN(props.width)) { + ownerContext.setContentWidth(el.getWidth()); + } + if (ownerContext.heightModel.shrinkWrap && isNaN(props.height)) { + ownerContext.setContentHeight(el.getHeight()); + } +}, configureItem:function(item) { + var me = this, itemCls = me.itemCls, ownerItemCls = me.owner.itemCls, needsCopy, addClasses; + item.ownerLayout = me; + if (itemCls) { + if (typeof itemCls === 'string') { + addClasses = [itemCls]; + } else { + addClasses = itemCls; + needsCopy = !!addClasses; + } + } + if (ownerItemCls) { + if (needsCopy) { + addClasses = Ext.Array.clone(addClasses); + } + addClasses = Ext.Array.push(addClasses || [], ownerItemCls); + } + if (addClasses) { + item.addCls(addClasses); + } +}, doRenderBody:function(out, renderData) { + this.renderItems(out, renderData); + this.renderContent(out, renderData); +}, doRenderContainer:function(out, renderData) { + var me = renderData.$comp.layout, tpl = me.getRenderTpl(), data = me.getRenderData(); + tpl.applyOut(data, out); +}, doRenderItems:function(out, renderData) { + var me = renderData.$layout, tree = me.getRenderTree(); + if (tree) { + Ext.DomHelper.generateMarkup(tree, out); + } +}, finishRender:function() { + var me = this, target, items; + me.callParent(); + me.cacheElements(); + target = me.getRenderTarget(); + items = me.getLayoutItems(); + me.finishRenderItems(target, items); +}, notifyOwner:function() { + if (!this._hasTargetWarning && this.targetCls && !this.getTarget().hasCls(this.targetCls)) { + this._hasTargetWarning = true; + Ext.log.warn('targetCls is missing. This may mean that getTargetEl() is being overridden but not applyTargetCls(). ' + this.owner.id); + } + this.owner.afterLayout(this); +}, getContainerSize:function(ownerContext, inDom) { + var targetContext = ownerContext.targetContext, frameInfo = targetContext.getFrameInfo(), padding = ownerContext.paddingContext.getPaddingInfo(), got = 0, needed = 0, gotWidth, gotHeight, width, height; + if (!ownerContext.widthModel.shrinkWrap) { + ++needed; + width = inDom ? targetContext.getDomProp('width') : targetContext.getProp('width'); + gotWidth = typeof width === 'number'; + if (gotWidth) { + ++got; + width -= frameInfo.width + padding.width; + if (width < 0) { + width = 0; + } + } + } + if (!ownerContext.heightModel.shrinkWrap) { + ++needed; + height = inDom ? targetContext.getDomProp('height') : targetContext.getProp('height'); + gotHeight = typeof height === 'number'; + if (gotHeight) { + ++got; + height -= frameInfo.height + padding.height; + if (height < 0) { + height = 0; + } + } + } + return {width:width, height:height, needed:needed, got:got, gotAll:got === needed, gotWidth:gotWidth, gotHeight:gotHeight}; +}, getPositionOffset:function(position) { + if (!this.createsInnerCt) { + var offset = this.owner.itemNodeOffset; + if (offset) { + position += offset; + } + } + return position; +}, getLayoutItems:function() { + var owner = this.owner, items = owner && owner.items; + return items && items.items || []; +}, getRenderData:function() { + var comp = this.owner; + return {$comp:comp, $layout:this, ownerId:comp.id}; +}, getRenderedItems:function() { + var me = this, target = me.getRenderTarget(), items = me.getLayoutItems(), ln = items.length, renderedItems = [], i, item; + for (i = 0; i < ln; i++) { + item = items[i]; + if (item.rendered && me.isValidParent(item, target, i)) { + renderedItems.push(item); + } + } + return renderedItems; +}, getRenderTarget:function() { + return this.owner.getTargetEl(); +}, getElementTarget:function() { + return this.getRenderTarget(); +}, getRenderTpl:function() { + var me = this, renderTpl = Ext.XTemplate.getTpl(this, 'renderTpl'); + if (!renderTpl.renderContent) { + me.owner.setupRenderTpl(renderTpl); + } + return renderTpl; +}, getRenderTree:function() { + var result, items = this.owner.items, itemsGen, renderCfgs = {}; + do { + itemsGen = items.generation; + result = this.getItemsRenderTree(this.getLayoutItems(), renderCfgs); + } while (items.generation !== itemsGen); + return result; +}, renderChildren:function() { + var me = this, ownerItems = me.owner.items, target = me.getRenderTarget(), itemsGen, items; + do { + itemsGen = ownerItems.generation; + items = me.getLayoutItems(); + me.renderItems(items, target); + } while (ownerItems.generation !== itemsGen); +}, getScrollbarsNeeded:function(width, height, contentWidth, contentHeight) { + var scrollbarSize = Ext.getScrollbarSize(), hasWidth = typeof width === 'number', hasHeight = typeof height === 'number', needHorz = 0, needVert = 0; + if (!scrollbarSize.width) { + return 0; + } + if (hasHeight && height < contentHeight) { + needVert = 2; + width -= scrollbarSize.width; + } + if (hasWidth && width < contentWidth) { + needHorz = 1; + if (!needVert && hasHeight) { + height -= scrollbarSize.height; + if (height < contentHeight) { + needVert = 2; + } + } + } + return needVert + needHorz; +}, getTarget:function() { + return this.owner.getTargetEl(); +}, getVisibleItems:function() { + var target = this.getRenderTarget(), items = this.getLayoutItems(), ln = items.length, visibleItems = [], i, item; + for (i = 0; i < ln; i++) { + item = items[i]; + if (item.rendered && this.isValidParent(item, target, i) && item.hidden !== true && !item.floated) { + visibleItems.push(item); + } + } + return visibleItems; +}, getMoveAfterIndex:function(after) { + return this.owner.items.indexOf(after) + 1; +}, moveItemBefore:function(item, before) { + var owner = this.owner, items = owner.items, index = items.indexOf(item), toIndex; + if (item === before) { + return item; + } + if (before) { + toIndex = items.indexOf(before); + if (index > -1 && index < toIndex) { + --toIndex; + } + } else { + toIndex = items.length; + } + return owner.insert(toIndex, item); +}, setupRenderTpl:function(renderTpl) { + renderTpl.renderBody = this.doRenderBody; + renderTpl.renderContainer = this.doRenderContainer; + renderTpl.renderItems = this.doRenderItems; +}, getContentTarget:function() { + return this.owner.getDefaultContentTarget(); +}, onAdd:function(item) { + if (!item.liquidLayout) { + ++this.activeItemCount; + } + this.callParent([item]); +}, onRemove:function(item, isDestroying) { + if (!item.liquidLayout) { + --this.activeItemCount; + } + this.callParent([item, isDestroying]); +}}); +Ext.define('Ext.layout.container.Auto', {alias:['layout.auto', 'layout.autocontainer'], extend:Ext.layout.container.Container, type:'autocontainer', childEls:['outerCt', 'innerCt'], reserveScrollbar:false, managePadding:true, manageOverflow:false, needsItemSize:false, setsItemSize:false, lastOverflowAdjust:{width:0, height:0}, outerCtCls:Ext.baseCSSPrefix + 'autocontainer-outerCt', innerCtCls:Ext.baseCSSPrefix + 'autocontainer-innerCt', renderTpl:['\x3cdiv id\x3d"{ownerId}-outerCt" data-ref\x3d"outerCt" class\x3d"{outerCtCls}" role\x3d"presentation"\x3e', +'\x3cdiv id\x3d"{ownerId}-innerCt" data-ref\x3d"innerCt" style\x3d"{%this.renderPadding(out, values)%}" ', '\x3ctpl if\x3d"!$comp.html"\x3erole\x3d"presentation"\x3c/tpl\x3e', 'class\x3d"{innerCtCls}"\x3e', '{%this.renderBody(out,values)%}', '\x3c/div\x3e', '\x3c/div\x3e'], beginLayout:function(ownerContext) { + this.callParent(arguments); + this.initContextItems(ownerContext); +}, beforeLayoutCycle:function(ownerContext) { + var comp = this.owner, inheritedState = comp.inheritedState, inheritedStateInner = comp.inheritedStateInner; + if (!inheritedState || inheritedState.invalid) { + inheritedState = comp.getInherited(); + inheritedStateInner = comp.inheritedStateInner; + } + if (ownerContext.widthModel.shrinkWrap) { + inheritedStateInner.inShrinkWrapTable = true; + } else { + delete inheritedStateInner.inShrinkWrapTable; + } +}, beginLayoutCycle:function(ownerContext) { + var me = this, outerCt = me.outerCt, lastOuterCtWidth = me.lastOuterCtWidth || '', lastOuterCtHeight = me.lastOuterCtHeight || '', lastOuterCtTableLayout = me.lastOuterCtTableLayout || '', state = ownerContext.state, overflowXStyle, outerCtWidth, outerCtHeight, outerCtTableLayout, inheritedStateInner; + me.callParent(arguments); + outerCtWidth = outerCtHeight = outerCtTableLayout = ''; + if (!ownerContext.widthModel.shrinkWrap) { + outerCtWidth = '100%'; + inheritedStateInner = me.owner.inheritedStateInner; + overflowXStyle = me.getOverflowXStyle(ownerContext); + outerCtTableLayout = inheritedStateInner.inShrinkWrapTable || overflowXStyle === 'auto' || overflowXStyle === 'scroll' ? '' : 'fixed'; + } + if (!ownerContext.heightModel.shrinkWrap && !Ext.supports.PercentageHeightOverflowBug) { + outerCtHeight = '100%'; + } + if (outerCtWidth !== lastOuterCtWidth || me.hasOuterCtPxWidth) { + outerCt.setStyle('width', outerCtWidth); + me.lastOuterCtWidth = outerCtWidth; + me.hasOuterCtPxWidth = false; + } + if (outerCtTableLayout !== lastOuterCtTableLayout) { + outerCt.setStyle('table-layout', outerCtTableLayout); + me.lastOuterCtTableLayout = outerCtTableLayout; + } + if (outerCtHeight !== lastOuterCtHeight || me.hasOuterCtPxHeight) { + outerCt.setStyle('height', outerCtHeight); + me.lastOuterCtHeight = outerCtHeight; + me.hasOuterCtPxHeight = false; + } + if (me.hasInnerCtPxHeight) { + me.innerCt.setStyle('height', ''); + me.hasInnerCtPxHeight = false; + } + state.overflowAdjust = state.overflowAdjust || me.lastOverflowAdjust; +}, calculate:function(ownerContext) { + var me = this, state = ownerContext.state, containerSize = me.getContainerSize(ownerContext, true), calculatedItems = state.calculatedItems || (state.calculatedItems = me.calculateItems ? me.calculateItems(ownerContext, containerSize) : true); + me.setCtSizeIfNeeded(ownerContext, containerSize); + if (calculatedItems && ownerContext.hasDomProp('containerChildrenSizeDone')) { + me.calculateContentSize(ownerContext); + if (containerSize.gotAll) { + if (me.manageOverflow && !ownerContext.state.secondPass && !me.reserveScrollbar) { + me.calculateOverflow(ownerContext, containerSize); + } + return; + } + } + me.done = false; +}, calculateContentSize:function(ownerContext) { + var me = this, containerDimensions = (ownerContext.widthModel.shrinkWrap ? 1 : 0) | (ownerContext.heightModel.shrinkWrap ? 2 : 0), calcWidth = containerDimensions & 1 || undefined, calcHeight = containerDimensions & 2 || undefined, needed = 0, props = ownerContext.props; + if (calcWidth) { + if (isNaN(props.contentWidth)) { + ++needed; + } else { + calcWidth = undefined; + } + } + if (calcHeight) { + if (isNaN(props.contentHeight)) { + ++needed; + } else { + calcHeight = undefined; + } + } + if (needed) { + if (calcWidth && !ownerContext.setContentWidth(me.measureContentWidth(ownerContext))) { + me.done = false; + } + if (calcHeight && !ownerContext.setContentHeight(me.measureContentHeight(ownerContext))) { + me.done = false; + } + } +}, calculateOverflow:function(ownerContext) { + var me = this, width, height, scrollbarSize, scrollbars, xauto, yauto, targetEl; + xauto = me.getOverflowXStyle(ownerContext) === 'auto'; + yauto = me.getOverflowYStyle(ownerContext) === 'auto'; + if (xauto || yauto) { + scrollbarSize = Ext.getScrollbarSize(); + targetEl = ownerContext.overflowContext.el.dom; + scrollbars = 0; + if (targetEl.scrollWidth > targetEl.clientWidth) { + scrollbars |= 1; + } + if (targetEl.scrollHeight > targetEl.clientHeight) { + scrollbars |= 2; + } + width = yauto && scrollbars & 2 ? scrollbarSize.width : 0; + height = xauto && scrollbars & 1 ? scrollbarSize.height : 0; + if (width !== me.lastOverflowAdjust.width || height !== me.lastOverflowAdjust.height) { + me.done = false; + ownerContext.invalidate({state:{overflowAdjust:{width:width, height:height}, overflowState:scrollbars, secondPass:true}}); + } + } +}, completeLayout:function(ownerContext) { + this.lastOverflowAdjust = ownerContext.state.overflowAdjust; +}, doRenderBody:function(out, renderData) { + var me = renderData.$layout, XTemplate = Ext.XTemplate, beforeBodyTpl = me.beforeBodyTpl, afterBodyTpl = me.afterBodyTpl; + if (beforeBodyTpl) { + XTemplate.getTpl(me, 'beforeBodyTpl').applyOut(renderData, out); + } + this.renderItems(out, renderData); + this.renderContent(out, renderData); + if (afterBodyTpl) { + XTemplate.getTpl(me, 'afterBodyTpl').applyOut(renderData, out); + } +}, doRenderPadding:function(out, renderData) { + var me = renderData.$layout, owner = renderData.$layout.owner, padding = owner[owner.contentPaddingProperty]; + if (me.managePadding && padding) { + out.push('padding:', owner.unitizeBox(padding)); + } +}, finishedLayout:function(ownerContext) { + var innerCt = this.innerCt; + this.callParent(arguments); + if (Ext.isIE8) { + innerCt.repaint(); + } + if (Ext.isOpera) { + innerCt.setStyle('position', 'relative'); + innerCt.dom.scrollWidth; + innerCt.setStyle('position', ''); + } +}, getContainerSize:function(ownerContext, inDom) { + var size = this.callParent(arguments), overflowAdjust = ownerContext.state.overflowAdjust; + if (overflowAdjust) { + size.width -= overflowAdjust.width; + size.height -= overflowAdjust.height; + } + return size; +}, getRenderData:function() { + var me = this, data = me.callParent(); + data.innerCtCls = me.innerCtCls; + data.outerCtCls = me.outerCtCls; + return data; +}, getRenderTarget:function() { + return this.innerCt; +}, getElementTarget:function() { + return this.innerCt; +}, getOverflowXStyle:function(ownerContext) { + return ownerContext.overflowXStyle || (ownerContext.overflowXStyle = this.owner.scrollFlags.overflowX || ownerContext.overflowContext.getStyle('overflow-x')); +}, getOverflowYStyle:function(ownerContext) { + return ownerContext.overflowYStyle || (ownerContext.overflowYStyle = this.owner.scrollFlags.overflowY || ownerContext.overflowContext.getStyle('overflow-y')); +}, initContextItems:function(ownerContext) { + var me = this, target = ownerContext.target, overflowEl = me.owner.getOverflowEl(); + ownerContext.outerCtContext = ownerContext.getEl('outerCt', me); + ownerContext.innerCtContext = ownerContext.getEl('innerCt', me); + ownerContext.overflowContext = overflowEl === ownerContext.el ? ownerContext : ownerContext.getEl(overflowEl); + if (target[target.contentPaddingProperty] !== undefined) { + ownerContext.paddingContext = ownerContext.innerCtContext; + } +}, initLayout:function() { + var me = this, scrollbarWidth = Ext.getScrollbarSize().width, owner = me.owner; + me.callParent(); + if (scrollbarWidth && me.manageOverflow && !me.hasOwnProperty('lastOverflowAdjust')) { + if (owner.scrollable || me.reserveScrollbar) { + me.lastOverflowAdjust = {width:scrollbarWidth, height:0}; + } + } +}, measureContentHeight:function(ownerContext) { + var contentHeight = this.outerCt.getHeight(), target = ownerContext.target; + if (this.managePadding && target[target.contentPaddingProperty] === undefined) { + contentHeight += ownerContext.targetContext.getPaddingInfo().height; + } + return contentHeight; +}, measureContentWidth:function(ownerContext) { + var dom, style, old, contentWidth, target; + if (this.chromeCellMeasureBug) { + dom = this.innerCt.dom; + style = dom.style; + old = style.display; + if (old === 'table-cell') { + style.display = ''; + dom.offsetWidth; + style.display = old; + } + } + if (Ext.isSafari) { + dom = this.outerCt.dom; + style = dom.style; + style.display = 'table-cell'; + dom.offsetWidth; + dom.style.display = ''; + } + contentWidth = this.outerCt.getWidth(); + target = ownerContext.target; + if (this.managePadding && target[target.contentPaddingProperty] === undefined) { + contentWidth += ownerContext.targetContext.getPaddingInfo().width; + } + return contentWidth; +}, setCtSizeIfNeeded:function(ownerContext, containerSize) { + var me = this, height = containerSize.height, padding = ownerContext.paddingContext.getPaddingInfo(), targetEl = me.getTarget(), overflowXStyle = me.getOverflowXStyle(ownerContext), canOverflowX = overflowXStyle === 'auto' || overflowXStyle === 'scroll', scrollbarSize = Ext.getScrollbarSize(), needsOuterHeight, needsInnerHeight; + if (height && !ownerContext.heightModel.shrinkWrap) { + if (Ext.supports.PercentageHeightOverflowBug) { + needsOuterHeight = true; + } + if (Ext.isIE8) { + needsInnerHeight = true; + } + if ((needsOuterHeight || needsInnerHeight) && canOverflowX && targetEl.dom.scrollWidth > targetEl.dom.clientWidth) { + height = Math.max(height - scrollbarSize.height, 0); + } + if (needsOuterHeight) { + ownerContext.outerCtContext.setProp('height', height + padding.height); + me.hasOuterCtPxHeight = true; + } + if (needsInnerHeight) { + ownerContext.innerCtContext.setProp('height', height); + me.hasInnerCtPxHeight = true; + } + } +}, setupRenderTpl:function(renderTpl) { + this.callParent(arguments); + renderTpl.renderPadding = this.doRenderPadding; +}, getContentTarget:function() { + return this.innerCt; +}, getScrollerEl:function() { + return this.outerCt; +}}, function() { + this.prototype.chromeCellMeasureBug = Ext.isChrome && Ext.chromeVersion >= 26; +}); +Ext.define('Ext.ZIndexManager', {alternateClassName:'Ext.WindowGroup', statics:{zBase:9000, activeCounter:0}, constructor:function(container) { + var me = this; + me.id = Ext.id(null, 'zindex-mgr-'); + me.zIndexStack = new Ext.util.Collection({sorters:{sorterFn:function(comp1, comp2) { + var ret = (comp1.alwaysOnTop || 0) - (comp2.alwaysOnTop || 0); + if (!ret) { + ret = comp1.getActiveCounter() - comp2.getActiveCounter(); + } + return ret; + }}, filters:{filterFn:function(comp) { + return comp.isVisible(); + }}}); + me.zIndexStack.addObserver(me); + me.front = null; + me.globalListeners = Ext.GlobalEvents.on({beforehide:me.onComponentShowHide, show:me.onComponentShowHide, scope:me, destroyable:true}); + if (container) { + if (container.isContainer) { + container.on('resize', me.onContainerResize, me); + me.zseed = Ext.Number.from(me.rendered ? container.getEl().getStyle('zIndex') : undefined, me.getNextZSeed()); + me.targetEl = container.getTargetEl(); + me.container = container; + } else { + Ext.on('resize', me.onContainerResize, me); + me.zseed = me.getNextZSeed(); + me.targetEl = Ext.get(container); + } + } else { + me.zseed = me.getNextZSeed(); + Ext.onInternalReady(function() { + Ext.on('resize', me.onContainerResize, me); + me.targetEl = Ext.getBody(); + }); + } +}, getId:function() { + return this.id; +}, getNextZSeed:function() { + return Ext.ZIndexManager.zBase += 10000; +}, setBase:function(baseZIndex) { + this.zseed = baseZIndex; + return this.onCollectionSort(); +}, onCollectionSort:function() { + var me = this, oldFront = me.front, oldFrontFocused = oldFront && oldFront.containsFocus, zIndex = me.zseed, a = me.zIndexStack.getRange(), len = a.length, i, comp, topModal, topVisible, doFocus = false; + for (i = 0; i < len; i++) { + comp = a[i]; + zIndex = comp.setZIndex(zIndex); + if (!comp.hidden) { + topVisible = comp; + if (comp.modal) { + topModal = comp; + } + } + } + if (topVisible !== oldFront) { + if (oldFront && !oldFront.destroying) { + oldFront.setActive(false); + } + if (topVisible) { + doFocus = topVisible.isFocusable(true) && (topVisible.modal || topVisible.focusOnToFront && !topVisible.preventFocusOnActivate); + topVisible.setActive(true, doFocus); + } + } + me.front = topVisible; + if (topModal) { + me.showModalMask(topModal); + } else { + me.hideModalMask(); + } + return zIndex; +}, onComponentUpdate:function(comp) { + if (this.zIndexStack.contains(comp)) { + this.zIndexStack.sort(); + } +}, onComponentRender:function(comp) { + this.zIndexStack.itemChanged(comp, 'hidden'); +}, onComponentShowHide:function(comp) { + var zIndexStack = this.zIndexStack; + if (comp.isFloating() && !this.hidingAll && (zIndexStack.getSource() || zIndexStack).contains(comp)) { + zIndexStack.itemChanged(comp, 'hidden'); + zIndexStack.sort(); + } +}, register:function(comp) { + var me = this; + if (comp.zIndexManager) { + comp.zIndexManager.unregister(comp); + } + comp.zIndexManager = me; + if (!comp.rendered) { + comp.on('render', me.onComponentRender, me, {single:true}); + } + me.zIndexStack.add(comp); +}, unregister:function(comp) { + var me = this; + delete comp.zIndexManager; + comp.un('render', me.onComponentRender, me); + me.zIndexStack.remove(comp); + me.onCollectionSort(); +}, get:function(id) { + return id.isComponent ? id : this.zIndexStack.get(id); +}, bringToFront:function(comp, preventFocus) { + var me = this, zIndexStack = me.zIndexStack, oldFront = zIndexStack.last(), newFront, preventFocusSetting; + comp = me.get(comp); + if (!comp || zIndexStack.find('alwaysOnTop', true)) { + return false; + } + preventFocusSetting = comp.preventFocusOnActivate; + comp.preventFocusOnActivate = preventFocus; + comp.setActiveCounter(++Ext.ZIndexManager.activeCounter); + comp.preventFocusOnActivate = preventFocusSetting; + newFront = zIndexStack.last(); + return newFront === comp && newFront !== oldFront; +}, sendToBack:function(comp) { + comp = this.get(comp); + if (comp) { + comp.setActiveCounter(0); + } + return comp || null; +}, hideAll:function() { + var all = this.zIndexStack.getRange(), len = all.length, i; + this.hidingAll = true; + for (i = 0; i < len; i++) { + all[i].hide(); + } + this.hidingAll = false; +}, hide:function() { + var me = this, activeElement = Ext.Element.getActiveElement(), all = me.tempHidden = me.zIndexStack.getRange(), len = all.length, i, comp; + me.focusRestoreElement = null; + for (i = 0; i < len; i++) { + comp = all[i]; + if (comp.el.contains(activeElement)) { + me.focusRestoreElement = activeElement; + } + comp.el.hide(); + comp.hidden = true; + } +}, show:function() { + var me = this, i, tempHidden = me.tempHidden, len = tempHidden ? tempHidden.length : 0, comp; + for (i = 0; i < len; i++) { + comp = tempHidden[i]; + comp.el.show(); + comp.hidden = false; + comp.setPosition(comp.x, comp.y); + } + me.tempHidden = null; + if (me.focusRestoreElement) { + me.focusRestoreElement.focus(); + } +}, getActive:function() { + return this.zIndexStack.last(); +}, getBy:function(fn, scope) { + return this.zIndexStack.filterBy(fn, scope).getRange(); +}, each:function(fn, scope) { + this.zIndexStack.each(fn, scope); +}, eachBottomUp:function(fn, scope) { + var stack = this.zIndexStack.getRange(), i, len = stack.length, comp; + for (i = 0; i < len; i++) { + comp = stack[i]; + if (comp.isComponent && fn.call(scope || comp, comp) === false) { + return; + } + } +}, eachTopDown:function(fn, scope) { + var stack = this.zIndexStack.getRange(), i, comp; + for (i = stack.length; i-- > 0;) { + comp = stack[i]; + if (comp.isComponent && fn.call(scope || comp, comp) === false) { + return; + } + } +}, destroy:function() { + var me = this, stack = me.zIndexStack.getRange(), len = stack.length, i; + for (i = 0; i < len; i++) { + Ext.destroy(stack[i]); + } + if (me.container) { + me.container.un('resize', me.onContainerResize, me); + } else { + if (me.targetEl) { + Ext.un('resize', me.onContainerResize, me); + } + } + Ext.destroy(me.mask, me.maskShim, me.zIndexStack, me.globalListeners); + me.zIndexStack = me.container = me.targetEl = me.globalListeners = null; + me.callParent(); +}, privates:{getMaskBox:function() { + var maskTarget = this.mask.maskTarget; + if (maskTarget.dom === document.body) { + return {height:Math.max(document.body.scrollHeight, Ext.dom.Element.getDocumentHeight()), width:Math.max(document.body.scrollWidth, document.documentElement.clientWidth), x:0, y:0}; + } else { + return maskTarget.getBox(); + } +}, onContainerResize:function() { + var me = this, mask = me.mask, maskShim = me.maskShim, viewSize; + if (mask && mask.isVisible()) { + mask.hide(); + if (maskShim) { + maskShim.hide(); + } + viewSize = me.getMaskBox(); + if (maskShim) { + maskShim.setSize(viewSize); + maskShim.show(); + } + mask.setSize(viewSize); + mask.show(); + } +}, onMaskClick:function() { + if (this.front) { + this.front.focus(); + } +}, showModalMask:function(comp) { + var me = this, compEl = comp.el, zIndex = compEl.getStyle('zIndex') - 4, maskTarget = comp.floatParent ? comp.floatParent.getTargetEl() : comp.container, mask = me.mask, shim = me.maskShim, viewSize; + if (!mask) { + me.mask = mask = Ext.getBody().createChild({'data-sticky':true, role:'presentation', cls:Ext.baseCSSPrefix + 'mask ' + Ext.baseCSSPrefix + 'border-box', style:'height:0;width:0'}); + mask.setVisibilityMode(Ext.Element.DISPLAY); + mask.on('click', me.onMaskClick, me); + } else { + me.hideModalMask(); + } + mask.maskTarget = maskTarget; + viewSize = me.getMaskBox(); + if (shim) { + shim.setStyle('zIndex', zIndex); + shim.show(); + shim.setBox(viewSize); + } + mask.setStyle('zIndex', zIndex); + maskTarget.saveTabbableState({excludeRoot:compEl}); + mask.show(); + mask.setBox(viewSize); +}, hideModalMask:function() { + var mask = this.mask, maskShim = this.maskShim; + if (mask && mask.isVisible()) { + mask.maskTarget.restoreTabbableState(); + mask.maskTarget = undefined; + mask.hide(); + if (maskShim) { + maskShim.hide(); + } + } +}}}, function() { + Ext.WindowManager = Ext.WindowMgr = new this; +}); +Ext.define('Ext.container.Container', {extend:Ext.Component, xtype:'container', alternateClassName:['Ext.Container', 'Ext.AbstractContainer'], mixins:[Ext.mixin.Queryable, Ext.mixin.Container], renderTpl:'{%this.renderContainer(out,values)%}', autoDestroy:true, defaultType:'panel', detachOnRemove:true, items:undefined, layout:'auto', suspendLayout:false, _applyDefaultsOptions:{defaults:true, strict:false}, ariaRole:'presentation', baseCls:Ext.baseCSSPrefix + 'container', layoutCounter:0, add:function() { + var me = this, args = Ext.Array.slice(arguments), index = typeof args[0] === 'number' ? args.shift() : -1, layout = me.getLayout(), needsLayout = false, addingArray, items, i, length, item, pos, ret, instanced; + if (args.length === 1 && Ext.isArray(args[0])) { + items = args[0]; + addingArray = true; + } else { + items = args; + } + if (me.rendered) { + Ext.suspendLayouts(); + } + ret = items = me.prepareItems(items, true); + length = items.length; + if (!addingArray && length === 1) { + ret = items[0]; + } + for (i = 0; i < length; i++) { + item = items[i]; + if (!item) { + Ext.raise('Cannot add null item to Container with itemId/id: ' + me.getItemId()); + } + if (item.destroyed) { + Ext.raise("Cannot add destroyed item '" + item.getId() + "' to Container '" + me.getId() + "'"); + } + pos = index < 0 ? me.items.length : index + i; + instanced = !!item.instancedCmp; + delete item.instancedCmp; + if (item.floating) { + (me.floatingItems || (me.floatingItems = new Ext.util.ItemCollection)).add(item); + item.onAdded(me, pos, instanced); + delete item.$initParent; + if (me.hasListeners.add) { + me.fireEvent('add', me, item, pos); + } + } else { + if ((!me.hasListeners.beforeadd || me.fireEvent('beforeadd', me, item, pos) !== false) && me.onBeforeAdd(item) !== false) { + me.items.insert(pos, item); + item.onAdded(me, pos, instanced); + delete item.$initParent; + me.onAdd(item, pos); + layout.onAdd(item, pos); + needsLayout = true; + if (me.hasListeners.add) { + me.fireEvent('add', me, item, pos); + } + } + } + } + if (needsLayout) { + me.updateLayout(); + } + if (me.rendered) { + Ext.resumeLayouts(true); + } + return ret; +}, onAdded:function(container, pos, instanced) { + this.callParent([container, pos, instanced]); + this.containerOnAdded(container, instanced); +}, onRemoved:function(destroying) { + this.containerOnRemoved(destroying); + this.callParent(arguments); +}, afterComponentLayout:function() { + var floaters = this.floatingItems, floaterCount, i, floater; + this.callParent(arguments); + if (floaters) { + floaters = floaters.items; + floaterCount = floaters.length; + for (i = 0; i < floaterCount; i++) { + floater = floaters[i]; + if (!floater.rendered && floater.autoShow) { + floater.show(); + } + } + } +}, afterLayout:function(layout) { + var me = this, scroller = me.getScrollable(); + ++me.layoutCounter; + if (scroller && me.layoutCounter > 1) { + scroller.refresh(); + } + if (me.hasListeners.afterlayout) { + me.fireEvent('afterlayout', me, layout); + } +}, beforeDestroy:function() { + var me = this, items = me.items, floatingItems = me.floatingItems, c; + if (items) { + while (c = items.first()) { + me.doRemove(c, true); + } + } + if (floatingItems) { + while (c = floatingItems.first()) { + me.doRemove(c, true); + } + } + Ext.destroy(me.layout); + me.callParent(); +}, destroy:function() { + var me = this; + me.callParent(); + if (me.items) { + me.items.destroy(); + } + if (me.floatingItems) { + me.floatingItems.destroy(); + } + me.refs = me.items = me.floatingItems = me.layout = null; +}, beforeRender:function() { + var me = this, layout = me.getLayout(), targetCls; + me.preventChildDisable = true; + me.callParent(); + me.preventChildDisable = false; + if (!layout.initialized) { + layout.initLayout(); + } + targetCls = layout.targetCls; + if (targetCls) { + me.applyTargetCls(targetCls); + } +}, cascade:function(fn, scope, origArgs) { + var me = this, cs = me.items ? me.items.items : [], len = cs.length, i = 0, c, args = origArgs ? origArgs.concat(me) : [me], componentIndex = args.length - 1; + if (fn.apply(scope || me, args) !== false) { + for (; i < len; i++) { + c = cs[i]; + if (c.cascade) { + c.cascade(fn, scope, origArgs); + } else { + args[componentIndex] = c; + fn.apply(scope || c, args); + } + } + } + return this; +}, contains:function(comp, deep) { + var result = false; + if (deep) { + this.cascade(function(c) { + if (c.contains && c.contains(comp)) { + result = true; + return false; + } + }); + return result; + } else { + return this.items.contains(comp) || this.floatingItems && this.floatingItems.contains(comp); + } +}, disable:function(silent, fromParent) { + var me = this, wasDisabled = me.disabled, itemsToDisable, len, i; + me.callParent([silent, fromParent]); + if (!fromParent && !me.preventChildDisable && !wasDisabled) { + itemsToDisable = me.getChildItemsToDisable(); + len = itemsToDisable.length; + for (i = 0; i < len; i++) { + itemsToDisable[i].disable(silent, true); + } + } + return me; +}, enable:function(silent, fromParent) { + var me = this, wasDisabled = me.disabled, itemsToDisable, len, i; + me.callParent([silent, fromParent]); + if (wasDisabled) { + itemsToDisable = me.getChildItemsToDisable(); + len = itemsToDisable.length; + for (i = 0; i < len; i++) { + itemsToDisable[i].enable(silent, true); + } + } + return me; +}, getChildByElement:function(el, deep) { + var item, itemEl, i = 0, it = this.getRefItems(), ln = it.length; + el = Ext.getDom(el); + for (; i < ln; i++) { + item = it[i]; + itemEl = item.getEl(); + if (itemEl && (itemEl.dom === el || itemEl.contains(el))) { + return deep && item.getChildByElement ? item.getChildByElement(el, deep) : item; + } + } + return null; +}, getComponent:function(comp) { + if (Ext.isObject(comp)) { + comp = comp.getItemId(); + } + var c = this.items.get(comp), floaters = this.floatingItems; + if (!c && floaters && typeof comp !== 'number') { + c = floaters.get(comp); + } + return c; +}, getFocusEl:function() { + var delegate = this.getDefaultFocus(); + if (delegate) { + return delegate; + } else { + if (this.focusable) { + return this.getTargetEl(); + } + } + return undefined; +}, getLayout:function() { + var me = this, layout = me.layout; + if (!layout || !layout.isLayout) { + me.setLayout(layout); + } + return me.layout; +}, getRefItems:function(deep) { + var me = this, items = me.items.items, len = items.length, i = 0, item, result = []; + for (; i < len; i++) { + item = items[i]; + result[result.length] = item; + if (deep && item.getRefItems) { + result.push.apply(result, item.getRefItems(true)); + } + } + if (me.floatingItems) { + items = me.floatingItems.items; + len = items.length; + for (i = 0; i < len; i++) { + item = items[i]; + result[result.length] = item; + if (deep && item.getRefItems) { + result.push.apply(result, item.getRefItems(true)); + } + } + } + return result; +}, getDefaultFocus:function() { + var defaultFocus = this.defaultFocus, result; + if (defaultFocus) { + result = this.down(defaultFocus); + } + return result; +}, initComponent:function() { + var me = this; + me.callParent(); + me.getLayout(); + me.constructing = true; + me.initItems(); + if (me.disabled) { + me.disabled = false; + me.disable(true); + } + delete me.constructing; +}, initItems:function() { + var me = this, items = me.items; + if (!items || !items.isMixedCollection) { + me.items = new Ext.util.ItemCollection; + if (items) { + if (!Ext.isArray(items)) { + items = [items]; + } + me.add(items); + } + } +}, initInheritedState:function(inheritedState, inheritedStateInner) { + var me = this, controller = me.controller, layout = me.layout, session = me.session, viewModel = me.viewModel, reference = me.reference, referenceHolder = me.referenceHolder; + me.callParent([inheritedState, inheritedStateInner]); + if (me.collapsed) { + inheritedState.collapsed = true; + } + me.initContainerInheritedState(inheritedState, inheritedStateInner); + if (layout && layout.initInheritedState) { + layout.initInheritedState(inheritedState, inheritedStateInner); + } +}, insert:function(index, component) { + var compIdx; + if (component && component.isComponent) { + compIdx = this.items.indexOf(component); + if (compIdx !== -1) { + return this.move(compIdx, index); + } + } + return this.add(index, component); +}, lookupComponent:function(comp) { + if (!comp.isComponent) { + if (typeof comp === 'string') { + comp = Ext.ComponentManager.get(comp); + } else { + comp = Ext.ComponentManager.create(comp, this.defaultType); + } + } + return comp; +}, move:function(fromIdx, toIdx) { + var me = this, items = me.items, item; + if (fromIdx.isComponent) { + fromIdx = items.indexOf(fromIdx); + } + item = items.getAt(fromIdx); + if (fromIdx !== toIdx) { + item = items.removeAt(fromIdx); + if (item === false) { + return false; + } + toIdx = Math.min(toIdx, items.getCount()); + items.insert(toIdx, item); + me.onMove(item, fromIdx, toIdx); + if (me.hasListeners.childmove) { + me.fireEvent('childmove', me, item, fromIdx, toIdx); + } + me.updateLayout(); + } + return item; +}, moveBefore:function(item, before) { + if (item !== before) { + item = this.layout.moveItemBefore(item, before); + } + return item; +}, moveAfter:function(item, after) { + var layout = this.layout, index; + if (item !== after) { + index = after ? layout.getMoveAfterIndex(after) : 0; + item = layout.moveItemBefore(item, this.items.getAt(index)); + } + return item; +}, nextChild:function(child, selector) { + var me = this, items = me.items, childIndex = items.indexOf(child), i = 0, len = items.length, result; + if (childIndex !== -1) { + if (selector) { + for (; i < len; i++) { + result = items.getAt(childIndex + i); + if (!result || Ext.ComponentQuery.is(result, selector)) { + break; + } + } + } else { + result = items.getAt(childIndex + 1); + } + } + return result || null; +}, onAdd:Ext.emptyFn, onBeforeAdd:function(item) { + var owner = item.ownerCt; + if (owner && owner !== this) { + owner.remove(item, false); + } +}, onMove:Ext.emptyFn, onRemove:Ext.emptyFn, onPosition:function() { + this.callParent(arguments); + this.repositionFloatingItems(); +}, onResize:function() { + this.callParent(arguments); + this.repositionFloatingItems(); +}, prevChild:function(child, selector) { + var me = this, items = me.items, childIndex = items.indexOf(child), i = 0, len = items.length, result; + if (childIndex !== -1) { + if (selector) { + for (; i < len; i++) { + result = items.getAt(childIndex - i); + if (!result || Ext.ComponentQuery.is(result, selector)) { + break; + } + } + } else { + result = items.getAt(childIndex - 1); + } + } + return result || null; +}, remove:function(component, autoDestroy) { + var me = this, c; + if (me.destroyed || me.destroying) { + return; + } + c = me.getComponent(component); + if (!arguments.length) { + Ext.log.warn('Ext.container.Container: remove takes an argument of the component to remove. cmp.remove() is incorrect usage.'); + } + if (c && (!me.hasListeners.beforeremove || me.fireEvent('beforeremove', me, c) !== false)) { + me.doRemove(c, autoDestroy); + if (me.hasListeners.remove) { + me.fireEvent('remove', me, c); + } + if (!me.destroying && !c.floating) { + me.updateLayout(); + } + } + return c; +}, removeAll:function(autoDestroy) { + var me = this, removeItems, floaters = me.floatingItems, items = [], i = 0, len, item; + if (floaters) { + removeItems = me.items.items.concat(floaters.items); + } else { + removeItems = me.items.items.slice(); + } + len = removeItems.length; + Ext.suspendLayouts(); + me.removingAll = true; + for (; i < len; i++) { + item = removeItems[i]; + me.remove(item, autoDestroy); + if (item.ownerCt !== me) { + items.push(item); + } + } + me.removingAll = false; + Ext.resumeLayouts(!!len); + return items; +}, setLayout:function(layout) { + var me = this, currentLayout = me.layout, currentIsLayout = currentLayout && currentLayout.isLayout, protoLayout, type; + if (typeof layout === 'string') { + layout = {type:layout}; + } + type = layout.type; + if (currentIsLayout && (!type || type === currentLayout.type)) { + delete layout.type; + currentLayout.setConfig(layout); + } else { + if (currentIsLayout) { + currentLayout.setOwner(null); + } + protoLayout = me.self.prototype.layout; + if (typeof protoLayout === 'string') { + layout.type = type || protoLayout; + } else { + Ext.merge(Ext.merge({}, protoLayout), layout); + } + layout = this.layout = Ext.Factory.layout(layout); + layout.setOwner(this); + } + if (me.rendered) { + me.updateLayout(); + } +}, setActiveItem:function(item) { + return this.getLayout().setActiveItem(item); +}, privates:{applyDefaults:function(config) { + var me = this, defaults = me.defaults; + if (defaults) { + if (Ext.isFunction(defaults)) { + defaults = defaults.call(me, config); + } + if (Ext.isString(config)) { + config = Ext.ComponentManager.get(config); + } + if (config.isComponent) { + config.setConfig(defaults, null, me._applyDefaultsOptions); + } else { + config = me.getConfigurator().merge(me, Ext.Object.fork(defaults), config); + } + } + return config; +}, applyReference:function(reference) { + return this.setupReference(reference); +}, applyTargetCls:function(targetCls) { + this.layoutTargetCls = targetCls; +}, detachComponent:function(component) { + Ext.getDetachedBody().appendChild(component.getEl()); +}, doRemove:function(component, doDestroy) { + doDestroy = doDestroy === true || doDestroy !== false && this.autoDestroy; + var me = this, layout = me.layout, hasLayout = layout && me.rendered, isDestroying = component.destroying || doDestroy, floating = component.floating; + if (floating) { + me.floatingItems.remove(component); + } else { + me.items.remove(component); + } + if (hasLayout && !floating) { + if (layout.running) { + Ext.Component.cancelLayout(component, isDestroying); + } + layout.onRemove(component, isDestroying); + } + component.onRemoved(isDestroying); + me.onRemove(component, isDestroying); + if (doDestroy) { + component.destroy(); + } else { + if (hasLayout && !floating) { + layout.afterRemove(component); + } + if (me.detachOnRemove && component.rendered) { + me.detachComponent(component); + } + } +}, finishRenderChildren:function() { + this.callParent(); + var layout = this.getLayout(); + if (layout) { + layout.finishRender(); + } +}, getChildItemsToDisable:function() { + return this.query('[isFormField],[isFocusableContainer],button'); +}, getContentTarget:function() { + return this.getLayout().getContentTarget(); +}, getDefaultContentTarget:function() { + return this.el; +}, getScrollerEl:function() { + return this.layout.getScrollerEl() || this.callParent(); +}, prepareItems:function(items, applyDefaults) { + if (Ext.isArray(items)) { + items = items.slice(); + } else { + items = [items]; + } + var me = this, i = 0, len = items.length, item; + for (; i < len; i++) { + item = items[i]; + if (item == null) { + Ext.Array.erase(items, i, 1); + --i; + --len; + } else { + if (applyDefaults) { + item = this.applyDefaults(item); + } + item.$initParent = me; + if (item.isComponent) { + item.instancedCmp = true; + } + items[i] = me.lookupComponent(item); + delete item.$initParent; + } + } + return items; +}, repositionFloatingItems:function() { + var floaters = this.floatingItems, floaterCount, i, floater; + if (floaters) { + floaters = floaters.items; + floaterCount = floaters.length; + for (i = 0; i < floaterCount; i++) { + floater = floaters[i]; + if (floater.el && !floater.hidden) { + floater.setPosition(floater.x, floater.y); + } + } + } +}, _noMargin:{'margin-top':'', 'margin-right':'', 'margin-bottom':'', 'margin-left':''}, resetItemMargins:function() { + var items = this.items.items, i = items.length, noMargin = this._noMargin, item; + while (i--) { + item = items[i]; + item.margin$ = null; + item.el.setStyle(noMargin); + } +}, setupRenderTpl:function(renderTpl) { + this.callParent(arguments); + this.getLayout().setupRenderTpl(renderTpl); +}}}); +Ext.define('Ext.util.StoreHolder', {mixinId:'storeholder', bindStore:function(store, initial, propertyName) { + propertyName = propertyName || 'store'; + var me = this, oldStore = initial ? null : me[propertyName]; + if (store !== oldStore) { + if (oldStore) { + me.onUnbindStore(oldStore, initial, propertyName); + if (me.isComponent && propertyName === 'store' && oldStore.autoDestroy) { + oldStore.destroy(); + } else { + me.unbindStoreListeners(oldStore); + } + } + if (store) { + me[propertyName] = store = Ext.data.StoreManager.lookup(store); + me.bindStoreListeners(store); + me.onBindStore(store, oldStore); + } else { + me[propertyName] = null; + } + } + return me; +}, getStore:function() { + return this.store; +}, setStore:function(store) { + this.bindStore(store); +}, unbindStoreListeners:function(store) { + var listeners = this.storeListeners; + if (listeners) { + store.un(listeners); + } +}, bindStoreListeners:function(store) { + var listeners = this.getStoreListeners(store); + if (listeners) { + listeners = Ext.apply({}, listeners); + if (!listeners.scope) { + listeners.scope = this; + } + this.storeListeners = listeners; + store.on(listeners); + } +}, getStoreListeners:Ext.emptyFn, onUnbindStore:Ext.emptyFn, onBindStore:Ext.emptyFn}); +Ext.define('Ext.LoadMask', {extend:Ext.Component, alias:'widget.loadmask', mixins:[Ext.util.StoreHolder], isLoadMask:true, msg:'Loading...', msgCls:Ext.baseCSSPrefix + 'mask-loading', msgWrapCls:Ext.baseCSSPrefix + 'mask-msg', useMsg:true, useTargetEl:false, cls:Ext.baseCSSPrefix + 'mask', componentCls:Ext.baseCSSPrefix + 'border-box', ariaRole:'status', focusable:true, tabIndex:0, autoEl:{tag:'div', role:'status'}, childEls:['msgWrapEl', 'msgEl', 'msgTextEl'], renderTpl:['\x3cdiv id\x3d"{id}-msgWrapEl" data-ref\x3d"msgWrapEl" class\x3d"{[values.$comp.msgWrapCls]}"\x3e', +'\x3cdiv id\x3d"{id}-msgEl" data-ref\x3d"msgEl" class\x3d"{[values.$comp.msgCls]} ', Ext.baseCSSPrefix, 'mask-msg-inner {childElCls}"\x3e', '\x3cdiv id\x3d"{id}-msgTextEl" data-ref\x3d"msgTextEl" class\x3d"', Ext.baseCSSPrefix, 'mask-msg-text', '{childElCls}"\x3e{msg}\x3c/div\x3e', '\x3c/div\x3e', '\x3c/div\x3e'], maskOnDisable:false, skipLayout:true, constructor:function(config) { + var me = this, comp; + if (arguments.length === 2) { + if (Ext.isDefined(Ext.global.console)) { + Ext.global.console.warn('Ext.LoadMask: LoadMask now uses a standard 1 arg constructor: use the target config'); + } + comp = me.target = config; + config = arguments[1]; + } else { + comp = config.target; + } + if (config.maskCls) { + Ext.log.warn('Ext.LoadMask property maskCls is deprecated, use msgWrapCls instead'); + config.msgWrapCls = config.msgWrapCls || config.maskCls; + } + me.callParent([config]); + if (comp.isComponent) { + me.ownerCt = comp; + me.hidden = true; + me.renderTo = me.getMaskTarget(); + me.external = me.renderTo === Ext.getBody(); + me.bindComponent(comp); + } else { + if (Ext.isDefined(Ext.global.console)) { + Ext.global.console.warn('Ext.LoadMask: LoadMask for elements has been deprecated, use Ext.dom.Element.mask \x26 Ext.dom.Element.unmask'); + } + comp = Ext.get(comp); + me.isElement = true; + me.renderTo = me.target; + } + me.render(me.renderTo); + if (me.store) { + me.bindStore(me.store, true); + } +}, initRenderData:function() { + var result = this.callParent(arguments); + result.msg = this.msg || ''; + return result; +}, onRender:function() { + this.callParent(arguments); + this.maskEl = this.el; +}, bindComponent:function(comp) { + var me = this, listeners = {scope:this, resize:me.sizeMask}; + if (me.external) { + listeners.added = me.onComponentAdded; + listeners.removed = me.onComponentRemoved; + if (comp.floating) { + listeners.move = me.sizeMask; + me.activeOwner = comp; + } else { + if (comp.ownerCt) { + me.onComponentAdded(comp.ownerCt); + } + } + } + me.mon(comp, listeners); + if (me.external) { + me.mon(Ext.GlobalEvents, {show:me.onContainerShow, hide:me.onContainerHide, expand:me.onContainerExpand, collapse:me.onContainerCollapse, scope:me}); + } +}, onComponentAdded:function(owner) { + var me = this; + delete me.activeOwner; + me.floatParent = owner; + if (!owner.floating) { + owner = owner.up('[floating]'); + } + if (owner) { + me.activeOwner = owner; + me.mon(owner, 'move', me.sizeMask, me); + me.mon(owner, 'tofront', me.onOwnerToFront, me); + } else { + me.preventBringToFront = true; + } + owner = me.floatParent.ownerCt; + if (me.rendered && me.isVisible() && owner) { + me.floatOwner = owner; + me.mon(owner, 'afterlayout', me.sizeMask, me, {single:true}); + } +}, onComponentRemoved:function(owner) { + var me = this, activeOwner = me.activeOwner, floatOwner = me.floatOwner; + if (activeOwner) { + me.mun(activeOwner, 'move', me.sizeMask, me); + me.mun(activeOwner, 'tofront', me.onOwnerToFront, me); + } + if (floatOwner) { + me.mun(floatOwner, 'afterlayout', me.sizeMask, me); + } + delete me.activeOwner; + delete me.floatOwner; +}, afterRender:function() { + var me = this; + me.callParent(arguments); + if (Ext.isIE) { + me.el.on('mousedown', me.onMouseDown, me); + } + this.el.skipGarbageCollection = true; +}, onMouseDown:function(e) { + var el = this.el; + if (e.within(el)) { + e.preventDefault(); + el.focus(); + } +}, onOwnerToFront:function(owner, zIndex) { + this.el.setStyle('zIndex', zIndex + 1); +}, onContainerShow:function(container) { + if (!this.isHierarchicallyHidden()) { + this.onComponentShow(); + } +}, onContainerHide:function(container) { + if (this.isHierarchicallyHidden()) { + this.onComponentHide(); + } +}, onContainerExpand:function(container) { + if (!this.isHierarchicallyHidden()) { + this.onComponentShow(); + } +}, onContainerCollapse:function(container) { + if (this.isHierarchicallyHidden()) { + this.onComponentHide(); + } +}, onComponentHide:function() { + var me = this; + if (me.rendered && me.isVisible()) { + me.hide(); + me.showNext = true; + } +}, onComponentShow:function() { + if (this.showNext) { + this.show(); + } + delete this.showNext; +}, sizeMask:function() { + var me = this, target = me.activeOwner || me.target, boxTarget = me.external ? me.getOwner().el : me.getMaskTarget(); + if (me.rendered && me.isVisible()) { + if (me.external) { + if (!me.isElement && target.floating) { + me.onOwnerToFront(target, target.el.getZIndex()); + } + me.el.setSize(boxTarget.getSize()).alignTo(boxTarget, 'tl-tl'); + } + me.msgWrapEl.center(me.el); + } +}, bindStore:function(store, initial) { + var me = this; + Ext.destroy(me.proxyListeners); + me.mixins.storeholder.bindStore.apply(me, arguments); + store = me.store; + if (store) { + while (store.getSource) { + store = store.getSource(); + } + if (!store.loadsSynchronously()) { + me.proxyListeners = store.getProxy().on({exception:me.onLoad, scope:me, destroyable:true}); + } + if (store.isLoading()) { + me.onBeforeLoad(); + } + } +}, getStoreListeners:function(store) { + var onLoad = this.onLoad, beforeLoad = this.onBeforeLoad, result = {cachemiss:beforeLoad, cachefilled:{fn:onLoad, buffer:100}}; + if (!store.loadsSynchronously()) { + result.beforeload = beforeLoad; + result.load = onLoad; + } + return result; +}, onDisable:function() { + this.callParent(arguments); + if (this.loading) { + this.onLoad(); + } +}, getOwner:function() { + return this.ownerCt || this.ownerCmp || this.floatParent; +}, getMaskTarget:function() { + var owner = this.getOwner(); + if (this.isElement) { + return this.target; + } + return this.useTargetEl ? owner.getTargetEl() : owner.getMaskTarget() || Ext.getBody(); +}, onBeforeLoad:function() { + var me = this, owner = me.getOwner(), origin; + if (!me.disabled) { + me.loading = true; + if (owner.componentLayoutCounter) { + me.maybeShow(); + } else { + origin = owner.afterComponentLayout; + owner.afterComponentLayout = function() { + owner.afterComponentLayout = origin; + origin.apply(owner, arguments); + me.maybeShow(); + }; + } + } +}, maybeShow:function() { + var me = this, owner = me.getOwner(); + if (!owner.isVisible(true)) { + me.showNext = true; + } else { + if (me.loading && owner.rendered) { + me.show(); + } + } +}, hide:function() { + var me = this, ownerCt = me.ownerCt; + if (me.isElement) { + ownerCt.unmask(); + me.fireEvent('hide', this); + return; + } + if (ownerCt) { + ownerCt.enableTabbing(); + ownerCt.setMasked(false); + } + delete me.showNext; + return me.callParent(arguments); +}, show:function() { + var me = this; + if (me.isElement) { + me.ownerCt.mask(this.useMsg ? this.msg : '', this.msgCls); + me.fireEvent('show', this); + return; + } + return me.callParent(arguments); +}, afterShow:function() { + var me = this, ownerCt = me.ownerCt; + me.loading = true; + me.callParent(arguments); + ownerCt.disableTabbing(); + ownerCt.setMasked(true); + me.el.restoreTabbableState(); + me.syncMaskState(); +}, syncMaskState:function() { + var me = this, ownerCt = me.ownerCt, el = me.el; + if (me.isVisible()) { + if (me.hasOwnProperty('msgWrapCls')) { + el.dom.className = me.msgWrapCls; + } + if (me.useMsg) { + me.msgTextEl.setHtml(me.msg); + } else { + me.msgEl.hide(); + } + if (me.shim || Ext.useShims) { + el.enableShim(null, true); + } else { + el.disableShim(); + } + if (ownerCt.el.contains(Ext.Element.getActiveElement())) { + me.focus(); + } + me.sizeMask(); + } +}, onLoad:function() { + this.loading = false; + this.hide(); +}, beforeDestroy:function() { + this.ownerCt = null; + this.bindStore(null); + this.callParent(); +}, onDestroy:function() { + var me = this; + if (me.isElement) { + me.ownerCt.unmask(); + } + me.callParent(); +}}); +Ext.define('Ext.layout.component.Component', {extend:Ext.layout.Layout, type:'component', isComponentLayout:true, nullBox:{}, usesContentHeight:true, usesContentWidth:true, usesHeight:true, usesWidth:true, widthCache:{}, heightCache:{}, beginLayoutCycle:function(ownerContext, firstCycle) { + var me = this, owner = me.owner, ownerCtContext = ownerContext.ownerCtContext, heightModel = ownerContext.heightModel, widthModel = ownerContext.widthModel, body = owner.el.dom === document.body, lastBox = owner.lastBox || me.nullBox, lastSize = owner.el.lastBox || me.nullBox, dirty = !body, isTopLevel = ownerContext.isTopLevel, ownerLayout, v, width, height; + me.callParent([ownerContext, firstCycle]); + if (firstCycle) { + if (me.usesContentWidth) { + ++ownerContext.consumersContentWidth; + } + if (me.usesContentHeight) { + ++ownerContext.consumersContentHeight; + } + if (me.usesWidth) { + ++ownerContext.consumersWidth; + } + if (me.usesHeight) { + ++ownerContext.consumersHeight; + } + if (ownerCtContext && !ownerCtContext.hasRawContent) { + ownerLayout = owner.ownerLayout; + if (ownerLayout) { + if (ownerLayout.usesWidth) { + ++ownerContext.consumersWidth; + } + if (ownerLayout.usesHeight) { + ++ownerContext.consumersHeight; + } + } + } + } + if (widthModel.configured) { + width = owner[widthModel.names.width]; + if (isTopLevel && widthModel.calculatedFrom) { + width = lastBox.width; + } + if (!body) { + dirty = me.setWidthInDom || (firstCycle ? width !== lastSize.width : widthModel.constrained); + } + ownerContext.setWidth(width, dirty); + } else { + if (isTopLevel) { + if (widthModel.calculated) { + v = lastBox.width; + ownerContext.setWidth(v, v !== lastSize.width); + } + v = lastBox.x; + ownerContext.setProp('x', v, v !== lastSize.x); + } + } + if (heightModel.configured) { + height = owner[heightModel.names.height]; + if (isTopLevel && heightModel.calculatedFrom) { + height = lastBox.height; + } + if (!body) { + dirty = firstCycle ? height !== lastSize.height : heightModel.constrained; + } + ownerContext.setHeight(height, dirty); + } else { + if (isTopLevel) { + if (heightModel.calculated) { + v = lastBox.height; + ownerContext.setHeight(v, v !== lastSize.height); + } + v = lastBox.y; + ownerContext.setProp('y', v, v !== lastSize.y); + } + } +}, finishedLayout:function(ownerContext) { + var me = this, elementChildren = ownerContext.children, owner = me.owner, len, i, elContext, lastBox, props; + if (elementChildren) { + len = elementChildren.length; + for (i = 0; i < len; i++) { + elContext = elementChildren[i]; + elContext.el.lastBox = elContext.props; + } + } + ownerContext.previousSize = me.lastComponentSize; + me.lastComponentSize = owner.el.lastBox = props = ownerContext.props; + lastBox = owner.lastBox || (owner.lastBox = {}); + lastBox.x = props.x; + lastBox.y = props.y; + lastBox.width = props.width; + lastBox.height = props.height; + lastBox.invalid = false; + me.callParent([ownerContext]); +}, notifyOwner:function(ownerContext) { + var me = this, currentSize = me.lastComponentSize, prevSize = ownerContext.previousSize; + me.owner.afterComponentLayout(currentSize.width, currentSize.height, prevSize ? prevSize.width : undefined, prevSize ? prevSize.height : undefined); +}, getTarget:function() { + return this.owner.el; +}, getRenderTarget:function() { + return this.owner.el; +}, cacheTargetInfo:function(ownerContext) { + var me = this, targetInfo = me.targetInfo, target; + if (!targetInfo) { + target = ownerContext.getEl('getTarget', me); + me.targetInfo = targetInfo = {padding:target.getPaddingInfo(), border:target.getBorderInfo()}; + } + return targetInfo; +}, measureAutoDimensions:function(ownerContext, dimensions) { + var me = this, owner = me.owner, containerLayout = owner.layout, heightModel = ownerContext.heightModel, widthModel = ownerContext.widthModel, boxParent = ownerContext.boxParent, isBoxParent = ownerContext.isBoxParent, target = ownerContext.target, props = ownerContext.props, isContainer, ret = {gotWidth:false, gotHeight:false, isContainer:isContainer = !ownerContext.hasRawContent}, hv = dimensions || 3, zeroWidth, zeroHeight, needed = 0, got = 0, ready, size, temp, key, cache; + if (widthModel.shrinkWrap && ownerContext.consumersContentWidth) { + ++needed; + zeroWidth = !(hv & 1); + if (isContainer) { + if (zeroWidth) { + ret.contentWidth = 0; + ret.gotWidth = true; + ++got; + } else { + if ((ret.contentWidth = ownerContext.getProp('contentWidth')) !== undefined) { + ret.gotWidth = true; + ++got; + } + } + } else { + size = props.contentWidth; + if (typeof size === 'number') { + ret.contentWidth = size; + ret.gotWidth = true; + ++got; + } else { + if (zeroWidth) { + ready = true; + } else { + if (!ownerContext.hasDomProp('containerChildrenSizeDone')) { + ready = false; + } else { + if (isBoxParent || !boxParent || boxParent.widthModel.shrinkWrap) { + ready = true; + } else { + ready = boxParent.hasDomProp('width'); + } + } + } + if (ready) { + if (zeroWidth) { + temp = 0; + } else { + if (containerLayout && containerLayout.measureContentWidth) { + temp = containerLayout.measureContentWidth(ownerContext); + } else { + if (target.cacheWidth) { + key = target.xtype + '-' + target.ui; + cache = me.widthCache; + temp = cache[key] || (cache[key] = me.measureContentWidth(ownerContext)); + } else { + temp = me.measureContentWidth(ownerContext); + } + } + } + if (!isNaN(ret.contentWidth = temp)) { + ownerContext.setContentWidth(temp, true); + ret.gotWidth = true; + ++got; + } + } + } + } + } else { + if (widthModel.natural && ownerContext.consumersWidth) { + ++needed; + size = props.width; + if (typeof size === 'number') { + ret.width = size; + ret.gotWidth = true; + ++got; + } else { + if (isBoxParent || !boxParent) { + ready = true; + } else { + ready = boxParent.hasDomProp('width'); + } + if (ready) { + if (!isNaN(ret.width = me.measureOwnerWidth(ownerContext))) { + ownerContext.setWidth(ret.width, false); + ret.gotWidth = true; + ++got; + } + } + } + } + } + if (heightModel.shrinkWrap && ownerContext.consumersContentHeight) { + ++needed; + zeroHeight = !(hv & 2); + if (isContainer) { + if (zeroHeight) { + ret.contentHeight = 0; + ret.gotHeight = true; + ++got; + } else { + if ((ret.contentHeight = ownerContext.getProp('contentHeight')) !== undefined) { + ret.gotHeight = true; + ++got; + } + } + } else { + size = props.contentHeight; + if (typeof size === 'number') { + ret.contentHeight = size; + ret.gotHeight = true; + ++got; + } else { + if (zeroHeight) { + ready = true; + } else { + if (!ownerContext.hasDomProp('containerChildrenSizeDone')) { + ready = false; + } else { + if (owner.noWrap) { + ready = true; + } else { + if (!widthModel.shrinkWrap) { + ready = (ownerContext.bodyContext || ownerContext).hasDomProp('width'); + } else { + if (isBoxParent || !boxParent || boxParent.widthModel.shrinkWrap) { + ready = true; + } else { + ready = boxParent.hasDomProp('width'); + } + } + } + } + } + if (ready) { + if (zeroHeight) { + temp = 0; + } else { + if (containerLayout && containerLayout.measureContentHeight) { + temp = containerLayout.measureContentHeight(ownerContext); + } else { + if (target.cacheHeight) { + key = target.xtype + '-' + target.ui; + cache = me.heightCache; + temp = cache[key] || (cache[key] = me.measureContentHeight(ownerContext)); + } else { + temp = me.measureContentHeight(ownerContext); + } + } + } + if (!isNaN(ret.contentHeight = temp)) { + ownerContext.setContentHeight(temp, true); + ret.gotHeight = true; + ++got; + } + } + } + } + } else { + if (heightModel.natural && ownerContext.consumersHeight) { + ++needed; + size = props.height; + if (typeof size === 'number') { + ret.height = size; + ret.gotHeight = true; + ++got; + } else { + if (isBoxParent || !boxParent) { + ready = true; + } else { + ready = boxParent.hasDomProp('width'); + } + if (ready) { + if (!isNaN(ret.height = me.measureOwnerHeight(ownerContext))) { + ownerContext.setHeight(ret.height, false); + ret.gotHeight = true; + ++got; + } + } + } + } + } + if (boxParent) { + ownerContext.onBoxMeasured(); + } + ret.gotAll = got === needed; + return ret; +}, measureContentWidth:function(ownerContext) { + return ownerContext.el.getWidth() - ownerContext.getFrameInfo().width; +}, measureContentHeight:function(ownerContext) { + return ownerContext.el.getHeight() - ownerContext.getFrameInfo().height; +}, measureOwnerHeight:function(ownerContext) { + return ownerContext.el.getHeight(); +}, measureOwnerWidth:function(ownerContext) { + return ownerContext.el.getWidth(); +}}); +Ext.define('Ext.layout.component.Auto', {alias:'layout.autocomponent', extend:Ext.layout.component.Component, type:'autocomponent', setHeightInDom:false, setWidthInDom:false, waitForOuterHeightInDom:false, waitForOuterWidthInDom:false, beginLayoutCycle:function(ownerContext, firstCycle) { + var me = this, lastWidthModel = me.lastWidthModel, lastHeightModel = me.lastHeightModel, el = me.owner.el; + me.callParent(arguments); + if (lastWidthModel && lastWidthModel.fixed && ownerContext.widthModel.shrinkWrap) { + el.setWidth(null); + } + if (lastHeightModel && lastHeightModel.fixed && ownerContext.heightModel.shrinkWrap) { + el.setHeight(null); + } +}, calculate:function(ownerContext) { + var me = this, measurement = me.measureAutoDimensions(ownerContext), heightModel = ownerContext.heightModel, widthModel = ownerContext.widthModel, width, height; + if (measurement.gotWidth) { + if (widthModel.shrinkWrap) { + me.publishOwnerWidth(ownerContext, measurement.contentWidth); + } else { + if (me.publishInnerWidth) { + me.publishInnerWidth(ownerContext, measurement.width); + } + } + } else { + if (!widthModel.auto && me.publishInnerWidth) { + width = me.waitForOuterWidthInDom ? ownerContext.getDomProp('width') : ownerContext.getProp('width'); + if (width === undefined) { + me.done = false; + } else { + me.publishInnerWidth(ownerContext, width); + } + } + } + if (measurement.gotHeight) { + if (heightModel.shrinkWrap) { + me.publishOwnerHeight(ownerContext, measurement.contentHeight); + } else { + if (me.publishInnerHeight) { + me.publishInnerHeight(ownerContext, measurement.height); + } + } + } else { + if (!heightModel.auto && me.publishInnerHeight) { + height = me.waitForOuterHeightInDom ? ownerContext.getDomProp('height') : ownerContext.getProp('height'); + if (height === undefined) { + me.done = false; + } else { + me.publishInnerHeight(ownerContext, height); + } + } + } + if (!measurement.gotAll) { + me.done = false; + } +}, calculateOwnerHeightFromContentHeight:function(ownerContext, contentHeight) { + return contentHeight + ownerContext.getFrameInfo().height; +}, calculateOwnerWidthFromContentWidth:function(ownerContext, contentWidth) { + return contentWidth + ownerContext.getFrameInfo().width; +}, publishOwnerHeight:function(ownerContext, contentHeight) { + var me = this, owner = me.owner, height = me.calculateOwnerHeightFromContentHeight(ownerContext, contentHeight), constrainedHeight, dirty, heightModel; + if (isNaN(height)) { + me.done = false; + } else { + constrainedHeight = Ext.Number.constrain(height, owner.minHeight, owner.maxHeight); + if (constrainedHeight === height) { + dirty = me.setHeightInDom; + } else { + heightModel = me.sizeModels[constrainedHeight < height ? 'constrainedMax' : 'constrainedMin']; + height = constrainedHeight; + if (ownerContext.heightModel.calculatedFromShrinkWrap) { + ownerContext.heightModel = heightModel; + } else { + ownerContext.invalidate({heightModel:heightModel}); + } + } + ownerContext.setHeight(height, dirty); + } +}, publishOwnerWidth:function(ownerContext, contentWidth) { + var me = this, owner = me.owner, width = me.calculateOwnerWidthFromContentWidth(ownerContext, contentWidth), constrainedWidth, dirty, widthModel; + if (isNaN(width)) { + me.done = false; + } else { + constrainedWidth = Ext.Number.constrain(width, owner.minWidth, owner.maxWidth); + if (constrainedWidth === width) { + dirty = me.setWidthInDom; + } else { + widthModel = me.sizeModels[constrainedWidth < width ? 'constrainedMax' : 'constrainedMin']; + width = constrainedWidth; + if (ownerContext.widthModel.calculatedFromShrinkWrap) { + ownerContext.widthModel = widthModel; + } else { + ownerContext.invalidate({widthModel:widthModel}); + } + } + ownerContext.setWidth(width, dirty); + } +}}); +Ext.define('Ext.layout.component.ProgressBar', {alias:['layout.progressbar'], extend:Ext.layout.component.Auto, type:'progressbar', beginLayout:function(ownerContext) { + var me = this, i, textEls; + me.callParent(arguments); + if (!ownerContext.textEls) { + textEls = me.owner.textEl; + if (textEls.isComposite) { + ownerContext.textEls = []; + textEls = textEls.elements; + for (i = textEls.length; i--;) { + ownerContext.textEls[i] = ownerContext.getEl(Ext.get(textEls[i])); + } + } else { + ownerContext.textEls = [ownerContext.getEl('textEl')]; + } + } +}, calculate:function(ownerContext) { + var me = this, i, textEls, width; + me.callParent(arguments); + if (Ext.isNumber(width = ownerContext.getProp('width'))) { + width -= ownerContext.getBorderInfo().width; + textEls = ownerContext.textEls; + for (i = textEls.length; i--;) { + textEls[i].setWidth(width); + } + } else { + me.done = false; + } +}}); +Ext.define('Ext.ProgressBar', {extend:Ext.Component, xtype:'progressbar', mixins:[Ext.ProgressBase], baseCls:Ext.baseCSSPrefix + 'progress', animate:false, text:'', waitTimer:null, childEls:['bar'], defaultBindProperty:'value', renderTpl:['\x3ctpl if\x3d"internalText"\x3e', '\x3cdiv class\x3d"{baseCls}-text {baseCls}-text-back"\x3e{text}\x3c/div\x3e', '\x3c/tpl\x3e', '\x3cdiv id\x3d"{id}-bar" data-ref\x3d"bar" class\x3d"{baseCls}-bar {baseCls}-bar-{ui}" role\x3d"presentation" style\x3d"width:{percentage}%"\x3e', +'\x3ctpl if\x3d"internalText"\x3e', '\x3cdiv class\x3d"{baseCls}-text"\x3e', '\x3cdiv\x3e{text}\x3c/div\x3e', '\x3c/div\x3e', '\x3c/tpl\x3e', '\x3c/div\x3e'], componentLayout:'progressbar', ariaRole:'progressbar', initRenderData:function() { + var me = this, value = me.value || 0; + return Ext.apply(me.callParent(), {internalText:!me.hasOwnProperty('textEl'), text:me.text || '\x26#160;', percentage:value * 100}); +}, onRender:function() { + var me = this; + me.callParent(arguments); + if (me.textEl) { + me.textEl = Ext.get(me.textEl); + me.updateText(me.text); + } else { + me.textEl = me.el.select('.' + me.baseCls + '-text'); + } +}, updateValue:function(value) { + this.updateProgress(value, Math.round(value * 100) + '%'); +}, updateProgress:function(value, text, animate) { + value = value || 0; + var me = this, oldValue = me.value, textTpl = me.getTextTpl(); + me.value = value || (value = 0); + if (text != null) { + me.updateText(text); + } else { + if (textTpl) { + me.updateText(textTpl.apply({value:value, percent:value * 100})); + } + } + if (me.rendered && !me.destroyed) { + if (animate === true || animate !== false && me.animate) { + me.bar.stopAnimation(); + me.bar.animate(Ext.apply({from:{width:oldValue * 100 + '%'}, to:{width:value * 100 + '%'}}, me.animate)); + } else { + me.bar.setStyle('width', value * 100 + '%'); + } + } + me.fireEvent('update', me, value, text); + return me; +}, updateText:function(text) { + var me = this; + me.text = text; + if (me.rendered) { + me.textEl.setHtml(me.text); + } + return me; +}, applyText:function(text) { + this.updateText(text); +}, getText:function() { + return this.text; +}, wait:function(o) { + var me = this, scope; + if (!me.waitTimer) { + scope = me; + o = o || {}; + me.updateText(o.text); + me.waitTimer = Ext.TaskManager.start({run:function(i) { + var inc = o.increment || 10; + i -= 1; + me.updateProgress(((i + inc) % inc + 1) * (100 / inc) * 0.01, null, o.animate); + }, interval:o.interval || 1000, duration:o.duration, onStop:function() { + if (o.fn) { + o.fn.apply(o.scope || me); + } + me.reset(); + }, scope:scope}); + } + return me; +}, isWaiting:function() { + return this.waitTimer !== null; +}, reset:function(hide) { + var me = this; + me.updateProgress(0); + me.clearTimer(); + if (hide === true) { + me.hide(); + } + return me; +}, clearTimer:function() { + var me = this; + if (me.waitTimer) { + me.waitTimer.onStop = null; + Ext.TaskManager.stop(me.waitTimer); + me.waitTimer = null; + } +}, onDestroy:function() { + var me = this, bar = me.bar; + me.clearTimer(); + if (me.rendered) { + if (me.textEl.isComposite) { + me.textEl.clear(); + } + Ext.destroyMembers(me, 'textEl', 'progressBar'); + if (bar && me.animate) { + bar.stopAnimation(); + } + } + me.callParent(); +}}); +Ext.define('Ext.dom.ButtonElement', {extend:Ext.dom.Element, setSize:function(width, height, animate) { + var me = this, component = me.component; + me.callParent([width, height, animate]); + component.btnWrap.setStyle('table-layout', !width || width === 'auto' ? '' : 'fixed'); + component.btnEl.setStyle('height', !height || height === 'auto' ? '' : 'auto'); + return me; +}, setStyle:function(prop, value) { + var me = this, component = me.component, width, height; + me.callParent([prop, value]); + if (prop) { + if (prop === 'width' || typeof prop !== 'string' && 'width' in prop) { + width = value || prop.width; + component.btnWrap.setStyle('table-layout', !width || width === 'auto' ? '' : 'fixed'); + } + if (prop === 'height' || typeof prop !== 'string' && 'height' in prop) { + height = value || prop.height; + component.btnEl.setStyle('height', !height || height === 'auto' ? '' : 'auto'); + } + } + return me; +}, setHeight:function(height, animate) { + this.callParent([height, animate]); + this.component.btnEl.setStyle('height', !height || height === 'auto' ? '' : 'auto'); + return this; +}, setWidth:function(width, animate) { + this.callParent([width, animate]); + this.component.btnWrap.setStyle('table-layout', !width || width === 'auto' ? '' : 'fixed'); + return this; +}}); +Ext.define('Ext.button.Manager', {singleton:true, alternateClassName:'Ext.ButtonToggleManager', groups:{}, pressedButton:null, init:function() { + var me = this; + if (!me.initialized) { + Ext.getDoc().on({mouseup:me.onDocumentMouseUp, scope:me}); + me.initialized = true; + } +}, onButtonMousedown:function(button, e) { + var pressed = this.pressedButton; + if (pressed) { + pressed.onMouseUp(e); + } + this.pressedButton = button; +}, onDocumentMouseUp:function(e) { + var pressed = this.pressedButton; + if (pressed) { + pressed.onMouseUp(e); + this.pressedButton = null; + } +}, toggleGroup:function(btn, state) { + if (state) { + var g = this.groups[btn.toggleGroup], length = g.length, i; + for (i = 0; i < length; i++) { + if (g[i] !== btn) { + g[i].toggle(false); + } + } + } +}, register:function(btn) { + var me = this, groups = this.groups, group = groups[btn.toggleGroup]; + me.init(); + if (!btn.toggleGroup) { + return; + } + if (!group) { + group = groups[btn.toggleGroup] = []; + } + group.push(btn); + btn.on('toggle', me.toggleGroup, me); +}, unregister:function(btn) { + if (!btn.toggleGroup) { + return; + } + var me = this, group = me.groups[btn.toggleGroup]; + if (group) { + Ext.Array.remove(group, btn); + btn.un('toggle', me.toggleGroup, me); + } +}, getPressed:function(groupName) { + var group = this.groups[groupName], i = 0, len; + if (group) { + for (len = group.length; i < len; i++) { + if (group[i].pressed === true) { + return group[i]; + } + } + } + return null; +}}); +Ext.define('Ext.menu.Manager', {singleton:true, alternateClassName:'Ext.menu.MenuMgr', groups:{}, visible:[], constructor:function() { + var me = this; + me.onShow = function() { + delete me.onShow; + Ext.on('mousedown', me.checkActiveMenus, me); + return me.onShow.apply(me, arguments); + }; +}, checkActiveMenus:function(e) { + var allMenus = this.visible, len = allMenus.length, i, menu, mousedownCmp = Ext.Component.fromElement(e.target); + if (len) { + allMenus = allMenus.slice(); + for (i = 0; i < len; ++i) { + menu = allMenus[i]; + if (!(menu.owns(e) || mousedownCmp && mousedownCmp.isMenuCheckItem && mousedownCmp.menu === menu)) { + menu.hide(); + } + } + } +}, onShow:function(menu) { + if (menu.floating) { + Ext.Array.include(this.visible, menu); + } +}, onHide:function(menu) { + if (menu.floating) { + Ext.Array.remove(this.visible, menu); + } +}, hideAll:function() { + var allMenus = this.visible, len = allMenus.length, result = false, i; + if (len) { + allMenus = allMenus.slice(); + for (i = 0; i < len; i++) { + allMenus[i].hide(); + result = true; + } + } + return result; +}, get:function(menu, config) { + var result; + if (typeof menu === 'string') { + result = Ext.getCmp(menu); + if (result instanceof Ext.menu.Menu) { + menu = result; + } + } else { + if (Ext.isArray(menu)) { + config = Ext.apply({items:menu}, config); + menu = new Ext.menu.Menu(config); + } else { + if (!menu.isComponent) { + config = Ext.apply({}, menu, config); + menu = Ext.ComponentManager.create(config, 'menu'); + } + } + } + return menu; +}, registerCheckable:function(menuItem) { + var groups = this.groups, groupId = menuItem.group; + if (groupId) { + if (!groups[groupId]) { + groups[groupId] = []; + } + groups[groupId].push(menuItem); + } +}, unregisterCheckable:function(menuItem) { + var groups = this.groups, groupId = menuItem.group; + if (groupId) { + Ext.Array.remove(groups[groupId], menuItem); + } +}, onCheckChange:function(menuItem, state) { + var groups = this.groups, groupId = menuItem.group, i = 0, group, ln, curr; + if (groupId && state) { + group = groups[groupId]; + ln = group.length; + for (; i < ln; i++) { + curr = group[i]; + if (curr !== menuItem) { + curr.setChecked(false); + } + } + } +}}); +Ext.define('Ext.util.ClickRepeater', {extend:Ext.util.Observable, constructor:function(el, config) { + var me = this; + me.el = Ext.get(el); + me.el.unselectable(); + Ext.apply(me, config); + me.callParent(); + if (!me.disabled) { + me.disabled = true; + me.enable(); + } + if (me.handler) { + me.on('click', me.handler, me.scope || me); + } +}, interval:20, delay:250, preventDefault:true, stopDefault:false, timer:0, enable:function() { + if (this.disabled) { + this.el.on('mousedown', this.handleMouseDown, this); + if (Ext.isIE8) { + this.el.on('dblclick', this.handleDblClick, this); + } + if (this.preventDefault || this.stopDefault) { + this.el.on('click', this.eventOptions, this); + } + } + this.disabled = false; +}, disable:function(force) { + if (force || !this.disabled) { + clearTimeout(this.timer); + if (this.pressedCls) { + this.el.removeCls(this.pressedCls); + } + Ext.getDoc().un('mouseup', this.handleMouseUp, this); + this.el.clearListeners(); + } + this.disabled = true; +}, setDisabled:function(disabled) { + this[disabled ? 'disable' : 'enable'](); +}, eventOptions:function(e) { + if (this.preventDefault) { + e.preventDefault(); + } + if (this.stopDefault) { + e.stopEvent(); + } +}, destroy:function() { + this.disable(true); + this.callParent(); +}, handleDblClick:function(e) { + clearTimeout(this.timer); + this.fireEvent('mousedown', this, e); + this.fireEvent('click', this, e); +}, handleMouseDown:function(e) { + clearTimeout(this.timer); + if (this.pressedCls) { + this.el.addCls(this.pressedCls); + } + this.mousedownTime = new Date; + Ext.getDoc().on('mouseup', this.handleMouseUp, this); + this.el.on('mouseout', this.handleMouseOut, this); + this.fireEvent('mousedown', this, e); + this.fireEvent('click', this, e); + if (this.accelerate) { + this.delay = 400; + } + this.timer = Ext.defer(this.click, this.delay || this.interval, this, [e]); + if (this.mousedownPreventDefault) { + e.preventDefault(); + } + if (this.mousedownStopEvent) { + e.stopEvent(); + } +}, click:function(e) { + this.fireEvent('click', this, e); + this.timer = Ext.defer(this.click, this.accelerate ? this.easeOutExpo(Ext.Date.getElapsed(this.mousedownTime), 400, -390, 12000) : this.interval, this, [e]); +}, easeOutExpo:function(t, b, c, d) { + return t === d ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b; +}, handleMouseOut:function() { + clearTimeout(this.timer); + if (this.pressedCls) { + this.el.removeCls(this.pressedCls); + } + this.el.on('mouseover', this.handleMouseReturn, this); +}, handleMouseReturn:function(e) { + this.el.un('mouseover', this.handleMouseReturn, this); + if (this.pressedCls) { + this.el.addCls(this.pressedCls); + } + this.click(e); +}, handleMouseUp:function(e) { + clearTimeout(this.timer); + this.el.un('mouseover', this.handleMouseReturn, this); + this.el.un('mouseout', this.handleMouseOut, this); + Ext.getDoc().un('mouseup', this.handleMouseUp, this); + if (this.pressedCls) { + this.el.removeCls(this.pressedCls); + } + this.fireEvent('mouseup', this, e); +}}); +Ext.define('Ext.button.Button', {alias:'widget.button', extend:Ext.Component, mixins:[Ext.mixin.Queryable, Ext.util.KeyboardInteractive], alternateClassName:'Ext.Button', config:{iconAlign:'left', text:null, textAlign:'center', arrowVisible:true}, isButton:true, _syncFrameHeight:true, liquidLayout:true, hidden:false, disabled:false, pressed:false, tabIndex:0, enableToggle:false, menuAlign:'tl-bl?', showEmptyMenu:false, clickEvent:'click', preventDefault:true, handleMouseEvents:true, tooltipType:'qtip', +baseCls:Ext.baseCSSPrefix + 'btn', hrefTarget:'_blank', destroyMenu:true, focusable:true, ariaRole:'button', keyHandlers:{SPACE:'onEnterKey', ENTER:'onEnterKey', DOWN:'onDownKey'}, defaultBindProperty:'text', childEls:['btnEl', 'btnWrap', 'btnInnerEl', 'btnIconEl', 'arrowEl'], publishes:{pressed:1}, _btnWrapCls:Ext.baseCSSPrefix + 'btn-wrap', _btnCls:Ext.baseCSSPrefix + 'btn-button', _baseIconCls:Ext.baseCSSPrefix + 'btn-icon-el', _glyphCls:Ext.baseCSSPrefix + 'btn-glyph', _innerCls:Ext.baseCSSPrefix + +'btn-inner', _textCls:Ext.baseCSSPrefix + 'btn-text', _noTextCls:Ext.baseCSSPrefix + 'btn-no-text', _hasIconCls:Ext.baseCSSPrefix + 'btn-icon', _pressedCls:Ext.baseCSSPrefix + 'btn-pressed', overCls:Ext.baseCSSPrefix + 'btn-over', _disabledCls:Ext.baseCSSPrefix + 'btn-disabled', _menuActiveCls:Ext.baseCSSPrefix + 'btn-menu-active', _arrowElCls:Ext.baseCSSPrefix + 'btn-arrow-el', _focusCls:Ext.baseCSSPrefix + 'btn-focus', _arrowFocusCls:Ext.baseCSSPrefix + 'arrow-focus', renderTpl:'\x3cspan id\x3d"{id}-btnWrap" data-ref\x3d"btnWrap" role\x3d"presentation" unselectable\x3d"on" style\x3d"{btnWrapStyle}" ' + +'class\x3d"{btnWrapCls} {btnWrapCls}-{ui} {splitCls}{childElCls}"\x3e' + '\x3cspan id\x3d"{id}-btnEl" data-ref\x3d"btnEl" role\x3d"presentation" unselectable\x3d"on" style\x3d"{btnElStyle}" ' + 'class\x3d"{btnCls} {btnCls}-{ui} {textCls} {noTextCls} {hasIconCls} ' + '{iconAlignCls} {textAlignCls} {btnElAutoHeightCls}{childElCls}"\x3e' + '\x3ctpl if\x3d"iconBeforeText"\x3e{[values.$comp.renderIcon(values)]}\x3c/tpl\x3e' + '\x3cspan id\x3d"{id}-btnInnerEl" data-ref\x3d"btnInnerEl" unselectable\x3d"on" ' + +'class\x3d"{innerCls} {innerCls}-{ui}{childElCls}"\x3e{text}\x3c/span\x3e' + '\x3ctpl if\x3d"!iconBeforeText"\x3e{[values.$comp.renderIcon(values)]}\x3c/tpl\x3e' + '\x3c/span\x3e' + '\x3c/span\x3e' + '{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]}' + '\x3ctpl if\x3d"closable"\x3e' + '\x3cspan id\x3d"{id}-closeEl" data-ref\x3d"closeEl" class\x3d"{baseCls}-close-btn"\x3e' + '\x3ctpl if\x3d"closeText"\x3e' + ' {closeText}' + '\x3c/tpl\x3e' + '\x3c/span\x3e' + '\x3c/tpl\x3e' + +'\x3ctpl if\x3d"split"\x3e' + '\x3cspan id\x3d"{id}-arrowEl" class\x3d"{arrowElCls}" data-ref\x3d"arrowEl" ' + 'role\x3d"button" hidefocus\x3d"on" unselectable\x3d"on"' + '\x3ctpl if\x3d"tabIndex !\x3d null"\x3e tabindex\x3d"{tabIndex}"\x3c/tpl\x3e' + '\x3ctpl foreach\x3d"arrowElAttributes"\x3e {$}\x3d"{.}"\x3c/tpl\x3e' + '\x3e{arrowElText}\x3c/span\x3e' + '\x3c/tpl\x3e', iconTpl:'\x3cspan id\x3d"{id}-btnIconEl" data-ref\x3d"btnIconEl" role\x3d"presentation" unselectable\x3d"on" class\x3d"{baseIconCls} ' + +'{baseIconCls}-{ui} {iconCls} {glyphCls}{childElCls}" style\x3d"' + '\x3ctpl if\x3d"iconUrl"\x3ebackground-image:url({iconUrl});\x3c/tpl\x3e' + '\x3ctpl if\x3d"glyph \x26\x26 glyphFontFamily"\x3efont-family:{glyphFontFamily};\x3c/tpl\x3e"\x3e' + '\x3ctpl if\x3d"glyph"\x3e\x26#{glyph};\x3c/tpl\x3e' + '\x3c/span\x3e', scale:'small', allowedScales:['small', 'medium', 'large'], arrowAlign:'right', arrowCls:'arrow', maskOnDisable:false, shrinkWrap:3, frame:true, autoEl:{tag:'a', hidefocus:'on', unselectable:'on'}, +hasFrameTable:function() { + return this.href && this.frameTable; +}, frameTableListener:function() { + if (!this.disabled) { + this.doNavigate(); + } +}, doNavigate:function() { + if (this.hrefTarget === '_blank') { + window.open(this.getHref(), this.hrefTarget); + } else { + location.href = this.getHref(); + } +}, _triggerRegion:{}, initComponent:function() { + var me = this; + if (!me.isSplitButton && me.menu && Ext.enableAriaButtons && !Ext.slicer && Ext.enableAria) { + if (me.enableToggle || me.toggleGroup) { + Ext.log.warn('According to WAI-ARIA 1.0 Authoring guide ' + '(http://www.w3.org/TR/wai-aria-practices/#menubutton), ' + "menu button '" + me.id + "' behavior will conflict with " + 'toggling.'); + } + if (me.href) { + Ext.log.warn('According to WAI-ARIA 1.0 Authoring guide ' + '(http://www.w3.org/TR/wai-aria-practices/#menubutton), ' + "menu button '" + me.id + "' cannot behave as a link."); + } + if (me.handler || me.hasListeners.hasOwnProperty('click')) { + Ext.log.warn('According to WAI-ARIA 1.0 Authoring guide ' + '(http://www.w3.org/TR/wai-aria-practices/#menubutton), ' + "menu button '" + me.id + "' should display the menu " + 'on SPACE and ENTER keys, which will conflict with the ' + 'button handler.'); + } + } + me.addCls(Ext.baseCSSPrefix + 'unselectable'); + me.callParent(); + if (me.menu) { + me.split = true; + me.setMenu(me.menu, false, true); + } + if (me.url) { + me.href = me.url; + } + me.configuredWithPreventDefault = me.hasOwnProperty('preventDefault'); + if (me.href && !me.configuredWithPreventDefault) { + me.preventDefault = false; + } + if (Ext.isString(me.toggleGroup) && me.toggleGroup !== '') { + me.enableToggle = true; + } + if (me.html && !me.text) { + me.text = me.html; + delete me.html; + } +}, getElConfig:function() { + var me = this, config = me.callParent(), href = me.getHref(), hrefTarget = me.hrefTarget; + if (config.tag === 'a') { + if (!me.disabled) { + config.tabIndex = me.tabIndex; + } + if (href) { + if (!me.disabled) { + config.href = href; + if (hrefTarget) { + config.target = hrefTarget; + } + } + } + } + if (!me.ariaStaticRoles[me.ariaRole]) { + if (me.menu && !me.isSplitButton) { + config['aria-haspopup'] = true; + } + if (me.enableToggle) { + config['aria-pressed'] = !!me.pressed; + } + } + return config; +}, beforeRender:function() { + this.callParent(); + if (this.pressed) { + this.addCls(this._pressedCls); + } +}, initRenderData:function() { + return Ext.apply(this.callParent(), this.getTemplateArgs()); +}, getMenu:function() { + return this.menu || null; +}, setMenu:function(menu, destroyMenu, initial) { + var me = this, oldMenu = me.menu, ariaDom = me.isSplitButton ? me.arrowEl && me.arrowEl.dom : me.ariaEl.dom, instanced, ariaAttr; + if (oldMenu && !initial) { + if (destroyMenu !== false && me.destroyMenu) { + oldMenu.destroy(); + } + oldMenu.ownerCmp = null; + } + if (menu) { + instanced = menu.isMenu; + menu = Ext.menu.Manager.get(menu, {ownerCmp:me}); + menu.setOwnerCmp(me, instanced); + menu.menuClickBuffer = 250; + me.mon(menu, {scope:me, show:me.onMenuShow, hide:me.onMenuHide}); + if (!oldMenu && me.getArrowVisible()) { + me.split = true; + if (me.rendered) { + me._addSplitCls(); + me.updateLayout(); + } + } + me.menu = menu; + if (ariaDom) { + ariaDom.setAttribute('aria-haspopup', true); + ariaDom.setAttribute('aria-owns', menu.id); + } else { + ariaAttr = me.isSplitButton ? me.ariaArrowElAttributes || (me.ariaArrowElAttributes = {}) : me.ariaRenderAttributes || (me.ariaRenderAttributes = {}); + ariaAttr['aria-haspopup'] = true; + ariaAttr['aria-owns'] = menu.id; + } + } else { + if (me.rendered) { + ariaDom.removeAttribute('aria-haspopup'); + ariaDom.removeAttribute('aria-owns'); + me._removeSplitCls(); + me.updateLayout(); + } else { + ariaAttr = me.isSplitButton ? me.ariaArrowElAttributes : me.ariaRenderAttributes; + if (ariaAttr) { + delete ariaAttr['aria-haspopup']; + delete ariaAttr['aria-owns']; + } + } + me.split = false; + me.menu = null; + } +}, onRender:function() { + var me = this, addOnclick, btn, btnListeners; + me.callParent(arguments); + btn = me.el; + if (me.tooltip) { + me.setTooltip(me.tooltip, true); + } + if (me.handleMouseEvents) { + btnListeners = {scope:me, mouseover:me.onMouseOver, mouseout:me.onMouseOut, mousedown:me.onMouseDown}; + if (me.split) { + btnListeners.mousemove = me.onMouseMove; + } + } else { + btnListeners = {scope:me}; + } + if (Ext.supports.Touch) { + btnListeners.touchstart = me.onTouchStart; + } + if (me.repeat) { + me.mon(new Ext.util.ClickRepeater(btn, Ext.isObject(me.repeat) ? me.repeat : {}), 'click', me.onRepeatClick, me); + } else { + if (btnListeners[me.clickEvent]) { + addOnclick = true; + } else { + btnListeners[me.clickEvent] = me.onClick; + } + } + me.mon(btn, btnListeners); + if (me.hasFrameTable()) { + me.mon(me.frameTable, 'click', me.frameTableListener, me); + } + if (addOnclick) { + me.mon(btn, me.clickEvent, me.onClick, me); + } + Ext.button.Manager.register(me); +}, onFocusLeave:function(e) { + this.callParent([e]); + if (this.menu) { + this.menu.hide(); + } +}, getTemplateArgs:function() { + var me = this, btnCls = me._btnCls, baseIconCls = me._baseIconCls, iconAlign = me.getIconAlign(), glyph = me.glyph, glyphFontFamily = Ext._glyphFontFamily, text = me.text, hasIcon = me._hasIcon(), hasIconCls = me._hasIconCls, glyphParts; + if (typeof glyph === 'string') { + glyphParts = glyph.split('@'); + glyph = glyphParts[0]; + glyphFontFamily = glyphParts[1]; + } + return {split:me.isSplitButton, innerCls:me._innerCls, splitCls:me.getArrowVisible() ? me.getSplitCls() : '', iconUrl:me.icon, iconCls:me.iconCls, glyph:glyph, glyphCls:glyph ? me._glyphCls : '', glyphFontFamily:glyphFontFamily, text:text || '\x26#160;', closeText:me.closeText, textCls:text ? me._textCls : '', noTextCls:text ? '' : me._noTextCls, hasIconCls:hasIcon ? hasIconCls : '', btnWrapCls:me._btnWrapCls, btnWrapStyle:me.width ? 'table-layout:fixed;' : '', btnElStyle:me.height ? 'height:auto;' : + '', btnCls:btnCls, baseIconCls:baseIconCls, iconBeforeText:iconAlign === 'left' || iconAlign === 'top', iconAlignCls:hasIcon ? hasIconCls + '-' + iconAlign : '', textAlignCls:btnCls + '-' + me.getTextAlign(), arrowElCls:me._arrowElCls, tabIndex:me.tabIndex}; +}, renderIcon:function(values) { + return this.getTpl('iconTpl').apply(values); +}, setHref:function(href) { + var me = this, hrefTarget = me.hrefTarget, dom; + me.href = href; + if (!me.configuredWithPreventDefault) { + me.preventDefault = !href; + } + if (me.rendered) { + dom = me.el.dom; + if (!href || me.disabled) { + dom.removeAttribute('href'); + dom.removeAttribute('hrefTarget'); + } else { + dom.href = me.getHref(); + if (hrefTarget) { + dom.target = hrefTarget; + } + } + } +}, getHref:function() { + var me = this, href = me.href; + return href ? Ext.urlAppend(href, Ext.Object.toQueryString(Ext.apply({}, me.params, me.baseParams))) : false; +}, setParams:function(params) { + var me = this, dom; + me.params = params; + if (me.rendered) { + dom = me.el.dom; + if (me.disabled) { + dom.removeAttribute('href'); + } else { + dom.href = me.getHref() || ''; + } + } +}, getSplitCls:function() { + var me = this; + return me.split ? me.baseCls + '-' + me.arrowCls + ' ' + (me.baseCls + '-' + me.arrowCls + '-' + me.arrowAlign) : ''; +}, setIcon:function(icon) { + icon = icon || ''; + var me = this, btnIconEl = me.btnIconEl, oldIcon = me.icon || ''; + me.icon = icon; + if (icon !== oldIcon) { + if (btnIconEl) { + btnIconEl.setStyle('background-image', icon ? 'url(' + icon + ')' : ''); + me._syncHasIconCls(); + if (me.didIconStateChange(oldIcon, icon)) { + me.updateLayout(); + } + } + me.fireEvent('iconchange', me, oldIcon, icon); + } + return me; +}, setIconCls:function(cls) { + cls = cls || ''; + var me = this, btnIconEl = me.btnIconEl, oldCls = me.iconCls || ''; + me.iconCls = cls; + if (oldCls !== cls) { + if (btnIconEl) { + btnIconEl.removeCls(oldCls); + btnIconEl.addCls(cls); + me._syncHasIconCls(); + if (me.didIconStateChange(oldCls, cls)) { + me.updateLayout(); + } + } + me.fireEvent('iconchange', me, oldCls, cls); + } + return me; +}, setGlyph:function(glyph) { + glyph = glyph || 0; + var me = this, btnIconEl = me.btnIconEl, oldGlyph = me.glyph, glyphCls = me._glyphCls, fontFamily, glyphParts; + me.glyph = glyph; + if (btnIconEl) { + if (typeof glyph === 'string') { + glyphParts = glyph.split('@'); + glyph = glyphParts[0]; + fontFamily = glyphParts[1] || Ext._glyphFontFamily; + } + if (!glyph) { + btnIconEl.dom.innerHTML = ''; + btnIconEl.removeCls(glyphCls); + } else { + if (oldGlyph !== glyph) { + btnIconEl.dom.innerHTML = '\x26#' + glyph + ';'; + btnIconEl.addCls(glyphCls); + } + } + if (fontFamily) { + btnIconEl.setStyle('font-family', fontFamily); + } + me._syncHasIconCls(); + if (me.didIconStateChange(oldGlyph, glyph)) { + me.updateLayout(); + } + } + me.fireEvent('glyphchange', me, me.glyph, oldGlyph); + return me; +}, setTooltip:function(tooltip, initial) { + var me = this; + if (me.rendered) { + if (!initial || !tooltip) { + me.clearTip(); + } + if (tooltip) { + if (Ext.quickTipsActive && Ext.isObject(tooltip)) { + Ext.tip.QuickTipManager.register(Ext.apply({target:me.el.id}, tooltip)); + me.tooltip = tooltip; + } else { + me.el.dom.setAttribute(me.getTipAttr(), tooltip); + } + } + } else { + me.tooltip = tooltip; + } + return me; +}, updateIconAlign:function(align, oldAlign) { + var me = this, btnEl, btnIconEl, hasIconCls; + if (me.rendered) { + btnEl = me.btnEl; + btnIconEl = me.btnIconEl; + hasIconCls = me._hasIconCls; + if (oldAlign) { + btnEl.removeCls(hasIconCls + '-' + oldAlign); + } + btnEl.addCls(hasIconCls + '-' + align); + if (align === 'top' || align === 'left') { + btnEl.insertFirst(btnIconEl); + } else { + btnEl.appendChild(btnIconEl); + } + me.updateLayout(); + } +}, updateTextAlign:function(align, oldAlign) { + var me = this, btnEl = me.btnEl, btnCls = me._btnCls; + if (me.rendered) { + btnEl.removeCls(btnCls + '-' + oldAlign); + btnEl.addCls(btnCls + '-' + align); + } +}, getTipAttr:function() { + return this.tooltipType === 'qtip' ? 'data-qtip' : 'title'; +}, getRefItems:function(deep) { + var menu = this.menu, items; + if (menu) { + items = menu.getRefItems(deep); + items.unshift(menu); + } + return items || []; +}, clearTip:function() { + var me = this, el = me.el; + if (Ext.quickTipsActive && Ext.isObject(me.tooltip)) { + Ext.tip.QuickTipManager.unregister(el); + } else { + el.dom.removeAttribute(me.getTipAttr()); + } +}, beforeDestroy:function() { + var me = this; + if (me.rendered) { + me.clearTip(); + } + Ext.destroy(me.repeater); + me.callParent(); +}, onDestroy:function() { + var me = this, menu = me.menu; + if (me.rendered) { + Ext.destroy(me.keyMap); + delete me.keyMap; + } + if (menu && me.destroyMenu) { + me.menu = Ext.destroy(menu); + } + Ext.button.Manager.unregister(me); + me.callParent(); +}, setHandler:function(handler, scope) { + this.handler = handler; + if (arguments.length > 1) { + this.scope = scope; + } + return this; +}, updateText:function(text, oldText) { + text = text == null ? '' : String(text); + oldText = oldText || ''; + var me = this, btnInnerEl = me.btnInnerEl, btnEl = me.btnEl; + if (me.rendered) { + btnInnerEl.setHtml(text || '\x26#160;'); + btnEl[text ? 'addCls' : 'removeCls'](me._textCls); + btnEl[text ? 'removeCls' : 'addCls'](me._noTextCls); + me.updateLayout(); + } + me.fireEvent('textchange', me, oldText, text); +}, didIconStateChange:function(old, current) { + var currentEmpty = Ext.isEmpty(current); + return Ext.isEmpty(old) ? !currentEmpty : currentEmpty; +}, click:function(e) { + return this.onClick(e); +}, setPressed:function(pressed) { + return this.toggle(pressed !== false); +}, toggle:function(state, suppressEvent) { + var me = this, ariaDom = me.ariaEl.dom; + state = state === undefined ? !me.pressed : !!state; + if (me.fireEvent('beforetoggle', me, state) !== false) { + if (state !== me.pressed) { + me[state ? 'addCls' : 'removeCls'](me._pressedCls); + me.pressed = state; + if (ariaDom) { + ariaDom.setAttribute('aria-pressed', state); + } + if (!suppressEvent) { + me.fireEvent('toggle', me, state); + Ext.callback(me.toggleHandler, me.scope, [me, state], 0, me); + if (me.reference && me.publishState) { + me.publishState('pressed', state); + } + } + } + } + return me; +}, maybeShowMenu:function(e) { + if (this.menu) { + this.showMenu(e); + } +}, showMenu:function(clickEvent) { + var me = this, menu = me.menu, isPointerEvent = !clickEvent || clickEvent.pointerType; + if (menu && me.rendered) { + if (me.tooltip && Ext.quickTipsActive && me.getTipAttr() !== 'title') { + Ext.tip.QuickTipManager.getQuickTip().cancelShow(me.el); + } + if (menu.isVisible()) { + if (isPointerEvent) { + menu.hide(); + } else { + menu.focus(); + } + } else { + if (!clickEvent || me.showEmptyMenu || menu.items.getCount() > 0) { + menu.autoFocus = !isPointerEvent; + menu.showBy(me.el, me.menuAlign); + } + } + } + return me; +}, hideMenu:function() { + if (this.hasVisibleMenu()) { + this.menu.hide(); + } + return this; +}, hasVisibleMenu:function() { + var menu = this.menu; + return menu && menu.rendered && menu.isVisible(); +}, onRepeatClick:function(repeat, e) { + this.onClick(e); +}, onTouchStart:function(e) { + this.doPreventDefault(e); +}, onEnterKey:function(e) { + this.onClick(e); + e.stopEvent(); + return false; +}, onClick:function(e) { + var me = this; + me.doPreventDefault(e); + if (e.type !== 'keydown' && e.button) { + return; + } + if (!me.disabled) { + me.doToggle(); + me.maybeShowMenu(e); + me.fireHandler(e); + } +}, doPreventDefault:function(e) { + if (e && (this.preventDefault || this.disabled && this.getHref())) { + e.preventDefault(); + } +}, fireHandler:function(e) { + var me = this; + if (me.fireEvent('click', me, e) !== false && !me.destroyed) { + Ext.callback(me.handler, me.scope, [me, e], 0, me); + } +}, doToggle:function() { + var me = this; + if (me.enableToggle && (me.allowDepress !== false || !me.pressed)) { + me.toggle(); + } +}, onMouseOver:function(e) { + var me = this; + if (!me.disabled && !e.within(me.el, true, true)) { + me.onMouseEnter(e); + } +}, onMouseOut:function(e) { + var me = this; + if (!e.within(me.el, true, true)) { + if (me.overMenuTrigger) { + me.onMenuTriggerOut(e); + } + me.onMouseLeave(e); + } +}, onMouseMove:function(e) { + var me = this, over = me.overMenuTrigger; + if (me.split) { + if (me.isWithinTrigger(e)) { + if (!over) { + me.onMenuTriggerOver(e); + } + } else { + if (over) { + me.onMenuTriggerOut(e); + } + } + } +}, isWithinTrigger:function(e) { + var me = this, el = me.el, overPosition, triggerRegion; + overPosition = me.arrowAlign === 'right' ? e.getX() - me.getX() : e.getY() - el.getY(); + triggerRegion = me.getTriggerRegion(); + return overPosition > triggerRegion.begin && overPosition < triggerRegion.end; +}, getTriggerRegion:function() { + var me = this, region = me._triggerRegion, isRight = me.arrowAlign === 'right', getEnd = isRight ? 'getRight' : 'getBottom', btnSize = isRight ? me.getWidth() : me.getHeight(); + region.begin = btnSize - (me.el[getEnd]() - me.btnEl[getEnd]()); + region.end = btnSize; + return region; +}, onMouseEnter:function(e) { + this.fireEvent('mouseover', this, e); +}, onMouseLeave:function(e) { + this.fireEvent('mouseout', this, e); +}, onMenuTriggerOver:function(e) { + var me = this, arrowTip = me.arrowTooltip; + me.overMenuTrigger = true; + if (me.split && arrowTip) { + me.btnWrap.dom.setAttribute(me.getTipAttr(), arrowTip); + } + me.fireEvent('menutriggerover', me, me.menu, e); +}, onMenuTriggerOut:function(e) { + var me = this; + delete me.overMenuTrigger; + if (me.split && me.arrowTooltip) { + me.btnWrap.dom.setAttribute(me.getTipAttr(), ''); + } + me.fireEvent('menutriggerout', me, me.menu, e); +}, onEnable:function() { + var me = this, href = me.href, hrefTarget = me.hrefTarget, dom = me.el.dom; + me.callParent(); + me.removeCls(me._disabledCls); + dom.setAttribute('tabIndex', me.tabIndex); + if (href) { + dom.href = href; + } + if (hrefTarget) { + dom.target = hrefTarget; + } +}, onDisable:function() { + var me = this, dom = me.el.dom; + me.callParent(); + me.addCls(me._disabledCls); + me.removeCls(me.overCls); + dom.removeAttribute('tabIndex'); + if (me.href) { + dom.removeAttribute('href'); + } + if (me.hrefTarget) { + dom.removeAttribute('target'); + } +}, setScale:function(scale) { + var me = this, ui = me.ui.replace('-' + me.scale, ''); + if (!Ext.Array.contains(me.allowedScales, scale)) { + throw '#setScale: scale must be an allowed scale (' + me.allowedScales.join(', ') + ')'; + } + me.scale = scale; + me.setUI(ui); +}, setUI:function(ui) { + var me = this; + if (me.scale && !ui.match(me.scale)) { + ui = ui + '-' + me.scale; + } + me.callParent([ui]); +}, onMouseDown:function(e) { + var me = this; + if (Ext.isIE || e.pointerType === 'touch') { + Ext.defer(function() { + var focusEl = me.getFocusEl(); + if (focusEl && !e.defaultPrevented) { + focusEl.focus(); + } + }, 1); + } + if (!me.disabled && e.button === 0) { + Ext.button.Manager.onButtonMousedown(me, e); + me.addCls(me._pressedCls); + } +}, onMouseUp:function(e) { + var me = this; + if (!me.destroyed && e.button === 0) { + if (!me.pressed) { + me.removeCls(me._pressedCls); + } + } +}, onMenuShow:function() { + var me = this; + me.addCls(me._menuActiveCls); + me.fireEvent('menushow', me, me.menu); +}, onMenuHide:function(e) { + var me = this; + me.removeCls(me._menuActiveCls); + me.fireEvent('menuhide', me, me.menu); +}, onDownKey:function(e) { + var me = this; + if (me.menu && !me.disabled) { + me.showMenu(e); + e.stopEvent(); + return false; + } +}, updateArrowVisible:function(visible) { + var me = this; + if (me.rendered) { + if (visible) { + if (me.menu || me.isSplitButton) { + me.split = true; + me._addSplitCls(); + } + } else { + me._removeSplitCls(); + me.split = false; + } + } + return visible; +}, privates:{addOverCls:function() { + if (!this.disabled) { + this.addCls(this.overCls); + } +}, _addSplitCls:function() { + var me = this; + me.btnWrap.addCls(me.getSplitCls()); +}, getTdCls:function() { + return Ext.baseCSSPrefix + 'button-' + this.ui + '-' + this.scale + '-cell'; +}, removeOverCls:function() { + this.removeCls(this.overCls); +}, _removeSplitCls:function() { + var me = this; + me.btnWrap.removeCls(me.getSplitCls()); +}, _syncHasIconCls:function() { + var me = this, btnEl = me.btnEl, hasIconCls = me._hasIconCls; + if (btnEl) { + btnEl[me._hasIcon() ? 'addCls' : 'removeCls']([hasIconCls, hasIconCls + '-' + me.iconAlign]); + } +}, _hasIcon:function() { + return !!(this.icon || this.iconCls || this.glyph); +}, wrapPrimaryEl:function(dom) { + this.el = new Ext.dom.ButtonElement(dom); + this.callParent([dom]); +}}}); +Ext.define('Ext.button.Split', {extend:Ext.button.Button, alternateClassName:'Ext.SplitButton', alias:'widget.splitbutton', isSplitButton:true, arrowCls:'split', split:true, initComponent:function() { + var me = this; + if (Ext.enableAriaButtons && !Ext.slicer && me.menu && (me.arrowHandler || me.hasListeners.hasOwnProperty('arrowclick'))) { + var logFn = Ext.enableAria ? Ext.log.error : Ext.log.warn; + logFn('Using both menu and arrowHandler config options in Split buttons ' + 'leads to confusing user experience and conflicts with accessibility ' + 'best practices. See WAI-ARIA 1.0 Authoring guide: ' + 'http://www.w3.org/TR/wai-aria-practices/#menubutton'); + } + me.callParent(); +}, getTemplateArgs:function() { + var me = this, ariaAttr, data; + data = me.callParent(); + if (me.disabled) { + data.tabIndex = null; + } + ariaAttr = me.ariaArrowElAttributes || {}; + ariaAttr['aria-hidden'] = !!me.hidden; + ariaAttr['aria-disabled'] = !!me.disabled; + if (me.arrowTooltip) { + ariaAttr['aria-label'] = me.arrowTooltip; + } else { + ariaAttr['aria-labelledby'] = me.id; + } + data.arrowElAttributes = ariaAttr; + return data; +}, onRender:function() { + var me = this, el; + me.callParent(); + el = me.getFocusEl(); + if (el) { + el.on({scope:me, focus:me.onMainElFocus, blur:me.onMainElBlur}); + } + el = me.arrowEl; + if (el) { + el.dom.setAttribute('data-componentid', me.id); + el.setVisibilityMode(Ext.dom.Element.DISPLAY); + el.on({scope:me, focus:me.onArrowElFocus, blur:me.onArrowElBlur}); + } +}, setArrowHandler:function(handler, scope) { + this.arrowHandler = handler; + this.scope = scope; +}, onClick:function(e) { + var me = this, arrowKeydown = e.type === 'keydown' && e.target === me.arrowEl.dom; + me.doPreventDefault(e); + if (!me.disabled) { + if (arrowKeydown || me.isWithinTrigger(e)) { + e.preventDefault(); + me.maybeShowMenu(e); + me.fireEvent('arrowclick', me, e); + if (me.arrowHandler) { + me.arrowHandler.call(me.scope || me, me, e); + } + } else { + me.doToggle(); + me.fireHandler(e); + } + } +}, enable:function(silent) { + var me = this, arrowEl = me.arrowEl; + me.callParent([silent]); + if (arrowEl) { + arrowEl.dom.setAttribute('tabIndex', me.tabIndex); + arrowEl.dom.setAttribute('aria-disabled', 'false'); + } +}, disable:function(silent) { + var me = this, arrowEl = me.arrowEl; + me.callParent([silent]); + if (arrowEl) { + arrowEl.dom.removeAttribute('tabIndex'); + arrowEl.dom.setAttribute('aria-disabled', 'true'); + } +}, afterHide:function(cb, scope) { + this.callParent([cb, scope]); + this.arrowEl.dom.setAttribute('aria-hidden', 'true'); +}, afterShow:function(animateTarget, cb, scope) { + this.callParent([animateTarget, cb, scope]); + this.arrowEl.dom.setAttribute('aria-hidden', 'false'); +}, privates:{isFocusing:function(e) { + var me = this, from = e.fromElement, to = e.toElement, focusEl = me.focusEl && me.focusEl.dom, arrowEl = me.arrowEl && me.arrowEl.dom; + if (me.focusable) { + if (to === focusEl) { + return from === arrowEl ? false : true; + } else { + if (to === arrowEl) { + return from === focusEl ? false : true; + } + } + return true; + } + return false; +}, isBlurring:function(e) { + var me = this, from = e.fromElement, to = e.toElement, focusEl = me.focusEl && me.focusEl.dom, arrowEl = me.arrowEl && me.arrowEl.dom; + if (me.focusable) { + if (from === focusEl) { + return to === arrowEl ? false : true; + } else { + if (from === arrowEl) { + return to === focusEl ? false : true; + } + } + return true; + } + return false; +}, getFocusClsEl:Ext.privateFn, onMainElFocus:function(e) { + this.el.addCls(this._focusCls); +}, onMainElBlur:function(e) { + this.el.removeCls(this._focusCls); +}, onArrowElFocus:function(e) { + this.el.addCls(this._arrowFocusCls); +}, onArrowElBlur:function() { + this.el.removeCls(this._arrowFocusCls); +}, setTabIndex:function(newTabIndex) { + this.callParent([newTabIndex]); + if (this.arrowEl) { + this.arrowEl.set({tabIndex:newTabIndex}); + } +}, _addSplitCls:function() { + var arrowEl = this.arrowEl; + this.callParent(); + arrowEl.dom.setAttribute('tabIndex', this.tabIndex); + arrowEl.setVisible(true); +}, _removeSplitCls:function() { + var arrowEl = this.arrowEl; + this.callParent(); + arrowEl.dom.removeAttribute('tabIndex'); + arrowEl.setVisible(false); +}}}); +Ext.define('Ext.panel.Bar', {extend:Ext.container.Container, vertical:false, _verticalSides:{left:1, right:1}, initComponent:function() { + var me = this, vertical = me.vertical; + me.dock = me.dock || (vertical ? 'left' : 'top'); + me.layout = Ext.apply(vertical ? {type:'vbox', align:'middle', alignRoundingMethod:'ceil'} : {type:'hbox', align:'middle', alignRoundingMethod:'floor'}, me.layout); + this.callParent(); +}, onAdded:function(container, pos, instanced) { + this.initOrientation(); + this.callParent([container, pos, instanced]); +}, onRemoved:function(destroying) { + this.removeClsWithUI(this.uiCls); + this.callParent([destroying]); +}, beforeRender:function() { + var me = this; + if (me.forceOrientation || !me.ownerCt) { + me.initOrientation(); + } + me.callParent(); +}, setDock:function(dock) { + var me = this, layout, vertical; + if (dock !== me.dock) { + Ext.suspendLayouts(); + me.clearOrientation(); + me.callParent([dock]); + me.initOrientation(); + vertical = me.vertical; + layout = me.layout; + layout.setVertical(vertical); + layout.setAlignRoundingMethod(vertical ? 'ceil' : 'floor'); + Ext.resumeLayouts(true); + } +}, privates:{clearOrientation:function() { + this.removeClsWithUI([this.vertical ? 'vertical' : 'horizontal', this.getDockName()]); +}, getDockName:function() { + return this.dock; +}, initOrientation:function() { + var me = this, dock = me.dock, vertical = me.vertical = dock ? dock in me._verticalSides : me.vertical; + me.addClsWithUI([vertical ? 'vertical' : 'horizontal', me.getDockName()]); +}}}); +Ext.define('Ext.panel.Title', {extend:Ext.Component, xtype:'title', isTitle:true, noWrap:true, textAlign:'left', iconAlign:'left', rotation:0, text:'\x26#160;', beforeRenderConfig:{textAlign:null, text:null, glyph:null, icon:null, iconAlign:null, iconCls:null, rotation:null}, autoEl:{role:'presentation', unselectable:'on'}, textElRole:'presentation', tabIndex:0, childEls:['textEl', 'iconEl', 'iconWrapEl'], renderTpl:'\x3ctpl if\x3d"iconMarkup \x26\x26 iconBeforeTitle"\x3e{iconMarkup}\x3c/tpl\x3e' + +'\x3cdiv id\x3d"{id}-textEl" data-ref\x3d"textEl"' + ' class\x3d"{textCls} {textCls}-{ui} {itemCls}{childElCls}" unselectable\x3d"on"' + '\x3ctpl if\x3d"textElRole"\x3e role\x3d"{textElRole}"\x3c/tpl\x3e' + '\x3e' + '{text}' + '\x3c/div\x3e' + '\x3ctpl if\x3d"iconMarkup \x26\x26 !iconBeforeTitle"\x3e{iconMarkup}\x3c/tpl\x3e', iconTpl:'\x3cdiv id\x3d"{id}-iconWrapEl" data-ref\x3d"iconWrapEl" role\x3d"presentation" ' + 'class\x3d"{iconWrapCls} {iconWrapCls}-{ui} {iconAlignCls} {itemCls}{childElCls}"' + +'\x3ctpl if\x3d"iconWrapStyle"\x3e style\x3d"{iconWrapStyle}"\x3c/tpl\x3e\x3e' + '\x3cdiv id\x3d"{id}-iconEl" data-ref\x3d"iconEl" role\x3d"presentation" unselectable\x3d"on" ' + 'class\x3d"{baseIconCls} {baseIconCls}-{ui} {iconCls} {glyphCls}" style\x3d"' + '\x3ctpl if\x3d"iconUrl"\x3ebackground-image:url({iconUrl});\x3c/tpl\x3e' + '\x3ctpl if\x3d"glyph \x26\x26 glyphFontFamily"\x3efont-family:{glyphFontFamily};\x3c/tpl\x3e"\x3e' + '\x3ctpl if\x3d"glyph"\x3e\x26#{glyph};\x3c/tpl\x3e' + '\x3c/div\x3e' + +'\x3c/div\x3e', _textAlignClasses:{left:Ext.baseCSSPrefix + 'title-align-left', center:Ext.baseCSSPrefix + 'title-align-center', right:Ext.baseCSSPrefix + 'title-align-right'}, _iconAlignClasses:{top:Ext.baseCSSPrefix + 'title-icon-top', right:Ext.baseCSSPrefix + 'title-icon-right', bottom:Ext.baseCSSPrefix + 'title-icon-bottom', left:Ext.baseCSSPrefix + 'title-icon-left'}, _rotationClasses:{0:Ext.baseCSSPrefix + 'title-rotate-none', 1:Ext.baseCSSPrefix + 'title-rotate-right', 2:Ext.baseCSSPrefix + +'title-rotate-left'}, _rotationAngles:{1:90, 2:270}, baseCls:Ext.baseCSSPrefix + 'title', _titleSuffix:'-title', _glyphCls:Ext.baseCSSPrefix + 'title-glyph', _iconWrapCls:Ext.baseCSSPrefix + 'title-icon-wrap', _baseIconCls:Ext.baseCSSPrefix + 'title-icon', _itemCls:Ext.baseCSSPrefix + 'title-item', _textCls:Ext.baseCSSPrefix + 'title-text', afterComponentLayout:function() { + var me = this, rotation = me.getRotation(), lastBox, lastX, el; + if (rotation && !Ext.isIE8) { + el = me.el; + lastBox = me.lastBox; + lastX = lastBox.x; + el.setStyle(me._getVerticalAdjustDirection(), lastX + (rotation === 1 ? lastBox.width : -lastBox.height) + 'px'); + } + this.callParent(); +}, onRender:function() { + var me = this, rotation = me.getRotation(), el = me.el; + me.callParent(); + if (rotation) { + el.setVertical(me._rotationAngles[rotation]); + } + if (Ext.supports.FixedTableWidthBug) { + el._needsTableWidthFix = true; + } +}, applyText:function(text) { + if (!text) { + text = '\x26#160;'; + } + return text; +}, beforeRender:function() { + var me = this; + me.callParent(); + me.addCls(me._rotationClasses[me.getRotation()]); + me.addCls(me._textAlignClasses[me.getTextAlign()]); +}, getIconMarkup:function() { + return this.getTpl('iconTpl').apply(this.getIconRenderData()); +}, getIconRenderData:function() { + var me = this, icon = me.getIcon(), iconCls = me.getIconCls(), glyph = me.getGlyph(), glyphFontFamily = Ext._glyphFontFamily, iconAlign = me.getIconAlign(), glyphParts; + if (typeof glyph === 'string') { + glyphParts = glyph.split('@'); + glyph = glyphParts[0]; + glyphFontFamily = glyphParts[1]; + } + return {id:me.id, ui:me.ui, itemCls:me._itemCls, iconUrl:icon, iconCls:iconCls, iconWrapCls:me._iconWrapCls, baseIconCls:me._baseIconCls, iconAlignCls:me._iconAlignClasses[iconAlign], glyph:glyph, glyphCls:glyph ? me._glyphCls : '', glyphFontFamily:glyphFontFamily}; +}, initRenderData:function() { + var me = this, iconAlign, renderData; + renderData = Ext.apply({text:me.getText(), textElRole:me.textElRole, id:me.id, ui:me.ui, itemCls:me._itemCls, textCls:me._textCls, iconMarkup:null, iconBeforeTitle:null}, me.callParent()); + if (me._hasIcon()) { + iconAlign = me.getIconAlign(); + renderData.iconMarkup = me.getIconMarkup(); + renderData.iconBeforeTitle = iconAlign === 'top' || iconAlign === 'left'; + } + return renderData; +}, onAdded:function(container, pos, instanced) { + var me = this, suffix = me._titleSuffix, baseCls = container.baseCls; + me.addCls([baseCls + suffix, baseCls + suffix + '-' + container.ui]); + me.callParent([container, pos, instanced]); +}, updateGlyph:function(glyph, oldGlyph) { + glyph = glyph || 0; + var me = this, glyphCls = me._glyphCls, iconEl, fontFamily, glyphParts; + me.glyph = glyph; + if (me.rendered) { + me._syncIconVisibility(); + iconEl = me.iconEl; + if (typeof glyph === 'string') { + glyphParts = glyph.split('@'); + glyph = glyphParts[0]; + fontFamily = glyphParts[1] || Ext._glyphFontFamily; + } + if (!glyph) { + iconEl.dom.innerHTML = ''; + iconEl.removeCls(glyphCls); + } else { + if (oldGlyph !== glyph) { + iconEl.dom.innerHTML = '\x26#' + glyph + ';'; + iconEl.addCls(glyphCls); + } + } + if (fontFamily) { + iconEl.setStyle('font-family', fontFamily); + } + if (me._didIconStateChange(oldGlyph, glyph)) { + me.updateLayout(); + } + } +}, updateIcon:function(icon, oldIcon) { + icon = icon || ''; + var me = this, iconEl; + if (me.rendered && icon !== oldIcon) { + me._syncIconVisibility(); + iconEl = me.iconEl; + iconEl.setStyle('background-image', icon ? 'url(' + icon + ')' : ''); + if (me._didIconStateChange(oldIcon, icon)) { + me.updateLayout(); + } + } +}, updateIconAlign:function(align, oldAlign) { + var me = this, iconWrapEl = me.iconWrapEl, el, iconAlignClasses; + if (me.iconWrapEl) { + el = me.el; + iconAlignClasses = me._iconAlignClasses; + if (oldAlign) { + iconWrapEl.removeCls(iconAlignClasses[oldAlign]); + } + iconWrapEl.addCls(iconAlignClasses[align]); + if (align === 'top' || align === 'left') { + el.insertFirst(iconWrapEl); + } else { + el.appendChild(iconWrapEl); + } + me.updateLayout(); + } +}, updateIconCls:function(cls, oldCls) { + cls = cls || ''; + var me = this, iconEl; + if (me.rendered && oldCls !== cls) { + me._syncIconVisibility(); + iconEl = me.iconEl; + if (oldCls) { + iconEl.removeCls(oldCls); + } + iconEl.addCls(cls); + if (me._didIconStateChange(oldCls, cls)) { + me.updateLayout(); + } + } +}, updateRotation:function(rotation, oldRotation) { + var me = this, el, rotationClasses; + if (me.rendered) { + el = me.el; + rotationClasses = me._rotationClasses; + me.removeCls(rotationClasses[oldRotation]); + me.addCls(rotationClasses[rotation]); + el.setHorizontal(); + if (rotation) { + el.setVertical(me._rotationAngles[rotation]); + } + el.setStyle({right:'', left:'', top:'', height:'', width:''}); + me.lastBox = null; + me.updateLayout(); + } +}, updateText:function(text) { + if (this.rendered) { + this.textEl.setHtml(text); + this.updateLayout(); + } +}, updateTextAlign:function(align, oldAlign) { + var me = this, textAlignClasses = me._textAlignClasses; + if (me.rendered) { + if (oldAlign) { + me.removeCls(textAlignClasses[oldAlign]); + } + me.addCls(textAlignClasses[align]); + me.updateLayout(); + } +}, privates:{_getVerticalAdjustDirection:function() { + return 'left'; +}, _didIconStateChange:function(old, current) { + var currentEmpty = Ext.isEmpty(current); + return Ext.isEmpty(old) ? !currentEmpty : currentEmpty; +}, _hasIcon:function() { + return !!(this.getIcon() || this.getIconCls() || this.getGlyph()); +}, _syncIconVisibility:function() { + var me = this, el = me.el, hasIcon = me._hasIcon(), iconWrapEl = me.iconWrapEl, isBefore, iconAlign; + if (hasIcon && !iconWrapEl) { + iconAlign = me.iconAlign; + isBefore = iconAlign === 'left' || iconAlign === 'top'; + el.dom.insertAdjacentHTML(isBefore ? 'afterbegin' : 'beforeend', me.getIconMarkup()); + iconWrapEl = me.iconWrapEl = el[isBefore ? 'first' : 'last'](); + me.iconEl = iconWrapEl.first(); + } + if (iconWrapEl) { + iconWrapEl.setDisplayed(hasIcon); + } +}}}); +Ext.define('Ext.panel.Tool', {extend:Ext.Component, xtype:'tool', isTool:true, baseCls:Ext.baseCSSPrefix + 'tool', disabledCls:Ext.baseCSSPrefix + 'tool-disabled', toolPressedCls:Ext.baseCSSPrefix + 'tool-pressed', toolOverCls:Ext.baseCSSPrefix + 'tool-over', childEls:['toolEl'], renderTpl:['\x3cdiv id\x3d"{id}-toolEl" data-ref\x3d"toolEl" class\x3d"{baseCls}-img {baseCls}-{type}' + '{childElCls}" role\x3d"presentation"\x3e\x3c/div\x3e'], toolOwner:null, tooltipType:'qtip', stopEvent:true, ariaRole:'button', +focusable:true, tabIndex:0, keyHandlers:{SPACE:'onClick', ENTER:'onClick'}, cacheHeight:true, cacheWidth:true, _toolTypes:{close:1, collapse:1, down:1, expand:1, gear:1, help:1, left:1, maximize:1, minimize:1, minus:1, next:1, pin:1, plus:1, prev:1, print:1, refresh:1, restore:1, right:1, save:1, search:1, toggle:1, unpin:1, up:1}, initComponent:function() { + var me = this; + if (me.id && me._toolTypes[me.id]) { + Ext.raise('When specifying a tool you should use the type option, the id can conflict now that tool is a Component'); + } + me.type = me.type || me.id; + Ext.applyIf(me.renderData, {baseCls:me.baseCls, type:me.type}); + me.tooltip = me.tooltip || me.qtip; + me.callParent(); +}, afterRender:function() { + var me = this, tip; + me.callParent(arguments); + me.el.on({click:me.onClick, mousedown:me.onMouseDown, mouseover:me.onMouseOver, mouseout:me.onMouseOut, scope:me}); + tip = me.tooltip; + if (tip) { + me.setTooltip(tip); + } +}, tipAttrs:{qtip:'data-qtip'}, setTooltip:function(tooltip, type) { + var me = this, oldTip = me.tooltip, oldType = me.tooltipType, id = me.id, el = me.el, attr; + if (oldTip && Ext.quickTipsActive && Ext.isObject(oldTip)) { + Ext.tip.QuickTipManager.unregister(id); + } + me.tooltip = tooltip; + if (type) { + me.tooltipType = type; + } + if (tooltip) { + if (Ext.quickTipsActive && Ext.isObject(tooltip)) { + Ext.tip.QuickTipManager.register(Ext.apply({target:id}, tooltip)); + } else { + if (el) { + if (type && oldType && type !== oldType) { + attr = me.tipAttrs[oldType] || 'title'; + el.dom.removeAttribute(attr); + } + attr = me.tipAttrs[type || oldType] || 'title'; + el.dom.setAttribute(attr, tooltip); + } + } + if (attr !== 'title' && me.ariaRole && me.ariaRole !== 'presentation') { + if (el) { + el.dom.setAttribute('aria-label', tooltip); + } else { + me.ariaRenderAttributes = me.ariaRenderAttributes || {}; + me.ariaRenderAttributes['aria-label'] = tooltip; + } + } + } +}, setType:function(type) { + var me = this, oldType = me.type; + me.type = type; + if (me.rendered) { + if (oldType) { + me.toolEl.removeCls(me.baseCls + '-' + oldType); + } + me.toolEl.addCls(me.baseCls + '-' + type); + } else { + me.renderData.type = type; + } + return me; +}, onDestroy:function() { + var me = this, keyMap = me.keyMap; + me.setTooltip(null); + delete me.toolOwner; + me.callParent(); +}, privates:{onClick:function(e, target) { + var me = this; + if (me.disabled) { + return false; + } + if (e.type !== 'keydown') { + me.el.removeCls(me.toolPressedCls + ' ' + me.toolOverCls); + } + if (me.stopEvent !== false) { + e.stopEvent(); + } + if (me.handler) { + Ext.callback(me.handler, me.scope, [e, target, me.ownerCt, me], 0, me); + } else { + if (me.callback) { + Ext.callback(me.callback, me.scope, [me.toolOwner || me.ownerCt, me, e], 0, me); + } + } + me.fireEvent('click', me, e, me.toolOwner || me.ownerCt); + return true; +}, onMouseDown:function(e) { + e.preventDefault(); + if (this.disabled) { + return false; + } + this.el.addCls(this.toolPressedCls); +}, onMouseOver:function() { + if (this.disabled) { + return false; + } + this.el.addCls(this.toolOverCls); +}, onMouseOut:function() { + this.el.removeCls(this.toolOverCls); +}}}); +Ext.define('Ext.util.KeyMap', {alternateClassName:'Ext.KeyMap', eventName:'keydown', constructor:function(config) { + var me = this; + if (arguments.length !== 1 || typeof config === 'string' || config.dom || config.tagName || config === document || config.isComponent) { + me.legacyConstructor.apply(me, arguments); + return; + } + Ext.apply(me, config); + me.bindings = []; + if (!me.target.isComponent) { + me.target = Ext.get(me.target); + } + if (me.binding) { + me.addBinding(me.binding); + } else { + if (config.key) { + me.addBinding(config); + } + } + me.enable(); +}, legacyConstructor:function(el, binding, eventName) { + var me = this; + Ext.apply(me, {target:Ext.get(el), eventName:eventName || me.eventName, bindings:[]}); + if (binding) { + me.addBinding(binding); + } + me.enable(); +}, addBinding:function(binding) { + var me = this, keyCode = binding.key, i, len; + if (me.processing) { + me.bindings = me.bindings.slice(0); + } + if (Ext.isArray(binding)) { + for (i = 0, len = binding.length; i < len; i++) { + me.addBinding(binding[i]); + } + return; + } + me.bindings.push(Ext.apply({keyCode:me.processKeys(keyCode)}, binding)); +}, removeBinding:function(binding) { + var me = this, bindings = me.bindings, len = bindings.length, i, item, keys; + if (me.processing) { + me.bindings = bindings.slice(0); + } + keys = me.processKeys(binding.key); + for (i = 0; i < len; ++i) { + item = bindings[i]; + if ((item.fn || item.handler) === (binding.fn || binding.handler) && item.scope === binding.scope) { + if (binding.alt === item.alt && binding.crtl === item.crtl && binding.shift === item.shift) { + if (Ext.Array.equals(item.keyCode, keys)) { + Ext.Array.erase(me.bindings, i, 1); + return; + } + } + } + } +}, processKeys:function(keyCode) { + var processed = false, key, keys, keyString, len, i; + if (keyCode.test) { + return keyCode; + } + if (Ext.isString(keyCode)) { + keys = []; + keyString = keyCode.toUpperCase(); + for (i = 0, len = keyString.length; i < len; ++i) { + keys.push(keyString.charCodeAt(i)); + } + keyCode = keys; + processed = true; + } + if (!Ext.isArray(keyCode)) { + keyCode = [keyCode]; + } + if (!processed) { + for (i = 0, len = keyCode.length; i < len; ++i) { + key = keyCode[i]; + if (Ext.isString(key)) { + keyCode[i] = key.toUpperCase().charCodeAt(0); + } + } + } + return keyCode; +}, handleTargetEvent:function(event) { + var me = this, bindings, i, len, result; + if (me.enabled) { + bindings = me.bindings; + i = 0; + len = bindings.length; + event = me.processEvent.apply(me.processEventScope || me, arguments); + if (event) { + me.lastKeyEvent = event; + if (me.ignoreInputFields && Ext.fly(event.target).isInputField()) { + return; + } + if (!event.getKey) { + return event; + } + me.processing = true; + for (; i < len; ++i) { + result = me.processBinding(bindings[i], event); + if (result === false) { + me.processing = false; + return result; + } + } + me.processing = false; + } + } +}, processEvent:Ext.identityFn, processBinding:function(binding, event) { + if (this.checkModifiers(binding, event)) { + var key = event.getKey(), handler = binding.fn || binding.handler, scope = binding.scope || this, keyCode = binding.keyCode, defaultEventAction = binding.defaultEventAction, i, len, result; + if (keyCode.test) { + if (keyCode.test(String.fromCharCode(event.getCharCode()))) { + result = handler.call(scope, key, event); + if (result !== true && defaultEventAction) { + event[defaultEventAction](); + } + if (result === false) { + return result; + } + } + } else { + if (keyCode.length) { + for (i = 0, len = keyCode.length; i < len; ++i) { + if (key === keyCode[i]) { + result = handler.call(scope, key, event); + if (result !== true && defaultEventAction) { + event[defaultEventAction](); + } + if (result === false) { + return result; + } + break; + } + } + } + } + } +}, checkModifiers:function(binding, event) { + var keys = ['shift', 'ctrl', 'alt'], i = 0, len = keys.length, val, key; + for (; i < len; ++i) { + key = keys[i]; + val = binding[key]; + if (!(val === undefined || val === event[key + 'Key'])) { + return false; + } + } + return true; +}, on:function(key, fn, scope) { + var keyCode, shift, ctrl, alt; + if (Ext.isObject(key) && !Ext.isArray(key)) { + keyCode = key.key; + shift = key.shift; + ctrl = key.ctrl; + alt = key.alt; + } else { + keyCode = key; + } + this.addBinding({key:keyCode, shift:shift, ctrl:ctrl, alt:alt, fn:fn, scope:scope}); +}, un:function(key, fn, scope) { + var keyCode, shift, ctrl, alt; + if (Ext.isObject(key) && !Ext.isArray(key)) { + keyCode = key.key; + shift = key.shift; + ctrl = key.ctrl; + alt = key.alt; + } else { + keyCode = key; + } + this.removeBinding({key:keyCode, shift:shift, ctrl:ctrl, alt:alt, fn:fn, scope:scope}); +}, isEnabled:function() { + return this.enabled; +}, enable:function() { + var me = this; + if (!me.enabled) { + me.target.on(me.eventName, me.handleTargetEvent, me, {capture:me.capture, priority:me.priority}); + me.enabled = true; + } +}, disable:function() { + var me = this; + if (me.enabled) { + me.target.removeListener(me.eventName, me.handleTargetEvent, me); + me.enabled = false; + } +}, setDisabled:function(disabled) { + if (disabled) { + this.disable(); + } else { + this.enable(); + } +}, destroy:function(removeTarget) { + var me = this, target = me.target; + me.bindings = []; + me.disable(); + if (removeTarget) { + target.destroy(); + } + delete me.target; + me.callParent(); +}}); +Ext.define('Ext.util.KeyNav', {alternateClassName:'Ext.KeyNav', disabled:false, defaultEventAction:false, forceKeyDown:false, eventName:'keypress', statics:{keyOptions:{left:37, right:39, up:38, down:40, space:32, pageUp:33, pageDown:34, del:46, backspace:8, home:36, end:35, enter:13, esc:27, tab:9}}, constructor:function(config) { + var me = this; + if (arguments.length === 2) { + me.legacyConstructor.apply(me, arguments); + return; + } + me.doConstruction(config); +}, legacyConstructor:function(el, config) { + this.doConstruction(Ext.apply({target:el}, config)); +}, doConstruction:function(config) { + var me = this, keymapCfg = {target:config.target, ignoreInputFields:config.ignoreInputFields, eventName:me.getKeyEvent('forceKeyDown' in config ? config.forceKeyDown : me.forceKeyDown, config.eventName), capture:config.capture}, map; + if (me.map) { + me.map.destroy(); + } + me.initConfig(config); + if (config.processEvent) { + keymapCfg.processEvent = config.processEvent; + keymapCfg.processEventScope = config.processEventScope || me; + } + if (config.priority) { + keymapCfg.priority = config.priority; + } + if (config.keyMap) { + map = me.map = config.keyMap; + } else { + map = me.map = new Ext.util.KeyMap(keymapCfg); + me.destroyKeyMap = true; + } + this.addBindings(config); + map.disable(); + if (!config.disabled) { + map.enable(); + } +}, addBindings:function(bindings) { + var me = this, keyName, binding, map = me.map, keyCodes = Ext.util.KeyNav.keyOptions, keyCode, defaultScope = bindings.scope || me; + for (keyName in bindings) { + binding = bindings[keyName]; + keyCode = keyCodes[keyName]; + if (keyCode != null) { + keyName = keyCode; + } + if (binding && (keyName.length === 1 || !isNaN(keyName = parseInt(keyName, 10)))) { + if (typeof binding === 'function') { + binding = {handler:binding, defaultEventAction:bindings.defaultEventAction !== undefined ? bindings.defaultEventAction : me.defaultEventAction}; + } + map.addBinding({key:keyName, ctrl:binding.ctrl, shift:binding.shift, alt:binding.alt, handler:Ext.Function.bind(me.handleEvent, binding.scope || defaultScope, [binding.handler || binding.fn, me], true), defaultEventAction:binding.defaultEventAction !== undefined ? binding.defaultEventAction : me.defaultEventAction}); + } + } +}, handleEvent:function(keyCode, event, handler, keyNav) { + keyNav.lastKeyEvent = event; + return handler.call(this, event); +}, destroy:function(removeEl) { + var me = this; + if (me.destroyKeyMap) { + me.map.destroy(removeEl); + } + delete me.map; + me.callParent(); +}, enable:function() { + if (this.map) { + this.map.enable(); + this.disabled = false; + } +}, disable:function() { + if (this.map) { + this.map.disable(); + } + this.disabled = true; +}, setDisabled:function(disabled) { + this.map.setDisabled(disabled); + this.disabled = disabled; +}, getKeyEvent:function(forceKeyDown, configuredEventName) { + if (forceKeyDown || Ext.supports.SpecialKeyDownRepeat && !configuredEventName) { + return 'keydown'; + } else { + return configuredEventName || this.eventName; + } +}}); +Ext.define('Ext.util.FocusableContainer', {extend:Ext.Mixin, mixinConfig:{id:'focusablecontainer', before:{onAdd:'onFocusableChildAdd', onRemove:'onFocusableChildRemove', destroy:'destroyFocusableContainer', onFocusEnter:'onFocusEnter'}, after:{afterRender:'initFocusableContainer', onFocusLeave:'onFocusLeave', afterShow:'activateFocusableContainerEl'}}, isFocusableContainer:true, enableFocusableContainer:true, activeChildTabIndex:0, inactiveChildTabIndex:-1, privates:{initFocusableContainer:function(clearChildren) { + var items, i, len; + if (this.enableFocusableContainer) { + clearChildren = clearChildren != null ? clearChildren : true; + this.doInitFocusableContainer(clearChildren); + } else { + items = this.getFocusables(); + for (i = 0, len = items.length; i < len; i++) { + items[i].focusableContainer = null; + } + } +}, doInitFocusableContainer:function(clearChildren) { + var me = this, el, child; + el = me.getFocusableContainerEl(); + if (clearChildren) { + me.clearFocusables(); + } + child = me.findNextFocusableChild({step:1, beforeRender:true}); + if (child) { + me.activateFocusableContainerEl(el); + } + me.focusableContainerMouseListener = me.mon(el, 'mousedown', me.onFocusableContainerMousedown, me); + me.focusableKeyNav = me.createFocusableContainerKeyNav(el); +}, createFocusableContainerKeyNav:function(el) { + var me = this; + return new Ext.util.KeyNav(el, {eventName:'keydown', ignoreInputFields:true, scope:me, tab:me.onFocusableContainerTabKey, enter:me.onFocusableContainerEnterKey, space:me.onFocusableContainerSpaceKey, up:me.onFocusableContainerUpKey, down:me.onFocusableContainerDownKey, left:me.onFocusableContainerLeftKey, right:me.onFocusableContainerRightKey}); +}, destroyFocusableContainer:function() { + if (this.enableFocusableContainer) { + this.doDestroyFocusableContainer(); + } +}, doDestroyFocusableContainer:function() { + var me = this; + if (me.keyNav) { + me.keyNav.destroy(); + } + if (me.focusableContainerMouseListener) { + me.focusableContainerMouseListener.destroy(); + } + me.focusableKeyNav = me.focusableContainerMouseListener = null; +}, getFocusables:function() { + return this.items.items; +}, initDefaultFocusable:function(beforeRender) { + var me = this, activeIndex = me.activeChildTabIndex, haveFocusable = false, items, item, i, len, tabIdx; + items = me.getFocusables(); + len = items.length; + if (!len) { + return; + } + for (i = 0; i < len; i++) { + item = items[i]; + if (item.focusable && !item.disabled) { + haveFocusable = true; + tabIdx = item.getTabIndex(); + if (tabIdx != null && tabIdx >= activeIndex) { + return item; + } + } + } + if (!haveFocusable) { + return; + } + item = me.findNextFocusableChild({beforeRender:beforeRender, items:items, step:true}); + if (item) { + me.activateFocusable(item); + } + return item; +}, clearFocusables:function() { + var me = this, items = me.getFocusables(), len = items.length, item, i; + for (i = 0; i < len; i++) { + item = items[i]; + if (item.focusable && !item.disabled) { + me.deactivateFocusable(item); + } + } +}, activateFocusable:function(child, newTabIndex) { + var activeIndex = newTabIndex != null ? newTabIndex : this.activeChildTabIndex; + child.setTabIndex(activeIndex); +}, deactivateFocusable:function(child, newTabIndex) { + var inactiveIndex = newTabIndex != null ? newTabIndex : this.inactiveChildTabIndex; + child.setTabIndex(inactiveIndex); +}, onFocusableContainerTabKey:function() { + return true; +}, onFocusableContainerEnterKey:function() { + return true; +}, onFocusableContainerSpaceKey:function() { + return true; +}, onFocusableContainerUpKey:function(e) { + e.preventDefault(); + return this.moveChildFocus(e, false); +}, onFocusableContainerDownKey:function(e) { + e.preventDefault(); + return this.moveChildFocus(e, true); +}, onFocusableContainerLeftKey:function(e) { + e.preventDefault(); + return this.moveChildFocus(e, false); +}, onFocusableContainerRightKey:function(e) { + e.preventDefault(); + return this.moveChildFocus(e, true); +}, getFocusableFromEvent:function(e) { + var child = Ext.Component.fromElement(e.getTarget()); + if (!child) { + Ext.raise('No focusable child found for keyboard event!'); + } + return child; +}, moveChildFocus:function(e, forward) { + var child = this.getFocusableFromEvent(e); + return this.focusChild(child, forward, e); +}, focusChild:function(child, forward) { + var nextChild = this.findNextFocusableChild({child:child, step:forward}); + if (nextChild) { + nextChild.focus(); + } + return nextChild; +}, findNextFocusableChild:function(options) { + var beforeRender = options.beforeRender, items, item, child, step, idx, i, len; + items = options.items || this.getFocusables(); + step = options.step != null ? options.step : 1; + child = options.child; + idx = Ext.Array.indexOf(items, child); + step = step === true ? 1 : step === false ? -1 : step; + len = items.length; + i = step > 0 ? idx < len ? idx + step : 0 : idx > 0 ? idx + step : len - 1; + for (;; i += step) { + if (idx < 0 && (i >= len || i < 0)) { + return null; + } else { + if (i >= len) { + i = -1; + continue; + } else { + if (i < 0) { + i = len; + continue; + } else { + if (i === idx) { + return null; + } + } + } + } + item = items[i]; + if (!item || !item.focusable || item.disabled) { + continue; + } + if (beforeRender || item.isFocusable && item.isFocusable()) { + return item; + } + } + return null; +}, getFocusableContainerEl:function() { + return this.el; +}, onFocusableChildAdd:function(child) { + if (this.enableFocusableContainer) { + return this.doFocusableChildAdd(child); + } +}, activateFocusableContainerEl:function(el) { + el = el || this.getFocusableContainerEl(); + if (el) { + el.set({tabIndex:this.activeChildTabIndex}); + } +}, deactivateFocusableContainerEl:function(el) { + el = el || this.getFocusableContainerEl(); + if (el) { + el.set({tabIndex:undefined}); + } +}, isFocusableContainerActive:function() { + var me = this, isActive = false, el, child, focusEl; + el = me.getFocusableContainerEl(); + if (el && el.isTabbable && el.isTabbable()) { + isActive = true; + } else { + child = me.lastFocusedChild; + focusEl = child && child.getFocusEl && child.getFocusEl(); + if (focusEl && focusEl.isTabbable && focusEl.isTabbable()) { + isActive = true; + } + } + return isActive; +}, doFocusableChildAdd:function(child) { + if (child.focusable) { + child.focusableContainer = this; + } +}, onFocusableChildRemove:function(child) { + if (this.enableFocusableContainer) { + return this.doFocusableChildRemove(child); + } + child.focusableContainer = null; +}, doFocusableChildRemove:function(child) { + if (child === this.lastFocusedChild) { + this.lastFocusedChild = null; + this.activateFocusableContainerEl(); + } +}, onFocusableContainerMousedown:function(e, target) { + var targetCmp = Ext.Component.fromElement(target); + this.mousedownTimestamp = targetCmp === this ? Ext.Date.now() : 0; + if (targetCmp === this) { + e.preventDefault(); + } +}, onFocusEnter:function(e) { + var me = this, target = e.toComponent, mousedownTimestamp = me.mousedownTimestamp, epsilon = 50, child; + if (!me.enableFocusableContainer) { + return null; + } + me.mousedownTimestamp = 0; + if (target === me) { + if (!mousedownTimestamp || Ext.Date.now() - mousedownTimestamp > epsilon) { + child = me.initDefaultFocusable(); + if (child) { + me.deactivateFocusableContainerEl(); + child.focus(); + } + } + } else { + me.deactivateFocusableContainerEl(); + } + return target; +}, onFocusLeave:function(e) { + var me = this, lastFocused = me.lastFocusedChild; + if (!me.enableFocusableContainer) { + return; + } + if (!me.destroyed && !me.destroying) { + me.clearFocusables(); + if (lastFocused && !lastFocused.disabled) { + me.activateFocusable(lastFocused); + } else { + me.activateFocusableContainerEl(); + } + } +}, beforeFocusableChildBlur:Ext.privateFn, afterFocusableChildBlur:Ext.privateFn, beforeFocusableChildFocus:function(child) { + var me = this; + if (!me.enableFocusableContainer) { + return; + } + me.clearFocusables(); + me.activateFocusable(child); + if (child.needArrowKeys) { + me.guardFocusableChild(child); + } +}, guardFocusableChild:function(child) { + var me = this, index = me.activeChildTabIndex, guard; + guard = me.findNextFocusableChild({child:child, step:-1}); + if (guard) { + guard.setTabIndex(index); + } + guard = me.findNextFocusableChild({child:child, step:1}); + if (guard) { + guard.setTabIndex(index); + } +}, afterFocusableChildFocus:function(child) { + if (!this.enableFocusableContainer) { + return; + } + this.lastFocusedChild = child; +}, beforeFocusableChildEnable:Ext.privateFn, onFocusableChildEnable:function(child) { + var me = this; + if (!me.enableFocusableContainer) { + return; + } + if (child !== me.lastFocusedChild) { + me.deactivateFocusable(child); + if (!me.isFocusableContainerActive()) { + me.activateFocusableContainerEl(); + } + } +}, beforeFocusableChildDisable:function(child) { + var me = this, nextTarget; + if (!me.enableFocusableContainer || me.destroying || me.destroyed) { + return; + } + if (child.hasFocus) { + nextTarget = me.findNextFocusableChild({child:child}) || child.findFocusTarget(); + if (nextTarget) { + nextTarget.focus(); + } + } +}, onFocusableChildDisable:function(child) { + var me = this, lastFocused = me.lastFocusedChild, firstFocusableChild; + if (!me.enableFocusableContainer || me.destroying || me.destroyed) { + return; + } + if (child === lastFocused) { + me.activateFocusableContainerEl(); + } + firstFocusableChild = me.findNextFocusableChild({step:1}); + if (!firstFocusableChild) { + me.deactivateFocusableContainerEl(); + } +}, onFocusableChildShow:Ext.privateFn, onFocusableChildHide:Ext.privateFn, onFocusableChildMasked:Ext.privateFn, onFocusableChildDestroy:Ext.privateFn, onFocusableChildUpdate:Ext.privateFn}}); +Ext.define('Ext.panel.Header', {extend:Ext.panel.Bar, xtype:'header', mixins:[Ext.util.FocusableContainer], isHeader:true, defaultType:'tool', indicateDrag:false, weight:-1, shrinkWrap:3, iconAlign:'left', titleAlign:'left', titlePosition:0, titleRotation:'default', autoEl:{role:'presentation'}, beforeRenderConfig:{glyph:null, icon:null, iconCls:null, iconAlign:null, title:{$value:{xtype:'title', flex:1}, merge:function(newValue, oldValue) { + if (typeof newValue !== 'object') { + newValue = {text:newValue}; + } + return Ext.merge(oldValue ? Ext.Object.chain(oldValue) : {}, newValue); +}}, titleAlign:null, titlePosition:null, titleRotation:null}, headerCls:Ext.baseCSSPrefix + 'header', initComponent:function() { + var me = this, items = me.items, itemPosition = me.itemPosition, cls = [me.headerCls]; + me.tools = me.tools || []; + me.items = items = items ? items.slice() : []; + if (itemPosition !== undefined) { + me._userItems = items.slice(); + me.items = items = []; + } + me.indicateDragCls = me.headerCls + '-draggable'; + if (me.indicateDrag) { + cls.push(me.indicateDragCls); + } + me.addCls(cls); + me.syncNoBorderCls(); + me.enableFocusableContainer = !me.isAccordionHeader && me.tools.length > 0; + if (me.enableFocusableContainer) { + me.ariaRole = 'toolbar'; + } + Ext.Array.push(items, me.tools); + me.tools.length = 0; + me.callParent(); + me.on({dblclick:me.onDblClick, click:me.onClick, element:'el', scope:me}); +}, addTool:function(tool) { + var me = this; + me.add(Ext.ComponentManager.create(tool, 'tool')); + if (!me.isAccordionHeader && me.tools.length > 0 && !me.enableFocusableContainer) { + me.enableFocusableContainer = true; + me.ariaRole = 'toolbar'; + if (me.rendered) { + me.ariaEl.dom.setAttribute('role', 'toolbar'); + me.initFocusableContainer(true); + } + } +}, afterLayout:function() { + var me = this, frameBR, frameTR, frameTL, xPos; + if (me.vertical) { + frameTR = me.frameTR; + if (frameTR) { + frameBR = me.frameBR; + frameTL = me.frameTL; + xPos = me.getWidth() - frameTR.getPadding('r') - (frameTL ? frameTL.getPadding('l') : me.el.getBorderWidth('l')) + 'px'; + frameBR.setStyle('background-position-x', xPos); + frameTR.setStyle('background-position-x', xPos); + } + } + this.callParent(); +}, applyTitle:function(title, oldTitle) { + var me = this, isString, configHasRotation; + title = title || ''; + isString = typeof title === 'string'; + if (isString) { + title = {text:title}; + } + if (oldTitle) { + Ext.suspendLayouts(); + oldTitle.setConfig(title); + Ext.resumeLayouts(true); + title = oldTitle; + } else { + if (isString) { + title.xtype = 'title'; + } + title.ui = me.ui; + configHasRotation = 'rotation' in title; + title.id = me.id + '-title'; + if (me.isAccordionHeader) { + title.ariaRole = 'tab'; + title.textElRole = null; + title.focusable = true; + } + title = Ext.create(title); + if (!configHasRotation && me.vertical && me.titleRotation === 'default') { + title.rotation = 1; + } + } + return title; +}, applyTitlePosition:function(position) { + var max = this.items.getCount(); + if (this._titleInItems) { + --max; + } + return Math.max(Math.min(position, max), 0); +}, beforeLayout:function() { + this.callParent(); + this.syncBeforeAfterTitleClasses(); +}, beforeRender:function() { + var me = this, itemPosition = me.itemPosition; + me.protoEl.unselectable(); + me.callParent(); + if (itemPosition !== undefined) { + me.insert(itemPosition, me._userItems); + } +}, getTools:function() { + return this.tools.slice(); +}, onAdd:function(component, index) { + var tools = this.tools; + this.callParent([component, index]); + if (component.isTool) { + tools.push(component); + tools[component.type] = component; + } +}, onAdded:function(container, pos, instanced) { + this.syncNoBorderCls(); + this.callParent([container, pos, instanced]); +}, onRemoved:function(container, pos, instanced) { + this.syncNoBorderCls(); + this.callParent([container, pos, instanced]); +}, setDock:function(dock) { + var me = this, title = me.getTitle(), rotation = me.getTitleRotation(), titleRotation = title.getRotation(); + Ext.suspendLayouts(); + me.callParent([dock]); + if (rotation === 'default') { + rotation = me.vertical ? 1 : 0; + if (rotation !== titleRotation) { + title.setRotation(rotation); + } + if (me.rendered) { + me.resetItemMargins(); + } + } + Ext.resumeLayouts(true); +}, updateGlyph:function(glyph) { + this.getTitle().setGlyph(glyph); +}, updateIcon:function(icon) { + this.getTitle().setIcon(icon); +}, updateIconAlign:function(align, oldAlign) { + this.getTitle().setIconAlign(align); +}, updateIconCls:function(cls) { + this.getTitle().setIconCls(cls); +}, updateTitle:function(title, oldTitle) { + if (!oldTitle) { + this.insert(this.getTitlePosition(), title); + this._titleInItems = true; + } + this.titleCmp = title; +}, updateTitleAlign:function(align, oldAlign) { + this.getTitle().setTextAlign(align); +}, updateTitlePosition:function(position) { + this.insert(position, this.getTitle()); +}, updateTitleRotation:function(rotation) { + if (rotation === 'default') { + rotation = this.vertical ? 1 : 0; + } + this.getTitle().setRotation(rotation); +}, privates:{fireClickEvent:function(type, e) { + var toolCls = '.' + Ext.panel.Tool.prototype.baseCls; + if (!e.getTarget(toolCls)) { + this.fireEvent(type, this, e); + } +}, getFramingInfoCls:function() { + var me = this, cls = me.callParent(), owner = me.ownerCt; + if (!me.expanding && owner && (owner.collapsed || me.isCollapsedExpander)) { + cls += '-' + owner.collapsedCls; + } + return cls + '-' + me.dock; +}, onClick:function(e) { + this.fireClickEvent('click', e); +}, onDblClick:function(e) { + this.fireClickEvent('dblclick', e); +}, onFocusableContainerMousedown:function(e, target) { + var targetCmp = Ext.Component.fromElement(target); + if (targetCmp === this) { + e.preventDefault(); + } else { + this.mixins.focusablecontainer.onFocusableContainerMousedown.apply(this, arguments); + } +}, syncBeforeAfterTitleClasses:function(force) { + var me = this, items = me.items, childItems = items.items, titlePosition = me.getTitlePosition(), itemCount = childItems.length, itemGeneration = items.generation, syncGen = me.syncBeforeAfterGen, afterCls, beforeCls, i, item; + if (!force && syncGen === itemGeneration) { + return; + } + me.syncBeforeAfterGen = itemGeneration; + for (i = 0; i < itemCount; ++i) { + item = childItems[i]; + afterCls = item.afterTitleCls || (item.afterTitleCls = item.baseCls + '-after-title'); + beforeCls = item.beforeTitleCls || (item.beforeTitleCls = item.baseCls + '-before-title'); + if (!me.title || i < titlePosition) { + if (syncGen) { + item.removeCls(afterCls); + } + item.addCls(beforeCls); + } else { + if (i > titlePosition) { + if (syncGen) { + item.removeCls(beforeCls); + } + item.addCls(afterCls); + } + } + } +}, syncNoBorderCls:function() { + var me = this, ownerCt = this.ownerCt, noBorderCls = me.headerCls + '-noborder'; + if (ownerCt ? ownerCt.border === false && !ownerCt.frame : me.border === false) { + me.addCls(noBorderCls); + } else { + me.removeCls(noBorderCls); + } +}}}); +Ext.define('Ext.layout.container.boxOverflow.None', {alternateClassName:'Ext.layout.boxOverflow.None', alias:['box.overflow.none', 'box.overflow.None'], mixins:[Ext.mixin.Factoryable], factoryConfig:{defaultType:'none'}, isBoxOverflowHandler:true, $configPrefixed:false, $configStrict:false, constructor:function(config) { + this.initConfig(config); +}, handleOverflow:Ext.emptyFn, clearOverflow:Ext.emptyFn, beginLayout:Ext.emptyFn, beginLayoutCycle:Ext.emptyFn, calculate:function(ownerContext) { + var me = this, plan = ownerContext.state.boxPlan, overflow; + if (plan && plan.tooNarrow) { + overflow = me.handleOverflow(ownerContext); + if (overflow) { + if (overflow.reservedSpace) { + me.layout.publishInnerCtSize(ownerContext, overflow.reservedSpace); + } + } + } else { + me.clearOverflow(); + } +}, completeLayout:Ext.emptyFn, finishedLayout:function(ownerContext) { + var me = this, owner = me.layout.owner, hiddens, hiddenCount; + if (owner.hasListeners.overflowchange) { + hiddens = owner.query('\x3e[hidden]'); + hiddenCount = hiddens.length; + if (hiddenCount !== me.lastHiddenCount) { + owner.fireEvent('overflowchange', me.lastHiddenCount, hiddenCount, hiddens); + me.lastHiddenCount = hiddenCount; + } + } +}, onRemove:Ext.emptyFn, getItem:function(item) { + return this.layout.owner.getComponent(item); +}, getOwnerType:function(owner) { + var type; + if (owner.isToolbar) { + type = 'toolbar'; + } else { + if (owner.isTabBar) { + type = 'tab-bar'; + } else { + if (owner.isMenu) { + type = 'menu'; + } else { + if (owner.isBreadcrumb) { + type = 'breadcrumb'; + } else { + type = owner.getXType(); + } + } + } + } + return type; +}, getPrefixConfig:Ext.emptyFn, getSuffixConfig:Ext.emptyFn, getOverflowCls:function() { + return ''; +}, setVertical:function() { + var me = this, layout = me.layout, innerCt = layout.innerCt; + innerCt.removeCls(me.getOverflowCls(layout.oppositeDirection)); + innerCt.addCls(me.getOverflowCls(layout.direction)); +}}); +Ext.define('Ext.layout.container.boxOverflow.Scroller', {extend:Ext.layout.container.boxOverflow.None, alternateClassName:'Ext.layout.boxOverflow.Scroller', alias:['box.overflow.scroller', 'box.overflow.Scroller'], mixins:{observable:Ext.mixin.Observable}, animateScroll:false, scrollIncrement:20, wheelIncrement:10, scrollRepeatInterval:60, scrollDuration:400, scrollerCls:Ext.baseCSSPrefix + 'box-scroller', beforeSuffix:'-before-scroller', afterSuffix:'-after-scroller', constructor:function(config) { + var me = this; + me.mixins.observable.constructor.call(me, config); + me.scrollPosition = 0; + me.scrollSize = 0; +}, getPrefixConfig:function() { + return {role:'presentation', id:this.layout.owner.id + this.beforeSuffix, cls:this.createScrollerCls('beforeX'), style:'display:none'}; +}, getSuffixConfig:function() { + return {role:'presentation', id:this.layout.owner.id + this.afterSuffix, cls:this.createScrollerCls('afterX'), style:'display:none'}; +}, createScrollerCls:function(xName) { + var me = this, layout = me.layout, owner = layout.owner, type = me.getOwnerType(owner), scrollerCls = me.scrollerCls, cls = scrollerCls + ' ' + scrollerCls + '-' + layout.names[xName] + ' ' + scrollerCls + '-' + type + ' ' + scrollerCls + '-' + type + '-' + owner.ui; + if (owner.plain) { + cls += ' ' + scrollerCls + '-plain'; + } + return cls; +}, getOverflowCls:function(direction) { + return this.scrollerCls + '-body-' + direction; +}, beginLayout:function(ownerContext) { + ownerContext.innerCtScrollPos = this.getScrollPosition(); + this.callParent(arguments); +}, finishedLayout:function(ownerContext) { + var me = this, plan = ownerContext.state.boxPlan, layout = me.layout, names = layout.names, scrollPos = Math.min(me.getMaxScrollPosition(), ownerContext.innerCtScrollPos), lastProps; + if (plan && plan.tooNarrow) { + lastProps = ownerContext.childItems[ownerContext.childItems.length - 1].props; + me.scrollSize = lastProps[names.x] + lastProps[names.width]; + me.updateScrollButtons(); + layout.innerCt[names.setScrollLeft](scrollPos); + } + me.callParent([ownerContext]); +}, handleOverflow:function(ownerContext) { + var me = this, names = me.layout.names, getWidth = names.getWidth, parallelMargins = names.parallelMargins, scrollerWidth, targetPaddingWidth, beforeScroller, afterScroller; + me.showScrollers(); + beforeScroller = me.getBeforeScroller(); + afterScroller = me.getAfterScroller(); + scrollerWidth = beforeScroller[getWidth]() + afterScroller[getWidth]() + beforeScroller.getMargin(parallelMargins) + afterScroller.getMargin(parallelMargins); + targetPaddingWidth = ownerContext.targetContext.getPaddingInfo()[names.width]; + return {reservedSpace:Math.max(scrollerWidth - targetPaddingWidth, 0)}; +}, getBeforeScroller:function() { + var me = this; + return me._beforeScroller || (me._beforeScroller = me.createScroller(me.beforeSuffix, 'beforeRepeater', 'scrollLeft')); +}, getAfterScroller:function() { + var me = this; + return me._afterScroller || (me._afterScroller = me.createScroller(me.afterSuffix, 'afterRepeater', 'scrollRight')); +}, createScroller:function(suffix, repeaterName, scrollHandler) { + var me = this, owner = me.layout.owner, scrollerCls = me.scrollerCls, scrollerEl; + scrollerEl = owner.el.getById(owner.id + suffix); + scrollerEl.addClsOnOver(scrollerCls + '-hover'); + scrollerEl.addClsOnClick(scrollerCls + '-pressed'); + scrollerEl.setVisibilityMode(Ext.Element.DISPLAY); + me[repeaterName] = new Ext.util.ClickRepeater(scrollerEl, {interval:me.scrollRepeatInterval, handler:scrollHandler, scope:me}); + return scrollerEl; +}, createWheelListener:function() { + var me = this; + me.wheelListener = me.layout.innerCt.on('mousewheel', me.onMouseWheel, me, {destroyable:true}); +}, onMouseWheel:function(e) { + e.stopEvent(); + this.scrollBy(this.getWheelDelta(e) * this.wheelIncrement * -1, false); +}, getWheelDelta:function(e) { + return e.getWheelDelta(); +}, clearOverflow:function() { + this.hideScrollers(); +}, showScrollers:function() { + var me = this; + if (!me.wheelListener) { + me.createWheelListener(); + } + me.getBeforeScroller().show(); + me.getAfterScroller().show(); + me.layout.owner.addClsWithUI(me.layout.direction === 'vertical' ? 'vertical-scroller' : 'scroller'); +}, hideScrollers:function() { + var me = this, beforeScroller = me.getBeforeScroller(), afterScroller = me.getAfterScroller(); + if (beforeScroller) { + beforeScroller.hide(); + afterScroller.hide(); + me.layout.owner.removeClsWithUI(me.layout.direction === 'vertical' ? 'vertical-scroller' : 'scroller'); + } +}, destroy:function() { + Ext.destroyMembers(this, 'beforeRepeater', 'afterRepeater', '_beforeScroller', '_afterScroller', 'wheelListener'); + this.callParent(); +}, scrollBy:function(delta, animate) { + this.scrollTo(this.getScrollPosition() + delta, animate); +}, getScrollAnim:function() { + return {duration:this.scrollDuration, callback:this.updateScrollButtons, scope:this}; +}, updateScrollButtons:function() { + var me = this, beforeScroller = me.getBeforeScroller(), afterScroller = me.getAfterScroller(), disabledCls; + if (!beforeScroller || !afterScroller) { + return; + } + disabledCls = me.scrollerCls + '-disabled'; + beforeScroller[me.atExtremeBefore() ? 'addCls' : 'removeCls'](disabledCls); + afterScroller[me.atExtremeAfter() ? 'addCls' : 'removeCls'](disabledCls); + me.scrolling = false; +}, scrollLeft:function() { + this.scrollBy(-this.scrollIncrement, false); +}, scrollRight:function() { + this.scrollBy(this.scrollIncrement, false); +}, getScrollPosition:function() { + var me = this, layout = me.layout, result; + if (isNaN(me.scrollPosition)) { + result = layout.innerCt[layout.names.getScrollLeft](); + } else { + result = me.scrollPosition; + } + return result; +}, getMaxScrollPosition:function() { + var me = this, layout = me.layout, maxScrollPos = me.scrollSize - layout.innerCt.lastBox[layout.names.width]; + return maxScrollPos < 0 ? 0 : maxScrollPos; +}, atExtremeBefore:function() { + return !this.getScrollPosition(); +}, atExtremeAfter:function() { + return this.getScrollPosition() >= this.getMaxScrollPosition(); +}, setVertical:function() { + var me = this, beforeScroller = me.getBeforeScroller(), afterScroller = me.getAfterScroller(), names = me.layout.names, scrollerCls = me.scrollerCls; + beforeScroller.removeCls(scrollerCls + '-' + names.beforeY); + afterScroller.removeCls(scrollerCls + '-' + names.afterY); + beforeScroller.addCls(scrollerCls + '-' + names.beforeX); + afterScroller.addCls(scrollerCls + '-' + names.afterX); + this.callParent(); +}, scrollTo:function(position, animate) { + var me = this, layout = me.layout, names = layout.names, oldPosition = me.getScrollPosition(), newPosition = Ext.Number.constrain(position, 0, me.getMaxScrollPosition()); + if (newPosition !== oldPosition && !me.scrolling) { + me.scrollPosition = NaN; + if (animate === undefined) { + animate = me.animateScroll; + } + layout.innerCt[names.scrollTo](names.beforeScrollX, newPosition, animate ? me.getScrollAnim() : false); + if (animate) { + me.scrolling = true; + } else { + me.updateScrollButtons(); + } + me.fireEvent('scroll', me, newPosition, animate ? me.getScrollAnim() : false); + } +}, scrollToItem:function(item, animate) { + var me = this, layout = me.layout, owner = layout.owner, names = layout.names, innerCt = layout.innerCt, visibility, box, newPos; + item = me.getItem(item); + if (item !== undefined) { + if (item === owner.items.first()) { + newPos = 0; + } else { + if (item === owner.items.last()) { + newPos = me.getMaxScrollPosition(); + } else { + visibility = me.getItemVisibility(item); + if (!visibility.fullyVisible) { + box = item.getBox(false, true); + newPos = box[names.x]; + if (visibility.hiddenEnd) { + newPos -= innerCt[names.getWidth]() - box[names.width]; + } + } + } + } + if (newPos !== undefined) { + me.scrollTo(newPos, animate); + } + } +}, getItemVisibility:function(item) { + var me = this, box = me.getItem(item).getBox(true, true), layout = me.layout, names = layout.names, itemStart = box[names.x], itemEnd = itemStart + box[names.width], scrollStart = me.getScrollPosition(), scrollEnd = scrollStart + layout.innerCt[names.getWidth](); + return {hiddenStart:itemStart < scrollStart, hiddenEnd:itemEnd > scrollEnd, fullyVisible:itemStart >= scrollStart && itemEnd <= scrollEnd}; +}}); +Ext.define('Ext.dd.DragDropManager', {singleton:true, alternateClassName:['Ext.dd.DragDropMgr', 'Ext.dd.DDM'], ids:{}, handleIds:{}, dragCurrent:null, dragOvers:{}, deltaX:0, deltaY:0, preventDefault:true, stopPropagation:true, initialized:false, locked:false, init:function() { + this.initialized = true; +}, POINT:0, INTERSECT:1, mode:0, notifyOccluded:false, dragCls:Ext.baseCSSPrefix + 'dd-drag-current', _execOnAll:function(sMethod, args) { + var ids = this.ids, i, j, oDD, item; + for (i in ids) { + if (ids.hasOwnProperty(i)) { + item = ids[i]; + for (j in item) { + if (item.hasOwnProperty(j)) { + oDD = item[j]; + if (!this.isTypeOfDD(oDD)) { + continue; + } + oDD[sMethod].apply(oDD, args); + } + } + } + } +}, addListeners:function() { + var me = this; + me.init(); + Ext.getDoc().on({mouseup:me.handleMouseUp, mousemove:{fn:me.handleMouseMove, capture:false}, dragstart:me.preventDrag, drag:me.preventDrag, dragend:me.preventDrag, capture:true, scope:me}); + Ext.getWin().on({unload:me._onUnload, resize:me._onResize, scope:me}); +}, preventDrag:function(e) { + if (this.isMouseDown) { + e.stopPropagation(); + } +}, _onResize:function(e) { + this._execOnAll('resetConstraints', []); +}, lock:function() { + this.locked = true; +}, unlock:function() { + this.locked = false; +}, isLocked:function() { + return this.locked; +}, locationCache:{}, useCache:true, clickPixelThresh:8, dragThreshMet:false, clickTimeout:null, startX:0, startY:0, regDragDrop:function(oDD, sGroup) { + if (!this.initialized) { + this.init(); + } + if (!this.ids[sGroup]) { + this.ids[sGroup] = {}; + } + this.ids[sGroup][oDD.id] = oDD; +}, removeDDFromGroup:function(oDD, sGroup) { + if (!this.ids[sGroup]) { + this.ids[sGroup] = {}; + } + var obj = this.ids[sGroup]; + if (obj && obj[oDD.id]) { + delete obj[oDD.id]; + } +}, _remove:function(oDD, clearGroup) { + var me = this, ids = me.ids, groups = oDD.groups, g; + if (me.clearingAll) { + return; + } + if (me.dragCurrent === oDD) { + me.dragCurrent = null; + } + for (g in groups) { + if (groups.hasOwnProperty(g)) { + if (clearGroup) { + delete ids[g]; + } else { + if (ids[g]) { + delete ids[g][oDD.id]; + } + } + } + } + delete me.handleIds[oDD.id]; + delete me.locationCache[oDD.id]; +}, regHandle:function(sDDId, sHandleId) { + if (!this.handleIds[sDDId]) { + this.handleIds[sDDId] = {}; + } + this.handleIds[sDDId][sHandleId] = sHandleId; +}, isDragDrop:function(id) { + return this.getDDById(id) ? true : false; +}, getRelated:function(p_oDD, bTargetsOnly) { + var oDDs = [], i, j, dd; + for (i in p_oDD.groups) { + for (j in this.ids[i]) { + dd = this.ids[i][j]; + if (!this.isTypeOfDD(dd)) { + continue; + } + if (!bTargetsOnly || dd.isTarget) { + oDDs[oDDs.length] = dd; + } + } + } + return oDDs; +}, isLegalTarget:function(oDD, oTargetDD) { + var targets = this.getRelated(oDD, true), i, len; + for (i = 0, len = targets.length; i < len; ++i) { + if (targets[i].id === oTargetDD.id) { + return true; + } + } + return false; +}, isTypeOfDD:function(oDD) { + return oDD && oDD.__ygDragDrop; +}, isHandle:function(sDDId, sHandleId) { + return this.handleIds[sDDId] && this.handleIds[sDDId][sHandleId]; +}, getDDById:function(id, force) { + var i, dd; + for (i in this.ids) { + dd = this.ids[i][id]; + if (dd instanceof Ext.dd.DDTarget || force) { + return dd; + } + } + return null; +}, handleMouseDown:function(e, oDD) { + var me = this, xy, el; + me.isMouseDown = true; + if (Ext.quickTipsActive) { + Ext.tip.QuickTipManager.ddDisable(); + } + me.currentPoint = e.getPoint(); + if (me.dragCurrent) { + me.handleMouseUp(e); + } + me.mousedownEvent = e; + me.currentTarget = e.getTarget(); + me.dragCurrent = oDD; + el = oDD.getEl(); + Ext.fly(el).setCapture(); + xy = e.getXY(); + me.startX = xy[0]; + me.startY = xy[1]; + me.offsetX = me.offsetY = 0; + me.deltaX = me.startX - el.offsetLeft; + me.deltaY = me.startY - el.offsetTop; + me.dragThreshMet = false; +}, startDrag:function(x, y) { + var me = this, current = me.dragCurrent, dragEl; + clearTimeout(me.clickTimeout); + if (current) { + current.b4StartDrag(x, y); + current.startDrag(x, y); + dragEl = current.getDragEl(); + if (dragEl) { + Ext.fly(dragEl).addCls(me.dragCls); + } + } + me.dragThreshMet = true; +}, handleMouseUp:function(e) { + var me = this; + me.isMouseDown = false; + if (Ext.quickTipsActive) { + Ext.tip.QuickTipManager.ddEnable(); + } + if (!me.dragCurrent) { + return; + } + if (Ext.isIE && document.releaseCapture) { + document.releaseCapture(); + } + clearTimeout(me.clickTimeout); + if (me.dragThreshMet) { + me.fireEvents(e, true); + } + me.stopDrag(e); + me.stopEvent(e); + me.mousedownEvent = me.currentTarget = null; +}, stopEvent:function(e) { + if (this.stopPropagation) { + e.stopPropagation(); + } + if (this.preventDefault) { + e.preventDefault(); + } +}, stopDrag:function(e) { + var me = this, current = me.dragCurrent, dragEl; + if (current) { + if (me.dragThreshMet) { + dragEl = current.getDragEl(); + if (dragEl) { + Ext.fly(dragEl).removeCls(me.dragCls); + } + current.b4EndDrag(e); + current.endDrag(e); + } + me.dragCurrent.onMouseUp(e); + } + me.dragCurrent = null; + me.dragOvers = {}; +}, handleMouseMove:function(e) { + var me = this, current = me.dragCurrent, point = me.currentPoint = e.getPoint(), currentX = point.x, currentY = point.y, diffX, diffY; + me.offsetX = currentX - me.startX; + me.offsetY = currentY - me.startY; + if (!current) { + return true; + } + if (!me.dragThreshMet) { + diffX = Math.abs(me.offsetX); + diffY = Math.abs(me.offsetY); + if (diffX > me.clickPixelThresh || diffY > me.clickPixelThresh) { + me.startDrag(me.startX, me.startY); + } + } + if (me.dragThreshMet) { + current.b4Drag(e); + current.onDrag(e); + if (!current.moveOnly) { + me.fireEvents(e, false); + } + } + me.stopEvent(e); + return true; +}, fireEvents:function(e, isDrop) { + var me = this, isTouch = Ext.supports.Touch, dragCurrent = me.dragCurrent, mousePoint = me.currentPoint, currentX = mousePoint.x, currentY = mousePoint.y, allTargets = [], oldOvers = [], outEvts = [], overEvts = [], dropEvts = [], enterEvts = [], zoom = isTouch ? document.documentElement.clientWidth / window.innerWidth : 1, dragEl, overTarget, overTargetEl, needsSort, i, len, sGroup, overDragEl; + if (!dragCurrent || dragCurrent.isLocked()) { + return; + } + overDragEl = !(dragCurrent.deltaX < 0 || dragCurrent.deltaY < 0); + if (isTouch || !me.notifyOccluded && (!Ext.supports.CSSPointerEvents || Ext.isIE10m || Ext.isOpera) && overDragEl) { + dragEl = dragCurrent.getDragEl(); + if (overDragEl) { + dragEl.style.visibility = 'hidden'; + } + e.target = document.elementFromPoint(currentX / zoom, currentY / zoom); + if (overDragEl) { + dragEl.style.visibility = 'visible'; + } + } + for (i in me.dragOvers) { + overTarget = me.dragOvers[i]; + delete me.dragOvers[i]; + if (!me.isTypeOfDD(overTarget) || overTarget.destroyed) { + continue; + } + if (me.notifyOccluded) { + if (!this.isOverTarget(mousePoint, overTarget, me.mode)) { + outEvts.push(overTarget); + } + } else { + if (!e.within(overTarget.getEl())) { + outEvts.push(overTarget); + } + } + oldOvers[i] = true; + } + for (sGroup in dragCurrent.groups) { + if ('string' !== typeof sGroup) { + continue; + } + for (i in me.ids[sGroup]) { + overTarget = me.ids[sGroup][i]; + if (me.isTypeOfDD(overTarget) && (overTargetEl = overTarget.getEl()) && overTarget.isTarget && !overTarget.isLocked() && Ext.fly(overTargetEl).isVisible(true) && (overTarget !== dragCurrent || dragCurrent.ignoreSelf === false)) { + if (me.notifyOccluded) { + if ((overTarget.zIndex = me.getZIndex(overTargetEl)) !== -1) { + needsSort = true; + } + allTargets.push(overTarget); + } else { + if (e.within(overTarget.getEl())) { + allTargets.push(overTarget); + break; + } + } + } + } + } + if (needsSort) { + Ext.Array.sort(allTargets, me.byZIndex); + } + for (i = 0, len = allTargets.length; i < len; i++) { + overTarget = allTargets[i]; + if (me.isOverTarget(mousePoint, overTarget, me.mode)) { + if (isDrop) { + dropEvts.push(overTarget); + } else { + if (!oldOvers[overTarget.id]) { + enterEvts.push(overTarget); + } else { + overEvts.push(overTarget); + } + me.dragOvers[overTarget.id] = overTarget; + } + if (!me.notifyOccluded) { + break; + } + } + } + if (me.mode) { + if (outEvts.length) { + dragCurrent.b4DragOut(e, outEvts); + dragCurrent.onDragOut(e, outEvts); + } + if (enterEvts.length) { + dragCurrent.onDragEnter(e, enterEvts); + } + if (overEvts.length) { + dragCurrent.b4DragOver(e, overEvts); + dragCurrent.onDragOver(e, overEvts); + } + if (dropEvts.length) { + dragCurrent.b4DragDrop(e, dropEvts); + dragCurrent.onDragDrop(e, dropEvts); + } + } else { + for (i = 0, len = outEvts.length; i < len; ++i) { + dragCurrent.b4DragOut(e, outEvts[i].id); + dragCurrent.onDragOut(e, outEvts[i].id); + } + for (i = 0, len = enterEvts.length; i < len; ++i) { + dragCurrent.onDragEnter(e, enterEvts[i].id); + } + for (i = 0, len = overEvts.length; i < len; ++i) { + dragCurrent.b4DragOver(e, overEvts[i].id); + dragCurrent.onDragOver(e, overEvts[i].id); + } + for (i = 0, len = dropEvts.length; i < len; ++i) { + dragCurrent.b4DragDrop(e, dropEvts[i].id); + dragCurrent.onDragDrop(e, dropEvts[i].id); + } + } + if (isDrop && !dropEvts.length) { + dragCurrent.onInvalidDrop(e); + } +}, getZIndex:function(element) { + var body = document.body, z, zIndex = -1; + element = Ext.getDom(element); + while (element !== body) { + if (!isNaN(z = Number(Ext.fly(element).getStyle('zIndex')))) { + zIndex = z; + } + element = element.parentNode; + } + return zIndex; +}, byZIndex:function(d1, d2) { + return d1.zIndex < d2.zIndex; +}, getBestMatch:function(dds) { + var winner = null, len = dds.length, i, dd; + if (len === 1) { + winner = dds[0]; + } else { + for (i = 0; i < len; ++i) { + dd = dds[i]; + if (dd.cursorIsOver) { + winner = dd; + break; + } else { + if (!winner || winner.overlap.getArea() < dd.overlap.getArea()) { + winner = dd; + } + } + } + } + return winner; +}, refreshCache:function(groups) { + var sGroup, i, oDD, loc; + for (sGroup in groups) { + if ('string' !== typeof sGroup) { + continue; + } + for (i in this.ids[sGroup]) { + oDD = this.ids[sGroup][i]; + if (this.isTypeOfDD(oDD)) { + loc = this.getLocation(oDD); + if (loc) { + this.locationCache[oDD.id] = loc; + } else { + delete this.locationCache[oDD.id]; + } + } + } + } +}, verifyEl:function(el) { + return Ext.getBody().contains(el); +}, getLocation:function(oDD) { + if (!this.isTypeOfDD(oDD)) { + return null; + } + if (oDD.getRegion) { + return oDD.getRegion(); + } + var el = oDD.getEl(), pos, x1, x2, y1, y2, t, r, b, l; + try { + pos = Ext.fly(el).getXY(); + } catch (e$28) { + } + if (!pos) { + return null; + } + x1 = pos[0]; + x2 = x1 + el.offsetWidth; + y1 = pos[1]; + y2 = y1 + el.offsetHeight; + t = y1 - oDD.padding[0]; + r = x2 + oDD.padding[1]; + b = y2 + oDD.padding[2]; + l = x1 - oDD.padding[3]; + return new Ext.util.Region(t, r, b, l); +}, isOverTarget:function(pt, oTarget, intersect) { + var loc = this.locationCache[oTarget.id], dc, pos, el, curRegion, overlap; + if (!loc || !this.useCache) { + loc = this.getLocation(oTarget); + this.locationCache[oTarget.id] = loc; + } + if (!loc) { + return false; + } + oTarget.cursorIsOver = loc.contains(pt); + dc = this.dragCurrent; + if (!dc || !dc.getTargetCoord || !intersect && !dc.constrainX && !dc.constrainY) { + return oTarget.cursorIsOver; + } + oTarget.overlap = null; + pos = dc.getTargetCoord(pt.x, pt.y); + el = dc.getDragEl(); + curRegion = new Ext.util.Region(pos.y, pos.x + el.offsetWidth, pos.y + el.offsetHeight, pos.x); + overlap = curRegion.intersect(loc); + if (overlap) { + oTarget.overlap = overlap; + return intersect ? true : oTarget.cursorIsOver; + } else { + return false; + } +}, _onUnload:function(e, me) { + Ext.dd.DragDropManager.unregAll(); +}, unregAll:function() { + var me = this, cache = me.elementCache, i; + if (me.dragCurrent) { + me.stopDrag(); + me.dragCurrent = null; + } + me.clearingAll = true; + me._execOnAll('unreg', []); + delete me.clearingAll; + for (i in cache) { + delete cache[i]; + } + me.elementCache = {}; + me.ids = {}; + me.handleIds = {}; +}, elementCache:{}, getElWrapper:function(id) { + var oWrapper = this.elementCache[id]; + if (!oWrapper || !oWrapper.el) { + oWrapper = this.elementCache[id] = new this.ElementWrapper(Ext.getDom(id)); + } + return oWrapper; +}, getElement:function(id) { + return Ext.getDom(id); +}, getCss:function(id) { + var el = Ext.getDom(id); + return el ? el.style : null; +}, ElementWrapper:function(el) { + this.el = el || null; + this.id = this.el && el.id; + this.css = this.el && el.style; +}, getPosX:function(el) { + return Ext.fly(el).getX(); +}, getPosY:function(el) { + return Ext.fly(el).getY(); +}, swapNode:function(n1, n2) { + if (n1.swapNode) { + n1.swapNode(n2); + } else { + var p = n2.parentNode, s = n2.nextSibling; + if (s === n1) { + p.insertBefore(n1, n2); + } else { + if (n2 === n1.nextSibling) { + p.insertBefore(n2, n1); + } else { + n1.parentNode.replaceChild(n2, n1); + p.insertBefore(n1, s); + } + } + } +}, getScroll:function() { + var doc = window.document, docEl = doc.documentElement, body = doc.body, top = 0, left = 0; + if (docEl && (docEl.scrollTop || docEl.scrollLeft)) { + top = docEl.scrollTop; + left = docEl.scrollLeft; + } else { + if (body) { + top = body.scrollTop; + left = body.scrollLeft; + } + } + return {top:top, left:left}; +}, getStyle:function(el, styleProp) { + return Ext.fly(el).getStyle(styleProp); +}, getScrollTop:function() { + return this.getScroll().top; +}, getScrollLeft:function() { + return this.getScroll().left; +}, moveToEl:function(moveEl, targetEl) { + var aCoord = Ext.fly(targetEl).getXY(); + Ext.fly(moveEl).setXY(aCoord); +}, numericSort:function(a, b) { + return a - b; +}, handleWasClicked:function(node, id) { + if (this.isHandle(id, node.id)) { + return true; + } else { + var p = node.parentNode; + while (p) { + if (this.isHandle(id, p.id)) { + return true; + } else { + p = p.parentNode; + } + } + } + return false; +}}, function(DragDropManager) { + Ext.onInternalReady(function() { + DragDropManager.addListeners(); + }); +}); +Ext.define('Ext.resizer.Splitter', {extend:Ext.Component, xtype:'splitter', childEls:['collapseEl'], renderTpl:['\x3ctpl if\x3d"collapsible\x3d\x3d\x3dtrue"\x3e', '\x3cdiv id\x3d"{id}-collapseEl" data-ref\x3d"collapseEl" role\x3d"presentation" class\x3d"', Ext.baseCSSPrefix, 'collapse-el ', Ext.baseCSSPrefix, 'layout-split-{collapseDir}{childElCls}"\x3e', '\x3c/div\x3e', '\x3c/tpl\x3e'], isSplitter:true, baseCls:Ext.baseCSSPrefix + 'splitter', collapsedClsInternal:Ext.baseCSSPrefix + 'splitter-collapsed', +canResize:true, collapsible:null, collapseOnDblClick:true, defaultSplitMin:40, defaultSplitMax:1000, collapseTarget:'next', horizontal:false, vertical:false, size:5, tracker:null, ariaRole:'separator', focusable:true, tabIndex:0, getTrackerConfig:function() { + return Ext.apply({xclass:'Ext.resizer.SplitterTracker', el:this.el, splitter:this}, this.tracker); +}, beforeRender:function() { + var me = this, target = me.getCollapseTarget(), collapsible = me.collapsible, ariaAttr; + me.callParent(); + if (target.collapsed) { + me.addCls(me.collapsedClsInternal); + } + if (!me.canResize) { + me.addCls(me.baseCls + '-noresize'); + } + Ext.applyIf(me.renderData, {collapseDir:me.getCollapseDirection(), collapsible:collapsible !== null ? collapsible : target.collapsible}); + me.ariaRenderAttributes = me.ariaRenderAttributes || {}; + me.ariaRenderAttributes['aria-orientation'] = me.orientation; + me.protoEl.unselectable(); +}, onRender:function() { + var me = this, collapseEl; + me.callParent(arguments); + if (me.performCollapse !== false) { + if (me.renderData.collapsible) { + me.mon(me.collapseEl, 'click', me.toggleTargetCmp, me); + } + if (me.collapseOnDblClick) { + me.mon(me.el, 'dblclick', me.toggleTargetCmp, me); + } + } + me.getCollapseTarget().on({collapse:me.onTargetCollapse, expand:me.onTargetExpand, beforeexpand:me.onBeforeTargetExpand, beforecollapse:me.onBeforeTargetCollapse, scope:me}); + if (me.canResize) { + me.tracker = Ext.create(me.getTrackerConfig()); + me.relayEvents(me.tracker, ['beforedragstart', 'dragstart', 'dragend']); + } + collapseEl = me.collapseEl; + if (collapseEl) { + collapseEl.lastCollapseDirCls = me.collapseDirProps[me.collapseDirection].cls; + } +}, getCollapseDirection:function() { + var me = this, dir = me.collapseDirection, collapseTarget, idx, items, type; + if (!dir) { + collapseTarget = me.collapseTarget; + if (collapseTarget.isComponent) { + dir = collapseTarget.collapseDirection; + } + if (!dir) { + type = me.ownerCt.layout.type; + if (collapseTarget.isComponent) { + items = me.ownerCt.items; + idx = Number(items.indexOf(collapseTarget) === items.indexOf(me) - 1) << 1 | Number(type === 'hbox'); + } else { + idx = Number(me.collapseTarget === 'prev') << 1 | Number(type === 'hbox'); + } + dir = ['bottom', 'right', 'top', 'left'][idx]; + } + me.collapseDirection = dir; + } + me.setOrientation(dir === 'top' || dir === 'bottom' ? 'horizontal' : 'vertical'); + return dir; +}, getCollapseTarget:function() { + var me = this; + return me.collapseTarget.isComponent ? me.collapseTarget : me.collapseTarget === 'prev' ? me.previousSibling() : me.nextSibling(); +}, setCollapseEl:function(display) { + var el = this.collapseEl; + if (el) { + el.setDisplayed(display); + } +}, onBeforeTargetExpand:function(target) { + this.setCollapseEl('none'); +}, onBeforeTargetCollapse:function() { + this.setCollapseEl('none'); +}, onTargetCollapse:function(target) { + var me = this; + if (target === me.getCollapseTarget() && target[me.orientation === 'vertical' ? 'collapsedHorizontal' : 'collapsedVertical']()) { + me.el.addCls(me.collapsedClsInternal + ' ' + (me.collapsedCls || '')); + } + me.setCollapseEl(''); +}, onTargetExpand:function(target) { + var me = this; + me.el.removeCls(me.collapsedClsInternal + ' ' + (me.collapsedCls || '')); + me.setCollapseEl(''); +}, collapseDirProps:{top:{cls:Ext.baseCSSPrefix + 'layout-split-top'}, right:{cls:Ext.baseCSSPrefix + 'layout-split-right'}, bottom:{cls:Ext.baseCSSPrefix + 'layout-split-bottom'}, left:{cls:Ext.baseCSSPrefix + 'layout-split-left'}}, orientationProps:{horizontal:{opposite:'vertical', fixedAxis:'height', stretchedAxis:'width'}, vertical:{opposite:'horizontal', fixedAxis:'width', stretchedAxis:'height'}}, applyCollapseDirection:function() { + var me = this, collapseEl = me.collapseEl, collapseDirProps = me.collapseDirProps[me.collapseDirection], cls; + if (collapseEl) { + cls = collapseEl.lastCollapseDirCls; + if (cls) { + collapseEl.removeCls(cls); + } + collapseEl.addCls(collapseEl.lastCollapseDirCls = collapseDirProps.cls); + } +}, applyOrientation:function() { + var me = this, orientation = me.orientation, orientationProps = me.orientationProps[orientation], defaultSize = me.size, fixedSizeProp = orientationProps.fixedAxis, stretchSizeProp = orientationProps.stretchedAxis, cls = me.baseCls + '-'; + me[orientation] = true; + me[orientationProps.opposite] = false; + if (!me.hasOwnProperty(fixedSizeProp) || me[fixedSizeProp] === '100%') { + me[fixedSizeProp] = defaultSize; + } + if (!me.hasOwnProperty(stretchSizeProp) || me[stretchSizeProp] === defaultSize) { + me[stretchSizeProp] = '100%'; + } + me.removeCls(cls + orientationProps.opposite); + me.addCls(cls + orientation); +}, setOrientation:function(orientation) { + var me = this; + if (me.orientation !== orientation) { + me.orientation = orientation; + me.applyOrientation(); + } +}, updateOrientation:function() { + delete this.collapseDirection; + this.getCollapseDirection(); + this.applyCollapseDirection(); +}, toggleTargetCmp:function(e, t) { + var cmp = this.getCollapseTarget(), placeholder = cmp.placeholder, toggle; + if (Ext.isFunction(cmp.expand) && Ext.isFunction(cmp.collapse)) { + if (placeholder && !placeholder.hidden) { + toggle = true; + } else { + toggle = !cmp.hidden; + } + if (toggle) { + if (cmp.collapsed) { + cmp.expand(); + } else { + if (cmp.collapseDirection) { + cmp.collapse(); + } else { + cmp.collapse(this.renderData.collapseDir); + } + } + } + } +}, setSize:function() { + var me = this; + me.callParent(arguments); + if (Ext.isIE && me.el) { + me.el.repaint(); + } +}, beforeDestroy:function() { + Ext.destroy(this.tracker); + this.callParent(); +}}); +Ext.define('Ext.theme.neptune.resizer.Splitter', {override:'Ext.resizer.Splitter', size:8}); +Ext.define('Ext.theme.triton.resizer.Splitter', {override:'Ext.resizer.Splitter', size:10}); +Ext.define('Ext.layout.container.Box', {extend:Ext.layout.container.Container, alias:'layout.box', alternateClassName:'Ext.layout.BoxLayout', type:'box', config:{align:'begin', constrainAlign:false, enableSplitters:true, overflowHandler:{$value:null, merge:function(newValue, oldValue) { + if (typeof newValue === 'string') { + newValue = {type:newValue}; + } + return Ext.merge(oldValue ? Ext.Object.chain(oldValue) : {}, newValue); +}}, padding:0, pack:'start', stretchMaxPartner:undefined, vertical:false, alignRoundingMethod:'round'}, itemCls:Ext.baseCSSPrefix + 'box-item', targetCls:Ext.baseCSSPrefix + 'box-layout-ct', targetElCls:Ext.baseCSSPrefix + 'box-target', innerCls:Ext.baseCSSPrefix + 'box-inner', manageMargins:true, createsInnerCt:true, childEls:['innerCt', 'targetEl'], renderTpl:['{%var oc,l\x3dvalues.$comp.layout,oh\x3dl.overflowHandler;' + 'if (oh \x26\x26 oh.getPrefixConfig!\x3d\x3dExt.emptyFn) {' + 'if(oc\x3doh.getPrefixConfig())dh.generateMarkup(oc, out)' + +'}%}' + '\x3cdiv id\x3d"{ownerId}-innerCt" data-ref\x3d"innerCt" role\x3d"presentation" class\x3d"{[l.innerCls]}' + '{[oh ? (" " + oh.getOverflowCls(l.direction)) : ""]}"\x3e' + '\x3cdiv id\x3d"{ownerId}-targetEl" data-ref\x3d"targetEl" class\x3d"{targetElCls}" role\x3d"presentation"\x3e' + '{%this.renderBody(out, values)%}' + '\x3c/div\x3e' + '\x3c/div\x3e' + '{%if (oh \x26\x26 oh.getSuffixConfig!\x3d\x3dExt.emptyFn) {' + 'if(oc\x3doh.getSuffixConfig())dh.generateMarkup(oc, out)' + '}%}', {disableFormats:true, +definitions:'var dh\x3dExt.DomHelper;'}], constructor:function(config) { + var me = this, type; + me.callParent(arguments); + me.setVertical(me.vertical); + me.flexSortFn = me.flexSort.bind(me); + type = typeof me.padding; + if (type === 'string' || type === 'number') { + me.padding = Ext.util.Format.parseBox(me.padding); + me.padding.height = me.padding.top + me.padding.bottom; + me.padding.width = me.padding.left + me.padding.right; + } +}, _beginRe:/^(?:begin|left|top)$/, _centerRe:/^(?:center|middle)$/, _endRe:/^(?:end|right|bottom)$/, _percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/, getItemSizePolicy:function(item, ownerSizeModel) { + var me = this, policy = me.sizePolicy, align = me.align, flex = item.flex, key = align, names = me.names, heightName = names.height, widthName = names.width, width = item[widthName], height = item[heightName], percentageRe = me._percentageRe, percentageWidth = percentageRe.test(width), isStretch = align === 'stretch', isStretchMax = align === 'stretchmax', constrain = me.constrainAlign; + if (!ownerSizeModel && (isStretch || flex || percentageWidth || constrain && !isStretchMax)) { + ownerSizeModel = me.owner.getSizeModel(); + } + if (isStretch) { + if (!percentageRe.test(height) && ownerSizeModel[heightName].shrinkWrap) { + key = 'stretchmax'; + } + } else { + if (!isStretchMax) { + if (percentageRe.test(height)) { + key = 'stretch'; + } else { + if (constrain && !ownerSizeModel[heightName].shrinkWrap) { + key = 'stretchmax'; + } else { + key = ''; + } + } + } + } + if (flex || percentageWidth) { + if (!ownerSizeModel[widthName].shrinkWrap) { + policy = policy.flex; + } + } + return policy[key]; +}, flexSort:function(a, b) { + var maxWidthName = this.names.maxWidth, minWidthName = this.names.minWidth, infiniteValue = Infinity, aTarget = a.target, bTarget = b.target, aFlex = aTarget.flex, bFlex = bTarget.flex, result = 0, aMin, bMin, aMax, bMax, hasMin, hasMax; + aMax = aTarget[maxWidthName] || infiniteValue; + bMax = bTarget[maxWidthName] || infiniteValue; + aMin = aTarget[minWidthName] || 0; + bMin = bTarget[minWidthName] || 0; + hasMin = isFinite(aMin) || isFinite(bMin); + hasMax = isFinite(aMax) || isFinite(bMax); + if (hasMin || hasMax) { + if (hasMax) { + result = aMax - bMax; + } + if (result === 0 && hasMin) { + result = bMin - aMin; + } + if (result === 0) { + if (hasMax) { + result = bFlex - aFlex; + } else { + result = aFlex - bFlex; + } + } + } + return result; +}, isItemBoxParent:function(itemContext) { + return true; +}, isItemShrinkWrap:function(item) { + return true; +}, roundFlex:function(width) { + return Math.floor(width); +}, beginCollapse:function(child) { + var me = this; + if (me.direction === 'vertical' && child.collapsedVertical()) { + child.collapseMemento.capture(['flex']); + delete child.flex; + } else { + if (me.direction === 'horizontal' && child.collapsedHorizontal()) { + child.collapseMemento.capture(['flex']); + delete child.flex; + } + } +}, beginExpand:function(child) { + child.collapseMemento.restore(['flex']); +}, beginLayout:function(ownerContext) { + var me = this, owner = me.owner, smp = owner.stretchMaxPartner, style = me.innerCt.dom.style, names = me.names, overflowHandler = me.overflowHandler, scrollable = owner.getScrollable(), scrollPos; + ownerContext.boxNames = names; + if (overflowHandler) { + overflowHandler.beginLayout(ownerContext); + } + if (typeof smp === 'string') { + smp = Ext.getCmp(smp) || owner.query(smp)[0]; + } + ownerContext.stretchMaxPartner = smp && ownerContext.context.getCmp(smp); + me.callParent(arguments); + ownerContext.innerCtContext = ownerContext.getEl('innerCt', me); + ownerContext.targetElContext = ownerContext.getEl('targetEl', me); + if (scrollable) { + ownerContext.ownerScrollable = scrollable; + scrollPos = scrollable.getPosition(); + if (scrollPos.x || scrollPos.y) { + ownerContext.scrollRestore = scrollPos; + } + } + style.width = style.height = ''; +}, beginLayoutCycle:function(ownerContext, firstCycle) { + var me = this, state = ownerContext.state, scrollable = ownerContext.ownerScrollable, align = me.align, names = ownerContext.boxNames, pack = me.pack, centerRe = me._centerRe, overflowHandler = me.overflowHandler, canScroll = ownerContext.state.canScroll, widthModel, heightModel; + if (overflowHandler) { + overflowHandler.beginLayoutCycle(ownerContext, firstCycle); + } + me.callParent(arguments); + ownerContext.parallelSizeModel = widthModel = ownerContext[names.widthModel]; + ownerContext.perpendicularSizeModel = heightModel = ownerContext[names.heightModel]; + ownerContext.boxOptions = {align:align = {stretch:align === 'stretch', stretchmax:align === 'stretchmax', center:centerRe.test(align), bottom:me._endRe.test(align)}, pack:pack = {center:centerRe.test(pack), end:pack === 'end'}}; + if (scrollable) { + if (!canScroll) { + state.canScroll = {parallel:!widthModel.shrinkWrap && scrollable[names.getX](), perpendicular:!heightModel.shrinkWrap && scrollable[names.getY]()}; + } + if (!state.actualScroll) { + state.actualScroll = {parallel:false, perpendicular:false}; + } + } + if (align.stretch && heightModel.shrinkWrap) { + align.stretchmax = true; + align.stretch = false; + } + align.nostretch = !(align.stretch || align.stretchmax); + if (widthModel.shrinkWrap) { + pack.center = pack.end = false; + } + me.cacheFlexes(ownerContext); + me.targetEl.setWidth(20000); +}, cacheFlexes:function(ownerContext) { + var me = this, names = ownerContext.boxNames, widthModelName = names.widthModel, heightModelName = names.heightModel, nostretch = ownerContext.boxOptions.align.nostretch, totalFlex = 0, childItems = ownerContext.childItems, i = childItems.length, flexedItems = [], minWidth = 0, smallestHeight = 0, smallestWidth = 0, minWidthName = names.minWidth, minHeightName = names.minHeight, percentageRe = me._percentageRe, percentageWidths = 0, percentageHeights = 0, child, childContext, flex, match, heightModel, + widthModel, width, height; + while (i--) { + childContext = childItems[i]; + child = childContext.target; + widthModel = childContext[widthModelName]; + if (widthModel.calculated) { + childContext.flex = flex = child.flex; + if (flex) { + totalFlex += flex; + flexedItems.push(childContext); + minWidth += child[minWidthName] || 0; + } else { + match = percentageRe.exec(child[names.width]); + childContext.percentageParallel = parseFloat(match[1]) / 100; + ++percentageWidths; + } + } + if (widthModel.configured) { + width = child[names.width]; + } else { + width = child[minWidthName] || 0; + } + smallestWidth += width; + heightModel = childContext[heightModelName]; + if (nostretch && heightModel.calculated) { + match = percentageRe.exec(child[names.height]); + childContext.percentagePerpendicular = parseFloat(match[1]) / 100; + ++percentageHeights; + } + if (heightModel.configured) { + height = child[names.height]; + } else { + height = child[minHeightName] || 0; + } + if (height > smallestHeight) { + smallestHeight = height; + } + } + ownerContext.flexedItems = flexedItems; + ownerContext.flexedMinWidth = minWidth; + ownerContext.smallestWidth = smallestWidth; + ownerContext.smallestHeight = smallestHeight; + ownerContext.totalFlex = totalFlex; + ownerContext.percentageWidths = percentageWidths; + ownerContext.percentageHeights = percentageHeights; + Ext.Array.sort(flexedItems, me.flexSortFn); +}, calculate:function(ownerContext) { + var me = this, names = ownerContext.boxNames, state = ownerContext.state, actualScroll = state.actualScroll, needsScroll = state.needsScroll, canScroll = state.canScroll, plan = state.boxPlan || (state.boxPlan = {}), overflowHandler = me.overflowHandler; + plan.targetSize = me.getContainerSize(ownerContext); + if (canScroll && !needsScroll) { + state.needsScroll = needsScroll = {parallel:canScroll.parallel && plan.targetSize[names.width] < ownerContext.smallestWidth, perpendicular:canScroll.perpendicular && plan.targetSize[names.height] < ownerContext.smallestHeight}; + } + if (!state.parallelDone) { + state.parallelDone = me.calculateParallel(ownerContext, names, plan); + } + if (!state.perpendicularDone) { + state.perpendicularDone = me.calculatePerpendicular(ownerContext, names, plan); + } + if (state.parallelDone && state.perpendicularDone) { + if (canScroll && !state.scrollPass) { + if (needsScroll.parallel !== actualScroll.parallel || needsScroll.perpendicular !== actualScroll.perpendicular) { + ownerContext.invalidate({state:{scrollPass:true, canScroll:canScroll, needsScroll:actualScroll}}); + me.done = false; + return; + } + } + me.publishInnerCtSize(ownerContext); + if (me.done && ownerContext.boxOptions.align.stretchmax && !state.stretchMaxDone) { + me.calculateStretchMax(ownerContext, names, plan); + state.stretchMaxDone = true; + } + if (overflowHandler) { + overflowHandler.calculate(ownerContext); + } + } else { + me.done = false; + } +}, calculateParallel:function(ownerContext, names, plan) { + var me = this, widthShrinkWrap = ownerContext.parallelSizeModel.shrinkWrap, widthName = names.width, childItems = ownerContext.childItems, beforeXName = names.beforeX, afterXName = names.afterX, setWidthName = names.setWidth, childItemsLength = childItems.length, flexedItems = ownerContext.flexedItems, flexedItemsLength = flexedItems.length, pack = ownerContext.boxOptions.pack, padding = me.padding, targetSize = plan.targetSize, containerWidth = targetSize[widthName], state = ownerContext.state, + needsScroll = state.needsScroll, canScroll = state.canScroll, totalMargin = 0, left = padding[beforeXName], nonFlexWidth = left + padding[afterXName], scrollbarSize = Ext.getScrollbarSize(), scrollbarWidth = scrollbarSize[names.width], scrollbarHeight = scrollbarSize[names.height], i, childMargins, remainingWidth, remainingFlex, childContext, flex, flexedWidth, contentWidth, childWidth, percentageSpace, availableSpace; + if (!widthShrinkWrap && !targetSize[names.gotWidth]) { + return false; + } + for (i = 0; i < childItemsLength; ++i) { + childContext = childItems[i]; + childMargins = childContext.marginInfo || childContext.getMarginInfo(); + totalMargin += childMargins[widthName]; + if (!childContext[names.widthModel].calculated) { + childWidth = childContext.getProp(widthName); + nonFlexWidth += childWidth; + if (isNaN(nonFlexWidth)) { + return false; + } + } + } + nonFlexWidth += totalMargin; + if (ownerContext.percentageWidths) { + percentageSpace = containerWidth - totalMargin; + if (isNaN(percentageSpace)) { + return false; + } + for (i = 0; i < childItemsLength; ++i) { + childContext = childItems[i]; + if (childContext.percentageParallel) { + childWidth = Math.ceil(percentageSpace * childContext.percentageParallel); + childWidth = childContext.setWidth(childWidth); + nonFlexWidth += childWidth; + } + } + } + if (widthShrinkWrap) { + availableSpace = 0; + plan.tooNarrow = false; + } else { + availableSpace = containerWidth - nonFlexWidth; + if (needsScroll && needsScroll.perpendicular) { + availableSpace -= scrollbarHeight; + } + plan.tooNarrow = availableSpace < ownerContext.flexedMinWidth; + if (plan.tooNarrow && canScroll && canScroll.parallel) { + state.actualScroll.parallel = true; + } + } + contentWidth = nonFlexWidth; + remainingWidth = availableSpace; + remainingFlex = ownerContext.totalFlex; + for (i = 0; i < flexedItemsLength; i++) { + childContext = flexedItems[i]; + flex = childContext.flex; + flexedWidth = me.roundFlex(flex / remainingFlex * remainingWidth); + flexedWidth = childContext[setWidthName](flexedWidth); + contentWidth += flexedWidth; + remainingWidth = Math.max(0, remainingWidth - flexedWidth); + remainingFlex -= flex; + } + if (pack.center) { + left += remainingWidth / 2; + if (left < 0) { + left = 0; + } + } else { + if (pack.end) { + left += remainingWidth; + } + } + for (i = 0; i < childItemsLength; ++i) { + childContext = childItems[i]; + childMargins = childContext.marginInfo; + left += childMargins[beforeXName]; + childContext.setProp(names.x, left); + left += childMargins[afterXName] + childContext.props[widthName]; + } + contentWidth += ownerContext.targetContext.getPaddingInfo()[widthName]; + ownerContext.state.contentWidth = contentWidth; + if (needsScroll && needsScroll.perpendicular) { + if (widthShrinkWrap) { + contentWidth += scrollbarWidth; + } + ownerContext[names.hasOverflowY] = true; + ownerContext.target.componentLayout[names.setWidthInDom] = true; + ownerContext[names.invalidateScrollY] = Ext.isIE8; + } + ownerContext[names.setContentWidth](contentWidth); + return true; +}, calculatePerpendicular:function(ownerContext, names, plan) { + var me = this, state = ownerContext.state, needsScroll = state.needsScroll, canScroll = state.canScroll, heightShrinkWrap = ownerContext.perpendicularSizeModel.shrinkWrap, targetSize = plan.targetSize, childItems = ownerContext.childItems, childItemsLength = childItems.length, mmax = Math.max, heightName = names.height, setHeightName = names.setHeight, beforeYName = names.beforeY, topPositionName = names.y, padding = me.padding, top = padding[beforeYName], availHeight = targetSize[heightName] - + top - padding[names.afterY], align = ownerContext.boxOptions.align, isStretch = align.stretch, isStretchMax = align.stretchmax, isCenter = align.center, isBottom = align.bottom, constrain = me.constrainAlign, maxHeight = 0, hasPercentageSizes = 0, onBeforeInvalidateChild = me.onBeforeConstrainInvalidateChild, onAfterInvalidateChild = me.onAfterConstrainInvalidateChild, scrollbarHeight = Ext.getScrollbarSize().height, childTop, i, childHeight, childMargins, diff, height, childContext, stretchMaxPartner, + stretchMaxChildren, shrinkWrapParallelOverflow, percentagePerpendicular; + if (!heightShrinkWrap && !targetSize[names.gotHeight]) { + return false; + } + if (isStretch || (isCenter || isBottom) && !heightShrinkWrap) { + if (isNaN(availHeight)) { + return false; + } + } + if (needsScroll && needsScroll.parallel) { + if (heightShrinkWrap) { + shrinkWrapParallelOverflow = true; + } else { + availHeight -= scrollbarHeight; + plan.targetSize[heightName] -= scrollbarHeight; + } + } + if (isStretch) { + height = availHeight; + maxHeight = mmax(height, ownerContext.smallestHeight); + } else { + for (i = 0; i < childItemsLength; i++) { + childContext = childItems[i]; + childMargins = (childContext.marginInfo || childContext.getMarginInfo())[heightName]; + if (!(percentagePerpendicular = childContext.percentagePerpendicular)) { + childHeight = childContext.getProp(heightName); + } else { + ++hasPercentageSizes; + if (heightShrinkWrap) { + continue; + } else { + childHeight = percentagePerpendicular * availHeight - childMargins; + childHeight = childContext[names.setHeight](childHeight); + } + } + if (!heightShrinkWrap && constrain && childContext[names.heightModel].shrinkWrap && childHeight > availHeight) { + childContext.invalidate({before:onBeforeInvalidateChild, after:onAfterInvalidateChild, layout:me, childHeight:availHeight, names:names}); + ownerContext.state.parallelDone = false; + } + if (isNaN(maxHeight = mmax(maxHeight, childHeight + childMargins, childContext.target[names.minHeight] || 0))) { + return false; + } + } + } + if (shrinkWrapParallelOverflow) { + maxHeight += scrollbarHeight; + ownerContext[names.hasOverflowX] = true; + ownerContext.target.componentLayout[names.setHeightInDom] = true; + ownerContext[names.invalidateScrollX] = Ext.isIE8; + } + stretchMaxPartner = ownerContext.stretchMaxPartner; + if (stretchMaxPartner) { + ownerContext.setProp('maxChildHeight', maxHeight); + stretchMaxChildren = stretchMaxPartner.childItems; + if (stretchMaxChildren && stretchMaxChildren.length) { + maxHeight = mmax(maxHeight, stretchMaxPartner.getProp('maxChildHeight')); + if (isNaN(maxHeight)) { + return false; + } + } + } + ownerContext[names.setContentHeight](maxHeight + me.padding[heightName] + ownerContext.targetContext.getPaddingInfo()[heightName]); + if (shrinkWrapParallelOverflow) { + maxHeight -= scrollbarHeight; + } + if (maxHeight > targetSize[heightName] && canScroll && canScroll.perpendicular) { + state.actualScroll.perpendicular = true; + } + plan.maxSize = maxHeight; + if (isStretchMax) { + height = maxHeight; + } else { + if (isCenter || isBottom || hasPercentageSizes) { + if (constrain) { + height = heightShrinkWrap ? maxHeight : availHeight; + } else { + height = heightShrinkWrap ? maxHeight : mmax(availHeight, maxHeight); + } + height -= ownerContext.innerCtContext.getBorderInfo()[heightName]; + } + } + for (i = 0; i < childItemsLength; i++) { + childContext = childItems[i]; + childMargins = childContext.marginInfo || childContext.getMarginInfo(); + childTop = top + childMargins[beforeYName]; + if (isStretch) { + childContext[setHeightName](height - childMargins[heightName]); + } else { + percentagePerpendicular = childContext.percentagePerpendicular; + if (heightShrinkWrap && percentagePerpendicular) { + childMargins = childContext.marginInfo || childContext.getMarginInfo(); + childHeight = percentagePerpendicular * height - childMargins[heightName]; + childHeight = childContext.setHeight(childHeight); + } + if (isCenter) { + diff = height - childContext.props[heightName]; + if (diff > 0) { + childTop = top + Math[me.alignRoundingMethod](diff / 2); + } + } else { + if (isBottom) { + childTop = mmax(0, height - childTop - childContext.props[heightName]); + } + } + } + childContext.setProp(topPositionName, childTop); + } + return true; +}, onBeforeConstrainInvalidateChild:function(childContext, options) { + var heightModelName = options.names.heightModel; + if (!childContext[heightModelName].constrainedMin) { + childContext[heightModelName] = Ext.layout.SizeModel.calculated; + } +}, onAfterConstrainInvalidateChild:function(childContext, options) { + var names = options.names; + childContext.setProp(names.beforeY, 0); + if (childContext[names.heightModel].calculated) { + childContext[names.setHeight](options.childHeight); + } +}, calculateStretchMax:function(ownerContext, names, plan) { + var me = this, heightName = names.height, widthName = names.width, childItems = ownerContext.childItems, length = childItems.length, height = plan.maxSize, onBeforeStretchMaxInvalidateChild = me.onBeforeStretchMaxInvalidateChild, onAfterStretchMaxInvalidateChild = me.onAfterStretchMaxInvalidateChild, childContext, props, i, childHeight; + for (i = 0; i < length; ++i) { + childContext = childItems[i]; + props = childContext.props; + childHeight = height - childContext.getMarginInfo()[heightName]; + if (childHeight !== props[heightName] || childContext[names.heightModel].constrained) { + childContext.invalidate({before:onBeforeStretchMaxInvalidateChild, after:onAfterStretchMaxInvalidateChild, layout:me, childWidth:props[widthName], childHeight:childHeight, childX:props.x, childY:props.y, names:names}); + } + } +}, onBeforeStretchMaxInvalidateChild:function(childContext, options) { + var heightModelName = options.names.heightModel; + if (!childContext[heightModelName].constrainedMax) { + childContext[heightModelName] = Ext.layout.SizeModel.calculated; + } +}, onAfterStretchMaxInvalidateChild:function(childContext, options) { + var names = options.names, childHeight = options.childHeight, childWidth = options.childWidth; + childContext.setProp('x', options.childX); + childContext.setProp('y', options.childY); + if (childContext[names.heightModel].calculated) { + childContext[names.setHeight](childHeight); + } + if (childContext[names.widthModel].calculated) { + childContext[names.setWidth](childWidth); + } +}, completeLayout:function(ownerContext) { + var me = this, invalidateScrollX = ownerContext.invalidateScrollX, invalidateScrollY = ownerContext.invalidateScrollY, overflowHandler = me.overflowHandler, scrollRestore = ownerContext.scrollRestore, dom, el, overflowX, overflowY, styles; + if (overflowHandler) { + overflowHandler.completeLayout(ownerContext); + } + if (invalidateScrollX || invalidateScrollY) { + el = me.getTarget(); + dom = el.dom; + styles = dom.style; + if (invalidateScrollX) { + overflowX = el.getStyle('overflowX'); + if (overflowX === 'auto') { + overflowX = styles.overflowX; + styles.overflowX = 'scroll'; + } else { + invalidateScrollX = false; + } + } + if (invalidateScrollY) { + overflowY = el.getStyle('overflowY'); + if (overflowY === 'auto') { + overflowY = styles.overflowY; + styles.overflowY = 'scroll'; + } else { + invalidateScrollY = false; + } + } + if (invalidateScrollX || invalidateScrollY) { + dom.scrollWidth; + if (invalidateScrollX) { + styles.overflowX = overflowX; + } + if (invalidateScrollY) { + styles.overflowY = overflowY; + } + } + } + if (scrollRestore) { + ownerContext.ownerScrollable.scrollTo(scrollRestore.x, scrollRestore.y); + } +}, finishedLayout:function(ownerContext) { + var overflowHandler = this.overflowHandler; + if (overflowHandler) { + overflowHandler.finishedLayout(ownerContext); + } + this.callParent(arguments); +}, getLayoutItems:function() { + var items = this.callParent(), n = items.length, lastVisibleItem, hide, i, item, splitAfter, splitBefore, splitter; + for (i = 0; i < n; ++i) { + if ((item = items[i]).isSplitter) { + continue; + } + splitter = item.splitter; + if (item.hidden) { + if (splitter) { + if (!splitter.hidden) { + splitter.hidden = true; + if (splitter.el) { + splitter.el.hide(); + } + } + } + continue; + } + if (splitter) { + splitBefore = splitter.collapseTarget === 'next'; + } else { + splitBefore = false; + } + hide = null; + if (lastVisibleItem && splitAfter) { + if (splitAfter.hidden) { + splitAfter.hidden = false; + if (splitAfter.el) { + splitAfter.el.show(); + } + } + if (splitBefore) { + hide = true; + } + } else { + if (splitBefore) { + hide = !lastVisibleItem; + } + } + if (hide !== null && splitter.hidden !== hide) { + splitter.hidden = hide; + if (splitter.el) { + splitter.el.setVisible(!hide); + } + } + splitAfter = !splitBefore && splitter; + lastVisibleItem = item; + } + if (lastVisibleItem && splitAfter && !splitAfter.hidden) { + splitAfter.hidden = true; + if (splitAfter.el) { + splitAfter.el.hide(); + } + } + return items; +}, getScrollerEl:function() { + return this.innerCt; +}, insertSplitter:function(item, index, hidden, splitterCfg) { + var splitter = {xtype:'splitter', id:item.id + '-splitter', hidden:hidden, splitterFor:item, synthetic:true}, at = index + (splitterCfg.collapseTarget === 'prev' ? 1 : 0); + splitter[this.names.height] = '100%'; + if (splitterCfg) { + Ext.apply(splitter, splitterCfg); + } + item.splitter = this.owner.add(at, splitter); +}, publishInnerCtSize:function(ownerContext, widthOffset) { + widthOffset = widthOffset || 0; + var me = this, state = ownerContext.state, names = ownerContext.boxNames, heightName = names.height, widthName = names.width, align = ownerContext.boxOptions.align, padding = me.padding, plan = state.boxPlan, targetSize = plan.targetSize, height = plan.maxSize, needsScroll = state.needsScroll, innerCtContext = ownerContext.innerCtContext, innerCtWidth, innerCtHeight; + if (ownerContext.parallelSizeModel.shrinkWrap || plan.tooNarrow && state.canScroll) { + innerCtWidth = state.contentWidth - ownerContext.targetContext.getPaddingInfo()[widthName]; + } else { + innerCtWidth = targetSize[widthName]; + if (needsScroll && needsScroll.perpendicular) { + innerCtWidth -= Ext.getScrollbarSize()[widthName]; + } + } + innerCtWidth -= widthOffset; + me.owner.tooNarrow = plan.tooNarrow; + if (align.stretch) { + innerCtHeight = height; + } else { + innerCtHeight = plan.maxSize + padding[names.beforeY] + padding[names.afterY] + innerCtContext.getBorderInfo()[heightName]; + if (!ownerContext.perpendicularSizeModel.shrinkWrap && (align.center || align.bottom)) { + innerCtHeight = Math.max(targetSize[heightName], innerCtHeight); + } + } + innerCtContext[names.setWidth](innerCtWidth); + innerCtContext[names.setHeight](innerCtHeight); + ownerContext.targetElContext.setWidth(ownerContext.innerCtContext.props.width - (me.vertical ? 0 : widthOffset || 0)); + if (isNaN(innerCtWidth + innerCtHeight)) { + me.done = false; + } +}, onAdd:function(item, index) { + var me = this, split = me.enableSplitters && item.split && !item.isButton; + me.callParent(arguments); + if (split) { + if (split === true) { + split = {collapseTarget:'next'}; + } else { + if (Ext.isString(split)) { + split = {collapseTarget:split === 'before' ? 'next' : 'prev'}; + } else { + split = Ext.apply({collapseTarget:split.side === 'before' ? 'next' : 'prev'}, split); + } + } + me.insertSplitter(item, index, !!item.hidden, split); + } +}, onRemove:function(comp, isDestroying) { + var me = this, names = me.names, owner = me.owner, splitter = comp.splitter, overflowHandler = me.overflowHandler, el; + me.callParent(arguments); + if (splitter && owner.contains(splitter)) { + owner.doRemove(splitter, true); + comp.splitter = null; + } + if (overflowHandler) { + overflowHandler.onRemove(comp); + } + if (comp.layoutMarginCap === me.id) { + delete comp.layoutMarginCap; + } + if (!owner.destroying && !isDestroying && comp.rendered) { + el = comp.getEl(); + if (el) { + el.setStyle(names.beforeY, ''); + el.setStyle(names.beforeX, ''); + el.setStyle('margin', ''); + } + } +}, applyOverflowHandler:function(overflowHandler, oldOverflowHandler) { + var type; + if (typeof overflowHandler === 'string') { + overflowHandler = {type:overflowHandler}; + } + type = overflowHandler.type; + if (oldOverflowHandler && oldOverflowHandler.type === overflowHandler.type) { + delete overflowHandler.type; + oldOverflowHandler.setConfig(overflowHandler); + return oldOverflowHandler; + } + overflowHandler.layout = this; + return Ext.Factory.boxOverflow(overflowHandler); +}, getRenderTarget:function() { + return this.targetEl; +}, getElementTarget:function() { + return this.innerCt; +}, calculateChildBox:Ext.deprecated(), calculateChildBoxes:Ext.deprecated(), updateChildBoxes:Ext.deprecated(), destroy:function() { + var me = this; + Ext.destroy(me.innerCt, me.overflowHandler); + me.flexSortFn = me.innerCt = null; + me.callParent(); +}, getRenderData:function() { + var data = this.callParent(); + data.targetElCls = this.targetElCls; + return data; +}, updateVertical:function(vertical) { + var me = this, overflowHandler = me.overflowHandler, owner = me.owner, props = me._props; + Ext.apply(me, vertical ? props.vbox : props.hbox); + if (overflowHandler && owner && owner.rendered) { + overflowHandler.setVertical(vertical); + } +}, _props:{'hbox':{direction:'horizontal', oppositeDirection:'vertical', horizontal:true, vertical:false, names:{beforeX:'left', beforeScrollX:'left', leftCap:'Left', afterX:'right', width:'width', contentWidth:'contentWidth', minWidth:'minWidth', maxWidth:'maxWidth', widthCap:'Width', widthModel:'widthModel', widthIndex:0, x:'x', getX:'getX', setX:'setX', scrollLeft:'scrollLeft', overflowX:'overflowX', hasOverflowX:'hasOverflowX', invalidateScrollX:'invalidateScrollX', parallelMargins:'lr', center:'middle', +beforeY:'top', afterY:'bottom', height:'height', contentHeight:'contentHeight', minHeight:'minHeight', maxHeight:'maxHeight', heightCap:'Height', heightModel:'heightModel', heightIndex:1, y:'y', getY:'getY', setY:'setY', overflowY:'overflowY', hasOverflowY:'hasOverflowY', invalidateScrollY:'invalidateScrollY', perpendicularMargins:'tb', getWidth:'getWidth', getHeight:'getHeight', setWidth:'setWidth', setHeight:'setHeight', gotWidth:'gotWidth', gotHeight:'gotHeight', setContentWidth:'setContentWidth', +setContentHeight:'setContentHeight', setWidthInDom:'setWidthInDom', setHeightInDom:'setHeightInDom', getScrollLeft:'getScrollLeft', setScrollLeft:'setScrollLeft', scrollTo:'scrollTo'}, sizePolicy:{flex:{'':{readsWidth:0, readsHeight:1, setsWidth:1, setsHeight:0}, stretch:{readsWidth:0, readsHeight:0, setsWidth:1, setsHeight:1}, stretchmax:{readsWidth:0, readsHeight:1, setsWidth:1, setsHeight:1}}, '':{readsWidth:1, readsHeight:1, setsWidth:0, setsHeight:0}, stretch:{readsWidth:1, readsHeight:0, setsWidth:0, +setsHeight:1}, stretchmax:{readsWidth:1, readsHeight:1, setsWidth:0, setsHeight:1}}}, 'vbox':{direction:'vertical', oppositeDirection:'horizontal', horizontal:false, vertical:true, names:{beforeX:'top', beforeScrollX:'top', leftCap:'Top', afterX:'bottom', width:'height', contentWidth:'contentHeight', minWidth:'minHeight', maxWidth:'maxHeight', widthCap:'Height', widthModel:'heightModel', widthIndex:1, x:'y', getX:'getY', setX:'setY', scrollLeft:'scrollTop', overflowX:'overflowY', hasOverflowX:'hasOverflowY', +invalidateScrollX:'invalidateScrollY', parallelMargins:'tb', center:'center', beforeY:'left', afterY:'right', height:'width', contentHeight:'contentWidth', minHeight:'minWidth', maxHeight:'maxWidth', heightCap:'Width', heightModel:'widthModel', heightIndex:0, y:'x', getY:'getX', setY:'setX', overflowY:'overflowX', hasOverflowY:'hasOverflowX', invalidateScrollY:'invalidateScrollX', perpendicularMargins:'lr', getWidth:'getHeight', getHeight:'getWidth', setWidth:'setHeight', setHeight:'setWidth', gotWidth:'gotHeight', +gotHeight:'gotWidth', setContentWidth:'setContentHeight', setContentHeight:'setContentWidth', setWidthInDom:'setHeightInDom', setHeightInDom:'setWidthInDom', getScrollLeft:'getScrollTop', setScrollLeft:'setScrollTop', scrollTo:'scrollTo'}, sizePolicy:{flex:{'':{readsWidth:1, readsHeight:0, setsWidth:0, setsHeight:1}, stretch:{readsWidth:0, readsHeight:0, setsWidth:1, setsHeight:1}, stretchmax:{readsWidth:1, readsHeight:0, setsWidth:1, setsHeight:1}}, '':{readsWidth:1, readsHeight:1, setsWidth:0, +setsHeight:0}, stretch:{readsWidth:0, readsHeight:1, setsWidth:1, setsHeight:0}, stretchmax:{readsWidth:1, readsHeight:1, setsWidth:1, setsHeight:0}}}}}); +Ext.define('Ext.layout.container.HBox', {extend:Ext.layout.container.Box, alias:'layout.hbox', alternateClassName:'Ext.layout.HBoxLayout', type:'hbox', vertical:false}); +Ext.define('Ext.layout.container.VBox', {extend:Ext.layout.container.Box, alias:'layout.vbox', alternateClassName:'Ext.layout.VBoxLayout', type:'vbox', vertical:true}); +Ext.define('Ext.toolbar.Toolbar', {extend:Ext.container.Container, alias:'widget.toolbar', alternateClassName:'Ext.Toolbar', mixins:[Ext.util.FocusableContainer], isToolbar:true, baseCls:Ext.baseCSSPrefix + 'toolbar', ariaRole:'toolbar', defaultType:'button', layout:undefined, vertical:undefined, enableOverflow:false, overflowHandler:null, defaultButtonUI:'default-toolbar', defaultFieldUI:'default', defaultFooterButtonUI:'default', defaultFooterFieldUI:'default', trackMenus:true, itemCls:Ext.baseCSSPrefix + +'toolbar-item', statics:{shortcuts:{'-':'tbseparator', ' ':'tbspacer'}, shortcutsHV:{0:{'-\x3e':{xtype:'tbfill', height:0}}, 1:{'-\x3e':{xtype:'tbfill', width:0}}}}, initComponent:function() { + var me = this, layout = me.layout, vertical = me.vertical; + if (vertical === undefined) { + me.vertical = vertical = me.dock === 'right' || me.dock === 'left'; + } + me.layout = layout = Ext.applyIf(Ext.isString(layout) ? {type:layout} : layout || {}, {type:vertical ? 'vbox' : 'hbox', align:vertical ? 'stretchmax' : 'middle'}); + if (me.overflowHandler) { + layout.overflowHandler = me.overflowHandler; + } else { + if (me.enableOverflow) { + layout.overflowHandler = 'menu'; + } + } + if (vertical) { + me.addClsWithUI('vertical'); + } + if (me.ui === 'footer') { + me.ignoreBorderManagement = true; + } + me.callParent(); +}, getRefItems:function(deep) { + var me = this, items = me.callParent(arguments), layout = me.layout, handler; + if (deep && (me.enableOverflow || me.overflowHandler === 'menu')) { + handler = layout.overflowHandler; + if (handler && handler.menu) { + items = items.concat(handler.menu.getRefItems(deep)); + } + } + return items; +}, lookupComponent:function(c) { + var args = arguments, shortcut, T; + if (typeof c === 'string') { + T = Ext.toolbar.Toolbar; + shortcut = T.shortcutsHV[this.vertical ? 1 : 0][c] || T.shortcuts[c]; + if (typeof shortcut === 'string') { + c = {xtype:shortcut}; + } else { + if (shortcut) { + c = Ext.apply({}, shortcut); + } else { + c = {xtype:'tbtext', text:c}; + } + } + this.applyDefaults(c); + args = [c]; + } + return this.callParent(args); +}, onBeforeAdd:function(component) { + var me = this, isFooter = me.ui === 'footer', defaultButtonUI = isFooter ? me.defaultFooterButtonUI : me.defaultButtonUI; + if (component.isSegmentedButton) { + if (component.getDefaultUI() === 'default' && !component.config.hasOwnProperty('defaultUI')) { + component.setDefaultUI(defaultButtonUI); + } + } else { + if (component.ui === 'default' && !component.hasOwnProperty('ui')) { + if (component.isButton) { + component.ui = defaultButtonUI; + } else { + if (component.isFormField) { + component.ui = isFooter ? me.defaultFooterFieldUI : me.defaultFieldUI; + } + } + } + } + if (component instanceof Ext.toolbar.Separator) { + component.setUI(me.vertical ? 'vertical' : 'horizontal'); + } + me.callParent(arguments); +}, onAdd:function(component) { + if (component.needArrowKeys && this.enableFocusableContainer) { + this.enableFocusableContainer = false; + } + this.callParent(arguments); + this.trackMenu(component); +}, onRemove:function(c) { + this.callParent(arguments); + this.trackMenu(c, true); +}, privates:{applyDefaults:function(c) { + if (!Ext.isString(c)) { + c = this.callParent(arguments); + } + return c; +}, trackMenu:function(item, remove) { + var me = this; + if (me.trackMenus && item.menu) { + item[remove ? 'un' : 'on']({mouseover:me.onButtonOver, menushow:me.onButtonMenuShow, menuhide:me.onButtonMenuHide, scope:me}); + } +}, getChildItemsToDisable:function() { + return this.items.getRange(); +}, onButtonOver:function(btn, e) { + var activeMenuBtn = this.activeMenuBtn; + if (activeMenuBtn && activeMenuBtn !== btn) { + activeMenuBtn.hideMenu(); + btn.focus(); + btn.showMenu(e); + this.activeMenuBtn = btn; + } +}, onButtonMenuShow:function(btn) { + this.activeMenuBtn = btn; +}, onButtonMenuHide:function(btn) { + this.activeMenuBtn = null; +}}}); +Ext.define('Ext.theme.neptune.toolbar.Toolbar', {override:'Ext.toolbar.Toolbar', usePlainButtons:false, border:false}); +Ext.define('Ext.dd.DragDrop', {constructor:function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + } +}, id:null, config:null, dragElId:null, handleElId:null, invalidHandleTypes:null, invalidHandleIds:null, invalidHandleClasses:null, startPageX:0, startPageY:0, groups:null, locked:false, lock:function() { + this.locked = true; +}, moveOnly:false, unlock:function() { + this.locked = false; +}, isTarget:true, padding:null, _domRef:null, __ygDragDrop:true, constrainX:false, constrainY:false, minX:0, maxX:0, minY:0, maxY:0, maintainOffset:false, xTicks:null, yTicks:null, primaryButtonOnly:true, available:false, hasOuterHandles:false, triggerEvent:'mousedown', b4StartDrag:function(x, y) { +}, startDrag:function(x, y) { +}, b4Drag:function(e) { +}, onDrag:function(e) { +}, onDragEnter:function(e, id) { +}, b4DragOver:function(e) { +}, onDragOver:function(e, id) { +}, b4DragOut:function(e) { +}, onDragOut:function(e, id) { +}, b4DragDrop:function(e) { +}, onDragDrop:function(e, id) { +}, onInvalidDrop:function(e) { +}, b4EndDrag:function(e) { +}, endDrag:function(e) { +}, b4MouseDown:function(e) { +}, onMouseDown:function(e) { +}, onMouseUp:function(e) { +}, onAvailable:function() { +}, defaultPadding:{left:0, right:0, top:0, bottom:0}, constrainTo:function(constrainTo, pad, inContent) { + if (Ext.isNumber(pad)) { + pad = {left:pad, right:pad, top:pad, bottom:pad}; + } + pad = pad || this.defaultPadding; + var ddBox = Ext.get(this.getEl()).getBox(), constrainEl = Ext.get(constrainTo), s = constrainEl.getScroll(), c, constrainDom = constrainEl.dom, xy, topSpace, leftSpace; + if (constrainDom === document.body) { + c = {x:s.left, y:s.top, width:Ext.Element.getViewportWidth(), height:Ext.Element.getViewportHeight()}; + } else { + xy = constrainEl.getXY(); + c = {x:xy[0], y:xy[1], width:constrainDom.clientWidth, height:constrainDom.clientHeight}; + } + topSpace = ddBox.y - c.y; + leftSpace = ddBox.x - c.x; + this.resetConstraints(); + this.setXConstraint(leftSpace - (pad.left || 0), c.width - leftSpace - ddBox.width - (pad.right || 0), this.xTickSize); + this.setYConstraint(topSpace - (pad.top || 0), c.height - topSpace - ddBox.height - (pad.bottom || 0), this.yTickSize); +}, getEl:function() { + if (!this._domRef) { + this._domRef = Ext.getDom(this.id); + } + return this._domRef; +}, getDragEl:function() { + return Ext.getDom(this.dragElId); +}, init:function(id, sGroup, config) { + var me = this; + me.el = me.el || Ext.get(id); + me.initTarget(id, sGroup, config); + Ext.get(me.id).on(me.triggerEvent, me.handleMouseDown, me); +}, initTarget:function(id, sGroup, config) { + this.config = config || {}; + this.DDMInstance = Ext.dd.DragDropManager; + this.groups = {}; + if (typeof id !== 'string') { + id = Ext.id(id); + } + this.id = id; + this.addToGroup(sGroup ? sGroup : 'default'); + this.handleElId = id; + this.setDragElId(id); + this.invalidHandleTypes = {A:'A'}; + this.invalidHandleIds = {}; + this.invalidHandleClasses = []; + this.applyConfig(); + this.handleOnAvailable(); +}, applyConfig:function() { + this.padding = this.config.padding || [0, 0, 0, 0]; + this.isTarget = this.config.isTarget !== false; + this.maintainOffset = this.config.maintainOffset; + this.primaryButtonOnly = this.config.primaryButtonOnly !== false; +}, handleOnAvailable:function() { + this.available = true; + this.resetConstraints(); + this.onAvailable(); +}, setPadding:function(iTop, iRight, iBot, iLeft) { + if (!iRight && 0 !== iRight) { + this.padding = [iTop, iTop, iTop, iTop]; + } else { + if (!iBot && 0 !== iBot) { + this.padding = [iTop, iRight, iTop, iRight]; + } else { + this.padding = [iTop, iRight, iBot, iLeft]; + } + } +}, setInitPosition:function(diffX, diffY) { + var el = this.getEl(), dx, dy, p; + if (!this.DDMInstance.verifyEl(el)) { + return; + } + dx = diffX || 0; + dy = diffY || 0; + p = Ext.fly(el).getXY(); + this.initPageX = p[0] - dx; + this.initPageY = p[1] - dy; + this.lastPageX = p[0]; + this.lastPageY = p[1]; + this.setStartPosition(p); +}, setStartPosition:function(pos) { + var p = pos || Ext.fly(this.getEl()).getXY(); + this.deltaSetXY = null; + this.startPageX = p[0]; + this.startPageY = p[1]; +}, addToGroup:function(sGroup) { + this.groups[sGroup] = true; + this.DDMInstance.regDragDrop(this, sGroup); +}, removeFromGroup:function(sGroup) { + if (this.groups[sGroup]) { + delete this.groups[sGroup]; + } + this.DDMInstance.removeDDFromGroup(this, sGroup); +}, setDragElId:function(id) { + this.dragElId = id; +}, setHandleElId:function(id) { + if (typeof id !== 'string') { + id = Ext.id(id); + } + this.handleElId = id; + this.DDMInstance.regHandle(this.id, id); +}, setOuterHandleElId:function(id) { + if (typeof id !== 'string') { + id = Ext.id(id); + } + Ext.get(id).on(this.triggerEvent, this.handleMouseDown, this); + this.setHandleElId(id); + this.hasOuterHandles = true; +}, unreg:function() { + var me = this, el; + if (me._domRef) { + el = Ext.fly(me.id); + if (el) { + el.un(me.triggerEvent, me.handleMouseDown, me); + } + } + me._domRef = null; + me.DDMInstance._remove(me, me.autoGroup); +}, destroy:function() { + this.unreg(); + this.callParent(); +}, isLocked:function() { + return this.DDMInstance.isLocked() || this.locked; +}, handleMouseDown:function(e, oDD) { + var me = this; + if (me.primaryButtonOnly && e.button || me.isLocked()) { + return; + } + me.DDMInstance.refreshCache(me.groups); + if (me.hasOuterHandles || me.DDMInstance.isOverTarget(e.getPoint(), me)) { + if (me.clickValidator(e)) { + me.setStartPosition(); + me.b4MouseDown(e); + me.onMouseDown(e); + me.DDMInstance.handleMouseDown(e, me); + me.DDMInstance.stopEvent(e); + } + } +}, clickValidator:function(e) { + var target = e.getTarget(); + return this.isValidHandleChild(target) && (this.id === this.handleElId || this.DDMInstance.handleWasClicked(target, this.id)); +}, addInvalidHandleType:function(tagName) { + var type = tagName.toUpperCase(); + this.invalidHandleTypes[type] = type; +}, addInvalidHandleId:function(id) { + if (typeof id !== 'string') { + id = Ext.id(id); + } + this.invalidHandleIds[id] = id; +}, addInvalidHandleClass:function(cssClass) { + this.invalidHandleClasses.push(cssClass); +}, removeInvalidHandleType:function(tagName) { + var type = tagName.toUpperCase(); + delete this.invalidHandleTypes[type]; +}, removeInvalidHandleId:function(id) { + if (typeof id !== 'string') { + id = Ext.id(id); + } + delete this.invalidHandleIds[id]; +}, removeInvalidHandleClass:function(cssClass) { + var invalidHandleClasses = this.invalidHandleClasses, len = invalidHandleClasses.length, i; + for (i = 0; i < len; ++i) { + if (invalidHandleClasses[i] === cssClass) { + delete invalidHandleClasses[i]; + } + } +}, isValidHandleChild:function(node) { + var valid = true, nodeName, i, len; + try { + nodeName = node.nodeName.toUpperCase(); + } catch (e$29) { + nodeName = node.nodeName; + } + valid = valid && !this.invalidHandleTypes[nodeName]; + valid = valid && !this.invalidHandleIds[node.id]; + for (i = 0, len = this.invalidHandleClasses.length; valid && i < len; ++i) { + valid = !Ext.fly(node).hasCls(this.invalidHandleClasses[i]); + } + return valid; +}, setXTicks:function(iStartX, iTickSize) { + this.xTicks = []; + this.xTickSize = iTickSize; + var tickMap = {}, i; + for (i = this.initPageX; i >= this.minX; i = i - iTickSize) { + if (!tickMap[i]) { + this.xTicks[this.xTicks.length] = i; + tickMap[i] = true; + } + } + for (i = this.initPageX; i <= this.maxX; i = i + iTickSize) { + if (!tickMap[i]) { + this.xTicks[this.xTicks.length] = i; + tickMap[i] = true; + } + } + Ext.Array.sort(this.xTicks, this.DDMInstance.numericSort); +}, setYTicks:function(iStartY, iTickSize) { + this.yTicks = []; + this.yTickSize = iTickSize; + var tickMap = {}, i; + for (i = this.initPageY; i >= this.minY; i = i - iTickSize) { + if (!tickMap[i]) { + this.yTicks[this.yTicks.length] = i; + tickMap[i] = true; + } + } + for (i = this.initPageY; i <= this.maxY; i = i + iTickSize) { + if (!tickMap[i]) { + this.yTicks[this.yTicks.length] = i; + tickMap[i] = true; + } + } + Ext.Array.sort(this.yTicks, this.DDMInstance.numericSort); +}, setXConstraint:function(iLeft, iRight, iTickSize) { + this.leftConstraint = iLeft; + this.rightConstraint = iRight; + this.minX = this.initPageX - iLeft; + this.maxX = this.initPageX + iRight; + if (iTickSize) { + this.setXTicks(this.initPageX, iTickSize); + } + this.constrainX = true; +}, clearConstraints:function() { + this.constrainX = false; + this.constrainY = false; + this.clearTicks(); +}, clearTicks:function() { + this.xTicks = null; + this.yTicks = null; + this.xTickSize = 0; + this.yTickSize = 0; +}, setYConstraint:function(iUp, iDown, iTickSize) { + this.topConstraint = iUp; + this.bottomConstraint = iDown; + this.minY = this.initPageY - iUp; + this.maxY = this.initPageY + iDown; + if (iTickSize) { + this.setYTicks(this.initPageY, iTickSize); + } + this.constrainY = true; +}, resetConstraints:function() { + if (this.initPageX || this.initPageX === 0) { + var dx = this.maintainOffset ? this.lastPageX - this.initPageX : 0, dy = this.maintainOffset ? this.lastPageY - this.initPageY : 0; + this.setInitPosition(dx, dy); + } else { + this.setInitPosition(); + } + if (this.constrainX) { + this.setXConstraint(this.leftConstraint, this.rightConstraint, this.xTickSize); + } + if (this.constrainY) { + this.setYConstraint(this.topConstraint, this.bottomConstraint, this.yTickSize); + } +}, getTick:function(val, tickArray) { + if (!tickArray) { + return val; + } else { + if (tickArray[0] >= val) { + return tickArray[0]; + } else { + var i, len, next, diff1, diff2; + for (i = 0, len = tickArray.length; i < len; ++i) { + next = i + 1; + if (tickArray[next] && tickArray[next] >= val) { + diff1 = val - tickArray[i]; + diff2 = tickArray[next] - val; + return diff2 > diff1 ? tickArray[i] : tickArray[next]; + } + } + return tickArray[tickArray.length - 1]; + } + } +}, toString:function() { + return 'DragDrop ' + this.id; +}}); +Ext.define('Ext.dd.DD', {extend:Ext.dd.DragDrop, constructor:function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + } +}, scroll:true, autoOffset:function(iPageX, iPageY) { + var x = iPageX - this.startPageX, y = iPageY - this.startPageY; + this.setDelta(x, y); +}, setDelta:function(iDeltaX, iDeltaY) { + this.deltaX = iDeltaX; + this.deltaY = iDeltaY; +}, setDragElPos:function(iPageX, iPageY) { + var el = this.getDragEl(); + this.alignElWithMouse(el, iPageX, iPageY); +}, alignElWithMouse:function(el, iPageX, iPageY) { + var oCoord = this.getTargetCoord(iPageX, iPageY), fly = el.dom ? el : Ext.fly(el, '_dd'), elSize = fly.getSize(), EL = Ext.Element, vpSize, aCoord, newLeft, newTop; + if (!this.deltaSetXY) { + vpSize = this.cachedViewportSize = {width:EL.getDocumentWidth(), height:EL.getDocumentHeight()}; + aCoord = [Math.max(0, Math.min(oCoord.x, vpSize.width - elSize.width)), Math.max(0, Math.min(oCoord.y, vpSize.height - elSize.height))]; + fly.setXY(aCoord); + newLeft = this.getLocalX(fly); + newTop = fly.getLocalY(); + this.deltaSetXY = [newLeft - oCoord.x, newTop - oCoord.y]; + } else { + vpSize = this.cachedViewportSize; + this.setLocalXY(fly, Math.max(0, Math.min(oCoord.x + this.deltaSetXY[0], vpSize.width - elSize.width)), Math.max(0, Math.min(oCoord.y + this.deltaSetXY[1], vpSize.height - elSize.height))); + } + this.cachePosition(oCoord.x, oCoord.y); + this.autoScroll(oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth); + return oCoord; +}, cachePosition:function(iPageX, iPageY) { + if (iPageX) { + this.lastPageX = iPageX; + this.lastPageY = iPageY; + } else { + var aCoord = Ext.fly(this.getEl()).getXY(); + this.lastPageX = aCoord[0]; + this.lastPageY = aCoord[1]; + } +}, autoScroll:function(x, y, h, w) { + if (this.scroll) { + var clientH = Ext.Element.getViewportHeight(), clientW = Ext.Element.getViewportWidth(), st = this.DDMInstance.getScrollTop(), sl = this.DDMInstance.getScrollLeft(), bot = h + y, right = w + x, toBot = clientH + st - y - this.deltaY, toRight = clientW + sl - x - this.deltaX, thresh = 40, scrAmt = document.all ? 80 : 30; + if (bot > clientH && toBot < thresh) { + window.scrollTo(sl, st + scrAmt); + } + if (y < st && st > 0 && y - st < thresh) { + window.scrollTo(sl, st - scrAmt); + } + if (right > clientW && toRight < thresh) { + window.scrollTo(sl + scrAmt, st); + } + if (x < sl && sl > 0 && x - sl < thresh) { + window.scrollTo(sl - scrAmt, st); + } + } +}, getTargetCoord:function(iPageX, iPageY) { + var x = iPageX - this.deltaX, y = iPageY - this.deltaY; + if (this.constrainX) { + if (x < this.minX) { + x = this.minX; + } + if (x > this.maxX) { + x = this.maxX; + } + } + if (this.constrainY) { + if (y < this.minY) { + y = this.minY; + } + if (y > this.maxY) { + y = this.maxY; + } + } + x = this.getTick(x, this.xTicks); + y = this.getTick(y, this.yTicks); + return {x:x, y:y}; +}, applyConfig:function() { + this.callParent(); + this.scroll = this.config.scroll !== false; +}, b4MouseDown:function(e) { + var xy = e.getXY(); + this.autoOffset(xy[0], xy[1]); +}, b4Drag:function(e) { + var xy = e.getXY(); + this.setDragElPos(xy[0], xy[1]); +}, toString:function() { + return 'DD ' + this.id; +}, getLocalX:function(el) { + return el.getLocalX(); +}, setLocalXY:function(el, x, y) { + el.setLocalXY(x, y); +}}); +Ext.define('Ext.dd.DDProxy', {extend:Ext.dd.DD, statics:{dragElId:'ygddfdiv'}, constructor:function(id, sGroup, config) { + if (id) { + this.init(id, sGroup, config); + this.initFrame(); + } +}, resizeFrame:true, centerFrame:false, createFrame:function() { + var self = this, body = document.body, div, s; + if (!body || !body.firstChild) { + Ext.defer(function() { + self.createFrame(); + }, 50); + return; + } + div = this.getDragEl(); + if (!div) { + div = document.createElement('div'); + div.id = this.dragElId; + div.setAttribute('role', 'presentation'); + s = div.style; + s.position = 'absolute'; + s.visibility = 'hidden'; + s.cursor = 'move'; + s.border = '2px solid #aaa'; + s.zIndex = 999; + body.insertBefore(div, body.firstChild); + } +}, initFrame:function() { + this.createFrame(); +}, applyConfig:function() { + this.callParent(); + this.resizeFrame = this.config.resizeFrame !== false; + this.centerFrame = this.config.centerFrame; + this.setDragElId(this.config.dragElId || Ext.dd.DDProxy.dragElId); +}, showFrame:function(iPageX, iPageY) { + var me = this, dragEl = me.getDragEl(), s = dragEl.style; + me._resizeProxy(); + if (me.centerFrame) { + me.setDelta(Math.round(parseInt(s.width, 10) / 2), Math.round(parseInt(s.height, 10) / 2)); + } + me.setDragElPos(iPageX, iPageY); + Ext.fly(dragEl).show(); +}, _resizeProxy:function() { + if (this.resizeFrame) { + var el = this.getEl(); + Ext.fly(this.getDragEl()).setSize(el.offsetWidth, el.offsetHeight); + } +}, b4MouseDown:function(e) { + var xy = e.getXY(), x = xy[0], y = xy[1]; + this.autoOffset(x, y); + this.setDragElPos(x, y); +}, b4StartDrag:function(x, y) { + this.showFrame(x, y); +}, b4EndDrag:function(e) { + Ext.fly(this.getDragEl()).hide(); +}, endDrag:function(e) { + var lel = this.getEl(), del = this.getDragEl(); + del.style.visibility = ''; + this.beforeMove(); + lel.style.visibility = 'hidden'; + Ext.dd.DDM.moveToEl(lel, del); + del.style.visibility = 'hidden'; + lel.style.visibility = ''; + this.afterDrag(); +}, beforeMove:function() { +}, afterDrag:function() { +}, toString:function() { + return 'DDProxy ' + this.id; +}}); +Ext.define('Ext.dd.StatusProxy', {extend:Ext.Component, animRepair:false, childEls:['ghost'], renderTpl:['\x3cdiv class\x3d"' + Ext.baseCSSPrefix + 'dd-drop-icon" role\x3d"presentation"\x3e\x3c/div\x3e' + '\x3cdiv id\x3d"{id}-ghost" data-ref\x3d"ghost" class\x3d"' + Ext.baseCSSPrefix + 'dd-drag-ghost" role\x3d"presentation"\x3e\x3c/div\x3e'], repairCls:Ext.baseCSSPrefix + 'dd-drag-repair', ariaRole:'presentation', skipLayout:true, constructor:function(config) { + var me = this; + config = config || {}; + Ext.apply(me, {hideMode:'visibility', hidden:true, floating:true, id:me.id || Ext.id(), cls:Ext.baseCSSPrefix + 'dd-drag-proxy ' + this.dropNotAllowed, shadow:config.shadow || false, renderTo:Ext.getDetachedBody()}); + me.callParent(arguments); + this.dropStatus = this.dropNotAllowed; +}, dropAllowed:Ext.baseCSSPrefix + 'dd-drop-ok', dropNotAllowed:Ext.baseCSSPrefix + 'dd-drop-nodrop', setStatus:function(cssClass) { + cssClass = cssClass || this.dropNotAllowed; + if (this.dropStatus !== cssClass) { + this.el.replaceCls(this.dropStatus, cssClass); + this.dropStatus = cssClass; + } +}, reset:function(clearGhost) { + var me = this, clsPrefix = Ext.baseCSSPrefix + 'dd-drag-proxy '; + me.el.replaceCls(clsPrefix + me.dropAllowed, clsPrefix + me.dropNotAllowed); + me.dropStatus = me.dropNotAllowed; + if (clearGhost) { + me.ghost.setHtml(''); + } +}, update:function(html) { + if (typeof html === 'string') { + this.ghost.setHtml(html); + } else { + this.ghost.setHtml(''); + html.style.margin = '0'; + this.ghost.dom.appendChild(html); + } + var el = this.ghost.dom.firstChild; + if (el) { + Ext.fly(el).setStyle('float', 'none'); + } +}, getGhost:function() { + return this.ghost; +}, hide:function(clear) { + this.callParent(); + if (clear) { + this.reset(true); + } +}, stop:function() { + if (this.anim && this.anim.isAnimated && this.anim.isAnimated()) { + this.anim.stop(); + } +}, sync:function() { + this.el.syncUnderlays(); +}, repair:function(xy, callback, scope) { + var me = this; + me.callback = callback; + me.scope = scope; + if (xy && me.animRepair !== false) { + me.el.addCls(me.repairCls); + me.el.setUnderlaysVisible(false); + me.anim = me.el.animate({duration:me.repairDuration || 500, easing:'ease-out', to:{x:xy[0], y:xy[1]}, stopAnimation:true, callback:me.afterRepair, scope:me}); + } else { + me.afterRepair(); + } +}, afterRepair:function() { + var me = this; + me.hide(true); + me.el.removeCls(me.repairCls); + if (typeof me.callback === 'function') { + me.callback.call(me.scope || me); + } + delete me.callback; + delete me.scope; +}}); +Ext.define('Ext.dd.DragSource', {extend:Ext.dd.DDProxy, dropAllowed:Ext.baseCSSPrefix + 'dd-drop-ok', dropNotAllowed:Ext.baseCSSPrefix + 'dd-drop-nodrop', animRepair:true, repairHighlightColor:'c3daf9', constructor:function(el, config) { + this.el = Ext.get(el); + if (!this.dragData) { + this.dragData = {}; + } + Ext.apply(this, config); + if (!this.proxy) { + this.proxy = new Ext.dd.StatusProxy({id:this.el.id + '-drag-status-proxy', animRepair:this.animRepair}); + } + this.callParent([this.el.dom, this.ddGroup || this.group, {dragElId:this.proxy.id, resizeFrame:false, isTarget:false, scroll:this.scroll === true}]); + this.dragging = false; +}, getDragData:function(e) { + return this.dragData; +}, onDragEnter:function(e, id) { + var target = Ext.dd.DragDropManager.getDDById(id), status; + this.cachedTarget = target; + if (this.beforeDragEnter(target, e, id) !== false) { + if (target.isNotifyTarget) { + status = target.notifyEnter(this, e, this.dragData); + this.proxy.setStatus(status); + } else { + this.proxy.setStatus(this.dropAllowed); + } + if (this.afterDragEnter) { + this.afterDragEnter(target, e, id); + } + } +}, beforeDragEnter:function(target, e, id) { + return true; +}, onDragOver:function(e, id) { + var target = this.cachedTarget || Ext.dd.DragDropManager.getDDById(id), status; + if (this.beforeDragOver(target, e, id) !== false) { + if (target.isNotifyTarget) { + status = target.notifyOver(this, e, this.dragData); + this.proxy.setStatus(status); + } + if (this.afterDragOver) { + this.afterDragOver(target, e, id); + } + } +}, beforeDragOver:function(target, e, id) { + return true; +}, onDragOut:function(e, id) { + var target = this.cachedTarget || Ext.dd.DragDropManager.getDDById(id); + if (this.beforeDragOut(target, e, id) !== false) { + if (target.isNotifyTarget) { + target.notifyOut(this, e, this.dragData); + } + this.proxy.reset(); + if (this.afterDragOut) { + this.afterDragOut(target, e, id); + } + } + this.cachedTarget = null; +}, beforeDragOut:function(target, e, id) { + return true; +}, onDragDrop:function(e, id) { + var target = this.cachedTarget || Ext.dd.DragDropManager.getDDById(id); + if (this.beforeDragDrop(target, e, id) !== false) { + if (target.isNotifyTarget) { + if (target.notifyDrop(this, e, this.dragData) !== false) { + this.onValidDrop(target, e, id); + } else { + this.onInvalidDrop(target, e, id); + } + } else { + this.onValidDrop(target, e, id); + } + if (this.afterDragDrop) { + this.afterDragDrop(target, e, id); + } + } + delete this.cachedTarget; +}, beforeDragDrop:function(target, e, id) { + return true; +}, onValidDrop:function(target, e, id) { + this.hideProxy(); + if (this.afterValidDrop) { + this.afterValidDrop(target, e, id); + } +}, getRepairXY:function(e, data) { + return this.el.getXY(); +}, onInvalidDrop:function(target, e, id) { + var me = this; + if (!e) { + e = target; + target = null; + id = e.getTarget().id; + } + if (me.beforeInvalidDrop(target, e, id) !== false) { + if (me.cachedTarget) { + if (me.cachedTarget.isNotifyTarget) { + me.cachedTarget.notifyOut(me, e, me.dragData); + } + me.cacheTarget = null; + } + me.proxy.repair(me.getRepairXY(e, me.dragData), me.afterRepair, me); + if (me.afterInvalidDrop) { + me.afterInvalidDrop(e, id); + } + } +}, afterRepair:function() { + var me = this; + if (Ext.enableFx) { + me.el.highlight(me.repairHighlightColor); + } + me.dragging = false; +}, beforeInvalidDrop:function(target, e, id) { + return true; +}, handleMouseDown:function(e) { + if (this.dragging) { + return; + } + var data = this.getDragData(e); + if (data && this.onBeforeDrag(data, e) !== false) { + this.dragData = data; + this.proxy.stop(); + this.callParent(arguments); + } +}, onBeforeDrag:function(data, e) { + return true; +}, onStartDrag:Ext.emptyFn, alignElWithMouse:function() { + this.proxy.ensureAttachedToBody(true); + return this.callParent(arguments); +}, startDrag:function(x, y) { + this.proxy.reset(); + this.proxy.hidden = false; + this.dragging = true; + this.proxy.update(''); + this.onInitDrag(x, y); + this.proxy.show(); +}, onInitDrag:function(x, y) { + var clone = this.el.dom.cloneNode(true); + clone.id = Ext.id(); + this.proxy.update(clone); + this.onStartDrag(x, y); + return true; +}, getProxy:function() { + return this.proxy; +}, hideProxy:function() { + this.proxy.hide(); + this.proxy.reset(true); + this.dragging = false; +}, triggerCacheRefresh:function() { + Ext.dd.DDM.refreshCache(this.groups); +}, b4EndDrag:function(e) { +}, endDrag:function(e) { + this.onEndDrag(this.dragData, e); +}, onEndDrag:function(data, e) { +}, autoOffset:function(x, y) { + this.setDelta(-12, -20); +}, destroy:function() { + this.callParent(); + Ext.destroy(this.proxy); +}}); +Ext.define('Ext.panel.Proxy', {alternateClassName:'Ext.dd.PanelProxy', moveOnDrag:true, constructor:function(panel, config) { + var me = this; + me.panel = panel; + me.id = me.panel.id + '-ddproxy'; + Ext.apply(me, config); +}, insertProxy:true, setStatus:Ext.emptyFn, reset:Ext.emptyFn, update:Ext.emptyFn, stop:Ext.emptyFn, sync:Ext.emptyFn, getEl:function() { + return this.ghost.el; +}, getGhost:function() { + return this.ghost; +}, getProxy:function() { + return this.proxy; +}, hide:function() { + var me = this; + if (me.ghost) { + if (me.proxy) { + me.proxy.destroy(); + delete me.proxy; + } + me.panel.unghost(null, me.moveOnDrag); + delete me.ghost; + } +}, show:function() { + var me = this, panelSize; + if (!me.ghost) { + panelSize = me.panel.getSize(); + me.panel.el.setVisibilityMode(Ext.Element.DISPLAY); + me.ghost = me.panel.ghost(); + if (me.insertProxy) { + me.proxy = me.panel.el.insertSibling({role:'presentation', cls:Ext.baseCSSPrefix + 'panel-dd-spacer'}); + me.proxy.setSize(panelSize); + } + } +}, repair:function(xy, callback, scope) { + this.hide(); + Ext.callback(callback, scope || this); +}, moveProxy:function(parentNode, before) { + if (this.proxy) { + parentNode.insertBefore(this.proxy.dom, before); + } +}}); +Ext.define('Ext.panel.DD', {extend:Ext.dd.DragSource, constructor:function(panel, cfg) { + var me = this; + me.panel = panel; + me.dragData = {panel:panel}; + me.panelProxy = new Ext.panel.Proxy(panel, cfg); + me.proxy = me.panelProxy.proxy; + me.callParent([panel.el, cfg]); + me.setupEl(panel); +}, setupEl:function(panel) { + var me = this, header = panel.header, el = panel.body; + if (header) { + me.setHandleElId(header.id); + el = header.el; + } + if (el) { + el.setStyle('cursor', 'move'); + me.scroll = false; + } else { + panel.on('boxready', me.setupEl, me, {single:true}); + } +}, showFrame:Ext.emptyFn, startDrag:Ext.emptyFn, b4StartDrag:function(x, y) { + this.panelProxy.show(); +}, b4MouseDown:function(e) { + var xy = e.getXY(), x = xy[0], y = xy[1]; + this.autoOffset(x, y); +}, onInitDrag:function(x, y) { + this.onStartDrag(x, y); + return true; +}, createFrame:Ext.emptyFn, getDragEl:function(e) { + var ghost = this.panelProxy.ghost; + if (ghost) { + return ghost.el.dom; + } +}, endDrag:function(e) { + this.panelProxy.hide(); + this.panel.saveState(); +}, autoOffset:function(x, y) { + x -= this.startPageX; + y -= this.startPageY; + this.setDelta(x, y); +}, onInvalidDrop:function(target, e, id) { + var me = this; + if (me.beforeInvalidDrop(target, e, id) !== false) { + if (me.cachedTarget) { + if (me.cachedTarget.isNotifyTarget) { + me.cachedTarget.notifyOut(me, e, me.dragData); + } + me.cacheTarget = null; + } + if (me.afterInvalidDrop) { + me.afterInvalidDrop(e, id); + } + } +}}); +Ext.define('Ext.layout.component.Dock', {extend:Ext.layout.component.Component, alias:'layout.dock', alternateClassName:'Ext.layout.component.AbstractDock', type:'dock', horzAxisProps:{name:'horz', oppositeName:'vert', dockBegin:'left', dockEnd:'right', horizontal:true, marginBegin:'margin-left', maxSize:'maxWidth', minSize:'minWidth', pos:'x', setSize:'setWidth', shrinkWrapDock:'shrinkWrapDockWidth', size:'width', sizeModel:'widthModel'}, vertAxisProps:{name:'vert', oppositeName:'horz', dockBegin:'top', +dockEnd:'bottom', horizontal:false, marginBegin:'margin-top', maxSize:'maxHeight', minSize:'minHeight', pos:'y', setSize:'setHeight', shrinkWrapDock:'shrinkWrapDockHeight', size:'height', sizeModel:'heightModel'}, initializedBorders:-1, horizontalCollapsePolicy:{width:true, x:true}, verticalCollapsePolicy:{height:true, y:true}, finishRender:function() { + var me = this, target, items; + me.callParent(); + target = me.getRenderTarget(); + items = me.getDockedItems(); + me.finishRenderItems(target, items); +}, isItemBoxParent:function(itemContext) { + return true; +}, isItemShrinkWrap:function(item) { + return true; +}, noBorderClasses:[Ext.baseCSSPrefix + 'docked-noborder-top', Ext.baseCSSPrefix + 'docked-noborder-right', Ext.baseCSSPrefix + 'docked-noborder-bottom', Ext.baseCSSPrefix + 'docked-noborder-left'], noBorderClassesSides:{top:Ext.baseCSSPrefix + 'docked-noborder-top', right:Ext.baseCSSPrefix + 'docked-noborder-right', bottom:Ext.baseCSSPrefix + 'docked-noborder-bottom', left:Ext.baseCSSPrefix + 'docked-noborder-left'}, borderWidthProps:{top:'border-top-width', right:'border-right-width', bottom:'border-bottom-width', +left:'border-left-width'}, _itemCls:Ext.baseCSSPrefix + 'docked', handleItemBorders:function() { + var me = this, owner = me.owner, borders, docked, lastItems = me.lastDockedItems, oldBorders = me.borders, currentGeneration = owner.dockedItems.generation, noBorderClassesSides = me.noBorderClassesSides, borderWidthProps = me.borderWidthProps, i, ln, item, dock, side, collapsed = me.collapsed; + if (me.initializedBorders === currentGeneration || owner.border && !owner.manageBodyBorders || owner.collapsed && owner.collapseMode === 'mini') { + return; + } + me.initializedBorders = currentGeneration; + me.collapsed = false; + me.lastDockedItems = docked = me.getLayoutItems(); + me.collapsed = collapsed; + borders = {top:[], right:[], bottom:[], left:[]}; + for (i = 0, ln = docked.length; i < ln; i++) { + item = docked[i]; + dock = item.dock; + if (item.ignoreBorderManagement) { + continue; + } + if (!borders[dock].satisfied) { + borders[dock].push(item); + borders[dock].satisfied = true; + } + if (!borders.top.satisfied && dock !== 'bottom') { + borders.top.push(item); + } + if (!borders.right.satisfied && dock !== 'left') { + borders.right.push(item); + } + if (!borders.bottom.satisfied && dock !== 'top') { + borders.bottom.push(item); + } + if (!borders.left.satisfied && dock !== 'right') { + borders.left.push(item); + } + } + if (lastItems) { + for (i = 0, ln = lastItems.length; i < ln; i++) { + item = lastItems[i]; + if (!item.destroyed && !item.ignoreBorderManagement && !owner.manageBodyBorders) { + item.removeCls(me.noBorderClasses); + } + } + } + if (oldBorders) { + for (side in oldBorders) { + if (owner.manageBodyBorders && oldBorders[side].satisfied) { + owner.setBodyStyle(borderWidthProps[side], ''); + } + } + } + for (side in borders) { + ln = borders[side].length; + if (!owner.manageBodyBorders) { + for (i = 0; i < ln; i++) { + borders[side][i].addCls(noBorderClassesSides[side]); + } + if (!borders[side].satisfied && !owner.bodyBorder || owner.bodyBorder === false) { + owner.addBodyCls(noBorderClassesSides[side]); + } else { + owner.removeBodyCls(noBorderClassesSides[side]); + } + } else { + if (borders[side].satisfied) { + owner.setBodyStyle(borderWidthProps[side], '1px'); + } + } + } + me.borders = borders; +}, beforeLayoutCycle:function(ownerContext) { + var me = this, owner = me.owner, shrinkWrap = me.sizeModels.shrinkWrap, shrinkWrapDock = owner.shrinkWrapDock, collapsedHorz, collapsedVert; + if (owner.collapsed) { + if (owner.collapsedVertical()) { + collapsedVert = true; + ownerContext.measureDimensions = 1; + } else { + collapsedHorz = true; + ownerContext.measureDimensions = 2; + } + } + ownerContext.collapsedVert = collapsedVert; + ownerContext.collapsedHorz = collapsedHorz; + if (collapsedVert) { + ownerContext.heightModel = shrinkWrap; + } else { + if (collapsedHorz) { + ownerContext.widthModel = shrinkWrap; + } + } + shrinkWrapDock = shrinkWrapDock === true ? 3 : shrinkWrapDock || 0; + ownerContext.shrinkWrapDockHeight = shrinkWrapDock & 1 && ownerContext.heightModel.shrinkWrap; + ownerContext.shrinkWrapDockWidth = shrinkWrapDock & 2 && ownerContext.widthModel.shrinkWrap; +}, beginLayout:function(ownerContext) { + var me = this, owner = me.owner, docked = me.getLayoutItems(), layoutContext = ownerContext.context, dockedItemCount = docked.length, lastCollapsedState = me.lastCollapsedState, dockedItems, i, item, itemContext, offsets, collapsed, dock; + me.callParent(arguments); + collapsed = owner.getCollapsed(); + if (collapsed !== lastCollapsedState && lastCollapsedState !== undefined) { + if (me.owner.collapsed) { + ownerContext.isCollapsingOrExpanding = 1; + owner.addClsWithUI(owner.collapsedCls); + } else { + ownerContext.isCollapsingOrExpanding = 2; + owner.removeClsWithUI(owner.collapsedCls); + ownerContext.lastCollapsedState = me.lastCollapsedState; + } + } + me.lastCollapsedState = collapsed; + ownerContext.dockedItems = dockedItems = []; + for (i = 0; i < dockedItemCount; i++) { + item = docked[i]; + if (item.rendered) { + dock = item.dock; + itemContext = layoutContext.getCmp(item); + itemContext.dockedAt = {x:0, y:0}; + itemContext.offsets = offsets = Ext.Element.parseBox(item.offsets || 0); + itemContext.horizontal = dock === 'top' || dock === 'bottom'; + offsets.width = offsets.left + offsets.right; + offsets.height = offsets.top + offsets.bottom; + dockedItems.push(itemContext); + } + } + ownerContext.bodyContext = ownerContext.getEl('body'); +}, beginLayoutCycle:function(ownerContext) { + var me = this, docked = ownerContext.dockedItems, len = docked.length, owner = me.owner, frameBody = owner.frameBody, lastHeightModel = me.lastHeightModel, i, item, dock; + me.callParent(arguments); + if (me.owner.manageHeight) { + if (me.lastBodyDisplay) { + owner.body.dom.style.display = me.lastBodyDisplay = ''; + } + } else { + if (me.lastBodyDisplay !== 'inline-block') { + owner.body.dom.style.display = me.lastBodyDisplay = 'inline-block'; + } + if (lastHeightModel && lastHeightModel.shrinkWrap && !ownerContext.heightModel.shrinkWrap) { + owner.body.dom.style.marginBottom = ''; + } + } + if (ownerContext.widthModel.auto) { + if (ownerContext.widthModel.shrinkWrap) { + owner.el.setWidth(null); + } + owner.body.setWidth(null); + if (frameBody) { + frameBody.setWidth(null); + } + } + if (ownerContext.heightModel.auto) { + owner.body.setHeight(null); + if (frameBody) { + frameBody.setHeight(null); + } + } + if (ownerContext.collapsedVert) { + ownerContext.setContentHeight(0); + } else { + if (ownerContext.collapsedHorz) { + ownerContext.setContentWidth(0); + } + } + for (i = 0; i < len; i++) { + item = docked[i].target; + dock = item.dock; + if (dock === 'right') { + item.setLocalX(0); + } else { + if (dock !== 'left') { + continue; + } + } + } +}, calculate:function(ownerContext) { + var me = this, measure = me.measureAutoDimensions(ownerContext, ownerContext.measureDimensions), state = ownerContext.state, horzDone = state.horzDone, vertDone = state.vertDone, bodyContext = ownerContext.bodyContext, framing, horz, vert, forward, backward; + ownerContext.borderInfo || ownerContext.getBorderInfo(); + ownerContext.paddingInfo || ownerContext.getPaddingInfo(); + ownerContext.frameInfo || ownerContext.getFrameInfo(); + bodyContext.borderInfo || bodyContext.getBorderInfo(); + bodyContext.paddingInfo || bodyContext.getPaddingInfo(); + if (!ownerContext.frameBorder) { + if (!(framing = ownerContext.framing)) { + ownerContext.frameBorder = ownerContext.borderInfo; + ownerContext.framePadding = ownerContext.paddingInfo; + } else { + ownerContext.frameBorder = framing.border; + ownerContext.framePadding = framing.padding; + } + } + horz = !horzDone && me.createAxis(ownerContext, measure.contentWidth, ownerContext.widthModel, me.horzAxisProps, ownerContext.collapsedHorz); + vert = !vertDone && me.createAxis(ownerContext, measure.contentHeight, ownerContext.heightModel, me.vertAxisProps, ownerContext.collapsedVert); + for (forward = 0, backward = ownerContext.dockedItems.length; backward--; ++forward) { + if (horz) { + me.dockChild(ownerContext, horz, backward, forward); + } + if (vert) { + me.dockChild(ownerContext, vert, backward, forward); + } + } + if (horz && me.finishAxis(ownerContext, horz)) { + state.horzDone = horzDone = horz; + } + if (vert && me.finishAxis(ownerContext, vert)) { + state.vertDone = vertDone = vert; + } + if (horzDone && vertDone && me.finishConstraints(ownerContext, horzDone, vertDone)) { + me.finishPositions(ownerContext, horzDone, vertDone); + } else { + me.done = false; + } +}, createAxis:function(ownerContext, contentSize, sizeModel, axisProps, collapsedAxis) { + var me = this, begin = 0, owner = me.owner, maxSize = owner[axisProps.maxSize], minSize = owner[axisProps.minSize] || 0, dockBegin = axisProps.dockBegin, dockEnd = axisProps.dockEnd, posProp = axisProps.pos, sizeProp = axisProps.size, hasMaxSize = maxSize != null, shrinkWrap = sizeModel.shrinkWrap, bodyContext, framing, padding, end; + if (shrinkWrap) { + if (collapsedAxis) { + end = 0; + } else { + bodyContext = ownerContext.bodyContext; + end = contentSize + bodyContext.borderInfo[sizeProp]; + } + } else { + framing = ownerContext.frameBorder; + padding = ownerContext.framePadding; + begin = framing[dockBegin] + padding[dockBegin]; + end = ownerContext.getProp(sizeProp) - (framing[dockEnd] + padding[dockEnd]); + } + return {shrinkWrap:sizeModel.shrinkWrap, sizeModel:sizeModel, initialBegin:begin, begin:begin, end:end, collapsed:collapsedAxis, horizontal:axisProps.horizontal, ignoreFrameBegin:null, ignoreFrameEnd:null, initialSize:end - begin, maxChildSize:0, hasMinMaxConstraints:(minSize || hasMaxSize) && sizeModel.shrinkWrap, minSize:minSize, maxSize:hasMaxSize ? maxSize : 1000000000, bodyPosProp:me.owner.manageHeight ? posProp : axisProps.marginBegin, dockBegin:dockBegin, dockEnd:dockEnd, posProp:posProp, + sizeProp:sizeProp, setSize:axisProps.setSize, shrinkWrapDock:ownerContext[axisProps.shrinkWrapDock], sizeModelName:axisProps.sizeModel, dockedPixelsEnd:0}; +}, dockChild:function(ownerContext, axis, backward, forward) { + var me = this, itemContext = ownerContext.dockedItems[axis.shrinkWrap ? backward : forward], item = itemContext.target, dock = item.dock, sizeProp = axis.sizeProp, pos, size; + if (item.ignoreParentFrame && ownerContext.isCollapsingOrExpanding) { + itemContext.clearMarginCache(); + } + if (!itemContext.marginInfo) { + itemContext.getMarginInfo(); + } + if (dock === axis.dockBegin) { + if (axis.shrinkWrap) { + pos = me.dockOutwardBegin(ownerContext, itemContext, item, axis); + } else { + pos = me.dockInwardBegin(ownerContext, itemContext, item, axis); + } + } else { + if (dock === axis.dockEnd) { + if (axis.shrinkWrap) { + pos = me.dockOutwardEnd(ownerContext, itemContext, item, axis); + } else { + pos = me.dockInwardEnd(ownerContext, itemContext, item, axis); + } + } else { + if (axis.shrinkWrapDock) { + size = itemContext.getProp(sizeProp) + itemContext.marginInfo[sizeProp]; + axis.maxChildSize = Math.max(axis.maxChildSize, size); + pos = 0; + } else { + pos = me.dockStretch(ownerContext, itemContext, item, axis); + } + } + } + itemContext.dockedAt[axis.posProp] = pos; +}, dockInwardBegin:function(ownerContext, itemContext, item, axis) { + var pos = axis.begin, sizeProp = axis.sizeProp, ignoreParentFrame = item.ignoreParentFrame, delta, size, dock; + if (ignoreParentFrame) { + axis.ignoreFrameBegin = itemContext; + dock = item.dock; + delta = ownerContext.frameBorder[dock]; + pos -= delta + ownerContext.framePadding[dock]; + } + if (!item.overlay) { + size = itemContext.getProp(sizeProp) + itemContext.marginInfo[sizeProp]; + axis.begin += size; + if (ignoreParentFrame) { + axis.begin -= delta; + } + } + return pos; +}, dockInwardEnd:function(ownerContext, itemContext, item, axis) { + var sizeProp = axis.sizeProp, size = itemContext.getProp(sizeProp) + itemContext.marginInfo[sizeProp], pos = axis.end - size, frameEnd; + if (!item.overlay) { + axis.end = pos; + } + if (item.ignoreParentFrame) { + axis.ignoreFrameEnd = itemContext; + frameEnd = ownerContext.frameBorder[item.dock]; + pos += frameEnd + ownerContext.framePadding[item.dock]; + axis.end += frameEnd; + } + return pos; +}, dockOutwardBegin:function(ownerContext, itemContext, item, axis) { + var pos = axis.begin, sizeProp = axis.sizeProp, size; + if (axis.collapsed) { + axis.ignoreFrameBegin = axis.ignoreFrameEnd = itemContext; + } else { + if (item.ignoreParentFrame) { + axis.ignoreFrameBegin = itemContext; + } + } + if (!item.overlay) { + size = itemContext.getProp(sizeProp) + itemContext.marginInfo[sizeProp]; + pos -= size; + axis.begin = pos; + } + return pos; +}, dockOutwardEnd:function(ownerContext, itemContext, item, axis) { + var pos = axis.end, sizeProp = axis.sizeProp, size; + size = itemContext.getProp(sizeProp) + itemContext.marginInfo[sizeProp]; + if (axis.collapsed) { + axis.ignoreFrameBegin = axis.ignoreFrameEnd = itemContext; + } else { + if (item.ignoreParentFrame) { + axis.ignoreFrameEnd = itemContext; + } + } + if (!item.overlay) { + axis.end = pos + size; + axis.dockedPixelsEnd += size; + } + return pos; +}, dockStretch:function(ownerContext, itemContext, item, axis) { + var dock = item.dock, sizeProp = axis.sizeProp, horizontal = dock === 'top' || dock === 'bottom', border = ownerContext.frameBorder, offsets = itemContext.offsets, padding = ownerContext.framePadding, endProp = horizontal ? 'right' : 'bottom', startProp = horizontal ? 'left' : 'top', pos = axis.begin + offsets[startProp], margin, size; + if (item.stretch !== false) { + size = axis.end - pos - offsets[endProp]; + if (item.ignoreParentFrame) { + pos -= padding[startProp] + border[startProp]; + size += padding[sizeProp] + border[sizeProp]; + } + margin = itemContext.marginInfo; + size -= margin[sizeProp]; + itemContext[axis.setSize](size); + } + return pos; +}, finishAxis:function(ownerContext, axis) { + if (isNaN(axis.maxChildSize)) { + return false; + } + var axisBegin = axis.begin, size = axis.end - axisBegin, collapsed = axis.collapsed, setSizeMethod = axis.setSize, beginName = axis.dockBegin, endName = axis.dockEnd, padding = ownerContext.framePadding, border = ownerContext.frameBorder, borderBegin = border[beginName], framing = ownerContext.framing, framingBegin = framing && framing[beginName], paddingBegin = collapsed ? 0 : padding[beginName], sizeProp = axis.sizeProp, ignoreFrameBegin = axis.ignoreFrameBegin, ignoreFrameEnd = axis.ignoreFrameEnd, + bodyContext = ownerContext.bodyContext, extraPaddingBegin = Math.max(borderBegin + paddingBegin - framingBegin, 0), bodyPos, bodySize, delta, dirty; + if (axis.shrinkWrap) { + bodySize = axis.initialSize; + if (framing) { + delta = -axisBegin + borderBegin + paddingBegin; + bodyPos = delta - framingBegin - extraPaddingBegin; + } else { + bodyPos = -axisBegin; + delta = bodyPos + paddingBegin; + } + if (!collapsed) { + size += padding[sizeProp]; + } + if (ignoreFrameBegin) { + delta -= borderBegin; + bodyPos -= borderBegin; + ignoreFrameBegin.dockedAt[axis.posProp] -= paddingBegin; + } else { + size += borderBegin; + } + if (collapsed) { + } else { + if (ignoreFrameEnd) { + ignoreFrameEnd.dockedAt[axis.posProp] += padding[endName]; + } else { + size += border[endName]; + } + } + axis.size = size; + if (!axis.horizontal && !this.owner.manageHeight) { + dirty = false; + } + } else { + if (framing) { + delta = 0; + bodyPos = axisBegin - framingBegin - extraPaddingBegin; + } else { + delta = -borderBegin; + bodyPos = axisBegin - paddingBegin - borderBegin; + } + bodySize = size; + } + axis.delta = delta; + bodyContext[setSizeMethod](bodySize, dirty); + bodyContext.setProp(axis.bodyPosProp, bodyPos); + return !isNaN(size); +}, beforeInvalidateShrinkWrapDock:function(itemContext, options) { + var sizeModelName = options.axis.sizeModelName; + if (!itemContext[sizeModelName].constrainedMin) { + itemContext[sizeModelName] = Ext.layout.SizeModel.calculated; + } +}, afterInvalidateShrinkWrapDock:function(itemContext, options) { + var axis = options.axis, me = options.layout, pos; + if (itemContext[axis.sizeModelName].calculated) { + pos = me.dockStretch(options.ownerContext, itemContext, itemContext.target, axis); + itemContext.setProp(axis.posProp, axis.delta + pos); + } +}, finishConstraints:function(ownerContext, horz, vert) { + var me = this, sizeModels = me.sizeModels, publishWidth = horz.shrinkWrap, publishHeight = vert.shrinkWrap, owner = me.owner, dirty, height, width, heightModel, widthModel, size, minSize, maxSize, maxChildSize, desiredSize; + if (publishWidth) { + size = horz.size; + minSize = horz.collapsed ? 0 : horz.minSize; + maxSize = horz.maxSize; + maxChildSize = horz.maxChildSize; + desiredSize = Math.max(size, maxChildSize); + if (desiredSize > maxSize) { + widthModel = sizeModels.constrainedMax; + width = maxSize; + } else { + if (desiredSize < minSize) { + widthModel = sizeModels.constrainedMin; + width = minSize; + } else { + if (size < maxChildSize) { + widthModel = sizeModels.constrainedDock; + owner.dockConstrainedWidth = width = maxChildSize; + } else { + width = size; + } + } + } + } + if (publishHeight) { + size = vert.size; + minSize = vert.collapsed ? 0 : vert.minSize; + maxSize = vert.maxSize; + maxChildSize = vert.maxChildSize; + desiredSize = Math.max(size, maxChildSize + size - vert.initialSize); + if (desiredSize > maxSize) { + heightModel = sizeModels.constrainedMax; + height = maxSize; + } else { + if (desiredSize < minSize) { + heightModel = sizeModels.constrainedMin; + height = minSize; + } else { + if (size < maxChildSize) { + heightModel = sizeModels.constrainedDock; + owner.dockConstrainedHeight = height = maxChildSize; + } else { + if (!ownerContext.collapsedVert && !owner.manageHeight) { + dirty = false; + ownerContext.bodyContext.setProp('margin-bottom', vert.dockedPixelsEnd); + } + height = size; + } + } + } + } + if (widthModel || heightModel) { + if (widthModel && heightModel && widthModel.constrainedMax && heightModel.constrainedByMin) { + ownerContext.invalidate({widthModel:widthModel}); + return false; + } + if (!ownerContext.widthModel.calculatedFromShrinkWrap && !ownerContext.heightModel.calculatedFromShrinkWrap) { + ownerContext.invalidate({widthModel:widthModel, heightModel:heightModel}); + return false; + } + } else { + me.invalidateAxes(ownerContext, horz, vert); + } + if (publishWidth) { + ownerContext.setWidth(width); + if (widthModel) { + ownerContext.widthModel = widthModel; + } + } + if (publishHeight) { + ownerContext.setHeight(height, dirty); + if (heightModel) { + ownerContext.heightModel = heightModel; + } + } + return true; +}, invalidateAxes:function(ownerContext, horz, vert) { + var before = this.beforeInvalidateShrinkWrapDock, after = this.afterInvalidateShrinkWrapDock, horzSize = horz.end - horz.begin, vertSize = vert.initialSize, invalidateHorz = horz.shrinkWrapDock && horz.maxChildSize <= horzSize, invalidateVert = vert.shrinkWrapDock && vert.maxChildSize <= vertSize, dockedItems, len, i, itemContext, itemSize, isHorz, axis, sizeProp; + if (invalidateHorz || invalidateVert) { + if (invalidateVert) { + vert.begin = vert.initialBegin; + vert.end = vert.begin + vert.initialSize; + } + dockedItems = ownerContext.dockedItems; + for (i = 0, len = dockedItems.length; i < len; ++i) { + itemContext = dockedItems[i]; + isHorz = itemContext.horizontal; + axis = null; + if (invalidateHorz && isHorz) { + sizeProp = horz.sizeProp; + itemSize = horzSize; + axis = horz; + } else { + if (invalidateVert && !isHorz) { + sizeProp = vert.sizeProp; + itemSize = vertSize; + axis = vert; + } + } + if (axis) { + itemSize -= itemContext.getMarginInfo()[sizeProp]; + if (itemSize !== itemContext.props[sizeProp]) { + itemContext.invalidate({before:before, after:after, axis:axis, ownerContext:ownerContext, layout:this}); + } + } + } + } +}, finishPositions:function(ownerContext, horz, vert) { + var dockedItems = ownerContext.dockedItems, length = dockedItems.length, deltaX = horz.delta, deltaY = vert.delta, index, itemContext; + for (index = 0; index < length; ++index) { + itemContext = dockedItems[index]; + itemContext.setProp('x', deltaX + itemContext.dockedAt.x); + itemContext.setProp('y', deltaY + itemContext.dockedAt.y); + } +}, finishedLayout:function(ownerContext) { + var me = this, target = ownerContext.target; + me.callParent(arguments); + if (!ownerContext.animatePolicy) { + if (ownerContext.isCollapsingOrExpanding === 1) { + target.afterCollapse(false); + } else { + if (ownerContext.isCollapsingOrExpanding === 2) { + target.afterExpand(false); + } + } + } +}, getAnimatePolicy:function(ownerContext) { + var me = this, lastCollapsedState, policy; + if (ownerContext.isCollapsingOrExpanding === 1) { + lastCollapsedState = me.lastCollapsedState; + } else { + if (ownerContext.isCollapsingOrExpanding === 2) { + lastCollapsedState = ownerContext.lastCollapsedState; + } + } + if (lastCollapsedState === 'left' || lastCollapsedState === 'right') { + policy = me.horizontalCollapsePolicy; + } else { + if (lastCollapsedState === 'top' || lastCollapsedState === 'bottom') { + policy = me.verticalCollapsePolicy; + } + } + return policy; +}, getDockedItems:function(order, beforeBody) { + var me = this, renderedOnly = order === 'visual', all = renderedOnly ? Ext.ComponentQuery.query('[rendered]', me.owner.dockedItems.items) : me.owner.dockedItems.items, sort = all && all.length && order !== false, renderOrder, dock, dockedItems, i, isBefore, length; + if (beforeBody == null) { + dockedItems = sort && !renderedOnly ? all.slice() : all; + } else { + dockedItems = []; + for (i = 0, length = all.length; i < length; ++i) { + dock = all[i].dock; + isBefore = dock === 'top' || dock === 'left'; + if (beforeBody ? isBefore : !isBefore) { + dockedItems.push(all[i]); + } + } + sort = sort && dockedItems.length; + } + if (sort) { + renderOrder = (order = order || 'render') === 'render'; + Ext.Array.sort(dockedItems, function(a, b) { + var aw, bw; + if (renderOrder && (aw = me.owner.dockOrder[a.dock]) !== (bw = me.owner.dockOrder[b.dock])) { + if (!(aw + bw)) { + return aw - bw; + } + } + aw = me.getItemWeight(a, order); + bw = me.getItemWeight(b, order); + if (aw !== undefined && bw !== undefined) { + return aw - bw; + } + return 0; + }); + } + return dockedItems || []; +}, getItemWeight:function(item, order) { + var weight = item.weight || this.owner.defaultDockWeights[item.dock]; + return weight[order] || weight; +}, getLayoutItems:function() { + var me = this, items, itemCount, item, i, result; + if (me.owner.collapsed) { + result = me.owner.getCollapsedDockedItems(); + } else { + items = me.getDockedItems('visual'); + itemCount = items.length; + result = []; + for (i = 0; i < itemCount; i++) { + item = items[i]; + if (!item.hidden) { + result.push(item); + } + } + } + return result; +}, measureContentWidth:function(ownerContext) { + var bodyContext = ownerContext.bodyContext; + return bodyContext.el.getWidth() - bodyContext.getBorderInfo().width; +}, measureContentHeight:function(ownerContext) { + var bodyContext = ownerContext.bodyContext; + return bodyContext.el.getHeight() - bodyContext.getBorderInfo().height; +}, redoLayout:function(ownerContext) { + var me = this, owner = me.owner; + if (ownerContext.isCollapsingOrExpanding === 1) { + if (owner.reExpander) { + owner.reExpander.el.show(); + } + owner.addClsWithUI(owner.collapsedCls); + ownerContext.redo(true); + } else { + if (ownerContext.isCollapsingOrExpanding === 2) { + owner.removeClsWithUI(owner.collapsedCls); + ownerContext.bodyContext.redo(); + } + } +}, renderChildren:function() { + var me = this, items = me.getDockedItems(), target = me.getRenderTarget(); + me.handleItemBorders(); + me.renderItems(items, target); +}, renderItems:function(items, target) { + var me = this, owner = me.owner, dockedItemIds = {}, dockedItemCount = items.length, bodyEl = owner.body, hasFrame = !!owner.frameSize, bodyContainer = owner.bodyContainer, baseIndex, childNodes, childNodeCount, dom, gap, i, item, position, bodyFound; + if (dockedItemCount) { + for (i = 0; i < dockedItemCount; i++) { + item = items[i]; + dockedItemIds[item.id] = item; + } + childNodes = me.getRenderTarget().dom.childNodes; + childNodeCount = childNodes.length; + gap = 0; + for (i = 0; i < childNodeCount; ++i) { + dom = childNodes[i]; + if (hasFrame) { + bodyFound = dom === bodyEl.dom || dom === bodyContainer; + if (!bodyFound && Ext.fly(dom).contains(bodyEl)) { + bodyFound = true; + owner.bodyContainer = dom; + } + } else { + bodyFound = dom === bodyEl.dom; + } + if (bodyFound) { + baseIndex = i; + break; + } + if (dockedItemIds[dom.id]) { + ++gap; + } + } + if (!bodyFound) { + Ext.log.error('Dock layout error for ' + owner.id + ': bodyEl not found!'); + } + baseIndex -= gap; + for (i = 0; i < dockedItemCount; ++i) { + item = items[i]; + position = baseIndex + i; + if (item.dock === 'right' || item.dock === 'bottom') { + ++position; + } + if (!item.rendered) { + me.renderItem(item, target, position); + } else { + if (!me.isValidParent(item, target, position)) { + me.moveItem(item, target, position); + } + } + } + } +}, undoLayout:function(ownerContext) { + var me = this, owner = me.owner; + if (ownerContext.isCollapsingOrExpanding === 1) { + if (owner.reExpander) { + owner.reExpander.el.hide(); + } + owner.removeClsWithUI(owner.collapsedCls); + ownerContext.undo(true); + } else { + if (ownerContext.isCollapsingOrExpanding === 2) { + owner.addClsWithUI(owner.collapsedCls); + ownerContext.bodyContext.undo(); + } + } +}, sizePolicy:{nostretch:{setsWidth:0, setsHeight:0}, horz:{shrinkWrap:{setsWidth:1, setsHeight:0, readsWidth:1}, stretch:{setsWidth:1, setsHeight:0}}, vert:{shrinkWrap:{setsWidth:0, setsHeight:1, readsHeight:1}, stretch:{setsWidth:0, setsHeight:1}}, stretchV:{setsWidth:0, setsHeight:1}, autoStretchH:{readsWidth:1, setsWidth:1, setsHeight:0}, autoStretchV:{readsHeight:1, setsWidth:0, setsHeight:1}}, getItemSizePolicy:function(item, ownerSizeModel) { + var me = this, policy = me.sizePolicy, shrinkWrapDock = me.owner.shrinkWrapDock, dock, vertical; + if (item.stretch === false) { + return policy.nostretch; + } + dock = item.dock; + vertical = dock === 'left' || dock === 'right'; + shrinkWrapDock = shrinkWrapDock === true ? 3 : shrinkWrapDock || 0; + if (vertical) { + policy = policy.vert; + shrinkWrapDock = shrinkWrapDock & 1; + } else { + policy = policy.horz; + shrinkWrapDock = shrinkWrapDock & 2; + } + if (shrinkWrapDock) { + if (!ownerSizeModel) { + ownerSizeModel = me.owner.getSizeModel(); + } + if (ownerSizeModel[vertical ? 'height' : 'width'].shrinkWrap) { + return policy.shrinkWrap; + } + } + return policy.stretch; +}, configureItem:function(item, pos) { + this.callParent(arguments); + item.addCls(this._itemCls); + if (!item.ignoreBorderManagement) { + item.addClsWithUI(this.getDockCls(item.dock)); + } +}, getDockCls:function(dock) { + return 'docked-' + dock; +}, afterRemove:function(item) { + var dom; + this.callParent(arguments); + item.removeCls(this._itemCls); + if (!item.ignoreBorderManagement) { + item.removeClsWithUI(this.getDockCls(item.dock)); + } + dom = item.el.dom; + if (!item.destroying && dom) { + dom.parentNode.removeChild(dom); + } + this.childrenChanged = true; +}, borderCollapseMap:{}, getBorderCollapseTable:function() { + var me = this, map = me.borderCollapseMap, owner = me.owner, baseCls = owner.baseCls, ui = owner.ui, table; + map = map[baseCls] || (map[baseCls] = {}); + table = map[ui]; + if (!table) { + baseCls += '-' + ui + '-outer-border-'; + map[ui] = table = [0, baseCls + 'l', baseCls + 'b', baseCls + 'bl', baseCls + 'r', baseCls + 'rl', baseCls + 'rb', baseCls + 'rbl', baseCls + 't', baseCls + 'tl', baseCls + 'tb', baseCls + 'tbl', baseCls + 'tr', baseCls + 'trl', baseCls + 'trb', baseCls + 'trbl']; + } + return table; +}}); +Ext.define('Ext.theme.neptune.layout.component.Dock', {override:'Ext.layout.component.Dock', noBorderClassTable:[0, Ext.baseCSSPrefix + 'noborder-l', Ext.baseCSSPrefix + 'noborder-b', Ext.baseCSSPrefix + 'noborder-bl', Ext.baseCSSPrefix + 'noborder-r', Ext.baseCSSPrefix + 'noborder-rl', Ext.baseCSSPrefix + 'noborder-rb', Ext.baseCSSPrefix + 'noborder-rbl', Ext.baseCSSPrefix + 'noborder-t', Ext.baseCSSPrefix + 'noborder-tl', Ext.baseCSSPrefix + 'noborder-tb', Ext.baseCSSPrefix + 'noborder-tbl', Ext.baseCSSPrefix + +'noborder-tr', Ext.baseCSSPrefix + 'noborder-trl', Ext.baseCSSPrefix + 'noborder-trb', Ext.baseCSSPrefix + 'noborder-trbl'], edgeMasks:{top:8, right:4, bottom:2, left:1}, handleItemBorders:function() { + var me = this, edges = 0, maskT = 8, maskR = 4, maskB = 2, maskL = 1, owner = me.owner, bodyBorder = owner.bodyBorder, ownerBorder = owner.border, collapsed = me.collapsed, edgeMasks = me.edgeMasks, noBorderCls = me.noBorderClassTable, dockedItemsGen = owner.dockedItems.generation, b, borderCls, docked, edgesTouched, i, ln, item, dock, lastValue, mask, addCls, removeCls; + if (me.initializedBorders === dockedItemsGen) { + return; + } + addCls = []; + removeCls = []; + borderCls = me.getBorderCollapseTable(); + noBorderCls = me.getBorderClassTable ? me.getBorderClassTable() : noBorderCls; + me.initializedBorders = dockedItemsGen; + me.collapsed = false; + docked = me.getDockedItems('visual'); + me.collapsed = collapsed; + for (i = 0, ln = docked.length; i < ln; i++) { + item = docked[i]; + if (item.ignoreBorderManagement) { + continue; + } + dock = item.dock; + mask = edgesTouched = 0; + addCls.length = 0; + removeCls.length = 0; + if (dock !== 'bottom') { + if (edges & maskT) { + b = item.border; + } else { + b = ownerBorder; + if (b !== false) { + edgesTouched += maskT; + } + } + if (b === false) { + mask += maskT; + } + } + if (dock !== 'left') { + if (edges & maskR) { + b = item.border; + } else { + b = ownerBorder; + if (b !== false) { + edgesTouched += maskR; + } + } + if (b === false) { + mask += maskR; + } + } + if (dock !== 'top') { + if (edges & maskB) { + b = item.border; + } else { + b = ownerBorder; + if (b !== false) { + edgesTouched += maskB; + } + } + if (b === false) { + mask += maskB; + } + } + if (dock !== 'right') { + if (edges & maskL) { + b = item.border; + } else { + b = ownerBorder; + if (b !== false) { + edgesTouched += maskL; + } + } + if (b === false) { + mask += maskL; + } + } + if ((lastValue = item.lastBorderMask) !== mask) { + item.lastBorderMask = mask; + if (lastValue) { + removeCls[0] = noBorderCls[lastValue]; + } + if (mask) { + addCls[0] = noBorderCls[mask]; + } + } + if ((lastValue = item.lastBorderCollapse) !== edgesTouched) { + item.lastBorderCollapse = edgesTouched; + if (lastValue) { + removeCls[removeCls.length] = borderCls[lastValue]; + } + if (edgesTouched) { + addCls[addCls.length] = borderCls[edgesTouched]; + } + } + if (removeCls.length) { + item.removeCls(removeCls); + } + if (addCls.length) { + item.addCls(addCls); + } + edges |= edgeMasks[dock]; + } + mask = edgesTouched = 0; + addCls.length = 0; + removeCls.length = 0; + if (edges & maskT) { + b = bodyBorder; + } else { + b = ownerBorder; + if (b !== false) { + edgesTouched += maskT; + } + } + if (b === false) { + mask += maskT; + } + if (edges & maskR) { + b = bodyBorder; + } else { + b = ownerBorder; + if (b !== false) { + edgesTouched += maskR; + } + } + if (b === false) { + mask += maskR; + } + if (edges & maskB) { + b = bodyBorder; + } else { + b = ownerBorder; + if (b !== false) { + edgesTouched += maskB; + } + } + if (b === false) { + mask += maskB; + } + if (edges & maskL) { + b = bodyBorder; + } else { + b = ownerBorder; + if (b !== false) { + edgesTouched += maskL; + } + } + if (b === false) { + mask += maskL; + } + if ((lastValue = me.lastBodyBorderMask) !== mask) { + me.lastBodyBorderMask = mask; + if (lastValue) { + removeCls[0] = noBorderCls[lastValue]; + } + if (mask) { + addCls[0] = noBorderCls[mask]; + } + } + if ((lastValue = me.lastBodyBorderCollapse) !== edgesTouched) { + me.lastBodyBorderCollapse = edgesTouched; + if (lastValue) { + removeCls[removeCls.length] = borderCls[lastValue]; + } + if (edgesTouched) { + addCls[addCls.length] = borderCls[edgesTouched]; + } + } + if (removeCls.length) { + owner.removeBodyCls(removeCls); + } + if (addCls.length) { + owner.addBodyCls(addCls); + } +}, onRemove:function(item) { + var me = this, lastBorderMask = item.lastBorderMask, lastBorderCollapse = item.lastBorderCollapse; + if (!item.destroyed && !item.ignoreBorderManagement) { + if (lastBorderMask) { + item.lastBorderMask = 0; + item.removeCls(me.noBorderClassTable[lastBorderMask]); + } + if (lastBorderCollapse) { + item.lastBorderCollapse = 0; + item.removeCls(me.getBorderCollapseTable()[lastBorderCollapse]); + } + } + me.callParent([item]); +}}); +Ext.define('Ext.util.Memento', function() { + function captureOne(src, target, prop, prefix) { + src[prefix ? prefix + prop : prop] = target[prop]; + } + function removeOne(src, target, prop) { + delete src[prop]; + } + function restoreOne(src, target, prop, prefix) { + var name = prefix ? prefix + prop : prop, value = src[name]; + if (value || src.hasOwnProperty(name)) { + restoreValue(target, prop, value); + } + } + function restoreValue(target, prop, value) { + if (Ext.isDefined(value)) { + target[prop] = value; + } else { + delete target[prop]; + } + } + function doMany(doOne, src, target, props, prefix) { + if (src) { + if (Ext.isArray(props)) { + var p, pLen = props.length; + for (p = 0; p < pLen; p++) { + doOne(src, target, props[p], prefix); + } + } else { + doOne(src, target, props, prefix); + } + } + } + return {data:null, target:null, constructor:function(target, props) { + this.data = {}; + if (target) { + this.target = target; + if (props) { + this.capture(props); + } + } + }, capture:function(props, target, prefix) { + var me = this; + doMany(captureOne, me.data || (me.data = {}), target || me.target, props, prefix); + }, remove:function(props) { + doMany(removeOne, this.data, null, props); + }, restore:function(props, clear, target, prefix) { + doMany(restoreOne, this.data, target || this.target, props, prefix); + if (clear !== false) { + this.remove(props); + } + }, restoreAll:function(clear, target) { + var me = this, t = target || this.target, data = me.data, prop; + clear = clear !== false; + for (prop in data) { + if (data.hasOwnProperty(prop)) { + restoreValue(t, prop, data[prop]); + if (clear) { + delete data[prop]; + } + } + } + }}; +}()); +Ext.define('Ext.container.DockingContainer', {isDockingContainer:true, defaultDockWeights:{top:{render:1, visual:1}, left:{render:3, visual:5}, right:{render:5, visual:7}, bottom:{render:7, visual:3}}, dockOrder:{top:-1, left:-1, right:1, bottom:1}, horizontalDocks:0, tabGuard:false, tabGuardTpl:'\x3cdiv id\x3d"{id}-{tabGuardEl}" data-ref\x3d"{tabGuardEl}" tabIndex\x3d"0" class\x3d"' + Ext.baseCSSPrefix + 'tab-guard ' + Ext.baseCSSPrefix + 'tab-guard-{tabGuard}" ' + '\x3e\x3c/div\x3e', addDocked:function(items, +pos) { + var me = this, rendered = me.rendered, i = 0, dockedItems = me.dockedItems, lastIndex = dockedItems.getCount(), index, instanced, item, length; + items = me.prepareItems(items); + length = items.length; + if (rendered) { + Ext.suspendLayouts(); + } + if (pos === undefined) { + pos = lastIndex; + } else { + pos = Math.min(pos, lastIndex); + } + for (; i < length; i++) { + item = items[i]; + item.dock = item.dock || 'top'; + if (item.dock === 'left' || item.dock === 'right') { + me.horizontalDocks++; + } + index = pos + i; + dockedItems.insert(index, item); + instanced = !!item.instancedCmp; + delete item.instancedCmp; + item.onAdded(me, index, instanced); + delete item.$initParent; + if (me.onDockedAdd !== Ext.emptyFn) { + me.onDockedAdd(item); + } + if (me.hasListeners.dockedadd) { + me.fireEvent('dockedadd', me, item, index); + } + } + if (me.rendered) { + me.updateLayout(); + Ext.resumeLayouts(true); + } + return items; +}, destroyDockedItems:function() { + var dockedItems = this.dockedItems, c; + if (dockedItems) { + while (c = dockedItems.first()) { + this.removeDocked(c, true); + } + } +}, doRenderDockedItems:function(out, renderData, after) { + var me = renderData.$comp, layout = me.componentLayout, tabGuard = me.tabGuard && me.getTpl('tabGuardTpl'), items, tree; + if (layout.getDockedItems && !renderData.$skipDockedItems) { + if (tabGuard && !after) { + renderData.tabGuard = 'before'; + me.addChildEl(renderData.tabGuardEl = 'tabGuardBeforeEl'); + tabGuard.applyOut(renderData, out); + } + items = layout.getDockedItems('render', !after); + tree = items && layout.getItemsRenderTree(items); + if (tree) { + Ext.DomHelper.generateMarkup(tree, out); + } + if (tabGuard && after) { + renderData.tabGuard = 'after'; + me.addChildEl(renderData.tabGuardEl = 'tabGuardAfterEl'); + tabGuard.applyOut(renderData, out); + } + } +}, getDockedComponent:function(comp) { + if (Ext.isObject(comp)) { + comp = comp.getItemId(); + } + return this.dockedItems.get(comp); +}, getDockedItems:function(selector, beforeBody) { + var dockedItems = this.getComponentLayout().getDockedItems('render', beforeBody); + if (selector && dockedItems.length) { + dockedItems = Ext.ComponentQuery.query(selector, dockedItems); + } + return dockedItems; +}, getDockingRefItems:function(deep, containerItems) { + var selector = deep && '*,* *', dockedItems = this.getDockedItems(selector, true), items; + dockedItems.push.apply(dockedItems, containerItems); + items = this.getDockedItems(selector, false); + dockedItems.push.apply(dockedItems, items); + return dockedItems; +}, initDockingItems:function() { + var me = this, items = me.dockedItems; + if (!items || !items.isMixedCollection) { + me.dockedItems = new Ext.util.ItemCollection; + if (items) { + me.addDocked(items); + } + } +}, insertDocked:function(pos, items) { + this.addDocked(items, pos); +}, onDockedAdd:Ext.emptyFn, onDockedRemove:Ext.emptyFn, removeDocked:function(item, autoDestroy) { + var me = this, layout, hasLayout; + autoDestroy = autoDestroy === true || autoDestroy !== false && me.autoDestroy; + if (!me.dockedItems.contains(item)) { + return item; + } + if (item.dock === 'left' || item.dock === 'right') { + me.horizontalDocks--; + } + layout = me.componentLayout; + hasLayout = layout && me.rendered; + if (hasLayout) { + layout.onRemove(item); + } + me.dockedItems.remove(item); + item.onRemoved(item.destroying || autoDestroy); + me.onDockedRemove(item); + if (autoDestroy) { + item.destroy(); + } else { + if (hasLayout) { + layout.afterRemove(item); + } + } + if (me.hasListeners.dockedremove) { + me.fireEvent('dockedremove', me, item); + } + if (!me.destroying) { + me.updateLayout(); + } + return item; +}, moveDocked:function(item, side) { + var me = this; + if (me.rendered) { + Ext.suspendLayouts(); + } + me.removeDocked(item, false); + item.dock = side; + me.addDocked(item); + if (me.rendered) { + if (item.frame) { + Ext.getDetachedBody().appendChild(item.el); + item.updateFrame(); + } + Ext.resumeLayouts(true); + } +}, setupDockingRenderTpl:function(renderTpl) { + renderTpl.renderDockedItems = this.doRenderDockedItems; +}}); +Ext.define('Ext.panel.Panel', {extend:Ext.container.Container, alias:'widget.panel', alternateClassName:'Ext.Panel', mixins:{docking:Ext.container.DockingContainer}, childEls:['body'], renderTpl:['\x3ctpl if\x3d"headingText"\x3e', '\x3cdiv id\x3d"{id}-headingEl" data-ref\x3d"headingEl" role\x3d"heading"', ' class\x3d"', Ext.baseCSSPrefix, 'hidden-clip" style\x3d"height:0"\x3e', '{headingText}', '\x3c/div\x3e', '\x3c/tpl\x3e', '{% this.renderDockedItems(out,values,0); %}', '\x3cdiv id\x3d"{id}-body" data-ref\x3d"body" class\x3d"{baseCls}-body\x3ctpl if\x3d"bodyCls"\x3e {bodyCls}\x3c/tpl\x3e', +' {baseCls}-body-{ui}\x3ctpl if\x3d"uiCls"\x3e', '\x3ctpl for\x3d"uiCls"\x3e {parent.baseCls}-body-{parent.ui}-{.}\x3c/tpl\x3e', '\x3c/tpl\x3e{childElCls}"', '\x3ctpl if\x3d"bodyAriaAttributes"\x3e', '\x3ctpl foreach\x3d"bodyAriaAttributes"\x3e {$}\x3d"{.}"\x3c/tpl\x3e', '\x3ctpl else\x3e', ' role\x3d"presentation"', '\x3c/tpl\x3e', '\x3ctpl if\x3d"bodyStyle"\x3e style\x3d"{bodyStyle}"\x3c/tpl\x3e\x3e', '{%this.renderContainer(out,values);%}', '\x3c/div\x3e', '{% this.renderDockedItems(out,values,1); %}'], +headerPosition:'top', iconAlign:'left', titleAlign:'left', titleRotation:'default', beforeRenderConfig:{glyph:null, headerPosition:null, icon:null, iconAlign:null, iconCls:null, title:null, titleAlign:null, titleRotation:null}, animCollapse:Ext.enableFx, border:true, closable:false, closeAction:'destroy', closeToolText:'Close panel', collapsed:false, collapsedCls:'collapsed', collapseFirst:true, collapsible:undefined, collapseToolText:'Collapse panel', expandToolText:'Expand panel', constrain:false, +constrainHeader:false, dockedItems:null, tbar:null, bbar:null, fbar:null, lbar:null, rbar:null, buttons:null, floatable:true, frame:false, frameHeader:true, hideCollapseTool:false, manageHeight:true, maskElement:'el', minButtonWidth:75, preventHeader:false, shrinkWrapDock:false, titleCollapse:undefined, baseCls:Ext.baseCSSPrefix + 'panel', bodyPosProps:{x:'x', y:'y'}, componentLayout:'dock', contentPaddingProperty:'bodyPadding', emptyArray:[], isPanel:true, defaultBindProperty:'title', addBodyCls:function(cls) { + var me = this, body = me.rendered ? me.body : me.getProtoBody(); + body.addCls(cls); + return me; +}, addTool:function(tools) { + if (!Ext.isArray(tools)) { + tools = [tools]; + } + var me = this, header = me.header, tLen = tools.length, curTools = me.tools, t, tool; + if (!header || !header.isHeader) { + header = null; + if (!curTools) { + me.tools = curTools = []; + } + } + for (t = 0; t < tLen; t++) { + tool = tools[t]; + tool.toolOwner = me; + if (header) { + header.addTool(tool); + } else { + curTools.push(tool); + } + } + me.updateHeader(); +}, addTools:Ext.emptyFn, setCollapsible:function(collapsible) { + var me = this, current = me.collapsible, collapseTool = me.collapseTool; + me.collapsible = collapsible; + if (collapsible && !current) { + me.updateCollapseTool(); + collapseTool = me.collapseTool; + if (collapseTool) { + collapseTool.show(); + } + } else { + if (!collapsible && current) { + if (collapseTool) { + collapseTool.hide(); + } + } + } +}, addUIClsToElement:function(cls) { + var me = this, result = me.callParent(arguments); + me.addBodyCls([Ext.baseCSSPrefix + cls, me.baseCls + '-body-' + cls, me.baseCls + '-body-' + me.ui + '-' + cls]); + return result; +}, afterCollapse:function(animated) { + var me = this, ariaDom = me.ariaEl.dom, ownerLayout = me.ownerLayout; + me.isCollapsingOrExpanding = 0; + me.updateCollapseTool(); + if (animated) { + me.removeCls(Ext.baseCSSPrefix + 'animating-size'); + } + if (ownerLayout) { + ownerLayout.afterCollapse(me, animated); + } + if (ariaDom) { + ariaDom.setAttribute('aria-expanded', false); + } + if (me.isAccordionPanel) { + me.body.dom.setAttribute('aria-hidden', true); + } + me.setHiddenDocked(); + me.fireEvent('collapse', me); +}, afterExpand:function(animated) { + var me = this, ariaDom = me.ariaEl.dom, ownerLayout = me.ownerLayout; + me.isCollapsingOrExpanding = 0; + me.updateCollapseTool(); + if (animated) { + me.removeCls(Ext.baseCSSPrefix + 'animating-size'); + } + if (ownerLayout) { + ownerLayout.afterExpand(me, animated); + } + if (ariaDom) { + ariaDom.setAttribute('aria-expanded', true); + } + if (me.isAccordionPanel) { + me.body.dom.setAttribute('aria-hidden', false); + } + me.fireEvent('expand', me); + me.fireHierarchyEvent('expand'); +}, beforeDestroy:function() { + var me = this; + Ext.destroy(me.placeholder, me.ghostPanel, me.dd, me.accordionKeyNav, me.defaultButtonKeyNav); + me.destroyDockedItems(); + me.callParent(); +}, destroy:function() { + this.callParent(); + this.dockedItems = this.bodyContainer = null; +}, beforeRender:function() { + var me = this, wasCollapsed; + me.getProtoBody(); + me.callParent(); + me.initTools(); + if (!(me.preventHeader || me.header === false) || me.isViewportBorderChild) { + me.updateHeader(); + } + me.afterHeaderInit = true; + if (me.collapsed) { + if (me.isPlaceHolderCollapse()) { + if (!me.hidden) { + me.setHiddenState(true); + me.preventCollapseFire = true; + me.placeholderCollapse(); + delete me.preventCollapseFire; + wasCollapsed = me.collapsed; + me.collapsed = false; + } + } else { + me.beginCollapse(); + me.addClsWithUI(me.collapsedCls); + } + } + if (wasCollapsed) { + me.collapsed = wasCollapsed; + } +}, getMemento:function(name) { + var me = this; + if (name && typeof name === 'string') { + name += 'Memento'; + return me[name] || (me[name] = new Ext.util.Memento(me)); + } +}, beginCollapse:function() { + var me = this, lastBox = me.lastBox, rendered = me.rendered, collapseMemento = me.getMemento('collapse'), sizeModel = me.getSizeModel(), header = me.header, reExpander; + collapseMemento.capture(['height', 'minHeight', 'width', 'minWidth']); + if (lastBox) { + collapseMemento.capture(me.restoreDimension(), lastBox, 'last.'); + } + if (me.collapsedVertical()) { + if (sizeModel.width.shrinkWrap) { + me.width = rendered ? me.getWidth() : me.width || me.minWidth || 100; + } + delete me.height; + me.minHeight = 0; + } else { + if (me.collapsedHorizontal()) { + if (sizeModel.height.shrinkWrap) { + me.height = rendered ? me.getHeight() : me.height || me.minHeight || 100; + } + delete me.width; + me.minWidth = 0; + } + } + if (me.ownerCt) { + me.ownerCt.getLayout().beginCollapse(me); + } + if (!me.isPlaceHolderCollapse() && header !== false) { + if (header === (reExpander = me.getReExpander())) { + header.collapseImmune = true; + header.getInherited().collapseImmune = true; + header.addClsWithUI(me.getHeaderCollapsedClasses(header)); + if (header.rendered) { + header.updateFrame(); + } + } else { + if (reExpander.el) { + reExpander.el.show(); + reExpander.hidden = false; + } + } + } + if (me.resizer) { + me.resizer.disable(); + } +}, beginDrag:function() { + if (this.floatingDescendants) { + this.floatingDescendants.hide(); + } +}, beginExpand:function() { + var me = this, lastBox = me.lastBox, collapseMemento = me.getMemento('collapse'), restoreDimension = me.restoreDimension(), header = me.header, reExpander; + if (collapseMemento) { + collapseMemento.restore(['minHeight', 'minWidth', restoreDimension]); + if (lastBox) { + collapseMemento.restore(restoreDimension, true, lastBox, 'last.'); + } + } + if (me.ownerCt) { + me.ownerCt.getLayout().beginExpand(me); + } + if (!me.isPlaceHolderCollapse() && header !== false) { + if (header === (reExpander = me.getReExpander())) { + delete header.collapseImmune; + delete header.getInherited().collapseImmune; + header.removeClsWithUI(me.getHeaderCollapsedClasses(header)); + if (header.rendered) { + header.expanding = true; + header.updateFrame(); + delete header.expanding; + } + } else { + reExpander.hidden = true; + reExpander.el.hide(); + } + } + if (me.resizer) { + me.resizer.enable(); + } +}, bridgeToolbars:function() { + var me = this, docked = [], minButtonWidth = me.minButtonWidth, fbar, fbarDefaults; + function initToolbar(toolbar, pos, useButtonAlign) { + if (Ext.isArray(toolbar)) { + toolbar = {xtype:'toolbar', items:toolbar}; + } else { + if (!toolbar.xtype) { + toolbar.xtype = 'toolbar'; + } + } + toolbar.dock = pos; + if (useButtonAlign) { + toolbar.layout = Ext.applyIf(toolbar.layout || {}, {pack:{left:'start', center:'center'}[me.buttonAlign] || 'end'}); + } + return toolbar; + } + if (me.tbar) { + docked.push(initToolbar(me.tbar, 'top')); + me.tbar = null; + } + if (me.bbar) { + docked.push(initToolbar(me.bbar, 'bottom')); + me.bbar = null; + } + if (me.buttons) { + me.fbar = me.buttons; + me.buttons = null; + } + if (me.fbar) { + fbar = initToolbar(me.fbar, 'bottom', true); + fbar.ui = 'footer'; + if (minButtonWidth) { + fbarDefaults = fbar.defaults; + fbar.defaults = function(config) { + var defaults = fbarDefaults || {}, isButton = !config.xtype || config.isButton, cls; + if (!isButton) { + cls = Ext.ClassManager.getByAlias('widget.' + config.xtype); + if (cls) { + isButton = cls.prototype.isButton; + } + } + if (isButton && !('minWidth' in defaults)) { + defaults = Ext.apply({minWidth:minButtonWidth}, defaults); + } + return defaults; + }; + } + docked.push(fbar); + me.fbar = null; + } + if (me.lbar) { + docked.push(initToolbar(me.lbar, 'left')); + me.lbar = null; + } + if (me.rbar) { + docked.push(initToolbar(me.rbar, 'right')); + me.rbar = null; + } + if (me.dockedItems) { + if (me.dockedItems.isMixedCollection) { + me.addDocked(docked); + } else { + if (!Ext.isArray(me.dockedItems)) { + me.dockedItems = [me.dockedItems]; + } + me.dockedItems = me.dockedItems.concat(docked); + } + } else { + me.dockedItems = docked; + } +}, close:function() { + if (this.fireEvent('beforeclose', this) !== false) { + this.doClose(); + } +}, collapse:function(direction, animate) { + var me = this, collapseDir = direction || me.collapseDirection, ownerCt = me.ownerCt, layout = me.ownerLayout, rendered = me.rendered; + if (me.isCollapsingOrExpanding) { + return me; + } + if (arguments.length < 2) { + animate = me.animCollapse; + } + if (me.collapsed || me.fireEvent('beforecollapse', me, direction, animate) === false) { + return me; + } + if (layout && layout.onBeforeComponentCollapse) { + if (layout.onBeforeComponentCollapse(me) === false) { + return me; + } + } + if (rendered && ownerCt && me.isPlaceHolderCollapse()) { + return me.placeholderCollapse(direction, animate); + } + me.collapsed = collapseDir; + if (rendered) { + me.beginCollapse(); + } + me.getInherited().collapsed = true; + me.fireHierarchyEvent('collapse'); + if (rendered) { + me.doCollapseExpand(1, animate); + } + return me; +}, collapsedHorizontal:function() { + var dir = this.getCollapsed(); + return dir === 'left' || dir === 'right'; +}, collapsedVertical:function() { + var dir = this.getCollapsed(); + return dir === 'top' || dir === 'bottom'; +}, convertCollapseDir:function(collapseDir) { + return collapseDir.substr(0, 1); +}, createGhost:function(cls) { + var me = this, header = me.header, frame = me.frame && !me.alwaysFramed; + return {xtype:'panel', hidden:false, header:header ? {titleAlign:header.getTitleAlign()} : null, ui:frame ? me.ui.replace(/-framed$/, '') : me.ui, id:me.id + '-ghost', renderTo:Ext.getBody(), resizable:false, draggable:false, closable:false, focusable:false, floating:true, shadow:false, frame:frame, shim:me.shim, alwaysFramed:me.alwaysFramed, overlapHeader:me.overlapHeader, headerPosition:me.getHeaderPosition(), titleRotation:me.getTitleRotation(), baseCls:me.baseCls, getRefOwner:function() { + return me.getRefOwner(); + }, cls:me.baseCls + '-ghost ' + (cls || '')}; +}, createReExpander:function(direction, defaults) { + var me = this, isLeft = direction === 'left', isRight = direction === 'right', isVertical = isLeft || isRight, ownerCt = me.ownerCt, result = Ext.apply({hideMode:'offsets', title:me.getTitle(), titleAlign:me.getTitleAlign(), vertical:isVertical, textCls:me.headerTextCls, icon:me.getIcon(), iconCls:me.getIconCls(), iconAlign:me.getIconAlign(), glyph:me.getGlyph(), baseCls:me.self.prototype.baseCls + '-header', ui:me.ui, frame:me.frame && me.frameHeader, ignoreParentFrame:me.frame || me.overlapHeader, + ignoreBorderManagement:me.frame || me.ignoreHeaderBorderManagement, indicateDrag:me.draggable, collapseImmune:true, ariaRole:me.ariaRole, preventRefocus:true, ownerCt:ownerCt && me.collapseMode === 'placeholder' ? ownerCt : me, ownerLayout:me.componentLayout, forceOrientation:true, margin:me.margin}, defaults); + if (me.collapseMode === 'mini') { + if (isVertical) { + result.width = 1; + } else { + result.height = 1; + } + } + if (!me.hideCollapseTool) { + if (isLeft || isRight && me.isPlaceHolderCollapse()) { + result.titlePosition = 1; + } + result.tools = [{xtype:'tool', type:'expand-' + me.getOppositeDirection(direction), isDefaultExpandTool:true, uiCls:['top'], handler:me.toggleCollapse, scope:me, tooltip:me.expandToolText}]; + } + result = new Ext.panel.Header(result); + result.addClsWithUI(me.getHeaderCollapsedClasses(result)); + result.expandTool = result.down('tool[isDefaultExpandTool\x3dtrue]'); + return result; +}, doClose:function() { + this.fireEvent('close', this); + this[this.closeAction](); +}, doCollapseExpand:function(flags, animate) { + var me = this, originalAnimCollapse = me.animCollapse, ownerLayout = me.ownerLayout; + me.animCollapse = animate; + me.isCollapsingOrExpanding = flags; + if (animate) { + me.addCls(Ext.baseCSSPrefix + 'animating-size'); + } + if (ownerLayout && !animate) { + ownerLayout.onContentChange(me); + } else { + me.updateLayout({isRoot:true}); + } + me.animCollapse = originalAnimCollapse; + return me; +}, endDrag:function() { + if (this.floatingDescendants) { + this.floatingDescendants.show(); + } +}, expand:function(animate) { + var me = this, layout = me.ownerLayout, rendered = me.rendered; + if (me.isCollapsingOrExpanding) { + return me; + } + if (!arguments.length) { + animate = me.animCollapse; + } + if (!me.collapsed && !me.floatedFromCollapse) { + return me; + } + if (me.fireEvent('beforeexpand', me, animate) === false) { + return me; + } + if (layout && layout.onBeforeComponentExpand) { + if (layout.onBeforeComponentExpand(me) === false) { + return me; + } + } + delete me.getInherited().collapsed; + if (rendered && me.isPlaceHolderCollapse()) { + return me.placeholderExpand(animate); + } + me.restoreHiddenDocked(); + if (rendered) { + me.beginExpand(); + } + me.collapsed = false; + if (me.rendered) { + me.doCollapseExpand(2, animate); + } + return me; +}, findReExpander:function(direction) { + var me = this, c = Ext.Component, dockedItems = me.dockedItems.items, dockedItemCount = dockedItems.length, comp, i; + if (me.collapseMode === 'mini') { + return; + } + switch(direction) { + case c.DIRECTION_TOP: + case c.DIRECTION_BOTTOM: + for (i = 0; i < dockedItemCount; i++) { + comp = dockedItems[i]; + if (!comp.hidden) { + if (comp.isHeader && (!comp.dock || comp.dock === 'top' || comp.dock === 'bottom')) { + return comp; + } + } + } + break; + case c.DIRECTION_LEFT: + case c.DIRECTION_RIGHT: + for (i = 0; i < dockedItemCount; i++) { + comp = dockedItems[i]; + if (!comp.hidden) { + if (comp.isHeader && (comp.dock === 'left' || comp.dock === 'right')) { + return comp; + } + } + } + break; + default: + throw 'Panel#findReExpander must be passed a valid collapseDirection'; + } +}, floatCollapsedPanel:function() { + var me = this, placeholder = me.placeholder, ps = placeholder.getSize(), floatCls = Ext.panel.Panel.floatCls, collapsed = me.collapsed, layoutOwner = me.ownerCt || me, slideDirection, onBodyMousedown, myBox; + if (me.isSliding) { + return; + } + if (me.el.hasCls(floatCls)) { + me.slideOutFloatedPanel(); + return; + } + me.isSliding = true; + placeholder.el.hide(); + placeholder.hidden = true; + me.el.show(); + me.setHiddenState(false); + me.collapsed = false; + layoutOwner.updateLayout(); + placeholder.el.show(); + placeholder.hidden = false; + me.el.hide(); + me.setHiddenState(true); + me.collapsed = collapsed; + layoutOwner.updateLayout(); + myBox = me.getBox(false, true); + me.slideOutTask = me.slideOutTask || new Ext.util.DelayedTask(me.slideOutFloatedPanel, me); + if (Ext.supports.Touch) { + Ext.on('mousedown', onBodyMousedown = function(event) { + if (!event.within(me.el)) { + Ext.un('mousedown', onBodyMousedown); + me.slideOutFloatedPanel(); + } + }); + } + if (!me.placeholderListener) { + me.placeholderListener = placeholder.on({resize:me.onPlaceholderResize, scope:me, destroyable:true}); + } + placeholder.el.on('mouseleave', me.onMouseLeaveFloated, me); + me.el.on('mouseleave', me.onMouseLeaveFloated, me); + placeholder.el.on('mouseenter', me.onMouseEnterFloated, me); + me.el.on('mouseenter', me.onMouseEnterFloated, me); + me.el.addCls(floatCls); + me.floated = collapsed; + if (me.collapseTool) { + me.collapseTool.el.hide(); + } + switch(me.collapsed) { + case 'top': + me.width = ps.width; + me.setLocalXY(myBox.x, myBox.y + ps.height); + break; + case 'right': + me.height = ps.height; + me.setLocalXY(myBox.x - ps.width, myBox.y); + break; + case 'bottom': + me.width = ps.width; + me.setLocalXY(myBox.x, myBox.y - ps.height); + break; + case 'left': + me.height = ps.height; + me.setLocalXY(myBox.x + ps.width, myBox.y); + break; + } + slideDirection = me.convertCollapseDir(me.collapsed); + me.floatedFromCollapse = me.collapsed; + me.collapsed = false; + me.setHiddenState(false); + me.el.slideIn(slideDirection, {preserveScroll:true, duration:Ext.Number.from(me.animCollapse, Ext.fx.Anim.prototype.duration), listeners:{afteranimate:function() { + me.isSliding = false; + me.fireEvent('float', me); + }}}); +}, onPlaceholderResize:function(ph, newWidth, newHeight) { + var me = this, myBox = me.getBox(false, true), phBox = ph.getBox(false, true); + switch(me.floated) { + case 'top': + me.width = newWidth; + me.setLocalY(phBox.y + phBox.height); + break; + case 'right': + me.height = newHeight; + me.setLocalX(phBox.x - myBox.width); + break; + case 'bottom': + me.width = newWidth; + me.setLocalY(phBox.y - myBox.height); + break; + case 'left': + me.height = newHeight; + me.setLocalX(phBox.x + phBox.width); + break; + } + me.updateLayout({isRoot:true}); +}, getAnimationProps:function() { + var me = this, animCollapse = me.animCollapse, props; + props = me.callParent(); + if (typeof animCollapse === 'number') { + props.duration = animCollapse; + } + return props; +}, getCollapsed:function() { + var me = this; + if (me.collapsed === true) { + return me.collapseDirection; + } + return me.collapsed; +}, getCollapsedDockedItems:function() { + var me = this; + return me.header === false || me.collapseMode === 'placeholder' ? me.emptyArray : [me.getReExpander()]; +}, getComponent:function(comp) { + var component = this.callParent(arguments); + if (component === undefined && !Ext.isNumber(comp)) { + component = this.getDockedComponent(comp); + } + return component; +}, getHeader:function() { + return this.header; +}, getHeaderCollapsedClasses:function(header) { + var me = this, collapsedCls = me.collapsedCls, collapsedClasses; + collapsedClasses = [collapsedCls, collapsedCls + '-' + header.getDockName()]; + if (me.border && (!me.frame || me.frame && Ext.supports.CSS3BorderRadius)) { + collapsedClasses.push(collapsedCls + '-border-' + header.getDockName()); + } + return collapsedClasses; +}, getKeyMap:function() { + return this.keyMap || (this.keyMap = new Ext.util.KeyMap(Ext.apply({target:this.el}, this.keys))); +}, getOppositeDirection:function(d) { + var c = Ext.Component; + switch(d) { + case c.DIRECTION_TOP: + return c.DIRECTION_BOTTOM; + case c.DIRECTION_RIGHT: + return c.DIRECTION_LEFT; + case c.DIRECTION_BOTTOM: + return c.DIRECTION_TOP; + case c.DIRECTION_LEFT: + return c.DIRECTION_RIGHT; + } +}, getPlaceholder:function(direction) { + var me = this, collapseDir = direction || me.collapseDirection, listeners = null, placeholder = me.placeholder, floatable = me.floatable, titleCollapse = me.titleCollapse; + if (!placeholder) { + if (floatable || me.collapsible && titleCollapse) { + listeners = {click:{fn:!titleCollapse && floatable ? me.floatCollapsedPanel : me.toggleCollapse, element:'el', scope:me}}; + } + me.placeholder = placeholder = Ext.widget(me.createReExpander(collapseDir, {id:me.id + '-placeholder', listeners:listeners})); + } + if (!placeholder.placeholderFor) { + if (!placeholder.isComponent) { + me.placeholder = placeholder = me.lookupComponent(placeholder); + } + Ext.applyIf(placeholder, {margin:me.margin, placeholderFor:me, synthetic:true}); + placeholder.addCls([Ext.baseCSSPrefix + 'region-collapsed-placeholder', Ext.baseCSSPrefix + 'region-collapsed-' + collapseDir + '-placeholder', me.collapsedCls]); + } + return placeholder; +}, getProtoBody:function() { + var me = this, body = me.protoBody; + if (!body) { + me.protoBody = body = new Ext.util.ProtoElement({cls:me.bodyCls, style:me.bodyStyle, clsProp:'bodyCls', styleProp:'bodyStyle', styleIsText:true}); + } + return body; +}, getReExpander:function(direction) { + var me = this, collapseDir = direction || me.collapseDirection, reExpander = me.reExpander || me.findReExpander(collapseDir); + me.expandDirection = me.getOppositeDirection(collapseDir); + if (!reExpander) { + me.reExpander = reExpander = me.createReExpander(collapseDir, {dock:collapseDir, cls:Ext.baseCSSPrefix + 'docked ' + me.baseCls + '-' + me.ui + '-collapsed', isCollapsedExpander:true}); + me.dockedItems.insert(0, reExpander); + } + return reExpander; +}, getRefItems:function(deep) { + var items = this.callParent(arguments); + return this.getDockingRefItems(deep, items); +}, getState:function() { + var me = this, state = me.callParent() || {}, collapsed = me.collapsed, floated = me.floated, memento; + if (floated) { + me.collapsed = floated; + } + state = me.addPropertyToState(state, 'collapsed'); + if (floated) { + me.collapsed = collapsed; + } + if (me.getCollapsed()) { + memento = me.getMemento('collapse').data; + state = me.addPropertyToState(state, 'collapsed', memento); + if (me.collapsedVertical()) { + delete state.height; + if (memento) { + state = me.addPropertyToState(state, 'height', memento.height); + } + } else { + delete state.width; + if (memento) { + state = me.addPropertyToState(state, 'width', memento.width); + } + } + } + return state; +}, applyState:function(state) { + var me = this, collapseMemento = {}, collapsed; + if (state) { + collapsed = state.collapsed; + if (collapsed) { + collapseMemento = me.getMemento('collapse'); + Ext.Object.merge(collapseMemento.data, collapsed); + state.collapsed = true; + } + me.callParent(arguments); + } +}, ghost:function(cls) { + var me = this, ghostPanel = me.ghostPanel, box = me.getBox(), header = me.header, ghostHeader, tools, icon, iconCls, glyph, i; + if (!ghostPanel) { + me.ghostPanel = ghostPanel = Ext.widget(me.createGhost(cls)); + ghostPanel.el.dom.removeAttribute('tabIndex'); + } else { + ghostPanel.el.show(); + } + ghostPanel.setHiddenState(false); + ghostPanel.floatParent = me.floatParent; + ghostPanel.toFront(); + if (header && !me.preventHeader) { + ghostHeader = ghostPanel.header; + ghostHeader.suspendLayouts(); + tools = ghostHeader.query('tool'); + for (i = tools.length; i--;) { + ghostHeader.remove(tools[i]); + } + ghostHeader.setTitlePosition(0); + ghostPanel.addTool(me.ghostTools()); + ghostPanel.setTitle(me.getTitle()); + ghostHeader.setTitlePosition(header.titlePosition); + iconCls = me.getIconCls(); + if (iconCls) { + ghostPanel.setIconCls(iconCls); + } else { + icon = me.getIcon(); + if (icon) { + ghostPanel.setIcon(icon); + } else { + glyph = me.getGlyph(); + if (glyph) { + ghostPanel.setGlyph(glyph); + } + } + } + ghostHeader.addCls(Ext.baseCSSPrefix + 'header-ghost'); + ghostHeader.resumeLayouts(); + } + ghostPanel.setPagePosition(box.x, box.y); + ghostPanel.setSize(box.width, box.height); + me.el.hide(); + return ghostPanel; +}, ghostTools:function() { + var tools = [], header = this.header, headerTools = header ? header.query('tool[hidden\x3dfalse]') : [], t, tLen, tool; + if (headerTools.length) { + t = 0; + tLen = headerTools.length; + for (; t < tLen; t++) { + tool = headerTools[t]; + tools.push({type:tool.type, tooltip:tool.tooltip}); + } + } else { + tools = [{type:'placeholder'}]; + } + return tools; +}, initBodyBorder:function() { + var me = this; + if (me.frame && me.bodyBorder) { + if (!Ext.isNumber(me.bodyBorder)) { + me.bodyBorder = 1; + } + me.getProtoBody().setStyle('border-width', this.unitizeBox(me.bodyBorder)); + } +}, initBodyStyles:function() { + var me = this, body = me.getProtoBody(); + if (me.bodyPadding !== undefined) { + if (me.layout.managePadding) { + body.setStyle('padding', 0); + } else { + body.setStyle('padding', this.unitizeBox(me.bodyPadding === true ? 5 : me.bodyPadding)); + } + } + me.initBodyBorder(); +}, initBorderProps:function() { + var me = this; + if (me.frame && me.border && me.bodyBorder === undefined) { + me.bodyBorder = false; + } + if (me.frame && me.border && (me.bodyBorder === false || me.bodyBorder === 0)) { + me.manageBodyBorders = true; + } +}, initComponent:function() { + var me = this; + if (me.collapsible) { + me.addStateEvents(['expand', 'collapse']); + } + if (me.unstyled) { + me.setUI('plain'); + } + if (me.frame) { + me.setUI(me.ui + '-framed'); + } + me.bridgeToolbars(); + me.initBorderProps(); + me.callParent(); + me.collapseDirection = me.collapseDirection || me.getHeaderPosition() || Ext.Component.DIRECTION_TOP; + me.hiddenOnCollapse = new Ext.dom.CompositeElement; +}, initItems:function() { + this.callParent(); + this.initDockingItems(); +}, initRenderData:function() { + var me = this, data = me.callParent(); + me.initBodyStyles(); + me.protoBody.writeTo(data); + delete me.protoBody; + if (me.headingText) { + data.headingText = me.headingText; + me.addChildEl('headingEl'); + } + if (me.bodyAriaRole) { + data.bodyAriaAttributes = {role:me.bodyAriaRole}; + if (!me.ariaStaticRoles[me.bodyAriaRole] && me.bodyAriaRenderAttributes) { + Ext.apply(data.bodyAriaAttributes, me.bodyAriaRenderAttributes); + } + } + return data; +}, calculateConstrainedPosition:function(constrainTo, proposedPosition, local, proposedSize) { + var me = this, header = me.header, lastBox, fp; + if (me.constrainHeader) { + lastBox = header.lastBox; + if (proposedSize) { + if (!header.vertical) { + proposedSize = [proposedSize[0], lastBox ? lastBox.height : proposedSize[1]]; + } else { + proposedSize = [lastBox ? lastBox.width : proposedSize[0], proposedSize[1]]; + } + } else { + if (lastBox) { + proposedSize = [lastBox.width, lastBox.height]; + } + } + fp = me.floatParent; + constrainTo = constrainTo || me.constrainTo || (fp ? fp.getTargetEl() : null) || me.container || me.el.parent(); + } + return me.callParent([constrainTo, proposedPosition, local, proposedSize]); +}, initTools:function() { + var me = this, tools = me.tools, i, toolCfg, tool; + me.tools = []; + for (i = tools && tools.length; i;) { + --i; + me.tools[i] = tool = tools[i]; + tool.toolOwner = me; + } + if (me.collapsible && !(me.hideCollapseTool || me.header === false || me.preventHeader)) { + me.updateCollapseTool(); + if (me.collapseFirst) { + me.tools.unshift(me.collapseTool); + } + } + me.addTools(); + if (me.pinnable) { + me.initPinnable(); + } + if (me.closable) { + me.addClsWithUI('closable'); + toolCfg = {xtype:'tool', type:'close', scope:me, handler:me.close, tooltip:me.closeToolText}; + if (me.isAccordionPanel) { + toolCfg.focusable = false; + toolCfg.ariaRole = 'presentation'; + } + me.addTool(toolCfg); + } + if (me.collapseTool && !me.collapseFirst) { + me.addTool(me.collapseTool); + } +}, isLayoutRoot:function() { + if (this.floatedFromCollapse) { + return true; + } + return this.callParent(); +}, isPlaceHolderCollapse:function() { + return this.collapseMode === 'placeholder'; +}, isVisible:function(deep) { + var me = this; + if (me.collapsed && me.placeholder) { + return me.placeholder.isVisible(deep); + } + return me.callParent(arguments); +}, onBoxReady:function() { + var me = this, target; + me.callParent(arguments); + if (me.collapsed) { + me.setHiddenDocked(); + } + if (me.isAccordionPanel) { + me.ariaEl = me.header.titleCmp.el; + me.ariaEl.dom.setAttribute('aria-expanded', !me.collapsed); + me.body.dom.setAttribute('aria-labelledby', me.header.titleCmp.id); + me.body.dom.setAttribute('aria-hidden', !!me.collapsed); + me.accordionKeyNav = new Ext.util.KeyNav({target:me.header.titleCmp.el, scope:me, left:me.navigateAccordion, right:me.navigateAccordion, left:me.navigateAccordion, up:me.navigateAccordion, down:me.navigateAccordion, home:me.navigateAccordion, end:me.navigateAccordion, space:me.toggleCollapse, enter:me.toggleCollapse, del:{alt:true, fn:me.maybeClose}}); + } + if (me.defaultButton) { + target = me.defaultButtonTarget ? me[me.defaultButtonTarget] : me.body; + me.defaultButtonKeyNav = new Ext.util.KeyNav({target:target, scope:me, defaultEventAction:'stopEvent', enter:me.fireDefaultButton}); + } +}, onHide:function(animateTarget, cb, scope) { + var me = this, dd = me.dd; + if (me.floatedFromCollapse) { + me.slideOutFloatedPanel(true); + } + if (me.draggable && dd) { + dd.endDrag(); + } + if (me.collapsed && me.placeholder) { + if (me.splitter) { + Ext.suspendLayouts(); + me.splitter.hide(); + Ext.resumeLayouts(); + } + me.placeholder.hide(); + } else { + me.callParent([animateTarget, cb, scope]); + } +}, onMouseEnterFloated:function(e) { + this.slideOutTask.cancel(); +}, onMouseLeaveFloated:function(e) { + this.slideOutTask.delay(500); +}, onRemoved:function(destroying) { + var me = this; + if (me.placeholder && !destroying) { + me.ownerCt.remove(me.placeholder, false); + } + me.callParent(arguments); +}, onShow:function() { + var me = this; + if (me.collapsed && me.isPlaceHolderCollapse()) { + if (me.splitter) { + Ext.suspendLayouts(); + me.splitter.show(); + Ext.resumeLayouts(); + } + me.setHiddenState(true); + me.placeholderCollapse(); + } else { + me.callParent(arguments); + } +}, placeholderCollapse:function(direction, animate) { + var me = this, ownerCt = me.ownerCt, collapseDir = direction || me.collapseDirection, floatCls = Ext.panel.Panel.floatCls, collapseTool = me.collapseTool, placeholder = me.getPlaceholder(collapseDir), slideInDirection; + me.isCollapsingOrExpanding = 1; + me.setHiddenState(true); + me.collapsed = collapseDir; + if (placeholder.rendered) { + if (placeholder.el.dom.parentNode !== me.el.dom.parentNode) { + me.el.dom.parentNode.insertBefore(placeholder.el.dom, me.el.dom); + } + placeholder.hidden = false; + placeholder.setHiddenState(false); + placeholder.el.show(); + ownerCt.updateLayout(); + } else { + ownerCt.insert(ownerCt.items.indexOf(me), placeholder); + } + if (me.rendered) { + if (collapseTool && Ext.ComponentManager.getActiveComponent() === collapseTool) { + me.focusPlaceholderExpandTool = true; + } + me.el.setVisibilityMode(me.placeholderCollapseHideMode); + if (animate) { + me.el.addCls(floatCls); + placeholder.el.hide(); + slideInDirection = me.convertCollapseDir(collapseDir); + me.el.slideOut(slideInDirection, {preserveScroll:true, duration:Ext.Number.from(animate, Ext.fx.Anim.prototype.duration), listeners:{scope:me, afteranimate:function() { + var me = this; + me.el.removeCls(floatCls); + me.placeholder.el.show().setStyle('display', 'none').slideIn(slideInDirection, {easing:'linear', duration:100, listeners:{afteranimate:me.doPlaceholderCollapse, scope:me}}); + }}}); + } else { + me.el.hide(); + me.doPlaceholderCollapse(); + } + } else { + me.isCollapsingOrExpanding = 0; + if (!me.preventCollapseFire) { + me.fireEvent('collapse', me); + } + } + return me; +}, doPlaceholderCollapse:function() { + var me = this, placeholder = me.placeholder, expandTool = placeholder.expandTool; + if (me.focusPlaceholderExpandTool && expandTool) { + expandTool.focus(); + } else { + placeholder.focus(); + } + me.focusPlaceholderExpandTool = false; + placeholder.setHiddenState(false); + placeholder.ariaEl.dom.setAttribute('aria-hidden', false); + placeholder.ariaEl.dom.setAttribute('aria-expanded', false); + me.ariaEl.dom.setAttribute('aria-hidden', true); + me.ariaEl.dom.setAttribute('aria-expanded', false); + me.isCollapsingOrExpanding = 0; + me.fireEvent('collapse', me); +}, placeholderExpand:function(animate) { + var me = this, collapseDir = me.collapsed, expandTool = me.placeholder.expandTool, floatCls = Ext.panel.Panel.floatCls, center = me.ownerLayout ? me.ownerLayout.centerRegion : null, finalPos, floatedPos; + if (Ext.Component.layoutSuspendCount) { + animate = false; + } + if (me.floatedFromCollapse) { + floatedPos = me.getPosition(true); + me.slideOutFloatedPanelBegin(); + me.slideOutFloatedPanelEnd(); + me.floated = false; + } + if (expandTool && Ext.ComponentManager.getActiveComponent() === expandTool) { + me.focusHeaderCollapseTool = true; + expandTool._ariaRole = expandTool.ariaEl.dom.getAttribute('role'); + expandTool._ariaLabel = expandTool.ariaEl.dom.getAttribute('aria-label'); + expandTool.ariaEl.dom.setAttribute('role', 'presentation'); + expandTool.ariaEl.dom.removeAttribute('aria-label'); + } + if (animate) { + Ext.suspendLayouts(); + me.placeholder.hide(); + me.el.show(); + me.collapsed = false; + me.setHiddenState(false); + if (center && !floatedPos) { + center.hidden = true; + } + Ext.resumeLayouts(true); + center.hidden = false; + me.el.addCls(floatCls); + me.isCollapsingOrExpanding = 2; + if (floatedPos) { + finalPos = me.getXY(); + me.setLocalXY(floatedPos[0], floatedPos[1]); + me.setXY([finalPos[0], finalPos[1]], {duration:Ext.Number.from(animate, Ext.fx.Anim.prototype.duration), listeners:{scope:me, afteranimate:function() { + var me = this; + me.el.removeCls(floatCls); + me.isCollapsingOrExpanding = 0; + me.fireEvent('expand', me); + }}}); + } else { + me.el.hide(); + me.placeholder.el.show(); + me.placeholder.hidden = false; + me.setHiddenState(false); + me.el.slideIn(me.convertCollapseDir(collapseDir), {preserveScroll:true, duration:Ext.Number.from(animate, Ext.fx.Anim.prototype.duration), listeners:{afteranimate:me.doPlaceholderExpand, scope:me}}); + } + } else { + me.floated = me.collapsed = false; + me.doPlaceholderExpand(true); + } + return me; +}, doPlaceholderExpand:function(nonAnimated) { + var me = this, placeholder = me.placeholder, collapseTool = me.collapseTool, expandTool = placeholder.expandTool; + if (nonAnimated) { + Ext.suspendLayouts(); + me.show(); + } + me.el.removeCls(Ext.panel.Panel.floatCls); + placeholder.hide(); + if (nonAnimated) { + Ext.resumeLayouts(true); + } else { + me.updateLayout(); + } + if (me.focusHeaderCollapseTool && collapseTool) { + collapseTool.focus(); + } + me.focusHeaderCollapseTool = false; + placeholder.ariaEl.dom.setAttribute('aria-expanded', true); + me.ariaEl.dom.setAttribute('aria-expanded', true); + if (expandTool && expandTool._ariaRole) { + expandTool.ariaEl.dom.setAttribute('role', expandTool._ariaRole); + expandTool.ariaEl.dom.setAttribute('aria-label', expandTool._ariaLabel); + expandTool._ariaRole = expandTool._ariaLabel = null; + } + me.isCollapsingOrExpanding = 0; + me.fireEvent('expand', me); +}, remove:function(component, autoDestroy) { + var dockedItems = this.dockedItems; + if (dockedItems && dockedItems.contains(component)) { + this.removeDocked(component, autoDestroy); + } else { + this.callParent([component, autoDestroy]); + } + return component; +}, removeBodyCls:function(cls) { + var me = this, body = me.rendered ? me.body : me.getProtoBody(); + body.removeCls(cls); + return me; +}, removeUIClsFromElement:function(cls) { + var me = this, result = me.callParent(arguments); + me.removeBodyCls([Ext.baseCSSPrefix + cls, me.baseCls + '-body-' + cls, me.baseCls + '-body-' + me.ui + '-' + cls]); + return result; +}, restoreDimension:function() { + var dir = this.collapseDirection; + return dir === 'top' || dir === 'bottom' ? 'height' : 'width'; +}, restoreHiddenDocked:function() { + this.setDockedItemsVisibility(this.hiddenOnCollapse, true); +}, setBodyStyle:function(style, value) { + var me = this, body = me.rendered ? me.body : me.getProtoBody(); + if (Ext.isFunction(style)) { + style = style(); + } + if (arguments.length === 1) { + if (Ext.isString(style)) { + style = Ext.Element.parseStyles(style); + } + body.setStyle(style); + } else { + body.setStyle(style, value); + } + return me; +}, setBorder:function(border, targetEl) { + if (targetEl) { + return; + } + var me = this, header = me.header; + if (!border) { + border = 0; + } else { + if (border === true) { + border = '1px'; + } else { + border = me.unitizeBox(border); + } + } + if (header) { + if (header.isHeader) { + header.setBorder(border); + } else { + header.border = border; + } + } + if (me.rendered && me.bodyBorder !== false) { + me.body.setStyle('border-width', border); + } + me.updateLayout(); + me.border = border; +}, setCollapsed:function(collapsed) { + this[collapsed ? 'collapse' : 'expand'](); +}, setDockedItemsVisibility:function(els, show) { + var me = this, items = me.getDockedItems(), len = items.length, i = 0, item, reExpander; + if (me.header !== false) { + reExpander = me.getReExpander(); + } + for (; i < len; i++) { + item = items[i]; + if (item && item !== reExpander && item.el) { + els.add(item.el); + } + } + els.setStyle('visibility', show ? '' : 'hidden'); + els.clear(); +}, setGlyph:function(glyph) { + var me = this, oldGlyph = me.glyph, header = me.header, placeholder = me.placeholder; + if (glyph !== oldGlyph) { + me.glyph = glyph; + if (header) { + if (header.isHeader) { + header.setGlyph(glyph); + } else { + header.glyph = glyph; + } + } else { + if (me.rendered || me.afterHeaderInit) { + me.updateHeader(); + } + } + if (placeholder && placeholder.setGlyph) { + placeholder.setGlyph(glyph); + } + me.fireEvent('glyphchange', me, glyph, oldGlyph); + } +}, setIcon:function(icon) { + var me = this, oldIcon = me.icon, header = me.header, placeholder = me.placeholder; + if (icon !== oldIcon) { + me.icon = icon; + if (header) { + if (header.isHeader) { + header.setIcon(icon); + } else { + header.icon = icon; + } + } else { + if (me.rendered || me.afterHeaderInit) { + me.updateHeader(); + } + } + if (placeholder && placeholder.setIcon) { + placeholder.setIcon(icon); + } + me.fireEvent('iconchange', me, icon, oldIcon); + } +}, setIconCls:function(iconCls) { + var me = this, oldIconCls = me.iconCls, header = me.header, placeholder = me.placeholder; + if (iconCls !== oldIconCls) { + me.iconCls = iconCls; + if (header) { + if (header.isHeader) { + header.setIconCls(iconCls); + } else { + header.iconCls = iconCls; + } + } else { + if (me.rendered || me.afterHeaderInit) { + me.updateHeader(); + } + } + if (placeholder && placeholder.setIconCls) { + placeholder.setIconCls(iconCls); + } + me.fireEvent('iconclschange', me, iconCls, oldIconCls); + } +}, setTitle:function(title) { + var me = this, oldTitle = me.title, header = me.header, reExpander = me.reExpander, placeholder = me.placeholder; + if (title !== oldTitle) { + me.title = title; + if (header) { + if (header.isHeader) { + header.setTitle(title); + } + } else { + if (me.rendered || me.afterHeaderInit) { + me.updateHeader(); + } + } + if (me.headingEl) { + me.headingEl.setHtml(title); + } + if (reExpander) { + reExpander.setTitle(title); + } + if (placeholder && placeholder.setTitle) { + placeholder.setTitle(title); + } + me.fireEvent('titlechange', me, title, oldTitle); + } +}, setHiddenDocked:function() { + var me = this, toHide = new Ext.dom.CompositeElement; + me.hiddenOnCollapse.add(me.body); + toHide.add(me.body); + me.setDockedItemsVisibility(toHide, false); +}, setUI:function(ui) { + var me = this; + me.callParent(arguments); + if (me.header && me.header.rendered) { + me.header.setUI(ui); + } +}, toggleCollapse:function() { + return this.collapsed || this.floatedFromCollapse ? this.expand() : this.collapse(); +}, updateCollapseTool:function() { + var me = this, collapseTool = me.collapseTool, toolCfg; + if (!collapseTool && me.collapsible) { + me.collapseDirection = me.collapseDirection || me.getHeaderPosition() || 'top'; + toolCfg = {xtype:'tool', handler:me.toggleCollapse, scope:me}; + if (me.isAccordionPanel) { + toolCfg.focusable = false; + toolCfg.ariaRole = 'presentation'; + } + me.collapseTool = me.expandTool = collapseTool = Ext.widget(toolCfg); + } + if (collapseTool) { + if (me.collapsed && !me.isPlaceHolderCollapse()) { + collapseTool.setType('expand-' + me.getOppositeDirection(me.collapseDirection)); + collapseTool.setTooltip(me.expandToolText); + } else { + collapseTool.setType('collapse-' + me.collapseDirection); + collapseTool.setTooltip(me.collapseToolText); + } + } +}, navigateAccordion:function(e) { + var me = this, wrapOver = me.accordionWrapOver, siblingSel = '[isAccordionPanel]', firstSiblingSel = siblingSel + ':first', lastSiblingSel = siblingSel + ':last', key, sibling; + key = e.getKey(); + switch(key) { + case e.UP: + case e.LEFT: + sibling = me.prev(siblingSel); + if (!sibling && wrapOver) { + sibling = me.ownerCt.child(lastSiblingSel); + } + break; + case e.DOWN: + case e.RIGHT: + sibling = me.next(siblingSel); + if (!sibling && wrapOver) { + sibling = me.ownerCt.child(firstSiblingSel); + } + break; + case e.HOME: + sibling = me.ownerCt.child(firstSiblingSel); + break; + case e.END: + sibling = me.ownerCt.child(lastSiblingSel); + break; + case e.DELETE: + sibling = me.prev(siblingSel) || me.next(siblingSel); + if (!sibling) { + e.doNotClose = true; + } + break; + } + if (sibling && sibling !== me) { + sibling.header.titleCmp.focus(); + } +}, fireDefaultButton:function(e) { + var me = this, refHolder, btn; + refHolder = me.lookupReferenceHolder(false) || me; + btn = refHolder.lookupReference(me.defaultButton); + if (btn && btn.click) { + btn.click(e); + e.stopEvent(); + return false; + } else { + if (!btn) { + Ext.raise({msg:'No component found for defaultButton reference "' + me.defaultButton + '" in ' + me.xtype + ' ' + me.id, panel:me}); + } else { + Ext.raise({msg:'Component referenced by defaultButton config "' + me.defaultButton + '" in ' + me.xtype + ' ' + me.id + ' does not have click() method', component:btn}); + } + } +}, maybeClose:function(e) { + var me = this; + if (me.closable) { + me.navigateAccordion(e); + if (!e.doNotClose) { + me.close(); + } + } +}, onFocusEnter:function(e) { + var me = this, ariaDom = me.ariaEl.dom; + me.callParent([e]); + if (me.isAccordionPanel && ariaDom) { + ariaDom.setAttribute('aria-selected', true); + } +}, onFocusLeave:function(e) { + var me = this, ariaDom = me.ariaEl.dom; + me.callParent([e]); + if (me.isAccordionPanel && ariaDom) { + ariaDom.removeAttribute('aria-selected'); + } +}, updateHeaderPosition:function(position) { + var header = this.header; + if (header && header.isHeader) { + header.setDock(position); + } +}, updateIconAlign:function(align) { + var header = this.header; + if (header && header.isHeader) { + header.setIconAlign(align); + } +}, updateTitleAlign:function(align) { + var header = this.header; + if (header && header.isHeader) { + header.setTitleAlign(align); + } +}, updateTitleRotation:function(rotation) { + var header = this.header; + if (header && header.isHeader) { + header.setTitleRotation(rotation); + } +}, unghost:function(show, matchPosition, focus) { + var me = this, ghostPanel = me.ghostPanel; + if (!ghostPanel) { + return; + } + if (show !== false) { + me.el.show(); + if (matchPosition !== false) { + me.setPagePosition(ghostPanel.getXY()); + if (me.hideMode === 'offsets') { + delete me.el.hideModeStyles; + } + } + if (focus) { + me.focus(false, 10); + } + } + ghostPanel.el.hide(); + ghostPanel.setHiddenState(true); +}, updateHeader:function(force) { + var me = this, header = me.header, title = me.getTitle(), tools = me.tools, icon = me.getIcon(), glyph = me.getGlyph(), iconCls = me.getIconCls(), hasIcon = glyph || icon || iconCls, ariaDom = me.ariaEl.dom, headerPosition = me.getHeaderPosition(), vertical = headerPosition === 'left' || headerPosition === 'right', headingEl, ariaAttr; + if (Ext.isObject(header) || header !== false && (force || (title || hasIcon) || tools && tools.length || me.collapsible && !me.titleCollapse)) { + if (header && header.isHeader) { + header.show(); + } else { + header = me.header = Ext.widget(Ext.merge({xtype:'header', title:title, titleAlign:me.getTitleAlign(), vertical:vertical, dock:me.getHeaderPosition() || 'top', titleRotation:me.getTitleRotation(), textCls:me.headerTextCls, iconCls:iconCls, iconAlign:me.getIconAlign(), icon:icon, glyph:glyph, baseCls:me.baseCls + '-header', tools:tools, ui:me.ui, id:me.id + '_header', overCls:me.headerOverCls, indicateDrag:me.draggable, frame:(me.frame || me.alwaysFramed) && me.frameHeader, ignoreParentFrame:me.frame || + me.overlapHeader, ignoreBorderManagement:me.frame || me.ignoreHeaderBorderManagement, isAccordionHeader:me.isAccordionPanel, ownerCt:me, synthetic:true, listeners:me.collapsible && me.titleCollapse ? {click:me.toggleCollapse, scope:me} : null}, me.header)); + me.addDocked(header, 0); + } + if (me.isAccordionPanel) { + if (ariaDom) { + ariaDom.setAttribute('aria-labelledby', header.id + '-title'); + ariaDom.removeAttribute('aria-label'); + } else { + ariaAttr = me.ariaRenderAttributes || (me.ariaRenderAttributes = {}); + ariaAttr['aria-labelledby'] = header.id + '-title'; + delete ariaAttr['aria-label']; + } + } else { + if (title) { + if (me.ariaRole !== 'tabpanel') { + if (ariaDom) { + ariaDom.setAttribute('aria-labelledby', header.id + '-title-textEl'); + ariaDom.removeAttribute('aria-label'); + } else { + ariaAttr = me.ariaRenderAttributes || (me.ariaRenderAttributes = {}); + ariaAttr['aria-labelledby'] = header.id + '-title-textEl'; + delete ariaAttr['aria-label']; + } + } + } else { + if (me.ariaRenderAttributes) { + delete me.ariaRenderAttributes['aria-label']; + } + } + } + } else { + if (header) { + header.hide(); + } + title = Ext.util.Format.stripTags(title); + if (ariaDom) { + if (!ariaDom.hasAttribute('aria-labelledby')) { + if (title) { + ariaDom.setAttribute('aria-label', title); + } else { + ariaDom.removeAttribute('aria-label'); + } + } + } else { + ariaAttr = me.ariaRenderAttributes || (me.ariaRenderAttributes = {}); + if (!ariaAttr['aria-labelledby']) { + if (title) { + ariaAttr['aria-label'] = title; + } else { + delete ariaAttr['aria-label']; + } + } + } + } + if (me.isViewportBorderChild && !me.hasOwnProperty('ariaRole')) { + me.ariaRole = 'region'; + } + if (Ext.enableAriaPanels && me.ariaRole === 'region' && !title) { + Ext.log.warn('Panel ' + me.id + ' is a region section of the application, ' + 'but it does not have a title. Per WAI-ARIA, all regions ' + "should have a heading element that contains region's title."); + } + if (title && me.ariaRole === 'region') { + headingEl = me.headingEl; + if (headingEl) { + headingEl.setHtml(title); + } else { + if (me.rendered) { + me.headingEl = Ext.dom.Helper.insertFirst(me.el, {tag:'div', id:me.id + '-headingEl', role:'heading', 'class':Ext.baseCSSPrefix + 'hidden-clip', style:'height:0', html:title}, true); + ariaDom.removeAttribute('aria-label'); + ariaDom.setAttribute('aria-labelledby', me.id + '-headingEl'); + } else { + me.headingText = me.title; + ariaAttr = me.ariaRenderAttributes || (me.ariaRenderAttributes = {}); + ariaAttr['aria-labelledby'] = me.id + '-headingEl'; + delete ariaAttr['aria-label']; + } + } + } else { + if (me.headingEl) { + me.headingEl.destroy(); + me.headingEl = null; + } + } +}, statics:{floatCls:Ext.baseCSSPrefix + 'border-region-slide-in'}, privates:{addUIToElement:function() { + var me = this; + me.callParent(arguments); + me.addBodyCls(me.baseCls + '-body-' + me.ui); +}, applyTargetCls:function(targetCls) { + this.getProtoBody().addCls(targetCls); +}, getDefaultContentTarget:function() { + return this.body; +}, getTargetEl:function() { + var me = this; + return me.body || me.protoBody || me.frameBody || me.el; +}, initDraggable:function() { + var me = this; + if (me.simpleDrag) { + me.initSimpleDraggable(); + } else { + me.dd = new Ext.panel.DD(me, Ext.isBoolean(me.draggable) ? null : me.draggable); + } +}, initResizable:function() { + this.callParent(arguments); + if (this.collapsed) { + this.resizer.disable(); + } +}, initSimpleDraggable:function() { + var me = this, ddConfig, dd; + if (!me.header) { + me.updateHeader(true); + } + if (me.header) { + ddConfig = Ext.applyIf({el:me.el, delegate:'#' + me.header.id}, me.draggable); + if (me.constrain || me.constrainHeader) { + ddConfig.constrain = me.constrain; + ddConfig.constrainDelegate = me.constrainHeader; + ddConfig.constrainTo = me.constrainTo || me.container; + } + dd = me.dd = new Ext.util.ComponentDragger(me, ddConfig); + me.relayEvents(dd, ['dragstart', 'drag', 'dragend']); + if (me.maximized) { + dd.disable(); + } + } +}, removeUIFromElement:function() { + var me = this; + me.callParent(arguments); + me.removeBodyCls(me.baseCls + '-body-' + me.ui); +}, setupRenderTpl:function(renderTpl) { + this.callParent(arguments); + this.setupDockingRenderTpl(renderTpl); +}, slideOutFloatedPanel:function(preventAnimate) { + var me = this, compEl = me.el, collapseDirection, afterSlideOut = function() { + me.slideOutFloatedPanelEnd(); + me.el.removeCls(Ext.baseCSSPrefix + 'border-region-slide-in'); + }; + if (me.isSliding || me.destroyed) { + return; + } + me.isSliding = true; + me.floated = false; + me.slideOutFloatedPanelBegin(); + if (preventAnimate) { + compEl.hide(); + return afterSlideOut(); + } + if (typeof me.collapsed === 'string') { + collapseDirection = me.convertCollapseDir(me.collapsed); + } + compEl.slideOut(collapseDirection, {preserveScroll:true, duration:Ext.Number.from(me.animCollapse, Ext.fx.Anim.prototype.duration), listeners:{afteranimate:afterSlideOut}}); +}, slideOutFloatedPanelBegin:function() { + var me = this, placeholderEl = me.placeholder.el, el = me.el; + me.collapsed = me.floatedFromCollapse; + me.setHiddenState(true); + me.floatedFromCollapse = null; + placeholderEl.un('mouseleave', me.onMouseLeaveFloated, me); + el.un('mouseleave', me.onMouseLeaveFloated, me); + placeholderEl.un('mouseenter', me.onMouseEnterFloated, me); + el.un('mouseenter', me.onMouseEnterFloated, me); +}, slideOutFloatedPanelEnd:function(suppressEvents) { + var me = this; + if (me.collapseTool) { + me.collapseTool.el.show(); + } + me.slideOutTask.cancel(); + me.isSliding = false; + if (!suppressEvents) { + me.fireEvent('unfloat', me); + } +}}}, function() { + var proto = this.prototype; + proto.animCollapse = Ext.enableFx; + proto.placeholderCollapseHideMode = Ext.Element.VISIBILITY; +}); +Ext.define('Ext.theme.neptune.panel.Panel', {override:'Ext.panel.Panel', border:false, bodyBorder:false, initBorderProps:Ext.emptyFn, initBodyBorder:function() { + if (this.bodyBorder !== true) { + this.callParent(); + } +}}); +Ext.define('Ext.container.Monitor', {target:null, selector:'', scope:null, addHandler:null, removeHandler:null, invalidateHandler:null, disabled:0, constructor:function(config) { + Ext.apply(this, config); +}, bind:function(target) { + var me = this; + me.target = target; + target.on('beforedestroy', me.disable, me); + me.onContainerAdd(target); +}, unbind:function() { + var me = this, target = me.target; + if (target) { + target.un('beforedestroy', me.disable, me); + } + me.items = null; +}, disable:function() { + ++this.disabled; +}, enable:function() { + if (this.disabled > 0) { + --this.disabled; + } +}, handleAdd:function(ct, comp) { + if (!this.disabled) { + if (comp.is(this.selector)) { + this.onItemAdd(comp.ownerCt, comp); + } + if (comp.isQueryable) { + this.onContainerAdd(comp); + } + } +}, onItemAdd:function(ct, comp) { + var me = this, items = me.items, handler = me.addHandler; + if (!me.disabled) { + if (handler) { + handler.call(me.scope || comp, comp); + } + if (items) { + items.add(comp); + } + } +}, onItemRemove:function(ct, comp) { + var me = this, items = me.items, handler = me.removeHandler; + if (!me.disabled) { + if (handler) { + handler.call(me.scope || comp, comp); + } + if (items) { + items.remove(comp); + } + } +}, onContainerAdd:function(ct, preventChildren) { + var me = this, items, len, handleAdd = me.handleAdd, handleRemove = me.handleRemove, i, comp; + if (ct.isContainer) { + ct.on('add', handleAdd, me); + ct.on('dockedadd', handleAdd, me); + ct.on('remove', handleRemove, me); + ct.on('dockedremove', handleRemove, me); + } + if (preventChildren !== true) { + items = ct.query(me.selector); + for (i = 0, len = items.length; i < len; ++i) { + comp = items[i]; + me.onItemAdd(comp.ownerCt, comp); + } + } + items = ct.query('\x3econtainer'); + for (i = 0, len = items.length; i < len; ++i) { + me.onContainerAdd(items[i], true); + } +}, handleRemove:function(ct, comp) { + var me = this; + if (!me.disabled) { + if (comp.is(me.selector)) { + me.onItemRemove(ct, comp); + } + if (comp.isQueryable) { + me.onContainerRemove(ct, comp); + } + } +}, onContainerRemove:function(ct, comp) { + var me = this, items, i, len, item; + if (!comp.destroyed && !comp.destroying && comp.isContainer) { + me.removeCtListeners(comp); + items = comp.query(me.selector); + for (i = 0, len = items.length; i < len; ++i) { + item = items[i]; + me.onItemRemove(item.ownerCt, item); + } + items = comp.query('container'); + for (i = 0, len = items.length; i < len; ++i) { + me.removeCtListeners(items[i]); + } + } else { + me.invalidateItems(true); + } +}, removeCtListeners:function(comp) { + var me = this; + comp.un('add', me.handleAdd, me); + comp.un('dockedadd', me.handleAdd, me); + comp.un('remove', me.handleRemove, me); + comp.un('dockedremove', me.handleRemove, me); +}, getItems:function() { + var me = this, items = me.items; + if (!items) { + items = me.items = new Ext.util.MixedCollection; + items.addAll(me.target.query(me.selector)); + } + return items; +}, invalidateItems:function(triggerHandler) { + var me = this, handler = me.invalidateHandler; + if (triggerHandler && handler) { + handler.call(me.scope || me, me); + } + me.items = null; +}}); +Ext.define('Ext.plugin.Responsive', {extend:Ext.mixin.Responsive, alias:'plugin.responsive', pluginId:'responsive', isPlugin:true, constructor:function(config) { + var me = this, cmp = config.cmp, c = Ext.apply({responsiveConfig:cmp.responsiveConfig, responsiveFormulas:cmp.responsiveFormulas}, config); + delete c.cmp; + me.cmp = cmp; + if (!cmp) { + Ext.raise('Responsive plugin must be constructed by Component'); + } + me.initConfig(c); + if (me.transformed) { + cmp.setConfig(me.transformed); + me.transformed = null; + } +}, init:Ext.emptyFn, privates:{transformInstanceConfig:function(config) { + var transformed = this.callParent([config]); + if (transformed.ptype) { + transformed = Ext.apply({}, transformed); + delete transformed.ptype; + } + this.transformed = transformed; + var ret = Ext.apply({}, config); + delete ret.ptype; + delete ret.responsiveConfig; + delete ret.responsiveFormulas; + return ret; +}, updateResponsiveState:function() { + var config = this.getResponsiveState(); + this.cmp.setConfig(config); +}}}); +Ext.define('Ext.plugin.Viewport', {extend:Ext.plugin.Responsive, alias:'plugin.viewport', setCmp:function(cmp) { + this.cmp = cmp; + if (cmp && !cmp.isViewport) { + this.decorate(cmp); + if (cmp.renderConfigs) { + cmp.flushRenderConfigs(); + } + cmp.setupViewport(); + } +}, statics:{decorate:function(target) { + Ext.applyIf(target.prototype || target, {ariaRole:'application', viewportCls:Ext.baseCSSPrefix + 'viewport'}); + Ext.override(target, {isViewport:true, preserveElOnDestroy:true, initComponent:function() { + this.callParent(); + this.setupViewport(); + }, getSizeModel:function() { + var configured = Ext.layout.SizeModel.configured; + return configured.pairsByHeightOrdinal[configured.ordinal]; + }, handleViewportResize:function() { + var me = this, Element = Ext.dom.Element, width = Element.getViewportWidth(), height = Element.getViewportHeight(); + if (width !== me.width || height !== me.height) { + me.setSize(width, height); + } + }, setupViewport:function() { + var me = this, el = document.body, DomScroller = Ext.scroll.DomScroller; + if (DomScroller.document) { + DomScroller.document = DomScroller.document.destroy(); + } + if (!el.id) { + el.id = me.id; + } + el.setAttribute('data-componentid', me.id); + if (!me.ariaStaticRoles[me.ariaRole]) { + el.setAttribute('role', me.ariaRole); + } + el = me.el = Ext.getBody(); + Ext.fly(document.documentElement).addCls(me.viewportCls); + el.setHeight = el.setWidth = Ext.emptyFn; + el.dom.scroll = 'no'; + me.allowDomMove = false; + me.renderTo = el; + if (Ext.supports.Touch) { + me.addMeta('apple-mobile-web-app-capable', 'yes'); + } + Ext.getScrollbarSize(); + me.width = me.height = undefined; + me.initialViewportHeight = Ext.Element.getViewportHeight(); + me.initialViewportWidth = Ext.Element.getViewportWidth(); + }, afterLayout:function(layout) { + if (Ext.supports.Touch) { + document.body.scrollTop = 0; + } + this.callParent([layout]); + }, onRender:function() { + var me = this; + me.callParent(arguments); + me.width = me.initialViewportWidth; + me.height = me.initialViewportHeight; + me.initialViewportWidth = me.initialViewportHeight = null; + if (Ext.supports.TouchEvents) { + me.mon(Ext.getDoc(), {touchmove:function(e) { + e.preventDefault(); + }, translate:false, delegated:false}); + } + }, initInheritedState:function(inheritedState, inheritedStateInner) { + var me = this, root = Ext.rootInheritedState; + if (inheritedState !== root) { + me.initInheritedState(me.inheritedState = root, me.inheritedStateInner = Ext.Object.chain(root)); + } else { + me.callParent([inheritedState, inheritedStateInner]); + } + }, beforeDestroy:function() { + var me = this, root = Ext.rootInheritedState, key; + for (key in root) { + if (key !== 'rtl') { + delete root[key]; + } + } + me.removeUIFromElement(); + me.el.removeCls(me.baseCls); + Ext.fly(document.body.parentNode).removeCls(me.viewportCls); + me.callParent(); + }, addMeta:function(name, content) { + var meta = document.createElement('meta'); + meta.setAttribute('name', name); + meta.setAttribute('content', content); + Ext.getHead().appendChild(meta); + }, privates:{applyTargetCls:function(targetCls) { + this.el.addCls(targetCls); + }, disableTabbing:function() { + var el = this.el; + if (el) { + el.saveTabbableState({skipSelf:true}); + } + }, enableTabbing:function() { + var el = this.el; + if (el) { + el.restoreTabbableState(true); + } + }}}); +}}, privates:{updateResponsiveState:function() { + this.cmp.handleViewportResize(); + this.callParent(); +}}}, function(Viewport) { + Viewport.prototype.decorate = Viewport.decorate; +}); +Ext.define('Ext.layout.container.Anchor', {alias:'layout.anchor', extend:Ext.layout.container.Auto, alternateClassName:'Ext.layout.AnchorLayout', type:'anchor', defaultAnchor:'100%', parseAnchorRE:/^(r|right|b|bottom)$/i, manageOverflow:true, setsItemSize:true, beginLayoutCycle:function(ownerContext) { + var me = this, dimensions = 0, anchorSpec, childContext, childItems, i, length; + me.callParent(arguments); + childItems = ownerContext.childItems; + length = childItems.length; + for (i = 0; i < length; ++i) { + childContext = childItems[i]; + anchorSpec = childContext.target.anchorSpec; + if (anchorSpec) { + if (childContext.widthModel.calculated && anchorSpec.right) { + dimensions |= 1; + } + if (childContext.heightModel.calculated && anchorSpec.bottom) { + dimensions |= 2; + } + if (dimensions === 3) { + break; + } + } + } + ownerContext.anchorDimensions = dimensions; + me.sanityCheck(ownerContext); +}, calculateItems:function(ownerContext, containerSize) { + var me = this, childItems = ownerContext.childItems, length = childItems.length, gotHeight = containerSize.gotHeight, gotWidth = containerSize.gotWidth, ownerHeight = containerSize.height, ownerWidth = containerSize.width, knownDimensions = (gotWidth ? 1 : 0) | (gotHeight ? 2 : 0), anchorDimensions = ownerContext.anchorDimensions, anchorSpec, childContext, childMargins, height, i, width; + if (!anchorDimensions) { + return true; + } + for (i = 0; i < length; i++) { + childContext = childItems[i]; + childMargins = childContext.getMarginInfo(); + anchorSpec = childContext.target.anchorSpec; + if (gotWidth && childContext.widthModel.calculated) { + width = anchorSpec.right(ownerWidth) - childMargins.width; + width = me.adjustWidthAnchor(width, childContext); + childContext.setWidth(width); + } + if (gotHeight && childContext.heightModel.calculated) { + height = anchorSpec.bottom(ownerHeight) - childMargins.height; + height = me.adjustHeightAnchor(height, childContext); + childContext.setHeight(height); + } + } + return (knownDimensions & anchorDimensions) === anchorDimensions; +}, sanityCheck:function(ownerContext) { + var shrinkWrapWidth = ownerContext.widthModel.shrinkWrap, shrinkWrapHeight = ownerContext.heightModel.shrinkWrap, children = ownerContext.childItems, anchorSpec, comp, childContext, i, length; + for (i = 0, length = children.length; i < length; ++i) { + childContext = children[i]; + comp = childContext.target; + anchorSpec = comp.anchorSpec; + if (anchorSpec) { + if (childContext.widthModel.calculated && anchorSpec.right) { + if (shrinkWrapWidth) { + Ext.log({level:'warn', msg:'Right anchor on ' + comp.id + ' in shrinkWrap width container'}); + } + } + if (childContext.heightModel.calculated && anchorSpec.bottom) { + if (shrinkWrapHeight) { + Ext.log({level:'warn', msg:'Bottom anchor on ' + comp.id + ' in shrinkWrap height container'}); + } + } + } + } +}, anchorFactory:{offset:function(delta) { + return function(v) { + return v + delta; + }; +}, ratio:function(ratio) { + return function(v) { + return Math.floor(v * ratio); + }; +}, standard:function(diff) { + return function(v) { + return v - diff; + }; +}}, parseAnchor:function(a, start, cstart) { + if (a && a !== 'none') { + var factory = this.anchorFactory, delta; + if (this.parseAnchorRE.test(a)) { + return factory.standard(cstart - start); + } + if (a.indexOf('%') !== -1) { + return factory.ratio(parseFloat(a.replace('%', '')) * 0.01); + } + delta = parseInt(a, 10); + if (!isNaN(delta)) { + return factory.offset(delta); + } + } + return null; +}, adjustWidthAnchor:function(value, childContext) { + return value; +}, adjustHeightAnchor:function(value, childContext) { + return value; +}, configureItem:function(item) { + var me = this, owner = me.owner, anchor = item.anchor, anchorsArray, anchorWidth, anchorHeight; + me.callParent(arguments); + if (!item.anchor && item.items && !Ext.isNumber(item.width)) { + item.anchor = anchor = me.defaultAnchor; + } + if (owner.anchorSize) { + if (typeof owner.anchorSize === 'number') { + anchorWidth = owner.anchorSize; + } else { + anchorWidth = owner.anchorSize.width; + anchorHeight = owner.anchorSize.height; + } + } else { + anchorWidth = owner.initialConfig.width; + anchorHeight = owner.initialConfig.height; + } + if (anchor) { + anchorsArray = anchor.split(' '); + item.anchorSpec = {right:me.parseAnchor(anchorsArray[0], item.initialConfig.width, anchorWidth), bottom:me.parseAnchor(anchorsArray[1], item.initialConfig.height, anchorHeight)}; + } +}, sizePolicy:{$:{readsWidth:1, readsHeight:1, setsWidth:0, setsHeight:0}, b:{readsWidth:1, readsHeight:0, setsWidth:0, setsHeight:1}, r:{$:{readsWidth:0, readsHeight:1, setsWidth:1, setsHeight:0}, b:{readsWidth:0, readsHeight:0, setsWidth:1, setsHeight:1}}}, getItemSizePolicy:function(item) { + var anchorSpec = item.anchorSpec, key = '$', policy = this.sizePolicy, sizeModel; + if (anchorSpec) { + sizeModel = this.owner.getSizeModel(); + if (anchorSpec.right && !sizeModel.width.shrinkWrap) { + policy = policy.r; + } + if (anchorSpec.bottom && !sizeModel.height.shrinkWrap) { + key = 'b'; + } + } + return policy[key]; +}}); +Ext.define('Ext.dd.DragTracker', {mixins:{observable:Ext.util.Observable}, active:false, trackOver:false, tolerance:5, autoStart:false, constructor:function(config) { + var me = this; + Ext.apply(me, config); + me.dragRegion = new Ext.util.Region(0, 0, 0, 0); + if (me.el) { + me.initEl(me.el); + } + me.mixins.observable.constructor.call(me); + if (me.disabled) { + me.disable(); + } +}, initEl:function(el) { + var me = this, delegate = me.delegate; + me.el = el = Ext.get(el); + if (delegate && delegate.isElement) { + me.handle = delegate; + } + me.delegate = me.handle ? undefined : me.delegate; + if (!me.handle) { + me.handle = el; + } + me.handleListeners = {scope:me, delegate:me.delegate, mousedown:me.onMouseDown, dragstart:me.onDragStart}; + if (!Ext.supports.TouchEvents && (me.trackOver || me.overCls)) { + Ext.apply(me.handleListeners, {mouseover:me.onMouseOver, mouseout:me.onMouseOut}); + } + me.mon(me.handle, me.handleListeners); + me.keyNav = new Ext.util.KeyNav({target:el, up:me.onResizeKeyDown, left:me.onResizeKeyDown, right:me.onResizeKeyDown, down:me.onResizeKeyDown, scope:me}); +}, disable:function() { + this.disabled = true; +}, enable:function() { + this.disabled = false; +}, destroy:function() { + var me = this; + me.endDrag({}); + me.el = me.handle = me.onBeforeStart = me.onStart = me.onDrag = me.onEnd = null; + me.callParent(); +}, onMouseOver:function(e, target) { + var me = this, handleCls, el, i, len, cls; + if (!me.disabled) { + if (e.within(e.target, true, true) || me.delegate) { + handleCls = me.handleCls; + me.mouseIsOut = false; + if (handleCls) { + for (i = 0, len = me.handleEls.length; i < len; i++) { + el = me.handleEls[i]; + cls = el.delegateCls; + if (!cls) { + cls = el.delegateCls = [handleCls, '-', el.region, '-over'].join(''); + } + el.addCls([cls, me.overCls]); + } + } + me.fireEvent('mouseover', me, e, me.delegate ? e.getTarget(me.delegate, target) : me.handle); + } + } +}, onMouseOut:function(e) { + var me = this, el, i, len; + if (me.mouseIsDown) { + me.mouseIsOut = true; + } else { + if (me.handleCls) { + for (i = 0, len = me.handleEls.length; i < len; i++) { + el = me.handleEls[i]; + el.removeCls([el.delegateCls, me.overCls]); + } + } + me.fireEvent('mouseout', me, e); + } +}, onMouseDown:function(e, target) { + var me = this; + if (me.disabled || e.dragTracked) { + return; + } + me.dragTarget = me.delegate ? target : me.handle.dom; + me.startXY = me.lastXY = e.getXY(); + me.startRegion = Ext.fly(me.dragTarget).getRegion(); + if (me.fireEvent('mousedown', me, e) === false || me.fireEvent('beforedragstart', me, e) === false || me.onBeforeStart(e) === false) { + return; + } + me.mouseIsDown = true; + e.dragTracked = true; + me.el.setCapture(); + e.stopPropagation(); + if (me.preventDefault !== false) { + e.preventDefault(); + } + Ext.getDoc().on({scope:me, capture:true, mouseup:me.onMouseUp, mousemove:me.onMouseMove, selectstart:me.stopSelect}); + me.dragEnded = false; + if (!me.tolerance) { + me.triggerStart(); + } else { + if (me.autoStart) { + me.timer = Ext.defer(me.triggerStart, me.autoStart === true ? 1000 : me.autoStart, me, [e]); + } + } +}, onMouseMove:function(e, target) { + var me = this, xy = e.getXY(), s = me.startXY; + e.stopPropagation(); + if (me.preventDefault !== false) { + e.preventDefault(); + } + if (me.dragEnded) { + return; + } + me.lastXY = xy; + if (!me.active) { + if (Math.max(Math.abs(s[0] - xy[0]), Math.abs(s[1] - xy[1])) > me.tolerance) { + me.triggerStart(e); + } else { + return; + } + } + if (me.fireEvent('mousemove', me, e) === false) { + me.onMouseUp(e); + } else { + me.onDrag(e); + me.fireEvent('drag', me, e); + } +}, onMouseUp:function(e) { + var me = this; + me.mouseIsDown = false; + if (me.mouseIsOut) { + me.mouseIsOut = false; + me.onMouseOut(e); + } + if (me.preventDefault !== false) { + e.preventDefault(); + } + if (Ext.isIE && document.releaseCapture) { + document.releaseCapture(); + } + me.fireEvent('mouseup', me, e); + me.endDrag(e); +}, endDrag:function(e) { + var me = this, wasActive = me.active; + Ext.getDoc().un({mousemove:me.onMouseMove, mouseup:me.onMouseUp, selectstart:me.stopSelect, capture:true, scope:me}); + me.clearStart(); + me.active = false; + if (wasActive) { + me.dragEnded = true; + me.onEnd(e); + me.fireEvent('dragend', me, e); + } + me._constrainRegion = null; +}, triggerStart:function(e) { + var me = this; + me.clearStart(); + me.active = true; + me.onStart(e); + me.fireEvent('dragstart', me, e); +}, clearStart:function() { + var timer = this.timer; + if (timer) { + clearTimeout(timer); + this.timer = null; + } +}, stopSelect:function(e) { + e.stopEvent(); + return false; +}, onBeforeStart:function(e) { +}, onStart:function(xy) { +}, onDrag:function(e) { +}, onEnd:function(e) { +}, getDragTarget:function() { + return this.dragTarget; +}, getDragCt:function() { + return this.el; +}, getConstrainRegion:function() { + var me = this; + if (me.constrainTo) { + if (me.constrainTo instanceof Ext.util.Region) { + return me.constrainTo; + } + if (!me._constrainRegion) { + me._constrainRegion = Ext.fly(me.constrainTo).getViewRegion(); + } + } else { + if (!me._constrainRegion) { + me._constrainRegion = me.getDragCt().getViewRegion(); + } + } + return me._constrainRegion; +}, getXY:function(constrain) { + return constrain ? this.constrainModes[constrain](this, this.lastXY) : this.lastXY; +}, getOffset:function(constrain) { + var xy = this.getXY(constrain), s = this.startXY; + return [xy[0] - s[0], xy[1] - s[1]]; +}, onDragStart:function(e) { + e.stopPropagation(); +}, constrainModes:{point:function(me, xy) { + var dr = me.dragRegion, constrainTo = me.getConstrainRegion(); + if (!constrainTo) { + return xy; + } + dr.x = dr.left = dr[0] = dr.right = xy[0]; + dr.y = dr.top = dr[1] = dr.bottom = xy[1]; + dr.constrainTo(constrainTo); + return [dr.left, dr.top]; +}, dragTarget:function(me, xy) { + var s = me.startXY, dr = me.startRegion.copy(), constrainTo = me.getConstrainRegion(), adjust; + if (!constrainTo) { + return xy; + } + dr.translateBy(xy[0] - s[0], xy[1] - s[1]); + if (dr.right > constrainTo.right) { + xy[0] += adjust = constrainTo.right - dr.right; + dr.left += adjust; + } + if (dr.left < constrainTo.left) { + xy[0] += constrainTo.left - dr.left; + } + if (dr.bottom > constrainTo.bottom) { + xy[1] += adjust = constrainTo.bottom - dr.bottom; + dr.top += adjust; + } + if (dr.top < constrainTo.top) { + xy[1] += constrainTo.top - dr.top; + } + return xy; +}}}); +Ext.define('Ext.resizer.SplitterTracker', {extend:Ext.dd.DragTracker, enabled:true, overlayCls:Ext.baseCSSPrefix + 'resizable-overlay', createDragOverlay:function() { + var overlay, El = Ext.dom.Element; + overlay = this.overlay = Ext.getBody().createChild({role:'presentation', cls:this.overlayCls, html:'\x26#160;'}); + overlay.unselectable(); + overlay.setSize(El.getDocumentWidth(), El.getDocumentHeight()); + overlay.show(); +}, getPrevCmp:function() { + var splitter = this.getSplitter(); + return splitter.previousSibling(':not([hidden])'); +}, getNextCmp:function() { + var splitter = this.getSplitter(); + return splitter.nextSibling(':not([hidden])'); +}, onBeforeStart:function(e) { + var me = this, prevCmp = me.getPrevCmp(), nextCmp = me.getNextCmp(), collapseEl = me.getSplitter().collapseEl, target = e.getTarget(), box; + if (!prevCmp || !nextCmp) { + return false; + } + if (collapseEl && target === collapseEl.dom) { + return false; + } + if (nextCmp.collapsed || prevCmp.collapsed) { + return false; + } + me.prevBox = prevCmp.getEl().getBox(); + me.nextBox = nextCmp.getEl().getBox(); + me.constrainTo = box = me.calculateConstrainRegion(); + if (!box) { + return false; + } + return box; +}, onStart:function(e) { + var splitter = this.getSplitter(); + this.createDragOverlay(); + splitter.addCls(splitter.baseCls + '-active'); +}, onResizeKeyDown:function(e) { + var me = this, splitter = me.getSplitter(), key = e.getKey(), incrIdx = splitter.orientation === 'vertical' ? 0 : 1, incr = key === e.UP || key === e.LEFT ? -1 : 1, easing; + if (!me.active && me.onBeforeStart(e)) { + Ext.fly(e.target).on('keyup', me.onResizeKeyUp, me); + me.triggerStart(e); + me.onMouseDown(e); + me.startXY = splitter.getXY(); + me.lastKeyDownXY = Ext.Array.slice(me.startXY); + easing = me.easing = new Ext.fx.easing.Linear; + easing.setStartTime(Ext.Date.now()); + easing.setStartValue(1); + easing.setEndValue(4); + easing.setDuration(2000); + } + if (me.active) { + me.lastKeyDownXY[incrIdx] = Math.round(me.lastKeyDownXY[incrIdx] + incr * me.easing.getValue()); + me.lastXY = me.lastKeyDownXY; + splitter.setXY(me.getXY('dragTarget')); + } +}, onResizeKeyUp:function(e) { + this.onMouseUp(e); +}, calculateConstrainRegion:function() { + var me = this, splitter = me.getSplitter(), splitWidth = splitter.getWidth(), defaultMin = splitter.defaultSplitMin, orient = splitter.orientation, prevBox = me.prevBox, prevCmp = me.getPrevCmp(), nextBox = me.nextBox, nextCmp = me.getNextCmp(), prevConstrainRegion, nextConstrainRegion, constrainOptions; + if (orient === 'vertical') { + constrainOptions = {prevCmp:prevCmp, nextCmp:nextCmp, prevBox:prevBox, nextBox:nextBox, defaultMin:defaultMin, splitWidth:splitWidth}; + prevConstrainRegion = new Ext.util.Region(prevBox.y, me.getVertPrevConstrainRight(constrainOptions), prevBox.bottom, me.getVertPrevConstrainLeft(constrainOptions)); + nextConstrainRegion = new Ext.util.Region(nextBox.y, me.getVertNextConstrainRight(constrainOptions), nextBox.bottom, me.getVertNextConstrainLeft(constrainOptions)); + } else { + prevConstrainRegion = new Ext.util.Region(prevBox.y + (prevCmp.minHeight || defaultMin), prevBox.right, (prevCmp.maxHeight ? prevBox.y + prevCmp.maxHeight : nextBox.bottom - (nextCmp.minHeight || defaultMin)) + splitWidth, prevBox.x); + nextConstrainRegion = new Ext.util.Region((nextCmp.maxHeight ? nextBox.bottom - nextCmp.maxHeight : prevBox.y + (prevCmp.minHeight || defaultMin)) - splitWidth, nextBox.right, nextBox.bottom - (nextCmp.minHeight || defaultMin), nextBox.x); + } + return prevConstrainRegion.intersect(nextConstrainRegion); +}, performResize:function(e, offset) { + var me = this, splitter = me.getSplitter(), orient = splitter.orientation, prevCmp = me.getPrevCmp(), nextCmp = me.getNextCmp(), owner = splitter.ownerCt, flexedSiblings = owner.query('\x3e[flex]'), len = flexedSiblings.length, vertical = orient === 'vertical', i = 0, dimension = vertical ? 'width' : 'height', totalFlex = 0, item, size; + for (; i < len; i++) { + item = flexedSiblings[i]; + size = vertical ? item.getWidth() : item.getHeight(); + totalFlex += size; + item.flex = size; + } + offset = vertical ? offset[0] : offset[1]; + if (prevCmp) { + size = me.prevBox[dimension] + offset; + if (prevCmp.flex) { + prevCmp.flex = size; + } else { + prevCmp[dimension] = size; + } + } + if (nextCmp) { + size = me.nextBox[dimension] - offset; + if (nextCmp.flex) { + nextCmp.flex = size; + } else { + nextCmp[dimension] = size; + } + } + owner.updateLayout(); +}, endDrag:function() { + var me = this; + if (me.overlay) { + me.overlay.destroy(); + delete me.overlay; + } + me.callParent(arguments); +}, onEnd:function(e) { + var me = this, splitter = me.getSplitter(); + splitter.removeCls(splitter.baseCls + '-active'); + me.performResize(e, me.getResizeOffset()); +}, onDrag:function(e) { + var me = this, offset = me.getOffset('dragTarget'), splitter = me.getSplitter(), splitEl = splitter.getEl(), orient = splitter.orientation; + if (orient === 'vertical') { + splitEl.setX(me.startRegion.left + offset[0]); + } else { + splitEl.setY(me.startRegion.top + offset[1]); + } +}, getSplitter:function() { + return this.splitter; +}, getVertPrevConstrainRight:function(o) { + return (o.prevCmp.maxWidth ? o.prevBox.x + o.prevCmp.maxWidth : o.nextBox.right - (o.nextCmp.minWidth || o.defaultMin)) + o.splitWidth; +}, getVertPrevConstrainLeft:function(o) { + return o.prevBox.x + (o.prevCmp.minWidth || o.defaultMin); +}, getVertNextConstrainRight:function(o) { + return o.nextBox.right - (o.nextCmp.minWidth || o.defaultMin); +}, getVertNextConstrainLeft:function(o) { + return (o.nextCmp.maxWidth ? o.nextBox.right - o.nextCmp.maxWidth : o.prevBox.x + (o.prevBox.minWidth || o.defaultMin)) - o.splitWidth; +}, getResizeOffset:function() { + return this.getOffset('dragTarget'); +}}); +Ext.define('Ext.dd.DDTarget', {extend:Ext.dd.DragDrop, constructor:function(id, sGroup, config) { + if (id) { + this.initTarget(id, sGroup, config); + } +}, getDragEl:Ext.emptyFn, isValidHandleChild:Ext.emptyFn, startDrag:Ext.emptyFn, endDrag:Ext.emptyFn, onDrag:Ext.emptyFn, onDragDrop:Ext.emptyFn, onDragEnter:Ext.emptyFn, onDragOut:Ext.emptyFn, onDragOver:Ext.emptyFn, onInvalidDrop:Ext.emptyFn, onMouseDown:Ext.emptyFn, onMouseUp:Ext.emptyFn, setXConstraint:Ext.emptyFn, setYConstraint:Ext.emptyFn, resetConstraints:Ext.emptyFn, clearConstraints:Ext.emptyFn, clearTicks:Ext.emptyFn, setInitPosition:Ext.emptyFn, setDragElId:Ext.emptyFn, setHandleElId:Ext.emptyFn, +setOuterHandleElId:Ext.emptyFn, addInvalidHandleClass:Ext.emptyFn, addInvalidHandleId:Ext.emptyFn, addInvalidHandleType:Ext.emptyFn, removeInvalidHandleClass:Ext.emptyFn, removeInvalidHandleId:Ext.emptyFn, removeInvalidHandleType:Ext.emptyFn, toString:function() { + return 'DDTarget ' + this.id; +}}); +Ext.define('Ext.event.publisher.MouseEnterLeave', {extend:Ext.event.publisher.Dom, type:'mouseEnterLeave'}, function(MouseEnterLeave) { + var eventMap = {mouseover:'mouseenter', mouseout:'mouseleave'}; + if (!Ext.supports.MouseEnterLeave) { + MouseEnterLeave.override({handledDomEvents:['mouseover', 'mouseout'], handledEvents:['mouseenter', 'mouseleave'], doDelegatedEvent:function(e) { + var target, relatedTarget, id, el, type, event; + e = this.callParent([e]); + target = e.getTarget(); + relatedTarget = e.getRelatedTarget(); + if (relatedTarget && Ext.fly(target).contains(relatedTarget)) { + return; + } + id = target.id; + if (id) { + el = Ext.cache[id]; + if (el) { + type = eventMap[e.type]; + e = e.chain({type:type}); + if (el.hasListeners[type]) { + event = el.events[type]; + if (event) { + event = event.directs; + if (event) { + e.setCurrentTarget(el.dom); + event.fire(e, e.target); + } + } + } + } + } + }}); + } + MouseEnterLeave.instance = new MouseEnterLeave; +}); +Ext.define('Ext.form.action.Action', {alternateClassName:'Ext.form.Action', submitEmptyText:true, constructor:function(config) { + if (config) { + Ext.apply(this, config); + } + var params = config.params; + if (Ext.isString(params)) { + this.params = Ext.Object.fromQueryString(params); + } +}, run:Ext.emptyFn, onFailure:function(response) { + var form = this.form, formActive = form && !form.destroying && !form.destroyed; + this.response = response; + this.failureType = Ext.form.action.Action.CONNECT_FAILURE; + if (formActive) { + form.afterAction(this, false); + } +}, processResponse:function(response) { + this.response = response; + if (!response.responseText && !response.responseXML) { + return true; + } + return this.result = this.handleResponse(response); +}, getUrl:function() { + return this.url || this.form.url; +}, getMethod:function() { + return (this.method || this.form.method || 'POST').toUpperCase(); +}, getParams:function() { + return Ext.apply({}, this.params, this.form.baseParams); +}, createCallback:function() { + var me = this; + return {success:me.onSuccess, failure:me.onFailure, scope:me, timeout:(me.timeout || me.form.timeout) * 1000}; +}, statics:{CLIENT_INVALID:'client', SERVER_INVALID:'server', CONNECT_FAILURE:'connect', LOAD_FAILURE:'load'}}); +Ext.define('Ext.form.action.Load', {extend:Ext.form.action.Action, alternateClassName:'Ext.form.Action.Load', alias:'formaction.load', type:'load', run:function() { + Ext.Ajax.request(Ext.apply(this.createCallback(), {method:this.getMethod(), url:this.getUrl(), headers:this.headers, params:this.getParams()})); +}, onSuccess:function(response) { + var result = this.processResponse(response), form = this.form, formActive = form && !form.destroying && !form.destroyed; + if (result === true || !result.success || !result.data) { + this.failureType = Ext.form.action.Action.LOAD_FAILURE; + if (formActive) { + form.afterAction(this, false); + } + return; + } + if (formActive) { + form.clearInvalid(); + form.setValues(result.data); + form.afterAction(this, true); + } +}, handleResponse:function(response) { + var reader = this.form.reader, rs, data; + if (reader) { + rs = reader.read(response); + data = rs.records && rs.records[0] ? rs.records[0].data : null; + return {success:rs.success, data:data}; + } + return Ext.decode(response.responseText); +}}); +Ext.define('Ext.form.action.Submit', {extend:Ext.form.action.Action, alternateClassName:'Ext.form.Action.Submit', alias:'formaction.submit', type:'submit', run:function() { + var me = this, form = me.form; + if (me.clientValidation === false || form.isValid()) { + me.doSubmit(); + } else { + me.failureType = Ext.form.action.Action.CLIENT_INVALID; + form.afterAction(me, false); + } +}, doSubmit:function() { + var me = this, ajaxOptions = Ext.apply(me.createCallback(), {url:me.getUrl(), method:me.getMethod(), headers:me.headers}), form = me.form, jsonSubmit = me.jsonSubmit || form.jsonSubmit, paramsProp = jsonSubmit ? 'jsonData' : 'params', formInfo; + if (form.hasUpload()) { + formInfo = me.buildForm(); + ajaxOptions.form = formInfo.formEl; + ajaxOptions.isUpload = true; + } else { + ajaxOptions[paramsProp] = me.getParams(jsonSubmit); + } + Ext.Ajax.request(ajaxOptions); + if (formInfo) { + me.cleanup(formInfo); + } +}, cleanup:function(formInfo) { + var formEl = formInfo.formEl, uploadEls = formInfo.uploadEls, uploadFields = formInfo.uploadFields, len = uploadFields.length, i, field; + for (i = 0; i < len; ++i) { + field = uploadFields[i]; + if (!field.clearOnSubmit) { + field.restoreInput(uploadEls[i]); + } + } + if (formEl) { + Ext.removeNode(formEl); + } +}, getParams:function(useModelValues) { + var falseVal = false, configParams = this.callParent(), fieldParams = this.form.getValues(falseVal, falseVal, this.submitEmptyText !== falseVal, useModelValues, true); + return Ext.apply({}, fieldParams, configParams); +}, buildForm:function() { + var me = this, fieldsSpec = [], formSpec, formEl, basicForm = me.form, params = me.getParams(), uploadFields = [], uploadEls = [], fields = basicForm.getFields().items, i, len = fields.length, field, key, value, v, vLen, el; + for (i = 0; i < len; ++i) { + field = fields[i]; + if (field.isFileUpload()) { + uploadFields.push(field); + } + } + for (key in params) { + if (params.hasOwnProperty(key)) { + value = params[key]; + if (Ext.isArray(value)) { + vLen = value.length; + for (v = 0; v < vLen; v++) { + fieldsSpec.push(me.getFieldConfig(key, value[v])); + } + } else { + fieldsSpec.push(me.getFieldConfig(key, value)); + } + } + } + formSpec = {tag:'form', role:'presentation', action:me.getUrl(), method:me.getMethod(), target:me.target ? Ext.isString(me.target) ? me.target : Ext.fly(me.target).dom.name : '_self', style:'display:none', cn:fieldsSpec}; + if (!formSpec.target) { + Ext.raise('Invalid form target.'); + } + if (uploadFields.length) { + formSpec.encoding = formSpec.enctype = 'multipart/form-data'; + } + formEl = Ext.DomHelper.append(Ext.getBody(), formSpec); + len = uploadFields.length; + for (i = 0; i < len; ++i) { + el = uploadFields[i].extractFileInput(); + formEl.appendChild(el); + uploadEls.push(el); + } + return {formEl:formEl, uploadFields:uploadFields, uploadEls:uploadEls}; +}, getFieldConfig:function(name, value) { + return {tag:'input', type:'hidden', name:name, value:Ext.String.htmlEncode(value)}; +}, onSuccess:function(response) { + var form = this.form, formActive = form && !form.destroying && !form.destroyed, success = true, result = this.processResponse(response); + if (result !== true && !result.success) { + if (result.errors && formActive) { + form.markInvalid(result.errors); + } + this.failureType = Ext.form.action.Action.SERVER_INVALID; + success = false; + } + if (formActive) { + form.afterAction(this, success); + } +}, handleResponse:function(response) { + var form = this.form, errorReader = form.errorReader, rs, errors, i, len, records, result; + if (errorReader) { + rs = errorReader.read(response); + records = rs.records; + errors = []; + if (records) { + for (i = 0, len = records.length; i < len; i++) { + errors[i] = records[i].data; + } + } + if (errors.length < 1) { + errors = null; + } + result = {success:rs.success, errors:errors}; + } else { + try { + result = Ext.decode(response.responseText); + } catch (e$30) { + result = {success:false, errors:[]}; + } + } + return result; +}}); +Ext.define('Ext.util.ComponentDragger', {extend:Ext.dd.DragTracker, autoStart:500, constructor:function(comp, config) { + this.comp = comp; + this.initialConstrainTo = config.constrainTo; + this.callParent([config]); +}, onStart:function(e) { + var me = this, comp = me.comp; + me.startPosition = comp.getXY(); + if (comp.ghost && !comp.liveDrag) { + me.proxy = comp.ghost(); + me.dragTarget = me.proxy.header.el; + } + if (me.constrain || me.constrainDelegate) { + me.constrainTo = me.calculateConstrainRegion(); + } + if (comp.beginDrag) { + comp.beginDrag(); + } + if (comp.el.shim) { + comp.el.maskIframes(); + } +}, calculateConstrainRegion:function() { + var me = this, comp = me.comp, constrainTo = me.initialConstrainTo, constraintInsets = comp.constraintInsets, constrainEl, delegateRegion, elRegion, dragEl = me.proxy ? me.proxy.el : comp.el, shadow = dragEl.shadow, shadowSize = shadow && !me.constrainDelegate && comp.constrainShadow && !shadow.disabled ? shadow.getShadowSize() : 0; + if (!(constrainTo instanceof Ext.util.Region)) { + constrainEl = Ext.fly(constrainTo); + constrainTo = constrainEl.getConstrainRegion(); + } else { + constrainTo = constrainTo.copy(); + } + if (constraintInsets) { + constraintInsets = Ext.isObject(constraintInsets) ? constraintInsets : Ext.Element.parseBox(constraintInsets); + constrainTo.adjust(constraintInsets.top, constraintInsets.right, constraintInsets.bottom, constraintInsets.left); + } + if (shadowSize) { + constrainTo.adjust(shadowSize[0], -shadowSize[1], -shadowSize[2], shadowSize[3]); + } + if (!me.constrainDelegate) { + delegateRegion = Ext.fly(me.dragTarget).getRegion(); + elRegion = dragEl.getRegion(); + constrainTo.adjust(delegateRegion.top - elRegion.top, delegateRegion.right - elRegion.right, delegateRegion.bottom - elRegion.bottom, delegateRegion.left - elRegion.left); + } + return constrainTo; +}, onDrag:function(e) { + var me = this, comp = me.proxy && !me.comp.liveDrag ? me.proxy : me.comp, offset = me.getOffset(me.constrain || me.constrainDelegate ? 'dragTarget' : null); + comp.setPagePosition(me.startPosition[0] + offset[0], me.startPosition[1] + offset[1]); +}, onEnd:function(e) { + var comp = this.comp; + if (comp.destroyed || comp.destroying) { + return; + } + if (this.proxy && !comp.liveDrag) { + comp.unghost(); + } + if (comp.endDrag) { + comp.endDrag(); + } + if (comp.el.shim) { + comp.el.unmaskIframes(); + } +}}); +Ext.define('Ext.util.FocusTrap', {extend:Ext.Mixin, mixinConfig:{id:'focustrap', after:{afterRender:'initTabGuards', addTool:'initTabGuards', add:'initTabGuards', remove:'initTabGuards', addDocked:'initTabGuards', removeDocked:'initTabGuards', onShow:'initTabGuards', afterHide:'initTabGuards'}}, config:{tabGuard:true, tabGuardTpl:'\x3cdiv id\x3d"{id}-{tabGuardEl}" data-ref\x3d"{tabGuardEl}" role\x3d"button" ' + 'data-tabguardposition\x3d"{tabGuard}" aria-busy\x3d"true" style\x3d"height:0"' + 'class\x3d"' + +Ext.baseCSSPrefix + 'hidden-clip"\x3e' + '\x3c/div\x3e', tabGuardIndex:0}, tabGuardPositionAttribute:'data-tabguardposition', privates:{initTabGuards:function() { + var me = this, posAttr = me.tabGuardPositionAttribute, beforeGuard = me.tabGuardBeforeEl, afterGuard = me.tabGuardAfterEl, tabIndex = me.tabGuardIndex, nodes; + if (!me.rendered || !me.tabGuard) { + return; + } + nodes = me.el.findTabbableElements({skipSelf:true}); + if (nodes[0] && nodes[0].hasAttribute(posAttr)) { + nodes.shift(); + } + if (nodes.length && nodes[nodes.length - 1].hasAttribute(posAttr)) { + nodes.pop(); + } + if (nodes.length) { + beforeGuard.dom.setAttribute('tabIndex', tabIndex); + beforeGuard.on('focusenter', me.onTabGuardFocusEnter, me); + afterGuard.dom.setAttribute('tabIndex', tabIndex); + afterGuard.on('focusenter', me.onTabGuardFocusEnter, me); + } else { + beforeGuard.dom.removeAttribute('tabIndex'); + beforeGuard.un('focusenter', me.onTabGuardFocusEnter, me); + afterGuard.dom.removeAttribute('tabIndex'); + afterGuard.un('focusenter', me.onTabGuardFocusEnter, me); + } +}, onTabGuardFocusEnter:function(e, target) { + var me = this, el = me.el, posAttr = me.tabGuardPositionAttribute, position = target.getAttribute(posAttr), from = e.relatedTarget, nodes, forward, nextFocus; + if (!from.hasAttribute(posAttr) && from !== el.dom && el.contains(from)) { + forward = position === 'before' ? false : true; + } else { + forward = position === 'before' ? true : false; + } + nodes = el.findTabbableElements({skipSelf:true}); + nodes.shift(); + nodes.pop(); + nextFocus = forward ? nodes[0] : nodes[nodes.length - 1]; + if (nextFocus) { + nextFocus.focus(); + } +}}}); +Ext.define('Ext.window.Window', {extend:Ext.panel.Panel, alternateClassName:'Ext.Window', mixins:[Ext.util.FocusTrap], alias:'widget.window', baseCls:Ext.baseCSSPrefix + 'window', resizable:true, draggable:true, constrain:false, constrainHeader:false, plain:false, minimizable:false, maximizable:false, minHeight:50, minWidth:50, expandOnShow:true, collapsible:false, closable:true, hidden:true, autoRender:true, hideMode:'offsets', floating:true, itemCls:Ext.baseCSSPrefix + 'window-item', overlapHeader:true, +ignoreHeaderBorderManagement:true, alwaysFramed:true, isRootCfg:{isRoot:true}, isWindow:true, ariaRole:'dialog', initComponent:function() { + var me = this; + me.frame = false; + me.callParent(); + if (me.plain) { + me.addClsWithUI('plain'); + } + me.addStateEvents(['maximize', 'restore', 'resize', 'dragend']); +}, getElConfig:function() { + var me = this, elConfig; + elConfig = me.callParent(); + elConfig.tabIndex = -1; + return elConfig; +}, getFocusEl:function() { + return this.getDefaultFocus() || this.el; +}, getState:function() { + var me = this, state = me.callParent() || {}, maximized = !!me.maximized, ghostBox = me.ghostBox, pos; + state.maximized = maximized; + if (maximized) { + pos = me.restorePos; + } else { + if (ghostBox) { + pos = [ghostBox.x, ghostBox.y]; + } else { + pos = me.getPosition(); + } + } + Ext.apply(state, {size:maximized ? me.restoreSize : me.getSize(), pos:pos}); + return state; +}, applyState:function(state) { + var me = this; + if (state) { + me.maximized = state.maximized; + if (me.maximized) { + me.hasSavedRestore = true; + me.restoreSize = state.size; + me.restorePos = state.pos; + } else { + Ext.apply(me, {width:state.size.width, height:state.size.height, x:state.pos[0], y:state.pos[1]}); + } + } +}, onRender:function(ct, position) { + var me = this; + me.callParent(arguments); + if (me.header) { + me.header.on({scope:me, click:me.onHeaderClick}); + } + if (me.maximizable) { + me.header.on({scope:me, dblclick:me.toggleMaximize}); + } +}, afterRender:function() { + var me = this, header = me.header, keyMap; + if (me.maximized) { + me.maximized = false; + me.maximize(); + if (header) { + header.removeCls(header.indicateDragCls); + } + } + me.callParent(); + if (me.closable) { + keyMap = me.getKeyMap(); + keyMap.on(27, me.onEsc, me); + } else { + keyMap = me.keyMap; + } + if (keyMap && me.hidden) { + keyMap.disable(); + } +}, onEsc:function(k, e) { + e.stopEvent(); + this.close(); +}, beforeDestroy:function() { + var me = this; + if (me.rendered) { + Ext.un('resize', me.onWindowResize, me); + delete me.animateTarget; + me.hide(); + Ext.destroy(me.keyMap); + } + me.callParent(); +}, addTools:function() { + var me = this, tools = []; + me.callParent(); + if (me.minimizable) { + tools.push({type:'minimize', handler:'minimize', scope:me}); + } + if (me.maximizable) { + tools.push({type:me.maximized ? 'restore' : 'maximize', handler:'toggleMaximize', scope:me}); + } + if (tools.length) { + me.addTool(tools); + } +}, onShow:function() { + var me = this; + me.callParent(arguments); + if (me.expandOnShow) { + me.expand(false); + } + me.syncMonitorWindowResize(); + if (me.keyMap) { + me.keyMap.enable(); + } +}, doClose:function() { + var me = this; + if (me.hidden) { + me.fireEvent('close', me); + if (me.closeAction === 'destroy') { + me.destroy(); + } + } else { + me.hide(me.animateTarget, me.doClose, me); + } +}, afterHide:function() { + var me = this; + me.syncMonitorWindowResize(); + if (me.keyMap) { + me.keyMap.disable(); + } + me.callParent(arguments); +}, onWindowResize:function() { + var me = this, sizeModel; + if (!me.destroyed) { + if (me.maximized) { + me.fitContainer(); + } else { + sizeModel = me.getSizeModel(); + if (sizeModel.width.natural || sizeModel.height.natural) { + me.updateLayout(); + } + me.doConstrain(); + } + } +}, minimize:function() { + this.fireEvent('minimize', this); + return this; +}, resumeHeaderLayout:function(changed) { + this.header.resumeLayouts(changed ? this.isRootCfg : null); +}, afterCollapse:function() { + var me = this, header = me.header, tools = me.tools; + if (header && me.maximizable) { + header.suspendLayouts(); + tools.maximize.hide(); + this.resumeHeaderLayout(true); + } + if (me.resizer) { + me.resizer.disable(); + } + me.callParent(arguments); +}, afterExpand:function() { + var me = this, header = me.header, tools = me.tools, changed; + if (header) { + header.suspendLayouts(); + if (me.maximizable) { + tools.maximize.show(); + changed = true; + } + this.resumeHeaderLayout(changed); + } + if (me.resizer) { + me.resizer.enable(); + } + me.callParent(arguments); +}, maximize:function(animate) { + var me = this, header = me.header, tools = me.tools, width = me.width, height = me.height, restore, changed; + if (!me.maximized) { + me.expand(false); + if (!me.hasSavedRestore) { + restore = me.restoreSize = {width:width ? width : null, height:height ? height : null}; + me.restorePos = me.getPosition(); + } + if (header) { + header.suspendLayouts(); + if (tools.maximize) { + tools.maximize.setType('restore'); + } + if (me.collapseTool) { + me.collapseTool.hide(); + changed = true; + } + me.resumeHeaderLayout(changed); + } + me.el.disableShadow(); + if (me.dd) { + me.dd.disable(); + if (header) { + header.removeCls(header.indicateDragCls); + } + } + if (me.resizer) { + me.resizer.disable(); + } + me.el.addCls(Ext.baseCSSPrefix + 'window-maximized'); + me.container.addCls(Ext.baseCSSPrefix + 'window-maximized-ct'); + me.syncMonitorWindowResize(); + me.fitContainer(animate = animate || !!me.animateTarget ? {callback:function() { + me.maximized = true; + me.fireEvent('maximize', me); + }} : null); + if (!animate) { + me.maximized = true; + me.fireEvent('maximize', me); + } + } + return me; +}, restore:function(animate) { + var me = this, tools = me.tools, header = me.header, newBox = me.restoreSize, changed; + if (me.maximized) { + me.hasSavedRestore = null; + me.removeCls(Ext.baseCSSPrefix + 'window-maximized'); + if (header) { + header.suspendLayouts(); + if (tools.maximize) { + tools.maximize.setType('maximize'); + } + if (me.collapseTool) { + me.collapseTool.show(); + changed = true; + } + me.resumeHeaderLayout(changed); + } + newBox.x = me.restorePos[0]; + newBox.y = me.restorePos[1]; + me.setBox(newBox, animate = animate || !!me.animateTarget ? {callback:function() { + me.el.enableShadow(null, true); + me.maximized = false; + me.fireEvent('restore', me); + }} : null); + me.restorePos = me.restoreSize = null; + if (me.dd) { + me.dd.enable(); + if (header) { + header.addCls(header.indicateDragCls); + } + } + if (me.resizer) { + me.resizer.enable(); + } + me.container.removeCls(Ext.baseCSSPrefix + 'window-maximized-ct'); + me.syncMonitorWindowResize(); + if (!animate) { + me.el.enableShadow(null, true); + me.maximized = false; + me.fireEvent('restore', me); + } + } + return me; +}, syncMonitorWindowResize:function() { + var me = this, currentlyMonitoring = me._monitoringResize, yes = me.monitorResize || me.constrain || me.constrainHeader || me.maximized, veto = me.hidden || me.destroying || me.destroyed; + if (yes && !veto) { + if (!currentlyMonitoring) { + Ext.on('resize', me.onWindowResize, me, {buffer:1}); + me._monitoringResize = true; + } + } else { + if (currentlyMonitoring) { + Ext.un('resize', me.onWindowResize, me); + me._monitoringResize = false; + } + } +}, toggleMaximize:function() { + return this[this.maximized ? 'restore' : 'maximize'](); +}, createGhost:function() { + var ghost = this.callParent(arguments); + ghost.xtype = 'window'; + ghost.focusOnToFront = false; + return ghost; +}, getDefaultFocus:function() { + var me = this, result, defaultComp = me.defaultFocus, selector; + if (defaultComp !== undefined) { + if (Ext.isNumber(defaultComp)) { + result = me.query('button')[defaultComp]; + } else { + if (Ext.isString(defaultComp)) { + selector = defaultComp; + if (Ext.validIdRe.test(selector)) { + result = me.down(Ext.makeIdSelector(selector)); + } + if (!result) { + result = me.down(selector); + } + } else { + if (defaultComp.focus) { + result = defaultComp; + } + } + } + } + return result; +}, privates:{initDraggable:function() { + this.initSimpleDraggable(); +}, onHeaderClick:function(header, e) { + var delegate; + if (header.el.contains(e.getTarget())) { + delegate = this.getDefaultFocus(); + if (delegate) { + delegate.focus(); + } + } +}, initResizable:function() { + this.callParent(arguments); + if (this.maximized) { + this.resizer.disable(); + } +}}}); +Ext.define('Ext.form.Labelable', {extend:Ext.Mixin, isLabelable:true, mixinConfig:{id:'labelable', on:{beforeRender:'beforeLabelRender', onRender:'onLabelRender'}}, config:{childEls:['labelEl', 'bodyEl', 'errorEl', 'errorWrapEl', 'ariaErrorEl']}, labelableRenderTpl:['{beforeLabelTpl}', '\x3clabel id\x3d"{id}-labelEl" data-ref\x3d"labelEl" class\x3d"{labelCls} {labelCls}-{ui} {labelClsExtra} ', '{childElCls} {unselectableCls}" style\x3d"{labelStyle}"\x3ctpl if\x3d"inputId"\x3e', ' for\x3d"{inputId}"\x3c/tpl\x3e {labelAttrTpl}\x3e', +'\x3cspan class\x3d"{labelInnerCls} {labelInnerCls}-{ui}" style\x3d"{labelInnerStyle}"\x3e', '{beforeLabelTextTpl}', '\x3ctpl if\x3d"fieldLabel"\x3e{fieldLabel}', '\x3ctpl if\x3d"labelSeparator"\x3e{labelSeparator}\x3c/tpl\x3e', '\x3c/tpl\x3e', '{afterLabelTextTpl}', '\x3c/span\x3e', '\x3c/label\x3e', '{afterLabelTpl}', '\x3cdiv id\x3d"{id}-bodyEl" data-ref\x3d"bodyEl" role\x3d"presentation"', ' class\x3d"{baseBodyCls} {baseBodyCls}-{ui}\x3ctpl if\x3d"fieldBodyCls"\x3e', ' {fieldBodyCls} {fieldBodyCls}-{ui}\x3c/tpl\x3e {growCls} {extraFieldBodyCls}"', +'\x3ctpl if\x3d"bodyStyle"\x3e style\x3d"{bodyStyle}"\x3c/tpl\x3e\x3e', '{beforeBodyEl}', '{beforeSubTpl}', '{[values.$comp.getSubTplMarkup(values)]}', '{afterSubTpl}', '{afterBodyEl}', '\x3cdiv id\x3d"{id}-ariaErrorEl" data-ref\x3d"ariaErrorEl" role\x3d"alert" aria-live\x3d"polite"', ' class\x3d"' + Ext.baseCSSPrefix + 'hidden-clip"\x3e', '\x3c/div\x3e', '\x3c/div\x3e', '\x3ctpl if\x3d"renderError"\x3e', '\x3cdiv id\x3d"{id}-errorWrapEl" data-ref\x3d"errorWrapEl" class\x3d"{errorWrapCls} {errorWrapCls}-{ui}', +' {errorWrapExtraCls}" style\x3d"{errorWrapStyle}"\x3e', '\x3cdiv role\x3d"presentation" id\x3d"{id}-errorEl" data-ref\x3d"errorEl" ', 'class\x3d"{errorMsgCls} {invalidMsgCls} {invalidMsgCls}-{ui}" ', 'data-anchorTarget\x3d"{tipAnchorTarget}"\x3e', '\x3c/div\x3e', '\x3c/div\x3e', '\x3c/tpl\x3e', {disableFormats:true}], activeErrorsTpl:undefined, htmlActiveErrorsTpl:['\x3ctpl if\x3d"errors \x26\x26 errors.length"\x3e', '\x3cul class\x3d"{listCls}"\x3e', '\x3ctpl for\x3d"errors"\x3e\x3cli\x3e{.}\x3c/li\x3e\x3c/tpl\x3e', +'\x3c/ul\x3e', '\x3c/tpl\x3e'], plaintextActiveErrorsTpl:['\x3ctpl if\x3d"errors \x26\x26 errors.length"\x3e', '\x3ctpl for\x3d"errors"\x3e\x3ctpl if\x3d"xindex \x26gt; 1"\x3e\n\x3c/tpl\x3e{.}\x3c/tpl\x3e', '\x3c/tpl\x3e'], isFieldLabelable:true, formItemCls:Ext.baseCSSPrefix + 'form-item', labelCls:Ext.baseCSSPrefix + 'form-item-label', topLabelCls:Ext.baseCSSPrefix + 'form-item-label-top', rightLabelCls:Ext.baseCSSPrefix + 'form-item-label-right', labelInnerCls:Ext.baseCSSPrefix + 'form-item-label-inner', +topLabelSideErrorCls:Ext.baseCSSPrefix + 'form-item-label-top-side-error', errorMsgCls:Ext.baseCSSPrefix + 'form-error-msg', errorWrapCls:Ext.baseCSSPrefix + 'form-error-wrap', errorWrapSideCls:Ext.baseCSSPrefix + 'form-error-wrap-side', errorWrapUnderCls:Ext.baseCSSPrefix + 'form-error-wrap-under', errorWrapUnderSideLabelCls:Ext.baseCSSPrefix + 'form-error-wrap-under-side-label', baseBodyCls:Ext.baseCSSPrefix + 'form-item-body', invalidIconCls:Ext.baseCSSPrefix + 'form-invalid-icon', invalidUnderCls:Ext.baseCSSPrefix + +'form-invalid-under', noLabelCls:Ext.baseCSSPrefix + 'form-item-no-label', fieldBodyCls:'', invalidCls:Ext.baseCSSPrefix + 'form-invalid', fieldLabel:undefined, labelAlign:'left', labelWidth:100, labelPad:5, labelSeparator:':', hideLabel:false, hideEmptyLabel:true, preventMark:false, autoFitErrors:true, msgTarget:'qtip', msgTargets:{qtip:1, title:1, under:1, side:1, none:1}, noWrap:true, labelableInsertions:['beforeBodyEl', 'afterBodyEl', 'beforeLabelTpl', 'afterLabelTpl', 'beforeSubTpl', 'afterSubTpl', +'beforeLabelTextTpl', 'afterLabelTextTpl', 'labelAttrTpl'], statics:{initTip:function() { + var tip = this.tip, cfg, copy; + if (tip) { + return; + } + cfg = {id:'ext-form-error-tip', sticky:true, ui:'form-invalid'}; + if (Ext.supports.Touch) { + cfg.dismissDelay = 0; + cfg.anchor = 'top'; + cfg.showDelay = 0; + cfg.listeners = {beforeshow:function() { + this.minWidth = Ext.fly(this.anchorTarget).getWidth(); + }}; + } + tip = this.tip = Ext.create('Ext.tip.QuickTip', cfg); + copy = Ext.apply({}, tip.tagConfig); + copy.attribute = 'errorqtip'; + tip.setTagConfig(copy); +}, destroyTip:function() { + this.tip = Ext.destroy(this.tip); +}}, initLabelable:function() { + var me = this, padding = me.padding; + if (padding) { + me.padding = undefined; + me.extraMargins = Ext.Element.parseBox(padding); + } + if (Ext.isIE8) { + me.restoreDisplay = Ext.Function.createDelayed(me.doRestoreDisplay, 0, me); + } + if (!me.activeErrorsTpl) { + if (me.msgTarget === 'title') { + me.activeErrorsTpl = me.plaintextActiveErrorsTpl; + } else { + me.activeErrorsTpl = me.htmlActiveErrorsTpl; + } + } + me.addCls([me.formItemCls, me.formItemCls + '-' + me.ui]); + me.lastActiveError = ''; + me.enableBubble('errorchange'); +}, trimLabelSeparator:function() { + var me = this, separator = me.labelSeparator, label = me.fieldLabel || '', lastChar = label.substr(label.length - 1); + return lastChar === separator ? label.slice(0, -1) : label; +}, getFieldLabel:function() { + return this.trimLabelSeparator(); +}, setFieldLabel:function(label) { + label = label || ''; + var me = this, separator = me.labelSeparator, labelEl = me.labelEl, errorWrapEl = me.errorWrapEl, sideLabel = me.labelAlign !== 'top', noLabelCls = me.noLabelCls, errorWrapUnderSideLabelCls = me.errorWrapUnderSideLabelCls; + me.fieldLabel = label; + if (me.rendered) { + if (Ext.isEmpty(label) && me.hideEmptyLabel) { + me.addCls(noLabelCls); + if (sideLabel && errorWrapEl) { + errorWrapEl.removeCls(errorWrapUnderSideLabelCls); + } + } else { + if (separator) { + label = me.trimLabelSeparator() + separator; + } + labelEl.dom.firstChild.innerHTML = label; + me.removeCls(noLabelCls); + if (sideLabel && errorWrapEl) { + errorWrapEl.addCls(errorWrapUnderSideLabelCls); + } + } + me.updateLayout(); + } +}, setHideLabel:function(hideLabel) { + var me = this; + if (hideLabel !== me.hideLabel) { + me.hideLabel = hideLabel; + if (me.rendered) { + me[hideLabel ? 'addCls' : 'removeCls'](me.noLabelCls); + me.updateLayout(); + } + } +}, setHideEmptyLabel:function(hideEmptyLabel) { + var me = this, hide; + if (hideEmptyLabel !== me.hideEmptyLabel) { + me.hideEmptyLabel = hideEmptyLabel; + if (me.rendered && !me.hideLabel) { + hide = hideEmptyLabel && !me.getFieldLabel(); + me[hide ? 'addCls' : 'removeCls'](me.noLabelCls); + me.updateLayout(); + } + } +}, getInsertionRenderData:function(data, names) { + var i = names.length, name, value; + while (i--) { + name = names[i]; + value = this[name]; + if (value) { + if (typeof value !== 'string') { + if (!value.isTemplate) { + value = Ext.XTemplate.getTpl(this, name); + } + value = value.apply(data); + } + } + data[name] = value || ''; + } + return data; +}, getLabelableRenderData:function() { + var me = this, labelAlign = me.labelAlign, topLabel = labelAlign === 'top', rightLabel = labelAlign === 'right', sideError = me.msgTarget === 'side', underError = me.msgTarget === 'under', errorMsgCls = me.errorMsgCls, labelPad = me.labelPad, labelWidth = me.labelWidth, labelClsExtra = me.labelClsExtra || '', errorWrapExtraCls = sideError ? me.errorWrapSideCls : me.errorWrapUnderCls, labelStyle = '', labelInnerStyle = '', labelVisible = me.hasVisibleLabel(), autoFitErrors = me.autoFitErrors, defaultBodyWidth = + me.defaultBodyWidth, bodyStyle, data; + if (topLabel) { + labelClsExtra += ' ' + me.topLabelCls; + if (labelPad) { + labelInnerStyle = 'padding-bottom:' + labelPad + 'px;'; + } + if (sideError && !autoFitErrors) { + labelClsExtra += ' ' + me.topLabelSideErrorCls; + } + } else { + if (rightLabel) { + labelClsExtra += ' ' + me.rightLabelCls; + } + if (labelPad) { + labelStyle += me.getHorizontalPaddingStyle() + labelPad + 'px;'; + } + labelStyle += 'width:' + (labelWidth + (labelPad ? labelPad : 0)) + 'px;'; + labelInnerStyle = 'width:' + labelWidth + 'px'; + } + if (labelVisible) { + if (!topLabel && underError) { + errorWrapExtraCls += ' ' + me.errorWrapUnderSideLabelCls; + } + } + if (defaultBodyWidth) { + bodyStyle = 'min-width:' + defaultBodyWidth + 'px;max-width:' + defaultBodyWidth + 'px;'; + } + data = {id:me.id, inputId:me.getInputId(), labelCls:me.labelCls, labelClsExtra:labelClsExtra, labelStyle:labelStyle + (me.labelStyle || ''), labelInnerStyle:labelInnerStyle, labelInnerCls:me.labelInnerCls, unselectableCls:Ext.Element.unselectableCls, bodyStyle:bodyStyle, baseBodyCls:me.baseBodyCls, fieldBodyCls:me.fieldBodyCls, extraFieldBodyCls:me.extraFieldBodyCls, errorWrapCls:me.errorWrapCls, errorWrapExtraCls:errorWrapExtraCls, renderError:sideError || underError, invalidMsgCls:sideError ? + me.invalidIconCls : underError ? me.invalidUnderCls : '', errorMsgCls:errorMsgCls, growCls:me.grow ? me.growCls : '', tipAnchorTarget:me.id + '-inputEl', errorWrapStyle:sideError && !autoFitErrors ? 'visibility:hidden' : 'display:none', fieldLabel:me.getFieldLabel(), labelSeparator:me.labelSeparator}; + me.getInsertionRenderData(data, me.labelableInsertions); + return data; +}, getHorizontalPaddingStyle:function() { + return 'padding-right:'; +}, beforeLabelRender:function() { + var me = this; + me.setFieldDefaults(me.getInherited().fieldDefaults); + if (me.ownerLayout) { + me.addCls(Ext.baseCSSPrefix + me.ownerLayout.type + '-form-item'); + } + if (!me.hasVisibleLabel()) { + me.addCls(me.noLabelCls); + } +}, onLabelRender:function() { + var me = this, style = {}, ExtElement = Ext.Element, errorWrapEl = me.errorWrapEl, margins, side; + if (errorWrapEl) { + errorWrapEl.setVisibilityMode(me.msgTarget === 'side' && !me.autoFitErrors ? ExtElement.VISIBILITY : ExtElement.DISPLAY); + } + if (me.extraMargins) { + margins = me.el.getMargin(); + for (side in margins) { + if (margins.hasOwnProperty(side)) { + style['margin-' + side] = margins[side] + me.extraMargins[side] + 'px'; + } + } + me.el.setStyle(style); + } +}, hasVisibleLabel:function() { + if (this.hideLabel) { + return false; + } + return !(this.hideEmptyLabel && !this.getFieldLabel()); +}, getSubTplMarkup:function() { + return ''; +}, getInputId:function() { + return ''; +}, getActiveError:function() { + return this.activeError || ''; +}, hasActiveError:function() { + return !!this.getActiveError(); +}, setActiveError:function(msg) { + this.setActiveErrors(msg); +}, getActiveErrors:function() { + return this.activeErrors || []; +}, setActiveErrors:function(errors) { + var me = this, errorWrapEl = me.errorWrapEl, msgTarget = me.msgTarget, isSide = msgTarget === 'side', isQtip = msgTarget === 'qtip', actionEl, activeError, tpl, targetEl; + errors = Ext.Array.from(errors); + tpl = me.getTpl('activeErrorsTpl'); + me.activeErrors = errors; + activeError = me.activeError = tpl.apply({fieldLabel:me.fieldLabel, errors:errors, listCls:Ext.baseCSSPrefix + 'list-plain'}); + me.renderActiveError(); + if (me.rendered) { + actionEl = me.getActionEl(); + if (isSide) { + me.errorEl.dom.setAttribute('data-errorqtip', activeError); + } else { + if (isQtip) { + actionEl.dom.setAttribute('data-errorqtip', activeError); + } else { + if (msgTarget === 'title') { + actionEl.dom.setAttribute('title', activeError); + } + } + } + if (msgTarget !== 'title') { + me.ariaErrorEl.dom.innerHTML = errors.join('. '); + actionEl.dom.setAttribute('aria-describedby', me.ariaErrorEl.id); + } + if (isSide || isQtip) { + Ext.form.Labelable.initTip(); + } + if (!me.msgTargets[msgTarget]) { + targetEl = Ext.get(msgTarget); + if (targetEl) { + targetEl.dom.innerHTML = activeError; + } + } + } + if (errorWrapEl) { + errorWrapEl.setVisible(errors.length > 0); + if (isSide && me.autoFitErrors) { + me.labelEl.addCls(me.topLabelSideErrorCls); + } + me.updateLayout(); + } +}, unsetActiveError:function() { + var me = this, errorWrapEl = me.errorWrapEl, msgTarget = me.msgTarget, restoreDisplay = me.restoreDisplay, actionEl, targetEl; + if (me.hasActiveError()) { + delete me.activeError; + delete me.activeErrors; + me.renderActiveError(); + if (me.rendered) { + actionEl = me.getActionEl(); + if (msgTarget === 'qtip') { + actionEl.dom.removeAttribute('data-errorqtip'); + } else { + if (msgTarget === 'title') { + actionEl.dom.removeAttribute('title'); + } + } + if (msgTarget !== 'title') { + me.ariaErrorEl.dom.innerHTML = ''; + actionEl.dom.removeAttribute('aria-describedby'); + } + if (!me.msgTargets[msgTarget]) { + targetEl = Ext.get(msgTarget); + if (targetEl) { + targetEl.dom.innerHTML = ''; + } + } + if (errorWrapEl) { + errorWrapEl.hide(); + if (msgTarget === 'side' && me.autoFitErrors) { + me.labelEl.removeCls(me.topLabelSideErrorCls); + } + me.updateLayout(); + if (restoreDisplay) { + me.el.dom.style.display = 'block'; + me.restoreDisplay(); + } + } + } + } +}, doRestoreDisplay:function() { + var el = this.el; + if (el && el.dom) { + el.dom.style.display = ''; + } +}, renderActiveError:function() { + var me = this, activeError = me.getActiveError(), hasError = !!activeError; + if (activeError !== me.lastActiveError) { + me.lastActiveError = activeError; + me.fireEvent('errorchange', me, activeError); + } + if (me.rendered && !me.destroyed && !me.preventMark) { + me.toggleInvalidCls(hasError); + if (me.errorEl) { + me.errorEl.dom.innerHTML = activeError; + } + } +}, toggleInvalidCls:function(hasError) { + this.el[hasError ? 'addCls' : 'removeCls'](this.invalidCls); +}, setFieldDefaults:function(defaults) { + var key; + for (key in defaults) { + if (!this.hasOwnProperty(key)) { + this[key] = defaults[key]; + } + } +}}, function() { + if (Ext.supports.Touch) { + this.prototype.msgTarget = 'side'; + } +}); +Ext.define('Ext.form.field.Field', {mixinId:'field', isFormField:true, config:{validation:null, validationField:null}, disabled:false, submitValue:true, validateOnChange:true, valuePublishEvent:'change', suspendCheckChange:0, dirty:false, initField:function() { + var me = this, valuePublishEvent = me.valuePublishEvent, len, i; + me.initValue(); + var badNames = ['tagName', 'nodeName', 'children', 'childNodes'], name = this.name; + if (name && Ext.Array.indexOf(badNames, name) > -1) { + Ext.log.warn(['It is recommended to not use "', name, '" as a field name, because it ', 'can cause naming collisions during form submission.'].join('')); + } + if (Ext.isString(valuePublishEvent)) { + me.on(valuePublishEvent, me.publishValue, me); + } else { + for (i = 0, len = valuePublishEvent.length; i < len; ++i) { + me.on(valuePublishEvent[i], me.publishValue, me); + } + } +}, initValue:function() { + var me = this; + if ('value' in me) { + me.suspendCheckChange++; + me.setValue(me.value); + me.suspendCheckChange--; + } + me.initialValue = me.originalValue = me.lastValue = me.getValue(); +}, getFieldIdentifier:function() { + return this.isEditorComponent ? this.dataIndex : this.name; +}, getName:function() { + return this.name; +}, getValue:function() { + return this.value; +}, setValue:function(value) { + var me = this; + me.value = value; + me.checkChange(); + return me; +}, isEqual:function(value1, value2) { + return String(value1) === String(value2); +}, isEqualAsString:function(value1, value2) { + return String(Ext.valueFrom(value1, '')) === String(Ext.valueFrom(value2, '')); +}, getSubmitData:function() { + var me = this, data = null; + if (!me.disabled && me.submitValue) { + data = {}; + data[me.getName()] = '' + me.getValue(); + } + return data; +}, getModelData:function(includeEmptyText, isSubmitting) { + var me = this, data = null; + if (!me.disabled && (me.submitValue || !isSubmitting)) { + data = {}; + data[me.getFieldIdentifier()] = me.getValue(); + } + return data; +}, reset:function() { + var me = this; + me.beforeReset(); + me.setValue(me.originalValue); + me.clearInvalid(); + delete me.wasValid; +}, beforeReset:Ext.emptyFn, resetOriginalValue:function() { + this.originalValue = this.getValue(); + this.checkDirty(); +}, checkChange:function() { + var me = this, newVal, oldVal; + if (!me.suspendCheckChange) { + newVal = me.getValue(); + oldVal = me.lastValue; + if (!me.destroyed && me.didValueChange(newVal, oldVal)) { + me.lastValue = newVal; + me.fireEvent('change', me, newVal, oldVal); + me.onChange(newVal, oldVal); + } + } +}, didValueChange:function(newVal, oldVal) { + return !this.isEqual(newVal, oldVal); +}, onChange:function(newVal) { + var me = this; + if (me.validateOnChange) { + me.validate(); + } + me.checkDirty(); +}, publishValue:function() { + var me = this; + if (me.rendered && !me.getErrors().length) { + me.publishState('value', me.getValue()); + } +}, isDirty:function() { + var me = this; + return !me.disabled && !me.isEqual(me.getValue(), me.originalValue); +}, checkDirty:function() { + var me = this, isDirty = me.isDirty(); + if (isDirty !== me.wasDirty) { + me.dirty = isDirty; + me.fireEvent('dirtychange', me, isDirty); + me.onDirtyChange(isDirty); + me.wasDirty = isDirty; + } +}, onDirtyChange:Ext.emptyFn, getErrors:function(value) { + var errors = [], validationField = this.getValidationField(), validation = this.getValidation(), result; + if (validationField) { + result = validationField.validate(value); + if (result !== true) { + errors.push(result); + } + } + if (validation && validation !== true) { + errors.push(validation); + } + return errors; +}, isValid:function() { + var me = this; + return me.disabled || Ext.isEmpty(me.getErrors()); +}, validate:function() { + return this.checkValidityChange(this.isValid()); +}, checkValidityChange:function(isValid) { + var me = this; + if (isValid !== me.wasValid) { + me.wasValid = isValid; + me.fireEvent('validitychange', me, isValid); + } + return isValid; +}, batchChanges:function(fn) { + try { + this.suspendCheckChange++; + fn(); + } catch (pseudo) { + throw pseudo; + } finally { + this.suspendCheckChange--; + } + this.checkChange(); +}, isFileUpload:function() { + return false; +}, extractFileInput:function() { + return null; +}, markInvalid:Ext.emptyFn, clearInvalid:Ext.emptyFn, updateValidation:function(validation, oldValidation) { + if (oldValidation) { + this.validate(); + } +}, privates:{resetToInitialValue:function() { + var me = this, originalValue = me.originalValue; + me.originalValue = me.initialValue; + me.reset(); + me.originalValue = originalValue; +}}}); +Ext.define('Ext.form.field.Base', {extend:Ext.Component, mixins:[Ext.form.Labelable, Ext.form.field.Field], xtype:'field', alternateClassName:['Ext.form.Field', 'Ext.form.BaseField'], focusable:true, shrinkWrap:true, fieldSubTpl:['\x3cinput id\x3d"{id}" data-ref\x3d"inputEl" type\x3d"{type}" {inputAttrTpl}', ' size\x3d"1"', '\x3ctpl if\x3d"name"\x3e name\x3d"{name}"\x3c/tpl\x3e', '\x3ctpl if\x3d"value"\x3e value\x3d"{[Ext.util.Format.htmlEncode(values.value)]}"\x3c/tpl\x3e', '\x3ctpl if\x3d"placeholder"\x3e placeholder\x3d"{placeholder}"\x3c/tpl\x3e', +'{%if (values.maxLength !\x3d\x3d undefined){%} maxlength\x3d"{maxLength}"{%}%}', '\x3ctpl if\x3d"readOnly"\x3e readonly\x3d"readonly"\x3c/tpl\x3e', '\x3ctpl if\x3d"disabled"\x3e disabled\x3d"disabled"\x3c/tpl\x3e', '\x3ctpl if\x3d"tabIdx !\x3d null"\x3e tabindex\x3d"{tabIdx}"\x3c/tpl\x3e', '\x3ctpl if\x3d"fieldStyle"\x3e style\x3d"{fieldStyle}"\x3c/tpl\x3e', '\x3ctpl foreach\x3d"inputElAriaAttributes"\x3e {$}\x3d"{.}"\x3c/tpl\x3e', ' class\x3d"{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete\x3d"off"/\x3e', +{disableFormats:true}], defaultBindProperty:'value', autoEl:{role:'presentation'}, subTplInsertions:['inputAttrTpl'], childEls:['inputEl'], inputType:'text', isTextInput:true, invalidText:'The value in this field is invalid', fieldCls:Ext.baseCSSPrefix + 'form-field', focusCls:'form-focus', dirtyCls:Ext.baseCSSPrefix + 'form-dirty', checkChangeEvents:Ext.isIE && (!document.documentMode || document.documentMode <= 9) ? ['change', 'propertychange', 'keyup'] : ['change', 'input', 'textInput', 'keyup', +'dragdrop'], ignoreChangeRe:/data\-errorqtip|style\.|className/, checkChangeBuffer:50, liquidLayout:true, readOnly:false, readOnlyCls:Ext.baseCSSPrefix + 'form-readonly', validateOnBlur:true, hasFocus:false, baseCls:Ext.baseCSSPrefix + 'field', fieldBodyCls:Ext.baseCSSPrefix + 'field-body', maskOnDisable:false, stretchInputElFixed:true, ariaEl:'inputEl', initComponent:function() { + var me = this; + me.callParent(); + me.subTplData = me.subTplData || {}; + me.initLabelable(); + me.initField(); + me.initDefaultName(); + if (me.readOnly) { + me.addCls(me.readOnlyCls); + } + me.addCls(Ext.baseCSSPrefix + 'form-type-' + me.inputType); +}, initDefaultName:function() { + var me = this; + if (!me.name) { + me.name = me.getInputId(); + } +}, getInputId:function() { + return this.inputId || (this.inputId = this.id + '-inputEl'); +}, getSubTplData:function(fieldData) { + var me = this, type = me.inputType, inputId = me.getInputId(), data, ariaAttr; + data = Ext.apply({ui:me.ui, id:inputId, cmpId:me.id, name:me.name || inputId, disabled:me.disabled, readOnly:me.readOnly, value:me.getRawValue(), type:type, fieldCls:me.fieldCls, fieldStyle:me.getFieldStyle(), childElCls:fieldData.childElCls, tabIdx:me.tabIndex, inputCls:me.inputCls, typeCls:Ext.baseCSSPrefix + 'form-' + (me.isTextInput ? 'text' : type)}, me.subTplData); + if (me.ariaRole) { + ariaAttr = {role:me.ariaRole, 'aria-hidden':!!me.hidden, 'aria-disabled':!!me.disabled, 'aria-readonly':!!me.readOnly, 'aria-invalid':false}; + if (me.ariaLabel) { + ariaAttr['aria-label'] = me.ariaLabel; + } + if (me.format && me.formatText && !data.title) { + ariaAttr.title = Ext.String.formatEncode(me.formatText, me.format); + } + data.inputElAriaAttributes = Ext.apply(ariaAttr, me.getAriaAttributes()); + } + me.getInsertionRenderData(data, me.subTplInsertions); + return data; +}, getSubTplMarkup:function(fieldData) { + var me = this, data = me.getSubTplData(fieldData), preSubTpl = me.getTpl('preSubTpl'), postSubTpl = me.getTpl('postSubTpl'), markup = ''; + if (preSubTpl) { + markup += preSubTpl.apply(data); + } + markup += me.getTpl('fieldSubTpl').apply(data); + if (postSubTpl) { + markup += postSubTpl.apply(data); + } + return markup; +}, initRenderData:function() { + return Ext.applyIf(this.callParent(), this.getLabelableRenderData()); +}, setFieldStyle:function(style) { + var me = this, inputEl = me.inputEl; + if (inputEl) { + inputEl.applyStyles(style); + } + me.fieldStyle = style; +}, getFieldStyle:function() { + var style = this.fieldStyle; + return Ext.isObject(style) ? Ext.DomHelper.generateStyles(style, null, true) : style || ''; +}, onRender:function() { + this.callParent(arguments); + this.mixins.labelable.self.initTip(); + this.renderActiveError(); +}, onFocusLeave:function(e) { + this.callParent([e]); + this.completeEdit(); +}, completeEdit:Ext.emptyFn, isFileUpload:function() { + return this.inputType === 'file'; +}, getSubmitData:function() { + var me = this, data = null, val; + if (!me.disabled && me.submitValue) { + val = me.getSubmitValue(); + if (val !== null) { + data = {}; + data[me.getName()] = val; + } + } + return data; +}, getSubmitValue:function() { + return this.processRawValue(this.getRawValue()); +}, getRawValue:function() { + var me = this, v = me.inputEl ? me.inputEl.getValue() : Ext.valueFrom(me.rawValue, ''); + me.rawValue = v; + return v; +}, setRawValue:function(value) { + var me = this, rawValue = me.rawValue; + if (!me.transformRawValue.$nullFn) { + value = me.transformRawValue(value); + } + value = Ext.valueFrom(value, ''); + if (rawValue === undefined || rawValue !== value || me.valueContainsPlaceholder) { + me.rawValue = value; + if (me.inputEl) { + me.bindChangeEvents(false); + me.inputEl.dom.value = value; + me.bindChangeEvents(true); + } + if (me.rendered && me.reference) { + me.publishState('rawValue', value); + } + } + return value; +}, transformRawValue:Ext.identityFn, valueToRaw:function(value) { + return '' + Ext.valueFrom(value, ''); +}, rawToValue:Ext.identityFn, processRawValue:Ext.identityFn, getValue:function() { + var me = this, val = me.rawToValue(me.processRawValue(me.getRawValue())); + me.value = val; + return val; +}, setValue:function(value) { + var me = this; + me.setRawValue(me.valueToRaw(value)); + return me.mixins.field.setValue.call(me, value); +}, onBoxReady:function() { + var me = this; + me.callParent(arguments); + if (me.setReadOnlyOnBoxReady) { + me.setReadOnly(me.readOnly); + } +}, onDisable:function() { + var me = this, inputEl = me.inputEl; + me.callParent(); + if (inputEl) { + inputEl.dom.disabled = true; + if (me.hasActiveError()) { + me.clearInvalid(); + me.hadErrorOnDisable = true; + } + } + if (me.wasValid === false) { + me.checkValidityChange(true); + } +}, onEnable:function() { + var me = this, inputEl = me.inputEl, mark = me.preventMark, valid; + me.callParent(); + if (inputEl) { + inputEl.dom.disabled = false; + } + if (me.wasValid !== undefined) { + me.forceValidation = true; + me.preventMark = !me.hadErrorOnDisable; + valid = me.isValid(); + me.forceValidation = false; + me.preventMark = mark; + me.checkValidityChange(valid); + } + delete me.hadErrorOnDisable; +}, setReadOnly:function(readOnly) { + var me = this, inputEl = me.inputEl, old = me.readOnly; + readOnly = !!readOnly; + me[readOnly ? 'addCls' : 'removeCls'](me.readOnlyCls); + me.readOnly = readOnly; + if (inputEl) { + inputEl.dom.readOnly = readOnly; + me.ariaEl.dom.setAttribute('aria-readonly', readOnly); + } else { + if (me.rendering) { + me.setReadOnlyOnBoxReady = true; + } + } + if (readOnly !== old) { + me.fireEvent('writeablechange', me, readOnly); + } +}, fireKey:function(e) { + if (e.isSpecialKey()) { + this.fireEvent('specialkey', this, e); + } +}, initEvents:function() { + var me = this, inputEl = me.inputEl, onFieldMutation = me.onFieldMutation, events = me.checkChangeEvents, len = events.length, i, event; + if (inputEl) { + me.mon(inputEl, Ext.supports.SpecialKeyDownRepeat ? 'keydown' : 'keypress', me.fireKey, me); + for (i = 0; i < len; ++i) { + event = events[i]; + if (event === 'propertychange') { + me.usesPropertychange = true; + } + if (event === 'textInput') { + me.usesTextInput = true; + } + me.mon(inputEl, event, onFieldMutation, me); + } + } + me.callParent(); +}, onFieldMutation:function(e) { + if (!this.readOnly && !(e.type === 'propertychange' && this.ignoreChangeRe.test(e.browserEvent.propertyName))) { + this.startCheckChangeTask(); + } +}, startCheckChangeTask:function() { + var me = this, task = me.checkChangeTask; + if (!task) { + me.checkChangeTask = task = new Ext.util.DelayedTask(me.doCheckChangeTask, me); + } + if (!me.bindNotifyListener) { + me.bindNotifyListener = Ext.on('beforebindnotify', me.onBeforeNotify, me, {destroyable:true}); + } + task.delay(me.checkChangeBuffer); +}, doCheckChangeTask:function() { + var bindNotifyListener = this.bindNotifyListener; + if (bindNotifyListener) { + bindNotifyListener.destroy(); + this.bindNotifyListener = null; + } + this.checkChange(); +}, publishValue:function() { + var me = this; + if (me.rendered && !me.getErrors().length) { + me.publishState('value', me.getValue()); + } +}, onDirtyChange:function(isDirty) { + var me = this; + me[isDirty ? 'addCls' : 'removeCls'](me.dirtyCls); + if (me.rendered && me.reference) { + me.publishState('dirty', isDirty); + } +}, isValid:function() { + var me = this, disabled = me.disabled, validate = me.forceValidation || !disabled; + return validate ? me.validateValue(me.processRawValue(me.getRawValue())) : disabled; +}, validateValue:function(value) { + var me = this, errors = me.getErrors(value), isValid = Ext.isEmpty(errors); + if (!me.preventMark) { + if (isValid) { + me.clearInvalid(); + } else { + me.markInvalid(errors); + } + } + return isValid; +}, markInvalid:function(errors) { + var me = this, ariaDom = me.ariaEl.dom, oldMsg = me.getActiveError(), active; + me.setActiveErrors(Ext.Array.from(errors)); + active = me.getActiveError(); + if (oldMsg !== active) { + me.setError(active); + if (!me.ariaStaticRoles[me.ariaRole] && ariaDom) { + ariaDom.setAttribute('aria-invalid', true); + } + } +}, clearInvalid:function() { + var me = this, ariaDom = me.ariaEl.dom, hadError = me.hasActiveError(); + delete me.hadErrorOnDisable; + me.unsetActiveError(); + if (hadError) { + me.setError(''); + if (!me.ariaStaticRoles[me.ariaRole] && ariaDom) { + ariaDom.setAttribute('aria-invalid', false); + } + } +}, setError:function(error) { + var me = this, msgTarget = me.msgTarget, prop; + if (me.rendered) { + if (msgTarget === 'title' || msgTarget === 'qtip') { + prop = msgTarget === 'qtip' ? 'data-errorqtip' : 'title'; + me.getActionEl().dom.setAttribute(prop, error || ''); + } else { + me.updateLayout(); + } + } +}, renderActiveError:function() { + var me = this, hasError = me.hasActiveError(), invalidCls = me.invalidCls + '-field'; + if (me.inputEl) { + me.inputEl[hasError ? 'addCls' : 'removeCls']([invalidCls, invalidCls + '-' + me.ui]); + } + me.mixins.labelable.renderActiveError.call(me); +}, beforeDestroy:function() { + var me = this, task = me.checkChangeTask; + if (task) { + task.cancel(); + } + me.checkChangeTask = me.bindNotifyListener = Ext.destroy(me.bindNotifyListener); + me.callParent(); +}, privates:{applyBind:function(bind, currentBindings) { + var me = this, valueBinding = currentBindings && currentBindings.value, bindings, newValueBind; + bindings = me.callParent([bind, currentBindings]); + if (bindings) { + newValueBind = bindings.value; + me.hasBindingValue = !!newValueBind; + if (newValueBind !== valueBinding && me.getInherited().modelValidation) { + me.updateValueBinding(bindings); + } + } + return bindings; +}, applyRenderSelectors:function() { + var me = this; + me.callParent(); + if (!me.inputEl) { + me.inputEl = me.el.getById(me.getInputId()); + } +}, bindChangeEvents:function(active) { + var method = active ? 'resumeEvent' : 'suspendEvent', inputEl = this.inputEl; + if (this.usesPropertychange) { + inputEl[method]('propertychange'); + } + if (this.usesTextInput) { + inputEl[method]('textInput'); + } +}, getActionEl:function() { + return this.inputEl || this.el; +}, getFocusEl:function() { + return this.inputEl; +}, initRenderTpl:function() { + var me = this; + if (!me.hasOwnProperty('renderTpl')) { + me.renderTpl = me.getTpl('labelableRenderTpl'); + } + return me.callParent(); +}, onBeforeNotify:function() { + this.checkChangeTask.cancel(); + this.checkChange(); +}, updateValueBinding:function(bindings) { + var me = this, newBinding = bindings.value, fieldBinding = bindings.$fieldBinding; + if (fieldBinding) { + fieldBinding.destroy(); + bindings.$fieldBinding = null; + } + if (newBinding && newBinding.bindValidationField) { + me.fieldBinding = newBinding.bindValidationField('setValidationField', me); + } +}}, deprecated:{5:{methods:{doComponentLayout:function() { + this.bindChangeEvents(false); + this.callParent(arguments); + this.bindChangeEvents(true); +}}}}}); +Ext.define('Ext.form.field.VTypes', function() { + var alpha = /^[a-zA-Z_]+$/, alphanum = /^[a-zA-Z0-9_]+$/, email = /^(")?(?:[^\."\s])(?:(?:[\.])?(?:[\w\-!#$%&'*+/=?^_`{|}~]))*\1@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/, url = /(((^https?)|(^ftp)):\/\/((([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*)|(localhost|LOCALHOST))\/?)/i; + return {singleton:true, alternateClassName:'Ext.form.VTypes', 'email':function(value) { + return email.test(value); + }, 'emailText':'This field should be an e-mail address in the format "user@example.com"', 'emailMask':/[\w.\-@'"!#$%&'*+/=?^_`{|}~]/i, 'url':function(value) { + return url.test(value); + }, 'urlText':'This field should be a URL in the format "http:/' + '/www.example.com"', 'alpha':function(value) { + return alpha.test(value); + }, 'alphaText':'This field should only contain letters and _', 'alphaMask':/[a-z_]/i, 'alphanum':function(value) { + return alphanum.test(value); + }, 'alphanumText':'This field should only contain letters, numbers and _', 'alphanumMask':/[a-z0-9_]/i}; +}()); +Ext.define('Ext.form.trigger.Trigger', {alias:'trigger.trigger', mixins:[Ext.mixin.Factoryable], factoryConfig:{defaultType:'trigger'}, repeatClick:false, hidden:false, hideOnReadOnly:undefined, weight:0, preventMouseDown:true, baseCls:Ext.baseCSSPrefix + 'form-trigger', focusCls:Ext.baseCSSPrefix + 'form-trigger-focus', overCls:Ext.baseCSSPrefix + 'form-trigger-over', clickCls:Ext.baseCSSPrefix + 'form-trigger-click', validIdRe:Ext.validIdRe, renderTpl:['\x3cdiv id\x3d"{triggerId}" class\x3d"{baseCls} {baseCls}-{ui} {cls} {cls}-{ui} {extraCls} ', +'{childElCls}"\x3ctpl if\x3d"triggerStyle"\x3e style\x3d"{triggerStyle}"\x3c/tpl\x3e\x3e', '{[values.$trigger.renderBody(values)]}', '\x3c/div\x3e'], statics:{weightComparator:function(triggerA, triggerB) { + return triggerA.weight - triggerB.weight; +}}, constructor:function(config) { + var me = this, cls; + Ext.apply(me, config); + if (me.compat4Mode) { + cls = me.cls; + me.focusCls = [me.focusCls, cls + '-focus']; + me.overCls = [me.overCls, cls + '-over']; + me.clickCls = [me.clickCls, cls + '-click']; + } + if (!me.validIdRe.test(me.id)) { + Ext.raise('Invalid trigger "id": "' + me.id + '"'); + } +}, afterFieldRender:function() { + this.initEvents(); +}, destroy:function() { + var me = this; + me.clickRepeater = me.el = Ext.destroy(me.clickRepeater, me.el); + me.callParent(); +}, getBodyRenderData:Ext.emptyFn, getEl:function() { + return this.el || null; +}, getStateEl:function() { + return this.el; +}, hide:function() { + var me = this, el = me.el; + me.hidden = true; + if (el) { + el.hide(); + } +}, initEvents:function() { + var me = this, isFieldEnabled = me.isFieldEnabled, stateEl = me.getStateEl(), el = me.el; + stateEl.addClsOnOver(me.overCls, isFieldEnabled, me); + stateEl.addClsOnClick(me.clickCls, isFieldEnabled, me); + if (me.repeatClick) { + me.clickRepeater = new Ext.util.ClickRepeater(el, {preventDefault:true, handler:me.onClick, listeners:{mousedown:me.onClickRepeaterMouseDown, scope:me}, scope:me}); + } else { + me.field.mon(el, {click:me.onClick, mousedown:me.onMouseDown, scope:me}); + } +}, isFieldEnabled:function() { + return !this.field.disabled; +}, isVisible:function() { + var me = this, field = me.field, hidden = false; + if (me.hidden || !field || !me.rendered || me.destroyed) { + hidden = true; + } + return !hidden; +}, onClick:function() { + var me = this, args = arguments, e = me.clickRepeater ? args[1] : args[0], handler = me.handler, field = me.field; + if (handler && !field.readOnly && me.isFieldEnabled()) { + Ext.callback(me.handler, me.scope, [field, me, e], 0, field); + } +}, resolveListenerScope:function(scope) { + return this.field.resolveSatelliteListenerScope(this, scope); +}, onMouseDown:function(e) { + if (e.pointerType !== 'touch' && !this.field.owns(Ext.Element.getActiveElement())) { + this.field.inputEl.focus(); + } + if (this.preventMouseDown) { + e.preventDefault(); + } +}, onClickRepeaterMouseDown:function(clickRepeater, e) { + if (!e.parentEvent || e.parentEvent.type === 'mousedown') { + this.field.inputEl.focus(); + } + e.preventDefault(); +}, onFieldBlur:function() { + this.getStateEl().removeCls(this.focusCls); +}, onFieldFocus:function() { + this.getStateEl().addCls(this.focusCls); +}, onFieldRender:function() { + var me = this, el = me.el = me.field.triggerWrap.selectNode('#' + me.domId, false); + el.setVisibilityMode(Ext.Element.DISPLAY); + me.rendered = true; +}, renderBody:function(renderData) { + var me = this, bodyTpl = me.bodyTpl; + Ext.apply(renderData, me.getBodyRenderData()); + return bodyTpl ? Ext.XTemplate.getTpl(me, 'bodyTpl').apply(renderData) : ''; +}, renderTrigger:function(fieldData) { + var me = this, width = me.width, triggerStyle = me.hidden ? 'display:none;' : ''; + if (width) { + triggerStyle += 'width:' + width; + } + return Ext.XTemplate.getTpl(me, 'renderTpl').apply({$trigger:me, fieldData:fieldData, ui:fieldData.ui, childElCls:fieldData.childElCls, triggerId:me.domId = me.field.id + '-trigger-' + me.id, cls:me.cls, triggerStyle:triggerStyle, extraCls:me.extraCls, baseCls:me.baseCls}); +}, setHidden:function(hidden) { + if (hidden !== this.hidden) { + this[hidden ? 'hide' : 'show'](); + } +}, setVisible:function(visible) { + this.setHidden(!visible); +}, show:function() { + var me = this, el = me.el; + me.hidden = false; + if (el) { + el.show(); + } +}}); +Ext.define('Ext.form.field.Text', {extend:Ext.form.field.Base, alias:'widget.textfield', alternateClassName:['Ext.form.TextField', 'Ext.form.Text'], config:{hideTrigger:false, triggers:undefined}, renderConfig:{editable:true}, growMin:30, growMax:800, growAppend:'W', allowBlank:true, validateBlank:false, allowOnlyWhitespace:true, minLength:0, maxLength:Number.MAX_VALUE, minLengthText:'The minimum length for this field is {0}', maxLengthText:'The maximum length for this field is {0}', blankText:'This field is required', +regexText:'', emptyText:'', emptyCls:Ext.baseCSSPrefix + 'form-empty-field', requiredCls:Ext.baseCSSPrefix + 'form-required-field', valueContainsPlaceholder:false, ariaRole:'textbox', repeatTriggerClick:false, triggerWrapCls:Ext.baseCSSPrefix + 'form-trigger-wrap', triggerWrapFocusCls:Ext.baseCSSPrefix + 'form-trigger-wrap-focus', triggerWrapInvalidCls:Ext.baseCSSPrefix + 'form-trigger-wrap-invalid', fieldBodyCls:Ext.baseCSSPrefix + 'form-text-field-body', inputWrapCls:Ext.baseCSSPrefix + 'form-text-wrap', +inputWrapFocusCls:Ext.baseCSSPrefix + 'form-text-wrap-focus', inputWrapInvalidCls:Ext.baseCSSPrefix + 'form-text-wrap-invalid', growCls:Ext.baseCSSPrefix + 'form-text-grow', needArrowKeys:true, squashMouseUp:{mouseup:function() { +}, translate:false, single:true, preventDefault:true}, childEls:['triggerWrap', 'inputWrap'], preSubTpl:['\x3cdiv id\x3d"{cmpId}-triggerWrap" data-ref\x3d"triggerWrap"', ' role\x3d"presentation" class\x3d"{triggerWrapCls} {triggerWrapCls}-{ui}"\x3e', '\x3cdiv id\x3d{cmpId}-inputWrap data-ref\x3d"inputWrap"', ' role\x3d"presentation" class\x3d"{inputWrapCls} {inputWrapCls}-{ui}"\x3e'], postSubTpl:['\x3c/div\x3e', '\x3ctpl for\x3d"triggers"\x3e{[values.renderTrigger(parent)]}\x3c/tpl\x3e', '\x3c/div\x3e'], +initComponent:function() { + var me = this, emptyCls = me.emptyCls; + if (me.allowOnlyWhitespace === false) { + me.allowBlank = false; + } + if (me.size) { + Ext.log.warn('Ext.form.field.Text "size" config was deprecated in Ext 5.0. Please specify a "width" or use a layout instead.'); + } + if (me.size) { + me.defaultBodyWidth = me.size * 6.5 + 20; + } + if (!me.onTrigger1Click) { + me.onTrigger1Click = me.onTriggerClick; + } + me.callParent(); + if (me.readOnly) { + me.setReadOnly(me.readOnly); + } + me.fieldFocusCls = me.baseCls + '-focus'; + me.emptyUICls = emptyCls + ' ' + emptyCls + '-' + me.ui; + me.addStateEvents('change'); +}, initEvents:function() { + var me = this, el = me.inputEl; + me.callParent(); + if (me.selectOnFocus || me.emptyText) { + me.mon(el, 'mousedown', me.onMouseDown, me); + } + if (me.maskRe || me.vtype && me.disableKeyFilter !== true && (me.maskRe = Ext.form.field.VTypes[me.vtype + 'Mask'])) { + me.mon(el, 'keypress', me.filterKeys, me); + } + if (me.enableKeyEvents) { + me.mon(el, {scope:me, keyup:me.onKeyUp, keydown:me.onKeyDown, keypress:me.onKeyPress}); + } +}, isEqual:function(value1, value2) { + return this.isEqualAsString(value1, value2); +}, onChange:function(newVal, oldVal) { + this.callParent(arguments); + this.autoSize(); +}, getSubTplData:function(fieldData) { + var me = this, value = me.getRawValue(), isEmpty = me.emptyText && value.length < 1, maxLength = me.maxLength, placeholder, data, inputElAttr; + if (me.enforceMaxLength) { + if (maxLength === Number.MAX_VALUE) { + maxLength = undefined; + } + } else { + maxLength = undefined; + } + if (isEmpty) { + if (Ext.supports.Placeholder) { + placeholder = me.emptyText; + } else { + value = me.emptyText; + me.valueContainsPlaceholder = true; + } + } + data = Ext.apply(me.callParent([fieldData]), {triggerWrapCls:me.triggerWrapCls, inputWrapCls:me.inputWrapCls, triggers:me.orderedTriggers, maxLength:maxLength, readOnly:!me.editable || me.readOnly, placeholder:placeholder, value:value, fieldCls:me.fieldCls + (isEmpty && (placeholder || value) ? ' ' + me.emptyUICls : '') + (me.allowBlank ? '' : ' ' + me.requiredCls)}); + inputElAttr = data.inputElAriaAttributes; + if (inputElAttr) { + inputElAttr['aria-required'] = !me.allowBlank; + } + return data; +}, onRender:function() { + var me = this, triggers = me.getTriggers(), elements = [], id, triggerEl; + if (Ext.supports.FixedTableWidthBug) { + me.el._needsTableWidthFix = true; + } + me.callParent(); + if (triggers) { + this.invokeTriggers('onFieldRender'); + for (id in triggers) { + elements.push(triggers[id].el); + } + triggerEl = me.triggerEl = me.triggerCell = new Ext.CompositeElement(elements, true); + } + me.inputCell = me.inputWrap; +}, afterRender:function() { + var me = this; + me.autoSize(); + me.callParent(); + me.invokeTriggers('afterFieldRender'); +}, onMouseDown:function() { + if (!this.hasFocus) { + Ext.getDoc().on(this.squashMouseUp); + } +}, applyTriggers:function(triggers) { + var me = this, hideAllTriggers = me.getHideTrigger(), readOnly = me.readOnly, orderedTriggers = me.orderedTriggers = [], repeatTriggerClick = me.repeatTriggerClick, id, triggerCfg, trigger, triggerCls, i; + if (me.rendered) { + Ext.raise('Cannot set triggers after field has already been rendered.'); + } + if (me.triggerCls && !triggers || me.trigger1Cls) { + Ext.log.warn("Ext.form.field.Text: 'triggerCls' and 'trigger\x3cn\x3eCls'" + " are deprecated. Use 'triggers' instead."); + } + if (!triggers) { + triggers = {}; + if (me.triggerCls && !me.trigger1Cls) { + me.trigger1Cls = me.triggerCls; + } + for (i = 1; triggerCls = me['trigger' + i + 'Cls']; i++) { + triggers['trigger' + i] = {cls:triggerCls, extraCls:Ext.baseCSSPrefix + 'trigger-index-' + i, handler:'onTrigger' + i + 'Click', compat4Mode:true, scope:me}; + } + } + for (id in triggers) { + if (triggers.hasOwnProperty(id)) { + triggerCfg = triggers[id]; + triggerCfg.field = me; + triggerCfg.id = id; + if (readOnly && triggerCfg.hideOnReadOnly !== false || hideAllTriggers && triggerCfg.hidden !== false) { + triggerCfg.hidden = true; + } + if (repeatTriggerClick && triggerCfg.repeatClick !== false) { + triggerCfg.repeatClick = true; + } + trigger = triggers[id] = Ext.form.trigger.Trigger.create(triggerCfg); + orderedTriggers.push(trigger); + } + } + Ext.Array.sort(orderedTriggers, Ext.form.trigger.Trigger.weightComparator); + return triggers; +}, invokeTriggers:function(methodName, args) { + var me = this, triggers = me.getTriggers(), id, trigger; + if (triggers) { + for (id in triggers) { + if (triggers.hasOwnProperty(id)) { + trigger = triggers[id]; + trigger[methodName].apply(trigger, args || []); + } + } + } +}, getTrigger:function(id) { + return this.getTriggers()[id]; +}, updateHideTrigger:function(hideTrigger) { + this.invokeTriggers(hideTrigger ? 'hide' : 'show'); +}, updateEditable:function(editable, oldEditable) { + this.setReadOnlyAttr(!editable || this.readOnly); +}, setReadOnly:function(readOnly) { + var me = this, triggers = me.getTriggers(), hideTriggers = me.getHideTrigger(), trigger, id; + readOnly = !!readOnly; + me.callParent([readOnly]); + if (me.rendered) { + me.setReadOnlyAttr(readOnly || !me.editable); + } + if (triggers) { + for (id in triggers) { + trigger = triggers[id]; + if (trigger.hideOnReadOnly === true || trigger.hideOnReadOnly !== false && !hideTriggers) { + trigger.setVisible(!readOnly); + } + } + } +}, setReadOnlyAttr:function(readOnly) { + var me = this, readOnlyName = 'readonly', inputEl = me.inputEl.dom; + if (readOnly) { + inputEl.setAttribute(readOnlyName, readOnlyName); + } else { + inputEl.removeAttribute(readOnlyName); + } + if (me.ariaRole) { + me.ariaEl.dom.setAttribute('aria-readonly', !!readOnly); + } +}, processRawValue:function(value) { + var me = this, stripRe = me.stripCharsRe, mod, newValue; + if (stripRe) { + if (!stripRe.global) { + mod = 'g'; + mod += stripRe.ignoreCase ? 'i' : ''; + mod += stripRe.multiline ? 'm' : ''; + stripRe = new RegExp(stripRe.source, mod); + } + newValue = value.replace(stripRe, ''); + if (newValue !== value) { + me.setRawValue(newValue); + value = newValue; + } + } + return value; +}, onDisable:function() { + this.callParent(); + if (Ext.isIE) { + this.inputEl.dom.unselectable = 'on'; + } +}, onEnable:function() { + this.callParent(); + if (Ext.isIE) { + this.inputEl.dom.unselectable = ''; + } +}, onKeyDown:function(e) { + this.fireEvent('keydown', this, e); +}, onKeyUp:function(e) { + this.fireEvent('keyup', this, e); +}, onKeyPress:function(e) { + this.fireEvent('keypress', this, e); +}, reset:function() { + this.callParent(); + this.applyEmptyText(); +}, applyEmptyText:function() { + var me = this, emptyText = me.emptyText, isEmpty; + if (me.rendered && emptyText) { + isEmpty = me.getRawValue().length < 1 && !me.hasFocus; + if (Ext.supports.Placeholder) { + me.inputEl.dom.placeholder = emptyText; + } else { + if (isEmpty) { + me.setRawValue(emptyText); + me.valueContainsPlaceholder = true; + } + } + if (isEmpty) { + me.inputEl.addCls(me.emptyUICls); + } else { + me.inputEl.removeCls(me.emptyUICls); + } + me.autoSize(); + } +}, getEmptyText:function() { + return this.emptyText; +}, setEmptyText:function(value) { + var me = this, inputEl = me.inputEl, inputDom = inputEl && inputEl.dom, emptyText = value || ''; + if (value) { + me.emptyText = emptyText; + me.applyEmptyText(); + } else { + if (inputDom) { + if (Ext.supports.Placeholder) { + inputDom.removeAttribute('placeholder'); + } else { + if (inputDom.value !== me.getRawValue()) { + inputDom.value = ''; + inputEl.removeCls(me.emptyUICls); + } + } + me.valueContainsPlaceholder = false; + } + } + me.emptyText = emptyText; + return me; +}, afterFirstLayout:function() { + this.callParent(); + if (Ext.isIE && this.disabled) { + var el = this.inputEl; + if (el) { + el.dom.unselectable = 'on'; + } + } +}, toggleInvalidCls:function(hasError) { + var method = hasError ? 'addCls' : 'removeCls'; + this.callParent(); + this.triggerWrap[method](this.triggerWrapInvalidCls); + this.inputWrap[method](this.inputWrapInvalidCls); +}, beforeFocus:function() { + var me = this, inputEl = me.inputEl, emptyText = me.emptyText, isEmpty; + me.callParent(arguments); + if (emptyText && !Ext.supports.Placeholder && (inputEl.dom.value === me.emptyText && me.valueContainsPlaceholder)) { + me.setRawValue(''); + isEmpty = true; + inputEl.removeCls(me.emptyUICls); + me.valueContainsPlaceholder = false; + } else { + if (Ext.supports.Placeholder) { + inputEl.removeCls(me.emptyUICls); + } + } +}, onFocus:function(e) { + var me = this; + me.callParent(arguments); + if (me.selectOnFocus) { + me.inputEl.dom.select(); + } + if (me.emptyText) { + me.autoSize(); + } + me.addCls(me.fieldFocusCls); + me.triggerWrap.addCls(me.triggerWrapFocusCls); + me.inputWrap.addCls(me.inputWrapFocusCls); + me.invokeTriggers('onFieldFocus', [e]); +}, onBlur:function(e) { + var me = this; + me.callParent(arguments); + me.removeCls(me.fieldFocusCls); + me.triggerWrap.removeCls(me.triggerWrapFocusCls); + me.inputWrap.removeCls(me.inputWrapFocusCls); + me.invokeTriggers('onFieldBlur', [e]); +}, completeEdit:function(e) { + this.callParent([e]); + this.applyEmptyText(); +}, filterKeys:function(e) { + if (e.ctrlKey && !e.altKey || e.isSpecialKey()) { + return; + } + var charCode = String.fromCharCode(e.getCharCode()); + if (!this.maskRe.test(charCode)) { + e.stopEvent(); + } +}, getState:function() { + return this.addPropertyToState(this.callParent(), 'value'); +}, applyState:function(state) { + this.callParent(arguments); + if (state.hasOwnProperty('value')) { + this.setValue(state.value); + } +}, getRawValue:function() { + var me = this, v = me.callParent(); + if (v === me.emptyText && me.valueContainsPlaceholder) { + v = ''; + } + return v; +}, setValue:function(value) { + var me = this, inputEl = me.inputEl; + if (inputEl && me.emptyText && !Ext.isEmpty(value)) { + inputEl.removeCls(me.emptyUICls); + me.valueContainsPlaceholder = false; + } + me.callParent(arguments); + me.applyEmptyText(); + return me; +}, getErrors:function(value) { + value = arguments.length ? value == null ? '' : value : this.processRawValue(this.getRawValue()); + var me = this, errors = me.callParent([value]), validator = me.validator, vtype = me.vtype, vtypes = Ext.form.field.VTypes, regex = me.regex, format = Ext.String.format, msg, trimmed, isBlank; + if (Ext.isFunction(validator)) { + msg = validator.call(me, value); + if (msg !== true) { + errors.push(msg); + } + } + trimmed = me.allowOnlyWhitespace ? value : Ext.String.trim(value); + if (trimmed.length < 1 || value === me.emptyText && me.valueContainsPlaceholder) { + if (!me.allowBlank) { + errors.push(me.blankText); + } + if (!me.validateBlank) { + return errors; + } + isBlank = true; + } + if (!isBlank && value.length < me.minLength) { + errors.push(format(me.minLengthText, me.minLength)); + } + if (value.length > me.maxLength) { + errors.push(format(me.maxLengthText, me.maxLength)); + } + if (vtype) { + if (!vtypes[vtype](value, me)) { + errors.push(me.vtypeText || vtypes[vtype + 'Text']); + } + } + if (regex && !regex.test(value)) { + errors.push(me.regexText || me.invalidText); + } + return errors; +}, selectText:function(start, end) { + var me = this, v = me.getRawValue(), len = v.length, el = me.inputEl.dom, range; + if (len > 0) { + start = start === undefined ? 0 : Math.min(start, len); + end = end === undefined ? len : Math.min(end, len); + if (el.setSelectionRange) { + el.setSelectionRange(start, end); + } else { + if (el.createTextRange) { + range = el.createTextRange(); + range.moveStart('character', start); + range.moveEnd('character', end - len); + range.select(); + } + } + } +}, getGrowWidth:function() { + return this.inputEl.dom.value; +}, autoSize:function() { + var me = this, triggers, triggerId, triggerWidth, inputEl, width, value; + if (me.grow && me.rendered && me.getSizeModel().width.auto) { + inputEl = me.inputEl; + triggers = me.getTriggers(); + triggerWidth = 0; + value = Ext.util.Format.htmlEncode(me.getGrowWidth() || (me.hasFocus ? '' : me.emptyText) || ''); + value += me.growAppend; + for (triggerId in triggers) { + triggerWidth += triggers[triggerId].el.getWidth(); + } + width = inputEl.getTextWidth(value) + triggerWidth + me.inputWrap.getBorderWidth('lr') + me.triggerWrap.getBorderWidth('lr'); + width = Math.min(Math.max(width, me.growMin), me.growMax); + me.bodyEl.setWidth(width); + me.updateLayout(); + me.fireEvent('autosize', me, width); + } +}, onDestroy:function() { + var me = this; + me.invokeTriggers('destroy'); + Ext.destroy(me.triggerRepeater); + me.callParent(); +}, onTriggerClick:Ext.emptyFn, privates:{getTdType:function() { + return 'textfield'; +}}, deprecated:{5:{methods:{getTriggerWidth:function() { + var triggers = this.getTriggers(), width = 0, id; + if (triggers && this.rendered) { + for (id in triggers) { + if (triggers.hasOwnProperty(id)) { + width += triggers[id].el.getWidth(); + } + } + } + return width; +}}}}}); +Ext.define('Ext.form.field.TextArea', {extend:Ext.form.field.Text, alias:['widget.textareafield', 'widget.textarea'], alternateClassName:'Ext.form.TextArea', fieldSubTpl:['\x3ctextarea id\x3d"{id}" data-ref\x3d"inputEl" {inputAttrTpl}', '\x3ctpl if\x3d"name"\x3e name\x3d"{name}"\x3c/tpl\x3e', '\x3ctpl if\x3d"placeholder"\x3e placeholder\x3d"{placeholder}"\x3c/tpl\x3e', '\x3ctpl if\x3d"maxLength !\x3d\x3d undefined"\x3e maxlength\x3d"{maxLength}"\x3c/tpl\x3e', '\x3ctpl if\x3d"readOnly"\x3e readonly\x3d"readonly"\x3c/tpl\x3e', +'\x3ctpl if\x3d"disabled"\x3e disabled\x3d"disabled"\x3c/tpl\x3e', '\x3ctpl if\x3d"tabIdx !\x3d null"\x3e tabindex\x3d"{tabIdx}"\x3c/tpl\x3e', ' class\x3d"{fieldCls} {typeCls} {typeCls}-{ui} {inputCls}" ', '\x3ctpl if\x3d"fieldStyle"\x3e style\x3d"{fieldStyle}"\x3c/tpl\x3e', '\x3ctpl foreach\x3d"inputElAriaAttributes"\x3e {$}\x3d"{.}"\x3c/tpl\x3e', ' autocomplete\x3d"off"\x3e\n', '\x3ctpl if\x3d"value"\x3e{[Ext.util.Format.htmlEncode(values.value)]}\x3c/tpl\x3e', '\x3c/textarea\x3e', {disableFormats:true}], +growMin:60, growMax:1000, growAppend:'\n-', enterIsSpecial:false, preventScrollbars:false, returnRe:/\r/g, inputCls:Ext.baseCSSPrefix + 'form-textarea', extraFieldBodyCls:Ext.baseCSSPrefix + 'form-textarea-body', ariaAttributes:{'aria-multiline':true}, constructor:function(config) { + this.callParent([config]); + if (this.cols) { + Ext.log.warn('Ext.form.field.TextArea "cols" config was removed in Ext 5.0. Please specify a "width" or use a layout instead.'); + } + if (this.rows) { + Ext.log.warn('Ext.form.field.TextArea "rows" config was removed in Ext 5.0. Please specify a "height" or use a layout instead.'); + } +}, getSubTplData:function(fieldData) { + var me = this, fieldStyle = me.getFieldStyle(), ret = me.callParent(arguments); + if (me.grow) { + if (me.preventScrollbars) { + ret.fieldStyle = (fieldStyle || '') + ';overflow:hidden;height:' + me.growMin + 'px'; + } + } + return ret; +}, afterRender:function() { + var me = this; + me.callParent(arguments); + me.needsMaxCheck = me.enforceMaxLength && me.maxLength !== Number.MAX_VALUE && !Ext.supports.TextAreaMaxLength; + if (me.needsMaxCheck) { + me.inputEl.on('paste', me.onPaste, me); + } +}, transformRawValue:function(value) { + return this.stripReturns(value); +}, getValue:function() { + return this.stripReturns(this.callParent()); +}, valueToRaw:function(value) { + value = this.stripReturns(value); + return this.callParent([value]); +}, stripReturns:function(value) { + if (value && typeof value === 'string') { + value = value.replace(this.returnRe, ''); + } + return value; +}, onPaste:function() { + var me = this; + if (!me.pasteTask) { + me.pasteTask = new Ext.util.DelayedTask(me.pasteCheck, me); + } + me.pasteTask.delay(1); +}, pasteCheck:function() { + var me = this, value = me.getValue(), max = me.maxLength; + if (value.length > max) { + value = value.substr(0, max); + me.setValue(value); + } +}, fireKey:function(e) { + var me = this, key = e.getKey(), value; + if (e.isSpecialKey() && (me.enterIsSpecial || (key !== e.ENTER || e.hasModifier()))) { + me.fireEvent('specialkey', me, e); + } + if (me.needsMaxCheck && key !== e.BACKSPACE && key !== e.DELETE && !e.isNavKeyPress() && !me.isCutCopyPasteSelectAll(e, key)) { + value = me.getValue(); + if (value.length >= me.maxLength) { + e.stopEvent(); + } + } +}, isCutCopyPasteSelectAll:function(e, key) { + if (e.ctrlKey) { + return key === e.A || key === e.C || key === e.V || key === e.X; + } + return false; +}, autoSize:function() { + var me = this, inputEl, height, curWidth, value; + if (me.grow && me.rendered && me.getSizeModel().height.auto) { + inputEl = me.inputEl; + curWidth = inputEl.getWidth(true); + value = Ext.util.Format.htmlEncode(inputEl.dom.value) || '\x26#160;'; + value += me.growAppend; + value = value.replace(/\n/g, '\x3cbr/\x3e'); + height = Ext.util.TextMetrics.measure(inputEl, value, curWidth).height + inputEl.getPadding('tb') + me.inputWrap.getBorderWidth('tb') + me.triggerWrap.getBorderWidth('tb'); + height = Math.min(Math.max(height, me.growMin), me.growMax); + me.bodyEl.setHeight(height); + me.updateLayout(); + me.fireEvent('autosize', me, height); + } +}, beforeDestroy:function() { + var task = this.pasteTask; + if (task) { + task.cancel(); + this.pasteTask = null; + } + this.callParent(); +}}); +Ext.define('Ext.window.MessageBox', {extend:Ext.window.Window, alias:'widget.messagebox', OK:1, YES:2, NO:4, CANCEL:8, OKCANCEL:9, YESNO:6, YESNOCANCEL:14, INFO:Ext.baseCSSPrefix + 'message-box-info', WARNING:Ext.baseCSSPrefix + 'message-box-warning', QUESTION:Ext.baseCSSPrefix + 'message-box-question', ERROR:Ext.baseCSSPrefix + 'message-box-error', hideMode:'offsets', closeAction:'hide', resizable:false, scrollable:true, title:'\x26#160;', defaultMinWidth:250, defaultMaxWidth:600, defaultMinHeight:110, +defaultMaxHeight:500, minWidth:null, maxWidth:null, minHeight:null, maxHeight:null, constrain:true, cls:[Ext.baseCSSPrefix + 'message-box', Ext.baseCSSPrefix + 'hidden-offsets'], layout:{type:'vbox', align:'stretch'}, shrinkWrapDock:true, defaultTextHeight:75, minProgressWidth:250, minPromptWidth:250, buttonText:{ok:'OK', yes:'Yes', no:'No', cancel:'Cancel'}, buttonIds:['ok', 'yes', 'no', 'cancel'], titleText:{confirm:'Confirm', prompt:'Prompt', wait:'Loading...', alert:'Attention'}, baseIconCls:Ext.baseCSSPrefix + +'message-box-icon', ariaRole:'alertdialog', makeButton:function(btnIdx) { + var btnId = this.buttonIds[btnIdx]; + return new Ext.button.Button({handler:this.btnCallback, itemId:btnId, scope:this, text:this.buttonText[btnId], minWidth:75}); +}, btnCallback:function(btn, event) { + var me = this, value, field; + if (event && event.type === 'keydown' && !event.isSpecialKey()) { + event.getTarget(null, null, true).on({keyup:function(e) { + me.btnCallback(btn, e); + }, single:true}); + return; + } + if (me.cfg.prompt || me.cfg.multiline) { + if (me.cfg.multiline) { + field = me.textArea; + } else { + field = me.textField; + } + value = field.getValue(); + field.reset(); + } + me.hide(); + me.userCallback(btn.itemId, value, me.cfg); +}, hide:function() { + var me = this, cls = me.cfg ? me.cfg.cls : ''; + me.progressBar.reset(); + if (cls) { + me.removeCls(cls); + } + me.callParent(arguments); +}, constructor:function(cfg) { + var me = this; + me.callParent(arguments); + me.minWidth = me.defaultMinWidth = me.minWidth || me.defaultMinWidth; + me.maxWidth = me.defaultMaxWidth = me.maxWidth || me.defaultMaxWidth; + me.minHeight = me.defaultMinHeight = me.minHeight || me.defaultMinHeight; + me.maxHeight = me.defaultMaxHeight = me.maxHeight || me.defaultMaxHeight; +}, initComponent:function(cfg) { + var me = this, baseId = me.id, i, button; + me.title = me.title || '\x26#160;'; + me.iconCls = me.iconCls || ''; + me.topContainer = new Ext.container.Container({layout:'hbox', padding:10, style:{overflow:'hidden'}, items:[me.iconComponent = new Ext.Component({cls:me.baseIconCls}), me.promptContainer = new Ext.container.Container({flex:1, layout:{type:'vbox', align:'stretch'}, items:[me.msg = new Ext.Component({id:baseId + '-msg', cls:me.baseCls + '-text'}), me.textField = new Ext.form.field.Text({id:baseId + '-textfield', enableKeyEvents:true, listeners:{keydown:me.onPromptKey, scope:me}}), me.textArea = new Ext.form.field.TextArea({id:baseId + + '-textarea', height:75})]})]}); + me.progressBar = new Ext.ProgressBar({id:baseId + '-progressbar', margin:'0 10 10 10'}); + me.items = [me.topContainer, me.progressBar]; + me.msgButtons = []; + for (i = 0; i < 4; i++) { + button = me.makeButton(i); + me.msgButtons[button.itemId] = button; + me.msgButtons.push(button); + } + me.bottomTb = new Ext.toolbar.Toolbar({id:baseId + '-toolbar', ui:'footer', dock:'bottom', layout:{pack:'center'}, items:[me.msgButtons[0], me.msgButtons[1], me.msgButtons[2], me.msgButtons[3]]}); + me.dockedItems = [me.bottomTb]; + me.on('close', me.onClose, me); + me.callParent(); +}, onClose:function() { + var btn = this.header.child('[type\x3dclose]'); + if (btn) { + btn.itemId = 'cancel'; + this.btnCallback(btn); + delete btn.itemId; + } +}, onPromptKey:function(textField, e) { + var me = this; + if (e.keyCode === e.RETURN || e.keyCode === 10) { + if (me.msgButtons.ok.isVisible()) { + me.msgButtons.ok.handler.call(me, me.msgButtons.ok); + } else { + if (me.msgButtons.yes.isVisible()) { + me.msgButtons.yes.handler.call(me, me.msgButtons.yes); + } + } + } +}, reconfigure:function(cfg) { + var me = this, buttons = 0, hideToolbar = true, oldButtonText = me.buttonText, resizer = me.resizer, header = me.header, headerCfg = header && !header.isHeader, message = cfg && (cfg.message || cfg.msg), resizeTracker, width, height, i, textArea, textField, msg, progressBar, msgButtons, wait, tool; + me.updateButtonText(); + me.cfg = cfg = cfg || {}; + wait = cfg.wait; + if (cfg.width) { + width = cfg.width; + } + if (cfg.height) { + height = cfg.height; + } + me.minWidth = cfg.minWidth || me.defaultMinWidth; + me.maxWidth = cfg.maxWidth || me.defaultMaxWidth; + me.minHeight = cfg.minHeight || me.defaultMinHeight; + me.maxHeight = cfg.maxHeight || me.defaultMaxHeight; + if (resizer) { + resizeTracker = resizer.resizeTracker; + resizer.minWidth = resizeTracker.minWidth = me.minWidth; + resizer.maxWidth = resizeTracker.maxWidth = me.maxWidth; + resizer.minHeight = resizeTracker.minHeight = me.minHeight; + resizer.maxHeight = resizeTracker.maxHeight = me.maxHeight; + } + delete me.defaultFocus; + if (cfg.defaultFocus) { + me.defaultFocus = cfg.defaultFocus; + } + me.animateTarget = cfg.animateTarget || undefined; + me.modal = cfg.modal !== false; + me.setTitle(cfg.title || headerCfg && header.title || me.title); + me.setIconCls(cfg.iconCls || headerCfg && header.iconCls || me.iconCls); + if (Ext.isObject(cfg.buttons)) { + me.buttonText = cfg.buttons; + buttons = 0; + } else { + me.buttonText = cfg.buttonText || me.buttonText; + buttons = Ext.isNumber(cfg.buttons) ? cfg.buttons : 0; + } + buttons = buttons | me.updateButtonText(); + me.buttonText = oldButtonText; + Ext.suspendLayouts(); + me.width = me.height = null; + if (width || height) { + if (width) { + me.setWidth(width); + } + if (height) { + me.setHeight(height); + } + } + me.hidden = false; + if (!me.rendered) { + me.render(Ext.getBody()); + } + me.closable = cfg.closable !== false && !wait; + header = me.header; + if (header) { + tool = header.child('[type\x3dclose]'); + if (tool) { + tool.setVisible(me.closable); + } + if (!cfg.title && !me.closable && !cfg.iconCls) { + header.hide(); + } else { + header.show(); + } + } + me.liveDrag = !cfg.proxyDrag; + me.userCallback = Ext.Function.bindCallback(cfg.callback || cfg.fn || Ext.emptyFn, cfg.scope || Ext.global); + me.setIcon(cfg.icon); + msg = me.msg; + if (message) { + msg.setHtml(message); + msg.show(); + } else { + msg.hide(); + } + textArea = me.textArea; + textField = me.textField; + if (cfg.prompt || cfg.multiline) { + me.multiline = cfg.multiline; + if (cfg.multiline) { + textArea.setValue(cfg.value); + textArea.setHeight(cfg.defaultTextHeight || me.defaultTextHeight); + textArea.show(); + textField.hide(); + me.defaultFocus = textArea; + } else { + textField.setValue(cfg.value); + textArea.hide(); + textField.show(); + me.defaultFocus = textField; + } + } else { + textArea.hide(); + textField.hide(); + } + progressBar = me.progressBar; + if (cfg.progress || wait) { + progressBar.show(); + me.updateProgress(0, cfg.progressText); + if (wait) { + progressBar.wait(wait === true ? cfg.waitConfig : wait); + } + } else { + progressBar.hide(); + } + msgButtons = me.msgButtons; + for (i = 0; i < 4; i++) { + if (buttons & Math.pow(2, i)) { + if (!me.defaultFocus) { + me.defaultFocus = msgButtons[i]; + } + msgButtons[i].show(); + hideToolbar = false; + } else { + msgButtons[i].hide(); + } + } + if (hideToolbar) { + me.bottomTb.hide(); + } else { + me.bottomTb.show(); + } + Ext.resumeLayouts(true); +}, updateButtonText:function() { + var me = this, buttonText = me.buttonText, buttons = 0, btnId, btn; + for (btnId in buttonText) { + if (buttonText.hasOwnProperty(btnId)) { + btn = me.msgButtons[btnId]; + if (btn) { + if (me.cfg && me.cfg.buttonText) { + buttons = buttons | Math.pow(2, Ext.Array.indexOf(me.buttonIds, btnId)); + } + if (btn.text !== buttonText[btnId]) { + btn.setText(buttonText[btnId]); + } + } + } + } + return buttons; +}, show:function(cfg) { + var me = this, visibleFocusables; + cfg = cfg || {}; + if (Ext.Component.layoutSuspendCount) { + Ext.on({resumelayouts:function() { + me.show(cfg); + }, single:true}); + return me; + } + me.reconfigure(cfg); + if (cfg.cls) { + me.addCls(cfg.cls); + } + visibleFocusables = me.query('textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])'); + me.preventFocusOnActivate = !visibleFocusables.length; + me.hidden = true; + me.callParent(); + return me; +}, onShow:function() { + this.callParent(arguments); + this.center(); +}, updateText:function(text) { + this.msg.setHtml(text); +}, setIcon:function(icon, width, height) { + var me = this, iconCmp = me.iconComponent, cls = me.messageIconCls; + if (cls) { + iconCmp.removeCls(cls); + } + if (icon) { + iconCmp.show(); + if (width || height) { + iconCmp.setSize(width || iconCmp.getWidth(), height || iconCmp.getHeight()); + } + iconCmp.addCls(Ext.baseCSSPrefix + 'dlg-icon'); + iconCmp.addCls(me.messageIconCls = icon); + } else { + iconCmp.removeCls(Ext.baseCSSPrefix + 'dlg-icon'); + iconCmp.hide(); + } + return me; +}, updateProgress:function(value, progressText, message) { + this.progressBar.updateProgress(value, progressText); + if (message) { + this.updateText(message); + } + return this; +}, onEsc:function() { + if (this.closable !== false) { + this.callParent(arguments); + } +}, confirm:function(cfg, message, fn, scope) { + if (Ext.isString(cfg)) { + cfg = {title:cfg, icon:this.QUESTION, message:message, buttons:this.YESNO, callback:fn, scope:scope}; + } + return this.show(cfg); +}, prompt:function(title, message, fn, scope, multiline, value) { + if (Ext.isString(title)) { + title = {prompt:true, title:title, minWidth:this.minPromptWidth, message:message, buttons:this.OKCANCEL, callback:fn, scope:scope, multiline:multiline, value:value}; + } + return this.show(title); +}, wait:function(message, title, config) { + if (Ext.isString(message)) { + message = {title:title, message:message, closable:false, wait:true, modal:true, minWidth:this.minProgressWidth, waitConfig:config}; + } + return this.show(message); +}, alert:function(title, message, fn, scope) { + if (Ext.isString(title)) { + title = {title:title, message:message, buttons:this.OK, fn:fn, scope:scope, minWidth:this.minWidth}; + } + return this.show(title); +}, progress:function(title, message, progressText) { + if (Ext.isString(title)) { + title = {title:title, message:message, progress:true, progressText:progressText}; + } + return this.show(title); +}}, function(MessageBox) { + Ext.onInternalReady(function() { + Ext.MessageBox = Ext.Msg = new MessageBox; + }); +}); +Ext.define('Ext.form.Basic', {extend:Ext.util.Observable, alternateClassName:'Ext.form.BasicForm', taskDelay:10, constructor:function(owner, config) { + var me = this, reader; + me.owner = owner; + me.fieldMonitors = {validitychange:me.checkValidityDelay, enable:me.checkValidityDelay, disable:me.checkValidityDelay, dirtychange:me.checkDirtyDelay, errorchange:me.checkErrorDelay, scope:me}; + me.checkValidityTask = new Ext.util.DelayedTask(me.checkValidity, me); + me.checkDirtyTask = new Ext.util.DelayedTask(me.checkDirty, me); + me.checkErrorTask = new Ext.util.DelayedTask(me.checkError, me); + me.monitor = new Ext.container.Monitor({selector:'[isFormField]:not([excludeForm])', scope:me, addHandler:me.onFieldAdd, removeHandler:me.onFieldRemove, invalidateHandler:me.onMonitorInvalidate}); + me.monitor.bind(owner); + Ext.apply(me, config); + if (Ext.isString(me.paramOrder)) { + me.paramOrder = me.paramOrder.split(/[\s,|]/); + } + reader = me.reader; + if (reader && !reader.isReader) { + if (typeof reader === 'string') { + reader = {type:reader}; + } + me.reader = Ext.createByAlias('reader.' + reader.type, reader); + } + reader = me.errorReader; + if (reader && !reader.isReader) { + if (typeof reader === 'string') { + reader = {type:reader}; + } + me.errorReader = Ext.createByAlias('reader.' + reader.type, reader); + } + me.callParent(); +}, initialize:function() { + this.initialized = true; + this.onValidityChange(!this.hasInvalidField()); +}, timeout:30, paramsAsHash:false, waitTitle:'Please Wait...', trackResetOnLoad:false, wasDirty:false, destroy:function() { + var me = this, mon = me.monitor; + if (mon) { + mon.unbind(); + me.monitor = null; + } + me.clearListeners(); + me.checkValidityTask.cancel(); + me.checkDirtyTask.cancel(); + me.checkErrorTask.cancel(); + me.checkValidityTask = me.checkDirtyTask = me.checkErrorTask = null; + me.callParent(); +}, onFieldAdd:function(field) { + field.on(this.fieldMonitors); + this.onMonitorInvalidate(); +}, onFieldRemove:function(field) { + field.un(this.fieldMonitors); + this.onMonitorInvalidate(); +}, onMonitorInvalidate:function() { + if (this.initialized) { + this.checkValidityDelay(); + } +}, getFields:function() { + return this.monitor.getItems(); +}, getBoundItems:function() { + var boundItems = this._boundItems; + if (!boundItems || boundItems.getCount() === 0) { + boundItems = this._boundItems = new Ext.util.MixedCollection; + boundItems.addAll(this.owner.query('[formBind]')); + } + return boundItems; +}, hasInvalidField:function() { + return !!this.getFields().findBy(function(field) { + var preventMark = field.preventMark, isValid; + field.preventMark = true; + isValid = field.isValid(); + field.preventMark = preventMark; + return !isValid; + }); +}, isValid:function() { + var me = this, invalid; + Ext.suspendLayouts(); + invalid = me.getFields().filterBy(function(field) { + return !field.validate(); + }); + Ext.resumeLayouts(true); + return invalid.length < 1; +}, checkValidity:function() { + var me = this, valid; + if (me.destroyed) { + return; + } + valid = !me.hasInvalidField(); + if (valid !== me.wasValid) { + me.onValidityChange(valid); + me.fireEvent('validitychange', me, valid); + me.wasValid = valid; + } +}, checkValidityDelay:function() { + var timer = this.taskDelay; + if (timer) { + this.checkValidityTask.delay(timer); + } else { + this.checkValidity(); + } +}, checkError:function() { + this.fireEvent('errorchange', this); +}, checkErrorDelay:function() { + var timer = this.taskDelay; + if (timer) { + this.checkErrorTask.delay(timer); + } else { + this.checkError(); + } +}, onValidityChange:function(valid) { + var boundItems = this.getBoundItems(), items, i, iLen, cmp; + if (boundItems) { + items = boundItems.items; + iLen = items.length; + for (i = 0; i < iLen; i++) { + cmp = items[i]; + if (cmp.disabled === valid) { + cmp.setDisabled(!valid); + } + } + } +}, isDirty:function() { + return !!this.getFields().findBy(function(f) { + return f.isDirty(); + }); +}, checkDirtyDelay:function() { + var timer = this.taskDelay; + if (timer) { + this.checkDirtyTask.delay(timer); + } else { + this.checkDirty(); + } +}, checkDirty:function() { + var me = this, dirty; + if (me.destroyed) { + return; + } + dirty = this.isDirty(); + if (dirty !== this.wasDirty) { + this.fireEvent('dirtychange', this, dirty); + this.wasDirty = dirty; + } +}, hasUpload:function() { + return !!this.getFields().findBy(function(f) { + return f.isFileUpload(); + }); +}, doAction:function(action, options) { + if (Ext.isString(action)) { + action = Ext.ClassManager.instantiateByAlias('formaction.' + action, Ext.apply({}, options, {form:this})); + } + if (this.fireEvent('beforeaction', this, action) !== false) { + this.beforeAction(action); + Ext.defer(action.run, 100, action); + } + return this; +}, submit:function(options) { + options = options || {}; + var me = this, action; + if (options.standardSubmit || me.standardSubmit) { + action = 'standardsubmit'; + } else { + action = me.api ? 'directsubmit' : 'submit'; + } + return me.doAction(action, options); +}, load:function(options) { + return this.doAction(this.api ? 'directload' : 'load', options); +}, updateRecord:function(record) { + record = record || this._record; + if (!record) { + Ext.raise('A record is required.'); + return this; + } + var fields = record.self.fields, values = this.getFieldValues(), obj = {}, i = 0, len = fields.length, name; + for (; i < len; ++i) { + name = fields[i].name; + if (values.hasOwnProperty(name)) { + obj[name] = values[name]; + } + } + record.beginEdit(); + record.set(obj); + record.endEdit(); + return this; +}, loadRecord:function(record) { + this._record = record; + return this.setValues(record.getData()); +}, getRecord:function() { + return this._record; +}, beforeAction:function(action) { + var me = this, waitMsg = action.waitMsg, maskCls = Ext.baseCSSPrefix + 'mask-loading', fields = me.getFields().items, f, fLen = fields.length, field, waitMsgTarget; + for (f = 0; f < fLen; f++) { + field = fields[f]; + if (field.isFormField && field.syncValue) { + field.syncValue(); + } + } + if (waitMsg) { + waitMsgTarget = me.waitMsgTarget; + if (waitMsgTarget === true) { + me.owner.el.mask(waitMsg, maskCls); + } else { + if (waitMsgTarget) { + waitMsgTarget = me.waitMsgTarget = Ext.get(waitMsgTarget); + waitMsgTarget.mask(waitMsg, maskCls); + } else { + me.floatingAncestor = me.owner.up('[floating]'); + if (me.floatingAncestor) { + me.savePreventFocusOnActivate = me.floatingAncestor.preventFocusOnActivate; + me.floatingAncestor.preventFocusOnActivate = true; + } + Ext.MessageBox.wait(waitMsg, action.waitTitle || me.waitTitle); + } + } + } +}, afterAction:function(action, success) { + var me = this; + if (action.waitMsg) { + var messageBox = Ext.MessageBox, waitMsgTarget = me.waitMsgTarget; + if (waitMsgTarget === true) { + me.owner.el.unmask(); + } else { + if (waitMsgTarget) { + waitMsgTarget.unmask(); + } else { + messageBox.hide(); + } + } + } + if (me.floatingAncestor) { + me.floatingAncestor.preventFocusOnActivate = me.savePreventFocusOnActivate; + } + if (success) { + if (action.reset) { + me.reset(); + } + Ext.callback(action.success, action.scope || action, [me, action]); + me.fireEvent('actioncomplete', me, action); + } else { + Ext.callback(action.failure, action.scope || action, [me, action]); + me.fireEvent('actionfailed', me, action); + } +}, findField:function(id) { + return this.getFields().findBy(function(f) { + return f.id === id || f.name === id || f.dataIndex === id; + }); +}, markInvalid:function(errors) { + var me = this, e, eLen, error, value, key; + function mark(fieldId, msg) { + var field = me.findField(fieldId); + if (field) { + field.markInvalid(msg); + } + } + if (Ext.isArray(errors)) { + eLen = errors.length; + for (e = 0; e < eLen; e++) { + error = errors[e]; + mark(error.id || error.field, error.msg || error.message); + } + } else { + if (errors instanceof Ext.data.ErrorCollection) { + eLen = errors.items.length; + for (e = 0; e < eLen; e++) { + error = errors.items[e]; + mark(error.field, error.message); + } + } else { + for (key in errors) { + if (errors.hasOwnProperty(key)) { + value = errors[key]; + mark(key, value, errors); + } + } + } + } + return this; +}, setValues:function(values) { + var me = this, v, vLen, val; + function setVal(fieldId, val) { + var field = me.findField(fieldId); + if (field) { + field.setValue(val); + if (me.trackResetOnLoad) { + field.resetOriginalValue(); + } + } + } + Ext.suspendLayouts(); + if (Ext.isArray(values)) { + vLen = values.length; + for (v = 0; v < vLen; v++) { + val = values[v]; + setVal(val.id, val.value); + } + } else { + Ext.iterate(values, setVal); + } + Ext.resumeLayouts(true); + return this; +}, getValues:function(asString, dirtyOnly, includeEmptyText, useDataValues, isSubmitting) { + var values = {}, fields = this.getFields().items, fLen = fields.length, isArray = Ext.isArray, field, data, val, bucket, name, f; + for (f = 0; f < fLen; f++) { + field = fields[f]; + if (!dirtyOnly || field.isDirty()) { + data = field[useDataValues ? 'getModelData' : 'getSubmitData'](includeEmptyText, isSubmitting); + if (Ext.isObject(data)) { + for (name in data) { + if (data.hasOwnProperty(name)) { + val = data[name]; + if (includeEmptyText && val === '') { + val = field.emptyText || ''; + } + if (!field.isRadio) { + if (values.hasOwnProperty(name)) { + bucket = values[name]; + if (!isArray(bucket)) { + bucket = values[name] = [bucket]; + } + if (isArray(val)) { + values[name] = bucket.concat(val); + } else { + bucket.push(val); + } + } else { + values[name] = val; + } + } else { + values[name] = values[name] || val; + } + } + } + } + } + } + if (asString) { + values = Ext.Object.toQueryString(values); + } + return values; +}, getFieldValues:function(dirtyOnly) { + return this.getValues(false, dirtyOnly, false, true); +}, clearInvalid:function() { + Ext.suspendLayouts(); + var me = this, fields = me.getFields().items, f, fLen = fields.length; + for (f = 0; f < fLen; f++) { + fields[f].clearInvalid(); + } + Ext.resumeLayouts(true); + return me; +}, reset:function(resetRecord) { + Ext.suspendLayouts(); + var me = this, fields = me.getFields().items, f, fLen = fields.length; + for (f = 0; f < fLen; f++) { + fields[f].reset(); + } + Ext.resumeLayouts(true); + if (resetRecord === true) { + delete me._record; + } + return me; +}, applyToFields:function(obj) { + var fields = this.getFields().items, f, fLen = fields.length; + for (f = 0; f < fLen; f++) { + Ext.apply(fields[f], obj); + } + return this; +}, applyIfToFields:function(obj) { + var fields = this.getFields().items, f, fLen = fields.length; + for (f = 0; f < fLen; f++) { + Ext.applyIf(fields[f], obj); + } + return this; +}}); +Ext.define('Ext.form.FieldAncestor', {extend:Ext.Mixin, mixinConfig:{id:'fieldAncestor', after:{initInheritedState:'initFieldInheritedState'}, before:{destroy:'onBeforeDestroy'}}, initFieldAncestor:function() { + var me = this; + me.monitor = new Ext.container.Monitor({scope:me, selector:'[isFormField]:not([excludeForm])', addHandler:me.onChildFieldAdd, removeHandler:me.onChildFieldRemove}); + me.initFieldDefaults(); +}, initMonitor:function() { + this.monitor.bind(this); +}, initFieldInheritedState:function(inheritedState) { + var inheritedFieldDefaults = inheritedState.fieldDefaults, fieldDefaults = this.fieldDefaults; + if (fieldDefaults) { + if (inheritedFieldDefaults) { + inheritedState.fieldDefaults = Ext.apply(Ext.Object.chain(inheritedFieldDefaults), fieldDefaults); + } else { + inheritedState.fieldDefaults = fieldDefaults; + } + } +}, onChildFieldAdd:function(field) { + var me = this; + me.mon(field, 'errorchange', me.handleFieldErrorChange, me); + me.mon(field, 'validitychange', me.handleFieldValidityChange, me); +}, onChildFieldRemove:function(field) { + var me = this; + me.mun(field, 'errorchange', me.handleFieldErrorChange, me); + me.mun(field, 'validitychange', me.handleFieldValidityChange, me); +}, initFieldDefaults:function() { + if (!this.fieldDefaults) { + this.fieldDefaults = {}; + } +}, handleFieldValidityChange:function(field, isValid) { + var me = this; + if (field !== me) { + me.fireEvent('fieldvaliditychange', me, field, isValid); + me.onFieldValidityChange(field, isValid); + } +}, handleFieldErrorChange:function(labelable, activeError) { + var me = this; + if (labelable !== me) { + me.fireEvent('fielderrorchange', me, labelable, activeError); + me.onFieldErrorChange(labelable, activeError); + } +}, onFieldValidityChange:Ext.emptyFn, onFieldErrorChange:Ext.emptyFn, onBeforeDestroy:function() { + this.monitor.unbind(); +}}); +Ext.define('Ext.form.CheckboxManager', {extend:Ext.util.MixedCollection, singleton:true, getByName:function(name, formId) { + return this.filterBy(function(item) { + return item.name === name && item.getFormId() === formId; + }); +}}); +Ext.define('Ext.form.field.Checkbox', {extend:Ext.form.field.Base, alias:['widget.checkboxfield', 'widget.checkbox'], alternateClassName:'Ext.form.Checkbox', stretchInputElFixed:false, childEls:['boxLabelEl', 'innerWrapEl', 'displayEl'], fieldSubTpl:['\x3cdiv id\x3d"{cmpId}-innerWrapEl" data-ref\x3d"innerWrapEl" role\x3d"presentation"', ' class\x3d"{wrapInnerCls}"\x3e', '\x3ctpl if\x3d"labelAlignedBefore"\x3e', '{beforeBoxLabelTpl}', '\x3clabel id\x3d"{cmpId}-boxLabelEl" data-ref\x3d"boxLabelEl" {boxLabelAttrTpl} class\x3d"{boxLabelCls} ', +'{boxLabelCls}-{ui} {boxLabelCls}-{boxLabelAlign} {noBoxLabelCls} {childElCls}" for\x3d"{id}"\x3e', '{beforeBoxLabelTextTpl}', '{boxLabel}', '{afterBoxLabelTextTpl}', '\x3c/label\x3e', '{afterBoxLabelTpl}', '\x3c/tpl\x3e', '\x3cinput type\x3d"button" id\x3d"{id}" name\x3d"{inputName}" data-ref\x3d"inputEl" {inputAttrTpl}', '\x3ctpl if\x3d"tabIdx !\x3d null"\x3e tabindex\x3d"{tabIdx}"\x3c/tpl\x3e', '\x3ctpl if\x3d"disabled"\x3e disabled\x3d"disabled"\x3c/tpl\x3e', '\x3ctpl if\x3d"fieldStyle"\x3e style\x3d"{fieldStyle}"\x3c/tpl\x3e', +' class\x3d"{checkboxCls} {clipCls}" autocomplete\x3d"off" hidefocus\x3d"true" ', '\x3ctpl foreach\x3d"inputElAriaAttributes"\x3e {$}\x3d"{.}"\x3c/tpl\x3e', '/\x3e', '\x3cspan id\x3d"{cmpId}-displayEl" data-ref\x3d"displayEl" class\x3d"{fieldCls} {typeCls} ', '{typeCls}-{ui} {inputCls} {inputCls}-{ui} {childElCls} {afterLabelCls}"\x3e\x3c/span\x3e', '\x3ctpl if\x3d"!labelAlignedBefore"\x3e', '{beforeBoxLabelTpl}', '\x3clabel id\x3d"{cmpId}-boxLabelEl" data-ref\x3d"boxLabelEl" {boxLabelAttrTpl} class\x3d"{boxLabelCls} ', +'{boxLabelCls}-{ui} {boxLabelCls}-{boxLabelAlign} {noBoxLabelCls} {childElCls}" for\x3d"{id}"\x3e', '{beforeBoxLabelTextTpl}', '{boxLabel}', '{afterBoxLabelTextTpl}', '\x3c/label\x3e', '{afterBoxLabelTpl}', '\x3c/tpl\x3e', '\x3c/div\x3e', {disableFormats:true, compiled:true}], publishes:{checked:1}, subTplInsertions:['beforeBoxLabelTpl', 'afterBoxLabelTpl', 'beforeBoxLabelTextTpl', 'afterBoxLabelTextTpl', 'boxLabelAttrTpl', 'inputAttrTpl'], isCheckbox:true, focusCls:'form-checkbox-focus', fieldBodyCls:Ext.baseCSSPrefix + +'form-cb-wrap', checked:false, checkedCls:Ext.baseCSSPrefix + 'form-cb-checked', boxLabelCls:Ext.baseCSSPrefix + 'form-cb-label', boxLabelAlign:'after', afterLabelCls:Ext.baseCSSPrefix + 'form-cb-after', wrapInnerCls:Ext.baseCSSPrefix + 'form-cb-wrap-inner', noBoxLabelCls:Ext.baseCSSPrefix + 'form-cb-no-box-label', inputValue:'on', checkChangeEvents:[], inputType:'checkbox', isTextInput:false, ariaRole:'checkbox', onRe:/^on$/i, inputCls:Ext.baseCSSPrefix + 'form-cb', _checkboxCls:Ext.baseCSSPrefix + +'form-cb-input', _clipCls:Ext.baseCSSPrefix + 'hidden-clip', initComponent:function() { + var me = this, value = me.value; + if (value !== undefined) { + me.checked = me.isChecked(value, me.inputValue); + } + me.callParent(); + me.getManager().add(me); +}, initDefaultName:Ext.emptyFn, initValue:function() { + var me = this, checked = !!me.checked; + me.originalValue = me.lastValue = checked; + me.setValue(checked); +}, getElConfig:function() { + var me = this; + if (me.isChecked(me.rawValue, me.inputValue)) { + me.addCls(me.checkedCls); + } + return me.callParent(); +}, getSubTplData:function(fieldData) { + var me = this, boxLabel = me.boxLabel, boxLabelAlign = me.boxLabelAlign, labelAlignedBefore = boxLabelAlign === 'before', data, inputElAttr; + data = Ext.apply(me.callParent([fieldData]), {clipCls:me._clipCls, checkboxCls:me._checkboxCls, disabled:me.readOnly || me.disabled, wrapInnerCls:me.wrapInnerCls, boxLabel:boxLabel, boxLabelCls:me.boxLabelCls, boxLabelAlign:boxLabelAlign, labelAlignedBefore:labelAlignedBefore, afterLabelCls:labelAlignedBefore ? me.afterLabelCls : '', noBoxLabelCls:!boxLabel ? me.noBoxLabelCls : '', inputName:me.name || me.id}); + inputElAttr = data.inputElAriaAttributes; + if (inputElAttr) { + inputElAttr['aria-checked'] = !!me.checked; + inputElAttr['aria-labelledby'] = me.id + '-boxLabelEl'; + } + return data; +}, initEvents:function() { + var me = this; + me.callParent(); + me.inputEl.on({click:'onBoxClick', scope:me, translate:false}); + me.displayEl.on({click:'onBoxClick', mousedown:'_onDisplayElMouseDown', scope:me}); +}, setBoxLabel:function(boxLabel) { + var me = this; + me.boxLabel = boxLabel; + if (me.rendered) { + me.boxLabelEl.setHtml(boxLabel); + me.boxLabelEl[boxLabel ? 'removeCls' : 'addCls'](me.noBoxLabelCls); + me.updateLayout(); + } +}, onBoxClick:function() { + var me = this; + if (!me.disabled && !me.readOnly) { + me.setValue(!me.checked); + } +}, getRawValue:function() { + return this.checked; +}, getValue:function() { + return this.checked; +}, getSubmitValue:function() { + var unchecked = this.uncheckedValue, uncheckedVal = Ext.isDefined(unchecked) ? unchecked : null; + return this.checked ? this.inputValue : uncheckedVal; +}, isChecked:function(rawValue, inputValue) { + return rawValue === true || rawValue === 'true' || rawValue === '1' || rawValue === 1 || ((Ext.isString(rawValue) || Ext.isNumber(rawValue)) && inputValue ? rawValue == inputValue : this.onRe.test(rawValue)); +}, setRawValue:function(value) { + var me = this, inputEl = me.inputEl, displayEl = me.displayEl, checked = me.isChecked(value, me.inputValue); + if (inputEl) { + me[checked ? 'addCls' : 'removeCls'](me.checkedCls); + if (me.ariaRole) { + me.ariaEl.dom.setAttribute('aria-checked', checked); + } + } + if (Ext.isIE8 && displayEl && checked !== me.lastValue) { + displayEl.repaint(); + } + me.checked = me.rawValue = checked; + if (!me.duringSetValue) { + me.lastValue = checked; + } + return checked; +}, setValue:function(checked) { + var me = this, boxes, i, len, box; + if (Ext.isArray(checked)) { + boxes = me.getManager().getByName(me.name, me.getFormId()).items; + len = boxes.length; + for (i = 0; i < len; ++i) { + box = boxes[i]; + box.setValue(Ext.Array.contains(checked, box.inputValue)); + } + } else { + me.duringSetValue = true; + me.callParent(arguments); + delete me.duringSetValue; + } + return me; +}, valueToRaw:Ext.identityFn, onChange:function(newVal, oldVal) { + var me = this, handler = me.handler; + if (handler) { + Ext.callback(handler, me.scope, [me, newVal], 0, me); + } + me.callParent(arguments); + if (me.reference && me.publishState) { + me.publishState('checked', newVal); + } +}, resetOriginalValue:function(fromBoxInGroup) { + var me = this, boxes, box, len, i; + if (!fromBoxInGroup) { + boxes = me.getManager().getByName(me.name, me.getFormId()).items; + len = boxes.length; + for (i = 0; i < len; ++i) { + box = boxes[i]; + if (box !== me) { + boxes[i].resetOriginalValue(true); + } + } + } + me.callParent(); +}, beforeDestroy:function() { + this.callParent(); + this.getManager().removeAtKey(this.id); +}, getManager:function() { + return Ext.form.CheckboxManager; +}, onEnable:function() { + var me = this, inputEl = me.inputEl; + me.callParent(); + if (inputEl) { + inputEl.dom.disabled = me.readOnly; + } +}, setReadOnly:function(readOnly) { + var me = this, inputEl = me.inputEl; + if (inputEl) { + inputEl.dom.disabled = !!readOnly || me.disabled; + } + me.callParent(arguments); +}, getFormId:function() { + var me = this, form; + if (!me.formId) { + form = me.up('form'); + if (form) { + me.formId = form.id; + } + } + return me.formId; +}, getFocusClsEl:function() { + return this.displayEl; +}, privates:{_onDisplayElMouseDown:function(e) { + e.preventDefault(); + this.inputEl.focus(1); +}}}); +Ext.define('Ext.theme.triton.form.field.Checkbox', {override:'Ext.form.field.Checkbox', compatibility:Ext.isIE8, initComponent:function() { + this.callParent(); + Ext.on({show:'onGlobalShow', scope:this}); +}, onFocus:function(e) { + var focusClsEl; + this.callParent([e]); + focusClsEl = this.getFocusClsEl(); + if (focusClsEl) { + focusClsEl.syncRepaint(); + } +}, onBlur:function(e) { + var focusClsEl; + this.callParent([e]); + focusClsEl = this.getFocusClsEl(); + if (focusClsEl) { + focusClsEl.syncRepaint(); + } +}, onGlobalShow:function(cmp) { + if (cmp.isAncestor(this)) { + this.getFocusClsEl().syncRepaint(); + } +}}); +Ext.define('Ext.form.FieldSet', {extend:Ext.container.Container, mixins:{fieldAncestor:Ext.form.FieldAncestor}, alias:'widget.fieldset', checkboxUI:'default', collapsed:false, toggleOnTitleClick:true, baseCls:Ext.baseCSSPrefix + 'fieldset', layout:'anchor', descriptionText:'{0} field set', expandText:'Expand field set', componentLayout:'fieldset', ariaRole:'group', focusable:false, autoEl:'fieldset', childEls:['body'], renderTpl:['{%this.renderLegend(out,values);%}', '\x3cdiv id\x3d"{id}-body" data-ref\x3d"body" class\x3d"{baseCls}-body {baseCls}-body-{ui} {bodyTargetCls}" ', +'role\x3d"presentation"\x3ctpl if\x3d"bodyStyle"\x3e style\x3d"{bodyStyle}"\x3c/tpl\x3e\x3e', '{%this.renderContainer(out,values);%}', '\x3c/div\x3e'], stateEvents:['collapse', 'expand'], maskOnDisable:false, beforeDestroy:function() { + var me = this, legend = me.legend; + if (legend) { + delete legend.ownerCt; + legend.destroy(); + me.legend = null; + } + me.callParent(); +}, initComponent:function() { + var me = this, baseCls = me.baseCls; + if (me.ariaRole && !me.ariaLabel) { + me.ariaLabel = Ext.String.formatEncode(me.descriptionText, me.title || ''); + } + me.ariaRenderAttributes = me.ariaRenderAttributes || {}; + me.ariaRenderAttributes['aria-expanded'] = !me.collapsed; + me.initFieldAncestor(); + me.callParent(); + me.layout.managePadding = me.layout.manageOverflow = false; + if (me.collapsed) { + me.addCls(baseCls + '-collapsed'); + me.collapse(); + } + if (me.title || me.checkboxToggle || me.collapsible) { + me.addTitleClasses(); + me.legend = me.createLegendCt(); + } + me.initMonitor(); +}, initRenderData:function() { + var me = this, data = me.callParent(); + data.bodyTargetCls = me.bodyTargetCls; + me.protoBody.writeTo(data); + delete me.protoBody; + return data; +}, getState:function() { + var state = this.callParent(); + state = this.addPropertyToState(state, 'collapsed'); + return state; +}, afterCollapse:Ext.emptyFn, afterExpand:Ext.emptyFn, collapsedHorizontal:function() { + return true; +}, collapsedVertical:function() { + return true; +}, createLegendCt:function() { + var me = this, items = [], legendCfg = {baseCls:me.baseCls + '-header', layout:'container', ui:me.ui, id:me.id + '-legend', autoEl:'legend', ariaRole:null, items:items, ownerCt:me, shrinkWrap:true, ownerLayout:me.componentLayout}, legend; + if (me.checkboxToggle) { + items.push(me.createCheckboxCmp()); + } else { + if (me.collapsible) { + items.push(me.createToggleCmp()); + } + } + items.push(me.createTitleCmp()); + legend = new Ext.container.Container(legendCfg); + legend.collapseImmune = true; + legend.getInherited().collapseImmune = true; + return legend; +}, createTitleCmp:function() { + var me = this, cfg = {html:me.title, ui:me.ui, cls:me.baseCls + '-header-text', id:me.id + '-legendTitle', ariaRole:'presentation'}; + if (me.collapsible && me.toggleOnTitleClick) { + cfg.listeners = {click:{element:'el', scope:me, fn:me.toggle}}; + cfg.cls += ' ' + me.baseCls + '-header-text-collapsible'; + } + me.titleCmp = new Ext.Component(cfg); + return me.titleCmp; +}, createCheckboxCmp:function() { + var me = this, suffix = '-checkbox', cls = me.baseCls + '-header' + suffix, checkboxCmp; + cls += ' ' + cls + '-' + me.ui; + me.checkboxCmp = checkboxCmp = new Ext.form.field.Checkbox({hideEmptyLabel:true, name:me.checkboxName || me.id + suffix, cls:cls, id:me.id + '-legendChk', ui:me.checkboxUI, checked:!me.collapsed, msgTarget:'none', listeners:{change:me.onCheckChange, scope:me}, ariaLabel:me.expandText}); + return checkboxCmp; +}, createToggleCmp:function() { + var me = this, toggleCmp; + me.toggleCmp = toggleCmp = new Ext.panel.Tool({cacheHeight:false, cls:me.baseCls + '-header-tool-' + me.ui, type:'toggle', handler:me.toggle, id:me.id + '-legendToggle', scope:me, ariaRole:'checkbox', ariaLabel:me.expandText, ariaRenderAttributes:{'aria-checked':!me.collapsed}}); + return toggleCmp; +}, doRenderLegend:function(out, renderData) { + var me = renderData.$comp, legend = me.legend, tree; + if (legend) { + legend.ownerLayout.configureItem(legend); + tree = legend.getRenderTree(); + Ext.DomHelper.generateMarkup(tree, out); + } +}, getCollapsed:function() { + return this.collapsed ? 'top' : false; +}, getCollapsedDockedItems:function() { + var legend = this.legend; + return legend ? [legend] : []; +}, setTitle:function(title) { + var me = this, legend = me.legend; + me.title = title; + me.ariaLabel = Ext.String.formatEncode(me.descriptionText, title || ''); + if (me.rendered) { + if (!legend) { + me.legend = legend = me.createLegendCt(); + me.addTitleClasses(); + legend.ownerLayout.configureItem(legend); + legend.render(me.el, 0); + } + me.titleCmp.update(title); + me.ariaEl.dom.setAttribute('aria-label', me.ariaLabel); + } else { + if (legend) { + me.titleCmp.update(title); + } else { + me.addTitleClasses(); + me.legend = me.createLegendCt(); + } + } + return me; +}, addTitleClasses:function() { + var me = this, title = me.title, baseCls = me.baseCls; + if (title) { + me.addCls(baseCls + '-with-title'); + } + if (title || me.checkboxToggle || me.collapsible) { + me.addCls(baseCls + '-with-legend'); + } +}, expand:function() { + return this.setExpanded(true); +}, collapse:function() { + return this.setExpanded(false); +}, setExpanded:function(expanded) { + var me = this, checkboxCmp = me.checkboxCmp, toggleCmp = me.toggleCmp, operation = expanded ? 'expand' : 'collapse'; + if (!me.rendered || me.fireEvent('before' + operation, me) !== false) { + expanded = !!expanded; + if (checkboxCmp) { + checkboxCmp.setValue(expanded); + } else { + if (toggleCmp && toggleCmp.ariaEl.dom) { + toggleCmp.ariaEl.dom.setAttribute('aria-checked', expanded); + } + } + if (expanded) { + me.removeCls(me.baseCls + '-collapsed'); + } else { + me.addCls(me.baseCls + '-collapsed'); + } + if (me.ariaEl.dom) { + me.ariaEl.dom.setAttribute('aria-expanded', !!expanded); + } + me.collapsed = !expanded; + if (expanded) { + delete me.getInherited().collapsed; + } else { + me.getInherited().collapsed = true; + } + if (me.rendered) { + me.updateLayout({isRoot:false}); + me.fireEvent(operation, me); + } + } + return me; +}, getRefItems:function(deep) { + var refItems = this.callParent(arguments), legend = this.legend; + if (legend) { + refItems.unshift(legend); + if (deep) { + refItems.unshift.apply(refItems, legend.getRefItems(true)); + } + } + return refItems; +}, toggle:function() { + this.setExpanded(!!this.collapsed); +}, privates:{applyTargetCls:function(targetCls) { + this.bodyTargetCls = targetCls; +}, finishRender:function() { + var legend = this.legend; + this.callParent(); + if (legend) { + legend.finishRender(); + } +}, getProtoBody:function() { + var me = this, body = me.protoBody; + if (!body) { + me.protoBody = body = new Ext.util.ProtoElement({styleProp:'bodyStyle', styleIsText:true}); + } + return body; +}, getDefaultContentTarget:function() { + return this.body; +}, getTargetEl:function() { + return this.body || this.frameBody || this.el; +}, initPadding:function(targetEl) { + var me = this, body = me.getProtoBody(), padding = me.padding, bodyPadding; + if (padding !== undefined) { + if (Ext.isIE8) { + padding = me.parseBox(padding); + bodyPadding = Ext.Element.parseBox(0); + bodyPadding.top = padding.top; + padding.top = 0; + body.setStyle('padding', me.unitizeBox(bodyPadding)); + } + targetEl.setStyle('padding', me.unitizeBox(padding)); + } +}, onCheckChange:function(cmp, checked) { + this.setExpanded(checked); +}, setupRenderTpl:function(renderTpl) { + this.callParent(arguments); + renderTpl.renderLegend = this.doRenderLegend; +}}}); +Ext.define('Ext.form.Panel', {extend:Ext.panel.Panel, mixins:{fieldAncestor:Ext.form.FieldAncestor}, alias:'widget.form', alternateClassName:['Ext.FormPanel', 'Ext.form.FormPanel'], layout:'anchor', bodyAriaRole:'form', basicFormConfigs:['api', 'baseParams', 'errorReader', 'jsonSubmit', 'method', 'paramOrder', 'paramsAsHash', 'reader', 'standardSubmit', 'timeout', 'trackResetOnLoad', 'url', 'waitMsgTarget', 'waitTitle'], initComponent:function() { + var me = this; + if (me.frame) { + me.border = false; + } + me.initFieldAncestor(); + me.callParent(); + me.relayEvents(me.form, ['beforeaction', 'actionfailed', 'actioncomplete', 'validitychange', 'dirtychange']); + if (me.pollForChanges) { + me.startPolling(me.pollInterval || 500); + } +}, initItems:function() { + this.callParent(); + this.initMonitor(); + this.form = this.createForm(); +}, afterFirstLayout:function() { + this.callParent(arguments); + this.form.initialize(); +}, createForm:function() { + var cfg = {}, props = this.basicFormConfigs, len = props.length, i = 0, prop; + for (; i < len; ++i) { + prop = props[i]; + cfg[prop] = this[prop]; + } + return new Ext.form.Basic(this, cfg); +}, getForm:function() { + return this.form; +}, loadRecord:function(record) { + return this.getForm().loadRecord(record); +}, getRecord:function() { + return this.getForm().getRecord(); +}, updateRecord:function(record) { + return this.getForm().updateRecord(record); +}, getValues:function(asString, dirtyOnly, includeEmptyText, useDataValues) { + return this.getForm().getValues(asString, dirtyOnly, includeEmptyText, useDataValues); +}, isDirty:function() { + return this.form.isDirty(); +}, isValid:function() { + return this.form.isValid(); +}, reset:function() { + this.form.reset(); +}, hasInvalidField:function() { + return this.form.hasInvalidField(); +}, beforeDestroy:function() { + this.stopPolling(); + this.form.destroy(); + this.callParent(); +}, load:function(options) { + this.form.load(options); +}, submit:function(options) { + this.form.submit(options); +}, startPolling:function(interval) { + this.stopPolling(); + var task = new Ext.util.TaskRunner(interval); + task.start({interval:0, run:this.checkChange, scope:this}); + this.pollTask = task; +}, stopPolling:function() { + var task = this.pollTask; + if (task) { + task.stopAll(); + delete this.pollTask; + } +}, checkChange:function() { + var fields = this.form.getFields().items, f, fLen = fields.length; + for (f = 0; f < fLen; f++) { + fields[f].checkChange(); + } +}}); +Ext.define('Ext.form.RadioManager', {extend:Ext.util.MixedCollection, singleton:true, getByName:function(name, formId) { + return this.filterBy(function(item) { + return item.name === name && item.getFormId() === formId; + }); +}, getWithValue:function(name, value, formId) { + return this.filterBy(function(item) { + return item.name === name && item.inputValue == value && item.getFormId() === formId; + }); +}, getChecked:function(name, formId) { + return this.findBy(function(item) { + return item.name === name && item.checked && item.getFormId() === formId; + }); +}}); +Ext.define('Ext.form.field.Radio', {extend:Ext.form.field.Checkbox, alias:['widget.radiofield', 'widget.radio'], alternateClassName:'Ext.form.Radio', isRadio:true, inputType:'radio', ariaRole:'radio', tabIndex:0, formId:null, getGroupValue:function() { + var selected = this.getManager().getChecked(this.name, this.getFormId()); + return selected ? selected.inputValue : null; +}, onBoxClick:function() { + var me = this; + if (!me.disabled && !me.readOnly) { + this.setValue(true); + } +}, onRemoved:function() { + this.callParent(arguments); + this.formId = null; +}, setValue:function(value) { + var me = this, active; + if (Ext.isBoolean(value)) { + me.callParent(arguments); + } else { + active = me.getManager().getWithValue(me.name, value, me.getFormId()).getAt(0); + if (active) { + active.setValue(true); + } + } + return me; +}, getSubmitValue:function() { + return this.checked ? this.inputValue : null; +}, getModelData:function() { + var o = this.callParent(arguments); + if (o) { + o[this.getName()] = this.getSubmitValue(); + } + return o; +}, onChange:function(newVal, oldVal) { + var me = this, r, rLen, radio, radios; + me.callParent(arguments); + if (newVal) { + radios = me.getManager().getByName(me.name, me.getFormId()).items; + rLen = radios.length; + for (r = 0; r < rLen; r++) { + radio = radios[r]; + if (radio !== me) { + radio.setValue(false); + } + } + } +}, getManager:function() { + return Ext.form.RadioManager; +}}); +Ext.define('Ext.form.field.Picker', {extend:Ext.form.field.Text, alias:'widget.pickerfield', alternateClassName:'Ext.form.Picker', config:{triggers:{picker:{handler:'onTriggerClick', scope:'this'}}}, renderConfig:{editable:true}, isPickerField:true, matchFieldWidth:true, pickerAlign:'tl-bl?', openCls:Ext.baseCSSPrefix + 'pickerfield-open', isExpanded:false, applyTriggers:function(triggers) { + var me = this, picker = triggers.picker; + if (!picker.cls) { + picker.cls = me.triggerCls; + } + return me.callParent([triggers]); +}, getSubTplData:function(fieldData) { + var me = this, data, inputElAttr; + data = me.callParent([fieldData]); + if (me.ariaRole) { + inputElAttr = data.inputElAriaAttributes; + if (inputElAttr) { + inputElAttr['aria-haspopup'] = true; + inputElAttr['aria-expanded'] = false; + } + } + return data; +}, initEvents:function() { + var me = this; + me.callParent(); + me.keyNav = new Ext.util.KeyNav(me.inputEl, {down:me.onDownArrow, esc:{handler:me.onEsc, scope:me, defaultEventAction:false}, scope:me, forceKeyDown:true}); + if (Ext.isGecko) { + me.inputEl.dom.setAttribute('autocomplete', 'off'); + } +}, updateEditable:function(editable, oldEditable) { + var me = this; + if (!editable) { + me.inputEl.on('click', me.onTriggerClick, me); + } else { + me.inputEl.un('click', me.onTriggerClick, me); + } + me.callParent([editable, oldEditable]); +}, onEsc:function(e) { + if (Ext.isIE) { + e.preventDefault(); + } + if (this.isExpanded) { + this.collapse(); + e.stopEvent(); + } +}, onDownArrow:function(e) { + var me = this; + if (e.time - me.lastDownArrow > 150) { + delete me.lastDownArrow; + } + if (!me.isExpanded) { + e.stopEvent(); + me.onTriggerClick(); + me.lastDownArrow = e.time; + } else { + if (!e.isStopped && e.time - me.lastDownArrow < 150) { + delete me.lastDownArrow; + } + } +}, expand:function() { + var me = this, bodyEl, ariaDom, picker, doc; + if (me.rendered && !me.isExpanded && !me.destroyed) { + bodyEl = me.bodyEl; + picker = me.getPicker(); + doc = Ext.getDoc(); + picker.setMaxHeight(picker.initialConfig.maxHeight); + if (me.matchFieldWidth) { + picker.setWidth(me.bodyEl.getWidth()); + } + picker.show(); + me.isExpanded = true; + me.alignPicker(); + bodyEl.addCls(me.openCls); + if (me.ariaRole) { + ariaDom = me.ariaEl.dom; + ariaDom.setAttribute('aria-owns', picker.listEl ? picker.listEl.id : picker.el.id); + ariaDom.setAttribute('aria-expanded', true); + } + me.touchListeners = doc.on({translate:false, touchstart:me.collapseIf, scope:me, delegated:false, destroyable:true}); + me.scrollListeners = Ext.on({scroll:me.onGlobalScroll, scope:me, destroyable:true}); + Ext.on('resize', me.alignPicker, me, {buffer:1}); + me.fireEvent('expand', me); + me.onExpand(); + } +}, onExpand:Ext.emptyFn, alignPicker:function() { + if (!this.destroyed) { + var picker = this.getPicker(); + if (picker.isVisible() && picker.isFloating()) { + this.doAlign(); + } + } +}, doAlign:function() { + var me = this, picker = me.picker, aboveSfx = '-above', isAbove; + me.picker.alignTo(me.triggerWrap, me.pickerAlign, me.pickerOffset); + isAbove = picker.el.getY() < me.inputEl.getY(); + me.bodyEl[isAbove ? 'addCls' : 'removeCls'](me.openCls + aboveSfx); + picker[isAbove ? 'addCls' : 'removeCls'](picker.baseCls + aboveSfx); +}, collapse:function() { + var me = this; + if (me.isExpanded && !me.destroyed && !me.destroying) { + var openCls = me.openCls, picker = me.picker, aboveSfx = '-above'; + picker.hide(); + me.isExpanded = false; + me.bodyEl.removeCls([openCls, openCls + aboveSfx]); + picker.el.removeCls(picker.baseCls + aboveSfx); + if (me.ariaRole) { + me.ariaEl.dom.setAttribute('aria-expanded', false); + } + me.touchListeners.destroy(); + me.scrollListeners.destroy(); + Ext.un('resize', me.alignPicker, me); + me.fireEvent('collapse', me); + me.onCollapse(); + } +}, onCollapse:Ext.emptyFn, collapseIf:function(e) { + var me = this; + if (!me.destroyed && !e.within(me.bodyEl, false, true) && !me.owns(e.target) && !Ext.fly(e.target).isFocusable()) { + me.collapse(); + } +}, getPicker:function() { + var me = this, picker = me.picker; + if (!picker) { + me.creatingPicker = true; + me.picker = picker = me.createPicker(); + picker.ownerCmp = me; + delete me.creatingPicker; + } + return me.picker; +}, onFocusLeave:function(e) { + this.collapse(); + this.callParent([e]); +}, getRefItems:function() { + var result = []; + if (this.picker) { + result[0] = this.picker; + } + return result; +}, createPicker:Ext.emptyFn, onTriggerClick:function(e) { + var me = this; + if (!me.readOnly && !me.disabled) { + if (me.isExpanded) { + me.collapse(); + } else { + me.expand(); + } + } +}, beforeDestroy:function() { + var me = this, picker = me.picker; + me.callParent(); + Ext.un('resize', me.alignPicker, me); + Ext.destroy(me.keyNav, picker); + if (picker) { + me.picker = picker.pickerField = null; + } +}, privates:{onGlobalScroll:function(scroller) { + var scrollPosition, newScrollPosition, targetEl = this.el; + if (scroller.getElement().contains(targetEl)) { + scrollPosition = scroller.getPosition(); + newScrollPosition = targetEl.getScrollIntoViewXY(scroller.getElement(), scrollPosition.x, scrollPosition.y); + if (this.up('[fixed]') || newScrollPosition.y !== scrollPosition.y || newScrollPosition.x !== scrollPosition.x) { + this.collapse(); + } + } +}}}); +Ext.define('Ext.selection.Model', {extend:Ext.mixin.Observable, alternateClassName:'Ext.AbstractSelectionModel', mixins:[Ext.util.StoreHolder, Ext.mixin.Factoryable], alias:'selection.abstract', factoryConfig:{defaultType:'dataviewmodel'}, $configPrefixed:false, $configStrict:false, config:{store:null, selected:{}}, isSelectionModel:true, allowDeselect:undefined, toggleOnClick:true, selected:null, pruneRemoved:true, suspendChange:0, ignoreRightMouseSelection:false, constructor:function(cfg) { + var me = this; + me.modes = {SINGLE:true, SIMPLE:true, MULTI:true}; + me.callParent([cfg]); + me.setSelectionMode(me.mode); + if (me.selectionMode !== 'SINGLE') { + me.allowDeselect = true; + } +}, updateStore:function(store, oldStore) { + this.bindStore(store, !oldStore); +}, applySelected:function(selected) { + if (!selected.isCollection) { + selected = new Ext.util.Collection(Ext.apply({rootProperty:'data'}, selected)); + } + return selected; +}, getStoreListeners:function() { + var me = this; + return {add:me.onStoreAdd, clear:me.onStoreClear, remove:me.onStoreRemove, update:me.onStoreUpdate, idchanged:me.onIdChanged, load:me.onStoreLoad, refresh:me.onStoreRefresh, pageadd:me.onPageAdd, pageremove:me.onPageRemove}; +}, suspendChanges:function() { + ++this.suspendChange; +}, resumeChanges:function() { + if (this.suspendChange) { + --this.suspendChange; + } +}, selectAll:function(suppressEvent) { + var me = this, selections = me.store.getRange(), start = me.getSelection().length; + me.suspendChanges(); + me.doSelect(selections, true, suppressEvent); + me.resumeChanges(); + if (!suppressEvent && !me.destroyed) { + me.maybeFireSelectionChange(me.getSelection().length !== start); + } +}, deselectAll:function(suppressEvent) { + var me = this, selections = me.getSelection(), selIndexes = {}, store = me.store, start = selections.length, i, l, rec; + for (i = 0, l = selections.length; i < l; i++) { + rec = selections[i]; + selIndexes[rec.id] = store.indexOf(rec); + } + selections = Ext.Array.sort(selections, function(r1, r2) { + var idx1 = selIndexes[r1.id], idx2 = selIndexes[r2.id]; + return idx1 < idx2 ? -1 : 1; + }); + me.suspendChanges(); + me.doDeselect(selections, suppressEvent); + me.resumeChanges(); + if (!suppressEvent && !me.destroyed) { + me.maybeFireSelectionChange(me.getSelection().length !== start); + } +}, getSelectionStart:function() { + return this.selectionStart; +}, setSelectionStart:function(selection) { + this.selectionStart = selection; +}, selectWithEvent:function(record, e) { + var me = this, isSelected = me.isSelected(record), shift = e.shiftKey; + switch(me.selectionMode) { + case 'MULTI': + me.selectWithEventMulti(record, e, isSelected); + break; + case 'SIMPLE': + me.selectWithEventSimple(record, e, isSelected); + break; + case 'SINGLE': + me.selectWithEventSingle(record, e, isSelected); + break; + } + if (!shift) { + if (me.isSelected(record)) { + me.selectionStart = record; + } else { + me.selectionStart = null; + } + } +}, vetoSelection:function(e) { + if (e.stopSelection) { + return true; + } else { + if (e.type !== 'keydown' && e.button !== 0) { + if (this.ignoreRightMouseSelection || this.isSelected(e.record)) { + return true; + } + } else { + return e.type === 'mousedown'; + } + } +}, onNavigate:function(e) { + if (!e.record || this.vetoSelection(e.keyEvent)) { + return; + } + this.onBeforeNavigate(e); + var me = this, keyEvent = e.keyEvent, ctrlKey = keyEvent.ctrlKey || e.ctrlKey, recIdx = e.recordIndex, record = e.record, lastFocused = e.previousRecord, isSelected = me.isSelected(record), from = me.selectionStart && me.isSelected(e.previousRecord) ? me.selectionStart : me.selectionStart = e.previousRecord, fromIdx = e.previousRecordIndex, key = keyEvent.getCharCode(), isSpace = key === keyEvent.SPACE, direction = key === keyEvent.UP || key === keyEvent.PAGE_UP || key === keyEvent.HOME ? 'up' : + key === keyEvent.DOWN || key === keyEvent.PAGE_DOWN || key === keyEvent.END ? 'down' : null; + switch(me.selectionMode) { + case 'MULTI': + me.setSelectionStart(e.selectionStart); + if (key === keyEvent.A && ctrlKey) { + me.selected.beginUpdate(); + me.selectRange(0, me.store.getCount() - 1); + me.selected.endUpdate(); + } else { + if (isSpace) { + if (keyEvent.shiftKey) { + me.selectRange(from, record, ctrlKey); + } else { + if (isSelected) { + if (me.allowDeselect) { + me.doDeselect(record); + } + } else { + me.doSelect(record, ctrlKey); + } + } + } else { + if (keyEvent.shiftKey && from) { + if (direction === 'up' && fromIdx <= recIdx) { + me.deselectRange(lastFocused, recIdx + 1); + } else { + if (direction === 'down' && fromIdx >= recIdx) { + me.deselectRange(lastFocused, recIdx - 1); + } else { + if (from !== record) { + me.selectRange(from, record, ctrlKey); + } + } + } + me.lastSelected = record; + } else { + if (key) { + if (!ctrlKey) { + me.doSelect(record, false); + } + } else { + me.selectWithEvent(record, keyEvent); + } + } + } + } + break; + case 'SIMPLE': + if (key === keyEvent.A && ctrlKey) { + me.selected.beginUpdate(); + me.selectRange(0, me.store.getCount() - 1); + me.selected.endUpdate(); + } else { + if (isSelected) { + me.doDeselect(record); + } else { + me.doSelect(record, true); + } + } + break; + case 'SINGLE': + if (!ctrlKey) { + if (direction) { + me.doSelect(record, false); + } else { + if (isSpace || !key) { + me.selectWithEvent(record, keyEvent); + } + } + } + } + if (!keyEvent.shiftKey && !me.destroyed && me.isSelected(record)) { + me.selectionStart = record; + me.selectionStartIdx = recIdx; + } +}, selectRange:function(startRow, endRow, keepExisting) { + var me = this, store = me.store, selected = me.selected.items, result, i, len, toSelect, toDeselect, idx, rec; + if (me.isLocked()) { + return; + } + result = me.normalizeRowRange(startRow, endRow); + startRow = result[0]; + endRow = result[1]; + toSelect = []; + for (i = startRow; i <= endRow; i++) { + if (!me.isSelected(store.getAt(i))) { + toSelect.push(store.getAt(i)); + } + } + if (!keepExisting) { + toDeselect = []; + me.suspendChanges(); + for (i = 0, len = selected.length; i < len; ++i) { + rec = selected[i]; + idx = store.indexOf(rec); + if (idx < startRow || idx > endRow) { + toDeselect.push(rec); + } + } + for (i = 0, len = toDeselect.length; i < len; ++i) { + me.doDeselect(toDeselect[i]); + } + me.resumeChanges(); + } + if (!me.destroyed) { + if (toSelect.length) { + me.doMultiSelect(toSelect, true); + } else { + if (toDeselect) { + me.maybeFireSelectionChange(toDeselect.length > 0); + } + } + } +}, deselectRange:function(startRow, endRow) { + var me = this, store = me.store, result, i, toDeselect, record; + if (me.isLocked()) { + return; + } + result = me.normalizeRowRange(startRow, endRow); + startRow = result[0]; + endRow = result[1]; + toDeselect = []; + for (i = startRow; i <= endRow; i++) { + record = store.getAt(i); + if (me.isSelected(record)) { + toDeselect.push(record); + } + } + if (toDeselect.length) { + me.doDeselect(toDeselect); + } +}, normalizeRowRange:function(startRow, endRow) { + var store = this.store, tmp; + if (!Ext.isNumber(startRow)) { + startRow = store.indexOf(startRow); + } + startRow = Math.max(0, startRow); + if (!Ext.isNumber(endRow)) { + endRow = store.indexOf(endRow); + } + endRow = Math.min(endRow, store.getCount() - 1); + if (startRow > endRow) { + tmp = endRow; + endRow = startRow; + startRow = tmp; + } + return [startRow, endRow]; +}, select:function(records, keepExisting, suppressEvent) { + if (Ext.isDefined(records) && !(Ext.isArray(records) && !records.length)) { + this.doSelect(records, keepExisting, suppressEvent); + } +}, deselect:function(records, suppressEvent) { + this.doDeselect(records, suppressEvent); +}, doSelect:function(records, keepExisting, suppressEvent) { + var me = this, record; + if (me.locked || records == null) { + return; + } + if (typeof records === 'number') { + record = me.store.getAt(records); + if (!record) { + return; + } + records = [record]; + } + if (me.selectionMode === 'SINGLE') { + if (records.isModel) { + records = [records]; + } + if (records.length) { + me.doSingleSelect(records[0], suppressEvent); + } + } else { + me.doMultiSelect(records, keepExisting, suppressEvent); + } +}, doMultiSelect:function(records, keepExisting, suppressEvent) { + var me = this, selected = me.selected, change = false, result, i, len, record, commit; + if (me.locked) { + return; + } + records = !Ext.isArray(records) ? [records] : records; + len = records.length; + if (!keepExisting && selected.getCount() > 0) { + result = me.deselectDuringSelect(records, suppressEvent); + if (me.destroyed) { + return; + } + if (result[0]) { + me.maybeFireSelectionChange(result[1] > 0 && !suppressEvent); + return; + } else { + change = result[1] > 0; + } + } + commit = function() { + if (!selected.getCount()) { + me.selectionStart = record; + } + selected.add(record); + change = true; + }; + for (i = 0; i < len; i++) { + record = records[i]; + if (me.isSelected(record)) { + continue; + } + me.onSelectChange(record, true, suppressEvent, commit); + if (me.destroyed) { + return; + } + } + me.lastSelected = record; + me.maybeFireSelectionChange(change && !suppressEvent); +}, deselectDuringSelect:function(toSelect, suppressEvent) { + var me = this, selected = me.selected.getRange(), len = selected.length, changed = 0, failed = false, item, i; + me.suspendChanges(); + me.deselectingDuringSelect = true; + for (i = 0; i < len; ++i) { + item = selected[i]; + if (!Ext.Array.contains(toSelect, item)) { + if (me.doDeselect(item, suppressEvent)) { + ++changed; + } else { + failed = true; + } + } + if (me.destroyed) { + failed = true; + changed = 0; + break; + } + } + me.deselectingDuringSelect = false; + me.resumeChanges(); + return [failed, changed]; +}, doDeselect:function(records, suppressEvent) { + var me = this, selected = me.selected, i = 0, len, record, attempted = 0, accepted = 0, commit; + if (me.locked || !me.store) { + return false; + } + if (typeof records === 'number') { + record = me.store.getAt(records); + if (!record) { + return false; + } + records = [record]; + } else { + if (!Ext.isArray(records)) { + records = [records]; + } + } + commit = function() { + ++accepted; + selected.remove(record); + if (record === me.selectionStart) { + me.selectionStart = null; + } + }; + len = records.length; + me.suspendChanges(); + for (; i < len; i++) { + record = records[i]; + if (me.isSelected(record)) { + if (me.lastSelected === record) { + me.lastSelected = selected.last(); + } + ++attempted; + me.onSelectChange(record, false, suppressEvent, commit); + if (me.destroyed) { + return false; + } + } + } + me.resumeChanges(); + me.maybeFireSelectionChange(accepted > 0 && !suppressEvent); + return accepted === attempted; +}, doSingleSelect:function(record, suppressEvent) { + var me = this, changed = false, selected = me.selected, commit; + if (me.locked) { + return; + } + if (me.isSelected(record)) { + return; + } + commit = function() { + if (selected.getCount()) { + me.suspendChanges(); + var result = me.deselectDuringSelect([record], suppressEvent); + if (me.destroyed) { + return; + } + me.resumeChanges(); + if (result[0]) { + return false; + } + } + me.lastSelected = record; + if (!selected.getCount()) { + me.selectionStart = record; + } + selected.add(record); + changed = true; + }; + me.onSelectChange(record, true, suppressEvent, commit); + if (changed && !me.destroyed) { + me.maybeFireSelectionChange(!suppressEvent); + } +}, maybeFireSelectionChange:function(fireEvent) { + var me = this; + if (fireEvent && !me.suspendChange) { + me.fireEvent('selectionchange', me, me.getSelection()); + } +}, getLastSelected:function() { + return this.lastSelected; +}, getSelection:function() { + return this.selected.getRange(); +}, getSelectionMode:function() { + return this.selectionMode; +}, setSelectionMode:function(selMode) { + selMode = selMode ? selMode.toUpperCase() : 'SINGLE'; + this.selectionMode = this.modes[selMode] ? selMode : 'SINGLE'; +}, isLocked:function() { + return this.locked; +}, setLocked:function(locked) { + this.locked = !!locked; +}, isRangeSelected:function(startRow, endRow) { + var me = this, store = me.store, i, result; + result = me.normalizeRowRange(startRow, endRow); + startRow = result[0]; + endRow = result[1]; + for (i = startRow; i <= endRow; i++) { + if (!me.isSelected(store.getAt(i))) { + return false; + } + } + return true; +}, isSelected:function(record) { + record = Ext.isNumber(record) ? this.store.getAt(record) : record; + return this.selected.contains(record); +}, hasSelection:function() { + var selected = this.getSelected(); + return !!(selected && selected.getCount()); +}, refresh:function() { + var me = this, store = me.store, toBeSelected = [], toBeReAdded = [], oldSelections = me.getSelection(), len = oldSelections.length, selected = me.getSelected(), change, d, storeData, selection, rec, i; + if (!store || !(selected.isCollection || selected.isRows) || !selected.getCount()) { + return; + } + storeData = store.getData(); + if (storeData.getSource) { + d = storeData.getSource(); + if (d) { + storeData = d; + } + } + me.refreshing = true; + selected.beginUpdate(); + me.suspendChanges(); + for (i = 0; i < len; i++) { + selection = oldSelections[i]; + rec = storeData.get(selection.getId()); + if (rec) { + toBeSelected.push(rec); + } else { + if (!me.pruneRemoved) { + toBeReAdded.push(selection); + } + } + if (me.mode === 'SINGLE' && toBeReAdded.length) { + break; + } + } + if (selected.getCount() !== toBeSelected.length + toBeReAdded.length) { + change = true; + } + me.clearSelections(); + if (toBeSelected.length) { + me.doSelect(toBeSelected, false, true); + } + if (toBeReAdded.length) { + selected.add(toBeReAdded); + if (!me.lastSelected) { + me.lastSelected = toBeReAdded[toBeReAdded.length - 1]; + } + } + me.resumeChanges(); + if (change) { + selected.endUpdate(); + } else { + selected.updating--; + } + me.refreshing = false; + me.maybeFireSelectionChange(change); +}, clearSelections:function() { + var selected = this.getSelected(); + if (selected) { + selected.clear(); + } + this.lastSelected = null; +}, onStoreAdd:Ext.emptyFn, onStoreClear:function() { + if (!this.store.isLoading() && this.hasSelection()) { + this.clearSelections(); + this.maybeFireSelectionChange(true); + } +}, onStoreRemove:function(store, records, index, isMove) { + var me = this, toDeselect = records, i, len, rec, moveMap; + if (me.selectionStart && Ext.Array.contains(records, me.selectionStart)) { + me.selectionStart = null; + } + if (isMove || me.locked || !me.pruneRemoved) { + return; + } + moveMap = store.isMoving(null, true); + if (moveMap) { + toDeselect = null; + for (i = 0, len = records.length; i < len; ++i) { + rec = records[i]; + if (!moveMap[rec.id]) { + (toDeselect || (toDeselect = [])).push(rec); + } + } + } + if (toDeselect) { + me.deselect(toDeselect); + } +}, onPageRemove:function(pageMap, pageNumber, records) { + this.onStoreRemove(this.store, records); +}, onPageAdd:function(pageMap, pageNumber, records) { + var len = records.length, i, record; + for (i = 0; i < len; i++) { + record = records[i]; + if (this.selected.get(record.id)) { + this.selected.replace(record); + } + } +}, getCount:function() { + return this.selected.getCount(); +}, onUpdate:Ext.emptyFn, destroy:function() { + var me = this; + me.clearSelections(); + me.bindStore(null); + me.selected = Ext.destroy(me.selected); + me.callParent(); +}, onStoreUpdate:Ext.emptyFn, onIdChanged:function(store, rec, oldId, newId) { + this.selected.updateKey(rec, oldId); +}, onStoreRefresh:function() { + this.updateSelectedInstances(this.selected); +}, updateSelectedInstances:function(selected) { + var me = this, store = me.getStore(), lastSelected = me.lastSelected, removeCount = 0, prune = me.pruneRemovedOnRefresh(), items, length, i, selectedRec, rec, lastSelectedChanged; + if (store.isBufferedStore) { + return; + } + items = selected.getRange(); + length = items.length; + if (lastSelected) { + me.lastSelected = store.getById(lastSelected.id); + lastSelectedChanged = me.lastSelected !== lastSelected; + } + me.refreshing = true; + for (i = 0; i < length; ++i) { + selectedRec = items[i]; + rec = store.getById(selectedRec.id); + if (rec) { + if (rec !== selectedRec) { + selected.replace(rec); + } + } else { + if (prune) { + selected.remove(selectedRec); + ++removeCount; + } + } + } + me.refreshing = false; + me.maybeFireSelectionChange(removeCount > 0); + if (lastSelectedChanged) { + me.fireEvent('lastselectedchanged', me, me.getSelection(), me.lastSelected); + } +}, pruneRemovedOnRefresh:function() { + return this.pruneRemoved; +}, onStoreLoad:Ext.emptyFn, onSelectChange:function(record, isSelected, suppressEvent, commitFn) { + var me = this, eventName = isSelected ? 'select' : 'deselect'; + if ((suppressEvent || me.fireEvent('before' + eventName, me, record)) !== false && commitFn() !== false) { + if (!suppressEvent) { + me.fireEvent(eventName, me, record); + } + } +}, onEditorKey:Ext.emptyFn, beforeViewRender:function(view) { + Ext.Array.include(this.views || (this.views = []), view); +}, onHeaderClick:Ext.emptyFn, resolveListenerScope:function(defaultScope) { + var view = this.view, scope; + if (view) { + scope = view.resolveSatelliteListenerScope(this, defaultScope); + } + return scope || this.callParent([defaultScope]); +}, bindComponent:Ext.emptyFn, privates:{onBeforeNavigate:Ext.privateFn, selectWithEventMulti:function(record, e, isSelected) { + var me = this, shift = e.shiftKey, ctrl = e.ctrlKey, start = shift ? me.getSelectionStart() : null, selected = me.getSelection(), len = selected.length, toDeselect, i, item; + if (shift && start) { + me.selectRange(start, record, ctrl); + } else { + if (ctrl && isSelected) { + if (me.allowDeselect) { + me.doDeselect(record, false); + } + } else { + if (ctrl) { + me.doSelect(record, true, false); + } else { + if (isSelected && !shift && !ctrl && len > 1) { + if (me.allowDeselect) { + toDeselect = []; + for (i = 0; i < len; ++i) { + item = selected[i]; + if (item !== record) { + toDeselect.push(item); + } + } + me.doDeselect(toDeselect); + } + } else { + if (!isSelected) { + me.doSelect(record, false); + } + } + } + } + } +}, selectWithEventSimple:function(record, e, isSelected) { + if (isSelected) { + this.doDeselect(record); + } else { + this.doSelect(record, true); + } +}, selectWithEventSingle:function(record, e, isSelected) { + var me = this, allowDeselect = me.allowDeselect; + if (allowDeselect && !e.ctrlKey) { + allowDeselect = me.toggleOnClick; + } + if (allowDeselect && isSelected) { + me.doDeselect(record); + } else { + me.doSelect(record, false); + } +}}}); +Ext.define('Ext.selection.DataViewModel', {extend:Ext.selection.Model, alias:'selection.dataviewmodel', deselectOnContainerClick:true, bindComponent:function(view) { + var me = this, viewListeners; + if (me.view !== view) { + if (me.view) { + me.navigationModel = null; + Ext.destroy(me.viewListeners, me.navigationListeners); + } + me.view = view; + if (view) { + viewListeners = me.getViewListeners(); + viewListeners.scope = me; + viewListeners.destroyable = true; + me.navigationModel = view.getNavigationModel(); + me.viewListeners = view.on(viewListeners); + me.navigationListeners = me.navigationModel.on({navigate:me.onNavigate, scope:me, destroyable:true}); + } + } +}, getViewListeners:function() { + var me = this, eventListeners = {}; + eventListeners[me.view.triggerCtEvent] = me.onContainerClick; + return eventListeners; +}, onUpdate:function(record) { + var view = this.view; + if (view && this.isSelected(record)) { + view.onItemSelect(record); + } +}, onContainerClick:function() { + if (this.deselectOnContainerClick) { + this.deselectAll(); + } +}, onSelectChange:function(record, isSelected, suppressEvent, commitFn) { + var me = this, view = me.view, eventName = isSelected ? 'select' : 'deselect', recordIndex = me.store.indexOf(record); + if ((suppressEvent || me.fireEvent('before' + eventName, me, record, recordIndex)) !== false && commitFn() !== false) { + if (view) { + if (isSelected) { + view.onItemSelect(record); + } else { + view.onItemDeselect(record); + } + } + if (!suppressEvent) { + me.fireEvent(eventName, me, record, recordIndex); + } + } +}, destroy:function() { + this.bindComponent(); + Ext.destroy(this.keyNav); + this.callParent(); +}}); +Ext.define('Ext.view.NavigationModel', {mixins:[Ext.util.Observable, Ext.mixin.Factoryable, Ext.util.StoreHolder], alias:'view.navigation.default', config:{store:null}, focusCls:Ext.baseCSSPrefix + 'view-item-focused', constructor:function() { + this.mixins.observable.constructor.call(this); +}, bindComponent:function(view) { + if (this.view !== view) { + this.view = view; + this.bindView(view); + } +}, bindView:function(view) { + var me = this, dataSource = view.dataSource, listeners; + me.initKeyNav(view); + if (!dataSource.isEmptyStore) { + me.setStore(dataSource); + } + listeners = me.getViewListeners(); + listeners.destroyable = true; + me.viewListeners = me.viewListeners || []; + me.viewListeners.push(view.on(listeners)); +}, updateStore:function(store) { + this.mixins.storeholder.bindStore.apply(this, [store]); +}, getViewListeners:function() { + var me = this; + return {containermousedown:me.onContainerMouseDown, itemmousedown:me.onItemMouseDown, itemclick:me.onItemClick, itemcontextmenu:me.onItemMouseDown, scope:me}; +}, initKeyNav:function(view) { + var me = this; + me.keyNav = new Ext.util.KeyNav({target:view, ignoreInputFields:true, eventName:'itemkeydown', defaultEventAction:'stopEvent', processEvent:me.processViewEvent, up:me.onKeyUp, down:me.onKeyDown, right:me.onKeyRight, left:me.onKeyLeft, pageDown:me.onKeyPageDown, pageUp:me.onKeyPageUp, home:me.onKeyHome, end:me.onKeyEnd, space:me.onKeySpace, enter:me.onKeyEnter, A:{ctrl:true, handler:me.onSelectAllKeyPress}, scope:me}); +}, processViewEvent:function(view, record, node, index, event) { + return event; +}, addKeyBindings:function(binding) { + this.keyNav.addBindings(binding); +}, enable:function() { + this.keyNav.enable(); + this.disabled = false; +}, disable:function() { + this.keyNav.disable(); + this.disabled = true; +}, onContainerMouseDown:function(view, mousedownEvent) { + if (mousedownEvent.pointerType === 'mouse' && Ext.getScrollbarSize().width) { + if (!view.el.getClientRegion().contains(mousedownEvent.getPoint())) { + mousedownEvent.preventDefault(); + } + } +}, onItemMouseDown:function(view, record, item, index, mousedownEvent) { + if (mousedownEvent.pointerType !== 'touch') { + this.setPosition(index); + } +}, onItemClick:function(view, record, item, index, clickEvent) { + if (this.record === record) { + this.fireNavigateEvent(clickEvent); + } else { + this.setPosition(index, clickEvent); + } +}, setPosition:function(recordIndex, keyEvent, suppressEvent, preventNavigation) { + var me = this, view = me.view, selModel = view.getSelectionModel(), dataSource = view.dataSource, newRecord, newRecordIndex; + if (recordIndex == null || !view.all.getCount()) { + me.record = me.recordIndex = null; + } else { + if (typeof recordIndex === 'number') { + newRecordIndex = Math.max(Math.min(recordIndex, dataSource.getCount() - 1), 0); + newRecord = dataSource.getAt(recordIndex); + } else { + if (recordIndex.isEntity) { + newRecord = dataSource.getById(recordIndex.id); + newRecordIndex = dataSource.indexOf(newRecord); + if (newRecordIndex === -1) { + newRecord = dataSource.getAt(0); + newRecordIndex = 0; + } + } else { + if (recordIndex.tagName) { + newRecord = view.getRecord(recordIndex); + newRecordIndex = dataSource.indexOf(newRecord); + } else { + newRecord = newRecordIndex = null; + } + } + } + } + if (newRecord === me.record) { + me.recordIndex = newRecordIndex; + return me.focusPosition(newRecordIndex); + } + if (me.item) { + me.item.removeCls(me.focusCls); + } + me.previousRecordIndex = me.recordIndex; + me.previousRecord = me.record; + me.previousItem = me.item; + me.recordIndex = newRecordIndex; + me.record = newRecord; + preventNavigation = preventNavigation || me.record === me.lastFocused; + if (newRecord) { + me.focusPosition(me.recordIndex); + } else { + me.item = null; + } + if (!suppressEvent) { + selModel.fireEvent('focuschange', selModel, me.previousRecord, me.record); + } + if (!preventNavigation && keyEvent) { + me.fireNavigateEvent(keyEvent); + } +}, focusPosition:function(recordIndex) { + var me = this; + if (recordIndex != null && recordIndex !== -1) { + if (recordIndex.isEntity) { + recordIndex = me.view.dataSource.indexOf(recordIndex); + } + me.item = me.view.all.item(recordIndex); + if (me.item) { + me.lastFocused = me.record; + me.lastFocusedIndex = me.recordIndex; + me.focusItem(me.item); + } else { + me.record = null; + } + } else { + me.item = null; + } +}, focusItem:function(item) { + item.addCls(this.focusCls); + item.focus(); +}, getPosition:function() { + return this.record ? this.recordIndex : null; +}, getRecordIndex:function() { + return this.recordIndex; +}, getItem:function() { + return this.item; +}, getRecord:function() { + return this.record; +}, getLastFocused:function() { + if (this.view.dataSource.indexOf(this.lastFocused) === -1) { + return null; + } + return this.lastFocused; +}, onKeyUp:function(keyEvent) { + var newPosition = this.recordIndex - 1; + if (newPosition < 0) { + newPosition = this.view.all.getCount() - 1; + } + this.setPosition(newPosition, keyEvent); +}, onKeyDown:function(keyEvent) { + var newPosition = this.recordIndex + 1; + if (newPosition > this.view.all.getCount() - 1) { + newPosition = 0; + } + this.setPosition(newPosition, keyEvent); +}, onKeyRight:function(keyEvent) { + var newPosition = this.recordIndex + 1; + if (newPosition > this.view.all.getCount() - 1) { + newPosition = 0; + } + this.setPosition(newPosition, keyEvent); +}, onKeyLeft:function(keyEvent) { + var newPosition = this.recordIndex - 1; + if (newPosition < 0) { + newPosition = this.view.all.getCount() - 1; + } + this.setPosition(newPosition, keyEvent); +}, onKeyPageDown:Ext.emptyFn, onKeyPageUp:Ext.emptyFn, onKeyHome:function(keyEvent) { + this.setPosition(0, keyEvent); +}, onKeyEnd:function(keyEvent) { + this.setPosition(this.view.all.getCount() - 1, keyEvent); +}, onKeySpace:function(keyEvent) { + this.fireNavigateEvent(keyEvent); +}, onKeyEnter:function(keyEvent) { + keyEvent.stopEvent(); + keyEvent.view.fireEvent('itemclick', keyEvent.view, keyEvent.record, keyEvent.item, keyEvent.recordIndex, keyEvent); +}, onSelectAllKeyPress:function(keyEvent) { + this.fireNavigateEvent(keyEvent); +}, fireNavigateEvent:function(keyEvent) { + var me = this; + me.fireEvent('navigate', {navigationModel:me, keyEvent:keyEvent, previousRecordIndex:me.previousRecordIndex, previousRecord:me.previousRecord, previousItem:me.previousItem, recordIndex:me.recordIndex, record:me.record, item:me.item}); +}, destroy:function() { + var me = this; + me.setStore(null); + Ext.destroy(me.viewListeners, me.keyNav); + me.keyNav = me.viewListeners = me.dataSource = me.lastFocused = null; + me.callParent(); +}}); +Ext.define('Ext.view.AbstractView', {extend:Ext.Component, mixins:[Ext.util.StoreHolder], inheritableStatics:{getRecord:function(node) { + return this.getBoundView(node).getRecord(node); +}, getBoundView:function(node) { + return Ext.getCmp(node.getAttribute('data-boundView')); +}}, defaultBindProperty:'store', renderBuffer:document.createElement('div'), statics:{updateDelay:200, queueRecordChange:function(view, store, record, operation, modifiedFieldNames) { + var me = this, changeQueue = me.changeQueue || (me.changeQueue = {}), recId = record.internalId, recChange, updated, len, i, fieldName, value, checkForReversion; + recChange = changeQueue[recId] || (changeQueue[recId] = {operation:operation, record:record, data:{}, views:[]}); + updated = recChange.data; + Ext.Array.include(recChange.views, view); + if (modifiedFieldNames && (len = modifiedFieldNames.length)) { + for (i = 0; i < len; i++) { + fieldName = modifiedFieldNames[i]; + value = record.data[fieldName]; + if (updated.hasOwnProperty(fieldName)) { + if (record.isEqual(updated[fieldName], value)) { + delete updated[fieldName]; + checkForReversion = true; + } + } else { + updated[fieldName] = value; + } + } + if (checkForReversion && !Ext.Object.getKeys(updated).length) { + delete changeQueue[recId]; + } + } else { + Ext.apply(updated, record.data); + } + if (!me.flushQueueTask) { + me.flushQueueTask = Ext.util.TaskManager.newTask({run:Ext.global.requestAnimationFrame ? Ext.Function.createAnimationFrame(me.onFlushTick, me) : Ext.Function.bind(me.onFlushTick, me), interval:Ext.view.AbstractView.updateDelay, repeat:1}); + } + me.flushQueueTask.start(); +}, onFlushTick:function() { + Ext.AnimationQueue.start(this.flushChangeQueue, this); +}, flushChangeQueue:function() { + var me = this, dirtyViews, len, changeQueue, recChange, recId, i, view; + if (Ext.isScrolling) { + me.flushQueueTask.start(); + return; + } + changeQueue = me.changeQueue; + this.changeQueue = {}; + for (recId in changeQueue) { + recChange = changeQueue[recId]; + dirtyViews = recChange.views; + len = dirtyViews.length; + for (i = 0; i < len; i++) { + view = dirtyViews[i]; + if (!view.destroyed) { + view.handleUpdate(view.dataSource, recChange.record, recChange.operation, Ext.Object.getKeys(recChange.data)); + } + } + } + Ext.AnimationQueue.stop(me.flushChangeQueue, me); +}}, config:{selection:null, store:'ext-empty-store', navigationModel:{type:'default'}, selectionModel:{type:'dataviewmodel'}}, publishes:['selection'], twoWayBindable:['selection'], throttledUpdate:false, deferInitialRefresh:false, itemCls:Ext.baseCSSPrefix + 'dataview-item', loadingText:'Loading...', loadMask:true, loadingUseMsg:true, selectedItemCls:Ext.baseCSSPrefix + 'item-selected', emptyText:'', deferEmptyText:true, trackOver:false, blockRefresh:false, preserveScrollOnRefresh:false, preserveScrollOnReload:false, +ariaRole:'listbox', itemAriaRole:'option', last:false, focusable:true, tabIndex:0, triggerEvent:'itemclick', triggerCtEvent:'containerclick', refreshNeeded:true, updateSuspendCounter:0, addCmpEvents:Ext.emptyFn, constructor:function(config) { + if (config && config.selModel) { + config.selectionModel = config.selModel; + } + this.callParent([config]); +}, initComponent:function() { + var me = this, isDef = Ext.isDefined, itemTpl = me.itemTpl, memberFn = {}, store; + if (itemTpl) { + if (Ext.isArray(itemTpl)) { + if (typeof itemTpl[itemTpl.length - 1] !== 'string') { + itemTpl = itemTpl.slice(0); + memberFn = itemTpl.pop(); + } + itemTpl = itemTpl.join(''); + } else { + if (Ext.isObject(itemTpl)) { + memberFn = Ext.apply(memberFn, itemTpl.initialConfig); + itemTpl = itemTpl.html; + } + } + if (!me.itemSelector) { + me.itemSelector = '.' + me.itemCls; + } + itemTpl = Ext.String.format('\x3ctpl for\x3d"."\x3e\x3cdiv class\x3d"{0}" role\x3d"{2}"\x3e{1}\x3c/div\x3e\x3c/tpl\x3e', me.itemCls, itemTpl, me.itemAriaRole); + me.tpl = new Ext.XTemplate(itemTpl, memberFn); + } + if (!isDef(me.tpl) || !isDef(me.itemSelector)) { + Ext.raise({sourceClass:'Ext.view.View', tpl:me.tpl, itemSelector:me.itemSelector, msg:'DataView requires both tpl and itemSelector configurations to be defined.'}); + } + me.callParent(); + me.tpl = me.getTpl('tpl'); + if (isDef(me.overCls) || isDef(me.overClass)) { + if (Ext.isDefined(Ext.global.console)) { + Ext.global.console.warn('Ext.view.View: Using the deprecated overCls or overClass configuration. Use overItemCls instead.'); + } + me.overItemCls = me.overCls || me.overClass; + delete me.overCls; + delete me.overClass; + } + if (isDef(me.selectedCls) || isDef(me.selectedClass)) { + if (Ext.isDefined(Ext.global.console)) { + Ext.global.console.warn('Ext.view.View: Using the deprecated selectedCls or selectedClass configuration. Use selectedItemCls instead.'); + } + me.selectedItemCls = me.selectedCls || me.selectedClass; + delete me.selectedCls; + delete me.selectedClass; + } + if (me.overItemCls) { + me.trackOver = true; + } + me.addCmpEvents(); + store = me.store = Ext.data.StoreManager.lookup(me.store || 'ext-empty-store'); + if (!me.dataSource) { + me.dataSource = store; + } + me.bindStore(store, true); + me.getNavigationModel().bindComponent(this); + if (!me.all) { + me.all = new Ext.CompositeElementLite; + } + me.scrollState = {top:0, left:0}; + me.savedTabIndexAttribute = 'data-savedtabindex-' + me.id; +}, getElConfig:function() { + var result = this.mixins.renderable.getElConfig.call(this); + if (this.focusable) { + result.tabIndex = 0; + } + return result; +}, onRender:function() { + var mask = this.loadMask; + this.callParent(arguments); + if (mask) { + this.createMask(mask); + } +}, beforeLayout:function() { + var me = this; + me.callParent(arguments); + if (me.refreshNeeded && !me.pendingRefresh) { + if (me.refreshCounter) { + me.refresh(); + } else { + me.doFirstRefresh(me.dataSource); + } + } +}, onMaskBeforeShow:function() { + var me = this, loadingHeight = me.loadingHeight; + if (loadingHeight && loadingHeight > me.getHeight()) { + me.hasLoadingHeight = true; + me.oldMinHeight = me.minHeight; + me.minHeight = loadingHeight; + me.updateLayout(); + } +}, onMaskHide:function() { + var me = this; + if (!me.destroying && me.hasLoadingHeight) { + me.minHeight = me.oldMinHeight; + me.updateLayout(); + delete me.hasLoadingHeight; + } +}, beforeRender:function() { + this.callParent(arguments); + this.getSelectionModel().beforeViewRender(this); +}, afterRender:function() { + this.callParent(arguments); + if (this.focusable) { + this.focusEl = this.el; + } +}, getRefItems:function() { + var mask = this.loadMask, result = []; + if (mask && mask.isComponent) { + result.push(mask); + } + return result; +}, getSelection:function() { + return this.getSelectionModel().getSelection(); +}, updateSelection:function(selection) { + var me = this, sm; + if (!me.ignoreNextSelection) { + me.ignoreNextSelection = true; + sm = me.getSelectionModel(); + if (selection) { + sm.select(selection); + } else { + sm.deselectAll(); + } + me.ignoreNextSelection = false; + } +}, updateBindSelection:function(selModel, selection) { + var me = this, selected = null; + if (!me.ignoreNextSelection) { + me.ignoreNextSelection = true; + if (selection.length) { + selected = selModel.getLastSelected(); + me.hasHadSelection = true; + } + if (me.hasHadSelection) { + me.setSelection(selected); + } + me.ignoreNextSelection = false; + } +}, applySelectionModel:function(selModel, oldSelModel) { + var me = this, grid = me.grid, mode, ariaAttr, ariaDom; + if (oldSelModel) { + oldSelModel.un({scope:me, selectionchange:me.updateBindSelection, lastselectedchanged:me.updateBindSelection, select:me.ariaSelect, deselect:me.ariaDeselect}); + Ext.destroy(me.selModelRelayer); + selModel = Ext.Factory.selection(selModel); + } else { + if (selModel && selModel.isSelectionModel) { + selModel.locked = me.disableSelection; + } else { + if (me.simpleSelect) { + mode = 'SIMPLE'; + } else { + if (me.multiSelect) { + mode = 'MULTI'; + } else { + mode = 'SINGLE'; + } + } + if (typeof selModel === 'string') { + selModel = {type:selModel}; + } + selModel = Ext.Factory.selection(Ext.apply({allowDeselect:me.allowDeselect || me.multiSelect, mode:mode, locked:me.disableSelection}, selModel)); + } + } + if (selModel.mode !== 'SINGLE') { + ariaDom = (grid || me).ariaEl.dom; + if (ariaDom) { + ariaDom.setAttribute('aria-multiselectable', true); + } else { + if (!grid) { + ariaAttr = me.ariaRenderAttributes || (me.ariaRenderAttributes = {}); + ariaAttr['aria-multiselectable'] = true; + } + } + } + me.selModelRelayer = me.relayEvents(selModel, ['selectionchange', 'beforeselect', 'beforedeselect', 'select', 'deselect', 'focuschange']); + selModel.on({scope:me, lastselectedchanged:me.updateBindSelection, selectionchange:me.updateBindSelection, select:me.ariaSelect, deselect:me.ariaDeselect}); + return selModel; +}, updateSelectionModel:function(selectionModel) { + this.selModel = selectionModel; +}, applyNavigationModel:function(navigationModel) { + return Ext.Factory.viewNavigation(navigationModel); +}, onFocusEnter:function(e) { + var me = this, navigationModel = me.getNavigationModel(), focusPosition; + me.toggleChildrenTabbability(false); + if (!me.itemFocused && me.all.getCount()) { + focusPosition = navigationModel.getLastFocused(); + navigationModel.setPosition(focusPosition || 0, e.event, null, !focusPosition); + me.itemFocused = navigationModel.getPosition() != null; + } + if (me.itemFocused) { + this.el.dom.setAttribute('tabIndex', '-1'); + } + me.callParent([e]); +}, onFocusLeave:function(e) { + var me = this; + if (me.itemFocused && !me.refreshing) { + me.getNavigationModel().setPosition(null, e.event, null, true); + me.itemFocused = false; + me.el.dom.setAttribute('tabIndex', 0); + } + me.callParent([e]); +}, ariaSelect:function(selModel, record) { + var node = this.getNode(record); + if (node) { + node.setAttribute('aria-selected', true); + } +}, ariaDeselect:function(selModel, record) { + var node = this.getNode(record); + if (node) { + node.removeAttribute('aria-selected'); + } +}, onRemoved:function(isDestroying) { + this.callParent([isDestroying]); + if (!isDestroying) { + this.onFocusLeave({}); + } +}, refresh:function() { + var me = this, items = me.all, prevItemCount = items.getCount(), refreshCounter = me.refreshCounter, targetEl, dom, records, selModel = me.getSelectionModel(), restoreFocus, scroller = refreshCounter && items.getCount() && me.preserveScrollOnRefresh && me.getScrollable(), scrollPos; + if (!me.rendered || me.destroyed) { + return; + } + if (!me.hasListeners.beforerefresh || me.fireEvent('beforerefresh', me) !== false) { + me.refreshing = true; + restoreFocus = me.saveFocusState(); + targetEl = me.getTargetEl(); + records = me.getViewRange(); + dom = targetEl.dom; + if (scroller) { + scrollPos = scroller.getPosition(); + if (!(scrollPos.x || scrollPos.y)) { + scrollPos = null; + } + } + if (refreshCounter) { + me.clearViewEl(); + me.refreshCounter++; + } else { + me.refreshCounter = 1; + } + me.tpl.append(targetEl, me.collectData(records, items.startIndex || 0)); + if (records.length < 1) { + me.addEmptyText(); + items.clear(); + } else { + me.collectNodes(targetEl.dom); + me.updateIndexes(0); + } + restoreFocus(); + if (me.refreshSelmodelOnRefresh !== false) { + selModel.refresh(); + } + me.refreshNeeded = false; + me.refreshSize(items.getCount() !== prevItemCount); + me.fireEvent('refresh', me, records); + if (scroller) { + scroller.scrollTo(scrollPos); + } + if (!me.viewReady) { + me.viewReady = true; + me.fireEvent('viewready', me); + } + me.refreshing = false; + me.refreshScroll(); + me.cleanupData(); + } +}, addEmptyText:function() { + var me = this, store = me.getStore(); + if (me.emptyText && !store.isLoading() && (!me.deferEmptyText || me.refreshCounter > 1 || store.isLoaded())) { + me.emptyEl = Ext.core.DomHelper.insertHtml('beforeEnd', me.getTargetEl().dom, me.emptyText); + } +}, getViewRange:function() { + return this.dataSource.getRange(); +}, refreshSize:function(forceLayout) { + var me = this, sizeModel = me.getSizeModel(), scroller = me.getScrollable(); + if (sizeModel.height.shrinkWrap || sizeModel.width.shrinkWrap || forceLayout) { + me.updateLayout(); + } else { + if (me.touchScroll && !me.bufferedRenderer) { + if (scroller) { + scroller.refresh(); + } else { + me.on({boxready:me.refreshScroll, scope:me, single:true}); + } + } + } +}, afterFirstLayout:function(width, height) { + var me = this, scroller = me.getScrollable(); + if (scroller) { + scroller.on({scroll:me.onViewScroll, scrollend:me.onViewScrollEnd, scope:me, onFrame:!!Ext.global.requestAnimationFrame}); + } + me.callParent([width, height]); +}, clearViewEl:function() { + var me = this, targetEl = me.getTargetEl(), nodeContainerIsTarget = me.getNodeContainer() === targetEl; + me.clearEmptyEl(); + me.all.clear(!nodeContainerIsTarget); + if (nodeContainerIsTarget) { + targetEl.dom.innerHTML = ''; + } +}, clearEmptyEl:function() { + var emptyEl = this.emptyEl; + if (emptyEl) { + Ext.removeNode(emptyEl); + } + this.emptyEl = null; +}, onViewScroll:function(scroller, x, y) { + this.fireEvent('scroll', this, x, y); +}, onViewScrollEnd:function(scroller, x, y) { + this.fireEvent('scrollend', this, x, y); +}, saveScrollState:function() { + var me = this, state = me.scrollState; + if (me.rendered) { + state.left = me.getScrollX(); + state.top = me.getScrollY(); + } +}, restoreScrollState:function() { + var me = this, state = me.scrollState; + if (me.rendered) { + me.setScrollX(state.left); + me.setScrollY(state.top); + } +}, prepareData:function(data, index, record) { + var associatedData, attr, hasCopied; + if (record) { + associatedData = record.getAssociatedData(); + for (attr in associatedData) { + if (associatedData.hasOwnProperty(attr)) { + if (!hasCopied) { + data = Ext.Object.chain(data); + hasCopied = true; + } + data[attr] = associatedData[attr]; + } + } + } + return data; +}, collectData:function(records, startIndex) { + var data = [], i = 0, len = records.length, record; + for (; i < len; i++) { + record = records[i]; + data[i] = this.prepareData(record.data, startIndex + i, record); + } + return data; +}, cleanupData:Ext.emptyFn, bufferRender:function(records, index) { + var me = this, div = me.renderBuffer, result = document.createDocumentFragment(), nodes, len, i; + me.tpl.overwrite(div, me.collectData(records, index)); + nodes = Ext.fly(div).query(me.getItemSelector()); + for (i = 0, len = nodes.length; i < len; i++) { + result.appendChild(nodes[i]); + } + return {fragment:result, children:nodes}; +}, nodeContainerSelector:null, getNodeContainer:function() { + var target = this.getTargetEl(), selector = this.nodeContainerSelector; + return selector ? target.down(selector, true) : target; +}, getNodeContainerSelector:function() { + return this.nodeContainerSelector; +}, onUpdate:function(store, record, operation, modifiedFieldNames, details) { + var me = this, isFiltered = details && details.filtered; + if (!isFiltered && me.getNode(record)) { + if (me.throttledUpdate) { + me.statics().queueRecordChange(me, store, record, operation, modifiedFieldNames); + } else { + me.handleUpdate.apply(me, arguments); + } + } +}, handleUpdate:function(store, record) { + var me = this, index, node, selModel = me.getSelectionModel(); + if (me.viewReady) { + index = me.dataSource.indexOf(record); + if (index > -1) { + if (me.getNode(record)) { + node = me.bufferRender([record], index).children[0]; + me.all.replaceElement(index, node, true); + me.updateIndexes(index, index); + selModel.onUpdate(record); + me.refreshSizePending = true; + if (selModel.isSelected(record)) { + me.onItemSelect(record); + } + if (me.hasListeners.itemupdate) { + me.fireEvent('itemupdate', record, index, node); + } + return node; + } + } + } +}, onReplace:function(store, startIndex, oldRecords, newRecords) { + var me = this, all = me.all, selModel = me.getSelectionModel(), origStart = startIndex, result, item, fragment, children, oldItems, endIndex, restoreFocus; + if (me.rendered) { + result = me.bufferRender(newRecords, startIndex, true); + fragment = result.fragment; + children = result.children; + item = all.item(startIndex); + if (item) { + all.item(startIndex).insertSibling(fragment, 'before', true); + } else { + me.appendNodes(fragment); + } + all.insert(startIndex, children); + if (oldRecords.length) { + restoreFocus = me.saveFocusState(); + } + startIndex += newRecords.length; + endIndex = startIndex + oldRecords.length - 1; + oldItems = all.removeRange(startIndex, endIndex, true); + if (me.refreshSelmodelOnRefresh !== false) { + selModel.refresh(); + } + me.updateIndexes(startIndex); + if (me.hasListeners.itemremove) { + me.fireEvent('itemremove', oldRecords, origStart, oldItems, me); + } + if (me.hasListeners.itemadd) { + me.fireEvent('itemadd', newRecords, origStart, children); + } + restoreFocus(); + me.refreshSize(); + } +}, onAdd:function(store, records, index) { + var me = this, nodes, selModel = me.getSelectionModel(); + if (me.rendered) { + if (me.all.getCount() === 0) { + me.refresh(); + nodes = me.all.slice(); + } else { + nodes = me.doAdd(records, index); + if (me.refreshSelmodelOnRefresh !== false) { + selModel.refresh(); + } + me.updateIndexes(index); + me.refreshSizePending = true; + } + if (me.hasListeners.itemadd) { + me.fireEvent('itemadd', records, index, nodes); + } + } +}, appendNodes:function(nodes) { + var all = this.all, count = all.getCount(); + if (this.nodeContainerSelector) { + this.getNodeContainer().appendChild(nodes); + } else { + all.item(count - 1).insertSibling(nodes, 'after'); + } +}, doAdd:function(records, index) { + var me = this, result = me.bufferRender(records, index, true), fragment = result.fragment, children = result.children, all = me.all, count = all.getCount(), firstRowIndex = all.startIndex || 0, lastRowIndex = all.endIndex || count - 1; + if (count === 0 || index > lastRowIndex) { + me.appendNodes(fragment); + } else { + if (index <= firstRowIndex) { + all.item(firstRowIndex).insertSibling(fragment, 'before', true); + } else { + all.item(index).insertSibling(children, 'before', true); + } + } + all.insert(index, children); + return children; +}, onRemove:function(store, records, index) { + var me = this, rows = me.all, fireItemRemove = me.hasListeners.itemremove, currIdx, i, record, nodes, node, restoreFocus; + if (rows.getCount()) { + if (me.dataSource.getCount() === 0) { + if (fireItemRemove) { + me.fireEvent('itemremove', records, index, me.getNodes(index, index + records.length - 1)); + } + me.refresh(); + } else { + restoreFocus = me.saveFocusState(); + if (fireItemRemove) { + nodes = []; + } + for (i = records.length - 1; i >= 0; --i) { + record = records[i]; + currIdx = index + i; + if (nodes) { + node = rows.item(currIdx); + nodes[i] = node ? node.dom : undefined; + } + if (rows.item(currIdx)) { + me.doRemove(record, currIdx); + } + } + if (fireItemRemove) { + me.fireEvent('itemremove', records, index, nodes, me); + } + restoreFocus(); + me.updateIndexes(index); + } + me.refreshSizePending = true; + } +}, doRemove:function(record, index) { + this.all.removeElement(index, true); +}, saveFocusState:function() { + var me = this, store = me.dataSource || me.store, navModel = me.getNavigationModel(), lastFocusedIndex = navModel.recordIndex, lastFocusedRec = navModel.record; + if (me.el.contains(Ext.Element.getActiveElement())) { + me.el.dom.focus(); + return function() { + if (store.getCount()) { + lastFocusedIndex = Math.min(lastFocusedIndex, me.all.getCount() - 1); + navModel.setPosition(store.contains(lastFocusedRec) ? lastFocusedRec : lastFocusedIndex, null, null, true); + } + }; + } + return Ext.emptyFn; +}, refreshNode:function(record) { + if (Ext.isNumber(record)) { + record = this.store.getAt(record); + } + this.onUpdate(this.dataSource, record); +}, updateIndexes:function(startIndex, endIndex) { + var nodes = this.all.elements, node, records = this.getViewRange(), i, myId = this.id; + startIndex = startIndex || 0; + endIndex = endIndex || (endIndex === 0 ? 0 : nodes.length - 1); + for (i = startIndex; i <= endIndex; i++) { + node = nodes[i]; + node.setAttribute('data-recordIndex', i); + node.setAttribute('data-recordId', records[i].internalId); + node.setAttribute('data-boundView', myId); + } +}, bindStore:function(store, initial) { + var me = this, selModel = me.getSelectionModel(), navModel = me.getNavigationModel(); + selModel.bindStore(store); + selModel.bindComponent(store ? me : null); + me.mixins.storeholder.bindStore.apply(me, arguments); + navModel.setStore(store); + if (store && me.componentLayoutCounter) { + me.doFirstRefresh(store, !initial); + } +}, doFirstRefresh:function(store, noDefer) { + var me = this; + if (me.deferInitialRefresh && !noDefer) { + Ext.defer(me.doFirstRefresh, 1, me, [store, true]); + } else { + if (store && !store.isLoading()) { + me.refresh(); + } + } +}, onUnbindStore:function(store) { + this.setMaskBind(null); + if (this.dataSource === store) { + this.dataSource = null; + } +}, onBindStore:function(store, oldStore) { + var me = this; + if (me.store.isBufferedStore) { + me.store.preserveScrollOnReload = me.preserveScrollOnReload; + } + if (oldStore && oldStore.isBufferedStore) { + delete oldStore.preserveScrollOnReload; + } + me.setMaskBind(store); + if (!me.dataSource) { + me.dataSource = store; + } +}, setMaskBind:function(store) { + var mask = this.loadMask; + if (this.rendered && mask && store && !mask.bindStore) { + mask = this.createMask(); + } + if (mask && mask.bindStore) { + mask.bindStore(store); + } +}, getStoreListeners:function() { + var me = this; + return {refresh:me.onDataRefresh, replace:me.onReplace, add:me.onAdd, remove:me.onRemove, update:me.onUpdate, clear:me.onDataRefresh, beginupdate:me.onBeginUpdate, endupdate:me.onEndUpdate}; +}, onBeginUpdate:function() { + ++this.updateSuspendCounter; + Ext.suspendLayouts(); +}, onEndUpdate:function() { + var me = this; + if (me.updateSuspendCounter) { + --me.updateSuspendCounter; + } + Ext.resumeLayouts(true); + if (me.refreshSizePending) { + me.refreshSize(true); + me.refreshSizePending = false; + } +}, onDataRefresh:function(store) { + var me = this, preserveScrollOnRefresh = me.preserveScrollOnRefresh; + if (store.loadCount > me.lastRefreshLoadCount) { + me.preserveScrollOnRefresh = me.preserveScrollOnReLoad; + } + me.refreshView(); + me.preserveScrollOnRefresh = preserveScrollOnRefresh; + me.lastRefreshLoadCount = store.loadCount; +}, refreshView:function() { + var me = this, blocked = me.blockRefresh || !me.rendered || me.up('[collapsed],[isCollapsingOrExpanding],[hidden]'); + if (blocked) { + me.refreshNeeded = true; + } else { + if (me.bufferedRenderer) { + me.bufferedRenderer.refreshView(); + } else { + me.refresh(); + } + } +}, findItemByChild:function(node) { + return Ext.fly(node).findParent(this.getItemSelector(), this.getTargetEl()); +}, findTargetByEvent:function(e) { + return e.getTarget(this.getItemSelector(), this.getTargetEl()); +}, getSelectedNodes:function() { + var nodes = [], records = this.getSelectionModel().getSelection(), ln = records.length, i = 0; + for (; i < ln; i++) { + nodes.push(this.getNode(records[i])); + } + return nodes; +}, getRecords:function(nodes) { + var records = [], i = 0, len = nodes.length, data = this.dataSource.data; + for (; i < len; i++) { + records[records.length] = data.getByKey(nodes[i].getAttribute('data-recordId')); + } + return records; +}, getRecord:function(node) { + return this.dataSource.getByInternalId(Ext.getDom(node).getAttribute('data-recordId')); +}, isSelected:function(node) { + var r = this.getRecord(node); + return this.getSelectionModel().isSelected(r); +}, select:function(records, keepExisting, suppressEvent) { + this.getSelectionModel().select(records, keepExisting, suppressEvent); +}, deselect:function(records, suppressEvent) { + this.getSelectionModel().deselect(records, suppressEvent); +}, getNode:function(nodeInfo) { + var me = this, out; + if (me.rendered && (nodeInfo || nodeInfo === 0)) { + if (Ext.isString(nodeInfo)) { + out = document.getElementById(nodeInfo); + } else { + if (nodeInfo.isModel) { + out = me.getNodeByRecord(nodeInfo); + } else { + if (Ext.isNumber(nodeInfo)) { + out = me.all.elements[nodeInfo]; + } else { + if (nodeInfo.target && nodeInfo.target.nodeType) { + nodeInfo = nodeInfo.target; + } + out = Ext.fly(nodeInfo).findParent(me.itemSelector, me.getTargetEl()); + } + } + } + } + return out || null; +}, getNodeByRecord:function(record) { + var index = this.store.indexOf(record); + return this.all.elements[index] || null; +}, getNodes:function(start, end) { + var all = this.all; + if (end !== undefined) { + end++; + } + return all.slice(start, end); +}, indexOf:function(node) { + node = this.getNode(node); + if (!node && node !== 0) { + return -1; + } + if (node.getAttribute('data-recordIndex')) { + return Number(node.getAttribute('data-recordIndex')); + } + return this.all.indexOf(node); +}, onDestroy:function() { + var me = this, count = me.updateSuspendCounter; + me.all.clear(); + me.emptyEl = null; + me.callParent(); + me.bindStore(null); + me.store = me.dataSource = me.storeListeners = null; + if (me.selModelRelayer) { + me.selModelRelayer.destroy(); + me.selModelRelayer = null; + } + Ext.destroy(me.navigationModel, me.selectionModel); + me.navigationModel = me.selectionModel = me.selModel = null; + me.loadMask = null; + while (count--) { + Ext.resumeLayouts(true); + } +}, onItemSelect:function(record) { + var node = this.getNode(record); + if (node) { + Ext.fly(node).addCls(this.selectedItemCls); + } +}, onItemDeselect:function(record) { + var node = this.getNode(record); + if (node) { + Ext.fly(node).removeCls(this.selectedItemCls); + } +}, getItemSelector:function() { + return this.itemSelector; +}, addItemCls:function(itemInfo, cls) { + var item = this.getNode(itemInfo); + if (item) { + Ext.fly(item).addCls(cls); + } +}, removeItemCls:function(itemInfo, cls) { + var item = this.getNode(itemInfo); + if (item) { + Ext.fly(item).removeCls(cls); + } +}, setStore:function(newStore) { + var me = this; + if (me.store !== newStore) { + if (me.isConfiguring) { + me.store = newStore; + } else { + me.bindStore(newStore, false); + } + } +}, privates:{toggleChildrenTabbability:function(enableTabbing) { + var focusEl = this.getTargetEl(); + if (enableTabbing) { + focusEl.restoreTabbableState(true); + } else { + focusEl.saveTabbableState({skipSelf:true, includeSaved:false}); + } +}, collectNodes:function(targetEl) { + var all = this.all, options = {role:this.itemAriaRole}; + all.fill(Ext.fly(targetEl).query(this.getItemSelector()), all.startIndex || 0); + if (this.focusable) { + options.tabindex = '-1'; + } + all.set(options); +}, createMask:function(mask) { + var me = this, maskStore = me.getStore(), cfg; + if (maskStore && !maskStore.isEmptyStore && !maskStore.loadsSynchronously()) { + cfg = {target:me, msg:me.loadingText, useMsg:me.loadingUseMsg, store:maskStore}; + if (me.loadingCls) { + cfg.msgCls = me.loadingCls; + } + if (Ext.isObject(mask)) { + cfg = Ext.apply(cfg, mask); + } + me.loadMask = new Ext.LoadMask(cfg); + me.loadMask.on({scope:me, beforeshow:me.onMaskBeforeShow, hide:me.onMaskHide}); + } + return me.loadMask; +}, getOverflowEl:function() { + return Ext.Component.prototype.getTargetEl.call(this); +}, getTargetEl:function() { + return this.touchScroll ? this.getScrollerEl() : this.callParent(); +}}}, function() { + Ext.deprecate('extjs', '4.0', function() { + Ext.view.AbstractView.override({getSelectionCount:function() { + if (Ext.global.console) { + Ext.global.console.warn('DataView: getSelectionCount will be removed, please interact with the Ext.selection.DataViewModel'); + } + return this.selModel.getSelection().length; + }, getSelectedRecords:function() { + if (Ext.global.console) { + Ext.global.console.warn('DataView: getSelectedRecords will be removed, please interact with the Ext.selection.DataViewModel'); + } + return this.selModel.getSelection(); + }, select:function(records, keepExisting, supressEvents) { + if (Ext.global.console) { + Ext.global.console.warn("DataView: select will be removed, please access select through a DataView's SelectionModel, ie: view.getSelectionModel().select()"); + } + var sm = this.getSelectionModel(); + return sm.select.apply(sm, arguments); + }, clearSelections:function() { + if (Ext.global.console) { + Ext.global.console.warn("DataView: clearSelections will be removed, please access deselectAll through DataView's SelectionModel, ie: view.getSelectionModel().deselectAll()"); + } + var sm = this.getSelectionModel(); + return sm.deselectAll(); + }}); + }); +}); +Ext.define('Ext.view.View', {extend:Ext.view.AbstractView, alternateClassName:'Ext.DataView', alias:'widget.dataview', inputTagRe:/^textarea$|^input$/i, keyEventRe:/^key/, inheritableStatics:{EventMap:{longpress:'LongPress', mousedown:'MouseDown', mouseup:'MouseUp', click:'Click', dblclick:'DblClick', contextmenu:'ContextMenu', mouseover:'MouseOver', mouseout:'MouseOut', mouseenter:'MouseEnter', mouseleave:'MouseLeave', keydown:'KeyDown', keyup:'KeyUp', keypress:'KeyPress', focus:'Focus'}, TouchEventMap:{touchstart:'mousedown', +touchend:'mouseup', tap:'click', doubletap:'dblclick'}}, afterRender:function() { + var me = this; + me.callParent(); + me.mon(me.el, {scope:me, click:me.handleEvent, longpress:me.handleEvent, mousedown:me.handleEvent, mouseup:me.handleEvent, dblclick:me.handleEvent, contextmenu:me.handleEvent, keydown:me.handleEvent, keyup:me.handleEvent, keypress:me.handleEvent, mouseover:me.handleMouseOver, mouseout:me.handleMouseOut}); +}, getTargetSelector:function() { + return this.dataRowSelector || this.itemSelector; +}, handleMouseOver:function(e) { + var me = this, itemSelector = me.getTargetSelector(), item = e.getTarget(itemSelector); + if (!me.destroyed) { + if (item) { + if (me.mouseOverItem !== item && me.el.contains(item)) { + me.mouseOverItem = e.item = item; + e.newType = 'mouseenter'; + me.handleEvent(e); + } + } else { + me.handleEvent(e); + } + } +}, handleMouseOut:function(e) { + var me = this, itemSelector = me.getTargetSelector(), item = e.getTarget(itemSelector), computedRelatedTarget = e.getRelatedTarget(itemSelector), sourceView; + if (item === computedRelatedTarget && !(item === null && computedRelatedTarget === null)) { + return; + } + if (!me.destroyed) { + if (item && (sourceView = me.self.getBoundView(item))) { + e.item = item; + e.newType = 'mouseleave'; + sourceView.handleEvent(e); + sourceView.mouseOverItem = null; + } else { + me.handleEvent(e); + } + } +}, handleEvent:function(e) { + var me = this, isKeyEvent = me.keyEventRe.test(e.type); + e.view = me; + e.item = e.getTarget(me.itemSelector); + if (e.item) { + e.record = me.getRecord(e.item); + } + if (me.processUIEvent(e) !== false) { + me.processSpecialEvent(e); + } + if (isKeyEvent && !Ext.fly(e.target).isInputField()) { + if (e.getKey() === e.SPACE || e.isNavKeyPress(true)) { + e.preventDefault(); + } + } + e.view = null; +}, processItemEvent:Ext.emptyFn, processContainerEvent:Ext.emptyFn, processSpecialEvent:Ext.emptyFn, processUIEvent:function(e) { + if (!Ext.getBody().isAncestor(e.target)) { + return; + } + var me = this, item = e.item, self = me.self, map = self.EventMap, touchMap = self.TouchEventMap, index, record = e.record, type = e.type, newType = type; + if (e.newType) { + newType = e.newType; + } + if (item) { + newType = touchMap[newType] || newType; + index = e.recordIndex = me.indexInStore ? me.indexInStore(record) : me.indexOf(item); + if (!record || me.processItemEvent(record, item, index, e) === false) { + return false; + } + if (me['onBeforeItem' + map[newType]](record, item, index, e) === false || me.fireEvent('beforeitem' + newType, me, record, item, index, e) === false || me['onItem' + map[newType]](record, item, index, e) === false) { + return false; + } + me.fireEvent('item' + newType, me, record, item, index, e); + } else { + type = touchMap[type] || type; + if (me.processContainerEvent(e) === false || me['onBeforeContainer' + map[type]](e) === false || me.fireEvent('beforecontainer' + type, me, e) === false || me['onContainer' + map[type]](e) === false) { + return false; + } + me.fireEvent('container' + type, me, e); + } + return true; +}, onItemMouseEnter:function(record, item, index, e) { + if (this.trackOver) { + this.highlightItem(item); + } +}, onItemMouseLeave:function(record, item, index, e) { + if (this.trackOver) { + this.clearHighlight(); + } +}, onItemMouseDown:Ext.emptyFn, onItemLongPress:Ext.emptyFn, onItemMouseUp:Ext.emptyFn, onItemFocus:Ext.emptyFn, onItemClick:Ext.emptyFn, onItemDblClick:Ext.emptyFn, onItemContextMenu:Ext.emptyFn, onItemKeyDown:Ext.emptyFn, onItemKeyUp:Ext.emptyFn, onItemKeyPress:Ext.emptyFn, onBeforeItemLongPress:Ext.emptyFn, onBeforeItemMouseDown:Ext.emptyFn, onBeforeItemMouseUp:Ext.emptyFn, onBeforeItemFocus:Ext.emptyFn, onBeforeItemMouseEnter:Ext.emptyFn, onBeforeItemMouseLeave:Ext.emptyFn, onBeforeItemClick:Ext.emptyFn, +onBeforeItemDblClick:Ext.emptyFn, onBeforeItemContextMenu:Ext.emptyFn, onBeforeItemKeyDown:Ext.emptyFn, onBeforeItemKeyUp:Ext.emptyFn, onBeforeItemKeyPress:Ext.emptyFn, onContainerMouseDown:Ext.emptyFn, onContainerLongPress:Ext.emptyFn, onContainerMouseUp:Ext.emptyFn, onContainerMouseOver:Ext.emptyFn, onContainerMouseOut:Ext.emptyFn, onContainerClick:Ext.emptyFn, onContainerDblClick:Ext.emptyFn, onContainerContextMenu:Ext.emptyFn, onContainerKeyDown:Ext.emptyFn, onContainerKeyUp:Ext.emptyFn, onContainerKeyPress:Ext.emptyFn, +onBeforeContainerMouseDown:Ext.emptyFn, onBeforeContainerLongPress:Ext.emptyFn, onBeforeContainerMouseUp:Ext.emptyFn, onBeforeContainerMouseOver:Ext.emptyFn, onBeforeContainerMouseOut:Ext.emptyFn, onBeforeContainerClick:Ext.emptyFn, onBeforeContainerDblClick:Ext.emptyFn, onBeforeContainerContextMenu:Ext.emptyFn, onBeforeContainerKeyDown:Ext.emptyFn, onBeforeContainerKeyUp:Ext.emptyFn, onBeforeContainerKeyPress:Ext.emptyFn, setHighlightedItem:function(item) { + var me = this, highlighted = me.highlightedItem, overItemCls = me.overItemCls; + if (highlighted !== item) { + if (highlighted) { + Ext.fly(highlighted).removeCls(overItemCls); + if (Ext.isIE8) { + me.repaintBorder(highlighted); + me.repaintBorder(highlighted.nextSibling); + } + if (me.hasListeners.unhighlightitem) { + me.fireEvent('unhighlightitem', me, highlighted); + } + } + me.highlightedItem = item; + if (item) { + Ext.fly(item).addCls(me.overItemCls); + if (Ext.isIE8) { + me.repaintBorder(item.nextSibling); + } + if (me.hasListeners.highlightitem) { + me.fireEvent('highlightitem', me, item); + } + } + } +}, highlightItem:function(item) { + this.setHighlightedItem(item); +}, clearHighlight:function() { + this.setHighlightedItem(undefined); +}, handleUpdate:function(store, record) { + var me = this, node, newNode, highlighted; + if (me.viewReady) { + node = me.getNode(record); + newNode = me.callParent(arguments); + highlighted = me.highlightedItem; + if (highlighted && highlighted === node) { + delete me.highlightedItem; + if (newNode) { + me.highlightItem(newNode); + } + } + } +}, refresh:function() { + this.clearHighlight(); + this.callParent(arguments); +}, focusNode:function(rec) { + var me = this, node = Ext.fly(me.getNode(rec)), el = me.el, adjustmentY = 0, adjustmentX = 0, elRegion = el.getRegion(), nodeRegion; + elRegion.bottom = elRegion.top + el.dom.clientHeight; + elRegion.right = elRegion.left + el.dom.clientWidth; + if (node) { + nodeRegion = node.getRegion(); + if (nodeRegion.top < elRegion.top) { + adjustmentY = nodeRegion.top - elRegion.top; + } else { + if (nodeRegion.bottom > elRegion.bottom) { + adjustmentY = nodeRegion.bottom - elRegion.bottom; + } + } + if (nodeRegion.left < elRegion.left) { + adjustmentX = nodeRegion.left - elRegion.left; + } else { + if (nodeRegion.right > elRegion.right) { + adjustmentX = nodeRegion.right - elRegion.right; + } + } + if (adjustmentX || adjustmentY) { + me.scrollBy(adjustmentX, adjustmentY, false); + } + node.set({tabIndex:-1}); + node.focus(); + } +}, privates:{repaintBorder:function(rowIdx) { + var node = this.getNode(rowIdx); + if (node) { + node.className = node.className; + } +}}}); +Ext.define('Ext.view.BoundListKeyNav', {extend:Ext.view.NavigationModel, alias:'view.navigation.boundlist', navigateOnSpace:true, initKeyNav:function(view) { + var me = this, field = view.pickerField; + if (!me.keyNav) { + me.callParent([view]); + me.keyNav.map.addBinding({key:Ext.event.Event.ESC, fn:me.onKeyEsc, scope:me}); + } + if (!field) { + return; + } + if (!field.rendered) { + field.on('render', Ext.Function.bind(me.initKeyNav, me, [view], 0), me, {single:true}); + return; + } + me.fieldKeyNav = new Ext.util.KeyNav({disabled:true, target:field.inputEl, forceKeyDown:true, up:me.onKeyUp, down:me.onKeyDown, right:me.onKeyRight, left:me.onKeyLeft, pageDown:me.onKeyPageDown, pageUp:me.onKeyPageUp, home:me.onKeyHome, end:me.onKeyEnd, tab:me.onKeyTab, space:me.onKeySpace, enter:me.onKeyEnter, A:{ctrl:true, handler:me.onSelectAllKeyPress}, priority:1001, scope:me}); +}, processViewEvent:function(view, record, node, index, event) { + if (event.within(view.listWrap)) { + return event; + } + if (event.getKey() === event.ESC) { + if (Ext.fly(event.target).isInputField()) { + event.target = event.target.parentNode; + } + return event; + } +}, enable:function() { + this.fieldKeyNav.enable(); + this.callParent(); +}, disable:function() { + this.fieldKeyNav.disable(); + this.callParent(); +}, onItemMouseDown:function(view, record, item, index, event) { + this.callParent([view, record, item, index, event]); + event.preventDefault(); +}, onKeyUp:function(e) { + var me = this, boundList = me.view, allItems = boundList.all, oldItem = boundList.highlightedItem, oldItemIdx = oldItem ? boundList.indexOf(oldItem) : -1, newItemIdx = oldItemIdx > 0 ? oldItemIdx - 1 : allItems.getCount() - 1; + me.setPosition(newItemIdx); + e.preventDefault(); +}, onKeyDown:function(e) { + var me = this, boundList = me.view, allItems = boundList.all, oldItem = boundList.highlightedItem, oldItemIdx = oldItem ? boundList.indexOf(oldItem) : -1, newItemIdx = oldItemIdx < allItems.getCount() - 1 ? oldItemIdx + 1 : 0; + me.setPosition(newItemIdx); + e.preventDefault(); +}, onKeyLeft:Ext.returnTrue, onKeyRight:Ext.returnTrue, onKeyTab:function(e) { + var view = this.view, field = view.pickerField; + if (view.isVisible()) { + if (field.selectOnTab) { + this.selectHighlighted(e); + } + if (field.collapse) { + field.collapse(); + } + } + return true; +}, onKeyEnter:function(e) { + var view = this.view, selModel = view.getSelectionModel(), field = view.pickerField, count = selModel.getCount(); + e.stopEvent(); + this.selectHighlighted(e); + if (!field.multiSelect && count === selModel.getCount() && field.collapse) { + field.collapse(); + } + return false; +}, onKeySpace:function() { + if (this.navigateOnSpace) { + this.callParent(arguments); + } + return true; +}, onKeyEsc:function() { + if (this.view.pickerField) { + this.view.pickerField.collapse(); + } +}, focusItem:function(item) { + var me = this, boundList = me.view; + if (typeof item === 'number') { + item = boundList.all.item(item); + } + if (item) { + item = item.dom; + boundList.highlightItem(item); + boundList.getScrollable().scrollIntoView(item, false); + } +}, selectHighlighted:function(e) { + var me = this, boundList = me.view, selModel = boundList.getSelectionModel(), highlightedRec, highlightedPosition = me.recordIndex; + if (boundList.all.getCount()) { + highlightedRec = me.getRecord(); + if (highlightedRec) { + if (e.getKey() === e.ENTER || !selModel.isSelected(highlightedRec)) { + selModel.selectWithEvent(highlightedRec, e); + if (!boundList.store.data.contains(highlightedRec)) { + me.setPosition(Math.min(highlightedPosition, boundList.store.getCount() - 1)); + } + } + } + } +}, destroy:function() { + this.fieldKeyNav = Ext.destroy(this.fieldKeyNav); + this.callParent(); +}}); +Ext.define('Ext.layout.component.BoundList', {extend:Ext.layout.component.Auto, alias:'layout.boundlist', type:'component', beginLayout:function(ownerContext) { + var me = this, owner = me.owner, toolbar = owner.pagingToolbar; + me.scrollPos = owner.listWrap.getScroll(); + me.callParent(arguments); + if (owner.floating) { + ownerContext.savedXY = owner.getXY(); + owner.setXY([0, -9999]); + } + if (toolbar) { + ownerContext.toolbarContext = ownerContext.context.getCmp(toolbar); + } + ownerContext.listContext = ownerContext.getEl('listWrap'); +}, beginLayoutCycle:function(ownerContext) { + var owner = this.owner; + this.callParent(arguments); + if (ownerContext.heightModel.auto) { + owner.el.setHeight('auto'); + owner.listWrap.setHeight('auto'); + } +}, getLayoutItems:function() { + var toolbar = this.owner.pagingToolbar; + return toolbar ? [toolbar] : []; +}, isValidParent:function() { + return true; +}, finishedLayout:function(ownerContext) { + var me = this, xy = ownerContext.savedXY, owner = me.owner, listWrap = owner.listWrap, scrollPos = me.scrollPos; + me.callParent(arguments); + if (xy) { + me.owner.setXY(xy); + } + listWrap.setScrollLeft(scrollPos.left); + listWrap.setScrollTop(scrollPos.top); +}, measureContentWidth:function(ownerContext) { + return this.owner.listWrap.getWidth(); +}, measureContentHeight:function(ownerContext) { + return this.owner.listWrap.getHeight(); +}, publishInnerHeight:function(ownerContext, height) { + var toolbar = ownerContext.toolbarContext, toolbarHeight = 0; + if (toolbar) { + toolbarHeight = toolbar.getProp('height'); + } + if (toolbarHeight === undefined) { + this.done = false; + } else { + ownerContext.listContext.setHeight(height - ownerContext.getFrameInfo().height - toolbarHeight); + } +}, calculateOwnerHeightFromContentHeight:function(ownerContext) { + var height = this.callParent(arguments), toolbar = ownerContext.toolbarContext; + if (toolbar) { + height += toolbar.getProp('height'); + } + return height; +}}); +Ext.define('Ext.toolbar.Item', {extend:Ext.Component, alias:'widget.tbitem', alternateClassName:'Ext.Toolbar.Item', enable:Ext.emptyFn, disable:Ext.emptyFn, focus:Ext.emptyFn}); +Ext.define('Ext.toolbar.TextItem', {extend:Ext.toolbar.Item, alias:'widget.tbtext', alternateClassName:'Ext.Toolbar.TextItem', text:'', baseCls:Ext.baseCSSPrefix + 'toolbar-text', ariaRole:null, beforeRender:function() { + var text = this.text; + this.callParent(); + if (text) { + this.html = text; + } +}, setText:function(text) { + this.update(text); +}}); +Ext.define('Ext.form.trigger.Spinner', {extend:Ext.form.trigger.Trigger, alias:'trigger.spinner', cls:Ext.baseCSSPrefix + 'form-trigger-spinner', spinnerCls:Ext.baseCSSPrefix + 'form-spinner', spinnerUpCls:Ext.baseCSSPrefix + 'form-spinner-up', spinnerDownCls:Ext.baseCSSPrefix + 'form-spinner-down', focusCls:Ext.baseCSSPrefix + 'form-spinner-focus', overCls:Ext.baseCSSPrefix + 'form-spinner-over', clickCls:Ext.baseCSSPrefix + 'form-spinner-click', focusFieldOnClick:true, vertical:true, bodyTpl:'\x3ctpl if\x3d"vertical"\x3e' + +'\x3cdiv class\x3d"{spinnerCls} {spinnerCls}-{ui} {spinnerUpCls} {spinnerUpCls}-{ui}' + ' {childElCls} {upDisabledCls}"\x3e\x3c/div\x3e' + '\x3c/tpl\x3e' + '\x3cdiv class\x3d"{spinnerCls} {spinnerCls}-{ui} {spinnerDownCls} {spinnerDownCls}-{ui}' + ' {childElCls} {downDisabledCls}"\x3e\x3c/div\x3e' + '\x3ctpl if\x3d"!vertical"\x3e' + '\x3cdiv class\x3d"{spinnerCls} {spinnerCls}-{ui} {spinnerUpCls} {spinnerUpCls}-{ui}' + ' {childElCls} {upDisabledCls}"\x3e\x3c/div\x3e' + '\x3c/tpl\x3e', destroy:function() { + var me = this; + if (me.spinnerEl) { + me.spinnerEl.destroy(); + me.spinnerEl = me.upEl = me.downEl = null; + } + me.callParent(); +}, getBodyRenderData:function() { + var me = this; + return {vertical:me.vertical, upDisabledCls:me.upEnabled ? '' : me.spinnerUpCls + '-disabled', downDisabledCls:me.downEnabled ? '' : me.spinnerDownCls + '-disabled', spinnerCls:me.spinnerCls, spinnerUpCls:me.spinnerUpCls, spinnerDownCls:me.spinnerDownCls}; +}, getStateEl:function() { + return this.spinnerEl; +}, onClick:function() { + var me = this, args = arguments, e = me.clickRepeater ? args[1] : args[0], field = me.field; + if (!field.readOnly && !field.disabled) { + if (me.upEl.contains(e.target)) { + Ext.callback(me.upHandler, me.scope, [field, me, e], 0, field); + } else { + if (me.downEl.contains(e.target)) { + Ext.callback(me.downHandler, me.scope, [field, me, e], 0, field); + } + } + } + field.inputEl.focus(); +}, onFieldRender:function() { + var me = this, vertical = me.vertical, spinnerEl, elements; + me.callParent(); + spinnerEl = me.spinnerEl = me.el.select('.' + me.spinnerCls, true); + elements = spinnerEl.elements; + me.upEl = vertical ? elements[0] : elements[1]; + me.downEl = vertical ? elements[1] : elements[0]; +}, setUpEnabled:function(enabled) { + this.upEl[enabled ? 'removeCls' : 'addCls'](this.spinnerUpCls + '-disabled'); +}, setDownEnabled:function(enabled) { + this.downEl[enabled ? 'removeCls' : 'addCls'](this.spinnerDownCls + '-disabled'); +}}); +Ext.define('Ext.form.field.Spinner', {extend:Ext.form.field.Text, alias:'widget.spinnerfield', alternateClassName:'Ext.form.Spinner', config:{triggers:{spinner:{type:'spinner', upHandler:'onSpinnerUpClick', downHandler:'onSpinnerDownClick', scope:'this'}}}, spinUpEnabled:true, spinDownEnabled:true, keyNavEnabled:true, mouseWheelEnabled:true, repeatTriggerClick:true, onSpinUp:Ext.emptyFn, onSpinDown:Ext.emptyFn, ariaRole:'spinbutton', applyTriggers:function(triggers) { + var me = this, spinnerTrigger = triggers.spinner; + spinnerTrigger.upEnabled = me.spinUpEnabled; + spinnerTrigger.downEnabled = me.spinDownEnabled; + return me.callParent([triggers]); +}, onRender:function() { + var me = this, spinnerTrigger = me.getTrigger('spinner'); + me.callParent(); + if (me.keyNavEnabled) { + me.spinnerKeyNav = new Ext.util.KeyNav(me.inputEl, {scope:me, up:me.spinUp, down:me.spinDown}); + } + if (me.mouseWheelEnabled) { + me.mon(me.bodyEl, 'mousewheel', me.onMouseWheel, me); + } + me.spinUpEl = spinnerTrigger.upEl; + me.spinDownEl = spinnerTrigger.downEl; +}, onSpinnerUpClick:function() { + this.spinUp(); +}, onSpinnerDownClick:function() { + this.spinDown(); +}, spinUp:function() { + var me = this; + if (me.spinUpEnabled && !me.disabled) { + me.fireEvent('spin', me, 'up'); + me.fireEvent('spinup', me); + me.onSpinUp(); + } +}, spinDown:function() { + var me = this; + if (me.spinDownEnabled && !me.disabled) { + me.fireEvent('spin', me, 'down'); + me.fireEvent('spindown', me); + me.onSpinDown(); + } +}, setSpinUpEnabled:function(enabled) { + var me = this, wasEnabled = me.spinUpEnabled; + me.spinUpEnabled = enabled; + if (wasEnabled !== enabled && me.rendered) { + me.getTrigger('spinner').setUpEnabled(enabled); + } +}, setSpinDownEnabled:function(enabled) { + var me = this, wasEnabled = me.spinDownEnabled; + me.spinDownEnabled = enabled; + if (wasEnabled !== enabled && me.rendered) { + me.getTrigger('spinner').setDownEnabled(enabled); + } +}, onMouseWheel:function(e) { + var me = this, delta; + if (me.hasFocus) { + delta = e.getWheelDelta(); + if (delta > 0) { + me.spinUp(); + } else { + if (delta < 0) { + me.spinDown(); + } + } + e.stopEvent(); + } +}, onDestroy:function() { + Ext.destroyMembers(this, 'spinnerKeyNav'); + this.callParent(); +}}); +Ext.define('Ext.form.field.Number', {extend:Ext.form.field.Spinner, alias:'widget.numberfield', alternateClassName:['Ext.form.NumberField', 'Ext.form.Number'], allowExponential:true, allowDecimals:true, decimalSeparator:null, submitLocaleSeparator:true, decimalPrecision:2, minValue:Number.NEGATIVE_INFINITY, maxValue:Number.MAX_VALUE, step:1, minText:'The minimum value for this field is {0}', maxText:'The maximum value for this field is {0}', nanText:'{0} is not a valid number', negativeText:'The value cannot be negative', +baseChars:'0123456789', autoStripChars:false, initComponent:function() { + var me = this; + if (me.decimalSeparator === null) { + me.decimalSeparator = Ext.util.Format.decimalSeparator; + } + me.callParent(); + me.setMinValue(me.minValue); + me.setMaxValue(me.maxValue); +}, getSubTplData:function(fieldData) { + var me = this, min = me.minValue, max = me.maxValue, data, inputElAttr, value; + data = me.callParent([fieldData]); + inputElAttr = data.inputElAriaAttributes; + if (inputElAttr) { + if (min > Number.NEGATIVE_INFINITY) { + inputElAttr['aria-valuemin'] = min; + } + if (max < Number.MAX_VALUE) { + inputElAttr['aria-valuemax'] = max; + } + value = me.getValue(); + if (value != null && value >= min && value <= max) { + inputElAttr['aria-valuenow'] = value; + } + } + return data; +}, setValue:function(value) { + var me = this, bind, valueBind; + if (me.hasFocus) { + bind = me.getBind(); + valueBind = bind && bind.value; + if (valueBind && valueBind.syncing && value === me.value) { + return me; + } + } + return me.callParent([value]); +}, getErrors:function(value) { + value = arguments.length > 0 ? value : this.processRawValue(this.getRawValue()); + var me = this, errors = me.callParent([value]), format = Ext.String.format, num; + if (value.length < 1) { + return errors; + } + value = String(value).replace(me.decimalSeparator, '.'); + if (isNaN(value)) { + errors.push(format(me.nanText, value)); + } + num = me.parseValue(value); + if (me.minValue === 0 && num < 0) { + errors.push(this.negativeText); + } else { + if (num < me.minValue) { + errors.push(format(me.minText, me.minValue)); + } + } + if (num > me.maxValue) { + errors.push(format(me.maxText, me.maxValue)); + } + return errors; +}, rawToValue:function(rawValue) { + var value = this.fixPrecision(this.parseValue(rawValue)); + if (value === null) { + value = rawValue || null; + } + return value; +}, valueToRaw:function(value) { + var me = this, decimalSeparator = me.decimalSeparator; + value = me.parseValue(value); + value = me.fixPrecision(value); + value = Ext.isNumber(value) ? value : parseFloat(String(value).replace(decimalSeparator, '.')); + value = isNaN(value) ? '' : String(value).replace('.', decimalSeparator); + return value; +}, getSubmitValue:function() { + var me = this, value = me.callParent(); + if (!me.submitLocaleSeparator) { + value = value.replace(me.decimalSeparator, '.'); + } + return value; +}, onChange:function(newValue) { + var ariaDom = this.ariaEl.dom; + this.toggleSpinners(); + this.callParent(arguments); + if (ariaDom) { + if (Ext.isNumber(newValue) && isFinite(newValue)) { + ariaDom.setAttribute('aria-valuenow', newValue); + } else { + ariaDom.removeAttribute('aria-valuenow'); + } + } +}, toggleSpinners:function() { + var me = this, value = me.getValue(), valueIsNull = value === null, enabled; + if (me.spinUpEnabled || me.spinUpDisabledByToggle) { + enabled = valueIsNull || value < me.maxValue; + me.setSpinUpEnabled(enabled, true); + } + if (me.spinDownEnabled || me.spinDownDisabledByToggle) { + enabled = valueIsNull || value > me.minValue; + me.setSpinDownEnabled(enabled, true); + } +}, setMinValue:function(value) { + var me = this, ariaDom = me.ariaEl.dom, minValue, allowed, ariaDom; + me.minValue = minValue = Ext.Number.from(value, Number.NEGATIVE_INFINITY); + me.toggleSpinners(); + if (ariaDom) { + if (minValue > Number.NEGATIVE_INFINITY) { + ariaDom.setAttribute('aria-valuemin', minValue); + } else { + ariaDom.removeAttribute('aria-valuemin'); + } + } + if (me.disableKeyFilter !== true) { + allowed = me.baseChars + ''; + if (me.allowExponential) { + allowed += me.decimalSeparator + 'e+-'; + } else { + if (me.allowDecimals) { + allowed += me.decimalSeparator; + } + if (me.minValue < 0) { + allowed += '-'; + } + } + allowed = Ext.String.escapeRegex(allowed); + me.maskRe = new RegExp('[' + allowed + ']'); + if (me.autoStripChars) { + me.stripCharsRe = new RegExp('[^' + allowed + ']', 'gi'); + } + } +}, setMaxValue:function(value) { + var ariaDom = this.ariaEl.dom, maxValue; + this.maxValue = maxValue = Ext.Number.from(value, Number.MAX_VALUE); + if (ariaDom) { + if (maxValue < Number.MAX_VALUE) { + ariaDom.setAttribute('aria-valuemax', maxValue); + } else { + ariaDom.removeAttribute('aria-valuemax'); + } + } + this.toggleSpinners(); +}, parseValue:function(value) { + value = parseFloat(String(value).replace(this.decimalSeparator, '.')); + return isNaN(value) ? null : value; +}, fixPrecision:function(value) { + var me = this, nan = isNaN(value), precision = me.decimalPrecision; + if (nan || !value) { + return nan ? '' : value; + } else { + if (!me.allowDecimals || precision <= 0) { + precision = 0; + } + } + return parseFloat(Ext.Number.toFixed(parseFloat(value), precision)); +}, onBlur:function(e) { + var me = this, v = me.rawToValue(me.getRawValue()); + if (!Ext.isEmpty(v)) { + me.setValue(v); + } + me.callParent([e]); +}, setSpinUpEnabled:function(enabled, internal) { + this.callParent(arguments); + if (!internal) { + delete this.spinUpDisabledByToggle; + } else { + this.spinUpDisabledByToggle = !enabled; + } +}, onSpinUp:function() { + var me = this; + if (!me.readOnly) { + me.setSpinValue(Ext.Number.constrain(me.getValue() + me.step, me.minValue, me.maxValue)); + } +}, setSpinDownEnabled:function(enabled, internal) { + this.callParent(arguments); + if (!internal) { + delete this.spinDownDisabledByToggle; + } else { + this.spinDownDisabledByToggle = !enabled; + } +}, onSpinDown:function() { + var me = this; + if (!me.readOnly) { + me.setSpinValue(Ext.Number.constrain(me.getValue() - me.step, me.minValue, me.maxValue)); + } +}, setSpinValue:function(value) { + var me = this; + if (me.enforceMaxLength) { + if (me.fixPrecision(value).toString().length > me.maxLength) { + return; + } + } + me.setValue(value); +}}); +Ext.define('Ext.toolbar.Paging', {extend:Ext.toolbar.Toolbar, xtype:'pagingtoolbar', alternateClassName:'Ext.PagingToolbar', mixins:[Ext.util.StoreHolder], displayInfo:false, prependButtons:false, displayMsg:'Displaying {0} - {1} of {2}', emptyMsg:'No data to display', beforePageText:'Page', afterPageText:'of {0}', firstText:'First Page', prevText:'Previous Page', nextText:'Next Page', lastText:'Last Page', refreshText:'Refresh', inputItemWidth:30, emptyPageData:{total:0, currentPage:0, pageCount:0, +toRecord:0, fromRecord:0}, defaultBindProperty:'store', getPagingItems:function() { + var me = this, inputListeners = {scope:me, blur:me.onPagingBlur}; + inputListeners[Ext.supports.SpecialKeyDownRepeat ? 'keydown' : 'keypress'] = me.onPagingKeyDown; + return [{itemId:'first', tooltip:me.firstText, overflowText:me.firstText, iconCls:Ext.baseCSSPrefix + 'tbar-page-first', disabled:true, handler:me.moveFirst, scope:me}, {itemId:'prev', tooltip:me.prevText, overflowText:me.prevText, iconCls:Ext.baseCSSPrefix + 'tbar-page-prev', disabled:true, handler:me.movePrevious, scope:me}, '-', me.beforePageText, {xtype:'numberfield', itemId:'inputItem', name:'inputItem', cls:Ext.baseCSSPrefix + 'tbar-page-number', allowDecimals:false, minValue:1, hideTrigger:true, + enableKeyEvents:true, keyNavEnabled:false, selectOnFocus:true, submitValue:false, isFormField:false, width:me.inputItemWidth, margin:'-1 2 3 2', listeners:inputListeners}, {xtype:'tbtext', itemId:'afterTextItem', html:Ext.String.format(me.afterPageText, 1)}, '-', {itemId:'next', tooltip:me.nextText, overflowText:me.nextText, iconCls:Ext.baseCSSPrefix + 'tbar-page-next', disabled:true, handler:me.moveNext, scope:me}, {itemId:'last', tooltip:me.lastText, overflowText:me.lastText, iconCls:Ext.baseCSSPrefix + + 'tbar-page-last', disabled:true, handler:me.moveLast, scope:me}, '-', {itemId:'refresh', tooltip:me.refreshText, overflowText:me.refreshText, iconCls:Ext.baseCSSPrefix + 'tbar-loading', disabled:me.store.isLoading(), handler:me.doRefresh, scope:me}]; +}, initComponent:function() { + var me = this, userItems = me.items || me.buttons || [], pagingItems; + me.bindStore(me.store || 'ext-empty-store', true); + pagingItems = me.getPagingItems(); + if (me.prependButtons) { + me.items = userItems.concat(pagingItems); + } else { + me.items = pagingItems.concat(userItems); + } + delete me.buttons; + if (me.displayInfo) { + me.items.push('-\x3e'); + me.items.push({xtype:'tbtext', itemId:'displayItem'}); + } + me.callParent(); +}, beforeRender:function() { + this.callParent(arguments); + this.updateBarInfo(); +}, updateBarInfo:function() { + var me = this; + if (!me.store.isLoading()) { + me.calledInternal = true; + me.onLoad(); + me.calledInternal = false; + } +}, updateInfo:function() { + var me = this, displayItem = me.child('#displayItem'), store = me.store, pageData = me.getPageData(), count, msg; + if (displayItem) { + count = store.getCount(); + if (count === 0) { + msg = me.emptyMsg; + } else { + msg = Ext.String.format(me.displayMsg, pageData.fromRecord, pageData.toRecord, pageData.total); + } + displayItem.setText(msg); + } +}, onLoad:function() { + var me = this, pageData, currPage, pageCount, afterText, count, isEmpty, item; + count = me.store.getCount(); + isEmpty = count === 0; + if (!isEmpty) { + pageData = me.getPageData(); + currPage = pageData.currentPage; + pageCount = pageData.pageCount; + if (currPage > pageCount) { + if (pageCount > 0) { + me.store.loadPage(pageCount); + } else { + me.getInputItem().reset(); + } + return; + } + afterText = Ext.String.format(me.afterPageText, isNaN(pageCount) ? 1 : pageCount); + } else { + currPage = 0; + pageCount = 0; + afterText = Ext.String.format(me.afterPageText, 0); + } + Ext.suspendLayouts(); + item = me.child('#afterTextItem'); + if (item) { + item.update(afterText); + } + item = me.getInputItem(); + if (item) { + item.setDisabled(isEmpty).setValue(currPage); + } + me.setChildDisabled('#first', currPage === 1 || isEmpty); + me.setChildDisabled('#prev', currPage === 1 || isEmpty); + me.setChildDisabled('#next', currPage === pageCount || isEmpty); + me.setChildDisabled('#last', currPage === pageCount || isEmpty); + me.setChildDisabled('#refresh', false); + me.updateInfo(); + Ext.resumeLayouts(true); + if (!me.calledInternal) { + me.fireEvent('change', me, pageData || me.emptyPageData); + } +}, setChildDisabled:function(selector, disabled) { + var item = this.child(selector); + if (item) { + item.setDisabled(disabled); + } +}, getPageData:function() { + var store = this.store, totalCount = store.getTotalCount(); + return {total:totalCount, currentPage:store.currentPage, pageCount:Math.ceil(totalCount / store.pageSize), fromRecord:(store.currentPage - 1) * store.pageSize + 1, toRecord:Math.min(store.currentPage * store.pageSize, totalCount)}; +}, onLoadError:function() { + this.setChildDisabled('#refresh', false); +}, getInputItem:function() { + return this.child('#inputItem'); +}, readPageFromInput:function(pageData) { + var inputItem = this.getInputItem(), pageNum = false, v; + if (inputItem) { + v = inputItem.getValue(); + pageNum = parseInt(v, 10); + if (!v || isNaN(pageNum)) { + inputItem.setValue(pageData.currentPage); + return false; + } + } + return pageNum; +}, onPagingBlur:function(e) { + var inputItem = this.getInputItem(), curPage; + if (inputItem) { + curPage = this.getPageData().currentPage; + inputItem.setValue(curPage); + } +}, onPagingKeyDown:function(field, e) { + this.processKeyEvent(field, e); +}, processKeyEvent:function(field, e) { + var me = this, key = e.getKey(), pageData = me.getPageData(), increment = e.shiftKey ? 10 : 1, pageNum; + if (key === e.RETURN) { + e.stopEvent(); + pageNum = me.readPageFromInput(pageData); + if (pageNum !== false) { + pageNum = Math.min(Math.max(1, pageNum), pageData.pageCount); + if (pageNum !== pageData.currentPage && me.fireEvent('beforechange', me, pageNum) !== false) { + me.store.loadPage(pageNum); + } + } + } else { + if (key === e.HOME || key === e.END) { + e.stopEvent(); + pageNum = key === e.HOME ? 1 : pageData.pageCount; + field.setValue(pageNum); + } else { + if (key === e.UP || key === e.PAGE_UP || key === e.DOWN || key === e.PAGE_DOWN) { + e.stopEvent(); + pageNum = me.readPageFromInput(pageData); + if (pageNum) { + if (key === e.DOWN || key === e.PAGE_DOWN) { + increment *= -1; + } + pageNum += increment; + if (pageNum >= 1 && pageNum <= pageData.pageCount) { + field.setValue(pageNum); + } + } + } + } + } +}, beforeLoad:function() { + this.setChildDisabled('#refresh', true); +}, moveFirst:function() { + if (this.fireEvent('beforechange', this, 1) !== false) { + this.store.loadPage(1); + return true; + } + return false; +}, movePrevious:function() { + var me = this, store = me.store, prev = store.currentPage - 1; + if (prev > 0) { + if (me.fireEvent('beforechange', me, prev) !== false) { + store.previousPage(); + return true; + } + } + return false; +}, moveNext:function() { + var me = this, store = me.store, total = me.getPageData().pageCount, next = store.currentPage + 1; + if (next <= total) { + if (me.fireEvent('beforechange', me, next) !== false) { + store.nextPage(); + return true; + } + } + return false; +}, moveLast:function() { + var me = this, last = me.getPageData().pageCount; + if (me.fireEvent('beforechange', me, last) !== false) { + me.store.loadPage(last); + return true; + } + return false; +}, doRefresh:function() { + var me = this, store = me.store, current = store.currentPage; + if (me.fireEvent('beforechange', me, current) !== false) { + store.loadPage(current); + return true; + } + return false; +}, getStoreListeners:function() { + return {beforeload:this.beforeLoad, load:this.onLoad, exception:this.onLoadError}; +}, onBindStore:function() { + if (this.rendered) { + this.updateBarInfo(); + } +}, onDestroy:function() { + this.bindStore(null); + this.callParent(); +}}); +Ext.define('Ext.theme.neptune.toolbar.Paging', {override:'Ext.toolbar.Paging', defaultButtonUI:'plain-toolbar', inputItemWidth:40}); +Ext.define('Ext.theme.triton.toolbar.Paging', {override:'Ext.toolbar.Paging', inputItemWidth:50}); +Ext.define('Ext.view.BoundList', {extend:Ext.view.View, alias:'widget.boundlist', alternateClassName:'Ext.BoundList', mixins:[Ext.mixin.Queryable], pageSize:0, baseCls:Ext.baseCSSPrefix + 'boundlist', itemCls:Ext.baseCSSPrefix + 'boundlist-item', listItemCls:'', shadow:false, trackOver:true, preserveScrollOnRefresh:true, enableInitialSelection:false, refreshSelmodelOnRefresh:true, componentLayout:'boundlist', navigationModel:'boundlist', scrollable:true, ariaEl:'listEl', tabIndex:-1, childEls:['listWrap', +'listEl'], renderTpl:['\x3cdiv id\x3d"{id}-listWrap" data-ref\x3d"listWrap"', ' class\x3d"{baseCls}-list-ct ', Ext.dom.Element.unselectableCls, '"\x3e', '\x3cul id\x3d"{id}-listEl" data-ref\x3d"listEl" class\x3d"', Ext.baseCSSPrefix, 'list-plain"', '\x3ctpl foreach\x3d"ariaAttributes"\x3e {$}\x3d"{.}"\x3c/tpl\x3e', '\x3e', '\x3c/ul\x3e', '\x3c/div\x3e', '{%', 'var pagingToolbar\x3dvalues.$comp.pagingToolbar;', 'if (pagingToolbar) {', 'Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);', +'}', '%}', {disableFormats:true}], focusOnToFront:false, initComponent:function() { + var me = this, baseCls = me.baseCls, itemCls = me.itemCls; + me.selectedItemCls = baseCls + '-selected'; + if (me.trackOver) { + me.overItemCls = baseCls + '-item-over'; + } + me.itemSelector = '.' + itemCls; + me.scrollerSelector = 'ul.' + Ext.baseCSSPrefix + 'list-plain'; + if (me.floating) { + me.addCls(baseCls + '-floating'); + } + if (!me.tpl) { + me.tpl = new Ext.XTemplate('\x3ctpl for\x3d"."\x3e', '\x3cli role\x3d"option" unselectable\x3d"on" class\x3d"' + itemCls + '"\x3e' + me.getInnerTpl(me.displayField) + '\x3c/li\x3e', '\x3c/tpl\x3e'); + } else { + if (!me.tpl.isTemplate) { + me.tpl = new Ext.XTemplate(me.tpl); + } + } + if (me.pageSize) { + me.pagingToolbar = me.createPagingToolbar(); + } + me.callParent(); +}, getRefOwner:function() { + return this.pickerField || this.callParent(); +}, getRefItems:function() { + var result = this.callParent(), toolbar = this.pagingToolbar; + if (toolbar) { + result.push(toolbar); + } + return result; +}, createPagingToolbar:function() { + return Ext.widget('pagingtoolbar', {id:this.id + '-paging-toolbar', pageSize:this.pageSize, store:this.dataSource, border:false, ownerCt:this, ownerLayout:this.getComponentLayout()}); +}, getNodeContainer:function() { + return this.listEl; +}, refresh:function() { + var me = this, tpl = me.tpl; + tpl.field = me.pickerField; + tpl.store = me.store; + me.callParent(); + tpl.field = tpl.store = null; +}, bindStore:function(store, initial) { + var toolbar = this.pagingToolbar; + this.callParent(arguments); + if (toolbar) { + toolbar.bindStore(store, initial); + } +}, getInnerTpl:function(displayField) { + return '{' + displayField + '}'; +}, onShow:function() { + var field = this.pickerField; + this.callParent(); + if (field && field.rendered && !field.hasFocus) { + field.focus(); + } +}, afterComponentLayout:function(width, height, oldWidth, oldHeight) { + var field = this.pickerField; + this.callParent([width, height, oldWidth, oldHeight]); + if (field && field.alignPicker) { + field.alignPicker(); + } +}, onItemClick:function(record) { + var me = this, field = me.pickerField, valueField, selected; + if (!field) { + return; + } + valueField = field.valueField; + selected = me.getSelectionModel().getSelection(); + if (!field.multiSelect && selected.length) { + selected = selected[0]; + if (selected && field.isEqual(record.get(valueField), selected.get(valueField)) && field.collapse) { + field.collapse(); + } + } +}, onContainerClick:function(e) { + var toolbar = this.pagingToolbar; + if (toolbar && toolbar.rendered && e.within(toolbar.el)) { + return false; + } +}, onDestroy:function() { + this.callParent(); + Ext.destroyMembers(this, 'pagingToolbar', 'listWrap', 'listEl'); +}, privates:{getTargetEl:function() { + return this.listEl; +}, getOverflowEl:function() { + return this.listWrap; +}, finishRenderChildren:function() { + var toolbar = this.pagingToolbar; + this.callParent(arguments); + if (toolbar) { + toolbar.finishRender(); + } +}}}); +Ext.define('Ext.form.field.ComboBox', {extend:Ext.form.field.Picker, alternateClassName:'Ext.form.ComboBox', alias:['widget.combobox', 'widget.combo'], mixins:[Ext.util.StoreHolder], config:{filters:null, selection:null, valueNotFoundText:null, displayTpl:false, delimiter:', ', displayField:'text'}, publishes:['selection'], twoWayBindable:['selection'], triggerCls:Ext.baseCSSPrefix + 'form-arrow-trigger', hiddenName:'', collapseOnSelect:false, hiddenDataCls:Ext.baseCSSPrefix + 'hidden-display ' + +Ext.baseCSSPrefix + 'form-data-hidden', ariaRole:'combobox', childEls:{'hiddenDataEl':true}, filtered:false, afterRender:function() { + var me = this; + me.callParent(arguments); + me.setHiddenValue(me.value); +}, multiSelect:false, triggerAction:'all', allQuery:'', queryParam:'query', queryMode:'remote', queryCaching:true, autoLoadOnValue:false, pageSize:0, anyMatch:false, caseSensitive:false, autoSelect:true, typeAhead:false, typeAheadDelay:250, selectOnTab:true, forceSelection:false, growToLongestValue:true, clearFilterOnBlur:true, defaultListConfig:{loadingHeight:70, minWidth:70, maxHeight:300, shadow:'sides'}, transformInPlace:true, clearValueOnEmpty:true, getGrowWidth:function() { + var me = this, value = me.inputEl.dom.value, field, store, dataLn, currentLongestLength, i, item, itemLn; + if (me.growToLongestValue) { + field = me.displayField; + store = me.store; + dataLn = store.data.length; + currentLongestLength = 0; + for (i = 0; i < dataLn; i++) { + item = store.getAt(i).data[field]; + itemLn = item.length; + if (itemLn > currentLongestLength) { + currentLongestLength = itemLn; + value = item; + } + } + } + return value; +}, initComponent:function() { + var me = this, isDefined = Ext.isDefined, store = me.store, transform = me.transform, transformSelect, isLocalMode; + if (me.typeAhead && me.multiSelect) { + Ext.raise('typeAhead and multiSelect are mutually exclusive options -- please remove one of them.'); + } + if (me.typeAhead && !me.editable) { + Ext.raise('If typeAhead is enabled the combo must be editable: true -- please change one of those settings.'); + } + if (me.selectOnFocus && !me.editable) { + Ext.raise('If selectOnFocus is enabled the combo must be editable: true -- please change one of those settings.'); + } + if ('pinList' in me) { + me.collapseOnSelect = !me.pinList; + } + if (transform) { + transformSelect = Ext.getDom(transform); + if (transformSelect) { + if (!me.store) { + store = Ext.Array.map(Ext.Array.from(transformSelect.options), function(option) { + return [option.value, option.text]; + }); + } + if (!me.name) { + me.name = transformSelect.name; + } + if (!('value' in me)) { + me.value = transformSelect.value; + } + } + } + me.bindStore(store || 'ext-empty-store', true, true); + isLocalMode = me.queryMode === 'local'; + if (!isDefined(me.queryDelay)) { + me.queryDelay = isLocalMode ? 10 : 500; + } + if (!isDefined(me.minChars)) { + me.minChars = isLocalMode ? 0 : 4; + } + me.callParent(); + me.doQueryTask = new Ext.util.DelayedTask(me.doRawQuery, me); + if (transformSelect) { + if (me.transformInPlace) { + me.render(transformSelect.parentNode, transformSelect); + delete me.renderTo; + } + Ext.removeNode(transformSelect); + } +}, getSubTplData:function(fieldData) { + var data, inputElAttr; + data = this.callParent([fieldData]); + inputElAttr = data.inputElAriaAttributes; + if (inputElAttr) { + inputElAttr['aria-autocomplete'] = 'list'; + } + return data; +}, getSubTplMarkup:function(fieldData) { + var me = this, hiddenDataElMarkup = '', markup = me.callParent(arguments); + if (me.hiddenName) { + hiddenDataElMarkup = '\x3cdiv id\x3d"' + fieldData.id + '-hiddenDataEl" data-ref\x3d"hiddenDataEl" class\x3d"' + me.hiddenDataCls + '" role\x3d"presentation"\x3e\x3c/div\x3e'; + } + return hiddenDataElMarkup + markup; +}, applyDisplayTpl:function(displayTpl) { + var me = this; + if (!displayTpl) { + displayTpl = new Ext.XTemplate('\x3ctpl for\x3d"."\x3e' + '{[typeof values \x3d\x3d\x3d "string" ? values : values["' + me.getDisplayField() + '"]]}' + '\x3ctpl if\x3d"xindex \x3c xcount"\x3e' + me.getDelimiter() + '\x3c/tpl\x3e' + '\x3c/tpl\x3e'); + displayTpl.auto = true; + } else { + if (!displayTpl.isTemplate) { + displayTpl = new Ext.XTemplate(displayTpl); + } + } + return displayTpl; +}, applyFilters:function(filters, collection) { + var me = this; + if (filters === null || filters.isFilterCollection) { + return filters; + } + if (filters) { + if (!collection) { + collection = this.getFilters(); + } + collection.beginUpdate(); + collection.splice(0, collection.length, filters); + collection.each(function(filter) { + filter.ownerId = me.id; + }); + collection.endUpdate(); + } + return collection; +}, applyValueNotFoundText:function(v) { + var me = this, valueNotFoundRecord = me.valueNotFoundRecord || (me.valueNotFoundRecord = new Ext.data.Model); + valueNotFoundRecord.set(me.displayField, v); + if (me.valueField && me.displayField !== me.valueField) { + valueNotFoundRecord.set(me.valueField, v); + } + return v; +}, getFilters:function(autoCreate) { + var ret = this.filters; + if (!ret && autoCreate !== false) { + ret = new Ext.util.FilterCollection; + this.setFilters(ret); + } + return ret; +}, updateFilters:function(newFilters, oldFilters) { + var me = this; + if (oldFilters) { + oldFilters.un('endupdate', 'onEndUpdateFilters', me); + } + if (newFilters) { + newFilters.on('endupdate', 'onEndUpdateFilters', me); + } + me.onEndUpdateFilters(newFilters); +}, onEndUpdateFilters:function(filters) { + var me = this, was = me.filtered, is = !!filters && filters.length > 0, old, storeFilters; + if (was || is) { + me.filtered = is; + old = []; + storeFilters = me.store.getFilters(); + storeFilters.each(function(filter) { + if (filter.ownerId === me.id && !filters.contains(filter)) { + old.push(filter); + } + }); + storeFilters.splice(0, old, filters.items); + } +}, completeEdit:function(e) { + var me = this, filter = me.queryFilter; + this.callParent([e]); + me.doQueryTask.cancel(); + me.assertValue(); + if (filter && me.queryMode === 'local' && me.clearFilterOnBlur) { + me.getStore().getFilters().remove(filter); + } +}, onFocus:function(e) { + var me = this; + me.callParent([e]); + if (me.triggerAction !== 'all' && me.queryFilter && me.queryMode === 'local' && me.clearFilterOnBlur) { + delete me.lastQuery; + me.doRawQuery(); + } +}, assertValue:function() { + var me = this, value = me.getRawValue(), displayValue = me.getDisplayValue(), lastRecords = me.lastSelectedRecords, rec; + if (me.forceSelection) { + if (me.multiSelect) { + if (value !== displayValue) { + me.setRawValue(displayValue); + } + } else { + rec = me.findRecordByDisplay(value); + if (rec) { + if (me.getDisplayValue([me.getRecordDisplayData(rec)]) !== displayValue) { + me.select(rec, true); + } + } else { + if (lastRecords && (!me.allowBlank || me.rawValue)) { + me.setValue(lastRecords); + } else { + if (lastRecords) { + delete me.lastSelectedRecords; + } + me.setRawValue(''); + } + } + } + } + me.collapse(); +}, onTypeAhead:function() { + var me = this, displayField = me.displayField, record = me.store.findRecord(displayField, me.getRawValue()), boundList = me.getPicker(), newValue, len, selStart; + if (record) { + newValue = record.get(displayField); + len = newValue.length; + selStart = me.getRawValue().length; + boundList.highlightItem(boundList.getNode(record)); + if (selStart !== 0 && selStart !== len) { + me.setRawValue(newValue); + me.selectText(selStart, newValue.length); + } + } +}, resetToDefault:Ext.emptyFn, beforeReset:function() { + var filter = this.queryFilter; + this.callParent(); + if (filter) { + this.getStore().getFilters().remove(filter); + } +}, onUnbindStore:function() { + var me = this, picker = me.picker, filter = me.queryFilter; + if (filter && !me.store.destroyed) { + me.changingFilters = true; + me.getStore().removeFilter(filter, true); + me.changingFilters = false; + } + me.pickerSelectionModel.destroy(); + if (picker) { + picker.bindStore(null); + } +}, onBindStore:function(store, initial) { + var me = this, picker = me.picker, extraKeySpec, valueCollectionConfig; + if (store) { + if (store.autoCreated) { + me.queryMode = 'local'; + me.valueField = me.displayField = 'field1'; + if (!store.expanded) { + me.displayField = 'field2'; + } + if (me.getDisplayTpl().auto) { + me.setDisplayTpl(null); + } + } + if (!Ext.isDefined(me.valueField)) { + me.valueField = me.displayField; + } + extraKeySpec = {byValue:{rootProperty:'data', unique:false}}; + extraKeySpec.byValue.property = me.valueField; + store.setExtraKeys(extraKeySpec); + if (me.displayField === me.valueField) { + store.byText = store.byValue; + } else { + extraKeySpec.byText = {rootProperty:'data', unique:false}; + extraKeySpec.byText.property = me.displayField; + store.setExtraKeys(extraKeySpec); + } + valueCollectionConfig = {rootProperty:'data', extraKeys:{byInternalId:{property:'internalId'}, byValue:{property:me.valueField, rootProperty:'data'}}, listeners:{beginupdate:me.onValueCollectionBeginUpdate, endupdate:me.onValueCollectionEndUpdate, scope:me}}; + me.valueCollection = new Ext.util.Collection(valueCollectionConfig); + me.pickerSelectionModel = new Ext.selection.DataViewModel({mode:me.multiSelect ? 'SIMPLE' : 'SINGLE', deselectOnContainerClick:false, enableInitialSelection:false, pruneRemoved:false, selected:me.valueCollection, store:store, listeners:{scope:me, lastselectedchanged:me.updateBindSelection}}); + if (!initial) { + me.resetToDefault(); + } + if (picker) { + picker.setSelectionModel(me.pickerSelectionModel); + if (picker.getStore() !== store) { + picker.bindStore(store); + } + } + } +}, bindStore:function(store, preventFilter, initial) { + var me = this, filter = me.queryFilter; + me.mixins.storeholder.bindStore.call(me, store, initial); + store = me.getStore(); + if (store && filter && !preventFilter) { + store.getFilters().add(filter); + } + if (!initial && store && !store.isEmptyStore) { + me.setValueOnData(); + } +}, getStoreListeners:function(store) { + if (!store.isEmptyStore) { + var me = this, result = {datachanged:me.onDataChanged, load:me.onLoad, exception:me.onException, update:me.onStoreUpdate, remove:me.checkValueOnChange}; + if (!store.getRemoteFilter()) { + result.filterchange = me.checkValueOnChange; + } + return result; + } +}, onDataChanged:function() { + if (this.grow && this.growToLongestValue) { + this.autoSize(); + } +}, checkValueOnChange:function() { + var me = this; + if (!me.destroying && me.getStore().isLoaded()) { + if (me.multiSelect) { + } else { + if (me.forceSelection && !me.changingFilters && !me.findRecordByValue(me.value)) { + me.setValue(null); + } + } + } +}, onStoreUpdate:function(store, record) { + this.updateValue(); +}, onException:function() { + this.collapse(); +}, onLoad:function(store, records, success) { + var me = this, needsValueUpdating = !me.valueCollection.byValue.get(me.value); + if (success && needsValueUpdating && !(store.lastOptions && 'rawQuery' in store.lastOptions)) { + me.setValueOnData(); + } + me.checkValueOnChange(); +}, setValueOnData:function() { + var me = this; + me.setValue(me.value); + if (me.isExpanded && me.getStore().getCount()) { + me.doAutoSelect(); + } +}, doRawQuery:function() { + var me = this, rawValue = me.inputEl.dom.value; + if (me.multiSelect) { + rawValue = rawValue.split(me.delimiter).pop(); + } + me.doQuery(rawValue, false, true); +}, doQuery:function(queryString, forceAll, rawQuery) { + var me = this, store = me.getStore(), refreshFilters = store.filters && !store.filters.length && !!queryString, queryPlan = me.beforeQuery({query:queryString || '', rawQuery:rawQuery, forceAll:forceAll, combo:me, cancel:false}); + if (queryPlan !== false && !queryPlan.cancel) { + if (me.queryCaching && !refreshFilters && queryPlan.query === me.lastQuery) { + me.getPicker().refresh(); + me.expand(); + } else { + me.lastQuery = queryPlan.query; + if (me.queryMode === 'local') { + me.doLocalQuery(queryPlan); + } else { + me.doRemoteQuery(queryPlan); + } + } + } + return true; +}, beforeQuery:function(queryPlan) { + var me = this; + if (me.fireEvent('beforequery', queryPlan) === false) { + queryPlan.cancel = true; + } else { + if (!queryPlan.cancel) { + if (queryPlan.query.length < me.minChars && !queryPlan.forceAll) { + queryPlan.cancel = true; + } + } + } + return queryPlan; +}, doLocalQuery:function(queryPlan) { + var me = this, queryString = queryPlan.query, store = me.getStore(), filter = me.queryFilter; + me.queryFilter = null; + me.changingFilters = true; + if (filter) { + store.removeFilter(filter, true); + } + if (queryString) { + filter = me.queryFilter = new Ext.util.Filter({id:me.id + '-filter', anyMatch:me.anyMatch, caseSensitive:me.caseSensitive, root:'data', property:me.displayField, value:me.enableRegEx ? new RegExp(queryString) : queryString}); + store.addFilter(filter, true); + } + me.changingFilters = false; + if (me.store.getCount() || me.getPicker().emptyText) { + me.getPicker().refresh(); + me.expand(); + } else { + me.collapse(); + } + me.afterQuery(queryPlan); +}, doRemoteQuery:function(queryPlan) { + var me = this, loadCallback = function() { + if (!me.destroyed) { + me.afterQuery(queryPlan); + } + }; + me.expand(); + if (me.pageSize) { + me.loadPage(1, {rawQuery:queryPlan.rawQuery, callback:loadCallback}); + } else { + me.store.load({params:me.getParams(queryPlan.query), rawQuery:queryPlan.rawQuery, callback:loadCallback}); + } +}, afterQuery:function(queryPlan) { + var me = this; + if (me.store.getCount()) { + if (me.typeAhead) { + me.doTypeAhead(); + } + if (queryPlan.rawQuery) { + if (me.picker && !me.picker.getSelectionModel().hasSelection()) { + me.doAutoSelect(); + } + } else { + me.doAutoSelect(); + } + } + me.startCheckChangeTask(); +}, loadPage:function(pageNum, options) { + this.store.loadPage(pageNum, Ext.apply({params:this.getParams(this.lastQuery)}, options)); +}, onPageChange:function(toolbar, newPage) { + this.loadPage(newPage); + return false; +}, getParams:function(queryString) { + var params = {}, param = this.queryParam; + if (param) { + params[param] = queryString; + } + return params; +}, doAutoSelect:function() { + var me = this, picker = me.picker, selectionModel, itemNode = 0; + if (picker && me.autoSelect && me.store.getCount() > 0) { + selectionModel = me.picker.getSelectionModel(); + if (selectionModel.lastSelected && selectionModel.selected.length) { + itemNode = selectionModel.lastSelected; + } + picker.getNavigationModel().setPosition(itemNode); + } +}, doTypeAhead:function() { + var me = this, Event = Ext.event.Event; + if (!me.typeAheadTask) { + me.typeAheadTask = new Ext.util.DelayedTask(me.onTypeAhead, me); + } + if (me.lastKey !== Event.BACKSPACE && me.lastKey !== Event.DELETE) { + me.typeAheadTask.delay(me.typeAheadDelay); + } +}, onTriggerClick:function() { + var me = this; + if (!me.readOnly && !me.disabled) { + if (me.isExpanded) { + me.collapse(); + } else { + if (me.triggerAction === 'all') { + me.doQuery(me.allQuery, true); + } else { + if (me.triggerAction === 'last') { + me.doQuery(me.lastQuery, true); + } else { + me.doQuery(me.getRawValue(), false, true); + } + } + } + } +}, onFieldMutation:function(e) { + var me = this, key = e.getKey(), isDelete = key === e.BACKSPACE || key === e.DELETE, rawValue = me.inputEl.dom.value, len = rawValue.length; + if (!me.readOnly && (rawValue !== me.lastMutatedValue || isDelete) && key !== e.TAB) { + me.lastMutatedValue = rawValue; + me.lastKey = key; + if (len && (e.type !== 'keyup' || (!e.isSpecialKey() || isDelete))) { + me.doQueryTask.delay(me.queryDelay); + } else { + if (!len && (!key || isDelete)) { + ++me.suspendCheckChange; + if (!me.multiSelect) { + me.value = null; + me.displayTplData = undefined; + } + if (me.clearValueOnEmpty) { + me.valueCollection.beginUpdate(); + me.pickerSelectionModel.deselectAll(); + me.valueCollection.removeAll(); + me.valueCollection.endUpdate(); + } + me.collapse(); + if (me.queryFilter) { + me.changingFilters = true; + me.store.removeFilter(me.queryFilter, true); + me.changingFilters = false; + } + --me.suspendCheckChange; + } + me.callParent([e]); + } + } +}, onDestroy:function() { + var me = this; + me.doQueryTask.cancel(); + if (me.typeAheadTask) { + me.typeAheadTask.cancel(); + me.typeAheadTask = null; + } + me.bindStore(null); + me.valueCollection = Ext.destroy(me.valueCollection); + me.callParent(); +}, onAdded:function() { + var me = this; + me.callParent(arguments); + if (me.picker) { + me.picker.ownerCt = me.up('[floating]'); + me.picker.registerWithOwnerCt(); + } +}, createPicker:function() { + var me = this, picker, pickerCfg = Ext.apply({xtype:'boundlist', id:me.pickerId, pickerField:me, selectionModel:me.pickerSelectionModel, floating:true, hidden:true, store:me.getPickerStore(), displayField:me.displayField, preserveScrollOnRefresh:true, pageSize:me.pageSize, tpl:me.tpl}, me.listConfig, me.defaultListConfig); + picker = me.picker = Ext.widget(pickerCfg); + if (me.pageSize) { + picker.pagingToolbar.on('beforechange', me.onPageChange, me); + } + if (!picker.initialConfig.maxHeight) { + picker.on({beforeshow:me.onBeforePickerShow, scope:me}); + } + picker.getSelectionModel().on({beforeselect:me.onBeforeSelect, beforedeselect:me.onBeforeDeselect, focuschange:me.onFocusChange, scope:me}); + picker.getNavigationModel().navigateOnSpace = false; + return picker; +}, getPickerStore:function() { + return this.store; +}, onBeforePickerShow:function(picker) { + var me = this, heightAbove = me.getPosition()[1] - Ext.getBody().getScroll().top, heightBelow = Ext.Element.getViewportHeight() - heightAbove - me.getHeight(); + picker.maxHeight = Math.max(heightAbove, heightBelow) - 5; +}, onBeforeSelect:function(list, record, recordIndex) { + return this.fireEvent('beforeselect', this, record, recordIndex); +}, onBeforeDeselect:function(list, record, recordIndex) { + return this.fireEvent('beforedeselect', this, record, recordIndex); +}, onFocusChange:function(selModel, prevRecord, newRecord) { + var picker = this.picker, el; + if (newRecord) { + el = Ext.get(picker.getNodeByRecord(newRecord)); + if (el) { + this.ariaEl.dom.setAttribute('aria-activedescendant', el.id); + } + } +}, getSelection:function() { + var selModel = this.getPicker().getSelectionModel(), selection = selModel.getSelection(); + return selection.length ? selModel.getLastSelected() : null; +}, updateSelection:function(selection) { + var me = this, sm; + if (!me.ignoreNextSelection) { + me.ignoreNextSelection = true; + sm = me.getPicker().getSelectionModel(); + if (selection) { + sm.select(selection); + me.hasHadSelection = true; + } else { + sm.deselectAll(); + } + me.ignoreNextSelection = false; + } +}, updateBindSelection:function(selModel, selection) { + var me = this, selected = null; + if (!me.ignoreNextSelection) { + me.ignoreNextSelection = true; + if (selection.length) { + selected = selModel.getLastSelected(); + me.hasHadSelection = true; + } + if (me.hasHadSelection) { + me.setSelection(selected); + } + me.ignoreNextSelection = false; + } +}, onValueCollectionBeginUpdate:Ext.emptyFn, onValueCollectionEndUpdate:function() { + var me = this, store = me.store, selectedRecords = me.valueCollection.getRange(), selectedRecord = selectedRecords[0], selectionCount = selectedRecords.length; + me.updateBindSelection(me.pickerSelectionModel, selectedRecords); + if (me.isSelectionUpdating()) { + return; + } + Ext.suspendLayouts(); + me.lastSelection = selectedRecords; + if (selectionCount) { + me.lastSelectedRecords = selectedRecords; + } + me.updateValue(); + if (selectionCount && (!me.multiSelect && store.contains(selectedRecord) || me.collapseOnSelect || !store.getCount())) { + me.updatingValue = true; + me.collapse(); + me.updatingValue = false; + } + Ext.resumeLayouts(true); + if (selectionCount && !me.suspendCheckChange) { + if (!me.multiSelect) { + selectedRecords = selectedRecord; + } + me.fireEvent('select', me, selectedRecords); + } +}, isSelectionUpdating:function() { + var selModel = this.pickerSelectionModel; + return selModel.deselectingDuringSelect || selModel.refreshing; +}, onExpand:function() { + var keyNav = this.getPicker().getNavigationModel(); + if (keyNav) { + keyNav.enable(); + } + this.doAutoSelect(); +}, onCollapse:function() { + var keyNav = this.getPicker().getNavigationModel(); + if (keyNav) { + keyNav.disable(); + } + if (this.updatingValue) { + this.doQueryTask.cancel(); + } +}, select:function(r, assert) { + var me = this, picker = me.picker, fireSelect; + if (r && r.isModel && assert === true && picker) { + fireSelect = !picker.getSelectionModel().isSelected(r); + } + if (!fireSelect) { + me.suspendEvent('select'); + } + me.setValue(r); + me.resumeEvent('select'); +}, findRecord:function(field, value) { + var ds = this.store, idx = ds.findExact(field, value); + return idx !== -1 ? ds.getAt(idx) : false; +}, getSelectedRecord:function() { + return this.findRecordByValue(this.value) || null; +}, findRecordByValue:function(value) { + var result = this.store.byValue.get(value), ret = false; + if (result) { + ret = result[0] || result; + } + return ret; +}, findRecordByDisplay:function(value) { + var result = this.store.byText.get(value), ret = false; + if (result) { + ret = result[0] || result; + } + return ret; +}, addValue:function(value) { + if (value != null) { + return this.doSetValue(value, true); + } +}, setValue:function(value) { + var me = this; + if (value != null) { + return me.doSetValue(value); + } else { + me.suspendEvent('select'); + me.valueCollection.beginUpdate(); + me.pickerSelectionModel.deselectAll(); + me.valueCollection.endUpdate(); + me.lastSelectedRecords = null; + me.resumeEvent('select'); + } +}, setRawValue:function(rawValue) { + this.callParent([rawValue]); + this.lastMutatedValue = rawValue; +}, doSetValue:function(value, add) { + var me = this, store = me.getStore(), Model = store.getModel(), matchedRecords = [], valueArray = [], autoLoadOnValue = me.autoLoadOnValue, isLoaded = store.getCount() > 0 || store.isLoaded(), pendingLoad = store.hasPendingLoad(), unloaded = autoLoadOnValue && !isLoaded && !pendingLoad, forceSelection = me.forceSelection, selModel = me.pickerSelectionModel, displayIsValue = me.displayField === me.valueField, isEmptyStore = store.isEmptyStore, lastSelection = me.lastSelection, i, len, record, dataObj, + valueChanged, key; + if (add && !me.multiSelect) { + Ext.raise('Cannot add values to non multiSelect ComboBox'); + } + if (pendingLoad || unloaded || !isLoaded || isEmptyStore) { + if (!value.isModel) { + if (add) { + me.value = Ext.Array.from(me.value).concat(value); + } else { + me.value = value; + } + me.setHiddenValue(me.value); + me.setRawValue(displayIsValue ? value : ''); + } + if (unloaded && !isEmptyStore) { + store.load(); + } + if (!value.isModel || isEmptyStore) { + return me; + } + } + value = add ? Ext.Array.from(me.value).concat(value) : Ext.Array.from(value); + for (i = 0, len = value.length; i < len; i++) { + record = value[i]; + if (!record || !record.isModel) { + record = me.findRecordByValue(key = record); + if (!record) { + record = me.valueCollection.find(me.valueField, key); + } + } + if (!record) { + if (!forceSelection) { + if (!record && value[i]) { + dataObj = {}; + dataObj[me.displayField] = value[i]; + if (me.valueField && me.displayField !== me.valueField) { + dataObj[me.valueField] = value[i]; + } + record = new Model(dataObj); + } + } else { + if (me.valueNotFoundRecord) { + record = me.valueNotFoundRecord; + } + } + } + if (record) { + matchedRecords.push(record); + valueArray.push(record.get(me.valueField)); + } + } + if (lastSelection) { + len = lastSelection.length; + if (len === matchedRecords.length) { + for (i = 0; !valueChanged && i < len; i++) { + if (Ext.Array.indexOf(me.lastSelection, matchedRecords[i]) === -1) { + valueChanged = true; + } + } + } else { + valueChanged = true; + } + } else { + valueChanged = matchedRecords.length; + } + if (valueChanged) { + me.suspendEvent('select'); + me.valueCollection.beginUpdate(); + if (matchedRecords.length) { + selModel.select(matchedRecords, false); + } else { + selModel.deselectAll(); + } + me.valueCollection.endUpdate(); + me.resumeEvent('select'); + } else { + me.updateValue(); + } + if (me.inputEl && me.emptyText) { + me.inputEl.removeCls(me.emptyCls); + me.valueContainsPlaceholder = false; + } + me.applyEmptyText(); + return me; +}, updateValue:function() { + var me = this, selectedRecords = me.valueCollection.getRange(), len = selectedRecords.length, valueArray = [], displayTplData = me.displayTplData || (me.displayTplData = []), inputEl = me.inputEl, i, record; + displayTplData.length = 0; + for (i = 0; i < len; i++) { + record = selectedRecords[i]; + displayTplData.push(me.getRecordDisplayData(record)); + if (record !== me.valueNotFoundRecord) { + valueArray.push(record.get(me.valueField)); + } + } + me.setHiddenValue(valueArray); + me.value = me.multiSelect ? valueArray : valueArray[0]; + if (!Ext.isDefined(me.value)) { + me.value = undefined; + } + me.displayTplData = displayTplData; + if (inputEl && me.emptyText && !Ext.isEmpty(me.value)) { + inputEl.removeCls(me.emptyCls); + } + me.setRawValue(me.getDisplayValue()); + me.checkChange(); + me.applyEmptyText(); +}, setHiddenValue:function(values) { + var me = this, name = me.hiddenName, i, dom, childNodes, input, valueCount, childrenCount; + if (!me.hiddenDataEl || !name) { + return; + } + values = Ext.Array.from(values); + dom = me.hiddenDataEl.dom; + childNodes = dom.childNodes; + input = childNodes[0]; + valueCount = values.length; + childrenCount = childNodes.length; + if (!input && valueCount > 0) { + me.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:'input', type:'hidden', name:name})); + childrenCount = 1; + input = dom.firstChild; + } + while (childrenCount > valueCount) { + dom.removeChild(childNodes[0]); + --childrenCount; + } + while (childrenCount < valueCount) { + dom.appendChild(input.cloneNode(true)); + ++childrenCount; + } + for (i = 0; i < valueCount; i++) { + childNodes[i].value = values[i]; + } +}, getDisplayValue:function(tplData) { + tplData = tplData || this.displayTplData; + return this.getDisplayTpl().apply(tplData); +}, getRecordDisplayData:function(record) { + return record.data; +}, getValue:function() { + var me = this, store = me.getStore(), picker = me.picker, rawValue = me.getRawValue(), value = me.value; + if (!store.isEmptyStore && me.getDisplayValue() !== rawValue) { + me.displayTplData = undefined; + if (picker) { + me.valueCollection.suspendEvents(); + picker.getSelectionModel().deselectAll(); + me.valueCollection.resumeEvents(); + me.lastSelection = null; + } + if (store.isLoaded() && (me.multiSelect || me.forceSelection)) { + value = me.value = undefined; + } else { + value = me.value = rawValue; + } + } + me.value = value == null ? null : value; + return me.value; +}, getSubmitValue:function() { + var value = this.getValue(); + if (Ext.isEmpty(value)) { + value = ''; + } + return value; +}, isEqual:function(v1, v2) { + var fromArray = Ext.Array.from, i, len; + v1 = fromArray(v1); + v2 = fromArray(v2); + len = v1.length; + if (len !== v2.length) { + return false; + } + for (i = 0; i < len; i++) { + if (v2[i] !== v1[i]) { + return false; + } + } + return true; +}, clearValue:function() { + this.setValue(null); +}}); +Ext.define('Ext.picker.Month', {extend:Ext.Component, alias:'widget.monthpicker', alternateClassName:'Ext.MonthPicker', isMonthPicker:true, focusable:true, childEls:['bodyEl', 'prevEl', 'nextEl', 'monthEl', 'yearEl'], renderTpl:['\x3cdiv id\x3d"{id}-bodyEl" data-ref\x3d"bodyEl" class\x3d"{baseCls}-body"\x3e', '\x3cdiv id\x3d"{id}-monthEl" data-ref\x3d"monthEl" class\x3d"{baseCls}-months"\x3e', '\x3ctpl for\x3d"months"\x3e', '\x3cdiv class\x3d"{parent.baseCls}-item {parent.baseCls}-month"\x3e', '\x3ca style\x3d"{parent.monthStyle}" role\x3d"button" hidefocus\x3d"on" class\x3d"{parent.baseCls}-item-inner"\x3e{.}\x3c/a\x3e', +'\x3c/div\x3e', '\x3c/tpl\x3e', '\x3c/div\x3e', '\x3cdiv id\x3d"{id}-yearEl" data-ref\x3d"yearEl" class\x3d"{baseCls}-years"\x3e', '\x3cdiv class\x3d"{baseCls}-yearnav"\x3e', '\x3cdiv class\x3d"{baseCls}-yearnav-button-ct"\x3e', '\x3ca id\x3d"{id}-prevEl" data-ref\x3d"prevEl" class\x3d"{baseCls}-yearnav-button {baseCls}-yearnav-prev" hidefocus\x3d"on" role\x3d"button"\x3e\x3c/a\x3e', '\x3c/div\x3e', '\x3cdiv class\x3d"{baseCls}-yearnav-button-ct"\x3e', '\x3ca id\x3d"{id}-nextEl" data-ref\x3d"nextEl" class\x3d"{baseCls}-yearnav-button {baseCls}-yearnav-next" hidefocus\x3d"on" role\x3d"button"\x3e\x3c/a\x3e', +'\x3c/div\x3e', '\x3c/div\x3e', '\x3ctpl for\x3d"years"\x3e', '\x3cdiv class\x3d"{parent.baseCls}-item {parent.baseCls}-year"\x3e', '\x3ca hidefocus\x3d"on" class\x3d"{parent.baseCls}-item-inner" role\x3d"button"\x3e{.}\x3c/a\x3e', '\x3c/div\x3e', '\x3c/tpl\x3e', '\x3c/div\x3e', '\x3cdiv class\x3d"' + Ext.baseCSSPrefix + 'clear"\x3e\x3c/div\x3e', '\x3ctpl if\x3d"showButtons"\x3e', '\x3cdiv class\x3d"{baseCls}-buttons"\x3e{%', 'var me\x3dvalues.$comp, okBtn\x3dme.okBtn, cancelBtn\x3dme.cancelBtn;', +'okBtn.ownerLayout \x3d cancelBtn.ownerLayout \x3d me.componentLayout;', 'okBtn.ownerCt \x3d cancelBtn.ownerCt \x3d me;', 'Ext.DomHelper.generateMarkup(okBtn.getRenderTree(), out);', 'Ext.DomHelper.generateMarkup(cancelBtn.getRenderTree(), out);', '%}\x3c/div\x3e', '\x3c/tpl\x3e', '\x3c/div\x3e'], okText:'OK', cancelText:'Cancel', baseCls:Ext.baseCSSPrefix + 'monthpicker', showButtons:true, footerButtonUI:'default', measureWidth:35, measureMaxHeight:20, smallCls:Ext.baseCSSPrefix + 'monthpicker-small', +totalYears:10, yearOffset:5, monthOffset:6, initComponent:function() { + var me = this; + me.selectedCls = me.baseCls + '-selected'; + if (me.small) { + me.addCls(me.smallCls); + } + me.setValue(me.value); + me.activeYear = me.getYear((new Date).getFullYear() - 4, -4); + if (me.showButtons) { + me.okBtn = new Ext.button.Button({ui:me.footerButtonUI, text:me.okText, handler:me.onOkClick, scope:me}); + me.cancelBtn = new Ext.button.Button({ui:me.footerButtonUI, text:me.cancelText, handler:me.onCancelClick, scope:me}); + } + this.callParent(); +}, beforeRender:function() { + var me = this, i = 0, months = [], shortName = Ext.Date.getShortMonthName, monthLen = me.monthOffset, margin = me.monthMargin, style = ''; + if (me.padding && !me.width) { + me.cacheWidth(); + } + me.callParent(); + for (; i < monthLen; ++i) { + months.push(shortName(i), shortName(i + monthLen)); + } + if (Ext.isDefined(margin)) { + style = 'margin: 0 ' + margin + 'px;'; + } + Ext.apply(me.renderData, {months:months, years:me.getYears(), showButtons:me.showButtons, monthStyle:style}); +}, cacheWidth:function() { + var me = this, padding = me.parseBox(me.padding), widthEl = Ext.getBody().createChild({cls:me.baseCls + ' ' + me.borderBoxCls, style:'position:absolute;top:-1000px;left:-1000px;', html:'\x26nbsp;'}); + me.self.prototype.width = widthEl.getWidth() + padding.left + padding.right; + widthEl.destroy(); +}, afterRender:function() { + var me = this, body = me.bodyEl; + me.callParent(); + if (me.up('[floating\x3dtrue]')) { + me.el.on('mousedown', me.onElClick, me); + } + me.mon(body, 'click', me.onBodyClick, me); + me.mon(body, 'dblclick', me.onBodyClick, me); + me.years = body.select('.' + me.baseCls + '-year a'); + me.months = body.select('.' + me.baseCls + '-month a'); + me.backRepeater = new Ext.util.ClickRepeater(me.prevEl, {handler:Ext.Function.bind(me.adjustYear, me, [-me.totalYears])}); + me.prevEl.addClsOnOver(me.baseCls + '-yearnav-prev-over'); + me.nextRepeater = new Ext.util.ClickRepeater(me.nextEl, {handler:Ext.Function.bind(me.adjustYear, me, [me.totalYears])}); + me.nextEl.addClsOnOver(me.baseCls + '-yearnav-next-over'); + me.updateBody(); + if (!Ext.isDefined(me.monthMargin)) { + Ext.picker.Month.prototype.monthMargin = me.calculateMonthMargin(); + } +}, calculateMonthMargin:function() { + var me = this, months = me.months, first = months.first(), itemMargin = first.getMargin('l'); + while (itemMargin && me.getLargest() > me.measureMaxHeight) { + --itemMargin; + months.setStyle('margin', '0 ' + itemMargin + 'px'); + } + return itemMargin; +}, getLargest:function(months) { + var largest = 0; + this.months.each(function(item) { + var h = item.getHeight(); + if (h > largest) { + largest = h; + } + }); + return largest; +}, setValue:function(value) { + var me = this, active = me.activeYear, year; + if (!value) { + me.value = [null, null]; + } else { + if (Ext.isDate(value)) { + me.value = [value.getMonth(), value.getFullYear()]; + } else { + me.value = [value[0], value[1]]; + } + } + if (me.rendered) { + year = me.value[1]; + if (year !== null) { + if (year < active || year > active + me.yearOffset) { + me.activeYear = year - me.yearOffset + 1; + } + } + me.updateBody(); + } + return me; +}, getValue:function() { + return this.value; +}, hasSelection:function() { + var value = this.value; + return value[0] !== null && value[1] !== null; +}, getYears:function() { + var me = this, offset = me.yearOffset, start = me.activeYear, end = start + offset, i = start, years = []; + for (; i < end; ++i) { + years.push(i, i + offset); + } + return years; +}, updateBody:function() { + var me = this, years = me.years, months = me.months, yearNumbers = me.getYears(), cls = me.selectedCls, value = me.getYear(null), month = me.value[0], monthOffset = me.monthOffset, year, yearItems, y, yLen, el; + if (me.rendered) { + years.removeCls(cls); + months.removeCls(cls); + yearItems = years.elements; + yLen = yearItems.length; + for (y = 0; y < yLen; y++) { + el = Ext.fly(yearItems[y]); + year = yearNumbers[y]; + el.dom.innerHTML = year; + if (year === value) { + el.addCls(cls); + } + } + if (month !== null) { + if (month < monthOffset) { + month = month * 2; + } else { + month = (month - monthOffset) * 2 + 1; + } + months.item(month).addCls(cls); + } + } +}, getYear:function(defaultValue, offset) { + var year = this.value[1]; + offset = offset || 0; + return year === null ? defaultValue : year + offset; +}, onElClick:function(e) { + e.stopEvent(); +}, onBodyClick:function(e, t) { + var me = this, isDouble = e.type === 'dblclick'; + if (e.getTarget('.' + me.baseCls + '-month')) { + e.stopEvent(); + me.onMonthClick(t, isDouble); + } else { + if (e.getTarget('.' + me.baseCls + '-year')) { + e.stopEvent(); + me.onYearClick(t, isDouble); + } + } +}, adjustYear:function(offset) { + if (typeof offset !== 'number') { + offset = this.totalYears; + } + this.activeYear += offset; + this.updateBody(); +}, onOkClick:function() { + this.fireEvent('okclick', this, this.value); +}, onCancelClick:function() { + this.fireEvent('cancelclick', this); +}, onMonthClick:function(target, isDouble) { + var me = this; + me.value[0] = me.resolveOffset(me.months.indexOf(target), me.monthOffset); + me.updateBody(); + me.fireEvent('month' + (isDouble ? 'dbl' : '') + 'click', me, me.value); + me.fireEvent('select', me, me.value); +}, onYearClick:function(target, isDouble) { + var me = this; + me.value[1] = me.activeYear + me.resolveOffset(me.years.indexOf(target), me.yearOffset); + me.updateBody(); + me.fireEvent('year' + (isDouble ? 'dbl' : '') + 'click', me, me.value); + me.fireEvent('select', me, me.value); +}, resolveOffset:function(index, offset) { + if (index % 2 === 0) { + return index / 2; + } else { + return offset + Math.floor(index / 2); + } +}, beforeDestroy:function() { + var me = this; + me.years = me.months = null; + Ext.destroyMembers(me, 'backRepeater', 'nextRepeater', 'okBtn', 'cancelBtn'); + me.callParent(); +}, onDestroy:function() { + Ext.destroyMembers(this, 'okBtn', 'cancelBtn'); + this.callParent(); +}, privates:{finishRenderChildren:function() { + var me = this; + this.callParent(arguments); + if (this.showButtons) { + me.okBtn.finishRender(); + me.cancelBtn.finishRender(); + } +}}}); +Ext.define('Ext.theme.neptune.picker.Month', {override:'Ext.picker.Month', measureMaxHeight:36}); +Ext.define('Ext.theme.triton.picker.Month', {override:'Ext.picker.Month', footerButtonUI:'default-toolbar', calculateMonthMargin:Ext.emptyFn}); +Ext.define('Ext.picker.Date', {extend:Ext.Component, alias:'widget.datepicker', alternateClassName:'Ext.DatePicker', todayText:'Today', ariaTitle:'Date Picker: {0}', ariaTitleDateFormat:'F d', todayTip:'{0} (Spacebar)', minText:'This date is before the minimum date', ariaMinText:'This date is before the minimum date', maxText:'This date is after the maximum date', ariaMaxText:'This date is after the maximum date', disabledDaysText:'Disabled', ariaDisabledDaysText:'This day of week is disabled', disabledDatesText:'Disabled', +ariaDisabledDatesText:'This date is disabled', nextText:'Next Month (Control+Right)', prevText:'Previous Month (Control+Left)', monthYearText:'Choose a month (Control+Up/Down to move years)', monthYearFormat:'F Y', startDay:0, showToday:true, disableAnim:false, baseCls:Ext.baseCSSPrefix + 'datepicker', longDayFormat:'F d, Y', footerButtonUI:'default', isDatePicker:true, ariaRole:'region', focusable:true, childEls:['innerEl', 'eventEl', 'prevEl', 'nextEl', 'middleBtnEl', 'footerEl'], border:true, +renderTpl:['\x3cdiv id\x3d"{id}-innerEl" data-ref\x3d"innerEl" role\x3d"presentation"\x3e', '\x3cdiv class\x3d"{baseCls}-header"\x3e', '\x3cdiv id\x3d"{id}-prevEl" data-ref\x3d"prevEl" class\x3d"{baseCls}-prev {baseCls}-arrow" role\x3d"presentation" title\x3d"{prevText}"\x3e\x3c/div\x3e', '\x3cdiv id\x3d"{id}-middleBtnEl" data-ref\x3d"middleBtnEl" class\x3d"{baseCls}-month" role\x3d"heading"\x3e{%this.renderMonthBtn(values, out)%}\x3c/div\x3e', '\x3cdiv id\x3d"{id}-nextEl" data-ref\x3d"nextEl" class\x3d"{baseCls}-next {baseCls}-arrow" role\x3d"presentation" title\x3d"{nextText}"\x3e\x3c/div\x3e', +'\x3c/div\x3e', '\x3ctable role\x3d"grid" id\x3d"{id}-eventEl" data-ref\x3d"eventEl" class\x3d"{baseCls}-inner" cellspacing\x3d"0" tabindex\x3d"0"\x3e', '\x3cthead\x3e', '\x3ctr role\x3d"row"\x3e', '\x3ctpl for\x3d"dayNames"\x3e', '\x3cth role\x3d"columnheader" class\x3d"{parent.baseCls}-column-header" aria-label\x3d"{.}"\x3e', '\x3cdiv role\x3d"presentation" class\x3d"{parent.baseCls}-column-header-inner"\x3e{.:this.firstInitial}\x3c/div\x3e', '\x3c/th\x3e', '\x3c/tpl\x3e', '\x3c/tr\x3e', '\x3c/thead\x3e', +'\x3ctbody\x3e', '\x3ctr role\x3d"row"\x3e', '\x3ctpl for\x3d"days"\x3e', '{#:this.isEndOfWeek}', '\x3ctd role\x3d"gridcell"\x3e', '\x3cdiv hidefocus\x3d"on" class\x3d"{parent.baseCls}-date"\x3e\x3c/div\x3e', '\x3c/td\x3e', '\x3c/tpl\x3e', '\x3c/tr\x3e', '\x3c/tbody\x3e', '\x3c/table\x3e', '\x3ctpl if\x3d"showToday"\x3e', '\x3cdiv id\x3d"{id}-footerEl" data-ref\x3d"footerEl" role\x3d"presentation" class\x3d"{baseCls}-footer"\x3e{%this.renderTodayBtn(values, out)%}\x3c/div\x3e', '\x3c/tpl\x3e', '\x3cdiv id\x3d"{id}-todayText" class\x3d"' + +Ext.baseCSSPrefix + 'hidden-clip"\x3e{todayText}.\x3c/div\x3e', '\x3cdiv id\x3d"{id}-ariaMinText" class\x3d"' + Ext.baseCSSPrefix + 'hidden-clip"\x3e{ariaMinText}.\x3c/div\x3e', '\x3cdiv id\x3d"{id}-ariaMaxText" class\x3d"' + Ext.baseCSSPrefix + 'hidden-clip"\x3e{ariaMaxText}.\x3c/div\x3e', '\x3cdiv id\x3d"{id}-ariaDisabledDaysText" class\x3d"' + Ext.baseCSSPrefix + 'hidden-clip"\x3e{ariaDisabledDaysText}.\x3c/div\x3e', '\x3cdiv id\x3d"{id}-ariaDisabledDatesText" class\x3d"' + Ext.baseCSSPrefix + +'hidden-clip"\x3e{ariaDisabledDatesText}.\x3c/div\x3e', '\x3c/div\x3e', {firstInitial:function(value) { + return Ext.picker.Date.prototype.getDayInitial(value); +}, isEndOfWeek:function(value) { + value--; + var end = value % 7 === 0 && value !== 0; + return end ? '\x3c/tr\x3e\x3ctr role\x3d"row"\x3e' : ''; +}, renderTodayBtn:function(values, out) { + Ext.DomHelper.generateMarkup(values.$comp.todayBtn.getRenderTree(), out); +}, renderMonthBtn:function(values, out) { + Ext.DomHelper.generateMarkup(values.$comp.monthBtn.getRenderTree(), out); +}}], initHour:12, numDays:42, initComponent:function() { + var me = this, clearTime = Ext.Date.clearTime; + me.selectedCls = me.baseCls + '-selected'; + me.disabledCellCls = me.baseCls + '-disabled'; + me.prevCls = me.baseCls + '-prevday'; + me.activeCls = me.baseCls + '-active'; + me.cellCls = me.baseCls + '-cell'; + me.nextCls = me.baseCls + '-prevday'; + me.todayCls = me.baseCls + '-today'; + if (!me.format) { + me.format = Ext.Date.defaultFormat; + } + if (!me.dayNames) { + me.dayNames = Ext.Date.dayNames; + } + me.dayNames = me.dayNames.slice(me.startDay).concat(me.dayNames.slice(0, me.startDay)); + me.callParent(); + me.value = me.value ? clearTime(me.value, true) : clearTime(new Date); + me.initDisabledDays(); +}, getRefOwner:function() { + return this.pickerField || this.callParent(); +}, getRefItems:function() { + var results = [], monthBtn = this.monthBtn, todayBtn = this.todayBtn; + if (monthBtn) { + results.push(monthBtn); + } + if (todayBtn) { + results.push(todayBtn); + } + return results; +}, beforeRender:function() { + var me = this, encode = Ext.String.htmlEncode, days = new Array(me.numDays), today = Ext.Date.format(new Date, me.format); + if (me.padding && !me.width) { + me.cacheWidth(); + } + me.monthBtn = new Ext.button.Split({ownerCt:me, ownerLayout:me.getComponentLayout(), text:'', tooltip:me.monthYearText, tabIndex:-1, ariaRole:'presentation', listeners:{click:me.doShowMonthPicker, arrowclick:me.doShowMonthPicker, scope:me}}); + if (me.showToday) { + me.todayBtn = new Ext.button.Button({ui:me.footerButtonUI, ownerCt:me, ownerLayout:me.getComponentLayout(), text:Ext.String.format(me.todayText, today), tooltip:Ext.String.format(me.todayTip, today), tooltipType:'title', tabIndex:-1, ariaRole:'presentation', handler:me.selectToday, scope:me}); + } + me.callParent(); + Ext.applyIf(me, {renderData:{}}); + Ext.apply(me.renderData, {dayNames:me.dayNames, showToday:me.showToday, prevText:encode(me.prevText), nextText:encode(me.nextText), todayText:encode(me.todayText), ariaMinText:encode(me.ariaMinText), ariaMaxText:encode(me.ariaMaxText), ariaDisabledDaysText:encode(me.ariaDisabledDaysText), ariaDisabledDatesText:encode(me.ariaDisabledDatesText), days:days}); + me.protoEl.unselectable(); +}, cacheWidth:function() { + var me = this, padding = me.parseBox(me.padding), widthEl = Ext.getBody().createChild({cls:me.baseCls + ' ' + me.borderBoxCls, style:'position:absolute;top:-1000px;left:-1000px;'}); + me.self.prototype.width = widthEl.getWidth() + padding.left + padding.right; + widthEl.destroy(); +}, onRender:function(container, position) { + var me = this; + me.callParent(arguments); + me.cells = me.eventEl.select('tbody td'); + me.textNodes = me.eventEl.query('tbody td div'); + me.eventEl.set({'aria-labelledby':me.monthBtn.id}); + me.mon(me.eventEl, {scope:me, mousewheel:me.handleMouseWheel, click:{fn:me.handleDateClick, delegate:'div.' + me.baseCls + '-date'}}); +}, initEvents:function() { + var me = this, pickerField = me.pickerField, eDate = Ext.Date, day = eDate.DAY; + me.callParent(); + if (pickerField) { + me.el.on('mousedown', me.onMouseDown, me); + } + me.monthBtn.el.on('mousedown', me.onMouseDown, me); + me.prevRepeater = new Ext.util.ClickRepeater(me.prevEl, {handler:me.showPrevMonth, scope:me, mousedownStopEvent:true}); + me.nextRepeater = new Ext.util.ClickRepeater(me.nextEl, {handler:me.showNextMonth, scope:me, mousedownStopEvent:true}); + me.keyNav = new Ext.util.KeyNav(me.eventEl, Ext.apply({scope:me, left:function(e) { + if (e.ctrlKey) { + e.preventDefault(); + me.showPrevMonth(); + } else { + me.update(eDate.add(me.activeDate, day, -1)); + } + }, right:function(e) { + if (e.ctrlKey) { + e.preventDefault(); + me.showNextMonth(); + } else { + me.update(eDate.add(me.activeDate, day, 1)); + } + }, up:function(e) { + if (e.ctrlKey) { + me.showNextYear(); + } else { + me.update(eDate.add(me.activeDate, day, -7)); + } + }, down:function(e) { + if (e.ctrlKey) { + me.showPrevYear(); + } else { + me.update(eDate.add(me.activeDate, day, 7)); + } + }, pageUp:function(e) { + if (e.ctrlKey) { + me.showPrevYear(); + } else { + me.showPrevMonth(); + } + }, pageDown:function(e) { + if (e.ctrlKey) { + me.showNextYear(); + } else { + me.showNextMonth(); + } + }, tab:function(e) { + me.handleTabKey(e); + return true; + }, enter:function(e) { + me.handleDateClick(e, me.activeCell.firstChild); + }, space:function() { + me.setValue(new Date(me.activeCell.firstChild.dateValue)); + var startValue = me.startValue, value = me.value, pickerValue; + if (pickerField) { + pickerValue = pickerField.getValue(); + if (pickerValue && startValue && pickerValue.getTime() === value.getTime()) { + pickerField.setValue(startValue); + } else { + pickerField.setValue(value); + } + } + }, home:function(e) { + me.update(eDate.getFirstDateOfMonth(me.activeDate)); + }, end:function(e) { + me.update(eDate.getLastDateOfMonth(me.activeDate)); + }}, me.keyNavConfig)); + if (me.disabled) { + me.syncDisabled(true); + } + me.update(me.value); +}, onMouseDown:function(e) { + e.preventDefault(); +}, handleTabKey:function(e) { + var me = this, t = me.getSelectedDate(me.activeDate), handler = me.handler; + if (!me.disabled && t.dateValue && !Ext.fly(t.parentNode).hasCls(me.disabledCellCls)) { + me.setValue(new Date(t.dateValue)); + me.fireEvent('select', me, me.value); + if (handler) { + handler.call(me.scope || me, me, me.value); + } + me.onSelect(); + } else { + me.fireEventArgs('tabout', [me]); + } +}, getSelectedDate:function(date) { + var me = this, t = date.getTime(), cells = me.cells, cls = me.selectedCls, cellItems = cells.elements, cLen = cellItems.length, cell, c; + cells.removeCls(cls); + for (c = 0; c < cLen; c++) { + cell = cellItems[c].firstChild; + if (cell.dateValue === t) { + return cell; + } + } + return null; +}, initDisabledDays:function() { + var me = this, dd = me.disabledDates, re = '(?:', len, d, dLen, dI; + if (!me.disabledDatesRE && dd) { + len = dd.length - 1; + dLen = dd.length; + for (d = 0; d < dLen; d++) { + dI = dd[d]; + re += Ext.isDate(dI) ? '^' + Ext.String.escapeRegex(Ext.Date.dateFormat(dI, me.format)) + '$' : dI; + if (d !== len) { + re += '|'; + } + } + me.disabledDatesRE = new RegExp(re + ')'); + } +}, setDisabledDates:function(dd) { + var me = this; + if (Ext.isArray(dd)) { + me.disabledDates = dd; + me.disabledDatesRE = null; + } else { + me.disabledDatesRE = dd; + } + me.initDisabledDays(); + me.update(me.value, true); + return me; +}, setDisabledDays:function(dd) { + this.disabledDays = dd; + return this.update(this.value, true); +}, setMinDate:function(dt) { + this.minDate = dt; + return this.update(this.value, true); +}, setMaxDate:function(dt) { + this.maxDate = dt; + return this.update(this.value, true); +}, setValue:function(value) { + this.value = Ext.Date.clearTime(value || new Date, true); + return this.update(this.value); +}, getValue:function() { + return this.value; +}, getDayInitial:function(value) { + return value.substr(0, 1); +}, onEnable:function() { + var me = this; + me.callParent(); + me.syncDisabled(false); + me.update(me.activeDate); +}, onShow:function() { + var me = this; + me.callParent(); + me.syncDisabled(false); + if (me.pickerField) { + me.startValue = me.pickerField.getValue(); + } +}, onHide:function() { + this.callParent(); + this.syncDisabled(true); +}, onDisable:function() { + this.callParent(); + this.syncDisabled(true); +}, getActive:function() { + return this.activeDate || this.value; +}, runAnimation:function(isHide) { + var picker = this.monthPicker, options = {duration:200, callback:function() { + picker.setVisible(!isHide); + }}; + if (isHide) { + picker.el.slideOut('t', options); + } else { + picker.el.slideIn('t', options); + } +}, hideMonthPicker:function(animate) { + var me = this, picker = me.monthPicker; + if (picker && picker.isVisible()) { + if (me.shouldAnimate(animate)) { + me.runAnimation(true); + } else { + picker.hide(); + } + } + return me; +}, doShowMonthPicker:function() { + this.showMonthPicker(); +}, doHideMonthPicker:function() { + this.hideMonthPicker(); +}, showMonthPicker:function(animate) { + var me = this, el = me.el, picker; + if (me.rendered && !me.disabled) { + picker = me.createMonthPicker(); + if (!picker.isVisible()) { + picker.setValue(me.getActive()); + picker.setSize(el.getSize()); + picker.floatParent = null; + picker.setPosition(-el.getBorderWidth('l'), -el.getBorderWidth('t')); + if (me.shouldAnimate(animate)) { + me.runAnimation(false); + } else { + picker.show(); + } + } + } + return me; +}, shouldAnimate:function(animate) { + return Ext.isDefined(animate) ? animate : !this.disableAnim; +}, createMonthPicker:function() { + var me = this, picker = me.monthPicker; + if (!picker) { + me.monthPicker = picker = new Ext.picker.Month({renderTo:me.el, ownerCmp:me, floating:true, padding:me.padding, shadow:false, small:me.showToday === false, footerButtonUI:me.footerButtonUI, listeners:{scope:me, cancelclick:me.onCancelClick, okclick:me.onOkClick, yeardblclick:me.onOkClick, monthdblclick:me.onOkClick}}); + if (!me.disableAnim) { + picker.el.setStyle('display', 'none'); + } + picker.hide(); + me.on('beforehide', me.doHideMonthPicker, me); + } + return picker; +}, onOkClick:function(picker, value) { + var me = this, month = value[0], year = value[1], date = new Date(year, month, me.getActive().getDate()); + if (date.getMonth() !== month) { + date = Ext.Date.getLastDateOfMonth(new Date(year, month, 1)); + } + me.setValue(date); + me.hideMonthPicker(); +}, onCancelClick:function() { + this.selectedUpdate(this.activeDate); + this.hideMonthPicker(); +}, showPrevMonth:function(e) { + return this.setValue(Ext.Date.add(this.activeDate, Ext.Date.MONTH, -1)); +}, showNextMonth:function(e) { + return this.setValue(Ext.Date.add(this.activeDate, Ext.Date.MONTH, 1)); +}, showPrevYear:function() { + return this.setValue(Ext.Date.add(this.activeDate, Ext.Date.YEAR, -1)); +}, showNextYear:function() { + return this.setValue(Ext.Date.add(this.activeDate, Ext.Date.YEAR, 1)); +}, handleMouseWheel:function(e) { + var delta; + e.stopEvent(); + if (!this.disabled) { + delta = e.getWheelDelta(); + if (delta > 0) { + this.showPrevMonth(); + } else { + if (delta < 0) { + this.showNextMonth(); + } + } + } +}, handleDateClick:function(e, t) { + var me = this, handler = me.handler; + e.stopEvent(); + if (!me.disabled && t.dateValue && !Ext.fly(t.parentNode).hasCls(me.disabledCellCls)) { + me.setValue(new Date(t.dateValue)); + me.fireEvent('select', me, me.value); + if (handler) { + handler.call(me.scope || me, me, me.value); + } + me.onSelect(); + } +}, onSelect:function() { + if (this.hideOnSelect) { + this.hide(); + } +}, selectToday:function() { + var me = this, btn = me.todayBtn, handler = me.handler; + if (btn && !btn.disabled) { + me.setValue(Ext.Date.clearTime(new Date)); + me.fireEvent('select', me, me.value); + if (handler) { + handler.call(me.scope || me, me, me.value); + } + me.onSelect(); + } + return me; +}, selectedUpdate:function(date) { + var me = this, t = date.getTime(), cells = me.cells, cls = me.selectedCls, c, cLen = cells.getCount(), cell; + me.eventEl.dom.setAttribute('aria-busy', 'true'); + cell = me.activeCell; + if (cell) { + Ext.fly(cell).removeCls(cls); + cell.setAttribute('aria-selected', false); + } + for (c = 0; c < cLen; c++) { + cell = cells.item(c); + if (me.textNodes[c].dateValue === t) { + me.activeCell = cell.dom; + me.eventEl.dom.setAttribute('aria-activedescendant', cell.dom.id); + cell.dom.setAttribute('aria-selected', true); + cell.addCls(cls); + me.fireEvent('highlightitem', me, cell); + break; + } + } + me.eventEl.dom.removeAttribute('aria-busy'); +}, fullUpdate:function(date) { + var me = this, cells = me.cells.elements, textNodes = me.textNodes, disabledCls = me.disabledCellCls, eDate = Ext.Date, i = 0, extraDays = 0, newDate = +eDate.clearTime(date, true), today = +eDate.clearTime(new Date), min = me.minDate ? eDate.clearTime(me.minDate, true) : Number.NEGATIVE_INFINITY, max = me.maxDate ? eDate.clearTime(me.maxDate, true) : Number.POSITIVE_INFINITY, ddMatch = me.disabledDatesRE, ddText = me.disabledDatesText, ddays = me.disabledDays ? me.disabledDays.join('') : false, + ddaysText = me.disabledDaysText, format = me.format, days = eDate.getDaysInMonth(date), firstOfMonth = eDate.getFirstDateOfMonth(date), startingPos = firstOfMonth.getDay() - me.startDay, previousMonth = eDate.add(date, eDate.MONTH, -1), ariaTitleDateFormat = me.ariaTitleDateFormat, prevStart, current, disableToday, tempDate, setCellClass, html, cls, formatValue, value; + if (startingPos < 0) { + startingPos += 7; + } + days += startingPos; + prevStart = eDate.getDaysInMonth(previousMonth) - startingPos; + current = new Date(previousMonth.getFullYear(), previousMonth.getMonth(), prevStart, me.initHour); + if (me.showToday) { + tempDate = eDate.clearTime(new Date); + disableToday = tempDate < min || tempDate > max || ddMatch && format && ddMatch.test(eDate.dateFormat(tempDate, format)) || ddays && ddays.indexOf(tempDate.getDay()) !== -1; + if (!me.disabled) { + me.todayBtn.setDisabled(disableToday); + } + } + setCellClass = function(cellIndex, cls) { + var cell = cells[cellIndex], describedBy = []; + if (!cell.hasAttribute('id')) { + cell.setAttribute('id', me.id + '-cell-' + cellIndex); + } + value = +eDate.clearTime(current, true); + cell.firstChild.dateValue = value; + cell.setAttribute('aria-label', eDate.format(current, ariaTitleDateFormat)); + cell.removeAttribute('aria-describedby'); + cell.removeAttribute('data-qtip'); + if (value === today) { + cls += ' ' + me.todayCls; + describedBy.push(me.id + '-todayText'); + } + if (value === newDate) { + me.activeCell = cell; + me.eventEl.dom.setAttribute('aria-activedescendant', cell.id); + cell.setAttribute('aria-selected', true); + cls += ' ' + me.selectedCls; + me.fireEvent('highlightitem', me, cell); + } else { + cell.setAttribute('aria-selected', false); + } + if (value < min) { + cls += ' ' + disabledCls; + describedBy.push(me.id + '-ariaMinText'); + cell.setAttribute('data-qtip', me.minText); + } else { + if (value > max) { + cls += ' ' + disabledCls; + describedBy.push(me.id + '-ariaMaxText'); + cell.setAttribute('data-qtip', me.maxText); + } else { + if (ddays && ddays.indexOf(current.getDay()) !== -1) { + cell.setAttribute('data-qtip', ddaysText); + describedBy.push(me.id + '-ariaDisabledDaysText'); + cls += ' ' + disabledCls; + } else { + if (ddMatch && format) { + formatValue = eDate.dateFormat(current, format); + if (ddMatch.test(formatValue)) { + cell.setAttribute('data-qtip', ddText.replace('%0', formatValue)); + describedBy.push(me.id + '-ariaDisabledDatesText'); + cls += ' ' + disabledCls; + } + } + } + } + } + if (describedBy.length) { + cell.setAttribute('aria-describedby', describedBy.join(' ')); + } + cell.className = cls + ' ' + me.cellCls; + }; + me.eventEl.dom.setAttribute('aria-busy', 'true'); + for (; i < me.numDays; ++i) { + if (i < startingPos) { + html = ++prevStart; + cls = me.prevCls; + } else { + if (i >= days) { + html = ++extraDays; + cls = me.nextCls; + } else { + html = i - startingPos + 1; + cls = me.activeCls; + } + } + textNodes[i].innerHTML = html; + current.setDate(current.getDate() + 1); + setCellClass(i, cls); + } + me.eventEl.dom.removeAttribute('aria-busy'); + me.monthBtn.setText(Ext.Date.format(date, me.monthYearFormat)); +}, update:function(date, forceRefresh) { + var me = this, active = me.activeDate; + if (me.rendered) { + me.activeDate = date; + if (!forceRefresh && active && me.el && active.getMonth() === date.getMonth() && active.getFullYear() === date.getFullYear()) { + me.selectedUpdate(date, active); + } else { + me.fullUpdate(date, active); + } + } + return me; +}, beforeDestroy:function() { + var me = this; + if (me.rendered) { + Ext.destroy(me.keyNav, me.monthPicker, me.monthBtn, me.nextRepeater, me.prevRepeater, me.todayBtn, me.todayElSpan); + delete me.textNodes; + delete me.cells.elements; + } + me.callParent(); +}, privates:{finishRenderChildren:function() { + var me = this; + me.callParent(); + me.monthBtn.finishRender(); + if (me.showToday) { + me.todayBtn.finishRender(); + } +}, getFocusEl:function() { + return this.eventEl; +}, syncDisabled:function(disabled) { + var me = this, keyNav = me.keyNav; + if (keyNav) { + keyNav.setDisabled(disabled); + me.prevRepeater.setDisabled(disabled); + me.nextRepeater.setDisabled(disabled); + if (me.todayBtn) { + me.todayBtn.setDisabled(disabled); + } + } +}}}); +Ext.define('Ext.theme.triton.picker.Date', {override:'Ext.picker.Date', footerButtonUI:'default-toolbar'}); +Ext.define('Ext.form.field.Date', {extend:Ext.form.field.Picker, alias:'widget.datefield', alternateClassName:['Ext.form.DateField', 'Ext.form.Date'], format:'m/d/Y', ariaFormat:'M j Y', altFormats:'m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j', disabledDaysText:'Disabled', ariaDisabledDaysText:'This day of week is disabled', disabledDatesText:'Disabled', ariaDisabledDatesText:'This date cannot be selected', minText:'The date in this field must be equal to or after {0}', +ariaMinText:'The date must be equal to or after {0}', maxText:'The date in this field must be equal to or before {0}', ariaMaxText:'The date must be equal to or before {0}', invalidText:'{0} is not a valid date - it must be in the format {1}', formatText:'Expected date format: {0}', triggerCls:Ext.baseCSSPrefix + 'form-date-trigger', showToday:true, useStrict:undefined, initTime:'12', initTimeFormat:'H', matchFieldWidth:false, startDay:0, valuePublishEvent:['select', 'blur'], ariaRole:'combobox', +initComponent:function() { + var me = this, isString = Ext.isString, min, max; + min = me.minValue; + max = me.maxValue; + if (isString(min)) { + me.minValue = me.parseDate(min); + } + if (isString(max)) { + me.maxValue = me.parseDate(max); + } + me.disabledDatesRE = null; + me.initDisabledDays(); + me.callParent(); +}, initValue:function() { + var me = this, value = me.value; + if (Ext.isString(value)) { + me.value = me.rawToValue(value); + } + me.callParent(); +}, initDisabledDays:function() { + if (this.disabledDates) { + var dd = this.disabledDates, len = dd.length - 1, re = '(?:', d, dLen = dd.length, date; + for (d = 0; d < dLen; d++) { + date = dd[d]; + re += Ext.isDate(date) ? '^' + Ext.String.escapeRegex(date.dateFormat(this.format)) + '$' : date; + if (d !== len) { + re += '|'; + } + } + this.disabledDatesRE = new RegExp(re + ')'); + } +}, setDisabledDates:function(disabledDates) { + var me = this, picker = me.picker; + me.disabledDates = disabledDates; + me.initDisabledDays(); + if (picker) { + picker.setDisabledDates(me.disabledDatesRE); + } +}, setDisabledDays:function(disabledDays) { + var picker = this.picker; + this.disabledDays = disabledDays; + if (picker) { + picker.setDisabledDays(disabledDays); + } +}, setMinValue:function(value) { + var me = this, picker = me.picker, minValue = Ext.isString(value) ? me.parseDate(value) : value; + me.minValue = minValue; + if (picker) { + picker.minText = Ext.String.format(me.minText, me.formatDate(me.minValue)); + picker.setMinDate(minValue); + } +}, setMaxValue:function(value) { + var me = this, picker = me.picker, maxValue = Ext.isString(value) ? me.parseDate(value) : value; + me.maxValue = maxValue; + if (picker) { + picker.maxText = Ext.String.format(me.maxText, me.formatDate(me.maxValue)); + picker.setMaxDate(maxValue); + } +}, getErrors:function(value) { + value = arguments.length > 0 ? value : this.formatDate(this.processRawValue(this.getRawValue())); + var me = this, format = Ext.String.format, clearTime = Ext.Date.clearTime, errors = me.callParent([value]), disabledDays = me.disabledDays, disabledDatesRE = me.disabledDatesRE, minValue = me.minValue, maxValue = me.maxValue, len = disabledDays ? disabledDays.length : 0, i = 0, svalue, fvalue, day, time; + if (value === null || value.length < 1) { + return errors; + } + svalue = value; + value = me.parseDate(value); + if (!value) { + errors.push(format(me.invalidText, svalue, Ext.Date.unescapeFormat(me.format))); + return errors; + } + time = value.getTime(); + if (minValue && time < clearTime(minValue).getTime()) { + errors.push(format(me.minText, me.formatDate(minValue))); + } + if (maxValue && time > clearTime(maxValue).getTime()) { + errors.push(format(me.maxText, me.formatDate(maxValue))); + } + if (disabledDays) { + day = value.getDay(); + for (; i < len; i++) { + if (day === disabledDays[i]) { + errors.push(me.disabledDaysText); + break; + } + } + } + fvalue = me.formatDate(value); + if (disabledDatesRE && disabledDatesRE.test(fvalue)) { + errors.push(format(me.disabledDatesText, fvalue)); + } + return errors; +}, rawToValue:function(rawValue) { + return this.parseDate(rawValue) || rawValue || null; +}, valueToRaw:function(value) { + return this.formatDate(this.parseDate(value)); +}, safeParse:function(value, format) { + var me = this, utilDate = Ext.Date, result = null, strict = me.useStrict, parsedDate; + if (utilDate.formatContainsHourInfo(format)) { + result = utilDate.parse(value, format, strict); + } else { + parsedDate = utilDate.parse(value + ' ' + me.initTime, format + ' ' + me.initTimeFormat, strict); + if (parsedDate) { + result = utilDate.clearTime(parsedDate); + } + } + return result; +}, getSubmitValue:function() { + var format = this.submitFormat || this.format, value = this.getValue(); + return value ? Ext.Date.format(value, format) : ''; +}, parseDate:function(value) { + if (!value || Ext.isDate(value)) { + return value; + } + var me = this, val = me.safeParse(value, me.format), altFormats = me.altFormats, altFormatsArray = me.altFormatsArray, i = 0, len; + if (!val && altFormats) { + altFormatsArray = altFormatsArray || altFormats.split('|'); + len = altFormatsArray.length; + for (; i < len && !val; ++i) { + val = me.safeParse(value, altFormatsArray[i]); + } + } + return val; +}, formatDate:function(date, format) { + return Ext.isDate(date) ? Ext.Date.dateFormat(date, format || this.format) : date; +}, createPicker:function() { + var me = this, format = Ext.String.format; + return new Ext.picker.Date({pickerField:me, floating:true, preventRefocus:true, hidden:true, minDate:me.minValue, maxDate:me.maxValue, disabledDatesRE:me.disabledDatesRE, disabledDatesText:me.disabledDatesText, ariaDisabledDatesText:me.ariaDisabledDatesText, disabledDays:me.disabledDays, disabledDaysText:me.disabledDaysText, ariaDisabledDaysText:me.ariaDisabledDaysText, format:me.format, showToday:me.showToday, startDay:me.startDay, minText:format(me.minText, me.formatDate(me.minValue)), ariaMinText:format(me.ariaMinText, + me.formatDate(me.minValue, me.ariaFormat)), maxText:format(me.maxText, me.formatDate(me.maxValue)), ariaMaxText:format(me.ariaMaxText, me.formatDate(me.maxValue, me.ariaFormat)), listeners:{scope:me, select:me.onSelect, tabout:me.onTabOut}, keyNavConfig:{esc:function() { + me.inputEl.focus(); + me.collapse(); + }}}); +}, onSelect:function(m, d) { + var me = this; + me.setValue(d); + me.fireEvent('select', me, d); + me.onTabOut(m); +}, onTabOut:function(picker) { + this.inputEl.focus(); + this.collapse(); +}, onExpand:function() { + var value = this.getValue(); + this.picker.setValue(Ext.isDate(value) ? value : new Date); +}, onBlur:function(e) { + var me = this, v = me.rawToValue(me.getRawValue()); + if (Ext.isDate(v)) { + me.setValue(v); + } + me.callParent([e]); +}}); +Ext.define('Ext.tip.Tip', {extend:Ext.panel.Panel, alias:'widget.tip', alternateClassName:'Ext.Tip', minWidth:40, maxWidth:500, shadow:'sides', defaultAlign:'tl-bl?', constrainPosition:true, autoRender:true, hidden:true, baseCls:Ext.baseCSSPrefix + 'tip', focusOnToFront:false, maskOnDisable:false, closeAction:'hide', alwaysFramed:true, frameHeader:false, initComponent:function() { + var me = this; + me.floating = Ext.apply({}, {shadow:me.shadow, constrain:me.constrainPosition}, me.self.prototype.floating); + me.callParent(arguments); + me.constrain = me.constrain || me.constrainPosition; +}, showAt:function(xy) { + var me = this; + this.callParent(arguments); + if (me.isVisible()) { + me.setPagePosition(xy[0], xy[1]); + if (me.constrainPosition || me.constrain) { + me.doConstrain(); + } + me.toFront(true); + } +}, privates:{initDraggable:function() { + var me = this; + me.draggable = {el:me.getDragEl(), delegate:me.header.el, constrain:me, constrainTo:me.el.dom.parentNode}; + Ext.Component.prototype.initDraggable.call(me); +}}, ghost:undefined, unghost:undefined}); +Ext.define('Ext.tip.ToolTip', {extend:Ext.tip.Tip, alias:'widget.tooltip', alternateClassName:'Ext.ToolTip', autoHide:true, showDelay:500, hideDelay:200, dismissDelay:5000, trackMouse:false, anchorToTarget:true, anchorOffset:0, targetCounter:0, quickShowInterval:250, hideAction:'hide', fadeOutDuration:1000, ariaRole:'tooltip', initComponent:function() { + var me = this; + me.callParent(arguments); + me.lastActive = new Date; + me.setTarget(me.target); + me.origAnchor = me.anchor; +}, onRender:function(ct, position) { + var me = this; + me.callParent(arguments); + me.anchorCls = Ext.baseCSSPrefix + 'tip-anchor-' + me.getAnchorPosition(); + if (me.sticky) { + me.el.dom.setAttribute('data-sticky', true); + } + me.anchorEl = me.el.createChild({role:'presentation', cls:Ext.baseCSSPrefix + 'tip-anchor ' + me.anchorCls}); +}, setTarget:function(target) { + var me = this, t = Ext.get(target), tg; + if (me.target) { + tg = Ext.get(me.target); + if (Ext.supports.Touch) { + me.mun(tg, 'tap', me.onTargetOver, me); + } else { + me.mun(tg, {mouseover:me.onTargetOver, mouseout:me.onTargetOut, mousemove:me.onMouseMove, scope:me}); + } + } + me.target = t; + if (t) { + if (Ext.supports.Touch) { + me.mon(t, {tap:me.onTargetOver, scope:me}); + } else { + me.mon(t, {mouseover:me.onTargetOver, mouseout:me.onTargetOut, mousemove:me.onMouseMove, scope:me}); + } + } + if (me.anchor) { + me.anchorTarget = me.target; + } +}, onMouseMove:function(e) { + var me = this, t, xy; + if (!me.target || me.target.contains(e.target)) { + t = me.delegate ? e.getTarget(me.delegate) : me.triggerElement = true; + if (t) { + me.targetXY = e.getXY(); + if (t === me.triggerElement) { + if (!me.hidden && me.trackMouse) { + xy = me.getTargetXY(); + if (me.constrainPosition) { + xy = me.el.adjustForConstraints(xy, me.el.parent()); + } + me.setPagePosition(xy); + } + } else { + me.hide(); + me.lastActive = new Date(0); + me.onTargetOver(e); + } + } else { + if (!me.closable && me.isVisible() && me.autoHide !== false) { + me.delayHide(); + } + } + } +}, getTargetXY:function() { + var me = this, mouseOffset, offsets, xy, dw, dh, de, bd, scrollX, scrollY, axy, sz, constrainPosition; + if (me.delegate) { + me.anchorTarget = me.triggerElement; + } + if (me.anchor) { + me.targetCounter++; + offsets = me.getOffsets(); + xy = me.anchorToTarget && !me.trackMouse ? me.getAlignToXY(me.anchorTarget, me.getAnchorAlign()) : me.targetXY; + dw = Ext.Element.getViewportWidth() - 5; + dh = Ext.Element.getViewportHeight() - 5; + de = document.documentElement; + bd = document.body; + scrollX = (de.scrollLeft || bd.scrollLeft || 0) + 5; + scrollY = (de.scrollTop || bd.scrollTop || 0) + 5; + axy = [xy[0] + offsets[0], xy[1] + offsets[1]]; + sz = me.getSize(); + constrainPosition = me.constrainPosition; + me.anchorEl.removeCls(me.anchorCls); + if (me.targetCounter < 2 && constrainPosition) { + if (axy[0] < scrollX) { + if (me.anchorToTarget) { + me.defaultAlign = 'l-r'; + if (me.mouseOffset) { + me.mouseOffset[0] *= -1; + } + } + me.anchor = 'left'; + return me.getTargetXY(); + } + if (axy[0] + sz.width > dw) { + if (me.anchorToTarget) { + me.defaultAlign = 'r-l'; + if (me.mouseOffset) { + me.mouseOffset[0] *= -1; + } + } + me.anchor = 'right'; + return me.getTargetXY(); + } + if (axy[1] < scrollY) { + if (me.anchorToTarget) { + me.defaultAlign = 't-b'; + if (me.mouseOffset) { + me.mouseOffset[1] *= -1; + } + } + me.anchor = 'top'; + return me.getTargetXY(); + } + if (axy[1] + sz.height > dh) { + if (me.anchorToTarget) { + me.defaultAlign = 'b-t'; + if (me.mouseOffset) { + me.mouseOffset[1] *= -1; + } + } + me.anchor = 'bottom'; + return me.getTargetXY(); + } + } + me.anchorCls = Ext.baseCSSPrefix + 'tip-anchor-' + me.getAnchorPosition(); + me.anchorEl.addCls(me.anchorCls); + me.targetCounter = 0; + return axy; + } else { + mouseOffset = me.getMouseOffset(); + return me.targetXY ? [me.targetXY[0] + mouseOffset[0], me.targetXY[1] + mouseOffset[1]] : mouseOffset; + } +}, calculateConstrainedPosition:function(constrainTo) { + var me = this, visible, result, floatParentBox; + if (!constrainTo && me.isContainedFloater()) { + visible = me.isVisible(); + if (!visible) { + me.el.show(); + } + result = me.getTargetXY(); + if (!visible) { + me.el.hide(); + } + floatParentBox = me.floatParent.getTargetEl().getViewRegion(); + result[0] -= floatParentBox.left; + result[1] -= floatParentBox.top; + } else { + result = me.callOverridden(arguments); + } + return result; +}, getMouseOffset:function() { + var me = this, offset = me.anchor ? [0, 0] : [15, 18]; + if (me.mouseOffset) { + offset[0] += me.mouseOffset[0]; + offset[1] += me.mouseOffset[1]; + } + return offset; +}, fadeOut:function() { + var me = this; + me.el.fadeOut({duration:me.fadeOutDuration, callback:function() { + me.hide(); + me.el.setOpacity(''); + }}); +}, getAnchorPosition:function() { + var me = this, m; + if (me.anchor) { + me.tipAnchor = me.anchor.charAt(0); + } else { + m = me.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/); + if (!m) { + Ext.raise('The AnchorTip.defaultAlign value "' + me.defaultAlign + '" is invalid.'); + } + me.tipAnchor = m[1].charAt(0); + } + switch(me.tipAnchor) { + case 't': + return 'top'; + case 'b': + return 'bottom'; + case 'r': + return 'right'; + } + return 'left'; +}, getAnchorAlign:function() { + switch(this.anchor) { + case 'top': + return 'tl-bl'; + case 'left': + return 'tl-tr'; + case 'right': + return 'tr-tl'; + default: + return 'bl-tl'; + } +}, getOffsets:function() { + var me = this, mouseOffset, offsets, ap = me.getAnchorPosition().charAt(0); + if (me.anchorToTarget && !me.trackMouse) { + switch(ap) { + case 't': + offsets = [0, 9]; + break; + case 'b': + offsets = [0, -13]; + break; + case 'r': + offsets = [-13, 0]; + break; + default: + offsets = [9, 0]; + break; + } + } else { + switch(ap) { + case 't': + offsets = [-15 - me.anchorOffset, 30]; + break; + case 'b': + offsets = [-19 - me.anchorOffset, -13 - me.el.dom.offsetHeight]; + break; + case 'r': + offsets = [-15 - me.el.dom.offsetWidth, -13 - me.anchorOffset]; + break; + default: + offsets = [25, -13 - me.anchorOffset]; + break; + } + } + mouseOffset = me.getMouseOffset(); + offsets[0] += mouseOffset[0]; + offsets[1] += mouseOffset[1]; + return offsets; +}, onTargetOver:function(e) { + var me = this, delegate = me.delegate, t; + if (me.disabled || e.within(me.target.dom, true)) { + return; + } + t = delegate ? e.getTarget(delegate) : true; + if (t) { + me.triggerElement = t; + me.triggerEvent = e; + me.clearTimer('hide'); + me.targetXY = e.getXY(); + me.delayShow(); + } +}, delayShow:function(trackMouse) { + var me = this, xy = me.el && (trackMouse === false || !me.trackMouse) && me.getTargetXY(); + if (me.hidden && !me.showTimer) { + if (Ext.Date.getElapsed(me.lastActive) < me.quickShowInterval) { + me.show(); + } else { + me.showTimer = Ext.defer(me.showFromDelay, me.showDelay, me, [xy]); + } + } else { + if (!me.hidden && me.autoHide !== false) { + me.show(xy); + } + } +}, showFromDelay:function(xy) { + var me = this; + if (me.disabled) { + return; + } + me.fromDelayShow = true; + me.show(xy); + delete me.fromDelayShow; +}, onShowVeto:function() { + this.callParent(); + delete this.triggerElement; + this.clearTimer('show'); +}, onTargetOut:function(e) { + var me = this, triggerEl = me.triggerElement, target = triggerEl === true ? me.target : triggerEl; + if (me.disabled || !triggerEl || e.within(target, true)) { + return; + } + if (me.showTimer) { + me.clearTimer('show'); + me.triggerElement = null; + } + if (me.autoHide !== false) { + me.delayHide(); + } +}, delayHide:function() { + var me = this; + if (!me.hidden && !me.hideTimer) { + me.hideTimer = Ext.defer(me[me.hideAction], me.hideDelay, me); + } +}, hide:function() { + var me = this; + me.clearTimer('dismiss'); + me.lastActive = new Date; + if (me.anchorEl) { + me.anchorEl.hide(); + } + me.callParent(arguments); + delete me.triggerElement; +}, show:function(xy) { + var me = this; + this.callParent(); + if (this.hidden === false) { + if (me.anchor) { + me.anchor = me.origAnchor; + } + if (!me.calledFromShowAt) { + me.showAt(xy || me.getTargetXY()); + } + } +}, showAt:function(xy) { + var me = this; + me.lastActive = new Date; + me.clearTimers(); + me.calledFromShowAt = true; + if (!me.isVisible()) { + this.callParent(arguments); + } + if (me.isVisible()) { + me.setPagePosition(xy[0], xy[1]); + if (me.constrainPosition || me.constrain) { + me.doConstrain(); + } + me.toFront(true); + me.el.syncUnderlays(); + if (me.dismissDelay && me.autoHide !== false) { + me.dismissTimer = Ext.defer(me.hide, me.dismissDelay, me); + } + } + delete me.calledFromShowAt; +}, syncAnchor:function() { + var me = this, anchorPos, targetPos, offset; + switch(me.tipAnchor.charAt(0)) { + case 't': + anchorPos = 'b'; + targetPos = 'tl'; + offset = [20 + me.anchorOffset, 1]; + break; + case 'r': + anchorPos = 'l'; + targetPos = 'tr'; + offset = [-1, 12 + me.anchorOffset]; + break; + case 'b': + anchorPos = 't'; + targetPos = 'bl'; + offset = [20 + me.anchorOffset, -1]; + break; + default: + anchorPos = 'r'; + targetPos = 'tl'; + offset = [1, 12 + me.anchorOffset]; + break; + } + me.anchorEl.alignTo(me.el, anchorPos + '-' + targetPos, offset); + me.anchorEl.setStyle('z-index', parseInt(me.el.getZIndex(), 10) || 0 + 1).setVisibilityMode(Ext.Element.DISPLAY); +}, afterSetPosition:function(x, y) { + var me = this; + me.callParent(arguments); + if (me.anchor) { + me.syncAnchor(); + if (!me.anchorEl.isVisible()) { + me.anchorEl.show(); + } + } else { + me.anchorEl.hide(); + } +}, _timerNames:{}, clearTimer:function(name) { + var me = this, names = me._timerNames, propName = names[name] || (names[name] = name + 'Timer'), timer = me[propName]; + if (timer) { + clearTimeout(timer); + me[propName] = null; + } +}, clearTimers:function() { + var me = this; + me.clearTimer('show'); + me.clearTimer('dismiss'); + me.clearTimer('hide'); +}, onShow:function() { + var me = this; + me.callParent(); + me.mon(Ext.getDoc(), 'mousedown', me.onDocMouseDown, me); +}, onHide:function() { + var me = this; + me.callParent(); + me.mun(Ext.getDoc(), 'mousedown', me.onDocMouseDown, me); +}, onDocMouseDown:function(e) { + var me = this; + if (!me.closable && !e.within(me.el.dom)) { + me.disable(); + Ext.defer(me.doEnable, 100, me); + } +}, doEnable:function() { + if (!this.destroyed) { + this.enable(); + } +}, onDisable:function() { + this.callParent(); + this.clearTimers(); + this.hide(); +}, beforeDestroy:function() { + var me = this; + me.clearTimers(); + Ext.destroy(me.anchorEl); + delete me.anchorEl; + delete me.target; + delete me.anchorTarget; + delete me.triggerElement; + me.callParent(); +}, onDestroy:function() { + Ext.getDoc().un('mousedown', this.onDocMouseDown, this); + this.callParent(); +}}); +Ext.define('Ext.tip.QuickTip', {extend:Ext.tip.ToolTip, alias:'widget.quicktip', alternateClassName:'Ext.QuickTip', interceptTitles:false, title:'\x26#160;', tagConfig:{namespace:'data-', attribute:'qtip', width:'qwidth', target:'target', title:'qtitle', hide:'hide', cls:'qclass', align:'qalign', anchor:'anchor', showDelay:'qshowDelay', hideAction:'hideAction', anchorTarget:'anchorTarget'}, isQuickTip:true, shrinkWrapDock:true, initComponent:function() { + var me = this; + me.target = me.target || Ext.getDoc(); + me.targets = me.targets || {}; + me.callParent(); +}, setTagConfig:function(cfg) { + this.tagConfig = Ext.apply({}, cfg); + delete this.tagConfig.attr; +}, text:null, register:function(config) { + var configs = Ext.isArray(config) ? config : arguments, i = 0, len = configs.length, target, j, targetLen; + for (; i < len; i++) { + config = configs[i]; + target = config.target; + if (target) { + if (Ext.isArray(target)) { + for (j = 0, targetLen = target.length; j < targetLen; j++) { + this.targets[Ext.id(target[j])] = config; + } + } else { + this.targets[Ext.id(target)] = config; + } + } + } +}, unregister:function(el) { + delete this.targets[Ext.id(el)]; +}, cancelShow:function(el) { + var me = this, activeTarget = me.activeTarget; + el = Ext.get(el).dom; + if (me.isVisible()) { + if (activeTarget && activeTarget.el === el) { + me.hide(); + } + } else { + if (activeTarget && activeTarget.el === el) { + me.clearTimer('show'); + } + } +}, getTipCfg:function(target, event) { + var titleText = target.title, cfg = this.tagConfig, attr = cfg.attr || (cfg.attr = cfg.namespace + cfg.attribute), text; + if (this.interceptTitles && titleText && Ext.isString(titleText)) { + target.setAttribute(attr, titleText); + target.removeAttribute('title'); + return {text:titleText}; + } else { + target = Ext.fly(target).findParent(function(dom) { + return text = dom.getAttribute(attr); + }); + if (target) { + return {target:target, text:text}; + } + } +}, onTargetOver:function(event) { + this.doTargetOver(event.getTarget(this.delegate), null, event); +}, doTargetOver:function(target, xy, event) { + var me = this, hasShowDelay, hideAction, delay, elTarget, cfg, ns, tipConfig, autoHide, targets, targetEl, value, key; + if (me.disabled) { + return; + } + if (typeof target === 'string') { + target = Ext.getDom(target); + } + me.targetXY = xy || (event ? event.getXY() : Ext.fly(target).getXY()); + if (!target || target.nodeType !== 1 || target === document.documentElement || target === document.body) { + return; + } + if (me.activeTarget && (target === me.activeTarget.el || Ext.fly(me.activeTarget.el).contains(target))) { + if (me.targetTextEmpty()) { + me.onShowVeto(); + delete me.activeTarget; + } else { + me.clearTimer('hide'); + me.show(); + } + return; + } + if (target) { + targets = me.targets; + for (key in targets) { + if (targets.hasOwnProperty(key)) { + value = targets[key]; + targetEl = Ext.fly(value.target); + if (targetEl && (targetEl.dom === target || targetEl.contains(target))) { + elTarget = targetEl.dom; + break; + } + } + } + if (elTarget) { + me.activeTarget = me.targets[elTarget.id]; + me.activeTarget.el = target; + me.anchor = me.activeTarget.anchor; + if (me.anchor) { + me.anchorTarget = target; + } + hasShowDelay = parseInt(me.activeTarget.showDelay, 10); + if (hasShowDelay) { + delay = me.showDelay; + me.showDelay = hasShowDelay; + } + me.delayShow(); + if (hasShowDelay) { + me.showDelay = delay; + } + if (!(hideAction = me.activeTarget.hideAction)) { + delete me.hideAction; + } else { + me.hideAction = hideAction; + } + return; + } + } + elTarget = Ext.fly(target, '_quicktip-target'); + cfg = me.tagConfig; + ns = cfg.namespace; + tipConfig = me.getTipCfg(target, event); + if (tipConfig) { + if (tipConfig.target) { + target = tipConfig.target; + elTarget = Ext.fly(target, '_quicktip-target'); + } + autoHide = elTarget.getAttribute(ns + cfg.hide); + me.activeTarget = {el:target, text:tipConfig.text, width:+elTarget.getAttribute(ns + cfg.width) || null, autoHide:autoHide !== 'user' && autoHide !== 'false', title:elTarget.getAttribute(ns + cfg.title), cls:elTarget.getAttribute(ns + cfg.cls), align:elTarget.getAttribute(ns + cfg.align), showDelay:parseInt(elTarget.getAttribute(ns + cfg.showDelay) || 0, 10), hideAction:elTarget.getAttribute(ns + cfg.hideAction), anchorTarget:elTarget.getAttribute(ns + cfg.anchorTarget)}; + if (!me.initialConfig.hasOwnProperty('anchor')) { + me.anchor = elTarget.getAttribute(ns + cfg.anchor); + } + if (me.anchor && !me.initialConfig.hasOwnProperty('anchorTarget')) { + me.anchorTarget = me.activeTarget.anchorTarget || target; + } + hasShowDelay = parseInt(me.activeTarget.showDelay, 10); + if (hasShowDelay) { + delay = me.showDelay; + me.showDelay = hasShowDelay; + } + me.delayShow(); + if (hasShowDelay) { + me.showDelay = delay; + } + } +}, onTargetOut:function(e) { + var me = this, active = me.activeTarget, hasHideDelay, delay; + if (active && e.within(me.activeTarget.el) && !me.getTipCfg(e.getTarget(), e)) { + return; + } + me.clearTimer('show'); + delete me.activeTarget; + if (me.autoHide !== false) { + hasHideDelay = active && parseInt(active.hideDelay, 10); + if (hasHideDelay) { + delay = me.hideDelay; + me.hideDelay = hasHideDelay; + } + me.delayHide(); + if (hasHideDelay) { + me.hideDelay = delay; + } + } +}, targetTextEmpty:function() { + var me = this, target = me.activeTarget, cfg = me.tagConfig, el, text; + if (target) { + el = target.el; + if (el) { + text = el.getAttribute(cfg.namespace + cfg.attribute); + if (!text && !me.targets[Ext.id(target.target)]) { + return true; + } + } + } + return false; +}, show:function() { + var me = this, fromDelay = me.fromDelayShow; + if (fromDelay && me.targetTextEmpty()) { + me.onShowVeto(); + delete me.activeTarget; + return; + } + me.callParent(arguments); +}, showAt:function(xy) { + var me = this, target = me.activeTarget, header = me.header, dismiss, cls; + if (target) { + if (!me.rendered) { + me.render(Ext.getBody()); + me.activeTarget = target; + } + me.suspendLayouts(); + if (target.title) { + me.setTitle(target.title); + header.show(); + } else { + if (header) { + header.hide(); + } + } + me.update(target.text); + me.autoHide = target.autoHide; + dismiss = target.dismissDelay; + me.dismissDelay = Ext.isNumber(dismiss) ? dismiss : me.dismissDelay; + if (target.mouseOffset) { + xy[0] += target.mouseOffset[0]; + xy[1] += target.mouseOffset[1]; + } + cls = me.lastCls; + if (cls) { + me.removeCls(cls); + delete me.lastCls; + } + cls = target.cls; + if (cls) { + me.addCls(cls); + me.lastCls = cls; + } + me.setWidth(target.width); + if (me.anchor) { + me.constrainPosition = false; + } else { + if (target.align) { + xy = me.getAlignToXY(target.el, target.align); + me.constrainPosition = false; + } else { + me.constrainPosition = true; + } + } + me.resumeLayouts(true); + } + me.callParent([xy]); +}, showByTarget:function(targetEl) { + var me = this, target, size, xy, x, y; + target = me.targets[targetEl.id]; + if (target) { + me.activeTarget = target; + me.activeTarget.el = Ext.get(targetEl).dom; + me.anchor = me.activeTarget.anchor; + size = targetEl.getSize(); + xy = targetEl.getXY(); + me.showAt([xy[0], xy[1] + size.height]); + } +}, hide:function() { + delete this.activeTarget; + this.callParent(); +}}); +Ext.define('Ext.tip.QuickTipManager', {singleton:true, alternateClassName:'Ext.QuickTips', disabled:false, init:function(autoRender, config) { + var me = this; + if (!me.tip) { + if (!Ext.isReady) { + Ext.onInternalReady(function() { + Ext.tip.QuickTipManager.init(autoRender, config); + }); + return false; + } + var tipConfig = Ext.apply({sticky:true, disabled:me.disabled, id:'ext-quicktips-tip'}, config), className = tipConfig.className, xtype = tipConfig.xtype; + if (className) { + delete tipConfig.className; + } else { + if (xtype) { + className = 'widget.' + xtype; + delete tipConfig.xtype; + } + } + if (autoRender !== false) { + tipConfig.renderTo = document.body; + if (tipConfig.renderTo.tagName.toUpperCase() !== 'BODY') { + Ext.raise({sourceClass:'Ext.tip.QuickTipManager', sourceMethod:'init', msg:'Cannot init QuickTipManager: no document body'}); + } + } + me.tip = Ext.create(className || 'Ext.tip.QuickTip', tipConfig); + Ext.quickTipsActive = true; + } +}, destroy:function() { + Ext.destroy(this.tip); + this.tip = undefined; +}, ddDisable:function() { + var me = this, tip = me.tip; + if (tip && !me.disabled) { + tip.disable(); + } +}, ddEnable:function() { + var me = this, tip = me.tip; + if (tip && !me.disabled) { + tip.enable(); + } +}, enable:function() { + var me = this, tip = me.tip; + if (tip) { + tip.enable(); + } + me.disabled = false; +}, disable:function() { + var me = this, tip = me.tip; + if (tip) { + tip.disable(); + } + me.disabled = true; +}, isEnabled:function() { + var tip = this.tip; + return tip !== undefined && !tip.disabled; +}, getQuickTip:function() { + return this.tip; +}, register:function() { + var tip = this.tip; + tip.register.apply(tip, arguments); +}, unregister:function() { + var tip = this.tip; + tip.unregister.apply(tip, arguments); +}, tips:function() { + var tip = this.tip; + tip.register.apply(tip, arguments); +}}); +Ext.define('Ext.toolbar.Separator', {extend:Ext.toolbar.Item, alias:'widget.tbseparator', alternateClassName:'Ext.Toolbar.Separator', baseCls:Ext.baseCSSPrefix + 'toolbar-separator', ariaRole:'separator'}); +Ext.define('Ext.picker.Time', {extend:Ext.view.BoundList, alias:'widget.timepicker', config:{store:true}, statics:{createStore:function(format, increment) { + var dateUtil = Ext.Date, clearTime = dateUtil.clearTime, initDate = this.prototype.initDate, times = [], min = clearTime(new Date(initDate[0], initDate[1], initDate[2])), max = dateUtil.add(clearTime(new Date(initDate[0], initDate[1], initDate[2])), 'mi', 24 * 60 - 1); + while (min <= max) { + times.push({disp:dateUtil.dateFormat(min, format), date:min}); + min = dateUtil.add(min, 'mi', increment); + } + return new Ext.data.Store({model:Ext.picker.Time.prototype.modelType, data:times}); +}}, increment:15, format:'g:i A', displayField:'disp', initDate:[2008, 0, 1], componentCls:Ext.baseCSSPrefix + 'timepicker', loadMask:false, initComponent:function() { + var me = this, dateUtil = Ext.Date, clearTime = dateUtil.clearTime, initDate = me.initDate; + me.absMin = clearTime(new Date(initDate[0], initDate[1], initDate[2])); + me.absMax = dateUtil.add(clearTime(new Date(initDate[0], initDate[1], initDate[2])), 'mi', 24 * 60 - 1); + me.updateList(); + me.callParent(); +}, setStore:function(store) { + this.store = store === true ? Ext.picker.Time.createStore(this.format, this.increment) : store; +}, setMinValue:function(value) { + this.minValue = value; + this.updateList(); +}, setMaxValue:function(value) { + this.maxValue = value; + this.updateList(); +}, normalizeDate:function(date) { + var initDate = this.initDate; + date.setFullYear(initDate[0], initDate[1], initDate[2]); + return date; +}, updateList:function() { + var me = this, min = me.normalizeDate(me.minValue || me.absMin), max = me.normalizeDate(me.maxValue || me.absMax), filters = me.getStore().getFilters(), filter = me.rangeFilter; + filters.beginUpdate(); + if (filter) { + filters.remove(filter); + } + filter = me.rangeFilter = new Ext.util.Filter({filterFn:function(record) { + var date = record.get('date'); + return date >= min && date <= max; + }}); + filters.add(filter); + filters.endUpdate(); +}}, function() { + this.prototype.modelType = Ext.define(null, {extend:'Ext.data.Model', fields:['disp', 'date']}); +}); +Ext.define('Ext.form.field.Time', {extend:Ext.form.field.ComboBox, alias:'widget.timefield', alternateClassName:['Ext.form.TimeField', 'Ext.form.Time'], triggerCls:Ext.baseCSSPrefix + 'form-time-trigger', minText:'The time in this field must be equal to or after {0}', maxText:'The time in this field must be equal to or before {0}', invalidText:'{0} is not a valid time', format:'g:i A', altFormats:'g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H|gi a|hi a|giA|hiA|gi A|hi A', +formatText:'Expected time format: HH:MM space am/pm', increment:15, pickerMaxHeight:300, selectOnTab:true, snapToIncrement:false, valuePublishEvent:['select', 'blur'], initDate:'1/1/2008', initDateParts:[2008, 0, 1], initDateFormat:'j/n/Y', queryMode:'local', displayField:'disp', valueField:'date', initComponent:function() { + var me = this, min = me.minValue, max = me.maxValue; + if (min) { + me.setMinValue(min); + } + if (max) { + me.setMaxValue(max); + } + me.displayTpl = new Ext.XTemplate('\x3ctpl for\x3d"."\x3e' + '{[typeof values \x3d\x3d\x3d "string" ? values : this.formatDate(values["' + me.displayField + '"])]}' + '\x3ctpl if\x3d"xindex \x3c xcount"\x3e' + me.delimiter + '\x3c/tpl\x3e' + '\x3c/tpl\x3e', {formatDate:me.formatDate.bind(me)}); + me.store = Ext.picker.Time.createStore(me.format, me.increment); + me.callParent(); + me.getPicker(); +}, isEqual:function(v1, v2) { + var fromArray = Ext.Array.from, isEqual = Ext.Date.isEqual, i, len; + v1 = fromArray(v1); + v2 = fromArray(v2); + len = v1.length; + if (len !== v2.length) { + return false; + } + for (i = 0; i < len; i++) { + if (!(v2[i] instanceof Date) || !(v1[i] instanceof Date) || !isEqual(v2[i], v1[i])) { + return false; + } + } + return true; +}, setMinValue:function(value) { + var me = this, picker = me.picker; + me.setLimit(value, true); + if (picker) { + picker.setMinValue(me.minValue); + } +}, setMaxValue:function(value) { + var me = this, picker = me.picker; + me.setLimit(value, false); + if (picker) { + picker.setMaxValue(me.maxValue); + } +}, setLimit:function(value, isMin) { + var me = this, d, val; + if (Ext.isString(value)) { + d = me.parseDate(value); + } else { + if (Ext.isDate(value)) { + d = value; + } + } + if (d) { + val = me.getInitDate(); + val.setHours(d.getHours(), d.getMinutes(), d.getSeconds(), d.getMilliseconds()); + } else { + val = null; + } + me[isMin ? 'minValue' : 'maxValue'] = val; +}, getInitDate:function(hours, minutes, seconds) { + var parts = this.initDateParts; + return new Date(parts[0], parts[1], parts[2], hours || 0, minutes || 0, seconds || 0, 0); +}, valueToRaw:function(value) { + return this.formatDate(this.parseDate(value)); +}, getErrors:function(value) { + value = arguments.length > 0 ? value : this.getRawValue(); + var me = this, format = Ext.String.format, errors = me.callParent([value]), minValue = me.minValue, maxValue = me.maxValue, data = me.displayTplData, raw = me.getRawValue(), i, len, date, item; + if (data && data.length > 0) { + for (i = 0, len = data.length; i < len; i++) { + item = data[i]; + item = item.date || item.disp; + date = me.parseDate(item); + if (!date) { + errors.push(format(me.invalidText, item, Ext.Date.unescapeFormat(me.format))); + continue; + } + if (minValue && date < minValue) { + errors.push(format(me.minText, me.formatDate(minValue))); + } + if (maxValue && date > maxValue) { + errors.push(format(me.maxText, me.formatDate(maxValue))); + } + } + } else { + if (raw.length && !me.parseDate(raw)) { + errors.push(format(me.invalidText, raw, Ext.Date.unescapeFormat(me.format))); + } + } + return errors; +}, formatDate:function(items) { + var formatted = [], i, len; + items = Ext.Array.from(items); + for (i = 0, len = items.length; i < len; i++) { + formatted.push(Ext.form.field.Date.prototype.formatDate.call(this, items[i])); + } + return formatted.join(this.delimiter); +}, parseDate:function(value) { + var me = this, val = value, altFormats = me.altFormats, altFormatsArray = me.altFormatsArray, i = 0, len; + if (value && !Ext.isDate(value)) { + val = me.safeParse(value, me.format); + if (!val && altFormats) { + altFormatsArray = altFormatsArray || altFormats.split('|'); + len = altFormatsArray.length; + for (; i < len && !val; ++i) { + val = me.safeParse(value, altFormatsArray[i]); + } + } + } + if (val && me.snapToIncrement) { + val = new Date(Ext.Number.snap(val.getTime(), me.increment * 60 * 1000)); + } + return val; +}, safeParse:function(value, format) { + var me = this, utilDate = Ext.Date, parsedDate, result = null; + if (utilDate.formatContainsDateInfo(format)) { + result = utilDate.parse(value, format); + } else { + parsedDate = utilDate.parse(me.initDate + ' ' + value, me.initDateFormat + ' ' + format); + if (parsedDate) { + result = parsedDate; + } + } + return result; +}, getSubmitValue:function() { + var me = this, format = me.submitFormat || me.format, value = me.getValue(); + return value ? Ext.Date.format(value, format) : null; +}, createPicker:function() { + var me = this; + me.listConfig = Ext.apply({xtype:'timepicker', pickerField:me, cls:undefined, minValue:me.minValue, maxValue:me.maxValue, increment:me.increment, format:me.format, maxHeight:me.pickerMaxHeight}, me.listConfig); + return me.callParent(); +}, completeEdit:function() { + var me = this, val = me.getValue(); + me.callParent(arguments); + if (me.validateValue(val)) { + me.setValue(val); + } +}, findRecordByValue:function(value) { + if (typeof value === 'string') { + value = this.parseDate(value); + } + return this.callParent([value]); +}, rawToValue:function(item) { + var me = this, items, values, i, len; + if (me.multiSelect) { + values = []; + items = Ext.Array.from(item); + for (i = 0, len = items.length; i < len; i++) { + values.push(me.parseDate(items[i])); + } + return values; + } + return me.parseDate(item); +}, setValue:function(v) { + var me = this; + if (me.creatingPicker) { + return; + } + me.getPicker(); + if (Ext.isDate(v)) { + v = me.getInitDate(v.getHours(), v.getMinutes(), v.getSeconds()); + } + return me.callParent([v]); +}, getValue:function() { + return this.rawToValue(this.callParent(arguments)); +}}); +Ext.define('Ext.layout.container.Fit', {extend:Ext.layout.container.Container, alternateClassName:'Ext.layout.FitLayout', alias:'layout.fit', itemCls:Ext.baseCSSPrefix + 'fit-item', type:'fit', manageMargins:true, sizePolicies:{0:{readsWidth:1, readsHeight:1, setsWidth:0, setsHeight:0}, 1:{readsWidth:0, readsHeight:1, setsWidth:1, setsHeight:0}, 2:{readsWidth:1, readsHeight:0, setsWidth:0, setsHeight:1}, 3:{readsWidth:0, readsHeight:0, setsWidth:1, setsHeight:1}}, getItemSizePolicy:function(item, +ownerSizeModel) { + var sizeModel = ownerSizeModel || this.owner.getSizeModel(), mode = (sizeModel.width.shrinkWrap ? 0 : 1) | (sizeModel.height.shrinkWrap ? 0 : 2); + return this.sizePolicies[mode]; +}, beginLayoutCycle:function(ownerContext, firstCycle) { + var me = this, resetHeight = me.lastHeightModel && me.lastHeightModel.calculated, resetWidth = me.lastWidthModel && me.lastWidthModel.calculated, resetSizes = resetWidth || resetHeight, maxChildMinHeight = 0, maxChildMinWidth = 0, c, childItems, i, item, length, margins, minHeight, minWidth, style, undef; + me.callParent(arguments); + if (resetSizes && ownerContext.targetContext.el.dom.tagName.toUpperCase() !== 'TD') { + resetSizes = resetWidth = resetHeight = false; + } + childItems = ownerContext.childItems; + length = childItems.length; + for (i = 0; i < length; ++i) { + item = childItems[i]; + if (firstCycle) { + c = item.target; + minHeight = c.minHeight; + minWidth = c.minWidth; + if (minWidth || minHeight) { + margins = item.marginInfo || item.getMarginInfo(); + minHeight += margins.height; + minWidth += margins.height; + if (maxChildMinHeight < minHeight) { + maxChildMinHeight = minHeight; + } + if (maxChildMinWidth < minWidth) { + maxChildMinWidth = minWidth; + } + } + } + if (resetSizes) { + style = item.el.dom.style; + if (resetHeight) { + style.height = ''; + } + if (resetWidth) { + style.width = ''; + } + } + } + if (firstCycle) { + ownerContext.maxChildMinHeight = maxChildMinHeight; + ownerContext.maxChildMinWidth = maxChildMinWidth; + } + c = ownerContext.target; + ownerContext.overflowX = !ownerContext.widthModel.shrinkWrap && ownerContext.maxChildMinWidth && c.scrollFlags.x || undef; + ownerContext.overflowY = !ownerContext.heightModel.shrinkWrap && ownerContext.maxChildMinHeight && c.scrollFlags.y || undef; +}, calculate:function(ownerContext) { + var me = this, childItems = ownerContext.childItems, length = childItems.length, containerSize = me.getContainerSize(ownerContext), info = {length:length, ownerContext:ownerContext, targetSize:containerSize}, shrinkWrapWidth = ownerContext.widthModel.shrinkWrap, shrinkWrapHeight = ownerContext.heightModel.shrinkWrap, overflowX = ownerContext.overflowX, overflowY = ownerContext.overflowY, scrollbars, scrollbarSize, padding, i, contentWidth, contentHeight; + ownerContext.state.info = info; + if (overflowX || overflowY) { + scrollbars = me.getScrollbarsNeeded(overflowX && containerSize.width, overflowY && containerSize.height, ownerContext.maxChildMinWidth, ownerContext.maxChildMinHeight); + if (scrollbars) { + scrollbarSize = Ext.getScrollbarSize(); + if (scrollbars & 1) { + containerSize.height -= scrollbarSize.height; + } + if (scrollbars & 2) { + containerSize.width -= scrollbarSize.width; + } + } + } + if (length > 0) { + for (i = 0; i < length; ++i) { + info.index = i; + me.fitItem(childItems[i], info); + } + } else { + info.contentWidth = info.contentHeight = 0; + } + if (shrinkWrapHeight || shrinkWrapWidth) { + padding = ownerContext.targetContext.getPaddingInfo(); + if (shrinkWrapWidth) { + if (overflowY && !containerSize.gotHeight) { + me.done = false; + } else { + contentWidth = info.contentWidth + padding.width; + if (scrollbars & 2) { + contentWidth += scrollbarSize.width; + } + if (!ownerContext.setContentWidth(contentWidth)) { + me.done = false; + } + } + } + if (shrinkWrapHeight) { + if (overflowX && !containerSize.gotWidth) { + me.done = false; + } else { + contentHeight = info.contentHeight + padding.height; + if (scrollbars & 1) { + contentHeight += scrollbarSize.height; + } + if (!ownerContext.setContentHeight(contentHeight)) { + me.done = false; + } + } + } + } +}, fitItem:function(itemContext, info) { + var me = this; + if (itemContext.invalid) { + me.done = false; + return; + } + info.margins = itemContext.getMarginInfo(); + info.needed = info.got = 0; + me.fitItemWidth(itemContext, info); + me.fitItemHeight(itemContext, info); + if (info.got !== info.needed) { + me.done = false; + } +}, fitItemWidth:function(itemContext, info) { + var contentWidth, width; + if (info.ownerContext.widthModel.shrinkWrap) { + width = itemContext.getProp('width') + info.margins.width; + contentWidth = info.contentWidth; + if (contentWidth === undefined) { + info.contentWidth = width; + } else { + info.contentWidth = Math.max(contentWidth, width); + } + } else { + if (itemContext.widthModel.calculated) { + ++info.needed; + if (info.targetSize.gotWidth) { + ++info.got; + this.setItemWidth(itemContext, info); + } else { + return; + } + } + } + this.positionItemX(itemContext, info); +}, fitItemHeight:function(itemContext, info) { + var contentHeight, height; + if (info.ownerContext.heightModel.shrinkWrap) { + height = itemContext.getProp('height') + info.margins.height; + contentHeight = info.contentHeight; + if (contentHeight === undefined) { + info.contentHeight = height; + } else { + info.contentHeight = Math.max(contentHeight, height); + } + } else { + if (itemContext.heightModel.calculated) { + ++info.needed; + if (info.targetSize.gotHeight) { + ++info.got; + this.setItemHeight(itemContext, info); + } else { + return; + } + } + } + this.positionItemY(itemContext, info); +}, positionItemX:function(itemContext, info) { + var margins = info.margins; + if (info.index || margins.left) { + itemContext.setProp('x', margins.left); + } + if (margins.width && info.ownerContext.widthModel.shrinkWrap) { + itemContext.setProp('margin-right', margins.width); + } +}, positionItemY:function(itemContext, info) { + var margins = info.margins; + if (info.index || margins.top) { + itemContext.setProp('y', margins.top); + } + if (margins.height && info.ownerContext.heightModel.shrinkWrap) { + itemContext.setProp('margin-bottom', margins.height); + } +}, setItemHeight:function(itemContext, info) { + itemContext.setHeight(info.targetSize.height - info.margins.height); +}, setItemWidth:function(itemContext, info) { + itemContext.setWidth(info.targetSize.width - info.margins.width); +}}); +Ext.define('Ext.menu.Item', {extend:Ext.Component, alias:'widget.menuitem', alternateClassName:'Ext.menu.TextItem', isMenuItem:true, mixins:[Ext.mixin.Queryable], activated:false, activeCls:Ext.baseCSSPrefix + 'menu-item-active', clickHideDelay:0, destroyMenu:true, disabledCls:Ext.baseCSSPrefix + 'menu-item-disabled', hideOnClick:true, menuAlign:'tl-tr?', menuExpandDelay:200, menuHideDelay:200, tooltipType:'qtip', focusable:true, ariaRole:'menuitem', ariaEl:'itemEl', baseCls:Ext.baseCSSPrefix + 'menu-item', +arrowCls:Ext.baseCSSPrefix + 'menu-item-arrow', baseIconCls:Ext.baseCSSPrefix + 'menu-item-icon', textCls:Ext.baseCSSPrefix + 'menu-item-text', indentCls:Ext.baseCSSPrefix + 'menu-item-indent', indentNoSeparatorCls:Ext.baseCSSPrefix + 'menu-item-indent-no-separator', indentRightIconCls:Ext.baseCSSPrefix + 'menu-item-indent-right-icon', indentRightArrowCls:Ext.baseCSSPrefix + 'menu-item-indent-right-arrow', linkCls:Ext.baseCSSPrefix + 'menu-item-link', linkHrefCls:Ext.baseCSSPrefix + 'menu-item-link-href', +childEls:['itemEl', 'iconEl', 'textEl', 'arrowEl'], renderTpl:'\x3ctpl if\x3d"plain"\x3e' + '{text}' + '\x3ctpl else\x3e' + '\x3ca id\x3d"{id}-itemEl" data-ref\x3d"itemEl"' + ' class\x3d"{linkCls}\x3ctpl if\x3d"hasHref"\x3e {linkHrefCls}\x3c/tpl\x3e{childElCls}"' + ' href\x3d"{href}" ' + '\x3ctpl if\x3d"hrefTarget"\x3e target\x3d"{hrefTarget}"\x3c/tpl\x3e' + ' hidefocus\x3d"true"' + ' unselectable\x3d"on"' + '\x3ctpl if\x3d"tabIndex !\x3d null"\x3e' + ' tabindex\x3d"{tabIndex}"' + '\x3c/tpl\x3e' + +'\x3ctpl foreach\x3d"ariaAttributes"\x3e {$}\x3d"{.}"\x3c/tpl\x3e' + '\x3e' + '\x3cspan id\x3d"{id}-textEl" data-ref\x3d"textEl" class\x3d"{textCls} {textCls}-{ui} {indentCls}{childElCls}" unselectable\x3d"on"\x3e{text}\x3c/span\x3e' + '\x3ctpl if\x3d"hasIcon"\x3e' + '\x3cdiv role\x3d"presentation" id\x3d"{id}-iconEl" data-ref\x3d"iconEl" class\x3d"{baseIconCls}-{ui} {baseIconCls}' + '{[values.rightIcon ? "-right" : ""]} {iconCls}' + '{childElCls} {glyphCls}" style\x3d"\x3ctpl if\x3d"icon"\x3ebackground-image:url({icon});\x3c/tpl\x3e' + +'\x3ctpl if\x3d"glyph \x26\x26 glyphFontFamily"\x3efont-family:{glyphFontFamily};\x3c/tpl\x3e"\x3e' + '\x3ctpl if\x3d"glyph"\x3e\x26#{glyph};\x3c/tpl\x3e' + '\x3c/div\x3e' + '\x3c/tpl\x3e' + '\x3ctpl if\x3d"showCheckbox"\x3e' + '\x3cdiv role\x3d"presentation" id\x3d"{id}-checkEl" data-ref\x3d"checkEl" class\x3d"{baseIconCls}-{ui} {baseIconCls}' + '{[(values.hasIcon \x26\x26 !values.rightIcon) ? "-right" : ""]} ' + '{groupCls} {checkboxCls}{childElCls}"\x3e' + '\x3c/div\x3e' + '\x3c/tpl\x3e' + '\x3ctpl if\x3d"hasMenu"\x3e' + +'\x3cdiv role\x3d"presentation" id\x3d"{id}-arrowEl" data-ref\x3d"arrowEl" class\x3d"{arrowCls} {arrowCls}-{ui}{childElCls}"\x3e\x3c/div\x3e' + '\x3c/tpl\x3e' + '\x3c/a\x3e' + '\x3c/tpl\x3e', maskOnDisable:false, iconAlign:'left', initComponent:function() { + var me = this, cls = me.cls ? [me.cls] : [], menu; + if (me.hasOwnProperty('canActivate')) { + me.focusable = me.canActivate; + } + if (me.plain) { + cls.push(Ext.baseCSSPrefix + 'menu-item-plain'); + } + if (cls.length) { + me.cls = cls.join(' '); + } + if (me.menu) { + menu = me.menu; + me.menu = null; + me.setMenu(menu); + } + me.callParent(arguments); +}, canFocus:function() { + var me = this; + return me.focusable && me.rendered && me.canActivate !== false && !me.destroying && !me.destroyed && me.isVisible(true); +}, onFocus:function(e) { + var me = this; + me.callParent([e]); + if (!me.disabled) { + if (!me.plain) { + me.addCls(me.activeCls); + } + me.activated = true; + if (me.hasListeners.activate) { + me.fireEvent('activate', me); + } + } +}, onFocusLeave:function(e) { + var me = this; + me.callParent([e]); + if (me.activated) { + if (!me.plain) { + me.removeCls(me.activeCls); + } + me.doHideMenu(); + me.activated = false; + if (me.hasListeners.deactivate) { + me.fireEvent('deactivate', me); + } + } +}, doHideMenu:function() { + var menu = this.menu; + this.cancelDeferExpand(); + if (menu && menu.isVisible()) { + menu.hide(); + } +}, deferHideParentMenus:function() { + for (var menu = this.getRefOwner(); menu && (menu.isMenu && menu.floating || menu.isMenuItem); menu = menu.getRefOwner()) { + if (menu.isMenu) { + menu.hide(); + } + } +}, expandMenu:function(event, delay) { + var me = this; + if (me.activated && me.menu) { + me.hideOnClick = false; + me.cancelDeferHide(); + delay = delay == null ? me.menuExpandDelay : delay; + if (delay === 0) { + me.doExpandMenu(event); + } else { + me.cancelDeferExpand(); + me.expandMenuTimer = Ext.defer(me.doExpandMenu, delay, me, [event]); + } + } +}, doExpandMenu:function(clickEvent) { + var me = this, menu = me.menu; + if (!menu.isVisible()) { + me.parentMenu.activeChild = menu; + menu.ownerCmp = me; + menu.parentMenu = me.parentMenu; + menu.constrainTo = document.body; + menu.autoFocus = !clickEvent || !clickEvent.pointerType; + menu.showBy(me, me.menuAlign); + } +}, getRefItems:function(deep) { + var menu = this.menu, items; + if (menu) { + items = menu.getRefItems(deep); + items.unshift(menu); + } + return items || []; +}, getValue:function() { + return this.value; +}, hideMenu:function(delay) { + var me = this; + if (me.menu) { + me.cancelDeferExpand(); + me.hideMenuTimer = Ext.defer(me.doHideMenu, Ext.isNumber(delay) ? delay : me.menuHideDelay, me); + } +}, onClick:function(e) { + var me = this, clickHideDelay = me.clickHideDelay, browserEvent = e.browserEvent, clickResult, preventDefault; + if (!me.href || me.disabled) { + e.stopEvent(); + if (me.disabled) { + return false; + } + } + if (me.disabled || me.handlingClick) { + return; + } + if (me.hideOnClick) { + if (!clickHideDelay) { + me.deferHideParentMenus(); + } else { + me.deferHideParentMenusTimer = Ext.defer(me.deferHideParentMenus, clickHideDelay, me); + } + } + clickResult = me.fireEvent('click', me, e); + if (me.destroyed) { + return; + } + if (clickResult !== false && me.handler) { + Ext.callback(me.handler, me.scope, [me, e], 0, me); + } + if (Ext.isIE9m) { + preventDefault = browserEvent.returnValue === false ? true : false; + } else { + preventDefault = !!browserEvent.defaultPrevented; + } + if (me.href && e.type !== 'click' && !preventDefault) { + me.handlingClick = true; + me.itemEl.dom.click(); + me.handlingClick = false; + } + if (!me.hideOnClick) { + me.focus(); + } + return clickResult; +}, onRemoved:function() { + var me = this; + if (me.activated && me.parentMenu.activeItem === me) { + me.parentMenu.deactivateActiveItem(); + } + me.callParent(arguments); + me.parentMenu = me.ownerCmp = null; +}, beforeDestroy:function() { + var me = this; + if (me.rendered) { + me.clearTip(); + } + me.callParent(); +}, onDestroy:function() { + var me = this; + me.cancelDeferExpand(); + me.cancelDeferHide(); + clearTimeout(me.deferHideParentMenusTimer); + me.setMenu(null); + me.callParent(arguments); +}, beforeRender:function() { + var me = this, glyph = me.glyph, glyphFontFamily = Ext._glyphFontFamily, hasIcon = !!(me.icon || me.iconCls || glyph), hasMenu = !!me.menu, rightIcon = me.iconAlign === 'right' && !hasMenu, isCheckItem = me.isMenuCheckItem, indentCls = [], ownerCt = me.ownerCt, isOwnerPlain = ownerCt.plain, glyphParts; + if (me.plain) { + me.ariaEl = 'el'; + } + me.callParent(); + if (hasIcon) { + if (hasMenu && me.showCheckbox) { + hasIcon = false; + } + } + if (typeof glyph === 'string') { + glyphParts = glyph.split('@'); + glyph = glyphParts[0]; + glyphFontFamily = glyphParts[1]; + } + if (!isOwnerPlain || hasIcon && !rightIcon || isCheckItem) { + if (ownerCt.showSeparator && !isOwnerPlain) { + indentCls.push(me.indentCls); + } else { + indentCls.push(me.indentNoSeparatorCls); + } + } + if (hasMenu) { + indentCls.push(me.indentRightArrowCls); + } else { + if (hasIcon && (rightIcon || isCheckItem)) { + indentCls.push(me.indentRightIconCls); + } + } + Ext.applyIf(me.renderData, {hasHref:!!me.href, href:me.href || '#', hrefTarget:me.hrefTarget, icon:me.icon, iconCls:me.iconCls, glyph:glyph, glyphCls:glyph ? Ext.baseCSSPrefix + 'menu-item-glyph' : undefined, glyphFontFamily:glyphFontFamily, hasIcon:hasIcon, hasMenu:hasMenu, indent:!isOwnerPlain || hasIcon || isCheckItem, isCheckItem:isCheckItem, rightIcon:rightIcon, plain:me.plain, text:me.text, arrowCls:me.arrowCls, baseIconCls:me.baseIconCls, textCls:me.textCls, indentCls:indentCls.join(' '), + linkCls:me.linkCls, linkHrefCls:me.linkHrefCls, groupCls:me.group ? me.groupCls : '', tabIndex:me.tabIndex}); +}, onRender:function() { + var me = this; + me.callParent(arguments); + if (me.tooltip) { + me.setTooltip(me.tooltip, true); + } +}, getMenu:function() { + return this.menu || null; +}, setMenu:function(menu, destroyMenu) { + var me = this, oldMenu = me.menu, arrowEl = me.arrowEl, ariaDom = me.ariaEl.dom, ariaAttr, instanced; + if (oldMenu) { + oldMenu.ownerCmp = oldMenu.parentMenu = null; + if (destroyMenu === true || destroyMenu !== false && me.destroyMenu) { + Ext.destroy(oldMenu); + } + if (ariaDom) { + ariaDom.removeAttribute('aria-haspopup'); + ariaDom.removeAttribute('aria-owns'); + } else { + ariaAttr = me.ariaRenderAttributes || (me.ariaRenderAttributes = {}); + delete ariaAttr['aria-haspopup']; + delete ariaAttr['aria-owns']; + } + } + if (menu) { + instanced = menu.isMenu; + menu = me.menu = Ext.menu.Manager.get(menu, {ownerCmp:me, focusOnToFront:false}); + menu.setOwnerCmp(me, instanced); + if (ariaDom) { + ariaDom.setAttribute('aria-haspopup', true); + ariaDom.setAttribute('aria-owns', menu.id); + } else { + ariaAttr = me.ariaRenderAttributes || (me.ariaRenderAttributes = {}); + ariaAttr['aria-haspopup'] = true; + ariaAttr['aria-owns'] = menu.id; + } + } else { + menu = me.menu = null; + } + if (menu && me.rendered && !me.destroying && arrowEl) { + arrowEl[menu ? 'addCls' : 'removeCls'](me.arrowCls); + } +}, setHandler:function(fn, scope) { + this.handler = fn || null; + this.scope = scope; +}, setIcon:function(icon) { + var iconEl = this.iconEl, oldIcon = this.icon; + if (iconEl) { + iconEl.src = icon || Ext.BLANK_IMAGE_URL; + } + this.icon = icon; + this.fireEvent('iconchange', this, oldIcon, icon); +}, setIconCls:function(iconCls) { + var me = this, iconEl = me.iconEl, oldCls = me.iconCls; + if (iconEl) { + if (me.iconCls) { + iconEl.removeCls(me.iconCls); + } + if (iconCls) { + iconEl.addCls(iconCls); + } + } + me.iconCls = iconCls; + me.fireEvent('iconchange', me, oldCls, iconCls); +}, setText:function(text) { + var me = this, el = me.textEl || me.el, oldText = me.text; + me.text = text; + if (me.rendered) { + el.setHtml(text || ''); + me.updateLayout(); + } + me.fireEvent('textchange', me, oldText, text); +}, getTipAttr:function() { + return this.tooltipType === 'qtip' ? 'data-qtip' : 'title'; +}, clearTip:function() { + if (Ext.quickTipsActive && Ext.isObject(this.tooltip)) { + Ext.tip.QuickTipManager.unregister(this.itemEl); + } +}, setTooltip:function(tooltip, initial) { + var me = this; + if (me.rendered) { + if (!initial) { + me.clearTip(); + } + if (Ext.quickTipsActive && Ext.isObject(tooltip)) { + Ext.tip.QuickTipManager.register(Ext.apply({target:me.itemEl.id}, tooltip)); + me.tooltip = tooltip; + } else { + me.itemEl.dom.setAttribute(me.getTipAttr(), tooltip); + } + } else { + me.tooltip = tooltip; + } + return me; +}, privates:{cancelDeferExpand:function() { + window.clearTimeout(this.expandMenuTimer); +}, cancelDeferHide:function() { + window.clearTimeout(this.hideMenuTimer); +}, getFocusEl:function() { + return this.plain ? this.el : this.itemEl; +}}}); +Ext.define('Ext.theme.triton.menu.Item', {override:'Ext.menu.Item', compatibility:Ext.isIE8, onFocus:function(e) { + this.callParent([e]); + this.repaintIcons(); +}, onFocusLeave:function(e) { + this.callParent([e]); + this.repaintIcons(); +}, privates:{repaintIcons:function() { + var iconEl = this.iconEl, arrowEl = this.arrowEl, checkEl = this.checkEl; + if (iconEl) { + iconEl.syncRepaint(); + } + if (arrowEl) { + arrowEl.syncRepaint(); + } + if (checkEl) { + checkEl.syncRepaint(); + } +}}}); +Ext.define('Ext.menu.CheckItem', {extend:Ext.menu.Item, alias:'widget.menucheckitem', checkedCls:Ext.baseCSSPrefix + 'menu-item-checked', uncheckedCls:Ext.baseCSSPrefix + 'menu-item-unchecked', groupCls:Ext.baseCSSPrefix + 'menu-group-icon', hideOnClick:false, checkChangeDisabled:false, submenuText:'{0} submenu', ariaRole:'menuitemcheckbox', childEls:['checkEl'], showCheckbox:true, isMenuCheckItem:true, checkboxCls:Ext.baseCSSPrefix + 'menu-item-checkbox', initComponent:function() { + var me = this; + me.checked = !!me.checked; + me.callParent(arguments); + if (me.group) { + Ext.menu.Manager.registerCheckable(me); + if (me.initialConfig.hideOnClick !== false) { + me.hideOnClick = true; + } + } +}, beforeRender:function() { + var me = this, ariaAttr; + me.callParent(); + Ext.apply(me.renderData, {checkboxCls:me.checkboxCls, showCheckbox:me.showCheckbox}); + ariaAttr = me.ariaRenderAttributes || (me.ariaRenderAttributes = {}); + ariaAttr['aria-checked'] = me.menu ? 'mixed' : me.checked; + if (me.menu) { + ariaAttr['aria-label'] = Ext.String.formatEncode(me.submenuText, me.text); + } +}, afterRender:function() { + var me = this; + me.callParent(); + me.checked = !me.checked; + me.setChecked(!me.checked, true); + if (me.checkChangeDisabled) { + me.disableCheckChange(); + } + if (Ext.isGecko && me.checkEl) { + me.checkEl.on('mousedown', me.onMouseDownCheck); + } +}, disableCheckChange:function() { + var me = this, checkEl = me.checkEl; + if (checkEl) { + checkEl.addCls(me.disabledCls); + } + if (Ext.isIE8 && me.rendered) { + me.el.repaint(); + } + me.checkChangeDisabled = true; +}, enableCheckChange:function() { + var me = this, checkEl = me.checkEl; + if (checkEl) { + checkEl.removeCls(me.disabledCls); + } + me.checkChangeDisabled = false; +}, onMouseDownCheck:function(e) { + e.preventDefault(); +}, onClick:function(e) { + var me = this; + if (!(me.disabled || me.checkChangeDisabled || me.checked && me.group || me.menu && 'touch' === e.pointerType && !me.checkEl.contains(e.target))) { + me.setChecked(!me.checked); + if (e.type === 'keydown' && me.menu) { + return false; + } + } + this.callParent([e]); +}, onDestroy:function() { + Ext.menu.Manager.unregisterCheckable(this); + this.callParent(arguments); +}, setText:function(text) { + var me = this, ariaDom = me.ariaEl.dom; + me.callParent([text]); + if (ariaDom && me.menu) { + ariaDom.setAttribute('aria-label', Ext.String.formatEncode(me.submenuText, text)); + } +}, setChecked:function(checked, suppressEvents) { + var me = this, checkedCls = me.checkedCls, uncheckedCls = me.uncheckedCls, el = me.el, ariaDom = me.ariaEl.dom; + if (me.checked !== checked && (suppressEvents || me.fireEvent('beforecheckchange', me, checked) !== false)) { + if (el) { + if (checked) { + el.addCls(checkedCls); + el.removeCls(uncheckedCls); + } else { + el.addCls(uncheckedCls); + el.removeCls(checkedCls); + } + } + if (ariaDom) { + ariaDom.setAttribute('aria-checked', me.menu ? 'mixed' : !!checked); + } + me.checked = checked; + Ext.menu.Manager.onCheckChange(me, checked); + if (!suppressEvents) { + Ext.callback(me.checkHandler, me.scope, [me, checked], 0, me); + me.fireEvent('checkchange', me, checked); + } + } +}}); +Ext.define('Ext.menu.Separator', {extend:Ext.menu.Item, alias:'widget.menuseparator', focusable:false, canActivate:false, hideOnClick:false, plain:true, separatorCls:Ext.baseCSSPrefix + 'menu-item-separator', text:'\x26#160;', ariaRole:'separator', beforeRender:function() { + this.addCls(this.separatorCls); + this.callParent(); +}}); +Ext.define('Ext.theme.neptune.menu.Separator', {override:'Ext.menu.Separator', border:true}); +Ext.define('Ext.menu.Menu', {extend:Ext.panel.Panel, alias:'widget.menu', mixins:[Ext.util.FocusableContainer], enableKeyNav:true, allowOtherMenus:false, ariaRole:'menu', floating:true, constrain:true, hidden:true, hideMode:'visibility', ignoreParentClicks:false, isMenu:true, showSeparator:true, minWidth:undefined, defaultMinWidth:120, defaultAlign:'tl-bl?', focusOnToFront:false, bringParentToFront:false, defaultFocus:':focusable', menuClickBuffer:0, baseCls:Ext.baseCSSPrefix + 'menu', _iconSeparatorCls:Ext.baseCSSPrefix + +'menu-icon-separator', _itemCmpCls:Ext.baseCSSPrefix + 'menu-item-cmp', layout:{type:'vbox', align:'stretchmax', overflowHandler:'Scroller'}, initComponent:function() { + var me = this, cls = [Ext.baseCSSPrefix + 'menu'], bodyCls = me.bodyCls ? [me.bodyCls] : [], isFloating = me.floating !== false, listeners = {element:'el', click:me.onClick, mouseover:me.onMouseOver, scope:me}; + if (Ext.supports.Touch) { + listeners.pointerdown = me.onMouseOver; + } + me.on(listeners); + me.on({beforeshow:me.onBeforeShow, scope:me}); + if (me.plain) { + cls.push(Ext.baseCSSPrefix + 'menu-plain'); + } + me.cls = cls.join(' '); + bodyCls.push(Ext.baseCSSPrefix + 'menu-body', Ext.dom.Element.unselectableCls); + me.bodyCls = bodyCls.join(' '); + if (isFloating) { + if (me.minWidth === undefined) { + me.minWidth = me.defaultMinWidth; + } + } else { + me.hidden = !!me.initialConfig.hidden; + me.constrain = false; + } + me.callParent(arguments); + Ext.override(me.getLayout(), {configureItem:me.configureItem}); +}, initFloatConstrain:Ext.emptyFn, getInherited:function() { + var result = this.callParent(); + result.hidden = this.hidden; + return result; +}, beforeRender:function() { + var me = this; + me.callParent(arguments); + if (!me.getSizeModel().width.shrinkWrap) { + me.layout.align = 'stretch'; + } + if (me.floating) { + me.ariaRenderAttributes = me.ariaRenderAttributes || {}; + me.ariaRenderAttributes['aria-expanded'] = !!me.autoShow; + } +}, onBoxReady:function() { + var me = this, iconSeparatorCls = me._iconSeparatorCls, keyNav = me.focusableKeyNav; + if (keyNav) { + keyNav.map.processEventScope = me; + keyNav.map.processEvent = function(e) { + if (e.keyCode === e.ESC) { + e.target = this.el.dom; + } + return e; + }; + keyNav.map.addBinding([{key:Ext.event.Event.ESC, handler:me.onEscapeKey, scope:me}, {key:/[\w]/, handler:me.onShortcutKey, scope:me, shift:false, ctrl:false, alt:false}]); + } else { + me.escapeKeyNav = new Ext.util.KeyNav(me.el, {eventName:'keydown', scope:me, esc:me.onEscapeKey}); + } + me.callParent(arguments); + if (me.showSeparator) { + me.iconSepEl = me.body.insertFirst({role:'presentation', cls:iconSeparatorCls + ' ' + iconSeparatorCls + '-' + me.ui, html:'\x26#160;'}); + } + if (Ext.supports.MSPointerEvents || Ext.supports.PointerEvents) { + me.el.on({scope:me, click:me.preventClick, translate:false}); + } + me.mouseMonitor = me.el.monitorMouseLeave(100, me.onMouseLeave, me); +}, onFocusLeave:function(e) { + var me = this; + me.callParent([e]); + me.mixins.focusablecontainer.onFocusLeave.call(me, e); + if (me.floating) { + me.hide(); + } +}, canActivateItem:function(item) { + return item && item.isFocusable(); +}, deactivateActiveItem:function() { + var me = this, activeItem = me.lastFocusedChild; + if (activeItem) { + activeItem.blur(); + } +}, getItemFromEvent:function(e) { + var me = this, renderTarget = me.layout.getRenderTarget().dom, toEl = e.getTarget(); + while (toEl.parentNode !== renderTarget) { + toEl = toEl.parentNode; + if (!toEl) { + return; + } + } + return Ext.getCmp(toEl.id); +}, lookupComponent:function(cmp) { + var me = this; + if (typeof cmp === 'string') { + cmp = me.lookupItemFromString(cmp); + } else { + if (Ext.isObject(cmp)) { + cmp = me.lookupItemFromObject(cmp); + } + } + if (!cmp.dock) { + cmp.minWidth = cmp.minWidth || me.minWidth; + } + return cmp; +}, lookupItemFromObject:function(cmp) { + var me = this; + if (!cmp.isComponent) { + if (!cmp.xtype) { + cmp = Ext.create('Ext.menu.' + (Ext.isBoolean(cmp.checked) ? 'Check' : '') + 'Item', cmp); + } else { + cmp = Ext.ComponentManager.create(cmp, cmp.xtype); + } + } + if (cmp.isMenuItem) { + cmp.parentMenu = me; + } + return cmp; +}, lookupItemFromString:function(cmp) { + return cmp === 'separator' || cmp === '-' ? new Ext.menu.Separator : new Ext.menu.Item({canActivate:false, hideOnClick:false, plain:true, text:cmp}); +}, configureItem:function(cmp) { + var me = this.owner, prefix = Ext.baseCSSPrefix, ui = me.ui, cls, cmpCls; + if (cmp.isMenuItem) { + cmp.setUI(ui); + } else { + if (me.items.getCount() > 1 && !cmp.rendered && !cmp.dock) { + cmpCls = me._itemCmpCls; + cls = [cmpCls + ' ' + cmpCls + '-' + ui]; + if (!me.plain && (cmp.indent !== false || cmp.iconCls === 'no-icon')) { + cls.push(prefix + 'menu-item-indent-' + ui); + } + if (cmp.rendered) { + cmp.el.addCls(cls); + } else { + cmp.cls = (cmp.cls || '') + ' ' + cls.join(' '); + } + cmp.$extraMenuCls = cls; + } + } + this.callParent(arguments); +}, onRemove:function(cmp) { + this.callParent([cmp]); + if (!cmp.destroyed && cmp.$extraMenuCls) { + cmp.el.removeCls(cmp.$extraMenuCls); + } +}, onClick:function(e) { + var me = this, type = e.type, item, clickResult, iskeyEvent = type === 'keydown'; + if (me.disabled) { + e.stopEvent(); + return; + } + item = me.getItemFromEvent(e); + if (item && item.isMenuItem) { + if (!item.menu || !me.ignoreParentClicks) { + clickResult = item.onClick(e); + } else { + e.stopEvent(); + } + if (item.menu && clickResult !== false && iskeyEvent) { + item.expandMenu(e, 0); + } + } + if (!item || item.disabled) { + item = undefined; + } + me.fireEvent('click', me, item, e); +}, onDestroy:function() { + var me = this; + if (me.escapeKeyNav) { + me.escapeKeyNav.destroy(); + } + me.parentMenu = me.ownerCmp = me.escapeKeyNav = null; + if (me.rendered) { + me.el.un(me.mouseMonitor); + Ext.destroy(me.iconSepEl); + } + Ext.menu.Manager.onHide(me); + me.callParent(arguments); +}, onMouseLeave:function(e) { + if (this.disabled) { + return; + } + this.fireEvent('mouseleave', this, e); +}, onMouseOver:function(e) { + var me = this, fromEl = e.getRelatedTarget(), mouseEnter = !me.el.contains(fromEl), item = me.getItemFromEvent(e), parentMenu = me.parentMenu, ownerCmp = me.ownerCmp; + if (mouseEnter && parentMenu) { + parentMenu.setActiveItem(ownerCmp); + ownerCmp.cancelDeferHide(); + parentMenu.mouseMonitor.mouseenter(); + } + if (me.disabled) { + return; + } + if (item) { + if (!item.containsFocus) { + item.focus(); + } + if (item.expandMenu) { + item.expandMenu(e); + } + } + if (mouseEnter) { + me.fireEvent('mouseenter', me, e); + } + me.fireEvent('mouseover', me, item, e); +}, setActiveItem:function(item) { + var me = this; + if (item && item !== me.lastFocusedChild) { + me.focusChild(item, 1); + } +}, onEscapeKey:function() { + if (this.floating) { + this.hide(); + } +}, onShortcutKey:function(keyCode, e) { + var shortcutChar = String.fromCharCode(e.getCharCode()), items = this.query('\x3e[text]'), len = items.length, item = this.lastFocusedChild, focusIndex = Ext.Array.indexOf(items, item), i = focusIndex; + for (;;) { + if (++i === len) { + i = 0; + } + item = items[i]; + if (i === focusIndex) { + return; + } + if (item.text && item.text[0].toUpperCase() === shortcutChar) { + item.focus(); + return; + } + } +}, onFocusableContainerTabKey:function(e) { + if (this.floating) { + this.hide(); + } +}, onFocusableContainerEnterKey:function(e) { + this.onClick(e); +}, onFocusableContainerSpaceKey:function(e) { + this.onClick(e); +}, onFocusableContainerLeftKey:function(e) { + e.preventDefault(); + if (this.parentMenu) { + this.ownerCmp.focus(); + this.hide(); + } +}, onFocusableContainerRightKey:function(e) { + var me = this, focusItem = me.lastFocusedChild; + e.preventDefault(); + if (focusItem && focusItem.expandMenu) { + focusItem.expandMenu(e, 0); + } +}, onBeforeShow:function() { + if (Ext.Date.getElapsed(this.lastHide) < this.menuClickBuffer) { + return false; + } +}, beforeShow:function() { + var me = this, parent, activeEl, viewHeight; + if (me.floating) { + parent = me.hasFloatMenuParent(); + if (!parent && !me.allowOtherMenus) { + Ext.menu.Manager.hideAll(); + } + if (parent) { + me.focusAnchor = parent.focusAnchor; + } else { + activeEl = Ext.Element.getActiveElement(); + if (activeEl === document.body || activeEl === document.documentElement) { + me.focusAnchor = null; + } else { + me.focusAnchor = activeEl; + } + } + me.savedMaxHeight = me.maxHeight; + viewHeight = me.container.getViewSize().height; + me.maxHeight = Math.min(me.maxHeight || viewHeight, viewHeight); + } + me.callParent(arguments); +}, afterShow:function() { + var me = this, ariaDom = me.ariaEl.dom; + me.callParent(arguments); + Ext.menu.Manager.onShow(me); + if (me.floating && ariaDom) { + ariaDom.setAttribute('aria-expanded', true); + } + if (me.floating && me.autoFocus) { + me.maxHeight = me.savedMaxHeight; + me.focus(); + } +}, onHide:function(animateTarget, cb, scope) { + var me = this, ariaDom = me.ariaEl.dom, focusTarget; + if (me.el.contains(Ext.Element.getActiveElement())) { + focusTarget = me.focusAnchor || me.ownerCmp || me.up(':focusable'); + if (focusTarget) { + me.previousFocus = focusTarget; + } + } + me.callParent([animateTarget, cb, scope]); + me.lastHide = Ext.Date.now(); + Ext.menu.Manager.onHide(me); + if (me.floating && ariaDom) { + ariaDom.setAttribute('aria-expanded', false); + } +}, preventClick:function(e) { + var item = this.getItemFromEvent(e); + if (item && item.isMenuItem && !item.href) { + e.preventDefault(); + } +}, privates:{hasFloatMenuParent:function() { + return this.parentMenu || this.up('menu[floating\x3dtrue]'); +}, setOwnerCmp:function(comp, instanced) { + var me = this; + me.parentMenu = comp.isMenuItem ? comp : null; + me.ownerCmp = comp; + me.registerWithOwnerCt(); + delete me.hierarchicallyHidden; + me.onInheritedAdd(comp, instanced); + me.containerOnAdded(comp, instanced); +}}}); +Ext.define('Ext.theme.neptune.menu.Menu', {override:'Ext.menu.Menu', showSeparator:false}); +Ext.define('Ext.theme.triton.menu.Menu', {override:'Ext.menu.Menu', compatibility:Ext.isIE8, afterShow:function() { + var me = this, items, item, i, len; + me.callParent(arguments); + items = me.items.getRange(); + for (i = 0, len = items.length; i < len; i++) { + item = items[i]; + if (item && item.repaintIcons) { + item.repaintIcons(); + } + } +}}); +Ext.define('Ext.util.Queue', {constructor:function() { + this.clear(); +}, add:function(obj) { + var me = this, key = me.getKey(obj); + if (!me.map[key]) { + ++me.length; + me.items.push(obj); + me.map[key] = obj; + } + return obj; +}, clear:function() { + var me = this, items = me.items; + me.items = []; + me.map = {}; + me.length = 0; + return items; +}, contains:function(obj) { + var key = this.getKey(obj); + return this.map.hasOwnProperty(key); +}, getCount:function() { + return this.length; +}, getKey:function(obj) { + return obj.id; +}, remove:function(obj) { + var me = this, key = me.getKey(obj), items = me.items, index; + if (me.map[key]) { + index = Ext.Array.indexOf(items, obj); + Ext.Array.erase(items, index, 1); + delete me.map[key]; + --me.length; + } + return obj; +}}); +Ext.define('Ext.layout.ContextItem', {heightModel:null, widthModel:null, sizeModel:null, optOut:false, ownerSizePolicy:null, boxChildren:null, boxParent:null, children:[], dirty:null, dirtyCount:0, hasRawContent:true, isContextItem:true, isTopLevel:false, consumersContentHeight:0, consumersContentWidth:0, consumersContainerHeight:0, consumersContainerWidth:0, consumersHeight:0, consumersWidth:0, ownerCtContext:null, remainingChildDimensions:0, props:null, state:null, wrapsComponent:false, constructor:function(config) { + var me = this, sizeModels = Ext.layout.SizeModel.sizeModels, configured = sizeModels.configured, shrinkWrap = sizeModels.shrinkWrap, el, lastBox, ownerCt, ownerCtContext, props, sizeModel, target, lastWidth, lastHeight, sameWidth, sameHeight, widthModel, heightModel, optOut; + Ext.apply(me, config); + target = me.target; + el = me.el; + me.id = target.id; + me.flushedProps = {}; + me.props = props = {}; + me.styles = {}; + if (!target.isComponent) { + lastBox = el.lastBox; + } else { + me.wrapsComponent = true; + me.framing = target.frameSize || null; + me.isComponentChild = target.ownerLayout && target.ownerLayout.isComponentLayout; + lastBox = target.lastBox; + ownerCt = target.ownerCt; + if (ownerCt && (ownerCtContext = ownerCt.el && me.context.items[ownerCt.el.id])) { + me.ownerCtContext = ownerCtContext; + } + me.sizeModel = sizeModel = target.getSizeModel(ownerCtContext && ownerCtContext.widthModel.pairsByHeightOrdinal[ownerCtContext.heightModel.ordinal]); + me.widthModel = widthModel = sizeModel.width; + me.heightModel = heightModel = sizeModel.height; + if (lastBox && lastBox.invalid === false) { + sameWidth = target.width === (lastWidth = lastBox.width); + sameHeight = target.height === (lastHeight = lastBox.height); + if (widthModel === shrinkWrap && heightModel === shrinkWrap) { + optOut = true; + } else { + if (widthModel === configured && sameWidth) { + optOut = heightModel === shrinkWrap || heightModel === configured && sameHeight; + } + } + if (optOut) { + me.optOut = true; + props.width = lastWidth; + props.height = lastHeight; + } + } + } + me.lastBox = lastBox; +}, init:function(full, options) { + var me = this, oldProps = me.props, oldDirty = me.dirty, ownerCtContext = me.ownerCtContext, ownerLayout = me.target.ownerLayout, firstTime = !me.state, ret = full || firstTime, children, i, n, ownerCt, sizeModel, target, oldHeightModel = me.heightModel, oldWidthModel = me.widthModel, newHeightModel, newWidthModel, remainingCount = 0; + me.dirty = me.invalid = false; + me.props = {}; + me.remainingChildDimensions = 0; + if (me.boxChildren) { + me.boxChildren.length = 0; + } + if (!firstTime) { + me.clearAllBlocks('blocks'); + me.clearAllBlocks('domBlocks'); + } + if (!me.wrapsComponent) { + return ret; + } + target = me.target; + me.state = {}; + if (firstTime) { + if (target.beforeLayout && target.beforeLayout !== Ext.emptyFn) { + target.beforeLayout(); + } + if (!ownerCtContext && (ownerCt = target.ownerCt)) { + ownerCtContext = me.context.items[ownerCt.el.id]; + } + if (ownerCtContext) { + me.ownerCtContext = ownerCtContext; + me.isBoxParent = ownerLayout && ownerLayout.isItemBoxParent(me); + } else { + me.isTopLevel = true; + } + me.frameBodyContext = me.getEl('frameBody'); + } else { + ownerCtContext = me.ownerCtContext; + me.isTopLevel = !ownerCtContext; + children = me.children; + for (i = 0, n = children.length; i < n; ++i) { + children[i].init(true); + } + } + me.hasRawContent = !(target.isContainer && target.items.items.length > 0); + if (full) { + me.widthModel = me.heightModel = null; + sizeModel = target.getSizeModel(ownerCtContext && ownerCtContext.widthModel.pairsByHeightOrdinal[ownerCtContext.heightModel.ordinal]); + if (firstTime) { + me.sizeModel = sizeModel; + } + me.widthModel = sizeModel.width; + me.heightModel = sizeModel.height; + if (ownerCtContext && !me.isComponentChild) { + if (ownerLayout.needsItemSize || !target.liquidLayout) { + ownerCtContext.remainingChildDimensions += 2; + } else { + if (me.widthModel.calculated) { + ++ownerCtContext.remainingChildDimensions; + } + if (me.heightModel.calculated) { + ++ownerCtContext.remainingChildDimensions; + } + } + } + } else { + if (oldProps) { + me.recoverProp('x', oldProps, oldDirty); + me.recoverProp('y', oldProps, oldDirty); + if (me.widthModel.calculated) { + me.recoverProp('width', oldProps, oldDirty); + } else { + if ('width' in oldProps) { + ++remainingCount; + } + } + if (me.heightModel.calculated) { + me.recoverProp('height', oldProps, oldDirty); + } else { + if ('height' in oldProps) { + ++remainingCount; + } + } + if (ownerCtContext && !me.isComponentChild) { + ownerCtContext.remainingChildDimensions += remainingCount; + } + } + } + if (oldProps && ownerLayout && ownerLayout.manageMargins) { + me.recoverProp('margin-top', oldProps, oldDirty); + me.recoverProp('margin-right', oldProps, oldDirty); + me.recoverProp('margin-bottom', oldProps, oldDirty); + me.recoverProp('margin-left', oldProps, oldDirty); + } + if (options) { + newHeightModel = options.heightModel; + newWidthModel = options.widthModel; + if (newWidthModel && newHeightModel && oldWidthModel && oldHeightModel) { + if (oldWidthModel.shrinkWrap && oldHeightModel.shrinkWrap) { + if (newWidthModel.constrainedMax && newHeightModel.constrainedMin) { + newHeightModel = null; + } + } + } + if (newWidthModel) { + me.widthModel = newWidthModel; + } + if (newHeightModel) { + me.heightModel = newHeightModel; + } + if (options.state) { + Ext.apply(me.state, options.state); + } + } + return ret; +}, initContinue:function(full) { + var me = this, ownerCtContext = me.ownerCtContext, comp = me.target, widthModel = me.widthModel, inheritedState = comp.getInherited(), boxParent; + if (widthModel.fixed) { + inheritedState.inShrinkWrapTable = false; + } else { + delete inheritedState.inShrinkWrapTable; + } + if (full) { + if (ownerCtContext && widthModel.shrinkWrap) { + boxParent = ownerCtContext.isBoxParent ? ownerCtContext : ownerCtContext.boxParent; + if (boxParent) { + boxParent.addBoxChild(me); + } + } else { + if (widthModel.natural) { + me.boxParent = ownerCtContext; + } + } + } + return full; +}, initDone:function(containerLayoutDone) { + var me = this, props = me.props, state = me.state; + if (me.remainingChildDimensions === 0) { + props.containerChildrenSizeDone = true; + } + if (containerLayoutDone) { + props.containerLayoutDone = true; + } + if (me.boxChildren && me.boxChildren.length && me.widthModel.shrinkWrap) { + me.el.setWidth(10000); + state.blocks = (state.blocks || 0) + 1; + } +}, initAnimation:function() { + var me = this, target = me.target, ownerCtContext = me.ownerCtContext; + if (ownerCtContext && ownerCtContext.isTopLevel) { + me.animatePolicy = target.ownerLayout.getAnimatePolicy(me); + } else { + if (!ownerCtContext && target.isCollapsingOrExpanding && target.animCollapse) { + me.animatePolicy = target.componentLayout.getAnimatePolicy(me); + } + } + if (me.animatePolicy) { + me.context.queueAnimation(me); + } +}, addBlock:function(name, layout, propName) { + var me = this, collection = me[name] || (me[name] = {}), blockedLayouts = collection[propName] || (collection[propName] = {}); + if (!blockedLayouts[layout.id]) { + blockedLayouts[layout.id] = layout; + ++layout.blockCount; + ++me.context.blockCount; + } +}, addBoxChild:function(boxChildItem) { + var me = this, children, widthModel = boxChildItem.widthModel; + boxChildItem.boxParent = this; + boxChildItem.measuresBox = widthModel.shrinkWrap ? boxChildItem.hasRawContent : widthModel.natural; + if (boxChildItem.measuresBox) { + children = me.boxChildren; + if (children) { + children.push(boxChildItem); + } else { + me.boxChildren = [boxChildItem]; + } + } +}, addPositionStyles:function(styles, props) { + var x = props.x, y = props.y, count = 0; + if (x !== undefined) { + styles.left = x + 'px'; + ++count; + } + if (y !== undefined) { + styles.top = y + 'px'; + ++count; + } + return count; +}, addTrigger:function(propName, inDom) { + var me = this, name = inDom ? 'domTriggers' : 'triggers', collection = me[name] || (me[name] = {}), context = me.context, layout = context.currentLayout, triggers = collection[propName] || (collection[propName] = {}); + if (!triggers[layout.id]) { + triggers[layout.id] = layout; + ++layout.triggerCount; + triggers = context.triggers[inDom ? 'dom' : 'data']; + (triggers[layout.id] || (triggers[layout.id] = [])).push({item:this, prop:propName}); + if (me.props[propName] !== undefined) { + if (!inDom || !(me.dirty && propName in me.dirty)) { + ++layout.firedTriggers; + } + } + } +}, boxChildMeasured:function() { + var me = this, state = me.state, count = state.boxesMeasured = (state.boxesMeasured || 0) + 1; + if (count === me.boxChildren.length) { + state.clearBoxWidth = 1; + ++me.context.progressCount; + me.markDirty(); + } +}, borderNames:['border-top-width', 'border-right-width', 'border-bottom-width', 'border-left-width'], marginNames:['margin-top', 'margin-right', 'margin-bottom', 'margin-left'], paddingNames:['padding-top', 'padding-right', 'padding-bottom', 'padding-left'], trblNames:['top', 'right', 'bottom', 'left'], cacheMissHandlers:{borderInfo:function(me) { + var info = me.getStyles(me.borderNames, me.trblNames); + info.width = info.left + info.right; + info.height = info.top + info.bottom; + return info; +}, marginInfo:function(me) { + var info = me.getStyles(me.marginNames, me.trblNames); + info.width = info.left + info.right; + info.height = info.top + info.bottom; + return info; +}, paddingInfo:function(me) { + var item = me.frameBodyContext || me, info = item.getStyles(me.paddingNames, me.trblNames); + info.width = info.left + info.right; + info.height = info.top + info.bottom; + return info; +}}, checkCache:function(entry) { + return this.cacheMissHandlers[entry](this); +}, clearAllBlocks:function(name) { + var collection = this[name], propName; + if (collection) { + for (propName in collection) { + this.clearBlocks(name, propName); + } + } +}, clearBlocks:function(name, propName) { + var collection = this[name], blockedLayouts = collection && collection[propName], context, layout, layoutId; + if (blockedLayouts) { + delete collection[propName]; + context = this.context; + for (layoutId in blockedLayouts) { + layout = blockedLayouts[layoutId]; + --context.blockCount; + if (!--layout.blockCount && !layout.pending && !layout.done) { + context.queueLayout(layout); + } + } + } +}, block:function(layout, propName) { + this.addBlock('blocks', layout, propName); +}, domBlock:function(layout, propName) { + this.addBlock('domBlocks', layout, propName); +}, fireTriggers:function(name, propName) { + var collection = this[name], triggers = collection && collection[propName], context = this.context, layout, layoutId; + if (triggers) { + for (layoutId in triggers) { + layout = triggers[layoutId]; + ++layout.firedTriggers; + if (!layout.done && !layout.blockCount && !layout.pending) { + context.queueLayout(layout); + } + } + } +}, flush:function() { + var me = this, dirty = me.dirty, state = me.state, targetEl = me.el; + me.dirtyCount = 0; + if ('attributes' in me) { + targetEl.set(me.attributes); + delete me.attributes; + } + if ('innerHTML' in me) { + targetEl.innerHTML = me.innerHTML; + delete me.innerHTML; + } + if (state && state.clearBoxWidth) { + state.clearBoxWidth = 0; + me.el.setStyle('width', null); + if (!--state.blocks) { + me.context.queueItemLayouts(me); + } + } + if (dirty) { + delete me.dirty; + me.writeProps(dirty, true); + } +}, flushAnimations:function() { + var me = this, animateFrom = me.previousSize, target, targetAnim, duration, animateProps, anim, changeCount, j, propsLen, propName, oldValue, newValue; + if (animateFrom) { + target = me.target; + targetAnim = target.getAnimationProps(); + duration = targetAnim.duration; + animateProps = Ext.Object.getKeys(me.animatePolicy); + anim = Ext.apply({}, {from:{}, to:{}, duration:duration || Ext.fx.Anim.prototype.duration}, targetAnim); + for (changeCount = 0, j = 0, propsLen = animateProps.length; j < propsLen; j++) { + propName = animateProps[j]; + oldValue = animateFrom[propName]; + newValue = me.peek(propName); + if (oldValue !== newValue) { + propName = me.translateProps[propName] || propName; + anim.from[propName] = oldValue; + anim.to[propName] = newValue; + ++changeCount; + } + } + if (changeCount) { + if (me.isCollapsingOrExpanding === 1) { + target.componentLayout.undoLayout(me); + } else { + me.writeProps(anim.from); + } + me.el.animate(anim); + anim = Ext.fx.Manager.getFxQueue(me.el.id)[0]; + target.$layoutAnim = anim; + anim.on({afteranimate:function() { + delete target.$layoutAnim; + if (target.destroying || target.destroyed) { + return; + } + if (me.isCollapsingOrExpanding === 1) { + target.componentLayout.redoLayout(me); + target.afterCollapse(true); + } else { + if (me.isCollapsingOrExpanding === 2) { + target.afterExpand(true); + } + } + if (target.hasListeners.afterlayoutanimation) { + target.fireEvent('afterlayoutanimation', target); + } + }}); + } + } +}, getBorderInfo:function() { + var me = this, info = me.borderInfo; + if (!info) { + me.borderInfo = info = me.checkCache('borderInfo'); + } + return info; +}, getEl:function(nameOrEl, owner) { + var me = this, src, el, elContext; + if (nameOrEl) { + if (nameOrEl.dom) { + el = nameOrEl; + } else { + src = me.target; + if (owner) { + src = owner; + } + el = src[nameOrEl]; + if (typeof el === 'function') { + el = el.call(src); + if (el === me.el) { + return this; + } + } + } + if (el) { + elContext = me.context.getEl(me, el); + } + } + return elContext || null; +}, getFrameInfo:function() { + var me = this, info = me.frameInfo, framing, border; + if (!info) { + framing = me.framing; + border = me.getBorderInfo(); + me.frameInfo = info = framing ? {top:framing.top + border.top, right:framing.right + border.right, bottom:framing.bottom + border.bottom, left:framing.left + border.left, width:framing.width + border.width, height:framing.height + border.height} : border; + } + return info; +}, getMarginInfo:function() { + var me = this, info = me.marginInfo, comp, manageMargins, ownerLayout, ownerLayoutId; + if (!info) { + if (!me.wrapsComponent) { + info = me.checkCache('marginInfo'); + } else { + comp = me.target; + ownerLayout = comp.ownerLayout; + ownerLayoutId = ownerLayout ? ownerLayout.id : null; + manageMargins = ownerLayout && ownerLayout.manageMargins; + info = comp.margin$; + if (info && info.ownerId !== ownerLayoutId) { + info = null; + } + if (!info) { + info = me.parseMargins(comp, comp.margin) || me.checkCache('marginInfo'); + if (manageMargins) { + me.setProp('margin-top', 0); + me.setProp('margin-right', 0); + me.setProp('margin-bottom', 0); + me.setProp('margin-left', 0); + } + info.ownerId = ownerLayoutId; + comp.margin$ = info; + } + info.width = info.left + info.right; + info.height = info.top + info.bottom; + } + me.marginInfo = info; + } + return info; +}, clearMarginCache:function() { + delete this.marginInfo; + delete this.target.margin$; +}, getPaddingInfo:function() { + var me = this, info = me.paddingInfo; + if (!info) { + me.paddingInfo = info = me.checkCache('paddingInfo'); + } + return info; +}, getProp:function(propName) { + var me = this, result = me.props[propName]; + me.addTrigger(propName); + return result; +}, getDomProp:function(propName) { + var me = this, result = me.dirty && propName in me.dirty ? undefined : me.props[propName]; + me.addTrigger(propName, true); + return result; +}, getStyle:function(styleName) { + var me = this, styles = me.styles, info, value; + if (styleName in styles) { + value = styles[styleName]; + } else { + info = me.styleInfo[styleName]; + value = me.el.getStyle(styleName); + if (info && info.parseInt) { + value = parseInt(value, 10) || 0; + } + styles[styleName] = value; + } + return value; +}, getStyles:function(styleNames, altNames) { + var me = this, styleCache = me.styles, values = {}, hits = 0, n = styleNames.length, i, missing, missingAltNames, name, info, styleInfo, styles, value; + altNames = altNames || styleNames; + for (i = 0; i < n; ++i) { + name = styleNames[i]; + if (name in styleCache) { + values[altNames[i]] = styleCache[name]; + ++hits; + if (i && hits === 1) { + missing = styleNames.slice(0, i); + missingAltNames = altNames.slice(0, i); + } + } else { + if (hits) { + (missing || (missing = [])).push(name); + (missingAltNames || (missingAltNames = [])).push(altNames[i]); + } + } + } + if (hits < n) { + missing = missing || styleNames; + missingAltNames = missingAltNames || altNames; + styleInfo = me.styleInfo; + styles = me.el.getStyle(missing); + for (i = missing.length; i--;) { + name = missing[i]; + info = styleInfo[name]; + value = styles[name]; + if (info && info.parseInt) { + value = parseInt(value, 10) || 0; + } + values[missingAltNames[i]] = value; + styleCache[name] = value; + } + } + return values; +}, hasProp:function(propName) { + return this.getProp(propName) != null; +}, hasDomProp:function(propName) { + return this.getDomProp(propName) != null; +}, invalidate:function(options) { + this.context.queueInvalidate(this, options); +}, markDirty:function() { + if (++this.dirtyCount === 1) { + this.context.queueFlush(this); + } +}, onBoxMeasured:function() { + var boxParent = this.boxParent, state = this.state; + if (boxParent && boxParent.widthModel.shrinkWrap && !state.boxMeasured && this.measuresBox) { + state.boxMeasured = 1; + boxParent.boxChildMeasured(); + } +}, parseMargins:function(comp, margins) { + if (margins === true) { + margins = 5; + } + var type = typeof margins, ret; + if (type === 'string' || type === 'number') { + ret = comp.parseBox(margins); + } else { + if (margins) { + ret = {top:0, right:0, bottom:0, left:0}; + if (margins) { + margins = Ext.apply(ret, comp.parseBox(margins)); + } + } + } + return ret; +}, peek:function(propName) { + return this.props[propName]; +}, recalculateSizeModel:function() { + var me = this, target = me.target, componentLayout = target.componentLayout, ownerCtContext = me.ownerCtContext, oldContext = componentLayout.ownerContext, sizeModel; + componentLayout.ownerContext = null; + me.sizeModel = sizeModel = target.getSizeModel(ownerCtContext && ownerCtContext.widthModel.pairsByHeightOrdinal[ownerCtContext.heightModel.ordinal]); + me.widthModel = sizeModel.width; + me.heightModel = sizeModel.height; + if (oldContext) { + componentLayout.ownerContext = me; + } +}, recoverProp:function(propName, oldProps, oldDirty) { + var me = this, props = me.props, dirty; + if (propName in oldProps) { + props[propName] = oldProps[propName]; + if (oldDirty && propName in oldDirty) { + dirty = me.dirty || (me.dirty = {}); + dirty[propName] = oldDirty[propName]; + } + } +}, redo:function(deep) { + var me = this, items, len, i; + me.revertProps(me.props); + if (deep && me.wrapsComponent) { + if (me.childItems) { + for (i = 0, items = me.childItems, len = items.length; i < len; i++) { + items[i].redo(deep); + } + } + for (i = 0, items = me.children, len = items.length; i < len; i++) { + items[i].redo(); + } + } +}, removeEl:function(nameOrEl, owner) { + var me = this, src, el; + if (nameOrEl) { + if (nameOrEl.dom) { + el = nameOrEl; + } else { + src = me.target; + if (owner) { + src = owner; + } + el = src[nameOrEl]; + if (typeof el === 'function') { + el = el.call(src); + if (el === me.el) { + return this; + } + } + } + if (el) { + me.context.removeEl(el, me); + } + } +}, revertProps:function(props) { + var name, flushed = this.flushedProps, reverted = {}; + for (name in props) { + if (flushed.hasOwnProperty(name)) { + reverted[name] = props[name]; + } + } + this.writeProps(reverted); +}, setAttribute:function(name, value) { + var me = this; + if (!me.attributes) { + me.attributes = {}; + } + me.attributes[name] = value; + me.markDirty(); +}, setBox:function(box) { + var me = this; + if ('left' in box) { + me.setProp('x', box.left); + } + if ('top' in box) { + me.setProp('y', box.top); + } + me.setSize(box.width, box.height); +}, setContentHeight:function(height, measured) { + if (!measured && this.hasRawContent) { + return 1; + } + return this.setProp('contentHeight', height); +}, setContentWidth:function(width, measured) { + if (!measured && this.hasRawContent) { + return 1; + } + return this.setProp('contentWidth', width); +}, setContentSize:function(width, height, measured) { + return this.setContentWidth(width, measured) + this.setContentHeight(height, measured) === 2; +}, setProp:function(propName, value, dirty) { + var me = this, valueType = typeof value, info; + if (valueType === 'undefined' || valueType === 'number' && isNaN(value)) { + return 0; + } + if (me.props[propName] === value) { + return 1; + } + me.props[propName] = value; + ++me.context.progressCount; + if (dirty === false) { + me.fireTriggers('domTriggers', propName); + me.clearBlocks('domBlocks', propName); + } else { + info = me.styleInfo[propName]; + if (info) { + if (!me.dirty) { + me.dirty = {}; + } + me.dirty[propName] = value; + me.markDirty(); + } + } + me.fireTriggers('triggers', propName); + me.clearBlocks('blocks', propName); + return 1; +}, setHeight:function(height, dirty) { + var me = this, comp = me.target, ownerCtContext = me.ownerCtContext, frameBody, frameInfo, min, oldHeight, rem; + if (height < 0) { + height = 0; + } + if (!me.wrapsComponent) { + if (!me.setProp('height', height, dirty)) { + return NaN; + } + } else { + min = me.collapsedVert ? 0 : comp.minHeight || 0; + height = Ext.Number.constrain(height, min, comp.maxHeight); + oldHeight = me.props.height; + if (!me.setProp('height', height, dirty)) { + return NaN; + } + if (ownerCtContext && !me.isComponentChild && isNaN(oldHeight)) { + rem = --ownerCtContext.remainingChildDimensions; + if (!rem) { + ownerCtContext.setProp('containerChildrenSizeDone', true); + } + } + frameBody = me.frameBodyContext; + if (frameBody) { + frameInfo = me.getFrameInfo(); + frameBody[me.el.vertical ? 'setWidth' : 'setHeight'](height - frameInfo.height, dirty); + } + } + return height; +}, setWidth:function(width, dirty) { + var me = this, comp = me.target, ownerCtContext = me.ownerCtContext, frameBody, frameInfo, min, oldWidth, rem; + if (width < 0) { + width = 0; + } + if (!me.wrapsComponent) { + if (!me.setProp('width', width, dirty)) { + return NaN; + } + } else { + min = me.collapsedHorz ? 0 : comp.minWidth || 0; + width = Ext.Number.constrain(width, min, comp.maxWidth); + oldWidth = me.props.width; + if (!me.setProp('width', width, dirty)) { + return NaN; + } + if (ownerCtContext && !me.isComponentChild && isNaN(oldWidth)) { + rem = --ownerCtContext.remainingChildDimensions; + if (!rem) { + ownerCtContext.setProp('containerChildrenSizeDone', true); + } + } + frameBody = me.frameBodyContext; + if (frameBody) { + frameInfo = me.getFrameInfo(); + frameBody.setWidth(width - frameInfo.width, dirty); + } + } + return width; +}, setSize:function(width, height, dirty) { + this.setWidth(width, dirty); + this.setHeight(height, dirty); +}, translateProps:{x:'left', y:'top'}, undo:function(deep) { + var me = this, items, len, i; + me.revertProps(me.lastBox); + if (deep && me.wrapsComponent) { + if (me.childItems) { + for (i = 0, items = me.childItems, len = items.length; i < len; i++) { + items[i].undo(deep); + } + } + for (i = 0, items = me.children, len = items.length; i < len; i++) { + items[i].undo(); + } + } +}, unsetProp:function(propName) { + var dirty = this.dirty; + delete this.props[propName]; + if (dirty) { + delete dirty[propName]; + } +}, writeProps:function(dirtyProps, flushing) { + if (!(dirtyProps && typeof dirtyProps === 'object')) { + Ext.Logger.warn('writeProps expected dirtyProps to be an object'); + return; + } + var me = this, el = me.el, styles = {}, styleCount = 0, styleInfo = me.styleInfo, info, propName, numericValue, width = dirtyProps.width, height = dirtyProps.height, target = me.target, hasWidth, hasHeight, isAbsolute, scrollbarSize, style, targetEl; + if ('displayed' in dirtyProps) { + el.setDisplayed(dirtyProps.displayed); + } + for (propName in dirtyProps) { + if (flushing) { + me.fireTriggers('domTriggers', propName); + me.clearBlocks('domBlocks', propName); + me.flushedProps[propName] = 1; + } + info = styleInfo[propName]; + if (info && info.dom) { + if (info.suffix && (numericValue = parseInt(dirtyProps[propName], 10))) { + styles[propName] = numericValue + info.suffix; + } else { + styles[propName] = dirtyProps[propName]; + } + ++styleCount; + } + } + if ('x' in dirtyProps || 'y' in dirtyProps) { + if (target.isComponent) { + target.setPosition(dirtyProps.x, dirtyProps.y); + } else { + styleCount += me.addPositionStyles(styles, dirtyProps); + } + } + if (me.wrapsComponent && Ext.isIE9) { + if ((hasWidth = width !== undefined && me.hasOverflowY) || (hasHeight = height !== undefined && me.hasOverflowX)) { + isAbsolute = me.isAbsolute; + if (isAbsolute === undefined) { + isAbsolute = false; + targetEl = me.target.getTargetEl(); + style = targetEl.getStyle('position'); + me.isAbsolute = isAbsolute = style === 'absolute'; + } + if (isAbsolute) { + scrollbarSize = Ext.getScrollbarSize(); + if (hasWidth) { + width = parseInt(width, 10) + scrollbarSize.width; + styles.width = width + 'px'; + ++styleCount; + } + if (hasHeight) { + height = parseInt(height, 10) + scrollbarSize.height; + styles.height = height + 'px'; + ++styleCount; + } + } + } + } + if (styleCount) { + el.setStyle(styles); + } +}, debugHooks:{$enabled:false, addBlock:function(name, layout, propName) { + (layout.blockedBy || (layout.blockedBy = {}))[this.id + '.' + propName + (name.substring(0, 3) === 'dom' ? ':dom' : '')] = 1; + return this.callParent(arguments); +}, addBoxChild:function(boxChildItem) { + var ret = this.callParent(arguments), boxChildren = this.boxChildren, boxParents; + if (boxChildren && boxChildren.length === 1) { + boxParents = this.context.boxParents || (this.context.boxParents = new Ext.util.MixedCollection); + boxParents.add(this); + } + return ret; +}, addTrigger:function(propName, inDom) { + var layout = this.context.currentLayout, triggers; + this.callParent(arguments); + triggers = this.context.triggersByLayoutId; + (triggers[layout.id] || (triggers[layout.id] = {}))[this.id + '.' + propName + (inDom ? ':dom' : '')] = {item:this, name:propName}; +}, checkAuthority:function(prop) { + var me = this, model = me[prop + 'Model'], layout = me.context.currentLayout, ok, setBy; + if (layout === me.target.ownerLayout) { + ok = model.calculated; + } else { + if (layout.isComponentLayout) { + ok = me.isTopLevel || model.auto || model.configured; + } + } + if (!ok) { + setBy = me.context.getLayoutName(layout); + Ext.log(setBy + ' cannot set ' + prop); + } +}, clearBlocks:function(name, propName) { + var collection = this[name], blockedLayouts = collection && collection[propName], key = this.id + '.' + propName + (name.substring(0, 3) === 'dom' ? ':dom' : ''), layout, layoutId; + if (blockedLayouts) { + for (layoutId in blockedLayouts) { + layout = blockedLayouts[layoutId]; + delete layout.blockedBy[key]; + } + } + return this.callParent(arguments); +}, getEl:function(el) { + var child = this.callParent(arguments); + if (child && child !== this && child.parent !== this) { + Ext.raise({msg:'Got element from wrong component'}); + } + return child; +}, init:function() { + var me = this, ret; + ret = me.callParent(arguments); + if (me.context.logOn.initItem) { + Ext.log(me.id, ' consumers: content\x3d', me.consumersContentWidth, '/', me.consumersContentHeight, ', container\x3d', me.consumersContainerWidth, '/', me.consumersContainerHeight, ', size\x3d', me.consumersWidth, '/', me.consumersHeight); + } + return ret; +}, invalidate:function() { + if (this.wrapsComponent) { + if (this.context.logOn.invalidate) { + Ext.log('invalidate: ', this.id); + } + } else { + Ext.raise({msg:'Cannot invalidate an element contextItem'}); + } + return this.callParent(arguments); +}, setProp:function(propName, value, dirty) { + var me = this, layout = me.context.currentLayout, setBy = me.context.getLayoutName(layout), fullName = me.id + '.' + propName, setByProps; + if (value !== null) { + setByProps = me.setBy || (me.setBy = {}); + if (!setByProps[propName]) { + setByProps[propName] = setBy; + } else { + if (setByProps[propName] !== setBy) { + Ext.log({level:'warn'}, 'BAD! ', fullName, ' set by ', setByProps[propName], ' and ', setBy); + } + } + } + if (me.context.logOn.setProp) { + if (typeof value !== 'undefined' && !isNaN(value) && me.props[propName] !== value) { + Ext.log('set ', fullName, ' \x3d ', value, ' (', dirty, ')'); + } + } + return this.callParent(arguments); +}, setHeight:function(height, dirty, force) { + if (!force && this.wrapsComponent) { + this.checkAuthority('height'); + } + return this.callParent(arguments); +}, setWidth:function(width, dirty, force) { + if (!force && this.wrapsComponent) { + this.checkAuthority('width'); + } + return this.callParent(arguments); +}}}, function() { + var px = {dom:true, parseInt:true, suffix:'px'}, isDom = {dom:true}, faux = {dom:false}; + this.prototype.styleInfo = {containerChildrenSizeDone:faux, containerLayoutDone:faux, displayed:faux, done:faux, x:faux, y:faux, columnsChanged:faux, rowHeights:faux, viewOverflowY:faux, left:px, top:px, right:px, bottom:px, width:px, height:px, 'border-top-width':px, 'border-right-width':px, 'border-bottom-width':px, 'border-left-width':px, 'margin-top':px, 'margin-right':px, 'margin-bottom':px, 'margin-left':px, 'padding-top':px, 'padding-right':px, 'padding-bottom':px, 'padding-left':px, 'line-height':isDom, + display:isDom, clear:isDom}; +}); +Ext.define('Ext.layout.Context', {remainingLayouts:0, state:0, cycleWatchDog:200, constructor:function(config) { + var me = this; + Ext.apply(me, config); + me.items = {}; + me.layouts = {}; + me.blockCount = 0; + me.cycleCount = 0; + me.flushCount = 0; + me.calcCount = 0; + me.animateQueue = me.newQueue(); + me.completionQueue = me.newQueue(); + me.finalizeQueue = me.newQueue(); + me.finishQueue = me.newQueue(); + me.flushQueue = me.newQueue(); + me.invalidateData = {}; + me.layoutQueue = me.newQueue(); + me.invalidQueue = []; + me.triggers = {data:{}, dom:{}}; +}, callLayout:function(layout, methodName) { + this.currentLayout = layout; + layout[methodName](this.getCmp(layout.owner)); +}, cancelComponent:function(comp, isChild, isDestroying) { + var me = this, components = comp, isArray = !comp.isComponent, length = isArray ? components.length : 1, i, k, klen, items, layout, newQueue, oldQueue, entry, temp, ownerCtContext; + for (i = 0; i < length; ++i) { + if (isArray) { + comp = components[i]; + } + if (isDestroying) { + if (comp.ownerCt) { + ownerCtContext = this.items[comp.ownerCt.el.id]; + if (ownerCtContext) { + Ext.Array.remove(ownerCtContext.childItems, me.getCmp(comp)); + } + } else { + if (comp.rendered) { + me.removeEl(comp.el); + } + } + } + if (!isChild) { + oldQueue = me.invalidQueue; + klen = oldQueue.length; + if (klen) { + me.invalidQueue = newQueue = []; + for (k = 0; k < klen; ++k) { + entry = oldQueue[k]; + temp = entry.item.target; + if (temp !== comp && !temp.up(comp)) { + newQueue.push(entry); + } + } + } + } + layout = comp.componentLayout; + me.cancelLayout(layout); + if (layout.getLayoutItems) { + items = layout.getLayoutItems(); + if (items.length) { + me.cancelComponent(items, true); + } + } + if (comp.isContainer && !comp.collapsed) { + layout = comp.layout; + me.cancelLayout(layout); + items = layout.getVisibleItems(); + if (items.length) { + me.cancelComponent(items, true); + } + } + } +}, cancelLayout:function(layout) { + var me = this; + me.completionQueue.remove(layout); + me.finalizeQueue.remove(layout); + me.finishQueue.remove(layout); + me.layoutQueue.remove(layout); + if (layout.running) { + me.layoutDone(layout); + } + layout.ownerContext = null; +}, clearTriggers:function(layout, inDom) { + var id = layout.id, collection = this.triggers[inDom ? 'dom' : 'data'], triggers = collection && collection[id], length = triggers && triggers.length || 0, i, item, trigger; + for (i = 0; i < length; ++i) { + trigger = triggers[i]; + item = trigger.item; + collection = inDom ? item.domTriggers : item.triggers; + delete collection[trigger.prop][id]; + } +}, flush:function() { + var me = this, items = me.flushQueue.clear(), length = items.length, i; + if (length) { + ++me.flushCount; + for (i = 0; i < length; ++i) { + items[i].flush(); + } + } +}, flushAnimations:function() { + var me = this, items = me.animateQueue.clear(), len = items.length, i; + if (len) { + for (i = 0; i < len; i++) { + if (items[i].target.animate !== false) { + items[i].flushAnimations(); + } + } + Ext.fx.Manager.runner(); + } +}, flushInvalidates:function() { + var me = this, queue = me.invalidQueue, length = queue && queue.length, comp, components, entry, i; + me.invalidQueue = []; + if (length) { + components = []; + for (i = 0; i < length; ++i) { + comp = (entry = queue[i]).item.target; + if (!comp.container.isDetachedBody) { + components.push(comp); + if (entry.options) { + me.invalidateData[comp.id] = entry.options; + } + } + } + me.invalidate(components, null); + } +}, flushLayouts:function(queueName, methodName, dontClear) { + var me = this, layouts = dontClear ? me[queueName].items : me[queueName].clear(), length = layouts.length, i, layout; + if (length) { + for (i = 0; i < length; ++i) { + layout = layouts[i]; + if (!layout.running) { + me.callLayout(layout, methodName); + } + } + me.currentLayout = null; + } +}, getCmp:function(cmp) { + return this.getItem(cmp, cmp.el); +}, getEl:function(parent, el) { + var item = this.getItem(el, el); + if (!item.parent) { + item.parent = parent; + if (parent.children.length) { + parent.children.push(item); + } else { + parent.children = [item]; + } + } + return item; +}, getItem:function(target, el) { + var id = el.id, items = this.items, item = items[id] || (items[id] = new Ext.layout.ContextItem({context:this, target:target, el:el})); + return item; +}, handleFailure:function() { + var layouts = this.layouts, layout, key; + Ext.failedLayouts = (Ext.failedLayouts || 0) + 1; + for (key in layouts) { + layout = layouts[key]; + if (layouts.hasOwnProperty(key)) { + layout.running = false; + layout.ownerContext = null; + } + } + if (Ext.devMode === 2 && !this.pageAnalyzerMode) { + Ext.raise('Layout run failed'); + } else { + Ext.log.error('Layout run failed'); + } +}, invalidate:function(components, full) { + var me = this, isArray = !components.isComponent, containerLayoutDone, ownerLayout, firstTime, i, comp, item, items, length, componentLayout, layout, invalidateOptions, token, skipLayout; + for (i = 0, length = isArray ? components.length : 1; i < length; ++i) { + comp = isArray ? components[i] : components; + if (comp.rendered && !comp.hidden) { + ownerLayout = comp.ownerLayout; + componentLayout = comp.componentLayout; + skipLayout = false; + if ((!ownerLayout || !ownerLayout.needsItemSize) && comp.liquidLayout) { + skipLayout = true; + } + if (!skipLayout || ownerLayout && ownerLayout.setsItemSize) { + item = me.getCmp(comp); + firstTime = !item.state; + layout = comp.isContainer && !comp.collapsed ? comp.layout : null; + invalidateOptions = me.invalidateData[item.id]; + delete me.invalidateData[item.id]; + token = item.init(full, invalidateOptions); + } + if (skipLayout) { + continue; + } + if (invalidateOptions) { + me.processInvalidate(invalidateOptions, item, 'before'); + } + if (componentLayout.beforeLayoutCycle) { + componentLayout.beforeLayoutCycle(item); + } + if (layout && layout.beforeLayoutCycle) { + layout.beforeLayoutCycle(item); + } + token = item.initContinue(token); + containerLayoutDone = true; + if (componentLayout.getLayoutItems) { + componentLayout.renderChildren(); + items = componentLayout.getLayoutItems(); + if (items.length) { + me.invalidate(items, true); + } + } + if (layout) { + containerLayoutDone = false; + layout.renderChildren(); + if (layout.needsItemSize || layout.activeItemCount) { + items = layout.getVisibleItems(); + if (items.length) { + me.invalidate(items, true); + } + } + } + item.initDone(containerLayoutDone); + me.resetLayout(componentLayout, item, firstTime); + if (layout) { + me.resetLayout(layout, item, firstTime); + } + item.initAnimation(); + if (invalidateOptions) { + me.processInvalidate(invalidateOptions, item, 'after'); + } + } + } + me.currentLayout = null; +}, isDescendant:function(ancestor, descendant) { + if (ancestor.isContainer) { + for (var c = descendant.ownerCt; c; c = c.ownerCt) { + if (c === ancestor) { + return true; + } + } + } + return false; +}, layoutDone:function(layout) { + var ownerContext = layout.ownerContext; + layout.running = false; + if (layout.isComponentLayout) { + if (ownerContext.measuresBox) { + ownerContext.onBoxMeasured(); + } + ownerContext.setProp('done', true); + } else { + ownerContext.setProp('containerLayoutDone', true); + } + --this.remainingLayouts; + ++this.progressCount; +}, newQueue:function() { + return new Ext.util.Queue; +}, processInvalidate:function(options, item, name) { + if (options[name]) { + var me = this, currentLayout = me.currentLayout; + me.currentLayout = options.layout || null; + options[name](item, options); + me.currentLayout = currentLayout; + } +}, queueAnimation:function(item) { + this.animateQueue.add(item); +}, queueCompletion:function(layout) { + this.completionQueue.add(layout); +}, queueFinalize:function(layout) { + this.finalizeQueue.add(layout); +}, queueFlush:function(item) { + this.flushQueue.add(item); +}, chainFns:function(oldOptions, newOptions, funcName) { + var me = this, oldLayout = oldOptions.layout, newLayout = newOptions.layout, oldFn = oldOptions[funcName], newFn = newOptions[funcName]; + return function(contextItem) { + var prev = me.currentLayout; + if (oldFn) { + me.currentLayout = oldLayout; + oldFn.call(oldOptions.scope || oldOptions, contextItem, oldOptions); + } + me.currentLayout = newLayout; + newFn.call(newOptions.scope || newOptions, contextItem, newOptions); + me.currentLayout = prev; + }; +}, purgeInvalidates:function() { + var me = this, newQueue = [], oldQueue = me.invalidQueue, oldLength = oldQueue.length, oldIndex, newIndex, newEntry, newComp, oldEntry, oldComp, keep; + for (oldIndex = 0; oldIndex < oldLength; ++oldIndex) { + oldEntry = oldQueue[oldIndex]; + oldComp = oldEntry.item.target; + keep = true; + for (newIndex = newQueue.length; newIndex--;) { + newEntry = newQueue[newIndex]; + newComp = newEntry.item.target; + if (oldComp.isLayoutChild(newComp)) { + keep = false; + break; + } + if (newComp.isLayoutChild(oldComp)) { + Ext.Array.erase(newQueue, newIndex, 1); + } + } + if (keep) { + newQueue.push(oldEntry); + } + } + me.invalidQueue = newQueue; +}, queueInvalidate:function(item, options) { + var me = this, newQueue = [], oldQueue = me.invalidQueue, index = oldQueue.length, comp, old, oldComp, oldOptions, oldState; + if (item.isComponent) { + comp = item; + item = me.items[comp.el.id]; + if (item) { + item.recalculateSizeModel(); + } else { + item = me.getCmp(comp); + } + } else { + comp = item.target; + } + item.invalid = true; + while (index--) { + old = oldQueue[index]; + oldComp = old.item.target; + if (!comp.isFloating && comp.up(oldComp)) { + return; + } + if (oldComp === comp) { + if (!(oldOptions = old.options)) { + old.options = options; + } else { + if (options) { + if (options.widthModel) { + oldOptions.widthModel = options.widthModel; + } + if (options.heightModel) { + oldOptions.heightModel = options.heightModel; + } + if (!(oldState = oldOptions.state)) { + oldOptions.state = options.state; + } else { + if (options.state) { + Ext.apply(oldState, options.state); + } + } + if (options.before) { + oldOptions.before = me.chainFns(oldOptions, options, 'before'); + } + if (options.after) { + oldOptions.after = me.chainFns(oldOptions, options, 'after'); + } + } + } + return; + } + if (!oldComp.isLayoutChild(comp)) { + newQueue.push(old); + } + } + newQueue.push({item:item, options:options}); + me.invalidQueue = newQueue; +}, queueItemLayouts:function(item) { + var comp = item.isComponent ? item : item.target, layout = comp.componentLayout; + if (!layout.pending && !layout.invalid && !layout.done) { + this.queueLayout(layout); + } + layout = comp.layout; + if (layout && !layout.pending && !layout.invalid && !layout.done && !comp.collapsed) { + this.queueLayout(layout); + } +}, queueLayout:function(layout) { + this.layoutQueue.add(layout); + layout.pending = true; +}, removeEl:function(el, parent) { + var id = el.id, children = parent ? parent.children : null, items = this.items; + if (children) { + Ext.Array.remove(children, items[id]); + } + delete items[id]; +}, resetLayout:function(layout, ownerContext, firstTime) { + var me = this; + me.currentLayout = layout; + layout.done = false; + layout.pending = true; + layout.firedTriggers = 0; + me.layoutQueue.add(layout); + if (firstTime) { + me.layouts[layout.id] = layout; + layout.running = true; + if (layout.finishedLayout) { + me.finishQueue.add(layout); + } + ++me.remainingLayouts; + ++layout.layoutCount; + layout.ownerContext = ownerContext; + layout.beginCount = 0; + layout.blockCount = 0; + layout.calcCount = 0; + layout.triggerCount = 0; + if (!layout.initialized) { + layout.initLayout(); + } + layout.beginLayout(ownerContext); + } else { + ++layout.beginCount; + if (!layout.running) { + ++me.remainingLayouts; + layout.running = true; + layout.ownerContext = ownerContext; + if (layout.isComponentLayout) { + ownerContext.unsetProp('done'); + } + me.completionQueue.remove(layout); + me.finalizeQueue.remove(layout); + } + } + layout.beginLayoutCycle(ownerContext, firstTime); +}, run:function() { + var me = this, flushed = false, watchDog = me.cycleWatchDog; + me.purgeInvalidates(); + me.flushInvalidates(); + me.state = 1; + me.totalCount = me.layoutQueue.getCount(); + me.flush(); + while ((me.remainingLayouts || me.invalidQueue.length) && watchDog--) { + if (me.invalidQueue.length) { + me.flushInvalidates(); + } + if (me.runCycle()) { + flushed = false; + } else { + if (!flushed) { + me.flush(); + flushed = true; + me.flushLayouts('completionQueue', 'completeLayout'); + } else { + if (!me.invalidQueue.length) { + me.state = 2; + break; + } + } + } + if (!(me.remainingLayouts || me.invalidQueue.length)) { + me.flush(); + me.flushLayouts('completionQueue', 'completeLayout'); + me.flushLayouts('finalizeQueue', 'finalizeLayout'); + } + } + return me.runComplete(); +}, runComplete:function() { + var me = this; + me.state = 2; + if (me.remainingLayouts) { + me.handleFailure(); + return false; + } + me.flush(); + me.flushLayouts('finishQueue', 'finishedLayout', true); + me.flushLayouts('finishQueue', 'notifyOwner'); + me.flush(); + me.flushAnimations(); + return true; +}, runCycle:function() { + var me = this, layouts = me.layoutQueue.clear(), length = layouts.length, i; + ++me.cycleCount; + me.progressCount = 0; + for (i = 0; i < length; ++i) { + me.runLayout(me.currentLayout = layouts[i]); + } + me.currentLayout = null; + return me.progressCount > 0; +}, runLayout:function(layout) { + var me = this, ownerContext = me.getCmp(layout.owner); + layout.pending = false; + if (ownerContext.state.blocks) { + return; + } + layout.done = true; + ++layout.calcCount; + ++me.calcCount; + layout.calculate(ownerContext); + if (layout.done) { + me.layoutDone(layout); + if (layout.completeLayout) { + me.queueCompletion(layout); + } + if (layout.finalizeLayout) { + me.queueFinalize(layout); + } + } else { + if (!layout.pending && !layout.invalid && !(layout.blockCount + layout.triggerCount - layout.firedTriggers)) { + me.queueLayout(layout); + } + } +}, setItemSize:function(item, width, height) { + var items = item, len = 1, contextItem, i; + if (item.isComposite) { + items = item.elements; + len = items.length; + item = items[0]; + } else { + if (!item.dom && !item.el) { + len = items.length; + item = items[0]; + } + } + for (i = 0; i < len;) { + contextItem = this.get(item); + contextItem.setSize(width, height); + item = items[++i]; + } +}, debugHooks:{$enabled:false, pageAnalyzerMode:true, logOn:{0:0}, cancelComponent:function(comp) { + if (this.logOn.cancelComponent) { + Ext.log('cancelCmp: ', comp.id); + } + this.callParent(arguments); +}, cancelLayout:function(layout) { + if (this.logOn.cancelLayout) { + Ext.log('cancelLayout: ', this.getLayoutName(layout)); + } + this.callParent(arguments); +}, callLayout:function(layout, methodName) { + var accum = this.accumByType[layout.type], frame = accum && accum.enter(); + this.callParent(arguments); + if (accum) { + frame.leave(); + } +}, checkRemainingLayouts:function() { + var me = this, expected = 0, key, layout; + for (key in me.layouts) { + layout = me.layouts[key]; + if (me.layouts.hasOwnProperty(key) && layout.running) { + ++expected; + } + } + if (me.remainingLayouts !== expected) { + Ext.raise({msg:'Bookkeeping error me.remainingLayouts'}); + } +}, flush:function() { + if (this.logOn.flush) { + var items = this.flushQueue; + Ext.log('--- Flush ', items && items.getCount()); + } + return this.callParent(arguments); +}, flushInvalidates:function() { + if (this.logOn.flushInvalidate) { + Ext.log('\x3e\x3e flushInvalidates'); + } + var ret = this.callParent(arguments); + if (this.logOn.flushInvalidate) { + Ext.log('\x3c\x3c flushInvalidates'); + } + return ret; +}, getCmp:function(target) { + var ret = this.callParent(arguments); + if (!ret.wrapsComponent) { + Ext.raise({msg:target.id + ' is not a component'}); + } + return ret; +}, getEl:function(parent, target) { + var ret = this.callParent(arguments); + if (ret && ret.wrapsComponent) { + Ext.raise({msg:parent.id + '/' + target.id + ' is a component (expected element)'}); + } + return ret; +}, getLayoutName:function(layout) { + return layout.owner.id + '\x3c' + layout.type + '\x3e'; +}, layoutDone:function(layout) { + var me = this, name = me.getLayoutName(layout); + if (me.logOn.layoutDone) { + Ext.log('layoutDone: ', name, ' ( ', me.remainingLayouts, ' running)'); + } + if (!layout.running) { + Ext.raise({msg:name + ' is already done'}); + } + if (!me.remainingLayouts) { + Ext.raise({msg:name + ' finished but no layouts are running'}); + } + me.callParent(arguments); +}, layoutTreeHasFailures:function(layout, reported) { + var me = this; + function hasFailure(lo) { + var failure = !lo.done, key, childLayout; + if (lo.done) { + for (key in me.layouts) { + if (me.layouts.hasOwnProperty(key)) { + childLayout = me.layouts[key]; + if (childLayout.owner.ownerLayout === lo) { + if (hasFailure(childLayout)) { + failure = true; + } + } + } + } + } + return failure; + } + if (hasFailure(layout)) { + return true; + } + function markReported(lo) { + var key, childLayout; + reported[lo.id] = 1; + for (key in me.layouts) { + if (me.layouts.hasOwnProperty(key)) { + childLayout = me.layouts[key]; + if (childLayout.owner.ownerLayout === lo) { + markReported(childLayout); + } + } + } + } + markReported(layout); + return false; +}, queueLayout:function(layout) { + if (layout.done || layout.blockCount || layout.pending) { + Ext.raise({msg:this.getLayoutName(layout) + ' should not be queued for layout'}); + } + if (this.logOn.queueLayout) { + Ext.log('Queue ', this.getLayoutName(layout)); + } + return this.callParent(arguments); +}, reportLayoutResult:function(layout, reported) { + var me = this, owner = layout.owner, ownerContext = me.getCmp(owner), blockedBy = [], triggeredBy = [], key, value, i, length, childLayout, item, setBy, info; + reported[layout.id] = 1; + for (key in layout.blockedBy) { + if (layout.blockedBy.hasOwnProperty(key)) { + blockedBy.push(layout.blockedBy[key]); + } + } + blockedBy.sort(); + for (key in me.triggersByLayoutId[layout.id]) { + if (me.triggersByLayoutId[layout.id].hasOwnProperty(key)) { + value = me.triggersByLayoutId[layout.id][key]; + triggeredBy.push({name:key, info:value}); + } + } + triggeredBy.sort(function(a, b) { + return a.name < b.name ? -1 : b.name < a.name ? 1 : 0; + }); + Ext.log({indent:1}, layout.done ? '++' : '--', me.getLayoutName(layout), ownerContext.isBoxParent ? ' [isBoxParent]' : '', ownerContext.boxChildren ? ' - boxChildren: ' + ownerContext.state.boxesMeasured + '/' + ownerContext.boxChildren.length : '', ownerContext.boxParent ? ' - boxParent: ' + ownerContext.boxParent.id : '', ' - size: ', ownerContext.widthModel.name, '/', ownerContext.heightModel.name); + if (!layout.done || me.reportOnSuccess) { + if (blockedBy.length) { + ++Ext.log.indent; + Ext.log({indent:1}, 'blockedBy: count\x3d', layout.blockCount); + length = blockedBy.length; + for (i = 0; i < length; i++) { + Ext.log(blockedBy[i]); + } + Ext.log.indent -= 2; + } + if (triggeredBy.length) { + ++Ext.log.indent; + Ext.log({indent:1}, 'triggeredBy: count\x3d' + layout.triggerCount); + length = triggeredBy.length; + for (i = 0; i < length; i++) { + info = value.info || value; + item = info.item; + setBy = item.setBy && item.setBy[info.name] || '?'; + value = triggeredBy[i]; + Ext.log(value.name, ' (', item.props[info.name], ') dirty: ', item.dirty ? !!item.dirty[info.name] : false, ', setBy: ', setBy); + } + Ext.log.indent -= 2; + } + } + for (key in me.layouts) { + if (me.layouts.hasOwnProperty(key)) { + childLayout = me.layouts[key]; + if (!childLayout.done && childLayout.owner.ownerLayout === layout) { + me.reportLayoutResult(childLayout, reported); + } + } + } + for (key in me.layouts) { + if (me.layouts.hasOwnProperty(key)) { + childLayout = me.layouts[key]; + if (childLayout.done && childLayout.owner.ownerLayout === layout) { + me.reportLayoutResult(childLayout, reported); + } + } + } + --Ext.log.indent; +}, resetLayout:function(layout) { + var me = this, type = layout.type, name = me.getLayoutName(layout), accum = me.accumByType[type], frame; + if (me.logOn.resetLayout) { + Ext.log('resetLayout: ', name, ' ( ', me.remainingLayouts, ' running)'); + } + if (!me.state) { + if (!accum && me.profileLayoutsByType) { + me.accumByType[type] = accum = Ext.Perf.get('layout_' + layout.type); + } + me.numByType[type] = (me.numByType[type] || 0) + 1; + } + frame = accum && accum.enter(); + me.callParent(arguments); + if (accum) { + frame.leave(); + } + me.checkRemainingLayouts(); +}, round:function(t) { + return Math.round(t * 1000) / 1000; +}, run:function() { + var me = this, ret, time, key, i, layout, boxParent, children, n, reported, unreported, calcs, total, calcsLength, calc; + me.accumByType = {}; + me.calcsByType = {}; + me.numByType = {}; + me.timesByType = {}; + me.triggersByLayoutId = {}; + Ext.log.indentSize = 3; + Ext.log('\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d LAYOUT \x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d'); + time = Ext.perf.getTimestamp(); + ret = me.callParent(arguments); + time = Ext.perf.getTimestamp() - time; + if (me.logOn.boxParent && me.boxParents) { + for (key in me.boxParents) { + if (me.boxParents.hasOwnProperty(key)) { + boxParent = me.boxParents[key]; + children = boxParent.boxChildren; + n = children.length; + Ext.log('boxParent: ', boxParent.id); + for (i = 0; i < n; ++i) { + Ext.log(' --\x3e ', children[i].id); + } + } + } + } + if (ret) { + Ext.log('----------------- SUCCESS -----------------'); + } else { + Ext.log({level:'error'}, '----------------- FAILURE -----------------'); + } + for (key in me.layouts) { + if (me.layouts.hasOwnProperty(key)) { + layout = me.layouts[key]; + if (layout.running) { + Ext.log.error('Layout left running: ', me.getLayoutName(layout)); + } + if (layout.ownerContext) { + Ext.log.error('Layout left connected: ', me.getLayoutName(layout)); + } + } + } + if (!ret || me.reportOnSuccess) { + reported = {}; + unreported = 0; + for (key in me.layouts) { + if (me.layouts.hasOwnProperty(key)) { + layout = me.layouts[key]; + if (me.items[layout.owner.el.id].isTopLevel) { + if (me.reportOnSuccess || me.layoutTreeHasFailures(layout, reported)) { + me.reportLayoutResult(layout, reported); + } + } + } + } + for (key in me.layouts) { + if (me.layouts.hasOwnProperty(key)) { + layout = me.layouts[key]; + if (!reported[layout.id]) { + if (!unreported) { + Ext.log('----- Unreported!! -----'); + } + ++unreported; + me.reportLayoutResult(layout, reported); + } + } + } + } + Ext.log('Cycles: ', me.cycleCount, ', Flushes: ', me.flushCount, ', Calculates: ', me.calcCount, ' in ', me.round(time), ' msec'); + Ext.log('Calculates by type:'); + calcs = []; + for (key in me.numByType) { + if (me.numByType.hasOwnProperty(key)) { + total = me.numByType[key]; + calcs.push({type:key, total:total, calcs:me.calcsByType[key], multiple:Math.round(me.calcsByType[key] / total * 10) / 10, calcTime:me.round(me.timesByType[key]), avgCalcTime:me.round(me.timesByType[key] / me.calcsByType[key])}); + } + } + calcs.sort(function(a, b) { + return b.calcTime - a.calcTime; + }); + calcsLength = calcs.length; + for (i = 0; i < calcsLength; i++) { + calc = calcs[i]; + Ext.log(calc.type, ': ', calc.total, ' in ', calc.calcs, ' tries (', calc.multiple, 'x) at ', calc.calcTime, ' msec (avg ', calc.avgCalcTime, ' msec)'); + } + return ret; +}, runCycle:function() { + if (this.logOn.runCycle) { + Ext.log('\x3e\x3e\x3e Cycle ', this.cycleCount, ' (queue length: ', this.layoutQueue.length, ')'); + } + return this.callParent(arguments); +}, runLayout:function(layout) { + var me = this, type = layout.type, accum = me.accumByType[type], frame, ret, time; + if (me.logOn.calculate) { + Ext.log('-- calculate ', this.getLayoutName(layout)); + } + frame = accum && accum.enter(); + time = Ext.perf.getTimestamp(); + ret = me.callParent(arguments); + time = Ext.perf.getTimestamp() - time; + if (accum) { + frame.leave(); + } + me.calcsByType[type] = (me.calcsByType[type] || 0) + 1; + me.timesByType[type] = (me.timesByType[type] || 0) + time; + return ret; +}}}); +Ext.define('Ext.layout.component.Body', {alias:['layout.body'], extend:Ext.layout.component.Auto, type:'body', beginLayout:function(ownerContext) { + this.callParent(arguments); + ownerContext.bodyContext = ownerContext.getEl('body'); +}, beginLayoutCycle:function(ownerContext, firstCycle) { + var me = this, lastWidthModel = me.lastWidthModel, lastHeightModel = me.lastHeightModel, body = me.owner.body; + me.callParent(arguments); + if (lastWidthModel && lastWidthModel.fixed && ownerContext.widthModel.shrinkWrap) { + body.setWidth(null); + } + if (lastHeightModel && lastHeightModel.fixed && ownerContext.heightModel.shrinkWrap) { + body.setHeight(null); + } +}, calculateOwnerHeightFromContentHeight:function(ownerContext, contentHeight) { + var height = this.callParent(arguments); + if (ownerContext.targetContext !== ownerContext) { + height += ownerContext.getPaddingInfo().height; + } + return height; +}, calculateOwnerWidthFromContentWidth:function(ownerContext, contentWidth) { + var width = this.callParent(arguments); + if (ownerContext.targetContext !== ownerContext) { + width += ownerContext.getPaddingInfo().width; + } + return width; +}, measureContentWidth:function(ownerContext) { + return ownerContext.bodyContext.setWidth(ownerContext.bodyContext.el.dom.offsetWidth, false); +}, measureContentHeight:function(ownerContext) { + return ownerContext.bodyContext.setHeight(ownerContext.bodyContext.el.dom.offsetHeight, false); +}, publishInnerHeight:function(ownerContext, height) { + var innerHeight = height - ownerContext.getFrameInfo().height, targetContext = ownerContext.targetContext; + if (targetContext !== ownerContext) { + innerHeight -= ownerContext.getPaddingInfo().height; + } + return ownerContext.bodyContext.setHeight(innerHeight, !ownerContext.heightModel.natural); +}, publishInnerWidth:function(ownerContext, width) { + var innerWidth = width - ownerContext.getFrameInfo().width, targetContext = ownerContext.targetContext; + if (targetContext !== ownerContext) { + innerWidth -= ownerContext.getPaddingInfo().width; + } + ownerContext.bodyContext.setWidth(innerWidth, !ownerContext.widthModel.natural); +}}); +Ext.define('Ext.layout.component.FieldSet', {extend:Ext.layout.component.Body, alias:['layout.fieldset'], type:'fieldset', defaultCollapsedWidth:100, beforeLayoutCycle:function(ownerContext) { + if (ownerContext.target.collapsed) { + ownerContext.heightModel = this.sizeModels.shrinkWrap; + } +}, beginLayout:function(ownerContext) { + var legend = this.owner.legend; + this.callParent([ownerContext]); + if (legend) { + ownerContext.legendContext = ownerContext.context.getCmp(legend); + } +}, beginLayoutCycle:function(ownerContext) { + var target = ownerContext.target, lastSize; + this.callParent(arguments); + if (target.collapsed) { + ownerContext.setContentHeight(0); + ownerContext.restoreMinHeight = target.minHeight; + delete target.minHeight; + if (ownerContext.widthModel.shrinkWrap) { + lastSize = this.lastComponentSize; + ownerContext.setContentWidth(lastSize && lastSize.contentWidth || this.defaultCollapsedWidth); + } + } +}, finishedLayout:function(ownerContext) { + var owner = this.owner, restore = ownerContext.restoreMinHeight; + this.callParent(arguments); + if (restore) { + owner.minHeight = restore; + } +}, calculateOwnerWidthFromContentWidth:function(ownerContext, contentWidth) { + var legendContext = ownerContext.legendContext; + if (legendContext) { + contentWidth = Math.max(contentWidth, legendContext.getProp('width')); + } + return this.callParent([ownerContext, contentWidth]); +}, calculateOwnerHeightFromContentHeight:function(ownerContext, contentHeight) { + var border = ownerContext.getBorderInfo(), legendContext = ownerContext.legendContext; + return ownerContext.getProp('contentHeight') + ownerContext.getPaddingInfo().height + (Ext.isIE8 ? ownerContext.bodyContext.getPaddingInfo().top : 0) + (legendContext ? legendContext.getProp('height') : border.top) + border.bottom; +}, publishInnerHeight:function(ownerContext, height) { + var legendContext = ownerContext.legendContext, legendHeight = 0; + if (legendContext) { + legendHeight = legendContext.getProp('height'); + } + if (legendHeight === undefined) { + this.done = false; + } else { + this.callParent([ownerContext, height - legendHeight]); + } +}, getLayoutItems:function() { + var legend = this.owner.legend; + return legend ? [legend] : []; +}}); +Ext.define('Ext.layout.container.Card', {extend:Ext.layout.container.Fit, alternateClassName:'Ext.layout.CardLayout', alias:'layout.card', type:'card', hideInactive:true, deferredRender:false, getRenderTree:function() { + var me = this, activeItem = me.getActiveItem(); + if (activeItem) { + if (activeItem.hasListeners.beforeactivate && activeItem.fireEvent('beforeactivate', activeItem) === false) { + activeItem = me.activeItem = me.owner.activeItem = null; + } else { + if (activeItem.hasListeners.activate) { + activeItem.on({boxready:function() { + activeItem.fireEvent('activate', activeItem); + }, single:true}); + } + } + if (me.deferredRender) { + if (activeItem) { + return me.getItemsRenderTree([activeItem]); + } + } else { + return me.callParent(arguments); + } + } +}, renderChildren:function() { + var me = this, active = me.getActiveItem(); + if (!me.deferredRender) { + me.callParent(); + } else { + if (active) { + me.renderItems([active], me.getRenderTarget()); + } + } +}, isValidParent:function(item, target, position) { + var itemEl = item.el ? item.el.dom : Ext.getDom(item); + return itemEl && itemEl.parentNode === (target.dom || target) || false; +}, getActiveItem:function() { + var me = this, item = me.activeItem === undefined ? me.owner && me.owner.activeItem : me.activeItem, result = me.parseActiveItem(item); + if (result && me.owner.items.indexOf(result) !== -1) { + me.activeItem = result; + } + return result == null ? null : me.activeItem || me.owner.activeItem; +}, parseActiveItem:function(item) { + var activeItem; + if (item && item.isComponent) { + activeItem = item; + } else { + if (typeof item === 'number' || item === undefined) { + activeItem = this.getLayoutItems()[item || 0]; + } else { + if (item === null) { + activeItem = null; + } else { + activeItem = this.owner.getComponent(item); + } + } + } + return activeItem; +}, configureItem:function(item) { + item.setHiddenState(item !== this.getActiveItem()); + this.callParent(arguments); +}, onAdd:function(item, pos) { + this.callParent([item, pos]); + this.setItemHideMode(item); +}, onRemove:function(component) { + var me = this; + me.callParent([component]); + me.resetItemHideMode(component); + if (component === me.activeItem) { + me.activeItem = undefined; + } +}, getAnimation:function(newCard, owner) { + var newAnim = (newCard || {}).cardSwitchAnimation; + if (newAnim === false) { + return false; + } + return newAnim || owner.cardSwitchAnimation; +}, getNext:function() { + var wrap = arguments[0], items = this.getLayoutItems(), index = Ext.Array.indexOf(items, this.activeItem); + return items[index + 1] || (wrap ? items[0] : false); +}, next:function() { + var anim = arguments[0], wrap = arguments[1]; + return this.setActiveItem(this.getNext(wrap), anim); +}, getPrev:function() { + var wrap = arguments[0], items = this.getLayoutItems(), index = Ext.Array.indexOf(items, this.activeItem); + return items[index - 1] || (wrap ? items[items.length - 1] : false); +}, prev:function() { + var anim = arguments[0], wrap = arguments[1]; + return this.setActiveItem(this.getPrev(wrap), anim); +}, setActiveItem:function(newCard) { + var me = this, owner = me.owner, oldCard = me.activeItem, rendered = owner.rendered, newIndex, focusNewCard; + newCard = me.parseActiveItem(newCard); + newIndex = owner.items.indexOf(newCard); + if (newIndex === -1) { + newIndex = owner.items.items.length; + Ext.suspendLayouts(); + newCard = owner.add(newCard); + Ext.resumeLayouts(); + } + if (newCard && oldCard !== newCard) { + if (newCard.fireEvent('beforeactivate', newCard, oldCard) === false) { + return false; + } + if (oldCard && oldCard.fireEvent('beforedeactivate', oldCard, newCard) === false) { + return false; + } + if (rendered) { + Ext.suspendLayouts(); + if (!newCard.rendered) { + me.renderItem(newCard, me.getRenderTarget(), owner.items.length); + } + if (oldCard) { + if (me.hideInactive) { + focusNewCard = oldCard.el.contains(Ext.Element.getActiveElement()); + oldCard.hide(); + if (oldCard.hidden) { + oldCard.hiddenByLayout = true; + oldCard.fireEvent('deactivate', oldCard, newCard); + } else { + return false; + } + } + } + if (newCard.hidden) { + newCard.show(); + } + if (newCard.hidden) { + me.activeItem = newCard = null; + } else { + me.activeItem = newCard; + if (focusNewCard) { + if (!newCard.defaultFocus) { + newCard.defaultFocus = ':focusable'; + } + newCard.focus(); + } + } + Ext.resumeLayouts(true); + } else { + me.activeItem = newCard; + } + newCard.fireEvent('activate', newCard, oldCard); + return me.activeItem; + } + return false; +}, resetItemHideMode:function(item) { + item.hideMode = item.originalHideMode; + delete item.originalHideMode; +}, setItemHideMode:function(item) { + item.originalHideMode = item.hideMode; + item.hideMode = 'offsets'; +}}); +Ext.define('Ext.layout.container.Form', {extend:Ext.layout.container.Auto, alternateClassName:'Ext.layout.FormLayout', alias:'layout.form', type:'form', formWrapCls:Ext.baseCSSPrefix + 'form-layout-wrap', formWrapAutoLabelCls:Ext.baseCSSPrefix + 'form-layout-auto-label', formWrapSizedLabelCls:Ext.baseCSSPrefix + 'form-layout-sized-label', formColGroupCls:Ext.baseCSSPrefix + 'form-layout-colgroup', formColumnCls:Ext.baseCSSPrefix + 'form-layout-column', formLabelColumnCls:Ext.baseCSSPrefix + 'form-layout-label-column', +childEls:['formWrap', 'labelColumn'], beforeBodyTpl:'\x3cdiv id\x3d"{ownerId}-formWrap" data-ref\x3d"formWrap" class\x3d"{formWrapCls}"' + '\x3ctpl if\x3d"itemSpacing"\x3e style\x3d"border-spacing:{itemSpacing}px"\x3c/tpl\x3e\x3e' + '\x3cdiv class\x3d"{formColGroupCls}"\x3e' + '\x3cdiv id\x3d"{ownerId}-labelColumn" data-ref\x3d"labelColumn" class\x3d"{formColumnCls} {formLabelColumnCls}"' + '\x3ctpl if\x3d"labelWidth"\x3e style\x3d"width:{labelWidth}"\x3c/tpl\x3e\x3e' + '\x3c/div\x3e' + '\x3cdiv class\x3d"{formColumnCls}"\x3e\x3c/div\x3e' + +'\x3c/div\x3e', afterBodyTpl:'\x3c/div\x3e', getRenderData:function() { + var me = this, labelWidth = me.labelWidth, formWrapCls = me.formWrapCls, data = me.callParent(); + if (labelWidth) { + if (typeof labelWidth === 'number') { + labelWidth += 'px'; + } + data.labelWidth = labelWidth; + formWrapCls += ' ' + me.formWrapSizedLabelCls; + } else { + formWrapCls += ' ' + me.formWrapAutoLabelCls; + } + data.formWrapCls = formWrapCls; + data.formColGroupCls = me.formColGroupCls; + data.formColumnCls = me.formColumnCls; + data.formLabelColumnCls = me.formLabelColumnCls; + return data; +}, getRenderTarget:function() { + return this.formWrap; +}}); +Ext.define('Ext.plugin.Manager', {alternateClassName:['Ext.PluginManager', 'Ext.PluginMgr'], singleton:true, typeName:'ptype', create:function(config, defaultType, host) { + var result, type; + if (config.init) { + result = config; + } else { + if (host) { + config = Ext.apply({}, config); + config.cmp = host; + } else { + host = config.cmp; + } + if (config.xclass) { + result = Ext.create(config); + } else { + type = 'plugin.' + (config.ptype || defaultType); + result = Ext.ClassManager.instantiateByAlias(type, config); + } + } + if (result && host && result.setCmp && !result.setCmpCalled) { + result.setCmp(host); + result.setCmpCalled = true; + } + return result; +}}); +Ext.define('Ext.resizer.ResizeTracker', {extend:Ext.dd.DragTracker, dynamic:true, preserveRatio:false, constrainTo:null, proxyCls:Ext.baseCSSPrefix + 'resizable-proxy', constructor:function(config) { + var me = this, widthRatio, heightRatio, throttledResizeFn; + if (!config.el) { + if (config.target.isComponent) { + me.el = config.target.getEl(); + } else { + me.el = config.target; + } + } + this.callParent(arguments); + if (me.preserveRatio && me.minWidth && me.minHeight) { + widthRatio = me.minWidth / me.el.getWidth(); + heightRatio = me.minHeight / me.el.getHeight(); + if (heightRatio > widthRatio) { + me.minWidth = me.el.getWidth() * heightRatio; + } else { + me.minHeight = me.el.getHeight() * widthRatio; + } + } + if (me.throttle) { + throttledResizeFn = Ext.Function.createThrottled(function() { + Ext.resizer.ResizeTracker.prototype.resize.apply(me, arguments); + }, me.throttle); + me.resize = function(box, direction, atEnd) { + if (atEnd) { + Ext.resizer.ResizeTracker.prototype.resize.apply(me, arguments); + } else { + throttledResizeFn.apply(null, arguments); + } + }; + } +}, onBeforeStart:function(e) { + this.startBox = this.target.getBox(); +}, getProxy:function() { + var me = this; + if (!me.dynamic && !me.proxy) { + me.proxy = me.createProxy(me.target || me.el); + me.hideProxy = true; + } + if (me.proxy) { + me.proxy.show(); + return me.proxy; + } +}, createProxy:function(target) { + var proxy, cls = this.proxyCls; + if (target.isComponent) { + proxy = target.getProxy().addCls(cls); + } else { + proxy = target.createProxy({tag:'div', role:'presentation', cls:cls, id:target.id + '-rzproxy'}, Ext.getBody()); + } + proxy.removeCls(Ext.baseCSSPrefix + 'proxy-el'); + return proxy; +}, onStart:function(e) { + this.activeResizeHandle = Ext.get(this.getDragTarget().id); + if (!this.dynamic) { + this.resize(this.startBox); + } +}, onMouseDown:function(e, target) { + var targetEl = Ext.fly(target.parentNode); + this.callParent(arguments); + if (targetEl && targetEl.shim) { + targetEl.maskIframes(); + } +}, onMouseUp:function(e) { + var targetEl = Ext.fly(this.dragTarget.parentNode); + this.callParent(arguments); + if (targetEl && targetEl.shim) { + targetEl.unmaskIframes(); + } +}, onDrag:function(e) { + if (this.dynamic || this.proxy) { + this.updateDimensions(e); + } +}, updateDimensions:function(e, atEnd) { + var me = this, region = me.activeResizeHandle.region, offset = me.getOffset(me.constrainTo ? 'dragTarget' : null), box = me.startBox, ratio, widthAdjust = 0, heightAdjust = 0, snappedWidth, snappedHeight, adjustX = 0, adjustY = 0, dragRatio, oppositeCorner, axis, newBox, newHeight, newWidth; + region = me.convertRegionName(region); + switch(region) { + case 'south': + heightAdjust = offset[1]; + axis = 2; + break; + case 'north': + heightAdjust = -offset[1]; + adjustY = -heightAdjust; + axis = 2; + break; + case 'east': + widthAdjust = offset[0]; + axis = 1; + break; + case 'west': + widthAdjust = -offset[0]; + adjustX = -widthAdjust; + axis = 1; + break; + case 'northeast': + heightAdjust = -offset[1]; + adjustY = -heightAdjust; + widthAdjust = offset[0]; + oppositeCorner = [box.x, box.y + box.height]; + axis = 3; + break; + case 'southeast': + heightAdjust = offset[1]; + widthAdjust = offset[0]; + oppositeCorner = [box.x, box.y]; + axis = 3; + break; + case 'southwest': + widthAdjust = -offset[0]; + adjustX = -widthAdjust; + heightAdjust = offset[1]; + oppositeCorner = [box.x + box.width, box.y]; + axis = 3; + break; + case 'northwest': + heightAdjust = -offset[1]; + adjustY = -heightAdjust; + widthAdjust = -offset[0]; + adjustX = -widthAdjust; + oppositeCorner = [box.x + box.width, box.y + box.height]; + axis = 3; + break; + } + newBox = {width:box.width + widthAdjust, height:box.height + heightAdjust, x:box.x + adjustX, y:box.y + adjustY}; + snappedWidth = Ext.Number.snap(newBox.width, me.widthIncrement); + snappedHeight = Ext.Number.snap(newBox.height, me.heightIncrement); + if (snappedWidth !== newBox.width || snappedHeight !== newBox.height) { + switch(region) { + case 'northeast': + newBox.y -= snappedHeight - newBox.height; + break; + case 'north': + newBox.y -= snappedHeight - newBox.height; + break; + case 'southwest': + newBox.x -= snappedWidth - newBox.width; + break; + case 'west': + newBox.x -= snappedWidth - newBox.width; + break; + case 'northwest': + newBox.x -= snappedWidth - newBox.width; + newBox.y -= snappedHeight - newBox.height; + } + newBox.width = snappedWidth; + newBox.height = snappedHeight; + } + if (newBox.width < me.minWidth || newBox.width > me.maxWidth) { + newBox.width = Ext.Number.constrain(newBox.width, me.minWidth, me.maxWidth); + if (adjustX) { + newBox.x = box.x + (box.width - newBox.width); + } + } else { + me.lastX = newBox.x; + } + if (newBox.height < me.minHeight || newBox.height > me.maxHeight) { + newBox.height = Ext.Number.constrain(newBox.height, me.minHeight, me.maxHeight); + if (adjustY) { + newBox.y = box.y + (box.height - newBox.height); + } + } else { + me.lastY = newBox.y; + } + if (me.preserveRatio || e.shiftKey) { + ratio = me.startBox.width / me.startBox.height; + newHeight = Math.min(Math.max(me.minHeight, newBox.width / ratio), me.maxHeight); + newWidth = Math.min(Math.max(me.minWidth, newBox.height * ratio), me.maxWidth); + if (axis === 1) { + newBox.height = newHeight; + } else { + if (axis === 2) { + newBox.width = newWidth; + } else { + dragRatio = Math.abs(oppositeCorner[0] - this.lastXY[0]) / Math.abs(oppositeCorner[1] - this.lastXY[1]); + if (dragRatio > ratio) { + newBox.height = newHeight; + } else { + newBox.width = newWidth; + } + if (region === 'northeast') { + newBox.y = box.y - (newBox.height - box.height); + } else { + if (region === 'northwest') { + newBox.y = box.y - (newBox.height - box.height); + newBox.x = box.x - (newBox.width - box.width); + } else { + if (region === 'southwest') { + newBox.x = box.x - (newBox.width - box.width); + } + } + } + } + } + } + me.setPosition = newBox.x !== me.startBox.x || newBox.y !== me.startBox.y; + me.resize(newBox, atEnd); +}, resize:function(box, atEnd) { + var me = this, target, setPosition = me.setPosition; + if (me.dynamic || !me.dynamic && atEnd) { + if (setPosition) { + me.target.setBox(box); + } else { + me.target.setSize(box.width, box.height); + } + } + if (!atEnd) { + target = me.getProxy(); + if (target && target !== me.target) { + if (setPosition || me.hideProxy) { + target.setBox(box); + } else { + target.setSize(box.width, box.height); + } + } + } +}, onEnd:function(e) { + this.updateDimensions(e, true); + if (this.proxy && this.hideProxy) { + this.proxy.hide(); + } +}, convertRegionName:function(name) { + return name; +}}); +Ext.define('Ext.resizer.Resizer', {mixins:{observable:Ext.util.Observable}, alternateClassName:'Ext.Resizable', handleCls:Ext.baseCSSPrefix + 'resizable-handle', overCls:Ext.baseCSSPrefix + 'resizable-handle-over', pinnedCls:Ext.baseCSSPrefix + 'resizable-pinned', wrapCls:Ext.baseCSSPrefix + 'resizable-wrap', wrappedCls:Ext.baseCSSPrefix + 'resizable-wrapped', delimiterRe:/(?:\s*[,;]\s*)|\s+/, dynamic:true, handles:'s e se', height:null, width:null, heightIncrement:0, widthIncrement:0, minHeight:20, +minWidth:20, maxHeight:10000, maxWidth:10000, pinned:false, preserveRatio:false, transparent:false, possiblePositions:{n:'north', s:'south', e:'east', w:'west', se:'southeast', sw:'southwest', nw:'northwest', ne:'northeast'}, ariaRole:'presentation', constructor:function(config) { + var me = this, handles = me.handles, unselectableCls = Ext.dom.Element.unselectableCls, handleEls = [], resizeTarget, handleCls, possibles, tag, len, i, pos, el, box, wrapTarget, positioning, targetBaseCls; + if (Ext.isString(config) || Ext.isElement(config) || config.dom) { + resizeTarget = config; + config = arguments[1] || {}; + config.target = resizeTarget; + } + me.mixins.observable.constructor.call(me, config); + resizeTarget = me.target; + if (resizeTarget) { + if (resizeTarget.isComponent) { + resizeTarget.addClsWithUI('resizable'); + if (resizeTarget.minWidth) { + me.minWidth = resizeTarget.minWidth; + } + if (resizeTarget.minHeight) { + me.minHeight = resizeTarget.minHeight; + } + if (resizeTarget.maxWidth) { + me.maxWidth = resizeTarget.maxWidth; + } + if (resizeTarget.maxHeight) { + me.maxHeight = resizeTarget.maxHeight; + } + if (resizeTarget.floating) { + if (!me.hasOwnProperty('handles')) { + me.handles = 'n ne e se s sw w nw'; + } + } + me.el = resizeTarget.getEl(); + } else { + resizeTarget = me.el = me.target = Ext.get(resizeTarget); + } + } else { + resizeTarget = me.target = me.el = Ext.get(me.el); + } + me.el.addCls(Ext.Component.prototype.borderBoxCls); + if (Ext.isNumber(me.width)) { + me.width = Ext.Number.constrain(me.width, me.minWidth, me.maxWidth); + } + if (Ext.isNumber(me.height)) { + me.height = Ext.Number.constrain(me.height, me.minHeight, me.maxHeight); + } + if (me.width !== null || me.height !== null) { + me.target.setSize(me.width, me.height); + } + tag = me.el.dom.tagName.toUpperCase(); + if (tag === 'TEXTAREA' || tag === 'IMG' || tag === 'TABLE') { + me.originalTarget = me.target; + wrapTarget = resizeTarget.isComponent ? resizeTarget.getEl() : resizeTarget; + me.el.addCls(me.wrappedCls); + me.target = me.el = me.el.wrap({role:'presentation', cls:me.wrapCls, id:me.el.id + '-rzwrap', style:wrapTarget.getStyle(['margin-top', 'margin-bottom'])}); + positioning = wrapTarget.getPositioning(); + me.el.setPositioning(positioning); + wrapTarget.clearPositioning(); + box = wrapTarget.getBox(); + if (positioning.position !== 'absolute') { + box.x = 0; + box.y = 0; + } + me.el.setBox(box); + wrapTarget.setStyle('position', 'absolute'); + me.isTargetWrapped = true; + } + me.el.position(); + if (me.pinned) { + me.el.addCls(me.pinnedCls); + } + me.resizeTracker = new Ext.resizer.ResizeTracker({disabled:me.disabled, target:resizeTarget, el:me.el, constrainTo:me.constrainTo, handleCls:me.handleCls, overCls:me.overCls, throttle:me.throttle, proxy:me.originalTarget ? me.el : null, dynamic:me.originalTarget ? true : me.dynamic, originalTarget:me.originalTarget, delegate:'.' + me.handleCls, preserveRatio:me.preserveRatio, heightIncrement:me.heightIncrement, widthIncrement:me.widthIncrement, minHeight:me.minHeight, maxHeight:me.maxHeight, minWidth:me.minWidth, + maxWidth:me.maxWidth}); + me.resizeTracker.on({mousedown:me.onBeforeResize, drag:me.onResize, dragend:me.onResizeEnd, scope:me}); + if (me.handles === 'all') { + me.handles = 'n s e w ne nw se sw'; + } + handles = me.handles = me.handles.split(me.delimiterRe); + possibles = me.possiblePositions; + len = handles.length; + handleCls = me.handleCls + ' ' + me.handleCls + '-{0}'; + if (me.target.isComponent) { + targetBaseCls = me.target.baseCls; + handleCls += ' ' + targetBaseCls + '-handle ' + targetBaseCls + '-handle-{0}'; + if (Ext.supports.CSS3BorderRadius) { + handleCls += ' ' + targetBaseCls + '-handle-{0}-br'; + } + } + for (i = 0; i < len; i++) { + if (handles[i] && possibles[handles[i]]) { + pos = possibles[handles[i]]; + handleEls.push('\x3cdiv id\x3d"', me.el.id, '-', pos, '-handle" class\x3d"', Ext.String.format(handleCls, pos), ' ', unselectableCls, '" unselectable\x3d"on" role\x3d"presentation"', '\x3e\x3c/div\x3e'); + } + } + Ext.DomHelper.append(me.el, handleEls.join('')); + handleEls.length = 0; + for (i = 0; i < len; i++) { + if (handles[i] && possibles[handles[i]]) { + pos = possibles[handles[i]]; + el = me[pos] = me.el.getById(me.el.id + '-' + pos + '-handle'); + handleEls.push(el); + el.region = pos; + if (me.transparent) { + el.setOpacity(0); + } + } + } + me.resizeTracker.handleEls = handleEls; +}, disable:function() { + this.resizeTracker.disable(); +}, enable:function() { + this.resizeTracker.enable(); +}, onBeforeResize:function(tracker, e) { + return this.fireResizeEvent('beforeresize', tracker, e); +}, onResize:function(tracker, e) { + return this.fireResizeEvent('resizedrag', tracker, e); +}, onResizeEnd:function(tracker, e) { + return this.fireResizeEvent('resize', tracker, e); +}, fireResizeEvent:function(name, tracker, e) { + var me = this, box; + if (me.hasListeners[name]) { + box = me.el.getBox(); + return me.fireEvent(name, me, box.width, box.height, e); + } +}, resizeTo:function(width, height) { + var me = this; + me.target.setSize(width, height); + me.fireEvent('resize', me, width, height, null); +}, getEl:function() { + return this.el; +}, getTarget:function() { + return this.target; +}, destroy:function() { + var me = this, i, handles = me.handles, len = handles.length, positions = me.possiblePositions, handle; + me.resizeTracker.destroy(); + if (me.isTargetWrapped) { + me.target.destroy(); + } + for (i = 0; i < len; i++) { + if (handle = me[positions[handles[i]]]) { + handle.destroy(); + } + } + me.callParent(); +}}); +Ext.define('Ext.tab.Tab', {extend:Ext.button.Button, alias:'widget.tab', isTab:true, baseCls:Ext.baseCSSPrefix + 'tab', closeElOverCls:Ext.baseCSSPrefix + 'tab-close-btn-over', closeElPressedCls:Ext.baseCSSPrefix + 'tab-close-btn-pressed', config:{rotation:'default', tabPosition:'top'}, closable:true, closeText:'Close Tab', active:false, childEls:['closeEl'], scale:false, ariaRole:'tab', tabIndex:-1, keyHandlers:{DELETE:'onDeleteKey'}, _btnWrapCls:Ext.baseCSSPrefix + 'tab-wrap', _btnCls:Ext.baseCSSPrefix + +'tab-button', _baseIconCls:Ext.baseCSSPrefix + 'tab-icon-el', _glyphCls:Ext.baseCSSPrefix + 'tab-glyph', _innerCls:Ext.baseCSSPrefix + 'tab-inner', _textCls:Ext.baseCSSPrefix + 'tab-text', _noTextCls:Ext.baseCSSPrefix + 'tab-no-text', _hasIconCls:Ext.baseCSSPrefix + 'tab-icon', _activeCls:Ext.baseCSSPrefix + 'tab-active', _closableCls:Ext.baseCSSPrefix + 'tab-closable', overCls:Ext.baseCSSPrefix + 'tab-over', _pressedCls:Ext.baseCSSPrefix + 'tab-pressed', _disabledCls:Ext.baseCSSPrefix + 'tab-disabled', +_rotateClasses:{1:Ext.baseCSSPrefix + 'tab-rotate-right', 2:Ext.baseCSSPrefix + 'tab-rotate-left'}, _positions:{top:{'default':'top', 0:'top', 1:'left', 2:'right'}, right:{'default':'top', 0:'right', 1:'top', 2:'bottom'}, bottom:{'default':'bottom', 0:'bottom', 1:'right', 2:'left'}, left:{'default':'top', 0:'left', 1:'bottom', 2:'top'}}, _defaultRotations:{top:0, right:1, bottom:0, left:2}, initComponent:function() { + var me = this; + if (me.card) { + me.setCard(me.card); + } + me.callParent(arguments); +}, getActualRotation:function() { + var rotation = this.getRotation(); + return rotation !== 'default' ? rotation : this._defaultRotations[this.getTabPosition()]; +}, updateRotation:function() { + this.syncRotationAndPosition(); +}, updateTabPosition:function() { + this.syncRotationAndPosition(); +}, syncRotationAndPosition:function() { + var me = this, rotateClasses = me._rotateClasses, position = me.getTabPosition(), rotation = me.getActualRotation(), oldRotateCls = me._rotateCls, rotateCls = me._rotateCls = rotateClasses[rotation], oldPositionCls = me._positionCls, positionCls = me._positionCls = me._positions[position][rotation]; + if (oldRotateCls !== rotateCls) { + if (oldRotateCls) { + me.removeCls(oldRotateCls); + } + if (rotateCls) { + me.addCls(rotateCls); + } + } + if (oldPositionCls !== positionCls) { + if (oldPositionCls) { + me.removeClsWithUI(oldPositionCls); + } + if (positionCls) { + me.addClsWithUI(positionCls); + } + if (me.rendered) { + me.updateFrame(); + } + } + if (me.rendered) { + me.setElOrientation(); + } +}, onAdded:function(container, pos, instanced) { + this.callParent([container, pos, instanced]); + this.syncRotationAndPosition(); +}, getTemplateArgs:function() { + var me = this, result = me.callParent(); + result.closable = me.closable; + result.closeText = me.closeText; + return result; +}, beforeRender:function() { + var me = this, tabBar = me.up('tabbar'), tabPanel = me.up('tabpanel'); + me.callParent(); + me.ariaRenderAttributes = me.ariaRenderAttributes || {}; + if (me.active) { + me.ariaRenderAttributes['aria-selected'] = true; + me.addCls(me._activeCls); + } else { + me.ariaRenderAttributes['aria-selected'] = false; + } + me.syncClosableCls(); + if (!me.minWidth) { + me.minWidth = tabBar ? tabBar.minTabWidth : me.minWidth; + if (!me.minWidth && tabPanel) { + me.minWidth = tabPanel.minTabWidth; + } + if (me.minWidth && me.iconCls) { + me.minWidth += 25; + } + } + if (!me.maxWidth) { + me.maxWidth = tabBar ? tabBar.maxTabWidth : me.maxWidth; + if (!me.maxWidth && tabPanel) { + me.maxWidth = tabPanel.maxTabWidth; + } + } +}, onRender:function() { + var me = this; + me.setElOrientation(); + me.callParent(arguments); + if (me.closable) { + me.closeEl.addClsOnOver(me.closeElOverCls); + me.closeEl.addClsOnClick(me.closeElPressedCls); + } +}, setElOrientation:function() { + var me = this, rotation = me.getActualRotation(), el = me.el; + if (rotation) { + el.setVertical(rotation === 1 ? 90 : 270); + } else { + el.setHorizontal(); + } +}, enable:function(silent) { + var me = this; + me.callParent(arguments); + me.removeCls(me._disabledCls); + return me; +}, disable:function(silent) { + var me = this; + me.callParent(arguments); + me.addCls(me._disabledCls); + return me; +}, setClosable:function(closable) { + var me = this; + closable = !arguments.length || !!closable; + if (me.closable !== closable) { + me.closable = closable; + if (me.card) { + me.card.closable = closable; + } + me.syncClosableCls(); + if (me.rendered) { + me.syncClosableElements(); + me.updateLayout(); + } + } +}, syncClosableElements:function() { + var me = this, closeEl = me.closeEl; + if (me.closable) { + if (!closeEl) { + closeEl = me.closeEl = me.btnWrap.insertSibling({tag:'span', id:me.id + '-closeEl', cls:me.baseCls + '-close-btn', html:me.closeText}, 'after'); + } + closeEl.addClsOnOver(me.closeElOverCls); + closeEl.addClsOnClick(me.closeElPressedCls); + } else { + if (closeEl) { + closeEl.destroy(); + delete me.closeEl; + } + } +}, syncClosableCls:function() { + var me = this, closableCls = me._closableCls; + if (me.closable) { + me.addCls(closableCls); + } else { + me.removeCls(closableCls); + } +}, setCard:function(card) { + var me = this; + me.card = card; + if (card.iconAlign) { + me.setIconAlign(card.iconAlign); + } + if (card.textAlign) { + me.setTextAlign(card.textAlign); + } + me.setText(me.title || card.title); + me.setIconCls(me.iconCls || card.iconCls); + me.setIcon(me.icon || card.icon); + me.setGlyph(me.glyph || card.glyph); +}, onCloseClick:function() { + var me = this; + if (me.fireEvent('beforeclose', me) !== false) { + if (me.tabBar) { + if (me.tabBar.closeTab(me) === false) { + return; + } + } else { + me.fireClose(); + } + } +}, fireClose:function() { + this.fireEvent('close', this); +}, onEnterKey:function(e) { + var me = this; + if (me.tabBar) { + me.tabBar.onClick(e, me.el); + e.stopEvent(); + return false; + } +}, onDeleteKey:function(e) { + if (this.closable) { + this.onCloseClick(); + e.stopEvent(); + return false; + } +}, beforeClick:function(isCloseClick) { + if (!isCloseClick) { + this.focus(); + } +}, activate:function(supressEvent) { + var me = this, card = me.card, ariaDom = me.ariaEl.dom; + me.active = true; + me.addCls(me._activeCls); + if (ariaDom) { + ariaDom.setAttribute('aria-selected', true); + } else { + me.ariaRenderAttributes = me.ariaRenderAttributes || {}; + me.ariaRenderAttributes['aria-selected'] = true; + } + if (card) { + if (card.ariaEl.dom) { + card.ariaEl.dom.setAttribute('aria-expanded', true); + } else { + card.ariaRenderAttributes = card.ariaRenderAttributes || {}; + card.ariaRenderAttributes['aria-expanded'] = true; + } + } + if (supressEvent !== true) { + me.fireEvent('activate', me); + } +}, deactivate:function(supressEvent) { + var me = this, card = me.card, ariaDom = me.ariaEl.dom; + me.active = false; + me.removeCls(me._activeCls); + if (ariaDom) { + ariaDom.setAttribute('aria-selected', false); + } else { + me.ariaRenderAttributes = me.ariaRenderAttributes || {}; + me.ariaRenderAttributes['aria-selected'] = false; + } + if (card) { + if (card.ariaEl.dom) { + card.ariaEl.dom.setAttribute('aria-expanded', false); + } else { + card.ariaRenderAttributes = card.ariaRenderAttributes || {}; + card.ariaRenderAttributes['aria-expanded'] = false; + } + } + if (supressEvent !== true) { + me.fireEvent('deactivate', me); + } +}, privates:{getFramingInfoCls:function() { + return this.baseCls + '-' + this.ui + '-' + this._positionCls; +}, wrapPrimaryEl:function(dom) { + Ext.Button.superclass.wrapPrimaryEl.call(this, dom); +}}}); +Ext.define('Ext.tab.Bar', {extend:Ext.panel.Bar, xtype:'tabbar', baseCls:Ext.baseCSSPrefix + 'tab-bar', mixins:[Ext.util.FocusableContainer], componentLayout:'body', isTabBar:true, config:{tabRotation:'default', tabStretchMax:true, activateOnFocus:true}, defaultType:'tab', plain:false, ensureActiveVisibleOnChange:true, ariaRole:'tablist', childEls:['body', 'strip'], _stripCls:Ext.baseCSSPrefix + 'tab-bar-strip', _baseBodyCls:Ext.baseCSSPrefix + 'tab-bar-body', renderTpl:'\x3cdiv id\x3d"{id}-body" data-ref\x3d"body" role\x3d"presentation" class\x3d"{baseBodyCls} {baseBodyCls}-{ui} ' + +'{bodyCls} {bodyTargetCls}{childElCls}"\x3ctpl if\x3d"bodyStyle"\x3e style\x3d"{bodyStyle}"\x3c/tpl\x3e\x3e' + '{%this.renderContainer(out,values)%}' + '\x3c/div\x3e' + '\x3cdiv id\x3d"{id}-strip" data-ref\x3d"strip" role\x3d"presentation" class\x3d"{stripCls} {stripCls}-{ui}{childElCls}"\x3e\x3c/div\x3e', _reverseDockNames:{left:'right', right:'left'}, _layoutAlign:{top:'end', right:'begin', bottom:'begin', left:'end'}, initComponent:function() { + var me = this, initialLayout = me.initialConfig.layout, initialAlign = initialLayout && initialLayout.align, initialOverflowHandler = initialLayout && initialLayout.overflowHandler; + if (me.plain) { + me.addCls(me.baseCls + '-plain'); + } + me.callParent(); + me.setLayout({align:initialAlign || (me.getTabStretchMax() ? 'stretchmax' : me._layoutAlign[me.dock]), overflowHandler:initialOverflowHandler || 'scroller'}); + me.on({click:me.onClick, element:'el', scope:me}); +}, ensureTabVisible:function(tab) { + var me = this, tabPanel = me.tabPanel, overflowHandler = me.layout.overflowHandler; + if (me.rendered && overflowHandler && me.tooNarrow && overflowHandler.scrollToItem) { + if (tab || tab === 0) { + if (!tab.isTab) { + if (Ext.isNumber(tab)) { + tab = this.items.getAt(tab); + } else { + if (tab.isComponent && tabPanel && tabPanel.items.contains(tab)) { + tab = tab.tab; + } + } + } + } + if (!tab) { + tab = me.activeTab; + } + if (tab) { + overflowHandler.scrollToItem(tab); + } + } +}, initRenderData:function() { + var me = this; + return Ext.apply(me.callParent(), {bodyCls:me.bodyCls, baseBodyCls:me._baseBodyCls, bodyTargetCls:me.bodyTargetCls, stripCls:me._stripCls, dock:me.dock}); +}, setDock:function(dock) { + var me = this, items = me.items, ownerCt = me.ownerCt, item, i, ln; + items = items && items.items; + if (items) { + for (i = 0, ln = items.length; i < ln; i++) { + item = items[i]; + if (item.isTab) { + item.setTabPosition(dock); + } + } + } + if (me.rendered) { + me.resetItemMargins(); + if (ownerCt && ownerCt.isHeader) { + ownerCt.resetItemMargins(); + } + me.needsScroll = true; + } + me.callParent([dock]); +}, updateTabRotation:function(tabRotation) { + var me = this, items = me.items, i, ln, item; + items = items && items.items; + if (items) { + for (i = 0, ln = items.length; i < ln; i++) { + item = items[i]; + if (item.isTab) { + item.setRotation(tabRotation); + } + } + } + if (me.rendered) { + me.resetItemMargins(); + me.needsScroll = true; + me.updateLayout(); + } +}, onRender:function() { + var me = this; + me.callParent(); + if (Ext.isIE8 && me.vertical) { + me.el.on({mousemove:me.onMouseMove, scope:me}); + } +}, afterLayout:function() { + this.adjustTabPositions(); + this.callParent(arguments); +}, onAdd:function(tab, pos) { + var fn = this.onTabContentChange; + if (this.ensureActiveVisibleOnChange) { + tab.barListeners = tab.on({scope:this, destroyable:true, glyphchange:fn, iconchange:fn, textchange:fn}); + } + this.callParent([tab, pos]); +}, onAdded:function(container, pos, instanced) { + if (container.isHeader) { + this.addCls(container.baseCls + '-' + container.ui + '-tab-bar'); + } + this.callParent([container, pos, instanced]); +}, onRemove:function(tab, destroying) { + var me = this; + if (me.ensureActiveVisibleOnChange) { + if (!destroying) { + tab.barListeners.destroy(); + } + tab.barListeners = null; + } + if (tab === me.previousTab) { + me.previousTab = null; + } + me.callParent([tab, destroying]); +}, onRemoved:function(destroying) { + var ownerCt = this.ownerCt; + if (ownerCt.isHeader) { + this.removeCls(ownerCt.baseCls + '-' + ownerCt.ui + '-tab-bar'); + } + this.callParent([destroying]); +}, onTabContentChange:function(tab) { + if (tab === this.activeTab) { + this.ensureTabVisible(tab); + } +}, afterComponentLayout:function(width) { + var me = this, needsScroll = me.needsScroll, overflowHandler = me.layout.overflowHandler; + me.callParent(arguments); + if (overflowHandler && needsScroll && me.tooNarrow && overflowHandler.scrollToItem) { + overflowHandler.scrollToItem(me.activeTab); + } + delete me.needsScroll; +}, onMouseMove:function(e) { + var me = this, overTab = me._overTab, tabInfo, tab; + if (e.getTarget('.' + Ext.baseCSSPrefix + 'box-scroller')) { + return; + } + tabInfo = me.getTabInfoFromPoint(e.getXY()); + tab = tabInfo.tab; + if (tab !== overTab) { + if (overTab && overTab.rendered) { + overTab.onMouseLeave(e); + me._overTab = null; + } + if (tab) { + tab.onMouseEnter(e); + me._overTab = tab; + if (!tab.disabled) { + me.el.setStyle('cursor', 'pointer'); + } + } else { + me.el.setStyle('cursor', 'default'); + } + } +}, onMouseLeave:function(e) { + var overTab = this._overTab; + if (overTab && overTab.rendered) { + overTab.onMouseLeave(e); + } +}, getTabInfoFromPoint:function(xy) { + var me = this, tabs = me.items.items, length = tabs.length, innerCt = me.layout.innerCt, innerCtXY = innerCt.getXY(), point = new Ext.util.Point(xy[0], xy[1]), i = 0, lastBox, tabRegion, closeEl, close, closeXY, closeX, closeY, closeWidth, closeHeight, tabX, tabY, tabWidth, tabHeight, closeRegion, isTabReversed, direction, tab; + for (; i < length; i++) { + tab = tabs[i]; + lastBox = tab.lastBox; + if (!lastBox || !tab.isTab) { + continue; + } + tabX = innerCtXY[0] + lastBox.x; + tabY = innerCtXY[1] - innerCt.dom.scrollTop + lastBox.y; + tabWidth = lastBox.width; + tabHeight = lastBox.height; + tabRegion = new Ext.util.Region(tabY, tabX + tabWidth, tabY + tabHeight, tabX); + if (tabRegion.contains(point)) { + closeEl = tab.closeEl; + if (closeEl) { + if (me._isTabReversed === undefined) { + me._isTabReversed = isTabReversed = tab.btnWrap.dom.currentStyle.filter.indexOf('rotation\x3d2') !== -1; + } + direction = isTabReversed ? this._reverseDockNames[me.dock] : me.dock; + closeWidth = closeEl.getWidth(); + closeHeight = closeEl.getHeight(); + closeXY = me.getCloseXY(closeEl, tabX, tabY, tabWidth, tabHeight, closeWidth, closeHeight, direction); + closeX = closeXY[0]; + closeY = closeXY[1]; + closeRegion = new Ext.util.Region(closeY, closeX + closeWidth, closeY + closeHeight, closeX); + close = closeRegion.contains(point); + } + break; + } + } + return {tab:tab, close:close}; +}, getCloseXY:function(closeEl, tabX, tabY, tabWidth, tabHeight, closeWidth, closeHeight, direction) { + var closeXY = closeEl.getXY(), closeX, closeY; + if (direction === 'right') { + closeX = tabX + tabWidth - (closeXY[1] - tabY + closeHeight); + closeY = tabY + (closeXY[0] - tabX); + } else { + closeX = tabX + (closeXY[1] - tabY); + closeY = tabY + tabX + tabHeight - closeXY[0] - closeWidth; + } + return [closeX, closeY]; +}, closeTab:function(toClose) { + var me = this, card = toClose.card, tabPanel = me.tabPanel, toActivate; + if (card && card.fireEvent('beforeclose', card) === false) { + return false; + } + toActivate = me.findNextActivatable(toClose); + Ext.suspendLayouts(); + if (tabPanel && card) { + delete toClose.ownerCt; + card.fireEvent('close', card); + tabPanel.remove(card); + if (!tabPanel.getComponent(card)) { + toClose.fireClose(); + me.remove(toClose); + } else { + toClose.ownerCt = me; + Ext.resumeLayouts(true); + return false; + } + } + if (toActivate) { + if (tabPanel) { + tabPanel.setActiveTab(toActivate.card); + } else { + me.setActiveTab(toActivate); + } + toActivate.focus(); + } + Ext.resumeLayouts(true); +}, findNextActivatable:function(toClose) { + var me = this, previousTab = me.previousTab, nextTab; + if (toClose.active && me.items.getCount() > 1) { + if (previousTab && previousTab !== toClose && !previousTab.disabled) { + nextTab = previousTab; + } else { + nextTab = toClose.next('tab[disabled\x3dfalse]') || toClose.prev('tab[disabled\x3dfalse]'); + } + } + return nextTab || me.activeTab; +}, setActiveTab:function(tab, initial) { + var me = this; + if (!tab.disabled && tab !== me.activeTab) { + if (me.activeTab) { + if (me.activeTab.destroyed) { + me.previousTab = null; + } else { + me.previousTab = me.activeTab; + me.activeTab.deactivate(); + me.deactivateFocusable(me.activeTab); + } + } + tab.activate(); + me.activateFocusable(tab); + me.activeTab = tab; + me.needsScroll = true; + if (!initial) { + me.fireEvent('change', me, tab, tab.card); + me.updateLayout(); + } + } +}, privates:{adjustTabPositions:function() { + var me = this, items = me.items.items, i = items.length, tab, lastBox, el, rotation, prop; + if (!Ext.isIE8) { + prop = me._getTabAdjustProp(); + while (i--) { + tab = items[i]; + el = tab.el; + lastBox = tab.lastBox; + rotation = tab.isTab ? tab.getActualRotation() : 0; + if (rotation === 1 && tab.isVisible()) { + el.setStyle(prop, lastBox.x + lastBox.width + 'px'); + } else { + if (rotation === 2 && tab.isVisible()) { + el.setStyle(prop, lastBox.x - lastBox.height + 'px'); + } + } + } + } +}, applyTargetCls:function(targetCls) { + this.bodyTargetCls = targetCls; +}, _getTabAdjustProp:function() { + return 'left'; +}, getTargetEl:function() { + return this.body || this.frameBody || this.el; +}, onClick:function(e, target) { + var me = this, tabEl, tab, isCloseClick, tabInfo; + if (e.getTarget('.' + Ext.baseCSSPrefix + 'box-scroller')) { + return; + } + if (Ext.isIE8 && me.vertical) { + tabInfo = me.getTabInfoFromPoint(e.getXY()); + tab = tabInfo.tab; + isCloseClick = tabInfo.close; + } else { + tabEl = e.getTarget('.' + Ext.tab.Tab.prototype.baseCls); + tab = tabEl && Ext.getCmp(tabEl.id); + isCloseClick = tab && tab.closeEl && target === tab.closeEl.dom; + } + if (isCloseClick) { + e.preventDefault(); + } + if (tab && tab.isDisabled && !tab.isDisabled()) { + tab.beforeClick(isCloseClick); + if (tab.closable && isCloseClick) { + tab.onCloseClick(); + } else { + me.doActivateTab(tab); + } + } +}, doActivateTab:function(tab) { + var tabPanel = this.tabPanel; + if (tabPanel) { + if (!tab.disabled) { + tabPanel.setActiveTab(tab.card); + } + } else { + this.setActiveTab(tab); + } +}, onFocusableContainerFocus:function(e) { + var me = this, mixin = me.mixins.focusablecontainer, child; + child = mixin.onFocusableContainerFocus.call(me, e); + if (child && child.isTab) { + me.doActivateTab(child); + } +}, onFocusableContainerFocusEnter:function(e) { + var me = this, mixin = me.mixins.focusablecontainer, child; + child = mixin.onFocusableContainerFocusEnter.call(me, e); + if (child && child.isTab) { + me.doActivateTab(child); + } +}, focusChild:function(child, forward) { + var me = this, mixin = me.mixins.focusablecontainer, nextChild; + nextChild = mixin.focusChild.call(me, child, forward); + if (me.activateOnFocus && nextChild && nextChild.isTab) { + me.doActivateTab(nextChild); + } +}}}); +Ext.define('Ext.tab.Panel', {extend:Ext.panel.Panel, alias:'widget.tabpanel', alternateClassName:['Ext.TabPanel'], config:{tabBar:undefined, tabPosition:'top', tabRotation:'default', tabStretchMax:true}, removePanelHeader:true, plain:false, itemCls:Ext.baseCSSPrefix + 'tabpanel-child', minTabWidth:undefined, maxTabWidth:undefined, deferredRender:true, _defaultTabRotation:{top:0, right:1, bottom:0, left:2}, initComponent:function() { + var me = this, activeTab = me.activeTab !== null ? me.activeTab || 0 : null, dockedItems = me.dockedItems, header = me.header, tabBarHeaderPosition = me.tabBarHeaderPosition, tabBar = me.getTabBar(), headerItems; + me.layout = new Ext.layout.container.Card(Ext.apply({owner:me, deferredRender:me.deferredRender, itemCls:me.itemCls, activeItem:activeTab}, me.layout)); + if (tabBarHeaderPosition != null) { + header = me.header = Ext.apply({}, header); + headerItems = header.items = header.items ? header.items.slice() : []; + header.itemPosition = tabBarHeaderPosition; + headerItems.push(tabBar); + header.hasTabBar = true; + } else { + dockedItems = [].concat(me.dockedItems || []); + dockedItems.push(tabBar); + me.dockedItems = dockedItems; + } + me.callParent(arguments); + activeTab = me.activeTab = me.getComponent(activeTab); + if (activeTab) { + tabBar.setActiveTab(activeTab.tab, true); + } +}, onRender:function() { + var items = this.items.items, len = items.length, i; + this.callParent(arguments); + for (i = 0; i < len; ++i) { + items[i].getBind(); + } +}, setActiveTab:function(card) { + var me = this, previous; + if (!Ext.isObject(card) || card.isComponent) { + card = me.getComponent(card); + } + previous = me.getActiveTab(); + if (card) { + Ext.suspendLayouts(); + if (!card.isComponent) { + card = me.add(card); + } + if (previous === card || me.fireEvent('beforetabchange', me, card, previous) === false) { + Ext.resumeLayouts(true); + return previous; + } + me.activeTab = card; + me.layout.setActiveItem(card); + card = me.activeTab = me.layout.getActiveItem(); + if (card && card !== previous) { + me.tabBar.setActiveTab(card.tab); + Ext.resumeLayouts(true); + if (previous !== card) { + me.fireEvent('tabchange', me, card, previous); + } + } else { + Ext.resumeLayouts(true); + } + return card; + } + return previous; +}, setActiveItem:function(item) { + return this.setActiveTab(item); +}, getActiveTab:function() { + var me = this, result = me.getComponent(me.activeTab); + if (result && me.items.indexOf(result) !== -1) { + me.activeTab = result; + } else { + me.activeTab = undefined; + } + return me.activeTab; +}, applyTabBar:function(tabBar) { + var me = this, dock = me.tabBarHeaderPosition != null ? me.getHeaderPosition() : me.getTabPosition(); + return new Ext.tab.Bar(Ext.apply({ui:me.ui, dock:dock, tabRotation:me.getTabRotation(), vertical:dock === 'left' || dock === 'right', plain:me.plain, tabStretchMax:me.getTabStretchMax(), tabPanel:me}, tabBar)); +}, updateHeaderPosition:function(headerPosition, oldHeaderPosition) { + var tabBar = this.getTabBar(); + if (tabBar && this.tabBarHeaderPosition != null) { + tabBar.setDock(headerPosition); + } + this.callParent([headerPosition, oldHeaderPosition]); +}, updateTabPosition:function(tabPosition) { + var tabBar = this.getTabBar(); + if (tabBar && this.tabBarHeaderPosition == null) { + tabBar.setDock(tabPosition); + } +}, updateTabRotation:function(tabRotation) { + var tabBar = this.getTabBar(); + if (tabBar) { + tabBar.setTabRotation(tabRotation); + } +}, onAdd:function(item, index) { + var me = this, cfg = Ext.apply({}, item.tabConfig), tabBar = me.getTabBar(), ariaDom, defaultConfig = {xtype:'tab', title:item.title, icon:item.icon, iconCls:item.iconCls, glyph:item.glyph, ui:tabBar.ui, card:item, disabled:item.disabled, closable:item.closable, hidden:item.hidden && !item.hiddenByLayout, tooltip:item.tooltip, tabBar:tabBar, tabPosition:tabBar.dock, rotation:tabBar.getTabRotation()}; + if (item.closeText !== undefined) { + defaultConfig.closeText = item.closeText; + } + cfg = Ext.applyIf(cfg, defaultConfig); + item.tab = me.tabBar.insert(index, cfg); + item.ariaRole = 'tabpanel'; + ariaDom = item.ariaEl.dom; + if (ariaDom) { + ariaDom.setAttribute('aria-labelledby', item.tab.id); + } else { + item.ariaRenderAttributes = item.ariaRenderAttributes || {}; + item.ariaRenderAttributes['aria-labelledby'] = item.tab.id; + } + item.on({scope:me, enable:me.onItemEnable, disable:me.onItemDisable, beforeshow:me.onItemBeforeShow, iconchange:me.onItemIconChange, iconclschange:me.onItemIconClsChange, glyphchange:me.onItemGlyphChange, titlechange:me.onItemTitleChange}); + if (item.isPanel) { + if (me.removePanelHeader) { + if (item.rendered) { + if (item.header) { + item.header.hide(); + } + } else { + item.header = false; + } + } + if (item.isPanel && me.border) { + item.setBorder(false); + } + } + if (me.rendered) { + item.getBind(); + } + if (me.rendered && me.loader && me.activeTab === undefined && me.layout.activeItem !== null) { + me.setActiveTab(0); + } +}, onMove:function(item, fromIdx, toIdx) { + var tabBar = this.getTabBar(); + this.callParent([item, fromIdx, toIdx]); + if (tabBar.items.indexOf(item.tab) !== toIdx) { + tabBar.move(item.tab, toIdx); + } +}, onItemEnable:function(item) { + item.tab.enable(); +}, onItemDisable:function(item) { + item.tab.disable(); +}, onItemBeforeShow:function(item) { + if (item !== this.activeTab) { + this.setActiveTab(item); + return false; + } +}, onItemGlyphChange:function(item, newGlyph) { + item.tab.setGlyph(newGlyph); +}, onItemIconChange:function(item, newIcon) { + item.tab.setIcon(newIcon); +}, onItemIconClsChange:function(item, newIconCls) { + item.tab.setIconCls(newIconCls); +}, onItemTitleChange:function(item, newTitle) { + item.tab.setText(newTitle); +}, onRemove:function(item, destroying) { + var me = this; + item.un({scope:me, enable:me.onItemEnable, disable:me.onItemDisable, beforeshow:me.onItemBeforeShow, iconchange:me.onItemIconChange, iconclschange:me.onItemIconClsChange, glyphchange:me.onItemGlyphChange, titlechange:me.onItemTitleChange}); + if (item.tab && !me.destroying && item.tab.ownerCt === me.tabBar) { + me.tabBar.remove(item.tab); + } +}, privates:{doRemove:function(item, autoDestroy) { + var me = this, toActivate; + if (me.removingAll || me.destroying || me.items.getCount() === 1) { + me.activeTab = null; + } else { + if (item.tab && (toActivate = me.tabBar.items.indexOf(me.tabBar.findNextActivatable(item.tab))) !== -1) { + me.setActiveTab(toActivate); + } + } + this.callParent(arguments); + if (item.tab) { + delete item.tab.card; + delete item.tab; + } +}}}); +Ext.define('Ext.toolbar.Fill', {extend:Ext.Component, alias:'widget.tbfill', alternateClassName:'Ext.Toolbar.Fill', ariaRole:'presentation', isFill:true, flex:1}); +Ext.define('DynamicForm.Application', {extend:Ext.app.Application, name:'DynamicForm', quickTips:false, platformConfig:{desktop:{quickTips:true}}, stores:[], launch:function() { +}, onAppUpdate:function() { + Ext.Msg.confirm('Application Update', 'This application has an update, reload?', function(choice) { + if (choice === 'yes') { + window.location.reload(); + } + }); +}}); +Ext.define('DynamicForm.view.main.List', {extend:Ext.panel.Panel, xtype:'mainlist', initComponent:function() { + var me = this; + Ext.apply(this, {layout:{type:'hbox', pack:'start', align:'stretch'}, items:[{xtype:'panel', title:'Input', flex:1, bodyPadding:10, layout:'form', items:[{xtype:'textareafield', name:'textarea1', emptyText:'Copie e Cole um exemplo aqui', reference:'txtInput', allowBlank:false, height:300}], tbar:[{xtype:'button', text:'Run', handler:'onBtnClickRun'}]}, {xtype:'form', title:'Preview', reference:'preview-form', flex:1, bodyPadding:10, layout:'form'}, {xtype:'panel', title:'Exemplos', flex:1, html:'\x3cb\x3eTextfield:\x3c/b\x3e \x3c/br\x3e {"xtype": "textfield", "name": "campo1", "fieldLabel": "Campo 1", "value": "Text field value"}' + + '\x3c/br\x3e\x3c/br\x3e\x3cb\x3eNumber Field (Com Validação):\x3c/b\x3e \x3c/br\x3e {"xtype": "numberfield", "name": "numberfield1", "fieldLabel": "Number field", "value": 5, "minValue": 0,"maxValue": 50}' + '\x3c/br\x3e\x3c/br\x3e\x3cb\x3eCheckbox:\x3c/b\x3e \x3c/br\x3e {"xtype": "checkboxfield","name": "checkbox1","fieldLabel": "Checkbox","boxLabel": "box label"}' + '\x3c/br\x3e\x3c/br\x3e\x3cb\x3eRadio:\x3c/b\x3e \x3c/br\x3e {"xtype": "radiofield","name": "radio1","value": "radiovalue1","fieldLabel": "Radio buttons","boxLabel": "radio 1"}' + + '\x3c/br\x3e\x3c/br\x3e\x3cb\x3eDatefield:\x3c/b\x3e \x3c/br\x3e {"xtype": "datefield","name": "date1","fieldLabel": "Date Field"}' + '\x3c/br\x3e\x3c/br\x3e\x3cb\x3eTimefield:\x3c/b\x3e \x3c/br\x3e {"xtype": "timefield","name": "time1","fieldLabel": "Time Field","minValue": "1:30 AM","maxValue": "9:15 PM"}' + '\x3c/br\x3e\x3c/br\x3e\x3cb\x3eAgrupados:\x3c/b\x3e \x3c/br\x3e {"xtype": "fieldset","title": "Details","collapsible": true,"defaults": {"labelAlign": "top"},"items": [{"xtype": "textfield", "name": "campo1", "fieldLabel": "Campo 1", "value": "Text field value"},{"xtype": "datefield","name": "date1","fieldLabel": "Date Field"}]}'}]}); + me.callParent(arguments); +}}); +Ext.define('DynamicForm.view.main.MainController', {extend:Ext.app.ViewController, alias:'controller.main', onItemSelected:function(sender, record) { + Ext.Msg.confirm('Confirm', 'Are you sure?', 'onConfirm', this); +}, onConfirm:function(choice) { + if (choice === 'yes') { + } +}, onBtnClickRun:function() { + console.log('onBtnClickRun'); + var me = this, inputfield = me.lookup('txtInput'), previewform = me.lookup('preview-form'), obj; + console.log(previewform); + if (inputfield.isValid()) { + try { + obj = JSON.parse(inputfield.getValue()); + } catch (err) { + Ext.MessageBox.alert('Status', 'Json com formato invalido.'); + } + previewform.removeAll(); + previewform.add(JSON.parse(inputfield.getValue())); + } else { + Ext.MessageBox.alert('Status', 'Não pode ser em branco.'); + } +}}); +Ext.define('DynamicForm.view.main.MainModel', {extend:Ext.app.ViewModel, alias:'viewmodel.main', data:{name:'DynamicForm', loremIpsum:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'}}); +Ext.define('DynamicForm.view.main.Main', {extend:Ext.tab.Panel, xtype:'app-main', controller:'main', viewModel:'main', ui:'navigation', tabBarHeaderPosition:1, titleRotation:0, tabRotation:0, header:{layout:{align:'stretchmax'}, title:{bind:{text:'{name}'}, flex:0}, iconCls:'fa-th-list'}, tabBar:{flex:1, layout:{align:'stretch', overflowHandler:'none'}}, responsiveConfig:{tall:{headerPosition:'top'}, wide:{headerPosition:'left'}}, defaults:{bodyPadding:20, tabConfig:{plugins:'responsive', responsiveConfig:{wide:{iconAlign:'left', +textAlign:'left'}, tall:{iconAlign:'top', textAlign:'center', width:120}}}}, items:[{title:'Dynamic Forms', iconCls:'fa-home', items:[{xtype:'mainlist'}]}]}); +Ext.application({name:'DynamicForm', extend:DynamicForm.Application, mainView:'DynamicForm.view.main.Main'}); diff --git a/frontend/build/testing/DynamicForm/app.json b/frontend/build/testing/DynamicForm/app.json new file mode 100644 index 000000000..6e481a117 --- /dev/null +++ b/frontend/build/testing/DynamicForm/app.json @@ -0,0 +1 @@ +{"packages":{"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"font-ext":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"theme-triton":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune","font-awesome","font-ext"],"version":"6.0.1.250"}},"js":[{"path":"app.js"}],"css":[{"exclude":["fashion"],"path":"resources/DynamicForm-all.css"}],"cache":{"enable":false,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"DynamicForm","namespace":"DynamicForm","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-triton","loader":{"cache":false,"cacheParam":"_dc"},"id":"74c5a200-fbe2-46e5-a450-39e55547e827","profile":"","hash":"bf3f349401d95247bd6a8a2c98625d8367640e5b","resources":{"path":"resources"}} \ No newline at end of file diff --git a/frontend/build/testing/DynamicForm/app.jsonp b/frontend/build/testing/DynamicForm/app.jsonp new file mode 100644 index 000000000..0bd66e165 --- /dev/null +++ b/frontend/build/testing/DynamicForm/app.jsonp @@ -0,0 +1 @@ +Ext.Microloader.setManifest({"packages":{"classic":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core"],"version":"6.0.1.250"},"cmd":{"current":"6.5.1.240","version":"6.5.1.240"},"core":{"css":true,"included":true,"required":true,"requires":["ext","classic"],"version":"6.0.1.250"},"ext":{"css":true,"included":true,"license":"gpl","namespace":"Ext","required":true,"requires":[],"version":"6.0.1.250"},"font-awesome":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"font-ext":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune"],"theme":"theme-neptune","version":"6.0.1.250"},"theme-base":{"css":true,"included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic"],"version":"6.0.1.250"},"theme-neptune":{"css":true,"extend":"theme-neutral","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral"],"version":"6.0.1.250"},"theme-neutral":{"css":true,"extend":"theme-base","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base"],"version":"6.0.1.250"},"theme-triton":{"css":true,"extend":"theme-neptune","included":true,"namespace":"Ext","required":true,"requires":["ext","core","classic","theme-base","theme-neutral","theme-neptune","font-awesome","font-ext"],"version":"6.0.1.250"}},"js":[{"path":"app.js"}],"css":[{"exclude":["fashion"],"path":"resources/DynamicForm-all.css"}],"cache":{"enable":false,"deltas":true},"fashion":{"inliner":{"enable":false}},"name":"DynamicForm","namespace":"DynamicForm","version":"1.0.0.0","framework":"ext","toolkit":"classic","theme":"theme-triton","loader":{"cache":false,"cacheParam":"_dc"},"id":"74c5a200-fbe2-46e5-a450-39e55547e827","profile":"","hash":"bf3f349401d95247bd6a8a2c98625d8367640e5b","resources":{"path":"resources"}}); \ No newline at end of file diff --git a/frontend/build/testing/DynamicForm/index.html b/frontend/build/testing/DynamicForm/index.html new file mode 100644 index 000000000..dc07db5a7 --- /dev/null +++ b/frontend/build/testing/DynamicForm/index.html @@ -0,0 +1,2750 @@ + + + + + + + + DynamicForm + + + + + + + + + diff --git a/frontend/build/testing/DynamicForm/resources/DynamicForm-all.css b/frontend/build/testing/DynamicForm/resources/DynamicForm-all.css new file mode 100644 index 000000000..3d174a17b --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/DynamicForm-all.css @@ -0,0 +1,2 @@ +@import 'DynamicForm-all_1.css'; +@import 'DynamicForm-all_2.css'; diff --git a/frontend/build/testing/DynamicForm/resources/DynamicForm-all_1.css b/frontend/build/testing/DynamicForm/resources/DynamicForm-all_1.css new file mode 100644 index 000000000..0f0fb23fd --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/DynamicForm-all_1.css @@ -0,0 +1,15295 @@ +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:5 */ +.x-size-monitored { + /** + * @class Ext.util.SizeMonitor + */ + position: relative; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:9 */ +.x-size-monitors { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + visibility: hidden; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:18 */ +.x-size-monitors > * { + width: 100%; + height: 100%; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:25 */ +.x-size-monitors.scroll > *.shrink::after { + content: ''; + display: block; + width: 200%; + height: 200%; + min-width: 1px; + min-height: 1px; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:34 */ +.x-size-monitors.scroll > *.expand::after { + content: ''; + display: block; + width: 100000px; + height: 100000px; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:44 */ +.x-size-monitors.overflowchanged > *.shrink > * { + width: 100%; + height: 100%; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:51 */ +.x-size-monitors.overflowchanged > *.expand > * { + width: 200%; + height: 200%; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:59 */ +.x-size-change-detector { + visibility: hidden; + position: absolute; + left: 0; + top: 0; + z-index: -1; + width: 100%; + height: 100%; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:70 */ +.x-size-change-detector > * { + visibility: hidden; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:74 */ +.x-size-change-detector-shrink > * { + width: 200%; + height: 200%; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/SizeMonitor.scss:79 */ +.x-size-change-detector-expand > * { + width: 100000px; + height: 100000px; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:5 */ +@-webkit-keyframes x-paint-monitor-helper { + /* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:6 */ + from { + /** + * @class Ext.util.PaintMonitor + */ + /** + * @class Ext.util.PaintMonitor + */ + zoom: 1; + } + /* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:9 */ + to { + zoom: 1; + } +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:14 */ +@keyframes x-paint-monitor-helper { + /* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:15 */ + from { + zoom: 1; + } + /* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:18 */ + to { + zoom: 1; + } +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:23 */ +.x-paint-monitored { + position: relative; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:27 */ +.x-paint-monitor { + width: 0 !important; + height: 0 !important; + visibility: hidden; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:32 */ +.x-paint-monitor.cssanimation { + -webkit-animation-duration: 0.0001ms; + -webkit-animation-name: x-paint-monitor-helper; + animation-duration: 0.0001ms; + animation-name: x-paint-monitor-helper; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:39 */ +.x-paint-monitor.overflowchange { + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/PaintMonitor.scss:42 */ +.x-paint-monitor.overflowchange::after { + content: ''; + display: block; + width: 1px !important; + height: 1px !important; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/ProgressBase.scss:1 */ +.x-progress { + border-style: solid; + overflow: hidden; + position: relative; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/ProgressBase.scss:7 */ +.x-progress-bar { + height: 100%; + width: 0; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/ProgressBase.scss:12 */ +.x-progress-text, +.x-progress-bar { + overflow: hidden; + position: absolute; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/Translatable.scss:5 */ +.x-translatable { + /** + * @class Ext.util.Translatable + */ + position: absolute !important; + top: 500000px !important; + left: 500000px !important; + overflow: visible !important; + z-index: 1; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/Translatable.scss:13 */ +.x-translatable-hboxfix { + position: absolute; + min-width: 100%; + top: 0; + left: 0; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/Translatable.scss:19 */ +.x-translatable-hboxfix > .x-translatable { + position: relative !important; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/Translatable.scss:24 */ +.x-translatable-container { + overflow: hidden; + width: auto; + height: auto; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/util/Translatable.scss:34 */ +.x-translatable-container::before { + content: ''; + display: block; + width: 1000000px; + height: 1000000px; + visibility: hidden; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/scroll/TouchScroller.scss:1 */ +.x-scroll-container { + overflow: hidden; + position: relative; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/scroll/TouchScroller.scss:8 */ +.x-scroll-scroller { + float: left; + position: relative; + min-width: 100%; + min-height: 100%; +} +/* /home/glauber/dri/frontend/ext/packages/core/sass/src/scroll/DomScroller.scss:1 */ +.x-domscroller-spacer { + position: absolute; + height: 1px; + width: 1px; + font-size: 0; + line-height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:14 */ +.x-body { + margin: 0; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:22 */ +.x-no-touch-scroll { + touch-action: none; + -ms-touch-action: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:31 */ +@-ms-viewport { + width: device-width; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:36 */ +img { + border: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:40 */ +.x-border-box, +.x-border-box * { + box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + -webkit-box-sizing: border-box; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:54 */ +.x-ltr { + direction: ltr; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:58 */ +.x-clear { + overflow: hidden; + clear: both; + font-size: 0; + line-height: 0; + display: table; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:66 */ +.x-layer { + position: absolute !important; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:73 */ +.x-fixed-layer { + position: fixed !important; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:78 */ +.x-shim { + position: absolute; + left: 0; + top: 0; + overflow: hidden; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + opacity: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:86 */ +.x-hidden-display { + display: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:90 */ +.x-hidden-visibility { + visibility: hidden !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:94 */ +.x-hidden, +.x-hidden-offsets { + display: block !important; + visibility: hidden !important; + position: absolute !important; + top: -10000px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:106 */ +.x-hidden-clip { + position: absolute !important; + clip: rect(0, 0, 0, 0); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:111 */ +.x-masked-relative { + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:117 */ +.x-ie-shadow { + background-color: #777; + position: absolute; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:124 */ +.x-unselectable { + user-select: none; + -o-user-select: none; + -ms-user-select: none; + -moz-user-select: -moz-none; + -webkit-user-select: none; + -webkit-tap-highlight-color: transparent; + -webkit-user-drag: none; + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:128 */ +.x-selectable { + cursor: auto; + -moz-user-select: text; + -webkit-user-select: text; + -ms-user-select: text; + user-select: text; + -o-user-select: text; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:143 */ +.x-list-plain { + list-style-type: none; + margin: 0; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:150 */ +.x-table-plain { + border-collapse: collapse; + border-spacing: 0; + font-size: 1em; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:158 */ +.x-frame-tl, +.x-frame-tr, +.x-frame-tc, +.x-frame-bl, +.x-frame-br, +.x-frame-bc { + overflow: hidden; + background-repeat: no-repeat; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:168 */ +.x-frame-tc, +.x-frame-bc { + background-repeat: repeat-x; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:177 */ +td.x-frame-tl, +td.x-frame-tr, +td.x-frame-bl, +td.x-frame-br { + width: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:184 */ +.x-frame-mc { + background-repeat: repeat-x; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:189 */ +.x-proxy-el { + position: absolute; + background: #b4b4b4; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; + opacity: 0.8; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:196 */ +.x-css-shadow { + position: absolute; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + -ms-border-radius: 5px; + -o-border-radius: 5px; + border-radius: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:201 */ +.x-item-disabled, +.x-item-disabled * { + cursor: default; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:207 */ +.x-component, +.x-container { + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:217 */ +:focus { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:226 */ +.x-body .x-sync-repaint:before, +.x-body .x-sync-repaint:after { + content: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/Component.scss:235 */ +.x-position-relative { + position: relative !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Container.scss:3 */ +.x-box-item { + position: absolute !important; + left: 0; + top: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Auto.scss:1 */ +.x-autocontainer-outerCt { + display: table; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Auto.scss:5 */ +.x-autocontainer-innerCt { + display: table-cell; + height: 100%; + vertical-align: top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/LoadMask.scss:1 */ +.x-mask { + z-index: 100; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + /* + * IE and FF will add an outline to focused elements, + * which we don't want when using our own focus treatment + */ + outline: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/LoadMask.scss:21 */ +.x-ie8 .x-mask { + /* + * IE8 will treat partially transparent divs as invalid click targets, + * allowing mouse events to reach elements beneath the mask. Placing + * a 1x1 transparent gif as the link el background will cure this. + */ + background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/LoadMask.scss:27 */ +.x-mask-fixed { + position: fixed; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/LoadMask.scss:31 */ +.x-mask-msg { + position: absolute; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:17 */ +.x-btn { + display: inline-block; + outline: 0; + cursor: pointer; + white-space: nowrap; + text-decoration: none; + vertical-align: top; + overflow: hidden; + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:29 */ +.x-btn > .x-frame { + height: 100%; + width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:35 */ +.x-btn-wrap { + height: 100%; + width: 100%; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: stretch; + -ms-flex-align: stretch; + align-items: stretch; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:43 */ +.x-btn-wrap.x-btn-arrow-bottom, +.x-btn-wrap.x-btn-split-bottom { + -webkit-box-orient: vertical; + -ms-flex-direction: column; + flex-direction: column; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:49 */ +.x-ie9m .x-btn-wrap { + display: table; + border-spacing: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:60 */ +.x-btn-button { + white-space: nowrap; + line-height: 0; + position: relative; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-flex: 1; + -ms-flex: 1 1 auto; + flex: 1 1 auto; + min-width: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:72 */ +.x-btn-button.x-btn-icon-top, +.x-btn-button.x-btn-icon-bottom { + -webkit-box-orient: vertical; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: stretch; + -ms-flex-align: stretch; + align-items: stretch; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:80 */ +.x-ie9m .x-btn-button { + display: table-cell; + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:91 */ +.x-btn-inner { + overflow: hidden; + text-overflow: ellipsis; + -ms-flex-negative: 1; + display: block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:100 */ +.x-ie9m .x-btn-inner { + display: inline-block; + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:110 */ +.x-btn-icon.x-btn-no-text > .x-btn-inner { + display: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:115 */ +.x-btn-icon-el { + display: none; + vertical-align: middle; + text-align: center; + background-position: center center; + background-repeat: no-repeat; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:123 */ +.x-btn-icon > .x-btn-icon-el { + display: block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:128 */ +.x-ie9m .x-btn-icon-left > .x-btn-icon-el, +.x-ie9m .x-btn-icon-right > .x-btn-icon-el { + display: inline-block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:145 */ +.x-btn-button-center { + text-align: center; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:152 */ +.x-btn-button-left { + text-align: left; + -webkit-box-pack: start; + -ms-flex-pack: start; + justify-content: flex-start; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:165 */ +.x-btn-button-right { + text-align: right; + -webkit-box-pack: end; + -ms-flex-pack: end; + justify-content: flex-end; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:179 */ +.x-btn-arrow:after, +.x-btn-split:after { + display: block; + background-repeat: no-repeat; + content: ''; + box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + -webkit-box-sizing: border-box; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:193 */ +.x-btn-arrow-right:after, +.x-btn-split-right:after { + background-position: right center; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:203 */ +.x-ie9m .x-btn-arrow-right:after, +.x-ie9m .x-btn-split-right:after { + display: table-cell; + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:223 */ +.x-btn-arrow-bottom:after, +.x-btn-split-bottom:after { + background-position: center bottom; + content: '\00a0'; + line-height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:236 */ +.x-ie9m .x-btn-arrow-bottom:after, +.x-ie9m .x-btn-split-bottom:after { + display: table-row; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:246 */ +.x-btn-split-right > .x-btn-button:after { + position: absolute; + display: block; + top: -100%; + right: 0; + height: 300%; + content: ''; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:263 */ +.x-btn-split-bottom > .x-btn-button:after { + position: absolute; + display: block; + bottom: 0; + left: -100%; + font-size: 0; + width: 300%; + content: ''; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:274 */ +.x-btn-mc { + overflow: visible; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:1 */ +.x-title-icon { + background-repeat: no-repeat; + background-position: 0 0; + vertical-align: middle; + line-height: 1; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:9 */ +.x-title { + display: table; + table-layout: fixed; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:21 */ +.x-title-text { + display: table-cell; + overflow: hidden; + white-space: nowrap; + -o-text-overflow: ellipsis; + text-overflow: ellipsis; + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:30 */ +.x-title-align-left { + text-align: left; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:39 */ +.x-title-align-center { + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:43 */ +.x-title-align-right { + text-align: right; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:52 */ +.x-title-rotate-right { + -webkit-transform: rotate(90deg); + -webkit-transform-origin: 0 0; + -moz-transform: rotate(90deg); + -moz-transform-origin: 0 0; + -ms-transform: rotate(90deg); + -ms-transform-origin: 0 0; + transform: rotate(90deg); + transform-origin: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/rotate-element.scss:41 */ +.x-ie8 .x-title-rotate-right { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:62 */ +.x-title-rotate-left { + -webkit-transform: rotate(270deg); + -webkit-transform-origin: 100% 0; + -moz-transform: rotate(270deg); + -moz-transform-origin: 100% 0; + -ms-transform: rotate(270deg); + -ms-transform-origin: 100% 0; + transform: rotate(270deg); + transform-origin: 100% 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/rotate-element.scss:41 */ +.x-ie8 .x-title-rotate-left { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:75 */ +.x-horizontal.x-header .x-title-rotate-right.x-title-align-left > .x-title-item { + vertical-align: bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:79 */ +.x-horizontal.x-header .x-title-rotate-right.x-title-align-center > .x-title-item { + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:83 */ +.x-horizontal.x-header .x-title-rotate-right.x-title-align-right > .x-title-item { + vertical-align: top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:89 */ +.x-horizontal.x-header .x-title-rotate-left.x-title-align-left > .x-title-item { + vertical-align: top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:93 */ +.x-horizontal.x-header .x-title-rotate-left.x-title-align-center > .x-title-item { + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:97 */ +.x-horizontal.x-header .x-title-rotate-left.x-title-align-right > .x-title-item { + vertical-align: bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:105 */ +.x-vertical.x-header .x-title-rotate-none.x-title-align-left > .x-title-item { + vertical-align: top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:109 */ +.x-vertical.x-header .x-title-rotate-none.x-title-align-center > .x-title-item { + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:113 */ +.x-vertical.x-header .x-title-rotate-none.x-title-align-right > .x-title-item { + vertical-align: bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:120 */ +.x-title-icon-wrap { + display: table-cell; + text-align: center; + vertical-align: middle; + line-height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:125 */ +.x-title-icon-wrap.x-title-icon-top, +.x-title-icon-wrap.x-title-icon-bottom { + display: table-row; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Title.scss:131 */ +.x-title-icon { + display: inline-block; + vertical-align: middle; + background-position: center; + background-repeat: no-repeat; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Tool.scss:1 */ +.x-tool { + font-size: 0; + line-height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Header.scss:4 */ +.x-header > .x-box-inner, +.x-panel-header-mc > .x-box-inner, +.x-window-header-mc > .x-box-inner { + overflow: visible; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/resizer/Splitter.scss:1 */ +.x-splitter { + font-size: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/resizer/Splitter.scss:5 */ +.x-splitter-horizontal { + cursor: e-resize; + cursor: row-resize; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/resizer/Splitter.scss:10 */ +.x-splitter-vertical { + cursor: e-resize; + cursor: col-resize; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/resizer/Splitter.scss:15 */ +.x-splitter-collapsed, +.x-splitter-horizontal-noresize, +.x-splitter-vertical-noresize { + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/resizer/Splitter.scss:21 */ +.x-splitter-active { + z-index: 4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/resizer/Splitter.scss:25 */ +.x-collapse-el { + position: absolute; + background-repeat: no-repeat; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/resizer/Splitter.scss:30 */ +.x-splitter-focus { + z-index: 4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Box.scss:1 */ +.x-box-layout-ct { + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Box.scss:5 */ +.x-box-target { + position: absolute; + width: 20000px; + top: 0; + left: 0; + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Box.scss:30 */ +.x-box-inner { + overflow: hidden; + position: relative; + left: 0; + top: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Box.scss:37 */ +.x-box-scroller { + position: absolute; + background-repeat: no-repeat; + background-position: center; + line-height: 0; + font-size: 0; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Box.scss:46 */ +.x-box-scroller-top { + top: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Box.scss:50 */ +.x-box-scroller-right { + right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Box.scss:54 */ +.x-box-scroller-bottom { + bottom: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Box.scss:58 */ +.x-box-scroller-left { + left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Box.scss:62 */ +.x-box-menu-body-horizontal { + float: left; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Box.scss:66 */ +.x-box-menu-after { + position: relative; + float: left; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/toolbar/Toolbar.scss:1 */ +.x-toolbar-text { + white-space: nowrap; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/toolbar/Toolbar.scss:5 */ +.x-toolbar-separator { + display: block; + font-size: 1px; + overflow: hidden; + cursor: default; + border: 0; + width: 0; + height: 0; + line-height: 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/toolbar/Toolbar.scss:16 */ +.x-toolbar-scroller { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/toolbar/Toolbar.scss:23 */ +.x-toolbar-plain { + border: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/dd/DD.scss:3 */ +.x-dd-drag-proxy, +.x-dd-drag-current { + z-index: 1000000!important; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/dd/StatusProxy.scss:1 */ +.x-dd-drag-proxy { + display: table; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/dd/StatusProxy.scss:6 */ +.x-dd-drag-repair .x-dd-drag-ghost { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + opacity: 0.6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/dd/StatusProxy.scss:10 */ +.x-dd-drag-repair .x-dd-drop-icon { + display: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/dd/StatusProxy.scss:15 */ +.x-dd-drag-ghost, +.x-dd-drop-icon { + display: table-cell; + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/dd/StatusProxy.scss:21 */ +.x-dd-drag-ghost { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)"; + opacity: 0.85; + white-space: nowrap; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/dd/StatusProxy.scss:26 */ +.x-dd-drop-icon { + height: 26px; + width: 26px; + background-color: transparent; + background-position: center; + background-repeat: no-repeat; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:1 */ +.x-docked { + position: absolute !important; + z-index: 2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:7 */ +.x-docked-vertical { + position: static; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:11 */ +.x-docked-top { + border-bottom-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:15 */ +.x-docked-bottom { + border-top-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:19 */ +.x-docked-left { + border-right-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:23 */ +.x-docked-right { + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:27 */ +.x-docked-noborder-top { + border-top-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:31 */ +.x-docked-noborder-right { + border-right-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:35 */ +.x-docked-noborder-bottom { + border-bottom-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:39 */ +.x-docked-noborder-left { + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:45 */ +.x-noborder-l { + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:48 */ +.x-noborder-b { + border-bottom-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:51 */ +.x-noborder-bl { + border-bottom-width: 0 !important; + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:55 */ +.x-noborder-r { + border-right-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:58 */ +.x-noborder-rl { + border-right-width: 0 !important; + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:62 */ +.x-noborder-rb { + border-right-width: 0 !important; + border-bottom-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:66 */ +.x-noborder-rbl { + border-right-width: 0 !important; + border-bottom-width: 0 !important; + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:71 */ +.x-noborder-t { + border-top-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:74 */ +.x-noborder-tl { + border-top-width: 0 !important; + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:78 */ +.x-noborder-tb { + border-top-width: 0 !important; + border-bottom-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:82 */ +.x-noborder-tbl { + border-top-width: 0 !important; + border-bottom-width: 0 !important; + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:87 */ +.x-noborder-tr { + border-top-width: 0 !important; + border-right-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:91 */ +.x-noborder-trl { + border-top-width: 0 !important; + border-right-width: 0 !important; + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:96 */ +.x-noborder-trb { + border-top-width: 0 !important; + border-right-width: 0 !important; + border-bottom-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/component/Dock.scss:101 */ +.x-noborder-trbl { + border-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Panel.scss:1 */ +.x-panel, +.x-plain { + overflow: hidden; + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Panel.scss:7 */ +.x-panel { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Panel.scss:13 */ +td.x-frame-mc { + vertical-align: top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Panel.scss:18 */ +.x-panel-body { + overflow: hidden; + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Panel.scss:23 */ +.x-panel-header-plain, +.x-panel-body-plain { + border: 0; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/panel/Panel.scss:33 */ +.x-panel-collapsed-mini { + visibility: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/plugin/Viewport.scss:1 */ +.x-viewport, +.x-viewport > .x-body { + margin: 0; + padding: 0; + border: 0 none; + overflow: hidden; + position: static; + touch-action: none; + -ms-touch-action: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/plugin/Viewport.scss:21 */ +.x-viewport { + height: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/plugin/Viewport.scss:27 */ +.x-viewport > .x-body { + min-height: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/resizer/SplitterTracker.scss:1 */ +.x-resizable-overlay { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + display: none; + z-index: 200000; + background-color: #fff; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + opacity: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/window/Window.scss:1 */ +.x-window { + outline: none; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/window/Window.scss:5 */ +.x-window .x-window-wrap { + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/window/Window.scss:10 */ +.x-window-body { + position: relative; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:1 */ +.x-form-item { + display: table; + table-layout: fixed; + border-spacing: 0; + border-collapse: separate; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:10 */ +.x-form-item-label { + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:14 */ +.x-form-item.x-form-item-no-label > .x-form-item-label { + display: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:18 */ +.x-form-item-label, +.x-form-item-body { + display: table-cell; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:27 */ +.x-ie8 .x-form-fieldcontainer .x-form-item-label-top + .x-form-item-body { + display: table-row; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:32 */ +.x-form-item-body { + vertical-align: middle; + height: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:37 */ +.x-form-item-label-inner { + display: inline-block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:41 */ +.x-form-item-label-top { + display: table-row; + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:44 */ +.x-form-item-label-top > .x-form-item-label-inner { + display: table-cell; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:48 */ +.x-form-item-label-top-side-error:after { + display: table-cell; + content: ''; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:53 */ +.x-form-item-label-right { + text-align: right; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:62 */ +.x-form-error-wrap-side { + display: table-cell; + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:67 */ +.x-form-error-wrap-under { + display: table-row; + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:70 */ +.x-form-error-wrap-under > .x-form-error-msg { + display: table-cell; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:75 */ +.x-form-error-wrap-under-side-label:before { + display: table-cell; + content: ''; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:81 */ +.x-form-invalid-icon { + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/Labelable.scss:83 */ +.x-form-invalid-icon ul { + display: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:1 */ +.x-form-trigger-wrap { + display: table; + width: 100%; + height: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:14 */ +.x-gecko .x-form-trigger-wrap { + display: -moz-inline-box; + display: inline-flex; + vertical-align: top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:22 */ +.x-form-text-wrap { + display: table-cell; + overflow: hidden; + height: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:29 */ +.x-gecko .x-form-text-wrap { + display: block; + -moz-box-flex: 1; + flex: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:39 */ +.x-form-item-body.x-form-text-grow { + min-width: inherit; + max-width: inherit; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:44 */ +.x-form-text { + border: 0; + margin: 0; + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + display: block; + background: repeat-x 0 0; + width: 100%; + height: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:53 */ +.x-webkit .x-form-text { + height: calc(100% + 3px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:61 */ +.x-form-trigger { + display: table-cell; + vertical-align: top; + cursor: pointer; + overflow: hidden; + background-repeat: no-repeat; + text-align: center; + line-height: 0; + white-space: nowrap; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:73 */ +.x-item-disabled .x-form-trigger { + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:76 */ +.x-form-trigger.x-form-trigger-cmp { + background: none; + border: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Text.scss:93 */ +.x-gecko .x-form-trigger { + display: block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/TextArea.scss:1 */ +.x-form-textarea { + overflow: auto; + resize: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/TextArea.scss:6 */ +div.x-form-text-grow .x-form-textarea { + min-height: inherit; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/window/MessageBox.scss:2 */ +.x-message-box .x-form-display-field { + height: auto; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Checkbox.scss:1 */ +.x-form-cb-wrap { + vertical-align: top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Checkbox.scss:5 */ +.x-form-cb-wrap-inner { + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Checkbox.scss:9 */ +.x-form-cb { + position: absolute; + left: 0; + right: auto; + vertical-align: top; + overflow: hidden; + padding: 0; + border: 0; + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Checkbox.scss:19 */ +.x-form-cb::-moz-focus-inner { + padding: 0; + border: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Checkbox.scss:33 */ +.x-form-cb-after { + /* allow for the component to be positioned after the label */ + left: auto; + right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Checkbox.scss:47 */ +.x-form-cb-label { + /* some browsers like IE 10 need a block element to be able to measure +the height of a multi-line element */ + display: inline-block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/field/Checkbox.scss:50 */ +.x-form-cb-label.x-form-cb-no-box-label { + display: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/FieldSet.scss:1 */ +.x-fieldset { + display: block; + /* preserve margins in IE */ + position: relative; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/FieldSet.scss:7 */ +.x-fieldset-header { + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/FieldSet.scss:10 */ +.x-fieldset-header .x-form-item, +.x-fieldset-header .x-tool { + float: left; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/FieldSet.scss:15 */ +.x-fieldset-header .x-fieldset-header-text { + float: left; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/FieldSet.scss:19 */ +.x-fieldset-header .x-form-cb-wrap { + font-size: 0; + line-height: 0; + min-height: 0; + height: auto; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/FieldSet.scss:26 */ +.x-fieldset-header .x-form-cb { + margin: 0; + position: static; + display: inherit; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/FieldSet.scss:35 */ +.x-fieldset-body { + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/FieldSet.scss:39 */ +.x-fieldset-collapsed { + padding-bottom: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/FieldSet.scss:42 */ +.x-fieldset-collapsed > .x-fieldset-body { + display: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/form/FieldSet.scss:47 */ +.x-fieldset-header-text-collapsible { + cursor: pointer; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/view/View.scss:1 */ +.x-view-item-focused { + outline: 1px dashed #5fa2dd!important; + outline-offset: -1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/view/BoundList.scss:8 */ +.x-ie9 .x-boundlist-list-ct { + min-height: 0%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:1 */ +.x-datepicker { + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:4 */ +.x-datepicker .x-monthpicker { + left: 0; + top: 0; + display: block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:10 */ +.x-datepicker .x-monthpicker-months, +.x-datepicker .x-monthpicker-years { + height: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:16 */ +.x-datepicker-inner { + table-layout: fixed; + width: 100%; + border-collapse: separate; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:22 */ +.x-datepicker-cell { + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:26 */ +.x-datepicker-header { + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:30 */ +.x-datepicker-arrow { + position: absolute; + outline: none; + font-size: 0; + display: table; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:37 */ +.x-datepicker-arrow:before { + display: table-cell; + text-align: center; + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:45 */ +.x-datepicker-column-header { + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:49 */ +.x-datepicker-date { + display: block; + text-decoration: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:54 */ +.x-monthpicker { + display: table; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:57 */ +.x-monthpicker-body { + height: 100%; + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:62 */ +.x-monthpicker-months, +.x-monthpicker-years { + float: left; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:67 */ +.x-monthpicker-item { + float: left; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:71 */ +.x-monthpicker-item-inner { + display: block; + text-decoration: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:76 */ +.x-monthpicker-yearnav-button-ct { + float: left; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:81 */ +.x-monthpicker-yearnav-button { + display: inline-block; + outline: none; + font-size: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:87 */ +.x-monthpicker-buttons { + width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:91 */ +.x-datepicker .x-monthpicker-buttons { + position: absolute; + bottom: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/picker/Date.scss:96 */ +.x-datepicker-month .x-btn-split > .x-btn-button:after { + content: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tip/Tip.scss:1 */ +.x-tip { + position: absolute; + overflow: visible; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tip/Tip.scss:6 */ +.x-tip-body { + overflow: hidden; + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tip/Tip.scss:11 */ +.x-tip-anchor { + position: absolute; + overflow: hidden; + border-style: solid; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Fit.scss:1 */ +.x-fit-item { + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:1 */ +.x-menu { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:5 */ +.x-menu-body { + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:9 */ +.x-menu-item { + white-space: nowrap; + overflow: hidden; + border-color: transparent; + border-style: solid; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:17 */ +.x-menu-item-cmp { + margin: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:20 */ +.x-menu-item-cmp .x-field-label-cell { + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:28 */ +.x-menu-icon-separator { + position: absolute; + top: 0px; + z-index: 0; + height: 100%; + overflow: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:34 */ +.x-menu-plain .x-menu-icon-separator { + display: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:39 */ +.x-menu-item-link { + -webkit-tap-highlight-color: transparent; + -webkit-touch-callout: none; + text-decoration: none; + outline: 0; + display: block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:54 */ +.x-menu-item-link-href { + -webkit-touch-callout: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:58 */ +.x-menu-item-text { + display: inline-block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/menu/Menu.scss:62 */ +.x-menu-item-icon, +.x-menu-item-icon-right, +.x-menu-item-arrow { + font-size: 0; + position: absolute; + text-align: center; + background-repeat: no-repeat; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:1 */ +.x-form-layout-wrap { + display: table; + width: 100%; + border-collapse: separate; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:7 */ +.x-form-layout-colgroup { + display: table-column-group; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:11 */ +.x-form-layout-column { + display: table-column; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:16 */ +.x-form-layout-auto-label > * > .x-form-item-label { + width: auto !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:20 */ +.x-form-layout-auto-label > * > .x-form-item-label > .x-form-item-label-inner { + width: auto !important; + white-space: nowrap; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:26 */ +.x-form-layout-auto-label > * > .x-form-layout-label-column { + width: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:33 */ +.x-form-layout-sized-label > * > .x-form-item-label { + width: auto !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:40 */ +.x-form-form-item { + display: table-row; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:43 */ +.x-form-form-item > .x-form-item-label { + padding-left: 0 !important; + padding-right: 0 !important; + padding-bottom: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:51 */ +.x-form-form-item > .x-form-item-body { + max-width: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/layout/container/Form.scss:60 */ +.x-form-form-item.x-form-item-no-label:before { + content: ' '; + display: table-cell; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/resizer/Resizer.scss:2 */ +.x-resizable-wrapped { + box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + -webkit-box-sizing: border-box; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:17 */ +.x-tab { + display: block; + outline: 0; + cursor: pointer; + white-space: nowrap; + text-decoration: none; + vertical-align: top; + overflow: hidden; + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:29 */ +.x-tab > .x-frame { + height: 100%; + width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:35 */ +.x-tab-wrap { + height: 100%; + width: 100%; + display: table; + border-spacing: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:60 */ +.x-tab-button { + white-space: nowrap; + line-height: 0; + position: relative; + display: table-cell; + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:91 */ +.x-tab-inner { + overflow: hidden; + text-overflow: ellipsis; + display: inline-block; + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:110 */ +.x-tab-icon.x-tab-no-text > .x-tab-inner { + display: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:115 */ +.x-tab-icon-el { + display: none; + vertical-align: middle; + text-align: center; + background-position: center center; + background-repeat: no-repeat; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:134 */ +.x-tab-icon > .x-tab-icon-el { + display: inline-block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:138 */ +.x-tab-icon-top > .x-tab-icon-el, +.x-tab-icon-bottom > .x-tab-icon-el { + display: block; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:145 */ +.x-tab-button-center { + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:152 */ +.x-tab-button-left { + text-align: left; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:165 */ +.x-tab-button-right { + text-align: right; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/button/Button.scss:274 */ +.x-tab-mc { + overflow: visible; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Tab.scss:13 */ +.x-tab { + z-index: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Tab.scss:17 */ +.x-tab-active { + z-index: 3; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Tab.scss:21 */ +.x-tab-button { + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Tab.scss:27 */ +.x-tab-close-btn { + display: block; + position: absolute; + overflow: hidden; + font-size: 0; + line-height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Tab.scss:35 */ +.x-tab-rotate-left { + -webkit-transform: rotate(270deg); + -webkit-transform-origin: 100% 0; + -moz-transform: rotate(270deg); + -moz-transform-origin: 100% 0; + -ms-transform: rotate(270deg); + -ms-transform-origin: 100% 0; + transform: rotate(270deg); + transform-origin: 100% 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/rotate-element.scss:41 */ +.x-ie8 .x-tab-rotate-left { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Tab.scss:45 */ +.x-tab-rotate-right { + -webkit-transform: rotate(90deg); + -webkit-transform-origin: 0 0; + -moz-transform: rotate(90deg); + -moz-transform-origin: 0 0; + -ms-transform: rotate(90deg); + -ms-transform-origin: 0 0; + transform: rotate(90deg); + transform-origin: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/rotate-element.scss:41 */ +.x-ie8 .x-tab-rotate-right { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Tab.scss:57 */ +.x-tab-tr, +.x-tab-br, +.x-tab-mr, +.x-tab-tl, +.x-tab-bl, +.x-tab-ml { + width: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:1 */ +.x-tab-bar { + z-index: 0; + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:6 */ +.x-tab-bar-strip { + position: absolute; + line-height: 0; + font-size: 0; + z-index: 2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:12 */ +.x-tab-bar-top > .x-tab-bar-strip { + bottom: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:16 */ +.x-tab-bar-bottom > .x-tab-bar-strip { + top: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:20 */ +.x-tab-bar-left > .x-tab-bar-strip { + right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:31 */ +.x-tab-bar-right > .x-tab-bar-strip { + left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:43 */ +.x-tab-bar-horizontal .x-tab-bar-strip { + width: 100%; + left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:48 */ +.x-tab-bar-vertical { + display: table-cell; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:54 */ +.x-tab-bar-vertical .x-tab-bar-strip { + height: 100%; + top: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:60 */ +.x-tab-bar-plain { + background: transparent !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/src/tab/Bar.scss:64 */ +.x-box-scroller-plain { + background-color: transparent !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/scroll/Indicator.scss:1 */ +.x-scroll-indicator { + position: absolute; + background-color: #000; + opacity: 0.5; + border-radius: 3px; + margin: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/scroll/Indicator.scss:10 */ +.x-scroll-indicator-x { + bottom: 0; + left: 0; + height: 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/scroll/Indicator.scss:16 */ +.x-scroll-indicator-y { + right: 0; + top: 0; + width: 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/Component.scss:1 */ +.x-body { + color: #404040; + font-size: 13px; + line-height: 17px; + font-weight: 300; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + background: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/Component.scss:18 */ +.x-animating-size, +.x-collapsed { + overflow: hidden!important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/LoadMask.scss:1 */ +.x-mask { + background-image: none; + background-color: rgba(208, 208, 208, 0.5); + cursor: default; + border-style: solid; + border-width: 1px; + border-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/background-opacity.scss:19 */ +.x-ie8 .x-mask { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#80d0d0d0, endColorstr=#80d0d0d0); + zoom: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/LoadMask.scss:16 */ +body > .x-mask { + background-image: none; + background-color: rgba(0, 0, 0, 0.75); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/background-opacity.scss:19 */ +.x-ie8 body > .x-mask { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#bf000000, endColorstr=#bf000000); + zoom: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/LoadMask.scss:22 */ +.x-mask.x-focus { + border-style: solid; + border-width: 1px; + border-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/LoadMask.scss:29 */ +.x-mask-msg { + padding: 10px; + background: #d0d0d0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/LoadMask.scss:47 */ +.x-mask-msg-inner { + padding: 0; + background-color: transparent; + color: #404040; + font: 300 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/LoadMask.scss:59 */ +.x-mask-msg-text { + padding: 25px 0 0; + background-image: url(images/loadmask/loading.gif); + background-repeat: no-repeat; + background-position: center 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/ProgressBar.scss:82 */ +.x-progress-default { + background-color: #ececec; + border-width: 0; + height: 24px; + border-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/ProgressBar.scss:94 */ +.x-progress-default .x-progress-bar-default { + background-image: none; + background-color: #7fb5e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/ProgressBar.scss:109 */ +.x-progress-default .x-progress-text { + color: #fff; + font-weight: 400; + font-size: 13px; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + text-align: center; + line-height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/ProgressBar.scss:118 */ +.x-progress-default .x-progress-text-back { + color: #404040; + line-height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-btn-default-small { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 7px 7px 7px 7px; + border-width: 1px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-btn-default-small-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-btn-default-small { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-btn-default-small-frameInfo { + font-family: th-1-1-1-1-1-1-1-1-7-7-7-7; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-btn-default-small-tl { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-btn-default-small-tr { + background-position: right -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-btn-default-small-bl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-btn-default-small-br { + background-position: right -5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-btn-default-small-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-btn-default-small-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-btn-default-small-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-btn-default-small-bc { + background-position: 0 -1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-btn-default-small-tr, +.x-btn-default-small-br, +.x-btn-default-small-mr { + padding-right: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-btn-default-small-tl, +.x-btn-default-small-bl, +.x-btn-default-small-ml { + padding-left: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-btn-default-small-tc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-btn-default-small-bc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-btn-default-small-tl, +.x-btn-default-small-bl, +.x-btn-default-small-tr, +.x-btn-default-small-br, +.x-btn-default-small-tc, +.x-btn-default-small-bc, +.x-btn-default-small-ml, +.x-btn-default-small-mr { + background-image: url(images/btn/btn-default-small-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-btn-default-small-ml, +.x-btn-default-small-mr { + background-image: url(images/btn/btn-default-small-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-btn-default-small-mc { + padding: 7px 7px 7px 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:445 */ +.x-btn-default-small { + border-color: #5897ce; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:452 */ +.x-btn-button-default-small { + min-height: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:457 */ +.x-ie9m .x-btn-button-default-small { + min-height: auto; + height: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:464 */ +.x-btn-inner-default-small { + font: 400 12px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #f0f0f0; + padding: 0 5px; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:479 */ +.x-btn-icon-right > .x-btn-inner-default-small, +.x-btn-icon-left > .x-btn-inner-default-small { + max-width: calc(100% - 16px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:487 */ +.x-ie10p .x-btn-inner-default-small { + max-width: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:492 */ +.x-btn-icon-el-default-small { + font-size: 16px; + height: 16px; + color: #f0f0f0; + line-height: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:498 */ +.x-btn-icon-left > .x-btn-icon-el-default-small, +.x-btn-icon-right > .x-btn-icon-el-default-small { + width: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:503 */ +.x-btn-icon-top > .x-btn-icon-el-default-small, +.x-btn-icon-bottom > .x-btn-icon-el-default-small { + min-width: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:525 */ +.x-ie8 .x-btn-icon-el-default-small.x-btn-glyph { + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:532 */ +.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-small { + margin-right: 3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:543 */ +.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-small { + margin-left: 3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:554 */ +.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-small { + margin-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:558 */ +.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-small { + margin-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:564 */ +.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-small { + padding-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:567 */ +.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-small { + margin-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:574 */ +.x-btn-arrow-bottom > .x-btn-button-default-small, +.x-btn-split-bottom > .x-btn-button-default-small { + padding-bottom: 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:580 */ +.x-btn-wrap-default-small.x-btn-arrow-right:after { + width: 18px; + content: "\f0d7"; + font: 16px/1 FontAwesome; + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:607 */ +.x-btn-wrap-default-small.x-btn-arrow-bottom:after { + height: 12px; + content: "\f0d7"; + font: 16px/12px FontAwesome; + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:634 */ +.x-btn-wrap-default-small.x-btn-split-right > .x-btn-button { + padding-right: 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:642 */ +.x-btn-wrap-default-small.x-btn-split-right > .x-btn-button:after { + border-right: 1px solid #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:647 */ +.x-btn-wrap-default-small.x-btn-split-right:after { + width: 20px; + content: "\f0d7"; + font: 16px/1 FontAwesome; + color: #f0f0f0; + padding-left: 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:673 */ +.x-btn-wrap-default-small.x-btn-split-bottom { + margin-bottom: -7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:675 */ +.x-btn-wrap-default-small.x-btn-split-bottom > .x-btn-button:after { + border-bottom: 1px solid #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:686 */ +.x-btn-wrap-default-small.x-btn-split-bottom:after { + height: 20px; + content: "\f0d7"; + font: 16px/20px FontAwesome; + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:719 */ +.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-small { + padding-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:722 */ +.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-small { + margin-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:727 */ +.x-btn-focus.x-btn-default-small { + background-image: none; + background-color: #5fa2dd; + -webkit-box-shadow: #d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset; + -moz-box-shadow: #d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset; + box-shadow: #d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:762 */ +.x-btn-default-small .x-btn-arrow-el { + position: absolute; + top: 0; + right: 0; + height: 100%; + width: 27px; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:778 */ +.x-btn-default-small.x-arrow-focus .x-btn-arrow-el { + border: 1px solid #d3e0ec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:785 */ +.x-btn-over.x-btn-default-small { + border-color: #518bbd; + background-image: none; + background-color: #5795cb; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:812 */ +.x-btn-focus.x-btn-over.x-btn-default-small { + -webkit-box-shadow: #d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset; + -moz-box-shadow: #d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset; + box-shadow: #d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:840 */ +.x-btn.x-btn-menu-active.x-btn-default-small, +.x-btn.x-btn-pressed.x-btn-default-small { + border-color: #42719a; + background-image: none; + background-color: #477aa6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:868 */ +.x-btn-focus.x-btn-menu-active.x-btn-default-small, +.x-btn-focus.x-btn-pressed.x-btn-default-small { + -webkit-box-shadow: #ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset; + -moz-box-shadow: #ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset; + box-shadow: #ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:897 */ +.x-btn.x-btn-disabled.x-btn-default-small { + background-image: none; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:929 */ +.x-btn-focus .x-btn-default-small-tl, +.x-btn-focus .x-btn-default-small-bl, +.x-btn-focus .x-btn-default-small-tr, +.x-btn-focus .x-btn-default-small-br, +.x-btn-focus .x-btn-default-small-tc, +.x-btn-focus .x-btn-default-small-bc { + background-image: url(images/btn/btn-default-small-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:937 */ +.x-btn-focus .x-btn-default-small-ml, +.x-btn-focus .x-btn-default-small-mr { + background-image: url(images/btn/btn-default-small-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:941 */ +.x-btn-focus .x-btn-default-small-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:953 */ +.x-btn-over .x-btn-default-small-tl, +.x-btn-over .x-btn-default-small-bl, +.x-btn-over .x-btn-default-small-tr, +.x-btn-over .x-btn-default-small-br, +.x-btn-over .x-btn-default-small-tc, +.x-btn-over .x-btn-default-small-bc { + background-image: url(images/btn/btn-default-small-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:961 */ +.x-btn-over .x-btn-default-small-ml, +.x-btn-over .x-btn-default-small-mr { + background-image: url(images/btn/btn-default-small-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:965 */ +.x-btn-over .x-btn-default-small-mc { + background-color: #5795cb; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:977 */ +.x-btn-focus.x-btn-over .x-btn-default-small-tl, +.x-btn-focus.x-btn-over .x-btn-default-small-bl, +.x-btn-focus.x-btn-over .x-btn-default-small-tr, +.x-btn-focus.x-btn-over .x-btn-default-small-br, +.x-btn-focus.x-btn-over .x-btn-default-small-tc, +.x-btn-focus.x-btn-over .x-btn-default-small-bc { + background-image: url(images/btn/btn-default-small-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:985 */ +.x-btn-focus.x-btn-over .x-btn-default-small-ml, +.x-btn-focus.x-btn-over .x-btn-default-small-mr { + background-image: url(images/btn/btn-default-small-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:989 */ +.x-btn-focus.x-btn-over .x-btn-default-small-mc { + background-color: #5795cb; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1003 */ +.x-btn.x-btn-menu-active .x-btn-default-small-tl, +.x-btn.x-btn-menu-active .x-btn-default-small-bl, +.x-btn.x-btn-menu-active .x-btn-default-small-tr, +.x-btn.x-btn-menu-active .x-btn-default-small-br, +.x-btn.x-btn-menu-active .x-btn-default-small-tc, +.x-btn.x-btn-menu-active .x-btn-default-small-bc, +.x-btn.x-btn-pressed .x-btn-default-small-tl, +.x-btn.x-btn-pressed .x-btn-default-small-bl, +.x-btn.x-btn-pressed .x-btn-default-small-tr, +.x-btn.x-btn-pressed .x-btn-default-small-br, +.x-btn.x-btn-pressed .x-btn-default-small-tc, +.x-btn.x-btn-pressed .x-btn-default-small-bc { + background-image: url(images/btn/btn-default-small-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1011 */ +.x-btn.x-btn-menu-active .x-btn-default-small-ml, +.x-btn.x-btn-menu-active .x-btn-default-small-mr, +.x-btn.x-btn-pressed .x-btn-default-small-ml, +.x-btn.x-btn-pressed .x-btn-default-small-mr { + background-image: url(images/btn/btn-default-small-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1015 */ +.x-btn.x-btn-menu-active .x-btn-default-small-mc, +.x-btn.x-btn-pressed .x-btn-default-small-mc { + background-color: #477aa6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1028 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-small-tl, +.x-btn-focus.x-btn-menu-active .x-btn-default-small-bl, +.x-btn-focus.x-btn-menu-active .x-btn-default-small-tr, +.x-btn-focus.x-btn-menu-active .x-btn-default-small-br, +.x-btn-focus.x-btn-menu-active .x-btn-default-small-tc, +.x-btn-focus.x-btn-menu-active .x-btn-default-small-bc, +.x-btn-focus.x-btn-pressed .x-btn-default-small-tl, +.x-btn-focus.x-btn-pressed .x-btn-default-small-bl, +.x-btn-focus.x-btn-pressed .x-btn-default-small-tr, +.x-btn-focus.x-btn-pressed .x-btn-default-small-br, +.x-btn-focus.x-btn-pressed .x-btn-default-small-tc, +.x-btn-focus.x-btn-pressed .x-btn-default-small-bc { + background-image: url(images/btn/btn-default-small-focus-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1036 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-small-ml, +.x-btn-focus.x-btn-menu-active .x-btn-default-small-mr, +.x-btn-focus.x-btn-pressed .x-btn-default-small-ml, +.x-btn-focus.x-btn-pressed .x-btn-default-small-mr { + background-image: url(images/btn/btn-default-small-focus-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1040 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-small-mc, +.x-btn-focus.x-btn-pressed .x-btn-default-small-mc { + background-color: #477aa6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1053 */ +.x-btn.x-btn-disabled .x-btn-default-small-tl, +.x-btn.x-btn-disabled .x-btn-default-small-bl, +.x-btn.x-btn-disabled .x-btn-default-small-tr, +.x-btn.x-btn-disabled .x-btn-default-small-br, +.x-btn.x-btn-disabled .x-btn-default-small-tc, +.x-btn.x-btn-disabled .x-btn-default-small-bc { + background-image: url(images/btn/btn-default-small-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1061 */ +.x-btn.x-btn-disabled .x-btn-default-small-ml, +.x-btn.x-btn-disabled .x-btn-default-small-mr { + background-image: url(images/btn/btn-default-small-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1065 */ +.x-btn.x-btn-disabled .x-btn-default-small-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1075 */ +.x-nbr .x-btn-default-small { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1081 */ +.x-btn-disabled.x-btn-default-small { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-btn-default-medium { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 8px 8px 8px 8px; + border-width: 1px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-btn-default-medium-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-btn-default-medium { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-btn-default-medium-frameInfo { + font-family: th-1-1-1-1-1-1-1-1-8-8-8-8; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-btn-default-medium-tl { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-btn-default-medium-tr { + background-position: right -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-btn-default-medium-bl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-btn-default-medium-br { + background-position: right -5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-btn-default-medium-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-btn-default-medium-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-btn-default-medium-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-btn-default-medium-bc { + background-position: 0 -1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-btn-default-medium-tr, +.x-btn-default-medium-br, +.x-btn-default-medium-mr { + padding-right: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-btn-default-medium-tl, +.x-btn-default-medium-bl, +.x-btn-default-medium-ml { + padding-left: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-btn-default-medium-tc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-btn-default-medium-bc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-btn-default-medium-tl, +.x-btn-default-medium-bl, +.x-btn-default-medium-tr, +.x-btn-default-medium-br, +.x-btn-default-medium-tc, +.x-btn-default-medium-bc, +.x-btn-default-medium-ml, +.x-btn-default-medium-mr { + background-image: url(images/btn/btn-default-medium-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-btn-default-medium-ml, +.x-btn-default-medium-mr { + background-image: url(images/btn/btn-default-medium-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-btn-default-medium-mc { + padding: 8px 8px 8px 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:445 */ +.x-btn-default-medium { + border-color: #5897ce; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:452 */ +.x-btn-button-default-medium { + min-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:457 */ +.x-ie9m .x-btn-button-default-medium { + min-height: auto; + height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:464 */ +.x-btn-inner-default-medium { + font: 400 14px/18px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #f0f0f0; + padding: 0 8px; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:479 */ +.x-btn-icon-right > .x-btn-inner-default-medium, +.x-btn-icon-left > .x-btn-inner-default-medium { + max-width: calc(100% - 20px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:487 */ +.x-ie10p .x-btn-inner-default-medium { + max-width: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:492 */ +.x-btn-icon-el-default-medium { + font-size: 20px; + height: 20px; + color: #f0f0f0; + line-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:498 */ +.x-btn-icon-left > .x-btn-icon-el-default-medium, +.x-btn-icon-right > .x-btn-icon-el-default-medium { + width: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:503 */ +.x-btn-icon-top > .x-btn-icon-el-default-medium, +.x-btn-icon-bottom > .x-btn-icon-el-default-medium { + min-width: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:525 */ +.x-ie8 .x-btn-icon-el-default-medium.x-btn-glyph { + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:532 */ +.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-medium { + margin-right: 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:543 */ +.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-medium { + margin-left: 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:554 */ +.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-medium { + margin-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:558 */ +.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-medium { + margin-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:564 */ +.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-medium { + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:567 */ +.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-medium { + margin-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:574 */ +.x-btn-arrow-bottom > .x-btn-button-default-medium, +.x-btn-split-bottom > .x-btn-button-default-medium { + padding-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:580 */ +.x-btn-wrap-default-medium.x-btn-arrow-right:after { + width: 20px; + content: "\f0d7"; + font: 20px/1 FontAwesome; + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:607 */ +.x-btn-wrap-default-medium.x-btn-arrow-bottom:after { + height: 14px; + content: "\f0d7"; + font: 20px/14px FontAwesome; + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:634 */ +.x-btn-wrap-default-medium.x-btn-split-right > .x-btn-button { + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:642 */ +.x-btn-wrap-default-medium.x-btn-split-right > .x-btn-button:after { + border-right: 1px solid #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:647 */ +.x-btn-wrap-default-medium.x-btn-split-right:after { + width: 26px; + content: "\f0d7"; + font: 20px/1 FontAwesome; + color: #f0f0f0; + padding-left: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:673 */ +.x-btn-wrap-default-medium.x-btn-split-bottom { + margin-bottom: -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:675 */ +.x-btn-wrap-default-medium.x-btn-split-bottom > .x-btn-button:after { + border-bottom: 1px solid #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:686 */ +.x-btn-wrap-default-medium.x-btn-split-bottom:after { + height: 24px; + content: "\f0d7"; + font: 20px/24px FontAwesome; + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:719 */ +.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-medium { + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:722 */ +.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-medium { + margin-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:727 */ +.x-btn-focus.x-btn-default-medium { + background-image: none; + background-color: #5fa2dd; + -webkit-box-shadow: #d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset; + -moz-box-shadow: #d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset; + box-shadow: #d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:762 */ +.x-btn-default-medium .x-btn-arrow-el { + position: absolute; + top: 0; + right: 0; + height: 100%; + width: 34px; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:778 */ +.x-btn-default-medium.x-arrow-focus .x-btn-arrow-el { + border: 1px solid #d3e0ec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:785 */ +.x-btn-over.x-btn-default-medium { + border-color: #518bbd; + background-image: none; + background-color: #5795cb; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:812 */ +.x-btn-focus.x-btn-over.x-btn-default-medium { + -webkit-box-shadow: #d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset; + -moz-box-shadow: #d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset; + box-shadow: #d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:840 */ +.x-btn.x-btn-menu-active.x-btn-default-medium, +.x-btn.x-btn-pressed.x-btn-default-medium { + border-color: #42719a; + background-image: none; + background-color: #477aa6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:868 */ +.x-btn-focus.x-btn-menu-active.x-btn-default-medium, +.x-btn-focus.x-btn-pressed.x-btn-default-medium { + -webkit-box-shadow: #ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset; + -moz-box-shadow: #ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset; + box-shadow: #ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:897 */ +.x-btn.x-btn-disabled.x-btn-default-medium { + background-image: none; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:929 */ +.x-btn-focus .x-btn-default-medium-tl, +.x-btn-focus .x-btn-default-medium-bl, +.x-btn-focus .x-btn-default-medium-tr, +.x-btn-focus .x-btn-default-medium-br, +.x-btn-focus .x-btn-default-medium-tc, +.x-btn-focus .x-btn-default-medium-bc { + background-image: url(images/btn/btn-default-medium-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:937 */ +.x-btn-focus .x-btn-default-medium-ml, +.x-btn-focus .x-btn-default-medium-mr { + background-image: url(images/btn/btn-default-medium-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:941 */ +.x-btn-focus .x-btn-default-medium-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:953 */ +.x-btn-over .x-btn-default-medium-tl, +.x-btn-over .x-btn-default-medium-bl, +.x-btn-over .x-btn-default-medium-tr, +.x-btn-over .x-btn-default-medium-br, +.x-btn-over .x-btn-default-medium-tc, +.x-btn-over .x-btn-default-medium-bc { + background-image: url(images/btn/btn-default-medium-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:961 */ +.x-btn-over .x-btn-default-medium-ml, +.x-btn-over .x-btn-default-medium-mr { + background-image: url(images/btn/btn-default-medium-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:965 */ +.x-btn-over .x-btn-default-medium-mc { + background-color: #5795cb; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:977 */ +.x-btn-focus.x-btn-over .x-btn-default-medium-tl, +.x-btn-focus.x-btn-over .x-btn-default-medium-bl, +.x-btn-focus.x-btn-over .x-btn-default-medium-tr, +.x-btn-focus.x-btn-over .x-btn-default-medium-br, +.x-btn-focus.x-btn-over .x-btn-default-medium-tc, +.x-btn-focus.x-btn-over .x-btn-default-medium-bc { + background-image: url(images/btn/btn-default-medium-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:985 */ +.x-btn-focus.x-btn-over .x-btn-default-medium-ml, +.x-btn-focus.x-btn-over .x-btn-default-medium-mr { + background-image: url(images/btn/btn-default-medium-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:989 */ +.x-btn-focus.x-btn-over .x-btn-default-medium-mc { + background-color: #5795cb; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1003 */ +.x-btn.x-btn-menu-active .x-btn-default-medium-tl, +.x-btn.x-btn-menu-active .x-btn-default-medium-bl, +.x-btn.x-btn-menu-active .x-btn-default-medium-tr, +.x-btn.x-btn-menu-active .x-btn-default-medium-br, +.x-btn.x-btn-menu-active .x-btn-default-medium-tc, +.x-btn.x-btn-menu-active .x-btn-default-medium-bc, +.x-btn.x-btn-pressed .x-btn-default-medium-tl, +.x-btn.x-btn-pressed .x-btn-default-medium-bl, +.x-btn.x-btn-pressed .x-btn-default-medium-tr, +.x-btn.x-btn-pressed .x-btn-default-medium-br, +.x-btn.x-btn-pressed .x-btn-default-medium-tc, +.x-btn.x-btn-pressed .x-btn-default-medium-bc { + background-image: url(images/btn/btn-default-medium-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1011 */ +.x-btn.x-btn-menu-active .x-btn-default-medium-ml, +.x-btn.x-btn-menu-active .x-btn-default-medium-mr, +.x-btn.x-btn-pressed .x-btn-default-medium-ml, +.x-btn.x-btn-pressed .x-btn-default-medium-mr { + background-image: url(images/btn/btn-default-medium-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1015 */ +.x-btn.x-btn-menu-active .x-btn-default-medium-mc, +.x-btn.x-btn-pressed .x-btn-default-medium-mc { + background-color: #477aa6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1028 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-medium-tl, +.x-btn-focus.x-btn-menu-active .x-btn-default-medium-bl, +.x-btn-focus.x-btn-menu-active .x-btn-default-medium-tr, +.x-btn-focus.x-btn-menu-active .x-btn-default-medium-br, +.x-btn-focus.x-btn-menu-active .x-btn-default-medium-tc, +.x-btn-focus.x-btn-menu-active .x-btn-default-medium-bc, +.x-btn-focus.x-btn-pressed .x-btn-default-medium-tl, +.x-btn-focus.x-btn-pressed .x-btn-default-medium-bl, +.x-btn-focus.x-btn-pressed .x-btn-default-medium-tr, +.x-btn-focus.x-btn-pressed .x-btn-default-medium-br, +.x-btn-focus.x-btn-pressed .x-btn-default-medium-tc, +.x-btn-focus.x-btn-pressed .x-btn-default-medium-bc { + background-image: url(images/btn/btn-default-medium-focus-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1036 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-medium-ml, +.x-btn-focus.x-btn-menu-active .x-btn-default-medium-mr, +.x-btn-focus.x-btn-pressed .x-btn-default-medium-ml, +.x-btn-focus.x-btn-pressed .x-btn-default-medium-mr { + background-image: url(images/btn/btn-default-medium-focus-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1040 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-medium-mc, +.x-btn-focus.x-btn-pressed .x-btn-default-medium-mc { + background-color: #477aa6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1053 */ +.x-btn.x-btn-disabled .x-btn-default-medium-tl, +.x-btn.x-btn-disabled .x-btn-default-medium-bl, +.x-btn.x-btn-disabled .x-btn-default-medium-tr, +.x-btn.x-btn-disabled .x-btn-default-medium-br, +.x-btn.x-btn-disabled .x-btn-default-medium-tc, +.x-btn.x-btn-disabled .x-btn-default-medium-bc { + background-image: url(images/btn/btn-default-medium-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1061 */ +.x-btn.x-btn-disabled .x-btn-default-medium-ml, +.x-btn.x-btn-disabled .x-btn-default-medium-mr { + background-image: url(images/btn/btn-default-medium-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1065 */ +.x-btn.x-btn-disabled .x-btn-default-medium-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1075 */ +.x-nbr .x-btn-default-medium { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1081 */ +.x-btn-disabled.x-btn-default-medium { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-btn-default-large { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 9px 9px 9px 9px; + border-width: 1px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-btn-default-large-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-btn-default-large { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-btn-default-large-frameInfo { + font-family: th-1-1-1-1-1-1-1-1-9-9-9-9; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-btn-default-large-tl { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-btn-default-large-tr { + background-position: right -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-btn-default-large-bl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-btn-default-large-br { + background-position: right -5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-btn-default-large-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-btn-default-large-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-btn-default-large-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-btn-default-large-bc { + background-position: 0 -1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-btn-default-large-tr, +.x-btn-default-large-br, +.x-btn-default-large-mr { + padding-right: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-btn-default-large-tl, +.x-btn-default-large-bl, +.x-btn-default-large-ml { + padding-left: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-btn-default-large-tc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-btn-default-large-bc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-btn-default-large-tl, +.x-btn-default-large-bl, +.x-btn-default-large-tr, +.x-btn-default-large-br, +.x-btn-default-large-tc, +.x-btn-default-large-bc, +.x-btn-default-large-ml, +.x-btn-default-large-mr { + background-image: url(images/btn/btn-default-large-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-btn-default-large-ml, +.x-btn-default-large-mr { + background-image: url(images/btn/btn-default-large-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-btn-default-large-mc { + padding: 9px 9px 9px 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:445 */ +.x-btn-default-large { + border-color: #5897ce; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:452 */ +.x-btn-button-default-large { + min-height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:457 */ +.x-ie9m .x-btn-button-default-large { + min-height: auto; + height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:464 */ +.x-btn-inner-default-large { + font: 400 16px/20px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #f0f0f0; + padding: 0 10px; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:479 */ +.x-btn-icon-right > .x-btn-inner-default-large, +.x-btn-icon-left > .x-btn-inner-default-large { + max-width: calc(100% - 24px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:487 */ +.x-ie10p .x-btn-inner-default-large { + max-width: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:492 */ +.x-btn-icon-el-default-large { + font-size: 24px; + height: 24px; + color: #f0f0f0; + line-height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:498 */ +.x-btn-icon-left > .x-btn-icon-el-default-large, +.x-btn-icon-right > .x-btn-icon-el-default-large { + width: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:503 */ +.x-btn-icon-top > .x-btn-icon-el-default-large, +.x-btn-icon-bottom > .x-btn-icon-el-default-large { + min-width: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:525 */ +.x-ie8 .x-btn-icon-el-default-large.x-btn-glyph { + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:532 */ +.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-large { + margin-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:543 */ +.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-large { + margin-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:554 */ +.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-large { + margin-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:558 */ +.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-large { + margin-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:564 */ +.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-large { + padding-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:567 */ +.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-large { + margin-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:574 */ +.x-btn-arrow-bottom > .x-btn-button-default-large, +.x-btn-split-bottom > .x-btn-button-default-large { + padding-bottom: 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:580 */ +.x-btn-wrap-default-large.x-btn-arrow-right:after { + width: 22px; + content: "\f0d7"; + font: 24px/1 FontAwesome; + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:607 */ +.x-btn-wrap-default-large.x-btn-arrow-bottom:after { + height: 16px; + content: "\f0d7"; + font: 24px/16px FontAwesome; + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:634 */ +.x-btn-wrap-default-large.x-btn-split-right > .x-btn-button { + padding-right: 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:642 */ +.x-btn-wrap-default-large.x-btn-split-right > .x-btn-button:after { + border-right: 1px solid #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:647 */ +.x-btn-wrap-default-large.x-btn-split-right:after { + width: 32px; + content: "\f0d7"; + font: 24px/1 FontAwesome; + color: #f0f0f0; + padding-left: 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:673 */ +.x-btn-wrap-default-large.x-btn-split-bottom { + margin-bottom: -9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:675 */ +.x-btn-wrap-default-large.x-btn-split-bottom > .x-btn-button:after { + border-bottom: 1px solid #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:686 */ +.x-btn-wrap-default-large.x-btn-split-bottom:after { + height: 28px; + content: "\f0d7"; + font: 24px/28px FontAwesome; + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:719 */ +.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-large { + padding-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:722 */ +.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-large { + margin-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:727 */ +.x-btn-focus.x-btn-default-large { + background-image: none; + background-color: #5fa2dd; + -webkit-box-shadow: #d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset; + -moz-box-shadow: #d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset; + box-shadow: #d3e0ec 0 1px 0px 0 inset, #d3e0ec 0 -1px 0px 0 inset, #d3e0ec -1px 0 0px 0 inset, #d3e0ec 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:762 */ +.x-btn-default-large .x-btn-arrow-el { + position: absolute; + top: 0; + right: 0; + height: 100%; + width: 41px; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:778 */ +.x-btn-default-large.x-arrow-focus .x-btn-arrow-el { + border: 1px solid #d3e0ec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:785 */ +.x-btn-over.x-btn-default-large { + border-color: #518bbd; + background-image: none; + background-color: #5795cb; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:812 */ +.x-btn-focus.x-btn-over.x-btn-default-large { + -webkit-box-shadow: #d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset; + -moz-box-shadow: #d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset; + box-shadow: #d1dee9 0 1px 0px 0 inset, #d1dee9 0 -1px 0px 0 inset, #d1dee9 -1px 0 0px 0 inset, #d1dee9 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:840 */ +.x-btn.x-btn-menu-active.x-btn-default-large, +.x-btn.x-btn-pressed.x-btn-default-large { + border-color: #42719a; + background-image: none; + background-color: #477aa6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:868 */ +.x-btn-focus.x-btn-menu-active.x-btn-default-large, +.x-btn-focus.x-btn-pressed.x-btn-default-large { + -webkit-box-shadow: #ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset; + -moz-box-shadow: #ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset; + box-shadow: #ced8e1 0 1px 0px 0 inset, #ced8e1 0 -1px 0px 0 inset, #ced8e1 -1px 0 0px 0 inset, #ced8e1 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:897 */ +.x-btn.x-btn-disabled.x-btn-default-large { + background-image: none; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:929 */ +.x-btn-focus .x-btn-default-large-tl, +.x-btn-focus .x-btn-default-large-bl, +.x-btn-focus .x-btn-default-large-tr, +.x-btn-focus .x-btn-default-large-br, +.x-btn-focus .x-btn-default-large-tc, +.x-btn-focus .x-btn-default-large-bc { + background-image: url(images/btn/btn-default-large-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:937 */ +.x-btn-focus .x-btn-default-large-ml, +.x-btn-focus .x-btn-default-large-mr { + background-image: url(images/btn/btn-default-large-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:941 */ +.x-btn-focus .x-btn-default-large-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:953 */ +.x-btn-over .x-btn-default-large-tl, +.x-btn-over .x-btn-default-large-bl, +.x-btn-over .x-btn-default-large-tr, +.x-btn-over .x-btn-default-large-br, +.x-btn-over .x-btn-default-large-tc, +.x-btn-over .x-btn-default-large-bc { + background-image: url(images/btn/btn-default-large-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:961 */ +.x-btn-over .x-btn-default-large-ml, +.x-btn-over .x-btn-default-large-mr { + background-image: url(images/btn/btn-default-large-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:965 */ +.x-btn-over .x-btn-default-large-mc { + background-color: #5795cb; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:977 */ +.x-btn-focus.x-btn-over .x-btn-default-large-tl, +.x-btn-focus.x-btn-over .x-btn-default-large-bl, +.x-btn-focus.x-btn-over .x-btn-default-large-tr, +.x-btn-focus.x-btn-over .x-btn-default-large-br, +.x-btn-focus.x-btn-over .x-btn-default-large-tc, +.x-btn-focus.x-btn-over .x-btn-default-large-bc { + background-image: url(images/btn/btn-default-large-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:985 */ +.x-btn-focus.x-btn-over .x-btn-default-large-ml, +.x-btn-focus.x-btn-over .x-btn-default-large-mr { + background-image: url(images/btn/btn-default-large-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:989 */ +.x-btn-focus.x-btn-over .x-btn-default-large-mc { + background-color: #5795cb; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1003 */ +.x-btn.x-btn-menu-active .x-btn-default-large-tl, +.x-btn.x-btn-menu-active .x-btn-default-large-bl, +.x-btn.x-btn-menu-active .x-btn-default-large-tr, +.x-btn.x-btn-menu-active .x-btn-default-large-br, +.x-btn.x-btn-menu-active .x-btn-default-large-tc, +.x-btn.x-btn-menu-active .x-btn-default-large-bc, +.x-btn.x-btn-pressed .x-btn-default-large-tl, +.x-btn.x-btn-pressed .x-btn-default-large-bl, +.x-btn.x-btn-pressed .x-btn-default-large-tr, +.x-btn.x-btn-pressed .x-btn-default-large-br, +.x-btn.x-btn-pressed .x-btn-default-large-tc, +.x-btn.x-btn-pressed .x-btn-default-large-bc { + background-image: url(images/btn/btn-default-large-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1011 */ +.x-btn.x-btn-menu-active .x-btn-default-large-ml, +.x-btn.x-btn-menu-active .x-btn-default-large-mr, +.x-btn.x-btn-pressed .x-btn-default-large-ml, +.x-btn.x-btn-pressed .x-btn-default-large-mr { + background-image: url(images/btn/btn-default-large-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1015 */ +.x-btn.x-btn-menu-active .x-btn-default-large-mc, +.x-btn.x-btn-pressed .x-btn-default-large-mc { + background-color: #477aa6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1028 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-large-tl, +.x-btn-focus.x-btn-menu-active .x-btn-default-large-bl, +.x-btn-focus.x-btn-menu-active .x-btn-default-large-tr, +.x-btn-focus.x-btn-menu-active .x-btn-default-large-br, +.x-btn-focus.x-btn-menu-active .x-btn-default-large-tc, +.x-btn-focus.x-btn-menu-active .x-btn-default-large-bc, +.x-btn-focus.x-btn-pressed .x-btn-default-large-tl, +.x-btn-focus.x-btn-pressed .x-btn-default-large-bl, +.x-btn-focus.x-btn-pressed .x-btn-default-large-tr, +.x-btn-focus.x-btn-pressed .x-btn-default-large-br, +.x-btn-focus.x-btn-pressed .x-btn-default-large-tc, +.x-btn-focus.x-btn-pressed .x-btn-default-large-bc { + background-image: url(images/btn/btn-default-large-focus-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1036 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-large-ml, +.x-btn-focus.x-btn-menu-active .x-btn-default-large-mr, +.x-btn-focus.x-btn-pressed .x-btn-default-large-ml, +.x-btn-focus.x-btn-pressed .x-btn-default-large-mr { + background-image: url(images/btn/btn-default-large-focus-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1040 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-large-mc, +.x-btn-focus.x-btn-pressed .x-btn-default-large-mc { + background-color: #477aa6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1053 */ +.x-btn.x-btn-disabled .x-btn-default-large-tl, +.x-btn.x-btn-disabled .x-btn-default-large-bl, +.x-btn.x-btn-disabled .x-btn-default-large-tr, +.x-btn.x-btn-disabled .x-btn-default-large-br, +.x-btn.x-btn-disabled .x-btn-default-large-tc, +.x-btn.x-btn-disabled .x-btn-default-large-bc { + background-image: url(images/btn/btn-default-large-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1061 */ +.x-btn.x-btn-disabled .x-btn-default-large-ml, +.x-btn.x-btn-disabled .x-btn-default-large-mr { + background-image: url(images/btn/btn-default-large-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1065 */ +.x-btn.x-btn-disabled .x-btn-default-large-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1075 */ +.x-nbr .x-btn-default-large { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1081 */ +.x-btn-disabled.x-btn-default-large { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-btn-default-toolbar-small { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 7px 7px 7px 7px; + border-width: 1px; + border-style: solid; + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-btn-default-toolbar-small-mc { + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-btn-default-toolbar-small { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-btn-default-toolbar-small-frameInfo { + font-family: th-1-1-1-1-1-1-1-1-7-7-7-7; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-btn-default-toolbar-small-tl { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-btn-default-toolbar-small-tr { + background-position: right -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-btn-default-toolbar-small-bl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-btn-default-toolbar-small-br { + background-position: right -5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-btn-default-toolbar-small-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-btn-default-toolbar-small-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-btn-default-toolbar-small-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-btn-default-toolbar-small-bc { + background-position: 0 -1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-btn-default-toolbar-small-tr, +.x-btn-default-toolbar-small-br, +.x-btn-default-toolbar-small-mr { + padding-right: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-btn-default-toolbar-small-tl, +.x-btn-default-toolbar-small-bl, +.x-btn-default-toolbar-small-ml { + padding-left: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-btn-default-toolbar-small-tc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-btn-default-toolbar-small-bc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-btn-default-toolbar-small-tl, +.x-btn-default-toolbar-small-bl, +.x-btn-default-toolbar-small-tr, +.x-btn-default-toolbar-small-br, +.x-btn-default-toolbar-small-tc, +.x-btn-default-toolbar-small-bc, +.x-btn-default-toolbar-small-ml, +.x-btn-default-toolbar-small-mr { + background-image: url(images/btn/btn-default-toolbar-small-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-btn-default-toolbar-small-ml, +.x-btn-default-toolbar-small-mr { + background-image: url(images/btn/btn-default-toolbar-small-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-btn-default-toolbar-small-mc { + padding: 7px 7px 7px 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:445 */ +.x-btn-default-toolbar-small { + border-color: #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:452 */ +.x-btn-button-default-toolbar-small { + min-height: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:457 */ +.x-ie9m .x-btn-button-default-toolbar-small { + min-height: auto; + height: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:464 */ +.x-btn-inner-default-toolbar-small { + font: 400 12px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #606060; + padding: 0 5px; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:479 */ +.x-btn-icon-right > .x-btn-inner-default-toolbar-small, +.x-btn-icon-left > .x-btn-inner-default-toolbar-small { + max-width: calc(100% - 16px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:487 */ +.x-ie10p .x-btn-inner-default-toolbar-small { + max-width: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:492 */ +.x-btn-icon-el-default-toolbar-small { + font-size: 16px; + height: 16px; + color: #919191; + line-height: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:498 */ +.x-btn-icon-left > .x-btn-icon-el-default-toolbar-small, +.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small { + width: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:503 */ +.x-btn-icon-top > .x-btn-icon-el-default-toolbar-small, +.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-small { + min-width: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:525 */ +.x-ie8 .x-btn-icon-el-default-toolbar-small.x-btn-glyph { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:532 */ +.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-toolbar-small { + margin-right: 3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:543 */ +.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small { + margin-left: 3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:554 */ +.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-toolbar-small { + margin-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:558 */ +.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-small { + margin-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:564 */ +.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-small { + padding-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:567 */ +.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small { + margin-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:574 */ +.x-btn-arrow-bottom > .x-btn-button-default-toolbar-small, +.x-btn-split-bottom > .x-btn-button-default-toolbar-small { + padding-bottom: 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:580 */ +.x-btn-wrap-default-toolbar-small.x-btn-arrow-right:after { + width: 18px; + content: "\f0d7"; + font: 16px/1 FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:607 */ +.x-btn-wrap-default-toolbar-small.x-btn-arrow-bottom:after { + height: 12px; + content: "\f0d7"; + font: 16px/12px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:634 */ +.x-btn-wrap-default-toolbar-small.x-btn-split-right > .x-btn-button { + padding-right: 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:642 */ +.x-btn-wrap-default-toolbar-small.x-btn-split-right > .x-btn-button:after { + border-right: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:647 */ +.x-btn-wrap-default-toolbar-small.x-btn-split-right:after { + width: 20px; + content: "\f0d7"; + font: 16px/1 FontAwesome; + color: #606060; + padding-left: 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:673 */ +.x-btn-wrap-default-toolbar-small.x-btn-split-bottom { + margin-bottom: -7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:675 */ +.x-btn-wrap-default-toolbar-small.x-btn-split-bottom > .x-btn-button:after { + border-bottom: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:686 */ +.x-btn-wrap-default-toolbar-small.x-btn-split-bottom:after { + height: 20px; + content: "\f0d7"; + font: 16px/20px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:719 */ +.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-small { + padding-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:722 */ +.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-small { + margin-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:727 */ +.x-btn-focus.x-btn-default-toolbar-small { + background-image: none; + background-color: #f6f6f6; + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:762 */ +.x-btn-default-toolbar-small .x-btn-arrow-el { + position: absolute; + top: 0; + right: 0; + height: 100%; + width: 27px; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:778 */ +.x-btn-default-toolbar-small.x-arrow-focus .x-btn-arrow-el { + border: 1px solid #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:785 */ +.x-btn-over.x-btn-default-toolbar-small { + border-color: #dbdbdb; + background-image: none; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:812 */ +.x-btn-focus.x-btn-over.x-btn-default-toolbar-small { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:840 */ +.x-btn.x-btn-menu-active.x-btn-default-toolbar-small, +.x-btn.x-btn-pressed.x-btn-default-toolbar-small { + border-color: #d2d2d2; + background-image: none; + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:868 */ +.x-btn-focus.x-btn-menu-active.x-btn-default-toolbar-small, +.x-btn-focus.x-btn-pressed.x-btn-default-toolbar-small { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:897 */ +.x-btn.x-btn-disabled.x-btn-default-toolbar-small { + background-image: none; + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:929 */ +.x-btn-focus .x-btn-default-toolbar-small-tl, +.x-btn-focus .x-btn-default-toolbar-small-bl, +.x-btn-focus .x-btn-default-toolbar-small-tr, +.x-btn-focus .x-btn-default-toolbar-small-br, +.x-btn-focus .x-btn-default-toolbar-small-tc, +.x-btn-focus .x-btn-default-toolbar-small-bc { + background-image: url(images/btn/btn-default-toolbar-small-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:937 */ +.x-btn-focus .x-btn-default-toolbar-small-ml, +.x-btn-focus .x-btn-default-toolbar-small-mr { + background-image: url(images/btn/btn-default-toolbar-small-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:941 */ +.x-btn-focus .x-btn-default-toolbar-small-mc { + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:953 */ +.x-btn-over .x-btn-default-toolbar-small-tl, +.x-btn-over .x-btn-default-toolbar-small-bl, +.x-btn-over .x-btn-default-toolbar-small-tr, +.x-btn-over .x-btn-default-toolbar-small-br, +.x-btn-over .x-btn-default-toolbar-small-tc, +.x-btn-over .x-btn-default-toolbar-small-bc { + background-image: url(images/btn/btn-default-toolbar-small-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:961 */ +.x-btn-over .x-btn-default-toolbar-small-ml, +.x-btn-over .x-btn-default-toolbar-small-mr { + background-image: url(images/btn/btn-default-toolbar-small-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:965 */ +.x-btn-over .x-btn-default-toolbar-small-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:977 */ +.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-tl, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-bl, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-tr, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-br, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-tc, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-bc { + background-image: url(images/btn/btn-default-toolbar-small-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:985 */ +.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-ml, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-mr { + background-image: url(images/btn/btn-default-toolbar-small-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:989 */ +.x-btn-focus.x-btn-over .x-btn-default-toolbar-small-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1003 */ +.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-tl, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-bl, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-tr, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-br, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-tc, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-bc, +.x-btn.x-btn-pressed .x-btn-default-toolbar-small-tl, +.x-btn.x-btn-pressed .x-btn-default-toolbar-small-bl, +.x-btn.x-btn-pressed .x-btn-default-toolbar-small-tr, +.x-btn.x-btn-pressed .x-btn-default-toolbar-small-br, +.x-btn.x-btn-pressed .x-btn-default-toolbar-small-tc, +.x-btn.x-btn-pressed .x-btn-default-toolbar-small-bc { + background-image: url(images/btn/btn-default-toolbar-small-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1011 */ +.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-ml, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-mr, +.x-btn.x-btn-pressed .x-btn-default-toolbar-small-ml, +.x-btn.x-btn-pressed .x-btn-default-toolbar-small-mr { + background-image: url(images/btn/btn-default-toolbar-small-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1015 */ +.x-btn.x-btn-menu-active .x-btn-default-toolbar-small-mc, +.x-btn.x-btn-pressed .x-btn-default-toolbar-small-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1028 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-tl, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-bl, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-tr, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-br, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-tc, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-bc, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-tl, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-bl, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-tr, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-br, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-tc, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-bc { + background-image: url(images/btn/btn-default-toolbar-small-focus-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1036 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-ml, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-mr, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-ml, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-mr { + background-image: url(images/btn/btn-default-toolbar-small-focus-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1040 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-small-mc, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-small-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1053 */ +.x-btn.x-btn-disabled .x-btn-default-toolbar-small-tl, +.x-btn.x-btn-disabled .x-btn-default-toolbar-small-bl, +.x-btn.x-btn-disabled .x-btn-default-toolbar-small-tr, +.x-btn.x-btn-disabled .x-btn-default-toolbar-small-br, +.x-btn.x-btn-disabled .x-btn-default-toolbar-small-tc, +.x-btn.x-btn-disabled .x-btn-default-toolbar-small-bc { + background-image: url(images/btn/btn-default-toolbar-small-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1061 */ +.x-btn.x-btn-disabled .x-btn-default-toolbar-small-ml, +.x-btn.x-btn-disabled .x-btn-default-toolbar-small-mr { + background-image: url(images/btn/btn-default-toolbar-small-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1065 */ +.x-btn.x-btn-disabled .x-btn-default-toolbar-small-mc { + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1075 */ +.x-nbr .x-btn-default-toolbar-small { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1081 */ +.x-btn-disabled.x-btn-default-toolbar-small { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-btn-default-toolbar-medium { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 8px 8px 8px 8px; + border-width: 1px; + border-style: solid; + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-btn-default-toolbar-medium-mc { + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-btn-default-toolbar-medium { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-btn-default-toolbar-medium-frameInfo { + font-family: th-1-1-1-1-1-1-1-1-8-8-8-8; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-btn-default-toolbar-medium-tl { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-btn-default-toolbar-medium-tr { + background-position: right -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-btn-default-toolbar-medium-bl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-btn-default-toolbar-medium-br { + background-position: right -5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-btn-default-toolbar-medium-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-btn-default-toolbar-medium-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-btn-default-toolbar-medium-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-btn-default-toolbar-medium-bc { + background-position: 0 -1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-btn-default-toolbar-medium-tr, +.x-btn-default-toolbar-medium-br, +.x-btn-default-toolbar-medium-mr { + padding-right: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-btn-default-toolbar-medium-tl, +.x-btn-default-toolbar-medium-bl, +.x-btn-default-toolbar-medium-ml { + padding-left: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-btn-default-toolbar-medium-tc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-btn-default-toolbar-medium-bc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-btn-default-toolbar-medium-tl, +.x-btn-default-toolbar-medium-bl, +.x-btn-default-toolbar-medium-tr, +.x-btn-default-toolbar-medium-br, +.x-btn-default-toolbar-medium-tc, +.x-btn-default-toolbar-medium-bc, +.x-btn-default-toolbar-medium-ml, +.x-btn-default-toolbar-medium-mr { + background-image: url(images/btn/btn-default-toolbar-medium-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-btn-default-toolbar-medium-ml, +.x-btn-default-toolbar-medium-mr { + background-image: url(images/btn/btn-default-toolbar-medium-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-btn-default-toolbar-medium-mc { + padding: 8px 8px 8px 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:445 */ +.x-btn-default-toolbar-medium { + border-color: #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:452 */ +.x-btn-button-default-toolbar-medium { + min-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:457 */ +.x-ie9m .x-btn-button-default-toolbar-medium { + min-height: auto; + height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:464 */ +.x-btn-inner-default-toolbar-medium { + font: 400 14px/18px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #606060; + padding: 0 8px; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:479 */ +.x-btn-icon-right > .x-btn-inner-default-toolbar-medium, +.x-btn-icon-left > .x-btn-inner-default-toolbar-medium { + max-width: calc(100% - 20px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:487 */ +.x-ie10p .x-btn-inner-default-toolbar-medium { + max-width: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:492 */ +.x-btn-icon-el-default-toolbar-medium { + font-size: 20px; + height: 20px; + color: #919191; + line-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:498 */ +.x-btn-icon-left > .x-btn-icon-el-default-toolbar-medium, +.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium { + width: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:503 */ +.x-btn-icon-top > .x-btn-icon-el-default-toolbar-medium, +.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-medium { + min-width: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:525 */ +.x-ie8 .x-btn-icon-el-default-toolbar-medium.x-btn-glyph { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:532 */ +.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-toolbar-medium { + margin-right: 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:543 */ +.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium { + margin-left: 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:554 */ +.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-toolbar-medium { + margin-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:558 */ +.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-medium { + margin-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:564 */ +.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-medium { + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:567 */ +.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium { + margin-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:574 */ +.x-btn-arrow-bottom > .x-btn-button-default-toolbar-medium, +.x-btn-split-bottom > .x-btn-button-default-toolbar-medium { + padding-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:580 */ +.x-btn-wrap-default-toolbar-medium.x-btn-arrow-right:after { + width: 20px; + content: "\f0d7"; + font: 20px/1 FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:607 */ +.x-btn-wrap-default-toolbar-medium.x-btn-arrow-bottom:after { + height: 14px; + content: "\f0d7"; + font: 20px/14px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:634 */ +.x-btn-wrap-default-toolbar-medium.x-btn-split-right > .x-btn-button { + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:642 */ +.x-btn-wrap-default-toolbar-medium.x-btn-split-right > .x-btn-button:after { + border-right: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:647 */ +.x-btn-wrap-default-toolbar-medium.x-btn-split-right:after { + width: 26px; + content: "\f0d7"; + font: 20px/1 FontAwesome; + color: #606060; + padding-left: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:673 */ +.x-btn-wrap-default-toolbar-medium.x-btn-split-bottom { + margin-bottom: -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:675 */ +.x-btn-wrap-default-toolbar-medium.x-btn-split-bottom > .x-btn-button:after { + border-bottom: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:686 */ +.x-btn-wrap-default-toolbar-medium.x-btn-split-bottom:after { + height: 24px; + content: "\f0d7"; + font: 20px/24px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:719 */ +.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-medium { + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:722 */ +.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-medium { + margin-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:727 */ +.x-btn-focus.x-btn-default-toolbar-medium { + background-image: none; + background-color: #f6f6f6; + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:762 */ +.x-btn-default-toolbar-medium .x-btn-arrow-el { + position: absolute; + top: 0; + right: 0; + height: 100%; + width: 34px; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:778 */ +.x-btn-default-toolbar-medium.x-arrow-focus .x-btn-arrow-el { + border: 1px solid #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:785 */ +.x-btn-over.x-btn-default-toolbar-medium { + border-color: #dbdbdb; + background-image: none; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:812 */ +.x-btn-focus.x-btn-over.x-btn-default-toolbar-medium { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:840 */ +.x-btn.x-btn-menu-active.x-btn-default-toolbar-medium, +.x-btn.x-btn-pressed.x-btn-default-toolbar-medium { + border-color: #d2d2d2; + background-image: none; + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:868 */ +.x-btn-focus.x-btn-menu-active.x-btn-default-toolbar-medium, +.x-btn-focus.x-btn-pressed.x-btn-default-toolbar-medium { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:897 */ +.x-btn.x-btn-disabled.x-btn-default-toolbar-medium { + background-image: none; + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:929 */ +.x-btn-focus .x-btn-default-toolbar-medium-tl, +.x-btn-focus .x-btn-default-toolbar-medium-bl, +.x-btn-focus .x-btn-default-toolbar-medium-tr, +.x-btn-focus .x-btn-default-toolbar-medium-br, +.x-btn-focus .x-btn-default-toolbar-medium-tc, +.x-btn-focus .x-btn-default-toolbar-medium-bc { + background-image: url(images/btn/btn-default-toolbar-medium-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:937 */ +.x-btn-focus .x-btn-default-toolbar-medium-ml, +.x-btn-focus .x-btn-default-toolbar-medium-mr { + background-image: url(images/btn/btn-default-toolbar-medium-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:941 */ +.x-btn-focus .x-btn-default-toolbar-medium-mc { + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:953 */ +.x-btn-over .x-btn-default-toolbar-medium-tl, +.x-btn-over .x-btn-default-toolbar-medium-bl, +.x-btn-over .x-btn-default-toolbar-medium-tr, +.x-btn-over .x-btn-default-toolbar-medium-br, +.x-btn-over .x-btn-default-toolbar-medium-tc, +.x-btn-over .x-btn-default-toolbar-medium-bc { + background-image: url(images/btn/btn-default-toolbar-medium-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:961 */ +.x-btn-over .x-btn-default-toolbar-medium-ml, +.x-btn-over .x-btn-default-toolbar-medium-mr { + background-image: url(images/btn/btn-default-toolbar-medium-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:965 */ +.x-btn-over .x-btn-default-toolbar-medium-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:977 */ +.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-tl, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-bl, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-tr, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-br, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-tc, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-bc { + background-image: url(images/btn/btn-default-toolbar-medium-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:985 */ +.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-ml, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-mr { + background-image: url(images/btn/btn-default-toolbar-medium-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:989 */ +.x-btn-focus.x-btn-over .x-btn-default-toolbar-medium-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1003 */ +.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-tl, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-bl, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-tr, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-br, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-tc, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-bc, +.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-tl, +.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-bl, +.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-tr, +.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-br, +.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-tc, +.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-bc { + background-image: url(images/btn/btn-default-toolbar-medium-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1011 */ +.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-ml, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-mr, +.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-ml, +.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-mr { + background-image: url(images/btn/btn-default-toolbar-medium-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1015 */ +.x-btn.x-btn-menu-active .x-btn-default-toolbar-medium-mc, +.x-btn.x-btn-pressed .x-btn-default-toolbar-medium-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1028 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-tl, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-bl, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-tr, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-br, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-tc, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-bc, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-tl, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-bl, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-tr, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-br, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-tc, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-bc { + background-image: url(images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1036 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-ml, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-mr, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-ml, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-mr { + background-image: url(images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1040 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-medium-mc, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-medium-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1053 */ +.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-tl, +.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-bl, +.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-tr, +.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-br, +.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-tc, +.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-bc { + background-image: url(images/btn/btn-default-toolbar-medium-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1061 */ +.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-ml, +.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-mr { + background-image: url(images/btn/btn-default-toolbar-medium-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1065 */ +.x-btn.x-btn-disabled .x-btn-default-toolbar-medium-mc { + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1075 */ +.x-nbr .x-btn-default-toolbar-medium { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1081 */ +.x-btn-disabled.x-btn-default-toolbar-medium { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-btn-default-toolbar-large { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 9px 9px 9px 9px; + border-width: 1px; + border-style: solid; + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-btn-default-toolbar-large-mc { + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-btn-default-toolbar-large { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-btn-default-toolbar-large-frameInfo { + font-family: th-1-1-1-1-1-1-1-1-9-9-9-9; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-btn-default-toolbar-large-tl { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-btn-default-toolbar-large-tr { + background-position: right -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-btn-default-toolbar-large-bl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-btn-default-toolbar-large-br { + background-position: right -5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-btn-default-toolbar-large-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-btn-default-toolbar-large-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-btn-default-toolbar-large-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-btn-default-toolbar-large-bc { + background-position: 0 -1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-btn-default-toolbar-large-tr, +.x-btn-default-toolbar-large-br, +.x-btn-default-toolbar-large-mr { + padding-right: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-btn-default-toolbar-large-tl, +.x-btn-default-toolbar-large-bl, +.x-btn-default-toolbar-large-ml { + padding-left: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-btn-default-toolbar-large-tc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-btn-default-toolbar-large-bc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-btn-default-toolbar-large-tl, +.x-btn-default-toolbar-large-bl, +.x-btn-default-toolbar-large-tr, +.x-btn-default-toolbar-large-br, +.x-btn-default-toolbar-large-tc, +.x-btn-default-toolbar-large-bc, +.x-btn-default-toolbar-large-ml, +.x-btn-default-toolbar-large-mr { + background-image: url(images/btn/btn-default-toolbar-large-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-btn-default-toolbar-large-ml, +.x-btn-default-toolbar-large-mr { + background-image: url(images/btn/btn-default-toolbar-large-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-btn-default-toolbar-large-mc { + padding: 9px 9px 9px 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:445 */ +.x-btn-default-toolbar-large { + border-color: #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:452 */ +.x-btn-button-default-toolbar-large { + min-height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:457 */ +.x-ie9m .x-btn-button-default-toolbar-large { + min-height: auto; + height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:464 */ +.x-btn-inner-default-toolbar-large { + font: 400 16px/20px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #606060; + padding: 0 10px; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:479 */ +.x-btn-icon-right > .x-btn-inner-default-toolbar-large, +.x-btn-icon-left > .x-btn-inner-default-toolbar-large { + max-width: calc(100% - 24px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:487 */ +.x-ie10p .x-btn-inner-default-toolbar-large { + max-width: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:492 */ +.x-btn-icon-el-default-toolbar-large { + font-size: 24px; + height: 24px; + color: #919191; + line-height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:498 */ +.x-btn-icon-left > .x-btn-icon-el-default-toolbar-large, +.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large { + width: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:503 */ +.x-btn-icon-top > .x-btn-icon-el-default-toolbar-large, +.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-large { + min-width: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:525 */ +.x-ie8 .x-btn-icon-el-default-toolbar-large.x-btn-glyph { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:532 */ +.x-btn-text.x-btn-icon-left > .x-btn-icon-el-default-toolbar-large { + margin-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:543 */ +.x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large { + margin-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:554 */ +.x-btn-text.x-btn-icon-top > .x-btn-icon-el-default-toolbar-large { + margin-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:558 */ +.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-default-toolbar-large { + margin-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:564 */ +.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-large { + padding-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:567 */ +.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large { + margin-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:574 */ +.x-btn-arrow-bottom > .x-btn-button-default-toolbar-large, +.x-btn-split-bottom > .x-btn-button-default-toolbar-large { + padding-bottom: 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:580 */ +.x-btn-wrap-default-toolbar-large.x-btn-arrow-right:after { + width: 22px; + content: "\f0d7"; + font: 24px/1 FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:607 */ +.x-btn-wrap-default-toolbar-large.x-btn-arrow-bottom:after { + height: 16px; + content: "\f0d7"; + font: 24px/16px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:634 */ +.x-btn-wrap-default-toolbar-large.x-btn-split-right > .x-btn-button { + padding-right: 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:642 */ +.x-btn-wrap-default-toolbar-large.x-btn-split-right > .x-btn-button:after { + border-right: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:647 */ +.x-btn-wrap-default-toolbar-large.x-btn-split-right:after { + width: 32px; + content: "\f0d7"; + font: 24px/1 FontAwesome; + color: #606060; + padding-left: 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:673 */ +.x-btn-wrap-default-toolbar-large.x-btn-split-bottom { + margin-bottom: -9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:675 */ +.x-btn-wrap-default-toolbar-large.x-btn-split-bottom > .x-btn-button:after { + border-bottom: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:686 */ +.x-btn-wrap-default-toolbar-large.x-btn-split-bottom:after { + height: 28px; + content: "\f0d7"; + font: 24px/28px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:719 */ +.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-default-toolbar-large { + padding-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:722 */ +.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-default-toolbar-large { + margin-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:727 */ +.x-btn-focus.x-btn-default-toolbar-large { + background-image: none; + background-color: #f6f6f6; + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:762 */ +.x-btn-default-toolbar-large .x-btn-arrow-el { + position: absolute; + top: 0; + right: 0; + height: 100%; + width: 41px; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:778 */ +.x-btn-default-toolbar-large.x-arrow-focus .x-btn-arrow-el { + border: 1px solid #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:785 */ +.x-btn-over.x-btn-default-toolbar-large { + border-color: #dbdbdb; + background-image: none; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:812 */ +.x-btn-focus.x-btn-over.x-btn-default-toolbar-large { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:840 */ +.x-btn.x-btn-menu-active.x-btn-default-toolbar-large, +.x-btn.x-btn-pressed.x-btn-default-toolbar-large { + border-color: #d2d2d2; + background-image: none; + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:868 */ +.x-btn-focus.x-btn-menu-active.x-btn-default-toolbar-large, +.x-btn-focus.x-btn-pressed.x-btn-default-toolbar-large { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:897 */ +.x-btn.x-btn-disabled.x-btn-default-toolbar-large { + background-image: none; + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:929 */ +.x-btn-focus .x-btn-default-toolbar-large-tl, +.x-btn-focus .x-btn-default-toolbar-large-bl, +.x-btn-focus .x-btn-default-toolbar-large-tr, +.x-btn-focus .x-btn-default-toolbar-large-br, +.x-btn-focus .x-btn-default-toolbar-large-tc, +.x-btn-focus .x-btn-default-toolbar-large-bc { + background-image: url(images/btn/btn-default-toolbar-large-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:937 */ +.x-btn-focus .x-btn-default-toolbar-large-ml, +.x-btn-focus .x-btn-default-toolbar-large-mr { + background-image: url(images/btn/btn-default-toolbar-large-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:941 */ +.x-btn-focus .x-btn-default-toolbar-large-mc { + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:953 */ +.x-btn-over .x-btn-default-toolbar-large-tl, +.x-btn-over .x-btn-default-toolbar-large-bl, +.x-btn-over .x-btn-default-toolbar-large-tr, +.x-btn-over .x-btn-default-toolbar-large-br, +.x-btn-over .x-btn-default-toolbar-large-tc, +.x-btn-over .x-btn-default-toolbar-large-bc { + background-image: url(images/btn/btn-default-toolbar-large-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:961 */ +.x-btn-over .x-btn-default-toolbar-large-ml, +.x-btn-over .x-btn-default-toolbar-large-mr { + background-image: url(images/btn/btn-default-toolbar-large-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:965 */ +.x-btn-over .x-btn-default-toolbar-large-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:977 */ +.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-tl, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-bl, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-tr, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-br, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-tc, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-bc { + background-image: url(images/btn/btn-default-toolbar-large-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:985 */ +.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-ml, +.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-mr { + background-image: url(images/btn/btn-default-toolbar-large-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:989 */ +.x-btn-focus.x-btn-over .x-btn-default-toolbar-large-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1003 */ +.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-tl, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-bl, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-tr, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-br, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-tc, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-bc, +.x-btn.x-btn-pressed .x-btn-default-toolbar-large-tl, +.x-btn.x-btn-pressed .x-btn-default-toolbar-large-bl, +.x-btn.x-btn-pressed .x-btn-default-toolbar-large-tr, +.x-btn.x-btn-pressed .x-btn-default-toolbar-large-br, +.x-btn.x-btn-pressed .x-btn-default-toolbar-large-tc, +.x-btn.x-btn-pressed .x-btn-default-toolbar-large-bc { + background-image: url(images/btn/btn-default-toolbar-large-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1011 */ +.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-ml, +.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-mr, +.x-btn.x-btn-pressed .x-btn-default-toolbar-large-ml, +.x-btn.x-btn-pressed .x-btn-default-toolbar-large-mr { + background-image: url(images/btn/btn-default-toolbar-large-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1015 */ +.x-btn.x-btn-menu-active .x-btn-default-toolbar-large-mc, +.x-btn.x-btn-pressed .x-btn-default-toolbar-large-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1028 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-tl, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-bl, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-tr, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-br, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-tc, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-bc, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-tl, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-bl, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-tr, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-br, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-tc, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-bc { + background-image: url(images/btn/btn-default-toolbar-large-focus-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1036 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-ml, +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-mr, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-ml, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-mr { + background-image: url(images/btn/btn-default-toolbar-large-focus-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1040 */ +.x-btn-focus.x-btn-menu-active .x-btn-default-toolbar-large-mc, +.x-btn-focus.x-btn-pressed .x-btn-default-toolbar-large-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1053 */ +.x-btn.x-btn-disabled .x-btn-default-toolbar-large-tl, +.x-btn.x-btn-disabled .x-btn-default-toolbar-large-bl, +.x-btn.x-btn-disabled .x-btn-default-toolbar-large-tr, +.x-btn.x-btn-disabled .x-btn-default-toolbar-large-br, +.x-btn.x-btn-disabled .x-btn-default-toolbar-large-tc, +.x-btn.x-btn-disabled .x-btn-default-toolbar-large-bc { + background-image: url(images/btn/btn-default-toolbar-large-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1061 */ +.x-btn.x-btn-disabled .x-btn-default-toolbar-large-ml, +.x-btn.x-btn-disabled .x-btn-default-toolbar-large-mr { + background-image: url(images/btn/btn-default-toolbar-large-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1065 */ +.x-btn.x-btn-disabled .x-btn-default-toolbar-large-mc { + background-color: #f6f6f6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1075 */ +.x-nbr .x-btn-default-toolbar-large { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1081 */ +.x-btn-disabled.x-btn-default-toolbar-large { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:1 */ +.x-tool { + cursor: pointer; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:5 */ +.x-tool-img { + overflow: hidden; + width: 16px; + height: 16px; + background-image: url(images/tools/tool-sprites.png); + margin: 0; + color: #fff; + text-align: center; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; + opacity: 0.8; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:19 */ +.x-tool-over .x-tool-img { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + opacity: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:24 */ +.x-tool-pressed .x-tool-img { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; + opacity: 0.8; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:30 */ +.x-tool-placeholder { + visibility: hidden; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:34 */ +.x-tool-close { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-close:before { + content: "\f00d"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:43 */ +.x-tool-minimize { + font: 16px/1 ExtJS; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-minimize:before { + content: "\e608"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:52 */ +.x-tool-maximize { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-maximize:before { + content: "\f065"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:61 */ +.x-tool-restore { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-restore:before { + content: "\f066"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:70 */ +.x-tool-toggle { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-toggle:before { + content: "\f077"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:78 */ +.x-panel-collapsed .x-tool-toggle { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-panel-collapsed .x-tool-toggle:before { + content: "\f078"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:88 */ +.x-tool-gear { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-gear:before { + content: "\f013"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:97 */ +.x-tool-prev { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-prev:before { + content: "\f053"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:106 */ +.x-tool-next { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-next:before { + content: "\f054"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:115 */ +.x-tool-pin { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-pin:before { + content: "\f08d"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:124 */ +.x-tool-unpin { + font: 16px/1 ExtJS; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-unpin:before { + content: "\e611"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:133 */ +.x-tool-right { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-right:before { + content: "\f0da"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:142 */ +.x-tool-left { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-left:before { + content: "\f0d9"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:151 */ +.x-tool-down { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-down:before { + content: "\f0d7"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:160 */ +.x-tool-up { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-up:before { + content: "\f0d8"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:169 */ +.x-tool-refresh { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-refresh:before { + content: "\f021"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:178 */ +.x-tool-plus { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-plus:before { + content: "\f067"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:187 */ +.x-tool-minus { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-minus:before { + content: "\f068"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:196 */ +.x-tool-search { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-search:before { + content: "\f002"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:205 */ +.x-tool-save { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-save:before { + content: "\f00c"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:214 */ +.x-tool-help { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-help:before { + content: "\f128"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:223 */ +.x-tool-print { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-print:before { + content: "\f02f"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:232 */ +.x-tool-expand { + font: 16px/1 ExtJS; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-expand:before { + content: "\e606"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:241 */ +.x-tool-collapse { + font: 16px/1 ExtJS; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-collapse:before { + content: "\e600"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:250 */ +.x-tool-resize { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-resize:before { + content: "\f07e"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:259 */ +.x-tool-move { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-move:before { + content: "\f047"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:268 */ +.x-tool-expand-bottom { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-expand-bottom:before { + content: "\f0d7"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:277 */ +.x-tool-collapse-bottom { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-collapse-bottom:before { + content: "\f0d7"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:286 */ +.x-tool-expand-top { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-expand-top:before { + content: "\f0d8"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:295 */ +.x-tool-collapse-top { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-collapse-top:before { + content: "\f0d8"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:304 */ +.x-tool-expand-left { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-expand-left:before { + content: "\f0d9"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:313 */ +.x-tool-collapse-left { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-collapse-left:before { + content: "\f0d9"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:322 */ +.x-tool-expand-right { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-expand-right:before { + content: "\f0da"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Tool.scss:331 */ +.x-tool-collapse-right { + font: 16px/1 FontAwesome; + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tool-collapse-right:before { + content: "\f0da"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Header.scss:1 */ +.x-header-draggable, +.x-header-ghost { + cursor: move; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Header.scss:6 */ +.x-header-text { + white-space: nowrap; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:22 */ +.x-collapse-el { + cursor: pointer; + color: #919191; + display: table; + table-layout: fixed; + background-color: #e0e0e0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:31 */ +.x-collapse-el:before { + display: table-cell; + vertical-align: middle; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:46 */ +.x-layout-split-left { + font: 16px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-layout-split-left:before { + content: "\f0d9"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:55 */ +.x-layout-split-right { + font: 16px/1 FontAwesome; + padding: 0 0 0 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-layout-split-right:before { + content: "\f0da"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:86 */ +.x-layout-split-top { + font: 16px/1 FontAwesome; + padding: 0 0 2px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-layout-split-top:before { + content: "\f0d8"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:95 */ +.x-layout-split-bottom { + font: 16px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-layout-split-bottom:before { + content: "\f0d7"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:105 */ +.x-splitter-collapsed .x-layout-split-left { + font: 16px/1 FontAwesome; + padding: 0 0 0 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-splitter-collapsed .x-layout-split-left:before { + content: "\f0da"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:114 */ +.x-splitter-collapsed .x-layout-split-right { + font: 16px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-splitter-collapsed .x-layout-split-right:before { + content: "\f0d9"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:145 */ +.x-splitter-collapsed .x-layout-split-top { + font: 16px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-splitter-collapsed .x-layout-split-top:before { + content: "\f0d7"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:154 */ +.x-splitter-collapsed .x-layout-split-bottom { + font: 16px/1 FontAwesome; + padding: 0 0 2px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-splitter-collapsed .x-layout-split-bottom:before { + content: "\f0d8"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:164 */ +.x-splitter-active { + background-color: #b4b4b4; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; + opacity: 0.8; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:168 */ +.x-splitter-active .x-collapse-el { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; + opacity: 0.3; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:173 */ +.x-layout-split-left, +.x-layout-split-right { + top: 50%; + margin-top: -24px; + width: 10px; + height: 48px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:181 */ +.x-layout-split-top, +.x-layout-split-bottom { + left: 50%; + width: 48px; + height: 10px; + margin-left: -24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Splitter.scss:193 */ +.x-layout-split-top:before, +.x-layout-split-bottom:before { + width: 100%; + line-height: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:39 */ +.x-splitter-focus:after { + position: absolute; + content: ' '; + top: 1px; + right: 1px; + bottom: 1px; + left: 1px; + border: 1px solid #4c82b1; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:232 */ +.x-toolbar-default { + padding: 6px 0 6px 8px; + border-style: solid; + border-color: #d0d0d0; + border-width: 1px; + background-image: none; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:248 */ +.x-toolbar-default .x-tool-img { + color: #919191; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:263 */ +.x-toolbar-default .x-toolbar-item { + margin: 0 8px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:273 */ +.x-toolbar-default .x-toolbar-separator-horizontal { + margin: 0 8px 0 0; + height: 14px; + border-style: solid; + border-width: 0 0 0 1px; + border-left-color: #d0d0d0; + border-right-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:282 */ +.x-toolbar-default .x-box-menu-after { + margin: 0 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:287 */ +.x-toolbar-default-vertical { + padding: 6px 8px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:296 */ +.x-toolbar-default-vertical .x-toolbar-item { + margin: 0 0 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:305 */ +.x-toolbar-default-vertical .x-toolbar-separator-vertical { + margin: 0 5px 6px; + border-style: solid none; + border-width: 1px 0 0; + border-top-color: #d0d0d0; + border-bottom-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:313 */ +.x-toolbar-default-vertical .x-box-menu-after { + margin: 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:328 */ +.x-toolbar-text-default { + padding: 0 4px; + color: #4b4c4c; + font: 300 13px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:334 */ +.x-toolbar-spacer-default { + width: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:170 */ +.x-toolbar-default-scroller .x-box-scroller-body-horizontal { + margin-left: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:176 */ +.x-toolbar-default-vertical-scroller .x-box-scroller-body-vertical { + margin-top: 26px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:181 */ +.x-box-scroller-toolbar-default { + cursor: pointer; + color: #919191; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + opacity: 0.6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:191 */ +.x-box-scroller-toolbar-default.x-box-scroller-hover { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; + opacity: 0.8; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:197 */ +.x-box-scroller-toolbar-default.x-box-scroller-pressed { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + opacity: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:203 */ +.x-box-scroller-toolbar-default.x-box-scroller-disabled { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)"; + opacity: 0.25; + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:213 */ +.x-box-scroller-toolbar-default.x-box-scroller-left, +.x-box-scroller-toolbar-default.x-box-scroller-right { + width: 24px; + height: 24px; + top: 50%; + margin-top: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:240 */ +.x-box-scroller-toolbar-default.x-box-scroller-left { + margin-left: 4px; + margin-right: 4px; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-toolbar-default.x-box-scroller-left:before { + content: "\f053"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:265 */ +.x-box-scroller-toolbar-default.x-box-scroller-right { + margin-left: 4px; + margin-right: 4px; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-toolbar-default.x-box-scroller-right:before { + content: "\f054"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:292 */ +.x-box-scroller-toolbar-default.x-box-scroller-top, +.x-box-scroller-toolbar-default.x-box-scroller-bottom { + height: 24px; + width: 24px; + left: 50%; + margin-left: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:319 */ +.x-box-scroller-toolbar-default.x-box-scroller-top { + margin-top: 4px; + margin-right: 0; + margin-bottom: 4px; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-toolbar-default.x-box-scroller-top:before { + content: "\f077"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:344 */ +.x-box-scroller-toolbar-default.x-box-scroller-bottom { + margin-top: 4px; + margin-right: 0; + margin-bottom: 4px; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-toolbar-default.x-box-scroller-bottom:before { + content: "\f078"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:376 */ +.x-ie8 .x-box-scroller-toolbar-default { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:232 */ +.x-toolbar-footer { + padding: 6px 0 6px 6px; + border-style: solid; + border-color: #d0d0d0; + border-width: 0; + background-image: none; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:248 */ +.x-toolbar-footer .x-tool-img { + color: #919191; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:263 */ +.x-toolbar-footer .x-toolbar-item { + margin: 0 6px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:273 */ +.x-toolbar-footer .x-toolbar-separator-horizontal { + margin: 0 8px 0 0; + height: 14px; + border-style: solid; + border-width: 0 0 0 1px; + border-left-color: #d0d0d0; + border-right-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:282 */ +.x-toolbar-footer .x-box-menu-after { + margin: 0 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:287 */ +.x-toolbar-footer-vertical { + padding: 6px 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:296 */ +.x-toolbar-footer-vertical .x-toolbar-item { + margin: 0 0 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:305 */ +.x-toolbar-footer-vertical .x-toolbar-separator-vertical { + margin: 0 5px 6px; + border-style: solid none; + border-width: 1px 0 0; + border-top-color: #d0d0d0; + border-bottom-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:313 */ +.x-toolbar-footer-vertical .x-box-menu-after { + margin: 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:328 */ +.x-toolbar-text-footer { + padding: 0 4px; + color: #4b4c4c; + font: 300 13px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:334 */ +.x-toolbar-spacer-footer { + width: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:170 */ +.x-toolbar-footer-scroller .x-box-scroller-body-horizontal { + margin-left: 26px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:176 */ +.x-toolbar-footer-vertical-scroller .x-box-scroller-body-vertical { + margin-top: 26px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:181 */ +.x-box-scroller-toolbar-footer { + cursor: pointer; + color: #919191; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + opacity: 0.6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:191 */ +.x-box-scroller-toolbar-footer.x-box-scroller-hover { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; + opacity: 0.8; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:197 */ +.x-box-scroller-toolbar-footer.x-box-scroller-pressed { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + opacity: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:203 */ +.x-box-scroller-toolbar-footer.x-box-scroller-disabled { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)"; + opacity: 0.25; + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:213 */ +.x-box-scroller-toolbar-footer.x-box-scroller-left, +.x-box-scroller-toolbar-footer.x-box-scroller-right { + width: 24px; + height: 24px; + top: 50%; + margin-top: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:240 */ +.x-box-scroller-toolbar-footer.x-box-scroller-left { + margin-left: 4px; + margin-right: 4px; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-toolbar-footer.x-box-scroller-left:before { + content: "\f053"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:265 */ +.x-box-scroller-toolbar-footer.x-box-scroller-right { + margin-left: 4px; + margin-right: 4px; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-toolbar-footer.x-box-scroller-right:before { + content: "\f054"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Toolbar.scss:376 */ +.x-ie8 .x-box-scroller-toolbar-footer { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/dd/StatusProxy.scss:1 */ +.x-dd-drag-proxy { + color: #404040; + font: 300 13px/17px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + border: 1px solid #d0d0d0; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/dd/StatusProxy.scss:8 */ +.x-dd-drag-ghost, +.x-dd-drop-icon { + padding: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/dd/StatusProxy.scss:19 */ +.x-dd-drag-ghost { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/dd/StatusProxy.scss:30 */ +.x-dd-drop-ok .x-dd-drop-icon { + font: 16px/1 FontAwesome; + color: #a4cf6d; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-dd-drop-ok .x-dd-drop-icon:before { + content: "\f058"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/dd/StatusProxy.scss:38 */ +.x-dd-drop-ok-add .x-dd-drop-icon { + font: 16px/1 FontAwesome; + color: #a4cf6d; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-dd-drop-ok-add .x-dd-drop-icon:before { + content: "\f058"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/dd/StatusProxy.scss:47 */ +.x-dd-drop-nodrop div.x-dd-drop-icon { + font: 16px/1 FontAwesome; + color: #d9705d; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-dd-drop-nodrop div.x-dd-drop-icon:before { + content: "\f057"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:899 */ +.x-panel-ghost { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:276 */ +.x-panel-default { + border-color: #5fa2dd; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:282 */ +.x-panel-header-default { + font-size: 16px; + border: 1px solid #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:289 */ +.x-panel-header-default .x-tool-img { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:306 */ +.x-panel-header-default-horizontal { + padding: 11px 15px 12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:310 */ +.x-panel-header-default-horizontal .x-panel-header-default-tab-bar { + margin-top: -11px; + margin-bottom: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:318 */ +.x-panel-header-default-horizontal.x-header-noborder { + padding: 12px 16px 12px 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:322 */ +.x-panel-header-default-horizontal.x-header-noborder .x-panel-header-default-tab-bar { + margin-top: -12px; + margin-bottom: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:330 */ +.x-panel-header-default-vertical { + padding: 15px 11px 15px 12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:334 */ +.x-panel-header-default-vertical .x-panel-header-default-tab-bar { + margin-right: -11px; + margin-left: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:342 */ +.x-panel-header-default-vertical.x-header-noborder { + padding: 16px 12px 16px 12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:346 */ +.x-panel-header-default-vertical.x-header-noborder .x-panel-header-default-tab-bar { + margin-right: -12px; + margin-left: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:380 */ +.x-panel-header-title-default { + color: #f0f0f0; + font-size: 16px; + font-weight: 400; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + line-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:393 */ +.x-panel-header-title-default > .x-title-text-default { + text-transform: none; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:440 */ +.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-top { + height: 24px; + padding-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:445 */ +.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-right { + width: 24px; + padding-left: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:457 */ +.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-bottom { + height: 24px; + padding-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:462 */ +.x-panel-header-title-default > .x-title-icon-wrap-default.x-title-icon-left { + width: 24px; + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:474 */ +.x-panel-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default { + width: 16px; + height: 16px; + font-size: 16px; + color: #f0f0f0; + background-position: center center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:493 */ +.x-ie8 .x-panel-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default { + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:503 */ +.x-panel-body-default { + background: #fff; + border-color: #d0d0d0; + color: #404040; + font-size: 13px; + font-weight: 300; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + border-width: 1px; + border-style: solid; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:667 */ +.x-panel-header-default { + background-image: none; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:671 */ +.x-panel-header-default-vertical { + background-image: none; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:729 */ +.x-panel .x-panel-header-default-collapsed-border-top { + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:733 */ +.x-panel .x-panel-header-default-collapsed-border-right { + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:737 */ +.x-panel .x-panel-header-default-collapsed-border-bottom { + border-top-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:741 */ +.x-panel .x-panel-header-default-collapsed-border-left { + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:777 */ +.x-panel-header-default-horizontal .x-tool-after-title { + margin: 0 0 0 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:787 */ +.x-panel-header-default-horizontal .x-tool-before-title { + margin: 0 6px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:799 */ +.x-panel-header-default-vertical .x-tool-after-title { + margin: 6px 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:809 */ +.x-panel-header-default-vertical .x-tool-before-title { + margin: 0 0 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:821 */ +.x-panel-header-default .x-tool-focus { + outline: 1px solid #fff; + outline-offset: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:59 */ +.x-ie8 .x-panel-header-default .x-tool-focus { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:39 */ +.x-ie8 .x-panel-header-default .x-tool-focus:after { + position: absolute; + content: ' '; + top: -2px; + right: -2px; + bottom: -2px; + left: -2px; + border: 1px solid #fff; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:850 */ +.x-panel-default-resizable .x-panel-handle { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + opacity: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:2 */ +.x-panel-default-outer-border-l { + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:6 */ +.x-panel-default-outer-border-b { + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:10 */ +.x-panel-default-outer-border-bl { + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:16 */ +.x-panel-default-outer-border-r { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:20 */ +.x-panel-default-outer-border-rl { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:26 */ +.x-panel-default-outer-border-rb { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:32 */ +.x-panel-default-outer-border-rbl { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:40 */ +.x-panel-default-outer-border-t { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:44 */ +.x-panel-default-outer-border-tl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:50 */ +.x-panel-default-outer-border-tb { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:56 */ +.x-panel-default-outer-border-tbl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:64 */ +.x-panel-default-outer-border-tr { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:70 */ +.x-panel-default-outer-border-trl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:78 */ +.x-panel-default-outer-border-trb { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:86 */ +.x-panel-default-outer-border-trbl { + border-color: #5fa2dd !important; + border-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:276 */ +.x-panel-default-framed { + border-color: #5fa2dd; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:282 */ +.x-panel-header-default-framed { + font-size: 16px; + border: 2px solid #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:289 */ +.x-panel-header-default-framed .x-tool-img { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:306 */ +.x-panel-header-default-framed-horizontal { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:310 */ +.x-panel-header-default-framed-horizontal .x-panel-header-default-framed-tab-bar { + margin-top: -10px; + margin-bottom: -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:318 */ +.x-panel-header-default-framed-horizontal.x-header-noborder { + padding: 12px 16px 10px 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:322 */ +.x-panel-header-default-framed-horizontal.x-header-noborder .x-panel-header-default-framed-tab-bar { + margin-top: -12px; + margin-bottom: -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:330 */ +.x-panel-header-default-framed-vertical { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:334 */ +.x-panel-header-default-framed-vertical .x-panel-header-default-framed-tab-bar { + margin-right: -10px; + margin-left: -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:342 */ +.x-panel-header-default-framed-vertical.x-header-noborder { + padding: 16px 12px 16px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:346 */ +.x-panel-header-default-framed-vertical.x-header-noborder .x-panel-header-default-framed-tab-bar { + margin-right: -12px; + margin-left: -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:380 */ +.x-panel-header-title-default-framed { + color: #f0f0f0; + font-size: 16px; + font-weight: 400; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + line-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:393 */ +.x-panel-header-title-default-framed > .x-title-text-default-framed { + text-transform: none; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:440 */ +.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-top { + height: 24px; + padding-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:445 */ +.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-right { + width: 24px; + padding-left: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:457 */ +.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-bottom { + height: 24px; + padding-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:462 */ +.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed.x-title-icon-left { + width: 24px; + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:474 */ +.x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed > .x-title-icon-default-framed { + width: 16px; + height: 16px; + font-size: 16px; + color: #f0f0f0; + background-position: center center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:493 */ +.x-ie8 .x-panel-header-title-default-framed > .x-title-icon-wrap-default-framed > .x-title-icon-default-framed { + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:503 */ +.x-panel-body-default-framed { + background: #fff; + border-color: #d0d0d0; + color: #404040; + font-size: 13px; + font-weight: 300; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + border-width: 1px; + border-style: solid; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-default-framed { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 0 0 0 0; + border-width: 2px; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-default-framed-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-default-framed { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-default-framed-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-0px-0px-0px-0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-default-framed-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-default-framed-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-default-framed-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-default-framed-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-default-framed-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-default-framed-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-default-framed-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-default-framed-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-default-framed-tr, +.x-panel-default-framed-br, +.x-panel-default-framed-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-default-framed-tl, +.x-panel-default-framed-bl, +.x-panel-default-framed-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-default-framed-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-default-framed-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-default-framed-tl, +.x-panel-default-framed-bl, +.x-panel-default-framed-tr, +.x-panel-default-framed-br, +.x-panel-default-framed-tc, +.x-panel-default-framed-bc, +.x-panel-default-framed-ml, +.x-panel-default-framed-mr { + background-image: url(images/panel/panel-default-framed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-default-framed-ml, +.x-panel-default-framed-mr { + background-image: url(images/panel/panel-default-framed-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-default-framed-mc { + padding: 0px 0px 0px 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-default-framed-top { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 2px 2px 0 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-default-framed-top-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-default-framed-top { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-default-framed-top-frameInfo { + font-family: dh-2-2-0-2-2-2-0-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-default-framed-top-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-default-framed-top-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-default-framed-top-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-default-framed-top-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-default-framed-top-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-default-framed-top-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-default-framed-top-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-default-framed-top-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-default-framed-top-tr, +.x-panel-header-default-framed-top-br, +.x-panel-header-default-framed-top-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-default-framed-top-tl, +.x-panel-header-default-framed-top-bl, +.x-panel-header-default-framed-top-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-default-framed-top-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-default-framed-top-bc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-default-framed-top-tl, +.x-panel-header-default-framed-top-bl, +.x-panel-header-default-framed-top-tr, +.x-panel-header-default-framed-top-br, +.x-panel-header-default-framed-top-tc, +.x-panel-header-default-framed-top-bc, +.x-panel-header-default-framed-top-ml, +.x-panel-header-default-framed-top-mr { + background-image: url(images/panel-header/panel-header-default-framed-top-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-default-framed-top-ml, +.x-panel-header-default-framed-top-mr { + background-image: url(images/panel-header/panel-header-default-framed-top-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-default-framed-top-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-default-framed-right { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px 2px 2px 0; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-default-framed-right-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-default-framed-right { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-default-framed-right-frameInfo { + font-family: dh-2-2-2-0-2-2-2-0-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-default-framed-right-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-default-framed-right-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-default-framed-right-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-default-framed-right-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-default-framed-right-ml { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-default-framed-right-mr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-default-framed-right-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-default-framed-right-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-default-framed-right-tr, +.x-panel-header-default-framed-right-br, +.x-panel-header-default-framed-right-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-default-framed-right-tl, +.x-panel-header-default-framed-right-bl, +.x-panel-header-default-framed-right-ml { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-default-framed-right-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-default-framed-right-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-default-framed-right-tl, +.x-panel-header-default-framed-right-bl, +.x-panel-header-default-framed-right-tr, +.x-panel-header-default-framed-right-br, +.x-panel-header-default-framed-right-tc, +.x-panel-header-default-framed-right-bc, +.x-panel-header-default-framed-right-ml, +.x-panel-header-default-framed-right-mr { + background-image: url(images/panel-header/panel-header-default-framed-right-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-default-framed-right-ml, +.x-panel-header-default-framed-right-mr { + background-image: url(images/panel-header/panel-header-default-framed-right-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-default-framed-right-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-default-framed-bottom { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 0 2px 2px 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-default-framed-bottom-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-default-framed-bottom { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-default-framed-bottom-frameInfo { + font-family: dh-0-2-2-2-0-2-2-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-default-framed-bottom-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-default-framed-bottom-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-default-framed-bottom-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-default-framed-bottom-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-default-framed-bottom-ml { + background-position: 0 bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-default-framed-bottom-mr { + background-position: right bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-default-framed-bottom-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-default-framed-bottom-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-default-framed-bottom-tr, +.x-panel-header-default-framed-bottom-br, +.x-panel-header-default-framed-bottom-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-default-framed-bottom-tl, +.x-panel-header-default-framed-bottom-bl, +.x-panel-header-default-framed-bottom-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-default-framed-bottom-tc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-default-framed-bottom-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-default-framed-bottom-tl, +.x-panel-header-default-framed-bottom-bl, +.x-panel-header-default-framed-bottom-tr, +.x-panel-header-default-framed-bottom-br, +.x-panel-header-default-framed-bottom-tc, +.x-panel-header-default-framed-bottom-bc, +.x-panel-header-default-framed-bottom-ml, +.x-panel-header-default-framed-bottom-mr { + background-image: url(images/panel-header/panel-header-default-framed-bottom-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-default-framed-bottom-ml, +.x-panel-header-default-framed-bottom-mr { + background-image: url(images/panel-header/panel-header-default-framed-bottom-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-default-framed-bottom-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-default-framed-left { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px 0 2px 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-default-framed-left-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-default-framed-left { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-default-framed-left-frameInfo { + font-family: dh-2-0-2-2-2-0-2-2-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-default-framed-left-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-default-framed-left-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-default-framed-left-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-default-framed-left-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-default-framed-left-ml { + background-position: left 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-default-framed-left-mr { + background-position: left 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-default-framed-left-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-default-framed-left-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-default-framed-left-tr, +.x-panel-header-default-framed-left-br, +.x-panel-header-default-framed-left-mr { + padding-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-default-framed-left-tl, +.x-panel-header-default-framed-left-bl, +.x-panel-header-default-framed-left-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-default-framed-left-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-default-framed-left-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-default-framed-left-tl, +.x-panel-header-default-framed-left-bl, +.x-panel-header-default-framed-left-tr, +.x-panel-header-default-framed-left-br, +.x-panel-header-default-framed-left-tc, +.x-panel-header-default-framed-left-bc, +.x-panel-header-default-framed-left-ml, +.x-panel-header-default-framed-left-mr { + background-image: url(images/panel-header/panel-header-default-framed-left-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-default-framed-left-ml, +.x-panel-header-default-framed-left-mr { + background-image: url(images/panel-header/panel-header-default-framed-left-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-default-framed-left-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-default-framed-collapsed-top { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-default-framed-collapsed-top-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-default-framed-collapsed-top { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-default-framed-collapsed-top-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-default-framed-collapsed-top-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-default-framed-collapsed-top-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-default-framed-collapsed-top-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-default-framed-collapsed-top-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-default-framed-collapsed-top-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-default-framed-collapsed-top-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-default-framed-collapsed-top-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-default-framed-collapsed-top-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-default-framed-collapsed-top-tr, +.x-panel-header-default-framed-collapsed-top-br, +.x-panel-header-default-framed-collapsed-top-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-default-framed-collapsed-top-tl, +.x-panel-header-default-framed-collapsed-top-bl, +.x-panel-header-default-framed-collapsed-top-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-default-framed-collapsed-top-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-default-framed-collapsed-top-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-default-framed-collapsed-top-tl, +.x-panel-header-default-framed-collapsed-top-bl, +.x-panel-header-default-framed-collapsed-top-tr, +.x-panel-header-default-framed-collapsed-top-br, +.x-panel-header-default-framed-collapsed-top-tc, +.x-panel-header-default-framed-collapsed-top-bc, +.x-panel-header-default-framed-collapsed-top-ml, +.x-panel-header-default-framed-collapsed-top-mr { + background-image: url(images/panel-header/panel-header-default-framed-collapsed-top-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-default-framed-collapsed-top-ml, +.x-panel-header-default-framed-collapsed-top-mr { + background-image: url(images/panel-header/panel-header-default-framed-collapsed-top-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-default-framed-collapsed-top-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-default-framed-collapsed-right { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-default-framed-collapsed-right-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-default-framed-collapsed-right { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-default-framed-collapsed-right-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-default-framed-collapsed-right-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-default-framed-collapsed-right-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-default-framed-collapsed-right-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-default-framed-collapsed-right-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-default-framed-collapsed-right-ml { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-default-framed-collapsed-right-mr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-default-framed-collapsed-right-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-default-framed-collapsed-right-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-default-framed-collapsed-right-tr, +.x-panel-header-default-framed-collapsed-right-br, +.x-panel-header-default-framed-collapsed-right-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-default-framed-collapsed-right-tl, +.x-panel-header-default-framed-collapsed-right-bl, +.x-panel-header-default-framed-collapsed-right-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-default-framed-collapsed-right-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-default-framed-collapsed-right-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-default-framed-collapsed-right-tl, +.x-panel-header-default-framed-collapsed-right-bl, +.x-panel-header-default-framed-collapsed-right-tr, +.x-panel-header-default-framed-collapsed-right-br, +.x-panel-header-default-framed-collapsed-right-tc, +.x-panel-header-default-framed-collapsed-right-bc, +.x-panel-header-default-framed-collapsed-right-ml, +.x-panel-header-default-framed-collapsed-right-mr { + background-image: url(images/panel-header/panel-header-default-framed-collapsed-right-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-default-framed-collapsed-right-ml, +.x-panel-header-default-framed-collapsed-right-mr { + background-image: url(images/panel-header/panel-header-default-framed-collapsed-right-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-default-framed-collapsed-right-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-default-framed-collapsed-bottom { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-default-framed-collapsed-bottom-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-default-framed-collapsed-bottom { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-default-framed-collapsed-bottom-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-default-framed-collapsed-bottom-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-default-framed-collapsed-bottom-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-default-framed-collapsed-bottom-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-default-framed-collapsed-bottom-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-default-framed-collapsed-bottom-ml { + background-position: 0 bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-default-framed-collapsed-bottom-mr { + background-position: right bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-default-framed-collapsed-bottom-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-default-framed-collapsed-bottom-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-default-framed-collapsed-bottom-tr, +.x-panel-header-default-framed-collapsed-bottom-br, +.x-panel-header-default-framed-collapsed-bottom-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-default-framed-collapsed-bottom-tl, +.x-panel-header-default-framed-collapsed-bottom-bl, +.x-panel-header-default-framed-collapsed-bottom-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-default-framed-collapsed-bottom-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-default-framed-collapsed-bottom-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-default-framed-collapsed-bottom-tl, +.x-panel-header-default-framed-collapsed-bottom-bl, +.x-panel-header-default-framed-collapsed-bottom-tr, +.x-panel-header-default-framed-collapsed-bottom-br, +.x-panel-header-default-framed-collapsed-bottom-tc, +.x-panel-header-default-framed-collapsed-bottom-bc, +.x-panel-header-default-framed-collapsed-bottom-ml, +.x-panel-header-default-framed-collapsed-bottom-mr { + background-image: url(images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-default-framed-collapsed-bottom-ml, +.x-panel-header-default-framed-collapsed-bottom-mr { + background-image: url(images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-default-framed-collapsed-bottom-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-default-framed-collapsed-left { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-default-framed-collapsed-left-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-default-framed-collapsed-left { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-default-framed-collapsed-left-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-default-framed-collapsed-left-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-default-framed-collapsed-left-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-default-framed-collapsed-left-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-default-framed-collapsed-left-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-default-framed-collapsed-left-ml { + background-position: left 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-default-framed-collapsed-left-mr { + background-position: left 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-default-framed-collapsed-left-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-default-framed-collapsed-left-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-default-framed-collapsed-left-tr, +.x-panel-header-default-framed-collapsed-left-br, +.x-panel-header-default-framed-collapsed-left-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-default-framed-collapsed-left-tl, +.x-panel-header-default-framed-collapsed-left-bl, +.x-panel-header-default-framed-collapsed-left-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-default-framed-collapsed-left-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-default-framed-collapsed-left-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-default-framed-collapsed-left-tl, +.x-panel-header-default-framed-collapsed-left-bl, +.x-panel-header-default-framed-collapsed-left-tr, +.x-panel-header-default-framed-collapsed-left-br, +.x-panel-header-default-framed-collapsed-left-tc, +.x-panel-header-default-framed-collapsed-left-bc, +.x-panel-header-default-framed-collapsed-left-ml, +.x-panel-header-default-framed-collapsed-left-mr { + background-image: url(images/panel-header/panel-header-default-framed-collapsed-left-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-default-framed-collapsed-left-ml, +.x-panel-header-default-framed-collapsed-left-mr { + background-image: url(images/panel-header/panel-header-default-framed-collapsed-left-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-default-framed-collapsed-left-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:629 */ +.x-panel .x-panel-header-default-framed-top { + border-bottom-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:633 */ +.x-panel .x-panel-header-default-framed-right { + border-left-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:637 */ +.x-panel .x-panel-header-default-framed-bottom { + border-top-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:641 */ +.x-panel .x-panel-header-default-framed-left { + border-right-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:647 */ +.x-nbr .x-panel-header-default-framed-collapsed-top { + border-bottom-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:651 */ +.x-nbr .x-panel-header-default-framed-collapsed-right { + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:655 */ +.x-nbr .x-panel-header-default-framed-collapsed-bottom { + border-top-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:659 */ +.x-nbr .x-panel-header-default-framed-collapsed-left { + border-right-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:777 */ +.x-panel-header-default-framed-horizontal .x-tool-after-title { + margin: 0 0 0 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:787 */ +.x-panel-header-default-framed-horizontal .x-tool-before-title { + margin: 0 6px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:799 */ +.x-panel-header-default-framed-vertical .x-tool-after-title { + margin: 6px 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:809 */ +.x-panel-header-default-framed-vertical .x-tool-before-title { + margin: 0 0 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:821 */ +.x-panel-header-default-framed .x-tool-focus { + outline: 1px solid #fff; + outline-offset: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:59 */ +.x-ie8 .x-panel-header-default-framed .x-tool-focus { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:39 */ +.x-ie8 .x-panel-header-default-framed .x-tool-focus:after { + position: absolute; + content: ' '; + top: -2px; + right: -2px; + bottom: -2px; + left: -2px; + border: 1px solid #fff; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:850 */ +.x-panel-default-framed-resizable .x-panel-handle { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + opacity: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:2 */ +.x-panel-default-framed-outer-border-l { + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:6 */ +.x-panel-default-framed-outer-border-b { + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:10 */ +.x-panel-default-framed-outer-border-bl { + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:16 */ +.x-panel-default-framed-outer-border-r { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:20 */ +.x-panel-default-framed-outer-border-rl { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:26 */ +.x-panel-default-framed-outer-border-rb { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:32 */ +.x-panel-default-framed-outer-border-rbl { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:40 */ +.x-panel-default-framed-outer-border-t { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:44 */ +.x-panel-default-framed-outer-border-tl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:50 */ +.x-panel-default-framed-outer-border-tb { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:56 */ +.x-panel-default-framed-outer-border-tbl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:64 */ +.x-panel-default-framed-outer-border-tr { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:70 */ +.x-panel-default-framed-outer-border-trl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:78 */ +.x-panel-default-framed-outer-border-trb { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:86 */ +.x-panel-default-framed-outer-border-trbl { + border-color: #5fa2dd !important; + border-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:696 */ +.x-window-ghost { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:228 */ +.x-window-default { + border-color: #5fa2dd; + -webkit-border-radius: 0 0 0 0; + -moz-border-radius: 0 0 0 0; + -ms-border-radius: 0 0 0 0; + -o-border-radius: 0 0 0 0; + border-radius: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-window-default { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 0 0 0 0; + border-width: 2px; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-window-default-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-window-default { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-window-default-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-0px-0px-0px-0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-window-default-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-window-default-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-window-default-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-window-default-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-window-default-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-window-default-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-window-default-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-window-default-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-window-default-tr, +.x-window-default-br, +.x-window-default-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-window-default-tl, +.x-window-default-bl, +.x-window-default-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-window-default-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-window-default-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-window-default-tl, +.x-window-default-bl, +.x-window-default-tr, +.x-window-default-br, +.x-window-default-tc, +.x-window-default-bc, +.x-window-default-ml, +.x-window-default-mr { + background-image: url(images/window/window-default-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-window-default-ml, +.x-window-default-mr { + background-image: url(images/window/window-default-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-window-default-mc { + padding: 0px 0px 0px 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:250 */ +.x-window-body-default { + border-color: #5fa2dd; + border-width: 1px; + border-style: solid; + background: #fff; + color: #000; + font-size: 13px; + font-weight: 300; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:264 */ +.x-window-header-default { + font-size: 16px; + border-color: #5fa2dd; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:269 */ +.x-window-header-default .x-tool-img { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:282 */ +.x-window-header-default-horizontal .x-window-header-default-tab-bar { + margin-top: -10px; + margin-bottom: -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:289 */ +.x-window-header-default-vertical .x-window-header-default-tab-bar { + margin-right: -10px; + margin-left: -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:305 */ +.x-window-header-title-default { + color: #f0f0f0; + font-size: 16px; + font-weight: 400; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + line-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:314 */ +.x-window-header-title-default > .x-title-text-default { + padding: 0; + text-transform: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:361 */ +.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-top { + height: 24px; + padding-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:366 */ +.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-right { + width: 24px; + padding-left: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:378 */ +.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-bottom { + height: 24px; + padding-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:383 */ +.x-window-header-title-default > .x-title-icon-wrap-default.x-title-icon-left { + width: 24px; + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:395 */ +.x-window-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default { + width: 16px; + height: 16px; + font-size: 16px; + color: #f0f0f0; + background-position: center center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:414 */ +.x-ie8 .x-window-header-title-default > .x-title-icon-wrap-default > .x-title-icon-default { + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-window-header-default-top { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 2px 2px 2px 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-window-header-default-top-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-window-header-default-top { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-window-header-default-top-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-window-header-default-top-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-window-header-default-top-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-window-header-default-top-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-window-header-default-top-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-window-header-default-top-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-window-header-default-top-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-window-header-default-top-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-window-header-default-top-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-window-header-default-top-tr, +.x-window-header-default-top-br, +.x-window-header-default-top-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-window-header-default-top-tl, +.x-window-header-default-top-bl, +.x-window-header-default-top-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-window-header-default-top-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-window-header-default-top-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-window-header-default-top-tl, +.x-window-header-default-top-bl, +.x-window-header-default-top-tr, +.x-window-header-default-top-br, +.x-window-header-default-top-tc, +.x-window-header-default-top-bc, +.x-window-header-default-top-ml, +.x-window-header-default-top-mr { + background-image: url(images/window-header/window-header-default-top-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-window-header-default-top-ml, +.x-window-header-default-top-mr { + background-image: url(images/window-header/window-header-default-top-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-window-header-default-top-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-window-header-default-right { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px 2px 2px 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-window-header-default-right-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-window-header-default-right { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-window-header-default-right-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-window-header-default-right-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-window-header-default-right-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-window-header-default-right-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-window-header-default-right-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-window-header-default-right-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-window-header-default-right-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-window-header-default-right-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-window-header-default-right-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-window-header-default-right-tr, +.x-window-header-default-right-br, +.x-window-header-default-right-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-window-header-default-right-tl, +.x-window-header-default-right-bl, +.x-window-header-default-right-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-window-header-default-right-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-window-header-default-right-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-window-header-default-right-tl, +.x-window-header-default-right-bl, +.x-window-header-default-right-tr, +.x-window-header-default-right-br, +.x-window-header-default-right-tc, +.x-window-header-default-right-bc, +.x-window-header-default-right-ml, +.x-window-header-default-right-mr { + background-image: url(images/window-header/window-header-default-right-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-window-header-default-right-ml, +.x-window-header-default-right-mr { + background-image: url(images/window-header/window-header-default-right-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-window-header-default-right-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-window-header-default-bottom { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 2px 2px 2px 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-window-header-default-bottom-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-window-header-default-bottom { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-window-header-default-bottom-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-window-header-default-bottom-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-window-header-default-bottom-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-window-header-default-bottom-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-window-header-default-bottom-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-window-header-default-bottom-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-window-header-default-bottom-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-window-header-default-bottom-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-window-header-default-bottom-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-window-header-default-bottom-tr, +.x-window-header-default-bottom-br, +.x-window-header-default-bottom-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-window-header-default-bottom-tl, +.x-window-header-default-bottom-bl, +.x-window-header-default-bottom-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-window-header-default-bottom-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-window-header-default-bottom-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-window-header-default-bottom-tl, +.x-window-header-default-bottom-bl, +.x-window-header-default-bottom-tr, +.x-window-header-default-bottom-br, +.x-window-header-default-bottom-tc, +.x-window-header-default-bottom-bc, +.x-window-header-default-bottom-ml, +.x-window-header-default-bottom-mr { + background-image: url(images/window-header/window-header-default-bottom-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-window-header-default-bottom-ml, +.x-window-header-default-bottom-mr { + background-image: url(images/window-header/window-header-default-bottom-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-window-header-default-bottom-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-window-header-default-left { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px 2px 2px 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-window-header-default-left-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-window-header-default-left { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-window-header-default-left-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-window-header-default-left-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-window-header-default-left-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-window-header-default-left-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-window-header-default-left-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-window-header-default-left-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-window-header-default-left-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-window-header-default-left-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-window-header-default-left-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-window-header-default-left-tr, +.x-window-header-default-left-br, +.x-window-header-default-left-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-window-header-default-left-tl, +.x-window-header-default-left-bl, +.x-window-header-default-left-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-window-header-default-left-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-window-header-default-left-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-window-header-default-left-tl, +.x-window-header-default-left-bl, +.x-window-header-default-left-tr, +.x-window-header-default-left-br, +.x-window-header-default-left-tc, +.x-window-header-default-left-bc, +.x-window-header-default-left-ml, +.x-window-header-default-left-mr { + background-image: url(images/window-header/window-header-default-left-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-window-header-default-left-ml, +.x-window-header-default-left-mr { + background-image: url(images/window-header/window-header-default-left-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-window-header-default-left-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-window-header-default-collapsed-top { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-window-header-default-collapsed-top-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-window-header-default-collapsed-top { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-window-header-default-collapsed-top-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-window-header-default-collapsed-top-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-window-header-default-collapsed-top-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-window-header-default-collapsed-top-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-window-header-default-collapsed-top-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-window-header-default-collapsed-top-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-window-header-default-collapsed-top-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-window-header-default-collapsed-top-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-window-header-default-collapsed-top-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-window-header-default-collapsed-top-tr, +.x-window-header-default-collapsed-top-br, +.x-window-header-default-collapsed-top-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-window-header-default-collapsed-top-tl, +.x-window-header-default-collapsed-top-bl, +.x-window-header-default-collapsed-top-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-window-header-default-collapsed-top-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-window-header-default-collapsed-top-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-window-header-default-collapsed-top-tl, +.x-window-header-default-collapsed-top-bl, +.x-window-header-default-collapsed-top-tr, +.x-window-header-default-collapsed-top-br, +.x-window-header-default-collapsed-top-tc, +.x-window-header-default-collapsed-top-bc, +.x-window-header-default-collapsed-top-ml, +.x-window-header-default-collapsed-top-mr { + background-image: url(images/window-header/window-header-default-collapsed-top-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-window-header-default-collapsed-top-ml, +.x-window-header-default-collapsed-top-mr { + background-image: url(images/window-header/window-header-default-collapsed-top-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-window-header-default-collapsed-top-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-window-header-default-collapsed-right { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-window-header-default-collapsed-right-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-window-header-default-collapsed-right { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-window-header-default-collapsed-right-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-window-header-default-collapsed-right-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-window-header-default-collapsed-right-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-window-header-default-collapsed-right-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-window-header-default-collapsed-right-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-window-header-default-collapsed-right-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-window-header-default-collapsed-right-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-window-header-default-collapsed-right-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-window-header-default-collapsed-right-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-window-header-default-collapsed-right-tr, +.x-window-header-default-collapsed-right-br, +.x-window-header-default-collapsed-right-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-window-header-default-collapsed-right-tl, +.x-window-header-default-collapsed-right-bl, +.x-window-header-default-collapsed-right-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-window-header-default-collapsed-right-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-window-header-default-collapsed-right-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-window-header-default-collapsed-right-tl, +.x-window-header-default-collapsed-right-bl, +.x-window-header-default-collapsed-right-tr, +.x-window-header-default-collapsed-right-br, +.x-window-header-default-collapsed-right-tc, +.x-window-header-default-collapsed-right-bc, +.x-window-header-default-collapsed-right-ml, +.x-window-header-default-collapsed-right-mr { + background-image: url(images/window-header/window-header-default-collapsed-right-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-window-header-default-collapsed-right-ml, +.x-window-header-default-collapsed-right-mr { + background-image: url(images/window-header/window-header-default-collapsed-right-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-window-header-default-collapsed-right-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-window-header-default-collapsed-bottom { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-window-header-default-collapsed-bottom-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-window-header-default-collapsed-bottom { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-window-header-default-collapsed-bottom-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-window-header-default-collapsed-bottom-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-window-header-default-collapsed-bottom-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-window-header-default-collapsed-bottom-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-window-header-default-collapsed-bottom-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-window-header-default-collapsed-bottom-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-window-header-default-collapsed-bottom-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-window-header-default-collapsed-bottom-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-window-header-default-collapsed-bottom-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-window-header-default-collapsed-bottom-tr, +.x-window-header-default-collapsed-bottom-br, +.x-window-header-default-collapsed-bottom-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-window-header-default-collapsed-bottom-tl, +.x-window-header-default-collapsed-bottom-bl, +.x-window-header-default-collapsed-bottom-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-window-header-default-collapsed-bottom-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-window-header-default-collapsed-bottom-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-window-header-default-collapsed-bottom-tl, +.x-window-header-default-collapsed-bottom-bl, +.x-window-header-default-collapsed-bottom-tr, +.x-window-header-default-collapsed-bottom-br, +.x-window-header-default-collapsed-bottom-tc, +.x-window-header-default-collapsed-bottom-bc, +.x-window-header-default-collapsed-bottom-ml, +.x-window-header-default-collapsed-bottom-mr { + background-image: url(images/window-header/window-header-default-collapsed-bottom-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-window-header-default-collapsed-bottom-ml, +.x-window-header-default-collapsed-bottom-mr { + background-image: url(images/window-header/window-header-default-collapsed-bottom-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-window-header-default-collapsed-bottom-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-window-header-default-collapsed-left { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px; + border-style: solid; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-window-header-default-collapsed-left-mc { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-window-header-default-collapsed-left { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-window-header-default-collapsed-left-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-window-header-default-collapsed-left-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-window-header-default-collapsed-left-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-window-header-default-collapsed-left-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-window-header-default-collapsed-left-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-window-header-default-collapsed-left-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-window-header-default-collapsed-left-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-window-header-default-collapsed-left-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-window-header-default-collapsed-left-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-window-header-default-collapsed-left-tr, +.x-window-header-default-collapsed-left-br, +.x-window-header-default-collapsed-left-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-window-header-default-collapsed-left-tl, +.x-window-header-default-collapsed-left-bl, +.x-window-header-default-collapsed-left-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-window-header-default-collapsed-left-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-window-header-default-collapsed-left-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-window-header-default-collapsed-left-tl, +.x-window-header-default-collapsed-left-bl, +.x-window-header-default-collapsed-left-tr, +.x-window-header-default-collapsed-left-br, +.x-window-header-default-collapsed-left-tc, +.x-window-header-default-collapsed-left-bc, +.x-window-header-default-collapsed-left-ml, +.x-window-header-default-collapsed-left-mr { + background-image: url(images/window-header/window-header-default-collapsed-left-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-window-header-default-collapsed-left-ml, +.x-window-header-default-collapsed-left-mr { + background-image: url(images/window-header/window-header-default-collapsed-left-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-window-header-default-collapsed-left-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:538 */ +.x-window-header-default .x-window-header-icon { + width: 16px; + height: 16px; + color: #f0f0f0; + font-size: 16px; + line-height: 16px; + background-position: center center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:547 */ +.x-window-header-default .x-window-header-glyph { + color: #f0f0f0; + font-size: 16px; + line-height: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:564 */ +.x-ie8 .x-window-header-default .x-window-header-glyph { + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:573 */ +.x-window-header-default-horizontal .x-tool-after-title { + margin: 0 0 0 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:583 */ +.x-window-header-default-horizontal .x-tool-before-title { + margin: 0 6px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:595 */ +.x-window-header-default-vertical .x-tool-after-title { + margin: 6px 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:605 */ +.x-window-header-default-vertical .x-tool-before-title { + margin: 0 0 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:617 */ +.x-window-header-default .x-tool-focus { + outline: 1px solid #fff; + outline-offset: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:59 */ +.x-ie8 .x-window-header-default .x-tool-focus { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:39 */ +.x-ie8 .x-window-header-default .x-tool-focus:after { + position: absolute; + content: ' '; + top: -2px; + right: -2px; + bottom: -2px; + left: -2px; + border: 1px solid #fff; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:630 */ +.x-window-header-default { + border-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:640 */ +.x-nbr .x-window-default-collapsed .x-window-header { + border-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:2 */ +.x-window-default-outer-border-l { + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:6 */ +.x-window-default-outer-border-b { + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:10 */ +.x-window-default-outer-border-bl { + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:16 */ +.x-window-default-outer-border-r { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:20 */ +.x-window-default-outer-border-rl { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:26 */ +.x-window-default-outer-border-rb { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:32 */ +.x-window-default-outer-border-rbl { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:40 */ +.x-window-default-outer-border-t { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:44 */ +.x-window-default-outer-border-tl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:50 */ +.x-window-default-outer-border-tb { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:56 */ +.x-window-default-outer-border-tbl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:64 */ +.x-window-default-outer-border-tr { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:70 */ +.x-window-default-outer-border-trl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:78 */ +.x-window-default-outer-border-trb { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:86 */ +.x-window-default-outer-border-trbl { + border-color: #5fa2dd !important; + border-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/Window.scss:706 */ +.x-window-body-plain { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:97 */ +.x-form-item-label-default { + color: #404040; + font: 300 13px/17px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + min-height: 32px; + padding-top: 8px; + padding-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:113 */ +.x-ie8 .x-form-item-label-default { + min-height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:119 */ +.x-form-item-label-default.x-form-item-label-top { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:121 */ +.x-form-item-label-default.x-form-item-label-top > .x-form-item-label-inner { + padding-top: 8px; + padding-bottom: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:127 */ +.x-form-item-label-default.x-form-item-label-top-side-error:after { + width: 26px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:132 */ +.x-form-item-body-default { + min-height: 32px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:136 */ +.x-form-invalid-icon-default { + width: 16px; + height: 16px; + margin: 0 5px; + background: url(images/form/exclamation.png) no-repeat; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:143 */ +.x-form-invalid-under-default { + padding: 2px 2px 2px 20px; + color: #cf4c35; + font: 300 13px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + background: no-repeat 0 2px; + background-image: url(images/form/exclamation.png); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:151 */ +.x-form-error-wrap-default.x-form-error-wrap-side { + width: 26px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:156 */ +.x-form-item-default.x-item-disabled { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; + opacity: 0.3; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/Labelable.scss:194 */ +.x-autocontainer-form-item, +.x-anchor-form-item, +.x-vbox-form-item, +.x-table-form-item { + margin-bottom: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:201 */ +.x-form-text-field-body-default { + min-width: 170px; + max-width: 170px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:221 */ +.x-form-trigger-wrap-default { + border-width: 1px; + border-style: solid; + border-color: #d0d0d0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:229 */ +.x-form-trigger-wrap-default.x-form-trigger-wrap-focus { + border-color: #3892d4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:233 */ +.x-form-trigger-wrap-default.x-form-trigger-wrap-invalid { + border-color: #cf4c35; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:258 */ +.x-form-text-default { + color: #404040; + padding: 5px 10px 4px; + background-color: #fff; + font: 300 13px/21px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + min-height: 30px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:272 */ +.x-ie8 .x-form-text-default { + min-height: 21px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:278 */ +.x-form-text-default.x-form-textarea { + line-height: 20px; + min-height: 80px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:283 */ +.x-ie8 .x-form-text-default.x-form-textarea { + min-height: 71px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:290 */ +.x-form-text-default.x-form-text-file { + color: grey; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:295 */ +.x-form-empty-field-default { + color: grey; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:300 */ +.x-form-text-default:-ms-input-placeholder { + color: grey; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:304 */ +.x-form-invalid-field-default { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:315 */ +.x-form-trigger-default { + width: 32px; + font: 16px/30px FontAwesome; + background: #fff; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-form-trigger-default:before { + content: "\f0d7"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:338 */ +.x-form-trigger-default.x-form-trigger-over { + background-position: -32px center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:344 */ +.x-form-trigger-default.x-form-trigger-over.x-form-trigger-focus { + background-position: -128px center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:349 */ +.x-form-trigger-default.x-form-trigger-focus { + background-position: -96px center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:358 */ +.x-form-trigger.x-form-trigger-default.x-form-trigger-click { + background-position: -64px center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:427 */ +.x-form-clear-trigger { + font-size: 16px; + font-family: FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-form-clear-trigger:before { + content: "\f00d"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Text.scss:440 */ +.x-form-search-trigger { + font-size: 16px; + font-family: FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-form-search-trigger:before { + content: "\f002"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/MessageBox.scss:1 */ +.x-message-box .x-window-body { + background-color: #fff; + border-width: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/MessageBox.scss:10 */ +.x-message-box-info, +.x-message-box-warning, +.x-message-box-question, +.x-message-box-error { + background-position: left top; + background-repeat: no-repeat; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/MessageBox.scss:29 */ +.x-message-box-icon { + height: 44px; + width: 44px; + margin-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/MessageBox.scss:35 */ +.x-message-box-info { + font: 44px/1 FontAwesome; + color: grey; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-message-box-info:before { + content: "\f05a"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/MessageBox.scss:44 */ +.x-message-box-warning { + font: 44px/1 FontAwesome; + color: #f8d400; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-message-box-warning:before { + content: "\f071"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/MessageBox.scss:53 */ +.x-message-box-question { + font: 44px/1 FontAwesome; + color: grey; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-message-box-question:before { + content: "\f059"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/window/MessageBox.scss:62 */ +.x-message-box-error { + font: 44px/1 FontAwesome; + color: #ee611f; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-message-box-error:before { + content: "\f057"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:89 */ +.x-form-cb-wrap-default { + height: 32px; + min-width: 18px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:98 */ +.x-form-cb-default { + margin-top: 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:103 */ +.x-form-checkbox-default, +.x-form-radio-default { + width: 18px; + height: 18px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:109 */ +.x-form-radio-default { + font: 18px/1 FontAwesome; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-form-radio-default:before { + content: "\f10c"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:114 */ +.x-form-cb-checked .x-form-radio-default { + font: 18px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-form-cb-checked .x-form-radio-default:before { + content: "\f192"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:126 */ +.x-form-checkbox-default { + font: 18px/1 ExtJS; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-form-checkbox-default:before { + content: "\e614"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:131 */ +.x-form-cb-checked .x-form-checkbox-default { + font: 18px/1 ExtJS; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-form-cb-checked .x-form-checkbox-default:before { + content: "\e613"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:144 */ +.x-form-checkbox-focus.x-form-radio-default { + color: #3892d4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:156 */ +.x-form-checkbox-focus.x-form-checkbox-default { + color: #3892d4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:169 */ +.x-form-cb-label-default { + margin-top: 8px; + font: 300 Open Sans, Helvetica Neue, helvetica, arial, verdana, sans-serif/17px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:173 */ +.x-form-cb-label-default.x-form-cb-label-before { + padding-right: 22px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/field/Checkbox.scss:184 */ +.x-form-cb-label-default.x-form-cb-label-after { + padding-left: 22px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:122 */ +.x-fieldset-default { + border: 1px solid #d0d0d0; + padding: 5px 15px 10px 15px; + margin: 0 0 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:135 */ +.x-ie8 .x-fieldset-default { + padding-top: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:138 */ +.x-ie8 .x-fieldset-body-default { + padding-top: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:144 */ +.x-fieldset-header-default { + padding: 0 3px 1px; + line-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:148 */ +.x-fieldset-header-default > .x-fieldset-header-text { + font: 400 16px/20px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #919191; + padding: 1px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:155 */ +.x-fieldset-header-checkbox-default { + margin: 2px 4px 0 0; + line-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:165 */ +.x-fieldset-header-tool-default { + margin: 2px 4px 0 0; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:174 */ +.x-fieldset-header-tool-default > .x-tool-img { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; + opacity: 0.8; + height: 15px; + width: 15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:181 */ +.x-fieldset-header-tool-default.x-tool-over > .x-tool-img { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; + opacity: 0.9; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:187 */ +.x-fieldset-header-tool-default.x-tool-pressed > .x-tool-img { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + opacity: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:193 */ +.x-fieldset-header-tool-default > .x-tool-toggle { + font: 14px/1 FontAwesome; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-fieldset-header-tool-default > .x-tool-toggle:before { + content: "\f146"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:212 */ +.x-fieldset-header-tool-default.x-focus { + outline: 1px solid red; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:218 */ +.x-fieldset-default.x-fieldset-collapsed { + border-width: 1px 1px 0 1px; + border-left-color: transparent; + border-right-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/FieldSet.scss:227 */ +.x-fieldset-default.x-fieldset-collapsed .x-tool-toggle { + font: 14px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-fieldset-default.x-fieldset-collapsed .x-tool-toggle:before { + content: "\f0fe"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:71 */ +.x-form-trigger-spinner-default { + width: 32px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:79 */ +.x-form-trigger-spinner-default:before { + content: ''; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:85 */ +.x-form-spinner-default { + background-color: #fff; + width: 32px; + height: 15px; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:131 */ +.x-form-spinner-up-default { + font: 16px/1 ExtJS; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-form-spinner-up-default:before { + content: "\e61c"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:137 */ +.x-form-spinner-down-default { + font: 16px/1 ExtJS; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-form-spinner-down-default:before { + content: "\e61b"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:143 */ +.x-form-spinner-up-default { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:146 */ +.x-form-spinner-up-default.x-form-spinner-over { + background-position: -32px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:148 */ +.x-form-spinner-up-default.x-form-spinner-over.x-form-spinner-focus { + background-position: -128px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:153 */ +.x-form-spinner-up-default.x-form-spinner-focus { + background-position: -96px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:158 */ +.x-form-spinner-up-default.x-form-spinner.x-form-spinner-click { + background-position: -64px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:163 */ +.x-form-spinner-down-default { + background-position: 0 -15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:166 */ +.x-form-spinner-down-default.x-form-spinner-over { + background-position: -32px -15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:168 */ +.x-form-spinner-down-default.x-form-spinner-over.x-form-spinner-focus { + background-position: -128px -15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:173 */ +.x-form-spinner-down-default.x-form-spinner-focus { + background-position: -96px -15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/var/form/trigger/Spinner.scss:178 */ +.x-form-spinner-down-default.x-form-spinner.x-form-spinner-click { + background-position: -64px -15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Paging.scss:1 */ +.x-tbar-page-number { + width: 30px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Paging.scss:10 */ +.x-btn-icon-el.x-tbar-page-first { + font: 16px/16px ExtJS; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-btn-icon-el.x-tbar-page-first:before { + content: "\e617"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Paging.scss:19 */ +.x-btn-icon-el.x-tbar-page-prev { + font: 16px/16px ExtJS; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-btn-icon-el.x-tbar-page-prev:before { + content: "\e615"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Paging.scss:28 */ +.x-btn-icon-el.x-tbar-page-next { + font: 16px/16px ExtJS; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-btn-icon-el.x-tbar-page-next:before { + content: "\e616"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Paging.scss:37 */ +.x-btn-icon-el.x-tbar-page-last { + font: 16px/16px ExtJS; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-btn-icon-el.x-tbar-page-last:before { + content: "\e618"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/toolbar/Paging.scss:46 */ +.x-btn-icon-el.x-tbar-loading { + font: 16px/16px FontAwesome; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-btn-icon-el.x-tbar-loading:before { + content: "\f021"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/view/BoundList.scss:1 */ +.x-boundlist { + border-width: 1px; + border-style: solid; + border-color: #d0d0d0; + background: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/view/BoundList.scss:8 */ +.x-boundlist-item { + padding: 0 10px; + font: normal 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + line-height: 30px; + cursor: pointer; + cursor: hand; + position: relative; + /*allow hover in IE on empty items*/ + border-width: 1px; + border-style: dotted; + border-color: #fff; + color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/view/BoundList.scss:25 */ +.x-boundlist-selected { + color: #fff; + background: #5fa2dd; + border-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/view/BoundList.scss:33 */ +.x-boundlist-item-over { + color: #fff; + background: #7fb5e4; + border-color: #7fb5e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/view/BoundList.scss:42 */ +.x-boundlist-floating { + border-top-width: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/view/BoundList.scss:46 */ +.x-boundlist-above { + border-top-width: 1px; + border-bottom-width: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:9 */ +.x-datepicker { + border-width: 1px; + border-style: solid; + border-color: #d0d0d0; + background-color: #fff; + width: 310px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:19 */ +.x-datepicker-header { + padding: 0; + text-align: center; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:29 */ +.x-datepicker-arrow { + width: 32px; + height: 44px; + top: 0px; + cursor: pointer; + -webkit-touch-callout: none; + color: #919191; + background-color: #ececec; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; + opacity: 0.7; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:51 */ +div.x-datepicker-arrow:hover { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + opacity: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:56 */ +.x-datepicker-next { + right: 0; + font: 16px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-datepicker-next:before { + content: "\f101"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:65 */ +.x-datepicker-prev { + left: 0; + font: 16px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-datepicker-prev:before { + content: "\f100"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:74 */ +.x-datepicker-month { + background: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:77 */ +.x-datepicker-month .x-btn, +.x-datepicker-month .x-btn .x-btn-tc, +.x-datepicker-month .x-btn .x-btn-tl, +.x-datepicker-month .x-btn .x-btn-tr, +.x-datepicker-month .x-btn .x-btn-mc, +.x-datepicker-month .x-btn .x-btn-ml, +.x-datepicker-month .x-btn .x-btn-mr, +.x-datepicker-month .x-btn .x-btn-bc, +.x-datepicker-month .x-btn .x-btn-bl, +.x-datepicker-month .x-btn .x-btn-br { + background: transparent; + border-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:93 */ +.x-datepicker-month .x-btn-inner { + color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:98 */ +.x-datepicker-month .x-btn-split-right:after, +.x-datepicker-month .x-btn-over .x-btn-split-right:after { + content: "\f107"; + font: 16px/1 FontAwesome; + color: #606060; + background: none; + padding: 0; + text-align: right; + width: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:111 */ +.x-datepicker-month .x-btn { + padding: 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:115 */ +.x-datepicker-month .x-btn-over { + border-color: transparent; + background: #dfdfdf; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:120 */ +.x-datepicker-month .x-btn.x-btn-pressed { + border-color: transparent; + background: #d3d3d3; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:125 */ +.x-datepicker-month .x-btn-inner { + font-size: 15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:130 */ +.x-datepicker-column-header { + width: 44px; + color: #404040; + font: 400 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + text-align: right; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:149 */ +.x-datepicker-column-header-inner { + line-height: 36px; + padding: 0 15px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:154 */ +.x-datepicker-cell { + text-align: right; + border: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:163 */ +.x-datepicker-date { + padding: 0 15px 0 0; + font: 300 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #404040; + cursor: pointer; + line-height: 36px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:173 */ +div.x-datepicker-date:hover { + color: #404040; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:178 */ +.x-datepicker-selected { + border-style: solid; + border-color: #7fb5e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:181 */ +.x-datepicker-selected div.x-datepicker-date { + background-color: #5fa2dd; + color: #fff; + font-weight: 300; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:188 */ +.x-datepicker-today { + border-color: darkred; + border-style: solid; + background-color: #bfdaf1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:199 */ +.x-datepicker-prevday .x-datepicker-date, +.x-datepicker-nextday .x-datepicker-date { + color: #d0d0d0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:206 */ +.x-datepicker-disabled .x-datepicker-date { + background-color: #eee; + cursor: default; + color: silver; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:214 */ +.x-datepicker-disabled div.x-datepicker-date:hover { + background-color: #eee; + color: silver; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:219 */ +.x-datepicker-footer, +.x-monthpicker-buttons { + padding: 6px 0; + background-color: #fff; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:236 */ +.x-datepicker-footer .x-btn, +.x-monthpicker-buttons .x-btn { + margin: 0 3px 0 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:242 */ +.x-monthpicker { + width: 310px; + border-width: 1px; + border-style: solid; + border-color: #d0d0d0; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:252 */ +.x-monthpicker-months { + border-width: 0 1px 0 0; + border-color: #d0d0d0; + border-style: solid; + width: 154px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:261 */ +.x-monthpicker-months .x-monthpicker-item { + width: 76px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:266 */ +.x-monthpicker-years { + width: 154px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:269 */ +.x-monthpicker-years .x-monthpicker-item { + width: 77px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:274 */ +.x-monthpicker-item { + margin: 5px 0 5px; + font: 300 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:280 */ +.x-monthpicker-item-inner { + margin: 0 5px 0 5px; + color: #404040; + border: 0; + line-height: 37px; + cursor: pointer; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:295 */ +a.x-monthpicker-item-inner:hover { + color: #404040; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:301 */ +.x-monthpicker-item a.x-monthpicker-selected { + background-color: #5fa2dd; + color: #fff; + border-style: solid; + border-color: #7fb5e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:308 */ +.x-monthpicker-yearnav { + height: 47px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:312 */ +.x-monthpicker-yearnav-button-ct { + width: 77px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:316 */ +.x-monthpicker-yearnav-button { + height: 16px; + width: 16px; + cursor: pointer; + margin-top: 15px; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; + opacity: 0.7; + -webkit-touch-callout: none; + color: #919191; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:337 */ +a.x-monthpicker-yearnav-button:hover { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + opacity: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:342 */ +.x-monthpicker-yearnav-next { + font: 16px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-monthpicker-yearnav-next:before { + content: "\f101"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:356 */ +.x-monthpicker-yearnav-prev { + font: 16px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-monthpicker-yearnav-prev:before { + content: "\f100"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:371 */ +.x-monthpicker-small .x-monthpicker-item { + margin: 2px 0 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:375 */ +.x-monthpicker-small .x-monthpicker-item-inner { + margin: 0 5px 0 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:379 */ +.x-monthpicker-small .x-monthpicker-yearnav { + height: 41px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/picker/Date.scss:383 */ +.x-monthpicker-small .x-monthpicker-yearnav-button { + margin-top: 12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/form/field/Date.scss:1 */ +.x-form-date-trigger { + font-size: 16px; + font-family: FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-form-date-trigger:before { + content: "\f073"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:180 */ +.x-tip-anchor { + position: absolute; + overflow: hidden; + height: 10px; + width: 10px; + border-style: solid; + border-width: 5px; + border-color: #747474; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:193 */ +.x-tip-anchor-top { + border-top-color: transparent; + border-left-color: transparent; + border-right-color: transparent; + _border-top-color: pink; + _border-left-color: pink; + _border-right-color: pink; + _filter: chroma(color=pink); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:206 */ +.x-tip-anchor-bottom { + border-bottom-color: transparent; + border-left-color: transparent; + border-right-color: transparent; + _border-bottom-color: pink; + _border-left-color: pink; + _border-right-color: pink; + _filter: chroma(color=pink); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:219 */ +.x-tip-anchor-left { + border-top-color: transparent; + border-bottom-color: transparent; + border-left-color: transparent; + _border-top-color: pink; + _border-bottom-color: pink; + _border-left-color: pink; + _filter: chroma(color=pink); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:232 */ +.x-tip-anchor-right { + border-top-color: transparent; + border-bottom-color: transparent; + border-right-color: transparent; + _border-top-color: pink; + _border-bottom-color: pink; + _border-right-color: pink; + _filter: chroma(color=pink); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-tip-default { + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + -ms-border-radius: 2px; + -o-border-radius: 2px; + border-radius: 2px; + padding: 1px 1px 1px 1px; + border-width: 1px; + border-style: solid; + background-color: #747474; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-tip-default-mc { + background-color: #747474; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-tip-default { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-tip-default-frameInfo { + font-family: th-2-2-2-2-1-1-1-1-1-1-1-1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-tip-default-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-tip-default-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-tip-default-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-tip-default-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-tip-default-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-tip-default-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-tip-default-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-tip-default-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-tip-default-tr, +.x-tip-default-br, +.x-tip-default-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-tip-default-tl, +.x-tip-default-bl, +.x-tip-default-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-tip-default-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-tip-default-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-tip-default-tl, +.x-tip-default-bl, +.x-tip-default-tr, +.x-tip-default-br, +.x-tip-default-tc, +.x-tip-default-bc, +.x-tip-default-ml, +.x-tip-default-mr { + background-image: url(images/tip/tip-default-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-tip-default-ml, +.x-tip-default-mr { + background-image: url(images/tip/tip-default-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-tip-default-mc { + padding: 0px 0px 0px 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:112 */ +.x-tip-default { + background-color: #747474; + border-color: #747474; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:122 */ +.x-tip-default .x-tool-img { + background-image: url(images/tools/tool-sprites-dark.png); + background-color: #747474; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:137 */ +.x-tip-header-default .x-tool-after-title { + margin: 0 0 0 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:147 */ +.x-tip-header-default .x-tool-before-title { + margin: 0 6px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:158 */ +.x-tip-header-default { + padding: 3px 3px 0 3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:162 */ +.x-tip-header-title-default { + color: #f0f0f0; + font-size: 13px; + font-weight: bold; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:168 */ +.x-tip-body-default { + padding: 6px 8px; + color: #f0f0f0; + font-size: 13px; + font-weight: 300; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:173 */ +.x-tip-body-default a { + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-tip-form-invalid { + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + -ms-border-radius: 2px; + -o-border-radius: 2px; + border-radius: 2px; + padding: 1px 1px 1px 1px; + border-width: 1px; + border-style: solid; + background-color: #747474; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-tip-form-invalid-mc { + background-color: #747474; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-tip-form-invalid { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-tip-form-invalid-frameInfo { + font-family: th-2-2-2-2-1-1-1-1-1-1-1-1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-tip-form-invalid-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-tip-form-invalid-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-tip-form-invalid-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-tip-form-invalid-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-tip-form-invalid-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-tip-form-invalid-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-tip-form-invalid-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-tip-form-invalid-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-tip-form-invalid-tr, +.x-tip-form-invalid-br, +.x-tip-form-invalid-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-tip-form-invalid-tl, +.x-tip-form-invalid-bl, +.x-tip-form-invalid-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-tip-form-invalid-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-tip-form-invalid-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-tip-form-invalid-tl, +.x-tip-form-invalid-bl, +.x-tip-form-invalid-tr, +.x-tip-form-invalid-br, +.x-tip-form-invalid-tc, +.x-tip-form-invalid-bc, +.x-tip-form-invalid-ml, +.x-tip-form-invalid-mr { + background-image: url(images/tip/tip-form-invalid-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-tip-form-invalid-ml, +.x-tip-form-invalid-mr { + background-image: url(images/tip/tip-form-invalid-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-tip-form-invalid-mc { + padding: 0px 0px 0px 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:112 */ +.x-tip-form-invalid { + background-color: #747474; + border-color: #747474; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:122 */ +.x-tip-form-invalid .x-tool-img { + background-image: url(images/tools/tool-sprites-dark.png); + background-color: #747474; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:137 */ +.x-tip-header-form-invalid .x-tool-after-title { + margin: 0 0 0 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:147 */ +.x-tip-header-form-invalid .x-tool-before-title { + margin: 0 6px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:158 */ +.x-tip-header-form-invalid { + padding: 3px 3px 0 3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:162 */ +.x-tip-header-title-form-invalid { + color: #f0f0f0; + font-size: 13px; + font-weight: bold; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:168 */ +.x-tip-body-form-invalid { + padding: 3px 3px 3px 22px; + color: #f0f0f0; + font-size: 13px; + font-weight: 300; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:173 */ +.x-tip-body-form-invalid a { + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:269 */ +.x-tip-body-form-invalid { + background: 1px 1px no-repeat; + background-image: url(images/form/exclamation.png); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:272 */ +.x-tip-body-form-invalid li { + margin-bottom: 4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tip/Tip.scss:274 */ +.x-tip-body-form-invalid li.last { + margin-bottom: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:318 */ +.x-menu-default { + border-style: solid; + border-width: 1px; + border-color: #d0d0d0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:324 */ +.x-menu-body-default { + background: #fff; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:329 */ +.x-menu-icon-separator-default { + left: 32px; + border-left: solid 1px #d0d0d0; + background-color: #fff; + width: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:343 */ +.x-menu-item-default { + border-width: 0; + cursor: pointer; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:347 */ +.x-menu-item-default.x-menu-item-active { + background-image: none; + background-color: #7fb5e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:359 */ +.x-nlg .x-menu-item-default.x-menu-item-active { + background: #7fb5e4 repeat-x left top; + background-image: url(images/menu/menu-item-default-active-bg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:366 */ +.x-menu-item-default.x-menu-item-disabled { + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:369 */ +.x-menu-item-default.x-menu-item-disabled a { + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:374 */ +.x-menu-item-default.x-menu-item-separator { + height: 1px; + border-top: solid 1px #d0d0d0; + background-color: #fff; + margin: 2px 0; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:382 */ +.x-menu-item-default.x-menu-item-disabled { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:387 */ +.x-ie9m .x-menu-item-default.x-menu-item-disabled .x-menu-item-icon-ui { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:391 */ +.x-ie9m .x-menu-item-default.x-menu-item-disabled .x-menu-item-text-default { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:401 */ +.x-menu-item-default .x-form-item-label { + font-size: 13px; + color: #000; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:408 */ +.x-menu-item-text-default, +.x-menu-item-cmp-default { + margin: 0 8px 0 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:413 */ +.x-menu-item-text-default { + font: 300 13px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + line-height: 31px; + padding-top: 1px; + color: #000; + cursor: pointer; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:425 */ +.x-menu-item-active .x-menu-item-text-default { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:430 */ +.x-menu-item-text-default.x-menu-item-indent { + margin-left: 41px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:434 */ +.x-menu-item-text-default.x-menu-item-indent-no-separator { + margin-left: 36px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:438 */ +.x-menu-item-text-default.x-menu-item-indent-right-icon { + margin-right: 40px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:442 */ +.x-menu-item-text-default.x-menu-item-indent-right-arrow { + margin-right: 29px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:446 */ +.x-menu-item-disabled .x-menu-item-text-default { + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:478 */ +.x-menu-item-indent-default { + margin-left: 41px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:488 */ +.x-menu-item-icon-default { + width: 24px; + height: 24px; + top: 4px; + left: 4px; + line-height: 24px; + font-size: 16px; + color: #919191; + background-position: center center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:497 */ +.x-menu-item-active .x-menu-item-icon-default { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:503 */ +.x-ie8 .x-menu-item-active .x-menu-item-icon-default { + color: #fff !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:535 */ +.x-ie8 .x-menu-item-icon-default.x-menu-item-glyph { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:543 */ +.x-menu-item-icon-default.x-menu-item-icon-right { + width: 24px; + height: 24px; + top: 4px; + right: 4px; + left: auto; + background-position: center center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:563 */ +.x-menu-item-icon-default.x-menu-item-checkbox { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:573 */ +.x-menu-item-active .x-menu-item-icon-default.x-menu-item-checkbox { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:579 */ +.x-menu-item-checked .x-menu-item-icon-default.x-menu-item-checkbox { + font: 18px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-menu-item-checked .x-menu-item-icon-default.x-menu-item-checkbox:before { + content: "\f046"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:587 */ +.x-menu-item-unchecked .x-menu-item-icon-default.x-menu-item-checkbox { + font: 18px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-menu-item-unchecked .x-menu-item-icon-default.x-menu-item-checkbox:before { + content: "\f096"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:602 */ +.x-menu-item-active .x-menu-item-icon-default.x-menu-group-icon { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:608 */ +.x-menu-item-checked .x-menu-item-icon-default.x-menu-group-icon { + font: 18px/24px FontAwesome; + background-image: url(images/menu/default-group-checked.png); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-menu-item-checked .x-menu-item-icon-default.x-menu-group-icon:before { + content: "\f00c"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:615 */ +.x-menu-item-unchecked .x-menu-item-icon-default.x-menu-group-icon { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:620 */ +.x-menu-item-unchecked .x-menu-item-icon-default.x-menu-group-icon:before { + content: ''; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:630 */ +.x-menu-item-arrow-default { + width: 16px; + height: 16px; + top: 8px; + right: 0; + margin: 0 4px 0; + font: 16px/1 FontAwesome; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-menu-item-arrow-default:before { + content: "\f0da"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:642 */ +.x-menu-item-active .x-menu-item-arrow-default { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:650 */ +.x-menu-item-active .x-menu-item-arrow-default { + top: 8px; + right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:170 */ +.x-menu-default-scroller .x-box-scroller-body-horizontal { + margin-left: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:176 */ +.x-menu-default-vertical-scroller .x-box-scroller-body-vertical { + margin-top: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:181 */ +.x-box-scroller-menu-default { + cursor: pointer; + color: #919191; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:191 */ +.x-box-scroller-menu-default.x-box-scroller-hover { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + opacity: 0.6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:197 */ +.x-box-scroller-menu-default.x-box-scroller-pressed { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; + opacity: 0.7; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:203 */ +.x-box-scroller-menu-default.x-box-scroller-disabled { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)"; + opacity: 0.25; + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:292 */ +.x-box-scroller-menu-default.x-box-scroller-top, +.x-box-scroller-menu-default.x-box-scroller-bottom { + height: 16px; + width: 16px; + left: 50%; + margin-left: -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:319 */ +.x-box-scroller-menu-default.x-box-scroller-top { + margin-top: 4px; + margin-right: 0; + margin-bottom: 4px; + font: 16px/16px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-menu-default.x-box-scroller-top:before { + content: "\f077"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:344 */ +.x-box-scroller-menu-default.x-box-scroller-bottom { + margin-top: 4px; + margin-right: 0; + margin-bottom: 4px; + font: 16px/16px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-menu-default.x-box-scroller-bottom:before { + content: "\f078"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/menu/Menu.scss:704 */ +.x-ie8 .x-box-scroller-menu-default { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Form.scss:1 */ +.x-form-layout-wrap { + border-spacing: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:1 */ +.x-resizable-handle { + position: absolute; + z-index: 100; + font-size: 1px; + line-height: 10px; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + opacity: 0; + background-color: #ececec; + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:19 */ +.x-collapsed .x-resizable-handle { + display: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:23 */ +.x-resizable-handle-north { + cursor: n-resize; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:26 */ +.x-resizable-handle-south { + cursor: s-resize; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:29 */ +.x-resizable-handle-east { + cursor: e-resize; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:32 */ +.x-resizable-handle-west { + cursor: w-resize; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:35 */ +.x-resizable-handle-southeast { + cursor: se-resize; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:38 */ +.x-resizable-handle-southeast:before { + position: absolute; + bottom: 0; + right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:45 */ +.x-resizable-handle-northwest { + cursor: nw-resize; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:48 */ +.x-resizable-handle-northwest:before { + position: absolute; + top: 0; + left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:55 */ +.x-resizable-handle-northeast { + cursor: ne-resize; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:58 */ +.x-resizable-handle-northeast:before { + position: absolute; + top: 0; + right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:65 */ +.x-resizable-handle-southwest { + cursor: sw-resize; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:68 */ +.x-resizable-handle-southwest:before { + position: absolute; + bottom: 0; + left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:77 */ +.x-resizable-handle-south, +.x-resizable-handle-north { + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:81 */ +.x-resizable-handle-east, +.x-resizable-handle-west { + display: table; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:84 */ +.x-resizable-handle-east:before, +.x-resizable-handle-west:before { + display: table-cell; + vertical-align: middle; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:92 */ +.x-resizable-handle-east { + width: 10px; + height: 100%; + right: 0; + top: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:99 */ +.x-resizable-handle-south { + width: 100%; + height: 10px; + left: 0; + bottom: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:106 */ +.x-resizable-handle-west { + width: 10px; + height: 100%; + left: 0; + top: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:113 */ +.x-resizable-handle-north { + width: 100%; + height: 10px; + left: 0; + top: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:120 */ +.x-resizable-handle-southeast { + width: 10px; + height: 10px; + right: 0; + bottom: 0; + z-index: 101; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:128 */ +.x-resizable-handle-northwest { + width: 10px; + height: 10px; + left: 0; + top: 0; + z-index: 101; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:136 */ +.x-resizable-handle-northeast { + width: 10px; + height: 10px; + right: 0; + top: 0; + z-index: 101; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:144 */ +.x-resizable-handle-southwest { + width: 10px; + height: 10px; + left: 0; + bottom: 0; + z-index: 101; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:153 */ +.x-window .x-window-handle { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + opacity: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:157 */ +.x-window-collapsed .x-window-handle { + display: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:162 */ +.x-resizable-proxy { + border: 1px dashed #3b5a82; + position: absolute; + overflow: hidden; + z-index: 50000; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:170 */ +.x-resizable-handle-over, +.x-resizable-pinned .x-resizable-handle { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + opacity: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:176 */ +.x-resizable-handle-east-over, +.x-resizable-handle-west-over, +.x-resizable-pinned > .x-resizable-handle-east, +.x-resizable-pinned > .x-resizable-handle-west { + font: 16px/1 FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-resizable-handle-east-over:before, +.x-resizable-handle-west-over:before, +.x-resizable-pinned > .x-resizable-handle-east:before, +.x-resizable-pinned > .x-resizable-handle-west:before { + content: "\f142"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:188 */ +.x-resizable-handle-south-over, +.x-resizable-handle-north-over, +.x-resizable-pinned > .x-resizable-handle-south, +.x-resizable-pinned > .x-resizable-handle-north { + font: 16px/10px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-resizable-handle-south-over:before, +.x-resizable-handle-north-over:before, +.x-resizable-pinned > .x-resizable-handle-south:before, +.x-resizable-pinned > .x-resizable-handle-north:before { + content: "\f141"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:200 */ +.x-resizable-handle-southeast-over, +.x-resizable-pinned > .x-resizable-handle-southeast { + font: 16px/1 ExtJS; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-resizable-handle-southeast-over:before, +.x-resizable-pinned > .x-resizable-handle-southeast:before { + content: "\e60c"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:210 */ +.x-resizable-handle-northwest-over, +.x-resizable-pinned > .x-resizable-handle-northwest { + font: 16px/1 ExtJS; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-resizable-handle-northwest-over:before, +.x-resizable-pinned > .x-resizable-handle-northwest:before { + content: "\e609"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:220 */ +.x-resizable-handle-northeast-over, +.x-resizable-pinned > .x-resizable-handle-northeast { + font: 16px/1 ExtJS; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-resizable-handle-northeast-over:before, +.x-resizable-pinned > .x-resizable-handle-northeast:before { + content: "\e60a"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/resizer/Resizer.scss:230 */ +.x-resizable-handle-southwest-over, +.x-resizable-pinned > .x-resizable-handle-southwest { + font: 16px/1 ExtJS; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-resizable-handle-southwest-over:before, +.x-resizable-pinned > .x-resizable-handle-southwest:before { + content: "\e60b"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-tab-default-top { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 8px 10px 8px 10px; + border-width: 0; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-tab-default-top-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-tab-default-top { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-tab-default-top-frameInfo { + font-family: th-0-0-0-0-0-0-0-0-8-10-8-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-tab-default-top-tl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-tab-default-top-tr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-tab-default-top-bl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-tab-default-top-br { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-tab-default-top-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-tab-default-top-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-tab-default-top-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-tab-default-top-bc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-tab-default-top-tr, +.x-tab-default-top-br, +.x-tab-default-top-mr { + padding-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-tab-default-top-tl, +.x-tab-default-top-bl, +.x-tab-default-top-ml { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-tab-default-top-tc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-tab-default-top-bc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-tab-default-top-mc { + padding: 8px 10px 8px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-tab-default-bottom { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 8px 10px 8px 10px; + border-width: 0 0 0 0; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-tab-default-bottom-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-tab-default-bottom { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-tab-default-bottom-frameInfo { + font-family: th-0-0-0-0-0-0-0-0-8-10-8-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-tab-default-bottom-tl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-tab-default-bottom-tr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-tab-default-bottom-bl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-tab-default-bottom-br { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-tab-default-bottom-ml { + background-position: 0 bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-tab-default-bottom-mr { + background-position: right bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-tab-default-bottom-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-tab-default-bottom-bc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-tab-default-bottom-tr, +.x-tab-default-bottom-br, +.x-tab-default-bottom-mr { + padding-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-tab-default-bottom-tl, +.x-tab-default-bottom-bl, +.x-tab-default-bottom-ml { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-tab-default-bottom-tc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-tab-default-bottom-bc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-tab-default-bottom-mc { + padding: 8px 10px 8px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-tab-default-left { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 8px 10px 8px 10px; + border-width: 0 0 0 0; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-tab-default-left-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-tab-default-left { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-tab-default-left-frameInfo { + font-family: th-0-0-0-0-0-0-0-0-8-10-8-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-tab-default-left-tl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-tab-default-left-tr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-tab-default-left-bl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-tab-default-left-br { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-tab-default-left-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-tab-default-left-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-tab-default-left-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-tab-default-left-bc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-tab-default-left-tr, +.x-tab-default-left-br, +.x-tab-default-left-mr { + padding-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-tab-default-left-tl, +.x-tab-default-left-bl, +.x-tab-default-left-ml { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-tab-default-left-tc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-tab-default-left-bc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-tab-default-left-mc { + padding: 8px 10px 8px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-tab-default-right { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 8px 10px 8px 10px; + border-width: 0 0 0 0; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-tab-default-right-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-tab-default-right { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-tab-default-right-frameInfo { + font-family: th-0-0-0-0-0-0-0-0-8-10-8-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-tab-default-right-tl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-tab-default-right-tr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-tab-default-right-bl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-tab-default-right-br { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-tab-default-right-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-tab-default-right-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-tab-default-right-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-tab-default-right-bc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-tab-default-right-tr, +.x-tab-default-right-br, +.x-tab-default-right-mr { + padding-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-tab-default-right-tl, +.x-tab-default-right-bl, +.x-tab-default-right-ml { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-tab-default-right-tc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-tab-default-right-bc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-tab-default-right-mc { + padding: 8px 10px 8px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1587 */ +.x-tab-default { + border-color: transparent; + cursor: pointer; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1648 */ +.x-tab-default-top { + margin: 0 4px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1657 */ +.x-tab-default-top.x-tab-rotate-left { + margin: 0 0 0 4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1679 */ +.x-tab-default-top.x-tab-focus { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1708 */ +.x-tab-default-top.x-tab-focus.x-tab-over { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1737 */ +.x-tab-default-top.x-tab-focus.x-tab-active { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1763 */ +.x-tab-default-right { + margin: 0 0 4px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1772 */ +.x-tab-default-right.x-tab-rotate-right { + margin: 4px 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1794 */ +.x-tab-default-right.x-tab-focus { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1823 */ +.x-tab-default-right.x-tab-focus.x-tab-over { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1852 */ +.x-tab-default-right.x-tab-focus.x-tab-active { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1878 */ +.x-tab-default-bottom { + margin: 0 4px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1887 */ +.x-tab-default-bottom.x-tab-rotate-left { + margin: 0 0 0 4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1909 */ +.x-tab-default-bottom.x-tab-focus { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1938 */ +.x-tab-default-bottom.x-tab-focus.x-tab-over { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1967 */ +.x-tab-default-bottom.x-tab-focus.x-tab-active { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1993 */ +.x-tab-default-left { + margin: 0 0 4px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2002 */ +.x-tab-default-left.x-tab-rotate-right { + margin: 4px 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2024 */ +.x-tab-default-left.x-tab-focus { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2053 */ +.x-tab-default-left.x-tab-focus.x-tab-over { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2082 */ +.x-tab-default-left.x-tab-focus.x-tab-active { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2108 */ +.x-tab-button-default { + height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2113 */ +.x-tab-inner-default { + font: 400 13px/20px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #f0f0f0; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2121 */ +.x-tab-bar-plain .x-tab-inner-default { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2129 */ +.x-tab-icon-right > .x-tab-inner-default, +.x-tab-icon-left > .x-tab-inner-default { + max-width: calc(100% - 20px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2137 */ +.x-tab-icon-el-default { + min-height: 20px; + background-position: center center; + font-size: 20px; + line-height: 20px; + color: #f0f0f0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2138 */ +.x-tab-icon-left > .x-tab-icon-el-default, +.x-tab-icon-right > .x-tab-icon-el-default { + width: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2143 */ +.x-tab-icon-top > .x-tab-icon-el-default, +.x-tab-icon-bottom > .x-tab-icon-el-default { + min-width: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2154 */ +.x-tab-bar-plain .x-tab-icon-el-default { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2159 */ +.x-tab-icon-el-default.x-tab-glyph { + opacity: 0.7; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2179 */ +.x-tab-text.x-tab-icon-left > .x-tab-icon-el-default { + margin-right: 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2190 */ +.x-tab-text.x-tab-icon-right > .x-tab-icon-el-default { + margin-left: 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2201 */ +.x-tab-text.x-tab-icon-top > .x-tab-icon-el-default { + margin-bottom: 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2205 */ +.x-tab-text.x-tab-icon-bottom > .x-tab-icon-el-default { + margin-top: 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2210 */ +.x-tab-focus.x-tab-default { + border-color: transparent; + background-color: transparent; + outline: 1px solid #5fa2dd; + outline-offset: -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:59 */ +.x-ie8 .x-tab-focus.x-tab-default { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:39 */ +.x-ie8 .x-tab-focus.x-tab-default:after { + position: absolute; + content: ' '; + top: 2px; + right: 2px; + bottom: 2px; + left: 2px; + border: 1px solid #5fa2dd; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2308 */ +.x-tab-bar-plain .x-tab-focus.x-tab-default .x-tab-inner-default { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2340 */ +.x-tab-bar-plain .x-tab-focus.x-tab-default .x-tab-icon-el { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2348 */ +.x-tab-over.x-tab-default { + border-color: #000; + background-image: none; + background-color: rgba(0, 0, 0, 0.08); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/background-opacity.scss:19 */ +.x-ie8 .x-tab-over.x-tab-default { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#14000000, endColorstr=#14000000); + zoom: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2379 */ +.x-ie8 .x-tab-over.x-tab-default.x-tab-rotate-left { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2385 */ +.x-ie8 .x-tab-over.x-tab-default.x-tab-rotate-right { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2411 */ +.x-tab-bar-plain .x-tab-over.x-tab-default .x-tab-inner-default { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2442 */ +.x-tab-bar-plain .x-tab-over.x-tab-default .x-tab-icon-el { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2462 */ +.x-tab-focus.x-tab-over.x-tab-default { + border-color: #000; + background-image: none; + background-color: rgba(0, 0, 0, 0.08); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/background-opacity.scss:19 */ +.x-ie8 .x-tab-focus.x-tab-over.x-tab-default { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#14000000, endColorstr=#14000000); + zoom: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2493 */ +.x-ie8 .x-tab-focus.x-tab-over.x-tab-default.x-tab-rotate-left { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2499 */ +.x-ie8 .x-tab-focus.x-tab-over.x-tab-default.x-tab-rotate-right { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2525 */ +.x-tab-bar-plain .x-tab-focus.x-tab-over.x-tab-default .x-tab-inner-default { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2556 */ +.x-tab-bar-plain .x-tab-focus.x-tab-over.x-tab-default .x-tab-icon-el { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2579 */ +.x-tab.x-tab-active.x-tab-default { + border-color: #fff; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2637 */ +.x-tab.x-tab-active.x-tab-default .x-tab-inner-default { + color: #4c82b1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2642 */ +.x-tab-bar-plain .x-tab.x-tab-active.x-tab-default .x-tab-inner-default { + color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2657 */ +.x-tab.x-tab-active.x-tab-default .x-tab-icon-el { + color: #4c82b1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2665 */ +.x-ie8 .x-tab.x-tab-active.x-tab-default .x-tab-icon-el { + color: #82a7c8; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2671 */ +.x-tab-bar-plain .x-tab.x-tab-active.x-tab-default .x-tab-icon-el { + color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2692 */ +.x-tab-focus.x-tab-active.x-tab-default { + border-color: #fff; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2755 */ +.x-tab-bar-plain .x-tab-focus.x-tab-active.x-tab-default .x-tab-inner-default { + color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2786 */ +.x-tab-bar-plain .x-tab-focus.x-tab-active.x-tab-default .x-tab-icon-el { + color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2810 */ +.x-tab.x-tab-disabled.x-tab-default { + border-color: transparent; + background-color: transparent; + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2872 */ +.x-tab.x-tab-disabled.x-tab-default .x-tab-inner-default { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; + opacity: 0.3; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2877 */ +.x-tab-bar-plain .x-tab.x-tab-disabled.x-tab-default .x-tab-inner-default { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2896 */ +.x-tab.x-tab-disabled.x-tab-default .x-tab-icon-el-default { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2901 */ +.x-tab.x-tab-disabled.x-tab-default .x-tab-icon-el { + color: #f0f0f0; + opacity: 0.3; + filter: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2922 */ +.x-tab-bar-plain .x-tab.x-tab-disabled.x-tab-default .x-tab-icon-el { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2942 */ +.x-nbr .x-tab-default { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-over .x-tab-default-top-tl, +.x-tab-over .x-tab-default-top-bl, +.x-tab-over .x-tab-default-top-tr, +.x-tab-over .x-tab-default-top-br, +.x-tab-over .x-tab-default-top-tc, +.x-tab-over .x-tab-default-top-bc { + background-image: url(images/tab/tab-default-top-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-over .x-tab-default-top-ml, +.x-tab-over .x-tab-default-top-mr { + background-image: url(images/tab/tab-default-top-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-over .x-tab-default-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-top-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus .x-tab-default-top-tl, +.x-tab-focus .x-tab-default-top-bl, +.x-tab-focus .x-tab-default-top-tr, +.x-tab-focus .x-tab-default-top-br, +.x-tab-focus .x-tab-default-top-tc, +.x-tab-focus .x-tab-default-top-bc { + background-image: url(images/tab/tab-default-top-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus .x-tab-default-top-ml, +.x-tab-focus .x-tab-default-top-mr { + background-image: url(images/tab/tab-default-top-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus .x-tab-default-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-top-focus-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-over .x-tab-default-top-tl, +.x-tab-focus.x-tab-over .x-tab-default-top-bl, +.x-tab-focus.x-tab-over .x-tab-default-top-tr, +.x-tab-focus.x-tab-over .x-tab-default-top-br, +.x-tab-focus.x-tab-over .x-tab-default-top-tc, +.x-tab-focus.x-tab-over .x-tab-default-top-bc { + background-image: url(images/tab/tab-default-top-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-over .x-tab-default-top-ml, +.x-tab-focus.x-tab-over .x-tab-default-top-mr { + background-image: url(images/tab/tab-default-top-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-over .x-tab-default-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-top-focus-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-active .x-tab-default-top-tl, +.x-tab.x-tab-active .x-tab-default-top-bl, +.x-tab.x-tab-active .x-tab-default-top-tr, +.x-tab.x-tab-active .x-tab-default-top-br, +.x-tab.x-tab-active .x-tab-default-top-tc, +.x-tab.x-tab-active .x-tab-default-top-bc { + background-image: url(images/tab/tab-default-top-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-active .x-tab-default-top-ml, +.x-tab.x-tab-active .x-tab-default-top-mr { + background-image: url(images/tab/tab-default-top-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-active .x-tab-default-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-top-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-active .x-tab-default-top-tl, +.x-tab-focus.x-tab-active .x-tab-default-top-bl, +.x-tab-focus.x-tab-active .x-tab-default-top-tr, +.x-tab-focus.x-tab-active .x-tab-default-top-br, +.x-tab-focus.x-tab-active .x-tab-default-top-tc, +.x-tab-focus.x-tab-active .x-tab-default-top-bc { + background-image: url(images/tab/tab-default-top-focus-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-active .x-tab-default-top-ml, +.x-tab-focus.x-tab-active .x-tab-default-top-mr { + background-image: url(images/tab/tab-default-top-focus-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-active .x-tab-default-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-top-focus-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-disabled .x-tab-default-top-tl, +.x-tab.x-tab-disabled .x-tab-default-top-bl, +.x-tab.x-tab-disabled .x-tab-default-top-tr, +.x-tab.x-tab-disabled .x-tab-default-top-br, +.x-tab.x-tab-disabled .x-tab-default-top-tc, +.x-tab.x-tab-disabled .x-tab-default-top-bc { + background-image: url(images/tab/tab-default-top-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-disabled .x-tab-default-top-ml, +.x-tab.x-tab-disabled .x-tab-default-top-mr { + background-image: url(images/tab/tab-default-top-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-disabled .x-tab-default-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-top-disabled-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-over .x-tab-default-right-tl, +.x-tab-over .x-tab-default-right-bl, +.x-tab-over .x-tab-default-right-tr, +.x-tab-over .x-tab-default-right-br, +.x-tab-over .x-tab-default-right-tc, +.x-tab-over .x-tab-default-right-bc { + background-image: url(images/tab/tab-default-right-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-over .x-tab-default-right-ml, +.x-tab-over .x-tab-default-right-mr { + background-image: url(images/tab/tab-default-right-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-over .x-tab-default-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-right-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus .x-tab-default-right-tl, +.x-tab-focus .x-tab-default-right-bl, +.x-tab-focus .x-tab-default-right-tr, +.x-tab-focus .x-tab-default-right-br, +.x-tab-focus .x-tab-default-right-tc, +.x-tab-focus .x-tab-default-right-bc { + background-image: url(images/tab/tab-default-right-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus .x-tab-default-right-ml, +.x-tab-focus .x-tab-default-right-mr { + background-image: url(images/tab/tab-default-right-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus .x-tab-default-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-right-focus-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-over .x-tab-default-right-tl, +.x-tab-focus.x-tab-over .x-tab-default-right-bl, +.x-tab-focus.x-tab-over .x-tab-default-right-tr, +.x-tab-focus.x-tab-over .x-tab-default-right-br, +.x-tab-focus.x-tab-over .x-tab-default-right-tc, +.x-tab-focus.x-tab-over .x-tab-default-right-bc { + background-image: url(images/tab/tab-default-right-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-over .x-tab-default-right-ml, +.x-tab-focus.x-tab-over .x-tab-default-right-mr { + background-image: url(images/tab/tab-default-right-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-over .x-tab-default-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-right-focus-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-active .x-tab-default-right-tl, +.x-tab.x-tab-active .x-tab-default-right-bl, +.x-tab.x-tab-active .x-tab-default-right-tr, +.x-tab.x-tab-active .x-tab-default-right-br, +.x-tab.x-tab-active .x-tab-default-right-tc, +.x-tab.x-tab-active .x-tab-default-right-bc { + background-image: url(images/tab/tab-default-right-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-active .x-tab-default-right-ml, +.x-tab.x-tab-active .x-tab-default-right-mr { + background-image: url(images/tab/tab-default-right-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-active .x-tab-default-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-right-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-active .x-tab-default-right-tl, +.x-tab-focus.x-tab-active .x-tab-default-right-bl, +.x-tab-focus.x-tab-active .x-tab-default-right-tr, +.x-tab-focus.x-tab-active .x-tab-default-right-br, +.x-tab-focus.x-tab-active .x-tab-default-right-tc, +.x-tab-focus.x-tab-active .x-tab-default-right-bc { + background-image: url(images/tab/tab-default-right-focus-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-active .x-tab-default-right-ml, +.x-tab-focus.x-tab-active .x-tab-default-right-mr { + background-image: url(images/tab/tab-default-right-focus-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-active .x-tab-default-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-right-focus-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-disabled .x-tab-default-right-tl, +.x-tab.x-tab-disabled .x-tab-default-right-bl, +.x-tab.x-tab-disabled .x-tab-default-right-tr, +.x-tab.x-tab-disabled .x-tab-default-right-br, +.x-tab.x-tab-disabled .x-tab-default-right-tc, +.x-tab.x-tab-disabled .x-tab-default-right-bc { + background-image: url(images/tab/tab-default-right-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-disabled .x-tab-default-right-ml, +.x-tab.x-tab-disabled .x-tab-default-right-mr { + background-image: url(images/tab/tab-default-right-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-disabled .x-tab-default-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-right-disabled-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-over .x-tab-default-bottom-tl, +.x-tab-over .x-tab-default-bottom-bl, +.x-tab-over .x-tab-default-bottom-tr, +.x-tab-over .x-tab-default-bottom-br, +.x-tab-over .x-tab-default-bottom-tc, +.x-tab-over .x-tab-default-bottom-bc { + background-image: url(images/tab/tab-default-bottom-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-over .x-tab-default-bottom-ml, +.x-tab-over .x-tab-default-bottom-mr { + background-image: url(images/tab/tab-default-bottom-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-over .x-tab-default-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-bottom-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus .x-tab-default-bottom-tl, +.x-tab-focus .x-tab-default-bottom-bl, +.x-tab-focus .x-tab-default-bottom-tr, +.x-tab-focus .x-tab-default-bottom-br, +.x-tab-focus .x-tab-default-bottom-tc, +.x-tab-focus .x-tab-default-bottom-bc { + background-image: url(images/tab/tab-default-bottom-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus .x-tab-default-bottom-ml, +.x-tab-focus .x-tab-default-bottom-mr { + background-image: url(images/tab/tab-default-bottom-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus .x-tab-default-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-bottom-focus-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-over .x-tab-default-bottom-tl, +.x-tab-focus.x-tab-over .x-tab-default-bottom-bl, +.x-tab-focus.x-tab-over .x-tab-default-bottom-tr, +.x-tab-focus.x-tab-over .x-tab-default-bottom-br, +.x-tab-focus.x-tab-over .x-tab-default-bottom-tc, +.x-tab-focus.x-tab-over .x-tab-default-bottom-bc { + background-image: url(images/tab/tab-default-bottom-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-over .x-tab-default-bottom-ml, +.x-tab-focus.x-tab-over .x-tab-default-bottom-mr { + background-image: url(images/tab/tab-default-bottom-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-over .x-tab-default-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-bottom-focus-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-active .x-tab-default-bottom-tl, +.x-tab.x-tab-active .x-tab-default-bottom-bl, +.x-tab.x-tab-active .x-tab-default-bottom-tr, +.x-tab.x-tab-active .x-tab-default-bottom-br, +.x-tab.x-tab-active .x-tab-default-bottom-tc, +.x-tab.x-tab-active .x-tab-default-bottom-bc { + background-image: url(images/tab/tab-default-bottom-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-active .x-tab-default-bottom-ml, +.x-tab.x-tab-active .x-tab-default-bottom-mr { + background-image: url(images/tab/tab-default-bottom-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-active .x-tab-default-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-bottom-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-active .x-tab-default-bottom-tl, +.x-tab-focus.x-tab-active .x-tab-default-bottom-bl, +.x-tab-focus.x-tab-active .x-tab-default-bottom-tr, +.x-tab-focus.x-tab-active .x-tab-default-bottom-br, +.x-tab-focus.x-tab-active .x-tab-default-bottom-tc, +.x-tab-focus.x-tab-active .x-tab-default-bottom-bc { + background-image: url(images/tab/tab-default-bottom-focus-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-active .x-tab-default-bottom-ml, +.x-tab-focus.x-tab-active .x-tab-default-bottom-mr { + background-image: url(images/tab/tab-default-bottom-focus-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-active .x-tab-default-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-bottom-focus-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-disabled .x-tab-default-bottom-tl, +.x-tab.x-tab-disabled .x-tab-default-bottom-bl, +.x-tab.x-tab-disabled .x-tab-default-bottom-tr, +.x-tab.x-tab-disabled .x-tab-default-bottom-br, +.x-tab.x-tab-disabled .x-tab-default-bottom-tc, +.x-tab.x-tab-disabled .x-tab-default-bottom-bc { + background-image: url(images/tab/tab-default-bottom-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-disabled .x-tab-default-bottom-ml, +.x-tab.x-tab-disabled .x-tab-default-bottom-mr { + background-image: url(images/tab/tab-default-bottom-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-disabled .x-tab-default-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-bottom-disabled-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-over .x-tab-default-left-tl, +.x-tab-over .x-tab-default-left-bl, +.x-tab-over .x-tab-default-left-tr, +.x-tab-over .x-tab-default-left-br, +.x-tab-over .x-tab-default-left-tc, +.x-tab-over .x-tab-default-left-bc { + background-image: url(images/tab/tab-default-left-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-over .x-tab-default-left-ml, +.x-tab-over .x-tab-default-left-mr { + background-image: url(images/tab/tab-default-left-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-over .x-tab-default-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-left-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus .x-tab-default-left-tl, +.x-tab-focus .x-tab-default-left-bl, +.x-tab-focus .x-tab-default-left-tr, +.x-tab-focus .x-tab-default-left-br, +.x-tab-focus .x-tab-default-left-tc, +.x-tab-focus .x-tab-default-left-bc { + background-image: url(images/tab/tab-default-left-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus .x-tab-default-left-ml, +.x-tab-focus .x-tab-default-left-mr { + background-image: url(images/tab/tab-default-left-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus .x-tab-default-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-left-focus-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-over .x-tab-default-left-tl, +.x-tab-focus.x-tab-over .x-tab-default-left-bl, +.x-tab-focus.x-tab-over .x-tab-default-left-tr, +.x-tab-focus.x-tab-over .x-tab-default-left-br, +.x-tab-focus.x-tab-over .x-tab-default-left-tc, +.x-tab-focus.x-tab-over .x-tab-default-left-bc { + background-image: url(images/tab/tab-default-left-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-over .x-tab-default-left-ml, +.x-tab-focus.x-tab-over .x-tab-default-left-mr { + background-image: url(images/tab/tab-default-left-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-over .x-tab-default-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-left-focus-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-active .x-tab-default-left-tl, +.x-tab.x-tab-active .x-tab-default-left-bl, +.x-tab.x-tab-active .x-tab-default-left-tr, +.x-tab.x-tab-active .x-tab-default-left-br, +.x-tab.x-tab-active .x-tab-default-left-tc, +.x-tab.x-tab-active .x-tab-default-left-bc { + background-image: url(images/tab/tab-default-left-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-active .x-tab-default-left-ml, +.x-tab.x-tab-active .x-tab-default-left-mr { + background-image: url(images/tab/tab-default-left-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-active .x-tab-default-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-left-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-active .x-tab-default-left-tl, +.x-tab-focus.x-tab-active .x-tab-default-left-bl, +.x-tab-focus.x-tab-active .x-tab-default-left-tr, +.x-tab-focus.x-tab-active .x-tab-default-left-br, +.x-tab-focus.x-tab-active .x-tab-default-left-tc, +.x-tab-focus.x-tab-active .x-tab-default-left-bc { + background-image: url(images/tab/tab-default-left-focus-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-active .x-tab-default-left-ml, +.x-tab-focus.x-tab-active .x-tab-default-left-mr { + background-image: url(images/tab/tab-default-left-focus-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-active .x-tab-default-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-left-focus-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-disabled .x-tab-default-left-tl, +.x-tab.x-tab-disabled .x-tab-default-left-bl, +.x-tab.x-tab-disabled .x-tab-default-left-tr, +.x-tab.x-tab-disabled .x-tab-default-left-br, +.x-tab.x-tab-disabled .x-tab-default-left-tc, +.x-tab.x-tab-disabled .x-tab-default-left-bc { + background-image: url(images/tab/tab-default-left-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-disabled .x-tab-default-left-ml, +.x-tab.x-tab-disabled .x-tab-default-left-mr { + background-image: url(images/tab/tab-default-left-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-disabled .x-tab-default-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-default-left-disabled-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2985 */ +.x-tab-default-tl, +.x-tab-default-bl, +.x-tab-default-tr, +.x-tab-default-br { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2995 */ +.x-tab-default .x-tab-close-btn { + top: 0; + right: 0; + width: 16px; + height: 16px; + font: 12px/1 FontAwesome; + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tab-default .x-tab-close-btn:before { + content: "\f00d"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3005 */ +.x-tab-bar-plain .x-tab-default .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3017 */ +.x-tab-default .x-tab-close-btn-over { + background-position: -16px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3027 */ +.x-tab-default .x-tab-close-btn-pressed { + background-position: -32px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3034 */ +.x-tab-default.x-tab-focus .x-tab-close-btn { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3038 */ +.x-tab-bar-plain .x-tab-default.x-tab-focus .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3048 */ +.x-tab-default.x-tab-over .x-tab-close-btn { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3052 */ +.x-tab-bar-plain .x-tab-default.x-tab-over .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3062 */ +.x-tab-default.x-tab-focus.x-tab-over .x-tab-close-btn { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3066 */ +.x-tab-bar-plain .x-tab-default.x-tab-focus.x-tab-over .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3076 */ +.x-tab-default.x-tab-active .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3106 */ +.x-tab-default.x-tab-focus.x-tab-active .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3119 */ +.x-tab-default.x-tab-disabled .x-tab-close-btn { + color: #fff; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; + opacity: 0.3; + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3124 */ +.x-tab-bar-plain .x-tab-default.x-tab-disabled .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3146 */ +.x-tab-closable.x-tab-default .x-tab-button { + padding-right: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:158 */ +.x-tab-bar-default { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:197 */ +.x-tab-bar-default-top > .x-tab-bar-body-default { + padding: 8px 4px 0 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:201 */ +.x-tab-bar-default-bottom > .x-tab-bar-body-default { + padding: 0 4px 8px 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:205 */ +.x-tab-bar-default-left > .x-tab-bar-body-default { + padding: 4px 0 8px 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:215 */ +.x-tab-bar-default-right > .x-tab-bar-body-default { + padding: 8px 8px 4px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:228 */ +.x-tab-bar-plain.x-tab-bar-default-top > .x-tab-bar-body-default { + padding: 8px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:232 */ +.x-tab-bar-plain.x-tab-bar-default-bottom > .x-tab-bar-body-default { + padding: 0 0 8px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:236 */ +.x-tab-bar-plain.x-tab-bar-default-left > .x-tab-bar-body-default { + padding: 0 0 0 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:246 */ +.x-tab-bar-plain.x-tab-bar-default-right > .x-tab-bar-body-default { + padding: 0 8px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:259 */ +.x-tab-bar-plain.x-tab-bar-default-horizontal { + border-top-color: transparent; + border-bottom-color: transparent; + border-left-width: 0; + border-right-width: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:266 */ +.x-tab-bar-plain.x-tab-bar-default-vertical { + border-right-color: transparent; + border-left-color: transparent; + border-top-width: 0; + border-bottom-width: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:380 */ +.x-tab-bar-horizontal > .x-tab-bar-body-default { + min-height: 44px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:383 */ +.x-ie8m .x-tab-bar-horizontal > .x-tab-bar-body-default { + min-height: 36px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:390 */ +.x-tab-bar-vertical > .x-tab-bar-body-default { + min-width: 44px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:393 */ +.x-ie8m .x-tab-bar-vertical > .x-tab-bar-body-default { + min-width: 36px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:170 */ +.x-tab-bar-default-scroller .x-box-scroller-body-horizontal { + margin-left: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:176 */ +.x-tab-bar-default-vertical-scroller .x-box-scroller-body-vertical { + margin-top: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:181 */ +.x-box-scroller-tab-bar-default { + cursor: pointer; + color: #fff; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:191 */ +.x-box-scroller-tab-bar-default.x-box-scroller-hover { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + opacity: 0.6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:197 */ +.x-box-scroller-tab-bar-default.x-box-scroller-pressed { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; + opacity: 0.7; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:203 */ +.x-box-scroller-tab-bar-default.x-box-scroller-disabled { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)"; + opacity: 0.25; + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:213 */ +.x-box-scroller-tab-bar-default.x-box-scroller-left, +.x-box-scroller-tab-bar-default.x-box-scroller-right { + width: 24px; + height: 24px; + top: 50%; + margin-top: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:240 */ +.x-box-scroller-tab-bar-default.x-box-scroller-left { + margin-left: 0; + margin-right: 0; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-tab-bar-default.x-box-scroller-left:before { + content: "\f053"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:265 */ +.x-box-scroller-tab-bar-default.x-box-scroller-right { + margin-left: 0; + margin-right: 0; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-tab-bar-default.x-box-scroller-right:before { + content: "\f054"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:292 */ +.x-box-scroller-tab-bar-default.x-box-scroller-top, +.x-box-scroller-tab-bar-default.x-box-scroller-bottom { + height: 24px; + width: 24px; + left: 50%; + margin-left: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:319 */ +.x-box-scroller-tab-bar-default.x-box-scroller-top { + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-tab-bar-default.x-box-scroller-top:before { + content: "\f077"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:344 */ +.x-box-scroller-tab-bar-default.x-box-scroller-bottom { + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-tab-bar-default.x-box-scroller-bottom:before { + content: "\f078"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:474 */ +.x-tab-bar-plain.x-tab-bar-default-scroller .x-box-scroller-body-horizontal { + margin-left: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:480 */ +.x-tab-bar-plain.x-tab-bar-default-vertical-scroller .x-box-scroller-body-vertical { + margin-top: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:485 */ +.x-tab-bar-plain .x-box-scroller-tab-bar-default { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:533 */ +.x-tab-bar-default-top .x-box-scroller-tab-bar-default { + margin-top: -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:537 */ +.x-tab-bar-default-right .x-box-scroller-tab-bar-default { + margin-left: -16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:541 */ +.x-tab-bar-default-bottom .x-box-scroller-tab-bar-default { + margin-top: -16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:545 */ +.x-tab-bar-default-left .x-box-scroller-tab-bar-default { + margin-left: -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:554 */ +.x-box-scroller-tab-bar-default { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:560 */ +.x-box-scroller-tab-bar-default .x-ie8 .x-box-scroller-plain { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-btn-plain-toolbar-small { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 7px 7px 7px 7px; + border-width: 1px; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-btn-plain-toolbar-small-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-btn-plain-toolbar-small { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-btn-plain-toolbar-small-frameInfo { + font-family: th-1-1-1-1-1-1-1-1-7-7-7-7; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-btn-plain-toolbar-small-tl { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-btn-plain-toolbar-small-tr { + background-position: right -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-btn-plain-toolbar-small-bl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-btn-plain-toolbar-small-br { + background-position: right -5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-btn-plain-toolbar-small-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-btn-plain-toolbar-small-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-btn-plain-toolbar-small-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-btn-plain-toolbar-small-bc { + background-position: 0 -1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-btn-plain-toolbar-small-tr, +.x-btn-plain-toolbar-small-br, +.x-btn-plain-toolbar-small-mr { + padding-right: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-btn-plain-toolbar-small-tl, +.x-btn-plain-toolbar-small-bl, +.x-btn-plain-toolbar-small-ml { + padding-left: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-btn-plain-toolbar-small-tc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-btn-plain-toolbar-small-bc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-btn-plain-toolbar-small-mc { + padding: 7px 7px 7px 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:445 */ +.x-btn-plain-toolbar-small { + border-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:452 */ +.x-btn-button-plain-toolbar-small { + min-height: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:457 */ +.x-ie9m .x-btn-button-plain-toolbar-small { + min-height: auto; + height: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:464 */ +.x-btn-inner-plain-toolbar-small { + font: 400 12px/16px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #606060; + padding: 0 5px; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:479 */ +.x-btn-icon-right > .x-btn-inner-plain-toolbar-small, +.x-btn-icon-left > .x-btn-inner-plain-toolbar-small { + max-width: calc(100% - 16px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:487 */ +.x-ie10p .x-btn-inner-plain-toolbar-small { + max-width: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:492 */ +.x-btn-icon-el-plain-toolbar-small { + font-size: 16px; + height: 16px; + color: #919191; + line-height: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:498 */ +.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-small, +.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small { + width: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:503 */ +.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-small, +.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-small { + min-width: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:525 */ +.x-ie8 .x-btn-icon-el-plain-toolbar-small.x-btn-glyph { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:532 */ +.x-btn-text.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-small { + margin-right: 3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:543 */ +.x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small { + margin-left: 3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:554 */ +.x-btn-text.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-small { + margin-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:558 */ +.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-small { + margin-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:564 */ +.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-small { + padding-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:567 */ +.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small { + margin-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:574 */ +.x-btn-arrow-bottom > .x-btn-button-plain-toolbar-small, +.x-btn-split-bottom > .x-btn-button-plain-toolbar-small { + padding-bottom: 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:580 */ +.x-btn-wrap-plain-toolbar-small.x-btn-arrow-right:after { + width: 18px; + content: "\f0d7"; + font: 16px/1 FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:607 */ +.x-btn-wrap-plain-toolbar-small.x-btn-arrow-bottom:after { + height: 12px; + content: "\f0d7"; + font: 16px/12px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:634 */ +.x-btn-wrap-plain-toolbar-small.x-btn-split-right > .x-btn-button { + padding-right: 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:642 */ +.x-btn-wrap-plain-toolbar-small.x-btn-split-right > .x-btn-button:after { + border-right: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:647 */ +.x-btn-wrap-plain-toolbar-small.x-btn-split-right:after { + width: 20px; + content: "\f0d7"; + font: 16px/1 FontAwesome; + color: #606060; + padding-left: 7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:673 */ +.x-btn-wrap-plain-toolbar-small.x-btn-split-bottom { + margin-bottom: -7px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:675 */ +.x-btn-wrap-plain-toolbar-small.x-btn-split-bottom > .x-btn-button:after { + border-bottom: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:686 */ +.x-btn-wrap-plain-toolbar-small.x-btn-split-bottom:after { + height: 20px; + content: "\f0d7"; + font: 16px/20px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:719 */ +.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-small { + padding-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:722 */ +.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-small { + margin-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:727 */ +.x-btn-focus.x-btn-plain-toolbar-small { + background-image: none; + background-color: transparent; + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:762 */ +.x-btn-plain-toolbar-small .x-btn-arrow-el { + position: absolute; + top: 0; + right: 0; + height: 100%; + width: 27px; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:778 */ +.x-btn-plain-toolbar-small.x-arrow-focus .x-btn-arrow-el { + border: 1px solid #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:785 */ +.x-btn-over.x-btn-plain-toolbar-small { + border-color: #dbdbdb; + background-image: none; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:812 */ +.x-btn-focus.x-btn-over.x-btn-plain-toolbar-small { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:840 */ +.x-btn.x-btn-menu-active.x-btn-plain-toolbar-small, +.x-btn.x-btn-pressed.x-btn-plain-toolbar-small { + border-color: #d2d2d2; + background-image: none; + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:868 */ +.x-btn-focus.x-btn-menu-active.x-btn-plain-toolbar-small, +.x-btn-focus.x-btn-pressed.x-btn-plain-toolbar-small { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:897 */ +.x-btn.x-btn-disabled.x-btn-plain-toolbar-small { + background-image: none; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:929 */ +.x-btn-focus .x-btn-plain-toolbar-small-tl, +.x-btn-focus .x-btn-plain-toolbar-small-bl, +.x-btn-focus .x-btn-plain-toolbar-small-tr, +.x-btn-focus .x-btn-plain-toolbar-small-br, +.x-btn-focus .x-btn-plain-toolbar-small-tc, +.x-btn-focus .x-btn-plain-toolbar-small-bc { + background-image: url(images/btn/btn-plain-toolbar-small-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:937 */ +.x-btn-focus .x-btn-plain-toolbar-small-ml, +.x-btn-focus .x-btn-plain-toolbar-small-mr { + background-image: url(images/btn/btn-plain-toolbar-small-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:941 */ +.x-btn-focus .x-btn-plain-toolbar-small-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:953 */ +.x-btn-over .x-btn-plain-toolbar-small-tl, +.x-btn-over .x-btn-plain-toolbar-small-bl, +.x-btn-over .x-btn-plain-toolbar-small-tr, +.x-btn-over .x-btn-plain-toolbar-small-br, +.x-btn-over .x-btn-plain-toolbar-small-tc, +.x-btn-over .x-btn-plain-toolbar-small-bc { + background-image: url(images/btn/btn-plain-toolbar-small-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:961 */ +.x-btn-over .x-btn-plain-toolbar-small-ml, +.x-btn-over .x-btn-plain-toolbar-small-mr { + background-image: url(images/btn/btn-plain-toolbar-small-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:965 */ +.x-btn-over .x-btn-plain-toolbar-small-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:977 */ +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-tl, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-bl, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-tr, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-br, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-tc, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-bc { + background-image: url(images/btn/btn-plain-toolbar-small-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:985 */ +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-ml, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-mr { + background-image: url(images/btn/btn-plain-toolbar-small-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:989 */ +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-small-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1003 */ +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-tl, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-bl, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-tr, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-br, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-tc, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-bc, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-tl, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-bl, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-tr, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-br, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-tc, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-bc { + background-image: url(images/btn/btn-plain-toolbar-small-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1011 */ +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-ml, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-mr, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-ml, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-mr { + background-image: url(images/btn/btn-plain-toolbar-small-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1015 */ +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-small-mc, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-small-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1028 */ +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-tl, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-bl, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-tr, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-br, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-tc, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-bc, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-tl, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-bl, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-tr, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-br, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-tc, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-bc { + background-image: url(images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1036 */ +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-ml, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-mr, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-ml, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-mr { + background-image: url(images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1040 */ +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-small-mc, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-small-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1053 */ +.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-tl, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-bl, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-tr, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-br, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-tc, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-bc { + background-image: url(images/btn/btn-plain-toolbar-small-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1061 */ +.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-ml, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-mr { + background-image: url(images/btn/btn-plain-toolbar-small-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1065 */ +.x-btn.x-btn-disabled .x-btn-plain-toolbar-small-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1075 */ +.x-nbr .x-btn-plain-toolbar-small { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1081 */ +.x-btn-disabled.x-btn-plain-toolbar-small { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-btn-plain-toolbar-medium { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 8px 8px 8px 8px; + border-width: 1px; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-btn-plain-toolbar-medium-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-btn-plain-toolbar-medium { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-btn-plain-toolbar-medium-frameInfo { + font-family: th-1-1-1-1-1-1-1-1-8-8-8-8; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-btn-plain-toolbar-medium-tl { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-btn-plain-toolbar-medium-tr { + background-position: right -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-btn-plain-toolbar-medium-bl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-btn-plain-toolbar-medium-br { + background-position: right -5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-btn-plain-toolbar-medium-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-btn-plain-toolbar-medium-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-btn-plain-toolbar-medium-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-btn-plain-toolbar-medium-bc { + background-position: 0 -1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-btn-plain-toolbar-medium-tr, +.x-btn-plain-toolbar-medium-br, +.x-btn-plain-toolbar-medium-mr { + padding-right: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-btn-plain-toolbar-medium-tl, +.x-btn-plain-toolbar-medium-bl, +.x-btn-plain-toolbar-medium-ml { + padding-left: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-btn-plain-toolbar-medium-tc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-btn-plain-toolbar-medium-bc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-btn-plain-toolbar-medium-mc { + padding: 8px 8px 8px 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:445 */ +.x-btn-plain-toolbar-medium { + border-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:452 */ +.x-btn-button-plain-toolbar-medium { + min-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:457 */ +.x-ie9m .x-btn-button-plain-toolbar-medium { + min-height: auto; + height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:464 */ +.x-btn-inner-plain-toolbar-medium { + font: 400 14px/18px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #606060; + padding: 0 8px; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:479 */ +.x-btn-icon-right > .x-btn-inner-plain-toolbar-medium, +.x-btn-icon-left > .x-btn-inner-plain-toolbar-medium { + max-width: calc(100% - 20px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:487 */ +.x-ie10p .x-btn-inner-plain-toolbar-medium { + max-width: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:492 */ +.x-btn-icon-el-plain-toolbar-medium { + font-size: 20px; + height: 20px; + color: #919191; + line-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:498 */ +.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-medium, +.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium { + width: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:503 */ +.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-medium, +.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-medium { + min-width: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:525 */ +.x-ie8 .x-btn-icon-el-plain-toolbar-medium.x-btn-glyph { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:532 */ +.x-btn-text.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-medium { + margin-right: 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:543 */ +.x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium { + margin-left: 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:554 */ +.x-btn-text.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-medium { + margin-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:558 */ +.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-medium { + margin-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:564 */ +.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-medium { + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:567 */ +.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium { + margin-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:574 */ +.x-btn-arrow-bottom > .x-btn-button-plain-toolbar-medium, +.x-btn-split-bottom > .x-btn-button-plain-toolbar-medium { + padding-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:580 */ +.x-btn-wrap-plain-toolbar-medium.x-btn-arrow-right:after { + width: 20px; + content: "\f0d7"; + font: 20px/1 FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:607 */ +.x-btn-wrap-plain-toolbar-medium.x-btn-arrow-bottom:after { + height: 14px; + content: "\f0d7"; + font: 20px/14px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:634 */ +.x-btn-wrap-plain-toolbar-medium.x-btn-split-right > .x-btn-button { + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:642 */ +.x-btn-wrap-plain-toolbar-medium.x-btn-split-right > .x-btn-button:after { + border-right: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:647 */ +.x-btn-wrap-plain-toolbar-medium.x-btn-split-right:after { + width: 26px; + content: "\f0d7"; + font: 20px/1 FontAwesome; + color: #606060; + padding-left: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:673 */ +.x-btn-wrap-plain-toolbar-medium.x-btn-split-bottom { + margin-bottom: -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:675 */ +.x-btn-wrap-plain-toolbar-medium.x-btn-split-bottom > .x-btn-button:after { + border-bottom: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:686 */ +.x-btn-wrap-plain-toolbar-medium.x-btn-split-bottom:after { + height: 24px; + content: "\f0d7"; + font: 20px/24px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:719 */ +.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-medium { + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:722 */ +.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-medium { + margin-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:727 */ +.x-btn-focus.x-btn-plain-toolbar-medium { + background-image: none; + background-color: transparent; + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:762 */ +.x-btn-plain-toolbar-medium .x-btn-arrow-el { + position: absolute; + top: 0; + right: 0; + height: 100%; + width: 34px; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:778 */ +.x-btn-plain-toolbar-medium.x-arrow-focus .x-btn-arrow-el { + border: 1px solid #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:785 */ +.x-btn-over.x-btn-plain-toolbar-medium { + border-color: #dbdbdb; + background-image: none; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:812 */ +.x-btn-focus.x-btn-over.x-btn-plain-toolbar-medium { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:840 */ +.x-btn.x-btn-menu-active.x-btn-plain-toolbar-medium, +.x-btn.x-btn-pressed.x-btn-plain-toolbar-medium { + border-color: #d2d2d2; + background-image: none; + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:868 */ +.x-btn-focus.x-btn-menu-active.x-btn-plain-toolbar-medium, +.x-btn-focus.x-btn-pressed.x-btn-plain-toolbar-medium { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:897 */ +.x-btn.x-btn-disabled.x-btn-plain-toolbar-medium { + background-image: none; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:929 */ +.x-btn-focus .x-btn-plain-toolbar-medium-tl, +.x-btn-focus .x-btn-plain-toolbar-medium-bl, +.x-btn-focus .x-btn-plain-toolbar-medium-tr, +.x-btn-focus .x-btn-plain-toolbar-medium-br, +.x-btn-focus .x-btn-plain-toolbar-medium-tc, +.x-btn-focus .x-btn-plain-toolbar-medium-bc { + background-image: url(images/btn/btn-plain-toolbar-medium-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:937 */ +.x-btn-focus .x-btn-plain-toolbar-medium-ml, +.x-btn-focus .x-btn-plain-toolbar-medium-mr { + background-image: url(images/btn/btn-plain-toolbar-medium-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:941 */ +.x-btn-focus .x-btn-plain-toolbar-medium-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:953 */ +.x-btn-over .x-btn-plain-toolbar-medium-tl, +.x-btn-over .x-btn-plain-toolbar-medium-bl, +.x-btn-over .x-btn-plain-toolbar-medium-tr, +.x-btn-over .x-btn-plain-toolbar-medium-br, +.x-btn-over .x-btn-plain-toolbar-medium-tc, +.x-btn-over .x-btn-plain-toolbar-medium-bc { + background-image: url(images/btn/btn-plain-toolbar-medium-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:961 */ +.x-btn-over .x-btn-plain-toolbar-medium-ml, +.x-btn-over .x-btn-plain-toolbar-medium-mr { + background-image: url(images/btn/btn-plain-toolbar-medium-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:965 */ +.x-btn-over .x-btn-plain-toolbar-medium-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:977 */ +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-tl, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-bl, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-tr, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-br, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-tc, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-bc { + background-image: url(images/btn/btn-plain-toolbar-medium-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:985 */ +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-ml, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-mr { + background-image: url(images/btn/btn-plain-toolbar-medium-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:989 */ +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-medium-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1003 */ +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-tl, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-bl, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-tr, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-br, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-tc, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-bc, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-tl, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-bl, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-tr, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-br, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-tc, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-bc { + background-image: url(images/btn/btn-plain-toolbar-medium-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1011 */ +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-ml, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-mr, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-ml, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-mr { + background-image: url(images/btn/btn-plain-toolbar-medium-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1015 */ +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-medium-mc, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-medium-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1028 */ +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-tl, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-bl, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-tr, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-br, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-tc, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-bc, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-tl, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-bl, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-tr, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-br, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-tc, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-bc { + background-image: url(images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1036 */ +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-ml, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-mr, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-ml, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-mr { + background-image: url(images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1040 */ +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-medium-mc, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-medium-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1053 */ +.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-tl, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-bl, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-tr, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-br, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-tc, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-bc { + background-image: url(images/btn/btn-plain-toolbar-medium-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1061 */ +.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-ml, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-mr { + background-image: url(images/btn/btn-plain-toolbar-medium-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1065 */ +.x-btn.x-btn-disabled .x-btn-plain-toolbar-medium-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1075 */ +.x-nbr .x-btn-plain-toolbar-medium { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1081 */ +.x-btn-disabled.x-btn-plain-toolbar-medium { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-btn-plain-toolbar-large { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 9px 9px 9px 9px; + border-width: 1px; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-btn-plain-toolbar-large-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-btn-plain-toolbar-large { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-btn-plain-toolbar-large-frameInfo { + font-family: th-1-1-1-1-1-1-1-1-9-9-9-9; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-btn-plain-toolbar-large-tl { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-btn-plain-toolbar-large-tr { + background-position: right -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-btn-plain-toolbar-large-bl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-btn-plain-toolbar-large-br { + background-position: right -5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-btn-plain-toolbar-large-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-btn-plain-toolbar-large-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-btn-plain-toolbar-large-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-btn-plain-toolbar-large-bc { + background-position: 0 -1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-btn-plain-toolbar-large-tr, +.x-btn-plain-toolbar-large-br, +.x-btn-plain-toolbar-large-mr { + padding-right: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-btn-plain-toolbar-large-tl, +.x-btn-plain-toolbar-large-bl, +.x-btn-plain-toolbar-large-ml { + padding-left: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-btn-plain-toolbar-large-tc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-btn-plain-toolbar-large-bc { + height: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-btn-plain-toolbar-large-mc { + padding: 9px 9px 9px 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:445 */ +.x-btn-plain-toolbar-large { + border-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:452 */ +.x-btn-button-plain-toolbar-large { + min-height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:457 */ +.x-ie9m .x-btn-button-plain-toolbar-large { + min-height: auto; + height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:464 */ +.x-btn-inner-plain-toolbar-large { + font: 400 16px/20px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #606060; + padding: 0 10px; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:479 */ +.x-btn-icon-right > .x-btn-inner-plain-toolbar-large, +.x-btn-icon-left > .x-btn-inner-plain-toolbar-large { + max-width: calc(100% - 24px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:487 */ +.x-ie10p .x-btn-inner-plain-toolbar-large { + max-width: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:492 */ +.x-btn-icon-el-plain-toolbar-large { + font-size: 24px; + height: 24px; + color: #919191; + line-height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:498 */ +.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-large, +.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large { + width: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:503 */ +.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-large, +.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-large { + min-width: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:525 */ +.x-ie8 .x-btn-icon-el-plain-toolbar-large.x-btn-glyph { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:532 */ +.x-btn-text.x-btn-icon-left > .x-btn-icon-el-plain-toolbar-large { + margin-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:543 */ +.x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large { + margin-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:554 */ +.x-btn-text.x-btn-icon-top > .x-btn-icon-el-plain-toolbar-large { + margin-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:558 */ +.x-btn-text.x-btn-icon-bottom > .x-btn-icon-el-plain-toolbar-large { + margin-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:564 */ +.x-btn-arrow-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-large { + padding-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:567 */ +.x-btn-arrow-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large { + margin-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:574 */ +.x-btn-arrow-bottom > .x-btn-button-plain-toolbar-large, +.x-btn-split-bottom > .x-btn-button-plain-toolbar-large { + padding-bottom: 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:580 */ +.x-btn-wrap-plain-toolbar-large.x-btn-arrow-right:after { + width: 22px; + content: "\f0d7"; + font: 24px/1 FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:607 */ +.x-btn-wrap-plain-toolbar-large.x-btn-arrow-bottom:after { + height: 16px; + content: "\f0d7"; + font: 24px/16px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:634 */ +.x-btn-wrap-plain-toolbar-large.x-btn-split-right > .x-btn-button { + padding-right: 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:642 */ +.x-btn-wrap-plain-toolbar-large.x-btn-split-right > .x-btn-button:after { + border-right: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:647 */ +.x-btn-wrap-plain-toolbar-large.x-btn-split-right:after { + width: 32px; + content: "\f0d7"; + font: 24px/1 FontAwesome; + color: #606060; + padding-left: 9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:673 */ +.x-btn-wrap-plain-toolbar-large.x-btn-split-bottom { + margin-bottom: -9px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:675 */ +.x-btn-wrap-plain-toolbar-large.x-btn-split-bottom > .x-btn-button:after { + border-bottom: 1px solid #e4e4e4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:686 */ +.x-btn-wrap-plain-toolbar-large.x-btn-split-bottom:after { + height: 28px; + content: "\f0d7"; + font: 24px/28px FontAwesome; + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:719 */ +.x-btn-split-right > .x-btn-icon.x-btn-no-text.x-btn-button-plain-toolbar-large { + padding-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:722 */ +.x-btn-split-right > .x-btn-text.x-btn-icon-right > .x-btn-icon-el-plain-toolbar-large { + margin-right: 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:727 */ +.x-btn-focus.x-btn-plain-toolbar-large { + background-image: none; + background-color: transparent; + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:762 */ +.x-btn-plain-toolbar-large .x-btn-arrow-el { + position: absolute; + top: 0; + right: 0; + height: 100%; + width: 41px; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:778 */ +.x-btn-plain-toolbar-large.x-arrow-focus .x-btn-arrow-el { + border: 1px solid #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:785 */ +.x-btn-over.x-btn-plain-toolbar-large { + border-color: #dbdbdb; + background-image: none; + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:812 */ +.x-btn-focus.x-btn-over.x-btn-plain-toolbar-large { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:840 */ +.x-btn.x-btn-menu-active.x-btn-plain-toolbar-large, +.x-btn.x-btn-pressed.x-btn-plain-toolbar-large { + border-color: #d2d2d2; + background-image: none; + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:868 */ +.x-btn-focus.x-btn-menu-active.x-btn-plain-toolbar-large, +.x-btn-focus.x-btn-pressed.x-btn-plain-toolbar-large { + -webkit-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + -moz-box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; + box-shadow: #5fa2dd 0 1px 0px 0 inset, #5fa2dd 0 -1px 0px 0 inset, #5fa2dd -1px 0 0px 0 inset, #5fa2dd 1px 0 0px 0 inset; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:897 */ +.x-btn.x-btn-disabled.x-btn-plain-toolbar-large { + background-image: none; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:929 */ +.x-btn-focus .x-btn-plain-toolbar-large-tl, +.x-btn-focus .x-btn-plain-toolbar-large-bl, +.x-btn-focus .x-btn-plain-toolbar-large-tr, +.x-btn-focus .x-btn-plain-toolbar-large-br, +.x-btn-focus .x-btn-plain-toolbar-large-tc, +.x-btn-focus .x-btn-plain-toolbar-large-bc { + background-image: url(images/btn/btn-plain-toolbar-large-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:937 */ +.x-btn-focus .x-btn-plain-toolbar-large-ml, +.x-btn-focus .x-btn-plain-toolbar-large-mr { + background-image: url(images/btn/btn-plain-toolbar-large-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:941 */ +.x-btn-focus .x-btn-plain-toolbar-large-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:953 */ +.x-btn-over .x-btn-plain-toolbar-large-tl, +.x-btn-over .x-btn-plain-toolbar-large-bl, +.x-btn-over .x-btn-plain-toolbar-large-tr, +.x-btn-over .x-btn-plain-toolbar-large-br, +.x-btn-over .x-btn-plain-toolbar-large-tc, +.x-btn-over .x-btn-plain-toolbar-large-bc { + background-image: url(images/btn/btn-plain-toolbar-large-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:961 */ +.x-btn-over .x-btn-plain-toolbar-large-ml, +.x-btn-over .x-btn-plain-toolbar-large-mr { + background-image: url(images/btn/btn-plain-toolbar-large-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:965 */ +.x-btn-over .x-btn-plain-toolbar-large-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:977 */ +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-tl, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-bl, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-tr, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-br, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-tc, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-bc { + background-image: url(images/btn/btn-plain-toolbar-large-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:985 */ +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-ml, +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-mr { + background-image: url(images/btn/btn-plain-toolbar-large-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:989 */ +.x-btn-focus.x-btn-over .x-btn-plain-toolbar-large-mc { + background-color: #ececec; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1003 */ +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-tl, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-bl, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-tr, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-br, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-tc, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-bc, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-tl, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-bl, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-tr, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-br, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-tc, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-bc { + background-image: url(images/btn/btn-plain-toolbar-large-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1011 */ +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-ml, +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-mr, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-ml, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-mr { + background-image: url(images/btn/btn-plain-toolbar-large-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1015 */ +.x-btn.x-btn-menu-active .x-btn-plain-toolbar-large-mc, +.x-btn.x-btn-pressed .x-btn-plain-toolbar-large-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1028 */ +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-tl, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-bl, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-tr, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-br, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-tc, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-bc, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-tl, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-bl, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-tr, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-br, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-tc, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-bc { + background-image: url(images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1036 */ +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-ml, +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-mr, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-ml, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-mr { + background-image: url(images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1040 */ +.x-btn-focus.x-btn-menu-active .x-btn-plain-toolbar-large-mc, +.x-btn-focus.x-btn-pressed .x-btn-plain-toolbar-large-mc { + background-color: #e2e2e2; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1053 */ +.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tl, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-bl, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tr, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-br, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-tc, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-bc { + background-image: url(images/btn/btn-plain-toolbar-large-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1061 */ +.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-ml, +.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-mr { + background-image: url(images/btn/btn-plain-toolbar-large-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1065 */ +.x-btn.x-btn-disabled .x-btn-plain-toolbar-large-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1075 */ +.x-nbr .x-btn-plain-toolbar-large { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/button/Button.scss:1081 */ +.x-btn-disabled.x-btn-plain-toolbar-large { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/button/Button.scss:220 */ +.x-btn-plain-toolbar-small-disabled .x-btn-icon-el, +.x-btn-plain-toolbar-medium-disabled .x-btn-icon-el, +.x-btn-plain-toolbar-large-disabled .x-btn-icon-el { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/button/Button.scss:223 */ +.x-ie8 .x-btn-plain-toolbar-small-disabled .x-btn-icon-el, +.x-ie8 .x-btn-plain-toolbar-medium-disabled .x-btn-icon-el, +.x-ie8 .x-btn-plain-toolbar-large-disabled .x-btn-icon-el { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:276 */ +.x-panel-light { + border-color: #d0d0d0; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:282 */ +.x-panel-header-light { + font-size: 16px; + border: 1px solid #d0d0d0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:289 */ +.x-panel-header-light .x-tool-img { + color: #919191; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:306 */ +.x-panel-header-light-horizontal { + padding: 11px 15px 12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:310 */ +.x-panel-header-light-horizontal .x-panel-header-light-tab-bar { + margin-top: -11px; + margin-bottom: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:318 */ +.x-panel-header-light-horizontal.x-header-noborder { + padding: 12px 16px 12px 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:322 */ +.x-panel-header-light-horizontal.x-header-noborder .x-panel-header-light-tab-bar { + margin-top: -12px; + margin-bottom: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:330 */ +.x-panel-header-light-vertical { + padding: 15px 11px 15px 12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:334 */ +.x-panel-header-light-vertical .x-panel-header-light-tab-bar { + margin-right: -11px; + margin-left: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:342 */ +.x-panel-header-light-vertical.x-header-noborder { + padding: 16px 12px 16px 12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:346 */ +.x-panel-header-light-vertical.x-header-noborder .x-panel-header-light-tab-bar { + margin-right: -12px; + margin-left: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:380 */ +.x-panel-header-title-light { + color: #606060; + font-size: 16px; + font-weight: 400; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + line-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:393 */ +.x-panel-header-title-light > .x-title-text-light { + text-transform: none; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:440 */ +.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-top { + height: 24px; + padding-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:445 */ +.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-right { + width: 24px; + padding-left: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:457 */ +.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-bottom { + height: 24px; + padding-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:462 */ +.x-panel-header-title-light > .x-title-icon-wrap-light.x-title-icon-left { + width: 24px; + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:474 */ +.x-panel-header-title-light > .x-title-icon-wrap-light > .x-title-icon-light { + width: 16px; + height: 16px; + font-size: 16px; + color: #606060; + background-position: center center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:493 */ +.x-ie8 .x-panel-header-title-light > .x-title-icon-wrap-light > .x-title-icon-light { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:503 */ +.x-panel-body-light { + background: #fff; + border-color: #d0d0d0; + color: #404040; + font-size: 13px; + font-weight: 300; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + border-width: 1px; + border-style: solid; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:667 */ +.x-panel-header-light { + background-image: none; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:671 */ +.x-panel-header-light-vertical { + background-image: none; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:729 */ +.x-panel .x-panel-header-light-collapsed-border-top { + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:733 */ +.x-panel .x-panel-header-light-collapsed-border-right { + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:737 */ +.x-panel .x-panel-header-light-collapsed-border-bottom { + border-top-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:741 */ +.x-panel .x-panel-header-light-collapsed-border-left { + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:777 */ +.x-panel-header-light-horizontal .x-tool-after-title { + margin: 0 0 0 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:787 */ +.x-panel-header-light-horizontal .x-tool-before-title { + margin: 0 6px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:799 */ +.x-panel-header-light-vertical .x-tool-after-title { + margin: 6px 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:809 */ +.x-panel-header-light-vertical .x-tool-before-title { + margin: 0 0 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:821 */ +.x-panel-header-light .x-tool-focus { + outline: 1px solid #5fa2dd; + outline-offset: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:59 */ +.x-ie8 .x-panel-header-light .x-tool-focus { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:39 */ +.x-ie8 .x-panel-header-light .x-tool-focus:after { + position: absolute; + content: ' '; + top: -2px; + right: -2px; + bottom: -2px; + left: -2px; + border: 1px solid #5fa2dd; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:850 */ +.x-panel-light-resizable .x-panel-handle { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + opacity: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:2 */ +.x-panel-light-outer-border-l { + border-left-color: #d0d0d0 !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:6 */ +.x-panel-light-outer-border-b { + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:10 */ +.x-panel-light-outer-border-bl { + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 1px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:16 */ +.x-panel-light-outer-border-r { + border-right-color: #d0d0d0 !important; + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:20 */ +.x-panel-light-outer-border-rl { + border-right-color: #d0d0d0 !important; + border-right-width: 1px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:26 */ +.x-panel-light-outer-border-rb { + border-right-color: #d0d0d0 !important; + border-right-width: 1px !important; + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:32 */ +.x-panel-light-outer-border-rbl { + border-right-color: #d0d0d0 !important; + border-right-width: 1px !important; + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 1px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:40 */ +.x-panel-light-outer-border-t { + border-top-color: #d0d0d0 !important; + border-top-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:44 */ +.x-panel-light-outer-border-tl { + border-top-color: #d0d0d0 !important; + border-top-width: 1px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:50 */ +.x-panel-light-outer-border-tb { + border-top-color: #d0d0d0 !important; + border-top-width: 1px !important; + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:56 */ +.x-panel-light-outer-border-tbl { + border-top-color: #d0d0d0 !important; + border-top-width: 1px !important; + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 1px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:64 */ +.x-panel-light-outer-border-tr { + border-top-color: #d0d0d0 !important; + border-top-width: 1px !important; + border-right-color: #d0d0d0 !important; + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:70 */ +.x-panel-light-outer-border-trl { + border-top-color: #d0d0d0 !important; + border-top-width: 1px !important; + border-right-color: #d0d0d0 !important; + border-right-width: 1px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:78 */ +.x-panel-light-outer-border-trb { + border-top-color: #d0d0d0 !important; + border-top-width: 1px !important; + border-right-color: #d0d0d0 !important; + border-right-width: 1px !important; + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:86 */ +.x-panel-light-outer-border-trbl { + border-color: #d0d0d0 !important; + border-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:276 */ +.x-panel-light-framed { + border-color: #d0d0d0; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:282 */ +.x-panel-header-light-framed { + font-size: 16px; + border: 2px solid #d0d0d0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:289 */ +.x-panel-header-light-framed .x-tool-img { + color: #919191; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:306 */ +.x-panel-header-light-framed-horizontal { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:310 */ +.x-panel-header-light-framed-horizontal .x-panel-header-light-framed-tab-bar { + margin-top: -10px; + margin-bottom: -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:318 */ +.x-panel-header-light-framed-horizontal.x-header-noborder { + padding: 12px 16px 10px 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:322 */ +.x-panel-header-light-framed-horizontal.x-header-noborder .x-panel-header-light-framed-tab-bar { + margin-top: -12px; + margin-bottom: -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:330 */ +.x-panel-header-light-framed-vertical { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:334 */ +.x-panel-header-light-framed-vertical .x-panel-header-light-framed-tab-bar { + margin-right: -10px; + margin-left: -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:342 */ +.x-panel-header-light-framed-vertical.x-header-noborder { + padding: 16px 12px 16px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:346 */ +.x-panel-header-light-framed-vertical.x-header-noborder .x-panel-header-light-framed-tab-bar { + margin-right: -12px; + margin-left: -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:380 */ +.x-panel-header-title-light-framed { + color: #606060; + font-size: 16px; + font-weight: 400; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + line-height: 20px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:393 */ +.x-panel-header-title-light-framed > .x-title-text-light-framed { + text-transform: none; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:440 */ +.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-top { + height: 24px; + padding-bottom: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:445 */ +.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-right { + width: 24px; + padding-left: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:457 */ +.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-bottom { + height: 24px; + padding-top: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:462 */ +.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed.x-title-icon-left { + width: 24px; + padding-right: 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:474 */ +.x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed > .x-title-icon-light-framed { + width: 16px; + height: 16px; + font-size: 16px; + color: #606060; + background-position: center center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:493 */ +.x-ie8 .x-panel-header-title-light-framed > .x-title-icon-wrap-light-framed > .x-title-icon-light-framed { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:503 */ +.x-panel-body-light-framed { + background: #fff; + border-color: #d0d0d0; + color: #404040; + font-size: 13px; + font-weight: 300; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + border-width: 1px; + border-style: solid; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-light-framed { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 0 0 0 0; + border-width: 2px; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-light-framed-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-light-framed { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-light-framed-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-0px-0px-0px-0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-light-framed-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-light-framed-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-light-framed-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-light-framed-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-light-framed-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-light-framed-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-light-framed-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-light-framed-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-light-framed-tr, +.x-panel-light-framed-br, +.x-panel-light-framed-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-light-framed-tl, +.x-panel-light-framed-bl, +.x-panel-light-framed-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-light-framed-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-light-framed-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-light-framed-tl, +.x-panel-light-framed-bl, +.x-panel-light-framed-tr, +.x-panel-light-framed-br, +.x-panel-light-framed-tc, +.x-panel-light-framed-bc, +.x-panel-light-framed-ml, +.x-panel-light-framed-mr { + background-image: url(images/panel/panel-light-framed-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-light-framed-ml, +.x-panel-light-framed-mr { + background-image: url(images/panel/panel-light-framed-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-light-framed-mc { + padding: 0px 0px 0px 0px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-light-framed-top { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 2px 2px 0 2px; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-light-framed-top-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-light-framed-top { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-light-framed-top-frameInfo { + font-family: dh-2-2-0-2-2-2-0-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-light-framed-top-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-light-framed-top-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-light-framed-top-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-light-framed-top-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-light-framed-top-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-light-framed-top-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-light-framed-top-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-light-framed-top-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-light-framed-top-tr, +.x-panel-header-light-framed-top-br, +.x-panel-header-light-framed-top-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-light-framed-top-tl, +.x-panel-header-light-framed-top-bl, +.x-panel-header-light-framed-top-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-light-framed-top-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-light-framed-top-bc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-light-framed-top-tl, +.x-panel-header-light-framed-top-bl, +.x-panel-header-light-framed-top-tr, +.x-panel-header-light-framed-top-br, +.x-panel-header-light-framed-top-tc, +.x-panel-header-light-framed-top-bc, +.x-panel-header-light-framed-top-ml, +.x-panel-header-light-framed-top-mr { + background-image: url(images/panel-header/panel-header-light-framed-top-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-light-framed-top-ml, +.x-panel-header-light-framed-top-mr { + background-image: url(images/panel-header/panel-header-light-framed-top-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-light-framed-top-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-light-framed-right { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px 2px 2px 0; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-light-framed-right-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-light-framed-right { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-light-framed-right-frameInfo { + font-family: dh-2-2-2-0-2-2-2-0-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-light-framed-right-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-light-framed-right-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-light-framed-right-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-light-framed-right-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-light-framed-right-ml { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-light-framed-right-mr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-light-framed-right-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-light-framed-right-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-light-framed-right-tr, +.x-panel-header-light-framed-right-br, +.x-panel-header-light-framed-right-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-light-framed-right-tl, +.x-panel-header-light-framed-right-bl, +.x-panel-header-light-framed-right-ml { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-light-framed-right-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-light-framed-right-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-light-framed-right-tl, +.x-panel-header-light-framed-right-bl, +.x-panel-header-light-framed-right-tr, +.x-panel-header-light-framed-right-br, +.x-panel-header-light-framed-right-tc, +.x-panel-header-light-framed-right-bc, +.x-panel-header-light-framed-right-ml, +.x-panel-header-light-framed-right-mr { + background-image: url(images/panel-header/panel-header-light-framed-right-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-light-framed-right-ml, +.x-panel-header-light-framed-right-mr { + background-image: url(images/panel-header/panel-header-light-framed-right-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-light-framed-right-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-light-framed-bottom { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 0 2px 2px 2px; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-light-framed-bottom-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-light-framed-bottom { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-light-framed-bottom-frameInfo { + font-family: dh-0-2-2-2-0-2-2-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-light-framed-bottom-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-light-framed-bottom-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-light-framed-bottom-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-light-framed-bottom-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-light-framed-bottom-ml { + background-position: 0 bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-light-framed-bottom-mr { + background-position: right bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-light-framed-bottom-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-light-framed-bottom-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-light-framed-bottom-tr, +.x-panel-header-light-framed-bottom-br, +.x-panel-header-light-framed-bottom-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-light-framed-bottom-tl, +.x-panel-header-light-framed-bottom-bl, +.x-panel-header-light-framed-bottom-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-light-framed-bottom-tc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-light-framed-bottom-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-light-framed-bottom-tl, +.x-panel-header-light-framed-bottom-bl, +.x-panel-header-light-framed-bottom-tr, +.x-panel-header-light-framed-bottom-br, +.x-panel-header-light-framed-bottom-tc, +.x-panel-header-light-framed-bottom-bc, +.x-panel-header-light-framed-bottom-ml, +.x-panel-header-light-framed-bottom-mr { + background-image: url(images/panel-header/panel-header-light-framed-bottom-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-light-framed-bottom-ml, +.x-panel-header-light-framed-bottom-mr { + background-image: url(images/panel-header/panel-header-light-framed-bottom-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-light-framed-bottom-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-light-framed-left { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px 0 2px 2px; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-light-framed-left-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-light-framed-left { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-light-framed-left-frameInfo { + font-family: dh-2-0-2-2-2-0-2-2-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-light-framed-left-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-light-framed-left-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-light-framed-left-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-light-framed-left-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-light-framed-left-ml { + background-position: left 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-light-framed-left-mr { + background-position: left 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-light-framed-left-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-light-framed-left-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-light-framed-left-tr, +.x-panel-header-light-framed-left-br, +.x-panel-header-light-framed-left-mr { + padding-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-light-framed-left-tl, +.x-panel-header-light-framed-left-bl, +.x-panel-header-light-framed-left-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-light-framed-left-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-light-framed-left-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-light-framed-left-tl, +.x-panel-header-light-framed-left-bl, +.x-panel-header-light-framed-left-tr, +.x-panel-header-light-framed-left-br, +.x-panel-header-light-framed-left-tc, +.x-panel-header-light-framed-left-bc, +.x-panel-header-light-framed-left-ml, +.x-panel-header-light-framed-left-mr { + background-image: url(images/panel-header/panel-header-light-framed-left-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-light-framed-left-ml, +.x-panel-header-light-framed-left-mr { + background-image: url(images/panel-header/panel-header-light-framed-left-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-light-framed-left-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-light-framed-collapsed-top { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 2px; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-light-framed-collapsed-top-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-light-framed-collapsed-top { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-light-framed-collapsed-top-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-light-framed-collapsed-top-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-light-framed-collapsed-top-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-light-framed-collapsed-top-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-light-framed-collapsed-top-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-light-framed-collapsed-top-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-light-framed-collapsed-top-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-light-framed-collapsed-top-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-light-framed-collapsed-top-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-light-framed-collapsed-top-tr, +.x-panel-header-light-framed-collapsed-top-br, +.x-panel-header-light-framed-collapsed-top-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-light-framed-collapsed-top-tl, +.x-panel-header-light-framed-collapsed-top-bl, +.x-panel-header-light-framed-collapsed-top-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-light-framed-collapsed-top-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-light-framed-collapsed-top-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-light-framed-collapsed-top-tl, +.x-panel-header-light-framed-collapsed-top-bl, +.x-panel-header-light-framed-collapsed-top-tr, +.x-panel-header-light-framed-collapsed-top-br, +.x-panel-header-light-framed-collapsed-top-tc, +.x-panel-header-light-framed-collapsed-top-bc, +.x-panel-header-light-framed-collapsed-top-ml, +.x-panel-header-light-framed-collapsed-top-mr { + background-image: url(images/panel-header/panel-header-light-framed-collapsed-top-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-light-framed-collapsed-top-ml, +.x-panel-header-light-framed-collapsed-top-mr { + background-image: url(images/panel-header/panel-header-light-framed-collapsed-top-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-light-framed-collapsed-top-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-light-framed-collapsed-right { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-light-framed-collapsed-right-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-light-framed-collapsed-right { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-light-framed-collapsed-right-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-light-framed-collapsed-right-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-light-framed-collapsed-right-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-light-framed-collapsed-right-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-light-framed-collapsed-right-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-light-framed-collapsed-right-ml { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-light-framed-collapsed-right-mr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-light-framed-collapsed-right-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-light-framed-collapsed-right-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-light-framed-collapsed-right-tr, +.x-panel-header-light-framed-collapsed-right-br, +.x-panel-header-light-framed-collapsed-right-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-light-framed-collapsed-right-tl, +.x-panel-header-light-framed-collapsed-right-bl, +.x-panel-header-light-framed-collapsed-right-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-light-framed-collapsed-right-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-light-framed-collapsed-right-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-light-framed-collapsed-right-tl, +.x-panel-header-light-framed-collapsed-right-bl, +.x-panel-header-light-framed-collapsed-right-tr, +.x-panel-header-light-framed-collapsed-right-br, +.x-panel-header-light-framed-collapsed-right-tc, +.x-panel-header-light-framed-collapsed-right-bc, +.x-panel-header-light-framed-collapsed-right-ml, +.x-panel-header-light-framed-collapsed-right-mr { + background-image: url(images/panel-header/panel-header-light-framed-collapsed-right-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-light-framed-collapsed-right-ml, +.x-panel-header-light-framed-collapsed-right-mr { + background-image: url(images/panel-header/panel-header-light-framed-collapsed-right-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-light-framed-collapsed-right-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-light-framed-collapsed-bottom { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 10px 14px 10px 14px; + border-width: 2px; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-light-framed-collapsed-bottom-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-light-framed-collapsed-bottom { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-light-framed-collapsed-bottom-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-10-14-10-14; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-light-framed-collapsed-bottom-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-light-framed-collapsed-bottom-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-light-framed-collapsed-bottom-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-light-framed-collapsed-bottom-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-light-framed-collapsed-bottom-ml { + background-position: 0 bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-light-framed-collapsed-bottom-mr { + background-position: right bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-light-framed-collapsed-bottom-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-light-framed-collapsed-bottom-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-light-framed-collapsed-bottom-tr, +.x-panel-header-light-framed-collapsed-bottom-br, +.x-panel-header-light-framed-collapsed-bottom-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-light-framed-collapsed-bottom-tl, +.x-panel-header-light-framed-collapsed-bottom-bl, +.x-panel-header-light-framed-collapsed-bottom-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-light-framed-collapsed-bottom-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-light-framed-collapsed-bottom-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-light-framed-collapsed-bottom-tl, +.x-panel-header-light-framed-collapsed-bottom-bl, +.x-panel-header-light-framed-collapsed-bottom-tr, +.x-panel-header-light-framed-collapsed-bottom-br, +.x-panel-header-light-framed-collapsed-bottom-tc, +.x-panel-header-light-framed-collapsed-bottom-bc, +.x-panel-header-light-framed-collapsed-bottom-ml, +.x-panel-header-light-framed-collapsed-bottom-mr { + background-image: url(images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-light-framed-collapsed-bottom-ml, +.x-panel-header-light-framed-collapsed-bottom-mr { + background-image: url(images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-light-framed-collapsed-bottom-mc { + padding: 10px 14px 10px 14px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-panel-header-light-framed-collapsed-left { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 14px 10px 14px 10px; + border-width: 2px; + border-style: solid; + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-panel-header-light-framed-collapsed-left-mc { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-panel-header-light-framed-collapsed-left { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-panel-header-light-framed-collapsed-left-frameInfo { + font-family: dh-2-2-2-2-2-2-2-2-14-10-14-10; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-panel-header-light-framed-collapsed-left-tl { + background-position: 0 -4px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-panel-header-light-framed-collapsed-left-tr { + background-position: right -6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-panel-header-light-framed-collapsed-left-bl { + background-position: 0 -8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-panel-header-light-framed-collapsed-left-br { + background-position: right -10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-panel-header-light-framed-collapsed-left-ml { + background-position: left 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-panel-header-light-framed-collapsed-left-mr { + background-position: left 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-panel-header-light-framed-collapsed-left-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-panel-header-light-framed-collapsed-left-bc { + background-position: 0 -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-panel-header-light-framed-collapsed-left-tr, +.x-panel-header-light-framed-collapsed-left-br, +.x-panel-header-light-framed-collapsed-left-mr { + padding-right: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-panel-header-light-framed-collapsed-left-tl, +.x-panel-header-light-framed-collapsed-left-bl, +.x-panel-header-light-framed-collapsed-left-ml { + padding-left: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-panel-header-light-framed-collapsed-left-tc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-panel-header-light-framed-collapsed-left-bc { + height: 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:407 */ +.x-panel-header-light-framed-collapsed-left-tl, +.x-panel-header-light-framed-collapsed-left-bl, +.x-panel-header-light-framed-collapsed-left-tr, +.x-panel-header-light-framed-collapsed-left-br, +.x-panel-header-light-framed-collapsed-left-tc, +.x-panel-header-light-framed-collapsed-left-bc, +.x-panel-header-light-framed-collapsed-left-ml, +.x-panel-header-light-framed-collapsed-left-mr { + background-image: url(images/panel-header/panel-header-light-framed-collapsed-left-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:453 */ +.x-panel-header-light-framed-collapsed-left-ml, +.x-panel-header-light-framed-collapsed-left-mr { + background-image: url(images/panel-header/panel-header-light-framed-collapsed-left-sides.gif); + background-repeat: repeat-y; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-panel-header-light-framed-collapsed-left-mc { + padding: 14px 10px 14px 10px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:629 */ +.x-panel .x-panel-header-light-framed-top { + border-bottom-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:633 */ +.x-panel .x-panel-header-light-framed-right { + border-left-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:637 */ +.x-panel .x-panel-header-light-framed-bottom { + border-top-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:641 */ +.x-panel .x-panel-header-light-framed-left { + border-right-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:647 */ +.x-nbr .x-panel-header-light-framed-collapsed-top { + border-bottom-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:651 */ +.x-nbr .x-panel-header-light-framed-collapsed-right { + border-left-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:655 */ +.x-nbr .x-panel-header-light-framed-collapsed-bottom { + border-top-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:659 */ +.x-nbr .x-panel-header-light-framed-collapsed-left { + border-right-width: 0 !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:777 */ +.x-panel-header-light-framed-horizontal .x-tool-after-title { + margin: 0 0 0 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:787 */ +.x-panel-header-light-framed-horizontal .x-tool-before-title { + margin: 0 6px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:799 */ +.x-panel-header-light-framed-vertical .x-tool-after-title { + margin: 6px 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:809 */ +.x-panel-header-light-framed-vertical .x-tool-before-title { + margin: 0 0 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:821 */ +.x-panel-header-light-framed .x-tool-focus { + outline: 1px solid #5fa2dd; + outline-offset: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:59 */ +.x-ie8 .x-panel-header-light-framed .x-tool-focus { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:39 */ +.x-ie8 .x-panel-header-light-framed .x-tool-focus:after { + position: absolute; + content: ' '; + top: -2px; + right: -2px; + bottom: -2px; + left: -2px; + border: 1px solid #5fa2dd; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:850 */ +.x-panel-light-framed-resizable .x-panel-handle { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + opacity: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:2 */ +.x-panel-light-framed-outer-border-l { + border-left-color: #d0d0d0 !important; + border-left-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:6 */ +.x-panel-light-framed-outer-border-b { + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:10 */ +.x-panel-light-framed-outer-border-bl { + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 2px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:16 */ +.x-panel-light-framed-outer-border-r { + border-right-color: #d0d0d0 !important; + border-right-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:20 */ +.x-panel-light-framed-outer-border-rl { + border-right-color: #d0d0d0 !important; + border-right-width: 2px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:26 */ +.x-panel-light-framed-outer-border-rb { + border-right-color: #d0d0d0 !important; + border-right-width: 2px !important; + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:32 */ +.x-panel-light-framed-outer-border-rbl { + border-right-color: #d0d0d0 !important; + border-right-width: 2px !important; + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 2px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:40 */ +.x-panel-light-framed-outer-border-t { + border-top-color: #d0d0d0 !important; + border-top-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:44 */ +.x-panel-light-framed-outer-border-tl { + border-top-color: #d0d0d0 !important; + border-top-width: 2px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:50 */ +.x-panel-light-framed-outer-border-tb { + border-top-color: #d0d0d0 !important; + border-top-width: 2px !important; + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:56 */ +.x-panel-light-framed-outer-border-tbl { + border-top-color: #d0d0d0 !important; + border-top-width: 2px !important; + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 2px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:64 */ +.x-panel-light-framed-outer-border-tr { + border-top-color: #d0d0d0 !important; + border-top-width: 2px !important; + border-right-color: #d0d0d0 !important; + border-right-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:70 */ +.x-panel-light-framed-outer-border-trl { + border-top-color: #d0d0d0 !important; + border-top-width: 2px !important; + border-right-color: #d0d0d0 !important; + border-right-width: 2px !important; + border-left-color: #d0d0d0 !important; + border-left-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:78 */ +.x-panel-light-framed-outer-border-trb { + border-top-color: #d0d0d0 !important; + border-top-width: 2px !important; + border-right-color: #d0d0d0 !important; + border-right-width: 2px !important; + border-bottom-color: #d0d0d0 !important; + border-bottom-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:86 */ +.x-panel-light-framed-outer-border-trbl { + border-color: #d0d0d0 !important; + border-width: 2px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:1 */ +.x-resizable-handle { + background-repeat: no-repeat; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:6 */ +.x-resizable-handle-east-over, +.x-resizable-handle-west-over { + background-position: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:11 */ +.x-resizable-handle-south-over, +.x-resizable-handle-north-over { + background-position: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:16 */ +.x-resizable-handle-southeast-over { + background-position: -2px -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:20 */ +.x-resizable-handle-northwest-over { + background-position: 2px 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:24 */ +.x-resizable-handle-northeast-over { + background-position: -2px 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:28 */ +.x-resizable-handle-southwest-over { + background-position: 2px -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:33 */ +.x-resizable-pinned .x-resizable-handle-east, +.x-resizable-pinned .x-resizable-handle-west { + background-position: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:38 */ +.x-resizable-pinned .x-resizable-handle-south, +.x-resizable-pinned .x-resizable-handle-north { + background-position: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:43 */ +.x-resizable-pinned .x-resizable-handle-southeast { + background-position: -2px -2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:47 */ +.x-resizable-pinned .x-resizable-handle-northwest { + background-position: 2px 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:51 */ +.x-resizable-pinned .x-resizable-handle-northeast { + background-position: -2px 2px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neptune/sass/src/resizer/Resizer.scss:55 */ +.x-resizable-pinned .x-resizable-handle-southwest { + background-position: 2px -2px; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_path.scss:5 */ +@font-face { + /* FONT PATH + * -------------------------- */ + /* FONT PATH + * -------------------------- */ + font-family: 'FontAwesome'; + src: url('font-awesome/fonts/fontawesome-webfont.eot?v=4.4.0'); + src: url('font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.4.0') format('embedded-opentype'), url('font-awesome/fonts/fontawesome-webfont.woff2?v=4.4.0') format('woff2'), url('font-awesome/fonts/fontawesome-webfont.woff?v=4.4.0') format('woff'), url('font-awesome/fonts/fontawesome-webfont.ttf?v=4.4.0') format('truetype'), url('font-awesome/fonts/fontawesome-webfont.svg?v=4.4.0#fontawesomeregular') format('svg'); + font-weight: normal; + font-style: normal; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_core.scss:4 */ +.fa { + display: inline-block; + font: normal normal normal 14px/1 FontAwesome; + font-size: inherit; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_larger.scss:5 */ +.fa-lg { + /* makes the font 33% larger relative to the icon container */ + font-size: 1.33333em; + line-height: 0.75em; + vertical-align: -15%; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_larger.scss:10 */ +.fa-2x { + font-size: 2em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_larger.scss:11 */ +.fa-3x { + font-size: 3em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_larger.scss:12 */ +.fa-4x { + font-size: 4em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_larger.scss:13 */ +.fa-5x { + font-size: 5em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_fixed-width.scss:3 */ +.fa-fw { + width: 1.28571em; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_list.scss:4 */ +.fa-ul { + padding-left: 0; + margin-left: 2.14286em; + list-style-type: none; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_list.scss:8 */ +.fa-ul > li { + position: relative; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_list.scss:10 */ +.fa-li { + position: absolute; + left: -2.14286em; + width: 2.14286em; + top: 0.14286em; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_list.scss:16 */ +.fa-li.fa-lg { + left: -1.85714em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_bordered-pulled.scss:4 */ +.fa-border { + padding: 0.2em 0.25em 0.15em; + border: solid 0.08em #eee; + border-radius: 0.1em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_bordered-pulled.scss:10 */ +.fa-pull-left { + float: left; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_bordered-pulled.scss:11 */ +.fa-pull-right { + float: right; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_bordered-pulled.scss:14 */ +.fa.fa-pull-left { + margin-right: 0.3em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_bordered-pulled.scss:15 */ +.fa.fa-pull-right { + margin-left: 0.3em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_bordered-pulled.scss:19 */ +.pull-right { + /* Deprecated as of 4.4.0 */ + float: right; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_bordered-pulled.scss:20 */ +.pull-left { + float: left; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_bordered-pulled.scss:23 */ +.fa.pull-left { + margin-right: 0.3em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_bordered-pulled.scss:24 */ +.fa.pull-right { + margin-left: 0.3em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_animated.scss:4 */ +.fa-spin { + -webkit-animation: fa-spin 2s infinite linear; + animation: fa-spin 2s infinite linear; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_animated.scss:9 */ +.fa-pulse { + -webkit-animation: fa-spin 1s infinite steps(8); + animation: fa-spin 1s infinite steps(8); +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_animated.scss:14 */ +@-webkit-keyframes fa-spin { + /* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_animated.scss:15 */ + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + /* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_animated.scss:19 */ + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_animated.scss:25 */ +@keyframes fa-spin { + /* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_animated.scss:26 */ + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + /* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_animated.scss:30 */ + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_rotated-flipped.scss:4 */ +.fa-rotate-90 { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); + -webkit-transform: rotate(90deg); + -ms-transform: rotate(90deg); + transform: rotate(90deg); +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_rotated-flipped.scss:5 */ +.fa-rotate-180 { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); + -webkit-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_rotated-flipped.scss:6 */ +.fa-rotate-270 { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); + -webkit-transform: rotate(270deg); + -ms-transform: rotate(270deg); + transform: rotate(270deg); +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_rotated-flipped.scss:8 */ +.fa-flip-horizontal { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0); + -webkit-transform: scale(-1, 1); + -ms-transform: scale(-1, 1); + transform: scale(-1, 1); +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_rotated-flipped.scss:9 */ +.fa-flip-vertical { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); + -webkit-transform: scale(1, -1); + -ms-transform: scale(1, -1); + transform: scale(1, -1); +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_rotated-flipped.scss:14 */ +:root .fa-rotate-90, +:root .fa-rotate-180, +:root .fa-rotate-270, +:root .fa-flip-horizontal, +:root .fa-flip-vertical { + filter: none; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_stacked.scss:4 */ +.fa-stack { + position: relative; + display: inline-block; + width: 2em; + height: 2em; + line-height: 2em; + vertical-align: middle; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_stacked.scss:12 */ +.fa-stack-1x, +.fa-stack-2x { + position: absolute; + left: 0; + width: 100%; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_stacked.scss:18 */ +.fa-stack-1x { + line-height: inherit; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_stacked.scss:19 */ +.fa-stack-2x { + font-size: 2em; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_stacked.scss:20 */ +.fa-inverse { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:4 */ +.fa-glass:before { + /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen + readers do not read off random characters that represent icons */ + content: "\f000" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:5 */ +.fa-music:before { + content: "\f001" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:6 */ +.fa-search:before { + content: "\f002" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:7 */ +.fa-envelope-o:before { + content: "\f003" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:8 */ +.fa-heart:before { + content: "\f004" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:9 */ +.fa-star:before { + content: "\f005" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:10 */ +.fa-star-o:before { + content: "\f006" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:11 */ +.fa-user:before { + content: "\f007" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:12 */ +.fa-film:before { + content: "\f008" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:13 */ +.fa-th-large:before { + content: "\f009" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:14 */ +.fa-th:before { + content: "\f00a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:15 */ +.fa-th-list:before { + content: "\f00b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:16 */ +.fa-check:before { + content: "\f00c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:17 */ +.fa-remove:before, +.fa-close:before, +.fa-times:before { + content: "\f00d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:20 */ +.fa-search-plus:before { + content: "\f00e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:21 */ +.fa-search-minus:before { + content: "\f010" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:22 */ +.fa-power-off:before { + content: "\f011" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:23 */ +.fa-signal:before { + content: "\f012" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:24 */ +.fa-gear:before, +.fa-cog:before { + content: "\f013" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:26 */ +.fa-trash-o:before { + content: "\f014" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:27 */ +.fa-home:before { + content: "\f015" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:28 */ +.fa-file-o:before { + content: "\f016" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:29 */ +.fa-clock-o:before { + content: "\f017" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:30 */ +.fa-road:before { + content: "\f018" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:31 */ +.fa-download:before { + content: "\f019" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:32 */ +.fa-arrow-circle-o-down:before { + content: "\f01a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:33 */ +.fa-arrow-circle-o-up:before { + content: "\f01b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:34 */ +.fa-inbox:before { + content: "\f01c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:35 */ +.fa-play-circle-o:before { + content: "\f01d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:36 */ +.fa-rotate-right:before, +.fa-repeat:before { + content: "\f01e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:38 */ +.fa-refresh:before { + content: "\f021" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:39 */ +.fa-list-alt:before { + content: "\f022" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:40 */ +.fa-lock:before { + content: "\f023" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:41 */ +.fa-flag:before { + content: "\f024" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:42 */ +.fa-headphones:before { + content: "\f025" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:43 */ +.fa-volume-off:before { + content: "\f026" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:44 */ +.fa-volume-down:before { + content: "\f027" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:45 */ +.fa-volume-up:before { + content: "\f028" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:46 */ +.fa-qrcode:before { + content: "\f029" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:47 */ +.fa-barcode:before { + content: "\f02a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:48 */ +.fa-tag:before { + content: "\f02b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:49 */ +.fa-tags:before { + content: "\f02c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:50 */ +.fa-book:before { + content: "\f02d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:51 */ +.fa-bookmark:before { + content: "\f02e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:52 */ +.fa-print:before { + content: "\f02f" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:53 */ +.fa-camera:before { + content: "\f030" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:54 */ +.fa-font:before { + content: "\f031" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:55 */ +.fa-bold:before { + content: "\f032" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:56 */ +.fa-italic:before { + content: "\f033" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:57 */ +.fa-text-height:before { + content: "\f034" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:58 */ +.fa-text-width:before { + content: "\f035" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:59 */ +.fa-align-left:before { + content: "\f036" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:60 */ +.fa-align-center:before { + content: "\f037" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:61 */ +.fa-align-right:before { + content: "\f038" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:62 */ +.fa-align-justify:before { + content: "\f039" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:63 */ +.fa-list:before { + content: "\f03a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:64 */ +.fa-dedent:before, +.fa-outdent:before { + content: "\f03b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:66 */ +.fa-indent:before { + content: "\f03c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:67 */ +.fa-video-camera:before { + content: "\f03d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:68 */ +.fa-photo:before, +.fa-image:before, +.fa-picture-o:before { + content: "\f03e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:71 */ +.fa-pencil:before { + content: "\f040" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:72 */ +.fa-map-marker:before { + content: "\f041" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:73 */ +.fa-adjust:before { + content: "\f042" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:74 */ +.fa-tint:before { + content: "\f043" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:75 */ +.fa-edit:before, +.fa-pencil-square-o:before { + content: "\f044" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:77 */ +.fa-share-square-o:before { + content: "\f045" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:78 */ +.fa-check-square-o:before { + content: "\f046" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:79 */ +.fa-arrows:before { + content: "\f047" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:80 */ +.fa-step-backward:before { + content: "\f048" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:81 */ +.fa-fast-backward:before { + content: "\f049" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:82 */ +.fa-backward:before { + content: "\f04a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:83 */ +.fa-play:before { + content: "\f04b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:84 */ +.fa-pause:before { + content: "\f04c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:85 */ +.fa-stop:before { + content: "\f04d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:86 */ +.fa-forward:before { + content: "\f04e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:87 */ +.fa-fast-forward:before { + content: "\f050" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:88 */ +.fa-step-forward:before { + content: "\f051" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:89 */ +.fa-eject:before { + content: "\f052" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:90 */ +.fa-chevron-left:before { + content: "\f053" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:91 */ +.fa-chevron-right:before { + content: "\f054" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:92 */ +.fa-plus-circle:before { + content: "\f055" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:93 */ +.fa-minus-circle:before { + content: "\f056" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:94 */ +.fa-times-circle:before { + content: "\f057" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:95 */ +.fa-check-circle:before { + content: "\f058" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:96 */ +.fa-question-circle:before { + content: "\f059" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:97 */ +.fa-info-circle:before { + content: "\f05a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:98 */ +.fa-crosshairs:before { + content: "\f05b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:99 */ +.fa-times-circle-o:before { + content: "\f05c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:100 */ +.fa-check-circle-o:before { + content: "\f05d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:101 */ +.fa-ban:before { + content: "\f05e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:102 */ +.fa-arrow-left:before { + content: "\f060" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:103 */ +.fa-arrow-right:before { + content: "\f061" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:104 */ +.fa-arrow-up:before { + content: "\f062" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:105 */ +.fa-arrow-down:before { + content: "\f063" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:106 */ +.fa-mail-forward:before, +.fa-share:before { + content: "\f064" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:108 */ +.fa-expand:before { + content: "\f065" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:109 */ +.fa-compress:before { + content: "\f066" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:110 */ +.fa-plus:before { + content: "\f067" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:111 */ +.fa-minus:before { + content: "\f068" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:112 */ +.fa-asterisk:before { + content: "\f069" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:113 */ +.fa-exclamation-circle:before { + content: "\f06a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:114 */ +.fa-gift:before { + content: "\f06b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:115 */ +.fa-leaf:before { + content: "\f06c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:116 */ +.fa-fire:before { + content: "\f06d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:117 */ +.fa-eye:before { + content: "\f06e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:118 */ +.fa-eye-slash:before { + content: "\f070" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:119 */ +.fa-warning:before, +.fa-exclamation-triangle:before { + content: "\f071" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:121 */ +.fa-plane:before { + content: "\f072" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:122 */ +.fa-calendar:before { + content: "\f073" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:123 */ +.fa-random:before { + content: "\f074" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:124 */ +.fa-comment:before { + content: "\f075" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:125 */ +.fa-magnet:before { + content: "\f076" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:126 */ +.fa-chevron-up:before { + content: "\f077" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:127 */ +.fa-chevron-down:before { + content: "\f078" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:128 */ +.fa-retweet:before { + content: "\f079" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:129 */ +.fa-shopping-cart:before { + content: "\f07a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:130 */ +.fa-folder:before { + content: "\f07b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:131 */ +.fa-folder-open:before { + content: "\f07c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:132 */ +.fa-arrows-v:before { + content: "\f07d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:133 */ +.fa-arrows-h:before { + content: "\f07e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:134 */ +.fa-bar-chart-o:before, +.fa-bar-chart:before { + content: "\f080" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:136 */ +.fa-twitter-square:before { + content: "\f081" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:137 */ +.fa-facebook-square:before { + content: "\f082" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:138 */ +.fa-camera-retro:before { + content: "\f083" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:139 */ +.fa-key:before { + content: "\f084" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:140 */ +.fa-gears:before, +.fa-cogs:before { + content: "\f085" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:142 */ +.fa-comments:before { + content: "\f086" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:143 */ +.fa-thumbs-o-up:before { + content: "\f087" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:144 */ +.fa-thumbs-o-down:before { + content: "\f088" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:145 */ +.fa-star-half:before { + content: "\f089" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:146 */ +.fa-heart-o:before { + content: "\f08a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:147 */ +.fa-sign-out:before { + content: "\f08b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:148 */ +.fa-linkedin-square:before { + content: "\f08c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:149 */ +.fa-thumb-tack:before { + content: "\f08d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:150 */ +.fa-external-link:before { + content: "\f08e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:151 */ +.fa-sign-in:before { + content: "\f090" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:152 */ +.fa-trophy:before { + content: "\f091" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:153 */ +.fa-github-square:before { + content: "\f092" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:154 */ +.fa-upload:before { + content: "\f093" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:155 */ +.fa-lemon-o:before { + content: "\f094" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:156 */ +.fa-phone:before { + content: "\f095" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:157 */ +.fa-square-o:before { + content: "\f096" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:158 */ +.fa-bookmark-o:before { + content: "\f097" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:159 */ +.fa-phone-square:before { + content: "\f098" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:160 */ +.fa-twitter:before { + content: "\f099" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:161 */ +.fa-facebook-f:before, +.fa-facebook:before { + content: "\f09a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:163 */ +.fa-github:before { + content: "\f09b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:164 */ +.fa-unlock:before { + content: "\f09c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:165 */ +.fa-credit-card:before { + content: "\f09d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:166 */ +.fa-feed:before, +.fa-rss:before { + content: "\f09e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:168 */ +.fa-hdd-o:before { + content: "\f0a0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:169 */ +.fa-bullhorn:before { + content: "\f0a1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:170 */ +.fa-bell:before { + content: "\f0f3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:171 */ +.fa-certificate:before { + content: "\f0a3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:172 */ +.fa-hand-o-right:before { + content: "\f0a4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:173 */ +.fa-hand-o-left:before { + content: "\f0a5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:174 */ +.fa-hand-o-up:before { + content: "\f0a6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:175 */ +.fa-hand-o-down:before { + content: "\f0a7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:176 */ +.fa-arrow-circle-left:before { + content: "\f0a8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:177 */ +.fa-arrow-circle-right:before { + content: "\f0a9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:178 */ +.fa-arrow-circle-up:before { + content: "\f0aa" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:179 */ +.fa-arrow-circle-down:before { + content: "\f0ab" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:180 */ +.fa-globe:before { + content: "\f0ac" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:181 */ +.fa-wrench:before { + content: "\f0ad" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:182 */ +.fa-tasks:before { + content: "\f0ae" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:183 */ +.fa-filter:before { + content: "\f0b0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:184 */ +.fa-briefcase:before { + content: "\f0b1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:185 */ +.fa-arrows-alt:before { + content: "\f0b2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:186 */ +.fa-group:before, +.fa-users:before { + content: "\f0c0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:188 */ +.fa-chain:before, +.fa-link:before { + content: "\f0c1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:190 */ +.fa-cloud:before { + content: "\f0c2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:191 */ +.fa-flask:before { + content: "\f0c3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:192 */ +.fa-cut:before, +.fa-scissors:before { + content: "\f0c4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:194 */ +.fa-copy:before, +.fa-files-o:before { + content: "\f0c5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:196 */ +.fa-paperclip:before { + content: "\f0c6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:197 */ +.fa-save:before, +.fa-floppy-o:before { + content: "\f0c7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:199 */ +.fa-square:before { + content: "\f0c8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:200 */ +.fa-navicon:before, +.fa-reorder:before, +.fa-bars:before { + content: "\f0c9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:203 */ +.fa-list-ul:before { + content: "\f0ca" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:204 */ +.fa-list-ol:before { + content: "\f0cb" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:205 */ +.fa-strikethrough:before { + content: "\f0cc" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:206 */ +.fa-underline:before { + content: "\f0cd" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:207 */ +.fa-table:before { + content: "\f0ce" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:208 */ +.fa-magic:before { + content: "\f0d0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:209 */ +.fa-truck:before { + content: "\f0d1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:210 */ +.fa-pinterest:before { + content: "\f0d2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:211 */ +.fa-pinterest-square:before { + content: "\f0d3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:212 */ +.fa-google-plus-square:before { + content: "\f0d4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:213 */ +.fa-google-plus:before { + content: "\f0d5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:214 */ +.fa-money:before { + content: "\f0d6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:215 */ +.fa-caret-down:before { + content: "\f0d7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:216 */ +.fa-caret-up:before { + content: "\f0d8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:217 */ +.fa-caret-left:before { + content: "\f0d9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:218 */ +.fa-caret-right:before { + content: "\f0da" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:219 */ +.fa-columns:before { + content: "\f0db" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:220 */ +.fa-unsorted:before, +.fa-sort:before { + content: "\f0dc" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:222 */ +.fa-sort-down:before, +.fa-sort-desc:before { + content: "\f0dd" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:224 */ +.fa-sort-up:before, +.fa-sort-asc:before { + content: "\f0de" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:226 */ +.fa-envelope:before { + content: "\f0e0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:227 */ +.fa-linkedin:before { + content: "\f0e1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:228 */ +.fa-rotate-left:before, +.fa-undo:before { + content: "\f0e2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:230 */ +.fa-legal:before, +.fa-gavel:before { + content: "\f0e3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:232 */ +.fa-dashboard:before, +.fa-tachometer:before { + content: "\f0e4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:234 */ +.fa-comment-o:before { + content: "\f0e5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:235 */ +.fa-comments-o:before { + content: "\f0e6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:236 */ +.fa-flash:before, +.fa-bolt:before { + content: "\f0e7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:238 */ +.fa-sitemap:before { + content: "\f0e8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:239 */ +.fa-umbrella:before { + content: "\f0e9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:240 */ +.fa-paste:before, +.fa-clipboard:before { + content: "\f0ea" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:242 */ +.fa-lightbulb-o:before { + content: "\f0eb" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:243 */ +.fa-exchange:before { + content: "\f0ec" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:244 */ +.fa-cloud-download:before { + content: "\f0ed" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:245 */ +.fa-cloud-upload:before { + content: "\f0ee" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:246 */ +.fa-user-md:before { + content: "\f0f0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:247 */ +.fa-stethoscope:before { + content: "\f0f1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:248 */ +.fa-suitcase:before { + content: "\f0f2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:249 */ +.fa-bell-o:before { + content: "\f0a2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:250 */ +.fa-coffee:before { + content: "\f0f4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:251 */ +.fa-cutlery:before { + content: "\f0f5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:252 */ +.fa-file-text-o:before { + content: "\f0f6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:253 */ +.fa-building-o:before { + content: "\f0f7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:254 */ +.fa-hospital-o:before { + content: "\f0f8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:255 */ +.fa-ambulance:before { + content: "\f0f9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:256 */ +.fa-medkit:before { + content: "\f0fa" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:257 */ +.fa-fighter-jet:before { + content: "\f0fb" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:258 */ +.fa-beer:before { + content: "\f0fc" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:259 */ +.fa-h-square:before { + content: "\f0fd" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:260 */ +.fa-plus-square:before { + content: "\f0fe" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:261 */ +.fa-angle-double-left:before { + content: "\f100" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:262 */ +.fa-angle-double-right:before { + content: "\f101" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:263 */ +.fa-angle-double-up:before { + content: "\f102" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:264 */ +.fa-angle-double-down:before { + content: "\f103" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:265 */ +.fa-angle-left:before { + content: "\f104" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:266 */ +.fa-angle-right:before { + content: "\f105" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:267 */ +.fa-angle-up:before { + content: "\f106" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:268 */ +.fa-angle-down:before { + content: "\f107" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:269 */ +.fa-desktop:before { + content: "\f108" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:270 */ +.fa-laptop:before { + content: "\f109" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:271 */ +.fa-tablet:before { + content: "\f10a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:272 */ +.fa-mobile-phone:before, +.fa-mobile:before { + content: "\f10b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:274 */ +.fa-circle-o:before { + content: "\f10c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:275 */ +.fa-quote-left:before { + content: "\f10d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:276 */ +.fa-quote-right:before { + content: "\f10e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:277 */ +.fa-spinner:before { + content: "\f110" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:278 */ +.fa-circle:before { + content: "\f111" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:279 */ +.fa-mail-reply:before, +.fa-reply:before { + content: "\f112" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:281 */ +.fa-github-alt:before { + content: "\f113" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:282 */ +.fa-folder-o:before { + content: "\f114" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:283 */ +.fa-folder-open-o:before { + content: "\f115" !important; +} \ No newline at end of file diff --git a/frontend/build/testing/DynamicForm/resources/DynamicForm-all_2.css b/frontend/build/testing/DynamicForm/resources/DynamicForm-all_2.css new file mode 100644 index 000000000..0e6b7126e --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/DynamicForm-all_2.css @@ -0,0 +1,3356 @@ +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:284 */ +.fa-smile-o:before { + content: "\f118" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:285 */ +.fa-frown-o:before { + content: "\f119" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:286 */ +.fa-meh-o:before { + content: "\f11a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:287 */ +.fa-gamepad:before { + content: "\f11b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:288 */ +.fa-keyboard-o:before { + content: "\f11c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:289 */ +.fa-flag-o:before { + content: "\f11d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:290 */ +.fa-flag-checkered:before { + content: "\f11e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:291 */ +.fa-terminal:before { + content: "\f120" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:292 */ +.fa-code:before { + content: "\f121" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:293 */ +.fa-mail-reply-all:before, +.fa-reply-all:before { + content: "\f122" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:295 */ +.fa-star-half-empty:before, +.fa-star-half-full:before, +.fa-star-half-o:before { + content: "\f123" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:298 */ +.fa-location-arrow:before { + content: "\f124" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:299 */ +.fa-crop:before { + content: "\f125" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:300 */ +.fa-code-fork:before { + content: "\f126" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:301 */ +.fa-unlink:before, +.fa-chain-broken:before { + content: "\f127" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:303 */ +.fa-question:before { + content: "\f128" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:304 */ +.fa-info:before { + content: "\f129" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:305 */ +.fa-exclamation:before { + content: "\f12a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:306 */ +.fa-superscript:before { + content: "\f12b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:307 */ +.fa-subscript:before { + content: "\f12c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:308 */ +.fa-eraser:before { + content: "\f12d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:309 */ +.fa-puzzle-piece:before { + content: "\f12e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:310 */ +.fa-microphone:before { + content: "\f130" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:311 */ +.fa-microphone-slash:before { + content: "\f131" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:312 */ +.fa-shield:before { + content: "\f132" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:313 */ +.fa-calendar-o:before { + content: "\f133" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:314 */ +.fa-fire-extinguisher:before { + content: "\f134" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:315 */ +.fa-rocket:before { + content: "\f135" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:316 */ +.fa-maxcdn:before { + content: "\f136" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:317 */ +.fa-chevron-circle-left:before { + content: "\f137" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:318 */ +.fa-chevron-circle-right:before { + content: "\f138" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:319 */ +.fa-chevron-circle-up:before { + content: "\f139" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:320 */ +.fa-chevron-circle-down:before { + content: "\f13a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:321 */ +.fa-html5:before { + content: "\f13b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:322 */ +.fa-css3:before { + content: "\f13c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:323 */ +.fa-anchor:before { + content: "\f13d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:324 */ +.fa-unlock-alt:before { + content: "\f13e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:325 */ +.fa-bullseye:before { + content: "\f140" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:326 */ +.fa-ellipsis-h:before { + content: "\f141" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:327 */ +.fa-ellipsis-v:before { + content: "\f142" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:328 */ +.fa-rss-square:before { + content: "\f143" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:329 */ +.fa-play-circle:before { + content: "\f144" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:330 */ +.fa-ticket:before { + content: "\f145" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:331 */ +.fa-minus-square:before { + content: "\f146" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:332 */ +.fa-minus-square-o:before { + content: "\f147" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:333 */ +.fa-level-up:before { + content: "\f148" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:334 */ +.fa-level-down:before { + content: "\f149" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:335 */ +.fa-check-square:before { + content: "\f14a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:336 */ +.fa-pencil-square:before { + content: "\f14b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:337 */ +.fa-external-link-square:before { + content: "\f14c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:338 */ +.fa-share-square:before { + content: "\f14d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:339 */ +.fa-compass:before { + content: "\f14e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:340 */ +.fa-toggle-down:before, +.fa-caret-square-o-down:before { + content: "\f150" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:342 */ +.fa-toggle-up:before, +.fa-caret-square-o-up:before { + content: "\f151" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:344 */ +.fa-toggle-right:before, +.fa-caret-square-o-right:before { + content: "\f152" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:346 */ +.fa-euro:before, +.fa-eur:before { + content: "\f153" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:348 */ +.fa-gbp:before { + content: "\f154" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:349 */ +.fa-dollar:before, +.fa-usd:before { + content: "\f155" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:351 */ +.fa-rupee:before, +.fa-inr:before { + content: "\f156" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:353 */ +.fa-cny:before, +.fa-rmb:before, +.fa-yen:before, +.fa-jpy:before { + content: "\f157" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:357 */ +.fa-ruble:before, +.fa-rouble:before, +.fa-rub:before { + content: "\f158" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:360 */ +.fa-won:before, +.fa-krw:before { + content: "\f159" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:362 */ +.fa-bitcoin:before, +.fa-btc:before { + content: "\f15a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:364 */ +.fa-file:before { + content: "\f15b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:365 */ +.fa-file-text:before { + content: "\f15c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:366 */ +.fa-sort-alpha-asc:before { + content: "\f15d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:367 */ +.fa-sort-alpha-desc:before { + content: "\f15e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:368 */ +.fa-sort-amount-asc:before { + content: "\f160" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:369 */ +.fa-sort-amount-desc:before { + content: "\f161" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:370 */ +.fa-sort-numeric-asc:before { + content: "\f162" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:371 */ +.fa-sort-numeric-desc:before { + content: "\f163" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:372 */ +.fa-thumbs-up:before { + content: "\f164" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:373 */ +.fa-thumbs-down:before { + content: "\f165" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:374 */ +.fa-youtube-square:before { + content: "\f166" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:375 */ +.fa-youtube:before { + content: "\f167" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:376 */ +.fa-xing:before { + content: "\f168" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:377 */ +.fa-xing-square:before { + content: "\f169" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:378 */ +.fa-youtube-play:before { + content: "\f16a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:379 */ +.fa-dropbox:before { + content: "\f16b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:380 */ +.fa-stack-overflow:before { + content: "\f16c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:381 */ +.fa-instagram:before { + content: "\f16d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:382 */ +.fa-flickr:before { + content: "\f16e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:383 */ +.fa-adn:before { + content: "\f170" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:384 */ +.fa-bitbucket:before { + content: "\f171" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:385 */ +.fa-bitbucket-square:before { + content: "\f172" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:386 */ +.fa-tumblr:before { + content: "\f173" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:387 */ +.fa-tumblr-square:before { + content: "\f174" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:388 */ +.fa-long-arrow-down:before { + content: "\f175" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:389 */ +.fa-long-arrow-up:before { + content: "\f176" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:390 */ +.fa-long-arrow-left:before { + content: "\f177" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:391 */ +.fa-long-arrow-right:before { + content: "\f178" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:392 */ +.fa-apple:before { + content: "\f179" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:393 */ +.fa-windows:before { + content: "\f17a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:394 */ +.fa-android:before { + content: "\f17b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:395 */ +.fa-linux:before { + content: "\f17c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:396 */ +.fa-dribbble:before { + content: "\f17d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:397 */ +.fa-skype:before { + content: "\f17e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:398 */ +.fa-foursquare:before { + content: "\f180" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:399 */ +.fa-trello:before { + content: "\f181" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:400 */ +.fa-female:before { + content: "\f182" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:401 */ +.fa-male:before { + content: "\f183" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:402 */ +.fa-gittip:before, +.fa-gratipay:before { + content: "\f184" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:404 */ +.fa-sun-o:before { + content: "\f185" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:405 */ +.fa-moon-o:before { + content: "\f186" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:406 */ +.fa-archive:before { + content: "\f187" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:407 */ +.fa-bug:before { + content: "\f188" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:408 */ +.fa-vk:before { + content: "\f189" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:409 */ +.fa-weibo:before { + content: "\f18a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:410 */ +.fa-renren:before { + content: "\f18b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:411 */ +.fa-pagelines:before { + content: "\f18c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:412 */ +.fa-stack-exchange:before { + content: "\f18d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:413 */ +.fa-arrow-circle-o-right:before { + content: "\f18e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:414 */ +.fa-arrow-circle-o-left:before { + content: "\f190" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:415 */ +.fa-toggle-left:before, +.fa-caret-square-o-left:before { + content: "\f191" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:417 */ +.fa-dot-circle-o:before { + content: "\f192" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:418 */ +.fa-wheelchair:before { + content: "\f193" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:419 */ +.fa-vimeo-square:before { + content: "\f194" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:420 */ +.fa-turkish-lira:before, +.fa-try:before { + content: "\f195" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:422 */ +.fa-plus-square-o:before { + content: "\f196" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:423 */ +.fa-space-shuttle:before { + content: "\f197" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:424 */ +.fa-slack:before { + content: "\f198" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:425 */ +.fa-envelope-square:before { + content: "\f199" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:426 */ +.fa-wordpress:before { + content: "\f19a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:427 */ +.fa-openid:before { + content: "\f19b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:428 */ +.fa-institution:before, +.fa-bank:before, +.fa-university:before { + content: "\f19c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:431 */ +.fa-mortar-board:before, +.fa-graduation-cap:before { + content: "\f19d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:433 */ +.fa-yahoo:before { + content: "\f19e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:434 */ +.fa-google:before { + content: "\f1a0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:435 */ +.fa-reddit:before { + content: "\f1a1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:436 */ +.fa-reddit-square:before { + content: "\f1a2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:437 */ +.fa-stumbleupon-circle:before { + content: "\f1a3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:438 */ +.fa-stumbleupon:before { + content: "\f1a4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:439 */ +.fa-delicious:before { + content: "\f1a5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:440 */ +.fa-digg:before { + content: "\f1a6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:441 */ +.fa-pied-piper:before { + content: "\f1a7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:442 */ +.fa-pied-piper-alt:before { + content: "\f1a8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:443 */ +.fa-drupal:before { + content: "\f1a9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:444 */ +.fa-joomla:before { + content: "\f1aa" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:445 */ +.fa-language:before { + content: "\f1ab" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:446 */ +.fa-fax:before { + content: "\f1ac" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:447 */ +.fa-building:before { + content: "\f1ad" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:448 */ +.fa-child:before { + content: "\f1ae" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:449 */ +.fa-paw:before { + content: "\f1b0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:450 */ +.fa-spoon:before { + content: "\f1b1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:451 */ +.fa-cube:before { + content: "\f1b2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:452 */ +.fa-cubes:before { + content: "\f1b3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:453 */ +.fa-behance:before { + content: "\f1b4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:454 */ +.fa-behance-square:before { + content: "\f1b5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:455 */ +.fa-steam:before { + content: "\f1b6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:456 */ +.fa-steam-square:before { + content: "\f1b7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:457 */ +.fa-recycle:before { + content: "\f1b8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:458 */ +.fa-automobile:before, +.fa-car:before { + content: "\f1b9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:460 */ +.fa-cab:before, +.fa-taxi:before { + content: "\f1ba" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:462 */ +.fa-tree:before { + content: "\f1bb" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:463 */ +.fa-spotify:before { + content: "\f1bc" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:464 */ +.fa-deviantart:before { + content: "\f1bd" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:465 */ +.fa-soundcloud:before { + content: "\f1be" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:466 */ +.fa-database:before { + content: "\f1c0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:467 */ +.fa-file-pdf-o:before { + content: "\f1c1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:468 */ +.fa-file-word-o:before { + content: "\f1c2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:469 */ +.fa-file-excel-o:before { + content: "\f1c3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:470 */ +.fa-file-powerpoint-o:before { + content: "\f1c4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:471 */ +.fa-file-photo-o:before, +.fa-file-picture-o:before, +.fa-file-image-o:before { + content: "\f1c5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:474 */ +.fa-file-zip-o:before, +.fa-file-archive-o:before { + content: "\f1c6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:476 */ +.fa-file-sound-o:before, +.fa-file-audio-o:before { + content: "\f1c7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:478 */ +.fa-file-movie-o:before, +.fa-file-video-o:before { + content: "\f1c8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:480 */ +.fa-file-code-o:before { + content: "\f1c9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:481 */ +.fa-vine:before { + content: "\f1ca" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:482 */ +.fa-codepen:before { + content: "\f1cb" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:483 */ +.fa-jsfiddle:before { + content: "\f1cc" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:484 */ +.fa-life-bouy:before, +.fa-life-buoy:before, +.fa-life-saver:before, +.fa-support:before, +.fa-life-ring:before { + content: "\f1cd" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:489 */ +.fa-circle-o-notch:before { + content: "\f1ce" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:490 */ +.fa-ra:before, +.fa-rebel:before { + content: "\f1d0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:492 */ +.fa-ge:before, +.fa-empire:before { + content: "\f1d1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:494 */ +.fa-git-square:before { + content: "\f1d2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:495 */ +.fa-git:before { + content: "\f1d3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:496 */ +.fa-y-combinator-square:before, +.fa-yc-square:before, +.fa-hacker-news:before { + content: "\f1d4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:499 */ +.fa-tencent-weibo:before { + content: "\f1d5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:500 */ +.fa-qq:before { + content: "\f1d6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:501 */ +.fa-wechat:before, +.fa-weixin:before { + content: "\f1d7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:503 */ +.fa-send:before, +.fa-paper-plane:before { + content: "\f1d8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:505 */ +.fa-send-o:before, +.fa-paper-plane-o:before { + content: "\f1d9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:507 */ +.fa-history:before { + content: "\f1da" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:508 */ +.fa-circle-thin:before { + content: "\f1db" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:509 */ +.fa-header:before { + content: "\f1dc" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:510 */ +.fa-paragraph:before { + content: "\f1dd" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:511 */ +.fa-sliders:before { + content: "\f1de" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:512 */ +.fa-share-alt:before { + content: "\f1e0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:513 */ +.fa-share-alt-square:before { + content: "\f1e1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:514 */ +.fa-bomb:before { + content: "\f1e2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:515 */ +.fa-soccer-ball-o:before, +.fa-futbol-o:before { + content: "\f1e3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:517 */ +.fa-tty:before { + content: "\f1e4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:518 */ +.fa-binoculars:before { + content: "\f1e5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:519 */ +.fa-plug:before { + content: "\f1e6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:520 */ +.fa-slideshare:before { + content: "\f1e7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:521 */ +.fa-twitch:before { + content: "\f1e8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:522 */ +.fa-yelp:before { + content: "\f1e9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:523 */ +.fa-newspaper-o:before { + content: "\f1ea" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:524 */ +.fa-wifi:before { + content: "\f1eb" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:525 */ +.fa-calculator:before { + content: "\f1ec" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:526 */ +.fa-paypal:before { + content: "\f1ed" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:527 */ +.fa-google-wallet:before { + content: "\f1ee" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:528 */ +.fa-cc-visa:before { + content: "\f1f0" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:529 */ +.fa-cc-mastercard:before { + content: "\f1f1" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:530 */ +.fa-cc-discover:before { + content: "\f1f2" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:531 */ +.fa-cc-amex:before { + content: "\f1f3" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:532 */ +.fa-cc-paypal:before { + content: "\f1f4" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:533 */ +.fa-cc-stripe:before { + content: "\f1f5" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:534 */ +.fa-bell-slash:before { + content: "\f1f6" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:535 */ +.fa-bell-slash-o:before { + content: "\f1f7" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:536 */ +.fa-trash:before { + content: "\f1f8" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:537 */ +.fa-copyright:before { + content: "\f1f9" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:538 */ +.fa-at:before { + content: "\f1fa" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:539 */ +.fa-eyedropper:before { + content: "\f1fb" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:540 */ +.fa-paint-brush:before { + content: "\f1fc" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:541 */ +.fa-birthday-cake:before { + content: "\f1fd" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:542 */ +.fa-area-chart:before { + content: "\f1fe" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:543 */ +.fa-pie-chart:before { + content: "\f200" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:544 */ +.fa-line-chart:before { + content: "\f201" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:545 */ +.fa-lastfm:before { + content: "\f202" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:546 */ +.fa-lastfm-square:before { + content: "\f203" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:547 */ +.fa-toggle-off:before { + content: "\f204" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:548 */ +.fa-toggle-on:before { + content: "\f205" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:549 */ +.fa-bicycle:before { + content: "\f206" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:550 */ +.fa-bus:before { + content: "\f207" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:551 */ +.fa-ioxhost:before { + content: "\f208" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:552 */ +.fa-angellist:before { + content: "\f209" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:553 */ +.fa-cc:before { + content: "\f20a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:554 */ +.fa-shekel:before, +.fa-sheqel:before, +.fa-ils:before { + content: "\f20b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:557 */ +.fa-meanpath:before { + content: "\f20c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:558 */ +.fa-buysellads:before { + content: "\f20d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:559 */ +.fa-connectdevelop:before { + content: "\f20e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:560 */ +.fa-dashcube:before { + content: "\f210" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:561 */ +.fa-forumbee:before { + content: "\f211" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:562 */ +.fa-leanpub:before { + content: "\f212" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:563 */ +.fa-sellsy:before { + content: "\f213" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:564 */ +.fa-shirtsinbulk:before { + content: "\f214" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:565 */ +.fa-simplybuilt:before { + content: "\f215" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:566 */ +.fa-skyatlas:before { + content: "\f216" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:567 */ +.fa-cart-plus:before { + content: "\f217" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:568 */ +.fa-cart-arrow-down:before { + content: "\f218" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:569 */ +.fa-diamond:before { + content: "\f219" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:570 */ +.fa-ship:before { + content: "\f21a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:571 */ +.fa-user-secret:before { + content: "\f21b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:572 */ +.fa-motorcycle:before { + content: "\f21c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:573 */ +.fa-street-view:before { + content: "\f21d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:574 */ +.fa-heartbeat:before { + content: "\f21e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:575 */ +.fa-venus:before { + content: "\f221" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:576 */ +.fa-mars:before { + content: "\f222" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:577 */ +.fa-mercury:before { + content: "\f223" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:578 */ +.fa-intersex:before, +.fa-transgender:before { + content: "\f224" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:580 */ +.fa-transgender-alt:before { + content: "\f225" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:581 */ +.fa-venus-double:before { + content: "\f226" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:582 */ +.fa-mars-double:before { + content: "\f227" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:583 */ +.fa-venus-mars:before { + content: "\f228" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:584 */ +.fa-mars-stroke:before { + content: "\f229" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:585 */ +.fa-mars-stroke-v:before { + content: "\f22a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:586 */ +.fa-mars-stroke-h:before { + content: "\f22b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:587 */ +.fa-neuter:before { + content: "\f22c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:588 */ +.fa-genderless:before { + content: "\f22d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:589 */ +.fa-facebook-official:before { + content: "\f230" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:590 */ +.fa-pinterest-p:before { + content: "\f231" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:591 */ +.fa-whatsapp:before { + content: "\f232" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:592 */ +.fa-server:before { + content: "\f233" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:593 */ +.fa-user-plus:before { + content: "\f234" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:594 */ +.fa-user-times:before { + content: "\f235" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:595 */ +.fa-hotel:before, +.fa-bed:before { + content: "\f236" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:597 */ +.fa-viacoin:before { + content: "\f237" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:598 */ +.fa-train:before { + content: "\f238" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:599 */ +.fa-subway:before { + content: "\f239" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:600 */ +.fa-medium:before { + content: "\f23a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:601 */ +.fa-yc:before, +.fa-y-combinator:before { + content: "\f23b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:603 */ +.fa-optin-monster:before { + content: "\f23c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:604 */ +.fa-opencart:before { + content: "\f23d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:605 */ +.fa-expeditedssl:before { + content: "\f23e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:606 */ +.fa-battery-4:before, +.fa-battery-full:before { + content: "\f240" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:608 */ +.fa-battery-3:before, +.fa-battery-three-quarters:before { + content: "\f241" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:610 */ +.fa-battery-2:before, +.fa-battery-half:before { + content: "\f242" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:612 */ +.fa-battery-1:before, +.fa-battery-quarter:before { + content: "\f243" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:614 */ +.fa-battery-0:before, +.fa-battery-empty:before { + content: "\f244" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:616 */ +.fa-mouse-pointer:before { + content: "\f245" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:617 */ +.fa-i-cursor:before { + content: "\f246" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:618 */ +.fa-object-group:before { + content: "\f247" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:619 */ +.fa-object-ungroup:before { + content: "\f248" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:620 */ +.fa-sticky-note:before { + content: "\f249" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:621 */ +.fa-sticky-note-o:before { + content: "\f24a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:622 */ +.fa-cc-jcb:before { + content: "\f24b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:623 */ +.fa-cc-diners-club:before { + content: "\f24c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:624 */ +.fa-clone:before { + content: "\f24d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:625 */ +.fa-balance-scale:before { + content: "\f24e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:626 */ +.fa-hourglass-o:before { + content: "\f250" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:627 */ +.fa-hourglass-1:before, +.fa-hourglass-start:before { + content: "\f251" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:629 */ +.fa-hourglass-2:before, +.fa-hourglass-half:before { + content: "\f252" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:631 */ +.fa-hourglass-3:before, +.fa-hourglass-end:before { + content: "\f253" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:633 */ +.fa-hourglass:before { + content: "\f254" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:634 */ +.fa-hand-grab-o:before, +.fa-hand-rock-o:before { + content: "\f255" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:636 */ +.fa-hand-stop-o:before, +.fa-hand-paper-o:before { + content: "\f256" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:638 */ +.fa-hand-scissors-o:before { + content: "\f257" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:639 */ +.fa-hand-lizard-o:before { + content: "\f258" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:640 */ +.fa-hand-spock-o:before { + content: "\f259" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:641 */ +.fa-hand-pointer-o:before { + content: "\f25a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:642 */ +.fa-hand-peace-o:before { + content: "\f25b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:643 */ +.fa-trademark:before { + content: "\f25c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:644 */ +.fa-registered:before { + content: "\f25d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:645 */ +.fa-creative-commons:before { + content: "\f25e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:646 */ +.fa-gg:before { + content: "\f260" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:647 */ +.fa-gg-circle:before { + content: "\f261" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:648 */ +.fa-tripadvisor:before { + content: "\f262" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:649 */ +.fa-odnoklassniki:before { + content: "\f263" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:650 */ +.fa-odnoklassniki-square:before { + content: "\f264" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:651 */ +.fa-get-pocket:before { + content: "\f265" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:652 */ +.fa-wikipedia-w:before { + content: "\f266" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:653 */ +.fa-safari:before { + content: "\f267" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:654 */ +.fa-chrome:before { + content: "\f268" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:655 */ +.fa-firefox:before { + content: "\f269" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:656 */ +.fa-opera:before { + content: "\f26a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:657 */ +.fa-internet-explorer:before { + content: "\f26b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:658 */ +.fa-tv:before, +.fa-television:before { + content: "\f26c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:660 */ +.fa-contao:before { + content: "\f26d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:661 */ +.fa-500px:before { + content: "\f26e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:662 */ +.fa-amazon:before { + content: "\f270" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:663 */ +.fa-calendar-plus-o:before { + content: "\f271" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:664 */ +.fa-calendar-minus-o:before { + content: "\f272" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:665 */ +.fa-calendar-times-o:before { + content: "\f273" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:666 */ +.fa-calendar-check-o:before { + content: "\f274" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:667 */ +.fa-industry:before { + content: "\f275" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:668 */ +.fa-map-pin:before { + content: "\f276" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:669 */ +.fa-map-signs:before { + content: "\f277" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:670 */ +.fa-map-o:before { + content: "\f278" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:671 */ +.fa-map:before { + content: "\f279" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:672 */ +.fa-commenting:before { + content: "\f27a" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:673 */ +.fa-commenting-o:before { + content: "\f27b" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:674 */ +.fa-houzz:before { + content: "\f27c" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:675 */ +.fa-vimeo:before { + content: "\f27d" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:676 */ +.fa-black-tie:before { + content: "\f27e" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/etc/_icons.scss:677 */ +.fa-fonticons:before { + content: "\f280" !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-awesome/sass/src/all.scss:20 */ +.x-fa:before { + font-family: FontAwesome !important; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:3 */ +@font-face { + font-family: 'ExtJS'; + src: url('../resources/font-ext/fonts/ExtJS.eot?-tqegh9'); + src: url('../resources/font-ext/fonts/ExtJS.eot?#iefix-tqegh9') format('embedded-opentype'), url('../resources/font-ext/fonts/ExtJS.ttf?-tqegh9') format('truetype'), url('../resources/font-ext/fonts/ExtJS.woff?-tqegh9') format('woff'), url('../resources/font-ext/fonts/ExtJS.svg?-tqegh9#ExtJS') format('svg'); + font-weight: normal; + font-style: normal; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:14 */ +.ext { + font-family: ExtJS; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:18 */ +.ext-sencha:before { + content: "\e61e"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:21 */ +.ext-checkbox-checked:before { + content: "\e613"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:24 */ +.ext-checkbox-unchecked:before { + content: "\e614"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:27 */ +.ext-chevron-left:before { + content: "\e615"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:30 */ +.ext-chevron-right:before { + content: "\e616"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:33 */ +.ext-double-chevron-left:before { + content: "\e617"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:36 */ +.ext-double-chevron-right:before { + content: "\e618"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:39 */ +.ext-sort-down:before { + content: "\e619"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:42 */ +.ext-sort-up:before { + content: "\e61a"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:45 */ +.ext-spinner-down:before { + content: "\e61b"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:48 */ +.ext-spinner-up:before { + content: "\e61c"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:51 */ +.ext-square-edit:before { + content: "\e61d"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:54 */ +.ext-equals-vertical:before { + content: "\e612"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:57 */ +.ext-collapse:before { + content: "\e600"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:60 */ +.ext-columns:before { + content: "\e601"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:63 */ +.ext-dirty:before { + content: "\e602"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:66 */ +.ext-dirty-rtl:before { + content: "\e603"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:69 */ +.ext-edit-html:before { + content: "\e604"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:72 */ +.ext-equals:before { + content: "\e605"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:75 */ +.ext-expand:before { + content: "\e606"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:78 */ +.ext-group-by:before { + content: "\e607"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:81 */ +.ext-minimize:before { + content: "\e608"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:84 */ +.ext-nw-handle:before { + content: "\e609"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:87 */ +.ext-ne-handle:before { + content: "\e60a"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:90 */ +.ext-sw-handle:before { + content: "\e60b"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:93 */ +.ext-se-handle:before { + content: "\e60c"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:96 */ +.ext-text-background-color:before { + content: "\e60d"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:99 */ +.ext-text-color:before { + content: "\e60e"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:102 */ +.ext-text-decrease:before { + content: "\e60f"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:105 */ +.ext-text-increase:before { + content: "\e610"; +} +/* /home/glauber/dri/frontend/ext/packages/font-ext/sass/src/all.scss:108 */ +.ext-unpin:before { + content: "\e611"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/Component.scss:3 */ +@font-face { + font-family: 'Open Sans'; + src: url('fonts/OpenSans-Light.ttf'); + font-weight: 300; + font-style: normal; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/Component.scss:10 */ +@font-face { + font-family: 'Open Sans'; + src: url('fonts/OpenSans-LightItalic.ttf'); + font-weight: 300; + font-style: italic; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/Component.scss:17 */ +@font-face { + font-family: 'Open Sans'; + src: url('fonts/OpenSans-Regular.ttf'); + font-weight: 400; + font-style: normal; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/Component.scss:24 */ +@font-face { + font-family: 'Open Sans'; + src: url('fonts/OpenSans-Italic.ttf'); + font-weight: 400; + font-style: italic; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/Component.scss:31 */ +@font-face { + font-family: 'Open Sans'; + src: url('fonts/OpenSans-Semibold.ttf'); + font-weight: 600; + font-style: normal; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/Component.scss:38 */ +@font-face { + font-family: 'Open Sans'; + src: url('fonts/OpenSans-SemiboldItalic.ttf'); + font-weight: 600; + font-style: italic; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/Component.scss:45 */ +@font-face { + font-family: 'Open Sans'; + src: url('fonts/OpenSans-Bold.ttf'); + font-weight: 700; + font-style: normal; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/Component.scss:52 */ +@font-face { + font-family: 'Open Sans'; + src: url('fonts/OpenSans-BoldItalic.ttf'); + font-weight: 700; + font-style: italic; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/Component.scss:59 */ +@font-face { + font-family: 'Open Sans'; + src: url('fonts/OpenSans-ExtraBold.ttf'); + font-weight: 800; + font-style: normal; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/Component.scss:66 */ +@font-face { + font-family: 'Open Sans'; + src: url('fonts/OpenSans-ExtraBoldItalic.ttf'); + font-weight: 800; + font-style: italic; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/form/FieldSet.scss:1 */ +.x-fieldset { + border-top: 1px solid #bbb !important; + background: #f6f6f6; + position: static; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/form/FieldSet.scss:6 */ +.x-fieldset .x-fieldset-header { + padding: 10px 5px 10px 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/form/FieldSet.scss:9 */ +.x-fieldset .x-fieldset-body { + position: relative; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/form/FieldSet.scss:12 */ +.x-fieldset.x-fieldset-collapsed { + background: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/menu/Menu.scss:1 */ +.x-menu-item-active .x-menu-item-text { + font-weight: 400; +} +/* /home/glauber/dri/frontend/ext/classic/theme-triton/sass/src/tab/Tab.scss:1 */ +.x-tab-close-btn:before { + display: block; + width: 16px; + line-height: 16px; + text-align: center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-tab-navigation-top { + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + padding: 24px 24px 24px 24px; + border-width: 0; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-tab-navigation-top-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-tab-navigation-top { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-tab-navigation-top-frameInfo { + font-family: th-0-0-0-0-0-0-0-0-24-24-24-24; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-tab-navigation-top-tl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-tab-navigation-top-tr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-tab-navigation-top-bl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-tab-navigation-top-br { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-tab-navigation-top-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-tab-navigation-top-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-tab-navigation-top-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-tab-navigation-top-bc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-tab-navigation-top-tr, +.x-tab-navigation-top-br, +.x-tab-navigation-top-mr { + padding-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-tab-navigation-top-tl, +.x-tab-navigation-top-bl, +.x-tab-navigation-top-ml { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-tab-navigation-top-tc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-tab-navigation-top-bc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-tab-navigation-top-mc { + padding: 24px 24px 24px 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-tab-navigation-bottom { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 24px 24px 24px 24px; + border-width: 0 0 0 0; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-tab-navigation-bottom-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-tab-navigation-bottom { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-tab-navigation-bottom-frameInfo { + font-family: th-0-0-0-0-0-0-0-0-24-24-24-24; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-tab-navigation-bottom-tl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-tab-navigation-bottom-tr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-tab-navigation-bottom-bl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-tab-navigation-bottom-br { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-tab-navigation-bottom-ml { + background-position: 0 bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-tab-navigation-bottom-mr { + background-position: right bottom; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-tab-navigation-bottom-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-tab-navigation-bottom-bc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-tab-navigation-bottom-tr, +.x-tab-navigation-bottom-br, +.x-tab-navigation-bottom-mr { + padding-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-tab-navigation-bottom-tl, +.x-tab-navigation-bottom-bl, +.x-tab-navigation-bottom-ml { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-tab-navigation-bottom-tc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-tab-navigation-bottom-bc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-tab-navigation-bottom-mc { + padding: 24px 24px 24px 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-tab-navigation-left { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 24px 24px 24px 24px; + border-width: 0 0 0 0; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-tab-navigation-left-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-tab-navigation-left { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-tab-navigation-left-frameInfo { + font-family: th-0-0-0-0-0-0-0-0-24-24-24-24; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-tab-navigation-left-tl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-tab-navigation-left-tr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-tab-navigation-left-bl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-tab-navigation-left-br { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-tab-navigation-left-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-tab-navigation-left-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-tab-navigation-left-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-tab-navigation-left-bc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-tab-navigation-left-tr, +.x-tab-navigation-left-br, +.x-tab-navigation-left-mr { + padding-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-tab-navigation-left-tl, +.x-tab-navigation-left-bl, +.x-tab-navigation-left-ml { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-tab-navigation-left-tc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-tab-navigation-left-bc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-tab-navigation-left-mc { + padding: 24px 24px 24px 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:187 */ +.x-tab-navigation-right { + -moz-border-radius-topleft: 0; + -webkit-border-top-left-radius: 0; + border-top-left-radius: 0; + -moz-border-radius-topright: 0; + -webkit-border-top-right-radius: 0; + border-top-right-radius: 0; + -moz-border-radius-bottomright: 0; + -webkit-border-bottom-right-radius: 0; + border-bottom-right-radius: 0; + -moz-border-radius-bottomleft: 0; + -webkit-border-bottom-left-radius: 0; + border-bottom-left-radius: 0; + padding: 24px 24px 24px 24px; + border-width: 0 0 0 0; + border-style: solid; + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:237 */ +.x-tab-navigation-right-mc { + background-color: transparent; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:264 */ +.x-nbr .x-tab-navigation-right { + padding: 0 !important; + border-width: 0 !important; + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + -ms-border-radius: 0px; + -o-border-radius: 0px; + border-radius: 0px; + background-color: transparent !important; + box-shadow: none !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:281 */ +.x-tab-navigation-right-frameInfo { + font-family: th-0-0-0-0-0-0-0-0-24-24-24-24; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:347 */ +.x-tab-navigation-right-tl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:351 */ +.x-tab-navigation-right-tr { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:355 */ +.x-tab-navigation-right-bl { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:359 */ +.x-tab-navigation-right-br { + background-position: right 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:363 */ +.x-tab-navigation-right-ml { + background-position: 0 top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:371 */ +.x-tab-navigation-right-mr { + background-position: right top; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:379 */ +.x-tab-navigation-right-tc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:383 */ +.x-tab-navigation-right-bc { + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:388 */ +.x-tab-navigation-right-tr, +.x-tab-navigation-right-br, +.x-tab-navigation-right-mr { + padding-right: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:394 */ +.x-tab-navigation-right-tl, +.x-tab-navigation-right-bl, +.x-tab-navigation-right-ml { + padding-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:400 */ +.x-tab-navigation-right-tc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:403 */ +.x-tab-navigation-right-bc { + height: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/frame.scss:464 */ +.x-tab-navigation-right-mc { + padding: 24px 24px 24px 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1587 */ +.x-tab-navigation { + border-color: transparent; + cursor: pointer; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1648 */ +.x-tab-navigation-top { + margin: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1657 */ +.x-tab-navigation-top.x-tab-rotate-left { + margin: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1679 */ +.x-tab-navigation-top.x-tab-focus { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1708 */ +.x-tab-navigation-top.x-tab-focus.x-tab-over { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1737 */ +.x-tab-navigation-top.x-tab-focus.x-tab-active { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1763 */ +.x-tab-navigation-right { + margin: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1772 */ +.x-tab-navigation-right.x-tab-rotate-right { + margin: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1794 */ +.x-tab-navigation-right.x-tab-focus { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1823 */ +.x-tab-navigation-right.x-tab-focus.x-tab-over { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1852 */ +.x-tab-navigation-right.x-tab-focus.x-tab-active { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1878 */ +.x-tab-navigation-bottom { + margin: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1887 */ +.x-tab-navigation-bottom.x-tab-rotate-left { + margin: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1909 */ +.x-tab-navigation-bottom.x-tab-focus { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1938 */ +.x-tab-navigation-bottom.x-tab-focus.x-tab-over { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1967 */ +.x-tab-navigation-bottom.x-tab-focus.x-tab-active { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:1993 */ +.x-tab-navigation-left { + margin: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2002 */ +.x-tab-navigation-left.x-tab-rotate-right { + margin: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2024 */ +.x-tab-navigation-left.x-tab-focus { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2053 */ +.x-tab-navigation-left.x-tab-focus.x-tab-over { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2082 */ +.x-tab-navigation-left.x-tab-focus.x-tab-active { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2108 */ +.x-tab-button-navigation { + height: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2113 */ +.x-tab-inner-navigation { + font: bold 15px/19px 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + color: #acacac; + max-width: 100%; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2129 */ +.x-tab-icon-right > .x-tab-inner-navigation, +.x-tab-icon-left > .x-tab-inner-navigation { + max-width: calc(100% - 24px); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2137 */ +.x-tab-icon-el-navigation { + min-height: 24px; + background-position: center center; + font-size: 24px; + line-height: 24px; + color: #acacac; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2138 */ +.x-tab-icon-left > .x-tab-icon-el-navigation, +.x-tab-icon-right > .x-tab-icon-el-navigation { + width: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2143 */ +.x-tab-icon-top > .x-tab-icon-el-navigation, +.x-tab-icon-bottom > .x-tab-icon-el-navigation { + min-width: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2154 */ +.x-tab-bar-plain .x-tab-icon-el-navigation { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2179 */ +.x-tab-text.x-tab-icon-left > .x-tab-icon-el-navigation { + margin-right: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2190 */ +.x-tab-text.x-tab-icon-right > .x-tab-icon-el-navigation { + margin-left: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2201 */ +.x-tab-text.x-tab-icon-top > .x-tab-icon-el-navigation { + margin-bottom: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2205 */ +.x-tab-text.x-tab-icon-bottom > .x-tab-icon-el-navigation { + margin-top: 5px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2210 */ +.x-tab-focus.x-tab-navigation { + border-color: transparent; + background-color: transparent; + outline: 1px solid #5fa2dd; + outline-offset: -3px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:59 */ +.x-ie8 .x-tab-focus.x-tab-navigation { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:39 */ +.x-ie8 .x-tab-focus.x-tab-navigation:after { + position: absolute; + content: ' '; + top: 2px; + right: 2px; + bottom: 2px; + left: 2px; + border: 1px solid #5fa2dd; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2308 */ +.x-tab-bar-plain .x-tab-focus.x-tab-navigation .x-tab-inner-navigation { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2340 */ +.x-tab-bar-plain .x-tab-focus.x-tab-navigation .x-tab-icon-el { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2348 */ +.x-tab-over.x-tab-navigation { + border-color: #000; + background-image: none; + background-color: rgba(80, 80, 80, 0.08); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/background-opacity.scss:19 */ +.x-ie8 .x-tab-over.x-tab-navigation { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#14505050, endColorstr=#14505050); + zoom: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2379 */ +.x-ie8 .x-tab-over.x-tab-navigation.x-tab-rotate-left { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2385 */ +.x-ie8 .x-tab-over.x-tab-navigation.x-tab-rotate-right { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2406 */ +.x-tab-over.x-tab-navigation .x-tab-inner-navigation { + color: #c4c4c4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2411 */ +.x-tab-bar-plain .x-tab-over.x-tab-navigation .x-tab-inner-navigation { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2426 */ +.x-tab-over.x-tab-navigation .x-tab-icon-el { + color: #c4c4c4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2435 */ +.x-ie8m .x-tab-over.x-tab-navigation .x-tab-icon-el { + color: #c4c4c4; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2442 */ +.x-tab-bar-plain .x-tab-over.x-tab-navigation .x-tab-icon-el { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2462 */ +.x-tab-focus.x-tab-over.x-tab-navigation { + border-color: #000; + background-image: none; + background-color: rgba(80, 80, 80, 0.08); +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/background-opacity.scss:19 */ +.x-ie8 .x-tab-focus.x-tab-over.x-tab-navigation { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#14505050, endColorstr=#14505050); + zoom: 1; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2493 */ +.x-ie8 .x-tab-focus.x-tab-over.x-tab-navigation.x-tab-rotate-left { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2499 */ +.x-ie8 .x-tab-focus.x-tab-over.x-tab-navigation.x-tab-rotate-right { + filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2525 */ +.x-tab-bar-plain .x-tab-focus.x-tab-over.x-tab-navigation .x-tab-inner-navigation { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2556 */ +.x-tab-bar-plain .x-tab-focus.x-tab-over.x-tab-navigation .x-tab-icon-el { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2579 */ +.x-tab.x-tab-active.x-tab-navigation { + border-color: #fff; + background-color: #303030; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2637 */ +.x-tab.x-tab-active.x-tab-navigation .x-tab-inner-navigation { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2642 */ +.x-tab-bar-plain .x-tab.x-tab-active.x-tab-navigation .x-tab-inner-navigation { + color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2657 */ +.x-tab.x-tab-active.x-tab-navigation .x-tab-icon-el { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2665 */ +.x-ie8 .x-tab.x-tab-active.x-tab-navigation .x-tab-icon-el { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2671 */ +.x-tab-bar-plain .x-tab.x-tab-active.x-tab-navigation .x-tab-icon-el { + color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2692 */ +.x-tab-focus.x-tab-active.x-tab-navigation { + border-color: #fff; + background-color: #303030; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2755 */ +.x-tab-bar-plain .x-tab-focus.x-tab-active.x-tab-navigation .x-tab-inner-navigation { + color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2786 */ +.x-tab-bar-plain .x-tab-focus.x-tab-active.x-tab-navigation .x-tab-icon-el { + color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2810 */ +.x-tab.x-tab-disabled.x-tab-navigation { + border-color: transparent; + background-color: transparent; + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2872 */ +.x-tab.x-tab-disabled.x-tab-navigation .x-tab-inner-navigation { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; + opacity: 0.3; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2877 */ +.x-tab-bar-plain .x-tab.x-tab-disabled.x-tab-navigation .x-tab-inner-navigation { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2896 */ +.x-tab.x-tab-disabled.x-tab-navigation .x-tab-icon-el-navigation { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2901 */ +.x-tab.x-tab-disabled.x-tab-navigation .x-tab-icon-el { + color: #acacac; + opacity: 0.3; + filter: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2922 */ +.x-tab-bar-plain .x-tab.x-tab-disabled.x-tab-navigation .x-tab-icon-el { + color: #606060; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2942 */ +.x-nbr .x-tab-navigation { + background-image: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-over .x-tab-navigation-top-tl, +.x-tab-over .x-tab-navigation-top-bl, +.x-tab-over .x-tab-navigation-top-tr, +.x-tab-over .x-tab-navigation-top-br, +.x-tab-over .x-tab-navigation-top-tc, +.x-tab-over .x-tab-navigation-top-bc { + background-image: url(images/tab/tab-navigation-top-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-over .x-tab-navigation-top-ml, +.x-tab-over .x-tab-navigation-top-mr { + background-image: url(images/tab/tab-navigation-top-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-over .x-tab-navigation-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-top-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus .x-tab-navigation-top-tl, +.x-tab-focus .x-tab-navigation-top-bl, +.x-tab-focus .x-tab-navigation-top-tr, +.x-tab-focus .x-tab-navigation-top-br, +.x-tab-focus .x-tab-navigation-top-tc, +.x-tab-focus .x-tab-navigation-top-bc { + background-image: url(images/tab/tab-navigation-top-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus .x-tab-navigation-top-ml, +.x-tab-focus .x-tab-navigation-top-mr { + background-image: url(images/tab/tab-navigation-top-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus .x-tab-navigation-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-top-focus-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-over .x-tab-navigation-top-tl, +.x-tab-focus.x-tab-over .x-tab-navigation-top-bl, +.x-tab-focus.x-tab-over .x-tab-navigation-top-tr, +.x-tab-focus.x-tab-over .x-tab-navigation-top-br, +.x-tab-focus.x-tab-over .x-tab-navigation-top-tc, +.x-tab-focus.x-tab-over .x-tab-navigation-top-bc { + background-image: url(images/tab/tab-navigation-top-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-over .x-tab-navigation-top-ml, +.x-tab-focus.x-tab-over .x-tab-navigation-top-mr { + background-image: url(images/tab/tab-navigation-top-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-over .x-tab-navigation-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-top-focus-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-active .x-tab-navigation-top-tl, +.x-tab.x-tab-active .x-tab-navigation-top-bl, +.x-tab.x-tab-active .x-tab-navigation-top-tr, +.x-tab.x-tab-active .x-tab-navigation-top-br, +.x-tab.x-tab-active .x-tab-navigation-top-tc, +.x-tab.x-tab-active .x-tab-navigation-top-bc { + background-image: url(images/tab/tab-navigation-top-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-active .x-tab-navigation-top-ml, +.x-tab.x-tab-active .x-tab-navigation-top-mr { + background-image: url(images/tab/tab-navigation-top-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-active .x-tab-navigation-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-top-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-active .x-tab-navigation-top-tl, +.x-tab-focus.x-tab-active .x-tab-navigation-top-bl, +.x-tab-focus.x-tab-active .x-tab-navigation-top-tr, +.x-tab-focus.x-tab-active .x-tab-navigation-top-br, +.x-tab-focus.x-tab-active .x-tab-navigation-top-tc, +.x-tab-focus.x-tab-active .x-tab-navigation-top-bc { + background-image: url(images/tab/tab-navigation-top-focus-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-active .x-tab-navigation-top-ml, +.x-tab-focus.x-tab-active .x-tab-navigation-top-mr { + background-image: url(images/tab/tab-navigation-top-focus-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-active .x-tab-navigation-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-top-focus-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-disabled .x-tab-navigation-top-tl, +.x-tab.x-tab-disabled .x-tab-navigation-top-bl, +.x-tab.x-tab-disabled .x-tab-navigation-top-tr, +.x-tab.x-tab-disabled .x-tab-navigation-top-br, +.x-tab.x-tab-disabled .x-tab-navigation-top-tc, +.x-tab.x-tab-disabled .x-tab-navigation-top-bc { + background-image: url(images/tab/tab-navigation-top-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-disabled .x-tab-navigation-top-ml, +.x-tab.x-tab-disabled .x-tab-navigation-top-mr { + background-image: url(images/tab/tab-navigation-top-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-disabled .x-tab-navigation-top-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-top-disabled-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-over .x-tab-navigation-right-tl, +.x-tab-over .x-tab-navigation-right-bl, +.x-tab-over .x-tab-navigation-right-tr, +.x-tab-over .x-tab-navigation-right-br, +.x-tab-over .x-tab-navigation-right-tc, +.x-tab-over .x-tab-navigation-right-bc { + background-image: url(images/tab/tab-navigation-right-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-over .x-tab-navigation-right-ml, +.x-tab-over .x-tab-navigation-right-mr { + background-image: url(images/tab/tab-navigation-right-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-over .x-tab-navigation-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-right-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus .x-tab-navigation-right-tl, +.x-tab-focus .x-tab-navigation-right-bl, +.x-tab-focus .x-tab-navigation-right-tr, +.x-tab-focus .x-tab-navigation-right-br, +.x-tab-focus .x-tab-navigation-right-tc, +.x-tab-focus .x-tab-navigation-right-bc { + background-image: url(images/tab/tab-navigation-right-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus .x-tab-navigation-right-ml, +.x-tab-focus .x-tab-navigation-right-mr { + background-image: url(images/tab/tab-navigation-right-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus .x-tab-navigation-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-right-focus-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-over .x-tab-navigation-right-tl, +.x-tab-focus.x-tab-over .x-tab-navigation-right-bl, +.x-tab-focus.x-tab-over .x-tab-navigation-right-tr, +.x-tab-focus.x-tab-over .x-tab-navigation-right-br, +.x-tab-focus.x-tab-over .x-tab-navigation-right-tc, +.x-tab-focus.x-tab-over .x-tab-navigation-right-bc { + background-image: url(images/tab/tab-navigation-right-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-over .x-tab-navigation-right-ml, +.x-tab-focus.x-tab-over .x-tab-navigation-right-mr { + background-image: url(images/tab/tab-navigation-right-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-over .x-tab-navigation-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-right-focus-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-active .x-tab-navigation-right-tl, +.x-tab.x-tab-active .x-tab-navigation-right-bl, +.x-tab.x-tab-active .x-tab-navigation-right-tr, +.x-tab.x-tab-active .x-tab-navigation-right-br, +.x-tab.x-tab-active .x-tab-navigation-right-tc, +.x-tab.x-tab-active .x-tab-navigation-right-bc { + background-image: url(images/tab/tab-navigation-right-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-active .x-tab-navigation-right-ml, +.x-tab.x-tab-active .x-tab-navigation-right-mr { + background-image: url(images/tab/tab-navigation-right-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-active .x-tab-navigation-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-right-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-active .x-tab-navigation-right-tl, +.x-tab-focus.x-tab-active .x-tab-navigation-right-bl, +.x-tab-focus.x-tab-active .x-tab-navigation-right-tr, +.x-tab-focus.x-tab-active .x-tab-navigation-right-br, +.x-tab-focus.x-tab-active .x-tab-navigation-right-tc, +.x-tab-focus.x-tab-active .x-tab-navigation-right-bc { + background-image: url(images/tab/tab-navigation-right-focus-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-active .x-tab-navigation-right-ml, +.x-tab-focus.x-tab-active .x-tab-navigation-right-mr { + background-image: url(images/tab/tab-navigation-right-focus-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-active .x-tab-navigation-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-right-focus-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-disabled .x-tab-navigation-right-tl, +.x-tab.x-tab-disabled .x-tab-navigation-right-bl, +.x-tab.x-tab-disabled .x-tab-navigation-right-tr, +.x-tab.x-tab-disabled .x-tab-navigation-right-br, +.x-tab.x-tab-disabled .x-tab-navigation-right-tc, +.x-tab.x-tab-disabled .x-tab-navigation-right-bc { + background-image: url(images/tab/tab-navigation-right-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-disabled .x-tab-navigation-right-ml, +.x-tab.x-tab-disabled .x-tab-navigation-right-mr { + background-image: url(images/tab/tab-navigation-right-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-disabled .x-tab-navigation-right-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-right-disabled-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-over .x-tab-navigation-bottom-tl, +.x-tab-over .x-tab-navigation-bottom-bl, +.x-tab-over .x-tab-navigation-bottom-tr, +.x-tab-over .x-tab-navigation-bottom-br, +.x-tab-over .x-tab-navigation-bottom-tc, +.x-tab-over .x-tab-navigation-bottom-bc { + background-image: url(images/tab/tab-navigation-bottom-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-over .x-tab-navigation-bottom-ml, +.x-tab-over .x-tab-navigation-bottom-mr { + background-image: url(images/tab/tab-navigation-bottom-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-over .x-tab-navigation-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-bottom-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus .x-tab-navigation-bottom-tl, +.x-tab-focus .x-tab-navigation-bottom-bl, +.x-tab-focus .x-tab-navigation-bottom-tr, +.x-tab-focus .x-tab-navigation-bottom-br, +.x-tab-focus .x-tab-navigation-bottom-tc, +.x-tab-focus .x-tab-navigation-bottom-bc { + background-image: url(images/tab/tab-navigation-bottom-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus .x-tab-navigation-bottom-ml, +.x-tab-focus .x-tab-navigation-bottom-mr { + background-image: url(images/tab/tab-navigation-bottom-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus .x-tab-navigation-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-bottom-focus-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-over .x-tab-navigation-bottom-tl, +.x-tab-focus.x-tab-over .x-tab-navigation-bottom-bl, +.x-tab-focus.x-tab-over .x-tab-navigation-bottom-tr, +.x-tab-focus.x-tab-over .x-tab-navigation-bottom-br, +.x-tab-focus.x-tab-over .x-tab-navigation-bottom-tc, +.x-tab-focus.x-tab-over .x-tab-navigation-bottom-bc { + background-image: url(images/tab/tab-navigation-bottom-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-over .x-tab-navigation-bottom-ml, +.x-tab-focus.x-tab-over .x-tab-navigation-bottom-mr { + background-image: url(images/tab/tab-navigation-bottom-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-over .x-tab-navigation-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-bottom-focus-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-active .x-tab-navigation-bottom-tl, +.x-tab.x-tab-active .x-tab-navigation-bottom-bl, +.x-tab.x-tab-active .x-tab-navigation-bottom-tr, +.x-tab.x-tab-active .x-tab-navigation-bottom-br, +.x-tab.x-tab-active .x-tab-navigation-bottom-tc, +.x-tab.x-tab-active .x-tab-navigation-bottom-bc { + background-image: url(images/tab/tab-navigation-bottom-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-active .x-tab-navigation-bottom-ml, +.x-tab.x-tab-active .x-tab-navigation-bottom-mr { + background-image: url(images/tab/tab-navigation-bottom-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-active .x-tab-navigation-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-bottom-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-active .x-tab-navigation-bottom-tl, +.x-tab-focus.x-tab-active .x-tab-navigation-bottom-bl, +.x-tab-focus.x-tab-active .x-tab-navigation-bottom-tr, +.x-tab-focus.x-tab-active .x-tab-navigation-bottom-br, +.x-tab-focus.x-tab-active .x-tab-navigation-bottom-tc, +.x-tab-focus.x-tab-active .x-tab-navigation-bottom-bc { + background-image: url(images/tab/tab-navigation-bottom-focus-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-active .x-tab-navigation-bottom-ml, +.x-tab-focus.x-tab-active .x-tab-navigation-bottom-mr { + background-image: url(images/tab/tab-navigation-bottom-focus-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-active .x-tab-navigation-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-bottom-focus-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-disabled .x-tab-navigation-bottom-tl, +.x-tab.x-tab-disabled .x-tab-navigation-bottom-bl, +.x-tab.x-tab-disabled .x-tab-navigation-bottom-tr, +.x-tab.x-tab-disabled .x-tab-navigation-bottom-br, +.x-tab.x-tab-disabled .x-tab-navigation-bottom-tc, +.x-tab.x-tab-disabled .x-tab-navigation-bottom-bc { + background-image: url(images/tab/tab-navigation-bottom-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-disabled .x-tab-navigation-bottom-ml, +.x-tab.x-tab-disabled .x-tab-navigation-bottom-mr { + background-image: url(images/tab/tab-navigation-bottom-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-disabled .x-tab-navigation-bottom-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-bottom-disabled-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-over .x-tab-navigation-left-tl, +.x-tab-over .x-tab-navigation-left-bl, +.x-tab-over .x-tab-navigation-left-tr, +.x-tab-over .x-tab-navigation-left-br, +.x-tab-over .x-tab-navigation-left-tc, +.x-tab-over .x-tab-navigation-left-bc { + background-image: url(images/tab/tab-navigation-left-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-over .x-tab-navigation-left-ml, +.x-tab-over .x-tab-navigation-left-mr { + background-image: url(images/tab/tab-navigation-left-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-over .x-tab-navigation-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-left-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus .x-tab-navigation-left-tl, +.x-tab-focus .x-tab-navigation-left-bl, +.x-tab-focus .x-tab-navigation-left-tr, +.x-tab-focus .x-tab-navigation-left-br, +.x-tab-focus .x-tab-navigation-left-tc, +.x-tab-focus .x-tab-navigation-left-bc { + background-image: url(images/tab/tab-navigation-left-focus-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus .x-tab-navigation-left-ml, +.x-tab-focus .x-tab-navigation-left-mr { + background-image: url(images/tab/tab-navigation-left-focus-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus .x-tab-navigation-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-left-focus-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-over .x-tab-navigation-left-tl, +.x-tab-focus.x-tab-over .x-tab-navigation-left-bl, +.x-tab-focus.x-tab-over .x-tab-navigation-left-tr, +.x-tab-focus.x-tab-over .x-tab-navigation-left-br, +.x-tab-focus.x-tab-over .x-tab-navigation-left-tc, +.x-tab-focus.x-tab-over .x-tab-navigation-left-bc { + background-image: url(images/tab/tab-navigation-left-focus-over-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-over .x-tab-navigation-left-ml, +.x-tab-focus.x-tab-over .x-tab-navigation-left-mr { + background-image: url(images/tab/tab-navigation-left-focus-over-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-over .x-tab-navigation-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-left-focus-over-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-active .x-tab-navigation-left-tl, +.x-tab.x-tab-active .x-tab-navigation-left-bl, +.x-tab.x-tab-active .x-tab-navigation-left-tr, +.x-tab.x-tab-active .x-tab-navigation-left-br, +.x-tab.x-tab-active .x-tab-navigation-left-tc, +.x-tab.x-tab-active .x-tab-navigation-left-bc { + background-image: url(images/tab/tab-navigation-left-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-active .x-tab-navigation-left-ml, +.x-tab.x-tab-active .x-tab-navigation-left-mr { + background-image: url(images/tab/tab-navigation-left-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-active .x-tab-navigation-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-left-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab-focus.x-tab-active .x-tab-navigation-left-tl, +.x-tab-focus.x-tab-active .x-tab-navigation-left-bl, +.x-tab-focus.x-tab-active .x-tab-navigation-left-tr, +.x-tab-focus.x-tab-active .x-tab-navigation-left-br, +.x-tab-focus.x-tab-active .x-tab-navigation-left-tc, +.x-tab-focus.x-tab-active .x-tab-navigation-left-bc { + background-image: url(images/tab/tab-navigation-left-focus-active-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab-focus.x-tab-active .x-tab-navigation-left-ml, +.x-tab-focus.x-tab-active .x-tab-navigation-left-mr { + background-image: url(images/tab/tab-navigation-left-focus-active-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab-focus.x-tab-active .x-tab-navigation-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-left-focus-active-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2961 */ +.x-tab.x-tab-disabled .x-tab-navigation-left-tl, +.x-tab.x-tab-disabled .x-tab-navigation-left-bl, +.x-tab.x-tab-disabled .x-tab-navigation-left-tr, +.x-tab.x-tab-disabled .x-tab-navigation-left-br, +.x-tab.x-tab-disabled .x-tab-navigation-left-tc, +.x-tab.x-tab-disabled .x-tab-navigation-left-bc { + background-image: url(images/tab/tab-navigation-left-disabled-corners.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2970 */ +.x-tab.x-tab-disabled .x-tab-navigation-left-ml, +.x-tab.x-tab-disabled .x-tab-navigation-left-mr { + background-image: url(images/tab/tab-navigation-left-disabled-sides.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2975 */ +.x-tab.x-tab-disabled .x-tab-navigation-left-mc { + background-repeat: repeat-x; + background-image: url(images/tab/tab-navigation-left-disabled-fbg.gif); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2985 */ +.x-tab-navigation-tl, +.x-tab-navigation-bl, +.x-tab-navigation-tr, +.x-tab-navigation-br { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:2995 */ +.x-tab-navigation .x-tab-close-btn { + top: 0; + right: 0; + width: 16px; + height: 16px; + font: 12px/1 FontAwesome; + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-tab-navigation .x-tab-close-btn:before { + content: "\f00d"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3005 */ +.x-tab-bar-plain .x-tab-navigation .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3017 */ +.x-tab-navigation .x-tab-close-btn-over { + background-position: -16px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3027 */ +.x-tab-navigation .x-tab-close-btn-pressed { + background-position: -32px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3034 */ +.x-tab-navigation.x-tab-focus .x-tab-close-btn { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3038 */ +.x-tab-bar-plain .x-tab-navigation.x-tab-focus .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3048 */ +.x-tab-navigation.x-tab-over .x-tab-close-btn { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3052 */ +.x-tab-bar-plain .x-tab-navigation.x-tab-over .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3062 */ +.x-tab-navigation.x-tab-focus.x-tab-over .x-tab-close-btn { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3066 */ +.x-tab-bar-plain .x-tab-navigation.x-tab-focus.x-tab-over .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3076 */ +.x-tab-navigation.x-tab-active .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3106 */ +.x-tab-navigation.x-tab-focus.x-tab-active .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3119 */ +.x-tab-navigation.x-tab-disabled .x-tab-close-btn { + color: #fff; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; + opacity: 0.3; + background-position: 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3124 */ +.x-tab-bar-plain .x-tab-navigation.x-tab-disabled .x-tab-close-btn { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Tab.scss:3146 */ +.x-tab-closable.x-tab-navigation .x-tab-button { + padding-right: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:158 */ +.x-tab-bar-navigation { + background-color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:197 */ +.x-tab-bar-navigation-top > .x-tab-bar-body-navigation { + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:201 */ +.x-tab-bar-navigation-bottom > .x-tab-bar-body-navigation { + padding: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:205 */ +.x-tab-bar-navigation-left > .x-tab-bar-body-navigation { + padding: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:215 */ +.x-tab-bar-navigation-right > .x-tab-bar-body-navigation { + padding: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:228 */ +.x-tab-bar-plain.x-tab-bar-navigation-top > .x-tab-bar-body-navigation { + padding: 8px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:232 */ +.x-tab-bar-plain.x-tab-bar-navigation-bottom > .x-tab-bar-body-navigation { + padding: 0 0 8px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:236 */ +.x-tab-bar-plain.x-tab-bar-navigation-left > .x-tab-bar-body-navigation { + padding: 0 0 0 8px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:246 */ +.x-tab-bar-plain.x-tab-bar-navigation-right > .x-tab-bar-body-navigation { + padding: 0 8px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:259 */ +.x-tab-bar-plain.x-tab-bar-navigation-horizontal { + border-top-color: transparent; + border-bottom-color: transparent; + border-left-width: 0; + border-right-width: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:266 */ +.x-tab-bar-plain.x-tab-bar-navigation-vertical { + border-right-color: transparent; + border-left-color: transparent; + border-top-width: 0; + border-bottom-width: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:380 */ +.x-tab-bar-horizontal > .x-tab-bar-body-navigation { + min-height: 72px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:383 */ +.x-ie8m .x-tab-bar-horizontal > .x-tab-bar-body-navigation { + min-height: 72px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:390 */ +.x-tab-bar-vertical > .x-tab-bar-body-navigation { + min-width: 72px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:393 */ +.x-ie8m .x-tab-bar-vertical > .x-tab-bar-body-navigation { + min-width: 72px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:170 */ +.x-tab-bar-navigation-scroller .x-box-scroller-body-horizontal { + margin-left: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:176 */ +.x-tab-bar-navigation-vertical-scroller .x-box-scroller-body-vertical { + margin-top: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:181 */ +.x-box-scroller-tab-bar-navigation { + cursor: pointer; + color: #fff; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + opacity: 0.5; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:191 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-hover { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; + opacity: 0.6; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:197 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-pressed { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; + opacity: 0.7; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:203 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-disabled { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)"; + opacity: 0.25; + cursor: default; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:213 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-left, +.x-box-scroller-tab-bar-navigation.x-box-scroller-right { + width: 24px; + height: 24px; + top: 50%; + margin-top: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:240 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-left { + margin-left: 0; + margin-right: 0; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-left:before { + content: "\f053"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:265 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-right { + margin-left: 0; + margin-right: 0; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-right:before { + content: "\f054"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:292 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-top, +.x-box-scroller-tab-bar-navigation.x-box-scroller-bottom { + height: 24px; + width: 24px; + left: 50%; + margin-left: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:319 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-top { + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-top:before { + content: "\f077"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/layout/container/Box.scss:344 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-bottom { + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + font: 16px/24px FontAwesome; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/etc/mixins/font-icon.scss:126 */ +.x-box-scroller-tab-bar-navigation.x-box-scroller-bottom:before { + content: "\f078"; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:474 */ +.x-tab-bar-plain.x-tab-bar-navigation-scroller .x-box-scroller-body-horizontal { + margin-left: 24px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:480 */ +.x-tab-bar-plain.x-tab-bar-navigation-vertical-scroller .x-box-scroller-body-vertical { + margin-top: 16px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:485 */ +.x-tab-bar-plain .x-box-scroller-tab-bar-navigation { + color: #919191; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:533 */ +.x-tab-bar-navigation-top .x-box-scroller-tab-bar-navigation { + margin-top: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:537 */ +.x-tab-bar-navigation-right .x-box-scroller-tab-bar-navigation { + margin-left: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:541 */ +.x-tab-bar-navigation-bottom .x-box-scroller-tab-bar-navigation { + margin-top: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:545 */ +.x-tab-bar-navigation-left .x-box-scroller-tab-bar-navigation { + margin-left: -12px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:554 */ +.x-box-scroller-tab-bar-navigation { + background-color: #404040; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/tab/Bar.scss:560 */ +.x-box-scroller-tab-bar-navigation .x-ie8 .x-box-scroller-plain { + background-color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:276 */ +.x-panel-navigation { + border-color: #5fa2dd; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:282 */ +.x-panel-header-navigation { + font-size: 20px; + border: 1px solid #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:289 */ +.x-panel-header-navigation .x-tool-img { + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:306 */ +.x-panel-header-navigation-horizontal { + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:310 */ +.x-panel-header-navigation-horizontal .x-panel-header-navigation-tab-bar { + margin-top: 0; + margin-bottom: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:330 */ +.x-panel-header-navigation-vertical { + padding: 0 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:334 */ +.x-panel-header-navigation-vertical .x-panel-header-navigation-tab-bar { + margin-right: 0; + margin-left: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:380 */ +.x-panel-header-title-navigation { + color: #fff; + font-size: 20px; + font-weight: bold; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + line-height: 24px; + margin: 36px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:393 */ +.x-panel-header-title-navigation > .x-title-text-navigation { + text-transform: none; + padding: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:440 */ +.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-top { + height: 39px; + padding-bottom: 15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:445 */ +.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-right { + width: 39px; + padding-left: 15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:457 */ +.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-bottom { + height: 39px; + padding-top: 15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:462 */ +.x-panel-header-title-navigation > .x-title-icon-wrap-navigation.x-title-icon-left { + width: 39px; + padding-right: 15px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:474 */ +.x-panel-header-title-navigation > .x-title-icon-wrap-navigation > .x-title-icon-navigation { + width: 24px; + height: 24px; + font-size: 24px; + color: #fff; + background-position: center center; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:493 */ +.x-ie8 .x-panel-header-title-navigation > .x-title-icon-wrap-navigation > .x-title-icon-navigation { + color: #fff; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:503 */ +.x-panel-body-navigation { + background: #fff; + border-color: #d0d0d0; + color: #404040; + font-size: 13px; + font-weight: 300; + font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif; + border-width: 1px; + border-style: solid; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:667 */ +.x-panel-header-navigation { + background-image: none; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:671 */ +.x-panel-header-navigation-vertical { + background-image: none; + background-color: #5fa2dd; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:729 */ +.x-panel .x-panel-header-navigation-collapsed-border-top { + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:733 */ +.x-panel .x-panel-header-navigation-collapsed-border-right { + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:737 */ +.x-panel .x-panel-header-navigation-collapsed-border-bottom { + border-top-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:741 */ +.x-panel .x-panel-header-navigation-collapsed-border-left { + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:777 */ +.x-panel-header-navigation-horizontal .x-tool-after-title { + margin: 0 0 0 6px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:787 */ +.x-panel-header-navigation-horizontal .x-tool-before-title { + margin: 0 6px 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:799 */ +.x-panel-header-navigation-vertical .x-tool-after-title { + margin: 6px 0 0 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:809 */ +.x-panel-header-navigation-vertical .x-tool-before-title { + margin: 0 0 6px 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:821 */ +.x-panel-header-navigation .x-tool-focus { + outline: 1px solid #fff; + outline-offset: 1px; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:59 */ +.x-ie8 .x-panel-header-navigation .x-tool-focus { + outline: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/css-outline.scss:39 */ +.x-ie8 .x-panel-header-navigation .x-tool-focus:after { + position: absolute; + content: ' '; + top: -2px; + right: -2px; + bottom: -2px; + left: -2px; + border: 1px solid #fff; + pointer-events: none; +} +/* /home/glauber/dri/frontend/ext/classic/theme-neutral/sass/src/panel/Panel.scss:850 */ +.x-panel-navigation-resizable .x-panel-handle { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + opacity: 0; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:2 */ +.x-panel-navigation-outer-border-l { + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:6 */ +.x-panel-navigation-outer-border-b { + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:10 */ +.x-panel-navigation-outer-border-bl { + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:16 */ +.x-panel-navigation-outer-border-r { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:20 */ +.x-panel-navigation-outer-border-rl { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:26 */ +.x-panel-navigation-outer-border-rb { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:32 */ +.x-panel-navigation-outer-border-rbl { + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:40 */ +.x-panel-navigation-outer-border-t { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:44 */ +.x-panel-navigation-outer-border-tl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:50 */ +.x-panel-navigation-outer-border-tb { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:56 */ +.x-panel-navigation-outer-border-tbl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:64 */ +.x-panel-navigation-outer-border-tr { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:70 */ +.x-panel-navigation-outer-border-trl { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-left-color: #5fa2dd !important; + border-left-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:78 */ +.x-panel-navigation-outer-border-trb { + border-top-color: #5fa2dd !important; + border-top-width: 1px !important; + border-right-color: #5fa2dd !important; + border-right-width: 1px !important; + border-bottom-color: #5fa2dd !important; + border-bottom-width: 1px !important; +} +/* /home/glauber/dri/frontend/ext/classic/theme-base/sass/etc/mixins/border-management.scss:86 */ +.x-panel-navigation-outer-border-trbl { + border-color: #5fa2dd !important; + border-width: 1px !important; +} +/* /home/glauber/dri/frontend/DynamicForm/sass/src/view/main/Main.scss:60 */ +.x-title-icon-navigation { + font-family: FontAwesome; + color: #fff; + font-size: 24px; + line-height: 24px; +} +/* /home/glauber/dri/frontend/DynamicForm/sass/src/view/main/Main.scss:67 */ +.x-tab-icon-el-navigation { + font-family: FontAwesome; + color: #acacac; +} +/* /home/glauber/dri/frontend/DynamicForm/sass/src/view/main/Main.scss:71 */ +.x-tab-over .x-tab-icon-el-navigation { + color: #c4c4c4; +} +/* /home/glauber/dri/frontend/DynamicForm/sass/src/view/main/Main.scss:75 */ +.x-tab-active .x-tab-icon-el-navigation { + color: #fff; +} +/* /home/glauber/dri/frontend/DynamicForm/sass/src/view/main/Main.scss:80 */ +.x-panel-header-title-navigation > .x-title-text-navigation:after { + top: 30px; + right: -24px; +} \ No newline at end of file diff --git a/frontend/build/testing/DynamicForm/resources/Readme.md b/frontend/build/testing/DynamicForm/resources/Readme.md new file mode 100644 index 000000000..07d73d6d1 --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/Readme.md @@ -0,0 +1,4 @@ +# DynamicForm/resources + +This folder contains resources (such as images) needed by the application. This file can +be removed if not needed. diff --git a/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/Read Me.txt b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/Read Me.txt new file mode 100644 index 000000000..469bc9908 --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/Read Me.txt @@ -0,0 +1,5 @@ +Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures. + +You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects. + +You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu > Manage Projects) to retrieve your icon selection. diff --git a/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/demo-files/demo.css b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/demo-files/demo.css new file mode 100644 index 000000000..20a31ee16 --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/demo-files/demo.css @@ -0,0 +1,150 @@ +body { + padding: 0; + margin: 0; + font-family: sans-serif; + font-size: 1em; + line-height: 1.5; + color: #555; + background: #fff; +} +h1 { + font-size: 1.5em; + font-weight: normal; +} +small { + font-size: .66666667em; +} +a { + color: #e74c3c; + text-decoration: none; +} +a:hover, a:focus { + box-shadow: 0 1px #e74c3c; +} +.bshadow0, input { + box-shadow: inset 0 -2px #e7e7e7; +} +input:hover { + box-shadow: inset 0 -2px #ccc; +} +input, fieldset { + font-size: 1em; + margin: 0; + padding: 0; + border: 0; +} +input { + color: inherit; + line-height: 1.5; + height: 1.5em; + padding: .25em 0; +} +input:focus { + outline: none; + box-shadow: inset 0 -2px #449fdb; +} +.glyph { + font-size: 16px; + width: 15em; + padding-bottom: 1em; + margin-right: 4em; + margin-bottom: 1em; + float: left; + overflow: hidden; +} +.liga { + width: 80%; + width: calc(100% - 2.5em); +} +.talign-right { + text-align: right; +} +.talign-center { + text-align: center; +} +.bgc1 { + background: #f1f1f1; +} +.fgc1 { + color: #999; +} +.fgc0 { + color: #000; +} +p { + margin-top: 1em; + margin-bottom: 1em; +} +.mvm { + margin-top: .75em; + margin-bottom: .75em; +} +.mtn { + margin-top: 0; +} +.mtl, .mal { + margin-top: 1.5em; +} +.mbl, .mal { + margin-bottom: 1.5em; +} +.mal, .mhl { + margin-left: 1.5em; + margin-right: 1.5em; +} +.mhmm { + margin-left: 1em; + margin-right: 1em; +} +.mls { + margin-left: .25em; +} +.ptl { + padding-top: 1.5em; +} +.pbs, .pvs { + padding-bottom: .25em; +} +.pvs, .pts { + padding-top: .25em; +} +.unit { + float: left; +} +.unitRight { + float: right; +} +.size1of2 { + width: 50%; +} +.size1of1 { + width: 100%; +} +.clearfix:before, .clearfix:after { + content: " "; + display: table; +} +.clearfix:after { + clear: both; +} +.hidden-true { + display: none; +} +.textbox0 { + width: 3em; + background: #f1f1f1; + padding: .25em .5em; + line-height: 1.5; + height: 1.5em; +} +#testDrive { + display: block; + padding-top: 24px; + line-height: 1.5; +} +.fs0 { + font-size: 16px; +} +.fs1 { + font-size: 32px; +} diff --git a/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/demo-files/demo.js b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/demo-files/demo.js new file mode 100644 index 000000000..2f81d2900 --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/demo-files/demo.js @@ -0,0 +1,30 @@ +if (!('boxShadow' in document.body.style)) { + document.body.setAttribute('class', 'noBoxShadow'); +} + +document.body.addEventListener("click", function(e) { + var target = e.target; + if (target.tagName === "INPUT" && + target.getAttribute('class').indexOf('liga') === -1) { + target.select(); + } +}); + +(function() { + var fontSize = document.getElementById('fontSize'), + testDrive = document.getElementById('testDrive'), + testText = document.getElementById('testText'); + function updateTest() { + testDrive.innerHTML = testText.value || String.fromCharCode(160); + if (window.icomoonLiga) { + window.icomoonLiga(testDrive); + } + } + function updateSize() { + testDrive.style.fontSize = fontSize.value + 'px'; + } + fontSize.addEventListener('change', updateSize, false); + testText.addEventListener('input', updateTest, false); + testText.addEventListener('change', updateTest, false); + updateSize(); +}()); diff --git a/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/demo.html b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/demo.html new file mode 100644 index 000000000..09faf8733 --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/demo.html @@ -0,0 +1,231 @@ + + + + + IcoMoon Demo + + + + + +
    +

    Font Name: ext-watermark (Glyphs: 12)

    +
    +
    +

    Grid Size: Unknown

    +
    +
    + + + + icon-extjs-beta-left +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-extjs-beta-right +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-extjs-trial-left +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-extjs-trial-right +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-left-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-left-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-right-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-beta-right-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-left-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-left-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-right-2 +
    +
    + + +
    +
    + liga: + +
    +
    +
    +
    + + + + icon-sencha-extjs-trial-right-3 +
    +
    + + +
    +
    + liga: + +
    +
    +
    + + +
    +

    Font Test Drive

    + + + +
      +
    +
    + +
    +

    Generated by IcoMoon

    +
    + + + + \ No newline at end of file diff --git a/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.eot b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.eot new file mode 100644 index 000000000..7c7fb70cf Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.eot differ diff --git a/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.svg b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.svg new file mode 100644 index 000000000..ad51460e3 --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.svg @@ -0,0 +1,22 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.ttf b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.ttf new file mode 100644 index 000000000..9652f68e8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.woff b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.woff new file mode 100644 index 000000000..002aba642 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/fonts/ext-watermark.woff differ diff --git a/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/selection.json b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/selection.json new file mode 100644 index 000000000..d7bddd418 --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/selection.json @@ -0,0 +1,1049 @@ +{ + "IcoMoonType": "selection", + "icons": [ + { + "icon": { + "width": 1405, + "paths": [ + "M0 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M484.165 261.483l94.471 148.455h-89.41l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 50.61-80.975h86.036l-91.097 146.768z", + "M725.404 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M922.781 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1258.491 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M172.072 1017.252h-172.072v-404.876h160.264c84.349 0 114.715 33.74 114.715 89.41v40.488c0 28.679-13.496 50.61-45.549 64.105 33.74 8.435 59.044 37.114 59.044 74.227v38.801c1.687 59.044-35.427 97.845-116.402 97.845zM183.881 715.282c0-16.87-10.122-28.679-37.114-28.679h-55.671v92.784h55.671c23.618 0 37.114-11.809 37.114-28.679v-35.427zM199.064 883.98c0-21.931-13.496-33.74-38.801-33.74h-69.166v94.471h55.671c28.679 0 50.61-6.748 50.61-35.427v-25.305z", + "M420.059 900.85v8.435c0 33.74 13.496 43.862 53.984 43.862 26.992 0 64.105-5.061 89.41-13.496l13.496 65.792c-26.992 10.122-69.166 18.557-111.341 18.557-96.158 0-131.585-47.236-131.585-119.776v-69.166c0-64.105 28.679-118.089 126.524-118.089s119.776 59.044 119.776 123.15v62.418h-160.264zM495.974 821.562c0-20.244-6.748-37.114-37.114-37.114s-40.488 16.87-40.488 37.114v13.496h75.914v-13.496z", + "M742.273 1024c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-21.931 5.061-45.549 10.122-64.105 10.122z", + "M1018.939 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-8.435-67.479c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-72.54zM1003.756 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-beta-left" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 21, + "id": 11, + "prevSize": 32, + "code": 97, + "name": "extjs-beta-left" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 0 + }, + { + "icon": { + "width": 1405, + "paths": [ + "M0 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M484.165 261.483l94.471 148.455h-89.41l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 50.61-80.975h86.036l-91.097 146.768z", + "M725.404 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M922.781 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1258.491 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M477.417 1017.252h-172.072v-404.876h160.264c84.349 0 114.715 33.74 114.715 89.41v40.488c0 28.679-13.496 50.61-45.549 64.105 33.74 8.435 59.044 37.114 59.044 74.227v38.801c1.687 59.044-35.427 97.845-116.402 97.845zM489.226 715.282c0-16.87-10.122-28.679-37.114-28.679h-55.671v92.784h55.671c23.618 0 37.114-11.809 37.114-28.679v-35.427zM504.409 883.98c0-21.931-13.496-33.74-38.801-33.74h-69.166v94.471h55.671c28.679 0 50.61-6.748 50.61-35.427v-25.305z", + "M725.404 900.85v8.435c0 33.74 13.496 43.862 53.984 43.862 26.992 0 64.105-5.061 89.41-13.496l13.496 65.792c-26.992 10.122-69.166 18.557-111.341 18.557-96.158 0-131.585-47.236-131.585-119.776v-69.166c0-64.105 28.679-118.089 126.524-118.089s119.776 59.044 119.776 123.15v62.418h-160.264zM801.318 821.562c0-20.244-6.748-37.114-37.114-37.114s-40.488 16.87-40.488 37.114v13.496h75.914v-13.496z", + "M1047.618 1024c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-45.549 10.122-64.105 10.122z", + "M1324.283 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-11.809-65.792c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-69.166zM1309.1 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-beta-right" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 10, + "id": 10, + "prevSize": 32, + "code": 98, + "name": "extjs-beta-right" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 1 + }, + { + "icon": { + "width": 1437, + "paths": [ + "M32.053 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M516.217 261.483l94.471 148.455h-87.723l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 52.297-80.975h82.662l-91.097 146.768z", + "M757.456 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M954.834 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1290.544 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M199.064 693.351v323.901h-91.097v-323.901h-107.967v-80.975h308.718v80.975h-109.654z", + "M409.937 836.745v180.507h-87.723v-295.222h72.54l6.748 28.679c18.557-11.809 55.671-30.366 79.288-35.427l6.748 82.662c-25.305 11.809-59.044 26.992-77.601 38.801z", + "M531.4 684.916v-92.784h87.723v92.784h-87.723zM531.4 1017.252v-295.222h87.723v295.222h-87.723z", + "M856.988 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-11.809-65.792c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-69.166zM840.119 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z", + "M1000.382 1017.252v-416.685l87.723-11.809v428.494h-87.723z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-trial-left" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 11, + "id": 9, + "prevSize": 32, + "code": 99, + "name": "extjs-trial-left" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 2 + }, + { + "icon": { + "width": 1405, + "paths": [ + "M0 409.937v-404.876h254.735v80.975h-163.638v74.227h150.142v80.975h-150.142v87.723h163.638v80.975h-254.735z", + "M484.165 261.483l94.471 148.455h-89.41l-52.297-82.662-52.297 82.662h-87.723l94.471-148.455-91.097-146.768h86.036l52.297 80.975 50.61-80.975h86.036l-91.097 146.768z", + "M725.404 416.685c-55.671 0-89.41-21.931-89.41-75.914v-155.203h-40.488v-70.853h40.488v-70.853l87.723-11.809v82.662h67.479l-5.061 70.853h-62.418v143.394c0 11.809 6.748 16.87 18.557 16.87 10.122 0 23.618-1.687 37.114-5.061l10.122 65.792c-20.244 5.061-43.862 10.122-64.105 10.122z", + "M922.781 474.043c43.862-35.427 48.923-42.175 48.923-64.105v-404.876h91.097v418.372c0 38.801-32.053 72.54-86.036 114.715l-53.984-64.105z", + "M1258.491 416.685c-47.236 0-96.158-10.122-129.898-25.305l15.183-70.853c37.114 11.809 74.227 20.244 116.402 20.244 47.236 0 55.671-8.435 55.671-43.862 0-37.114-1.687-40.488-67.479-55.671-97.845-21.931-113.028-40.488-113.028-128.211 0-80.975 28.679-113.028 140.020-113.028 35.427 0 77.601 3.374 123.15 13.496l-8.435 75.914c-45.549-8.435-75.914-11.809-113.028-11.809-40.488 0-50.61 6.748-50.61 37.114 0 38.801 1.687 38.801 65.792 53.984 109.654 25.305 114.715 47.236 114.715 126.524-1.687 82.662-26.992 121.463-148.455 121.463z", + "M502.722 693.351v323.901h-91.097v-323.901h-107.967v-80.975h308.718v80.975h-109.654z", + "M711.908 836.745v180.507h-87.723v-295.222h72.54l6.748 28.679c18.557-11.809 55.671-30.366 79.288-35.427l6.748 82.662c-25.305 11.809-59.044 26.992-77.601 38.801z", + "M833.371 684.916v-92.784h87.723v92.784h-87.723zM833.371 1017.252v-295.222h87.723v295.222h-87.723z", + "M1158.959 1017.252l-6.748-18.557c-33.74 18.557-64.105 25.305-84.349 25.305-53.984 0-77.601-38.801-77.601-89.41 0-59.044 26.992-82.662 87.723-82.662h64.105v-21.931c0-30.366-5.061-40.488-52.297-40.488-25.305 0-52.297 3.374-80.975 8.435l-11.809-65.792c28.679-8.435 72.54-15.183 106.28-15.183 102.906 0 124.837 30.366 124.837 113.028v188.942h-69.166zM1142.089 910.972h-42.175c-18.557 0-25.305 5.061-25.305 21.931s6.748 23.618 23.618 23.618c18.557 0 30.366-5.061 43.862-10.122v-35.427z", + "M1304.040 1017.252v-416.685l87.723-11.809v428.494h-87.723z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "extjs-trial-right" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 22, + "id": 8, + "prevSize": 32, + "code": 100, + "name": "extjs-trial-right" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 3 + }, + { + "icon": { + "width": 3329, + "paths": [ + "M127.586 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M404.298 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM478.861 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M792.026 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l9.942 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1020.686 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-16.57-3.314-41.424-4.971-57.994-4.971-34.796 0-46.395 13.256-46.395 43.081v67.935z", + "M1365.333 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l86.162-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1680.155 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-8.285-66.278c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-71.249zM1665.243 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1948.583 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2422.472 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2661.074 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-62.964 9.942z", + "M2854.939 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3183.016 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M180.608 1017.372h-169.010v-397.67h157.411c82.848 0 112.673 33.139 112.673 87.819v39.767c0 28.168-13.256 49.709-44.738 62.964 33.139 8.285 57.994 36.453 57.994 72.906v38.11c1.657 57.994-34.796 96.104-114.33 96.104zM192.207 720.777c0-16.57-9.942-28.168-36.453-28.168h-54.68v91.133h54.68c23.197 0 36.453-11.599 36.453-28.168v-34.796zM207.12 886.472c0-21.54-13.256-33.139-38.11-33.139h-67.935v92.79h54.68c28.168 0 49.709-6.628 49.709-34.796v-24.854z", + "M424.181 903.042v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s115.987 56.337 115.987 119.301v61.307h-155.754zM498.744 825.165c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M740.66 1024c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-19.883 4.971-43.081 9.942-62.964 9.942z", + "M1014.058 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM997.489 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-left-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 13, + "id": 7, + "prevSize": 32, + "code": 101, + "name": "sencha-extjs-beta-left-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 4 + }, + { + "icon": { + "width": 1107, + "paths": [ + "M80.622 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M255.476 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM302.593 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M500.483 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l6.282 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M644.973 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-10.47-2.094-26.176-3.141-36.646-3.141-21.988 0-29.317 8.376-29.317 27.223v42.928z", + "M862.757 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l54.446-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M1061.693 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M7.329 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M307.828 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h53.399l-58.634 91.092z", + "M457.554 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M580.057 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M788.417 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-61.775-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-6.282 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 1.047 50.258-15.706 75.387-91.092 75.387z", + "M114.127 1019.812h-106.798v-251.288h99.468c52.352 0 71.198 20.941 71.198 55.493v25.129c0 17.8-8.376 31.411-28.27 39.787 20.941 5.235 36.646 23.035 36.646 46.070v24.082c1.047 36.646-21.988 60.728-72.245 60.728zM121.456 832.393c0-10.47-6.282-17.8-23.035-17.8h-34.552v57.587h34.552c14.658 0 23.035-7.329 23.035-17.8v-21.988zM130.879 937.096c0-13.611-8.376-20.941-24.082-20.941h-42.928v58.634h34.552c17.8 0 31.411-4.188 31.411-21.988v-15.706z", + "M268.041 947.566v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s73.292 35.599 73.292 75.387v38.74h-98.421zM315.157 898.356c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M468.025 1024c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M640.785 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM630.315 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-left-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 14, + "id": 6, + "prevSize": 32, + "code": 102, + "name": "sencha-extjs-beta-left-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 5 + }, + { + "icon": { + "width": 3329, + "paths": [ + "M127.586 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M404.298 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM478.861 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M792.026 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l9.942 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1020.686 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-16.57-3.314-41.424-4.971-57.994-4.971-34.796 0-46.395 13.256-46.395 43.081v67.935z", + "M1365.333 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l86.162-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1680.155 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-8.285-66.278c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-71.249zM1665.243 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1948.583 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2422.472 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2661.074 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-62.964 9.942z", + "M2854.939 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3183.016 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M2417.502 1017.372h-169.010v-397.67h157.411c82.848 0 112.673 33.139 112.673 87.819v39.767c0 28.168-13.256 49.709-44.738 62.964 33.139 8.285 57.994 36.453 57.994 72.906v38.11c1.657 57.994-34.796 96.104-114.33 96.104zM2429.1 720.777c0-16.57-9.942-28.168-36.453-28.168h-54.68v91.133h54.68c23.197 0 36.453-11.599 36.453-28.168v-34.796zM2444.013 886.472c0-21.54-13.256-33.139-38.11-33.139h-67.935v92.79h54.68c28.168 0 49.709-6.628 49.709-34.796v-24.854z", + "M2661.074 903.042v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM2735.638 825.165c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M2975.896 1024c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-38.11v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-64.621 9.942z", + "M3249.294 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM3234.382 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-right-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 15, + "id": 5, + "prevSize": 32, + "code": 103, + "name": "sencha-extjs-beta-right-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 6 + }, + { + "icon": { + "width": 1112, + "paths": [ + "M80.622 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M255.476 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM302.593 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M500.483 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l6.282 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M644.973 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-10.47-2.094-26.176-3.141-36.646-3.141-21.988 0-29.317 8.376-29.317 27.223v42.928z", + "M862.757 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l54.446-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M1061.693 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M239.771 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M540.27 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h51.305l-56.54 91.092z", + "M689.996 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M812.499 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M1020.859 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528-1.047 50.258-16.753 75.387-92.139 75.387z", + "M536.082 1019.812h-106.798v-251.288h99.468c52.352 0 71.198 20.941 71.198 55.493v25.129c0 17.8-8.376 31.411-28.27 39.787 20.941 5.235 36.646 23.035 36.646 46.070v24.082c1.047 36.646-21.988 60.728-72.245 60.728zM543.411 832.393c0-10.47-6.282-17.8-23.035-17.8h-34.552v57.587h34.552c14.658 0 23.035-7.329 23.035-17.8v-21.988zM552.834 937.096c0-13.611-8.376-20.941-24.082-20.941h-42.928v58.634h34.552c17.8 0 31.411-4.188 31.411-21.988v-15.706z", + "M689.996 947.566v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM737.112 898.356c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M889.98 1024c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-28.27 6.282-39.787 6.282z", + "M1061.693 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-beta-right-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 16, + "id": 4, + "prevSize": 32, + "code": 104, + "name": "sencha-extjs-beta-right-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 7 + }, + { + "icon": { + "width": 3349, + "paths": [ + "M147.469 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M424.181 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s115.987 56.337 115.987 119.301v61.307h-155.754zM498.744 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M811.909 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l8.285 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-84.505z", + "M1040.57 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-18.227-4.971-43.081-6.628-59.65-6.628-34.796 0-46.395 13.256-46.395 43.081v69.592z", + "M1385.217 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l84.505-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-84.505z", + "M1700.039 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM1685.126 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1968.466 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2442.356 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2679.301 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-19.883 4.971-43.081 9.942-62.964 9.942z", + "M2874.822 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3202.9 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-9.942 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 1.657 79.534-23.197 119.301-144.155 119.301z", + "M195.521 699.236v318.136h-89.476v-318.136h-106.045v-79.534h303.223v79.534h-107.702z", + "M402.641 840.078v177.294h-86.162v-289.968h71.249l6.628 28.168c18.227-11.599 54.68-29.825 77.877-34.796l6.628 81.191c-24.854 9.942-57.994 24.854-76.22 38.11z", + "M521.942 690.951v-91.133h86.162v91.133h-86.162zM521.942 1017.372v-289.968h86.162v289.968h-86.162z", + "M841.735 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM825.165 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M982.576 1017.372v-409.269l86.162-11.599v420.867h-86.162z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-left-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 17, + "id": 3, + "prevSize": 32, + "code": 105, + "name": "sencha-extjs-trial-left-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 8 + }, + { + "icon": { + "width": 1119, + "paths": [ + "M93.186 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M268.041 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s73.292 35.599 73.292 75.387v38.74h-98.421zM315.157 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M513.047 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l5.235 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-53.399z", + "M657.538 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-11.517-3.141-27.223-4.188-37.693-4.188-21.988 0-29.317 8.376-29.317 27.223v43.975z", + "M875.321 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l53.399-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-53.399z", + "M1074.258 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM1064.834 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M19.894 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M320.393 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h51.305l-56.54 91.092z", + "M470.119 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M592.622 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M800.982 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528-1.047 50.258-16.753 75.387-92.139 75.387z", + "M123.55 818.781v201.031h-56.54v-201.031h-67.010v-50.258h191.607v50.258h-68.057z", + "M254.429 907.779v112.033h-54.446v-183.231h45.022l4.188 17.8c11.517-7.329 34.552-18.847 49.211-21.988l4.188 51.305c-15.706 6.282-36.646 15.706-48.164 24.082z", + "M329.816 813.546v-57.587h54.446v57.587h-54.446zM329.816 1019.812v-183.231h54.446v183.231h-54.446z", + "M531.894 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM521.423 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M620.892 1019.812v-258.618l54.446-7.329v265.947h-54.446z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-left-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 18, + "id": 2, + "prevSize": 32, + "code": 106, + "name": "sencha-extjs-trial-left-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 9 + }, + { + "icon": { + "width": 3329, + "paths": [ + "M127.586 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-71.249c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-19.883-111.016-38.11-111.016-124.272 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M404.298 306.537v8.285c0 33.139 13.256 43.081 53.023 43.081 26.511 0 62.964-4.971 87.819-13.256l13.256 64.621c-26.511 9.942-67.935 18.227-109.359 18.227-94.447 0-129.243-46.395-129.243-117.644v-67.935c0-62.964 28.168-115.987 124.272-115.987s117.644 57.994 117.644 120.958v61.307h-157.411zM478.861 228.66c0-19.883-6.628-36.453-36.453-36.453s-39.767 16.57-39.767 36.453v13.256h74.563v-13.256z", + "M792.026 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 9.942-62.964 21.54v192.207h-86.162v-289.968h64.621l9.942 21.54c36.453-16.57 82.848-28.168 115.987-28.168 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1020.686 309.851c0 29.825 13.256 43.081 46.395 43.081 21.54 0 38.11-1.657 59.65-6.628l9.942 71.249c-29.825 6.628-49.709 8.285-69.592 8.285-94.447 0-132.557-34.796-132.557-117.644v-66.278c0-82.848 38.11-117.644 132.557-117.644 19.883 0 41.424 1.657 69.592 8.285l-9.942 71.249c-16.57-3.314-41.424-4.971-57.994-4.971-34.796 0-46.395 13.256-46.395 43.081v67.935z", + "M1365.333 420.867v-192.207c0-13.256-6.628-21.54-21.54-21.54s-44.738 11.599-62.964 21.54v192.207h-86.162v-409.269l86.162-11.599v150.783c34.796-16.57 69.592-26.511 104.388-26.511 49.709 0 66.278 36.453 66.278 92.79v203.806h-86.162z", + "M1680.155 420.867l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-8.285-66.278c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-71.249zM1665.243 316.479h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M1948.583 420.867v-397.67h250.201v79.534h-160.725v72.906h147.469v79.534h-147.469v86.162h160.725v79.534h-250.201z", + "M2422.472 275.055l92.79 145.812h-86.162l-51.366-81.191-51.366 81.191h-86.162l92.79-145.812-89.476-144.155h84.505l51.366 79.534 51.366-79.534h84.505l-92.79 144.155z", + "M2661.074 427.495c-54.68 0-87.819-21.54-87.819-74.563v-152.44h-39.767v-69.592h39.767v-69.592l86.162-11.599v81.191h66.278l-4.971 69.592h-61.307v140.841c0 11.599 6.628 16.57 18.227 16.57 9.942 0 23.197-1.657 36.453-4.971l9.942 64.621c-21.54 4.971-44.738 9.942-62.964 9.942z", + "M2854.939 483.832c43.081-34.796 48.052-41.424 48.052-62.964v-397.67h89.476v410.926c0 38.11-31.482 71.249-84.505 112.673l-53.023-62.964z", + "M3183.016 427.495c-46.395 0-94.447-9.942-127.586-24.854l14.913-69.592c36.453 11.599 72.906 19.883 114.33 19.883 46.395 0 54.68-8.285 54.68-43.081 0-36.453-1.657-39.767-66.278-54.68-96.104-21.54-111.016-39.767-111.016-125.929 0-79.534 28.168-111.016 137.528-111.016 34.796 0 76.22 3.314 120.958 13.256l-8.285 74.563c-44.738-8.285-74.563-11.599-111.016-11.599-39.767 0-49.709 6.628-49.709 36.453 0 38.11 1.657 38.11 64.621 53.023 107.702 24.854 112.673 46.395 112.673 124.272 0 79.534-24.854 119.301-145.812 119.301z", + "M2440.699 699.236v318.136h-89.476v-318.136h-106.045v-79.534h303.223v79.534h-107.702z", + "M2647.819 840.078v177.294h-86.162v-289.968h71.249l6.628 28.168c18.227-11.599 54.68-29.825 77.877-34.796l6.628 81.191c-24.854 9.942-57.994 24.854-76.22 38.11z", + "M2767.12 690.951v-91.133h86.162v91.133h-86.162zM2767.12 1017.372v-289.968h86.162v289.968h-86.162z", + "M3086.913 1017.372l-6.628-18.227c-33.139 18.227-62.964 24.854-82.848 24.854-53.023 0-76.22-38.11-76.22-87.819 0-57.994 26.511-81.191 86.162-81.191h62.964v-21.54c0-29.825-4.971-39.767-51.366-39.767-24.854 0-51.366 3.314-79.534 8.285l-11.599-64.621c28.168-8.285 71.249-14.913 104.388-14.913 101.074 0 122.615 29.825 122.615 111.016v185.579h-67.935zM3070.343 912.984h-41.424c-18.227 0-24.854 4.971-24.854 21.54s6.628 23.197 23.197 23.197c18.227 0 29.825-4.971 43.081-9.942v-34.796z", + "M3227.754 1017.372v-409.269l86.162-11.599v420.867h-86.162z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-right-2" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 19, + "id": 1, + "prevSize": 32, + "code": 107, + "name": "sencha-extjs-trial-right-2" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 10 + }, + { + "icon": { + "width": 1112, + "paths": [ + "M80.622 270.135c-29.317 0-59.681-6.282-80.622-15.706l9.423-45.022c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-12.564-70.151-24.082-70.151-78.528 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528 0 50.258-15.706 75.387-92.139 75.387z", + "M255.476 193.701v5.235c0 20.941 8.376 27.223 33.505 27.223 16.753 0 39.787-3.141 55.493-8.376l8.376 40.834c-16.753 6.282-42.928 11.517-69.104 11.517-59.681 0-81.669-29.317-81.669-74.339v-42.928c0-39.787 17.8-73.292 78.528-73.292s74.339 36.646 74.339 76.434v38.74h-99.468zM302.593 144.491c0-12.564-4.188-23.035-23.035-23.035s-25.129 10.47-25.129 23.035v8.376h47.117v-8.376z", + "M500.483 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 6.282-39.787 13.611v121.456h-54.446v-183.231h40.834l6.282 13.611c23.035-10.47 52.352-17.8 73.292-17.8 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M644.973 195.796c0 18.847 8.376 27.223 29.317 27.223 13.611 0 24.082-1.047 37.693-4.188l6.282 45.022c-18.847 4.188-31.411 5.235-43.975 5.235-59.681 0-83.763-21.988-83.763-74.339v-41.881c0-52.352 24.082-74.339 83.763-74.339 12.564 0 26.176 1.047 43.975 5.235l-6.282 45.022c-10.47-2.094-26.176-3.141-36.646-3.141-21.988 0-29.317 8.376-29.317 27.223v42.928z", + "M862.757 265.947v-121.456c0-8.376-4.188-13.611-13.611-13.611s-28.27 7.329-39.787 13.611v121.456h-54.446v-258.618l54.446-7.329v95.28c21.988-10.47 43.975-16.753 65.963-16.753 31.411 0 41.881 23.035 41.881 58.634v128.785h-54.446z", + "M1061.693 265.947l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-5.235-41.881c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-45.022zM1052.27 199.984h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M239.771 642.879v-251.288h158.102v50.258h-101.562v46.070h93.186v50.258h-93.186v54.446h101.562v50.258h-158.102z", + "M540.27 550.74l58.634 92.139h-54.446l-32.458-51.305-32.458 51.305h-54.446l58.634-92.139-56.54-91.092h53.399l32.458 50.258 32.458-50.258h51.305l-56.54 91.092z", + "M689.996 647.067c-34.552 0-55.493-13.611-55.493-47.117v-96.327h-25.129v-43.975h25.129v-43.975l54.446-7.329v51.305h41.881l-3.141 43.975h-38.74v88.998c0 7.329 4.188 10.47 11.517 10.47 6.282 0 14.658-1.047 23.035-3.141l6.282 40.834c-12.564 3.141-27.223 6.282-39.787 6.282z", + "M812.499 682.667c27.223-21.988 30.364-26.176 30.364-39.787v-251.288h56.54v259.665c0 24.082-19.894 45.022-53.399 71.198l-33.505-39.787z", + "M1020.859 647.067c-29.317 0-59.681-6.282-80.622-15.706l9.423-43.975c23.035 7.329 46.070 12.564 72.245 12.564 29.317 0 34.552-5.235 34.552-27.223 0-23.035-1.047-25.129-41.881-34.552-60.728-13.611-70.151-25.129-70.151-79.575 0-50.258 17.8-70.151 86.904-70.151 21.988 0 48.164 2.094 76.434 8.376l-5.235 47.117c-28.27-5.235-47.117-7.329-70.151-7.329-25.129 0-31.411 4.188-31.411 23.035 0 24.082 1.047 24.082 40.834 33.505 68.057 15.706 71.198 29.317 71.198 78.528-1.047 50.258-16.753 75.387-92.139 75.387z", + "M551.787 818.781v201.031h-56.54v-201.031h-67.010v-50.258h191.607v50.258h-68.057z", + "M681.62 907.779v112.033h-54.446v-183.231h45.022l4.188 17.8c11.517-7.329 34.552-18.847 49.211-21.988l4.188 51.305c-15.706 6.282-36.646 15.706-48.164 24.082z", + "M757.006 813.546v-57.587h54.446v57.587h-54.446zM757.006 1019.812v-183.231h54.446v183.231h-54.446z", + "M959.084 1019.812l-4.188-11.517c-20.941 11.517-39.787 15.706-52.352 15.706-33.505 0-48.164-24.082-48.164-55.493 0-36.646 16.753-51.305 54.446-51.305h39.787v-13.611c0-18.847-3.141-25.129-32.458-25.129-15.706 0-32.458 2.094-50.258 5.235l-7.329-40.834c17.8-5.235 45.022-9.423 65.963-9.423 63.869 0 77.481 18.847 77.481 70.151v117.268h-42.928zM948.613 953.849h-26.176c-11.517 0-15.706 3.141-15.706 13.611s4.188 14.658 14.658 14.658c11.517 0 18.847-3.141 27.223-6.282v-21.988z", + "M1049.129 1019.812v-258.618l54.446-7.329v265.947h-54.446z" + ], + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "isMulticolor": false, + "colorPermutations": { + "6868681": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "tags": [ + "sencha-extjs-trial-right-3" + ], + "grid": 0 + }, + "attrs": [ + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {}, + {} + ], + "properties": { + "order": 20, + "id": 0, + "prevSize": 32, + "code": 108, + "name": "sencha-extjs-trial-right-3" + }, + "setIdx": 0, + "setId": 3, + "iconIdx": 11 + } + ], + "height": 1024, + "metadata": { + "name": "ext-watermark" + }, + "preferences": { + "showGlyphs": true, + "showQuickUse": true, + "showQuickUse2": true, + "showSVGs": true, + "fontPref": { + "prefix": "icon-", + "metadata": { + "fontFamily": "ext-watermark", + "majorVersion": 1, + "minorVersion": 0 + }, + "metrics": { + "emSize": 1024, + "baseline": 6.25, + "whitespace": 50 + }, + "showSelector": true, + "showMetrics": true, + "showMetadata": false, + "showVersion": false + }, + "imagePref": { + "prefix": "icon-", + "png": true, + "useClassSelector": true, + "color": 4473924, + "bgColor": 16777215 + }, + "historySize": 100, + "showCodes": true + } +} \ No newline at end of file diff --git a/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/style.css b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/style.css new file mode 100644 index 000000000..97b924c57 --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/ext/ext-watermark/style.css @@ -0,0 +1,73 @@ +@font-face { + font-family: 'ext-watermark'; + src:url('fonts/ext-watermark.eot?n6lnws'); + src:url('fonts/ext-watermark.eot?#iefixn6lnws') format('embedded-opentype'), + url('fonts/ext-watermark.woff?n6lnws') format('woff'), + url('fonts/ext-watermark.ttf?n6lnws') format('truetype'), + url('fonts/ext-watermark.svg?n6lnws#ext-watermark') format('svg'); + font-weight: normal; + font-style: normal; +} + +[class^="icon-"], [class*=" icon-"] { + font-family: 'ext-watermark'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-extjs-beta-left:before { + content: "\61"; +} + +.icon-extjs-beta-right:before { + content: "\62"; +} + +.icon-extjs-trial-left:before { + content: "\63"; +} + +.icon-extjs-trial-right:before { + content: "\64"; +} + +.icon-sencha-extjs-beta-left-2:before { + content: "\65"; +} + +.icon-sencha-extjs-beta-left-3:before { + content: "\66"; +} + +.icon-sencha-extjs-beta-right-2:before { + content: "\67"; +} + +.icon-sencha-extjs-beta-right-3:before { + content: "\68"; +} + +.icon-sencha-extjs-trial-left-2:before { + content: "\69"; +} + +.icon-sencha-extjs-trial-left-3:before { + content: "\6a"; +} + +.icon-sencha-extjs-trial-right-2:before { + content: "\6b"; +} + +.icon-sencha-extjs-trial-right-3:before { + content: "\6c"; +} + diff --git a/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/FontAwesome.otf b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/FontAwesome.otf new file mode 100644 index 000000000..681bdd4d4 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/FontAwesome.otf differ diff --git a/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.eot b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.eot new file mode 100644 index 000000000..a30335d74 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.eot differ diff --git a/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.svg b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.svg new file mode 100644 index 000000000..9f5324584 --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.svg @@ -0,0 +1,640 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.ttf b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.ttf new file mode 100644 index 000000000..d7994e130 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff new file mode 100644 index 000000000..6fd4ede0f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff differ diff --git a/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff2 b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff2 new file mode 100644 index 000000000..5560193cc Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/font-awesome/fonts/fontawesome-webfont.woff2 differ diff --git a/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.eot b/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.eot new file mode 100644 index 000000000..02bb42979 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.eot differ diff --git a/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.svg b/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.svg new file mode 100644 index 000000000..f0b8438f2 --- /dev/null +++ b/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.svg @@ -0,0 +1,41 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.ttf b/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.ttf new file mode 100644 index 000000000..74a8112ea Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.woff b/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.woff new file mode 100644 index 000000000..a794f9a54 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/font-ext/fonts/ExtJS.woff differ diff --git a/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Bold.ttf b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Bold.ttf new file mode 100644 index 000000000..fd79d43be Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Bold.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-BoldItalic.ttf b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-BoldItalic.ttf new file mode 100644 index 000000000..9bc800958 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-BoldItalic.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-ExtraBold.ttf b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-ExtraBold.ttf new file mode 100644 index 000000000..21f6f84a0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-ExtraBold.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-ExtraBoldItalic.ttf b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-ExtraBoldItalic.ttf new file mode 100644 index 000000000..31cb68834 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-ExtraBoldItalic.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Italic.ttf b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Italic.ttf new file mode 100644 index 000000000..c90da48ff Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Italic.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Light.ttf b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Light.ttf new file mode 100644 index 000000000..0d381897d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Light.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-LightItalic.ttf b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-LightItalic.ttf new file mode 100644 index 000000000..68299c4bc Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-LightItalic.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Regular.ttf b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Regular.ttf new file mode 100644 index 000000000..db433349b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Regular.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Semibold.ttf b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Semibold.ttf new file mode 100644 index 000000000..1a7679e39 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-Semibold.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-SemiboldItalic.ttf b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-SemiboldItalic.ttf new file mode 100644 index 000000000..59b6d16b0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/fonts/OpenSans-SemiboldItalic.ttf differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow-open-rtl.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow-open-rtl.png new file mode 100644 index 000000000..d9968ae6f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow-open-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow-open.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow-open.png new file mode 100644 index 000000000..04b11322b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow-open.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow-rtl.png new file mode 100644 index 000000000..90f717b41 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow.png new file mode 100644 index 000000000..51d286139 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-scroll-left.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-scroll-left.png new file mode 100644 index 000000000..5ff969ee1 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-scroll-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-scroll-right.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-scroll-right.png new file mode 100644 index 000000000..6fed21a55 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-scroll-right.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-open-rtl.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-open-rtl.png new file mode 100644 index 000000000..a8801dfb5 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-open-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-open.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-open.png new file mode 100644 index 000000000..19a667321 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-open.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-over-rtl.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-over-rtl.png new file mode 100644 index 000000000..db04b9d22 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-over-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-over.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-over.png new file mode 100644 index 000000000..5106cdf11 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-over.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-rtl.png new file mode 100644 index 000000000..658194be9 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow.png b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow.png new file mode 100644 index 000000000..d3d375c2f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/breadcrumb/default-split-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-corners.gif new file mode 100644 index 000000000..c8f665190 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-corners.gif new file mode 100644 index 000000000..4a712ba8d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-sides.gif new file mode 100644 index 000000000..88156ca12 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-notitle-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-sides.gif new file mode 100644 index 000000000..9228d0a13 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn-group/btn-group-default-framed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-corners.gif new file mode 100644 index 000000000..e4ae352ee Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-disabled-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-disabled-corners.gif new file mode 100644 index 000000000..192baa887 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-disabled-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-disabled-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-disabled-sides.gif new file mode 100644 index 000000000..fe9ebdba2 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-disabled-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-corners.gif new file mode 100644 index 000000000..2cf5edbe8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-over-corners.gif new file mode 100644 index 000000000..5f3e28973 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-over-sides.gif new file mode 100644 index 000000000..d6bad24d5 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-corners.gif new file mode 100644 index 000000000..d803a4b17 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-sides.gif new file mode 100644 index 000000000..7ffb20fe1 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-sides.gif new file mode 100644 index 000000000..42279d9a0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-focus-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-over-corners.gif new file mode 100644 index 000000000..4231f6e75 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-over-sides.gif new file mode 100644 index 000000000..951ed686f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-pressed-corners.gif new file mode 100644 index 000000000..046409fa0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-pressed-sides.gif new file mode 100644 index 000000000..0973bb7af Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-sides.gif new file mode 100644 index 000000000..2ae4bed0c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-large-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-corners.gif new file mode 100644 index 000000000..e4ae352ee Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-disabled-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-disabled-corners.gif new file mode 100644 index 000000000..192baa887 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-disabled-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-disabled-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-disabled-sides.gif new file mode 100644 index 000000000..fe9ebdba2 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-disabled-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-corners.gif new file mode 100644 index 000000000..2cf5edbe8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-over-corners.gif new file mode 100644 index 000000000..5f3e28973 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-over-sides.gif new file mode 100644 index 000000000..d6bad24d5 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-corners.gif new file mode 100644 index 000000000..d803a4b17 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-sides.gif new file mode 100644 index 000000000..7ffb20fe1 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-sides.gif new file mode 100644 index 000000000..42279d9a0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-focus-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-over-corners.gif new file mode 100644 index 000000000..4231f6e75 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-over-sides.gif new file mode 100644 index 000000000..951ed686f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-pressed-corners.gif new file mode 100644 index 000000000..046409fa0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-pressed-sides.gif new file mode 100644 index 000000000..0973bb7af Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-sides.gif new file mode 100644 index 000000000..f8f8b814f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-medium-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-corners.gif new file mode 100644 index 000000000..e4ae352ee Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-disabled-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-disabled-corners.gif new file mode 100644 index 000000000..192baa887 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-disabled-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-disabled-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-disabled-sides.gif new file mode 100644 index 000000000..fe9ebdba2 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-disabled-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-corners.gif new file mode 100644 index 000000000..2cf5edbe8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-over-corners.gif new file mode 100644 index 000000000..5f3e28973 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-over-sides.gif new file mode 100644 index 000000000..d6bad24d5 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-corners.gif new file mode 100644 index 000000000..d803a4b17 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-sides.gif new file mode 100644 index 000000000..7ffb20fe1 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-sides.gif new file mode 100644 index 000000000..42279d9a0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-focus-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-over-corners.gif new file mode 100644 index 000000000..4231f6e75 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-over-sides.gif new file mode 100644 index 000000000..951ed686f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-pressed-corners.gif new file mode 100644 index 000000000..046409fa0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-pressed-sides.gif new file mode 100644 index 000000000..0973bb7af Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-sides.gif new file mode 100644 index 000000000..0b2b1809e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-small-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-corners.gif new file mode 100644 index 000000000..ad37011e7 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-corners.gif new file mode 100644 index 000000000..56d6218b9 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-sides.gif new file mode 100644 index 000000000..de517ca69 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-disabled-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-corners.gif new file mode 100644 index 000000000..f23d56911 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-sides.gif new file mode 100644 index 000000000..03350a691 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-focus-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-sides.gif new file mode 100644 index 000000000..6847cc4f7 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-large-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-corners.gif new file mode 100644 index 000000000..ad37011e7 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-corners.gif new file mode 100644 index 000000000..56d6218b9 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-sides.gif new file mode 100644 index 000000000..de517ca69 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-disabled-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-corners.gif new file mode 100644 index 000000000..f23d56911 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-sides.gif new file mode 100644 index 000000000..03350a691 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-focus-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-sides.gif new file mode 100644 index 000000000..7092cbcbf Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-medium-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-corners.gif new file mode 100644 index 000000000..ad37011e7 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-corners.gif new file mode 100644 index 000000000..56d6218b9 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-sides.gif new file mode 100644 index 000000000..de517ca69 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-disabled-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-corners.gif new file mode 100644 index 000000000..f23d56911 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-sides.gif new file mode 100644 index 000000000..03350a691 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-focus-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-sides.gif new file mode 100644 index 000000000..d6e6314e4 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-default-toolbar-small-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-focus-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-large-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-focus-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-medium-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-corners.gif new file mode 100644 index 000000000..bd6917d71 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-sides.gif new file mode 100644 index 000000000..ea3c27f30 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif new file mode 100644 index 000000000..b8044840c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif new file mode 100644 index 000000000..38745e514 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-focus-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-corners.gif new file mode 100644 index 000000000..43583d24a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-sides.gif new file mode 100644 index 000000000..08b322e85 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-over-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-corners.gif new file mode 100644 index 000000000..17da9525d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-sides.gif new file mode 100644 index 000000000..9e8743880 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/btn/btn-plain-toolbar-small-pressed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-large-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-large-arrow-rtl.png new file mode 100644 index 000000000..76beeabd4 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-large-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-large-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-large-arrow.png new file mode 100644 index 000000000..32674e438 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-large-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow-b-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow-b-rtl.png new file mode 100644 index 000000000..79677a4ed Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow-b-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow-b.png b/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow-b.png new file mode 100644 index 000000000..9f3928a2f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow-b.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow-rtl.png new file mode 100644 index 000000000..798505079 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow.png new file mode 100644 index 000000000..06ad27b13 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-large-s-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-medium-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-arrow-rtl.png new file mode 100644 index 000000000..d54d3a0da Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-medium-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-arrow.png new file mode 100644 index 000000000..e565db494 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow-b-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow-b-rtl.png new file mode 100644 index 000000000..f2fb53be8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow-b-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow-b.png b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow-b.png new file mode 100644 index 000000000..ee39ae273 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow-b.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow-rtl.png new file mode 100644 index 000000000..fb1114061 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow.png new file mode 100644 index 000000000..c1d187556 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-medium-s-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-small-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-small-arrow-rtl.png new file mode 100644 index 000000000..353844577 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-small-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-small-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-small-arrow.png new file mode 100644 index 000000000..17a9beb1d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-small-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow-b-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow-b-rtl.png new file mode 100644 index 000000000..2f8b2e57f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow-b-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow-b.png b/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow-b.png new file mode 100644 index 000000000..afd13fbb1 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow-b.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow-rtl.png new file mode 100644 index 000000000..f59b79223 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow.png new file mode 100644 index 000000000..eaffbdcb6 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-small-s-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-arrow-rtl.png new file mode 100644 index 000000000..d8f0151dc Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-arrow.png new file mode 100644 index 000000000..31fc36e66 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b-rtl.png new file mode 100644 index 000000000..379d2d9f0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b.png new file mode 100644 index 000000000..dcfe8eabf Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-b.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-rtl.png new file mode 100644 index 000000000..612a6b16b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow.png new file mode 100644 index 000000000..731b207ea Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-large-s-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-arrow-rtl.png new file mode 100644 index 000000000..1648e51c8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-arrow.png new file mode 100644 index 000000000..65fdd036d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b-rtl.png new file mode 100644 index 000000000..8d2232b1a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b.png new file mode 100644 index 000000000..2489479f4 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-b.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-rtl.png new file mode 100644 index 000000000..c81c5f2e0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow.png new file mode 100644 index 000000000..0a6857aac Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-medium-s-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-arrow-rtl.png new file mode 100644 index 000000000..891913855 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-arrow.png new file mode 100644 index 000000000..b56c2a65f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b-rtl.png new file mode 100644 index 000000000..11423517e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b.png new file mode 100644 index 000000000..bb1b08e92 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-b.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-rtl.png new file mode 100644 index 000000000..9e9e16b04 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow.png new file mode 100644 index 000000000..9a728579c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/default-toolbar-small-s-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-arrow-rtl.png new file mode 100644 index 000000000..3d68e7e25 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-arrow.png new file mode 100644 index 000000000..17a9beb1d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-s-arrow-b.png b/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-s-arrow-b.png new file mode 100644 index 000000000..afd13fbb1 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-s-arrow-b.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-s-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-s-arrow-rtl.png new file mode 100644 index 000000000..f59b79223 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-s-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-s-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-s-arrow.png new file mode 100644 index 000000000..eaffbdcb6 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/grid-cell-small-s-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-arrow-rtl.png new file mode 100644 index 000000000..d8f0151dc Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-arrow.png new file mode 100644 index 000000000..31fc36e66 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b-rtl.png new file mode 100644 index 000000000..379d2d9f0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b.png new file mode 100644 index 000000000..dcfe8eabf Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-b.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-rtl.png new file mode 100644 index 000000000..612a6b16b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow.png new file mode 100644 index 000000000..731b207ea Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-large-s-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-arrow-rtl.png new file mode 100644 index 000000000..1648e51c8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-arrow.png new file mode 100644 index 000000000..65fdd036d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b-rtl.png new file mode 100644 index 000000000..8d2232b1a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b.png new file mode 100644 index 000000000..2489479f4 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-b.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-rtl.png new file mode 100644 index 000000000..c81c5f2e0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow.png new file mode 100644 index 000000000..0a6857aac Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-medium-s-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-arrow-rtl.png new file mode 100644 index 000000000..891913855 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-arrow.png new file mode 100644 index 000000000..b56c2a65f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b-rtl.png new file mode 100644 index 000000000..11423517e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b.png new file mode 100644 index 000000000..bb1b08e92 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-b.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-rtl.png new file mode 100644 index 000000000..9e9e16b04 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow.png b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow.png new file mode 100644 index 000000000..9a728579c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/button/plain-toolbar-small-s-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/datepicker/arrow-left.png b/frontend/build/testing/DynamicForm/resources/images/datepicker/arrow-left.png new file mode 100644 index 000000000..fc09f9a6c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/datepicker/arrow-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/datepicker/arrow-right.png b/frontend/build/testing/DynamicForm/resources/images/datepicker/arrow-right.png new file mode 100644 index 000000000..a22b876f9 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/datepicker/arrow-right.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/datepicker/month-arrow.png b/frontend/build/testing/DynamicForm/resources/images/datepicker/month-arrow.png new file mode 100644 index 000000000..f0b572f63 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/datepicker/month-arrow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/dd/drop-add.png b/frontend/build/testing/DynamicForm/resources/images/dd/drop-add.png new file mode 100644 index 000000000..a7b8f28d5 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/dd/drop-add.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/dd/drop-no.png b/frontend/build/testing/DynamicForm/resources/images/dd/drop-no.png new file mode 100644 index 000000000..02e219a14 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/dd/drop-no.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/dd/drop-yes.png b/frontend/build/testing/DynamicForm/resources/images/dd/drop-yes.png new file mode 100644 index 000000000..a7b8f28d5 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/dd/drop-yes.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/editor/tb-sprite.png b/frontend/build/testing/DynamicForm/resources/images/editor/tb-sprite.png new file mode 100644 index 000000000..988611808 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/editor/tb-sprite.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/fieldset/collapse-tool.png b/frontend/build/testing/DynamicForm/resources/images/fieldset/collapse-tool.png new file mode 100644 index 000000000..97eb83f59 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/fieldset/collapse-tool.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/checkbox.png b/frontend/build/testing/DynamicForm/resources/images/form/checkbox.png new file mode 100644 index 000000000..fc2709cae Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/checkbox.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/clear-trigger-rtl.png b/frontend/build/testing/DynamicForm/resources/images/form/clear-trigger-rtl.png new file mode 100644 index 000000000..73e1dbe9f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/clear-trigger-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/clear-trigger.png b/frontend/build/testing/DynamicForm/resources/images/form/clear-trigger.png new file mode 100644 index 000000000..73e1dbe9f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/clear-trigger.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/date-trigger-rtl.png b/frontend/build/testing/DynamicForm/resources/images/form/date-trigger-rtl.png new file mode 100644 index 000000000..948949369 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/date-trigger-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/date-trigger.png b/frontend/build/testing/DynamicForm/resources/images/form/date-trigger.png new file mode 100644 index 000000000..948949369 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/date-trigger.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/exclamation.png b/frontend/build/testing/DynamicForm/resources/images/form/exclamation.png new file mode 100644 index 000000000..3e6e3d089 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/exclamation.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/radio.png b/frontend/build/testing/DynamicForm/resources/images/form/radio.png new file mode 100644 index 000000000..86644bb8e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/radio.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/search-trigger-rtl.png b/frontend/build/testing/DynamicForm/resources/images/form/search-trigger-rtl.png new file mode 100644 index 000000000..15e15f5f7 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/search-trigger-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/search-trigger.png b/frontend/build/testing/DynamicForm/resources/images/form/search-trigger.png new file mode 100644 index 000000000..15e15f5f7 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/search-trigger.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/spinner-rtl.png b/frontend/build/testing/DynamicForm/resources/images/form/spinner-rtl.png new file mode 100644 index 000000000..28d140f33 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/spinner-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/spinner.png b/frontend/build/testing/DynamicForm/resources/images/form/spinner.png new file mode 100644 index 000000000..28d140f33 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/spinner.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/tag-field-item-close.png b/frontend/build/testing/DynamicForm/resources/images/form/tag-field-item-close.png new file mode 100644 index 000000000..bcb2834d6 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/tag-field-item-close.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/trigger-rtl.png b/frontend/build/testing/DynamicForm/resources/images/form/trigger-rtl.png new file mode 100644 index 000000000..b4e2d5c31 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/trigger-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/form/trigger.png b/frontend/build/testing/DynamicForm/resources/images/form/trigger.png new file mode 100644 index 000000000..b4e2d5c31 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/form/trigger.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-corners.gif b/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-corners.gif new file mode 100644 index 000000000..422727564 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-sides.gif b/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-sides.gif new file mode 100644 index 000000000..b0bbe707a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-bottom-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-corners.gif b/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-corners.gif new file mode 100644 index 000000000..d3c49a289 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-sides.gif b/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-sides.gif new file mode 100644 index 000000000..b0bbe707a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid-row-editor-buttons/grid-row-editor-buttons-default-top-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/col-move-bottom.png b/frontend/build/testing/DynamicForm/resources/images/grid/col-move-bottom.png new file mode 100644 index 000000000..97822194e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/col-move-bottom.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/col-move-top.png b/frontend/build/testing/DynamicForm/resources/images/grid/col-move-top.png new file mode 100644 index 000000000..6e28535af Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/col-move-top.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/columns.png b/frontend/build/testing/DynamicForm/resources/images/grid/columns.png new file mode 100644 index 000000000..70a5c8735 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/columns.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/dd-insert-arrow-left.png b/frontend/build/testing/DynamicForm/resources/images/grid/dd-insert-arrow-left.png new file mode 100644 index 000000000..e8177d057 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/dd-insert-arrow-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/dd-insert-arrow-right.png b/frontend/build/testing/DynamicForm/resources/images/grid/dd-insert-arrow-right.png new file mode 100644 index 000000000..d610f9d55 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/dd-insert-arrow-right.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/dirty-rtl.png b/frontend/build/testing/DynamicForm/resources/images/grid/dirty-rtl.png new file mode 100644 index 000000000..5f8412289 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/dirty-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/dirty.png b/frontend/build/testing/DynamicForm/resources/images/grid/dirty.png new file mode 100644 index 000000000..fc06fdde5 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/dirty.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/drop-no.png b/frontend/build/testing/DynamicForm/resources/images/grid/drop-no.png new file mode 100644 index 000000000..02e219a14 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/drop-no.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/drop-yes.png b/frontend/build/testing/DynamicForm/resources/images/grid/drop-yes.png new file mode 100644 index 000000000..a7b8f28d5 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/drop-yes.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/filters/equals.png b/frontend/build/testing/DynamicForm/resources/images/grid/filters/equals.png new file mode 100644 index 000000000..c1060caea Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/filters/equals.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/filters/find.png b/frontend/build/testing/DynamicForm/resources/images/grid/filters/find.png new file mode 100644 index 000000000..dbfbc16d9 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/filters/find.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/filters/greater_than.png b/frontend/build/testing/DynamicForm/resources/images/grid/filters/greater_than.png new file mode 100644 index 000000000..be41c9a85 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/filters/greater_than.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/filters/less_than.png b/frontend/build/testing/DynamicForm/resources/images/grid/filters/less_than.png new file mode 100644 index 000000000..80aacddf2 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/filters/less_than.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/group-by.png b/frontend/build/testing/DynamicForm/resources/images/grid/group-by.png new file mode 100644 index 000000000..8508adeb8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/group-by.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/group-collapse.png b/frontend/build/testing/DynamicForm/resources/images/grid/group-collapse.png new file mode 100644 index 000000000..49fcc4fda Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/group-collapse.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/group-expand.png b/frontend/build/testing/DynamicForm/resources/images/grid/group-expand.png new file mode 100644 index 000000000..d65a7df03 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/group-expand.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/hd-pop.png b/frontend/build/testing/DynamicForm/resources/images/grid/hd-pop.png new file mode 100644 index 000000000..3ad96ef66 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/hd-pop.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-asc.png b/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-asc.png new file mode 100644 index 000000000..a206d35fe Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-asc.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-desc.png b/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-desc.png new file mode 100644 index 000000000..55a714e1c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-desc.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-lock.png b/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-lock.png new file mode 100644 index 000000000..b293e10d0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-lock.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-unlock.png b/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-unlock.png new file mode 100644 index 000000000..e9e9df59c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/hmenu-unlock.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/loading.gif b/frontend/build/testing/DynamicForm/resources/images/grid/loading.gif new file mode 100644 index 000000000..81b0f1257 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/loading.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/page-first.png b/frontend/build/testing/DynamicForm/resources/images/grid/page-first.png new file mode 100644 index 000000000..7691f320e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/page-first.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/page-last.png b/frontend/build/testing/DynamicForm/resources/images/grid/page-last.png new file mode 100644 index 000000000..49b13d7ea Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/page-last.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/page-next.png b/frontend/build/testing/DynamicForm/resources/images/grid/page-next.png new file mode 100644 index 000000000..c3e72bab9 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/page-next.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/page-prev.png b/frontend/build/testing/DynamicForm/resources/images/grid/page-prev.png new file mode 100644 index 000000000..cace90be7 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/page-prev.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/pick-button.png b/frontend/build/testing/DynamicForm/resources/images/grid/pick-button.png new file mode 100644 index 000000000..acafacefa Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/pick-button.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/refresh.png b/frontend/build/testing/DynamicForm/resources/images/grid/refresh.png new file mode 100644 index 000000000..5320dddee Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/refresh.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/sort_asc.png b/frontend/build/testing/DynamicForm/resources/images/grid/sort_asc.png new file mode 100644 index 000000000..a206d35fe Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/sort_asc.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/grid/sort_desc.png b/frontend/build/testing/DynamicForm/resources/images/grid/sort_desc.png new file mode 100644 index 000000000..55a714e1c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/grid/sort_desc.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/loadmask/loading.gif b/frontend/build/testing/DynamicForm/resources/images/loadmask/loading.gif new file mode 100644 index 000000000..8471b4f0b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/loadmask/loading.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/magnify.png b/frontend/build/testing/DynamicForm/resources/images/magnify.png new file mode 100644 index 000000000..b807c42a4 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/magnify.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/menu/default-checked.png b/frontend/build/testing/DynamicForm/resources/images/menu/default-checked.png new file mode 100644 index 000000000..4f5157d87 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/menu/default-checked.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/menu/default-group-checked.png b/frontend/build/testing/DynamicForm/resources/images/menu/default-group-checked.png new file mode 100644 index 000000000..a9f0b80fd Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/menu/default-group-checked.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/menu/default-menu-parent-left.png b/frontend/build/testing/DynamicForm/resources/images/menu/default-menu-parent-left.png new file mode 100644 index 000000000..d45756444 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/menu/default-menu-parent-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/menu/default-menu-parent.png b/frontend/build/testing/DynamicForm/resources/images/menu/default-menu-parent.png new file mode 100644 index 000000000..2d2331ed3 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/menu/default-menu-parent.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/menu/default-scroll-bottom.png b/frontend/build/testing/DynamicForm/resources/images/menu/default-scroll-bottom.png new file mode 100644 index 000000000..d89a459ad Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/menu/default-scroll-bottom.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/menu/default-scroll-top.png b/frontend/build/testing/DynamicForm/resources/images/menu/default-scroll-top.png new file mode 100644 index 000000000..bbbf4af7a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/menu/default-scroll-top.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/menu/default-unchecked.png b/frontend/build/testing/DynamicForm/resources/images/menu/default-unchecked.png new file mode 100644 index 000000000..bce8817b0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/menu/default-unchecked.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-bottom-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-bottom-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-left-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-right-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-collapsed-top-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-left-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-right-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-default-framed-top-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-sides.gif new file mode 100644 index 000000000..41855183b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-bottom-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif new file mode 100644 index 000000000..41855183b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-bottom-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners-rtl.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-sides.gif new file mode 100644 index 000000000..57a02b72e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-left-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners-rtl.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-sides.gif new file mode 100644 index 000000000..57a02b72e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-right-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-sides.gif new file mode 100644 index 000000000..41855183b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-collapsed-top-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners-rtl.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-sides.gif new file mode 100644 index 000000000..57a02b72e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-left-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners-rtl.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-sides.gif new file mode 100644 index 000000000..57a02b72e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-right-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-sides.gif new file mode 100644 index 000000000..41855183b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel-header/panel-header-light-framed-top-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel/panel-default-framed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel/panel-default-framed-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel/panel-default-framed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel/panel-default-framed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel/panel-default-framed-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel/panel-default-framed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel/panel-light-framed-corners.gif b/frontend/build/testing/DynamicForm/resources/images/panel/panel-light-framed-corners.gif new file mode 100644 index 000000000..8aa213848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel/panel-light-framed-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/panel/panel-light-framed-sides.gif b/frontend/build/testing/DynamicForm/resources/images/panel/panel-light-framed-sides.gif new file mode 100644 index 000000000..57a02b72e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/panel/panel-light-framed-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/shared/icon-error.png b/frontend/build/testing/DynamicForm/resources/images/shared/icon-error.png new file mode 100644 index 000000000..458c0989f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/shared/icon-error.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/shared/icon-info.png b/frontend/build/testing/DynamicForm/resources/images/shared/icon-info.png new file mode 100644 index 000000000..cbccd11cf Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/shared/icon-info.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/shared/icon-question.png b/frontend/build/testing/DynamicForm/resources/images/shared/icon-question.png new file mode 100644 index 000000000..cac922e0d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/shared/icon-question.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/shared/icon-warning.png b/frontend/build/testing/DynamicForm/resources/images/shared/icon-warning.png new file mode 100644 index 000000000..042ca05cd Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/shared/icon-warning.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/sizer/e-handle.png b/frontend/build/testing/DynamicForm/resources/images/sizer/e-handle.png new file mode 100644 index 000000000..2fe5cb15d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/sizer/e-handle.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/sizer/ne-handle.png b/frontend/build/testing/DynamicForm/resources/images/sizer/ne-handle.png new file mode 100644 index 000000000..8d8eb6387 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/sizer/ne-handle.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/sizer/nw-handle.png b/frontend/build/testing/DynamicForm/resources/images/sizer/nw-handle.png new file mode 100644 index 000000000..9835bea83 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/sizer/nw-handle.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/sizer/s-handle.png b/frontend/build/testing/DynamicForm/resources/images/sizer/s-handle.png new file mode 100644 index 000000000..06f914e7c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/sizer/s-handle.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/sizer/se-handle.png b/frontend/build/testing/DynamicForm/resources/images/sizer/se-handle.png new file mode 100644 index 000000000..5a2c695c7 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/sizer/se-handle.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/sizer/sw-handle.png b/frontend/build/testing/DynamicForm/resources/images/sizer/sw-handle.png new file mode 100644 index 000000000..7f68f406a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/sizer/sw-handle.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/slider/slider-bg.png b/frontend/build/testing/DynamicForm/resources/images/slider/slider-bg.png new file mode 100644 index 000000000..1ade2925b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/slider/slider-bg.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/slider/slider-thumb.png b/frontend/build/testing/DynamicForm/resources/images/slider/slider-thumb.png new file mode 100644 index 000000000..d8a03de94 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/slider/slider-thumb.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/slider/slider-v-bg.png b/frontend/build/testing/DynamicForm/resources/images/slider/slider-v-bg.png new file mode 100644 index 000000000..c24663e50 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/slider/slider-v-bg.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/slider/slider-v-thumb.png b/frontend/build/testing/DynamicForm/resources/images/slider/slider-v-thumb.png new file mode 100644 index 000000000..d8a03de94 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/slider/slider-v-thumb.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-bottom.png b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-bottom.png new file mode 100644 index 000000000..813a4d54b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-bottom.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-left.png b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-left.png new file mode 100644 index 000000000..9120ea427 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-right.png b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-right.png new file mode 100644 index 000000000..67fd5a4b6 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-right.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-top.png b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-top.png new file mode 100644 index 000000000..01ad4ee9a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-plain-scroll-top.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-bottom.png b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-bottom.png new file mode 100644 index 000000000..ffff826e3 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-bottom.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-left.png b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-left.png new file mode 100644 index 000000000..2c352941f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-right.png b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-right.png new file mode 100644 index 000000000..82dfe01f6 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-right.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-top.png b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-top.png new file mode 100644 index 000000000..b2fabfc32 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab-bar/default-scroll-top.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-active-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-active-fbg.gif new file mode 100644 index 000000000..7ab3e2a2f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-active-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-focus-active-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-focus-active-fbg.gif new file mode 100644 index 000000000..7ab3e2a2f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-focus-active-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-focus-over-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-focus-over-fbg.gif new file mode 100644 index 000000000..48a5a75cb Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-focus-over-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-over-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-over-fbg.gif new file mode 100644 index 000000000..48a5a75cb Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-bottom-over-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-close.png b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-close.png new file mode 100644 index 000000000..46cc89f5f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-close.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-active-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-active-fbg.gif new file mode 100644 index 000000000..e6f77b848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-active-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-focus-active-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-focus-active-fbg.gif new file mode 100644 index 000000000..e6f77b848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-focus-active-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-focus-over-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-focus-over-fbg.gif new file mode 100644 index 000000000..e11bf8100 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-focus-over-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-over-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-over-fbg.gif new file mode 100644 index 000000000..e11bf8100 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-left-over-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-active-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-active-fbg.gif new file mode 100644 index 000000000..e6f77b848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-active-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-focus-active-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-focus-active-fbg.gif new file mode 100644 index 000000000..e6f77b848 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-focus-active-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-focus-over-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-focus-over-fbg.gif new file mode 100644 index 000000000..e11bf8100 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-focus-over-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-over-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-over-fbg.gif new file mode 100644 index 000000000..e11bf8100 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-right-over-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-active-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-active-fbg.gif new file mode 100644 index 000000000..7ab3e2a2f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-active-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-focus-active-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-focus-active-fbg.gif new file mode 100644 index 000000000..7ab3e2a2f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-focus-active-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-focus-over-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-focus-over-fbg.gif new file mode 100644 index 000000000..48a5a75cb Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-focus-over-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-over-fbg.gif b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-over-fbg.gif new file mode 100644 index 000000000..48a5a75cb Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tab/tab-default-top-over-fbg.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tip/tip-default-corners.gif b/frontend/build/testing/DynamicForm/resources/images/tip/tip-default-corners.gif new file mode 100644 index 000000000..a22235946 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tip/tip-default-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tip/tip-default-sides.gif b/frontend/build/testing/DynamicForm/resources/images/tip/tip-default-sides.gif new file mode 100644 index 000000000..5dff76519 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tip/tip-default-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tip/tip-form-invalid-corners.gif b/frontend/build/testing/DynamicForm/resources/images/tip/tip-form-invalid-corners.gif new file mode 100644 index 000000000..a22235946 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tip/tip-form-invalid-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tip/tip-form-invalid-sides.gif b/frontend/build/testing/DynamicForm/resources/images/tip/tip-form-invalid-sides.gif new file mode 100644 index 000000000..5dff76519 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tip/tip-form-invalid-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/toolbar/default-more-left.png b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-more-left.png new file mode 100644 index 000000000..b6756e6a0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-more-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/toolbar/default-more.png b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-more.png new file mode 100644 index 000000000..b6756e6a0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-more.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-bottom.png b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-bottom.png new file mode 100644 index 000000000..6741161e8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-bottom.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-left.png b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-left.png new file mode 100644 index 000000000..5ff969ee1 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-right.png b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-right.png new file mode 100644 index 000000000..6fed21a55 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-right.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-top.png b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-top.png new file mode 100644 index 000000000..2a26ba95a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/toolbar/default-scroll-top.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-more-left.png b/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-more-left.png new file mode 100644 index 000000000..b6756e6a0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-more-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-more.png b/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-more.png new file mode 100644 index 000000000..b6756e6a0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-more.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-scroll-left.png b/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-scroll-left.png new file mode 100644 index 000000000..5ff969ee1 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-scroll-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-scroll-right.png b/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-scroll-right.png new file mode 100644 index 000000000..6fed21a55 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/toolbar/footer-scroll-right.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tools/tool-sprites-dark.png b/frontend/build/testing/DynamicForm/resources/images/tools/tool-sprites-dark.png new file mode 100644 index 000000000..474088b6d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tools/tool-sprites-dark.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tools/tool-sprites.png b/frontend/build/testing/DynamicForm/resources/images/tools/tool-sprites.png new file mode 100644 index 000000000..17fbc0f1f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tools/tool-sprites.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/arrows-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/arrows-rtl.png new file mode 100644 index 000000000..4aae887d8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/arrows-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/arrows.png b/frontend/build/testing/DynamicForm/resources/images/tree/arrows.png new file mode 100644 index 000000000..de10dd6fa Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/arrows.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-above.png b/frontend/build/testing/DynamicForm/resources/images/tree/drop-above.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-above.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-add.gif b/frontend/build/testing/DynamicForm/resources/images/tree/drop-add.gif new file mode 100644 index 000000000..b22cd1448 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-add.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-add.png b/frontend/build/testing/DynamicForm/resources/images/tree/drop-add.png new file mode 100644 index 000000000..c9d24fd82 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-add.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-append.png b/frontend/build/testing/DynamicForm/resources/images/tree/drop-append.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-append.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-below.png b/frontend/build/testing/DynamicForm/resources/images/tree/drop-below.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-below.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-between.gif b/frontend/build/testing/DynamicForm/resources/images/tree/drop-between.gif new file mode 100644 index 000000000..f5a042d72 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-between.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-between.png b/frontend/build/testing/DynamicForm/resources/images/tree/drop-between.png new file mode 100644 index 000000000..578253182 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-between.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-no.gif b/frontend/build/testing/DynamicForm/resources/images/tree/drop-no.gif new file mode 100644 index 000000000..9d9c6a9ce Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-no.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-no.png b/frontend/build/testing/DynamicForm/resources/images/tree/drop-no.png new file mode 100644 index 000000000..bb89cfc14 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-no.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-over.gif b/frontend/build/testing/DynamicForm/resources/images/tree/drop-over.gif new file mode 100644 index 000000000..2e514e7e1 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-over.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-over.png b/frontend/build/testing/DynamicForm/resources/images/tree/drop-over.png new file mode 100644 index 000000000..70d1807f0 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-over.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-under.gif b/frontend/build/testing/DynamicForm/resources/images/tree/drop-under.gif new file mode 100644 index 000000000..8535ef468 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-under.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-under.png b/frontend/build/testing/DynamicForm/resources/images/tree/drop-under.png new file mode 100644 index 000000000..3ba23b37a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-under.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-yes.gif b/frontend/build/testing/DynamicForm/resources/images/tree/drop-yes.gif new file mode 100644 index 000000000..8aacb307e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-yes.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/drop-yes.png b/frontend/build/testing/DynamicForm/resources/images/tree/drop-yes.png new file mode 100644 index 000000000..83d0dbc27 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/drop-yes.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-minus-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-minus-rtl.png new file mode 100644 index 000000000..2ffe7b2d3 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-minus-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-minus.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-minus.png new file mode 100644 index 000000000..b39a71df5 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-minus.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-plus-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-plus-rtl.png new file mode 100644 index 000000000..bea9892ce Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-plus-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-plus.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-plus.png new file mode 100644 index 000000000..630438f2f Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-plus.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-rtl.png new file mode 100644 index 000000000..1d0821b6e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end.png new file mode 100644 index 000000000..2eb0ed0cd Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-end.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-line-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-line-rtl.png new file mode 100644 index 000000000..e26b76850 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-line-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-line.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-line.png new file mode 100644 index 000000000..ac374247b Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-line.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus-nl-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus-nl-rtl.png new file mode 100644 index 000000000..1008a544a Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus-nl-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus-nl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus-nl.png new file mode 100644 index 000000000..f2a805deb Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus-nl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus-rtl.png new file mode 100644 index 000000000..cefb7045e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus.png new file mode 100644 index 000000000..a256b48b4 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-minus.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus-nl-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus-nl-rtl.png new file mode 100644 index 000000000..e1e6ece6c Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus-nl-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus-nl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus-nl.png new file mode 100644 index 000000000..3a401eaac Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus-nl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus-rtl.png new file mode 100644 index 000000000..487f27a65 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus.png new file mode 100644 index 000000000..03e202af8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-plus.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-rtl.png new file mode 100644 index 000000000..166e163d2 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/elbow.png b/frontend/build/testing/DynamicForm/resources/images/tree/elbow.png new file mode 100644 index 000000000..4bf9ae5cc Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/elbow.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/folder-open-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/folder-open-rtl.png new file mode 100644 index 000000000..bb896d841 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/folder-open-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/folder-open.png b/frontend/build/testing/DynamicForm/resources/images/tree/folder-open.png new file mode 100644 index 000000000..50397daa1 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/folder-open.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/folder-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/folder-rtl.png new file mode 100644 index 000000000..3b1767212 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/folder-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/folder.png b/frontend/build/testing/DynamicForm/resources/images/tree/folder.png new file mode 100644 index 000000000..4b0205404 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/folder.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/leaf-rtl.png b/frontend/build/testing/DynamicForm/resources/images/tree/leaf-rtl.png new file mode 100644 index 000000000..b2e6f6e52 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/leaf-rtl.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/leaf.png b/frontend/build/testing/DynamicForm/resources/images/tree/leaf.png new file mode 100644 index 000000000..6acb63584 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/leaf.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/tree/loading.gif b/frontend/build/testing/DynamicForm/resources/images/tree/loading.gif new file mode 100644 index 000000000..81b0f1257 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/tree/loading.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-bottom.png b/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-bottom.png new file mode 100644 index 000000000..241209e96 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-bottom.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-left.png b/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-left.png new file mode 100644 index 000000000..1c40b787e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-left.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-right.png b/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-right.png new file mode 100644 index 000000000..505c3295e Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-right.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-top.png b/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-top.png new file mode 100644 index 000000000..4a378a397 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/util/splitter/mini-top.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-bottom-corners.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-bottom-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-bottom-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-bottom-sides.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-bottom-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-bottom-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-corners.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-sides.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-bottom-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-sides.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-left-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-sides.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-right-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-corners.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-sides.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-collapsed-top-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-left-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-left-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-left-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-left-corners.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-left-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-left-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-left-sides.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-left-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-left-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-right-corners-rtl.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-right-corners-rtl.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-right-corners-rtl.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-right-corners.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-right-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-right-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-right-sides.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-right-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-right-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-top-corners.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-top-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-top-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-top-sides.gif b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-top-sides.gif new file mode 100644 index 000000000..28f3c3fa8 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window-header/window-header-default-top-sides.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window/toast/fade-blue.png b/frontend/build/testing/DynamicForm/resources/images/window/toast/fade-blue.png new file mode 100644 index 000000000..4dbf08b0d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window/toast/fade-blue.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window/toast/fader.png b/frontend/build/testing/DynamicForm/resources/images/window/toast/fader.png new file mode 100644 index 000000000..be8c27fa2 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window/toast/fader.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window/toast/icon16_error.png b/frontend/build/testing/DynamicForm/resources/images/window/toast/icon16_error.png new file mode 100644 index 000000000..5f168d326 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window/toast/icon16_error.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window/toast/icon16_info.png b/frontend/build/testing/DynamicForm/resources/images/window/toast/icon16_info.png new file mode 100644 index 000000000..6c6b32d02 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window/toast/icon16_info.png differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window/window-default-corners.gif b/frontend/build/testing/DynamicForm/resources/images/window/window-default-corners.gif new file mode 100644 index 000000000..7ec3c0626 Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window/window-default-corners.gif differ diff --git a/frontend/build/testing/DynamicForm/resources/images/window/window-default-sides.gif b/frontend/build/testing/DynamicForm/resources/images/window/window-default-sides.gif new file mode 100644 index 000000000..bd0ab3e5d Binary files /dev/null and b/frontend/build/testing/DynamicForm/resources/images/window/window-default-sides.gif differ diff --git a/frontend/catalog_builder/.sencha/app/Boot.js b/frontend/catalog_builder/.sencha/app/Boot.js new file mode 100644 index 000000000..3d53b01f8 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/Boot.js @@ -0,0 +1,1831 @@ +// @tag core +// @define Ext.Boot + +var Ext = Ext || {}; + +// +/** + * @class Ext.Boot + * @singleton + * @private + */ +Ext.Boot = Ext.Boot || (function (emptyFn) { + + var doc = document, + _emptyArray = [], + _config = { + /** + * @cfg {Boolean} [disableCaching=true] + * If `true` current timestamp is added to script URL's to prevent caching. + * In debug builds, adding a "cache" or "disableCacheBuster" query parameter + * to the page's URL will set this to `false`. + */ + disableCaching: (/[?&](?:cache|disableCacheBuster)\b/i.test(location.search) || + !(/http[s]?\:/i.test(location.href)) || + /(^|[ ;])ext-cache=1/.test(doc.cookie)) ? false : + true, + + /** + * @cfg {String} [disableCachingParam="_dc"] + * The query parameter name for the cache buster's timestamp. + */ + disableCachingParam: '_dc', + + /** + * @cfg {Boolean} loadDelay + * Millisecond delay between asynchronous script injection (prevents stack + * overflow on some user agents) 'false' disables delay but potentially + * increases stack load. + */ + loadDelay: false, + + /** + * @cfg {Boolean} preserveScripts + * `false` to remove asynchronously loaded scripts, `true` to retain script + * element for browser debugger compatibility and improved load performance. + */ + preserveScripts: true, + + /** + * @cfg {String} [charset=UTF-8] + * Optional charset to specify encoding of dynamic content. + */ + charset: 'UTF-8' + }, + + _assetConfig= {}, + + cssRe = /\.css(?:\?|$)/i, + resolverEl = doc.createElement('a'), + isBrowser = typeof window !== 'undefined', + _environment = { + browser: isBrowser, + node: !isBrowser && (typeof require === 'function'), + phantom: (window && (window._phantom || window.callPhantom)) || /PhantomJS/.test(window.navigator.userAgent) + }, + _tags = (Ext.platformTags = {}), + + // + // All calls to _debug are commented out to speed up old browsers a bit; + // yes that makes a difference because the cost of concatenating strings + // and passing them into _debug() adds up pretty quickly. + _debug = function (message) { + //console.log(message); + }, + // + _apply = function (object, config, defaults) { + if (defaults) { + _apply(object, defaults); + } + if (object && config && typeof config === 'object') { + for (var i in config) { + object[i] = config[i]; + } + } + return object; + }, + _merge = function() { + var lowerCase = false, + obj = Array.prototype.shift.call(arguments), + index, i, len, value; + + if (typeof arguments[arguments.length - 1] === 'boolean') { + lowerCase = Array.prototype.pop.call(arguments); + } + + len = arguments.length; + for (index = 0; index < len; index++) { + value = arguments[index]; + if (typeof value === 'object') { + for (i in value) { + obj[lowerCase ? i.toLowerCase() : i] = value[i]; + } + } + } + + return obj; + }, + _getKeys = (typeof Object.keys == 'function') ? + function(object){ + if (!object) { + return []; + } + return Object.keys(object); + } : + function(object) { + var keys = [], + property; + + for (property in object) { + if (object.hasOwnProperty(property)) { + keys.push(property); + } + } + + return keys; + }, + /* + * The Boot loader class manages Request objects that contain one or + * more individual urls that need to be loaded. Requests can be performed + * synchronously or asynchronously, but will always evaluate urls in the + * order specified on the request object. + */ + Boot = { + loading: 0, + loaded: 0, + apply: _apply, + env: _environment, + config: _config, + + /** + * @cfg {Object} assetConfig + * A map (url->assetConfig) that contains information about assets loaded by the Microlaoder. + */ + assetConfig: _assetConfig, + + // Keyed by absolute URL this object holds "true" if that URL is already loaded + // or an array of callbacks to call once it loads. + scripts: { + /* + Entry objects + + 'http://foo.com/bar/baz/Thing.js': { + done: true, + el: scriptEl || linkEl, + preserve: true, + requests: [ request1, ... ] + } + */ + }, + + /** + * contains the current script name being loaded + * (loadSync or sequential load only) + */ + currentFile: null, + suspendedQueue: [], + currentRequest: null, + + // when loadSync is called, need to cause subsequent load requests to also be loadSync, + // eg, when Ext.require(...) is called + syncMode: false, + + /* + * simple helper method for debugging + */ + // + debug: _debug, + // + + /** + * enables / disables loading scripts via script / link elements rather + * than using ajax / eval + */ + useElements: true, + + listeners: [], + + Request: Request, + + Entry: Entry, + + allowMultipleBrowsers: false, + + browserNames: { + ie: 'IE', + firefox: 'Firefox', + safari: 'Safari', + chrome: 'Chrome', + opera: 'Opera', + dolfin: 'Dolfin', + edge: 'Edge', + webosbrowser: 'webOSBrowser', + chromeMobile: 'ChromeMobile', + chromeiOS: 'ChromeiOS', + silk: 'Silk', + other: 'Other' + }, + + osNames: { + ios: 'iOS', + android: 'Android', + windowsPhone: 'WindowsPhone', + webos: 'webOS', + blackberry: 'BlackBerry', + rimTablet: 'RIMTablet', + mac: 'MacOS', + win: 'Windows', + tizen: 'Tizen', + linux: 'Linux', + bada: 'Bada', + chromeOS: 'ChromeOS', + other: 'Other' + }, + + browserPrefixes: { + ie: 'MSIE ', + edge: 'Edge/', + firefox: 'Firefox/', + chrome: 'Chrome/', + safari: 'Version/', + opera: 'OPR/', + dolfin: 'Dolfin/', + webosbrowser: 'wOSBrowser/', + chromeMobile: 'CrMo/', + chromeiOS: 'CriOS/', + silk: 'Silk/' + }, + + // When a UA reports multiple browsers this list is used to prioritize the 'real' browser + // lower index number will win + browserPriority: [ + 'edge', + 'opera', + 'dolfin', + 'webosbrowser', + 'silk', + 'chromeiOS', + 'chromeMobile', + 'ie', + 'firefox', + 'safari', + 'chrome' + ], + + osPrefixes: { + tizen: '(Tizen )', + ios: 'i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ', + android: '(Android |HTC_|Silk/)', // Some HTC devices ship with an OSX userAgent by default, + // so we need to add a direct check for HTC_ + windowsPhone: 'Windows Phone ', + blackberry: '(?:BlackBerry|BB)(?:.*)Version\/', + rimTablet: 'RIM Tablet OS ', + webos: '(?:webOS|hpwOS)\/', + bada: 'Bada\/', + chromeOS: 'CrOS ' + }, + + fallbackOSPrefixes: { + windows: 'win', + mac: 'mac', + linux: 'linux' + }, + + devicePrefixes: { + iPhone: 'iPhone', + iPod: 'iPod', + iPad: 'iPad' + }, + + maxIEVersion: 12, + + + /** + * The default function that detects various platforms and sets tags + * in the platform map accordingly. Examples are iOS, android, tablet, etc. + * @param tags the set of tags to populate + */ + detectPlatformTags: function () { + var me = this, + ua = navigator.userAgent, + isMobile = /Mobile(\/|\s)/.test(ua), + element = document.createElement('div'), + isEventSupported = function (name, tag) { + if (tag === undefined) { + tag = window; + } + + var eventName = 'on' + name.toLowerCase(), + isSupported = (eventName in element); + + if (!isSupported) { + if (element.setAttribute && element.removeAttribute) { + element.setAttribute(eventName, ''); + isSupported = typeof element[eventName] === 'function'; + + if (typeof element[eventName] !== 'undefined') { + element[eventName] = undefined; + } + + element.removeAttribute(eventName); + } + } + + return isSupported; + }, + + // Browser Detection + getBrowsers = function () { + var browsers = {}, + maxIEVersion, prefix, + value, key, index, len, match, version, matched; + + // MS Edge browser (and possibly others) can report multiple browsers in the UserAgent + // "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240" + // we use this to prioritize the actual browser in this situation + len = me.browserPriority.length; + for (index = 0; index < len; index++) { + key = me.browserPriority[index]; + if (!matched) { + value = me.browserPrefixes[key]; + match = ua.match(new RegExp('(' + value + ')([\\w\\._]+)')); + version = match && match.length > 1 ? parseInt(match[2]) : 0; + if (version) { + matched = true; + } + } else { + version = 0; + } + browsers[key] = version; + } + + //Deal with IE document mode + if (browsers.ie) { + var mode = document.documentMode; + + if (mode >= 8) { + browsers.ie = mode; + } + } + + // Fancy IE greater than and less then quick tags + version = browsers.ie || false; + maxIEVersion = Math.max(version, me.maxIEVersion); + + for (index = 8; index <= maxIEVersion; ++index) { + prefix = 'ie' + index; + browsers[prefix + 'm'] = version ? version <= index : 0; + browsers[prefix] = version ? version === index : 0; + browsers[prefix + 'p'] = version ? version >= index : 0; + } + + return browsers; + }, + + //OS Detection + getOperatingSystems = function () { + var systems = {}, + value, key, keys, index, len, match, matched, version, activeCount; + + keys = _getKeys(me.osPrefixes); + len = keys.length; + for (index = 0, activeCount = 0; index < len; index++) { + key = keys[index]; + value = me.osPrefixes[key]; + match = ua.match(new RegExp('(' + value + ')([^\\s;]+)')); + matched = match ? match[1] : null; + + // This is here because some HTC android devices show an OSX Snow Leopard userAgent by default. + // And the Kindle Fire doesn't have any indicator of Android as the OS in its User Agent + if (matched && (matched === 'HTC_' || matched === 'Silk/')) { + version = 2.3; + } else { + version = match && match.length > 1 ? parseFloat(match[match.length - 1]) : 0; + } + + if (version) { + activeCount++; + } + systems[key] = version; + } + + keys = _getKeys(me.fallbackOSPrefixes); + + // If no OS could be found we resort to the fallbacks, otherwise we just + // falsify the fallbacks + len = keys.length; + for (index = 0; index < len; index++) { + key = keys[index]; + + // No OS was detected from osPrefixes + if (activeCount === 0) { + value = me.fallbackOSPrefixes[key]; + match = ua.toLowerCase().match(new RegExp(value)); + systems[key] = match ? true : 0; + } else { + systems[key] = 0; + } + } + + return systems; + }, + + // Device Detection + getDevices = function () { + var devices = {}, + value, key, keys, index, len, match; + + keys = _getKeys(me.devicePrefixes); + len = keys.length; + for (index = 0; index < len; index++) { + key = keys[index]; + value = me.devicePrefixes[key]; + match = ua.match(new RegExp(value)); + devices[key] = match ? true : 0; + } + + return devices; + }, + browsers = getBrowsers(), + systems = getOperatingSystems(), + devices = getDevices(), + platformParams = Boot.loadPlatformsParam(); + + // We apply platformParams from the query here first to allow for forced user valued + // to be used in calculation of generated tags + _merge(_tags, browsers, systems, devices, platformParams, true); + + _tags.phone = !!((_tags.iphone || _tags.ipod) || + (!_tags.silk && (_tags.android && (_tags.android < 3 || isMobile))) || + (_tags.blackberry && isMobile) || + (_tags.windowsphone)); + + _tags.tablet = !!(!_tags.phone && ( + _tags.ipad || + _tags.android || + _tags.silk || + _tags.rimtablet || + (_tags.ie10 && /; Touch/.test(ua)) + )); + + _tags.touch = + // if the browser has touch events we can be reasonably sure the device has + // a touch screen + isEventSupported('touchend') || + // browsers that use pointer event have maxTouchPoints > 0 if the + // device supports touch input + // http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints + navigator.maxTouchPoints || + // IE10 uses a vendor-prefixed maxTouchPoints property + navigator.msMaxTouchPoints; + + _tags.desktop = !_tags.phone && !_tags.tablet; + _tags.cordova = _tags.phonegap = !!(window.PhoneGap || window.Cordova || window.cordova); + _tags.webview = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(ua); + _tags.androidstock = (_tags.android <= 4.3) && (_tags.safari || _tags.silk); + + // Re-apply any query params here to allow for user override of generated tags (desktop, touch, tablet, etc) + _merge(_tags, platformParams, true); + }, + + /** + * Extracts user supplied platform tags from the "platformTags" query parameter + * of the form: + * + * ?platformTags=name:state,name:state,... + * + * (each tag defaults to true when state is unspecified) + * + * Example: + * + * ?platformTags=isTablet,isPhone:false,isDesktop:0,iOS:1,Safari:true, ... + * + * @returns {Object} the platform tags supplied by the query string + */ + loadPlatformsParam: function () { + // Check if the ?platform parameter is set in the URL + var paramsString = window.location.search.substr(1), + paramsArray = paramsString.split("&"), + params = {}, i, + platforms = {}, + tmpArray, tmplen, platform, name, enabled; + + for (i = 0; i < paramsArray.length; i++) { + tmpArray = paramsArray[i].split("="); + params[tmpArray[0]] = tmpArray[1]; + } + + if (params.platformTags) { + tmpArray = params.platformTags.split(","); + for (tmplen = tmpArray.length, i = 0; i < tmplen; i++) { + platform = tmpArray[i].split(":"); + name = platform[0]; + enabled=true; + if (platform.length > 1) { + enabled = platform[1]; + if (enabled === 'false' || enabled === '0') { + enabled = false; + } + } + platforms[name] = enabled; + } + } + return platforms; + }, + + filterPlatform: function (platform, excludes) { + platform = _emptyArray.concat(platform || _emptyArray); + excludes = _emptyArray.concat(excludes || _emptyArray); + + var plen = platform.length, + elen = excludes.length, + include = (!plen && elen), // default true if only excludes specified + i, tag; + + for (i = 0; i < plen && !include; i++) { + tag = platform[i]; + include = !!_tags[tag]; + } + + for (i = 0; i < elen && include; i++) { + tag = excludes[i]; + include = !_tags[tag]; + } + + return include; + }, + + init: function () { + var scriptEls = doc.getElementsByTagName('script'), + script = scriptEls[0], + len = scriptEls.length, + re = /\/ext(\-[a-z\-]+)?\.js$/, + entry, src, state, baseUrl, key, n, origin; + + // No check for script definedness because there always should be at least one + Boot.hasReadyState = ("readyState" in script); + Boot.hasAsync = ("async" in script); + Boot.hasDefer = ("defer" in script); + Boot.hasOnLoad = ("onload" in script); + + // Feature detecting IE + Boot.isIE8 = Boot.hasReadyState && !Boot.hasAsync && Boot.hasDefer && !Boot.hasOnLoad; + Boot.isIE9 = Boot.hasReadyState && !Boot.hasAsync && Boot.hasDefer && Boot.hasOnLoad; + Boot.isIE10p = Boot.hasReadyState && Boot.hasAsync && Boot.hasDefer && Boot.hasOnLoad; + + Boot.isIE10 = (new Function('/*@cc_on return @_jscript_version @*/')()) === 10; + Boot.isIE10m = Boot.isIE10 || Boot.isIE9 || Boot.isIE8; + + // IE11 does not support conditional compilation so we detect it by exclusion + Boot.isIE11 = Boot.isIE10p && !Boot.isIE10; + + // Since we are loading after other scripts, and we needed to gather them + // anyway, we track them in _scripts so we don't have to ask for them all + // repeatedly. + for (n = 0; n < len; n++) { + src = (script = scriptEls[n]).src; + if (!src) { + continue; + } + state = script.readyState || null; + + // If we find a script file called "ext-*.js", then the base path is that file's base path. + if (!baseUrl && re.test(src)) { + baseUrl = src; + } + + if (!Boot.scripts[key = Boot.canonicalUrl(src)]) { + // +// _debug("creating entry " + key + " in Boot.init"); + // + entry = new Entry({ + key: key, + url: src, + done: state === null || // non-IE + state === 'loaded' || state === 'complete', // IE only + el: script, + prop: 'src' + }); + } + } + + if (!baseUrl) { + script = scriptEls[scriptEls.length - 1]; + baseUrl = script.src; + } + + Boot.baseUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/') + 1); + origin = window.location.origin || + window.location.protocol + + "//" + + window.location.hostname + + (window.location.port ? ':' + window.location.port: ''); + Boot.origin = origin; + + Boot.detectPlatformTags(); + Ext.filterPlatform = Boot.filterPlatform; + }, + + /** + * This method returns a canonical URL for the given URL. + * + * For example, the following all produce the same canonical URL (which is the + * last one): + * + * http://foo.com/bar/baz/zoo/derp/../../goo/Thing.js?_dc=12345 + * http://foo.com/bar/baz/zoo/derp/../../goo/Thing.js + * http://foo.com/bar/baz/zoo/derp/../jazz/../../goo/Thing.js + * http://foo.com/bar/baz/zoo/../goo/Thing.js + * http://foo.com/bar/baz/goo/Thing.js + * + * @private + */ + canonicalUrl: function (url) { + // *WARNING WARNING WARNING* + // This method yields the most correct result we can get but it is EXPENSIVE! + // In ALL browsers! When called multiple times in a sequence, as if when + // we resolve dependencies for entries, it will cause garbage collection events + // and overall painful slowness. This is why we try to avoid it as much as we can. + // + // @TODO - see if we need this fallback logic + // http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue + resolverEl.href = url; + + var ret = resolverEl.href, + dc = _config.disableCachingParam, + pos = dc ? ret.indexOf(dc + '=') : -1, + c, end; + + // If we have a _dc query parameter we need to remove it from the canonical + // URL. + if (pos > 0 && ((c = ret.charAt(pos - 1)) === '?' || c === '&')) { + end = ret.indexOf('&', pos); + end = (end < 0) ? '' : ret.substring(end); + if (end && c === '?') { + ++pos; // keep the '?' + end = end.substring(1); // remove the '&' + } + ret = ret.substring(0, pos - 1) + end; + } + + return ret; + }, + + /** + * Get the config value corresponding to the specified name. If no name is given, will return the config object + * @param {String} name The config property name + * @return {Object} + */ + getConfig: function (name) { + return name ? Boot.config[name] : Boot.config; + }, + + /** + * Set the configuration. + * @param {Object} config The config object to override the default values. + * @return {Ext.Boot} this + */ + setConfig: function (name, value) { + if (typeof name === 'string') { + Boot.config[name] = value; + } else { + for (var s in name) { + Boot.setConfig(s, name[s]); + } + } + return Boot; + }, + + getHead: function () { + return Boot.docHead || + (Boot.docHead = doc.head || + doc.getElementsByTagName('head')[0]); + }, + + create: function (url, key, cfg) { + var config = cfg || {}; + config.url = url; + config.key = key; + return Boot.scripts[key] = new Entry(config); + }, + + getEntry: function (url, cfg, canonicalPath) { + var key, entry; + + // Canonicalizing URLs via anchor element href yields the most correct result + // but is *extremely* resource heavy so we need to avoid it whenever possible + key = canonicalPath ? url : Boot.canonicalUrl(url); + entry = Boot.scripts[key]; + + if (!entry) { + entry = Boot.create(url, key, cfg); + + if (canonicalPath) { + entry.canonicalPath = true; + } + } + + return entry; + }, + + registerContent: function (url, type, content) { + var cfg = { + content: content, + loaded: true, + css: type === 'css' + }; + + return Boot.getEntry(url, cfg); + }, + + processRequest: function(request, sync) { + request.loadEntries(sync); + }, + + load: function (request) { + // +// _debug("Boot.load called"); + // + var request = new Request(request); + + if (request.sync || Boot.syncMode) { + return Boot.loadSync(request); + } + + // If there is a request in progress, we must + // queue this new request to be fired when the current request completes. + if (Boot.currentRequest) { + // +// _debug("current active request, suspending this request"); + // + // trigger assignment of entries now to ensure that overlapping + // entries with currently running requests will synchronize state + // with this pending one as they complete + request.getEntries(); + Boot.suspendedQueue.push(request); + } else { + Boot.currentRequest = request; + Boot.processRequest(request, false); + } + return Boot; + }, + + loadSync: function (request) { + // +// _debug("Boot.loadSync called"); + // + var request = new Request(request); + + Boot.syncMode++; + Boot.processRequest(request, true); + Boot.syncMode--; + return Boot; + }, + + loadBasePrefix: function(request) { + request = new Request(request); + request.prependBaseUrl = true; + return Boot.load(request); + }, + + loadSyncBasePrefix: function(request) { + request = new Request(request); + request.prependBaseUrl = true; + return Boot.loadSync(request); + }, + + requestComplete: function(request) { + var next; + + if (Boot.currentRequest === request) { + Boot.currentRequest = null; + while(Boot.suspendedQueue.length > 0) { + next = Boot.suspendedQueue.shift(); + if(!next.done) { + // +// _debug("resuming suspended request"); + // + Boot.load(next); + break; + } + } + } + if (!Boot.currentRequest && Boot.suspendedQueue.length == 0) { + Boot.fireListeners(); + } + }, + + isLoading: function () { + return !Boot.currentRequest && Boot.suspendedQueue.length == 0; + }, + + fireListeners: function () { + var listener; + while (Boot.isLoading() && (listener = Boot.listeners.shift())) { + listener(); + } + }, + + onBootReady: function (listener) { + if (!Boot.isLoading()) { + listener(); + } else { + Boot.listeners.push(listener); + } + }, + + /** + * this is a helper function used by Ext.Loader to flush out + * 'uses' arrays for classes in some Ext versions + */ + getPathsFromIndexes: function (indexMap, loadOrder) { + // In older versions indexMap was an object instead of a sparse array + if (!('length' in indexMap)) { + var indexArray = [], + index; + + for (index in indexMap) { + if (!isNaN(+index)) { + indexArray[+index] = indexMap[index]; + } + } + + indexMap = indexArray; + } + + return Request.prototype.getPathsFromIndexes(indexMap, loadOrder); + }, + + createLoadOrderMap: function(loadOrder) { + return Request.prototype.createLoadOrderMap(loadOrder); + }, + + fetch: function(url, complete, scope, async) { + async = (async === undefined) ? !!complete : async; + + var xhr = new XMLHttpRequest(), + result, status, content, exception = false, + readyStateChange = function () { + if (xhr && xhr.readyState == 4) { + status = (xhr.status === 1223) ? 204 : + (xhr.status === 0 && ((self.location || {}).protocol === 'file:' || + (self.location || {}).protocol === 'ionp:')) ? 200 : xhr.status; + content = xhr.responseText; + result = { + content: content, + status: status, + exception: exception + }; + if (complete) { + complete.call(scope, result); + } + xhr.onreadystatechange = emptyFn; + xhr = null; + } + }; + + if (async) { + xhr.onreadystatechange = readyStateChange; + } + + try { + // +// _debug("fetching " + url + " " + (async ? "async" : "sync")); + // + xhr.open('GET', url, async); + xhr.send(null); + } catch (err) { + exception = err; + readyStateChange(); + return result; + } + + if (!async) { + readyStateChange(); + } + + return result; + }, + + notifyAll: function(entry) { + entry.notifyRequests(); + } + }; + + function Request(cfg) { + //The request class encapsulates a series of Entry objects + //and provides notification around the completion of all Entries + //in this request. + + if(cfg.$isRequest) { + return cfg; + } + + var cfg = cfg.url ? cfg : {url: cfg}, + url = cfg.url, + urls = url.charAt ? [ url ] : url, + charset = cfg.charset || Boot.config.charset; + + _apply(this, cfg); + + delete this.url; + this.urls = urls; + this.charset = charset; + }; + + Request.prototype = { + $isRequest: true, + + createLoadOrderMap: function (loadOrder) { + var len = loadOrder.length, + loadOrderMap = {}, + i, element; + + for (i = 0; i < len; i++) { + element = loadOrder[i]; + loadOrderMap[element.path] = element; + } + + return loadOrderMap; + }, + + getLoadIndexes: function (item, indexMap, loadOrder, includeUses, skipLoaded) { + var resolved = [], + queue = [item], + itemIndex = item.idx, + queue, entry, dependencies, depIndex, i, len; + + if (indexMap[itemIndex]) { + // prevent cycles + return resolved; + } + + // Both indexMap and resolved are sparse arrays keyed by indexes. + // This gives us a naturally sorted sequence of indexes later on + // when we need to convert them to paths. + // indexMap is the map of all indexes we have visited at least once + // per the current expandUrls() invocation, and resolved is the map + // of all dependencies for the current item that are not included + // in indexMap. + indexMap[itemIndex] = resolved[itemIndex] = true; + + while (item = queue.shift()) { + // Canonicalizing URLs is expensive, we try to avoid it + if (item.canonicalPath) { + entry = Boot.getEntry(item.path, null, true); + } + else { + entry = Boot.getEntry(this.prepareUrl(item.path)); + } + + if (!(skipLoaded && entry.done)) { + if (includeUses && item.uses && item.uses.length) { + dependencies = item.requires.concat(item.uses); + } + else { + dependencies = item.requires; + } + + for (i = 0, len = dependencies.length; i < len; i++) { + depIndex = dependencies[i]; + + if (!indexMap[depIndex]) { + indexMap[depIndex] = resolved[depIndex] = true; + queue.push(loadOrder[depIndex]); + } + } + } + } + + return resolved; + }, + + getPathsFromIndexes: function (indexes, loadOrder) { + var paths = [], + index, len; + + // indexes is a sparse array with values being true for defined indexes + for (index = 0, len = indexes.length; index < len; index++) { + if (indexes[index]) { + paths.push(loadOrder[index].path); + } + } + + return paths; + }, + + expandUrl: function (url, loadOrder, loadOrderMap, indexMap, includeUses, skipLoaded) { + var item, resolved; + + if (loadOrder) { + item = loadOrderMap[url]; + + if (item) { + resolved = this.getLoadIndexes(item, indexMap, loadOrder, includeUses, skipLoaded); + + if (resolved.length) { + return this.getPathsFromIndexes(resolved, loadOrder); + } + } + } + + return [url]; + }, + + expandUrls: function (urls, includeUses) { + var me = this, + loadOrder = me.loadOrder, + expanded = [], + expandMap = {}, + indexMap = [], + loadOrderMap, tmpExpanded, i, len, t, tlen, tUrl; + + if (typeof urls === "string") { + urls = [urls]; + } + + if (loadOrder) { + loadOrderMap = me.loadOrderMap; + + if (!loadOrderMap) { + loadOrderMap = me.loadOrderMap = me.createLoadOrderMap(loadOrder); + } + } + + for (i = 0, len = urls.length; i < len; i++) { + // We don't want to skip loaded entries (last argument === false). + // There are some overrides that get loaded before their respective classes, + // and when the class dependencies are processed we don't want to skip over + // the overrides' dependencies just because they were loaded first. + tmpExpanded = this.expandUrl(urls[i], loadOrder, loadOrderMap, indexMap, includeUses, false); + + for (t = 0, tlen = tmpExpanded.length; t < tlen; t++) { + tUrl = tmpExpanded[t]; + + if (!expandMap[tUrl]) { + expandMap[tUrl] = true; + expanded.push(tUrl); + } + } + } + + if (expanded.length === 0) { + expanded = urls; + } + + return expanded; + }, + + expandLoadOrder: function () { + var me = this, + urls = me.urls, + expanded; + + if (!me.expanded) { + expanded = this.expandUrls(urls, true); + me.expanded = true; + } else { + expanded = urls; + } + + me.urls = expanded; + + // if we added some urls to the request to honor the indicated + // load order, the request needs to be sequential + if (urls.length != expanded.length) { + me.sequential = true; + } + + return me; + }, + + getUrls: function () { + this.expandLoadOrder(); + return this.urls; + }, + + prepareUrl: function(url) { + if(this.prependBaseUrl) { + return Boot.baseUrl + url; + } + return url; + }, + + getEntries: function () { + var me = this, + entries = me.entries, + loadOrderMap, item, i, entry, urls, url; + + if (!entries) { + entries = []; + urls = me.getUrls(); + + // If we have loadOrder array then the map will be expanded by now + if (me.loadOrder) { + loadOrderMap = me.loadOrderMap; + } + + for (i = 0; i < urls.length; i++) { + url = me.prepareUrl(urls[i]); + + if (loadOrderMap) { + item = loadOrderMap[url]; + } + + entry = Boot.getEntry(url, { + buster: me.buster, + charset: me.charset + }, item && item.canonicalPath); + + entry.requests.push(me); + entries.push(entry); + } + + me.entries = entries; + } + + return entries; + }, + + loadEntries: function(sync) { + var me = this, + entries = me.getEntries(), + len = entries.length, + start = me.loadStart || 0, + continueLoad, entries, entry, i; + + if(sync !== undefined) { + me.sync = sync; + } + + me.loaded = me.loaded || 0; + me.loading = me.loading || len; + + for(i = start; i < len; i++) { + entry = entries[i]; + if(!entry.loaded) { + continueLoad = entries[i].load(me.sync); + } else { + continueLoad = true; + } + if(!continueLoad) { + me.loadStart = i; + entry.onDone(function(){ + me.loadEntries(sync); + }); + break; + } + } + me.processLoadedEntries(); + }, + + processLoadedEntries: function () { + var me = this, + entries = me.getEntries(), + len = entries.length, + start = me.startIndex || 0, + i, entry; + + if (!me.done) { + for (i = start; i < len; i++) { + entry = entries[i]; + + if (!entry.loaded) { + me.startIndex = i; + return; + } + + if (!entry.evaluated) { + entry.evaluate(); + } + + if (entry.error) { + me.error = true; + } + } + me.notify(); + } + }, + + notify: function () { + var me = this; + if (!me.done) { + var error = me.error, + fn = me[error ? 'failure' : 'success'], + delay = ('delay' in me) + ? me.delay + : (error ? 1 : Boot.config.chainDelay), + scope = me.scope || me; + me.done = true; + if (fn) { + if (delay === 0 || delay > 0) { + // Free the stack (and defer the next script) + setTimeout(function () { + fn.call(scope, me); + }, delay); + } else { + fn.call(scope, me); + } + } + me.fireListeners(); + Boot.requestComplete(me); + } + }, + + onDone: function(listener) { + var me = this, + listeners = me.listeners || (me.listeners = []); + if(me.done) { + listener(me); + } else { + listeners.push(listener); + } + }, + + fireListeners: function() { + var listeners = this.listeners, + listener; + if(listeners) { + // +// _debug("firing request listeners"); + // + while((listener = listeners.shift())) { + listener(this); + } + } + } + }; + + function Entry(cfg) { + //The Entry class is a token to manage the load and evaluation + //state of a particular url. It is used to notify all Requests + //interested in this url that the content is available. + + if(cfg.$isEntry) { + return cfg; + } + + // +// _debug("creating entry for " + cfg.url); + // + + var charset = cfg.charset || Boot.config.charset, + manifest = Ext.manifest, + loader = manifest && manifest.loader, + cache = (cfg.cache !== undefined) ? cfg.cache : (loader && loader.cache), + buster, busterParam; + + if (Boot.config.disableCaching) { + if (cache === undefined) { + cache = !Boot.config.disableCaching; + } + + if (cache === false) { + buster = +new Date(); + } else if (cache !== true) { + buster = cache; + } + + if (buster) { + busterParam = (loader && loader.cacheParam) || Boot.config.disableCachingParam; + buster = busterParam + "=" + buster; + } + } + + _apply(this, cfg); + + this.charset = charset; + this.buster = buster; + this.requests = []; + }; + + Entry.prototype = { + $isEntry: true, + done: false, + evaluated: false, + loaded: false, + + isCrossDomain: function() { + var me = this; + if(me.crossDomain === undefined) { + // +// _debug("checking " + me.getLoadUrl() + " for prefix " + Boot.origin); + // + me.crossDomain = (me.getLoadUrl().indexOf(Boot.origin) !== 0); + } + return me.crossDomain; + }, + + isCss: function () { + var me = this; + if (me.css === undefined) { + if (me.url) { + var assetConfig = Boot.assetConfig[me.url]; + me.css = assetConfig ? assetConfig.type === "css" : cssRe.test(me.url); + } else { + me.css = false; + } + } + return this.css; + }, + + getElement: function (tag) { + var me = this, + el = me.el; + if (!el) { + // +// _debug("creating element for " + me.url); + // + if (me.isCss()) { + tag = tag || "link"; + el = doc.createElement(tag); + if(tag == "link") { + el.rel = 'stylesheet'; + me.prop = 'href'; + } else { + me.prop="textContent"; + } + el.type = "text/css"; + } else { + tag = tag || "script"; + el = doc.createElement(tag); + el.type = 'text/javascript'; + me.prop = 'src'; + + if (me.charset) { + el.charset = me.charset; + } + + if (Boot.hasAsync) { + el.async = false; + } + } + me.el = el; + } + return el; + }, + + getLoadUrl: function () { + var me = this, + url; + + url = me.canonicalPath ? me.url : Boot.canonicalUrl(me.url); + + if (!me.loadUrl) { + me.loadUrl = !!me.buster + ? (url + (url.indexOf('?') === -1 ? '?' : '&') + me.buster) + : url; + } + return me.loadUrl; + }, + + fetch: function (req) { + var url = this.getLoadUrl(), + async = !!req.async, + complete = req.complete; + + Boot.fetch(url, complete, this, async); + }, + + onContentLoaded: function (response) { + var me = this, + status = response.status, + content = response.content, + exception = response.exception, + url = this.getLoadUrl(); + me.loaded = true; + if ((exception || status === 0) && !_environment.phantom) { + me.error = + // + ("Failed loading synchronously via XHR: '" + url + + "'. It's likely that the file is either being loaded from a " + + "different domain or from the local file system where cross " + + "origin requests are not allowed for security reasons. Try " + + "asynchronous loading instead.") || + // + true; + me.evaluated = true; + } + else if ((status >= 200 && status < 300) || status === 304 + || _environment.phantom + || (status === 0 && content.length > 0) + ) { + me.content = content; + } + else { + me.error = + // + ("Failed loading synchronously via XHR: '" + url + + "'. Please verify that the file exists. XHR status code: " + + status) || + // + true; + me.evaluated = true; + } + }, + + createLoadElement: function(callback) { + var me = this, + el = me.getElement(); + + me.preserve = true; + + el.onerror = function() { + me.error = true; + + if (callback) { + callback(); + callback = null; + } + }; + + if (Boot.isIE10m) { + el.onreadystatechange = function() { + if (this.readyState === 'loaded' || this.readyState === 'complete') { + if (callback) { + callback(); + callback = this.onreadystatechange = this.onerror = null; + } + } + }; + } + else { + el.onload = function() { + callback(); + callback = this.onload = this.onerror = null; + }; + } + + // IE starts loading here + el[me.prop] = me.getLoadUrl(); + }, + + onLoadElementReady: function() { + Boot.getHead().appendChild(this.getElement()); + this.evaluated = true; + }, + + inject: function (content, asset) { + // +// _debug("injecting content for " + this.url); + // + var me = this, + head = Boot.getHead(), + url = me.url, + key = me.key, + base, el, ieMode, basePath; + + if (me.isCss()) { + me.preserve = true; + basePath = key.substring(0, key.lastIndexOf("/") + 1); + base = doc.createElement('base'); + base.href = basePath; + if(head.firstChild) { + head.insertBefore(base, head.firstChild); + } else { + head.appendChild(base); + } + // reset the href attribute to cuase IE to pick up the change + base.href = base.href; + + if (url) { + content += "\n/*# sourceURL=" + key + " */"; + } + + // create element after setting base + el = me.getElement("style"); + + ieMode = ('styleSheet' in el); + + head.appendChild(base); + if(ieMode) { + head.appendChild(el); + el.styleSheet.cssText = content; + } else { + el.textContent = content; + head.appendChild(el); + } + head.removeChild(base); + + } else { + // Debugger friendly, file names are still shown even though they're + // eval'ed code. Breakpoints work on both Firebug and Chrome's Web + // Inspector. + if (url) { + content += "\n//# sourceURL=" + key; + } + Ext.globalEval(content); + } + return me; + }, + + loadCrossDomain: function() { + var me = this, + complete = function(){ + me.el.onerror = me.el.onload = emptyFn; + me.el = null; + me.loaded = me.evaluated = me.done = true; + me.notifyRequests(); + }; + me.createLoadElement(function(){ + complete(); + }); + me.evaluateLoadElement(); + // at this point, we need sequential evaluation, + // which means we can't advance the load until + // this entry has fully completed + return false; + }, + + loadElement: function() { + var me = this, + complete = function(){ + me.el.onerror = me.el.onload = emptyFn; + me.el = null; + me.loaded = me.evaluated = me.done = true; + me.notifyRequests(); + }; + me.createLoadElement(function(){ + complete(); + }); + me.evaluateLoadElement(); + return true; + }, + + loadSync: function() { + var me = this; + me.fetch({ + async: false, + complete: function (response) { + me.onContentLoaded(response); + } + }); + me.evaluate(); + me.notifyRequests(); + }, + + load: function (sync) { + var me = this; + if (!me.loaded) { + if(me.loading) { + // if we're calling back through load and we're loading but haven't + // yet loaded, then we should be in a sequential, cross domain + // load scenario which means we can't continue the load on the + // request until this entry has fully evaluated, which will mean + // loaded = evaluated = done = true in one step. For css files, this + // will happen immediately upon element creation / insertion, + // but + + + cordova ${cordova.cli.options} platform list + + + + + + + + + + cordova ${cordova.cli.options} platform add ${cordova.platforms.missing} + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/catalog_builder/.sencha/app/cordova.defaults.properties b/frontend/catalog_builder/.sencha/app/cordova.defaults.properties new file mode 100644 index 000000000..7c4815e5d --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/cordova.defaults.properties @@ -0,0 +1,6 @@ +# +# Copyright (c) 2012-2014. Sencha Inc. +# + +# Legacy support here for old build workflow. +cordova.platforms=${app.cordova.config.platforms} \ No newline at end of file diff --git a/frontend/catalog_builder/.sencha/app/defaults.properties b/frontend/catalog_builder/.sencha/app/defaults.properties new file mode 100644 index 000000000..134c09966 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/defaults.properties @@ -0,0 +1,709 @@ +# ============================================================================= +# This file defines properties used by build-impl.xml and the associated +# *-impl.xml files (sass-impl.xml, js-impl.xml, etc.), which are the core of +# the applications build process. +# +# This file represents the lowest priority file for defining these properties +# as well as the place to look for documentation and learning what properties +# exist. +# +# The full set of these files is as follows (in priority order): +# +# - One of these (based on build.environment): +# - production.properties +# - testing.properties +# - native.properties +# - package.properties +# +# - build.properties +# +# - One of these (based on app.framework): +# - ext.properties +# - touch.properties +# +# - One of these (based on build.environment): +# - production.defaults.properties +# - testing.defaults.properties +# - native.defaults.properties +# - package.defaults.properties +# +# - defaults.properties +# +# Properties are controlled by the first file in the above list to define the +# value. Values from all levels, however, can reference each other via the +# property expansion. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +# ***************************************************************************** +# Global Build Properties +# these are cross-concern properties used by many build phases +# ***************************************************************************** + +# the default build environment type (production, testing, native, package) +# NOTE: this is only a default and will typically be set before this file is +# loaded, typically by the 'sencha app build" command. +# See "sencha help app build" for details. +# +# The corresponding properties files: +# (production.properties, testing.properties, etc.) provide examples of +# overriding sets of properties depending on the selected environment +# NOTE: this replaces the deprecated args.environment +app.environment=production +build.environment=${app.environment} + +# the directory to place built application files +build.dir=${workspace.build.dir}/${build.environment}/${app.name} + +app.compressor.type=${app.compressor} + +app.output=${build.dir} +app.output.base=${app.output} + +app.output.page=index.html +app.output.page.path=${app.output.page} +app.output.page.enable=true + +app.output.resources=resources +app.output.resources.path=${app.output.resources} +app.output.resources.enable=true +app.output.resources.compress=${app.output.js.compress} + +app.output.css.dir=${app.output.resources.path} +app.output.css=${app.output.css.dir}/${app.name}-all.css +app.output.css.path=${app.output.css} +app.output.css.enable=true +app.output.css.compress=true +app.output.css.preprocess=true +app.output.css.split=4095 + +app.output.js=app.js +app.output.js.path=${app.output.js} +app.output.js.enable=true +app.output.js.compress=false +app.output.js.optimize=false +app.output.js.optimize.cssPrefix=${app.output.js.optimize} +app.output.js.optimize.xtemplate=false +app.output.js.optimize.propNames=${app.output.js.optimize} +app.output.js.optimize.defines=${app.output.js.optimize} +app.output.js.optimize.callParent=${app.output.js.optimize} +app.output.js.optimize.requires=${app.output.js.optimize} + +app.output.framework=framework.js +app.output.framework.path=${app.output.framework} +app.output.framework.enable=false + +app.output.microloader=microloader.js +app.output.microloader.path=${app.output.microloader} +app.output.microloader.enable=true +app.output.microloader.embed=true + +app.output.manifest=app.json +app.output.manifest.path=${app.output.manifest} +app.output.manifest.enable=true +app.output.manifest.embed=false + +app.output.slicer=${app.output.resources.path} +app.output.slicer.path=${app.output.slicer} +app.output.slicer.enable=true + +app.archivePath=archive +app.output.archive=${app.archivePath} +app.output.archive.path=${app.output.archive} + +app.cache.enable=${app.output.deltas.enable} + +app.output.cache=cache.appcache +app.output.cache.path=${app.output.cache} +app.output.cache.enable=true +app.output.appCache.enable=${app.output.cache.enable} +app.output.appCache.path=${app.output.cache.path} +app.output.progressive=false +app.output.progressive.enable=${app.output.progressive} + +build.out.base.path=${app.output.base} +build.out.page.path=${build.out.base.path}/${app.output.page.path} +build.out.resources.path=${build.out.base.path}/${app.output.resources.path} +build.out.css.path=${build.out.base.path}/${app.output.css.path} +build.out.js.path=${build.out.base.path}/${app.output.js.path} +build.out.framework.path=${build.out.base.path}/${app.output.framework.path} +build.out.archive.path=${build.out.base.path}/${app.output.archive.path} +build.out.manifest.path=${build.out.base.path}/${app.output.manifest.path} +build.out.microloader.path=${build.out.base.path}/${app.output.microloader.path} +build.out.appCache.path=${build.out.base.path}/${app.output.appCache.path} + +# Moved to init-impl.xml to handle truthy special values +#build.out.deltas.path=${build.out.base.path}/${app.output.deltas.path} +build.out.slicer.path=${build.out.base.path}/${app.output.slicer.path} + +# place holder properties to allow the newer .path property to control the existing .dir property +build.out.resources.dir=${build.out.resources.path} +build.out.css.dir=${build.out.base.path}/${app.output.css.dir} + +build.out.metadata.path=${build.out.page.path} + +# a temporary output directory used for staging intermediate build artifacts +build.temp.dir=${workspace.build.dir}/temp/${build.environment}/${app.name} + +# the directory under the output folder for placing resources +build.resources.dir=${build.out.resources.path} + +app.manifest.bootstrap=bootstrap.json + +app.bootstrap=${app.dir} +app.bootstrap.base=${app.bootstrap} +app.bootstrap.page=${app.indexHtmlPath} +app.bootstrap.page.path=${app.bootstrap.page} +app.bootstrap.css=${app.bootstrap.css.name} +app.bootstrap.css.path=${app.bootstrap.css} +app.bootstrap.microloader=${app.bootstrap.js.name} +app.bootstrap.microloader.path=${app.bootstrap.microloader} +app.bootstrap.manifest=${app.manifest.bootstrap} +app.bootstrap.manifest.path=${app.bootstrap.manifest} + +build.bootstrap.base.path=${app.bootstrap.base} +build.bootstrap.page.path=${build.bootstrap.base.path}/${app.bootstrap.page.path} +build.bootstrap.css.path=${build.bootstrap.base.path}/${app.bootstrap.css.path} +build.bootstrap.microloader.path=${build.bootstrap.base.path}/${app.bootstrap.microloader.path} +build.bootstrap.manifest.path=${build.bootstrap.base.path}/${app.bootstrap.manifest.path} + +build.bootstrap.metadata.path=${build.bootstrap.page.path} + +# ***************************************************************************** +# JS +# these properties control various aspects of output js code construction +# ***************************************************************************** + +# the output js file that contains all needed js code + +# deprecated, now controlled by app.output.js / app.output.js.path in app.json +build.classes.file=${build.out.js.path} + +# the output js file for framework code, if the framework +# classes are not included in the default all-classes.js file +# deprecated, now controlled by app.output.framework / app.output.framework.path in app.json +build.framework.file=${build.out.framework.path} + +# Don't use these - they are deprecated +build.options.debug.enable=debug:true +build.options.debug.disable=debug:false +build.options.logger.enable=logger:yes +build.options.logger.disable=logger:no + +# This property enables/disables blocks in js output, see build.options +build.options.logger=no + +# This property enables/disables blocks in js output, see build.options +build.options.debug=false + +# This property can be used to pass custom build options in addition to any of the other +# build.options flags. When overlapping, these options take priority, see build.options +build.options.custom= + +# This value is specified by the framework +build.options.default= + +# This property contains the framework ("product") used for filtering of JavaScript using +# the preprocessor. This is set by either ext.properties or touch.properties. +# +#build.options.product=touch + +# This property contains the desired API level used for preprocessor filtering of JavaScript. +# This is set by either ext.properties or touch.properties. +# +#build.options.minVersion=2.1 + +# This property holds the set of js preprocessor options in the form: +# +# name1:value1,name2:value2,... +# +# (used by -init-compiler in init-impl.xml) +# +# This property is not likely to be set directly. Rather, you should set one of the +# contributing properties that are combined to form this one: +# +# build.options.debug +# build.options.logger +# build.options.custom +# +# The other properties that contribute to this are typically not needing to be set: +# +# build.options.product +# build.options.minVersion +# +build.options=logger:${build.options.logger},debug:${build.options.debug},product:${build.options.product},minVersion:${build.options.minVersion},${build.options.default},${build.options.custom} + +# This property can be modified to change general build options +# such as excluding files from the set. The format expects newlines +# for each argument, for example: +# +# build.operations=\ +# exclude\n \ +# -namespace=Ext\n +# +# NOTE: modifications to build.operations are intended to be +# placed in an override of the "-after-init" target, where it +# can be calculated based on other +# ant properties +# +# build.operations= + +# enables / disables the full class optimizer during js builds +# (used by the -compile-* targets in js-impl.xml) +build.optimize.defines=${app.output.js.optimize.defines} +build.optimize.callparent=${app.output.js.optimize.callParent} +build.optimize.cssPrefix=${app.output.js.optimize.cssPrefix} +build.optimize.xtemplate=${app.output.js.optimize.xtemplate} +build.optimize.propNames=${app.output.js.optimize.propNames} +build.optimize.include.metadata=${app.output.js.optimize.requires} +build.optimize.enable=\ + optimize\n \ + -property-name=${build.optimize.propNames}\n \ + -css-prefix=${build.optimize.cssPrefix}\n \ + -xtemplate=${build.optimize.xtemplate}\n \ + -define-rewrite=${build.optimize.defines}\n \ + -call-parent=${build.optimize.callparent}\n \ + -include-metadata=${build.optimize.include.metadata} + +build.optimize.disable= +build.optimize=${build.optimize.disable} + +# enables / disables removing text references from +# package js build files +build.remove.references=true + +# enables / disables removing "requires" and "uses" elements +# from class definitions +build.remove.requirement.nodes=true + +# enables / disables de-quoting certain string references to classes +# like mixin references +build.optimize.string.references=true + +# enables / disables cmd compression +build.compression.cmd=${app.output.js.compress} + +# enables / disables closure compression +build.compression.closure=0 + +# enables / disables uglify compression +build.compression.ugilfy=0 + +build.compile.temp.dir=${build.temp.dir}/sencha-compiler + +# controles whether to keep the temp compile dir after the build +build.compile.temp.dir.keep=true + +# ------------------------------------------ +# DOC ONLY - Do Not Set +# this variable will be set to the appropriate compressor +# option, and is calculated in init-impl.xml, but may be overridded in +# app.properties, .properties, or via command line +# +# build.compression= +# ------------------------------------------ + +# ***************************************************************************** +# Page +# these variables control aspects of building the output markup page +# ***************************************************************************** + +# controls whether the microloader content will be embedded in the output +# markup, or left as a separate resource +build.enable.embedded.microloader=${app.output.microloader.embed} + +# whether to include the page's manifest.json code with the +# microloader content. Production.properties files should set this to +# false to have manifest.json exist as a server resource. +build.enable.embedded.manifest=${app.output.manifest.embed} + +# enables / disables compression of resources referenced in app.json / package.json +# js and css entries +enable.resource.compression=${app.output.resources.compress} + +# defaults to index.html, but may be overridden in app.json +app.indexHtmlPath=index.html + +# the input page file for the application +app.page.name=${app.indexHtmlPath} +app.page.file=${app.dir}/${app.page.name} + +# the output page file +# deprecated, now controlled by app.output.page / app.output.page.path in app.json +build.page.name=${app.page.name} +build.page.dir=${build.out.base.path} +build.page.file=${build.out.page.path} + +# the directory where the microloader files may be found +app.microloader.dir=${app.config.dir}/microloader + +# the file names of the individual microloaders +app.microloader.development=development.js +app.microloader.testing=testing.js +app.microloader.production=production.js + +# the target microloader to use for builds +app.microloader.name=${app.microloader.development} +app.microloader=${app.microloader.dir}/${app.microloader.name} +app.microloader.path=${app.microloader} + +# specifies how to embed the microloader code into the output markup +# {0} is replaced with the content of the microloader file specified +# by app.microloader.path +build.microloader.code.tpl={0} + +# the template to use when generating a stand-alone json manifest file +build.microloader.json.tpl.standalone={0} + +# the template to use when embedding the manifest json directly next to the +# microloader in the output microloader content +build.microloader.json.tpl.embedded=Ext.blink({0}); + +# the template to use in the output microloader content when supplying +# the manifest json as a separate server-side resource ('production' builds) +build.microloader.json.tpl.external=Ext.blink('{'id:''${app.id}'''}'); + +# the template string to use when embedding the microloader content +# into the output markup +build.embedded.microloader.tpl= + +# the compressor to use when embedding the microloader into a page +# can be -closure or -cmd, or leave empty to disable compression +build.embedded.microloader.compressor= + +# the path to the microloader content file, if external to the outpout markup +build.microloader.path=${build.out.microloader.path} + +# the inner markup to embed into the output markup when not including +# the microloader content directly into the output markup +build.embedded.microloader.src=${build.microloader.name} +build.external.microloader.markup= + +# a flag indicating which mode the microloader should run in (production, testing, etc.) +# currently unused : is a placeholder for future microloader interactions +build.microloader.mode=${build.environment} + +# the tag name to use when generating the compiler save set for +# the page's js code +build.tag.name=full-page + +# the name of the archive folder containing source versions for +# delta patch generation +# deprecated, now controlled by app.output.archive / app.output.archive.path in app.json +build.archive.name=archive + +# the output cache manifest file +build.manifest.name=${app.output.appCache.path} +build.manifest.path=${build.out.appCache.path} + +# the name of the manifest json file +build.json.name=${app.manifest.name} + +# the full path to the manifest json file +build.out.json.path=${build.out.manifest.path} + +# Defines the file that will contain Ext.setVersion calls for each used package. +build.out.package.versions=${build.compile.temp.dir}/cmd-packages.js + +# a temp directory for managing extracted resources during the page build +build.app.temp.dir=${build.compile.temp.dir}/app + +# controls the format of checksum headers injected into microloaded content +# either comment style, or code style for js and css files +delta.comment.checksums=false + +# ***************************************************************************** +# Refresh +# these properties are used for generating bootstrap js and css +# files to support dev-time interaction with the app +# ***************************************************************************** + +# the base path to use for generating / calculating bootstrap info +# this property is not longer defaulted here, but calculated in refresh-impl.xml +# based on new app.bootstrap properties +# app.bootstrap.base.path=${app.dir} + +# these control the name of the bootstrap js file +# note: there will be corresponding entries in either the index page +# or app.json that reference these names +# deprecated, use app.bootstrap.microloader +app.bootstrap.js.name=bootstrap.js +app.bootstrap.js=${build.bootstrap.microloader.path} + +# these control the name of the bootstrap css file (for ext 4.2+ apps) +# note: there will be corresponding entries in either the index page +# or app.json that reference these names +app.bootstrap.css.name=bootstrap.css + +# the microloader to use for bootstrapping operations +app.microloader.bootstrap=${app.microloader.dir}/${app.microloader.development} + +# the name of the bootstrap microloader manifest +build.json.bootstrap.name=${app.manifest.bootstrap} + +# the full path to the bootstrap microloader manifest +build.json.bootstrap.path=${build.bootstrap.manifest.path} + +# enables inclusion of override files in the generated bootstrap +bootstrap.include.overrides=true + +# enables inclusion of the Boot.js code in the generated bootstrap +bootstrap.include.boot=false + +# controls the template used to generate load calls for override files +bootstrap.override.tpl=Ext.Loader.loadScriptFile(''{0}'', Ext.emptyFn); + +build.boot.name=Boot.js +build.boot.file=${app.config.dir}/${build.boot.name} +build.slicer.microloader.name=Microloader.js +build.slicer.microloader.file=${app.config.dir}/${build.slicer.microloader.name} + +# the type of the override template ('tpl' or 'jsonp') +bootstrap.override.tpltype=tpl + +# ***************************************************************************** +# Sass / Css +# properties for controling features of sass generation and compilation +# ***************************************************************************** + +# controls the ruby command that is used to execute compasss +# a full path to ruby may be specified rather than allowing the system +# shell to resolve the command +build.ruby.path=ruby + +# -------------------- +# these control properties select the mode used to build the app's styling +# see sass-impl.xml for how then are used + +# enables theme builds for apps using ext 41 style themes +enable.ext41.themes=false + +# enables theme builds for apps using ext 42 style themes +enable.ext42.themes=false + +# enables theme builds for apps using touch style themes +enable.touch.themes=false +# -------------------- + +# selector count threshold to use when +# splitting a single css file into multiple +# css files (IE selector limit workaround) +# +# NOTE: applies only to ext js 4.2+ style theme management, currently +# see the above theme control variables for details +build.css.selector.limit=${app.output.css.split} + +# enables / disable css preprocessor (enable.ext42.themes only) +build.css.preprocess=${app.output.css.preprocess} + +# sets the css preprocessor options, in the form: +# name1:value1,name2:value2,... +build.css.preprocessor.opts= + +# enables / disable css compressor (enable.ext42.themes only) +build.css.compress=${app.output.css.compress} + +# controls the directory used to generate the output app scss file +# for apps that use theme packages +build.sass.dir=${build.temp.dir}/sass + +# Specify the name for the individual resource dirs in the app +# (enable.touch.themes only) +app.sass.name=sass + +# Specify the sass path in the app +# (enable.touch.themes only) +app.sass.dir=${app.dir}/resources/${app.sass.name} + +# name prefix to use for output css / sass files +app.out.base=${app.name}-all +app.out.base.debug=${app.out.base} + +# the output sass file to generate (used with enable.ext42.themes) +app.out.scss=${build.sass.dir}/${app.out.base.debug}.scss +# the output ruby compass config file to generate (used with enable.ext42.themes) +app.out.ruby=${build.sass.dir}/config.rb + +# output css file prefix +app.out.css.prefix=${app.out.base.debug} + +# output css file name +app.out.css.name=${app.out.css.prefix}.css + +# output css file path (relative to build directory root +app.out.css.rel=${app.output.resources.path}/${app.out.css.name} + +# output css file path (full path) +app.out.css=${build.out.css.path} + +# separate file name to use for generating a compressed copy +# of the output css file (this default will compress the file in-place) +app.out.css.compressed=${build.out.css.path} + +# the directory containing sass files for compass to compile +compass.sass.dir=${build.sass.dir} + +# the output directory where compass should place built css files +compass.css.dir=${build.out.css.dir} + +# the directory containing the ruby config file for compass +compass.config.file=${app.out.ruby} + +# enables / disables console highlighting for compass +compass.compile.boring=false + +# enables / disables forced rebuilds for compass +compass.compile.force=true + +# enables / disables stack traces in compass failure output +compass.compile.trace=true + +compass.cache.dir=${workspace.build.dir}/.sass-cache + +compass.working.dir=${build.sass.dir} + +# --------------------------------------------------- +# Legacy properties for ext41 theme directories +# Specify the resources path in the app +app.packages.dir=${app.dir}/packages + +# Specify the theme path in the app (this directory contains the themes) +app.theme.dir=${app.packages.dir} + +# the currently selected ext 41 theme name +theme.name=default +# --------------------------------------------------- + +# ***************************************************************************** +# Slice +# these properties control features of the theme slice build phase +# ***************************************************************************** + +# the resources directory of the application +# note: this property is currently only used for building ext 4.1 style themes +# (used by x-build-theme and x-copy-resources in slice-impl.xml) +app.resources.dir=${app.dir}/resources + +# the directory containing the slicer widget example page +app.example.dir=${app.dir}/sass/example + +# this is the directory used for intermediate build artifacts used +# by the slicer for generating theme images +app.example.build.dir=${build.temp.dir}/slicer-temp + +# properties to control the recirect css file that is +# generated for the slicer example page +app.example.css.name=example.css +app.example.css.file=${app.example.build.dir}/${app.example.css.name} + +# the base path for generating the bootstrap code for the +# slicer page +bootstrap.base.path=${app.example.build.dir} + +# the full file name of the slicer page's bootstrap js file +bootstrap.example.js=${app.example.build.dir}/bootstrap.js + +# the full file name of the slicer page's bootstrap js file +bootstrap.example.json.name=bootstrap.json +bootstrap.example.json=${app.example.build.dir}/${bootstrap.example.json.name} + +# the name of the intermediate screenshot file used for image slicing +build.capture.png=${app.example.build.dir}/theme-capture.png + +# the name of the intermediate widget manifest file used for image slicing +build.capture.json=${app.example.build.dir}/theme-capture.json + +# the location of the slicer widget page +app.example.theme.html.name=theme.html +app.example.theme.html=${cmd.dir}/ant/build/slicer/${app.example.theme.html.name} +app.example.fashion.html.name=fashion.html +app.example.fashion.html=${app.example.dir}/${app.example.fashion.html.name} + +# a name prefix used for slicer page temporary artifacts +app.example.base=${app.name}-example + +# the special slicer page scss file name to generate +app.example.scss=${app.example.build.dir}/${app.example.base}.scss + +# the relative path from the slicer css file to the slicer html file +app.example.css.rel=${app.example.base}.css + +# the path to the css file that will be built for the slicer page +app.example.css=${app.example.build.dir}/${app.example.css.rel} + +# the ruby compass config file to generate for slicer page scss +app.example.out.ruby=${app.example.build.dir}/config.rb +app.example.compass.config=${app.example.out.ruby} + +# legacy ext 41 theme property indicating the name of the +# slicer example page contained in the theme directory +theme.page.name=theme.html + +# Options to pass to the "sencha fs slice" command. +build.slice.options= + +# ***************************************************************************** +# Packager +# these properties control features of the native packaging phase of the +# build process +# ***************************************************************************** + +# enables packaging the built application with the Sencha Desktop Packager +# NOTE: currently unsupported +enable.desktop.packager=false + +# skips packaging the built application with cordova/phonegap +skip.native-package=false + +# a property that controls whether a standalone manifest.json file will be +# generated for the native packaged application +enable.standalone.manifest=false + +# ***************************************************************************** +# Resolve +# these properties control aspects of the dynamic dependency resolver, which +# uses phantomjs to load the application and extract Ext.Loader class load +# history. +# ***************************************************************************** + +# enables / disables dynamic dependency resolution +skip.resolve=true + +# enables the local web server. this may be disabled to load the application's +# page from an existing web server. +skip.web-start=false + +# the port number to start the local web server on +build.web.port=1841 + +# the directory representing the root web folder +build.web.root=${workspace.dir} + +# the base url to access the local web server +build.resolve.url=http://localhost:${build.web.port} + +# a template string used to format the detected dynamic dependencies +build.resolve.tpl={0} + +# the mode to use when formatting the detected dynamic dependencies +build.resolve.mode=references + +# the output file for the detected dynamic dependencies +build.resolve.file=${build.temp.dir}/resolve.json + +# controls whether unmatched external references in the specified file will +# generate build warnings or build failures +build.resolve.allow.unmatched=true + +# ***************************************************************************** +# Watch +# these properties adjust the behavior of the app watch process. +# ***************************************************************************** + +# the default set of actions to run when triggering a rebuild +build.trigger.targets=refresh,resources,sass + +# the watcher targets to run that monitor for code changes +build.watcher.targets=-watch-fashion,-watch-compiler diff --git a/frontend/catalog_builder/.sencha/app/development.defaults.properties b/frontend/catalog_builder/.sencha/app/development.defaults.properties new file mode 100644 index 000000000..e07a438df --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/development.defaults.properties @@ -0,0 +1,30 @@ +# ============================================================================= +# This file defines default property values that apply to the "development" build +# environment. +# +# Please use testing.properties to customize these properties unless you want +# your customizations to be for all environments. In that case, you can instead +# override these properties in build.properties. +# +# The properties defined in this file take priority over defaults.properties +# but are lower priority than build.properties which in turn is lower priority +# than development.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +build.options.logger=yes + +build.options.debug=true + +build.css.compress=false + +build.include.all.scss=true + +# By default we don't need to build an "all.js" file, or a new markup page or +# slice images for IE8/9. These can be added to "development.properties" and +# set to 0 to enable them if needed. +skip.page=1 +skip.js=1 +skip.slice=1 diff --git a/frontend/catalog_builder/.sencha/app/development.properties b/frontend/catalog_builder/.sencha/app/development.properties new file mode 100644 index 000000000..d7a5e576b --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/development.properties @@ -0,0 +1,8 @@ +# ============================================================================= +# This file provides an override point for default variables defined in +# testing.defaults.properties. These properties are only imported when building +# for the "development" environment. +# +# Properties defined in this file take priority over build.properties but are +# only loaded for "development" builds. +# ============================================================================= diff --git a/frontend/catalog_builder/.sencha/app/ext.properties b/frontend/catalog_builder/.sencha/app/ext.properties new file mode 100644 index 000000000..c6ab83ab2 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/ext.properties @@ -0,0 +1,45 @@ +# ============================================================================= +# This file defines default property values that apply to all builds based on +# Ext JS 5.x framework. +# +# Please use build.properties to customize these properties. +# +# To override a property based on build.environment instead add properties to +# one of these higher priority files: +# +# - production.properties +# - testing.properties +# - native.properties +# - package.properties +# +# The properties defined in this file take priority over defaults.properties +# and *.defaults.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +enable.ext42.themes=true + +enable.sencha-core.filter=true + +build.options.product=ext + +build.options.minVersion=5 + +bootstrap.include.boot=true +bootstrap.override.tpl=Ext.Loader.loadScriptsSync +bootstrap.override.tpltype=jsonp + +app.microloader.name=Microloader.js +app.microloader.dir=${app.config.dir} +app.microloader.bootstrap=${app.microloader.dir}/${app.microloader.name} +app.microloader.path=${app.microloader.dir}/${app.microloader.name} + +build.microloader.json.tpl.embedded=var Ext = Ext || '{' '}'; Ext.manifest = Ext.manifest || {0}; +build.microloader.manifest.name=${app.manifest.name} +build.microloader.json.tpl.external=var Ext = Ext || '{' '}'; Ext.manifest = Ext.manifest || "${build.microloader.manifest.name}"; + +build.skip.versions.file=true +build.enable.appmanifest=true +compass.compile.force=false diff --git a/frontend/catalog_builder/.sencha/app/find-cmd-impl.xml b/frontend/catalog_builder/.sencha/app/find-cmd-impl.xml new file mode 100644 index 000000000..55d6826ce --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/find-cmd-impl.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + source ~/.bash_profile; sencha which -p cmd.dir -o '$cmddir$' + + + + + + \ No newline at end of file diff --git a/frontend/catalog_builder/.sencha/app/init-impl.xml b/frontend/catalog_builder/.sencha/app/init-impl.xml new file mode 100644 index 000000000..d2c839523 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/init-impl.xml @@ -0,0 +1,445 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Application available at http://localhost:${build.web.port} + + + diff --git a/frontend/catalog_builder/.sencha/app/js-impl.xml b/frontend/catalog_builder/.sencha/app/js-impl.xml new file mode 100644 index 000000000..fb2170241 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/js-impl.xml @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + include + -tag=${app.output.framework.include} + and + + + + + #no-op + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/catalog_builder/.sencha/app/native.defaults.properties b/frontend/catalog_builder/.sencha/app/native.defaults.properties new file mode 100644 index 000000000..d707366d6 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/native.defaults.properties @@ -0,0 +1,28 @@ +# ============================================================================= +# This file defines default property values that apply to the "native" build +# environment. +# +# Please use native.properties to customize these properties unless you want +# your customizations to be for all environments. In that case, you can instead +# override these properties in build.properties. +# +# The properties defined in this file take priority over defaults.properties +# but are lower priority than build.properties which in turn is lower priority +# than native.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +build.options.logger=no + +build.options.debug=false + +# enable cmd compression +build.compression.cmd=1 + +enable.standalone.manifest=true + +app.microloader.name=testing.js + +skip.native-package=false diff --git a/frontend/catalog_builder/.sencha/app/native.properties b/frontend/catalog_builder/.sencha/app/native.properties new file mode 100644 index 000000000..277ff19c5 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/native.properties @@ -0,0 +1,8 @@ +# ============================================================================= +# This file provides an override point for default variables defined in +# native.defaults.properties. These properties are only imported when building +# for the "native" environment. +# +# Properties defined in this file take priority over build.properties but are +# only loaded for "native" builds. +# ============================================================================= diff --git a/frontend/catalog_builder/.sencha/app/package.defaults.properties b/frontend/catalog_builder/.sencha/app/package.defaults.properties new file mode 100644 index 000000000..c538a8b25 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/package.defaults.properties @@ -0,0 +1,27 @@ +# ============================================================================= +# This file defines default property values that apply to the "package" build +# environment. +# +# Please use package.properties to customize these properties unless you want +# your customizations to be for all environments. In that case, you can instead +# override these properties in build.properties. +# +# The properties defined in this file take priority over defaults.properties +# but are lower priority than build.properties which in turn is lower priority +# than package.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# +# NOTE: This use of "package" applies to native packaged application, not a +# Package in the general since of code libraries. +# ============================================================================= + +build.options.logger=no + +build.options.debug=false + +# enable cmd compression +build.compression.cmd=1 + +app.microloader.name=testing.js diff --git a/frontend/catalog_builder/.sencha/app/package.properties b/frontend/catalog_builder/.sencha/app/package.properties new file mode 100644 index 000000000..3c59c3159 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/package.properties @@ -0,0 +1,11 @@ +# ============================================================================= +# This file provides an override point for default variables defined in +# package.defaults.properties. These properties are only imported when building +# for the "package" environment. +# +# Properties defined in this file take priority over build.properties but are +# only loaded for "package" builds. +# +# NOTE: This use of "package" applies to native packaged application, not a +# Package in the general since of code libraries. +# ============================================================================= diff --git a/frontend/catalog_builder/.sencha/app/packager-impl.xml b/frontend/catalog_builder/.sencha/app/packager-impl.xml new file mode 100644 index 000000000..ba5813ab8 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/packager-impl.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/catalog_builder/.sencha/app/page-impl.xml b/frontend/catalog_builder/.sencha/app/page-impl.xml new file mode 100644 index 000000000..ec36388e6 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/page-impl.xml @@ -0,0 +1,359 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/catalog_builder/.sencha/app/phonegap-impl.xml b/frontend/catalog_builder/.sencha/app/phonegap-impl.xml new file mode 100644 index 000000000..1ec137cc4 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/phonegap-impl.xml @@ -0,0 +1,231 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + phonegap ${phonegap.cli.options} create "${app.phonegap.config.path}" ${app.phonegap.config.id} ${app.phonegap.config.name} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Phonegap Build login credentials were was not found. If you have not logged in prior to running this command. + Please either login via "phonegap remote login" or edit your [APP_ROOT]/local.properties and set "phonegap.username" and "phonegap.password" appropriately + + + + + + phonegap ${phonegap.cli.options} remote login --username="${phonegap.build.remote.username}" --password="${phonegap.build.remote.password}" + + + + + + + phonegap ${phonegap.cli.options} remote build ${phonegap.platform} + + + + + + + phonegap ${phonegap.cli.options} remote run ${phonegap.platform} + + + + + + + phonegap ${phonegap.cli.options} remote run ${phonegap.platform} --emulator + + + + + + + + phonegap ${phonegap.cli.options} local build ${phonegap.platform} + + + + + + + phonegap ${phonegap.cli.options} local run ${phonegap.platform} + + + + + + + phonegap ${phonegap.cli.options} local run ${phonegap.platform} --emulator + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/catalog_builder/.sencha/app/phonegap.defaults.properties b/frontend/catalog_builder/.sencha/app/phonegap.defaults.properties new file mode 100644 index 000000000..4fee1c8ce --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/phonegap.defaults.properties @@ -0,0 +1,15 @@ +# +# Copyright (c) 2012-2014. Sencha Inc. +# + +# Original PhoneGap Packager used the following properties +# here we map in the app space properties to allow for app.json +# setting of these instead of properties files +phonegap.platform=${app.phonegap.config.platform} +phonegap.build.remote=${app.phonegap.config.remote} + +# These are simply shorthanded as the user must specify them in +# a local.properties file anyway. +# No need for the user to type all this out. +phonegap.build.remote.username=${phonegap.username} +phonegap.build.remote.password=${phonegap.password} \ No newline at end of file diff --git a/frontend/catalog_builder/.sencha/app/plugin.xml b/frontend/catalog_builder/.sencha/app/plugin.xml new file mode 100644 index 000000000..d57eba874 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/plugin.xml @@ -0,0 +1,32 @@ + + + + + + diff --git a/frontend/catalog_builder/.sencha/app/production.defaults.properties b/frontend/catalog_builder/.sencha/app/production.defaults.properties new file mode 100644 index 000000000..1b03df717 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/production.defaults.properties @@ -0,0 +1,27 @@ +# ============================================================================= +# This file defines default property values that apply to the "production" build +# environment. +# +# Please use production.properties to customize these properties unless you want +# your customizations to be for all environments. In that case, you can instead +# override these properties in build.properties. +# +# The properties defined in this file take priority over defaults.properties +# but are lower priority than build.properties which in turn is lower priority +# than production.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +build.options.logger=no + +build.options.debug=false + +# enable the full class system optimizer +app.output.js.optimize=true +build.optimize=${build.optimize.enable} + +enable.resource.compression=true + +build.embedded.microloader.compressor=-closure diff --git a/frontend/catalog_builder/.sencha/app/production.properties b/frontend/catalog_builder/.sencha/app/production.properties new file mode 100644 index 000000000..8f03e3853 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/production.properties @@ -0,0 +1,8 @@ +# ============================================================================= +# This file provides an override point for default variables defined in +# production.defaults.properties. These properties are only imported when building +# for the "production" environment. +# +# Properties defined in this file take priority over build.properties but are +# only loaded for "production" builds. +# ============================================================================= diff --git a/frontend/catalog_builder/.sencha/app/refresh-impl.xml b/frontend/catalog_builder/.sencha/app/refresh-impl.xml new file mode 100644 index 000000000..3c2f96e63 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/refresh-impl.xml @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +var Ext = Ext || {}; +Ext.manifest = Ext.manifest || "${build.json.bootstrap.rel.path}"; + + + + + + + + + + + + + + + +/** + * This file is generated by Sencha Cmd and should NOT be edited. It is a + * combination of content from app.json, and all required package's package.json + * files. Customizations should be placed in app.json. + */ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/catalog_builder/.sencha/app/resolve-impl.xml b/frontend/catalog_builder/.sencha/app/resolve-impl.xml new file mode 100644 index 000000000..51981f37f --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/resolve-impl.xml @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/catalog_builder/.sencha/app/resources-impl.xml b/frontend/catalog_builder/.sencha/app/resources-impl.xml new file mode 100644 index 000000000..78899409f --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/resources-impl.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + diff --git a/frontend/catalog_builder/.sencha/app/sass-impl.xml b/frontend/catalog_builder/.sencha/app/sass-impl.xml new file mode 100644 index 000000000..4f9bceba8 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/sass-impl.xml @@ -0,0 +1,398 @@ + + + + + + + + + + + + + + + + + include + -all + + + + + restore + page + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Preprocessing @{cssfile} to ${css.output.name} + + + + + + + Compressing @{cssfile} to ${css.output.name} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + fashion + -config=${build.out.json.path} + -compress=${build.css.compress} + -split=${build.css.selector.limit} + -saveFile=${app.dir}/${app.sass.generated.var} + -slicer=false + ${app.out.scss} + ${app.out.css} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Compiling sass directory : @{theme}/sass + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/catalog_builder/.sencha/app/sencha.cfg b/frontend/catalog_builder/.sencha/app/sencha.cfg new file mode 100644 index 000000000..71baae2ee --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/sencha.cfg @@ -0,0 +1,10 @@ +# this property specifies a comma separated list of paths containing +# resources to copy to the build directory +app.resource.paths= + +#============================================================================== +# Custom Properties - Place customizations below this line to avoid merge +# conflicts with newer versions + +app.framework.version=6.0.1.250 +app.cmd.version=6.5.0.180 diff --git a/frontend/catalog_builder/.sencha/app/slice-impl.xml b/frontend/catalog_builder/.sencha/app/slice-impl.xml new file mode 100644 index 000000000..8836d16a0 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/slice-impl.xml @@ -0,0 +1,394 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + fashion + -config=${app.dir}/app.json + -slicer=true + -compress=${build.css.compress} + -split=${build.css.selector.limit} + ${app.example.build.dir} + ${app.example.build.dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + exclude + -tag=framework,package-sencha-core,package-core,package-${toolkit.name} + + + + + + + + + + + + + + + + Capture theme image to ${build.capture.png} + + + + + + + + + + + + + Capture theme image to ${build.capture.png} + + + + + + + Slicing theme images to ${build.resources.dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Copying base framework images from ${framework.theme.dir} to ${tmp.img.dir} + + + + + + + + Building sass for theme ${theme.name} + + + + + + Slicing images for theme ${theme.name} to ${tmp.img.dir} + + + + + + + + Copying user defined images from @{theme}/images to ${tmp.img.dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + Processing theme directories from ${app.theme.dir} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/catalog_builder/.sencha/app/testing.defaults.properties b/frontend/catalog_builder/.sencha/app/testing.defaults.properties new file mode 100644 index 000000000..d66544787 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/testing.defaults.properties @@ -0,0 +1,21 @@ +# ============================================================================= +# This file defines default property values that apply to the "testing" build +# environment. +# +# Please use testing.properties to customize these properties unless you want +# your customizations to be for all environments. In that case, you can instead +# override these properties in build.properties. +# +# The properties defined in this file take priority over defaults.properties +# but are lower priority than build.properties which in turn is lower priority +# than testing.properties. +# +# IMPORTANT - This file should not be modified by an app as it is overwritten +# during each app upgrade. +# ============================================================================= + +build.options.logger=yes + +build.options.debug=true + +build.css.compress=false diff --git a/frontend/catalog_builder/.sencha/app/testing.properties b/frontend/catalog_builder/.sencha/app/testing.properties new file mode 100644 index 000000000..39b1727de --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/testing.properties @@ -0,0 +1,8 @@ +# ============================================================================= +# This file provides an override point for default variables defined in +# testing.defaults.properties. These properties are only imported when building +# for the "testing" environment. +# +# Properties defined in this file take priority over build.properties but are +# only loaded for "testing" builds. +# ============================================================================= diff --git a/frontend/catalog_builder/.sencha/app/watch-impl.xml b/frontend/catalog_builder/.sencha/app/watch-impl.xml new file mode 100644 index 000000000..d89b6b0b1 --- /dev/null +++ b/frontend/catalog_builder/.sencha/app/watch-impl.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/frontend/catalog_builder/Readme.md b/frontend/catalog_builder/Readme.md new file mode 100644 index 000000000..5f953325b --- /dev/null +++ b/frontend/catalog_builder/Readme.md @@ -0,0 +1,108 @@ +# CatalogBuilder + +This folder is primarily a container for the top-level pieces of the application. +While you can remove some files and folders that this application does not use, +be sure to read below before deciding what can be deleted and what needs to be +kept in source control. + +The following files are all needed to build and load the application. + + - `"app.json"` - The application descriptor which controls how the application is + built and loaded. + - `"app.js"` - The file that launches the application. This is primarily used to + launch an instance of the `MyApp.Application` class. + - `"index.html"` - The default web page for this application. This can be customized + in `"app.json"`. + - `"build.xml"` - The entry point for Sencha Cmd to access the generated build + script. This file is a place where you can hook into these processes and tune + them. See the comments in that file for more information. + - `".sencha"` - This (typically hidden) folder contains the generated build scripts + and configuration files for the application. This folder is required in order to + build the application but its content should not need to be edited in most cases. + The content of this folder is updated by "sencha app upgrade". + +These files can be ignored from source control as they are regenerated by the build +process. + + - `"build"` - This folder contain the output of the build. The generated CSS file, + consolidated resources and concatenated JavaScript file are all stored in this + folder. + - `"bootstrap.*"` - These files are generated by the build and watch commands to + enable the application to load in "development mode". + +# Other Folders + +## Basic Application Structure + +Applications that target a single toolkit will have the following structure. + + app/ # Contains JavaScript code + model/ # Data model classes + view/ # Views as well as ViewModels and ViewControllers + store/ # Data stores + controller/ # Global / application-level controllers + + overrides/ # JavaScript code that is automatically required + + sass/ + etc/ # Misc Sass code (all.scss is imported by default) + var/ # Sass variable and mixin declarations + src/ # Sass rules + + resources/ # Assets such as images, fonts, etc. + +See the [Sass readme](sass/Readme.md) for details on the "sass" folder. + +## Universal Applications + +In a Universal Application, the basic application structure above is retained but +only holds code, resources, etc. pieces that are used in both classic and modern +build profiles. The following additional directories are used to isolate code and +other files that are toolkit-specific: + + classic/ # Content specific to the classic toolkit + src/ + model/ # Data model classes + view/ # Views as well as ViewModels and ViewControllers + store/ # Data stores + controller/ # Global / application-level controllers + + overrides/ # JavaScript code that is automatically required + + sass/ + etc/ # Misc Sass code (all.scss is imported by default) + var/ # Sass variable and mixin declarations + src/ # Sass rules + + resources/ # Assets such as images, fonts, etc. + + modern/ # Content specific to the modern toolkit + src/ + model/ # Data model classes + view/ # Views as well as ViewModels and ViewControllers + store/ # Data stores + controller/ # Global / application-level controllers + + overrides/ # JavaScript code that is automatically required + + sass/ + etc/ # Misc Sass code (all.scss is imported by default) + var/ # Sass variable and mixin declarations + src/ # Sass rules + + resources/ # Assets such as images, fonts, etc. + +## Overrides + +The contents of "overrides" folders are automatically required and included in +builds. These should not be explicitly mentioned in "requires" or "uses" in code. +This area is intended for overrides like these: + + Ext.define('CatalogBuilder.overrides.foo.Bar', { + override: 'Ext.foo.Bar', + ... + }); + +Such overrides, while automatically required, will only be included if their target +class ("Ext.foo.Bar" in this case) is also required. This simplifies applying +patches or extensions to other classes. diff --git a/frontend/catalog_builder/app.js b/frontend/catalog_builder/app.js new file mode 100644 index 000000000..1919310ba --- /dev/null +++ b/frontend/catalog_builder/app.js @@ -0,0 +1,26 @@ +/* + * This file is generated and updated by Sencha Cmd. You can edit this file as + * needed for your application, but these edits will have to be merged by + * Sencha Cmd when upgrading. + */ +Ext.application({ + name: 'CatalogBuilder', + + extend: 'CatalogBuilder.Application', + + requires: [ + 'CatalogBuilder.view.main.Main' + ], + + // The name of the initial view to create. With the classic toolkit this class + // will gain a "viewport" plugin if it does not extend Ext.Viewport. With the + // modern toolkit, the main view will be added to the Viewport. + // + mainView: 'CatalogBuilder.view.main.Main' + + //------------------------------------------------------------------------- + // Most customizations should be made to CatalogBuilder.Application. If you need to + // customize this file, doing so below this section reduces the likelihood + // of merge conflicts when upgrading to new versions of Sencha Cmd. + //------------------------------------------------------------------------- +}); diff --git a/frontend/catalog_builder/app.json b/frontend/catalog_builder/app.json new file mode 100644 index 000000000..21a5d3f20 --- /dev/null +++ b/frontend/catalog_builder/app.json @@ -0,0 +1,500 @@ +{ + "name": "CatalogBuilder", + "version": "1.0.0.0", + "framework": "ext", + "toolkit": "classic", + "theme": "theme-crisp", + + /** + * The list of required packages (with optional versions; default is "latest"). + * + * For example, + * + * "requires": [ + * "charts" + * ] + */ + "requires": [ + "font-awesome", + "common" + ], + + /** + * The relative path to the application's markup file (html, jsp, asp, etc.). + */ + "indexHtmlPath": "index.html", + + /** + * Comma-separated string with the paths of directories or files to search. Any classes + * declared in these locations will be available in your class "requires" or in calls + * to "Ext.require". The "app.dir" variable below is expanded to the path where the + * application resides (the same folder in which this file is located). + */ + "classpath": [ + "app" + ], + + /** + * Comma-separated string with the paths of directories or files to search. Any classes + * declared in these locations will be automatically required and included in the build. + * If any file defines an Ext JS override (using Ext.define with an "override" property), + * that override will in fact only be included in the build if the target class specified + * in the "override" property is also included. + */ + "overrides": [ + "overrides" + ], + + /** + * Fashion build configuration properties. + */ + "fashion": { + + "inliner": { + /** + * Disable resource inliner. Production builds enable this by default. + */ + "enable": false + } + }, + + /** + * Sass configuration properties. + */ + "sass": { + /** + * The root namespace to use when mapping *.scss files to classes in the + * sass/src and sass/var directories. For example, "CatalogBuilder.view.Foo" would + * map to "sass/src/view/Foo.scss". If we changed this to "CatalogBuilder.view" then + * it would map to "sass/src/Foo.scss". To style classes outside the app's + * root namespace, change this to "". Doing so would change the mapping of + * "CatalogBuilder.view.Foo" to "sass/src/CatalogBuilder/view/Foo.scss". + */ + "namespace": "CatalogBuilder", + + /** + * Generated sass source settings + * + * "generated": { + * // The file used to save sass variables edited via Sencha Inspector and Sencha Themer. + * // This file will automatically be applied to the end of the scss build. + * "var": "sass/save.scss", + * + * // The directory used to save generated sass sources. + * // This directory will automatically be applied to the end of the scss build. + * "src": "sass/save" + * } + * + */ + + "generated": { + "var": "sass/save.scss", + "src": "sass/save" + }, + + /** + * Comma-separated list of files or folders containing extra Sass. These + * files are automatically included in the Sass compilation. By default this + * is just "etc/all.scss" to allow import directives to control the order + * other files are included. + * + * All "etc" files are included at the top of the Sass compilation in their + * dependency order: + * + * +-------+---------+ + * | | base | + * | theme +---------+ + * | | derived | + * +-------+---------+ + * | packages | (in package dependency order) + * +-----------------+ + * | application | + * +-----------------+ + */ + "etc": [ + "sass/etc/all.scss" + ], + + /** + * Comma-separated list of folders containing Sass variable definitions + * files. These file can also define Sass mixins for use by components. + * + * All "var" files are included after "etc" files in the Sass compilation in + * dependency order: + * + * +-------+---------+ + * | | base | + * | theme +---------+ + * | | derived | + * +-------+---------+ + * | packages | (in package dependency order) + * +-----------------+ + * | application | + * +-----------------+ + * + * The "sass/var/all.scss" file is always included at the start of the var + * block before any files associated with JavaScript classes. + */ + "var": [ + "sass/var/all.scss", + "sass/var" + ], + + /** + * Comma-separated list of folders containing Sass rule files. + * + * All "src" files are included after "var" files in the Sass compilation in + * dependency order (the same order as "etc"): + * + * +-------+---------+ + * | | base | + * | theme +---------+ + * | | derived | + * +-------+---------+ + * | packages | (in package dependency order) + * +-----------------+ + * | application | + * +-----------------+ + */ + "src": [ + "sass/src" + ] + }, + + /** + * List of all JavaScript assets in the right execution order. + * + * Each item is an object with the following format: + * + * { + * // Path to file. If the file is local this must be a relative path from + * // this app.json file. + * // + * "path": "path/to/script.js", // REQUIRED + * + * // Set to true on one file to indicate that it should become the container + * // for the concatenated classes. + * // + * "bundle": false, // OPTIONAL + * + * // Set to true to include this file in the concatenated classes. + * // + * "includeInBundle": false, // OPTIONAL + * + * // Specify as true if this file is remote and should not be copied into the + * // build folder. Defaults to false for a local file which will be copied. + * // + * "remote": false, // OPTIONAL + * + * // If not specified, this file will only be loaded once, and cached inside + * // localStorage until this value is changed. You can specify: + * // + * // - "delta" to enable over-the-air delta update for this file + * // - "full" means full update will be made when this file changes + * // + * "update": "", // OPTIONAL + * + * // A value of true indicates that is a development mode only dependency. + * // These files will not be copied into the build directory or referenced + * // in the generate app.json manifest for the micro loader. + * // + * "bootstrap": false // OPTIONAL + * } + * + */ + "js": [ + { + "path": "${framework.dir}/build/ext-all-rtl-debug.js" + }, + { + "path": "app.js", + "bundle": true + } + ], + + /** + * List of all CSS assets in the right inclusion order. + * + * Each item is an object with the following format: + * + * { + * // Path to file. If the file is local this must be a relative path from + * // this app.json file. + * // + * "path": "path/to/stylesheet.css", // REQUIRED + * + * // Specify as true if this file is remote and should not be copied into the + * // build folder. Defaults to false for a local file which will be copied. + * // + * "remote": false, // OPTIONAL + * + * // If not specified, this file will only be loaded once, and cached inside + * // localStorage until this value is changed. You can specify: + * // + * // - "delta" to enable over-the-air delta update for this file + * // - "full" means full update will be made when this file changes + * // + * "update": "" // OPTIONAL + * } + */ + "css": [ + { + // this entry uses an ant variable that is the calculated + // value of the generated output css file for the app, + // defined in .sencha/app/defaults.properties + "path": "${build.out.css.path}", + "bundle": true, + "exclude": ["fashion"] + } + ], + + /** + * This option is used to configure the dynamic loader. At present these options + * are supported. + * + */ + "loader": { + // This property controls how the loader manages caching for requests: + // + // - true: allows requests to receive cached responses + // - false: disable cached responses by adding a random "cache buster" + // - other: a string (such as the build.timestamp shown here) to allow + // requests to be cached for this build. + // + "cache": false, + + // When "cache" is not true, this value is the request parameter used + // to control caching. + // + "cacheParam": "_dc" + }, + + /** + * Settings specific to production builds. + */ + "production": { + "output": { + "appCache": { + "enable": true, + "path": "cache.appcache" + } + }, + "loader": { + "cache": "${build.timestamp}" + }, + "cache": { + "enable": true + }, + "compressor": { + "type": "yui" + } + }, + + /** + * Settings specific to testing builds. + */ + "testing": { + }, + + /** + * Settings specific to development builds. + */ + "development": { + "watch": { + "delay": 250 + } + }, + + /** + * Controls the output structure of development-mode (bootstrap) artifacts. May + * be specified by a string: + * + * "bootstrap": "${app.dir}" + * + * This will adjust the base path for all bootstrap objects, or expanded into object + * form: + * + * "bootstrap": { + * "base": "${app.dir}", + * "manifest": "bootstrap.json", + * "microloader": "bootstrap.js", + * "css": "bootstrap.css" + * } + * + * You can optionally exclude entries from the manifest. For example, to exclude + * the "loadOrder" (to help development load approximate a build) you can add: + * + * "bootstrap": { + * "manifest": { + * "path": "bootstrap.json", + * "exclude": "loadOrder" + * } + * } + * + */ + "bootstrap": { + "base": "${app.dir}", + + "microloader": "bootstrap.js", + "css": "bootstrap.css" + }, + + /** + * Controls the output directory for build resources. May be set with + * either a string: + * + * "${workspace.build.dir}/${build.environment}/${app.name}" + * + * or an object containing values for various types of build artifacts: + * + * { + * "base": "${workspace.build.dir}/${build.environment}/${app.name}", + * "page": { + * "path": "../index.html", + * "enable": false + * }, + * "css": "${app.output.resources}/${app.name}-all.css", + * "js": { + * "path": "app.js", + * // This setting constrols the output language level. Set to 'ES6' to + * // disable the transpiler + * "version": "ES5" + * }, + * "microloader": { + * "path": "microloader.js", + * "embed": true, + * "enable": true + * }, + * "manifest": { + * "path": "app.json", + * "embed": false, + * "enable": "${app.output.microloader.enable}" + * }, + * "resources": "resources", + * "slicer": { + * "path": "${app.output.resources}/images", + * "enable": false + * }, + * // Setting the "enable" property of this object to a Truthy value will cause a Application Cache + * // manifest file to be generated based on this files appCache object. This file will then be injected + * // into the index.html file of the built application + * "appCache":{ + * "enable": false" + * } + * } + * + */ + + "output": { + "base": "${workspace.build.dir}/${build.environment}/${app.name}", + "appCache": { + "enable": false + } + }, + + /** + * Controls for localStorage caching + * "cache": { + * // This property controls whether localStorage caching of this manifest file is on or off. + * // if disabled no deltas will be generated during a build and full updates will be disabled + * "enable": false, + * + * // This property allows for global toggle of deltas. + * // If set to a string the value will be used as the path to where deltas will be generated relative to you build. + * // If set to a Truthy Value the default path ok "deltas" will be used + * // If set to a Falsey value or if this property is not present deltas will be disabled and not generated. + * + * "deltas": "deltas" + * } + */ + + "cache": { + "enable": false, + "deltas": true + }, + + /** + * Used to automatically generate cache.manifest (HTML 5 application cache manifest) + * file when you build. + */ + "appCache": { + /** + * List of items in the CACHE MANIFEST section + */ + "cache": [ + "index.html" + ], + /** + * List of items in the NETWORK section + */ + "network": [ + "*" + ], + /** + * List of items in the FALLBACK section + */ + "fallback": [] + }, + + /** + * Extra resources to be copied into the resource folder as specified in the "resources" + * property of the "output" object. Folders specified in this list will be deeply copied. + */ + "resources": [ + { + "path": "resources", + "output": "shared" + } + ], + + /** + * Directory path to store all previous production builds. Note that the content + * generated inside this directory must be kept intact for proper generation of + * deltas between updates. + */ + + "archivePath": "archive", + + /** + * Additional resources used during theme slicing operations + */ + "slicer": { + "js": [ + { + "path": "sass/example/custom.js", + "isWidgetManifest": true + } + ], + "output": { + "appCache": { + "enable": false + } + }, + "cache": { + "enable": false + } + }, + + /** + * Build Profiles. This object's properties are each a "build profile". You can + * add as many as you need to produce optimized builds for devices, themes, locales + * or other criteria. Your "Ext.beforeLoad" hook (see index.html) is responsible for + * selecting the desired build profile by setting "Ext.manifest" to one of these + * names. + * + */ + + /** + * File / directory name patttern to ignore when copying to the builds. Must be a + * valid regular expression. + */ + "ignore": [ + "(^|/)CVS(/?$|/.*?$)" + ], + + /** + * Uniquely generated id for this application, used as prefix for localStorage keys. + * Normally you should never change this value. + */ + "id": "266e2df3-032f-40e5-b0dd-d1d4868ce3ed" +} diff --git a/frontend/catalog_builder/app/Application.js b/frontend/catalog_builder/app/Application.js new file mode 100644 index 000000000..2865889af --- /dev/null +++ b/frontend/catalog_builder/app/Application.js @@ -0,0 +1,28 @@ +/** + * The main application class. An instance of this class is created by app.js when it + * calls Ext.application(). This is the ideal place to handle application launch and + * initialization details. + */ +Ext.define('CatalogBuilder.Application', { + extend: 'Ext.app.Application', + + name: 'CatalogBuilder', + + stores: [ + // TODO: add global / shared stores here + ], + + launch: function () { + // TODO - Launch the application + }, + + onAppUpdate: function () { + Ext.Msg.confirm('Application Update', 'This application has an update, reload?', + function (choice) { + if (choice === 'yes') { + window.location.reload(); + } + } + ); + } +}); diff --git a/frontend/catalog_builder/app/Readme.md b/frontend/catalog_builder/app/Readme.md new file mode 100644 index 000000000..4942954b9 --- /dev/null +++ b/frontend/catalog_builder/app/Readme.md @@ -0,0 +1,30 @@ +# ./controller + +This folder contains the application's global controllers. ViewControllers are located +alongside their respective view class in `"./view"`. These controllers are used for routing +and other activities that span all views. + +# ./model + +This folder contains the application's (data) Model classes. + +# ./view + +This folder contains the views as well as ViewModels and ViewControllers depending on the +application's architecture. Pure MVC applications may not have ViewModels, for example. For +MVCVM applications or MVC applications that use ViewControllers, the following directory +structure is recommended: + + ./view/ + foo/ # Some meaningful grouping of one or more views + Foo.js # The view class + FooController.js # The controller for Foo (a ViewController) + FooModel.js # The ViewModel for Foo + +This structure helps keep these closely related classes together and easily identifiable in +most tabbed IDE's or text editors. + +# ./store + +This folder contains any number of store instances or types that can then be reused in the +application. diff --git a/frontend/catalog_builder/app/model/Readme.md b/frontend/catalog_builder/app/model/Readme.md new file mode 100644 index 000000000..c0fe7623f --- /dev/null +++ b/frontend/catalog_builder/app/model/Readme.md @@ -0,0 +1 @@ +This folder contains the Models for this application. diff --git a/frontend/catalog_builder/app/store/Personnel.js b/frontend/catalog_builder/app/store/Personnel.js new file mode 100644 index 000000000..2f03bd36a --- /dev/null +++ b/frontend/catalog_builder/app/store/Personnel.js @@ -0,0 +1,24 @@ +Ext.define('CatalogBuilder.store.Personnel', { + extend: 'Ext.data.Store', + + alias: 'store.personnel', + + fields: [ + 'name', 'email', 'phone' + ], + + data: { items: [ + { name: 'Jean Luc', email: "jeanluc.picard@enterprise.com", phone: "555-111-1111" }, + { name: 'Worf', email: "worf.moghsson@enterprise.com", phone: "555-222-2222" }, + { name: 'Deanna', email: "deanna.troi@enterprise.com", phone: "555-333-3333" }, + { name: 'Data', email: "mr.data@enterprise.com", phone: "555-444-4444" } + ]}, + + proxy: { + type: 'memory', + reader: { + type: 'json', + rootProperty: 'items' + } + } +}); diff --git a/frontend/catalog_builder/app/store/Readme.md b/frontend/catalog_builder/app/store/Readme.md new file mode 100644 index 000000000..d18a54aaa --- /dev/null +++ b/frontend/catalog_builder/app/store/Readme.md @@ -0,0 +1,2 @@ +This folder contains store instances (identified by storeId) and store types +(with "store.foo" aliases). diff --git a/frontend/catalog_builder/app/view/main/Main.js b/frontend/catalog_builder/app/view/main/Main.js new file mode 100644 index 000000000..f9bf7f2b1 --- /dev/null +++ b/frontend/catalog_builder/app/view/main/Main.js @@ -0,0 +1,519 @@ +Ext.define('CatalogBuilder.view.main.Main', { + extend: 'Ext.container.Container', + xtype: 'app-main', + + requires: [ + 'Ext.app.ViewModel', + 'Ext.plugin.Viewport', + 'Ext.window.MessageBox', + 'Ext.window.Toast', + + 'CatalogBuilder.view.main.MainController', + 'CatalogBuilder.view.main.MainModel', + + 'common.header.Toolbar', + 'common.footer.Footer' + ], + + controller: 'main', + viewModel: 'main', + + layout: { + type: 'vbox', + align: 'stretch' + }, + + bind: { + hidden: '{!initialized}' + }, + + items: [ + //header bar + { + xtype: 'dri-header' + }, + + // toolbar + { + xtype: 'toolbar', + region: 'north', + items: [ + { + xtype: 'button', + tooltip: 'Clear Query', + handler: 'btnClear_onClick', + iconCls: 'x-fa fa-file-o' + }, + { + xtype: 'button', // 'splitbutton', + tooltip: 'Save Query', + disabled: true, + reference: 'btnSave', + iconCls: 'x-fa fa-floppy-o', + handler: 'btnSave_onClick' + }, + { + xtype: 'button', + tooltip: 'Execute Query', + reference: 'btnStartJob', + disabled: true, + handler: 'btnStartJob_onClick', + iconCls: 'x-fa fa-play' + } + ] + }, + + // client area + { + xtype: 'container', + reference: 'ctnArea', + flex: 1, + bodyPadding: 15, + layout: 'border', + items: [ + // left panel + { + xtype: 'panel', + reference: 'pnlRelease', + region: 'west', + split: true, + width: 300, + minWidth: 100, + header: { + xtype: 'header', + titlePosition: 0, + title: 'Release: ', + padding: '6', + items: [ + { + xtype:'container', + layout:'hbox', + width: '100%', + items:[ + { + xtype:'label', + html:'
    Release:
    ' + }, + { + xtype: 'combobox', // or use Ext.create('class') instead of lazy instantiation + reference: 'cmbReleases', + flex:1, + displayField: 'release_display_name', + editable: false, + queryMode: 'local', + valueField: 'release_id', + emptyText: 'Select Release', + listeners:{ + select: 'cmbReleases_onSelect' + } + } + ] + }] + }, + bind: { + //title: '{activeRelease.display}' + }, + layout: 'border', + items: [ + { + xtype: 'panel', + region: 'center', + layout: { + type: 'accordion', + titleCollapse: true, + animate: true + }, + items:[ + // tables of release + { + title: 'Region Selection', + layout: 'fit', + listeners:{ + // collapse: 'accInputTable_onCollapse' + }, + items: [{ + xtype: 'treepanel', + reference: 'tvwInputTables', + rootVisible: false, + root: { + text: 'Root', + expanded: true, + children: [ + { + text: 'Map Resolution', + leaf: true, + properties: [{ + xtype: 'numberfield', + name: 'map_resolution', + fieldLabel: 'HEALPix Map Resolution', + value: 4096, + maxValue: 4096, + minValue: 10 + }] + }, + { + text: 'Mangle Detfrac Map', + leaf: true, + properties: [ + { + xtype: 'numberfield', + name: 'g' + }, + { + xtype: 'numberfield', + name: 'r' + }, + { + xtype: 'numberfield', + name: 'i', + value: 0.8 + }, + { + xtype: 'numberfield', + name: 'z' + }, + { + xtype: 'numberfield', + name: 'Y' + }, + { + xtype: 'combobox', + name: 'reference_band', + fieldLabel: 'Reference band to report area', + value: 'i', + data: ['g', 'r', 'i', 'z', 'Y'] + } + ] + }, + { + text: 'Bad Regions Mask', leaf: true + }, + { + text: 'Depth Map', leaf: true + }, + { + text: 'Systematic Maps - Min,Max', leaf: true + }, + { + text: 'Additional Mask', leaf: true + } + ] + }, + listeners: { + selectionchange: 'treeView_onSelectionChange', + // itemexpand: 'tvwInputTables_onExpanded', + itemcontextmenu: 'treeView_onContextMenu', + custom_itemcontextmenu: 'treeView_onContextMenu' + }, + viewConfig: { + plugins: { + ptype: 'treeviewdragdrop', + enableDrag: true, + enableDrop: false, + ddGroup: 'TreeDD' + } + }, + contextMenuItems: [ + {text: 'Content', itemId:'preview', handler:'tvwInputTables_onContextMenuClick'} + ] + }] + }, + + // tables of external catalog + {title: 'Object Selection', layout:'fit', reference:'accExternalCatalog', + listeners:{ + // expand: 'accExternalCatalog_onExpand', + // collapse: 'accExternalCatalog_onCollapse' + }, + items:[ + { + xtype: 'treepanel', + reference: 'tvwExternalCatalog', + rootVisible:false, + root: { + text: 'Root', + expanded: true, + children: [ + { + text: 'Magnitude Type', leaf: true + }, + { + text: 'Signal-to-noise cuts', leaf: true + }, + { + text: 'Bright magnitude cuts', leaf: true + }, + { + text: 'Magnitude limit cuts', leaf: true + }, + { + text: 'Color cuts', leaf: true + }, + { + text: 'Mangle Bitmask', leaf: true + }, + { + text: 'Sextractor reference bands', leaf: true + }, + { + text: 'Niter Model greater than zero', leaf: true + }, + { + text: 'Photo z', leaf: true + } + ] + }, + viewConfig: { + plugins: { + ptype: 'treeviewdragdrop', + enableDrag: true, + enableDrop: false, + ddGroup: 'TreeDD' + } + }, + contextMenuItems: [ + {text: 'Content', itemId:'preview', handler:'tvwExternalCatalog_onContextMenuClick'} + ], + listeners:{ + itemcontextmenu: 'treeView_onContextMenu', + // itemexpand: 'tvwExternalCatalog_onExpanded' + } + } + ] + }, + + // tables of user + { + title: 'Columns Selection', + layout: 'fit', + reference: 'accMyTables', + listeners:{ + // expand: 'accMyTables_onExpand', + // collapse: 'accMyTables_onCollapse' + }, + items: [{ + xtype: 'treepanel', + reference: 'tvwMyTables', + rootVisible: false, + root: { + text: 'Root', + expanded: true, + children: [ + { + text: 'System Default', leaf: true + }, + { + text: 'Photometric correction', leaf: true + }, + { + text: 'Depth Maps', leaf: true + }, + { + text: 'Systematic Maps', leaf: true + } + ] + }, + viewConfig: { + plugins: { + ptype: 'treeviewdragdrop', + enableDrag: true, + enableDrop: false, + ddGroup: 'TreeDD' + } + }, + contextMenuItems: [ + {text: 'Rename', itemId:'rename', handler:'tvwMyTables_onContextMenuClick'}, + {text: 'Content', itemId:'preview', handler:'tvwMyTables_onContextMenuClick'}, + {text: 'Download',itemId:'download', handler:'tvwMyTables_onContextMenuClick'}, + '-', + {text: 'Delete', itemId:'delete', handler:'tvwMyTables_onContextMenuClick'}, + '-', + {text: 'View', itemId:'target', handler:'tvwMyTables_onContextMenuClick', + config_item: function(item, record){ + item.disabled = record.product_id ? false : true; + } + } + ], + listeners:{ + itemcontextmenu: 'treeView_onContextMenu', + // itemexpand: 'tvwMyTables_onExpanded' + } + }] + } + ] + }, + { + xtype: 'panel', + region: 'south', + split: true, + height: 200, + layout: { + type: 'accordion', + titleCollapse: true, + animate: true + }, + items:[ + // queries of user + { + title: 'My Catalogs', + layout: 'fit', + reference: 'accMyQueries', + items: [{ + xtype: 'treepanel', + reference: 'tvwMyQueries', + rootVisible: false, + listeners: { + beforeselect: 'tvwMyQueries_onBeforeSelect', + select: 'tvwMyQueries_onSelect', + itemcontextmenu: 'treeView_onContextMenu' + }, + contextMenuItems: [ + {text: 'Rename', itemId:'rename', handler:'tvwMyQueries_onContextMenuClick'}, + {text: 'Delete', itemId:'delete', handler:'tvwMyQueries_onContextMenuClick'} + ] + }], + listeners:{ + // expand: 'accMyQueries_onExpand' + } + } + ] + } + ] + }, + + // center panel (form / tabs) + { + xtype: 'panel', + region: 'center', + layout: 'border', + items: [ + + { + xtype: 'panel', + region: 'center', + layout: 'border', + items: [ + { + xtype: 'panel', + region: 'west', + bind:{ + title: '{properties_title}', + }, + width: 400, + split: true, + items: [ + { + xtype: 'form', + reference: 'frmProperties', + region: 'center', + layout: 'vbox', + bodyPadding: 10, + defaults: { + listeners: { + change: 'form_onDataChange' + } + } + } + ] + }, + { + xtype: 'panel', + region: 'center', //east + title: 'Definition', + layout: 'border', + items: [ + { + xtype:'form', + region: 'center', // 'north', + bodyPadding: 10, + items:[ + { + xtype: 'textfield', + fieldLabel: 'Name', + name: 'name' + }, + { + xtype: 'textfield', + fieldLabel: 'Description', + name: 'description', + width: '100%' + }, + { + xtype : 'checkboxfield', + boxLabel : 'Query Builder', + name : 'topping', + inputValue: '1' + }, + { + xtype : 'checkboxfield', + boxLabel : 'Catalog Properties', + name : 'topping', + inputValue: '2', + checked : true + } + ] + } + // , + // { + // xtype: 'grid', + // store: Ext.create('Ext.data.Store'), + // reference: 'grdOperations', + // title: 'Defined Operations', + // region: 'center', + // columns: [ + // { text: 'Group', dataIndex: 'group', width: 200 }, + // { text: 'Operation', dataIndex: 'operation', width: 250 } + // ], + // layout: 'fit' + // } + ] + } + ] + + }, + + // tabs panel + { + xtype: 'tabpanel', + region: 'south', + reference: 'tabBottom', + split: true, + height: 200, + fullScreen: 'fit', + cls: 'preview-tabs', + defaults:{ + layout: 'fit', + }, + items:[ + { + title: 'My JOBs', + listeners:{ + // activate: 'tabMyJobs_onActivate' + }, + items:[ + { + xtype: 'grid', + reference: 'grdJobs', + store: Ext.create('Ext.data.Store'), + viewConfig: { + //stripeRows: false, + getRowClass: function(record) { + return record.get('row_cls') || 'row-cls'; + } + } + } + ] + } + ] + }, + ] + } + ] + }, + + // footer bar + { + xtype: 'dri-footer' + } + ] +}); \ No newline at end of file diff --git a/frontend/catalog_builder/app/view/main/MainController.js b/frontend/catalog_builder/app/view/main/MainController.js new file mode 100644 index 000000000..e191af92b --- /dev/null +++ b/frontend/catalog_builder/app/view/main/MainController.js @@ -0,0 +1,166 @@ +var myQueryNumber = 1; + +var main = Ext.define('CatalogBuilder.view.main.MainController', { + extend: 'Ext.app.ViewController', + + alias: 'controller.main', + activeQuery: {}, + activeRelease: {}, + + init(){ + let vm = this.getViewModel(); + + vm.set('properties_title', 'Properties Inspector'); + + this.operations = {}; + this.activeProperties = {}; + this.definedProperties = {}; + }, + + treeView_onSelectionChange(event, selected){ + let vm = this.getViewModel(); + let properties = []; + let values = {}; + let name; + + if (selected && selected[0] && selected[0].data){ + name = selected[0].data.text; + + vm.set('initialized', true); + vm.set('properties_title', `${selected[0].data.text} - Properties`); + + properties = selected[0].data.properties || []; + + this.activeProperties = {}; + + // adiciona + if (!this.operations[selected[0].id]){ + this.operations[selected[0].id] = { + name: name, + label: name, + properties: properties + }; + } + + properties.forEach(property=>{ + // define o valor inicial da propriedade + if (!property._initialValueIsDefined){ + property._initialValueIsDefined = true; + property._initialValue = property.value; + } + + // guarda o id do model da treeview + property.modelId = selected[0].id; + + this.operations[property.modelId].model = selected[0]; + this.activeProperties[property.name] = property; + }); + } + + this.inspectProperties(properties); + }, + + form_onDataChange(field, newVal, oldVal){ + let refs = this.getReferences(); + let grid = refs.grdOperations; + let fieldName = field.name; + let errors = field.getErrors(); + let data = []; + + let operationIsDefault = true; + let property = this.activeProperties[fieldName]; + let operation = this.operations[property.modelId]; + let properties = operation.properties; + + // console.log(operation); + // console.log(properties); + // console.log(property); + + property.value = (errors == 0 ? newVal : property._initialValue); + + // verifica se os dados default da operação foram alterados + properties.forEach(prop=>{ + if (prop._initialValue != prop.value){ + operationIsDefault = false; + } + }); + + // destaca a operação caso tenha sido alterada + operation.model.set('text', operationIsDefault ? operation.label : `${operation.label}`); + + // destaca o grupo caso tenha alguma operação alterada + + + // if (valueObj.initialValue != newVal && errors == 0){ + // this.definedProperties[this.activeProperties.operation] = { + // group: 'AAA', + // operation: this.activeProperties.operation + // }; + // } else { + // delete(this.definedProperties[this.activeProperties.operation]); + // } + + // // marca na treeview e nos títulos de grupo os que foram selecionados + + + // // preenche a grid com as operações modificadas + // Object.keys(this.definedProperties).forEach(k=>{ + // let r = this.definedProperties[k]; + // data.push({ + // group: r.group, + // operation: r.operation + // }); + // }); + // grid.getStore().loadData(data); + }, + + getProperties(){ + let refs = this.getReferences(); + let data = refs.frmProperties.getForm().getValues(); + + return data; + }, + + inspectProperties(properties){ + let refs = this.getReferences(); + + refs.frmProperties.removeAll(); + + properties.forEach(item=>{ + let store; + + Object.assign(item, { + // width: '100%', + labelWrap: false, + fieldLabel: item.fieldLabel || item.name + }); + + switch (item.xtype) { + case 'combobox': + item.data.forEach((value, index) => { + item.data[index] = typeof(value) == 'string' ? {value:value, label:value} : value; + }); + + store = Ext.create('Ext.data.Store', { + fields: ['value', 'label'], + data : item.data + }); + + Object.assign(item, { + fieldLabel: item.fieldLabel, + store: store, + queryMode: 'local', + displayField: 'label', //campo que vai mostar + valueField: 'value' + }); + break; + + default: + break; + } + + refs.frmProperties.add(item); + }); + + } +}); diff --git a/frontend/catalog_builder/app/view/main/MainModel.js b/frontend/catalog_builder/app/view/main/MainModel.js new file mode 100755 index 000000000..da7493ec1 --- /dev/null +++ b/frontend/catalog_builder/app/view/main/MainModel.js @@ -0,0 +1,16 @@ +/** + * This class is the view model for the Main view of the application. + */ +Ext.define('CatalogBuilder.view.main.MainModel', { + extend: 'Ext.app.ViewModel', + + alias: 'viewmodel.main', + + data: { + name: 'Catalog Builder', + internal_name: 'user_query', + desPortalLogo: 'resources/des-portal-logo.png', + help_url: 'dri/apps/home/help/help-user-query/' + } + +}); diff --git a/frontend/catalog_builder/bootstrap.css b/frontend/catalog_builder/bootstrap.css new file mode 100644 index 000000000..2bc89e45a --- /dev/null +++ b/frontend/catalog_builder/bootstrap.css @@ -0,0 +1,9 @@ + + +/* + * This file is generated by Sencha Cmd and should NOT be edited. It redirects + * to the most recently built CSS file for the application to allow index.html + * in the development directory to load properly (i.e., "dev mode"). + */ +@import '../build/development/CatalogBuilder/resources/CatalogBuilder-all.css'; + diff --git a/frontend/catalog_builder/bootstrap.js b/frontend/catalog_builder/bootstrap.js new file mode 100644 index 000000000..96b4b7af7 --- /dev/null +++ b/frontend/catalog_builder/bootstrap.js @@ -0,0 +1,2692 @@ +var Ext = Ext || {}; +Ext.manifest = Ext.manifest || "bootstrap.json"; +// @tag core +// @define Ext.Boot + +var Ext = Ext || {}; + +// +/** + * @class Ext.Boot + * @singleton + * @private + */ +Ext.Boot = Ext.Boot || (function (emptyFn) { + + var doc = document, + _emptyArray = [], + _config = { + /** + * @cfg {Boolean} [disableCaching=true] + * If `true` current timestamp is added to script URL's to prevent caching. + * In debug builds, adding a "cache" or "disableCacheBuster" query parameter + * to the page's URL will set this to `false`. + */ + disableCaching: (/[?&](?:cache|disableCacheBuster)\b/i.test(location.search) || + !(/http[s]?\:/i.test(location.href)) || + /(^|[ ;])ext-cache=1/.test(doc.cookie)) ? false : + true, + + /** + * @cfg {String} [disableCachingParam="_dc"] + * The query parameter name for the cache buster's timestamp. + */ + disableCachingParam: '_dc', + + /** + * @cfg {Boolean} loadDelay + * Millisecond delay between asynchronous script injection (prevents stack + * overflow on some user agents) 'false' disables delay but potentially + * increases stack load. + */ + loadDelay: false, + + /** + * @cfg {Boolean} preserveScripts + * `false` to remove asynchronously loaded scripts, `true` to retain script + * element for browser debugger compatibility and improved load performance. + */ + preserveScripts: true, + + /** + * @cfg {String} [charset=UTF-8] + * Optional charset to specify encoding of dynamic content. + */ + charset: 'UTF-8' + }, + + _assetConfig= {}, + + cssRe = /\.css(?:\?|$)/i, + resolverEl = doc.createElement('a'), + isBrowser = typeof window !== 'undefined', + _environment = { + browser: isBrowser, + node: !isBrowser && (typeof require === 'function'), + phantom: (window && (window._phantom || window.callPhantom)) || /PhantomJS/.test(window.navigator.userAgent) + }, + _tags = (Ext.platformTags = {}), + + // All calls to _debug are commented out to speed up old browsers a bit; + // yes that makes a difference because the cost of concatenating strings + // and passing them into _debug() adds up pretty quickly. + _debug = function (message) { + //console.log(message); + }, + _apply = function (object, config, defaults) { + if (defaults) { + _apply(object, defaults); + } + if (object && config && typeof config === 'object') { + for (var i in config) { + object[i] = config[i]; + } + } + return object; + }, + _merge = function() { + var lowerCase = false, + obj = Array.prototype.shift.call(arguments), + index, i, len, value; + + if (typeof arguments[arguments.length - 1] === 'boolean') { + lowerCase = Array.prototype.pop.call(arguments); + } + + len = arguments.length; + for (index = 0; index < len; index++) { + value = arguments[index]; + if (typeof value === 'object') { + for (i in value) { + obj[lowerCase ? i.toLowerCase() : i] = value[i]; + } + } + } + + return obj; + }, + _getKeys = (typeof Object.keys == 'function') ? + function(object){ + if (!object) { + return []; + } + return Object.keys(object); + } : + function(object) { + var keys = [], + property; + + for (property in object) { + if (object.hasOwnProperty(property)) { + keys.push(property); + } + } + + return keys; + }, + /* + * The Boot loader class manages Request objects that contain one or + * more individual urls that need to be loaded. Requests can be performed + * synchronously or asynchronously, but will always evaluate urls in the + * order specified on the request object. + */ + Boot = { + loading: 0, + loaded: 0, + apply: _apply, + env: _environment, + config: _config, + + /** + * @cfg {Object} assetConfig + * A map (url->assetConfig) that contains information about assets loaded by the Microlaoder. + */ + assetConfig: _assetConfig, + + // Keyed by absolute URL this object holds "true" if that URL is already loaded + // or an array of callbacks to call once it loads. + scripts: { + /* + Entry objects + + 'http://foo.com/bar/baz/Thing.js': { + done: true, + el: scriptEl || linkEl, + preserve: true, + requests: [ request1, ... ] + } + */ + }, + + /** + * contains the current script name being loaded + * (loadSync or sequential load only) + */ + currentFile: null, + suspendedQueue: [], + currentRequest: null, + + // when loadSync is called, need to cause subsequent load requests to also be loadSync, + // eg, when Ext.require(...) is called + syncMode: false, + + /* + * simple helper method for debugging + */ + debug: _debug, + + /** + * enables / disables loading scripts via script / link elements rather + * than using ajax / eval + */ + useElements: true, + + listeners: [], + + Request: Request, + + Entry: Entry, + + allowMultipleBrowsers: false, + + browserNames: { + ie: 'IE', + firefox: 'Firefox', + safari: 'Safari', + chrome: 'Chrome', + opera: 'Opera', + dolfin: 'Dolfin', + edge: 'Edge', + webosbrowser: 'webOSBrowser', + chromeMobile: 'ChromeMobile', + chromeiOS: 'ChromeiOS', + silk: 'Silk', + other: 'Other' + }, + + osNames: { + ios: 'iOS', + android: 'Android', + windowsPhone: 'WindowsPhone', + webos: 'webOS', + blackberry: 'BlackBerry', + rimTablet: 'RIMTablet', + mac: 'MacOS', + win: 'Windows', + tizen: 'Tizen', + linux: 'Linux', + bada: 'Bada', + chromeOS: 'ChromeOS', + other: 'Other' + }, + + browserPrefixes: { + ie: 'MSIE ', + edge: 'Edge/', + firefox: 'Firefox/', + chrome: 'Chrome/', + safari: 'Version/', + opera: 'OPR/', + dolfin: 'Dolfin/', + webosbrowser: 'wOSBrowser/', + chromeMobile: 'CrMo/', + chromeiOS: 'CriOS/', + silk: 'Silk/' + }, + + // When a UA reports multiple browsers this list is used to prioritize the 'real' browser + // lower index number will win + browserPriority: [ + 'edge', + 'opera', + 'dolfin', + 'webosbrowser', + 'silk', + 'chromeiOS', + 'chromeMobile', + 'ie', + 'firefox', + 'safari', + 'chrome' + ], + + osPrefixes: { + tizen: '(Tizen )', + ios: 'i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ', + android: '(Android |HTC_|Silk/)', // Some HTC devices ship with an OSX userAgent by default, + // so we need to add a direct check for HTC_ + windowsPhone: 'Windows Phone ', + blackberry: '(?:BlackBerry|BB)(?:.*)Version\/', + rimTablet: 'RIM Tablet OS ', + webos: '(?:webOS|hpwOS)\/', + bada: 'Bada\/', + chromeOS: 'CrOS ' + }, + + fallbackOSPrefixes: { + windows: 'win', + mac: 'mac', + linux: 'linux' + }, + + devicePrefixes: { + iPhone: 'iPhone', + iPod: 'iPod', + iPad: 'iPad' + }, + + maxIEVersion: 12, + + + /** + * The default function that detects various platforms and sets tags + * in the platform map accordingly. Examples are iOS, android, tablet, etc. + * @param tags the set of tags to populate + */ + detectPlatformTags: function () { + var me = this, + ua = navigator.userAgent, + isMobile = /Mobile(\/|\s)/.test(ua), + element = document.createElement('div'), + isEventSupported = function (name, tag) { + if (tag === undefined) { + tag = window; + } + + var eventName = 'on' + name.toLowerCase(), + isSupported = (eventName in element); + + if (!isSupported) { + if (element.setAttribute && element.removeAttribute) { + element.setAttribute(eventName, ''); + isSupported = typeof element[eventName] === 'function'; + + if (typeof element[eventName] !== 'undefined') { + element[eventName] = undefined; + } + + element.removeAttribute(eventName); + } + } + + return isSupported; + }, + + // Browser Detection + getBrowsers = function () { + var browsers = {}, + maxIEVersion, prefix, + value, key, index, len, match, version, matched; + + // MS Edge browser (and possibly others) can report multiple browsers in the UserAgent + // "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240" + // we use this to prioritize the actual browser in this situation + len = me.browserPriority.length; + for (index = 0; index < len; index++) { + key = me.browserPriority[index]; + if (!matched) { + value = me.browserPrefixes[key]; + match = ua.match(new RegExp('(' + value + ')([\\w\\._]+)')); + version = match && match.length > 1 ? parseInt(match[2]) : 0; + if (version) { + matched = true; + } + } else { + version = 0; + } + browsers[key] = version; + } + + //Deal with IE document mode + if (browsers.ie) { + var mode = document.documentMode; + + if (mode >= 8) { + browsers.ie = mode; + } + } + + // Fancy IE greater than and less then quick tags + version = browsers.ie || false; + maxIEVersion = Math.max(version, me.maxIEVersion); + + for (index = 8; index <= maxIEVersion; ++index) { + prefix = 'ie' + index; + browsers[prefix + 'm'] = version ? version <= index : 0; + browsers[prefix] = version ? version === index : 0; + browsers[prefix + 'p'] = version ? version >= index : 0; + } + + return browsers; + }, + + //OS Detection + getOperatingSystems = function () { + var systems = {}, + value, key, keys, index, len, match, matched, version, activeCount; + + keys = _getKeys(me.osPrefixes); + len = keys.length; + for (index = 0, activeCount = 0; index < len; index++) { + key = keys[index]; + value = me.osPrefixes[key]; + match = ua.match(new RegExp('(' + value + ')([^\\s;]+)')); + matched = match ? match[1] : null; + + // This is here because some HTC android devices show an OSX Snow Leopard userAgent by default. + // And the Kindle Fire doesn't have any indicator of Android as the OS in its User Agent + if (matched && (matched === 'HTC_' || matched === 'Silk/')) { + version = 2.3; + } else { + version = match && match.length > 1 ? parseFloat(match[match.length - 1]) : 0; + } + + if (version) { + activeCount++; + } + systems[key] = version; + } + + keys = _getKeys(me.fallbackOSPrefixes); + + // If no OS could be found we resort to the fallbacks, otherwise we just + // falsify the fallbacks + len = keys.length; + for (index = 0; index < len; index++) { + key = keys[index]; + + // No OS was detected from osPrefixes + if (activeCount === 0) { + value = me.fallbackOSPrefixes[key]; + match = ua.toLowerCase().match(new RegExp(value)); + systems[key] = match ? true : 0; + } else { + systems[key] = 0; + } + } + + return systems; + }, + + // Device Detection + getDevices = function () { + var devices = {}, + value, key, keys, index, len, match; + + keys = _getKeys(me.devicePrefixes); + len = keys.length; + for (index = 0; index < len; index++) { + key = keys[index]; + value = me.devicePrefixes[key]; + match = ua.match(new RegExp(value)); + devices[key] = match ? true : 0; + } + + return devices; + }, + browsers = getBrowsers(), + systems = getOperatingSystems(), + devices = getDevices(), + platformParams = Boot.loadPlatformsParam(); + + // We apply platformParams from the query here first to allow for forced user valued + // to be used in calculation of generated tags + _merge(_tags, browsers, systems, devices, platformParams, true); + + _tags.phone = !!((_tags.iphone || _tags.ipod) || + (!_tags.silk && (_tags.android && (_tags.android < 3 || isMobile))) || + (_tags.blackberry && isMobile) || + (_tags.windowsphone)); + + _tags.tablet = !!(!_tags.phone && ( + _tags.ipad || + _tags.android || + _tags.silk || + _tags.rimtablet || + (_tags.ie10 && /; Touch/.test(ua)) + )); + + _tags.touch = + // if the browser has touch events we can be reasonably sure the device has + // a touch screen + isEventSupported('touchend') || + // browsers that use pointer event have maxTouchPoints > 0 if the + // device supports touch input + // http://www.w3.org/TR/pointerevents/#widl-Navigator-maxTouchPoints + navigator.maxTouchPoints || + // IE10 uses a vendor-prefixed maxTouchPoints property + navigator.msMaxTouchPoints; + + _tags.desktop = !_tags.phone && !_tags.tablet; + _tags.cordova = _tags.phonegap = !!(window.PhoneGap || window.Cordova || window.cordova); + _tags.webview = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(ua); + _tags.androidstock = (_tags.android <= 4.3) && (_tags.safari || _tags.silk); + + // Re-apply any query params here to allow for user override of generated tags (desktop, touch, tablet, etc) + _merge(_tags, platformParams, true); + }, + + /** + * Extracts user supplied platform tags from the "platformTags" query parameter + * of the form: + * + * ?platformTags=name:state,name:state,... + * + * (each tag defaults to true when state is unspecified) + * + * Example: + * + * ?platformTags=isTablet,isPhone:false,isDesktop:0,iOS:1,Safari:true, ... + * + * @returns {Object} the platform tags supplied by the query string + */ + loadPlatformsParam: function () { + // Check if the ?platform parameter is set in the URL + var paramsString = window.location.search.substr(1), + paramsArray = paramsString.split("&"), + params = {}, i, + platforms = {}, + tmpArray, tmplen, platform, name, enabled; + + for (i = 0; i < paramsArray.length; i++) { + tmpArray = paramsArray[i].split("="); + params[tmpArray[0]] = tmpArray[1]; + } + + if (params.platformTags) { + tmpArray = params.platformTags.split(","); + for (tmplen = tmpArray.length, i = 0; i < tmplen; i++) { + platform = tmpArray[i].split(":"); + name = platform[0]; + enabled=true; + if (platform.length > 1) { + enabled = platform[1]; + if (enabled === 'false' || enabled === '0') { + enabled = false; + } + } + platforms[name] = enabled; + } + } + return platforms; + }, + + filterPlatform: function (platform, excludes) { + platform = _emptyArray.concat(platform || _emptyArray); + excludes = _emptyArray.concat(excludes || _emptyArray); + + var plen = platform.length, + elen = excludes.length, + include = (!plen && elen), // default true if only excludes specified + i, tag; + + for (i = 0; i < plen && !include; i++) { + tag = platform[i]; + include = !!_tags[tag]; + } + + for (i = 0; i < elen && include; i++) { + tag = excludes[i]; + include = !_tags[tag]; + } + + return include; + }, + + init: function () { + var scriptEls = doc.getElementsByTagName('script'), + script = scriptEls[0], + len = scriptEls.length, + re = /\/ext(\-[a-z\-]+)?\.js$/, + entry, src, state, baseUrl, key, n, origin; + + // No check for script definedness because there always should be at least one + Boot.hasReadyState = ("readyState" in script); + Boot.hasAsync = ("async" in script); + Boot.hasDefer = ("defer" in script); + Boot.hasOnLoad = ("onload" in script); + + // Feature detecting IE + Boot.isIE8 = Boot.hasReadyState && !Boot.hasAsync && Boot.hasDefer && !Boot.hasOnLoad; + Boot.isIE9 = Boot.hasReadyState && !Boot.hasAsync && Boot.hasDefer && Boot.hasOnLoad; + Boot.isIE10p = Boot.hasReadyState && Boot.hasAsync && Boot.hasDefer && Boot.hasOnLoad; + + Boot.isIE10 = (new Function('/*@cc_on return @_jscript_version @*/')()) === 10; + Boot.isIE10m = Boot.isIE10 || Boot.isIE9 || Boot.isIE8; + + // IE11 does not support conditional compilation so we detect it by exclusion + Boot.isIE11 = Boot.isIE10p && !Boot.isIE10; + + // Since we are loading after other scripts, and we needed to gather them + // anyway, we track them in _scripts so we don't have to ask for them all + // repeatedly. + for (n = 0; n < len; n++) { + src = (script = scriptEls[n]).src; + if (!src) { + continue; + } + state = script.readyState || null; + + // If we find a script file called "ext-*.js", then the base path is that file's base path. + if (!baseUrl && re.test(src)) { + baseUrl = src; + } + + if (!Boot.scripts[key = Boot.canonicalUrl(src)]) { +// _debug("creating entry " + key + " in Boot.init"); + entry = new Entry({ + key: key, + url: src, + done: state === null || // non-IE + state === 'loaded' || state === 'complete', // IE only + el: script, + prop: 'src' + }); + } + } + + if (!baseUrl) { + script = scriptEls[scriptEls.length - 1]; + baseUrl = script.src; + } + + Boot.baseUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/') + 1); + origin = window.location.origin || + window.location.protocol + + "//" + + window.location.hostname + + (window.location.port ? ':' + window.location.port: ''); + Boot.origin = origin; + + Boot.detectPlatformTags(); + Ext.filterPlatform = Boot.filterPlatform; + }, + + /** + * This method returns a canonical URL for the given URL. + * + * For example, the following all produce the same canonical URL (which is the + * last one): + * + * http://foo.com/bar/baz/zoo/derp/../../goo/Thing.js?_dc=12345 + * http://foo.com/bar/baz/zoo/derp/../../goo/Thing.js + * http://foo.com/bar/baz/zoo/derp/../jazz/../../goo/Thing.js + * http://foo.com/bar/baz/zoo/../goo/Thing.js + * http://foo.com/bar/baz/goo/Thing.js + * + * @private + */ + canonicalUrl: function (url) { + // *WARNING WARNING WARNING* + // This method yields the most correct result we can get but it is EXPENSIVE! + // In ALL browsers! When called multiple times in a sequence, as if when + // we resolve dependencies for entries, it will cause garbage collection events + // and overall painful slowness. This is why we try to avoid it as much as we can. + // + // @TODO - see if we need this fallback logic + // http://stackoverflow.com/questions/470832/getting-an-absolute-url-from-a-relative-one-ie6-issue + resolverEl.href = url; + + var ret = resolverEl.href, + dc = _config.disableCachingParam, + pos = dc ? ret.indexOf(dc + '=') : -1, + c, end; + + // If we have a _dc query parameter we need to remove it from the canonical + // URL. + if (pos > 0 && ((c = ret.charAt(pos - 1)) === '?' || c === '&')) { + end = ret.indexOf('&', pos); + end = (end < 0) ? '' : ret.substring(end); + if (end && c === '?') { + ++pos; // keep the '?' + end = end.substring(1); // remove the '&' + } + ret = ret.substring(0, pos - 1) + end; + } + + return ret; + }, + + /** + * Get the config value corresponding to the specified name. If no name is given, will return the config object + * @param {String} name The config property name + * @return {Object} + */ + getConfig: function (name) { + return name ? Boot.config[name] : Boot.config; + }, + + /** + * Set the configuration. + * @param {Object} config The config object to override the default values. + * @return {Ext.Boot} this + */ + setConfig: function (name, value) { + if (typeof name === 'string') { + Boot.config[name] = value; + } else { + for (var s in name) { + Boot.setConfig(s, name[s]); + } + } + return Boot; + }, + + getHead: function () { + return Boot.docHead || + (Boot.docHead = doc.head || + doc.getElementsByTagName('head')[0]); + }, + + create: function (url, key, cfg) { + var config = cfg || {}; + config.url = url; + config.key = key; + return Boot.scripts[key] = new Entry(config); + }, + + getEntry: function (url, cfg, canonicalPath) { + var key, entry; + + // Canonicalizing URLs via anchor element href yields the most correct result + // but is *extremely* resource heavy so we need to avoid it whenever possible + key = canonicalPath ? url : Boot.canonicalUrl(url); + entry = Boot.scripts[key]; + + if (!entry) { + entry = Boot.create(url, key, cfg); + + if (canonicalPath) { + entry.canonicalPath = true; + } + } + + return entry; + }, + + registerContent: function (url, type, content) { + var cfg = { + content: content, + loaded: true, + css: type === 'css' + }; + + return Boot.getEntry(url, cfg); + }, + + processRequest: function(request, sync) { + request.loadEntries(sync); + }, + + load: function (request) { +// _debug("Boot.load called"); + var request = new Request(request); + + if (request.sync || Boot.syncMode) { + return Boot.loadSync(request); + } + + // If there is a request in progress, we must + // queue this new request to be fired when the current request completes. + if (Boot.currentRequest) { +// _debug("current active request, suspending this request"); + // trigger assignment of entries now to ensure that overlapping + // entries with currently running requests will synchronize state + // with this pending one as they complete + request.getEntries(); + Boot.suspendedQueue.push(request); + } else { + Boot.currentRequest = request; + Boot.processRequest(request, false); + } + return Boot; + }, + + loadSync: function (request) { +// _debug("Boot.loadSync called"); + var request = new Request(request); + + Boot.syncMode++; + Boot.processRequest(request, true); + Boot.syncMode--; + return Boot; + }, + + loadBasePrefix: function(request) { + request = new Request(request); + request.prependBaseUrl = true; + return Boot.load(request); + }, + + loadSyncBasePrefix: function(request) { + request = new Request(request); + request.prependBaseUrl = true; + return Boot.loadSync(request); + }, + + requestComplete: function(request) { + var next; + + if (Boot.currentRequest === request) { + Boot.currentRequest = null; + while(Boot.suspendedQueue.length > 0) { + next = Boot.suspendedQueue.shift(); + if(!next.done) { +// _debug("resuming suspended request"); + Boot.load(next); + break; + } + } + } + if (!Boot.currentRequest && Boot.suspendedQueue.length == 0) { + Boot.fireListeners(); + } + }, + + isLoading: function () { + return !Boot.currentRequest && Boot.suspendedQueue.length == 0; + }, + + fireListeners: function () { + var listener; + while (Boot.isLoading() && (listener = Boot.listeners.shift())) { + listener(); + } + }, + + onBootReady: function (listener) { + if (!Boot.isLoading()) { + listener(); + } else { + Boot.listeners.push(listener); + } + }, + + /** + * this is a helper function used by Ext.Loader to flush out + * 'uses' arrays for classes in some Ext versions + */ + getPathsFromIndexes: function (indexMap, loadOrder) { + // In older versions indexMap was an object instead of a sparse array + if (!('length' in indexMap)) { + var indexArray = [], + index; + + for (index in indexMap) { + if (!isNaN(+index)) { + indexArray[+index] = indexMap[index]; + } + } + + indexMap = indexArray; + } + + return Request.prototype.getPathsFromIndexes(indexMap, loadOrder); + }, + + createLoadOrderMap: function(loadOrder) { + return Request.prototype.createLoadOrderMap(loadOrder); + }, + + fetch: function(url, complete, scope, async) { + async = (async === undefined) ? !!complete : async; + + var xhr = new XMLHttpRequest(), + result, status, content, exception = false, + readyStateChange = function () { + if (xhr && xhr.readyState == 4) { + status = (xhr.status === 1223) ? 204 : + (xhr.status === 0 && ((self.location || {}).protocol === 'file:' || + (self.location || {}).protocol === 'ionp:')) ? 200 : xhr.status; + content = xhr.responseText; + result = { + content: content, + status: status, + exception: exception + }; + if (complete) { + complete.call(scope, result); + } + xhr.onreadystatechange = emptyFn; + xhr = null; + } + }; + + if (async) { + xhr.onreadystatechange = readyStateChange; + } + + try { +// _debug("fetching " + url + " " + (async ? "async" : "sync")); + xhr.open('GET', url, async); + xhr.send(null); + } catch (err) { + exception = err; + readyStateChange(); + return result; + } + + if (!async) { + readyStateChange(); + } + + return result; + }, + + notifyAll: function(entry) { + entry.notifyRequests(); + } + }; + + function Request(cfg) { + //The request class encapsulates a series of Entry objects + //and provides notification around the completion of all Entries + //in this request. + + if(cfg.$isRequest) { + return cfg; + } + + var cfg = cfg.url ? cfg : {url: cfg}, + url = cfg.url, + urls = url.charAt ? [ url ] : url, + charset = cfg.charset || Boot.config.charset; + + _apply(this, cfg); + + delete this.url; + this.urls = urls; + this.charset = charset; + }; + + Request.prototype = { + $isRequest: true, + + createLoadOrderMap: function (loadOrder) { + var len = loadOrder.length, + loadOrderMap = {}, + i, element; + + for (i = 0; i < len; i++) { + element = loadOrder[i]; + loadOrderMap[element.path] = element; + } + + return loadOrderMap; + }, + + getLoadIndexes: function (item, indexMap, loadOrder, includeUses, skipLoaded) { + var resolved = [], + queue = [item], + itemIndex = item.idx, + queue, entry, dependencies, depIndex, i, len; + + if (indexMap[itemIndex]) { + // prevent cycles + return resolved; + } + + // Both indexMap and resolved are sparse arrays keyed by indexes. + // This gives us a naturally sorted sequence of indexes later on + // when we need to convert them to paths. + // indexMap is the map of all indexes we have visited at least once + // per the current expandUrls() invocation, and resolved is the map + // of all dependencies for the current item that are not included + // in indexMap. + indexMap[itemIndex] = resolved[itemIndex] = true; + + while (item = queue.shift()) { + // Canonicalizing URLs is expensive, we try to avoid it + if (item.canonicalPath) { + entry = Boot.getEntry(item.path, null, true); + } + else { + entry = Boot.getEntry(this.prepareUrl(item.path)); + } + + if (!(skipLoaded && entry.done)) { + if (includeUses && item.uses && item.uses.length) { + dependencies = item.requires.concat(item.uses); + } + else { + dependencies = item.requires; + } + + for (i = 0, len = dependencies.length; i < len; i++) { + depIndex = dependencies[i]; + + if (!indexMap[depIndex]) { + indexMap[depIndex] = resolved[depIndex] = true; + queue.push(loadOrder[depIndex]); + } + } + } + } + + return resolved; + }, + + getPathsFromIndexes: function (indexes, loadOrder) { + var paths = [], + index, len; + + // indexes is a sparse array with values being true for defined indexes + for (index = 0, len = indexes.length; index < len; index++) { + if (indexes[index]) { + paths.push(loadOrder[index].path); + } + } + + return paths; + }, + + expandUrl: function (url, loadOrder, loadOrderMap, indexMap, includeUses, skipLoaded) { + var item, resolved; + + if (loadOrder) { + item = loadOrderMap[url]; + + if (item) { + resolved = this.getLoadIndexes(item, indexMap, loadOrder, includeUses, skipLoaded); + + if (resolved.length) { + return this.getPathsFromIndexes(resolved, loadOrder); + } + } + } + + return [url]; + }, + + expandUrls: function (urls, includeUses) { + var me = this, + loadOrder = me.loadOrder, + expanded = [], + expandMap = {}, + indexMap = [], + loadOrderMap, tmpExpanded, i, len, t, tlen, tUrl; + + if (typeof urls === "string") { + urls = [urls]; + } + + if (loadOrder) { + loadOrderMap = me.loadOrderMap; + + if (!loadOrderMap) { + loadOrderMap = me.loadOrderMap = me.createLoadOrderMap(loadOrder); + } + } + + for (i = 0, len = urls.length; i < len; i++) { + // We don't want to skip loaded entries (last argument === false). + // There are some overrides that get loaded before their respective classes, + // and when the class dependencies are processed we don't want to skip over + // the overrides' dependencies just because they were loaded first. + tmpExpanded = this.expandUrl(urls[i], loadOrder, loadOrderMap, indexMap, includeUses, false); + + for (t = 0, tlen = tmpExpanded.length; t < tlen; t++) { + tUrl = tmpExpanded[t]; + + if (!expandMap[tUrl]) { + expandMap[tUrl] = true; + expanded.push(tUrl); + } + } + } + + if (expanded.length === 0) { + expanded = urls; + } + + return expanded; + }, + + expandLoadOrder: function () { + var me = this, + urls = me.urls, + expanded; + + if (!me.expanded) { + expanded = this.expandUrls(urls, true); + me.expanded = true; + } else { + expanded = urls; + } + + me.urls = expanded; + + // if we added some urls to the request to honor the indicated + // load order, the request needs to be sequential + if (urls.length != expanded.length) { + me.sequential = true; + } + + return me; + }, + + getUrls: function () { + this.expandLoadOrder(); + return this.urls; + }, + + prepareUrl: function(url) { + if(this.prependBaseUrl) { + return Boot.baseUrl + url; + } + return url; + }, + + getEntries: function () { + var me = this, + entries = me.entries, + loadOrderMap, item, i, entry, urls, url; + + if (!entries) { + entries = []; + urls = me.getUrls(); + + // If we have loadOrder array then the map will be expanded by now + if (me.loadOrder) { + loadOrderMap = me.loadOrderMap; + } + + for (i = 0; i < urls.length; i++) { + url = me.prepareUrl(urls[i]); + + if (loadOrderMap) { + item = loadOrderMap[url]; + } + + entry = Boot.getEntry(url, { + buster: me.buster, + charset: me.charset + }, item && item.canonicalPath); + + entry.requests.push(me); + entries.push(entry); + } + + me.entries = entries; + } + + return entries; + }, + + loadEntries: function(sync) { + var me = this, + entries = me.getEntries(), + len = entries.length, + start = me.loadStart || 0, + continueLoad, entries, entry, i; + + if(sync !== undefined) { + me.sync = sync; + } + + me.loaded = me.loaded || 0; + me.loading = me.loading || len; + + for(i = start; i < len; i++) { + entry = entries[i]; + if(!entry.loaded) { + continueLoad = entries[i].load(me.sync); + } else { + continueLoad = true; + } + if(!continueLoad) { + me.loadStart = i; + entry.onDone(function(){ + me.loadEntries(sync); + }); + break; + } + } + me.processLoadedEntries(); + }, + + processLoadedEntries: function () { + var me = this, + entries = me.getEntries(), + len = entries.length, + start = me.startIndex || 0, + i, entry; + + if (!me.done) { + for (i = start; i < len; i++) { + entry = entries[i]; + + if (!entry.loaded) { + me.startIndex = i; + return; + } + + if (!entry.evaluated) { + entry.evaluate(); + } + + if (entry.error) { + me.error = true; + } + } + me.notify(); + } + }, + + notify: function () { + var me = this; + if (!me.done) { + var error = me.error, + fn = me[error ? 'failure' : 'success'], + delay = ('delay' in me) + ? me.delay + : (error ? 1 : Boot.config.chainDelay), + scope = me.scope || me; + me.done = true; + if (fn) { + if (delay === 0 || delay > 0) { + // Free the stack (and defer the next script) + setTimeout(function () { + fn.call(scope, me); + }, delay); + } else { + fn.call(scope, me); + } + } + me.fireListeners(); + Boot.requestComplete(me); + } + }, + + onDone: function(listener) { + var me = this, + listeners = me.listeners || (me.listeners = []); + if(me.done) { + listener(me); + } else { + listeners.push(listener); + } + }, + + fireListeners: function() { + var listeners = this.listeners, + listener; + if(listeners) { +// _debug("firing request listeners"); + while((listener = listeners.shift())) { + listener(this); + } + } + } + }; + + function Entry(cfg) { + //The Entry class is a token to manage the load and evaluation + //state of a particular url. It is used to notify all Requests + //interested in this url that the content is available. + + if(cfg.$isEntry) { + return cfg; + } + +// _debug("creating entry for " + cfg.url); + + var charset = cfg.charset || Boot.config.charset, + manifest = Ext.manifest, + loader = manifest && manifest.loader, + cache = (cfg.cache !== undefined) ? cfg.cache : (loader && loader.cache), + buster, busterParam; + + if (Boot.config.disableCaching) { + if (cache === undefined) { + cache = !Boot.config.disableCaching; + } + + if (cache === false) { + buster = +new Date(); + } else if (cache !== true) { + buster = cache; + } + + if (buster) { + busterParam = (loader && loader.cacheParam) || Boot.config.disableCachingParam; + buster = busterParam + "=" + buster; + } + } + + _apply(this, cfg); + + this.charset = charset; + this.buster = buster; + this.requests = []; + }; + + Entry.prototype = { + $isEntry: true, + done: false, + evaluated: false, + loaded: false, + + isCrossDomain: function() { + var me = this; + if(me.crossDomain === undefined) { +// _debug("checking " + me.getLoadUrl() + " for prefix " + Boot.origin); + me.crossDomain = (me.getLoadUrl().indexOf(Boot.origin) !== 0); + } + return me.crossDomain; + }, + + isCss: function () { + var me = this; + if (me.css === undefined) { + if (me.url) { + var assetConfig = Boot.assetConfig[me.url]; + me.css = assetConfig ? assetConfig.type === "css" : cssRe.test(me.url); + } else { + me.css = false; + } + } + return this.css; + }, + + getElement: function (tag) { + var me = this, + el = me.el; + if (!el) { +// _debug("creating element for " + me.url); + if (me.isCss()) { + tag = tag || "link"; + el = doc.createElement(tag); + if(tag == "link") { + el.rel = 'stylesheet'; + me.prop = 'href'; + } else { + me.prop="textContent"; + } + el.type = "text/css"; + } else { + tag = tag || "script"; + el = doc.createElement(tag); + el.type = 'text/javascript'; + me.prop = 'src'; + + if (me.charset) { + el.charset = me.charset; + } + + if (Boot.hasAsync) { + el.async = false; + } + } + me.el = el; + } + return el; + }, + + getLoadUrl: function () { + var me = this, + url; + + url = me.canonicalPath ? me.url : Boot.canonicalUrl(me.url); + + if (!me.loadUrl) { + me.loadUrl = !!me.buster + ? (url + (url.indexOf('?') === -1 ? '?' : '&') + me.buster) + : url; + } + return me.loadUrl; + }, + + fetch: function (req) { + var url = this.getLoadUrl(), + async = !!req.async, + complete = req.complete; + + Boot.fetch(url, complete, this, async); + }, + + onContentLoaded: function (response) { + var me = this, + status = response.status, + content = response.content, + exception = response.exception, + url = this.getLoadUrl(); + me.loaded = true; + if ((exception || status === 0) && !_environment.phantom) { + me.error = + ("Failed loading synchronously via XHR: '" + url + + "'. It's likely that the file is either being loaded from a " + + "different domain or from the local file system where cross " + + "origin requests are not allowed for security reasons. Try " + + "asynchronous loading instead.") || + true; + me.evaluated = true; + } + else if ((status >= 200 && status < 300) || status === 304 + || _environment.phantom + || (status === 0 && content.length > 0) + ) { + me.content = content; + } + else { + me.error = + ("Failed loading synchronously via XHR: '" + url + + "'. Please verify that the file exists. XHR status code: " + + status) || + true; + me.evaluated = true; + } + }, + + createLoadElement: function(callback) { + var me = this, + el = me.getElement(); + + me.preserve = true; + + el.onerror = function() { + me.error = true; + + if (callback) { + callback(); + callback = null; + } + }; + + if (Boot.isIE10m) { + el.onreadystatechange = function() { + if (this.readyState === 'loaded' || this.readyState === 'complete') { + if (callback) { + callback(); + callback = this.onreadystatechange = this.onerror = null; + } + } + }; + } + else { + el.onload = function() { + callback(); + callback = this.onload = this.onerror = null; + }; + } + + // IE starts loading here + el[me.prop] = me.getLoadUrl(); + }, + + onLoadElementReady: function() { + Boot.getHead().appendChild(this.getElement()); + this.evaluated = true; + }, + + inject: function (content, asset) { +// _debug("injecting content for " + this.url); + var me = this, + head = Boot.getHead(), + url = me.url, + key = me.key, + base, el, ieMode, basePath; + + if (me.isCss()) { + me.preserve = true; + basePath = key.substring(0, key.lastIndexOf("/") + 1); + base = doc.createElement('base'); + base.href = basePath; + if(head.firstChild) { + head.insertBefore(base, head.firstChild); + } else { + head.appendChild(base); + } + // reset the href attribute to cuase IE to pick up the change + base.href = base.href; + + if (url) { + content += "\n/*# sourceURL=" + key + " */"; + } + + // create element after setting base + el = me.getElement("style"); + + ieMode = ('styleSheet' in el); + + head.appendChild(base); + if(ieMode) { + head.appendChild(el); + el.styleSheet.cssText = content; + } else { + el.textContent = content; + head.appendChild(el); + } + head.removeChild(base); + + } else { + // Debugger friendly, file names are still shown even though they're + // eval'ed code. Breakpoints work on both Firebug and Chrome's Web + // Inspector. + if (url) { + content += "\n//# sourceURL=" + key; + } + Ext.globalEval(content); + } + return me; + }, + + loadCrossDomain: function() { + var me = this, + complete = function(){ + me.el.onerror = me.el.onload = emptyFn; + me.el = null; + me.loaded = me.evaluated = me.done = true; + me.notifyRequests(); + }; + me.createLoadElement(function(){ + complete(); + }); + me.evaluateLoadElement(); + // at this point, we need sequential evaluation, + // which means we can't advance the load until + // this entry has fully completed + return false; + }, + + loadElement: function() { + var me = this, + complete = function(){ + me.el.onerror = me.el.onload = emptyFn; + me.el = null; + me.loaded = me.evaluated = me.done = true; + me.notifyRequests(); + }; + me.createLoadElement(function(){ + complete(); + }); + me.evaluateLoadElement(); + return true; + }, + + loadSync: function() { + var me = this; + me.fetch({ + async: false, + complete: function (response) { + me.onContentLoaded(response); + } + }); + me.evaluate(); + me.notifyRequests(); + }, + + load: function (sync) { + var me = this; + if (!me.loaded) { + if(me.loading) { + // if we're calling back through load and we're loading but haven't + // yet loaded, then we should be in a sequential, cross domain + // load scenario which means we can't continue the load on the + // request until this entry has fully evaluated, which will mean + // loaded = evaluated = done = true in one step. For css files, this + // will happen immediately upon element creation / insertion, + // but + + + + diff --git a/frontend/catalog_builder/resources/Readme.md b/frontend/catalog_builder/resources/Readme.md new file mode 100644 index 000000000..4d524a7b7 --- /dev/null +++ b/frontend/catalog_builder/resources/Readme.md @@ -0,0 +1,4 @@ +# CatalogBuilder/resources + +This folder contains resources (such as images) needed by the application. This file can +be removed if not needed. diff --git a/frontend/catalog_builder/resources/des-portal-logo.png b/frontend/catalog_builder/resources/des-portal-logo.png new file mode 100755 index 000000000..d3729783d Binary files /dev/null and b/frontend/catalog_builder/resources/des-portal-logo.png differ diff --git a/frontend/catalog_builder/sass/Readme.md b/frontend/catalog_builder/sass/Readme.md new file mode 100644 index 000000000..28fd38a55 --- /dev/null +++ b/frontend/catalog_builder/sass/Readme.md @@ -0,0 +1,46 @@ +# ./sass + +This folder contains the styling for the application's views. + +## Styling + +Sencha Cmd supports styling using Sass and integrates the styling from the theme +and required packages (specified in `"app.json"`) with application-defined views. + +### ./sass/etc + +This folder contains misc. support code for Sass builds (global functions, etc.). + +### ./sass/src + +This folder contains Sass files defining CSS rules corresponding to classes +included in the application's JavaScript code build. By default, files in this +folder are mapped to the application's root namespace, 'CatalogBuilder'. This is set in +`"app.json"`: + + "sass": { + "namespace": "CatalogBuilder" + } + +### ./sass/var + +This folder contains Sass files defining Sass variables corresponding to classes +included in the application's JavaScript code build. By default, files in this +folder are mapped to the application's root namespace, 'CatalogBuilder' in the same way +as `"CatalogBuilder/sass/src"`. + +## Slicing + +Internet Explorer 8 and 9 do not support linear gradients and IE8 does not support +border-radius. To compensate for this, Sencha Cmd provides "image slicing" using an +internal WebKit based renderer. To enable this, there is a special web page that +renders all components and states so they can be captured and turned into image +sprites. + +### ./sass/example + +This folder contains the web page used to present all components and states so they +can be captured as an image and used to produce images for IE8 and 9. + +This web page is also helpful when loaded in Chrome to view all components in their +styled form. diff --git a/frontend/catalog_builder/sass/etc/all.scss b/frontend/catalog_builder/sass/etc/all.scss new file mode 100644 index 000000000..c3e422220 --- /dev/null +++ b/frontend/catalog_builder/sass/etc/all.scss @@ -0,0 +1,3 @@ +/* + * This is is imported by virtue of "sass.etc" in "app.json". + */ diff --git a/frontend/catalog_builder/sass/src/view/main/Main.scss b/frontend/catalog_builder/sass/src/view/main/Main.scss new file mode 100644 index 000000000..a7f632eaf --- /dev/null +++ b/frontend/catalog_builder/sass/src/view/main/Main.scss @@ -0,0 +1,83 @@ +/** + * Generates a set of style rules for the "navigation" tab UI. + */ +@include extjs-tab-panel-ui( + $ui: 'navigation', + $ui-tab-background-color: transparent, + $ui-tab-background-color-over: #505050, + $ui-tab-background-color-active: #303030, + $ui-tab-background-gradient: 'none', + $ui-tab-background-gradient-over: 'none', + $ui-tab-background-gradient-active: 'none', + $ui-tab-color: #acacac, + $ui-tab-color-over: #c4c4c4, + $ui-tab-color-active: #fff, + $ui-tab-glyph-color: #acacac, + $ui-tab-glyph-color-over: #c4c4c4, + $ui-tab-glyph-color-active: #fff, + $ui-tab-glyph-opacity: 1, + $ui-tab-border-radius: 0, + $ui-tab-border-width: 0, + $ui-tab-inner-border-width: 0, + $ui-tab-padding: 24px, + $ui-tab-margin: 0, + $ui-tab-font-size: 15px, + $ui-tab-font-size-over: 15px, + $ui-tab-font-size-active: 15px, + $ui-tab-line-height: 19px, + $ui-tab-font-weight: bold, + $ui-tab-font-weight-over: bold, + $ui-tab-font-weight-active: bold, + $ui-tab-icon-width: 24px, + $ui-tab-icon-height: 24px, + $ui-tab-icon-spacing: 5px, + $ui-bar-background-color: #404040, + $ui-bar-background-gradient: 'none', + $ui-bar-padding: 0, + $ui-strip-height: 0 +); + +/** + * Generates a set of style rules for the "navigation" panel UI. + */ +@include extjs-panel-ui( + $ui: 'navigation', + $ui-header-color: #fff, + $ui-header-glyph-color: #fff, + $ui-header-glyph-opacity: 1, + $ui-header-font-size: 20px, + $ui-header-line-height: 24px, + $ui-header-font-weight: bold, + $ui-header-icon-height: 24px, + $ui-header-icon-width: 24px, + $ui-header-icon-spacing: 15px, + $ui-header-background-color: $base-color, + $ui-header-padding: 0, + $ui-header-text-margin: 36px, + $ui-header-noborder-adjust: false +); + +.x-title-icon-navigation { + font-family: FontAwesome; + color: #fff; + font-size: 24px; + line-height: 24px; +} + +.x-tab-icon-el-navigation { + font-family: FontAwesome; + color: #acacac; + + .x-tab-over & { + color: #c4c4c4; + } + + .x-tab-active & { + color: #fff; + } +} + +.x-panel-header-title-navigation > .x-title-text-navigation:after { + top: 30px; + right: -24px; +} \ No newline at end of file diff --git a/frontend/catalog_builder/sass/var/all.scss b/frontend/catalog_builder/sass/var/all.scss new file mode 100644 index 000000000..9e095bc63 --- /dev/null +++ b/frontend/catalog_builder/sass/var/all.scss @@ -0,0 +1,5 @@ +/* + * This is is imported by virtue of "sass.var" in "app.json". + */ + +$enable-font-awesome: dynamic(true); diff --git a/frontend/explorer/app/model/Product.js b/frontend/explorer/app/model/Product.js index ccf588ab7..3a820056e 100644 --- a/frontend/explorer/app/model/Product.js +++ b/frontend/explorer/app/model/Product.js @@ -15,7 +15,21 @@ Ext.define('Explorer.model.Product', { {name:'prd_date', type:'date'}, {name:'prd_is_public', type:'boolean', defaultValue: false}, {name:'is_owner', type:'boolean', defaultValue: false}, - {name:'tablename', type:'string'} + {name:'tablename', type:'string'}, + {name: 'epr_original_id', type: 'string'}, + {name: 'productlog', type: 'string'}, + // Nome do producto + process ID + { + name:'name_with_process_id', + type:'string', + convert: function (value, record) { + if (record.get('epr_original_id')) { + return record.get('epr_original_id') + ' - ' + record.get("prd_display_name"); + } else { + return record.get("prd_display_name"); + } + } + }, ] }); diff --git a/frontend/explorer/app/model/ProductRelated.js b/frontend/explorer/app/model/ProductRelated.js new file mode 100644 index 000000000..002fca52b --- /dev/null +++ b/frontend/explorer/app/model/ProductRelated.js @@ -0,0 +1,18 @@ +Ext.define('Explorer.model.ProductRelated', { + extend: 'Ext.data.Model', + + requires: [ + 'common.data.proxy.Django' + ], + + fields: [ + {name:'id', type:'int', persist: false}, + {name:'prl_product', type:'int'}, + {name:'prl_related', type:'int'}, + {name:'prl_relation_type', type:'string'}, + {name:'prl_cross_identification', default: null}, + {name:'prl_cross_name', persist: false} + + ] + +}); diff --git a/frontend/explorer/app/store/ProductRelateds.js b/frontend/explorer/app/store/ProductRelateds.js new file mode 100644 index 000000000..406f6137b --- /dev/null +++ b/frontend/explorer/app/store/ProductRelateds.js @@ -0,0 +1,23 @@ +Ext.define('Explorer.store.ProductRelateds', { + extend: 'common.store.MyStore', + + alias: 'store.product_relateds', + + requires: [ + 'common.data.proxy.Django', + 'Explorer.model.ProductRelated' + ], + + model: 'Explorer.model.ProductRelated', + + autoLoad: false, + + remoteFilter: true, + + pageSize: 0, + + proxy: { + url: '/dri/api/productrelated/' + } + +}); diff --git a/frontend/explorer/app/view/system/Form.js b/frontend/explorer/app/view/system/Form.js index 8876c9364..c3db98a5c 100644 --- a/frontend/explorer/app/view/system/Form.js +++ b/frontend/explorer/app/view/system/Form.js @@ -43,6 +43,58 @@ Ext.define('Explorer.view.system.Form', { bind: { value: '{display_radius}' } + }, + { + xtype: 'fieldcontainer', + fieldLabel: 'Proccess Id', + defaults: { + margin: '0 5 0 0' + }, + layout: 'hbox', + items: [ + { + xtype: "textfield", + width: 140, + bind: { + value: '{currentProduct.epr_original_id}' + } + }, + { + xtype: "button", + iconCls: 'fa fa-info', + tooltip: "Product Log", + bind: { + href: '{currentProduct.productlog}', + disabled: '{!currentProduct.productlog}' + } + } + ] + }, + { + xtype: 'fieldcontainer', + fieldLabel: 'VAC', + defaults: { + margin: '0 5 0 0' + }, + layout: 'hbox', + items: [ + { + xtype: "textfield", + width: 140, + bind: { + value: '{vacCluster.epr_original_id} - {vacCluster.prd_display_name}' + } + }, + { + xtype: "button", + iconCls: 'fa fa-info', + tooltip: "Product Log", + bind: { + href: '{vacCluster.productlog}', + disabled: '{!vacCluster.productlog}' + } + } + ] } ] } diff --git a/frontend/explorer/app/view/system/SystemController.js b/frontend/explorer/app/view/system/SystemController.js index 67058af8f..483b449a1 100644 --- a/frontend/explorer/app/view/system/SystemController.js +++ b/frontend/explorer/app/view/system/SystemController.js @@ -62,6 +62,7 @@ Ext.define('Explorer.view.system.SystemController', { }); vacProducts.load({ + scope: me, callback: me.onLoadVacProducts }); }, @@ -82,8 +83,47 @@ Ext.define('Explorer.view.system.SystemController', { // Carregar as propriedades dos system members me.loadMembersContent(product); + // Load VAC cluster used with input in original proccess + me.loadVacCluster(); + + + }, + + loadVacCluster: function () { + console.log('loadVacCluster()') + var me = this, + vm = me.getViewModel(), + product = vm.get('currentProduct'), + relateds = vm.getStore("productRelateds"); + + relateds.addFilter([ + { + property: 'prl_product', + value: product.get('id') + }, + { + property: 'prl_relation_type', + value: "input" + }, + { + property: 'prd_class', + value: "vac_cluster" + } + ]); + + relateds.load({ + callback: function (response) { + if (relateds.count() == 1) { + vm.set('relatedVacCluster', relateds.first()) + + me.linkVacRelatedWithVacProduct(); + } + } + }); }, + + loadAssociations: function (product) { var me = this, view = me.getView(), @@ -510,8 +550,27 @@ Ext.define('Explorer.view.system.SystemController', { /** * Executada quando a store de vacs e carregada. */ - onLoadVacProducts: Ext.emptyFn, + onLoadVacProducts: function () { + var me = this; + + me.linkVacRelatedWithVacProduct() + }, + + linkVacRelatedWithVacProduct: function () { + // console.log("linkVacRelatedWithVacProduct()") + var me = this, + vm = me.getViewModel(), + relatedVacCluster = vm.get('relatedVacCluster'), + vacProducts = vm.getStore("vacProducts"); + + if (relatedVacCluster.get("id")) { + vacCluster = vacProducts.getAt(vacProducts.find("id", relatedVacCluster.get("prl_related"))); + + vm.set("vacCluster", vacCluster); + + } + }, /** * Executado quando e selecionado um Vac na combobox. * Apenas seta no model o produto de vac selecionado e executa o metodo diff --git a/frontend/explorer/app/view/system/SystemModel.js b/frontend/explorer/app/view/system/SystemModel.js index 4763ab468..ca6479707 100644 --- a/frontend/explorer/app/view/system/SystemModel.js +++ b/frontend/explorer/app/view/system/SystemModel.js @@ -9,6 +9,8 @@ Ext.define('Explorer.view.system.SystemModel', { 'Explorer.model.Product', 'Explorer.store.Association', 'Explorer.store.ProductDisplayContents', + 'Explorer.store.ProductRelateds', + 'Explorer.model.ProductRelated', 'common.model.Dataset', 'common.store.Surveys', 'common.store.Tags', @@ -34,7 +36,7 @@ Ext.define('Explorer.view.system.SystemModel', { vacRadius: 1, vacOverlayColor: '1B81BC', vacOverlayPointSize: 1.2, - vacOverlaypointType: 'square' + vacOverlaypointType: 'square', }, links: { @@ -46,10 +48,20 @@ Ext.define('Explorer.view.system.SystemModel', { type: 'common.model.Dataset', create: true }, + // Vac selecionado na combobox da aba VAC currentVacProduct: { type: 'Explorer.model.Product', create: true - } + }, + relatedVacCluster: { + type: 'Explorer.model.ProductRelated', + create: true + }, + // Vac relacionado ao cluster utilizado como input para sua producao + vacCluster: { + type: 'Explorer.model.Product', + create: true + }, }, stores: { @@ -114,5 +126,9 @@ Ext.define('Explorer.view.system.SystemModel', { type: 'objects', pageSize: 2000 }, + productRelateds: { + type: 'product_relateds', + autoLoad: false + }, } }); diff --git a/frontend/explorer/app/view/system/VacGrid.js b/frontend/explorer/app/view/system/VacGrid.js index 903ed667a..89bca8ffd 100644 --- a/frontend/explorer/app/view/system/VacGrid.js +++ b/frontend/explorer/app/view/system/VacGrid.js @@ -42,7 +42,7 @@ Ext.define('Explorer.view.system.VacGrid', { emptyText: 'choose the VAC catalog', width: 200, valueField: 'id', - displayField: 'prd_display_name', + displayField: 'name_with_process_id', queryMode: 'local', bind: { store: '{vacProducts}', @@ -111,6 +111,16 @@ Ext.define('Explorer.view.system.VacGrid', { iconCls: 'x-tbar-loading', handler: 'loadVacObjects', tooltip: 'Refresh' + }, + '-', + { + xtype: "button", + iconCls: 'fa fa-info', + tooltip: "Product Log", + bind: { + href: '{currentVacProduct.productlog}', + disabled: '{!currentVacProduct.productlog}' + } } ] }); diff --git a/frontend/packages/local/visiomatic/src/Visiomatic.js b/frontend/packages/local/visiomatic/src/Visiomatic.js index 184ab29d6..e2bc6bb5d 100755 --- a/frontend/packages/local/visiomatic/src/Visiomatic.js +++ b/frontend/packages/local/visiomatic/src/Visiomatic.js @@ -624,10 +624,10 @@ Ext.define('visiomatic.Visiomatic', { } return { - lat: parseFloat(lat.toFixed(6)), - lng: parseFloat(lng.toFixed(6)), - dlat: parseFloat(dlat.toFixed(6)), - dlng: parseFloat(dlng.toFixed(6)) + lat: parseFloat(lat), + lng: parseFloat(lng), + dlat: parseFloat(dlat), + dlng: parseFloat(dlng) }; }, @@ -639,7 +639,7 @@ Ext.define('visiomatic.Visiomatic', { */ getBox: function () { var me = this, - box, urra, urdec, llra, lldec, ur, ll; + box, urra, urdec, llra, lldec, ur, ll, rlat, rlon; bounding = me.getBounds(); @@ -648,10 +648,16 @@ Ext.define('visiomatic.Visiomatic', { bounding.lng = bounding.lng - 360; } - urra = parseFloat(bounding.lng + bounding.dlng / 2).toFixed(6); - urdec = parseFloat(bounding.lat + bounding.dlat / 2).toFixed(6); - llra = parseFloat(bounding.lng - bounding.dlng / 2).toFixed(6); - lldec = parseFloat(bounding.lat - bounding.dlat / 2).toFixed(6); + rlon = bounding.dlng / 2; + rlat = bounding.dlat /2; + + + llra = parseFloat(bounding.lng - rlon); + lldec = parseFloat(bounding.lat - (rlat * Math.cos(bounding.lat * Math.PI / 180.))); + + + urra = parseFloat(bounding.lng + rlon); + urdec = parseFloat(bounding.lat + (rlat * Math.cos(bounding.lat * Math.PI / 180.))); ur = [urra, urdec]; ll = [llra, lldec]; @@ -659,7 +665,7 @@ Ext.define('visiomatic.Visiomatic', { box = [ur, ll]; // Debugar o Box, desenha um retangulo representando a area visivel - // ldebugbox = me.drawRectangle(ur, ll, {color: '#1dff00', weight: 5}); + //ldebugbox = me.drawRectangle(ur, ll, {color: '#1dff00', weight: 5}); return box; }, diff --git a/frontend/packages/local/visiomatic/src/catalog/CatalogController.js b/frontend/packages/local/visiomatic/src/catalog/CatalogController.js index 417acd400..2f39b25f3 100644 --- a/frontend/packages/local/visiomatic/src/catalog/CatalogController.js +++ b/frontend/packages/local/visiomatic/src/catalog/CatalogController.js @@ -366,12 +366,17 @@ Ext.define('visiomatic.catalog.CatalogController', { overlays = vm.getStore('overlays'), visiomatic = vm.get('visiomatic'), record = overlays.getAt(rowIndex), - layers = record.get('layers'); + layers = record.get('layers'), + store = record.get('objects'); + + // Verificar se a requisicao esta em andamento e abortar + if (store.loading) { + store.getProxy().abort(); + } // Remover as layers no visiomatic if (layers !== null) { visiomatic.showHideLayer(layers, false); - } // remover o overlay da Store diff --git a/frontend/target/app/model/ProductRelated.js b/frontend/target/app/model/ProductRelated.js index f016f5bf8..46647e3cb 100644 --- a/frontend/target/app/model/ProductRelated.js +++ b/frontend/target/app/model/ProductRelated.js @@ -9,10 +9,10 @@ Ext.define('Target.model.ProductRelated', { {name:'id', type:'int', persist: false}, {name:'prl_product', type:'int'}, {name:'prl_related', type:'int'}, + {name:'prl_relation_type', type:'string'}, {name:'prl_cross_identification', default: null}, {name:'prl_cross_name', persist: false} ] }); - diff --git a/frontend/target/app/view/preview/PreviewController.js b/frontend/target/app/view/preview/PreviewController.js index 00b5fd1fd..24e8d16d1 100755 --- a/frontend/target/app/view/preview/PreviewController.js +++ b/frontend/target/app/view/preview/PreviewController.js @@ -437,10 +437,16 @@ Ext.define('Target.view.preview.PreviewController', { } else { relateds.removeAll(true); - relateds.addFilter({ - property: 'prl_product', - value: currentCatalog.get('id') - }); + relateds.addFilter([ + { + property: 'prl_product', + value: currentCatalog.get('id') + }, + { + property: 'prl_relation_type', + value: "join" + }, + ]); relateds.load({ callback: function () { if (this.count() > 0) { diff --git a/frontend/target/app/view/settings/SystemMembersController.js b/frontend/target/app/view/settings/SystemMembersController.js index 387964623..cc57ebaed 100644 --- a/frontend/target/app/view/settings/SystemMembersController.js +++ b/frontend/target/app/view/settings/SystemMembersController.js @@ -19,10 +19,16 @@ Ext.define('Target.view.settings.SystemMembersController', { if (currentCatalog.get('pcl_is_system')) { // Checar se ja existe uma relacao com o produto - relateds.addFilter({ - property: 'prl_product', - value: currentCatalog.get('id') - }); + relateds.addFilter([ + { + property: 'prl_product', + value: currentCatalog.get('id') + }, + { + property: 'prl_relation_type', + value: "join" + } + ]); relateds.load({ callback: function () { me.onLoadRelateds(this); diff --git a/frontend/workspace.json b/frontend/workspace.json index b466402e4..7f990907f 100644 --- a/frontend/workspace.json +++ b/frontend/workspace.json @@ -38,7 +38,10 @@ "products", "explorer", "userquery", - "d3teste" + "d3teste", + "catalog_builder", + "DynamicForm", + "catalog_builder2" ], /**